diff --git a/dist/lite/markedit-preview.js b/dist/lite/markedit-preview.js index 5fb1a2b..9edd1e6 100644 --- a/dist/lite/markedit-preview.js +++ b/dist/lite/markedit-preview.js @@ -34,7 +34,9 @@ `)?B.DOUBLE_QUOTED:cs(e)))}function ps(e){if(e.style!==B.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(` `)!==-1;if(!ss(e.allowedStylesMask,B.LITERAL_BLOCK)){n&&(e.style=B.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=B.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(` `,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=B.FOLDED_BLOCK:n&&(e.style=B.LITERAL_BLOCK)}function ms(e){e.style===B.PLAIN&&!ss(e.allowedStylesMask,B.PLAIN)&&(e.style=cs(e))}function hs(e){ss(e.allowedStylesMask,e.style)||(e.style=B.DOUBLE_QUOTED)}var R,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,z,B,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,V,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll=o((()=>{R=Symbol(`NOT_RESOLVED`),gs=N(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),_s=[``,`~`,`null`,`Null`,`NULL`],vs=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>_s.indexOf(e)===-1?R:null,identify:e=>e===null,represent:()=>`null`}),ys=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:R,identify:e=>e===null,represent:()=>`null`}),bs=[``,`~`,`null`,`Null`,`NULL`],xs=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>bs.indexOf(e)===-1?R:null,identify:e=>e===null,represent:()=>`null`}),Ss=[`true`,`True`,`TRUE`],Cs=[`false`,`False`,`FALSE`],ws=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>Ss.indexOf(e)!==-1||Cs.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Ts=[`true`],Es=[`false`],Ds=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>Ts.indexOf(e)!==-1||Es.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Os=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],ks=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],As=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>Os.indexOf(e)!==-1||ks.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),js=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Ms=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Ns=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:ba,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Ps=RegExp(`^-?(?:0|[1-9][0-9]*)$`),Fs=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Is=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Sa,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Ls=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),Rs=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:wa,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),zs=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Bs=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Vs=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Ta,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Ea}),Hs=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),Us=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ws=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Da,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Oa}),Gs=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ks=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),qs=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:ka,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Aa}),Js=N(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:R,identify:()=>!1}),Ys=/^[A-Za-z0-9+/]*={0,2}$/,Xs=N(`tag:yaml.org,2002:binary`,{resolve:ja,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Ma}),Zs=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Qs=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]))?))?$`),$s=N(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Pa,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),ec=_a(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),tc=_a(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Fa(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),nc=_a(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),rc=va(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Fa,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),ic=va(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),ac=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=za(e),n=[],r=La(),i=Ra();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==R)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},oc=new ac([gs,ec,rc]),new ac([...oc.tags,ys,Ds,Is,Ws]),sc=new ac([...oc.tags,vs,ws,Ns,Vs]),cc=new ac([...oc.tags,xs,As,Rs,qs,$s,Js,Xs,tc,nc,ic]),cc.withTags({...Rs,resolve:(e,t,n)=>{let r=Rs.resolve(e,t,n);return r===R?Ns.resolve(e,t,n):r}},{...qs,resolve:(e,t,n)=>{let r=qs.resolve(e,t,n);return r===R?Vs.resolve(e,t,n):r}}),va(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Fa(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),va(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Fa,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Ba(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Ba(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),lc={maxLength:79,indent:1,linesBefore:3,linesAfter:2},uc=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Wa(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Wa(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,Gc=`[,\\[\\]{}]`,Kc=Hc,qc=`(?:(?!${Gc})${Hc})`,Jc=`(?:(?:(?!${Wc})${Hc})|[?:-](?=${Kc}))`,Yc=`(?:(?:(?!${Wc})${Hc})|[?:-](?=${qc}))`,Xc=`(?:(?:(?![:#])${Kc})|:(?=${Kc}))#*`,Zc=`(?:(?:(?![:#])${qc})|:(?=${qc}))#*`,Qc=`(?:${Bc}*${Xc})*`,$c=`(?:${Bc}*${Zc})*`,el=`${Jc}#*${Qc}`,tl=`${Yc}#*${$c}`,nl=el,rl=tl,il=`\\n+${Xc}${Qc}`,al=`\\n+${Zc}${$c}`,ol=`${el}(?:${il})*`,sl=`${tl}(?:${al})*`,RegExp(`^(?:${ol})$`,`u`),RegExp(`^(?:${sl})$`,`u`),RegExp(`^(?:${nl})$`,`u`),RegExp(`^(?:${rl})$`,`u`),RegExp(`^(?:${Uc})*$`,`u`),RegExp(`^(?:${Uc}|\\n)*$`,`u`),RegExp(`^(?:${Vc}|\\n)*$`,`u`),cl={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(Ic).map(e=>Reflect.get(Ic,e)),tagBeforeAnchor:!1},{...cl},z.DOCUMENT,z.SEQUENCE,z.MAPPING,z.SCALAR,z.ALIAS,z.POP,B.PLAIN,B.SINGLE_QUOTED,B.DOUBLE_QUOTED,B.LITERAL_BLOCK,B.FOLDED_BLOCK,dc.BLOCK,dc.FLOW,fc.CLIP,fc.STRIP,fc.KEEP})),ul=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var c,l,u,d,f,p,m,h=!1,g=e.bMarks[a]+e.tShift[a],_=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(c=g+1;c<=_;c++)if(n[(c-g)%i]!==e.src[c]){m=c+1;break}if(u=Math.floor((c-g)/i),u<3)return!1;if(c-=(c-g)%i,s)return!0;for(l=a;l++,!(l>=o||e.src.slice(g,_)===`...`||(g=e.bMarks[l]+e.tShift[l],_=e.eMarks[l],g<_&&e.sCount[l]=4)){for(c=g+1;c<=_&&n[(c-g)%i]===e.src[c];c++);if(!(Math.floor((c-g)/i){let t=``;e.use(_l.default,n=>{let r=fl(n);t=r===void 0?``:pl(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`\n${t}\n
\n`}}function fl(e){try{let t=os(e,{schema:sc});if(typeof t==`object`&&t&&!Array.isArray(t)&&Object.keys(t).length>0)return t}catch{}}function pl(e,t){let n=Object.entries(e);return n.length===0?``:`\n${n.map(([e,n])=>`${t(e)}${ml(n,t)}`).join(` -`)}\n`}function ml(e,t){if(e==null)return``;if(e instanceof Date)return t(hl(e));if(Array.isArray(e))return e.every(gl)?e.map(e=>ml(e,t)).join(`, `):`
    ${e.map(e=>`
  • ${ml(e,t)}
  • `).join(``)}
`;if(typeof e==`object`){let n=pl(e,t);return n===``?``:`${n}
`}return t(String(e))}function hl(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function gl(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var _l,vl=o((()=>{ll(),_l=u(ul())}));function yl(e,t={}){return e??t}function bl(e,t=!0){return e??t}function xl(e){if(e){if(!Array.isArray(e)||!e.every(e=>typeof e==`object`&&!!e&&`left`in e&&typeof e.left==`string`&&`right`in e&&typeof e.right==`string`&&`display`in e&&typeof e.display==`boolean`))throw TypeError(`Invalid mathDelimiters setting: expected an array of { left: string, right: string, display: boolean }`);return e}}function Sl(e,t,n){if(e==null)return n;let r=[`default`,`base`,`dark`,`forest`,`neutral`,`neo`,`neo-dark`,`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`null`].find(t=>t===e);if(r===void 0)throw TypeError(`Invalid mermaid.${t} setting: expected a supported Mermaid theme name`);return r}var Cl,H,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl=o((()=>{Cl={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},H=yl(yl(f.MarkEdit.userSettings)[Cl.rootValueKey]),wl=yl(H.changeMode),Tl=yl(H.markdownIt),El=yl(H.mermaid),Dl=bl(H.syncScroll),H.hidePreviewButtons,H.syntaxAutoDetect,Ol=bl(H.imageHoverPreview,!1),kl=bl(H.inlineImages,!1),Al=Array.isArray(H.inlineRendering)?H.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):kl?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],jl=H.themeName??`github`,Ml=jl===`none`,Nl=H.styledHtmlColorScheme??H.styledHtmlTheme??`auto`,xl(H.mathDelimiters),Pl=wl.modes??Cl.defaultModes,Fl=yl(wl.hotKey),Il=Tl.preset??Cl.defaultPreset,Ll=yl(Tl.options),Sl(El.lightTheme,`lightTheme`,`default`),Sl(El.darkTheme,`darkTheme`,`dark`)})),zl=o((()=>{Rl()})),Bl,Vl=o((()=>{Bl=`.markdown-body { +`)}\n`}function ml(e,t){if(e==null)return``;if(e instanceof Date)return t(hl(e));if(Array.isArray(e))return e.every(gl)?e.map(e=>ml(e,t)).join(`, `):`
    ${e.map(e=>`
  • ${ml(e,t)}
  • `).join(``)}
`;if(typeof e==`object`){let n=pl(e,t);return n===``?``:`${n}
`}return t(String(e))}function hl(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function gl(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var _l,vl=o((()=>{ll(),_l=u(ul())}));function yl(e){e.core.ruler.after(`anchor`,`markedit_anchors`,e=>{let t=e.src.split(` +`);e.tokens.forEach((n,r)=>{let i=e.tokens[r+1];if(n.type!==`heading_open`||i?.type!==`inline`||n.map===null)return;let a=t[n.map[0]],o=n.markup.startsWith(`#`)?a.slice(a.indexOf(n.markup)).replace(/ {0,3}#+ +/,``):i.content.split(` +`)[0].trim(),s=(o.length>64?o.substring(0,64)+`...`:o).normalize(`NFKD`).trim().toLowerCase().replace(/[^\p{Letter}\p{Number}\s\-_]/gu,``).replace(/\s+/g,`-`);n.attrSet(Sl,s)})})}function bl(e,t,n){if(!t.startsWith(`#`))return;let r=xl(t.substring(1)),i=r.toLowerCase();return e.find(e=>n(e,`data-markedit-anchor`)===null&&n(e,`id`)===r)??e.find(e=>n(e,`data-markedit-anchor`)===i)??e.find(e=>n(e,`id`)===r)??e.find(e=>{let t=n(e,`id`);return t!==null&&xl(String(t))===r})}function xl(e){try{return decodeURIComponent(e)}catch{return e}}var Sl,Cl=o((()=>{Sl=`data-markedit-anchor`}));function wl(e,t={}){return e??t}function Tl(e,t=!0){return e??t}function El(e){if(e){if(!Array.isArray(e)||!e.every(e=>typeof e==`object`&&!!e&&`left`in e&&typeof e.left==`string`&&`right`in e&&typeof e.right==`string`&&`display`in e&&typeof e.display==`boolean`))throw TypeError(`Invalid mathDelimiters setting: expected an array of { left: string, right: string, display: boolean }`);return e}}function Dl(e,t,n){if(e==null)return n;let r=[`default`,`base`,`dark`,`forest`,`neutral`,`neo`,`neo-dark`,`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`null`].find(t=>t===e);if(r===void 0)throw TypeError(`Invalid mermaid.${t} setting: expected a supported Mermaid theme name`);return r}var Ol,H,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul=o((()=>{Ol={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},H=wl(wl(f.MarkEdit.userSettings)[Ol.rootValueKey]),kl=wl(H.changeMode),Al=wl(H.markdownIt),jl=wl(H.mermaid),Ml=Tl(H.syncScroll),H.hidePreviewButtons,H.syntaxAutoDetect,Nl=Tl(H.imageHoverPreview,!1),Pl=Tl(H.inlineImages,!1),Fl=Array.isArray(H.inlineRendering)?H.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):Pl?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],Il=H.themeName??`github`,Ll=Il===`none`,Rl=H.styledHtmlColorScheme??H.styledHtmlTheme??`auto`,El(H.mathDelimiters),zl=kl.modes??Ol.defaultModes,Bl=wl(kl.hotKey),Vl=Al.preset??Ol.defaultPreset,Hl=wl(Al.options),Dl(jl.lightTheme,`lightTheme`,`default`),Dl(jl.darkTheme,`darkTheme`,`dark`)})),Wl=o((()=>{Ul()})),Gl,Kl=o((()=>{Gl=`.markdown-body { --base-size-16: 1rem; --base-size-24: 1.5rem; --base-size-4: 0.25rem; @@ -1169,7 +1171,7 @@ .markdown-body .highlight pre:has(+.zeroclipboard-container) { min-height: 52px; } -`})),Hl,Ul=o((()=>{Hl=`.markdown-body { +`})),ql,Jl=o((()=>{ql=`.markdown-body { /* light */ color-scheme: light; --fgColor-danger: #d1242f; @@ -1223,7 +1225,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),Wl,Gl=o((()=>{Wl=`.markdown-body { +`})),Yl,Xl=o((()=>{Yl=`.markdown-body { /* dark */ color-scheme: dark; --fgColor-accent: #4493f8; @@ -1277,7 +1279,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),Kl,ql=o((()=>{Kl=`.markdown-body { +`})),Zl,Ql=o((()=>{Zl=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #ffc60015; @@ -1301,7 +1303,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),Jl,Yl=o((()=>{Jl=`.markdown-body { +`})),$l,eu=o((()=>{$l=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f1fa8c15; @@ -1325,7 +1327,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),Xl,Zl=o((()=>{Xl=`.markdown-body { +`})),tu,nu=o((()=>{tu=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #fff8c5; @@ -1349,7 +1351,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),Ql,$l=o((()=>{Ql=`.markdown-body { +`})),ru,iu=o((()=>{ru=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #bb800926; @@ -1373,7 +1375,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),eu,tu=o((()=>{eu=`.markdown-body { +`})),au,ou=o((()=>{au=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #ecc48d1a; @@ -1397,7 +1399,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),nu,ru=o((()=>{nu=`.markdown-body { +`})),su,cu=o((()=>{su=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #ea9d341a; @@ -1421,7 +1423,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),iu,au=o((()=>{iu=`.markdown-body { +`})),lu,uu=o((()=>{lu=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f6c1771a; @@ -1445,7 +1447,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),ou,su=o((()=>{ou=`.markdown-body { +`})),du,fu=o((()=>{du=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #b5890026; @@ -1469,7 +1471,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),cu,lu=o((()=>{cu=`.markdown-body { +`})),pu,mu=o((()=>{pu=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #b5890026; @@ -1493,7 +1495,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),uu,du=o((()=>{uu=`.markdown-body { +`})),hu,gu=o((()=>{hu=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f4eee41a; @@ -1517,7 +1519,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),fu,pu=o((()=>{fu=`.markdown-body { +`})),_u,vu=o((()=>{_u=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #df86181a; @@ -1541,7 +1543,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),mu,hu=o((()=>{mu=`.markdown-body { +`})),yu,bu=o((()=>{yu=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f7ecb51a; @@ -1565,7 +1567,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),gu,_u=o((()=>{gu=`.markdown-body { +`})),xu,Su=o((()=>{xu=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #fff8c5; @@ -1589,7 +1591,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),vu,yu=o((()=>{vu=`.markdown-body { +`})),Cu,wu=o((()=>{Cu=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #d0bf691a; @@ -1613,7 +1615,7 @@ --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),bu,xu=o((()=>{bu=`.markdown-alert { +`})),Tu,Eu=o((()=>{Tu=`.markdown-alert { padding: 0.5rem 1rem; margin-bottom: 16px; color: inherit; @@ -1682,7 +1684,7 @@ .markdown-alert.markdown-alert-caution .markdown-alert-title { color: var(--color-caution); } -`})),Su,Cu=o((()=>{Su=`:root { +`})),Du,Ou=o((()=>{Du=`:root { --color-note: #0969da; --color-tip: #1a7f37; --color-warning: #9a6700; @@ -1690,7 +1692,7 @@ --color-caution: #d1242f; --color-important: #8250df; } -`})),wu,Tu=o((()=>{wu=`:root { +`})),ku,Au=o((()=>{ku=`:root { --color-note: #2f81f7; --color-tip: #3fb950; --color-warning: #d29922; @@ -1698,7 +1700,7 @@ --color-caution: #f85149; --color-important: #a371f7; } -`})),Eu,Du=o((()=>{Eu=`.code-copy-wrapper { +`})),ju,Mu=o((()=>{ju=`.code-copy-wrapper { position: relative; } @@ -1725,17 +1727,16 @@ .code-copy-button:active { background: var(--borderColor-default, ButtonBorder); } -`}));function Ou(e=`auto`){if(Ml)return``;let t=Pu[jl]??Pu.github,n=t.light??t.dark,r=t.dark??t.light,i=b(n)??`#ffffff`,a=b(r)??`#0d1117`;return[`.markdown-body { padding: 25px; }`,...Nu(e,`body { background: ${i}; }`,`body { background: ${a}; }`)].join(` -`)}function ku(e,t){let n=Pu[e.replace(/-(light|dark|dawn)$/,``)]??Pu.github,r=t?n.dark??n.light:n.light??n.dark;return`${Bl}\n${r}`}function Au(e=`auto`){if(Ml)return[`:root { color-scheme: ${e===`auto`?`light dark`:e}; }`,`body, .markdown-body { background: Canvas; color: CanvasText; }`].join(` -`);let t=Pu[jl]??Pu.github,n=t.light??t.dark,r=t.dark??t.light;return[Bl,...Nu(e,n,r)].join(` -`)}function ju(e=`auto`){return[bu,...Nu(e,Su,wu)].join(` -`)}function Mu(){return Eu}function Nu(e,t,n){let r=[];switch(e){case`light`:r.push(t);break;case`dark`:r.push(n);break;case`auto`:r.push(` +`}));function Nu(e=`auto`){if(Ll)return``;let t=zu[Il]??zu.github,n=t.light??t.dark,r=t.dark??t.light,i=b(n)??`#ffffff`,a=b(r)??`#0d1117`;return[`.markdown-body { padding: 25px; }`,...Ru(e,`body { background: ${i}; }`,`body { background: ${a}; }`)].join(` +`)}function Pu(e,t){let n=zu[e.replace(/-(light|dark|dawn)$/,``)]??zu.github,r=t?n.dark??n.light:n.light??n.dark;return`${Gl}\n${r}`}function Fu(e=`auto`){if(Ll)return[`:root { color-scheme: ${e===`auto`?`light dark`:e}; }`,`body, .markdown-body { background: Canvas; color: CanvasText; }`].join(` +`);let t=zu[Il]??zu.github,n=t.light??t.dark,r=t.dark??t.light;return[Gl,...Ru(e,n,r)].join(` +`)}function Iu(e=`auto`){return[Tu,...Ru(e,Du,ku)].join(` +`)}function Lu(){return ju}function Ru(e,t,n){let r=[];switch(e){case`light`:r.push(t);break;case`dark`:r.push(n);break;case`auto`:r.push(` ${t} @media (prefers-color-scheme: dark) { ${n} - }`)}return r}var Pu,Fu=o((()=>{C(),Rl(),Vl(),Ul(),Gl(),ql(),Yl(),Zl(),$l(),tu(),ru(),au(),su(),lu(),du(),pu(),hu(),_u(),yu(),xu(),Cu(),Tu(),Du(),Pu={github:{light:Hl,dark:Wl},cobalt:{dark:Kl},dracula:{dark:Jl},minimal:{light:Xl,dark:Ql},"night-owl":{dark:eu},"rose-pine":{light:nu,dark:iu},solarized:{light:ou,dark:cu},synthwave84:{dark:uu},"winter-is-coming":{light:fu,dark:mu},xcode:{light:gu,dark:vu}}}));function U(e){return Ru[e]}var Iu,Lu,Ru,zu=o((()=>{Iu={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},Lu=[`default`,`zh-CN`,`zh-TW`],Ru=Iu[(()=>{let e=navigator.language;return Lu.includes(e)?e:`default`})()]}));function Bu(){return typeof f.MarkEdit.addExtension==`function`}var Vu=o((()=>{}));async function Hu(e,t=!0){return await Zu,W.render(e,{lineInfo:t})}async function Uu(e){await Zu;let t={lineInfo:!1},n=W.parse(e,t),r=[];for(let e=0;e{let n=i[t+1];if(e.type!==`heading_open`||n?.type!==`inline`||e.map===null)return!1;let o=a[e.map[0]],s=e.markup.startsWith(`#`)?o.slice(o.indexOf(e.markup)).replace(/ {0,3}#+ +/,``):n.content.split(` -`)[0].trim(),c=(s.length>64?s.substring(0,64)+`...`:s).normalize(`NFKD`).trim().toLowerCase().replace(/[^\p{Letter}\p{Number}\s\-_]/gu,``).replace(/\s+/g,`-`);return W.normalizeLink(`#${c}`).substring(1).toLowerCase()===r})??i.find(e=>e.type===`heading_open`&&e.attrGet(`id`)===n))?.map?.[0]}function Gu(e,t){e()}async function Ku(e){let t=e=>``;return[``,`
\n${e}\n
`,t(Ou(Nl)),t(Au(Nl)),t(ju(Nl)),t(Mu()),``].join(` -`)}var qu,Ju,W,Yu,Xu,Zu,Qu=o((()=>{Ri(),ea(),qu=u(ta()),da(),Ju=u(fa()),ga(),vl(),zl(),Fu(),zu(),Vu(),Rl(),W=Li(Il,{html:!0,breaks:!0,linkify:!0,...Ll}),W.linkify.set({fuzzyLink:!0,urlAuth:!0}),Yu=[],W.use(dl()),W.use(Gi),W.use(qu.default,{matcher:e=>!e.startsWith(`#`),attrs:{target:`_blank`,rel:`noopener`}}),W.use(ua),W.use(Ju.default,{enabled:Bu(),label:!0}),W.use(ha),Xu=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`]),Zu=Promise.all(Yu).then(()=>{for(let e of Xu){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>{let o=e[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))),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}for(let e of[`fence`,`code_block`]){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>` + }`)}return r}var zu,Bu=o((()=>{C(),Ul(),Kl(),Jl(),Xl(),Ql(),eu(),nu(),iu(),ou(),cu(),uu(),fu(),mu(),gu(),vu(),bu(),Su(),wu(),Eu(),Ou(),Au(),Mu(),zu={github:{light:ql,dark:Yl},cobalt:{dark:Zl},dracula:{dark:$l},minimal:{light:tu,dark:ru},"night-owl":{dark:au},"rose-pine":{light:su,dark:lu},solarized:{light:du,dark:pu},synthwave84:{dark:hu},"winter-is-coming":{light:_u,dark:yu},xcode:{light:xu,dark:Cu}}}));function U(e){return Uu[e]}var Vu,Hu,Uu,Wu=o((()=>{Vu={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},Hu=[`default`,`zh-CN`,`zh-TW`],Uu=Vu[(()=>{let e=navigator.language;return Hu.includes(e)?e:`default`})()]}));function Gu(){return typeof f.MarkEdit.addExtension==`function`}var Ku=o((()=>{}));async function qu(e,t=!0){return await nd,W.render(e,{lineInfo:t})}async function Ju(e){await nd;let t={lineInfo:!1},n=W.parse(e,t),r=[];for(let e=0;ee.type===`heading_open`),t,(e,t)=>e.attrGet(t))?.map?.[0]):void 0}function Xu(e,t){e()}async function Zu(e){let t=e=>``;return[``,`
\n${e}\n
`,t(Nu(Rl)),t(Fu(Rl)),t(Iu(Rl)),t(Lu()),``].join(` +`)}var Qu,$u,W,ed,td,nd,rd=o((()=>{Ri(),ea(),Qu=u(ta()),da(),$u=u(fa()),ga(),vl(),Cl(),Wl(),Bu(),Wu(),Ku(),Ul(),W=Li(Vl,{html:!0,breaks:!0,linkify:!0,...Hl}),W.linkify.set({fuzzyLink:!0,urlAuth:!0}),ed=[],W.use(dl()),W.use(Gi),W.use(yl),W.use(Qu.default,{matcher:e=>!e.startsWith(`#`),attrs:{target:`_blank`,rel:`noopener`}}),W.use(ua),W.use($u.default,{enabled:Gu(),label:!0}),W.use(ha),td=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`]),nd=Promise.all(ed).then(()=>{for(let e of td){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>{let o=e[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))),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}for(let e of[`fence`,`code_block`]){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>`
${t===void 0?a.renderToken(e,n,r):t(e,n,r,i,a)} -
`}})}));function $u(e){let t=id.parseFromString(e,`text/html`);return t.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=ed(t))}),t.body.innerHTML}function ed(e){return e.includes(`://`)||e.startsWith(`//`)||e.startsWith(`data:image/`)?e:`${ad}://${e}`}function td(e){typeof f.MarkEdit.getFileInfo==`function`&&(document.addEventListener(`mousemove`,e=>{cd.panelPresenter!==void 0&&(clearTimeout(cd.panelPresenter),cd.panelPresenter=void 0),cd.panelPresenter=setTimeout(()=>{let t=e.target,n=t?.closest(`.cm-md-link`),r=n?.dataset.linkUrl??n?.innerText??``;n!==null&&ae(r)?nd(n,r):t?.classList.contains(od)||rd()},600)}),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&rd(!1)}),e.addEventListener(`scroll`,()=>rd()))}async function nd(e,t){if(e===cd.focusedElement)return;let n=(await f.MarkEdit.getFileInfo())?.parentPath;if(n===void 0)return;let r=oe(n,t),i=await f.MarkEdit.getFileObject(r);if(i===void 0)return;let a=e.getBoundingClientRect(),o=document.createElement(`img`);o.className=od,o.style.position=`fixed`,o.style.left=`${a.left}px`,o.style.zIndex=`10000`,o.style.borderRadius=`5px`,o.style.opacity=`0`,o.style.transition=`opacity 120ms`,o.style.cursor=`pointer`,o.onclick=()=>{rd(),window.open(t,`_blank`)},o.onload=()=>{let e=Math.min(o.naturalHeight,240);o.style.height=`${e}px`,a.top>window.innerHeight-a.bottom?o.style.top=`${a.top-e-sd}px`:o.style.top=`${a.bottom+sd}px`,requestAnimationFrame(()=>{o.style.opacity=`1`})},o.src=`data:${i.mimeType??`image/png`};base64,${i.data}`,rd(!1),cd.focusedElement=e,document.body.appendChild(o)}function rd(e=!0){cd.focusedElement!==void 0&&(cd.focusedElement=void 0,document.querySelectorAll(`.${od}`).forEach(t=>{e?(t.style.opacity=`0`,t.addEventListener(`transitionend`,()=>t.remove(),{once:!0})):t.remove()}))}var id,ad,od,sd,cd,ld=o((()=>{C(),id=new DOMParser,ad=`image-loader`,od=`cm-md-image-preview`,sd=5,cd={panelPresenter:void 0,focusedElement:void 0}}));Qu(),ld(),C(),Rl();function ud(e,t){if(!Dl)return;vd.scrollUpdater!==void 0&&clearTimeout(vd.scrollUpdater);let n=f.MarkEdit.editorView.state.doc,r=f.MarkEdit.editorView.state.selection;vd.lastSourceScrollTop=e.scrollTop;let i=()=>{let{doc:i,selection:a}=f.MarkEdit.editorView.state,o=i===n&&!a.eq(r);n=i,r=a,!(!o&&Math.abs(e.scrollTop-vd.lastSourceScrollTop)<.5)&&(vd.lastSourceScrollTop=e.scrollTop,(o||!t.classList.contains(`overlay`))&&dd(e,t))};`onscrollend`in window?e.addEventListener(`scrollend`,i):e.addEventListener(`scroll`,()=>{vd.scrollUpdater!==void 0&&clearTimeout(vd.scrollUpdater),vd.scrollUpdater=setTimeout(i,100)})}function dd(e,t,n=!0){let{line:r,progress:i}=fd(e);pd(t,r,i,n)}function fd(e,t=0){let n=f.MarkEdit.editorView,r=n.lineBlockAtHeight(e.scrollTop+t),i=n.state.doc.lineAt(r.from).number-1,a=te(n.domAtPos(r.from).node);if(a===null)return{line:i,progress:0};let o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),c=o.top-s.top-t;return{line:i,progress:s.height>0?_d(c/s.height):0}}function pd(e,t,n,r=!0){if(t===0&&n===0)return ie(e,0,r);let i=Array.from(e.querySelectorAll(`[data-line-from]`)),a=md(i,t);if(a!==void 0){let{from:i,to:o}=x(a);return re(e,a,hd(t,n,i,o),r)}if(t===0)return ie(e,0,r);let{beforeBlock:o,afterBlock:s}=gd(i,t);if(o!==void 0&&s!==void 0){let i=x(o),a=x(s),c=ne(e,o)+o.offsetHeight,l=ne(e,s),u=a.from-i.to,d=t-i.to+n,f=u>0?_d(d/u):0;return ie(e,c+(l-c)*f,r)}if(o!==void 0)return re(e,o,1,r);if(s!==void 0)return re(e,s,0,r)}function md(e,t){return e.find(e=>{let{from:n,to:r}=x(e);return t>=n&&t<=r})}function hd(e,t,n,r){let i=r-n;return i<1?e===n?t:0:_d((e-n+t)/i)}function gd(e,t){let n,r;for(let i of e){let{from:e,to:a}=x(i);if(at){r=i;break}}return{beforeBlock:n,afterBlock:r}}function _d(e){return Math.max(0,Math.min(1,e))}var vd={lastSourceScrollTop:0,scrollUpdater:void 0};function yd(e){let t=e.match(/^((?:\s{0,3}>\s*)*\s*(?:[-*+]|\d+[.)])\s+\[)([ xX])\](?= )/);return t===null?null:{offset:t[1].length,replacement:t[2]===` `?`x`:` `}}C();function bd(e,t){let n=(t.target instanceof Element?t.target.closest(`a`):null)?.getAttribute(`href`)??``;if(!n.startsWith(`#`))return!1;let r=xd(e,n);return r&&t.preventDefault(),r}function xd(e,t){if(!t.startsWith(`#`))return!1;let n=Sd(t.substring(1)),r=[...e.querySelectorAll(`[id]`)].find(e=>e.id===n);return r!==void 0&&(re(e,r,0,!1),!0)}function Sd(e){try{return decodeURIComponent(e)}catch{return e}}var Cd={containerClass:`markdown-container`,gutterViewClass:`markdown-gutter`,dividerViewClass:`markdown-divider`,previewPaneClass:`markdown-body`},wd={viewModeCacheKey:`ui.view-mode`,previewPageZoomKey:`ui.preview-page-zoom`};function Td(e,t,n){if(![`Link`,`Image`,`Autolink`].includes(e.name))return;let r=Nd(e.node);if(e.name===`Autolink`){if(r.length<2)return;let n=t.sliceDoc(r[0].to,r[1].from);return/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(n)?{hidden:r.map(e=>({from:e.from,to:e.to})),label:{from:r[0].to,to:r[1].from},image:!1,destination:n,highlightTags:Od(e.node)}:void 0}if(r.length<2||Ed(e,t).length>0)return;let i=e.node.getChild(`LinkLabel`);if(r.length===2&&(i===null||i.to-i.from===2))return;let a=e.node.getChild(`URL`);if(r.length>2&&a===null||[`(`,`[`].includes(t.sliceDoc(e.to,e.to+1)))return;let o=r[0],s=r[1],c=t.sliceDoc(o.to,s.from);if(!/\S/.test(c)||c.startsWith(`^`)&&e.to===s.to)return;let l=a===null?Ad(i,t,n):t.sliceDoc(a.from,a.to);if(e.name!==`Image`||a!==null||l!==``)return{hidden:[{from:o.from,to:o.to},{from:s.from,to:e.to}],label:{from:o.to,to:s.from},image:e.name===`Image`,destination:l,highlightTags:Od(e.node)}}function Ed(e,t){if(e.name!==`Link`)return[];let n=t.sliceDoc(e.from,e.to),r=/\[\^[^\][\s]+\]/g,i=[];for(let e=r.exec(n);e!==null;e=r.exec(n))i.push(e);return i.map(e=>e[0]).join(``)===n?i.map(t=>({from:e.from+t.index,to:e.from+t.index+t[0].length,label:t[0].slice(1,-1),highlightTags:Od(e.node)})):[]}function Dd(e,t){if(e.name===`LinkDefinition`&&!zm(t,e.from,e.to+1)&&Pd.test(t.sliceDoc(e.from,e.to))&&t.sliceDoc(e.to,e.to+1)===`:`)return{hidden:[{from:e.from+1,to:e.from+2}],label:t.sliceDoc(e.from+1,e.to-1),highlightTags:Od(e.node),suffixPosition:e.to+1,suffix:/^[ \t]/.test(t.sliceDoc(e.to+1,e.to+2))?``:` `}}function Od(e){let t=[];for(let n=e;n!==null;n=n.parent)t.unshift(n);let n=new Set;for(let r of t){let t=(0,h.getStyleTags)(r);t!==null&&(r===e||t.inherit)&&t.tags.forEach(e=>n.add(e))}return[...n]}function kd(e){let t=(0,m.syntaxTree)(e),n;return r=>{let i=Fd.get(t);return n??=i?.doc===e.doc?i.destinations:void 0,n===void 0&&(n=jd(e,t),Fd.set(t,{doc:e.doc,destinations:n})),n.get(Md(r))??``}}function Ad(e,t,n){return e===null?``:n(t.sliceDoc(e.from+1,e.to-1))}function jd(e,t){let n=new Map;return t.iterate({enter:t=>{if(t.name!==`LinkDefinitionID`)return;let r=Md(e.sliceDoc(t.from,t.to));if(n.has(r))return;let i=e.doc.lineAt(t.to),a=e.sliceDoc(t.node.parent?.to??t.to,i.to),o=/^:\s*(?:<([^>]*)>|(\S+))/.exec(a),s=o?.[1]??o?.[2];s!==void 0&&n.set(r,s)}}),n}function Md(e){return e.trim().replace(/\s+/g,` `).toLowerCase()}function Nd(e){let t=[];for(let n=e.firstChild;n!==null;n=n.nextSibling)n.name===`LinkMark`&&t.push(n);return t}var Pd,Fd,Id=o((()=>{ah(),Pd=/^\[\^[^\][\s]+\]$/,Fd=new WeakMap}));function Ld(e,t){let n=Rd(e);if(n===void 0||Bm(t,e.from,e.to))return[];let r=n.hidden.map(e=>Bd.range(e.from,e.to));if(e.name!==`InlineCode`)return r;let i=e.node.firstChild?.to,a=e.node.lastChild?.from;return i===void 0||a===void 0||i>=a||(a-i===1?r.push(Wd.range(i,a)):(r.push(Hd.range(i,i+1)),r.push(Ud.range(a-1,a)))),r}function Rd(e){let t=zd.get(e.name),n=t===void 0?[]:e.node.getChildren(t);if(n.length>0)return{hidden:n}}var zd,Bd,Vd,Hd,Ud,Wd,Gd=o((()=>{ah(),zd=new Map([[`Emphasis`,`EmphasisMark`],[`StrongEmphasis`,`EmphasisMark`],[`Strikethrough`,`StrikethroughMark`],[`InlineCode`,`CodeMark`]]),Bd=d.Decoration.mark({class:`cm-md-syntaxHiddenSource`}),Vd=`cm-md-syntaxHiddenInlineCodeBoundary`,Hd=d.Decoration.mark({class:`${Vd} cm-md-syntaxHiddenInlineCodeStart`}),Ud=d.Decoration.mark({class:`${Vd} cm-md-syntaxHiddenInlineCodeEnd`}),Wd=d.Decoration.mark({class:`${Vd} cm-md-syntaxHiddenInlineCodeStart cm-md-syntaxHiddenInlineCodeEnd`})})),Kd=o((()=>{})),qd=o((()=>{Qu()}));function Jd(e,t){this.v=e,this.k=t}function Yd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:Af;if(ff&&ff(e,null),!Ef(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(pf(t)||(t[r]=e),i=e)}e[i]=!0}return e}function rf(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:hp(),t=e=>uf(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==X.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=sf(d,`cloneNode`),p=sf(d,`remove`),m=sf(d,`removeAttributeNode`),h=sf(d,`nextSibling`),g=sf(d,`childNodes`),_=sf(d,`parentNode`),v=sf(d,`shadowRoot`),y=sf(d,`attributes`),b=o&&o.prototype?sf(o.prototype,`nodeType`):null,ee=o&&o.prototype?sf(o.prototype,`nodeName`):null,te=o&&o.prototype?sf(o.prototype,`ownerDocument`):null,x=function(e){return b?b(e):e.nodeType},ne=function(e){return ee?ee(e):e.nodeName},re=cf(d,`namespaceURI`),ie=function(e){return re?re(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,ae=``,oe,se=!1,ce=0,le=function(){if(ce>0)throw Hf(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},C=function(e){le(),ce++;try{return S.createHTML(e)}finally{ce--}},ue=function(e){le(),ce++;try{return S.createScriptURL(e)}finally{ce--}},de=function(){return se||=(oe=gp(u,i),!0),oe},fe=n,pe=fe.implementation,me=fe.createNodeIterator,he=fe.createDocumentFragment,ge=fe.getElementsByTagName,_e=r.importNode,w=_p();t.isSupported=typeof df==`function`&&typeof _==`function`&&pe&&pe.createHTMLDocument!==void 0;let ve=ep,ye=tp,be=np,xe=rp,Se=ip,Ce=op,we=sp,Te=lp,Ee=ap,T=null,De=K({},[...Uf,...Wf,...Gf,...qf,...Yf]),E=null,Oe=K({},[...Xf,...Zf,...Qf,...$f]),ke=Object.seal(gf(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}})),Ae=null,je=null,Me=Object.seal(gf(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ne=!0,Pe=!0,Fe=!1,Ie=!0,Le=!1,Re=!0,ze=!1,Be=!1,Ve=null,He=null,Ue=!1,We=!1,Ge=!1,Ke=!1,qe=!0,Je=!1,Ye=`user-content-`,Xe=!0,Ze=!1,D=null,Qe={},$e=null,et=K({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),tt=null,nt=K({},[`audio`,`video`,`img`,`source`,`image`,`track`]),rt=null,it=K({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),at=`http://www.w3.org/1998/Math/MathML`,ot=`http://www.w3.org/2000/svg`,st=`http://www.w3.org/1999/xhtml`,ct=st,O=!1,lt=null,ut=K({},[at,ot,st],jf),dt=q([`mi`,`mo`,`mn`,`ms`,`mtext`]),ft=K({},dt),pt=q([`annotation-xml`]),mt=K({},pt),ht=K({},[`title`,`style`,`font`,`a`,`script`]),gt=null,_t=[`application/xhtml+xml`,`text/html`],k=null,vt=null,yt=n.createElement(`form`),bt=function(e){return e instanceof RegExp||e instanceof Function},xt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vt&&vt===e)return;(!e||typeof e!=`object`)&&(e={}),e=af(e),gt=_t.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,k=gt===`application/xhtml+xml`?jf:Af,T=vp(e,`ALLOWED_TAGS`,De,{transform:k}),E=vp(e,`ALLOWED_ATTR`,Oe,{transform:k}),lt=vp(e,`ALLOWED_NAMESPACES`,ut,{transform:jf}),rt=vp(e,`ADD_URI_SAFE_ATTR`,it,{transform:k,base:it}),tt=vp(e,`ADD_DATA_URI_TAGS`,nt,{transform:k,base:nt}),$e=vp(e,`FORBID_CONTENTS`,et,{transform:k}),Ae=vp(e,`FORBID_TAGS`,af({}),{transform:k}),je=vp(e,`FORBID_ATTR`,af({}),{transform:k}),Qe=Bf(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?af(e.USE_PROFILES):e.USE_PROFILES:!1,Ne=e.ALLOW_ARIA_ATTR!==!1,Pe=e.ALLOW_DATA_ATTR!==!1,Fe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=e.SAFE_FOR_TEMPLATES||!1,Re=e.SAFE_FOR_XML!==!1,ze=e.WHOLE_DOCUMENT||!1,We=e.RETURN_DOM||!1,Ge=e.RETURN_DOM_FRAGMENT||!1,Ke=e.RETURN_TRUSTED_TYPE||!1,Ue=e.FORCE_BODY||!1,qe=e.SANITIZE_DOM!==!1,Je=e.SANITIZE_NAMED_PROPS||!1,Xe=e.KEEP_CONTENT!==!1,Ze=e.IN_PLACE||!1,Ee=lf(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ap,ct=typeof e.NAMESPACE==`string`?e.NAMESPACE:st,ft=yp(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>K({},dt)),mt=yp(e,`HTML_INTEGRATION_POINTS`,()=>K({},pt));let t=yp(e,`CUSTOM_ELEMENT_HANDLING`,()=>gf(null));if(ke=gf(null),Bf(t,`tagNameCheck`)&&bt(t.tagNameCheck)&&(ke.tagNameCheck=t.tagNameCheck),Bf(t,`attributeNameCheck`)&&bt(t.attributeNameCheck)&&(ke.attributeNameCheck=t.attributeNameCheck),Bf(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),J(ke),Le&&(Pe=!1),Ge&&(We=!0),Qe&&(T=K({},Yf),E=gf(null),Qe.html===!0&&(K(T,Uf),K(E,Xf)),Qe.svg===!0&&(K(T,Wf),K(E,Zf),K(E,$f)),Qe.svgFilters===!0&&(K(T,Gf),K(E,Zf),K(E,$f)),Qe.mathMl===!0&&(K(T,qf),K(E,Qf),K(E,$f))),Me.tagCheck=null,Me.attributeCheck=null,Bf(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Me.tagCheck=e.ADD_TAGS:Ef(e.ADD_TAGS)&&(T===De&&(T=af(T)),K(T,e.ADD_TAGS,k))),Bf(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Me.attributeCheck=e.ADD_ATTR:Ef(e.ADD_ATTR)&&(E===Oe&&(E=af(E)),K(E,e.ADD_ATTR,k))),Bf(e,`ADD_FORBID_CONTENTS`)&&Ef(e.ADD_FORBID_CONTENTS)&&($e===et&&($e=af($e)),K($e,e.ADD_FORBID_CONTENTS,k)),Xe&&(T[`#text`]=!0),ze&&K(T,[`html`,`head`,`body`]),T.table&&(K(T,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Hf(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Hf(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{ae=C(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,ae=``):(S===void 0&&(S=de()),S&&typeof ae==`string`&&(ae=C(``)));q&&q(e),vt=e},St=K({},[...Wf,...Gf,...Kf]),Ct=K({},[...qf,...Jf]),wt=function(e,t,n){return t.namespaceURI===st?e===`svg`:t.namespaceURI===at?e===`svg`&&(n===`annotation-xml`||ft[n]):!!St[e]},Tt=function(e,t,n){return t.namespaceURI===st?e===`math`:t.namespaceURI===ot?e===`math`&&mt[n]:!!Ct[e]},Et=function(e,t,n){return t.namespaceURI===ot&&!mt[n]||t.namespaceURI===at&&!ft[n]?!1:!Ct[e]&&(ht[e]||!St[e])},Dt=function(e){let t=ie(e),n=Af(ne(e)),r=_(e),i,a;return r&&x(r)===X.element?(i={namespaceURI:ie(r)},a=Af(ne(r))):(i={namespaceURI:ct},a=`template`),lt[t]?t===ot?wt(n,i,a):t===at?Tt(n,i,a):t===st?Et(n,i,a):!!(gt===`application/xhtml+xml`&<[t]):!1},Ot=function(e){Cf(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Hf(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},kt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},At=function(e){Pt(e);let t=g(e);t&&bf(wf(t),e=>{try{p(e)}catch{}});let n=x(e)===X.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&kt(e,r,i)}},jt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Cf(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(We||Ge)try{Ot(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Mt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||E[k(i)]||kt(e,r,i)}},Nt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&x(e)===X.element){let t=v(e);Jt(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Pt=function(e){Nt(e,e=>{x(e)===X.element&&Mt(e)})},Ft=function(e){let t=[];return Nt(e,e=>{t.push(e)},!0),t},It=function(e,t){let n=Df();bf(Ft(e),e=>{x(e)===X.element&&Of(n,e)}),bf(t,e=>{x(e)===X.element&&!kf(n,e)&&Mt(e)})},Lt=function(e,n){let r=!1;return bf(t.removed,t=>{t.element&&(r||=t.element===e,Pt(t.element))}),It(e,n),r},Rt=function(e,t){let n=D,r=null,i=()=>(r||(r=Df(),bf(t,e=>{Of(r,e)})),r);for(let t=0;;t++){let r=Ft(e),a=[e],o=!1;if(bf(r,e=>{x(e)===X.documentFragment?Cf(a,e):!o&&!kf(n,e)&&(o=kf(i(),e))}),!o)return;if(t>=8)throw Hf(`the tree kept changing during in-place sanitization; refusing to return it`);bf(a,(t,n)=>{zt(t,n>0,e,i())})}},zt=function(e,t,n,r){let i=Wt(e),a;for(;a=i.nextNode();)kf(r,a)&&!kf(D,a)&&(t&&Xt(w.uponSanitizeShadowNode,a,null),nn(a,n),un(a,n),Jt(a.content)&&dn(a.content))},Bt=function(e){D&&Of(D,e)},Vt=function(e,t){return Re?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Ht=function(e){Re&&Nt(e,e=>{let t=x(e);if(t===X.processingInstruction||t===X.comment&&Y(dp,e.data)){try{p(e)}catch{}return!1}if(t===X.element){let t=e,n=k(ne(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Vt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Ut=function(e){let t=null,r=null;if(Ue)e=``+e;else{let t=Mf(e,/^[\r\n\t ]+/);r=t&&t[0]}gt===`application/xhtml+xml`&&ct===st&&(e=``+e+``);let i=S?C(e):e;if(ct===st)try{t=new l().parseFromString(i,gt)}catch{}if(!t||!t.documentElement){t=pe.createDocument(ct,`template`,null);try{t.documentElement.innerHTML=O?ae:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),ct===st?ge.call(t,ze?`html`:`body`)[0]:ze?t.documentElement:a},Wt=function(e){let t=te?te(e):e.ownerDocument;return me.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},A=function(e){return e=Nf(e,ve,` `),e=Nf(e,ye,` `),e=Nf(e,be,` `),e},Gt=function(e){Kt(e);let t=e.querySelectorAll?.call(e,`template`);t&&bf(t,e=>{Jt(e.content)&&Gt(e.content)})},Kt=function(e){e.normalize();let t=te?te(e):e.ownerDocument,n=me.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=A(r.data),r=n.nextNode()},qt=function(e){let t=ee?ee(e):null;return typeof t!=`string`||k(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Jt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===X.documentFragment}catch{return!1}},Yt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Xt(e,n,r){e.length!==0&&bf(e,e=>{e.call(t,n,r,vt)})}let Zt=function(e,t){return!!(Re&&e.hasChildNodes()&&!Yt(e.firstElementChild)&&Y(up,e.textContent)&&Y(up,e.innerHTML)||Re&&mp[t]&&x(e)===X.element&&ie(e)===st&&(Yt(e.firstElementChild)||typeof e.textContent==`string`&&Y(up,e.textContent))||e.nodeType===X.processingInstruction||Re&&e.nodeType===X.comment&&Y(dp,e.data))},Qt=function(e,t){return e instanceof RegExp?Y(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},$t=function(e,t,n){if(!Ae[t]&&on(t)&&Qt(ke.tagNameCheck,t))return!1;if(Xe&&!$e[t]&&!$e[Af(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Ot(e),!0},en=function(e,t,n,r){return e.length===0?t:t===n||t===r?af(t):t},tn=function(e,t){return e===t||_(e)!==null?!1:(Ze&&Pt(e),!0)},nn=function(e,n){if(Bt(e),Xt(w.beforeSanitizeElements,e,null),tn(e,n))return!0;if(qt(e))return Ot(e),!0;let r=k(ne(e));if(T=en(w.uponSanitizeElement,T,De,Ve),Xt(w.uponSanitizeElement,e,{tagName:r,allowedTags:T}),tn(e,n))return!0;if(Zt(e,r))return Ot(e),!0;if(Ae[r]||!(Me.tagCheck instanceof Function&&Me.tagCheck(r))&&!T[r]){let t=$t(e,r,n);return t===!1&&(Xt(w.afterSanitizeElements,e,null),tn(e,n))?!0:t}if(x(e)===X.element&&!Dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Y(fp,e.innerHTML))return Ot(e),!0;if(Le&&e.nodeType===X.text){let n=A(e.textContent);e.textContent!==n&&(Cf(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Xt(w.afterSanitizeElements,e,null),tn(e,n)},rn=function(e,t,r){if(je[t]||Vt(t,e)||qe&&(t===`id`||t===`name`)&&(r in n||r in yt))return!1;let i=E[t]||Me.attributeCheck instanceof Function&&Me.attributeCheck(t,e);return Pe&&Y(xe,t)||Ne&&Y(Se,t)?!0:i?rt[t]||Y(Ee,Nf(r,we,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Pf(r,`data:`)===0&&tt[e]||Fe&&!Y(Ce,Nf(r,we,``))?!0:!r:on(e)&&Qt(ke.tagNameCheck,e)&&Qt(ke.attributeNameCheck,t,e)||t===`is`&&ke.allowCustomizedBuiltInElements&&Qt(ke.tagNameCheck,r)},an=K({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),on=function(e){return!an[Af(e)]&&Y(Te,e)},sn=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return C(r);case`TrustedScriptURL`:return ue(r)}return r},cn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!qt(e)||(Ot(e),!1)}catch{return jt(t,e),!1}},ln=function(e,t){return Re&&Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Af(e)===`attributename`&&Mf(t,`href`)!==null},un=function(e,n){if(Xt(w.beforeSanitizeAttributes,e,null),tn(e,n))return;let r=e.attributes;if(!r||qt(e))return;E=en(w.uponSanitizeAttribute,E,Oe,He);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},a=r.length,o=k(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=k(s),d=l,f=s===`value`?d:Ff(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Xt(w.uponSanitizeAttribute,e,i),f=i.attrValue,Je&&(u===`id`||u===`name`)&&Pf(f,Ye)!==0&&(jt(s,e,n),f=Ye+f,p=!0),ln(s,f)){jt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){jt(s,e,n);continue}if(!Ie&&Y(pp,f)){jt(s,e,n);continue}if(Le&&(f=A(f)),!rn(o,u,f)){jt(s,e,n);continue}f=sn(o,u,c,f),f!==d&&cn(e,s,c,f)&&p&&Sf(t.removed)}}Xt(w.afterSanitizeAttributes,e,null),tn(e,n)},dn=function(e){let t=null,n=Wt(e);for(Xt(w.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Xt(w.uponSanitizeShadowNode,t,null),nn(t,e),un(t,e),Jt(t.content)&&dn(t.content),x(t)===X.element){let e=v(t);Jt(e)&&(fn(e),dn(e))}Le&&Kt(e),Xt(w.afterSanitizeShadowDOM,e,null)},fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){dn(e.shadow);continue}let n=e.node,r=x(n)===X.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ee?ee(n):null;if(typeof e==`string`&&k(e)===`template`){let e=n.content;Jt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Jt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(O=!e,O&&(e=``),typeof e!=`string`&&!Yt(e)&&(e=of(e),typeof e!=`string`))throw Hf(`dirty is not a string, aborting`);if(!t.isSupported)return e;Be?(T=Ve,E=He):xt(n),(w.uponSanitizeElement.length>0||w.uponSanitizeAttribute.length>0)&&(T=af(T)),w.uponSanitizeAttribute.length>0&&(E=af(E)),t.removed=[];let c=Ze&&typeof e!=`string`&&Yt(e),l=[],u=D;if(c){Ht(e);let t=ne(e);if(typeof t==`string`){let n=k(t);if(!T[n]||Ae[n])throw At(e),Hf(`root node is forbidden and cannot be sanitized in-place`)}if(qt(e))throw At(e),Hf(`root node is clobbered and cannot be sanitized in-place`);l=Ft(e),D=Df()}else if(Yt(e))i=Ut(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===X.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),fn(i);else{if(!We&&!Le&&!ze&&e.indexOf(`<`)===-1)return S&&Ke?C(e):e;if(i=Ut(e),!i)return We?null:Ke?ae:``}i&&Ue&&Ot(i.firstChild);let d=c?e:i;try{c&&fn(e);let t=Wt(d);for(;o=t.nextNode();)nn(o,d),un(o,d),Jt(o.content)&&dn(o.content);c&&Rt(e,l)}catch(t){throw c&&(At(e),Lt(e,l)),t}finally{D=u}if(c){if(Lt(e,l))throw Hf(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Le&&Gt(e),e}if(We){if(Le&&Gt(i),Ge)for(s=he.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(E.shadowroot||E.shadowrootmode)&&(s=_e.call(r,s,!0)),s}let f=ze?i.outerHTML:i.innerHTML;return ze&&T[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Y(cp,i.ownerDocument.doctype.name)&&(f=` -`+f),Le&&(f=A(f)),S&&Ke?C(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xt(e),Be=!0,Ve=T,He=E},t.clearConfig=function(){vt=null,Be=!1,Ve=null,He=null,S=oe,ae=``},t.isValidAttribute=function(e,t,n){vt||xt({});let r=k(e),i=k(t);return typeof n==`string`&&(ln(t,n)||!Ie&&Y(pp,n))?!1:rn(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Bf(w,e)&&Cf(w[e],t)},t.removeHook=function(e,t){if(Bf(w,e)){if(t!==void 0){let n=xf(w[e],t);return n===-1?void 0:Tf(w[e],n,1)[0]}return Sf(w[e])}},t.removeHooks=function(e){Bf(w,e)&&(w[e]=[])},t.removeAllHooks=function(){w=_p()},t}var df,ff,pf,mf,hf,q,J,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Y,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,X,mp,hp,gp,_p,vp,yp,bp,xp=o((()=>{tf.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},tf.prototype.next=function(e){return this._invoke(`next`,e)},tf.prototype.throw=function(e){return this._invoke(`throw`,e)},tf.prototype.return=function(e){return this._invoke(`return`,e)},df=Object.entries,ff=Object.setPrototypeOf,pf=Object.isFrozen,mf=Object.getPrototypeOf,hf=Object.getOwnPropertyDescriptor,q=Object.freeze,J=Object.seal,gf=Object.create,_f=typeof Reflect<`u`&&Reflect,vf=_f.apply,yf=_f.construct,q||=function(e){return e},J||=function(e){return e},vf||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},yf||=function(e){return new e(...[...arguments].slice(1))},bf=G(Array.prototype.forEach),Array.prototype.indexOf,xf=G(Array.prototype.lastIndexOf),Sf=G(Array.prototype.pop),Cf=G(Array.prototype.push),wf=G(Array.prototype.slice),Tf=G(Array.prototype.splice),Ef=Array.isArray,Df=nf(Set),Of=G(Set.prototype.add),kf=G(Set.prototype.has),Af=G(String.prototype.toLowerCase),jf=G(String.prototype.toString),Mf=G(String.prototype.match),Nf=G(String.prototype.replace),Pf=G(String.prototype.indexOf),Ff=G(String.prototype.trim),If=G(Number.prototype.toString),Lf=G(Boolean.prototype.toString),Rf=typeof BigInt>`u`?null:G(BigInt.prototype.toString),zf=typeof Symbol>`u`?null:G(Symbol.prototype.toString),Bf=G(Object.prototype.hasOwnProperty),Vf=G(Object.prototype.toString),Y=G(RegExp.prototype.test),Hf=nf(TypeError),Uf=q(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Wf=q(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Gf=q([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Kf=q([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),qf=q(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Jf=q([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Yf=q([`#text`]),Xf=q(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Zf=q(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Qf=q(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),$f=q([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ep=J(/{{[\w\W]*|^[\w\W]*}}/g),tp=J(/<%[\w\W]*|^[\w\W]*%>/g),np=J(/\${[\w\W]*/g),rp=J(/^data-[\-\w.\u00B7-\uFFFF]+$/),ip=J(/^aria-[\-\w]+$/),ap=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),op=J(/^(?:\w+script|data):/i),sp=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cp=J(/^html$/i),lp=J(/^[a-z][.\w]*(-[.\w]+)+$/i),up=J(/<[/\w!]/g),dp=J(/<[/\w]/g),fp=J(/<\/no(script|embed|frames)/i),pp=J(/\/>/i),X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mp=q(K({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),hp=function(){return typeof window>`u`?null:window},gp=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},_p=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vp=function(e,t,n,r){return Bf(e,t)&&Ef(e[t])?K(r.base?af(r.base):{},e[t],r.transform):n},yp=function(e,t,n){let r=Bf(e,t)?e[t]:void 0;return r&&typeof r==`object`?af(r):n()},bp=uf()})),Sp,Cp,wp,Tp,Ep=o((()=>{xp(),Fu(),Sp=p.StateEffect.define(),Cp=class extends d.WidgetType{doc;from;to;render;referenceContext;constructor(e,t,n,r,i=``){super(),this.doc=e,this.from=t,this.to=n,this.render=r,this.referenceContext=i}get source(){return this.doc.sliceString(this.from,this.to)}toDOM(e){let t=document.createElement(`div`);t.className=`cm-md-syntaxHiddenTable`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=ku(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i);let a=document.createElement(`style`);a.textContent=` + `}})}));function id(e){let t=ld.parseFromString(e,`text/html`);return t.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=ad(t))}),t.body.innerHTML}function ad(e){return e.includes(`://`)||e.startsWith(`//`)||e.startsWith(`data:image/`)?e:`${ud}://${e}`}function od(e){typeof f.MarkEdit.getFileInfo==`function`&&(document.addEventListener(`mousemove`,e=>{pd.panelPresenter!==void 0&&(clearTimeout(pd.panelPresenter),pd.panelPresenter=void 0),pd.panelPresenter=setTimeout(()=>{let t=e.target,n=t?.closest(`.cm-md-link`),r=n?.dataset.linkUrl??n?.innerText??``;n!==null&&ae(r)?sd(n,r):t?.classList.contains(dd)||cd()},600)}),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&cd(!1)}),e.addEventListener(`scroll`,()=>cd()))}async function sd(e,t){if(e===pd.focusedElement)return;let n=(await f.MarkEdit.getFileInfo())?.parentPath;if(n===void 0)return;let r=oe(n,t),i=await f.MarkEdit.getFileObject(r);if(i===void 0)return;let a=e.getBoundingClientRect(),o=document.createElement(`img`);o.className=dd,o.style.position=`fixed`,o.style.left=`${a.left}px`,o.style.zIndex=`10000`,o.style.borderRadius=`5px`,o.style.opacity=`0`,o.style.transition=`opacity 120ms`,o.style.cursor=`pointer`,o.onclick=()=>{cd(),window.open(t,`_blank`)},o.onload=()=>{let e=Math.min(o.naturalHeight,240);o.style.height=`${e}px`,a.top>window.innerHeight-a.bottom?o.style.top=`${a.top-e-fd}px`:o.style.top=`${a.bottom+fd}px`,requestAnimationFrame(()=>{o.style.opacity=`1`})},o.src=`data:${i.mimeType??`image/png`};base64,${i.data}`,cd(!1),pd.focusedElement=e,document.body.appendChild(o)}function cd(e=!0){pd.focusedElement!==void 0&&(pd.focusedElement=void 0,document.querySelectorAll(`.${dd}`).forEach(t=>{e?(t.style.opacity=`0`,t.addEventListener(`transitionend`,()=>t.remove(),{once:!0})):t.remove()}))}var ld,ud,dd,fd,pd,md=o((()=>{C(),ld=new DOMParser,ud=`image-loader`,dd=`cm-md-image-preview`,fd=5,pd={panelPresenter:void 0,focusedElement:void 0}}));rd(),md(),C(),Ul();function hd(e,t){if(!Ml)return;Cd.scrollUpdater!==void 0&&clearTimeout(Cd.scrollUpdater);let n=f.MarkEdit.editorView.state.doc,r=f.MarkEdit.editorView.state.selection;Cd.lastSourceScrollTop=e.scrollTop;let i=()=>{let{doc:i,selection:a}=f.MarkEdit.editorView.state,o=i===n&&!a.eq(r);n=i,r=a,!(!o&&Math.abs(e.scrollTop-Cd.lastSourceScrollTop)<.5)&&(Cd.lastSourceScrollTop=e.scrollTop,(o||!t.classList.contains(`overlay`))&&gd(e,t))};`onscrollend`in window?e.addEventListener(`scrollend`,i):e.addEventListener(`scroll`,()=>{Cd.scrollUpdater!==void 0&&clearTimeout(Cd.scrollUpdater),Cd.scrollUpdater=setTimeout(i,100)})}function gd(e,t,n=!0){let{line:r,progress:i}=_d(e);vd(t,r,i,n)}function _d(e,t=0){let n=f.MarkEdit.editorView,r=n.lineBlockAtHeight(e.scrollTop+t),i=n.state.doc.lineAt(r.from).number-1,a=te(n.domAtPos(r.from).node);if(a===null)return{line:i,progress:0};let o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),c=o.top-s.top-t;return{line:i,progress:s.height>0?Sd(c/s.height):0}}function vd(e,t,n,r=!0){if(t===0&&n===0)return ie(e,0,r);let i=Array.from(e.querySelectorAll(`[data-line-from]`)),a=yd(i,t);if(a!==void 0){let{from:i,to:o}=x(a);return re(e,a,bd(t,n,i,o),r)}if(t===0)return ie(e,0,r);let{beforeBlock:o,afterBlock:s}=xd(i,t);if(o!==void 0&&s!==void 0){let i=x(o),a=x(s),c=ne(e,o)+o.offsetHeight,l=ne(e,s),u=a.from-i.to,d=t-i.to+n,f=u>0?Sd(d/u):0;return ie(e,c+(l-c)*f,r)}if(o!==void 0)return re(e,o,1,r);if(s!==void 0)return re(e,s,0,r)}function yd(e,t){return e.find(e=>{let{from:n,to:r}=x(e);return t>=n&&t<=r})}function bd(e,t,n,r){let i=r-n;return i<1?e===n?t:0:Sd((e-n+t)/i)}function xd(e,t){let n,r;for(let i of e){let{from:e,to:a}=x(i);if(at){r=i;break}}return{beforeBlock:n,afterBlock:r}}function Sd(e){return Math.max(0,Math.min(1,e))}var Cd={lastSourceScrollTop:0,scrollUpdater:void 0};function wd(e){let t=e.match(/^((?:\s{0,3}>\s*)*\s*(?:[-*+]|\d+[.)])\s+\[)([ xX])\](?= )/);return t===null?null:{offset:t[1].length,replacement:t[2]===` `?`x`:` `}}C(),Cl();function Td(e,t){let n=(t.target instanceof Element?t.target.closest(`a`):null)?.getAttribute(`href`)??``;if(!n.startsWith(`#`))return!1;let r=Ed(e,n);return r&&t.preventDefault(),r}function Ed(e,t){if(!t.startsWith(`#`))return!1;let n=bl([...e.querySelectorAll(`[id]`)],t,(e,t)=>e.getAttribute(t));return n!==void 0&&(re(e,n,0,!1),!0)}var Dd={containerClass:`markdown-container`,gutterViewClass:`markdown-gutter`,dividerViewClass:`markdown-divider`,previewPaneClass:`markdown-body`},Od={viewModeCacheKey:`ui.view-mode`,previewPageZoomKey:`ui.preview-page-zoom`};function kd(e,t,n){if(![`Link`,`Image`,`Autolink`].includes(e.name))return;let r=Ld(e.node);if(e.name===`Autolink`){if(r.length<2)return;let n=t.sliceDoc(r[0].to,r[1].from);return/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(n)?{hidden:r.map(e=>({from:e.from,to:e.to})),label:{from:r[0].to,to:r[1].from},image:!1,destination:n,highlightTags:Md(e.node)}:void 0}if(r.length<2||Ad(e,t).length>0)return;let i=e.node.getChild(`LinkLabel`);if(r.length===2&&(i===null||i.to-i.from===2))return;let a=e.node.getChild(`URL`);if(r.length>2&&a===null||[`(`,`[`].includes(t.sliceDoc(e.to,e.to+1)))return;let o=r[0],s=r[1],c=t.sliceDoc(o.to,s.from);if(!/\S/.test(c)||c.startsWith(`^`)&&e.to===s.to)return;let l=a===null?Pd(i,t,n):t.sliceDoc(a.from,a.to);if(e.name!==`Image`||a!==null||l!==``)return{hidden:[{from:o.from,to:o.to},{from:s.from,to:e.to}],label:{from:o.to,to:s.from},image:e.name===`Image`,destination:l,highlightTags:Md(e.node)}}function Ad(e,t){if(e.name!==`Link`)return[];let n=t.sliceDoc(e.from,e.to),r=/\[\^[^\][\s]+\]/g,i=[];for(let e=r.exec(n);e!==null;e=r.exec(n))i.push(e);return i.map(e=>e[0]).join(``)===n?i.map(t=>({from:e.from+t.index,to:e.from+t.index+t[0].length,label:t[0].slice(1,-1),highlightTags:Md(e.node)})):[]}function jd(e,t){if(e.name===`LinkDefinition`&&!Um(t,e.from,e.to+1)&&Rd.test(t.sliceDoc(e.from,e.to))&&t.sliceDoc(e.to,e.to+1)===`:`)return{hidden:[{from:e.from+1,to:e.from+2}],label:t.sliceDoc(e.from+1,e.to-1),highlightTags:Md(e.node),suffixPosition:e.to+1,suffix:/^[ \t]/.test(t.sliceDoc(e.to+1,e.to+2))?``:` `}}function Md(e){let t=[];for(let n=e;n!==null;n=n.parent)t.unshift(n);let n=new Set;for(let r of t){let t=(0,h.getStyleTags)(r);t!==null&&(r===e||t.inherit)&&t.tags.forEach(e=>n.add(e))}return[...n]}function Nd(e){let t=(0,m.syntaxTree)(e),n;return r=>{let i=zd.get(t);return n??=i?.doc===e.doc?i.destinations:void 0,n===void 0&&(n=Fd(e,t),zd.set(t,{doc:e.doc,destinations:n})),n.get(Id(r))??``}}function Pd(e,t,n){return e===null?``:n(t.sliceDoc(e.from+1,e.to-1))}function Fd(e,t){let n=new Map;return t.iterate({enter:t=>{if(t.name!==`LinkDefinitionID`)return;let r=Id(e.sliceDoc(t.from,t.to));if(n.has(r))return;let i=e.doc.lineAt(t.to),a=e.sliceDoc(t.node.parent?.to??t.to,i.to),o=/^:\s*(?:<([^>]*)>|(\S+))/.exec(a),s=o?.[1]??o?.[2];s!==void 0&&n.set(r,s)}}),n}function Id(e){return e.trim().replace(/\s+/g,` `).toLowerCase()}function Ld(e){let t=[];for(let n=e.firstChild;n!==null;n=n.nextSibling)n.name===`LinkMark`&&t.push(n);return t}var Rd,zd,Bd=o((()=>{lh(),Rd=/^\[\^[^\][\s]+\]$/,zd=new WeakMap}));function Vd(e,t){let n=Hd(e);if(n===void 0||Wm(t,e.from,e.to))return[];let r=n.hidden.map(e=>Wd.range(e.from,e.to));if(e.name!==`InlineCode`)return r;let i=e.node.firstChild?.to,a=e.node.lastChild?.from;return i===void 0||a===void 0||i>=a||(a-i===1?r.push(Jd.range(i,a)):(r.push(Kd.range(i,i+1)),r.push(qd.range(a-1,a)))),r}function Hd(e){let t=Ud.get(e.name),n=t===void 0?[]:e.node.getChildren(t);if(n.length>0)return{hidden:n}}var Ud,Wd,Gd,Kd,qd,Jd,Yd=o((()=>{lh(),Ud=new Map([[`Emphasis`,`EmphasisMark`],[`StrongEmphasis`,`EmphasisMark`],[`Strikethrough`,`StrikethroughMark`],[`InlineCode`,`CodeMark`]]),Wd=d.Decoration.mark({class:`cm-md-syntaxHiddenSource`}),Gd=`cm-md-syntaxHiddenInlineCodeBoundary`,Kd=d.Decoration.mark({class:`${Gd} cm-md-syntaxHiddenInlineCodeStart`}),qd=d.Decoration.mark({class:`${Gd} cm-md-syntaxHiddenInlineCodeEnd`}),Jd=d.Decoration.mark({class:`${Gd} cm-md-syntaxHiddenInlineCodeStart cm-md-syntaxHiddenInlineCodeEnd`})})),Xd=o((()=>{})),Zd=o((()=>{rd()}));function Qd(e,t){this.v=e,this.k=t}function $d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:Pf;if(gf&&gf(e,null),!Af(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(_f(t)||(t[r]=e),i=e)}e[i]=!0}return e}function cf(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:yp(),t=e=>mf(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==X.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=df(d,`cloneNode`),p=df(d,`remove`),m=df(d,`removeAttributeNode`),h=df(d,`nextSibling`),g=df(d,`childNodes`),_=df(d,`parentNode`),v=df(d,`shadowRoot`),y=df(d,`attributes`),b=o&&o.prototype?df(o.prototype,`nodeType`):null,ee=o&&o.prototype?df(o.prototype,`nodeName`):null,te=o&&o.prototype?df(o.prototype,`ownerDocument`):null,x=function(e){return b?b(e):e.nodeType},ne=function(e){return ee?ee(e):e.nodeName},re=ff(d,`namespaceURI`),ie=function(e){return re?re(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,ae=``,oe,se=!1,ce=0,le=function(){if(ce>0)throw Kf(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},C=function(e){le(),ce++;try{return S.createHTML(e)}finally{ce--}},ue=function(e){le(),ce++;try{return S.createScriptURL(e)}finally{ce--}},de=function(){return se||=(oe=bp(u,i),!0),oe},fe=n,pe=fe.implementation,me=fe.createNodeIterator,he=fe.createDocumentFragment,ge=fe.getElementsByTagName,_e=r.importNode,w=xp();t.isSupported=typeof hf==`function`&&typeof _==`function`&&pe&&pe.createHTMLDocument!==void 0;let ve=ip,ye=ap,be=op,xe=sp,Se=cp,Ce=up,we=dp,Te=pp,Ee=lp,T=null,De=K({},[...qf,...Jf,...Yf,...Zf,...$f]),E=null,Oe=K({},[...ep,...tp,...np,...rp]),ke=Object.seal(bf(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}})),Ae=null,je=null,Me=Object.seal(bf(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ne=!0,Pe=!0,Fe=!1,Ie=!0,Le=!1,Re=!0,ze=!1,Be=!1,Ve=null,He=null,Ue=!1,We=!1,Ge=!1,Ke=!1,qe=!0,Je=!1,Ye=`user-content-`,Xe=!0,Ze=!1,D=null,Qe={},$e=null,et=K({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),tt=null,nt=K({},[`audio`,`video`,`img`,`source`,`image`,`track`]),rt=null,it=K({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),at=`http://www.w3.org/1998/Math/MathML`,ot=`http://www.w3.org/2000/svg`,st=`http://www.w3.org/1999/xhtml`,ct=st,O=!1,lt=null,ut=K({},[at,ot,st],Ff),dt=q([`mi`,`mo`,`mn`,`ms`,`mtext`]),ft=K({},dt),pt=q([`annotation-xml`]),mt=K({},pt),ht=K({},[`title`,`style`,`font`,`a`,`script`]),gt=null,_t=[`application/xhtml+xml`,`text/html`],k=null,vt=null,yt=n.createElement(`form`),bt=function(e){return e instanceof RegExp||e instanceof Function},xt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vt&&vt===e)return;(!e||typeof e!=`object`)&&(e={}),e=lf(e),gt=_t.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,k=gt===`application/xhtml+xml`?Ff:Pf,T=Sp(e,`ALLOWED_TAGS`,De,{transform:k}),E=Sp(e,`ALLOWED_ATTR`,Oe,{transform:k}),lt=Sp(e,`ALLOWED_NAMESPACES`,ut,{transform:Ff}),rt=Sp(e,`ADD_URI_SAFE_ATTR`,it,{transform:k,base:it}),tt=Sp(e,`ADD_DATA_URI_TAGS`,nt,{transform:k,base:nt}),$e=Sp(e,`FORBID_CONTENTS`,et,{transform:k}),Ae=Sp(e,`FORBID_TAGS`,lf({}),{transform:k}),je=Sp(e,`FORBID_ATTR`,lf({}),{transform:k}),Qe=Wf(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?lf(e.USE_PROFILES):e.USE_PROFILES:!1,Ne=e.ALLOW_ARIA_ATTR!==!1,Pe=e.ALLOW_DATA_ATTR!==!1,Fe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=e.SAFE_FOR_TEMPLATES||!1,Re=e.SAFE_FOR_XML!==!1,ze=e.WHOLE_DOCUMENT||!1,We=e.RETURN_DOM||!1,Ge=e.RETURN_DOM_FRAGMENT||!1,Ke=e.RETURN_TRUSTED_TYPE||!1,Ue=e.FORCE_BODY||!1,qe=e.SANITIZE_DOM!==!1,Je=e.SANITIZE_NAMED_PROPS||!1,Xe=e.KEEP_CONTENT!==!1,Ze=e.IN_PLACE||!1,Ee=pf(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:lp,ct=typeof e.NAMESPACE==`string`?e.NAMESPACE:st,ft=Cp(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>K({},dt)),mt=Cp(e,`HTML_INTEGRATION_POINTS`,()=>K({},pt));let t=Cp(e,`CUSTOM_ELEMENT_HANDLING`,()=>bf(null));if(ke=bf(null),Wf(t,`tagNameCheck`)&&bt(t.tagNameCheck)&&(ke.tagNameCheck=t.tagNameCheck),Wf(t,`attributeNameCheck`)&&bt(t.attributeNameCheck)&&(ke.attributeNameCheck=t.attributeNameCheck),Wf(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),J(ke),Le&&(Pe=!1),Ge&&(We=!0),Qe&&(T=K({},$f),E=bf(null),Qe.html===!0&&(K(T,qf),K(E,ep)),Qe.svg===!0&&(K(T,Jf),K(E,tp),K(E,rp)),Qe.svgFilters===!0&&(K(T,Yf),K(E,tp),K(E,rp)),Qe.mathMl===!0&&(K(T,Zf),K(E,np),K(E,rp))),Me.tagCheck=null,Me.attributeCheck=null,Wf(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Me.tagCheck=e.ADD_TAGS:Af(e.ADD_TAGS)&&(T===De&&(T=lf(T)),K(T,e.ADD_TAGS,k))),Wf(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Me.attributeCheck=e.ADD_ATTR:Af(e.ADD_ATTR)&&(E===Oe&&(E=lf(E)),K(E,e.ADD_ATTR,k))),Wf(e,`ADD_FORBID_CONTENTS`)&&Af(e.ADD_FORBID_CONTENTS)&&($e===et&&($e=lf($e)),K($e,e.ADD_FORBID_CONTENTS,k)),Xe&&(T[`#text`]=!0),ze&&K(T,[`html`,`head`,`body`]),T.table&&(K(T,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Kf(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Kf(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{ae=C(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,ae=``):(S===void 0&&(S=de()),S&&typeof ae==`string`&&(ae=C(``)));q&&q(e),vt=e},St=K({},[...Jf,...Yf,...Xf]),Ct=K({},[...Zf,...Qf]),wt=function(e,t,n){return t.namespaceURI===st?e===`svg`:t.namespaceURI===at?e===`svg`&&(n===`annotation-xml`||ft[n]):!!St[e]},Tt=function(e,t,n){return t.namespaceURI===st?e===`math`:t.namespaceURI===ot?e===`math`&&mt[n]:!!Ct[e]},Et=function(e,t,n){return t.namespaceURI===ot&&!mt[n]||t.namespaceURI===at&&!ft[n]?!1:!Ct[e]&&(ht[e]||!St[e])},Dt=function(e){let t=ie(e),n=Pf(ne(e)),r=_(e),i,a;return r&&x(r)===X.element?(i={namespaceURI:ie(r)},a=Pf(ne(r))):(i={namespaceURI:ct},a=`template`),lt[t]?t===ot?wt(n,i,a):t===at?Tt(n,i,a):t===st?Et(n,i,a):!!(gt===`application/xhtml+xml`&<[t]):!1},Ot=function(e){Df(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Kf(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},kt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},At=function(e){Pt(e);let t=g(e);t&&wf(Of(t),e=>{try{p(e)}catch{}});let n=x(e)===X.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&kt(e,r,i)}},jt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Df(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(We||Ge)try{Ot(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Mt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||E[k(i)]||kt(e,r,i)}},Nt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&x(e)===X.element){let t=v(e);Jt(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Pt=function(e){Nt(e,e=>{x(e)===X.element&&Mt(e)})},Ft=function(e){let t=[];return Nt(e,e=>{t.push(e)},!0),t},It=function(e,t){let n=jf();wf(Ft(e),e=>{x(e)===X.element&&Mf(n,e)}),wf(t,e=>{x(e)===X.element&&!Nf(n,e)&&Mt(e)})},Lt=function(e,n){let r=!1;return wf(t.removed,t=>{t.element&&(r||=t.element===e,Pt(t.element))}),It(e,n),r},Rt=function(e,t){let n=D,r=null,i=()=>(r||(r=jf(),wf(t,e=>{Mf(r,e)})),r);for(let t=0;;t++){let r=Ft(e),a=[e],o=!1;if(wf(r,e=>{x(e)===X.documentFragment?Df(a,e):!o&&!Nf(n,e)&&(o=Nf(i(),e))}),!o)return;if(t>=8)throw Kf(`the tree kept changing during in-place sanitization; refusing to return it`);wf(a,(t,n)=>{zt(t,n>0,e,i())})}},zt=function(e,t,n,r){let i=Wt(e),a;for(;a=i.nextNode();)Nf(r,a)&&!Nf(D,a)&&(t&&Xt(w.uponSanitizeShadowNode,a,null),nn(a,n),un(a,n),Jt(a.content)&&dn(a.content))},Bt=function(e){D&&Mf(D,e)},Vt=function(e,t){return Re?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Ht=function(e){Re&&Nt(e,e=>{let t=x(e);if(t===X.processingInstruction||t===X.comment&&Y(hp,e.data)){try{p(e)}catch{}return!1}if(t===X.element){let t=e,n=k(ne(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Vt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Ut=function(e){let t=null,r=null;if(Ue)e=``+e;else{let t=If(e,/^[\r\n\t ]+/);r=t&&t[0]}gt===`application/xhtml+xml`&&ct===st&&(e=``+e+``);let i=S?C(e):e;if(ct===st)try{t=new l().parseFromString(i,gt)}catch{}if(!t||!t.documentElement){t=pe.createDocument(ct,`template`,null);try{t.documentElement.innerHTML=O?ae:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),ct===st?ge.call(t,ze?`html`:`body`)[0]:ze?t.documentElement:a},Wt=function(e){let t=te?te(e):e.ownerDocument;return me.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},A=function(e){return e=Lf(e,ve,` `),e=Lf(e,ye,` `),e=Lf(e,be,` `),e},Gt=function(e){Kt(e);let t=e.querySelectorAll?.call(e,`template`);t&&wf(t,e=>{Jt(e.content)&&Gt(e.content)})},Kt=function(e){e.normalize();let t=te?te(e):e.ownerDocument,n=me.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=A(r.data),r=n.nextNode()},qt=function(e){let t=ee?ee(e):null;return typeof t!=`string`||k(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Jt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===X.documentFragment}catch{return!1}},Yt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Xt(e,n,r){e.length!==0&&wf(e,e=>{e.call(t,n,r,vt)})}let Zt=function(e,t){return!!(Re&&e.hasChildNodes()&&!Yt(e.firstElementChild)&&Y(mp,e.textContent)&&Y(mp,e.innerHTML)||Re&&vp[t]&&x(e)===X.element&&ie(e)===st&&(Yt(e.firstElementChild)||typeof e.textContent==`string`&&Y(mp,e.textContent))||e.nodeType===X.processingInstruction||Re&&e.nodeType===X.comment&&Y(hp,e.data))},Qt=function(e,t){return e instanceof RegExp?Y(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},$t=function(e,t,n){if(!Ae[t]&&on(t)&&Qt(ke.tagNameCheck,t))return!1;if(Xe&&!$e[t]&&!$e[Pf(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Ot(e),!0},en=function(e,t,n,r){return e.length===0?t:t===n||t===r?lf(t):t},tn=function(e,t){return e===t||_(e)!==null?!1:(Ze&&Pt(e),!0)},nn=function(e,n){if(Bt(e),Xt(w.beforeSanitizeElements,e,null),tn(e,n))return!0;if(qt(e))return Ot(e),!0;let r=k(ne(e));if(T=en(w.uponSanitizeElement,T,De,Ve),Xt(w.uponSanitizeElement,e,{tagName:r,allowedTags:T}),tn(e,n))return!0;if(Zt(e,r))return Ot(e),!0;if(Ae[r]||!(Me.tagCheck instanceof Function&&Me.tagCheck(r))&&!T[r]){let t=$t(e,r,n);return t===!1&&(Xt(w.afterSanitizeElements,e,null),tn(e,n))?!0:t}if(x(e)===X.element&&!Dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Y(gp,e.innerHTML))return Ot(e),!0;if(Le&&e.nodeType===X.text){let n=A(e.textContent);e.textContent!==n&&(Df(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Xt(w.afterSanitizeElements,e,null),tn(e,n)},rn=function(e,t,r){if(je[t]||Vt(t,e)||qe&&(t===`id`||t===`name`)&&(r in n||r in yt))return!1;let i=E[t]||Me.attributeCheck instanceof Function&&Me.attributeCheck(t,e);return Pe&&Y(xe,t)||Ne&&Y(Se,t)?!0:i?rt[t]||Y(Ee,Lf(r,we,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Rf(r,`data:`)===0&&tt[e]||Fe&&!Y(Ce,Lf(r,we,``))?!0:!r:on(e)&&Qt(ke.tagNameCheck,e)&&Qt(ke.attributeNameCheck,t,e)||t===`is`&&ke.allowCustomizedBuiltInElements&&Qt(ke.tagNameCheck,r)},an=K({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),on=function(e){return!an[Pf(e)]&&Y(Te,e)},sn=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return C(r);case`TrustedScriptURL`:return ue(r)}return r},cn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!qt(e)||(Ot(e),!1)}catch{return jt(t,e),!1}},ln=function(e,t){return Re&&Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Pf(e)===`attributename`&&If(t,`href`)!==null},un=function(e,n){if(Xt(w.beforeSanitizeAttributes,e,null),tn(e,n))return;let r=e.attributes;if(!r||qt(e))return;E=en(w.uponSanitizeAttribute,E,Oe,He);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},a=r.length,o=k(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=k(s),d=l,f=s===`value`?d:zf(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Xt(w.uponSanitizeAttribute,e,i),f=i.attrValue,Je&&(u===`id`||u===`name`)&&Rf(f,Ye)!==0&&(jt(s,e,n),f=Ye+f,p=!0),ln(s,f)){jt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){jt(s,e,n);continue}if(!Ie&&Y(_p,f)){jt(s,e,n);continue}if(Le&&(f=A(f)),!rn(o,u,f)){jt(s,e,n);continue}f=sn(o,u,c,f),f!==d&&cn(e,s,c,f)&&p&&Ef(t.removed)}}Xt(w.afterSanitizeAttributes,e,null),tn(e,n)},dn=function(e){let t=null,n=Wt(e);for(Xt(w.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Xt(w.uponSanitizeShadowNode,t,null),nn(t,e),un(t,e),Jt(t.content)&&dn(t.content),x(t)===X.element){let e=v(t);Jt(e)&&(fn(e),dn(e))}Le&&Kt(e),Xt(w.afterSanitizeShadowDOM,e,null)},fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){dn(e.shadow);continue}let n=e.node,r=x(n)===X.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ee?ee(n):null;if(typeof e==`string`&&k(e)===`template`){let e=n.content;Jt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Jt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(O=!e,O&&(e=``),typeof e!=`string`&&!Yt(e)&&(e=uf(e),typeof e!=`string`))throw Kf(`dirty is not a string, aborting`);if(!t.isSupported)return e;Be?(T=Ve,E=He):xt(n),(w.uponSanitizeElement.length>0||w.uponSanitizeAttribute.length>0)&&(T=lf(T)),w.uponSanitizeAttribute.length>0&&(E=lf(E)),t.removed=[];let c=Ze&&typeof e!=`string`&&Yt(e),l=[],u=D;if(c){Ht(e);let t=ne(e);if(typeof t==`string`){let n=k(t);if(!T[n]||Ae[n])throw At(e),Kf(`root node is forbidden and cannot be sanitized in-place`)}if(qt(e))throw At(e),Kf(`root node is clobbered and cannot be sanitized in-place`);l=Ft(e),D=jf()}else if(Yt(e))i=Ut(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===X.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),fn(i);else{if(!We&&!Le&&!ze&&e.indexOf(`<`)===-1)return S&&Ke?C(e):e;if(i=Ut(e),!i)return We?null:Ke?ae:``}i&&Ue&&Ot(i.firstChild);let d=c?e:i;try{c&&fn(e);let t=Wt(d);for(;o=t.nextNode();)nn(o,d),un(o,d),Jt(o.content)&&dn(o.content);c&&Rt(e,l)}catch(t){throw c&&(At(e),Lt(e,l)),t}finally{D=u}if(c){if(Lt(e,l))throw Kf(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Le&&Gt(e),e}if(We){if(Le&&Gt(i),Ge)for(s=he.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(E.shadowroot||E.shadowrootmode)&&(s=_e.call(r,s,!0)),s}let f=ze?i.outerHTML:i.innerHTML;return ze&&T[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Y(fp,i.ownerDocument.doctype.name)&&(f=` +`+f),Le&&(f=A(f)),S&&Ke?C(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xt(e),Be=!0,Ve=T,He=E},t.clearConfig=function(){vt=null,Be=!1,Ve=null,He=null,S=oe,ae=``},t.isValidAttribute=function(e,t,n){vt||xt({});let r=k(e),i=k(t);return typeof n==`string`&&(ln(t,n)||!Ie&&Y(_p,n))?!1:rn(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Wf(w,e)&&Df(w[e],t)},t.removeHook=function(e,t){if(Wf(w,e)){if(t!==void 0){let n=Tf(w[e],t);return n===-1?void 0:kf(w[e],n,1)[0]}return Ef(w[e])}},t.removeHooks=function(e){Wf(w,e)&&(w[e]=[])},t.removeAllHooks=function(){w=xp()},t}var hf,gf,_f,vf,yf,q,J,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Y,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,X,vp,yp,bp,xp,Sp,Cp,wp,Tp=o((()=>{of.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},of.prototype.next=function(e){return this._invoke(`next`,e)},of.prototype.throw=function(e){return this._invoke(`throw`,e)},of.prototype.return=function(e){return this._invoke(`return`,e)},hf=Object.entries,gf=Object.setPrototypeOf,_f=Object.isFrozen,vf=Object.getPrototypeOf,yf=Object.getOwnPropertyDescriptor,q=Object.freeze,J=Object.seal,bf=Object.create,xf=typeof Reflect<`u`&&Reflect,Sf=xf.apply,Cf=xf.construct,q||=function(e){return e},J||=function(e){return e},Sf||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Cf||=function(e){return new e(...[...arguments].slice(1))},wf=G(Array.prototype.forEach),Array.prototype.indexOf,Tf=G(Array.prototype.lastIndexOf),Ef=G(Array.prototype.pop),Df=G(Array.prototype.push),Of=G(Array.prototype.slice),kf=G(Array.prototype.splice),Af=Array.isArray,jf=sf(Set),Mf=G(Set.prototype.add),Nf=G(Set.prototype.has),Pf=G(String.prototype.toLowerCase),Ff=G(String.prototype.toString),If=G(String.prototype.match),Lf=G(String.prototype.replace),Rf=G(String.prototype.indexOf),zf=G(String.prototype.trim),Bf=G(Number.prototype.toString),Vf=G(Boolean.prototype.toString),Hf=typeof BigInt>`u`?null:G(BigInt.prototype.toString),Uf=typeof Symbol>`u`?null:G(Symbol.prototype.toString),Wf=G(Object.prototype.hasOwnProperty),Gf=G(Object.prototype.toString),Y=G(RegExp.prototype.test),Kf=sf(TypeError),qf=q(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Jf=q(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Yf=q([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Xf=q([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Zf=q(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Qf=q([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),$f=q([`#text`]),ep=q(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),tp=q(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),np=q(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),rp=q([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ip=J(/{{[\w\W]*|^[\w\W]*}}/g),ap=J(/<%[\w\W]*|^[\w\W]*%>/g),op=J(/\${[\w\W]*/g),sp=J(/^data-[\-\w.\u00B7-\uFFFF]+$/),cp=J(/^aria-[\-\w]+$/),lp=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),up=J(/^(?:\w+script|data):/i),dp=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fp=J(/^html$/i),pp=J(/^[a-z][.\w]*(-[.\w]+)+$/i),mp=J(/<[/\w!]/g),hp=J(/<[/\w]/g),gp=J(/<\/no(script|embed|frames)/i),_p=J(/\/>/i),X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vp=q(K({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),yp=function(){return typeof window>`u`?null:window},bp=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},xp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Sp=function(e,t,n,r){return Wf(e,t)&&Af(e[t])?K(r.base?lf(r.base):{},e[t],r.transform):n},Cp=function(e,t,n){let r=Wf(e,t)?e[t]:void 0;return r&&typeof r==`object`?lf(r):n()},wp=mf()})),Ep,Dp,Op,kp,Ap=o((()=>{Tp(),Bu(),Ep=p.StateEffect.define(),Dp=class extends d.WidgetType{doc;from;to;render;referenceContext;constructor(e,t,n,r,i=``){super(),this.doc=e,this.from=t,this.to=n,this.render=r,this.referenceContext=i}get source(){return this.doc.sliceString(this.from,this.to)}toDOM(e){let t=document.createElement(`div`);t.className=`cm-md-syntaxHiddenTable`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=Pu(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i);let a=document.createElement(`style`);a.textContent=` :host { display: block; } .markdown-body { font: inherit; min-width: 0; white-space: normal; word-break: normal; overflow-wrap: break-word; overflow-x: auto; } .markdown-body > table { display: table; width: auto; max-width: min(100%, 960px); margin: 0; overflow: visible; } .source { white-space: pre-wrap; } - `;let o=document.createElement(`div`);o.className=`markdown-body source`,o.textContent=this.source;let s=document.createElement(`style`);return n.append(r,a,s,o),Tp.set(t,{body:o,mathStyle:s,dispose:()=>window.removeEventListener(`editor-colors-changed`,i)}),t.addEventListener(`mousedown`,n=>{n.button!==0||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),n.stopPropagation(),e.dispatch({selection:p.EditorSelection.cursor(e.posAtDOM(t)),scrollIntoView:!1}),e.focus())}),t.addEventListener(`click`,e=>e.preventDefault()),n.addEventListener(`load`,()=>e.requestMeasure(),!0),n.addEventListener(`error`,()=>e.requestMeasure(),!0),this.renderInto(t,e),t}updateDOM(e,t){return this.renderInto(e,t),!0}renderInto(e,t){let n=Tp.get(e),r={};n.request=r;let i=()=>e.isConnected&&Tp.get(e)?.request===r,a=()=>{if(i()){let n=t.posAtDOM(e);t.dispatch({effects:Sp.of({doc:t.state.doc,from:n,to:n+this.source.length})})}};Promise.all([this.render(),``]).then(([e,r])=>{if(!i())return;let o=e.find(e=>e.fromLine===this.doc.lineAt(this.from).number&&e.toLine===this.doc.lineAt(this.to).number);if(o===void 0){a();return}let s=wp.sanitize(o.html,{RETURN_DOM_FRAGMENT:!0,FORBID_TAGS:[`style`,`link`,`meta`,`form`,`input`,`button`,`select`,`textarea`,`iframe`,`object`,`embed`,`audio`,`video`],FORBID_ATTR:[`tabindex`,`autofocus`,`contenteditable`],SANITIZE_NAMED_PROPS:!0}).querySelector(`table`);if(s===null){a();return}s.querySelectorAll(`a`).forEach(e=>e.setAttribute(`tabindex`,`-1`)),s.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=ed(t))}),n.mathStyle.textContent!==r&&(n.mathStyle.textContent=r),n.body.firstElementChild?.isEqualNode(s)||(n.body.classList.remove(`source`),n.body.replaceChildren(s),t.requestMeasure())}).catch(a)}destroy(e){Tp.get(e)?.dispose(),Tp.delete(e)}eq(e){return e.source===this.source&&e.referenceContext===this.referenceContext}ignoreEvent(){return!1}},wp=bp(),Tp=new WeakMap}));function Dp(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function Op(e,t){let n=e.pos+t;if(sm==n&&om==e)return am;let r=e.peek(t),i=``;for(;Dp(r);)i+=String.fromCharCode(r),r=e.peek(++t);return om=e,sm=n,am=i?i.toLowerCase():r==dm||r==fm?void 0:null}function kp(e,t){this.name=e,this.parent=t}function Ap(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}function jp(e,t,n){let r=2+e.length;return new g.ExternalTokenizer(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==cm||a==1&&i.next==um||a>=2&&ao?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm=o((()=>{Mp=55,Np=1,Pp=56,Fp=2,Ip=57,Lp=3,Rp=4,zp=5,Bp=6,Vp=7,Hp=8,Up=9,Wp=10,Gp=11,Kp=12,qp=13,Jp=58,Yp=14,Xp=15,Zp=59,Qp=21,$p=37,em=0,tm=1,nm={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},rm={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},im={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},am=null,om=null,sm=0,cm=60,lm=62,um=47,dm=63,fm=33,pm=45,mm=[Bp,Wp,Vp,Hp,Up],hm=new g.ContextTracker({start:null,shift(e,t,n,r){return mm.indexOf(t)>-1?new kp(Op(r,1)||``,e):e},reduce(e,t){return t==Qp&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==Bp||i==$p?new kp(Op(r,1)||``,e):e},strict:!1}),gm=new g.ExternalTokenizer((e,t)=>{if(e.next!=cm){e.next<0&&t.context&&e.acceptToken(Jp);return}e.advance();let n=e.next==um;n&&e.advance();let r=Op(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?Xp:Yp);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Gp);if(i&&rm[i])return e.acceptToken(Jp,-2);if(t.dialectEnabled(em))return e.acceptToken(Kp);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(qp)}else{if(r==`script`)return e.acceptToken(Vp);if(r==`style`)return e.acceptToken(Hp);if(r==`textarea`)return e.acceptToken(Up);if(nm.hasOwnProperty(r))return e.acceptToken(Wp);i&&im[i]&&im[i][r]?e.acceptToken(Jp,-1):e.acceptToken(Bp)}},{contextual:!0}),_m=new g.ExternalTokenizer(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Zp);break}if(e.next==pm)t++;else if(e.next==lm&&t>=2){n>=3&&e.acceptToken(Zp,-2);break}else t=0;e.advance()}}),vm=new g.ExternalTokenizer((e,t)=>{if(e.next==um&&e.peek(1)==lm){let n=t.dialectEnabled(tm)||Ap(t.context);e.acceptToken(n?zp:Rp,2)}else e.next==lm&&e.acceptToken(Rp,1)}),ym=jp(`script`,Mp,Np),bm=jp(`style`,Pp,Fp),xm=jp(`textarea`,Ip,Lp),Sm=(0,h.styleTags)({"Text RawText IncompleteTag IncompleteCloseTag":h.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":h.tags.angleBracket,TagName:h.tags.tagName,"MismatchedCloseTag/TagName":[h.tags.tagName,h.tags.invalid],AttributeName:h.tags.attributeName,"AttributeValue UnquotedAttributeValue":h.tags.attributeValue,Is:h.tags.definitionOperator,"EntityReference CharacterReference":h.tags.character,Comment:h.tags.blockComment,ProcessingInst:h.tags.processingInstruction,DoctypeDecl:h.tags.documentMeta}),Cm=g.LRParser.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:`,c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:hm,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[Sm],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{if([`FencedCode`,`CodeBlock`,`InlineCode`,`Frontmatter`,`CommentBlock`,`BlockMath`].includes(n.name)||t&&n.name===`Table`)return!1;if(n.name===`HTMLBlock`||n.name===`HTMLTag`){let t=e.doc.length;for(let e=n.node.parent;e!==null;e=e.parent)(e.name===`ListItem`||e.name===`Blockquote`)&&(t=Math.min(t,e.to));if(r.push({from:n.from,to:n.to,limit:t}),n.name===`HTMLTag`)return!1}else n.name===`QuoteMark`&&i.push({from:n.from,to:n.to})}}),r.length===0)return[];let a=0,o=n.replace(/{for(;a{if(e.name!==`Element`)return;let{from:t,to:o}=e;for(;a=0;e--){let n=i[e];n.from>=t&&n.to<=o&&(l=l.slice(0,n.from-t)+l.slice(n.to-t))}if(c!==void 0&&c.from<=t&&o<=c.limit&&Em(l))return s.push({from:t,to:o,source:l}),!1}}),s}function Em(e){let t=Cm.parse(e),n=!0,r=0;return t.iterate({enter:t=>{if((t.type.isError||t.name===`MismatchedCloseTag`)&&(n=!1),t.name===`Element`){r++;let e=t.node.firstChild,i=t.node.lastChild;e?.name!==`SelfClosingTag`&&i?.name!==`CloseTag`&&(n=!1)}else t.node.parent?.name===`Document`&&(t.name!==`Text`||e.slice(t.from,t.to).trim()!==``)&&(n=!1)}}),n&&r>0}var Dm,Om,km,Am,jm=o((()=>{wm(),Fu(),ld(),xp(),Dm=class e extends d.WidgetType{source;fragment;block;constructor(e,t){super(),this.source=e,this.fragment=t,this.block=t.querySelector(`address, article, aside, blockquote, dd, details, dialog, div, dl, dt, fieldset, figcaption, figure, footer, h1, h2, h3, h4, h5, h6, header, hr, li, main, nav, ol, p, pre, section, table, ul`)!==null}static create(t){if(!Em(t))return;let n=Om.sanitize(t,{RETURN_DOM_FRAGMENT:!0,USE_PROFILES:{html:!0},FORBID_TAGS:[`script`,`style`,`link`,`meta`,`base`,`form`,`input`,`button`,`select`,`textarea`,`iframe`,`object`,`embed`,`audio`,`video`],FORBID_ATTR:[`tabindex`,`autofocus`,`contenteditable`],SANITIZE_NAMED_PROPS:!0});if(n.childElementCount===0)return;let r=document.createElement(`span`).style;return n.querySelectorAll(`[style]`).forEach(e=>{r.cssText=e.getAttribute(`style`)??``,e.removeAttribute(`style`);for(let t of Am){let n=r.getPropertyValue(t);n!==``&&e.style.setProperty(t,n)}}),n.querySelectorAll(`a`).forEach(e=>e.setAttribute(`tabindex`,`-1`)),n.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=ed(t))}),new e(t,n)}toDOM(e){let t=document.createElement(this.block?`div`:`span`);t.className=`cm-md-syntaxHiddenHtml`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=ku(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i),km.set(t,()=>window.removeEventListener(`editor-colors-changed`,i));let a=document.createElement(`style`);a.textContent=this.block?`:host { display: block; } .markdown-body { font: inherit; white-space: normal; overflow-wrap: anywhere; overflow: auto; }`:`:host { display: inline; } .markdown-body { display: inline; font: inherit; white-space: normal; overflow-wrap: anywhere; } .markdown-body::before, .markdown-body::after { content: none; }`;let o=document.createElement(this.block?`div`:`span`);return o.className=`markdown-body`,o.inert=!0,o.append(this.fragment.cloneNode(!0)),n.append(r,a,o),t.addEventListener(`mousedown`,n=>{n.button!==0||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),n.stopPropagation(),e.dispatch({selection:p.EditorSelection.cursor(e.posAtDOM(t)),scrollIntoView:!1}),e.focus())}),t.addEventListener(`click`,e=>e.preventDefault()),n.addEventListener(`load`,()=>e.requestMeasure(),!0),n.addEventListener(`error`,()=>e.requestMeasure(),!0),t}updateDOM(e,t){return e.tagName===`DIV`===this.block&&(e.shadowRoot.querySelector(`.markdown-body`).replaceChildren(this.fragment.cloneNode(!0)),t.requestMeasure(),!0)}eq(e){return this.source===e.source}destroy(e){km.get(e)?.(),km.delete(e)}ignoreEvent(){return!1}},Om=bp(),km=new WeakMap,Am=[`text-align`,`color`,`background-color`,`font-family`,`font-weight`,`font-style`,`text-decoration-line`,`text-decoration-color`,`text-decoration-style`]})),Mm,Nm=o((()=>{Rl(),Mm=p.Facet.define({combine:e=>e[e.length-1]??Al})}));function Pm(e,t=d.Decoration.none){let n=Fm(e,t);return{all:n,visible:Im(n,e)}}function Fm(e,t){let n=[],r=(0,m.syntaxTree)(e),i=e.facet(Mm),a=[];r.iterate({enter:t=>{if(t.name===`Document`)return;let n=e.sliceDoc(e.doc.lineAt(t.from).from,e.doc.lineAt(t.to).to);return(t.name!==`Paragraph`&&t.name!==`Table`||n.includes(`[`))&&a.push(n),!1}});let o=e.sliceDoc(r.length);a.push(o);let s,c=()=>s??=Uu(e.doc.toString()),l=JSON.stringify(a);if(i.includes(`html`))for(let{from:a,to:o,source:s}of Tm(e,i.includes(`table`))){if(r.length=r.length)continue;let i;t.between(a,o,(e,t,n)=>{let r=n.spec.widget;e===a&&t===o&&r instanceof Dm&&r.source===s&&(i=r)}),i??=Dm.create(s),i!==void 0&&n.push(d.Decoration.replace({block:i.block,widget:i}).range(a,o))}let u=n.slice(),f=0;return r.iterate({enter:a=>{for(;f=a.to)return!1;let s;if(a.name===`Table`&&i.includes(`table`)){for(let e=a.node.parent;e!==null;e=e.parent)if(e.name!==`Document`)return!1;if(r.length=r.length)return!1;let n=e.doc.lineAt(a.from).from,i=e.doc.lineAt(a.to).to,o=new Cp(e.doc,n,i,c,l);t.between(n,i,(e,t,r)=>{let a=r.spec.widget;e===n&&t===i&&a instanceof Cp&&o.eq(a)&&(o=a)}),s=d.Decoration.replace({block:!0,widget:o}).range(n,i)}if(s!==void 0)return n.push(s),!1}}),d.Decoration.set(n,!0)}function Im(e,t){return e.size===0?e:e.update({filter:(e,n,r)=>{let i=r.spec.widget instanceof Cp,a=!1;if((i||r.spec.widget instanceof Dm)&&(0,m.foldedRanges)(t).between(e,n,()=>{a=!0}),a||zm(t,e,n))return!1;if(i&&nt.empty&&t.goalColumn===void 0&&t.head>=e.from&&t.head<=e.to))return!1}return!0}})}var Lm,Rm=o((()=>{Kd(),qd(),Ep(),jm(),Nm(),ah(),Qu(),Lm=p.StateField.define({create:e=>Pm(e),update(e,t){if(t.docChanged||t.reconfigured||(0,m.syntaxTree)(t.startState)!==(0,m.syntaxTree)(t.state)){let n=[];for(let r=e.all.iter();r.value!==null;r.next())if(r.value.spec.widget instanceof Cp||r.value.spec.widget instanceof Dm){let e=t.changes.mapPos(r.from,1),i=t.changes.mapPos(r.to,-1);et!==e.value.from||n!==e.value.to}));return t.selection!==void 0||t.effects.length>0?{all:n,visible:Im(n,t.state)}:e},provide:e=>d.EditorView.decorations.from(e,e=>e.visible)})}));function zm(e,t,n){return e.selection.ranges.some(e=>e.from<=n&&e.to>=t)}function Bm(e,t,n){return zm(e,t,n)||e.field(Zm,!1)?.some(e=>e.from<=t&&e.to>=n)===!0}function Vm(e,t){if(e.textDirectionAt(t)!==d.Direction.LTR)return;let n=kd(e.state),r;for(let i=(0,m.syntaxTree)(e.state).resolveInner(t,-1);i!==null;i=i.parent){if(i.name===`Image`)return;if(Bm(e.state,i.from,i.to))continue;let a=Gm(i,e.state,n);if(a!==void 0&&Wm(e,i))return;let o=a?.hidden.find(e=>e.to===i.to),s=r?.to??t;o!==void 0&&s>=o.from&&s{let n=t.state,r=n.selection,i=n.field(Zm,!1);if(i===void 0||r.ranges.length!==1)return!1;let a=n.doc.lineAt(r.main.head),o=t.lineBlockAt(r.main.head);if(r.main.froma.to||o.from!==a.from||o.to!==a.to||t.textDirectionAt(r.main.head)!==d.Direction.LTR)return!1;let s=()=>t.state.doc===n.doc&&t.state.selection.eq(r,!0)&&t.state.field(Zm,!1)!==void 0,c=Km(t,r,e);if(!s())return!0;if(i.length===0){if(!Um(t,a,c.main))return!1;if(i=[{from:a.from,to:a.to}],t.dispatch({effects:Xm.of(i)}),!s())return!0;if(t.state.field(Zm)!==i)return!1;if(t.coordsAtPos(r.main.head),!s())return!0;c=Km(t,r,e)}return!s()||!c.eq(r,!0)&&(t.dispatch({selection:c,effects:Xm.of(i),scrollIntoView:!0,userEvent:`select`}),!0)}}function Um(e,t,n){let r=!1,i=kd(e.state);return(0,m.syntaxTree)(e.state).iterate({from:t.from,to:t.to,enter:a=>{if(r||a.name===`Image`)return!1;a.from>=t.from&&a.to<=t.to&&Gm(a,e.state,i)!==void 0&&!Wm(e,a)&&(r=(n.from<=a.to&&n.to>=a.from)!==zm(e.state,a.from,a.to))}}),r}function Wm(e,t){let n=!1;return e.state.field(Lm,!1)?.visible.between(t.from,t.to,(e,r)=>{n||=e<=t.from&&r>=t.to}),n}function Gm(e,t,n){return e.name===`Link`||e.name===`Autolink`?Td(e,t,n):Rd(e)}function Km(e,t,n){return p.EditorSelection.create(t.ranges.map(t=>{let r=n&&t.undirectional&&t.head{let n=p.EditorSelection.create(t.state.selection.ranges.map(n=>{let r=n;e&&r.undirectional&&r.head>=r.anchor&&(r=p.EditorSelection.range(r.head,r.anchor));let i=e||r.empty?Jm(t,r):p.EditorSelection.cursor(r.from);return!e&&r.empty&&i.head===r.head&&(i=t.moveToLineBoundary(r,!1)),e?p.EditorSelection.range(r.anchor,i.head,i.goalColumn,i.bidiLevel??void 0,i.assoc):i}),t.state.selection.mainIndex);return!n.eq(t.state.selection,!0)&&(t.dispatch({selection:n,scrollIntoView:!0,userEvent:`select`}),!0)}}function Jm(e,t){let n=e.moveVertically(t,!1),r=e.state.doc.lineAt(t.head),i=e.state.doc.lineAt(n.head);if(r.number-i.number<=1)return n;let a=e.state.doc.line(r.number-1);if(!Ym(e,a.from))return n;let o=e.lineBlockAt(a.from),s=n.goalColumn,c=e.coordsAtPos(t.head,t.assoc||1),l=s===void 0?c?.left:e.contentDOM.getBoundingClientRect().left+s;if(l===void 0)return n;let u=e.posAndSideAtCoords({x:l,y:e.documentTop+o.top+o.height/2});return u===null||u.posa.to?n:p.EditorSelection.cursor(u.pos,u.assoc,void 0,s)}function Ym(e,t){for(let n=(0,m.syntaxTree)(e.state).resolve(t,1);n!==null;n=n.parent)if(n.name.startsWith(`ATXHeading`))return!0;return!1}var Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah=o((()=>{Id(),Gd(),Rm(),Xm=p.StateEffect.define(),Zm=p.StateField.define({create:()=>[],update(e,t){if(t.docChanged)return[];for(let e of t.effects)if(e.is(Xm))return e.value;return t.newSelection.eq(t.startState.selection,!0)?e:[]}}),Qm=qm(!1),$m=qm(!0),eh=Hm(!1),th=Hm(!0),nh=p.Prec.high(d.keymap.of([{mac:`Cmd-ArrowRight`,run:eh,shift:th}])),rh=p.Prec.high(d.keymap.of([{key:`ArrowUp`,run:Qm,shift:$m}])),ih=d.EditorView.mouseSelectionStyle.of((e,t)=>{if(t.button!==0||t.detail!==1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return null;let n={x:t.clientX,y:t.clientY},r=e.posAndSideAtCoords(n,!1);if(Number.isFinite(r.pos)){let t=Vm(e,r.pos),i=t===void 0?null:e.coordsAtPos(t.from,-1);t!==void 0&&i!==null&&n.x>i.right&&n.y>=i.top&&n.y<=i.bottom&&(r={pos:t.to,assoc:-1})}return{get(t){if(!Number.isFinite(r.pos))return e.state.selection;if(Math.max(Math.abs(t.clientX-n.x),Math.abs(t.clientY-n.y))<=5)return p.EditorSelection.create([p.EditorSelection.cursor(r.pos,r.assoc)]);let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1);return Number.isFinite(i.pos)?i.pos===r.pos?p.EditorSelection.create([p.EditorSelection.cursor(i.pos,i.assoc)]):p.EditorSelection.create([p.EditorSelection.range(r.pos,i.pos,void 0,void 0,i.assoc)]):e.state.selection},update(e){e.docChanged&&Number.isFinite(r.pos)&&(r={...r,pos:e.changes.mapPos(r.pos)})}}})}));function oh(e,t){if(e.name!==`Blockquote`)return;let n=e.node.getChild(`Paragraph`);if(n===null)return;let r=e.node.firstChild;for(;r!==null&&(r.from!==n.from||r.to!==n.to);){if(r.name!==`QuoteMark`)return;r=r.nextSibling}if(r===null)return;let i=t.doc.lineAt(n.from),a=t.sliceDoc(n.from,i.to),o=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?=[ \t]*$)/i.exec(a);if(o===null)return;let s=o[1].toLowerCase(),c=n.from,l=c+o[0].length;if(!zm(t,c,l))return{from:c,to:l,type:s,title:lh[s]}}function sh(e,t){if(e.name===`QuoteMark`&&!zm(t,e.from,e.to))return{from:e.from,to:e.to}}function ch(e){if(e.name!==`Blockquote`)return;let t=1,n=e.node.parent;for(;n!==null;)n.name===`Blockquote`&&(t+=1),n=n.parent;return{from:e.from,to:e.to,depth:t}}var lh,uh=o((()=>{ah(),lh={note:`Note`,tip:`Tip`,important:`Important`,warning:`Warning`,caution:`Caution`}})),dh,fh,ph=o((()=>{dh={note:``,tip:``,important:``,warning:``,caution:``},fh=class extends d.WidgetType{type;title;constructor(e,t){super(),this.type=e,this.title=t}eq(e){return e.type===this.type&&e.title===this.title}toDOM(){let e=document.createElement(`span`);e.className=`cm-md-syntaxHiddenAlert`,e.dataset.type=this.type;let t=e.appendChild(document.createElement(`span`));t.className=`cm-md-syntaxHiddenAlertIcon`,t.innerHTML=dh[this.type],t.setAttribute(`aria-hidden`,`true`);let n=e.appendChild(document.createElement(`span`));return n.textContent=this.title,e}ignoreEvent(){return!1}}}));function mh(e){let t=new Map,n=new Map;for(let{from:r,to:i}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:r,to:i,enter:r=>{let i=ch(r);if(i!==void 0&&t.set(xh(i),i),r.name!==`QuoteMark`)return;let a=bh(r.node);if(a===null)return;let o=xh(a),s=e.state.doc.lineAt(r.from).from,c=n.get(o)??new Map;c.set(s,{position:r.from,active:zm(e.state,r.from,r.to)}),n.set(o,c)}});let r=[];return t.forEach((t,i)=>{let a=n.get(i),o=new Set;e.viewportLineBlocks.forEach(n=>{let i=e.state.doc.lineAt(n.from);if(o.has(i.from)||i.to=t.to)return;o.add(i.from);let s=a?.get(i.from);s?.active!==!0&&r.push({line:i.from,ownerFrom:t.from,anchor:s?.position,depth:t.depth})})}),r}function hh(e){let t=yh(e),n=new Map;return mh(e).flatMap(r=>{let i=vh(e,r.line)?.getBoundingClientRect(),a=e.coordsAtPos(r.line,1);if(i===void 0||a===null)return[];let o=r.anchor===void 0?void 0:e.coordsAtPos(r.anchor,1)?.left;if(o===void 0){let t=n.get(r.ownerFrom);t===void 0&&(t=_h(e,r.ownerFrom),n.set(r.ownerFrom,t)),o=a.left+t}let s=gh(e,r.anchor??r.ownerFrom);return[new Ch(r.depth,o-t.left,i.top-t.top,3,i.height,s.color,s.opacity)]})}function gh(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(i*=e)}return{color:getComputedStyle(r??e.contentDOM).color,opacity:i}}function _h(e,t){let n=e.state.doc.lineAt(t),r=e.coordsAtPos(n.from,1),i=e.coordsAtPos(t,1);if(r!==null&&i!==null)return i.left-r.left;let a=0;for(let r of e.state.sliceDoc(n.from,t))a=r===` `?a+e.state.tabSize-a%e.state.tabSize:a+1;return a*e.defaultCharacterWidth}function vh(e,t){let n=e.domAtPos(t).node;return(n instanceof HTMLElement?n:n.parentElement)?.closest(`.cm-line`)}function yh(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function bh(e){let t=e.parent;for(;t!==null&&t.name!==`Blockquote`;)t=t.parent;return t}function xh(e){return`${e.from}:${e.to}`}var Sh,Ch,wh=o((()=>{uh(),ah(),Sh=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenBlockquoteLayer`,markers:hh,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),Ch=class extends d.RectangleMarker{color;opacity;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenBlockquoteBar cm-md-syntaxHiddenBlockquoteBar-depth-${e}`,t,n,r,i),this.color=a,this.opacity=o}draw(){let e=super.draw();return e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,e}update(e,t){return super.update(e,t)?(e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity}}}));function Th(e,t){if(e.name!==`ListMark`)return;let n=e.node.parent,r=n?.getChild(`Task`),i=r?.getChild(`TaskMarker`);if(n?.name===`ListItem`&&n.parent?.name===`BulletList`&&/^[ \t]$/.test(t.sliceDoc(e.to,e.to+1))&&!zm(t,e.from,i?.to??e.to))return{from:e.from,to:e.to,task:r!==null}}var Eh=o((()=>{ah()}));function Dh(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{let r=Th(n,e.state);r!==void 0&&!r.task&&t.push({from:r.from,to:r.to})}});return t}function Oh(e){let t=Ah(e);return Dh(e).flatMap(n=>{let r=e.coordsForChar(n.from);if(r===null)return[];let i=kh(e,n.from);return[new Mh(r.left-t.left,r.top-t.top,r.right-r.left,r.bottom-r.top,i.color,i.opacity,i.textShadow)]})}function kh(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=getComputedStyle(r??e.contentDOM),a=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(a*=e)}return{color:i.color,opacity:a,textShadow:i.textShadow===`none`?``:i.textShadow}}function Ah(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}var jh,Mh,Nh=o((()=>{Eh(),jh=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenListBulletLayer`,markers:Oh,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),Mh=class extends d.RectangleMarker{color;opacity;textShadow;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenListBullet`,e,t,n,r),this.color=i,this.opacity=a,this.textShadow=o}draw(){let e=super.draw();return e.textContent=`•`,e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,e}update(e,t){return super.update(e,t)?(e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity&&this.textShadow===e.textShadow}}}));function Ph(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{if(n.name!==`TaskMarker`)return;let r=n.node.parent,i=r?.parent,a=i?.getChild(`ListMark`),o=n.to+1;r?.name===`Task`&&i?.name===`ListItem`&&i.parent?.name===`BulletList`&&a!=null&&e.state.sliceDoc(n.to,o)===` `&&!zm(e.state,a.from,n.to)&&t.push({from:a.from,to:o,markerFrom:n.from,listPrefix:e.state.sliceDoc(a.from,a.to+1),checked:e.state.sliceDoc(n.from,n.to)!==`[ ]`,label:e.state.sliceDoc(o,e.state.doc.lineAt(n.to).to).trim()||`Task`})}});return t}function Fh(e){let t=e.state.readOnly||!e.state.facet(d.EditorView.editable),n=Ph(e).map(e=>d.Decoration.replace({widget:new Bh(e.markerFrom,e.listPrefix,e.checked,e.label,t)}).range(e.from,e.to));return d.Decoration.set(n,!0)}function Ih(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);if(t===null||t.offsetWidth===0)return;let n=parseFloat(getComputedStyle(e).fontSize);t.style.setProperty(`--cm-md-task-checkbox-scale`,`${n/t.offsetWidth}`)}function Lh(e,t,n){let r=e.state.sliceDoc(t,t+3);if(e.state.readOnly||!e.state.facet(d.EditorView.editable)||!/^\[[ xX]\]$/.test(r))return;let i=e.state.changes({from:t+1,to:t+2,insert:n?`x`:` `});e.dispatch({changes:i,effects:e.scrollSnapshot().map(i)??[],userEvent:`input`})}var Rh,zh,Bh,Vh=o((()=>{ah(),Rh=typeof ResizeObserver>`u`?void 0:new ResizeObserver(e=>{for(let t of e)Ih(t.target)}),zh=[d.ViewPlugin.fromClass(class{decorations;constructor(e){this.decorations=Fh(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.startState.readOnly!==e.state.readOnly||e.transactions.some(e=>e.reconfigured))&&(this.decorations=Fh(e.view))}},{decorations:e=>e.decorations}),d.EditorView.baseTheme({"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxFrame":{display:`inline-block`,position:`relative`,margin:`0`,textIndent:`0`,verticalAlign:`baseline`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxMarker":{visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxControl":{position:`relative`,insetInlineStart:`-0.15em`,display:`inline-block`,verticalAlign:`baseline`,width:`1em`,height:`0`,marginInlineEnd:`-1em`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckbox":{position:`absolute`,font:`inherit`,top:`-0.35em`,top_cap:`-0.5cap`,left:`50%`,margin:`0`,transform:`translate(-50%, -50%) scale(var(--cm-md-task-checkbox-scale, 1))`}})],Bh=class extends d.WidgetType{markerFrom;listPrefix;checked;label;disabled;constructor(e,t,n,r,i){super(),this.markerFrom=e,this.listPrefix=t,this.checked=n,this.label=r,this.disabled=i}eq(e){return this.markerFrom===e.markerFrom&&this.listPrefix===e.listPrefix&&this.checked===e.checked&&this.label===e.label&&this.disabled===e.disabled}toDOM(e){let t=document.createElement(`span`);t.className=`cm-md-syntaxHiddenTaskCheckboxFrame`;let n=t.appendChild(document.createElement(`span`));n.className=`cm-md-syntaxHiddenTaskCheckboxMarker`,n.textContent=this.listPrefix;let r=t.insertBefore(document.createElement(`span`),n);r.className=`cm-md-syntaxHiddenTaskCheckboxControl`;let i=r.appendChild(document.createElement(`input`));return i.className=`cm-md-syntaxHiddenTaskCheckbox`,i.type=`checkbox`,this.updateInput(i),i.addEventListener(`change`,()=>Lh(e,Number(i.dataset.markerFrom),i.checked)),Rh?.observe(t),t}updateDOM(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);return t!==null&&(this.updateInput(t),!0)}destroy(e){Rh?.unobserve(e)}ignoreEvent(){return!0}updateInput(e){e.checked=this.checked,e.disabled=this.disabled,e.dataset.markerFrom=`${this.markerFrom}`,e.setAttribute(`aria-label`,this.label)}}}));function Hh(e){let t=e.trim().toLowerCase();return Kh.test(t)&&!qh.test(t)?!1:(window.open(e,`_blank`,`noopener`),!0)}async function Uh(e,t,n=`definition`){let r=e.state,i=(0,m.ensureSyntaxTree)(r,r.doc.length,5e3);if(i===null)return!1;let a;return i.iterate({enter:e=>{if(a!==void 0)return!1;if(n===`reference`){let n=Ed(e,r).find(e=>e.label===t);n!==void 0&&(a=p.EditorSelection.range(n.from,n.to))}else e.name===`LinkDefinition`&&r.sliceDoc(e.from,e.to)===`[${t}]`&&(a=p.EditorSelection.range(e.from,e.to))}}),a===void 0?(_(),!1):(Gh(e,a),!0)}async function Wh(e,t){let n=e.state.doc,r=await Wu(n.toString(),t);if(r===void 0||e.state.doc!==n)return!1;let i=e.state.doc.line(r+1).from;return Gh(e,p.EditorSelection.cursor(i)),!0}function Gh(e,t){let n=e.state.doc,r=e.scrollDOM.scrollTop,i=n=>e.dispatch({effects:d.EditorView.scrollIntoView(t.from,{y:n,yMargin:5})});e.dispatch({selection:t}),i(`start`),setTimeout(()=>{e.state.doc===n&&Math.abs(e.scrollDOM.scrollTop-r)<.001&&i(`center`)},50)}var Kh,qh,Jh=o((()=>{Id(),Qu(),C(),Kh=/^(?:vbscript|javascript|file|data):/,qh=/^data:image\/(?:gif|png|jpeg|webp);/})),Yh,Xh,Zh=o((()=>{Jh(),C(),zu(),Yh={link:``,image:``,footnoteBack:``},Xh=class extends d.WidgetType{kind;destination;label;highlightClasses;constructor(e,t,n,r,i){super(),this.kind=e,this.destination=n,this.label=r,this.highlightClasses=(0,m.highlightingFor)(t,i)??``}toDOM(e){let t=document.createElement(`button`);return t.type=`button`,t.className=[`cm-md-syntaxHiddenLinkButton`,this.highlightClasses].filter(Boolean).join(` `),t.dataset.kind=this.kind,t.title=this.kind===`footnote`||this.kind===`footnoteBack`?U(this.kind===`footnote`?`goToFootnoteDefinition`:`backToFootnoteReference`).replace(`%s`,()=>this.destination.slice(1)):this.destination,t.innerHTML=Yh[this.kind===`footnote`?`link`:this.kind],t.setAttribute(`aria-label`,t.title||this.label),t.addEventListener(`click`,t=>{t.stopPropagation(),this.kind===`footnote`?Uh(e,this.destination):this.kind===`footnoteBack`?Uh(e,this.destination,`reference`):this.destination.startsWith(`#`)?Wh(e,this.destination):this.destination===``?_():Hh(this.destination)}),t}eq(e){return e.kind===this.kind&&e.highlightClasses===this.highlightClasses&&e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!0}}})),Qh,$h=o((()=>{Qh=class extends d.WidgetType{text;constructor(e){super(),this.text=e}eq(e){return e.text===this.text}toDOM(){let e=document.createElement(`span`);return e.textContent=this.text,e}ignoreEvent(){return!1}}})),eg,tg=o((()=>{ld(),eg=class extends d.WidgetType{destination;label;constructor(e,t){super(),this.destination=e,this.label=t}toDOM(){let e=document.createElement(`img`);return e.className=`cm-md-syntaxHiddenImage`,e.src=ed(this.destination),e.alt=this.label,e.title=this.destination,e.draggable=!1,e}eq(e){return e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!1}}}));function ng(e,t){let n=[];if(e.name!==`FencedCode`)return n;let r=t.state,i=e.node.firstChild,a=e.node.lastChild;if(i?.name!==`CodeMark`||a?.name!==`CodeMark`||i.from===a.from||!r.sliceDoc(i.from,i.to).startsWith("```"))return n;let o=r.doc.lineAt(i.from),s=r.doc.lineAt(a.from);e.node.getChild(`CodeInfo`);let c=!1;if((0,m.foldedRanges)(r).between(o.to,s.to,(e,t)=>{if(e>=o.to&&t>=s.to)return c=!0,!1}),c)return n;for(let{from:e,to:i}of t.visibleRanges){let t=Math.max(o.number,r.doc.lineAt(e).number),a=Math.min(s.number,r.doc.lineAt(i).number);for(let e=t;e<=a;e++){let t=r.doc.line(e),i=[`cm-md-syntaxHiddenCodeBlock`];e===o.number&&i.push(`cm-md-syntaxHiddenCodeStart`),e===s.number&&i.push(`cm-md-syntaxHiddenCodeEnd`),o.number,n.push(d.Decoration.line({class:i.join(` `),attributes:void 0}).range(t.from))}}return n}var rg=o((()=>{ah(),d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenFence`})}));function ig(e,t){let n=e.node.parent;if(e.name!==`HeaderMark`||n?.name.startsWith(`ATXHeading`)!==!0||n.firstChild?.from!==e.from)return;let r=og(t,e.to,n.to);if(sg(t,r,n.to)&&!zm(t,n.from,n.to))return{from:e.from,to:r}}function ag(e,t){let n=e.node.parent;if(e.name!==`HeaderMark`||n?.name.startsWith(`SetextHeading`)!==!0)return;let r=t.doc.lineAt(e.from);if(!zm(t,n.from,n.to))return r.from}function og(e,t,n){return t+(/^ */.exec(e.sliceDoc(t,n))?.[0].length??0)}function sg(e,t,n){return/\S/.test(e.sliceDoc(t,n))}var cg=o((()=>{ah()}));function lg(e,t){if(e.name!==`HorizontalRule`||e.node.parent?.name!==`Document`)return;let n=t.doc.lineAt(e.from);if(!zm(t,n.from,n.to))return d.Decoration.replace({widget:new ug((0,m.highlightingFor)(t,[h.tags.contentSeparator])??``)}).range(n.from,n.to)}var ug,dg=o((()=>{ah(),ug=class extends d.WidgetType{highlightClass;constructor(e){super(),this.highlightClass=e}eq(e){return e.highlightClass===this.highlightClass}toDOM(){let e=document.createElement(`span`);return e.className=[`cm-md-syntaxHiddenHorizontalRule`,this.highlightClass].filter(Boolean).join(` `),e.setAttribute(`role`,`separator`),e.setAttribute(`aria-orientation`,`horizontal`),e}}})),fg,pg=o((()=>{fg=d.EditorView.baseTheme({"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTable":{boxSizing:`border-box`,width:`100%`,padding:`0.5em 6px`,overflow:`hidden`,contain:`content`,cursor:`text`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeBlock":{"--code-border":`color-mix(in srgb, currentColor 18%, transparent)`,boxShadow:`inset 1px 0 var(--code-border), inset -1px 0 var(--code-border)`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeStart":{position:`relative`,boxShadow:`inset 1px 0 var(--code-border), inset -1px 0 var(--code-border), inset 0 1px var(--code-border)`,borderTopLeftRadius:`6px`,borderTopRightRadius:`6px`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeStart[data-code-language]::after":{content:`attr(data-code-language)`,position:`absolute`,top:`0.5em`,right:`0.5em`,maxWidth:`calc(100% - 1em)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontSize:`0.8em`,lineHeight:`1`,opacity:`0.55`,pointerEvents:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeEnd":{boxShadow:`inset 1px 0 var(--code-border), inset -1px 0 var(--code-border), inset 0 -1px var(--code-border)`,borderBottomLeftRadius:`6px`,borderBottomRightRadius:`6px`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSource, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSource *":{fontSize:`0px !important`,fontVariantLigatures:`none !important`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSource:has(> *)":{fontSize:`inherit !important`,lineHeight:`inherit !important`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenFence, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenFence *":{fontSize:`inherit !important`,visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenQuoteMark, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenQuoteMark *":{fontSize:`inherit !important`,visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListMark, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListMark *":{fontSize:`inherit !important`,visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListBullet":{display:`flex`,alignItems:`center`,justifyContent:`center`,fontFamily:`Menlo, monospace`,fontSize:`0.9em`,pointerEvents:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListBulletLayer, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockquoteLayer":{zIndex:`0 !important`},"&.cm-md-syntaxHiddenMode *:has(> .cm-md-syntaxHiddenSource)::before":{display:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenQuoteMark + *::before":{display:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSetextUnderline":{height:`0`,lineHeight:`0`,overflow:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSetextUnderline *::before":{display:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenInlineCodeStart .cm-md-inlineCode, &.cm-md-syntaxHiddenMode .cm-md-inlineCode:has(.cm-md-syntaxHiddenInlineCodeStart), &.cm-md-syntaxHiddenMode .cm-md-inlineCode.cm-md-syntaxHiddenInlineCodeStart":{borderTopLeftRadius:`3px`,borderBottomLeftRadius:`3px`,paddingInlineStart:`0.25em`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenInlineCodeEnd .cm-md-inlineCode, &.cm-md-syntaxHiddenMode .cm-md-inlineCode:has(.cm-md-syntaxHiddenInlineCodeEnd), &.cm-md-syntaxHiddenMode .cm-md-inlineCode.cm-md-syntaxHiddenInlineCodeEnd":{borderTopRightRadius:`3px`,borderBottomRightRadius:`3px`,paddingInlineEnd:`0.25em`},"&.cm-md-syntaxHiddenMode .cm-lineNumbers .cm-gutterElement":{overflow:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockquoteBar":{pointerEvents:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert":{display:`inline-flex`,alignItems:`center`,boxSizing:`border-box`,height:`1em`,lineHeight:`1em`,verticalAlign:`middle`,gap:`0.4em`,fontFamily:`system-ui, -apple-system, BlinkMacSystemFont, sans-serif`,fontStyle:`normal`,fontWeight:`500`,textIndent:`0`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="note"]':{color:`#0969da`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="tip"]':{color:`#1a7f37`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="important"]':{color:`#8250df`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="warning"]':{color:`#9a6700`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="caution"]':{color:`#d1242f`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="note"]':{color:`#2f81f7`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="tip"]':{color:`#3fb950`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="important"]':{color:`#a371f7`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="warning"]':{color:`#d29922`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="caution"]':{color:`#f85149`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlertIcon":{display:`inline-block`,width:`1em`,height:`1em`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlertIcon svg":{display:`block`,width:`100%`,height:`100%`,fill:`currentColor`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenLinkButton":{display:`inline-block`,appearance:`none`,width:`0.9em`,height:`0.9em`,padding:`0`,border:`0`,background:`transparent`,font:`inherit`,marginInlineStart:`0.25em`,verticalAlign:`-0.1em`,cursor:`pointer`},":where(&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenLinkButton)":{color:`inherit`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenLinkButton svg":{display:`block`,width:`100%`,height:`100%`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenHorizontalRule":{display:`inline-block`,width:`100%`,borderTop:`2px solid currentColor`,verticalAlign:`middle`,opacity:`0.35`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenImage":{display:`inline-block`,maxWidth:`100%`,height:`auto`,verticalAlign:`middle`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockMath":{boxSizing:`border-box`,width:`100%`,paddingBlock:`0.5em`,overflowX:`auto`,overflowY:`hidden`,textAlign:`center`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockMath .katex-display":{margin:`0`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenMermaid":{boxSizing:`border-box`,width:`100%`,paddingBlock:`0.5em`,overflowX:`auto`,overflowY:`hidden`,textAlign:`center`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenMermaid svg":{display:`block`,maxWidth:`100%`,height:`auto`,marginInline:`auto`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenMermaidError":{whiteSpace:`pre-wrap`,textAlign:`start`}})})),mg=c({createHiddenSyntaxExtension:()=>hg,hiddenSyntaxExtension:()=>Tg});function hg(e=Al){return[Mm.of(e),wg]}function gg(e){let t=[],n=new Set,r=new Set,i=e.state.facet(Mm).includes(`image`),a=e.state.facet(Mm).includes(`html`),o=kd(e.state);for(let{from:s,to:c}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:s,to:c,enter:s=>{if(a){let t=!1;if(e.state.field(Lm).visible.between(s.from,s.to,(e,n,r)=>{r.spec.widget instanceof Dm&&es.from&&(t||=e<=s.from&&n>=s.to)}),t)return!1}s.name===`FencedCode`&&!r.has(s.from)&&(r.add(s.from),t.push(...ng(s,e)));let c=oh(s,e.state);c!==void 0&&!n.has(c.from)&&(n.add(c.from),t.push(d.Decoration.replace({widget:new fh(c.type,c.title)}).range(c.from,c.to)));let l=sh(s,e.state);l!==void 0&&t.push(vg.range(l.from,l.to));let u=Th(s,e.state);if(u!==void 0){let e=u.task?bg:yg;t.push(e.range(u.from,u.to))}let f=Td(s,e.state,o),p=f?.image?zm:Bm;if(f!==void 0&&!p(e.state,s.from,s.to)){let n=e.state.sliceDoc(f.label.from,f.label.to);if(i&&f.image&&f.destination!==``)t.push(d.Decoration.replace({widget:new eg(f.destination,n)}).range(s.from,s.to));else{f.hidden.forEach(e=>t.push(_g.range(e.from,e.to)));let r=f.image?Cg:Sg;t.push(r.range(f.label.from,f.label.to)),t.push(d.Decoration.widget({widget:new Xh(f.image?`image`:`link`,e.state,f.destination,n,f.highlightTags),side:-1}).range(f.label.to))}}let m=Ed(s,e.state);for(let n of m)zm(e.state,n.from,n.to)||(t.push(_g.range(n.from+1,n.from+2)),t.push(Sg.range(n.from,n.to)),t.push(d.Decoration.widget({widget:new Xh(`footnote`,e.state,n.label,n.label,n.highlightTags),side:-1}).range(n.to)));let h=Dd(s,e.state);h!==void 0&&(h.hidden.forEach(e=>t.push(_g.range(e.from,e.to))),t.push(d.Decoration.widget({widget:new Xh(`footnoteBack`,e.state,h.label,h.label,h.highlightTags),side:-1}).range(h.suffixPosition)),h.suffix!==``&&t.push(d.Decoration.widget({widget:new Qh(h.suffix),side:1}).range(h.suffixPosition)));let g=Ld(s,e.state);t.push(...g);let _=lg(s,e.state);_!==void 0&&t.push(_);let v=ig(s,e.state);v!==void 0&&t.push(_g.range(v.from,v.to));let y=ag(s,e.state);y!==void 0&&t.push(xg.range(y))}});return d.Decoration.set(t,!0)}var _g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg=o((()=>{uh(),ph(),wh(),Nh(),Vh(),Zh(),$h(),tg(),jm(),Rm(),Nm(),rg(),cg(),dg(),Gd(),Id(),pg(),Eh(),ah(),Rl(),_g=d.Decoration.mark({class:`cm-md-syntaxHiddenSource`}),vg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenQuoteMark`}),yg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenListMark cm-md-syntaxHiddenBulletMark`}),bg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenListMark cm-md-syntaxHiddenTaskMark`}),xg=d.Decoration.line({class:`cm-md-syntaxHiddenSetextUnderline`}),Sg=d.Decoration.mark({class:`cm-md-syntaxHiddenLinkLabel`}),Cg=d.Decoration.mark({class:`cm-md-syntaxHiddenImageLabel`}),wg=[d.EditorView.editorAttributes.of({class:`cm-md-syntaxHiddenMode`}),rh,Zm,nh,ih,d.ViewPlugin.fromClass(class{decorations;constructor(e){this.decorations=gg(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.startState.field(Zm)!==e.state.field(Zm)||e.transactions.some(e=>e.reconfigured))&&(this.decorations=gg(e.view))}},{decorations:e=>e.decorations}),Sh,jh,zh,Lm,fg],Tg=hg()})),Dg=new p.Compartment,Og=Dg.of([]),kg=0;async function Ag(e,t){let n=++kg,r=t?await Mg():[];n===kg&&(e.dispatch({effects:Dg.reconfigure(r)}),t&&e.requestMeasure())}var jg;function Mg(){return jg??=Promise.resolve().then(()=>(Eg(),mg)).then(e=>e.hiddenSyntaxExtension)}var Ng=function(e,t){return Number(e.slice(0,-1*t.length))},Pg=function(e){return e.endsWith(`px`)?{value:e,type:`px`,numeric:Ng(e,`px`)}:e.endsWith(`fr`)?{value:e,type:`fr`,numeric:Ng(e,`fr`)}:e.endsWith(`%`)?{value:e,type:`%`,numeric:Ng(e,`%`)}:e===`auto`?{value:e,type:`auto`}:null},Fg=function(e){return e.split(` `).map(Pg)},Ig=function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=!1);var i=r?e+1:e;return t.slice(0,i).reduce(function(e,t){return e+t.numeric},0)+(n?e*n:0)},Lg=function(e,t,n){return t.concat(n).map(function(t){return t.style[e]}).filter(function(e){return e!==void 0&&e!==``})},Rg=function(e,t){return t.endsWith(e)?Number(t.slice(0,-1*e.length)):null},zg=function(e){for(var t=0;t0)return t;return null},Bg=function(){return!1},Vg=function(e,t,n){e.style[t]=n},Z=function(e,t,n){var r=e[t];return r===void 0?n:r};function Hg(e){var t;return(t=[]).concat.apply(t,Array.from(e.ownerDocument.styleSheets).map(function(e){var t=[];try{t=Array.from(e.cssRules||[])}catch{}return t})).filter(function(t){var n=!1;try{n=e.matches(t.selectorText)}catch{}return n})}var Ug=`grid-template-columns`,Wg=`grid-template-rows`,Q=function(e,t,n){this.direction=e,this.element=t.element,this.track=t.track,e===`column`?(this.gridTemplateProp=Ug,this.gridGapProp=`grid-column-gap`,this.cursor=Z(n,`columnCursor`,Z(n,`cursor`,`col-resize`)),this.snapOffset=Z(n,`columnSnapOffset`,Z(n,`snapOffset`,30)),this.dragInterval=Z(n,`columnDragInterval`,Z(n,`dragInterval`,1)),this.clientAxis=`clientX`,this.optionStyle=Z(n,`gridTemplateColumns`)):e===`row`&&(this.gridTemplateProp=Wg,this.gridGapProp=`grid-row-gap`,this.cursor=Z(n,`rowCursor`,Z(n,`cursor`,`row-resize`)),this.snapOffset=Z(n,`rowSnapOffset`,Z(n,`snapOffset`,30)),this.dragInterval=Z(n,`rowDragInterval`,Z(n,`dragInterval`,1)),this.clientAxis=`clientY`,this.optionStyle=Z(n,`gridTemplateRows`)),this.onDragStart=Z(n,`onDragStart`,Bg),this.onDragEnd=Z(n,`onDragEnd`,Bg),this.onDrag=Z(n,`onDrag`,Bg),this.writeStyle=Z(n,`writeStyle`,Vg),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=t.minSizeStart,this.minSizeEnd=t.minSizeEnd,t.element&&(this.element.addEventListener(`mousedown`,this.startDragging),this.element.addEventListener(`touchstart`,this.startDragging))};Q.prototype.getDimensions=function(){var e=this.grid.getBoundingClientRect(),t=e.width,n=e.height,r=e.top,i=e.bottom,a=e.left,o=e.right;this.direction===`column`?(this.start=r,this.end=i,this.size=n):this.direction===`row`&&(this.start=a,this.end=o,this.size=t)},Q.prototype.getSizeAtTrack=function(e,t){return Ig(e,this.computedPixels,this.computedGapPixels,t)},Q.prototype.getSizeOfTrack=function(e){return this.computedPixels[e].numeric},Q.prototype.getRawTracks=function(){var e=Lg(this.gridTemplateProp,[this.grid],Hg(this.grid));if(!e.length){if(this.optionStyle)return this.optionStyle;throw Error(`Unable to determine grid template tracks from styles.`)}return e[0]},Q.prototype.getGap=function(){var e=Lg(this.gridGapProp,[this.grid],Hg(this.grid));return e.length?e[0]:null},Q.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},Q.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},Q.prototype.setTracks=function(e){this.tracks=e.split(` `),this.trackValues=Fg(e)},Q.prototype.setComputedTracks=function(e){this.computedTracks=e.split(` `),this.computedPixels=Fg(e)},Q.prototype.setGap=function(e){this.gap=e},Q.prototype.setComputedGap=function(e){this.computedGap=e,this.computedGapPixels=Rg(`px`,this.computedGap)||0},Q.prototype.getMousePosition=function(e){return`touches`in e?e.touches[0][this.clientAxis]:e[this.clientAxis]},Q.prototype.startDragging=function(e){if(!(`button`in e&&e.button!==0)){e.preventDefault(),this.grid=this.element?this.element.parentNode:e.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var t=this.trackValues.filter(function(e){return e.type===`%`}),n=this.trackValues.filter(function(e){return e.type===`fr`});if(this.totalFrs=n.length,this.totalFrs){var r=zg(n);r!==null&&(this.frToPixels=this.computedPixels[r].numeric/n[r].numeric)}if(t.length){var i=zg(t);i!==null&&(this.percentageToPixels=this.computedPixels[i].numeric/t[i].numeric)}var a=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(e)-a,this.aTrack=this.track-1,this.tracko&&(t=i),ti&&(t=i);var s=t-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,c=this.bTrackEnd-t+this.dragStartOffset-n-this.computedGapPixels;if(this.dragInterval>1){var l=Math.round(s/this.dragInterval)*this.dragInterval;c-=l-s,s=l}if(swindow.removeEventListener(`editor-colors-changed`,i)}),t.addEventListener(`mousedown`,n=>{n.button!==0||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),n.stopPropagation(),e.dispatch({selection:p.EditorSelection.cursor(e.posAtDOM(t)),scrollIntoView:!1}),e.focus())}),t.addEventListener(`click`,e=>e.preventDefault()),n.addEventListener(`load`,()=>e.requestMeasure(),!0),n.addEventListener(`error`,()=>e.requestMeasure(),!0),this.renderInto(t,e),t}updateDOM(e,t){return this.renderInto(e,t),!0}renderInto(e,t){let n=kp.get(e),r={};n.request=r;let i=()=>e.isConnected&&kp.get(e)?.request===r,a=()=>{if(i()){let n=t.posAtDOM(e);t.dispatch({effects:Ep.of({doc:t.state.doc,from:n,to:n+this.source.length})})}};Promise.all([this.render(),``]).then(([e,r])=>{if(!i())return;let o=e.find(e=>e.fromLine===this.doc.lineAt(this.from).number&&e.toLine===this.doc.lineAt(this.to).number);if(o===void 0){a();return}let s=Op.sanitize(o.html,{RETURN_DOM_FRAGMENT:!0,FORBID_TAGS:[`style`,`link`,`meta`,`form`,`input`,`button`,`select`,`textarea`,`iframe`,`object`,`embed`,`audio`,`video`],FORBID_ATTR:[`tabindex`,`autofocus`,`contenteditable`],SANITIZE_NAMED_PROPS:!0}).querySelector(`table`);if(s===null){a();return}s.querySelectorAll(`a`).forEach(e=>e.setAttribute(`tabindex`,`-1`)),s.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=ad(t))}),n.mathStyle.textContent!==r&&(n.mathStyle.textContent=r),n.body.firstElementChild?.isEqualNode(s)||(n.body.classList.remove(`source`),n.body.replaceChildren(s),t.requestMeasure())}).catch(a)}destroy(e){kp.get(e)?.dispose(),kp.delete(e)}eq(e){return e.source===this.source&&e.referenceContext===this.referenceContext}ignoreEvent(){return!1}},Op=wp(),kp=new WeakMap}));function jp(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function Mp(e,t){let n=e.pos+t;if(dm==n&&um==e)return lm;let r=e.peek(t),i=``;for(;jp(r);)i+=String.fromCharCode(r),r=e.peek(++t);return um=e,dm=n,lm=i?i.toLowerCase():r==hm||r==gm?void 0:null}function Np(e,t){this.name=e,this.parent=t}function Pp(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}function Fp(e,t,n){let r=2+e.length;return new g.ExternalTokenizer(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==fm||a==1&&i.next==mm||a>=2&&ao?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om=o((()=>{Ip=55,Lp=1,Rp=56,zp=2,Bp=57,Vp=3,Hp=4,Up=5,Wp=6,Gp=7,Kp=8,qp=9,Jp=10,Yp=11,Xp=12,Zp=13,Qp=58,$p=14,em=15,tm=59,nm=21,rm=37,im=0,am=1,om={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},sm={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},cm={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},lm=null,um=null,dm=0,fm=60,pm=62,mm=47,hm=63,gm=33,_m=45,vm=[Wp,Jp,Gp,Kp,qp],ym=new g.ContextTracker({start:null,shift(e,t,n,r){return vm.indexOf(t)>-1?new Np(Mp(r,1)||``,e):e},reduce(e,t){return t==nm&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==Wp||i==rm?new Np(Mp(r,1)||``,e):e},strict:!1}),bm=new g.ExternalTokenizer((e,t)=>{if(e.next!=fm){e.next<0&&t.context&&e.acceptToken(Qp);return}e.advance();let n=e.next==mm;n&&e.advance();let r=Mp(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?em:$p);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Yp);if(i&&sm[i])return e.acceptToken(Qp,-2);if(t.dialectEnabled(im))return e.acceptToken(Xp);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(Zp)}else{if(r==`script`)return e.acceptToken(Gp);if(r==`style`)return e.acceptToken(Kp);if(r==`textarea`)return e.acceptToken(qp);if(om.hasOwnProperty(r))return e.acceptToken(Jp);i&&cm[i]&&cm[i][r]?e.acceptToken(Qp,-1):e.acceptToken(Wp)}},{contextual:!0}),xm=new g.ExternalTokenizer(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(tm);break}if(e.next==_m)t++;else if(e.next==pm&&t>=2){n>=3&&e.acceptToken(tm,-2);break}else t=0;e.advance()}}),Sm=new g.ExternalTokenizer((e,t)=>{if(e.next==mm&&e.peek(1)==pm){let n=t.dialectEnabled(am)||Pp(t.context);e.acceptToken(n?Up:Hp,2)}else e.next==pm&&e.acceptToken(Hp,1)}),Cm=Fp(`script`,Ip,Lp),wm=Fp(`style`,Rp,zp),Tm=Fp(`textarea`,Bp,Vp),Em=(0,h.styleTags)({"Text RawText IncompleteTag IncompleteCloseTag":h.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":h.tags.angleBracket,TagName:h.tags.tagName,"MismatchedCloseTag/TagName":[h.tags.tagName,h.tags.invalid],AttributeName:h.tags.attributeName,"AttributeValue UnquotedAttributeValue":h.tags.attributeValue,Is:h.tags.definitionOperator,"EntityReference CharacterReference":h.tags.character,Comment:h.tags.blockComment,ProcessingInst:h.tags.processingInstruction,DoctypeDecl:h.tags.documentMeta}),Dm=g.LRParser.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:`,c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:ym,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[Em],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{if([`FencedCode`,`CodeBlock`,`InlineCode`,`Frontmatter`,`CommentBlock`,`BlockMath`].includes(n.name)||t&&n.name===`Table`)return!1;if(n.name===`HTMLBlock`||n.name===`HTMLTag`){let t=e.doc.length;for(let e=n.node.parent;e!==null;e=e.parent)(e.name===`ListItem`||e.name===`Blockquote`)&&(t=Math.min(t,e.to));if(r.push({from:n.from,to:n.to,limit:t}),n.name===`HTMLTag`)return!1}else n.name===`QuoteMark`&&i.push({from:n.from,to:n.to})}}),r.length===0)return[];let a=0,o=n.replace(/{for(;a{if(e.name!==`Element`)return;let{from:t,to:o}=e;for(;a=0;e--){let n=i[e];n.from>=t&&n.to<=o&&(l=l.slice(0,n.from-t)+l.slice(n.to-t))}if(c!==void 0&&c.from<=t&&o<=c.limit&&Am(l))return s.push({from:t,to:o,source:l}),!1}}),s}function Am(e){let t=Dm.parse(e),n=!0,r=0;return t.iterate({enter:t=>{if((t.type.isError||t.name===`MismatchedCloseTag`)&&(n=!1),t.name===`Element`){r++;let e=t.node.firstChild,i=t.node.lastChild;e?.name!==`SelfClosingTag`&&i?.name!==`CloseTag`&&(n=!1)}else t.node.parent?.name===`Document`&&(t.name!==`Text`||e.slice(t.from,t.to).trim()!==``)&&(n=!1)}}),n&&r>0}var jm,Mm,Nm,Pm,Fm=o((()=>{Om(),Bu(),md(),Tp(),jm=class e extends d.WidgetType{source;fragment;block;constructor(e,t){super(),this.source=e,this.fragment=t,this.block=t.querySelector(`address, article, aside, blockquote, dd, details, dialog, div, dl, dt, fieldset, figcaption, figure, footer, h1, h2, h3, h4, h5, h6, header, hr, li, main, nav, ol, p, pre, section, table, ul`)!==null}static create(t){if(!Am(t))return;let n=Mm.sanitize(t,{RETURN_DOM_FRAGMENT:!0,USE_PROFILES:{html:!0},FORBID_TAGS:[`script`,`style`,`link`,`meta`,`base`,`form`,`input`,`button`,`select`,`textarea`,`iframe`,`object`,`embed`,`audio`,`video`],FORBID_ATTR:[`tabindex`,`autofocus`,`contenteditable`],SANITIZE_NAMED_PROPS:!0});if(n.childElementCount===0)return;let r=document.createElement(`span`).style;return n.querySelectorAll(`[style]`).forEach(e=>{r.cssText=e.getAttribute(`style`)??``,e.removeAttribute(`style`);for(let t of Pm){let n=r.getPropertyValue(t);n!==``&&e.style.setProperty(t,n)}}),n.querySelectorAll(`a`).forEach(e=>e.setAttribute(`tabindex`,`-1`)),n.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=ad(t))}),new e(t,n)}toDOM(e){let t=document.createElement(this.block?`div`:`span`);t.className=`cm-md-syntaxHiddenHtml`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=Pu(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i),Nm.set(t,()=>window.removeEventListener(`editor-colors-changed`,i));let a=document.createElement(`style`);a.textContent=this.block?`:host { display: block; } .markdown-body { font: inherit; white-space: normal; overflow-wrap: anywhere; overflow: auto; }`:`:host { display: inline; } .markdown-body { display: inline; font: inherit; white-space: normal; overflow-wrap: anywhere; } .markdown-body::before, .markdown-body::after { content: none; }`;let o=document.createElement(this.block?`div`:`span`);return o.className=`markdown-body`,o.inert=!0,o.append(this.fragment.cloneNode(!0)),n.append(r,a,o),t.addEventListener(`mousedown`,n=>{n.button!==0||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),n.stopPropagation(),e.dispatch({selection:p.EditorSelection.cursor(e.posAtDOM(t)),scrollIntoView:!1}),e.focus())}),t.addEventListener(`click`,e=>e.preventDefault()),n.addEventListener(`load`,()=>e.requestMeasure(),!0),n.addEventListener(`error`,()=>e.requestMeasure(),!0),t}updateDOM(e,t){return e.tagName===`DIV`===this.block&&(e.shadowRoot.querySelector(`.markdown-body`).replaceChildren(this.fragment.cloneNode(!0)),t.requestMeasure(),!0)}eq(e){return this.source===e.source}destroy(e){Nm.get(e)?.(),Nm.delete(e)}ignoreEvent(){return!1}},Mm=wp(),Nm=new WeakMap,Pm=[`text-align`,`color`,`background-color`,`font-family`,`font-weight`,`font-style`,`text-decoration-line`,`text-decoration-color`,`text-decoration-style`]})),Im,Lm=o((()=>{Ul(),Im=p.Facet.define({combine:e=>e[e.length-1]??Fl})}));function Rm(e,t=d.Decoration.none){let n=zm(e,t);return{all:n,visible:Bm(n,e)}}function zm(e,t){let n=[],r=(0,m.syntaxTree)(e),i=e.facet(Im),a=[];r.iterate({enter:t=>{if(t.name===`Document`)return;let n=e.sliceDoc(e.doc.lineAt(t.from).from,e.doc.lineAt(t.to).to);return(t.name!==`Paragraph`&&t.name!==`Table`||n.includes(`[`))&&a.push(n),!1}});let o=e.sliceDoc(r.length);a.push(o);let s,c=()=>s??=Ju(e.doc.toString()),l=JSON.stringify(a);if(i.includes(`html`))for(let{from:a,to:o,source:s}of km(e,i.includes(`table`))){if(r.length=r.length)continue;let i;t.between(a,o,(e,t,n)=>{let r=n.spec.widget;e===a&&t===o&&r instanceof jm&&r.source===s&&(i=r)}),i??=jm.create(s),i!==void 0&&n.push(d.Decoration.replace({block:i.block,widget:i}).range(a,o))}let u=n.slice(),f=0;return r.iterate({enter:a=>{for(;f=a.to)return!1;let s;if(a.name===`Table`&&i.includes(`table`)){for(let e=a.node.parent;e!==null;e=e.parent)if(e.name!==`Document`)return!1;if(r.length=r.length)return!1;let n=e.doc.lineAt(a.from).from,i=e.doc.lineAt(a.to).to,o=new Dp(e.doc,n,i,c,l);t.between(n,i,(e,t,r)=>{let a=r.spec.widget;e===n&&t===i&&a instanceof Dp&&o.eq(a)&&(o=a)}),s=d.Decoration.replace({block:!0,widget:o}).range(n,i)}if(s!==void 0)return n.push(s),!1}}),d.Decoration.set(n,!0)}function Bm(e,t){return e.size===0?e:e.update({filter:(e,n,r)=>{let i=r.spec.widget instanceof Dp,a=!1;if((i||r.spec.widget instanceof jm)&&(0,m.foldedRanges)(t).between(e,n,()=>{a=!0}),a||Um(t,e,n))return!1;if(i&&nt.empty&&t.goalColumn===void 0&&t.head>=e.from&&t.head<=e.to))return!1}return!0}})}var Vm,Hm=o((()=>{Xd(),Zd(),Ap(),Fm(),Lm(),lh(),rd(),Vm=p.StateField.define({create:e=>Rm(e),update(e,t){if(t.docChanged||t.reconfigured||(0,m.syntaxTree)(t.startState)!==(0,m.syntaxTree)(t.state)){let n=[];for(let r=e.all.iter();r.value!==null;r.next())if(r.value.spec.widget instanceof Dp||r.value.spec.widget instanceof jm){let e=t.changes.mapPos(r.from,1),i=t.changes.mapPos(r.to,-1);et!==e.value.from||n!==e.value.to}));return t.selection!==void 0||t.effects.length>0?{all:n,visible:Bm(n,t.state)}:e},provide:e=>d.EditorView.decorations.from(e,e=>e.visible)})}));function Um(e,t,n){return e.selection.ranges.some(e=>e.from<=n&&e.to>=t)}function Wm(e,t,n){return Um(e,t,n)||e.field(th,!1)?.some(e=>e.from<=t&&e.to>=n)===!0}function Gm(e,t){if(e.textDirectionAt(t)!==d.Direction.LTR)return;let n=Nd(e.state),r;for(let i=(0,m.syntaxTree)(e.state).resolveInner(t,-1);i!==null;i=i.parent){if(i.name===`Image`)return;if(Wm(e.state,i.from,i.to))continue;let a=Ym(i,e.state,n);if(a!==void 0&&Jm(e,i))return;let o=a?.hidden.find(e=>e.to===i.to),s=r?.to??t;o!==void 0&&s>=o.from&&s{let n=t.state,r=n.selection,i=n.field(th,!1);if(i===void 0||r.ranges.length!==1)return!1;let a=n.doc.lineAt(r.main.head),o=t.lineBlockAt(r.main.head);if(r.main.froma.to||o.from!==a.from||o.to!==a.to||t.textDirectionAt(r.main.head)!==d.Direction.LTR)return!1;let s=()=>t.state.doc===n.doc&&t.state.selection.eq(r,!0)&&t.state.field(th,!1)!==void 0,c=Xm(t,r,e);if(!s())return!0;if(i.length===0){if(!qm(t,a,c.main))return!1;if(i=[{from:a.from,to:a.to}],t.dispatch({effects:eh.of(i)}),!s())return!0;if(t.state.field(th)!==i)return!1;if(t.coordsAtPos(r.main.head),!s())return!0;c=Xm(t,r,e)}return!s()||!c.eq(r,!0)&&(t.dispatch({selection:c,effects:eh.of(i),scrollIntoView:!0,userEvent:`select`}),!0)}}function qm(e,t,n){let r=!1,i=Nd(e.state);return(0,m.syntaxTree)(e.state).iterate({from:t.from,to:t.to,enter:a=>{if(r||a.name===`Image`)return!1;a.from>=t.from&&a.to<=t.to&&Ym(a,e.state,i)!==void 0&&!Jm(e,a)&&(r=(n.from<=a.to&&n.to>=a.from)!==Um(e.state,a.from,a.to))}}),r}function Jm(e,t){let n=!1;return e.state.field(Vm,!1)?.visible.between(t.from,t.to,(e,r)=>{n||=e<=t.from&&r>=t.to}),n}function Ym(e,t,n){return e.name===`Link`||e.name===`Autolink`?kd(e,t,n):Hd(e)}function Xm(e,t,n){return p.EditorSelection.create(t.ranges.map(t=>{let r=n&&t.undirectional&&t.head{let n=p.EditorSelection.create(t.state.selection.ranges.map(n=>{let r=n;e&&r.undirectional&&r.head>=r.anchor&&(r=p.EditorSelection.range(r.head,r.anchor));let i=e||r.empty?Qm(t,r):p.EditorSelection.cursor(r.from);return!e&&r.empty&&i.head===r.head&&(i=t.moveToLineBoundary(r,!1)),e?p.EditorSelection.range(r.anchor,i.head,i.goalColumn,i.bidiLevel??void 0,i.assoc):i}),t.state.selection.mainIndex);return!n.eq(t.state.selection,!0)&&(t.dispatch({selection:n,scrollIntoView:!0,userEvent:`select`}),!0)}}function Qm(e,t){let n=e.moveVertically(t,!1),r=e.state.doc.lineAt(t.head),i=e.state.doc.lineAt(n.head);if(r.number-i.number<=1)return n;let a=e.state.doc.line(r.number-1);if(!$m(e,a.from))return n;let o=e.lineBlockAt(a.from),s=n.goalColumn,c=e.coordsAtPos(t.head,t.assoc||1),l=s===void 0?c?.left:e.contentDOM.getBoundingClientRect().left+s;if(l===void 0)return n;let u=e.posAndSideAtCoords({x:l,y:e.documentTop+o.top+o.height/2});return u===null||u.posa.to?n:p.EditorSelection.cursor(u.pos,u.assoc,void 0,s)}function $m(e,t){for(let n=(0,m.syntaxTree)(e.state).resolve(t,1);n!==null;n=n.parent)if(n.name.startsWith(`ATXHeading`))return!0;return!1}var eh,th,nh,rh,ih,ah,oh,sh,ch,lh=o((()=>{Bd(),Yd(),Hm(),eh=p.StateEffect.define(),th=p.StateField.define({create:()=>[],update(e,t){if(t.docChanged)return[];for(let e of t.effects)if(e.is(eh))return e.value;return t.newSelection.eq(t.startState.selection,!0)?e:[]}}),nh=Zm(!1),rh=Zm(!0),ih=Km(!1),ah=Km(!0),oh=p.Prec.high(d.keymap.of([{mac:`Cmd-ArrowRight`,run:ih,shift:ah}])),sh=p.Prec.high(d.keymap.of([{key:`ArrowUp`,run:nh,shift:rh}])),ch=d.EditorView.mouseSelectionStyle.of((e,t)=>{if(t.button!==0||t.detail!==1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return null;let n={x:t.clientX,y:t.clientY},r=e.posAndSideAtCoords(n,!1);if(Number.isFinite(r.pos)){let t=Gm(e,r.pos),i=t===void 0?null:e.coordsAtPos(t.from,-1);t!==void 0&&i!==null&&n.x>i.right&&n.y>=i.top&&n.y<=i.bottom&&(r={pos:t.to,assoc:-1})}return{get(t){if(!Number.isFinite(r.pos))return e.state.selection;if(Math.max(Math.abs(t.clientX-n.x),Math.abs(t.clientY-n.y))<=5)return p.EditorSelection.create([p.EditorSelection.cursor(r.pos,r.assoc)]);let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1);return Number.isFinite(i.pos)?i.pos===r.pos?p.EditorSelection.create([p.EditorSelection.cursor(i.pos,i.assoc)]):p.EditorSelection.create([p.EditorSelection.range(r.pos,i.pos,void 0,void 0,i.assoc)]):e.state.selection},update(e){e.docChanged&&Number.isFinite(r.pos)&&(r={...r,pos:e.changes.mapPos(r.pos)})}}})}));function uh(e,t){if(e.name!==`Blockquote`)return;let n=e.node.getChild(`Paragraph`);if(n===null)return;let r=e.node.firstChild;for(;r!==null&&(r.from!==n.from||r.to!==n.to);){if(r.name!==`QuoteMark`)return;r=r.nextSibling}if(r===null)return;let i=t.doc.lineAt(n.from),a=t.sliceDoc(n.from,i.to),o=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?=[ \t]*$)/i.exec(a);if(o===null)return;let s=o[1].toLowerCase(),c=n.from,l=c+o[0].length;if(!Um(t,c,l))return{from:c,to:l,type:s,title:ph[s]}}function dh(e,t){if(e.name===`QuoteMark`&&!Um(t,e.from,e.to))return{from:e.from,to:e.to}}function fh(e){if(e.name!==`Blockquote`)return;let t=1,n=e.node.parent;for(;n!==null;)n.name===`Blockquote`&&(t+=1),n=n.parent;return{from:e.from,to:e.to,depth:t}}var ph,mh=o((()=>{lh(),ph={note:`Note`,tip:`Tip`,important:`Important`,warning:`Warning`,caution:`Caution`}})),hh,gh,_h=o((()=>{hh={note:``,tip:``,important:``,warning:``,caution:``},gh=class extends d.WidgetType{type;title;constructor(e,t){super(),this.type=e,this.title=t}eq(e){return e.type===this.type&&e.title===this.title}toDOM(){let e=document.createElement(`span`);e.className=`cm-md-syntaxHiddenAlert`,e.dataset.type=this.type;let t=e.appendChild(document.createElement(`span`));t.className=`cm-md-syntaxHiddenAlertIcon`,t.innerHTML=hh[this.type],t.setAttribute(`aria-hidden`,`true`);let n=e.appendChild(document.createElement(`span`));return n.textContent=this.title,e}ignoreEvent(){return!1}}}));function vh(e){let t=new Map,n=new Map;for(let{from:r,to:i}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:r,to:i,enter:r=>{let i=fh(r);if(i!==void 0&&t.set(Th(i),i),r.name!==`QuoteMark`)return;let a=wh(r.node);if(a===null)return;let o=Th(a),s=e.state.doc.lineAt(r.from).from,c=n.get(o)??new Map;c.set(s,{position:r.from,active:Um(e.state,r.from,r.to)}),n.set(o,c)}});let r=[];return t.forEach((t,i)=>{let a=n.get(i),o=new Set;e.viewportLineBlocks.forEach(n=>{let i=e.state.doc.lineAt(n.from);if(o.has(i.from)||i.to=t.to)return;o.add(i.from);let s=a?.get(i.from);s?.active!==!0&&r.push({line:i.from,ownerFrom:t.from,anchor:s?.position,depth:t.depth})})}),r}function yh(e){let t=Ch(e),n=new Map;return vh(e).flatMap(r=>{let i=Sh(e,r.line)?.getBoundingClientRect(),a=e.coordsAtPos(r.line,1);if(i===void 0||a===null)return[];let o=r.anchor===void 0?void 0:e.coordsAtPos(r.anchor,1)?.left;if(o===void 0){let t=n.get(r.ownerFrom);t===void 0&&(t=xh(e,r.ownerFrom),n.set(r.ownerFrom,t)),o=a.left+t}let s=bh(e,r.anchor??r.ownerFrom);return[new Dh(r.depth,o-t.left,i.top-t.top,3,i.height,s.color,s.opacity)]})}function bh(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(i*=e)}return{color:getComputedStyle(r??e.contentDOM).color,opacity:i}}function xh(e,t){let n=e.state.doc.lineAt(t),r=e.coordsAtPos(n.from,1),i=e.coordsAtPos(t,1);if(r!==null&&i!==null)return i.left-r.left;let a=0;for(let r of e.state.sliceDoc(n.from,t))a=r===` `?a+e.state.tabSize-a%e.state.tabSize:a+1;return a*e.defaultCharacterWidth}function Sh(e,t){let n=e.domAtPos(t).node;return(n instanceof HTMLElement?n:n.parentElement)?.closest(`.cm-line`)}function Ch(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function wh(e){let t=e.parent;for(;t!==null&&t.name!==`Blockquote`;)t=t.parent;return t}function Th(e){return`${e.from}:${e.to}`}var Eh,Dh,Oh=o((()=>{mh(),lh(),Eh=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenBlockquoteLayer`,markers:yh,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),Dh=class extends d.RectangleMarker{color;opacity;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenBlockquoteBar cm-md-syntaxHiddenBlockquoteBar-depth-${e}`,t,n,r,i),this.color=a,this.opacity=o}draw(){let e=super.draw();return e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,e}update(e,t){return super.update(e,t)?(e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity}}}));function kh(e,t){if(e.name!==`ListMark`)return;let n=e.node.parent,r=n?.getChild(`Task`),i=r?.getChild(`TaskMarker`);if(n?.name===`ListItem`&&n.parent?.name===`BulletList`&&/^[ \t]$/.test(t.sliceDoc(e.to,e.to+1))&&!Um(t,e.from,i?.to??e.to))return{from:e.from,to:e.to,task:r!==null}}var Ah=o((()=>{lh()}));function jh(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{let r=kh(n,e.state);r!==void 0&&!r.task&&t.push({from:r.from,to:r.to})}});return t}function Mh(e){let t=Ph(e);return jh(e).flatMap(n=>{let r=e.coordsForChar(n.from);if(r===null)return[];let i=Nh(e,n.from);return[new Ih(r.left-t.left,r.top-t.top,r.right-r.left,r.bottom-r.top,i.color,i.opacity,i.textShadow)]})}function Nh(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=getComputedStyle(r??e.contentDOM),a=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(a*=e)}return{color:i.color,opacity:a,textShadow:i.textShadow===`none`?``:i.textShadow}}function Ph(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}var Fh,Ih,Lh=o((()=>{Ah(),Fh=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenListBulletLayer`,markers:Mh,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),Ih=class extends d.RectangleMarker{color;opacity;textShadow;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenListBullet`,e,t,n,r),this.color=i,this.opacity=a,this.textShadow=o}draw(){let e=super.draw();return e.textContent=`•`,e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,e}update(e,t){return super.update(e,t)?(e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity&&this.textShadow===e.textShadow}}}));function Rh(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{if(n.name!==`TaskMarker`)return;let r=n.node.parent,i=r?.parent,a=i?.getChild(`ListMark`),o=n.to+1;r?.name===`Task`&&i?.name===`ListItem`&&i.parent?.name===`BulletList`&&a!=null&&e.state.sliceDoc(n.to,o)===` `&&!Um(e.state,a.from,n.to)&&t.push({from:a.from,to:o,markerFrom:n.from,listPrefix:e.state.sliceDoc(a.from,a.to+1),checked:e.state.sliceDoc(n.from,n.to)!==`[ ]`,label:e.state.sliceDoc(o,e.state.doc.lineAt(n.to).to).trim()||`Task`})}});return t}function zh(e){let t=e.state.readOnly||!e.state.facet(d.EditorView.editable),n=Rh(e).map(e=>d.Decoration.replace({widget:new Wh(e.markerFrom,e.listPrefix,e.checked,e.label,t)}).range(e.from,e.to));return d.Decoration.set(n,!0)}function Bh(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);if(t===null||t.offsetWidth===0)return;let n=parseFloat(getComputedStyle(e).fontSize);t.style.setProperty(`--cm-md-task-checkbox-scale`,`${n/t.offsetWidth}`)}function Vh(e,t,n){let r=e.state.sliceDoc(t,t+3);if(e.state.readOnly||!e.state.facet(d.EditorView.editable)||!/^\[[ xX]\]$/.test(r))return;let i=e.state.changes({from:t+1,to:t+2,insert:n?`x`:` `});e.dispatch({changes:i,effects:e.scrollSnapshot().map(i)??[],userEvent:`input`})}var Hh,Uh,Wh,Gh=o((()=>{lh(),Hh=typeof ResizeObserver>`u`?void 0:new ResizeObserver(e=>{for(let t of e)Bh(t.target)}),Uh=[d.ViewPlugin.fromClass(class{decorations;constructor(e){this.decorations=zh(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.startState.readOnly!==e.state.readOnly||e.transactions.some(e=>e.reconfigured))&&(this.decorations=zh(e.view))}},{decorations:e=>e.decorations}),d.EditorView.baseTheme({"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxFrame":{display:`inline-block`,position:`relative`,margin:`0`,textIndent:`0`,verticalAlign:`baseline`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxMarker":{visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxControl":{position:`relative`,insetInlineStart:`-0.15em`,display:`inline-block`,verticalAlign:`baseline`,width:`1em`,height:`0`,marginInlineEnd:`-1em`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckbox":{position:`absolute`,font:`inherit`,top:`-0.35em`,top_cap:`-0.5cap`,left:`50%`,margin:`0`,transform:`translate(-50%, -50%) scale(var(--cm-md-task-checkbox-scale, 1))`}})],Wh=class extends d.WidgetType{markerFrom;listPrefix;checked;label;disabled;constructor(e,t,n,r,i){super(),this.markerFrom=e,this.listPrefix=t,this.checked=n,this.label=r,this.disabled=i}eq(e){return this.markerFrom===e.markerFrom&&this.listPrefix===e.listPrefix&&this.checked===e.checked&&this.label===e.label&&this.disabled===e.disabled}toDOM(e){let t=document.createElement(`span`);t.className=`cm-md-syntaxHiddenTaskCheckboxFrame`;let n=t.appendChild(document.createElement(`span`));n.className=`cm-md-syntaxHiddenTaskCheckboxMarker`,n.textContent=this.listPrefix;let r=t.insertBefore(document.createElement(`span`),n);r.className=`cm-md-syntaxHiddenTaskCheckboxControl`;let i=r.appendChild(document.createElement(`input`));return i.className=`cm-md-syntaxHiddenTaskCheckbox`,i.type=`checkbox`,this.updateInput(i),i.addEventListener(`change`,()=>Vh(e,Number(i.dataset.markerFrom),i.checked)),Hh?.observe(t),t}updateDOM(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);return t!==null&&(this.updateInput(t),!0)}destroy(e){Hh?.unobserve(e)}ignoreEvent(){return!0}updateInput(e){e.checked=this.checked,e.disabled=this.disabled,e.dataset.markerFrom=`${this.markerFrom}`,e.setAttribute(`aria-label`,this.label)}}}));function Kh(e){let t=e.trim().toLowerCase();return Xh.test(t)&&!Zh.test(t)?!1:(window.open(e,`_blank`,`noopener`),!0)}async function qh(e,t,n=`definition`){let r=e.state,i=(0,m.ensureSyntaxTree)(r,r.doc.length,5e3);if(i===null)return!1;let a;return i.iterate({enter:e=>{if(a!==void 0)return!1;if(n===`reference`){let n=Ad(e,r).find(e=>e.label===t);n!==void 0&&(a=p.EditorSelection.range(n.from,n.to))}else e.name===`LinkDefinition`&&r.sliceDoc(e.from,e.to)===`[${t}]`&&(a=p.EditorSelection.range(e.from,e.to))}}),a===void 0?(_(),!1):(Yh(e,a),!0)}async function Jh(e,t){let n=e.state.doc,r=await Yu(n.toString(),t);if(r===void 0||e.state.doc!==n)return!1;let i=e.state.doc.line(r+1).from;return Yh(e,p.EditorSelection.cursor(i)),!0}function Yh(e,t){let n=e.state.doc,r=e.scrollDOM.scrollTop,i=n=>e.dispatch({effects:d.EditorView.scrollIntoView(t.from,{y:n,yMargin:5})});e.dispatch({selection:t}),i(`start`),setTimeout(()=>{e.state.doc===n&&Math.abs(e.scrollDOM.scrollTop-r)<.001&&i(`center`)},50)}var Xh,Zh,Qh=o((()=>{Bd(),rd(),C(),Xh=/^(?:vbscript|javascript|file|data):/,Zh=/^data:image\/(?:gif|png|jpeg|webp);/})),$h,eg,tg=o((()=>{Qh(),C(),Wu(),$h={link:``,image:``,footnoteBack:``},eg=class extends d.WidgetType{kind;destination;label;highlightClasses;constructor(e,t,n,r,i){super(),this.kind=e,this.destination=n,this.label=r,this.highlightClasses=(0,m.highlightingFor)(t,i)??``}toDOM(e){let t=document.createElement(`button`);return t.type=`button`,t.className=[`cm-md-syntaxHiddenLinkButton`,this.highlightClasses].filter(Boolean).join(` `),t.dataset.kind=this.kind,t.title=this.kind===`footnote`||this.kind===`footnoteBack`?U(this.kind===`footnote`?`goToFootnoteDefinition`:`backToFootnoteReference`).replace(`%s`,()=>this.destination.slice(1)):this.destination,t.innerHTML=$h[this.kind===`footnote`?`link`:this.kind],t.setAttribute(`aria-label`,t.title||this.label),t.addEventListener(`click`,t=>{t.stopPropagation(),this.kind===`footnote`?qh(e,this.destination):this.kind===`footnoteBack`?qh(e,this.destination,`reference`):this.destination.startsWith(`#`)?Jh(e,this.destination):this.destination===``?_():Kh(this.destination)}),t}eq(e){return e.kind===this.kind&&e.highlightClasses===this.highlightClasses&&e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!0}}})),ng,rg=o((()=>{ng=class extends d.WidgetType{text;constructor(e){super(),this.text=e}eq(e){return e.text===this.text}toDOM(){let e=document.createElement(`span`);return e.textContent=this.text,e}ignoreEvent(){return!1}}})),ig,ag=o((()=>{md(),ig=class extends d.WidgetType{destination;label;constructor(e,t){super(),this.destination=e,this.label=t}toDOM(){let e=document.createElement(`img`);return e.className=`cm-md-syntaxHiddenImage`,e.src=ad(this.destination),e.alt=this.label,e.title=this.destination,e.draggable=!1,e}eq(e){return e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!1}}}));function og(e,t){let n=[];if(e.name!==`FencedCode`)return n;let r=t.state,i=e.node.firstChild,a=e.node.lastChild;if(i?.name!==`CodeMark`||a?.name!==`CodeMark`||i.from===a.from||!r.sliceDoc(i.from,i.to).startsWith("```"))return n;let o=r.doc.lineAt(i.from),s=r.doc.lineAt(a.from);e.node.getChild(`CodeInfo`);let c=!1;if((0,m.foldedRanges)(r).between(o.to,s.to,(e,t)=>{if(e>=o.to&&t>=s.to)return c=!0,!1}),c)return n;for(let{from:e,to:i}of t.visibleRanges){let t=Math.max(o.number,r.doc.lineAt(e).number),a=Math.min(s.number,r.doc.lineAt(i).number);for(let e=t;e<=a;e++){let t=r.doc.line(e),i=[`cm-md-syntaxHiddenCodeBlock`];e===o.number&&i.push(`cm-md-syntaxHiddenCodeStart`),e===s.number&&i.push(`cm-md-syntaxHiddenCodeEnd`),o.number,n.push(d.Decoration.line({class:i.join(` `),attributes:void 0}).range(t.from))}}return n}var sg=o((()=>{lh(),d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenFence`})}));function cg(e,t){let n=e.node.parent;if(e.name!==`HeaderMark`||n?.name.startsWith(`ATXHeading`)!==!0||n.firstChild?.from!==e.from)return;let r=ug(t,e.to,n.to);if(dg(t,r,n.to)&&!Um(t,n.from,n.to))return{from:e.from,to:r}}function lg(e,t){let n=e.node.parent;if(e.name!==`HeaderMark`||n?.name.startsWith(`SetextHeading`)!==!0)return;let r=t.doc.lineAt(e.from);if(!Um(t,n.from,n.to))return r.from}function ug(e,t,n){return t+(/^ */.exec(e.sliceDoc(t,n))?.[0].length??0)}function dg(e,t,n){return/\S/.test(e.sliceDoc(t,n))}var fg=o((()=>{lh()}));function pg(e,t){if(e.name!==`HorizontalRule`||e.node.parent?.name!==`Document`)return;let n=t.doc.lineAt(e.from);if(!Um(t,n.from,n.to))return d.Decoration.replace({widget:new mg((0,m.highlightingFor)(t,[h.tags.contentSeparator])??``)}).range(n.from,n.to)}var mg,hg=o((()=>{lh(),mg=class extends d.WidgetType{highlightClass;constructor(e){super(),this.highlightClass=e}eq(e){return e.highlightClass===this.highlightClass}toDOM(){let e=document.createElement(`span`);return e.className=[`cm-md-syntaxHiddenHorizontalRule`,this.highlightClass].filter(Boolean).join(` `),e.setAttribute(`role`,`separator`),e.setAttribute(`aria-orientation`,`horizontal`),e}}})),gg,_g=o((()=>{gg=d.EditorView.baseTheme({"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTable":{boxSizing:`border-box`,width:`100%`,padding:`0.5em 6px`,overflow:`hidden`,contain:`content`,cursor:`text`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeBlock":{"--code-border":`color-mix(in srgb, currentColor 18%, transparent)`,boxShadow:`inset 1px 0 var(--code-border), inset -1px 0 var(--code-border)`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeStart":{position:`relative`,boxShadow:`inset 1px 0 var(--code-border), inset -1px 0 var(--code-border), inset 0 1px var(--code-border)`,borderTopLeftRadius:`6px`,borderTopRightRadius:`6px`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeStart[data-code-language]::after":{content:`attr(data-code-language)`,position:`absolute`,top:`0.5em`,right:`0.5em`,maxWidth:`calc(100% - 1em)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontSize:`0.8em`,lineHeight:`1`,opacity:`0.55`,pointerEvents:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenCodeEnd":{boxShadow:`inset 1px 0 var(--code-border), inset -1px 0 var(--code-border), inset 0 -1px var(--code-border)`,borderBottomLeftRadius:`6px`,borderBottomRightRadius:`6px`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSource, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSource *":{fontSize:`0px !important`,fontVariantLigatures:`none !important`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSource:has(> *)":{fontSize:`inherit !important`,lineHeight:`inherit !important`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenFence, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenFence *":{fontSize:`inherit !important`,visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenQuoteMark, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenQuoteMark *":{fontSize:`inherit !important`,visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListMark, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListMark *":{fontSize:`inherit !important`,visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListBullet":{display:`flex`,alignItems:`center`,justifyContent:`center`,fontFamily:`Menlo, monospace`,fontSize:`0.9em`,pointerEvents:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenListBulletLayer, &.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockquoteLayer":{zIndex:`0 !important`},"&.cm-md-syntaxHiddenMode *:has(> .cm-md-syntaxHiddenSource)::before":{display:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenQuoteMark + *::before":{display:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSetextUnderline":{height:`0`,lineHeight:`0`,overflow:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenSetextUnderline *::before":{display:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenInlineCodeStart .cm-md-inlineCode, &.cm-md-syntaxHiddenMode .cm-md-inlineCode:has(.cm-md-syntaxHiddenInlineCodeStart), &.cm-md-syntaxHiddenMode .cm-md-inlineCode.cm-md-syntaxHiddenInlineCodeStart":{borderTopLeftRadius:`3px`,borderBottomLeftRadius:`3px`,paddingInlineStart:`0.25em`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenInlineCodeEnd .cm-md-inlineCode, &.cm-md-syntaxHiddenMode .cm-md-inlineCode:has(.cm-md-syntaxHiddenInlineCodeEnd), &.cm-md-syntaxHiddenMode .cm-md-inlineCode.cm-md-syntaxHiddenInlineCodeEnd":{borderTopRightRadius:`3px`,borderBottomRightRadius:`3px`,paddingInlineEnd:`0.25em`},"&.cm-md-syntaxHiddenMode .cm-lineNumbers .cm-gutterElement":{overflow:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockquoteBar":{pointerEvents:`none`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert":{display:`inline-flex`,alignItems:`center`,boxSizing:`border-box`,height:`1em`,lineHeight:`1em`,verticalAlign:`middle`,gap:`0.4em`,fontFamily:`system-ui, -apple-system, BlinkMacSystemFont, sans-serif`,fontStyle:`normal`,fontWeight:`500`,textIndent:`0`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="note"]':{color:`#0969da`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="tip"]':{color:`#1a7f37`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="important"]':{color:`#8250df`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="warning"]':{color:`#9a6700`},'&light.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="caution"]':{color:`#d1242f`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="note"]':{color:`#2f81f7`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="tip"]':{color:`#3fb950`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="important"]':{color:`#a371f7`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="warning"]':{color:`#d29922`},'&dark.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlert[data-type="caution"]':{color:`#f85149`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlertIcon":{display:`inline-block`,width:`1em`,height:`1em`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenAlertIcon svg":{display:`block`,width:`100%`,height:`100%`,fill:`currentColor`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenLinkButton":{display:`inline-block`,appearance:`none`,width:`0.9em`,height:`0.9em`,padding:`0`,border:`0`,background:`transparent`,font:`inherit`,marginInlineStart:`0.25em`,verticalAlign:`-0.1em`,cursor:`pointer`},":where(&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenLinkButton)":{color:`inherit`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenLinkButton svg":{display:`block`,width:`100%`,height:`100%`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenHorizontalRule":{display:`inline-block`,width:`100%`,borderTop:`2px solid currentColor`,verticalAlign:`middle`,opacity:`0.35`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenImage":{display:`inline-block`,maxWidth:`100%`,height:`auto`,verticalAlign:`middle`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockMath":{boxSizing:`border-box`,width:`100%`,paddingBlock:`0.5em`,overflowX:`auto`,overflowY:`hidden`,textAlign:`center`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenBlockMath .katex-display":{margin:`0`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenMermaid":{boxSizing:`border-box`,width:`100%`,paddingBlock:`0.5em`,overflowX:`auto`,overflowY:`hidden`,textAlign:`center`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenMermaid svg":{display:`block`,maxWidth:`100%`,height:`auto`,marginInline:`auto`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenMermaidError":{whiteSpace:`pre-wrap`,textAlign:`start`}})})),vg=c({createHiddenSyntaxExtension:()=>yg,hiddenSyntaxExtension:()=>kg});function yg(e=Fl){return[Im.of(e),Og]}function bg(e){let t=[],n=new Set,r=new Set,i=e.state.facet(Im).includes(`image`),a=e.state.facet(Im).includes(`html`),o=Nd(e.state);for(let{from:s,to:c}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:s,to:c,enter:s=>{if(a){let t=!1;if(e.state.field(Vm).visible.between(s.from,s.to,(e,n,r)=>{r.spec.widget instanceof jm&&es.from&&(t||=e<=s.from&&n>=s.to)}),t)return!1}s.name===`FencedCode`&&!r.has(s.from)&&(r.add(s.from),t.push(...og(s,e)));let c=uh(s,e.state);c!==void 0&&!n.has(c.from)&&(n.add(c.from),t.push(d.Decoration.replace({widget:new gh(c.type,c.title)}).range(c.from,c.to)));let l=dh(s,e.state);l!==void 0&&t.push(Sg.range(l.from,l.to));let u=kh(s,e.state);if(u!==void 0){let e=u.task?wg:Cg;t.push(e.range(u.from,u.to))}let f=kd(s,e.state,o),p=f?.image?Um:Wm;if(f!==void 0&&!p(e.state,s.from,s.to)){let n=e.state.sliceDoc(f.label.from,f.label.to);if(i&&f.image&&f.destination!==``)t.push(d.Decoration.replace({widget:new ig(f.destination,n)}).range(s.from,s.to));else{f.hidden.forEach(e=>t.push(xg.range(e.from,e.to)));let r=f.image?Dg:Eg;t.push(r.range(f.label.from,f.label.to)),t.push(d.Decoration.widget({widget:new eg(f.image?`image`:`link`,e.state,f.destination,n,f.highlightTags),side:-1}).range(f.label.to))}}let m=Ad(s,e.state);for(let n of m)Um(e.state,n.from,n.to)||(t.push(xg.range(n.from+1,n.from+2)),t.push(Eg.range(n.from,n.to)),t.push(d.Decoration.widget({widget:new eg(`footnote`,e.state,n.label,n.label,n.highlightTags),side:-1}).range(n.to)));let h=jd(s,e.state);h!==void 0&&(h.hidden.forEach(e=>t.push(xg.range(e.from,e.to))),t.push(d.Decoration.widget({widget:new eg(`footnoteBack`,e.state,h.label,h.label,h.highlightTags),side:-1}).range(h.suffixPosition)),h.suffix!==``&&t.push(d.Decoration.widget({widget:new ng(h.suffix),side:1}).range(h.suffixPosition)));let g=Vd(s,e.state);t.push(...g);let _=pg(s,e.state);_!==void 0&&t.push(_);let v=cg(s,e.state);v!==void 0&&t.push(xg.range(v.from,v.to));let y=lg(s,e.state);y!==void 0&&t.push(Tg.range(y))}});return d.Decoration.set(t,!0)}var xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag=o((()=>{mh(),_h(),Oh(),Lh(),Gh(),tg(),rg(),ag(),Fm(),Hm(),Lm(),sg(),fg(),hg(),Yd(),Bd(),_g(),Ah(),lh(),Ul(),xg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource`}),Sg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenQuoteMark`}),Cg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenListMark cm-md-syntaxHiddenBulletMark`}),wg=d.Decoration.mark({class:`cm-md-syntaxHiddenSource cm-md-syntaxHiddenListMark cm-md-syntaxHiddenTaskMark`}),Tg=d.Decoration.line({class:`cm-md-syntaxHiddenSetextUnderline`}),Eg=d.Decoration.mark({class:`cm-md-syntaxHiddenLinkLabel`}),Dg=d.Decoration.mark({class:`cm-md-syntaxHiddenImageLabel`}),Og=[d.EditorView.editorAttributes.of({class:`cm-md-syntaxHiddenMode`}),sh,th,oh,ch,d.ViewPlugin.fromClass(class{decorations;constructor(e){this.decorations=bg(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.startState.field(th)!==e.state.field(th)||e.transactions.some(e=>e.reconfigured))&&(this.decorations=bg(e.view))}},{decorations:e=>e.decorations}),Eh,Fh,Uh,Vm,gg],kg=yg()})),jg=new p.Compartment,Mg=jg.of([]),Ng=0;async function Pg(e,t){let n=++Ng,r=t?await Ig():[];n===Ng&&(e.dispatch({effects:jg.reconfigure(r)}),t&&e.requestMeasure())}var Fg;function Ig(){return Fg??=Promise.resolve().then(()=>(Ag(),vg)).then(e=>e.hiddenSyntaxExtension)}var Lg=function(e,t){return Number(e.slice(0,-1*t.length))},Rg=function(e){return e.endsWith(`px`)?{value:e,type:`px`,numeric:Lg(e,`px`)}:e.endsWith(`fr`)?{value:e,type:`fr`,numeric:Lg(e,`fr`)}:e.endsWith(`%`)?{value:e,type:`%`,numeric:Lg(e,`%`)}:e===`auto`?{value:e,type:`auto`}:null},zg=function(e){return e.split(` `).map(Rg)},Bg=function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=!1);var i=r?e+1:e;return t.slice(0,i).reduce(function(e,t){return e+t.numeric},0)+(n?e*n:0)},Vg=function(e,t,n){return t.concat(n).map(function(t){return t.style[e]}).filter(function(e){return e!==void 0&&e!==``})},Hg=function(e,t){return t.endsWith(e)?Number(t.slice(0,-1*e.length)):null},Ug=function(e){for(var t=0;t0)return t;return null},Wg=function(){return!1},Gg=function(e,t,n){e.style[t]=n},Z=function(e,t,n){var r=e[t];return r===void 0?n:r};function Kg(e){var t;return(t=[]).concat.apply(t,Array.from(e.ownerDocument.styleSheets).map(function(e){var t=[];try{t=Array.from(e.cssRules||[])}catch{}return t})).filter(function(t){var n=!1;try{n=e.matches(t.selectorText)}catch{}return n})}var qg=`grid-template-columns`,Jg=`grid-template-rows`,Q=function(e,t,n){this.direction=e,this.element=t.element,this.track=t.track,e===`column`?(this.gridTemplateProp=qg,this.gridGapProp=`grid-column-gap`,this.cursor=Z(n,`columnCursor`,Z(n,`cursor`,`col-resize`)),this.snapOffset=Z(n,`columnSnapOffset`,Z(n,`snapOffset`,30)),this.dragInterval=Z(n,`columnDragInterval`,Z(n,`dragInterval`,1)),this.clientAxis=`clientX`,this.optionStyle=Z(n,`gridTemplateColumns`)):e===`row`&&(this.gridTemplateProp=Jg,this.gridGapProp=`grid-row-gap`,this.cursor=Z(n,`rowCursor`,Z(n,`cursor`,`row-resize`)),this.snapOffset=Z(n,`rowSnapOffset`,Z(n,`snapOffset`,30)),this.dragInterval=Z(n,`rowDragInterval`,Z(n,`dragInterval`,1)),this.clientAxis=`clientY`,this.optionStyle=Z(n,`gridTemplateRows`)),this.onDragStart=Z(n,`onDragStart`,Wg),this.onDragEnd=Z(n,`onDragEnd`,Wg),this.onDrag=Z(n,`onDrag`,Wg),this.writeStyle=Z(n,`writeStyle`,Gg),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=t.minSizeStart,this.minSizeEnd=t.minSizeEnd,t.element&&(this.element.addEventListener(`mousedown`,this.startDragging),this.element.addEventListener(`touchstart`,this.startDragging))};Q.prototype.getDimensions=function(){var e=this.grid.getBoundingClientRect(),t=e.width,n=e.height,r=e.top,i=e.bottom,a=e.left,o=e.right;this.direction===`column`?(this.start=r,this.end=i,this.size=n):this.direction===`row`&&(this.start=a,this.end=o,this.size=t)},Q.prototype.getSizeAtTrack=function(e,t){return Bg(e,this.computedPixels,this.computedGapPixels,t)},Q.prototype.getSizeOfTrack=function(e){return this.computedPixels[e].numeric},Q.prototype.getRawTracks=function(){var e=Vg(this.gridTemplateProp,[this.grid],Kg(this.grid));if(!e.length){if(this.optionStyle)return this.optionStyle;throw Error(`Unable to determine grid template tracks from styles.`)}return e[0]},Q.prototype.getGap=function(){var e=Vg(this.gridGapProp,[this.grid],Kg(this.grid));return e.length?e[0]:null},Q.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},Q.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},Q.prototype.setTracks=function(e){this.tracks=e.split(` `),this.trackValues=zg(e)},Q.prototype.setComputedTracks=function(e){this.computedTracks=e.split(` `),this.computedPixels=zg(e)},Q.prototype.setGap=function(e){this.gap=e},Q.prototype.setComputedGap=function(e){this.computedGap=e,this.computedGapPixels=Hg(`px`,this.computedGap)||0},Q.prototype.getMousePosition=function(e){return`touches`in e?e.touches[0][this.clientAxis]:e[this.clientAxis]},Q.prototype.startDragging=function(e){if(!(`button`in e&&e.button!==0)){e.preventDefault(),this.grid=this.element?this.element.parentNode:e.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var t=this.trackValues.filter(function(e){return e.type===`%`}),n=this.trackValues.filter(function(e){return e.type===`fr`});if(this.totalFrs=n.length,this.totalFrs){var r=Ug(n);r!==null&&(this.frToPixels=this.computedPixels[r].numeric/n[r].numeric)}if(t.length){var i=Ug(t);i!==null&&(this.percentageToPixels=this.computedPixels[i].numeric/t[i].numeric)}var a=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(e)-a,this.aTrack=this.track-1,this.tracko&&(t=i),ti&&(t=i);var s=t-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,c=this.bTrackEnd-t+this.dragStartOffset-n-this.computedGapPixels;if(this.dragInterval>1){var l=Math.round(s/this.dragInterval)*this.dragInterval;c-=l-s,s=l}if(s{if(!e.metaKey||e.key!==`a`)return;let t=f.MarkEdit.editorView?.contentDOM??document.querySelector(`.cm-content`);($.classList.contains(`overlay`)||document.activeElement!==t)&&(S($),e.preventDefault())}),new MutationObserver(v_).observe($,{attributes:!0,attributeFilter:[`style`,`class`]}),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{v_(),document.querySelector(`.mermaid`)!==null&&s_()}),typeof f.MarkEdit.getFileInfo==`function`&&typeof f.MarkEdit.openFile==`function`&&$.addEventListener(`click`,x_),$.addEventListener(`click`,e=>{S_(e),C_(e)})}function n_(e,t=!0){let n=a_();w_.viewMode=e,e!==n&&localStorage.setItem(wd.viewModeCacheKey,String(e));let r=f.MarkEdit.editorView;Ag(r,e===3),o_()?r.focus():e===2&&r.contentDOM.blur(),e===1?(Xg.classList.add(Cd.containerClass),w_.splitter??=Jg({columnGutters:[{track:1,element:Zg}],minSize:150,onDragStart:()=>Qg.disabled=!1,onDragEnd:()=>Qg.disabled=!0})):(Xg.classList.remove(Cd.containerClass),w_.splitter?.destroy(),w_.splitter=void 0),e===2?$.classList.add(`overlay`):$.classList.remove(`overlay`),t?s_(!0):++w_.renderVersion}function r_(){let e=Pl.map(e=>{switch(e){case`edit`:return 0;case`side-by-side`:return 1;case`preview`:return 2;case`syntax-hidden`:return 3;default:return}}).filter(e=>e!==void 0),t=e.some(e=>e===0||e===3)?e:[0,...e],n=t.indexOf(a_());n_(t[n===-1?0:(n+1)%t.length])}function i_(){let e=localStorage.getItem(wd.viewModeCacheKey);if(e===null)return;let t=Number(e);if(a_()===t){t===3&&Ag(f.MarkEdit.editorView,!0);return}n_(t,!0)}function a_(){return w_.viewMode}function o_(){let e=a_();return e===0||e===3}async function s_(e=a_()!==2||!$.hasChildNodes()){let t=++w_.renderVersion;if(o_())return;let n=$u(await __());if(t!==w_.renderVersion)return;let r={top:$.scrollTop,left:$.scrollLeft};$.innerHTML=n;let i=localStorage.getItem(wd.previewPageZoomKey);i!==null&&y_(i);let a=()=>{e&&t===w_.renderVersion&&dd(p_(),$,!1)};e?a():$.scrollTo(r),Gu(a,$)}function c_(e){if(o_()||a_()===1&&f.MarkEdit.editorView.hasFocus||!e.metaKey||e.ctrlKey||e.altKey||e.shiftKey&&e.key===`0`)return;let t=Number($.style.zoom)||1,n=e=>String(Math.min(Math.max(e,.5),3));switch(e.key){case`-`:case`_`:y_(n(t-.1));break;case`=`:case`+`:y_(n(t+.1));break;case`0`:y_(`1`);break;default:return}localStorage.setItem(wd.previewPageZoomKey,$.style.zoom),e.preventDefault(),e.stopPropagation()}function l_(){b_(!1)}function u_(){b_(!0)}function d_(){let e=__(!1);return ce(new ClipboardItem({"text/plain":e.then(e=>new Blob([e],{type:`text/plain`}))}),U(`failedToCopy`))}function f_(){let e=__(!1);return ce(new ClipboardItem({"text/html":e.then(e=>new Blob([e],{type:`text/html`})),"text/plain":e.then(e=>new Blob([le(e)],{type:`text/plain`}))}),U(`failedToCopy`))}function p_(){return f.MarkEdit.editorView.scrollDOM}function m_(){return $}async function h_(e){let t=await __(!1);return e?await Ku(t):`\n${t}`}async function g_(e,t){let n=await Hu(e,!1);return t?await Ku(n):`\n${n}`}async function __(e=!0){return await Hu(f.MarkEdit.editorAPI.getText(),e)}function v_(){let e=getComputedStyle($).backgroundColor;Zg.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}function y_(e){$.style.zoom=e,$.classList.toggle(`zoomed-in`,Number(e)>1)}async function b_(e){let t=await(async()=>{let e=await f.MarkEdit.getFileInfo();return e===void 0?`${U(`untitled`)}.html`:`${ee(e.filePath)}.html`})(),n=await h_(e);f.MarkEdit.showSavePanel({fileName:t,string:n})}async function x_(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`a`);if(t===null)return;let n=t.getAttribute(`href`);if(!n?.startsWith(`../`))return;let r=(await f.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{let e=oe(r,decodeURIComponent(n));await f.MarkEdit.openFile(e)}catch(e){console.error(`Failed to open file:`,e)}}}function S_(e){let t=`suppress-underline`,n=e.target instanceof Element?e.target.closest(`a`):null;n!==null&&bd($,e),n!==null&&!n.classList.contains(t)&&n.matches(`:hover`)&&(n.classList.add(t),n.addEventListener(`mouseleave`,()=>n.classList.remove(t),{once:!0}))}function C_(e){let t=e.target;if(!(t instanceof HTMLInputElement)||!t.classList.contains(`task-list-item-checkbox`))return;let n=t.closest(`[data-line-from]`);if(n===null){console.error(`Failed to find task item block`);return}let r=f.MarkEdit.editorAPI,i=r.getLineRange(x(n).from),a=yd(r.getText(i));if(a===null){t.checked=!t.checked,console.error(`Failed to resolve task toggle`);return}let o=i.from+a.offset;f.MarkEdit.editorView.dispatch({changes:{from:o,to:o+1,insert:a.replacement},annotations:$g.of(!0)})}var w_={viewMode:0,splitter:void 0,renderVersion:0};C();var T_=`markedit-preview`,E_=`${T_}.js`;function D_(e){let{destExists:t,bundleInfo:n,currentVersion:r}=e,i=n?.version===r,a=n?.fullBuild===!1;return!(t&&i&&a)}async function O_(){try{let e=f.MarkEdit.getDirectoryPath(`documents`),t=f.MarkEdit.getDirectoryPath(`sharedContainer`);if(e===void 0||t===void 0){console.error(`Required directories are not accessible`);return}let n=typeof __FILE_PATH__==`string`?__FILE_PATH__:oe(e,`scripts/${E_}`);if(await f.MarkEdit.getFileInfo(n)===void 0){console.error(`Source file not found at ${n}`);return}let r=n.split(`/`).pop()??E_,i=oe(t,`Shared/scripts`),a=oe(i,r),o=await f.MarkEdit.getFileInfo(a)!==void 0,s=oe(t,`Shared/metadata.json`),c=await se(s),l=c[T_];if(!D_({destExists:o,bundleInfo:l,currentVersion:`1.13.0`}))return;let u=await f.MarkEdit.getFileContent(n);if(u===void 0){console.error(`Failed to read content from ${n}`);return}await f.MarkEdit.createFile({path:i,isDirectory:!0}),await f.MarkEdit.createFile({path:a,string:u,overwrites:!0}),await f.MarkEdit.createFile({path:s,string:JSON.stringify({...c,[T_]:{version:`1.13.0`,fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error(`Failed to copy the current file to shared container:`,e)}}zu();var k_=``,A_=``;function j_(){let e=M_(U(`source`),k_),t=M_(U(`preview`),A_),n=document.createElement(`div`);n.className=`quicklook-segmented`,n.setAttribute(`role`,`tablist`),n.append(e,t);let r=document.createElement(`div`);return r.className=`quicklook-toolbar`,r.appendChild(n),{toolbar:r,sourceButton:e,previewButton:t}}function M_(e,t){let n=document.createElement(`button`);n.title=e,n.type=`button`,n.className=`quicklook-segment`,n.setAttribute(`role`,`tab`),n.setAttribute(`aria-label`,e);let r=document.createElement(`span`);r.textContent=e,r.className=`quicklook-segment-label`;let i=document.createElement(`span`);return i.innerHTML=t,i.className=`quicklook-segment-icon`,n.append(r,i),n}function N_(){if(F_!==void 0)return F_;try{F_=localStorage.getItem(I_)===`preview`?`preview`:`source`}catch{console.error(`Failed to read quick look mode from localStorage`),F_=`source`}return F_}function P_(e){F_=e;try{localStorage.setItem(I_,e)}catch{console.error(`Failed to write quick look mode to localStorage`)}}var F_,I_=`ui.quicklook-mode`;function L_(){let e=window,t=e.editor?.state?.doc.toString();return typeof t==`string`?t:(console.error(`Failed to get text from host editor state`),e.config?.text??``)}function R_(){document.addEventListener(`webkitmouseforcewillbegin`,e=>{let t=e.target;t instanceof Element&&t.closest(`a`)!==null&&e.preventDefault()})}function z_(e,t){let n=window,r=n.pinchZoomTarget;n.pinchZoomTarget=()=>{if(e()!==`preview`)return r?.()??null;let n=t.querySelector(`.quicklook-content`);return n===null?null:{scroller:t,inner:n}};for(let n of[`gesturechange`,`gestureend`])document.addEventListener(n,()=>{if(e()!==`preview`)return;let n=t.querySelector(`.quicklook-content`);n?.style.zoom.length?n?.style.setProperty(`--quicklook-zoom`,n.style.zoom):n?.style.removeProperty(`--quicklook-zoom`)},{passive:!1})}function B_(e,t){let n,r=window,i={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},a=()=>{let e=t.clientHeight,n=t.scrollHeight,r=n-e;if(r<=0||n<=0)return{clientHeight:e,scrollHeight:n,scrollbarHeight:e,scrollbarTop:0};let i=e/n*e;return{clientHeight:e,scrollHeight:n,scrollbarHeight:i,scrollbarTop:t.scrollTop/r*(e-i)}},o=(e,n,r=`auto`)=>{let{clientHeight:i,scrollHeight:o,scrollbarHeight:s}=a(),c=i-s;if(c>0){let a=(e-n)/c;t.scrollTo({top:a*(o-i),behavior:r})}};r.startDragging=r=>{if(e()!==`preview`){i.start?.(r);return}let{scrollbarTop:s,scrollbarHeight:c}=a(),l=W_(t,r);n=l-s,(ls+c)&&o(l,c*.5,`smooth`)},r.updateDragging=r=>{if(e()!==`preview`){i.update?.(r);return}n!==void 0&&o(W_(t,r),n)},r.cancelDragging=()=>{if(e()!==`preview`){i.cancel?.();return}n=void 0}}function V_(e,t,n){n.addEventListener(`wheel`,n=>{let r=e()===`preview`?t:document.querySelector(`.cm-scroller`);r!==null&&(r.scrollTop+=n.deltaY,r.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function H_(e,t,n){let r=document.querySelector(`.cm-scroller`),i=()=>{let i=(e()===`preview`?t:r)?.scrollTop??0;n.classList.toggle(`scrolled`,i>0),n.classList.toggle(`scrolled-far`,i>20)};return t.addEventListener(`scroll`,i,{passive:!0}),r?.addEventListener(`scroll`,i,{passive:!0}),i}function U_(e){document.addEventListener(`copy`,t=>{if(!e.classList.contains(`overlay`))return;let n=getSelection(),r=n!==null&&n.rangeCount>0?n.getRangeAt(0):null,i=r!==null&&!r.collapsed&&e.contains(r.commonAncestorContainer)?r:null,a=i??(()=>{let t=document.createRange();return t.selectNodeContents(e),t})(),o=document.createElement(`div`);o.appendChild(a.cloneContents()),t.clipboardData?.setData(`text/html`,o.innerHTML),t.clipboardData?.setData(`text/plain`,i===null?e.innerText:i.toString()),t.preventDefault(),t.stopPropagation()},!0)}function W_(e,t){return t-e.getBoundingClientRect().top}var G_=`body { +`;C(),rd(),md(),Ul(),Wu(),Bu();var e_=document.body,t_=document.createElement(`div`),$=document.createElement(`div`),n_=y(`* { cursor: col-resize }`,!1),r_=p.Annotation.define(),i_=function(e){return e[e.edit=0]=`edit`,e[e.sideBySide=1]=`sideBySide`,e[e.preview=2]=`preview`,e[e.syntaxHidden=3]=`syntaxHidden`,e}({});function a_(){y($g),y(Fu()),y(Lu());let e=document.createElement(`div`);e.className=Dd.dividerViewClass,t_.appendChild(e),t_.className=Dd.gutterViewClass,e_.appendChild(t_),$.className=Dd.previewPaneClass,e_.appendChild($),document.addEventListener(`keydown`,e=>{if(!e.metaKey||e.key!==`a`)return;let t=f.MarkEdit.editorView?.contentDOM??document.querySelector(`.cm-content`);($.classList.contains(`overlay`)||document.activeElement!==t)&&(S($),e.preventDefault())}),new MutationObserver(S_).observe($,{attributes:!0,attributeFilter:[`style`,`class`]}),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{S_(),document.querySelector(`.mermaid`)!==null&&d_()}),typeof f.MarkEdit.getFileInfo==`function`&&typeof f.MarkEdit.openFile==`function`&&$.addEventListener(`click`,T_),$.addEventListener(`click`,e=>{E_(e),D_(e)})}function o_(e,t=!0){let n=l_();O_.viewMode=e,e!==n&&localStorage.setItem(Od.viewModeCacheKey,String(e));let r=f.MarkEdit.editorView;Pg(r,e===3),u_()?r.focus():e===2&&r.contentDOM.blur(),e===1?(e_.classList.add(Dd.containerClass),O_.splitter??=Qg({columnGutters:[{track:1,element:t_}],minSize:150,onDragStart:()=>n_.disabled=!1,onDragEnd:()=>n_.disabled=!0})):(e_.classList.remove(Dd.containerClass),O_.splitter?.destroy(),O_.splitter=void 0),e===2?$.classList.add(`overlay`):$.classList.remove(`overlay`),t?d_(!0):++O_.renderVersion}function s_(){let e=zl.map(e=>{switch(e){case`edit`:return 0;case`side-by-side`:return 1;case`preview`:return 2;case`syntax-hidden`:return 3;default:return}}).filter(e=>e!==void 0),t=e.some(e=>e===0||e===3)?e:[0,...e],n=t.indexOf(l_());o_(t[n===-1?0:(n+1)%t.length])}function c_(){let e=localStorage.getItem(Od.viewModeCacheKey);if(e===null)return;let t=Number(e);if(l_()===t){t===3&&Pg(f.MarkEdit.editorView,!0);return}o_(t,!0)}function l_(){return O_.viewMode}function u_(){let e=l_();return e===0||e===3}async function d_(e=l_()!==2||!$.hasChildNodes()){let t=++O_.renderVersion;if(u_())return;let n=id(await x_());if(t!==O_.renderVersion)return;let r={top:$.scrollTop,left:$.scrollLeft};$.innerHTML=n;let i=localStorage.getItem(Od.previewPageZoomKey);i!==null&&C_(i);let a=()=>{e&&t===O_.renderVersion&&gd(__(),$,!1)};e?a():$.scrollTo(r),Xu(a,$)}function f_(e){if(u_()||l_()===1&&f.MarkEdit.editorView.hasFocus||!e.metaKey||e.ctrlKey||e.altKey||e.shiftKey&&e.key===`0`)return;let t=Number($.style.zoom)||1,n=e=>String(Math.min(Math.max(e,.5),3));switch(e.key){case`-`:case`_`:C_(n(t-.1));break;case`=`:case`+`:C_(n(t+.1));break;case`0`:C_(`1`);break;default:return}localStorage.setItem(Od.previewPageZoomKey,$.style.zoom),e.preventDefault(),e.stopPropagation()}function p_(){w_(!1)}function m_(){w_(!0)}function h_(){let e=x_(!1);return ce(new ClipboardItem({"text/plain":e.then(e=>new Blob([e],{type:`text/plain`}))}),U(`failedToCopy`))}function g_(){let e=x_(!1);return ce(new ClipboardItem({"text/html":e.then(e=>new Blob([e],{type:`text/html`})),"text/plain":e.then(e=>new Blob([le(e)],{type:`text/plain`}))}),U(`failedToCopy`))}function __(){return f.MarkEdit.editorView.scrollDOM}function v_(){return $}async function y_(e){let t=await x_(!1);return e?await Zu(t):`\n${t}`}async function b_(e,t){let n=await qu(e,!1);return t?await Zu(n):`\n${n}`}async function x_(e=!0){return await qu(f.MarkEdit.editorAPI.getText(),e)}function S_(){let e=getComputedStyle($).backgroundColor;t_.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}function C_(e){$.style.zoom=e,$.classList.toggle(`zoomed-in`,Number(e)>1)}async function w_(e){let t=await(async()=>{let e=await f.MarkEdit.getFileInfo();return e===void 0?`${U(`untitled`)}.html`:`${ee(e.filePath)}.html`})(),n=await y_(e);f.MarkEdit.showSavePanel({fileName:t,string:n})}async function T_(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`a`);if(t===null)return;let n=t.getAttribute(`href`);if(!n?.startsWith(`../`))return;let r=(await f.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{let e=oe(r,decodeURIComponent(n));await f.MarkEdit.openFile(e)}catch(e){console.error(`Failed to open file:`,e)}}}function E_(e){let t=`suppress-underline`,n=e.target instanceof Element?e.target.closest(`a`):null;n!==null&&Td($,e),n!==null&&!n.classList.contains(t)&&n.matches(`:hover`)&&(n.classList.add(t),n.addEventListener(`mouseleave`,()=>n.classList.remove(t),{once:!0}))}function D_(e){let t=e.target;if(!(t instanceof HTMLInputElement)||!t.classList.contains(`task-list-item-checkbox`))return;let n=t.closest(`[data-line-from]`);if(n===null){console.error(`Failed to find task item block`);return}let r=f.MarkEdit.editorAPI,i=r.getLineRange(x(n).from),a=wd(r.getText(i));if(a===null){t.checked=!t.checked,console.error(`Failed to resolve task toggle`);return}let o=i.from+a.offset;f.MarkEdit.editorView.dispatch({changes:{from:o,to:o+1,insert:a.replacement},annotations:r_.of(!0)})}var O_={viewMode:0,splitter:void 0,renderVersion:0};C();var k_=`markedit-preview`,A_=`${k_}.js`;function j_(e){let{destExists:t,bundleInfo:n,currentVersion:r}=e,i=n?.version===r,a=n?.fullBuild===!1;return!(t&&i&&a)}async function M_(){try{let e=f.MarkEdit.getDirectoryPath(`documents`),t=f.MarkEdit.getDirectoryPath(`sharedContainer`);if(e===void 0||t===void 0){console.error(`Required directories are not accessible`);return}let n=typeof __FILE_PATH__==`string`?__FILE_PATH__:oe(e,`scripts/${A_}`);if(await f.MarkEdit.getFileInfo(n)===void 0){console.error(`Source file not found at ${n}`);return}let r=n.split(`/`).pop()??A_,i=oe(t,`Shared/scripts`),a=oe(i,r),o=await f.MarkEdit.getFileInfo(a)!==void 0,s=oe(t,`Shared/metadata.json`),c=await se(s),l=c[k_];if(!j_({destExists:o,bundleInfo:l,currentVersion:`1.13.0`}))return;let u=await f.MarkEdit.getFileContent(n);if(u===void 0){console.error(`Failed to read content from ${n}`);return}await f.MarkEdit.createFile({path:i,isDirectory:!0}),await f.MarkEdit.createFile({path:a,string:u,overwrites:!0}),await f.MarkEdit.createFile({path:s,string:JSON.stringify({...c,[k_]:{version:`1.13.0`,fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error(`Failed to copy the current file to shared container:`,e)}}Wu();var N_=``,P_=``;function F_(){let e=I_(U(`source`),N_),t=I_(U(`preview`),P_),n=document.createElement(`div`);n.className=`quicklook-segmented`,n.setAttribute(`role`,`tablist`),n.append(e,t);let r=document.createElement(`div`);return r.className=`quicklook-toolbar`,r.appendChild(n),{toolbar:r,sourceButton:e,previewButton:t}}function I_(e,t){let n=document.createElement(`button`);n.title=e,n.type=`button`,n.className=`quicklook-segment`,n.setAttribute(`role`,`tab`),n.setAttribute(`aria-label`,e);let r=document.createElement(`span`);r.textContent=e,r.className=`quicklook-segment-label`;let i=document.createElement(`span`);return i.innerHTML=t,i.className=`quicklook-segment-icon`,n.append(r,i),n}function L_(){if(z_!==void 0)return z_;try{z_=localStorage.getItem(B_)===`preview`?`preview`:`source`}catch{console.error(`Failed to read quick look mode from localStorage`),z_=`source`}return z_}function R_(e){z_=e;try{localStorage.setItem(B_,e)}catch{console.error(`Failed to write quick look mode to localStorage`)}}var z_,B_=`ui.quicklook-mode`;function V_(){let e=window,t=e.editor?.state?.doc.toString();return typeof t==`string`?t:(console.error(`Failed to get text from host editor state`),e.config?.text??``)}function H_(){document.addEventListener(`webkitmouseforcewillbegin`,e=>{let t=e.target;t instanceof Element&&t.closest(`a`)!==null&&e.preventDefault()})}function U_(e,t){let n=window,r=n.pinchZoomTarget;n.pinchZoomTarget=()=>{if(e()!==`preview`)return r?.()??null;let n=t.querySelector(`.quicklook-content`);return n===null?null:{scroller:t,inner:n}};for(let n of[`gesturechange`,`gestureend`])document.addEventListener(n,()=>{if(e()!==`preview`)return;let n=t.querySelector(`.quicklook-content`);n?.style.zoom.length?n?.style.setProperty(`--quicklook-zoom`,n.style.zoom):n?.style.removeProperty(`--quicklook-zoom`)},{passive:!1})}function W_(e,t){let n,r=window,i={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},a=()=>{let e=t.clientHeight,n=t.scrollHeight,r=n-e;if(r<=0||n<=0)return{clientHeight:e,scrollHeight:n,scrollbarHeight:e,scrollbarTop:0};let i=e/n*e;return{clientHeight:e,scrollHeight:n,scrollbarHeight:i,scrollbarTop:t.scrollTop/r*(e-i)}},o=(e,n,r=`auto`)=>{let{clientHeight:i,scrollHeight:o,scrollbarHeight:s}=a(),c=i-s;if(c>0){let a=(e-n)/c;t.scrollTo({top:a*(o-i),behavior:r})}};r.startDragging=r=>{if(e()!==`preview`){i.start?.(r);return}let{scrollbarTop:s,scrollbarHeight:c}=a(),l=J_(t,r);n=l-s,(ls+c)&&o(l,c*.5,`smooth`)},r.updateDragging=r=>{if(e()!==`preview`){i.update?.(r);return}n!==void 0&&o(J_(t,r),n)},r.cancelDragging=()=>{if(e()!==`preview`){i.cancel?.();return}n=void 0}}function G_(e,t,n){n.addEventListener(`wheel`,n=>{let r=e()===`preview`?t:document.querySelector(`.cm-scroller`);r!==null&&(r.scrollTop+=n.deltaY,r.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function K_(e,t,n){let r=document.querySelector(`.cm-scroller`),i=()=>{let i=(e()===`preview`?t:r)?.scrollTop??0;n.classList.toggle(`scrolled`,i>0),n.classList.toggle(`scrolled-far`,i>20)};return t.addEventListener(`scroll`,i,{passive:!0}),r?.addEventListener(`scroll`,i,{passive:!0}),i}function q_(e){document.addEventListener(`copy`,t=>{if(!e.classList.contains(`overlay`))return;let n=getSelection(),r=n!==null&&n.rangeCount>0?n.getRangeAt(0):null,i=r!==null&&!r.collapsed&&e.contains(r.commonAncestorContainer)?r:null,a=i??(()=>{let t=document.createRange();return t.selectNodeContents(e),t})(),o=document.createElement(`div`);o.appendChild(a.cloneContents()),t.clipboardData?.setData(`text/html`,o.innerHTML),t.clipboardData?.setData(`text/plain`,i===null?e.innerText:i.toString()),t.preventDefault(),t.stopPropagation()},!0)}function J_(e,t){return t-e.getBoundingClientRect().top}var Y_=`body { --editor-inset-top: 34px; } @@ -2073,5 +2074,5 @@ body .markdown-body .task-list-item.enabled label { box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); } } -`;Qu(),ld(),C();function K_(e){y(G_),document.body.classList.add(`quicklook`);let{toolbar:t,sourceButton:n,previewButton:r}=j_();document.body.appendChild(t);let i=J_(e),a={previewPane:e,sourceButton:n,previewButton:r,refreshSeparator:H_(N_,e,t),ensureRendered:i.ensureRendered};n.addEventListener(`click`,()=>{P_(`source`),q_(a)}),r.addEventListener(`click`,()=>{P_(`preview`),q_(a)}),q_(a),setTimeout(i.ensureRendered,0),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{e.querySelector(`.mermaid`)!==null&&(i.invalidate(),N_()===`preview`&&i.ensureRendered())}),R_(),z_(N_,e),B_(N_,e),V_(N_,e,t),U_(e)}function q_(e){let t=N_()===`source`,n=!t;e.sourceButton.classList.toggle(`active`,t),e.previewButton.classList.toggle(`active`,n),e.sourceButton.setAttribute(`aria-selected`,String(t)),e.previewButton.setAttribute(`aria-selected`,String(n)),e.previewPane.classList.toggle(`overlay`,n),e.refreshSeparator(),n&&e.ensureRendered()}function J_(e){let t=!1,n;return{ensureRendered:()=>(t||n||(n=(async()=>{try{e.innerHTML=`
${$u(await Hu(L_(),!1))}
`,e.querySelectorAll(`a[href]`).forEach(e=>{e.removeAttribute(`href`),e.removeAttribute(`target`)}),Gu(()=>{},e),t=!0}catch(e){throw n=void 0,e}})()),n),invalidate:()=>{t=!1,n=void 0}}}var Y_=u(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Mark=r()})(e,(function(){var e=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},t=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},n=function(){function e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=a}return n(e,[{key:`getContexts`,value:function(){var e=void 0,t=[];return e=this.ctx===void 0||!this.ctx?[]:NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx==`string`?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx],e.forEach(function(e){var n=t.filter(function(t){return t.contains(e)}).length>0;t.indexOf(e)===-1&&!n&&t.push(e)}),t}},{key:`getIframeContents`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},r=void 0;try{var i=e.contentWindow;if(r=i.document,!i||!r)throw Error(`iframe inaccessible`)}catch{n()}r&&t(r)}},{key:`isIframeBlank`,value:function(e){var t=`about:blank`,n=e.getAttribute(`src`).trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:`observeIframeLoad`,value:function(e,t,n){var r=this,i=!1,a=null,o=function o(){if(!i){i=!0,clearTimeout(a);try{r.isIframeBlank(e)||(e.removeEventListener(`load`,o),r.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener(`load`,o),a=setTimeout(o,this.iframesTimeout)}},{key:`onIframeReady`,value:function(e,t,n){try{e.contentWindow.document.readyState===`complete`?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}},{key:`waitForIframes`,value:function(e,t){var n=this,r=0;this.forEachIframe(e,function(){return!0},function(e){r++,n.waitForIframes(e.querySelector(`html`),function(){--r||t()})},function(e){e||t()})}},{key:`forEachIframe`,value:function(t,n,r){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},o=t.querySelectorAll(`iframe`),s=o.length,c=0;o=Array.prototype.slice.call(o);var l=function(){--s<=0&&a(c)};s||l(),o.forEach(function(t){e.matches(t,i.exclude)?l():i.onIframeReady(t,function(e){n(t)&&(c++,r(e)),l()},l)})}},{key:`createIterator`,value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:`createInstanceOnIframe`,value:function(t){return new e(t.querySelector(`html`),this.iframes)}},{key:`compareNodeIframe`,value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(t!==null){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}else return!0}return!1}},{key:`getIteratorNode`,value:function(e){var t=e.previousNode(),n=void 0;return n=(t===null||e.nextNode())&&e.nextNode(),{prevNode:t,node:n}}},{key:`checkIframeFilter`,value:function(e,t,n,r){var i=!1,a=!1;return r.forEach(function(e,t){e.val===n&&(i=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!a?r.push({val:n,handled:!0}):i!==!1&&!a&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}},{key:`handleOpenIframes`,value:function(e,t,n,r){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,n,r)})})}},{key:`iterateThroughNodes`,value:function(e,t,n,r,i){for(var a=this,o=this.createIterator(t,e,r),s=[],c=[],l=void 0,u=void 0,d=function(){var e=a.getIteratorNode(o);return u=e.prevNode,l=e.node,l};d();)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(l,u,e,s)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},r)}),c.push(l);c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,r),i()}},{key:`forEachNode`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},a=this.getContexts(),o=a.length;o||i(),a.forEach(function(a){var s=function(){r.iterateThroughNodes(e,a,t,n,function(){--o<=0&&i()})};r.iframes?r.waitForIframes(a,s):s()})}}],[{key:`matches`,value:function(e,t){var n=typeof t==`string`?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var i=!1;return n.every(function(t){return!r.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf(`MSIE`)>-1||n.indexOf(`Trident`)>-1)&&(this.ie=!0)}return n(a,[{key:`log`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`debug`,r=this.opt.log;this.opt.debug&&(r===void 0?`undefined`:e(r))===`object`&&typeof r[n]==`function`&&r[n](`mark.js: `+t)}},{key:`escapeStr`,value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}},{key:`createRegExp`,value:function(e){return this.opt.wildcards!==`disabled`&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!==`disabled`&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}},{key:`createSynonymsRegExp`,value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?``:`i`,r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?`\0`:``;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],o=this.opt.wildcards===`disabled`?this.escapeStr(i):this.setupWildcardsRegExp(i),s=this.opt.wildcards===`disabled`?this.escapeStr(a):this.setupWildcardsRegExp(a);o!==``&&s!==``&&(e=e.replace(RegExp(`(`+this.escapeStr(o)+`|`+this.escapeStr(s)+`)`,`gm`+n),r+(`(`+this.processSynomyms(o)+`|`)+(this.processSynomyms(s)+`)`)+r))}return e}},{key:`processSynomyms`,value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:`setupWildcardsRegExp`,value:function(e){return e=e.replace(/(?:\\)*\?/g,function(e){return e.charAt(0)===`\\`?`?`:``}),e.replace(/(?:\\)*\*/g,function(e){return e.charAt(0)===`\\`?`*`:``})}},{key:`createWildcardsRegExp`,value:function(e){var t=this.opt.wildcards===`withSpaces`;return e.replace(/\u0001/g,t?`[\\S\\s]?`:`\\S?`).replace(/\u0002/g,t?`[\\S\\s]*?`:`\\S*`)}},{key:`setupIgnoreJoinersRegExp`,value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||r===``?e:e+`\0`})}},{key:`createJoinersRegExp`,value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(``))),this.opt.ignoreJoiners&&t.push(`\\u00ad\\u200b\\u200c\\u200d`),t.length?e.split(/\u0000+/).join(`[`+t.join(``)+`]*`):e}},{key:`createDiacriticsRegExp`,value:function(e){var t=this.opt.caseSensitive?``:`i`,n=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ŽŻŹ`.split(`.`):[`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ŽŻŹ`],r=[];return e.split(``).forEach(function(i){n.every(function(n){if(n.indexOf(i)!==-1){if(r.indexOf(n)>-1)return!1;e=e.replace(RegExp(`[`+n+`]`,`gm`+t),`[`+n+`]`),r.push(n)}return!0})}),e}},{key:`createMergedBlanksRegExp`,value:function(e){return e.replace(/[\s]+/gim,`[\\s]+`)}},{key:`createAccuracyRegExp`,value:function(e){var t=this,n=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~¡¿`,r=this.opt.accuracy,i=typeof r==`string`?r:r.value,a=typeof r==`string`?[]:r.limiters,o=``;switch(a.forEach(function(e){o+=`|`+t.escapeStr(e)}),i){case`partially`:default:return`()(`+e+`)`;case`complementary`:return o=`\\s`+(o||this.escapeStr(n)),`()([^`+o+`]*`+e+`[^`+o+`]*)`;case`exactly`:return`(^|\\s`+o+`)(`+e+`)(?=$|\\s`+o+`)`}}},{key:`getSeparatedKeywords`,value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(` `).forEach(function(e){e.trim()&&n.indexOf(e)===-1&&n.push(e)}):e.trim()&&n.indexOf(e)===-1&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:`isNumeric`,value:function(e){return Number(parseFloat(e))==e}},{key:`checkRanges`,value:function(e){var t=this;if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!==`[object Object]`)return this.log(`markRanges() will only accept an array of objects`),this.opt.noMatch(e),[];var n=[],r=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,r),a=i.start,o=i.end;i.valid&&(e.start=a,e.length=o-a,n.push(e),r=o)}),n}},{key:`callNoMatchOnInvalidRanges`,value:function(e,t){var n=void 0,r=void 0,i=!1;return e&&e.start!==void 0?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: `+(``+JSON.stringify(e))),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:i}}},{key:`checkWhitespaceRanges`,value:function(e,t,n){var r=void 0,i=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return s=s>a?a:s,r=s+parseInt(e.length,10),r>a&&(r=a,this.log(`End range automatically set to the max value of `+a)),s<0||r-s<0||s>a||r>a?(i=!1,this.log(`Invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)):n.substring(s,r).replace(/\s+/g,``)===``&&(i=!1,this.log(`Skipping whitespace only range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}},{key:`getTextNodes`,value:function(e){var t=this,n=``,r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:r})})}},{key:`matchesExclude`,value:function(e){return i.matches(e,this.opt.exclude.concat([`script`,`style`,`title`,`head`,`html`]))}},{key:`wrapRangeInTextNode`,value:function(e,t,n){var r=this.opt.element?this.opt.element:`mark`,i=e.splitText(t),a=i.splitText(n-t),o=document.createElement(r);return o.setAttribute(`data-markjs`,`true`),this.opt.className&&o.setAttribute(`class`,this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),a}},{key:`wrapRangeInMappedTextNode`,value:function(e,t,n,r,i){var a=this;e.nodes.every(function(o,s){var c=e.nodes[s+1];if(c===void 0||c.start>t){if(!r(o.node))return!1;var l=t-o.start,u=(n>o.end?o.end:n)-o.start,d=e.value.substr(0,o.start),f=e.value.substr(u+o.start);if(o.node=a.wrapRangeInTextNode(o.node,l,u),e.value=d+f,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,i(o.node.previousSibling,o.start),n>o.end)t=o.end;else return!1}return!0})}},{key:`wrapMatches`,value:function(e,t,n,r,i){var a=this,o=t===0?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;(i=e.exec(t.textContent))!==null&&i[o]!==``;)if(n(i[o],t)){var s=i.index;if(o!==0)for(var c=1;c{tv=Array.from(e.querySelectorAll(`.${X_}`)),ev=tv.length>0?Math.min(ev,tv.length-1):0,uv(),Q_=!1};s.unmark({done:()=>{if(o)try{let e=r?``:`i`;s.markRegExp(new RegExp(n,e),{className:X_,done:c})}catch{Q_=!1,ev=0,tv=[]}else s.mark(n,{className:X_,caseSensitive:r,diacritics:a,separateWordSearch:!1,accuracy:i?`exactly`:`partially`,done:c})}})}function uv(){let e=a_()!==e_.sideBySide;tv.forEach((t,n)=>{t.classList.toggle(Z_,e&&n===ev)}),e&&tv.length>0&&tv[ev].scrollIntoView({behavior:`smooth`,block:`center`})}function dv(e){nv?.disconnect(),nv=new MutationObserver(()=>{Q_||lv(e)}),nv.observe(e,{childList:!0})}function fv(){rv===null&&(rv=document.createElement(`style`),document.head.appendChild(rv));let{light:e,dark:t}=iv[jl]??iv.github;rv.textContent=[`.${X_} { background: ${e} !important; color: inherit !important; }`,`.${Z_} { 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) {`,` .${X_} { background: ${t} !important; }`,`}`].join(` -`)}ld(),Rl(),Vu(),zu(),C(),window.__markeditPreviewInitialized__?console.error(`MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior.`):(t_(),Bu()?typeof f.MarkEdit.onAppReady==`function`&&f.MarkEdit.onAppReady(O_):K_(m_()),window.__markeditPreviewInitialized__=!0),window.MarkEditGetHtml??=h_,window.MarkEditRenderHtml??=g_,window.__markeditPreviewSPI__={performSearch:av,setSearchMatchIndex:ov,clearSearch:sv,searchCounterInfo:cv},Bu()&&(f.MarkEdit.addMainMenuItem({title:U(`viewMode`),icon:v()?`eye`:void 0,children:[{title:U(`changeMode`),action:r_,key:Fl.key??`V`,modifiers:Fl.modifiers??[`Command`]},{separator:!0},pv(U(`editMode`),e_.edit),pv(U(`sideBySideMode`),e_.sideBySide),pv(U(`previewMode`),e_.preview),pv(U(`syntaxHiddenMode`),e_.syntaxHidden),{separator:!0},...mv(),{separator:!0},{title:`${U(`version`)} 1.13.0`,action:()=>open(`https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.13.0`)}]}),f.MarkEdit.addExtension([d.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(e=>e.annotation($g))||(hv.renderUpdater!==void 0&&clearTimeout(hv.renderUpdater),hv.renderUpdater=setTimeout(s_,500)))}),Og]),f.MarkEdit.onEditorReady(()=>{Ol&&td(f.MarkEdit.editorView.scrollDOM),i_(),requestAnimationFrame(async()=>{document.visibilityState===`visible`&&a_()===e_.preview&&typeof f.MarkEdit.getFileInfo==`function`&&(await f.MarkEdit.getFileInfo())?.filePath===void 0&&f.MarkEdit.editorAPI.getText().length===0&&n_(e_.edit,!1)}),s_(),ud(p_(),m_()),hv.keyDownListener!==void 0&&document.removeEventListener(`keydown`,hv.keyDownListener),hv.keyDownListener=e=>c_(e),document.addEventListener(`keydown`,hv.keyDownListener)}),typeof f.MarkEdit.onEditorConfigChange==`function`&&f.MarkEdit.onEditorConfigChange(e=>{e===`lineHeight`&&a_()===e_.syntaxHidden&&f.MarkEdit.editorView?.requestMeasure()}));function pv(e,t){return{title:e,action:()=>n_(t),state:()=>({isSelected:a_()===t})}}function mv(){let e=[{title:U(`copyHtml`),action:d_},{title:U(`copyRichText`),action:f_}];return f.MarkEdit.showSavePanel===void 0?e:[{title:U(`saveCleanHtml`),action:l_},{title:U(`saveStyledHtml`),action:u_},...e]}var hv={renderUpdater:void 0,keyDownListener:void 0}; \ No newline at end of file +`;rd(),md(),C();function X_(e){y(Y_),document.body.classList.add(`quicklook`);let{toolbar:t,sourceButton:n,previewButton:r}=F_();document.body.appendChild(t);let i=Q_(e),a={previewPane:e,sourceButton:n,previewButton:r,refreshSeparator:K_(L_,e,t),ensureRendered:i.ensureRendered};n.addEventListener(`click`,()=>{R_(`source`),Z_(a)}),r.addEventListener(`click`,()=>{R_(`preview`),Z_(a)}),Z_(a),setTimeout(i.ensureRendered,0),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{e.querySelector(`.mermaid`)!==null&&(i.invalidate(),L_()===`preview`&&i.ensureRendered())}),H_(),U_(L_,e),W_(L_,e),G_(L_,e,t),q_(e)}function Z_(e){let t=L_()===`source`,n=!t;e.sourceButton.classList.toggle(`active`,t),e.previewButton.classList.toggle(`active`,n),e.sourceButton.setAttribute(`aria-selected`,String(t)),e.previewButton.setAttribute(`aria-selected`,String(n)),e.previewPane.classList.toggle(`overlay`,n),e.refreshSeparator(),n&&e.ensureRendered()}function Q_(e){let t=!1,n;return{ensureRendered:()=>(t||n||(n=(async()=>{try{e.innerHTML=`
${id(await qu(V_(),!1))}
`,e.querySelectorAll(`a[href]`).forEach(e=>{e.removeAttribute(`href`),e.removeAttribute(`target`)}),Xu(()=>{},e),t=!0}catch(e){throw n=void 0,e}})()),n),invalidate:()=>{t=!1,n=void 0}}}var $_=u(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Mark=r()})(e,(function(){var e=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},t=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},n=function(){function e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=a}return n(e,[{key:`getContexts`,value:function(){var e=void 0,t=[];return e=this.ctx===void 0||!this.ctx?[]:NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx==`string`?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx],e.forEach(function(e){var n=t.filter(function(t){return t.contains(e)}).length>0;t.indexOf(e)===-1&&!n&&t.push(e)}),t}},{key:`getIframeContents`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},r=void 0;try{var i=e.contentWindow;if(r=i.document,!i||!r)throw Error(`iframe inaccessible`)}catch{n()}r&&t(r)}},{key:`isIframeBlank`,value:function(e){var t=`about:blank`,n=e.getAttribute(`src`).trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:`observeIframeLoad`,value:function(e,t,n){var r=this,i=!1,a=null,o=function o(){if(!i){i=!0,clearTimeout(a);try{r.isIframeBlank(e)||(e.removeEventListener(`load`,o),r.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener(`load`,o),a=setTimeout(o,this.iframesTimeout)}},{key:`onIframeReady`,value:function(e,t,n){try{e.contentWindow.document.readyState===`complete`?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}},{key:`waitForIframes`,value:function(e,t){var n=this,r=0;this.forEachIframe(e,function(){return!0},function(e){r++,n.waitForIframes(e.querySelector(`html`),function(){--r||t()})},function(e){e||t()})}},{key:`forEachIframe`,value:function(t,n,r){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},o=t.querySelectorAll(`iframe`),s=o.length,c=0;o=Array.prototype.slice.call(o);var l=function(){--s<=0&&a(c)};s||l(),o.forEach(function(t){e.matches(t,i.exclude)?l():i.onIframeReady(t,function(e){n(t)&&(c++,r(e)),l()},l)})}},{key:`createIterator`,value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:`createInstanceOnIframe`,value:function(t){return new e(t.querySelector(`html`),this.iframes)}},{key:`compareNodeIframe`,value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(t!==null){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}else return!0}return!1}},{key:`getIteratorNode`,value:function(e){var t=e.previousNode(),n=void 0;return n=(t===null||e.nextNode())&&e.nextNode(),{prevNode:t,node:n}}},{key:`checkIframeFilter`,value:function(e,t,n,r){var i=!1,a=!1;return r.forEach(function(e,t){e.val===n&&(i=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!a?r.push({val:n,handled:!0}):i!==!1&&!a&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}},{key:`handleOpenIframes`,value:function(e,t,n,r){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,n,r)})})}},{key:`iterateThroughNodes`,value:function(e,t,n,r,i){for(var a=this,o=this.createIterator(t,e,r),s=[],c=[],l=void 0,u=void 0,d=function(){var e=a.getIteratorNode(o);return u=e.prevNode,l=e.node,l};d();)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(l,u,e,s)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},r)}),c.push(l);c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,r),i()}},{key:`forEachNode`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},a=this.getContexts(),o=a.length;o||i(),a.forEach(function(a){var s=function(){r.iterateThroughNodes(e,a,t,n,function(){--o<=0&&i()})};r.iframes?r.waitForIframes(a,s):s()})}}],[{key:`matches`,value:function(e,t){var n=typeof t==`string`?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var i=!1;return n.every(function(t){return!r.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf(`MSIE`)>-1||n.indexOf(`Trident`)>-1)&&(this.ie=!0)}return n(a,[{key:`log`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`debug`,r=this.opt.log;this.opt.debug&&(r===void 0?`undefined`:e(r))===`object`&&typeof r[n]==`function`&&r[n](`mark.js: `+t)}},{key:`escapeStr`,value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}},{key:`createRegExp`,value:function(e){return this.opt.wildcards!==`disabled`&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!==`disabled`&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}},{key:`createSynonymsRegExp`,value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?``:`i`,r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?`\0`:``;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],o=this.opt.wildcards===`disabled`?this.escapeStr(i):this.setupWildcardsRegExp(i),s=this.opt.wildcards===`disabled`?this.escapeStr(a):this.setupWildcardsRegExp(a);o!==``&&s!==``&&(e=e.replace(RegExp(`(`+this.escapeStr(o)+`|`+this.escapeStr(s)+`)`,`gm`+n),r+(`(`+this.processSynomyms(o)+`|`)+(this.processSynomyms(s)+`)`)+r))}return e}},{key:`processSynomyms`,value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:`setupWildcardsRegExp`,value:function(e){return e=e.replace(/(?:\\)*\?/g,function(e){return e.charAt(0)===`\\`?`?`:``}),e.replace(/(?:\\)*\*/g,function(e){return e.charAt(0)===`\\`?`*`:``})}},{key:`createWildcardsRegExp`,value:function(e){var t=this.opt.wildcards===`withSpaces`;return e.replace(/\u0001/g,t?`[\\S\\s]?`:`\\S?`).replace(/\u0002/g,t?`[\\S\\s]*?`:`\\S*`)}},{key:`setupIgnoreJoinersRegExp`,value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||r===``?e:e+`\0`})}},{key:`createJoinersRegExp`,value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(``))),this.opt.ignoreJoiners&&t.push(`\\u00ad\\u200b\\u200c\\u200d`),t.length?e.split(/\u0000+/).join(`[`+t.join(``)+`]*`):e}},{key:`createDiacriticsRegExp`,value:function(e){var t=this.opt.caseSensitive?``:`i`,n=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ŽŻŹ`.split(`.`):[`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ŽŻŹ`],r=[];return e.split(``).forEach(function(i){n.every(function(n){if(n.indexOf(i)!==-1){if(r.indexOf(n)>-1)return!1;e=e.replace(RegExp(`[`+n+`]`,`gm`+t),`[`+n+`]`),r.push(n)}return!0})}),e}},{key:`createMergedBlanksRegExp`,value:function(e){return e.replace(/[\s]+/gim,`[\\s]+`)}},{key:`createAccuracyRegExp`,value:function(e){var t=this,n=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~¡¿`,r=this.opt.accuracy,i=typeof r==`string`?r:r.value,a=typeof r==`string`?[]:r.limiters,o=``;switch(a.forEach(function(e){o+=`|`+t.escapeStr(e)}),i){case`partially`:default:return`()(`+e+`)`;case`complementary`:return o=`\\s`+(o||this.escapeStr(n)),`()([^`+o+`]*`+e+`[^`+o+`]*)`;case`exactly`:return`(^|\\s`+o+`)(`+e+`)(?=$|\\s`+o+`)`}}},{key:`getSeparatedKeywords`,value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(` `).forEach(function(e){e.trim()&&n.indexOf(e)===-1&&n.push(e)}):e.trim()&&n.indexOf(e)===-1&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:`isNumeric`,value:function(e){return Number(parseFloat(e))==e}},{key:`checkRanges`,value:function(e){var t=this;if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!==`[object Object]`)return this.log(`markRanges() will only accept an array of objects`),this.opt.noMatch(e),[];var n=[],r=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,r),a=i.start,o=i.end;i.valid&&(e.start=a,e.length=o-a,n.push(e),r=o)}),n}},{key:`callNoMatchOnInvalidRanges`,value:function(e,t){var n=void 0,r=void 0,i=!1;return e&&e.start!==void 0?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: `+(``+JSON.stringify(e))),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:i}}},{key:`checkWhitespaceRanges`,value:function(e,t,n){var r=void 0,i=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return s=s>a?a:s,r=s+parseInt(e.length,10),r>a&&(r=a,this.log(`End range automatically set to the max value of `+a)),s<0||r-s<0||s>a||r>a?(i=!1,this.log(`Invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)):n.substring(s,r).replace(/\s+/g,``)===``&&(i=!1,this.log(`Skipping whitespace only range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}},{key:`getTextNodes`,value:function(e){var t=this,n=``,r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:r})})}},{key:`matchesExclude`,value:function(e){return i.matches(e,this.opt.exclude.concat([`script`,`style`,`title`,`head`,`html`]))}},{key:`wrapRangeInTextNode`,value:function(e,t,n){var r=this.opt.element?this.opt.element:`mark`,i=e.splitText(t),a=i.splitText(n-t),o=document.createElement(r);return o.setAttribute(`data-markjs`,`true`),this.opt.className&&o.setAttribute(`class`,this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),a}},{key:`wrapRangeInMappedTextNode`,value:function(e,t,n,r,i){var a=this;e.nodes.every(function(o,s){var c=e.nodes[s+1];if(c===void 0||c.start>t){if(!r(o.node))return!1;var l=t-o.start,u=(n>o.end?o.end:n)-o.start,d=e.value.substr(0,o.start),f=e.value.substr(u+o.start);if(o.node=a.wrapRangeInTextNode(o.node,l,u),e.value=d+f,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,i(o.node.previousSibling,o.start),n>o.end)t=o.end;else return!1}return!0})}},{key:`wrapMatches`,value:function(e,t,n,r,i){var a=this,o=t===0?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;(i=e.exec(t.textContent))!==null&&i[o]!==``;)if(n(i[o],t)){var s=i.index;if(o!==0)for(var c=1;c{av=Array.from(e.querySelectorAll(`.${ev}`)),iv=av.length>0?Math.min(iv,av.length-1):0,mv(),nv=!1};s.unmark({done:()=>{if(o)try{let e=r?``:`i`;s.markRegExp(new RegExp(n,e),{className:ev,done:c})}catch{nv=!1,iv=0,av=[]}else s.mark(n,{className:ev,caseSensitive:r,diacritics:a,separateWordSearch:!1,accuracy:i?`exactly`:`partially`,done:c})}})}function mv(){let e=l_()!==i_.sideBySide;av.forEach((t,n)=>{t.classList.toggle(tv,e&&n===iv)}),e&&av.length>0&&av[iv].scrollIntoView({behavior:`smooth`,block:`center`})}function hv(e){ov?.disconnect(),ov=new MutationObserver(()=>{nv||pv(e)}),ov.observe(e,{childList:!0})}function gv(){sv===null&&(sv=document.createElement(`style`),document.head.appendChild(sv));let{light:e,dark:t}=cv[Il]??cv.github;sv.textContent=[`.${ev} { background: ${e} !important; color: inherit !important; }`,`.${tv} { 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) {`,` .${ev} { background: ${t} !important; }`,`}`].join(` +`)}md(),Ul(),Ku(),Wu(),C(),window.__markeditPreviewInitialized__?console.error(`MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior.`):(a_(),Gu()?typeof f.MarkEdit.onAppReady==`function`&&f.MarkEdit.onAppReady(M_):X_(v_()),window.__markeditPreviewInitialized__=!0),window.MarkEditGetHtml??=y_,window.MarkEditRenderHtml??=b_,window.__markeditPreviewSPI__={performSearch:lv,setSearchMatchIndex:uv,clearSearch:dv,searchCounterInfo:fv},Gu()&&(f.MarkEdit.addMainMenuItem({title:U(`viewMode`),icon:v()?`eye`:void 0,children:[{title:U(`changeMode`),action:s_,key:Bl.key??`V`,modifiers:Bl.modifiers??[`Command`]},{separator:!0},_v(U(`editMode`),i_.edit),_v(U(`sideBySideMode`),i_.sideBySide),_v(U(`previewMode`),i_.preview),_v(U(`syntaxHiddenMode`),i_.syntaxHidden),{separator:!0},...vv(),{separator:!0},{title:`${U(`version`)} 1.13.0`,action:()=>open(`https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.13.0`)}]}),f.MarkEdit.addExtension([d.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(e=>e.annotation(r_))||(yv.renderUpdater!==void 0&&clearTimeout(yv.renderUpdater),yv.renderUpdater=setTimeout(d_,500)))}),Mg]),f.MarkEdit.onEditorReady(()=>{Nl&&od(f.MarkEdit.editorView.scrollDOM),c_(),requestAnimationFrame(async()=>{document.visibilityState===`visible`&&l_()===i_.preview&&typeof f.MarkEdit.getFileInfo==`function`&&(await f.MarkEdit.getFileInfo())?.filePath===void 0&&f.MarkEdit.editorAPI.getText().length===0&&o_(i_.edit,!1)}),d_(),hd(__(),v_()),yv.keyDownListener!==void 0&&document.removeEventListener(`keydown`,yv.keyDownListener),yv.keyDownListener=e=>f_(e),document.addEventListener(`keydown`,yv.keyDownListener)}),typeof f.MarkEdit.onEditorConfigChange==`function`&&f.MarkEdit.onEditorConfigChange(e=>{e===`lineHeight`&&l_()===i_.syntaxHidden&&f.MarkEdit.editorView?.requestMeasure()}));function _v(e,t){return{title:e,action:()=>o_(t),state:()=>({isSelected:l_()===t})}}function vv(){let e=[{title:U(`copyHtml`),action:h_},{title:U(`copyRichText`),action:g_}];return f.MarkEdit.showSavePanel===void 0?e:[{title:U(`saveCleanHtml`),action:p_},{title:U(`saveStyledHtml`),action:m_},...e]}var yv={renderUpdater:void 0,keyDownListener:void 0}; \ No newline at end of file diff --git a/dist/markedit-preview.js b/dist/markedit-preview.js index 48b74c7..4fd39c3 100644 --- a/dist/markedit-preview.js +++ b/dist/markedit-preview.js @@ -1,42 +1,44 @@ "use strict";(()=>{let e=globalThis;if(typeof e.require>`u`){let t={MarkEdit:e.MarkEdit??Object.freeze({})},n={of:()=>({})},r=()=>({range:()=>({})});class i{}let a={"markedit-api":t,"@codemirror/view":{EditorView:{updateListener:n,mouseSelectionStyle:n,editorAttributes:n,baseTheme:()=>({})},Decoration:{mark:r,line:r},ViewPlugin:{fromClass:()=>({})},WidgetType:i,RectangleMarker:i,layer:()=>({})},"@codemirror/state":{Annotation:{define:()=>({of:()=>({})})},Compartment:class{of(){return{}}reconfigure(){return{}}},Facet:{define:()=>n},StateField:{define:()=>({})}}};e.require=e=>a[e]??{}}})();var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var l=r(i),u=0,d=l.length,f;ui[e]).bind(null,f),enumerable:!(s=n(i,f))||s.enumerable});return e},d=(n,r,o)=>(o=n==null?{}:e(i(n)),u(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let f=require("@codemirror/view"),p=require("markedit-api"),m=require("@codemirror/state"),h=require("@codemirror/language"),g=require("@lezer/highlight"),_=require("@lezer/lr");require("@lezer/common");function v(){typeof p.MarkEdit.playSystemBeep==`function`&&p.MarkEdit.playSystemBeep()}function y(){let e=navigator.userAgent.match(/macOS\/(\d+)/);return e!==null&&parseInt(e[1])>=26}function b(e,t=!0){let n=document.createElement(`style`);return n.textContent=e,document.head.appendChild(n),n.disabled=!t,n}function x(e){return(e?.match(/--bgColor-default:\s*([^;]+);/))?.[1]?.trim()}function S(e){return(e.split(`/`).pop()??e).split(`.`).slice(0,-1).join(`.`)}function C(e){let t=e?.lastIndexOf(`.`);return t===-1?``:e?.slice(t).toLowerCase()}function w(e){return(e instanceof HTMLElement?e:e.parentElement)?.closest(`.cm-line`)}function T(e){return{from:parseInt(e.dataset.lineFrom??`0`),to:parseInt(e.dataset.lineTo??`0`)}}function E(e,t){let n=0,r=t;for(;r!==null&&r!==e;)n+=r.offsetTop,r=r.offsetParent;return n}function D(e,t,n,r=!0){O(e,E(e,t)+t.offsetHeight*n,r)}function O(e,t,n=!0){let r=parseFloat(getComputedStyle(e).paddingTop);e.scrollTo({top:t<=r?0:t,behavior:n?`smooth`:`instant`})}function k(e){let t=document.createRange();t.selectNodeContents(e);let n=getSelection();n?.removeAllRanges(),n?.addRange(t)}function A(e){return!/^(https?:)?\/\//.test(e)&&/\.(png|jpe?g|gif|bmp|webp|svg)(\?.*)?$/i.test(e)}function j(e,t){return e.endsWith(`/`)?e+t:e+`/`+t}async function M(e){let t=await p.MarkEdit.getFileContent(e);if(t===void 0)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch(t){return console.error(`Failed to parse JSON from ${e}:`,t),{}}}function ee(e,t){return navigator.clipboard.write([e]).catch(e=>{console.error(`Failed to copy:`,e),p.MarkEdit.showAlert(t)})}function te(e){let t=document.createElement(`div`);t.style.cssText=`position: fixed; left: -10000px; top: 0;`,t.innerHTML=e,document.body.appendChild(t);try{return t.innerText}finally{t.remove()}}var ne=o((()=>{}));function re(e){let t=ae[e];if(t)return t;t=ae[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+91114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}var ae,oe=o((()=>{ae={},ie.defaultChars=`;/?:@&=+$,#`,ie.componentChars=``}));function se(e){let t=le[e];if(t)return t;t=le[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}var le,ue=o((()=>{le={},ce.defaultChars=`;/?:@&=+$,-_.!~*'()#`,ce.componentChars=`-_.!~*'()`}));function de(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}var fe=o((()=>{}));function pe(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function me(e,t){if(e&&e instanceof pe)return e;let n=new pe;return n.parse(e,t),n}var he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De=o((()=>{he=/^([a-z0-9.+-]+:)/i,ge=/:[0-9]*$/,_e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ve=[`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` -`,` `],ye=[`'`].concat(ve),be=[`%`,`/`,`?`,`;`,`#`].concat(ye),xe=[`/`,`?`,`#`],Se=255,Ce=/^[+a-z0-9A-Z_-]{0,63}$/,we=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Te={javascript:!0,"javascript:":!0},Ee={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},pe.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=_e.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=he.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Te[o])&&(a=a.substr(2),this.slashes=!0)),!Te[o]&&(i||o&&!Ee[o])){let e=-1;for(let t=0;t127?r+=`x`:r+=n[e];if(!r.match(Ce)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(we);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>Se&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf(`?`);return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),Ee[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},pe.prototype.parseHost=function(e){let t=ge.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}})),Oe=l({decode:()=>ie,encode:()=>ce,format:()=>de,parse:()=>me}),ke=o((()=>{oe(),ue(),fe(),De()})),Ae=l({Any:()=>je,Cc:()=>Me,Cf:()=>Ne,P:()=>Pe,S:()=>Fe,Z:()=>Ie}),je,Me,Ne,Pe,Fe,Ie,Le=o((()=>{je=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Me=/[\0-\x1F\x7F-\x9F]/,Ne=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Pe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Fe=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,Ie=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}));function Re(e){return e===0||e>=55296&&e<=57343||e>1114111}function ze(e){return Re(e)?65533:e>=128&&e<=159&&Ve[e-128]||e}function Be(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(ze(e))}var Ve,He=o((()=>{Ve=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376]}));function Ue(e,t,n,r,i,a){let o=e.length,s=a*90,l=0,u=()=>{let t=We[e.charCodeAt(l++)];return t=a&&(t=t*91-s+We[e.charCodeAt(l++)]);let n=p[t];if(n<0){let e=m[t],n=e+h[t];for(;e{We=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})()})),Ke,qe=o((()=>{Ge(),Ke=Ue("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37w+vu9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a06Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:96Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2vyRgNj8w)v86Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|icQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf3Ds}KvGB)_6Vyk2sM=6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;RmRm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQRmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.>bU{0j9udv:Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_gg5u-rqJvy'!@9RkQcH(T#=>Ri~@Ri}@2@@=aybb}XjWv0Q~EfEj3vLv;5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=!|l=w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8waiL2b`{QJv*_Ouv2qgjZa&!*UaA=2Wls3cH#T(@Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@Ri{cNu+vlax-!(#a0qa9aY?C9:9au@9Cb]}9cl#U*5;5KqRlR=c>Z,k#u3vWs@u2]krvgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9Awwn;;Rn=c:Z'ARn<=Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(XaRn7Jw0!&>Rn5>Rn9Lunw?&a2!,5ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Shx'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUgA9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8uuq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{NaU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#cB{/T#=ayaL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[gJvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`aRfk=ayb^}4~Ad1#`*@@=aybb{w2@>==KqRlT=c>Z,k#u3vWs@u2]kqReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJRkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}wRn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']ox7gL#TzuwjirRipcon;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJRn1~?rOc:Z&Rn2=w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUgw*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!bRhG<7@C5vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2!a)-g{(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(Je||={})}));function Xe(e){let t=e>>>ct;return t===ut?dt:t}function Ze(e){return e-ot.ZERO>>>0<=9}function Qe(e){return(e|st)-ot.LOWER_A>>>0<=5}function $e(e){return(e|st)-ot.LOWER_A>>>0<=25}function et(e){return e===ot.EQUALS||$e(e)||Ze(e)}function tt(e,t,n,r){let i=(t&Je.BRANCH_LENGTH)>>7,a=t&Je.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function nt(e,t,n){return n===1?String.fromCharCode(e[t]&Je.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function rt(e,t,n){let r=t+1,i=0,a=r;if(r>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r1114111&&(i=1114112);let o=r-t;return o>=ut&&(dt=o,o=ut),o<>7;do{let l=i+1,f=e.charCodeAt(l),p,m;if(f===ot.NUM){let n=rt(e,l,a);p=Xe(n),t&&p>0&&e.charCodeAt(l+p-1)!==ot.SEMI&&(p=0),m=p===0?``:Be(n<)}else if($e(f)){p=0,m=``;let n=f-u,i;if(n>>>0>7;if(n===0){if(e.charCodeAt(g)!==t)break trie;i+=1}else{let a=e.charCodeAt(g)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(h=r[i],g+=1,g>=a)break trie}if((h&(Je.VALUE_LENGTH|Je.FLAG13))===Je.FLAG13){let t=(h&Je.BRANCH_LENGTH)>>7;if(e.charCodeAt(g)!==(h&Je.JUMP_TABLE))break;g+=1;let n=t-1,a=i+1,o=0;for(;o+1>8&255)))break trie;g+=1,a+=1}if(o>1),h=r[i];continue}let n=h>>>14,u=e.charCodeAt(g);if(n!==0){if(u===ot.SEMI){p=g-l+1,m=n===1?String.fromCharCode(h&Je.VALUE_MASK):nt(r,i,n);break}if(!t&&(h&Je.FLAG13)===0&&(p=g-l,o=i,s=n),n===1)break}let d=tt(r,h,i+(n||1),u);if(d<0)break;i=d,h=r[i],g+=1}if(m===``){let e=h>>>14;e!==0&&!t&&(h&Je.FLAG13)===0&&(p=g-l,o=i,s=e),p>0&&(m=nt(r,o,s))}}else p=0,m=``;p===0||n&&f!==ot.NUM&&e.charCodeAt(l+p-1)!==ot.SEMI&&l+p=0);return s+e.slice(o)}function at(e){return it(e,!0,!1)}var ot,st,ct,lt,ut,dt,ft,pt,mt=o((()=>{He(),qe(),Ye(),(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(ot||={}),st=32,ct=21,lt=2097151,ut=2047,dt=0,(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(ft||={}),(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(pt||={})})),ht=o((()=>{mt()}));function gt(){let e=xt.split(`|`);return bt.split(`|`).forEach(t=>{let n=t.indexOf(`:`),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var _t,vt,yt,bt,xt,St,Ct,wt,Tt=o((()=>{Le(),_t=class{src_Any=je.source;src_Cc=Me.source;src_Z=Ie.source;src_P=Pe.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join(`|`);src_ZCc=[this.src_Z,this.src_Cc].join(`|`);cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),a=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,o=`${r}${a}{0,1000}${i}`;for(let e=2;e<=n;e++)o=`${r}(?:${a}|${o}){0,1000}${i}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=RegExp(`(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])`)}get_ipv6_addr(){let e=`[0-9A-Fa-f]{1,4}`,t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=RegExp(`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`)}get_host_terminator(){return this.cache.src_host_terminator??=RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=RegExp(`(?:[/?#](?:${this.nestedPairRE(`[`,`]`)}|${this.nestedPairRE(`(`,`)`)}|${this.nestedPairRE(`{`,`}`)}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts[`---`]?`\\-(?!--(?:[^-]|$))(?:-{0,19})|`:`\\-{1,20}|`)+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=RegExp(`xn--[a-z0-9\\-]{1,59}`)}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join(`|`);return this.cache.tld=RegExp(`${e||`$#none#$`}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=RegExp(`(?:`+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=RegExp(`(?:`+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=RegExp(`(?:`+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=RegExp(`(?:`+(this.opts.fuzzyIP?this.get_ipv4_addr().source+`|`:``)+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=RegExp(``)}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=RegExp(`@${this.get_fuzzy_mail_host().source}`,`ig`)}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uff5c])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,`ig`)}get_http_validator(){return this.cache.http_validator??=RegExp(`\\/\\/`+(this.opts.urlAuth?this.get_auth().source:``)+this.get_url_host_port().source+this.get_path().source,`iy`)}get_relative_proto_validator(){return this.cache.relative_proto_validator??=RegExp((this.opts.urlAuth?this.get_auth().source:``)+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,`iy`)}get_mail_name_validator(){return this.cache.mail_name_validator??=RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,`iy`)}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join(`|`))}get_schema_search(){return this.cache.schema_search??=RegExp(`(^|(?!_)(?:[><\uff5c]|${this.src_ZPCc}))(${this.get_schema_names().source})`,`ig`)}get_schema_at_start(){return this.cache.schema_at_start??=RegExp(`^${this.get_schema_search().source}`,`i`)}},vt={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},yt={"http:":vt,"https:":vt,"ftp:":vt,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},bt=`a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw`,xt=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`,St={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:gt(),urlAuth:!1,maxLength:1e4},Ct=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},wt=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...St,...n},this.__schemas__={...yt},this.re=t||new _t,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(e,t)=>t.normalize(e),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&e.indexOf(`@`)>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(t=n.exec(e))!==null;){let n=e.slice(Math.max(0,t.index-65),t.index);if(r.test(n))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,a,o,s,l,u=!1,d=!1,f=!1,p=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,a=this.re.get_mail_name_validator());;){let m=Math.max(p-1,0);if(i&&a&&!f&&(!s||s.index=p)break;i.lastIndex=p)break;r.lastIndexh.lastIndex))&&(h=o);let g;if(!u)for(;;){if(!l){n.lastIndexh.index)break;let t=l;l=void 0;let r=this.testSchemaAt(e,t.schema,t.lastIndex);if(r){g={schema:t.schema,index:t.index,lastIndex:t.lastIndex+r};break}}let _=g;if((!_||s&&(s.index<_.index||s.index===_.index&&s.lastIndex>_.lastIndex))&&(_=s),(!_||o&&(o.index<_.index||o.index===_.index&&o.lastIndex>_.lastIndex))&&(_=o),!_)break;_===s?s=void 0:_===o&&(o=void 0);let v=new Ct(e,_.schema,_.index,_.lastIndex);v.schema?this.__schemas__[v.schema].normalize(v,this):this.normalize(v),t.push(v),p=_.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Ct(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}}}));function Et(e){throw RangeError(It[e])}function Dt(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Ot(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(aee,`.`);let i=Dt(e.split(`.`),t).join(`.`);return r+i}function kt(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{At=2147483647,jt=36,Mt=1,Nt=26,Pt=38,eee=700,tee=72,Ft=128,nee=`-`,ree=/^xn--/,iee=/[^\0-\x7F]/,aee=/[\x2E\u3002\uFF0E\uFF61]/g,It={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Lt=35,Rt=Math.floor,zt=String.fromCharCode,Bt=e=>String.fromCodePoint(...e),Vt=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:jt},Ht=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ut=function(e,t,n){let r=0;for(e=n?Rt(e/eee):e>>1,e+=Rt(e/t);e>455;r+=jt)e=Rt(e/Lt);return Rt(r+36*e/(e+Pt))},oee=function(e){let t=[],n=e.length,r=0,i=Ft,a=tee,o=e.lastIndexOf(nee);o<0&&(o=0);for(let n=0;n=128&&Et(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s=n&&Et(`invalid-input`);let o=Vt(e.charCodeAt(s++));o>=jt&&Et(`invalid-input`),o>Rt((At-r)/t)&&Et(`overflow`),r+=o*t;let l=i<=a?Mt:i>=a+Nt?Nt:i-a;if(oRt(At/u)&&Et(`overflow`),t*=u}let l=t.length+1;a=Ut(r-o,l,o==0),Rt(r/l)>At-i&&Et(`overflow`),i+=Rt(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Wt=function(e){let t=[];e=kt(e);let n=e.length,r=Ft,i=0,a=tee;for(let n of e)n<128&&t.push(zt(n));let o=t.length,s=o;for(o&&t.push(nee);s=r&&tRt((At-i)/l)&&Et(`overflow`),i+=(n-r)*l,r=n;for(let n of e)if(nAt&&Et(`overflow`),n===r){let e=i;for(let n=jt;;n+=jt){let r=n<=a?Mt:n>=a+Nt?Nt:n-a;if(e=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function qt(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function fee(e,t){if(t.charCodeAt(0)===35&&Vte.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Kt(n)?qt(n):e}let n=at(e);return n===e?e:n}function pee(e){return e.indexOf(`\\`)<0?e:e.replace(zte,`$1`)}function Jt(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(Bte,function(e,t,n){return t||fee(e,n)})}function Yt(e){return Wte[e]}function Xt(e){return Hte.test(e)?e.replace(Ute,Yt):e}function mee(e){return e.replace(Gte,`\\$&`)}function Zt(e){switch(e){case 9:case 32:return!0}return!1}function hee(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function gee(e){return Pe.test(e)||Fe.test(e)}function _ee(e){return gee(qt(e))}function vee(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function yee(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function bee(e){return e===32||e===9||e===10||e===13}function xee(e){let t=0;for(;t=t&&bee(e.charCodeAt(n));n--);return e.slice(t,n+1)}function See(e,t,n){let r,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=Jt(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function wee(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a\s]/i.test(e)}function Mee(e){return/^<\/a\s*>/i.test(e)}function Nee(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n=0;t--){let n=r[t];if(n.type===`link_close`){for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;continue}if(n.type===`html_inline`&&(jee(n.content)&&a>0&&a--,Mee(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],l=n.level,u=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;tu){let t=new e.Token(`text`,``,0);t.content=a.slice(u,d),t.level=l,s.push(t)}let f=new e.Token(`link_open`,`a`,1);f.attrs=[[`href`,r]],f.level=l++,f.markup=`linkify`,f.info=`auto`,s.push(f);let p=new e.Token(`text`,``,0);p.content=i,p.level=l,s.push(p);let m=new e.Token(`link_close`,`a`,-1);m.level=--l,m.markup=`linkify`,m.info=`auto`,s.push(m),u=o[t].lastIndex}if(u0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(ene,Pee)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Iee(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Qte.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Lee(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&($te.test(e.tokens[t].content)&&Fee(e.tokens[t].children),Qte.test(e.tokens[t].content)&&Iee(e.tokens[t].children))}function Ree(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function zee(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Bee(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i=0&&!(r[n].level<=l);n--);if(Ree(r,i,n+1),s.type!==`text`)continue;let u=s.content,d=0,f=u.length;OUTER:for(;d=0)g=u.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(d=48&&g<=57&&(m=p=!1),p&&m&&(p=v,m=y),!p&&!m){h&&zee(a,o,s.index,ine);continue}if(m&&(n=h?i.single:i.double,n>=0&&r[n].level===l)){let e=r[n],l,u;h?(l=t.md.options.quotes[2],u=t.md.options.quotes[3]):(l=t.md.options.quotes[0],u=t.md.options.quotes[1]),zee(a,o,s.index,u),zee(a,e.tokenIdx,e.contentPos,l),Ree(r,i,n);continue OUTER}if(p){if(r.length>=ane)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:h,level:l,prevSameQuoteIdx:h?i.single:i.double}),h?i.single=r.length-1:i.double=r.length-1}else m&&h&&zee(a,o,s.index,ine)}}Object.keys(a).forEach(function(t){let n=Number(t);e[n].content=Bee(e[n].content,a[t])})}function Hee(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&nne.test(e.tokens[t].content)&&Vee(e.tokens[t].children,e)}function Uee(e){let t,n,r=e.length;for(t=0;tn)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!Zt(s)||o===45&&Zt(s))return!1;for(;a=4)return!1;u=Kee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop();let f=u.length;if(f===0||f!==d.length)return!1;if(r)return!0;let p=e.parentType;e.parentType=`table`;let m=e.md.block.ruler.getRules(`blockquote`),h=e.push(`table_open`,`table`,1),g=[t,0];h.map=g;let _=e.push(`thead_open`,`thead`,1);_.map=[t,t+1];let v=e.push(`tr_open`,`tr`,1);v.map=[t,t+1];for(let t=0;t=4||(u=Kee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop(),b+=f-u.length,b>lne))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=y=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` -`,a.map=[t,e.line],!0}function Yee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;let u=e.src.slice(s,i),d=e.src.slice(i,a);if(o===96&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=t,p=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],i=4)&&(i=e.skipChars(i,o),!(i-s=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],l=[],u=[],d=[],f=e.md.block.ruler.getRules(`blockquote`),p=e.parentType;e.parentType=`blockquote`;let m=!1,h;for(h=t;h=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[h]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[h]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[h]),e.bMarks[h]=i;i=a,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+ +!!n,u.push(e.sCount[h]),e.sCount[h]=o-t,d.push(e.tShift[h]),e.tShift[h]=i-e.bMarks[h];continue}if(m)break;let r=!1;for(let t=0,i=f.length;t`;let v=[t,0];_.map=v,e.md.block.tokenize(e,t,h);let y=e.push(`blockquote_close`,`blockquote`,-1);y.markup=`>`,e.lineMax=o,e.parentType=p,v[1]=e.line;for(let n=0;n=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(d=!0);let f,p,m;if((m=$ee(e,l))>=0){if(f=!0,o=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(o,m-1)),d&&p!==1)return!1}else if((m=Qee(e,l))>=0)f=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(r)return!0;let h=e.src.charCodeAt(m-1),g=e.tokens.length;f?(s=e.push(`ordered_list_open`,`ol`,1),p!==1&&(s.attrs=[[`start`,p]])):s=e.push(`bullet_list_open`,`ul`,1);let _=[l,0];s.map=_,s.markup=String.fromCharCode(h);let v=!1,y=e.md.block.ruler.getRules(`list`),b=e.parentType;for(e.parentType=`list`;l=i?1:r-t,p>4&&(p=1);let g=t+p;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(h);let _=[l,0];s.map=_,f&&(s.info=e.src.slice(o,m-1));let b=e.tight,x=e.tShift[l],S=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=g,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n),(!e.tight||v)&&(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=x,e.sCount[l]=S,e.tight=b,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(h),l=e.line,_[1]=l,l>=n||e.sCount[l]=4)break;let w=!1;for(let t=0,r=y.length;t56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function en(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function rte(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i=4||i.charCodeAt(a)!==91)return!1;let s=en(e,t),l=``,u=-1,d=++a;for(;aune*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){u=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&aune&&nte(l)>une))return!1;for(a=u+2;a=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i6||ii&&Zt(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let u=e.push(`heading_open`,`h${s}`,1);u.markup=`########`.slice(0,s),u.map=[t,e.line];let d=e.push(`inline`,``,0);d.content=xee(e.src.slice(i,a)),d.map=[t,e.line],d.children=[];let f=e.push(`heading_close`,`h${s}`,-1);return f.markup=`########`.slice(0,s),!0}function ste(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i=65&&e<=90||e>=97&&e<=122}function fte(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function pte(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&fte(e.src.charCodeAt(a-1));)a--;if(a===n||!dte(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let l=s.url;if(l.length<=o)return!1;let u=l.length;for(;u>0&&l.charCodeAt(u-1)===42;)u--;u!==l.length&&(l=l.slice(0,u));let d=e.md.normalizeLink(l);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,d]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(l);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=l.length-o,!0}function mte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&_ne[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function gte(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function _te(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=e.posMax,i=n+1;for(;i=i){let n=i,s;for(;(s=e.src.indexOf("`",n))!==-1&&sr)break;if(n-s===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a;let n=e.src.slice(i,s).replace(/\n/g,` `);n.startsWith(` `)&&n.endsWith(` `)&&/[^ ]/.test(n)&&(n=n.slice(1,-1)),t.content=n}return e.pos=n,!0}}}return t||(e.pending+=a),e.pos=i,!0}function vte(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let l=e.tokens[i.token];l.type=a?`strong_close`:`em_close`,l.tag=a?`strong`:`em`,l.nesting=-1,l.markup=a?o+o:o,l.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Cte(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ste(e,e.delimiters);for(let r=0;r=f)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?h=i.pos:o=``,l=h;h=f||e.src.charCodeAt(h)!==41)&&(u=!0),h++}if(u){if(e.env.references===void 0)return!1;if(h=0?r=e.src.slice(l,h++):h=m+1):h=m+1,r||=e.src.slice(p,m),r=yee(r),a=e.env.references[r],!a)return e.pos=d,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=m;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];if(t.attrs=n,s&&n.push([`title`,s]),r){let e=Object.create(null);e.label=r,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=h,e.posMax=f,!0}function Tte(e,t){let n,r,i,a,o,s,l,u,d=``,f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(a=h+1,a=p)return!1;for(u=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?a=s.pos:d=``),u=a;a=p||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(e.env.references===void 0)return!1;if(a=0?i=e.src.slice(u,a++):a=h+1):a=h+1,i||=e.src.slice(m,h),i=yee(i),o=e.env.references[i],!o)return e.pos=f,!1;d=o.href,l=o.title}if(!t){r=e.src.slice(m,h);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),a=[[`src`,d],[`alt`,``]];if(n.attrs=a,n.children=t,n.content=r,l&&a.push([`title`,l]),i){let e=Object.create(null);e.label=i,n.meta=e}}return e.pos=a,e.posMax=p,!0}function Ete(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(xne.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(bne.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Dte(e){return/^\s]/i.test(e)}function Ote(e){return/^<\/a\s*>/i.test(e)}function kte(e){let t=e|32;return t>=97&&t<=122}function Ate(e,t){let n=e.src,r,i;if(n.startsWith(``}else if(n.startsWith(``;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(kte(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function jte(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=Ate(e,r);else if(a===47||kte(a)){let t=e.src.slice(r).match(mne);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),Dte(t.content)&&e.linkLevel++,Ote(t.content)&&e.linkLevel--}return e.pos=i,!0}function Mte(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(Sne);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Kt(t)?qt(t):qt(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Cne);if(r){let n=at(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Nte(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;os;l-=a[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+r,a[l]=r,n.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}function Pte(e){let t=e.tokens_meta,n=e.tokens_meta.length;Nte(e.delimiters);for(let e=0;e0&&r++,i[t].type===`text`&&t+1{ke(),Le(),ht(),Tt(),lee(),Ite=Object.defineProperty,Lte=(e,t)=>{let n={};for(var r in e)Ite(n,r,{get:e[r],enumerable:!0});return t||Ite(n,Symbol.toStringTag,{value:`Module`}),n},Rte=Lte({arrayReplaceAt:()=>dee,asciiTrim:()=>xee,callable:()=>uee,escapeHtml:()=>Xt,escapeRE:()=>mee,fromCodePoint:()=>qt,isMdAsciiPunct:()=>vee,isPunctChar:()=>gee,isPunctCharCode:()=>_ee,isSpace:()=>Zt,isValidEntityCode:()=>Kt,isWhiteSpace:()=>hee,lib:()=>Kte,normalizeReference:()=>yee,unescapeAll:()=>Jt,unescapeMd:()=>pee}),zte=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Bte=RegExp(`${zte.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Vte=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,Hte=/[&<>"]/,Ute=/[&<>"]/g,Wte={"&":`&`,"<":`<`,">":`>`,'"':`"`},Gte=/[.?*+^$[\]\\(){}|-]/g,Kte={mdurl:Oe,ucmicro:Ae},qte=Lte({parseLinkDestination:()=>Cee,parseLinkLabel:()=>See,parseLinkTitle:()=>wee}),tn=class{constructor(e,t,n){$t(this,`map`,null),$t(this,`level`,0),$t(this,`children`,null),$t(this,`content`,``),$t(this,`markup`,``),$t(this,`info`,``),$t(this,`block`,!1),$t(this,`hidden`,!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},nn=class{constructor(){$t(this,`__rules__`,[]),$t(this,`__cache__`,null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(t=>{t&&e.add(t)})}),this.__cache__=Object.create(null),this.__cache__[``]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[``].push(e.fn)}),e.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(t=>{t.enabled&&t.alt.indexOf(e)>=0&&this.__cache__[e].push(t.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!0,n.push(e)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(e=>{e.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!1,n.push(e)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},rn={},rn.code_inline=function(e,t,n,r,i){let a=e[t];return`${Xt(a.content)}`},rn.code_block=function(e,t,n,r,i){let a=e[t];return`${Xt(e[t].content)}\n`},rn.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Jt(a.info).trim():``,s=``,l=``;if(o){let e=o.split(/(\s+)/g);s=e[0],l=e.slice(2).join(``)}let u;if(u=n.highlight&&n.highlight(a.content,s,l)||Xt(a.content),u.indexOf(`${u}\n`}return`
${u}
\n`},rn.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},rn.hardbreak=function(e,t,n){return n.xhtmlOut?`
+`,` `],ye=[`'`].concat(ve),be=[`%`,`/`,`?`,`;`,`#`].concat(ye),xe=[`/`,`?`,`#`],Se=255,Ce=/^[+a-z0-9A-Z_-]{0,63}$/,we=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Te={javascript:!0,"javascript:":!0},Ee={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},pe.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=_e.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=he.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Te[o])&&(a=a.substr(2),this.slashes=!0)),!Te[o]&&(i||o&&!Ee[o])){let e=-1;for(let t=0;t127?r+=`x`:r+=n[e];if(!r.match(Ce)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(we);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>Se&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf(`?`);return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),Ee[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},pe.prototype.parseHost=function(e){let t=ge.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}})),Oe=l({decode:()=>ie,encode:()=>ce,format:()=>de,parse:()=>me}),ke=o((()=>{oe(),ue(),fe(),De()})),Ae=l({Any:()=>je,Cc:()=>Me,Cf:()=>Ne,P:()=>Pe,S:()=>Fe,Z:()=>Ie}),je,Me,Ne,Pe,Fe,Ie,Le=o((()=>{je=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Me=/[\0-\x1F\x7F-\x9F]/,Ne=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Pe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Fe=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,Ie=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}));function Re(e){return e===0||e>=55296&&e<=57343||e>1114111}function ze(e){return Re(e)?65533:e>=128&&e<=159&&Ve[e-128]||e}function Be(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(ze(e))}var Ve,He=o((()=>{Ve=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376]}));function Ue(e,t,n,r,i,a){let o=e.length,s=a*90,l=0,u=()=>{let t=We[e.charCodeAt(l++)];return t=a&&(t=t*91-s+We[e.charCodeAt(l++)]);let n=p[t];if(n<0){let e=m[t],n=e+h[t];for(;e{We=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})()})),Ke,qe=o((()=>{Ge(),Ke=Ue("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37w+vu9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a06Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:96Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2vyRgNj8w)v86Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|icQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf3Ds}KvGB)_6Vyk2sM=6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;RmRm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQRmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.>bU{0j9udv:Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_gg5u-rqJvy'!@9RkQcH(T#=>Ri~@Ri}@2@@=aybb}XjWv0Q~EfEj3vLv;5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=!|l=w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8waiL2b`{QJv*_Ouv2qgjZa&!*UaA=2Wls3cH#T(@Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@Ri{cNu+vlax-!(#a0qa9aY?C9:9au@9Cb]}9cl#U*5;5KqRlR=c>Z,k#u3vWs@u2]krvgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9Awwn;;Rn=c:Z'ARn<=Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(XaRn7Jw0!&>Rn5>Rn9Lunw?&a2!,5ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Shx'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUgA9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8uuq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{NaU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#cB{/T#=ayaL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[gJvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`aRfk=ayb^}4~Ad1#`*@@=aybb{w2@>==KqRlT=c>Z,k#u3vWs@u2]kqReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJRkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}wRn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']ox7gL#TzuwjirRipcon;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJRn1~?rOc:Z&Rn2=w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUgw*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!bRhG<7@C5vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2!a)-g{(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(Je||={})}));function Xe(e){let t=e>>>ct;return t===ut?dt:t}function Ze(e){return e-ot.ZERO>>>0<=9}function Qe(e){return(e|st)-ot.LOWER_A>>>0<=5}function $e(e){return(e|st)-ot.LOWER_A>>>0<=25}function et(e){return e===ot.EQUALS||$e(e)||Ze(e)}function tt(e,t,n,r){let i=(t&Je.BRANCH_LENGTH)>>7,a=t&Je.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function nt(e,t,n){return n===1?String.fromCharCode(e[t]&Je.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function rt(e,t,n){let r=t+1,i=0,a=r;if(r>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r1114111&&(i=1114112);let o=r-t;return o>=ut&&(dt=o,o=ut),o<>7;do{let l=i+1,f=e.charCodeAt(l),p,m;if(f===ot.NUM){let n=rt(e,l,a);p=Xe(n),t&&p>0&&e.charCodeAt(l+p-1)!==ot.SEMI&&(p=0),m=p===0?``:Be(n<)}else if($e(f)){p=0,m=``;let n=f-u,i;if(n>>>0>7;if(n===0){if(e.charCodeAt(g)!==t)break trie;i+=1}else{let a=e.charCodeAt(g)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(h=r[i],g+=1,g>=a)break trie}if((h&(Je.VALUE_LENGTH|Je.FLAG13))===Je.FLAG13){let t=(h&Je.BRANCH_LENGTH)>>7;if(e.charCodeAt(g)!==(h&Je.JUMP_TABLE))break;g+=1;let n=t-1,a=i+1,o=0;for(;o+1>8&255)))break trie;g+=1,a+=1}if(o>1),h=r[i];continue}let n=h>>>14,u=e.charCodeAt(g);if(n!==0){if(u===ot.SEMI){p=g-l+1,m=n===1?String.fromCharCode(h&Je.VALUE_MASK):nt(r,i,n);break}if(!t&&(h&Je.FLAG13)===0&&(p=g-l,o=i,s=n),n===1)break}let d=tt(r,h,i+(n||1),u);if(d<0)break;i=d,h=r[i],g+=1}if(m===``){let e=h>>>14;e!==0&&!t&&(h&Je.FLAG13)===0&&(p=g-l,o=i,s=e),p>0&&(m=nt(r,o,s))}}else p=0,m=``;p===0||n&&f!==ot.NUM&&e.charCodeAt(l+p-1)!==ot.SEMI&&l+p=0);return s+e.slice(o)}function at(e){return it(e,!0,!1)}var ot,st,ct,lt,ut,dt,ft,pt,mt=o((()=>{He(),qe(),Ye(),(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(ot||={}),st=32,ct=21,lt=2097151,ut=2047,dt=0,(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(ft||={}),(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(pt||={})})),ht=o((()=>{mt()}));function gt(){let e=xt.split(`|`);return bt.split(`|`).forEach(t=>{let n=t.indexOf(`:`),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var _t,vt,yt,bt,xt,St,Ct,wt,Tt=o((()=>{Le(),_t=class{src_Any=je.source;src_Cc=Me.source;src_Z=Ie.source;src_P=Pe.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join(`|`);src_ZCc=[this.src_Z,this.src_Cc].join(`|`);cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),a=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,o=`${r}${a}{0,1000}${i}`;for(let e=2;e<=n;e++)o=`${r}(?:${a}|${o}){0,1000}${i}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=RegExp(`(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])`)}get_ipv6_addr(){let e=`[0-9A-Fa-f]{1,4}`,t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=RegExp(`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`)}get_host_terminator(){return this.cache.src_host_terminator??=RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=RegExp(`(?:[/?#](?:${this.nestedPairRE(`[`,`]`)}|${this.nestedPairRE(`(`,`)`)}|${this.nestedPairRE(`{`,`}`)}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts[`---`]?`\\-(?!--(?:[^-]|$))(?:-{0,19})|`:`\\-{1,20}|`)+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=RegExp(`xn--[a-z0-9\\-]{1,59}`)}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join(`|`);return this.cache.tld=RegExp(`${e||`$#none#$`}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=RegExp(`(?:`+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=RegExp(`(?:`+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=RegExp(`(?:`+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=RegExp(`(?:`+(this.opts.fuzzyIP?this.get_ipv4_addr().source+`|`:``)+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=RegExp(``)}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=RegExp(`@${this.get_fuzzy_mail_host().source}`,`ig`)}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uff5c])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,`ig`)}get_http_validator(){return this.cache.http_validator??=RegExp(`\\/\\/`+(this.opts.urlAuth?this.get_auth().source:``)+this.get_url_host_port().source+this.get_path().source,`iy`)}get_relative_proto_validator(){return this.cache.relative_proto_validator??=RegExp((this.opts.urlAuth?this.get_auth().source:``)+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,`iy`)}get_mail_name_validator(){return this.cache.mail_name_validator??=RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,`iy`)}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join(`|`))}get_schema_search(){return this.cache.schema_search??=RegExp(`(^|(?!_)(?:[><\uff5c]|${this.src_ZPCc}))(${this.get_schema_names().source})`,`ig`)}get_schema_at_start(){return this.cache.schema_at_start??=RegExp(`^${this.get_schema_search().source}`,`i`)}},vt={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},yt={"http:":vt,"https:":vt,"ftp:":vt,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},bt=`a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw`,xt=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`,St={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:gt(),urlAuth:!1,maxLength:1e4},Ct=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},wt=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...St,...n},this.__schemas__={...yt},this.re=t||new _t,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(e,t)=>t.normalize(e),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&e.indexOf(`@`)>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(t=n.exec(e))!==null;){let n=e.slice(Math.max(0,t.index-65),t.index);if(r.test(n))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,a,o,s,l,u=!1,d=!1,f=!1,p=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,a=this.re.get_mail_name_validator());;){let m=Math.max(p-1,0);if(i&&a&&!f&&(!s||s.index=p)break;i.lastIndex=p)break;r.lastIndexh.lastIndex))&&(h=o);let g;if(!u)for(;;){if(!l){n.lastIndexh.index)break;let t=l;l=void 0;let r=this.testSchemaAt(e,t.schema,t.lastIndex);if(r){g={schema:t.schema,index:t.index,lastIndex:t.lastIndex+r};break}}let _=g;if((!_||s&&(s.index<_.index||s.index===_.index&&s.lastIndex>_.lastIndex))&&(_=s),(!_||o&&(o.index<_.index||o.index===_.index&&o.lastIndex>_.lastIndex))&&(_=o),!_)break;_===s?s=void 0:_===o&&(o=void 0);let v=new Ct(e,_.schema,_.index,_.lastIndex);v.schema?this.__schemas__[v.schema].normalize(v,this):this.normalize(v),t.push(v),p=_.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Ct(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}}}));function Et(e){throw RangeError(Ft[e])}function Dt(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Ot(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(oee,`.`);let i=Dt(e.split(`.`),t).join(`.`);return r+i}function kt(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{At=2147483647,jt=36,Mt=1,Nt=26,Pt=38,eee=700,tee=72,nee=128,ree=`-`,iee=/^xn--/,aee=/[^\0-\x7F]/,oee=/[\x2E\u3002\uFF0E\uFF61]/g,Ft={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},It=35,Lt=Math.floor,Rt=String.fromCharCode,zt=e=>String.fromCodePoint(...e),Bt=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:jt},Vt=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ht=function(e,t,n){let r=0;for(e=n?Lt(e/eee):e>>1,e+=Lt(e/t);e>455;r+=jt)e=Lt(e/It);return Lt(r+36*e/(e+Pt))},see=function(e){let t=[],n=e.length,r=0,i=nee,a=tee,o=e.lastIndexOf(ree);o<0&&(o=0);for(let n=0;n=128&&Et(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s=n&&Et(`invalid-input`);let o=Bt(e.charCodeAt(s++));o>=jt&&Et(`invalid-input`),o>Lt((At-r)/t)&&Et(`overflow`),r+=o*t;let l=i<=a?Mt:i>=a+Nt?Nt:i-a;if(oLt(At/u)&&Et(`overflow`),t*=u}let l=t.length+1;a=Ht(r-o,l,o==0),Lt(r/l)>At-i&&Et(`overflow`),i+=Lt(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Ut=function(e){let t=[];e=kt(e);let n=e.length,r=nee,i=0,a=tee;for(let n of e)n<128&&t.push(Rt(n));let o=t.length,s=o;for(o&&t.push(ree);s=r&&tLt((At-i)/l)&&Et(`overflow`),i+=(n-r)*l,r=n;for(let n of e)if(nAt&&Et(`overflow`),n===r){let e=i;for(let n=jt;;n+=jt){let r=n<=a?Mt:n>=a+Nt?Nt:n-a;if(e=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Kt(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function pee(e,t){if(t.charCodeAt(0)===35&&Bte.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Gt(n)?Kt(n):e}let n=at(e);return n===e?e:n}function mee(e){return e.indexOf(`\\`)<0?e:e.replace(Rte,`$1`)}function qt(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(zte,function(e,t,n){return t||pee(e,n)})}function Jt(e){return Ute[e]}function Yt(e){return Vte.test(e)?e.replace(Hte,Jt):e}function hee(e){return e.replace(Wte,`\\$&`)}function Xt(e){switch(e){case 9:case 32:return!0}return!1}function Zt(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function gee(e){return Pe.test(e)||Fe.test(e)}function Qt(e){return gee(Kt(e))}function $t(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _ee(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function vee(e){return e===32||e===9||e===10||e===13}function yee(e){let t=0;for(;t=t&&vee(e.charCodeAt(n));n--);return e.slice(t,n+1)}function bee(e,t,n){let r,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=qt(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function See(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a\s]/i.test(e)}function Aee(e){return/^<\/a\s*>/i.test(e)}function jee(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n=0;t--){let n=r[t];if(n.type===`link_close`){for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;continue}if(n.type===`html_inline`&&(kee(n.content)&&a>0&&a--,Aee(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],l=n.level,u=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;tu){let t=new e.Token(`text`,``,0);t.content=a.slice(u,d),t.level=l,s.push(t)}let f=new e.Token(`link_open`,`a`,1);f.attrs=[[`href`,r]],f.level=l++,f.markup=`linkify`,f.info=`auto`,s.push(f);let p=new e.Token(`text`,``,0);p.content=i,p.level=l,s.push(p);let m=new e.Token(`link_close`,`a`,-1);m.level=--l,m.markup=`linkify`,m.info=`auto`,s.push(m),u=o[t].lastIndex}if(u0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace($te,Mee)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Pee(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Zte.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Fee(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Qte.test(e.tokens[t].content)&&Nee(e.tokens[t].children),Zte.test(e.tokens[t].content)&&Pee(e.tokens[t].children))}function Iee(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function Lee(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Ree(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i=0&&!(r[n].level<=l);n--);if(Iee(r,i,n+1),s.type!==`text`)continue;let u=s.content,d=0,f=u.length;OUTER:for(;d=0)g=u.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(d=48&&g<=57&&(m=p=!1),p&&m&&(p=v,m=y),!p&&!m){h&&Lee(a,o,s.index,rne);continue}if(m&&(n=h?i.single:i.double,n>=0&&r[n].level===l)){let e=r[n],l,u;h?(l=t.md.options.quotes[2],u=t.md.options.quotes[3]):(l=t.md.options.quotes[0],u=t.md.options.quotes[1]),Lee(a,o,s.index,u),Lee(a,e.tokenIdx,e.contentPos,l),Iee(r,i,n);continue OUTER}if(p){if(r.length>=ine)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:h,level:l,prevSameQuoteIdx:h?i.single:i.double}),h?i.single=r.length-1:i.double=r.length-1}else m&&h&&Lee(a,o,s.index,rne)}}Object.keys(a).forEach(function(t){let n=Number(t);e[n].content=Ree(e[n].content,a[t])})}function Bee(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&tne.test(e.tokens[t].content)&&zee(e.tokens[t].children,e)}function Vee(e){let t,n,r=e.length;for(t=0;tn)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!Xt(s)||o===45&&Xt(s))return!1;for(;a=4)return!1;u=Wee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop();let f=u.length;if(f===0||f!==d.length)return!1;if(r)return!0;let p=e.parentType;e.parentType=`table`;let m=e.md.block.ruler.getRules(`blockquote`),h=e.push(`table_open`,`table`,1),g=[t,0];h.map=g;let _=e.push(`thead_open`,`thead`,1);_.map=[t,t+1];let v=e.push(`tr_open`,`tr`,1);v.map=[t,t+1];for(let t=0;t=4||(u=Wee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop(),b+=f-u.length,b>cne))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=y=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` +`,a.map=[t,e.line],!0}function qee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;let u=e.src.slice(s,i),d=e.src.slice(i,a);if(o===96&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=t,p=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],i=4)&&(i=e.skipChars(i,o),!(i-s=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],l=[],u=[],d=[],f=e.md.block.ruler.getRules(`blockquote`),p=e.parentType;e.parentType=`blockquote`;let m=!1,h;for(h=t;h=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[h]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[h]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[h]),e.bMarks[h]=i;i=a,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+ +!!n,u.push(e.sCount[h]),e.sCount[h]=o-t,d.push(e.tShift[h]),e.tShift[h]=i-e.bMarks[h];continue}if(m)break;let r=!1;for(let t=0,i=f.length;t`;let v=[t,0];_.map=v,e.md.block.tokenize(e,t,h);let y=e.push(`blockquote_close`,`blockquote`,-1);y.markup=`>`,e.lineMax=o,e.parentType=p,v[1]=e.line;for(let n=0;n=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(d=!0);let f,p,m;if((m=Zee(e,l))>=0){if(f=!0,o=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(o,m-1)),d&&p!==1)return!1}else if((m=Xee(e,l))>=0)f=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(r)return!0;let h=e.src.charCodeAt(m-1),g=e.tokens.length;f?(s=e.push(`ordered_list_open`,`ol`,1),p!==1&&(s.attrs=[[`start`,p]])):s=e.push(`bullet_list_open`,`ul`,1);let _=[l,0];s.map=_,s.markup=String.fromCharCode(h);let v=!1,y=e.md.block.ruler.getRules(`list`),b=e.parentType;for(e.parentType=`list`;l=i?1:r-t,p>4&&(p=1);let g=t+p;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(h);let _=[l,0];s.map=_,f&&(s.info=e.src.slice(o,m-1));let b=e.tight,x=e.tShift[l],S=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=g,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n),(!e.tight||v)&&(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=x,e.sCount[l]=S,e.tight=b,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(h),l=e.line,_[1]=l,l>=n||e.sCount[l]=4)break;let w=!1;for(let t=0,r=y.length;t56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function tte(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function nte(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i=4||i.charCodeAt(a)!==91)return!1;let s=tte(e,t),l=``,u=-1,d=++a;for(;alne*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){u=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&alne&&ete(l)>lne))return!1;for(a=u+2;a=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i6||ii&&Xt(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let u=e.push(`heading_open`,`h${s}`,1);u.markup=`########`.slice(0,s),u.map=[t,e.line];let d=e.push(`inline`,``,0);d.content=yee(e.src.slice(i,a)),d.map=[t,e.line],d.children=[];let f=e.push(`heading_close`,`h${s}`,-1);return f.markup=`########`.slice(0,s),!0}function ote(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i=65&&e<=90||e>=97&&e<=122}function dte(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function fte(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&dte(e.src.charCodeAt(a-1));)a--;if(a===n||!ute(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let l=s.url;if(l.length<=o)return!1;let u=l.length;for(;u>0&&l.charCodeAt(u-1)===42;)u--;u!==l.length&&(l=l.slice(0,u));let d=e.md.normalizeLink(l);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,d]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(l);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=l.length-o,!0}function pte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&gne[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function hte(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function gte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=e.posMax,i=n+1;for(;i=i){let n=i,s;for(;(s=e.src.indexOf("`",n))!==-1&&sr)break;if(n-s===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a;let n=e.src.slice(i,s).replace(/\n/g,` `);n.startsWith(` `)&&n.endsWith(` `)&&/[^ ]/.test(n)&&(n=n.slice(1,-1)),t.content=n}return e.pos=n,!0}}}return t||(e.pending+=a),e.pos=i,!0}function _te(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let l=e.tokens[i.token];l.type=a?`strong_close`:`em_close`,l.tag=a?`strong`:`em`,l.nesting=-1,l.markup=a?o+o:o,l.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Ste(e){let t=e.tokens_meta,n=e.tokens_meta.length;xte(e,e.delimiters);for(let r=0;r=f)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?h=i.pos:o=``,l=h;h=f||e.src.charCodeAt(h)!==41)&&(u=!0),h++}if(u){if(e.env.references===void 0)return!1;if(h=0?r=e.src.slice(l,h++):h=m+1):h=m+1,r||=e.src.slice(p,m),r=_ee(r),a=e.env.references[r],!a)return e.pos=d,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=m;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];if(t.attrs=n,s&&n.push([`title`,s]),r){let e=Object.create(null);e.label=r,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=h,e.posMax=f,!0}function wte(e,t){let n,r,i,a,o,s,l,u,d=``,f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(a=h+1,a=p)return!1;for(u=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?a=s.pos:d=``),u=a;a=p||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(e.env.references===void 0)return!1;if(a=0?i=e.src.slice(u,a++):a=h+1):a=h+1,i||=e.src.slice(m,h),i=_ee(i),o=e.env.references[i],!o)return e.pos=f,!1;d=o.href,l=o.title}if(!t){r=e.src.slice(m,h);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),a=[[`src`,d],[`alt`,``]];if(n.attrs=a,n.children=t,n.content=r,l&&a.push([`title`,l]),i){let e=Object.create(null);e.label=i,n.meta=e}}return e.pos=a,e.posMax=p,!0}function Tte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(bne.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(yne.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Ete(e){return/^\s]/i.test(e)}function Dte(e){return/^<\/a\s*>/i.test(e)}function Ote(e){let t=e|32;return t>=97&&t<=122}function kte(e,t){let n=e.src,r,i;if(n.startsWith(``}else if(n.startsWith(``;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(Ote(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function Ate(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=kte(e,r);else if(a===47||Ote(a)){let t=e.src.slice(r).match(pne);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),Ete(t.content)&&e.linkLevel++,Dte(t.content)&&e.linkLevel--}return e.pos=i,!0}function jte(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(xne);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Gt(t)?Kt(t):Kt(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Sne);if(r){let n=at(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Mte(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;os;l-=a[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+r,a[l]=r,n.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}function Nte(e){let t=e.tokens_meta,n=e.tokens_meta.length;Mte(e.delimiters);for(let e=0;e0&&r++,i[t].type===`text`&&t+1{ke(),Le(),ht(),Tt(),uee(),Fte=Object.defineProperty,Ite=(e,t)=>{let n={};for(var r in e)Fte(n,r,{get:e[r],enumerable:!0});return t||Fte(n,Symbol.toStringTag,{value:`Module`}),n},Lte=Ite({arrayReplaceAt:()=>fee,asciiTrim:()=>yee,callable:()=>dee,escapeHtml:()=>Yt,escapeRE:()=>hee,fromCodePoint:()=>Kt,isMdAsciiPunct:()=>$t,isPunctChar:()=>gee,isPunctCharCode:()=>Qt,isSpace:()=>Xt,isValidEntityCode:()=>Gt,isWhiteSpace:()=>Zt,lib:()=>Gte,normalizeReference:()=>_ee,unescapeAll:()=>qt,unescapeMd:()=>mee}),Rte=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,zte=RegExp(`${Rte.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Bte=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,Vte=/[&<>"]/,Hte=/[&<>"]/g,Ute={"&":`&`,"<":`<`,">":`>`,'"':`"`},Wte=/[.?*+^$[\]\\(){}|-]/g,Gte={mdurl:Oe,ucmicro:Ae},Kte=Ite({parseLinkDestination:()=>xee,parseLinkLabel:()=>bee,parseLinkTitle:()=>See}),nn=class{constructor(e,t,n){tn(this,`map`,null),tn(this,`level`,0),tn(this,`children`,null),tn(this,`content`,``),tn(this,`markup`,``),tn(this,`info`,``),tn(this,`block`,!1),tn(this,`hidden`,!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},rn=class{constructor(){tn(this,`__rules__`,[]),tn(this,`__cache__`,null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(t=>{t&&e.add(t)})}),this.__cache__=Object.create(null),this.__cache__[``]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[``].push(e.fn)}),e.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(t=>{t.enabled&&t.alt.indexOf(e)>=0&&this.__cache__[e].push(t.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!0,n.push(e)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(e=>{e.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!1,n.push(e)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},an={},an.code_inline=function(e,t,n,r,i){let a=e[t];return`${Yt(a.content)}`},an.code_block=function(e,t,n,r,i){let a=e[t];return`${Yt(e[t].content)}\n`},an.fence=function(e,t,n,r,i){let a=e[t],o=a.info?qt(a.info).trim():``,s=``,l=``;if(o){let e=o.split(/(\s+)/g);s=e[0],l=e.slice(2).join(``)}let u;if(u=n.highlight&&n.highlight(a.content,s,l)||Yt(a.content),u.indexOf(`${u}\n`}return`
${u}
\n`},an.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},an.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
-`},rn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
+`},an.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`},rn.text=function(e,t){return Xt(e[t].content)},rn.html_block=function(e,t){return e[t].content},rn.html_inline=function(e,t){return e[t].content},Jte=class{constructor(){$t(this,`rules`,Object.assign({},rn))}renderAttrs(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t=0&&e[a].hidden&&e[a].nesting===0;)a--;r.block&&r.nesting!==-1&&a>=0&&e[a].hidden&&e[a].nesting===-1&&(i+=` +`},an.text=function(e,t){return Yt(e[t].content)},an.html_block=function(e,t){return e[t].content},an.html_inline=function(e,t){return e[t].content},qte=class{constructor(){tn(this,`rules`,Object.assign({},an))}renderAttrs(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t=0&&e[a].hidden&&e[a].nesting===0;)a--;r.block&&r.nesting!==-1&&a>=0&&e[a].hidden&&e[a].nesting===-1&&(i+=` `),i+=(r.nesting===-1?` `:`>`,i}renderInline(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!Zt(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;on?i[a]=Array(e-n+1).join(` `)+this.src.slice(l,u):i[a]=this.src.slice(l,u)}return i.join(``)}},lne=65536,une=999,dne=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),fne=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,pne=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,RegExp(`^(?:${fne}|${pne}||<[?][\\s\\S]*?[?]>|]*>|)`),mne=RegExp(`^(?:${fne}|${pne})`),an=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[RegExp(`^|$))`,`i`),/^$/,!0],[RegExp(`${mne.source}\\s*$`),/^$/,!1]],on=[[`table`,qee,[`paragraph`,`reference`]],[`code`,Jee],[`fence`,Yee,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Xee,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Zee,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,tte,[`paragraph`,`reference`,`blockquote`]],[`reference`,ite],[`html_block`,ate,[`paragraph`,`reference`,`blockquote`]],[`heading`,ote,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ste],[`paragraph`,cte]],hne=class{constructor(){$t(this,`ruler`,new nn),$t(this,`State`,cne);for(let e=0;e=n||e.sCount[o]=a){e.line=n;break}let t=e.line,l=!1;for(let a=0;a=e.line)throw Error(`block rule didn't increment state.line`);break}if(!l)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a?@[]^_\`{|}~-`.split(``).forEach(function(e){_ne[e.charCodeAt(0)]=1}),vne={tokenize:vte,postProcess:bte},yne={tokenize:xte,postProcess:Cte},bne=/^([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])?)*)$/,xne=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,Sne=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Cne=/^&([a-z][a-z0-9]{1,31});/i,wne=[[`text`,ute],[`linkify`,pte],[`newline`,mte],[`escape`,hte],[`backticks`,_te],[`strikethrough`,vne.tokenize],[`emphasis`,yne.tokenize],[`link`,wte],[`image`,Tte],[`autolink`,Ete],[`html_inline`,jte],[`entity`,Mte]],Tne=[[`balance_pairs`,Pte],[`strikethrough`,vne.postProcess],[`emphasis`,yne.postProcess],[`fragments_join`,Fte]],Ene=class{constructor(){$t(this,`ruler`,new nn),$t(this,`ruler2`,new nn),$t(this,`State`,gne);for(let e=0;e=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e=0))try{t.hostname=Gt.toASCII(t.hostname)}catch{}return t.auth&&=ce(t.auth),t.hostname&&=ce(t.hostname),t.pathname&&=ce(t.pathname),t.search&&=ce(t.search),t.hash&&=ce(t.hash),de(t)}normalizeLinkText(e){let t=me(e,!0);if(t.hostname&&(!t.protocol||Ane.indexOf(t.protocol)>=0))try{t.hostname=Gt.toUnicode(t.hostname)}catch{}return ie(de(t),ie.defaultChars+`%`)}constructor(...e){$t(this,`inline`,new Ene),$t(this,`block`,new hne),$t(this,`core`,new sne),$t(this,`renderer`,new Jte),$t(this,`linkify`,new wt),$t(this,`utils`,Rte),$t(this,`helpers`,Object.assign({},qte));let[t,n]=e;typeof t==`string`?(this.configure(t),n&&this.set(n)):(this.configure(`default`),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e==`string`){let n=e;if(t=Dne[n],!t)throw Error(`Wrong 'markdown-it' preset "${n}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){[`core`,`block`,`inline`].forEach(e=>{let t=n[e]?.rules;t&&this[e].ruler.enableOnly(t)});let e=n.inline?.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}},$t(sn,`Token`,tn),$t(sn,`Ruler`,nn),$t(sn,`Renderer`,Jte),$t(sn,`ParserCore`,sne),$t(sn,`StateCore`,Yte),$t(sn,`ParserBlock`,hne),$t(sn,`StateBlock`,cne),$t(sn,`ParserInline`,Ene),$t(sn,`StateInline`,gne),jne=uee(sn)}));function Nne(e,t,n,r){var i;if(!zne){var a=`Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks`;typeof process==`object`&&process&&process.emitWarning?process.emitWarning(a):console.warn(a),zne=!0}var o=[Object.assign(new n.Token(`link_open`,`a`,1),{attrs:[].concat(t.permalinkClass?[[`class`,t.permalinkClass]]:[],[[`href`,t.permalinkHref(e,n)]],Object.entries(t.permalinkAttrs(e,n)))}),Object.assign(new n.Token(`html_block`,``,0),{content:t.permalinkSymbol,meta:un}),new n.Token(`link_close`,`a`,-1)];t.permalinkSpace&&n.tokens[r+1].children[ln[t.permalinkBefore]](Object.assign(new n.Token(`text`,``,0),{content:` `})),(i=n.tokens[r+1].children)[ln[t.permalinkBefore]].apply(i,o)}function Pne(e){return`#`+e}function Fne(e){return{}}function Ine(e){function t(n){return n=Object.assign({},t.defaults,n),function(t,r,i,a){return e(t,n,r,i,a)}}return t.defaults=Object.assign({},Bne),t.renderPermalinkImpl=e,t}function Lne(e){var t=[],n=e.filter(function(e){if(e[0]!==`class`)return!0;t.push(e[1])});return t.length>0&&n.unshift([`class`,t.join(` `)]),n}function Rne(e,t,n,r){var i=e,a=r;if(n&&Object.prototype.hasOwnProperty.call(t,i))throw Error("User defined `id` attribute `"+e+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(t,i);)i=e+`-`+a,a+=1;return t[i]=!0,i}function cn(e,t){t=Object.assign({},cn.defaults,t),e.core.ruler.push(`anchor`,function(e){e.env.markdownItAnchor||(e.env.markdownItAnchor={});for(var n,r=e.env.markdownItAnchor.slugs||(e.env.markdownItAnchor.slugs={}),i=e.tokens,a=Array.isArray(t.level)?(n=t.level,function(e){return n.includes(e)}):function(e){return function(t){return t>=e}}(t.level),o=0;o{zne=!1,ln={false:`push`,true:`unshift`,after:`push`,before:`unshift`},un={isPermalinkSymbol:!0},Bne={class:`header-anchor`,symbol:`#`,renderHref:Pne,renderAttrs:Fne},dn=Ine(function(e,t,n,r,i){var a,o=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Lne([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],t.ariaHidden?[[`aria-hidden`,`true`]]:[],Object.entries(t.renderAttrs(e,r))))}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:un}),new r.Token(`link_close`,`a`,-1)];if(t.space){var s=typeof t.space==`string`?t.space:` `;r.tokens[i+1].children[ln[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:s}))}(a=r.tokens[i+1].children)[ln[t.placement]].apply(a,o)}),Object.assign(dn.defaults,{space:!0,placement:`after`,ariaHidden:!1}),fn=Ine(dn.renderPermalinkImpl),fn.defaults=Object.assign({},dn.defaults,{ariaHidden:!0}),Vne=Ine(function(e,t,n,r,i){var a=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Lne([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],Object.entries(t.renderAttrs(e,r))))})].concat(t.safariReaderFix?[new r.Token(`span_open`,`span`,1)]:[],r.tokens[i+1].children,t.safariReaderFix?[new r.Token(`span_close`,`span`,-1)]:[],[new r.Token(`link_close`,`a`,-1)]);r.tokens[i+1].children=a}),Object.assign(Vne.defaults,{safariReaderFix:!1}),Hne=Ine(function(e,t,n,r,i){var a;if(![`visually-hidden`,`aria-label`,`aria-describedby`,`aria-labelledby`].includes(t.style))throw Error("`permalink.linkAfterHeader` called with unknown style option `"+t.style+"`");if(![`aria-describedby`,`aria-labelledby`].includes(t.style)&&!t.assistiveText)throw Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+t.style+"` style");if(t.style===`visually-hidden`&&!t.visuallyHiddenClass)throw Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(e){return e.type===`text`||e.type===`code_inline`}).reduce(function(e,t){return e+t.content},``),s=[],l=[];if(t.class&&l.push([`class`,t.class]),l.push([`href`,t.renderHref(e,r)]),l.push.apply(l,Object.entries(t.renderAttrs(e,r))),t.style===`visually-hidden`){if(s.push(Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`class`,t.visuallyHiddenClass]]}),Object.assign(new r.Token(`text`,``,0),{content:t.assistiveText(o)}),new r.Token(`span_close`,`span`,-1)),t.space){var u=typeof t.space==`string`?t.space:` `;s[ln[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:u}))}s[ln[t.placement]](Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`aria-hidden`,`true`]]}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:un}),new r.Token(`span_close`,`span`,-1))}else s.push(Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:un}));t.style===`aria-label`?l.push([`aria-label`,t.assistiveText(o)]):[`aria-describedby`,`aria-labelledby`].includes(t.style)&&l.push([t.style,e]);var d=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Lne(l)})].concat(s,[new r.Token(`link_close`,`a`,-1)]);(a=r.tokens).splice.apply(a,[i+3,0].concat(d)),t.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[0]+` +`}return r}render(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!Xt(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;on?i[a]=Array(e-n+1).join(` `)+this.src.slice(l,u):i[a]=this.src.slice(l,u)}return i.join(``)}},cne=65536,lne=999,une=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),dne=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,fne=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,RegExp(`^(?:${dne}|${fne}||<[?][\\s\\S]*?[?]>|]*>|)`),pne=RegExp(`^(?:${dne}|${fne})`),on=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[RegExp(`^|$))`,`i`),/^$/,!0],[RegExp(`${pne.source}\\s*$`),/^$/,!1]],sn=[[`table`,Gee,[`paragraph`,`reference`]],[`code`,Kee],[`fence`,qee,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Jee,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Yee,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,$ee,[`paragraph`,`reference`,`blockquote`]],[`reference`,rte],[`html_block`,ite,[`paragraph`,`reference`,`blockquote`]],[`heading`,ate,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ote],[`paragraph`,ste]],mne=class{constructor(){tn(this,`ruler`,new rn),tn(this,`State`,sne);for(let e=0;e=n||e.sCount[o]=a){e.line=n;break}let t=e.line,l=!1;for(let a=0;a=e.line)throw Error(`block rule didn't increment state.line`);break}if(!l)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a?@[]^_\`{|}~-`.split(``).forEach(function(e){gne[e.charCodeAt(0)]=1}),_ne={tokenize:_te,postProcess:yte},vne={tokenize:bte,postProcess:Ste},yne=/^([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])?)*)$/,bne=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,xne=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Sne=/^&([a-z][a-z0-9]{1,31});/i,Cne=[[`text`,lte],[`linkify`,fte],[`newline`,pte],[`escape`,mte],[`backticks`,gte],[`strikethrough`,_ne.tokenize],[`emphasis`,vne.tokenize],[`link`,Cte],[`image`,wte],[`autolink`,Tte],[`html_inline`,Ate],[`entity`,jte]],wne=[[`balance_pairs`,Nte],[`strikethrough`,_ne.postProcess],[`emphasis`,vne.postProcess],[`fragments_join`,Pte]],Tne=class{constructor(){tn(this,`ruler`,new rn),tn(this,`ruler2`,new rn),tn(this,`State`,hne);for(let e=0;e=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e=0))try{t.hostname=Wt.toASCII(t.hostname)}catch{}return t.auth&&=ce(t.auth),t.hostname&&=ce(t.hostname),t.pathname&&=ce(t.pathname),t.search&&=ce(t.search),t.hash&&=ce(t.hash),de(t)}normalizeLinkText(e){let t=me(e,!0);if(t.hostname&&(!t.protocol||kne.indexOf(t.protocol)>=0))try{t.hostname=Wt.toUnicode(t.hostname)}catch{}return ie(de(t),ie.defaultChars+`%`)}constructor(...e){tn(this,`inline`,new Tne),tn(this,`block`,new mne),tn(this,`core`,new one),tn(this,`renderer`,new qte),tn(this,`linkify`,new wt),tn(this,`utils`,Lte),tn(this,`helpers`,Object.assign({},Kte));let[t,n]=e;typeof t==`string`?(this.configure(t),n&&this.set(n)):(this.configure(`default`),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e==`string`){let n=e;if(t=Ene[n],!t)throw Error(`Wrong 'markdown-it' preset "${n}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){[`core`,`block`,`inline`].forEach(e=>{let t=n[e]?.rules;t&&this[e].ruler.enableOnly(t)});let e=n.inline?.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}},tn(cn,`Token`,nn),tn(cn,`Ruler`,rn),tn(cn,`Renderer`,qte),tn(cn,`ParserCore`,one),tn(cn,`StateCore`,Jte),tn(cn,`ParserBlock`,mne),tn(cn,`StateBlock`,sne),tn(cn,`ParserInline`,Tne),tn(cn,`StateInline`,hne),Ane=dee(cn)}));function Mne(e,t,n,r){var i;if(!Rne){var a=`Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks`;typeof process==`object`&&process&&process.emitWarning?process.emitWarning(a):console.warn(a),Rne=!0}var o=[Object.assign(new n.Token(`link_open`,`a`,1),{attrs:[].concat(t.permalinkClass?[[`class`,t.permalinkClass]]:[],[[`href`,t.permalinkHref(e,n)]],Object.entries(t.permalinkAttrs(e,n)))}),Object.assign(new n.Token(`html_block`,``,0),{content:t.permalinkSymbol,meta:dn}),new n.Token(`link_close`,`a`,-1)];t.permalinkSpace&&n.tokens[r+1].children[un[t.permalinkBefore]](Object.assign(new n.Token(`text`,``,0),{content:` `})),(i=n.tokens[r+1].children)[un[t.permalinkBefore]].apply(i,o)}function Nne(e){return`#`+e}function Pne(e){return{}}function Fne(e){function t(n){return n=Object.assign({},t.defaults,n),function(t,r,i,a){return e(t,n,r,i,a)}}return t.defaults=Object.assign({},zne),t.renderPermalinkImpl=e,t}function Ine(e){var t=[],n=e.filter(function(e){if(e[0]!==`class`)return!0;t.push(e[1])});return t.length>0&&n.unshift([`class`,t.join(` `)]),n}function Lne(e,t,n,r){var i=e,a=r;if(n&&Object.prototype.hasOwnProperty.call(t,i))throw Error("User defined `id` attribute `"+e+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(t,i);)i=e+`-`+a,a+=1;return t[i]=!0,i}function ln(e,t){t=Object.assign({},ln.defaults,t),e.core.ruler.push(`anchor`,function(e){e.env.markdownItAnchor||(e.env.markdownItAnchor={});for(var n,r=e.env.markdownItAnchor.slugs||(e.env.markdownItAnchor.slugs={}),i=e.tokens,a=Array.isArray(t.level)?(n=t.level,function(e){return n.includes(e)}):function(e){return function(t){return t>=e}}(t.level),o=0;o{Rne=!1,un={false:`push`,true:`unshift`,after:`push`,before:`unshift`},dn={isPermalinkSymbol:!0},zne={class:`header-anchor`,symbol:`#`,renderHref:Nne,renderAttrs:Pne},fn=Fne(function(e,t,n,r,i){var a,o=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Ine([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],t.ariaHidden?[[`aria-hidden`,`true`]]:[],Object.entries(t.renderAttrs(e,r))))}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:dn}),new r.Token(`link_close`,`a`,-1)];if(t.space){var s=typeof t.space==`string`?t.space:` `;r.tokens[i+1].children[un[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:s}))}(a=r.tokens[i+1].children)[un[t.placement]].apply(a,o)}),Object.assign(fn.defaults,{space:!0,placement:`after`,ariaHidden:!1}),pn=Fne(fn.renderPermalinkImpl),pn.defaults=Object.assign({},fn.defaults,{ariaHidden:!0}),Bne=Fne(function(e,t,n,r,i){var a=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Ine([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],Object.entries(t.renderAttrs(e,r))))})].concat(t.safariReaderFix?[new r.Token(`span_open`,`span`,1)]:[],r.tokens[i+1].children,t.safariReaderFix?[new r.Token(`span_close`,`span`,-1)]:[],[new r.Token(`link_close`,`a`,-1)]);r.tokens[i+1].children=a}),Object.assign(Bne.defaults,{safariReaderFix:!1}),Vne=Fne(function(e,t,n,r,i){var a;if(![`visually-hidden`,`aria-label`,`aria-describedby`,`aria-labelledby`].includes(t.style))throw Error("`permalink.linkAfterHeader` called with unknown style option `"+t.style+"`");if(![`aria-describedby`,`aria-labelledby`].includes(t.style)&&!t.assistiveText)throw Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+t.style+"` style");if(t.style===`visually-hidden`&&!t.visuallyHiddenClass)throw Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(e){return e.type===`text`||e.type===`code_inline`}).reduce(function(e,t){return e+t.content},``),s=[],l=[];if(t.class&&l.push([`class`,t.class]),l.push([`href`,t.renderHref(e,r)]),l.push.apply(l,Object.entries(t.renderAttrs(e,r))),t.style===`visually-hidden`){if(s.push(Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`class`,t.visuallyHiddenClass]]}),Object.assign(new r.Token(`text`,``,0),{content:t.assistiveText(o)}),new r.Token(`span_close`,`span`,-1)),t.space){var u=typeof t.space==`string`?t.space:` `;s[un[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:u}))}s[un[t.placement]](Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`aria-hidden`,`true`]]}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:dn}),new r.Token(`span_close`,`span`,-1))}else s.push(Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:dn}));t.style===`aria-label`?l.push([`aria-label`,t.assistiveText(o)]):[`aria-describedby`,`aria-labelledby`].includes(t.style)&&l.push([t.style,e]);var d=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Ine(l)})].concat(s,[new r.Token(`link_close`,`a`,-1)]);(a=r.tokens).splice.apply(a,[i+3,0].concat(d)),t.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[0]+` `})),r.tokens.splice(i+3+d.length+1,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[1]+` -`})))}),Object.assign(Hne.defaults,{style:`visually-hidden`,space:!0,placement:`after`,wrapper:null}),cn.permalink={__proto__:null,legacy:Nne,renderHref:Pne,renderAttrs:Fne,makePermalink:Ine,linkInsideHeader:dn,ariaHidden:fn,headerLink:Vne,linkAfterHeader:Hne},cn.defaults={level:1,slugify:function(e){return encodeURIComponent(String(e).trim().toLowerCase().replace(/\s+/g,`-`))},uniqueSlugStartIndex:1,tabIndex:`-1`,getTokensText:function(e){return e.filter(function(e){return[`text`,`code_inline`].includes(e.type)}).map(function(e){return e.content}).join(``)},failOnNonUnique:!0,permalink:!1,renderPermalink:Nne,permalinkClass:fn.defaults.class,permalinkSpace:fn.defaults.space,permalinkSymbol:`¶`,permalinkBefore:fn.defaults.placement===`before`,permalinkHref:fn.defaults.renderHref,permalinkAttrs:fn.defaults.renderAttrs},cn.default=cn})),Wne=s(((e,t)=>{function n(e,t){var n,r,i=e.attrs[e.attrIndex(`href`)][1];for(n=0;n0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function qne(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i),o=i.rules.footnote_caption(e,t,n,r,i),s=a;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`${o}`}function Jne(e,t,n){return(n.xhtmlOut?`
+`})))}),Object.assign(Vne.defaults,{style:`visually-hidden`,space:!0,placement:`after`,wrapper:null}),ln.permalink={__proto__:null,legacy:Mne,renderHref:Nne,renderAttrs:Pne,makePermalink:Fne,linkInsideHeader:fn,ariaHidden:pn,headerLink:Bne,linkAfterHeader:Vne},ln.defaults={level:1,slugify:function(e){return encodeURIComponent(String(e).trim().toLowerCase().replace(/\s+/g,`-`))},uniqueSlugStartIndex:1,tabIndex:`-1`,getTokensText:function(e){return e.filter(function(e){return[`text`,`code_inline`].includes(e.type)}).map(function(e){return e.content}).join(``)},failOnNonUnique:!0,permalink:!1,renderPermalink:Mne,permalinkClass:pn.defaults.class,permalinkSpace:pn.defaults.space,permalinkSymbol:`¶`,permalinkBefore:pn.defaults.placement===`before`,permalinkHref:pn.defaults.renderHref,permalinkAttrs:pn.defaults.renderAttrs},ln.default=ln})),Une=s(((e,t)=>{function n(e,t){var n,r,i=e.attrs[e.attrIndex(`href`)][1];for(n=0;n0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function Kne(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i),o=i.rules.footnote_caption(e,t,n,r,i),s=a;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`${o}`}function qne(e,t,n){return(n.xhtmlOut?`
`:`
`)+`
    -`}function Yne(){return`
+`}function Jne(){return`
-`}function Xne(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`
  • `}function Zne(){return`
  • -`}function Qne(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),` \u21a9\uFE0E`}function $ne(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=qne,e.renderer.rules.footnote_block_open=Jne,e.renderer.rules.footnote_block_close=Yne,e.renderer.rules.footnote_open=Xne,e.renderer.rules.footnote_close=Zne,e.renderer.rules.footnote_anchor=Qne,e.renderer.rules.footnote_caption=Kne,e.renderer.rules.footnote_anchor_name=Gne;function r(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+4>o||e.src.charCodeAt(a)!==91||e.src.charCodeAt(a+1)!==94)return!1;let s;for(s=a+2;s=o||e.src.charCodeAt(++s)!==58)return!1;if(i)return!0;s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});let l=e.src.slice(a+2,s-2);e.env.footnotes.refs[`:${l}`]=-1;let u=new e.Token(`footnote_reference_open`,``,1);u.meta={label:l},u.level=e.level++,e.tokens.push(u);let d=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],m=e.parentType,h=s,g=e.sCount[t]+s-(e.bMarks[t]+e.tShift[t]),_=g;for(;s=r||e.src.charCodeAt(i)!==94||e.src.charCodeAt(i+1)!==91)return!1;let a=i+2,o=t(e,i+1);if(o<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);let t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(a,o),e.md,e.env,n);let r=e.push(`footnote_ref`,``,0);r.meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(a,o),tokens:n}}return e.pos=o+1,e.posMax=r,!0}function a(e,t){let n=e.posMax,r=e.pos;if(r+3>n||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(r)!==91||e.src.charCodeAt(r+1)!==94)return!1;let i;for(i=r+2;i=n)return!1;i++;let a=e.src.slice(r+2,i-1);if(e.env.footnotes.refs[`:${a}`]===void 0)return!1;if(!t){e.env.footnotes.list||(e.env.footnotes.list=[]);let t;e.env.footnotes.refs[`:${a}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:a,count:0},e.env.footnotes.refs[`:${a}`]=t):t=e.env.footnotes.refs[`:${a}`];let n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++;let r=e.push(`footnote_ref`,``,0);r.meta={id:t,subId:n,label:a}}return e.pos=i,e.posMax=n,!0}function o(e){let t,n,r,i=!1,a={};if(!e.env.footnotes||(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(i=!0,n=[],r=e.meta.label,!1):e.type===`footnote_reference_close`?(i=!1,a[`:`+r]=n,!1):(i&&n.push(e),!i)}),!e.env.footnotes.list))return;let o=e.env.footnotes.list;e.tokens.push(new e.Token(`footnote_block_open`,``,1));for(let n=0,r=o.length;n0?o[n].count:1;for(let t=0;t{})),tre=s(((e,t)=>{var n=!0,r=!1,i=!1;t.exports=function(e,t){t&&(n=!t.enabled,r=!!t.label,i=!!t.labelAfter),e.core.ruler.after(`inline`,`github-task-lists`,function(e){for(var t=e.tokens,r=2;r=0;r--)if(e[r].level===n)return r;return-1}function s(e,t){return m(e[t])&&h(e[t-1])&&g(e[t-2])&&_(e[t])}function l(e,t){if(e.children.unshift(u(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r){if(i){e.children.pop();var n=`task-item-`+Math.ceil(Math.random()*1e7-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+` id="`+n+`">`,e.children.push(p(e.content,n,t))}else e.children.unshift(d(t)),e.children.push(f(t))}}function u(e,t){var r=new t(`html_inline`,``,0),i=n?` disabled="" `:``;return e.content.indexOf(`[ ] `)===0?r.content=``:(e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0)&&(r.content=``),r}function d(e){var t=new e(`html_inline`,``,0);return t.content=``,t}function p(e,t,n){var r=new n(`html_inline`,``,0);return r.content=``,r.attrs=[{for:t}],r}function m(e){return e.type===`inline`}function h(e){return e.type===`paragraph_open`}function g(e){return e.type===`list_item_open`}function _(e){return e.content.indexOf(`[ ] `)===0||e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0}}));function nre(e){return e.charAt(0).toUpperCase()+e.slice(1)}var rre,ire,are=o((()=>{rre={note:``,tip:``,important:``,warning:``,caution:``},ire=(e,t={})=>{let{markers:n=[`TIP`,`NOTE`,`IMPORTANT`,`WARNING`,`CAUTION`],icons:r=rre,matchCaseSensitive:i=!1,titles:a={},classPrefix:o=`markdown-alert`}=t,s=n===`*`?`\\w+`:n.join(`|`),l=RegExp(`^\\\\?\\[\\!(${s})\\]([^\\n\\r]*)`,i?``:`i`);e.core.ruler.after(`block`,`github-alerts`,e=>{let t=e.tokens;for(let e=0;ee.type===`inline`);if(!u)continue;let d=u.content.match(l);if(!d)continue;let f=d[1].toLowerCase(),p=d[2].trim()||(a[f]??nre(f)),m=r[f]??``;u.content=u.content.slice(d[0].length).trimStart(),n.type=`alert_open`,n.tag=`div`,n.meta={title:p,type:f,icon:m},o.type=`alert_close`,o.tag=`div`}}),e.renderer.rules.alert_open=function(e,t){let{title:n,type:r,icon:i}=e[t].meta;return`

    ${i}${n}

    `}}}));function pn(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function ore(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function sre(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function cre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function lre(e,t){if(t){if(!cae.test(e))return An}else if(!sae.test(e))return An;let n=cre(e);return Number.isFinite(n)?n:An}function ure(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function dre(e,t){if(t){if(!dae.test(e))return An}else if(!uae.test(e))return An;let n=ure(e);return Number.isFinite(n)?n:An}function fre(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function pre(e){if(!pae.test(e))return An;let t=fre(e);return Number.isFinite(t)?t:An}function mre(e){if(!hae.test(e))return An;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||gae.test(e)?r:An}function hre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function gre(e,t){if(t){if(!yae.test(e))return An;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:An}if(!vae.test(e))return An;let n=Number(e);return Number.isFinite(n)?n:An}function _re(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function vre(e){if(!xae.test(e))return An;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Sae.test(e)?r:An}function yre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function bre(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!Tae.test(t))return An;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e23||o>59||s>59)return An;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;l=+e}let u=Sre(n,r,i,a,o,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return An;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return An;let r=(e*60+n)*6e4;u.setTime(u.getTime()-(t[9]===`-`?-r:r))}return u}function wre(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Tre(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function Ere(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Dre(){return{scalar:[],sequence:[],mapping:[]}}function Ore(e){let t=[];for(let n of e){let e=t.length;for(let r=0;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function jre(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function Mre(e,t){if(!e.buffer)return null;let n={...Rae,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l=``,u=Math.min(e.line+n.linesAfter,a.length).toString().length,d=n.maxLength-(n.indent+u+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=Are(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),d);l=`${` `.repeat(n.indent)}${jre((e.line-t+1).toString(),u)} | ${r.str}\n${l}`}let f=Are(e.buffer,i[s],a[s],e.position,d);l+=`${` `.repeat(n.indent)}${jre((e.line+1).toString(),u)} | ${f.str}\n`,l+=`${`-`.repeat(n.indent+u+3+f.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=Are(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),d);l+=`${` `.repeat(n.indent)}${jre((e.line+t+1).toString(),u)} | ${r.str}\n`}return l.replace(/\n$/,``)}function Nre(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}function Pre(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` -`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function Fre(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Ire(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Lre(e){return e===120?2:e===117?4:8}function Rre(e,t,n){let r=0;for(;t0;n--){i++;let t=Ire(e.charCodeAt(i));a=(a<<4)+t}r+=Fre(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=Rre(e,i,n);r+=zre(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Ure(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,` +`}function Yne(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`
  • `}function Xne(){return`
  • +`}function Zne(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),` \u21a9\uFE0E`}function Qne(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=Kne,e.renderer.rules.footnote_block_open=qne,e.renderer.rules.footnote_block_close=Jne,e.renderer.rules.footnote_open=Yne,e.renderer.rules.footnote_close=Xne,e.renderer.rules.footnote_anchor=Zne,e.renderer.rules.footnote_caption=Gne,e.renderer.rules.footnote_anchor_name=Wne;function r(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+4>o||e.src.charCodeAt(a)!==91||e.src.charCodeAt(a+1)!==94)return!1;let s;for(s=a+2;s=o||e.src.charCodeAt(++s)!==58)return!1;if(i)return!0;s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});let l=e.src.slice(a+2,s-2);e.env.footnotes.refs[`:${l}`]=-1;let u=new e.Token(`footnote_reference_open`,``,1);u.meta={label:l},u.level=e.level++,e.tokens.push(u);let d=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],m=e.parentType,h=s,g=e.sCount[t]+s-(e.bMarks[t]+e.tShift[t]),_=g;for(;s=r||e.src.charCodeAt(i)!==94||e.src.charCodeAt(i+1)!==91)return!1;let a=i+2,o=t(e,i+1);if(o<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);let t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(a,o),e.md,e.env,n);let r=e.push(`footnote_ref`,``,0);r.meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(a,o),tokens:n}}return e.pos=o+1,e.posMax=r,!0}function a(e,t){let n=e.posMax,r=e.pos;if(r+3>n||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(r)!==91||e.src.charCodeAt(r+1)!==94)return!1;let i;for(i=r+2;i=n)return!1;i++;let a=e.src.slice(r+2,i-1);if(e.env.footnotes.refs[`:${a}`]===void 0)return!1;if(!t){e.env.footnotes.list||(e.env.footnotes.list=[]);let t;e.env.footnotes.refs[`:${a}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:a,count:0},e.env.footnotes.refs[`:${a}`]=t):t=e.env.footnotes.refs[`:${a}`];let n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++;let r=e.push(`footnote_ref`,``,0);r.meta={id:t,subId:n,label:a}}return e.pos=i,e.posMax=n,!0}function o(e){let t,n,r,i=!1,a={};if(!e.env.footnotes||(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(i=!0,n=[],r=e.meta.label,!1):e.type===`footnote_reference_close`?(i=!1,a[`:`+r]=n,!1):(i&&n.push(e),!i)}),!e.env.footnotes.list))return;let o=e.env.footnotes.list;e.tokens.push(new e.Token(`footnote_block_open`,``,1));for(let n=0,r=o.length;n0?o[n].count:1;for(let t=0;t{})),ere=s(((e,t)=>{var n=!0,r=!1,i=!1;t.exports=function(e,t){t&&(n=!t.enabled,r=!!t.label,i=!!t.labelAfter),e.core.ruler.after(`inline`,`github-task-lists`,function(e){for(var t=e.tokens,r=2;r=0;r--)if(e[r].level===n)return r;return-1}function s(e,t){return m(e[t])&&h(e[t-1])&&g(e[t-2])&&_(e[t])}function l(e,t){if(e.children.unshift(u(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r){if(i){e.children.pop();var n=`task-item-`+Math.ceil(Math.random()*1e7-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+` id="`+n+`">`,e.children.push(p(e.content,n,t))}else e.children.unshift(d(t)),e.children.push(f(t))}}function u(e,t){var r=new t(`html_inline`,``,0),i=n?` disabled="" `:``;return e.content.indexOf(`[ ] `)===0?r.content=``:(e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0)&&(r.content=``),r}function d(e){var t=new e(`html_inline`,``,0);return t.content=``,t}function p(e,t,n){var r=new n(`html_inline`,``,0);return r.content=``,r.attrs=[{for:t}],r}function m(e){return e.type===`inline`}function h(e){return e.type===`paragraph_open`}function g(e){return e.type===`list_item_open`}function _(e){return e.content.indexOf(`[ ] `)===0||e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0}}));function tre(e){return e.charAt(0).toUpperCase()+e.slice(1)}var nre,rre,ire=o((()=>{nre={note:``,tip:``,important:``,warning:``,caution:``},rre=(e,t={})=>{let{markers:n=[`TIP`,`NOTE`,`IMPORTANT`,`WARNING`,`CAUTION`],icons:r=nre,matchCaseSensitive:i=!1,titles:a={},classPrefix:o=`markdown-alert`}=t,s=n===`*`?`\\w+`:n.join(`|`),l=RegExp(`^\\\\?\\[\\!(${s})\\]([^\\n\\r]*)`,i?``:`i`);e.core.ruler.after(`block`,`github-alerts`,e=>{let t=e.tokens;for(let e=0;ee.type===`inline`);if(!u)continue;let d=u.content.match(l);if(!d)continue;let f=d[1].toLowerCase(),p=d[2].trim()||(a[f]??tre(f)),m=r[f]??``;u.content=u.content.slice(d[0].length).trimStart(),n.type=`alert_open`,n.tag=`div`,n.meta={title:p,type:f,icon:m},o.type=`alert_close`,o.tag=`div`}}),e.renderer.rules.alert_open=function(e,t){let{title:n,type:r,icon:i}=e[t].meta;return`

    ${i}${n}

    `}}}));function mn(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function are(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function ore(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function sre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function cre(e,t){if(t){if(!sae.test(e))return jn}else if(!oae.test(e))return jn;let n=sre(e);return Number.isFinite(n)?n:jn}function lre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ure(e,t){if(t){if(!uae.test(e))return jn}else if(!lae.test(e))return jn;let n=lre(e);return Number.isFinite(n)?n:jn}function dre(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function fre(e){if(!fae.test(e))return jn;let t=dre(e);return Number.isFinite(t)?t:jn}function pre(e){if(!mae.test(e))return jn;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||hae.test(e)?r:jn}function mre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function hre(e,t){if(t){if(!vae.test(e))return jn;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:jn}if(!_ae.test(e))return jn;let n=Number(e);return Number.isFinite(n)?n:jn}function gre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function _re(e){if(!bae.test(e))return jn;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||xae.test(e)?r:jn}function vre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function yre(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!wae.test(t))return jn;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e23||o>59||s>59)return jn;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;l=+e}let u=xre(n,r,i,a,o,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return jn;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return jn;let r=(e*60+n)*6e4;u.setTime(u.getTime()-(t[9]===`-`?-r:r))}return u}function Cre(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function wre(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function Tre(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Ere(){return{scalar:[],sequence:[],mapping:[]}}function Dre(e){let t=[];for(let n of e){let e=t.length;for(let r=0;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function Are(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function jre(e,t){if(!e.buffer)return null;let n={...Lae,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l=``,u=Math.min(e.line+n.linesAfter,a.length).toString().length,d=n.maxLength-(n.indent+u+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=kre(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),d);l=`${` `.repeat(n.indent)}${Are((e.line-t+1).toString(),u)} | ${r.str}\n${l}`}let f=kre(e.buffer,i[s],a[s],e.position,d);l+=`${` `.repeat(n.indent)}${Are((e.line+1).toString(),u)} | ${f.str}\n`,l+=`${`-`.repeat(n.indent+u+3+f.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=kre(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),d);l+=`${` `.repeat(n.indent)}${Are((e.line+t+1).toString(),u)} | ${r.str}\n`}return l.replace(/\n$/,``)}function Mre(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}function Nre(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` +`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function Pre(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Fre(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Ire(e){return e===120?2:e===117?4:8}function Lre(e,t,n){let r=0;for(;t0;n--){i++;let t=Fre(e.charCodeAt(i));a=(a<<4)+t}r+=Pre(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=Lre(e,i,n);r+=Rre(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Hre(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,` `),l=s===``?[]:(s.endsWith(` `)?s.slice(0,-1):s).split(` `),u=``,d=!1,f=0,p=!1;for(let e of l){let t=0;for(;t=e.length){f++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(p=!0,u+=` `.repeat(d?1+f:f)):p?(p=!1,u+=` `.repeat(f+1)):f===0?d&&(u+=` `):u+=` `.repeat(f):u+=` -`.repeat(d?1+f:f),u+=n,d=!0,f=0}return i===In.KEEP?u+=` -`.repeat(d?1+f:f):i!==In.STRIP&&d&&(u+=` -`),u}function Wre(e,t){if(t.valueStart===zae)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case Pn.SINGLE_QUOTED:return Vre(e,n,r);case Pn.DOUBLE_QUOTED:return Hre(e,n,r);case Pn.LITERAL_BLOCK:return Ure(e,n,r,t.indent,t.chomping,!1);case Pn.FOLDED_BLOCK:return Ure(e,n,r,t.indent,t.chomping,!0);default:return Bre(e,n,r)}}function Gre(e){let t=``,n=0;for(;n=192){let t=r<224?1:r<240?2:3;for(r&=(1<<6-t)-1;t-->0;)r=r<<6|parseInt(e.slice(n+1,n+3),16)&63,n+=3}r<65536?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023))}return t}function Kre(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return Gre(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1);return Gre(t?.[r]??Hae[r]??r)+Gre(e.slice(r.length))}function qre(e){return`tagStart`in e&&e.tagStart!==Ln?e.tagStart:`anchorStart`in e&&e.anchorStart!==Ln?e.anchorStart:`valueStart`in e&&e.valueStart!==Ln?e.valueStart:`start`in e?e.start:0}function mn(e,t){Mn.throwAt(e.source,e.position,t,e.filename)}function Jre(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof Mn)throw n;Mn.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function Yre(e,t){let n=Wre(e.source,t),r=t.tagStart===Ln?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=Kre(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===An&&mn(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&mn(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:Jre(e,e.position,o,r),tag:o}}mn(e,`unknown scalar tag !<${t}>`)}return t.style===Pn.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function Xre(e,t,n){let r=t.tagStart===Ln?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:Kre(r,e.tagHandlers)}function Zre(e){return e.nodeKind===`mapping`}function Qre(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&mn(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function $re(e,t,n,r){Qre(e);for(let i of r.keys(n)){if(Qre(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&mn(e,a),t.overridable??=new Set,t.overridable.add(i)}}function eie(e,t,n,r){if(e.position=t.keyPosition,Zre(r))$re(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&mn(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||mn(e,`cannot merge mappings; the provided source object is unacceptable`),$re(e,t,r,n)}}else mn(e,`cannot merge mappings; the provided source object is unacceptable`)}function tie(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){eie(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&mn(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&mn(e,a),t.overridable?.delete(n)}function nie(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){Zre(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&mn(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,tie(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Wae}function rie(e,t,n,r,i){if(t.anchorStart!==Ln){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function iie(e,t){let n={...Gae,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex`);let i=r.create(t),a=rie(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case Nn.MAPPING:{let t=Xre(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||mn(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=rie(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Nn.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&mn(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||mn(n,`unidentified alias "${t}"`),r.isValueFinal||mn(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),nie(n,r.value,r.tag);break}case Nn.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,mn(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:Jre(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),nie(n,t,e.tag)}break}}}return n.documents}function aie(e,t,n){e.events.push({type:Nn.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function oie(e,t,n,r,i,a,o){e.events.push({type:Nn.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function sie(e,t,n,r,i,a,o){e.events.push({type:Nn.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function cie(e,t){e.events.splice(t.eventsLength,0,{type:Nn.MAPPING,start:t.position,anchorStart:Rn,anchorEnd:Rn,tagStart:Rn,tagEnd:Rn,style:Fn.FLOW})}function hn(e,t,n,r,i,a,o,s,l=In.CLIP,u=-1,d=!1){e.events.push({type:Nn.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:l,indent:u,fast:d})}function lie(e,t,n){e.events.push({type:Nn.ALIAS,anchorStart:t,anchorEnd:n})}function gn(e){e.events.push({type:Nn.POP})}function _n(e){hn(e,Rn,Rn,Rn,Rn,Rn,Rn,Pn.PLAIN)}function uie(){return{anchorStart:Rn,anchorEnd:Rn,tagStart:Rn,tagEnd:Rn}}function vn(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function yn(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function bn(e,t){Mn.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function xn(e){return e===10||e===13}function Sn(e){return e===9||e===32}function Cn(e){return Sn(e)||xn(e)}function wn(e){return e===0||Cn(e)}function Tn(e){return e===44||e===91||e===93||e===123||e===125}function die(e){return e>=48&&e<=57?e-48:-1}function fie(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function pie(e){return e===120?2:e===117?4:e===85?8:0}function mie(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function hie(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function En(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Cn(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Sn(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!xn(r)&&r!==0);if(!xn(r))break;for(hie(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Dn(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||Cn(n)}return!1}function gie(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function _ie(e){if(e.position!==e.lineStart)return!1;if(Dn(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=vn(e);gie(e),En(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&Dn(e));return yn(e,t),r}function vie(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!xn(t);)t=e.input.charCodeAt(++e.position)}function yie(e,t,n){let r=Yae.exec(e.input.slice(t,n));r!==null&&(e.position=t+r.index+r[0].length-1,bn(e,`the stream contains non-printable characters`))}function bie(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Rn&&bn(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let l=e.position,u;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&bn(e,`unexpected end of the stream within a verbatim tag`),u=e.input.slice(l,e.position),e.position++}else{for(;s!==0&&!Cn(s)&&!(n&&Tn(s));)s===33&&(a?bn(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(l-1,e.position+1),Xae.test(o)||bn(e,`named tag handle cannot contain such characters`),a=!0,l=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(l,e.position),Vn.test(u)&&bn(e,`tag suffix cannot contain flow indicator characters`)}return u&&!(i?$ae.test(u):eoe.test(u))&&bn(e,`tag name cannot contain such characters: ${u}`),!i&&o!==`!`&&o!==`!!`&&!Kae.call(e.tagHandlers,o)&&bn(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function xie(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Rn&&bn(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Cn(e.input.charCodeAt(e.position))&&!Tn(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&bn(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function Sie(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Rn||t.tagStart!==Rn)&&bn(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Cn(e.input.charCodeAt(e.position))&&!Tn(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&bn(e,`name of an alias node must contain at least one character`),lie(e,n,e.position),!0}function Cie(e,t){En(e,!1),e.lineIndent0;)e.position++,fie(e.input.charCodeAt(e.position))<0&&bn(e,`expected hexadecimal character`);e.position++}}else xn(a)?(i=!1,Cie(e,t)):e.position===e.lineStart&&Dn(e)?bn(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?bn(e,`expected valid JSON character`):e.position++}bn(e,`unexpected end of the stream within a double quoted scalar`)}function Eie(e,t,n){let r=e.input.charCodeAt(e.position),i=In.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?Pn.LITERAL_BLOCK:Pn.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=die(n);if(n===43||n===45)i!==In.CLIP&&bn(e,`repeat of a chomping mode identifier`),i=n===43?In.KEEP:In.STRIP,e.position++;else if(r>=0)r===0&&bn(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&bn(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let l=!1;for(;Sn(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&vie(e),xn(e.input.charCodeAt(e.position))?hie(e):e.input.charCodeAt(e.position)!==0&&bn(e,`a line break is expected`);let u=o?a:-1,d=0,f=e.position,p=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){u>=0?r>u&&(p=n+r):r>0&&(p=n+r);break}if(_ie(e))break;if(!o&&u===-1&&xn(i)&&(d=Math.max(d,r)),!o&&u===-1&&!xn(i)&&(i===9&&r=t&&r=t){l=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}Sn(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(yie(e,i,a),hn(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Pn.PLAIN,In.CLIP,-1,!l),!0)}function On(e,t){let n=e.line;En(e,!0),(e.line>n&&e.lineIndent0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&wn(e.input.charCodeAt(e.position+1))&&bn(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?_n(e):kn(e,t,Jae,!1,!0),En(e,!0),e.lineIndent=e.length)break;e.lineIndent>t&&bn(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&wn(e.input.charCodeAt(e.position+1))&&bn(e,`bad indentation of a sequence entry`)}return gn(e),!0}function jie(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,bn(e,`tab characters must not be used in indentation`));let u=e.input.charCodeAt(e.position+1),d=e.line;if((l===63||l===58)&&wn(u))o||=(sie(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Fn.BLOCK),!0),l===63?(i&&_n(e),a=!0,i=!0):i?i=!1:(_n(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(_n(e),!1);let t=vn(e);if(!kn(e,n,qae,!1,!0))break;if(e.line===d){for(l=e.input.charCodeAt(e.position);Sn(l);)l=e.input.charCodeAt(++e.position);if(l===58)l=e.input.charCodeAt(++e.position),wn(l)||bn(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:Nn.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:Fn.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)bn(e,`expected ':' after a mapping key`);else return r.anchorStart!==Rn||r.tagStart!==Rn?(yn(e,t),!1):!0}else if(a)bn(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==Rn||r.tagStart!==Rn?(yn(e,t),!1):!0}if(kn(e,t,Bn,!0,s)&&(s=!1),i||(s&&=(_n(e),!1)),En(e,!0),l=e.input.charCodeAt(e.position),(e.line===d||e.lineIndent>t)&&l!==0)bn(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&bn(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,l=!1,u=null,d=uie(),f=n===Bn||n===Jae,p=f,m=f;if(r&&En(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=vn(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&m&&(d.tagStart!==Rn||d.anchorStart!==Rn)&&(r===33||r===38)){let n=vn(e),r=t+1;if(jie(e,e.position-e.lineStart,r,d)&&e.events[n.eventsLength]?.type===Nn.MAPPING)return e.depth--,!0;yn(e,n)}if(s&&(r===33&&d.tagStart!==Rn||r===38&&d.anchorStart!==Rn)||!bie(e,d,n===zn)&&!xie(e,d))break;u===null&&(u=i),En(e,!0)?(s=!0,p=m,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):p=!1}if(p&&=s||i,o===1||n===Bn){let r=n===zn||n===qae?t:t+1,i=e.position-e.lineStart;if(o===1){if(p&&(Aie(e,i,d)||jie(e,i,r,d))||kie(e,r,d))l=!0;else{let t=e.input.charCodeAt(e.position);if(u!==null&&a&&m&&!p&&t!==124&&t!==62){let t=vn(e),n=u.position-u.lineStart;yn(e,u),jie(e,n,r,uie())&&e.events[t.eventsLength]?.type===Nn.MAPPING?l=!0:yn(e,t)}!l&&(f&&Eie(e,r,d)||wie(e,r,d)||Tie(e,r,d)||Sie(e,d)||Oie(e,r,n,d))&&(l=!0)}}else o===0&&(l=p&&Aie(e,i,d))}return f&&=!l,!l&&(d.anchorStart!==Rn||d.tagStart!==Rn||f)&&(hn(e,Rn,Rn,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Pn.PLAIN),l=!0),e.depth--,l||d.anchorStart!==Rn||d.tagStart!==Rn}function Mie(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Cn(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&bn(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!xn(e.input.charCodeAt(e.position));){for(;Sn(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||xn(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Cn(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(xn(e.input.charCodeAt(e.position))&&hie(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&bn(e,`duplication of %YAML directive`),r.length!==1&&bn(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&bn(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&bn(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&bn(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Xae.test(t)||bn(e,`ill-formed tag handle (first argument) of the TAG directive`),Kae.call(e.tagHandlers,t)&&bn(e,`there is a previously declared suffix for "${t}" tag handle`),toe.test(n)||bn(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Nie(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(En(e,!0);Mie(e);)t=!0,En(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&wn(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,En(e,!0),i=e.line>t}else t&&bn(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Dn(e)){e.position+=3,En(e,!0);return}if(aie(e,n,!1),kn(e,e.lineIndent-1,Bn,!1,i,i)||_n(e),En(e,!0),e.position===e.lineStart&&Dn(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,En(e,!0),e.line===t&&e.position=r.length));){let e=r.position;Nie(r),r.position===e&&bn(r,`can not read a document`)}return r.events}function Fie(e,t={}){let n={...roe,...t},r=String(e),i=Object.keys(noe),a=Object.keys(Gae);return iie(Pie(r,Tre(n,i)),{...Tre(n,a),source:r})}function Iie(e,t){let n=Fie(e,t);if(n.length===0)throw new Mn(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new Mn(`expected a single document in the stream, but found more`)}function Lie(e,t){return!!(e&1<i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=Pn.FOLDED_BLOCK:n&&(e.style=Pn.LITERAL_BLOCK)}function Wie(e){e.style===Pn.PLAIN&&!Lie(e.allowedStylesMask,Pn.PLAIN)&&(e.style=Rie(e))}function Gie(e){Lie(e.allowedStylesMask,e.style)||(e.style=Pn.DOUBLE_QUOTED)}var An,Kie,qie,Jie,Yie,Xie,Zie,Qie,$ie,eae,tae,nae,rae,iae,aae,oae,sae,cae,lae,uae,dae,fae,pae,mae,hae,gae,_ae,vae,yae,bae,xae,Sae,Cae,wae,Tae,Eae,Dae,Oae,kae,Aae,jae,Mae,Nae,Pae,jn,Fae,Iae,Lae,Rae,Mn,Nn,Pn,Fn,In,zae,Bae,Vae,Hae,Uae,Ln,Wae,Gae,Rn,Kae,zn,qae,Jae,Bn,Yae,Vn,Xae,Zae,Qae,$ae,eoe,toe,noe,roe,ioe,aoe,ooe,soe,coe,loe,Hn,uoe,doe,foe,poe,moe,Un,hoe,goe,_oe,voe,yoe,boe,xoe,Soe,Coe,woe,Toe,Eoe,Doe,Ooe,koe=o((()=>{An=Symbol(`NOT_RESOLVED`),Kie=pn(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),qie=[``,`~`,`null`,`Null`,`NULL`],Jie=pn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>qie.indexOf(e)===-1?An:null,identify:e=>e===null,represent:()=>`null`}),Yie=pn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:An,identify:e=>e===null,represent:()=>`null`}),Xie=[``,`~`,`null`,`Null`,`NULL`],Zie=pn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Xie.indexOf(e)===-1?An:null,identify:e=>e===null,represent:()=>`null`}),Qie=[`true`,`True`,`TRUE`],$ie=[`false`,`False`,`FALSE`],eae=pn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>Qie.indexOf(e)!==-1||$ie.indexOf(e)===-1&&An,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),tae=[`true`],nae=[`false`],rae=pn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>tae.indexOf(e)!==-1||nae.indexOf(e)===-1&&An,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),iae=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],aae=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],oae=pn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>iae.indexOf(e)!==-1||aae.indexOf(e)===-1&&An,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),sae=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),cae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),lae=pn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:lre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),uae=RegExp(`^-?(?:0|[1-9][0-9]*)$`),dae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),fae=pn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:dre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),pae=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),mae=pn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:pre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),hae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),gae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),_ae=pn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:mre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:hre}),vae=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),yae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),bae=pn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:gre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:_re}),xae=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Sae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Cae=pn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:vre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:yre}),wae=pn(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:An,identify:()=>!1}),Tae=/^[A-Za-z0-9+/]*={0,2}$/,Eae=pn(`tag:yaml.org,2002:binary`,{resolve:bre,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:xre}),Dae=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Oae=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]))?))?$`),kae=pn(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Cre,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Aae=ore(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),jae=ore(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(wre(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Mae=ore(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Nae=sre(`tag:yaml.org,2002:map`,{create:()=>({}),identify:wre,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Pae=sre(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),jn=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=Ore(e),n=[],r=Ere(),i=Dre();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let l=r.scalar[`tag:yaml.org,2002:str`];if(!l)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=l,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==An)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},Fae=new jn([Kie,Aae,Nae]),new jn([...Fae.tags,Yie,rae,fae,bae]),Iae=new jn([...Fae.tags,Jie,eae,lae,_ae]),Lae=new jn([...Fae.tags,Zie,oae,mae,Cae,kae,wae,Eae,jae,Mae,Pae]),Lae.withTags({...mae,resolve:(e,t,n)=>{let r=mae.resolve(e,t,n);return r===An?lae.resolve(e,t,n):r}},{...Cae,resolve:(e,t,n)=>{let r=Cae.resolve(e,t,n);return r===An?_ae.resolve(e,t,n):r}}),sre(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||wre(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),sre(`tag:yaml.org,2002:map`,{create:()=>({}),identify:wre,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=kre(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=kre(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Rae={maxLength:79,indent:1,linesBefore:3,linesAfter:2},Mn=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Nre(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Nre(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,foe=`[,\\[\\]{}]`,poe=Hn,moe=`(?:(?!${foe})${Hn})`,Un=`(?:(?:(?!${doe})${Hn})|[?:-](?=${poe}))`,hoe=`(?:(?:(?!${doe})${Hn})|[?:-](?=${moe}))`,goe=`(?:(?:(?![:#])${poe})|:(?=${poe}))#*`,_oe=`(?:(?:(?![:#])${moe})|:(?=${moe}))#*`,voe=`(?:${coe}*${goe})*`,yoe=`(?:${coe}*${_oe})*`,boe=`${Un}#*${voe}`,xoe=`${hoe}#*${yoe}`,Soe=boe,Coe=xoe,woe=`\\n+${goe}${voe}`,Toe=`\\n+${_oe}${yoe}`,Eoe=`${boe}(?:${woe})*`,Doe=`${xoe}(?:${Toe})*`,RegExp(`^(?:${Eoe})$`,`u`),RegExp(`^(?:${Doe})$`,`u`),RegExp(`^(?:${Soe})$`,`u`),RegExp(`^(?:${Coe})$`,`u`),RegExp(`^(?:${uoe})*$`,`u`),RegExp(`^(?:${uoe}|\\n)*$`,`u`),RegExp(`^(?:${loe}|\\n)*$`,`u`),Ooe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(ioe).map(e=>Reflect.get(ioe,e)),tagBeforeAnchor:!1},{...Ooe},Nn.DOCUMENT,Nn.SEQUENCE,Nn.MAPPING,Nn.SCALAR,Nn.ALIAS,Nn.POP,Pn.PLAIN,Pn.SINGLE_QUOTED,Pn.DOUBLE_QUOTED,Pn.LITERAL_BLOCK,Pn.FOLDED_BLOCK,Fn.BLOCK,Fn.FLOW,In.CLIP,In.STRIP,In.KEEP})),Aoe=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var l,u,d,f,p,m,h,g=!1,_=e.bMarks[a]+e.tShift[a],v=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(l=_+1;l<=v;l++)if(n[(l-_)%i]!==e.src[l]){h=l+1;break}if(d=Math.floor((l-_)/i),d<3)return!1;if(l-=(l-_)%i,s)return!0;for(u=a;u++,!(u>=o||e.src.slice(_,v)===`...`||(_=e.bMarks[u]+e.tShift[u],v=e.eMarks[u],_=4)){for(l=_+1;l<=v&&n[(l-_)%i]===e.src[l];l++);if(!(Math.floor((l-_)/i){let t=``;e.use(Ioe.default,n=>{let r=Moe(n);t=r===void 0?``:Noe(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`\n${t}\n
    \n`}}function Moe(e){try{let t=Iie(e,{schema:Iae});if(typeof t==`object`&&t&&!Array.isArray(t)&&Object.keys(t).length>0)return t}catch{}}function Noe(e,t){let n=Object.entries(e);return n.length===0?``:`\n${n.map(([e,n])=>`${t(e)}${Wn(n,t)}`).join(` -`)}\n`}function Wn(e,t){if(e==null)return``;if(e instanceof Date)return t(Poe(e));if(Array.isArray(e))return e.every(Foe)?e.map(e=>Wn(e,t)).join(`, `):`
      ${e.map(e=>`
    • ${Wn(e,t)}
    • `).join(``)}
    `;if(typeof e==`object`){let n=Noe(e,t);return n===``?``:`${n}
    `}return t(String(e))}function Poe(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function Foe(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var Ioe,Loe=o((()=>{koe(),Ioe=d(Aoe())}));function Gn(e,t={}){return e??t}function Kn(e,t=!0){return e??t}function Roe(e){if(e){if(!Array.isArray(e)||!e.every(e=>typeof e==`object`&&!!e&&`left`in e&&typeof e.left==`string`&&`right`in e&&typeof e.right==`string`&&`display`in e&&typeof e.display==`boolean`))throw TypeError(`Invalid mathDelimiters setting: expected an array of { left: string, right: string, display: boolean }`);return e}}function zoe(e,t,n){if(e==null)return n;let r=[`default`,`base`,`dark`,`forest`,`neutral`,`neo`,`neo-dark`,`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`null`].find(t=>t===e);if(r===void 0)throw TypeError(`Invalid mermaid.${t} setting: expected a supported Mermaid theme name`);return r}var Boe,qn,Voe,Hoe,Jn,Uoe,Yn,Woe,Goe,Koe,Xn,Zn,qoe,Qn,Joe,Yoe,Xoe,Zoe,Qoe,$oe,ese,$n=o((()=>{Boe={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},qn=Gn(Gn(p.MarkEdit.userSettings)[Boe.rootValueKey]),Voe=Gn(qn.changeMode),Hoe=Gn(qn.markdownIt),Jn=Gn(qn.mermaid),Uoe=Kn(qn.syncScroll),Yn=Kn(qn.hidePreviewButtons),Woe=Kn(qn.syntaxAutoDetect,!1),Goe=Kn(qn.imageHoverPreview,!1),Koe=Kn(qn.inlineImages,!1),Xn=Array.isArray(qn.inlineRendering)?qn.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):Koe?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],Zn=qn.themeName??`github`,qoe=Zn===`none`,Qn=qn.styledHtmlColorScheme??qn.styledHtmlTheme??`auto`,Joe=Roe(qn.mathDelimiters),Yoe=Voe.modes??Boe.defaultModes,Xoe=Gn(Voe.hotKey),Zoe=Hoe.preset??Boe.defaultPreset,Qoe=Gn(Hoe.options),$oe=zoe(Jn.lightTheme,`lightTheme`,`default`),ese=zoe(Jn.darkTheme,`darkTheme`,`dark`)})),tse,N,er,tr=o((()=>{tse=Object.defineProperty,N=(e,t)=>tse(e,`name`,{value:t,configurable:!0}),er=(e,t)=>{for(var n in t)tse(e,n,{get:t[n],enumerable:!0})}})),nse=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|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,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e){tr(),nr=d(nse(),1),rr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:N((...e)=>{},`trace`),debug:N((...e)=>{},`debug`),info:N((...e)=>{},`info`),warn:N((...e)=>{},`warn`),error:N((...e)=>{},`error`),fatal:N((...e)=>{},`fatal`)},rse=N(function(e=`fatal`){let t=rr.fatal;typeof e==`string`?e.toLowerCase()in rr&&(t=rr[e]):typeof e==`number`&&(t=e),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},t<=rr.fatal&&(P.fatal=console.error?console.error.bind(console,ir(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,ir(`FATAL`))),t<=rr.error&&(P.error=console.error?console.error.bind(console,ir(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,ir(`ERROR`))),t<=rr.warn&&(P.warn=console.warn?console.warn.bind(console,ir(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,ir(`WARN`))),t<=rr.info&&(P.info=console.info?console.info.bind(console,ir(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,ir(`INFO`))),t<=rr.debug&&(P.debug=console.debug?console.debug.bind(console,ir(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,ir(`DEBUG`))),t<=rr.trace&&(P.trace=console.debug?console.debug.bind(console,ir(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,ir(`TRACE`)))},`setLogLevel`),ir=N(e=>`%c${(0,nr.default)().format(`ss.SSS`)} : ${e} : `,`format`)})),or,ise=o((()=>{or={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return or.hue2rgb(a,i,e+1/3)*255;case`g`:return or.hue2rgb(a,i,e)*255;case`b`:return or.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return l*100;switch(i){case e:return((t-n)/s+(t{ase={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),sse,cse=o((()=>{sse={dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),sr,cr=o((()=>{ise(),ose(),cse(),sr={channel:or,lang:ase,unit:sse}})),lr,ur,lse=o((()=>{cr(),lr={};for(let e=0;e<=255;e++)lr[e]=sr.unit.dec2hex(e);ur={ALL:0,RGB:1,HSL:2}})),use,dse=o((()=>{lse(),use=class{constructor(){this.type=ur.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=ur.ALL}is(e){return this.type===e}}})),fse,pse=o((()=>{cr(),dse(),lse(),fse=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new use}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=ur.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=sr.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=sr.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=sr.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=sr.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=sr.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=sr.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(ur.HSL)&&t!==void 0?t:(this._ensureHSL(),sr.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(ur.HSL)&&t!==void 0?t:(this._ensureHSL(),sr.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(ur.HSL)&&t!==void 0?t:(this._ensureHSL(),sr.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(ur.RGB)&&t!==void 0?t:(this._ensureRGB(),sr.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(ur.RGB)&&t!==void 0?t:(this._ensureRGB(),sr.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(ur.RGB)&&t!==void 0?t:(this._ensureRGB(),sr.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(ur.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ur.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ur.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ur.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ur.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ur.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),dr,mse=o((()=>{pse(),dr=new fse({r:0,g:0,b:0,a:0},`transparent`)})),fr,hse=o((()=>{mse(),lse(),fr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(fr.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,l=o?8:4,u=a?0:-1,d=o?255:15;return dr.set({r:(r>>l*(u+3)&d)*s,g:(r>>l*(u+2)&d)*s,b:(r>>l*(u+1)&d)*s,a:a?(r&d)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${lr[Math.round(t)]}${lr[Math.round(n)]}${lr[Math.round(r)]}${lr[Math.round(i*255)]}`:`#${lr[Math.round(t)]}${lr[Math.round(n)]}${lr[Math.round(r)]}`}}})),pr,gse=o((()=>{cr(),mse(),pr={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:e=>{let t=e.match(pr.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return sr.channel.clamp.h(parseFloat(e)*.9);case`rad`:return sr.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return sr.channel.clamp.h(parseFloat(e)*360)}}return sr.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(pr.re);if(!n)return;let[,r,i,a,o,s]=n;return dr.set({h:pr._hue2deg(r),s:sr.channel.clamp.s(parseFloat(i)),l:sr.channel.clamp.l(parseFloat(a)),a:o?sr.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${sr.lang.round(t)}, ${sr.lang.round(n)}%, ${sr.lang.round(r)}%, ${i})`:`hsl(${sr.lang.round(t)}, ${sr.lang.round(n)}%, ${sr.lang.round(r)}%)`}}})),mr,_se=o((()=>{hse(),mr={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:e=>{e=e.toLowerCase();let t=mr.colors[e];if(t)return fr.parse(t)},stringify:e=>{let t=fr.stringify(e);for(let e in mr.colors)if(mr.colors[e]===t)return e}}})),hr,vse=o((()=>{cr(),mse(),hr={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:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(hr.re);if(!n)return;let[,r,i,a,o,s,l,u,d]=n;return dr.set({r:sr.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:sr.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:sr.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?sr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${sr.lang.round(t)}, ${sr.lang.round(n)}, ${sr.lang.round(r)}, ${sr.lang.round(i)})`:`rgb(${sr.lang.round(t)}, ${sr.lang.round(n)}, ${sr.lang.round(r)})`}}})),gr,_r=o((()=>{hse(),gse(),_se(),vse(),lse(),gr={format:{keyword:mr,hex:fr,rgb:hr,rgba:hr,hsl:pr,hsla:pr},parse:e=>{if(typeof e!=`string`)return e;let t=fr.parse(e)||hr.parse(e)||pr.parse(e)||mr.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ur.HSL)||e.data.r===void 0?pr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?hr.stringify(e):fr.stringify(e)}})),yse,bse=o((()=>{cr(),_r(),yse=(e,t)=>{let n=gr.parse(e);for(let e in t)n[e]=sr.channel.clamp[e](t[e]);return gr.stringify(n)}})),vr,xse=o((()=>{cr(),mse(),_r(),bse(),vr=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return yse(e,{a:t});let i=dr.set({r:sr.channel.clamp.r(e),g:sr.channel.clamp.g(t),b:sr.channel.clamp.b(n),a:sr.channel.clamp.a(r)});return gr.stringify(i)}})),yr,Sse=o((()=>{cr(),_r(),yr=(e,t)=>sr.lang.round(gr.parse(e)[t])})),Cse,wse=o((()=>{cr(),_r(),Cse=e=>{let{r:t,g:n,b:r}=gr.parse(e),i=.2126*sr.channel.toLinear(t)+.7152*sr.channel.toLinear(n)+.0722*sr.channel.toLinear(r);return sr.lang.round(i)}})),Tse,Ese=o((()=>{wse(),Tse=e=>Cse(e)>=.5})),br,Dse=o((()=>{Ese(),br=e=>!Tse(e)})),Ose,kse=o((()=>{cr(),_r(),Ose=(e,t,n)=>{let r=gr.parse(e),i=r[t],a=sr.channel.clamp[t](i+n);return i!==a&&(r[t]=a),gr.stringify(r)}})),xr,Ase=o((()=>{kse(),xr=(e,t)=>Ose(e,`l`,t)})),Sr,jse=o((()=>{kse(),Sr=(e,t)=>Ose(e,`l`,-t)})),Mse,Nse=o((()=>{kse(),Mse=(e,t)=>Ose(e,`a`,-t)})),Cr,Pse=o((()=>{_r(),bse(),Cr=(e,t)=>{let n=gr.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return yse(e,r)}})),Fse,Ise=o((()=>{_r(),xse(),Fse=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=gr.parse(e),{r:s,g:l,b:u,a:d}=gr.parse(t),f=n/100,p=f*2-1,m=o-d,h=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,g=1-h,_=r*h+s*g,v=i*h+l*g,y=a*h+u*g,b=o*f+d*(1-f);return vr(_,v,y,b)}})),wr,Lse=o((()=>{_r(),Ise(),wr=(e,t=100)=>{let n=gr.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Fse(n,e,t)}})),Rse=o((()=>{xse(),Sse(),Dse(),Ase(),jse(),Nse(),Pse(),Lse()})),Tr=o((()=>{Rse()}));function zse(e,t){this.v=e,this.k=t}function Bse(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:Lr;if(ece&&ece(e,null),!Fr(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(tce(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Jse(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:Kce(),t=e=>Qse(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==Wr.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=kr(f,`cloneNode`),m=kr(f,`remove`),h=kr(f,`removeAttributeNode`),g=kr(f,`nextSibling`),_=kr(f,`childNodes`),v=kr(f,`parentNode`),y=kr(f,`shadowRoot`),b=kr(f,`attributes`),x=o&&o.prototype?kr(o.prototype,`nodeType`):null,S=o&&o.prototype?kr(o.prototype,`nodeName`):null,C=o&&o.prototype?kr(o.prototype,`ownerDocument`):null,w=function(e){return x?x(e):e.nodeType},T=function(e){return S?S(e):e.nodeName},E=Xse(f,`namespaceURI`),D=function(e){return E?E(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let O,k=``,A,j=!1,M=0,ee=function(){if(M>0)throw Hr(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},te=function(e){ee(),M++;try{return O.createHTML(e)}finally{M--}},ne=function(e){ee(),M++;try{return O.createScriptURL(e)}finally{M--}},re=function(){return j||=(A=qce(d,i),!0),A},ie=n,ae=ie.implementation,oe=ie.createNodeIterator,se=ie.createDocumentFragment,ce=ie.getElementsByTagName,le=r.importNode,ue=Jce();t.isSupported=typeof $se==`function`&&typeof v==`function`&&ae&&ae.createHTMLDocument!==void 0;let de=jce,fe=Mce,pe=Nce,me=Pce,he=Fce,ge=Lce,_e=Rce,ve=Bce,ye=Ice,be=null,xe=Dr({},[...xce,...Sce,...Cce,...Tce,...Dce]),Se=null,Ce=Dr({},[...Oce,...kce,...Ace,...Ur]),we=Object.seal(Mr(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}})),Te=null,Ee=null,De=Object.seal(Mr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Oe=!0,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!1,Ie=null,Le=null,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=`user-content-`,Ge=!0,Ke=!1,qe=null,Je={},Ye=null,Xe=Dr({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ze=null,Qe=Dr({},[`audio`,`video`,`img`,`source`,`image`,`track`]),$e=null,et=Dr({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),tt=`http://www.w3.org/1998/Math/MathML`,nt=`http://www.w3.org/2000/svg`,rt=`http://www.w3.org/1999/xhtml`,it=rt,at=!1,ot=null,st=Dr({},[tt,nt,rt],pce),ct=Ar([`mi`,`mo`,`mn`,`ms`,`mtext`]),lt=Dr({},ct),ut=Ar([`annotation-xml`]),dt=Dr({},ut),ft=Dr({},[`title`,`style`,`font`,`a`,`script`]),pt=null,mt=[`application/xhtml+xml`,`text/html`],ht=null,gt=null,_t=n.createElement(`form`),vt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(gt&>===e)return;(!e||typeof e!=`object`)&&(e={}),e=Or(e),pt=mt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ht=pt===`application/xhtml+xml`?pce:Lr,be=Gr(e,`ALLOWED_TAGS`,xe,{transform:ht}),Se=Gr(e,`ALLOWED_ATTR`,Ce,{transform:ht}),ot=Gr(e,`ALLOWED_NAMESPACES`,st,{transform:pce}),$e=Gr(e,`ADD_URI_SAFE_ATTR`,et,{transform:ht,base:et}),Ze=Gr(e,`ADD_DATA_URI_TAGS`,Qe,{transform:ht,base:Qe}),Ye=Gr(e,`FORBID_CONTENTS`,Xe,{transform:ht}),Te=Gr(e,`FORBID_TAGS`,Or({}),{transform:ht}),Ee=Gr(e,`FORBID_ATTR`,Or({}),{transform:ht}),Je=zr(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Or(e.USE_PROFILES):e.USE_PROFILES:!1,Oe=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.SAFE_FOR_XML!==!1,Pe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Ke=e.IN_PLACE||!1,ye=Zse(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ice,it=typeof e.NAMESPACE==`string`?e.NAMESPACE:rt,lt=Yce(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Dr({},ct)),dt=Yce(e,`HTML_INTEGRATION_POINTS`,()=>Dr({},ut));let t=Yce(e,`CUSTOM_ELEMENT_HANDLING`,()=>Mr(null));if(we=Mr(null),zr(t,`tagNameCheck`)&&vt(t.tagNameCheck)&&(we.tagNameCheck=t.tagNameCheck),zr(t,`attributeNameCheck`)&&vt(t.attributeNameCheck)&&(we.attributeNameCheck=t.attributeNameCheck),zr(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(we.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),jr(we),Me&&(ke=!1),Be&&(ze=!0),Je&&(be=Dr({},Dce),Se=Mr(null),Je.html===!0&&(Dr(be,xce),Dr(Se,Oce)),Je.svg===!0&&(Dr(be,Sce),Dr(Se,kce),Dr(Se,Ur)),Je.svgFilters===!0&&(Dr(be,Cce),Dr(Se,kce),Dr(Se,Ur)),Je.mathMl===!0&&(Dr(be,Tce),Dr(Se,Ace),Dr(Se,Ur))),De.tagCheck=null,De.attributeCheck=null,zr(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?De.tagCheck=e.ADD_TAGS:Fr(e.ADD_TAGS)&&(be===xe&&(be=Or(be)),Dr(be,e.ADD_TAGS,ht))),zr(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?De.attributeCheck=e.ADD_ATTR:Fr(e.ADD_ATTR)&&(Se===Ce&&(Se=Or(Se)),Dr(Se,e.ADD_ATTR,ht))),zr(e,`ADD_FORBID_CONTENTS`)&&Fr(e.ADD_FORBID_CONTENTS)&&(Ye===Xe&&(Ye=Or(Ye)),Dr(Ye,e.ADD_FORBID_CONTENTS,ht)),Ge&&(be[`#text`]=!0),Pe&&Dr(be,[`html`,`head`,`body`]),be.table&&(Dr(be,[`tbody`]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Hr(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Hr(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=O;O=e.TRUSTED_TYPES_POLICY;try{k=te(``)}catch(e){throw O=t,e}}else e.TRUSTED_TYPES_POLICY===null?(O=void 0,k=``):(O===void 0&&(O=re()),O&&typeof k==`string`&&(k=te(``)));Ar&&Ar(e),gt=e},bt=Dr({},[...Sce,...Cce,...wce]),xt=Dr({},[...Tce,...Ece]),St=function(e,t,n){return t.namespaceURI===rt?e===`svg`:t.namespaceURI===tt?e===`svg`&&(n===`annotation-xml`||lt[n]):!!bt[e]},Ct=function(e,t,n){return t.namespaceURI===rt?e===`math`:t.namespaceURI===nt?e===`math`&&dt[n]:!!xt[e]},wt=function(e,t,n){return t.namespaceURI===nt&&!dt[n]||t.namespaceURI===tt&&!lt[n]?!1:!xt[e]&&(ft[e]||!bt[e])},Tt=function(e){let t=D(e),n=Lr(T(e)),r=v(e),i,a;return r&&w(r)===Wr.element?(i={namespaceURI:D(r)},a=Lr(T(r))):(i={namespaceURI:it},a=`template`),ot[t]?t===nt?St(n,i,a):t===tt?Ct(n,i,a):t===rt?wt(n,i,a):!!(pt===`application/xhtml+xml`&&ot[t]):!1},Et=function(e){Pr(t.removed,{element:e});try{v(e).removeChild(e)}catch{if(m(e),!v(e))throw Hr(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Dt=function(e,t,n){try{h(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Ot=function(e){Mt(e);let t=_(e);t&&Nr(lce(t),e=>{try{m(e)}catch{}});let n=w(e)===Wr.element?b(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Dt(e,r,i)}},kt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Pr(t.removed,{attribute:r||null,from:n});try{r?h(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(ze||Be)try{Et(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},At=function(e){let t=b(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||Se[ht(i)]||Dt(e,r,i)}},jt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&w(e)===Wr.element){let t=y(e);Vt(t)&&r.push(t)}let i=_(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Mt=function(e){jt(e,e=>{w(e)===Wr.element&&At(e)})},Nt=function(e){let t=[];return jt(e,e=>{t.push(e)},!0),t},Pt=function(e,t){let n=dce();Nr(Nt(e),e=>{w(e)===Wr.element&&fce(n,e)}),Nr(t,e=>{w(e)===Wr.element&&!Ir(n,e)&&At(e)})},eee=function(e,n){let r=!1;return Nr(t.removed,t=>{t.element&&(r||=t.element===e,Mt(t.element))}),Pt(e,n),r},tee=function(e,t){let n=qe,r=null,i=()=>(r||(r=dce(),Nr(t,e=>{fce(r,e)})),r);for(let t=0;;t++){let r=Nt(e),a=[e],o=!1;if(Nr(r,e=>{w(e)===Wr.documentFragment?Pr(a,e):!o&&!Ir(n,e)&&(o=Ir(i(),e))}),!o)return;if(t>=8)throw Hr(`the tree kept changing during in-place sanitization; refusing to return it`);Nr(a,(t,n)=>{Ft(t,n>0,e,i())})}},Ft=function(e,t,n,r){let i=It(e),a;for(;a=i.nextNode();)Ir(r,a)&&!Ir(qe,a)&&(t&&Ut(ue.uponSanitizeShadowNode,a,null),lee(a,n),Jt(a,n),Vt(a.content)&&Yt(a.content))},nee=function(e){qe&&fce(qe,e)},ree=function(e,t){return Ne?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},iee=function(e){Ne&&jt(e,e=>{let t=w(e);if(t===Wr.processingInstruction||t===Wr.comment&&Vr(Hce,e.data)){try{m(e)}catch{}return!1}if(t===Wr.element){let t=e,n=ht(T(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&ree(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},aee=function(e){let t=null,r=null;if(Re)e=``+e;else{let t=mce(e,/^[\r\n\t ]+/);r=t&&t[0]}pt===`application/xhtml+xml`&&it===rt&&(e=``+e+``);let i=O?te(e):e;if(it===rt)try{t=new u().parseFromString(i,pt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(it,`template`,null);try{t.documentElement.innerHTML=at?k:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),it===rt?ce.call(t,Pe?`html`:`body`)[0]:Pe?t.documentElement:a},It=function(e){let t=C?C(e):e.ownerDocument;return oe.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Lt=function(e){return e=Rr(e,de,` `),e=Rr(e,fe,` `),e=Rr(e,pe,` `),e},Rt=function(e){zt(e);let t=e.querySelectorAll?.call(e,`template`);t&&Nr(t,e=>{Vt(e.content)&&Rt(e.content)})},zt=function(e){e.normalize();let t=C?C(e):e.ownerDocument,n=oe.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Lt(r.data),r=n.nextNode()},Bt=function(e){let t=S?S(e):null;return typeof t!=`string`||ht(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==b(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==x(e)||e.childNodes!==_(e)},Vt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return x(e)===Wr.documentFragment}catch{return!1}},Ht=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function Ut(e,n,r){e.length!==0&&Nr(e,e=>{e.call(t,n,r,gt)})}let oee=function(e,t){return!!(Ne&&e.hasChildNodes()&&!Ht(e.firstElementChild)&&Vr(Vce,e.textContent)&&Vr(Vce,e.innerHTML)||Ne&&Gce[t]&&w(e)===Wr.element&&D(e)===rt&&(Ht(e.firstElementChild)||typeof e.textContent==`string`&&Vr(Vce,e.textContent))||e.nodeType===Wr.processingInstruction||Ne&&e.nodeType===Wr.comment&&Vr(Hce,e.data))},Wt=function(e,t){return e instanceof RegExp?Vr(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},see=function(e,t,n){if(!Te[t]&&Kt(t)&&Wt(we.tagNameCheck,t))return!1;if(Ge&&!Ye[t]&&!Ye[Lr(t)]){let t=v(e),r=_(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?p(r[a],!0):r[a];t.insertBefore(i,g(e))}}}return Et(e),!0},cee=function(e,t,n,r){return e.length===0?t:t===n||t===r?Or(t):t},Gt=function(e,t){return e===t||v(e)!==null?!1:(Ke&&Mt(e),!0)},lee=function(e,n){if(nee(e),Ut(ue.beforeSanitizeElements,e,null),Gt(e,n))return!0;if(Bt(e))return Et(e),!0;let r=ht(T(e));if(be=cee(ue.uponSanitizeElement,be,xe,Ie),Ut(ue.uponSanitizeElement,e,{tagName:r,allowedTags:be}),Gt(e,n))return!0;if(oee(e,r))return Et(e),!0;if(Te[r]||!(De.tagCheck instanceof Function&&De.tagCheck(r))&&!be[r]){let t=see(e,r,n);return t===!1&&(Ut(ue.afterSanitizeElements,e,null),Gt(e,n))?!0:t}if(w(e)===Wr.element&&!Tt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Vr(Uce,e.innerHTML))return Et(e),!0;if(Me&&e.nodeType===Wr.text){let n=Lt(e.textContent);e.textContent!==n&&(Pr(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ut(ue.afterSanitizeElements,e,null),Gt(e,n)},uee=function(e,t,r){if(Ee[t]||ree(t,e)||He&&(t===`id`||t===`name`)&&(r in n||r in _t))return!1;let i=Se[t]||De.attributeCheck instanceof Function&&De.attributeCheck(t,e);return ke&&Vr(me,t)||Oe&&Vr(he,t)?!0:i?$e[t]||Vr(ye,Rr(r,_e,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&hce(r,`data:`)===0&&Ze[e]||Ae&&!Vr(ge,Rr(r,_e,``))?!0:!r:Kt(e)&&Wt(we.tagNameCheck,e)&&Wt(we.attributeNameCheck,t,e)||t===`is`&&we.allowCustomizedBuiltInElements&&Wt(we.tagNameCheck,r)},dee=Dr({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Kt=function(e){return!dee[Lr(e)]&&Vr(ve,e)},qt=function(e,t,n,r){if(O&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return te(r);case`TrustedScriptURL`:return ne(r)}return r},fee=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Bt(e)||(Et(e),!1)}catch{return kt(t,e),!1}},pee=function(e,t){return Ne&&Vr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Lr(e)===`attributename`&&mce(t,`href`)!==null},Jt=function(e,n){if(Ut(ue.beforeSanitizeAttributes,e,null),Gt(e,n))return;let r=e.attributes;if(!r||Bt(e))return;Se=cee(ue.uponSanitizeAttribute,Se,Ce,Le);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0},a=r.length,o=ht(e.nodeName);for(;a--;){let n=r[a],s=n.name,l=n.namespaceURI,u=n.value,d=ht(s),f=u,p=s===`value`?f:gce(f),m=!1;if(i.attrName=d,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,Ut(ue.uponSanitizeAttribute,e,i),p=i.attrValue,Ue&&(d===`id`||d===`name`)&&hce(p,We)!==0&&(kt(s,e,n),p=We+p,m=!0),pee(s,p)){kt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){kt(s,e,n);continue}if(!je&&Vr(Wce,p)){kt(s,e,n);continue}if(Me&&(p=Lt(p)),!uee(o,d,p)){kt(s,e,n);continue}p=qt(o,d,l,p),p!==f&&fee(e,s,l,p)&&m&&cce(t.removed)}}Ut(ue.afterSanitizeAttributes,e,null),Gt(e,n)},Yt=function(e){let t=null,n=It(e);for(Ut(ue.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ut(ue.uponSanitizeShadowNode,t,null),lee(t,e),Jt(t,e),Vt(t.content)&&Yt(t.content),w(t)===Wr.element){let e=y(t);Vt(e)&&(Xt(e),Yt(e))}Me&&zt(e),Ut(ue.afterSanitizeShadowDOM,e,null)},Xt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Yt(e.shadow);continue}let n=e.node,r=w(n)===Wr.element,i=_(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=S?S(n):null;if(typeof e==`string`&&ht(e)===`template`){let e=n.content;Vt(e)&&t.push({node:e,shadow:null})}}if(r){let e=y(n);Vt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(at=!e,at&&(e=``),typeof e!=`string`&&!Ht(e)&&(e=Yse(e),typeof e!=`string`))throw Hr(`dirty is not a string, aborting`);if(!t.isSupported)return e;Fe?(be=Ie,Se=Le):yt(n),(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&(be=Or(be)),ue.uponSanitizeAttribute.length>0&&(Se=Or(Se)),t.removed=[];let l=Ke&&typeof e!=`string`&&Ht(e),u=[],d=qe;if(l){iee(e);let t=T(e);if(typeof t==`string`){let n=ht(t);if(!be[n]||Te[n])throw Ot(e),Hr(`root node is forbidden and cannot be sanitized in-place`)}if(Bt(e))throw Ot(e),Hr(`root node is clobbered and cannot be sanitized in-place`);u=Nt(e),qe=dce()}else if(Ht(e))i=aee(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===Wr.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Xt(i);else{if(!ze&&!Me&&!Pe&&e.indexOf(`<`)===-1)return O&&Ve?te(e):e;if(i=aee(e),!i)return ze?null:Ve?k:``}i&&Re&&Et(i.firstChild);let f=l?e:i;try{l&&Xt(e);let t=It(f);for(;o=t.nextNode();)lee(o,f),Jt(o,f),Vt(o.content)&&Yt(o.content);l&&tee(e,u)}catch(t){throw l&&(Ot(e),eee(e,u)),t}finally{qe=d}if(l){if(eee(e,u))throw Hr(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Me&&Rt(e),e}if(ze){if(Me&&Rt(i),Be)for(s=se.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Se.shadowroot||Se.shadowrootmode)&&(s=le.call(r,s,!0)),s}let p=Pe?i.outerHTML:i.innerHTML;return Pe&&be[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Vr(zce,i.ownerDocument.doctype.name)&&(p=` -`+p),Me&&(p=Lt(p)),O&&Ve?te(p):p},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(e),Fe=!0,Ie=be,Le=Se},t.clearConfig=function(){gt=null,Fe=!1,Ie=null,Le=null,O=A,k=``},t.isValidAttribute=function(e,t,n){gt||yt({});let r=ht(e),i=ht(t);return typeof n==`string`&&(pee(t,n)||!je&&Vr(Wce,n))?!1:uee(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&zr(ue,e)&&Pr(ue[e],t)},t.removeHook=function(e,t){if(zr(ue,e)){if(t!==void 0){let n=sce(ue[e],t);return n===-1?void 0:uce(ue[e],n,1)[0]}return cce(ue[e])}},t.removeHooks=function(e){zr(ue,e)&&(ue[e]=[])},t.removeAllHooks=function(){ue=Jce()},t}var $se,ece,tce,nce,rce,Ar,jr,Mr,ice,ace,oce,Nr,sce,cce,Pr,lce,uce,Fr,dce,fce,Ir,Lr,pce,mce,Rr,hce,gce,_ce,vce,yce,bce,zr,Br,Vr,Hr,xce,Sce,Cce,wce,Tce,Ece,Dce,Oce,kce,Ace,Ur,jce,Mce,Nce,Pce,Fce,Ice,Lce,Rce,zce,Bce,Vce,Hce,Uce,Wce,Wr,Gce,Kce,qce,Jce,Gr,Yce,Kr,qr=o((()=>{Kse.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Kse.prototype.next=function(e){return this._invoke(`next`,e)},Kse.prototype.throw=function(e){return this._invoke(`throw`,e)},Kse.prototype.return=function(e){return this._invoke(`return`,e)},$se=Object.entries,ece=Object.setPrototypeOf,tce=Object.isFrozen,nce=Object.getPrototypeOf,rce=Object.getOwnPropertyDescriptor,Ar=Object.freeze,jr=Object.seal,Mr=Object.create,ice=typeof Reflect<`u`&&Reflect,ace=ice.apply,oce=ice.construct,Ar||=function(e){return e},jr||=function(e){return e},ace||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},oce||=function(e){return new e(...[...arguments].slice(1))},Nr=Er(Array.prototype.forEach),Array.prototype.indexOf,sce=Er(Array.prototype.lastIndexOf),cce=Er(Array.prototype.pop),Pr=Er(Array.prototype.push),lce=Er(Array.prototype.slice),uce=Er(Array.prototype.splice),Fr=Array.isArray,dce=qse(Set),fce=Er(Set.prototype.add),Ir=Er(Set.prototype.has),Lr=Er(String.prototype.toLowerCase),pce=Er(String.prototype.toString),mce=Er(String.prototype.match),Rr=Er(String.prototype.replace),hce=Er(String.prototype.indexOf),gce=Er(String.prototype.trim),_ce=Er(Number.prototype.toString),vce=Er(Boolean.prototype.toString),yce=typeof BigInt>`u`?null:Er(BigInt.prototype.toString),bce=typeof Symbol>`u`?null:Er(Symbol.prototype.toString),zr=Er(Object.prototype.hasOwnProperty),Br=Er(Object.prototype.toString),Vr=Er(RegExp.prototype.test),Hr=qse(TypeError),xce=Ar(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Sce=Ar(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Cce=Ar([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),wce=Ar([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Tce=Ar(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Ece=Ar([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Dce=Ar([`#text`]),Oce=Ar(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),kce=Ar(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Ace=Ar(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Ur=Ar([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),jce=jr(/{{[\w\W]*|^[\w\W]*}}/g),Mce=jr(/<%[\w\W]*|^[\w\W]*%>/g),Nce=jr(/\${[\w\W]*/g),Pce=jr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fce=jr(/^aria-[\-\w]+$/),Ice=jr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lce=jr(/^(?:\w+script|data):/i),Rce=jr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zce=jr(/^html$/i),Bce=jr(/^[a-z][.\w]*(-[.\w]+)+$/i),Vce=jr(/<[/\w!]/g),Hce=jr(/<[/\w]/g),Uce=jr(/<\/no(script|embed|frames)/i),Wce=jr(/\/>/i),Wr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gce=Ar(Dr({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Kce=function(){return typeof window>`u`?null:window},qce=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Jce=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Gr=function(e,t,n,r){return zr(e,t)&&Fr(e[t])?Dr(r.base?Or(r.base):{},e[t],r.transform):n},Yce=function(e,t,n){let r=zr(e,t)?e[t]:void 0;return r&&typeof r==`object`?Or(r):n()},Kr=Qse()})),Xce=l({ParseError:()=>oi,SETTINGS_SCHEMA:()=>li,__defineFunction:()=>Xr,__defineMacro:()=>ii,__defineSymbol:()=>F,__domTree:()=>ipe,__parse:()=>$fe,__renderToDomTree:()=>tpe,__renderToHTMLTree:()=>npe,__setFontMetrics:()=>ile,default:()=>ape,render:()=>Qfe,renderToString:()=>vo,version:()=>rpe});function Zce(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Qce(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:Zce(Array.isArray(e.type)?e.type[0]:e.type)}function $ce(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?Qce(r):a?a(i):i}function ele(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function Jr(e){for(var t=0;t=Si[t]&&e<=Si[t+1])return!0;return!1}function tle(e){return`toText`in e}function nle(e){if(e instanceof Ai)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function rle(e){if(e instanceof ki)return e;throw Error(`Expected span but got `+String(e)+`.`)}function ile(e,t){Ni[e]=t}function ale(e,t,n){if(!Ni[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Ni[t][r];if(!i&&e[0]in lue&&(r=lue[e[0]].charCodeAt(0),i=Ni[t][r]),!i&&n===`text`&&Jr(r)&&(i=Ni[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function ole(e){var t=e>=5?0:e>=3?1:2;if(!uue[t]){var n=uue[t]={cssEmPerMu:cue.quad[t]/18};for(var r of Object.keys(cue))n[r]=cue[r][t]}return uue[t]}function F(e,t,n,r,i,a){Pi[e][i]={font:t,group:n,replace:r},a&&r&&(Pi[e][r]=Pi[e][i])}function Yr(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new oi(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}function Xr(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a0&&(a.push(Qr(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Qr(o,t));var u;n?(u=Qr(Na(n,t,!0),t),u.classes=[`katex-tag`],a.push(u)):i&&a.push(i);var d=_a([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=Di(d.height+d.depth),d.depth&&(f.style.verticalAlign=Di(-d.depth))}return d}function cle(e){return new Ti(e)}function lle(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Ra&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Ra&&n.text===`,`}return!1}function ule(e,t,n,r,i){var a=Ba(e,n),o=a.length===1&&a[0]instanceof La&&Gue.has(a[0].type)?a[0]:new La(`mrow`,a),s=new La(`annotation`,[new Ra(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new La(`semantics`,[o,s]),u=new La(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),_a([i?`katex`:`katex-mathml`],[u])}function dle(e){return lde.has(e)}function $r(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function ei(e){var t=ti(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function ti(e){return e.type===`atom`||ude.has(e.type)?e:null}function fle(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new oi(t,e);return r}function ple(e,t){var n=Na(e.body,t,!0);return _a([e.mclass],n,t)}function mle(e,t){var n,r=Ba(e.body,t);return e.mclass===`minner`?n=new La(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new La(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new La(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}function hle(e,t,n){var r=hde[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function gle(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new oi(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[hle(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=gde()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function _le(e){return`isMiddle`in e}function ni(e,t){var n=ti(e);if(n&&Xde.has(n.text))return n;throw n?new oi(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new oi(`Invalid delimiter type '`+e.type+`'`,e)}function vle(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function ri(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&!Array.isArray(y?.[y.length-1])&&!(l&&y?.[y.length-1]===!0)&&g.pop(),v.length{for(oi=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(wle,`-$1`).toLowerCase(),Ele={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Dle=/[&><"']/g,si=e=>String(e).replace(Dle,e=>Ele[e]),Ole=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Ole(e.body[0]):e:e.type===`font`?Ole(e.body):e,kle=new Set([`mathord`,`textord`,`atom`]),ci=e=>kle.has(Ole(e).type),Ale=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},li={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:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},ui=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||={};for(var t of Object.keys(li)){var n=li[t];n&&$ce(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Ale(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},di=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return bi[jle[this.id]]}sub(){return bi[Mle[this.id]]}fracNum(){return bi[Nle[this.id]]}fracDen(){return bi[Ple[this.id]]}cramp(){return bi[Fle[this.id]]}text(){return bi[Ile[this.id]]}isTight(){return this.size>=2}},fi=0,pi=1,mi=2,hi=3,gi=4,_i=5,vi=6,yi=7,bi=[new di(fi,0,!1),new di(pi,0,!0),new di(mi,1,!1),new di(hi,1,!0),new di(gi,2,!1),new di(_i,2,!0),new di(vi,3,!1),new di(yi,3,!0)],jle=[gi,_i,gi,_i,vi,yi,vi,yi],Mle=[_i,_i,_i,_i,yi,yi,yi,yi],Nle=[mi,hi,gi,_i,vi,yi,vi,yi],Ple=[hi,hi,_i,_i,yi,yi,yi,yi],Fle=[pi,pi,hi,hi,_i,_i,yi,yi],Ile=[fi,pi,mi,hi,mi,hi,mi,hi],xi={DISPLAY:bi[fi],TEXT:bi[mi],SCRIPT:bi[gi],SCRIPTSCRIPT:bi[vi]},Lle=[{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]]}],Si=[],Lle.forEach(e=>e.blocks.forEach(e=>Si.push(...e))),Ci=e=>e+` `+e,wi=80,Rle=function(e,t){return`M95,`+(622+e+t)+` +`.repeat(d?1+f:f),u+=n,d=!0,f=0}return i===Ln.KEEP?u+=` +`.repeat(d?1+f:f):i!==Ln.STRIP&&d&&(u+=` +`),u}function Ure(e,t){if(t.valueStart===Rae)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case Fn.SINGLE_QUOTED:return Bre(e,n,r);case Fn.DOUBLE_QUOTED:return Vre(e,n,r);case Fn.LITERAL_BLOCK:return Hre(e,n,r,t.indent,t.chomping,!1);case Fn.FOLDED_BLOCK:return Hre(e,n,r,t.indent,t.chomping,!0);default:return zre(e,n,r)}}function Wre(e){let t=``,n=0;for(;n=192){let t=r<224?1:r<240?2:3;for(r&=(1<<6-t)-1;t-->0;)r=r<<6|parseInt(e.slice(n+1,n+3),16)&63,n+=3}r<65536?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023))}return t}function Gre(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return Wre(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1);return Wre(t?.[r]??Vae[r]??r)+Wre(e.slice(r.length))}function Kre(e){return`tagStart`in e&&e.tagStart!==Rn?e.tagStart:`anchorStart`in e&&e.anchorStart!==Rn?e.anchorStart:`valueStart`in e&&e.valueStart!==Rn?e.valueStart:`start`in e?e.start:0}function hn(e,t){Nn.throwAt(e.source,e.position,t,e.filename)}function qre(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof Nn)throw n;Nn.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function Jre(e,t){let n=Ure(e.source,t),r=t.tagStart===Rn?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=Gre(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===jn&&hn(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&hn(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:qre(e,e.position,o,r),tag:o}}hn(e,`unknown scalar tag !<${t}>`)}return t.style===Fn.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function Yre(e,t,n){let r=t.tagStart===Rn?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:Gre(r,e.tagHandlers)}function Xre(e){return e.nodeKind===`mapping`}function Zre(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&hn(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Qre(e,t,n,r){Zre(e);for(let i of r.keys(n)){if(Zre(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&hn(e,a),t.overridable??=new Set,t.overridable.add(i)}}function $re(e,t,n,r){if(e.position=t.keyPosition,Xre(r))Qre(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&hn(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||hn(e,`cannot merge mappings; the provided source object is unacceptable`),Qre(e,t,r,n)}}else hn(e,`cannot merge mappings; the provided source object is unacceptable`)}function eie(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){$re(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&hn(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&hn(e,a),t.overridable?.delete(n)}function tie(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){Xre(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&hn(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,eie(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Uae}function nie(e,t,n,r,i){if(t.anchorStart!==Rn){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function rie(e,t){let n={...Wae,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex`);let i=r.create(t),a=nie(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case Pn.MAPPING:{let t=Yre(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||hn(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=nie(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Pn.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&hn(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||hn(n,`unidentified alias "${t}"`),r.isValueFinal||hn(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),tie(n,r.value,r.tag);break}case Pn.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,hn(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:qre(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),tie(n,t,e.tag)}break}}}return n.documents}function iie(e,t,n){e.events.push({type:Pn.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function aie(e,t,n,r,i,a,o){e.events.push({type:Pn.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function oie(e,t,n,r,i,a,o){e.events.push({type:Pn.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function sie(e,t){e.events.splice(t.eventsLength,0,{type:Pn.MAPPING,start:t.position,anchorStart:zn,anchorEnd:zn,tagStart:zn,tagEnd:zn,style:In.FLOW})}function gn(e,t,n,r,i,a,o,s,l=Ln.CLIP,u=-1,d=!1){e.events.push({type:Pn.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:l,indent:u,fast:d})}function cie(e,t,n){e.events.push({type:Pn.ALIAS,anchorStart:t,anchorEnd:n})}function _n(e){e.events.push({type:Pn.POP})}function vn(e){gn(e,zn,zn,zn,zn,zn,zn,Fn.PLAIN)}function lie(){return{anchorStart:zn,anchorEnd:zn,tagStart:zn,tagEnd:zn}}function yn(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function bn(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function xn(e,t){Nn.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function Sn(e){return e===10||e===13}function Cn(e){return e===9||e===32}function wn(e){return Cn(e)||Sn(e)}function Tn(e){return e===0||wn(e)}function En(e){return e===44||e===91||e===93||e===123||e===125}function uie(e){return e>=48&&e<=57?e-48:-1}function die(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function fie(e){return e===120?2:e===117?4:e===85?8:0}function pie(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function mie(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function Dn(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||wn(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Cn(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!Sn(r)&&r!==0);if(!Sn(r))break;for(mie(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function On(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||wn(n)}return!1}function hie(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function gie(e){if(e.position!==e.lineStart)return!1;if(On(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=yn(e);hie(e),Dn(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&On(e));return bn(e,t),r}function _ie(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Sn(t);)t=e.input.charCodeAt(++e.position)}function vie(e,t,n){let r=Jae.exec(e.input.slice(t,n));r!==null&&(e.position=t+r.index+r[0].length-1,xn(e,`the stream contains non-printable characters`))}function yie(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==zn&&xn(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let l=e.position,u;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&xn(e,`unexpected end of the stream within a verbatim tag`),u=e.input.slice(l,e.position),e.position++}else{for(;s!==0&&!wn(s)&&!(n&&En(s));)s===33&&(a?xn(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(l-1,e.position+1),Yae.test(o)||xn(e,`named tag handle cannot contain such characters`),a=!0,l=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(l,e.position),Hn.test(u)&&xn(e,`tag suffix cannot contain flow indicator characters`)}return u&&!(i?Qae.test(u):$ae.test(u))&&xn(e,`tag name cannot contain such characters: ${u}`),!i&&o!==`!`&&o!==`!!`&&!Gae.call(e.tagHandlers,o)&&xn(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function bie(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==zn&&xn(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!wn(e.input.charCodeAt(e.position))&&!En(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&xn(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function xie(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==zn||t.tagStart!==zn)&&xn(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!wn(e.input.charCodeAt(e.position))&&!En(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&xn(e,`name of an alias node must contain at least one character`),cie(e,n,e.position),!0}function Sie(e,t){Dn(e,!1),e.lineIndent0;)e.position++,die(e.input.charCodeAt(e.position))<0&&xn(e,`expected hexadecimal character`);e.position++}}else Sn(a)?(i=!1,Sie(e,t)):e.position===e.lineStart&&On(e)?xn(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?xn(e,`expected valid JSON character`):e.position++}xn(e,`unexpected end of the stream within a double quoted scalar`)}function Tie(e,t,n){let r=e.input.charCodeAt(e.position),i=Ln.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?Fn.LITERAL_BLOCK:Fn.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=uie(n);if(n===43||n===45)i!==Ln.CLIP&&xn(e,`repeat of a chomping mode identifier`),i=n===43?Ln.KEEP:Ln.STRIP,e.position++;else if(r>=0)r===0&&xn(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&xn(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let l=!1;for(;Cn(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&_ie(e),Sn(e.input.charCodeAt(e.position))?mie(e):e.input.charCodeAt(e.position)!==0&&xn(e,`a line break is expected`);let u=o?a:-1,d=0,f=e.position,p=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){u>=0?r>u&&(p=n+r):r>0&&(p=n+r);break}if(gie(e))break;if(!o&&u===-1&&Sn(i)&&(d=Math.max(d,r)),!o&&u===-1&&!Sn(i)&&(i===9&&r=t&&r=t){l=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}Cn(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(vie(e,i,a),gn(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Fn.PLAIN,Ln.CLIP,-1,!l),!0)}function kn(e,t){let n=e.line;Dn(e,!0),(e.line>n&&e.lineIndent0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Tn(e.input.charCodeAt(e.position+1))&&xn(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?vn(e):An(e,t,qae,!1,!0),Dn(e,!0),e.lineIndent=e.length)break;e.lineIndent>t&&xn(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&Tn(e.input.charCodeAt(e.position+1))&&xn(e,`bad indentation of a sequence entry`)}return _n(e),!0}function Aie(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,xn(e,`tab characters must not be used in indentation`));let u=e.input.charCodeAt(e.position+1),d=e.line;if((l===63||l===58)&&Tn(u))o||=(oie(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,In.BLOCK),!0),l===63?(i&&vn(e),a=!0,i=!0):i?i=!1:(vn(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(vn(e),!1);let t=yn(e);if(!An(e,n,Kae,!1,!0))break;if(e.line===d){for(l=e.input.charCodeAt(e.position);Cn(l);)l=e.input.charCodeAt(++e.position);if(l===58)l=e.input.charCodeAt(++e.position),Tn(l)||xn(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:Pn.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:In.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)xn(e,`expected ':' after a mapping key`);else return r.anchorStart!==zn||r.tagStart!==zn?(bn(e,t),!1):!0}else if(a)xn(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==zn||r.tagStart!==zn?(bn(e,t),!1):!0}if(An(e,t,Vn,!0,s)&&(s=!1),i||(s&&=(vn(e),!1)),Dn(e,!0),l=e.input.charCodeAt(e.position),(e.line===d||e.lineIndent>t)&&l!==0)xn(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&xn(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,l=!1,u=null,d=lie(),f=n===Vn||n===qae,p=f,m=f;if(r&&Dn(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=yn(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&m&&(d.tagStart!==zn||d.anchorStart!==zn)&&(r===33||r===38)){let n=yn(e),r=t+1;if(Aie(e,e.position-e.lineStart,r,d)&&e.events[n.eventsLength]?.type===Pn.MAPPING)return e.depth--,!0;bn(e,n)}if(s&&(r===33&&d.tagStart!==zn||r===38&&d.anchorStart!==zn)||!yie(e,d,n===Bn)&&!bie(e,d))break;u===null&&(u=i),Dn(e,!0)?(s=!0,p=m,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):p=!1}if(p&&=s||i,o===1||n===Vn){let r=n===Bn||n===Kae?t:t+1,i=e.position-e.lineStart;if(o===1){if(p&&(kie(e,i,d)||Aie(e,i,r,d))||Oie(e,r,d))l=!0;else{let t=e.input.charCodeAt(e.position);if(u!==null&&a&&m&&!p&&t!==124&&t!==62){let t=yn(e),n=u.position-u.lineStart;bn(e,u),Aie(e,n,r,lie())&&e.events[t.eventsLength]?.type===Pn.MAPPING?l=!0:bn(e,t)}!l&&(f&&Tie(e,r,d)||Cie(e,r,d)||wie(e,r,d)||xie(e,d)||Die(e,r,n,d))&&(l=!0)}}else o===0&&(l=p&&kie(e,i,d))}return f&&=!l,!l&&(d.anchorStart!==zn||d.tagStart!==zn||f)&&(gn(e,zn,zn,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Fn.PLAIN),l=!0),e.depth--,l||d.anchorStart!==zn||d.tagStart!==zn}function jie(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!wn(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&xn(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!Sn(e.input.charCodeAt(e.position));){for(;Cn(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Sn(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!wn(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(Sn(e.input.charCodeAt(e.position))&&mie(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&xn(e,`duplication of %YAML directive`),r.length!==1&&xn(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&xn(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&xn(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&xn(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Yae.test(t)||xn(e,`ill-formed tag handle (first argument) of the TAG directive`),Gae.call(e.tagHandlers,t)&&xn(e,`there is a previously declared suffix for "${t}" tag handle`),eoe.test(n)||xn(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Mie(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(Dn(e,!0);jie(e);)t=!0,Dn(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Tn(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,Dn(e,!0),i=e.line>t}else t&&xn(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&On(e)){e.position+=3,Dn(e,!0);return}if(iie(e,n,!1),An(e,e.lineIndent-1,Vn,!1,i,i)||vn(e),Dn(e,!0),e.position===e.lineStart&&On(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,Dn(e,!0),e.line===t&&e.position=r.length));){let e=r.position;Mie(r),r.position===e&&xn(r,`can not read a document`)}return r.events}function Pie(e,t={}){let n={...noe,...t},r=String(e),i=Object.keys(toe),a=Object.keys(Wae);return rie(Nie(r,wre(n,i)),{...wre(n,a),source:r})}function Fie(e,t){let n=Pie(e,t);if(n.length===0)throw new Nn(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new Nn(`expected a single document in the stream, but found more`)}function Iie(e,t){return!!(e&1<i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=Fn.FOLDED_BLOCK:n&&(e.style=Fn.LITERAL_BLOCK)}function Uie(e){e.style===Fn.PLAIN&&!Iie(e.allowedStylesMask,Fn.PLAIN)&&(e.style=Lie(e))}function Wie(e){Iie(e.allowedStylesMask,e.style)||(e.style=Fn.DOUBLE_QUOTED)}var jn,Gie,Kie,qie,Jie,Yie,Xie,Zie,Qie,$ie,eae,tae,nae,rae,iae,aae,oae,sae,cae,lae,uae,dae,fae,pae,mae,hae,gae,_ae,vae,yae,bae,xae,Sae,Cae,wae,Tae,Eae,Dae,Oae,kae,Aae,jae,Mae,Nae,Mn,Pae,Fae,Iae,Lae,Nn,Pn,Fn,In,Ln,Rae,zae,Bae,Vae,Hae,Rn,Uae,Wae,zn,Gae,Bn,Kae,qae,Vn,Jae,Hn,Yae,Xae,Zae,Qae,$ae,eoe,toe,noe,roe,ioe,aoe,ooe,soe,coe,Un,loe,uoe,doe,foe,poe,Wn,moe,hoe,goe,_oe,voe,yoe,boe,xoe,Soe,Coe,woe,Toe,Eoe,Doe,Ooe=o((()=>{jn=Symbol(`NOT_RESOLVED`),Gie=mn(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),Kie=[``,`~`,`null`,`Null`,`NULL`],qie=mn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Kie.indexOf(e)===-1?jn:null,identify:e=>e===null,represent:()=>`null`}),Jie=mn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:jn,identify:e=>e===null,represent:()=>`null`}),Yie=[``,`~`,`null`,`Null`,`NULL`],Xie=mn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Yie.indexOf(e)===-1?jn:null,identify:e=>e===null,represent:()=>`null`}),Zie=[`true`,`True`,`TRUE`],Qie=[`false`,`False`,`FALSE`],$ie=mn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>Zie.indexOf(e)!==-1||Qie.indexOf(e)===-1&&jn,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),eae=[`true`],tae=[`false`],nae=mn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>eae.indexOf(e)!==-1||tae.indexOf(e)===-1&&jn,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),rae=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],iae=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],aae=mn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>rae.indexOf(e)!==-1||iae.indexOf(e)===-1&&jn,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),oae=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),sae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),cae=mn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:cre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),lae=RegExp(`^-?(?:0|[1-9][0-9]*)$`),uae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),dae=mn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:ure,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),fae=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),pae=mn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:fre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),mae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),hae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),gae=mn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:pre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:mre}),_ae=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),vae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),yae=mn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:hre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:gre}),bae=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),xae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Sae=mn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:_re,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:vre}),Cae=mn(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:jn,identify:()=>!1}),wae=/^[A-Za-z0-9+/]*={0,2}$/,Tae=mn(`tag:yaml.org,2002:binary`,{resolve:yre,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:bre}),Eae=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Dae=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]))?))?$`),Oae=mn(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Sre,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),kae=are(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),Aae=are(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Cre(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),jae=are(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Mae=ore(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Cre,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Nae=ore(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),Mn=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=Dre(e),n=[],r=Tre(),i=Ere();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let l=r.scalar[`tag:yaml.org,2002:str`];if(!l)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=l,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==jn)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},Pae=new Mn([Gie,kae,Mae]),new Mn([...Pae.tags,Jie,nae,dae,yae]),Fae=new Mn([...Pae.tags,qie,$ie,cae,gae]),Iae=new Mn([...Pae.tags,Xie,aae,pae,Sae,Oae,Cae,Tae,Aae,jae,Nae]),Iae.withTags({...pae,resolve:(e,t,n)=>{let r=pae.resolve(e,t,n);return r===jn?cae.resolve(e,t,n):r}},{...Sae,resolve:(e,t,n)=>{let r=Sae.resolve(e,t,n);return r===jn?gae.resolve(e,t,n):r}}),ore(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Cre(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),ore(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Cre,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Ore(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Ore(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Lae={maxLength:79,indent:1,linesBefore:3,linesAfter:2},Nn=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Mre(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Mre(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,doe=`[,\\[\\]{}]`,foe=Un,poe=`(?:(?!${doe})${Un})`,Wn=`(?:(?:(?!${uoe})${Un})|[?:-](?=${foe}))`,moe=`(?:(?:(?!${uoe})${Un})|[?:-](?=${poe}))`,hoe=`(?:(?:(?![:#])${foe})|:(?=${foe}))#*`,goe=`(?:(?:(?![:#])${poe})|:(?=${poe}))#*`,_oe=`(?:${soe}*${hoe})*`,voe=`(?:${soe}*${goe})*`,yoe=`${Wn}#*${_oe}`,boe=`${moe}#*${voe}`,xoe=yoe,Soe=boe,Coe=`\\n+${hoe}${_oe}`,woe=`\\n+${goe}${voe}`,Toe=`${yoe}(?:${Coe})*`,Eoe=`${boe}(?:${woe})*`,RegExp(`^(?:${Toe})$`,`u`),RegExp(`^(?:${Eoe})$`,`u`),RegExp(`^(?:${xoe})$`,`u`),RegExp(`^(?:${Soe})$`,`u`),RegExp(`^(?:${loe})*$`,`u`),RegExp(`^(?:${loe}|\\n)*$`,`u`),RegExp(`^(?:${coe}|\\n)*$`,`u`),Doe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(roe).map(e=>Reflect.get(roe,e)),tagBeforeAnchor:!1},{...Doe},Pn.DOCUMENT,Pn.SEQUENCE,Pn.MAPPING,Pn.SCALAR,Pn.ALIAS,Pn.POP,Fn.PLAIN,Fn.SINGLE_QUOTED,Fn.DOUBLE_QUOTED,Fn.LITERAL_BLOCK,Fn.FOLDED_BLOCK,In.BLOCK,In.FLOW,Ln.CLIP,Ln.STRIP,Ln.KEEP})),koe=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var l,u,d,f,p,m,h,g=!1,_=e.bMarks[a]+e.tShift[a],v=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(l=_+1;l<=v;l++)if(n[(l-_)%i]!==e.src[l]){h=l+1;break}if(d=Math.floor((l-_)/i),d<3)return!1;if(l-=(l-_)%i,s)return!0;for(u=a;u++,!(u>=o||e.src.slice(_,v)===`...`||(_=e.bMarks[u]+e.tShift[u],v=e.eMarks[u],_=4)){for(l=_+1;l<=v&&n[(l-_)%i]===e.src[l];l++);if(!(Math.floor((l-_)/i){let t=``;e.use(Ioe.default,n=>{let r=joe(n);t=r===void 0?``:Moe(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`\n${t}\n
    \n`}}function joe(e){try{let t=Fie(e,{schema:Fae});if(typeof t==`object`&&t&&!Array.isArray(t)&&Object.keys(t).length>0)return t}catch{}}function Moe(e,t){let n=Object.entries(e);return n.length===0?``:`\n${n.map(([e,n])=>`${t(e)}${Noe(n,t)}`).join(` +`)}\n`}function Noe(e,t){if(e==null)return``;if(e instanceof Date)return t(Poe(e));if(Array.isArray(e))return e.every(Foe)?e.map(e=>Noe(e,t)).join(`, `):`
      ${e.map(e=>`
    • ${Noe(e,t)}
    • `).join(``)}
    `;if(typeof e==`object`){let n=Moe(e,t);return n===``?``:`${n}
    `}return t(String(e))}function Poe(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function Foe(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var Ioe,Loe=o((()=>{Ooe(),Ioe=d(koe())}));function Roe(e){e.core.ruler.after(`anchor`,`markedit_anchors`,e=>{let t=e.src.split(` +`);e.tokens.forEach((n,r)=>{let i=e.tokens[r+1];if(n.type!==`heading_open`||i?.type!==`inline`||n.map===null)return;let a=t[n.map[0]],o=n.markup.startsWith(`#`)?a.slice(a.indexOf(n.markup)).replace(/ {0,3}#+ +/,``):i.content.split(` +`)[0].trim(),s=(o.length>64?o.substring(0,64)+`...`:o).normalize(`NFKD`).trim().toLowerCase().replace(/[^\p{Letter}\p{Number}\s\-_]/gu,``).replace(/\s+/g,`-`);n.attrSet(Voe,s)})})}function zoe(e,t,n){if(!t.startsWith(`#`))return;let r=Boe(t.substring(1)),i=r.toLowerCase();return e.find(e=>n(e,`data-markedit-anchor`)===null&&n(e,`id`)===r)??e.find(e=>n(e,`data-markedit-anchor`)===i)??e.find(e=>n(e,`id`)===r)??e.find(e=>{let t=n(e,`id`);return t!==null&&Boe(String(t))===r})}function Boe(e){try{return decodeURIComponent(e)}catch{return e}}var Voe,Hoe=o((()=>{Voe=`data-markedit-anchor`}));function Gn(e,t={}){return e??t}function Uoe(e,t=!0){return e??t}function Woe(e){if(e){if(!Array.isArray(e)||!e.every(e=>typeof e==`object`&&!!e&&`left`in e&&typeof e.left==`string`&&`right`in e&&typeof e.right==`string`&&`display`in e&&typeof e.display==`boolean`))throw TypeError(`Invalid mathDelimiters setting: expected an array of { left: string, right: string, display: boolean }`);return e}}function Goe(e,t,n){if(e==null)return n;let r=[`default`,`base`,`dark`,`forest`,`neutral`,`neo`,`neo-dark`,`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`null`].find(t=>t===e);if(r===void 0)throw TypeError(`Invalid mermaid.${t} setting: expected a supported Mermaid theme name`);return r}var Koe,Kn,qoe,Joe,Yoe,Xoe,Zoe,Qoe,$oe,ese,tse,nse,rse,qn,ise,ase,ose,sse,cse,lse,use,Jn=o((()=>{Koe={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},Kn=Gn(Gn(p.MarkEdit.userSettings)[Koe.rootValueKey]),qoe=Gn(Kn.changeMode),Joe=Gn(Kn.markdownIt),Yoe=Gn(Kn.mermaid),Xoe=Uoe(Kn.syncScroll),Zoe=Uoe(Kn.hidePreviewButtons),Qoe=Uoe(Kn.syntaxAutoDetect,!1),$oe=Uoe(Kn.imageHoverPreview,!1),ese=Uoe(Kn.inlineImages,!1),tse=Array.isArray(Kn.inlineRendering)?Kn.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):ese?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],nse=Kn.themeName??`github`,rse=nse===`none`,qn=Kn.styledHtmlColorScheme??Kn.styledHtmlTheme??`auto`,ise=Woe(Kn.mathDelimiters),ase=qoe.modes??Koe.defaultModes,ose=Gn(qoe.hotKey),sse=Joe.preset??Koe.defaultPreset,cse=Gn(Joe.options),lse=Goe(Yoe.lightTheme,`lightTheme`,`default`),use=Goe(Yoe.darkTheme,`darkTheme`,`dark`)})),Yn,N,Xn,Zn=o((()=>{Yn=Object.defineProperty,N=(e,t)=>Yn(e,`name`,{value:t,configurable:!0}),Xn=(e,t)=>{for(var n in t)Yn(e,n,{get:t[n],enumerable:!0})}})),dse=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|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,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e){Zn(),fse=d(dse(),1),Qn={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:N((...e)=>{},`trace`),debug:N((...e)=>{},`debug`),info:N((...e)=>{},`info`),warn:N((...e)=>{},`warn`),error:N((...e)=>{},`error`),fatal:N((...e)=>{},`fatal`)},pse=N(function(e=`fatal`){let t=Qn.fatal;typeof e==`string`?e.toLowerCase()in Qn&&(t=Qn[e]):typeof e==`number`&&(t=e),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},t<=Qn.fatal&&(P.fatal=console.error?console.error.bind(console,$n(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,$n(`FATAL`))),t<=Qn.error&&(P.error=console.error?console.error.bind(console,$n(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,$n(`ERROR`))),t<=Qn.warn&&(P.warn=console.warn?console.warn.bind(console,$n(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,$n(`WARN`))),t<=Qn.info&&(P.info=console.info?console.info.bind(console,$n(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,$n(`INFO`))),t<=Qn.debug&&(P.debug=console.debug?console.debug.bind(console,$n(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,$n(`DEBUG`))),t<=Qn.trace&&(P.trace=console.debug?console.debug.bind(console,$n(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,$n(`TRACE`)))},`setLogLevel`),$n=N(e=>`%c${(0,fse.default)().format(`ss.SSS`)} : ${e} : `,`format`)})),tr,mse=o((()=>{tr={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return tr.hue2rgb(a,i,e+1/3)*255;case`g`:return tr.hue2rgb(a,i,e)*255;case`b`:return tr.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return l*100;switch(i){case e:return((t-n)/s+(t{hse={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),_se,vse=o((()=>{_se={dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),nr,rr=o((()=>{mse(),gse(),vse(),nr={channel:tr,lang:hse,unit:_se}})),ir,ar,yse=o((()=>{rr(),ir={};for(let e=0;e<=255;e++)ir[e]=nr.unit.dec2hex(e);ar={ALL:0,RGB:1,HSL:2}})),bse,xse=o((()=>{yse(),bse=class{constructor(){this.type=ar.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=ar.ALL}is(e){return this.type===e}}})),Sse,Cse=o((()=>{rr(),xse(),yse(),Sse=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new bse}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=ar.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=nr.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=nr.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=nr.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=nr.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=nr.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=nr.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(ar.HSL)&&t!==void 0?t:(this._ensureHSL(),nr.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(ar.HSL)&&t!==void 0?t:(this._ensureHSL(),nr.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(ar.HSL)&&t!==void 0?t:(this._ensureHSL(),nr.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(ar.RGB)&&t!==void 0?t:(this._ensureRGB(),nr.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(ar.RGB)&&t!==void 0?t:(this._ensureRGB(),nr.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(ar.RGB)&&t!==void 0?t:(this._ensureRGB(),nr.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(ar.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ar.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ar.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ar.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ar.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ar.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),or,wse=o((()=>{Cse(),or=new Sse({r:0,g:0,b:0,a:0},`transparent`)})),sr,Tse=o((()=>{wse(),yse(),sr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(sr.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,l=o?8:4,u=a?0:-1,d=o?255:15;return or.set({r:(r>>l*(u+3)&d)*s,g:(r>>l*(u+2)&d)*s,b:(r>>l*(u+1)&d)*s,a:a?(r&d)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${ir[Math.round(t)]}${ir[Math.round(n)]}${ir[Math.round(r)]}${ir[Math.round(i*255)]}`:`#${ir[Math.round(t)]}${ir[Math.round(n)]}${ir[Math.round(r)]}`}}})),cr,Ese=o((()=>{rr(),wse(),cr={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:e=>{let t=e.match(cr.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return nr.channel.clamp.h(parseFloat(e)*.9);case`rad`:return nr.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return nr.channel.clamp.h(parseFloat(e)*360)}}return nr.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(cr.re);if(!n)return;let[,r,i,a,o,s]=n;return or.set({h:cr._hue2deg(r),s:nr.channel.clamp.s(parseFloat(i)),l:nr.channel.clamp.l(parseFloat(a)),a:o?nr.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${nr.lang.round(t)}, ${nr.lang.round(n)}%, ${nr.lang.round(r)}%, ${i})`:`hsl(${nr.lang.round(t)}, ${nr.lang.round(n)}%, ${nr.lang.round(r)}%)`}}})),lr,Dse=o((()=>{Tse(),lr={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:e=>{e=e.toLowerCase();let t=lr.colors[e];if(t)return sr.parse(t)},stringify:e=>{let t=sr.stringify(e);for(let e in lr.colors)if(lr.colors[e]===t)return e}}})),ur,Ose=o((()=>{rr(),wse(),ur={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:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(ur.re);if(!n)return;let[,r,i,a,o,s,l,u,d]=n;return or.set({r:nr.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:nr.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:nr.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?nr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${nr.lang.round(t)}, ${nr.lang.round(n)}, ${nr.lang.round(r)}, ${nr.lang.round(i)})`:`rgb(${nr.lang.round(t)}, ${nr.lang.round(n)}, ${nr.lang.round(r)})`}}})),dr,fr=o((()=>{Tse(),Ese(),Dse(),Ose(),yse(),dr={format:{keyword:lr,hex:sr,rgb:ur,rgba:ur,hsl:cr,hsla:cr},parse:e=>{if(typeof e!=`string`)return e;let t=sr.parse(e)||ur.parse(e)||cr.parse(e)||lr.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ar.HSL)||e.data.r===void 0?cr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?ur.stringify(e):sr.stringify(e)}})),kse,Ase=o((()=>{rr(),fr(),kse=(e,t)=>{let n=dr.parse(e);for(let e in t)n[e]=nr.channel.clamp[e](t[e]);return dr.stringify(n)}})),pr,jse=o((()=>{rr(),wse(),fr(),Ase(),pr=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return kse(e,{a:t});let i=or.set({r:nr.channel.clamp.r(e),g:nr.channel.clamp.g(t),b:nr.channel.clamp.b(n),a:nr.channel.clamp.a(r)});return dr.stringify(i)}})),mr,Mse=o((()=>{rr(),fr(),mr=(e,t)=>nr.lang.round(dr.parse(e)[t])})),Nse,Pse=o((()=>{rr(),fr(),Nse=e=>{let{r:t,g:n,b:r}=dr.parse(e),i=.2126*nr.channel.toLinear(t)+.7152*nr.channel.toLinear(n)+.0722*nr.channel.toLinear(r);return nr.lang.round(i)}})),Fse,Ise=o((()=>{Pse(),Fse=e=>Nse(e)>=.5})),hr,Lse=o((()=>{Ise(),hr=e=>!Fse(e)})),Rse,zse=o((()=>{rr(),fr(),Rse=(e,t,n)=>{let r=dr.parse(e),i=r[t],a=nr.channel.clamp[t](i+n);return i!==a&&(r[t]=a),dr.stringify(r)}})),gr,Bse=o((()=>{zse(),gr=(e,t)=>Rse(e,`l`,t)})),_r,Vse=o((()=>{zse(),_r=(e,t)=>Rse(e,`l`,-t)})),Hse,Use=o((()=>{zse(),Hse=(e,t)=>Rse(e,`a`,-t)})),vr,Wse=o((()=>{fr(),Ase(),vr=(e,t)=>{let n=dr.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return kse(e,r)}})),Gse,Kse=o((()=>{fr(),jse(),Gse=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=dr.parse(e),{r:s,g:l,b:u,a:d}=dr.parse(t),f=n/100,p=f*2-1,m=o-d,h=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,g=1-h,_=r*h+s*g,v=i*h+l*g,y=a*h+u*g,b=o*f+d*(1-f);return pr(_,v,y,b)}})),yr,qse=o((()=>{fr(),Kse(),yr=(e,t=100)=>{let n=dr.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Gse(n,e,t)}})),Jse=o((()=>{jse(),Mse(),Lse(),Bse(),Vse(),Use(),Wse(),qse()})),br=o((()=>{Jse()}));function Yse(e,t){this.v=e,this.k=t}function Xse(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:Nr;if(uce&&uce(e,null),!Ar(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(dce(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ice(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:ele(),t=e=>cce(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==Vr.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=wr(f,`cloneNode`),m=wr(f,`remove`),h=wr(f,`removeAttributeNode`),g=wr(f,`nextSibling`),_=wr(f,`childNodes`),v=wr(f,`parentNode`),y=wr(f,`shadowRoot`),b=wr(f,`attributes`),x=o&&o.prototype?wr(o.prototype,`nodeType`):null,S=o&&o.prototype?wr(o.prototype,`nodeName`):null,C=o&&o.prototype?wr(o.prototype,`ownerDocument`):null,w=function(e){return x?x(e):e.nodeType},T=function(e){return S?S(e):e.nodeName},E=oce(f,`namespaceURI`),D=function(e){return E?E(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let O,k=``,A,j=!1,M=0,ee=function(){if(M>0)throw zr(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},te=function(e){ee(),M++;try{return O.createHTML(e)}finally{M--}},ne=function(e){ee(),M++;try{return O.createScriptURL(e)}finally{M--}},re=function(){return j||=(A=tle(d,i),!0),A},ie=n,ae=ie.implementation,oe=ie.createNodeIterator,se=ie.createDocumentFragment,ce=ie.getElementsByTagName,le=r.importNode,ue=nle();t.isSupported=typeof lce==`function`&&typeof v==`function`&&ae&&ae.createHTMLDocument!==void 0;let de=zce,fe=Bce,pe=Vce,me=Hce,he=Uce,ge=Gce,_e=Kce,ve=Jce,ye=Wce,be=null,xe=Sr({},[...kce,...Ace,...jce,...Nce,...Fce]),Se=null,Ce=Sr({},[...Ice,...Lce,...Rce,...Br]),we=Object.seal(Dr(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}})),Te=null,Ee=null,De=Object.seal(Dr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Oe=!0,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!1,Ie=null,Le=null,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=`user-content-`,Ge=!0,Ke=!1,qe=null,Je={},Ye=null,Xe=Sr({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ze=null,Qe=Sr({},[`audio`,`video`,`img`,`source`,`image`,`track`]),$e=null,et=Sr({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),tt=`http://www.w3.org/1998/Math/MathML`,nt=`http://www.w3.org/2000/svg`,rt=`http://www.w3.org/1999/xhtml`,it=rt,at=!1,ot=null,st=Sr({},[tt,nt,rt],Pr),ct=Tr([`mi`,`mo`,`mn`,`ms`,`mtext`]),lt=Sr({},ct),ut=Tr([`annotation-xml`]),dt=Sr({},ut),ft=Sr({},[`title`,`style`,`font`,`a`,`script`]),pt=null,mt=[`application/xhtml+xml`,`text/html`],ht=null,gt=null,_t=n.createElement(`form`),vt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(gt&>===e)return;(!e||typeof e!=`object`)&&(e={}),e=Cr(e),pt=mt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ht=pt===`application/xhtml+xml`?Pr:Nr,be=Hr(e,`ALLOWED_TAGS`,xe,{transform:ht}),Se=Hr(e,`ALLOWED_ATTR`,Ce,{transform:ht}),ot=Hr(e,`ALLOWED_NAMESPACES`,st,{transform:Pr}),$e=Hr(e,`ADD_URI_SAFE_ATTR`,et,{transform:ht,base:et}),Ze=Hr(e,`ADD_DATA_URI_TAGS`,Qe,{transform:ht,base:Qe}),Ye=Hr(e,`FORBID_CONTENTS`,Xe,{transform:ht}),Te=Hr(e,`FORBID_TAGS`,Cr({}),{transform:ht}),Ee=Hr(e,`FORBID_ATTR`,Cr({}),{transform:ht}),Je=Ir(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Cr(e.USE_PROFILES):e.USE_PROFILES:!1,Oe=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.SAFE_FOR_XML!==!1,Pe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Ke=e.IN_PLACE||!1,ye=sce(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Wce,it=typeof e.NAMESPACE==`string`?e.NAMESPACE:rt,lt=rle(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Sr({},ct)),dt=rle(e,`HTML_INTEGRATION_POINTS`,()=>Sr({},ut));let t=rle(e,`CUSTOM_ELEMENT_HANDLING`,()=>Dr(null));if(we=Dr(null),Ir(t,`tagNameCheck`)&&vt(t.tagNameCheck)&&(we.tagNameCheck=t.tagNameCheck),Ir(t,`attributeNameCheck`)&&vt(t.attributeNameCheck)&&(we.attributeNameCheck=t.attributeNameCheck),Ir(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(we.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Er(we),Me&&(ke=!1),Be&&(ze=!0),Je&&(be=Sr({},Fce),Se=Dr(null),Je.html===!0&&(Sr(be,kce),Sr(Se,Ice)),Je.svg===!0&&(Sr(be,Ace),Sr(Se,Lce),Sr(Se,Br)),Je.svgFilters===!0&&(Sr(be,jce),Sr(Se,Lce),Sr(Se,Br)),Je.mathMl===!0&&(Sr(be,Nce),Sr(Se,Rce),Sr(Se,Br))),De.tagCheck=null,De.attributeCheck=null,Ir(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?De.tagCheck=e.ADD_TAGS:Ar(e.ADD_TAGS)&&(be===xe&&(be=Cr(be)),Sr(be,e.ADD_TAGS,ht))),Ir(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?De.attributeCheck=e.ADD_ATTR:Ar(e.ADD_ATTR)&&(Se===Ce&&(Se=Cr(Se)),Sr(Se,e.ADD_ATTR,ht))),Ir(e,`ADD_FORBID_CONTENTS`)&&Ar(e.ADD_FORBID_CONTENTS)&&(Ye===Xe&&(Ye=Cr(Ye)),Sr(Ye,e.ADD_FORBID_CONTENTS,ht)),Ge&&(be[`#text`]=!0),Pe&&Sr(be,[`html`,`head`,`body`]),be.table&&(Sr(be,[`tbody`]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw zr(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw zr(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=O;O=e.TRUSTED_TYPES_POLICY;try{k=te(``)}catch(e){throw O=t,e}}else e.TRUSTED_TYPES_POLICY===null?(O=void 0,k=``):(O===void 0&&(O=re()),O&&typeof k==`string`&&(k=te(``)));Tr&&Tr(e),gt=e},bt=Sr({},[...Ace,...jce,...Mce]),xt=Sr({},[...Nce,...Pce]),St=function(e,t,n){return t.namespaceURI===rt?e===`svg`:t.namespaceURI===tt?e===`svg`&&(n===`annotation-xml`||lt[n]):!!bt[e]},Ct=function(e,t,n){return t.namespaceURI===rt?e===`math`:t.namespaceURI===nt?e===`math`&&dt[n]:!!xt[e]},wt=function(e,t,n){return t.namespaceURI===nt&&!dt[n]||t.namespaceURI===tt&&!lt[n]?!1:!xt[e]&&(ft[e]||!bt[e])},Tt=function(e){let t=D(e),n=Nr(T(e)),r=v(e),i,a;return r&&w(r)===Vr.element?(i={namespaceURI:D(r)},a=Nr(T(r))):(i={namespaceURI:it},a=`template`),ot[t]?t===nt?St(n,i,a):t===tt?Ct(n,i,a):t===rt?wt(n,i,a):!!(pt===`application/xhtml+xml`&&ot[t]):!1},Et=function(e){kr(t.removed,{element:e});try{v(e).removeChild(e)}catch{if(m(e),!v(e))throw zr(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Dt=function(e,t,n){try{h(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Ot=function(e){Mt(e);let t=_(e);t&&Or(yce(t),e=>{try{m(e)}catch{}});let n=w(e)===Vr.element?b(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Dt(e,r,i)}},kt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}kr(t.removed,{attribute:r||null,from:n});try{r?h(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(ze||Be)try{Et(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},At=function(e){let t=b(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||Se[ht(i)]||Dt(e,r,i)}},jt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&w(e)===Vr.element){let t=y(e);Bt(t)&&r.push(t)}let i=_(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Mt=function(e){jt(e,e=>{w(e)===Vr.element&&At(e)})},Nt=function(e){let t=[];return jt(e,e=>{t.push(e)},!0),t},Pt=function(e,t){let n=xce();Or(Nt(e),e=>{w(e)===Vr.element&&jr(n,e)}),Or(t,e=>{w(e)===Vr.element&&!Mr(n,e)&&At(e)})},eee=function(e,n){let r=!1;return Or(t.removed,t=>{t.element&&(r||=t.element===e,Mt(t.element))}),Pt(e,n),r},tee=function(e,t){let n=qe,r=null,i=()=>(r||(r=xce(),Or(t,e=>{jr(r,e)})),r);for(let t=0;;t++){let r=Nt(e),a=[e],o=!1;if(Or(r,e=>{w(e)===Vr.documentFragment?kr(a,e):!o&&!Mr(n,e)&&(o=Mr(i(),e))}),!o)return;if(t>=8)throw zr(`the tree kept changing during in-place sanitization; refusing to return it`);Or(a,(t,n)=>{nee(t,n>0,e,i())})}},nee=function(e,t,n,r){let i=Ft(e),a;for(;a=i.nextNode();)Mr(r,a)&&!Mr(qe,a)&&(t&&Ht(ue.uponSanitizeShadowNode,a,null),uee(a,n),qt(a,n),Bt(a.content)&&Jt(a.content))},ree=function(e){qe&&jr(qe,e)},iee=function(e,t){return Ne?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},aee=function(e){Ne&&jt(e,e=>{let t=w(e);if(t===Vr.processingInstruction||t===Vr.comment&&Rr(Xce,e.data)){try{m(e)}catch{}return!1}if(t===Vr.element){let t=e,n=ht(T(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&iee(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},oee=function(e){let t=null,r=null;if(Re)e=``+e;else{let t=Sce(e,/^[\r\n\t ]+/);r=t&&t[0]}pt===`application/xhtml+xml`&&it===rt&&(e=``+e+``);let i=O?te(e):e;if(it===rt)try{t=new u().parseFromString(i,pt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(it,`template`,null);try{t.documentElement.innerHTML=at?k:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),it===rt?ce.call(t,Pe?`html`:`body`)[0]:Pe?t.documentElement:a},Ft=function(e){let t=C?C(e):e.ownerDocument;return oe.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},It=function(e){return e=Fr(e,de,` `),e=Fr(e,fe,` `),e=Fr(e,pe,` `),e},Lt=function(e){Rt(e);let t=e.querySelectorAll?.call(e,`template`);t&&Or(t,e=>{Bt(e.content)&&Lt(e.content)})},Rt=function(e){e.normalize();let t=C?C(e):e.ownerDocument,n=oe.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=It(r.data),r=n.nextNode()},zt=function(e){let t=S?S(e):null;return typeof t!=`string`||ht(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==b(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==x(e)||e.childNodes!==_(e)},Bt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return x(e)===Vr.documentFragment}catch{return!1}},Vt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function Ht(e,n,r){e.length!==0&&Or(e,e=>{e.call(t,n,r,gt)})}let see=function(e,t){return!!(Ne&&e.hasChildNodes()&&!Vt(e.firstElementChild)&&Rr(Yce,e.textContent)&&Rr(Yce,e.innerHTML)||Ne&&$ce[t]&&w(e)===Vr.element&&D(e)===rt&&(Vt(e.firstElementChild)||typeof e.textContent==`string`&&Rr(Yce,e.textContent))||e.nodeType===Vr.processingInstruction||Ne&&e.nodeType===Vr.comment&&Rr(Xce,e.data))},Ut=function(e,t){return e instanceof RegExp?Rr(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},cee=function(e,t,n){if(!Te[t]&&Gt(t)&&Ut(we.tagNameCheck,t))return!1;if(Ge&&!Ye[t]&&!Ye[Nr(t)]){let t=v(e),r=_(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?p(r[a],!0):r[a];t.insertBefore(i,g(e))}}}return Et(e),!0},lee=function(e,t,n,r){return e.length===0?t:t===n||t===r?Cr(t):t},Wt=function(e,t){return e===t||v(e)!==null?!1:(Ke&&Mt(e),!0)},uee=function(e,n){if(ree(e),Ht(ue.beforeSanitizeElements,e,null),Wt(e,n))return!0;if(zt(e))return Et(e),!0;let r=ht(T(e));if(be=lee(ue.uponSanitizeElement,be,xe,Ie),Ht(ue.uponSanitizeElement,e,{tagName:r,allowedTags:be}),Wt(e,n))return!0;if(see(e,r))return Et(e),!0;if(Te[r]||!(De.tagCheck instanceof Function&&De.tagCheck(r))&&!be[r]){let t=cee(e,r,n);return t===!1&&(Ht(ue.afterSanitizeElements,e,null),Wt(e,n))?!0:t}if(w(e)===Vr.element&&!Tt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Rr(Zce,e.innerHTML))return Et(e),!0;if(Me&&e.nodeType===Vr.text){let n=It(e.textContent);e.textContent!==n&&(kr(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ht(ue.afterSanitizeElements,e,null),Wt(e,n)},dee=function(e,t,r){if(Ee[t]||iee(t,e)||He&&(t===`id`||t===`name`)&&(r in n||r in _t))return!1;let i=Se[t]||De.attributeCheck instanceof Function&&De.attributeCheck(t,e);return ke&&Rr(me,t)||Oe&&Rr(he,t)?!0:i?$e[t]||Rr(ye,Fr(r,_e,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Cce(r,`data:`)===0&&Ze[e]||Ae&&!Rr(ge,Fr(r,_e,``))?!0:!r:Gt(e)&&Ut(we.tagNameCheck,e)&&Ut(we.attributeNameCheck,t,e)||t===`is`&&we.allowCustomizedBuiltInElements&&Ut(we.tagNameCheck,r)},fee=Sr({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Gt=function(e){return!fee[Nr(e)]&&Rr(ve,e)},Kt=function(e,t,n,r){if(O&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return te(r);case`TrustedScriptURL`:return ne(r)}return r},pee=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!zt(e)||(Et(e),!1)}catch{return kt(t,e),!1}},mee=function(e,t){return Ne&&Rr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Nr(e)===`attributename`&&Sce(t,`href`)!==null},qt=function(e,n){if(Ht(ue.beforeSanitizeAttributes,e,null),Wt(e,n))return;let r=e.attributes;if(!r||zt(e))return;Se=lee(ue.uponSanitizeAttribute,Se,Ce,Le);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0},a=r.length,o=ht(e.nodeName);for(;a--;){let n=r[a],s=n.name,l=n.namespaceURI,u=n.value,d=ht(s),f=u,p=s===`value`?f:wce(f),m=!1;if(i.attrName=d,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,Ht(ue.uponSanitizeAttribute,e,i),p=i.attrValue,Ue&&(d===`id`||d===`name`)&&Cce(p,We)!==0&&(kt(s,e,n),p=We+p,m=!0),mee(s,p)){kt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){kt(s,e,n);continue}if(!je&&Rr(Qce,p)){kt(s,e,n);continue}if(Me&&(p=It(p)),!dee(o,d,p)){kt(s,e,n);continue}p=Kt(o,d,l,p),p!==f&&pee(e,s,l,p)&&m&&vce(t.removed)}}Ht(ue.afterSanitizeAttributes,e,null),Wt(e,n)},Jt=function(e){let t=null,n=Ft(e);for(Ht(ue.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ht(ue.uponSanitizeShadowNode,t,null),uee(t,e),qt(t,e),Bt(t.content)&&Jt(t.content),w(t)===Vr.element){let e=y(t);Bt(e)&&(Yt(e),Jt(e))}Me&&Rt(e),Ht(ue.afterSanitizeShadowDOM,e,null)},Yt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Jt(e.shadow);continue}let n=e.node,r=w(n)===Vr.element,i=_(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=S?S(n):null;if(typeof e==`string`&&ht(e)===`template`){let e=n.content;Bt(e)&&t.push({node:e,shadow:null})}}if(r){let e=y(n);Bt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(at=!e,at&&(e=``),typeof e!=`string`&&!Vt(e)&&(e=ace(e),typeof e!=`string`))throw zr(`dirty is not a string, aborting`);if(!t.isSupported)return e;Fe?(be=Ie,Se=Le):yt(n),(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&(be=Cr(be)),ue.uponSanitizeAttribute.length>0&&(Se=Cr(Se)),t.removed=[];let l=Ke&&typeof e!=`string`&&Vt(e),u=[],d=qe;if(l){aee(e);let t=T(e);if(typeof t==`string`){let n=ht(t);if(!be[n]||Te[n])throw Ot(e),zr(`root node is forbidden and cannot be sanitized in-place`)}if(zt(e))throw Ot(e),zr(`root node is clobbered and cannot be sanitized in-place`);u=Nt(e),qe=xce()}else if(Vt(e))i=oee(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===Vr.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Yt(i);else{if(!ze&&!Me&&!Pe&&e.indexOf(`<`)===-1)return O&&Ve?te(e):e;if(i=oee(e),!i)return ze?null:Ve?k:``}i&&Re&&Et(i.firstChild);let f=l?e:i;try{l&&Yt(e);let t=Ft(f);for(;o=t.nextNode();)uee(o,f),qt(o,f),Bt(o.content)&&Jt(o.content);l&&tee(e,u)}catch(t){throw l&&(Ot(e),eee(e,u)),t}finally{qe=d}if(l){if(eee(e,u))throw zr(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Me&&Lt(e),e}if(ze){if(Me&&Lt(i),Be)for(s=se.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Se.shadowroot||Se.shadowrootmode)&&(s=le.call(r,s,!0)),s}let p=Pe?i.outerHTML:i.innerHTML;return Pe&&be[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Rr(qce,i.ownerDocument.doctype.name)&&(p=` +`+p),Me&&(p=It(p)),O&&Ve?te(p):p},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(e),Fe=!0,Ie=be,Le=Se},t.clearConfig=function(){gt=null,Fe=!1,Ie=null,Le=null,O=A,k=``},t.isValidAttribute=function(e,t,n){gt||yt({});let r=ht(e),i=ht(t);return typeof n==`string`&&(mee(t,n)||!je&&Rr(Qce,n))?!1:dee(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Ir(ue,e)&&kr(ue[e],t)},t.removeHook=function(e,t){if(Ir(ue,e)){if(t!==void 0){let n=_ce(ue[e],t);return n===-1?void 0:bce(ue[e],n,1)[0]}return vce(ue[e])}},t.removeHooks=function(e){Ir(ue,e)&&(ue[e]=[])},t.removeAllHooks=function(){ue=nle()},t}var lce,uce,dce,fce,pce,Tr,Er,Dr,mce,hce,gce,Or,_ce,vce,kr,yce,bce,Ar,xce,jr,Mr,Nr,Pr,Sce,Fr,Cce,wce,Tce,Ece,Dce,Oce,Ir,Lr,Rr,zr,kce,Ace,jce,Mce,Nce,Pce,Fce,Ice,Lce,Rce,Br,zce,Bce,Vce,Hce,Uce,Wce,Gce,Kce,qce,Jce,Yce,Xce,Zce,Qce,Vr,$ce,ele,tle,nle,Hr,rle,Ur,Wr=o((()=>{nce.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},nce.prototype.next=function(e){return this._invoke(`next`,e)},nce.prototype.throw=function(e){return this._invoke(`throw`,e)},nce.prototype.return=function(e){return this._invoke(`return`,e)},lce=Object.entries,uce=Object.setPrototypeOf,dce=Object.isFrozen,fce=Object.getPrototypeOf,pce=Object.getOwnPropertyDescriptor,Tr=Object.freeze,Er=Object.seal,Dr=Object.create,mce=typeof Reflect<`u`&&Reflect,hce=mce.apply,gce=mce.construct,Tr||=function(e){return e},Er||=function(e){return e},hce||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},gce||=function(e){return new e(...[...arguments].slice(1))},Or=xr(Array.prototype.forEach),Array.prototype.indexOf,_ce=xr(Array.prototype.lastIndexOf),vce=xr(Array.prototype.pop),kr=xr(Array.prototype.push),yce=xr(Array.prototype.slice),bce=xr(Array.prototype.splice),Ar=Array.isArray,xce=rce(Set),jr=xr(Set.prototype.add),Mr=xr(Set.prototype.has),Nr=xr(String.prototype.toLowerCase),Pr=xr(String.prototype.toString),Sce=xr(String.prototype.match),Fr=xr(String.prototype.replace),Cce=xr(String.prototype.indexOf),wce=xr(String.prototype.trim),Tce=xr(Number.prototype.toString),Ece=xr(Boolean.prototype.toString),Dce=typeof BigInt>`u`?null:xr(BigInt.prototype.toString),Oce=typeof Symbol>`u`?null:xr(Symbol.prototype.toString),Ir=xr(Object.prototype.hasOwnProperty),Lr=xr(Object.prototype.toString),Rr=xr(RegExp.prototype.test),zr=rce(TypeError),kce=Tr(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ace=Tr(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),jce=Tr([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Mce=Tr([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Nce=Tr(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Pce=Tr([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Fce=Tr([`#text`]),Ice=Tr(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Lce=Tr(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Rce=Tr(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Br=Tr([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),zce=Er(/{{[\w\W]*|^[\w\W]*}}/g),Bce=Er(/<%[\w\W]*|^[\w\W]*%>/g),Vce=Er(/\${[\w\W]*/g),Hce=Er(/^data-[\-\w.\u00B7-\uFFFF]+$/),Uce=Er(/^aria-[\-\w]+$/),Wce=Er(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gce=Er(/^(?:\w+script|data):/i),Kce=Er(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qce=Er(/^html$/i),Jce=Er(/^[a-z][.\w]*(-[.\w]+)+$/i),Yce=Er(/<[/\w!]/g),Xce=Er(/<[/\w]/g),Zce=Er(/<\/no(script|embed|frames)/i),Qce=Er(/\/>/i),Vr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$ce=Tr(Sr({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),ele=function(){return typeof window>`u`?null:window},tle=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},nle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Hr=function(e,t,n,r){return Ir(e,t)&&Ar(e[t])?Sr(r.base?Cr(r.base):{},e[t],r.transform):n},rle=function(e,t,n){let r=Ir(e,t)?e[t]:void 0;return r&&typeof r==`object`?Cr(r):n()},Ur=cce()})),Gr=l({ParseError:()=>ei,SETTINGS_SCHEMA:()=>ai,__defineFunction:()=>qr,__defineMacro:()=>Qr,__defineSymbol:()=>F,__domTree:()=>Spe,__parse:()=>vpe,__renderToDomTree:()=>R,__renderToHTMLTree:()=>bpe,__setFontMetrics:()=>fle,default:()=>Cpe,render:()=>gpe,renderToString:()=>_pe,version:()=>xpe});function ile(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function ale(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:ile(Array.isArray(e.type)?e.type[0]:e.type)}function ole(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?ale(r):a?a(i):i}function sle(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function cle(e){for(var t=0;t=Yle[t]&&e<=Yle[t+1])return!0;return!1}function lle(e){return`toText`in e}function ule(e){if(e instanceof Ci)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function dle(e){if(e instanceof Si)return e;throw Error(`Expected span but got `+String(e)+`.`)}function fle(e,t){Ei[e]=t}function ple(e,t,n){if(!Ei[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Ei[t][r];if(!i&&e[0]in Oi&&(r=Oi[e[0]].charCodeAt(0),i=Ei[t][r]),!i&&n===`text`&&cle(r)&&(i=Ei[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function mle(e){var t=e>=5?0:e>=3?1:2;if(!ki[t]){var n=ki[t]={cssEmPerMu:Di.quad[t]/18};for(var r of Object.keys(Di))n[r]=Di[r][t]}return ki[t]}function F(e,t,n,r,i,a){Ai[e][i]={font:t,group:n,replace:r},a&&r&&(Ai[e][r]=Ai[e][i])}function Kr(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new ei(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}function qr(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a0&&(a.push(hle(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(hle(o,t));var u;n?(u=hle(wa(n,t,!0),t),u.classes=[`katex-tag`],a.push(u)):i&&a.push(i);var d=sa([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=bi(d.height+d.depth),d.depth&&(f.style.verticalAlign=bi(-d.depth))}return d}function _le(e){return new vi(e)}function vle(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Oa&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Oa&&n.text===`,`}return!1}function yle(e,t,n,r,i){var a=Aa(e,n),o=a.length===1&&a[0]instanceof Da&&ode.has(a[0].type)?a[0]:new Da(`mrow`,a),s=new Da(`annotation`,[new Oa(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new Da(`semantics`,[o,s]),u=new Da(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),sa([i?`katex`:`katex-mathml`],[u])}function ble(e){return wde.has(e)}function Yr(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function xle(e){var t=Sle(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Sle(e){return e.type===`atom`||Tde.has(e.type)?e:null}function Xr(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new ei(t,e);return r}function Cle(e,t){var n=wa(e.body,t,!0);return sa([e.mclass],n,t)}function wle(e,t){var n,r=Aa(e.body,t);return e.mclass===`minner`?n=new Da(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Da(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Da(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}function Tle(e,t,n){var r=Ade[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Ele(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new ei(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[Tle(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=jde()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function Dle(e){return`isMiddle`in e}function Ole(e,t){var n=Sle(e);if(n&&dfe.has(n.text))return n;throw n?new ei(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new ei(`Invalid delimiter type '`+e.type+`'`,e)}function kle(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function Zr(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&!Array.isArray(y?.[y.length-1])&&!(l&&y?.[y.length-1]===!0)&&g.pop(),v.length{for(ei=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(Fle,`-$1`).toLowerCase(),Lle={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Rle=/[&><"']/g,ti=e=>String(e).replace(Rle,e=>Lle[e]),ni=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?ni(e.body[0]):e:e.type===`font`?ni(e.body):e,zle=new Set([`mathord`,`textord`,`atom`]),ri=e=>zle.has(ni(e).type),ii=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},ai={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:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},Ble=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||={};for(var t of Object.keys(ai)){var n=ai[t];n&&ole(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ii(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},oi=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return pi[Ule[this.id]]}sub(){return pi[mi[this.id]]}fracNum(){return pi[Wle[this.id]]}fracDen(){return pi[Gle[this.id]]}cramp(){return pi[Kle[this.id]]}text(){return pi[qle[this.id]]}isTight(){return this.size>=2}},Vle=0,Hle=1,si=2,ci=3,li=4,ui=5,di=6,fi=7,pi=[new oi(Vle,0,!1),new oi(Hle,0,!0),new oi(si,1,!1),new oi(ci,1,!0),new oi(li,2,!1),new oi(ui,2,!0),new oi(di,3,!1),new oi(fi,3,!0)],Ule=[li,ui,li,ui,di,fi,di,fi],mi=[ui,ui,ui,ui,fi,fi,fi,fi],Wle=[si,ci,li,ui,di,fi,di,fi],Gle=[ci,ci,ui,ui,fi,fi,fi,fi],Kle=[Hle,Hle,ci,ci,ui,ui,fi,fi],qle=[Vle,Hle,si,ci,si,ci,si,ci],hi={DISPLAY:pi[Vle],TEXT:pi[si],SCRIPT:pi[li],SCRIPTSCRIPT:pi[di]},Jle=[{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]]}],Yle=[],Jle.forEach(e=>e.blocks.forEach(e=>Yle.push(...e))),gi=e=>e+` `+e,_i=80,Xle=function(e,t){return`M95,`+(622+e+t)+` 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 @@ -47,7 +49,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)+` `+t+`h400000v`+(40+e)+`h-400000z`},zle=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Zle=function(e,t){return`M263,`+(601+e+t)+`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+` @@ -57,7 +59,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)+` `+t+`h400000v`+(40+e)+`h-400000z`},Ble=function(e,t){return`M983 `+(10+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Qle=function(e,t){return`M983 `+(10+e+t)+` 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 @@ -66,7 +68,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)+` `+t+`h400000v`+(40+e)+`h-400000z`},Vle=function(e,t){return`M424,`+(2398+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},$le=function(e,t){return`M424,`+(2398+e+t)+` 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 @@ -76,18 +78,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)+` `+t+` -h400000v`+(40+e)+`h-400000z`},Hle=function(e,t){return`M473,`+(2713+e+t)+` +h400000v`+(40+e)+`h-400000z`},eue=function(e,t){return`M473,`+(2713+e+t)+` 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)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Ule=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Wle=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},tue=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},nue=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` H742v`+r+`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 `+t+`H400000v`+(40+e)+`H742z`},Gle=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Rle(t,wi);break;case`sqrtSize1`:r=zle(t,wi);break;case`sqrtSize2`:r=Ble(t,wi);break;case`sqrtSize3`:r=Vle(t,wi);break;case`sqrtSize4`:r=Hle(t,wi);break;case`sqrtTall`:r=Wle(t,wi,n)}return r},Kle=function(e,t){switch(e){case`⎜`:return Ci(`M291 0 H417 V`+t+` H291z`);case`∣`:return Ci(`M145 0 H188 V`+t+` H145z`);case`∥`:return Ci(`M145 0 H188 V`+t+` H145z`)+Ci(`M367 0 H410 V`+t+` H367z`);case`⎟`:return Ci(`M457 0 H583 V`+t+` H457z`);case`⎢`:return Ci(`M319 0 H403 V`+t+` H319z`);case`⎥`:return Ci(`M263 0 H347 V`+t+` H263z`);case`⎪`:return Ci(`M384 0 H504 V`+t+` H384z`);case`⏐`:return Ci(`M312 0 H355 V`+t+` H312z`);case`‖`:return Ci(`M257 0 H300 V`+t+` H257z`)+Ci(`M478 0 H521 V`+t+` H478z`);default:return``}},qle={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},rue=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Xle(t,_i);break;case`sqrtSize1`:r=Zle(t,_i);break;case`sqrtSize2`:r=Qle(t,_i);break;case`sqrtSize3`:r=$le(t,_i);break;case`sqrtSize4`:r=eue(t,_i);break;case`sqrtTall`:r=nue(t,_i,n)}return r},iue=function(e,t){switch(e){case`⎜`:return gi(`M291 0 H417 V`+t+` H291z`);case`∣`:return gi(`M145 0 H188 V`+t+` H145z`);case`∥`:return gi(`M145 0 H188 V`+t+` H145z`)+gi(`M367 0 H410 V`+t+` H367z`);case`⎟`:return gi(`M457 0 H583 V`+t+` H457z`);case`⎢`:return gi(`M319 0 H403 V`+t+` H319z`);case`⎥`:return gi(`M263 0 H347 V`+t+` H263z`);case`⎪`:return gi(`M384 0 H504 V`+t+` H384z`);case`⏐`:return gi(`M312 0 H355 V`+t+` H312z`);case`‖`:return gi(`M257 0 H300 V`+t+` H257z`)+gi(`M478 0 H521 V`+t+` H478z`);default:return``}},aue={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 @@ -133,10 +135,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Ci(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:Ci(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:Ci(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:Ci(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:gi(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:gi(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:gi(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:gi(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Ci(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:gi(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 @@ -185,7 +187,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Ci(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:Ci(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:Ci(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:gi(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:gi(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:gi(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 @@ -258,7 +260,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`},Jle=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},oue=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -286,17 +288,17 @@ 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,-`+(t+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 Error(`Unknown stretchy delimiter.`)}},Ti=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(),t=0;t{if(tle(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Yle={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},Xle={ex:!0,em:!0,mu:!0},Zle=function(e){return typeof e!=`string`&&(e=e.unit),e in Yle||e in Xle||e===`ex`},Ei=function(e,t){var n;if(e.unit in Yle)n=Yle[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new oi(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Di=function(e){return+e.toFixed(4)+`em`},Oi=function(e){return e.filter(e=>e).join(` `)},Qle=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Tle(n)+`:`+r+`;`)}return t},$le=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},eue=function(e){var t=document.createElement(e);t.className=Oi(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,nue=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+si(Oi(this.classes))+`"`);var n=Qle(this.style);n&&(t+=` style="`+si(n)+`"`);for(var r of Object.keys(this.attributes)){if(tue.test(r))throw new oi(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+si(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},ki=class{constructor(e,t,n,r){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,$le.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return eue.call(this,`span`)}toMarkup(){return nue.call(this,`span`)}},rue=class{constructor(e,t,n,r){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,$le.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return eue.call(this,`a`)}toMarkup(){return nue.call(this,`a`)}},iue=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.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=``+si(this.alt)+``,e}},aue={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Ai=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=ele(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=aue[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=Di(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Oi(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+Di(this.italic)+`;`),n+=Qle(this.style),n&&(e=!0,t+=` style="`+si(n)+`"`);var r=si(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},ji=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},Mi=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,qle[this.pathName]),e}toMarkup(){return this.alternate?``:``}},oue=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},sue=e=>e instanceof ki||e instanceof rue||e instanceof Ti,Ni={"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]}},cue={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]},lue={Å:`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`},uue={},Pi={math:{},text:{}},I=`math`,Fi=`text`,Ii=`main`,Li=`ams`,Ri=`accent-token`,zi=`bin`,Bi=`close`,Vi=`inner`,Hi=`mathord`,Ui=`op-token`,Wi=`open`,Gi=`punct`,Ki=`rel`,qi=`spacing`,Ji=`textord`,F(I,Ii,Ki,`≡`,`\\equiv`,!0),F(I,Ii,Ki,`≺`,`\\prec`,!0),F(I,Ii,Ki,`≻`,`\\succ`,!0),F(I,Ii,Ki,`∼`,`\\sim`,!0),F(I,Ii,Ki,`⊥`,`\\perp`),F(I,Ii,Ki,`⪯`,`\\preceq`,!0),F(I,Ii,Ki,`⪰`,`\\succeq`,!0),F(I,Ii,Ki,`≃`,`\\simeq`,!0),F(I,Ii,Ki,`∣`,`\\mid`,!0),F(I,Ii,Ki,`≪`,`\\ll`,!0),F(I,Ii,Ki,`≫`,`\\gg`,!0),F(I,Ii,Ki,`≍`,`\\asymp`,!0),F(I,Ii,Ki,`∥`,`\\parallel`),F(I,Ii,Ki,`⋈`,`\\bowtie`,!0),F(I,Ii,Ki,`⌣`,`\\smile`,!0),F(I,Ii,Ki,`⊑`,`\\sqsubseteq`,!0),F(I,Ii,Ki,`⊒`,`\\sqsupseteq`,!0),F(I,Ii,Ki,`≐`,`\\doteq`,!0),F(I,Ii,Ki,`⌢`,`\\frown`,!0),F(I,Ii,Ki,`∋`,`\\ni`,!0),F(I,Ii,Ki,`∝`,`\\propto`,!0),F(I,Ii,Ki,`⊢`,`\\vdash`,!0),F(I,Ii,Ki,`⊣`,`\\dashv`,!0),F(I,Ii,Ki,`∋`,`\\owns`),F(I,Ii,Gi,`.`,`\\ldotp`),F(I,Ii,Gi,`⋅`,`\\cdotp`),F(I,Ii,Gi,`⋅`,`·`),F(Fi,Ii,Ji,`⋅`,`·`),F(I,Ii,Ji,`#`,`\\#`),F(Fi,Ii,Ji,`#`,`\\#`),F(I,Ii,Ji,`&`,`\\&`),F(Fi,Ii,Ji,`&`,`\\&`),F(I,Ii,Ji,`ℵ`,`\\aleph`,!0),F(I,Ii,Ji,`∀`,`\\forall`,!0),F(I,Ii,Ji,`ℏ`,`\\hbar`,!0),F(I,Ii,Ji,`∃`,`\\exists`,!0),F(I,Ii,Ji,`∇`,`\\nabla`,!0),F(I,Ii,Ji,`♭`,`\\flat`,!0),F(I,Ii,Ji,`ℓ`,`\\ell`,!0),F(I,Ii,Ji,`♮`,`\\natural`,!0),F(I,Ii,Ji,`♣`,`\\clubsuit`,!0),F(I,Ii,Ji,`℘`,`\\wp`,!0),F(I,Ii,Ji,`♯`,`\\sharp`,!0),F(I,Ii,Ji,`♢`,`\\diamondsuit`,!0),F(I,Ii,Ji,`ℜ`,`\\Re`,!0),F(I,Ii,Ji,`♡`,`\\heartsuit`,!0),F(I,Ii,Ji,`ℑ`,`\\Im`,!0),F(I,Ii,Ji,`♠`,`\\spadesuit`,!0),F(I,Ii,Ji,`§`,`\\S`,!0),F(Fi,Ii,Ji,`§`,`\\S`),F(I,Ii,Ji,`¶`,`\\P`,!0),F(Fi,Ii,Ji,`¶`,`\\P`),F(I,Ii,Ji,`†`,`\\dag`),F(Fi,Ii,Ji,`†`,`\\dag`),F(Fi,Ii,Ji,`†`,`\\textdagger`),F(I,Ii,Ji,`‡`,`\\ddag`),F(Fi,Ii,Ji,`‡`,`\\ddag`),F(Fi,Ii,Ji,`‡`,`\\textdaggerdbl`),F(I,Ii,Bi,`⎱`,`\\rmoustache`,!0),F(I,Ii,Wi,`⎰`,`\\lmoustache`,!0),F(I,Ii,Bi,`⟯`,`\\rgroup`,!0),F(I,Ii,Wi,`⟮`,`\\lgroup`,!0),F(I,Ii,zi,`∓`,`\\mp`,!0),F(I,Ii,zi,`⊖`,`\\ominus`,!0),F(I,Ii,zi,`⊎`,`\\uplus`,!0),F(I,Ii,zi,`⊓`,`\\sqcap`,!0),F(I,Ii,zi,`∗`,`\\ast`),F(I,Ii,zi,`⊔`,`\\sqcup`,!0),F(I,Ii,zi,`◯`,`\\bigcirc`,!0),F(I,Ii,zi,`∙`,`\\bullet`,!0),F(I,Ii,zi,`‡`,`\\ddagger`),F(I,Ii,zi,`≀`,`\\wr`,!0),F(I,Ii,zi,`⨿`,`\\amalg`),F(I,Ii,zi,`&`,`\\And`),F(I,Ii,Ki,`⟵`,`\\longleftarrow`,!0),F(I,Ii,Ki,`⇐`,`\\Leftarrow`,!0),F(I,Ii,Ki,`⟸`,`\\Longleftarrow`,!0),F(I,Ii,Ki,`⟶`,`\\longrightarrow`,!0),F(I,Ii,Ki,`⇒`,`\\Rightarrow`,!0),F(I,Ii,Ki,`⟹`,`\\Longrightarrow`,!0),F(I,Ii,Ki,`↔`,`\\leftrightarrow`,!0),F(I,Ii,Ki,`⟷`,`\\longleftrightarrow`,!0),F(I,Ii,Ki,`⇔`,`\\Leftrightarrow`,!0),F(I,Ii,Ki,`⟺`,`\\Longleftrightarrow`,!0),F(I,Ii,Ki,`↦`,`\\mapsto`,!0),F(I,Ii,Ki,`⟼`,`\\longmapsto`,!0),F(I,Ii,Ki,`↗`,`\\nearrow`,!0),F(I,Ii,Ki,`↩`,`\\hookleftarrow`,!0),F(I,Ii,Ki,`↪`,`\\hookrightarrow`,!0),F(I,Ii,Ki,`↘`,`\\searrow`,!0),F(I,Ii,Ki,`↼`,`\\leftharpoonup`,!0),F(I,Ii,Ki,`⇀`,`\\rightharpoonup`,!0),F(I,Ii,Ki,`↙`,`\\swarrow`,!0),F(I,Ii,Ki,`↽`,`\\leftharpoondown`,!0),F(I,Ii,Ki,`⇁`,`\\rightharpoondown`,!0),F(I,Ii,Ki,`↖`,`\\nwarrow`,!0),F(I,Ii,Ki,`⇌`,`\\rightleftharpoons`,!0),F(I,Li,Ki,`≮`,`\\nless`,!0),F(I,Li,Ki,``,`\\@nleqslant`),F(I,Li,Ki,``,`\\@nleqq`),F(I,Li,Ki,`⪇`,`\\lneq`,!0),F(I,Li,Ki,`≨`,`\\lneqq`,!0),F(I,Li,Ki,``,`\\@lvertneqq`),F(I,Li,Ki,`⋦`,`\\lnsim`,!0),F(I,Li,Ki,`⪉`,`\\lnapprox`,!0),F(I,Li,Ki,`⊀`,`\\nprec`,!0),F(I,Li,Ki,`⋠`,`\\npreceq`,!0),F(I,Li,Ki,`⋨`,`\\precnsim`,!0),F(I,Li,Ki,`⪹`,`\\precnapprox`,!0),F(I,Li,Ki,`≁`,`\\nsim`,!0),F(I,Li,Ki,``,`\\@nshortmid`),F(I,Li,Ki,`∤`,`\\nmid`,!0),F(I,Li,Ki,`⊬`,`\\nvdash`,!0),F(I,Li,Ki,`⊭`,`\\nvDash`,!0),F(I,Li,Ki,`⋪`,`\\ntriangleleft`),F(I,Li,Ki,`⋬`,`\\ntrianglelefteq`,!0),F(I,Li,Ki,`⊊`,`\\subsetneq`,!0),F(I,Li,Ki,``,`\\@varsubsetneq`),F(I,Li,Ki,`⫋`,`\\subsetneqq`,!0),F(I,Li,Ki,``,`\\@varsubsetneqq`),F(I,Li,Ki,`≯`,`\\ngtr`,!0),F(I,Li,Ki,``,`\\@ngeqslant`),F(I,Li,Ki,``,`\\@ngeqq`),F(I,Li,Ki,`⪈`,`\\gneq`,!0),F(I,Li,Ki,`≩`,`\\gneqq`,!0),F(I,Li,Ki,``,`\\@gvertneqq`),F(I,Li,Ki,`⋧`,`\\gnsim`,!0),F(I,Li,Ki,`⪊`,`\\gnapprox`,!0),F(I,Li,Ki,`⊁`,`\\nsucc`,!0),F(I,Li,Ki,`⋡`,`\\nsucceq`,!0),F(I,Li,Ki,`⋩`,`\\succnsim`,!0),F(I,Li,Ki,`⪺`,`\\succnapprox`,!0),F(I,Li,Ki,`≆`,`\\ncong`,!0),F(I,Li,Ki,``,`\\@nshortparallel`),F(I,Li,Ki,`∦`,`\\nparallel`,!0),F(I,Li,Ki,`⊯`,`\\nVDash`,!0),F(I,Li,Ki,`⋫`,`\\ntriangleright`),F(I,Li,Ki,`⋭`,`\\ntrianglerighteq`,!0),F(I,Li,Ki,``,`\\@nsupseteqq`),F(I,Li,Ki,`⊋`,`\\supsetneq`,!0),F(I,Li,Ki,``,`\\@varsupsetneq`),F(I,Li,Ki,`⫌`,`\\supsetneqq`,!0),F(I,Li,Ki,``,`\\@varsupsetneqq`),F(I,Li,Ki,`⊮`,`\\nVdash`,!0),F(I,Li,Ki,`⪵`,`\\precneqq`,!0),F(I,Li,Ki,`⪶`,`\\succneqq`,!0),F(I,Li,Ki,``,`\\@nsubseteqq`),F(I,Li,zi,`⊴`,`\\unlhd`),F(I,Li,zi,`⊵`,`\\unrhd`),F(I,Li,Ki,`↚`,`\\nleftarrow`,!0),F(I,Li,Ki,`↛`,`\\nrightarrow`,!0),F(I,Li,Ki,`⇍`,`\\nLeftarrow`,!0),F(I,Li,Ki,`⇏`,`\\nRightarrow`,!0),F(I,Li,Ki,`↮`,`\\nleftrightarrow`,!0),F(I,Li,Ki,`⇎`,`\\nLeftrightarrow`,!0),F(I,Li,Ki,`△`,`\\vartriangle`),F(I,Li,Ji,`ℏ`,`\\hslash`),F(I,Li,Ji,`▽`,`\\triangledown`),F(I,Li,Ji,`◊`,`\\lozenge`),F(I,Li,Ji,`Ⓢ`,`\\circledS`),F(I,Li,Ji,`®`,`\\circledR`),F(Fi,Li,Ji,`®`,`\\circledR`),F(I,Li,Ji,`∡`,`\\measuredangle`,!0),F(I,Li,Ji,`∄`,`\\nexists`),F(I,Li,Ji,`℧`,`\\mho`),F(I,Li,Ji,`Ⅎ`,`\\Finv`,!0),F(I,Li,Ji,`⅁`,`\\Game`,!0),F(I,Li,Ji,`‵`,`\\backprime`),F(I,Li,Ji,`▲`,`\\blacktriangle`),F(I,Li,Ji,`▼`,`\\blacktriangledown`),F(I,Li,Ji,`■`,`\\blacksquare`),F(I,Li,Ji,`⧫`,`\\blacklozenge`),F(I,Li,Ji,`★`,`\\bigstar`),F(I,Li,Ji,`∢`,`\\sphericalangle`,!0),F(I,Li,Ji,`∁`,`\\complement`,!0),F(I,Li,Ji,`ð`,`\\eth`,!0),F(Fi,Ii,Ji,`ð`,`ð`),F(I,Li,Ji,`╱`,`\\diagup`),F(I,Li,Ji,`╲`,`\\diagdown`),F(I,Li,Ji,`□`,`\\square`),F(I,Li,Ji,`□`,`\\Box`),F(I,Li,Ji,`◊`,`\\Diamond`),F(I,Li,Ji,`¥`,`\\yen`,!0),F(Fi,Li,Ji,`¥`,`\\yen`,!0),F(I,Li,Ji,`✓`,`\\checkmark`,!0),F(Fi,Li,Ji,`✓`,`\\checkmark`),F(I,Li,Ji,`ℶ`,`\\beth`,!0),F(I,Li,Ji,`ℸ`,`\\daleth`,!0),F(I,Li,Ji,`ℷ`,`\\gimel`,!0),F(I,Li,Ji,`ϝ`,`\\digamma`,!0),F(I,Li,Ji,`ϰ`,`\\varkappa`),F(I,Li,Wi,`┌`,`\\@ulcorner`,!0),F(I,Li,Bi,`┐`,`\\@urcorner`,!0),F(I,Li,Wi,`└`,`\\@llcorner`,!0),F(I,Li,Bi,`┘`,`\\@lrcorner`,!0),F(I,Li,Ki,`≦`,`\\leqq`,!0),F(I,Li,Ki,`⩽`,`\\leqslant`,!0),F(I,Li,Ki,`⪕`,`\\eqslantless`,!0),F(I,Li,Ki,`≲`,`\\lesssim`,!0),F(I,Li,Ki,`⪅`,`\\lessapprox`,!0),F(I,Li,Ki,`≊`,`\\approxeq`,!0),F(I,Li,zi,`⋖`,`\\lessdot`),F(I,Li,Ki,`⋘`,`\\lll`,!0),F(I,Li,Ki,`≶`,`\\lessgtr`,!0),F(I,Li,Ki,`⋚`,`\\lesseqgtr`,!0),F(I,Li,Ki,`⪋`,`\\lesseqqgtr`,!0),F(I,Li,Ki,`≑`,`\\doteqdot`),F(I,Li,Ki,`≓`,`\\risingdotseq`,!0),F(I,Li,Ki,`≒`,`\\fallingdotseq`,!0),F(I,Li,Ki,`∽`,`\\backsim`,!0),F(I,Li,Ki,`⋍`,`\\backsimeq`,!0),F(I,Li,Ki,`⫅`,`\\subseteqq`,!0),F(I,Li,Ki,`⋐`,`\\Subset`,!0),F(I,Li,Ki,`⊏`,`\\sqsubset`,!0),F(I,Li,Ki,`≼`,`\\preccurlyeq`,!0),F(I,Li,Ki,`⋞`,`\\curlyeqprec`,!0),F(I,Li,Ki,`≾`,`\\precsim`,!0),F(I,Li,Ki,`⪷`,`\\precapprox`,!0),F(I,Li,Ki,`⊲`,`\\vartriangleleft`),F(I,Li,Ki,`⊴`,`\\trianglelefteq`),F(I,Li,Ki,`⊨`,`\\vDash`,!0),F(I,Li,Ki,`⊪`,`\\Vvdash`,!0),F(I,Li,Ki,`⌣`,`\\smallsmile`),F(I,Li,Ki,`⌢`,`\\smallfrown`),F(I,Li,Ki,`≏`,`\\bumpeq`,!0),F(I,Li,Ki,`≎`,`\\Bumpeq`,!0),F(I,Li,Ki,`≧`,`\\geqq`,!0),F(I,Li,Ki,`⩾`,`\\geqslant`,!0),F(I,Li,Ki,`⪖`,`\\eqslantgtr`,!0),F(I,Li,Ki,`≳`,`\\gtrsim`,!0),F(I,Li,Ki,`⪆`,`\\gtrapprox`,!0),F(I,Li,zi,`⋗`,`\\gtrdot`),F(I,Li,Ki,`⋙`,`\\ggg`,!0),F(I,Li,Ki,`≷`,`\\gtrless`,!0),F(I,Li,Ki,`⋛`,`\\gtreqless`,!0),F(I,Li,Ki,`⪌`,`\\gtreqqless`,!0),F(I,Li,Ki,`≖`,`\\eqcirc`,!0),F(I,Li,Ki,`≗`,`\\circeq`,!0),F(I,Li,Ki,`≜`,`\\triangleq`,!0),F(I,Li,Ki,`∼`,`\\thicksim`),F(I,Li,Ki,`≈`,`\\thickapprox`),F(I,Li,Ki,`⫆`,`\\supseteqq`,!0),F(I,Li,Ki,`⋑`,`\\Supset`,!0),F(I,Li,Ki,`⊐`,`\\sqsupset`,!0),F(I,Li,Ki,`≽`,`\\succcurlyeq`,!0),F(I,Li,Ki,`⋟`,`\\curlyeqsucc`,!0),F(I,Li,Ki,`≿`,`\\succsim`,!0),F(I,Li,Ki,`⪸`,`\\succapprox`,!0),F(I,Li,Ki,`⊳`,`\\vartriangleright`),F(I,Li,Ki,`⊵`,`\\trianglerighteq`),F(I,Li,Ki,`⊩`,`\\Vdash`,!0),F(I,Li,Ki,`∣`,`\\shortmid`),F(I,Li,Ki,`∥`,`\\shortparallel`),F(I,Li,Ki,`≬`,`\\between`,!0),F(I,Li,Ki,`⋔`,`\\pitchfork`,!0),F(I,Li,Ki,`∝`,`\\varpropto`),F(I,Li,Ki,`◀`,`\\blacktriangleleft`),F(I,Li,Ki,`∴`,`\\therefore`,!0),F(I,Li,Ki,`∍`,`\\backepsilon`),F(I,Li,Ki,`▶`,`\\blacktriangleright`),F(I,Li,Ki,`∵`,`\\because`,!0),F(I,Li,Ki,`⋘`,`\\llless`),F(I,Li,Ki,`⋙`,`\\gggtr`),F(I,Li,zi,`⊲`,`\\lhd`),F(I,Li,zi,`⊳`,`\\rhd`),F(I,Li,Ki,`≂`,`\\eqsim`,!0),F(I,Ii,Ki,`⋈`,`\\Join`),F(I,Li,Ki,`≑`,`\\Doteq`,!0),F(I,Li,zi,`∔`,`\\dotplus`,!0),F(I,Li,zi,`∖`,`\\smallsetminus`),F(I,Li,zi,`⋒`,`\\Cap`,!0),F(I,Li,zi,`⋓`,`\\Cup`,!0),F(I,Li,zi,`⩞`,`\\doublebarwedge`,!0),F(I,Li,zi,`⊟`,`\\boxminus`,!0),F(I,Li,zi,`⊞`,`\\boxplus`,!0),F(I,Li,zi,`⋇`,`\\divideontimes`,!0),F(I,Li,zi,`⋉`,`\\ltimes`,!0),F(I,Li,zi,`⋊`,`\\rtimes`,!0),F(I,Li,zi,`⋋`,`\\leftthreetimes`,!0),F(I,Li,zi,`⋌`,`\\rightthreetimes`,!0),F(I,Li,zi,`⋏`,`\\curlywedge`,!0),F(I,Li,zi,`⋎`,`\\curlyvee`,!0),F(I,Li,zi,`⊝`,`\\circleddash`,!0),F(I,Li,zi,`⊛`,`\\circledast`,!0),F(I,Li,zi,`⋅`,`\\centerdot`),F(I,Li,zi,`⊺`,`\\intercal`,!0),F(I,Li,zi,`⋒`,`\\doublecap`),F(I,Li,zi,`⋓`,`\\doublecup`),F(I,Li,zi,`⊠`,`\\boxtimes`,!0),F(I,Li,Ki,`⇢`,`\\dashrightarrow`,!0),F(I,Li,Ki,`⇠`,`\\dashleftarrow`,!0),F(I,Li,Ki,`⇇`,`\\leftleftarrows`,!0),F(I,Li,Ki,`⇆`,`\\leftrightarrows`,!0),F(I,Li,Ki,`⇚`,`\\Lleftarrow`,!0),F(I,Li,Ki,`↞`,`\\twoheadleftarrow`,!0),F(I,Li,Ki,`↢`,`\\leftarrowtail`,!0),F(I,Li,Ki,`↫`,`\\looparrowleft`,!0),F(I,Li,Ki,`⇋`,`\\leftrightharpoons`,!0),F(I,Li,Ki,`↶`,`\\curvearrowleft`,!0),F(I,Li,Ki,`↺`,`\\circlearrowleft`,!0),F(I,Li,Ki,`↰`,`\\Lsh`,!0),F(I,Li,Ki,`⇈`,`\\upuparrows`,!0),F(I,Li,Ki,`↿`,`\\upharpoonleft`,!0),F(I,Li,Ki,`⇃`,`\\downharpoonleft`,!0),F(I,Ii,Ki,`⊶`,`\\origof`,!0),F(I,Ii,Ki,`⊷`,`\\imageof`,!0),F(I,Li,Ki,`⊸`,`\\multimap`,!0),F(I,Li,Ki,`↭`,`\\leftrightsquigarrow`,!0),F(I,Li,Ki,`⇉`,`\\rightrightarrows`,!0),F(I,Li,Ki,`⇄`,`\\rightleftarrows`,!0),F(I,Li,Ki,`↠`,`\\twoheadrightarrow`,!0),F(I,Li,Ki,`↣`,`\\rightarrowtail`,!0),F(I,Li,Ki,`↬`,`\\looparrowright`,!0),F(I,Li,Ki,`↷`,`\\curvearrowright`,!0),F(I,Li,Ki,`↻`,`\\circlearrowright`,!0),F(I,Li,Ki,`↱`,`\\Rsh`,!0),F(I,Li,Ki,`⇊`,`\\downdownarrows`,!0),F(I,Li,Ki,`↾`,`\\upharpoonright`,!0),F(I,Li,Ki,`⇂`,`\\downharpoonright`,!0),F(I,Li,Ki,`⇝`,`\\rightsquigarrow`,!0),F(I,Li,Ki,`⇝`,`\\leadsto`),F(I,Li,Ki,`⇛`,`\\Rrightarrow`,!0),F(I,Li,Ki,`↾`,`\\restriction`),F(I,Ii,Ji,`‘`,"`"),F(I,Ii,Ji,`$`,`\\$`),F(Fi,Ii,Ji,`$`,`\\$`),F(Fi,Ii,Ji,`$`,`\\textdollar`),F(I,Ii,Ji,`%`,`\\%`),F(Fi,Ii,Ji,`%`,`\\%`),F(I,Ii,Ji,`_`,`\\_`),F(Fi,Ii,Ji,`_`,`\\_`),F(Fi,Ii,Ji,`_`,`\\textunderscore`),F(I,Ii,Ji,`∠`,`\\angle`,!0),F(I,Ii,Ji,`∞`,`\\infty`,!0),F(I,Ii,Ji,`′`,`\\prime`),F(I,Ii,Ji,`△`,`\\triangle`),F(I,Ii,Ji,`Γ`,`\\Gamma`,!0),F(I,Ii,Ji,`Δ`,`\\Delta`,!0),F(I,Ii,Ji,`Θ`,`\\Theta`,!0),F(I,Ii,Ji,`Λ`,`\\Lambda`,!0),F(I,Ii,Ji,`Ξ`,`\\Xi`,!0),F(I,Ii,Ji,`Π`,`\\Pi`,!0),F(I,Ii,Ji,`Σ`,`\\Sigma`,!0),F(I,Ii,Ji,`Υ`,`\\Upsilon`,!0),F(I,Ii,Ji,`Φ`,`\\Phi`,!0),F(I,Ii,Ji,`Ψ`,`\\Psi`,!0),F(I,Ii,Ji,`Ω`,`\\Omega`,!0),F(I,Ii,Ji,`A`,`Α`),F(I,Ii,Ji,`B`,`Β`),F(I,Ii,Ji,`E`,`Ε`),F(I,Ii,Ji,`Z`,`Ζ`),F(I,Ii,Ji,`H`,`Η`),F(I,Ii,Ji,`I`,`Ι`),F(I,Ii,Ji,`K`,`Κ`),F(I,Ii,Ji,`M`,`Μ`),F(I,Ii,Ji,`N`,`Ν`),F(I,Ii,Ji,`O`,`Ο`),F(I,Ii,Ji,`P`,`Ρ`),F(I,Ii,Ji,`T`,`Τ`),F(I,Ii,Ji,`X`,`Χ`),F(I,Ii,Ji,`¬`,`\\neg`,!0),F(I,Ii,Ji,`¬`,`\\lnot`),F(I,Ii,Ji,`⊤`,`\\top`),F(I,Ii,Ji,`⊥`,`\\bot`),F(I,Ii,Ji,`∅`,`\\emptyset`),F(I,Li,Ji,`∅`,`\\varnothing`),F(I,Ii,Hi,`α`,`\\alpha`,!0),F(I,Ii,Hi,`β`,`\\beta`,!0),F(I,Ii,Hi,`γ`,`\\gamma`,!0),F(I,Ii,Hi,`δ`,`\\delta`,!0),F(I,Ii,Hi,`ϵ`,`\\epsilon`,!0),F(I,Ii,Hi,`ζ`,`\\zeta`,!0),F(I,Ii,Hi,`η`,`\\eta`,!0),F(I,Ii,Hi,`θ`,`\\theta`,!0),F(I,Ii,Hi,`ι`,`\\iota`,!0),F(I,Ii,Hi,`κ`,`\\kappa`,!0),F(I,Ii,Hi,`λ`,`\\lambda`,!0),F(I,Ii,Hi,`μ`,`\\mu`,!0),F(I,Ii,Hi,`ν`,`\\nu`,!0),F(I,Ii,Hi,`ξ`,`\\xi`,!0),F(I,Ii,Hi,`ο`,`\\omicron`,!0),F(I,Ii,Hi,`π`,`\\pi`,!0),F(I,Ii,Hi,`ρ`,`\\rho`,!0),F(I,Ii,Hi,`σ`,`\\sigma`,!0),F(I,Ii,Hi,`τ`,`\\tau`,!0),F(I,Ii,Hi,`υ`,`\\upsilon`,!0),F(I,Ii,Hi,`ϕ`,`\\phi`,!0),F(I,Ii,Hi,`χ`,`\\chi`,!0),F(I,Ii,Hi,`ψ`,`\\psi`,!0),F(I,Ii,Hi,`ω`,`\\omega`,!0),F(I,Ii,Hi,`ε`,`\\varepsilon`,!0),F(I,Ii,Hi,`ϑ`,`\\vartheta`,!0),F(I,Ii,Hi,`ϖ`,`\\varpi`,!0),F(I,Ii,Hi,`ϱ`,`\\varrho`,!0),F(I,Ii,Hi,`ς`,`\\varsigma`,!0),F(I,Ii,Hi,`φ`,`\\varphi`,!0),F(I,Ii,zi,`∗`,`*`,!0),F(I,Ii,zi,`+`,`+`),F(I,Ii,zi,`−`,`-`,!0),F(I,Ii,zi,`⋅`,`\\cdot`,!0),F(I,Ii,zi,`∘`,`\\circ`,!0),F(I,Ii,zi,`÷`,`\\div`,!0),F(I,Ii,zi,`±`,`\\pm`,!0),F(I,Ii,zi,`×`,`\\times`,!0),F(I,Ii,zi,`∩`,`\\cap`,!0),F(I,Ii,zi,`∪`,`\\cup`,!0),F(I,Ii,zi,`∖`,`\\setminus`,!0),F(I,Ii,zi,`∧`,`\\land`),F(I,Ii,zi,`∨`,`\\lor`),F(I,Ii,zi,`∧`,`\\wedge`,!0),F(I,Ii,zi,`∨`,`\\vee`,!0),F(I,Ii,Ji,`√`,`\\surd`),F(I,Ii,Wi,`⟨`,`\\langle`,!0),F(I,Ii,Wi,`∣`,`\\lvert`),F(I,Ii,Wi,`∥`,`\\lVert`),F(I,Ii,Bi,`?`,`?`),F(I,Ii,Bi,`!`,`!`),F(I,Ii,Bi,`⟩`,`\\rangle`,!0),F(I,Ii,Bi,`∣`,`\\rvert`),F(I,Ii,Bi,`∥`,`\\rVert`),F(I,Ii,Ki,`=`,`=`),F(I,Ii,Ki,`:`,`:`),F(I,Ii,Ki,`≈`,`\\approx`,!0),F(I,Ii,Ki,`≅`,`\\cong`,!0),F(I,Ii,Ki,`≥`,`\\ge`),F(I,Ii,Ki,`≥`,`\\geq`,!0),F(I,Ii,Ki,`←`,`\\gets`),F(I,Ii,Ki,`>`,`\\gt`,!0),F(I,Ii,Ki,`∈`,`\\in`,!0),F(I,Ii,Ki,``,`\\@not`),F(I,Ii,Ki,`⊂`,`\\subset`,!0),F(I,Ii,Ki,`⊃`,`\\supset`,!0),F(I,Ii,Ki,`⊆`,`\\subseteq`,!0),F(I,Ii,Ki,`⊇`,`\\supseteq`,!0),F(I,Li,Ki,`⊈`,`\\nsubseteq`,!0),F(I,Li,Ki,`⊉`,`\\nsupseteq`,!0),F(I,Ii,Ki,`⊨`,`\\models`),F(I,Ii,Ki,`←`,`\\leftarrow`,!0),F(I,Ii,Ki,`≤`,`\\le`),F(I,Ii,Ki,`≤`,`\\leq`,!0),F(I,Ii,Ki,`<`,`\\lt`,!0),F(I,Ii,Ki,`→`,`\\rightarrow`,!0),F(I,Ii,Ki,`→`,`\\to`),F(I,Li,Ki,`≱`,`\\ngeq`,!0),F(I,Li,Ki,`≰`,`\\nleq`,!0),F(I,Ii,qi,`\xA0`,`\\ `),F(I,Ii,qi,`\xA0`,`\\space`),F(I,Ii,qi,`\xA0`,`\\nobreakspace`),F(Fi,Ii,qi,`\xA0`,`\\ `),F(Fi,Ii,qi,`\xA0`,` `),F(Fi,Ii,qi,`\xA0`,`\\space`),F(Fi,Ii,qi,`\xA0`,`\\nobreakspace`),F(I,Ii,qi,``,`\\nobreak`),F(I,Ii,qi,``,`\\allowbreak`),F(I,Ii,Gi,`,`,`,`),F(I,Ii,Gi,`;`,`;`),F(I,Li,zi,`⊼`,`\\barwedge`,!0),F(I,Li,zi,`⊻`,`\\veebar`,!0),F(I,Ii,zi,`⊙`,`\\odot`,!0),F(I,Ii,zi,`⊕`,`\\oplus`,!0),F(I,Ii,zi,`⊗`,`\\otimes`,!0),F(I,Ii,Ji,`∂`,`\\partial`,!0),F(I,Ii,zi,`⊘`,`\\oslash`,!0),F(I,Li,zi,`⊚`,`\\circledcirc`,!0),F(I,Li,zi,`⊡`,`\\boxdot`,!0),F(I,Ii,zi,`△`,`\\bigtriangleup`),F(I,Ii,zi,`▽`,`\\bigtriangledown`),F(I,Ii,zi,`†`,`\\dagger`),F(I,Ii,zi,`⋄`,`\\diamond`),F(I,Ii,zi,`⋆`,`\\star`),F(I,Ii,zi,`◃`,`\\triangleleft`),F(I,Ii,zi,`▹`,`\\triangleright`),F(I,Ii,Wi,`{`,`\\{`),F(Fi,Ii,Ji,`{`,`\\{`),F(Fi,Ii,Ji,`{`,`\\textbraceleft`),F(I,Ii,Bi,`}`,`\\}`),F(Fi,Ii,Ji,`}`,`\\}`),F(Fi,Ii,Ji,`}`,`\\textbraceright`),F(I,Ii,Wi,`{`,`\\lbrace`),F(I,Ii,Bi,`}`,`\\rbrace`),F(I,Ii,Wi,`[`,`\\lbrack`,!0),F(Fi,Ii,Ji,`[`,`\\lbrack`,!0),F(I,Ii,Bi,`]`,`\\rbrack`,!0),F(Fi,Ii,Ji,`]`,`\\rbrack`,!0),F(I,Ii,Wi,`(`,`\\lparen`,!0),F(I,Ii,Bi,`)`,`\\rparen`,!0),F(Fi,Ii,Ji,`<`,`\\textless`,!0),F(Fi,Ii,Ji,`>`,`\\textgreater`,!0),F(I,Ii,Wi,`⌊`,`\\lfloor`,!0),F(I,Ii,Bi,`⌋`,`\\rfloor`,!0),F(I,Ii,Wi,`⌈`,`\\lceil`,!0),F(I,Ii,Bi,`⌉`,`\\rceil`,!0),F(I,Ii,Ji,`\\`,`\\backslash`),F(I,Ii,Ji,`∣`,`|`),F(I,Ii,Ji,`∣`,`\\vert`),F(Fi,Ii,Ji,`|`,`\\textbar`,!0),F(I,Ii,Ji,`∥`,`\\|`),F(I,Ii,Ji,`∥`,`\\Vert`),F(Fi,Ii,Ji,`∥`,`\\textbardbl`),F(Fi,Ii,Ji,`~`,`\\textasciitilde`),F(Fi,Ii,Ji,`\\`,`\\textbackslash`),F(Fi,Ii,Ji,`^`,`\\textasciicircum`),F(I,Ii,Ki,`↑`,`\\uparrow`,!0),F(I,Ii,Ki,`⇑`,`\\Uparrow`,!0),F(I,Ii,Ki,`↓`,`\\downarrow`,!0),F(I,Ii,Ki,`⇓`,`\\Downarrow`,!0),F(I,Ii,Ki,`↕`,`\\updownarrow`,!0),F(I,Ii,Ki,`⇕`,`\\Updownarrow`,!0),F(I,Ii,Ui,`∐`,`\\coprod`),F(I,Ii,Ui,`⋁`,`\\bigvee`),F(I,Ii,Ui,`⋀`,`\\bigwedge`),F(I,Ii,Ui,`⨄`,`\\biguplus`),F(I,Ii,Ui,`⋂`,`\\bigcap`),F(I,Ii,Ui,`⋃`,`\\bigcup`),F(I,Ii,Ui,`∫`,`\\int`),F(I,Ii,Ui,`∫`,`\\intop`),F(I,Ii,Ui,`∬`,`\\iint`),F(I,Ii,Ui,`∭`,`\\iiint`),F(I,Ii,Ui,`∏`,`\\prod`),F(I,Ii,Ui,`∑`,`\\sum`),F(I,Ii,Ui,`⨂`,`\\bigotimes`),F(I,Ii,Ui,`⨁`,`\\bigoplus`),F(I,Ii,Ui,`⨀`,`\\bigodot`),F(I,Ii,Ui,`∮`,`\\oint`),F(I,Ii,Ui,`∯`,`\\oiint`),F(I,Ii,Ui,`∰`,`\\oiiint`),F(I,Ii,Ui,`⨆`,`\\bigsqcup`),F(I,Ii,Ui,`∫`,`\\smallint`),F(Fi,Ii,Vi,`…`,`\\textellipsis`),F(I,Ii,Vi,`…`,`\\mathellipsis`),F(Fi,Ii,Vi,`…`,`\\ldots`,!0),F(I,Ii,Vi,`…`,`\\ldots`,!0),F(I,Ii,Vi,`⋯`,`\\@cdots`,!0),F(I,Ii,Vi,`⋱`,`\\ddots`,!0),F(I,Ii,Ji,`⋮`,`\\varvdots`),F(Fi,Ii,Ji,`⋮`,`\\varvdots`),F(I,Ii,Ri,`ˊ`,`\\acute`),F(I,Ii,Ri,`ˋ`,`\\grave`),F(I,Ii,Ri,`¨`,`\\ddot`),F(I,Ii,Ri,`~`,`\\tilde`),F(I,Ii,Ri,`ˉ`,`\\bar`),F(I,Ii,Ri,`˘`,`\\breve`),F(I,Ii,Ri,`ˇ`,`\\check`),F(I,Ii,Ri,`^`,`\\hat`),F(I,Ii,Ri,`⃗`,`\\vec`),F(I,Ii,Ri,`˙`,`\\dot`),F(I,Ii,Ri,`˚`,`\\mathring`),F(I,Ii,Hi,``,`\\@imath`),F(I,Ii,Hi,``,`\\@jmath`),F(I,Ii,Ji,`ı`,`ı`),F(I,Ii,Ji,`ȷ`,`ȷ`),F(Fi,Ii,Ji,`ı`,`\\i`,!0),F(Fi,Ii,Ji,`ȷ`,`\\j`,!0),F(Fi,Ii,Ji,`ß`,`\\ss`,!0),F(Fi,Ii,Ji,`æ`,`\\ae`,!0),F(Fi,Ii,Ji,`œ`,`\\oe`,!0),F(Fi,Ii,Ji,`ø`,`\\o`,!0),F(Fi,Ii,Ji,`Æ`,`\\AE`,!0),F(Fi,Ii,Ji,`Œ`,`\\OE`,!0),F(Fi,Ii,Ji,`Ø`,`\\O`,!0),F(Fi,Ii,Ri,`ˊ`,`\\'`),F(Fi,Ii,Ri,`ˋ`,"\\`"),F(Fi,Ii,Ri,`ˆ`,`\\^`),F(Fi,Ii,Ri,`˜`,`\\~`),F(Fi,Ii,Ri,`ˉ`,`\\=`),F(Fi,Ii,Ri,`˘`,`\\u`),F(Fi,Ii,Ri,`˙`,`\\.`),F(Fi,Ii,Ri,`¸`,`\\c`),F(Fi,Ii,Ri,`˚`,`\\r`),F(Fi,Ii,Ri,`ˇ`,`\\v`),F(Fi,Ii,Ri,`¨`,`\\"`),F(Fi,Ii,Ri,`˝`,`\\H`),F(Fi,Ii,Ri,`◯`,`\\textcircled`),Yi={"--":!0,"---":!0,"``":!0,"''":!0},F(Fi,Ii,Ji,`–`,`--`,!0),F(Fi,Ii,Ji,`–`,`\\textendash`),F(Fi,Ii,Ji,`—`,`---`,!0),F(Fi,Ii,Ji,`—`,`\\textemdash`),F(Fi,Ii,Ji,`‘`,"`",!0),F(Fi,Ii,Ji,`‘`,`\\textquoteleft`),F(Fi,Ii,Ji,`’`,`'`,!0),F(Fi,Ii,Ji,`’`,`\\textquoteright`),F(Fi,Ii,Ji,`“`,"``",!0),F(Fi,Ii,Ji,`“`,`\\textquotedblleft`),F(Fi,Ii,Ji,`”`,`''`,!0),F(Fi,Ii,Ji,`”`,`\\textquotedblright`),F(I,Ii,Ji,`°`,`\\degree`,!0),F(Fi,Ii,Ji,`°`,`\\degree`),F(Fi,Ii,Ji,`°`,`\\textdegree`,!0),F(I,Ii,Ji,`£`,`\\pounds`),F(I,Ii,Ji,`£`,`\\mathsterling`,!0),F(Fi,Ii,Ji,`£`,`\\pounds`),F(Fi,Ii,Ji,`£`,`\\textsterling`,!0),F(I,Li,Ji,`✠`,`\\maltese`),F(Fi,Li,Ji,`✠`,`\\maltese`),Xi=`0123456789/@."`,due=0;due{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Cue[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return wue[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Cue[0];if(120486{if(Oi(e.classes)!==Oi(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Oue=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},_a=function(e,t,n,r){var i=new ki(e,t,n,r);return ga(i),i},va=(e,t,n,r)=>new ki(e,t,n,r),ya=function(e,t,n){var r=_a([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=Di(r.height),r.maxFontSize=1,r},kue=function(e,t,n,r){var i=new rue(e,t,n,r);return ga(i),i},ba=function(e){var t=new Ti(e);return ga(t),t},xa=function(e,t){return e instanceof Ti?_a([],[e],t):e},Aue=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=_a([`mspace`],[],t),r=Ei(e,t);return n.style.marginRight=Di(r),n},Ca=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},wa={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Mue={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Nue=function(e,t){var n=Mue[e],r=n[0],i=n[1],a=n[2],o=new Mi(r),s=va([`katex-overlay`],[new ji([o],{width:Di(i),height:Di(a),style:`width:`+Di(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return s.height=a,s.style.height=Di(a),s.style.width=Di(i),s},Ta={number:3,unit:`mu`},Ea={number:4,unit:`mu`},Da={number:5,unit:`mu`},Pue={mord:{mop:Ta,mbin:Ea,mrel:Da,minner:Ta},mop:{mord:Ta,mop:Ta,mrel:Da,minner:Ta},mbin:{mord:Ea,mop:Ea,mopen:Ea,minner:Ea},mrel:{mord:Da,mop:Da,mopen:Da,minner:Da},mopen:{},mclose:{mop:Ta,mbin:Ea,mrel:Da,minner:Ta},mpunct:{mord:Ta,mop:Ta,mrel:Da,mopen:Ta,mclose:Ta,mpunct:Ta,minner:Ta},minner:{mord:Ta,mop:Ta,mbin:Ea,mrel:Da,mopen:Ta,mpunct:Ta,minner:Ta}},Oa={mord:{mop:Ta},mop:{mord:Ta,mop:Ta},mbin:{},mrel:{},mopen:{},mclose:{mop:Ta},mpunct:{},minner:{mop:Ta}},Fue={},ka={},Aa={},ja=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Ma=function(e){return e.type===`ordgroup`?e.body:[e]},Iue=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Lue=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Rue={display:xi.DISPLAY,text:xi.TEXT,script:xi.SCRIPT,scriptscript:xi.SCRIPTSCRIPT},zue={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Na=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Lue.has(r)?t.classes[0]=`mord`:r===`mbin`&&Iue.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),Bue(i,(e,t)=>{var n=Hue(t),r=Hue(e),i=n&&r?e.hasClass(`mtight`)?Oa[n]?.[r]:Pue[n]?.[r]:null;if(i)return jue(i,l)},{node:d},f,p),i},Bue=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Vue=function(e){return e instanceof Ti||e instanceof rue||e instanceof ki&&e.hasClass(`enclosing`)?e:null},Pa=function(e,t){var n=Vue(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Pa(r[r.length-1],`right`);if(t===`left`)return Pa(r[0],`left`)}}return e},Hue=function(e,t){return e?(t&&(e=Pa(e,t)),zue[e.classes[0]]||null):null},Fa=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return _a(t.concat(n))},Ia=function(e,t,n){if(!e)return _a();if(ka[e.type]){var r=ka[e.type](e,t);if(n&&t.size!==n.size){r=_a(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new oi(`Got group of unknown type: '`+e.type+`'`)},La=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=Oi(this.classes));for(var i=0;i0&&(e+=` class ="`+si(Oi(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Ra=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return si(this.toText())}toText(){return this.text}},Uue=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,Di(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},Wue=new Set([`\\imath`,`\\jmath`]),Gue=new Set([`mrow`,`mtable`]),za=function(e,t,n){var r,i;return Pi[t][e]&&Pi[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(Yi,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=Pi[t][e].replace),new Ra(e)},Kue=function(e){return e.length===1?e[0]:new La(`mrow`,e)},que={mathit:`italic`,boldsymbol:e=>e.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`},Jue=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=que[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Wue.has(a))return null;if(Pi[r][a]){var o=Pi[r][a].replace;o&&(a=o)}var s=wa[n].fontName;return ale(a,s,r)?wa[n].variant:null},Ba=function(e,t,n){if(e.length===1){var r=Ha(e[0],t);return n&&r instanceof La&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||lle(a))){var l=s.children[0];l instanceof La&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof Ra&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof Ra&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Va=function(e,t,n){return Kue(Ba(e,t,n))},Ha=function(e,t){if(!e)return new La(`mrow`);if(Aa[e.type])return Aa[e.type](e,t);throw new oi(`Got group of unknown type: '`+e.type+`'`)},Yue=[[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]],Xue=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zue=function(e,t){return t.size<2?e:Yue[e-1][t.size-1]},Que=class e{constructor(t){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.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Xue[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={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,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Zue(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:Xue[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Zue(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=ole(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},Que.BASESIZE=6,$ue=e=>new Que({style:e.displayMode?xi.DISPLAY:xi.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),ede=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=_a(n,[e])}return e},tde=function(e,t,n){var r=$ue(n),i;return n.output===`mathml`?ule(e,t,r,n.displayMode,!0):(i=n.output===`html`?_a([`katex`],[sle(e,r)]):_a([`katex`],[ule(e,t,r,n.displayMode,!1),sle(e,r)]),ede(i,n))},nde=function(e,t){return ede(_a([`katex`],[sle(e,$ue(t))]),t)},rde={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":`=`},Ua=function(e){var t=new La(`mo`,[new Ra(rde[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},ide={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]},ade=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Wa=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(ade.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new Mi(o);return{span:va([],[new ji([u],{width:`100%`,height:Di(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=ide[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var p=f[0],m=f[1],h=f[2],g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support - `+_+` children.`);for(var b=0;b<_;b++){var x=new Mi(p[b]),S=new ji([x],{width:`400em`,height:Di(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=va([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=Di(g),d.push(C)}return{span:_a([`katex-stretchy`],d,t),minWidth:m,height:g}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=Di(o),a>0&&(i.style.minWidth=Di(a)),i},ode=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=_a([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new oue({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new oue({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=va([],[new ji(l,{width:`100%`,height:Di(o)})],i)}return a.height=o,a.style.height=Di(o),a},sde=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],cde=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],lde=new Set(sde),ude=new Set(cde),dde=e=>{if(e instanceof Ai)return e;if(sue(e)&&e.children.length===1)return dde(e.children[0])},fde=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=$r(e.base,`accent`),n=r.base,e.base=n,i=rle(Ia(e,t)),e.base=r):(r=$r(e,`accent`),n=r.base);var a=Ia(n,t.havingCrampedStyle()),o=r.isShifty&&ci(n),s=0;o&&(s=dde(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=Wa(r,t),d=Sa({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+Di(2*s)+`)`,marginLeft:Di(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=Nue(`vec`,t),p=Mue.vec[1]):(f=ha({type:`textord`,mode:r.mode,text:r.label},t),f=nle(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=_a([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=Di(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=Sa({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=_a([`mord`,`katex-accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},pde=(e,t)=>{var n=e.isStretchy?Ua(e.label):new La(`mo`,[za(e.label,e.mode)]),r=new La(`mover`,[Ha(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},mde=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),Xr({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=ja(t[0]),r=!mde.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:fde,mathmlBuilder:pde}),Xr({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(Yr({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),Xr({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Ia(e.base,t),r=Wa(e,t),i=e.label===`\\utilde`?.12:0;return _a([`mord`,`accentunder`],[Sa({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Ua(e.label),r=new La(`munder`,[Ha(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Ga=e=>{var t=new La(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},Xr({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=xa(Ia(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=xa(Ia(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Wa(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=Sa({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=Sa({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return _a([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=Ua(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Ga(Ha(e.body,t));if(e.below){var a=Ga(Ha(e.below,t));r=new La(`munderover`,[n,a,i])}else r=new La(`mover`,[n,i])}else if(e.below){var o=Ga(Ha(e.below,t));r=new La(`munder`,[n,o])}else r=Ga(),r=new La(`mover`,[n,r]);return r}}),Xr({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Ma(i),isCharacterBox:ci(i)}},htmlBuilder:ple,mathmlBuilder:mle}),Ka=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},Xr({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:Ka(t[0]),body:Ma(t[1]),isCharacterBox:ci(t[1])}}}),Xr({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Ka(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Ma(i)},l=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:ci(l)}}}),Xr({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:Ka(t[0]),body:Ma(t[0])}},htmlBuilder(e,t){var n=Na(e.body,t,!0),r=_a([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=Ba(e.body,t),r=new La(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),hde={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},gde=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),_de=e=>e.type===`textord`&&e.text===`@`,vde=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,Xr({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=xa(Ia(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=Di(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new La(`mrow`,[Ha(e.label,t)]);return n=new La(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new La(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Xr({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=xa(Ia(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new La(`mrow`,[Ha(e.fragment,t)])}}),Xr({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=fle($r(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new oi(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new oi(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),yde=(e,t)=>ba(Na(e.body,t.withColor(e.color),!1)),bde=(e,t)=>{var n=Ba(e.body,t.withColor(e.color)),r=new La(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},Xr({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=$r(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Ma(i)}},htmlBuilder:yde,mathmlBuilder:bde}),Xr({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=$r(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),Xr({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!Yr({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&$r(n,`size`).value}},htmlBuilder(e,t){var n=_a([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=Di(Ei(e.size,t)))),n},mathmlBuilder(e,t){var n=new La(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,Di(Ei(e.size,t)))),n}}),xde={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Sde=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new oi(`Expected a control sequence`,e);return t},Cde=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},wde=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},Xr({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(xde[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=xde[r.text]),$r(t.parseFunction(),`internal`);throw new oi(`Invalid token after macro prefix`,r)}}),Xr({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new oi(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new oi(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new oi(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new oi(`Expected a macro definition`);else s[a].push(r.text);var l=t.gullet.consumeArg().tokens;return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===xde[n]),{type:`internal`,mode:t.mode}}}),Xr({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Sde(t.gullet.popToken());return t.gullet.consumeSpaces(),wde(t,r,Cde(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Xr({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Sde(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return wde(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),qa=function(e,t,n){var r=ale(Pi.math[e]&&Pi.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Tde=function(e,t,n,r){var i=n.havingBaseStyle(t),a=_a(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Ede=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=Di(i),e.height-=i,e.depth+=i},Dde=function(e,t,n,r,i,a){var o=Tde(pa(e,`Main-Regular`,i,r),t,r,a);return n&&Ede(o,r,t),o},Ode=function(e,t,n,r){return pa(e,`Size`+t+`-Regular`,n,r)},kde=function(e,t,n,r,i,a){var o=Ode(e,t,i,r),s=Tde(_a([`delimsizing`,`size`+t],[o],r),xi.TEXT,r,a);return n&&Ede(s,r,xi.TEXT),s},Ade=function(e,t,n,r){return{type:`elem`,elem:_a([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[_a([],[pa(e,t,n,r)])])}},jde=function(e,t,n){var r=Ni[`Size4-Regular`][e.charCodeAt(0)]?Ni[`Size4-Regular`][e.charCodeAt(0)][4]:Ni[`Size1-Regular`][e.charCodeAt(0)][4],i=new Mi(`inner`,Kle(e,Math.round(1e3*t))),a=va([],[new ji([i],{width:Di(r),height:Di(t),style:`width:`+Di(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=Di(t),a.style.width=Di(r),{type:`elem`,elem:a}},Mde=.008,Ja={type:`kern`,size:-1*Mde},Nde=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Pde=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Fde=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):Nde.has(e)?(l=`∣`,d=`vert`,f=333):Pde.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=qa(o,p,i),h=m.height+m.depth,g=qa(l,p,i),_=g.height+g.depth,v=qa(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=qa(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=Jle(d,Math.round(O*1e3)),j=new Mi(d,A),M=Di(f/1e3),ee=Di(k/1e3),te=va([],[new ji([j],{width:M,height:ee,viewBox:`0 0 `+f+` `+k})],r);te.height=k/1e3,te.style.width=M,te.style.height=ee,D.push({type:`elem`,elem:te})}else{if(D.push(Ade(u,p,i,r)),D.push(Ja),s===null){var ne=w-h-y+2*Mde;D.push(jde(l,ne,r))}else{var re=(w-h-y-b)/2+2*Mde;D.push(jde(l,re,r)),D.push(Ja),D.push(Ade(s,p,i,r)),D.push(Ja),D.push(jde(l,re,r))}D.push(Ja),D.push(Ade(o,p,i,r))}var ie=r.havingBaseStyle(xi.TEXT);return Tde(_a([`delimsizing`,`mult`],[Sa({positionType:`bottom`,positionData:E,children:D})],ie),xi.TEXT,r,a)},Ide=80,Lde=.08,Rde=function(e,t,n,r,i){var a=Gle(e,r,n),o=new Mi(e,a);return va([`hide-tail`],[new ji([o],{width:`400em`,height:Di(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},zde=function(e,t){var n=t.havingBaseSizing(),r=Kde(`\\surd`,e*n.sizeMultiplier,Wde,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+Ide,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Lde)/i,l=(1+a)/i,o=Rde(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+Ide)*Za[r.size],l=(Za[r.size]+a)/i,s=(Za[r.size]+a+Lde)/i,o=Rde(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+Lde,l=e+a,u=Math.floor(1e3*e+a)+Ide,o=Rde(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=Di(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Bde=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Ya=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Xa=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Za=[0,1.2,1.8,2.4,3],Vde=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Bde.has(e)||Xa.has(e))return kde(e,t,!1,n,r,i);if(Ya.has(e))return Fde(e,Za[t],!1,n,r,i);throw new oi(`Illegal delimiter: '`+e+`'`)},Hde=[{type:`small`,style:xi.SCRIPTSCRIPT},{type:`small`,style:xi.SCRIPT},{type:`small`,style:xi.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Ude=[{type:`small`,style:xi.SCRIPTSCRIPT},{type:`small`,style:xi.SCRIPT},{type:`small`,style:xi.TEXT},{type:`stack`}],Wde=[{type:`small`,style:xi.SCRIPTSCRIPT},{type:`small`,style:xi.SCRIPT},{type:`small`,style:xi.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Gde=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 t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Kde=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},qde=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Xa.has(e)?Hde:Bde.has(e)?Wde:Ude,s=Kde(e,t,o,r);return s.type===`small`?Dde(e,s.style,n,r,i,a):s.type===`large`?kde(e,s.size,n,r,i,a):Fde(e,t,n,r,i,a)},Jde=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return qde(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},Yde={"\\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}},Xde=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,.`.split(`,`)),Xr({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=ni(ja(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:Yde[e.funcName].size,mclass:Yde[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?_a([e.mclass]):Vde(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(za(e.delim,e.mode));var n=new La(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=Di(Za[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),Xr({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new oi(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:ni(t[0],e).text,color:n}}}),Xr({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=ni(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=$r(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{vle(e);for(var n=Na(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{vle(e);var n=Ba(e.body,t);if(e.left!==`.`){var r=new La(`mo`,[za(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new La(`mo`,[za(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Kue(n)}}),Xr({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=ni(t[0],e);if(!e.parser.leftrightDepth)throw new oi(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Fa(t,[]):(n=Vde(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?za(`|`,`text`):za(e.delim,e.mode),r=new La(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),Zde=(e,t)=>{var n=xa(Ia(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=ci(e.body);if(r===`sout`)a=_a([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=Ei({number:.6,unit:`pt`},t),u=Ei({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Di(f/2+l);var p=Math.floor(1e3*f*i),m=Ule(p);a=va([`hide-tail`],[new ji([new Mi(`phase`,m)],{width:`400em`,height:Di(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=Di(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=ode(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=Di(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=Di(_),a.style.borderRightWidth=Di(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=Sa({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=Sa({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?_a([`mord`,`cancel-lap`],[v],t):_a([`mord`],[v],t)},Qde=(e,t)=>{var n,r=new La(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Ha(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+Di(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},Xr({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=$r(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Zde,mathmlBuilder:Qde}),Xr({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=$r(t[0],`color-token`).color,o=$r(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),Xr({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),Xr({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),Xr({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&Yr({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),Xr({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}}),$de={},efe={},Qa=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},$a=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Qa.range(this,t))}},eo=e=>{if(!e.parser.settings.displayMode)throw new oi(`{`+e.envName+`} can be used only in display mode.`)},tfe=new Set([`gather`,`gather*`]),to=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(xi.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?Ei({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ue=void 0;(r>0||e.hskipBeforeAndAfter)&&(ue=ie?.pregap??f,ue!==0&&(A=_a([`arraycolsep`],[]),A.style.width=Di(ue),k.push(A)));var de=[];for(n=0;n0){for(var ve=ya(`katex-hline`,t,u),ye=ya(`katex-hdashline`,t,u),be=[{type:`elem`,elem:_e,shift:0}];l.length>0;){var xe=l.pop(),Se=xe.pos-D;xe.isDashed?be.push({type:`elem`,elem:ye,shift:Se}):be.push({type:`elem`,elem:ve,shift:Se})}_e=Sa({positionType:`individualShift`,children:be})}if(M.length===0)return _a([`mord`],[_e],t);var Ce=_a([`katex-tag`],[Sa({positionType:`individualShift`,children:M})],t);return ba([_e,Ce])},nfe={c:`center `,l:`left `,r:`right `},no=function(e,t){for(var n=[],r=new La(`mtd`,[],[`mtr-glue`]),i=new La(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&d&&(m=1),n[f]={type:`align`,align:p,pregap:m,postgap:0}}return i.colSeparationType=d?`align`:`alignat`,i},ri({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(ti(t[0])?[t[0]]:$r(t[0],`ordgroup`).body).map(function(e){var t=ei(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new oi(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return ai(e.parser,r,xle(e.envName))},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new oi(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=ai(e.parser,r,xle(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=ai(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(ti(t[0])?[t[0]]:$r(t[0],`ordgroup`).body).map(function(e){var t=ei(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new oi(`Unknown column alignment: `+t,e)});if(n.length>1)throw new oi(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=ai(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new oi(`{subarray} can contain only one column`);return i},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=ai(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},xle(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:rfe,htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){tfe.has(e.envName)&&eo(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:ble(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ai(e.parser,t,`display`)},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:rfe,htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){eo(e);var t={autoTag:ble(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ai(e.parser,t,`display`)},htmlBuilder:to,mathmlBuilder:no}),ri({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return eo(e),gle(e.parser)},htmlBuilder:to,mathmlBuilder:no}),ii(`\\nonumber`,`\\gdef\\@eqnsw{0}`),ii(`\\notag`,`\\nonumber`),Xr({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new oi(e.funcName+` valid only within array environment`)}}),ife=$de,Xr({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new oi(`Invalid environment name`,i);var a=fle(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(ife,a))throw new oi(`No such environment: `+a,i);var o=ife[a],s=n.parseArguments(`\\begin{`+a+`}`,o),l=s.args,u=s.optArgs,d={mode:n.mode,envName:a,parser:n},f=o.handler(d,l,u);n.expect(`\\end`,!1);var p=n.nextToken,m=$r(n.parseFunction(),`environment`);if(m.name!==a)throw new oi(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}}),afe=(e,t)=>{var n=e.font,r=t.withFont(n);return Ia(e.body,r)},ofe=(e,t)=>{var n=e.font,r=t.withFont(n);return Ha(e.body,r)},ro={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},Xr({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=ja(t[0]),a=r in ro?ro[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:afe,mathmlBuilder:ofe}),Xr({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Ka(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:ci(r)}}}),Xr({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}}),sfe=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Ia(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new La(`mfrac`,[Ha(e.numer,t),Ha(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Ei(e.barSize,t);n.setAttribute(`linethickness`,Di(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new La(`mo`,[new Ra(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new La(`mo`,[new Ra(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Kue(i)}return n},lfe=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,Xr({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),lfe({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:sfe,mathmlBuilder:cfe}),Xr({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),ufe=[`display`,`text`,`script`,`scriptscript`],dfe=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},Xr({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=ja(t[0]),o=a.type===`atom`&&a.family===`open`?dfe(a.text):null,s=ja(t[1]),l=s.type===`atom`&&s.family===`close`?dfe(s.text):null,u=$r(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=$r(m.body[0],`textord`);p=ufe[Number(h.text)]}}else m=$r(m,`textord`),p=ufe[Number(m.text)];return lfe({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),Xr({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:$r(t[0],`size`).value,token:r}}}),Xr({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=$r(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}}),ffe=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Ia(e.sup,t.havingStyle(n.sup()),t):Ia(e.sub,t.havingStyle(n.sub()),t),i=$r(e.base,`horizBrace`)):i=$r(e,`horizBrace`);var a=Ia(i.base,t.havingBaseStyle(xi.DISPLAY)),o=Wa(i,t),s=i.isOver?Sa({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Sa({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=_a([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Sa({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Sa({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return _a([`minner`,i.isOver?`mover`:`munder`],[s],t)},pfe=(e,t)=>{var n=Ua(e.label);return new La(e.isOver?`mover`:`munder`,[Ha(e.base,t),n])},Xr({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:ffe,mathmlBuilder:pfe}),Xr({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=$r(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Ma(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Na(e.body,t,!1);return kue(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Va(e.body,t);return n instanceof La||(n=new La(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Xr({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=$r(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=$r(t[0],`raw`).string,a=t[1];n.settings.strict&&Yr({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var l=`{,}`,u=[],d=``,f=0;f{var n=Na(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=_a(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>Va(e.body,t)}),Xr({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:Ma(t[0]),mathml:Ma(t[1])}),htmlBuilder:(e,t)=>ba(Na(e.html,t,!1)),mathmlBuilder:(e,t)=>Va(e.mathml,t)}),mfe=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new oi(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Zle(n))throw new oi(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},Xr({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=$r(n[0],`raw`).string.split(`,`),u=0;u{var n=Ei(e.height,t),r=0;e.totalheight.number>0&&(r=Ei(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Ei(e.width,t));var a={height:Di(n+r)};i>0&&(a.width=Di(i)),r>0&&(a.verticalAlign=Di(-r));var o=new iue(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new La(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Ei(e.height,t),i=0;if(e.totalheight.number>0&&(i=Ei(e.totalheight,t)-r,n.setAttribute(`valign`,Di(-i))),n.setAttribute(`height`,Di(r+i)),e.width.number>0){var a=Ei(e.width,t);n.setAttribute(`width`,Di(a))}return n.setAttribute(`src`,e.src),n}}),Xr({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=$r(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||Yr({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&Yr({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&Yr({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return jue(e.dimension,t)},mathmlBuilder(e,t){var n=Ei(e.dimension,t);return new Uue(n)}}),Xr({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=_a([],[Ia(e.body,t)]),n=_a([`katex-inner`],[n],t)):n=_a([`katex-inner`],[Ia(e.body,t)]);var r=_a([`katex-fix`],[]),i=_a([e.alignment],[n,r],t),a=_a([`katex-strut`]);return a.style.height=Di(i.height+i.depth),i.depth&&(a.style.verticalAlign=Di(-i.depth)),i.children.unshift(a),i=_a([`katex-thinbox`],[i],t),_a([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new La(`mpadded`,[Ha(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Xr({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Xr({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new oi(`Mismatched `+e.funcName)}}),hfe=(e,t)=>{switch(t.style.size){case xi.DISPLAY.size:return e.display;case xi.TEXT.size:return e.text;case xi.SCRIPT.size:return e.script;case xi.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},Xr({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:Ma(t[0]),text:Ma(t[1]),script:Ma(t[2]),scriptscript:Ma(t[3])}),htmlBuilder:(e,t)=>ba(Na(hfe(e,t),t,!1)),mathmlBuilder:(e,t)=>Va(hfe(e,t),t)}),gfe=(e,t,n,r,i,a,o)=>{e=_a([],[e]);var s=n&&ci(n),l,u;if(t){var d=Ia(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Ia(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=Sa({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:Di(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:Di(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=Sa({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:Di(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=Sa({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:Di(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=_a([`mspace`],[],r);h.style.marginRight=Di(a),m.unshift(h)}return _a([`mop`,`op-limits`],m,r)},_fe=new Set([`\\smallint`]),vfe=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=$r(e.base,`op`),i=!0):a=$r(e,`op`);var o=t.style,s=!1;o.size===xi.DISPLAY.size&&a.symbol&&!_fe.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=pa(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=Nue(f+`Size`+(s?`2`:`1`),t);l=Sa({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=Na(a.body,t,!0);m.length===1&&m[0]instanceof Ai?(l=m[0],l.classes[0]=`mop`):l=_a([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new La(`mo`,[za(e.name,e.mode)]),_fe.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new La(`mo`,Ba(e.body,t));else{n=new La(`mi`,[new Ra(e.name.slice(1))]);var r=new La(`mo`,[za(`⁡`,`text`)]);n=e.parentIsSupSub?new La(`mrow`,[n,r]):cle([n,r])}return n},bfe={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},Xr({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=bfe[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:vfe,mathmlBuilder:yfe}),Xr({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ma(r)}}}),xfe={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},Xr({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`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),Xr({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),Xr({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=xfe[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}}),Sfe=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=$r(e.base,`operatorname`),i=!0):a=$r(e,`operatorname`);var o;if(a.body.length>0){for(var s=Na(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=Ba(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new Ra(s)]}var l=new La(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new La(`mo`,[za(`⁡`,`text`)]);return e.parentIsSupSub?new La(`mrow`,[l,u]):cle([l,u])},Xr({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:Ma(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Sfe,mathmlBuilder:Cfe}),ii(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Zr({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?ba(Na(e.body,t,!1)):_a([`mord`],Na(e.body,t,!0),t)},mathmlBuilder(e,t){return Va(e.body,t,!0)}}),Xr({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Ia(e.body,t.havingCrampedStyle()),r=ya(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return _a([`mord`,`katex-overline`],[Sa({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new La(`mo`,[new Ra(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new La(`mover`,[Ha(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Xr({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:Ma(r)}},htmlBuilder:(e,t)=>ba(Na(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=Ba(e.body,t);return new La(`mphantom`,n)}}),ii(`\\hphantom`,`\\smash{\\phantom{#1}}`),Xr({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>_a([`mord`,`rlap`],[_a([`katex-inner`],[Ia(e.body,t.withPhantom())]),_a([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=Ba(Ma(e.body),t),r=new La(`mphantom`,n),i=new La(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),Xr({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=$r(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Ia(e.body,t);return Sa({positionType:`shift`,positionData:-Ei(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new La(`mpadded`,[Ha(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),wfe=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]}),Xr({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:wfe,htmlBuilder(e,t){return _a([`mord`,`reflectbox`],[Ia(e.body,t)],t)},mathmlBuilder(e,t){return Ha(e.body,t)}}),Xr({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:wfe}),Xr({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),Xr({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=$r(t[0],`size`),o=$r(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&$r(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=_a([`mord`,`katex-rule`],[],t),r=Ei(e.width,t),i=Ei(e.height,t),a=e.shift?Ei(e.shift,t):0;return n.style.borderRightWidth=Di(r),n.style.borderTopWidth=Di(i),n.style.bottom=Di(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ei(e.width,t),r=Ei(e.height,t),i=e.shift?Ei(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new La(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,Di(n)),o.setAttribute(`height`,Di(r));var s=new La(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,Di(i)):(s.setAttribute(`height`,Di(i)),s.setAttribute(`depth`,Di(-i))),s.setAttribute(`voffset`,Di(i)),s}}),Tfe=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],Efe=(e,t)=>{var n=t.havingSize(e.size);return Sle(e.body,n,t)},Xr({type:`sizing`,names:Tfe,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Tfe.indexOf(r)+1,body:a}},htmlBuilder:Efe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ba(e.body,n),i=new La(`mstyle`,r);return i.setAttribute(`mathsize`,Di(n.sizeMultiplier)),i}}),Xr({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&$r(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=_a([],[Ia(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return _a([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new La(`mpadded`,[Ha(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Xr({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Ia(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=xa(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=s.height-n.height-a-l;n.style.paddingLeft=Di(u);var p=Sa({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:s},{type:`kern`,size:l}]});if(e.index){var m=t.havingStyle(xi.SCRIPTSCRIPT),h=Ia(e.index,m,t);return _a([`mord`,`sqrt`],[_a([`katex-root`],[Sa({positionType:`shift`,positionData:-(.6*(p.height-p.depth)),children:[{type:`elem`,elem:h}]})]),p],t)}return _a([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new La(`mroot`,[Ha(n,t),Ha(r,t)]):new La(`msqrt`,[Ha(n,t)])}}),Dfe={display:xi.DISPLAY,text:xi.TEXT,script:xi.SCRIPT,scriptscript:xi.SCRIPTSCRIPT},Xr({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Cle(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Dfe[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Sle(e.body,r,t)},mathmlBuilder(e,t){var n=Dfe[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=Ba(e.body,r),a=new La(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),Ofe=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===xi.DISPLAY.size||n.alwaysHandleSupSub)?vfe:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===xi.DISPLAY.size||n.limits)?Sfe:null:n.type===`accent`?ci(n.base)?fde:null:n.type===`horizBrace`&&!e.sub===n.isOver?ffe:null:null},Zr({type:`supsub`,htmlBuilder(e,t){var n=Ofe(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Ia(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&ci(r);if(i){var m=t.havingStyle(t.style.sup());s=Ia(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=Ia(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===xi.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=Di(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Ai||b)&&(y=Di(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=Sa({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=Sa({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=Sa({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return _a([Hue(o,`right`)||`mord`],[o,_a([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Ha(e.base,t)];e.sub&&a.push(Ha(e.sub,t)),e.sup&&a.push(Ha(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===xi.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===xi.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===xi.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===xi.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===xi.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===xi.DISPLAY)?`munder`:`msub`}return new La(o,a)}}),Zr({type:`atom`,htmlBuilder(e,t){return ma(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new La(`mo`,[za(e.text,e.mode)]);if(e.family===`bin`){var r=Jue(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),kfe={mi:`italic`,mn:`normal`,mtext:`normal`},Zr({type:`mathord`,htmlBuilder(e,t){return ha(e,t)},mathmlBuilder(e,t){var n=new La(`mi`,[za(e.text,e.mode,t)]),r=Jue(e,t)||`italic`;return r!==kfe[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Zr({type:`textord`,htmlBuilder(e,t){return ha(e,t)},mathmlBuilder(e,t){var n=za(e.text,e.mode,t),r=Jue(e,t)||`normal`,i=e.mode===`text`?new La(`mtext`,[n]):/[0-9]/.test(e.text)?new La(`mn`,[n]):e.text===`\\prime`?new La(`mo`,[n]):new La(`mi`,[n]);return r!==kfe[i.type]&&i.setAttribute(`mathvariant`,r),i}}),Afe=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),jfe=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]),Zr({type:`spacing`,htmlBuilder(e,t){var n=jfe.get(e.text),r=Afe.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=ha(e,t);return a.classes.push(i),a}return _a([`mspace`,i],[ma(e.text,e.mode,t)],t)}if(r)return _a([`mspace`,r],[],t);throw new oi(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(jfe.has(e.text))n=new La(`mtext`,[new Ra(`\xA0`)]);else if(Afe.has(e.text))return new La(`mspace`);else throw new oi(`Unknown type of space "`+e.text+`"`);return n}}),Mfe=()=>{var e=new La(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},Zr({type:`tag`,mathmlBuilder(e,t){var n=new La(`mtable`,[new La(`mtr`,[Mfe(),new La(`mtd`,[Va(e.body,t)]),Mfe(),new La(`mtd`,[Va(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),Nfe={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Pfe={"\\textbf":`textbf`,"\\textmd":`textmd`},Ffe={"\\textit":`textit`,"\\textup":`textup`},io=(e,t)=>{var n=e.font;return n?Nfe[n]?t.withTextFontFamily(Nfe[n]):Pfe[n]?t.withTextFontWeight(Pfe[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Ffe[n]):t},Xr({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:Ma(i),font:r}},htmlBuilder(e,t){var n=io(e,t);return _a([`mord`,`text`],Na(e.body,n,!0),n)},mathmlBuilder(e,t){var n=io(e,t);return Va(e.body,n)}}),Xr({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Ia(e.body,t),r=ya(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return _a([`mord`,`katex-underline`],[Sa({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new La(`mo`,[new Ra(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new La(`munder`,[Ha(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Xr({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Ia(e.body,t),r=t.fontMetrics().axisHeight;return Sa({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new La(`mpadded`,[Ha(e.body,t)],[`vcenter`]);return new La(`mrow`,[n])}}),Xr({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new oi(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Ife(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),ao=Fue,Lfe=`[ \r - ]`,Rfe=`\\\\[a-zA-Z@]+`,zfe=`\\\\[^\ud800-\udfff]`,Bfe=`(`+Rfe+`)`+Lfe+`*`,Vfe=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},vi=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(),t=0;t{if(lle(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},sue={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},cue={ex:!0,em:!0,mu:!0},lue=function(e){return typeof e!=`string`&&(e=e.unit),e in sue||e in cue||e===`ex`},yi=function(e,t){var n;if(e.unit in sue)n=sue[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new ei(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},bi=function(e){return+e.toFixed(4)+`em`},xi=function(e){return e.filter(e=>e).join(` `)},uue=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Ile(n)+`:`+r+`;`)}return t},due=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},fue=function(e){var t=document.createElement(e);t.className=xi(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,mue=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+ti(xi(this.classes))+`"`);var n=uue(this.style);n&&(t+=` style="`+ti(n)+`"`);for(var r of Object.keys(this.attributes)){if(pue.test(r))throw new ei(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+ti(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},Si=class{constructor(e,t,n,r){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,due.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return fue.call(this,`span`)}toMarkup(){return mue.call(this,`span`)}},hue=class{constructor(e,t,n,r){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,due.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return fue.call(this,`a`)}toMarkup(){return mue.call(this,`a`)}},gue=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.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=``+ti(this.alt)+``,e}},_ue={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Ci=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=sle(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=_ue[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=bi(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=xi(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+bi(this.italic)+`;`),n+=uue(this.style),n&&(e=!0,t+=` style="`+ti(n)+`"`);var r=ti(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},wi=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},Ti=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,aue[this.pathName]),e}toMarkup(){return this.alternate?``:``}},vue=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},yue=e=>e instanceof Si||e instanceof hue||e instanceof vi,Ei={"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]}},Di={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]},Oi={Å:`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`},ki={},Ai={math:{},text:{}},I=`math`,ji=`text`,Mi=`main`,Ni=`ams`,Pi=`accent-token`,Fi=`bin`,Ii=`close`,Li=`inner`,Ri=`mathord`,zi=`op-token`,Bi=`open`,Vi=`punct`,Hi=`rel`,Ui=`spacing`,L=`textord`,F(I,Mi,Hi,`≡`,`\\equiv`,!0),F(I,Mi,Hi,`≺`,`\\prec`,!0),F(I,Mi,Hi,`≻`,`\\succ`,!0),F(I,Mi,Hi,`∼`,`\\sim`,!0),F(I,Mi,Hi,`⊥`,`\\perp`),F(I,Mi,Hi,`⪯`,`\\preceq`,!0),F(I,Mi,Hi,`⪰`,`\\succeq`,!0),F(I,Mi,Hi,`≃`,`\\simeq`,!0),F(I,Mi,Hi,`∣`,`\\mid`,!0),F(I,Mi,Hi,`≪`,`\\ll`,!0),F(I,Mi,Hi,`≫`,`\\gg`,!0),F(I,Mi,Hi,`≍`,`\\asymp`,!0),F(I,Mi,Hi,`∥`,`\\parallel`),F(I,Mi,Hi,`⋈`,`\\bowtie`,!0),F(I,Mi,Hi,`⌣`,`\\smile`,!0),F(I,Mi,Hi,`⊑`,`\\sqsubseteq`,!0),F(I,Mi,Hi,`⊒`,`\\sqsupseteq`,!0),F(I,Mi,Hi,`≐`,`\\doteq`,!0),F(I,Mi,Hi,`⌢`,`\\frown`,!0),F(I,Mi,Hi,`∋`,`\\ni`,!0),F(I,Mi,Hi,`∝`,`\\propto`,!0),F(I,Mi,Hi,`⊢`,`\\vdash`,!0),F(I,Mi,Hi,`⊣`,`\\dashv`,!0),F(I,Mi,Hi,`∋`,`\\owns`),F(I,Mi,Vi,`.`,`\\ldotp`),F(I,Mi,Vi,`⋅`,`\\cdotp`),F(I,Mi,Vi,`⋅`,`·`),F(ji,Mi,L,`⋅`,`·`),F(I,Mi,L,`#`,`\\#`),F(ji,Mi,L,`#`,`\\#`),F(I,Mi,L,`&`,`\\&`),F(ji,Mi,L,`&`,`\\&`),F(I,Mi,L,`ℵ`,`\\aleph`,!0),F(I,Mi,L,`∀`,`\\forall`,!0),F(I,Mi,L,`ℏ`,`\\hbar`,!0),F(I,Mi,L,`∃`,`\\exists`,!0),F(I,Mi,L,`∇`,`\\nabla`,!0),F(I,Mi,L,`♭`,`\\flat`,!0),F(I,Mi,L,`ℓ`,`\\ell`,!0),F(I,Mi,L,`♮`,`\\natural`,!0),F(I,Mi,L,`♣`,`\\clubsuit`,!0),F(I,Mi,L,`℘`,`\\wp`,!0),F(I,Mi,L,`♯`,`\\sharp`,!0),F(I,Mi,L,`♢`,`\\diamondsuit`,!0),F(I,Mi,L,`ℜ`,`\\Re`,!0),F(I,Mi,L,`♡`,`\\heartsuit`,!0),F(I,Mi,L,`ℑ`,`\\Im`,!0),F(I,Mi,L,`♠`,`\\spadesuit`,!0),F(I,Mi,L,`§`,`\\S`,!0),F(ji,Mi,L,`§`,`\\S`),F(I,Mi,L,`¶`,`\\P`,!0),F(ji,Mi,L,`¶`,`\\P`),F(I,Mi,L,`†`,`\\dag`),F(ji,Mi,L,`†`,`\\dag`),F(ji,Mi,L,`†`,`\\textdagger`),F(I,Mi,L,`‡`,`\\ddag`),F(ji,Mi,L,`‡`,`\\ddag`),F(ji,Mi,L,`‡`,`\\textdaggerdbl`),F(I,Mi,Ii,`⎱`,`\\rmoustache`,!0),F(I,Mi,Bi,`⎰`,`\\lmoustache`,!0),F(I,Mi,Ii,`⟯`,`\\rgroup`,!0),F(I,Mi,Bi,`⟮`,`\\lgroup`,!0),F(I,Mi,Fi,`∓`,`\\mp`,!0),F(I,Mi,Fi,`⊖`,`\\ominus`,!0),F(I,Mi,Fi,`⊎`,`\\uplus`,!0),F(I,Mi,Fi,`⊓`,`\\sqcap`,!0),F(I,Mi,Fi,`∗`,`\\ast`),F(I,Mi,Fi,`⊔`,`\\sqcup`,!0),F(I,Mi,Fi,`◯`,`\\bigcirc`,!0),F(I,Mi,Fi,`∙`,`\\bullet`,!0),F(I,Mi,Fi,`‡`,`\\ddagger`),F(I,Mi,Fi,`≀`,`\\wr`,!0),F(I,Mi,Fi,`⨿`,`\\amalg`),F(I,Mi,Fi,`&`,`\\And`),F(I,Mi,Hi,`⟵`,`\\longleftarrow`,!0),F(I,Mi,Hi,`⇐`,`\\Leftarrow`,!0),F(I,Mi,Hi,`⟸`,`\\Longleftarrow`,!0),F(I,Mi,Hi,`⟶`,`\\longrightarrow`,!0),F(I,Mi,Hi,`⇒`,`\\Rightarrow`,!0),F(I,Mi,Hi,`⟹`,`\\Longrightarrow`,!0),F(I,Mi,Hi,`↔`,`\\leftrightarrow`,!0),F(I,Mi,Hi,`⟷`,`\\longleftrightarrow`,!0),F(I,Mi,Hi,`⇔`,`\\Leftrightarrow`,!0),F(I,Mi,Hi,`⟺`,`\\Longleftrightarrow`,!0),F(I,Mi,Hi,`↦`,`\\mapsto`,!0),F(I,Mi,Hi,`⟼`,`\\longmapsto`,!0),F(I,Mi,Hi,`↗`,`\\nearrow`,!0),F(I,Mi,Hi,`↩`,`\\hookleftarrow`,!0),F(I,Mi,Hi,`↪`,`\\hookrightarrow`,!0),F(I,Mi,Hi,`↘`,`\\searrow`,!0),F(I,Mi,Hi,`↼`,`\\leftharpoonup`,!0),F(I,Mi,Hi,`⇀`,`\\rightharpoonup`,!0),F(I,Mi,Hi,`↙`,`\\swarrow`,!0),F(I,Mi,Hi,`↽`,`\\leftharpoondown`,!0),F(I,Mi,Hi,`⇁`,`\\rightharpoondown`,!0),F(I,Mi,Hi,`↖`,`\\nwarrow`,!0),F(I,Mi,Hi,`⇌`,`\\rightleftharpoons`,!0),F(I,Ni,Hi,`≮`,`\\nless`,!0),F(I,Ni,Hi,``,`\\@nleqslant`),F(I,Ni,Hi,``,`\\@nleqq`),F(I,Ni,Hi,`⪇`,`\\lneq`,!0),F(I,Ni,Hi,`≨`,`\\lneqq`,!0),F(I,Ni,Hi,``,`\\@lvertneqq`),F(I,Ni,Hi,`⋦`,`\\lnsim`,!0),F(I,Ni,Hi,`⪉`,`\\lnapprox`,!0),F(I,Ni,Hi,`⊀`,`\\nprec`,!0),F(I,Ni,Hi,`⋠`,`\\npreceq`,!0),F(I,Ni,Hi,`⋨`,`\\precnsim`,!0),F(I,Ni,Hi,`⪹`,`\\precnapprox`,!0),F(I,Ni,Hi,`≁`,`\\nsim`,!0),F(I,Ni,Hi,``,`\\@nshortmid`),F(I,Ni,Hi,`∤`,`\\nmid`,!0),F(I,Ni,Hi,`⊬`,`\\nvdash`,!0),F(I,Ni,Hi,`⊭`,`\\nvDash`,!0),F(I,Ni,Hi,`⋪`,`\\ntriangleleft`),F(I,Ni,Hi,`⋬`,`\\ntrianglelefteq`,!0),F(I,Ni,Hi,`⊊`,`\\subsetneq`,!0),F(I,Ni,Hi,``,`\\@varsubsetneq`),F(I,Ni,Hi,`⫋`,`\\subsetneqq`,!0),F(I,Ni,Hi,``,`\\@varsubsetneqq`),F(I,Ni,Hi,`≯`,`\\ngtr`,!0),F(I,Ni,Hi,``,`\\@ngeqslant`),F(I,Ni,Hi,``,`\\@ngeqq`),F(I,Ni,Hi,`⪈`,`\\gneq`,!0),F(I,Ni,Hi,`≩`,`\\gneqq`,!0),F(I,Ni,Hi,``,`\\@gvertneqq`),F(I,Ni,Hi,`⋧`,`\\gnsim`,!0),F(I,Ni,Hi,`⪊`,`\\gnapprox`,!0),F(I,Ni,Hi,`⊁`,`\\nsucc`,!0),F(I,Ni,Hi,`⋡`,`\\nsucceq`,!0),F(I,Ni,Hi,`⋩`,`\\succnsim`,!0),F(I,Ni,Hi,`⪺`,`\\succnapprox`,!0),F(I,Ni,Hi,`≆`,`\\ncong`,!0),F(I,Ni,Hi,``,`\\@nshortparallel`),F(I,Ni,Hi,`∦`,`\\nparallel`,!0),F(I,Ni,Hi,`⊯`,`\\nVDash`,!0),F(I,Ni,Hi,`⋫`,`\\ntriangleright`),F(I,Ni,Hi,`⋭`,`\\ntrianglerighteq`,!0),F(I,Ni,Hi,``,`\\@nsupseteqq`),F(I,Ni,Hi,`⊋`,`\\supsetneq`,!0),F(I,Ni,Hi,``,`\\@varsupsetneq`),F(I,Ni,Hi,`⫌`,`\\supsetneqq`,!0),F(I,Ni,Hi,``,`\\@varsupsetneqq`),F(I,Ni,Hi,`⊮`,`\\nVdash`,!0),F(I,Ni,Hi,`⪵`,`\\precneqq`,!0),F(I,Ni,Hi,`⪶`,`\\succneqq`,!0),F(I,Ni,Hi,``,`\\@nsubseteqq`),F(I,Ni,Fi,`⊴`,`\\unlhd`),F(I,Ni,Fi,`⊵`,`\\unrhd`),F(I,Ni,Hi,`↚`,`\\nleftarrow`,!0),F(I,Ni,Hi,`↛`,`\\nrightarrow`,!0),F(I,Ni,Hi,`⇍`,`\\nLeftarrow`,!0),F(I,Ni,Hi,`⇏`,`\\nRightarrow`,!0),F(I,Ni,Hi,`↮`,`\\nleftrightarrow`,!0),F(I,Ni,Hi,`⇎`,`\\nLeftrightarrow`,!0),F(I,Ni,Hi,`△`,`\\vartriangle`),F(I,Ni,L,`ℏ`,`\\hslash`),F(I,Ni,L,`▽`,`\\triangledown`),F(I,Ni,L,`◊`,`\\lozenge`),F(I,Ni,L,`Ⓢ`,`\\circledS`),F(I,Ni,L,`®`,`\\circledR`),F(ji,Ni,L,`®`,`\\circledR`),F(I,Ni,L,`∡`,`\\measuredangle`,!0),F(I,Ni,L,`∄`,`\\nexists`),F(I,Ni,L,`℧`,`\\mho`),F(I,Ni,L,`Ⅎ`,`\\Finv`,!0),F(I,Ni,L,`⅁`,`\\Game`,!0),F(I,Ni,L,`‵`,`\\backprime`),F(I,Ni,L,`▲`,`\\blacktriangle`),F(I,Ni,L,`▼`,`\\blacktriangledown`),F(I,Ni,L,`■`,`\\blacksquare`),F(I,Ni,L,`⧫`,`\\blacklozenge`),F(I,Ni,L,`★`,`\\bigstar`),F(I,Ni,L,`∢`,`\\sphericalangle`,!0),F(I,Ni,L,`∁`,`\\complement`,!0),F(I,Ni,L,`ð`,`\\eth`,!0),F(ji,Mi,L,`ð`,`ð`),F(I,Ni,L,`╱`,`\\diagup`),F(I,Ni,L,`╲`,`\\diagdown`),F(I,Ni,L,`□`,`\\square`),F(I,Ni,L,`□`,`\\Box`),F(I,Ni,L,`◊`,`\\Diamond`),F(I,Ni,L,`¥`,`\\yen`,!0),F(ji,Ni,L,`¥`,`\\yen`,!0),F(I,Ni,L,`✓`,`\\checkmark`,!0),F(ji,Ni,L,`✓`,`\\checkmark`),F(I,Ni,L,`ℶ`,`\\beth`,!0),F(I,Ni,L,`ℸ`,`\\daleth`,!0),F(I,Ni,L,`ℷ`,`\\gimel`,!0),F(I,Ni,L,`ϝ`,`\\digamma`,!0),F(I,Ni,L,`ϰ`,`\\varkappa`),F(I,Ni,Bi,`┌`,`\\@ulcorner`,!0),F(I,Ni,Ii,`┐`,`\\@urcorner`,!0),F(I,Ni,Bi,`└`,`\\@llcorner`,!0),F(I,Ni,Ii,`┘`,`\\@lrcorner`,!0),F(I,Ni,Hi,`≦`,`\\leqq`,!0),F(I,Ni,Hi,`⩽`,`\\leqslant`,!0),F(I,Ni,Hi,`⪕`,`\\eqslantless`,!0),F(I,Ni,Hi,`≲`,`\\lesssim`,!0),F(I,Ni,Hi,`⪅`,`\\lessapprox`,!0),F(I,Ni,Hi,`≊`,`\\approxeq`,!0),F(I,Ni,Fi,`⋖`,`\\lessdot`),F(I,Ni,Hi,`⋘`,`\\lll`,!0),F(I,Ni,Hi,`≶`,`\\lessgtr`,!0),F(I,Ni,Hi,`⋚`,`\\lesseqgtr`,!0),F(I,Ni,Hi,`⪋`,`\\lesseqqgtr`,!0),F(I,Ni,Hi,`≑`,`\\doteqdot`),F(I,Ni,Hi,`≓`,`\\risingdotseq`,!0),F(I,Ni,Hi,`≒`,`\\fallingdotseq`,!0),F(I,Ni,Hi,`∽`,`\\backsim`,!0),F(I,Ni,Hi,`⋍`,`\\backsimeq`,!0),F(I,Ni,Hi,`⫅`,`\\subseteqq`,!0),F(I,Ni,Hi,`⋐`,`\\Subset`,!0),F(I,Ni,Hi,`⊏`,`\\sqsubset`,!0),F(I,Ni,Hi,`≼`,`\\preccurlyeq`,!0),F(I,Ni,Hi,`⋞`,`\\curlyeqprec`,!0),F(I,Ni,Hi,`≾`,`\\precsim`,!0),F(I,Ni,Hi,`⪷`,`\\precapprox`,!0),F(I,Ni,Hi,`⊲`,`\\vartriangleleft`),F(I,Ni,Hi,`⊴`,`\\trianglelefteq`),F(I,Ni,Hi,`⊨`,`\\vDash`,!0),F(I,Ni,Hi,`⊪`,`\\Vvdash`,!0),F(I,Ni,Hi,`⌣`,`\\smallsmile`),F(I,Ni,Hi,`⌢`,`\\smallfrown`),F(I,Ni,Hi,`≏`,`\\bumpeq`,!0),F(I,Ni,Hi,`≎`,`\\Bumpeq`,!0),F(I,Ni,Hi,`≧`,`\\geqq`,!0),F(I,Ni,Hi,`⩾`,`\\geqslant`,!0),F(I,Ni,Hi,`⪖`,`\\eqslantgtr`,!0),F(I,Ni,Hi,`≳`,`\\gtrsim`,!0),F(I,Ni,Hi,`⪆`,`\\gtrapprox`,!0),F(I,Ni,Fi,`⋗`,`\\gtrdot`),F(I,Ni,Hi,`⋙`,`\\ggg`,!0),F(I,Ni,Hi,`≷`,`\\gtrless`,!0),F(I,Ni,Hi,`⋛`,`\\gtreqless`,!0),F(I,Ni,Hi,`⪌`,`\\gtreqqless`,!0),F(I,Ni,Hi,`≖`,`\\eqcirc`,!0),F(I,Ni,Hi,`≗`,`\\circeq`,!0),F(I,Ni,Hi,`≜`,`\\triangleq`,!0),F(I,Ni,Hi,`∼`,`\\thicksim`),F(I,Ni,Hi,`≈`,`\\thickapprox`),F(I,Ni,Hi,`⫆`,`\\supseteqq`,!0),F(I,Ni,Hi,`⋑`,`\\Supset`,!0),F(I,Ni,Hi,`⊐`,`\\sqsupset`,!0),F(I,Ni,Hi,`≽`,`\\succcurlyeq`,!0),F(I,Ni,Hi,`⋟`,`\\curlyeqsucc`,!0),F(I,Ni,Hi,`≿`,`\\succsim`,!0),F(I,Ni,Hi,`⪸`,`\\succapprox`,!0),F(I,Ni,Hi,`⊳`,`\\vartriangleright`),F(I,Ni,Hi,`⊵`,`\\trianglerighteq`),F(I,Ni,Hi,`⊩`,`\\Vdash`,!0),F(I,Ni,Hi,`∣`,`\\shortmid`),F(I,Ni,Hi,`∥`,`\\shortparallel`),F(I,Ni,Hi,`≬`,`\\between`,!0),F(I,Ni,Hi,`⋔`,`\\pitchfork`,!0),F(I,Ni,Hi,`∝`,`\\varpropto`),F(I,Ni,Hi,`◀`,`\\blacktriangleleft`),F(I,Ni,Hi,`∴`,`\\therefore`,!0),F(I,Ni,Hi,`∍`,`\\backepsilon`),F(I,Ni,Hi,`▶`,`\\blacktriangleright`),F(I,Ni,Hi,`∵`,`\\because`,!0),F(I,Ni,Hi,`⋘`,`\\llless`),F(I,Ni,Hi,`⋙`,`\\gggtr`),F(I,Ni,Fi,`⊲`,`\\lhd`),F(I,Ni,Fi,`⊳`,`\\rhd`),F(I,Ni,Hi,`≂`,`\\eqsim`,!0),F(I,Mi,Hi,`⋈`,`\\Join`),F(I,Ni,Hi,`≑`,`\\Doteq`,!0),F(I,Ni,Fi,`∔`,`\\dotplus`,!0),F(I,Ni,Fi,`∖`,`\\smallsetminus`),F(I,Ni,Fi,`⋒`,`\\Cap`,!0),F(I,Ni,Fi,`⋓`,`\\Cup`,!0),F(I,Ni,Fi,`⩞`,`\\doublebarwedge`,!0),F(I,Ni,Fi,`⊟`,`\\boxminus`,!0),F(I,Ni,Fi,`⊞`,`\\boxplus`,!0),F(I,Ni,Fi,`⋇`,`\\divideontimes`,!0),F(I,Ni,Fi,`⋉`,`\\ltimes`,!0),F(I,Ni,Fi,`⋊`,`\\rtimes`,!0),F(I,Ni,Fi,`⋋`,`\\leftthreetimes`,!0),F(I,Ni,Fi,`⋌`,`\\rightthreetimes`,!0),F(I,Ni,Fi,`⋏`,`\\curlywedge`,!0),F(I,Ni,Fi,`⋎`,`\\curlyvee`,!0),F(I,Ni,Fi,`⊝`,`\\circleddash`,!0),F(I,Ni,Fi,`⊛`,`\\circledast`,!0),F(I,Ni,Fi,`⋅`,`\\centerdot`),F(I,Ni,Fi,`⊺`,`\\intercal`,!0),F(I,Ni,Fi,`⋒`,`\\doublecap`),F(I,Ni,Fi,`⋓`,`\\doublecup`),F(I,Ni,Fi,`⊠`,`\\boxtimes`,!0),F(I,Ni,Hi,`⇢`,`\\dashrightarrow`,!0),F(I,Ni,Hi,`⇠`,`\\dashleftarrow`,!0),F(I,Ni,Hi,`⇇`,`\\leftleftarrows`,!0),F(I,Ni,Hi,`⇆`,`\\leftrightarrows`,!0),F(I,Ni,Hi,`⇚`,`\\Lleftarrow`,!0),F(I,Ni,Hi,`↞`,`\\twoheadleftarrow`,!0),F(I,Ni,Hi,`↢`,`\\leftarrowtail`,!0),F(I,Ni,Hi,`↫`,`\\looparrowleft`,!0),F(I,Ni,Hi,`⇋`,`\\leftrightharpoons`,!0),F(I,Ni,Hi,`↶`,`\\curvearrowleft`,!0),F(I,Ni,Hi,`↺`,`\\circlearrowleft`,!0),F(I,Ni,Hi,`↰`,`\\Lsh`,!0),F(I,Ni,Hi,`⇈`,`\\upuparrows`,!0),F(I,Ni,Hi,`↿`,`\\upharpoonleft`,!0),F(I,Ni,Hi,`⇃`,`\\downharpoonleft`,!0),F(I,Mi,Hi,`⊶`,`\\origof`,!0),F(I,Mi,Hi,`⊷`,`\\imageof`,!0),F(I,Ni,Hi,`⊸`,`\\multimap`,!0),F(I,Ni,Hi,`↭`,`\\leftrightsquigarrow`,!0),F(I,Ni,Hi,`⇉`,`\\rightrightarrows`,!0),F(I,Ni,Hi,`⇄`,`\\rightleftarrows`,!0),F(I,Ni,Hi,`↠`,`\\twoheadrightarrow`,!0),F(I,Ni,Hi,`↣`,`\\rightarrowtail`,!0),F(I,Ni,Hi,`↬`,`\\looparrowright`,!0),F(I,Ni,Hi,`↷`,`\\curvearrowright`,!0),F(I,Ni,Hi,`↻`,`\\circlearrowright`,!0),F(I,Ni,Hi,`↱`,`\\Rsh`,!0),F(I,Ni,Hi,`⇊`,`\\downdownarrows`,!0),F(I,Ni,Hi,`↾`,`\\upharpoonright`,!0),F(I,Ni,Hi,`⇂`,`\\downharpoonright`,!0),F(I,Ni,Hi,`⇝`,`\\rightsquigarrow`,!0),F(I,Ni,Hi,`⇝`,`\\leadsto`),F(I,Ni,Hi,`⇛`,`\\Rrightarrow`,!0),F(I,Ni,Hi,`↾`,`\\restriction`),F(I,Mi,L,`‘`,"`"),F(I,Mi,L,`$`,`\\$`),F(ji,Mi,L,`$`,`\\$`),F(ji,Mi,L,`$`,`\\textdollar`),F(I,Mi,L,`%`,`\\%`),F(ji,Mi,L,`%`,`\\%`),F(I,Mi,L,`_`,`\\_`),F(ji,Mi,L,`_`,`\\_`),F(ji,Mi,L,`_`,`\\textunderscore`),F(I,Mi,L,`∠`,`\\angle`,!0),F(I,Mi,L,`∞`,`\\infty`,!0),F(I,Mi,L,`′`,`\\prime`),F(I,Mi,L,`△`,`\\triangle`),F(I,Mi,L,`Γ`,`\\Gamma`,!0),F(I,Mi,L,`Δ`,`\\Delta`,!0),F(I,Mi,L,`Θ`,`\\Theta`,!0),F(I,Mi,L,`Λ`,`\\Lambda`,!0),F(I,Mi,L,`Ξ`,`\\Xi`,!0),F(I,Mi,L,`Π`,`\\Pi`,!0),F(I,Mi,L,`Σ`,`\\Sigma`,!0),F(I,Mi,L,`Υ`,`\\Upsilon`,!0),F(I,Mi,L,`Φ`,`\\Phi`,!0),F(I,Mi,L,`Ψ`,`\\Psi`,!0),F(I,Mi,L,`Ω`,`\\Omega`,!0),F(I,Mi,L,`A`,`Α`),F(I,Mi,L,`B`,`Β`),F(I,Mi,L,`E`,`Ε`),F(I,Mi,L,`Z`,`Ζ`),F(I,Mi,L,`H`,`Η`),F(I,Mi,L,`I`,`Ι`),F(I,Mi,L,`K`,`Κ`),F(I,Mi,L,`M`,`Μ`),F(I,Mi,L,`N`,`Ν`),F(I,Mi,L,`O`,`Ο`),F(I,Mi,L,`P`,`Ρ`),F(I,Mi,L,`T`,`Τ`),F(I,Mi,L,`X`,`Χ`),F(I,Mi,L,`¬`,`\\neg`,!0),F(I,Mi,L,`¬`,`\\lnot`),F(I,Mi,L,`⊤`,`\\top`),F(I,Mi,L,`⊥`,`\\bot`),F(I,Mi,L,`∅`,`\\emptyset`),F(I,Ni,L,`∅`,`\\varnothing`),F(I,Mi,Ri,`α`,`\\alpha`,!0),F(I,Mi,Ri,`β`,`\\beta`,!0),F(I,Mi,Ri,`γ`,`\\gamma`,!0),F(I,Mi,Ri,`δ`,`\\delta`,!0),F(I,Mi,Ri,`ϵ`,`\\epsilon`,!0),F(I,Mi,Ri,`ζ`,`\\zeta`,!0),F(I,Mi,Ri,`η`,`\\eta`,!0),F(I,Mi,Ri,`θ`,`\\theta`,!0),F(I,Mi,Ri,`ι`,`\\iota`,!0),F(I,Mi,Ri,`κ`,`\\kappa`,!0),F(I,Mi,Ri,`λ`,`\\lambda`,!0),F(I,Mi,Ri,`μ`,`\\mu`,!0),F(I,Mi,Ri,`ν`,`\\nu`,!0),F(I,Mi,Ri,`ξ`,`\\xi`,!0),F(I,Mi,Ri,`ο`,`\\omicron`,!0),F(I,Mi,Ri,`π`,`\\pi`,!0),F(I,Mi,Ri,`ρ`,`\\rho`,!0),F(I,Mi,Ri,`σ`,`\\sigma`,!0),F(I,Mi,Ri,`τ`,`\\tau`,!0),F(I,Mi,Ri,`υ`,`\\upsilon`,!0),F(I,Mi,Ri,`ϕ`,`\\phi`,!0),F(I,Mi,Ri,`χ`,`\\chi`,!0),F(I,Mi,Ri,`ψ`,`\\psi`,!0),F(I,Mi,Ri,`ω`,`\\omega`,!0),F(I,Mi,Ri,`ε`,`\\varepsilon`,!0),F(I,Mi,Ri,`ϑ`,`\\vartheta`,!0),F(I,Mi,Ri,`ϖ`,`\\varpi`,!0),F(I,Mi,Ri,`ϱ`,`\\varrho`,!0),F(I,Mi,Ri,`ς`,`\\varsigma`,!0),F(I,Mi,Ri,`φ`,`\\varphi`,!0),F(I,Mi,Fi,`∗`,`*`,!0),F(I,Mi,Fi,`+`,`+`),F(I,Mi,Fi,`−`,`-`,!0),F(I,Mi,Fi,`⋅`,`\\cdot`,!0),F(I,Mi,Fi,`∘`,`\\circ`,!0),F(I,Mi,Fi,`÷`,`\\div`,!0),F(I,Mi,Fi,`±`,`\\pm`,!0),F(I,Mi,Fi,`×`,`\\times`,!0),F(I,Mi,Fi,`∩`,`\\cap`,!0),F(I,Mi,Fi,`∪`,`\\cup`,!0),F(I,Mi,Fi,`∖`,`\\setminus`,!0),F(I,Mi,Fi,`∧`,`\\land`),F(I,Mi,Fi,`∨`,`\\lor`),F(I,Mi,Fi,`∧`,`\\wedge`,!0),F(I,Mi,Fi,`∨`,`\\vee`,!0),F(I,Mi,L,`√`,`\\surd`),F(I,Mi,Bi,`⟨`,`\\langle`,!0),F(I,Mi,Bi,`∣`,`\\lvert`),F(I,Mi,Bi,`∥`,`\\lVert`),F(I,Mi,Ii,`?`,`?`),F(I,Mi,Ii,`!`,`!`),F(I,Mi,Ii,`⟩`,`\\rangle`,!0),F(I,Mi,Ii,`∣`,`\\rvert`),F(I,Mi,Ii,`∥`,`\\rVert`),F(I,Mi,Hi,`=`,`=`),F(I,Mi,Hi,`:`,`:`),F(I,Mi,Hi,`≈`,`\\approx`,!0),F(I,Mi,Hi,`≅`,`\\cong`,!0),F(I,Mi,Hi,`≥`,`\\ge`),F(I,Mi,Hi,`≥`,`\\geq`,!0),F(I,Mi,Hi,`←`,`\\gets`),F(I,Mi,Hi,`>`,`\\gt`,!0),F(I,Mi,Hi,`∈`,`\\in`,!0),F(I,Mi,Hi,``,`\\@not`),F(I,Mi,Hi,`⊂`,`\\subset`,!0),F(I,Mi,Hi,`⊃`,`\\supset`,!0),F(I,Mi,Hi,`⊆`,`\\subseteq`,!0),F(I,Mi,Hi,`⊇`,`\\supseteq`,!0),F(I,Ni,Hi,`⊈`,`\\nsubseteq`,!0),F(I,Ni,Hi,`⊉`,`\\nsupseteq`,!0),F(I,Mi,Hi,`⊨`,`\\models`),F(I,Mi,Hi,`←`,`\\leftarrow`,!0),F(I,Mi,Hi,`≤`,`\\le`),F(I,Mi,Hi,`≤`,`\\leq`,!0),F(I,Mi,Hi,`<`,`\\lt`,!0),F(I,Mi,Hi,`→`,`\\rightarrow`,!0),F(I,Mi,Hi,`→`,`\\to`),F(I,Ni,Hi,`≱`,`\\ngeq`,!0),F(I,Ni,Hi,`≰`,`\\nleq`,!0),F(I,Mi,Ui,`\xA0`,`\\ `),F(I,Mi,Ui,`\xA0`,`\\space`),F(I,Mi,Ui,`\xA0`,`\\nobreakspace`),F(ji,Mi,Ui,`\xA0`,`\\ `),F(ji,Mi,Ui,`\xA0`,` `),F(ji,Mi,Ui,`\xA0`,`\\space`),F(ji,Mi,Ui,`\xA0`,`\\nobreakspace`),F(I,Mi,Ui,``,`\\nobreak`),F(I,Mi,Ui,``,`\\allowbreak`),F(I,Mi,Vi,`,`,`,`),F(I,Mi,Vi,`;`,`;`),F(I,Ni,Fi,`⊼`,`\\barwedge`,!0),F(I,Ni,Fi,`⊻`,`\\veebar`,!0),F(I,Mi,Fi,`⊙`,`\\odot`,!0),F(I,Mi,Fi,`⊕`,`\\oplus`,!0),F(I,Mi,Fi,`⊗`,`\\otimes`,!0),F(I,Mi,L,`∂`,`\\partial`,!0),F(I,Mi,Fi,`⊘`,`\\oslash`,!0),F(I,Ni,Fi,`⊚`,`\\circledcirc`,!0),F(I,Ni,Fi,`⊡`,`\\boxdot`,!0),F(I,Mi,Fi,`△`,`\\bigtriangleup`),F(I,Mi,Fi,`▽`,`\\bigtriangledown`),F(I,Mi,Fi,`†`,`\\dagger`),F(I,Mi,Fi,`⋄`,`\\diamond`),F(I,Mi,Fi,`⋆`,`\\star`),F(I,Mi,Fi,`◃`,`\\triangleleft`),F(I,Mi,Fi,`▹`,`\\triangleright`),F(I,Mi,Bi,`{`,`\\{`),F(ji,Mi,L,`{`,`\\{`),F(ji,Mi,L,`{`,`\\textbraceleft`),F(I,Mi,Ii,`}`,`\\}`),F(ji,Mi,L,`}`,`\\}`),F(ji,Mi,L,`}`,`\\textbraceright`),F(I,Mi,Bi,`{`,`\\lbrace`),F(I,Mi,Ii,`}`,`\\rbrace`),F(I,Mi,Bi,`[`,`\\lbrack`,!0),F(ji,Mi,L,`[`,`\\lbrack`,!0),F(I,Mi,Ii,`]`,`\\rbrack`,!0),F(ji,Mi,L,`]`,`\\rbrack`,!0),F(I,Mi,Bi,`(`,`\\lparen`,!0),F(I,Mi,Ii,`)`,`\\rparen`,!0),F(ji,Mi,L,`<`,`\\textless`,!0),F(ji,Mi,L,`>`,`\\textgreater`,!0),F(I,Mi,Bi,`⌊`,`\\lfloor`,!0),F(I,Mi,Ii,`⌋`,`\\rfloor`,!0),F(I,Mi,Bi,`⌈`,`\\lceil`,!0),F(I,Mi,Ii,`⌉`,`\\rceil`,!0),F(I,Mi,L,`\\`,`\\backslash`),F(I,Mi,L,`∣`,`|`),F(I,Mi,L,`∣`,`\\vert`),F(ji,Mi,L,`|`,`\\textbar`,!0),F(I,Mi,L,`∥`,`\\|`),F(I,Mi,L,`∥`,`\\Vert`),F(ji,Mi,L,`∥`,`\\textbardbl`),F(ji,Mi,L,`~`,`\\textasciitilde`),F(ji,Mi,L,`\\`,`\\textbackslash`),F(ji,Mi,L,`^`,`\\textasciicircum`),F(I,Mi,Hi,`↑`,`\\uparrow`,!0),F(I,Mi,Hi,`⇑`,`\\Uparrow`,!0),F(I,Mi,Hi,`↓`,`\\downarrow`,!0),F(I,Mi,Hi,`⇓`,`\\Downarrow`,!0),F(I,Mi,Hi,`↕`,`\\updownarrow`,!0),F(I,Mi,Hi,`⇕`,`\\Updownarrow`,!0),F(I,Mi,zi,`∐`,`\\coprod`),F(I,Mi,zi,`⋁`,`\\bigvee`),F(I,Mi,zi,`⋀`,`\\bigwedge`),F(I,Mi,zi,`⨄`,`\\biguplus`),F(I,Mi,zi,`⋂`,`\\bigcap`),F(I,Mi,zi,`⋃`,`\\bigcup`),F(I,Mi,zi,`∫`,`\\int`),F(I,Mi,zi,`∫`,`\\intop`),F(I,Mi,zi,`∬`,`\\iint`),F(I,Mi,zi,`∭`,`\\iiint`),F(I,Mi,zi,`∏`,`\\prod`),F(I,Mi,zi,`∑`,`\\sum`),F(I,Mi,zi,`⨂`,`\\bigotimes`),F(I,Mi,zi,`⨁`,`\\bigoplus`),F(I,Mi,zi,`⨀`,`\\bigodot`),F(I,Mi,zi,`∮`,`\\oint`),F(I,Mi,zi,`∯`,`\\oiint`),F(I,Mi,zi,`∰`,`\\oiiint`),F(I,Mi,zi,`⨆`,`\\bigsqcup`),F(I,Mi,zi,`∫`,`\\smallint`),F(ji,Mi,Li,`…`,`\\textellipsis`),F(I,Mi,Li,`…`,`\\mathellipsis`),F(ji,Mi,Li,`…`,`\\ldots`,!0),F(I,Mi,Li,`…`,`\\ldots`,!0),F(I,Mi,Li,`⋯`,`\\@cdots`,!0),F(I,Mi,Li,`⋱`,`\\ddots`,!0),F(I,Mi,L,`⋮`,`\\varvdots`),F(ji,Mi,L,`⋮`,`\\varvdots`),F(I,Mi,Pi,`ˊ`,`\\acute`),F(I,Mi,Pi,`ˋ`,`\\grave`),F(I,Mi,Pi,`¨`,`\\ddot`),F(I,Mi,Pi,`~`,`\\tilde`),F(I,Mi,Pi,`ˉ`,`\\bar`),F(I,Mi,Pi,`˘`,`\\breve`),F(I,Mi,Pi,`ˇ`,`\\check`),F(I,Mi,Pi,`^`,`\\hat`),F(I,Mi,Pi,`⃗`,`\\vec`),F(I,Mi,Pi,`˙`,`\\dot`),F(I,Mi,Pi,`˚`,`\\mathring`),F(I,Mi,Ri,``,`\\@imath`),F(I,Mi,Ri,``,`\\@jmath`),F(I,Mi,L,`ı`,`ı`),F(I,Mi,L,`ȷ`,`ȷ`),F(ji,Mi,L,`ı`,`\\i`,!0),F(ji,Mi,L,`ȷ`,`\\j`,!0),F(ji,Mi,L,`ß`,`\\ss`,!0),F(ji,Mi,L,`æ`,`\\ae`,!0),F(ji,Mi,L,`œ`,`\\oe`,!0),F(ji,Mi,L,`ø`,`\\o`,!0),F(ji,Mi,L,`Æ`,`\\AE`,!0),F(ji,Mi,L,`Œ`,`\\OE`,!0),F(ji,Mi,L,`Ø`,`\\O`,!0),F(ji,Mi,Pi,`ˊ`,`\\'`),F(ji,Mi,Pi,`ˋ`,"\\`"),F(ji,Mi,Pi,`ˆ`,`\\^`),F(ji,Mi,Pi,`˜`,`\\~`),F(ji,Mi,Pi,`ˉ`,`\\=`),F(ji,Mi,Pi,`˘`,`\\u`),F(ji,Mi,Pi,`˙`,`\\.`),F(ji,Mi,Pi,`¸`,`\\c`),F(ji,Mi,Pi,`˚`,`\\r`),F(ji,Mi,Pi,`ˇ`,`\\v`),F(ji,Mi,Pi,`¨`,`\\"`),F(ji,Mi,Pi,`˝`,`\\H`),F(ji,Mi,Pi,`◯`,`\\textcircled`),bue={"--":!0,"---":!0,"``":!0,"''":!0},F(ji,Mi,L,`–`,`--`,!0),F(ji,Mi,L,`–`,`\\textendash`),F(ji,Mi,L,`—`,`---`,!0),F(ji,Mi,L,`—`,`\\textemdash`),F(ji,Mi,L,`‘`,"`",!0),F(ji,Mi,L,`‘`,`\\textquoteleft`),F(ji,Mi,L,`’`,`'`,!0),F(ji,Mi,L,`’`,`\\textquoteright`),F(ji,Mi,L,`“`,"``",!0),F(ji,Mi,L,`“`,`\\textquotedblleft`),F(ji,Mi,L,`”`,`''`,!0),F(ji,Mi,L,`”`,`\\textquotedblright`),F(I,Mi,L,`°`,`\\degree`,!0),F(ji,Mi,L,`°`,`\\degree`),F(ji,Mi,L,`°`,`\\textdegree`,!0),F(I,Mi,L,`£`,`\\pounds`),F(I,Mi,L,`£`,`\\mathsterling`,!0),F(ji,Mi,L,`£`,`\\pounds`),F(ji,Mi,L,`£`,`\\textsterling`,!0),F(I,Ni,L,`✠`,`\\maltese`),F(ji,Ni,L,`✠`,`\\maltese`),Wi=`0123456789/@."`,xue=0;xue{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return ta[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return zue[Math.floor((r-120782)/10)];if(r===120485||r===120486)return ta[0];if(120486{if(xi(e.classes)!==xi(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Hue=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},sa=function(e,t,n,r){var i=new Si(e,t,n,r);return Uue(i),i},ca=(e,t,n,r)=>new Si(e,t,n,r),la=function(e,t,n){var r=sa([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=bi(r.height),r.maxFontSize=1,r},Wue=function(e,t,n,r){var i=new hue(e,t,n,r);return Uue(i),i},ua=function(e){var t=new vi(e);return Uue(t),t},da=function(e,t){return e instanceof vi?sa([],[e],t):e},Gue=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=sa([`mspace`],[],t),r=yi(e,t);return n.style.marginRight=bi(r),n},ma=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},ha={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`}},Kue={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},ga=function(e,t){var n=Kue[e],r=n[0],i=n[1],a=n[2],o=new Ti(r),s=ca([`katex-overlay`],[new wi([o],{width:bi(i),height:bi(a),style:`width:`+bi(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return s.height=a,s.style.height=bi(a),s.style.width=bi(i),s},_a={number:3,unit:`mu`},va={number:4,unit:`mu`},ya={number:5,unit:`mu`},que={mord:{mop:_a,mbin:va,mrel:ya,minner:_a},mop:{mord:_a,mop:_a,mrel:ya,minner:_a},mbin:{mord:va,mop:va,mopen:va,minner:va},mrel:{mord:ya,mop:ya,mopen:ya,minner:ya},mopen:{},mclose:{mop:_a,mbin:va,mrel:ya,minner:_a},mpunct:{mord:_a,mop:_a,mrel:ya,mopen:_a,mclose:_a,mpunct:_a,minner:_a},minner:{mord:_a,mop:_a,mbin:va,mrel:ya,mopen:_a,mpunct:_a,minner:_a}},Jue={mord:{mop:_a},mop:{mord:_a,mop:_a},mbin:{},mrel:{},mopen:{},mclose:{mop:_a},mpunct:{},minner:{mop:_a}},Yue={},ba={},xa={},Sa=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Ca=function(e){return e.type===`ordgroup`?e.body:[e]},Xue=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Zue=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Que={display:hi.DISPLAY,text:hi.TEXT,script:hi.SCRIPT,scriptscript:hi.SCRIPTSCRIPT},$ue={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},wa=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Zue.has(r)?t.classes[0]=`mord`:r===`mbin`&&Xue.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),ede(i,(e,t)=>{var n=rde(t),r=rde(e),i=n&&r?e.hasClass(`mtight`)?Jue[n]?.[r]:que[n]?.[r]:null;if(i)return pa(i,l)},{node:d},f,p),i},ede=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},tde=function(e){return e instanceof vi||e instanceof hue||e instanceof Si&&e.hasClass(`enclosing`)?e:null},nde=function(e,t){var n=tde(e);if(n){var r=n.children;if(r.length){if(t===`right`)return nde(r[r.length-1],`right`);if(t===`left`)return nde(r[0],`left`)}}return e},rde=function(e,t){return e?(t&&(e=nde(e,t)),$ue[e.classes[0]]||null):null},Ta=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return sa(t.concat(n))},Ea=function(e,t,n){if(!e)return sa();if(ba[e.type]){var r=ba[e.type](e,t);if(n&&t.size!==n.size){r=sa(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new ei(`Got group of unknown type: '`+e.type+`'`)},Da=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=xi(this.classes));for(var i=0;i0&&(e+=` class ="`+ti(xi(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Oa=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ti(this.toText())}toText(){return this.text}},ide=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,bi(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},ade=new Set([`\\imath`,`\\jmath`]),ode=new Set([`mrow`,`mtable`]),ka=function(e,t,n){var r,i;return Ai[t][e]&&Ai[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(bue,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=Ai[t][e].replace),new Oa(e)},sde=function(e){return e.length===1?e[0]:new Da(`mrow`,e)},cde={mathit:`italic`,boldsymbol:e=>e.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`},lde=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=cde[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(ade.has(a))return null;if(Ai[r][a]){var o=Ai[r][a].replace;o&&(a=o)}var s=ha[n].fontName;return ple(a,s,r)?ha[n].variant:null},Aa=function(e,t,n){if(e.length===1){var r=Ma(e[0],t);return n&&r instanceof Da&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||vle(a))){var l=s.children[0];l instanceof Da&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof Oa&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof Oa&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},ja=function(e,t,n){return sde(Aa(e,t,n))},Ma=function(e,t){if(!e)return new Da(`mrow`);if(xa[e.type])return xa[e.type](e,t);throw new ei(`Got group of unknown type: '`+e.type+`'`)},ude=[[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]],dde=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],fde=function(e,t){return t.size<2?e:ude[e-1][t.size-1]},pde=class e{constructor(t){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.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=dde[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={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,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:fde(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:dde[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=fde(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=mle(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},pde.BASESIZE=6,mde=e=>new pde({style:e.displayMode?hi.DISPLAY:hi.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),hde=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=sa(n,[e])}return e},gde=function(e,t,n){var r=mde(n),i;return n.output===`mathml`?yle(e,t,r,n.displayMode,!0):(i=n.output===`html`?sa([`katex`],[gle(e,r)]):sa([`katex`],[yle(e,t,r,n.displayMode,!1),gle(e,r)]),hde(i,n))},_de=function(e,t){return hde(sa([`katex`],[gle(e,mde(t))]),t)},vde={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":`=`},Na=function(e){var t=new Da(`mo`,[new Oa(vde[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},yde={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]},bde=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Pa=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(bde.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new Ti(o);return{span:ca([],[new wi([u],{width:`100%`,height:bi(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=yde[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var p=f[0],m=f[1],h=f[2],g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+_+` children.`);for(var b=0;b<_;b++){var x=new Ti(p[b]),S=new wi([x],{width:`400em`,height:bi(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=ca([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=bi(g),d.push(C)}return{span:sa([`katex-stretchy`],d,t),minWidth:m,height:g}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=bi(o),a>0&&(i.style.minWidth=bi(a)),i},xde=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=sa([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new vue({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new vue({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=ca([],[new wi(l,{width:`100%`,height:bi(o)})],i)}return a.height=o,a.style.height=bi(o),a},Sde=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Cde=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],wde=new Set(Sde),Tde=new Set(Cde),Ede=e=>{if(e instanceof Ci)return e;if(yue(e)&&e.children.length===1)return Ede(e.children[0])},Dde=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Yr(e.base,`accent`),n=r.base,e.base=n,i=dle(Ea(e,t)),e.base=r):(r=Yr(e,`accent`),n=r.base);var a=Ea(n,t.havingCrampedStyle()),o=r.isShifty&&ri(n),s=0;o&&(s=Ede(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=Pa(r,t),d=fa({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+bi(2*s)+`)`,marginLeft:bi(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=ga(`vec`,t),p=Kue.vec[1]):(f=aa({type:`textord`,mode:r.mode,text:r.label},t),f=ule(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=sa([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=bi(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=fa({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=sa([`mord`,`katex-accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},Ode=(e,t)=>{var n=e.isStretchy?Na(e.label):new Da(`mo`,[ka(e.label,e.mode)]),r=new Da(`mover`,[Ma(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},kde=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),qr({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=Sa(t[0]),r=!kde.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Dde,mathmlBuilder:Ode}),qr({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(Kr({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),qr({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Ea(e.base,t),r=Pa(e,t),i=e.label===`\\utilde`?.12:0;return sa([`mord`,`accentunder`],[fa({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Na(e.label),r=new Da(`munder`,[Ma(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Fa=e=>{var t=new Da(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},qr({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=da(Ea(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=da(Ea(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Pa(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=fa({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=fa({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return sa([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=Na(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Fa(Ma(e.body,t));if(e.below){var a=Fa(Ma(e.below,t));r=new Da(`munderover`,[n,a,i])}else r=new Da(`mover`,[n,i])}else if(e.below){var o=Fa(Ma(e.below,t));r=new Da(`munder`,[n,o])}else r=Fa(),r=new Da(`mover`,[n,r]);return r}}),qr({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Ca(i),isCharacterBox:ri(i)}},htmlBuilder:Cle,mathmlBuilder:wle}),Ia=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},qr({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:Ia(t[0]),body:Ca(t[1]),isCharacterBox:ri(t[1])}}}),qr({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Ia(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Ca(i)},l=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:ri(l)}}}),qr({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:Ia(t[0]),body:Ca(t[0])}},htmlBuilder(e,t){var n=wa(e.body,t,!0),r=sa([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=Aa(e.body,t),r=new Da(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),Ade={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},jde=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Mde=e=>e.type===`textord`&&e.text===`@`,Nde=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,qr({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=da(Ea(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=bi(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Da(`mrow`,[Ma(e.label,t)]);return n=new Da(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Da(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),qr({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=da(Ea(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Da(`mrow`,[Ma(e.fragment,t)])}}),qr({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=Xr(Yr(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new ei(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new ei(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),Pde=(e,t)=>ua(wa(e.body,t.withColor(e.color),!1)),Fde=(e,t)=>{var n=Aa(e.body,t.withColor(e.color)),r=new Da(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},qr({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Yr(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Ca(i)}},htmlBuilder:Pde,mathmlBuilder:Fde}),qr({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Yr(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),qr({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!Kr({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Yr(n,`size`).value}},htmlBuilder(e,t){var n=sa([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=bi(yi(e.size,t)))),n},mathmlBuilder(e,t){var n=new Da(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,bi(yi(e.size,t)))),n}}),Ide={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Lde=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ei(`Expected a control sequence`,e);return t},Rde=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},zde=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},qr({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Ide[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Ide[r.text]),Yr(t.parseFunction(),`internal`);throw new ei(`Invalid token after macro prefix`,r)}}),qr({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new ei(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new ei(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new ei(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new ei(`Expected a macro definition`);else s[a].push(r.text);var l=t.gullet.consumeArg().tokens;return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===Ide[n]),{type:`internal`,mode:t.mode}}}),qr({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Lde(t.gullet.popToken());return t.gullet.consumeSpaces(),zde(t,r,Rde(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),qr({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Lde(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return zde(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),La=function(e,t,n){var r=ple(Ai.math[e]&&Ai.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Bde=function(e,t,n,r){var i=n.havingBaseStyle(t),a=sa(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Vde=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=bi(i),e.height-=i,e.depth+=i},Hde=function(e,t,n,r,i,a){var o=Bde(ra(e,`Main-Regular`,i,r),t,r,a);return n&&Vde(o,r,t),o},Ude=function(e,t,n,r){return ra(e,`Size`+t+`-Regular`,n,r)},Wde=function(e,t,n,r,i,a){var o=Ude(e,t,i,r),s=Bde(sa([`delimsizing`,`size`+t],[o],r),hi.TEXT,r,a);return n&&Vde(s,r,hi.TEXT),s},Gde=function(e,t,n,r){return{type:`elem`,elem:sa([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[sa([],[ra(e,t,n,r)])])}},Kde=function(e,t,n){var r=Ei[`Size4-Regular`][e.charCodeAt(0)]?Ei[`Size4-Regular`][e.charCodeAt(0)][4]:Ei[`Size1-Regular`][e.charCodeAt(0)][4],i=new Ti(`inner`,iue(e,Math.round(1e3*t))),a=ca([],[new wi([i],{width:bi(r),height:bi(t),style:`width:`+bi(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=bi(t),a.style.width=bi(r),{type:`elem`,elem:a}},qde=.008,Ra={type:`kern`,size:-1*qde},Jde=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Yde=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Xde=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):Jde.has(e)?(l=`∣`,d=`vert`,f=333):Yde.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=La(o,p,i),h=m.height+m.depth,g=La(l,p,i),_=g.height+g.depth,v=La(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=La(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=oue(d,Math.round(O*1e3)),j=new Ti(d,A),M=bi(f/1e3),ee=bi(k/1e3),te=ca([],[new wi([j],{width:M,height:ee,viewBox:`0 0 `+f+` `+k})],r);te.height=k/1e3,te.style.width=M,te.style.height=ee,D.push({type:`elem`,elem:te})}else{if(D.push(Gde(u,p,i,r)),D.push(Ra),s===null){var ne=w-h-y+2*qde;D.push(Kde(l,ne,r))}else{var re=(w-h-y-b)/2+2*qde;D.push(Kde(l,re,r)),D.push(Ra),D.push(Gde(s,p,i,r)),D.push(Ra),D.push(Kde(l,re,r))}D.push(Ra),D.push(Gde(o,p,i,r))}var ie=r.havingBaseStyle(hi.TEXT);return Bde(sa([`delimsizing`,`mult`],[fa({positionType:`bottom`,positionData:E,children:D})],ie),hi.TEXT,r,a)},za=80,Ba=.08,Zde=function(e,t,n,r,i){var a=rue(e,r,n),o=new Ti(e,a);return ca([`hide-tail`],[new wi([o],{width:`400em`,height:bi(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Qde=function(e,t){var n=t.havingBaseSizing(),r=sfe(`\\surd`,e*n.sizeMultiplier,afe,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+za,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Ba)/i,l=(1+a)/i,o=Zde(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+za)*Va[r.size],l=(Va[r.size]+a)/i,s=(Va[r.size]+a+Ba)/i,o=Zde(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+Ba,l=e+a,u=Math.floor(1e3*e+a)+za,o=Zde(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=bi(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},$de=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),efe=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),tfe=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Va=[0,1.2,1.8,2.4,3],nfe=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),$de.has(e)||tfe.has(e))return Wde(e,t,!1,n,r,i);if(efe.has(e))return Xde(e,Va[t],!1,n,r,i);throw new ei(`Illegal delimiter: '`+e+`'`)},rfe=[{type:`small`,style:hi.SCRIPTSCRIPT},{type:`small`,style:hi.SCRIPT},{type:`small`,style:hi.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],ife=[{type:`small`,style:hi.SCRIPTSCRIPT},{type:`small`,style:hi.SCRIPT},{type:`small`,style:hi.TEXT},{type:`stack`}],afe=[{type:`small`,style:hi.SCRIPTSCRIPT},{type:`small`,style:hi.SCRIPT},{type:`small`,style:hi.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],ofe=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 t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},sfe=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},cfe=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=tfe.has(e)?rfe:$de.has(e)?afe:ife,s=sfe(e,t,o,r);return s.type===`small`?Hde(e,s.style,n,r,i,a):s.type===`large`?Wde(e,s.size,n,r,i,a):Xde(e,t,n,r,i,a)},lfe=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return cfe(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},ufe={"\\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}},dfe=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,.`.split(`,`)),qr({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=Ole(Sa(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:ufe[e.funcName].size,mclass:ufe[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?sa([e.mclass]):nfe(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(ka(e.delim,e.mode));var n=new Da(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=bi(Va[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),qr({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new ei(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Ole(t[0],e).text,color:n}}}),qr({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Ole(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Yr(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{kle(e);for(var n=wa(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{kle(e);var n=Aa(e.body,t);if(e.left!==`.`){var r=new Da(`mo`,[ka(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Da(`mo`,[ka(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return sde(n)}}),qr({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Ole(t[0],e);if(!e.parser.leftrightDepth)throw new ei(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Ta(t,[]):(n=nfe(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?ka(`|`,`text`):ka(e.delim,e.mode),r=new Da(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),ffe=(e,t)=>{var n=da(Ea(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=ri(e.body);if(r===`sout`)a=sa([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=yi({number:.6,unit:`pt`},t),u=yi({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=bi(f/2+l);var p=Math.floor(1e3*f*i),m=tue(p);a=ca([`hide-tail`],[new wi([new Ti(`phase`,m)],{width:`400em`,height:bi(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=bi(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=xde(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=bi(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=bi(_),a.style.borderRightWidth=bi(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=fa({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=fa({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?sa([`mord`,`cancel-lap`],[v],t):sa([`mord`],[v],t)},pfe=(e,t)=>{var n,r=new Da(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Ma(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+bi(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},qr({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Yr(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:ffe,mathmlBuilder:pfe}),qr({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Yr(t[0],`color-token`).color,o=Yr(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),qr({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),qr({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),qr({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&Kr({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),qr({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}}),mfe={},hfe={},Ha=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Ua=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Ha.range(this,t))}},Wa=e=>{if(!e.parser.settings.displayMode)throw new ei(`{`+e.envName+`} can be used only in display mode.`)},gfe=new Set([`gather`,`gather*`]),Ga=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(hi.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?yi({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ue=void 0;(r>0||e.hskipBeforeAndAfter)&&(ue=ie?.pregap??f,ue!==0&&(A=sa([`arraycolsep`],[]),A.style.width=bi(ue),k.push(A)));var de=[];for(n=0;n0){for(var ve=la(`katex-hline`,t,u),ye=la(`katex-hdashline`,t,u),be=[{type:`elem`,elem:_e,shift:0}];l.length>0;){var xe=l.pop(),Se=xe.pos-D;xe.isDashed?be.push({type:`elem`,elem:ye,shift:Se}):be.push({type:`elem`,elem:ve,shift:Se})}_e=fa({positionType:`individualShift`,children:be})}if(M.length===0)return sa([`mord`],[_e],t);var Ce=sa([`katex-tag`],[fa({positionType:`individualShift`,children:M})],t);return ua([_e,Ce])},_fe={c:`center `,l:`left `,r:`right `},Ka=function(e,t){for(var n=[],r=new Da(`mtd`,[],[`mtr-glue`]),i=new Da(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&d&&(m=1),n[f]={type:`align`,align:p,pregap:m,postgap:0}}return i.colSeparationType=d?`align`:`alignat`,i},Zr({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Sle(t[0])?[t[0]]:Yr(t[0],`ordgroup`).body).map(function(e){var t=xle(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new ei(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return $r(e.parser,r,Mle(e.envName))},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new ei(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=$r(e.parser,r,Mle(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=$r(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Sle(t[0])?[t[0]]:Yr(t[0],`ordgroup`).body).map(function(e){var t=xle(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new ei(`Unknown column alignment: `+t,e)});if(n.length>1)throw new ei(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=$r(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new ei(`{subarray} can contain only one column`);return i},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=$r(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Mle(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:vfe,htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){gfe.has(e.envName)&&Wa(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:jle(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return $r(e.parser,t,`display`)},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:vfe,htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Wa(e);var t={autoTag:jle(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return $r(e.parser,t,`display`)},htmlBuilder:Ga,mathmlBuilder:Ka}),Zr({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Wa(e),Ele(e.parser)},htmlBuilder:Ga,mathmlBuilder:Ka}),Qr(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Qr(`\\notag`,`\\nonumber`),qr({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new ei(e.funcName+` valid only within array environment`)}}),yfe=mfe,qr({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new ei(`Invalid environment name`,i);var a=Xr(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(yfe,a))throw new ei(`No such environment: `+a,i);var o=yfe[a],s=n.parseArguments(`\\begin{`+a+`}`,o),l=s.args,u=s.optArgs,d={mode:n.mode,envName:a,parser:n},f=o.handler(d,l,u);n.expect(`\\end`,!1);var p=n.nextToken,m=Yr(n.parseFunction(),`environment`);if(m.name!==a)throw new ei(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}}),bfe=(e,t)=>{var n=e.font,r=t.withFont(n);return Ea(e.body,r)},xfe=(e,t)=>{var n=e.font,r=t.withFont(n);return Ma(e.body,r)},Sfe={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},qr({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=Sa(t[0]),a=r in Sfe?Sfe[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:bfe,mathmlBuilder:xfe}),qr({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Ia(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:ri(r)}}}),qr({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}}),Cfe=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Ea(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new Da(`mfrac`,[Ma(e.numer,t),Ma(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=yi(e.barSize,t);n.setAttribute(`linethickness`,bi(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Da(`mo`,[new Oa(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Da(`mo`,[new Oa(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return sde(i)}return n},Tfe=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,qr({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),Tfe({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:Cfe,mathmlBuilder:wfe}),qr({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),Efe=[`display`,`text`,`script`,`scriptscript`],Dfe=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},qr({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=Sa(t[0]),o=a.type===`atom`&&a.family===`open`?Dfe(a.text):null,s=Sa(t[1]),l=s.type===`atom`&&s.family===`close`?Dfe(s.text):null,u=Yr(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=Yr(m.body[0],`textord`);p=Efe[Number(h.text)]}}else m=Yr(m,`textord`),p=Efe[Number(m.text)];return Tfe({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),qr({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Yr(t[0],`size`).value,token:r}}}),qr({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Yr(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}}),Ofe=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Ea(e.sup,t.havingStyle(n.sup()),t):Ea(e.sub,t.havingStyle(n.sub()),t),i=Yr(e.base,`horizBrace`)):i=Yr(e,`horizBrace`);var a=Ea(i.base,t.havingBaseStyle(hi.DISPLAY)),o=Pa(i,t),s=i.isOver?fa({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):fa({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=sa([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?fa({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):fa({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return sa([`minner`,i.isOver?`mover`:`munder`],[s],t)},kfe=(e,t)=>{var n=Na(e.label);return new Da(e.isOver?`mover`:`munder`,[Ma(e.base,t),n])},qr({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Ofe,mathmlBuilder:kfe}),qr({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Yr(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Ca(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=wa(e.body,t,!1);return Wue(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=ja(e.body,t);return n instanceof Da||(n=new Da(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),qr({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Yr(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=Yr(t[0],`raw`).string,a=t[1];n.settings.strict&&Kr({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var l=`{,}`,u=[],d=``,f=0;f{var n=wa(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=sa(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>ja(e.body,t)}),qr({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:Ca(t[0]),mathml:Ca(t[1])}),htmlBuilder:(e,t)=>ua(wa(e.html,t,!1)),mathmlBuilder:(e,t)=>ja(e.mathml,t)}),Afe=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new ei(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!lue(n))throw new ei(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},qr({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=Yr(n[0],`raw`).string.split(`,`),u=0;u{var n=yi(e.height,t),r=0;e.totalheight.number>0&&(r=yi(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=yi(e.width,t));var a={height:bi(n+r)};i>0&&(a.width=bi(i)),r>0&&(a.verticalAlign=bi(-r));var o=new gue(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Da(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=yi(e.height,t),i=0;if(e.totalheight.number>0&&(i=yi(e.totalheight,t)-r,n.setAttribute(`valign`,bi(-i))),n.setAttribute(`height`,bi(r+i)),e.width.number>0){var a=yi(e.width,t);n.setAttribute(`width`,bi(a))}return n.setAttribute(`src`,e.src),n}}),qr({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Yr(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||Kr({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&Kr({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&Kr({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return pa(e.dimension,t)},mathmlBuilder(e,t){var n=yi(e.dimension,t);return new ide(n)}}),qr({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=sa([],[Ea(e.body,t)]),n=sa([`katex-inner`],[n],t)):n=sa([`katex-inner`],[Ea(e.body,t)]);var r=sa([`katex-fix`],[]),i=sa([e.alignment],[n,r],t),a=sa([`katex-strut`]);return a.style.height=bi(i.height+i.depth),i.depth&&(a.style.verticalAlign=bi(-i.depth)),i.children.unshift(a),i=sa([`katex-thinbox`],[i],t),sa([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Da(`mpadded`,[Ma(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),qr({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),qr({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new ei(`Mismatched `+e.funcName)}}),jfe=(e,t)=>{switch(t.style.size){case hi.DISPLAY.size:return e.display;case hi.TEXT.size:return e.text;case hi.SCRIPT.size:return e.script;case hi.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},qr({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:Ca(t[0]),text:Ca(t[1]),script:Ca(t[2]),scriptscript:Ca(t[3])}),htmlBuilder:(e,t)=>ua(wa(jfe(e,t),t,!1)),mathmlBuilder:(e,t)=>ja(jfe(e,t),t)}),Mfe=(e,t,n,r,i,a,o)=>{e=sa([],[e]);var s=n&&ri(n),l,u;if(t){var d=Ea(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Ea(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=fa({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:bi(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:bi(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=fa({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:bi(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=fa({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:bi(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=sa([`mspace`],[],r);h.style.marginRight=bi(a),m.unshift(h)}return sa([`mop`,`op-limits`],m,r)},Nfe=new Set([`\\smallint`]),Pfe=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Yr(e.base,`op`),i=!0):a=Yr(e,`op`);var o=t.style,s=!1;o.size===hi.DISPLAY.size&&a.symbol&&!Nfe.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=ra(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=ga(f+`Size`+(s?`2`:`1`),t);l=fa({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=wa(a.body,t,!0);m.length===1&&m[0]instanceof Ci?(l=m[0],l.classes[0]=`mop`):l=sa([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new Da(`mo`,[ka(e.name,e.mode)]),Nfe.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Da(`mo`,Aa(e.body,t));else{n=new Da(`mi`,[new Oa(e.name.slice(1))]);var r=new Da(`mo`,[ka(`⁡`,`text`)]);n=e.parentIsSupSub?new Da(`mrow`,[n,r]):_le([n,r])}return n},Ife={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},qr({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=Ife[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Pfe,mathmlBuilder:Ffe}),qr({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ca(r)}}}),Lfe={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},qr({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`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),qr({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),qr({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=Lfe[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}}),Rfe=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Yr(e.base,`operatorname`),i=!0):a=Yr(e,`operatorname`);var o;if(a.body.length>0){for(var s=wa(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=Aa(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new Oa(s)]}var l=new Da(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new Da(`mo`,[ka(`⁡`,`text`)]);return e.parentIsSupSub?new Da(`mrow`,[l,u]):_le([l,u])},qr({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:Ca(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Rfe,mathmlBuilder:zfe}),Qr(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Jr({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?ua(wa(e.body,t,!1)):sa([`mord`],wa(e.body,t,!0),t)},mathmlBuilder(e,t){return ja(e.body,t,!0)}}),qr({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Ea(e.body,t.havingCrampedStyle()),r=la(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return sa([`mord`,`katex-overline`],[fa({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Da(`mo`,[new Oa(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Da(`mover`,[Ma(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),qr({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:Ca(r)}},htmlBuilder:(e,t)=>ua(wa(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=Aa(e.body,t);return new Da(`mphantom`,n)}}),Qr(`\\hphantom`,`\\smash{\\phantom{#1}}`),qr({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>sa([`mord`,`rlap`],[sa([`katex-inner`],[Ea(e.body,t.withPhantom())]),sa([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=Aa(Ca(e.body),t),r=new Da(`mphantom`,n),i=new Da(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),qr({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Yr(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Ea(e.body,t);return fa({positionType:`shift`,positionData:-yi(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Da(`mpadded`,[Ma(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Bfe=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]}),qr({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:Bfe,htmlBuilder(e,t){return sa([`mord`,`reflectbox`],[Ea(e.body,t)],t)},mathmlBuilder(e,t){return Ma(e.body,t)}}),qr({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:Bfe}),qr({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),qr({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Yr(t[0],`size`),o=Yr(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Yr(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=sa([`mord`,`katex-rule`],[],t),r=yi(e.width,t),i=yi(e.height,t),a=e.shift?yi(e.shift,t):0;return n.style.borderRightWidth=bi(r),n.style.borderTopWidth=bi(i),n.style.bottom=bi(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=yi(e.width,t),r=yi(e.height,t),i=e.shift?yi(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Da(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,bi(n)),o.setAttribute(`height`,bi(r));var s=new Da(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,bi(i)):(s.setAttribute(`height`,bi(i)),s.setAttribute(`depth`,bi(-i))),s.setAttribute(`voffset`,bi(i)),s}}),Vfe=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],Hfe=(e,t)=>{var n=t.havingSize(e.size);return Nle(e.body,n,t)},qr({type:`sizing`,names:Vfe,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Vfe.indexOf(r)+1,body:a}},htmlBuilder:Hfe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Aa(e.body,n),i=new Da(`mstyle`,r);return i.setAttribute(`mathsize`,bi(n.sizeMultiplier)),i}}),qr({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Yr(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=sa([],[Ea(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return sa([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new Da(`mpadded`,[Ma(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),qr({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Ea(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=da(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=s.height-n.height-a-l;n.style.paddingLeft=bi(u);var p=fa({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:s},{type:`kern`,size:l}]});if(e.index){var m=t.havingStyle(hi.SCRIPTSCRIPT),h=Ea(e.index,m,t);return sa([`mord`,`sqrt`],[sa([`katex-root`],[fa({positionType:`shift`,positionData:-(.6*(p.height-p.depth)),children:[{type:`elem`,elem:h}]})]),p],t)}return sa([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new Da(`mroot`,[Ma(n,t),Ma(r,t)]):new Da(`msqrt`,[Ma(n,t)])}}),Ufe={display:hi.DISPLAY,text:hi.TEXT,script:hi.SCRIPT,scriptscript:hi.SCRIPTSCRIPT},qr({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Ple(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Ufe[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Nle(e.body,r,t)},mathmlBuilder(e,t){var n=Ufe[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=Aa(e.body,r),a=new Da(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),Wfe=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===hi.DISPLAY.size||n.alwaysHandleSupSub)?Pfe:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===hi.DISPLAY.size||n.limits)?Rfe:null:n.type===`accent`?ri(n.base)?Dde:null:n.type===`horizBrace`&&!e.sub===n.isOver?Ofe:null:null},Jr({type:`supsub`,htmlBuilder(e,t){var n=Wfe(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Ea(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&ri(r);if(i){var m=t.havingStyle(t.style.sup());s=Ea(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=Ea(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===hi.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=bi(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Ci||b)&&(y=bi(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=fa({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=fa({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=fa({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return sa([rde(o,`right`)||`mord`],[o,sa([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Ma(e.base,t)];e.sub&&a.push(Ma(e.sub,t)),e.sup&&a.push(Ma(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===hi.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===hi.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===hi.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===hi.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===hi.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===hi.DISPLAY)?`munder`:`msub`}return new Da(o,a)}}),Jr({type:`atom`,htmlBuilder(e,t){return ia(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Da(`mo`,[ka(e.text,e.mode)]);if(e.family===`bin`){var r=lde(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),Gfe={mi:`italic`,mn:`normal`,mtext:`normal`},Jr({type:`mathord`,htmlBuilder(e,t){return aa(e,t)},mathmlBuilder(e,t){var n=new Da(`mi`,[ka(e.text,e.mode,t)]),r=lde(e,t)||`italic`;return r!==Gfe[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Jr({type:`textord`,htmlBuilder(e,t){return aa(e,t)},mathmlBuilder(e,t){var n=ka(e.text,e.mode,t),r=lde(e,t)||`normal`,i=e.mode===`text`?new Da(`mtext`,[n]):/[0-9]/.test(e.text)?new Da(`mn`,[n]):e.text===`\\prime`?new Da(`mo`,[n]):new Da(`mi`,[n]);return r!==Gfe[i.type]&&i.setAttribute(`mathvariant`,r),i}}),Kfe=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),qa=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]),Jr({type:`spacing`,htmlBuilder(e,t){var n=qa.get(e.text),r=Kfe.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=aa(e,t);return a.classes.push(i),a}return sa([`mspace`,i],[ia(e.text,e.mode,t)],t)}if(r)return sa([`mspace`,r],[],t);throw new ei(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(qa.has(e.text))n=new Da(`mtext`,[new Oa(`\xA0`)]);else if(Kfe.has(e.text))return new Da(`mspace`);else throw new ei(`Unknown type of space "`+e.text+`"`);return n}}),qfe=()=>{var e=new Da(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},Jr({type:`tag`,mathmlBuilder(e,t){var n=new Da(`mtable`,[new Da(`mtr`,[qfe(),new Da(`mtd`,[ja(e.body,t)]),qfe(),new Da(`mtd`,[ja(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),Ja={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Jfe={"\\textbf":`textbf`,"\\textmd":`textmd`},Yfe={"\\textit":`textit`,"\\textup":`textup`},Xfe=(e,t)=>{var n=e.font;return n?Ja[n]?t.withTextFontFamily(Ja[n]):Jfe[n]?t.withTextFontWeight(Jfe[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Yfe[n]):t},qr({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:Ca(i),font:r}},htmlBuilder(e,t){var n=Xfe(e,t);return sa([`mord`,`text`],wa(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Xfe(e,t);return ja(e.body,n)}}),qr({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Ea(e.body,t),r=la(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return sa([`mord`,`katex-underline`],[fa({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Da(`mo`,[new Oa(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Da(`munder`,[Ma(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),qr({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Ea(e.body,t),r=t.fontMetrics().axisHeight;return fa({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Da(`mpadded`,[Ma(e.body,t)],[`vcenter`]);return new Da(`mrow`,[n])}}),qr({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new ei(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Zfe(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),Ya=Yue,Qfe=`[ \r + ]`,$fe=`\\\\[a-zA-Z@]+`,epe=`\\\\[^\ud800-\udfff]`,tpe=`(`+$fe+`)`+Qfe+`*`,Xa=`\\\\( |[ \r ]+ -?)[ \r ]*`,Hfe=`[̀-ͯ]`,Ufe=RegExp(Hfe+`+$`),Wfe=`(`+Lfe+`+)|`+(Vfe+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(Hfe+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Hfe+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Bfe)+(`|`+zfe+`)`),Gfe=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Wfe,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new $a(`EOF`,new Qa(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new oi(`Unexpected character: '`+e[t]+`'`,new $a(e[t],new Qa(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,Yr({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new $a(r,new Qa(this,t,this.tokenRegex.lastIndex))}},oo=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new oi(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},Kfe=efe,ii(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),ii(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),ii(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),ii(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),ii(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),ii(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),ii(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),qfe={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},ii(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new oi("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=qfe[t.text],r==null||r>=n)throw new oi(`Invalid base-`+n+` digit `+t.text);for(var i;(i=qfe[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new oi(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new oi(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new oi(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new oi(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},ii(`\\newcommand`,e=>so(e,!1,!0,!1)),ii(`\\renewcommand`,e=>so(e,!0,!1,!1)),ii(`\\providecommand`,e=>so(e,!0,!0,!0)),ii(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),ii(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),ii(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),ao[n],Pi.math[n],Pi.text[n]),``}),ii(`\\bgroup`,`{`),ii(`\\egroup`,`}`),ii(`~`,`\\nobreakspace`),ii(`\\lq`,"`"),ii(`\\rq`,`'`),ii(`\\aa`,`\\r a`),ii(`\\AA`,`\\r A`),ii(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),ii(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),ii(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),ii(`ℬ`,`\\mathscr{B}`),ii(`ℰ`,`\\mathscr{E}`),ii(`ℱ`,`\\mathscr{F}`),ii(`ℋ`,`\\mathscr{H}`),ii(`ℐ`,`\\mathscr{I}`),ii(`ℒ`,`\\mathscr{L}`),ii(`ℳ`,`\\mathscr{M}`),ii(`ℛ`,`\\mathscr{R}`),ii(`ℭ`,`\\mathfrak{C}`),ii(`ℌ`,`\\mathfrak{H}`),ii(`ℨ`,`\\mathfrak{Z}`),ii(`\\Bbbk`,`\\Bbb{k}`),ii(`\\llap`,`\\mathllap{\\textrm{#1}}`),ii(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),ii(`\\clap`,`\\mathclap{\\textrm{#1}}`),ii(`\\mathstrut`,`\\vphantom{(}`),ii(`\\underbar`,`\\underline{\\text{#1}}`),ii(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),ii(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),ii(`\\ne`,`\\neq`),ii(`≠`,`\\neq`),ii(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),ii(`∉`,`\\notin`),ii(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),ii(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),ii(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),ii(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),ii(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),ii(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),ii(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),ii(`⟂`,`\\perp`),ii(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),ii(`∌`,`\\notni`),ii(`⌜`,`\\ulcorner`),ii(`⌝`,`\\urcorner`),ii(`⌞`,`\\llcorner`),ii(`⌟`,`\\lrcorner`),ii(`©`,`\\copyright`),ii(`®`,`\\textregistered`),ii(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),ii(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),ii(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),ii(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),ii(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),ii(`⋮`,`\\vdots`),ii(`\\varGamma`,`\\mathit{\\Gamma}`),ii(`\\varDelta`,`\\mathit{\\Delta}`),ii(`\\varTheta`,`\\mathit{\\Theta}`),ii(`\\varLambda`,`\\mathit{\\Lambda}`),ii(`\\varXi`,`\\mathit{\\Xi}`),ii(`\\varPi`,`\\mathit{\\Pi}`),ii(`\\varSigma`,`\\mathit{\\Sigma}`),ii(`\\varUpsilon`,`\\mathit{\\Upsilon}`),ii(`\\varPhi`,`\\mathit{\\Phi}`),ii(`\\varPsi`,`\\mathit{\\Psi}`),ii(`\\varOmega`,`\\mathit{\\Omega}`),ii(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),ii(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),ii(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),ii(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),ii(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),ii(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),ii(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),ii(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),co={",":`\\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`},lo=new Set([`bin`,`rel`]),ii(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in co?t=co[n]:(n.slice(0,4)===`\\not`||n in Pi.math&&lo.has(Pi.math[n].group))&&(t=`\\dotsb`),t}),uo={")":!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},ii(`\\dotso`,function(e){return e.future().text in uo?`\\ldots\\,`:`\\ldots`}),ii(`\\dotsc`,function(e){var t=e.future().text;return t in uo&&t!==`,`?`\\ldots\\,`:`\\ldots`}),ii(`\\cdots`,function(e){return e.future().text in uo?`\\@cdots\\,`:`\\@cdots`}),ii(`\\dotsb`,`\\cdots`),ii(`\\dotsm`,`\\cdots`),ii(`\\dotsi`,`\\!\\cdots`),ii(`\\dotsx`,`\\ldots\\,`),ii(`\\DOTSI`,`\\relax`),ii(`\\DOTSB`,`\\relax`),ii(`\\DOTSX`,`\\relax`),ii(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),ii(`\\,`,`\\tmspace+{3mu}{.1667em}`),ii(`\\thinspace`,`\\,`),ii(`\\>`,`\\mskip{4mu}`),ii(`\\:`,`\\tmspace+{4mu}{.2222em}`),ii(`\\medspace`,`\\:`),ii(`\\;`,`\\tmspace+{5mu}{.2777em}`),ii(`\\thickspace`,`\\;`),ii(`\\!`,`\\tmspace-{3mu}{.1667em}`),ii(`\\negthinspace`,`\\!`),ii(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),ii(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),ii(`\\enspace`,`\\kern.5em `),ii(`\\enskip`,`\\hskip.5em\\relax`),ii(`\\quad`,`\\hskip1em\\relax`),ii(`\\qquad`,`\\hskip2em\\relax`),ii(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),ii(`\\tag@paren`,`\\tag@literal{({#1})}`),ii(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new oi(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),ii(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),ii(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),ii(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),ii(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),ii(`\\newline`,`\\\\\\relax`),ii(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),fo=Di(Ni[`Main-Regular`][84][1]-.7*Ni[`Main-Regular`][65][1]),ii(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+fo+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),ii(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+fo+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),ii(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),ii(`\\@hspace`,`\\hskip #1\\relax`),ii(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),ii(`\\ordinarycolon`,`:`),ii(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),ii(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),ii(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),ii(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),ii(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),ii(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),ii(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),ii(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),ii(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),ii(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),ii(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),ii(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),ii(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),ii(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),ii(`∷`,`\\dblcolon`),ii(`∹`,`\\eqcolon`),ii(`≔`,`\\coloneqq`),ii(`≕`,`\\eqqcolon`),ii(`⩴`,`\\Coloneqq`),ii(`\\ratio`,`\\vcentcolon`),ii(`\\coloncolon`,`\\dblcolon`),ii(`\\colonequals`,`\\coloneqq`),ii(`\\coloncolonequals`,`\\Coloneqq`),ii(`\\equalscolon`,`\\eqqcolon`),ii(`\\equalscoloncolon`,`\\Eqqcolon`),ii(`\\colonminus`,`\\coloneq`),ii(`\\coloncolonminus`,`\\Coloneq`),ii(`\\minuscolon`,`\\eqcolon`),ii(`\\minuscoloncolon`,`\\Eqcolon`),ii(`\\coloncolonapprox`,`\\Colonapprox`),ii(`\\coloncolonsim`,`\\Colonsim`),ii(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),ii(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),ii(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),ii(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),ii(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),ii(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),ii(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),ii(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),ii(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),ii(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),ii(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),ii(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),ii(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),ii(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),ii(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),ii(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),ii(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),ii(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),ii(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),ii(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),ii(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),ii(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),ii(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),ii(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),ii(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),ii(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),ii(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),ii(`\\imath`,`\\html@mathml{\\@imath}{ı}`),ii(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),ii(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),ii(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),ii(`⟦`,`\\llbracket`),ii(`⟧`,`\\rrbracket`),ii(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),ii(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),ii(`↤`,`\\mapsfrom`),ii(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),ii(`⦃`,`\\lBrace`),ii(`⦄`,`\\rBrace`),ii(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),ii(`⦵`,`\\minuso`),ii(`\\darr`,`\\downarrow`),ii(`\\dArr`,`\\Downarrow`),ii(`\\Darr`,`\\Downarrow`),ii(`\\lang`,`\\langle`),ii(`\\rang`,`\\rangle`),ii(`\\uarr`,`\\uparrow`),ii(`\\uArr`,`\\Uparrow`),ii(`\\Uarr`,`\\Uparrow`),ii(`\\N`,`\\mathbb{N}`),ii(`\\R`,`\\mathbb{R}`),ii(`\\Z`,`\\mathbb{Z}`),ii(`\\alef`,`\\aleph`),ii(`\\alefsym`,`\\aleph`),ii(`\\Alpha`,`\\mathrm{A}`),ii(`\\Beta`,`\\mathrm{B}`),ii(`\\bull`,`\\bullet`),ii(`\\Chi`,`\\mathrm{X}`),ii(`\\clubs`,`\\clubsuit`),ii(`\\cnums`,`\\mathbb{C}`),ii(`\\Complex`,`\\mathbb{C}`),ii(`\\Dagger`,`\\ddagger`),ii(`\\diamonds`,`\\diamondsuit`),ii(`\\empty`,`\\emptyset`),ii(`\\Epsilon`,`\\mathrm{E}`),ii(`\\Eta`,`\\mathrm{H}`),ii(`\\exist`,`\\exists`),ii(`\\harr`,`\\leftrightarrow`),ii(`\\hArr`,`\\Leftrightarrow`),ii(`\\Harr`,`\\Leftrightarrow`),ii(`\\hearts`,`\\heartsuit`),ii(`\\image`,`\\Im`),ii(`\\infin`,`\\infty`),ii(`\\Iota`,`\\mathrm{I}`),ii(`\\isin`,`\\in`),ii(`\\Kappa`,`\\mathrm{K}`),ii(`\\larr`,`\\leftarrow`),ii(`\\lArr`,`\\Leftarrow`),ii(`\\Larr`,`\\Leftarrow`),ii(`\\lrarr`,`\\leftrightarrow`),ii(`\\lrArr`,`\\Leftrightarrow`),ii(`\\Lrarr`,`\\Leftrightarrow`),ii(`\\Mu`,`\\mathrm{M}`),ii(`\\natnums`,`\\mathbb{N}`),ii(`\\Nu`,`\\mathrm{N}`),ii(`\\Omicron`,`\\mathrm{O}`),ii(`\\plusmn`,`\\pm`),ii(`\\rarr`,`\\rightarrow`),ii(`\\rArr`,`\\Rightarrow`),ii(`\\Rarr`,`\\Rightarrow`),ii(`\\real`,`\\Re`),ii(`\\reals`,`\\mathbb{R}`),ii(`\\Reals`,`\\mathbb{R}`),ii(`\\Rho`,`\\mathrm{P}`),ii(`\\sdot`,`\\cdot`),ii(`\\sect`,`\\S`),ii(`\\spades`,`\\spadesuit`),ii(`\\sub`,`\\subset`),ii(`\\sube`,`\\subseteq`),ii(`\\supe`,`\\supseteq`),ii(`\\Tau`,`\\mathrm{T}`),ii(`\\thetasym`,`\\vartheta`),ii(`\\weierp`,`\\wp`),ii(`\\Zeta`,`\\mathrm{Z}`),ii(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),ii(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),ii(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),ii(`\\bra`,`\\mathinner{\\langle{#1}|}`),ii(`\\ket`,`\\mathinner{|{#1}\\rangle}`),ii(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),ii(`\\Bra`,`\\left\\langle#1\\right|`),ii(`\\Ket`,`\\left|#1\\right\\rangle`),Jfe=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},ii(`\\bra@ket`,Jfe(!1)),ii(`\\bra@set`,Jfe(!0)),ii(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),ii(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),ii(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),ii(`\\angln`,`{\\angl n}`),ii(`\\blue`,`\\textcolor{##6495ed}{#1}`),ii(`\\orange`,`\\textcolor{##ffa500}{#1}`),ii(`\\pink`,`\\textcolor{##ff00af}{#1}`),ii(`\\red`,`\\textcolor{##df0030}{#1}`),ii(`\\green`,`\\textcolor{##28ae7b}{#1}`),ii(`\\gray`,`\\textcolor{gray}{#1}`),ii(`\\purple`,`\\textcolor{##9d38bd}{#1}`),ii(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),ii(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),ii(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),ii(`\\blueD`,`\\textcolor{##11accd}{#1}`),ii(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),ii(`\\tealA`,`\\textcolor{##94fff5}{#1}`),ii(`\\tealB`,`\\textcolor{##26edd5}{#1}`),ii(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),ii(`\\tealD`,`\\textcolor{##01a995}{#1}`),ii(`\\tealE`,`\\textcolor{##208170}{#1}`),ii(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),ii(`\\greenB`,`\\textcolor{##8af281}{#1}`),ii(`\\greenC`,`\\textcolor{##74cf70}{#1}`),ii(`\\greenD`,`\\textcolor{##1fab54}{#1}`),ii(`\\greenE`,`\\textcolor{##0d923f}{#1}`),ii(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),ii(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),ii(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),ii(`\\goldD`,`\\textcolor{##e07d10}{#1}`),ii(`\\goldE`,`\\textcolor{##a75a05}{#1}`),ii(`\\redA`,`\\textcolor{##fca9a9}{#1}`),ii(`\\redB`,`\\textcolor{##ff8482}{#1}`),ii(`\\redC`,`\\textcolor{##f9685d}{#1}`),ii(`\\redD`,`\\textcolor{##e84d39}{#1}`),ii(`\\redE`,`\\textcolor{##bc2612}{#1}`),ii(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),ii(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),ii(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),ii(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),ii(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),ii(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),ii(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),ii(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),ii(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),ii(`\\purpleE`,`\\textcolor{##543b78}{#1}`),ii(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),ii(`\\mintB`,`\\textcolor{##edf2df}{#1}`),ii(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),ii(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),ii(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),ii(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),ii(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),ii(`\\grayE`,`\\textcolor{##babec2}{#1}`),ii(`\\grayF`,`\\textcolor{##888d93}{#1}`),ii(`\\grayG`,`\\textcolor{##626569}{#1}`),ii(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),ii(`\\grayI`,`\\textcolor{##21242c}{#1}`),ii(`\\kaBlue`,`\\textcolor{##314453}{#1}`),ii(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),Yfe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Xfe=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new oo(Kfe,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Gfe(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 t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new $a(`EOF`,n.loc)),this.pushTokens(r),new $a(``,Qa.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new oi(`Extra }`,i)}else if(i.text===`EOF`)throw new oi(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new oi(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new oi(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new oi(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new oi(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new oi(`Not a valid argument number`,s)}}}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 $a(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Gfe(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(ao,e)||Object.prototype.hasOwnProperty.call(Pi.math,e)||Object.prototype.hasOwnProperty.call(Pi.text,e)||Object.prototype.hasOwnProperty.call(Yfe,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(ao,e)&&!ao[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Zfe=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,po=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),mo={"́":{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`}},ho={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},go=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Xfe(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new oi(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return 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 t=this.nextToken;this.consume(),this.gullet.pushToken(new $a(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&ao[i.text]&&ao[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(Jr(t.charCodeAt(0))?this.mode===`math`&&Yr({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):Yr({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:Qa.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{t.tagName===`A`&&t.hasAttribute(`target`)&&t.setAttribute(e,t.getAttribute(`target`)??``)}),Kr.addHook(`afterSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(e)&&(t.setAttribute(`target`,t.getAttribute(e)??``),t.removeAttribute(e),t.getAttribute(`target`)===`_blank`&&t.setAttribute(`rel`,`noopener`))})}function spe(e){return[...e.cssRules].map(e=>e.cssText).join(` -`)}var yo,cpe,lpe,bo,xo,So,upe,Co,dpe,fpe,wo,ppe,mpe,To,Eo,Do,Oo,ko,Ao,hpe,gpe,_pe,jo,Mo,No,Po,Fo,vpe,Io,ype,bpe,Lo,xpe,Ro,zo,Spe,Cpe,wpe,Tpe,Bo,Vo,Ho,Epe,Uo,Dpe,Wo,Go,Ope,kpe,Ko,qo,Ape,Jo,jpe,Mpe,Npe,Ppe,Yo,Xo,Fpe,Zo,Qo,$o,es,Ipe,ts,Lpe,Rpe,zpe,Bpe,Vpe,Hpe,ns,Upe,rs,is,as,Wpe,Gpe,Kpe,qpe,os,ss,Jpe,cs,Ype,Xpe,Zpe,ls,Qpe,$pe,eme,tme,nme,rme,ime,ame,us,ds,ome,sme,cme,fs,ps,ms,lme,hs,gs,ume,dme,_s,vs,ys,fme,pme,mme,hme,gme,bs,xs,_me,Ss,Cs,ws,Ts,Es,Ds,Os,ks,vme,As,js,Ms,Ns,yme,Ps,Fs,Is,bme,xme,Ls=o((()=>{ar(),tr(),Tr(),qr(),yo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,cpe=/\s/,lpe=N(e=>{let t=``,n=0,r=0;for(;rn&&cpe.test(e[o-1]);)o--;t+=e.slice(n,o)+` -`,n=a+1,r=n}return t+e.slice(n)},`stripAnyComments`),bo=N(e=>e===` -`||e===`\r`,`isLineBreak`),xo=N((e,t)=>{let n=-1;for(let r=t;r{let t=0;for(;tbo(e[t])&&e.startsWith(i,t+1)?xo(e,t+1+i.length):-1,`closingEnd`),o=r[0]+1,s=-1;for(let t=o;t{for(let{id:t,detector:n,loader:r}of e)wo(t,n,r)},`registerLazyLoadedDiagrams`),wo=N((e,t,n)=>{Co[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),Co[e]={detector:t,loader:n},P.debug(`Detector with key ${e} added${n?` with loader`:``}`)},`addDetector`),ppe=N(e=>Co[e].loader,`getDiagramLoader`),mpe=N((e,t,{depth:n=2}={})=>{let r={depth:n};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(t=>mpe(e,t,r)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.includes(t)||e.push(t)}),e;if(e==null||n<=0)return typeof e==`object`&&e&&typeof t==`object`?Object.assign(e,t):t;if(t!=null&&typeof e==`object`&&typeof t==`object`){let r=e;Object.entries(t).forEach(([t,i])=>{if(typeof i==`object`){if(i===null)return;Object.hasOwn(e,t)||Object.defineProperty(e,t,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),r[t]===void 0&&(r[t]=Array.isArray(i)?[]:{}),typeof r[t]==`object`&&(r[t]=mpe(r[t],i,{depth:n-1}))}else typeof r[t]!=`object`&&(Object.hasOwn(e,t)?r[t]=i:Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}))})}return e},`assignWithDepth`),To=mpe,Eo=`#ffffff`,Do=`#f2f2f2`,Oo=N((e,t)=>t?Cr(e,{s:-40,l:10}):Cr(e,{s:-40,l:-10}),`mkBorder`),ko=N(e=>typeof e==`object`&&!!e&&!Array.isArray(e),`isPlainObject`),Ao=N((e,t)=>ko(e)&&ko(t)?{...e,...t}:t,`applyOverride`),hpe=class{static{N(this,`Theme`)}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||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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?Sr(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||xr(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||Sr(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||Sr(this.mainBkg,10)):(this.rowOdd=this.rowOdd||xr(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||xr(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||Cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Cr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Cr(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])}),Object.hasOwn(e,`nodeBorder`)&&!Object.hasOwn(e,`useGradient`)&&(this.useGradient=!1)}},gpe=N(e=>{let t=new hpe;return t.calculate(e),t},`getThemeVariables`),_pe=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=xr(this.primaryColor,16),this.tertiaryColor=Cr(this.primaryColor,{h:-160}),this.primaryBorderColor=wr(this.background),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.tertiaryColor),this.lineColor=wr(this.background),this.textColor=wr(this.background),this.mainBkg=`#1f2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=xr(wr(`#323D47`),10),this.lineColor=`calculated`,this.border1=`#ccc`,this.border2=vr(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=Sr(`#EAE8D9`,30),this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`#EAE8D9`,this.excludeBkgColor=Sr(this.sectionBkgColor,10),this.taskBorderColor=vr(255,255,255,70),this.taskBkgColor=`calculated`,this.taskTextColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=vr(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||xr(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||Sr(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=xr(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=xr(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=xr(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=wr(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=Cr(this.primaryColor,{h:64}),this.fillType3=Cr(this.secondaryColor,{h:64}),this.fillType4=Cr(this.primaryColor,{h:-64}),this.fillType5=Cr(this.secondaryColor,{h:-64}),this.fillType6=Cr(this.primaryColor,{h:128}),this.fillType7=Cr(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||Cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Cr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Cr(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},jo=N(e=>{let t=new _pe;return t.calculate(e),t},`getThemeVariables`),Mo=class{static{N(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#ECECFF`,this.secondaryColor=Cr(this.primaryColor,{h:120}),this.secondaryColor=`#ffffde`,this.tertiaryColor=Cr(this.primaryColor,{h:-160}),this.primaryBorderColor=Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.tertiaryColor),this.lineColor=wr(this.background),this.textColor=wr(this.background),this.background=`white`,this.mainBkg=`#ECECFF`,this.secondBkg=`#ffffde`,this.lineColor=`#333333`,this.border1=`#9370DB`,this.primaryBorderColor=Oo(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=vr(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||Cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Cr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Cr(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Sr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Sr(this.tertiaryColor,40);for(let e=0;e{this[e]===`calculated`&&(this[e]=void 0)}),typeof e!=`object`){this.updateColors();return}let t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},No=N(e=>{let t=new Mo;return t.calculate(e),t},`getThemeVariables`),Po=class{static{N(this,`Theme`)}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=xr(`#cde498`,10),this.primaryBorderColor=Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.primaryColor),this.lineColor=wr(this.background),this.textColor=wr(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=Sr(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Cr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Cr(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Sr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Sr(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},Fo=N(e=>{let t=new Po;return t.calculate(e),t},`getThemeVariables`),vpe=class{static{N(this,`Theme`)}constructor(){this.primaryColor=`#eee`,this.contrast=`#707070`,this.secondaryColor=xr(this.contrast,55),this.background=`#ffffff`,this.tertiaryColor=Cr(this.primaryColor,{h:-160}),this.primaryBorderColor=Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.tertiaryColor),this.lineColor=wr(this.background),this.textColor=wr(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||xr(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=xr(this.contrast,55),this.border2=this.contrast,this.actorBorder=xr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},Io=N(e=>{let t=new vpe;return t.calculate(e),t},`getThemeVariables`),ype=class{static{N(this,`Theme`)}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=Oo(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||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(br(this.background)?xr(this.background,4):Sr(this.background,4));let e=`#ECECFE`,t=`#E9E9F1`,n=Cr(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,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||xr(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||t,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||Cr(e,{h:30}),this.cScale4=this.cScale4||Cr(e,{h:60}),this.cScale5=this.cScale5||Cr(e,{h:90}),this.cScale6=this.cScale6||Cr(e,{h:120}),this.cScale7=this.cScale7||Cr(e,{h:150}),this.cScale8=this.cScale8||Cr(e,{h:210,l:150}),this.cScale9=this.cScale9||Cr(e,{h:270}),this.cScale10=this.cScale10||Cr(e,{h:300}),this.cScale11=this.cScale11||Cr(e,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},bpe=N(e=>{let t=new ype;return t.calculate(e),t},`getThemeVariables`),Lo=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=xr(this.primaryColor,16),this.tertiaryColor=Cr(this.primaryColor,{h:-160}),this.primaryBorderColor=wr(this.background),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.tertiaryColor),this.mainBkg=`#2a2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=xr(wr(`#323D47`),10),this.border1=`#ccc`,this.border2=vr(255,255,255,.25),this.arrowheadColor=wr(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||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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.secondBkg=this.secondBkg===`calculated`?xr(this.mainBkg,16):this.secondBkg,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?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||xr(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,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||Cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Cr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Cr(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},xpe=N(e=>{let t=new Lo;return t.calculate(e),t},`getThemeVariables`),Ro=class{static{N(this,`Theme`)}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=Oo(`#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||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#FEF9C3`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(br(this.background)?xr(this.background,4):Sr(this.background,4));let e=`#ECECFE`,t=`#E9E9F1`,n=Cr(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,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||xr(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 e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},zo=N(e=>{let t=new Ro;return t.calculate(e),t},`getThemeVariables`),Spe=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=xr(this.primaryColor,16),this.tertiaryColor=Cr(this.primaryColor,{h:-160}),this.primaryBorderColor=wr(this.background),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=xr(wr(`#323D47`),10),this.border1=`#ccc`,this.border2=vr(255,255,255,.25),this.arrowheadColor=wr(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||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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.secondBkg=this.secondBkg===`calculated`?xr(this.mainBkg,16):this.secondBkg,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?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||xr(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,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||Cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Cr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Cr(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},Cpe=N(e=>{let t=new Spe;return t.calculate(e),t},`getThemeVariables`),wpe=class{static{N(this,`Theme`)}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=Oo(`#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.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.usecaseActorBorder=`#A78BFA`,this.usecaseActorBkg=`#F5F3FF`,this.usecaseBorder=`#2DD4BF`,this.usecaseBkg=`#F0FDFA`,this.usecaseBoundaryBorder=`#BDBCCC`,this.usecaseBoundaryBkg=`#FAFAFC`,this.usecaseIncludeLine=`#38BDF8`,this.usecaseExtendLine=`#FB923C`,this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(br(this.background)?xr(this.background,4):Sr(this.background,4));let e=`#ECECFE`,t=Cr(e,{h:180,l:5});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||xr(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.stateEdgeLabelBackground=this.stateEdgeLabelBackground||`#FFFFFF`,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#F9F9FB`,this.compositeTitleBackground=this.compositeTitleBackground||`#F9F9FB`,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`,this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||`white`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},Tpe=N(e=>{let t=new wpe;return t.calculate(e),t},`getThemeVariables`),Bo=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=xr(this.primaryColor,16),this.tertiaryColor=Cr(this.primaryColor,{h:-160}),this.primaryBorderColor=wr(this.background),this.secondaryBorderColor=Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oo(this.tertiaryColor,this.darkMode),this.primaryTextColor=wr(this.primaryColor),this.secondaryTextColor=wr(this.secondaryColor),this.tertiaryTextColor=wr(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=xr(wr(`#323D47`),10),this.border1=`#ccc`,this.border2=vr(255,255,255,.25),this.arrowheadColor=wr(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.usecaseActorBorder=`#A78BFA`,this.usecaseBorder=`#2DD4BF`,this.usecaseBoundaryBorder=`#BDBCCC`,this.usecaseIncludeLine=`#38BDF8`,this.usecaseExtendLine=`#FB923C`,this.filterColor=`#FFFFFF`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||Cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Oo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||wr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wr(this.tertiaryColor),this.lineColor=this.lineColor||wr(this.background),this.arrowheadColor=this.arrowheadColor||wr(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.secondBkg=this.secondBkg===`calculated`?xr(this.mainBkg,16):this.secondBkg,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?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor=`#FFFFFF`,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||xr(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,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.stateEdgeLabelBackground=this.stateEdgeLabelBackground||`#16141F`,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||`#16141F`,this.altBackground=this.altBackground||`#16141F`,this.compositeTitleBackground=this.compositeTitleBackground||`#16141F`,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`,this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let e=0;e{this[`fillType`+t]=this[`fillType`+t]||e});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=Ao(this[t],e[t])})}},Vo={base:{getThemeVariables:gpe},dark:{getThemeVariables:jo},default:{getThemeVariables:No},forest:{getThemeVariables:Fo},neutral:{getThemeVariables:Io},neo:{getThemeVariables:bpe},"neo-dark":{getThemeVariables:xpe},redux:{getThemeVariables:zo},"redux-dark":{getThemeVariables:Cpe},"redux-color":{getThemeVariables:Tpe},"redux-dark-color":{getThemeVariables:N(e=>{let t=new Bo;return t.calculate(e),t},`getThemeVariables`)}},Ho={flowchart:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:`basis`,padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,layout:`swimlane`,lineHops:`arc`,ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,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,theme:`redux-color`,look:`neo`,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,layout:`elk`,wrappingWidth:120,minNodeWidth:120,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},er:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,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,donutHole:0,legendPosition:`right`,highlightSlice:``},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,showLegend:!0,legendFontSize:14,legendPadding:10,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,labelRotation:0},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,labelRotation:0},chartOrientation:`vertical`,plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,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,colorBy:`branch`,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,bitOrder:`ascending`,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:``,filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},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},usecase:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:`"Open Sans", sans-serif`,actorFontWeight:`normal`,usecaseFontSize:12,usecaseFontFamily:`"Open Sans", sans-serif`,usecaseFontWeight:`normal`,nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:`role`},venn:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:`default`,look:`classic`,handDrawnSeed:0,layout:`elk`,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},Epe={...Ho,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:`default`,nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:`NODES_AND_EDGES`,keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:Vo.default.getThemeVariables(),sequence:{...Ho.sequence,messageFont:N(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`),noteFont:N(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},`noteFont`),actorFont:N(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},`actorFont`)},class:{theme:Ho.class?.theme,look:Ho.class?.look,layout:Ho.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ho.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ho.c4,useWidth:void 0,personFont:N(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},`personFont`),flowchart:{...Ho.flowchart,inheritDir:!1},external_personFont:N(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},`external_personFont`),systemFont:N(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},`systemFont`),external_systemFont:N(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},`external_systemFont`),system_dbFont:N(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},`system_dbFont`),external_system_dbFont:N(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},`external_system_dbFont`),system_queueFont:N(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},`system_queueFont`),external_system_queueFont:N(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},`external_system_queueFont`),containerFont:N(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},`containerFont`),external_containerFont:N(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},`external_containerFont`),container_dbFont:N(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},`container_dbFont`),external_container_dbFont:N(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},`external_container_dbFont`),container_queueFont:N(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},`container_queueFont`),external_container_queueFont:N(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},`external_container_queueFont`),componentFont:N(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},`componentFont`),external_componentFont:N(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},`external_componentFont`),component_dbFont:N(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},`component_dbFont`),external_component_dbFont:N(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},`external_component_dbFont`),component_queueFont:N(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},`component_queueFont`),external_component_queueFont:N(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},`external_component_queueFont`),boundaryFont:N(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},`boundaryFont`),messageFont:N(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`)},pie:{...Ho.pie,useWidth:984},xyChart:{...Ho.xyChart,useWidth:void 0},requirement:{...Ho.requirement,useWidth:void 0},packet:{...Ho.packet},eventmodeling:{...Ho.eventmodeling},treeView:{...Ho.treeView,useWidth:void 0},radar:{...Ho.radar},usecase:{...Ho.usecase},railroad:{...Ho.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...Ho.ishikawa},sankey:{...Ho.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:{...Ho.venn},cynefin:{...Ho.cynefin}},Uo=N((e,t=``)=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]==`object`&&e[r]!==null?[...n,t+r,...Uo(e[r],``)]:[...n,t+r],[]),`keyify`),Dpe=new Set(Uo(Epe,``)),Wo=Epe,Go={"flowchart-v2":`flowchart`,"flowchart-elk":`flowchart`,classDiagram:`class`,stateDiagram:`state`,xychart:`xyChart`,railroadAbnf:`railroad`,railroadEbnf:`railroad`,railroadPeg:`railroad`},Ope=N(e=>Go[e]??e,`getDiagramConfigKey`),kpe={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Ko=N((e,t)=>{for(let n of Object.keys(e)){let r=e[n];(n.startsWith(`__`)||n.includes(`proto`)||n.includes(`constr`)||typeof r!=`string`||!t.test(r))&&(P.debug(`sanitize deleting dictionary entry:`,n,r),delete e[n])}},`sanitizeDictionaryConfig`),qo=N(e=>{if(P.debug(`sanitizeDirective called with`,e),typeof e==`object`&&e){if(Array.isArray(e)){e.forEach(e=>qo(e));return}for(let t of Object.keys(e)){if(P.debug(`Checking key`,t),t.startsWith(`__`)||t.includes(`proto`)||t.includes(`constr`)||!Dpe.has(t)||e[t]==null){P.debug(`sanitize deleting key: `,t),delete e[t];continue}if(typeof e[t]==`object`){let n=kpe[t];n?Ko(e[t],n):(P.debug(`sanitizing object`,t),qo(e[t]));continue}for(let n of[`themeCSS`,`fontFamily`,`altFontFamily`])t.includes(n)&&(P.debug(`sanitizing css option`,t),e[t]=Ape(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]=``)}P.debug(`After sanitization`,e)}},`sanitizeDirective`),Ape=N(e=>{let t=0,n=0;for(let r of e){if(te===`theme`?t===`null`||Object.hasOwn(Vo,t):e!==`look`||Mpe.has(t),`isUsableAppearance`),Ppe=N((e,t,n)=>{if(e)return[e[t]?.[n],e[n]].find(e=>e!==void 0&&Npe(n,e))},`readAppearance`),Yo=N(e=>!(e===!1||[`false`,`null`,`0`].includes(String(e).trim().toLowerCase())),`evaluate`),Xo=To({},Jo),Zo={},Qo=[],$o=To({},Jo),Ipe=N((e,t)=>{if(!es)return;let n=[t,...[...Qo].reverse(),Zo,Jo],r=e[es];for(let t of jpe)for(let i of n){let n=Ppe(i,es,t);if(n!==void 0){e[t]=n,r?.[t]!==void 0&&(r[t]=n);break}}},`resolveAppearance`),ts=N((e,t)=>{let n=To({},e),r={};for(let e of t)Upe(e),r=To(r,e);if(n=To(n,r),Ipe(n,r),(r.theme||n.theme!==e.theme)&&n.theme&&Object.hasOwn(Vo,n.theme)){let e=To(To({},Fpe).themeVariables||{},r.themeVariables);n.themeVariables=Vo[n.theme].getThemeVariables(e)}return $o=n,Kpe($o),$o},`updateCurrentConfig`),Lpe=N(e=>{es=e===void 0?void 0:Ope(e),ts(Xo,Qo)},`setDiagramConfigScope`),Rpe=N(e=>(Xo=To({},Jo),Xo=To(Xo,e),Zo=To({},e),e.theme&&Object.hasOwn(Vo,e.theme)&&(Xo.themeVariables=Vo[e.theme].getThemeVariables(e.themeVariables)),ts(Xo,Qo),Xo),`setSiteConfig`),zpe=N(e=>{Fpe=To({},e)},`saveConfigFromInitialize`),Bpe=N(e=>(Xo=To(Xo,e),Zo=To(Zo,e),ts(Xo,Qo),Xo),`updateSiteConfig`),Vpe=N(()=>To({},Xo),`getSiteConfig`),Hpe=N(e=>(ts($o,[e]),ns()),`setConfig`),ns=N(()=>To({},$o),`getConfig`),Upe=N(e=>{e&&([`secure`,...Xo.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(P.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith(`__`)&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]==`string`&&(e[t].includes(`<`)||e[t].includes(`>`)||e[t].includes(`url(data:`))&&delete e[t],typeof e[t]==`object`&&Upe(e[t])}))},`sanitize`),rs=N(e=>{qo(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Qo.push(e),ts(Xo,Qo)},`addDirective`),is=N((e=Xo)=>{Qo=[],es=void 0,ts(e,Qo)},`reset`),as={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.`},Wpe={},Gpe=N(e=>{Wpe[e]||(P.warn(as[e]),Wpe[e]=!0)},`issueWarning`),Kpe=N(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Gpe(`LAZY_LOAD_DEPRECATED`)},`checkConfig`),qpe=N(()=>{let e={};Fpe&&(e=To(e,Fpe));for(let t of Qo)e=To(e,t);return e},`getUserDefinedConfig`),os=N(e=>(e.flowchart?.htmlLabels!=null&&Gpe(`FLOWCHART_HTML_LABELS_DEPRECATED`),Yo(e.htmlLabels??e.flowchart?.htmlLabels??!0)),`getEffectiveHtmlLabels`),ss=/<\/?br\s*\/?>/gi,Jpe=new RegExp(ss.source,`i`),cs=N(e=>e?nme(e).replace(/\\n/g,`#br#`).split(`#br#`):[``],`getRows`),Ype=(()=>{let e=!1;return()=>{e||=(ope(),!0)}})(),N(ope,`setupDompurifyHooks`),Xpe=N(e=>(Ype(),Kr.sanitize(e)),`removeScript`),Zpe=N((e,t)=>{if(os(t)){let n=t.securityLevel;n===`antiscript`||n===`strict`||n===`sandbox`?e=Xpe(e):n!==`loose`&&(e=nme(e),e=e.replace(//g,`>`),e=e.replace(/=/g,`=`),e=tme(e))}return e},`sanitizeMore`),ls=N((e,t)=>e&&(e=t.dompurifyConfig?Kr.sanitize(Zpe(e,t),t.dompurifyConfig).toString():Kr.sanitize(Zpe(e,t),{FORBID_TAGS:[`style`]}).toString(),e),`sanitizeText`),Qpe=N((e,t)=>typeof e==`string`?ls(e,t):e.flat().map(e=>ls(e,t)),`sanitizeTextOrArray`),$pe=N(e=>Jpe.test(e),`hasBreaks`),eme=N(e=>e.split(ss),`splitBreaks`),tme=N(e=>e.replace(/#br#/g,`
    `),`placeholderToBreak`),nme=N(e=>e.replace(ss,`#br#`),`breakToPlaceholder`),rme=N(e=>{let t=``;return e&&(t=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},`getUrl`),ime=N(function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},`getMax`),ame=N(function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)},`getMin`),us=N(function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),`countOccurrence`),ome=N((e,t)=>{let n=ds(e,`~`),r=ds(t,`~`);return n===1&&r===1},`shouldCombineSets`),sme=N(e=>{let t=ds(e,`~`),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith(`~`)&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf(`~`),a=r.lastIndexOf(`~`);for(;i!==-1&&a!==-1&&i!==a;)r[i]=`<`,r[a]=`>`,i=r.indexOf(`~`),a=r.lastIndexOf(`~`);return n&&r.unshift(`~`),r.join(``)},`processSet`),cme=N(()=>window.MathMLElement!==void 0,`isMathMLSupported`),fs=/\$\$(.*?)\$\$/g,ps=N(e=>(e.match(fs)?.length??0)>0,`hasKatex`),ms=N(async(e,t)=>{let n=document.createElement(`div`);n.innerHTML=await hs(e,t),n.id=`katex-temp`,n.style.visibility=`hidden`,n.style.position=`absolute`,n.style.top=`0`,document.querySelector(`body`)?.insertAdjacentElement(`beforeend`,n);let r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},`calculateMathMLDimensions`),lme=N(async(e,t)=>{if(!ps(e))return e;if(!(cme()||t.legacyMathML||t.forceLegacyMathML))return e.replace(fs,`MathML is unsupported in this environment.`);{let{default:n}=await Promise.resolve().then(()=>(R(),Xce)),r=t.forceLegacyMathML||!cme()&&t.legacyMathML?`htmlAndMathml`:`mathml`;return e.split(ss).map(e=>ps(e)?`
    ${e}
    `:`
    ${e}
    `).join(``).replace(fs,(e,t)=>n.renderToString(t,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g,` `).replace(//g,``))}},`renderKatexUnsanitized`),hs=N(async(e,t)=>ls(await lme(e,t),t),`renderKatexSanitized`),gs={getRows:cs,sanitizeText:ls,sanitizeTextOrArray:Qpe,hasBreaks:$pe,splitBreaks:eme,lineBreakRegex:ss,removeScript:Xpe,getUrl:rme,evaluate:Yo,getMax:ime,getMin:ame},ume=N(function(e,t){for(let n of t)e.attr(n[0],n[1])},`d3Attrs`),dme=N(function(e,t,n){let r=new Map;return n?(r.set(`width`,`100%`),r.set(`style`,`max-width: ${t}px;`)):(r.set(`height`,e),r.set(`width`,t)),r},`calculateSvgSizeAttrs`),_s=N(function(e,t,n,r){ume(e,dme(t,n,r))},`configureSvgSize`),vs=N(function(e,t,n,r){let i=t.node().getBBox(),a=i.width,o=i.height;P.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;P.info(`Graph bounds: ${s}x${l}`,e),s=a+n*2,l=o+n*2,P.info(`Calculated bounds: ${s}x${l}`),_s(t,l,s,r);let u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr(`viewBox`,u)},`setupGraphViewbox`),ys={},N(spe,`cssStyleSheetToString`),fme=N((e,t,n,r)=>{let i=``;return e in ys&&ys[e]?i=ys[e]({...n,svgId:r}):P.warn(`No theme found for ${e}`),`& { +?)[ \r ]*`,npe=`[̀-ͯ]`,rpe=RegExp(npe+`+$`),ipe=`(`+Qfe+`+)|`+(Xa+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(npe+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(npe+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+tpe)+(`|`+epe+`)`),Za=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(ipe,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Ua(`EOF`,new Ha(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new ei(`Unexpected character: '`+e[t]+`'`,new Ua(e[t],new Ha(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,Kr({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new Ua(r,new Ha(this,t,this.tokenRegex.lastIndex))}},ape=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ei(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},ope=hfe,Qr(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Qr(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Qr(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Qr(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Qr(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Qr(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Qr(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),spe={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},Qr(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new ei("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=spe[t.text],r==null||r>=n)throw new ei(`Invalid base-`+n+` digit `+t.text);for(var i;(i=spe[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new ei(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new ei(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new ei(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new ei(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},Qr(`\\newcommand`,e=>cpe(e,!1,!0,!1)),Qr(`\\renewcommand`,e=>cpe(e,!0,!1,!1)),Qr(`\\providecommand`,e=>cpe(e,!0,!0,!0)),Qr(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Qr(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Qr(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Ya[n],Ai.math[n],Ai.text[n]),``}),Qr(`\\bgroup`,`{`),Qr(`\\egroup`,`}`),Qr(`~`,`\\nobreakspace`),Qr(`\\lq`,"`"),Qr(`\\rq`,`'`),Qr(`\\aa`,`\\r a`),Qr(`\\AA`,`\\r A`),Qr(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Qr(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Qr(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Qr(`ℬ`,`\\mathscr{B}`),Qr(`ℰ`,`\\mathscr{E}`),Qr(`ℱ`,`\\mathscr{F}`),Qr(`ℋ`,`\\mathscr{H}`),Qr(`ℐ`,`\\mathscr{I}`),Qr(`ℒ`,`\\mathscr{L}`),Qr(`ℳ`,`\\mathscr{M}`),Qr(`ℛ`,`\\mathscr{R}`),Qr(`ℭ`,`\\mathfrak{C}`),Qr(`ℌ`,`\\mathfrak{H}`),Qr(`ℨ`,`\\mathfrak{Z}`),Qr(`\\Bbbk`,`\\Bbb{k}`),Qr(`\\llap`,`\\mathllap{\\textrm{#1}}`),Qr(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Qr(`\\clap`,`\\mathclap{\\textrm{#1}}`),Qr(`\\mathstrut`,`\\vphantom{(}`),Qr(`\\underbar`,`\\underline{\\text{#1}}`),Qr(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Qr(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Qr(`\\ne`,`\\neq`),Qr(`≠`,`\\neq`),Qr(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Qr(`∉`,`\\notin`),Qr(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Qr(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Qr(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Qr(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Qr(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Qr(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Qr(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Qr(`⟂`,`\\perp`),Qr(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Qr(`∌`,`\\notni`),Qr(`⌜`,`\\ulcorner`),Qr(`⌝`,`\\urcorner`),Qr(`⌞`,`\\llcorner`),Qr(`⌟`,`\\lrcorner`),Qr(`©`,`\\copyright`),Qr(`®`,`\\textregistered`),Qr(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Qr(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Qr(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Qr(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Qr(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Qr(`⋮`,`\\vdots`),Qr(`\\varGamma`,`\\mathit{\\Gamma}`),Qr(`\\varDelta`,`\\mathit{\\Delta}`),Qr(`\\varTheta`,`\\mathit{\\Theta}`),Qr(`\\varLambda`,`\\mathit{\\Lambda}`),Qr(`\\varXi`,`\\mathit{\\Xi}`),Qr(`\\varPi`,`\\mathit{\\Pi}`),Qr(`\\varSigma`,`\\mathit{\\Sigma}`),Qr(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Qr(`\\varPhi`,`\\mathit{\\Phi}`),Qr(`\\varPsi`,`\\mathit{\\Psi}`),Qr(`\\varOmega`,`\\mathit{\\Omega}`),Qr(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Qr(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Qr(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Qr(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Qr(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Qr(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Qr(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Qr(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),lpe={",":`\\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`},upe=new Set([`bin`,`rel`]),Qr(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in lpe?t=lpe[n]:(n.slice(0,4)===`\\not`||n in Ai.math&&upe.has(Ai.math[n].group))&&(t=`\\dotsb`),t}),dpe={")":!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},Qr(`\\dotso`,function(e){return e.future().text in dpe?`\\ldots\\,`:`\\ldots`}),Qr(`\\dotsc`,function(e){var t=e.future().text;return t in dpe&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Qr(`\\cdots`,function(e){return e.future().text in dpe?`\\@cdots\\,`:`\\@cdots`}),Qr(`\\dotsb`,`\\cdots`),Qr(`\\dotsm`,`\\cdots`),Qr(`\\dotsi`,`\\!\\cdots`),Qr(`\\dotsx`,`\\ldots\\,`),Qr(`\\DOTSI`,`\\relax`),Qr(`\\DOTSB`,`\\relax`),Qr(`\\DOTSX`,`\\relax`),Qr(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Qr(`\\,`,`\\tmspace+{3mu}{.1667em}`),Qr(`\\thinspace`,`\\,`),Qr(`\\>`,`\\mskip{4mu}`),Qr(`\\:`,`\\tmspace+{4mu}{.2222em}`),Qr(`\\medspace`,`\\:`),Qr(`\\;`,`\\tmspace+{5mu}{.2777em}`),Qr(`\\thickspace`,`\\;`),Qr(`\\!`,`\\tmspace-{3mu}{.1667em}`),Qr(`\\negthinspace`,`\\!`),Qr(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Qr(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Qr(`\\enspace`,`\\kern.5em `),Qr(`\\enskip`,`\\hskip.5em\\relax`),Qr(`\\quad`,`\\hskip1em\\relax`),Qr(`\\qquad`,`\\hskip2em\\relax`),Qr(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Qr(`\\tag@paren`,`\\tag@literal{({#1})}`),Qr(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new ei(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Qr(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Qr(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Qr(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Qr(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Qr(`\\newline`,`\\\\\\relax`),Qr(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),Qa=bi(Ei[`Main-Regular`][84][1]-.7*Ei[`Main-Regular`][65][1]),Qr(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Qa+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Qr(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Qa+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Qr(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Qr(`\\@hspace`,`\\hskip #1\\relax`),Qr(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Qr(`\\ordinarycolon`,`:`),Qr(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Qr(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Qr(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Qr(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Qr(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Qr(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Qr(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Qr(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Qr(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Qr(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Qr(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Qr(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Qr(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Qr(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Qr(`∷`,`\\dblcolon`),Qr(`∹`,`\\eqcolon`),Qr(`≔`,`\\coloneqq`),Qr(`≕`,`\\eqqcolon`),Qr(`⩴`,`\\Coloneqq`),Qr(`\\ratio`,`\\vcentcolon`),Qr(`\\coloncolon`,`\\dblcolon`),Qr(`\\colonequals`,`\\coloneqq`),Qr(`\\coloncolonequals`,`\\Coloneqq`),Qr(`\\equalscolon`,`\\eqqcolon`),Qr(`\\equalscoloncolon`,`\\Eqqcolon`),Qr(`\\colonminus`,`\\coloneq`),Qr(`\\coloncolonminus`,`\\Coloneq`),Qr(`\\minuscolon`,`\\eqcolon`),Qr(`\\minuscoloncolon`,`\\Eqcolon`),Qr(`\\coloncolonapprox`,`\\Colonapprox`),Qr(`\\coloncolonsim`,`\\Colonsim`),Qr(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Qr(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Qr(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Qr(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Qr(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Qr(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Qr(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Qr(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Qr(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Qr(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Qr(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Qr(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Qr(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Qr(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Qr(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Qr(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Qr(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Qr(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Qr(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Qr(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Qr(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Qr(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Qr(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Qr(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Qr(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Qr(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Qr(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Qr(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Qr(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Qr(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Qr(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Qr(`⟦`,`\\llbracket`),Qr(`⟧`,`\\rrbracket`),Qr(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Qr(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Qr(`↤`,`\\mapsfrom`),Qr(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),Qr(`⦃`,`\\lBrace`),Qr(`⦄`,`\\rBrace`),Qr(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Qr(`⦵`,`\\minuso`),Qr(`\\darr`,`\\downarrow`),Qr(`\\dArr`,`\\Downarrow`),Qr(`\\Darr`,`\\Downarrow`),Qr(`\\lang`,`\\langle`),Qr(`\\rang`,`\\rangle`),Qr(`\\uarr`,`\\uparrow`),Qr(`\\uArr`,`\\Uparrow`),Qr(`\\Uarr`,`\\Uparrow`),Qr(`\\N`,`\\mathbb{N}`),Qr(`\\R`,`\\mathbb{R}`),Qr(`\\Z`,`\\mathbb{Z}`),Qr(`\\alef`,`\\aleph`),Qr(`\\alefsym`,`\\aleph`),Qr(`\\Alpha`,`\\mathrm{A}`),Qr(`\\Beta`,`\\mathrm{B}`),Qr(`\\bull`,`\\bullet`),Qr(`\\Chi`,`\\mathrm{X}`),Qr(`\\clubs`,`\\clubsuit`),Qr(`\\cnums`,`\\mathbb{C}`),Qr(`\\Complex`,`\\mathbb{C}`),Qr(`\\Dagger`,`\\ddagger`),Qr(`\\diamonds`,`\\diamondsuit`),Qr(`\\empty`,`\\emptyset`),Qr(`\\Epsilon`,`\\mathrm{E}`),Qr(`\\Eta`,`\\mathrm{H}`),Qr(`\\exist`,`\\exists`),Qr(`\\harr`,`\\leftrightarrow`),Qr(`\\hArr`,`\\Leftrightarrow`),Qr(`\\Harr`,`\\Leftrightarrow`),Qr(`\\hearts`,`\\heartsuit`),Qr(`\\image`,`\\Im`),Qr(`\\infin`,`\\infty`),Qr(`\\Iota`,`\\mathrm{I}`),Qr(`\\isin`,`\\in`),Qr(`\\Kappa`,`\\mathrm{K}`),Qr(`\\larr`,`\\leftarrow`),Qr(`\\lArr`,`\\Leftarrow`),Qr(`\\Larr`,`\\Leftarrow`),Qr(`\\lrarr`,`\\leftrightarrow`),Qr(`\\lrArr`,`\\Leftrightarrow`),Qr(`\\Lrarr`,`\\Leftrightarrow`),Qr(`\\Mu`,`\\mathrm{M}`),Qr(`\\natnums`,`\\mathbb{N}`),Qr(`\\Nu`,`\\mathrm{N}`),Qr(`\\Omicron`,`\\mathrm{O}`),Qr(`\\plusmn`,`\\pm`),Qr(`\\rarr`,`\\rightarrow`),Qr(`\\rArr`,`\\Rightarrow`),Qr(`\\Rarr`,`\\Rightarrow`),Qr(`\\real`,`\\Re`),Qr(`\\reals`,`\\mathbb{R}`),Qr(`\\Reals`,`\\mathbb{R}`),Qr(`\\Rho`,`\\mathrm{P}`),Qr(`\\sdot`,`\\cdot`),Qr(`\\sect`,`\\S`),Qr(`\\spades`,`\\spadesuit`),Qr(`\\sub`,`\\subset`),Qr(`\\sube`,`\\subseteq`),Qr(`\\supe`,`\\supseteq`),Qr(`\\Tau`,`\\mathrm{T}`),Qr(`\\thetasym`,`\\vartheta`),Qr(`\\weierp`,`\\wp`),Qr(`\\Zeta`,`\\mathrm{Z}`),Qr(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Qr(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Qr(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Qr(`\\bra`,`\\mathinner{\\langle{#1}|}`),Qr(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Qr(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Qr(`\\Bra`,`\\left\\langle#1\\right|`),Qr(`\\Ket`,`\\left|#1\\right\\rangle`),$a=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},Qr(`\\bra@ket`,$a(!1)),Qr(`\\bra@set`,$a(!0)),Qr(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Qr(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Qr(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Qr(`\\angln`,`{\\angl n}`),Qr(`\\blue`,`\\textcolor{##6495ed}{#1}`),Qr(`\\orange`,`\\textcolor{##ffa500}{#1}`),Qr(`\\pink`,`\\textcolor{##ff00af}{#1}`),Qr(`\\red`,`\\textcolor{##df0030}{#1}`),Qr(`\\green`,`\\textcolor{##28ae7b}{#1}`),Qr(`\\gray`,`\\textcolor{gray}{#1}`),Qr(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Qr(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Qr(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Qr(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Qr(`\\blueD`,`\\textcolor{##11accd}{#1}`),Qr(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Qr(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Qr(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Qr(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Qr(`\\tealD`,`\\textcolor{##01a995}{#1}`),Qr(`\\tealE`,`\\textcolor{##208170}{#1}`),Qr(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Qr(`\\greenB`,`\\textcolor{##8af281}{#1}`),Qr(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Qr(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Qr(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Qr(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Qr(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Qr(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Qr(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Qr(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Qr(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Qr(`\\redB`,`\\textcolor{##ff8482}{#1}`),Qr(`\\redC`,`\\textcolor{##f9685d}{#1}`),Qr(`\\redD`,`\\textcolor{##e84d39}{#1}`),Qr(`\\redE`,`\\textcolor{##bc2612}{#1}`),Qr(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Qr(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Qr(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Qr(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Qr(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Qr(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Qr(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Qr(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Qr(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Qr(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Qr(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Qr(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Qr(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Qr(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Qr(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Qr(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Qr(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Qr(`\\grayE`,`\\textcolor{##babec2}{#1}`),Qr(`\\grayF`,`\\textcolor{##888d93}{#1}`),Qr(`\\grayG`,`\\textcolor{##626569}{#1}`),Qr(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Qr(`\\grayI`,`\\textcolor{##21242c}{#1}`),Qr(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Qr(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),eo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},to=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new ape(ope,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Za(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 t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new Ua(`EOF`,n.loc)),this.pushTokens(r),new Ua(``,Ha.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new ei(`Extra }`,i)}else if(i.text===`EOF`)throw new ei(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new ei(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new ei(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new ei(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new ei(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new ei(`Not a valid argument number`,s)}}}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 Ua(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Za(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Ya,e)||Object.prototype.hasOwnProperty.call(Ai.math,e)||Object.prototype.hasOwnProperty.call(Ai.text,e)||Object.prototype.hasOwnProperty.call(eo,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(Ya,e)&&!Ya[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},fpe=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,no=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),ro={"́":{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`}},ppe={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},mpe=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new to(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new ei(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return 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 t=this.nextToken;this.consume(),this.gullet.pushToken(new Ua(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Ya[i.text]&&Ya[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(cle(t.charCodeAt(0))?this.mode===`math`&&Kr({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):Kr({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:Ha.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{t.tagName===`A`&&t.hasAttribute(`target`)&&t.setAttribute(e,t.getAttribute(`target`)??``)}),Ur.addHook(`afterSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(e)&&(t.setAttribute(`target`,t.getAttribute(e)??``),t.removeAttribute(e),t.getAttribute(`target`)===`_blank`&&t.setAttribute(`rel`,`noopener`))})}function ao(e){return[...e.cssRules].map(e=>e.cssText).join(` +`)}var oo,so,Tpe,Epe,Dpe,co,Ope,lo,uo,fo,kpe,Ape,po,mo,ho,go,_o,vo,yo,bo,xo,So,jpe,Co,wo,Mpe,To,Npe,Eo,Do,Ppe,Fpe,Ipe,Lpe,Oo,ko,Rpe,zpe,Ao,Bpe,jo,Mo,No,Vpe,Po,Fo,Hpe,Upe,Wpe,Gpe,Io,Kpe,Lo,qpe,Jpe,Ype,Xpe,Ro,zo,Bo,Vo,Ho,Uo,Wo,Zpe,Go,Ko,Qpe,$pe,qo,Jo,Yo,Xo,eme,tme,Zo,nme,Qo,rme,$o,ime,es,ts,ame,ome,sme,cme,lme,ns,ume,dme,fme,pme,mme,hme,gme,_me,rs,vme,yme,bme,is,xme,as,os,Sme,ss,cs,Cme,wme,ls,us,ds,Tme,Eme,Dme,Ome,kme,Ame,jme,Mme,fs,ps,ms,hs,gs,_s,vs,ys,Nme,bs,xs,Ss,Pme,Cs,ws,Ts,Es,Ds,Fme,Os=o((()=>{er(),Zn(),br(),Wr(),oo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,so=/\s/,Tpe=N(e=>{let t=``,n=0,r=0;for(;rn&&so.test(e[o-1]);)o--;t+=e.slice(n,o)+` +`,n=a+1,r=n}return t+e.slice(n)},`stripAnyComments`),Epe=N(e=>e===` +`||e===`\r`,`isLineBreak`),Dpe=N((e,t)=>{let n=-1;for(let r=t;r{let t=0;for(;tEpe(e[t])&&e.startsWith(i,t+1)?Dpe(e,t+1+i.length):-1,`closingEnd`),o=r[0]+1,s=-1;for(let t=o;t{for(let{id:t,detector:n,loader:r}of e)kpe(t,n,r)},`registerLazyLoadedDiagrams`),kpe=N((e,t,n)=>{lo[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),lo[e]={detector:t,loader:n},P.debug(`Detector with key ${e} added${n?` with loader`:``}`)},`addDetector`),Ape=N(e=>lo[e].loader,`getDiagramLoader`),po=N((e,t,{depth:n=2}={})=>{let r={depth:n};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(t=>po(e,t,r)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.includes(t)||e.push(t)}),e;if(e==null||n<=0)return typeof e==`object`&&e&&typeof t==`object`?Object.assign(e,t):t;if(t!=null&&typeof e==`object`&&typeof t==`object`){let r=e;Object.entries(t).forEach(([t,i])=>{if(typeof i==`object`){if(i===null)return;Object.hasOwn(e,t)||Object.defineProperty(e,t,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),r[t]===void 0&&(r[t]=Array.isArray(i)?[]:{}),typeof r[t]==`object`&&(r[t]=po(r[t],i,{depth:n-1}))}else typeof r[t]!=`object`&&(Object.hasOwn(e,t)?r[t]=i:Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}))})}return e},`assignWithDepth`),mo=po,ho=`#ffffff`,go=`#f2f2f2`,_o=N((e,t)=>t?vr(e,{s:-40,l:10}):vr(e,{s:-40,l:-10}),`mkBorder`),vo=N(e=>typeof e==`object`&&!!e&&!Array.isArray(e),`isPlainObject`),yo=N((e,t)=>vo(e)&&vo(t)?{...e,...t}:t,`applyOverride`),bo=class{static{N(this,`Theme`)}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||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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?_r(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||gr(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||_r(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||_r(this.mainBkg,10)):(this.rowOdd=this.rowOdd||gr(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||gr(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||vr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||vr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||vr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||vr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||vr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||vr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||vr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||vr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||vr(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])}),Object.hasOwn(e,`nodeBorder`)&&!Object.hasOwn(e,`useGradient`)&&(this.useGradient=!1)}},xo=N(e=>{let t=new bo;return t.calculate(e),t},`getThemeVariables`),So=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=gr(this.primaryColor,16),this.tertiaryColor=vr(this.primaryColor,{h:-160}),this.primaryBorderColor=yr(this.background),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.tertiaryColor),this.lineColor=yr(this.background),this.textColor=yr(this.background),this.mainBkg=`#1f2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=gr(yr(`#323D47`),10),this.lineColor=`calculated`,this.border1=`#ccc`,this.border2=pr(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=_r(`#EAE8D9`,30),this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`#EAE8D9`,this.excludeBkgColor=_r(this.sectionBkgColor,10),this.taskBorderColor=pr(255,255,255,70),this.taskBkgColor=`calculated`,this.taskTextColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=pr(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||gr(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||_r(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=gr(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=gr(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=gr(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=yr(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=vr(this.primaryColor,{h:64}),this.fillType3=vr(this.secondaryColor,{h:64}),this.fillType4=vr(this.primaryColor,{h:-64}),this.fillType5=vr(this.secondaryColor,{h:-64}),this.fillType6=vr(this.primaryColor,{h:128}),this.fillType7=vr(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||vr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||vr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||vr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||vr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||vr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||vr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||vr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||vr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||vr(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},jpe=N(e=>{let t=new So;return t.calculate(e),t},`getThemeVariables`),Co=class{static{N(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#ECECFF`,this.secondaryColor=vr(this.primaryColor,{h:120}),this.secondaryColor=`#ffffde`,this.tertiaryColor=vr(this.primaryColor,{h:-160}),this.primaryBorderColor=_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.tertiaryColor),this.lineColor=yr(this.background),this.textColor=yr(this.background),this.background=`white`,this.mainBkg=`#ECECFF`,this.secondBkg=`#ffffde`,this.lineColor=`#333333`,this.border1=`#9370DB`,this.primaryBorderColor=_o(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=pr(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||vr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||vr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||vr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||vr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||vr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||vr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||vr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||vr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||vr(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||_r(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||_r(this.tertiaryColor,40);for(let e=0;e{this[e]===`calculated`&&(this[e]=void 0)}),typeof e!=`object`){this.updateColors();return}let t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},wo=N(e=>{let t=new Co;return t.calculate(e),t},`getThemeVariables`),Mpe=class{static{N(this,`Theme`)}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=gr(`#cde498`,10),this.primaryBorderColor=_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.primaryColor),this.lineColor=yr(this.background),this.textColor=yr(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=_r(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||vr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||vr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||vr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||vr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||vr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||vr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||vr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||vr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||vr(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||_r(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||_r(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},To=N(e=>{let t=new Mpe;return t.calculate(e),t},`getThemeVariables`),Npe=class{static{N(this,`Theme`)}constructor(){this.primaryColor=`#eee`,this.contrast=`#707070`,this.secondaryColor=gr(this.contrast,55),this.background=`#ffffff`,this.tertiaryColor=vr(this.primaryColor,{h:-160}),this.primaryBorderColor=_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.tertiaryColor),this.lineColor=yr(this.background),this.textColor=yr(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||gr(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=gr(this.contrast,55),this.border2=this.contrast,this.actorBorder=gr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},Eo=N(e=>{let t=new Npe;return t.calculate(e),t},`getThemeVariables`),Do=class{static{N(this,`Theme`)}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=_o(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||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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?_r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(hr(this.background)?gr(this.background,4):_r(this.background,4));let e=`#ECECFE`,t=`#E9E9F1`,n=vr(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,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||gr(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||t,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||vr(e,{h:30}),this.cScale4=this.cScale4||vr(e,{h:60}),this.cScale5=this.cScale5||vr(e,{h:90}),this.cScale6=this.cScale6||vr(e,{h:120}),this.cScale7=this.cScale7||vr(e,{h:150}),this.cScale8=this.cScale8||vr(e,{h:210,l:150}),this.cScale9=this.cScale9||vr(e,{h:270}),this.cScale10=this.cScale10||vr(e,{h:300}),this.cScale11=this.cScale11||vr(e,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},Ppe=N(e=>{let t=new Do;return t.calculate(e),t},`getThemeVariables`),Fpe=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=gr(this.primaryColor,16),this.tertiaryColor=vr(this.primaryColor,{h:-160}),this.primaryBorderColor=yr(this.background),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.tertiaryColor),this.mainBkg=`#2a2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=gr(yr(`#323D47`),10),this.border1=`#ccc`,this.border2=pr(255,255,255,.25),this.arrowheadColor=yr(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||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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.secondBkg=this.secondBkg===`calculated`?gr(this.mainBkg,16):this.secondBkg,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?_r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||gr(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,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||vr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||vr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||vr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||vr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||vr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||vr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||vr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||vr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||vr(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},Ipe=N(e=>{let t=new Fpe;return t.calculate(e),t},`getThemeVariables`),Lpe=class{static{N(this,`Theme`)}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=_o(`#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||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#FEF9C3`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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?_r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(hr(this.background)?gr(this.background,4):_r(this.background,4));let e=`#ECECFE`,t=`#E9E9F1`,n=vr(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,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||gr(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 e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},Oo=N(e=>{let t=new Lpe;return t.calculate(e),t},`getThemeVariables`),ko=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=gr(this.primaryColor,16),this.tertiaryColor=vr(this.primaryColor,{h:-160}),this.primaryBorderColor=yr(this.background),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=gr(yr(`#323D47`),10),this.border1=`#ccc`,this.border2=pr(255,255,255,.25),this.arrowheadColor=yr(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||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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.secondBkg=this.secondBkg===`calculated`?gr(this.mainBkg,16):this.secondBkg,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?_r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||gr(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,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||vr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||vr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||vr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||vr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||vr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||vr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||vr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||vr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||vr(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},Rpe=N(e=>{let t=new ko;return t.calculate(e),t},`getThemeVariables`),zpe=class{static{N(this,`Theme`)}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=_o(`#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.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.usecaseActorBorder=`#A78BFA`,this.usecaseActorBkg=`#F5F3FF`,this.usecaseBorder=`#2DD4BF`,this.usecaseBkg=`#F0FDFA`,this.usecaseBoundaryBorder=`#BDBCCC`,this.usecaseBoundaryBkg=`#FAFAFC`,this.usecaseIncludeLine=`#38BDF8`,this.usecaseExtendLine=`#FB923C`,this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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?_r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(hr(this.background)?gr(this.background,4):_r(this.background,4));let e=`#ECECFE`,t=vr(e,{h:180,l:5});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||gr(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.stateEdgeLabelBackground=this.stateEdgeLabelBackground||`#FFFFFF`,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#F9F9FB`,this.compositeTitleBackground=this.compositeTitleBackground||`#F9F9FB`,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`,this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||`white`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},Ao=N(e=>{let t=new zpe;return t.calculate(e),t},`getThemeVariables`),Bpe=class{static{N(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=gr(this.primaryColor,16),this.tertiaryColor=vr(this.primaryColor,{h:-160}),this.primaryBorderColor=yr(this.background),this.secondaryBorderColor=_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_o(this.tertiaryColor,this.darkMode),this.primaryTextColor=yr(this.primaryColor),this.secondaryTextColor=yr(this.secondaryColor),this.tertiaryTextColor=yr(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=gr(yr(`#323D47`),10),this.border1=`#ccc`,this.border2=pr(255,255,255,.25),this.arrowheadColor=yr(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.usecaseActorBorder=`#A78BFA`,this.usecaseBorder=`#2DD4BF`,this.usecaseBoundaryBorder=`#BDBCCC`,this.usecaseIncludeLine=`#38BDF8`,this.usecaseExtendLine=`#FB923C`,this.filterColor=`#FFFFFF`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||vr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||vr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_o(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_o(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_o(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_o(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||yr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||yr(this.tertiaryColor),this.lineColor=this.lineColor||yr(this.background),this.arrowheadColor=this.arrowheadColor||yr(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.secondBkg=this.secondBkg===`calculated`?gr(this.mainBkg,16):this.secondBkg,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?_r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||_r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||yr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor=`#FFFFFF`,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||gr(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,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.stateEdgeLabelBackground=this.stateEdgeLabelBackground||`#16141F`,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||`#16141F`,this.altBackground=this.altBackground||`#16141F`,this.compositeTitleBackground=this.compositeTitleBackground||`#16141F`,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`,this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let e=0;e{this[`fillType`+t]=this[`fillType`+t]||e});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=yo(this[t],e[t])})}},jo={base:{getThemeVariables:xo},dark:{getThemeVariables:jpe},default:{getThemeVariables:wo},forest:{getThemeVariables:To},neutral:{getThemeVariables:Eo},neo:{getThemeVariables:Ppe},"neo-dark":{getThemeVariables:Ipe},redux:{getThemeVariables:Oo},"redux-dark":{getThemeVariables:Rpe},"redux-color":{getThemeVariables:Ao},"redux-dark-color":{getThemeVariables:N(e=>{let t=new Bpe;return t.calculate(e),t},`getThemeVariables`)}},Mo={flowchart:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:`basis`,padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,layout:`swimlane`,lineHops:`arc`,ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,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,theme:`redux-color`,look:`neo`,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,layout:`elk`,wrappingWidth:120,minNodeWidth:120,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},er:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,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,donutHole:0,legendPosition:`right`,highlightSlice:``},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,showLegend:!0,legendFontSize:14,legendPadding:10,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,labelRotation:0},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,labelRotation:0},chartOrientation:`vertical`,plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,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,colorBy:`branch`,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,bitOrder:`ascending`,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:``,filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},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},usecase:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:`"Open Sans", sans-serif`,actorFontWeight:`normal`,usecaseFontSize:12,usecaseFontFamily:`"Open Sans", sans-serif`,usecaseFontWeight:`normal`,nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:`role`},venn:{useMaxWidth:!0,theme:`redux-color`,look:`neo`,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:`default`,look:`classic`,handDrawnSeed:0,layout:`elk`,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},No={...Mo,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:`default`,nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:`NODES_AND_EDGES`,keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:jo.default.getThemeVariables(),sequence:{...Mo.sequence,messageFont:N(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`),noteFont:N(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},`noteFont`),actorFont:N(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},`actorFont`)},class:{theme:Mo.class?.theme,look:Mo.class?.look,layout:Mo.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Mo.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Mo.c4,useWidth:void 0,personFont:N(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},`personFont`),flowchart:{...Mo.flowchart,inheritDir:!1},external_personFont:N(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},`external_personFont`),systemFont:N(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},`systemFont`),external_systemFont:N(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},`external_systemFont`),system_dbFont:N(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},`system_dbFont`),external_system_dbFont:N(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},`external_system_dbFont`),system_queueFont:N(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},`system_queueFont`),external_system_queueFont:N(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},`external_system_queueFont`),containerFont:N(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},`containerFont`),external_containerFont:N(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},`external_containerFont`),container_dbFont:N(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},`container_dbFont`),external_container_dbFont:N(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},`external_container_dbFont`),container_queueFont:N(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},`container_queueFont`),external_container_queueFont:N(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},`external_container_queueFont`),componentFont:N(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},`componentFont`),external_componentFont:N(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},`external_componentFont`),component_dbFont:N(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},`component_dbFont`),external_component_dbFont:N(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},`external_component_dbFont`),component_queueFont:N(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},`component_queueFont`),external_component_queueFont:N(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},`external_component_queueFont`),boundaryFont:N(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},`boundaryFont`),messageFont:N(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`)},pie:{...Mo.pie,useWidth:984},xyChart:{...Mo.xyChart,useWidth:void 0},requirement:{...Mo.requirement,useWidth:void 0},packet:{...Mo.packet},eventmodeling:{...Mo.eventmodeling},treeView:{...Mo.treeView,useWidth:void 0},radar:{...Mo.radar},usecase:{...Mo.usecase},railroad:{...Mo.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...Mo.ishikawa},sankey:{...Mo.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:{...Mo.venn},cynefin:{...Mo.cynefin}},Vpe=N((e,t=``)=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]==`object`&&e[r]!==null?[...n,t+r,...Vpe(e[r],``)]:[...n,t+r],[]),`keyify`),Po=new Set(Vpe(No,``)),Fo=No,Hpe={"flowchart-v2":`flowchart`,"flowchart-elk":`flowchart`,classDiagram:`class`,stateDiagram:`state`,xychart:`xyChart`,railroadAbnf:`railroad`,railroadEbnf:`railroad`,railroadPeg:`railroad`},Upe=N(e=>Hpe[e]??e,`getDiagramConfigKey`),Wpe={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Gpe=N((e,t)=>{for(let n of Object.keys(e)){let r=e[n];(n.startsWith(`__`)||n.includes(`proto`)||n.includes(`constr`)||typeof r!=`string`||!t.test(r))&&(P.debug(`sanitize deleting dictionary entry:`,n,r),delete e[n])}},`sanitizeDictionaryConfig`),Io=N(e=>{if(P.debug(`sanitizeDirective called with`,e),typeof e==`object`&&e){if(Array.isArray(e)){e.forEach(e=>Io(e));return}for(let t of Object.keys(e)){if(P.debug(`Checking key`,t),t.startsWith(`__`)||t.includes(`proto`)||t.includes(`constr`)||!Po.has(t)||e[t]==null){P.debug(`sanitize deleting key: `,t),delete e[t];continue}if(typeof e[t]==`object`){let n=Wpe[t];n?Gpe(e[t],n):(P.debug(`sanitizing object`,t),Io(e[t]));continue}for(let n of[`themeCSS`,`fontFamily`,`altFontFamily`])t.includes(n)&&(P.debug(`sanitizing css option`,t),e[t]=Kpe(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]=``)}P.debug(`After sanitization`,e)}},`sanitizeDirective`),Kpe=N(e=>{let t=0,n=0;for(let r of e){if(te===`theme`?t===`null`||Object.hasOwn(jo,t):e!==`look`||Jpe.has(t),`isUsableAppearance`),Xpe=N((e,t,n)=>{if(e)return[e[t]?.[n],e[n]].find(e=>e!==void 0&&Ype(n,e))},`readAppearance`),Ro=N(e=>!(e===!1||[`false`,`null`,`0`].includes(String(e).trim().toLowerCase())),`evaluate`),zo=mo({},Lo),Vo={},Ho=[],Uo=mo({},Lo),Zpe=N((e,t)=>{if(!Wo)return;let n=[t,...[...Ho].reverse(),Vo,Lo],r=e[Wo];for(let t of qpe)for(let i of n){let n=Xpe(i,Wo,t);if(n!==void 0){e[t]=n,r?.[t]!==void 0&&(r[t]=n);break}}},`resolveAppearance`),Go=N((e,t)=>{let n=mo({},e),r={};for(let e of t)eme(e),r=mo(r,e);if(n=mo(n,r),Zpe(n,r),(r.theme||n.theme!==e.theme)&&n.theme&&Object.hasOwn(jo,n.theme)){let e=mo(mo({},Bo).themeVariables||{},r.themeVariables);n.themeVariables=jo[n.theme].getThemeVariables(e)}return Uo=n,$o(Uo),Uo},`updateCurrentConfig`),Ko=N(e=>{Wo=e===void 0?void 0:Upe(e),Go(zo,Ho)},`setDiagramConfigScope`),Qpe=N(e=>(zo=mo({},Lo),zo=mo(zo,e),Vo=mo({},e),e.theme&&Object.hasOwn(jo,e.theme)&&(zo.themeVariables=jo[e.theme].getThemeVariables(e.themeVariables)),Go(zo,Ho),zo),`setSiteConfig`),$pe=N(e=>{Bo=mo({},e)},`saveConfigFromInitialize`),qo=N(e=>(zo=mo(zo,e),Vo=mo(Vo,e),Go(zo,Ho),zo),`updateSiteConfig`),Jo=N(()=>mo({},zo),`getSiteConfig`),Yo=N(e=>(Go(Uo,[e]),Xo()),`setConfig`),Xo=N(()=>mo({},Uo),`getConfig`),eme=N(e=>{e&&([`secure`,...zo.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(P.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith(`__`)&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]==`string`&&(e[t].includes(`<`)||e[t].includes(`>`)||e[t].includes(`url(data:`))&&delete e[t],typeof e[t]==`object`&&eme(e[t])}))},`sanitize`),tme=N(e=>{Io(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Ho.push(e),Go(zo,Ho)},`addDirective`),Zo=N((e=zo)=>{Ho=[],Wo=void 0,Go(e,Ho)},`reset`),nme={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.`},Qo={},rme=N(e=>{Qo[e]||(P.warn(nme[e]),Qo[e]=!0)},`issueWarning`),$o=N(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&rme(`LAZY_LOAD_DEPRECATED`)},`checkConfig`),ime=N(()=>{let e={};Bo&&(e=mo(e,Bo));for(let t of Ho)e=mo(e,t);return e},`getUserDefinedConfig`),es=N(e=>(e.flowchart?.htmlLabels!=null&&rme(`FLOWCHART_HTML_LABELS_DEPRECATED`),Ro(e.htmlLabels??e.flowchart?.htmlLabels??!0)),`getEffectiveHtmlLabels`),ts=/<\/?br\s*\/?>/gi,ame=new RegExp(ts.source,`i`),ome=N(e=>e?mme(e).replace(/\\n/g,`#br#`).split(`#br#`):[``],`getRows`),sme=(()=>{let e=!1;return()=>{e||=(io(),!0)}})(),N(io,`setupDompurifyHooks`),cme=N(e=>(sme(),Ur.sanitize(e)),`removeScript`),lme=N((e,t)=>{if(es(t)){let n=t.securityLevel;n===`antiscript`||n===`strict`||n===`sandbox`?e=cme(e):n!==`loose`&&(e=mme(e),e=e.replace(//g,`>`),e=e.replace(/=/g,`=`),e=pme(e))}return e},`sanitizeMore`),ns=N((e,t)=>e&&(e=t.dompurifyConfig?Ur.sanitize(lme(e,t),t.dompurifyConfig).toString():Ur.sanitize(lme(e,t),{FORBID_TAGS:[`style`]}).toString(),e),`sanitizeText`),ume=N((e,t)=>typeof e==`string`?ns(e,t):e.flat().map(e=>ns(e,t)),`sanitizeTextOrArray`),dme=N(e=>ame.test(e),`hasBreaks`),fme=N(e=>e.split(ts),`splitBreaks`),pme=N(e=>e.replace(/#br#/g,`
    `),`placeholderToBreak`),mme=N(e=>e.replace(ts,`#br#`),`breakToPlaceholder`),hme=N(e=>{let t=``;return e&&(t=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},`getUrl`),gme=N(function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},`getMax`),_me=N(function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)},`getMin`),rs=N(function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),`countOccurrence`),yme=N((e,t)=>{let n=vme(e,`~`),r=vme(t,`~`);return n===1&&r===1},`shouldCombineSets`),bme=N(e=>{let t=vme(e,`~`),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith(`~`)&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf(`~`),a=r.lastIndexOf(`~`);for(;i!==-1&&a!==-1&&i!==a;)r[i]=`<`,r[a]=`>`,i=r.indexOf(`~`),a=r.lastIndexOf(`~`);return n&&r.unshift(`~`),r.join(``)},`processSet`),is=N(()=>window.MathMLElement!==void 0,`isMathMLSupported`),xme=/\$\$(.*?)\$\$/g,as=N(e=>(e.match(xme)?.length??0)>0,`hasKatex`),os=N(async(e,t)=>{let n=document.createElement(`div`);n.innerHTML=await ss(e,t),n.id=`katex-temp`,n.style.visibility=`hidden`,n.style.position=`absolute`,n.style.top=`0`,document.querySelector(`body`)?.insertAdjacentElement(`beforeend`,n);let r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},`calculateMathMLDimensions`),Sme=N(async(e,t)=>{if(!as(e))return e;if(!(is()||t.legacyMathML||t.forceLegacyMathML))return e.replace(xme,`MathML is unsupported in this environment.`);{let{default:n}=await Promise.resolve().then(()=>(wpe(),Gr)),r=t.forceLegacyMathML||!is()&&t.legacyMathML?`htmlAndMathml`:`mathml`;return e.split(ts).map(e=>as(e)?`
    ${e}
    `:`
    ${e}
    `).join(``).replace(xme,(e,t)=>n.renderToString(t,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g,` `).replace(//g,``))}},`renderKatexUnsanitized`),ss=N(async(e,t)=>ns(await Sme(e,t),t),`renderKatexSanitized`),cs={getRows:ome,sanitizeText:ns,sanitizeTextOrArray:ume,hasBreaks:dme,splitBreaks:fme,lineBreakRegex:ts,removeScript:cme,getUrl:hme,evaluate:Ro,getMax:gme,getMin:_me},Cme=N(function(e,t){for(let n of t)e.attr(n[0],n[1])},`d3Attrs`),wme=N(function(e,t,n){let r=new Map;return n?(r.set(`width`,`100%`),r.set(`style`,`max-width: ${t}px;`)):(r.set(`height`,e),r.set(`width`,t)),r},`calculateSvgSizeAttrs`),ls=N(function(e,t,n,r){Cme(e,wme(t,n,r))},`configureSvgSize`),us=N(function(e,t,n,r){let i=t.node().getBBox(),a=i.width,o=i.height;P.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;P.info(`Graph bounds: ${s}x${l}`,e),s=a+n*2,l=o+n*2,P.info(`Calculated bounds: ${s}x${l}`),ls(t,l,s,r);let u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr(`viewBox`,u)},`setupGraphViewbox`),ds={},N(ao,`cssStyleSheetToString`),Tme=N((e,t,n,r)=>{let i=``;return e in ds&&ds[e]?i=ds[e]({...n,svgId:r}):P.warn(`No theme found for ${e}`),`& { font-family: ${n.fontFamily}; font-size: ${n.fontSize}; fill: ${n.textColor} @@ -417,17 +419,17 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, } ${t} -`},`getStyles`),pme=N((e,t)=>{t!==void 0&&(ys[e]=t)},`addStylesForDiagram`),mme=fme,hme={},er(hme,{clear:()=>Ss,getAccDescription:()=>Es,getAccTitle:()=>ws,getDiagramTitle:()=>Os,setAccDescription:()=>Ts,setAccTitle:()=>Cs,setDiagramTitle:()=>Ds}),gme=``,bs=``,xs=``,_me=N(e=>ls(e,ns()),`sanitizeText`),Ss=N(()=>{gme=``,xs=``,bs=``},`clear`),Cs=N(e=>{gme=_me(e).replace(/^\s+/g,``)},`setAccTitle`),ws=N(()=>gme,`getAccTitle`),Ts=N(e=>{xs=_me(e).replace(/\n\s+/g,` -`)},`setAccDescription`),Es=N(()=>xs,`getAccDescription`),Ds=N(e=>{bs=_me(e)},`setDiagramTitle`),Os=N(()=>bs,`getDiagramTitle`),ks=P,vme=rse,As=ns,js=Hpe,Ms=Jo,Ns=N(e=>ls(e,As()),`sanitizeText`),yme=vs,Ps=N(()=>hme,`getCommonDb`),Fs={},Is=N((e,t,n)=>{Fs[e]&&ks.warn(`Diagram with id ${e} already registered. Overwriting.`),Fs[e]=t,n&&wo(e,n),pme(e,t.styles),t.injectUtils?.(ks,vme,As,Ns,yme,Ps(),()=>{})},`registerDiagram`),bme=N(e=>{if(e in Fs)return Fs[e];throw new xme(e)},`getDiagram`),xme=class extends Error{static{N(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}}}));function Rs(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var zs=o((()=>{}));function Bs(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var Sme=o((()=>{}));function Cme(e){let t,n,r;e.length===2?(t=e===Rs||e===Bs?e:wme,n=e,r=e):(t=Rs,n=(t,n)=>Rs(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function wme(){return 0}var Tme=o((()=>{zs(),Sme()}));function Eme(e){return e===null?NaN:+e}var Dme=o((()=>{})),Ome,kme,Ame=o((()=>{zs(),Tme(),Dme(),Ome=Cme(Rs),kme=Ome.right,Ome.left,Cme(Eme).center}));function jme({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Mme({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Nme({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Vs(e){return typeof e==`object`&&e?e.valueOf():e}var z,Hs=o((()=>{z=class extends Map{constructor(e,t=Vs){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(jme(this,e))}has(e){return super.has(jme(this,e))}set(e,t){return super.set(Mme(this,e),t)}delete(e){return super.delete(Nme(this,e))}}}));function Pme(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Us?10:a>=Ws?5:a>=Rme?2:1,s,l,u;return i<0?(u=10**-i/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=10**i*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e{Us=Math.sqrt(50),Ws=Math.sqrt(10),Rme=Math.sqrt(2)}));function Gs(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var Ks=o((()=>{}));function qs(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var Bme=o((()=>{}));function Js(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r{})),Xs=o((()=>{Ame(),zs(),Tme(),Sme(),Hs(),zme(),Ks(),Bme(),Dme(),Ys()}));function Zs(e){return e}var Qs=o((()=>{}));function Vme(e){return`translate(`+e+`,0)`}function $s(e){return`translate(0,`+e+`)`}function ec(e){return t=>+e(t)}function Hme(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function tc(){return!this.__axis}function nc(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===Wme||e===ic?-1:1,d=e===ic||e===Gme?`x`:`y`,f=e===Wme||e===Kme?Vme:$s;function p(p){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),h=i??(t.tickFormat?t.tickFormat.apply(t,n):Zs),g=Math.max(a,0)+s,_=t.range(),v=+_[0]+l,y=+_[_.length-1]+l,b=(t.bandwidth?Hme:ec)(t.copy(),l),x=p.selection?p.selection():p,S=x.selectAll(`.domain`).data([null]),C=x.selectAll(`.tick`).data(m,t).order(),w=C.exit(),T=C.enter().append(`g`).attr(`class`,`tick`),E=C.select(`line`),D=C.select(`text`);S=S.merge(S.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),C=C.merge(T),E=E.merge(T.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*a)),D=D.merge(T.append(`text`).attr(`fill`,`currentColor`).attr(d,u*g).attr(`dy`,e===Wme?`0em`:e===Kme?`0.71em`:`0.32em`)),p!==x&&(S=S.transition(p),C=C.transition(p),E=E.transition(p),D=D.transition(p),w=w.transition(p).attr(`opacity`,qme).attr(`transform`,function(e){return isFinite(e=b(e))?f(e+l):this.getAttribute(`transform`)}),T.attr(`opacity`,qme).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+l)})),w.remove(),S.attr(`d`,e===ic||e===Gme?o?`M`+u*o+`,`+v+`H`+l+`V`+y+`H`+u*o:`M`+l+`,`+v+`V`+y:o?`M`+v+`,`+u*o+`V`+l+`H`+y+`V`+u*o:`M`+v+`,`+l+`H`+y),C.attr(`opacity`,1).attr(`transform`,function(e){return f(b(e)+l)}),E.attr(d+`2`,u*a),D.attr(d,u*g).text(h),x.filter(tc).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Gme?`start`:e===ic?`end`:`middle`),x.each(function(){this.__axis=b})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(i=e,p):i},p.tickSize=function(e){return arguments.length?(a=o=+e,p):a},p.tickSizeInner=function(e){return arguments.length?(a=+e,p):a},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function rc(e){return nc(Wme,e)}function Ume(e){return nc(Kme,e)}var Wme,Gme,Kme,ic,qme,Jme=o((()=>{Qs(),Wme=1,Gme=2,Kme=3,ic=4,qme=1e-6})),Yme=o((()=>{Jme()}));function Xme(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function $me(e,t){for(var n=0,r=e.length,i;n{ac={value:()=>{}},Zme.prototype=Xme.prototype={constructor:Zme,on:function(e,t){var n=this._,r=Qme(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r{oc()})),cc,the,nhe=o((()=>{cc=`http://www.w3.org/1999/xhtml`,the={svg:`http://www.w3.org/2000/svg`,xhtml:cc,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function lc(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),the.hasOwnProperty(t)?{space:the[t],local:e}:e}var uc=o((()=>{nhe()}));function rhe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function ihe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ahe(e){var t=lc(e);return(t.local?ihe:rhe)(t)}var dc=o((()=>{uc(),nhe()}));function B(){}function fc(e){return e==null?B:function(){return this.querySelector(e)}}var ohe=o((()=>{}));function she(e){typeof e!=`function`&&(e=fc(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{Zc(),ohe()}));function lhe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var uhe=o((()=>{}));function dhe(){return[]}function fhe(e){return e==null?dhe:function(){return this.querySelectorAll(e)}}var phe=o((()=>{}));function mhe(e){return function(){return lhe(e.apply(this,arguments))}}function hhe(e){e=typeof e==`function`?mhe(e):fhe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a{Zc(),uhe(),phe()}));function _he(e){return function(){return this.matches(e)}}function vhe(e){return function(t){return t.matches(e)}}var pc=o((()=>{}));function yhe(e){return function(){return She.call(this.children,e)}}function bhe(){return this.firstElementChild}function xhe(e){return this.select(e==null?bhe:yhe(typeof e==`function`?e:vhe(e)))}var She,Che=o((()=>{pc(),She=Array.prototype.find}));function whe(){return Array.from(this.children)}function The(e){return function(){return Dhe.call(this.children,e)}}function Ehe(e){return this.selectAll(e==null?whe:The(typeof e==`function`?e:vhe(e)))}var Dhe,Ohe=o((()=>{pc(),Dhe=Array.prototype.filter}));function khe(e){typeof e!=`function`&&(e=_he(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{Zc(),pc()}));function jhe(e){return Array(e.length)}var Mhe=o((()=>{}));function mc(){return new Yc(this._enter||this._groups.map(jhe),this._parents)}function hc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var gc=o((()=>{Mhe(),Zc(),hc.prototype={constructor:hc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}}));function _c(e){return function(){return e}}var vc=o((()=>{}));function Nhe(e,t,n,r,i,a){for(var o=0,s,l=t.length,u=a.length;o=y&&(y=v+1);!(x=_[y])&&++y{Zc(),gc(),vc()}));function wc(){return new Yc(this._exit||this._groups.map(jhe),this._parents)}var Tc=o((()=>{Mhe(),Zc()}));function Phe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var Ec=o((()=>{}));function Dc(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l{Zc()}));function kc(){for(var e=this._groups,t=-1,n=e.length;++t=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var Fhe=o((()=>{}));function Ihe(e){e||=Lhe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}var Rhe=o((()=>{Zc()}));function zhe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var Bhe=o((()=>{}));function Ac(){return Array.from(this)}var Vhe=o((()=>{}));function Hhe(){for(var e=this._groups,t=0,n=e.length;t{}));function jc(){let e=0;for(let t of this)++e;return e}var Whe=o((()=>{}));function Ghe(){return!this.node()}var Khe=o((()=>{}));function qhe(e){for(var t=this._groups,n=0,r=t.length;n{}));function Yhe(e){return function(){this.removeAttribute(e)}}function Mc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Xhe(e,t){return function(){this.setAttribute(e,t)}}function Zhe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Nc(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Qhe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function $he(e,t){var n=lc(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Mc:Yhe:typeof t==`function`?n.local?Qhe:Nc:n.local?Zhe:Xhe)(n,t))}var Pc=o((()=>{uc()}));function ege(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var tge=o((()=>{}));function nge(e){return function(){this.style.removeProperty(e)}}function rge(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ige(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function age(e,t,n){return arguments.length>1?this.each((t==null?nge:typeof t==`function`?ige:rge)(e,t,n??``)):Fc(this.node(),e)}function Fc(e,t){return e.style.getPropertyValue(t)||ege(e).getComputedStyle(e,null).getPropertyValue(t)}var Ic=o((()=>{tge()}));function oge(e){return function(){delete this[e]}}function Lc(e,t){return function(){this[e]=t}}function Rc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function sge(e,t){return arguments.length>1?this.each((t==null?oge:typeof t==`function`?Rc:Lc)(e,t)):this.node()[e]}var cge=o((()=>{}));function lge(e){return e.trim().split(/^|\s+/)}function uge(e){return e.classList||new dge(e)}function dge(e){this._node=e,this._names=lge(e.getAttribute(`class`)||``)}function fge(e,t){for(var n=uge(e),r=-1,i=t.length;++r{dge.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function vge(){this.textContent=``}function yge(e){return function(){this.textContent=e}}function bge(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function xge(e){return arguments.length?this.each(e==null?vge:(typeof e==`function`?bge:yge)(e)):this.node().textContent}var Bc=o((()=>{}));function Vc(){this.innerHTML=``}function Sge(e){return function(){this.innerHTML=e}}function Cge(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function wge(e){return arguments.length?this.each(e==null?Vc:(typeof e==`function`?Cge:Sge)(e)):this.node().innerHTML}var Hc=o((()=>{}));function Tge(){this.nextSibling&&this.parentNode.appendChild(this)}function Ege(){return this.each(Tge)}var Dge=o((()=>{}));function Oge(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kge(){return this.each(Oge)}var Age=o((()=>{}));function jge(e){var t=typeof e==`function`?e:ahe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var Mge=o((()=>{dc()}));function Nge(){return null}function Pge(e,t){var n=typeof e==`function`?e:ahe(e),r=t==null?Nge:typeof t==`function`?t:fc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var Fge=o((()=>{dc(),ohe()}));function Ige(){var e=this.parentNode;e&&e.removeChild(this)}function Lge(){return this.each(Ige)}var Uc=o((()=>{}));function Rge(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wc(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Gc(e){return this.select(e?Wc:Rge)}var zge=o((()=>{}));function Bge(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var Kc=o((()=>{}));function qc(e){return function(t){e.call(this,t,this.__data__)}}function Vge(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Hge(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n{}));function Kge(e,t,n){var r=ege(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function qge(e,t){return function(){return Kge(this,e,t)}}function Jc(e,t){return function(){return Kge(this,e,t.apply(this,arguments))}}function Jge(e,t){return this.each((typeof t==`function`?Jc:qge)(e,t))}var Yge=o((()=>{tge()}));function*Xge(){for(var e=this._groups,t=0,n=e.length;t{}));function Yc(e,t){this._groups=e,this._parents=t}function Xc(){return new Yc([[document.documentElement]],$ge)}function Qge(){return this}var $ge,Zc=o((()=>{che(),ghe(),Che(),Ohe(),Ahe(),Cc(),gc(),Tc(),Ec(),Oc(),Fhe(),Rhe(),Bhe(),Vhe(),Uhe(),Whe(),Khe(),Jhe(),Pc(),Ic(),cge(),_ge(),Bc(),Hc(),Dge(),Age(),Mge(),Fge(),Uc(),zge(),Kc(),Gge(),Yge(),Zge(),$ge=[null],Yc.prototype=Xc.prototype={constructor:Yc,select:she,selectAll:hhe,selectChild:xhe,selectChildren:Ehe,filter:khe,data:xc,enter:mc,exit:wc,join:Phe,merge:Dc,selection:Qge,order:kc,sort:Ihe,call:zhe,nodes:Ac,node:Hhe,size:jc,empty:Ghe,each:qhe,attr:$he,style:age,property:sge,classed:gge,text:xge,html:wge,raise:Ege,lower:kge,append:jge,insert:Pge,remove:Lge,clone:Gc,datum:Bge,on:Wge,dispatch:Jge,[Symbol.iterator]:Xge}}));function Qc(e){return typeof e==`string`?new Yc([[document.querySelector(e)]],[document.documentElement]):new Yc([[e]],$ge)}var e_e=o((()=>{Zc()})),$c=o((()=>{dc(),e_e(),pc(),uc(),nhe(),uhe(),Zc(),ohe(),phe(),Ic(),tge()})),t_e=o((()=>{sc(),$c()}));function n_e(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function r_e(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var i_e=o((()=>{}));function el(){}function a_e(){return this.rgb().formatHex()}function o_e(){return this.rgb().formatHex8()}function s_e(){return cl(this).formatHsl()}function c_e(){return this.rgb().formatRgb()}function tl(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=h_e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nl(t):n===3?new rl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?l_e(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?l_e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=g_e.exec(e))?new rl(t[1],t[2],t[3],1):(t=__e.exec(e))?new rl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=v_e.exec(e))?l_e(t[1],t[2],t[3],t[4]):(t=y_e.exec(e))?l_e(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=b_e.exec(e))?m_e(t[1],t[2]/100,t[3]/100,1):(t=x_e.exec(e))?m_e(t[1],t[2]/100,t[3]/100,t[4]):S_e.hasOwnProperty(e)?nl(S_e[e]):e===`transparent`?new rl(NaN,NaN,NaN,0):null}function nl(e){return new rl(e>>16&255,e>>8&255,e&255,1)}function l_e(e,t,n,r){return r<=0&&(e=t=n=NaN),new rl(e,t,n,r)}function u_e(e){return e instanceof el||(e=tl(e)),e?(e=e.rgb(),new rl(e.r,e.g,e.b,e.opacity)):new rl}function d_e(e,t,n,r){return arguments.length===1?u_e(e):new rl(e,t,n,r??1)}function rl(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function f_e(){return`#${sl(this.r)}${sl(this.g)}${sl(this.b)}`}function il(){return`#${sl(this.r)}${sl(this.g)}${sl(this.b)}${sl((isNaN(this.opacity)?1:this.opacity)*255)}`}function p_e(){let e=al(this.opacity);return`${e===1?`rgb(`:`rgba(`}${ol(this.r)}, ${ol(this.g)}, ${ol(this.b)}${e===1?`)`:`, ${e})`}`}function al(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ol(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sl(e){return e=ol(e),(e<16?`0`:``)+e.toString(16)}function m_e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ul(e,t,n,r)}function cl(e){if(e instanceof ul)return new ul(e.h,e.s,e.l,e.opacity);if(e instanceof el||(e=tl(e)),!e)return new ul;if(e instanceof ul)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&l<1?0:o,new ul(o,s,l,e.opacity)}function ll(e,t,n,r){return arguments.length===1?cl(e):new ul(e,t,n,r??1)}function ul(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function dl(e){return e=(e||0)%360,e<0?e+360:e}function fl(e){return Math.max(0,Math.min(1,e||0))}function pl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var ml,hl,gl,_l,vl,h_e,g_e,__e,v_e,y_e,b_e,x_e,S_e,C_e=o((()=>{i_e(),ml=.7,hl=1/ml,gl=`\\s*([+-]?\\d+)\\s*`,_l=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,vl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,h_e=/^#([0-9a-f]{3,8})$/,g_e=RegExp(`^rgb\\(${gl},${gl},${gl}\\)$`),__e=RegExp(`^rgb\\(${vl},${vl},${vl}\\)$`),v_e=RegExp(`^rgba\\(${gl},${gl},${gl},${_l}\\)$`),y_e=RegExp(`^rgba\\(${vl},${vl},${vl},${_l}\\)$`),b_e=RegExp(`^hsl\\(${_l},${vl},${vl}\\)$`),x_e=RegExp(`^hsla\\(${_l},${vl},${vl},${_l}\\)$`),S_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},n_e(el,tl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a_e,formatHex:a_e,formatHex8:o_e,formatHsl:s_e,formatRgb:c_e,toString:c_e}),n_e(rl,d_e,r_e(el,{brighter(e){return e=e==null?hl:hl**+e,new rl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ml:ml**+e,new rl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rl(ol(this.r),ol(this.g),ol(this.b),al(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:f_e,formatHex:f_e,formatHex8:il,formatRgb:p_e,toString:p_e})),n_e(ul,ll,r_e(el,{brighter(e){return e=e==null?hl:hl**+e,new ul(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ml:ml**+e,new ul(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new rl(pl(e>=240?e-240:e+120,i,r),pl(e,i,r),pl(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ul(dl(this.h),fl(this.s),fl(this.l),al(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(){let e=al(this.opacity);return`${e===1?`hsl(`:`hsla(`}${dl(this.h)}, ${fl(this.s)*100}%, ${fl(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),w_e,T_e,E_e=o((()=>{w_e=Math.PI/180,T_e=180/Math.PI}));function yl(e){if(e instanceof xl)return new xl(e.l,e.a,e.b,e.opacity);if(e instanceof wl)return j_e(e);e instanceof rl||(e=u_e(e));var t=O_e(e.r),n=O_e(e.g),r=O_e(e.b),i=Sl((.2225045*t+.7168786*n+.0606169*r)/El),a,o;return t===n&&n===r?a=o=i:(a=Sl((.4360747*t+.3850649*n+.1430804*r)/M_e),o=Sl((.0139322*t+.0971045*n+.7141733*r)/Dl)),new xl(116*i-16,500*(a-i),200*(i-o),e.opacity)}function bl(e,t,n,r){return arguments.length===1?yl(e):new xl(e,t,n,r??1)}function xl(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Sl(e){return e>jl?e**(1/3):e/Al+Ol}function Cl(e){return e>kl?e*e*e:Al*(e-Ol)}function D_e(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function O_e(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function k_e(e){if(e instanceof wl)return new wl(e.h,e.c,e.l,e.opacity);if(e instanceof xl||(e=yl(e)),e.a===0&&e.b===0)return new wl(NaN,0{i_e(),C_e(),E_e(),Tl=18,M_e=.96422,El=1,Dl=.82521,Ol=4/29,kl=6/29,Al=3*kl*kl,jl=kl*kl*kl,n_e(xl,bl,r_e(el,{brighter(e){return new xl(this.l+Tl*(e??1),this.a,this.b,this.opacity)},darker(e){return new xl(this.l-Tl*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=M_e*Cl(t),e=El*Cl(e),n=Dl*Cl(n),new rl(D_e(3.1338561*t-1.6168667*e-.4906146*n),D_e(-.9787684*t+1.9161415*e+.033454*n),D_e(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),n_e(wl,A_e,r_e(el,{brighter(e){return new wl(this.h,this.c,this.l+Tl*(e??1),this.opacity)},darker(e){return new wl(this.h,this.c,this.l-Tl*(e??1),this.opacity)},rgb(){return j_e(this).rgb()}}))})),Ml=o((()=>{C_e(),N_e(),i_e(),E_e()})),Nl=o((()=>{})),Pl=o((()=>{Nl()})),Fl,P_e=o((()=>{Fl=e=>()=>e}));function F_e(e,t){return function(n){return e+n*t}}function I_e(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function L_e(e,t){var n=t-e;return n?F_e(e,n>180||n<-180?n-360*Math.round(n/360):n):Fl(isNaN(e)?t:e)}function R_e(e){return(e=+e)==1?Il:function(t,n){return n-t?I_e(t,n,e):Fl(isNaN(t)?n:t)}}function Il(e,t){var n=t-e;return n?F_e(e,n):Fl(isNaN(e)?t:e)}var Ll=o((()=>{P_e()})),z_e,B_e=o((()=>{Ml(),Nl(),Pl(),Ll(),z_e=(function e(t){var n=R_e(t);function r(e,t){var r=n((e=d_e(e)).r,(t=d_e(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Il(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function V_e(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i{}));function Rl(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o{Jl()}));function G_e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var zl=o((()=>{}));function Bl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var K_e=o((()=>{}));function Vl(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=ql(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Hl=o((()=>{Jl()}));function Ul(e){return function(){return e}}function Wl(e){return function(t){return e(t)+``}}function q_e(e,t){var n=Gl.lastIndex=Kl.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e+=``,t+=``;(r=Gl.exec(e))&&(i=Kl.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Bl(r,i)})),n=Kl.lastIndex;return n{K_e(),Gl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kl=new RegExp(Gl.source,`g`)}));function ql(e,t){var n=typeof t,r;return t==null||n===`boolean`?Fl(t):(n===`number`?Bl:n===`string`?(r=tl(t))?(t=r,z_e):q_e:t instanceof tl?z_e:t instanceof Date?G_e:H_e(t)?V_e:Array.isArray(t)?Rl:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Vl:Bl)(e,t)}var Jl=o((()=>{Ml(),B_e(),W_e(),zl(),K_e(),Hl(),J_e(),P_e(),U_e()}));function Y_e(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var X_e=o((()=>{}));function Z_e(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r{Q_e=180/Math.PI,$_e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function tve(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?$_e:Z_e(t.a,t.b,t.c,t.d,t.e,t.f)}function Yl(e){return e==null||(Xl||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Xl.setAttribute(`transform`,e),!(e=Xl.transform.baseVal.consolidate()))?$_e:(e=e.matrix,Z_e(e.a,e.b,e.c,e.d,e.e,e.f))}var Xl,nve=o((()=>{eve()}));function rve(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push(`translate(`,null,t,null,n);s.push({i:l-4,x:Bl(e,i)},{i:l-2,x:Bl(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Bl(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Bl(e,t)})}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Bl(e,n)},{i:s-2,x:Bl(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t{K_e(),nve(),ive=rve(tve,`px, `,`px)`,`deg)`),Zl=rve(Yl,`, `,`)`,`)`)}));function ove(e){return function(t,n){var r=e((t=A_e(t)).h,(n=A_e(n)).h),i=Il(t.c,n.c),a=Il(t.l,n.l),o=Il(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var sve,cve=o((()=>{Ml(),Ll(),sve=ove(L_e)})),Ql=o((()=>{Jl(),W_e(),Nl(),Pl(),zl(),Ll(),K_e(),U_e(),Hl(),X_e(),J_e(),ave(),B_e(),Ml(),cve()}));function lve(){return cu||=(du(uve),uu.now()+lu)}function uve(){cu=0}function dve(){this._call=this._time=this._next=null}function $l(e,t,n){var r=new dve;return r.restart(e,t,n),r}function fve(){lve(),++tu;for(var e=au,t;e;)(t=cu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tu}function pve(){cu=(su=uu.now())+lu,tu=nu=0;try{fve()}finally{tu=0,hve(),cu=0}}function mve(){var e=uu.now(),t=e-su;t>iu&&(lu-=t,su=e)}function hve(){for(var e,t=au,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:au=n);ou=e,eu(r)}function eu(e){tu||(nu&&=clearTimeout(nu),e-cu>24?(e<1/0&&(nu=setTimeout(pve,e-uu.now()-lu)),ru&&=clearInterval(ru)):(ru||=(su=uu.now(),setInterval(mve,iu)),tu=1,du(pve)))}var tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu=o((()=>{tu=0,nu=0,ru=0,iu=1e3,su=0,cu=0,lu=0,uu=typeof performance==`object`&&performance.now?performance:Date,du=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},dve.prototype=$l.prototype={constructor:dve,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?lve():+n)+(t==null?0:+t),!this._next&&ou!==this&&(ou?ou._next=this:au=this,ou=this),this._call=e,this._time=n,eu()},stop:function(){this._call&&(this._call=null,this._time=1/0,eu())}}}));function pu(e,t,n){var r=new dve;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gve=o((()=>{fu()})),_ve=o((()=>{fu(),gve()}));function vve(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bve(e,n,{name:t,index:r,group:i,on:gu,tween:_u,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yve(e,t){var n=hu(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function mu(e,t){var n=hu(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function hu(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bve(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=$l(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,d,f,p;if(n.state!==1)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===3)return pu(o);p.state===4?(p.state=6,p.timer.stop(),p.on.call(`interrupt`,e,e.__data__,p.index,p.group),delete r[u]):+u{sc(),_ve(),gu=Xme(`start`,`end`,`cancel`,`interrupt`),_u=[]}));function yu(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var bu=o((()=>{vu()}));function xve(e){return this.each(function(){yu(this,e)})}var Sve=o((()=>{bu()}));function Cve(e,t){var n,r;return function(){var i=mu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o{vu()}));function Ove(e,t){var n;return(typeof t==`number`?Bl:t instanceof tl?z_e:(n=tl(t))?(t=n,z_e):q_e)(e,t)}var kve=o((()=>{Ml(),Ql()}));function xu(e){return function(){this.removeAttribute(e)}}function Ave(e){return function(){this.removeAttributeNS(e.space,e.local)}}function jve(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Mve(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Nve(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Pve(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Fve(e,t){var n=lc(e),r=n===`transform`?Zl:Ove;return this.attrTween(e,typeof t==`function`?(n.local?Pve:Nve)(n,r,Eve(this,`attr.`+e,t)):t==null?(n.local?Ave:xu)(n):(n.local?Mve:jve)(n,r,t))}var Ive=o((()=>{Ql(),$c(),Dve(),kve()}));function Su(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Lve(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Rve(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Lve(e,i)),n}return i._value=t,i}function Cu(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Su(e,i)),n}return i._value=t,i}function zve(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=lc(e);return this.tween(n,(r.local?Rve:Cu)(r,t))}var Bve=o((()=>{$c()}));function wu(e,t){return function(){yve(this,e).delay=+t.apply(this,arguments)}}function Vve(e,t){return t=+t,function(){yve(this,e).delay=t}}function Hve(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?wu:Vve)(t,e)):hu(this.node(),t).delay}var Tu=o((()=>{vu()}));function Uve(e,t){return function(){mu(this,e).duration=+t.apply(this,arguments)}}function Eu(e,t){return t=+t,function(){mu(this,e).duration=t}}function Du(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Uve:Eu)(t,e)):hu(this.node(),t).duration}var Ou=o((()=>{vu()}));function Wve(e,t){if(typeof t!=`function`)throw Error();return function(){mu(this,e).ease=t}}function Gve(e){var t=this._id;return arguments.length?this.each(Wve(t,e)):hu(this.node(),t).ease}var Kve=o((()=>{vu()}));function ku(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();mu(this,e).ease=n}}function Au(e){if(typeof e!=`function`)throw Error();return this.each(ku(this._id,e))}var qve=o((()=>{vu()}));function Jve(e){typeof e!=`function`&&(e=_he(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{$c(),Iu()}));function Mu(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s{Iu()}));function Xve(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Zve(e,t,n){var r,i,a=Xve(t)?yve:mu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Qve(e,t){var n=this._id;return arguments.length<2?hu(this.node(),n).on.on(e):this.each(Zve(n,e,t))}var $ve=o((()=>{vu()}));function eye(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function tye(){return this.on(`end.remove`,eye(this._id))}var nye=o((()=>{}));function rye(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=fc(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o{$c(),Iu(),vu()}));function aye(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=fhe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s{$c(),Iu(),vu()}));function sye(){return new cye(this._groups,this._parents)}var cye,lye=o((()=>{$c(),cye=Xc.prototype.constructor}));function uye(e,t){var n,r,i;return function(){var a=Fc(this,e),o=(this.style.removeProperty(e),Fc(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function dye(e){return function(){this.style.removeProperty(e)}}function fye(e,t,n){var r,i=n+``,a;return function(){var o=Fc(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function pye(e,t,n){var r,i,a;return function(){var o=Fc(this,e),s=n(this),l=s+``;return s??(l=s=(this.style.removeProperty(e),Fc(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function mye(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var l=mu(this,e),u=l.on,d=l.value[a]==null?s||=dye(t):void 0;(u!==n||i!==d)&&(r=(n=u).copy()).on(o,i=d),l.on=r}}function hye(e,t,n){var r=(e+=``)==`transform`?ive:Ove;return t==null?this.styleTween(e,uye(e,r)).on(`end.style.`+e,dye(e)):typeof t==`function`?this.styleTween(e,pye(e,r,Eve(this,`style.`+e,t))).each(mye(this._id,e)):this.styleTween(e,fye(e,r,t),n).on(`end.style.`+e,null)}var gye=o((()=>{Ql(),$c(),vu(),Dve(),kve()}));function _ye(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function vye(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&_ye(e,a,n)),r}return a._value=t,a}function yye(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,vye(e,t,n??``))}var bye=o((()=>{}));function xye(e){return function(){this.textContent=e}}function Sye(e){return function(){var t=e(this);this.textContent=t??``}}function Cye(e){return this.tween(`text`,typeof e==`function`?Sye(Eve(this,`text`,e)):xye(e==null?``:e+``))}var wye=o((()=>{Dve()}));function Tye(e){return function(t){this.textContent=e.call(this,t)}}function Eye(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Tye(r)),t}return r._value=e,r}function Nu(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Eye(e))}var Dye=o((()=>{}));function Oye(){for(var e=this._name,t=this._id,n=Mye(),r=this._groups,i=r.length,a=0;a{Iu(),vu()}));function Aye(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var n=mu(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),i===0&&a()})}var jye=o((()=>{vu()}));function Pu(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Mye(){return++Nye}var Nye,Fu,Iu=o((()=>{$c(),Ive(),Bve(),Tu(),Ou(),Kve(),qve(),ju(),Yve(),$ve(),nye(),iye(),oye(),lye(),gye(),bye(),wye(),Dye(),kye(),Dve(),jye(),Nye=0,Fu=Xc.prototype,Pu.prototype={constructor:Pu,select:rye,selectAll:aye,selectChild:Fu.selectChild,selectChildren:Fu.selectChildren,filter:Jve,merge:Mu,selection:sye,transition:Oye,call:Fu.call,nodes:Fu.nodes,node:Fu.node,size:Fu.size,empty:Fu.empty,each:Fu.each,on:Qve,attr:Fve,attrTween:zve,style:hye,styleTween:yye,text:Cye,textTween:Nu,remove:tye,tween:Tve,delay:Hve,duration:Du,ease:Gve,easeVarying:Au,end:Aye,[Symbol.iterator]:Fu[Symbol.iterator]}}));function Pye(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Fye=o((()=>{})),Iye=o((()=>{Fye()}));function Lye(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Rye(e){var t,n;e instanceof Pu?(t=e._id,e=e._name):(t=Mye(),(n=Lu).time=lve(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a{Iu(),vu(),Iye(),_ve(),Lu={time:null,delay:0,duration:250,ease:Pye}})),Bye=o((()=>{$c(),Sve(),zye(),Xc.prototype.interrupt=xve,Xc.prototype.transition=Rye})),Ru=o((()=>{Bye(),Iu(),vu(),bu()}));function Vye(e){return{type:e}}var Hye,Uye,Wye,Gye=o((()=>{Ru(),{abs:Hye,max:Uye,min:Wye}=Math,[`w`,`e`].map(Vye),[`n`,`s`].map(Vye),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(Vye)})),Kye=o((()=>{Gye()}));function qye(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return qye;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t{zu=Math.PI,Bu=2*zu,Vu=1e-6,Hu=Bu-Vu,Uu=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?qye:Jye(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(f>Vu){if(!(Math.abs(d*s-l*u)>Vu)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((zu-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Vu&&this._append`L${e+b*u},${t+b*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=e+x*s},${this._y1=t+x*l}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Vu||Math.abs(this._y1-u)>Vu)&&this._append`L${l},${u}`,n&&(f<0&&(f=f%Bu+Bu),f>Hu?this._append`A${n},${n},0,1,${d},${e-o},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=u}`:f>Vu&&this._append`A${n},${n},0,${+(f>=zu)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},Uu.prototype})),Gu=o((()=>{Wu()})),Yye=o((()=>{Gu()})),Ku=o((()=>{Xs()})),Xye=o((()=>{})),qu=o((()=>{})),Ju=o((()=>{qu()})),Yu=o((()=>{})),Xu=o((()=>{Yu(),sc(),_ve()}));function Zu(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Qu(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var $u=o((()=>{}));function ed(e){return e=Qu(Math.abs(e)),e?e[1]:NaN}var td=o((()=>{$u()}));function Zye(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var Qye=o((()=>{}));function $ye(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var ebe=o((()=>{}));function tbe(e){if(!(t=rbe.exec(e)))throw Error(`invalid format: `+e);var t;return new nbe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function nbe(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}var rbe,ibe=o((()=>{rbe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,tbe.prototype=nbe.prototype,nbe.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 nd(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var abe=o((()=>{}));function obe(e,t){var n=Qu(e,t);if(!n)return sbe=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(sbe=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Qu(e,Math.max(0,t+a-1))[0]}var sbe,cbe=o((()=>{$u()}));function lbe(e,t){var n=Qu(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var ube=o((()=>{$u()})),dbe,fbe=o((()=>{$u(),cbe(),ube(),dbe={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Zu,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>lbe(e*100,t),r:lbe,s:obe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function pbe(e){return e}var mbe=o((()=>{}));function hbe(e){var t=e.grouping===void 0||e.thousands===void 0?pbe:Zye(gbe.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?pbe:$ye(gbe.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e,u){e=tbe(e);var d=e.fill,f=e.align,p=e.sign,m=e.symbol,h=e.zero,g=e.width,_=e.comma,v=e.precision,y=e.trim,b=e.type;b===`n`?(_=!0,b=`g`):dbe[b]||(v===void 0&&(v=12),y=!0,b=`g`),(h||d===`0`&&f===`=`)&&(h=!0,d=`0`,f=`=`);var x=(u&&u.prefix!==void 0?u.prefix:``)+(m===`$`?n:m===`#`&&/[boxX]/.test(b)?`0`+b.toLowerCase():``),S=(m===`$`?r:/[%p]/.test(b)?o:``)+(u&&u.suffix!==void 0?u.suffix:``),C=dbe[b],w=/[defgprs%]/.test(b);v=v===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function T(e){var n=x,r=S,o,u,m;if(b===`c`)r=C(e)+r,e=``;else{e=+e;var T=e<0||1/e<0;if(e=isNaN(e)?l:C(Math.abs(e),v),y&&(e=nd(e)),T&&+e==0&&p!==`+`&&(T=!1),n=(T?p===`(`?p:s:p===`-`||p===`(`?``:p)+n,r=(b===`s`&&!isNaN(e)&&sbe!==void 0?rd[8+sbe/3]:``)+r+(T&&p===`(`?`)`:``),w){for(o=-1,u=e.length;++om||m>57){r=(m===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}_&&!h&&(e=t(e,1/0));var E=n.length+e.length+r.length,D=E>1)+n+e+r+D.slice(E);break;default:e=D+n+e+r}return a(e)}return T.toString=function(){return e+``},T}function d(e,t){var n=Math.max(-8,Math.min(8,Math.floor(ed(t)/3)))*3,r=10**-n,i=u((e=tbe(e),e.type=`f`,e),{suffix:rd[8+n/3]});return function(e){return i(r*e)}}return{format:u,formatPrefix:d}}var gbe,rd,_be=o((()=>{td(),Qye(),ebe(),ibe(),abe(),fbe(),cbe(),mbe(),gbe=Array.prototype.map,rd=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function vbe(e){return id=hbe(e),ad=id.format,ybe=id.formatPrefix,id}var id,ad,ybe,bbe=o((()=>{_be(),vbe({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function xbe(e){return Math.max(0,-ed(Math.abs(e)))}var Sbe=o((()=>{td()}));function Cbe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ed(t)/3)))*3-ed(Math.abs(e)))}var wbe=o((()=>{td()}));function Tbe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ed(t)-ed(e))+1}var Ebe=o((()=>{td()})),Dbe=o((()=>{bbe(),_be(),ibe(),Sbe(),wbe(),Ebe()})),Obe=o((()=>{Xs()}));function kbe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Abe(){return this.eachAfter(kbe)}var jbe=o((()=>{}));function Mbe(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}var Nbe=o((()=>{}));function Pbe(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}var Fbe=o((()=>{}));function od(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o{}));function Lbe(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}var Rbe=o((()=>{}));function zbe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}var sd=o((()=>{}));function cd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var ld=o((()=>{}));function ud(e){for(var t=this,n=dd(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function dd(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}var fd=o((()=>{}));function Bbe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var pd=o((()=>{}));function Vbe(){return Array.from(this)}var md=o((()=>{}));function Hbe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var Ube=o((()=>{}));function hd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}var gd=o((()=>{}));function*_d(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i{}));function yd(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Kbe)):t===void 0&&(t=Gbe);for(var n=new Ybe(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new Ybe(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Jbe)}function Wbe(){return yd(this).eachBefore(qbe)}function Gbe(e){return e.children}function Kbe(e){return Array.isArray(e)?e[1]:null}function qbe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Jbe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Ybe(e){this.data=e,this.depth=this.height=0,this.parent=null}var Xbe=o((()=>{jbe(),Nbe(),Fbe(),Ibe(),Rbe(),sd(),ld(),fd(),pd(),md(),Ube(),gd(),vd(),Ybe.prototype=yd.prototype={constructor:Ybe,count:Abe,each:Mbe,eachAfter:od,eachBefore:Pbe,find:Lbe,sum:zbe,sort:cd,path:ud,ancestors:Bbe,descendants:Vbe,leaves:Hbe,links:hd,copy:Wbe,[Symbol.iterator]:_d}}));function bd(e){if(typeof e!=`function`)throw Error();return e}var xd=o((()=>{}));function Sd(){return 0}function Cd(e){return function(){return e}}var Zbe=o((()=>{}));function Qbe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var $be=o((()=>{}));function exe(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(r-t)/e.value;++s{}));function nxe(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-n)/e.value;++s{}));function rxe(e,t,n,r,i,a){for(var o=[],s=t.children,l,u,d=0,f=0,p=s.length,m,h,g=t.value,_,v,y,b,x,S,C;dy&&(y=u),C=_*_*S,b=Math.max(y/C,C/v),b>x){_-=u;break}x=b}o.push(l={value:_,dice:m{txe(),wd(),ixe=(1+Math.sqrt(5))/2,Td=(function e(t){function n(e,n,r,i,a){rxe(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ixe)}));function axe(){var e=Td,t=!1,n=1,r=1,i=[0],a=Sd,o=Sd,s=Sd,l=Sd,u=Sd;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Qbe),e}function f(t){var n=i[t.depth],r=t.x0+n,d=t.y0+n,f=t.x1-n,p=t.y1-n;f{$be(),Ed(),xd(),Zbe()})),Dd=o((()=>{Xbe(),Zbe(),$be(),txe(),oxe(),wd(),Ed()})),sxe=o((()=>{})),cxe=o((()=>{}));function lxe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var uxe=o((()=>{}));function Od(){var e=new z,t=[],n=[],r=kd;function i(i){let a=e.get(i);if(a===void 0){if(r!==kd)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new z;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Od(t,n).unknown(r)},lxe.apply(i,arguments),i}var kd,dxe=o((()=>{Xs(),uxe(),kd=Symbol(`implicit`)}));function Ad(){var e=Od().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var e=t().length,f=i{Xs(),uxe(),dxe()}));function pxe(e){return function(){return e}}var mxe=o((()=>{}));function hxe(e){return+e}var gxe=o((()=>{}));function jd(e){return e}function _xe(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:pxe(isNaN(t)?NaN:.5)}function Md(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function vxe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?Nd:vxe,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?a:(l||=s(e.map(r),t,n))(r(o(i)))}return f.invert=function(n){return o(i((u||=s(t,e.map(r),Bl))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,hxe),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=Y_e,d()},f.clamp=function(e){return arguments.length?(o=e?!0:jd,d()):o!==jd},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(a=e,f):a},function(e,t){return r=e,i=t,d()}}function xxe(){return bxe()(jd,jd)}var Sxe,Cxe=o((()=>{Xs(),Ql(),mxe(),gxe(),Sxe=[0,1]}));function Pd(e,t,n,r){var i=Lme(e,t,n),a;switch(r=tbe(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Cbe(i,o))&&(r.precision=a),ybe(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Tbe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=xbe(i))&&(r.precision=a-(r.type===`%`)*2)}return ad(r)}var wxe=o((()=>{Xs(),Dbe()}));function Txe(e){var t=e.domain;return e.ticks=function(e){var n=t();return Fme(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Pd(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,d=10;for(s0;){if(u=Ime(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Fd(){var e=xxe();return e.copy=function(){return yxe(e,Fd())},lxe.apply(e,arguments),Txe(e)}var Exe=o((()=>{Xs(),Cxe(),uxe(),wxe()}));function Dxe(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a{}));function Id(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sId(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(kxe.setTime(+t),Axe.setTime(+r),e(kxe),e(Axe),Math.floor(n(kxe,Axe))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var kxe,Axe,Ld=o((()=>{kxe=new Date,Axe=new Date})),Rd,jxe=o((()=>{Ld(),Rd=Id(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),Rd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Id(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Rd),Rd.range})),zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd=o((()=>{zd=1e3,Bd=zd*60,Vd=Bd*60,Hd=Vd*24,Ud=Hd*7,Wd=Hd*30,Gd=Hd*365})),qd,Mxe=o((()=>{Ld(),Kd(),qd=Id(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*zd)},(e,t)=>(t-e)/zd,e=>e.getUTCSeconds()),qd.range})),Jd,Nxe,Pxe=o((()=>{Ld(),Kd(),Jd=Id(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zd)},(e,t)=>{e.setTime(+e+t*Bd)},(e,t)=>(t-e)/Bd,e=>e.getMinutes()),Jd.range,Nxe=Id(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Bd)},(e,t)=>(t-e)/Bd,e=>e.getUTCMinutes()),Nxe.range})),Yd,Xd,Zd=o((()=>{Ld(),Kd(),Yd=Id(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zd-e.getMinutes()*Bd)},(e,t)=>{e.setTime(+e+t*Vd)},(e,t)=>(t-e)/Vd,e=>e.getHours()),Yd.range,Xd=Id(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vd)},(e,t)=>(t-e)/Vd,e=>e.getUTCHours()),Xd.range})),Qd,$d,Fxe,Ixe=o((()=>{Ld(),Kd(),Qd=Id(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bd)/Hd,e=>e.getDate()-1),Qd.range,$d=Id(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hd,e=>e.getUTCDate()-1),$d.range,Fxe=Id(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hd,e=>Math.floor(e/Hd)),Fxe.range}));function ef(e){return Id(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bd)/Ud)}function tf(e){return Id(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Ud)}var nf,rf,af,Lxe,of,Rxe,zxe,Bxe,Vxe,Hxe,Uxe,sf,Wxe,cf,Gxe=o((()=>{Ld(),Kd(),nf=ef(0),rf=ef(1),af=ef(2),Lxe=ef(3),of=ef(4),Rxe=ef(5),zxe=ef(6),nf.range,rf.range,af.range,Lxe.range,of.range,Rxe.range,zxe.range,Bxe=tf(0),Vxe=tf(1),Hxe=tf(2),Uxe=tf(3),sf=tf(4),Wxe=tf(5),cf=tf(6),Bxe.range,Vxe.range,Hxe.range,Uxe.range,sf.range,Wxe.range,cf.range})),lf,Kxe,qxe=o((()=>{Ld(),lf=Id(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),lf.range,Kxe=Id(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),Kxe.range})),uf,df,Jxe=o((()=>{Ld(),uf=Id(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),uf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Id(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),uf.range,df=Id(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),df.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Id(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),df.range}));function ff(e,t,n,r,i,a){let o=[[qd,1,zd],[qd,5,5*zd],[qd,15,15*zd],[qd,30,30*zd],[a,1,Bd],[a,5,5*Bd],[a,15,15*Bd],[a,30,30*Bd],[i,1,Vd],[i,3,3*Vd],[i,6,6*Vd],[i,12,12*Vd],[r,1,Hd],[r,2,2*Hd],[n,1,Ud],[t,1,Wd],[t,3,3*Wd],[e,1,Gd]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(Lme(t/Gd,n/Gd,r));if(a===0)return Rd.every(Math.max(Lme(t,n,r),1));let[s,l]=o[i/o[a-1][2]{Xs(),Kd(),jxe(),Mxe(),Pxe(),Zd(),Ixe(),Gxe(),qxe(),Jxe(),[Yxe,pf]=ff(df,Kxe,Bxe,Fxe,Xd,Nxe),[Xxe,mf]=ff(uf,lf,nf,Qd,Yd,Jd)})),Zxe=o((()=>{Ld(),jxe(),Mxe(),Pxe(),Zd(),Ixe(),Gxe(),qxe(),Jxe(),hf()}));function gf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Qxe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $xe(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function eSe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=vf(i),d=yf(i),f=vf(a),p=yf(a),m=vf(o),h=yf(o),g=vf(s),_=yf(s),v=vf(l),y=yf(l),b={a:te,A:ne,b:re,B:ie,c:null,d:_Se,e:_Se,f:SSe,g:ASe,G:MSe,H:vSe,I:ySe,j:bSe,L:xSe,m:Tf,M:CSe,p:ae,q:oe,Q:$Se,s:eCe,S:wSe,u:Ef,U:V,V:ESe,w:DSe,W:OSe,x:null,X:null,y:kSe,Y:jSe,Z:NSe,"%":QSe},x={a:se,A:ce,b:le,B:ue,c:null,d:PSe,e:PSe,f:zSe,g:YSe,G:Of,H:FSe,I:ISe,j:LSe,L:RSe,m:BSe,M:VSe,p:de,q:fe,Q:$Se,s:eCe,S:HSe,u:USe,U:WSe,V:Df,w:KSe,W:qSe,x:null,X:null,y:JSe,Y:XSe,Z:ZSe,"%":QSe},S={a:D,A:O,b:k,B:A,c:j,d:cSe,e:cSe,f:pSe,g:Sf,G:aSe,H:wf,I:wf,j:lSe,L:fSe,m:sSe,M:uSe,p:E,q:Cf,Q:hSe,s:gSe,S:dSe,u:rSe,U:bf,V:xf,w:nSe,W:iSe,x:M,X:ee,y:Sf,Y:aSe,Z:oSe,"%":mSe};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x);function C(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,l,u;for(n instanceof Date||(n=new Date(+n));++i53)return null;`w`in r||(r.w=1),`Z`in r?(a=Qxe($xe(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Vxe.ceil(a):Vxe(a),a=$d.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=gf($xe(r.y,0,1)),o=a.getDay(),a=o>4||o===0?rf.ceil(a):rf(a),a=Qd.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Qxe($xe(r.y,0,1)).getUTCDay():gf($xe(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Qxe(r)):gf(r)}}function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,l;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),l=S[s in tCe?t.charAt(i++):s],!l||(r=l(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,n,r){return T(e,t,n,r)}function M(e,t,r){return T(e,n,t,r)}function ee(e,t,n){return T(e,r,t,n)}function te(e){return o[e.getDay()]}function ne(e){return a[e.getDay()]}function re(e){return l[e.getMonth()]}function ie(e){return s[e.getMonth()]}function ae(e){return i[+(e.getHours()>=12)]}function oe(e){return 1+~~(e.getMonth()/3)}function se(e){return o[e.getUTCDay()]}function ce(e){return a[e.getUTCDay()]}function le(e){return l[e.getUTCMonth()]}function ue(e){return s[e.getUTCMonth()]}function de(e){return i[+(e.getUTCHours()>=12)]}function fe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},parse:function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t}}}function _f(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function nSe(e,t,n){var r=kf.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rSe(e,t,n){var r=kf.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function bf(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xf(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function iSe(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function aSe(e,t,n){var r=kf.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Sf(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function oSe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Cf(e,t,n){var r=kf.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function sSe(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cSe(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lSe(e,t,n){var r=kf.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function wf(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function uSe(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dSe(e,t,n){var r=kf.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function fSe(e,t,n){var r=kf.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pSe(e,t,n){var r=kf.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function mSe(e,t,n){var r=Af.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hSe(e,t,n){var r=kf.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gSe(e,t,n){var r=kf.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _Se(e,t){return _f(e.getDate(),t,2)}function vSe(e,t){return _f(e.getHours(),t,2)}function ySe(e,t){return _f(e.getHours()%12||12,t,2)}function bSe(e,t){return _f(1+Qd.count(uf(e),e),t,3)}function xSe(e,t){return _f(e.getMilliseconds(),t,3)}function SSe(e,t){return xSe(e,t)+`000`}function Tf(e,t){return _f(e.getMonth()+1,t,2)}function CSe(e,t){return _f(e.getMinutes(),t,2)}function wSe(e,t){return _f(e.getSeconds(),t,2)}function Ef(e){var t=e.getDay();return t===0?7:t}function V(e,t){return _f(nf.count(uf(e)-1,e),t,2)}function TSe(e){var t=e.getDay();return t>=4||t===0?of(e):of.ceil(e)}function ESe(e,t){return e=TSe(e),_f(of.count(uf(e),e)+(uf(e).getDay()===4),t,2)}function DSe(e){return e.getDay()}function OSe(e,t){return _f(rf.count(uf(e)-1,e),t,2)}function kSe(e,t){return _f(e.getFullYear()%100,t,2)}function ASe(e,t){return e=TSe(e),_f(e.getFullYear()%100,t,2)}function jSe(e,t){return _f(e.getFullYear()%1e4,t,4)}function MSe(e,t){var n=e.getDay();return e=n>=4||n===0?of(e):of.ceil(e),_f(e.getFullYear()%1e4,t,4)}function NSe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+_f(t/60|0,`0`,2)+_f(t%60,`0`,2)}function PSe(e,t){return _f(e.getUTCDate(),t,2)}function FSe(e,t){return _f(e.getUTCHours(),t,2)}function ISe(e,t){return _f(e.getUTCHours()%12||12,t,2)}function LSe(e,t){return _f(1+$d.count(df(e),e),t,3)}function RSe(e,t){return _f(e.getUTCMilliseconds(),t,3)}function zSe(e,t){return RSe(e,t)+`000`}function BSe(e,t){return _f(e.getUTCMonth()+1,t,2)}function VSe(e,t){return _f(e.getUTCMinutes(),t,2)}function HSe(e,t){return _f(e.getUTCSeconds(),t,2)}function USe(e){var t=e.getUTCDay();return t===0?7:t}function WSe(e,t){return _f(Bxe.count(df(e)-1,e),t,2)}function GSe(e){var t=e.getUTCDay();return t>=4||t===0?sf(e):sf.ceil(e)}function Df(e,t){return e=GSe(e),_f(sf.count(df(e),e)+(df(e).getUTCDay()===4),t,2)}function KSe(e){return e.getUTCDay()}function qSe(e,t){return _f(Vxe.count(df(e)-1,e),t,2)}function JSe(e,t){return _f(e.getUTCFullYear()%100,t,2)}function YSe(e,t){return e=GSe(e),_f(e.getUTCFullYear()%100,t,2)}function XSe(e,t){return _f(e.getUTCFullYear()%1e4,t,4)}function Of(e,t){var n=e.getUTCDay();return e=n>=4||n===0?sf(e):sf.ceil(e),_f(e.getUTCFullYear()%1e4,t,4)}function ZSe(){return`+0000`}function QSe(){return`%`}function $Se(e){return+e}function eCe(e){return Math.floor(e/1e3)}var tCe,kf,Af,jf,Mf=o((()=>{Zxe(),tCe={"-":``,_:` `,0:`0`},kf=/^\s*\d+/,Af=/^%/,jf=/[\\^$*+?|[\]().{}]/g}));function nCe(e){return Nf=eSe(e),rCe=Nf.format,iCe=Nf.parse,Pf=Nf.utcFormat,aCe=Nf.utcParse,Nf}var Nf,rCe,iCe,Pf,aCe,oCe=o((()=>{Mf(),nCe({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`]})})),Ff=o((()=>{oCe(),Mf()}));function sCe(e){return new Date(e)}function cCe(e){return e instanceof Date?+e:+new Date(+e)}function If(e,t,n,r,i,a,o,s,l,u){var d=xxe(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e){Zxe(),Ff(),Cxe(),uxe(),Oxe()})),Rf=o((()=>{fxe(),Exe(),gxe(),Xs(),Dbe(),Oxe(),Cxe(),dxe(),Lf(),Zxe(),Ff(),Ql(),wxe()}));function zf(e){for(var t=e.length/6|0,n=Array(t),r=0;r{})),dCe,fCe=o((()=>{uCe(),dCe=zf(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`)})),pCe=o((()=>{uCe(),fCe(),Ql(),Ml()}));function Bf(e){return function(){return e}}var Vf=o((()=>{}));function mCe(e){return e>1?0:e<-1?Kf:Math.acos(e)}function hCe(e){return e>=1?qf:e<=-1?-qf:Math.asin(e)}var gCe,Hf,Uf,_Ce,vCe,Wf,Gf,Kf,qf,Jf,yCe=o((()=>{gCe=Math.abs,Hf=Math.atan2,Uf=Math.cos,_Ce=Math.max,vCe=Math.min,Wf=Math.sin,Gf=Math.sqrt,Kf=Math.PI,qf=Kf/2,Jf=2*Kf}));function Yf(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Uu(t)}var bCe=o((()=>{Gu()}));function xCe(e){return e.innerRadius}function SCe(e){return e.outerRadius}function Xf(e){return e.startAngle}function CCe(e){return e.endAngle}function wCe(e){return e&&e.padAngle}function TCe(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,d=o-i,f=s-a,p=f*l-d*u;if(!(p*p<1e-12))return p=(d*(t-a)-f*(e-i))/p,[e+p*l,t+p*u]}function Zf(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/Gf(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,g=r+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=i-a,C=p*g-h*m,w=(b<0?-1:1)*Gf(_Ce(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(i/S-1),y11:E*(i/S-1)}}function Qf(){var e=xCe,t=SCe,n=Bf(0),r=null,i=Xf,a=CCe,o=wCe,s=null,l=Yf(u);function u(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-qf,h=a.apply(this,arguments)-qf,g=gCe(h-m),_=h>m;if(s||=u=l(),p1e-12))s.moveTo(0,0);else if(g>Jf-1e-12)s.moveTo(p*Uf(m),p*Wf(m)),s.arc(0,0,p,m,h,!_),f>1e-12&&(s.moveTo(f*Uf(h),f*Wf(h)),s.arc(0,0,f,h,m,_));else{var v=m,y=h,b=m,x=h,S=g,C=g,w=o.apply(this,arguments)/2,T=w>1e-12&&(r?+r.apply(this,arguments):Gf(f*f+p*p)),E=vCe(gCe(p-f)/2,+n.apply(this,arguments)),D=E,O=E,k,A;if(T>1e-12){var j=hCe(T/f*Wf(w)),M=hCe(T/p*Wf(w));(S-=j*2)>1e-12?(j*=_?1:-1,b+=j,x-=j):(S=0,b=x=(m+h)/2),(C-=M*2)>1e-12?(M*=_?1:-1,v+=M,y-=M):(C=0,v=y=(m+h)/2)}var ee=p*Uf(v),te=p*Wf(v),ne=f*Uf(x),re=f*Wf(x);if(E>1e-12){var ie=p*Uf(y),ae=p*Wf(y),oe=f*Uf(b),se=f*Wf(b),ce;if(g1e-12?O>1e-12?(k=Zf(oe,se,ee,te,p,O,_),A=Zf(ie,ae,ne,re,p,O,_),s.moveTo(k.cx+k.x01,k.cy+k.y01),O1e-12)||!(S>1e-12)?s.lineTo(ne,re):D>1e-12?(k=Zf(ne,re,ie,ae,f,-D,_),A=Zf(ee,te,oe,se,f,-D,_),s.lineTo(k.cx+k.x01,k.cy+k.y01),D{Vf(),yCe(),bCe()}));function DCe(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var $f=o((()=>{Array.prototype.slice}));function ep(e){this._context=e}function tp(e){return new ep(e)}var OCe=o((()=>{ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}}));function kCe(e){return e[0]}function ACe(e){return e[1]}var np=o((()=>{}));function jCe(e,t){var n=Bf(!0),r=null,i=tp,a=null,o=Yf(s);e=typeof e==`function`?e:e===void 0?kCe:Bf(e),t=typeof t==`function`?t:t===void 0?ACe:Bf(t);function s(s){var l,u=(s=DCe(s)).length,d,f=!1,p;for(r??(a=i(p=o())),l=0;l<=u;++l)!(l{$f(),Vf(),OCe(),bCe(),np()}));function rp(e,t){return te?1:t>=e?0:NaN}var ip=o((()=>{}));function NCe(e){return e}var PCe=o((()=>{}));function FCe(){var e=NCe,t=rp,n=null,r=Bf(0),i=Bf(Jf),a=Bf(0);function o(o){var s,l=(o=DCe(o)).length,u,d,f=0,p=Array(l),m=Array(l),h=+r.apply(this,arguments),g=Math.min(Jf,Math.max(-Jf,i.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,a.apply(this,arguments)),y=v*(g<0?-1:1),b;for(s=0;s0&&(f+=b);for(t==null?n!=null&&p.sort(function(e,t){return n(o[e],o[t])}):p.sort(function(e,n){return t(m[e],m[n])}),s=0,d=f?(g-l*y)/f:0;s0?b*d:0)+y,m[u]={data:o[u],index:s,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:Bf(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:Bf(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:Bf(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:Bf(+e),o):a},o}var ICe=o((()=>{$f(),Vf(),ip(),PCe(),yCe()}));function LCe(e){return new RCe(e,!0)}function ap(e){return new RCe(e,!1)}var RCe,zCe=o((()=>{RCe=class{constructor(e,t){this._context=e,this._x=t}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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function op(){}var sp=o((()=>{}));function cp(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function BCe(e){this._context=e}function VCe(e){return new BCe(e)}var HCe=o((()=>{BCe.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:cp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:cp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function UCe(e){this._context=e}function WCe(e){return new UCe(e)}var GCe=o((()=>{sp(),HCe(),UCe.prototype={areaStart:op,areaEnd:op,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)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:cp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function KCe(e){this._context=e}function qCe(e){return new KCe(e)}var lp=o((()=>{HCe(),KCe.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:cp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function up(e,t){this._basis=new BCe(e),this._beta=t}var dp,JCe=o((()=>{HCe(),up.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},dp=(function e(t){function n(e){return t===1?new BCe(e):new up(e,t)}return n.beta=function(t){return e(+t)},n})(.85)}));function fp(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function YCe(e,t){this._context=e,this._k=(1-t)/6}var XCe,ZCe=o((()=>{YCe.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:fp(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fp(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},XCe=(function e(t){function n(e){return new YCe(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function pp(e,t){this._context=e,this._k=(1-t)/6}var mp,hp=o((()=>{sp(),ZCe(),pp.prototype={areaStart:op,areaEnd:op,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)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fp(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},mp=(function e(t){function n(e){return new pp(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function QCe(e,t){this._context=e,this._k=(1-t)/6}var gp,$Ce=o((()=>{ZCe(),QCe.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(e,t){switch(e=+e,t=+t,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:fp(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},gp=(function e(t){function n(e){return new QCe(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function ewe(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function _p(e,t){this._context=e,this._alpha=t}var vp,twe=o((()=>{yCe(),ZCe(),_p.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)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ewe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},vp=(function e(t){function n(e){return t?new _p(e,t):new YCe(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function yp(e,t){this._context=e,this._alpha=t}var nwe,rwe=o((()=>{hp(),sp(),twe(),yp.prototype={areaStart:op,areaEnd:op,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)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ewe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},nwe=(function e(t){function n(e){return t?new yp(e,t):new pp(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function bp(e,t){this._context=e,this._alpha=t}var iwe,awe=o((()=>{$Ce(),twe(),bp.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+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:ewe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},iwe=(function e(t){function n(e){return t?new bp(e,t):new QCe(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function owe(e){this._context=e}function xp(e){return new owe(e)}var Sp=o((()=>{sp(),owe.prototype={areaStart:op,areaEnd:op,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}}));function swe(e){return e<0?-1:1}function Cp(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(swe(a)+swe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function cwe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lwe(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function wp(e){this._context=e}function uwe(e){this._context=new dwe(e)}function dwe(e){this._context=e}function Tp(e){return new wp(e)}function fwe(e){return new uwe(e)}var pwe=o((()=>{wp.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:lwe(this,this._t0,cwe(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lwe(this,cwe(this,n=Cp(this,e,t)),n);break;default:lwe(this,this._t0,n=Cp(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(uwe.prototype=Object.create(wp.prototype)).point=function(e,t){wp.prototype.point.call(this,t,e)},dwe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function mwe(e){this._context=e}function hwe(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t{mwe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=hwe(e),i=hwe(t),a=0,o=1;o{vwe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}})),Cwe=o((()=>{ECe(),$f(),Vf(),OCe(),MCe(),bCe(),ICe(),zCe(),yCe(),GCe(),lp(),HCe(),JCe(),hp(),$Ce(),ZCe(),rwe(),awe(),twe(),Sp(),pwe(),_we(),Swe()}));function Ep(e,t,n){this.k=e,this.x=t,this.y=n}var wwe=o((()=>{Ep.prototype={constructor:Ep,scale:function(e){return e===1?this:new Ep(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ep(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new Ep(1,0,0),Ep.prototype})),Twe=o((()=>{Ru(),wwe()})),Ewe=o((()=>{Twe(),wwe()})),Dp=o((()=>{Xs(),Yme(),Kye(),Yye(),Ml(),Ku(),Xye(),sc(),t_e(),qu(),Iye(),Ju(),Xu(),Dbe(),Obe(),Dd(),Ql(),Gu(),sxe(),Yu(),cxe(),Rf(),pCe(),$c(),Cwe(),Zxe(),Ff(),_ve(),Ru(),Ewe()})),Op,kp=o((()=>{Ls(),tr(),Dp(),Op=N(e=>{let{securityLevel:t}=As(),n=Qc(`body`);return t===`sandbox`&&(n=Qc((Qc(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`)}));function Dwe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Ap(){if(qwe)return Rp;qwe=1;function e(e){return e==null}N(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}N(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}N(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r{t!==void 0&&(ds[e]=t)},`addStylesForDiagram`),Dme=Tme,Ome={},Xn(Ome,{clear:()=>fs,getAccDescription:()=>gs,getAccTitle:()=>ms,getDiagramTitle:()=>vs,setAccDescription:()=>hs,setAccTitle:()=>ps,setDiagramTitle:()=>_s}),kme=``,Ame=``,jme=``,Mme=N(e=>ns(e,Xo()),`sanitizeText`),fs=N(()=>{kme=``,jme=``,Ame=``},`clear`),ps=N(e=>{kme=Mme(e).replace(/^\s+/g,``)},`setAccTitle`),ms=N(()=>kme,`getAccTitle`),hs=N(e=>{jme=Mme(e).replace(/\n\s+/g,` +`)},`setAccDescription`),gs=N(()=>jme,`getAccDescription`),_s=N(e=>{Ame=Mme(e)},`setDiagramTitle`),vs=N(()=>Ame,`getDiagramTitle`),ys=P,Nme=pse,bs=Xo,xs=Yo,Ss=Lo,Pme=N(e=>ns(e,bs()),`sanitizeText`),Cs=us,ws=N(()=>Ome,`getCommonDb`),Ts={},Es=N((e,t,n)=>{Ts[e]&&ys.warn(`Diagram with id ${e} already registered. Overwriting.`),Ts[e]=t,n&&kpe(e,n),Eme(e,t.styles),t.injectUtils?.(ys,Nme,bs,Pme,Cs,ws(),()=>{})},`registerDiagram`),Ds=N(e=>{if(e in Ts)return Ts[e];throw new Fme(e)},`getDiagram`),Fme=class extends Error{static{N(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}}}));function Ime(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var Lme=o((()=>{}));function Rme(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var zme=o((()=>{}));function Bme(e){let t,n,r;e.length===2?(t=e===Ime||e===Rme?e:Vme,n=e,r=e):(t=Ime,n=(t,n)=>Ime(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Vme(){return 0}var Hme=o((()=>{Lme(),zme()}));function Ume(e){return e===null?NaN:+e}var Wme=o((()=>{})),Gme,ks,z=o((()=>{Lme(),Hme(),Wme(),Gme=Bme(Ime),ks=Gme.right,Gme.left,Bme(Ume).center}));function As({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Kme({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qme({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Jme(e){return typeof e==`object`&&e?e.valueOf():e}var Yme,Xme=o((()=>{Yme=class extends Map{constructor(e,t=Jme){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(As(this,e))}has(e){return super.has(As(this,e))}set(e,t){return super.set(Kme(this,e),t)}delete(e){return super.delete(qme(this,e))}}}));function js(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Ps?10:a>=Fs?5:a>=Qme?2:1,s,l,u;return i<0?(u=10**-i/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=10**i*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e{Ps=Math.sqrt(50),Fs=Math.sqrt(10),Qme=Math.sqrt(2)}));function Ls(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var Rs=o((()=>{}));function zs(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var Bs=o((()=>{}));function $me(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r{})),Hs=o((()=>{z(),Lme(),Hme(),zme(),Xme(),Is(),Rs(),Bs(),Wme(),Vs()}));function ehe(e){return e}var Us=o((()=>{}));function Ws(e){return`translate(`+e+`,0)`}function Gs(e){return`translate(0,`+e+`)`}function the(e){return t=>+e(t)}function nhe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function rhe(){return!this.__axis}function ihe(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===qs||e===Ys?-1:1,d=e===Ys||e===ohe?`x`:`y`,f=e===qs||e===Js?Ws:Gs;function p(p){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),h=i??(t.tickFormat?t.tickFormat.apply(t,n):ehe),g=Math.max(a,0)+s,_=t.range(),v=+_[0]+l,y=+_[_.length-1]+l,b=(t.bandwidth?nhe:the)(t.copy(),l),x=p.selection?p.selection():p,S=x.selectAll(`.domain`).data([null]),C=x.selectAll(`.tick`).data(m,t).order(),w=C.exit(),T=C.enter().append(`g`).attr(`class`,`tick`),E=C.select(`line`),D=C.select(`text`);S=S.merge(S.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),C=C.merge(T),E=E.merge(T.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*a)),D=D.merge(T.append(`text`).attr(`fill`,`currentColor`).attr(d,u*g).attr(`dy`,e===qs?`0em`:e===Js?`0.71em`:`0.32em`)),p!==x&&(S=S.transition(p),C=C.transition(p),E=E.transition(p),D=D.transition(p),w=w.transition(p).attr(`opacity`,she).attr(`transform`,function(e){return isFinite(e=b(e))?f(e+l):this.getAttribute(`transform`)}),T.attr(`opacity`,she).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+l)})),w.remove(),S.attr(`d`,e===Ys||e===ohe?o?`M`+u*o+`,`+v+`H`+l+`V`+y+`H`+u*o:`M`+l+`,`+v+`V`+y:o?`M`+v+`,`+u*o+`V`+l+`H`+y+`V`+u*o:`M`+v+`,`+l+`H`+y),C.attr(`opacity`,1).attr(`transform`,function(e){return f(b(e)+l)}),E.attr(d+`2`,u*a),D.attr(d,u*g).text(h),x.filter(rhe).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===ohe?`start`:e===Ys?`end`:`middle`),x.each(function(){this.__axis=b})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(i=e,p):i},p.tickSize=function(e){return arguments.length?(a=o=+e,p):a},p.tickSizeInner=function(e){return arguments.length?(a=+e,p):a},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function Ks(e){return ihe(qs,e)}function ahe(e){return ihe(Js,e)}var qs,ohe,Js,Ys,she,che=o((()=>{Us(),qs=1,ohe=2,Js=3,Ys=4,she=1e-6})),lhe=o((()=>{che()}));function Xs(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function $s(e,t){for(var n=0,r=e.length,i;n{dhe={value:()=>{}},Zs.prototype=Xs.prototype={constructor:Zs,on:function(e,t){var n=this._,r=Qs(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r{ec()})),fhe,nc,rc=o((()=>{fhe=`http://www.w3.org/1999/xhtml`,nc={svg:`http://www.w3.org/2000/svg`,xhtml:fhe,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function ic(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),nc.hasOwnProperty(t)?{space:nc[t],local:e}:e}var B=o((()=>{rc()}));function phe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function mhe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function hhe(e){var t=ic(e);return(t.local?mhe:phe)(t)}var ghe=o((()=>{B(),rc()}));function _he(){}function vhe(e){return e==null?_he:function(){return this.querySelector(e)}}var yhe=o((()=>{}));function bhe(e){typeof e!=`function`&&(e=vhe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{zc(),yhe()}));function She(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var Che=o((()=>{}));function whe(){return[]}function The(e){return e==null?whe:function(){return this.querySelectorAll(e)}}var Ehe=o((()=>{}));function Dhe(e){return function(){return She(e.apply(this,arguments))}}function Ohe(e){e=typeof e==`function`?Dhe(e):The(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a{zc(),Che(),Ehe()}));function Ahe(e){return function(){return this.matches(e)}}function jhe(e){return function(t){return t.matches(e)}}var ac=o((()=>{}));function Mhe(e){return function(){return Fhe.call(this.children,e)}}function Nhe(){return this.firstElementChild}function Phe(e){return this.select(e==null?Nhe:Mhe(typeof e==`function`?e:jhe(e)))}var Fhe,Ihe=o((()=>{ac(),Fhe=Array.prototype.find}));function Lhe(){return Array.from(this.children)}function Rhe(e){return function(){return Bhe.call(this.children,e)}}function zhe(e){return this.selectAll(e==null?Lhe:Rhe(typeof e==`function`?e:jhe(e)))}var Bhe,oc=o((()=>{ac(),Bhe=Array.prototype.filter}));function Vhe(e){typeof e!=`function`&&(e=Ahe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{zc(),ac()}));function cc(e){return Array(e.length)}var lc=o((()=>{}));function Hhe(){return new Lc(this._enter||this._groups.map(cc),this._parents)}function uc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var dc=o((()=>{lc(),zc(),uc.prototype={constructor:uc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}}));function fc(e){return function(){return e}}var pc=o((()=>{}));function mc(e,t,n,r,i,a){for(var o=0,s,l=t.length,u=a.length;o=y&&(y=v+1);!(x=_[y])&&++y{zc(),dc(),pc()}));function yc(){return new Lc(this._exit||this._groups.map(cc),this._parents)}var bc=o((()=>{lc(),zc()}));function Whe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var Ghe=o((()=>{}));function Khe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l{zc()}));function Jhe(){for(var e=this._groups,t=-1,n=e.length;++t=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var Yhe=o((()=>{}));function xc(e){e||=Xhe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}var Zhe=o((()=>{zc()}));function Qhe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var Sc=o((()=>{}));function $he(){return Array.from(this)}var ege=o((()=>{}));function tge(){for(var e=this._groups,t=0,n=e.length;t{}));function rge(){let e=0;for(let t of this)++e;return e}var ige=o((()=>{}));function Cc(){return!this.node()}var age=o((()=>{}));function oge(e){for(var t=this._groups,n=0,r=t.length;n{}));function sge(e){return function(){this.removeAttribute(e)}}function cge(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Tc(e,t){return function(){this.setAttribute(e,t)}}function lge(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function uge(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function dge(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fge(e,t){var n=ic(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?cge:sge:typeof t==`function`?n.local?dge:uge:n.local?lge:Tc)(n,t))}var pge=o((()=>{B()}));function mge(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var Ec=o((()=>{}));function Dc(e){return function(){this.style.removeProperty(e)}}function hge(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Oc(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function kc(e,t,n){return arguments.length>1?this.each((t==null?Dc:typeof t==`function`?Oc:hge)(e,t,n??``)):Ac(this.node(),e)}function Ac(e,t){return e.style.getPropertyValue(t)||mge(e).getComputedStyle(e,null).getPropertyValue(t)}var gge=o((()=>{Ec()}));function _ge(e){return function(){delete this[e]}}function vge(e,t){return function(){this[e]=t}}function yge(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function bge(e,t){return arguments.length>1?this.each((t==null?_ge:typeof t==`function`?yge:vge)(e,t)):this.node()[e]}var xge=o((()=>{}));function Sge(e){return e.trim().split(/^|\s+/)}function jc(e){return e.classList||new Cge(e)}function Cge(e){this._node=e,this._names=Sge(e.getAttribute(`class`)||``)}function wge(e,t){for(var n=jc(e),r=-1,i=t.length;++r{Cge.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function Age(){this.textContent=``}function jge(e){return function(){this.textContent=e}}function Mge(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Nge(e){return arguments.length?this.each(e==null?Age:(typeof e==`function`?Mge:jge)(e)):this.node().textContent}var Nc=o((()=>{}));function Pge(){this.innerHTML=``}function Fge(e){return function(){this.innerHTML=e}}function Ige(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Lge(e){return arguments.length?this.each(e==null?Pge:(typeof e==`function`?Ige:Fge)(e)):this.node().innerHTML}var Rge=o((()=>{}));function zge(){this.nextSibling&&this.parentNode.appendChild(this)}function Bge(){return this.each(zge)}var Vge=o((()=>{}));function Hge(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Uge(){return this.each(Hge)}var Wge=o((()=>{}));function Gge(e){var t=typeof e==`function`?e:hhe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var Kge=o((()=>{ghe()}));function qge(){return null}function Jge(e,t){var n=typeof e==`function`?e:hhe(e),r=t==null?qge:typeof t==`function`?t:vhe(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var Yge=o((()=>{ghe(),yhe()}));function Xge(){var e=this.parentNode;e&&e.removeChild(this)}function Zge(){return this.each(Xge)}var Qge=o((()=>{}));function $ge(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Pc(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function e_e(e){return this.select(e?Pc:$ge)}var t_e=o((()=>{}));function n_e(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var r_e=o((()=>{}));function i_e(e){return function(t){e.call(this,t,this.__data__)}}function a_e(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function o_e(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n{}));function l_e(e,t,n){var r=mge(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function u_e(e,t){return function(){return l_e(this,e,t)}}function d_e(e,t){return function(){return l_e(this,e,t.apply(this,arguments))}}function f_e(e,t){return this.each((typeof t==`function`?d_e:u_e)(e,t))}var p_e=o((()=>{Ec()}));function*m_e(){for(var e=this._groups,t=0,n=e.length;t{}));function Lc(e,t){this._groups=e,this._parents=t}function Rc(){return new Lc([[document.documentElement]],g_e)}function h_e(){return this}var g_e,zc=o((()=>{xhe(),khe(),Ihe(),oc(),sc(),vc(),dc(),bc(),Ghe(),qhe(),Yhe(),Zhe(),Sc(),ege(),nge(),ige(),age(),wc(),pge(),gge(),xge(),Mc(),Nc(),Rge(),Vge(),Wge(),Kge(),Yge(),Qge(),t_e(),r_e(),c_e(),p_e(),Ic(),g_e=[null],Lc.prototype=Rc.prototype={constructor:Lc,select:bhe,selectAll:Ohe,selectChild:Phe,selectChildren:zhe,filter:Vhe,data:Uhe,enter:Hhe,exit:yc,join:Whe,merge:Khe,selection:h_e,order:Jhe,sort:xc,call:Qhe,nodes:$he,node:tge,size:rge,empty:Cc,each:oge,attr:fge,style:kc,property:bge,classed:kge,text:Nge,html:Lge,raise:Bge,lower:Uge,append:Gge,insert:Jge,remove:Zge,clone:e_e,datum:n_e,on:s_e,dispatch:f_e,[Symbol.iterator]:m_e}}));function Bc(e){return typeof e==`string`?new Lc([[document.querySelector(e)]],[document.documentElement]):new Lc([[e]],g_e)}var __e=o((()=>{zc()})),Vc=o((()=>{ghe(),__e(),ac(),B(),rc(),Che(),zc(),yhe(),Ehe(),gge(),Ec()})),v_e=o((()=>{tc(),Vc()}));function Hc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Uc(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var Wc=o((()=>{}));function Gc(){}function Kc(){return this.rgb().formatHex()}function y_e(){return this.rgb().formatHex8()}function b_e(){return rl(this).formatHsl()}function x_e(){return this.rgb().formatRgb()}function qc(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=E_e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?S_e(t):n===3?new Xc(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Jc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=D_e.exec(e))?new Xc(t[1],t[2],t[3],1):(t=O_e.exec(e))?new Xc(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=k_e.exec(e))?Jc(t[1],t[2],t[3],t[4]):(t=A_e.exec(e))?Jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=j_e.exec(e))?nl(t[1],t[2]/100,t[3]/100,1):(t=M_e.exec(e))?nl(t[1],t[2]/100,t[3]/100,t[4]):pl.hasOwnProperty(e)?S_e(pl[e]):e===`transparent`?new Xc(NaN,NaN,NaN,0):null}function S_e(e){return new Xc(e>>16&255,e>>8&255,e&255,1)}function Jc(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xc(e,t,n,r)}function C_e(e){return e instanceof Gc||(e=qc(e)),e?(e=e.rgb(),new Xc(e.r,e.g,e.b,e.opacity)):new Xc}function Yc(e,t,n,r){return arguments.length===1?C_e(e):new Xc(e,t,n,r??1)}function Xc(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Zc(){return`#${tl(this.r)}${tl(this.g)}${tl(this.b)}`}function w_e(){return`#${tl(this.r)}${tl(this.g)}${tl(this.b)}${tl((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qc(){let e=$c(this.opacity);return`${e===1?`rgb(`:`rgba(`}${el(this.r)}, ${el(this.g)}, ${el(this.b)}${e===1?`)`:`, ${e})`}`}function $c(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function el(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tl(e){return e=el(e),(e<16?`0`:``)+e.toString(16)}function nl(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new al(e,t,n,r)}function rl(e){if(e instanceof al)return new al(e.h,e.s,e.l,e.opacity);if(e instanceof Gc||(e=qc(e)),!e)return new al;if(e instanceof al)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&l<1?0:o,new al(o,s,l,e.opacity)}function il(e,t,n,r){return arguments.length===1?rl(e):new al(e,t,n,r??1)}function al(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ol(e){return e=(e||0)%360,e<0?e+360:e}function sl(e){return Math.max(0,Math.min(1,e||0))}function T_e(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var cl,ll,ul,dl,fl,E_e,D_e,O_e,k_e,A_e,j_e,M_e,pl,ml=o((()=>{Wc(),cl=.7,ll=1/cl,ul=`\\s*([+-]?\\d+)\\s*`,dl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,fl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,E_e=/^#([0-9a-f]{3,8})$/,D_e=RegExp(`^rgb\\(${ul},${ul},${ul}\\)$`),O_e=RegExp(`^rgb\\(${fl},${fl},${fl}\\)$`),k_e=RegExp(`^rgba\\(${ul},${ul},${ul},${dl}\\)$`),A_e=RegExp(`^rgba\\(${fl},${fl},${fl},${dl}\\)$`),j_e=RegExp(`^hsl\\(${dl},${fl},${fl}\\)$`),M_e=RegExp(`^hsla\\(${dl},${fl},${fl},${dl}\\)$`),pl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Hc(Gc,qc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kc,formatHex:Kc,formatHex8:y_e,formatHsl:b_e,formatRgb:x_e,toString:x_e}),Hc(Xc,Yc,Uc(Gc,{brighter(e){return e=e==null?ll:ll**+e,new Xc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cl:cl**+e,new Xc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xc(el(this.r),el(this.g),el(this.b),$c(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:Zc,formatHex:Zc,formatHex8:w_e,formatRgb:Qc,toString:Qc})),Hc(al,il,Uc(Gc,{brighter(e){return e=e==null?ll:ll**+e,new al(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cl:cl**+e,new al(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xc(T_e(e>=240?e-240:e+120,i,r),T_e(e,i,r),T_e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new al(ol(this.h),sl(this.s),sl(this.l),$c(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(){let e=$c(this.opacity);return`${e===1?`hsl(`:`hsla(`}${ol(this.h)}, ${sl(this.s)*100}%, ${sl(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),hl,gl,_l=o((()=>{hl=Math.PI/180,gl=180/Math.PI}));function N_e(e){if(e instanceof vl)return new vl(e.l,e.a,e.b,e.opacity);if(e instanceof bl)return xl(e);e instanceof Xc||(e=C_e(e));var t=R_e(e.r),n=R_e(e.g),r=R_e(e.b),i=F_e((.2225045*t+.7168786*n+.0606169*r)/wl),a,o;return t===n&&n===r?a=o=i:(a=F_e((.4360747*t+.3850649*n+.1430804*r)/Cl),o=F_e((.0139322*t+.0971045*n+.7141733*r)/Tl)),new vl(116*i-16,500*(a-i),200*(i-o),e.opacity)}function P_e(e,t,n,r){return arguments.length===1?N_e(e):new vl(e,t,n,r??1)}function vl(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function F_e(e){return e>B_e?e**(1/3):e/Ol+El}function I_e(e){return e>Dl?e*e*e:Ol*(e-El)}function L_e(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function R_e(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function z_e(e){if(e instanceof bl)return new bl(e.h,e.c,e.l,e.opacity);if(e instanceof vl||(e=N_e(e)),e.a===0&&e.b===0)return new bl(NaN,0{Wc(),ml(),_l(),Sl=18,Cl=.96422,wl=1,Tl=.82521,El=4/29,Dl=6/29,Ol=3*Dl*Dl,B_e=Dl*Dl*Dl,Hc(vl,P_e,Uc(Gc,{brighter(e){return new vl(this.l+Sl*(e??1),this.a,this.b,this.opacity)},darker(e){return new vl(this.l-Sl*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Cl*I_e(t),e=wl*I_e(e),n=Tl*I_e(n),new Xc(L_e(3.1338561*t-1.6168667*e-.4906146*n),L_e(-.9787684*t+1.9161415*e+.033454*n),L_e(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Hc(bl,yl,Uc(Gc,{brighter(e){return new bl(this.h,this.c,this.l+Sl*(e??1),this.opacity)},darker(e){return new bl(this.h,this.c,this.l-Sl*(e??1),this.opacity)},rgb(){return xl(this).rgb()}}))})),kl=o((()=>{ml(),V_e(),Wc(),_l()})),H_e=o((()=>{})),U_e=o((()=>{H_e()})),W_e,Al=o((()=>{W_e=e=>()=>e}));function jl(e,t){return function(n){return e+n*t}}function G_e(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function K_e(e,t){var n=t-e;return n?jl(e,n>180||n<-180?n-360*Math.round(n/360):n):W_e(isNaN(e)?t:e)}function q_e(e){return(e=+e)==1?J_e:function(t,n){return n-t?G_e(t,n,e):W_e(isNaN(t)?n:t)}}function J_e(e,t){var n=t-e;return n?jl(e,n):W_e(isNaN(e)?t:e)}var Y_e=o((()=>{Al()})),Ml,X_e=o((()=>{kl(),H_e(),U_e(),Y_e(),Ml=(function e(t){var n=q_e(t);function r(e,t){var r=n((e=Yc(e)).r,(t=Yc(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=J_e(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function Z_e(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i{}));function $_e(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o{sve()}));function eve(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var Fl=o((()=>{}));function Il(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ll=o((()=>{}));function Rl(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=ove(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var zl=o((()=>{sve()}));function tve(e){return function(){return e}}function nve(e){return function(t){return e(t)+``}}function rve(e,t){var n=ive.lastIndex=Bl.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e+=``,t+=``;(r=ive.exec(e))&&(i=Bl.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Il(r,i)})),n=Bl.lastIndex;return n{Ll(),ive=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bl=new RegExp(ive.source,`g`)}));function ove(e,t){var n=typeof t,r;return t==null||n===`boolean`?W_e(t):(n===`number`?Il:n===`string`?(r=qc(t))?(t=r,Ml):rve:t instanceof qc?Ml:t instanceof Date?eve:Nl(t)?Z_e:Array.isArray(t)?$_e:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Rl:Il)(e,t)}var sve=o((()=>{kl(),X_e(),Pl(),Fl(),Ll(),zl(),ave(),Al(),Q_e()}));function cve(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var lve=o((()=>{}));function Vl(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r{Hl=180/Math.PI,uve={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function fve(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?uve:Vl(t.a,t.b,t.c,t.d,t.e,t.f)}function pve(e){return e==null||(Ul||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Ul.setAttribute(`transform`,e),!(e=Ul.transform.baseVal.consolidate()))?uve:(e=e.matrix,Vl(e.a,e.b,e.c,e.d,e.e,e.f))}var Ul,mve=o((()=>{dve()}));function hve(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push(`translate(`,null,t,null,n);s.push({i:l-4,x:Il(e,i)},{i:l-2,x:Il(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Il(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Il(e,t)})}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Il(e,n)},{i:s-2,x:Il(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t{Ll(),mve(),Wl=hve(fve,`px, `,`px)`,`deg)`),gve=hve(pve,`, `,`)`,`)`)}));function vve(e){return function(t,n){var r=e((t=yl(t)).h,(n=yl(n)).h),i=J_e(t.c,n.c),a=J_e(t.l,n.l),o=J_e(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var yve,Gl=o((()=>{kl(),Y_e(),yve=vve(K_e)})),Kl=o((()=>{sve(),Pl(),H_e(),U_e(),Fl(),Y_e(),Ll(),Q_e(),zl(),lve(),ave(),_ve(),X_e(),kl(),Gl()}));function bve(){return tu||=(kve(xve),nu.now()+Ove)}function xve(){tu=0}function ql(){this._call=this._time=this._next=null}function Jl(e,t,n){var r=new ql;return r.restart(e,t,n),r}function Sve(){bve(),++Yl;for(var e=Ql,t;e;)(t=tu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yl}function Cve(){tu=(eu=nu.now())+Ove,Yl=Xl=0;try{Sve()}finally{Yl=0,Tve(),tu=0}}function wve(){var e=nu.now(),t=e-eu;t>Dve&&(Ove-=t,eu=e)}function Tve(){for(var e,t=Ql,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Ql=n);$l=e,Eve(r)}function Eve(e){Yl||(Xl&&=clearTimeout(Xl),e-tu>24?(e<1/0&&(Xl=setTimeout(Cve,e-nu.now()-Ove)),Zl&&=clearInterval(Zl)):(Zl||=(eu=nu.now(),setInterval(wve,Dve)),Yl=1,kve(Cve)))}var Yl,Xl,Zl,Dve,Ql,$l,eu,tu,Ove,nu,kve,Ave=o((()=>{Yl=0,Xl=0,Zl=0,Dve=1e3,eu=0,tu=0,Ove=0,nu=typeof performance==`object`&&performance.now?performance:Date,kve=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},ql.prototype=Jl.prototype={constructor:ql,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?bve():+n)+(t==null?0:+t),!this._next&&$l!==this&&($l?$l._next=this:Ql=this,$l=this),this._call=e,this._time=n,Eve()},stop:function(){this._call&&(this._call=null,this._time=1/0,Eve())}}}));function jve(e,t,n){var r=new ql;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Mve=o((()=>{Ave()})),ru=o((()=>{Ave(),Mve()}));function iu(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Nve(e,n,{name:t,index:r,group:i,on:Pve,tween:Fve,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function au(e,t){var n=su(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function ou(e,t){var n=su(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function su(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Nve(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Jl(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,d,f,p;if(n.state!==1)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===3)return jve(o);p.state===4?(p.state=6,p.timer.stop(),p.on.call(`interrupt`,e,e.__data__,p.index,p.group),delete r[u]):+u{tc(),ru(),Pve=Xs(`start`,`end`,`cancel`,`interrupt`),Fve=[]}));function Ive(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var Lve=o((()=>{cu()}));function Rve(e){return this.each(function(){Ive(this,e)})}var zve=o((()=>{Lve()}));function Bve(e,t){var n,r;return function(){var i=ou(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o{cu()}));function Wve(e,t){var n;return(typeof t==`number`?Il:t instanceof qc?Ml:(n=qc(t))?(t=n,Ml):rve)(e,t)}var Gve=o((()=>{kl(),Kl()}));function Kve(e){return function(){this.removeAttribute(e)}}function qve(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jve(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function uu(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Yve(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Xve(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function du(e,t){var n=ic(e),r=n===`transform`?gve:Wve;return this.attrTween(e,typeof t==`function`?(n.local?Xve:Yve)(n,r,Hve(this,`attr.`+e,t)):t==null?(n.local?qve:Kve)(n):(n.local?uu:Jve)(n,r,t))}var Zve=o((()=>{Kl(),Vc(),Uve(),Gve()}));function Qve(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fu(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function $ve(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&fu(e,i)),n}return i._value=t,i}function eye(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Qve(e,i)),n}return i._value=t,i}function pu(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ic(e);return this.tween(n,(r.local?$ve:eye)(r,t))}var tye=o((()=>{Vc()}));function mu(e,t){return function(){au(this,e).delay=+t.apply(this,arguments)}}function hu(e,t){return t=+t,function(){au(this,e).delay=t}}function gu(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?mu:hu)(t,e)):su(this.node(),t).delay}var nye=o((()=>{cu()}));function rye(e,t){return function(){ou(this,e).duration=+t.apply(this,arguments)}}function iye(e,t){return t=+t,function(){ou(this,e).duration=t}}function _u(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?rye:iye)(t,e)):su(this.node(),t).duration}var vu=o((()=>{cu()}));function aye(e,t){if(typeof t!=`function`)throw Error();return function(){ou(this,e).ease=t}}function oye(e){var t=this._id;return arguments.length?this.each(aye(t,e)):su(this.node(),t).ease}var yu=o((()=>{cu()}));function bu(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();ou(this,e).ease=n}}function sye(e){if(typeof e!=`function`)throw Error();return this.each(bu(this._id,e))}var cye=o((()=>{cu()}));function lye(e){typeof e!=`function`&&(e=Ahe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{Vc(),Eu()}));function dye(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s{Eu()}));function pye(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function mye(e,t,n){var r,i,a=pye(t)?au:ou;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function hye(e,t){var n=this._id;return arguments.length<2?su(this.node(),n).on.on(e):this.each(mye(n,e,t))}var gye=o((()=>{cu()}));function _ye(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function vye(){return this.on(`end.remove`,_ye(this._id))}var yye=o((()=>{}));function bye(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=vhe(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o{Vc(),Eu(),cu()}));function Sye(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=The(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s{Vc(),Eu(),cu()}));function wye(){return new xu(this._groups,this._parents)}var xu,Tye=o((()=>{Vc(),xu=Rc.prototype.constructor}));function Eye(e,t){var n,r,i;return function(){var a=Ac(this,e),o=(this.style.removeProperty(e),Ac(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Dye(e){return function(){this.style.removeProperty(e)}}function Oye(e,t,n){var r,i=n+``,a;return function(){var o=Ac(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function kye(e,t,n){var r,i,a;return function(){var o=Ac(this,e),s=n(this),l=s+``;return s??(l=s=(this.style.removeProperty(e),Ac(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function Aye(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var l=ou(this,e),u=l.on,d=l.value[a]==null?s||=Dye(t):void 0;(u!==n||i!==d)&&(r=(n=u).copy()).on(o,i=d),l.on=r}}function jye(e,t,n){var r=(e+=``)==`transform`?Wl:Wve;return t==null?this.styleTween(e,Eye(e,r)).on(`end.style.`+e,Dye(e)):typeof t==`function`?this.styleTween(e,kye(e,r,Hve(this,`style.`+e,t))).each(Aye(this._id,e)):this.styleTween(e,Oye(e,r,t),n).on(`end.style.`+e,null)}var Mye=o((()=>{Kl(),Vc(),cu(),Uve(),Gve()}));function Nye(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Pye(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Nye(e,a,n)),r}return a._value=t,a}function Fye(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Pye(e,t,n??``))}var Iye=o((()=>{}));function Lye(e){return function(){this.textContent=e}}function Su(e){return function(){var t=e(this);this.textContent=t??``}}function Rye(e){return this.tween(`text`,typeof e==`function`?Su(Hve(this,`text`,e)):Lye(e==null?``:e+``))}var zye=o((()=>{Uve()}));function Bye(e){return function(t){this.textContent=e.call(this,t)}}function Vye(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Bye(r)),t}return r._value=e,r}function Cu(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Vye(e))}var Hye=o((()=>{}));function Uye(){for(var e=this._name,t=this._id,n=qye(),r=this._groups,i=r.length,a=0;a{Eu(),cu()}));function Gye(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var n=ou(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),i===0&&a()})}var Kye=o((()=>{cu()}));function wu(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function qye(){return++Jye}var Jye,Tu,Eu=o((()=>{Vc(),Zve(),tye(),nye(),vu(),yu(),cye(),uye(),fye(),gye(),yye(),xye(),Cye(),Tye(),Mye(),Iye(),zye(),Hye(),Wye(),Uve(),Kye(),Jye=0,Tu=Rc.prototype,wu.prototype={constructor:wu,select:bye,selectAll:Sye,selectChild:Tu.selectChild,selectChildren:Tu.selectChildren,filter:lye,merge:dye,selection:wye,transition:Uye,call:Tu.call,nodes:Tu.nodes,node:Tu.node,size:Tu.size,empty:Tu.empty,each:Tu.each,on:hye,attr:du,attrTween:pu,style:jye,styleTween:Fye,text:Rye,textTween:Cu,remove:vye,tween:lu,delay:gu,duration:_u,ease:oye,easeVarying:sye,end:Gye,[Symbol.iterator]:Tu[Symbol.iterator]}}));function Du(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Yye=o((()=>{})),Xye=o((()=>{Yye()}));function Ou(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Zye(e){var t,n;e instanceof wu?(t=e._id,e=e._name):(t=qye(),(n=Qye).time=bve(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a{Eu(),cu(),Xye(),ru(),Qye={time:null,delay:0,duration:250,ease:Du}})),ebe=o((()=>{Vc(),zve(),$ye(),Rc.prototype.interrupt=Rve,Rc.prototype.transition=Zye})),tbe=o((()=>{ebe(),Eu(),cu(),Lve()}));function nbe(e){return{type:e}}var rbe,ibe,ku,Au=o((()=>{tbe(),{abs:rbe,max:ibe,min:ku}=Math,[`w`,`e`].map(nbe),[`n`,`s`].map(nbe),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(nbe)})),ju=o((()=>{Au()}));function Mu(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Mu;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t{Pu=Math.PI,Fu=2*Pu,Iu=1e-6,Lu=Fu-Iu,Ru=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Mu:Nu(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(f>Iu){if(!(Math.abs(d*s-l*u)>Iu)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((Pu-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Iu&&this._append`L${e+b*u},${t+b*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=e+x*s},${this._y1=t+x*l}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Iu||Math.abs(this._y1-u)>Iu)&&this._append`L${l},${u}`,n&&(f<0&&(f=f%Fu+Fu),f>Lu?this._append`A${n},${n},0,1,${d},${e-o},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=u}`:f>Iu&&this._append`A${n},${n},0,${+(f>=Pu)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},Ru.prototype})),zu=o((()=>{abe()})),Bu=o((()=>{zu()})),Vu=o((()=>{Hs()})),Hu=o((()=>{})),Uu=o((()=>{})),obe=o((()=>{Uu()})),Wu=o((()=>{})),sbe=o((()=>{Wu(),tc(),ru()}));function cbe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Gu(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var lbe=o((()=>{}));function Ku(e){return e=Gu(Math.abs(e)),e?e[1]:NaN}var ube=o((()=>{lbe()}));function dbe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var fbe=o((()=>{}));function pbe(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var qu=o((()=>{}));function mbe(e){if(!(t=gbe.exec(e)))throw Error(`invalid format: `+e);var t;return new hbe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function hbe(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}var gbe,_be=o((()=>{gbe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,mbe.prototype=hbe.prototype,hbe.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 vbe(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var ybe=o((()=>{}));function bbe(e,t){var n=Gu(e,t);if(!n)return xbe=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(xbe=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Gu(e,Math.max(0,t+a-1))[0]}var xbe,Sbe=o((()=>{lbe()}));function Cbe(e,t){var n=Gu(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var wbe=o((()=>{lbe()})),Tbe,Ebe=o((()=>{lbe(),Sbe(),wbe(),Tbe={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:cbe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Cbe(e*100,t),r:Cbe,s:bbe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function Dbe(e){return e}var Obe=o((()=>{}));function Ju(e){var t=e.grouping===void 0||e.thousands===void 0?Dbe:dbe(kbe.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Dbe:pbe(kbe.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e,u){e=mbe(e);var d=e.fill,f=e.align,p=e.sign,m=e.symbol,h=e.zero,g=e.width,_=e.comma,v=e.precision,y=e.trim,b=e.type;b===`n`?(_=!0,b=`g`):Tbe[b]||(v===void 0&&(v=12),y=!0,b=`g`),(h||d===`0`&&f===`=`)&&(h=!0,d=`0`,f=`=`);var x=(u&&u.prefix!==void 0?u.prefix:``)+(m===`$`?n:m===`#`&&/[boxX]/.test(b)?`0`+b.toLowerCase():``),S=(m===`$`?r:/[%p]/.test(b)?o:``)+(u&&u.suffix!==void 0?u.suffix:``),C=Tbe[b],w=/[defgprs%]/.test(b);v=v===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function T(e){var n=x,r=S,o,u,m;if(b===`c`)r=C(e)+r,e=``;else{e=+e;var T=e<0||1/e<0;if(e=isNaN(e)?l:C(Math.abs(e),v),y&&(e=vbe(e)),T&&+e==0&&p!==`+`&&(T=!1),n=(T?p===`(`?p:s:p===`-`||p===`(`?``:p)+n,r=(b===`s`&&!isNaN(e)&&xbe!==void 0?Abe[8+xbe/3]:``)+r+(T&&p===`(`?`)`:``),w){for(o=-1,u=e.length;++om||m>57){r=(m===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}_&&!h&&(e=t(e,1/0));var E=n.length+e.length+r.length,D=E>1)+n+e+r+D.slice(E);break;default:e=D+n+e+r}return a(e)}return T.toString=function(){return e+``},T}function d(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Ku(t)/3)))*3,r=10**-n,i=u((e=mbe(e),e.type=`f`,e),{suffix:Abe[8+n/3]});return function(e){return i(r*e)}}return{format:u,formatPrefix:d}}var kbe,Abe,jbe=o((()=>{ube(),fbe(),qu(),_be(),ybe(),Ebe(),Sbe(),Obe(),kbe=Array.prototype.map,Abe=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function Mbe(e){return Nbe=Ju(e),Yu=Nbe.format,Pbe=Nbe.formatPrefix,Nbe}var Nbe,Yu,Pbe,Fbe=o((()=>{jbe(),Mbe({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function Ibe(e){return Math.max(0,-Ku(Math.abs(e)))}var Lbe=o((()=>{ube()}));function Rbe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ku(t)/3)))*3-Ku(Math.abs(e)))}var zbe=o((()=>{ube()}));function Bbe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ku(t)-Ku(e))+1}var Vbe=o((()=>{ube()})),Hbe=o((()=>{Fbe(),jbe(),_be(),Lbe(),zbe(),Vbe()})),Ube=o((()=>{Hs()}));function Wbe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Gbe(){return this.eachAfter(Wbe)}var Xu=o((()=>{}));function Kbe(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}var qbe=o((()=>{}));function Jbe(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}var Ybe=o((()=>{}));function Zu(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o{}));function $u(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}var ed=o((()=>{}));function td(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}var nd=o((()=>{}));function Xbe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var rd=o((()=>{}));function Zbe(e){for(var t=this,n=id(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function id(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}var Qbe=o((()=>{}));function $be(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var ad=o((()=>{}));function od(){return Array.from(this)}var sd=o((()=>{}));function cd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var ld=o((()=>{}));function exe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}var txe=o((()=>{}));function*nxe(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i{}));function ixe(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=ud)):t===void 0&&(t=oxe);for(var n=new cxe(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new cxe(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(sxe)}function axe(){return ixe(this).eachBefore(dd)}function oxe(e){return e.children}function ud(e){return Array.isArray(e)?e[1]:null}function dd(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function sxe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function cxe(e){this.data=e,this.depth=this.height=0,this.parent=null}var lxe=o((()=>{Xu(),qbe(),Ybe(),Qu(),ed(),nd(),rd(),Qbe(),ad(),sd(),ld(),txe(),rxe(),cxe.prototype=ixe.prototype={constructor:cxe,count:Gbe,each:Kbe,eachAfter:Zu,eachBefore:Jbe,find:$u,sum:td,sort:Xbe,path:Zbe,ancestors:$be,descendants:od,leaves:cd,links:exe,copy:axe,[Symbol.iterator]:nxe}}));function uxe(e){if(typeof e!=`function`)throw Error();return e}var dxe=o((()=>{}));function fd(){return 0}function pd(e){return function(){return e}}var fxe=o((()=>{}));function md(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var pxe=o((()=>{}));function mxe(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(r-t)/e.value;++s{}));function gd(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-n)/e.value;++s{}));function gxe(e,t,n,r,i,a){for(var o=[],s=t.children,l,u,d=0,f=0,p=s.length,m,h,g=t.value,_,v,y,b,x,S,C;dy&&(y=u),C=_*_*S,b=Math.max(y/C,C/v),b>x){_-=u;break}x=b}o.push(l={value:_,dice:m{hd(),hxe(),_d=(1+Math.sqrt(5))/2,_xe=(function e(t){function n(e,n,r,i,a){gxe(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(_d)}));function yxe(){var e=_xe,t=!1,n=1,r=1,i=[0],a=fd,o=fd,s=fd,l=fd,u=fd;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(md),e}function f(t){var n=i[t.depth],r=t.x0+n,d=t.y0+n,f=t.x1-n,p=t.y1-n;f{pxe(),vxe(),dxe(),fxe()})),xxe=o((()=>{lxe(),fxe(),pxe(),hd(),bxe(),hxe(),vxe()})),Sxe=o((()=>{})),Cxe=o((()=>{}));function vd(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var wxe=o((()=>{}));function yd(){var e=new Yme,t=[],n=[],r=Txe;function i(i){let a=e.get(i);if(a===void 0){if(r!==Txe)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Yme;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return yd(t,n).unknown(r)},vd.apply(i,arguments),i}var Txe,Exe=o((()=>{Hs(),wxe(),Txe=Symbol(`implicit`)}));function Dxe(){var e=yd().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var e=t().length,f=i{Hs(),wxe(),Exe()}));function Oxe(e){return function(){return e}}var xd=o((()=>{}));function kxe(e){return+e}var Sd=o((()=>{}));function Axe(e){return e}function jxe(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Oxe(isNaN(t)?NaN:.5)}function Mxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Nxe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?Pxe:Nxe,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?a:(l||=s(e.map(r),t,n))(r(o(i)))}return f.invert=function(n){return o(i((u||=s(t,e.map(r),Il))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,kxe),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=cve,d()},f.clamp=function(e){return arguments.length?(o=e?!0:Axe,d()):o!==Axe},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(a=e,f):a},function(e,t){return r=e,i=t,d()}}function Ixe(){return Fxe()(Axe,Axe)}var Lxe,Rxe=o((()=>{Hs(),Kl(),xd(),Sd(),Lxe=[0,1]}));function zxe(e,t,n,r){var i=Ns(e,t,n),a;switch(r=mbe(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Rbe(i,o))&&(r.precision=a),Pbe(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Bbe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Ibe(i))&&(r.precision=a-(r.type===`%`)*2)}return Yu(r)}var Bxe=o((()=>{Hs(),Hbe()}));function Vxe(e){var t=e.domain;return e.ticks=function(e){var n=t();return Zme(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return zxe(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,d=10;for(s0;){if(u=Ms(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function wd(){var e=Ixe();return e.copy=function(){return Cd(e,wd())},vd.apply(e,arguments),Vxe(e)}var Hxe=o((()=>{Hs(),Rxe(),wxe(),Bxe()}));function Td(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a{}));function Dd(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sDd(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(Od.setTime(+t),kd.setTime(+r),e(Od),e(kd),Math.floor(n(Od,kd))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Od,kd,Ad=o((()=>{Od=new Date,kd=new Date})),jd,Md=o((()=>{Ad(),jd=Dd(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),jd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dd(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jd),jd.range})),Nd,Pd,Fd,Id,Uxe,Wxe,Ld,Rd=o((()=>{Nd=1e3,Pd=Nd*60,Fd=Pd*60,Id=Fd*24,Uxe=Id*7,Wxe=Id*30,Ld=Id*365})),zd,Bd=o((()=>{Ad(),Rd(),zd=Dd(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nd)},(e,t)=>(t-e)/Nd,e=>e.getUTCSeconds()),zd.range})),Vd,Hd,Ud=o((()=>{Ad(),Rd(),Vd=Dd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nd)},(e,t)=>{e.setTime(+e+t*Pd)},(e,t)=>(t-e)/Pd,e=>e.getMinutes()),Vd.range,Hd=Dd(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Pd)},(e,t)=>(t-e)/Pd,e=>e.getUTCMinutes()),Hd.range})),Wd,Gxe,Kxe=o((()=>{Ad(),Rd(),Wd=Dd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nd-e.getMinutes()*Pd)},(e,t)=>{e.setTime(+e+t*Fd)},(e,t)=>(t-e)/Fd,e=>e.getHours()),Wd.range,Gxe=Dd(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fd)},(e,t)=>(t-e)/Fd,e=>e.getUTCHours()),Gxe.range})),Gd,Kd,qd,qxe=o((()=>{Ad(),Rd(),Gd=Dd(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pd)/Id,e=>e.getDate()-1),Gd.range,Kd=Dd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Id,e=>e.getUTCDate()-1),Kd.range,qd=Dd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Id,e=>Math.floor(e/Id)),qd.range}));function Jd(e){return Dd(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pd)/Uxe)}function Yd(e){return Dd(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Uxe)}var Xd,Zd,Jxe,Yxe,Qd,Xxe,Zxe,Qxe,$d,$xe,eSe,ef,tSe,nSe,rSe=o((()=>{Ad(),Rd(),Xd=Jd(0),Zd=Jd(1),Jxe=Jd(2),Yxe=Jd(3),Qd=Jd(4),Xxe=Jd(5),Zxe=Jd(6),Xd.range,Zd.range,Jxe.range,Yxe.range,Qd.range,Xxe.range,Zxe.range,Qxe=Yd(0),$d=Yd(1),$xe=Yd(2),eSe=Yd(3),ef=Yd(4),tSe=Yd(5),nSe=Yd(6),Qxe.range,$d.range,$xe.range,eSe.range,ef.range,tSe.range,nSe.range})),tf,nf,iSe=o((()=>{Ad(),tf=Dd(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),tf.range,nf=Dd(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),nf.range})),rf,af,of=o((()=>{Ad(),rf=Dd(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),rf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dd(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),rf.range,af=Dd(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),af.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dd(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),af.range}));function sf(e,t,n,r,i,a){let o=[[zd,1,Nd],[zd,5,5*Nd],[zd,15,15*Nd],[zd,30,30*Nd],[a,1,Pd],[a,5,5*Pd],[a,15,15*Pd],[a,30,30*Pd],[i,1,Fd],[i,3,3*Fd],[i,6,6*Fd],[i,12,12*Fd],[r,1,Id],[r,2,2*Id],[n,1,Uxe],[t,1,Wxe],[t,3,3*Wxe],[e,1,Ld]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(Ns(t/Ld,n/Ld,r));if(a===0)return jd.every(Math.max(Ns(t,n,r),1));let[s,l]=o[i/o[a-1][2]{Hs(),Rd(),Md(),Bd(),Ud(),Kxe(),qxe(),rSe(),iSe(),of(),[aSe,cf]=sf(af,nf,Qxe,qd,Gxe,Hd),[oSe,sSe]=sf(rf,tf,Xd,Gd,Wd,Vd)})),lSe=o((()=>{Ad(),Md(),Bd(),Ud(),Kxe(),qxe(),rSe(),iSe(),of(),cSe()}));function uSe(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function lf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function uf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function dSe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=pf(i),d=mf(i),f=pf(a),p=mf(a),m=pf(o),h=mf(o),g=pf(s),_=mf(s),v=pf(l),y=mf(l),b={a:te,A:ne,b:re,B:ie,c:null,d:kSe,e:kSe,f:V,g:HSe,G:WSe,H:vf,I:ASe,j:jSe,L:yf,m:MSe,M:NSe,p:ae,q:oe,Q:wf,s:Tf,S:PSe,u:FSe,U:ISe,V:RSe,w:zSe,W:BSe,x:null,X:null,y:VSe,Y:USe,Z:GSe,"%":Cf},x={a:se,A:ce,b:le,B:ue,c:null,d:KSe,e:KSe,f:ZSe,g:oCe,G:cCe,H:qSe,I:JSe,j:YSe,L:XSe,m:QSe,M:bf,p:de,q:fe,Q:wf,s:Tf,S:$Se,u:eCe,U:tCe,V:rCe,w:xf,W:iCe,x:null,X:null,y:aCe,Y:sCe,Z:Sf,"%":Cf},S={a:D,A:O,b:k,B:A,c:j,d:ySe,e:ySe,f:TSe,g:gSe,G:hSe,H:xSe,I:xSe,j:bSe,L:wSe,m:vSe,M:SSe,p:E,q:_Se,Q:DSe,s:OSe,S:CSe,u:hf,U:pSe,V:gf,w:fSe,W:mSe,x:M,X:ee,y:gSe,Y:hSe,Z:_f,"%":ESe};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x);function C(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,l,u;for(n instanceof Date||(n=new Date(+n));++i53)return null;`w`in r||(r.w=1),`Z`in r?(a=lf(uf(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?$d.ceil(a):$d(a),a=Kd.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=uSe(uf(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Zd.ceil(a):Zd(a),a=Gd.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?lf(uf(r.y,0,1)).getUTCDay():uSe(uf(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,lf(r)):uSe(r)}}function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,l;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),l=S[s in Ef?t.charAt(i++):s],!l||(r=l(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,n,r){return T(e,t,n,r)}function M(e,t,r){return T(e,n,t,r)}function ee(e,t,n){return T(e,r,t,n)}function te(e){return o[e.getDay()]}function ne(e){return a[e.getDay()]}function re(e){return l[e.getMonth()]}function ie(e){return s[e.getMonth()]}function ae(e){return i[+(e.getHours()>=12)]}function oe(e){return 1+~~(e.getMonth()/3)}function se(e){return o[e.getUTCDay()]}function ce(e){return a[e.getUTCDay()]}function le(e){return l[e.getUTCMonth()]}function ue(e){return s[e.getUTCMonth()]}function de(e){return i[+(e.getUTCHours()>=12)]}function fe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},parse:function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t}}}function df(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function fSe(e,t,n){var r=Df.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hf(e,t,n){var r=Df.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function pSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gf(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hSe(e,t,n){var r=Df.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _f(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function _Se(e,t,n){var r=Df.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ySe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function bSe(e,t,n){var r=Df.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function SSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function CSe(e,t,n){var r=Df.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wSe(e,t,n){var r=Df.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function TSe(e,t,n){var r=Df.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ESe(e,t,n){var r=lCe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DSe(e,t,n){var r=Df.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function OSe(e,t,n){var r=Df.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kSe(e,t){return df(e.getDate(),t,2)}function vf(e,t){return df(e.getHours(),t,2)}function ASe(e,t){return df(e.getHours()%12||12,t,2)}function jSe(e,t){return df(1+Gd.count(rf(e),e),t,3)}function yf(e,t){return df(e.getMilliseconds(),t,3)}function V(e,t){return yf(e,t)+`000`}function MSe(e,t){return df(e.getMonth()+1,t,2)}function NSe(e,t){return df(e.getMinutes(),t,2)}function PSe(e,t){return df(e.getSeconds(),t,2)}function FSe(e){var t=e.getDay();return t===0?7:t}function ISe(e,t){return df(Xd.count(rf(e)-1,e),t,2)}function LSe(e){var t=e.getDay();return t>=4||t===0?Qd(e):Qd.ceil(e)}function RSe(e,t){return e=LSe(e),df(Qd.count(rf(e),e)+(rf(e).getDay()===4),t,2)}function zSe(e){return e.getDay()}function BSe(e,t){return df(Zd.count(rf(e)-1,e),t,2)}function VSe(e,t){return df(e.getFullYear()%100,t,2)}function HSe(e,t){return e=LSe(e),df(e.getFullYear()%100,t,2)}function USe(e,t){return df(e.getFullYear()%1e4,t,4)}function WSe(e,t){var n=e.getDay();return e=n>=4||n===0?Qd(e):Qd.ceil(e),df(e.getFullYear()%1e4,t,4)}function GSe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+df(t/60|0,`0`,2)+df(t%60,`0`,2)}function KSe(e,t){return df(e.getUTCDate(),t,2)}function qSe(e,t){return df(e.getUTCHours(),t,2)}function JSe(e,t){return df(e.getUTCHours()%12||12,t,2)}function YSe(e,t){return df(1+Kd.count(af(e),e),t,3)}function XSe(e,t){return df(e.getUTCMilliseconds(),t,3)}function ZSe(e,t){return XSe(e,t)+`000`}function QSe(e,t){return df(e.getUTCMonth()+1,t,2)}function bf(e,t){return df(e.getUTCMinutes(),t,2)}function $Se(e,t){return df(e.getUTCSeconds(),t,2)}function eCe(e){var t=e.getUTCDay();return t===0?7:t}function tCe(e,t){return df(Qxe.count(af(e)-1,e),t,2)}function nCe(e){var t=e.getUTCDay();return t>=4||t===0?ef(e):ef.ceil(e)}function rCe(e,t){return e=nCe(e),df(ef.count(af(e),e)+(af(e).getUTCDay()===4),t,2)}function xf(e){return e.getUTCDay()}function iCe(e,t){return df($d.count(af(e)-1,e),t,2)}function aCe(e,t){return df(e.getUTCFullYear()%100,t,2)}function oCe(e,t){return e=nCe(e),df(e.getUTCFullYear()%100,t,2)}function sCe(e,t){return df(e.getUTCFullYear()%1e4,t,4)}function cCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ef(e):ef.ceil(e),df(e.getUTCFullYear()%1e4,t,4)}function Sf(){return`+0000`}function Cf(){return`%`}function wf(e){return+e}function Tf(e){return Math.floor(e/1e3)}var Ef,Df,lCe,uCe,Of=o((()=>{lSe(),Ef={"-":``,_:` `,0:`0`},Df=/^\s*\d+/,lCe=/^%/,uCe=/[\\^$*+?|[\]().{}]/g}));function dCe(e){return kf=dSe(e),Af=kf.format,fCe=kf.parse,pCe=kf.utcFormat,jf=kf.utcParse,kf}var kf,Af,fCe,pCe,jf,mCe=o((()=>{Of(),dCe({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`]})})),Mf=o((()=>{mCe(),Of()}));function Nf(e){return new Date(e)}function Pf(e){return e instanceof Date?+e:+new Date(+e)}function hCe(e,t,n,r,i,a,o,s,l,u){var d=Ixe(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e){lSe(),Mf(),Rxe(),wxe(),Ed()})),vCe=o((()=>{bd(),Hxe(),Sd(),Hs(),Hbe(),Ed(),Rxe(),Exe(),_Ce(),lSe(),Mf(),Kl(),Bxe()}));function yCe(e){for(var t=e.length/6|0,n=Array(t),r=0;r{})),bCe,xCe=o((()=>{Ff(),bCe=yCe(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`)})),SCe=o((()=>{Ff(),xCe(),Kl(),kl()}));function If(e){return function(){return e}}var Lf=o((()=>{}));function CCe(e){return e>1?0:e<-1?Hf:Math.acos(e)}function wCe(e){return e>=1?Uf:e<=-1?-Uf:Math.asin(e)}var TCe,Rf,zf,ECe,DCe,Bf,Vf,Hf,Uf,Wf,Gf=o((()=>{TCe=Math.abs,Rf=Math.atan2,zf=Math.cos,ECe=Math.max,DCe=Math.min,Bf=Math.sin,Vf=Math.sqrt,Hf=Math.PI,Uf=Hf/2,Wf=2*Hf}));function OCe(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ru(t)}var kCe=o((()=>{zu()}));function ACe(e){return e.innerRadius}function Kf(e){return e.outerRadius}function qf(e){return e.startAngle}function jCe(e){return e.endAngle}function MCe(e){return e&&e.padAngle}function NCe(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,d=o-i,f=s-a,p=f*l-d*u;if(!(p*p<1e-12))return p=(d*(t-a)-f*(e-i))/p,[e+p*l,t+p*u]}function Jf(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/Vf(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,g=r+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=i-a,C=p*g-h*m,w=(b<0?-1:1)*Vf(ECe(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(i/S-1),y11:E*(i/S-1)}}function Yf(){var e=ACe,t=Kf,n=If(0),r=null,i=qf,a=jCe,o=MCe,s=null,l=OCe(u);function u(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-Uf,h=a.apply(this,arguments)-Uf,g=TCe(h-m),_=h>m;if(s||=u=l(),p1e-12))s.moveTo(0,0);else if(g>Wf-1e-12)s.moveTo(p*zf(m),p*Bf(m)),s.arc(0,0,p,m,h,!_),f>1e-12&&(s.moveTo(f*zf(h),f*Bf(h)),s.arc(0,0,f,h,m,_));else{var v=m,y=h,b=m,x=h,S=g,C=g,w=o.apply(this,arguments)/2,T=w>1e-12&&(r?+r.apply(this,arguments):Vf(f*f+p*p)),E=DCe(TCe(p-f)/2,+n.apply(this,arguments)),D=E,O=E,k,A;if(T>1e-12){var j=wCe(T/f*Bf(w)),M=wCe(T/p*Bf(w));(S-=j*2)>1e-12?(j*=_?1:-1,b+=j,x-=j):(S=0,b=x=(m+h)/2),(C-=M*2)>1e-12?(M*=_?1:-1,v+=M,y-=M):(C=0,v=y=(m+h)/2)}var ee=p*zf(v),te=p*Bf(v),ne=f*zf(x),re=f*Bf(x);if(E>1e-12){var ie=p*zf(y),ae=p*Bf(y),oe=f*zf(b),se=f*Bf(b),ce;if(g1e-12?O>1e-12?(k=Jf(oe,se,ee,te,p,O,_),A=Jf(ie,ae,ne,re,p,O,_),s.moveTo(k.cx+k.x01,k.cy+k.y01),O1e-12)||!(S>1e-12)?s.lineTo(ne,re):D>1e-12?(k=Jf(ne,re,ie,ae,f,-D,_),A=Jf(ee,te,oe,se,f,-D,_),s.lineTo(k.cx+k.x01,k.cy+k.y01),D{Lf(),Gf(),kCe()}));function FCe(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var ICe=o((()=>{Array.prototype.slice}));function Xf(e){this._context=e}function Zf(e){return new Xf(e)}var LCe=o((()=>{Xf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}}));function Qf(e){return e[0]}function $f(e){return e[1]}var RCe=o((()=>{}));function zCe(e,t){var n=If(!0),r=null,i=Zf,a=null,o=OCe(s);e=typeof e==`function`?e:e===void 0?Qf:If(e),t=typeof t==`function`?t:t===void 0?$f:If(t);function s(s){var l,u=(s=FCe(s)).length,d,f=!1,p;for(r??(a=i(p=o())),l=0;l<=u;++l)!(l{ICe(),Lf(),LCe(),kCe(),RCe()}));function VCe(e,t){return te?1:t>=e?0:NaN}var HCe=o((()=>{}));function ep(e){return e}var UCe=o((()=>{}));function WCe(){var e=ep,t=VCe,n=null,r=If(0),i=If(Wf),a=If(0);function o(o){var s,l=(o=FCe(o)).length,u,d,f=0,p=Array(l),m=Array(l),h=+r.apply(this,arguments),g=Math.min(Wf,Math.max(-Wf,i.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,a.apply(this,arguments)),y=v*(g<0?-1:1),b;for(s=0;s0&&(f+=b);for(t==null?n!=null&&p.sort(function(e,t){return n(o[e],o[t])}):p.sort(function(e,n){return t(m[e],m[n])}),s=0,d=f?(g-l*y)/f:0;s0?b*d:0)+y,m[u]={data:o[u],index:s,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:If(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:If(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:If(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:If(+e),o):a},o}var tp=o((()=>{ICe(),Lf(),HCe(),UCe(),Gf()}));function np(e){return new GCe(e,!0)}function rp(e){return new GCe(e,!1)}var GCe,KCe=o((()=>{GCe=class{constructor(e,t){this._context=e,this._x=t}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,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function ip(){}var qCe=o((()=>{}));function ap(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function JCe(e){this._context=e}function YCe(e){return new JCe(e)}var op=o((()=>{JCe.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:ap(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:ap(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function sp(e){this._context=e}function cp(e){return new sp(e)}var lp=o((()=>{qCe(),op(),sp.prototype={areaStart:ip,areaEnd:ip,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)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ap(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function up(e){this._context=e}function XCe(e){return new up(e)}var ZCe=o((()=>{op(),up.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ap(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function QCe(e,t){this._basis=new JCe(e),this._beta=t}var $Ce,dp=o((()=>{op(),QCe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},$Ce=(function e(t){function n(e){return t===1?new JCe(e):new QCe(e,t)}return n.beta=function(t){return e(+t)},n})(.85)}));function fp(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function pp(e,t){this._context=e,this._k=(1-t)/6}var ewe,mp=o((()=>{pp.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:fp(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fp(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},ewe=(function e(t){function n(e){return new pp(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function twe(e,t){this._context=e,this._k=(1-t)/6}var nwe,hp=o((()=>{qCe(),mp(),twe.prototype={areaStart:ip,areaEnd:ip,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)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fp(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},nwe=(function e(t){function n(e){return new twe(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function gp(e,t){this._context=e,this._k=(1-t)/6}var rwe,_p=o((()=>{mp(),gp.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(e,t){switch(e=+e,t=+t,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:fp(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},rwe=(function e(t){function n(e){return new gp(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function iwe(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function awe(e,t){this._context=e,this._alpha=t}var vp,owe=o((()=>{Gf(),mp(),awe.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)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:iwe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},vp=(function e(t){function n(e){return t?new awe(e,t):new pp(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function swe(e,t){this._context=e,this._alpha=t}var cwe,yp=o((()=>{hp(),qCe(),owe(),swe.prototype={areaStart:ip,areaEnd:ip,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)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:iwe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},cwe=(function e(t){function n(e){return t?new swe(e,t):new twe(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function bp(e,t){this._context=e,this._alpha=t}var lwe,xp=o((()=>{_p(),owe(),bp.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+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:iwe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},lwe=(function e(t){function n(e){return t?new bp(e,t):new gp(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function uwe(e){this._context=e}function dwe(e){return new uwe(e)}var fwe=o((()=>{qCe(),uwe.prototype={areaStart:ip,areaEnd:ip,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}}));function pwe(e){return e<0?-1:1}function mwe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(pwe(a)+pwe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Sp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function hwe(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function gwe(e){this._context=e}function _we(e){this._context=new vwe(e)}function vwe(e){this._context=e}function ywe(e){return new gwe(e)}function bwe(e){return new _we(e)}var xwe=o((()=>{gwe.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:hwe(this,this._t0,Sp(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,hwe(this,Sp(this,n=mwe(this,e,t)),n);break;default:hwe(this,this._t0,n=mwe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(_we.prototype=Object.create(gwe.prototype)).point=function(e,t){gwe.prototype.point.call(this,t,e)},vwe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function Swe(e){this._context=e}function Cwe(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t{Swe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Cwe(e),i=Cwe(t),a=0,o=1;o{Ewe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}})),wp=o((()=>{PCe(),ICe(),Lf(),LCe(),BCe(),kCe(),tp(),KCe(),Gf(),lp(),ZCe(),op(),dp(),hp(),_p(),mp(),yp(),xp(),owe(),fwe(),xwe(),Twe(),kwe()}));function Tp(e,t,n){this.k=e,this.x=t,this.y=n}var Awe=o((()=>{Tp.prototype={constructor:Tp,scale:function(e){return e===1?this:new Tp(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Tp(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new Tp(1,0,0),Tp.prototype})),jwe=o((()=>{tbe(),Awe()})),Ep=o((()=>{jwe(),Awe()})),Dp=o((()=>{Hs(),lhe(),ju(),Bu(),kl(),Vu(),Hu(),tc(),v_e(),Uu(),Xye(),obe(),sbe(),Hbe(),Ube(),xxe(),Kl(),zu(),Sxe(),Wu(),Cxe(),vCe(),SCe(),Vc(),wp(),lSe(),Mf(),ru(),tbe(),Ep()})),Op,kp=o((()=>{Os(),Zn(),Dp(),Op=N(e=>{let{securityLevel:t}=bs(),n=Bc(`body`);return t===`sandbox`&&(n=Bc((Bc(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`)}));function Mwe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Ap(){if(Hp)return Vp;Hp=1;function e(e){return e==null}N(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}N(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}N(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}N(t,`getLine`);function n(t,n){return e.repeat(` `,n-t.length)+t}N(n,`padStart`);function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],l,u=-1;for(;l=a.exec(r.buffer);)s.push(l.index),o.push(l.index+l[0].length),r.position<=l.index&&u<0&&(u=o.length-2);u<0&&(u=o.length-1);let d=``,f=Math.min(r.line+i.linesAfter,s.length).toString().length,p=i.maxLength-(i.indent+f+3);for(let a=1;a<=i.linesBefore&&!(u-a<0);a++){let l=t(r.buffer,o[u-a],s[u-a],r.position-(o[u]-o[u-a]),p);d=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),f)+` | `+l.str+` +`+e.mark.snippet),r+` `+n):r}N(e,`formatError`);function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return N(t,`YAMLException2`),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=N(function(t){return this.name+`: `+e(this,t)},`toString`),Up=t,Up}function Nwe(){if(Zwe)return Xwe;Zwe=1;let e=Ap();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}N(t,`getLine`);function n(t,n){return e.repeat(` `,n-t.length)+t}N(n,`padStart`);function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],l,u=-1;for(;l=a.exec(r.buffer);)s.push(l.index),o.push(l.index+l[0].length),r.position<=l.index&&u<0&&(u=o.length-2);u<0&&(u=o.length-1);let d=``,f=Math.min(r.line+i.linesAfter,s.length).toString().length,p=i.maxLength-(i.indent+f+3);for(let a=1;a<=i.linesBefore&&!(u-a<0);a++){let l=t(r.buffer,o[u-a],s[u-a],r.position-(o[u]-o[u-a]),p);d=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),f)+` | `+l.str+` `+d}let m=t(r.buffer,o[u],s[u],r.position,p);d+=e.repeat(` `,i.indent)+n((r.line+1).toString(),f)+` | `+m.str+` `,d+=e.repeat(`-`,i.indent+f+3+m.pos)+`^ `;for(let a=1;a<=i.linesAfter&&!(u+a>=s.length);a++){let l=t(r.buffer,o[u+a],s[u+a],r.position-(o[u]-o[u+a]),p);d+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),f)+` | `+l.str+` -`}return d.replace(/\n$/,``)}return N(r,`makeSnippet`),Bp=r,Bp}function Mp(){if(Hp)return Vp;Hp=1;let e=jp(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}N(r,`compileStyleAliases`);function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return N(i,`Type2`),Vp=i,Vp}function kwe(){if(Zwe)return Xwe;Zwe=1;let e=jp(),t=Mp();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}N(n,`compileList`);function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}N(t,`collectType`);for(let e=0,n=arguments.length;e=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}N(n,`isHexCode`);function r(e){return e>=48&&e<=55}N(r,`isOctCode`);function i(e){return e>=48&&e<=57}N(i,`isDecCode`);function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let l=e[a];if((l===`-`||l===`+`)&&(l=e[++a]),l===`0`){if(a+1===t)return!0;if(l=e[++a],l===`b`){for(a++;a=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:N(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:N(function(e){return e.toString(10)},`decimal`),hexadecimal:N(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),cTe}function Iwe(){if(dTe)return uTe;dTe=1;let e=Ap(),t=Mp(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}N(i,`resolveYamlFloat`);function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}N(a,`constructYamlFloat`);let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}N(s,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return N(l,`isFloat`),uTe=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:l,represent:s,defaultStyle:`lowercase`}),uTe}function Lwe(){return pTe?fTe:(pTe=1,fTe=Nwe().extend({implicit:[Np(),Pwe(),Fwe(),Iwe()]}),fTe)}function Rwe(){return Gp?mTe:(Gp=1,mTe=Lwe(),mTe)}function zwe(){if(Kp)return hTe;Kp=1;let e=Mp(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=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 r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}N(r,`resolveYamlTimestamp`);function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let u=+a[4],d=+a[5],f=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let p=new Date(Date.UTC(o,s,l,u,d,f,r));return i&&p.setTime(p.getTime()-i),p}N(i,`constructYamlTimestamp`);function a(e){return e.toISOString()}return N(a,`representYamlTimestamp`),hTe=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),hTe}function Bwe(){if(_Te)return gTe;_Te=1;let e=Mp();function t(e){return e===`<<`||e===null}return N(t,`resolveYamlMerge`),gTe=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),gTe}function Vwe(){if(yTe)return vTe;yTe=1;let e=Mp();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}N(n,`isHexCode`);function r(e){return e>=48&&e<=55}N(r,`isOctCode`);function i(e){return e>=48&&e<=57}N(i,`isDecCode`);function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let l=e[a];if((l===`-`||l===`+`)&&(l=e[++a]),l===`0`){if(a+1===t)return!0;if(l=e[++a],l===`b`){for(a++;a=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:N(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:N(function(e){return e.toString(10)},`decimal`),hexadecimal:N(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),dTe}function Vwe(){if(pTe)return qp;pTe=1;let e=Ap(),t=Mp(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}N(i,`resolveYamlFloat`);function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}N(a,`constructYamlFloat`);let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}N(s,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return N(l,`isFloat`),qp=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:l,represent:s,defaultStyle:`lowercase`}),qp}function Hwe(){return mTe?Jp:(mTe=1,Jp=Lwe().extend({implicit:[Rwe(),zwe(),Bwe(),Vwe()]}),Jp)}function Pp(){return gTe?hTe:(gTe=1,hTe=Hwe(),hTe)}function Uwe(){if(vTe)return _Te;vTe=1;let e=Mp(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=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 r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}N(r,`resolveYamlTimestamp`);function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let u=+a[4],d=+a[5],f=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let p=new Date(Date.UTC(o,s,l,u,d,f,r));return i&&p.setTime(p.getTime()-i),p}N(i,`constructYamlTimestamp`);function a(e){return e.toISOString()}return N(a,`representYamlTimestamp`),_Te=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),_Te}function Wwe(){if(yTe)return Yp;yTe=1;let e=Mp();function t(e){return e===`<<`||e===null}return N(t,`resolveYamlMerge`),Yp=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),Yp}function Gwe(){if(xTe)return bTe;xTe=1;let e=Mp();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r64)){if(n<0)return!1;t+=6}}return t%8==0}N(t,`resolveYamlBinary`);function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}N(n,`constructYamlBinary`);function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;for(let a=0;a>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}N(r,`representYamlBinary`);function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return N(i,`isBinary`),vTe=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),vTe}function Hwe(){if(qp)return bTe;qp=1;let e=Mp(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r=[],i=e;for(let e=0,a=i.length;e=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}N(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}N(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}N(v,`fromDecimalCode`);function y(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` +\r`;for(let a=0;a>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}N(r,`representYamlBinary`);function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return N(i,`isBinary`),bTe=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),bTe}function Kwe(){if(Xp)return STe;Xp=1;let e=Mp(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r=[],i=e;for(let e=0,a=i.length;e=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}N(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}N(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}N(v,`fromDecimalCode`);function y(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` `;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}N(y,`simpleEscapeSequence`);function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}N(b,`charFromCodepoint`);function x(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}N(x,`setProperty`);let S=Array(256),C=Array(256);for(let e=0;e<256;e++)S[e]=+!!y(e),C[e]=y(e);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}N(w,`State`);function T(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}N(T,`generateError`);function E(e,t){throw T(e,t)}N(E,`throwError`);function D(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}N(D,`throwWarning`);function O(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}N(O,`storeAnchor`);function k(e){e.anchorMapTransactions.push(Object.create(null))}N(k,`beginAnchorTransaction`);function A(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}N(j,`rollbackAnchorTransaction`);function M(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}N(M,`snapshotState`);function ee(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}N(ee,`restoreState`);let te={YAML:N(function(e,t,n){e.version!==null&&E(e,`duplication of %YAML directive`),n.length!==1&&E(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&E(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&E(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&D(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:N(function(e,t,n){let r;n.length!==2&&E(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],l.test(a)||E(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&E(e,`there is a previously declared suffix for "`+a+`" tag handle`),u.test(r)||E(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{E(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r},`handleTagDirective`)};function ne(e,t,n,r){if(t=32&&n<=1114111||E(e,`expected valid JSON character`)}else a.test(i)&&E(e,`the stream contains non-printable characters`);e.result+=i}}N(ne,`captureSegment`);function re(t,n,r,a){e.isObject(r)||E(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;et.maxTotalMergeKeys&&E(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),i.call(n,s)||(x(n,s,r[s]),a[s]=!0)}}N(re,`mergeMappings`);function ie(e,t,n,r,a,o,s,l,u){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t1&&(t.result+=e.repeat(` `,n-1))}N(ce,`writeFoldedLines`);function le(e,t,n){let r,i,a,o,s,l,u=e.kind,d=e.result,g=e.input.charCodeAt(e.position);if(m(g)||h(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96)return!1;if(g===63||g===45){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;g!==0;){if(g===58){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))break}else if(g===35){if(m(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&se(e)||n&&h(g))break;else if(f(g)){if(o=e.line,s=e.lineStart,l=e.lineIndent,oe(e,!1,-1),e.lineIndent>=t){a=!0,g=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=l;break}a&&=(ne(e,r,i,!1),ce(e,e.line-o),r=i=e.position,!1),p(g)||(i=e.position+1),g=e.input.charCodeAt(++e.position)}return ne(e,r,i,!1),e.result?!0:(e.kind=u,e.result=d,!1)}N(le,`readPlainScalar`);function ue(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(ne(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else f(i)?(ne(e,n,r,!0),ce(e,oe(e,!1,t)),n=r=e.position):e.position===e.lineStart&&se(e)?E(e,`unexpected end of the document within a single quoted scalar`):(e.position++,p(i)||(r=e.position));E(e,`unexpected end of the stream within a single quoted scalar`)}N(ue,`readSingleQuotedScalar`);function de(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return ne(e,n,e.position,!0),e.position++,!0;else if(a===92){if(ne(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),f(a))oe(e,!1,t);else if(a<256&&S[a])e.result+=C[a],e.position++;else if((i=_(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=g(a))>=0?n=(n<<4)+i:E(e,`expected hexadecimal character`);e.result+=b(n),e.position++}else E(e,`unknown escape sequence`);n=r=e.position}else f(a)?(ne(e,n,r,!0),ce(e,oe(e,!1,t)),n=r=e.position):e.position===e.lineStart&&se(e)?E(e,`unexpected end of the document within a double quoted scalar`):(e.position++,p(a)||(r=e.position));E(e,`unexpected end of the stream within a double quoted scalar`)}N(de,`readDoubleQuotedScalar`);function fe(e,t){let n=!0,r,i,a,o=e.tag,s,l=e.anchor,u,d,f,p,h=Object.create(null),g,_,v,y=e.input.charCodeAt(e.position);if(y===91)u=93,p=!1,s=[];else if(y===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&O(e,e.anchor,s),y=e.input.charCodeAt(++e.position);y!==0;){if(oe(e,!0,t),y=e.input.charCodeAt(e.position),y===u)return e.position++,e.tag=o,e.anchor=l,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?y===44&&E(e,`expected the node content, but found ','`):E(e,`missed comma between flow collection entries`),_=g=v=null,d=f=!1,y===63&&m(e.input.charCodeAt(e.position+1))&&(d=f=!0,e.position++,oe(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,be(e,t,1,!1,!0),_=e.tag,g=e.result,oe(e,!0,t),y=e.input.charCodeAt(e.position),(f||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),oe(e,!0,t),be(e,t,1,!1,!0),v=e.result),p?ie(e,s,h,_,g,v,r,i,a):d?s.push(ie(e,null,h,_,g,v,r,i,a)):s.push(g),oe(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}E(e,`unexpected end of the stream within a flow collection`)}N(fe,`readFlowCollection`);function pe(t,n){let r,i=1,a=!1,o=!1,s=n,l=0,u=!1,d,m=t.input.charCodeAt(t.position);if(m===124)r=!1;else if(m===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;m!==0;)if(m=t.input.charCodeAt(++t.position),m===43||m===45)i===1?i=m===43?3:2:E(t,`repeat of a chomping mode identifier`);else if((d=v(m))>=0)d===0?E(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?E(t,`repeat of an indentation width identifier`):(s=n+d-1,o=!0);else break;if(p(m)){do m=t.input.charCodeAt(++t.position);while(p(m));if(m===35)do m=t.input.charCodeAt(++t.position);while(!f(m)&&m!==0)}for(;m!==0;){for(ae(t),t.lineIndent=0,m=t.input.charCodeAt(t.position);(!o||t.lineIndents&&(s=t.lineIndent),f(m)){l++;continue}if(!o&&s===0&&E(t,`missing indentation for block scalar`),t.lineIndentt)&&o!==0)E(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(_&&(i=e.line,a=e.lineStart,o=e.position),be(e,t,4,!0,r)&&(_?h=e.result:g=e.result),_||(ie(e,u,d,f,h,g,i,a,o),f=h=g=null),oe(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&y!==0)E(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&E(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let g=o=s=n===4||n===3;if(r&&oe(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndentt?l=1:e.lineIndent===t?l=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t`),e.result!==null&&p.kind!==e.kind&&E(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+p.kind+`", not "`+e.kind+`"`),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&O(e,e.anchor,e.result)):E(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||d}N(be,`composeNode`);function xe(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(oe(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&E(e,`directive name must not be less than one character in length`);r!==0;){for(;p(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!f(r));break}if(f(r))break;for(t=e.position;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&ae(e),i.call(te,a)?te[a](e,a,o):D(e,`unknown document directive "`+a+`"`)}if(oe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,oe(e,!0,-1)):n&&E(e,`directives end mark is expected`),be(e,e.lineIndent-1,4,!1,!0),oe(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&D(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&se(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,oe(e,!0,-1));return}e.position=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}N(_,`isPrintable`);function v(e){return _(e)&&e!==a&&e!==13&&e!==10}N(v,`isNsCharOrWhitespace`);function y(e,t,n){let r=v(e),i=r&&!g(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||v(t)&&!g(t)&&e===35||t===58&&i}N(y,`isPlainSafe`);function b(e){return _(e)&&e!==a&&!g(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}N(b,`isPlainSafeFirst`);function x(e){return!g(e)&&e!==58}N(x,`isPlainSafeLast`);function S(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}N(S,`codePointAt`);function C(e){return/^\n* /.test(e)}N(C,`needIndentIndicator`);function w(e,t,n,r,i,a,o,s){let l,u=0,d=null,f=!1,p=!1,m=r!==-1,h=-1,g=b(S(e,0))&&x(S(e,e.length-1));if(t||o)for(l=0;l=65536?l+=2:l++){if(u=S(e,l),!_(u))return 5;g&&=y(u,d,s),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=S(e,l),u===10)f=!0,m&&(p||=l-h-1>r&&e[h+1]!==` `,h=l);else if(!_(u))return 5;g&&=y(u,d,s),d=u}p||=m&&l-h-1>r&&e[h+1]!==` `}return!f&&!p?g&&!o&&!i(e)?1:a===2?5:2:n>9&&C(e)?5:o?a===2?5:2:p?4:3}N(w,`chooseScalarStyle`);function T(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||l.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),d=i||e.flowLevel>-1&&r>=e.flowLevel;function f(t){return h(e,t)}switch(N(f,`testAmbiguity`),w(n,d,e.indent,u,f,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+E(n,e.indent)+D(p(n,o));case 4:return`>`+E(n,e.indent)+D(p(O(n,u),o));case 5:return`"`+A(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}N(T,`writeScalar`);function E(e,t){let n=C(e)?String(t):``,r=e[e.length-1]===` @@ -451,13 +453,13 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, `+e.slice(i,a),i=a+1),o=s;return l+=` `,e.length-i>t&&o>i?l+=e.slice(i,o)+` `+e.slice(o+1):l+=e.slice(i),l.slice(1)}N(k,`foldLine`);function A(e){let t=``,n=0;for(let r=0;r=65536?r+=2:r++){n=S(e,r);let i=o[n];!i&&_(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||d(n)}return t}N(A,`escapeString`);function j(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),re(e,t,l,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}N(ee,`writeFlowMapping`);function te(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t1024;d&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,d&&(o+=m(e,n)),re(e,n+1,u,!0,d)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}N(te,`writeBlockMapping`);function ne(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,l=o.length;s tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}N(ne,`detectType`);function re(e,n,i,a,o,s,l){e.tag=null,e.dump=i,ne(e,i,!1)||ne(e,i,!0);let u=r.call(e.dump),d=a;a&&=e.flowLevel<0||e.flowLevel>n;let f=u===`[object Object]`||u===`[object Array]`,p,m;if(f&&(p=e.duplicates.indexOf(i),m=p!==-1),(e.tag!==null&&e.tag!==`?`||m||e.indent!==2&&n>0)&&(o=!1),m&&e.usedDuplicates[p])e.dump=`*ref_`+p;else{if(f&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),u===`[object Object]`)a&&Object.keys(e.dump).length!==0?(te(e,n,e.dump,o),m&&(e.dump=`&ref_`+p+e.dump)):(ee(e,n,e.dump),m&&(e.dump=`&ref_`+p+` `+e.dump));else if(u===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?M(e,n-1,e.dump,o):M(e,n,e.dump,o),m&&(e.dump=`&ref_`+p+e.dump)):(j(e,n,e.dump),m&&(e.dump=`&ref_`+p+` `+e.dump));else if(u===`[object String]`)e.tag!==`?`&&T(e,e.dump,n,s,d);else if(u===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+u)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}N(re,`writeNode`);function ie(e,t){let n=[],r=[];ae(e,n,r);let i=r.length;for(let e=0;e{tr(),N(Dwe,`getDefaultExportFromCjs`),Ip={},Lp={},Rp={},N(Ap,`requireCommon`),N(jp,`requireException`),N(Owe,`requireSnippet`),N(Mp,`requireType`),N(kwe,`requireSchema`),N(Awe,`requireStr`),N(jwe,`requireSeq`),N(Mwe,`requireMap`),N(Nwe,`requireFailsafe`),N(Np,`require_null`),N(Pwe,`requireBool`),N(Fwe,`requireInt`),N(Iwe,`requireFloat`),N(Lwe,`requireJson`),N(Rwe,`requireCore`),N(zwe,`requireTimestamp`),N(Bwe,`requireMerge`),N(Vwe,`requireBinary`),N(Hwe,`requireOmap`),N(Pp,`requirePairs`),N(Uwe,`requireSet`),N(Wwe,`require_default`),N(Gwe,`requireLoader`),Xp={},N(Kwe,`requireDumper`),N(Fp,`requireJsYaml`),{Type:Zp,Schema:OTe,FAILSAFE_SCHEMA:kTe,JSON_SCHEMA:Qp,CORE_SCHEMA:$p,DEFAULT_SCHEMA:em,load:tm,loadAll:ATe,dump:jTe,YAMLException:nm,types:MTe,safeLoad:NTe,safeLoadAll:PTe,safeDump:FTe}=Dwe(Fp())})),ITe,LTe=o((()=>{tr(),ITe=N((e,t)=>{let{theme:n,themeVariables:r}=t,{useGradient:i,gradientStart:a,gradientStop:o}=r??{},s=e.attr(`id`),l=n?.includes(`dark`)?`#FFFFFF`:`#000000`,u=N((t,n,r)=>e.append(`defs`).append(`filter`).attr(`id`,t).attr(`height`,n).attr(`width`,n).append(`feDropShadow`).attr(`dx`,r).attr(`dy`,r).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,l),`dropShadow`);if(u(`${s}-drop-shadow`,`130%`,`4`),u(`${s}-drop-shadow-small`,`150%`,`2`),!i)return;let d=e.append(`linearGradient`).attr(`id`,`${s}-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`,a).attr(`stop-opacity`,1),d.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,o).attr(`stop-opacity`,1)},`insertLookDefs`)})),RTe,zTe,im,BTe,VTe,am,om,HTe,sm=o((()=>{Ls(),tr(),RTe=N(e=>{let{handDrawnSeed:t}=As();return{fill:e,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:e,seed:t}},`solidStateFill`),zTe=N(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),im=N(e=>{let t=BTe([...e.cssCompiledStyles||[],...e.cssStyles||[],...zTe(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),BTe=N(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),VTe=N(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),am=N(e=>{let{stylesArray:t}=im(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];VTe(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),om=N((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=As(),{nodeBorder:i,mainBkg:a}=n,{stylesMap:o}=im(e);return Object.assign({roughness:.7,fill:o.get(`fill`)||a,fillStyle:`hachure`,fillWeight:1.5,hachureGap:1.5,stroke:o.get(`stroke`)||i,seed:r,strokeWidth:o.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:HTe(o.get(`stroke-dasharray`))},t)},`userNodeOverrides`),HTe=N(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)})),UTe,cm,WTe,lm,GTe=o((()=>{UTe=Object.freeze({left:0,top:0,width:16,height:16}),cm=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),WTe=Object.freeze({...UTe,...cm}),lm=Object.freeze({...WTe,body:``,hidden:!1})})),KTe,qTe,JTe=o((()=>{GTe(),KTe=Object.freeze({width:null,height:null}),qTe=Object.freeze({...KTe,...cm})})),YTe,XTe,ZTe=o((()=>{YTe=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!XTe(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!XTe(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!XTe(e,n)?null:e}return null},XTe=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function QTe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var um=o((()=>{}));function dm(e,t){let n=QTe(e,t);for(let r in lm)r in cm?r in e&&!(r in n)&&(n[r]=cm[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var $Te=o((()=>{GTe(),um()}));function eEe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var tEe=o((()=>{}));function nEe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=dm(r[e]||i[e],a)}return o(t),n.forEach(o),dm(e,a)}function fm(e,t){if(e.icons[t])return nEe(e,t,[]);let n=eEe(e,[t])[t];return n?nEe(e,t,n):null}var rEe=o((()=>{$Te(),tEe()}));function iEe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(aEe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oEe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var aEe,oEe,sEe=o((()=>{aEe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oEe=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function cEe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function lEe(e,t){return e?``+e+``+t:t}function pm(e,t,n){let r=cEe(e);return lEe(r.defs,t+r.content+n)}var uEe=o((()=>{}));function dEe(e,t){let n={...WTe,...e},r={...qTe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=pm(a,``,``))});let o=r.width,s=r.height,l=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=iEe(f,l/u)):(d=o===`auto`?l:o,f=s===null?iEe(d,u/l):s===`auto`?u:s);let p={},m=(e,t)=>{mm(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,l,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var mm,fEe=o((()=>{GTe(),JTe(),sEe(),uEe(),mm=e=>e===`unset`||e===`undefined`||e===`none`}));function pEe(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=hEe.get(e)||0;return hEe.set(e,t+1),t?`${e}${t}`:e}function mEe(e){let t=[],n;for(;n=hm.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=pEe(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var hm,hEe,gEe=o((()=>{hm=/\sid="(\S+)"/g,hEe=new Map}));function _Ee(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}var vEe=o((()=>{})),yEe=o((()=>{ZTe(),rEe(),fEe(),gEe(),vEe()})),bEe,xEe,SEe,CEe,wEe,TEe,gm,_m=o((()=>{Ls(),ar(),tr(),yEe(),bEe={body:`?`,height:80,width:80},xEe=new Map,SEe=new Map,CEe=N(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(P.debug(`Registering icon pack:`,t.name),`loader`in t)SEe.set(t.name,t.loader);else if(`icons`in t)xEe.set(t.name,t.icons);else throw P.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),wEe=N(async(e,t)=>{let n=YTe(e,!0,t!==void 0);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=xEe.get(r);if(!i){let e=SEe.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},xEe.set(r,i)}catch(e){throw P.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let a=fm(i,n.name);if(!a)throw Error(`Icon not found: ${e}`);return a},`getRegisteredIconData`),TEe=N(async e=>{try{return await wEe(e),!0}catch{return!1}},`isIconAvailable`),gm=N(async(e,t,n)=>{let r;try{r=await wEe(e,t?.fallbackPrefix)}catch(e){P.error(e),r=bEe}let i=dEe(r,t),a=_Ee(mEe(i.body),{...i.attributes,...n});return ls(a,ns())},`getIconSVG`)})),vm=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),ym=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=vm();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var l=s;if(!l)return t.BLANK_URL;if(n(l))return l;var u=l.trimStart(),d=u.match(t.urlSchemeRegex);if(!d)return l;var f=d[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=u.replace(/\\/g,`/`);if(f===`mailto:`||f.includes(`://`))return p;if(f===`http:`||f===`https:`){if(!i(p))return t.BLANK_URL;var m=new URL(p);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return p}}));function EEe(e){return Number.isSafeInteger(e)&&e>=0}var DEe=o((()=>{}));function OEe(e){return e!=null&&typeof e!=`function`&&EEe(e.length)}var bm=o((()=>{DEe()}));function kEe(e){return e===`__proto__`}var AEe=o((()=>{}));function jEe(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var MEe=o((()=>{}));function NEe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var PEe=o((()=>{}));function xm(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var FEe=o((()=>{})),IEe,LEe,REe,Sm,Cm,wm,Tm,Em,Dm,zEe,BEe,VEe,HEe,Om,UEe,WEe,GEe,km,KEe,qEe,JEe,YEe,XEe=o((()=>{IEe=`[object RegExp]`,LEe=`[object String]`,REe=`[object Number]`,Sm=`[object Boolean]`,Cm=`[object Arguments]`,wm=`[object Symbol]`,Tm=`[object Date]`,Em=`[object Map]`,Dm=`[object Set]`,zEe=`[object Array]`,BEe=`[object ArrayBuffer]`,VEe=`[object Object]`,HEe=`[object DataView]`,Om=`[object Uint8Array]`,UEe=`[object Uint8ClampedArray]`,WEe=`[object Uint16Array]`,GEe=`[object Uint32Array]`,km=`[object Int8Array]`,KEe=`[object Int16Array]`,qEe=`[object Int32Array]`,JEe=`[object Float32Array]`,YEe=`[object Float64Array]`})),ZEe,QEe=o((()=>{ZEe=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)()}));function $Ee(e){return ZEe.Buffer!==void 0&&ZEe.Buffer.isBuffer(e)}var eDe=o((()=>{QEe()}));function tDe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var nDe=o((()=>{}));function rDe(e,t){return Am(e,void 0,e,new Map,t)}function Am(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(jEe(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a{PEe(),FEe(),XEe(),eDe(),MEe(),nDe()}));function oDe(e,t){return rDe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(xm(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),jm(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case REe:case LEe:case Sm:{let t=new e.constructor(e?.valueOf());return jm(t,e),t}case Cm:{let t={};return jm(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var sDe=o((()=>{aDe(),FEe(),XEe()}));function cDe(e){return oDe(e)}var Mm=o((()=>{sDe()}));function Nm(e){return typeof e==`object`&&!!e&&xm(e)===`[object Arguments]`}var lDe=o((()=>{FEe()}));function uDe(e){return typeof e==`object`&&!!e}var dDe=o((()=>{}));function fDe(e){return uDe(e)&&OEe(e)}var pDe=o((()=>{bm(),dDe()}));function mDe(e){return Array.isArray(e)}var hDe=o((()=>{}));function Pm(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Pm.Cache||Map),n}var gDe=o((()=>{Pm.Cache=Map}));function _De(){}var vDe=o((()=>{}));function Fm(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}var yDe=o((()=>{}));function Im(e){return tDe(e)}var bDe=o((()=>{nDe()}));function xDe(e){if(jEe(e))return e;let t=xm(e);if(!SDe(e))return{};if(mDe(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(Im(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?TDe(r,e):CDe(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return CDe(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return EDe(n,e),CDe(n,e),wDe(n,e),n}function SDe(e){switch(xm(e)){case Cm:case zEe:case BEe:case HEe:case Sm:case Tm:case JEe:case YEe:case km:case KEe:case qEe:case Em:case REe:case VEe:case IEe:case Dm:case LEe:case wm:case Om:case UEe:case WEe:case GEe:return!0;default:return!1}}function CDe(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function wDe(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r=n)&&(e[r]=t[r])}function EDe(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var DDe=o((()=>{MEe(),FEe(),XEe(),hDe(),bDe()}));function ODe(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var kDe=o((()=>{}));function ADe(e){if(jEe(e))return e;if(Array.isArray(e)||tDe(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if(typeof File<`u`&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e==`object`){let n=Object.create(t);return Object.assign(n,e)}return e}var jDe=o((()=>{MEe(),nDe()}));function MDe(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e{Mm(),AEe(),jDe(),eDe(),MEe(),PEe(),lDe(),pDe(),dDe(),kDe(),bDe()}));function FDe(e,...t){return MDe(e,...t,_De)}var IDe=o((()=>{PDe(),vDe()}));function LDe(e){if(e==null)return!0;if(OEe(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!$Ee(e)&&!Im(e)&&!Nm(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Fm(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var RDe=o((()=>{lDe(),bm(),bDe(),eDe(),yDe()})),zDe=o((()=>{bm(),aDe(),Mm(),lDe(),pDe(),QEe(),gDe(),eDe(),XEe(),bDe(),DDe(),sDe(),IDe(),PDe(),RDe()}));function BDe(e,t){return e?$De[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function VDe(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,QDe.sanitizeUrl)(n)}function HDe(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function UDe(e){let t,n=0;return e.forEach(e=>{n+=HDe(e,t),t=e}),sOe(e,n/2)}function WDe(e){return e.length===1?e[0]:UDe(e)}function GDe(e,t,n){let r=structuredClone(n);P.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=sOe(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}function KDe(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}function qDe(e){let t=``;for(let n=0;nMath.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}var QDe,$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe,fOe,pOe,Bm,mOe,hOe,gOe,_Oe,vOe,yOe,Vm,Hm,bOe,Um,Wm,Gm=o((()=>{Ls(),ar(),tr(),QDe=ym(),Dp(),zDe(),$De={curveBasis:VCe,curveBasisClosed:WCe,curveBasisOpen:qCe,curveBumpX:LCe,curveBumpY:ap,curveBundle:dp,curveCardinalClosed:mp,curveCardinalOpen:gp,curveCardinal:XCe,curveCatmullRomClosed:nwe,curveCatmullRomOpen:iwe,curveCatmullRom:vp,curveLinear:tp,curveLinearClosed:xp,curveMonotoneX:Tp,curveMonotoneY:fwe,curveNatural:gwe,curveStep:ywe,curveStepAfter:xwe,curveStepBefore:bwe},eOe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tOe=N(function(e,t){let n=nOe(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);qo(e),r=To(r,[...e])}else r=n.args;if(!r)return;let i=dpe(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),nOe=N(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${eOe.source})(?=[}][%]{2}).* -`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),P.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=yo.exec(e))!==null;)if(r.index===yo.lastIndex&&yo.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return P.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),rOe=N(function(e){return e.replace(yo,``)},`removeDirectives`),iOe=N(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`),N(BDe,`interpolateToCurve`),N(VDe,`formatUrl`),aOe=N((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t{let n=10**t;return Math.round(e*n)/n},`roundNumber`),sOe=N((e,t)=>{let n,r=t;for(let t of e){if(n){let e=HDe(t,n);if(e===0)return n;if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:oOe((1-i)*n.x+i*t.x,5),y:oOe((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),cOe=N((e,t,n)=>{P.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=sOe(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`),N(GDe,`calcTerminalLabelPosition`),N(KDe,`getStylesFromArray`),lOe=0,uOe=N(()=>(lOe++,`id-`+Math.random().toString(36).substr(2,12)+`-`+lOe),`generateId`),N(qDe,`makeRandomHex`),dOe=N(e=>qDe(e.length),`random`),fOe=N(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`),pOe=N(function(e,t){let n=t.text.replace(gs.lineBreakRegex,` `),[,r]=Vm(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Bm=Pm((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`
    `},n),gs.hasBreaks(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=Lm(`${e} `,n),l=Lm(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=mOe(e,t,`-`,n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),mOe=Pm((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let l=`${o}${e}`;if(Lm(l,r)>=t){let e=s+1,t=i.length===e,r=`${l}${n}`;a.push(t?l:r),o=``}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`),N(JDe,`calculateTextHeight`),N(Lm,`calculateTextWidth`),hOe=Pm((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=Vm(n),o=[`sans-serif`,r],s=e.split(gs.lineBreakRegex),l=[],u=Qc(`body`);if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append(`svg`);for(let e of o){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let o=fOe();o.text=r||`​`;let s=pOe(d,o).style(`font-size`,a).style(`font-weight`,i).style(`font-family`,e),l=(s._groups||s)[0][0].getBBox();if(l.width===0&&l.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}l.push(n)}return d.remove(),l[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]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),gOe=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{N(this,`InitIDGenerator`)}},vOe=N(function(e){return _Oe||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),_Oe.innerHTML=e,unescape(_Oe.textContent)},`entityDecode`),N(YDe,`isDetailedError`),N(XDe,`getErrorMessage`),yOe=N((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Vm=N(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`),N(Rm,`cleanAndMerge`),Hm={assignWithDepth:To,wrapLabel:Bm,calculateTextHeight:JDe,calculateTextWidth:Lm,calculateTextDimensions:hOe,cleanAndMerge:Rm,detectInit:tOe,detectDirective:nOe,isSubstringInArray:iOe,interpolateToCurve:BDe,calcLabelPosition:WDe,calcCardinalityPosition:cOe,calcTerminalLabelPosition:GDe,formatUrl:VDe,getStylesFromArray:KDe,generateId:uOe,random:dOe,runFunc:aOe,entityDecode:vOe,insertTitle:yOe,isLabelCoordinateInPath:ZDe,parseFontSize:Vm,InitIDGenerator:gOe},bOe=N(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),Um=N(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),Wm=N((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`),N(zm,`handleUndefinedAttr`),N(ZDe,`isLabelCoordinateInPath`)}));function xOe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function SOe(e){Ym=e}function Km(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Zm.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function qm(e,t){if(t){if(Zm.escapeTest.test(e))return e.replace(Zm.escapeReplace,fh)}else if(Zm.escapeTestNoEncode.test(e))return e.replace(Zm.escapeReplaceNoEncode,fh);return e}function COe(e){try{e=encodeURI(e).replace(Zm.percentDecode,`%`)}catch{return null}return e}function wOe(e,t){let n=e.replace(Zm.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Zm.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}function DOe(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let l={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function OOe(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` +`:``}return N(oe,`dump2`),em.dump=oe,em}function Jwe(){if(tm)return zp;tm=1;let e=Rp(),t=qwe();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return N(n,`renamed`),zp.Type=Mp(),zp.Schema=Np(),zp.FAILSAFE_SCHEMA=Lwe(),zp.JSON_SCHEMA=Hwe(),zp.CORE_SCHEMA=Pp(),zp.DEFAULT_SCHEMA=Lp(),zp.load=e.load,zp.loadAll=e.loadAll,zp.dump=t.dump,zp.YAMLException=jp(),zp.types={binary:Gwe(),float:Vwe(),map:Iwe(),null:Rwe(),pairs:Fp(),set:Ip(),timestamp:Uwe(),bool:zwe(),int:Bwe(),merge:Wwe(),omap:Kwe(),seq:Fwe(),str:Pwe()},zp.safeLoad=n(`safeLoad`,`load`),zp.safeLoadAll=n(`safeLoadAll`,`loadAll`),zp.safeDump=n(`safeDump`,`dump`),zp}var zp,Bp,Vp,Hp,Up,Ywe,Xwe,Zwe,Qwe,$we,eTe,Wp,Gp,tTe,nTe,rTe,iTe,aTe,oTe,sTe,cTe,lTe,Kp,uTe,dTe,fTe,qp,pTe,Jp,mTe,hTe,gTe,_Te,vTe,Yp,yTe,bTe,xTe,STe,Xp,Zp,CTe,Qp,wTe,TTe,$p,ETe,em,DTe,tm,nm,OTe,kTe,rm,im,ATe,am,jTe,MTe,NTe,PTe,FTe,ITe,LTe,om=o((()=>{Zn(),N(Mwe,`getDefaultExportFromCjs`),zp={},Bp={},Vp={},N(Ap,`requireCommon`),N(jp,`requireException`),N(Nwe,`requireSnippet`),N(Mp,`requireType`),N(Np,`requireSchema`),N(Pwe,`requireStr`),N(Fwe,`requireSeq`),N(Iwe,`requireMap`),N(Lwe,`requireFailsafe`),N(Rwe,`require_null`),N(zwe,`requireBool`),N(Bwe,`requireInt`),N(Vwe,`requireFloat`),N(Hwe,`requireJson`),N(Pp,`requireCore`),N(Uwe,`requireTimestamp`),N(Wwe,`requireMerge`),N(Gwe,`requireBinary`),N(Kwe,`requireOmap`),N(Fp,`requirePairs`),N(Ip,`requireSet`),N(Lp,`require_default`),N(Rp,`requireLoader`),em={},N(qwe,`requireDumper`),N(Jwe,`requireJsYaml`),{Type:nm,Schema:OTe,FAILSAFE_SCHEMA:kTe,JSON_SCHEMA:rm,CORE_SCHEMA:im,DEFAULT_SCHEMA:ATe,load:am,loadAll:jTe,dump:MTe,YAMLException:NTe,types:PTe,safeLoad:FTe,safeLoadAll:ITe,safeDump:LTe}=Mwe(Jwe())})),RTe,zTe=o((()=>{Zn(),RTe=N((e,t)=>{let{theme:n,themeVariables:r}=t,{useGradient:i,gradientStart:a,gradientStop:o}=r??{},s=e.attr(`id`),l=n?.includes(`dark`)?`#FFFFFF`:`#000000`,u=N((t,n,r)=>e.append(`defs`).append(`filter`).attr(`id`,t).attr(`height`,n).attr(`width`,n).append(`feDropShadow`).attr(`dx`,r).attr(`dy`,r).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,l),`dropShadow`);if(u(`${s}-drop-shadow`,`130%`,`4`),u(`${s}-drop-shadow-small`,`150%`,`2`),!i)return;let d=e.append(`linearGradient`).attr(`id`,`${s}-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`,a).attr(`stop-opacity`,1),d.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,o).attr(`stop-opacity`,1)},`insertLookDefs`)})),BTe,VTe,sm,HTe,UTe,cm,lm,um,dm=o((()=>{Os(),Zn(),BTe=N(e=>{let{handDrawnSeed:t}=bs();return{fill:e,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:e,seed:t}},`solidStateFill`),VTe=N(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),sm=N(e=>{let t=HTe([...e.cssCompiledStyles||[],...e.cssStyles||[],...VTe(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),HTe=N(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),UTe=N(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),cm=N(e=>{let{stylesArray:t}=sm(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];UTe(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),lm=N((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=bs(),{nodeBorder:i,mainBkg:a}=n,{stylesMap:o}=sm(e);return Object.assign({roughness:.7,fill:o.get(`fill`)||a,fillStyle:`hachure`,fillWeight:1.5,hachureGap:1.5,stroke:o.get(`stroke`)||i,seed:r,strokeWidth:o.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:um(o.get(`stroke-dasharray`))},t)},`userNodeOverrides`),um=N(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)})),WTe,GTe,KTe,qTe,JTe=o((()=>{WTe=Object.freeze({left:0,top:0,width:16,height:16}),GTe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),KTe=Object.freeze({...WTe,...GTe}),qTe=Object.freeze({...KTe,body:``,hidden:!1})})),YTe,XTe,fm=o((()=>{JTe(),YTe=Object.freeze({width:null,height:null}),XTe=Object.freeze({...YTe,...GTe})})),pm,ZTe,QTe=o((()=>{pm=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!ZTe(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!ZTe(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!ZTe(e,n)?null:e}return null},ZTe=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function $Te(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var eEe=o((()=>{}));function mm(e,t){let n=$Te(e,t);for(let r in qTe)r in GTe?r in e&&!(r in n)&&(n[r]=GTe[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var tEe=o((()=>{JTe(),eEe()}));function nEe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var rEe=o((()=>{}));function iEe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=mm(r[e]||i[e],a)}return o(t),n.forEach(o),mm(e,a)}function aEe(e,t){if(e.icons[t])return iEe(e,t,[]);let n=nEe(e,[t])[t];return n?iEe(e,t,n):null}var oEe=o((()=>{tEe(),rEe()}));function sEe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(hm);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=cEe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var hm,cEe,lEe=o((()=>{hm=/(-?[0-9.]*[0-9]+[0-9.]*)/g,cEe=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function gm(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function uEe(e,t){return e?``+e+``+t:t}function dEe(e,t,n){let r=gm(e);return uEe(r.defs,t+r.content+n)}var fEe=o((()=>{}));function _m(e,t){let n={...KTe,...e},r={...XTe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=dEe(a,``,``))});let o=r.width,s=r.height,l=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=sEe(f,l/u)):(d=o===`auto`?l:o,f=s===null?sEe(d,u/l):s===`auto`?u:s);let p={},m=(e,t)=>{pEe(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,l,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var pEe,mEe=o((()=>{JTe(),fm(),lEe(),fEe(),pEe=e=>e===`unset`||e===`undefined`||e===`none`}));function hEe(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=vEe.get(e)||0;return vEe.set(e,t+1),t?`${e}${t}`:e}function gEe(e){let t=[],n;for(;n=_Ee.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=hEe(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var _Ee,vEe,yEe=o((()=>{_Ee=/\sid="(\S+)"/g,vEe=new Map}));function bEe(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}var xEe=o((()=>{})),SEe=o((()=>{QTe(),oEe(),mEe(),yEe(),xEe()})),CEe,wEe,TEe,vm,EEe,DEe,ym,bm=o((()=>{Os(),er(),Zn(),SEe(),CEe={body:`?`,height:80,width:80},wEe=new Map,TEe=new Map,vm=N(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(P.debug(`Registering icon pack:`,t.name),`loader`in t)TEe.set(t.name,t.loader);else if(`icons`in t)wEe.set(t.name,t.icons);else throw P.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),EEe=N(async(e,t)=>{let n=pm(e,!0,t!==void 0);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=wEe.get(r);if(!i){let e=TEe.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},wEe.set(r,i)}catch(e){throw P.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let a=aEe(i,n.name);if(!a)throw Error(`Icon not found: ${e}`);return a},`getRegisteredIconData`),DEe=N(async e=>{try{return await EEe(e),!0}catch{return!1}},`isIconAvailable`),ym=N(async(e,t,n)=>{let r;try{r=await EEe(e,t?.fallbackPrefix)}catch(e){P.error(e),r=CEe}let i=_m(r,t),a=bEe(gEe(i.body),{...i.attributes,...n});return ns(a,Xo())},`getIconSVG`)})),xm=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),OEe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=xm();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var l=s;if(!l)return t.BLANK_URL;if(n(l))return l;var u=l.trimStart(),d=u.match(t.urlSchemeRegex);if(!d)return l;var f=d[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=u.replace(/\\/g,`/`);if(f===`mailto:`||f.includes(`://`))return p;if(f===`http:`||f===`https:`){if(!i(p))return t.BLANK_URL;var m=new URL(p);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return p}}));function kEe(e){return Number.isSafeInteger(e)&&e>=0}var AEe=o((()=>{}));function jEe(e){return e!=null&&typeof e!=`function`&&kEe(e.length)}var MEe=o((()=>{AEe()}));function NEe(e){return e===`__proto__`}var PEe=o((()=>{}));function FEe(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var Sm=o((()=>{}));function IEe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var LEe=o((()=>{}));function Cm(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var wm=o((()=>{})),Tm,Em,Dm,Om,REe,zEe,BEe,VEe,km,HEe,UEe,WEe,Am,GEe,KEe,qEe,JEe,YEe,XEe,ZEe,QEe,$Ee,eDe=o((()=>{Tm=`[object RegExp]`,Em=`[object String]`,Dm=`[object Number]`,Om=`[object Boolean]`,REe=`[object Arguments]`,zEe=`[object Symbol]`,BEe=`[object Date]`,VEe=`[object Map]`,km=`[object Set]`,HEe=`[object Array]`,UEe=`[object ArrayBuffer]`,WEe=`[object Object]`,Am=`[object DataView]`,GEe=`[object Uint8Array]`,KEe=`[object Uint8ClampedArray]`,qEe=`[object Uint16Array]`,JEe=`[object Uint32Array]`,YEe=`[object Int8Array]`,XEe=`[object Int16Array]`,ZEe=`[object Int32Array]`,QEe=`[object Float32Array]`,$Ee=`[object Float64Array]`})),tDe,nDe=o((()=>{tDe=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)()}));function rDe(e){return tDe.Buffer!==void 0&&tDe.Buffer.isBuffer(e)}var iDe=o((()=>{nDe()}));function aDe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var oDe=o((()=>{}));function sDe(e,t){return jm(e,void 0,e,new Map,t)}function jm(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(FEe(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a{LEe(),wm(),eDe(),iDe(),Sm(),oDe()}));function lDe(e,t){return sDe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Cm(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Mm(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Dm:case Em:case Om:{let t=new e.constructor(e?.valueOf());return Mm(t,e),t}case REe:{let t={};return Mm(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var uDe=o((()=>{cDe(),wm(),eDe()}));function dDe(e){return lDe(e)}var Pm=o((()=>{uDe()}));function fDe(e){return typeof e==`object`&&!!e&&Cm(e)===`[object Arguments]`}var pDe=o((()=>{wm()}));function Fm(e){return typeof e==`object`&&!!e}var mDe=o((()=>{}));function hDe(e){return Fm(e)&&jEe(e)}var gDe=o((()=>{MEe(),mDe()}));function _De(e){return Array.isArray(e)}var Im=o((()=>{}));function Lm(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Lm.Cache||Map),n}var Rm=o((()=>{Lm.Cache=Map}));function vDe(){}var yDe=o((()=>{}));function bDe(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}var xDe=o((()=>{}));function SDe(e){return aDe(e)}var CDe=o((()=>{oDe()}));function wDe(e){if(FEe(e))return e;let t=Cm(e);if(!TDe(e))return{};if(_De(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(SDe(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?ODe(r,e):EDe(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return EDe(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return kDe(n,e),EDe(n,e),DDe(n,e),n}function TDe(e){switch(Cm(e)){case REe:case HEe:case UEe:case Am:case Om:case BEe:case QEe:case $Ee:case YEe:case XEe:case ZEe:case VEe:case Dm:case WEe:case Tm:case km:case Em:case zEe:case GEe:case KEe:case qEe:case JEe:return!0;default:return!1}}function EDe(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function DDe(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r=n)&&(e[r]=t[r])}function kDe(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var ADe=o((()=>{Sm(),wm(),eDe(),Im(),CDe()}));function jDe(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var MDe=o((()=>{}));function NDe(e){if(FEe(e))return e;if(Array.isArray(e)||aDe(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if(typeof File<`u`&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e==`object`){let n=Object.create(t);return Object.assign(n,e)}return e}var PDe=o((()=>{Sm(),oDe()}));function FDe(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e{Pm(),PEe(),PDe(),iDe(),Sm(),LEe(),pDe(),gDe(),mDe(),MDe(),CDe()}));function RDe(e,...t){return FDe(e,...t,vDe)}var zDe=o((()=>{LDe(),yDe()}));function BDe(e){if(e==null)return!0;if(jEe(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!rDe(e)&&!SDe(e)&&!fDe(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return bDe(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var VDe=o((()=>{pDe(),MEe(),CDe(),iDe(),xDe()})),HDe=o((()=>{MEe(),cDe(),Pm(),pDe(),gDe(),nDe(),Rm(),iDe(),eDe(),CDe(),ADe(),uDe(),zDe(),LDe(),VDe()}));function UDe(e,t){return e?nOe[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function WDe(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,tOe.sanitizeUrl)(n)}function GDe(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function KDe(e){let t,n=0;return e.forEach(e=>{n+=GDe(e,t),t=e}),uOe(e,n/2)}function qDe(e){return e.length===1?e[0]:KDe(e)}function JDe(e,t,n){let r=structuredClone(n);P.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=uOe(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}function YDe(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}function XDe(e){let t=``;for(let n=0;nMath.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}var tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe,fOe,pOe,mOe,hOe,gOe,Hm,_Oe,vOe,yOe,bOe,xOe,SOe,Um,Wm,COe,Gm,Km,qm=o((()=>{Os(),er(),Zn(),tOe=OEe(),Dp(),HDe(),nOe={curveBasis:YCe,curveBasisClosed:cp,curveBasisOpen:XCe,curveBumpX:np,curveBumpY:rp,curveBundle:$Ce,curveCardinalClosed:nwe,curveCardinalOpen:rwe,curveCardinal:ewe,curveCatmullRomClosed:cwe,curveCatmullRomOpen:lwe,curveCatmullRom:vp,curveLinear:Zf,curveLinearClosed:dwe,curveMonotoneX:ywe,curveMonotoneY:bwe,curveNatural:wwe,curveStep:Cp,curveStepAfter:Owe,curveStepBefore:Dwe},rOe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,iOe=N(function(e,t){let n=aOe(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);Io(e),r=mo(r,[...e])}else r=n.args;if(!r)return;let i=uo(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),aOe=N(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${rOe.source})(?=[}][%]{2}).* +`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),P.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=oo.exec(e))!==null;)if(r.index===oo.lastIndex&&oo.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return P.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),oOe=N(function(e){return e.replace(oo,``)},`removeDirectives`),sOe=N(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`),N(UDe,`interpolateToCurve`),N(WDe,`formatUrl`),cOe=N((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t{let n=10**t;return Math.round(e*n)/n},`roundNumber`),uOe=N((e,t)=>{let n,r=t;for(let t of e){if(n){let e=GDe(t,n);if(e===0)return n;if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:lOe((1-i)*n.x+i*t.x,5),y:lOe((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),dOe=N((e,t,n)=>{P.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=uOe(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`),N(JDe,`calcTerminalLabelPosition`),N(YDe,`getStylesFromArray`),fOe=0,pOe=N(()=>(fOe++,`id-`+Math.random().toString(36).substr(2,12)+`-`+fOe),`generateId`),N(XDe,`makeRandomHex`),mOe=N(e=>XDe(e.length),`random`),hOe=N(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`),gOe=N(function(e,t){let n=t.text.replace(cs.lineBreakRegex,` `),[,r]=Um(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Hm=Lm((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`
    `},n),cs.hasBreaks(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=zm(`${e} `,n),l=zm(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=_Oe(e,t,`-`,n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),_Oe=Lm((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let l=`${o}${e}`;if(zm(l,r)>=t){let e=s+1,t=i.length===e,r=`${l}${n}`;a.push(t?l:r),o=``}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`),N(ZDe,`calculateTextHeight`),N(zm,`calculateTextWidth`),vOe=Lm((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=Um(n),o=[`sans-serif`,r],s=e.split(cs.lineBreakRegex),l=[],u=Bc(`body`);if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append(`svg`);for(let e of o){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let o=hOe();o.text=r||`​`;let s=gOe(d,o).style(`font-size`,a).style(`font-weight`,i).style(`font-family`,e),l=(s._groups||s)[0][0].getBBox();if(l.width===0&&l.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}l.push(n)}return d.remove(),l[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]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),yOe=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{N(this,`InitIDGenerator`)}},xOe=N(function(e){return bOe||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),bOe.innerHTML=e,unescape(bOe.textContent)},`entityDecode`),N(QDe,`isDetailedError`),N($De,`getErrorMessage`),SOe=N((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Um=N(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`),N(Bm,`cleanAndMerge`),Wm={assignWithDepth:mo,wrapLabel:Hm,calculateTextHeight:ZDe,calculateTextWidth:zm,calculateTextDimensions:vOe,cleanAndMerge:Bm,detectInit:iOe,detectDirective:aOe,isSubstringInArray:sOe,interpolateToCurve:UDe,calcLabelPosition:qDe,calcCardinalityPosition:dOe,calcTerminalLabelPosition:JDe,formatUrl:WDe,getStylesFromArray:YDe,generateId:pOe,random:mOe,runFunc:cOe,entityDecode:xOe,insertTitle:SOe,isLabelCoordinateInPath:eOe,parseFontSize:Um,InitIDGenerator:yOe},COe=N(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),Gm=N(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),Km=N((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`),N(Vm,`handleUndefinedAttr`),N(eOe,`isLabelCoordinateInPath`)}));function wOe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function TOe(e){Zm=e}function Jm(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace($m.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Ym(e,t){if(t){if($m.escapeTest.test(e))return e.replace($m.escapeReplace,gke)}else if($m.escapeTestNoEncode.test(e))return e.replace($m.escapeReplaceNoEncode,gke);return e}function EOe(e){try{e=encodeURI(e).replace($m.percentDecode,`%`)}catch{return null}return e}function DOe(e,t){let n=e.replace($m.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split($m.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}function AOe(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let l={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function jOe(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` -`)}function Jm(e,t){return _h.parse(e,t)}var Ym,Xm,kOe,Zm,AOe,jOe,MOe,Qm,NOe,POe,FOe,IOe,LOe,ROe,zOe,$m,BOe,VOe,eh,HOe,UOe,WOe,th,GOe,KOe,nh,qOe,JOe,YOe,XOe,rh,ih,ZOe,QOe,$Oe,eke,tke,nke,rke,ah,oh,ike,ake,oke,ske,cke,sh,lke,uke,ch,H,dke,fke,pke,mke,hke,gke,_ke,lh,uh,vke,dh,fh,ph,mh,yke,bke,hh,gh,xke,_h,Ske=o((()=>{Ym=xOe(),Xm={exec:()=>null},kOe=(()=>{try{return!0}catch{return!1}})(),Zm={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,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+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},AOe=/^(?:[ \t]*(?:\n|$))+/,jOe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,MOe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Qm=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,NOe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,POe=/(?:[*+-]|\d{1,9}[.)])/,FOe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,IOe=Km(FOe).replace(/bull/g,POe).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(),LOe=Km(FOe).replace(/bull/g,POe).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(),ROe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zOe=/^[^\n]+/,$m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,BOe=Km(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,$m).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),VOe=Km(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,POe).getRegex(),eh=`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`,HOe=/|$))/,UOe=Km(`^ {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`,HOe).replace(`tag`,eh).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),WOe=Km(ROe).replace(`hr`,Qm).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`,eh).getRegex(),th={blockquote:Km(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,WOe).getRegex(),code:jOe,def:BOe,fences:MOe,heading:NOe,hr:Qm,html:UOe,lheading:IOe,list:VOe,newline:AOe,paragraph:WOe,table:Xm,text:zOe},GOe=Km(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Qm).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`,eh).getRegex(),KOe={...th,lheading:LOe,table:GOe,paragraph:Km(ROe).replace(`hr`,Qm).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,GOe).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`,eh).getRegex()},nh={...th,html:Km(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,HOe).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:Xm,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Km(ROe).replace(`hr`,Qm).replace(`heading`,` *#{1,6} *[^ -]`).replace(`lheading`,IOe).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},qOe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,JOe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,YOe=/^( {2,}|\\)\n(?!\s*$)/,XOe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,kOe?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),rke=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ah=Km(rke,`u`).replace(/punct/g,rh).getRegex(),oh=Km(rke,`u`).replace(/punct/g,$Oe).getRegex(),ike=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ake=Km(ike,`gu`).replace(/notPunctSpace/g,ZOe).replace(/punctSpace/g,ih).replace(/punct/g,rh).getRegex(),oke=Km(ike,`gu`).replace(/notPunctSpace/g,tke).replace(/punctSpace/g,eke).replace(/punct/g,$Oe).getRegex(),ske=Km(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ZOe).replace(/punctSpace/g,ih).replace(/punct/g,rh).getRegex(),cke=Km(/\\(punct)/,`gu`).replace(/punct/g,rh).getRegex(),sh=Km(/^<(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(),lke=Km(HOe).replace(`(?:-->|$)`,`-->`).getRegex(),uke=Km(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,lke).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ch=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,H=Km(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,ch).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dke=Km(/^!?\[(label)\]\[(ref)\]/).replace(`label`,ch).replace(`ref`,$m).getRegex(),fke=Km(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,$m).getRegex(),pke=Km(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,dke).replace(`nolink`,fke).getRegex(),mke=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,hke={_backpedal:Xm,anyPunctuation:cke,autolink:sh,blockSkip:nke,br:YOe,code:JOe,del:Xm,emStrongLDelim:ah,emStrongRDelimAst:ake,emStrongRDelimUnd:ske,escape:qOe,link:H,nolink:fke,punctuation:QOe,reflink:dke,reflinkSearch:pke,tag:uke,text:XOe,url:Xm},gke={...hke,link:Km(/^!?\[(label)\]\((.*?)\)/).replace(`label`,ch).getRegex(),reflink:Km(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,ch).getRegex()},_ke={...hke,emStrongRDelimAst:oke,emStrongLDelim:oh,url:Km(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,mke).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:Km(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},fh=e=>dh[e],ph=class{options;rules;lexer;constructor(e){this.options=e||Ym}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:TOe(e,` -`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=OOe(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=TOe(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:TOe(t[0],` -`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=TOe(t[0],` +`)}function Xm(e,t){return Th.parse(e,t)}var Zm,Qm,MOe,$m,NOe,POe,FOe,eh,IOe,LOe,th,nh,ROe,rh,zOe,ih,BOe,VOe,ah,HOe,oh,UOe,sh,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ch,lh,ZOe,QOe,uh,dh,$Oe,eke,fh,tke,nke,ph,rke,ike,mh,H,ake,oke,ske,hh,cke,lke,uke,gh,dke,fke,_h,vh,pke,mke,yh,hke,gke,bh,xh,Sh,_ke,Ch,wh,vke,Th,yke=o((()=>{Zm=wOe(),Qm={exec:()=>null},MOe=(()=>{try{return!0}catch{return!1}})(),$m={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,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+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},NOe=/^(?:[ \t]*(?:\n|$))+/,POe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,FOe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,eh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IOe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,LOe=/(?:[*+-]|\d{1,9}[.)])/,th=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,nh=Jm(th).replace(/bull/g,LOe).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(),ROe=Jm(th).replace(/bull/g,LOe).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(),rh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zOe=/^[^\n]+/,ih=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,BOe=Jm(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,ih).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),VOe=Jm(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,LOe).getRegex(),ah=`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`,HOe=/|$))/,oh=Jm(`^ {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`,HOe).replace(`tag`,ah).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),UOe=Jm(rh).replace(`hr`,eh).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`,ah).getRegex(),sh={blockquote:Jm(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,UOe).getRegex(),code:POe,def:BOe,fences:FOe,heading:IOe,hr:eh,html:oh,lheading:nh,list:VOe,newline:NOe,paragraph:UOe,table:Qm,text:zOe},WOe=Jm(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,eh).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`,ah).getRegex(),GOe={...sh,lheading:ROe,table:WOe,paragraph:Jm(rh).replace(`hr`,eh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,WOe).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`,ah).getRegex()},KOe={...sh,html:Jm(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,HOe).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:Qm,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Jm(rh).replace(`hr`,eh).replace(`heading`,` *#{1,6} *[^ +]`).replace(`lheading`,nh).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},qOe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,JOe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,YOe=/^( {2,}|\\)\n(?!\s*$)/,XOe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,MOe?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),fh=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,tke=Jm(fh,`u`).replace(/punct/g,ch).getRegex(),nke=Jm(fh,`u`).replace(/punct/g,uh).getRegex(),ph=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,rke=Jm(ph,`gu`).replace(/notPunctSpace/g,ZOe).replace(/punctSpace/g,lh).replace(/punct/g,ch).getRegex(),ike=Jm(ph,`gu`).replace(/notPunctSpace/g,$Oe).replace(/punctSpace/g,dh).replace(/punct/g,uh).getRegex(),mh=Jm(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ZOe).replace(/punctSpace/g,lh).replace(/punct/g,ch).getRegex(),H=Jm(/\\(punct)/,`gu`).replace(/punct/g,ch).getRegex(),ake=Jm(/^<(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(),oke=Jm(HOe).replace(`(?:-->|$)`,`-->`).getRegex(),ske=Jm(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,oke).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,cke=Jm(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,hh).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lke=Jm(/^!?\[(label)\]\[(ref)\]/).replace(`label`,hh).replace(`ref`,ih).getRegex(),uke=Jm(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ih).getRegex(),gh=Jm(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,lke).replace(`nolink`,uke).getRegex(),dke=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,fke={_backpedal:Qm,anyPunctuation:H,autolink:ake,blockSkip:eke,br:YOe,code:JOe,del:Qm,emStrongLDelim:tke,emStrongRDelimAst:rke,emStrongRDelimUnd:mh,escape:qOe,link:cke,nolink:uke,punctuation:QOe,reflink:lke,reflinkSearch:gh,tag:ske,text:XOe,url:Qm},_h={...fke,link:Jm(/^!?\[(label)\]\((.*?)\)/).replace(`label`,hh).getRegex(),reflink:Jm(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,hh).getRegex()},vh={...fke,emStrongRDelimAst:ike,emStrongLDelim:nke,url:Jm(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,dke).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:Jm(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},gke=e=>hke[e],bh=class{options;rules;lexer;constructor(e){this.options=e||Zm}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:OOe(e,` +`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=jOe(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=OOe(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:OOe(t[0],` +`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=OOe(t[0],` `).split(` `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o=f||!u.trim())s+=` `+m.slice(f);else{if(d||l.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=` `+u}!d&&!u.trim()&&(d=!0),r+=p+` -`,e=e.substring(p.length+1),l=m.slice(f)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let p=null,m;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(m=p[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!p,checked:m,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;ee.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` -`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=TOe(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=EOe(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),DOe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return DOe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(r=l.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:`em`,raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:`strong`,raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},mh=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ym,this.options.tokenizer=this.options.tokenizer||new ph,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 t={other:Zm,block:uh.normal,inline:vke.normal};this.options.pedantic?(t.block=uh.pedantic,t.inline=vke.pedantic):this.options.gfm&&(t.block=uh.gfm,t.inline=this.options.breaks?vke.breaks:vke.gfm),this.tokenizer.rules=t}static get rules(){return{block:uh,inline:vke}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Zm.carriageReturn,` -`),this.blockTokens(e,this.tokens);for(let e=0;e(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` +`,e=e.substring(p.length+1),l=m.slice(f)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let p=null,m;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(m=p[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!p,checked:m,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;ee.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=OOe(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=kOe(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),AOe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return AOe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(r=l.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:`em`,raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:`strong`,raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},xh=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Zm,this.options.tokenizer=this.options.tokenizer||new bh,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 t={other:$m,block:mke.normal,inline:yh.normal};this.options.pedantic?(t.block=mke.pedantic,t.inline=yh.pedantic):this.options.gfm&&(t.block=mke.gfm,t.inline=this.options.breaks?yh.breaks:yh.gfm),this.tokenizer.rules=t}static get rules(){return{block:mke,inline:yh}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace($m.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let e=0;e(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` `)?``:` `)+r.raw,n.text+=` @@ -491,16 +493,16 @@ ${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` `)?``:` `)+r.raw,n.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},yke=class{options;parser;constructor(e){this.options=e||Ym}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Zm.notSpaceStart)?.[0],i=e.replace(Zm.endingNewline,``)+` -`;return r?`
    `+(n?i:qm(i,!0))+`
    -`:`
    `+(n?i:qm(i,!0))+`
    +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},Sh=class{options;parser;constructor(e){this.options=e||Zm}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match($m.notSpaceStart)?.[0],i=e.replace($m.endingNewline,``)+` +`;return r?`
    `+(n?i:Ym(i,!0))+`
    +`:`
    `+(n?i:Ym(i,!0))+`
    `}blockquote({tokens:e}){return`
    ${this.parser.parse(e)}
    `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} `}hr(e){return`
    `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t `+r+` -`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+qm(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • +`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+Ym(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • `}checkbox({checked:e}){return``}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    `}table(e){let t=``,n=``;for(let t=0;t${r}`,` @@ -509,24 +511,24 @@ ${this.parser.parse(e)} `}tablerow({text:e}){return` ${e} `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` -`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${qm(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=COe(e);if(i===null)return r;e=i;let a=``+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=COe(e);if(i===null)return qm(n);e=i;let a=`${n}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:qm(e.text)}},bke=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},hh=class e{options;renderer;textRenderer;constructor(e){this.options=e||Ym,this.options.renderer=this.options.renderer||new yke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new bke}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new yke(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ph(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new gh;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=gh.passThroughHooks.has(n)?e=>{if(this.defaults.async&&gh.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return mh.lex(e,t??this.defaults)}parser(e,t){return hh.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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 t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?mh.lex:mh.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?hh.parse:hh.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?mh.lex:mh.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?hh.parse:hh.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` -Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+qm(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},_h=new xke,Jm.options=Jm.setOptions=function(e){return _h.setOptions(e),Jm.defaults=_h.defaults,SOe(Jm.defaults),Jm},Jm.getDefaults=xOe,Jm.defaults=Ym,Jm.use=function(...e){return _h.use(...e),Jm.defaults=_h.defaults,SOe(Jm.defaults),Jm},Jm.walkTokens=function(e,t){return _h.walkTokens(e,t)},Jm.parseInline=_h.parseInline,Jm.Parser=hh,Jm.parser=hh.parse,Jm.Renderer=yke,Jm.TextRenderer=bke,Jm.Lexer=mh,Jm.lexer=mh.lex,Jm.Tokenizer=ph,Jm.Hooks=gh,Jm.parse=Jm,Jm.options,Jm.setOptions,Jm.use,Jm.walkTokens,Jm.parseInline,hh.parse,mh.lex}));function Cke(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${Ym(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=EOe(e);if(i===null)return r;e=i;let a=``+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=EOe(e);if(i===null)return Ym(n);e=i;let a=`${n}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Ym(e.text)}},_ke=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},Ch=class e{options;renderer;textRenderer;constructor(e){this.options=e||Zm,this.options.renderer=this.options.renderer||new Sh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _ke}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Sh(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new bh(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new wh;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=wh.passThroughHooks.has(n)?e=>{if(this.defaults.async&&wh.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return xh.lex(e,t??this.defaults)}parser(e,t){return Ch.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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 t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?xh.lex:xh.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?Ch.parse:Ch.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?xh.lex:xh.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?Ch.parse:Ch.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+Ym(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Th=new vke,Xm.options=Xm.setOptions=function(e){return Th.setOptions(e),Xm.defaults=Th.defaults,TOe(Xm.defaults),Xm},Xm.getDefaults=wOe,Xm.defaults=Zm,Xm.use=function(...e){return Th.use(...e),Xm.defaults=Th.defaults,TOe(Xm.defaults),Xm},Xm.walkTokens=function(e,t){return Th.walkTokens(e,t)},Xm.parseInline=Th.parseInline,Xm.Parser=Ch,Xm.parser=Ch.parse,Xm.Renderer=Sh,Xm.TextRenderer=_ke,Xm.Lexer=xh,Xm.lexer=xh.lex,Xm.Tokenizer=bh,Xm.Hooks=wh,Xm.parse=Xm,Xm.options,Xm.setOptions,Xm.use,Xm.walkTokens,Xm.parseInline,Ch.parse,xh.lex}));function bke(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(` [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,` `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(` `)&&(o=String(e).split(` `).map(function(e,t){return t===0?e:``+i+e}).join(` -`)),a+=o+n[t+1]}),a}var wke=o((()=>{}));function Tke(e,{markdownAutoWrap:t}){return Cke(e.replace(//g,` +`)),a+=o+n[t+1]}),a}var xke=o((()=>{}));function Eh(e,{markdownAutoWrap:t}){return bke(e.replace(//g,` `).replace(/\n{2,}/g,` -`))}function Eke(e){return e.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}function Dke(e,t={}){let n=Tke(e,t),r=Jm.lexer(n),i=[[]],a=0;function o(e,t=`normal`){e.type===`text`?e.text.split(` -`).forEach((e,n)=>{n!==0&&(a++,i.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&i[a].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{o(t,e.type)}):e.type===`html`&&i[a].push({content:e.text,type:`normal`})}return N(o,`processNode`),r.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{o(e)}):e.type===`html`?i[a].push({content:e.text,type:`normal`}):i[a].push({content:e.raw,type:`normal`})}),i}function Oke(e){return e?`

    ${e.replace(/\\n|\n/g,`
    `)}

    `:``}function kke(e,{markdownAutoWrap:t}={}){let n=Jm.lexer(e);function r(e){return e.type===`text`?t===!1?e.text.replace(/\n */g,`
    `).replace(/ /g,` `):e.text.replace(/\n */g,`
    `):e.type===`strong`?`${e.tokens?.map(r).join(``)}`:e.type===`em`?`${e.tokens?.map(r).join(``)}`:e.type===`paragraph`?`

    ${e.tokens?.map(r).join(``)}

    `:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(P.warn(`Unsupported markdown: ${e.type}`),e.raw)}return N(r,`output`),n.map(r).join(``)}function vh(e,t,n,r){var i=e._tasks,a=e.fastdom,o,s=new Promise(function(e,l){o=a[t](function(){i.delete(s);try{e(r?n.call(r):n())}catch(e){l(e)}},r)});return i.set(s,o),s}function Ake(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function yh(e,t){return bh(e,[],Ake(t.content),t.type)}function bh(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?bh(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}function jke(e,t){if(e.some(({content:e})=>e.includes(` -`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Mke(e,t)}function Mke(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Mke(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=yh(t,a);n.push([r]),i.content&&e.unshift(i)}return Mke(e,t,n)}function Nke(e,t){t&&e.attr(`style`,t)}async function Pke(e,t,n,r,i=!1,a=ns(),o=0){let s=e.append(`foreignObject`);s.attr(`width`,`${Math.min(10*n,Zke)}px`),s.attr(`height`,`${Math.min(10*n,Zke)}px`);let l=s.append(`xhtml:div`),u=ps(t.label)?await hs(t.label.replace(gs.lineBreakRegex,` -`),a):ls(t.label,a),d=t.isNode?`nodeLabel`:`edgeLabel`,f=l.append(`span`);f.html(u),Nke(f,t.labelStyle),f.attr(`class`,`${d} ${r}`),Nke(l,t.labelStyle),l.style(`display`,`table-cell`),l.style(`white-space`,`nowrap`),l.style(`line-height`,`1.5`),n!==1/0&&(l.style(`max-width`,n+`px`),l.style(`text-align`,`center`)),l.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),i&&l.attr(`class`,`labelBkg`);let p=await Th.measure(()=>l.node().getBoundingClientRect());return p.width===n?(l.style(`display`,`table`),l.style(`white-space`,`break-spaces`),l.style(`width`,n+`px`)):p.widthFke(o,a,t)<=e,`checkWidth`),r=n(t)?[t]:jke(t,n);for(let e of r)zke(xh(l,u,a,i),e),u++}if(r){let e=l.node().getBBox();return s.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),o.node()}return l.node()}function Rke(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}function zke(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Rke(t.content)):r.text(` `+Rke(t.content))})}async function Bke(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,i)=>(n.push((async()=>{let n=`${r}:${i}`;return await TEe(n)?await gm(n,void 0,{class:`label-icon`}):``})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??``)}var Vke,Sh,Hke,Uke,Wke,Gke,Kke,qke,Ch,Jke,Yke,Xke,wh,Th,Zke,Eh,Dh=o((()=>{_m(),Gm(),Ls(),ar(),tr(),Ske(),wke(),Dp(),Vke=typeof performance<`u`&&typeof performance.now==`function`,Sh=N(()=>Vke?performance.now():0,`now`),Hke=`🧜 `,Uke=`Mermaid render`,Wke=`Mermaid`,Gke={parse:`tertiary`,prepare:`secondary`,measure:`primary`,layout:`primary-dark`,layoutCore:`error`,draw:`primary-light`,paint:`secondary-dark`,serialize:`tertiary-dark`,render:`primary-light`},class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{N(this,`Profiler`)}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(e))}tickSync(e,t){if(!this.enabled)return t();let n=Sh();try{return t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Sh()-n)}}async tick(e,t){if(!this.enabled)return t();let n=Sh();try{return await t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Sh()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let e=this.roots.at(-1),t=this.runLabel??e?.name;return e&&(this.records.push({label:t??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(e,t)),this.runLabel=void 0,e}begin(e){if(!this.enabled)return;let t={name:e,start:Sh(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(t):this.roots.push(t),this.stack.push(t),Vke&&typeof performance.mark==`function`)try{performance.mark(`${Hke}${e} \u25B6`)}catch{}}end(){if(!this.enabled)return;let e=this.stack.pop();if(!e)return;let t=Sh();if(e.duration=t-e.start,Vke&&typeof performance.measure==`function`)try{performance.measure(`${Hke}${e.name}`,{start:e.start,end:t,detail:{devtools:{dataType:`track-entry`,track:Uke,trackGroup:Wke,color:Gke[e.name]??`primary`,tooltipText:`${e.name} \u2014 ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,t){if(!this.enabled)return t();this.begin(e);try{return await t()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),t){if(!e)return;let n=e.duration,r=t&&t!==e.name?`${e.name} [${t}]`:e.name,i=[`ms % phase`],a=N((e,t)=>{let r=` `.repeat(t),o=e.duration.toFixed(1).padStart(8),s=n>0?`${(e.duration/n*100).toFixed(0).padStart(3)}%`:` -`;i.push(`${o} ${s} ${r}${e.name}`);for(let n of e.children)a(n,t+1);if(e.children.length>0){let t=e.children.reduce((e,t)=>e+t.duration,0),n=e.duration-t;if(n>.5){let e=n.toFixed(1).padStart(8);i.push(`${e} ${r} (self)`)}}},`walk`);a(e,0);let o=Object.keys(this.buckets);if(o.length>0){i.push(`—— buckets (summed) ——`);for(let e of o)i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`)}console.log(`${Hke}mermaid render profile \xB7 ${r} +`))}function Ske(e){return e.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}function Dh(e,t={}){let n=Eh(e,t),r=Xm.lexer(n),i=[[]],a=0;function o(e,t=`normal`){e.type===`text`?e.text.split(` +`).forEach((e,n)=>{n!==0&&(a++,i.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&i[a].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{o(t,e.type)}):e.type===`html`&&i[a].push({content:e.text,type:`normal`})}return N(o,`processNode`),r.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{o(e)}):e.type===`html`?i[a].push({content:e.text,type:`normal`}):i[a].push({content:e.raw,type:`normal`})}),i}function Oh(e){return e?`

    ${e.replace(/\\n|\n/g,`
    `)}

    `:``}function Cke(e,{markdownAutoWrap:t}={}){let n=Xm.lexer(e);function r(e){return e.type===`text`?t===!1?e.text.replace(/\n */g,`
    `).replace(/ /g,` `):e.text.replace(/\n */g,`
    `):e.type===`strong`?`${e.tokens?.map(r).join(``)}`:e.type===`em`?`${e.tokens?.map(r).join(``)}`:e.type===`paragraph`?`

    ${e.tokens?.map(r).join(``)}

    `:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(P.warn(`Unsupported markdown: ${e.type}`),e.raw)}return N(r,`output`),n.map(r).join(``)}function wke(e,t,n,r){var i=e._tasks,a=e.fastdom,o,s=new Promise(function(e,l){o=a[t](function(){i.delete(s);try{e(r?n.call(r):n())}catch(e){l(e)}},r)});return i.set(s,o),s}function Tke(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function Eke(e,t){return kh(e,[],Tke(t.content),t.type)}function kh(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?kh(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}function Dke(e,t){if(e.some(({content:e})=>e.includes(` +`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Oke(e,t)}function Oke(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Oke(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=Eke(t,a);n.push([r]),i.content&&e.unshift(i)}return Oke(e,t,n)}function Ah(e,t){t&&e.attr(`style`,t)}async function kke(e,t,n,r,i=!1,a=Xo(),o=0){let s=e.append(`foreignObject`);s.attr(`width`,`${Math.min(10*n,Uke)}px`),s.attr(`height`,`${Math.min(10*n,Uke)}px`);let l=s.append(`xhtml:div`),u=as(t.label)?await ss(t.label.replace(cs.lineBreakRegex,` +`),a):ns(t.label,a),d=t.isNode?`nodeLabel`:`edgeLabel`,f=l.append(`span`);f.html(u),Ah(f,t.labelStyle),f.attr(`class`,`${d} ${r}`),Ah(l,t.labelStyle),l.style(`display`,`table-cell`),l.style(`white-space`,`nowrap`),l.style(`line-height`,`1.5`),n!==1/0&&(l.style(`max-width`,n+`px`),l.style(`text-align`,`center`)),l.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),i&&l.attr(`class`,`labelBkg`);let p=await Rh.measure(()=>l.node().getBoundingClientRect());return p.width===n?(l.style(`display`,`table`),l.style(`white-space`,`break-spaces`),l.style(`width`,n+`px`)):p.widthjke(o,a,t)<=e,`checkWidth`),r=n(t)?[t]:Dke(t,n);for(let e of r)Mh(Ake(l,u,a,i),e),u++}if(r){let e=l.node().getBBox();return s.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),o.node()}return l.node()}function Nke(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}function Mh(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Nke(t.content)):r.text(` `+Nke(t.content))})}async function Nh(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,i)=>(n.push((async()=>{let n=`${r}:${i}`;return await DEe(n)?await ym(n,void 0,{class:`label-icon`}):``})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??``)}var Pke,Ph,Fh,Ih,Fke,Ike,Lke,Lh,Rke,zke,Bke,Vke,Hke,Rh,Uke,zh,Bh=o((()=>{bm(),qm(),Os(),er(),Zn(),yke(),xke(),Dp(),Pke=typeof performance<`u`&&typeof performance.now==`function`,Ph=N(()=>Pke?performance.now():0,`now`),Fh=`🧜 `,Ih=`Mermaid render`,Fke=`Mermaid`,Ike={parse:`tertiary`,prepare:`secondary`,measure:`primary`,layout:`primary-dark`,layoutCore:`error`,draw:`primary-light`,paint:`secondary-dark`,serialize:`tertiary-dark`,render:`primary-light`},class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{N(this,`Profiler`)}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(e))}tickSync(e,t){if(!this.enabled)return t();let n=Ph();try{return t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Ph()-n)}}async tick(e,t){if(!this.enabled)return t();let n=Ph();try{return await t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Ph()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let e=this.roots.at(-1),t=this.runLabel??e?.name;return e&&(this.records.push({label:t??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(e,t)),this.runLabel=void 0,e}begin(e){if(!this.enabled)return;let t={name:e,start:Ph(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(t):this.roots.push(t),this.stack.push(t),Pke&&typeof performance.mark==`function`)try{performance.mark(`${Fh}${e} \u25B6`)}catch{}}end(){if(!this.enabled)return;let e=this.stack.pop();if(!e)return;let t=Ph();if(e.duration=t-e.start,Pke&&typeof performance.measure==`function`)try{performance.measure(`${Fh}${e.name}`,{start:e.start,end:t,detail:{devtools:{dataType:`track-entry`,track:Ih,trackGroup:Fke,color:Ike[e.name]??`primary`,tooltipText:`${e.name} \u2014 ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,t){if(!this.enabled)return t();this.begin(e);try{return await t()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),t){if(!e)return;let n=e.duration,r=t&&t!==e.name?`${e.name} [${t}]`:e.name,i=[`ms % phase`],a=N((e,t)=>{let r=` `.repeat(t),o=e.duration.toFixed(1).padStart(8),s=n>0?`${(e.duration/n*100).toFixed(0).padStart(3)}%`:` -`;i.push(`${o} ${s} ${r}${e.name}`);for(let n of e.children)a(n,t+1);if(e.children.length>0){let t=e.children.reduce((e,t)=>e+t.duration,0),n=e.duration-t;if(n>.5){let e=n.toFixed(1).padStart(8);i.push(`${e} ${r} (self)`)}}},`walk`);a(e,0);let o=Object.keys(this.buckets);if(o.length>0){i.push(`—— buckets (summed) ——`);for(let e of o)i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`)}console.log(`${Fh}mermaid render profile \xB7 ${r} ${i.join(` -`)}`)}},globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:`0.0.0`},N(Tke,`preprocessMarkdown`),N(Eke,`nonMarkdownToLines`),N(Dke,`markdownToLines`),N(Oke,`nonMarkdownToHTML`),N(kke,`markdownToHTML`),Kke=(function(e){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function n(){var n=this;n.reads=[],n.writes=[],n.raf=t.bind(e)}N(n,`FastDom`),n.prototype={constructor:n,runTasks:N(function(e){for(var t;t=e.shift();)t()},`runTasks`),measure:N(function(e,t){var n=t?e.bind(t):e;return this.reads.push(n),r(this),n},`measure`),mutate:N(function(e,t){var n=t?e.bind(t):e;return this.writes.push(n),r(this),n},`mutate`),clear:N(function(e){return a(this.reads,e)||a(this.writes,e)},`clear`),extend:N(function(e){if(typeof e!=`object`)throw Error(`expected object`);var t=Object.create(this);return o(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},`extend`),catch:null};function r(e){e.scheduled||(e.scheduled=!0,e.raf(i.bind(null,e)))}N(r,`scheduleFlush`);function i(e){var t=e.writes,n=e.reads,i;try{n.length,e.runTasks(n),t.length,e.runTasks(t)}catch(e){i=e}if(e.scheduled=!1,(n.length||t.length)&&r(e),i){if(i.message,e.catch)e.catch(i);else throw i}}N(i,`flush`);function a(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}N(a,`remove`);function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}return N(o,`mixin`),e.fastdom=e.fastdom||new n})(typeof window<`u`?window:globalThis),qke={initialize:N(function(){this._tasks=new Map},`initialize`),mutate:N(function(e,t){return vh(this,`mutate`,e,t)},`mutate`),measure:N(function(e,t){return vh(this,`measure`,e,t)},`measure`),clear:N(function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)},`clear`)},N(vh,`create`),{initialize:Ch,mutate:Jke,measure:Yke,clear:Xke}=qke,wh=qke,Th=Kke.extend({raf(e){typeof queueMicrotask==`function`?queueMicrotask(e):setTimeout(e,0)}}).extend(wh),N(Ake,`splitTextToChars`),N(yh,`splitWordToFitWidth`),N(bh,`splitWordToFitWidthRecursion`),N(jke,`splitLineToFitWidth`),N(Mke,`splitLineToFitWidthRecursion`),N(Nke,`applyStyle`),Zke=16384,N(Pke,`addHtmlSpan`),N(xh,`createTspan`),N(Fke,`computeWidthOfText`),N(Ike,`computeDimensionOfText`),N(Lke,`createFormattedText`),N(Rke,`decodeHTMLEntities`),N(zke,`updateTextContentAndStyles`),N(Bke,`replaceIconSubstring`),Eh=N(async(e,t=``,{style:n=``,isTitle:r=!1,classes:i=``,useHtmlLabels:a=!0,markdown:o=!0,isNode:s=!0,width:l=200,minWidth:u=0,addSvgBackground:d=!1}={},f)=>{if(P.debug(`XYZ createText`,t,n,r,i,a,s,`addSvgBackground: `,d),a){let r=o?kke(t,f):Oke(t),a=await Bke(Um(r),f),p=t.replace(/\\\\/g,`\\`);return await Pke(e,{isNode:s,label:ps(t)?p:a,labelStyle:n.replace(`fill:`,`color:`)},l,i,d,f,u)}{let i=Um(t.replace(//g,`
    `)),a=Lke(l,e,o?Dke(i.replace(`
    `,`
    `),f):Eke(i),t?d:!1,!s);if(s){/stroke:/.exec(n)&&(n=n.replace(`stroke:`,`lineColor:`));let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);Qc(a).attr(`style`,e)}else{let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);Qc(a).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let t=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);Qc(a).select(`text`).attr(`style`,t)}return r?Qc(a).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):Qc(a).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),a}},`createText`)})),Oh,kh,Qke,Ah,jh,$ke,Mh,Nh,Ph,Fh,Ih=o((()=>{tr(),Oh=new Set([`redux-color`,`redux-dark-color`]),kh=12,Qke=64,Ah=N(e=>Array.isArray(e)&&e.length>0,`hasPalette`),jh=N((e,t)=>e!=null&&Oh.has(e)&&Ah(t),`isColorTheme`),$ke=/^[\w-]+$/,Mh=N(e=>{let t=typeof e==`string`||typeof e==`number`?String(e):``;return $ke.test(t)?t:`classic`},`safeLook`),Nh=N(e=>Ah(e)?e.length:0,`paletteSlotCount`),Ph=N((e,t)=>Ah(t)?Nh(t):typeof e==`number`&&Number.isInteger(e)&&e>0&&e<=Qke?e:kh,`colorSlotCount`),Fh=N((e,t,n,r)=>{if(t===void 0||!jh(n,r))return;let i=t%Nh(r);e.attr(`data-color-id`,`color-${i}`)},`stampColorSlot`)}));function eAe(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function tAe(e,t){return e[0]===t[0]&&e[1]===t[1]}function nAe(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)eAe(e,s,i);let l=function(e,t,n){let r=[];for(let t of e){let e=[...t];tAe(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return i;let o=[],s=a[0].ymin,l=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach((e=>{o.push({s,edge:e})}))}if(o=o.filter((e=>!(e.edge.ymax<=s))),o.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(n!==1||l%t==0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),l++}return i}(o,a,r);if(i){for(let e of o)eAe(e,s,-i);(function(e,t,n){let r=[];e.forEach((e=>r.push(...e))),eAe(r,t,n)})(l,s,-i)}return l}function Lh(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),nAe(e,r,n,i||1)}function Rh(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}function zh(e,t){return e.type===t}function rAe(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:PAe,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:FAe,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:IAe,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!zh(a,IAe);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return rAe(`M0,0`+e);i++,o=Qh[a.text],r=a.text}else zh(a,FAe)?o=Qh[r]:(i++,o=Qh[a.text],r=a.text);if(!(i+or%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function aAe(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:d}of e){switch(u){case`M`:t.push({key:`M`,data:[...d]}),[r,i]=d,[a,o]=d;break;case`C`:t.push({key:`C`,data:[...d]}),r=d[4],i=d[5],s=d[2],l=d[3];break;case`L`:t.push({key:`L`,data:[...d]}),[r,i]=d;break;case`H`:r=d[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=d[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-l)):(e=r,a=i),t.push({key:`C`,data:[e,a,...d]}),s=d[0],l=d[1],r=d[2],i=d[3];break}case`T`:{let[e,a]=d,o=0,u=0;n===`Q`||n===`T`?(o=r+(r-s),u=i+(i-l)):(o=r,u=i);let f=r+2*(o-r)/3,p=i+2*(u-i)/3,m=e+2*(o-e)/3,h=a+2*(u-a)/3;t.push({key:`C`,data:[f,p,m,h,e,a]}),s=o,l=u,r=e,i=a;break}case`Q`:{let[e,n,a,o]=d,u=r+2*(e-r)/3,f=i+2*(n-i)/3,p=a+2*(e-a)/3,m=o+2*(n-o)/3;t.push({key:`C`,data:[u,f,p,m,a,o]}),s=e,l=n,r=a,i=o;break}case`A`:{let e=Math.abs(d[0]),n=Math.abs(d[1]),a=d[2],o=d[3],s=d[4],l=d[5],u=d[6];e===0||n===0?(t.push({key:`C`,data:[r,i,l,u,l,u]}),r=l,i=u):(r!==l||i!==u)&&(oAe(r,i,l,u,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=l,i=u);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=u}return t}function Bh(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function oAe(e,t,n,r,i,a,o,s,l,u){let d=(f=o,Math.PI*f/180);var f;let p=[],m=0,h=0,g=0,_=0;if(u)[m,h,g,_]=u;else{[e,t]=Bh(e,t,-d),[n,r]=Bh(n,r,-d);let o=(e-n)/2,u=(t-r)/2,f=o*o/(i*i)+u*u/(a*a);f>1&&(f=Math.sqrt(f),i*=f,a*=f);let p=i*i,v=a*a,y=p*v-p*u*u-v*o*o,b=p*u*u+v*o*o,x=(s===l?-1:1)*Math.sqrt(Math.abs(y/b));g=x*i*u/a+(e+n)/2,_=x*-a*o/i+(t+r)/2,m=Math.asin(parseFloat(((t-_)/a).toFixed(9))),h=Math.asin(parseFloat(((r-_)/a).toFixed(9))),eh&&(m-=2*Math.PI),!l&&h>m&&(h-=2*Math.PI)}let v=h-m;if(Math.abs(v)>120*Math.PI/180){let e=h,t=n,s=r;h=l&&h>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=oAe(n=g+i*Math.cos(h),r=_+a*Math.sin(h),t,s,i,a,o,0,l,[h,e,g,_])}v=h-m;let y=Math.cos(m),b=Math.sin(m),x=Math.cos(h),S=Math.sin(h),C=Math.tan(v/4),w=4/3*i*C,T=4/3*a*C,E=[e,t],D=[e+w*b,t-T*y],O=[n+w*S,r-T*x],k=[n,r];if(D[0]=2*E[0]-D[0],D[1]=2*E[1]-D[1],u)return[D,O,k].concat(p);{p=[D,O,k].concat(p);let e=[];for(let t=0;t2){let i=[];for(let t=0;t2*Math.PI&&(m=0,h=2*Math.PI);let g=2*Math.PI/l.curveStepCount,_=Math.min(g/2,(h-m)/2),v=bAe(_,u,d,f,p,m,h,1,l);if(!l.disableMultiStroke){let e=bAe(_,u,d,f,p,m,h,1.5,l);v.push(...e)}return o&&(s?v.push(...Kh(u,d,u+f*Math.cos(m),d+p*Math.sin(m),l),...Kh(u,d,u+f*Math.cos(h),d+p*Math.sin(h),l)):v.push({op:`lineTo`,data:[u,d]},{op:`lineTo`,data:[u+f*Math.cos(m),d+p*Math.sin(m)]})),{type:`path`,ops:v}}function fAe(e,t){let n=aAe(iAe(rAe(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...Kh(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,l,u]=o;r.push(...xAe(e,n,i,s,l,u,a,t)),a=[l,u];break}case`Z`:r.push(...Kh(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function pAe(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+Gh(e,t),r[0][1]+Gh(e,t)]});for(let a=1;a500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>s&&(d=l/10);let f=d/2,p=.2+.2*mAe(i),m=i.bowing*i.maxRandomnessOffset*(r-t)/200,h=i.bowing*i.maxRandomnessOffset*(e-n)/200;m=Gh(m,i,u),h=Gh(h,i,u);let g=[],_=()=>Gh(f,i,u),v=()=>Gh(d,i,u),y=i.preserveVertices;return a&&(o?g.push({op:`move`,data:[e+(y?0:_()),t+(y?0:_())]}):g.push({op:`move`,data:[e+(y?0:Gh(d,i,u)),t+(y?0:Gh(d,i,u))]})),o?g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+_(),h+t+(r-t)*p+_(),m+e+2*(n-e)*p+_(),h+t+2*(r-t)*p+_(),n+(y?0:_()),r+(y?0:_())]}):g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+v(),h+t+(r-t)*p+v(),m+e+2*(n-e)*p+v(),h+t+2*(r-t)*p+v(),n+(y?0:v()),r+(y?0:v())]}),g}function _Ae(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+Gh(t,n),e[0][1]+Gh(t,n)]),r.push([e[0][0]+Gh(t,n),e[0][1]+Gh(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n)):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],l=e[t+3],u=Jh(a,o,r),d=Jh(o,s,r),f=Jh(s,l,r),p=Jh(u,d,r),m=Jh(d,f,r),h=Jh(p,m,r);TAe([a,u,p,h],0,n,i),TAe([h,m,f,l],0,n,i)}var a,o;return i}function EAe(e,t){return Yh(e,0,e.length,t)}function Yh(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],l=0,u=1;for(let r=t+1;rl&&(l=t,u=r)}return Math.sqrt(l)>r?(Yh(e,t,u+1,r,a),Yh(e,u,n,r,a)):(a.length||a.push(o),a.push(s)),a}function Xh(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?Yh(r,0,r.length,n):r}var DAe,OAe,kAe,AAe,jAe,MAe,Zh,NAe,PAe,FAe,IAe,Qh,$h,eg,tg,ng,rg,ig,ag,og=o((()=>{DAe=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=Lh(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}},OAe=class extends DAe{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=Lh(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(let[e,t]of r)Rh([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},kAe=class extends DAe{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},AAe=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=Lh(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=Rh(o),s=e/r,l=Math.ceil(s)-1,u=e-l*r,d=(o[0][0]+o[1][0])/2-r/4,f=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=Rh(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e{let i=Rh(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e2*Math.PI&&(f=0,p=2*Math.PI);let m=(p-f)/o.curveStepCount,h=[];for(let e=f;e<=p;e+=m)h.push([s+u*Math.cos(e),l+d*Math.sin(e)]);return h.push([s+u*Math.cos(p),l+d*Math.sin(p)]),h.push([s,l]),Uh([h],o)}(e,t,n,r,i,a,l))}return l.stroke!==eg&&u.push(d),this._d(`arc`,u,l)}curve(e,t){let n=this._o(t),r=[],i=lAe(e,n);if(n.fill&&n.fill!==eg){if(n.fillStyle===`solid`){let t=lAe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...Xh(CAe([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...Xh(CAe(r),10,(1+n.roughness)/2))}t.length&&r.push(Uh([t],n))}}return n.stroke!==eg&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=cAe(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(pAe([e],n)):r.push(Uh([e],n))),n.stroke!==eg&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==eg,a=n.stroke!==eg,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=aAe(iAe(rAe(e))),i=[],a=[],o=[0,0],s=[],l=()=>{s.length>=4&&a.push(...Xh(s,t)),s=[]},u=()=>{l(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:u(),o=[t[0],t[1]],a.push(o);break;case`L`:l(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:l(),a.push([o[0],o[1]])}if(u(),!n)return i;let d=[];for(let e of i){let t=EAe(e,n);t.length&&d.push(t)}return d}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=fAe(e,n);if(i){if(n.fillStyle===`solid`){if(s.length===1){let t=fAe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(pAe(s,n))}else r.push(Uh(s,n))}return a&&(o?s.forEach((e=>{r.push(cAe(e,!1,n))})):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:eg};break;case`fillPath`:t={d:this.opsToPath(e),stroke:eg,strokeWidth:0,fill:n.fill||eg};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||eg,strokeWidth:n,fill:eg}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},ng=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new tg(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},rg=`http://www.w3.org/2000/svg`,ig=class{constructor(e,t){this.svg=e,this.gen=new tg(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(rg,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS(rg,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS(rg,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(rg,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),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,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},ag={canvas:(e,t)=>new ng(e,t),svg:(e,t)=>new ig(e,t),generator:e=>new tg(e),newSeed:()=>tg.newSeed()}}));async function LAe(e){let t=e.getElementsByTagName(`img`);if(!t||t.length===0)return;let n=!sg(e);await Promise.all([...t].map(e=>new Promise(t=>{function r(){if(e.style.display=`flex`,e.style.flexDirection=`column`,n){let t=As().fontSize?As().fontSize:window.getComputedStyle(document.body).fontSize,[n=Wo.fontSize]=Vm(t),r=n*5+`px`;e.style.minWidth=r,e.style.maxWidth=r}else e.style.width=`100%`;t(e)}N(r,`setupImage`),setTimeout(()=>{e.complete&&r()}),e.addEventListener(`error`,r),e.addEventListener(`load`,r)})))}function sg(e){return e.nodeType===$g?e.textContent?.trim()!==``:e.nodeType!==Gje||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(sg)}function cg(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}function lg(e,t,n,r,i,a){let o=[],s=n-e,l=r-t,u=s/a,d=2*Math.PI/u,f=t+l/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=f+i*Math.sin(d*(n-e));o.push({x:n,y:r})}return o}function ug(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ie.tagName===`path`),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),r=t.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);n.setAttribute(`d`,r);let i=t.find(e=>e.getAttribute(`fill`)!==`none`),a=t.find(e=>e.getAttribute(`stroke`)!==`none`),o=N((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(i){let e={fill:o(i,`fill`),"fill-opacity":o(i,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}if(a){let e={stroke:o(a,`stroke`),"stroke-width":o(a,`stroke-width`)??`1`,"stroke-opacity":o(a,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return s.appendChild(n),s}function dg(e,t){return e.intersect(t)}function zAe(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),u=Math.abs(t*n*o/l);r.x0}function pg(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=r-e.width/2-o,u=i-e.height/2-s;for(let r=0;r1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return au,`:first-child`);return d.attr(`class`,`anchor`).attr(`style`,zm(o)),i_(t,d),t.intersect=function(e){return P.info(`Circle intersect`,t,1,e),c_.circle(t,1,e)},a}function hg(e,t,n,r,i,a,o){let s=(e+n)/2,l=(t+r)/2,u=Math.atan2(r-t,n-e),d=(n-e)/2,f=(r-t)/2,p=d/i,m=f/a,h=Math.sqrt(p**2+m**2);if(h>1)throw Error(`The given radii are too small to create an arc between the points.`);let g=Math.sqrt(1-h**2),_=s+g*a*Math.sin(u)*(o?-1:1),v=l-g*i*Math.cos(u)*(o?-1:1),y=Math.atan2((t-v)/a,(e-_)/i),b=Math.atan2((r-v)/a,(n-_)/i)-y;o&&b<0&&(b+=2*Math.PI),!o&&b>0&&(b-=2*Math.PI);let x=[];for(let e=0;e<20;e++){let t=y+e/19*b,n=_+i*Math.cos(t),r=v+a*Math.sin(t);x.push({x:n,y:r})}return x}function HAe(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}async function UAe(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=N(e=>e+o,`calcTotalHeight`),l=N(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:u,bbox:d}=await n_(e,t,a_(t)),f=s(t?.height?t?.height:d.height),[p,m]=l(f),h=HAe(f,p,m),g=(t?.width?t?.width:d.width)+a*2+h-h,_=f,{cssStyles:v}=t,y=[{x:g/2,y:-_/2},{x:-g/2,y:-_/2},...hg(-g/2,-_/2,-g/2,_/2,p,m,!1),{x:g/2,y:_/2},...hg(g/2,_/2,g/2,-_/2,p,m,!0)],b=ag.svg(u),x=om(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=cg(y),C=b.path(S,x),w=u.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(${p/2}, 0)`),i_(t,w),t.intersect=function(e){return c_.polygon(t,y,e)},u}async function gg(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await n_(e,t,a_(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,80),f=Math.max(Math.min(d*.08,12),5),p=Math.max(o.height+u*2+f,t.height??0),m=-p/2+f,h=p/2,g=d*.72,_=[`M${-d/2},${m}`,`L${-g/2},${h}`,`A${g/2},${f} 0 0 0 ${g/2},${h}`,`L${d/2},${m}`,`A${d/2},${f} 0 0 0 ${-d/2},${m}`,`Z`].join(` `),{cssStyles:v}=t,y=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=ag.svg(a).path(_,om(t,{}));y.node()?.appendChild(e),v&&y.attr(`style`,v)}else y.append(`path`).attr(`d`,_).attr(`style`,i);y.append(`ellipse`).attr(`cx`,0).attr(`cy`,m).attr(`rx`,d/2).attr(`ry`,f).attr(`style`,`fill:none;stroke:${l};stroke-width:1px`),i_(t,y);let b=m+(h-m)/2;s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${b-o.height/2-(o.y-(o.top??0))})`);let x=N((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*f*Math.sin(a)}}),`arc`),S=[...x(d/2,m,-1),...x(g/2,h,1).reverse()];return t.intersect=function(e){return c_.polygon(t,S,e)},a}function WAe(e){let{themeVariables:t}=As(),n=t.clusterBkg,r=t.clusterBorder;switch(e){case`flow`:return{rx:10,fill:`none`,stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:`flow-collapsed`};default:return{rx:$je,fill:n,stroke:r,cssClass:`collapsed-group`}}}async function GAe(e,t){let n=WAe(t.metadata?.containerType),{fill:r,stroke:i}=n,{nodeStyles:a}=am(t),{shapeSvg:o,bbox:s}=await n_(e,t,a_(t)),{theme:l,themeVariables:u}=As();Fh(o,t.colorIndex,l,u.borderColorArray);let d=t.padding??8,f=s.height,p=Math.max(s.width+d*2,Qje,t?.width??0),m=Math.max(f+Zje+d_+d*2,t?.height??0),h=-p/2,g=-m/2,_=-(Zje+d_)/2,v=o.select(`.label`);v&&(t.useHtmlLabels??os(As())?v.attr(`transform`,`translate(${-s.width/2}, ${-s.height/2+_})`):v.attr(`transform`,`translate(0, ${-s.height/2+_})`));let y;if(t.look===`handDrawn`){let e=ag.svg(o),a=om(t,{fill:r,stroke:i,...n.strokeWidth===void 0?{}:{strokeWidth:n.strokeWidth},...r===`none`?{fillWeight:0}:{fillStyle:`solid`}}),s=e.path(l_(h,g,p,m,n.rx),a);y=o.insert(()=>s,`:first-child`),y.attr(`class`,`basic label-container `+n.cssClass).attr(`style`,zm(t.cssStyles))}else y=o.insert(`rect`,`:first-child`),y.attr(`class`,`basic label-container `+n.cssClass).attr(`style`,a).attr(`rx`,n.rx).attr(`ry`,n.rx).attr(`x`,h).attr(`y`,g).attr(`width`,p).attr(`height`,m).attr(`fill`,r).attr(`stroke`,i),n.strokeWidth!==void 0&&y.attr(`stroke-width`,n.strokeWidth+`px`);let b=g+d+f+Zje;o.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,h+8).attr(`y1`,b).attr(`x2`,h+p-8).attr(`y2`,b).attr(`stroke`,i).attr(`stroke-dasharray`,`3, 3`);let x=b+d_/2;for(let e=-1;e<=1;e++)o.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,x).attr(`r`,2.5).attr(`fill`,i);return i_(t,y),t.calcIntersect=function(e,t){return c_.rect(e,t)},t.intersect=function(e){return c_.rect(t,e)},o}function _g(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}async function KAe(e,t){let n=t,{shapeSvg:r,bbox:i}=await n_(e,n,a_(n)),a=n.padding??0,o=i.height+2*a,s=o/2,l=i.width+2*s+a,u=n.width??0,d=n.positioned&&(n.widthInColumns??1)>1&&u>l?u:l,f=nMe(n.directions??[],i,n,d),p=_g(r,d,o,f);return p.attr(`style`,n.style??null),i_(n,p),n.intersect=function(e){return c_.polygon(n,f,e)},r}async function qAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await n_(e,t,a_(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+18,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=ag.svg(a).path(l_(-d/2,p,d,f,12),om(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`line`).attr(`x1`,-d/2).attr(`y1`,p+18).attr(`x2`,d/2).attr(`y2`,p+18).attr(`style`,`stroke:${l};stroke-width:1px`);for(let e=0;e<3;e++)h.append(`circle`).attr(`cx`,-d/2+12+e*9).attr(`cy`,p+9).attr(`r`,2.5).attr(`style`,`fill:${l};stroke:none`);h.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-d/2+44).attr(`y`,p+4).attr(`width`,Math.max(d-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),i_(t,h);let g=p+18+(f-18)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return c_.rect(t,e)},a}async function JAe(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=(t?.width??l.width)+(t.look===`neo`?a*2:a+rMe),d=(t?.height??l.height)+(t.look===`neo`?o*2:o),f=u,p=-d,m=[{x:0+rMe,y:p},{x:f,y:p},{x:f,y:0},{x:0,y:0},{x:0,y:p+rMe},{x:0+rMe,y:p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{}),r=cg(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=_g(s,u,d,m);return r&&h.attr(`style`,r),i_(t,h),t.intersect=function(e){return c_.polygon(t,m,e)},s}function YAe(e,t){let{nodeStyles:n}=am(t);t.label=``;let r=e.insert(`g`).attr(`class`,a_(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=ag.svg(r),l=om(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=cg(o),d=s.path(u,l),f=r.insert(()=>d,`:first-child`);return i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return c_.polygon(t,o,e)},r}async function XAe(e,t,n){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s}=await n_(e,t,a_(t),{ignoreMinWidth:!0}),l=n?.padding??s,u=Math.sqrt(o.width**2+o.height**2)/2,d=t.look===`neo`?u+16:u+l,f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=ag.svg(a),n=om(t,{}),r=e.circle(0,0,d*2,n);f=a.insert(()=>r,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,zm(p))}else f=a.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`r`,d).attr(`cx`,0).attr(`cy`,0);return i_(t,f),t.calcIntersect=function(e,t){let n=e.width/2;return c_.circle(e,n,t)},t.intersect=function(e){return P.info(`Circle intersect`,t,d,e),c_.circle(t,d,e)},a}async function ZAe(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await n_(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,l=n.positioned?n.width??0:i.width+s,u=n.positioned?n.height??0:i.height+s,d=n.positioned?-l/2:-i.width/2-a,f=n.positioned?-u/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u),i_(n,o),n.intersect=function(e){return c_.rect(n,e)},r}async function QAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await n_(e,t,a_(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+20,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=ag.svg(a).path(l_(-d/2,p,d,f,12),om(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`text`).attr(`x`,-d/2+12).attr(`y`,p+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(`>_`),i_(t,h);let g=p+20+(f-20)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return c_.rect(t,e)},a}function $Ae(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y} - M ${i.x},${i.y} L ${o.x},${o.y}`}function eje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n,t.label=``;let i=e.insert(`g`).attr(`class`,a_(t)).attr(`id`,t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:o}=t,s=ag.svg(i),l=om(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=s.circle(0,0,a*2,l),d=$Ae(a),f=s.path(d,l),p=i.insert(()=>u,`:first-child`);return p.insert(()=>f),p.attr(`class`,`outer-path`),o&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,o),r&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,r),i_(t,p),t.intersect=function(e){return P.info(`crossedCircle intersect`,t,{radius:a,point:e}),c_.circle(t,a,e)},i}function vg(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${f}, 0)`),o.attr(`transform`,`translate(${-u/2+f-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),i_(t,S),t.intersect=function(e){return c_.polygon(t,h,e)},i}function yg(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${-f}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),i_(t,S),t.intersect=function(e){return c_.polygon(t,h,e)},i}function bg(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),T.insert(()=>b,`:first-child`),T.insert(()=>S,`:first-child`),T.attr(`class`,`text`),p&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(${f-f/4}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),i_(t,T),t.intersect=function(e){return c_.polygon(t,g,e)},i}async function xg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=Math.max(5,l.height+o*2,t?.height??0),d=u/2,f=d-Math.sqrt(Math.max(0,d**2-(l.height/2)**2)),p=Math.max(u/4,f),m=Math.max(20,l.width+a*2+p*2,(l.width+a*2)*1.25,t?.width??0),{cssStyles:h}=t,g=ag.svg(s),_=om(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=m,y=u,b=v-d,x=y/4,S=[{x:b,y:0},{x,y:0},{x:0,y:y/2},{x,y},{x:b,y},...ug(-b,-y/2,d,50,270,90)],C=cg(S),w=g.path(C,_),T=s.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),T.attr(`transform`,`translate(${-m/2}, ${-u/2})`),i_(t,T),t.intersect=function(e){return c_.polygon(t,S,e)},s}async function ije(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await n_(e,t,a_(t)),s=t.padding??20,l=Math.max(a.width+s*2,t.width??0,100),u=Math.min(Math.max(l*.23,16),56),d=u*.27,f=Math.max(a.height+s*2,t.height?t.height-(2*u-d):0),p=Math.min(l*.177,f*.45),m=f+2*u-d,h=-m/2,g=h+2*u-d,_=i.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:v}=t;if(t.look===`handDrawn`){let e=ag.svg(i),n=om(t,{}),r=e.path(l_(-l/2,g,l,f,p),n),a=e.circle(0,h+u,u*2,n);_.insert(()=>a,`:first-child`),_.insert(()=>r,`:first-child`),v&&_.attr(`style`,v)}else _.append(`rect`).attr(`x`,-l/2).attr(`y`,g).attr(`width`,l).attr(`height`,f).attr(`rx`,p).attr(`ry`,p).attr(`style`,r),_.append(`circle`).attr(`cx`,0).attr(`cy`,h+u).attr(`r`,u).attr(`style`,r);i_(t,_);let y=g+f/2;o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${y-a.height/2-(a.y-(a.top??0))})`);let b=h+u,x=Math.asin(Math.min(1,(g-b)/u))*180/Math.PI,S=[...ug(0,-b,u,24,180+x,-x),...ug(-(-l/2+p),-(g+p),p,12,90,0),...ug(-(-l/2+p),-(m/2-p),p,12,360,270),...ug(-(l/2-p),-(m/2-p),p,12,270,180),...ug(-(l/2-p),-(g+p),p,12,180,90)];return t.intersect=function(e){return c_.polygon(t,S,e)},i}async function aje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?24:i,o=t.look===`neo`?24:i,s=t.width??0;if(t.width&&(t.width-=o,t.widtho,`:first-child`),g=l.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=iMe(0,0,f,h,p,m);g=l.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,zm(_)).attr(`style`,r)}return g.attr(`label-offset-y`,m),g.attr(`transform`,`translate(${-f/2}, ${-(h/2+m)})`),i_(t,g),d.attr(`transform`,`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(e){let n=c_.rect(t,e),r=n.x-(t.x??0);if(p!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-m)){let i=m*m*(1-r*r/(p*p));i>0&&(i=Math.sqrt(i)),i=m-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},l}async function Sg(e,t,n){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await n_(e,t,a_(t)),s=Math.max(o.width+n.labelPaddingX*2,t?.width||0),l=Math.max(o.height+n.labelPaddingY*2,t?.height||0),u=-s/2,d=-l/2,f,{rx:p,ry:m}=t,{cssStyles:h}=t;if(n?.rx&&n.ry&&(p=n.rx,m=n.ry),t.look===`handDrawn`){let e=ag.svg(a),n=om(t,{}),r=p||m?e.path(l_(u,d,s,l,p||0),n):e.rectangle(u,d,s,l,n);f=a.insert(()=>r,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,zm(h))}else f=a.insert(`rect`,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,zm(p)).attr(`ry`,zm(m)).attr(`x`,u).attr(`y`,d).attr(`width`,s).attr(`height`,l);return i_(t,f,t.look===`handDrawn`?void 0:{width:s,height:l}),t.calcIntersect=function(e,t){return c_.rect(e,t)},t.intersect=function(e){return c_.rect(t,e)},a}async function oje(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:s}=t,l=await Sg(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=ag.svg(l),n=om(t,{}),r=l.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return l;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return l;return l.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),l.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),l}let u=l.select(`.basic.label-container`),d=(Number(u.attr(`width`))||o)??0,f=(Number(u.attr(`height`))||s)??0;return d>0&&f>0&&u.attr(`stroke-dasharray`,`${d} ${f}`),l}async function sje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await n_(e,t,a_(t)),u=s.width+i,d=s.height+a,f=d*.2,p=-u/2,m=-d/2-f/2,{cssStyles:h}=t,g=ag.svg(o),_=om(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=o.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${p+(t.padding??0)/2-(s.x-(s.left??0))}, ${m+f+(t.padding??0)/2-(s.y-(s.top??0))})`),i_(t,b),t.intersect=function(e){return c_.rect(t,e)},o}async function Cg(e,t){let{labelStyles:n,nodeStyles:r}=am(t),i=t.look===`neo`?12:5;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?16:a,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t),{ignoreMinWidth:!0}),u=Math.sqrt(l.width**2+l.height**2)/2,d=(t?.width?t?.width/2:u)+(o??0),f=d+i,p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{roughness:.2,strokeWidth:2.5}),r=om(t,{roughness:.2,strokeWidth:1.5}),i=e.circle(0,0,f*2,n),a=e.circle(0,0,d*2,r);p=s.insert(`g`,`:first-child`),p.attr(`class`,zm(t.cssClasses)).attr(`style`,zm(m)),p.node()?.appendChild(i),p.node()?.appendChild(a)}else{p=s.insert(`g`,`:first-child`);let e=p.insert(`circle`,`:first-child`),t=p.insert(`circle`);p.attr(`class`,`basic label-container`).attr(`style`,r),e.attr(`class`,`outer-circle`).attr(`style`,r).attr(`r`,f).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,r).attr(`r`,d).attr(`cx`,0).attr(`cy`,0)}return i_(t,p),t.intersect=function(e){return P.info(`DoubleCircle intersect`,t,f,e),c_.circle(t,f,e)},s}async function wg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o}=await n_(e,t,a_(t)),{theme:s,themeVariables:l}=As();Fh(i,t.colorIndex,s,l.borderColorArray);let u=o??10,d=a.width/2+u*2,f=a.height/2+u*2,p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=ag.svg(i),n=om(t,{}),r=e.ellipse(0,0,d*2,f*2,n);p=i.insert(()=>r,`:first-child`),p.attr(`class`,`basic label-container`),m&&p.attr(`style`,m)}else p=i.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`rx`,d).attr(`ry`,f).attr(`cx`,0).attr(`cy`,0);return t.width=d*2,t.height=f*2,i_(t,p),t.calcIntersect=function(e,t){let n=e.width/2,r=e.height/2;return c_.ellipse(e,n,r,t)},t.intersect=function(e){return c_.ellipse(t,d,f,e)},i}function Tg(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=am(t);t.label=``,t.labelStyle=r;let a=e.insert(`g`).attr(`class`,a_(t)).attr(`id`,t.domId??t.id),{cssStyles:o}=t,s=ag.svg(a),{nodeBorder:l}=n,u=om(t,{fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let d=s.circle(0,0,14,u),f=a.insert(()=>d,`:first-child`);return f.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),o&&o.length>0&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,o),i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),i_(t,f),t.intersect=function(e){return P.info(`filledCircle intersect`,t,{radius:7,point:e}),c_.circle(t,7,e)},a}async function cje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.height=t?.height??0,t.heightv,`:first-child`).attr(`transform`,`translate(${-d/2}, ${d/2})`).attr(`class`,`outer-path`);return m&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),t.width=u,t.height=d,i_(t,y),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${-d/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(e){return P.info(`Triangle intersect`,t,p,e),c_.polygon(t,p,e)},o}async function Eg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await n_(e,t,a_(t)),s=t.padding??12,l=Math.max(a.width+s*2,t.width??0,90),u=a.height+s*2,d=Math.max(Math.min(u*.16,14),8),f=Math.max(u+d,t.height??0),p=f-d,m=Math.max(l*.38,28),h=-f/2,g=[{x:-l/2,y:h},{x:-l/2+m,y:h},{x:-l/2+m,y:h+d},{x:l/2,y:h+d},{x:l/2,y:f/2},{x:-l/2,y:f/2}],_=[`M${g[0].x},${g[0].y}`,...g.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:v}=t,y;if(t.look===`handDrawn`){let e=ag.svg(i).path(_,om(t,{}));y=i.insert(()=>e,`:first-child`).attr(`class`,`basic label-container`),v&&y.attr(`style`,v)}else y=i.insert(`path`,`:first-child`).attr(`d`,_).attr(`class`,`basic label-container`).attr(`style`,r);t.look===`handDrawn`?i_(t,y):i_(t,y,{width:l,height:f});let b=h+d+p/2;return o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${b-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(e){return c_.polygon(t,g,e)},i}function lje(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=am(t);t.label=``;let o=e.insert(`g`).attr(`class`,a_(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,l=Math.max(70,t?.width??0),u=Math.max(10,t?.height??0);(n===`LR`||n===`RL`)&&(l=Math.max(10,t?.width??0),u=Math.max(70,t?.height??0));let d=-1*l/2,f=-1*u/2,p=ag.svg(o),m=om(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.rectangle(d,f,l,u,m),g=o.insert(()=>h,`:first-child`);s&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,a),i_(t,g);let _=r?.padding??0;return t.width&&t.height&&(t.width+=_/2||0,t.height+=_/2||0),t.intersect=function(e){return c_.rect(t,e)},o}async function uje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10),t.width=(t?.width??0)-i*2,t.width<15&&(t.width=15));let{shapeSvg:o,bbox:s}=await n_(e,t,a_(t)),l=(t?.height?t?.height:Math.max(10,s.height))+a*2,u=l/2,d=u-Math.sqrt(Math.max(0,u**2-(s.height/2)**2)),f=(t?.width?t?.width:Math.max(15,s.width)+d*2)+i*2,{cssStyles:p}=t,m=ag.svg(o),h=om(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-f/2,y:-l/2},{x:f/2-u,y:-l/2},...ug(-f/2+u,0,u,50,90,270),{x:f/2-u,y:l/2},{x:-f/2,y:l/2}],_=cg(g),v=m.path(_,h),y=o.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),i_(t,y),t.intersect=function(e){return P.info(`Pill intersect`,t,{radius:u,point:e}),c_.polygon(t,g,e)},o}async function dje(e,t){let{labelStyles:n,nodeStyles:r}=am(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,s=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-s,t.height=(t.height??0)-o}let{shapeSvg:l,bbox:u}=await n_(e,t,a_(t)),d=(t?.height?t?.height:u.height)+o,f=d/i,p=(t?.width?t?.width:u.width)+2*f+s,m=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-d/2},{x:p-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=ag.svg(l),n=om(t,{}),r=lMe(0,0,p,d,f),i=e.path(r,n);h=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-p/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=_g(l,p,d,m);return r&&h.attr(`style`,r),t.width=p,t.height=d,i_(t,h),t.intersect=function(e){return c_.polygon(t,m,e)},l}async function fje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.label=``,t.labelStyle=n;let{shapeSvg:i}=await n_(e,t,a_(t)),a=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:s}=t,l=ag.svg(i),u=om(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],f=cg(d),p=l.path(f,u),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`basic label-container outer-path`),s&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,s),r&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,r),m.attr(`transform`,`translate(${-a/2}, ${-o/2})`),i_(t,m),t.intersect=function(e){return P.info(`Pill intersect`,t,{points:d}),c_.polygon(t,d,e)},i}async function pje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=am(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await n_(e,t,`icon-shape default`),p=t.pos===`t`,m=s,h=s,{nodeBorder:g}=n,{stylesMap:_}=im(t),v=-h/2,y=-m/2,b=t.label?8:0,x=ag.svg(u),S=om(t,{stroke:`none`,fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x.rectangle(v,y,h,m,S),w=Math.max(h,d.width),T=m+d.height+b,E=x.rectangle(-w/2,-T/2,w,T,{...S,fill:`transparent`,stroke:`none`}),D=u.insert(()=>C,`:first-child`),O=u.insert(()=>E);if(t.icon){let e=u.append(`g`);e.html(`${await gm(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${p?d.height/2+b/2-i/2-o:-d.height/2-b/2-i/2-o})`),e.attr(`style`,`color: ${_.get(`stroke`)??g};`)}return f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${p?-T/2:T/2-d.height})`),D.attr(`transform`,`translate(0,${p?d.height/2+b/2:-d.height/2-b/2})`),i_(t,O),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return c_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=p?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+b},{x:n+h/2,y:r-i/2+d.height+b},{x:n+h/2,y:r+i/2},{x:n-h/2,y:r+i/2},{x:n-h/2,y:r-i/2+d.height+b},{x:n-d.width/2,y:r-i/2+d.height+b}]:[{x:n-h/2,y:r-i/2},{x:n+h/2,y:r-i/2},{x:n+h/2,y:r-i/2+m},{x:n+d.width/2,y:r-i/2+m},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+m},{x:n-h/2,y:r-i/2+m}],c_.polygon(t,a,e)},u}async function mje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=am(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await n_(e,t,`icon-shape default`),p=t.label?8:0,m=t.pos===`t`,{nodeBorder:h,mainBkg:g}=n,{stylesMap:_}=im(t),v=ag.svg(u),y=om(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`),y.stroke=_.get(`fill`)??g;let b=u.append(`g`);t.icon&&b.html(`${await gm(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let x=b.node().getBBox(),S=x.width,C=x.height,w=x.x,T=x.y,E=Math.max(S,C)*Math.SQRT2+40,D=v.circle(0,0,E,y),O=Math.max(E,d.width),k=E+d.height+p,A=v.rectangle(-O/2,-k/2,O,k,{...y,fill:`transparent`,stroke:`none`}),j=u.insert(()=>D,`:first-child`),M=u.insert(()=>A);return b.attr(`transform`,`translate(${-S/2-w},${m?d.height/2+p/2-C/2-T:-d.height/2-p/2-C/2-T})`),b.attr(`style`,`color: ${_.get(`stroke`)??h};`),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-k/2:k/2-d.height})`),j.attr(`transform`,`translate(0,${m?d.height/2+p/2:-d.height/2-p/2})`),i_(t,M),t.intersect=function(e){return P.info(`iconSquare intersect`,t,e),c_.rect(t,e)},u}async function hje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=am(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await n_(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=im(t),b=-g/2,x=-h/2,S=t.label?8:0,C=ag.svg(u),w=om(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(l_(b,x,g,h,5),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`).attr(`class`,`icon-shape2`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await gm(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),i_(t,A),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return c_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],c_.polygon(t,a,e)},u}async function gje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=am(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await n_(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=im(t),b=-g/2,x=-h/2,S=t.label?8:0,C=ag.svg(u),w=om(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(l_(b,x,g,h,.1),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await gm(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),i_(t,A),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return c_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],c_.polygon(t,a,e)},u}async function Dg(e,t,{config:{flowchart:n}}){let r=new Image;r.src=t?.img??``,await r.decode();let i=Number(r.naturalWidth.toString().replace(`px`,``)),a=Number(r.naturalHeight.toString().replace(`px`,``));t.imageAspectRatio=i/a;let{labelStyles:o}=am(t);t.labelStyle=o;let s=n?.wrappingWidth;t.defaultWidth=n?.wrappingWidth;let l=Math.max(t.label?s??0:0,t?.assetWidth??i),u=t.constraint===`on`&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,d=t.constraint===`on`?u/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(u,s??0);let{shapeSvg:f,bbox:p,label:m}=await n_(e,t,`image-shape default`),h=t.pos===`t`,g=-u/2,_=-d/2,v=t.label?8:0,y=ag.svg(f),b=om(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,u,d,b),S=Math.max(u,p.width),C=d+p.height+v,w=y.rectangle(-S/2,-C/2,S,C,{...b,fill:`none`,stroke:`none`}),T=f.insert(()=>x,`:first-child`),E=f.insert(()=>w);if(t.img){let e=f.append(`image`);e.attr(`href`,t.img),e.attr(`width`,u),e.attr(`height`,d),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${h?C/2-d:-C/2})`)}return m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))},${h?-d/2-p.height/2-v/2:d/2-p.height/2+v/2})`),T.attr(`transform`,`translate(0,${h?p.height/2+v/2:-p.height/2-v/2})`),i_(t,E),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return c_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=h?[{x:n-p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2+p.height+v},{x:n+u/2,y:r-i/2+p.height+v},{x:n+u/2,y:r+i/2},{x:n-u/2,y:r+i/2},{x:n-u/2,y:r-i/2+p.height+v},{x:n-p.width/2,y:r-i/2+p.height+v}]:[{x:n-u/2,y:r-i/2},{x:n+u/2,y:r-i/2},{x:n+u/2,y:r-i/2+d},{x:n+p.width/2,y:r-i/2+d},{x:n+p.width/2/2,y:r+i/2},{x:n-p.width/2,y:r+i/2},{x:n-p.width/2,y:r-i/2+d},{x:n-u/2,y:r-i/2+d}],c_.polygon(t,a,e)},f}async function Og(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=Math.max(l.height+a*2,t.height??0),d=Math.max(l.width+o*2,(t.width??0)-u),f=[{x:0,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:-3*u/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{}),r=cg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=_g(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,i_(t,p),t.intersect=function(e){return c_.polygon(t,f,e)},s}async function kg(e,t){let{shapeSvg:n,bbox:r,label:i}=await n_(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),i_(t,a),t.intersect=function(e){return c_.rect(t,e)},n}async function _je(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{}),r=cg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=_g(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,i_(t,p),t.intersect=function(e){return c_.polygon(t,f,e)},s}async function vje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{}),r=cg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=_g(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,i_(t,p),t.intersect=function(e){return c_.polygon(t,f,e)},s}function Ag(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.label=``,t.labelStyle=n;let i=e.insert(`g`).attr(`class`,a_(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,t?.width??0),s=Math.max(35,t?.height??0),l=[{x:o,y:0},{x:0,y:s+7/2},{x:o-14,y:s+7/2},{x:0,y:2*s},{x:o,y:s-7/2},{x:14,y:s-7/2}],u=ag.svg(i),d=om(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=cg(l),p=u.path(f,d),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`outer-path`),a&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),r&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,r),m.attr(`transform`,`translate(-${o/2},${-s})`),i_(t,m),t.intersect=function(e){return P.info(`lightningBolt intersect`,t,e),c_.polygon(t,l,e)},i}async function jg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-a,t.widtho,`:first-child`).attr(`class`,`line`),g=s.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=uMe(0,0,d,m,f,p,h);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,zm(_)).attr(`style`,r)}return g.attr(`label-offset-y`,p),g.attr(`transform`,`translate(${-d/2}, ${-(m/2+p)})`),i_(t,g),u.attr(`transform`,`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+p-(l.y-(l.top??0))})`),t.intersect=function(e){let n=c_.rect(t,e),r=n.x-(t.x??0);if(f!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}async function yje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:s,bbox:l,label:u}=await n_(e,t,a_(t)),d=(t?.width?t?.width:l.width)+(a??0)*2,f=(t?.height?t?.height:l.height)+(o??0)*2,p=t.look===`neo`?f/4:f/8,m=f+p,{cssStyles:h}=t,g=ag.svg(s),_=om(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},...lg(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,p,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),b.attr(`transform`,`translate(0,${-p/2})`),u.attr(`transform`,`translate(${-d/2+(t.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-f/2+(t.padding??0)-p-(l.y-(l.top??0))})`),i_(t,b),t.intersect=function(e){return c_.polygon(t,v,e)},s}async function Mg(e,t,n,r){let{labelStyles:i,nodeStyles:a}=am(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,label:l}=await n_(e,n===`icon`||t.stereotype!==void 0?{...t,icon:n===`icon`?void 0:t.icon,stereotype:void 0}:t,a_(t,`usecase-actor-variant usecase-actor-${n}`)),u=t.accessibleName??t.label;u&&o.attr(`role`,`img`).attr(`aria-label`,u),l.attr(`class`,`label actor-label usecase-actor-label`);let{theme:d,themeVariables:f}=As();Fh(o,t.colorIndex,d,f.borderColorArray);let p,m;if(t.stereotype){let e=await r_(o,`\xAB${t.stereotype}\xBB`,{labelStyle:i,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});p=e.label.attr(`class`,`label usecase-stereotype`),m=e.bbox}let h=o.append(`g`).attr(`class`,`usecase-actor-glyph ${vMe[n]}`).attr(`style`,a||null);await r(h,t),CMe(h,t,n);let g=t.padding??_Me,_=m?.height??0,v=mMe+hMe+s.height+(m?_+gMe:0),y=Math.max(pMe,s.width,m?.width??0)+g*2,b=v+g*2,x=-v/2;h.attr(`transform`,`translate(0,${x+mMe/2})`);let S=x+mMe+hMe;return p&&m&&(S+=_/2,xMe(p,m,S),S+=_/2+gMe),xMe(l,s,S+s.height/2),i_(t,o.insert(`rect`,`:first-child`).attr(`class`,`usecase-actor-outline`).attr(`x`,-y/2).attr(`y`,-b/2).attr(`width`,y).attr(`height`,b).attr(`opacity`,0).attr(`aria-hidden`,`true`)),t.intersect=e=>c_.rect(t,e),o}async function bje(e,t){return Mg(e,t,`normal`,(e,t)=>{x_(e,t,wMe,`usecase-actor-stick`)})}async function xje(e,t){return Mg(e,t,`awesome`,(e,t)=>{x_(e,t,TMe,`usecase-actor-awesome-silhouette`)})}async function Ng(e,t){return Mg(e,t,`hollow`,(e,t)=>{SMe(e,t,0,-23,9,`usecase-actor-hollow-head`,!0),x_(e,t,S_,`usecase-actor-hollow-body`,!0)})}async function Sje(e,t){return Mg(e,t,`icon`,OMe)}async function Cje(e,t){let n=t,{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:l}=await n_(e,n.stereotype?{...t,stereotype:void 0}:t,a_(t,`usecase-business-shape`));l.attr(`class`,`label usecase-label`);let{theme:u,themeVariables:d}=As();Fh(a,t.colorIndex,u,d.borderColorArray);let f,p;if(n.stereotype){let e=await r_(a,`\xAB${n.stereotype}\xBB`,{labelStyle:r,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});f=e.label.attr(`class`,`label usecase-stereotype`),p=e.bbox}let m=p?2:0,h=o.height+(p?.height??0)+m,g=Math.max(o.width,p?.width??0),_=s??10,v=g/2+_*2,y=h/2+_*2,b=Math.min(Math.max(_/5,1),_/2),x=g/2+b,S=v-b,C=x/v,w=S/v,T=y*Math.sqrt(Math.max(0,1-C*C)),E=-y*Math.sqrt(Math.max(0,1-w*w));f&&p&&w_(f,p,-h/2+p.height/2),w_(l,o,h/2-o.height/2);let D;if(t.look===`handDrawn`){let e=ag.svg(a).ellipse(0,0,v*2,y*2,om(t,{}));D=a.insert(()=>e,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`)}else D=a.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`).attr(`style`,i).attr(`rx`,v).attr(`ry`,y).attr(`cx`,0).attr(`cy`,0);a.append(`path`).attr(`class`,`usecase-business-marker`).attr(`d`,`M ${x} ${T} L ${S} ${E}`).attr(`fill`,`none`).attr(`style`,i||null);let O=n.accessibleName??n.label;return O&&a.attr(`role`,`img`).attr(`aria-label`,O),i_(t,D),t.calcIntersect=(e,t)=>c_.ellipse(e,e.width/2,e.height/2,t),t.intersect=e=>c_.ellipse(t,v,y,e),a}async function wje(e,t){let n=t,{labelStyles:r,nodeStyles:i}=am(t),{stylesMap:a}=im(t);t.labelStyle=r;let{shapeSvg:o,bbox:s,label:l}=await n_(e,t,a_(t,`usecase-json-table`));o.attr(`role`,`img`),n.accessibleName&&o.attr(`aria-label`,n.accessibleName),l.attr(`class`,`label usecase-json-title`);let u=o.append(`g`).attr(`class`,`usecase-json-table-grid`),d=[];for(let e of n.jsonRows??[]){let n=await r_(u,e.key,{labelStyle:r,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),i=await r_(u,e.value,{labelStyle:r,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});d.push({key:{label:n.label.attr(`class`,`label usecase-json-key`),bbox:n.bbox},value:{label:i.label.attr(`class`,`label usecase-json-value`),bbox:i.bbox}})}let f=Math.max(0,...d.map(({key:e})=>e.bbox.width))+T_*2,p=Math.max(0,...d.map(({value:e})=>e.bbox.width))+T_*2,m=s.width+T_*2,h=Math.max(m,f+p),g=p+Math.max(0,h-f-p),_=s.height+kMe*2,v=d.map(({key:e,value:t})=>Math.max(e.bbox.height,t.bbox.height)+kMe*2),y=_+v.reduce((e,t)=>e+t,0),b=U(a.get(`stroke-width`)),x=h+b*2,S=y+b*2,C=-h/2,w=-y/2,T=t.look===`handDrawn`?ag.svg(o):void 0,E=T?om(t,{}):void 0,D=N((e,t,n,r,a,o)=>{if(T&&E){let i=T.rectangle(n,r,a,o,E);return e.insert(()=>i,`:first-child`).attr(`class`,t)}return e.insert(`rect`,`:first-child`).attr(`class`,t).attr(`x`,n).attr(`y`,r).attr(`width`,a).attr(`height`,o).attr(`style`,i)},`insertCell`),O=D(o,`label-container usecase-json-border`,-x/2,-S/2,x,S);D(u,`usecase-json-cell usecase-json-title-cell`,C,w,h,_),u.node()?.append(l.node()),E_(l,s,0,w+_/2);let k=w+_;return d.forEach(({key:e,value:t},n)=>{let r=v[n],i=u.append(`g`).attr(`class`,`usecase-json-row`).attr(`data-row-index`,n).attr(`transform`,`translate(0,${k})`);D(i,`usecase-json-cell usecase-json-key-cell`,C,0,f,r),D(i,`usecase-json-cell usecase-json-value-cell`,C+f,0,g,r),i.node()?.append(e.label.node(),t.label.node()),E_(e.label,e.bbox,C+f/2,r/2),E_(t.label,t.bbox,C+f+g/2,r/2),k+=r}),i_(t,O),t.intersect=e=>c_.rect(t,e),o}async function Pg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*s,10),t.height=Math.max((t?.height??0)-o*2-2*s,10));let{shapeSvg:l,bbox:u,label:d}=await n_(e,t,a_(t)),f=(t?.width?t?.width:u.width)+a*2+2*s,p=(t?.height?t?.height:u.height)+o*2+2*s,m=f-2*s,h=p-2*s,g=-m/2,_=-h/2,{cssStyles:v}=t,y=ag.svg(l),b=om(t,{}),x=[{x:g-s,y:_+s},{x:g-s,y:_+h+s},{x:g+m-s,y:_+h+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_+h-s},{x:g+m+s,y:_+h-s},{x:g+m+s,y:_-s},{x:g+s,y:_-s},{x:g+s,y:_},{x:g,y:_},{x:g,y:_+s}],S=[{x:g,y:_+s},{x:g+m-s,y:_+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_},{x:g,y:_}];t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let C=cg(x),w=y.path(C,b),T=cg(S),E=y.path(T,b);t.look!==`handDrawn`&&(w=RAe(w),E=RAe(E));let D=l.insert(`g`,`:first-child`);return D.insert(()=>w),D.insert(()=>E),D.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),d.attr(`transform`,`translate(${-(u.width/2)-s-(u.x-(u.left??0))}, ${-(u.height/2)+s-(u.y-(u.top??0))})`),i_(t,D),t.intersect=function(e){return c_.polygon(t,x,e)},l}async function Fg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await n_(e,t,a_(t)),s=t.padding??0,l=t.look===`neo`?16:s,u=t.look===`neo`?12:s,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-l*2,t.height=(t?.height??0)-u*3);let f=Math.max(a.width,t?.width??0)+l*2,p=Math.max(a.height,t?.height??0)+u*3,m=t.look===`neo`?p/4:p/8,h=p+(d?m/2:-m/2),g=-f/2,_=-h/2,{cssStyles:v}=t,y=lg(g-10,_+h+10,g+f-10,_+h+10,m,.8),b=y?.[y.length-1],x=[{x:g-10,y:_+10},{x:g-10,y:_+h+10},...y,{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:b.y-20},{x:g+f+10,y:b.y-20},{x:g+f+10,y:_-10},{x:g+10,y:_-10},{x:g+10,y:_},{x:g,y:_},{x:g,y:_+10}],S=[{x:g,y:_+10},{x:g+f-10,y:_+10},{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:_},{x:g,y:_}],C=ag.svg(i),w=om(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=cg(x),E=C.path(T,w),D=cg(S),O=C.path(D,w),k=i.insert(()=>E,`:first-child`);return k.insert(()=>O),k.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,r),k.attr(`transform`,`translate(0,${-m/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-m-(a.y-(a.top??0))})`),i_(t,k),t.intersect=function(e){return c_.polygon(t,x,e)},i}async function Ig(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r,t.useHtmlLabels||os(ns())||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:s}=await n_(e,t,a_(t)),l=Math.max(o.width+(t.padding??0)*2,t?.width??0),u=Math.max(o.height+(t.padding??0)*2,t?.height??0),d=-l/2,f=-u/2,{cssStyles:p}=t,m=ag.svg(a),h=om(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(d,f,l,u,h),_=a.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container outer-path`),s.attr(`class`,`label noteLabel`),p&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,p),i&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),i_(t,_),t.intersect=function(e){return c_.rect(t,e)},a}async function Tje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await n_(e,t,a_(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),s=.5,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],u,{cssStyles:d}=t;if(t.look===`handDrawn`){let e=ag.svg(i),n=om(t,{}),r=jMe(0,0,o),a=e.path(r,n);u=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),d&&u.attr(`style`,d)}else u=_g(i,o,o,l),u.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&u.attr(`style`,r),i_(t,u),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];return c_.polygon(e,r,t)},t.intersect=function(e){return this.calcIntersect(t,e)},i}async function Eje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:s,bbox:l,label:u}=await n_(e,t,a_(t)),d=l.width+(t.look===`neo`?a*2:a),f=Math.max(l.height+(t.look===`neo`?o*2:o),t.height??0),p=f/4,m=-Math.max(d,(t.width??0)-p)/2,h=-f/2,g=h/2,_=[{x:m+g,y:h},{x:m,y:0},{x:m+g,y:-h},{x:-m,y:-h},{x:-m,y:h}],{cssStyles:v}=t,y=ag.svg(s),b=om(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=cg(_),S=y.path(x,b),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,r),C.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))})`),i_(t,C),t.intersect=function(e){return c_.polygon(t,_,e)},s}async function Dje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i;i=t.cssClasses?`node `+t.cssClasses:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,t.domId||t.id),o=a.insert(`g`),s=a.insert(`g`).attr(`class`,`label`).attr(`style`,r),l=t.description,u=t.label,d=await u_(s,u,t.labelStyle,!0,!0),f={width:0,height:0};if(os(As())){let e=d.children[0],t=Qc(d);f=e.getBoundingClientRect(),t.attr(`width`,f.width),t.attr(`height`,f.height)}P.info(`Text 2`,l);let p=l||[],m=d.getBBox(),h=await u_(s,Array.isArray(p)?p.join(`
    `):p,t.labelStyle,!0,!0),g=h.children[0],_=Qc(h);f=g.getBoundingClientRect(),_.attr(`width`,f.width),_.attr(`height`,f.height);let v=(t.padding||0)/2;Qc(h).attr(`transform`,`translate( `+(f.width>m.width?0:(m.width-f.width)/2)+`, `+(m.height+v+5)+`)`),Qc(d).attr(`transform`,`translate( `+(f.width(P.debug(`Rough node insert CXC`,r),i),`:first-child`),C=a.insert(()=>(P.debug(`Rough node insert CXC`,r),r),`:first-child`)}else C=o.insert(`rect`,`:first-child`),w=o.insert(`line`),C.attr(`class`,`outer title-state`).attr(`style`,r).attr(`x`,-f.width/2-v).attr(`y`,-f.height/2-v).attr(`width`,f.width+(t.padding||0)).attr(`height`,f.height+(t.padding||0)),w.attr(`class`,`divider`).attr(`x1`,-f.width/2-v).attr(`x2`,f.width/2+v).attr(`y1`,-f.height/2-v+m.height+v).attr(`y2`,-f.height/2-v+m.height+v);return i_(t,C),t.intersect=function(e){return c_.rect(t,e)},a}async function Oje(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Sg(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}async function kje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await n_(e,t,a_(t)),u=(t?.width??s.width)+i*2+(t.look===`neo`?D_:D_*2),d=(t?.height??s.height)+a*2,f=u-D_,p=d,m=D_-u/2,h=-d/2,{cssStyles:g}=t,_=ag.svg(o),v=om(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:m,y:h},{x:m+f,y:h},{x:m+f,y:h+p},{x:m-D_,y:h+p},{x:m-D_,y:h},{x:m,y:h},{x:m,y:h+p}],b=_.polygon(y.map(e=>[e.x,e.y]),v),x=o.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`).attr(`style`,zm(g)),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),g&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${D_/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),i_(t,x),t.intersect=function(e){return c_.rect(t,e)},o}async function Aje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:s,bbox:l,label:u}=await n_(e,t,a_(t)),d=(t?.width?t?.width:l.width)+a*2,f=((t?.height?t?.height:l.height)+o*2)*1.5,p=d,m=f/1.5,h=-p/2,g=-m/2,{cssStyles:_}=t,v=ag.svg(s),y=om(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g},{x:h,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-m/2}],x=cg(b),S=v.path(x,y),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(0, ${m/4})`),u.attr(`transform`,`translate(${-p/2+(t.padding??0)-(l.x-(l.left??0))}, ${-m/4+(t.padding??0)-(l.y-(l.top??0))})`),i_(t,C),t.intersect=function(e){return c_.polygon(t,b,e)},s}async function jje(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n,a=await Sg(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i});if(t.colorIndex!==void 0){let{theme:e,themeVariables:n}=As();Fh(a,t.colorIndex,e,n.borderColorArray)}return a}async function Mje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?40:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),{w:u,h:d}=MMe(l,a,o),f=d/2,{cssStyles:p}=t,m=ag.svg(s),h=om(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-u/2+f,y:-d/2},{x:u/2-f,y:-d/2},...ug(-u/2+f,0,f,O_,90,270),{x:u/2-f,y:d/2},...ug(u/2-f,0,f,O_,270,450)],_=cg(g),v=m.path(_,h),y=s.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),i_(t,y),t.intersect=function(e){return c_.polygon(t,g,e)},s}async function Lg(e,t){return Sg(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}function Nje(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l,nodeShadow:u}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let d=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),f=ag.svg(d),p=om(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,t.width,{...p,stroke:o,strokeWidth:2}),h=s??l,g=(t.width??0)*5/14,_=f.circle(0,0,g,{...p,fill:h,stroke:h,strokeWidth:2,fillStyle:`solid`}),v=d.insert(()=>m,`:first-child`);if(v.insert(()=>_),t.look!==`handDrawn`&&v.attr(`class`,`outer-path`),a&&v.selectAll(`path`).attr(`style`,a),i&&v.selectAll(`path`).attr(`style`,i),t.width<25&&u&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;v.attr(`style`,`filter:url(#${n})`)}return i_(t,v),t.intersect=function(e){return c_.circle(t,(t.width??0)/2,e)},d}function Rg(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=ag.svg(a).circle(0,0,t.width,RTe(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return i_(t,o),t.intersect=function(e){return c_.circle(t,(t.width??7)/2,e)},a}async function Pje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t?.padding??8,a=t.look===`neo`?28:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=Math.max(l.width+2*k_+a,t.width??0),d=Math.max(l.height+o,t.height??0),f=u-2*k_,p=d,m=-u/2,h=-d/2,g=[{x:0,y:0},{x:f,y:0},{x:f,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{}),r=e.rectangle(m,h,f+16,p,n),i=e.line(m+k_,h,m+k_,h+p,n),a=e.line(m+k_+f,h,m+k_+f,h+p,n);s.insert(()=>i,`:first-child`),s.insert(()=>a,`:first-child`);let o=s.insert(()=>r,`:first-child`),{cssStyles:l}=t;o.attr(`class`,`basic label-container`).attr(`style`,zm(l)),i_(t,o)}else{let e=_g(s,f,p,g);r&&e.attr(`style`,r),i_(t,e)}return t.intersect=function(e){return c_.polygon(t,g,e)},s}async function Fje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-A_*(t.height+o*2),10));let{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=(t?.height?t?.height:l.height)+o*2,d=A_*u,f=A_*u,p=(t?.width?t?.width:l.width)+a*2+d-d,m=u,h=-p/2,g=-m/2,{cssStyles:_}=t,v=ag.svg(s),y=om(t,{}),b=[{x:h-d/2,y:g},{x:h+p+d/2,y:g},{x:h+p+d/2,y:g+m},{x:h-d/2,y:g+m}],x=[{x:h+p-d/2,y:g+m},{x:h+p+d/2,y:g+m},{x:h+p+d/2,y:g+m-f}];t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=cg(b),C=v.path(S,y),w=cg(x),T=v.path(w,{...y,fillStyle:`solid`}),E=s.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),i_(t,E),t.intersect=function(e){return c_.polygon(t,b,e)},s}async function zg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await n_(e,t,a_(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=l/8,d=.2*s,f=.2*l,p=l+u,{cssStyles:m}=t,h=ag.svg(i),g=om(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-s/2-s/2*.1,y:p/2},...lg(-s/2-s/2*.1,p/2,s/2+s/2*.1,p/2,u,.8),{x:s/2+s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:-p/2}],v=-s/2+s/2*.1,y=-p/2-f*.4,b=[{x:v+s-d,y:(y+l)*1.3},{x:v+s,y:y+l-f},{x:v+s,y:(y+l)*.9},...lg(v+s,(y+l)*1.25,v+s-d,(y+l)*1.3,-l*.02,.5)],x=cg(_),S=h.path(x,g),C=cg(b),w=h.path(C,{...g,fillStyle:`solid`}),T=i.insert(()=>w,`:first-child`);return T.insert(()=>S,`:first-child`),T.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-u/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-u/2-(a.y-(a.top??0))})`),i_(t,T),t.intersect=function(e){return c_.polygon(t,_,e)},i}async function Bg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await n_(e,t,a_(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),s=Math.max(a.height+(t.padding??0),t?.height||0),l=-o/2,u=-s/2,d=i.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,o).attr(`height`,s),i_(t,d),t.intersect=function(e){return c_.rect(t,e)},i}async function Vg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?12:i/2,o=t.height??0;if(t.height&&(t.height-=a,t.heighta,`:first-child`),g=s.insert(()=>i,`:first-child`),g.attr(`class`,`basic label-container`),h&&g.attr(`style`,h)}else{let e=NMe(0,0,m,d,p,f);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,zm(h)).attr(`style`,r),g.attr(`class`,`basic label-container outer-path`),h&&g.selectAll(`path`).attr(`style`,h),r&&g.selectAll(`path`).attr(`style`,r)}return g.attr(`label-offset-x`,p),g.attr(`transform`,`translate(${-m/2}, ${d/2} )`),u.attr(`transform`,`translate(${-(l.width/2)-p-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),i_(t,g),t.intersect=function(e){let n=c_.rect(t,e),r=n.y-(t.y??0);if(f!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-p)){let i=p*p*(1-r*r/(f*f));i!=0&&(i=Math.sqrt(Math.abs(i))),i=p-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},s}async function Hg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=ag.svg(s),n=om(t,{}),r=cg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=_g(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,i_(t,p),t.intersect=function(e){return c_.polygon(t,f,e)},s}async function Ug(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o*2,{cssStyles:f}=t,p=ag.svg(s),m=om(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],g=cg(h),_=p.path(g,m),v=s.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),i_(t,v),t.intersect=function(e){return c_.polygon(t,h,e)},s}async function Ije(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.width=((t?.width??0)-a)/2,t.widthy,`:first-child`).attr(`transform`,`translate(${-f/2}, ${f/2})`).attr(`class`,`outer-path`);return h&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),t.width=d,t.height=f,i_(t,b),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${f/2-(s.height+(t.padding??0)/(u?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(e){return P.info(`Triangle intersect`,t,m,e),c_.polygon(t,m,e)},o}async function Lje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=!0;(t.width||t.height)&&(s=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:u,label:d}=await n_(e,t,a_(t)),f=(t?.width?t?.width:u.width)+(a??0)*2,p=(t?.height?t?.height:u.height)+(o??0)*2,m=t.look===`neo`?p/4:p/8,h=p+(s?m:-m),{cssStyles:g}=t,_=14-f,v=_>0?_/2:0,y=ag.svg(l),b=om(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:-f/2-v,y:h/2},...lg(-f/2-v,h/2,f/2+v,h/2,m,.8),{x:f/2+v,y:-h/2},{x:-f/2-v,y:-h/2}],S=cg(x),C=y.path(S,b),w=l.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(t.padding??0)-(u.x-(u.left??0))},${-p/2+(t.padding??0)-m-(u.y-(u.top??0))})`),i_(t,w),t.intersect=function(e){return c_.polygon(t,x,e)},l}async function Rje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:s,bbox:l}=await n_(e,t,a_(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o,f=d/8,p=d+f*2,{cssStyles:m}=t,h=ag.svg(s),g=om(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-u/2,y:p/2},...lg(-u/2,p/2,u/2,p/2,f,1),{x:u/2,y:-p/2},...lg(u/2,-p/2,-u/2,-p/2,f,-1)],v=cg(_),y=h.path(v,g),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container`),m&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),i_(t,b),t.intersect=function(e){return c_.polygon(t,_,e)},s}async function zje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-P_,10),t.height=Math.max((t?.height??0)-a*2-P_,10));let{shapeSvg:o,bbox:s,label:l}=await n_(e,t,a_(t)),u=(t?.width?t?.width:s.width)+i*2+P_,d=(t?.height?t?.height:s.height)+a*2+P_,f=u-P_,p=d-P_,m=-f/2,h=-p/2,{cssStyles:g}=t,_=ag.svg(o),v=om(t,{}),y=[{x:m-P_,y:h-P_},{x:m-P_,y:h+p},{x:m+f,y:h+p},{x:m+f,y:h-P_}],b=`M${m-P_},${h-P_} L${m+f},${h-P_} L${m+f},${h+p} L${m-P_},${h+p} L${m-P_},${h-P_} - M${m-P_},${h} L${m+f},${h} - M${m},${h-P_} L${m},${h+p}`;t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let x=_.path(b,v),S=o.insert(()=>x,`:first-child`);return S.attr(`transform`,`translate(${P_/2}, ${P_/2})`),S.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${-(s.width/2)+P_/2-(s.x-(s.left??0))}, ${-(s.height/2)+P_/2-(s.y-(s.top??0))})`),i_(t,S),t.intersect=function(e){return c_.polygon(t,y,e)},o}async function Wg(e,t){let n=t;n.alias&&(t.label=n.alias);let{theme:r,themeVariables:i}=ns(),{rowEven:a,rowOdd:o,nodeBorder:s,borderColorArray:l}=i;if(t.look===`handDrawn`){let{themeVariables:n}=ns(),{background:r}=n;await Wg(e,{...t,id:t.id+`-background`,domId:(t.domId||t.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let u=ns();t.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,f=u.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:m,nodeStyles:h}=am(t);if(n.attributes.length===0&&t.label){let i={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:``};Lm(t.label,u)+i.labelPaddingX*20){let e=v.width+d*2-(S+C+w+T);S+=e/O,C+=e/O,w>0&&(w+=e/O),T>0&&(T+=e/O)}let A=S+C+w+T,j=ag.svg(_),M=om(t,{});t.look!==`handDrawn`&&(M.roughness=0,M.fillStyle=`solid`);let ee=0;x.length>0&&(ee=x.reduce((e,t)=>e+(t?.rowHeight??0),0));let te=Math.max(k.width+d*2,t?.width||0,A),ne=Math.max((ee??0)+v.height,t?.height||0),re=-te/2,ie=-ne/2;if(_.selectAll(`g:not(:first-child)`).each((e,t,n)=>{let r=Qc(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]),r.attr(`class`).includes(`attribute-name`)?a+=S:r.attr(`class`).includes(`attribute-keys`)?a+=S+C:r.attr(`class`).includes(`attribute-comment`)&&(a+=S+C+w))}r.attr(`transform`,`translate(${re+d/2+a}, ${o+ie+v.height+f/2})`)}),_.select(`.name`).attr(`transform`,`translate(`+-v.width/2+`, `+(ie+f/2)+`)`),r!=null&&F_.has(r)){let e=n.colorIndex??0;_.attr(`data-color-id`,`color-${e%l.length}`)}let ae=j.rectangle(re,ie,te,ne,M),oe=_.insert(()=>ae,`:first-child`).attr(`class`,`outer-path`).attr(`style`,p.join(``));b.push(0);for(let[e,t]of x.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=j.rectangle(re,v.height+ie+t?.yOffset,te,t?.rowHeight,{...M,fill:n?a:o,stroke:s});_.insert(()=>r,`g.label`).attr(`style`,p.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let se=1e-4,ce=Kg(re,v.height+ie,te+re,v.height+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M);if(_.insert(()=>le).attr(`class`,`divider`),ce=Kg(S+re,v.height+ie,S+re,ne+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`),E){let e=S+C+re;ce=Kg(e,v.height+ie,e,ne+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`)}if(D){let e=S+C+w+re;ce=Kg(e,v.height+ie,e,ne+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`)}for(let e of b){let t=v.height+ie+e;ce=Kg(re,t,te+re,t,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`)}if(i_(t,oe),h&&t.look!==`handDrawn`){if(r!=null&&LMe.has(r))_.selectAll(`path`).attr(`style`,h);else{let e=h.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);_.selectAll(`path`).attr(`style`,e??``),_.selectAll(`.row-rect-even path`).attr(`style`,h)}}return t.intersect=function(e){return c_.rect(t,e)},_}async function Gg(e,t,n,r=0,i=0,a=[],o=``){let s=e.insert(`g`).attr(`class`,`label ${a.join(` `)}`).attr(`transform`,`translate(${r}, ${i})`).attr(`style`,o);t!==us(t)&&(t=us(t),t=t.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let l=s.node().appendChild(await Eh(s,t,{width:Lm(t,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(t.includes(`<`)||t.includes(`>`)){let e=l.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let u=l.getBBox();if(Yo(n.htmlLabels)){let e=l.children[0];e.style.textAlign=`start`;let t=Qc(l);u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}return u}function Kg(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}async function Bje(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,a_(t)).attr(`id`,t.domId||t.id),s=null,l=null,u=null,d=null,f=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await qg(s,{text:`\xAB${e}\xBB`},0),f=s.node().getBBox().height}l=o.insert(`g`).attr(`class`,`label-group text`),await qg(l,t,0,[`font-weight: bolder`]);let h=l.node().getBBox();p=h.height,u=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await qg(u,e,g,[e.parseClassifier()]);g+=t+a}m=u.node().getBBox().height,m<=0&&(m=i/2),d=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await qg(d,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return l.attr(`transform`,`translate(${-h.width/2}, ${f})`),v=o.node().getBBox(),u.attr(`transform`,`translate(0, ${f+p+i*2})`),v=o.node().getBBox(),d.attr(`transform`,`translate(0, ${f+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}async function qg(e,t,n,r=[]){let i=e.insert(`g`).attr(`class`,`label`).attr(`style`,r.join(`; `)),a=ns(),o=`useHtmlLabels`in t?t.useHtmlLabels:Yo(a.htmlLabels)??!0,s=``;s=`text`in t?t.text:t.label,!o&&s.startsWith(`\\`)&&(s=s.substring(1)),ps(s)&&(o=!0);let l=await Eh(i,Ns(Um(s)),{width:Lm(s,a)+50,classes:`markdown-node-label`,useHtmlLabels:o},a),u,d=1;if(o){let e=l.children[0],t=Qc(l);d=e.innerHTML.split(`
    `).length,e.innerHTML.includes(``)&&(d+=e.innerHTML.split(``).length-1),await LAe(e),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{r.includes(`font-weight: bolder`)&&Qc(l).selectAll(`tspan`).attr(`font-weight`,``),d=l.children.length;let e=l.children[0];(l.textContent===``||l.textContent.includes(`>`))&&(e.textContent=s[0]+s.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),s[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),u=l.getBBox()}return i.attr(`transform`,`translate(0,`+(-u.height/(2*d)+n)+`)`),u.height}async function Jg(e,t){let n=As(),{theme:r,themeVariables:i}=n,{useGradient:a,borderColorArray:o}=i,s=n.class.padding??12,l=s,u=t.useHtmlLabels??Yo(n.htmlLabels)??!0,d=t;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:f,bbox:p}=await Bje(e,t,n,u,l);Fh(f,t.colorIndex,r,o);let{labelStyles:m,nodeStyles:h}=am(t);t.labelStyle=m,t.cssStyles=d.styles||``;let g=d.styles?.join(`;`)||h||``;t.cssStyles||=g.replaceAll(`!important`,``).split(`;`);let _=d.members.length===0&&d.methods.length===0&&!n.class?.hideEmptyMembersBox,v=ag.svg(f),y=om(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=Math.max(t.width??0,p.width),x=Math.max(t.height??0,p.height),S=(t.height??0)>p.height;d.members.length===0&&d.methods.length===0?x+=l:d.members.length>0&&d.methods.length===0&&(x+=l*2);let C=-b/2,w=-x/2,T=_?s*2:d.members.length===0&&d.methods.length===0?-s:0;S&&(T=s*2);let E=v.rectangle(C-s,w-s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0),b+2*s,x+2*s+T,y),D=f.insert(()=>E,`:first-child`);D.attr(`class`,`basic label-container outer-path`);let O=D.node().getBBox(),k=f.select(`.annotation-group`).node().getBBox().height-(_?s/2:0)||0,A=f.select(`.label-group`).node().getBBox().height-(_?s/2:0)||0,j=f.select(`.members-group`).node().getBBox().height-(_?s/2:0)||0,M=(k+A+w+s-(w-s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0)))/2;if(f.selectAll(`.text`).each((e,t,r)=>{let i=Qc(r[t]),a=i.attr(`transform`),o=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[2]))}let p=o+w+s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0);if(i.attr(`class`).includes(`methods-group`)){let e=Math.max(j,l/2);p=S?Math.max(M,k+A+e+w+l*2+s)+l*2:k+A+e+w+l*4+s}d.members.length===0&&d.methods.length===0&&n.class?.hideEmptyMembersBox&&(p=d.annotations.length>0?o-l:o),u||(p-=4);let m=C;(i.attr(`class`).includes(`label-group`)||i.attr(`class`).includes(`annotation-group`))&&(m=-i.node()?.getBBox().width/2||0,f.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(m=0)})),i.attr(`transform`,`translate(${m}, ${p})`)}),d.members.length>0||d.methods.length>0||_){let e=k+A+w+s,n=v.line(O.x,e,O.x+O.width,e+.001,y);f.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!a?` neo-line`:``}`).attr(`style`,g)}if(_||d.members.length>0||d.methods.length>0){let e=k+A+j+w+l*2+s,n=v.line(O.x,S?Math.max(M,e):e,O.x+O.width,(S?Math.max(M,e):e)+.001,y);f.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!a?` neo-line`:``}`).attr(`style`,g)}if(d.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,g),D.select(`:nth-child(2)`).attr(`style`,g),f.selectAll(`.divider`).select(`path`).attr(`style`,g),t.labelStyle?f.selectAll(`span`).attr(`style`,t.labelStyle):f.selectAll(`span`).attr(`style`,g),!u){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(g);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}else if(m){let t=e.exec(m);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}}}return i_(t,D),t.intersect=function(e){return c_.rect(t,e)},f}async function Vje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let i=t,a=t,o=`verifyMethod`in t,s=a_(t),l=As(),{themeVariables:u}=l,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,p=l.layout===`elk`?`start`:`center`,m=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId??t.id),h;h=o?await Yg(m,`<<${i.type}>>`,0,t.labelStyle):await Yg(m,`<<Element>>`,0,t.labelStyle);let g=h,_=await Yg(m,i.name,g,t.labelStyle+`; font-weight: bold;`);if(g+=_+20,o){let e=await Yg(m,`${i.requirementId?`ID: ${i.requirementId}`:``}`,g,t.labelStyle,p);g+=e;let n=await Yg(m,`${i.text?`Text: ${i.text}`:``}`,g,t.labelStyle,p);g+=n;let r=await Yg(m,`${i.risk?`Risk: ${i.risk}`:``}`,g,t.labelStyle,p);g+=r,await Yg(m,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:``}`,g,t.labelStyle,p)}else{let e=await Yg(m,`${a.type?`Type: ${a.type}`:``}`,g,t.labelStyle,p);g+=e,await Yg(m,`${a.docRef?`Doc Ref: ${a.docRef}`:``}`,g,t.labelStyle,p)}let v=(m.node()?.getBBox().width??200)+20,y=(m.node()?.getBBox().height??200)+20,b=-v/2,x=-y/2,S=ag.svg(m),C=om(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=S.rectangle(b,x,v,y,C),T=m.insert(()=>w,`:first-child`);if(T.attr(`class`,`basic label-container outer-path`).attr(`style`,r),d?.length){let e=t.colorIndex??0;m.attr(`data-color-id`,`color-${e%d.length}`)}if(m.selectAll(`.label`).each((e,t,n)=>{let r=Qc(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]))}let s=o-y/2,l=b+10;(t===0||t===1)&&(l=a),r.attr(`transform`,`translate(${l}, ${s+20})`)}),g>h+_+20){let e=x+h+_+20,n;if(t.look===`neo`){let t=.001,r=[[b,e],[b+v,e],[b+v,e+t],[b,e+t]];n=S.polygon(r,C)}else n=S.line(b,e,b+v,e,C);m.insert(()=>n).attr(`class`,`divider`)}return i_(t,T),t.intersect=function(e){return c_.rect(t,e)},r&&t.look!==`handDrawn`&&(f||d?.length)&&m.selectAll(`path`).attr(`style`,r),m}async function Yg(e,t,n,r=``,i=`center`){if(t===``)return 0;let a=e.insert(`g`).attr(`class`,`label`).attr(`style`,r),o=As(),s=o.htmlLabels??!0,l=await Eh(a,Ns(Um(t)),{width:Lm(t,o)+50,classes:`markdown-node-label`,useHtmlLabels:s,style:r},o),u;if(s){let e=l.children[0],t=Qc(l);i===`start`&&Qc(e).style(`text-align`,`left`),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=l.children[0];for(let t of e.children)r&&t.setAttribute(`style`,r);if(i===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}u=l.getBBox(),u.height+=6}return a.attr(`transform`,`translate(${-u.width/2},${-u.height/2+n})`),u.height}async function Xg(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=am(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:s,label:l}=await n_(e,t,a_(t)),u=t.padding||10,d=``,f;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(d=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),f=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,d).attr(`target`,`_blank`));let p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},m,h;f?{label:m,bbox:h}=await r_(f,`ticket`in t&&t.ticket||``,p):{label:m,bbox:h}=await r_(o,`ticket`in t&&t.ticket||``,p);let{label:g,bbox:_}=await r_(o,`assigned`in t&&t.assigned||``,p);t.width=a;let v=t?.width||0,y=Math.max(h.height,_.height)/2,b=Math.max(s.height+20,t?.height||0)+y,x=-v/2,S=-b/2;l.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y-s.height/2)+`)`),m.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y+s.height/2)+`)`),g.attr(`transform`,`translate(`+(u+v/2-_.width-20)+`, `+(-y+s.height/2)+`)`);let C,{rx:w,ry:T}=t,{cssStyles:E}=t;if(t.look===`handDrawn`){let e=ag.svg(o),n=om(t,{}),r=w||T?e.path(l_(x,S,v,b,w||0),n):e.rectangle(x,S,v,b,n);C=o.insert(()=>r,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,E||null)}else{C=o.insert(`rect`,`:first-child`),C.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,w??5).attr(`ry`,T??5).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,b);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=x+2,r=S+Math.floor((w??0)/2),i=S+b-Math.floor((w??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,RMe(e))}}return i_(t,C),t.height=b,t.intersect=function(e){return c_.rect(t,e)},o}async function Hje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await n_(e,t,a_(t)),l=a.width+10*o,u=a.height+8*o,d=.15*l,{cssStyles:f}=t,p=a.width+20,m=a.height+20,h=Math.max(l,p),g=Math.max(u,m);s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`);let _,v=`M0 0 +`)}`)}},globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:`0.0.0`},N(Eh,`preprocessMarkdown`),N(Ske,`nonMarkdownToLines`),N(Dh,`markdownToLines`),N(Oh,`nonMarkdownToHTML`),N(Cke,`markdownToHTML`),Lke=(function(e){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function n(){var n=this;n.reads=[],n.writes=[],n.raf=t.bind(e)}N(n,`FastDom`),n.prototype={constructor:n,runTasks:N(function(e){for(var t;t=e.shift();)t()},`runTasks`),measure:N(function(e,t){var n=t?e.bind(t):e;return this.reads.push(n),r(this),n},`measure`),mutate:N(function(e,t){var n=t?e.bind(t):e;return this.writes.push(n),r(this),n},`mutate`),clear:N(function(e){return a(this.reads,e)||a(this.writes,e)},`clear`),extend:N(function(e){if(typeof e!=`object`)throw Error(`expected object`);var t=Object.create(this);return o(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},`extend`),catch:null};function r(e){e.scheduled||(e.scheduled=!0,e.raf(i.bind(null,e)))}N(r,`scheduleFlush`);function i(e){var t=e.writes,n=e.reads,i;try{n.length,e.runTasks(n),t.length,e.runTasks(t)}catch(e){i=e}if(e.scheduled=!1,(n.length||t.length)&&r(e),i){if(i.message,e.catch)e.catch(i);else throw i}}N(i,`flush`);function a(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}N(a,`remove`);function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}return N(o,`mixin`),e.fastdom=e.fastdom||new n})(typeof window<`u`?window:globalThis),Lh={initialize:N(function(){this._tasks=new Map},`initialize`),mutate:N(function(e,t){return wke(this,`mutate`,e,t)},`mutate`),measure:N(function(e,t){return wke(this,`measure`,e,t)},`measure`),clear:N(function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)},`clear`)},N(wke,`create`),{initialize:Rke,mutate:zke,measure:Bke,clear:Vke}=Lh,Hke=Lh,Rh=Lke.extend({raf(e){typeof queueMicrotask==`function`?queueMicrotask(e):setTimeout(e,0)}}).extend(Hke),N(Tke,`splitTextToChars`),N(Eke,`splitWordToFitWidth`),N(kh,`splitWordToFitWidthRecursion`),N(Dke,`splitLineToFitWidth`),N(Oke,`splitLineToFitWidthRecursion`),N(Ah,`applyStyle`),Uke=16384,N(kke,`addHtmlSpan`),N(Ake,`createTspan`),N(jke,`computeWidthOfText`),N(Mke,`computeDimensionOfText`),N(jh,`createFormattedText`),N(Nke,`decodeHTMLEntities`),N(Mh,`updateTextContentAndStyles`),N(Nh,`replaceIconSubstring`),zh=N(async(e,t=``,{style:n=``,isTitle:r=!1,classes:i=``,useHtmlLabels:a=!0,markdown:o=!0,isNode:s=!0,width:l=200,minWidth:u=0,addSvgBackground:d=!1}={},f)=>{if(P.debug(`XYZ createText`,t,n,r,i,a,s,`addSvgBackground: `,d),a){let r=o?Cke(t,f):Oh(t),a=await Nh(Gm(r),f),p=t.replace(/\\\\/g,`\\`);return await kke(e,{isNode:s,label:as(t)?p:a,labelStyle:n.replace(`fill:`,`color:`)},l,i,d,f,u)}{let i=Gm(t.replace(//g,`
    `)),a=jh(l,e,o?Dh(i.replace(`
    `,`
    `),f):Ske(i),t?d:!1,!s);if(s){/stroke:/.exec(n)&&(n=n.replace(`stroke:`,`lineColor:`));let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);Bc(a).attr(`style`,e)}else{let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);Bc(a).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let t=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);Bc(a).select(`text`).attr(`style`,t)}return r?Bc(a).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):Bc(a).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),a}},`createText`)})),Wke,Gke,Kke,Vh,Hh,qke,Uh,Wh,Gh,Kh,qh=o((()=>{Zn(),Wke=new Set([`redux-color`,`redux-dark-color`]),Gke=12,Kke=64,Vh=N(e=>Array.isArray(e)&&e.length>0,`hasPalette`),Hh=N((e,t)=>e!=null&&Wke.has(e)&&Vh(t),`isColorTheme`),qke=/^[\w-]+$/,Uh=N(e=>{let t=typeof e==`string`||typeof e==`number`?String(e):``;return qke.test(t)?t:`classic`},`safeLook`),Wh=N(e=>Vh(e)?e.length:0,`paletteSlotCount`),Gh=N((e,t)=>Vh(t)?Wh(t):typeof e==`number`&&Number.isInteger(e)&&e>0&&e<=Kke?e:Gke,`colorSlotCount`),Kh=N((e,t,n,r)=>{if(t===void 0||!Hh(n,r))return;let i=t%Wh(r);e.attr(`data-color-id`,`color-${i}`)},`stampColorSlot`)}));function Jh(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function Jke(e,t){return e[0]===t[0]&&e[1]===t[1]}function Yke(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)Jh(e,s,i);let l=function(e,t,n){let r=[];for(let t of e){let e=[...t];Jke(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return i;let o=[],s=a[0].ymin,l=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach((e=>{o.push({s,edge:e})}))}if(o=o.filter((e=>!(e.edge.ymax<=s))),o.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(n!==1||l%t==0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),l++}return i}(o,a,r);if(i){for(let e of o)Jh(e,s,-i);(function(e,t,n){let r=[];e.forEach((e=>r.push(...e))),Jh(r,t,n)})(l,s,-i)}return l}function Xke(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),Yke(e,r,n,i||1)}function Yh(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}function Zke(e,t){return e.type===t}function Qke(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:OAe,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:kAe,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:lg,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!Zke(a,lg);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return Qke(`M0,0`+e);i++,o=ug[a.text],r=a.text}else Zke(a,kAe)?o=ug[r]:(i++,o=ug[a.text],r=a.text);if(!(i+or%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function Xh(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:d}of e){switch(u){case`M`:t.push({key:`M`,data:[...d]}),[r,i]=d,[a,o]=d;break;case`C`:t.push({key:`C`,data:[...d]}),r=d[4],i=d[5],s=d[2],l=d[3];break;case`L`:t.push({key:`L`,data:[...d]}),[r,i]=d;break;case`H`:r=d[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=d[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-l)):(e=r,a=i),t.push({key:`C`,data:[e,a,...d]}),s=d[0],l=d[1],r=d[2],i=d[3];break}case`T`:{let[e,a]=d,o=0,u=0;n===`Q`||n===`T`?(o=r+(r-s),u=i+(i-l)):(o=r,u=i);let f=r+2*(o-r)/3,p=i+2*(u-i)/3,m=e+2*(o-e)/3,h=a+2*(u-a)/3;t.push({key:`C`,data:[f,p,m,h,e,a]}),s=o,l=u,r=e,i=a;break}case`Q`:{let[e,n,a,o]=d,u=r+2*(e-r)/3,f=i+2*(n-i)/3,p=a+2*(e-a)/3,m=o+2*(n-o)/3;t.push({key:`C`,data:[u,f,p,m,a,o]}),s=e,l=n,r=a,i=o;break}case`A`:{let e=Math.abs(d[0]),n=Math.abs(d[1]),a=d[2],o=d[3],s=d[4],l=d[5],u=d[6];e===0||n===0?(t.push({key:`C`,data:[r,i,l,u,l,u]}),r=l,i=u):(r!==l||i!==u)&&(eAe(r,i,l,u,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=l,i=u);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=u}return t}function Zh(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function eAe(e,t,n,r,i,a,o,s,l,u){let d=(f=o,Math.PI*f/180);var f;let p=[],m=0,h=0,g=0,_=0;if(u)[m,h,g,_]=u;else{[e,t]=Zh(e,t,-d),[n,r]=Zh(n,r,-d);let o=(e-n)/2,u=(t-r)/2,f=o*o/(i*i)+u*u/(a*a);f>1&&(f=Math.sqrt(f),i*=f,a*=f);let p=i*i,v=a*a,y=p*v-p*u*u-v*o*o,b=p*u*u+v*o*o,x=(s===l?-1:1)*Math.sqrt(Math.abs(y/b));g=x*i*u/a+(e+n)/2,_=x*-a*o/i+(t+r)/2,m=Math.asin(parseFloat(((t-_)/a).toFixed(9))),h=Math.asin(parseFloat(((r-_)/a).toFixed(9))),eh&&(m-=2*Math.PI),!l&&h>m&&(h-=2*Math.PI)}let v=h-m;if(Math.abs(v)>120*Math.PI/180){let e=h,t=n,s=r;h=l&&h>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=eAe(n=g+i*Math.cos(h),r=_+a*Math.sin(h),t,s,i,a,o,0,l,[h,e,g,_])}v=h-m;let y=Math.cos(m),b=Math.sin(m),x=Math.cos(h),S=Math.sin(h),C=Math.tan(v/4),w=4/3*i*C,T=4/3*a*C,E=[e,t],D=[e+w*b,t-T*y],O=[n+w*S,r-T*x],k=[n,r];if(D[0]=2*E[0]-D[0],D[1]=2*E[1]-D[1],u)return[D,O,k].concat(p);{p=[D,O,k].concat(p);let e=[];for(let t=0;t2){let i=[];for(let t=0;t2*Math.PI&&(m=0,h=2*Math.PI);let g=2*Math.PI/l.curveStepCount,_=Math.min(g/2,(h-m)/2),v=rg(_,u,d,f,p,m,h,1,l);if(!l.disableMultiStroke){let e=rg(_,u,d,f,p,m,h,1.5,l);v.push(...e)}return o&&(s?v.push(...ng(u,d,u+f*Math.cos(m),d+p*Math.sin(m),l),...ng(u,d,u+f*Math.cos(h),d+p*Math.sin(h),l)):v.push({op:`lineTo`,data:[u,d]},{op:`lineTo`,data:[u+f*Math.cos(m),d+p*Math.sin(m)]})),{type:`path`,ops:v}}function oAe(e,t){let n=Xh($ke(Qke(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...ng(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,l,u]=o;r.push(...hAe(e,n,i,s,l,u,a,t)),a=[l,u];break}case`Z`:r.push(...ng(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function sAe(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+tg(e,t),r[0][1]+tg(e,t)]});for(let a=1;a500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>s&&(d=l/10);let f=d/2,p=.2+.2*lAe(i),m=i.bowing*i.maxRandomnessOffset*(r-t)/200,h=i.bowing*i.maxRandomnessOffset*(e-n)/200;m=tg(m,i,u),h=tg(h,i,u);let g=[],_=()=>tg(f,i,u),v=()=>tg(d,i,u),y=i.preserveVertices;return a&&(o?g.push({op:`move`,data:[e+(y?0:_()),t+(y?0:_())]}):g.push({op:`move`,data:[e+(y?0:tg(d,i,u)),t+(y?0:tg(d,i,u))]})),o?g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+_(),h+t+(r-t)*p+_(),m+e+2*(n-e)*p+_(),h+t+2*(r-t)*p+_(),n+(y?0:_()),r+(y?0:_())]}):g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+v(),h+t+(r-t)*p+v(),m+e+2*(n-e)*p+v(),h+t+2*(r-t)*p+v(),n+(y?0:v()),r+(y?0:v())]}),g}function fAe(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+tg(t,n),e[0][1]+tg(t,n)]),r.push([e[0][0]+tg(t,n),e[0][1]+tg(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n)):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],l=e[t+3],u=ag(a,o,r),d=ag(o,s,r),f=ag(s,l,r),p=ag(u,d,r),m=ag(d,f,r),h=ag(p,m,r);yAe([a,u,p,h],0,n,i),yAe([h,m,f,l],0,n,i)}var a,o;return i}function bAe(e,t){return xAe(e,0,e.length,t)}function xAe(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],l=0,u=1;for(let r=t+1;rl&&(l=t,u=r)}return Math.sqrt(l)>r?(xAe(e,t,u+1,r,a),xAe(e,u,n,r,a)):(a.length||a.push(o),a.push(s)),a}function SAe(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?xAe(r,0,r.length,n):r}var og,CAe,wAe,TAe,EAe,DAe,sg,cg,OAe,kAe,lg,ug,AAe,dg,jAe,MAe,fg,NAe,pg,mg=o((()=>{og=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=Xke(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}},CAe=class extends og{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=Xke(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(let[e,t]of r)Yh([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},wAe=class extends og{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},TAe=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=Xke(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=Yh(o),s=e/r,l=Math.ceil(s)-1,u=e-l*r,d=(o[0][0]+o[1][0])/2-r/4,f=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=Yh(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e{let i=Yh(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e2*Math.PI&&(f=0,p=2*Math.PI);let m=(p-f)/o.curveStepCount,h=[];for(let e=f;e<=p;e+=m)h.push([s+u*Math.cos(e),l+d*Math.sin(e)]);return h.push([s+u*Math.cos(p),l+d*Math.sin(p)]),h.push([s,l]),eg([h],o)}(e,t,n,r,i,a,l))}return l.stroke!==dg&&u.push(d),this._d(`arc`,u,l)}curve(e,t){let n=this._o(t),r=[],i=rAe(e,n);if(n.fill&&n.fill!==dg){if(n.fillStyle===`solid`){let t=rAe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...SAe(_Ae([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...SAe(_Ae(r),10,(1+n.roughness)/2))}t.length&&r.push(eg([t],n))}}return n.stroke!==dg&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=Qh(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(sAe([e],n)):r.push(eg([e],n))),n.stroke!==dg&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==dg,a=n.stroke!==dg,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=Xh($ke(Qke(e))),i=[],a=[],o=[0,0],s=[],l=()=>{s.length>=4&&a.push(...SAe(s,t)),s=[]},u=()=>{l(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:u(),o=[t[0],t[1]],a.push(o);break;case`L`:l(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:l(),a.push([o[0],o[1]])}if(u(),!n)return i;let d=[];for(let e of i){let t=bAe(e,n);t.length&&d.push(t)}return d}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=oAe(e,n);if(i){if(n.fillStyle===`solid`){if(s.length===1){let t=oAe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(sAe(s,n))}else r.push(eg(s,n))}return a&&(o?s.forEach((e=>{r.push(Qh(e,!1,n))})):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:dg};break;case`fillPath`:t={d:this.opsToPath(e),stroke:dg,strokeWidth:0,fill:n.fill||dg};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||dg,strokeWidth:n,fill:dg}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},MAe=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new jAe(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},fg=`http://www.w3.org/2000/svg`,NAe=class{constructor(e,t){this.svg=e,this.gen=new jAe(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(fg,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS(fg,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS(fg,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(fg,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),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,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},pg={canvas:(e,t)=>new MAe(e,t),svg:(e,t)=>new NAe(e,t),generator:e=>new jAe(e),newSeed:()=>jAe.newSeed()}}));async function PAe(e){let t=e.getElementsByTagName(`img`);if(!t||t.length===0)return;let n=!hg(e);await Promise.all([...t].map(e=>new Promise(t=>{function r(){if(e.style.display=`flex`,e.style.flexDirection=`column`,n){let t=bs().fontSize?bs().fontSize:window.getComputedStyle(document.body).fontSize,[n=Fo.fontSize]=Um(t),r=n*5+`px`;e.style.minWidth=r,e.style.maxWidth=r}else e.style.width=`100%`;t(e)}N(r,`setupImage`),setTimeout(()=>{e.complete&&r()}),e.addEventListener(`error`,r),e.addEventListener(`load`,r)})))}function hg(e){return e.nodeType===t_?e.textContent?.trim()!==``:e.nodeType!==e_||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(hg)}function gg(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}function _g(e,t,n,r,i,a){let o=[],s=n-e,l=r-t,u=s/a,d=2*Math.PI/u,f=t+l/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=f+i*Math.sin(d*(n-e));o.push({x:n,y:r})}return o}function vg(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ie.tagName===`path`),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),r=t.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);n.setAttribute(`d`,r);let i=t.find(e=>e.getAttribute(`fill`)!==`none`),a=t.find(e=>e.getAttribute(`stroke`)!==`none`),o=N((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(i){let e={fill:o(i,`fill`),"fill-opacity":o(i,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}if(a){let e={stroke:o(a,`stroke`),"stroke-width":o(a,`stroke-width`)??`1`,"stroke-opacity":o(a,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return s.appendChild(n),s}function yg(e,t){return e.intersect(t)}function IAe(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),u=Math.abs(t*n*o/l);r.x0}function bg(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=r-e.width/2-o,u=i-e.height/2-s;for(let r=0;r1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return au,`:first-child`);return d.attr(`class`,`anchor`).attr(`style`,Vm(o)),o_(t,d),t.intersect=function(e){return P.info(`Circle intersect`,t,1,e),d_.circle(t,1,e)},a}function VAe(e,t,n,r,i,a,o){let s=(e+n)/2,l=(t+r)/2,u=Math.atan2(r-t,n-e),d=(n-e)/2,f=(r-t)/2,p=d/i,m=f/a,h=Math.sqrt(p**2+m**2);if(h>1)throw Error(`The given radii are too small to create an arc between the points.`);let g=Math.sqrt(1-h**2),_=s+g*a*Math.sin(u)*(o?-1:1),v=l-g*i*Math.cos(u)*(o?-1:1),y=Math.atan2((t-v)/a,(e-_)/i),b=Math.atan2((r-v)/a,(n-_)/i)-y;o&&b<0&&(b+=2*Math.PI),!o&&b>0&&(b-=2*Math.PI);let x=[];for(let e=0;e<20;e++){let t=y+e/19*b,n=_+i*Math.cos(t),r=v+a*Math.sin(t);x.push({x:n,y:r})}return x}function HAe(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}async function UAe(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=N(e=>e+o,`calcTotalHeight`),l=N(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:u,bbox:d}=await i_(e,t,s_(t)),f=s(t?.height?t?.height:d.height),[p,m]=l(f),h=HAe(f,p,m),g=(t?.width?t?.width:d.width)+a*2+h-h,_=f,{cssStyles:v}=t,y=[{x:g/2,y:-_/2},{x:-g/2,y:-_/2},...VAe(-g/2,-_/2,-g/2,_/2,p,m,!1),{x:g/2,y:_/2},...VAe(g/2,_/2,g/2,-_/2,p,m,!0)],b=pg.svg(u),x=lm(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=gg(y),C=b.path(S,x),w=u.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(${p/2}, 0)`),o_(t,w),t.intersect=function(e){return d_.polygon(t,y,e)},u}async function WAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await i_(e,t,s_(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,80),f=Math.max(Math.min(d*.08,12),5),p=Math.max(o.height+u*2+f,t.height??0),m=-p/2+f,h=p/2,g=d*.72,_=[`M${-d/2},${m}`,`L${-g/2},${h}`,`A${g/2},${f} 0 0 0 ${g/2},${h}`,`L${d/2},${m}`,`A${d/2},${f} 0 0 0 ${-d/2},${m}`,`Z`].join(` `),{cssStyles:v}=t,y=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=pg.svg(a).path(_,lm(t,{}));y.node()?.appendChild(e),v&&y.attr(`style`,v)}else y.append(`path`).attr(`d`,_).attr(`style`,i);y.append(`ellipse`).attr(`cx`,0).attr(`cy`,m).attr(`rx`,d/2).attr(`ry`,f).attr(`style`,`fill:none;stroke:${l};stroke-width:1px`),o_(t,y);let b=m+(h-m)/2;s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${b-o.height/2-(o.y-(o.top??0))})`);let x=N((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*f*Math.sin(a)}}),`arc`),S=[...x(d/2,m,-1),...x(g/2,h,1).reverse()];return t.intersect=function(e){return d_.polygon(t,S,e)},a}function GAe(e){let{themeVariables:t}=bs(),n=t.clusterBkg,r=t.clusterBorder;switch(e){case`flow`:return{rx:10,fill:`none`,stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:`flow-collapsed`};default:return{rx:h_,fill:n,stroke:r,cssClass:`collapsed-group`}}}async function KAe(e,t){let n=GAe(t.metadata?.containerType),{fill:r,stroke:i}=n,{nodeStyles:a}=cm(t),{shapeSvg:o,bbox:s}=await i_(e,t,s_(t)),{theme:l,themeVariables:u}=bs();Kh(o,t.colorIndex,l,u.borderColorArray);let d=t.padding??8,f=s.height,p=Math.max(s.width+d*2,eMe,t?.width??0),m=Math.max(f+$je+m_+d*2,t?.height??0),h=-p/2,g=-m/2,_=-($je+m_)/2,v=o.select(`.label`);v&&(t.useHtmlLabels??es(bs())?v.attr(`transform`,`translate(${-s.width/2}, ${-s.height/2+_})`):v.attr(`transform`,`translate(0, ${-s.height/2+_})`));let y;if(t.look===`handDrawn`){let e=pg.svg(o),a=lm(t,{fill:r,stroke:i,...n.strokeWidth===void 0?{}:{strokeWidth:n.strokeWidth},...r===`none`?{fillWeight:0}:{fillStyle:`solid`}}),s=e.path(f_(h,g,p,m,n.rx),a);y=o.insert(()=>s,`:first-child`),y.attr(`class`,`basic label-container `+n.cssClass).attr(`style`,Vm(t.cssStyles))}else y=o.insert(`rect`,`:first-child`),y.attr(`class`,`basic label-container `+n.cssClass).attr(`style`,a).attr(`rx`,n.rx).attr(`ry`,n.rx).attr(`x`,h).attr(`y`,g).attr(`width`,p).attr(`height`,m).attr(`fill`,r).attr(`stroke`,i),n.strokeWidth!==void 0&&y.attr(`stroke-width`,n.strokeWidth+`px`);let b=g+d+f+$je;o.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,h+8).attr(`y1`,b).attr(`x2`,h+p-8).attr(`y2`,b).attr(`stroke`,i).attr(`stroke-dasharray`,`3, 3`);let x=b+m_/2;for(let e=-1;e<=1;e++)o.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,x).attr(`r`,2.5).attr(`fill`,i);return o_(t,y),t.calcIntersect=function(e,t){return d_.rect(e,t)},t.intersect=function(e){return d_.rect(t,e)},o}function xg(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}async function qAe(e,t){let n=t,{shapeSvg:r,bbox:i}=await i_(e,n,s_(n)),a=n.padding??0,o=i.height+2*a,s=o/2,l=i.width+2*s+a,u=n.width??0,d=n.positioned&&(n.widthInColumns??1)>1&&u>l?u:l,f=aMe(n.directions??[],i,n,d),p=xg(r,d,o,f);return p.attr(`style`,n.style??null),o_(n,p),n.intersect=function(e){return d_.polygon(n,f,e)},r}async function JAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await i_(e,t,s_(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+18,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=pg.svg(a).path(f_(-d/2,p,d,f,12),lm(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`line`).attr(`x1`,-d/2).attr(`y1`,p+18).attr(`x2`,d/2).attr(`y2`,p+18).attr(`style`,`stroke:${l};stroke-width:1px`);for(let e=0;e<3;e++)h.append(`circle`).attr(`cx`,-d/2+12+e*9).attr(`cy`,p+9).attr(`r`,2.5).attr(`style`,`fill:${l};stroke:none`);h.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-d/2+44).attr(`y`,p+4).attr(`width`,Math.max(d-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),o_(t,h);let g=p+18+(f-18)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return d_.rect(t,e)},a}async function YAe(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=(t?.width??l.width)+(t.look===`neo`?a*2:a+__),d=(t?.height??l.height)+(t.look===`neo`?o*2:o),f=u,p=-d,m=[{x:0+__,y:p},{x:f,y:p},{x:f,y:0},{x:0,y:0},{x:0,y:p+__},{x:0+__,y:p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{}),r=gg(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=xg(s,u,d,m);return r&&h.attr(`style`,r),o_(t,h),t.intersect=function(e){return d_.polygon(t,m,e)},s}function XAe(e,t){let{nodeStyles:n}=cm(t);t.label=``;let r=e.insert(`g`).attr(`class`,s_(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=pg.svg(r),l=lm(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=gg(o),d=s.path(u,l),f=r.insert(()=>d,`:first-child`);return i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return d_.polygon(t,o,e)},r}async function ZAe(e,t,n){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s}=await i_(e,t,s_(t),{ignoreMinWidth:!0}),l=n?.padding??s,u=Math.sqrt(o.width**2+o.height**2)/2,d=t.look===`neo`?u+16:u+l,f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=pg.svg(a),n=lm(t,{}),r=e.circle(0,0,d*2,n);f=a.insert(()=>r,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,Vm(p))}else f=a.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`r`,d).attr(`cx`,0).attr(`cy`,0);return o_(t,f),t.calcIntersect=function(e,t){let n=e.width/2;return d_.circle(e,n,t)},t.intersect=function(e){return P.info(`Circle intersect`,t,d,e),d_.circle(t,d,e)},a}async function QAe(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await i_(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,l=n.positioned?n.width??0:i.width+s,u=n.positioned?n.height??0:i.height+s,d=n.positioned?-l/2:-i.width/2-a,f=n.positioned?-u/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u),o_(n,o),n.intersect=function(e){return d_.rect(n,e)},r}async function $Ae(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await i_(e,t,s_(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+20,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=pg.svg(a).path(f_(-d/2,p,d,f,12),lm(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`text`).attr(`x`,-d/2+12).attr(`y`,p+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(`>_`),o_(t,h);let g=p+20+(f-20)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return d_.rect(t,e)},a}function eje(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y} + M ${i.x},${i.y} L ${o.x},${o.y}`}function tje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n,t.label=``;let i=e.insert(`g`).attr(`class`,s_(t)).attr(`id`,t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:o}=t,s=pg.svg(i),l=lm(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=s.circle(0,0,a*2,l),d=eje(a),f=s.path(d,l),p=i.insert(()=>u,`:first-child`);return p.insert(()=>f),p.attr(`class`,`outer-path`),o&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,o),r&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,r),o_(t,p),t.intersect=function(e){return P.info(`crossedCircle intersect`,t,{radius:a,point:e}),d_.circle(t,a,e)},i}function Sg(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${f}, 0)`),o.attr(`transform`,`translate(${-u/2+f-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),o_(t,S),t.intersect=function(e){return d_.polygon(t,h,e)},i}function wg(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${-f}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),o_(t,S),t.intersect=function(e){return d_.polygon(t,h,e)},i}function Tg(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),T.insert(()=>b,`:first-child`),T.insert(()=>S,`:first-child`),T.attr(`class`,`text`),p&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(${f-f/4}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),o_(t,T),t.intersect=function(e){return d_.polygon(t,g,e)},i}async function ije(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=Math.max(5,l.height+o*2,t?.height??0),d=u/2,f=d-Math.sqrt(Math.max(0,d**2-(l.height/2)**2)),p=Math.max(u/4,f),m=Math.max(20,l.width+a*2+p*2,(l.width+a*2)*1.25,t?.width??0),{cssStyles:h}=t,g=pg.svg(s),_=lm(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=m,y=u,b=v-d,x=y/4,S=[{x:b,y:0},{x,y:0},{x:0,y:y/2},{x,y},{x:b,y},...vg(-b,-y/2,d,50,270,90)],C=gg(S),w=g.path(C,_),T=s.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),T.attr(`transform`,`translate(${-m/2}, ${-u/2})`),o_(t,T),t.intersect=function(e){return d_.polygon(t,S,e)},s}async function Eg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await i_(e,t,s_(t)),s=t.padding??20,l=Math.max(a.width+s*2,t.width??0,100),u=Math.min(Math.max(l*.23,16),56),d=u*.27,f=Math.max(a.height+s*2,t.height?t.height-(2*u-d):0),p=Math.min(l*.177,f*.45),m=f+2*u-d,h=-m/2,g=h+2*u-d,_=i.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:v}=t;if(t.look===`handDrawn`){let e=pg.svg(i),n=lm(t,{}),r=e.path(f_(-l/2,g,l,f,p),n),a=e.circle(0,h+u,u*2,n);_.insert(()=>a,`:first-child`),_.insert(()=>r,`:first-child`),v&&_.attr(`style`,v)}else _.append(`rect`).attr(`x`,-l/2).attr(`y`,g).attr(`width`,l).attr(`height`,f).attr(`rx`,p).attr(`ry`,p).attr(`style`,r),_.append(`circle`).attr(`cx`,0).attr(`cy`,h+u).attr(`r`,u).attr(`style`,r);o_(t,_);let y=g+f/2;o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${y-a.height/2-(a.y-(a.top??0))})`);let b=h+u,x=Math.asin(Math.min(1,(g-b)/u))*180/Math.PI,S=[...vg(0,-b,u,24,180+x,-x),...vg(-(-l/2+p),-(g+p),p,12,90,0),...vg(-(-l/2+p),-(m/2-p),p,12,360,270),...vg(-(l/2-p),-(m/2-p),p,12,270,180),...vg(-(l/2-p),-(g+p),p,12,180,90)];return t.intersect=function(e){return d_.polygon(t,S,e)},i}async function aje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?24:i,o=t.look===`neo`?24:i,s=t.width??0;if(t.width&&(t.width-=o,t.widtho,`:first-child`),g=l.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=oMe(0,0,f,h,p,m);g=l.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,Vm(_)).attr(`style`,r)}return g.attr(`label-offset-y`,m),g.attr(`transform`,`translate(${-f/2}, ${-(h/2+m)})`),o_(t,g),d.attr(`transform`,`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(e){let n=d_.rect(t,e),r=n.x-(t.x??0);if(p!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-m)){let i=m*m*(1-r*r/(p*p));i>0&&(i=Math.sqrt(i)),i=m-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},l}async function Dg(e,t,n){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await i_(e,t,s_(t)),s=Math.max(o.width+n.labelPaddingX*2,t?.width||0),l=Math.max(o.height+n.labelPaddingY*2,t?.height||0),u=-s/2,d=-l/2,f,{rx:p,ry:m}=t,{cssStyles:h}=t;if(n?.rx&&n.ry&&(p=n.rx,m=n.ry),t.look===`handDrawn`){let e=pg.svg(a),n=lm(t,{}),r=p||m?e.path(f_(u,d,s,l,p||0),n):e.rectangle(u,d,s,l,n);f=a.insert(()=>r,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,Vm(h))}else f=a.insert(`rect`,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,Vm(p)).attr(`ry`,Vm(m)).attr(`x`,u).attr(`y`,d).attr(`width`,s).attr(`height`,l);return o_(t,f,t.look===`handDrawn`?void 0:{width:s,height:l}),t.calcIntersect=function(e,t){return d_.rect(e,t)},t.intersect=function(e){return d_.rect(t,e)},a}async function oje(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:s}=t,l=await Dg(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=pg.svg(l),n=lm(t,{}),r=l.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return l;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return l;return l.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),l.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),l}let u=l.select(`.basic.label-container`),d=(Number(u.attr(`width`))||o)??0,f=(Number(u.attr(`height`))||s)??0;return d>0&&f>0&&u.attr(`stroke-dasharray`,`${d} ${f}`),l}async function Og(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await i_(e,t,s_(t)),u=s.width+i,d=s.height+a,f=d*.2,p=-u/2,m=-d/2-f/2,{cssStyles:h}=t,g=pg.svg(o),_=lm(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=o.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${p+(t.padding??0)/2-(s.x-(s.left??0))}, ${m+f+(t.padding??0)/2-(s.y-(s.top??0))})`),o_(t,b),t.intersect=function(e){return d_.rect(t,e)},o}async function sje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t),i=t.look===`neo`?12:5;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?16:a,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t),{ignoreMinWidth:!0}),u=Math.sqrt(l.width**2+l.height**2)/2,d=(t?.width?t?.width/2:u)+(o??0),f=d+i,p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{roughness:.2,strokeWidth:2.5}),r=lm(t,{roughness:.2,strokeWidth:1.5}),i=e.circle(0,0,f*2,n),a=e.circle(0,0,d*2,r);p=s.insert(`g`,`:first-child`),p.attr(`class`,Vm(t.cssClasses)).attr(`style`,Vm(m)),p.node()?.appendChild(i),p.node()?.appendChild(a)}else{p=s.insert(`g`,`:first-child`);let e=p.insert(`circle`,`:first-child`),t=p.insert(`circle`);p.attr(`class`,`basic label-container`).attr(`style`,r),e.attr(`class`,`outer-circle`).attr(`style`,r).attr(`r`,f).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,r).attr(`r`,d).attr(`cx`,0).attr(`cy`,0)}return o_(t,p),t.intersect=function(e){return P.info(`DoubleCircle intersect`,t,f,e),d_.circle(t,f,e)},s}async function cje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o}=await i_(e,t,s_(t)),{theme:s,themeVariables:l}=bs();Kh(i,t.colorIndex,s,l.borderColorArray);let u=o??10,d=a.width/2+u*2,f=a.height/2+u*2,p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=pg.svg(i),n=lm(t,{}),r=e.ellipse(0,0,d*2,f*2,n);p=i.insert(()=>r,`:first-child`),p.attr(`class`,`basic label-container`),m&&p.attr(`style`,m)}else p=i.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`rx`,d).attr(`ry`,f).attr(`cx`,0).attr(`cy`,0);return t.width=d*2,t.height=f*2,o_(t,p),t.calcIntersect=function(e,t){let n=e.width/2,r=e.height/2;return d_.ellipse(e,n,r,t)},t.intersect=function(e){return d_.ellipse(t,d,f,e)},i}function lje(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=cm(t);t.label=``,t.labelStyle=r;let a=e.insert(`g`).attr(`class`,s_(t)).attr(`id`,t.domId??t.id),{cssStyles:o}=t,s=pg.svg(a),{nodeBorder:l}=n,u=lm(t,{fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let d=s.circle(0,0,14,u),f=a.insert(()=>d,`:first-child`);return f.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),o&&o.length>0&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,o),i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),o_(t,f),t.intersect=function(e){return P.info(`filledCircle intersect`,t,{radius:7,point:e}),d_.circle(t,7,e)},a}async function uje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.height=t?.height??0,t.heightv,`:first-child`).attr(`transform`,`translate(${-d/2}, ${d/2})`).attr(`class`,`outer-path`);return m&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),t.width=u,t.height=d,o_(t,y),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${-d/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(e){return P.info(`Triangle intersect`,t,p,e),d_.polygon(t,p,e)},o}async function dje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await i_(e,t,s_(t)),s=t.padding??12,l=Math.max(a.width+s*2,t.width??0,90),u=a.height+s*2,d=Math.max(Math.min(u*.16,14),8),f=Math.max(u+d,t.height??0),p=f-d,m=Math.max(l*.38,28),h=-f/2,g=[{x:-l/2,y:h},{x:-l/2+m,y:h},{x:-l/2+m,y:h+d},{x:l/2,y:h+d},{x:l/2,y:f/2},{x:-l/2,y:f/2}],_=[`M${g[0].x},${g[0].y}`,...g.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:v}=t,y;if(t.look===`handDrawn`){let e=pg.svg(i).path(_,lm(t,{}));y=i.insert(()=>e,`:first-child`).attr(`class`,`basic label-container`),v&&y.attr(`style`,v)}else y=i.insert(`path`,`:first-child`).attr(`d`,_).attr(`class`,`basic label-container`).attr(`style`,r);t.look===`handDrawn`?o_(t,y):o_(t,y,{width:l,height:f});let b=h+d+p/2;return o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${b-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(e){return d_.polygon(t,g,e)},i}function fje(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=cm(t);t.label=``;let o=e.insert(`g`).attr(`class`,s_(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,l=Math.max(70,t?.width??0),u=Math.max(10,t?.height??0);(n===`LR`||n===`RL`)&&(l=Math.max(10,t?.width??0),u=Math.max(70,t?.height??0));let d=-1*l/2,f=-1*u/2,p=pg.svg(o),m=lm(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.rectangle(d,f,l,u,m),g=o.insert(()=>h,`:first-child`);s&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,a),o_(t,g);let _=r?.padding??0;return t.width&&t.height&&(t.width+=_/2||0,t.height+=_/2||0),t.intersect=function(e){return d_.rect(t,e)},o}async function pje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10),t.width=(t?.width??0)-i*2,t.width<15&&(t.width=15));let{shapeSvg:o,bbox:s}=await i_(e,t,s_(t)),l=(t?.height?t?.height:Math.max(10,s.height))+a*2,u=l/2,d=u-Math.sqrt(Math.max(0,u**2-(s.height/2)**2)),f=(t?.width?t?.width:Math.max(15,s.width)+d*2)+i*2,{cssStyles:p}=t,m=pg.svg(o),h=lm(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-f/2,y:-l/2},{x:f/2-u,y:-l/2},...vg(-f/2+u,0,u,50,90,270),{x:f/2-u,y:l/2},{x:-f/2,y:l/2}],_=gg(g),v=m.path(_,h),y=o.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),o_(t,y),t.intersect=function(e){return P.info(`Pill intersect`,t,{radius:u,point:e}),d_.polygon(t,g,e)},o}async function mje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,s=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-s,t.height=(t.height??0)-o}let{shapeSvg:l,bbox:u}=await i_(e,t,s_(t)),d=(t?.height?t?.height:u.height)+o,f=d/i,p=(t?.width?t?.width:u.width)+2*f+s,m=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-d/2},{x:p-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=pg.svg(l),n=lm(t,{}),r=dMe(0,0,p,d,f),i=e.path(r,n);h=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-p/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=xg(l,p,d,m);return r&&h.attr(`style`,r),t.width=p,t.height=d,o_(t,h),t.intersect=function(e){return d_.polygon(t,m,e)},l}async function kg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.label=``,t.labelStyle=n;let{shapeSvg:i}=await i_(e,t,s_(t)),a=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:s}=t,l=pg.svg(i),u=lm(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],f=gg(d),p=l.path(f,u),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`basic label-container outer-path`),s&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,s),r&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,r),m.attr(`transform`,`translate(${-a/2}, ${-o/2})`),o_(t,m),t.intersect=function(e){return P.info(`Pill intersect`,t,{points:d}),d_.polygon(t,d,e)},i}async function Ag(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=cm(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await i_(e,t,`icon-shape default`),p=t.pos===`t`,m=s,h=s,{nodeBorder:g}=n,{stylesMap:_}=sm(t),v=-h/2,y=-m/2,b=t.label?8:0,x=pg.svg(u),S=lm(t,{stroke:`none`,fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x.rectangle(v,y,h,m,S),w=Math.max(h,d.width),T=m+d.height+b,E=x.rectangle(-w/2,-T/2,w,T,{...S,fill:`transparent`,stroke:`none`}),D=u.insert(()=>C,`:first-child`),O=u.insert(()=>E);if(t.icon){let e=u.append(`g`);e.html(`${await ym(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${p?d.height/2+b/2-i/2-o:-d.height/2-b/2-i/2-o})`),e.attr(`style`,`color: ${_.get(`stroke`)??g};`)}return f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${p?-T/2:T/2-d.height})`),D.attr(`transform`,`translate(0,${p?d.height/2+b/2:-d.height/2-b/2})`),o_(t,O),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return d_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=p?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+b},{x:n+h/2,y:r-i/2+d.height+b},{x:n+h/2,y:r+i/2},{x:n-h/2,y:r+i/2},{x:n-h/2,y:r-i/2+d.height+b},{x:n-d.width/2,y:r-i/2+d.height+b}]:[{x:n-h/2,y:r-i/2},{x:n+h/2,y:r-i/2},{x:n+h/2,y:r-i/2+m},{x:n+d.width/2,y:r-i/2+m},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+m},{x:n-h/2,y:r-i/2+m}],d_.polygon(t,a,e)},u}async function jg(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=cm(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await i_(e,t,`icon-shape default`),p=t.label?8:0,m=t.pos===`t`,{nodeBorder:h,mainBkg:g}=n,{stylesMap:_}=sm(t),v=pg.svg(u),y=lm(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`),y.stroke=_.get(`fill`)??g;let b=u.append(`g`);t.icon&&b.html(`${await ym(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let x=b.node().getBBox(),S=x.width,C=x.height,w=x.x,T=x.y,E=Math.max(S,C)*Math.SQRT2+40,D=v.circle(0,0,E,y),O=Math.max(E,d.width),k=E+d.height+p,A=v.rectangle(-O/2,-k/2,O,k,{...y,fill:`transparent`,stroke:`none`}),j=u.insert(()=>D,`:first-child`),M=u.insert(()=>A);return b.attr(`transform`,`translate(${-S/2-w},${m?d.height/2+p/2-C/2-T:-d.height/2-p/2-C/2-T})`),b.attr(`style`,`color: ${_.get(`stroke`)??h};`),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-k/2:k/2-d.height})`),j.attr(`transform`,`translate(0,${m?d.height/2+p/2:-d.height/2-p/2})`),o_(t,M),t.intersect=function(e){return P.info(`iconSquare intersect`,t,e),d_.rect(t,e)},u}async function hje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=cm(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await i_(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=sm(t),b=-g/2,x=-h/2,S=t.label?8:0,C=pg.svg(u),w=lm(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(f_(b,x,g,h,5),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`).attr(`class`,`icon-shape2`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await ym(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),o_(t,A),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return d_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],d_.polygon(t,a,e)},u}async function gje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=cm(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await i_(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=sm(t),b=-g/2,x=-h/2,S=t.label?8:0,C=pg.svg(u),w=lm(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(f_(b,x,g,h,.1),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await ym(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),o_(t,A),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return d_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],d_.polygon(t,a,e)},u}async function _je(e,t,{config:{flowchart:n}}){let r=new Image;r.src=t?.img??``,await r.decode();let i=Number(r.naturalWidth.toString().replace(`px`,``)),a=Number(r.naturalHeight.toString().replace(`px`,``));t.imageAspectRatio=i/a;let{labelStyles:o}=cm(t);t.labelStyle=o;let s=n?.wrappingWidth;t.defaultWidth=n?.wrappingWidth;let l=Math.max(t.label?s??0:0,t?.assetWidth??i),u=t.constraint===`on`&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,d=t.constraint===`on`?u/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(u,s??0);let{shapeSvg:f,bbox:p,label:m}=await i_(e,t,`image-shape default`),h=t.pos===`t`,g=-u/2,_=-d/2,v=t.label?8:0,y=pg.svg(f),b=lm(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,u,d,b),S=Math.max(u,p.width),C=d+p.height+v,w=y.rectangle(-S/2,-C/2,S,C,{...b,fill:`none`,stroke:`none`}),T=f.insert(()=>x,`:first-child`),E=f.insert(()=>w);if(t.img){let e=f.append(`image`);e.attr(`href`,t.img),e.attr(`width`,u),e.attr(`height`,d),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${h?C/2-d:-C/2})`)}return m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))},${h?-d/2-p.height/2-v/2:d/2-p.height/2+v/2})`),T.attr(`transform`,`translate(0,${h?p.height/2+v/2:-p.height/2-v/2})`),o_(t,E),t.intersect=function(e){if(P.info(`iconSquare intersect`,t,e),!t.label)return d_.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=h?[{x:n-p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2+p.height+v},{x:n+u/2,y:r-i/2+p.height+v},{x:n+u/2,y:r+i/2},{x:n-u/2,y:r+i/2},{x:n-u/2,y:r-i/2+p.height+v},{x:n-p.width/2,y:r-i/2+p.height+v}]:[{x:n-u/2,y:r-i/2},{x:n+u/2,y:r-i/2},{x:n+u/2,y:r-i/2+d},{x:n+p.width/2,y:r-i/2+d},{x:n+p.width/2/2,y:r+i/2},{x:n-p.width/2,y:r+i/2},{x:n-p.width/2,y:r-i/2+d},{x:n-u/2,y:r-i/2+d}],d_.polygon(t,a,e)},f}async function Mg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=Math.max(l.height+a*2,t.height??0),d=Math.max(l.width+o*2,(t.width??0)-u),f=[{x:0,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:-3*u/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{}),r=gg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=xg(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,o_(t,p),t.intersect=function(e){return d_.polygon(t,f,e)},s}async function vje(e,t){let{shapeSvg:n,bbox:r,label:i}=await i_(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),o_(t,a),t.intersect=function(e){return d_.rect(t,e)},n}async function yje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{}),r=gg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=xg(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,o_(t,p),t.intersect=function(e){return d_.polygon(t,f,e)},s}async function bje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{}),r=gg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=xg(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,o_(t,p),t.intersect=function(e){return d_.polygon(t,f,e)},s}function xje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.label=``,t.labelStyle=n;let i=e.insert(`g`).attr(`class`,s_(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,t?.width??0),s=Math.max(35,t?.height??0),l=[{x:o,y:0},{x:0,y:s+7/2},{x:o-14,y:s+7/2},{x:0,y:2*s},{x:o,y:s-7/2},{x:14,y:s-7/2}],u=pg.svg(i),d=lm(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=gg(l),p=u.path(f,d),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`outer-path`),a&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),r&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,r),m.attr(`transform`,`translate(-${o/2},${-s})`),o_(t,m),t.intersect=function(e){return P.info(`lightningBolt intersect`,t,e),d_.polygon(t,l,e)},i}async function Ng(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-a,t.widtho,`:first-child`).attr(`class`,`line`),g=s.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=fMe(0,0,d,m,f,p,h);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,Vm(_)).attr(`style`,r)}return g.attr(`label-offset-y`,p),g.attr(`transform`,`translate(${-d/2}, ${-(m/2+p)})`),o_(t,g),u.attr(`transform`,`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+p-(l.y-(l.top??0))})`),t.intersect=function(e){let n=d_.rect(t,e),r=n.x-(t.x??0);if(f!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}async function Sje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:s,bbox:l,label:u}=await i_(e,t,s_(t)),d=(t?.width?t?.width:l.width)+(a??0)*2,f=(t?.height?t?.height:l.height)+(o??0)*2,p=t.look===`neo`?f/4:f/8,m=f+p,{cssStyles:h}=t,g=pg.svg(s),_=lm(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},..._g(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,p,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),b.attr(`transform`,`translate(0,${-p/2})`),u.attr(`transform`,`translate(${-d/2+(t.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-f/2+(t.padding??0)-p-(l.y-(l.top??0))})`),o_(t,b),t.intersect=function(e){return d_.polygon(t,v,e)},s}async function Cje(e,t,n,r){let{labelStyles:i,nodeStyles:a}=cm(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,label:l}=await i_(e,n===`icon`||t.stereotype!==void 0?{...t,icon:n===`icon`?void 0:t.icon,stereotype:void 0}:t,s_(t,`usecase-actor-variant usecase-actor-${n}`)),u=t.accessibleName??t.label;u&&o.attr(`role`,`img`).attr(`aria-label`,u),l.attr(`class`,`label actor-label usecase-actor-label`);let{theme:d,themeVariables:f}=bs();Kh(o,t.colorIndex,d,f.borderColorArray);let p,m;if(t.stereotype){let e=await a_(o,`\xAB${t.stereotype}\xBB`,{labelStyle:i,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});p=e.label.attr(`class`,`label usecase-stereotype`),m=e.bbox}let h=o.append(`g`).attr(`class`,`usecase-actor-glyph ${xMe[n]}`).attr(`style`,a||null);await r(h,t),EMe(h,t,n);let g=t.padding??bMe,_=m?.height??0,v=vMe+b_+s.height+(m?_+yMe:0),y=Math.max(_Me,s.width,m?.width??0)+g*2,b=v+g*2,x=-v/2;h.attr(`transform`,`translate(0,${x+vMe/2})`);let S=x+vMe+b_;return p&&m&&(S+=_/2,TMe(p,m,S),S+=_/2+yMe),TMe(l,s,S+s.height/2),o_(t,o.insert(`rect`,`:first-child`).attr(`class`,`usecase-actor-outline`).attr(`x`,-y/2).attr(`y`,-b/2).attr(`width`,y).attr(`height`,b).attr(`opacity`,0).attr(`aria-hidden`,`true`)),t.intersect=e=>d_.rect(t,e),o}async function wje(e,t){return Cje(e,t,`normal`,(e,t)=>{S_(e,t,DMe,`usecase-actor-stick`)})}async function Pg(e,t){return Cje(e,t,`awesome`,(e,t)=>{S_(e,t,OMe,`usecase-actor-awesome-silhouette`)})}async function Fg(e,t){return Cje(e,t,`hollow`,(e,t)=>{C_(e,t,0,-23,9,`usecase-actor-hollow-head`,!0),S_(e,t,kMe,`usecase-actor-hollow-body`,!0)})}async function Ig(e,t){return Cje(e,t,`icon`,MMe)}async function Tje(e,t){let n=t,{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:l}=await i_(e,n.stereotype?{...t,stereotype:void 0}:t,s_(t,`usecase-business-shape`));l.attr(`class`,`label usecase-label`);let{theme:u,themeVariables:d}=bs();Kh(a,t.colorIndex,u,d.borderColorArray);let f,p;if(n.stereotype){let e=await a_(a,`\xAB${n.stereotype}\xBB`,{labelStyle:r,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});f=e.label.attr(`class`,`label usecase-stereotype`),p=e.bbox}let m=p?2:0,h=o.height+(p?.height??0)+m,g=Math.max(o.width,p?.width??0),_=s??10,v=g/2+_*2,y=h/2+_*2,b=Math.min(Math.max(_/5,1),_/2),x=g/2+b,S=v-b,C=x/v,w=S/v,T=y*Math.sqrt(Math.max(0,1-C*C)),E=-y*Math.sqrt(Math.max(0,1-w*w));f&&p&&U(f,p,-h/2+p.height/2),U(l,o,h/2-o.height/2);let D;if(t.look===`handDrawn`){let e=pg.svg(a).ellipse(0,0,v*2,y*2,lm(t,{}));D=a.insert(()=>e,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`)}else D=a.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`).attr(`style`,i).attr(`rx`,v).attr(`ry`,y).attr(`cx`,0).attr(`cy`,0);a.append(`path`).attr(`class`,`usecase-business-marker`).attr(`d`,`M ${x} ${T} L ${S} ${E}`).attr(`fill`,`none`).attr(`style`,i||null);let O=n.accessibleName??n.label;return O&&a.attr(`role`,`img`).attr(`aria-label`,O),o_(t,D),t.calcIntersect=(e,t)=>d_.ellipse(e,e.width/2,e.height/2,t),t.intersect=e=>d_.ellipse(t,v,y,e),a}async function Eje(e,t){let n=t,{labelStyles:r,nodeStyles:i}=cm(t),{stylesMap:a}=sm(t);t.labelStyle=r;let{shapeSvg:o,bbox:s,label:l}=await i_(e,t,s_(t,`usecase-json-table`));o.attr(`role`,`img`),n.accessibleName&&o.attr(`aria-label`,n.accessibleName),l.attr(`class`,`label usecase-json-title`);let u=o.append(`g`).attr(`class`,`usecase-json-table-grid`),d=[];for(let e of n.jsonRows??[]){let n=await a_(u,e.key,{labelStyle:r,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),i=await a_(u,e.value,{labelStyle:r,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});d.push({key:{label:n.label.attr(`class`,`label usecase-json-key`),bbox:n.bbox},value:{label:i.label.attr(`class`,`label usecase-json-value`),bbox:i.bbox}})}let f=Math.max(0,...d.map(({key:e})=>e.bbox.width))+T_*2,p=Math.max(0,...d.map(({value:e})=>e.bbox.width))+T_*2,m=s.width+T_*2,h=Math.max(m,f+p),g=p+Math.max(0,h-f-p),_=s.height+E_*2,v=d.map(({key:e,value:t})=>Math.max(e.bbox.height,t.bbox.height)+E_*2),y=_+v.reduce((e,t)=>e+t,0),b=PMe(a.get(`stroke-width`)),x=h+b*2,S=y+b*2,C=-h/2,w=-y/2,T=t.look===`handDrawn`?pg.svg(o):void 0,E=T?lm(t,{}):void 0,D=N((e,t,n,r,a,o)=>{if(T&&E){let i=T.rectangle(n,r,a,o,E);return e.insert(()=>i,`:first-child`).attr(`class`,t)}return e.insert(`rect`,`:first-child`).attr(`class`,t).attr(`x`,n).attr(`y`,r).attr(`width`,a).attr(`height`,o).attr(`style`,i)},`insertCell`),O=D(o,`label-container usecase-json-border`,-x/2,-S/2,x,S);D(u,`usecase-json-cell usecase-json-title-cell`,C,w,h,_),u.node()?.append(l.node()),NMe(l,s,0,w+_/2);let k=w+_;return d.forEach(({key:e,value:t},n)=>{let r=v[n],i=u.append(`g`).attr(`class`,`usecase-json-row`).attr(`data-row-index`,n).attr(`transform`,`translate(0,${k})`);D(i,`usecase-json-cell usecase-json-key-cell`,C,0,f,r),D(i,`usecase-json-cell usecase-json-value-cell`,C+f,0,g,r),i.node()?.append(e.label.node(),t.label.node()),NMe(e.label,e.bbox,C+f/2,r/2),NMe(t.label,t.bbox,C+f+g/2,r/2),k+=r}),o_(t,O),t.intersect=e=>d_.rect(t,e),o}async function Dje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*s,10),t.height=Math.max((t?.height??0)-o*2-2*s,10));let{shapeSvg:l,bbox:u,label:d}=await i_(e,t,s_(t)),f=(t?.width?t?.width:u.width)+a*2+2*s,p=(t?.height?t?.height:u.height)+o*2+2*s,m=f-2*s,h=p-2*s,g=-m/2,_=-h/2,{cssStyles:v}=t,y=pg.svg(l),b=lm(t,{}),x=[{x:g-s,y:_+s},{x:g-s,y:_+h+s},{x:g+m-s,y:_+h+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_+h-s},{x:g+m+s,y:_+h-s},{x:g+m+s,y:_-s},{x:g+s,y:_-s},{x:g+s,y:_},{x:g,y:_},{x:g,y:_+s}],S=[{x:g,y:_+s},{x:g+m-s,y:_+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_},{x:g,y:_}];t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let C=gg(x),w=y.path(C,b),T=gg(S),E=y.path(T,b);t.look!==`handDrawn`&&(w=FAe(w),E=FAe(E));let D=l.insert(`g`,`:first-child`);return D.insert(()=>w),D.insert(()=>E),D.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),d.attr(`transform`,`translate(${-(u.width/2)-s-(u.x-(u.left??0))}, ${-(u.height/2)+s-(u.y-(u.top??0))})`),o_(t,D),t.intersect=function(e){return d_.polygon(t,x,e)},l}async function Oje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await i_(e,t,s_(t)),s=t.padding??0,l=t.look===`neo`?16:s,u=t.look===`neo`?12:s,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-l*2,t.height=(t?.height??0)-u*3);let f=Math.max(a.width,t?.width??0)+l*2,p=Math.max(a.height,t?.height??0)+u*3,m=t.look===`neo`?p/4:p/8,h=p+(d?m/2:-m/2),g=-f/2,_=-h/2,{cssStyles:v}=t,y=_g(g-10,_+h+10,g+f-10,_+h+10,m,.8),b=y?.[y.length-1],x=[{x:g-10,y:_+10},{x:g-10,y:_+h+10},...y,{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:b.y-20},{x:g+f+10,y:b.y-20},{x:g+f+10,y:_-10},{x:g+10,y:_-10},{x:g+10,y:_},{x:g,y:_},{x:g,y:_+10}],S=[{x:g,y:_+10},{x:g+f-10,y:_+10},{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:_},{x:g,y:_}],C=pg.svg(i),w=lm(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=gg(x),E=C.path(T,w),D=gg(S),O=C.path(D,w),k=i.insert(()=>E,`:first-child`);return k.insert(()=>O),k.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,r),k.attr(`transform`,`translate(0,${-m/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-m-(a.y-(a.top??0))})`),o_(t,k),t.intersect=function(e){return d_.polygon(t,x,e)},i}async function kje(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r,t.useHtmlLabels||es(Xo())||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:s}=await i_(e,t,s_(t)),l=Math.max(o.width+(t.padding??0)*2,t?.width??0),u=Math.max(o.height+(t.padding??0)*2,t?.height??0),d=-l/2,f=-u/2,{cssStyles:p}=t,m=pg.svg(a),h=lm(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(d,f,l,u,h),_=a.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container outer-path`),s.attr(`class`,`label noteLabel`),p&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,p),i&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),o_(t,_),t.intersect=function(e){return d_.rect(t,e)},a}async function Aje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await i_(e,t,s_(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),s=.5,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],u,{cssStyles:d}=t;if(t.look===`handDrawn`){let e=pg.svg(i),n=lm(t,{}),r=O_(0,0,o),a=e.path(r,n);u=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),d&&u.attr(`style`,d)}else u=xg(i,o,o,l),u.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&u.attr(`style`,r),o_(t,u),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];return d_.polygon(e,r,t)},t.intersect=function(e){return this.calcIntersect(t,e)},i}async function jje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:s,bbox:l,label:u}=await i_(e,t,s_(t)),d=l.width+(t.look===`neo`?a*2:a),f=Math.max(l.height+(t.look===`neo`?o*2:o),t.height??0),p=f/4,m=-Math.max(d,(t.width??0)-p)/2,h=-f/2,g=h/2,_=[{x:m+g,y:h},{x:m,y:0},{x:m+g,y:-h},{x:-m,y:-h},{x:-m,y:h}],{cssStyles:v}=t,y=pg.svg(s),b=lm(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=gg(_),S=y.path(x,b),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,r),C.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))})`),o_(t,C),t.intersect=function(e){return d_.polygon(t,_,e)},s}async function Mje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i;i=t.cssClasses?`node `+t.cssClasses:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,t.domId||t.id),o=a.insert(`g`),s=a.insert(`g`).attr(`class`,`label`).attr(`style`,r),l=t.description,u=t.label,d=await p_(s,u,t.labelStyle,!0,!0),f={width:0,height:0};if(es(bs())){let e=d.children[0],t=Bc(d);f=e.getBoundingClientRect(),t.attr(`width`,f.width),t.attr(`height`,f.height)}P.info(`Text 2`,l);let p=l||[],m=d.getBBox(),h=await p_(s,Array.isArray(p)?p.join(`
    `):p,t.labelStyle,!0,!0),g=h.children[0],_=Bc(h);f=g.getBoundingClientRect(),_.attr(`width`,f.width),_.attr(`height`,f.height);let v=(t.padding||0)/2;Bc(h).attr(`transform`,`translate( `+(f.width>m.width?0:(m.width-f.width)/2)+`, `+(m.height+v+5)+`)`),Bc(d).attr(`transform`,`translate( `+(f.width(P.debug(`Rough node insert CXC`,r),i),`:first-child`),C=a.insert(()=>(P.debug(`Rough node insert CXC`,r),r),`:first-child`)}else C=o.insert(`rect`,`:first-child`),w=o.insert(`line`),C.attr(`class`,`outer title-state`).attr(`style`,r).attr(`x`,-f.width/2-v).attr(`y`,-f.height/2-v).attr(`width`,f.width+(t.padding||0)).attr(`height`,f.height+(t.padding||0)),w.attr(`class`,`divider`).attr(`x1`,-f.width/2-v).attr(`x2`,f.width/2+v).attr(`y1`,-f.height/2-v+m.height+v).attr(`y2`,-f.height/2-v+m.height+v);return o_(t,C),t.intersect=function(e){return d_.rect(t,e)},a}async function Lg(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Dg(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}async function Nje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await i_(e,t,s_(t)),u=(t?.width??s.width)+i*2+(t.look===`neo`?k_:k_*2),d=(t?.height??s.height)+a*2,f=u-k_,p=d,m=k_-u/2,h=-d/2,{cssStyles:g}=t,_=pg.svg(o),v=lm(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:m,y:h},{x:m+f,y:h},{x:m+f,y:h+p},{x:m-k_,y:h+p},{x:m-k_,y:h},{x:m,y:h},{x:m,y:h+p}],b=_.polygon(y.map(e=>[e.x,e.y]),v),x=o.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`).attr(`style`,Vm(g)),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),g&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${k_/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),o_(t,x),t.intersect=function(e){return d_.rect(t,e)},o}async function Rg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:s,bbox:l,label:u}=await i_(e,t,s_(t)),d=(t?.width?t?.width:l.width)+a*2,f=((t?.height?t?.height:l.height)+o*2)*1.5,p=d,m=f/1.5,h=-p/2,g=-m/2,{cssStyles:_}=t,v=pg.svg(s),y=lm(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g},{x:h,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-m/2}],x=gg(b),S=v.path(x,y),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(0, ${m/4})`),u.attr(`transform`,`translate(${-p/2+(t.padding??0)-(l.x-(l.left??0))}, ${-m/4+(t.padding??0)-(l.y-(l.top??0))})`),o_(t,C),t.intersect=function(e){return d_.polygon(t,b,e)},s}async function Pje(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n,a=await Dg(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i});if(t.colorIndex!==void 0){let{theme:e,themeVariables:n}=bs();Kh(a,t.colorIndex,e,n.borderColorArray)}return a}async function Fje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?40:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),{w:u,h:d}=j_(l,a,o),f=d/2,{cssStyles:p}=t,m=pg.svg(s),h=lm(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-u/2+f,y:-d/2},{x:u/2-f,y:-d/2},...vg(-u/2+f,0,f,A_,90,270),{x:u/2-f,y:d/2},...vg(u/2-f,0,f,A_,270,450)],_=gg(g),v=m.path(_,h),y=s.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),o_(t,y),t.intersect=function(e){return d_.polygon(t,g,e)},s}async function zg(e,t){return Dg(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}function Bg(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l,nodeShadow:u}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let d=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),f=pg.svg(d),p=lm(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,t.width,{...p,stroke:o,strokeWidth:2}),h=s??l,g=(t.width??0)*5/14,_=f.circle(0,0,g,{...p,fill:h,stroke:h,strokeWidth:2,fillStyle:`solid`}),v=d.insert(()=>m,`:first-child`);if(v.insert(()=>_),t.look!==`handDrawn`&&v.attr(`class`,`outer-path`),a&&v.selectAll(`path`).attr(`style`,a),i&&v.selectAll(`path`).attr(`style`,i),t.width<25&&u&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;v.attr(`style`,`filter:url(#${n})`)}return o_(t,v),t.intersect=function(e){return d_.circle(t,(t.width??0)/2,e)},d}function Vg(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=pg.svg(a).circle(0,0,t.width,BTe(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return o_(t,o),t.intersect=function(e){return d_.circle(t,(t.width??7)/2,e)},a}async function Hg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t?.padding??8,a=t.look===`neo`?28:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=Math.max(l.width+2*M_+a,t.width??0),d=Math.max(l.height+o,t.height??0),f=u-2*M_,p=d,m=-u/2,h=-d/2,g=[{x:0,y:0},{x:f,y:0},{x:f,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{}),r=e.rectangle(m,h,f+16,p,n),i=e.line(m+M_,h,m+M_,h+p,n),a=e.line(m+M_+f,h,m+M_+f,h+p,n);s.insert(()=>i,`:first-child`),s.insert(()=>a,`:first-child`);let o=s.insert(()=>r,`:first-child`),{cssStyles:l}=t;o.attr(`class`,`basic label-container`).attr(`style`,Vm(l)),o_(t,o)}else{let e=xg(s,f,p,g);r&&e.attr(`style`,r),o_(t,e)}return t.intersect=function(e){return d_.polygon(t,g,e)},s}async function Ug(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-FMe*(t.height+o*2),10));let{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=(t?.height?t?.height:l.height)+o*2,d=FMe*u,f=FMe*u,p=(t?.width?t?.width:l.width)+a*2+d-d,m=u,h=-p/2,g=-m/2,{cssStyles:_}=t,v=pg.svg(s),y=lm(t,{}),b=[{x:h-d/2,y:g},{x:h+p+d/2,y:g},{x:h+p+d/2,y:g+m},{x:h-d/2,y:g+m}],x=[{x:h+p-d/2,y:g+m},{x:h+p+d/2,y:g+m},{x:h+p+d/2,y:g+m-f}];t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=gg(b),C=v.path(S,y),w=gg(x),T=v.path(w,{...y,fillStyle:`solid`}),E=s.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),o_(t,E),t.intersect=function(e){return d_.polygon(t,b,e)},s}async function Ije(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await i_(e,t,s_(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=l/8,d=.2*s,f=.2*l,p=l+u,{cssStyles:m}=t,h=pg.svg(i),g=lm(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-s/2-s/2*.1,y:p/2},..._g(-s/2-s/2*.1,p/2,s/2+s/2*.1,p/2,u,.8),{x:s/2+s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:-p/2}],v=-s/2+s/2*.1,y=-p/2-f*.4,b=[{x:v+s-d,y:(y+l)*1.3},{x:v+s,y:y+l-f},{x:v+s,y:(y+l)*.9},..._g(v+s,(y+l)*1.25,v+s-d,(y+l)*1.3,-l*.02,.5)],x=gg(_),S=h.path(x,g),C=gg(b),w=h.path(C,{...g,fillStyle:`solid`}),T=i.insert(()=>w,`:first-child`);return T.insert(()=>S,`:first-child`),T.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-u/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-u/2-(a.y-(a.top??0))})`),o_(t,T),t.intersect=function(e){return d_.polygon(t,_,e)},i}async function Lje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await i_(e,t,s_(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),s=Math.max(a.height+(t.padding??0),t?.height||0),l=-o/2,u=-s/2,d=i.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,o).attr(`height`,s),o_(t,d),t.intersect=function(e){return d_.rect(t,e)},i}async function Rje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?12:i/2,o=t.height??0;if(t.height&&(t.height-=a,t.heighta,`:first-child`),g=s.insert(()=>i,`:first-child`),g.attr(`class`,`basic label-container`),h&&g.attr(`style`,h)}else{let e=N_(0,0,m,d,p,f);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,Vm(h)).attr(`style`,r),g.attr(`class`,`basic label-container outer-path`),h&&g.selectAll(`path`).attr(`style`,h),r&&g.selectAll(`path`).attr(`style`,r)}return g.attr(`label-offset-x`,p),g.attr(`transform`,`translate(${-m/2}, ${d/2} )`),u.attr(`transform`,`translate(${-(l.width/2)-p-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),o_(t,g),t.intersect=function(e){let n=d_.rect(t,e),r=n.y-(t.y??0);if(f!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-p)){let i=p*p*(1-r*r/(f*f));i!=0&&(i=Math.sqrt(Math.abs(i))),i=p-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},s}async function zje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=pg.svg(s),n=lm(t,{}),r=gg(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=xg(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,o_(t,p),t.intersect=function(e){return d_.polygon(t,f,e)},s}async function Wg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o*2,{cssStyles:f}=t,p=pg.svg(s),m=lm(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],g=gg(h),_=p.path(g,m),v=s.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),o_(t,v),t.intersect=function(e){return d_.polygon(t,h,e)},s}async function Bje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.width=((t?.width??0)-a)/2,t.widthy,`:first-child`).attr(`transform`,`translate(${-f/2}, ${f/2})`).attr(`class`,`outer-path`);return h&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),t.width=d,t.height=f,o_(t,b),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${f/2-(s.height+(t.padding??0)/(u?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(e){return P.info(`Triangle intersect`,t,m,e),d_.polygon(t,m,e)},o}async function Vje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=!0;(t.width||t.height)&&(s=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:u,label:d}=await i_(e,t,s_(t)),f=(t?.width?t?.width:u.width)+(a??0)*2,p=(t?.height?t?.height:u.height)+(o??0)*2,m=t.look===`neo`?p/4:p/8,h=p+(s?m:-m),{cssStyles:g}=t,_=14-f,v=_>0?_/2:0,y=pg.svg(l),b=lm(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:-f/2-v,y:h/2},..._g(-f/2-v,h/2,f/2+v,h/2,m,.8),{x:f/2+v,y:-h/2},{x:-f/2-v,y:-h/2}],S=gg(x),C=y.path(S,b),w=l.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(t.padding??0)-(u.x-(u.left??0))},${-p/2+(t.padding??0)-m-(u.y-(u.top??0))})`),o_(t,w),t.intersect=function(e){return d_.polygon(t,x,e)},l}async function Hje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:s,bbox:l}=await i_(e,t,s_(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o,f=d/8,p=d+f*2,{cssStyles:m}=t,h=pg.svg(s),g=lm(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-u/2,y:p/2},..._g(-u/2,p/2,u/2,p/2,f,1),{x:u/2,y:-p/2},..._g(u/2,-p/2,-u/2,-p/2,f,-1)],v=gg(_),y=h.path(v,g),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container`),m&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),o_(t,b),t.intersect=function(e){return d_.polygon(t,_,e)},s}async function Uje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-I_,10),t.height=Math.max((t?.height??0)-a*2-I_,10));let{shapeSvg:o,bbox:s,label:l}=await i_(e,t,s_(t)),u=(t?.width?t?.width:s.width)+i*2+I_,d=(t?.height?t?.height:s.height)+a*2+I_,f=u-I_,p=d-I_,m=-f/2,h=-p/2,{cssStyles:g}=t,_=pg.svg(o),v=lm(t,{}),y=[{x:m-I_,y:h-I_},{x:m-I_,y:h+p},{x:m+f,y:h+p},{x:m+f,y:h-I_}],b=`M${m-I_},${h-I_} L${m+f},${h-I_} L${m+f},${h+p} L${m-I_},${h+p} L${m-I_},${h-I_} + M${m-I_},${h} L${m+f},${h} + M${m},${h-I_} L${m},${h+p}`;t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let x=_.path(b,v),S=o.insert(()=>x,`:first-child`);return S.attr(`transform`,`translate(${I_/2}, ${I_/2})`),S.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${-(s.width/2)+I_/2-(s.x-(s.left??0))}, ${-(s.height/2)+I_/2-(s.y-(s.top??0))})`),o_(t,S),t.intersect=function(e){return d_.polygon(t,y,e)},o}async function Gg(e,t){let n=t;n.alias&&(t.label=n.alias);let{theme:r,themeVariables:i}=Xo(),{rowEven:a,rowOdd:o,nodeBorder:s,borderColorArray:l}=i;if(t.look===`handDrawn`){let{themeVariables:n}=Xo(),{background:r}=n;await Gg(e,{...t,id:t.id+`-background`,domId:(t.domId||t.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let u=Xo();t.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,f=u.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:m,nodeStyles:h}=cm(t);if(n.attributes.length===0&&t.label){let i={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:``};zm(t.label,u)+i.labelPaddingX*20){let e=v.width+d*2-(S+C+w+T);S+=e/O,C+=e/O,w>0&&(w+=e/O),T>0&&(T+=e/O)}let A=S+C+w+T,j=pg.svg(_),M=lm(t,{});t.look!==`handDrawn`&&(M.roughness=0,M.fillStyle=`solid`);let ee=0;x.length>0&&(ee=x.reduce((e,t)=>e+(t?.rowHeight??0),0));let te=Math.max(k.width+d*2,t?.width||0,A),ne=Math.max((ee??0)+v.height,t?.height||0),re=-te/2,ie=-ne/2;if(_.selectAll(`g:not(:first-child)`).each((e,t,n)=>{let r=Bc(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]),r.attr(`class`).includes(`attribute-name`)?a+=S:r.attr(`class`).includes(`attribute-keys`)?a+=S+C:r.attr(`class`).includes(`attribute-comment`)&&(a+=S+C+w))}r.attr(`transform`,`translate(${re+d/2+a}, ${o+ie+v.height+f/2})`)}),_.select(`.name`).attr(`transform`,`translate(`+-v.width/2+`, `+(ie+f/2)+`)`),r!=null&&L_.has(r)){let e=n.colorIndex??0;_.attr(`data-color-id`,`color-${e%l.length}`)}let ae=j.rectangle(re,ie,te,ne,M),oe=_.insert(()=>ae,`:first-child`).attr(`class`,`outer-path`).attr(`style`,p.join(``));b.push(0);for(let[e,t]of x.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=j.rectangle(re,v.height+ie+t?.yOffset,te,t?.rowHeight,{...M,fill:n?a:o,stroke:s});_.insert(()=>r,`g.label`).attr(`style`,p.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let se=1e-4,ce=qg(re,v.height+ie,te+re,v.height+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M);if(_.insert(()=>le).attr(`class`,`divider`),ce=qg(S+re,v.height+ie,S+re,ne+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`),E){let e=S+C+re;ce=qg(e,v.height+ie,e,ne+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`)}if(D){let e=S+C+w+re;ce=qg(e,v.height+ie,e,ne+ie,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`)}for(let e of b){let t=v.height+ie+e;ce=qg(re,t,te+re,t,se),le=j.polygon(ce.map(e=>[e.x,e.y]),M),_.insert(()=>le).attr(`class`,`divider`)}if(o_(t,oe),h&&t.look!==`handDrawn`){if(r!=null&&BMe.has(r))_.selectAll(`path`).attr(`style`,h);else{let e=h.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);_.selectAll(`path`).attr(`style`,e??``),_.selectAll(`.row-rect-even path`).attr(`style`,h)}}return t.intersect=function(e){return d_.rect(t,e)},_}async function Kg(e,t,n,r=0,i=0,a=[],o=``){let s=e.insert(`g`).attr(`class`,`label ${a.join(` `)}`).attr(`transform`,`translate(${r}, ${i})`).attr(`style`,o);t!==rs(t)&&(t=rs(t),t=t.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let l=s.node().appendChild(await zh(s,t,{width:zm(t,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(t.includes(`<`)||t.includes(`>`)){let e=l.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let u=l.getBBox();if(Ro(n.htmlLabels)){let e=l.children[0];e.style.textAlign=`start`;let t=Bc(l);u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}return u}function qg(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}async function Jg(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,s_(t)).attr(`id`,t.domId||t.id),s=null,l=null,u=null,d=null,f=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Yg(s,{text:`\xAB${e}\xBB`},0),f=s.node().getBBox().height}l=o.insert(`g`).attr(`class`,`label-group text`),await Yg(l,t,0,[`font-weight: bolder`]);let h=l.node().getBBox();p=h.height,u=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await Yg(u,e,g,[e.parseClassifier()]);g+=t+a}m=u.node().getBBox().height,m<=0&&(m=i/2),d=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await Yg(d,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return l.attr(`transform`,`translate(${-h.width/2}, ${f})`),v=o.node().getBBox(),u.attr(`transform`,`translate(0, ${f+p+i*2})`),v=o.node().getBBox(),d.attr(`transform`,`translate(0, ${f+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}async function Yg(e,t,n,r=[]){let i=e.insert(`g`).attr(`class`,`label`).attr(`style`,r.join(`; `)),a=Xo(),o=`useHtmlLabels`in t?t.useHtmlLabels:Ro(a.htmlLabels)??!0,s=``;s=`text`in t?t.text:t.label,!o&&s.startsWith(`\\`)&&(s=s.substring(1)),as(s)&&(o=!0);let l=await zh(i,Pme(Gm(s)),{width:zm(s,a)+50,classes:`markdown-node-label`,useHtmlLabels:o},a),u,d=1;if(o){let e=l.children[0],t=Bc(l);d=e.innerHTML.split(`
    `).length,e.innerHTML.includes(``)&&(d+=e.innerHTML.split(``).length-1),await PAe(e),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{r.includes(`font-weight: bolder`)&&Bc(l).selectAll(`tspan`).attr(`font-weight`,``),d=l.children.length;let e=l.children[0];(l.textContent===``||l.textContent.includes(`>`))&&(e.textContent=s[0]+s.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),s[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),u=l.getBBox()}return i.attr(`transform`,`translate(0,`+(-u.height/(2*d)+n)+`)`),u.height}async function Wje(e,t){let n=bs(),{theme:r,themeVariables:i}=n,{useGradient:a,borderColorArray:o}=i,s=n.class.padding??12,l=s,u=t.useHtmlLabels??Ro(n.htmlLabels)??!0,d=t;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:f,bbox:p}=await Jg(e,t,n,u,l);Kh(f,t.colorIndex,r,o);let{labelStyles:m,nodeStyles:h}=cm(t);t.labelStyle=m,t.cssStyles=d.styles||``;let g=d.styles?.join(`;`)||h||``;t.cssStyles||=g.replaceAll(`!important`,``).split(`;`);let _=d.members.length===0&&d.methods.length===0&&!n.class?.hideEmptyMembersBox,v=pg.svg(f),y=lm(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=Math.max(t.width??0,p.width),x=Math.max(t.height??0,p.height),S=(t.height??0)>p.height;d.members.length===0&&d.methods.length===0?x+=l:d.members.length>0&&d.methods.length===0&&(x+=l*2);let C=-b/2,w=-x/2,T=_?s*2:d.members.length===0&&d.methods.length===0?-s:0;S&&(T=s*2);let E=v.rectangle(C-s,w-s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0),b+2*s,x+2*s+T,y),D=f.insert(()=>E,`:first-child`);D.attr(`class`,`basic label-container outer-path`);let O=D.node().getBBox(),k=f.select(`.annotation-group`).node().getBBox().height-(_?s/2:0)||0,A=f.select(`.label-group`).node().getBBox().height-(_?s/2:0)||0,j=f.select(`.members-group`).node().getBBox().height-(_?s/2:0)||0,M=(k+A+w+s-(w-s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0)))/2;if(f.selectAll(`.text`).each((e,t,r)=>{let i=Bc(r[t]),a=i.attr(`transform`),o=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[2]))}let p=o+w+s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0);if(i.attr(`class`).includes(`methods-group`)){let e=Math.max(j,l/2);p=S?Math.max(M,k+A+e+w+l*2+s)+l*2:k+A+e+w+l*4+s}d.members.length===0&&d.methods.length===0&&n.class?.hideEmptyMembersBox&&(p=d.annotations.length>0?o-l:o),u||(p-=4);let m=C;(i.attr(`class`).includes(`label-group`)||i.attr(`class`).includes(`annotation-group`))&&(m=-i.node()?.getBBox().width/2||0,f.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(m=0)})),i.attr(`transform`,`translate(${m}, ${p})`)}),d.members.length>0||d.methods.length>0||_){let e=k+A+w+s,n=v.line(O.x,e,O.x+O.width,e+.001,y);f.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!a?` neo-line`:``}`).attr(`style`,g)}if(_||d.members.length>0||d.methods.length>0){let e=k+A+j+w+l*2+s,n=v.line(O.x,S?Math.max(M,e):e,O.x+O.width,(S?Math.max(M,e):e)+.001,y);f.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!a?` neo-line`:``}`).attr(`style`,g)}if(d.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,g),D.select(`:nth-child(2)`).attr(`style`,g),f.selectAll(`.divider`).select(`path`).attr(`style`,g),t.labelStyle?f.selectAll(`span`).attr(`style`,t.labelStyle):f.selectAll(`span`).attr(`style`,g),!u){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(g);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}else if(m){let t=e.exec(m);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}}}return o_(t,D),t.intersect=function(e){return d_.rect(t,e)},f}async function Xg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let i=t,a=t,o=`verifyMethod`in t,s=s_(t),l=bs(),{themeVariables:u}=l,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,p=l.layout===`elk`?`start`:`center`,m=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId??t.id),h;h=o?await Zg(m,`<<${i.type}>>`,0,t.labelStyle):await Zg(m,`<<Element>>`,0,t.labelStyle);let g=h,_=await Zg(m,i.name,g,t.labelStyle+`; font-weight: bold;`);if(g+=_+20,o){let e=await Zg(m,`${i.requirementId?`ID: ${i.requirementId}`:``}`,g,t.labelStyle,p);g+=e;let n=await Zg(m,`${i.text?`Text: ${i.text}`:``}`,g,t.labelStyle,p);g+=n;let r=await Zg(m,`${i.risk?`Risk: ${i.risk}`:``}`,g,t.labelStyle,p);g+=r,await Zg(m,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:``}`,g,t.labelStyle,p)}else{let e=await Zg(m,`${a.type?`Type: ${a.type}`:``}`,g,t.labelStyle,p);g+=e,await Zg(m,`${a.docRef?`Doc Ref: ${a.docRef}`:``}`,g,t.labelStyle,p)}let v=(m.node()?.getBBox().width??200)+20,y=(m.node()?.getBBox().height??200)+20,b=-v/2,x=-y/2,S=pg.svg(m),C=lm(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=S.rectangle(b,x,v,y,C),T=m.insert(()=>w,`:first-child`);if(T.attr(`class`,`basic label-container outer-path`).attr(`style`,r),d?.length){let e=t.colorIndex??0;m.attr(`data-color-id`,`color-${e%d.length}`)}if(m.selectAll(`.label`).each((e,t,n)=>{let r=Bc(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]))}let s=o-y/2,l=b+10;(t===0||t===1)&&(l=a),r.attr(`transform`,`translate(${l}, ${s+20})`)}),g>h+_+20){let e=x+h+_+20,n;if(t.look===`neo`){let t=.001,r=[[b,e],[b+v,e],[b+v,e+t],[b,e+t]];n=S.polygon(r,C)}else n=S.line(b,e,b+v,e,C);m.insert(()=>n).attr(`class`,`divider`)}return o_(t,T),t.intersect=function(e){return d_.rect(t,e)},r&&t.look!==`handDrawn`&&(f||d?.length)&&m.selectAll(`path`).attr(`style`,r),m}async function Zg(e,t,n,r=``,i=`center`){if(t===``)return 0;let a=e.insert(`g`).attr(`class`,`label`).attr(`style`,r),o=bs(),s=o.htmlLabels??!0,l=await zh(a,Pme(Gm(t)),{width:zm(t,o)+50,classes:`markdown-node-label`,useHtmlLabels:s,style:r},o),u;if(s){let e=l.children[0],t=Bc(l);i===`start`&&Bc(e).style(`text-align`,`left`),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=l.children[0];for(let t of e.children)r&&t.setAttribute(`style`,r);if(i===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}u=l.getBBox(),u.height+=6}return a.attr(`transform`,`translate(${-u.width/2},${-u.height/2+n})`),u.height}async function Gje(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=cm(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:s,label:l}=await i_(e,t,s_(t)),u=t.padding||10,d=``,f;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(d=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),f=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,d).attr(`target`,`_blank`));let p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},m,h;f?{label:m,bbox:h}=await a_(f,`ticket`in t&&t.ticket||``,p):{label:m,bbox:h}=await a_(o,`ticket`in t&&t.ticket||``,p);let{label:g,bbox:_}=await a_(o,`assigned`in t&&t.assigned||``,p);t.width=a;let v=t?.width||0,y=Math.max(h.height,_.height)/2,b=Math.max(s.height+20,t?.height||0)+y,x=-v/2,S=-b/2;l.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y-s.height/2)+`)`),m.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y+s.height/2)+`)`),g.attr(`transform`,`translate(`+(u+v/2-_.width-20)+`, `+(-y+s.height/2)+`)`);let C,{rx:w,ry:T}=t,{cssStyles:E}=t;if(t.look===`handDrawn`){let e=pg.svg(o),n=lm(t,{}),r=w||T?e.path(f_(x,S,v,b,w||0),n):e.rectangle(x,S,v,b,n);C=o.insert(()=>r,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,E||null)}else{C=o.insert(`rect`,`:first-child`),C.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,w??5).attr(`ry`,T??5).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,b);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=x+2,r=S+Math.floor((w??0)/2),i=S+b-Math.floor((w??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,VMe(e))}}return o_(t,C),t.height=b,t.intersect=function(e){return d_.rect(t,e)},o}async function Kje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await i_(e,t,s_(t)),l=a.width+10*o,u=a.height+8*o,d=.15*l,{cssStyles:f}=t,p=a.width+20,m=a.height+20,h=Math.max(l,p),g=Math.max(u,m);s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`);let _,v=`M0 0 a${d},${d} 1 0,0 ${h*.25},${-1*g*.1} a${d},${d} 1 0,0 ${h*.25},0 a${d},${d} 1 0,0 ${h*.25},0 @@ -544,7 +546,7 @@ ${i.join(` a${d},${d} 1 0,0 ${-1*h*.1},${-1*g*.33} a${d*.8},${d*.8} 1 0,0 0,${-1*g*.34} a${d},${d} 1 0,0 ${h*.1},${-1*g*.33} - H0 V0 Z`;if(t.look===`handDrawn`){let e=ag.svg(i),n=om(t,{}),r=e.path(v,n);_=i.insert(()=>r,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,zm(f))}else _=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,v);return _.attr(`transform`,`translate(${-h/2}, ${-g/2})`),i_(t,_),t.calcIntersect=function(e,t){return c_.rect(e,t)},t.intersect=function(e){return P.info(`Bang intersect`,t,e),c_.rect(t,e)},i}async function Uje(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await n_(e,t,a_(t)),l=a.width+2*o,u=a.height+2*o,d=.15*l,f=.25*l,p=.35*l,m=.2*l,{cssStyles:h}=t,g,_=`M0 0 + H0 V0 Z`;if(t.look===`handDrawn`){let e=pg.svg(i),n=lm(t,{}),r=e.path(v,n);_=i.insert(()=>r,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,Vm(f))}else _=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,v);return _.attr(`transform`,`translate(${-h/2}, ${-g/2})`),o_(t,_),t.calcIntersect=function(e,t){return d_.rect(e,t)},t.intersect=function(e){return P.info(`Bang intersect`,t,e),d_.rect(t,e)},i}async function Qg(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await i_(e,t,s_(t)),l=a.width+2*o,u=a.height+2*o,d=.15*l,f=.25*l,p=.35*l,m=.2*l,{cssStyles:h}=t,g,_=`M0 0 a${d},${d} 0 0,1 ${l*.25},${-1*l*.1} a${p},${p} 1 0,1 ${l*.4},${-1*l*.1} a${f},${f} 1 0,1 ${l*.35},${l*.2} @@ -558,7 +560,7 @@ ${i.join(` a${d},${d} 1 0,1 ${-1*l*.1},${-1*u*.35} a${m},${m} 1 0,1 ${l*.1},${-1*u*.65} - H0 V0 Z`;if(t.look===`handDrawn`){let e=ag.svg(i),n=om(t,{}),r=e.path(_,n);g=i.insert(()=>r,`:first-child`),g.attr(`class`,`basic label-container`).attr(`style`,zm(h))}else g=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,_);return s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),g.attr(`transform`,`translate(${-l/2}, ${-u/2})`),i_(t,g),t.calcIntersect=function(e,t){return c_.rect(e,t)},t.intersect=function(e){return P.info(`Cloud intersect`,t,e),c_.rect(t,e)},i}async function Zg(e,t){let{labelStyles:n,nodeStyles:r}=am(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await n_(e,t,a_(t)),l=a.width+8*o,u=a.height+2*o,d=t.look===`neo`?` + H0 V0 Z`;if(t.look===`handDrawn`){let e=pg.svg(i),n=lm(t,{}),r=e.path(_,n);g=i.insert(()=>r,`:first-child`),g.attr(`class`,`basic label-container`).attr(`style`,Vm(h))}else g=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,_);return s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),g.attr(`transform`,`translate(${-l/2}, ${-u/2})`),o_(t,g),t.calcIntersect=function(e,t){return d_.rect(e,t)},t.intersect=function(e){return P.info(`Cloud intersect`,t,e),d_.rect(t,e)},i}async function qje(e,t){let{labelStyles:n,nodeStyles:r}=cm(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await i_(e,t,s_(t)),l=a.width+8*o,u=a.height+2*o,d=t.look===`neo`?` M${-l/2} ${u/2-5} v${-u+10} q0,-5 5,-5 @@ -578,73 +580,73 @@ ${i.join(` h${-(l-10)} q-5,0 -5,-5 Z - `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),i_(t,f),t.calcIntersect=function(e,t){return c_.rect(e,t)},t.intersect=function(e){return c_.rect(t,e)},i}async function Qg(e,t){return XAe(e,t,{padding:t.padding??0})}function Wje(e){return e in BMe}var Gje,$g,Kje,e_,qje,t_,n_,r_,i_,a_,o_,Jje,s_,Yje,Xje,c_,l_,u_,d_,Zje,Qje,$je,f_,p_,eMe,tMe,m_,nMe,rMe,iMe,aMe,h_,oMe,g_,sMe,cMe,lMe,uMe,__,v_,dMe,fMe,pMe,mMe,hMe,gMe,_Me,vMe,yMe,y_,b_,bMe,xMe,x_,SMe,CMe,wMe,TMe,S_,C_,EMe,DMe,OMe,w_,T_,kMe,AMe,E_,U,jMe,D_,O_,MMe,k_,A_,NMe,j_,PMe,M_,FMe,N_,IMe,P_,F_,LMe,RMe,zMe,BMe,I_=o((()=>{sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),og(),Gje=1,$g=3,N(LAe,`configureLabelImages`),N(sg,`hasTextBesidesImages`),Kje=3,e_=32,qje=N(async(e,t,n)=>{let r=As(),i=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),a=i.insert(`g`).attr(`class`,`label`).attr(`style`,zm(t.labelStyle)),o=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),s=t.width?Math.max(t.width-2*(t.padding??0),e_):As().flowchart?.wrappingWidth??200,l=r.c4?.wrap??!0?s:1/0,u=await Promise.all(o.map(async e=>{let n=a.append(`g`).attr(`class`,e.cssClass),i=await Eh(n,ls(Um(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},r);return Qc(i).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),Qc(i).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),d=Math.max(...u.map(({box:e})=>e.width),0),f=0;for(let{el:e,box:t}of u)e.attr(`transform`,`translate(${d/2-t.x-t.width/2}, ${f-t.y})`),f+=t.height+Kje;let p=u.length>0?f-Kje:0;return a.insert(`rect`,`:first-child`),a.attr(`transform`,`translate(${-d/2}, ${-p/2})`),{shapeSvg:i,bbox:a.node().getBBox(),halfPadding:(t.padding??0)/2,label:a}},`c4LabelHelper`),t_=N((e,t)=>{let{x:n,y:r,width:i,height:a}=e;return i>=t?e:`left`in e?{x:n,y:r,width:t,height:a,top:r,left:n,bottom:r+a,right:n+t,toJSON:N(()=>({}),`toJSON`)}:{x:n-(t-i)/2,y:r,width:t,height:a}},`withMinWidth`),n_=N(async(e,t,n,{ignoreMinWidth:r=!1}={})=>{if(t.stereotype!==void 0)return qje(e,t,n);let i,a=t.useHtmlLabels||Yo(As()?.htmlLabels);i=n||`node default`;let o=e.insert(`g`).attr(`class`,i).attr(`id`,t.domId||t.id),s=o.insert(`g`).attr(`class`,`label`).attr(`style`,zm(t.labelStyle)),l;l=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let u=!!t.icon||!!t.img,d=t.labelType===`markdown`,f=l&&!t.width&&!r?t.minWidth??0:0,p=await Eh(s,ls(Um(l),As()),{useHtmlLabels:a,width:t.width||t.wrappingWidth||As().flowchart?.wrappingWidth,minWidth:f,classes:d?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:u,markdown:d},As()),m=(t?.padding??0)/2,h;if(a){let e=p.children[0],t=Qc(p);await LAe(e),h=await Th.measure(()=>e.getBoundingClientRect()),h=t_(h,f),t.attr(`width`,h.width),t.attr(`height`,h.height)}else h=await Th.measure(()=>p.getBBox()),h=t_(h,f);return a?s.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):s.attr(`transform`,`translate(0, `+-h.height/2+`)`),t.centerLabel&&s.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),s.insert(`rect`,`:first-child`),{shapeSvg:o,bbox:h,halfPadding:m,label:s}},`labelHelper`),r_=N(async(e,t,n)=>{let r=n.useHtmlLabels??os(As()),i=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),a=await Eh(i,ls(Um(t),As()),{useHtmlLabels:r,width:n.width||As()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),o=n.padding/2,s;if(os(As())){let e=a.children[0],t=Qc(a);s=await Th.measure(()=>e.getBoundingClientRect()),t.attr(`width`,s.width),t.attr(`height`,s.height)}else s=await Th.measure(()=>a.getBBox());return r?i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`):i.attr(`transform`,`translate(0, `+-s.height/2+`)`),n.centerLabel&&i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),i.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:s,halfPadding:o,label:i}},`insertLabel`),i_=N((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),a_=N((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`),N(cg,`createPathFromPoints`),N(lg,`generateFullSineWavePoints`),N(ug,`generateCirclePoints`),N(RAe,`mergePaths`),o_=N((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=a===0?0:s*i/a,u=s):(i<0&&(o=-o),l=o,u=i===0?0:o*a/i),{x:n+l,y:r+u}},`intersectRect`),N(dg,`intersectNode`),Jje=dg,N(zAe,`intersectEllipse`),s_=zAe,N(BAe,`intersectCircle`),Yje=BAe,N(VAe,`intersectLine`),N(fg,`sameSign`),Xje=VAe,N(pg,`intersectPolygon`),c_={node:Jje,circle:Yje,ellipse:s_,polygon:pg,rect:o_},l_=N((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),u_=N(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=As(),s=os(o);return await Eh(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),N(mg,`anchor`),N(hg,`generateArcPoints`),N(HAe,`calculateArcSagitta`),N(UAe,`bowTieRect`),N(gg,`bucket`),d_=20,Zje=8,Qje=80,$je=8,N(WAe,`getCollapsedStyle`),N(GAe,`collapsedGroup`),N(_g,`insertPolygonShape`),f_=[`right`,`left`,`up`,`down`],p_=`point`,eMe=N(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),tMe=N(e=>f_.filter(t=>e.has(t)).join(`|`)||p_,`getDirectionKey`),m_={"right|left|up|down":N(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":N(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":N(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":N(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":N(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":N(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":N(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":N(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":N(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":N(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[p_]:()=>[{x:0,y:0}]},nMe=N((e,t,n,r)=>{let i=eMe(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,l=r??t.width+2*s+2*a;return(m_[tMe(i)]??m_[p_])({height:o,midpoint:s,padding:a,width:l})},`getArrowPoints`),N(KAe,`block_arrow`),N(qAe,`browser`),rMe=12,N(JAe,`card`),N(YAe,`choice`),N(XAe,`circle`),N(ZAe,`composite`),N(QAe,`consoleWindow`),N($Ae,`createLine`),N(eje,`crossedCircle`),N(vg,`generateCirclePoints`),N(tje,`curlyBraceLeft`),N(yg,`generateCirclePoints`),N(nje,`curlyBraceRight`),N(bg,`generateCirclePoints`),N(rje,`curlyBraces`),N(xg,`curvedTrapezoid`),N(ije,`person`),iMe=N((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),aMe=N((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),h_=N((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),oMe=8,g_=8,N(aje,`cylinder`),N(Sg,`drawRect`),N(oje,`datastore`),N(sje,`dividedRectangle`),N(Cg,`doublecircle`),N(wg,`usecaseEllipse`),N(Tg,`filledCircle`),sMe=10,cMe=10,N(cje,`flippedTriangle`),N(Eg,`folder`),N(lje,`forkJoin`),N(uje,`halfRoundedRectangle`),lMe=N((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`),N(dje,`hexagon`),N(fje,`hourglass`),N(pje,`icon`),N(mje,`iconCircle`),N(hje,`iconRounded`),N(gje,`iconSquare`),N(Dg,`imageSquare`),N(Og,`inv_trapezoid`),N(kg,`labelRect`),N(_je,`lean_left`),N(vje,`lean_right`),N(Ag,`lightningBolt`),uMe=N((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),__=N((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),v_=N((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),dMe=10,fMe=10,N(jg,`linedCylinder`),N(yje,`linedWaveEdgedRect`),pMe=56,mMe=72,hMe=8,gMe=2,_Me=8,vMe={normal:`usecase-actor-shape usecase-actor-normal`,hollow:`usecase-actor-hollow`,awesome:`usecase-actor-awesome`,icon:`usecase-actor-icon`},yMe=Math.PI/3,y_=.6,b_=N((e,t)=>{let n=t*y_,r=t*Math.sqrt(1-y_**2),i=Math.cos(yMe),a=-Math.sin(yMe),o=n*-a,s=e+n*i,l=r*i,u=r*a;return`M ${o-l} ${s-u} L ${o+l} ${s+u}`},`businessMarkerPathForCircle`),bMe={normal:b_(-24,12),hollow:b_(-23,9),awesome:b_(-21,13),icon:`M 12 -8 L 26 -26`},xMe=N((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`),x_=N((e,t,n,r,i=!1)=>{if(t.look===`handDrawn`){let a=ag.svg(e).path(n,om(t,i?{fill:`none`}:{}));return e.insert(()=>a,`:first-child`).attr(`class`,r)}let a=e.append(`path`).attr(`class`,r).attr(`d`,n);return i&&a.attr(`fill`,`none`),a},`appendActorPath`),SMe=N((e,t,n,r,i,a,o=!1)=>{if(t.look===`handDrawn`){let s=ag.svg(e).circle(n,r,i*2,om(t,o?{fill:`none`}:{}));return e.insert(()=>s,`:first-child`).attr(`class`,a)}let s=e.append(`circle`).attr(`class`,a).attr(`cx`,n).attr(`cy`,r).attr(`r`,i);return o&&s.attr(`fill`,`none`),s},`appendActorCircle`),CMe=N((e,t,n)=>{t.business&&e.append(`path`).attr(`class`,`usecase-business-marker usecase-actor-business-marker`).attr(`d`,bMe[n]).attr(`fill`,`none`).attr(`style`,`stroke: inherit !important; stroke-width: inherit !important`)},`appendBusinessActorMarker`),N(Mg,`renderUsecaseActor`),wMe=[`M 0 -12`,`C 6.627 -12 12 -17.373 12 -24`,`C 12 -30.627 6.627 -36 0 -36`,`C -6.627 -36 -12 -30.627 -12 -24`,`C -12 -17.373 -6.627 -12 0 -12 Z`,`M 0 -12 V 8`,`M -17 -5 H 17`,`M 0 8 L -15 28`,`M 0 8 L 15 28`].join(` `),N(bje,`usecaseActor`),TMe=[`M 0 -34`,`C 7.18 -34 13 -28.18 13 -21`,`C 13 -13.82 7.18 -8 0 -8`,`C -7.18 -8 -13 -13.82 -13 -21`,`C -13 -28.18 -7.18 -34 0 -34 Z`,`M -24 25`,`C -24 7 -14 -3 0 -3`,`C 14 -3 24 7 24 25`,`C 24 28 21 30 18 30`,`H -18`,`C -21 30 -24 28 -24 25 Z`].join(` `),N(xje,`usecaseActorAwesome`),S_=[`M -22 -10`,`H 22`,`V 0`,`H 6`,`L 22 17`,`L 13 28`,`L 0 13`,`L -13 28`,`L -22 17`,`L -6 0`,`H -22`,`Z`].join(` `),N(Ng,`usecaseActorHollow`),C_=52,EMe=42,DMe=-2,OMe=N(async(e,t)=>{let n=-C_/2,r=DMe-C_/2;if(t.look===`handDrawn`){let i=ag.svg(e).rectangle(n,r,C_,C_,om(t,{}));e.insert(()=>i,`:first-child`).attr(`class`,`usecase-actor-icon-frame`)}else e.append(`rect`).attr(`class`,`usecase-actor-icon-frame`).attr(`x`,n).attr(`y`,r).attr(`width`,C_).attr(`height`,C_).attr(`rx`,4).attr(`ry`,4);let i=t.icon??``,a=await TEe(i.includes(`:`)?i:`fa:${i}`),o=await gm(i,{height:EMe,width:EMe,fallbackPrefix:`fa`}),s=e.append(`g`).attr(`class`,`usecase-actor-icon-symbol${a?``:` usecase-actor-icon-fallback`}`).attr(`aria-hidden`,`true`).html(`${o}`),l=s.node()?.getBBox();l&&s.attr(`transform`,`translate(${-l.width/2-l.x},${DMe-l.height/2-l.y})`)},`drawIconActor`),N(Sje,`usecaseActorIcon`),w_=N((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`),N(Cje,`usecaseBusiness`),T_=8,kMe=4,AMe=1,E_=N((e,t,n,r)=>{let i=(t.x??0)-(t.left??0),a=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${n-t.width/2-i},${r-t.height/2-a})`)},`positionLabel`),U=N(e=>{let t=Number.parseFloat(e??``);return Number.isFinite(t)&&t>=0?t:AMe},`numericStrokeWidth`),N(wje,`usecaseJsonTable`),N(Pg,`multiRect`),N(Fg,`multiWaveEdgedRectangle`),N(Ig,`note`),jMe=N((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`),N(Tje,`question`),N(Eje,`rect_left_inv_arrow`),N(Dje,`rectWithTitle`),N(Oje,`roundedRect`),D_=8,N(kje,`shadedProcess`),N(Aje,`slopedRect`),N(jje,`squareRect`),O_=50,MMe=N((e,t,n)=>{let r=e.height+n,i=r*Math.cos(Math.PI/(2*(O_-1))),a=Math.sqrt(Math.max(0,i**2-e.height**2));return{w:Math.max(e.width+r/4+t,1.5*r+(r-i),e.width+t+r-a),h:r}},`stadiumDimensions`),N(Mje,`stadium`),N(Lg,`state`),N(Nje,`stateEnd`),N(Rg,`stateStart`),k_=8,N(Pje,`subroutine`),A_=.2,N(Fje,`taggedRect`),N(zg,`taggedWaveEdgedRectangle`),N(Bg,`text`),NMe=N((e,t,n,r,i,a)=>`M${e},${t} + `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),o_(t,f),t.calcIntersect=function(e,t){return d_.rect(e,t)},t.intersect=function(e){return d_.rect(t,e)},i}async function $g(e,t){return ZAe(e,t,{padding:t.padding??0})}function Jje(e){return e in R_}var e_,t_,n_,Yje,Xje,r_,i_,a_,o_,s_,c_,Zje,l_,u_,Qje,d_,f_,p_,m_,$je,eMe,h_,tMe,nMe,rMe,iMe,g_,aMe,__,oMe,sMe,cMe,lMe,v_,y_,uMe,dMe,fMe,pMe,mMe,hMe,gMe,_Me,vMe,b_,yMe,bMe,xMe,x_,SMe,CMe,wMe,TMe,S_,C_,EMe,DMe,OMe,kMe,w_,AMe,jMe,MMe,U,T_,E_,D_,NMe,PMe,O_,k_,A_,j_,M_,FMe,N_,IMe,LMe,P_,RMe,F_,zMe,I_,L_,BMe,VMe,HMe,R_,z_=o((()=>{dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),Dp(),mg(),e_=1,t_=3,N(PAe,`configureLabelImages`),N(hg,`hasTextBesidesImages`),n_=3,Yje=32,Xje=N(async(e,t,n)=>{let r=bs(),i=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),a=i.insert(`g`).attr(`class`,`label`).attr(`style`,Vm(t.labelStyle)),o=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),s=t.width?Math.max(t.width-2*(t.padding??0),Yje):bs().flowchart?.wrappingWidth??200,l=r.c4?.wrap??!0?s:1/0,u=await Promise.all(o.map(async e=>{let n=a.append(`g`).attr(`class`,e.cssClass),i=await zh(n,ns(Gm(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},r);return Bc(i).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),Bc(i).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),d=Math.max(...u.map(({box:e})=>e.width),0),f=0;for(let{el:e,box:t}of u)e.attr(`transform`,`translate(${d/2-t.x-t.width/2}, ${f-t.y})`),f+=t.height+n_;let p=u.length>0?f-n_:0;return a.insert(`rect`,`:first-child`),a.attr(`transform`,`translate(${-d/2}, ${-p/2})`),{shapeSvg:i,bbox:a.node().getBBox(),halfPadding:(t.padding??0)/2,label:a}},`c4LabelHelper`),r_=N((e,t)=>{let{x:n,y:r,width:i,height:a}=e;return i>=t?e:`left`in e?{x:n,y:r,width:t,height:a,top:r,left:n,bottom:r+a,right:n+t,toJSON:N(()=>({}),`toJSON`)}:{x:n-(t-i)/2,y:r,width:t,height:a}},`withMinWidth`),i_=N(async(e,t,n,{ignoreMinWidth:r=!1}={})=>{if(t.stereotype!==void 0)return Xje(e,t,n);let i,a=t.useHtmlLabels||Ro(bs()?.htmlLabels);i=n||`node default`;let o=e.insert(`g`).attr(`class`,i).attr(`id`,t.domId||t.id),s=o.insert(`g`).attr(`class`,`label`).attr(`style`,Vm(t.labelStyle)),l;l=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let u=!!t.icon||!!t.img,d=t.labelType===`markdown`,f=l&&!t.width&&!r?t.minWidth??0:0,p=await zh(s,ns(Gm(l),bs()),{useHtmlLabels:a,width:t.width||t.wrappingWidth||bs().flowchart?.wrappingWidth,minWidth:f,classes:d?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:u,markdown:d},bs()),m=(t?.padding??0)/2,h;if(a){let e=p.children[0],t=Bc(p);await PAe(e),h=await Rh.measure(()=>e.getBoundingClientRect()),h=r_(h,f),t.attr(`width`,h.width),t.attr(`height`,h.height)}else h=await Rh.measure(()=>p.getBBox()),h=r_(h,f);return a?s.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):s.attr(`transform`,`translate(0, `+-h.height/2+`)`),t.centerLabel&&s.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),s.insert(`rect`,`:first-child`),{shapeSvg:o,bbox:h,halfPadding:m,label:s}},`labelHelper`),a_=N(async(e,t,n)=>{let r=n.useHtmlLabels??es(bs()),i=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),a=await zh(i,ns(Gm(t),bs()),{useHtmlLabels:r,width:n.width||bs()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),o=n.padding/2,s;if(es(bs())){let e=a.children[0],t=Bc(a);s=await Rh.measure(()=>e.getBoundingClientRect()),t.attr(`width`,s.width),t.attr(`height`,s.height)}else s=await Rh.measure(()=>a.getBBox());return r?i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`):i.attr(`transform`,`translate(0, `+-s.height/2+`)`),n.centerLabel&&i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),i.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:s,halfPadding:o,label:i}},`insertLabel`),o_=N((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),s_=N((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`),N(gg,`createPathFromPoints`),N(_g,`generateFullSineWavePoints`),N(vg,`generateCirclePoints`),N(FAe,`mergePaths`),c_=N((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=a===0?0:s*i/a,u=s):(i<0&&(o=-o),l=o,u=i===0?0:o*a/i),{x:n+l,y:r+u}},`intersectRect`),N(yg,`intersectNode`),Zje=yg,N(IAe,`intersectEllipse`),l_=IAe,N(LAe,`intersectCircle`),u_=LAe,N(RAe,`intersectLine`),N(zAe,`sameSign`),Qje=RAe,N(bg,`intersectPolygon`),d_={node:Zje,circle:u_,ellipse:l_,polygon:bg,rect:c_},f_=N((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),p_=N(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=bs(),s=es(o);return await zh(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),N(BAe,`anchor`),N(VAe,`generateArcPoints`),N(HAe,`calculateArcSagitta`),N(UAe,`bowTieRect`),N(WAe,`bucket`),m_=20,$je=8,eMe=80,h_=8,N(GAe,`getCollapsedStyle`),N(KAe,`collapsedGroup`),N(xg,`insertPolygonShape`),tMe=[`right`,`left`,`up`,`down`],nMe=`point`,rMe=N(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),iMe=N(e=>tMe.filter(t=>e.has(t)).join(`|`)||nMe,`getDirectionKey`),g_={"right|left|up|down":N(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":N(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":N(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":N(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":N(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":N(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":N(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":N(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":N(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":N(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:N(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[nMe]:()=>[{x:0,y:0}]},aMe=N((e,t,n,r)=>{let i=rMe(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,l=r??t.width+2*s+2*a;return(g_[iMe(i)]??g_[nMe])({height:o,midpoint:s,padding:a,width:l})},`getArrowPoints`),N(qAe,`block_arrow`),N(JAe,`browser`),__=12,N(YAe,`card`),N(XAe,`choice`),N(ZAe,`circle`),N(QAe,`composite`),N($Ae,`consoleWindow`),N(eje,`createLine`),N(tje,`crossedCircle`),N(Sg,`generateCirclePoints`),N(Cg,`curlyBraceLeft`),N(wg,`generateCirclePoints`),N(nje,`curlyBraceRight`),N(Tg,`generateCirclePoints`),N(rje,`curlyBraces`),N(ije,`curvedTrapezoid`),N(Eg,`person`),oMe=N((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),sMe=N((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),cMe=N((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),lMe=8,v_=8,N(aje,`cylinder`),N(Dg,`drawRect`),N(oje,`datastore`),N(Og,`dividedRectangle`),N(sje,`doublecircle`),N(cje,`usecaseEllipse`),N(lje,`filledCircle`),y_=10,uMe=10,N(uje,`flippedTriangle`),N(dje,`folder`),N(fje,`forkJoin`),N(pje,`halfRoundedRectangle`),dMe=N((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`),N(mje,`hexagon`),N(kg,`hourglass`),N(Ag,`icon`),N(jg,`iconCircle`),N(hje,`iconRounded`),N(gje,`iconSquare`),N(_je,`imageSquare`),N(Mg,`inv_trapezoid`),N(vje,`labelRect`),N(yje,`lean_left`),N(bje,`lean_right`),N(xje,`lightningBolt`),fMe=N((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),pMe=N((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),mMe=N((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),hMe=10,gMe=10,N(Ng,`linedCylinder`),N(Sje,`linedWaveEdgedRect`),_Me=56,vMe=72,b_=8,yMe=2,bMe=8,xMe={normal:`usecase-actor-shape usecase-actor-normal`,hollow:`usecase-actor-hollow`,awesome:`usecase-actor-awesome`,icon:`usecase-actor-icon`},x_=Math.PI/3,SMe=.6,CMe=N((e,t)=>{let n=t*SMe,r=t*Math.sqrt(1-SMe**2),i=Math.cos(x_),a=-Math.sin(x_),o=n*-a,s=e+n*i,l=r*i,u=r*a;return`M ${o-l} ${s-u} L ${o+l} ${s+u}`},`businessMarkerPathForCircle`),wMe={normal:CMe(-24,12),hollow:CMe(-23,9),awesome:CMe(-21,13),icon:`M 12 -8 L 26 -26`},TMe=N((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`),S_=N((e,t,n,r,i=!1)=>{if(t.look===`handDrawn`){let a=pg.svg(e).path(n,lm(t,i?{fill:`none`}:{}));return e.insert(()=>a,`:first-child`).attr(`class`,r)}let a=e.append(`path`).attr(`class`,r).attr(`d`,n);return i&&a.attr(`fill`,`none`),a},`appendActorPath`),C_=N((e,t,n,r,i,a,o=!1)=>{if(t.look===`handDrawn`){let s=pg.svg(e).circle(n,r,i*2,lm(t,o?{fill:`none`}:{}));return e.insert(()=>s,`:first-child`).attr(`class`,a)}let s=e.append(`circle`).attr(`class`,a).attr(`cx`,n).attr(`cy`,r).attr(`r`,i);return o&&s.attr(`fill`,`none`),s},`appendActorCircle`),EMe=N((e,t,n)=>{t.business&&e.append(`path`).attr(`class`,`usecase-business-marker usecase-actor-business-marker`).attr(`d`,wMe[n]).attr(`fill`,`none`).attr(`style`,`stroke: inherit !important; stroke-width: inherit !important`)},`appendBusinessActorMarker`),N(Cje,`renderUsecaseActor`),DMe=[`M 0 -12`,`C 6.627 -12 12 -17.373 12 -24`,`C 12 -30.627 6.627 -36 0 -36`,`C -6.627 -36 -12 -30.627 -12 -24`,`C -12 -17.373 -6.627 -12 0 -12 Z`,`M 0 -12 V 8`,`M -17 -5 H 17`,`M 0 8 L -15 28`,`M 0 8 L 15 28`].join(` `),N(wje,`usecaseActor`),OMe=[`M 0 -34`,`C 7.18 -34 13 -28.18 13 -21`,`C 13 -13.82 7.18 -8 0 -8`,`C -7.18 -8 -13 -13.82 -13 -21`,`C -13 -28.18 -7.18 -34 0 -34 Z`,`M -24 25`,`C -24 7 -14 -3 0 -3`,`C 14 -3 24 7 24 25`,`C 24 28 21 30 18 30`,`H -18`,`C -21 30 -24 28 -24 25 Z`].join(` `),N(Pg,`usecaseActorAwesome`),kMe=[`M -22 -10`,`H 22`,`V 0`,`H 6`,`L 22 17`,`L 13 28`,`L 0 13`,`L -13 28`,`L -22 17`,`L -6 0`,`H -22`,`Z`].join(` `),N(Fg,`usecaseActorHollow`),w_=52,AMe=42,jMe=-2,MMe=N(async(e,t)=>{let n=-w_/2,r=jMe-w_/2;if(t.look===`handDrawn`){let i=pg.svg(e).rectangle(n,r,w_,w_,lm(t,{}));e.insert(()=>i,`:first-child`).attr(`class`,`usecase-actor-icon-frame`)}else e.append(`rect`).attr(`class`,`usecase-actor-icon-frame`).attr(`x`,n).attr(`y`,r).attr(`width`,w_).attr(`height`,w_).attr(`rx`,4).attr(`ry`,4);let i=t.icon??``,a=await DEe(i.includes(`:`)?i:`fa:${i}`),o=await ym(i,{height:AMe,width:AMe,fallbackPrefix:`fa`}),s=e.append(`g`).attr(`class`,`usecase-actor-icon-symbol${a?``:` usecase-actor-icon-fallback`}`).attr(`aria-hidden`,`true`).html(`${o}`),l=s.node()?.getBBox();l&&s.attr(`transform`,`translate(${-l.width/2-l.x},${jMe-l.height/2-l.y})`)},`drawIconActor`),N(Ig,`usecaseActorIcon`),U=N((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`),N(Tje,`usecaseBusiness`),T_=8,E_=4,D_=1,NMe=N((e,t,n,r)=>{let i=(t.x??0)-(t.left??0),a=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${n-t.width/2-i},${r-t.height/2-a})`)},`positionLabel`),PMe=N(e=>{let t=Number.parseFloat(e??``);return Number.isFinite(t)&&t>=0?t:D_},`numericStrokeWidth`),N(Eje,`usecaseJsonTable`),N(Dje,`multiRect`),N(Oje,`multiWaveEdgedRectangle`),N(kje,`note`),O_=N((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`),N(Aje,`question`),N(jje,`rect_left_inv_arrow`),N(Mje,`rectWithTitle`),N(Lg,`roundedRect`),k_=8,N(Nje,`shadedProcess`),N(Rg,`slopedRect`),N(Pje,`squareRect`),A_=50,j_=N((e,t,n)=>{let r=e.height+n,i=r*Math.cos(Math.PI/(2*(A_-1))),a=Math.sqrt(Math.max(0,i**2-e.height**2));return{w:Math.max(e.width+r/4+t,1.5*r+(r-i),e.width+t+r-a),h:r}},`stadiumDimensions`),N(Fje,`stadium`),N(zg,`state`),N(Bg,`stateEnd`),N(Vg,`stateStart`),M_=8,N(Hg,`subroutine`),FMe=.2,N(Ug,`taggedRect`),N(Ije,`taggedWaveEdgedRectangle`),N(Lje,`text`),N_=N((e,t,n,r,i,a)=>`M${e},${t} a${i},${a} 0,0,1 0,${-r} l${n},0 a${i},${a} 0,0,1 0,${r} M${n},${-r} a${i},${a} 0,0,0 0,${r} - l${-n},0`,`createCylinderPathD`),j_=N((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),PMe=N((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),M_=5,FMe=10,N(Vg,`tiltedCylinder`),N(Hg,`trapezoid`),N(Ug,`trapezoidalPentagon`),N_=10,IMe=10,N(Ije,`triangle`),N(Lje,`waveEdgedRectangle`),N(Rje,`waveRectangle`),P_=10,N(zje,`windowPane`),F_=new Set([`redux-color`,`redux-dark-color`]),LMe=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),N(Wg,`erBox`),N(Gg,`addText`),N(Kg,`lineToPolygon`),N(Bje,`textHelper`),N(qg,`addText`),N(Jg,`classBox`),N(Vje,`requirementBox`),N(Yg,`addText`),RMe=N(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`),N(Xg,`kanbanItem`),N(Hje,`bang`),N(Uje,`cloud`),N(Zg,`defaultMindmapNode`),N(Qg,`mindmapCircle`),zMe=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:jje},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Oje},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Mje},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:Pje},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:aje},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:oje},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:Eg},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:gg},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:QAe},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:qAe},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:ije},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:XAe},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Hje},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Uje},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Tje},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:dje},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:vje},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:_je},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Hg},{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:Og},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:Cg},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:Bg},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:JAe},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:kje},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:Rg},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Nje},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:lje},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:fje},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:tje},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:nje},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:rje},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:Ag},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Lje},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:uje},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:Vg},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:jg},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:xg},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:sje},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:Ije},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:zje},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:Tg},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Ug},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:cje},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Aje},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Fg},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:Pg},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:UAe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:eje},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:zg},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:Fje},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Rje},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:Eje},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:yje}],BMe=N(()=>{let e=[...Object.entries({state:Lg,choice:YAe,note:Ig,composite:ZAe,rectWithTitle:Dje,labelRect:kg,block_arrow:KAe,collapsedGroup:GAe,iconSquare:gje,iconCircle:mje,icon:pje,iconRounded:hje,imageSquare:Dg,anchor:mg,kanbanItem:Xg,mindmapCircle:Qg,defaultMindmapNode:Zg,classBox:Jg,erBox:Wg,requirementBox:Vje,usecaseActor:bje,usecaseActorHollow:Ng,usecaseActorAwesome:xje,usecaseActorIcon:Sje,usecaseBusiness:Cje,usecaseEllipse:wg,usecaseJsonTable:wje}),...zMe.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)(),N(Wje,`isValidShape`)}));async function L_(e,t,n){let r,i;t.shape===`rect`&&(t.shape=t.rx&&t.ry?`roundedRect`:`squareRect`);let a=t.shape?BMe[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,zm(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),VMe.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}var R_,VMe,z_,HMe,B_,V_=o((()=>{I_(),Gm(),ar(),tr(),R_=N(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),VMe=new Map,N(L_,`insertNode`),z_=N((e,t)=>{VMe.set(t.id,e)},`setNodeElem`),HMe=N(()=>{VMe.clear()},`clear`),B_=N(e=>{let t=VMe.get(e.id);P.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let n=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+n-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),n},`positionNode`)})),H_,UMe,U_,W_,WMe,GMe,KMe,qMe,JMe,YMe,XMe,G_,K_,q_,J_,Y_=o((()=>{V_(),I_(),sm(),Dh(),Ih(),Ls(),ar(),tr(),Dp(),og(),H_=N(async(e,t)=>{let n=As(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:o,clusterBorder:s,borderColorArray:l}=i,u=s,{labelStyles:d,nodeStyles:f,borderStyles:p,backgroundStyles:m}=am(t),h=e.insert(`g`).attr(`class`,`cluster swimlane `+(t.cssClasses||``)).attr(`id`,t.domId??t.id).attr(`data-id`,t.id).attr(`data-et`,`cluster`).attr(`data-look`,t.look);Fh(h,t.colorIndex,r,l);let g=Yo(n.flowchart.htmlLabels),_=t.direction===`LR`,v=h.insert(`g`).attr(`class`,`cluster-label swimlane-label`),y=await Eh(v,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),b=y.getBBox();if(g){let e=y.children[0],t=Qc(y);b=e.getBoundingClientRect(),t.attr(`width`,b.width),t.attr(`height`,b.height)}let x=t.padding??0,S=t.width<=b.width+x?b.width+x:t.width;t.diff=t.width<=b.width+x?(S-t.width)/2-x:-x;let C=t.height,w=t.y-C/2,T=t.y+C/2,E=t.x-S/2,D=t.swimlaneContentTop===void 0?w+C/3:t.swimlaneContentTop,O=_?4:0,k=b.height+2*O,A,j;if(_){let e=Math.max(k,b.height+2*O),n=E+e,r=Math.max(0,S-e);if(t.look===`handDrawn`){let i=ag.svg(h),s=om(t,{roughness:.7,fill:o,stroke:u,seed:a}),l=om(t,{roughness:.7,fill:`none`,stroke:u,seed:a}),d=i.rectangle(E,w,e,C,s);A=h.insert(()=>d,`:first-child`).attr(`class`,`swimlane-title`);let f=i.rectangle(n,w,r,C,l);j=h.insert(()=>f,`:first-child`).attr(`class`,`swimlane-body`),A.select(`path:nth-child(2)`).attr(`style`,p.join(`;`)),A.select(`path`).attr(`style`,m.join(`;`).replace(`fill`,`stroke`))}else A=h.insert(`rect`,`:first-child`),j=h.insert(`rect`,`:first-child`),A.attr(`class`,`swimlane-title`).attr(`style`,f).attr(`x`,E).attr(`y`,w).attr(`width`,e).attr(`height`,C).attr(`fill`,o).attr(`stroke`,u),j.attr(`class`,`swimlane-body`).attr(`style`,f).attr(`x`,n).attr(`y`,w).attr(`width`,r).attr(`height`,C).attr(`fill`,`none`).attr(`stroke`,u);let i=E+e/2,s=t.y;v.attr(`transform`,`translate(${i}, ${s}) rotate(-90) translate(${-b.width/2}, ${-b.height/2})`)}else{let e=Math.max(0,D-w),n=Math.min(k,e),r=w+n,i=Math.max(0,T-r),s=t.x-S/2;if(t.look===`handDrawn`){let e=ag.svg(h),l=om(t,{roughness:.7,fill:o,stroke:u,fillWeight:3,seed:a}),d=om(t,{roughness:.7,fill:`none`,stroke:u,seed:a}),f=e.rectangle(s,w,S,n,l);A=h.insert(()=>f,`:first-child`).attr(`class`,`swimlane-title`);let g=e.rectangle(s,r,S,i,d);j=h.insert(()=>g,`:first-child`).attr(`class`,`swimlane-body`),A.select(`path:nth-child(2)`).attr(`style`,p.join(`;`)),A.select(`path`).attr(`style`,m.join(`;`).replace(`fill`,`stroke`))}else A=h.insert(`rect`,`:first-child`),j=h.insert(`rect`,`:first-child`),A.attr(`class`,`swimlane-title`).attr(`style`,f).attr(`x`,s).attr(`y`,w).attr(`width`,S).attr(`height`,n).attr(`fill`,o).attr(`stroke`,u),j.attr(`class`,`swimlane-body`).attr(`style`,f).attr(`x`,s).attr(`y`,r).attr(`width`,S).attr(`height`,i).attr(`fill`,`none`).attr(`stroke`,u);let l=t.x-b.width/2,d=w+(n-b.height)/2;v.attr(`transform`,`translate(${l}, ${d})`)}if(P.trace(`Swimlane data `,t,JSON.stringify(t)),d){let e=v.select(`span`);e&&e.attr(`style`,d)}return t.offsetX=0,t.width=S,t.height=C,t.offsetY=b.height-x/2,t.intersect=function(e){return o_(t,e)},{cluster:h,labelBBox:b}},`swimlane`),UMe=N(async(e,t)=>{P.info(`Creating subgraph rect for `,t.id,t);let n=As(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:o,clusterBorder:s,borderColorArray:l}=i,{labelStyles:u,nodeStyles:d,borderStyles:f,backgroundStyles:p}=am(t),m=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look);Fh(m,t.colorIndex,r,l);let h=os(n),g=m.insert(`g`).attr(`class`,`cluster-label `),_;_=t.labelType===`markdown`?await Eh(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):await u_(g,t.label,t.labelStyle||``,!1,!0);let v=_.getBBox();if(os(n)){let e=_.children[0],t=Qc(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let y=t.width<=v.width+t.padding?v.width+t.padding:t.width;t.diff=t.width<=v.width+t.padding?(y-t.width)/2-t.padding:-t.padding;let b=t.height,x=t.x-y/2,S=t.y-b/2;P.trace(`Data `,t,JSON.stringify(t));let C;if(t.look===`handDrawn`){let e=ag.svg(m),n=om(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:a}),r=e.path(l_(x,S,y,b,0),n);C=m.insert(()=>(P.debug(`Rough node insert CXC`,r),r),`:first-child`),C.select(`path:nth-child(2)`).attr(`style`,f.join(`;`)),C.select(`path`).attr(`style`,p.join(`;`).replace(`fill`,`stroke`))}else C=m.insert(`rect`,`:first-child`),C.attr(`style`,d).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,x).attr(`y`,S).attr(`width`,y).attr(`height`,b);let{subGraphTitleTopMargin:w}=R_(n);if(g.attr(`transform`,`translate(${t.x-v.width/2}, ${t.y-t.height/2+w})`),u){let e=g.select(`span`);e&&e.attr(`style`,u)}let T=C.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=v.height-t.padding/2,t.intersect=function(e){return o_(t,e)},{cluster:m,labelBBox:v}},`rect`),U_=N((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return o_(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),W_=N(async(e,t)=>{let n=As(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{altBackground:o,borderColorArray:s,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=i,f=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-id`,t.id).attr(`data-look`,t.look);Fh(f,t.colorIndex,r,s);let p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),h=f.append(`rect`),g=await u_(m,t.label,t.labelStyle,void 0,!0),_=g.getBBox();if(os(n)){let e=g.children[0],t=Qc(g);_=e.getBoundingClientRect(),t.attr(`width`,_.width),t.attr(`height`,_.height)}let v=0*t.padding,y=v/2,b=(t.width<=_.width+t.padding?_.width+t.padding:t.width)+v;t.diff=t.width<=_.width+t.padding?(b-t.width)/2-t.padding:-t.padding;let x=t.height+v,S=t.height+v-_.height-6,C=t.x-b/2,w=t.y-x/2;t.width=b;let T=t.y-t.height/2-y+_.height+2,E;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=ag.svg(f),r=t.rx||t.ry?n.path(l_(C,w,b,x,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:a}):n.rectangle(C,w,b,x,{seed:a});E=f.insert(()=>r,`:first-child`);let i=n.rectangle(C,T,b,S,{fill:e?o:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:a});E=f.insert(()=>r,`:first-child`),h=f.insert(()=>i),E.attr(`class`,`outer`),h.attr(`class`,`inner`)}else E=p.insert(`rect`,`:first-child`),E.attr(`class`,`outer`).attr(`x`,C).attr(`y`,w).attr(`width`,b).attr(`height`,x).attr(`data-look`,t.look),h.attr(`class`,`inner`).attr(`x`,C).attr(`y`,T).attr(`width`,b).attr(`height`,S);return m.attr(`transform`,`translate(${t.x-_.width/2}, ${w+1-(os(n)?0:3)})`),t.height=E.node().getBBox().height,t.offsetX=0,t.offsetY=_.height-t.padding/2,t.labelBBox=_,t.intersect=function(e){return o_(t,e)},{cluster:f,labelBBox:_}},`roundedWithTitle`),WMe=N(async(e,t)=>{P.info(`Creating subgraph rect for `,t.id,t);let n=As(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=am(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=os(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h=await Eh(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),g=h.getBBox();if(os(n)){let e=h.children[0],t=Qc(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,y=t.x-_/2,b=t.y-v/2;P.trace(`Data `,t,JSON.stringify(t));let x;if(t.look===`handDrawn`){let e=ag.svg(f),n=om(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:i}),r=e.path(l_(y,b,_,v,t.rx),n);x=f.insert(()=>(P.debug(`Rough node insert CXC`,r),r),`:first-child`),x.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),x.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else x=f.insert(`rect`,`:first-child`),x.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,y).attr(`y`,b).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:S}=R_(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let C=x.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return o_(t,e)},{cluster:f,labelBBox:g}},`kanbanSection`),GMe=N((e,t)=>{let{theme:n,themeVariables:r,handDrawnSeed:i}=As(),{altBackground:a,nodeBorder:o,borderColorArray:s}=r,l=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look);Fh(l,t.colorIndex,n,s);let u=l.insert(`g`,`:first-child`),d=0*t.padding,f=t.width+d;t.diff=-t.padding;let p=t.height+d,m=t.x-f/2,h=t.y-p/2;t.width=f;let g;if(t.look===`handDrawn`){let e=ag.svg(l).rectangle(m,h,f,p,{fill:a??`#efefef`,fillStyle:`solid`,roughness:.5,strokeLineDash:[5],stroke:o,seed:i});g=l.insert(()=>e,`:first-child`).attr(`class`,`divider`)}else{g=u.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),g.attr(`class`,e).attr(`x`,m).attr(`y`,h).attr(`width`,f).attr(`height`,p).attr(`data-look`,t.look)}return t.height=g.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return o_(t,e)},{cluster:l,labelBBox:{}}},`divider`),KMe=N(async(e,t,n)=>{P.info(`Creating ${n.cssClass} for `,t.id,t);let r=As(),{theme:i,themeVariables:a,handDrawnSeed:o}=r,{borderColorArray:s}=a,{labelStyles:l,borderStyles:u}=am(t),d=e.insert(`g`).attr(`class`,`cluster `+n.cssClass+` `+t.cssClasses).attr(`id`,t.domId??t.id).attr(`data-look`,t.look);Fh(d,t.colorIndex,i,s);let f=os(r),p=d.insert(`g`).attr(`class`,`cluster-label`),m={width:0,height:0},h=t.label?.trim();if(h){let e;if(e=t.labelType===`markdown`?await Eh(p,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}):await u_(p,t.label,t.labelStyle||``,!1,!0),m=e.getBBox(),f){let t=e.children[0],n=Qc(e);m=t.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}}let g=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.diff=t.width<=m.width+t.padding?(g-t.width)/2-t.padding:-t.padding;let _=t.height,v=t.x-g/2,y=t.y-_/2,b;if(t.look===`handDrawn`){let e=ag.svg(d),r=om(t,{roughness:n.roughness,fill:n.fill,stroke:n.stroke,strokeWidth:n.strokeWidth,seed:o,...n.fill===`none`?{fillWeight:0}:{fillStyle:`solid`},...n.strokeDash?{strokeLineDash:n.strokeDash}:{}}),i=e.path(l_(v,y,g,_,n.rx),r);b=d.insert(()=>i,`:first-child`),b.select(`path:nth-child(2)`).attr(`style`,u.join(`;`))}else b=d.insert(`rect`,`:first-child`),b.attr(`rx`,n.rx).attr(`ry`,n.rx).attr(`x`,v).attr(`y`,y).attr(`width`,g).attr(`height`,_).attr(`fill`,n.fill).attr(`stroke`,n.stroke).attr(`stroke-width`,n.strokeWidth+`px`),n.strokeDash&&b.attr(`stroke-dasharray`,n.strokeDash.join(`, `));if(h){let{subGraphTitleTopMargin:e}=R_(r);if(p.attr(`transform`,`translate(${t.x-m.width/2}, ${t.y-t.height/2+e})`),l){let e=p.select(`span`);e&&e.attr(`style`,l)}}let x=b.node().getBBox();return t.offsetX=0,t.width=x.width,t.height=x.height,t.offsetY=m.height-t.padding/2,t.intersect=function(e){return o_(t,e)},{cluster:d,labelBBox:m}},`createContainerGroup`),qMe=N(async(e,t)=>{let{themeVariables:n}=As();return KMe(e,t,{cssClass:`flow-cluster`,rx:10,fill:`none`,stroke:n.flowContainerStroke||n.secondaryBorderColor,strokeWidth:.75,roughness:.7})},`flowGroup`),JMe=N((e,t)=>{let n=e.boundaryType||`rect`,r=n===`package`?20:e.padding,i=n===`package`?t.height+10:0,a=Math.max(e.width,t.width+r),o=n===`package`?Math.max(e.height,i+e.padding*2):e.height,s=e.x-a/2,l=e.y-o/2;return{boundaryType:n,width:a,height:o,x:s,y:l,bodyY:l+i,bodyHeight:o-i,tabHeight:i,tabWidth:n===`package`?Math.min(a,Math.max(80,t.width+20)):0}},`getUsecaseSystemBoundaryGeometry`),YMe={rect:UMe,squareRect:UMe,roundedWithTitle:W_,noteGroup:U_,divider:GMe,kanbanSection:WMe,flowGroup:qMe,usecaseSystemBoundary:N(async(e,t)=>{P.info(`Creating usecase system boundary for `,t.id,t);let n=As(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:o,clusterBorder:s,borderColorArray:l}=i,{labelStyles:u,nodeStyles:d}=am(t),{stylesMap:f}=im(t),p=t.boundaryType||`rect`,m=e.insert(`g`).attr(`class`,`cluster usecase-system-boundary usecase-system-boundary-${p} ${t.cssClasses}`).attr(`id`,typeof t.domId==`string`?t.domId:t.id).attr(`data-boundary-type`,p).attr(`data-look`,t.look);Fh(m,t.colorIndex,r,l);let h=os(n),g=m.insert(`g`).attr(`class`,`cluster-label system-boundary-title`),_=await Eh(g,t.label,{style:u,useHtmlLabels:h,isNode:!0}),v=_.getBBox();if(h){let e=_.children[0],t=Qc(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let{width:y,height:b,x,y:S,bodyY:C,bodyHeight:w,tabHeight:T,tabWidth:E}=JMe(t,v);t.diff=t.width<=v.width+t.padding?(y-t.width)/2-t.padding:-t.padding;let D=om(t,{fill:f.get(`fill`)||o,stroke:f.get(`stroke`)||s,strokeWidth:f.get(`stroke-width`)?.replace(`px`,``)||1,seed:a});if(t.look===`handDrawn`){let e=ag.svg(m),t=e.rectangle(x,C,y,w,D);if(m.insert(()=>t,`:first-child`).attr(`class`,`boundary-body label-container`),p===`package`){let t=e.rectangle(x,S,E,T,D);m.insert(()=>t,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`)}}else m.insert(`rect`,`:first-child`).attr(`class`,`boundary-body label-container`).attr(`style`,d).attr(`x`,x).attr(`y`,C).attr(`width`,y).attr(`height`,w),p===`package`&&m.insert(`rect`,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`).attr(`style`,d).attr(`x`,x).attr(`y`,S).attr(`width`,E).attr(`height`,T);let{subGraphTitleTopMargin:O}=R_(n);return p===`package`?g.attr(`transform`,`translate(${x+(E-v.width)/2}, ${S+(T-v.height)/2})`):g.attr(`transform`,`translate(${t.x-v.width/2}, ${S+O})`),u&&(g.attr(`style`,u),g.select(`span`).attr(`style`,u)),t.offsetX=0,t.width=y,t.height=b,t.offsetY=v.height-t.padding/2,t.labelBBox=v,t.intersect=function(e){return o_(t,e)},{cluster:m,labelBBox:v}},`usecaseSystemBoundary`),swimlane:H_},XMe=new Set([`noteGroup`,`divider`]),G_=N(e=>!XMe.has(e??`rect`),`clusterPaintsTitle`),K_=new Map,q_=N(async(e,t)=>{let n=await YMe[t.shape||`rect`](e,t);return K_.set(t.id,n),n},`insertCluster`),J_=N(()=>{K_=new Map},`clear`)}));function X_(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=nv(e),t=nv(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}function Z_(e,t,n){e.terminalLabelSizes??={},e.terminalLabelSizes[t]={width:n.width,height:n.height}}function Q_(e,t,n){os(As())&&e&&(e.style.width=Math.max(t.length*9,n.width)+`px`,e.style.height=n.height+`px`)}function ZMe(e){let t=[],n=[];for(let r=1;r5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}function QMe(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a({...e}));if(e.length>=2&&tv[t.arrowTypeStart]){let r=tv[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=$_(i,a),s=r*Math.cos(o),l=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+l}let r=e.length;if(r>=2&&tv[t.arrowTypeEnd]){let i=tv[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=$_(o,a),l=i*Math.cos(s),u=i*Math.sin(s);n[r-1].x=a.x-l,n[r-1].y=a.y-u}return n}var ev,tv,eNe,nv,tNe,nNe,rNe,iNe,aNe,oNe,rv,iv,sNe,cNe,av,ov,lNe,uNe,dNe,sv,cv,lv,fNe,pNe,uv,dv,mNe,hNe,gNe,fv=o((()=>{V_(),I_(),sm(),Dh(),Gm(),Ls(),ar(),tr(),Dp(),og(),ev=N((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),tv={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},eNe={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5},N(X_,`calculateDeltaAndAngle`),nv=N(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),tNe=N(e=>({x:N(function(t,n,r){let i=0,a=nv(r[0]).x=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(tv,e.arrowTypeEnd)){let{angle:t,deltaX:n}=X_(r[r.length-1],r[r.length-2]);i=tv[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let o=Math.abs(nv(t).x-nv(r[r.length-1]).x),s=Math.abs(nv(t).y-nv(r[r.length-1]).y),l=Math.abs(nv(t).x-nv(r[0]).x),u=Math.abs(nv(t).y-nv(r[0]).y),d=tv[e.arrowTypeStart],f=tv[e.arrowTypeEnd];if(o0&&s0&&u=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(tv,e.arrowTypeEnd)){let{angle:t,deltaY:n}=X_(r[r.length-1],r[r.length-2]);i=tv[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let o=Math.abs(nv(t).y-nv(r[r.length-1]).y),s=Math.abs(nv(t).x-nv(r[r.length-1]).x),l=Math.abs(nv(t).y-nv(r[0]).y),u=Math.abs(nv(t).x-nv(r[0]).x),d=tv[e.arrowTypeStart],f=tv[e.arrowTypeEnd];if(o0&&s0&&u{t.arrowTypeStart&&aNe(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&aNe(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),rNe={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},arrow_hierarchy:{type:`hierarchy`,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}},iNe=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],aNe=N((e,t,n,r,i,a,o=!1,s)=>{if(!n||n===`none`)return;let l=rNe[n],u=l&&iNe.includes(l.type);if(!l){P.warn(`Unknown arrow type: ${n}`);return}let d=`${i}_${a}-${l.type}${t===`start`?`Start`:`End`}${o&&u?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${d}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),l.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},`addEdgeMarker`),oNe=N(e=>typeof e==`string`?e:As()?.flowchart?.curve,`resolveEdgeCurveType`),rv=new Map,iv=new Map,sNe=N(()=>{rv.clear(),iv.clear()},`clear`),cNe=N(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),av=N(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),ov=N(async(e,t)=>{let n=As(),r=os(n),{labelStyles:i}=am(t);t.labelStyle=i;let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),s=t.labelType===`markdown`,l=await Eh(e,t.label,{style:av(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);o.node().appendChild(l),P.info(`abc82`,t,t.labelType);let u,d;if(r){let e=l.children[0],t=Qc(l);u=await Th.measure(()=>e.getBoundingClientRect()),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=Qc(l).select(`text`).node();await Th.measure(()=>{u=l.getBBox(),d=e&&typeof e.getBBox==`function`?e.getBBox():u})}o.attr(`transform`,ev(d,r)),rv.set(t.id,a),t.width=u.width,t.height=u.height;let f;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await u_(i,t.startLabelLeft,av(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Qc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,ev(o,r)),iv.get(t.id)||iv.set(t.id,{}),iv.get(t.id).startLeft=n,Q_(f,t.startLabelLeft,o),Z_(t,`startLeft`,o)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await u_(i,t.startLabelRight,av(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Qc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,ev(o,r)),iv.get(t.id)||iv.set(t.id,{}),iv.get(t.id).startRight=n,Q_(f,t.startLabelRight,o),Z_(t,`startRight`,o)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await u_(i,t.endLabelLeft,av(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Qc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,ev(o,r)),iv.get(t.id)||iv.set(t.id,{}),iv.get(t.id).endLeft=n,Q_(f,t.endLabelLeft,o),Z_(t,`endLeft`,o)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await u_(i,t.endLabelRight,av(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Qc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,ev(o,r)),iv.get(t.id)||iv.set(t.id,{}),iv.get(t.id).endRight=n,Q_(f,t.endLabelRight,o),Z_(t,`endRight`,o)}return l},`insertEdgeLabel`),N(Z_,`recordTerminalLabelSize`),N(Q_,`setTerminalWidth`),lNe=N((e,t)=>{let n=e.x,r=e.y;if(t?.updatedPath){let i=Hm.calcLabelPosition(t.updatedPath);if(t.originalPath){let a=Hm.calcLabelPosition(t.originalPath);n=e.x+(i.x-a.x),r=e.y+(i.y-a.y)}else n=i.x,r=i.y}return{x:n,y:r}},`resolveEdgeLabelPosition`),uNe=N((e,t)=>{P.debug(`Moving label abc88 `,e.id,e.label,rv.get(e.id),t);let n=As(),{subGraphTitleTotalMargin:r}=R_(n);if(e.label){let n=rv.get(e.id),{x:i,y:a}=lNe(e,t);P.debug(`Moving label `+e.label+` from (`,e.x,`,`,e.y,`) to (`,i,`,`,a,`) abc88`),n.attr(`transform`,`translate(${i}, ${a+r/2})`)}let i=t.updatedPath?t.updatedPath:t.originalPath;if(e.startLabelLeft){let t=iv.get(e.id).startLeft,n=e.x,r=e.y;if(i){let t=Hm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.startLabelRight){let t=iv.get(e.id).startRight,n=e.x,r=e.y;if(i){let t=Hm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.endLabelLeft){let t=iv.get(e.id).endLeft,n=e.x,r=e.y;if(i){let t=Hm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.endLabelRight){let t=iv.get(e.id).endRight,n=e.x,r=e.y;if(i){let t=Hm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}},`positionEdgeLabel`),dNe=N((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),sv=N((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),cv=N((e,t,n)=>{P.debug(`intersection calc abc89: + l${-n},0`,`createCylinderPathD`),IMe=N((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),LMe=N((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),P_=5,RMe=10,N(Rje,`tiltedCylinder`),N(zje,`trapezoid`),N(Wg,`trapezoidalPentagon`),F_=10,zMe=10,N(Bje,`triangle`),N(Vje,`waveEdgedRectangle`),N(Hje,`waveRectangle`),I_=10,N(Uje,`windowPane`),L_=new Set([`redux-color`,`redux-dark-color`]),BMe=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),N(Gg,`erBox`),N(Kg,`addText`),N(qg,`lineToPolygon`),N(Jg,`textHelper`),N(Yg,`addText`),N(Wje,`classBox`),N(Xg,`requirementBox`),N(Zg,`addText`),VMe=N(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`),N(Gje,`kanbanItem`),N(Kje,`bang`),N(Qg,`cloud`),N(qje,`defaultMindmapNode`),N($g,`mindmapCircle`),HMe=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Pje},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Lg},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Fje},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:Hg},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:aje},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:oje},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:dje},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:WAe},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:$Ae},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:JAe},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:Eg},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:ZAe},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Kje},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Qg},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Aje},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:mje},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:bje},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:yje},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:zje},{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:Mg},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:sje},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:Lje},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:YAe},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:Nje},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:Vg},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Bg},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:fje},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:kg},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:Cg},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:nje},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:rje},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:xje},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Vje},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:pje},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:Rje},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Ng},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:ije},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:Og},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:Bje},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Uje},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:lje},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Wg},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:uje},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Rg},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Oje},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:Dje},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:UAe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:tje},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:Ije},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:Ug},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Hje},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:jje},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Sje}],R_=N(()=>{let e=[...Object.entries({state:zg,choice:XAe,note:kje,composite:QAe,rectWithTitle:Mje,labelRect:vje,block_arrow:qAe,collapsedGroup:KAe,iconSquare:gje,iconCircle:jg,icon:Ag,iconRounded:hje,imageSquare:_je,anchor:BAe,kanbanItem:Gje,mindmapCircle:$g,defaultMindmapNode:qje,classBox:Wje,erBox:Gg,requirementBox:Xg,usecaseActor:wje,usecaseActorHollow:Fg,usecaseActorAwesome:Pg,usecaseActorIcon:Ig,usecaseBusiness:Tje,usecaseEllipse:cje,usecaseJsonTable:Eje}),...HMe.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)(),N(Jje,`isValidShape`)}));async function B_(e,t,n){let r,i;t.shape===`rect`&&(t.shape=t.rx&&t.ry?`roundedRect`:`squareRect`);let a=t.shape?R_[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,Vm(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),H_.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}var V_,H_,UMe,U_,W_,G_=o((()=>{z_(),qm(),er(),Zn(),V_=N(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),H_=new Map,N(B_,`insertNode`),UMe=N((e,t)=>{H_.set(t.id,e)},`setNodeElem`),U_=N(()=>{H_.clear()},`clear`),W_=N(e=>{let t=H_.get(e.id);P.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let n=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+n-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),n},`positionNode`)})),WMe,GMe,KMe,qMe,JMe,YMe,K_,q_,J_,Y_,X_,XMe,ZMe,Z_,QMe,Q_=o((()=>{G_(),z_(),dm(),Bh(),qh(),Os(),er(),Zn(),Dp(),mg(),WMe=N(async(e,t)=>{let n=bs(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:o,clusterBorder:s,borderColorArray:l}=i,u=s,{labelStyles:d,nodeStyles:f,borderStyles:p,backgroundStyles:m}=cm(t),h=e.insert(`g`).attr(`class`,`cluster swimlane `+(t.cssClasses||``)).attr(`id`,t.domId??t.id).attr(`data-id`,t.id).attr(`data-et`,`cluster`).attr(`data-look`,t.look);Kh(h,t.colorIndex,r,l);let g=Ro(n.flowchart.htmlLabels),_=t.direction===`LR`,v=h.insert(`g`).attr(`class`,`cluster-label swimlane-label`),y=await zh(v,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),b=y.getBBox();if(g){let e=y.children[0],t=Bc(y);b=e.getBoundingClientRect(),t.attr(`width`,b.width),t.attr(`height`,b.height)}let x=t.padding??0,S=t.width<=b.width+x?b.width+x:t.width;t.diff=t.width<=b.width+x?(S-t.width)/2-x:-x;let C=t.height,w=t.y-C/2,T=t.y+C/2,E=t.x-S/2,D=t.swimlaneContentTop===void 0?w+C/3:t.swimlaneContentTop,O=_?4:0,k=b.height+2*O,A,j;if(_){let e=Math.max(k,b.height+2*O),n=E+e,r=Math.max(0,S-e);if(t.look===`handDrawn`){let i=pg.svg(h),s=lm(t,{roughness:.7,fill:o,stroke:u,seed:a}),l=lm(t,{roughness:.7,fill:`none`,stroke:u,seed:a}),d=i.rectangle(E,w,e,C,s);A=h.insert(()=>d,`:first-child`).attr(`class`,`swimlane-title`);let f=i.rectangle(n,w,r,C,l);j=h.insert(()=>f,`:first-child`).attr(`class`,`swimlane-body`),A.select(`path:nth-child(2)`).attr(`style`,p.join(`;`)),A.select(`path`).attr(`style`,m.join(`;`).replace(`fill`,`stroke`))}else A=h.insert(`rect`,`:first-child`),j=h.insert(`rect`,`:first-child`),A.attr(`class`,`swimlane-title`).attr(`style`,f).attr(`x`,E).attr(`y`,w).attr(`width`,e).attr(`height`,C).attr(`fill`,o).attr(`stroke`,u),j.attr(`class`,`swimlane-body`).attr(`style`,f).attr(`x`,n).attr(`y`,w).attr(`width`,r).attr(`height`,C).attr(`fill`,`none`).attr(`stroke`,u);let i=E+e/2,s=t.y;v.attr(`transform`,`translate(${i}, ${s}) rotate(-90) translate(${-b.width/2}, ${-b.height/2})`)}else{let e=Math.max(0,D-w),n=Math.min(k,e),r=w+n,i=Math.max(0,T-r),s=t.x-S/2;if(t.look===`handDrawn`){let e=pg.svg(h),l=lm(t,{roughness:.7,fill:o,stroke:u,fillWeight:3,seed:a}),d=lm(t,{roughness:.7,fill:`none`,stroke:u,seed:a}),f=e.rectangle(s,w,S,n,l);A=h.insert(()=>f,`:first-child`).attr(`class`,`swimlane-title`);let g=e.rectangle(s,r,S,i,d);j=h.insert(()=>g,`:first-child`).attr(`class`,`swimlane-body`),A.select(`path:nth-child(2)`).attr(`style`,p.join(`;`)),A.select(`path`).attr(`style`,m.join(`;`).replace(`fill`,`stroke`))}else A=h.insert(`rect`,`:first-child`),j=h.insert(`rect`,`:first-child`),A.attr(`class`,`swimlane-title`).attr(`style`,f).attr(`x`,s).attr(`y`,w).attr(`width`,S).attr(`height`,n).attr(`fill`,o).attr(`stroke`,u),j.attr(`class`,`swimlane-body`).attr(`style`,f).attr(`x`,s).attr(`y`,r).attr(`width`,S).attr(`height`,i).attr(`fill`,`none`).attr(`stroke`,u);let l=t.x-b.width/2,d=w+(n-b.height)/2;v.attr(`transform`,`translate(${l}, ${d})`)}if(P.trace(`Swimlane data `,t,JSON.stringify(t)),d){let e=v.select(`span`);e&&e.attr(`style`,d)}return t.offsetX=0,t.width=S,t.height=C,t.offsetY=b.height-x/2,t.intersect=function(e){return c_(t,e)},{cluster:h,labelBBox:b}},`swimlane`),GMe=N(async(e,t)=>{P.info(`Creating subgraph rect for `,t.id,t);let n=bs(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:o,clusterBorder:s,borderColorArray:l}=i,{labelStyles:u,nodeStyles:d,borderStyles:f,backgroundStyles:p}=cm(t),m=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look);Kh(m,t.colorIndex,r,l);let h=es(n),g=m.insert(`g`).attr(`class`,`cluster-label `),_;_=t.labelType===`markdown`?await zh(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):await p_(g,t.label,t.labelStyle||``,!1,!0);let v=_.getBBox();if(es(n)){let e=_.children[0],t=Bc(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let y=t.width<=v.width+t.padding?v.width+t.padding:t.width;t.diff=t.width<=v.width+t.padding?(y-t.width)/2-t.padding:-t.padding;let b=t.height,x=t.x-y/2,S=t.y-b/2;P.trace(`Data `,t,JSON.stringify(t));let C;if(t.look===`handDrawn`){let e=pg.svg(m),n=lm(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:a}),r=e.path(f_(x,S,y,b,0),n);C=m.insert(()=>(P.debug(`Rough node insert CXC`,r),r),`:first-child`),C.select(`path:nth-child(2)`).attr(`style`,f.join(`;`)),C.select(`path`).attr(`style`,p.join(`;`).replace(`fill`,`stroke`))}else C=m.insert(`rect`,`:first-child`),C.attr(`style`,d).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,x).attr(`y`,S).attr(`width`,y).attr(`height`,b);let{subGraphTitleTopMargin:w}=V_(n);if(g.attr(`transform`,`translate(${t.x-v.width/2}, ${t.y-t.height/2+w})`),u){let e=g.select(`span`);e&&e.attr(`style`,u)}let T=C.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=v.height-t.padding/2,t.intersect=function(e){return c_(t,e)},{cluster:m,labelBBox:v}},`rect`),KMe=N((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return c_(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),qMe=N(async(e,t)=>{let n=bs(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{altBackground:o,borderColorArray:s,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=i,f=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-id`,t.id).attr(`data-look`,t.look);Kh(f,t.colorIndex,r,s);let p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),h=f.append(`rect`),g=await p_(m,t.label,t.labelStyle,void 0,!0),_=g.getBBox();if(es(n)){let e=g.children[0],t=Bc(g);_=e.getBoundingClientRect(),t.attr(`width`,_.width),t.attr(`height`,_.height)}let v=0*t.padding,y=v/2,b=(t.width<=_.width+t.padding?_.width+t.padding:t.width)+v;t.diff=t.width<=_.width+t.padding?(b-t.width)/2-t.padding:-t.padding;let x=t.height+v,S=t.height+v-_.height-6,C=t.x-b/2,w=t.y-x/2;t.width=b;let T=t.y-t.height/2-y+_.height+2,E;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=pg.svg(f),r=t.rx||t.ry?n.path(f_(C,w,b,x,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:a}):n.rectangle(C,w,b,x,{seed:a});E=f.insert(()=>r,`:first-child`);let i=n.rectangle(C,T,b,S,{fill:e?o:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:a});E=f.insert(()=>r,`:first-child`),h=f.insert(()=>i),E.attr(`class`,`outer`),h.attr(`class`,`inner`)}else E=p.insert(`rect`,`:first-child`),E.attr(`class`,`outer`).attr(`x`,C).attr(`y`,w).attr(`width`,b).attr(`height`,x).attr(`data-look`,t.look),h.attr(`class`,`inner`).attr(`x`,C).attr(`y`,T).attr(`width`,b).attr(`height`,S);return m.attr(`transform`,`translate(${t.x-_.width/2}, ${w+1-(es(n)?0:3)})`),t.height=E.node().getBBox().height,t.offsetX=0,t.offsetY=_.height-t.padding/2,t.labelBBox=_,t.intersect=function(e){return c_(t,e)},{cluster:f,labelBBox:_}},`roundedWithTitle`),JMe=N(async(e,t)=>{P.info(`Creating subgraph rect for `,t.id,t);let n=bs(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=cm(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=es(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h=await zh(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),g=h.getBBox();if(es(n)){let e=h.children[0],t=Bc(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,y=t.x-_/2,b=t.y-v/2;P.trace(`Data `,t,JSON.stringify(t));let x;if(t.look===`handDrawn`){let e=pg.svg(f),n=lm(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:i}),r=e.path(f_(y,b,_,v,t.rx),n);x=f.insert(()=>(P.debug(`Rough node insert CXC`,r),r),`:first-child`),x.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),x.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else x=f.insert(`rect`,`:first-child`),x.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,y).attr(`y`,b).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:S}=V_(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let C=x.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return c_(t,e)},{cluster:f,labelBBox:g}},`kanbanSection`),YMe=N((e,t)=>{let{theme:n,themeVariables:r,handDrawnSeed:i}=bs(),{altBackground:a,nodeBorder:o,borderColorArray:s}=r,l=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look);Kh(l,t.colorIndex,n,s);let u=l.insert(`g`,`:first-child`),d=0*t.padding,f=t.width+d;t.diff=-t.padding;let p=t.height+d,m=t.x-f/2,h=t.y-p/2;t.width=f;let g;if(t.look===`handDrawn`){let e=pg.svg(l).rectangle(m,h,f,p,{fill:a??`#efefef`,fillStyle:`solid`,roughness:.5,strokeLineDash:[5],stroke:o,seed:i});g=l.insert(()=>e,`:first-child`).attr(`class`,`divider`)}else{g=u.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),g.attr(`class`,e).attr(`x`,m).attr(`y`,h).attr(`width`,f).attr(`height`,p).attr(`data-look`,t.look)}return t.height=g.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return c_(t,e)},{cluster:l,labelBBox:{}}},`divider`),K_=N(async(e,t,n)=>{P.info(`Creating ${n.cssClass} for `,t.id,t);let r=bs(),{theme:i,themeVariables:a,handDrawnSeed:o}=r,{borderColorArray:s}=a,{labelStyles:l,borderStyles:u}=cm(t),d=e.insert(`g`).attr(`class`,`cluster `+n.cssClass+` `+t.cssClasses).attr(`id`,t.domId??t.id).attr(`data-look`,t.look);Kh(d,t.colorIndex,i,s);let f=es(r),p=d.insert(`g`).attr(`class`,`cluster-label`),m={width:0,height:0},h=t.label?.trim();if(h){let e;if(e=t.labelType===`markdown`?await zh(p,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}):await p_(p,t.label,t.labelStyle||``,!1,!0),m=e.getBBox(),f){let t=e.children[0],n=Bc(e);m=t.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}}let g=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.diff=t.width<=m.width+t.padding?(g-t.width)/2-t.padding:-t.padding;let _=t.height,v=t.x-g/2,y=t.y-_/2,b;if(t.look===`handDrawn`){let e=pg.svg(d),r=lm(t,{roughness:n.roughness,fill:n.fill,stroke:n.stroke,strokeWidth:n.strokeWidth,seed:o,...n.fill===`none`?{fillWeight:0}:{fillStyle:`solid`},...n.strokeDash?{strokeLineDash:n.strokeDash}:{}}),i=e.path(f_(v,y,g,_,n.rx),r);b=d.insert(()=>i,`:first-child`),b.select(`path:nth-child(2)`).attr(`style`,u.join(`;`))}else b=d.insert(`rect`,`:first-child`),b.attr(`rx`,n.rx).attr(`ry`,n.rx).attr(`x`,v).attr(`y`,y).attr(`width`,g).attr(`height`,_).attr(`fill`,n.fill).attr(`stroke`,n.stroke).attr(`stroke-width`,n.strokeWidth+`px`),n.strokeDash&&b.attr(`stroke-dasharray`,n.strokeDash.join(`, `));if(h){let{subGraphTitleTopMargin:e}=V_(r);if(p.attr(`transform`,`translate(${t.x-m.width/2}, ${t.y-t.height/2+e})`),l){let e=p.select(`span`);e&&e.attr(`style`,l)}}let x=b.node().getBBox();return t.offsetX=0,t.width=x.width,t.height=x.height,t.offsetY=m.height-t.padding/2,t.intersect=function(e){return c_(t,e)},{cluster:d,labelBBox:m}},`createContainerGroup`),q_=N(async(e,t)=>{let{themeVariables:n}=bs();return K_(e,t,{cssClass:`flow-cluster`,rx:10,fill:`none`,stroke:n.flowContainerStroke||n.secondaryBorderColor,strokeWidth:.75,roughness:.7})},`flowGroup`),J_=N((e,t)=>{let n=e.boundaryType||`rect`,r=n===`package`?20:e.padding,i=n===`package`?t.height+10:0,a=Math.max(e.width,t.width+r),o=n===`package`?Math.max(e.height,i+e.padding*2):e.height,s=e.x-a/2,l=e.y-o/2;return{boundaryType:n,width:a,height:o,x:s,y:l,bodyY:l+i,bodyHeight:o-i,tabHeight:i,tabWidth:n===`package`?Math.min(a,Math.max(80,t.width+20)):0}},`getUsecaseSystemBoundaryGeometry`),Y_={rect:GMe,squareRect:GMe,roundedWithTitle:qMe,noteGroup:KMe,divider:YMe,kanbanSection:JMe,flowGroup:q_,usecaseSystemBoundary:N(async(e,t)=>{P.info(`Creating usecase system boundary for `,t.id,t);let n=bs(),{theme:r,themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:o,clusterBorder:s,borderColorArray:l}=i,{labelStyles:u,nodeStyles:d}=cm(t),{stylesMap:f}=sm(t),p=t.boundaryType||`rect`,m=e.insert(`g`).attr(`class`,`cluster usecase-system-boundary usecase-system-boundary-${p} ${t.cssClasses}`).attr(`id`,typeof t.domId==`string`?t.domId:t.id).attr(`data-boundary-type`,p).attr(`data-look`,t.look);Kh(m,t.colorIndex,r,l);let h=es(n),g=m.insert(`g`).attr(`class`,`cluster-label system-boundary-title`),_=await zh(g,t.label,{style:u,useHtmlLabels:h,isNode:!0}),v=_.getBBox();if(h){let e=_.children[0],t=Bc(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let{width:y,height:b,x,y:S,bodyY:C,bodyHeight:w,tabHeight:T,tabWidth:E}=J_(t,v);t.diff=t.width<=v.width+t.padding?(y-t.width)/2-t.padding:-t.padding;let D=lm(t,{fill:f.get(`fill`)||o,stroke:f.get(`stroke`)||s,strokeWidth:f.get(`stroke-width`)?.replace(`px`,``)||1,seed:a});if(t.look===`handDrawn`){let e=pg.svg(m),t=e.rectangle(x,C,y,w,D);if(m.insert(()=>t,`:first-child`).attr(`class`,`boundary-body label-container`),p===`package`){let t=e.rectangle(x,S,E,T,D);m.insert(()=>t,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`)}}else m.insert(`rect`,`:first-child`).attr(`class`,`boundary-body label-container`).attr(`style`,d).attr(`x`,x).attr(`y`,C).attr(`width`,y).attr(`height`,w),p===`package`&&m.insert(`rect`,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`).attr(`style`,d).attr(`x`,x).attr(`y`,S).attr(`width`,E).attr(`height`,T);let{subGraphTitleTopMargin:O}=V_(n);return p===`package`?g.attr(`transform`,`translate(${x+(E-v.width)/2}, ${S+(T-v.height)/2})`):g.attr(`transform`,`translate(${t.x-v.width/2}, ${S+O})`),u&&(g.attr(`style`,u),g.select(`span`).attr(`style`,u)),t.offsetX=0,t.width=y,t.height=b,t.offsetY=v.height-t.padding/2,t.labelBBox=v,t.intersect=function(e){return c_(t,e)},{cluster:m,labelBBox:v}},`usecaseSystemBoundary`),swimlane:WMe},X_=new Set([`noteGroup`,`divider`]),XMe=N(e=>!X_.has(e??`rect`),`clusterPaintsTitle`),ZMe=new Map,Z_=N(async(e,t)=>{let n=await Y_[t.shape||`rect`](e,t);return ZMe.set(t.id,n),n},`insertCluster`),QMe=N(()=>{ZMe=new Map},`clear`)}));function $_(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=av(e),t=av(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}function ev(e,t,n){e.terminalLabelSizes??={},e.terminalLabelSizes[t]={width:n.width,height:n.height}}function tv(e,t,n){es(bs())&&e&&(e.style.width=Math.max(t.length*9,n.width)+`px`,e.style.height=n.height+`px`)}function nv(e){let t=[],n=[];for(let r=1;r5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}function $Me(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a({...e}));if(e.length>=2&&iv[t.arrowTypeStart]){let r=iv[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=eNe(i,a),s=r*Math.cos(o),l=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+l}let r=e.length;if(r>=2&&iv[t.arrowTypeEnd]){let i=iv[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=eNe(o,a),l=i*Math.cos(s),u=i*Math.sin(s);n[r-1].x=a.x-l,n[r-1].y=a.y-u}return n}var rv,iv,nNe,av,rNe,ov,sv,iNe,aNe,oNe,cv,lv,sNe,cNe,uv,dv,fv,pv,lNe,mv,uNe,dNe,fNe,pNe,hv,gv,mNe,hNe,_v,vv=o((()=>{G_(),z_(),dm(),Bh(),qm(),Os(),er(),Zn(),Dp(),mg(),rv=N((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),iv={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},nNe={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5},N($_,`calculateDeltaAndAngle`),av=N(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),rNe=N(e=>({x:N(function(t,n,r){let i=0,a=av(r[0]).x=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(iv,e.arrowTypeEnd)){let{angle:t,deltaX:n}=$_(r[r.length-1],r[r.length-2]);i=iv[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let o=Math.abs(av(t).x-av(r[r.length-1]).x),s=Math.abs(av(t).y-av(r[r.length-1]).y),l=Math.abs(av(t).x-av(r[0]).x),u=Math.abs(av(t).y-av(r[0]).y),d=iv[e.arrowTypeStart],f=iv[e.arrowTypeEnd];if(o0&&s0&&u=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(iv,e.arrowTypeEnd)){let{angle:t,deltaY:n}=$_(r[r.length-1],r[r.length-2]);i=iv[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let o=Math.abs(av(t).y-av(r[r.length-1]).y),s=Math.abs(av(t).x-av(r[r.length-1]).x),l=Math.abs(av(t).y-av(r[0]).y),u=Math.abs(av(t).x-av(r[0]).x),d=iv[e.arrowTypeStart],f=iv[e.arrowTypeEnd];if(o0&&s0&&u{t.arrowTypeStart&&aNe(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&aNe(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),sv={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},arrow_hierarchy:{type:`hierarchy`,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}},iNe=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],aNe=N((e,t,n,r,i,a,o=!1,s)=>{if(!n||n===`none`)return;let l=sv[n],u=l&&iNe.includes(l.type);if(!l){P.warn(`Unknown arrow type: ${n}`);return}let d=`${i}_${a}-${l.type}${t===`start`?`Start`:`End`}${o&&u?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${d}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),l.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},`addEdgeMarker`),oNe=N(e=>typeof e==`string`?e:bs()?.flowchart?.curve,`resolveEdgeCurveType`),cv=new Map,lv=new Map,sNe=N(()=>{cv.clear(),lv.clear()},`clear`),cNe=N(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),uv=N(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),dv=N(async(e,t)=>{let n=bs(),r=es(n),{labelStyles:i}=cm(t);t.labelStyle=i;let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),s=t.labelType===`markdown`,l=await zh(e,t.label,{style:uv(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);o.node().appendChild(l),P.info(`abc82`,t,t.labelType);let u,d;if(r){let e=l.children[0],t=Bc(l);u=await Rh.measure(()=>e.getBoundingClientRect()),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=Bc(l).select(`text`).node();await Rh.measure(()=>{u=l.getBBox(),d=e&&typeof e.getBBox==`function`?e.getBBox():u})}o.attr(`transform`,rv(d,r)),cv.set(t.id,a),t.width=u.width,t.height=u.height;let f;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await p_(i,t.startLabelLeft,uv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Bc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,rv(o,r)),lv.get(t.id)||lv.set(t.id,{}),lv.get(t.id).startLeft=n,tv(f,t.startLabelLeft,o),ev(t,`startLeft`,o)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await p_(i,t.startLabelRight,uv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Bc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,rv(o,r)),lv.get(t.id)||lv.set(t.id,{}),lv.get(t.id).startRight=n,tv(f,t.startLabelRight,o),ev(t,`startRight`,o)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await p_(i,t.endLabelLeft,uv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Bc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,rv(o,r)),lv.get(t.id)||lv.set(t.id,{}),lv.get(t.id).endLeft=n,tv(f,t.endLabelLeft,o),ev(t,`endLeft`,o)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await p_(i,t.endLabelRight,uv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Bc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,rv(o,r)),lv.get(t.id)||lv.set(t.id,{}),lv.get(t.id).endRight=n,tv(f,t.endLabelRight,o),ev(t,`endRight`,o)}return l},`insertEdgeLabel`),N(ev,`recordTerminalLabelSize`),N(tv,`setTerminalWidth`),fv=N((e,t)=>{let n=e.x,r=e.y;if(t?.updatedPath){let i=Wm.calcLabelPosition(t.updatedPath);if(t.originalPath){let a=Wm.calcLabelPosition(t.originalPath);n=e.x+(i.x-a.x),r=e.y+(i.y-a.y)}else n=i.x,r=i.y}return{x:n,y:r}},`resolveEdgeLabelPosition`),pv=N((e,t)=>{P.debug(`Moving label abc88 `,e.id,e.label,cv.get(e.id),t);let n=bs(),{subGraphTitleTotalMargin:r}=V_(n);if(e.label){let n=cv.get(e.id),{x:i,y:a}=fv(e,t);P.debug(`Moving label `+e.label+` from (`,e.x,`,`,e.y,`) to (`,i,`,`,a,`) abc88`),n.attr(`transform`,`translate(${i}, ${a+r/2})`)}let i=t.updatedPath?t.updatedPath:t.originalPath;if(e.startLabelLeft){let t=lv.get(e.id).startLeft,n=e.x,r=e.y;if(i){let t=Wm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.startLabelRight){let t=lv.get(e.id).startRight,n=e.x,r=e.y;if(i){let t=Wm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.endLabelLeft){let t=lv.get(e.id).endLeft,n=e.x,r=e.y;if(i){let t=Wm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.endLabelRight){let t=lv.get(e.id).endRight,n=e.x,r=e.y;if(i){let t=Wm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,i);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}},`positionEdgeLabel`),lNe=N((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),mv=N((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),uNe=N((e,t,n)=>{P.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(n)} - node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.xMath.abs(r-t.x)*l){let e=n.y{P.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(P.info(`abc88 checking point`,e,t),!sv(t,e)&&!i){let a=cv(t,r,e);P.debug(`abc88 inside`,e,r,a),P.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?P.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else P.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),P.debug(`returning points`,n),n},`cutPathAtIntersect`),N(ZMe,`extractCornerPoints`),fNe=N(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),pNe=N(function(e){let{cornerPointPositions:t}=ZMe(e),n=[];for(let r=0;r10&&Math.abs(i.y-t.y)>=10?(P.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):P.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,s)}else n.push(e[r]);return n},`fixCorners`),uv=N((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),dv=N(function(e,t,n,r,i,a,o,s=!1,l=void 0){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:u,layout:d}=As(),f=l??d,p=t.points,m=!1,h=i;var g=a;let _=[];for(let e in t.cssCompiledStyles)VTe(e)||_.push(t.cssCompiledStyles[e]);if(f===`swimlane`){if(!s&&g.intersect&&h.intersect&&Array.isArray(p)&&p.length>=2){if(p.length===2)p=[h.intersect(p[0]),g.intersect(p[1])];else{let e=p.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(p[p.length-1].x-n.x)!Number.isNaN(e.y)),b=oNe(t.curve);b!==`rounded`&&(y=pNe(y));let x=tp;switch(b){case`linear`:x=tp;break;case`basis`:x=VCe;break;case`cardinal`:x=XCe;break;case`bumpX`:x=LCe;break;case`bumpY`:x=ap;break;case`catmullRom`:x=vp;break;case`monotoneX`:x=Tp;break;case`monotoneY`:x=fwe;break;case`natural`:x=gwe;break;case`step`:x=ywe;break;case`stepAfter`:x=xwe;break;case`stepBefore`:x=bwe;break;case`rounded`:x=tp;break;default:x=VCe}let{x:S,y:C}=tNe(t),w=jCe().x(S).y(C).curve(x),T;switch(t.thickness){case`normal`:T=`edge-thickness-normal`;break;case`thick`:T=`edge-thickness-thick`;break;case`invisible`:T=`edge-thickness-invisible`;break;default:T=`edge-thickness-normal`}switch(t.pattern){case`solid`:T+=` edge-pattern-solid`;break;case`dotted`:T+=` edge-pattern-dotted`;break;case`dashed`:T+=` edge-pattern-dashed`;break;default:T+=` edge-pattern-solid`}let E,D=b===`rounded`?QMe($Me(y,t),5):w(y),O=Array.isArray(t.style)?t.style:[t.style],k=O.find(e=>e?.startsWith(`stroke:`)),A=``;t.animate&&(A=`edge-animation-fast`),t.animation&&(A=`edge-animation-`+t.animation);let j=!1;if(t.look===`handDrawn`){let n=ag.svg(e);Object.assign([],y);let r=n.path(D,{roughness:.3,seed:u});T+=` transition`,E=Qc(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+T+(t.classes?` `+t.classes:``)+(A?` `+A:``)).attr(`style`,O?O.reduce((e,t)=>e+`;`+t,``):``);let i=E.attr(`d`);E.attr(`d`,i),e.node().appendChild(E.node())}else{let n=_.join(`;`),r=O?O.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(O?O.reduce((e,t)=>e+`;`+t,``):``);E=e.append(`path`).attr(`d`,D).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+T+(t.classes?` `+t.classes:``)+(A?` `+A:``)).attr(`style`,i),k=i.match(/stroke:([^;]+)/)?.[1],j=t.animate===!0||!!t.animation||n.includes(`animation`);let a=E.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,l=eNe[t.arrowTypeStart]||0,u=eNe[t.arrowTypeEnd]||0;if(t.look===`neo`&&!j){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?uv(s,l,u):`0 ${l} ${s-l-u} ${u}`}; stroke-dashoffset: 0;`;E.attr(`style`,e+E.attr(`style`))}}E.attr(`data-edge`,!0),E.attr(`data-et`,`edge`),E.attr(`data-id`,t.id),E.attr(`data-points`,v),E.attr(`data-look`,zm(t.look)),t.showPoints&&y.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let M=``;(As().flowchart.arrowMarkerAbsolute||As().state.arrowMarkerAbsolute)&&(M=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,M=M.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),P.info(`arrowTypeStart`,t.arrowTypeStart),P.info(`arrowTypeEnd`,t.arrowTypeEnd);let ee=!j&&t?.look===`neo`;nNe(E,t,M,o,r,ee,k);let te=Math.floor(p.length/2),ne=p[te];Hm.isLabelCoordinateInPath(ne,E.attr(`d`))||(m=!0);let re={};return m&&(re.updatedPath=p),re.originalPath=t.points,re},`insertEdge`),N(QMe,`generateRoundedPath`),N($_,`calculateDeltaAndAngle`),N($Me,`applyMarkerOffsetsToPoints`),mNe=N((e,t,n,r)=>{t.forEach(t=>{hNe[t](e,n,r)})},`insertMarkers`),hNe={extension:N((e,t,n)=>{P.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).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`),composition:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).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`),aggregation:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).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`),dependency:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).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`),lollipop:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).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),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).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),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).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),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).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`),point:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).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`),circle:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).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`),cross:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).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),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).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`),barb:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),barbNeo:N((e,t,n)=>{let{themeVariables:r}=ns(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),hierarchy:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-hierarchyEnd`).attr(`class`,`marker hierarchy `+t).attr(`viewBox`,`0 0 12 10`).attr(`refX`,10).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`),e.append(`marker`).attr(`id`,n+`_`+t+`-hierarchyStart`).attr(`class`,`marker hierarchy `+t).attr(`viewBox`,`0 0 12 10`).attr(`refX`,2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`)},`hierarchy`),only_one:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).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`),zero_or_one:N((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).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`),zero_or_more:N((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:N((e,t,n)=>{let{themeVariables:r}=ns(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).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}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).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`),zero_or_one_neo:N((e,t,n)=>{let{themeVariables:r}=ns(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`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}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:N((e,t,n)=>{let{themeVariables:r}=ns(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).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}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).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`),zero_or_more_neo:N((e,t,n)=>{let{themeVariables:r}=ns(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`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}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.xMath.abs(r-t.x)*l){let e=n.y{P.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(P.info(`abc88 checking point`,e,t),!mv(t,e)&&!i){let a=uNe(t,r,e);P.debug(`abc88 inside`,e,r,a),P.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?P.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else P.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),P.debug(`returning points`,n),n},`cutPathAtIntersect`),N(nv,`extractCornerPoints`),fNe=N(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),pNe=N(function(e){let{cornerPointPositions:t}=nv(e),n=[];for(let r=0;r10&&Math.abs(i.y-t.y)>=10?(P.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):P.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,s)}else n.push(e[r]);return n},`fixCorners`),hv=N((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),gv=N(function(e,t,n,r,i,a,o,s=!1,l=void 0){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:u,layout:d}=bs(),f=l??d,p=t.points,m=!1,h=i;var g=a;let _=[];for(let e in t.cssCompiledStyles)UTe(e)||_.push(t.cssCompiledStyles[e]);if(f===`swimlane`){if(!s&&g.intersect&&h.intersect&&Array.isArray(p)&&p.length>=2){if(p.length===2)p=[h.intersect(p[0]),g.intersect(p[1])];else{let e=p.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(p[p.length-1].x-n.x)!Number.isNaN(e.y)),b=oNe(t.curve);b!==`rounded`&&(y=pNe(y));let x=Zf;switch(b){case`linear`:x=Zf;break;case`basis`:x=YCe;break;case`cardinal`:x=ewe;break;case`bumpX`:x=np;break;case`bumpY`:x=rp;break;case`catmullRom`:x=vp;break;case`monotoneX`:x=ywe;break;case`monotoneY`:x=bwe;break;case`natural`:x=wwe;break;case`step`:x=Cp;break;case`stepAfter`:x=Owe;break;case`stepBefore`:x=Dwe;break;case`rounded`:x=Zf;break;default:x=YCe}let{x:S,y:C}=rNe(t),w=zCe().x(S).y(C).curve(x),T;switch(t.thickness){case`normal`:T=`edge-thickness-normal`;break;case`thick`:T=`edge-thickness-thick`;break;case`invisible`:T=`edge-thickness-invisible`;break;default:T=`edge-thickness-normal`}switch(t.pattern){case`solid`:T+=` edge-pattern-solid`;break;case`dotted`:T+=` edge-pattern-dotted`;break;case`dashed`:T+=` edge-pattern-dashed`;break;default:T+=` edge-pattern-solid`}let E,D=b===`rounded`?$Me(tNe(y,t),5):w(y),O=Array.isArray(t.style)?t.style:[t.style],k=O.find(e=>e?.startsWith(`stroke:`)),A=``;t.animate&&(A=`edge-animation-fast`),t.animation&&(A=`edge-animation-`+t.animation);let j=!1;if(t.look===`handDrawn`){let n=pg.svg(e);Object.assign([],y);let r=n.path(D,{roughness:.3,seed:u});T+=` transition`,E=Bc(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+T+(t.classes?` `+t.classes:``)+(A?` `+A:``)).attr(`style`,O?O.reduce((e,t)=>e+`;`+t,``):``);let i=E.attr(`d`);E.attr(`d`,i),e.node().appendChild(E.node())}else{let n=_.join(`;`),r=O?O.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(O?O.reduce((e,t)=>e+`;`+t,``):``);E=e.append(`path`).attr(`d`,D).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+T+(t.classes?` `+t.classes:``)+(A?` `+A:``)).attr(`style`,i),k=i.match(/stroke:([^;]+)/)?.[1],j=t.animate===!0||!!t.animation||n.includes(`animation`);let a=E.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,l=nNe[t.arrowTypeStart]||0,u=nNe[t.arrowTypeEnd]||0;if(t.look===`neo`&&!j){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?hv(s,l,u):`0 ${l} ${s-l-u} ${u}`}; stroke-dashoffset: 0;`;E.attr(`style`,e+E.attr(`style`))}}E.attr(`data-edge`,!0),E.attr(`data-et`,`edge`),E.attr(`data-id`,t.id),E.attr(`data-points`,v),E.attr(`data-look`,Vm(t.look)),t.showPoints&&y.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let M=``;(bs().flowchart.arrowMarkerAbsolute||bs().state.arrowMarkerAbsolute)&&(M=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,M=M.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),P.info(`arrowTypeStart`,t.arrowTypeStart),P.info(`arrowTypeEnd`,t.arrowTypeEnd);let ee=!j&&t?.look===`neo`;ov(E,t,M,o,r,ee,k);let te=Math.floor(p.length/2),ne=p[te];Wm.isLabelCoordinateInPath(ne,E.attr(`d`))||(m=!0);let re={};return m&&(re.updatedPath=p),re.originalPath=t.points,re},`insertEdge`),N($Me,`generateRoundedPath`),N(eNe,`calculateDeltaAndAngle`),N(tNe,`applyMarkerOffsetsToPoints`),mNe=N((e,t,n,r)=>{t.forEach(t=>{hNe[t](e,n,r)})},`insertMarkers`),hNe={extension:N((e,t,n)=>{P.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).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`),composition:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).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`),aggregation:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).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`),dependency:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).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`),lollipop:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).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),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).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),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).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),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).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`),point:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).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`),circle:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).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`),cross:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).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`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).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),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).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`),barb:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),barbNeo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),hierarchy:N((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-hierarchyEnd`).attr(`class`,`marker hierarchy `+t).attr(`viewBox`,`0 0 12 10`).attr(`refX`,10).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`),e.append(`marker`).attr(`id`,n+`_`+t+`-hierarchyStart`).attr(`class`,`marker hierarchy `+t).attr(`viewBox`,`0 0 12 10`).attr(`refX`,2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`)},`hierarchy`),only_one:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).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`),zero_or_one:N((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).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`),zero_or_more:N((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).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}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).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`),zero_or_one_neo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`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}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).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}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).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`),zero_or_more_neo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`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}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:N((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),requirement_contains:N((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:N((e,t,n)=>{let{themeVariables:r}=ns(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),requirement_contains:N((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-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`),requirement_contains_neo:N((e,t,n)=>{let{themeVariables:r}=ns(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},gNe=mNe}));function pv(e){let t=[];for(let n=0;n=1-Sv||p<=Sv||p>=1-Sv?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}function vNe(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function mv(e,t,n){if(e.curve!==`rounded`)return!1;let r=e.points,i=r[t],a=r[t+1];if(!i||!a)return!1;let o=Math.hypot(a.x-i.x,a.y-i.y),s=n*o,l=t>0?vv(r[t-1],i,a,bv):null;if(l&&s=Math.abs(n)?+(t>=0):+(n>=0)}function bNe(e,t){if(e.length<2)return e.map(e=>({...e}));let n=e.map(e=>({...e})),r=t.arrowTypeStart&&tv[t.arrowTypeStart];if(r){let t=e[0],i=e[1],a=Math.atan2(i.y-t.y,i.x-t.x);n[0].x=t.x+r*Math.cos(a),n[0].y=t.y+r*Math.sin(a)}let i=t.arrowTypeEnd&&tv[t.arrowTypeEnd];if(i){let t=e.length,r=e[t-2],a=e[t-1],o=Math.atan2(a.y-r.y,a.x-r.x);n[t-1].x=a.x-i*Math.cos(o),n[t-1].y=a.y-i*Math.sin(o)}return n}function xNe(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},l={x:a+t*e.r,y:o+n*e.r},u=[`L${gv(s)}`];return i===`arc`?u.push(`A${hv(e.r)},${hv(e.r)} 0 0 ${r} ${gv(l)}`):u.push(`M${gv(l)}`),u}function vv(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=n.x-t.x,s=n.y-t.y,l=Math.hypot(i,a),u=Math.hypot(o,s);if(l0){let t=vv(i[e-1],i[e],i[e+1]??i[e],bv);t&&(p=t.cutLen)}let m=r,h=null;a&&ee.t-t.t).filter(e=>{let t=Math.min(e.d-p,m-e.d)-ENe;return e.r=Math.min(e.r,t),e.r>=g});for(let e=0;e<_.length-1;e++){let t=_[e+1].d-_[e].d;if(_[e].r+_[e+1].r>t){let n=t/2;_[e].r=Math.min(_[e].r,n),_[e+1].r=Math.min(_[e+1].r,n)}}for(let e of _)e.r=2?r:null}catch{return null}}function TNe(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=new Map;for(let e of r.querySelectorAll(`path[data-id]`)){let t=e.getAttribute(`data-id`);t!==null&&!a.has(t)&&a.set(t,e)}let o=[];for(let e of t){let t=a.get(e.id);if(!t)continue;let n=wNe(t.getAttribute(`data-points`))??e.points;o.push({...e,points:n})}let s=yNe(o);if(s.length===0)return;let l=new Map;for(let e of s){let t=l.get(e.jumpEdgeId)??[];t.push(e),l.set(e.jumpEdgeId,t)}for(let e of o){let t=l.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!CNe(r))continue;let o=a.get(e.id);if(!o||r===void 0&&!SNe(o.getAttribute(`d`)??``))continue;let s=o.getAttribute(`style`)??``,u=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),d=u?Number.parseFloat(u[1]):null,f=u?Number.parseFloat(u[2]):null,p=yv(e,t,n);if(o.setAttribute(`d`,p),d!==null&&f!==null&&typeof o.getTotalLength==`function`){let e=o.getTotalLength(),t=`0 ${d} ${Math.max(0,e-d-f)} ${f}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);o.setAttribute(`style`,n)}}}var bv,xv,ENe,DNe,Sv,Cv=o((()=>{fv(),tr(),bv=5,xv=1e-5,ENe=2,DNe=.6,Sv=1e-6,N(pv,`buildSegmentList`),N(_Ne,`segmentIntersection`),N(vNe,`isHorizontalSeg`),N(mv,`crossingSitsInRoundedCorner`),N(yNe,`findEdgeIntersections`),N(hv,`fmt`),N(gv,`pointToString`),N(_v,`getArcSweepFlag`),N(bNe,`applyMarkerOffsets`),N(xNe,`emitJump`),N(vv,`computeRoundedCorner`),N(yv,`rewriteEdgePath`),N(SNe,`isStraightPath`),N(CNe,`curveSupportsLineHops`),N(wNe,`decodeDataPoints`),N(TNe,`applyLineJumpsToSvg`)})),wv,Tv=o((()=>{wv=typeof global==`object`&&global&&global.Object===Object&&global})),ONe,Ev,Dv=o((()=>{Tv(),ONe=typeof self==`object`&&self&&self.Object===Object&&self,Ev=wv||ONe||Function(`return this`)()})),Ov,kv=o((()=>{Dv(),Ov=Ev.Symbol}));function kNe(e){var t=Av.call(e,Mv),n=e[Mv];try{e[Mv]=void 0;var r=!0}catch{}var i=jv.call(e);return r&&(t?e[Mv]=n:delete e[Mv]),i}var ANe,Av,jv,Mv,jNe=o((()=>{kv(),ANe=Object.prototype,Av=ANe.hasOwnProperty,jv=ANe.toString,Mv=Ov?Ov.toStringTag:void 0}));function MNe(e){return NNe.call(e)}var NNe,PNe=o((()=>{NNe=Object.prototype.toString}));function Nv(e){return e==null?e===void 0?INe:FNe:LNe&&LNe in Object(e)?kNe(e):MNe(e)}var FNe,INe,LNe,Pv=o((()=>{kv(),jNe(),PNe(),FNe=`[object Null]`,INe=`[object Undefined]`,LNe=Ov?Ov.toStringTag:void 0}));function Fv(e){return typeof e==`object`&&!!e}var Iv=o((()=>{}));function Lv(e){return typeof e==`symbol`||Fv(e)&&Nv(e)==RNe}var RNe,Rv=o((()=>{Pv(),Iv(),RNe=`[object Symbol]`}));function zv(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{})),Vv,Hv=o((()=>{Vv=Array.isArray}));function zNe(e){if(typeof e==`string`)return e;if(Vv(e))return zv(e,zNe)+``;if(Lv(e))return Wv?Wv.call(e):``;var t=e+``;return t==`0`&&1/e==-BNe?`-0`:t}var BNe,Uv,Wv,VNe=o((()=>{kv(),Bv(),Hv(),Rv(),BNe=1/0,Uv=Ov?Ov.prototype:void 0,Wv=Uv?Uv.toString:void 0}));function HNe(e){for(var t=e.length;t--&&UNe.test(e.charAt(t)););return t}var UNe,WNe=o((()=>{UNe=/\s/}));function GNe(e){return e&&e.slice(0,HNe(e)+1).replace(KNe,``)}var KNe,Gv=o((()=>{WNe(),KNe=/^\s+/}));function Kv(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var qv=o((()=>{}));function qNe(e){if(typeof e==`number`)return e;if(Lv(e))return Jv;if(Kv(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Kv(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=GNe(e);var n=JNe.test(e);return n||YNe.test(e)?XNe(e.slice(2),n?2:8):Yv.test(e)?Jv:+e}var Jv,Yv,JNe,YNe,XNe,ZNe=o((()=>{Gv(),qv(),Rv(),Jv=NaN,Yv=/^[-+]0x[0-9a-f]+$/i,JNe=/^0b[01]+$/i,YNe=/^0o[0-7]+$/i,XNe=parseInt}));function Xv(e){return e?(e=qNe(e),e===Zv||e===-Zv?(e<0?-1:1)*QNe:e===e?e:0):e===0?e:0}var Zv,QNe,Qv=o((()=>{ZNe(),Zv=1/0,QNe=17976931348623157e292}));function $Ne(e){var t=Xv(e),n=t%1;return t===t?n?t-n:t:0}var ePe=o((()=>{Qv()}));function $v(e){return e}var ey=o((()=>{}));function tPe(e){if(!Kv(e))return!1;var t=Nv(e);return t==rPe||t==iPe||t==nPe||t==aPe}var nPe,rPe,iPe,aPe,oPe=o((()=>{Pv(),qv(),nPe=`[object AsyncFunction]`,rPe=`[object Function]`,iPe=`[object GeneratorFunction]`,aPe=`[object Proxy]`})),sPe,cPe=o((()=>{Dv(),sPe=Ev[`__core-js_shared__`]}));function ty(e){return!!lPe&&lPe in e}var lPe,uPe=o((()=>{cPe(),lPe=function(){var e=/[^.]+$/.exec(sPe&&sPe.keys&&sPe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function ny(e){if(e!=null){try{return dPe.call(e)}catch{}try{return e+``}catch{}}return``}var dPe,fPe=o((()=>{dPe=Function.prototype.toString}));function pPe(e){return!Kv(e)||ty(e)?!1:(tPe(e)?oy:hPe).test(ny(e))}var mPe,hPe,ry,iy,gPe,ay,oy,sy=o((()=>{oPe(),uPe(),qv(),fPe(),mPe=/[\\^$.*+?()[\]{}|]/g,hPe=/^\[object .+?Constructor\]$/,ry=Function.prototype,iy=Object.prototype,gPe=ry.toString,ay=iy.hasOwnProperty,oy=RegExp(`^`+gPe.call(ay).replace(mPe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function cy(e,t){return e?.[t]}var ly=o((()=>{}));function uy(e,t){var n=cy(e,t);return pPe(n)?n:void 0}var dy=o((()=>{sy(),ly()})),fy,_Pe=o((()=>{dy(),Dv(),fy=uy(Ev,`WeakMap`)})),vPe,yPe,bPe=o((()=>{qv(),vPe=Object.create,yPe=function(){function e(){}return function(t){if(!Kv(t))return{};if(vPe)return vPe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function xPe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var py=o((()=>{}));function SPe(){}var my=o((()=>{}));function CPe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{}));function TPe(e){var t=0,n=0;return function(){var r=OPe(),i=DPe-(r-n);if(n=r,i>0){if(++t>=EPe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var EPe,DPe,OPe,hy=o((()=>{EPe=800,DPe=16,OPe=Date.now}));function gy(e){return function(){return e}}var kPe=o((()=>{})),_y,APe=o((()=>{dy(),_y=function(){try{var e=uy(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),jPe,MPe=o((()=>{kPe(),APe(),ey(),jPe=_y?function(e,t){return _y(e,`toString`,{configurable:!0,enumerable:!1,value:gy(t),writable:!0})}:$v})),NPe,PPe=o((()=>{MPe(),hy(),NPe=TPe(jPe)}));function vy(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function by(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{}));function IPe(e){return e!==e}var xy=o((()=>{}));function LPe(e,t,n){for(var r=n-1,i=e.length;++r{}));function zPe(e,t,n){return t===t?LPe(e,t,n):by(e,IPe,n)}var BPe=o((()=>{FPe(),xy(),RPe()}));function Sy(e,t){return!!(e!=null&&e.length)&&zPe(e,t,0)>-1}var Cy=o((()=>{BPe()}));function wy(e,t){var n=typeof e;return t??=Ty,!!t&&(n==`number`||n!=`symbol`&&Ey.test(e))&&e>-1&&e%1==0&&e{Ty=9007199254740991,Ey=/^(?:0|[1-9]\d*)$/}));function VPe(e,t,n){t==`__proto__`&&_y?_y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var HPe=o((()=>{APe()}));function Oy(e,t){return e===t||e!==e&&t!==t}var ky=o((()=>{}));function UPe(e,t,n){var r=e[t];(!(WPe.call(e,t)&&Oy(r,n))||n===void 0&&!(t in e))&&VPe(e,t,n)}var WPe,GPe=o((()=>{HPe(),ky(),WPe=Object.prototype.hasOwnProperty}));function KPe(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a{GPe(),HPe()}));function qPe(e,t,n){return t=JPe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=JPe(r.length-t,0),o=Array(a);++i{py(),JPe=Math.max}));function XPe(e,t){return NPe(qPe(e,t,$v),e+``)}var ZPe=o((()=>{ey(),YPe(),PPe()}));function QPe(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=$Pe}var $Pe,eFe=o((()=>{$Pe=9007199254740991}));function jy(e){return e!=null&&QPe(e.length)&&!tPe(e)}var My=o((()=>{oPe(),eFe()}));function tFe(e,t,n){if(!Kv(n))return!1;var r=typeof t;return(r==`number`?jy(n)&&wy(t,n.length):r==`string`&&t in n)?Oy(n[t],e):!1}var nFe=o((()=>{ky(),My(),Dy(),qv()}));function rFe(e){return XPe(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&tFe(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r{ZPe(),nFe()}));function aFe(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||oFe)}var oFe,Ny=o((()=>{oFe=Object.prototype}));function Py(e,t){for(var n=-1,r=Array(e);++n{}));function cFe(e){return Fv(e)&&Nv(e)==lFe}var lFe,uFe=o((()=>{Pv(),Iv(),lFe=`[object Arguments]`})),dFe,fFe,Fy,Iy,Ly=o((()=>{uFe(),Iv(),dFe=Object.prototype,fFe=dFe.hasOwnProperty,Fy=dFe.propertyIsEnumerable,Iy=cFe(function(){return arguments}())?cFe:function(e){return Fv(e)&&fFe.call(e,`callee`)&&!Fy.call(e,`callee`)}}));function pFe(){return!1}var mFe=o((()=>{})),Ry,hFe,zy,By,Vy=o((()=>{Dv(),mFe(),Ry=typeof exports==`object`&&exports&&!exports.nodeType&&exports,hFe=Ry&&typeof module==`object`&&module&&!module.nodeType&&module,zy=hFe&&hFe.exports===Ry?Ev.Buffer:void 0,By=(zy?zy.isBuffer:void 0)||pFe}));function gFe(e){return Fv(e)&&QPe(e.length)&&!!Xy[Nv(e)]}var _Fe,vFe,Hy,yFe,bFe,xFe,Uy,SFe,CFe,wFe,Wy,TFe,EFe,DFe,Gy,Ky,OFe,qy,Jy,Yy,kFe,AFe,jFe,MFe,Xy,Zy=o((()=>{Pv(),eFe(),Iv(),_Fe=`[object Arguments]`,vFe=`[object Array]`,Hy=`[object Boolean]`,yFe=`[object Date]`,bFe=`[object Error]`,xFe=`[object Function]`,Uy=`[object Map]`,SFe=`[object Number]`,CFe=`[object Object]`,wFe=`[object RegExp]`,Wy=`[object Set]`,TFe=`[object String]`,EFe=`[object WeakMap]`,DFe=`[object ArrayBuffer]`,Gy=`[object DataView]`,Ky=`[object Float32Array]`,OFe=`[object Float64Array]`,qy=`[object Int8Array]`,Jy=`[object Int16Array]`,Yy=`[object Int32Array]`,kFe=`[object Uint8Array]`,AFe=`[object Uint8ClampedArray]`,jFe=`[object Uint16Array]`,MFe=`[object Uint32Array]`,Xy={},Xy[Ky]=Xy[OFe]=Xy[qy]=Xy[Jy]=Xy[Yy]=Xy[kFe]=Xy[AFe]=Xy[jFe]=Xy[MFe]=!0,Xy[_Fe]=Xy[vFe]=Xy[DFe]=Xy[Hy]=Xy[Gy]=Xy[yFe]=Xy[bFe]=Xy[xFe]=Xy[Uy]=Xy[SFe]=Xy[CFe]=Xy[wFe]=Xy[Wy]=Xy[TFe]=Xy[EFe]=!1}));function Qy(e){return function(t){return e(t)}}var $y=o((()=>{})),NFe,eb,tb,nb,PFe=o((()=>{Tv(),NFe=typeof exports==`object`&&exports&&!exports.nodeType&&exports,eb=NFe&&typeof module==`object`&&module&&!module.nodeType&&module,tb=eb&&eb.exports===NFe&&wv.process,nb=function(){try{return eb&&eb.require&&eb.require(`util`).types||tb&&tb.binding&&tb.binding(`util`)}catch{}}()})),rb,FFe,ib=o((()=>{Zy(),$y(),PFe(),rb=nb&&nb.isTypedArray,FFe=rb?Qy(rb):gFe}));function IFe(e,t){var n=Vv(e),r=!n&&Iy(e),i=!n&&!r&&By(e),a=!n&&!r&&!i&&FFe(e),o=n||r||i||a,s=o?Py(e.length,String):[],l=s.length;for(var u in e)(t||LFe.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||wy(u,l)))&&s.push(u);return s}var LFe,RFe=o((()=>{sFe(),Ly(),Hv(),Vy(),Dy(),ib(),LFe=Object.prototype.hasOwnProperty}));function zFe(e,t){return function(n){return e(t(n))}}var ab=o((()=>{})),BFe,ob=o((()=>{ab(),BFe=zFe(Object.keys,Object)}));function sb(e){if(!aFe(e))return BFe(e);var t=[];for(var n in Object(e))VFe.call(e,n)&&n!=`constructor`&&t.push(n);return t}var VFe,HFe=o((()=>{Ny(),ob(),VFe=Object.prototype.hasOwnProperty}));function cb(e){return jy(e)?IFe(e):sb(e)}var lb=o((()=>{RFe(),HFe(),My()}));function UFe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var WFe=o((()=>{}));function GFe(e){if(!Kv(e))return UFe(e);var t=aFe(e),n=[];for(var r in e)(r!=`constructor`||!t&&KFe.call(e,r))&&n.push(r);return n}var KFe,qFe=o((()=>{qv(),Ny(),WFe(),KFe=Object.prototype.hasOwnProperty}));function ub(e){return jy(e)?IFe(e,!0):GFe(e)}var db=o((()=>{RFe(),qFe(),My()}));function JFe(e,t){if(Vv(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Lv(e)?!0:XFe.test(e)||!YFe.test(e)||t!=null&&e in Object(t)}var YFe,XFe,ZFe=o((()=>{Hv(),Rv(),YFe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XFe=/^\w*$/})),fb,QFe=o((()=>{dy(),fb=uy(Object,`create`)}));function $Fe(){this.__data__=fb?fb(null):{},this.size=0}var pb=o((()=>{QFe()}));function mb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var hb=o((()=>{}));function gb(e){var t=this.__data__;if(fb){var n=t[e];return n===_b?void 0:n}return vb.call(t,e)?t[e]:void 0}var _b,vb,eIe=o((()=>{QFe(),_b=`__lodash_hash_undefined__`,vb=Object.prototype.hasOwnProperty}));function tIe(e){var t=this.__data__;return fb?t[e]!==void 0:nIe.call(t,e)}var nIe,rIe=o((()=>{QFe(),nIe=Object.prototype.hasOwnProperty}));function iIe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=fb&&t===void 0?aIe:t,this}var aIe,oIe=o((()=>{QFe(),aIe=`__lodash_hash_undefined__`}));function yb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{pb(),hb(),eIe(),rIe(),oIe(),yb.prototype.clear=$Fe,yb.prototype.delete=mb,yb.prototype.get=gb,yb.prototype.has=tIe,yb.prototype.set=iIe}));function cIe(){this.__data__=[],this.size=0}var lIe=o((()=>{}));function uIe(e,t){for(var n=e.length;n--;)if(Oy(e[n][0],t))return n;return-1}var dIe=o((()=>{ky()}));function fIe(e){var t=this.__data__,n=uIe(t,e);return n<0?!1:(n==t.length-1?t.pop():bb.call(t,n,1),--this.size,!0)}var bb,xb=o((()=>{dIe(),bb=Array.prototype.splice}));function pIe(e){var t=this.__data__,n=uIe(t,e);return n<0?void 0:t[n][1]}var mIe=o((()=>{dIe()}));function hIe(e){return uIe(this.__data__,e)>-1}var Sb=o((()=>{dIe()}));function Cb(e,t){var n=this.__data__,r=uIe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var gIe=o((()=>{dIe()}));function wb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{lIe(),xb(),mIe(),Sb(),gIe(),wb.prototype.clear=cIe,wb.prototype.delete=fIe,wb.prototype.get=pIe,wb.prototype.has=hIe,wb.prototype.set=Cb})),Eb,_Ie=o((()=>{dy(),Dv(),Eb=uy(Ev,`Map`)}));function vIe(){this.size=0,this.__data__={hash:new yb,map:new(Eb||wb),string:new yb}}var yIe=o((()=>{sIe(),Tb(),_Ie()}));function bIe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var xIe=o((()=>{}));function SIe(e,t){var n=e.__data__;return bIe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var CIe=o((()=>{xIe()}));function wIe(e){var t=SIe(this,e).delete(e);return this.size-=+!!t,t}var TIe=o((()=>{CIe()}));function EIe(e){return SIe(this,e).get(e)}var DIe=o((()=>{CIe()}));function OIe(e){return SIe(this,e).has(e)}var kIe=o((()=>{CIe()}));function AIe(e,t){var n=SIe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var jIe=o((()=>{CIe()}));function Db(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{yIe(),TIe(),DIe(),kIe(),jIe(),Db.prototype.clear=vIe,Db.prototype.delete=wIe,Db.prototype.get=EIe,Db.prototype.has=OIe,Db.prototype.set=AIe}));function NIe(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(PIe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(NIe.Cache||Db),n}var PIe,FIe=o((()=>{MIe(),PIe=`Expected a function`,NIe.Cache=Db}));function Ob(e){var t=NIe(e,function(e){return n.size===IIe&&n.clear(),e}),n=t.cache;return t}var IIe,LIe=o((()=>{FIe(),IIe=500})),kb,RIe,zIe,BIe=o((()=>{LIe(),kb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RIe=/\\(\\)?/g,zIe=Ob(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(kb,function(e,n,r,i){t.push(r?i.replace(RIe,`$1`):n||e)}),t})}));function Ab(e){return e==null?``:zNe(e)}var jb=o((()=>{VNe()}));function Mb(e,t){return Vv(e)?e:JFe(e,t)?[e]:zIe(Ab(e))}var Nb=o((()=>{Hv(),ZFe(),BIe(),jb()}));function Pb(e){if(typeof e==`string`||Lv(e))return e;var t=e+``;return t==`0`&&1/e==-VIe?`-0`:t}var VIe,Fb=o((()=>{Rv(),VIe=1/0}));function HIe(e,t){t=Mb(t,e);for(var n=0,r=t.length;e!=null&&n{Nb(),Fb()}));function WIe(e,t,n){var r=e==null?void 0:HIe(e,t);return r===void 0?n:r}var GIe=o((()=>{UIe()}));function KIe(e,t){for(var n=-1,r=t.length,i=e.length;++n{}));function JIe(e){return Vv(e)||Iy(e)||!!(YIe&&e&&e[YIe])}var YIe,XIe=o((()=>{kv(),Ly(),Hv(),YIe=Ov?Ov.isConcatSpreadable:void 0}));function Ib(e,t,n,r,i){var a=-1,o=e.length;for(n||=JIe,i||=[];++a0&&n(s)?t>1?Ib(s,t-1,n,r,i):KIe(i,s):r||(i[i.length]=s)}return i}var Lb=o((()=>{qIe(),XIe()}));function Rb(e){return e!=null&&e.length?Ib(e,1):[]}var zb=o((()=>{Lb()}));function ZIe(e){return NPe(qPe(e,void 0,Rb),e+``)}var QIe=o((()=>{zb(),YPe(),PPe()})),$Ie,eLe=o((()=>{ab(),$Ie=zFe(Object.getPrototypeOf,Object)}));function tLe(e){if(!Fv(e)||Nv(e)!=nLe)return!1;var t=$Ie(e);if(t===null)return!0;var n=aLe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&iLe.call(n)==oLe}var nLe,W,rLe,iLe,aLe,oLe,Bb=o((()=>{Pv(),eLe(),Iv(),nLe=`[object Object]`,W=Function.prototype,rLe=Object.prototype,iLe=W.toString,aLe=rLe.hasOwnProperty,oLe=iLe.call(Object)})),sLe=o((()=>{}));function Vb(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i{}));function lLe(){this.__data__=new wb,this.size=0}var uLe=o((()=>{Tb()}));function dLe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var fLe=o((()=>{}));function pLe(e){return this.__data__.get(e)}var mLe=o((()=>{}));function Hb(e){return this.__data__.has(e)}var hLe=o((()=>{}));function gLe(e,t){var n=this.__data__;if(n instanceof wb){var r=n.__data__;if(!Eb||r.length<_Le-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Db(r)}return n.set(e,t),this.size=n.size,this}var _Le,vLe=o((()=>{Tb(),_Ie(),MIe(),_Le=200}));function Ub(e){var t=this.__data__=new wb(e);this.size=t.size}var yLe=o((()=>{Tb(),uLe(),fLe(),mLe(),hLe(),vLe(),Ub.prototype.clear=lLe,Ub.prototype.delete=dLe,Ub.prototype.get=pLe,Ub.prototype.has=Hb,Ub.prototype.set=gLe}));function bLe(e,t){return e&&KPe(t,cb(t),e)}var xLe=o((()=>{Ay(),lb()}));function SLe(e,t){return e&&KPe(t,ub(t),e)}var CLe=o((()=>{Ay(),db()}));function wLe(e,t){if(t)return e.slice();var n=e.length,r=OLe?OLe(n):new e.constructor(n);return e.copy(r),r}var TLe,ELe,DLe,OLe,kLe=o((()=>{Dv(),TLe=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ELe=TLe&&typeof module==`object`&&module&&!module.nodeType&&module,DLe=ELe&&ELe.exports===TLe?Ev.Buffer:void 0,OLe=DLe?DLe.allocUnsafe:void 0}));function ALe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n{}));function MLe(){return[]}var NLe=o((()=>{})),PLe,FLe,ILe,LLe=o((()=>{jLe(),NLe(),PLe=Object.prototype.propertyIsEnumerable,FLe=Object.getOwnPropertySymbols,ILe=FLe?function(e){return e==null?[]:(e=Object(e),ALe(FLe(e),function(t){return PLe.call(e,t)}))}:MLe}));function RLe(e,t){return KPe(e,ILe(e),t)}var zLe=o((()=>{Ay(),LLe()})),BLe,VLe=o((()=>{qIe(),eLe(),LLe(),NLe(),BLe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)KIe(t,ILe(e)),e=$Ie(e);return t}:MLe}));function HLe(e,t){return KPe(e,BLe(e),t)}var ULe=o((()=>{Ay(),VLe()}));function WLe(e,t,n){var r=t(e);return Vv(e)?r:KIe(r,n(e))}var GLe=o((()=>{qIe(),Hv()}));function KLe(e){return WLe(e,cb,ILe)}var qLe=o((()=>{GLe(),LLe(),lb()}));function JLe(e){return WLe(e,ub,BLe)}var Wb=o((()=>{GLe(),VLe(),db()})),Gb,YLe=o((()=>{dy(),Dv(),Gb=uy(Ev,`DataView`)})),Kb,XLe=o((()=>{dy(),Dv(),Kb=uy(Ev,`Promise`)})),qb,Jb=o((()=>{dy(),Dv(),qb=uy(Ev,`Set`)})),ZLe,Yb,QLe,$Le,eRe,Xb,Zb,tRe,Qb,nRe,$b,ex,tx,nx=o((()=>{YLe(),_Ie(),XLe(),Jb(),_Pe(),Pv(),fPe(),ZLe=`[object Map]`,Yb=`[object Object]`,QLe=`[object Promise]`,$Le=`[object Set]`,eRe=`[object WeakMap]`,Xb=`[object DataView]`,Zb=ny(Gb),tRe=ny(Eb),Qb=ny(Kb),nRe=ny(qb),$b=ny(fy),ex=Nv,(Gb&&ex(new Gb(new ArrayBuffer(1)))!=Xb||Eb&&ex(new Eb)!=ZLe||Kb&&ex(Kb.resolve())!=QLe||qb&&ex(new qb)!=$Le||fy&&ex(new fy)!=eRe)&&(ex=function(e){var t=Nv(e),n=t==Yb?e.constructor:void 0,r=n?ny(n):``;if(r)switch(r){case Zb:return Xb;case tRe:return ZLe;case Qb:return QLe;case nRe:return $Le;case $b:return eRe}return t}),tx=ex}));function rRe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&iRe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var iRe,aRe=o((()=>{iRe=Object.prototype.hasOwnProperty})),rx,oRe=o((()=>{Dv(),rx=Ev.Uint8Array}));function sRe(e){var t=new e.constructor(e.byteLength);return new rx(t).set(new rx(e)),t}var cRe=o((()=>{oRe()}));function lRe(e,t){var n=t?sRe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var uRe=o((()=>{cRe()}));function dRe(e){var t=new e.constructor(e.source,fRe.exec(e));return t.lastIndex=e.lastIndex,t}var fRe,pRe=o((()=>{fRe=/\w*$/}));function mRe(e){return gRe?Object(gRe.call(e)):{}}var hRe,gRe,ix=o((()=>{kv(),hRe=Ov?Ov.prototype:void 0,gRe=hRe?hRe.valueOf:void 0}));function _Re(e,t){var n=t?sRe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vRe=o((()=>{cRe()}));function yRe(e,t,n){var r=e.constructor;switch(t){case wRe:return sRe(e);case bRe:case ax:return new r(+e);case TRe:return lRe(e,n);case ERe:case lx:case DRe:case ux:case ORe:case dx:case kRe:case ARe:case jRe:return _Re(e,n);case ox:return new r;case sx:case SRe:return new r(e);case cx:return dRe(e);case xRe:return new r;case CRe:return mRe(e)}}var bRe,ax,ox,sx,cx,xRe,SRe,CRe,wRe,TRe,ERe,lx,DRe,ux,ORe,dx,kRe,ARe,jRe,MRe=o((()=>{cRe(),uRe(),pRe(),ix(),vRe(),bRe=`[object Boolean]`,ax=`[object Date]`,ox=`[object Map]`,sx=`[object Number]`,cx=`[object RegExp]`,xRe=`[object Set]`,SRe=`[object String]`,CRe=`[object Symbol]`,wRe=`[object ArrayBuffer]`,TRe=`[object DataView]`,ERe=`[object Float32Array]`,lx=`[object Float64Array]`,DRe=`[object Int8Array]`,ux=`[object Int16Array]`,ORe=`[object Int32Array]`,dx=`[object Uint8Array]`,kRe=`[object Uint8ClampedArray]`,ARe=`[object Uint16Array]`,jRe=`[object Uint32Array]`}));function NRe(e){return typeof e.constructor==`function`&&!aFe(e)?yPe($Ie(e)):{}}var PRe=o((()=>{bPe(),eLe(),Ny()}));function FRe(e){return Fv(e)&&tx(e)==IRe}var IRe,LRe=o((()=>{nx(),Iv(),IRe=`[object Map]`})),RRe,zRe,BRe=o((()=>{LRe(),$y(),PFe(),RRe=nb&&nb.isMap,zRe=RRe?Qy(RRe):FRe}));function VRe(e){return Fv(e)&&tx(e)==HRe}var HRe,URe=o((()=>{nx(),Iv(),HRe=`[object Set]`})),WRe,GRe,KRe=o((()=>{URe(),$y(),PFe(),WRe=nb&&nb.isSet,GRe=WRe?Qy(WRe):VRe}));function fx(e,t,n,r,i,a){var o,s=t&qRe,l=t&px,u=t&mx;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Kv(e))return e;var d=Vv(e);if(d){if(o=rRe(e),!s)return CPe(e,o)}else{var f=tx(e),p=f==$Re||f==eze;if(By(e))return wLe(e,s);if(f==rze||f==JRe||p&&!i){if(o=l||p?{}:NRe(e),!s)return l?HLe(e,SLe(o,e)):RLe(e,bLe(o,e))}else{if(!_x[f])return i?e:{};o=yRe(e,f,s)}}a||=new Ub;var m=a.get(e);if(m)return m;a.set(e,o),GRe(e)?e.forEach(function(r){o.add(fx(r,t,n,r,e,a))}):zRe(e)&&e.forEach(function(r,i){o.set(i,fx(r,t,n,i,e,a))});var h=d?void 0:(u?l?JLe:KLe:l?ub:cb)(e);return vy(h||e,function(r,i){h&&(i=r,r=e[i]),UPe(o,i,fx(r,t,n,i,e,a))}),o}var qRe,px,mx,JRe,YRe,XRe,ZRe,QRe,$Re,eze,tze,nze,rze,ize,aze,hx,oze,sze,cze,lze,uze,dze,fze,pze,mze,hze,gze,gx,_ze,_x,vze=o((()=>{yLe(),yy(),GPe(),xLe(),CLe(),kLe(),wPe(),zLe(),ULe(),qLe(),Wb(),nx(),aRe(),MRe(),PRe(),Hv(),Vy(),BRe(),qv(),KRe(),lb(),db(),qRe=1,px=2,mx=4,JRe=`[object Arguments]`,YRe=`[object Array]`,XRe=`[object Boolean]`,ZRe=`[object Date]`,QRe=`[object Error]`,$Re=`[object Function]`,eze=`[object GeneratorFunction]`,tze=`[object Map]`,nze=`[object Number]`,rze=`[object Object]`,ize=`[object RegExp]`,aze=`[object Set]`,hx=`[object String]`,oze=`[object Symbol]`,sze=`[object WeakMap]`,cze=`[object ArrayBuffer]`,lze=`[object DataView]`,uze=`[object Float32Array]`,dze=`[object Float64Array]`,fze=`[object Int8Array]`,pze=`[object Int16Array]`,mze=`[object Int32Array]`,hze=`[object Uint8Array]`,gze=`[object Uint8ClampedArray]`,gx=`[object Uint16Array]`,_ze=`[object Uint32Array]`,_x={},_x[JRe]=_x[YRe]=_x[cze]=_x[lze]=_x[XRe]=_x[ZRe]=_x[uze]=_x[dze]=_x[fze]=_x[pze]=_x[mze]=_x[tze]=_x[nze]=_x[rze]=_x[ize]=_x[aze]=_x[hx]=_x[oze]=_x[hze]=_x[gze]=_x[gx]=_x[_ze]=!0,_x[QRe]=_x[$Re]=_x[sze]=!1}));function yze(e){return fx(e,bze|xze)}var bze,xze,Sze=o((()=>{vze(),bze=1,xze=4}));function Cze(e){return this.__data__.set(e,wze),this}var wze,Tze=o((()=>{wze=`__lodash_hash_undefined__`}));function Eze(e){return this.__data__.has(e)}var vx=o((()=>{}));function yx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Db;++t{MIe(),Tze(),vx(),yx.prototype.add=yx.prototype.push=Cze,yx.prototype.has=Eze}));function Oze(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function Aze(e,t){return e.has(t)}var bx=o((()=>{}));function jze(e,t,n,r,i,a){var o=n&Mze,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&Nze?new yx:void 0;for(a.set(e,t),a.set(t,e);++f{Dze(),kze(),bx(),Mze=1,Nze=2}));function Sx(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var Pze=o((()=>{}));function Cx(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Fze=o((()=>{}));function Ize(e,t,n,r,i,a,o){switch(n){case Uze:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kx:return!(e.byteLength!=t.byteLength||!a(new rx(e),new rx(t)));case Tx:case Ex:case Dx:return Oy(+e,+t);case Rze:return e.name==t.name&&e.message==t.message;case Bze:case Hze:return e==t+``;case zze:var s=Sx;case Vze:var l=r&Lze;if(s||=Cx,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=wx,o.set(e,t);var d=jze(s(e),s(t),r,i,a,o);return o.delete(e),d;case Ox:if(Ax)return Ax.call(e)==Ax.call(t)}return!1}var Lze,wx,Tx,Ex,Rze,zze,Dx,Bze,Vze,Hze,Ox,kx,Uze,Wze,Ax,Gze=o((()=>{kv(),oRe(),ky(),xx(),Pze(),Fze(),Lze=1,wx=2,Tx=`[object Boolean]`,Ex=`[object Date]`,Rze=`[object Error]`,zze=`[object Map]`,Dx=`[object Number]`,Bze=`[object RegExp]`,Vze=`[object Set]`,Hze=`[object String]`,Ox=`[object Symbol]`,kx=`[object ArrayBuffer]`,Uze=`[object DataView]`,Wze=Ov?Ov.prototype:void 0,Ax=Wze?Wze.valueOf:void 0}));function Kze(e,t,n,r,i,a){var o=n&qze,s=KLe(e),l=s.length;if(l!=KLe(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:jx.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u{qLe(),qze=1,jx=Object.prototype.hasOwnProperty}));function Yze(e,t,n,r,i,a){var o=Vv(e),s=Vv(t),l=o?Zze:tx(e),u=s?Zze:tx(t);l=l==Xze?Nx:l,u=u==Xze?Nx:u;var d=l==Nx,f=u==Nx,p=l==u;if(p&&By(e)){if(!By(t))return!1;o=!0,d=!1}if(p&&!d)return a||=new Ub,o||FFe(e)?jze(e,t,n,r,i,a):Ize(e,t,l,n,r,i,a);if(!(n&Mx)){var m=d&&Qze.call(e,`__wrapped__`),h=f&&Qze.call(t,`__wrapped__`);if(m||h){var g=m?e.value():e,_=h?t.value():t;return a||=new Ub,i(g,_,n,r,a)}}return p?(a||=new Ub,Kze(e,t,n,r,i,a)):!1}var Mx,Xze,Zze,Nx,Qze,$ze=o((()=>{yLe(),xx(),Gze(),Jze(),nx(),Hv(),Vy(),ib(),Mx=1,Xze=`[object Arguments]`,Zze=`[object Array]`,Nx=`[object Object]`,Qze=Object.prototype.hasOwnProperty}));function eBe(e,t,n,r,i){return e===t?!0:e==null||t==null||!Fv(e)&&!Fv(t)?e!==e&&t!==t:Yze(e,t,n,r,eBe,i)}var tBe=o((()=>{$ze(),Iv()}));function nBe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i{yLe(),tBe(),rBe=1,iBe=2}));function oBe(e){return e===e&&!Kv(e)}var sBe=o((()=>{qv()}));function cBe(e){for(var t=cb(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,oBe(i)]}return t}var lBe=o((()=>{sBe(),lb()}));function uBe(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var dBe=o((()=>{}));function fBe(e){var t=cBe(e);return t.length==1&&t[0][2]?uBe(t[0][0],t[0][1]):function(n){return n===e||nBe(n,e,t)}}var pBe=o((()=>{aBe(),lBe(),dBe()}));function mBe(e,t){return e!=null&&t in Object(e)}var hBe=o((()=>{}));function gBe(e,t,n){t=Mb(t,e);for(var r=-1,i=t.length,a=!1;++r{Nb(),Ly(),Hv(),Dy(),eFe(),Fb()}));function vBe(e,t){return e!=null&&gBe(e,t,mBe)}var yBe=o((()=>{hBe(),_Be()}));function bBe(e,t){return JFe(e)&&oBe(t)?uBe(Pb(e),t):function(n){var r=WIe(n,e);return r===void 0&&r===t?vBe(n,e):eBe(t,r,xBe|Px)}}var xBe,Px,SBe=o((()=>{tBe(),GIe(),yBe(),ZFe(),sBe(),dBe(),Fb(),xBe=1,Px=2}));function CBe(e){return function(t){return t?.[e]}}var wBe=o((()=>{}));function TBe(e){return function(t){return HIe(t,e)}}var Fx=o((()=>{UIe()}));function EBe(e){return JFe(e)?CBe(Pb(e)):TBe(e)}var Ix=o((()=>{wBe(),Fx(),ZFe(),Fb()}));function Lx(e){return typeof e==`function`?e:e==null?$v:typeof e==`object`?Vv(e)?bBe(e[0],e[1]):fBe(e):EBe(e)}var Rx=o((()=>{pBe(),SBe(),ey(),Hv(),Ix()}));function DBe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var OBe=o((()=>{})),kBe,zx=o((()=>{OBe(),kBe=DBe()}));function Bx(e,t){return e&&kBe(e,t,cb)}var ABe=o((()=>{zx(),lb()}));function jBe(e,t){return function(n,r){if(n==null)return n;if(!jy(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a{My()})),NBe,PBe=o((()=>{ABe(),MBe(),NBe=jBe(Bx)})),FBe,IBe=o((()=>{Dv(),FBe=function(){return Ev.Date.now()}})),LBe,RBe,zBe,BBe=o((()=>{ZPe(),ky(),nFe(),db(),LBe=Object.prototype,RBe=LBe.hasOwnProperty,zBe=XPe(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&tFe(t[0],t[1],i)&&(r=1);++n{HPe(),ky()}));function Hx(e){return Fv(e)&&jy(e)}var HBe=o((()=>{My(),Iv()}));function UBe(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var Ux=o((()=>{}));function WBe(e){return KPe(e,ub(e))}var GBe=o((()=>{Ay(),db()}));function KBe(e,t,n,r,i,a,o){var s=UBe(e,n),l=UBe(t,n),u=o.get(l);if(u){Vx(e,n,u);return}var d=a?a(s,l,n+``,e,t,o):void 0,f=d===void 0;if(f){var p=Vv(l),m=!p&&By(l),h=!p&&!m&&FFe(l);d=l,p||m||h?Vv(s)?d=s:Hx(s)?d=CPe(s):m?(f=!1,d=wLe(l,!0)):h?(f=!1,d=_Re(l,!0)):d=[]:tLe(l)||Iy(l)?(d=s,Iy(s)?d=WBe(s):(!Kv(s)||tPe(s))&&(d=NRe(l))):f=!1}f&&(o.set(l,d),i(d,l,r,a,o),o.delete(l)),Vx(e,n,d)}var qBe=o((()=>{VBe(),kLe(),vRe(),wPe(),PRe(),Ly(),Hv(),HBe(),Vy(),oPe(),qv(),Bb(),ib(),Ux(),GBe()}));function JBe(e,t,n,r,i){e!==t&&kBe(t,function(a,o){if(i||=new Ub,Kv(a))KBe(e,t,o,n,JBe,r,i);else{var s=r?r(UBe(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Vx(e,o,s)}},ub)}var YBe=o((()=>{yLe(),VBe(),zx(),qBe(),qv(),db(),Ux()}));function XBe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{}));function Wx(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var QBe=o((()=>{}));function Gx(e){return typeof e==`function`?e:$v}var Kx=o((()=>{ey()}));function qx(e,t){return(Vv(e)?vy:NBe)(e,Gx(t))}var $Be=o((()=>{yy(),PBe(),Kx(),Hv()})),eVe=o((()=>{$Be()}));function tVe(e,t){var n=[];return NBe(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var nVe=o((()=>{PBe()}));function Jx(e,t){return(Vv(e)?ALe:tVe)(e,Lx(t,3))}var rVe=o((()=>{jLe(),nVe(),Rx(),Hv()}));function iVe(e){return function(t,n,r){var i=Object(t);if(!jy(t)){var a=Lx(n,3);t=cb(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var aVe=o((()=>{Rx(),My(),lb()}));function oVe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:$Ne(n);return i<0&&(i=Yx(r+i,0)),by(e,Lx(t,3),i)}var Yx,Xx=o((()=>{FPe(),Rx(),ePe(),Yx=Math.max})),sVe,cVe=o((()=>{aVe(),Xx(),sVe=iVe(oVe)}));function lVe(e,t){var n=-1,r=jy(e)?Array(e.length):[];return NBe(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var Zx=o((()=>{PBe(),My()}));function Qx(e,t){return(Vv(e)?zv:lVe)(e,Lx(t,3))}var $x=o((()=>{Bv(),Rx(),Zx(),Hv()}));function uVe(e,t){return e==null?e:kBe(e,Gx(t),ub)}var dVe=o((()=>{zx(),Kx(),db()}));function eS(e,t){return e&&Bx(e,Gx(t))}var fVe=o((()=>{ABe(),Kx()}));function pVe(e,t){return e>t}var mVe=o((()=>{}));function tS(e,t){return e!=null&&nS.call(e,t)}var nS,hVe=o((()=>{nS=Object.prototype.hasOwnProperty}));function gVe(e,t){return e!=null&&gBe(e,t,tS)}var _Ve=o((()=>{hVe(),_Be()})),vVe=o((()=>{Pv(),Hv(),Iv()}));function yVe(e,t){return zv(t,function(t){return e[t]})}var rS=o((()=>{Bv()}));function iS(e){return e==null?[]:yVe(e,cb(e))}var bVe=o((()=>{rS(),lb()}));function xVe(e){if(e==null)return!0;if(jy(e)&&(Vv(e)||typeof e==`string`||typeof e.splice==`function`||By(e)||FFe(e)||Iy(e)))return!e.length;var t=tx(e);if(t==SVe||t==CVe)return!e.size;if(aFe(e))return!sb(e).length;for(var n in e)if(wVe.call(e,n))return!1;return!0}var SVe,CVe,wVe,TVe=o((()=>{HFe(),nx(),Ly(),Hv(),My(),Vy(),Ny(),ib(),SVe=`[object Map]`,CVe=`[object Set]`,wVe=Object.prototype.hasOwnProperty}));function aS(e){return e===void 0}var EVe=o((()=>{}));function DVe(e,t){return e{}));function kVe(e,t){var n={};return t=Lx(t,3),Bx(e,function(e,r,i){VPe(n,r,t(e,r,i))}),n}var AVe=o((()=>{HPe(),ABe(),Rx()}));function jVe(e,t,n){for(var r=-1,i=e.length;++r{Rv()}));function sS(e){return e&&e.length?jVe(e,$v,pVe):void 0}var MVe=o((()=>{oS(),mVe(),ey()})),cS,lS=o((()=>{YBe(),iFe(),cS=rFe(function(e,t,n){JBe(e,t,n)})}));function NVe(e){return e&&e.length?jVe(e,$v,DVe):void 0}var PVe=o((()=>{oS(),OVe(),ey()}));function uS(e,t){return e&&e.length?jVe(e,Lx(t,2),DVe):void 0}var dS=o((()=>{oS(),Rx(),OVe()}));function FVe(e,t,n,r){if(!Kv(e))return e;t=Mb(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i{GPe(),Nb(),Dy(),qv(),Fb()}));function fS(e,t,n){for(var r=-1,i=t.length,a={};++r{UIe(),IVe(),Nb()}));function LVe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var RVe=o((()=>{}));function zVe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Lv(e),o=t!==void 0,s=t===null,l=t===t,u=Lv(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e{Rv()}));function VVe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r=s?l:l*(n[r]==`desc`?-1:1)}return e.index-t.index}var HVe=o((()=>{BVe()}));function UVe(e,t,n){t=t.length?zv(t,function(e){return Vv(e)?function(t){return HIe(t,e.length===1?e[0]:e)}:e}):[$v];var r=-1;return t=zv(t,Qy(Lx)),LVe(lVe(e,function(e,n,i){return{criteria:zv(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return VVe(e,t,n)})}var WVe=o((()=>{Bv(),UIe(),Rx(),Zx(),RVe(),$y(),HVe(),ey(),Hv()})),GVe=o((()=>{wBe()})),KVe,qVe,JVe,YVe,XVe,ZVe,QVe,$Ve,eHe,tHe,nHe,rHe,iHe,aHe,oHe,sHe,cHe=o((()=>{KVe=`\\ud800-\\udfff`,qVe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,JVe=`\\ufe0e\\ufe0f`,YVe=`[`+KVe+`]`,XVe=`[`+qVe+`]`,ZVe=`\\ud83c[\\udffb-\\udfff]`,QVe=`(?:`+XVe+`|`+ZVe+`)`,$Ve=`[^`+KVe+`]`,eHe=`(?:\\ud83c[\\udde6-\\uddff]){2}`,tHe=`[\\ud800-\\udbff][\\udc00-\\udfff]`,nHe=`\\u200d`,rHe=QVe+`?`,iHe=`[`+JVe+`]?`,aHe=`(?:`+nHe+`(?:`+[$Ve,eHe,tHe].join(`|`)+`)`+iHe+rHe+`)*`,oHe=iHe+rHe+aHe,sHe=`(?:`+[$Ve+XVe+`?`,XVe,eHe,tHe,YVe].join(`|`)+`)`,RegExp(ZVe+`(?=`+ZVe+`)|`+sHe+oHe,`g`)})),lHe=o((()=>{GVe(),sLe(),cHe()}));function uHe(e,t){return fS(e,t,function(t,n){return vBe(e,n)})}var dHe=o((()=>{pS(),yBe()})),mS,fHe=o((()=>{dHe(),QIe(),mS=ZIe(function(e,t){return e==null?{}:uHe(e,t)})}));function hS(e,t,n,r){for(var i=-1,a=mHe(pHe((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var pHe,mHe,hHe=o((()=>{pHe=Math.ceil,mHe=Math.max}));function gS(e){return function(t,n,r){return r&&typeof r!=`number`&&tFe(t,n,r)&&(n=r=void 0),t=Xv(t),n===void 0?(n=t,t=0):n=Xv(n),r=r===void 0?t{hHe(),nFe(),Qv()})),_S,_He=o((()=>{gHe(),_S=gS()}));function vHe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}var yHe=o((()=>{}));function vS(e,t,n){var r=Vv(e)?Vb:vHe,i=arguments.length<3;return r(e,Lx(t,4),n,i,NBe)}var bHe=o((()=>{cLe(),PBe(),Rx(),yHe(),Hv()})),xHe=o((()=>{HFe(),nx(),My(),vVe(),lHe()})),yS,SHe=o((()=>{Lb(),WVe(),ZPe(),nFe(),yS=XPe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&tFe(e,t[0],t[1])?t=[]:n>2&&tFe(t[0],t[1],t[2])&&(t=[t[0]]),UVe(e,Ib(t,1),[])})})),CHe,wHe=o((()=>{Jb(),my(),Fze(),CHe=qb&&1/Cx(new qb([,-0]))[1]==1/0?function(e){return new qb(e)}:SPe}));function THe(e,t,n){var r=-1,i=Sy,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=XBe;else if(a>=EHe){var u=t?null:CHe(e);if(u)return Cx(u);o=!1,i=Aze,l=new yx}else l=t?[]:s;outer:for(;++r{Dze(),Cy(),ZBe(),bx(),wHe(),Fze(),EHe=200})),DHe,OHe=o((()=>{Lb(),ZPe(),bS(),HBe(),DHe=XPe(function(e){return THe(Ib(e,1,Hx,!0))})}));function kHe(e){var t=++AHe;return Ab(e)+t}var AHe,jHe=o((()=>{jb(),AHe=0}));function MHe(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r{}));function PHe(e,t){return MHe(e||[],t||[],UPe)}var FHe=o((()=>{GPe(),NHe()})),xS=o((()=>{Rv(),VNe(),ePe(),ey(),_Pe(),bPe(),qv(),Dv(),py(),my(),Hv(),Iv(),wPe(),hy(),PPe(),yy(),Cy(),Dy(),GPe(),Ay(),iFe(),My(),Ny(),lb(),db(),GIe(),QIe(),ZPe(),Pv(),Bb(),HPe(),Fb(),jb(),sLe(),cLe(),ZNe(),nFe(),vze(),Sze(),qIe(),Lb(),Bv(),Rx(),kPe(),PBe(),xLe(),IBe(),BBe(),YBe(),Dze(),ZBe(),$y(),bx(),HBe(),QBe(),eVe(),OBe(),MBe(),Kx(),nx(),Pze(),ky(),rVe(),cVe(),Xx(),ABe(),aVe(),FPe(),$x(),zb(),$Be(),dVe(),fVe(),jLe(),oPe(),mVe(),_Ve(),yBe(),Qv(),BPe(),vVe(),bVe(),Nb(),UIe(),Ly(),PFe(),Vy(),TVe(),tBe(),eFe(),BRe(),aBe(),lBe(),sy(),cPe(),mFe(),KRe(),ib(),EVe(),xy(),OVe(),AVe(),pBe(),SBe(),MVe(),oS(),FIe(),lS(),PVe(),dS(),kv(),Fze(),Wb(),pS(),WVe(),kze(),lHe(),fHe(),Ix(),BVe(),_He(),gHe(),bHe(),yHe(),nVe(),IVe(),xHe(),SHe(),NLe(),rS(),sFe(),BIe(),GBe(),eLe(),Gv(),WNe(),OHe(),bS(),jHe(),wBe(),FHe(),NHe()}));function IHe(e,t){e[t]?e[t]++:e[t]=1}function LHe(e,t){--e[t]||delete e[t]}function RHe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+CS+a+CS+(aS(r)?VHe:r)}function zHe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function BHe(e,t){return RHe(e,t.v,t.w,t.name)}var VHe,SS,CS,wS,HHe=o((()=>{xS(),VHe=`\0`,SS=`\0`,CS=``,wS=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=gy(void 0),this._defaultEdgeLabelFn=gy(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[SS]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return tPe(e)||(e=gy(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return cb(this._nodes)}sources(){var e=this;return Jx(this.nodes(),function(t){return xVe(e._in[t])})}sinks(){var e=this;return Jx(this.nodes(),function(t){return xVe(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return qx(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=SS,this._children[e]={},this._children[SS][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 t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],qx(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),qx(cb(this._in[e]),t),delete this._in[e],delete this._preds[e],qx(cb(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(aS(t))t=SS;else{t+=``;for(var n=t;!aS(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==SS)return t}}children(e){if(aS(e)&&(e=SS),this._isCompound){var t=this._children[e];if(t)return cb(t)}else if(e===SS)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return cb(t)}successors(e){var t=this._sucs[e];if(t)return cb(t)}neighbors(e){var t=this.predecessors(e);if(t)return DHe(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;qx(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),qx(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&qx(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return tPe(e)||(e=gy(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return iS(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return vS(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,aS(n)||(n=``+n);var o=RHe(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!aS(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=zHe(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,IHe(this._preds[t],e),IHe(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?BHe(this._isDirected,arguments[0]):RHe(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?BHe(this._isDirected,arguments[0]):RHe(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?BHe(this._isDirected,arguments[0]):RHe(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],LHe(this._preds[t],e),LHe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=iS(n);return t?Jx(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=iS(n);return t?Jx(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},wS.prototype._nodeCount=0,wS.prototype._edgeCount=0})),TS=o((()=>{HHe()})),ES=l({captureNodeSizes:()=>OS,shouldCaptureSizes:()=>DS});function UHe(){if(typeof globalThis<`u`)return globalThis}function DS(){return!!UHe()?.mermaidCaptureSizes}function WHe(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}function GHe(e,t){let n=UHe();if(!n)return;let r=t.node(),i=((r&&`ownerSVGElement`in r?r.ownerSVGElement:null)??r)?.id??`(unknown)`;n.mermaidCapturedSizes??=[];let a={svgId:i,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function OS(e,t){let n=[];for(let e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});n.length!==0&&GHe({metadata:{captureVersion:kS,capturedAt:new Date().toISOString(),capturedFrom:WHe()},nodes:n},e)}var kS,KHe=o((()=>{tr(),kS=1,N(UHe,`getCaptureGlobal`),N(DS,`shouldCaptureSizes`),N(WHe,`capturedFromLocation`),N(GHe,`emitCapturedSizes`),N(OS,`captureNodeSizes`)}));function AS(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}async function jS(e,t,n){if(t.label){let{shapeSvg:r,bbox:i}=await n_(e,n===void 0?t:{...t,width:n});t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}async function MS(e,t,n){let r=await L_(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}function qHe(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}async function JHe(e,t,n={}){let r=new wS({multigraph:!0,compound:!0}),i=[...t.edges],a=As(),o=AS(e),{edgeLabels:s,nodes:l}=o,u=new Map,d=new Map(t.nodes.map(e=>[e.id,e])),f=t.direction,p=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(p){let t=n.unwrapGroupLabels&&e.labelType!==`markdown`;await jS(l,e,t?1/0:void 0)}r.setNode(e.id,{...e})}else{if(p){let t=await MS(l,e,{config:a,dir:qHe(e,d,f)});u.set(e.id,t)}r.setNode(e.id,{...e})}}));for(let e of i)p&&cNe(e)&&await ov(s,e),r.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>(KHe(),ES));n(e,t)}return{graph:r,groups:o,nodeElements:u}}function NS({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??XHe;return N(async function(t,s,l,u){let d=s.select(`g`);(l?.insertMarkers??gNe)(d,t.markers,t.type,t.diagramId),YHe();let f={element:d,helpers:l,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await ZHe(t,h,a),await i?.(t,h,m)},`render`)}function YHe(){HMe(),sNe(),J_(),rUe()}async function XHe(e,{element:t},n){return await JHe(t,e,n)}async function ZHe(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await QHe(i,r,t,n);let a=$He(e.nodes);for(let r of e.edges)FS(r,n)||await IS(i,r,a,e,n,t)}async function QHe(e,t,n,r){t.clusterNode?B_(t):PS(t,n,r)?await q_(e.clusters,t):B_(t)}function PS(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}function $He(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function FS(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function IS(e,t,n,r,i,a){let o=dv(e.edgePaths,{...t},i.clusterDb??new Map,r.type,LS(t.start,t,n,a,i),LS(t.end,t,n,a,i),r.diagramId,eUe(t,i),r.layoutAlgorithm);cNe(t)&&(rv.has(t.id)||await ov(e.edgeLabels,t),tUe(t,o))}function LS(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function eUe(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}function tUe(e,t){let n=t?.updatedPath??t?.originalPath,r=ns(),{subGraphTitleTotalMargin:i}=R_({flowchart:r.flowchart??{}});if(e.label){let n=rv.get(e.id),{x:r,y:a}=lNe(e,t);n.attr(`transform`,`translate(${r}, ${a+i/2})`)}for(let[t,r]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(r){let{x:r,y:i}=nUe(e,t,n);iv.get(e.id)[t].attr(`transform`,`translate(${r}, ${i})`)}}function nUe(e,t,n){let r=e.terminalLabelCenters?.[t];if(r)return{...r};if(!n)return{x:e.x,y:e.y};let i=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return Hm.calcTerminalLabelPosition(i?10:0,GS[t],n)}var RS,zS,BS,rUe,VS,HS,US,iUe,aUe,WS,oUe,sUe,cUe,lUe,uUe,dUe,fUe,GS,pUe=o((()=>{Y_(),fv(),V_(),I_(),Gm(),Ls(),ar(),tr(),TS(),N(AS,`createLayoutElementGroups`),N(jS,`measureGroupLabel`),N(MS,`insertMeasuredNode`),N(qHe,`resolveNodeDir`),N(JHe,`createGraphWithElements`),RS=new Map,zS=new Map,BS=new Map,rUe=N(()=>{zS.clear(),BS.clear(),RS.clear()},`clear`),VS=N((e,t)=>{let n=zS.get(t)||[];return P.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),HS=N((e,t)=>{let n=zS.get(t)||[];return P.info(`Descendants of `,t,` is `,n),P.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||VS(e.v,t)||VS(e.w,t)||n.includes(e.w):(P.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),US=N((e,t,n,r)=>{P.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),P.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)US(i,t,n,r);else{let a=t.node(i);P.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(P.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(P.debug(`Setting parent`,i,e),n.setParent(i,e)):(P.info(`In copy `,e,`root`,r,`data`,t.node(e),r),P.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);P.debug(`Copying Edges`,o),o.forEach(i=>{P.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);P.info(`Edge data`,a,r);try{HS(i,r)?(P.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),P.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):P.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){P.error(e)}})}P.debug(`Removing node`,i),t.removeNode(i)})},`copy`),iUe=N((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)BS.set(i,e),r=[...r,...iUe(i,t)];return r},`extractDescendants`),aUe=N((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),WS=N((e,t,n)=>{let r=t.children(e);if(P.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=WS(e,t,n),a=aUe(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),oUe=N(e=>!RS.has(e)||!RS.get(e).externalConnections?e:RS.has(e)?RS.get(e).id:e,`getAnchorId`),sUe=N((e,t)=>{if(!e||t>10){P.debug(`Opting out, no graph `);return}P.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(P.debug(`Cluster identified`,t,` Replacement id in edges: `,WS(t,e,t)),zS.set(t,iUe(t,e)),RS.set(t,{id:WS(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(P.debug(`Cluster identified`,t,zS),r.forEach(e=>{VS(e.v,t)^VS(e.w,t)&&(P.debug(`Edge: `,e,` leaves cluster `,t),P.debug(`Descendants of XXX `,t,`: `,zS.get(t)),RS.get(t).externalConnections=!0)})):P.debug(`Not a cluster `,t,zS)});for(let t of RS.keys()){let n=RS.get(t).id,r=e.parent(n);r!==t&&RS.has(r)&&!RS.get(r).externalConnections&&(RS.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&RS.get(t)?.externalConnections&&i&&dUe(e,n,t)){let r=fUe(e,t,e.parent(n));r&&(RS.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);P.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),P.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(P.debug(`Fix XXX`,RS,`ids:`,t.v,t.w,`Translating: `,RS.get(t.v),` --- `,RS.get(t.w)),RS.get(t.v)||RS.get(t.w)){if(P.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=oUe(t.v),i=oUe(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);RS.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);RS.get(r).externalConnections=!0,n.toCluster=t.w}P.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),cUe(e,0),P.trace(RS)},`adjustClustersAndEdges`),cUe=N((e,t)=>{if(t>10){P.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r){P.debug(`Done, no node has children`,e.nodes());return}P.debug(`Nodes = `,n,t);for(let r of n)if(P.debug(`Extracting node`,r,RS,RS.has(r)&&!RS.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!RS.has(r))P.debug(`Not a cluster`,r,t);else if(!RS.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){P.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;RS.get(r)?.clusterData?.dir&&(n=RS.get(r).clusterData.dir,P.debug(`Fixing dir`,RS.get(r).clusterData.dir,n));let i=new wS({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});US(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:RS.get(r).clusterData,label:RS.get(r).label,graph:i})}else P.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!RS.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),P.debug(RS);n=e.nodes(),P.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);P.debug(` Now next level`,r,n),n?.clusterNode&&cUe(n.graph,t+1)}},`extractor`),lUe=N((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=lUe(e,e.children(t));n=[...n,...r]}),n},`sorter`),uUe=N(e=>lUe(e,e.children()),`sortNodesByHierarchy`),dUe=N((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=RS.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),fUe=N((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||VS(i,n))continue;let r=WS(i,e,t);if(r&&!dUe(e,r,t))return r}return null},`findSafeAnchorNode`),N(NS,`createCommonLayoutRenderer`),N(YHe,`clearLayoutRenderState`),N(XHe,`defaultMeasureLayout`),N(ZHe,`paintLayoutData`),N(QHe,`paintLayoutNode`),N(PS,`shouldPaintAsCluster`),N($He,`buildNodeLookup`),N(FS,`shouldSkipPaintEdge`),N(IS,`paintLayoutEdge`),N(LS,`getRenderedNode`),N(eUe,`shouldSkipIntersect`),N(tUe,`positionRenderedEdgeLabel`),GS={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`},N(nUe,`terminalLabelTranslate`)})),mUe=s(((e,t)=>{(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.ELK=n()}})(function(){return(function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var l=typeof require==`function`&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=Error(`Cannot find module '`+o+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=n[o]={exports:{}};t[o][0].call(d.exports,function(e){var n=t[o][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[o].exports}for(var a=typeof require==`function`&&require,o=0;o0&&arguments[0]!==void 0?arguments[0]:{},r=n.defaultLayoutOptions,o=r===void 0?{}:r,s=n.algorithms,l=s===void 0?[`layered`,`stress`,`mrtree`,`radial`,`force`,`disco`,`sporeOverlap`,`sporeCompaction`,`rectpacking`]:s,u=n.workerFactory,d=n.workerUrl;if(i(this,e),this.defaultLayoutOptions=o,this.initialized=!1,d===void 0&&u===void 0)throw Error(`Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.`);var f=u;d!==void 0&&u===void 0&&(f=function(e){return new Worker(e)});var p=f(d);if(typeof p.postMessage!=`function`)throw TypeError(`Created worker does not provide the required 'postMessage' function.`);this.worker=new a(p),this.worker.postMessage({cmd:`register`,algorithms:l}).then(function(e){return t.initialized=!0}).catch(console.err)}return r(e,[{key:`layout`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.layoutOptions,r=n===void 0?this.defaultLayoutOptions:n,i=t.logging,a=i!==void 0&&i,o=t.measureExecutionTime,s=o!==void 0&&o;return e?this.worker.postMessage({cmd:`layout`,graph:e,layoutOptions:r,options:{logging:a,measureExecutionTime:s}}):Promise.reject(Error(`Missing mandatory parameter 'graph'.`))}},{key:`knownLayoutAlgorithms`,value:function(){return this.worker.postMessage({cmd:`algorithms`})}},{key:`knownLayoutOptions`,value:function(){return this.worker.postMessage({cmd:`options`})}},{key:`knownLayoutCategories`,value:function(){return this.worker.postMessage({cmd:`categories`})}},{key:`terminateWorker`,value:function(){this.worker&&this.worker.terminate()}}]),e}();var a=function(){function e(t){var n=this;if(i(this,e),t===void 0)throw Error(`Missing mandatory parameter 'worker'.`);this.resolvers={},this.worker=t,this.worker.onmessage=function(e){setTimeout(function(){n.receive(n,e)},0)}}return r(e,[{key:`postMessage`,value:function(e){var t=this.id||0;this.id=t+1,e.id=t;var n=this;return new Promise(function(r,i){n.resolvers[t]=function(e,t){e?(n.convertGwtStyleError(e),i(e)):r(t)},n.worker.postMessage(e)})}},{key:`receive`,value:function(e,t){var n=t.data,r=e.resolvers[n.id];r&&(delete e.resolvers[n.id],n.error?r(n.error):r(null,n.data))}},{key:`terminate`,value:function(){this.worker&&this.worker.terminate()}},{key:`convertGwtStyleError`,value:function(e){if(e){var t=e.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(e.cause=t.cause.backingJsObject,this.convertGwtStyleError(e.cause)),delete e.__java$exception)}}}]),e}()},{}],2:[function(e,t,n){(function(e){(function(){var r;typeof window<`u`?r=window:e===void 0?typeof self<`u`&&(r=self):r=e;var i;function a(){}function o(){}function s(){}function l(){}function u(){}function d(){}function f(){}function p(){}function m(){}function h(){}function g(){}function _(){}function v(){}function y(){}function b(){}function x(){}function S(){}function C(){}function w(){}function T(){}function E(){}function D(){}function O(){}function k(){}function A(){}function j(){}function M(){}function ee(){}function te(){}function ne(){}function re(){}function ie(){}function ae(){}function oe(){}function se(){}function ce(){}function le(){}function ue(){}function de(){}function fe(){}function pe(){}function me(){}function he(){}function ge(){}function _e(){}function ve(){}function ye(){}function be(){}function xe(){}function Se(){}function Ce(){}function we(){}function Te(){}function Ee(){}function De(){}function Oe(){}function ke(){}function Ae(){}function je(){}function Me(){}function Ne(){}function Pe(){}function Fe(){}function Ie(){}function Le(){}function Re(){}function ze(){}function Be(){}function Ve(){}function He(){}function Ue(){}function We(){}function Ge(){}function Ke(){}function qe(){}function Je(){}function Ye(){}function Xe(){}function Ze(){}function Qe(){}function $e(){}function et(){}function tt(){}function nt(){}function rt(){}function it(){}function at(){}function ot(){}function st(){}function ct(){}function lt(){}function ut(){}function dt(){}function ft(){}function pt(){}function mt(){}function ht(){}function gt(){}function _t(){}function vt(){}function yt(){}function bt(){}function xt(){}function St(){}function Ct(){}function wt(){}function Tt(){}function Et(){}function Dt(){}function Ot(){}function kt(){}function At(){}function jt(){}function Mt(){}function Nt(){}function Pt(){}function eee(){}function tee(){}function Ft(){}function nee(){}function ree(){}function iee(){}function aee(){}function It(){}function Lt(){}function Rt(){}function zt(){}function Bt(){}function Vt(){}function Ht(){}function Ut(){}function oee(){}function Wt(){}function see(){}function cee(){}function Gt(){}function lee(){}function uee(){}function dee(){}function Kt(){}function qt(){}function fee(){}function pee(){}function Jt(){}function Yt(){}function Xt(){}function mee(){}function Zt(){}function hee(){}function gee(){}function _ee(){}function vee(){}function yee(){}function bee(){}function xee(){}function See(){}function Cee(){}function wee(){}function Qt(){}function Tee(){}function Eee(){}function $t(){}function Dee(){}function Oee(){}function kee(){}function Aee(){}function jee(){}function Mee(){}function Nee(){}function Pee(){}function Fee(){}function Iee(){}function Lee(){}function Ree(){}function zee(){}function Bee(){}function Vee(){}function Hee(){}function Uee(){}function Wee(){}function Gee(){}function Kee(){}function qee(){}function Jee(){}function Yee(){}function Xee(){}function Zee(){}function Qee(){}function $ee(){}function ete(){}function tte(){}function nte(){}function en(){}function rte(){}function ite(){}function ate(){}function ote(){}function ste(){}function cte(){}function lte(){}function ute(){}function dte(){}function fte(){}function pte(){}function mte(){}function hte(){}function gte(){}function _te(){}function vte(){}function yte(){}function bte(){}function xte(){}function Ste(){}function Cte(){}function wte(){}function Tte(){}function Ete(){}function Dte(){}function Ote(){}function kte(){}function Ate(){}function jte(){}function Mte(){}function Nte(){}function Pte(){}function Fte(){}function Ite(){}function Lte(){}function Rte(){}function zte(){}function Bte(){}function Vte(){}function Hte(){}function Ute(){}function Wte(){}function Gte(){}function Kte(){}function qte(){}function tn(){}function nn(){}function rn(){}function Jte(){}function Yte(){}function Xte(){}function Zte(){}function Qte(){}function $te(){}function ene(){}function tne(){}function nne(){}function rne(){}function ine(){}function ane(){}function one(){}function sne(){}function cne(){}function lne(){}function une(){}function dne(){}function fne(){}function pne(){}function mne(){}function an(){}function on(){}function hne(){}function gne(){}function _ne(){}function vne(){}function yne(){}function bne(){}function xne(){}function Sne(){}function Cne(){}function wne(){}function Tne(){}function Ene(){}function Dne(){}function One(){}function kne(){}function Ane(){}function sn(){}function jne(){}function Mne(){}function Nne(){}function Pne(){}function Fne(){}function Ine(){}function Lne(){}function Rne(){}function cn(){}function zne(){}function ln(){}function un(){}function Bne(){}function dn(){}function fn(){}function Vne(){}function Hne(){}function Une(){}function Wne(){}function Gne(){}function Kne(){}function qne(){}function Jne(){}function Yne(){}function Xne(){}function Zne(){}function Qne(){}function $ne(){}function ere(){}function tre(){}function nre(){}function rre(){}function ire(){}function are(){}function pn(){}function ore(){}function sre(){}function cre(){}function lre(){}function ure(){}function dre(){}function fre(){}function pre(){}function mre(){}function hre(){}function gre(){}function _re(){}function vre(){}function yre(){}function bre(){}function xre(){}function Sre(){}function Cre(){}function wre(){}function Tre(){}function Ere(){}function Dre(){}function Ore(){}function kre(){}function Are(){}function jre(){}function Mre(){}function Nre(){}function Pre(){}function Fre(){}function Ire(){}function Lre(){}function Rre(){}function zre(){}function Bre(){}function Vre(){}function Hre(){}function Ure(){}function Wre(){}function Gre(){}function Kre(){}function qre(){}function mn(){}function Jre(){}function Yre(){}function Xre(){}function Zre(){}function Qre(){}function $re(){}function eie(){}function tie(){}function nie(){}function rie(){}function iie(){}function aie(){}function oie(){}function sie(){}function cie(){}function hn(){}function lie(){}function gn(){}function _n(){}function uie(){}function vn(){}function yn(){}function bn(){}function xn(){}function Sn(){}function Cn(){}function wn(){}function Tn(){}function die(){}function fie(){}function pie(){}function mie(){}function hie(){}function En(){}function Dn(){}function gie(){}function _ie(){}function vie(){}function yie(){}function bie(){}function xie(){}function Sie(){}function Cie(){}function wie(){}function Tie(){}function Eie(){}function Die(){}function Oie(){}function On(){}function kie(){}function Aie(){}function jie(){}function kn(){}function Mie(){}function Nie(){}function Pie(){}function Fie(){}function Iie(){}function Lie(){}function Rie(){}function zie(){}function Bie(){}function Vie(){}function Hie(){}function Uie(){}function Wie(){}function Gie(){}function An(){}function Kie(){}function qie(){}function Jie(){}function Yie(){}function Xie(){}function Zie(){}function Qie(){}function $ie(){}function eae(){}function tae(){}function nae(){}function rae(){}function iae(){}function aae(){}function oae(){}function sae(){}function cae(){}function lae(){}function uae(){}function dae(){}function fae(){}function pae(){}function mae(){}function hae(){}function gae(){}function _ae(){}function vae(){}function yae(){}function bae(){}function xae(){}function Sae(){}function Cae(){}function wae(){}function Tae(){}function Eae(){}function Dae(){}function Oae(){}function kae(){}function Aae(){}function jae(){}function Mae(){}function Nae(){}function Pae(){}function jn(){}function Fae(){}function Iae(){}function Lae(){}function Rae(){}function Mn(){}function Nn(){}function Pn(){}function Fn(){}function In(){}function zae(){}function Bae(){}function Vae(){}function Hae(){}function Uae(){}function Ln(){}function Wae(){}function Gae(){}function Rn(){}function Kae(){}function zn(){}function qae(){}function Jae(){}function Bn(){}function Yae(){}function Vn(){}function Xae(){}function Zae(){}function Qae(){}function $ae(){}function eoe(){}function toe(){}function noe(){}function roe(){}function ioe(){}function aoe(){}function ooe(){}function soe(){}function coe(){}function loe(){}function Hn(){}function uoe(){}function doe(){}function foe(){}function poe(){}function moe(){}function Un(){}function hoe(){}function goe(){}function _oe(){}function voe(){}function yoe(){}function boe(){}function xoe(){}function Soe(){}function Coe(){}function woe(){}function Toe(){}function Eoe(){}function Doe(){}function Ooe(){}function koe(){}function Aoe(){}function joe(){}function Moe(){}function Noe(){}function Wn(){}function Poe(){}function Foe(){}function Ioe(){}function Loe(){}function Gn(){}function Kn(){}function Roe(){}function zoe(){}function Boe(){}function qn(){}function Voe(){}function Hoe(){}function Jn(){}function Uoe(){}function Yn(){}function Woe(){}function Goe(){}function Koe(){}function Xn(){}function Zn(){}function qoe(){}function Qn(){}function Joe(){}function Yoe(){}function Xoe(){}function Zoe(){}function Qoe(){}function $oe(){}function ese(){}function $n(){}function tse(){}function N(){}function er(){}function tr(){}function nse(){}function nr(){}function rr(){}function P(){}function rse(){}function ir(){}function ar(){}function or(){}function ise(){}function ase(){}function ose(){}function sse(){}function cse(){}function sr(){}function cr(){}function lr(){}function ur(){}function lse(){}function use(){}function dse(){}function fse(){}function pse(){}function dr(){}function mse(){}function fr(){}function hse(){}function pr(){}function gse(){}function mr(){}function _se(){}function hr(){}function vse(){}function gr(){}function _r(){}function yse(){}function bse(){}function vr(){}function xse(){}function yr(){}function Sse(){}function Cse(){}function wse(){}function Tse(){}function Ese(){}function br(){}function Dse(){}function Ose(){}function kse(){}function xr(){}function Ase(){}function Sr(){}function jse(){}function Mse(){}function Nse(){}function Cr(){}function Pse(){}function Fse(){}function Ise(){}function wr(){}function Lse(){}function Rse(){}function Tr(){}function zse(){}function Bse(){}function Vse(){}function Hse(){}function Use(){}function Wse(){}function Gse(){}function Kse(){}function Er(){}function qse(){}function Dr(){}function Jse(){}function Or(){}function Yse(){}function kr(){}function Xse(){}function Zse(){}function Qse(){}function $se(){}function ece(){}function tce(){}function nce(){}function rce(){}function Ar(){}function jr(){}function Mr(){}function ice(){}function ace(){}function oce(){}function Nr(){}function sce(){}function cce(){}function Pr(){}function lce(){}function uce(){}function Fr(){}function dce(){}function fce(){}function Ir(){}function Lr(){}function pce(){}function mce(){}function Rr(){}function hce(){}function gce(){}function _ce(){vs()}function vce(){Dl()}function yce(){Lj()}function bce(){SXe()}function zr(){mA()}function Br(){_N()}function Vr(){UI()}function Hr(){mj()}function xce(){Cj()}function Sce(){Ol()}function Cce(){Fm()}function wce(){kl()}function Tce(){lT()}function Ece(){IVe()}function Dce(){iKe()}function Oce(){XFe()}function kce(){oKe()}function Ace(){jHe()}function Ur(){JFe()}function jce(){YE()}function Mce(){cKe()}function Nce(){sKe()}function Pce(){uRe()}function Fce(){lKe()}function Ice(){oN()}function Lce(){jl()}function Rce(){Ipt()}function zce(){fz()}function Bce(){uKe()}function Vce(){uT()}function Hce(){ZFe()}function Uce(){_4e()}function Wce(){QFe()}function Wr(){OI()}function Gce(){Cet()}function Kce(){$C()}function qce(){nO()}function Jce(){QI()}function Gr(){LIe()}function Yce(){QC()}function Kr(){_ot()}function qr(){ON()}function Xce(){xot()}function Zce(){GF()}function Qce(){QM()}function $ce(){vat()}function ele(){Z0e()}function Jr(){WEe()}function tle(){FS()}function nle(){$M()}function rle(){gz()}function ile(){XE()}function ale(){kk()}function ole(){dT()}function F(){wL()}function Yr(){Pst()}function Xr(e){iv(e)}function Zr(e){this.a=e}function Qr(e){this.a=e}function sle(e){this.a=e}function cle(e){this.a=e}function lle(e){this.a=e}function ule(e){this.a=e}function dle(e){this.a=e}function $r(e){this.a=e}function ei(e){this.a=e}function ti(e){this.a=e}function fle(e){this.a=e}function ple(e){this.a=e}function mle(e){this.a=e}function hle(e){this.a=e}function gle(e){this.a=e}function _le(e){this.a=e}function ni(e){this.a=e}function vle(e){this.a=e}function ri(e){this.a=e}function ii(e){this.a=e}function yle(e){this.a=e}function ble(e){this.a=e}function ai(e){this.b=e}function xle(e){this.c=e}function Sle(e){this.a=e}function Cle(e){this.a=e}function oi(e){this.a=e}function wle(e){this.a=e}function Tle(e){this.a=e}function Ele(e){this.a=e}function Dle(e){this.a=e}function si(e){this.a=e}function Ole(e){this.a=e}function kle(e){this.a=e}function ci(e){this.a=e}function Ale(e){this.a=e}function li(e){this.a=e}function ui(e){this.a=e}function di(e){this.a=e}function fi(e){this.a=e}function pi(e){this.a=e}function mi(){this.a=[]}function hi(e,t){e.a=t}function gi(e,t){e.a=t}function _i(e,t){e.b=t}function vi(e,t){e.b=t}function yi(e,t){e.b=t}function bi(e,t){e.j=t}function jle(e,t){e.g=t}function Mle(e,t){e.i=t}function Nle(e,t){e.c=t}function Ple(e,t){e.c=t}function Fle(e,t){e.d=t}function Ile(e,t){e.d=t}function xi(e,t){e.k=t}function Lle(e,t){e.c=t}function Si(e,t){e.c=t}function Ci(e,t){e.a=t}function wi(e,t){e.a=t}function Rle(e,t){e.f=t}function zle(e,t){e.a=t}function Ble(e,t){e.b=t}function Vle(e,t){e.d=t}function Hle(e,t){e.i=t}function Ule(e,t){e.o=t}function Wle(e,t){e.r=t}function Gle(e,t){e.a=t}function Kle(e,t){e.b=t}function qle(e,t){e.e=t}function Jle(e,t){e.f=t}function Ti(e,t){e.g=t}function Yle(e,t){e.e=t}function Xle(e,t){e.f=t}function Zle(e,t){e.f=t}function Ei(e,t){e.a=t}function Di(e,t){e.b=t}function Oi(e,t){e.n=t}function Qle(e,t){e.a=t}function $le(e,t){e.c=t}function eue(e,t){e.c=t}function tue(e,t){e.c=t}function nue(e,t){e.a=t}function ki(e,t){e.a=t}function rue(e,t){e.d=t}function iue(e,t){e.d=t}function aue(e,t){e.e=t}function Ai(e,t){e.e=t}function ji(e,t){e.g=t}function Mi(e,t){e.f=t}function oue(e,t){e.j=t}function sue(e,t){e.a=t}function Ni(e,t){e.a=t}function cue(e,t){e.b=t}function lue(e){e.b=e.a}function uue(e){e.c=e.d.d}function Pi(e){this.a=e}function I(e){this.a=e}function Fi(e){this.a=e}function Ii(e){this.a=e}function Li(e){this.a=e}function Ri(e){this.a=e}function zi(e){this.a=e}function Bi(e){this.a=e}function Vi(e){this.a=e}function Hi(e){this.a=e}function Ui(e){this.a=e}function Wi(e){this.a=e}function Gi(e){this.a=e}function Ki(e){this.a=e}function qi(e){this.b=e}function Ji(e){this.b=e}function Yi(e){this.b=e}function Xi(e){this.a=e}function due(e){this.a=e}function Zi(e){this.c=e}function L(e){this.c=e}function fue(e){this.c=e}function Qi(e){this.d=e}function $i(e){this.a=e}function ea(e){this.a=e}function ta(e){this.a=e}function na(e){this.a=e}function ra(e){this.a=e}function ia(e){this.a=e}function aa(e){this.a=e}function oa(e){this.a=e}function sa(e){this.a=e}function ca(e){this.a=e}function la(e){this.a=e}function pue(e){this.a=e}function ua(e){this.a=e}function mue(e){this.a=e}function hue(e){this.a=e}function da(e){this.a=e}function gue(e){this.a=e}function _ue(e){this.a=e}function vue(e){this.a=e}function yue(e){this.a=e}function bue(e){this.a=e}function xue(e){this.a=e}function Sue(e){this.a=e}function Cue(e){this.a=e}function wue(e){this.a=e}function Tue(e){this.a=e}function fa(e){this.a=e}function pa(e){this.a=e}function ma(e){this.a=e}function Eue(e){this.a=e}function ha(e){this.a=e}function Due(e){this.a=e}function Oue(e){this.a=e}function ga(e){this.a=e}function _a(e){this.a=e}function va(e){this.a=e}function ya(e){this.a=e}function kue(e){this.a=e}function ba(e){this.a=e}function xa(e){this.a=e}function Aue(e){this.a=e}function Sa(e){this.a=e}function jue(e){this.a=e}function Ca(e){this.a=e}function wa(e){this.a=e}function Mue(e){this.a=e}function Nue(e){this.a=e}function Ta(e){this.a=e}function Ea(e){this.e=e}function Da(e){this.a=e}function Pue(e){this.a=e}function Oa(e){this.a=e}function Fue(e){this.a=e}function ka(e){this.a=e}function Aa(e){this.a=e}function ja(e){this.a=e}function Ma(e){this.a=e}function Iue(e){this.a=e}function Lue(e){this.a=e}function Rue(e){this.a=e}function zue(e){this.a=e}function Na(e){this.a=e}function Bue(e){this.a=e}function Vue(e){this.a=e}function Pa(e){this.a=e}function Hue(e){this.a=e}function Fa(e){this.a=e}function Ia(e){this.a=e}function La(e){this.a=e}function Ra(e){this.a=e}function Uue(e){this.a=e}function Wue(e){this.a=e}function Gue(e){this.a=e}function za(e){this.a=e}function Kue(e){this.a=e}function que(e){this.a=e}function Jue(e){this.a=e}function Ba(e){this.a=e}function Va(e){this.a=e}function Ha(e){this.a=e}function Yue(e){this.a=e}function Xue(e){this.a=e}function Zue(e){this.a=e}function Que(e){this.a=e}function $ue(e){this.a=e}function ede(e){this.a=e}function tde(e){this.a=e}function nde(e){this.a=e}function rde(e){this.a=e}function Ua(e){this.a=e}function ide(e){this.a=e}function ade(e){this.a=e}function Wa(e){this.a=e}function ode(e){this.a=e}function sde(e){this.a=e}function cde(e){this.a=e}function lde(e){this.a=e}function ude(e){this.a=e}function dde(e){this.a=e}function fde(e){this.a=e}function pde(e){this.a=e}function mde(e){this.a=e}function Ga(e){this.a=e}function Ka(e){this.c=e}function hde(e){this.b=e}function gde(e){this.a=e}function _de(e){this.a=e}function vde(e){this.a=e}function yde(e){this.a=e}function bde(e){this.a=e}function xde(e){this.a=e}function Sde(e){this.a=e}function Cde(e){this.a=e}function wde(e){this.a=e}function qa(e){this.a=e}function Tde(e){this.a=e}function Ede(e){this.a=e}function Dde(e){this.a=e}function Ode(e){this.a=e}function kde(e){this.a=e}function Ade(e){this.a=e}function jde(e){this.a=e}function Mde(e){this.a=e}function Ja(e){this.a=e}function Nde(e){this.a=e}function Pde(e){this.a=e}function Fde(e){this.a=e}function Ide(e){this.a=e}function Lde(e){this.a=e}function Rde(e){this.a=e}function zde(e){this.a=e}function Bde(e){this.a=e}function Ya(e){this.a=e}function Xa(e){this.a=e}function Za(e){this.a=e}function Vde(e){this.a=e}function Hde(e){this.a=e}function Ude(e){this.a=e}function Wde(e){this.a=e}function Gde(e){this.a=e}function Kde(e){this.a=e}function qde(e){this.a=e}function Jde(e){this.a=e}function Yde(e){this.a=e}function Xde(e){this.a=e}function Zde(e){this.a=e}function Qde(e){this.a=e}function $de(e){this.a=e}function efe(e){this.a=e}function Qa(e){this.a=e}function $a(e){this.a=e}function eo(e){this.a=e}function tfe(e){this.a=e}function to(e){this.a=e}function nfe(e){this.a=e}function no(e){this.a=e}function rfe(e){this.a=e}function ife(e){this.a=e}function afe(e){this.a=e}function ofe(e){this.a=e}function ro(e){this.a=e}function sfe(e){this.f=e}function cfe(e){this.a=e}function lfe(e){this.a=e}function ufe(e){this.a=e}function dfe(e){this.a=e}function ffe(e){this.a=e}function pfe(e){this.a=e}function mfe(e){this.a=e}function hfe(e){this.a=e}function gfe(e){this.a=e}function _fe(e){this.a=e}function vfe(e){this.a=e}function yfe(e){this.a=e}function bfe(e){this.a=e}function xfe(e){this.a=e}function Sfe(e){this.a=e}function Cfe(e){this.a=e}function wfe(e){this.a=e}function Tfe(e){this.a=e}function Efe(e){this.a=e}function Dfe(e){this.a=e}function Ofe(e){this.a=e}function kfe(e){this.a=e}function Afe(e){this.a=e}function jfe(e){this.a=e}function Mfe(e){this.a=e}function Nfe(e){this.a=e}function Pfe(e){this.a=e}function Ffe(e){this.a=e}function io(e){this.a=e}function Ife(e){this.a=e}function ao(e){this.b=e}function Lfe(e){this.a=e}function Rfe(e){this.a=e}function zfe(e){this.a=e}function Bfe(e){this.a=e}function Vfe(e){this.a=e}function Hfe(e){this.a=e}function Ufe(e){this.a=e}function Wfe(e){this.b=e}function Gfe(e){this.a=e}function oo(e){this.a=e}function Kfe(e){this.a=e}function qfe(e){this.a=e}function so(e){this.c=e}function co(e){this.e=e}function lo(e){this.a=e}function uo(e){this.a=e}function fo(e){this.a=e}function Jfe(e){this.d=e}function Yfe(e){this.a=e}function Xfe(e){this.a=e}function Zfe(e){this.a=e}function po(e){this.e=e}function mo(){this.a=0}function ho(){$g(this)}function go(){af(this)}function _o(){eNe(this)}function Qfe(){}function vo(){this.c=rHt}function $fe(e,t){e.b+=t}function epe(e,t){t.Wb(e)}function tpe(e){return e.a}function npe(e){return e.a}function rpe(e){return e.a}function ipe(e){return e.a}function ape(e){return e.a}function R(e){return e.e}function ope(){return null}function spe(){return null}function yo(){Zhe(),Lft()}function cpe(e){e.b.Of(e.e)}function lpe(e){e.b=new dc}function bo(e,t){e.b=t-e.b}function xo(e,t){e.a=t-e.a}function So(e,t){e.push(t)}function upe(e,t){e.sort(t)}function Co(e,t){t.jd(e.a)}function dpe(e,t){rP(t,e)}function fpe(e,t,n){e.Yd(n,t)}function wo(e,t){e.e=t,t.b=e}function ppe(e){km(),this.a=e}function mpe(e){km(),this.a=e}function To(e){km(),this.a=e}function Eo(e){A_(),this.a=e}function Do(e){py(),FSt.le(e)}function Oo(){Oo=D,new ho}function ko(){kCe.call(this)}function Ao(){kCe.call(this)}function hpe(){ko.call(this)}function gpe(){ko.call(this)}function _pe(){ko.call(this)}function jo(){ko.call(this)}function Mo(){ko.call(this)}function No(){ko.call(this)}function Po(){ko.call(this)}function Fo(){ko.call(this)}function vpe(){ko.call(this)}function Io(){ko.call(this)}function ype(){ko.call(this)}function bpe(){this.a=this}function Lo(){this.Bb|=256}function xpe(){this.b=new Qbe}function Ro(e,t){e.length=t}function zo(e,t){Af(e.a,t)}function Spe(e,t){s5e(e.c,t)}function Cpe(e,t){n_(e.b,t)}function wpe(e,t){V0e(e.a,t)}function Tpe(e,t){YZe(e.a,t)}function Bo(e,t){jT(e.e,t)}function Vo(e){LP(e.c,e.b)}function Ho(e,t){e.kc().Nb(t)}function Epe(e){this.a=_O(e)}function Uo(){this.a=new ho}function Dpe(){this.a=new ho}function Wo(){this.a=new m_e}function Go(){this.a=new go}function Ope(){this.a=new go}function kpe(){this.a=new go}function Ko(){this.a=new He}function qo(){this.a=new bVe}function Ape(){this.a=new Pt}function Jo(){this.a=new ub}function jpe(){this.a=new BTe}function Mpe(){this.a=new go}function Npe(){this.a=new go}function Ppe(){this.a=new go}function Yo(){this.a=new go}function Xo(){this.d=new go}function Fpe(){this.a=new SLe}function Zo(){this.a=new Uo}function Qo(){this.a=new ho}function $o(){this.b=new ho}function es(){this.b=new go}function Ipe(){this.e=new go}function ts(){this.a=new Ice}function Lpe(){this.d=new go}function Rpe(){NPe.call(this)}function zpe(){NPe.call(this)}function Bpe(){go.call(this)}function Vpe(){hpe.call(this)}function Hpe(){Go.call(this)}function ns(){lm.call(this)}function Upe(){Yo.call(this)}function rs(){Qfe.call(this)}function is(){rs.call(this)}function as(){Qfe.call(this)}function Wpe(){as.call(this)}function Gpe(){fs.call(this)}function Kpe(){fs.call(this)}function qpe(){fs.call(this)}function os(){lme.call(this)}function ss(){Noe.call(this)}function Jpe(){Noe.call(this)}function cs(){ll.call(this)}function Ype(){dme.call(this)}function Xpe(){dme.call(this)}function Zpe(){ho.call(this)}function ls(){ho.call(this)}function Qpe(){ho.call(this)}function $pe(){_Ke.call(this)}function eme(){Uo.call(this)}function tme(){Lo.call(this)}function nme(){lCe.call(this)}function rme(){ho.call(this)}function ime(){lCe.call(this)}function ame(){ho.call(this)}function us(){ho.call(this)}function ds(){Yn.call(this)}function ome(){ds.call(this)}function sme(){Yn.call(this)}function cme(){Rr.call(this)}function fs(){this.a=new Uo}function ps(){this.a=new ho}function ms(){this.a=new go}function lme(){this.a=new ho}function hs(){this.a=new ll}function gs(){this.j=new go}function ume(){this.a=new yge}function dme(){this.a=new Uoe}function _s(){this.a=new Eae}function vs(){vs=D,tJ=new o}function ys(){ys=D,SSt=new mme}function fme(){fme=D,CSt=new pme}function pme(){_le.call(this,``)}function mme(){_le.call(this,``)}function hme(e){XWe.call(this,e)}function gme(e){XWe.call(this,e)}function bs(e){ei.call(this,e)}function xs(e){$c.call(this,e)}function _me(e){$c.call(this,e)}function Ss(e){xs.call(this,e)}function Cs(e){xs.call(this,e)}function ws(e){xs.call(this,e)}function Ts(e){Bze.call(this,e)}function Es(e){Bze.call(this,e)}function Ds(e){kEe.call(this,e)}function Os(e){i_e.call(this,e)}function ks(e){o_e.call(this,e)}function vme(e){o_e.call(this,e)}function As(e){o_e.call(this,e)}function js(e){Y8e.call(this,e)}function Ms(e){js.call(this,e)}function Ns(e){xje.call(this,e)}function yme(e){Ns.call(this,e)}function Ps(){pi.call(this,{})}function Fs(){Fs=D,vJ=new T}function Is(){Is=D,cJ=new jSe}function bme(){bme=D,MSt=new a}function xme(){xme=D,pJ=new y}function Ls(){Ls=D,hJ=new S}function Rs(e){Vf(),this.a=e}function zs(e){Eqe(),this.a=e}function Bs(e){ZAe(),this.f=e}function Sme(e){ZAe(),this.f=e}function Cme(e){UEe(),this.a=e}function wme(e){e.b=null,e.c=0}function Tme(e,t){e.e=t,Zrt(e,t)}function Eme(e,t){e.a=t,JN(e)}function Dme(e,t,n){e.a[t.g]=n}function Ome(e,t,n){f3e(n,e,t)}function kme(e,t){AEe(t.i,e.n)}function Ame(e,t){FYe(e).Cd(t)}function jme(e,t){e.a.ec().Mc(t)}function Mme(e,t){return e.g-t.g}function Nme(e,t){return e*e/t}function Vs(e){return iv(e),e}function z(e){return iv(e),e}function Hs(e){return iv(e),e}function Pme(e){return new fi(e)}function Fme(e){return new O_(e)}function Ime(e){return iv(e),e}function Lme(e){return iv(e),e}function Us(e){Ns.call(this,e)}function Ws(e){Ns.call(this,e)}function Rme(e){Ns.call(this,e)}function zme(e){xje.call(this,e)}function Gs(e){Ns.call(this,e)}function Ks(e){Ns.call(this,e)}function qs(e){Ns.call(this,e)}function Bme(e){Ns.call(this,e)}function Js(e){Ns.call(this,e)}function Ys(e){Ns.call(this,e)}function Xs(e){Ns.call(this,e)}function Zs(e){Ns.call(this,e)}function Qs(e){Ns.call(this,e)}function Vme(e){Ns.call(this,e)}function $s(e){Ns.call(this,e)}function ec(e){iv(e),this.a=e}function Hme(e){return HE(e),e}function tc(e){Xje(e,e.length)}function nc(e){return e.b==e.c}function rc(e){return!!e&&e.b}function Ume(e){return!!e&&e.k}function Wme(e){return!!e&&e.j}function Gme(e,t,n){e.c.Ef(t,n)}function Kme(e,t){e.be(t),t.ae(e)}function ic(e){km(),this.a=D_(e)}function qme(){this.a=Lp(D_(Az))}function Jme(){throw R(new Po)}function Yme(){throw R(new Po)}function Xme(){throw R(new Po)}function Zme(){throw R(new Po)}function Qme(){throw R(new Po)}function $me(){throw R(new Po)}function ehe(){ehe=D,py()}function ac(){Ri.call(this,``)}function oc(){Ri.call(this,``)}function sc(){Ri.call(this,``)}function cc(){Ri.call(this,``)}function the(e){Ws.call(this,e)}function nhe(e){Ws.call(this,e)}function lc(e){Ks.call(this,e)}function uc(e){Yi.call(this,e)}function rhe(e){uc.call(this,e)}function ihe(e){ep.call(this,e)}function ahe(e){YCe.call(this,e,0)}function dc(){Tb.call(this,12,3)}function B(e,t){return cb(e,t)}function fc(e,t){return RS(e,t)}function ohe(e,t){return e.a-t.a}function she(e,t){return e.a-t.a}function che(e,t){return e.a-t.a}function lhe(e,t){return t in e.a}function uhe(e){return e.a?e.b:0}function dhe(e){return e.a?e.b:0}function fhe(e,t,n){t.Cd(e.a[n])}function phe(e,t,n){t.Pe(e.a[n])}function mhe(e,t){e.b=new Ld(t)}function hhe(e,t){return e.b=t,e}function ghe(e,t){return e.c=t,e}function _he(e,t){return e.f=t,e}function vhe(e,t){return e.g=t,e}function pc(e,t){return e.a=t,e}function yhe(e,t){return e.f=t,e}function bhe(e,t){return e.k=t,e}function xhe(e,t){return e.a=t,e}function She(e,t){return e.e=t,e}function Che(e,t){return e.e=t,e}function whe(e,t){return e.f=t,e}function The(e,t){e.b=!0,e.d=t}function Ehe(e,t){return e.b-t.b}function Dhe(e,t){return e.g-t.g}function Ohe(e,t){return e?0:t-1}function khe(e,t){return e?0:t-1}function Ahe(e,t){return e?t-1:0}function jhe(e,t){return e.s-t.s}function Mhe(e,t){return t.rg(e)}function mc(e,t){return e.b=t,e}function hc(e,t){return e.a=t,e}function gc(e,t){return e.c=t,e}function _c(e,t){return e.d=t,e}function vc(e,t){return e.e=t,e}function Nhe(e,t){return e.f=t,e}function yc(e,t){return e.a=t,e}function bc(e,t){return e.b=t,e}function xc(e,t){return e.c=t,e}function Sc(e,t){return e.c=t,e}function Cc(e,t){return e.b=t,e}function wc(e,t){return e.d=t,e}function Tc(e,t){return e.e=t,e}function Phe(e,t){return e.f=t,e}function Ec(e,t){return e.g=t,e}function Dc(e,t){return e.a=t,e}function Oc(e,t){return e.i=t,e}function kc(e,t){return e.j=t,e}function Fhe(e,t){oN(),_b(t,e)}function Ihe(e,t,n){$Ae(e.a,t,n)}function Lhe(e){Tm.call(this,e)}function Rhe(e){HO.call(this,e)}function zhe(e){HNe.call(this,e)}function Bhe(e){HNe.call(this,e)}function Ac(e){KC.call(this,e)}function Vhe(e){$Ne.call(this,e)}function Hhe(e){$Ne.call(this,e)}function Uhe(){mSe.call(this,``)}function jc(){this.a=0,this.b=0}function Whe(){this.b=0,this.a=0}function Ghe(e,t){e.b=0,fw(e,t)}function Khe(e,t){return e.k=t,e}function qhe(e,t){return e.j=t,e}function Jhe(e,t){e.c=t,e.b=!0}function Yhe(){Yhe=D,_Ct=gM()}function Mc(){Mc=D,IBt=Z4e()}function Xhe(){Xhe=D,_7=O6e()}function Zhe(){Zhe=D,w7=Sw()}function Nc(){Nc=D,HVt=Q4e()}function Qhe(){Qhe=D,IHt=$4e()}function $he(){$he=D,l9=i7e()}function Pc(e){return e.e&&e.e()}function ege(e){return e.l|e.m<<22}function tge(e,t){return e.c._b(t)}function nge(e,t){return vZe(e.b,t)}function rge(e){return e?e.d:null}function ige(e){return e?e.g:null}function age(e){return e?e.i:null}function Fc(e){return Rp(e),e.o}function Ic(e,t){return e.a+=t,e}function oge(e,t){return e.a+=t,e}function Lc(e,t){return e.a+=t,e}function Rc(e,t){return e.a+=t,e}function sge(e,t){for(;e.Bd(t););}function cge(e){this.a=new sl(e)}function lge(){throw R(new Po)}function uge(){throw R(new Po)}function dge(){throw R(new Po)}function fge(){throw R(new Po)}function pge(){throw R(new Po)}function mge(){throw R(new Po)}function zc(e){this.a=new bje(e)}function hge(){this.a=new xF(GFt)}function gge(){this.b=new xF(SPt)}function _ge(){this.a=new xF(WIt)}function vge(){this.b=new xF(Q4)}function yge(){this.b=new xF(Q4)}function bge(e){this.a=0,this.b=e}function xge(e){zdt(),rpt(this,e)}function Bc(e){return ev(e),e.a}function Vc(e){return e.b!=e.d.c}function Sge(e,t){return e.d[t.p]}function Cge(e,t){return Yrt(e,t)}function wge(e,t,n){e.splice(t,n)}function Hc(e,t){for(;e.Re(t););}function Tge(e){e.c?Hit(e):Uit(e)}function Ege(){throw R(new Po)}function Dge(){throw R(new Po)}function Oge(){throw R(new Po)}function kge(){throw R(new Po)}function Age(){throw R(new Po)}function jge(){throw R(new Po)}function Mge(){throw R(new Po)}function Nge(){throw R(new Po)}function Pge(){throw R(new Po)}function Fge(){throw R(new Po)}function Ige(){throw R(new Io)}function Lge(){throw R(new Io)}function Uc(e){this.a=new Rge(e)}function Rge(e){jKe(this,e,yN())}function Wc(e){return!e||Q_(e)}function Gc(e){return _9[e]!=-1}function zge(){dJ!=0&&(dJ=0),fJ=-1}function Bge(){mSt??=[]}function Kc(e,t){zf.call(this,e,t)}function qc(e,t){Kc.call(this,e,t)}function Vge(e,t){this.a=e,this.b=t}function Hge(e,t){this.a=e,this.b=t}function Uge(e,t){this.a=e,this.b=t}function Wge(e,t){this.a=e,this.b=t}function Gge(e,t){this.a=e,this.b=t}function Kge(e,t){this.a=e,this.b=t}function qge(e,t){this.a=e,this.b=t}function Jc(e,t){this.e=e,this.d=t}function Jge(e,t){this.b=e,this.c=t}function Yge(e,t){this.b=e,this.a=t}function Xge(e,t){this.b=e,this.a=t}function Zge(e,t){this.b=e,this.a=t}function Yc(e,t){this.b=e,this.a=t}function Xc(e,t){this.a=e,this.b=t}function Qge(e,t){this.a=e,this.b=t}function $ge(e,t){this.a=e,this.f=t}function Zc(e,t){this.g=e,this.i=t}function Qc(e,t){this.f=e,this.g=t}function e_e(e,t){this.b=e,this.c=t}function $c(e){dCe(e.dc()),this.c=e}function t_e(e,t){this.a=e,this.b=t}function n_e(e,t){this.a=e,this.b=t}function r_e(e){this.a=H(D_(e),15)}function i_e(e){this.a=H(D_(e),15)}function el(e){this.a=H(D_(e),85)}function a_e(e){this.b=H(D_(e),85)}function o_e(e){this.b=H(D_(e),51)}function s_e(){this.q=new r.Date}function c_e(e,t){this.a=e,this.b=t}function tl(e,t){return Xg(e.b,t)}function nl(e,t){return e.b.Hc(t)}function l_e(e,t){return e.b.Ic(t)}function u_e(e,t){return e.b.Qc(t)}function d_e(e,t){return e.b.Hc(t)}function rl(e,t){return e.c.uc(t)}function f_e(e,t){return zD(e.c,t)}function il(e,t){return e.a._b(t)}function p_e(e,t){return e>t&&t0}function Z_e(e,t){return yD(e,t)<0}function Q_e(e,t){return ug(e.a,t)}function $_e(e,t){UFe.call(this,e,t)}function eve(e){NMe(),kEe.call(this,e)}function tve(e,t){HAe(e,e.length,t)}function Yl(e,t){lMe(e,e.length,t)}function Xl(e,t){return e.a.get(t)}function nve(e,t){return Xg(e.e,t)}function rve(e){return iv(e),!1}function ive(e){this.a=H(D_(e),229)}function Zl(e){Nb.call(this,e,21)}function ave(e,t){Qc.call(this,e,t)}function ove(e,t){Qc.call(this,e,t)}function sve(e,t){this.b=e,this.a=t}function cve(e,t){this.d=e,this.e=t}function Ql(e,t){this.a=e,this.b=t}function lve(e,t){this.a=e,this.b=t}function uve(e,t){this.a=e,this.b=t}function dve(e,t){this.a=e,this.b=t}function $l(e,t){this.a=e,this.b=t}function fve(e,t){this.b=e,this.a=t}function pve(e,t){this.b=e,this.a=t}function mve(e,t){Qc.call(this,e,t)}function hve(e,t){Qc.call(this,e,t)}function eu(e,t){Qc.call(this,e,t)}function tu(e,t){Qc.call(this,e,t)}function nu(e,t){Qc.call(this,e,t)}function ru(e,t){Qc.call(this,e,t)}function iu(e,t){Qc.call(this,e,t)}function au(e,t){this.b=e,this.a=t}function ou(e,t){Qc.call(this,e,t)}function su(e,t){this.b=e,this.a=t}function cu(e,t){Qc.call(this,e,t)}function lu(e,t){this.b=e,this.a=t}function uu(e,t){Qc.call(this,e,t)}function du(e,t){Qc.call(this,e,t)}function fu(e,t){Qc.call(this,e,t)}function pu(e,t,n){e.splice(t,0,n)}function gve(e,t,n){e.Mb(n)&&t.Cd(n)}function _ve(e,t,n){t.Pe(e.a.Ye(n))}function vve(e,t,n){t.Dd(e.a.Ze(n))}function yve(e,t,n){t.Cd(e.a.Kb(n))}function mu(e,t){return op(e.c,t)}function hu(e,t){return op(e.e,t)}function bve(e,t){Qc.call(this,e,t)}function gu(e,t){Qc.call(this,e,t)}function _u(e,t){Qc.call(this,e,t)}function vu(e,t){Qc.call(this,e,t)}function yu(e,t){Qc.call(this,e,t)}function bu(e,t){Qc.call(this,e,t)}function xve(e,t){this.a=e,this.b=t}function Sve(e,t){this.a=e,this.b=t}function Cve(e,t){this.a=e,this.b=t}function wve(e,t){this.a=e,this.b=t}function Tve(e,t){this.a=e,this.b=t}function Eve(e,t){this.a=e,this.b=t}function Dve(e,t){this.b=e,this.a=t}function Ove(e,t){this.b=e,this.a=t}function kve(e,t){this.b=e,this.a=t}function xu(e,t){this.c=e,this.d=t}function Ave(e,t){this.e=e,this.d=t}function jve(e,t){this.a=e,this.b=t}function Mve(e,t){this.a=e,this.b=t}function Nve(e,t){this.a=e,this.b=t}function Pve(e,t){this.b=e,this.a=t}function Fve(e,t){this.b=t,this.c=e}function Ive(e,t){Qc.call(this,e,t)}function Su(e,t){Qc.call(this,e,t)}function Lve(e,t){Qc.call(this,e,t)}function Rve(e,t){Qc.call(this,e,t)}function Cu(e,t){Qc.call(this,e,t)}function zve(e,t){Qc.call(this,e,t)}function Bve(e,t){Qc.call(this,e,t)}function wu(e,t){Qc.call(this,e,t)}function Vve(e,t){Qc.call(this,e,t)}function Hve(e,t){Qc.call(this,e,t)}function Tu(e,t){Qc.call(this,e,t)}function Uve(e,t){Qc.call(this,e,t)}function Eu(e,t){Qc.call(this,e,t)}function Du(e,t){Qc.call(this,e,t)}function Ou(e,t){Qc.call(this,e,t)}function Wve(e,t){Qc.call(this,e,t)}function Gve(e,t){Qc.call(this,e,t)}function Kve(e,t){Qc.call(this,e,t)}function ku(e,t){Qc.call(this,e,t)}function Au(e,t){Qc.call(this,e,t)}function qve(e,t){Qc.call(this,e,t)}function Jve(e,t){Qc.call(this,e,t)}function ju(e,t){Qc.call(this,e,t)}function Mu(e,t){Qc.call(this,e,t)}function Yve(e,t){Qc.call(this,e,t)}function Xve(e,t){Qc.call(this,e,t)}function Zve(e,t){Qc.call(this,e,t)}function Qve(e,t){Qc.call(this,e,t)}function $ve(e,t){Qc.call(this,e,t)}function eye(e,t){Qc.call(this,e,t)}function tye(e,t){Qc.call(this,e,t)}function nye(e,t){Qc.call(this,e,t)}function rye(e,t){Qc.call(this,e,t)}function iye(e,t){this.b=e,this.a=t}function aye(e,t){Qc.call(this,e,t)}function oye(e,t){this.a=e,this.b=t}function sye(e,t){this.a=e,this.b=t}function cye(e,t){this.a=e,this.b=t}function lye(e,t){Qc.call(this,e,t)}function uye(e,t){Qc.call(this,e,t)}function dye(e,t){this.a=e,this.b=t}function fye(e,t){return $m(),t!=e}function pye(e){return zp(e.a),e.b}function mye(e){return aet(e,e.c),e}function hye(){return Yhe(),new _Ct}function gye(){yDe(),this.a=new om}function _ye(){kF(),this.a=new Uo}function vye(){$Fe(),this.b=new Uo}function yye(e,t){this.b=e,this.d=t}function bye(e,t){this.a=e,this.b=t}function xye(e,t){this.a=e,this.b=t}function Sye(e,t){this.a=e,this.b=t}function Cye(e,t){this.b=e,this.a=t}function wye(e,t){Qc.call(this,e,t)}function Tye(e,t){Qc.call(this,e,t)}function Eye(e,t){Qc.call(this,e,t)}function Nu(e,t){Qc.call(this,e,t)}function Dye(e,t){Qc.call(this,e,t)}function Oye(e,t){Qc.call(this,e,t)}function kye(e,t){Qc.call(this,e,t)}function Aye(e,t){Qc.call(this,e,t)}function jye(e,t){Qc.call(this,e,t)}function Pu(e,t){Qc.call(this,e,t)}function Mye(e,t){Qc.call(this,e,t)}function Nye(e,t){Qc.call(this,e,t)}function Fu(e,t){Qc.call(this,e,t)}function Iu(e,t){Qc.call(this,e,t)}function Pye(e,t){Qc.call(this,e,t)}function Fye(e,t){Qc.call(this,e,t)}function Iye(e,t){Qc.call(this,e,t)}function Lye(e,t){Qc.call(this,e,t)}function Rye(e,t){Qc.call(this,e,t)}function Lu(e,t){Qc.call(this,e,t)}function zye(e,t){Qc.call(this,e,t)}function Bye(e,t){Qc.call(this,e,t)}function Ru(e,t){Qc.call(this,e,t)}function Vye(e,t){Qc.call(this,e,t)}function Hye(e,t){this.b=e,this.a=t}function Uye(e,t){this.b=e,this.a=t}function Wye(e,t){this.b=e,this.a=t}function Gye(e,t){this.b=e,this.a=t}function Kye(e,t){this.a=e,this.b=t}function qye(e,t){this.a=e,this.b=t}function Jye(e,t){this.a=e,this.b=t}function zu(e,t){this.a=e,this.b=t}function Bu(e,t){Qc.call(this,e,t)}function Vu(e,t){Qc.call(this,e,t)}function Hu(e,t){Qc.call(this,e,t)}function Uu(e,t){Qc.call(this,e,t)}function Wu(e,t){Qc.call(this,e,t)}function Gu(e,t){Qc.call(this,e,t)}function Yye(e,t){Qc.call(this,e,t)}function Ku(e,t){Qc.call(this,e,t)}function Xye(e,t){Qc.call(this,e,t)}function qu(e,t){Qc.call(this,e,t)}function Ju(e,t){Qc.call(this,e,t)}function Yu(e,t){Qc.call(this,e,t)}function Xu(e,t){Qc.call(this,e,t)}function Zu(e,t){Qc.call(this,e,t)}function Qu(e,t){Qc.call(this,e,t)}function $u(e,t){Qc.call(this,e,t)}function ed(e,t){Qc.call(this,e,t)}function td(e,t){Qc.call(this,e,t)}function Zye(e,t){Qc.call(this,e,t)}function Qye(e,t){Qc.call(this,e,t)}function $ye(e,t){this.a=e,this.b=t}function ebe(e,t){this.a=e,this.b=t}function tbe(e,t){this.a=e,this.b=t}function nbe(e,t){this.a=e,this.b=t}function rbe(e,t){this.a=e,this.b=t}function ibe(e,t){this.a=e,this.b=t}function nd(e,t){this.a=e,this.b=t}function abe(e,t){this.a=e,this.b=t}function obe(e,t){this.a=e,this.b=t}function sbe(e,t){this.a=e,this.b=t}function cbe(e,t){this.a=e,this.b=t}function lbe(e,t){this.a=e,this.b=t}function ube(e,t){this.a=e,this.b=t}function dbe(e,t){this.b=e,this.a=t}function fbe(e,t){this.b=e,this.a=t}function pbe(e,t){this.b=e,this.a=t}function mbe(e,t){this.b=e,this.a=t}function hbe(e,t){this.a=e,this.b=t}function gbe(e,t){this.a=e,this.b=t}function rd(e,t){Qc.call(this,e,t)}function _be(e,t){this.a=e,this.b=t}function vbe(e,t){this.a=e,this.b=t}function id(e,t){Qc.call(this,e,t)}function ad(e,t){this.f=e,this.c=t}function ybe(e,t){return op(e.g,t)}function bbe(e,t){return op(t.b,e)}function xbe(e,t){return dk(e.a,t)}function Sbe(e,t){return-e.b.af(t)}function Cbe(e,t){e&&fv(pVt,e,t)}function wbe(e,t){e.i=null,WKe(e,t)}function Tbe(e,t,n){T3e(t,G5e(e,n))}function Ebe(e,t,n){T3e(t,G5e(e,n))}function Dbe(e,t){jnt(e.a,H(t,58))}function Obe(e,t){CUe(e.a,H(t,12))}function kbe(e,t){this.a=e,this.b=t}function Abe(e,t){this.a=e,this.b=t}function jbe(e,t){this.a=e,this.b=t}function Mbe(e,t){this.a=e,this.b=t}function Nbe(e,t){this.a=e,this.b=t}function Pbe(e,t){this.d=e,this.b=t}function Fbe(e,t){this.e=e,this.a=t}function od(e,t){this.b=e,this.c=t}function Ibe(e,t){this.i=e,this.g=t}function Lbe(e,t){this.d=e,this.e=t}function Rbe(e,t){gWe(new Lf(e),t)}function zbe(e){return uk(e.c,e.b)}function sd(e){return e?e.md():null}function cd(e){return e??null}function ld(e){return typeof e===Tz}function ud(e){return typeof e===wz}function dd(e){return typeof e===Gpt}function fd(e,t){return yD(e,t)==0}function Bbe(e,t){return yD(e,t)>=0}function pd(e,t){return yD(e,t)!=0}function Vbe(e,t){return Lqe(e.Kc(),t)}function md(e,t){return e.Rd().Xb(t)}function Hbe(e){return BO(e),e.d.gc()}function Ube(e){return Vh(e==null),e}function hd(e,t){return e.a+=``+t,e}function gd(e,t){return e.a+=``+t,e}function _d(e,t){return e.a+=``+t,e}function vd(e,t){return e.a+=``+t,e}function yd(e,t){return e.a+=``+t,e}function Wbe(e,t){return e.a+=``+t,e}function Gbe(e){return``+(iv(e),e)}function Kbe(e){$g(this),gT(this,e)}function qbe(){YFe(),YAe.call(this)}function Jbe(e,t){Mg.call(this,e,t)}function Ybe(e,t){Mg.call(this,e,t)}function Xbe(e,t){Mg.call(this,e,t)}function bd(e,t){kx(e,t,e.c.b,e.c)}function xd(e,t){kx(e,t,e.a,e.a.a)}function Sd(e){return jb(e,0),null}function Cd(){this.b=0,this.a=!1}function Zbe(){this.b=0,this.a=!1}function Qbe(){this.b=new sl(LC(12))}function $be(){$be=D,Zwt=dD(N1e())}function exe(){exe=D,eZ=dD($nt())}function txe(){txe=D,LPt=dD(Uqe())}function nxe(){nxe=D,Oo(),mJ=new ho}function wd(e){return e.a=0,e.b=0,e}function rxe(e,t){return e.a=t.g+1,e}function ixe(e,t){mm.call(this,e,t)}function Td(e,t){Yp.call(this,e,t)}function Ed(e,t){Ibe.call(this,e,t)}function axe(e,t){dp.call(this,e,t)}function oxe(e,t){qT.call(this,e,t)}function Dd(e,t){Hl(),fv(SVt,e,t)}function sxe(e,t){e.q.setTime(tx(t))}function cxe(e){r.clearTimeout(e)}function lxe(e){return D_(e),new Rd(e)}function uxe(e,t){return cd(e)===cd(t)}function Od(e,t){return e.a.a.a.cc(t)}function kd(e,t){return Dy(e.a,0,t)}function dxe(e){return gMe(H(e,74))}function Ad(e){return Uy((iv(e),e))}function fxe(e){return Uy((iv(e),e))}function pxe(e){return Cf(e.l,e.m,e.h)}function mxe(e,t){return Sf(e.a,t.a)}function hxe(e,t){return tMe(e.a,t.a)}function gxe(e,t){return uO(e.a,t.a)}function jd(e,t){return e.indexOf(t)}function _xe(e,t){return e.j[t.p]==2}function Md(e,t){return e==t?0:e?1:-1}function vxe(e){return e<10?`0`+e:``+e}function Nd(e){return typeof e===Gpt}function yxe(e){return e==sX||e==uX}function bxe(e){return e==sX||e==cX}function xxe(e,t){return Sf(e.g,t.g)}function Sxe(e){return XS(e.b.b,e,0)}function Cxe(){Xh.call(this,0,0,0,0)}function Pd(){na.call(this,new Ox)}function wxe(e,t){zS(e,0,e.length,t)}function Txe(e,t){return Af(e.a,t),t}function Fd(e,t){return Im(),t.a+=e}function Exe(e,t){return Im(),t.a+=e}function Dxe(e,t){return Im(),t.c+=e}function Oxe(e,t){return Af(e.c,t),e}function Id(e,t){return AT(e.a,t),e}function kxe(e){this.a=hye(),this.b=e}function Axe(e){this.a=hye(),this.b=e}function Ld(e){this.a=e.a,this.b=e.b}function Rd(e){this.a=e,_ce.call(this)}function jxe(e){this.a=e,_ce.call(this)}function zd(){Vv.call(this,0,0,0,0)}function Bd(e){return AT(new uv,e)}function Vd(e){return bv(H(e,123))}function Hd(e){return e.vh()&&e.wh()}function Ud(e){return e!=C5&&e!=w5}function Wd(e){return e==A8||e==j8}function Gd(e){return e==N8||e==k8}function Kd(e){return e==D0||e==E0}function qd(e,t){return Sf(e.g,t.g)}function Mxe(e,t){return new qT(t,e)}function Jd(e,t){return new qT(t,e)}function Nxe(e){return ake(e.b.Kc(),e.a)}function Pxe(e,t){eD(e,t),pw(e,e.D)}function Yd(e,t,n){CGe(e,t),nw(e,n)}function Xd(e,t,n){aw(e,t),iw(e,n)}function Zd(e,t,n){ow(e,t),sw(e,n)}function Qd(e,t,n){rw(e,t),lw(e,n)}function $d(e,t,n){cw(e,t),uw(e,n)}function Fxe(e,t,n){eTe.call(this,e,t,n)}function Ixe(e){ad.call(this,e,!0)}function ef(){ave.call(this,`Tail`,3)}function tf(){ave.call(this,`Head`,1)}function nf(e){cI(),jqe.call(this,e)}function rf(e){Xh.call(this,e,e,e,e)}function af(e){e.c=vS(eJ,jz,1,0,5,1)}function Lxe(e){return e.b&&AL(e),e.a}function of(e){return e.b&&AL(e),e.c}function Rxe(e,t){XJ||(e.b=t)}function zxe(e,t){return e[e.length]=t}function Bxe(e,t){return e[e.length]=t}function Vxe(e,t){return HC(t,Ky(e))}function Hxe(e,t){return HC(t,Ky(e))}function Uxe(e,t){return eKe(T_(e.d),t)}function sf(e,t){return eKe(T_(e.g),t)}function Wxe(e,t){return eKe(T_(e.j),t)}function cf(e,t){Yp.call(this,e.b,t)}function Gxe(e,t){SS(Sx(e.a),lIe(t))}function lf(e,t){SS($S(e.a),uIe(t))}function Kxe(e,t,n){Zd(n,n.i+e,n.j+t)}function qxe(e,t,n){F_(e.c[t.g],t.g,n)}function uf(e,t,n){H(e.c,71).Gi(t,n)}function df(e,t,n){return F_(e,t,n),n}function Jxe(e){UC(e.Sf(),new Oue(e))}function ff(e){return e==null?0:zw(e)}function Yxe(e){return e==null?0:zw(e)}function pf(e){vz(),po.call(this,e)}function Xxe(e){this.a=e,nke.call(this,e)}function mf(){mf=D,r.Math.log(2)}function hf(){hf=D,a9=(Bl(),JBt)}function Zxe(){Zxe=D,oPt=new PO(U8)}function gf(){gf=D,new Qxe,new go}function Qxe(){new ho,new ho,new ho}function $xe(){throw R(new Ys(Qq))}function eSe(){throw R(new Ys(Qq))}function _f(){throw R(new Ys(dSt))}function tSe(){throw R(new Ys(dSt))}function vf(e){this.a=e,a_e.call(this,e)}function yf(e){this.a=e,a_e.call(this,e)}function nSe(e,t){A_(),this.a=e,this.b=t}function rSe(e,t){D_(t),Pv(e).Jc(new h)}function bf(e,t){fg(e.c,e.c.length,t)}function xf(e){return e.at)}function oSe(e,t){return yD(e,t)>0?e:t}function Cf(e,t,n){return{l:e,m:t,h:n}}function sSe(e,t){e.a!=null&&Obe(t,e.a)}function cSe(e){hb(e,null),vb(e,null)}function lSe(e,t,n){return fv(e.g,n,t)}function wf(e,t,n){return Fk(t,n,e.c)}function uSe(e,t,n){return fv(e.k,n,t)}function dSe(e,t,n){return Rut(e,t,n),n}function fSe(e,t){return fb(),t.n.b+=e}function pSe(e){PPe.call(this),this.b=e}function mSe(e){im.call(this),this.a=e}function hSe(){ave.call(this,`Range`,2)}function gSe(e){this.b=e,this.a=new go}function _Se(e){this.b=new Ct,this.a=e}function vSe(e){e.a=new oe,e.c=new oe}function ySe(e){e.a=new ho,e.d=new ho}function bSe(e){eIe(e,null),tIe(e,null)}function xSe(e,t){return Vut(e.a,t,null)}function SSe(e,t){return fv(e.a,t.a,t)}function Tf(e){return new zu(e.a,e.b)}function CSe(e){return new zu(e.c,e.d)}function wSe(e){return new zu(e.c,e.d)}function Ef(e,t){return Blt(e.c,e.b,t)}function V(e,t){return e!=null&&u0e(e,t)}function TSe(e,t){return YJe(e.Kc(),t)!=-1}function ESe(e){return e.Ob()?e.Pb():null}function DSe(e){this.b=(iy(),new Zi(e))}function OSe(e){this.a=e,ho.call(this)}function kSe(){dp.call(this,null,null)}function ASe(){JCe.call(this,null,null)}function jSe(){Qc.call(this,`INSTANCE`,0)}function MSe(){i3e(),this.a=new xF(kEt)}function NSe(e){return Ik(e,0,e.length)}function PSe(e,t){return new yCe(e.Kc(),t)}function FSe(e,t){return e.a.Bc(t)!=null}function ISe(e,t){hR(e),e.Gc(H(t,15))}function LSe(e,t,n){e.c.bd(t,H(n,136))}function RSe(e,t,n){e.c.Ui(t,H(n,136))}function zSe(e,t){e.c&&(qke(t),pFe(t))}function BSe(e,t){e.q.setHours(t),lL(e,t)}function VSe(e,t){Ep(t,e.a.a.a,e.a.a.b)}function HSe(e,t,n,r){F_(e.a[t.g],n.g,r)}function USe(e,t,n){return e.a[t.g][n.g]}function WSe(e,t){return e.e[t.c.p][t.p]}function GSe(e,t){return e.c[t.c.p][t.p]}function Df(e,t){return e.a[t.c.p][t.p]}function KSe(e,t){return e.j[t.p]=ont(t)}function qSe(e,t){return e.a.Bc(t)!=null}function JSe(e,t){return z(Ip(t.a))<=e}function YSe(e,t){return z(Ip(t.a))>=e}function XSe(e,t){return fVe(e.f,t.Pg())}function Of(e,t){return e.a*t.a+e.b*t.b}function ZSe(e,t){return e.a0?t/(e*e):t*100}function dwe(e,t){return e>0?t*t/e:t*t*100}function Tp(e,t){return H(_C(e.a,t),34)}function fwe(e,t){return oN(),TP(e,t.e,t)}function pwe(e,t,n){return N_e(),n.Mg(e,t)}function mwe(e){return $C(),e.e.a+e.f.a/2}function hwe(e,t,n){return $C(),n.e.a-e*t}function gwe(e){return $C(),e.e.b+e.f.b/2}function _we(e,t,n){return $C(),n.e.b-e*t}function vwe(e){e.d=new iwe(e),e.e=new ho}function ywe(){this.a=new Fy,this.b=new Fy}function bwe(e){this.c=e,this.a=1,this.b=1}function xwe(e){uz(),lpe(this),this.Ff(e)}function Swe(e,t,n){FS(),e.pf(t)&&n.Cd(e)}function Cwe(e,t,n){return Af(t,qQe(e,n))}function Ep(e,t,n){return e.a+=t,e.b+=n,e}function wwe(e,t,n){return e.a*=t,e.b*=n,e}function Twe(e,t){return e.a=t.a,e.b=t.b,e}function Ewe(e){return e.a=-e.a,e.b=-e.b,e}function Dp(e,t,n){return e.a-=t,e.b-=n,e}function Op(e){ll.call(this),Ew(this,e)}function kp(){Qc.call(this,`GROW_TREE`,0)}function Dwe(){Qc.call(this,`POLYOMINO`,0)}function Ap(e,t,n){kS.call(this,e,t,n,2)}function jp(e,t,n){$D(Sx(e.a),t,lIe(n))}function Owe(e,t){Ul(),dp.call(this,e,t)}function Mp(e,t){Wl(),JCe.call(this,e,t)}function kwe(e,t){Wl(),Mp.call(this,e,t)}function Awe(e,t){Wl(),JCe.call(this,e,t)}function jwe(e,t){return e.c.Fc(H(t,136))}function Mwe(e,t,n){$D($S(e.a),t,uIe(n))}function Nwe(e){this.c=e,ow(e,0),sw(e,0)}function Np(e,t){hf(),ig.call(this,e,t)}function Pwe(e,t){hf(),Np.call(this,e,t)}function Fwe(e,t){hf(),Np.call(this,e,t)}function Iwe(e,t){hf(),ig.call(this,e,t)}function Lwe(e,t){hf(),Fwe.call(this,e,t)}function Rwe(e,t){hf(),Iwe.call(this,e,t)}function zwe(e,t){hf(),ig.call(this,e,t)}function Bwe(e,t,n){return t.zl(e.e,e.c,n)}function Vwe(e,t,n){return t.Al(e.e,e.c,n)}function Hwe(e,t,n){return rR(eC(e,t),n)}function Pp(e,t){return bD(e.e,H(t,54))}function Uwe(e){return e==null?null:Vdt(e)}function Wwe(e){return e==null?null:t5e(e)}function Gwe(e){return e==null?null:FO(e)}function Kwe(e){return e==null?null:FO(e)}function Fp(e){return Vh(e==null||ud(e)),e}function Ip(e){return Vh(e==null||dd(e)),e}function Lp(e){return Vh(e==null||ld(e)),e}function Rp(e){e.o??vtt(e)}function qwe(e){if(!e)throw R(new jo)}function Jwe(e){if(!e)throw R(new gpe)}function zp(e){if(!e)throw R(new Io)}function Bp(e){if(!e)throw R(new Mo)}function Ywe(e){if(!e)throw R(new Fo)}function Vp(){Vp=D,bVt=new Ype,new Xpe}function Hp(){Hp=D,u4=new ao(`root`)}function Xwe(){_Ke.call(this),this.Bb|=XB}function Zwe(e,t){this.d=e,uue(this),this.b=t}function Qwe(e,t){DHe.call(this,e),this.a=t}function $we(e,t){DHe.call(this,e),this.a=t}function eTe(e,t,n){MVe.call(this,e,t,n,null)}function tTe(e,t,n){MVe.call(this,e,t,n,null)}function Up(e,t){this.c=e,Jc.call(this,e,t)}function Wp(e,t){this.a=e,Up.call(this,e,t)}function nTe(e){this.q=new r.Date(tx(e))}function rTe(e){return e>8?0:e+1}function iTe(e,t){XJ||Af(e.a,t)}function aTe(e,t){return Ol(),MT(t.d.i,e)}function oTe(e,t){return lT(),new lI(t,e)}function sTe(e,t,n){return e.Ne(t,n)<=0?n:t}function cTe(e,t,n){return e.Ne(t,n)<=0?t:n}function lTe(e,t){return H(_C(e.b,t),143)}function uTe(e,t){return H(_C(e.c,t),233)}function dTe(e){return H(Wh(e.a,e.b),294)}function fTe(e){return new zu(e.c,e.d+e.a)}function pTe(e){return iv(e),e?1231:1237}function mTe(e){return fb(),Kd(H(e,203))}function Gp(){Gp=D,Qwt=dO((Ak(),n7))}function hTe(e,t){t.a?get(e,t):qSe(e.a,t.b)}function Kp(e,t,n){++e.j,e.tj(),xHe(e,t,n)}function gTe(e,t,n){++e.j,e.qj(t,e.Zi(t,n))}function _Te(e,t,n){e.fd(t).Rb(n)}function vTe(e,t,n){return n=LI(e,t,6,n),n}function yTe(e,t,n){return n=LI(e,t,3,n),n}function bTe(e,t,n){return n=LI(e,t,9,n),n}function qp(e,t){return Sy(t,_ht),e.f=t,e}function xTe(e,t){return(t&Ez)%e.d.length}function STe(e,t,n){return ML(e.c,e.b,t,n)}function CTe(e,t){this.c=e,KC.call(this,t)}function wTe(e,t){this.a=e,Wfe.call(this,t)}function Jp(e,t){this.a=e,Wfe.call(this,t)}function Yp(e,t){ao.call(this,e),this.a=t}function TTe(e,t){so.call(this,e),this.a=t}function Xp(e,t){so.call(this,e),this.a=t}function ETe(e){ik.call(this,0,0),this.f=e}function DTe(e,t,n){return e.a+=Ik(t,0,n),e}function Zp(e){return!e.a&&(e.a=new w),e.a}function OTe(e,t){var n=e.e;return e.e=t,n}function kTe(e,t){var n=t;return!!e.Fe(n)}function Qp(e,t){return lp(),e==t?0:e?1:-1}function $p(e,t){e.a.bd(e.b,t),++e.b,e.c=-1}function em(e){e.b?em(e.b):e.f.c.zc(e.e,e.d)}function tm(e){$g(e.e),e.d.b=e.d,e.d.a=e.d}function ATe(e,t,n){gl(),hi(e,t.Ve(e.a,n))}function jTe(e,t,n){return o_(e,H(t,22),n)}function nm(e,t){return fc(Array(t),e)}function MTe(e){return Sg(kg(e,32))^Sg(e)}function NTe(e){return String.fromCharCode(e)}function PTe(e){return e==null?null:e.message}function FTe(e,t,n){return e.apply(t,n)}function rm(e,t){e[zmt].call(e,t)}function ITe(e,t){e[zmt].call(e,t)}function LTe(e,t){return Ol(),!MT(t.d.i,e)}function RTe(e,t,n,r){Xh.call(this,e,t,n,r)}function zTe(){lm.call(this),this.a=new jc}function im(){this.n=new jc,this.o=new jc}function BTe(){this.b=new jc,this.c=new go}function VTe(){this.a=new go,this.b=new go}function am(){this.a=new Pt,this.b=new xpe}function om(){this.b=new Ox,this.a=new Ox}function HTe(){this.b=new Uo,this.a=new Uo}function sm(){this.b=new ho,this.a=new ho}function UTe(){this.b=new gge,this.a=new _ie}function cm(){this.a=new Lce,this.b=new gre}function WTe(){this.a=new go,this.d=new go}function lm(){this.n=new as,this.i=new zd}function GTe(e){this.a=(Dw(e,cB),new dS(e))}function KTe(e){this.a=(Dw(e,cB),new dS(e))}function qTe(e){return e<100?null:new Ac(e)}function JTe(e,t){return e.n.a=(iv(t),t+10)}function YTe(e,t){return e.n.a=(iv(t),t+10)}function XTe(e,t){return t==e||Zj(uF(t),e)}function ZTe(e,t){return fv(e.a,t,``)==null}function QTe(e,t){return t.qi(e.a)}function um(e,t){return e.a+=t.a,e.b+=t.b,e}function dm(e,t){return e.a-=t.a,e.b-=t.b,e}function $Te(e){return Ro(e.j.c,0),e.a=-1,e}function eEe(e,t,n){return n=LI(e,t,11,n),n}function tEe(e,t,n){n!=null&&wKe(t,XA(e,n))}function nEe(e,t,n){n!=null&&TKe(t,XA(e,n))}function fm(e,t,n,r){Bg.call(this,e,t,n,r)}function rEe(e,t,n,r){Bg.call(this,e,t,n,r)}function iEe(e,t,n,r){rEe.call(this,e,t,n,r)}function aEe(e,t,n,r){Ug.call(this,e,t,n,r)}function oEe(e,t,n,r){Ug.call(this,e,t,n,r)}function sEe(e,t,n,r){Ug.call(this,e,t,n,r)}function cEe(e,t,n,r){oEe.call(this,e,t,n,r)}function lEe(e,t,n,r){oEe.call(this,e,t,n,r)}function pm(e,t,n,r){sEe.call(this,e,t,n,r)}function uEe(e,t,n,r){lEe.call(this,e,t,n,r)}function dEe(e,t,n,r){Gg.call(this,e,t,n,r)}function mm(e,t){Ws.call(this,NK+e+hK+t)}function fEe(e,t){return e.jk().wi().ri(e,t)}function pEe(e,t){return e.jk().wi().ti(e,t)}function mEe(e,t){return iv(e),cd(e)===cd(t)}function hm(e,t){return iv(e),cd(e)===cd(t)}function hEe(e,t){return e.b.Bd(new lve(e,t))}function gEe(e,t){return e.b.Bd(new uve(e,t))}function _Ee(e,t){return e.b.Bd(new dve(e,t))}function vEe(e,t){return e.e=H(e.d.Kb(t),159)}function yEe(e,t,n){return e.lastIndexOf(t,n)}function bEe(e,t,n){return uO(e[t.a],e[n.a])}function xEe(e,t){return EE(t,(fz(),H$),e)}function SEe(e,t){return Sf(t.a.d.p,e.a.d.p)}function CEe(e,t){return Sf(e.a.d.p,t.a.d.p)}function wEe(e,t){return uO(e.c-e.s,t.c-t.s)}function TEe(e,t){return uO(e.b.e.a,t.b.e.a)}function gm(e,t){return uO(e.c.e.a,t.c.e.a)}function _m(e){return e.c?XS(e.c.a,e,0):-1}function vm(e){return e==y5||e==x5||e==b5}function ym(e,t){this.c=e,u_.call(this,e,t)}function EEe(e,t,n){this.a=e,YCe.call(this,t,n)}function DEe(e){this.c=e,Xbe.call(this,Zz,0)}function OEe(e,t,n){this.c=t,this.b=n,this.a=e}function bm(e){$m(),this.d=e,this.a=new If}function kEe(e){km(),this.a=(iy(),new uc(e))}function AEe(e,t){Wd(e.f)?ltt(e,t):B6e(e,t)}function jEe(e,t){dke.call(this,e,e.length,t)}function MEe(e,t){XJ||t&&(e.d=t)}function NEe(e,t){return V(t,15)&&iat(e.c,t)}function PEe(e,t,n){return H(e.c,71).Wk(t,n)}function xm(e,t,n){return H(e.c,71).Xk(t,n)}function FEe(e,t,n){return Bwe(e,H(t,343),n)}function IEe(e,t,n){return Vwe(e,H(t,343),n)}function LEe(e,t,n){return s6e(e,H(t,343),n)}function REe(e,t,n){return n8e(e,H(t,343),n)}function Sm(e,t){return t==null?null:MD(e.b,t)}function Cm(e){return dd(e)?(iv(e),e):e.ue()}function wm(e){return!isNaN(e)&&!isFinite(e)}function Tm(e){vSe(this),Qv(this),Ww(this,e)}function Em(e){af(this),_ke(this.c,0,e.Pc())}function Dm(e,t,n){this.a=e,this.b=t,this.c=n}function zEe(e,t,n){this.a=e,this.b=t,this.c=n}function BEe(e,t,n){this.d=e,this.b=n,this.a=t}function VEe(e){this.a=e,ul(),zT(Date.now())}function HEe(e){G_(e.a),yS(e.c,e.b),e.b=null}function Om(){Om=D,bCt=new se,xCt=new ce}function UEe(){UEe=D,vVt=vS(eJ,jz,1,0,5,1)}function WEe(){WEe=D,QVt=vS(eJ,jz,1,0,5,1)}function GEe(){GEe=D,$Vt=vS(eJ,jz,1,0,5,1)}function km(){km=D,new ppe((iy(),iy(),WJ))}function KEe(e){return HS(),_w((VS(),PCt),e)}function qEe(e){return aD(),_w((cHe(),UCt),e)}function JEe(e){return L1e(),_w((Xze(),twt),e)}function YEe(e){return TC(),_w((Zze(),awt),e)}function XEe(e){return JF(),_w((yJe(),xwt),e)}function ZEe(e){return XC(),_w((oHe(),Twt),e)}function QEe(e){return US(),_w((aHe(),Owt),e)}function $Ee(e){return uC(),_w((sHe(),jwt),e)}function eDe(e){return yz(),_w(($be(),Zwt),e)}function tDe(e){return YT(),_w((aUe(),nTt),e)}function nDe(e){return yA(),_w((oUe(),iTt),e)}function rDe(e){return vA(),_w((WS(),lTt),e)}function Am(e){return k_e(),_w((lRe(),fTt),e)}function jm(e){return EC(),_w((Nx(),BTt),e)}function iDe(e){return lC(),_w((lHe(),eX),e)}function aDe(e){return XM(),_w((SC(),AEt),e)}function oDe(e){return aE(),_w((cUe(),BEt),e)}function sDe(e){return Zk(),_w((sUe(),JEt),e)}function cDe(e,t){if(!e)throw R(new Ks(t))}function Mm(e){if(!e)throw R(new qs(Ypt))}function Nm(e,t){if(e!=t)throw R(new Fo)}function lDe(e,t,n){this.a=e,this.b=t,this.c=n}function uDe(e,t,n){this.a=e,this.b=t,this.c=n}function dDe(e,t,n){this.a=e,this.b=t,this.c=n}function fDe(e,t,n){this.b=e,this.a=t,this.c=n}function pDe(e,t,n){this.b=e,this.c=t,this.a=n}function mDe(e,t,n){this.a=e,this.b=t,this.c=n}function hDe(e,t,n){this.e=t,this.b=e,this.d=n}function Pm(e,t,n){this.b=e,this.a=t,this.c=n}function gDe(e,t,n){return gl(),e.a.Yd(t,n),t}function _De(e){var t=new Ue;return t.e=e,t}function vDe(e){var t=new Xo;return t.b=e,t}function Fm(){Fm=D,EX=new nte,DX=new en}function yDe(){yDe=D,$Dt=new kte,QDt=new Ate}function Im(){Im=D,oZ=new Nne,oOt=new Pne}function bDe(e){return Aw(),_w((BVe(),yOt),e)}function xDe(e){return _z(),_w((exe(),eZ),e)}function SDe(e){return rE(),_w((uUe(),iZ),e)}function CDe(e){return iE(),_w((lUe(),uOt),e)}function wDe(e){return yM(),_w((xWe(),mOt),e)}function TDe(e){return VF(),_w((Hqe(),kOt),e)}function EDe(e){return RN(),_w((uGe(),AOt),e)}function DDe(e){return LVe(),_w((iBe(),jOt),e)}function ODe(e){return Ow(),_w((RVe(),AZ),e)}function kDe(e){return GGe(),_w((zVe(),MZ),e)}function ADe(e){return Lk(),_w((CC(),VOt),e)}function jDe(e){return DC(),_w((eBe(),WOt),e)}function MDe(e){return cN(),_w((pGe(),ZZ),e)}function NDe(e){return BF(),_w((OE(),ckt),e)}function PDe(e){return XT(),_w((HVe(),fQ),e)}function FDe(e){return dC(),_w((UVe(),dkt),e)}function IDe(e){return px(),_w(($ze(),hkt),e)}function LDe(e){return iM(),_w((fGe(),skt),e)}function RDe(e){return kE(),_w((VVe(),qOt),e)}function zDe(e){return mN(),_w((dGe(),ZOt),e)}function BDe(e){return GS(),_w((tBe(),ekt),e)}function VDe(e){return XO(),_w((wC(),u$),e)}function HDe(e){return CF(),_w((gJe(),GMt),e)}function UDe(e){return wD(),_w((WVe(),JMt),e)}function WDe(e){return EA(),_w((dUe(),XMt),e)}function GDe(e){return _A(),_w((SWe(),eNt),e)}function KDe(e){return mI(),_w((iYe(),iNt),e)}function qDe(e){return Rk(),_w((fUe(),W0),e)}function JDe(e){return fC(),_w((nBe(),G0),e)}function Lm(e){return xw(),_w((qVe(),dNt),e)}function YDe(e){return TT(),_w((GVe(),gNt),e)}function XDe(e){return qE(),_w((KVe(),bNt),e)}function Rm(e){return iD(),_w((JVe(),wNt),e)}function zm(e){return WGe(),_w((YVe(),kNt),e)}function ZDe(e){return oE(),_w((XVe(),jNt),e)}function QDe(e){return bw(),_w((iHe(),a2),e)}function $De(e){return mx(),_w((rBe(),QNt),e)}function eOe(e){return Jy(),_w((sBe(),v2),e)}function tOe(e){return Yy(),_w((cBe(),iPt),e)}function nOe(e){return fS(),_w((lBe(),hPt),e)}function rOe(e){return qy(),_w((uBe(),xPt),e)}function iOe(e){return _j(),_w((EUe(),CPt),e)}function aOe(e){return hI(),_w((txe(),LPt),e)}function oOe(e){return JE(),_w((ZVe(),VPt),e)}function sOe(e){return nD(),_w((TUe(),LFt),e)}function cOe(e){return kb(),_w((aBe(),BFt),e)}function lOe(e){return jw(),_w((oBe(),KFt),e)}function uOe(e){return EM(),_w((CWe(),XFt),e)}function dOe(e){return rD(),_w((QVe(),nIt),e)}function fOe(e){return IS(),_w((dBe(),_4),e)}function pOe(e){return E2e(),_w((wUe(),T4),e)}function Bm(e){return wT(),_w(($Ve(),HIt),e)}function mOe(e){return jk(),_w((eHe(),GIt),e)}function hOe(e){return DA(),_w((tHe(),XIt),e)}function gOe(e){return EO(),_w((nHe(),aLt),e)}function _Oe(e){return zx(),_w((fBe(),HLt),e)}function vOe(e){return fT(),_w((Qze(),pDt),e)}function yOe(e){return fN(),_w((mGe(),eDt),e)}function Vm(e){return KS(),_w((rHe(),qLt),e)}function Hm(e){return hJe(),_w((pBe(),Z),e)}function bOe(e){return gF(),_w((wWe(),QLt),e)}function Um(e){return Ml(),_w((jRe(),rRt),e)}function Wm(e){return tO(),_w((dHe(),eRt),e)}function Gm(e){return Nl(),_w((MRe(),oRt),e)}function xOe(e){return pS(),_w((mBe(),sRt),e)}function SOe(e){return SN(),_w((TWe(),dRt),e)}function Km(e){return Pl(),_w((NRe(),ORt),e)}function qm(e){return sE(),_w((hBe(),jRt),e)}function COe(e){return cA(),_w((DWe(),R3),e)}function wOe(e){return PN(),_w((Bqe(),Q),e)}function TOe(e){return OA(),_w((hGe(),a6),e)}function EOe(e){return mM(),_w((gGe(),y6),e)}function DOe(e){return eO(),_w((EWe(),Ozt),e)}function OOe(e){return ZC(),_w((mS(),kzt),e)}function Jm(e){return TO(),_w((DUe(),Azt),e)}function Ym(e){return UM(),_w((_Ge(),Izt),e)}function Xm(e){return ED(),_w((uHe(),$8),e)}function kOe(e){return vj(),_w((OUe(),Vzt),e)}function Zm(e){return JP(),_w((vJe(),Hzt),e)}function AOe(e){return uA(),_w((OWe(),Gzt),e)}function jOe(e){return CM(),_w((ew(),qzt),e)}function MOe(e){return aP(),_w((vGe(),Yzt),e)}function Qm(e){return XR(),_w((kWe(),Xzt),e)}function NOe(e){return Ak(),_w((kUe(),nBt),e)}function POe(e){return EI(),_w((_Je(),lBt),e)}function FOe(e){return TD(),_w((fHe(),pBt),e)}function IOe(e,t){return iv(e),e+(iv(t),t)}function LOe(e){return BOe(),_w((gBe(),_Bt),e)}function ROe(e){return ZO(),_w((AUe(),CBt),e)}function zOe(e){return zYe(),_w((jUe(),ABt),e)}function $m(){$m=D,JNt=(XR(),Z5),s2=j5}function BOe(){BOe=D,mBt=new tAe,hBt=new Lje}function VOe(e){return!e.e&&(e.e=new go),e.e}function eh(e,t){this.c=e,this.a=t,this.b=t-e}function HOe(e,t,n){this.a=e,this.b=t,this.c=n}function UOe(e,t,n){this.a=e,this.b=t,this.c=n}function WOe(e,t,n){this.a=e,this.b=t,this.c=n}function th(e,t,n){this.a=e,this.b=t,this.c=n}function GOe(e,t,n){this.a=e,this.b=t,this.c=n}function KOe(e,t,n){this.a=e,this.b=t,this.c=n}function nh(e,t,n){this.e=e,this.a=t,this.c=n}function qOe(e,t,n){hf(),Ly.call(this,e,t,n)}function JOe(e,t,n){hf(),qMe.call(this,e,t,n)}function YOe(e,t,n){hf(),qMe.call(this,e,t,n)}function XOe(e,t,n){hf(),qMe.call(this,e,t,n)}function rh(e,t,n){hf(),JOe.call(this,e,t,n)}function ih(e,t,n){hf(),JOe.call(this,e,t,n)}function ZOe(e,t,n){hf(),ih.call(this,e,t,n)}function QOe(e,t,n){hf(),YOe.call(this,e,t,n)}function $Oe(e,t,n){hf(),XOe.call(this,e,t,n)}function eke(e){Xh.call(this,e.d,e.c,e.a,e.b)}function tke(e){Xh.call(this,e.d,e.c,e.a,e.b)}function nke(e){this.d=e,uue(this),this.b=lje(e.d)}function rke(e){return HP(),_w((Vqe(),lVt),e)}function ah(e,t){return D_(e),D_(t),new Hge(e,t)}function oh(e,t){return D_(e),D_(t),new Rke(e,t)}function ike(e,t){return D_(e),D_(t),new zke(e,t)}function ake(e,t){return D_(e),D_(t),new Yc(e,t)}function oke(e){return zp(e.b!=0),WC(e,e.a.a)}function ske(e){return zp(e.b!=0),WC(e,e.c.b)}function cke(e){return!e.c&&(e.c=new nr),e.c}function sh(e){var t=new go;return ZUe(t,e),t}function lke(e){var t=new Uo;return ZUe(t,e),t}function uke(e){var t=new Wo;return cqe(t,e),t}function ch(e){var t=new ll;return cqe(t,e),t}function H(e,t){return Vh(e==null||u0e(e,t)),e}function dke(e,t,n){yje.call(this,t,n),this.a=e}function fke(e,t){this.c=e,this.b=t,this.a=!1}function pke(){this.a=`;,;`,this.b=``,this.c=``}function mke(e,t,n){this.b=e,Jbe.call(this,t,n)}function hke(e,t,n){this.c=e,cve.call(this,t,n)}function gke(e,t,n){xu.call(this,e,t),this.b=n}function _ke(e,t,n){B9e(n,0,e,t,n.length,!1)}function lh(e,t,n,r,i){e.b=t,e.c=n,e.d=r,e.a=i}function uh(e,t,n,r,i){e.d=t,e.c=n,e.a=r,e.b=i}function vke(e,t){t&&(e.b=t,e.a=(ev(t),t.a))}function dh(e,t){if(!e)throw R(new Ks(t))}function fh(e,t){if(!e)throw R(new qs(t))}function ph(e,t){if(!e)throw R(new Rme(t))}function mh(e,t){return jl(),Sf(e.d.p,t.d.p)}function yke(e,t){return $C(),uO(e.e.b,t.e.b)}function bke(e,t){return $C(),uO(e.e.a,t.e.a)}function hh(e,t){return Sf(Dh(e.d),Dh(t.d))}function gh(e,t){return t&&q_(e,t.d)?t:null}function xke(e,t){return t==(XR(),Z5)?e.c:e.d}function _h(e){return NT(Wje(Nd(e)?VT(e):e))}function Ske(e){return new zu(e.c+e.b,e.d+e.a)}function Cke(e){return e!=null&&!UO(e,T7,E7)}function wke(e,t){return(VD(e)<<4|VD(t))&xB}function Tke(e,t,n,r,i){e.c=t,e.d=n,e.b=r,e.a=i}function Eke(e){var t=e.b;e.b=e.c,e.c=t}function Dke(e){var t,n=e.d;t=e.a,e.d=t,e.a=n}function Oke(e,t){var n=e.c;return kKe(e,t),n}function kke(e,t){return e.g=t<0?-1:t,e}function vh(e,t){return rGe(e),e.a*=t,e.b*=t,e}function Ake(e,t,n){YWe.call(this,t,n),this.d=e}function yh(e,t,n){Lbe.call(this,e,t),this.c=n}function bh(e,t,n){Lbe.call(this,e,t),this.c=n}function jke(e){GEe(),Yn.call(this),this.ci(e)}function Mke(){lS(),YMe.call(this,(Vl(),I7))}function Nke(e){return vz(),++M9,new rg(0,e)}function Pke(){Pke=D,OHt=(iy(),new Xi(Eq))}function xh(){xh=D,new T0e((fme(),CSt),(ys(),SSt))}function Fke(){Fke=D,USt=vS(AJ,Kz,17,256,0,1)}function Ike(){this.b=z(Ip(dA((UI(),tEt))))}function Lke(e){this.b=e,this.a=Tg(this.b.a).Od()}function Rke(e,t){this.b=e,this.a=t,_ce.call(this)}function zke(e,t){this.a=e,this.b=t,_ce.call(this)}function Bke(e,t,n){this.a=e,Ed.call(this,t,n)}function Vke(e,t,n){this.a=e,Ed.call(this,t,n)}function Sh(e,t,n){AC(e,t,new O_(n))}function Hke(e,t,n){var r=e[t];return e[t]=n,r}function Uke(e){return RS(e.slice(),e)}function Wke(e){var t=e.n;return e.a.b+t.d+t.a}function Gke(e){var t=e.n;return e.e.b+t.d+t.a}function Kke(e){var t=e.n;return e.e.a+t.b+t.c}function qke(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function Ch(e,t){return kx(e,t,e.c.b,e.c),!0}function Jke(e){return e.a?e.a:Fv(e)}function Yke(e){return ay(),eN(e)==ob(tN(e))}function Xke(e){return ay(),tN(e)==ob(eN(e))}function wh(e,t){return zj(e,new xu(t.a,t.b))}function Th(e,t){return mv(),t2e(e,t),new pNe(e,t)}function Zke(e,t){return e.c=t)throw R(new Vpe)}function Fg(e,t){return LD(e,(iv(t),new la(t)))}function Ig(e,t){return LD(e,(iv(t),new pue(t)))}function Tje(e,t,n){return Mpt(e,H(t,12),H(n,12))}function Eje(e){return pT(),H(e,12).g.c.length!=0}function Dje(e){return pT(),H(e,12).e.c.length!=0}function Oje(e,t){return lT(),uO(t.a.o.a,e.a.o.a)}function kje(e,t){(t.Bb&KG)!=0&&!e.a.o&&(e.a.o=t)}function Aje(e,t){t.Ug(`General 'Rotator`,1),wdt(e)}function jje(e,t,n){t.qf(n,z(Ip(N_(e.b,n)))*e.a)}function Mje(e,t,n){return HF(),yT(e,t)&&yT(e,n)}function Lg(e){return aP(),!e.Hc(D5)&&!e.Hc(k5)}function Nje(e){return e.e?EVe(e.e):null}function Rg(e){return Nd(e)?``+e:Qit(e)}function Pje(e){for(var t=e;t.f;)t=t.f;return t}function Fje(e,t,n){return F_(t,0,vAe(t[0],n[0])),t}function zg(e,t,n,r){var i=e.i;i.i=t,i.a=n,i.b=r}function Bg(e,t,n,r){Mf.call(this,e,t,n),this.b=r}function Vg(e,t,n,r,i){KHe.call(this,e,t,n,r,i,-1)}function Hg(e,t,n,r,i){AS.call(this,e,t,n,r,i,-1)}function Ug(e,t,n,r){yh.call(this,e,t,n),this.b=r}function Ije(e){ad.call(this,e,!1),this.a=!1}function Lje(){Zye.call(this,`LOOKAHEAD_LAYOUT`,1)}function Rje(e){this.b=e,pp.call(this,e),hCe(this)}function zje(e){this.b=e,hp.call(this,e),gCe(this)}function Wg(e,t,n){this.a=e,fm.call(this,t,n,5,6)}function Gg(e,t,n,r){this.b=e,Mf.call(this,t,n,r)}function Kg(e,t){this.b=e,xle.call(this,e.b),this.a=t}function Bje(e){this.a=S0e(e.a),this.b=new Em(e.b)}function qg(e,t){A_(),t_e.call(this,e,OD(new ec(t)))}function Jg(e,t){return vz(),++M9,new KMe(e,t,0)}function Vje(e,t){return vz(),++M9,new KMe(6,e,t)}function Yg(e,t){for(iv(t);e.Ob();)t.Cd(e.Pb())}function Xg(e,t){return ld(t)?EPe(e,t):!!dg(e.f,t)}function Hje(e,t){return t.Vh()?bD(e.b,H(t,54)):t}function Uje(e,t){return hm(e.substr(0,t.length),t)}function Zg(e){return new jg(new Gf(e.a.length,e.a))}function Qg(e){return new zu(e.c+e.b/2,e.d+e.a/2)}function Wje(e){return Cf(~e.l&RB,~e.m&RB,~e.h&zB)}function Gje(e){return typeof e===Cz||typeof e===Kpt}function $g(e){e.f=new kxe(e),e.i=new Axe(e),++e.g}function Kje(e){if(!e)throw R(new Io);return e.d}function e_(e){var t=NE(e);return zp(t!=null),t}function qje(e){var t=aQe(e);return zp(t!=null),t}function t_(e,t){var n=e.a.gc();return dVe(t,n),n-t}function n_(e,t){return e.a.zc(t,e)==null}function r_(e,t){return e.a.zc(t,(lp(),xJ))==null}function i_(e){return new Yh(null,rMe(e,e.length))}function a_(e,t,n){return YL(e,H(t,42),H(n,176))}function o_(e,t,n){return Pw(e.a,t),Hke(e.b,t.g,n)}function Jje(e,t,n){Pg(n,e.a.c.length),Fx(e.a,n,t)}function s_(e,t,n,r){hXe(t,n,e.length),Yje(e,t,n,r)}function Yje(e,t,n,r){for(var i=t;i0?r.Math.log(e/t):-100}function tMe(e,t){return yD(e,t)<0?-1:+(yD(e,t)>0)}function m_(e,t){ISe(e,V(t,160)?t:H(t,2036).Rl())}function nMe(e,t){if(e==null)throw R(new Js(t))}function rMe(e,t){return GC(t,e.length),new eAe(e,t)}function iMe(e,t){return t?Ww(e,t):!1}function aMe(){return Is(),K(B(OSt,1),lB,549,0,[cJ])}function h_(e){return e.e==0?e:new c_(-e.e,e.d,e.a)}function oMe(e,t){return uO(e.c.c+e.c.b,t.c.c+t.c.b)}function g_(e,t){kx(e.d,t,e.b.b,e.b),++e.a,e.c=null}function sMe(e,t){return e.c?sMe(e.c,t):Af(e.b,t),e}function cMe(e,t,n){var r=vC(e,t);return Cx(e,t,n),r}function lMe(e,t,n){for(var r=0;r=e.g}function F_(e,t,n){return Jwe(n==null||xst(e,n)),e[t]=n}function LMe(e,t){return Mb(t,e.length+1),e.substr(t)}function RMe(e,t){for(iv(t);e.c=e?new hl:NKe(e-1)}function $_(e){return!e.a&&e.c?e.c.b:e.a}function $Me(e){return V(e,616)?e:new SFe(e)}function ev(e){e.c?ev(e.c):(pO(e),e.d=!0)}function tv(e){e.c?e.c.$e():(e.d=!0,Xnt(e))}function eNe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function nv(e){return e.c.i.c==e.d.i.c}function tNe(e,t){var n=e.Ih(t);n>=0?e.ki(n):J7e(e,t)}function nNe(e,t){e.c<0||e.b.b0;)e=e<<1|e<0;return e}function bNe(e,t){var n=new I_(e);return So(t.c,n),n}function xNe(e,t){e.u.Hc((aP(),D5))&&d9e(e,t),pHe(e,t)}function vv(e,t){return cd(e)===cd(t)||e!=null&&zD(e,t)}function yv(e,t){return ug(e.a,t)?e.b[H(t,22).g]:null}function SNe(){return k_e(),K(B(dTt,1),lB,489,0,[uTt])}function CNe(){return Ml(),K(B(nRt,1),lB,490,0,[tRt])}function wNe(){return Nl(),K(B(aRt,1),lB,558,0,[iRt])}function TNe(){return Pl(),K(B(DRt,1),lB,539,0,[w3])}function bv(e){return!e.n&&(e.n=new Bg(y7,e,1,7)),e.n}function xv(e){return!e.c&&(e.c=new Bg(x7,e,9,9)),e.c}function ENe(e){return!e.c&&(e.c=new pm(f7,e,5,8)),e.c}function DNe(e){return!e.b&&(e.b=new pm(f7,e,4,7)),e.b}function Sv(e){return e.j.c.length=0,LNe(e.c),$Te(e.a),e}function Cv(e){return e.e==Dq&&Ai(e,p1e(e.g,e.b)),e.e}function wv(e){return e.f==Dq&&Mi(e,j4e(e.g,e.b)),e.f}function Tv(e,t,n,r){return oJe(e,t,n,!1),KD(e,r),e}function ONe(e,t){this.b=e,u_.call(this,e,t),hCe(this)}function Ev(e,t){this.b=e,ym.call(this,e,t),gCe(this)}function Dv(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function Ov(e,t){this.b=e,this.c=t,this.a=new cl(this.b)}function kv(e,t){return Mb(t,e.length),e.charCodeAt(t)}function kNe(e,t){gQe(e,z(hw(t,`x`)),z(hw(t,`y`)))}function ANe(e,t){gQe(e,z(hw(t,`x`)),z(hw(t,`y`)))}function Av(e,t){return pO(e),new Yh(e,new bUe(t,e.a))}function jv(e,t){return pO(e),new Yh(e,new _Ve(t,e.a))}function Mv(e,t){return pO(e),new Qwe(e,new hVe(t,e.a))}function jNe(e,t){return pO(e),new $we(e,new gVe(t,e.a))}function MNe(e,t){return new yPe(H(D_(e),50),H(D_(t),50))}function NNe(e,t){return uO(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function PNe(e,t,n){n.a?sw(e,t.b-e.f/2):ow(e,t.a-e.g/2)}function Nv(e,t){return uO(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function FNe(e,t){return Tl(),uO((iv(e),e),(iv(t),t))}function INe(e){return e!=null&&nl(FVt,e.toLowerCase())}function LNe(e){for(var t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function Pv(e){var t=e.b;return!t&&(e.b=t=new fle(e)),t}function Fv(e){return LKe(e)||null}function Iv(e,t){var n=e/t,r=Uy(n);return n>r&&++r,r}function Lv(e,t,n){var r=H(e.d.Kb(n),159);r&&r.Nb(t)}function RNe(e,t,n){Xct(e.a,n),MJe(n),Bet(e.b,n),glt(t,n)}function Rv(e,t,n,r){this.a=e,this.c=t,this.b=n,this.d=r}function zv(e,t,n,r){this.c=e,this.b=t,this.a=n,this.d=r}function Bv(e,t,n,r){this.c=e,this.b=t,this.d=n,this.a=r}function Vv(e,t,n,r){this.c=e,this.d=t,this.b=n,this.a=r}function Hv(e,t,n,r){this.a=e,this.d=t,this.c=n,this.b=r}function zNe(e,t,n,r){this.a=e,this.e=t,this.d=n,this.c=r}function BNe(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function Uv(e,t,n){this.a=pmt,this.d=e,this.b=t,this.c=n}function Wv(e,t,n,r){Qc.call(this,e,t),this.a=n,this.b=r}function VNe(e,t){this.d=(iv(e),e),this.a=16449,this.c=t}function HNe(e){this.a=new go,this.e=vS(F9,Kz,53,e,0,2)}function UNe(e){e.Ug(`No crossing minimization`,1),e.Vg()}function WNe(){Ns.call(this,`There is no more element.`)}function GNe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function KNe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function Gv(e,t,n,r){this.e=e,this.a=t,this.c=n,this.d=r}function Kv(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function qv(e,t,n,r){hf(),vVe.call(this,t,n,r),this.a=e}function qNe(e,t,n,r){hf(),vVe.call(this,t,n,r),this.a=e}function Jv(e,t,n){var r=sft(e);return t.ti(n,r)}function Yv(e){var t,n=(t=new vo,t);return JC(n,e),n}function JNe(e){var t,n=(t=new vo,t);return aN(n,e),n}function YNe(e,t){return xT(t,N_(e.f,t)),null}function XNe(e){return!e.b&&(e.b=new Bg(p7,e,12,3)),e.b}function ZNe(e){return Vh(e==null||Gje(e)&&e.Tm!==E),e}function Xv(e){return e.n&&(e.e!==lmt&&e.je(),e.j=null),e}function Zv(e){if(BO(e.d),e.d.d!=e.c)throw R(new Fo)}function QNe(e){return zp(e.b0&&c3e(this)}function ePe(e,t){this.a=e,Zwe.call(this,e,H(e.d,15).fd(t))}function $v(e,t){return uO($h(e)*Qh(e),$h(t)*Qh(t))}function ey(e,t){return uO($h(e)*Qh(e),$h(t)*Qh(t))}function tPe(e){return wP(e)&&Vs(Fp(qP(e,(fz(),l1))))}function nPe(e,t){return TP(e,H(q(t,(fz(),k1)),17),t)}function rPe(e,t){return H(q(e,(hz(),LQ)),15).Fc(t),t}function iPe(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function aPe(e,t,n,r){this.b=e,this.c=r,Xbe.call(this,t,n)}function oPe(e,t,n){e.i=0,e.e=0,t!=n&&bYe(e,t,n)}function sPe(e,t,n){e.i=0,e.e=0,t!=n&&xYe(e,t,n)}function cPe(e,t,n){return Al(),IO(H(N_(e.e,t),529),n)}function ty(e){return e.f||=new Jc(e,e.c)}function lPe(e,t){return jD(e.j,t.s,t.c)+jD(t.e,e.s,e.c)}function uPe(e,t){e.e&&!e.e.a&&($fe(e.e,t),uPe(e.e,t))}function ny(e,t){e.d&&!e.d.a&&($fe(e.d,t),ny(e.d,t))}function dPe(e,t){return-uO($h(e)*Qh(e),$h(t)*Qh(t))}function fPe(e){return H(e.ld(),149).Pg()+`:`+FO(e.md())}function pPe(){dN(this,new F),this.wb=(j_(),V7),Nc()}function mPe(e){this.b=new go,nE(this.b,this.b),this.a=e}function hPe(e,t){new ll,this.a=new cs,this.b=e,this.c=t}function ry(){ry=D,uCt=new ne,dCt=new ne,fCt=new re}function iy(){iy=D,WJ=new A,GJ=new M,KJ=new ee}function gPe(){gPe=D,nY=new Le,XCt=new JAe,YCt=new Re}function ay(){ay=D,LY=new go,kTt=new ho,OTt=new go}function oy(e,t){if(e==null)throw R(new Js(t));return e}function sy(e){return!e.a&&(e.a=new Bg(b7,e,10,11)),e.a}function cy(e){return!e.q&&(e.q=new Bg(F7,e,11,10)),e.q}function ly(e){return!e.s&&(e.s=new Bg(k7,e,21,17)),e.s}function uy(e){return D_(e),o2e(new jg(Yf(e.a.Kc(),new f)))}function dy(e,t){return sD(e),sD(t),Mme(H(e,22),H(t,22))}function fy(e,t,n){AC(e,t,new fi(Cm(n)))}function _Pe(e,t,n,r,i,a){AS.call(this,e,t,n,r,i,a?-2:-1)}function vPe(e,t,n,r){Lbe.call(this,t,n),this.b=e,this.a=r}function yPe(e,t){Ss.call(this,new bje(e)),this.a=e,this.b=t}function bPe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function xPe(e){Im();var t=H(e.g,10);t.n.a=e.d.c+t.d.b}function py(){py=D;var e,t=!M$e();e=new x,FSt=t?new b:e}function SPe(e){return iy(),V(e,59)?new ihe(e):new ep(e)}function my(e){return V(e,16)?new qh(H(e,16)):lke(e.Kc())}function CPe(e){return new _Ce(e,e.e.Rd().gc()*e.c.Rd().gc())}function wPe(e){return new vCe(e,e.e.Rd().gc()*e.c.Rd().gc())}function TPe(e){return e&&e.hashCode?e.hashCode():cp(e)}function EPe(e,t){return t==null?!!dg(e.f,null):zAe(e.i,t)}function DPe(e,t){var n=FSe(e.a,t);return n&&(t.d=null),n}function OPe(e,t,n){return e.f?e.f.ef(t,n):!1}function hy(e,t,n,r){F_(e.c[t.g],n.g,r),F_(e.c[n.g],t.g,r)}function gy(e,t,n,r){F_(e.c[t.g],t.g,n),F_(e.b[t.g],t.g,r)}function kPe(e,t,n){return z(Ip(n.a))<=e&&z(Ip(n.b))>=t}function _y(e,t){this.g=e,this.d=K(B(vX,1),dU,10,0,[t])}function APe(e){this.c=e,this.b=new zc(H(D_(new ze),50))}function jPe(e){this.c=e,this.b=new zc(H(D_(new Bt),50))}function MPe(e){this.b=e,this.a=new zc(H(D_(new St),50))}function NPe(){this.b=new Uo,this.d=new ll,this.e=new Hpe}function PPe(){this.c=new jc,this.d=new jc,this.e=new jc}function vy(){this.a=new cs,this.b=(Dw(3,cB),new dS(3))}function yy(e,t){this.e=e,this.a=eJ,this.b=Rat(t),this.c=t}function by(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function FPe(e,t,n,r,i,a){this.a=e,gKe.call(this,t,n,r,i,a)}function IPe(e,t,n,r,i,a){this.a=e,gKe.call(this,t,n,r,i,a)}function xy(e,t,n,r,i,a,o){return new zze(e.e,t,n,r,i,a,o)}function LPe(e,t,n){return n>=0&&hm(e.substr(n,t.length),t)}function RPe(e,t){return V(t,149)&&hm(e.b,H(t,149).Pg())}function zPe(e,t){return e.a?t.Gh().Kc():H(t.Gh(),71).Ii()}function BPe(e,t){var n=e.b.Qc(t);return Kze(n,e.b.gc()),n}function Sy(e,t){if(e==null)throw R(new Js(t));return e}function Cy(e){return e.u||=(Hx(e),new wTe(e,e)),e.u}function wy(e){this.a=(iy(),V(e,59)?new ihe(e):new ep(e))}function Ty(e){return H(PT(e,16),29)||e.ii()}function Ey(e,t){var n=Fc(e.Rm);return t==null?n:n+`: `+t}function Dy(e,t,n){return bS(t,n,e.length),e.substr(t,n-t)}function VPe(e,t){lm.call(this),cGe(this),this.a=e,this.c=t}function HPe(e){!e||Ey(e,e.ie())}function Oy(e){ehe(),r.setTimeout(function(){throw e},0)}function ky(){return L1e(),K(B(ewt,1),lB,436,0,[$Ct,QCt])}function UPe(){return TC(),K(B(iwt,1),lB,435,0,[nwt,rwt])}function WPe(){return EC(),K(B(zY,1),lB,432,0,[zTt,RY])}function GPe(){return fT(),K(B(fDt,1),lB,517,0,[TX,dDt])}function KPe(){return px(),K(B(mkt,1),lB,429,0,[fkt,pkt])}function Ay(){return DC(),K(B(UOt,1),lB,428,0,[FZ,HOt])}function qPe(){return LVe(),K(B(DZ,1),lB,431,0,[TZ,EZ])}function JPe(){return fC(),K(B(lNt,1),lB,430,0,[sNt,cNt])}function YPe(){return mx(),K(B(ZNt,1),lB,531,0,[l2,c2])}function XPe(){return jw(),K(B(GFt,1),lB,501,0,[d4,f4])}function ZPe(){return Jy(),K(B(_2,1),lB,523,0,[g2,h2])}function QPe(){return Yy(),K(B(rPt,1),lB,522,0,[y2,b2])}function $Pe(){return fS(),K(B(mPt,1),lB,528,0,[k2,O2])}function eFe(){return GS(),K(B($Ot,1),lB,488,0,[QOt,HZ])}function jy(){return zx(),K(B(VLt,1),lB,491,0,[zLt,BLt])}function My(){return hJe(),K(B(XLt,1),lB,492,0,[JLt,YLt])}function tFe(){return kb(),K(B(zFt,1),lB,433,0,[l4,RFt])}function nFe(){return IS(),K(B(QFt,1),lB,434,0,[g4,ZFt])}function rFe(){return qy(),K(B(bPt,1),lB,465,0,[j2,M2])}function iFe(){return pS(),K(B(t3,1),lB,438,0,[e3,$4])}function aFe(){return sE(),K(B(ARt,1),lB,437,0,[T3,kRt])}function oFe(){return BOe(),K(B(gBt,1),lB,347,0,[mBt,hBt])}function Ny(e,t,n,r){return n>=0?e.Uh(t,n,r):e.Ch(null,n,r)}function Py(e){return e.b.b==0?e.a.sf():oke(e.b)}function sFe(e){if(e.p!=5)throw R(new Mo);return Sg(e.f)}function cFe(e){if(e.p!=5)throw R(new Mo);return Sg(e.k)}function lFe(e){return cd(e.a)===cd((dT(),tHt))&&zlt(e),e.a}function uFe(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=MAe(e.c,e.b,e.a))}function dFe(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=MAe(e.c,e.b,e.a))}function fFe(e,t){Gle(this,new zu(e.a,e.b)),Kle(this,ch(t))}function Fy(){Cs.call(this,new sl(LC(12))),dCe(!0),this.a=2}function Iy(e,t,n){vz(),po.call(this,e),this.b=t,this.a=n}function Ly(e,t,n){hf(),co.call(this,t),this.a=e,this.b=n}function pFe(e){var t=e.c.d.b;e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function mFe(e){return e.b==0?null:(zp(e.b!=0),WC(e,e.a.a))}function Ry(e,t){return t==null?sd(dg(e.f,null)):Xl(e.i,t)}function hFe(e,t,n,r,i){return new o5e(e,(HS(),jCt),t,n,r,i)}function zy(e,t){return Pze(t),zGe(e,vS(F9,NB,28,t,15,1),t)}function By(e,t){return oy(e,`set1`),oy(t,`set2`),new n_e(e,t)}function Vy(e,t){return uJ[e.charCodeAt(0)]??e}function gFe(e,t){var n=t,r=new ue;return zut(e,n,r),r.d}function _Fe(e,t,n,r){var i=new zTe;t.a[n.g]=i,o_(e.b,r,i)}function vFe(e,t){return um(Ewe(TGe(e.f,t)),e.f.d)}function Hy(e){var t;dKe(e.a),Jxe(e.a),t=new ga(e.a),UQe(t)}function yFe(e,t){mat(e,!0),UC(e.e.Rf(),new pDe(e,!0,t))}function bFe(e,t){return ay(),e==ob(eN(t))||e==ob(tN(t))}function xFe(e,t){return $C(),H(q(t,(QI(),o4)),17).a==e}function Uy(e){return Math.max(Math.min(e,Ez),-2147483648)|0}function SFe(e){this.a=H(D_(e),277),this.b=(iy(),new OCe(e))}function CFe(e,t,n){this.i=new go,this.b=e,this.g=t,this.a=n}function wFe(e,t,n){this.a=new go,this.e=e,this.f=t,this.c=n}function Wy(e,t,n){this.c=new go,this.e=e,this.f=t,this.b=n}function TFe(e){lm.call(this),cGe(this),this.a=e,this.c=!0}function EFe(e){function t(){}return t.prototype=e||{},new t}function DFe(e){if(e.Ae())return null;var t=e.n;return $q[t]}function Gy(e){return e.Db>>16==3?H(e.Cb,27):null}function Ky(e){return e.Db>>16==9?H(e.Cb,27):null}function OFe(e){return e.Db>>16==6?H(e.Cb,74):null}function qy(){qy=D,j2=new Tye(AV,0),M2=new Tye(jV,1)}function Jy(){Jy=D,g2=new lye(jV,0),h2=new lye(AV,1)}function Yy(){Yy=D,y2=new uye(bht,0),b2=new uye(`UP`,1)}function kFe(){kFe=D,kSt=dD((Is(),K(B(OSt,1),lB,549,0,[cJ])))}function AFe(e){var t=new cge(LC(e.length));return lYe(t,e),t}function jFe(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function MFe(e,t){return PJe(e,t)?(JGe(e),!0):!1}function Xy(e,t){if(t==null)throw R(new No);return G$e(e,t)}function Zy(e,t){var n=e.q.getHours();e.q.setDate(t),lL(e,n)}function Qy(e,t,n){var r=e.Ih(t);r>=0?e.bi(r,n):unt(e,t,n)}function $y(e,t){var n=e.Ih(t);return n>=0?e.Wh(n):v9e(e,t)}function NFe(e,t){var n;for(D_(t),n=e.a;n;n=n.c)t.Yd(n.g,n.i)}function eb(e,t,n){e.b=new Rw(pYe(e,t,n).c.length)}function tb(e,t,n){db(),e&&fv(mVt,e,t),e&&fv(pVt,e,n)}function nb(e,t){return yDe(),lp(),H(t.a,17).a0}function ib(e){var t=e.d;return t=e.bj(e.f),SS(e,t),t.Ob()}function IFe(e,t){var n=new wAe(t);return c8e(n,e),new Em(n)}function LFe(e){if(e.p!=0)throw R(new Mo);return pd(e.f,0)}function RFe(e){if(e.p!=0)throw R(new Mo);return pd(e.k,0)}function zFe(e){return e.Db>>16==7?H(e.Cb,241):null}function ab(e){return e.Db>>16==6?H(e.Cb,241):null}function BFe(e){return e.Db>>16==7?H(e.Cb,167):null}function ob(e){return e.Db>>16==11?H(e.Cb,27):null}function sb(e){return e.Db>>16==17?H(e.Cb,29):null}function VFe(e){return e.Db>>16==3?H(e.Cb,155):null}function HFe(e){var t;return pO(e),t=new Uo,Av(e,new wue(t))}function cb(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.ve(t))}function lb(e,t){var n=e.q.getHours();e.q.setMonth(t),lL(e,n)}function UFe(e,t){cCe(this),this.f=t,this.g=e,Xv(this),this.je()}function WFe(e,t){this.a=e,this.c=Tf(this.a),this.b=new by(t)}function GFe(e,t,n){this.a=t,this.c=e,this.b=(D_(n),new Em(n))}function KFe(e,t,n){this.a=t,this.c=e,this.b=(D_(n),new Em(n))}function qFe(e){this.a=e,this.b=vS(o2,Kz,2043,e.e.length,0,2)}function ub(){this.a=new Pd,this.e=new Uo,this.g=0,this.i=0}function db(){db=D,mVt=new ho,pVt=new ho,Cbe(hCt,new Boe)}function JFe(){JFe=D,MNt=xg(new uv,(XM(),aX),(_z(),JX))}function YFe(){YFe=D,NNt=xg(new uv,(XM(),aX),(_z(),JX))}function XFe(){XFe=D,FNt=xg(new uv,(XM(),aX),(_z(),JX))}function ZFe(){ZFe=D,$Nt=zh(new uv,(XM(),aX),(_z(),MX))}function fb(){fb=D,f2=zh(new uv,(XM(),aX),(_z(),MX))}function QFe(){QFe=D,nPt=zh(new uv,(XM(),aX),(_z(),MX))}function $Fe(){$Fe=D,aPt=zh(new uv,(XM(),aX),(_z(),MX))}function pb(e,t,n,r,i,a){return new aC(e.e,t,e.Lj(),n,r,i,a)}function mb(e,t,n){return t==null?qN(e.f,null,n):mO(e.i,t,n)}function hb(e,t){e.c&&JS(e.c.g,e),e.c=t,e.c&&Af(e.c.g,e)}function gb(e,t){e.c&&JS(e.c.a,e),e.c=t,e.c&&Af(e.c.a,e)}function _b(e,t){e.i&&JS(e.i.j,e),e.i=t,e.i&&Af(e.i.j,e)}function vb(e,t){e.d&&JS(e.d.e,e),e.d=t,e.d&&Af(e.d.e,e)}function eIe(e,t){e.a&&JS(e.a.k,e),e.a=t,e.a&&Af(e.a.k,e)}function tIe(e,t){e.b&&JS(e.b.f,e),e.b=t,e.b&&Af(e.b.f,e)}function nIe(e,t){R_(e,e.b,e.c),H(e.b.b,68),t&&H(t.b,68).b}function rIe(e,t){return uO(H(e.c,65).c.e.b,H(t.c,65).c.e.b)}function iIe(e,t){return uO(H(e.c,65).c.e.a,H(t.c,65).c.e.a)}function aIe(e){return oD(),lp(),H(e.a,86).d.e!=0}function oIe(e,t){V(e.Cb,184)&&(H(e.Cb,184).tb=null),Bw(e,t)}function yb(e,t){V(e.Cb,90)&&eP(Hx(H(e.Cb,90)),4),Bw(e,t)}function sIe(e,t){vQe(e,t),V(e.Cb,90)&&eP(Hx(H(e.Cb,90)),2)}function cIe(e,t){t.c!=null&&z_(e,new O_(t.c))}function lIe(e){var t,n=(Nc(),t=new vo,t);return JC(n,e),n}function uIe(e){var t,n=(Nc(),t=new vo,t);return JC(n,e),n}function dIe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function fIe(e,t,n){return Af(e.a,(mv(),t2e(t,n),new Zc(t,n))),e}function bb(e,t){return Gl(),mC(t)?new nAe(t,e):new od(t,e)}function xb(e){return cI(),yD(e,0)>=0?bk(e):h_(bk(YS(e)))}function pIe(e){var t=H(Uke(e.b),9);return new Dm(e.a,t,e.c)}function mIe(e,t){var n=H(MD(ty(e.a),t),16);return n?n.gc():0}function hIe(e,t,n){var r;AZe(t,n,e.c.length),r=n-t,wge(e.c,t,r)}function Sb(e,t,n){AZe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function Cb(e){this.c=new ll,this.b=e.b,this.d=e.c,this.a=e.a}function gIe(e){this.a=r.Math.cos(e),this.b=r.Math.sin(e)}function wb(e,t,n,r){this.c=e,this.d=r,eIe(this,t),tIe(this,n)}function Tb(e,t){_me.call(this,new sl(LC(e))),Dw(t,emt),this.a=t}function Eb(e,t,n){return new o5e(e,(HS(),ACt),null,!1,t,n)}function _Ie(e,t,n){return new o5e(e,(HS(),MCt),t,n,null,!1)}function vIe(){return aD(),K(B($J,1),lB,108,0,[HCt,ZJ,QJ])}function yIe(){return uC(),K(B(Awt,1),lB,472,0,[gY,hY,mY])}function bIe(){return US(),K(B(Dwt,1),lB,471,0,[fY,dY,pY])}function xIe(){return XC(),K(B(lY,1),lB,237,0,[oY,sY,cY])}function SIe(){return lC(),K(B(TEt,1),lB,391,0,[$Y,CEt,wEt])}function CIe(){return Aw(),K(B(gZ,1),lB,372,0,[hZ,mZ,pZ])}function wIe(){return Ow(),K(B(NOt,1),lB,322,0,[kZ,OZ,MOt])}function TIe(){return GGe(),K(B(IOt,1),lB,351,0,[POt,jZ,FOt])}function EIe(){return kE(),K(B(KOt,1),lB,460,0,[GOt,IZ,LZ])}function DIe(){return XT(),K(B(dQ,1),lB,299,0,[lkt,uQ,lQ])}function OIe(){return dC(),K(B(ukt,1),lB,311,0,[mQ,hQ,pQ])}function kIe(){return wD(),K(B(qMt,1),lB,390,0,[w0,KMt,T0])}function AIe(){return xw(),K(B(uNt,1),lB,463,0,[J0,K0,q0])}function jIe(){return TT(),K(B(hNt,1),lB,387,0,[fNt,pNt,mNt])}function Db(){return qE(),K(B(yNt,1),lB,349,0,[vNt,_Nt,Y0])}function MIe(){return iD(),K(B(CNt,1),lB,350,0,[xNt,SNt,X0])}function NIe(){return WGe(),K(B(ONt,1),lB,352,0,[DNt,TNt,ENt])}function PIe(){return oE(),K(B($0,1),lB,388,0,[ANt,Q0,Z0])}function FIe(){return bw(),K(B(KNt,1),lB,464,0,[n2,r2,i2])}function Ob(e){return LE(K(B(X3,1),Kz,8,0,[e.i.n,e.n,e.a]))}function IIe(){return JE(),K(B(BPt,1),lB,392,0,[zPt,RPt,R2])}function LIe(){LIe=D,VFt=xg(new uv,(_j(),F2),(hI(),EPt))}function kb(){kb=D,l4=new kye(`DFS`,0),RFt=new kye(`BFS`,1)}function RIe(e,t,n){var r=new gn;r.b=t,r.a=n,++t.b,Af(e.d,r)}function zIe(e,t,n){var r=new Ld(n.d);um(r,e),gQe(t,r.a,r.b)}function BIe(e,t){eCe(e,Sg(Rb(Og(t,24),Hmt)),Sg(Rb(t,Hmt)))}function Ab(e,t){if(e<0||e>t)throw R(new Ws(eht+e+tht+t))}function jb(e,t){if(e<0||e>=t)throw R(new Ws(eht+e+tht+t))}function Mb(e,t){if(e<0||e>=t)throw R(new the(eht+e+tht+t))}function Nb(e,t){this.b=(iv(e),e),this.a=(t&JB)==0?t|64|qz:t}function Pb(e){var t;return pO(e),t=(ry(),ry(),dCt),HWe(e,t)}function VIe(e,t,n){var r=kL(e,t,!1);return r.b<=t&&r.a<=n}function Fb(){return KS(),K(B(KLt,1),lB,439,0,[ULt,GLt,WLt])}function HIe(){return EO(),K(B(iLt,1),lB,394,0,[nLt,rLt,tLt])}function UIe(){return jk(),K(B(WIt,1),lB,445,0,[E4,D4,UIt])}function WIe(){return DA(),K(B(YIt,1),lB,456,0,[KIt,JIt,qIt])}function GIe(){return rD(),K(B(tIt,1),lB,393,0,[v4,$Ft,eIt])}function KIe(){return wT(),K(B(VIt,1),lB,300,0,[zIt,BIt,RIt])}function qIe(){return ED(),K(B(Q8,1),lB,346,0,[X8,Y8,Z8])}function JIe(){return tO(),K(B(Q4,1),lB,444,0,[$Lt,X4,Z4])}function YIe(){return ZC(),K(B(R8,1),lB,278,0,[F8,I8,L8])}function XIe(){return TD(),K(B(fBt,1),lB,280,0,[uBt,c7,dBt])}function Ib(e){return D_(e),V(e,16)?new Em(H(e,16)):sh(e.Kc())}function Lb(e,t){return e&&e.equals?e.equals(t):cd(e)===cd(t)}function Rb(e,t){return NT(mje(Nd(e)?VT(e):e,Nd(t)?VT(t):t))}function zb(e,t){return NT(hje(Nd(e)?VT(e):e,Nd(t)?VT(t):t))}function ZIe(e,t){return NT(gje(Nd(e)?VT(e):e,Nd(t)?VT(t):t))}function QIe(e,t){var n=(iv(e),e).g;return qwe(!!n),iv(t),n(t)}function $Ie(e,t){var n,r=t_(e,t);return n=e.a.fd(r),new e_e(e,n)}function eLe(e){return e.Db>>16==6?H(vet(e),241):null}function tLe(e){if(e.p!=2)throw R(new Mo);return Sg(e.f)&xB}function nLe(e){if(e.p!=2)throw R(new Mo);return Sg(e.k)&xB}function W(e){return zp(e.ar)}function vLe(e,t){var n=IUe(t);return H(N_(e.c,n),17).a}function Ub(e,t,n){var r=e.d[t.p];e.d[t.p]=e.d[n.p],e.d[n.p]=r}function yLe(e,t,n){var r;e.n&&t&&n&&(r=new Aoe,Af(e.e,r))}function bLe(e,t){if(n_(e.a,t),t.d)throw R(new Ns(iht));t.d=e}function xLe(e,t){this.a=new go,this.d=new go,this.f=e,this.c=t}function SLe(){this.c=new MSe,this.a=new xVe,this.b=new $o,M_e()}function CLe(){cE(),this.b=new ho,this.a=new ho,this.c=new go}function wLe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function TLe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function ELe(e,t,n,r,i,a){AGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function DLe(e,t,n,r,i,a){jGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function OLe(e,t,n,r,i,a){WBe.call(this,e,t,n,r,i),a&&(this.o=-2)}function kLe(e,t,n,r,i,a){PGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function ALe(e,t,n,r,i,a){GBe.call(this,e,t,n,r,i),a&&(this.o=-2)}function jLe(e,t,n,r,i,a){MGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function MLe(e,t,n,r,i,a){NGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function NLe(e,t,n,r,i,a){KBe.call(this,e,t,n,r,i),a&&(this.o=-2)}function PLe(e,t,n,r){co.call(this,n),this.b=e,this.c=t,this.d=r}function FLe(e,t){this.f=e,this.a=(lS(),SHt),this.c=SHt,this.b=t}function ILe(e,t){this.g=e,this.d=(lS(),CHt),this.a=CHt,this.b=t}function LLe(e,t){!e.c&&(e.c=new kT(e,0)),JL(e.c,(wR(),p9),t)}function RLe(e,t){return wtt(e,t,V(t,102)&&(H(t,19).Bb&XB)!=0)}function zLe(e,t){return tMe(zT(e.q.getTime()),zT(t.q.getTime()))}function BLe(e){return Bh(e.e.Rd().gc()*e.c.Rd().gc(),16,new ule(e))}function VLe(e){return!!e.u&&Sx(e.u.a).i!=0&&!(e.n&&J0e(e.n))}function HLe(e){return!!e.a&&$S(e.a.a).i!=0&&!(e.b&&Y0e(e.b))}function ULe(e,t){return t==0?!!e.o&&e.o.f!=0:G1e(e,t)}function WLe(e,t,n){var r=H(e.Zb().xc(t),16);return!!r&&r.Hc(n)}function GLe(e,t,n){var r=H(e.Zb().xc(t),16);return!!r&&r.Mc(n)}function KLe(e,t){var n=1-t;return e.a[n]=Fw(e.a[n],n),Fw(e,t)}function qLe(e,t){var n,r=Rb(e,$B);return n=Dg(t,32),zb(n,r)}function JLe(e,t,n){d4e(new GFe((D_(e),new Em(e)),t,n))}function Wb(e,t,n){f4e(new KFe((D_(e),new Em(e)),t,n))}function Gb(e,t,n,r,i,a){return oJe(e,t,n,a),GD(e,r),MZe(e,i),e}function YLe(e,t,n,r){return e.a+=``+Dy(t==null?Mz:FO(t),n,r),e}function Kb(e,t){this.a=e,Qi.call(this,e),Ab(t,e.gc()),this.b=t}function XLe(e){this.a=vS(eJ,jz,1,CE(r.Math.max(8,e))<<1,5,1)}function qb(e){return H(rA(e,vS(vX,dU,10,e.c.length,0,1)),199)}function Jb(e){return H(rA(e,vS(XEt,Wht,18,e.c.length,0,1)),483)}function ZLe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(``+e.e):e.c}function Yb(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function QLe(e){return zp(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function $Le(e,t,n){e.a=t,e.c=n,e.b.a.$b(),Qv(e.d),Ro(e.e.a.c,0)}function eRe(e,t){var n;e.e=new _s,n=IF(t),bf(n,e.c),zit(e,n,0)}function Xb(e,t,n,r){var i=new Xae;i.a=t,i.b=n,i.c=r,Ch(e.a,i)}function Zb(e,t,n,r){var i=new Xae;i.a=t,i.b=n,i.c=r,Ch(e.b,i)}function tRe(e,t,n){if(e<0||tn)throw R(new Ws(w5e(e,t,n)))}function Qb(e,t){if(e<0||e>=t)throw R(new Ws(O7e(e,t)));return e}function nRe(e){if(!(`stack`in e))try{throw e}catch{}return e}function $b(e){return Al(),V(e.g,10)?H(e.g,10):null}function ex(e){return!Pv(e).dc()&&(rSe(e,new g),!0)}function tx(e){var t;return Nd(e)?(t=e,t==-0?0:t):WUe(e)}function nx(e,t){return V(t,44)?x2e(e.a,H(t,44)):!1}function rRe(e,t){return V(t,44)?x2e(e.a,H(t,44)):!1}function iRe(e,t){return V(t,44)?x2e(e.a,H(t,44)):!1}function aRe(e){var t;return ev(e),t=new ie,Hc(e.a,new xue(t)),t}function rx(){var e,t=(n=(e=new vo,e),n),n;return Af(gHt,t),t}function oRe(e){var t;return ev(e),t=new ae,Hc(e.a,new Sue(t)),t}function sRe(e,t){return e.a<=e.b&&(t.Dd(e.a++),!0)}function cRe(e){tT.call(this,e,(HS(),kCt),null,!1,null,!1)}function lRe(){lRe=D,fTt=dD((k_e(),K(B(dTt,1),lB,489,0,[uTt])))}function uRe(){uRe=D,VNt=vNe(kD(1),kD(4)),BNt=vNe(kD(1),kD(2))}function dRe(e,t){return new UOe(t,Dp(Tf(t.e),e,e),(lp(),!0))}function fRe(e){return new dS((Dw(e,dB),IC(vO(vO(5,e),e/10|0))))}function pRe(e){return Bh(e.e.Rd().gc()*e.c.Rd().gc(),273,new lle(e))}function mRe(e){return H(rA(e,vS(cDt,Ght,12,e.c.length,0,1)),2042)}function hRe(e){return fb(),!Vx(e)&&!(!Vx(e)&&e.c.i.c==e.d.i.c)}function gRe(e,t){return QC(),H(q(t,(QI(),i4)),17).a>=e.gc()}function ix(e,t){Bft(t,e),Eke(e.d),Eke(H(q(e,(fz(),_1)),214))}function _Re(e,t){Vft(t,e),Dke(e.d),Dke(H(q(e,(fz(),_1)),214))}function vRe(e,t,n){e.d&&JS(e.d.e,e),e.d=t,e.d&&pg(e.d.e,n,e)}function yRe(e,t,n){return n.f.c.length>0?a_(e.a,t,n):a_(e.b,t,n)}function bRe(e,t,n){var r=b1e();try{return FTe(e,t,n)}finally{Yze(r)}}function ax(e,t){var n=Xy(e,t),r=null;return n&&(r=n.pe()),r}function ox(e,t){var n=Xy(e,t),r=null;return n&&(r=n.se()),r}function sx(e,t){var n=vC(e,t),r=null;return n&&(r=n.se()),r}function cx(e,t){var n=Xy(e,t),r=null;return n&&(r=P5e(n)),r}function xRe(e,t,n){var r=zk(n);return mot(e.g,r,t),mot(e.i,t,n),t}function SRe(e,t,n){this.d=new mde(this),this.e=e,this.i=t,this.f=n}function CRe(e,t,n,r){this.e=null,this.c=e,this.d=t,this.a=n,this.b=r}function wRe(e,t,n,r){ySe(this),this.c=e,this.e=t,this.f=n,this.b=r}function TRe(e,t,n,r){this.d=e,this.n=t,this.g=n,this.o=r,this.p=-1}function ERe(e,t,n,r){return V(n,59)?new ZCe(e,t,n,r):new Sje(e,t,n,r)}function lx(e){return V(e,16)?H(e,16).dc():!e.Kc().Ob()}function DRe(e){if(e.e.g!=e.b)throw R(new Fo);return!!e.c&&e.d>0}function ux(e){return zp(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function ORe(e,t){iv(t),F_(e.a,e.c,t),e.c=e.c+1&e.a.length-1,Z2e(e)}function dx(e,t){iv(t),e.b=e.b-1&e.a.length-1,F_(e.a,e.b,t),Z2e(e)}function kRe(e){var t=e.Gh();this.a=V(t,71)?H(t,71).Ii():t.Kc()}function ARe(e){return new Nb(oGe(H(e.a.md(),16).gc(),e.a.ld()),16)}function jRe(){jRe=D,rRt=dD((Ml(),K(B(nRt,1),lB,490,0,[tRt])))}function MRe(){MRe=D,oRt=dD((Nl(),K(B(aRt,1),lB,558,0,[iRt])))}function NRe(){NRe=D,ORt=dD((Pl(),K(B(DRt,1),lB,539,0,[w3])))}function PRe(){return Zk(),K(B(qEt,1),lB,389,0,[hX,GEt,mX,KEt])}function FRe(){return HS(),K(B(NCt,1),lB,304,0,[kCt,ACt,jCt,MCt])}function IRe(){return yA(),K(B(rTt,1),lB,332,0,[TY,wY,EY,DY])}function LRe(){return vA(),K(B(PY,1),lB,406,0,[jY,AY,MY,NY])}function RRe(){return YT(),K(B(tTt,1),lB,417,0,[CY,SY,$wt,eTt])}function zRe(){return aE(),K(B(zEt,1),lB,416,0,[sX,uX,cX,lX])}function BRe(){return iE(),K(B(lOt,1),lB,421,0,[sZ,cZ,lZ,cOt])}function VRe(){return rE(),K(B(ZDt,1),lB,371,0,[XDt,rZ,YDt,nZ])}function HRe(){return EA(),K(B(k0,1),lB,203,0,[O0,YMt,D0,E0])}function URe(){return Rk(),K(B(oNt,1),lB,284,0,[V0,aNt,H0,U0])}function WRe(e){var t;return e.j==(XR(),Y5)&&(t=set(e),op(t,j5))}function GRe(e,t){var n=t.a;hb(n,t.c.d),vb(n,t.d.d),bT(n.a,e.n)}function KRe(e,t){var n=H(_C(e.b,t),67);return!n&&(n=new ll),n}function fx(e){return Al(),V(e.g,154)?H(e.g,154):null}function qRe(e){e.a=null,e.e=null,Ro(e.b.c,0),Ro(e.f.c,0),e.c=null}function px(){px=D,fkt=new Kve(DV,0),pkt=new Kve(`TOP_LEFT`,1)}function mx(){mx=D,l2=new aye(`UPPER`,0),c2=new aye(`LOWER`,1)}function JRe(e,t){return Of(new zu(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function YRe(e,t){return H(np(Fg(H(Zx(e.k,t),15).Oc(),_Z)),113)}function XRe(e,t){return H(np(Ig(H(Zx(e.k,t),15).Oc(),_Z)),113)}function ZRe(){return _j(),K(B(SPt,1),lB,405,0,[N2,P2,F2,I2])}function QRe(){return nD(),K(B(IFt,1),lB,353,0,[c4,s4,FFt,PFt])}function $Re(){return E2e(),K(B(LIt,1),lB,354,0,[IIt,w4,FIt,C4])}function eze(){return Ak(),K(B(r7,1),lB,386,0,[t7,n7,e7,$5])}function tze(){return vj(),K(B(i5,1),lB,291,0,[r5,e5,t5,n5])}function nze(){return TO(),K(B(U8,1),lB,223,0,[H8,B8,z8,V8])}function rze(){return ZO(),K(B(SBt,1),lB,320,0,[xBt,vBt,bBt,yBt])}function ize(){return zYe(),K(B(kBt,1),lB,415,0,[EBt,DBt,TBt,OBt])}function aze(e){return db(),Xg(mVt,e)?H(N_(mVt,e),341).Qg():null}function hx(e,t,n){return t<0?v9e(e,n):H(n,69).wk().Bk(e,e.hi(),t)}function oze(e,t,n){var r=zk(n);return mot(e.j,r,t),fv(e.k,t,n),t}function sze(e,t,n){var r=zk(n);return mot(e.d,r,t),fv(e.e,t,n),t}function cze(e){var t=(Mc(),n=new Wn,n),n;return e&&mF(t,e),t}function lze(e){var t=e.aj(e.i);return e.i>0&&JI(e.g,0,t,0,e.i),t}function uze(e,t){for(var n=e.j.c.length;n>24}function mze(e){if(e.p!=1)throw R(new Mo);return Sg(e.k)<<24>>24}function hze(e){if(e.p!=7)throw R(new Mo);return Sg(e.k)<<16>>16}function gze(e){if(e.p!=7)throw R(new Mo);return Sg(e.f)<<16>>16}function gx(e,t){return t.e==0||e.e==0?BJ:(UF(),art(e,t))}function _ze(e,t){return cd(t)===cd(e)?`(this Map)`:t==null?Mz:FO(t)}function _x(e,t,n){return vje(Ip(sd(dg(e.f,t))),Ip(sd(dg(e.f,n))))}function vze(e,t,n){var r=H(N_(e.g,n),60);Af(e.a.c,new nd(t,r))}function yze(e,t,n){e.i=0,e.e=0,t!=n&&(xYe(e,t,n),bYe(e,t,n))}function bze(e,t,n,r,i){Af(t,m7e(i,Gtt(i,n,r))),j8e(e,i,t)}function xze(e,t,n,r,i){this.i=e,this.a=t,this.e=n,this.j=r,this.f=i}function Sze(e,t){PPe.call(this),this.a=e,this.b=t,Af(this.a.b,this)}function Cze(e){this.b=new ho,this.c=new ho,this.d=new ho,this.a=e}function wze(e,t){var n=new cc;return e.Gd(n),n.a+=`..`,t.Hd(n),n.a}function Tze(e,t){for(var n=t;n;)Ep(e,n.i,n.j),n=ob(n);return e}function Eze(e,t,n){var r=zk(n);return fv(e.b,r,t),fv(e.c,t,n),t}function vx(e){for(var t=0;e.Ob();)e.Pb(),t=vO(t,1);return IC(t)}function yx(e,t){Gl();var n=H(e,69).vk();return X8e(n,t),n.xl(t)}function Dze(e,t,n){if(n){var r=n.oe();e.a[t]=r(n)}else delete e.a[t]}function Oze(e,t){var n=e.q.getHours();e.q.setFullYear(t+MB),lL(e,n)}function kze(e,t){return H(t==null?sd(dg(e.f,null)):Xl(e.i,t),288)}function Aze(e,t){return e==(fN(),CX)&&t==CX?4:e==CX||t==CX?8:32}function bx(e,t,n){return eL(e,t,n,V(t,102)&&(H(t,19).Bb&XB)!=0)}function jze(e,t,n){return fL(e,t,n,V(t,102)&&(H(t,19).Bb&XB)!=0)}function Mze(e,t,n){return nF(e,t,n,V(t,102)&&(H(t,19).Bb&XB)!=0)}function Nze(e){e.b!=e.c&&(e.a=vS(eJ,jz,1,8,5,1),e.b=0,e.c=0)}function xx(e){return zp(e.a=0&&e.a[n]===t[n];n--);return n<0}function jx(e){var t;return e?new wAe(e):(t=new Pd,cqe(t,e),t)}function Jze(e,t){var n,r=!1;do n=nYe(e,t),r|=n;while(n);return r}function Yze(e){e&&hWe((xme(),pJ)),--dJ,e&&fJ!=-1&&(cxe(fJ),fJ=-1)}function Mx(e){I6e(),eCe(this,Sg(Rb(Og(e,24),Hmt)),Sg(Rb(e,Hmt)))}function Xze(){Xze=D,twt=dD((L1e(),K(B(ewt,1),lB,436,0,[$Ct,QCt])))}function Zze(){Zze=D,awt=dD((TC(),K(B(iwt,1),lB,435,0,[nwt,rwt])))}function Nx(){Nx=D,BTt=dD((EC(),K(B(zY,1),lB,432,0,[zTt,RY])))}function Qze(){Qze=D,pDt=dD((fT(),K(B(fDt,1),lB,517,0,[TX,dDt])))}function $ze(){$ze=D,hkt=dD((px(),K(B(mkt,1),lB,429,0,[fkt,pkt])))}function eBe(){eBe=D,WOt=dD((DC(),K(B(UOt,1),lB,428,0,[FZ,HOt])))}function tBe(){tBe=D,ekt=dD((GS(),K(B($Ot,1),lB,488,0,[QOt,HZ])))}function nBe(){nBe=D,G0=dD((fC(),K(B(lNt,1),lB,430,0,[sNt,cNt])))}function rBe(){rBe=D,QNt=dD((mx(),K(B(ZNt,1),lB,531,0,[l2,c2])))}function iBe(){iBe=D,jOt=dD((LVe(),K(B(DZ,1),lB,431,0,[TZ,EZ])))}function aBe(){aBe=D,BFt=dD((kb(),K(B(zFt,1),lB,433,0,[l4,RFt])))}function oBe(){oBe=D,KFt=dD((jw(),K(B(GFt,1),lB,501,0,[d4,f4])))}function sBe(){sBe=D,v2=dD((Jy(),K(B(_2,1),lB,523,0,[g2,h2])))}function cBe(){cBe=D,iPt=dD((Yy(),K(B(rPt,1),lB,522,0,[y2,b2])))}function lBe(){lBe=D,hPt=dD((fS(),K(B(mPt,1),lB,528,0,[k2,O2])))}function uBe(){uBe=D,xPt=dD((qy(),K(B(bPt,1),lB,465,0,[j2,M2])))}function dBe(){dBe=D,_4=dD((IS(),K(B(QFt,1),lB,434,0,[g4,ZFt])))}function fBe(){fBe=D,HLt=dD((zx(),K(B(VLt,1),lB,491,0,[zLt,BLt])))}function pBe(){pBe=D,Z=dD((hJe(),K(B(XLt,1),lB,492,0,[JLt,YLt])))}function mBe(){mBe=D,sRt=dD((pS(),K(B(t3,1),lB,438,0,[e3,$4])))}function hBe(){hBe=D,jRt=dD((sE(),K(B(ARt,1),lB,437,0,[T3,kRt])))}function gBe(){gBe=D,_Bt=dD((BOe(),K(B(gBt,1),lB,347,0,[mBt,hBt])))}function _Be(){return eO(),K(B(P8,1),lB,88,0,[M8,j8,A8,k8,N8])}function vBe(){return XR(),K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5])}function yBe(e,t,n){return H(t==null?qN(e.f,null,n):mO(e.i,t,n),288)}function bBe(e){return(e.k==(fN(),CX)||e.k==bX)&&Cp(e,(hz(),wQ))}function xBe(e){return e.c&&e.d?mLe(e.c)+`->`+mLe(e.d):`e_`+cp(e)}function Px(e,t){var n,r;for(iv(t),r=e.Kc();r.Ob();)n=r.Pb(),t.Cd(n)}function SBe(e,t){var n=new Ps;fy(n,`x`,t.a),fy(n,`y`,t.b),z_(e,n)}function CBe(e,t){var n=new Ps;fy(n,`x`,t.a),fy(n,`y`,t.b),z_(e,n)}function wBe(e,t){for(var n=t;n;)Ep(e,-n.i,-n.j),n=ob(n);return e}function TBe(e,t){for(var n=t,r=0;n>0;)r+=e.a[n],n-=n&-n;return r}function Fx(e,t,n){var r=(jb(t,e.c.length),e.c[t]);return e.c[t]=n,r}function EBe(e,t,n){e.a.c.length=0,Wlt(e,t,n),e.a.c.length==0||qot(e,t)}function Ix(e){e.i=0,Yl(e.b,null),Yl(e.c,null),e.a=null,e.e=null,++e.g}function Lx(){Lx=D,XJ=!0,RCt=!1,zCt=!1,VCt=!1,BCt=!1}function Rx(e){Lx(),!XJ&&(this.c=e,this.e=!0,this.a=new go)}function DBe(e,t){this.c=0,this.b=t,Ybe.call(this,e,17493),this.a=this.c}function OBe(e){Tpt(),lpe(this),this.a=new ll,VYe(this,e),Ch(this.a,e)}function kBe(){af(this),this.b=new zu(KB,KB),this.a=new zu(qB,qB)}function zx(){zx=D,zLt=new Iye(ugt,0),BLt=new Iye(`TARGET_WIDTH`,1)}function Bx(e,t){return(pO(e),Bc(new Yh(e,new bUe(t,e.a)))).Bd(eY)}function ABe(){return XM(),K(B(kEt,1),lB,367,0,[tX,nX,rX,iX,aX])}function jBe(){return yM(),K(B(pOt,1),lB,375,0,[uZ,dZ,fZ,fOt,dOt])}function MBe(){return Lk(),K(B(BOt,1),lB,348,0,[ROt,LOt,zOt,PZ,NZ])}function NBe(){return _A(),K(B($Mt,1),lB,323,0,[QMt,ZMt,j0,A0,M0])}function PBe(){return XO(),K(B(jkt,1),lB,171,0,[l$,a$,o$,s$,c$])}function FBe(){return EM(),K(B(YFt,1),lB,368,0,[JFt,p4,h4,qFt,m4])}function IBe(){return gF(),K(B(ZLt,1),lB,373,0,[K4,G4,J4,q4,Y4])}function LBe(){return SN(),K(B(i3,1),lB,324,0,[cRt,n3,uRt,r3,lRt])}function RBe(){return cA(),K(B(L3,1),lB,170,0,[F3,P3,M3,I3,N3])}function zBe(){return uA(),K(B(v5,1),lB,256,0,[g5,_5,Uzt,h5,Wzt])}function BBe(e){return ehe(),function(){return bRe(e,this,arguments)}}function Vx(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function VBe(e,t){return V(t,143)?hm(e.c,H(t,143).c):!1}function Hx(e){return e.t||(e.t=new Hfe(e),$D(new Cme(e),0,e.t)),e.t}function HBe(e){this.b=e,Lf.call(this,e),this.a=H(PT(this.b.a,4),129)}function UBe(e){this.b=e,mp.call(this,e),this.a=H(PT(this.b.a,4),129)}function Ux(e,t,n,r,i){yVe.call(this,t,r,i),this.c=e,this.b=n}function WBe(e,t,n,r,i){wLe.call(this,t,r,i),this.c=e,this.a=n}function GBe(e,t,n,r,i){TLe.call(this,t,r,i),this.c=e,this.a=n}function KBe(e,t,n,r,i){yVe.call(this,t,r,i),this.c=e,this.a=n}function qBe(e,t){return H(_C(e.d,t),23)||H(_C(e.e,t),23)}function JBe(e,t){var n=t.ld(),r=e.Fe(n);return!!r&&vv(r.e,t.md())}function YBe(e,t){var n=t.ld();return new Zc(n,e.e.pc(n,H(t.md(),16)))}function XBe(e,t){return e.a.get(t)??vS(eJ,jz,1,0,5,1)}function ZBe(e){var t=e.length;return hm(YB.substr(YB.length-t,t),e)}function Wx(e){if(UP(e))return e.c=e.a,e.a.Pb();throw R(new Io)}function QBe(e,t){return t==0||e.e==0?e:t>0?Qrt(e,t):Pk(e,-t)}function Gx(e,t){return t==0||e.e==0?e:t>0?Pk(e,t):Qrt(e,-t)}function Kx(e){$_e.call(this,e==null?Mz:FO(e),V(e,82)?H(e,82):null)}function qx(e){var t;return e.c||(t=e.r,V(t,90)&&(e.c=H(t,29))),e.c}function $Be(e){var t=new vy;return UT(t,e),EE(t,(fz(),d1),null),t}function eVe(e){var t=e.c.i,n=e.d.i;return t.k==(fN(),bX)&&n.k==bX}function tVe(e){return Cf(e&RB,e>>22&RB,e<0?zB:0)}function nVe(e){for(var t,n=e,r=0,i=n.length;r=0?e.Lh(r,n,!0):kP(e,t,n)}function iVe(e,t,n){return uO(Of(sA(e),Tf(t.b)),Of(sA(e),Tf(n.b)))}function aVe(e,t,n){return uO(Of(sA(e),Tf(t.e)),Of(sA(e),Tf(n.e)))}function oVe(e,t){return r.Math.min(ES(t.a,e.d.d.c),ES(t.b,e.d.d.c))}function Yx(e,t){e._i(e.i+1),jf(e,e.i,e.Zi(e.i,t)),e.Mi(e.i++,t),e.Ni()}function Xx(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.Oi(n,t),e.Ni()}function sVe(e,t,n){var r=new OSe(e.a);gT(r,e.a.a),qN(r.f,t,n),e.a.a=r}function cVe(e,t,n,r){for(var i=0;it)throw R(new Ws(l7e(e,t,`index`)));return e}function eS(e,t){var n=(jb(t,e.c.length),e.c[t]);return wge(e.c,t,1),n}function fVe(e,t){var n=(iv(e),e),r=(iv(t),t);return n==r?0:nt.p?-1:0}function OVe(e){var t;return e.a||(t=e.r,V(t,156)&&(e.a=H(t,156))),e.a}function kVe(e,t,n){var r;return++e.e,--e.f,r=H(e.d[t].gd(n),136),r.md()}function AVe(e){var t=e.ld();return ah(H(e.md(),16).Nc(),new $r(t))}function jVe(e,t){return Xg(e.a,t)?(nS(e.a,t),!0):!1}function oS(e,t,n){return Qb(t,e.e.Rd().gc()),Qb(n,e.c.Rd().gc()),e.a[t][n]}function sS(e,t,n){this.a=e,this.b=t,this.c=n,Af(e.t,this),Af(t.i,this)}function MVe(e,t,n,r){this.f=e,this.e=t,this.d=n,this.b=r,this.c=r?r.d:null}function cS(){this.b=new ll,this.a=new ll,this.b=new ll,this.a=new ll}function lS(){lS=D;var e,t;SHt=(Nc(),t=new Lo,t),CHt=(e=new $pe,e)}function NVe(e){var t;return pO(e),t=new mke(e,e.a.e,e.a.d|4),new Qwe(e,t)}function PVe(e){var t;for(ev(e),t=0;e.a.Bd(new Me);)t=vO(t,1);return t}function uS(e,t){return iv(t),e.c=0,`Initial capacity must not be negative`)}function FVe(){FVe=D,J3=new ao(`org.eclipse.elk.labels.labelManager`)}function IVe(){IVe=D,JDt=new Yp(`separateLayerConnections`,(rE(),XDt))}function fS(){fS=D,k2=new wye(`REGULAR`,0),O2=new wye(`CRITICAL`,1)}function pS(){pS=D,e3=new Bye(`FIXED`,0),$4=new Bye(`CENTER_NODE`,1)}function LVe(){LVe=D,TZ=new Rve(`QUADRATIC`,0),EZ=new Rve(`SCANLINE`,1)}function RVe(){RVe=D,AZ=dD((Ow(),K(B(NOt,1),lB,322,0,[kZ,OZ,MOt])))}function zVe(){zVe=D,MZ=dD((GGe(),K(B(IOt,1),lB,351,0,[POt,jZ,FOt])))}function BVe(){BVe=D,yOt=dD((Aw(),K(B(gZ,1),lB,372,0,[hZ,mZ,pZ])))}function VVe(){VVe=D,qOt=dD((kE(),K(B(KOt,1),lB,460,0,[GOt,IZ,LZ])))}function HVe(){HVe=D,fQ=dD((XT(),K(B(dQ,1),lB,299,0,[lkt,uQ,lQ])))}function UVe(){UVe=D,dkt=dD((dC(),K(B(ukt,1),lB,311,0,[mQ,hQ,pQ])))}function WVe(){WVe=D,JMt=dD((wD(),K(B(qMt,1),lB,390,0,[w0,KMt,T0])))}function GVe(){GVe=D,gNt=dD((TT(),K(B(hNt,1),lB,387,0,[fNt,pNt,mNt])))}function KVe(){KVe=D,bNt=dD((qE(),K(B(yNt,1),lB,349,0,[vNt,_Nt,Y0])))}function qVe(){qVe=D,dNt=dD((xw(),K(B(uNt,1),lB,463,0,[J0,K0,q0])))}function JVe(){JVe=D,wNt=dD((iD(),K(B(CNt,1),lB,350,0,[xNt,SNt,X0])))}function YVe(){YVe=D,kNt=dD((WGe(),K(B(ONt,1),lB,352,0,[DNt,TNt,ENt])))}function XVe(){XVe=D,jNt=dD((oE(),K(B($0,1),lB,388,0,[ANt,Q0,Z0])))}function ZVe(){ZVe=D,VPt=dD((JE(),K(B(BPt,1),lB,392,0,[zPt,RPt,R2])))}function QVe(){QVe=D,nIt=dD((rD(),K(B(tIt,1),lB,393,0,[v4,$Ft,eIt])))}function $Ve(){$Ve=D,HIt=dD((wT(),K(B(VIt,1),lB,300,0,[zIt,BIt,RIt])))}function eHe(){eHe=D,GIt=dD((jk(),K(B(WIt,1),lB,445,0,[E4,D4,UIt])))}function tHe(){tHe=D,XIt=dD((DA(),K(B(YIt,1),lB,456,0,[KIt,JIt,qIt])))}function nHe(){nHe=D,aLt=dD((EO(),K(B(iLt,1),lB,394,0,[nLt,rLt,tLt])))}function rHe(){rHe=D,qLt=dD((KS(),K(B(KLt,1),lB,439,0,[ULt,GLt,WLt])))}function iHe(){iHe=D,a2=dD((bw(),K(B(KNt,1),lB,464,0,[n2,r2,i2])))}function aHe(){aHe=D,Owt=dD((US(),K(B(Dwt,1),lB,471,0,[fY,dY,pY])))}function oHe(){oHe=D,Twt=dD((XC(),K(B(lY,1),lB,237,0,[oY,sY,cY])))}function sHe(){sHe=D,jwt=dD((uC(),K(B(Awt,1),lB,472,0,[gY,hY,mY])))}function cHe(){cHe=D,UCt=dD((aD(),K(B($J,1),lB,108,0,[HCt,ZJ,QJ])))}function lHe(){lHe=D,eX=dD((lC(),K(B(TEt,1),lB,391,0,[$Y,CEt,wEt])))}function uHe(){uHe=D,$8=dD((ED(),K(B(Q8,1),lB,346,0,[X8,Y8,Z8])))}function dHe(){dHe=D,eRt=dD((tO(),K(B(Q4,1),lB,444,0,[$Lt,X4,Z4])))}function mS(){mS=D,kzt=dD((ZC(),K(B(R8,1),lB,278,0,[F8,I8,L8])))}function fHe(){fHe=D,pBt=dD((TD(),K(B(fBt,1),lB,280,0,[uBt,c7,dBt])))}function hS(e,t){return!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),dk(e.o,t)}function pHe(e,t){var n;e.C&&(n=H(yv(e.b,t),127).n,n.d=e.C.d,n.a=e.C.a)}function mHe(e){var t,n,r,i=e.d;t=e.a,n=e.b,r=e.c,e.d=n,e.a=r,e.b=i,e.c=t}function hHe(e){return!e.g&&(e.g=new Jn),!e.g.b&&(e.g.b=new Rfe(e)),e.g.b}function gS(e){return!e.g&&(e.g=new Jn),!e.g.c&&(e.g.c=new Vfe(e)),e.g.c}function gHe(e){return!e.g&&(e.g=new Jn),!e.g.d&&(e.g.d=new zfe(e)),e.g.d}function _S(e){return!e.g&&(e.g=new Jn),!e.g.a&&(e.g.a=new Bfe(e)),e.g.a}function _He(e,t,n,r){return n&&(r=n.Rh(t,$O(n.Dh(),e.c.uk()),null,r)),r}function vHe(e,t,n,r){return n&&(r=n.Th(t,$O(n.Dh(),e.c.uk()),null,r)),r}function yHe(e,t,n,r){var i=vS(F9,NB,28,t+1,15,1);return Zst(i,e,t,n,r),i}function vS(e,t,n,r,i,a){var o=j2e(i,r);return i!=10&&K(B(e,a),t,n,i,o),o}function bHe(e,t,n){var r,i=new qT(t,e);for(r=0;rn||t=0?e.Lh(n,!0,!0):kP(e,t,!0)}function YHe(e,t,n){var r=pYe(e,t,n);return e.b=new Rw(r.c.length),xit(e,r)}function XHe(e){if(e.b<=0)throw R(new Io);return--e.b,e.a-=e.c.c,kD(e.a)}function ZHe(e){var t;if(!e.a)throw R(new WNe);return t=e.a,e.a=ob(e.a),t}function QHe(e){for(;!e.a;)if(!_Ee(e.c,new Cue(e)))return!1;return!0}function PS(e){var t;return D_(e),V(e,204)?(t=H(e,204),t):new ble(e)}function $He(e){FS(),H(e.of((gz(),u8)),181).Fc((aP(),O5)),e.qf(lzt,null)}function FS(){FS=D,D3=new zn,k3=new qae,O3=KYe((gz(),lzt),D3,J6,k3)}function IS(){IS=D,g4=new Pu(`LEAF_NUMBER`,0),ZFt=new Pu(`NODE_SIZE`,1)}function LS(e){e.a=vS(F9,NB,28,e.b+1,15,1),e.c=vS(F9,NB,28,e.b,15,1),e.d=0}function eUe(e,t){e.a.Ne(t.d,e.b)>0&&(Af(e.c,new gke(t.c,t.d,e.d)),e.b=t.d)}function tUe(e,t){if(e.g==null||t>=e.i)throw R(new ixe(t,e.i));return e.g[t]}function nUe(e,t,n){if(GE(e,n),n!=null&&!e.fk(n))throw R(new gpe);return n}function RS(e,t){return xC(t)!=10&&K(sD(t),t.Sm,t.__elementTypeId$,xC(t),e),e}function zS(e,t,n,r){var i;r=(ry(),r||uCt),i=e.slice(t,n),u7e(i,e,t,n,-t,r)}function BS(e,t,n,r,i){return t<0?kP(e,n,r):H(n,69).wk().yk(e,e.hi(),t,r,i)}function rUe(e,t){return uO(z(Ip(q(e,(hz(),JQ)))),z(Ip(q(t,JQ))))}function VS(){VS=D,PCt=dD((HS(),K(B(NCt,1),lB,304,0,[kCt,ACt,jCt,MCt])))}function HS(){HS=D,kCt=new ave(`All`,0),ACt=new tf,jCt=new hSe,MCt=new ef}function US(){US=D,fY=new nu(AV,0),dY=new nu(DV,1),pY=new nu(jV,2)}function iUe(){iUe=D,wL(),tUt=KB,eUt=qB,rUt=new Vi(KB),nUt=new Vi(qB)}function aUe(){aUe=D,nTt=dD((YT(),K(B(tTt,1),lB,417,0,[CY,SY,$wt,eTt])))}function WS(){WS=D,lTt=dD((vA(),K(B(PY,1),lB,406,0,[jY,AY,MY,NY])))}function oUe(){oUe=D,iTt=dD((yA(),K(B(rTt,1),lB,332,0,[TY,wY,EY,DY])))}function sUe(){sUe=D,JEt=dD((Zk(),K(B(qEt,1),lB,389,0,[hX,GEt,mX,KEt])))}function cUe(){cUe=D,BEt=dD((aE(),K(B(zEt,1),lB,416,0,[sX,uX,cX,lX])))}function lUe(){lUe=D,uOt=dD((iE(),K(B(lOt,1),lB,421,0,[sZ,cZ,lZ,cOt])))}function uUe(){uUe=D,iZ=dD((rE(),K(B(ZDt,1),lB,371,0,[XDt,rZ,YDt,nZ])))}function dUe(){dUe=D,XMt=dD((EA(),K(B(k0,1),lB,203,0,[O0,YMt,D0,E0])))}function fUe(){fUe=D,W0=dD((Rk(),K(B(oNt,1),lB,284,0,[V0,aNt,H0,U0])))}function GS(){GS=D,QOt=new Uve(oU,0),HZ=new Uve(`IMPROVE_STRAIGHTNESS`,1)}function pUe(e,t){var n,r=t/e.c.Rd().gc()|0;return n=t%e.c.Rd().gc(),oS(e,r,n)}function mUe(e){var t;if(e.nl())for(t=e.i-1;t>=0;--t)G(e,t);return lze(e)}function hUe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function gUe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function _Ue(e){return V(e,180)?``+H(e,180).a:e==null?null:FO(e)}function vUe(e){return V(e,180)?``+H(e,180).a:e==null?null:FO(e)}function yUe(e,t){if(t.a)throw R(new Ns(iht));n_(e.a,t),t.a=e,!e.j&&(e.j=t)}function bUe(e,t){Xbe.call(this,t.zd(),t.yd()&-16449),iv(e),this.a=e,this.c=t}function xUe(e,t){return new UOe(t,Ep(Tf(t.e),t.f.a+e,t.f.b+e),(lp(),!1))}function SUe(e,t){return $m(),Af(e,new nd(t,kD(t.e.c.length+t.g.c.length)))}function CUe(e,t){return $m(),Af(e,new nd(t,kD(t.e.c.length+t.g.c.length)))}function wUe(){wUe=D,T4=dD((E2e(),K(B(LIt,1),lB,354,0,[IIt,w4,FIt,C4])))}function TUe(){TUe=D,LFt=dD((nD(),K(B(IFt,1),lB,353,0,[c4,s4,FFt,PFt])))}function EUe(){EUe=D,CPt=dD((_j(),K(B(SPt,1),lB,405,0,[N2,P2,F2,I2])))}function DUe(){DUe=D,Azt=dD((TO(),K(B(U8,1),lB,223,0,[H8,B8,z8,V8])))}function OUe(){OUe=D,Vzt=dD((vj(),K(B(i5,1),lB,291,0,[r5,e5,t5,n5])))}function kUe(){kUe=D,nBt=dD((Ak(),K(B(r7,1),lB,386,0,[t7,n7,e7,$5])))}function AUe(){AUe=D,CBt=dD((ZO(),K(B(SBt,1),lB,320,0,[xBt,vBt,bBt,yBt])))}function jUe(){jUe=D,ABt=dD((zYe(),K(B(kBt,1),lB,415,0,[EBt,DBt,TBt,OBt])))}function KS(){KS=D,ULt=new Lye(wvt,0),GLt=new Lye(avt,1),WLt=new Lye(oU,2)}function qS(e,t,n,r,i){return iv(e),iv(t),iv(n),iv(r),iv(i),new l_(e,t,r)}function MUe(e,t){var n=H(nS(e.e,t),400);return n?(qke(n),n.e):null}function JS(e,t){var n=XS(e,t,0);return n!=-1&&(eS(e,n),!0)}function NUe(e,t,n){var r;return ev(e),r=new Ae,r.a=t,e.a.Nb(new fve(r,n)),r.a}function PUe(e){var t;return ev(e),t=vS(z9,QB,28,0,15,1),Hc(e.a,new bue(t)),t}function FUe(e){var t;if(!zKe(e))throw R(new Io);return e.e=1,t=e.d,e.d=null,t}function YS(e){var t;return Nd(e)&&(t=0-e,!isNaN(t))?t:NT(SE(e))}function XS(e,t,n){for(;n=0?CA(e,n,!0,!0):kP(e,t,!0)}function JUe(e){var t=gw(PT(e,32));return t??=(Kk(e),gw(PT(e,32))),t}function YUe(e){var t;return e.Oh()||(t=M_(e.Dh())-e.ji(),e.$h().Mk(t)),e.zh()}function XUe(e,t){sTt=new wt,oTt=t,OY=e,H(OY.b,68),EHe(OY,sTt,null),_lt(OY)}function lC(){lC=D,$Y=new du(`XY`,0),CEt=new du(`X`,1),wEt=new du(`Y`,2)}function uC(){uC=D,gY=new ru(`TOP`,0),hY=new ru(DV,1),mY=new ru(vht,2)}function dC(){dC=D,mQ=new Gve(oU,0),hQ=new Gve(`TOP`,1),pQ=new Gve(vht,2)}function fC(){fC=D,sNt=new Xve(`INPUT_ORDER`,0),cNt=new Xve(`PORT_DEGREE`,1)}function pC(){pC=D,LSt=Cf(RB,RB,524287),RSt=Cf(0,0,BB),zSt=tVe(1),tVe(2),BSt=tVe(0)}function mC(e){var t;return e.d!=e.r&&(t=Pj(e),e.e=!!t&&t.lk()==xxt,e.d=t),e.e}function hC(e,t,n){var r=e.g[t];return jf(e,t,e.Zi(t,n)),e.Ri(t,n,r),e.Ni(),r}function gC(e,t){var n=e.dd(t);return n>=0&&(e.gd(n),!0)}function ZUe(e,t){var n;for(D_(e),D_(t),n=!1;t.Ob();)n|=e.Fc(t.Pb());return n}function _C(e,t){var n=H(N_(e.e,t),400);return n?(zSe(e,n),n.e):null}function QUe(e){var t=e/60|0,n=e%60;return n==0?``+t:``+t+`:`+(``+n)}function vC(e,t){var n=e.a[t],r=(AE(),yJ)[typeof n];return r?r(n):_D(typeof n)}function yC(e,t){var n,r;return pO(e),r=new _Ve(t,e.a),n=new DEe(r),new Yh(e,n)}function $Ue(e){var t=e.b.c.length==0?null:Wh(e.b,0);return t!=null&&Iw(e,0),t}function eWe(e,t){var n,r,i=t.c.i;n=H(N_(e.f,i),60),r=n.d.c-n.e.c,Qw(t.a,r,0)}function tWe(e,t){var n;for(++e.d,++e.c[t],n=t+1;n=0;)++t[0]}function iWe(e,t){ow(e,t==null||wm((iv(t),t))||isNaN((iv(t),t))?0:(iv(t),t))}function bC(e,t){sw(e,t==null||wm((iv(t),t))||isNaN((iv(t),t))?0:(iv(t),t))}function aWe(e,t){aw(e,t==null||wm((iv(t),t))||isNaN((iv(t),t))?0:(iv(t),t))}function oWe(e,t){iw(e,t==null||wm((iv(t),t))||isNaN((iv(t),t))?0:(iv(t),t))}function sWe(e,t,n){return Of(new zu(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(iv(t),t)}function cWe(e,t){return V(t,102)&&(H(t,19).Bb&XB)!=0?new oxe(t,e):new qT(t,e)}function lWe(e,t){return V(t,102)&&(H(t,19).Bb&XB)!=0?new oxe(t,e):new qT(t,e)}function xC(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function uWe(e,t){return t==(Om(),Om(),xCt)?e.toLocaleLowerCase():e.toLowerCase()}function dWe(e){if(!e.e)throw R(new Io);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function fWe(e){if(!e.c)throw R(new Io);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function pWe(e){var t;for(++e.a,t=e.c.a.length;e.ae.a[r]&&(r=n);return r}function yWe(e){var t=H(q(e,(hz(),_Q)),313);return t?t.a==e:!1}function bWe(e){var t=H(q(e,(hz(),_Q)),313);return t?t.i==e:!1}function SC(){SC=D,AEt=dD((XM(),K(B(kEt,1),lB,367,0,[tX,nX,rX,iX,aX])))}function xWe(){xWe=D,mOt=dD((yM(),K(B(pOt,1),lB,375,0,[uZ,dZ,fZ,fOt,dOt])))}function CC(){CC=D,VOt=dD((Lk(),K(B(BOt,1),lB,348,0,[ROt,LOt,zOt,PZ,NZ])))}function SWe(){SWe=D,eNt=dD((_A(),K(B($Mt,1),lB,323,0,[QMt,ZMt,j0,A0,M0])))}function wC(){wC=D,u$=dD((XO(),K(B(jkt,1),lB,171,0,[l$,a$,o$,s$,c$])))}function CWe(){CWe=D,XFt=dD((EM(),K(B(YFt,1),lB,368,0,[JFt,p4,h4,qFt,m4])))}function wWe(){wWe=D,QLt=dD((gF(),K(B(ZLt,1),lB,373,0,[K4,G4,J4,q4,Y4])))}function TWe(){TWe=D,dRt=dD((SN(),K(B(i3,1),lB,324,0,[cRt,n3,uRt,r3,lRt])))}function EWe(){EWe=D,Ozt=dD((eO(),K(B(P8,1),lB,88,0,[M8,j8,A8,k8,N8])))}function DWe(){DWe=D,R3=dD((cA(),K(B(L3,1),lB,170,0,[F3,P3,M3,I3,N3])))}function OWe(){OWe=D,Gzt=dD((uA(),K(B(v5,1),lB,256,0,[g5,_5,Uzt,h5,Wzt])))}function kWe(){kWe=D,Xzt=dD((XR(),K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5])))}function TC(){TC=D,nwt=new hve(`BY_SIZE`,0),rwt=new hve(`BY_SIZE_AND_SHAPE`,1)}function EC(){EC=D,zTt=new uu(`EADES`,0),RY=new uu(`FRUCHTERMAN_REINGOLD`,1)}function DC(){DC=D,FZ=new Vve(`READING_DIRECTION`,0),HOt=new Vve(`ROTATION`,1)}function OC(){OC=D,dX=new Ut,UEt=new cee,VEt=new Gt,HEt=new see,WEt=new lee}function AWe(e){this.b=new go,this.a=new go,this.c=new go,this.d=new go,this.e=e}function jWe(e){this.g=e,this.f=new go,this.a=r.Math.min(this.g.c.c,this.g.d.c)}function kC(e,t,n){lm.call(this),cGe(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function MWe(e,t,n){for(var r,i=new L(n);i.a=0&&t0?t-1:t;return Khe(qhe(OGe(kke(new hs,n),e.n),e.j),e.k)}function PC(e){var t,n=(t=new nme,t);SS((!e.q&&(e.q=new Bg(F7,e,11,10)),e.q),n)}function FC(e){return(e.i&2?`interface `:e.i&1?``:`class `)+(Rp(e),e.o)}function IC(e){return yD(e,Ez)>0?Ez:yD(e,hB)<0?hB:Sg(e)}function LC(e){return e<3?(Dw(e,smt),e+1):e=-.01&&e.a<=PV&&(e.a=0),e.b>=-.01&&e.b<=PV&&(e.b=0),e}function VC(e){HF();var t,n=svt;for(t=0;tn&&(n=e[t]);return n}function GWe(e,t){var n=wF(e.Dh(),t);if(!n)throw R(new Ks(HG+t+WG));return n}function HC(e,t){for(var n=e;ob(n);)if(n=ob(n),n==t)return!0;return!1}function KWe(e,t){var n,r=t.a.ld(),i;for(n=H(t.a.md(),16).gc(),i=0;ie||e>t)throw R(new nhe(`fromIndex: 0, toIndex: `+e+Umt+t))}function KC(e){if(e<0)throw R(new Ks(`Illegal Capacity: `+e));this.g=this.aj(e)}function QWe(e,t){return mf(),Cw(mB),r.Math.abs(e-t)<=mB||e==t||isNaN(e)&&isNaN(t)}function $We(e,t){for(var n,r=e.d,i=0,a=r.length;i0&&(e.a/=t,e.b/=t),e}function qC(e){var t;return e.w?e.w:(t=eLe(e),t&&!t.Vh()&&(e.w=t),t)}function JC(e,t){var n,r=e.a;n=NZe(e,t,null),r!=t&&!e.e&&(n=BR(e,t,n)),n&&n.oj()}function iGe(e,t,n){var r=t,i;do i=z(e.p[r.p])+n,e.p[r.p]=i,r=e.a[r.p];while(r!=t)}function aGe(e,t,n){var r=function(){return e.apply(r,arguments)};return t.apply(r,n),r}function YC(e){var t;return e==null?null:(t=H(e,195),Q6e(t,t.length))}function G(e,t){if(e.g==null||t>=e.i)throw R(new ixe(t,e.i));return e.Wi(t,e.g[t])}function oGe(e,t){iy();var n,r=new go;for(n=0;n=14&&t<=16))),e}function _w(e,t){var n;return iv(t),n=e[`:`+t],dh(!!n,`Enum constant undefined: `+t),n}function vw(e,t,n,r,i,a){var o=jMe(e,t);return kGe(n,o),o.i=i?8:0,o.f=r,o.e=i,o.g=a,o}function AGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=1,this.c=e,this.a=n}function jGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=2,this.c=e,this.a=n}function MGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=6,this.c=e,this.a=n}function NGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=7,this.c=e,this.a=n}function PGe(e,t,n,r,i){this.d=t,this.j=r,this.e=i,this.o=-1,this.p=4,this.c=e,this.a=n}function FGe(e,t){for(var n,r=t,i=0,a=r.length;i=0))throw R(new Ks(`tolerance (`+e+`) must be >= 0`));return e}function KGe(e,t){var n;return V(t,44)?e.c.Mc(t):(n=dk(e,t),Vk(e,t),n)}function ww(e,t,n){return mD(e,t),Bw(e,n),dw(e,0),fw(e,1),qD(e,!0),WD(e,!0),e}function Tw(e,t){var n=e.gc();if(t<0||t>n)throw R(new mm(t,n));return new ym(e,t)}function qGe(e,t){e.b=r.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),Af(e.a,t)}function JGe(e){Bp(e.c>=0),X$e(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function YGe(e){for(var t,n=e.c.Cc().Kc();n.Ob();)t=H(n.Pb(),16),t.$b();e.c.$b(),e.d=0}function XGe(e){for(var t,n=e.a,r=0,i=n.length;r=0}function bKe(e,t){e.r>0&&e.c0&&e.g!=0&&bKe(e.i,t/e.r*e.i.d))}function xKe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,1,n,e.c))}function SKe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,4,n,e.c))}function kw(e,t){var n=e.k;e.k=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,2,n,e.k))}function CKe(e,t){var n=e.D;e.D=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,2,n,e.D))}function wKe(e,t){var n=e.f;e.f=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,8,n,e.f))}function TKe(e,t){var n=e.i;e.i=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,7,n,e.i))}function EKe(e,t){var n=e.a;e.a=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,8,n,e.a))}function DKe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,0,n,e.b))}function OKe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,0,n,e.b))}function kKe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,1,n,e.c))}function AKe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,1,n,e.d))}function jKe(e,t,n){var r;e.b=t,e.a=n,r=(e.a&512)==512?new cme:new Rr,e.c=hit(r,e.b,e.a)}function MKe(e,t){return jF(e.e,t)?(Gl(),mC(t)?new nAe(t,e):new od(t,e)):new Nbe(t,e)}function NKe(e){var t,n;return 0>e?new hl:(t=e+1,n=new DBe(t,e),new $we(null,n))}function PKe(e,t){iy();var n=new sl(1);return ld(e)?mb(n,e,t):qN(n.f,e,t),new Zi(n)}function FKe(e,t){var n=e.c,r=t.e[e.p];return r>0?H(Wh(n.a,r-1),10):null}function IKe(e,t){var n=e.o+e.p,r=t.o+t.p;return nt?(t<<=1,t>0?t:sB):t}function zKe(e){switch(fCe(e.e!=3),e.e){case 2:return!1;case 0:return!0}return mVe(e)}function BKe(e,t){var n;return V(t,8)?(n=H(t,8),e.a==n.a&&e.b==n.b):!1}function VKe(e,t){var n=new wt;H(t.b,68),H(t.b,68),H(t.b,68),UC(t.a,new th(e,n,t))}function HKe(e,t){for(var n,r=t.vc().Kc();r.Ob();)n=H(r.Pb(),44),Yj(e,n.ld(),n.md())}function UKe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,11,n,e.d))}function WKe(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,13,n,e.j))}function GKe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,21,n,e.b))}function KKe(e,t){(Lx(),XJ?null:t.c).length==0&&iTe(t,new pe),mb(e.a,XJ?null:t.c,t)}function qKe(e,t){t.Ug(`Hierarchical port constraint processing`,1),Z1e(e),hpt(e),t.Vg()}function Aw(){Aw=D,hZ=new Lve(`START`,0),mZ=new Lve(`MIDDLE`,1),pZ=new Lve(`END`,2)}function jw(){jw=D,d4=new Aye(`P1_NODE_PLACEMENT`,0),f4=new Aye(`P2_EDGE_ROUTING`,1)}function Mw(){Mw=D,XY=new ao(Dht),oEt=new ao(Oht),YY=new ao(kht),JY=new ao(Aht)}function Nw(e){var t;return Nm(e.f.g,e.d),zp(e.b),e.c=e.a,t=H(e.a.Pb(),44),e.b=NJe(e),t}function JKe(e){var t;return e.b==null?(Wl(),Wl(),aHt):(t=e.ul()?e.tl():e.sl(),t)}function YKe(e,t){var n=t==null?-1:XS(e.b,t,0);return n<0?!1:(Iw(e,n),!0)}function Pw(e,t){var n;return iv(t),n=t.g,!e.b[n]&&(F_(e.b,n,t),++e.c,!0)}function Fw(e,t){var n=1-t,r=e.a[n];return e.a[n]=r.a[t],r.a[t]=e,e.b=!0,r.b=!1,r}function XKe(e,t){for(var n,r=t.Kc();r.Ob();)n=H(r.Pb(),272),e.b=!0,n_(e.e,n),n.b=e}function ZKe(e,t){var n=H(q(e,(fz(),z1)),8),r=H(q(t,z1),8);return uO(n.b,r.b)}function QKe(e,t,n){var r,i,a=t>>5;return i=t&31,r=Rb(kg(e.n[n][a],Sg(Dg(i,1))),3),r}function $Ke(e,t,n){var r,i,a=e.a.length-1;for(i=e.b,r=0;r0):(!e.c&&(e.c=xb(zT(e.f))),e.c).e}function vqe(e,t){t?e.B??(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function yqe(e,t){return aE(),e==sX&&t==uX||e==uX&&t==sX||e==lX&&t==cX||e==cX&&t==lX}function bqe(e,t){return aE(),e==sX&&t==cX||e==sX&&t==lX||e==uX&&t==lX||e==uX&&t==cX}function Gw(e,t){return mf(),Cw(PV),r.Math.abs(0-t)<=PV||t==0?0:e/t}function Kw(e,t){return z(Ip(np(LD(jv(new Yh(null,new Nb(e.c.b,16)),new lde(e)),t))))}function qw(e,t){return z(Ip(np(LD(jv(new Yh(null,new Nb(e.c.b,16)),new cde(e)),t))))}function Jw(){return BF(),K(B(cQ,1),lB,259,0,[$Z,tQ,nQ,rQ,iQ,aQ,sQ,QZ,eQ,oQ])}function Yw(){return mI(),K(B(rNt,1),lB,243,0,[z0,F0,L0,I0,nNt,tNt,R0,B0,N0,P0])}function Xw(e,t){var n;t.Ug(`General Compactor`,1),n=QQe(H(qP(e,(ON(),xIt)),393)),n.Cg(e)}function Zw(e,t){var n=H(qP(e,(ON(),y4)),17),r=H(qP(t,y4),17);return Sf(n.a,r.a)}function Qw(e,t,n){for(var r,i=lA(e,0);i.b!=i.d.c;)r=H(ux(i),8),r.a+=t,r.b+=n;return e}function $w(e,t,n){for(var r=e.b[n&e.f];r;r=r.b)if(n==r.a&&Y_(t,r.g))return r;return null}function eT(e,t,n){for(var r=e.c[n&e.f];r;r=r.d)if(n==r.f&&Y_(t,r.i))return r;return null}function xqe(e,t,n){for(var r=0,i=0,a;i>>31;r!=0&&(e[n]=r)}function tT(e,t,n,r,i,a){var o;this.c=e,o=new go,y2e(e,o,t,e.b,n,r,i,a),this.a=new Kb(o,0)}function Sqe(){this.c=new bge(0),this.b=new bge(MW),this.d=new bge(jW),this.a=new bge(gH)}function nT(e,t,n,r,i,a,o){Qc.call(this,e,t),this.d=n,this.e=r,this.c=i,this.b=a,this.a=$x(o)}function rT(e,t,n,r,i,a,o,s,l,u,d,f,p){return $N(e,t,n,r,i,a,o,s,l,u,d,f,p),_Qe(e,!1),e}function Cqe(e){return e.b.c.i.k==(fN(),bX)?H(q(e.b.c.i,(hz(),KQ)),12):e.b.c}function iT(e){return e.b.d.i.k==(fN(),bX)?H(q(e.b.d.i,(hz(),KQ)),12):e.b.d}function aT(e){var t=oRe(e);return fd(t.a,0)?(pl(),pl(),wCt):(pl(),new owe(t.b))}function oT(e){var t=aRe(e);return fd(t.a,0)?(fl(),fl(),CCt):(fl(),new awe(t.b))}function sT(e){var t=aRe(e);return fd(t.a,0)?(fl(),fl(),CCt):(fl(),new awe(t.c))}function wqe(e){switch(e.g){case 2:return XR(),Z5;case 4:return XR(),j5;default:return e}}function Tqe(e){switch(e.g){case 1:return XR(),Y5;case 3:return XR(),M5;default:return e}}function cT(e){switch(e.g){case 0:return new Mn;case 1:return new Nn;default:return null}}function lT(){lT=D,tZ=new Yp(`edgelabelcenterednessanalysis.includelabel`,(lp(),xJ))}function Eqe(){Eqe=D,GNt=Wk(rxe(zh(zh(new uv,(XM(),rX),(_z(),UX)),iX,FX),aX),HX)}function uT(){uT=D,qNt=Wk(rxe(zh(zh(new uv,(XM(),rX),(_z(),UX)),iX,FX),aX),HX)}function dT(){dT=D,r9=new eme,tHt=K(B(k7,1),XK,179,0,[]),eHt=K(B(F7,1),Cxt,62,0,[])}function fT(){fT=D,TX=new vu(`TO_INTERNAL_LTR`,0),dDt=new vu(`TO_INPUT_DIRECTION`,1)}function pT(){pT=D,aDt=new Yt,rDt=new Xt,iDt=new mee,nDt=new Zt,oDt=new hee,sDt=new gee}function mT(e,t){t.Ug(tgt,1),UQe(D_e(new ga((El(),new zNe(e,!1,!1,new pee))))),t.Vg()}function Dqe(e,t,n){n.Ug(`DFS Treeifying phase`,1),T$e(e,t),wrt(e,t),e.a=null,e.b=null,n.Vg()}function hT(e,t){return lp(),ld(e)?fVe(e,Lp(t)):dd(e)?vje(e,Ip(t)):ud(e)?_je(e,Fp(t)):e.Fd(t)}function gT(e,t){var n,r;for(iv(t),r=t.vc().Kc();r.Ob();)n=H(r.Pb(),44),e.zc(n.ld(),n.md())}function Oqe(e,t,n){for(var r=n.Kc();r.Ob();)if(!bx(e,t,r.Pb()))return!1;return!0}function _T(e,t,n,r,i){var a;return n&&(a=$O(t.Dh(),e.c),i=n.Rh(t,-1-(a==-1?r:a),null,i)),i}function kqe(e,t,n,r,i){var a;return n&&(a=$O(t.Dh(),e.c),i=n.Th(t,-1-(a==-1?r:a),null,i)),i}function Aqe(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function jqe(e){if(iv(e),e.length==0)throw R(new lc(`Zero length BigInteger`));yI(this,e)}function Mqe(e){this.i=e.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Nqe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new go,z7e(this),iy(),bf(this.a,null)}function vT(e,t){t.q=e,e.d=r.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),Af(e.a,t)}function yT(e,t){var n,r,i=e.c,a;return n=e.c+e.b,a=e.d,r=e.d+e.a,t.a>i&&t.aa&&t.bi?n=i:Mb(t,n+1),e.a=Dy(e.a,0,t)+(``+r)+LMe(e.a,n)}function Yqe(e,t){e.a=vO(e.a,1),e.c=r.Math.min(e.c,t),e.b=r.Math.max(e.b,t),e.d=vO(e.d,t)}function Xqe(e,t){return t1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw R(new Io)}function RT(e){switch(e.a.g){case 1:return new _ye;case 3:return new q2e;default:return new Wr}}function lJe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return ULe(e,t)}function zT(e){return WB>22),i=e.h+t.h+(r>>22);return Cf(n&RB,r&RB,i&zB)}function jJe(e,t){var n=e.l-t.l,r=e.m-t.m+(n>>22),i=e.h-t.h+(r>>22);return Cf(n&RB,r&RB,i&zB)}function MJe(e){var t,n;for(Ydt(e),n=new L(e.d);n.ar)throw R(new mm(t,r));return e.Si()&&(n=IFe(e,n)),e.Ei(t,n)}function bE(e,t,n,r,i){for(var a,o=n;o<=i;o++)for(a=t;a<=r;a++)UA(e,a,o)||iI(e,a,o,!0,!1)}function xE(e){HF();var t,n=vS(X3,Kz,8,2,0,1),r=0;for(t=0;t<2;t++)r+=.5,n[t]=h2e(r,e);return n}function SE(e){var t=~e.l+1&RB,n=~e.m+ +(t==0)&RB;return Cf(t,n,~e.h+ +(t==0&&n==0)&zB)}function CE(e){var t;if(e<0)return hB;if(e==0)return 0;for(t=sB;(t&e)==0;t>>=1);return t}function wE(e,t,n){return e>=128?!1:pd(e<64?Rb(Dg(1,e),n):Rb(Dg(1,e-64),t),0)}function TE(e,t,n){return n==null?(!e.q&&(e.q=new ho),nS(e.q,t)):(!e.q&&(e.q=new ho),fv(e.q,t,n)),e}function EE(e,t,n){return n==null?(!e.q&&(e.q=new ho),nS(e.q,t)):(!e.q&&(e.q=new ho),fv(e.q,t,n)),e}function tYe(e){var t,n=new iS;return UT(n,e),EE(n,(Mw(),XY),e),t=new ho,Cct(e,n,t),adt(e,n,t),n}function DE(e){var t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d;return t||n}function nYe(e,t){for(var n=!1,r=e.a[t].length,i,a=0;a=0,`Negative initial capacity`),dh(t>=0,`Non-positive load factor`),$g(this)}function cYe(e,t,n,r,i){var a,o=e.length;if(a=n.length,t<0||r<0||i<0||t+i>o||r+i>a)throw R(new hpe)}function lYe(e,t){iy();var n,r,i,a,o=!1;for(r=t,i=0,a=r.length;i1||t>=0&&e.b<3)}function BE(e){var t=~e.l+1&RB,n=~e.m+ +(t==0)&RB,r=~e.h+ +(t==0&&n==0)&zB;e.l=t,e.m=n,e.h=r}function VE(e){iy();var t,n,r=1;for(n=e.Kc();n.Ob();)t=n.Pb(),r=31*r+(t==null?0:zw(t)),r|=0;return r}function yYe(e,t,n,r,i){var a=Net(e,t);return n&&BE(a),i&&(e=S2e(e,t),bJ=r?SE(e):Cf(e.l,e.m,e.h)),a}function bYe(e,t,n){e.g=B5e(e,t,(XR(),j5),e.b),e.d=B5e(e,n,j5,e.b),e.g.c!=0&&e.d.c!=0&&A8e(e)}function xYe(e,t,n){e.g=B5e(e,t,(XR(),Z5),e.j),e.d=B5e(e,n,Z5,e.j),e.g.c!=0&&e.d.c!=0&&A8e(e)}function SYe(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return YQe(e,t)}function CYe(e,t){switch(t.g){case 0:V(e.b,641)||(e.b=new Kqe);break;case 1:V(e.b,642)||(e.b=new Ike)}}function wYe(e){switch(e.g){case 0:return new Vae;default:throw R(new Ks(gG+(e.f==null?``+e.g:e.f)))}}function TYe(e){switch(e.g){case 0:return new zae;default:throw R(new Ks(gG+(e.f==null?``+e.g:e.f)))}}function EYe(e,t,n){return!Bc(Av(new Yh(null,new Nb(e.c,16)),new ua(new ebe(t,n)))).Bd((gl(),eY))}function DYe(e,t){return Of(sA(H(q(t,(QI(),t4)),88)),new zu(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function OYe(e,t){for(;e.g==null&&!e.c?ib(e):e.g==null||e.i!=0&&H(e.g[e.i-1],51).Ob();)Dbe(t,aF(e))}function HE(e){for(var t,n=new L(e.a.b);n.ar)}function FYe(e){return Af(e.c,(cE(),NRt)),QWe(e.a,z(Ip(dA((ok(),h0)))))?new Toe:new ife(e)}function IYe(e){for(;!e.d||!e.d.Ob();)if(e.b&&!nc(e.b))e.d=H(e_(e.b),51);else return null;return e.d}function LYe(e){switch(e.g){case 1:return jW;default:case 2:return 0;case 3:return gH;case 4:return MW}}function RYe(){vz();var e;return cUt||(e=QCe(nz(`M`,!0)),e=ng(nz(`M`,!1),e),cUt=e,cUt)}function zYe(){zYe=D,EBt=new rd(`ELK`,0),DBt=new rd(`JSON`,1),TBt=new rd(`DOT`,2),OBt=new rd(`SVG`,3)}function qE(){qE=D,vNt=new $ve(`STACKED`,0),_Nt=new $ve(`REVERSE_STACKED`,1),Y0=new $ve(`SEQUENCED`,2)}function JE(){JE=D,zPt=new Dye(oU,0),RPt=new Dye(`MIDDLE_TO_MIDDLE`,1),R2=new Dye(`AVOID_OVERLAP`,2)}function YE(){YE=D,aZ=new Gte,iOt=new Kte,rOt=new Ute,nOt=new qte,tOt=new Wte,eOt=(iv(tOt),new te)}function XE(){XE=D,Bzt=new rf(15),zzt=new cf((gz(),Q6),Bzt),J8=m8,Lzt=S6,Rzt=W6,q8=K6,K8=G6}function ZE(e,t){for(var n,r=t,i=0,a=r.length,o;i=e.b.c.length||(qYe(e,2*t+1),n=2*t+2,n0&&(t.Cd(n),n.i&&XZe(n))}function YYe(e,t,n){for(var r=n-1;r>=0&&e[r]===t[r];r--);return r<0?0:Z_e(Rb(e[r],$B),Rb(t[r],$B))?-1:1}function XYe(e,t,n){var r,i;this.g=e,this.c=t,this.a=this,this.d=this,i=RKe(n),r=vS(ASt,aB,227,i,0,1),this.b=r}function ZYe(e,t,n,r,i){for(var a,o=n;o<=i;o++)for(a=t;a<=r;a++)if(UA(e,a,o))return!0;return!1}function QYe(e,t){for(var n,r=e.Zb().Cc().Kc();r.Ob();)if(n=H(r.Pb(),16),n.Hc(t))return!0;return!1}function $Ye(e,t,n){var r,i,a,o;for(iv(n),o=!1,a=e.fd(t),i=n.Kc();i.Ob();)r=i.Pb(),a.Rb(r),o=!0;return o}function eXe(e,t){var n,r=H(PT(e.a,4),129);return n=vS(gVt,PK,424,t,0,1),r!=null&&JI(r,0,n,0,r.length),n}function tXe(e,t){var n=new dat(!!(e.f&256),e.i,e.a,e.d,!!(e.f&16),e.j,e.g,t);return e.e??(n.c=e),n}function nXe(e,t){var n;return e===t?!0:V(t,85)?(n=H(t,85),a5e(Tg(e),n.vc())):!1}function rXe(e,t,n){for(var r,i=n.Kc();i.Ob();)if(r=H(i.Pb(),44),e.Be(t,r.md()))return!0;return!1}function iXe(e,t,n){return e.d[t.p][n.p]||(x0e(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function aXe(e,t){var n;return!e||e==t||!Cp(t,(hz(),IQ))?!1:(n=H(q(t,(hz(),IQ)),10),n!=e)}function oXe(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.$l()}}function sXe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e._l()}}function cXe(e){UFe.call(this,`The given string does not match the expected format for individual spacings.`,e)}function lXe(e,t){var n;t.Ug(`Min Size Preprocessing`,1),n=HN(e),xA(e,(QF(),M4),n.a),xA(e,j4,n.b),t.Vg()}function uXe(e){var t=0,n,r=vS(X3,Kz,8,e.b,0,1);for(n=lA(e,0);n.b!=n.d.c;)r[t++]=H(ux(n),8);return r}function dXe(e,t,n){for(var r=new ll,i,a=lA(n,0);a.b!=a.d.c;)i=H(ux(a),8),Ch(r,new Ld(i));$Ye(e,t,r)}function fXe(e,t){var n=vO(e,t);return Z_e(ZIe(e,t),0)|Bbe(ZIe(e,n),0)?n:vO(Zz,ZIe(kg(n,63),1))}function pXe(e,t){var n=H(e.d.Bc(t),16),r;return n?(r=e.e.hc(),r.Gc(n),e.e.d-=n.gc(),n.$b(),r):null}function mXe(e){var t=e.a.c.length;if(t>0)return Pg(t-1,e.a.c.length),eS(e.a,t-1);throw R(new vpe)}function hXe(e,t,n){if(e>t)throw R(new Ks(Zmt+e+Qmt+t));if(e<0||t>n)throw R(new nhe(Zmt+e+$mt+t+Umt+n))}function eD(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),CKe(e,t==null?null:(iv(t),t)),e.C&&e.hl(null)}function gXe(e,t){var n=dA((ok(),h0))!=null&&t.Sg()!=null?z(Ip(t.Sg()))/z(Ip(dA(h0))):1;fv(e.b,t,n)}function _Xe(e,t){var n,r=e.c[t];if(r!=0)for(e.c[t]=0,e.d-=r,n=t+1;nAW?e-n>AW:n-e>AW}function zXe(e,t){for(var n=0;ni&&(L3e(t.q,i),r=n!=t.q.d)),r}function HXe(e,t){var n,i,a,o,s,l,u=t.i,d=t.j;return i=e.f,a=i.i,o=i.j,s=u-a,l=d-o,n=r.Math.sqrt(s*s+l*l),n}function UXe(e,t){var n,r=Jk(e);return r||(!ZBt&&(ZBt=new Xoe),n=(aR(),xtt(t)),r=new Jfe(n),SS(r.El(),e)),r}function vD(e,t){var n=H(e.c.Bc(t),16),r;return n?(r=e.hc(),r.Gc(n),e.d-=n.gc(),n.$b(),e.mc(r)):e.jc()}function WXe(e,t){var n,r=cF(e.d,1)!=0;for(n=!0;n;)n=!1,n=t.c.mg(t.e,r),n|=TF(e,t,r,!1),r=!r;fqe(e)}function GXe(e,t,n,r){var i,a;e.a=t,a=+!r,e.f=(i=new h5e(e.c,e.a,n,a),new pat(n,e.a,i,e.e,e.b,e.c==(bw(),r2)))}function KXe(e){var t;return zp(e.a!=e.b),t=e.d.a[e.a],Ywe(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function qXe(e){var t;if(e.c!=0)return e.c;for(t=0;t=e.c.b:e.a<=e.c.b))throw R(new Io);return t=e.a,e.a+=e.c.c,++e.b,kD(t)}function YXe(e){var t=new mSe(e.a);return UT(t,e),EE(t,(hz(),KQ),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function XXe(e){return(XR(),U5).Hc(e.j)?z(Ip(q(e,(hz(),n$)))):LE(K(B(X3,1),Kz,8,0,[e.i.n,e.n,e.a])).b}function ZXe(e){var t=Bd(WNt);return H(q(e,(hz(),jQ)),21).Hc((BF(),iQ))&&zh(t,(XM(),rX),(_z(),KX)),t}function QXe(e){var t,n,r,i=new Uo;for(r=new L(e);r.a=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function iZe(e,t){var n,r,i=1;for(n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function bD(e,t){var n,r,i,a=(i=e?Jk(e):null,_7e((r=t,i&&i.Gl(),r)));return a==t&&(n=Jk(e),n&&n.Gl()),a}function xD(e,t,n){var r,i=e.f;return e.f=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,0,i,t),n?n.nj(r):n=r),n}function SD(e,t,n){var r,i=e.b;return e.b=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,3,i,t),n?n.nj(r):n=r),n}function aZe(e,t,n){var r,i=e.a;return e.a=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,1,i,t),n?n.nj(r):n=r),n}function oZe(e){var t,n,r,i;if(e!=null){for(n=0;n=r||t-129&&e<128?(Fke(),t=e+128,n=USt[t],!n&&(n=USt[t]=new Pi(e)),n):new Pi(e)}function AD(e){var t,n;return e>-129&&e<128?(bAe(),t=e+128,n=YSt[t],!n&&(n=YSt[t]=new Fi(e)),n):new Fi(e)}function mZe(e,t){var n;e.a.c.length>0&&(n=H(Wh(e.a,e.a.c.length-1),579),VYe(n,t))||Af(e.a,new OBe(t))}function hZe(e){Im();var t=e.d.c-e.e.c,n=H(e.g,154);UC(n.b,new Que(t)),UC(n.c,new $ue(t)),Px(n.i,new ede(t))}function gZe(e){var t=new sc;return t.a+=`VerticalSegment `,vd(t,e.e),t.a+=` `,yd(t,uCe(new qme,new L(e.k))),t.a}function _Ze(e,t){for(var n=0,r,i=xO(e,t).Kc();i.Ob();)r=H(i.Pb(),12),n+=q(r,(hz(),qQ))==null?0:1;return n}function jD(e,t,n){for(var r=0,i,a=lA(e,0);a.b!=a.d.c&&(i=z(Ip(ux(a))),!(i>n));)i>=t&&++r;return r}function vZe(e,t){D_(e);try{return e._b(t)}catch(e){if(e=eE(e),V(e,212)||V(e,169))return!1;throw R(e)}}function yZe(e,t){D_(e);try{return e.Hc(t)}catch(e){if(e=eE(e),V(e,212)||V(e,169))return!1;throw R(e)}}function bZe(e,t){D_(e);try{return e.Mc(t)}catch(e){if(e=eE(e),V(e,212)||V(e,169))return!1;throw R(e)}}function MD(e,t){D_(e);try{return e.xc(t)}catch(e){if(e=eE(e),V(e,212)||V(e,169))return null;throw R(e)}}function xZe(e,t){D_(e);try{return e.Bc(t)}catch(e){if(e=eE(e),V(e,212)||V(e,169))return null;throw R(e)}}function ND(e,t){switch(t.g){case 2:case 1:return xO(e,t);case 3:case 4:return qO(xO(e,t))}return iy(),iy(),WJ}function PD(e){var t;return e.Db&64?$P(e):(t=new Zf($P(e)),t.a+=` (name: `,gd(t,e.zb),t.a+=`)`,t.a)}function SZe(e){var t=H(_C(e.c.c,``),233);return t||(t=new Cb(xc(bc(new Vn,``),`Other`)),oA(e.c.c,``,t)),t}function CZe(e,t,n){var r,i=e.sb;return e.sb=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,4,i,t),n?n.nj(r):n=r),n}function wZe(e,t,n){var r,i=e.r;return e.r=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,8,i,e.r),n?n.nj(r):n=r),n}function TZe(e,t,n){var r=new aC(e.e,4,13,(i=t.c,i||(bz(),Y7)),null,wA(e,t),!1),i;return n?n.nj(r):n=r,n}function EZe(e,t,n){var r=new aC(e.e,3,13,null,(i=t.c,i||(bz(),Y7)),wA(e,t),!1),i;return n?n.nj(r):n=r,n}function FD(e,t){var n=H(t,691),r=n.el();return!r&&n.fl(r=V(t,90)?new Pbe(e,H(t,29)):new FLe(e,H(t,156))),r}function ID(e,t,n){var r;e._i(e.i+1),r=e.Zi(t,n),t!=e.i&&JI(e.g,t,e.g,t+1,e.i-t),F_(e.g,t,r),++e.i,e.Mi(t,n),e.Ni()}function DZe(e,t){var n;return t.a&&(n=t.a.a.length,e.a?yd(e.a,e.b):e.a=new Qf(e.d),YLe(e.a,t.a,t.d.length,n)),e}function OZe(e,t){var n;e.c=t,e.a=a$e(t),e.a<54&&(e.f=(n=t.d>1?qLe(t.a[0],t.a[1]):qLe(t.a[0],0),tx(t.e>0?n:YS(n))))}function LD(e,t){var n=new Ae;return e.a.Bd(n)?(Vf(),new Rs(iv(NUe(e,n.a,t)))):(ev(e),Vf(),Vf(),SCt)}function RD(e,t){var n;e.c.length!=0&&(n=H(rA(e,vS(vX,dU,10,e.c.length,0,1)),199),wxe(n,new Qee),DP(n,t))}function kZe(e,t){var n;e.c.length!=0&&(n=H(rA(e,vS(vX,dU,10,e.c.length,0,1)),199),wxe(n,new $ee),DP(n,t))}function zD(e,t){return ld(e)?hm(e,t):dd(e)?mEe(e,t):ud(e)?(iv(e),cd(e)===cd(t)):fje(e)?e.Fb(t):lg(e)?uxe(e,t):Lb(e,t)}function BD(e,t,n){if(t<0)J7e(e,n);else{if(!n.rk())throw R(new Ks(HG+n.xe()+UG));H(n,69).wk().Ek(e,e.hi(),t)}}function AZe(e,t,n){if(e<0||t>n)throw R(new Ws(Zmt+e+$mt+t+`, size: `+n));if(e>t)throw R(new Ks(Zmt+e+Qmt+t))}function jZe(e){var t;return e.Db&64?$P(e):(t=new Zf($P(e)),t.a+=` (source: `,gd(t,e.d),t.a+=`)`,t.a)}function VD(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function HD(e){yz();for(var t,n=N1e(),r=0,i=n.length;r=0?bk(e):h_(bk(YS(e))))}function IZe(e,t,n,r,i,a){this.e=new go,this.f=(xw(),J0),Af(this.e,e),this.d=t,this.a=n,this.b=r,this.f=i,this.c=a}function ZD(e,t,n){e.n=Kh(L9,[Kz,Amt],[376,28],14,[n,Uy(r.Math.ceil(t/32))],2),e.o=t,e.p=n,e.j=t-1>>1,e.k=n-1>>1}function LZe(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function RZe(e,t){for(var n,r=new Lf(e);r.e!=r.i.gc();)if(n=H(fA(r),142),cd(t)===cd(n))return!0;return!1}function zZe(e,t,n){var r,i,a=(i=tF(e.b,t),i);return a&&(r=H(rR(eC(e,a),``),29),r)?Stt(e,r,t,n):null}function BZe(e,t,n){var r,i,a=(i=tF(e.b,t),i);return a&&(r=H(rR(eC(e,a),``),29),r)?Ctt(e,r,t,n):null}function QD(e,t){var n=tw(e.i,t);if(n==null)throw R(new Qs(`Node did not exist in input.`));return xT(t,n),null}function VZe(e,t){var n=wF(e,t);if(V(n,331))return H(n,35);throw R(new Ks(HG+t+`' is not a valid attribute`))}function $D(e,t,n){var r=e.gc();if(t>r)throw R(new mm(t,r));if(e.Si()&&e.Hc(n))throw R(new Ks(mK));e.Gi(t,n)}function HZe(e,t){t.Ug(`Sort end labels`,1),_l(Av(yC(new Yh(null,new Nb(e.b,16)),new Iee),new Lee),new Ree),t.Vg()}function eO(){eO=D,M8=new Wu(NV,0),j8=new Wu(jV,1),A8=new Wu(AV,2),k8=new Wu(bht,3),N8=new Wu(`UP`,4)}function tO(){tO=D,$Lt=new zye(`P1_STRUCTURE`,0),X4=new zye(`P2_PROCESSING_ORDER`,1),Z4=new zye(`P3_EXECUTION`,2)}function nO(){nO=D,UFt=Wk(Wk(Rl(Wk(Wk(Rl(zh(new uv,(_j(),P2),(hI(),FPt)),F2),jPt),NPt),I2),DPt),PPt)}function UZe(e){switch(H(q(e,(hz(),FQ)),311).g){case 1:EE(e,FQ,(dC(),pQ));break;case 2:EE(e,FQ,(dC(),hQ))}}function WZe(e){switch(e){case 0:return new qpe;case 1:return new Gpe;case 2:return new Kpe;default:throw R(new jo)}}function GZe(e){switch(e.g){case 2:return j8;case 1:return A8;case 4:return k8;case 3:return N8;default:return M8}}function KZe(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new Vv(t.d,0,t.a,t.b);default:return null}}function qZe(e){switch(e.g){case 1:return Z5;case 2:return M5;case 3:return j5;case 4:return Y5;default:return X5}}function rO(e){switch(e.g){case 1:return Y5;case 2:return Z5;case 3:return M5;case 4:return j5;default:return X5}}function iO(e){switch(e.g){case 1:return j5;case 2:return Y5;case 3:return Z5;case 4:return M5;default:return X5}}function JZe(e,t,n,r){switch(t){case 1:return!e.n&&(e.n=new Bg(y7,e,1,7)),e.n;case 2:return e.k}return i4e(e,t,n,r)}function aO(e,t,n){var r,i;return e.Pj()?(i=e.Qj(),r=C9e(e,t,n),e.Jj(e.Ij(7,kD(n),r,t,i)),r):C9e(e,t,n)}function YZe(e,t){var n,r,i;e.d==null?(++e.e,--e.f):(i=t.ld(),n=t.Bi(),r=(n&Ez)%e.d.length,kVe(e,r,ktt(e,r,n,i)))}function oO(e,t){var n=(e.Bb&oB)!=0;t?e.Bb|=oB:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,10,n,t))}function sO(e,t){var n=(e.Bb&JB)!=0;t?e.Bb|=JB:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,12,n,t))}function cO(e,t){var n=(e.Bb&VK)!=0;t?e.Bb|=VK:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,15,n,t))}function lO(e,t){var n=(e.Bb&HK)!=0;t?e.Bb|=HK:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,11,n,t))}function XZe(e){var t;e.g&&(t=e.c.kg()?e.f:e.a,rit(t.a,e.o,!0),rit(t.a,e.o,!1),EE(e.o,(fz(),N1),(CM(),y5)))}function ZZe(e){var t;if(!e.a)throw R(new qs(`Cannot offset an unassigned cut.`));t=e.c-e.b,e.b+=t,ny(e,t),uPe(e,t)}function QZe(e,t){var n=N_(e.k,t);if(n==null)throw R(new Qs(`Port did not exist in input.`));return xT(t,n),null}function $Ze(e){for(var t,n=YP(qC(e)).Kc();n.Ob();)if(t=Lp(n.Pb()),BI(e,t))return Uze((K_e(),RVt),t);return null}function eQe(e){for(var t,n=e.p.a.ec().Kc();n.Ob();)if(t=H(n.Pb(),218),t.f&&e.b[t.c]<-1e-10)return t;return null}function tQe(e){var t,n=W_(new sc,91);for(t=!0;e.Ob();)t||(n.a+=Az),t=!1,vd(n,e.Pb());return(n.a+=`]`,n).a}function nQe(e){for(var t=new go,n,r=new L(e.b);r.at?1:e==t?e==0?uO(1/e,1/t):0:isNaN(e)?+!isNaN(t):-1}function aQe(e){var t=e.a[e.c-1&e.a.length-1];return t==null?null:(e.c=e.c-1&e.a.length-1,F_(e.a,e.c,null),t)}function oQe(e){var t,n,r=0;for(n=e.length,t=0;t=1?j8:k8):n}function fQe(e){switch(H(q(e,(fz(),Z$)),223).g){case 1:return new fre;case 3:return new _re;default:return new dre}}function pO(e){if(e.c)pO(e.c);else if(e.d)throw R(new qs(`Stream already terminated, can't be modified or used`))}function mO(e,t,n){var r=e.a.get(t);return e.a.set(t,n===void 0?null:n),r===void 0?(++e.c,++e.b.g):++e.d,r}function pQe(e,t,n){for(var r,i=e.a.ec().Kc();i.Ob();)if(r=H(i.Pb(),10),$T(n,H(Wh(t,r.p),16)))return r;return null}function mQe(e,t,n){var r=0;return t&&(Gd(e.a)?r+=t.f.a/2:r+=t.f.b/2),n&&(Gd(e.a)?r+=n.f.a/2:r+=n.f.b/2),r}function hQe(e,t,n){var r=n;!r&&(r=kke(new hs,0)),r.Ug(Lht,2),O0e(e.b,t,r.eh(1)),Mlt(e,t,r.eh(1)),mft(t,r.eh(1)),r.Vg()}function gQe(e,t,n){var r=(Mc(),i=new Moe,i),i;return CGe(r,t),nw(r,n),e&&SS((!e.a&&(e.a=new Mf(d7,e,5)),e.a),r),r}function hO(e){var t;return e.Db&64?$P(e):(t=new Zf($P(e)),t.a+=` (identifier: `,gd(t,e.k),t.a+=`)`,t.a)}function _Qe(e,t){var n=(e.Bb&KG)!=0;t?e.Bb|=KG:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,18,n,t))}function vQe(e,t){var n=(e.Bb&KG)!=0;t?e.Bb|=KG:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,18,n,t))}function gO(e,t){var n=(e.Bb&qz)!=0;t?e.Bb|=qz:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,16,n,t))}function yQe(e,t){var n=(e.Bb&XB)!=0;t?e.Bb|=XB:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&jT(e,new Ux(e,1,20,n,t))}function bQe(e){var t=vS(P9,yB,28,2,15,1);return e-=XB,t[0]=(e>>10)+ZB&xB,t[1]=(e&1023)+56320&xB,Ik(t,0,t.length)}function _O(e){var t=pN(e);return t>34028234663852886e22?KB:t<-34028234663852886e22?qB:t}function vO(e,t){var n;return Nd(e)&&Nd(t)&&(n=e+t,WB`+Hb(t.c):`e_`+zw(t),e.b&&e.c?Hb(e.b)+`->`+Hb(e.c):`e_`+zw(e))}function xQe(e,t){return hm(t.b&&t.c?Hb(t.b)+`->`+Hb(t.c):`e_`+zw(t),e.b&&e.c?Hb(e.b)+`->`+Hb(e.c):`e_`+zw(e))}function wO(e,t){return mf(),Cw(mB),r.Math.abs(e-t)<=mB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Md(isNaN(e),isNaN(t))}function TO(){TO=D,H8=new Yye(NV,0),B8=new Yye(`POLYLINE`,1),z8=new Yye(`ORTHOGONAL`,2),V8=new Yye(`SPLINES`,3)}function EO(){EO=D,nLt=new Fye(`ASPECT_RATIO_DRIVEN`,0),rLt=new Fye(`MAX_SCALE_DRIVEN`,1),tLt=new Fye(`AREA_DRIVEN`,2)}function DO(e,t,n){var r;try{gYe(e,t,n)}catch(e){throw e=eE(e),V(e,606)?(r=e,R(new Kx(r))):R(e)}return t}function SQe(e){for(var t,n=0,r=e.length;nt&&r.Ne(e[a-1],e[a])>0;--a)o=e[a],F_(e,a,e[a-1]),F_(e,a-1,o)}function NO(e,t){var n=t.f,r,i,a,o;if(oA(e.c.d,n,t),t.g!=null)for(i=t.g,a=0,o=i.length;at){QLe(n);break}}g_(n,t)}function OQe(e,t){var n,i=z(Ip(hk($b(t),(fz(),K1))));n=r.Math.max(0,i/2-.5),Rj(t,n,1),Af(e,new Dve(t,n))}function kQe(e,t,n){var r;n.Ug(`Straight Line Edge Routing`,1),n.dh(t,xvt),r=H(qP(t,(Hp(),u4)),27),qL(e,r),n.dh(t,GW)}function AQe(e,t){e.n.c.length==0&&Af(e.n,new Wy(e.s,e.t,e.i)),Af(e.b,t),p2e(H(Wh(e.n,e.n.c.length-1),209),t),sct(e,t)}function PO(e){var t;this.a=(t=H(e.e&&e.e(),9),new Dm(t,H(nm(t,t.length),9),0)),this.b=vS(eJ,jz,1,this.a.a.length,5,1)}function FO(e){var t;return Array.isArray(e)&&e.Tm===E?Fc(sD(e))+`@`+(t=zw(e)>>>0,t.toString(16)):e.toString()}function jQe(e,t){return e.h==BB&&e.m==0&&e.l==0?(t&&(bJ=Cf(0,0,0)),pxe((pC(),zSt))):(t&&(bJ=Cf(e.l,e.m,e.h)),Cf(0,0,0))}function IO(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function MQe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function LO(e,t,n,r){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return JZe(e,t,n,r)}function RO(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw R(new Ks(`Node `+t+` not part of edge `+e))}function NQe(e,t){var n=wF(e.Dh(),t);if(V(n,102))return H(n,19);throw R(new Ks(HG+t+`' is not a valid reference`))}function zO(e,t,n,r){if(t<0)unt(e,n,r);else{if(!n.rk())throw R(new Ks(HG+n.xe()+UG));H(n,69).wk().Ck(e,e.hi(),t,r)}}function BO(e){var t;if(e.b){if(BO(e.b),e.b.d!=e.c)throw R(new Fo)}else e.d.dc()&&(t=H(e.f.c.xc(e.e),16),t&&(e.d=t))}function VO(e){Gp();for(var t=e.o.b,n,r=H(H(Zx(e.r,(XR(),Y5)),21),87).Kc(),i;r.Ob();)n=H(r.Pb(),117),i=n.e,i.b+=t}function HO(e){var t,n,r;for(this.a=new Pd,r=new L(e);r.a=i)return t.c+n;return t.c+t.b.gc()}function FQe(e,t){Vp();var n,r=mUe(e),i=t,a;for(zS(r,0,r.length,i),n=0;n0&&(r+=i,++n);return n>1&&(r+=e.d*(n-1)),r}function LQe(e){var t,n,r,i,a=IM(e);return n=Wc(e.c),r=!n,r&&(i=new mi,AC(a,`knownLayouters`,i),t=new Pfe(i),Px(e.c,t)),a}function KO(e){var t,n,r=new ac;for(r.a+=`[`,t=0,n=e.gc();t0&&(Mb(t-1,e.length),e.charCodeAt(t-1)==58)&&!UO(e,T7,E7))}function VQe(e,t){var n;return cd(e)===cd(t)?!0:V(t,92)?(n=H(t,92),e.e==n.e&&e.d==n.d&&qze(e,n.a)):!1}function JO(e){switch(XR(),e.g){case 4:return M5;case 1:return j5;case 3:return Y5;case 2:return Z5;default:return X5}}function HQe(e){var t,n;if(e.b)return e.b;for(n=XJ?null:e.d;n;){if(t=XJ?null:n.b,t)return t;n=XJ?null:n.d}return ml(),YJ}function UQe(e){var t,n,r=z(Ip(e.a.of((gz(),x8))));for(n=new L(e.a.Sf());n.a>5,t=e&31,r=vS(F9,NB,28,n+1,15,1),r[n]=1<3;)i*=10,--a;e=(e+(i>>1))/i|0}return r.i=e,!0}function $O(e,t){var n=(e.i??$I(e),e.i),r=t.Lj(),i;if(r!=-1){for(i=n.length;r=0;--r)for(t=n[r],i=0;i>1,this.k=t-1>>1}function ak(e){FS(),H(e.of((gz(),J6)),181).Hc((EI(),oBt))&&(H(e.of(u8),181).Fc((aP(),A5)),H(e.of(J6),181).Mc(oBt))}function f$e(e){var t=e.d==(RN(),yZ),n=r6e(e);t&&!n||!t&&n?EE(e.a,(fz(),F$),(OA(),n6)):EE(e.a,(fz(),F$),(OA(),t6))}function ok(){ok=D,N_e(),h0=(fz(),n0),g0=$x(K(B(j3,1),rvt,149,0,[G1,K1,J1,Y1,Q1,$1,e0,t0,i0,o0,q1,X1,r0]))}function sk(e,t){var n=H(Ax(e,OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15);return n.Qc(iAe(n.gc()))}function p$e(e,t){var n,r=new ca(e.a.ad(t,!0));if(r.a.gc()<=1)throw R(new No);return n=r.a.ec().Kc(),n.Pb(),H(n.Pb(),40)}function m$e(e,t,n){var r=z(e.p[t.i.p])+z(e.d[t.i.p])+t.n.b+t.a.b;return z(e.p[n.i.p])+z(e.d[n.i.p])+n.n.b+n.a.b-r}function h$e(e,t){var n;return e.i>0&&(t.lengthe.i&&F_(t,e.i,null),t}function ck(e){var t;return e.Db&64?PD(e):(t=new Zf(PD(e)),t.a+=` (instanceClassName: `,gd(t,e.D),t.a+=`)`,t.a)}function lk(e){var t,n,r,i=0;for(n=0,r=e.length;n0&&(e._j(),r=t==null?0:zw(t),i=(r&Ez)%e.d.length,n=ktt(e,i,r,t),n!=-1)}function fk(e,t){var n,i;e.a=vO(e.a,1),e.c=r.Math.min(e.c,t),e.b=r.Math.max(e.b,t),e.d+=t,n=t-e.f,i=e.e+n,e.f=i-e.e-n,e.e=i}function _$e(e,t){switch(t){case 3:iw(e,0);return;case 4:aw(e,0);return;case 5:ow(e,0);return;case 6:sw(e,0);return}dZe(e,t)}function pk(e,t){switch(t.g){case 1:return oh(e.j,(pT(),rDt));case 2:return oh(e.j,(pT(),aDt));default:return iy(),iy(),WJ}}function v$e(e){A_();var t=e.Pc();switch(t.length){case 0:return wSt;case 1:return new dAe(D_(t[0]));default:return new wy(SQe(t))}}function y$e(e,t){e.Xj();try{e.d.bd(e.e++,t),e.f=e.d.j,e.g=-1}catch(e){throw e=eE(e),V(e,77)?R(new Fo):R(e)}}function b$e(){b$e=D,mHt=new Qoe,sHt=new $oe,cHt=new ese,lHt=new $n,uHt=new tse,dHt=new N,fHt=new er,pHt=new tr,hHt=new nse}function mk(e,t){nxe();var n=Zp((Ls(),Ls(),hJ)),r=null;return t==n&&(r=H(Ry(mJ,e),624)),r||(r=new MMe(e),t==n&&mb(mJ,e,r)),r}function x$e(e){return EA(),(e.q?e.q:(iy(),iy(),GJ))._b((fz(),x1))?H(q(e,x1),203):H(q($_(e),S1),203)}function hk(e,t){var n,r=null;return Cp(e,(fz(),Z1))&&(n=H(q(e,Z1),96),n.pf(t)&&(r=n.of(t))),r??=q($_(e),t),r}function S$e(e,t){var n,r,i;return V(t,44)?(n=H(t,44),r=n.ld(),i=MD(e.Rc(),r),Y_(i,n.md())&&(i!=null||e.Rc()._b(r))):!1}function gk(e,t){var n,r,i;return e.f>0&&(e._j(),r=t==null?0:zw(t),i=(r&Ez)%e.d.length,n=k9e(e,i,r,t),n)?n.md():null}function _k(e,t,n){var r,i,a;return e.Pj()?(r=e.i,a=e.Qj(),ID(e,r,t),i=e.Ij(3,null,t,r,a),n?n.nj(i):n=i):ID(e,e.i,t),n}function vk(e,t,n){var r=new aC(e.e,4,10,(i=t.c,V(i,90)?H(i,29):(bz(),X7)),null,wA(e,t),!1),i;return n?n.nj(r):n=r,n}function C$e(e,t,n){var r=new aC(e.e,3,10,null,(i=t.c,V(i,90)?H(i,29):(bz(),X7)),wA(e,t),!1),i;return n?n.nj(r):n=r,n}function yk(e){Gp();var t=new Ld(H(e.e.of((gz(),K6)),8));return e.B.Hc((EI(),o7))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function bk(e){cI();var t,n=Sg(e);return t=Sg(kg(e,32)),t==0?n>10||n<0?new wx(1,n):aCt[n]:new aLe(n,t)}function xk(e,t){var n;return Nd(e)&&Nd(t)&&(n=e%t,WB=0?a=a.a[1]:(i=a,a=a.a[0])}return i}function Nk(e,t,n){for(var r,i=null,a=e.b;a;){if(r=e.a.Ne(t,a.d),n&&r==0)return a;r<=0?a=a.a[0]:(i=a,a=a.a[1])}return i}function O$e(e,t,n,r){var i=!1,a,o;return Tut(e.f,n,r)&&(_1e(e.f,e.a[t][n],e.a[t][r]),a=e.a[t],o=a[r],a[r]=a[n],a[n]=o,i=!0),i}function k$e(e,t,n){var r,i=H(N_(e.b,n),183),a,o;for(r=0,o=new L(t.j);o.a>5,r,i,a;return t&=31,i=e.d+n+(t==0?0:1),r=vS(F9,NB,28,i,15,1),U6e(r,e.a,n,t),a=new c_(e.e,i,r),Yb(a),a}function j$e(e,t){for(var n,r=new jg(Yf(AO(e).a.Kc(),new f)),i;UP(r);)if(n=H(Wx(r),18),i=n.d.i,i.c==t)return!1;return!0}function Fk(e,t,n){var i,a,o,s=e.k,l=t.k;return i=n[s.g][l.g],a=Ip(hk(e,i)),o=Ip(hk(t,i)),r.Math.max((iv(a),a),(iv(o),o))}function M$e(){return Error.stackTraceLimit>0?(r.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):`stack`in Error()}function N$e(e,t){return mf(),mf(),Cw(mB),(r.Math.abs(e-t)<=mB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Md(isNaN(e),isNaN(t)))>0}function P$e(e,t){return mf(),mf(),Cw(mB),(r.Math.abs(e-t)<=mB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Md(isNaN(e),isNaN(t)))<0}function F$e(e,t){return mf(),mf(),Cw(mB),(r.Math.abs(e-t)<=mB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Md(isNaN(e),isNaN(t)))<=0}function I$e(e,t){for(var n=0;!t[n]||t[n]==``;)n++;for(var r=t[n++];n0&&this.b>0&&(this.g=MAe(this.c,this.b,this.a))}function G$e(e,t){var n=e.a,r;t=String(t),n.hasOwnProperty(t)&&(r=n[t]);var i=(AE(),yJ)[typeof r];return i?i(r):_D(typeof r)}function zk(e){var t,n,r=null;if(t=cK in e.a,n=!t,n)throw R(new Qs(`Every element must have an id.`));return r=oP(Xy(e,cK)),r}function Bk(e){var t,n=C5e(e);for(t=null;e.c==2;)pz(e),t||(t=(vz(),vz(),++M9,new pf(2)),dR(t,n),n=t),n.Jm(C5e(e));return n}function Vk(e,t){var n,r,i;return e._j(),r=t==null?0:zw(t),i=(r&Ez)%e.d.length,n=k9e(e,i,r,t),n?(KGe(e,n),n.md()):null}function K$e(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+r.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function Hk(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw R(new Ks(`Input edge is not connected to the input port.`))}function Uk(e){if(Yk(DG,e))return lp(),SJ;if(Yk(OG,e))return lp(),xJ;throw R(new Ks(`Expecting true or false`))}function J$e(e){switch(typeof e){case Tz:return KE(e);case Gpt:return Ad(e);case wz:return pTe(e);default:return e==null?0:cp(e)}}function Wk(e,t){if(e.a<0)throw R(new qs(`Did not call before(...) or after(...) before calling add(...).`));return nwe(e,e.a,t),e}function Gk(e){return db(),V(e,162)?H(N_(pVt,hCt),295).Rg(e):Xg(pVt,sD(e))?H(N_(pVt,sD(e)),295).Rg(e):null}function Kk(e){var t,n;return e.Db&32||(n=(t=H(PT(e,16),29),M_(t||e.ii())-M_(e.ii())),n!=0&&qk(e,32,vS(eJ,jz,1,n,5,1))),e}function qk(e,t,n){var r;(e.Db&t)==0?n!=null&&Hrt(e,t,n):n==null?uet(e,t):(r=nj(e,t),r==-1?e.Eb=n:F_(gw(e.Eb),r,n))}function Y$e(e,t,n,r){var i,a;t.c.length!=0&&(i=pnt(n,r),a=X7e(t),_l(HWe(new Yh(null,new Nb(a,1)),new Tn),new Hv(e,n,i,r)))}function X$e(e,t){var n,r=e.a.length-1,i,a;return n=t-e.b&r,a=e.c-t&r,i=e.c-e.b&r,Ywe(n=a?(TXe(e,t),-1):(wXe(e,t),1)}function Jk(e){var t,n,r=e.Jh();if(!r)for(t=0,n=e.Ph();n;n=n.Ph()){if(++t>jmt)return n.Qh();if(r=n.Jh(),r||n==e)break}return r}function Z$e(e,t){var n;return cd(t)===cd(e)?!0:!V(t,21)||(n=H(t,21),n.gc()!=e.gc())?!1:e.Ic(n)}function Q$e(e,t){return e.et.e?1:e.ft.f?1:zw(e)-zw(t)}function Yk(e,t){return iv(e),t==null?!1:hm(e,t)?!0:e.length==t.length&&hm(e.toLowerCase(),t.toLowerCase())}function Xk(e){var t,n;return yD(e,-129)>0&&yD(e,128)<0?(yAe(),t=Sg(e)+128,n=GSt[t],!n&&(n=GSt[t]=new I(e)),n):new I(e)}function Zk(){Zk=D,hX=new gu(oU,0),GEt=new gu(`INSIDE_PORT_SIDE_GROUPS`,1),mX=new gu(`GROUP_MODEL_ORDER`,2),KEt=new gu(zht,3)}function $$e(e){var t;return e.b||Jhe(e,(t=QTe(e.e,e.a),!t||!hm(OG,gk((!t.b&&(t.b=new Ap((bz(),t9),i9,t)),t.b),`qualified`)))),e.c}function e1e(e,t){for(var n=(Mb(t,e.length),e.charCodeAt(t)),r=t+1;r2e3&&(PSt=e,fJ=r.setTimeout(zge,10))),dJ++==0&&(mWe((xme(),pJ)),!0)}function x1e(e,t,n){var r;(RCt?(HQe(e),1):zCt||VCt?(ml(),1):BCt&&(ml(),0))&&(r=new VEe(t),r.b=n,z8e(e,r))}function eA(e,t){var n=!e.A.Hc((Ak(),n7))||e.q==(CM(),b5);e.u.Hc((aP(),D5))?n?rft(e,t):Ndt(e,t):e.u.Hc(k5)&&(n?udt(e,t):Tft(e,t))}function S1e(e){var t;cd(qP(e,(gz(),N6)))===cd((ED(),X8))&&(ob(e)?(t=H(qP(ob(e),N6),346),xA(e,N6,t)):xA(e,N6,Z8))}function C1e(e){var t,n;return Cp(e.d.i,(fz(),k1))?(t=H(q(e.c.i,k1),17),n=H(q(e.d.i,k1),17),Sf(t.a,n.a)>0):!1}function w1e(e,t,n){return new Vv(r.Math.min(e.a,t.a)-n/2,r.Math.min(e.b,t.b)-n/2,r.Math.abs(e.a-t.a)+n,r.Math.abs(e.b-t.b)+n)}function T1e(e){var t;this.d=new go,this.j=new jc,this.g=new jc,t=e.g.b,this.f=H(q($_(t),(fz(),J$)),88),this.e=z(Ip(Y1e(t,Q1)))}function E1e(e){this.d=new go,this.e=new Ox,this.c=vS(F9,NB,28,(XR(),K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5])).length,15,1),this.b=e}function D1e(e,t,n){var r=n[e.g][t];switch(e.g){case 1:case 3:return new zu(0,r);case 2:case 4:return new zu(r,0);default:return null}}function O1e(e,t,n){var r,i=H(Py(t.f),205);try{i.rf(e,n),nNe(t.f,i)}catch(e){throw e=eE(e),V(e,103)?(r=e,R(r)):R(e)}}function tA(e,t,n){var r=null,i,a,o,s=lut(Sw(),t),l;return a=null,s&&(i=null,l=DR(s,n),o=null,l!=null&&(o=e.qf(s,l)),i=o,a=i),r=a,r}function nA(e,t,n,r){var i=e.length;if(t>=i)return i;for(t=t>0?t:0;tr&&F_(t,r,null),t}function k1e(e,t){var n,r=e.a.length;for(t.lengthr&&F_(t,r,null),t}function iA(e,t){var n,r;if(++e.j,t!=null&&(n=(r=e.a.Cb,V(r,99)?H(r,99).th():null),j9e(t,n))){qk(e.a,4,n);return}qk(e.a,4,H(t,129))}function A1e(e){var t;if(e==null)return null;if(t=Att(VL(e,!0)),t==null)throw R(new Vme(`Invalid hexBinary value: '`+e+`'`));return t}function aA(e,t,n){var r;t.a.length>0&&(Af(e.b,new fke(t.a,n)),r=t.a.length,0r&&(t.a+=NSe(vS(P9,yB,28,-r,15,1))))}function j1e(e,t,n){var r,i,a;if(!n[t.d])for(n[t.d]=!0,i=new L(cD(t));i.a=e.b>>1)for(r=e.c,n=e.b;n>t;--n)r=r.b;else for(r=e.a.a,n=0;n=0?e.Wh(i):v9e(e,r)):n<0?v9e(e,r):H(r,69).wk().Bk(e,e.hi(),n)}function K1e(e){var t,n,r=(!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),e.o);for(n=r.c.Kc();n.e!=n.i.gc();)t=H(n.Yj(),44),t.md();return gS(r)}function dA(e){var t;if(V(e.a,4)){if(t=Gk(e.a),t==null)throw R(new qs(fyt+e.b+`'. `+EG+(Rp(hVt),hVt.k)+dyt));return t}return e.a}function q1e(e,t){var n,r;if(e.j.length!=t.j.length)return!1;for(n=0,r=e.j.length;n=64&&t<128&&(i=zb(i,Dg(1,t-64)));return i}function Y1e(e,t){var n,r=null;return Cp(e,(gz(),b8))&&(n=H(q(e,b8),96),n.pf(t)&&(r=n.of(t))),r==null&&$_(e)&&(r=q($_(e),t)),r}function X1e(e,t){var n=H(q(e,(fz(),d1)),75);return TSe(t,YEt)?n?Qv(n):(n=new cs,EE(e,d1,n)):n&&EE(e,d1,null),n}function mA(){mA=D,DTt=(gz(),v8),xTt=XRt,_Tt=x6,STt=Q6,TTt=(Lj(),lwt),wTt=swt,ETt=dwt,CTt=owt,yTt=(SXe(),mTt),vTt=pTt,bTt=gTt,IY=FY}function hA(e){switch(Tl(),this.c=new go,this.d=e,e.g){case 0:case 2:this.a=pv(fX),this.b=KB;break;case 3:case 1:this.a=fX,this.b=qB}}function Z1e(e){var t;vm(H(q(e,(fz(),N1)),101))&&(t=e.b,N9e((jb(0,t.c.length),H(t.c[0],30))),N9e(H(Wh(t,t.c.length-1),30)))}function Q1e(e,t){t.Ug(`Self-Loop post-processing`,1),_l(Av(Av(yC(new Yh(null,new Nb(e.b,16)),new $te),new ene),new tne),new nne),t.Vg()}function $1e(e,t,n){var r,i;if(e.c)ow(e.c,e.c.i+t),sw(e.c,e.c.j+n);else for(i=new L(e.b);i.a=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function _A(){_A=D,QMt=new ju(avt,0),ZMt=new ju(TU,1),j0=new ju(`LINEAR_SEGMENTS`,2),A0=new ju(`BRANDES_KOEPF`,3),M0=new ju(ivt,4)}function vA(){vA=D,jY=new cu(BV,0),AY=new cu(xht,1),MY=new cu(Sht,2),NY=new cu(VV,3),jY.a=!1,AY.a=!0,MY.a=!1,NY.a=!0}function yA(){yA=D,TY=new ou(BV,0),wY=new ou(xht,1),EY=new ou(Sht,2),DY=new ou(VV,3),TY.a=!1,wY.a=!0,EY.a=!1,DY.a=!0}function bA(e,t,n,r){var i;return n>=0?e.Sh(t,n,r):(e.Ph()&&(r=(i=e.Fh(),i>=0?e.Ah(r):e.Ph().Th(e,-1-i,null,r))),e.Ch(t,n,r))}function s0e(e,t){switch(t){case 7:!e.e&&(e.e=new pm(p7,e,7,4)),hR(e.e);return;case 8:!e.d&&(e.d=new pm(p7,e,8,5)),hR(e.d);return}_$e(e,t)}function xA(e,t,n){return n==null?(!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),Vk(e.o,t)):(!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),Yj(e.o,t,n)),e}function c0e(e,t){iy();var n=e,r,i,a=t;for(V(e,21)&&!V(t,21)&&(n=t,a=e),i=n.Kc();i.Ob();)if(r=i.Pb(),a.Hc(r))return!1;return!0}function l0e(e,t,n,r){return t.an.b)}function u0e(e,t){return ld(e)?!!vSt[t]:e.Sm?!!e.Sm[t]:dd(e)?!!_St[t]:ud(e)?!!gSt[t]:!1}function d0e(e){var t=e.a;do t=H(Wx(new jg(Yf(kO(t).a.Kc(),new f))),18).c.i,t.k==(fN(),SX)&&e.b.Fc(t);while(t.k==(fN(),SX));e.b=qO(e.b)}function f0e(e,t){var n,i,a=e;for(i=new jg(Yf(kO(t).a.Kc(),new f));UP(i);)n=H(Wx(i),18),n.c.i.c&&(a=r.Math.max(a,n.c.i.c.p));return a}function p0e(e,t){var n,r,i=0;for(r=H(H(Zx(e.r,t),21),87).Kc();r.Ob();)n=H(r.Pb(),117),i+=n.d.d+n.b.Mf().b+n.d.a,r.Ob()&&(i+=e.w);return i}function m0e(e,t){var n,r,i=0;for(r=H(H(Zx(e.r,t),21),87).Kc();r.Ob();)n=H(r.Pb(),117),i+=n.d.b+n.b.Mf().a+n.d.c,r.Ob()&&(i+=e.w);return i}function h0e(e){var t,n,r=0,i=IF(e);if(i.c.length==0)return 1;for(n=new L(i);n.a=0?e.Lh(o,n,!0):kP(e,a,n)):H(a,69).wk().yk(e,e.hi(),i,n,r)}function y0e(e,t,n,r){var i=HD(t.pf((gz(),H6))?H(t.of(H6),21):e.j);i!=(yz(),Ywt)&&(!n||U$e(i))&&s5e(jtt(e,i,r),t)}function b0e(e){switch(e.g){case 1:return YT(),CY;case 3:return YT(),SY;case 2:return YT(),eTt;case 4:return YT(),$wt;default:return null}}function x0e(e,t,n){if(e.e)switch(e.b){case 1:oPe(e.c,t,n);break;case 0:sPe(e.c,t,n)}else yze(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function S0e(e){var t,n;if(e==null)return null;for(n=vS(vX,Kz,199,e.length,0,2),t=0;t=0)return i;if(e.ol()){for(r=0;r=i)throw R(new mm(t,i));if(e.Si()&&(r=e.dd(n),r>=0&&r!=t))throw R(new Ks(mK));return e.Xi(t,n)}function T0e(e,t){if(this.a=H(D_(e),253),this.b=H(D_(t),253),e.Ed(t)>0||e==(ys(),SSt)||t==(fme(),CSt))throw R(new Ks(`Invalid range: `+wze(e,t)))}function E0e(e){var t,n;for(this.b=new go,this.c=e,this.a=!1,n=new L(e.a);n.a0),(t&-t)==t)return Uy(t*cF(e,31)*4656612873077393e-25);do n=cF(e,31),r=n%t;while(n-r+(t-1)<0);return Uy(r)}function F0e(e,t,n){switch(n.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function AA(e,t,n,r){for(var i=t,a;i1&&(a=D0e(e,t)),a}function R0e(e){var t=z(Ip(qP(e,(gz(),T8))))*r.Math.sqrt((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a).i);return new zu(t,t/z(Ip(qP(e,w8))))}function z0e(e){var t;return e.f&&e.f.Vh()&&(t=H(e.f,54),e.f=H(bD(e,t),84),e.f!=t&&e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,9,8,t,e.f))),e.f}function B0e(e){var t;return e.i&&e.i.Vh()&&(t=H(e.i,54),e.i=H(bD(e,t),84),e.i!=t&&e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,9,7,t,e.i))),e.i}function MA(e){var t;return e.b&&e.b.Db&64&&(t=e.b,e.b=H(bD(e,t),19),e.b!=t&&e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,9,21,t,e.b))),e.b}function V0e(e,t){var n,r,i;e.d==null?(++e.e,++e.f):(r=t.Bi(),Gnt(e,e.f+1),i=(r&Ez)%e.d.length,n=e.d[i],!n&&(n=e.d[i]=e.dk()),n.Fc(t),++e.f)}function H0e(e,t,n){var r;return t.tk()?!1:t.Ik()==-2?t.qk()==e.e.Dh()&&n==null:(r=t.ik(),r==null?n==null:zD(r,n))}function U0e(){var e;Dw(16,smt),e=RKe(16),this.b=vS(ESt,aB,303,e,0,1),this.c=vS(ESt,aB,303,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function NA(e){im.call(this),this.k=(fN(),CX),this.j=(Dw(6,cB),new dS(6)),this.b=(Dw(2,cB),new dS(2)),this.d=new is,this.f=new Wpe,this.a=e}function W0e(e){var t,n;e.c.length<=1||(t=jit(e,(XR(),Y5)),k5e(e,H(t.a,17).a,H(t.b,17).a),n=jit(e,Z5),k5e(e,H(n.a,17).a,H(n.b,17).a))}function G0e(e,t,n){var r,i=e.a.b;for(r=i.c.length;r102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function t2e(e,t){if(e==null)throw R(new Js(`null key in entry: null=`+t));if(t==null)throw R(new Js(`null value in entry: `+e+`=null`))}function n2e(e,t){for(var n,r;e.Ob();)if(!t.Ob()||(n=e.Pb(),r=t.Pb(),!(cd(n)===cd(r)||n!=null&&zD(n,r))))return!1;return!t.Ob()}function r2e(e,t){var n=K(B(z9,1),QB,28,15,[fD(e.a[0],t),fD(e.a[1],t),fD(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function FA(e,t){var n=K(B(z9,1),QB,28,15,[pD(e.a[0],t),pD(e.a[1],t),pD(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function i2e(e,t,n){vm(H(q(t,(fz(),N1)),101))||(EBe(e,t,TN(t,n)),EBe(e,t,TN(t,(XR(),Y5))),EBe(e,t,TN(t,M5)),iy(),bf(t.j,new pde(e)))}function a2e(e){var t,n;for(e.c||Ult(e),n=new cs,t=new L(e.a),W(t);t.a0&&(Mb(0,t.length),t.charCodeAt(0)==43)?(Mb(1,t.length+1),t.substr(1)):t))}function HA(e){var t;return e==null?null:new nf((t=VL(e,!0),t.length>0&&(Mb(0,t.length),t.charCodeAt(0)==43)?(Mb(1,t.length+1),t.substr(1)):t))}function y2e(e,t,n,r,i,a,o,s){var l,u;r&&(l=r.a[0],l&&y2e(e,t,n,l,i,a,o,s),l4e(e,n,r.d,i,a,o,s)&&t.Fc(r),u=r.a[1],u&&y2e(e,t,n,u,i,a,o,s))}function UA(e,t,n){try{return fd(QKe(e,t,n),1)}catch(r){throw r=eE(r),V(r,333)?R(new Ws(WV+e.o+`*`+e.p+GV+t+Az+n+KV)):R(r)}}function WA(e,t,n){try{return fd(QKe(e,t,n),0)}catch(r){throw r=eE(r),V(r,333)?R(new Ws(WV+e.o+`*`+e.p+GV+t+Az+n+KV)):R(r)}}function GA(e,t,n){try{return fd(QKe(e,t,n),2)}catch(r){throw r=eE(r),V(r,333)?R(new Ws(WV+e.o+`*`+e.p+GV+t+Az+n+KV)):R(r)}}function KA(e,t){if(e.g==-1)throw R(new Mo);e.Xj();try{e.d.hd(e.g,t),e.f=e.d.j}catch(e){throw e=eE(e),V(e,77)?R(new Fo):R(e)}}function qA(e){for(var t,n,r=new L(e.b),i,a;r.aa&&F_(t,a,null),t}function b2e(e,t){var n,r=e.gc();if(t==null){for(n=0;n0&&(l+=i),u[d]=o,o+=s*(l+r)}function tj(e){var t,n,r=e.f;for(e.n=vS(z9,QB,28,r,15,1),e.d=vS(z9,QB,28,r,15,1),t=0;t0?e.c:0),++a;e.b=i,e.d=o}function P2e(e,t){var n=K(B(z9,1),QB,28,15,[P0e(e,(XC(),oY),t),P0e(e,sY,t),P0e(e,cY,t)]);return e.f&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function F2e(e,t,n){var r;try{iI(e,t+e.j,n+e.k,!1,!0)}catch(e){throw e=eE(e),V(e,77)?(r=e,R(new Ws(r.g+qV+t+Az+n+`).`))):R(e)}}function I2e(e,t,n){var r;try{iI(e,t+e.j,n+e.k,!0,!1)}catch(e){throw e=eE(e),V(e,77)?(r=e,R(new Ws(r.g+qV+t+Az+n+`).`))):R(e)}}function ij(e){var t;Cp(e,(fz(),v1))&&(t=H(q(e,v1),21),t.Hc((JP(),o5))?(t.Mc(o5),t.Fc(c5)):t.Hc(c5)&&(t.Mc(c5),t.Fc(o5)))}function L2e(e){var t;Cp(e,(fz(),v1))&&(t=H(q(e,v1),21),t.Hc((JP(),p5))?(t.Mc(p5),t.Fc(d5)):t.Hc(d5)&&(t.Mc(d5),t.Fc(p5)))}function R2e(e,t,n,r){var i,a,o,s;return e.a??K8e(e,t),o=t.b.j.c.length,a=n.d.p,s=r.d.p,i=s-1,i<0&&(i=o-1),a<=i?e.a[i]-e.a[a]:e.a[o-1]-e.a[a]+e.a[i]}function z2e(e){var t,n;if(!e.b)for(e.b=fRe(H(e.f,27).kh().i),n=new Lf(H(e.f,27).kh());n.e!=n.i.gc();)t=H(fA(n),135),Af(e.b,new Sme(t));return e.b}function B2e(e){var t,n;if(!e.e)for(e.e=fRe(xv(H(e.f,27)).i),n=new Lf(xv(H(e.f,27)));n.e!=n.i.gc();)t=H(fA(n),123),Af(e.e,new sfe(t));return e.e}function V2e(e){var t,n;if(!e.a)for(e.a=fRe(sy(H(e.f,27)).i),n=new Lf(sy(H(e.f,27)));n.e!=n.i.gc();)t=H(fA(n),27),Af(e.a,new fp(e,t));return e.a}function aj(e){var t;if(!e.C&&(e.D!=null||e.B!=null)){if(t=ndt(e),t)e.hl(t);else try{e.hl(null)}catch(e){if(e=eE(e),!V(e,63))throw R(e)}}return e.C}function H2e(e){switch(e.q.g){case 5:Jj(e,(XR(),M5)),Jj(e,Y5);break;case 4:AR(e,(XR(),M5)),AR(e,Y5);break;default:J5e(e,(XR(),M5)),J5e(e,Y5)}}function U2e(e){switch(e.q.g){case 5:l3e(e,(XR(),j5)),l3e(e,Z5);break;case 4:$lt(e,(XR(),j5)),$lt(e,Z5);break;default:Y5e(e,(XR(),j5)),Y5e(e,Z5)}}function oj(e,t){var n,i,a=new jc;for(i=e.Kc();i.Ob();)n=H(i.Pb(),36),sI(n,a.a,0),a.a+=n.f.a+t,a.b=r.Math.max(a.b,n.f.b);return a.b>0&&(a.b+=t),a}function W2e(e,t){var n,i,a=new jc;for(i=e.Kc();i.Ob();)n=H(i.Pb(),36),sI(n,0,a.b),a.b+=n.f.b+t,a.a=r.Math.max(a.a,n.f.a);return a.a>0&&(a.a+=t),a}function G2e(e){var t,n,i=Ez;for(n=new L(e.a);n.a>16==6?e.Cb.Th(e,5,g7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Y2e(e){py();var t=e.e;if(t&&t.stack){var n=t.stack,r=t+` + L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:N((e,t,n)=>{let{themeVariables:r}=Xo(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},_v=mNe}));function yv(e){let t=[];for(let n=0;n=1-Dv||p<=Dv||p>=1-Dv?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}function bv(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function _Ne(e,t,n){if(e.curve!==`rounded`)return!1;let r=e.points,i=r[t],a=r[t+1];if(!i||!a)return!1;let o=Math.hypot(a.x-i.x,a.y-i.y),s=n*o,l=t>0?SNe(r[t-1],i,a,wv):null;if(l&&s=Math.abs(n)?+(t>=0):+(n>=0)}function bNe(e,t){if(e.length<2)return e.map(e=>({...e}));let n=e.map(e=>({...e})),r=t.arrowTypeStart&&iv[t.arrowTypeStart];if(r){let t=e[0],i=e[1],a=Math.atan2(i.y-t.y,i.x-t.x);n[0].x=t.x+r*Math.cos(a),n[0].y=t.y+r*Math.sin(a)}let i=t.arrowTypeEnd&&iv[t.arrowTypeEnd];if(i){let t=e.length,r=e[t-2],a=e[t-1],o=Math.atan2(a.y-r.y,a.x-r.x);n[t-1].x=a.x-i*Math.cos(o),n[t-1].y=a.y-i*Math.sin(o)}return n}function xNe(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},l={x:a+t*e.r,y:o+n*e.r},u=[`L${Sv(s)}`];return i===`arc`?u.push(`A${xv(e.r)},${xv(e.r)} 0 0 ${r} ${Sv(l)}`):u.push(`M${Sv(l)}`),u}function SNe(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=n.x-t.x,s=n.y-t.y,l=Math.hypot(i,a),u=Math.hypot(o,s);if(l0){let t=SNe(i[e-1],i[e],i[e+1]??i[e],wv);t&&(p=t.cutLen)}let m=r,h=null;a&&ee.t-t.t).filter(e=>{let t=Math.min(e.d-p,m-e.d)-Ev;return e.r=Math.min(e.r,t),e.r>=g});for(let e=0;e<_.length-1;e++){let t=_[e+1].d-_[e].d;if(_[e].r+_[e+1].r>t){let n=t/2;_[e].r=Math.min(_[e].r,n),_[e+1].r=Math.min(_[e+1].r,n)}}for(let e of _)e.r=2?r:null}catch{return null}}function Cv(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=new Map;for(let e of r.querySelectorAll(`path[data-id]`)){let t=e.getAttribute(`data-id`);t!==null&&!a.has(t)&&a.set(t,e)}let o=[];for(let e of t){let t=a.get(e.id);if(!t)continue;let n=ENe(t.getAttribute(`data-points`))??e.points;o.push({...e,points:n})}let s=vNe(o);if(s.length===0)return;let l=new Map;for(let e of s){let t=l.get(e.jumpEdgeId)??[];t.push(e),l.set(e.jumpEdgeId,t)}for(let e of o){let t=l.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!TNe(r))continue;let o=a.get(e.id);if(!o||r===void 0&&!wNe(o.getAttribute(`d`)??``))continue;let s=o.getAttribute(`style`)??``,u=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),d=u?Number.parseFloat(u[1]):null,f=u?Number.parseFloat(u[2]):null,p=CNe(e,t,n);if(o.setAttribute(`d`,p),d!==null&&f!==null&&typeof o.getTotalLength==`function`){let e=o.getTotalLength(),t=`0 ${d} ${Math.max(0,e-d-f)} ${f}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);o.setAttribute(`style`,n)}}}var wv,Tv,Ev,DNe,Dv,Ov=o((()=>{vv(),Zn(),wv=5,Tv=1e-5,Ev=2,DNe=.6,Dv=1e-6,N(yv,`buildSegmentList`),N(gNe,`segmentIntersection`),N(bv,`isHorizontalSeg`),N(_Ne,`crossingSitsInRoundedCorner`),N(vNe,`findEdgeIntersections`),N(xv,`fmt`),N(Sv,`pointToString`),N(yNe,`getArcSweepFlag`),N(bNe,`applyMarkerOffsets`),N(xNe,`emitJump`),N(SNe,`computeRoundedCorner`),N(CNe,`rewriteEdgePath`),N(wNe,`isStraightPath`),N(TNe,`curveSupportsLineHops`),N(ENe,`decodeDataPoints`),N(Cv,`applyLineJumpsToSvg`)})),ONe,kv=o((()=>{ONe=typeof global==`object`&&global&&global.Object===Object&&global})),kNe,Av,jv=o((()=>{kv(),kNe=typeof self==`object`&&self&&self.Object===Object&&self,Av=ONe||kNe||Function(`return this`)()})),Mv,Nv=o((()=>{jv(),Mv=Av.Symbol}));function ANe(e){var t=MNe.call(e,Pv),n=e[Pv];try{e[Pv]=void 0;var r=!0}catch{}var i=NNe.call(e);return r&&(t?e[Pv]=n:delete e[Pv]),i}var jNe,MNe,NNe,Pv,PNe=o((()=>{Nv(),jNe=Object.prototype,MNe=jNe.hasOwnProperty,NNe=jNe.toString,Pv=Mv?Mv.toStringTag:void 0}));function FNe(e){return INe.call(e)}var INe,Fv=o((()=>{INe=Object.prototype.toString}));function Iv(e){return e==null?e===void 0?RNe:LNe:zNe&&zNe in Object(e)?ANe(e):FNe(e)}var LNe,RNe,zNe,Lv=o((()=>{Nv(),PNe(),Fv(),LNe=`[object Null]`,RNe=`[object Undefined]`,zNe=Mv?Mv.toStringTag:void 0}));function Rv(e){return typeof e==`object`&&!!e}var zv=o((()=>{}));function Bv(e){return typeof e==`symbol`||Rv(e)&&Iv(e)==BNe}var BNe,Vv=o((()=>{Lv(),zv(),BNe=`[object Symbol]`}));function Hv(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{})),Wv,Gv=o((()=>{Wv=Array.isArray}));function VNe(e){if(typeof e==`string`)return e;if(Wv(e))return Hv(e,VNe)+``;if(Bv(e))return WNe?WNe.call(e):``;var t=e+``;return t==`0`&&1/e==-HNe?`-0`:t}var HNe,UNe,WNe,GNe=o((()=>{Nv(),Uv(),Gv(),Vv(),HNe=1/0,UNe=Mv?Mv.prototype:void 0,WNe=UNe?UNe.toString:void 0}));function Kv(e){for(var t=e.length;t--&&KNe.test(e.charAt(t)););return t}var KNe,qNe=o((()=>{KNe=/\s/}));function JNe(e){return e&&e.slice(0,Kv(e)+1).replace(YNe,``)}var YNe,qv=o((()=>{qNe(),YNe=/^\s+/}));function Jv(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Yv=o((()=>{}));function XNe(e){if(typeof e==`number`)return e;if(Bv(e))return ZNe;if(Jv(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Jv(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=JNe(e);var n=Zv.test(e);return n||QNe.test(e)?Qv(e.slice(2),n?2:8):Xv.test(e)?ZNe:+e}var ZNe,Xv,Zv,QNe,Qv,$Ne=o((()=>{qv(),Yv(),Vv(),ZNe=NaN,Xv=/^[-+]0x[0-9a-f]+$/i,Zv=/^0b[01]+$/i,QNe=/^0o[0-7]+$/i,Qv=parseInt}));function ePe(e){return e?(e=XNe(e),e===tPe||e===-tPe?(e<0?-1:1)*nPe:e===e?e:0):e===0?e:0}var tPe,nPe,rPe=o((()=>{$Ne(),tPe=1/0,nPe=17976931348623157e292}));function iPe(e){var t=ePe(e),n=t%1;return t===t?n?t-n:t:0}var aPe=o((()=>{rPe()}));function $v(e){return e}var ey=o((()=>{}));function oPe(e){if(!Jv(e))return!1;var t=Iv(e);return t==cPe||t==ty||t==sPe||t==lPe}var sPe,cPe,ty,lPe,uPe=o((()=>{Lv(),Yv(),sPe=`[object AsyncFunction]`,cPe=`[object Function]`,ty=`[object GeneratorFunction]`,lPe=`[object Proxy]`})),dPe,fPe=o((()=>{jv(),dPe=Av[`__core-js_shared__`]}));function pPe(e){return!!mPe&&mPe in e}var mPe,hPe=o((()=>{fPe(),mPe=function(){var e=/[^.]+$/.exec(dPe&&dPe.keys&&dPe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function ny(e){if(e!=null){try{return ry.call(e)}catch{}try{return e+``}catch{}}return``}var ry,iy=o((()=>{ry=Function.prototype.toString}));function gPe(e){return!Jv(e)||pPe(e)?!1:(oPe(e)?vPe:oy).test(ny(e))}var ay,oy,sy,cy,ly,_Pe,vPe,uy=o((()=>{uPe(),hPe(),Yv(),iy(),ay=/[\\^$.*+?()[\]{}|]/g,oy=/^\[object .+?Constructor\]$/,sy=Function.prototype,cy=Object.prototype,ly=sy.toString,_Pe=cy.hasOwnProperty,vPe=RegExp(`^`+ly.call(_Pe).replace(ay,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function yPe(e,t){return e?.[t]}var bPe=o((()=>{}));function dy(e,t){var n=yPe(e,t);return gPe(n)?n:void 0}var fy=o((()=>{uy(),bPe()})),xPe,py=o((()=>{fy(),jv(),xPe=dy(Av,`WeakMap`)})),my,hy,SPe=o((()=>{Yv(),my=Object.create,hy=function(){function e(){}return function(t){if(!Jv(t))return{};if(my)return my(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function CPe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var wPe=o((()=>{}));function TPe(){}var EPe=o((()=>{}));function DPe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{}));function OPe(e){var t=0,n=0;return function(){var r=jPe(),i=APe-(r-n);if(n=r,i>0){if(++t>=kPe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var kPe,APe,jPe,MPe=o((()=>{kPe=800,APe=16,jPe=Date.now}));function _y(e){return function(){return e}}var NPe=o((()=>{})),vy,yy=o((()=>{fy(),vy=function(){try{var e=dy(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),by,PPe=o((()=>{NPe(),yy(),ey(),by=vy?function(e,t){return vy(e,`toString`,{configurable:!0,enumerable:!1,value:_y(t),writable:!0})}:$v})),FPe,IPe=o((()=>{PPe(),MPe(),FPe=OPe(by)}));function xy(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function RPe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{}));function BPe(e){return e!==e}var Sy=o((()=>{}));function Cy(e,t,n){for(var r=n-1,i=e.length;++r{}));function wy(e,t,n){return t===t?Cy(e,t,n):RPe(e,BPe,n)}var Ty=o((()=>{zPe(),Sy(),VPe()}));function Ey(e,t){return!!(e!=null&&e.length)&&wy(e,t,0)>-1}var HPe=o((()=>{Ty()}));function UPe(e,t){var n=typeof e;return t??=WPe,!!t&&(n==`number`||n!=`symbol`&&GPe.test(e))&&e>-1&&e%1==0&&e{WPe=9007199254740991,GPe=/^(?:0|[1-9]\d*)$/}));function qPe(e,t,n){t==`__proto__`&&vy?vy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var JPe=o((()=>{yy()}));function Dy(e,t){return e===t||e!==e&&t!==t}var Oy=o((()=>{}));function YPe(e,t,n){var r=e[t];(!(XPe.call(e,t)&&Dy(r,n))||n===void 0&&!(t in e))&&qPe(e,t,n)}var XPe,ZPe=o((()=>{JPe(),Oy(),XPe=Object.prototype.hasOwnProperty}));function QPe(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a{ZPe(),JPe()}));function $Pe(e,t,n){return t=eFe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=eFe(r.length-t,0),o=Array(a);++i{wPe(),eFe=Math.max}));function nFe(e,t){return FPe($Pe(e,t,$v),e+``)}var rFe=o((()=>{ey(),tFe(),IPe()}));function iFe(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=aFe}var aFe,oFe=o((()=>{aFe=9007199254740991}));function Ay(e){return e!=null&&iFe(e.length)&&!oPe(e)}var jy=o((()=>{uPe(),oFe()}));function sFe(e,t,n){if(!Jv(n))return!1;var r=typeof t;return(r==`number`?Ay(n)&&UPe(t,n.length):r==`string`&&t in n)?Dy(n[t],e):!1}var My=o((()=>{Oy(),jy(),KPe(),Yv()}));function Ny(e){return nFe(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&sFe(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r{rFe(),My()}));function lFe(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||uFe)}var uFe,dFe=o((()=>{uFe=Object.prototype}));function fFe(e,t){for(var n=-1,r=Array(e);++n{}));function Py(e){return Rv(e)&&Iv(e)==mFe}var mFe,hFe=o((()=>{Lv(),zv(),mFe=`[object Arguments]`})),gFe,_Fe,Fy,Iy,Ly=o((()=>{hFe(),zv(),gFe=Object.prototype,_Fe=gFe.hasOwnProperty,Fy=gFe.propertyIsEnumerable,Iy=Py(function(){return arguments}())?Py:function(e){return Rv(e)&&_Fe.call(e,`callee`)&&!Fy.call(e,`callee`)}}));function vFe(){return!1}var yFe=o((()=>{})),bFe,Ry,xFe,zy,By=o((()=>{jv(),yFe(),bFe=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ry=bFe&&typeof module==`object`&&module&&!module.nodeType&&module,xFe=Ry&&Ry.exports===bFe?Av.Buffer:void 0,zy=(xFe?xFe.isBuffer:void 0)||vFe}));function SFe(e){return Rv(e)&&iFe(e.length)&&!!Xy[Iv(e)]}var CFe,Vy,wFe,TFe,EFe,Hy,DFe,OFe,kFe,Uy,Wy,AFe,Gy,Ky,qy,jFe,MFe,NFe,PFe,Jy,Yy,FFe,IFe,LFe,Xy,Zy=o((()=>{Lv(),oFe(),zv(),CFe=`[object Arguments]`,Vy=`[object Array]`,wFe=`[object Boolean]`,TFe=`[object Date]`,EFe=`[object Error]`,Hy=`[object Function]`,DFe=`[object Map]`,OFe=`[object Number]`,kFe=`[object Object]`,Uy=`[object RegExp]`,Wy=`[object Set]`,AFe=`[object String]`,Gy=`[object WeakMap]`,Ky=`[object ArrayBuffer]`,qy=`[object DataView]`,jFe=`[object Float32Array]`,MFe=`[object Float64Array]`,NFe=`[object Int8Array]`,PFe=`[object Int16Array]`,Jy=`[object Int32Array]`,Yy=`[object Uint8Array]`,FFe=`[object Uint8ClampedArray]`,IFe=`[object Uint16Array]`,LFe=`[object Uint32Array]`,Xy={},Xy[jFe]=Xy[MFe]=Xy[NFe]=Xy[PFe]=Xy[Jy]=Xy[Yy]=Xy[FFe]=Xy[IFe]=Xy[LFe]=!0,Xy[CFe]=Xy[Vy]=Xy[Ky]=Xy[wFe]=Xy[qy]=Xy[TFe]=Xy[EFe]=Xy[Hy]=Xy[DFe]=Xy[OFe]=Xy[kFe]=Xy[Uy]=Xy[Wy]=Xy[AFe]=Xy[Gy]=!1}));function RFe(e){return function(t){return e(t)}}var zFe=o((()=>{})),Qy,$y,eb,tb,BFe=o((()=>{kv(),Qy=typeof exports==`object`&&exports&&!exports.nodeType&&exports,$y=Qy&&typeof module==`object`&&module&&!module.nodeType&&module,eb=$y&&$y.exports===Qy&&ONe.process,tb=function(){try{return $y&&$y.require&&$y.require(`util`).types||eb&&eb.binding&&eb.binding(`util`)}catch{}}()})),VFe,nb,rb=o((()=>{Zy(),zFe(),BFe(),VFe=tb&&tb.isTypedArray,nb=VFe?RFe(VFe):SFe}));function HFe(e,t){var n=Wv(e),r=!n&&Iy(e),i=!n&&!r&&zy(e),a=!n&&!r&&!i&&nb(e),o=n||r||i||a,s=o?fFe(e.length,String):[],l=s.length;for(var u in e)(t||ib.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||UPe(u,l)))&&s.push(u);return s}var ib,ab=o((()=>{pFe(),Ly(),Gv(),By(),KPe(),rb(),ib=Object.prototype.hasOwnProperty}));function UFe(e,t){return function(n){return e(t(n))}}var WFe=o((()=>{})),GFe,KFe=o((()=>{WFe(),GFe=UFe(Object.keys,Object)}));function qFe(e){if(!lFe(e))return GFe(e);var t=[];for(var n in Object(e))JFe.call(e,n)&&n!=`constructor`&&t.push(n);return t}var JFe,YFe=o((()=>{dFe(),KFe(),JFe=Object.prototype.hasOwnProperty}));function ob(e){return Ay(e)?HFe(e):qFe(e)}var sb=o((()=>{ab(),YFe(),jy()}));function XFe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ZFe=o((()=>{}));function QFe(e){if(!Jv(e))return XFe(e);var t=lFe(e),n=[];for(var r in e)(r!=`constructor`||!t&&$Fe.call(e,r))&&n.push(r);return n}var $Fe,eIe=o((()=>{Yv(),dFe(),ZFe(),$Fe=Object.prototype.hasOwnProperty}));function cb(e){return Ay(e)?HFe(e,!0):QFe(e)}var lb=o((()=>{ab(),eIe(),jy()}));function tIe(e,t){if(Wv(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Bv(e)?!0:ub.test(e)||!nIe.test(e)||t!=null&&e in Object(t)}var nIe,ub,db=o((()=>{Gv(),Vv(),nIe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ub=/^\w*$/})),fb,pb=o((()=>{fy(),fb=dy(Object,`create`)}));function mb(){this.__data__=fb?fb(null):{},this.size=0}var hb=o((()=>{pb()}));function rIe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var iIe=o((()=>{}));function aIe(e){var t=this.__data__;if(fb){var n=t[e];return n===oIe?void 0:n}return sIe.call(t,e)?t[e]:void 0}var oIe,sIe,cIe=o((()=>{pb(),oIe=`__lodash_hash_undefined__`,sIe=Object.prototype.hasOwnProperty}));function lIe(e){var t=this.__data__;return fb?t[e]!==void 0:uIe.call(t,e)}var uIe,dIe=o((()=>{pb(),uIe=Object.prototype.hasOwnProperty}));function fIe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=fb&&t===void 0?pIe:t,this}var pIe,mIe=o((()=>{pb(),pIe=`__lodash_hash_undefined__`}));function gb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{hb(),iIe(),cIe(),dIe(),mIe(),gb.prototype.clear=mb,gb.prototype.delete=rIe,gb.prototype.get=aIe,gb.prototype.has=lIe,gb.prototype.set=fIe}));function _b(){this.__data__=[],this.size=0}var vb=o((()=>{}));function gIe(e,t){for(var n=e.length;n--;)if(Dy(e[n][0],t))return n;return-1}var _Ie=o((()=>{Oy()}));function vIe(e){var t=this.__data__,n=gIe(t,e);return n<0?!1:(n==t.length-1?t.pop():yb.call(t,n,1),--this.size,!0)}var yb,bb=o((()=>{_Ie(),yb=Array.prototype.splice}));function yIe(e){var t=this.__data__,n=gIe(t,e);return n<0?void 0:t[n][1]}var xb=o((()=>{_Ie()}));function bIe(e){return gIe(this.__data__,e)>-1}var xIe=o((()=>{_Ie()}));function SIe(e,t){var n=this.__data__,r=gIe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var CIe=o((()=>{_Ie()}));function Sb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{vb(),bb(),xb(),xIe(),CIe(),Sb.prototype.clear=_b,Sb.prototype.delete=vIe,Sb.prototype.get=yIe,Sb.prototype.has=bIe,Sb.prototype.set=SIe})),Cb,TIe=o((()=>{fy(),jv(),Cb=dy(Av,`Map`)}));function EIe(){this.size=0,this.__data__={hash:new gb,map:new(Cb||Sb),string:new gb}}var DIe=o((()=>{hIe(),wIe(),TIe()}));function OIe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var kIe=o((()=>{}));function AIe(e,t){var n=e.__data__;return OIe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var jIe=o((()=>{kIe()}));function MIe(e){var t=AIe(this,e).delete(e);return this.size-=+!!t,t}var NIe=o((()=>{jIe()}));function PIe(e){return AIe(this,e).get(e)}var FIe=o((()=>{jIe()}));function IIe(e){return AIe(this,e).has(e)}var LIe=o((()=>{jIe()}));function RIe(e,t){var n=AIe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var zIe=o((()=>{jIe()}));function wb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{DIe(),NIe(),FIe(),LIe(),zIe(),wb.prototype.clear=EIe,wb.prototype.delete=MIe,wb.prototype.get=PIe,wb.prototype.has=IIe,wb.prototype.set=RIe}));function VIe(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Tb);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(VIe.Cache||wb),n}var Tb,HIe=o((()=>{BIe(),Tb=`Expected a function`,VIe.Cache=wb}));function UIe(e){var t=VIe(e,function(e){return n.size===WIe&&n.clear(),e}),n=t.cache;return t}var WIe,Eb=o((()=>{HIe(),WIe=500})),Db,Ob,kb,GIe=o((()=>{Eb(),Db=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ob=/\\(\\)?/g,kb=UIe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Db,function(e,n,r,i){t.push(r?i.replace(Ob,`$1`):n||e)}),t})}));function KIe(e){return e==null?``:VNe(e)}var qIe=o((()=>{GNe()}));function JIe(e,t){return Wv(e)?e:tIe(e,t)?[e]:kb(KIe(e))}var YIe=o((()=>{Gv(),db(),GIe(),qIe()}));function XIe(e){if(typeof e==`string`||Bv(e))return e;var t=e+``;return t==`0`&&1/e==-ZIe?`-0`:t}var ZIe,Ab=o((()=>{Vv(),ZIe=1/0}));function QIe(e,t){t=JIe(t,e);for(var n=0,r=t.length;e!=null&&n{YIe(),Ab()}));function eLe(e,t,n){var r=e==null?void 0:QIe(e,t);return r===void 0?n:r}var tLe=o((()=>{$Ie()}));function jb(e,t){for(var n=-1,r=t.length,i=e.length;++n{}));function Nb(e){return Wv(e)||Iy(e)||!!(Pb&&e&&e[Pb])}var Pb,nLe=o((()=>{Nv(),Ly(),Gv(),Pb=Mv?Mv.isConcatSpreadable:void 0}));function rLe(e,t,n,r,i){var a=-1,o=e.length;for(n||=Nb,i||=[];++a0&&n(s)?t>1?rLe(s,t-1,n,r,i):jb(i,s):r||(i[i.length]=s)}return i}var iLe=o((()=>{Mb(),nLe()}));function Fb(e){return e!=null&&e.length?rLe(e,1):[]}var aLe=o((()=>{iLe()}));function oLe(e){return FPe($Pe(e,void 0,Fb),e+``)}var W=o((()=>{aLe(),tFe(),IPe()})),sLe,cLe=o((()=>{WFe(),sLe=UFe(Object.getPrototypeOf,Object)}));function lLe(e){if(!Rv(e)||Iv(e)!=uLe)return!1;var t=sLe(e);if(t===null)return!0;var n=fLe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Lb.call(n)==pLe}var uLe,Ib,dLe,Lb,fLe,pLe,mLe=o((()=>{Lv(),cLe(),zv(),uLe=`[object Object]`,Ib=Function.prototype,dLe=Object.prototype,Lb=Ib.toString,fLe=dLe.hasOwnProperty,pLe=Lb.call(Object)})),hLe=o((()=>{}));function gLe(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i{}));function vLe(){this.__data__=new Sb,this.size=0}var Rb=o((()=>{wIe()}));function yLe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var bLe=o((()=>{}));function xLe(e){return this.__data__.get(e)}var SLe=o((()=>{}));function CLe(e){return this.__data__.has(e)}var wLe=o((()=>{}));function TLe(e,t){var n=this.__data__;if(n instanceof Sb){var r=n.__data__;if(!Cb||r.length{wIe(),TIe(),BIe(),ELe=200}));function zb(e){var t=this.__data__=new Sb(e);this.size=t.size}var OLe=o((()=>{wIe(),Rb(),bLe(),SLe(),wLe(),DLe(),zb.prototype.clear=vLe,zb.prototype.delete=yLe,zb.prototype.get=xLe,zb.prototype.has=CLe,zb.prototype.set=TLe}));function kLe(e,t){return e&&QPe(t,ob(t),e)}var ALe=o((()=>{ky(),sb()}));function jLe(e,t){return e&&QPe(t,cb(t),e)}var MLe=o((()=>{ky(),lb()}));function NLe(e,t){if(t)return e.slice();var n=e.length,r=LLe?LLe(n):new e.constructor(n);return e.copy(r),r}var PLe,FLe,ILe,LLe,RLe=o((()=>{jv(),PLe=typeof exports==`object`&&exports&&!exports.nodeType&&exports,FLe=PLe&&typeof module==`object`&&module&&!module.nodeType&&module,ILe=FLe&&FLe.exports===PLe?Av.Buffer:void 0,LLe=ILe?ILe.allocUnsafe:void 0}));function zLe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n{}));function VLe(){return[]}var HLe=o((()=>{})),ULe,WLe,GLe,KLe=o((()=>{BLe(),HLe(),ULe=Object.prototype.propertyIsEnumerable,WLe=Object.getOwnPropertySymbols,GLe=WLe?function(e){return e==null?[]:(e=Object(e),zLe(WLe(e),function(t){return ULe.call(e,t)}))}:VLe}));function qLe(e,t){return QPe(e,GLe(e),t)}var JLe=o((()=>{ky(),KLe()})),YLe,XLe=o((()=>{Mb(),cLe(),KLe(),HLe(),YLe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)jb(t,GLe(e)),e=sLe(e);return t}:VLe}));function ZLe(e,t){return QPe(e,YLe(e),t)}var QLe=o((()=>{ky(),XLe()}));function Bb(e,t,n){var r=t(e);return Wv(e)?r:jb(r,n(e))}var Vb=o((()=>{Mb(),Gv()}));function $Le(e){return Bb(e,ob,GLe)}var Hb=o((()=>{Vb(),KLe(),sb()}));function eRe(e){return Bb(e,cb,YLe)}var Ub=o((()=>{Vb(),XLe(),lb()})),Wb,tRe=o((()=>{fy(),jv(),Wb=dy(Av,`DataView`)})),Gb,nRe=o((()=>{fy(),jv(),Gb=dy(Av,`Promise`)})),Kb,rRe=o((()=>{fy(),jv(),Kb=dy(Av,`Set`)})),qb,Jb,iRe,Yb,aRe,Xb,oRe,Zb,sRe,cRe,lRe,Qb,$b,ex=o((()=>{tRe(),TIe(),nRe(),rRe(),py(),Lv(),iy(),qb=`[object Map]`,Jb=`[object Object]`,iRe=`[object Promise]`,Yb=`[object Set]`,aRe=`[object WeakMap]`,Xb=`[object DataView]`,oRe=ny(Wb),Zb=ny(Cb),sRe=ny(Gb),cRe=ny(Kb),lRe=ny(xPe),Qb=Iv,(Wb&&Qb(new Wb(new ArrayBuffer(1)))!=Xb||Cb&&Qb(new Cb)!=qb||Gb&&Qb(Gb.resolve())!=iRe||Kb&&Qb(new Kb)!=Yb||xPe&&Qb(new xPe)!=aRe)&&(Qb=function(e){var t=Iv(e),n=t==Jb?e.constructor:void 0,r=n?ny(n):``;if(r)switch(r){case oRe:return Xb;case Zb:return qb;case sRe:return iRe;case cRe:return Yb;case lRe:return aRe}return t}),$b=Qb}));function uRe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&dRe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var dRe,fRe=o((()=>{dRe=Object.prototype.hasOwnProperty})),tx,pRe=o((()=>{jv(),tx=Av.Uint8Array}));function nx(e){var t=new e.constructor(e.byteLength);return new tx(t).set(new tx(e)),t}var mRe=o((()=>{pRe()}));function hRe(e,t){var n=t?nx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var gRe=o((()=>{mRe()}));function _Re(e){var t=new e.constructor(e.source,rx.exec(e));return t.lastIndex=e.lastIndex,t}var rx,vRe=o((()=>{rx=/\w*$/}));function yRe(e){return xRe?Object(xRe.call(e)):{}}var bRe,xRe,ix=o((()=>{Nv(),bRe=Mv?Mv.prototype:void 0,xRe=bRe?bRe.valueOf:void 0}));function ax(e,t){var n=t?nx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ox=o((()=>{mRe()}));function sx(e,t,n){var r=e.constructor;switch(t){case lx:return nx(e);case SRe:case CRe:return new r(+e);case kRe:return hRe(e,n);case ux:case ARe:case jRe:case MRe:case NRe:case PRe:case FRe:case IRe:case LRe:return ax(e,n);case wRe:return new r;case TRe:case cx:return new r(e);case ERe:return _Re(e);case DRe:return new r;case ORe:return yRe(e)}}var SRe,CRe,wRe,TRe,ERe,DRe,cx,ORe,lx,kRe,ux,ARe,jRe,MRe,NRe,PRe,FRe,IRe,LRe,RRe=o((()=>{mRe(),gRe(),vRe(),ix(),ox(),SRe=`[object Boolean]`,CRe=`[object Date]`,wRe=`[object Map]`,TRe=`[object Number]`,ERe=`[object RegExp]`,DRe=`[object Set]`,cx=`[object String]`,ORe=`[object Symbol]`,lx=`[object ArrayBuffer]`,kRe=`[object DataView]`,ux=`[object Float32Array]`,ARe=`[object Float64Array]`,jRe=`[object Int8Array]`,MRe=`[object Int16Array]`,NRe=`[object Int32Array]`,PRe=`[object Uint8Array]`,FRe=`[object Uint8ClampedArray]`,IRe=`[object Uint16Array]`,LRe=`[object Uint32Array]`}));function zRe(e){return typeof e.constructor==`function`&&!lFe(e)?hy(sLe(e)):{}}var BRe=o((()=>{SPe(),cLe(),dFe()}));function VRe(e){return Rv(e)&&$b(e)==HRe}var HRe,URe=o((()=>{ex(),zv(),HRe=`[object Map]`})),WRe,GRe,KRe=o((()=>{URe(),zFe(),BFe(),WRe=tb&&tb.isMap,GRe=WRe?RFe(WRe):VRe}));function qRe(e){return Rv(e)&&$b(e)==dx}var dx,JRe=o((()=>{ex(),zv(),dx=`[object Set]`})),fx,px,YRe=o((()=>{JRe(),zFe(),BFe(),fx=tb&&tb.isSet,px=fx?RFe(fx):qRe}));function XRe(e,t,n,r,i,a){var o,s=t&ZRe,l=t&QRe,u=t&$Re;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Jv(e))return e;var d=Wv(e);if(d){if(o=uRe(e),!s)return DPe(e,o)}else{var f=$b(e),p=f==aze||f==oze;if(zy(e))return NLe(e,s);if(f==cze||f==eze||p&&!i){if(o=l||p?{}:zRe(e),!s)return l?ZLe(e,jLe(o,e)):qLe(e,kLe(o,e))}else{if(!gx[f])return i?e:{};o=sx(e,f,s)}}a||=new zb;var m=a.get(e);if(m)return m;a.set(e,o),px(e)?e.forEach(function(r){o.add(XRe(r,t,n,r,e,a))}):GRe(e)&&e.forEach(function(r,i){o.set(i,XRe(r,t,n,i,e,a))});var h=d?void 0:(u?l?eRe:$Le:l?cb:ob)(e);return xy(h||e,function(r,i){h&&(i=r,r=e[i]),YPe(o,i,XRe(r,t,n,i,e,a))}),o}var ZRe,QRe,$Re,eze,tze,nze,rze,ize,aze,oze,mx,sze,cze,lze,uze,dze,fze,pze,mze,hze,gze,_ze,hx,vze,yze,bze,xze,Sze,Cze,gx,wze=o((()=>{OLe(),LPe(),ZPe(),ALe(),MLe(),RLe(),gy(),JLe(),QLe(),Hb(),Ub(),ex(),fRe(),RRe(),BRe(),Gv(),By(),KRe(),Yv(),YRe(),sb(),lb(),ZRe=1,QRe=2,$Re=4,eze=`[object Arguments]`,tze=`[object Array]`,nze=`[object Boolean]`,rze=`[object Date]`,ize=`[object Error]`,aze=`[object Function]`,oze=`[object GeneratorFunction]`,mx=`[object Map]`,sze=`[object Number]`,cze=`[object Object]`,lze=`[object RegExp]`,uze=`[object Set]`,dze=`[object String]`,fze=`[object Symbol]`,pze=`[object WeakMap]`,mze=`[object ArrayBuffer]`,hze=`[object DataView]`,gze=`[object Float32Array]`,_ze=`[object Float64Array]`,hx=`[object Int8Array]`,vze=`[object Int16Array]`,yze=`[object Int32Array]`,bze=`[object Uint8Array]`,xze=`[object Uint8ClampedArray]`,Sze=`[object Uint16Array]`,Cze=`[object Uint32Array]`,gx={},gx[eze]=gx[tze]=gx[mze]=gx[hze]=gx[nze]=gx[rze]=gx[gze]=gx[_ze]=gx[hx]=gx[vze]=gx[yze]=gx[mx]=gx[sze]=gx[cze]=gx[lze]=gx[uze]=gx[dze]=gx[fze]=gx[bze]=gx[xze]=gx[Sze]=gx[Cze]=!0,gx[ize]=gx[aze]=gx[pze]=!1}));function Tze(e){return XRe(e,Eze|Dze)}var Eze,Dze,_x=o((()=>{wze(),Eze=1,Dze=4}));function vx(e){return this.__data__.set(e,Oze),this}var Oze,kze=o((()=>{Oze=`__lodash_hash_undefined__`}));function Aze(e){return this.__data__.has(e)}var jze=o((()=>{}));function yx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new wb;++t{BIe(),kze(),jze(),yx.prototype.add=yx.prototype.push=vx,yx.prototype.has=Aze}));function Nze(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function bx(e,t){return e.has(t)}var xx=o((()=>{}));function Fze(e,t,n,r,i,a){var o=n&Ize,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&Lze?new yx:void 0;for(a.set(e,t),a.set(t,e);++f{Mze(),Pze(),xx(),Ize=1,Lze=2}));function zze(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var Sx=o((()=>{}));function Cx(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var wx=o((()=>{}));function Bze(e,t,n,r,i,a,o){switch(n){case Yze:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jze:return!(e.byteLength!=t.byteLength||!a(new tx(e),new tx(t)));case Hze:case Uze:case Dx:return Dy(+e,+t);case Wze:return e.name==t.name&&e.message==t.message;case Gze:case Ox:return e==t+``;case Ex:var s=zze;case Kze:var l=r&Vze;if(s||=Cx,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Tx,o.set(e,t);var d=Fze(s(e),s(t),r,i,a,o);return o.delete(e),d;case qze:if(Xze)return Xze.call(e)==Xze.call(t)}return!1}var Vze,Tx,Hze,Uze,Wze,Ex,Dx,Gze,Kze,Ox,qze,Jze,Yze,kx,Xze,Zze=o((()=>{Nv(),pRe(),Oy(),Rze(),Sx(),wx(),Vze=1,Tx=2,Hze=`[object Boolean]`,Uze=`[object Date]`,Wze=`[object Error]`,Ex=`[object Map]`,Dx=`[object Number]`,Gze=`[object RegExp]`,Kze=`[object Set]`,Ox=`[object String]`,qze=`[object Symbol]`,Jze=`[object ArrayBuffer]`,Yze=`[object DataView]`,kx=Mv?Mv.prototype:void 0,Xze=kx?kx.valueOf:void 0}));function Qze(e,t,n,r,i,a){var o=n&$ze,s=$Le(e),l=s.length;if(l!=$Le(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:eBe.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u{Hb(),$ze=1,eBe=Object.prototype.hasOwnProperty}));function nBe(e,t,n,r,i,a){var o=Wv(e),s=Wv(t),l=o?aBe:$b(e),u=s?aBe:$b(t);l=l==iBe?oBe:l,u=u==iBe?oBe:u;var d=l==oBe,f=u==oBe,p=l==u;if(p&&zy(e)){if(!zy(t))return!1;o=!0,d=!1}if(p&&!d)return a||=new zb,o||nb(e)?Fze(e,t,n,r,i,a):Bze(e,t,l,n,r,i,a);if(!(n&rBe)){var m=d&&sBe.call(e,`__wrapped__`),h=f&&sBe.call(t,`__wrapped__`);if(m||h){var g=m?e.value():e,_=h?t.value():t;return a||=new zb,i(g,_,n,r,a)}}return p?(a||=new zb,Qze(e,t,n,r,i,a)):!1}var rBe,iBe,aBe,oBe,sBe,cBe=o((()=>{OLe(),Rze(),Zze(),tBe(),ex(),Gv(),By(),rb(),rBe=1,iBe=`[object Arguments]`,aBe=`[object Array]`,oBe=`[object Object]`,sBe=Object.prototype.hasOwnProperty}));function lBe(e,t,n,r,i){return e===t?!0:e==null||t==null||!Rv(e)&&!Rv(t)?e!==e&&t!==t:nBe(e,t,n,r,lBe,i)}var uBe=o((()=>{cBe(),zv()}));function dBe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i{OLe(),uBe(),fBe=1,pBe=2}));function hBe(e){return e===e&&!Jv(e)}var gBe=o((()=>{Yv()}));function _Be(e){for(var t=ob(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,hBe(i)]}return t}var vBe=o((()=>{gBe(),sb()}));function yBe(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var bBe=o((()=>{}));function xBe(e){var t=_Be(e);return t.length==1&&t[0][2]?yBe(t[0][0],t[0][1]):function(n){return n===e||dBe(n,e,t)}}var SBe=o((()=>{mBe(),vBe(),bBe()}));function CBe(e,t){return e!=null&&t in Object(e)}var wBe=o((()=>{}));function TBe(e,t,n){t=JIe(t,e);for(var r=-1,i=t.length,a=!1;++r{YIe(),Ly(),Gv(),KPe(),oFe(),Ab()}));function EBe(e,t){return e!=null&&TBe(e,t,CBe)}var DBe=o((()=>{wBe(),Ax()}));function OBe(e,t){return tIe(e)&&hBe(t)?yBe(XIe(e),t):function(n){var r=eLe(n,e);return r===void 0&&r===t?EBe(n,e):lBe(t,r,kBe|jx)}}var kBe,jx,ABe=o((()=>{uBe(),tLe(),DBe(),db(),gBe(),bBe(),Ab(),kBe=1,jx=2}));function jBe(e){return function(t){return t?.[e]}}var Mx=o((()=>{}));function MBe(e){return function(t){return QIe(t,e)}}var NBe=o((()=>{$Ie()}));function PBe(e){return tIe(e)?jBe(XIe(e)):MBe(e)}var FBe=o((()=>{Mx(),NBe(),db(),Ab()}));function Nx(e){return typeof e==`function`?e:e==null?$v:typeof e==`object`?Wv(e)?OBe(e[0],e[1]):xBe(e):PBe(e)}var Px=o((()=>{SBe(),ABe(),ey(),Gv(),FBe()}));function IBe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var LBe=o((()=>{})),RBe,zBe=o((()=>{LBe(),RBe=IBe()}));function BBe(e,t){return e&&RBe(e,t,ob)}var VBe=o((()=>{zBe(),sb()}));function HBe(e,t){return function(n,r){if(n==null)return n;if(!Ay(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a{jy()})),WBe,GBe=o((()=>{VBe(),UBe(),WBe=HBe(BBe)})),KBe,Fx=o((()=>{jv(),KBe=function(){return Av.Date.now()}})),qBe,Ix,JBe,YBe=o((()=>{rFe(),Oy(),My(),lb(),qBe=Object.prototype,Ix=qBe.hasOwnProperty,JBe=nFe(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&sFe(t[0],t[1],i)&&(r=1);++n{JPe(),Oy()}));function ZBe(e){return Rv(e)&&Ay(e)}var QBe=o((()=>{jy(),zv()}));function $Be(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var eVe=o((()=>{}));function tVe(e){return QPe(e,cb(e))}var nVe=o((()=>{ky(),lb()}));function rVe(e,t,n,r,i,a,o){var s=$Be(e,n),l=$Be(t,n),u=o.get(l);if(u){Lx(e,n,u);return}var d=a?a(s,l,n+``,e,t,o):void 0,f=d===void 0;if(f){var p=Wv(l),m=!p&&zy(l),h=!p&&!m&&nb(l);d=l,p||m||h?Wv(s)?d=s:ZBe(s)?d=DPe(s):m?(f=!1,d=NLe(l,!0)):h?(f=!1,d=ax(l,!0)):d=[]:lLe(l)||Iy(l)?(d=s,Iy(s)?d=tVe(s):(!Jv(s)||oPe(s))&&(d=zRe(l))):f=!1}f&&(o.set(l,d),i(d,l,r,a,o),o.delete(l)),Lx(e,n,d)}var Rx=o((()=>{XBe(),RLe(),ox(),gy(),BRe(),Ly(),Gv(),QBe(),By(),uPe(),Yv(),mLe(),rb(),eVe(),nVe()}));function iVe(e,t,n,r,i){e!==t&&RBe(t,function(a,o){if(i||=new zb,Jv(a))rVe(e,t,o,n,iVe,r,i);else{var s=r?r($Be(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Lx(e,o,s)}},cb)}var zx=o((()=>{OLe(),XBe(),zBe(),Rx(),Yv(),lb(),eVe()}));function aVe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{}));function Bx(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var sVe=o((()=>{}));function cVe(e){return typeof e==`function`?e:$v}var lVe=o((()=>{ey()}));function Vx(e,t){return(Wv(e)?xy:WBe)(e,cVe(t))}var uVe=o((()=>{LPe(),GBe(),lVe(),Gv()})),dVe=o((()=>{uVe()}));function fVe(e,t){var n=[];return WBe(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var pVe=o((()=>{GBe()}));function Hx(e,t){return(Wv(e)?zLe:fVe)(e,Nx(t,3))}var Ux=o((()=>{BLe(),pVe(),Px(),Gv()}));function mVe(e){return function(t,n,r){var i=Object(t);if(!Ay(t)){var a=Nx(n,3);t=ob(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var hVe=o((()=>{Px(),jy(),sb()}));function gVe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:iPe(n);return i<0&&(i=Wx(r+i,0)),RPe(e,Nx(t,3),i)}var Wx,_Ve=o((()=>{zPe(),Px(),aPe(),Wx=Math.max})),Gx,vVe=o((()=>{hVe(),_Ve(),Gx=mVe(gVe)}));function yVe(e,t){var n=-1,r=Ay(e)?Array(e.length):[];return WBe(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var Kx=o((()=>{GBe(),jy()}));function qx(e,t){return(Wv(e)?Hv:yVe)(e,Nx(t,3))}var bVe=o((()=>{Uv(),Px(),Kx(),Gv()}));function xVe(e,t){return e==null?e:RBe(e,cVe(t),cb)}var Jx=o((()=>{zBe(),lVe(),lb()}));function Yx(e,t){return e&&BBe(e,cVe(t))}var SVe=o((()=>{VBe(),lVe()}));function CVe(e,t){return e>t}var wVe=o((()=>{}));function TVe(e,t){return e!=null&&EVe.call(e,t)}var EVe,Xx=o((()=>{EVe=Object.prototype.hasOwnProperty}));function DVe(e,t){return e!=null&&TBe(e,t,TVe)}var OVe=o((()=>{Xx(),Ax()})),kVe=o((()=>{Lv(),Gv(),zv()}));function AVe(e,t){return Hv(t,function(t){return e[t]})}var jVe=o((()=>{Uv()}));function Zx(e){return e==null?[]:AVe(e,ob(e))}var MVe=o((()=>{jVe(),sb()}));function NVe(e){if(e==null)return!0;if(Ay(e)&&(Wv(e)||typeof e==`string`||typeof e.splice==`function`||zy(e)||nb(e)||Iy(e)))return!e.length;var t=$b(e);if(t==PVe||t==FVe)return!e.size;if(lFe(e))return!qFe(e).length;for(var n in e)if(IVe.call(e,n))return!1;return!0}var PVe,FVe,IVe,LVe=o((()=>{YFe(),ex(),Ly(),Gv(),jy(),By(),dFe(),rb(),PVe=`[object Map]`,FVe=`[object Set]`,IVe=Object.prototype.hasOwnProperty}));function Qx(e){return e===void 0}var RVe=o((()=>{}));function $x(e,t){return e{}));function tS(e,t){var n={};return t=Nx(t,3),BBe(e,function(e,r,i){qPe(n,r,t(e,r,i))}),n}var nS=o((()=>{JPe(),VBe(),Px()}));function rS(e,t,n){for(var r=-1,i=e.length;++r{Vv()}));function iS(e){return e&&e.length?rS(e,$v,CVe):void 0}var BVe=o((()=>{zVe(),wVe(),ey()})),aS,VVe=o((()=>{zx(),cFe(),aS=Ny(function(e,t,n){iVe(e,t,n)})}));function oS(e){return e&&e.length?rS(e,$v,$x):void 0}var sS=o((()=>{zVe(),eS(),ey()}));function cS(e,t){return e&&e.length?rS(e,Nx(t,2),$x):void 0}var HVe=o((()=>{zVe(),Px(),eS()}));function UVe(e,t,n,r){if(!Jv(e))return e;t=JIe(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i{ZPe(),YIe(),KPe(),Yv(),Ab()}));function GVe(e,t,n){for(var r=-1,i=t.length,a={};++r{$Ie(),WVe(),YIe()}));function qVe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var JVe=o((()=>{}));function YVe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Bv(e),o=t!==void 0,s=t===null,l=t===t,u=Bv(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e{Vv()}));function ZVe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r=s?l:l*(n[r]==`desc`?-1:1)}return e.index-t.index}var QVe=o((()=>{XVe()}));function $Ve(e,t,n){t=t.length?Hv(t,function(e){return Wv(e)?function(t){return QIe(t,e.length===1?e[0]:e)}:e}):[$v];var r=-1;return t=Hv(t,RFe(Nx)),qVe(yVe(e,function(e,n,i){return{criteria:Hv(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ZVe(e,t,n)})}var eHe=o((()=>{Uv(),$Ie(),Px(),Kx(),JVe(),zFe(),QVe(),ey(),Gv()})),tHe=o((()=>{Mx()})),nHe,rHe,iHe,aHe,oHe,sHe,cHe,lHe,uHe,dHe,fHe,pHe,mHe,hHe,gHe,_He,vHe=o((()=>{nHe=`\\ud800-\\udfff`,rHe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,iHe=`\\ufe0e\\ufe0f`,aHe=`[`+nHe+`]`,oHe=`[`+rHe+`]`,sHe=`\\ud83c[\\udffb-\\udfff]`,cHe=`(?:`+oHe+`|`+sHe+`)`,lHe=`[^`+nHe+`]`,uHe=`(?:\\ud83c[\\udde6-\\uddff]){2}`,dHe=`[\\ud800-\\udbff][\\udc00-\\udfff]`,fHe=`\\u200d`,pHe=cHe+`?`,mHe=`[`+iHe+`]?`,hHe=`(?:`+fHe+`(?:`+[lHe,uHe,dHe].join(`|`)+`)`+mHe+pHe+`)*`,gHe=mHe+pHe+hHe,_He=`(?:`+[lHe+oHe+`?`,oHe,uHe,dHe,aHe].join(`|`)+`)`,RegExp(sHe+`(?=`+sHe+`)|`+_He+gHe,`g`)})),lS=o((()=>{tHe(),hLe(),vHe()}));function yHe(e,t){return GVe(e,t,function(t,n){return EBe(e,n)})}var bHe=o((()=>{KVe(),DBe()})),xHe,uS=o((()=>{bHe(),W(),xHe=oLe(function(e,t){return e==null?{}:yHe(e,t)})}));function SHe(e,t,n,r){for(var i=-1,a=wHe(CHe((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var CHe,wHe,THe=o((()=>{CHe=Math.ceil,wHe=Math.max}));function EHe(e){return function(t,n,r){return r&&typeof r!=`number`&&sFe(t,n,r)&&(n=r=void 0),t=ePe(t),n===void 0?(n=t,t=0):n=ePe(n),r=r===void 0?t{THe(),My(),rPe()})),fS,DHe=o((()=>{dS(),fS=EHe()}));function OHe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}var kHe=o((()=>{}));function pS(e,t,n){var r=Wv(e)?gLe:OHe,i=arguments.length<3;return r(e,Nx(t,4),n,i,WBe)}var AHe=o((()=>{_Le(),GBe(),Px(),kHe(),Gv()})),jHe=o((()=>{YFe(),ex(),jy(),kVe(),lS()})),mS,hS=o((()=>{iLe(),eHe(),rFe(),My(),mS=nFe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&sFe(e,t[0],t[1])?t=[]:n>2&&sFe(t[0],t[1],t[2])&&(t=[t[0]]),$Ve(e,rLe(t,1),[])})})),MHe,NHe=o((()=>{rRe(),EPe(),wx(),MHe=Kb&&1/Cx(new Kb([,-0]))[1]==1/0?function(e){return new Kb(e)}:TPe}));function PHe(e,t,n){var r=-1,i=Ey,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=aVe;else if(a>=FHe){var u=t?null:MHe(e);if(u)return Cx(u);o=!1,i=bx,l=new yx}else l=t?[]:s;outer:for(;++r{Mze(),HPe(),oVe(),xx(),NHe(),wx(),FHe=200})),LHe,RHe=o((()=>{iLe(),rFe(),IHe(),QBe(),LHe=nFe(function(e){return PHe(rLe(e,1,ZBe,!0))})}));function zHe(e){var t=++BHe;return KIe(e)+t}var BHe,VHe=o((()=>{qIe(),BHe=0}));function HHe(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r{}));function WHe(e,t){return HHe(e||[],t||[],YPe)}var GHe=o((()=>{ZPe(),UHe()})),gS=o((()=>{Vv(),GNe(),aPe(),ey(),py(),SPe(),Yv(),jv(),wPe(),EPe(),Gv(),zv(),gy(),MPe(),IPe(),LPe(),HPe(),KPe(),ZPe(),ky(),cFe(),jy(),dFe(),sb(),lb(),tLe(),W(),rFe(),Lv(),mLe(),JPe(),Ab(),qIe(),hLe(),_Le(),$Ne(),My(),wze(),_x(),Mb(),iLe(),Uv(),Px(),NPe(),GBe(),ALe(),Fx(),YBe(),zx(),Mze(),oVe(),zFe(),xx(),QBe(),sVe(),dVe(),LBe(),UBe(),lVe(),ex(),Sx(),Oy(),Ux(),vVe(),_Ve(),VBe(),hVe(),zPe(),bVe(),aLe(),uVe(),Jx(),SVe(),BLe(),uPe(),wVe(),OVe(),DBe(),rPe(),Ty(),kVe(),MVe(),YIe(),$Ie(),Ly(),BFe(),By(),LVe(),uBe(),oFe(),KRe(),mBe(),vBe(),uy(),fPe(),yFe(),YRe(),rb(),RVe(),Sy(),eS(),nS(),SBe(),ABe(),BVe(),zVe(),HIe(),VVe(),sS(),HVe(),Nv(),wx(),Ub(),KVe(),eHe(),Pze(),lS(),uS(),FBe(),XVe(),DHe(),dS(),AHe(),kHe(),pVe(),WVe(),jHe(),hS(),HLe(),jVe(),pFe(),GIe(),nVe(),cLe(),qv(),qNe(),RHe(),IHe(),VHe(),Mx(),GHe(),UHe()}));function KHe(e,t){e[t]?e[t]++:e[t]=1}function _S(e,t){--e[t]||delete e[t]}function vS(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+XHe+a+XHe+(Qx(r)?YHe:r)}function qHe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function JHe(e,t){return vS(e,t.v,t.w,t.name)}var YHe,yS,XHe,bS,ZHe=o((()=>{gS(),YHe=`\0`,yS=`\0`,XHe=``,bS=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=_y(void 0),this._defaultEdgeLabelFn=_y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[yS]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return oPe(e)||(e=_y(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return ob(this._nodes)}sources(){var e=this;return Hx(this.nodes(),function(t){return NVe(e._in[t])})}sinks(){var e=this;return Hx(this.nodes(),function(t){return NVe(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return Vx(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=yS,this._children[e]={},this._children[yS][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 t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Vx(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),Vx(ob(this._in[e]),t),delete this._in[e],delete this._preds[e],Vx(ob(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Qx(t))t=yS;else{t+=``;for(var n=t;!Qx(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==yS)return t}}children(e){if(Qx(e)&&(e=yS),this._isCompound){var t=this._children[e];if(t)return ob(t)}else if(e===yS)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return ob(t)}successors(e){var t=this._sucs[e];if(t)return ob(t)}neighbors(e){var t=this.predecessors(e);if(t)return LHe(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;Vx(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),Vx(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&Vx(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return oPe(e)||(e=_y(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Zx(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return pS(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Qx(n)||(n=``+n);var o=vS(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Qx(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=qHe(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,KHe(this._preds[t],e),KHe(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?JHe(this._isDirected,arguments[0]):vS(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?JHe(this._isDirected,arguments[0]):vS(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?JHe(this._isDirected,arguments[0]):vS(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],_S(this._preds[t],e),_S(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Zx(n);return t?Hx(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Zx(n);return t?Hx(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},bS.prototype._nodeCount=0,bS.prototype._edgeCount=0})),xS=o((()=>{ZHe()})),SS=l({captureNodeSizes:()=>ES,shouldCaptureSizes:()=>QHe});function CS(){if(typeof globalThis<`u`)return globalThis}function QHe(){return!!CS()?.mermaidCaptureSizes}function wS(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}function TS(e,t){let n=CS();if(!n)return;let r=t.node(),i=((r&&`ownerSVGElement`in r?r.ownerSVGElement:null)??r)?.id??`(unknown)`;n.mermaidCapturedSizes??=[];let a={svgId:i,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function ES(e,t){let n=[];for(let e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});n.length!==0&&TS({metadata:{captureVersion:$He,capturedAt:new Date().toISOString(),capturedFrom:wS()},nodes:n},e)}var $He,eUe=o((()=>{Zn(),$He=1,N(CS,`getCaptureGlobal`),N(QHe,`shouldCaptureSizes`),N(wS,`capturedFromLocation`),N(TS,`emitCapturedSizes`),N(ES,`captureNodeSizes`)}));function DS(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}async function tUe(e,t,n){if(t.label){let{shapeSvg:r,bbox:i}=await i_(e,n===void 0?t:{...t,width:n});t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}async function nUe(e,t,n){let r=await B_(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}function rUe(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}async function iUe(e,t,n={}){let r=new bS({multigraph:!0,compound:!0}),i=[...t.edges],a=bs(),o=DS(e),{edgeLabels:s,nodes:l}=o,u=new Map,d=new Map(t.nodes.map(e=>[e.id,e])),f=t.direction,p=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(p){let t=n.unwrapGroupLabels&&e.labelType!==`markdown`;await tUe(l,e,t?1/0:void 0)}r.setNode(e.id,{...e})}else{if(p){let t=await nUe(l,e,{config:a,dir:rUe(e,d,f)});u.set(e.id,t)}r.setNode(e.id,{...e})}}));for(let e of i)p&&cNe(e)&&await dv(s,e),r.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>(eUe(),SS));n(e,t)}return{graph:r,groups:o,nodeElements:u}}function OS({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??kS;return N(async function(t,s,l,u){let d=s.select(`g`);(l?.insertMarkers??_v)(d,t.markers,t.type,t.diagramId),aUe();let f={element:d,helpers:l,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await AS(t,h,a),await i?.(t,h,m)},`render`)}function aUe(){U_(),sNe(),QMe(),mUe()}async function kS(e,{element:t},n){return await iUe(t,e,n)}async function AS(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await oUe(i,r,t,n);let a=cUe(e.nodes);for(let r of e.edges)lUe(r,n)||await uUe(i,r,a,e,n,t)}async function oUe(e,t,n,r){t.clusterNode?W_(t):sUe(t,n,r)?await Z_(e.clusters,t):W_(t)}function sUe(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}function cUe(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function lUe(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function uUe(e,t,n,r,i,a){let o=gv(e.edgePaths,{...t},i.clusterDb??new Map,r.type,jS(t.start,t,n,a,i),jS(t.end,t,n,a,i),r.diagramId,MS(t,i),r.layoutAlgorithm);cNe(t)&&(cv.has(t.id)||await dv(e.edgeLabels,t),dUe(t,o))}function jS(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function MS(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}function dUe(e,t){let n=t?.updatedPath??t?.originalPath,r=Xo(),{subGraphTitleTotalMargin:i}=V_({flowchart:r.flowchart??{}});if(e.label){let n=cv.get(e.id),{x:r,y:a}=fv(e,t);n.attr(`transform`,`translate(${r}, ${a+i/2})`)}for(let[t,r]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(r){let{x:r,y:i}=fUe(e,t,n);lv.get(e.id)[t].attr(`transform`,`translate(${r}, ${i})`)}}function fUe(e,t,n){let r=e.terminalLabelCenters?.[t];if(r)return{...r};if(!n)return{x:e.x,y:e.y};let i=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return Wm.calcTerminalLabelPosition(i?10:0,TUe[t],n)}var NS,PS,pUe,mUe,FS,hUe,gUe,_Ue,vUe,IS,yUe,bUe,LS,xUe,SUe,CUe,wUe,TUe,EUe=o((()=>{Q_(),vv(),G_(),z_(),qm(),Os(),er(),Zn(),xS(),N(DS,`createLayoutElementGroups`),N(tUe,`measureGroupLabel`),N(nUe,`insertMeasuredNode`),N(rUe,`resolveNodeDir`),N(iUe,`createGraphWithElements`),NS=new Map,PS=new Map,pUe=new Map,mUe=N(()=>{PS.clear(),pUe.clear(),NS.clear()},`clear`),FS=N((e,t)=>{let n=PS.get(t)||[];return P.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),hUe=N((e,t)=>{let n=PS.get(t)||[];return P.info(`Descendants of `,t,` is `,n),P.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||FS(e.v,t)||FS(e.w,t)||n.includes(e.w):(P.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),gUe=N((e,t,n,r)=>{P.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),P.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)gUe(i,t,n,r);else{let a=t.node(i);P.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(P.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(P.debug(`Setting parent`,i,e),n.setParent(i,e)):(P.info(`In copy `,e,`root`,r,`data`,t.node(e),r),P.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);P.debug(`Copying Edges`,o),o.forEach(i=>{P.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);P.info(`Edge data`,a,r);try{hUe(i,r)?(P.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),P.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):P.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){P.error(e)}})}P.debug(`Removing node`,i),t.removeNode(i)})},`copy`),_Ue=N((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)pUe.set(i,e),r=[...r,..._Ue(i,t)];return r},`extractDescendants`),vUe=N((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),IS=N((e,t,n)=>{let r=t.children(e);if(P.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=IS(e,t,n),a=vUe(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),yUe=N(e=>!NS.has(e)||!NS.get(e).externalConnections?e:NS.has(e)?NS.get(e).id:e,`getAnchorId`),bUe=N((e,t)=>{if(!e||t>10){P.debug(`Opting out, no graph `);return}P.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(P.debug(`Cluster identified`,t,` Replacement id in edges: `,IS(t,e,t)),PS.set(t,_Ue(t,e)),NS.set(t,{id:IS(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(P.debug(`Cluster identified`,t,PS),r.forEach(e=>{FS(e.v,t)^FS(e.w,t)&&(P.debug(`Edge: `,e,` leaves cluster `,t),P.debug(`Descendants of XXX `,t,`: `,PS.get(t)),NS.get(t).externalConnections=!0)})):P.debug(`Not a cluster `,t,PS)});for(let t of NS.keys()){let n=NS.get(t).id,r=e.parent(n);r!==t&&NS.has(r)&&!NS.get(r).externalConnections&&(NS.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&NS.get(t)?.externalConnections&&i&&CUe(e,n,t)){let r=wUe(e,t,e.parent(n));r&&(NS.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);P.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),P.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(P.debug(`Fix XXX`,NS,`ids:`,t.v,t.w,`Translating: `,NS.get(t.v),` --- `,NS.get(t.w)),NS.get(t.v)||NS.get(t.w)){if(P.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=yUe(t.v),i=yUe(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);NS.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);NS.get(r).externalConnections=!0,n.toCluster=t.w}P.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),LS(e,0),P.trace(NS)},`adjustClustersAndEdges`),LS=N((e,t)=>{if(t>10){P.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r){P.debug(`Done, no node has children`,e.nodes());return}P.debug(`Nodes = `,n,t);for(let r of n)if(P.debug(`Extracting node`,r,NS,NS.has(r)&&!NS.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!NS.has(r))P.debug(`Not a cluster`,r,t);else if(!NS.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){P.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;NS.get(r)?.clusterData?.dir&&(n=NS.get(r).clusterData.dir,P.debug(`Fixing dir`,NS.get(r).clusterData.dir,n));let i=new bS({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});gUe(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:NS.get(r).clusterData,label:NS.get(r).label,graph:i})}else P.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!NS.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),P.debug(NS);n=e.nodes(),P.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);P.debug(` Now next level`,r,n),n?.clusterNode&&LS(n.graph,t+1)}},`extractor`),xUe=N((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=xUe(e,e.children(t));n=[...n,...r]}),n},`sorter`),SUe=N(e=>xUe(e,e.children()),`sortNodesByHierarchy`),CUe=N((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=NS.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),wUe=N((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||FS(i,n))continue;let r=IS(i,e,t);if(r&&!CUe(e,r,t))return r}return null},`findSafeAnchorNode`),N(OS,`createCommonLayoutRenderer`),N(aUe,`clearLayoutRenderState`),N(kS,`defaultMeasureLayout`),N(AS,`paintLayoutData`),N(oUe,`paintLayoutNode`),N(sUe,`shouldPaintAsCluster`),N(cUe,`buildNodeLookup`),N(lUe,`shouldSkipPaintEdge`),N(uUe,`paintLayoutEdge`),N(jS,`getRenderedNode`),N(MS,`shouldSkipIntersect`),N(dUe,`positionRenderedEdgeLabel`),TUe={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`},N(fUe,`terminalLabelTranslate`)})),DUe=s(((e,t)=>{(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.ELK=n()}})(function(){return(function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var l=typeof require==`function`&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=Error(`Cannot find module '`+o+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=n[o]={exports:{}};t[o][0].call(d.exports,function(e){var n=t[o][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[o].exports}for(var a=typeof require==`function`&&require,o=0;o0&&arguments[0]!==void 0?arguments[0]:{},r=n.defaultLayoutOptions,o=r===void 0?{}:r,s=n.algorithms,l=s===void 0?[`layered`,`stress`,`mrtree`,`radial`,`force`,`disco`,`sporeOverlap`,`sporeCompaction`,`rectpacking`]:s,u=n.workerFactory,d=n.workerUrl;if(i(this,e),this.defaultLayoutOptions=o,this.initialized=!1,d===void 0&&u===void 0)throw Error(`Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.`);var f=u;d!==void 0&&u===void 0&&(f=function(e){return new Worker(e)});var p=f(d);if(typeof p.postMessage!=`function`)throw TypeError(`Created worker does not provide the required 'postMessage' function.`);this.worker=new a(p),this.worker.postMessage({cmd:`register`,algorithms:l}).then(function(e){return t.initialized=!0}).catch(console.err)}return r(e,[{key:`layout`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.layoutOptions,r=n===void 0?this.defaultLayoutOptions:n,i=t.logging,a=i!==void 0&&i,o=t.measureExecutionTime,s=o!==void 0&&o;return e?this.worker.postMessage({cmd:`layout`,graph:e,layoutOptions:r,options:{logging:a,measureExecutionTime:s}}):Promise.reject(Error(`Missing mandatory parameter 'graph'.`))}},{key:`knownLayoutAlgorithms`,value:function(){return this.worker.postMessage({cmd:`algorithms`})}},{key:`knownLayoutOptions`,value:function(){return this.worker.postMessage({cmd:`options`})}},{key:`knownLayoutCategories`,value:function(){return this.worker.postMessage({cmd:`categories`})}},{key:`terminateWorker`,value:function(){this.worker&&this.worker.terminate()}}]),e}();var a=function(){function e(t){var n=this;if(i(this,e),t===void 0)throw Error(`Missing mandatory parameter 'worker'.`);this.resolvers={},this.worker=t,this.worker.onmessage=function(e){setTimeout(function(){n.receive(n,e)},0)}}return r(e,[{key:`postMessage`,value:function(e){var t=this.id||0;this.id=t+1,e.id=t;var n=this;return new Promise(function(r,i){n.resolvers[t]=function(e,t){e?(n.convertGwtStyleError(e),i(e)):r(t)},n.worker.postMessage(e)})}},{key:`receive`,value:function(e,t){var n=t.data,r=e.resolvers[n.id];r&&(delete e.resolvers[n.id],n.error?r(n.error):r(null,n.data))}},{key:`terminate`,value:function(){this.worker&&this.worker.terminate()}},{key:`convertGwtStyleError`,value:function(e){if(e){var t=e.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(e.cause=t.cause.backingJsObject,this.convertGwtStyleError(e.cause)),delete e.__java$exception)}}}]),e}()},{}],2:[function(e,t,n){(function(e){(function(){var r;typeof window<`u`?r=window:e===void 0?typeof self<`u`&&(r=self):r=e;var i;function a(){}function o(){}function s(){}function l(){}function u(){}function d(){}function f(){}function p(){}function m(){}function h(){}function g(){}function _(){}function v(){}function y(){}function b(){}function x(){}function S(){}function C(){}function w(){}function T(){}function E(){}function D(){}function O(){}function k(){}function A(){}function j(){}function M(){}function ee(){}function te(){}function ne(){}function re(){}function ie(){}function ae(){}function oe(){}function se(){}function ce(){}function le(){}function ue(){}function de(){}function fe(){}function pe(){}function me(){}function he(){}function ge(){}function _e(){}function ve(){}function ye(){}function be(){}function xe(){}function Se(){}function Ce(){}function we(){}function Te(){}function Ee(){}function De(){}function Oe(){}function ke(){}function Ae(){}function je(){}function Me(){}function Ne(){}function Pe(){}function Fe(){}function Ie(){}function Le(){}function Re(){}function ze(){}function Be(){}function Ve(){}function He(){}function Ue(){}function We(){}function Ge(){}function Ke(){}function qe(){}function Je(){}function Ye(){}function Xe(){}function Ze(){}function Qe(){}function $e(){}function et(){}function tt(){}function nt(){}function rt(){}function it(){}function at(){}function ot(){}function st(){}function ct(){}function lt(){}function ut(){}function dt(){}function ft(){}function pt(){}function mt(){}function ht(){}function gt(){}function _t(){}function vt(){}function yt(){}function bt(){}function xt(){}function St(){}function Ct(){}function wt(){}function Tt(){}function Et(){}function Dt(){}function Ot(){}function kt(){}function At(){}function jt(){}function Mt(){}function Nt(){}function Pt(){}function eee(){}function tee(){}function nee(){}function ree(){}function iee(){}function aee(){}function oee(){}function Ft(){}function It(){}function Lt(){}function Rt(){}function zt(){}function Bt(){}function Vt(){}function Ht(){}function see(){}function Ut(){}function cee(){}function lee(){}function Wt(){}function uee(){}function dee(){}function fee(){}function Gt(){}function Kt(){}function pee(){}function mee(){}function qt(){}function Jt(){}function Yt(){}function hee(){}function Xt(){}function Zt(){}function gee(){}function Qt(){}function $t(){}function _ee(){}function vee(){}function yee(){}function bee(){}function xee(){}function See(){}function en(){}function Cee(){}function wee(){}function tn(){}function Tee(){}function Eee(){}function Dee(){}function Oee(){}function kee(){}function Aee(){}function jee(){}function Mee(){}function Nee(){}function Pee(){}function Fee(){}function Iee(){}function Lee(){}function Ree(){}function zee(){}function Bee(){}function Vee(){}function Hee(){}function Uee(){}function Wee(){}function Gee(){}function Kee(){}function qee(){}function Jee(){}function Yee(){}function Xee(){}function Zee(){}function Qee(){}function $ee(){}function ete(){}function tte(){}function nte(){}function rte(){}function ite(){}function ate(){}function ote(){}function ste(){}function cte(){}function lte(){}function ute(){}function dte(){}function fte(){}function pte(){}function mte(){}function hte(){}function gte(){}function _te(){}function vte(){}function yte(){}function bte(){}function xte(){}function Ste(){}function Cte(){}function wte(){}function Tte(){}function Ete(){}function Dte(){}function Ote(){}function kte(){}function Ate(){}function jte(){}function Mte(){}function Nte(){}function Pte(){}function Fte(){}function Ite(){}function Lte(){}function Rte(){}function zte(){}function Bte(){}function Vte(){}function Hte(){}function Ute(){}function Wte(){}function Gte(){}function Kte(){}function nn(){}function rn(){}function an(){}function qte(){}function Jte(){}function Yte(){}function Xte(){}function Zte(){}function Qte(){}function $te(){}function ene(){}function tne(){}function nne(){}function rne(){}function ine(){}function ane(){}function one(){}function sne(){}function cne(){}function lne(){}function une(){}function dne(){}function fne(){}function pne(){}function on(){}function sn(){}function mne(){}function hne(){}function gne(){}function _ne(){}function vne(){}function yne(){}function bne(){}function xne(){}function Sne(){}function Cne(){}function wne(){}function Tne(){}function Ene(){}function Dne(){}function One(){}function kne(){}function cn(){}function Ane(){}function jne(){}function Mne(){}function Nne(){}function Pne(){}function Fne(){}function Ine(){}function Lne(){}function ln(){}function Rne(){}function un(){}function dn(){}function zne(){}function fn(){}function pn(){}function Bne(){}function Vne(){}function Hne(){}function Une(){}function Wne(){}function Gne(){}function Kne(){}function qne(){}function Jne(){}function Yne(){}function Xne(){}function Zne(){}function Qne(){}function $ne(){}function ere(){}function tre(){}function nre(){}function rre(){}function ire(){}function mn(){}function are(){}function ore(){}function sre(){}function cre(){}function lre(){}function ure(){}function dre(){}function fre(){}function pre(){}function mre(){}function hre(){}function gre(){}function _re(){}function vre(){}function yre(){}function bre(){}function xre(){}function Sre(){}function Cre(){}function wre(){}function Tre(){}function Ere(){}function Dre(){}function Ore(){}function kre(){}function Are(){}function jre(){}function Mre(){}function Nre(){}function Pre(){}function Fre(){}function Ire(){}function Lre(){}function Rre(){}function zre(){}function Bre(){}function Vre(){}function Hre(){}function Ure(){}function Wre(){}function Gre(){}function Kre(){}function hn(){}function qre(){}function Jre(){}function Yre(){}function Xre(){}function Zre(){}function Qre(){}function $re(){}function eie(){}function tie(){}function nie(){}function rie(){}function iie(){}function aie(){}function oie(){}function sie(){}function gn(){}function cie(){}function _n(){}function vn(){}function lie(){}function yn(){}function bn(){}function xn(){}function Sn(){}function Cn(){}function wn(){}function Tn(){}function En(){}function uie(){}function die(){}function fie(){}function pie(){}function mie(){}function Dn(){}function On(){}function hie(){}function gie(){}function _ie(){}function vie(){}function yie(){}function bie(){}function xie(){}function Sie(){}function Cie(){}function wie(){}function Tie(){}function Eie(){}function Die(){}function kn(){}function Oie(){}function kie(){}function Aie(){}function An(){}function jie(){}function Mie(){}function Nie(){}function Pie(){}function Fie(){}function Iie(){}function Lie(){}function Rie(){}function zie(){}function Bie(){}function Vie(){}function Hie(){}function Uie(){}function Wie(){}function jn(){}function Gie(){}function Kie(){}function qie(){}function Jie(){}function Yie(){}function Xie(){}function Zie(){}function Qie(){}function $ie(){}function eae(){}function tae(){}function nae(){}function rae(){}function iae(){}function aae(){}function oae(){}function sae(){}function cae(){}function lae(){}function uae(){}function dae(){}function fae(){}function pae(){}function mae(){}function hae(){}function gae(){}function _ae(){}function vae(){}function yae(){}function bae(){}function xae(){}function Sae(){}function Cae(){}function wae(){}function Tae(){}function Eae(){}function Dae(){}function Oae(){}function kae(){}function Aae(){}function jae(){}function Mae(){}function Nae(){}function Mn(){}function Pae(){}function Fae(){}function Iae(){}function Lae(){}function Nn(){}function Pn(){}function Fn(){}function In(){}function Ln(){}function Rae(){}function zae(){}function Bae(){}function Vae(){}function Hae(){}function Rn(){}function Uae(){}function Wae(){}function zn(){}function Gae(){}function Bn(){}function Kae(){}function qae(){}function Vn(){}function Jae(){}function Hn(){}function Yae(){}function Xae(){}function Zae(){}function Qae(){}function $ae(){}function eoe(){}function toe(){}function noe(){}function roe(){}function ioe(){}function aoe(){}function ooe(){}function soe(){}function coe(){}function Un(){}function loe(){}function uoe(){}function doe(){}function foe(){}function poe(){}function Wn(){}function moe(){}function hoe(){}function goe(){}function _oe(){}function voe(){}function yoe(){}function boe(){}function xoe(){}function Soe(){}function Coe(){}function woe(){}function Toe(){}function Eoe(){}function Doe(){}function Ooe(){}function koe(){}function Aoe(){}function joe(){}function Moe(){}function Noe(){}function Poe(){}function Foe(){}function Ioe(){}function Loe(){}function Roe(){}function zoe(){}function Boe(){}function Voe(){}function Hoe(){}function Gn(){}function Uoe(){}function Woe(){}function Goe(){}function Koe(){}function Kn(){}function qoe(){}function Joe(){}function Yoe(){}function Xoe(){}function Zoe(){}function Qoe(){}function $oe(){}function ese(){}function tse(){}function nse(){}function rse(){}function qn(){}function ise(){}function ase(){}function ose(){}function sse(){}function cse(){}function lse(){}function use(){}function Jn(){}function Yn(){}function N(){}function Xn(){}function Zn(){}function dse(){}function fse(){}function Qn(){}function P(){}function pse(){}function $n(){}function er(){}function tr(){}function mse(){}function hse(){}function gse(){}function _se(){}function vse(){}function nr(){}function rr(){}function ir(){}function ar(){}function yse(){}function bse(){}function xse(){}function Sse(){}function Cse(){}function or(){}function wse(){}function sr(){}function Tse(){}function cr(){}function Ese(){}function lr(){}function Dse(){}function ur(){}function Ose(){}function dr(){}function fr(){}function kse(){}function Ase(){}function pr(){}function jse(){}function mr(){}function Mse(){}function Nse(){}function Pse(){}function Fse(){}function Ise(){}function hr(){}function Lse(){}function Rse(){}function zse(){}function gr(){}function Bse(){}function _r(){}function Vse(){}function Hse(){}function Use(){}function vr(){}function Wse(){}function Gse(){}function Kse(){}function yr(){}function qse(){}function Jse(){}function br(){}function Yse(){}function Xse(){}function Zse(){}function Qse(){}function $se(){}function ece(){}function tce(){}function nce(){}function xr(){}function rce(){}function Sr(){}function ice(){}function Cr(){}function ace(){}function wr(){}function oce(){}function sce(){}function cce(){}function lce(){}function uce(){}function dce(){}function fce(){}function pce(){}function Tr(){}function Er(){}function Dr(){}function mce(){}function hce(){}function gce(){}function Or(){}function _ce(){}function vce(){}function kr(){}function yce(){}function bce(){}function Ar(){}function xce(){}function jr(){}function Mr(){}function Nr(){}function Pr(){ss()}function Sce(){bl()}function Fr(){J4e()}function Cce(){jXe()}function wce(){fA()}function Tce(){i5e()}function Ece(){WI()}function Dce(){hj()}function Oce(){wj()}function Ir(){xl()}function Lr(){Im()}function Rr(){Sl()}function zr(){$w()}function kce(){oS()}function Ace(){lKe()}function jce(){eIe()}function Mce(){dKe()}function Nce(){IHe()}function Pce(){QFe()}function Fce(){BE()}function Ice(){pKe()}function Lce(){fKe()}function Rce(){tx()}function Br(){mKe()}function zce(){$M()}function Bce(){wl()}function Vce(){zpt()}function Hce(){sz()}function Uce(){hKe()}function Wce(){Lqe()}function Gce(){cb()}function Kce(){vj()}function qce(){tIe()}function Jce(){jI()}function Yce(){bet()}function Xce(){JC()}function Zce(){$Ze()}function Qce(){YI()}function Vr(){VIe()}function $ce(){qC()}function ele(){fot()}function tle(){gN()}function nle(){got()}function Hr(){JF()}function rle(){GM()}function Ur(){_at()}function Wr(){t2e()}function Gr(){UEe()}function ile(){kS()}function ale(){KM()}function ole(){pz()}function sle(){YYe()}function cle(){bk()}function lle(){eT()}function ule(){xL()}function dle(){Pst()}function fle(e){sv(e)}function ple(e){this.a=e}function mle(e){this.a=e}function F(e){this.a=e}function Kr(e){this.a=e}function qr(e){this.a=e}function Jr(e){this.a=e}function hle(e){this.a=e}function gle(e){this.a=e}function _le(e){this.a=e}function vle(e){this.a=e}function yle(e){this.a=e}function ble(e){this.a=e}function Yr(e){this.a=e}function xle(e){this.a=e}function Sle(e){this.a=e}function Xr(e){this.a=e}function Cle(e){this.a=e}function wle(e){this.a=e}function Tle(e){this.a=e}function Ele(e){this.a=e}function Dle(e){this.a=e}function Ole(e){this.a=e}function kle(e){this.b=e}function Zr(e){this.c=e}function Qr(e){this.a=e}function Ale(e){this.a=e}function jle(e){this.a=e}function $r(e){this.a=e}function Mle(e){this.a=e}function Nle(e){this.a=e}function Ple(e){this.a=e}function ei(e){this.a=e}function Fle(e){this.a=e}function Ile(e){this.a=e}function Lle(e){this.a=e}function Rle(e){this.a=e}function ti(e){this.a=e}function ni(e){this.a=e}function zle(e){this.a=e}function ri(e){this.a=e}function ii(e){this.a=e}function ai(){this.a=[]}function Ble(e,t){e.a=t}function oi(e,t){e.a=t}function Vle(e,t){e.b=t}function Hle(e,t){e.b=t}function si(e,t){e.b=t}function ci(e,t){e.j=t}function li(e,t){e.g=t}function ui(e,t){e.i=t}function di(e,t){e.c=t}function fi(e,t){e.c=t}function pi(e,t){e.d=t}function Ule(e,t){e.d=t}function mi(e,t){e.k=t}function Wle(e,t){e.c=t}function Gle(e,t){e.c=t}function Kle(e,t){e.a=t}function qle(e,t){e.a=t}function hi(e,t){e.f=t}function Jle(e,t){e.a=t}function Yle(e,t){e.b=t}function gi(e,t){e.d=t}function _i(e,t){e.i=t}function Xle(e,t){e.o=t}function Zle(e,t){e.r=t}function Qle(e,t){e.a=t}function $le(e,t){e.b=t}function eue(e,t){e.e=t}function tue(e,t){e.f=t}function nue(e,t){e.g=t}function rue(e,t){e.e=t}function iue(e,t){e.f=t}function aue(e,t){e.f=t}function oue(e,t){e.a=t}function vi(e,t){e.b=t}function sue(e,t){e.n=t}function cue(e,t){e.a=t}function lue(e,t){e.c=t}function yi(e,t){e.c=t}function bi(e,t){e.c=t}function xi(e,t){e.a=t}function uue(e,t){e.a=t}function due(e,t){e.d=t}function fue(e,t){e.d=t}function pue(e,t){e.e=t}function mue(e,t){e.e=t}function Si(e,t){e.g=t}function hue(e,t){e.f=t}function gue(e,t){e.j=t}function _ue(e,t){e.a=t}function Ci(e,t){e.a=t}function wi(e,t){e.b=t}function Ti(e){e.b=e.a}function vue(e){e.c=e.d.d}function yue(e){this.a=e}function Ei(e){this.a=e}function Di(e){this.a=e}function Oi(e){this.a=e}function ki(e){this.a=e}function Ai(e){this.a=e}function I(e){this.a=e}function ji(e){this.a=e}function Mi(e){this.a=e}function Ni(e){this.a=e}function Pi(e){this.a=e}function Fi(e){this.a=e}function Ii(e){this.a=e}function Li(e){this.a=e}function Ri(e){this.b=e}function zi(e){this.b=e}function Bi(e){this.b=e}function Vi(e){this.a=e}function Hi(e){this.a=e}function Ui(e){this.c=e}function L(e){this.c=e}function bue(e){this.c=e}function Wi(e){this.d=e}function xue(e){this.a=e}function Gi(e){this.a=e}function Sue(e){this.a=e}function Cue(e){this.a=e}function wue(e){this.a=e}function Ki(e){this.a=e}function Tue(e){this.a=e}function qi(e){this.a=e}function Ji(e){this.a=e}function Yi(e){this.a=e}function Xi(e){this.a=e}function Zi(e){this.a=e}function Qi(e){this.a=e}function Eue(e){this.a=e}function Due(e){this.a=e}function $i(e){this.a=e}function Oue(e){this.a=e}function kue(e){this.a=e}function Aue(e){this.a=e}function jue(e){this.a=e}function ea(e){this.a=e}function Mue(e){this.a=e}function Nue(e){this.a=e}function Pue(e){this.a=e}function Fue(e){this.a=e}function Iue(e){this.a=e}function Lue(e){this.a=e}function Rue(e){this.a=e}function ta(e){this.a=e}function zue(e){this.a=e}function Bue(e){this.a=e}function na(e){this.a=e}function ra(e){this.a=e}function ia(e){this.a=e}function Vue(e){this.a=e}function aa(e){this.a=e}function oa(e){this.a=e}function Hue(e){this.a=e}function Uue(e){this.a=e}function sa(e){this.a=e}function ca(e){this.a=e}function la(e){this.a=e}function Wue(e){this.a=e}function ua(e){this.a=e}function da(e){this.a=e}function Gue(e){this.a=e}function fa(e){this.a=e}function pa(e){this.a=e}function ma(e){this.e=e}function ha(e){this.a=e}function Kue(e){this.a=e}function ga(e){this.a=e}function _a(e){this.a=e}function va(e){this.a=e}function ya(e){this.a=e}function que(e){this.a=e}function Jue(e){this.a=e}function Yue(e){this.a=e}function ba(e){this.a=e}function xa(e){this.a=e}function Sa(e){this.a=e}function Ca(e){this.a=e}function Xue(e){this.a=e}function Zue(e){this.a=e}function Que(e){this.a=e}function $ue(e){this.a=e}function wa(e){this.a=e}function ede(e){this.a=e}function tde(e){this.a=e}function nde(e){this.a=e}function rde(e){this.a=e}function Ta(e){this.a=e}function Ea(e){this.a=e}function Da(e){this.a=e}function Oa(e){this.a=e}function ide(e){this.a=e}function ade(e){this.a=e}function ode(e){this.a=e}function ka(e){this.a=e}function sde(e){this.a=e}function cde(e){this.a=e}function lde(e){this.a=e}function Aa(e){this.a=e}function ja(e){this.a=e}function Ma(e){this.a=e}function ude(e){this.a=e}function dde(e){this.a=e}function fde(e){this.a=e}function pde(e){this.a=e}function mde(e){this.a=e}function hde(e){this.a=e}function gde(e){this.a=e}function _de(e){this.a=e}function vde(e){this.a=e}function Na(e){this.a=e}function yde(e){this.a=e}function bde(e){this.a=e}function Pa(e){this.a=e}function xde(e){this.a=e}function Sde(e){this.a=e}function Cde(e){this.a=e}function wde(e){this.a=e}function Tde(e){this.a=e}function Ede(e){this.c=e}function Dde(e){this.b=e}function Ode(e){this.a=e}function kde(e){this.a=e}function Fa(e){this.a=e}function Ia(e){this.a=e}function Ade(e){this.a=e}function jde(e){this.a=e}function Mde(e){this.a=e}function Nde(e){this.a=e}function Pde(e){this.a=e}function Fde(e){this.a=e}function Ide(e){this.a=e}function Lde(e){this.a=e}function Rde(e){this.a=e}function zde(e){this.a=e}function La(e){this.a=e}function Bde(e){this.a=e}function Vde(e){this.a=e}function Hde(e){this.a=e}function Ude(e){this.a=e}function Wde(e){this.a=e}function Gde(e){this.a=e}function Kde(e){this.a=e}function qde(e){this.a=e}function Ra(e){this.a=e}function Jde(e){this.a=e}function Yde(e){this.a=e}function Xde(e){this.a=e}function za(e){this.a=e}function Ba(e){this.a=e}function Zde(e){this.a=e}function Qde(e){this.a=e}function $de(e){this.a=e}function efe(e){this.a=e}function tfe(e){this.a=e}function Va(e){this.a=e}function nfe(e){this.a=e}function rfe(e){this.a=e}function ife(e){this.a=e}function afe(e){this.a=e}function ofe(e){this.a=e}function sfe(e){this.a=e}function cfe(e){this.a=e}function lfe(e){this.a=e}function ufe(e){this.a=e}function dfe(e){this.a=e}function ffe(e){this.a=e}function pfe(e){this.a=e}function mfe(e){this.a=e}function hfe(e){this.a=e}function Ha(e){this.a=e}function Ua(e){this.a=e}function Wa(e){this.a=e}function gfe(e){this.a=e}function Ga(e){this.a=e}function _fe(e){this.a=e}function Ka(e){this.a=e}function vfe(e){this.f=e}function yfe(e){this.a=e}function bfe(e){this.a=e}function xfe(e){this.a=e}function Sfe(e){this.a=e}function Cfe(e){this.a=e}function wfe(e){this.a=e}function Tfe(e){this.a=e}function Efe(e){this.a=e}function Dfe(e){this.a=e}function Ofe(e){this.a=e}function kfe(e){this.a=e}function Afe(e){this.a=e}function jfe(e){this.a=e}function Mfe(e){this.a=e}function Nfe(e){this.a=e}function Pfe(e){this.a=e}function Ffe(e){this.a=e}function Ife(e){this.a=e}function Lfe(e){this.a=e}function Rfe(e){this.a=e}function zfe(e){this.a=e}function Bfe(e){this.a=e}function Vfe(e){this.a=e}function Hfe(e){this.a=e}function Ufe(e){this.a=e}function Wfe(e){this.a=e}function Gfe(e){this.a=e}function Kfe(e){this.a=e}function qa(e){this.a=e}function qfe(e){this.a=e}function Ja(e){this.b=e}function Jfe(e){this.a=e}function Yfe(e){this.a=e}function Xfe(e){this.a=e}function Zfe(e){this.a=e}function Ya(e){this.a=e}function Qfe(e){this.a=e}function $fe(e){this.a=e}function epe(e){this.b=e}function tpe(e){this.a=e}function Xa(e){this.a=e}function npe(e){this.a=e}function rpe(e){this.a=e}function ipe(e){this.c=e}function Za(e){this.e=e}function ape(e){this.a=e}function ope(e){this.a=e}function spe(e){this.a=e}function cpe(e){this.d=e}function lpe(e){this.a=e}function upe(e){this.a=e}function dpe(e){this.a=e}function Qa(e){this.e=e}function $a(){this.a=0}function eo(){Qg(this)}function to(){qxe(this)}function fpe(){$Me(this)}function no(){}function ro(){this.c=oHt}function ppe(e,t){e.b+=t}function mpe(e,t){t.Wb(e)}function hpe(e){return e.a}function gpe(e){return e.a}function _pe(e){return e.a}function vpe(e){return e.a}function ype(e){return e.a}function R(e){return e.e}function bpe(){return null}function xpe(){return null}function Spe(){oge(),Wft()}function Cpe(e){e.b.Of(e.e)}function wpe(e){e.b=new ic}function io(e,t){e.b=t-e.b}function ao(e,t){e.a=t-e.a}function oo(e,t){e.push(t)}function so(e,t){e.sort(t)}function Tpe(e,t){t.jd(e.a)}function Epe(e,t){$N(t,e)}function Dpe(e,t,n){e.Yd(n,t)}function co(e,t){e.e=t,t.b=e}function Ope(e){Am(),this.a=e}function lo(e){Am(),this.a=e}function uo(e){Am(),this.a=e}function fo(e){O_(),this.a=e}function kpe(e){py(),fJ.le(e)}function Ape(){Ape=D,new eo}function po(){FCe.call(this)}function mo(){FCe.call(this)}function ho(){po.call(this)}function go(){po.call(this)}function _o(){po.call(this)}function vo(){po.call(this)}function yo(){po.call(this)}function bo(){po.call(this)}function xo(){po.call(this)}function So(){po.call(this)}function jpe(){po.call(this)}function Co(){po.call(this)}function wo(){po.call(this)}function Mpe(){this.a=this}function To(){this.Bb|=256}function Npe(){this.b=new uxe}function Eo(e,t){e.length=t}function Do(e,t){Cf(e.a,t)}function Ppe(e,t){wN(e.c,t)}function Fpe(e,t){t_(e.b,t)}function Ipe(e,t){G0e(e.a,t)}function Lpe(e,t){iQe(e.a,t)}function Oo(e,t){ST(e.e,t)}function ko(e){PP(e.c,e.b)}function Rpe(e,t){e.kc().Nb(t)}function zpe(e){this.a=kQe(e)}function Ao(){this.a=new eo}function Bpe(){this.a=new eo}function jo(){this.a=new w_e}function Mo(){this.a=new to}function No(){this.a=new to}function Vpe(){this.a=new to}function Po(){this.a=new He}function Fo(){this.a=new OVe}function Hpe(){this.a=new Pt}function Upe(){this.a=new XFe}function Wpe(){this.a=new RTe}function Gpe(){this.a=new to}function Io(){this.a=new to}function Kpe(){this.a=new to}function Lo(){this.a=new to}function qpe(){this.d=new to}function Jpe(){this.a=new DLe}function Ype(){this.a=new Ao}function Xpe(){this.a=new eo}function Ro(){this.b=new eo}function zo(){this.b=new to}function Bo(){this.e=new to}function Vo(){this.a=new zce}function Ho(){this.d=new to}function Uo(){NPe.call(this)}function Wo(){NPe.call(this)}function Zpe(){to.call(this)}function Go(){ho.call(this)}function Ko(){Mo.call(this)}function Qpe(){um.call(this)}function $pe(){Lo.call(this)}function qo(){no.call(this)}function Jo(){qo.call(this)}function Yo(){no.call(this)}function Xo(){Yo.call(this)}function eme(){rs.call(this)}function tme(){rs.call(this)}function Zo(){rs.call(this)}function nme(){bme.call(this)}function Qo(){Moe.call(this)}function rme(){Moe.call(this)}function $o(){$c.call(this)}function ime(){os.call(this)}function es(){os.call(this)}function ts(){eo.call(this)}function ame(){eo.call(this)}function ome(){eo.call(this)}function sme(){SKe.call(this)}function cme(){Ao.call(this)}function lme(){To.call(this)}function ns(){mCe.call(this)}function ume(){eo.call(this)}function dme(){mCe.call(this)}function fme(){eo.call(this)}function pme(){eo.call(this)}function mme(){Kn.call(this)}function hme(){mme.call(this)}function gme(){Kn.call(this)}function _me(){jr.call(this)}function rs(){this.a=new Ao}function vme(){this.a=new eo}function yme(){this.a=new to}function bme(){this.a=new eo}function is(){this.a=new $c}function xme(){this.j=new to}function as(){this.a=new Dge}function os(){this.a=new Koe}function Sme(){this.a=new Tae}function ss(){ss=D,SSt=new o}function cs(){cs=D,iJ=new ls}function Cme(){Cme=D,aJ=new wme}function wme(){Xr.call(this,``)}function ls(){Xr.call(this,``)}function us(e){tGe.call(this,e)}function ds(e){tGe.call(this,e)}function Tme(e){_le.call(this,e)}function Eme(e){h_e.call(this,e)}function Dme(e){h_e.call(this,e)}function Ome(e){Eme.call(this,e)}function kme(e){Eme.call(this,e)}function Ame(e){Eme.call(this,e)}function jme(e){Hze.call(this,e)}function Mme(e){Hze.call(this,e)}function fs(e){OEe.call(this,e)}function ps(e){__e.call(this,e)}function ms(e){Hc.call(this,e)}function hs(e){Hc.call(this,e)}function gs(e){Hc.call(this,e)}function _s(e){n5e.call(this,e)}function vs(e){_s.call(this,e)}function ys(e){xje.call(this,e)}function Nme(e){ys.call(this,e)}function bs(){ii.call(this,{})}function xs(){xs=D,gJ=new T}function Ss(){Ss=D,DSt=new RSe}function Pme(){Pme=D,MSt=new a}function Cs(){Cs=D,ISt=new y}function ws(){ws=D,pJ=new S}function Ts(e){Ff(),this.a=e}function Es(e){Iqe(),this.a=e}function Ds(e){qAe(),this.f=e}function Fme(e){qAe(),this.f=e}function Os(e){HEe(),this.a=e}function Ime(e){e.b=null,e.c=0}function Lme(e,t){e.e=t,Jrt(e,t)}function Rme(e,t){e.a=t,d7e(e)}function zme(e,t,n){e.a[t.g]=n}function Bme(e,t,n){Wj(n,e,t)}function Vme(e,t){kEe(t.i,e.n)}function Hme(e,t){GYe(e).Cd(t)}function Ume(e,t){e.a.ec().Mc(t)}function Wme(e,t){return e.g-t.g}function Gme(e,t){return e*e/t}function ks(e){return sv(e),e}function z(e){return sv(e),e}function As(e){return sv(e),e}function Kme(e){return new ri(e)}function qme(e){return new D_(e)}function Jme(e){return sv(e),e}function Yme(e){return sv(e),e}function Xme(e){ys.call(this,e)}function js(e){ys.call(this,e)}function Zme(e){ys.call(this,e)}function Ms(e){xje.call(this,e)}function Ns(e){ys.call(this,e)}function Ps(e){ys.call(this,e)}function Fs(e){ys.call(this,e)}function Qme(e){ys.call(this,e)}function Is(e){ys.call(this,e)}function Ls(e){ys.call(this,e)}function Rs(e){ys.call(this,e)}function zs(e){ys.call(this,e)}function Bs(e){ys.call(this,e)}function $me(e){ys.call(this,e)}function Vs(e){ys.call(this,e)}function Hs(e){sv(e),this.a=e}function ehe(e){return jE(e),e}function Us(e){s_(e,e.length)}function Ws(e){return e.b==e.c}function Gs(e){return!!e&&e.b}function the(e){return!!e&&e.k}function nhe(e){return!!e&&e.j}function rhe(e,t,n){e.c.Ef(t,n)}function ihe(e,t){e.be(t),t.ae(e)}function Ks(e){Am(),this.a=E_(e)}function ahe(){this.a=Lp(E_(Dz))}function qs(){throw R(new xo)}function ohe(){throw R(new xo)}function Js(){throw R(new xo)}function Ys(){throw R(new xo)}function she(){throw R(new xo)}function che(){throw R(new xo)}function lhe(){lhe=D,py()}function Xs(){Ai.call(this,``)}function Zs(){Ai.call(this,``)}function Qs(){Ai.call(this,``)}function $s(){Ai.call(this,``)}function uhe(e){js.call(this,e)}function dhe(e){js.call(this,e)}function ec(e){Ps.call(this,e)}function tc(e){Bi.call(this,e)}function fhe(e){tc.call(this,e)}function nc(e){Jf.call(this,e)}function rc(e){ZCe.call(this,e,0)}function ic(){bIe.call(this,12,3)}function B(e,t){return GFe(e,t)}function phe(e,t){return uUe(e,t)}function mhe(e,t){return e.a-t.a}function hhe(e,t){return e.a-t.a}function ghe(e,t){return e.a-t.a}function _he(e,t){return t in e.a}function vhe(e){return e.a?e.b:0}function yhe(e){return e.a?e.b:0}function bhe(e,t,n){t.Cd(e.a[n])}function xhe(e,t,n){t.Pe(e.a[n])}function She(e,t){e.b=new Td(t)}function Che(e,t){return e.b=t,e}function whe(e,t){return e.c=t,e}function The(e,t){return e.f=t,e}function Ehe(e,t){return e.g=t,e}function Dhe(e,t){return e.a=t,e}function Ohe(e,t){return e.f=t,e}function khe(e,t){return e.k=t,e}function Ahe(e,t){return e.a=t,e}function jhe(e,t){return e.e=t,e}function ac(e,t){return e.e=t,e}function Mhe(e,t){return e.f=t,e}function Nhe(e,t){e.b=!0,e.d=t}function Phe(e,t){return e.b-t.b}function Fhe(e,t){return e.g-t.g}function Ihe(e,t){return e?0:t-1}function Lhe(e,t){return e?0:t-1}function Rhe(e,t){return e?t-1:0}function zhe(e,t){return e.s-t.s}function Bhe(e,t){return t.rg(e)}function oc(e,t){return e.b=t,e}function Vhe(e,t){return e.a=t,e}function sc(e,t){return e.c=t,e}function cc(e,t){return e.d=t,e}function lc(e,t){return e.e=t,e}function Hhe(e,t){return e.f=t,e}function uc(e,t){return e.a=t,e}function dc(e,t){return e.b=t,e}function fc(e,t){return e.c=t,e}function pc(e,t){return e.c=t,e}function mc(e,t){return e.b=t,e}function hc(e,t){return e.d=t,e}function gc(e,t){return e.e=t,e}function Uhe(e,t){return e.f=t,e}function _c(e,t){return e.g=t,e}function vc(e,t){return e.a=t,e}function yc(e,t){return e.i=t,e}function bc(e,t){return e.j=t,e}function Whe(e,t){$M(),mb(t,e)}function Ghe(e,t,n){YAe(e.a,t,n)}function Khe(e){Em.call(this,e)}function qhe(e){HQe.call(this,e)}function Jhe(e){VNe.call(this,e)}function Yhe(e){VNe.call(this,e)}function xc(e){BC.call(this,e)}function Xhe(e){$Ne.call(this,e)}function Zhe(e){$Ne.call(this,e)}function Qhe(){xSe.call(this,``)}function Sc(){this.a=0,this.b=0}function $he(){this.b=0,this.a=0}function ege(e,t){e.b=0,ow(e,t)}function tge(e,t){return e.k=t,e}function nge(e,t){return e.j=t,e}function rge(e,t){e.c=t,e.b=!0}function ige(){ige=D,mCt=$3e()}function Cc(){Cc=D,zBt=e3e()}function age(){age=D,m7=M6e()}function oge(){oge=D,x7=_w()}function wc(){wc=D,GVt=t3e()}function sge(){sge=D,zHt=n3e()}function cge(){cge=D,o9=c7e()}function Tc(e){return e.e&&e.e()}function lge(e){return e.l|e.m<<22}function uge(e,t){return e.c._b(t)}function dge(e,t){return DZe(e.b,t)}function fge(e){return e?e.d:null}function pge(e){return e?e.g:null}function mge(e){return e?e.i:null}function Ec(e){return Rp(e),e.o}function Dc(e,t){return e.a+=t,e}function hge(e,t){return e.a+=t,e}function Oc(e,t){return e.a+=t,e}function kc(e,t){return e.a+=t,e}function Ac(e,t){for(;e.Bd(t););}function gge(e){this.a=new Zc(e)}function _ge(){throw R(new xo)}function vge(){throw R(new xo)}function yge(){throw R(new xo)}function bge(){throw R(new xo)}function xge(){throw R(new xo)}function Sge(){throw R(new xo)}function jc(e){this.a=new bje(e)}function Cge(){this.a=new wF(YFt)}function wge(){this.b=new wF(jPt)}function Tge(){this.a=new wF(JIt)}function Ege(){this.b=new wF(J4)}function Dge(){this.b=new wF(J4)}function Oge(e){this.a=0,this.b=e}function kge(e){Gdt(),upt(this,e)}function Mc(e){return tv(e),e.a}function Age(e){return e.b!=e.d.c}function jge(e,t){return e.d[t.p]}function Mge(e,t){return Krt(e,t)}function Nge(e,t,n){e.splice(t,n)}function Nc(e,t){for(;e.Re(t););}function Pge(e){e.c?zit(e):Bit(e)}function Fge(){throw R(new xo)}function Ige(){throw R(new xo)}function Lge(){throw R(new xo)}function Rge(){throw R(new xo)}function zge(){throw R(new xo)}function Bge(){throw R(new xo)}function Vge(){throw R(new xo)}function Hge(){throw R(new xo)}function Uge(){throw R(new xo)}function Wge(){throw R(new xo)}function Gge(){throw R(new Co)}function Kge(){throw R(new Co)}function qge(e){this.a=new Jge(e)}function Jge(e){IKe(this,e,lN())}function Yge(e){return!e||Z_(e)}function Xge(e){return h9[e]!=-1}function Zge(){uJ!=0&&(uJ=0),dJ=-1}function Qge(){gSt??=[]}function $ge(e,t){Pf.call(this,e,t)}function Pc(e,t){$ge.call(this,e,t)}function e_e(e,t){this.a=e,this.b=t}function t_e(e,t){this.a=e,this.b=t}function n_e(e,t){this.a=e,this.b=t}function r_e(e,t){this.a=e,this.b=t}function i_e(e,t){this.a=e,this.b=t}function a_e(e,t){this.a=e,this.b=t}function o_e(e,t){this.a=e,this.b=t}function Fc(e,t){this.e=e,this.d=t}function s_e(e,t){this.b=e,this.c=t}function c_e(e,t){this.b=e,this.a=t}function l_e(e,t){this.b=e,this.a=t}function u_e(e,t){this.b=e,this.a=t}function d_e(e,t){this.b=e,this.a=t}function f_e(e,t){this.a=e,this.b=t}function p_e(e,t){this.a=e,this.b=t}function m_e(e,t){this.a=e,this.f=t}function Ic(e,t){this.g=e,this.i=t}function Lc(e,t){this.f=e,this.g=t}function Rc(e,t){this.b=e,this.c=t}function h_e(e){gCe(e.dc()),this.c=e}function g_e(e,t){this.a=e,this.b=t}function zc(e,t){this.a=e,this.b=t}function Bc(e){this.a=H(E_(e),15)}function __e(e){this.a=H(E_(e),15)}function Vc(e){this.a=H(E_(e),85)}function v_e(e){this.b=H(E_(e),85)}function Hc(e){this.b=H(E_(e),51)}function Uc(){this.q=new r.Date}function Wc(e,t){this.a=e,this.b=t}function Gc(e,t){return Jg(e.b,t)}function Kc(e,t){return e.b.Hc(t)}function y_e(e,t){return e.b.Ic(t)}function b_e(e,t){return e.b.Qc(t)}function x_e(e,t){return e.b.Hc(t)}function qc(e,t){return e.c.uc(t)}function S_e(e,t){return kD(e.c,t)}function Jc(e,t){return e.a._b(t)}function C_e(e,t){return e>t&&t0}function ave(e,t){return uD(e,t)<0}function ove(e,t){return mg(e.a,t)}function sve(e,t){qFe.call(this,e,t)}function cve(e){k_(),OEe.call(this,e)}function lve(e,t){RAe(e,e.length,t)}function Vl(e,t){cMe(e,e.length,t)}function Hl(e,t){return e.a.get(t)}function uve(e,t){return Jg(e.e,t)}function dve(e){return sv(e),!1}function fve(e){this.a=H(E_(e),229)}function pve(e){kb.call(this,e,21)}function Ul(e,t){Lc.call(this,e,t)}function mve(e,t){Lc.call(this,e,t)}function hve(e,t){this.b=e,this.a=t}function Wl(e,t){this.d=e,this.e=t}function gve(e,t){this.a=e,this.b=t}function _ve(e,t){this.a=e,this.b=t}function vve(e,t){this.a=e,this.b=t}function yve(e,t){this.a=e,this.b=t}function Gl(e,t){this.a=e,this.b=t}function Kl(e,t){this.b=e,this.a=t}function bve(e,t){this.b=e,this.a=t}function xve(e,t){Lc.call(this,e,t)}function ql(e,t){Lc.call(this,e,t)}function Jl(e,t){Lc.call(this,e,t)}function Sve(e,t){Lc.call(this,e,t)}function Cve(e,t){Lc.call(this,e,t)}function wve(e,t){Lc.call(this,e,t)}function Tve(e,t){Lc.call(this,e,t)}function Eve(e,t){this.b=e,this.a=t}function Yl(e,t){Lc.call(this,e,t)}function Xl(e,t){this.b=e,this.a=t}function Zl(e,t){Lc.call(this,e,t)}function Dve(e,t){this.b=e,this.a=t}function Ql(e,t){Lc.call(this,e,t)}function $l(e,t){Lc.call(this,e,t)}function eu(e,t){Lc.call(this,e,t)}function tu(e,t,n){e.splice(t,0,n)}function Ove(e,t,n){e.Mb(n)&&t.Cd(n)}function nu(e,t,n){t.Pe(e.a.Ye(n))}function kve(e,t,n){t.Dd(e.a.Ze(n))}function Ave(e,t,n){t.Cd(e.a.Kb(n))}function jve(e,t){return tp(e.c,t)}function Mve(e,t){return tp(e.e,t)}function ru(e,t){Lc.call(this,e,t)}function iu(e,t){Lc.call(this,e,t)}function au(e,t){Lc.call(this,e,t)}function ou(e,t){Lc.call(this,e,t)}function su(e,t){Lc.call(this,e,t)}function Nve(e,t){Lc.call(this,e,t)}function Pve(e,t){this.a=e,this.b=t}function Fve(e,t){this.a=e,this.b=t}function cu(e,t){this.a=e,this.b=t}function Ive(e,t){this.a=e,this.b=t}function Lve(e,t){this.a=e,this.b=t}function Rve(e,t){this.a=e,this.b=t}function zve(e,t){this.b=e,this.a=t}function Bve(e,t){this.b=e,this.a=t}function Vve(e,t){this.b=e,this.a=t}function lu(e,t){this.c=e,this.d=t}function Hve(e,t){this.e=e,this.d=t}function Uve(e,t){this.a=e,this.b=t}function Wve(e,t){this.a=e,this.b=t}function Gve(e,t){this.a=e,this.b=t}function Kve(e,t){this.b=e,this.a=t}function qve(e,t){this.b=t,this.c=e}function Jve(e,t){Lc.call(this,e,t)}function uu(e,t){Lc.call(this,e,t)}function Yve(e,t){Lc.call(this,e,t)}function Xve(e,t){Lc.call(this,e,t)}function du(e,t){Lc.call(this,e,t)}function Zve(e,t){Lc.call(this,e,t)}function Qve(e,t){Lc.call(this,e,t)}function fu(e,t){Lc.call(this,e,t)}function $ve(e,t){Lc.call(this,e,t)}function eye(e,t){Lc.call(this,e,t)}function pu(e,t){Lc.call(this,e,t)}function tye(e,t){Lc.call(this,e,t)}function mu(e,t){Lc.call(this,e,t)}function hu(e,t){Lc.call(this,e,t)}function gu(e,t){Lc.call(this,e,t)}function nye(e,t){Lc.call(this,e,t)}function rye(e,t){Lc.call(this,e,t)}function iye(e,t){Lc.call(this,e,t)}function _u(e,t){Lc.call(this,e,t)}function vu(e,t){Lc.call(this,e,t)}function aye(e,t){Lc.call(this,e,t)}function oye(e,t){Lc.call(this,e,t)}function yu(e,t){Lc.call(this,e,t)}function bu(e,t){Lc.call(this,e,t)}function sye(e,t){Lc.call(this,e,t)}function cye(e,t){Lc.call(this,e,t)}function lye(e,t){Lc.call(this,e,t)}function uye(e,t){Lc.call(this,e,t)}function dye(e,t){Lc.call(this,e,t)}function fye(e,t){Lc.call(this,e,t)}function pye(e,t){Lc.call(this,e,t)}function mye(e,t){Lc.call(this,e,t)}function hye(e,t){Lc.call(this,e,t)}function gye(e,t){this.b=e,this.a=t}function _ye(e,t){Lc.call(this,e,t)}function vye(e,t){this.a=e,this.b=t}function yye(e,t){this.a=e,this.b=t}function bye(e,t){this.a=e,this.b=t}function xye(e,t){Lc.call(this,e,t)}function Sye(e,t){Lc.call(this,e,t)}function Cye(e,t){this.a=e,this.b=t}function wye(e,t){return th(),t!=e}function xu(e){return zp(e.a),e.b}function Tye(e){return ret(e,e.c),e}function Eye(){return ige(),new mCt}function Dye(){Lm(),this.a=new VTe}function Oye(){MF(),this.a=new Ao}function kye(){nIe(),this.b=new Ao}function Aye(e,t){this.b=e,this.d=t}function jye(e,t){this.a=e,this.b=t}function Mye(e,t){this.a=e,this.b=t}function Nye(e,t){this.a=e,this.b=t}function Pye(e,t){this.b=e,this.a=t}function Fye(e,t){Lc.call(this,e,t)}function Iye(e,t){Lc.call(this,e,t)}function Lye(e,t){Lc.call(this,e,t)}function Su(e,t){Lc.call(this,e,t)}function Rye(e,t){Lc.call(this,e,t)}function zye(e,t){Lc.call(this,e,t)}function Bye(e,t){Lc.call(this,e,t)}function Vye(e,t){Lc.call(this,e,t)}function Cu(e,t){Lc.call(this,e,t)}function Hye(e,t){Lc.call(this,e,t)}function Uye(e,t){Lc.call(this,e,t)}function Wye(e,t){Lc.call(this,e,t)}function Gye(e,t){Lc.call(this,e,t)}function Kye(e,t){Lc.call(this,e,t)}function wu(e,t){Lc.call(this,e,t)}function qye(e,t){Lc.call(this,e,t)}function Jye(e,t){Lc.call(this,e,t)}function Tu(e,t){Lc.call(this,e,t)}function Eu(e,t){Lc.call(this,e,t)}function Du(e,t){Lc.call(this,e,t)}function Yye(e,t){Lc.call(this,e,t)}function Xye(e,t){Lc.call(this,e,t)}function Ou(e,t){Lc.call(this,e,t)}function Zye(e,t){Lc.call(this,e,t)}function Qye(e,t){this.b=e,this.a=t}function $ye(e,t){this.b=e,this.a=t}function ebe(e,t){this.b=e,this.a=t}function tbe(e,t){this.b=e,this.a=t}function nbe(e,t){this.a=e,this.b=t}function rbe(e,t){this.a=e,this.b=t}function ibe(e,t){this.a=e,this.b=t}function ku(e,t){this.a=e,this.b=t}function Au(e,t){Lc.call(this,e,t)}function ju(e,t){Lc.call(this,e,t)}function Mu(e,t){Lc.call(this,e,t)}function Nu(e,t){Lc.call(this,e,t)}function Pu(e,t){Lc.call(this,e,t)}function Fu(e,t){Lc.call(this,e,t)}function Iu(e,t){Lc.call(this,e,t)}function Lu(e,t){Lc.call(this,e,t)}function Ru(e,t){Lc.call(this,e,t)}function abe(e,t){Lc.call(this,e,t)}function zu(e,t){Lc.call(this,e,t)}function Bu(e,t){Lc.call(this,e,t)}function Vu(e,t){Lc.call(this,e,t)}function Hu(e,t){Lc.call(this,e,t)}function Uu(e,t){Lc.call(this,e,t)}function obe(e,t){Lc.call(this,e,t)}function Wu(e,t){Lc.call(this,e,t)}function sbe(e,t){Lc.call(this,e,t)}function cbe(e,t){Lc.call(this,e,t)}function Gu(e,t){Lc.call(this,e,t)}function lbe(e,t){this.a=e,this.b=t}function Ku(e,t){this.a=e,this.b=t}function ube(e,t){this.a=e,this.b=t}function dbe(e,t){this.a=e,this.b=t}function fbe(e,t){this.a=e,this.b=t}function pbe(e,t){this.a=e,this.b=t}function qu(e,t){this.a=e,this.b=t}function mbe(e,t){this.a=e,this.b=t}function hbe(e,t){this.a=e,this.b=t}function gbe(e,t){this.a=e,this.b=t}function _be(e,t){this.a=e,this.b=t}function vbe(e,t){this.a=e,this.b=t}function ybe(e,t){this.a=e,this.b=t}function bbe(e,t){this.b=e,this.a=t}function xbe(e,t){this.b=e,this.a=t}function Sbe(e,t){this.b=e,this.a=t}function Cbe(e,t){this.b=e,this.a=t}function wbe(e,t){this.a=e,this.b=t}function Tbe(e,t){this.a=e,this.b=t}function Ebe(e,t){Lc.call(this,e,t)}function Dbe(e,t){this.a=e,this.b=t}function Obe(e,t){this.a=e,this.b=t}function Ju(e,t){Lc.call(this,e,t)}function kbe(e,t){this.f=e,this.c=t}function Abe(e,t){return tp(e.g,t)}function jbe(e,t){return tp(t.b,e)}function Mbe(e,t){return S$e(e.a,t)}function Nbe(e,t){return-e.b.af(t)}function Yu(e,t){e&&hv(gVt,e,t)}function Pbe(e,t){e.i=null,YKe(e,t)}function Fbe(e,t,n){j3e(t,FN(e,n))}function Ibe(e,t,n){j3e(t,FN(e,n))}function Lbe(e,t){Dnt(e.a,H(t,58))}function Rbe(e,t){jUe(e.a,H(t,12))}function zbe(e,t){this.a=e,this.b=t}function Bbe(e,t){this.a=e,this.b=t}function Vbe(e,t){this.a=e,this.b=t}function Hbe(e,t){this.a=e,this.b=t}function Ube(e,t){this.a=e,this.b=t}function Wbe(e,t){this.d=e,this.b=t}function Gbe(e,t){this.e=e,this.a=t}function Xu(e,t){this.b=e,this.c=t}function Kbe(e,t){this.i=e,this.g=t}function qbe(e,t){this.d=e,this.e=t}function Jbe(e,t){TWe(new Mf(e),t)}function Ybe(e){return ak(e.c,e.b)}function Zu(e){return e?e.md():null}function Qu(e){return e??null}function $u(e){return typeof e===Ypt}function ed(e){return typeof e===xz}function td(e){return typeof e===Jpt}function nd(e,t){return uD(e,t)==0}function Xbe(e,t){return uD(e,t)>=0}function rd(e,t){return uD(e,t)!=0}function Zbe(e,t){return qqe(e.Kc(),t)}function id(e,t){return e.Rd().Xb(t)}function Qbe(e){return MO(e),e.d.gc()}function $be(e){return Xh(e==null),e}function ad(e,t){return e.a+=``+t,e}function od(e,t){return e.a+=``+t,e}function sd(e,t){return e.a+=``+t,e}function cd(e,t){return e.a+=``+t,e}function ld(e,t){return e.a+=``+t,e}function exe(e,t){return e.a+=``+t,e}function txe(e){return``+(sv(e),e)}function nxe(e){Qg(this),aT(this,e)}function rxe(){$Fe(),KAe.call(this)}function ixe(e,t){yje.call(this,e,t)}function axe(e,t){yje.call(this,e,t)}function oxe(e,t){yje.call(this,e,t)}function ud(e,t){Dx(e,t,e.c.b,e.c)}function dd(e,t){Dx(e,t,e.a,e.a.a)}function sxe(e){return Db(e,0),null}function cxe(){this.b=0,this.a=!1}function lxe(){this.b=0,this.a=!1}function uxe(){this.b=new Zc(OC(12))}function dxe(){dxe=D,Gwt=nD($k())}function fd(){fd=D,VDt=nD(Znt())}function pd(){pd=D,GPt=nD(Qqe())}function fxe(){fxe=D,Ape(),LSt=new eo}function md(e){return e.a=0,e.b=0,e}function pxe(e,t){return e.a=t.g+1,e}function mxe(e,t){gm.call(this,e,t)}function hd(e,t){Zp.call(this,e,t)}function gd(e,t){Kbe.call(this,e,t)}function hxe(e,t){lp.call(this,e,t)}function gxe(e,t){IT.call(this,e,t)}function _d(e,t){eve(),hv(TVt,e,t)}function _xe(e,t){e.q.setTime(Zb(t))}function vxe(e){r.clearTimeout(e)}function yxe(e){return E_(e),new Ed(e)}function bxe(e,t){return Qu(e)===Qu(t)}function xxe(e,t){return e.a.a.a.cc(t)}function Sxe(e,t){return Ey(e.a,0,t)}function Cxe(e){return hMe(H(e,74))}function vd(e){return Vy((sv(e),e))}function wxe(e){return Vy((sv(e),e))}function yd(e){return gf(e.l,e.m,e.h)}function Txe(e,t){return hf(e.a,t.a)}function Exe(e,t){return eMe(e.a,t.a)}function Dxe(e,t){return nO(e.a,t.a)}function bd(e,t){return e.indexOf(t)}function Oxe(e,t){return e.j[t.p]==2}function xd(e,t){return e==t?0:e?1:-1}function kxe(e){return e<10?`0`+e:``+e}function Sd(e){return typeof e===Jpt}function Axe(e){return e==fX||e==hX}function jxe(e){return e==fX||e==pX}function Mxe(e,t){return hf(e.g,t.g)}function Nxe(e){return HS(e.b.b,e,0)}function Pxe(){vAe.call(this,0,0,0,0)}function Cd(){Cue.call(this,new Ex)}function Fxe(e,t){jS(e,0,e.length,t)}function Ixe(e,t){return Cf(e.a,t),t}function Lxe(e,t){return Rm(),t.a+=e}function Rxe(e,t){return Rm(),t.a+=e}function zxe(e,t){return Rm(),t.c+=e}function Bxe(e,t){return Cf(e.c,t),e}function Vxe(e,t){return xT(e.a,t),e}function wd(e){this.a=Eye(),this.b=e}function Hxe(e){this.a=Eye(),this.b=e}function Td(e){this.a=e.a,this.b=e.b}function Ed(e){this.a=e,Pr.call(this)}function Dd(e){this.a=e,Pr.call(this)}function Od(){Bv.call(this,0,0,0,0)}function kd(e){return xT(new mv,e)}function Ad(e){return CNe(H(e,123))}function jd(e){return e.vh()&&e.wh()}function Md(e){return e!=m5&&e!=h5}function Nd(e){return e==T8||e==E8}function Pd(e){return e==O8||e==w8}function Fd(e){return e==w0||e==C0}function Id(e,t){return hf(e.g,t.g)}function Uxe(e,t){return new IT(t,e)}function Wxe(e,t){return new IT(t,e)}function Ld(e){return eke(e.b.Kc(),e.a)}function Rd(e,t){GE(e,t),sw(e,e.D)}function zd(e,t,n){kGe(e,t),XC(e,n)}function Bd(e,t,n){$C(e,t),QC(e,n)}function Vd(e,t,n){ew(e,t),tw(e,n)}function Hd(e,t,n){ZC(e,t),rw(e,n)}function Ud(e,t,n){nw(e,t),iw(e,n)}function Wd(e,t,n){$we.call(this,e,t,n)}function Gxe(e){kbe.call(this,e,!0)}function Kxe(){Ul.call(this,`Tail`,3)}function Gd(){Ul.call(this,`Head`,1)}function Kd(e){uI(),Hqe.call(this,e)}function qd(e){vAe.call(this,e,e,e,e)}function qxe(e){e.c=dS($q,Oz,1,0,5,1)}function Jd(e){return e.b&&TL(e),e.a}function Yd(e){return e.b&&TL(e),e.c}function Xd(e,t){$J||(e.b=t)}function Zd(e,t){return e[e.length]=t}function Jxe(e,t){return e[e.length]=t}function Yxe(e,t){return LC(t,Wy(e))}function Qd(e,t){return LC(t,Wy(e))}function Xxe(e,t){return aKe(w_(e.d),t)}function Zxe(e,t){return aKe(w_(e.g),t)}function Qxe(e,t){return aKe(w_(e.j),t)}function $d(e,t){Zp.call(this,e.b,t)}function $xe(e,t){_S(xx(e.a),pIe(t))}function eSe(e,t){_S(GS(e.a),mIe(t))}function ef(e,t,n){Vd(n,n.i+e,n.j+t)}function tSe(e,t,n){P_(e.c[t.g],t.g,n)}function nSe(e,t,n){H(e.c,71).Gi(t,n)}function rSe(e,t,n){return P_(e,t,n),n}function tf(e){RC(e.Sf(),new ra(e))}function nf(e){return e==null?0:Nw(e)}function iSe(e){return e==null?0:Nw(e)}function rf(e){hz(),Qa.call(this,e)}function af(e){this.a=e,ZOe.call(this,e)}function of(){of=D,r.Math.log(2)}function sf(){sf=D,n9=(Q_e(),ZBt)}function aSe(){aSe=D,fPt=new DO(Fzt)}function cf(){cf=D,new oSe,new to}function oSe(){new eo,new eo,new eo}function sSe(){throw R(new Ls(pSt))}function cSe(){throw R(new Ls(pSt))}function lSe(){throw R(new Ls(Xq))}function uSe(){throw R(new Ls(Xq))}function lf(e){this.a=e,v_e.call(this,e)}function uf(e){this.a=e,v_e.call(this,e)}function dSe(e,t){O_(),this.a=e,this.b=t}function df(e,t){E_(t),Fv(e).Jc(new h)}function ff(e,t){FAe(e.c,e.c.length,t)}function pf(e){return e.at)}function pSe(e,t){return uD(e,t)>0?e:t}function gf(e,t,n){return{l:e,m:t,h:n}}function mSe(e,t){e.a!=null&&Rbe(t,e.a)}function hSe(e){fb(e,null),hb(e,null)}function gSe(e,t,n){return hv(e.g,n,t)}function _f(e,t,n){return z$e(t,n,e.c)}function _Se(e,t,n){return hv(e.k,n,t)}function vSe(e,t,n){return Gut(e,t,n),n}function ySe(e,t){return lb(),t.n.b+=e}function bSe(e){vy.call(this),this.b=e}function xSe(e){om.call(this),this.a=e}function SSe(){Ul.call(this,`Range`,2)}function CSe(e){this.b=e,this.a=new to}function wSe(e){this.b=new Ct,this.a=e}function TSe(e){e.a=new oe,e.c=new oe}function ESe(e){e.a=new eo,e.d=new eo}function DSe(e){rIe(e,null),iIe(e,null)}function OSe(e,t){return Jut(e.a,t,null)}function kSe(e,t){return hv(e.a,t.a,t)}function vf(e){return new ku(e.a,e.b)}function ASe(e){return new ku(e.c,e.d)}function jSe(e){return new ku(e.c,e.d)}function yf(e,t){return Wlt(e.c,e.b,t)}function V(e,t){return e!=null&&f0e(e,t)}function MSe(e,t){return rYe(e.Kc(),t)!=-1}function NSe(e){return e.Ob()?e.Pb():null}function PSe(e){this.b=(iy(),new Ui(e))}function FSe(e){this.a=e,eo.call(this)}function ISe(){lp.call(this,null,null)}function LSe(){up.call(this,null,null)}function RSe(){Lc.call(this,`INSTANCE`,0)}function zSe(){c3e(),this.a=new wF(wEt)}function BSe(e){return Ak(e,0,e.length)}function VSe(e,t){return new Bf(e.Kc(),t)}function HSe(e,t){return e.a.Bc(t)!=null}function USe(e,t){dR(e),e.Gc(H(t,15))}function WSe(e,t,n){e.c.bd(t,H(n,136))}function GSe(e,t,n){e.c.Ui(t,H(n,136))}function KSe(e,t){e.c&&(Fh(t),gFe(t))}function qSe(e,t){e.q.setHours(t),aL(e,t)}function JSe(e,t){Cp(t,e.a.a.a,e.a.a.b)}function YSe(e,t,n,r){P_(e.a[t.g],n.g,r)}function XSe(e,t,n){return e.a[t.g][n.g]}function ZSe(e,t){return e.e[t.c.p][t.p]}function QSe(e,t){return e.c[t.c.p][t.p]}function bf(e,t){return e.a[t.c.p][t.p]}function $Se(e,t){return e.j[t.p]=$tt(t)}function eCe(e,t){return e.a.Bc(t)!=null}function tCe(e,t){return z(Ip(t.a))<=e}function nCe(e,t){return z(Ip(t.a))>=e}function rCe(e,t){return qx(e.f,t.Pg())}function xf(e,t){return e.a*t.a+e.b*t.b}function iCe(e,t){return e.a0?t/(e*e):t*100}function mwe(e,t){return e>0?t*t/e:t*t*100}function Sp(e,t){return H(cC(e.a,t),34)}function hwe(e,t){return $M(),CP(e,t.e,t)}function gwe(e,t,n){return Tl(),n.Mg(e,t)}function _we(e){return JC(),e.e.a+e.f.a/2}function vwe(e,t,n){return JC(),n.e.a-e*t}function ywe(e){return JC(),e.e.b+e.f.b/2}function bwe(e,t,n){return JC(),n.e.b-e*t}function xwe(e){e.d=new owe(e),e.e=new eo}function Swe(){this.a=new Py,this.b=new Py}function Cwe(e){this.c=e,this.a=1,this.b=1}function wwe(e){lpt(),wpe(this),this.Ff(e)}function Twe(e,t,n){kS(),e.pf(t)&&n.Cd(e)}function Ewe(e,t,n){return Cf(t,QQe(e,n))}function Cp(e,t,n){return e.a+=t,e.b+=n,e}function Dwe(e,t,n){return e.a*=t,e.b*=n,e}function Owe(e,t){return e.a=t.a,e.b=t.b,e}function kwe(e){return e.a=-e.a,e.b=-e.b,e}function wp(e,t,n){return e.a-=t,e.b-=n,e}function Tp(e){$c.call(this),xw(this,e)}function Awe(){Lc.call(this,`GROW_TREE`,0)}function jwe(){Lc.call(this,`POLYOMINO`,0)}function Ep(e,t,n){CS.call(this,e,t,n,2)}function Dp(e,t,n){UD(xx(e.a),t,pIe(n))}function Op(e,t){Fl(),lp.call(this,e,t)}function kp(e,t){Il(),up.call(this,e,t)}function Mwe(e,t){Il(),kp.call(this,e,t)}function Ap(e,t){Il(),up.call(this,e,t)}function jp(e,t){return e.c.Fc(H(t,136))}function Nwe(e,t,n){UD(GS(e.a),t,mIe(n))}function Mp(e){this.c=e,ew(e,0),tw(e,0)}function Np(e,t){sf(),AAe.call(this,e,t)}function Pwe(e,t){sf(),Np.call(this,e,t)}function Fwe(e,t){sf(),Np.call(this,e,t)}function Iwe(e,t){sf(),AAe.call(this,e,t)}function Lwe(e,t){sf(),Fwe.call(this,e,t)}function Rwe(e,t){sf(),Iwe.call(this,e,t)}function zwe(e,t){sf(),AAe.call(this,e,t)}function Bwe(e,t,n){return t.zl(e.e,e.c,n)}function Vwe(e,t,n){return t.Al(e.e,e.c,n)}function Hwe(e,t,n){return JL(KS(e,t),n)}function Pp(e,t){return dD(e.e,H(t,54))}function Uwe(e){return e==null?null:qdt(e)}function Wwe(e){return e==null?null:u5e(e)}function Gwe(e){return e==null?null:OO(e)}function Kwe(e){return e==null?null:OO(e)}function Fp(e){return Xh(e==null||ed(e)),e}function Ip(e){return Xh(e==null||td(e)),e}function Lp(e){return Xh(e==null||$u(e)),e}function Rp(e){e.o??dtt(e)}function qwe(e){if(!e)throw R(new vo)}function Jwe(e){if(!e)throw R(new go)}function zp(e){if(!e)throw R(new Co)}function Bp(e){if(!e)throw R(new yo)}function Vp(e){if(!e)throw R(new So)}function Hp(){Hp=D,CVt=new ime,new es}function Up(){Up=D,o4=new Ja(`root`)}function Ywe(){SKe.call(this),this.Bb|=XB}function Xwe(e,t){this.d=e,vue(this),this.b=t}function Zwe(e,t){MHe.call(this,e),this.a=t}function Qwe(e,t){MHe.call(this,e),this.a=t}function $we(e,t,n){tS.call(this,e,t,n,null)}function eTe(e,t,n){tS.call(this,e,t,n,null)}function Wp(e,t){this.c=e,Fc.call(this,e,t)}function Gp(e,t){this.a=e,Wp.call(this,e,t)}function tTe(e){this.q=new r.Date(Zb(e))}function nTe(e){return e>8?0:e+1}function rTe(e,t){$J||Cf(e.a,t)}function iTe(e,t){return xl(),CT(t.d.i,e)}function aTe(e,t){return $w(),new rot(t,e)}function oTe(e,t,n){return e.Ne(t,n)<=0?n:t}function sTe(e,t,n){return e.Ne(t,n)<=0?t:n}function cTe(e,t){return H(cC(e.b,t),143)}function lTe(e,t){return H(cC(e.c,t),233)}function Kp(e){return H($h(e.a,e.b),294)}function uTe(e){return new ku(e.c,e.d+e.a)}function dTe(e){return sv(e),e?1231:1237}function fTe(e){return lb(),Fd(H(e,203))}function qp(){qp=D,Kwt=rO((xk(),J5))}function pTe(e,t){t.a?pet(e,t):eCe(e.a,t.b)}function Jp(e,t,n){++e.j,e.tj(),DHe(e,t,n)}function mTe(e,t,n){++e.j,e.qj(t,e.Zi(t,n))}function hTe(e,t,n){e.fd(t).Rb(n)}function gTe(e,t,n){return n=FI(e,t,6,n),n}function _Te(e,t,n){return n=FI(e,t,3,n),n}function vTe(e,t,n){return n=FI(e,t,9,n),n}function Yp(e,t){return Sy(t,hht),e.f=t,e}function yTe(e,t){return(t&Cz)%e.d.length}function bTe(e,t,n){return DL(e.c,e.b,t,n)}function xTe(e,t){this.c=e,BC.call(this,t)}function STe(e,t){this.a=e,epe.call(this,t)}function Xp(e,t){this.a=e,epe.call(this,t)}function Zp(e,t){Ja.call(this,e),this.a=t}function CTe(e,t){ipe.call(this,e),this.a=t}function Qp(e,t){ipe.call(this,e),this.a=t}function wTe(e){QO.call(this,0,0),this.f=e}function TTe(e,t,n){return e.a+=Ak(t,0,n),e}function $p(e){return!e.a&&(e.a=new w),e.a}function ETe(e,t){var n=e.e;return e.e=t,n}function em(e,t){var n=t;return!!e.Fe(n)}function DTe(e,t){return sp(),e==t?0:e?1:-1}function tm(e,t){e.a.bd(e.b,t),++e.b,e.c=-1}function nm(e){e.b?nm(e.b):e.f.c.zc(e.e,e.d)}function OTe(e){Qg(e.e),e.d.b=e.d,e.d.a=e.d}function kTe(e,t,n){ol(),Ble(e,t.Ve(e.a,n))}function rm(e,t,n){return r_(e,H(t,22),n)}function im(e,t){return phe(Array(t),e)}function ATe(e){return Tg(jg(e,32))^Tg(e)}function am(e){return String.fromCharCode(e)}function jTe(e){return e==null?null:e.message}function MTe(e,t,n){return e.apply(t,n)}function NTe(e,t){e[zmt].call(e,t)}function PTe(e,t){e[zmt].call(e,t)}function FTe(e,t){return xl(),!CT(t.d.i,e)}function ITe(e,t,n,r){vAe.call(this,e,t,n,r)}function LTe(){um.call(this),this.a=new Sc}function om(){this.n=new Sc,this.o=new Sc}function RTe(){this.b=new Sc,this.c=new to}function zTe(){this.a=new to,this.b=new to}function BTe(){this.a=new Pt,this.b=new Npe}function VTe(){this.b=new Ex,this.a=new Ex}function sm(){this.b=new Ao,this.a=new Ao}function HTe(){this.b=new eo,this.a=new eo}function UTe(){this.b=new wge,this.a=new gie}function cm(){this.a=new Bce,this.b=new hre}function lm(){this.a=new to,this.d=new to}function um(){this.n=new Yo,this.i=new Od}function dm(e){this.a=(Sw(e,sB),new aS(e))}function WTe(e){this.a=(Sw(e,sB),new aS(e))}function GTe(e){return e<100?null:new xc(e)}function KTe(e,t){return e.n.a=(sv(t),t+10)}function qTe(e,t){return e.n.a=(sv(t),t+10)}function JTe(e,t){return t==e||Jj(_F(t),e)}function YTe(e,t){return hv(e.a,t,``)==null}function XTe(e,t){return t.qi(e.a)}function fm(e,t){return e.a+=t.a,e.b+=t.b,e}function pm(e,t){return e.a-=t.a,e.b-=t.b,e}function ZTe(e){return Eo(e.j.c,0),e.a=-1,e}function QTe(e,t,n){return n=FI(e,t,11,n),n}function $Te(e,t,n){n!=null&&kKe(t,KA(e,n))}function eEe(e,t,n){n!=null&&AKe(t,KA(e,n))}function mm(e,t,n,r){Bg.call(this,e,t,n,r)}function tEe(e,t,n,r){Bg.call(this,e,t,n,r)}function nEe(e,t,n,r){tEe.call(this,e,t,n,r)}function rEe(e,t,n,r){Ug.call(this,e,t,n,r)}function iEe(e,t,n,r){Ug.call(this,e,t,n,r)}function aEe(e,t,n,r){Ug.call(this,e,t,n,r)}function oEe(e,t,n,r){iEe.call(this,e,t,n,r)}function sEe(e,t,n,r){iEe.call(this,e,t,n,r)}function hm(e,t,n,r){aEe.call(this,e,t,n,r)}function cEe(e,t,n,r){sEe.call(this,e,t,n,r)}function lEe(e,t,n,r){Bje.call(this,e,t,n,r)}function gm(e,t){js.call(this,NK+e+mK+t)}function uEe(e,t){return e.jk().wi().ri(e,t)}function dEe(e,t){return e.jk().wi().ti(e,t)}function fEe(e,t){return sv(e),Qu(e)===Qu(t)}function _m(e,t){return sv(e),Qu(e)===Qu(t)}function pEe(e,t){return e.b.Bd(new _ve(e,t))}function mEe(e,t){return e.b.Bd(new vve(e,t))}function hEe(e,t){return e.b.Bd(new yve(e,t))}function gEe(e,t){return e.e=H(e.d.Kb(t),159)}function _Ee(e,t,n){return e.lastIndexOf(t,n)}function vEe(e,t,n){return nO(e[t.a],e[n.a])}function yEe(e,t){return pE(t,(sz(),z$),e)}function bEe(e,t){return hf(t.a.d.p,e.a.d.p)}function xEe(e,t){return hf(e.a.d.p,t.a.d.p)}function SEe(e,t){return nO(e.c-e.s,t.c-t.s)}function CEe(e,t){return nO(e.b.e.a,t.b.e.a)}function wEe(e,t){return nO(e.c.e.a,t.c.e.a)}function TEe(e){return e.c?HS(e.c.a,e,0):-1}function vm(e){return e==u5||e==f5||e==d5}function EEe(e,t){this.c=e,l_.call(this,e,t)}function DEe(e,t,n){this.a=e,ZCe.call(this,t,n)}function ym(e){this.c=e,oxe.call(this,Xz,0)}function bm(e,t,n){this.c=t,this.b=n,this.a=e}function xm(e){th(),this.d=e,this.a=new jf}function OEe(e){Am(),this.a=(iy(),new tc(e))}function kEe(e,t){Nd(e.f)?ntt(e,t):kM(e,t)}function AEe(e,t){ake.call(this,e,e.length,t)}function jEe(e,t){$J||t&&(e.d=t)}function MEe(e,t){return V(t,15)&&nat(e.c,t)}function NEe(e,t,n){return H(e.c,71).Wk(t,n)}function PEe(e,t,n){return H(e.c,71).Xk(t,n)}function FEe(e,t,n){return Bwe(e,H(t,343),n)}function Sm(e,t,n){return Vwe(e,H(t,343),n)}function IEe(e,t,n){return p6e(e,H(t,343),n)}function LEe(e,t,n){return s8e(e,H(t,343),n)}function Cm(e,t){return t==null?null:CD(e.b,t)}function wm(e){return td(e)?(sv(e),e):e.ue()}function Tm(e){return!isNaN(e)&&!isFinite(e)}function Em(e){TSe(this),Qv(this),zw(this,e)}function Dm(e){qxe(this),uke(this.c,0,e.Pc())}function Om(e,t,n){this.a=e,this.b=t,this.c=n}function REe(e,t,n){this.a=e,this.b=t,this.c=n}function zEe(e,t,n){this.d=e,this.b=n,this.a=t}function BEe(e){this.a=e,el(),kT(Date.now())}function VEe(e){K_(e.a),OHe(e.c,e.b),e.b=null}function km(){km=D,_Ct=new se,vCt=new ce}function HEe(){HEe=D,xVt=dS($q,Oz,1,0,5,1)}function UEe(){UEe=D,tHt=dS($q,Oz,1,0,5,1)}function WEe(){WEe=D,nHt=dS($q,Oz,1,0,5,1)}function Am(){Am=D,new Ope((iy(),iy(),GJ))}function GEe(e){return NS(),fw((fUe(),ACt),e)}function KEe(e){return XE(),fw((pHe(),zCt),e)}function qEe(e){return aA(),fw(($ze(),XCt),e)}function JEe(e){return gC(),fw((eBe(),ewt),e)}function YEe(e){return YF(),fw((kJe(),gwt),e)}function XEe(e){return GC(),fw((dHe(),bwt),e)}function ZEe(e){return PS(),fw((uHe(),Swt),e)}function QEe(e){return nC(),fw((fHe(),Twt),e)}function $Ee(e){return gz(),fw((dxe(),Gwt),e)}function eDe(e){return RT(),fw((mUe(),Xwt),e)}function tDe(e){return _A(),fw((hUe(),Qwt),e)}function nDe(e){return gA(),fw((FS(),aTt),e)}function rDe(e){return vl(),fw((fRe(),oTt),e)}function iDe(e){return _C(),fw((tBe(),PTt),e)}function aDe(e){return tC(),fw((mHe(),bEt),e)}function oDe(e){return WM(),fw((AWe(),TEt),e)}function sDe(e){return ZT(),fw((_Ue(),FEt),e)}function jm(e){return Hk(),fw((gUe(),UEt),e)}function Mm(e,t){if(!e)throw R(new Ps(t))}function Nm(e){if(!e)throw R(new Fs(kz))}function cDe(e,t){if(e!=t)throw R(new So)}function lDe(e,t,n){this.a=e,this.b=t,this.c=n}function uDe(e,t,n){this.a=e,this.b=t,this.c=n}function dDe(e,t,n){this.a=e,this.b=t,this.c=n}function Pm(e,t,n){this.b=e,this.a=t,this.c=n}function fDe(e,t,n){this.b=e,this.c=t,this.a=n}function pDe(e,t,n){this.a=e,this.b=t,this.c=n}function Fm(e,t,n){this.e=t,this.b=e,this.d=n}function mDe(e,t,n){this.b=e,this.a=t,this.c=n}function hDe(e,t,n){return ol(),e.a.Yd(t,n),t}function gDe(e){var t=new Ue;return t.e=e,t}function _De(e){var t=new qpe;return t.b=e,t}function Im(){Im=D,NX=new ete,PX=new tte}function Lm(){Lm=D,JDt=new Ote,qDt=new kte}function Rm(){Rm=D,tOt=new Mne,nOt=new Nne}function vDe(e){return Tw(),fw((GVe(),hOt),e)}function yDe(e){return mz(),fw((fd(),VDt),e)}function bDe(e){return YT(),fw((IS(),KDt),e)}function xDe(e){return XT(),fw((vUe(),aOt),e)}function SDe(e){return mM(),fw((jWe(),uOt),e)}function CDe(e){return WF(),fw((Zqe(),COt),e)}function wDe(e){return PN(),fw((hGe(),wOt),e)}function TDe(e){return HVe(),fw((cBe(),DOt),e)}function EDe(e){return Cw(),fw((UVe(),OOt),e)}function DDe(e){return XGe(),fw((WVe(),RZ),e)}function ODe(e){return jk(),fw((MWe(),FOt),e)}function kDe(e){return vC(),fw((iBe(),ROt),e)}function ADe(e){return nN(),fw((vGe(),$Z),e)}function jDe(e){return UF(),fw((_Ye(),okt),e)}function MDe(e){return zT(),fw((qVe(),ckt),e)}function NDe(e){return rC(),fw((JVe(),_Q),e)}function PDe(e){return fx(),fw((rBe(),pkt),e)}function FDe(e){return $j(),fw((_Ge(),nkt),e)}function IDe(e){return hE(),fw((KVe(),VOt),e)}function LDe(e){return Q8e(),fw((gGe(),qZ),e)}function RDe(e){return LS(),fw((aBe(),JOt),e)}function zDe(e){return KO(),fw((PWe(),Nkt),e)}function BDe(e){return TF(),fw((EJe(),YMt),e)}function VDe(e){return mD(),fw((YVe(),ZMt),e)}function HDe(e){return wA(),fw((yUe(),eNt),e)}function UDe(e){return hA(),fw((NWe(),iNt),e)}function WDe(e){return yI(),fw((vYe(),I0),e)}function GDe(e){return Mk(),fw((bUe(),fNt),e)}function KDe(e){return iC(),fw((oBe(),hNt),e)}function qDe(e){return gw(),fw((QVe(),U0),e)}function JDe(e){return gT(),fw((XVe(),xNt),e)}function YDe(e){return RE(),fw((ZVe(),TNt),e)}function XDe(e){return YE(),fw(($Ve(),kNt),e)}function ZDe(e){return YGe(),fw((eHe(),PNt),e)}function zm(e){return QT(),fw((tHe(),LNt),e)}function QDe(e){return hw(),fw((lHe(),QNt),e)}function $De(e){return px(),fw((sBe(),rPt),e)}function Bm(e){return Ky(),fw((dBe(),u2),e)}function Vm(e){return qy(),fw((fBe(),p2),e)}function eOe(e){return sS(),fw((pBe(),wPt),e)}function tOe(e){return Gy(),fw((mBe(),APt),e)}function nOe(e){return yj(),fw((PUe(),MPt),e)}function rOe(e){return bI(),fw((pd(),GPt),e)}function iOe(e){return zE(),fw((nHe(),JPt),e)}function aOe(e){return qE(),fw((NUe(),BFt),e)}function oOe(e){return Tb(),fw((lBe(),WFt),e)}function sOe(e){return $Ke(),fw((uBe(),XFt),e)}function cOe(e){return SM(),fw((pC(),tIt),e)}function lOe(e){return JE(),fw((rHe(),p4),e)}function uOe(e){return AS(),fw((hBe(),aIt),e)}function dOe(e){return GA(),fw((MUe(),y4),e)}function fOe(e){return hT(),fw((iHe(),S4),e)}function pOe(e){return Sk(),fw((aHe(),YIt),e)}function mOe(e){return F0e(),fw((oHe(),eLt),e)}function hOe(e){return gO(),fw((sHe(),dLt),e)}function gOe(e){return Nx(),fw((gBe(),JLt),e)}function Hm(e){return tT(),fw((nBe(),oDt),e)}function _Oe(e){return sN(),fw((yGe(),YEt),e)}function vOe(e){return RS(),fw((cHe(),QLt),e)}function yOe(e){return BT(),fw((_Be(),nRt),e)}function bOe(e){return bF(),fw((FWe(),W4),e)}function xOe(e){return El(),fw((MRe(),oRt),e)}function SOe(e){return GD(),fw((gHe(),iRt),e)}function Um(e){return Dl(),fw((NRe(),cRt),e)}function Wm(e){return cS(),fw((vBe(),fRt),e)}function COe(e){return pN(),fw((mC(),e3),e)}function Gm(e){return Ol(),fw((PRe(),FRt),e)}function Km(e){return $T(),fw((yBe(),RRt),e)}function qm(e){return rA(),fw((hC(),qRt),e)}function wOe(e){return AN(),fw((Yqe(),I3),e)}function TOe(e){return TA(),fw((bGe(),K3),e)}function Jm(e){return lM(),fw((xGe(),c6),e)}function Ym(e){return WD(),fw((IWe(),A8),e)}function EOe(e){return KC(),fw((_He(),Pzt),e)}function DOe(e){return hO(),fw((FUe(),Izt),e)}function OOe(e){return a8e(),fw((SGe(),Hzt),e)}function kOe(e){return gD(),fw((hHe(),Yzt),e)}function AOe(e){return xj(),fw((IUe(),Xzt),e)}function jOe(e){return tF(),fw((OJe(),Zzt),e)}function Xm(e){return oA(),fw((LWe(),eBt),e)}function Zm(e){return _M(),fw((CGe(),nBt),e)}function Qm(e){return rP(),fw((wGe(),rBt),e)}function MOe(e){return WR(),fw((RWe(),iBt),e)}function $m(e){return xk(),fw((LUe(),uBt),e)}function NOe(e){return OI(),fw((DJe(),fBt),e)}function POe(e){return hD(),fw((vHe(),gBt),e)}function FOe(e,t){return sv(e),e+(sv(t),t)}function eh(e){return nh(),fw((bBe(),bBt),e)}function IOe(e){return qO(),fw((RUe(),EBt),e)}function LOe(e){return LE(),fw((zUe(),NBt),e)}function th(){th=D,tPt=(WR(),U5),e2=C5}function nh(){nh=D,_Bt=new Wh,vBt=new Lje}function ROe(e){return!e.e&&(e.e=new to),e.e}function rh(e,t){this.c=e,this.a=t,this.b=t-e}function zOe(e,t,n){this.a=e,this.b=t,this.c=n}function ih(e,t,n){this.a=e,this.b=t,this.c=n}function BOe(e,t,n){this.a=e,this.b=t,this.c=n}function VOe(e,t,n){this.a=e,this.b=t,this.c=n}function ah(e,t,n){this.a=e,this.b=t,this.c=n}function HOe(e,t,n){this.a=e,this.b=t,this.c=n}function oh(e,t,n){this.e=e,this.a=t,this.c=n}function UOe(e,t,n){sf(),hFe.call(this,e,t,n)}function sh(e,t,n){sf(),KMe.call(this,e,t,n)}function WOe(e,t,n){sf(),KMe.call(this,e,t,n)}function GOe(e,t,n){sf(),KMe.call(this,e,t,n)}function KOe(e,t,n){sf(),sh.call(this,e,t,n)}function qOe(e,t,n){sf(),sh.call(this,e,t,n)}function JOe(e,t,n){sf(),qOe.call(this,e,t,n)}function YOe(e,t,n){sf(),WOe.call(this,e,t,n)}function XOe(e,t,n){sf(),GOe.call(this,e,t,n)}function ch(e){vAe.call(this,e.d,e.c,e.a,e.b)}function lh(e){vAe.call(this,e.d,e.c,e.a,e.b)}function ZOe(e){this.d=e,vue(this),this.b=sje(e.d)}function QOe(e){return UP(),fw((Xqe(),fVt),e)}function uh(e,t){return E_(e),E_(t),new t_e(e,t)}function dh(e,t){return E_(e),E_(t),new kke(e,t)}function $Oe(e,t){return E_(e),E_(t),new Ake(e,t)}function eke(e,t){return E_(e),E_(t),new d_e(e,t)}function fh(e){return zp(e.b!=0),zC(e,e.a.a)}function tke(e){return zp(e.b!=0),zC(e,e.c.b)}function nke(e){return!e.c&&(e.c=new Yn),e.c}function ph(e){var t=new to;return sC(t,e),t}function rke(e){var t=new Ao;return sC(t,e),t}function ike(e){var t=new jo;return Mw(t,e),t}function mh(e){var t=new $c;return Mw(t,e),t}function H(e,t){return Xh(e==null||f0e(e,t)),e}function ake(e,t,n){vje.call(this,t,n),this.a=e}function oke(e,t){this.c=e,this.b=t,this.a=!1}function ske(){this.a=`;,;`,this.b=``,this.c=``}function hh(e,t,n){this.b=e,ixe.call(this,t,n)}function cke(e,t,n){this.c=e,Wl.call(this,t,n)}function lke(e,t,n){lu.call(this,e,t),this.b=n}function uke(e,t,n){MP(n,0,e,t,n.length,!1)}function gh(e,t,n,r,i){e.b=t,e.c=n,e.d=r,e.a=i}function dke(e,t,n,r,i){e.d=t,e.c=n,e.a=r,e.b=i}function fke(e,t){t&&(e.b=t,e.a=(tv(t),t.a))}function _h(e,t){if(!e)throw R(new Ps(t))}function vh(e,t){if(!e)throw R(new Fs(t))}function pke(e,t){if(!e)throw R(new Zme(t))}function mke(e,t){return wl(),hf(e.d.p,t.d.p)}function yh(e,t){return JC(),nO(e.e.b,t.e.b)}function hke(e,t){return JC(),nO(e.e.a,t.e.a)}function gke(e,t){return hf(Vke(e.d),Vke(t.d))}function bh(e,t){return t&&J_(e,t.d)?t:null}function xh(e,t){return t==(WR(),U5)?e.c:e.d}function Sh(e){return wT(Gje(Sd(e)?jT(e):e))}function _ke(e){return new ku(e.c+e.b,e.d+e.a)}function Ch(e){return e!=null&&!PO(e,S7,C7)}function wh(e,t){return(VZe(e)<<4|VZe(t))&xB}function vke(e,t,n,r,i){e.c=t,e.d=n,e.b=r,e.a=i}function Th(e){var t=e.b;e.b=e.c,e.c=t}function yke(e){var t,n=e.d;t=e.a,e.d=t,e.a=n}function bke(e,t){var n=e.c;return PKe(e,t),n}function xke(e,t){return e.g=t<0?-1:t,e}function Eh(e,t){return cGe(e),e.a*=t,e.b*=t,e}function Ske(e,t,n){eGe.call(this,t,n),this.d=e}function Dh(e,t,n){qbe.call(this,e,t),this.c=n}function Oh(e,t,n){qbe.call(this,e,t),this.c=n}function Cke(e){WEe(),Kn.call(this),this.ci(e)}function wke(){rS(),JMe.call(this,(Pl(),N7))}function Tke(e){return hz(),++M9,new ug(0,e)}function Eke(){Eke=D,jHt=(iy(),new Vi(Rxt))}function kh(){kh=D,new D0e((Cme(),aJ),(cs(),iJ))}function Dke(){Dke=D,AJ=dS(kJ,Gz,17,256,0,1)}function Oke(){this.b=z(Ip(sA((WI(),YTt))))}function Ah(e){this.b=e,this.a=Dg(this.b.a).Od()}function kke(e,t){this.b=e,this.a=t,Pr.call(this)}function Ake(e,t){this.a=e,this.b=t,Pr.call(this)}function jke(e,t,n){this.a=e,gd.call(this,t,n)}function Mke(e,t,n){this.a=e,gd.call(this,t,n)}function jh(e,t,n){xC(e,t,new D_(n))}function Nke(e,t,n){var r=e[t];return e[t]=n,r}function Mh(e){return uUe(e.slice(),e)}function Nh(e){var t=e.n;return e.a.b+t.d+t.a}function Pke(e){var t=e.n;return e.e.b+t.d+t.a}function Ph(e){var t=e.n;return e.e.a+t.b+t.c}function Fh(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function Ih(e,t){return Dx(e,t,e.c.b,e.c),!0}function Fke(e){return e.a?e.a:Iv(e)}function Ike(e){return ay(),qM(e)==ib(YM(e))}function Lke(e){return ay(),YM(e)==ib(qM(e))}function Lh(e,t){return Ij(e,new lu(t.a,t.b))}function Rke(e,t){return _v(),a2e(e,t),new lNe(e,t)}function zke(e,t){return e.c=t)throw R(new Go)}function Fg(e,t){return OD(e,(sv(t),new Xi(t)))}function Ig(e,t){return OD(e,(sv(t),new Zi(t)))}function Tje(e,t,n){return Fpt(e,H(t,12),H(n,12))}function Eje(e){return nT(),H(e,12).g.c.length!=0}function Dje(e){return nT(),H(e,12).e.c.length!=0}function Oje(e,t){return $w(),nO(t.a.o.a,e.a.o.a)}function kje(e,t){(t.Bb&UG)!=0&&!e.a.o&&(e.a.o=t)}function Aje(e,t){t.Ug(`General 'Rotator`,1),Adt(e)}function jje(e,t,n){t.qf(n,z(Ip(N_(e.b,n)))*e.a)}function Mje(e,t,n){return GF(),lT(e,t)&&lT(e,n)}function Lg(e){return rP(),!e.Hc(v5)&&!e.Hc(b5)}function Nje(e){return e.e?PVe(e.e):null}function Rg(e){return Sd(e)?``+e:Xit(e)}function Pje(e){for(var t=e;t.f;)t=t.f;return t}function Fje(e,t,n){return P_(t,0,uAe(t[0],n[0])),t}function zg(e,t,n,r){var i=e.i;i.i=t,i.a=n,i.b=r}function Bg(e,t,n,r){Tf.call(this,e,t,n),this.b=r}function Vg(e,t,n,r,i){QHe.call(this,e,t,n,r,i,-1)}function Hg(e,t,n,r,i){wS.call(this,e,t,n,r,i,-1)}function Ug(e,t,n,r){Dh.call(this,e,t,n),this.b=r}function Ije(e){kbe.call(this,e,!1),this.a=!1}function Lje(){cbe.call(this,`LOOKAHEAD_LAYOUT`,1)}function Rje(e){this.b=e,dp.call(this,e),xCe(this)}function zje(e){this.b=e,pp.call(this,e),SCe(this)}function Wg(e,t,n){this.a=e,mm.call(this,t,n,5,6)}function Bje(e,t,n,r){this.b=e,Tf.call(this,t,n,r)}function Vje(e,t){this.b=e,Zr.call(this,e.b),this.a=t}function Hje(e){this.a=T0e(e.a),this.b=new Dm(e.b)}function Uje(e,t){O_(),g_e.call(this,e,yD(new Hs(t)))}function Gg(e,t){return hz(),++M9,new GMe(e,t,0)}function Kg(e,t){return hz(),++M9,new GMe(6,e,t)}function qg(e,t){for(sv(t);e.Ob();)t.Cd(e.Pb())}function Jg(e,t){return $u(t)?TPe(e,t):!!hg(e.f,t)}function Yg(e,t){return t.Vh()?dD(e.b,H(t,54)):t}function Wje(e,t){return _m(e.substr(0,t.length),t)}function Xg(e){return new Mg(new Rf(e.a.length,e.a))}function Zg(e){return new ku(e.c+e.b/2,e.d+e.a/2)}function Gje(e){return gf(~e.l&RB,~e.m&RB,~e.h&zB)}function Kje(e){return typeof e===bz||typeof e===Sz}function Qg(e){e.f=new wd(e),e.i=new Hxe(e),++e.g}function qje(e){if(!e)throw R(new Co);return e.d}function $g(e){var t=xE(e);return zp(t!=null),t}function Jje(e){var t=pQe(e);return zp(t!=null),t}function e_(e,t){var n=e.a.gc();return yVe(t,n),n-t}function t_(e,t){return e.a.zc(t,e)==null}function n_(e,t){return e.a.zc(t,(sp(),SJ))==null}function Yje(e){return new ig(null,nMe(e,e.length))}function Xje(e,t,n){return rlt(e,H(t,42),H(n,176))}function r_(e,t,n){return Ow(e.a,t),Nke(e.b,t.g,n)}function i_(e,t,n){Pg(n,e.a.c.length),jx(e.a,n,t)}function a_(e,t,n,r){wXe(t,n,e.length),o_(e,t,n,r)}function o_(e,t,n,r){for(var i=t;i0?r.Math.log(e/t):-100}function eMe(e,t){return uD(e,t)<0?-1:+(uD(e,t)>0)}function h_(e,t){USe(e,V(t,160)?t:H(t,2036).Rl())}function tMe(e,t){if(e==null)throw R(new Is(t))}function nMe(e,t){return rGe(t,e.length),new Uh(e,t)}function rMe(e,t){return t?zw(e,t):!1}function iMe(){return Ss(),K(B(OSt,1),cB,549,0,[DSt])}function g_(e){return e.e==0?e:new c_(-e.e,e.d,e.a)}function aMe(e,t){return nO(e.c.c+e.c.b,t.c.c+t.c.b)}function __(e,t){Dx(e.d,t,e.b.b,e.b),++e.a,e.c=null}function oMe(e,t){return e.c?oMe(e.c,t):Cf(e.b,t),e}function sMe(e,t,n){var r=lC(e,t);return Ize(e,t,n),r}function cMe(e,t,n){for(var r=0;r=e.g}function P_(e,t,n){return Jwe(n==null||bst(e,n)),e[t]=n}function RMe(e,t){return Ob(t,e.length+1),e.substr(t)}function F_(e,t){for(sv(t);e.c=e?new al:RKe(e-1)}function $_(e){return!e.a&&e.c?e.c.b:e.a}function ev(e){return V(e,616)?e:new wFe(e)}function tv(e){e.c?tv(e.c):(aO(e),e.d=!0)}function nv(e){e.c?e.c.$e():(e.d=!0,Knt(e))}function $Me(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function eNe(e){return e.c.i.c==e.d.i.c}function tNe(e,t){var n=e.Ih(t);n>=0?e.ki(n):nP(e,t)}function rv(e,t){e.c<0||e.b.b0;)e=e<<1|e<0;return e}function _Ne(e,t){var n=new L_(e);return oo(t.c,n),n}function vNe(e,t){e.u.Hc((rP(),v5))&&lP(e,t),yHe(e,t)}function xv(e,t){return Qu(e)===Qu(t)||e!=null&&kD(e,t)}function Sv(e,t){return mg(e.a,t)?e.b[H(t,22).g]:null}function yNe(){return vl(),K(B(BY,1),cB,489,0,[zY])}function bNe(){return El(),K(B(Y4,1),cB,490,0,[aRt])}function xNe(){return Dl(),K(B(sRt,1),cB,558,0,[X4])}function SNe(){return Ol(),K(B(_3,1),cB,539,0,[g3])}function CNe(e){return!e.n&&(e.n=new Bg(g7,e,1,7)),e.n}function wNe(e){return!e.c&&(e.c=new Bg(v7,e,9,9)),e.c}function TNe(e){return!e.c&&(e.c=new hm(l7,e,5,8)),e.c}function ENe(e){return!e.b&&(e.b=new hm(l7,e,4,7)),e.b}function Cv(e){return e.j.c.length=0,INe(e.c),ZTe(e.a),e}function wv(e){return e.e==Oq&&mue(e,S1e(e.g,e.b)),e.e}function Tv(e){return e.f==Oq&&hue(e,A4e(e.g,e.b)),e.f}function Ev(e,t,n,r){return hJe(e,t,n,!1),ND(e,r),e}function DNe(e,t){this.b=e,l_.call(this,e,t),xCe(this)}function Dv(e,t){this.b=e,EEe.call(this,e,t),SCe(this)}function Ov(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function ONe(e,t){this.b=e,this.c=t,this.a=new Qc(this.b)}function kv(e,t){return Ob(t,e.length),e.charCodeAt(t)}function kNe(e,t){wQe(e,z(lw(t,`x`)),z(lw(t,`y`)))}function Av(e,t){wQe(e,z(lw(t,`x`)),z(lw(t,`y`)))}function jv(e,t){return aO(e),new ig(e,new OUe(t,e.a))}function Mv(e,t){return aO(e),new ig(e,new wVe(t,e.a))}function Nv(e,t){return aO(e),new Zwe(e,new SVe(t,e.a))}function ANe(e,t){return aO(e),new Qwe(e,new CVe(t,e.a))}function jNe(e,t){return new dy(H(E_(e),50),H(E_(t),50))}function MNe(e,t){return nO(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function NNe(e,t,n){n.a?tw(e,t.b-e.f/2):ew(e,t.a-e.g/2)}function Pv(e,t){return nO(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function PNe(e,t){return R_e(),nO((sv(e),e),(sv(t),t))}function FNe(e){return e!=null&&Kc(RVt,e.toLowerCase())}function INe(e){for(var t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function Fv(e){var t=e.b;return!t&&(e.b=t=new yle(e)),t}function Iv(e){return HKe(e)||null}function LNe(e,t){var n=e/t,r=Vy(n);return n>r&&++r,r}function RNe(e,t,n){var r=H(e.d.Kb(n),159);r&&r.Nb(t)}function zNe(e,t,n){elt(e.a,n),VJe(n),JP(e.b,n),vlt(t,n)}function Lv(e,t,n,r){this.a=e,this.c=t,this.b=n,this.d=r}function Rv(e,t,n,r){this.c=e,this.b=t,this.a=n,this.d=r}function zv(e,t,n,r){this.c=e,this.b=t,this.d=n,this.a=r}function Bv(e,t,n,r){this.c=e,this.d=t,this.b=n,this.a=r}function BNe(e,t,n,r){this.a=e,this.d=t,this.c=n,this.b=r}function Vv(e,t,n,r){this.a=e,this.e=t,this.d=n,this.c=r}function Hv(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function Uv(e,t,n){this.a=pmt,this.d=e,this.b=t,this.c=n}function Wv(e,t,n,r){Lc.call(this,e,t),this.a=n,this.b=r}function Gv(e,t){this.d=(sv(e),e),this.a=16449,this.c=t}function VNe(e){this.a=new to,this.e=dS(F9,Gz,53,e,0,2)}function HNe(e){e.Ug(`No crossing minimization`,1),e.Vg()}function UNe(){ys.call(this,`There is no more element.`)}function WNe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function GNe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function Kv(e,t,n,r){this.e=e,this.a=t,this.c=n,this.d=r}function KNe(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function qNe(e,t,n,r){sf(),TVe.call(this,t,n,r),this.a=e}function JNe(e,t,n,r){sf(),TVe.call(this,t,n,r),this.a=e}function YNe(e,t,n){var r=pft(e);return t.ti(n,r)}function qv(e){var t,n=(t=new ro,t);return UC(n,e),n}function Jv(e){var t,n=(t=new ro,t);return QM(n,e),n}function Yv(e,t){return dT(t,N_(e.f,t)),null}function XNe(e){return!e.b&&(e.b=new Bg(u7,e,12,3)),e.b}function ZNe(e){return Xh(e==null||Kje(e)&&e.Tm!==E),e}function Xv(e){return e.n&&(e.e!==dmt&&e.je(),e.j=null),e}function Zv(e){if(MO(e.d),e.d.d!=e.c)throw R(new So)}function QNe(e){return zp(e.b0&&zj(this)}function ePe(e,t){this.a=e,Xwe.call(this,e,H(e.d,15).fd(t))}function tPe(e,t){return nO(cg(e)*sg(e),cg(t)*sg(t))}function nPe(e,t){return nO(cg(e)*sg(e),cg(t)*sg(t))}function rPe(e){return xP(e)&&ks(Fp(eF(e,(sz(),n1))))}function iPe(e,t){return CP(e,H(q(t,(sz(),x1)),17),t)}function aPe(e,t){return H(q(e,(fz(),PQ)),15).Fc(t),t}function $v(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function ey(e,t,n,r){this.b=e,this.c=r,oxe.call(this,t,n)}function oPe(e,t,n){e.i=0,e.e=0,t!=n&&kE(e,t,n)}function sPe(e,t,n){e.i=0,e.e=0,t!=n&&NYe(e,t,n)}function cPe(e,t,n){return Cl(),zQe(H(N_(e.e,t),529),n)}function ty(e){return e.f||=new Fc(e,e.c)}function lPe(e,t){return SD(e.j,t.s,t.c)+SD(t.e,e.s,e.c)}function uPe(e,t){e.e&&!e.e.a&&(ppe(e.e,t),uPe(e.e,t))}function dPe(e,t){e.d&&!e.d.a&&(ppe(e.d,t),dPe(e.d,t))}function fPe(e,t){return-nO(cg(e)*sg(e),cg(t)*sg(t))}function pPe(e){return H(e.ld(),149).Pg()+`:`+OO(e.md())}function mPe(){iN(this,new ule),this.wb=(A_(),R7),wc()}function hPe(e){this.b=new to,qT(this.b,this.b),this.a=e}function ny(e,t){new $c,this.a=new $o,this.b=e,this.c=t}function ry(){ry=D,YJ=new ne,XJ=new ne,lCt=new re}function iy(){iy=D,GJ=new A,KJ=new M,qJ=new ee}function gPe(){gPe=D,WCt=new Le,KCt=new GAe,GCt=new Re}function ay(){ay=D,UY=new to,CTt=new eo,STt=new to}function oy(e,t){if(e==null)throw R(new Is(t));return e}function sy(e){return!e.a&&(e.a=new Bg(_7,e,10,11)),e.a}function cy(e){return!e.q&&(e.q=new Bg(M7,e,11,10)),e.q}function ly(e){return!e.s&&(e.s=new Bg(E7,e,21,17)),e.s}function _Pe(e){return E_(e),p2e(new Mg(Vf(e.a.Kc(),new f)))}function vPe(e,t){return ZE(e),ZE(t),Wme(H(e,22),H(t,22))}function uy(e,t,n){xC(e,t,new ri(wm(n)))}function yPe(e,t,n,r,i,a){wS.call(this,e,t,n,r,i,a?-2:-1)}function bPe(e,t,n,r){qbe.call(this,t,n),this.b=e,this.a=r}function dy(e,t){Ome.call(this,new bje(e)),this.a=e,this.b=t}function fy(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function xPe(e){Rm();var t=H(e.g,10);t.n.a=e.d.c+t.d.b}function py(){py=D;var e,t=!B$e();e=new x,fJ=t?new b:e}function my(e){return iy(),V(e,59)?new nc(e):new Jf(e)}function hy(e){return V(e,16)?new rg(H(e,16)):rke(e.Kc())}function SPe(e){return new CCe(e,e.e.Rd().gc()*e.c.Rd().gc())}function CPe(e){return new wCe(e,e.e.Rd().gc()*e.c.Rd().gc())}function wPe(e){return e&&e.hashCode?e.hashCode():rp(e)}function TPe(e,t){return t==null?!!hg(e.f,null):gg(e.i,t)}function EPe(e,t){var n=HSe(e.a,t);return n&&(t.d=null),n}function DPe(e,t,n){return e.f?e.f.ef(t,n):!1}function gy(e,t,n,r){P_(e.c[t.g],n.g,r),P_(e.c[n.g],t.g,r)}function OPe(e,t,n,r){P_(e.c[t.g],t.g,n),P_(e.b[t.g],t.g,r)}function kPe(e,t,n){return z(Ip(n.a))<=e&&z(Ip(n.b))>=t}function APe(e,t){this.g=e,this.d=K(B(CX,1),nU,10,0,[t])}function jPe(e){this.c=e,this.b=new jc(H(E_(new ze),50))}function MPe(e){this.c=e,this.b=new jc(H(E_(new zt),50))}function _y(e){this.b=e,this.a=new jc(H(E_(new St),50))}function NPe(){this.b=new Ao,this.d=new $c,this.e=new Ko}function vy(){this.c=new Sc,this.d=new Sc,this.e=new Sc}function yy(){this.a=new $o,this.b=(Sw(3,sB),new aS(3))}function by(e,t){this.e=e,this.a=$q,this.b=Iat(t),this.c=t}function PPe(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function FPe(e,t,n,r,i,a){this.a=e,xKe.call(this,t,n,r,i,a)}function IPe(e,t,n,r,i,a){this.a=e,xKe.call(this,t,n,r,i,a)}function xy(e,t,n,r,i,a,o){return new Vze(e.e,t,n,r,i,a,o)}function LPe(e,t,n){return n>=0&&_m(e.substr(n,t.length),t)}function RPe(e,t){return V(t,149)&&_m(e.b,H(t,149).Pg())}function zPe(e,t){return e.a?t.Gh().Kc():H(t.Gh(),71).Ii()}function BPe(e,t){var n=e.b.Qc(t);return Jze(n,e.b.gc()),n}function Sy(e,t){if(e==null)throw R(new Is(t));return e}function Cy(e){return e.u||=(Ix(e),new STe(e,e)),e.u}function VPe(e){this.a=(iy(),V(e,59)?new nc(e):new Jf(e))}function wy(e){return H(TT(e,16),29)||e.ii()}function Ty(e,t){var n=Ec(e.Rm);return t==null?n:n+`: `+t}function Ey(e,t,n){return hS(t,n,e.length),e.substr(t,n-t)}function HPe(e,t){um.call(this),mGe(this),this.a=e,this.c=t}function UPe(e){!e||Ty(e,e.ie())}function WPe(e){lhe(),r.setTimeout(function(){throw e},0)}function GPe(){return aA(),K(B(YCt,1),cB,436,0,[sY,JCt])}function KPe(){return gC(),K(B($Ct,1),cB,435,0,[ZCt,QCt])}function qPe(){return _C(),K(B(NTt,1),cB,432,0,[WY,GY])}function JPe(){return tT(),K(B(aDt,1),cB,517,0,[MX,iDt])}function Dy(){return fx(),K(B(fkt,1),cB,429,0,[ukt,dkt])}function Oy(){return vC(),K(B(LOt,1),cB,428,0,[VZ,IOt])}function YPe(){return HVe(),K(B(EOt,1),cB,431,0,[jZ,TOt])}function XPe(){return iC(),K(B(mNt,1),cB,430,0,[pNt,z0])}function ZPe(){return px(),K(B(nPt,1),cB,531,0,[i2,r2])}function QPe(){return $Ke(),K(B(YFt,1),cB,501,0,[s4,c4])}function ky(){return Ky(),K(B(l2,1),cB,523,0,[c2,s2])}function $Pe(){return qy(),K(B(dPt,1),cB,522,0,[d2,f2])}function eFe(){return sS(),K(B(CPt,1),cB,528,0,[b2,y2])}function tFe(){return LS(),K(B(qOt,1),cB,488,0,[KOt,JZ])}function nFe(){return Nx(),K(B(qLt,1),cB,491,0,[L4,KLt])}function rFe(){return BT(),K(B(tRt,1),cB,492,0,[$Lt,eRt])}function iFe(){return Tb(),K(B(UFt,1),cB,433,0,[HFt,VFt])}function aFe(){return AS(),K(B(iIt,1),cB,434,0,[nIt,rIt])}function oFe(){return Gy(),K(B(kPt,1),cB,465,0,[S2,C2])}function Ay(){return cS(),K(B(dRt,1),cB,438,0,[uRt,lRt])}function jy(){return $T(),K(B(LRt,1),cB,437,0,[v3,IRt])}function sFe(){return nh(),K(B(yBt,1),cB,347,0,[_Bt,vBt])}function My(e,t,n,r){return n>=0?e.Uh(t,n,r):e.Ch(null,n,r)}function Ny(e){return e.b.b==0?e.a.sf():fh(e.b)}function cFe(e){if(e.p!=5)throw R(new yo);return Tg(e.f)}function lFe(e){if(e.p!=5)throw R(new yo);return Tg(e.k)}function uFe(e){return Qu(e.a)===Qu((eT(),iHt))&&Ult(e),e.a}function dFe(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=og(e.c,e.b,e.a))}function fFe(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=og(e.c,e.b,e.a))}function pFe(e,t){Qle(this,new ku(e.a,e.b)),$le(this,mh(t))}function Py(){kme.call(this,new Zc(OC(12))),gCe(!0),this.a=2}function mFe(e,t,n){hz(),Qa.call(this,e),this.b=t,this.a=n}function hFe(e,t,n){sf(),Za.call(this,t),this.a=e,this.b=n}function gFe(e){var t=e.c.d.b;e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function _Fe(e){return e.b==0?null:(zp(e.b!=0),zC(e,e.a.a))}function Fy(e,t){return t==null?Zu(hg(e.f,null)):Hl(e.i,t)}function Iy(e,t,n,r,i){return new CN(e,(NS(),OCt),t,n,r,i)}function Ly(e,t){return Fze(t),WGe(e,dS(F9,jB,28,t,15,1),t)}function vFe(e,t){return oy(e,`set1`),oy(t,`set2`),new zc(e,t)}function yFe(e,t){return PSt[e.charCodeAt(0)]??e}function bFe(e,t){var n=t,r=new ue;return jR(e,n,r),r.d}function Ry(e,t,n,r){var i=new LTe;t.a[n.g]=i,r_(e.b,r,i)}function xFe(e,t){return fm(kwe(jGe(e.f,t)),e.f.d)}function zy(e){var t;gKe(e.a),tf(e.a),t=new ia(e.a),WO(t)}function By(e,t){pat(e,!0),RC(e.e.Rf(),new fDe(e,!0,t))}function SFe(e,t){return ay(),e==ib(qM(t))||e==ib(YM(t))}function CFe(e,t){return JC(),H(q(t,(YI(),n4)),17).a==e}function Vy(e){return Math.max(Math.min(e,Cz),-2147483648)|0}function wFe(e){this.a=H(E_(e),277),this.b=(iy(),new PCe(e))}function TFe(e,t,n){this.i=new to,this.b=e,this.g=t,this.a=n}function EFe(e,t,n){this.a=new to,this.e=e,this.f=t,this.c=n}function Hy(e,t,n){this.c=new to,this.e=e,this.f=t,this.b=n}function DFe(e){um.call(this),mGe(this),this.a=e,this.c=!0}function OFe(e){function t(){}return t.prototype=e||{},new t}function kFe(e){if(e.Ae())return null;var t=e.n;return Zq[t]}function Uy(e){return e.Db>>16==3?H(e.Cb,27):null}function Wy(e){return e.Db>>16==9?H(e.Cb,27):null}function AFe(e){return e.Db>>16==6?H(e.Cb,74):null}function Gy(){Gy=D,S2=new Iye(MV,0),C2=new Iye(NV,1)}function Ky(){Ky=D,c2=new xye(NV,0),s2=new xye(MV,1)}function qy(){qy=D,d2=new Sye(yht,0),f2=new Sye(`UP`,1)}function jFe(){jFe=D,kSt=nD((Ss(),K(B(OSt,1),cB,549,0,[DSt])))}function MFe(e){var t=new gge(OC(e.length));return bE(t,e),t}function NFe(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function PFe(e,t){return UJe(e,t)?($Ge(e),!0):!1}function Jy(e,t){if(t==null)throw R(new bo);return Z$e(e,t)}function Yy(e,t){var n=e.q.getHours();e.q.setDate(t),aL(e,n)}function FFe(e,t,n){var r=e.Ih(t);r>=0?e.bi(r,n):gF(e,t,n)}function IFe(e,t){var n=e.Ih(t);return n>=0?e.Wh(n):_P(e,t)}function LFe(e,t){var n;for(E_(t),n=e.a;n;n=n.c)t.Yd(n.g,n.i)}function Xy(e,t,n){e.b=new jw(TYe(e,t,n).c.length)}function Zy(e,t,n){ZFe(),e&&hv(_Vt,e,t),e&&hv(gVt,e,n)}function RFe(e,t){return Lm(),sp(),H(t.a,17).a0}function eb(e){var t=e.d;return t=e.bj(e.f),_S(e,t),t.Ob()}function tb(e,t){var n=new mAe(t);return m8e(n,e),new Dm(n)}function BFe(e){if(e.p!=0)throw R(new yo);return rd(e.f,0)}function VFe(e){if(e.p!=0)throw R(new yo);return rd(e.k,0)}function nb(e){return e.Db>>16==7?H(e.Cb,241):null}function rb(e){return e.Db>>16==6?H(e.Cb,241):null}function HFe(e){return e.Db>>16==7?H(e.Cb,167):null}function ib(e){return e.Db>>16==11?H(e.Cb,27):null}function ab(e){return e.Db>>16==17?H(e.Cb,29):null}function UFe(e){return e.Db>>16==3?H(e.Cb,155):null}function WFe(e){var t;return aO(e),t=new Ao,jv(e,new Fue(t))}function GFe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.ve(t))}function KFe(e,t){var n=e.q.getHours();e.q.setMonth(t),aL(e,n)}function qFe(e,t){pCe(this),this.f=t,this.g=e,Xv(this),this.je()}function JFe(e,t){this.a=e,this.c=vf(this.a),this.b=new PPe(t)}function YFe(e,t,n){this.a=t,this.c=e,this.b=(E_(n),new Dm(n))}function ob(e,t,n){this.a=t,this.c=e,this.b=(E_(n),new Dm(n))}function sb(e){this.a=e,this.b=dS($Nt,Gz,2043,e.e.length,0,2)}function XFe(){this.a=new Cd,this.e=new Ao,this.g=0,this.i=0}function ZFe(){ZFe=D,_Vt=new eo,gVt=new eo,Yu(fCt,new Hoe)}function QFe(){QFe=D,RNt=Cg(new mv,(WM(),uX),(mz(),tZ))}function $Fe(){$Fe=D,zNt=Cg(new mv,(WM(),uX),(mz(),tZ))}function eIe(){eIe=D,Y0=Cg(new mv,(WM(),uX),(mz(),tZ))}function cb(){cb=D,iPt=Jh(new mv,(WM(),uX),(mz(),BX))}function lb(){lb=D,sPt=Jh(new mv,(WM(),uX),(mz(),BX))}function tIe(){tIe=D,uPt=Jh(new mv,(WM(),uX),(mz(),BX))}function nIe(){nIe=D,m2=Jh(new mv,(WM(),uX),(mz(),BX))}function ub(e,t,n,r,i,a){return new XS(e.e,t,e.Lj(),n,r,i,a)}function db(e,t,n){return t==null?UN(e.f,null,n):oO(e.i,t,n)}function fb(e,t){e.c&&BS(e.c.g,e),e.c=t,e.c&&Cf(e.c.g,e)}function pb(e,t){e.c&&BS(e.c.a,e),e.c=t,e.c&&Cf(e.c.a,e)}function mb(e,t){e.i&&BS(e.i.j,e),e.i=t,e.i&&Cf(e.i.j,e)}function hb(e,t){e.d&&BS(e.d.e,e),e.d=t,e.d&&Cf(e.d.e,e)}function rIe(e,t){e.a&&BS(e.a.k,e),e.a=t,e.a&&Cf(e.a.k,e)}function iIe(e,t){e.b&&BS(e.b.f,e),e.b=t,e.b&&Cf(e.b.f,e)}function aIe(e,t){VMe(e,e.b,e.c),H(e.b.b,68),t&&H(t.b,68).b}function oIe(e,t){return nO(H(e.c,65).c.e.b,H(t.c,65).c.e.b)}function sIe(e,t){return nO(H(e.c,65).c.e.a,H(t.c,65).c.e.a)}function cIe(e){return MXe(),sp(),H(e.a,86).d.e!=0}function lIe(e,t){V(e.Cb,184)&&(H(e.Cb,184).tb=null),Pw(e,t)}function uIe(e,t){V(e.Cb,90)&&ZN(Ix(H(e.Cb,90)),4),Pw(e,t)}function dIe(e,t){EQe(e,t),V(e.Cb,90)&&ZN(Ix(H(e.Cb,90)),2)}function fIe(e,t){t.c!=null&&R_(e,new D_(t.c))}function pIe(e){var t,n=(wc(),t=new ro,t);return UC(n,e),n}function mIe(e){var t,n=(wc(),t=new ro,t);return UC(n,e),n}function gb(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function hIe(e,t,n){return Cf(e.a,(_v(),a2e(t,n),new Ic(t,n))),e}function _b(e,t){return Rl(),aWe(t)?new Gh(t,e):new Xu(t,e)}function vb(e){return uI(),uD(e,0)>=0?pk(e):g_(pk(VS(e)))}function gIe(e){var t=H(Mh(e.b),9);return new Om(e.a,t,e.c)}function _Ie(e,t){var n=H(CD(ty(e.a),t),16);return n?n.gc():0}function vIe(e,t,n){var r;BZe(t,n,e.c.length),r=n-t,Nge(e.c,t,r)}function yb(e,t,n){BZe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function bb(e){this.c=new $c,this.b=e.b,this.d=e.c,this.a=e.a}function yIe(e){this.a=r.Math.cos(e),this.b=r.Math.sin(e)}function xb(e,t,n,r){this.c=e,this.d=r,rIe(this,t),iIe(this,n)}function bIe(e,t){Dme.call(this,new Zc(OC(e))),Sw(t,tmt),this.a=t}function xIe(e,t,n){return new CN(e,(NS(),DCt),null,!1,t,n)}function SIe(e,t,n){return new CN(e,(NS(),kCt),t,n,null,!1)}function CIe(){return XE(),K(B(rY,1),cB,108,0,[RCt,tY,nY])}function Sb(){return nC(),K(B(wwt,1),cB,472,0,[SY,xY,bY])}function wIe(){return PS(),K(B(xwt,1),cB,471,0,[vY,_Y,yY])}function Cb(){return GC(),K(B(mY,1),cB,237,0,[dY,fY,pY])}function TIe(){return tC(),K(B(yEt,1),cB,391,0,[aX,_Et,vEt])}function EIe(){return Tw(),K(B(mOt,1),cB,372,0,[bZ,yZ,vZ])}function DIe(){return Cw(),K(B(FZ,1),cB,322,0,[NZ,MZ,PZ])}function OIe(){return XGe(),K(B(AOt,1),cB,351,0,[kOt,LZ,IZ])}function kIe(){return hE(),K(B(BOt,1),cB,460,0,[zOt,HZ,UZ])}function AIe(){return zT(),K(B(pQ,1),cB,299,0,[fQ,skt,dQ])}function jIe(){return rC(),K(B(lkt,1),cB,311,0,[hQ,gQ,mQ])}function MIe(){return mD(),K(B(XMt,1),cB,390,0,[b0,x0,S0])}function NIe(){return gw(),K(B(gNt,1),cB,463,0,[H0,B0,V0])}function PIe(){return gT(),K(B(bNt,1),cB,387,0,[_Nt,vNt,yNt])}function FIe(){return RE(),K(B(wNt,1),cB,349,0,[CNt,SNt,W0])}function IIe(){return YE(),K(B(ONt,1),cB,350,0,[ENt,DNt,G0])}function LIe(){return YGe(),K(B(NNt,1),cB,352,0,[MNt,ANt,jNt])}function RIe(){return QT(),K(B(INt,1),cB,388,0,[FNt,q0,K0])}function zIe(){return hw(),K(B(ZNt,1),cB,464,0,[Z0,Q0,$0])}function wb(e){return TE(K(B(R3,1),Gz,8,0,[e.i.n,e.n,e.a]))}function BIe(){return zE(),K(B(qPt,1),cB,392,0,[KPt,j2,A2])}function VIe(){VIe=D,GFt=Cg(new mv,(yj(),E2),(bI(),FPt))}function Tb(){Tb=D,HFt=new Bye(`DFS`,0),VFt=new Bye(`BFS`,1)}function HIe(e,t,n){var r=new _n;r.b=t,r.a=n,++t.b,Cf(e.d,r)}function UIe(e,t,n){var r=new Td(n.d);fm(r,e),wQe(t,r.a,r.b)}function WIe(e,t){sCe(e,Tg(Nb(Ag(t,24),cV)),Tg(Nb(t,cV)))}function Eb(e,t){if(e<0||e>t)throw R(new js(Zmt+e+Qmt+t))}function Db(e,t){if(e<0||e>=t)throw R(new js(Zmt+e+Qmt+t))}function Ob(e,t){if(e<0||e>=t)throw R(new uhe(Zmt+e+Qmt+t))}function kb(e,t){this.b=(sv(e),e),this.a=(t&JB)==0?t|64|Kz:t}function GIe(e){var t;return aO(e),t=(ry(),ry(),XJ),PC(e,t)}function KIe(e,t,n){var r=wL(e,t,!1);return r.b<=t&&r.a<=n}function qIe(){return RS(),K(B(ZLt,1),cB,439,0,[R4,XLt,YLt])}function JIe(){return gO(),K(B(uLt,1),cB,394,0,[cLt,lLt,sLt])}function YIe(){return Sk(),K(B(JIt,1),cB,445,0,[C4,KIt,qIt])}function XIe(){return F0e(),K(B($It,1),cB,456,0,[XIt,QIt,ZIt])}function ZIe(){return JE(),K(B(sIt,1),cB,393,0,[d4,f4,oIt])}function Ab(){return hT(),K(B(GIt,1),cB,300,0,[x4,WIt,b4])}function QIe(){return gD(),K(B(Jzt,1),cB,346,0,[U8,H8,W8])}function $Ie(){return GD(),K(B(J4,1),cB,444,0,[G4,K4,q4])}function eLe(){return KC(),K(B(Nzt,1),cB,278,0,[j8,M8,N8])}function tLe(){return hD(),K(B(hBt,1),cB,280,0,[pBt,a7,mBt])}function jb(e){return E_(e),V(e,16)?new Dm(H(e,16)):ph(e.Kc())}function Mb(e,t){return e&&e.equals?e.equals(t):Qu(e)===Qu(t)}function Nb(e,t){return wT(fje(Sd(e)?jT(e):e,Sd(t)?jT(t):t))}function Pb(e,t){return wT(pje(Sd(e)?jT(e):e,Sd(t)?jT(t):t))}function nLe(e,t){return wT(mje(Sd(e)?jT(e):e,Sd(t)?jT(t):t))}function rLe(e,t){var n=(sv(e),e).g;return qwe(!!n),sv(t),n(t)}function iLe(e,t){var n,r=e_(e,t);return n=e.a.fd(r),new Rc(e,n)}function Fb(e){return e.Db>>16==6?H(het(e),241):null}function aLe(e){if(e.p!=2)throw R(new yo);return Tg(e.f)&xB}function oLe(e){if(e.p!=2)throw R(new yo);return Tg(e.k)&xB}function W(e){return zp(e.ar)}function SLe(e,t){var n=WUe(t);return H(N_(e.c,n),17).a}function CLe(e,t,n){var r=e.d[t.p];e.d[t.p]=e.d[n.p],e.d[n.p]=r}function wLe(e,t,n){var r;e.n&&t&&n&&(r=new koe,Cf(e.e,r))}function TLe(e,t){if(t_(e.a,t),t.d)throw R(new ys(tht));t.d=e}function ELe(e,t){this.a=new to,this.d=new to,this.f=e,this.c=t}function DLe(){this.c=new zSe,this.a=new kVe,this.b=new Ro,z_e()}function zb(){eE(),this.b=new eo,this.a=new eo,this.c=new to}function OLe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function kLe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function ALe(e,t,n,r,i,a){FGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function jLe(e,t,n,r,i,a){IGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function MLe(e,t,n,r,i,a){XBe.call(this,e,t,n,r,i),a&&(this.o=-2)}function NLe(e,t,n,r,i,a){zGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function PLe(e,t,n,r,i,a){ZBe.call(this,e,t,n,r,i),a&&(this.o=-2)}function FLe(e,t,n,r,i,a){LGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function ILe(e,t,n,r,i,a){RGe.call(this,e,t,n,r,i),a&&(this.o=-2)}function LLe(e,t,n,r,i,a){QBe.call(this,e,t,n,r,i),a&&(this.o=-2)}function RLe(e,t,n,r){Za.call(this,n),this.b=e,this.c=t,this.d=r}function zLe(e,t){this.f=e,this.a=(rS(),THt),this.c=THt,this.b=t}function BLe(e,t){this.g=e,this.d=(rS(),EHt),this.a=EHt,this.b=t}function VLe(e,t){!e.c&&(e.c=new bT(e,0)),WL(e.c,(bR(),u9),t)}function HLe(e,t){return _tt(e,t,V(t,102)&&(H(t,19).Bb&XB)!=0)}function ULe(e,t){return eMe(kT(e.q.getTime()),kT(t.q.getTime()))}function WLe(e){return Yh(e.e.Rd().gc()*e.c.Rd().gc(),16,new Jr(e))}function GLe(e){return!!e.u&&xx(e.u.a).i!=0&&!(e.n&&Q0e(e.n))}function KLe(e){return!!e.a&&GS(e.a.a).i!=0&&!(e.b&&$0e(e.b))}function qLe(e,t){return t==0?!!e.o&&e.o.f!=0:Y1e(e,t)}function JLe(e,t,n){var r=H(e.Zb().xc(t),16);return!!r&&r.Hc(n)}function YLe(e,t,n){var r=H(e.Zb().xc(t),16);return!!r&&r.Mc(n)}function XLe(e,t){var n=1-t;return e.a[n]=kw(e.a[n],n),kw(e,t)}function ZLe(e,t){var n,r=Nb(e,$B);return n=kg(t,32),Pb(n,r)}function QLe(e,t,n){f4e(new YFe((E_(e),new Dm(e)),t,n))}function Bb(e,t,n){pj(new ob((E_(e),new Dm(e)),t,n))}function Vb(e,t,n,r,i,a){return hJe(e,t,n,a),WZe(e,r),FD(e,i),e}function $Le(e,t,n,r){return e.a+=``+Ey(t==null?Az:OO(t),n,r),e}function Hb(e,t){this.a=e,Wi.call(this,e),Eb(t,e.gc()),this.b=t}function eRe(e){this.a=dS($q,Oz,1,uE(r.Math.max(8,e))<<1,5,1)}function Ub(e){return H(Jk(e,dS(CX,nU,10,e.c.length,0,1)),199)}function Wb(e){return H(Jk(e,dS(SX,$ht,18,e.c.length,0,1)),483)}function tRe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(``+e.e):e.c}function Gb(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function nRe(e){return zp(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function Kb(e,t,n){e.a=t,e.c=n,e.b.a.$b(),Qv(e.d),Eo(e.e.a.c,0)}function rRe(e,t){var n;e.e=new Sme,n=LF(t),ff(n,e.c),Iit(e,n,0)}function qb(e,t,n,r){var i=new Yae;i.a=t,i.b=n,i.c=r,Ih(e.a,i)}function Jb(e,t,n,r){var i=new Yae;i.a=t,i.b=n,i.c=r,Ih(e.b,i)}function iRe(e,t,n){if(e<0||tn)throw R(new js(A5e(e,t,n)))}function Yb(e,t){if(e<0||e>=t)throw R(new js(j7e(e,t)));return e}function aRe(e){if(!(`stack`in e))try{throw e}catch{}return e}function Xb(e){return Cl(),V(e.g,10)?H(e.g,10):null}function oRe(e){return!Fv(e).dc()&&(df(e,new g),!0)}function Zb(e){var t;return Sd(e)?(t=e,t==-0?0:t):QUe(e)}function sRe(e,t){return V(t,44)?HA(e.a,H(t,44)):!1}function cRe(e,t){return V(t,44)?HA(e.a,H(t,44)):!1}function lRe(e,t){return V(t,44)?HA(e.a,H(t,44)):!1}function Qb(e){var t;return tv(e),t=new ie,Nc(e.a,new Mue(t)),t}function $b(){var e,t=(n=(e=new ro,e),n),n;return Cf(yHt,t),t}function ex(e){var t;return tv(e),t=new ae,Nc(e.a,new Nue(t)),t}function uRe(e,t){return e.a<=e.b&&(t.Dd(e.a++),!0)}function dRe(e){Kw.call(this,e,(NS(),ZJ),null,!1,null,!1)}function fRe(){fRe=D,oTt=nD((vl(),K(B(BY,1),cB,489,0,[zY])))}function tx(){tx=D,GNt=hNe(bD(1),bD(4)),X0=hNe(bD(1),bD(2))}function pRe(e,t){return new ih(t,wp(vf(t.e),e,e),(sp(),!0))}function nx(e){return new aS((Sw(e,lmt),DC(lO(lO(5,e),e/10|0))))}function mRe(e){return Yh(e.e.Rd().gc()*e.c.Rd().gc(),273,new qr(e))}function hRe(e){return H(Jk(e,dS(tDt,egt,12,e.c.length,0,1)),2042)}function gRe(e){return lb(),!Fx(e)&&!(!Fx(e)&&e.c.i.c==e.d.i.c)}function _Re(e,t){return qC(),H(q(t,(YI(),$2)),17).a>=e.gc()}function rx(e,t){qft(t,e),Th(e.d),Th(H(q(e,(sz(),d1)),214))}function vRe(e,t){Jft(t,e),yke(e.d),yke(H(q(e,(sz(),d1)),214))}function yRe(e,t,n){e.d&&BS(e.d.e,e),e.d=t,e.d&&yg(e.d.e,n,e)}function bRe(e,t,n){return n.f.c.length>0?Xje(e.a,t,n):Xje(e.b,t,n)}function xRe(e,t,n){var r=k1e();try{return MTe(e,t,n)}finally{Zze(r)}}function ix(e,t){var n=Jy(e,t),r=null;return n&&(r=n.pe()),r}function ax(e,t){var n=Jy(e,t),r=null;return n&&(r=n.se()),r}function ox(e,t){var n=lC(e,t),r=null;return n&&(r=n.se()),r}function sx(e,t){var n=Jy(e,t),r=null;return n&&(r=R5e(n)),r}function SRe(e,t,n){var r=Nk(n);return lot(e.g,r,t),lot(e.i,t,n),t}function CRe(e,t,n){this.d=new wde(this),this.e=e,this.i=t,this.f=n}function wRe(e,t,n,r){this.e=null,this.c=e,this.d=t,this.a=n,this.b=r}function TRe(e,t,n,r){ESe(this),this.c=e,this.e=t,this.f=n,this.b=r}function ERe(e,t,n,r){this.d=e,this.n=t,this.g=n,this.o=r,this.p=-1}function DRe(e,t,n,r){return V(n,59)?new $Ce(e,t,n,r):new Sje(e,t,n,r)}function cx(e){return V(e,16)?H(e,16).dc():!e.Kc().Ob()}function ORe(e){if(e.e.g!=e.b)throw R(new So);return!!e.c&&e.d>0}function lx(e){return zp(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function kRe(e,t){sv(t),P_(e.a,e.c,t),e.c=e.c+1&e.a.length-1,Q2e(e)}function ux(e,t){sv(t),e.b=e.b-1&e.a.length-1,P_(e.a,e.b,t),Q2e(e)}function ARe(e){var t=e.Gh();this.a=V(t,71)?H(t,71).Ii():t.Kc()}function jRe(e){return new kb(fGe(H(e.a.md(),16).gc(),e.a.ld()),16)}function MRe(){MRe=D,oRt=nD((El(),K(B(Y4,1),cB,490,0,[aRt])))}function NRe(){NRe=D,cRt=nD((Dl(),K(B(sRt,1),cB,558,0,[X4])))}function PRe(){PRe=D,FRt=nD((Ol(),K(B(_3,1),cB,539,0,[g3])))}function FRe(){return Hk(),K(B(bX,1),cB,389,0,[yX,HEt,_X,vX])}function IRe(){return NS(),K(B(QJ,1),cB,304,0,[ZJ,DCt,OCt,kCt])}function LRe(){return _A(),K(B(Zwt,1),cB,332,0,[jY,AY,MY,NY])}function RRe(){return gA(),K(B(iTt,1),cB,406,0,[IY,rTt,LY,RY])}function zRe(){return RT(),K(B(Ywt,1),cB,417,0,[kY,OY,qwt,Jwt])}function BRe(){return ZT(),K(B(PEt,1),cB,416,0,[fX,hX,pX,mX])}function VRe(){return XT(),K(B(iOt,1),cB,421,0,[fZ,pZ,mZ,rOt])}function HRe(){return YT(),K(B(GDt,1),cB,371,0,[lZ,sZ,cZ,oZ])}function URe(){return wA(),K(B($Mt,1),cB,203,0,[T0,QMt,w0,C0])}function WRe(){return Mk(),K(B(dNt,1),cB,284,0,[R0,L0,lNt,uNt])}function GRe(e){var t;return e.j==(WR(),V5)&&(t=aet(e),tp(t,C5))}function KRe(e,t){var n=t.a;fb(n,t.c.d),hb(n,t.d.d),uT(n.a,e.n)}function qRe(e,t){var n=H(cC(e.b,t),67);return!n&&(n=new $c),n}function dx(e){return Cl(),V(e.g,154)?H(e.g,154):null}function JRe(e){e.a=null,e.e=null,Eo(e.b.c,0),Eo(e.f.c,0),e.c=null}function fx(){fx=D,ukt=new iye(kV,0),dkt=new iye(`TOP_LEFT`,1)}function px(){px=D,i2=new _ye(`UPPER`,0),r2=new _ye(`LOWER`,1)}function YRe(e,t){return xf(new ku(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function XRe(e,t){return H(Xf(Fg(H(Wx(e.k,t),15).Oc(),CZ)),113)}function ZRe(e,t){return H(Xf(Ig(H(Wx(e.k,t),15).Oc(),CZ)),113)}function QRe(){return yj(),K(B(jPt,1),cB,405,0,[w2,T2,E2,D2])}function $Re(){return qE(),K(B(zFt,1),cB,353,0,[RFt,i4,a4,r4])}function eze(){return GA(),K(B(UIt,1),cB,354,0,[v4,VIt,HIt,BIt])}function tze(){return xk(),K(B(Y5,1),cB,386,0,[q5,J5,K5,G5])}function nze(){return xj(),K(B(Y8,1),cB,291,0,[J8,G8,K8,q8])}function rze(){return hO(),K(B(Fzt,1),cB,223,0,[L8,F8,P8,I8])}function ize(){return qO(),K(B(TBt,1),cB,320,0,[wBt,xBt,CBt,SBt])}function aze(){return LE(),K(B(MBt,1),cB,415,0,[kBt,ABt,OBt,jBt])}function oze(e){return ZFe(),Jg(_Vt,e)?H(N_(_Vt,e),341).Qg():null}function mx(e,t,n){return t<0?_P(e,n):H(n,69).wk().Bk(e,e.hi(),t)}function sze(e,t,n){var r=Nk(n);return lot(e.j,r,t),hv(e.k,t,n),t}function cze(e,t,n){var r=Nk(n);return lot(e.d,r,t),hv(e.e,t,n),t}function lze(e){var t=(Cc(),n=new Noe,n),n;return e&&ynt(t,e),t}function uze(e){var t=e.aj(e.i);return e.i>0&&qI(e.g,0,t,0,e.i),t}function dze(e,t){for(var n=e.j.c.length;n>24}function hze(e){if(e.p!=1)throw R(new yo);return Tg(e.k)<<24>>24}function gze(e){if(e.p!=7)throw R(new yo);return Tg(e.k)<<16>>16}function _ze(e){if(e.p!=7)throw R(new yo);return Tg(e.f)<<16>>16}function hx(e,t){return t.e==0||e.e==0?BJ:(KF(),rrt(e,t))}function vze(e,t){return Qu(t)===Qu(e)?`(this Map)`:t==null?Az:OO(t)}function yze(e,t,n){return gje(Ip(Zu(hg(e.f,t))),Ip(Zu(hg(e.f,n))))}function bze(e,t,n){var r=H(N_(e.g,n),60);Cf(e.a.c,new qu(t,r))}function xze(e,t,n){e.i=0,e.e=0,t!=n&&(NYe(e,t,n),kE(e,t,n))}function Sze(e,t,n,r,i){Cf(t,_7e(i,Rtt(i,n,r))),I8e(e,i,t)}function Cze(e,t,n,r,i){this.i=e,this.a=t,this.e=n,this.j=r,this.f=i}function gx(e,t){vy.call(this),this.a=e,this.b=t,Cf(this.a.b,this)}function wze(e){this.b=new eo,this.c=new eo,this.d=new eo,this.a=e}function Tze(e,t){var n=new $s;return e.Gd(n),n.a+=`..`,t.Hd(n),n.a}function Eze(e,t){for(var n=t;n;)Cp(e,n.i,n.j),n=ib(n);return e}function Dze(e,t,n){var r=Nk(n);return hv(e.b,r,t),hv(e.c,t,n),t}function _x(e){for(var t=0;e.Ob();)e.Pb(),t=lO(t,1);return DC(t)}function vx(e,t){Rl();var n=H(e,69).vk();return a5e(n,t),n.xl(t)}function Oze(e,t,n){if(n){var r=n.oe();e.a[t]=r(n)}else delete e.a[t]}function kze(e,t){var n=e.q.getHours();e.q.setFullYear(t+AB),aL(e,n)}function Aze(e,t){return H(t==null?Zu(hg(e.f,null)):Hl(e.i,t),288)}function jze(e,t){return e==(sN(),OX)&&t==OX?4:e==OX||t==OX?8:32}function yx(e,t,n){return QI(e,t,n,V(t,102)&&(H(t,19).Bb&XB)!=0)}function Mze(e,t,n){return cL(e,t,n,V(t,102)&&(H(t,19).Bb&XB)!=0)}function Nze(e,t,n){return Ett(e,t,n,V(t,102)&&(H(t,19).Bb&XB)!=0)}function Pze(e){e.b!=e.c&&(e.a=dS($q,Oz,1,8,5,1),e.b=0,e.c=0)}function bx(e){return zp(e.a=0&&e.a[n]===t[n];n--);return n<0}function kx(e){var t;return e?new mAe(e):(t=new Cd,Mw(t,e),t)}function Xze(e,t){var n,r=!1;do n=hYe(e,t),r|=n;while(n);return r}function Zze(e){e&&wWe((Cs(),ISt)),--uJ,e&&dJ!=-1&&(vxe(dJ),dJ=-1)}function Qze(e){CM(),sCe(this,Tg(Nb(Ag(e,24),cV)),Tg(Nb(e,cV)))}function $ze(){$ze=D,XCt=nD((aA(),K(B(YCt,1),cB,436,0,[sY,JCt])))}function eBe(){eBe=D,ewt=nD((gC(),K(B($Ct,1),cB,435,0,[ZCt,QCt])))}function tBe(){tBe=D,PTt=nD((_C(),K(B(NTt,1),cB,432,0,[WY,GY])))}function nBe(){nBe=D,oDt=nD((tT(),K(B(aDt,1),cB,517,0,[MX,iDt])))}function rBe(){rBe=D,pkt=nD((fx(),K(B(fkt,1),cB,429,0,[ukt,dkt])))}function iBe(){iBe=D,ROt=nD((vC(),K(B(LOt,1),cB,428,0,[VZ,IOt])))}function aBe(){aBe=D,JOt=nD((LS(),K(B(qOt,1),cB,488,0,[KOt,JZ])))}function oBe(){oBe=D,hNt=nD((iC(),K(B(mNt,1),cB,430,0,[pNt,z0])))}function sBe(){sBe=D,rPt=nD((px(),K(B(nPt,1),cB,531,0,[i2,r2])))}function cBe(){cBe=D,DOt=nD((HVe(),K(B(EOt,1),cB,431,0,[jZ,TOt])))}function lBe(){lBe=D,WFt=nD((Tb(),K(B(UFt,1),cB,433,0,[HFt,VFt])))}function uBe(){uBe=D,XFt=nD(($Ke(),K(B(YFt,1),cB,501,0,[s4,c4])))}function dBe(){dBe=D,u2=nD((Ky(),K(B(l2,1),cB,523,0,[c2,s2])))}function fBe(){fBe=D,p2=nD((qy(),K(B(dPt,1),cB,522,0,[d2,f2])))}function pBe(){pBe=D,wPt=nD((sS(),K(B(CPt,1),cB,528,0,[b2,y2])))}function mBe(){mBe=D,APt=nD((Gy(),K(B(kPt,1),cB,465,0,[S2,C2])))}function hBe(){hBe=D,aIt=nD((AS(),K(B(iIt,1),cB,434,0,[nIt,rIt])))}function gBe(){gBe=D,JLt=nD((Nx(),K(B(qLt,1),cB,491,0,[L4,KLt])))}function _Be(){_Be=D,nRt=nD((BT(),K(B(tRt,1),cB,492,0,[$Lt,eRt])))}function vBe(){vBe=D,fRt=nD((cS(),K(B(dRt,1),cB,438,0,[uRt,lRt])))}function yBe(){yBe=D,RRt=nD(($T(),K(B(LRt,1),cB,437,0,[v3,IRt])))}function bBe(){bBe=D,bBt=nD((nh(),K(B(yBt,1),cB,347,0,[_Bt,vBt])))}function xBe(){return WD(),K(B(k8,1),cB,88,0,[D8,E8,T8,w8,O8])}function SBe(){return WR(),K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5])}function CBe(e,t,n){return H(t==null?UN(e.f,null,n):oO(e.i,t,n),288)}function wBe(e){return(e.k==(sN(),OX)||e.k==TX)&&xp(e,(fz(),CQ))}function TBe(e){return e.c&&e.d?vLe(e.c)+`->`+vLe(e.d):`e_`+rp(e)}function Ax(e,t){var n,r;for(sv(t),r=e.Kc();r.Ob();)n=r.Pb(),t.Cd(n)}function EBe(e,t){var n=new bs;uy(n,`x`,t.a),uy(n,`y`,t.b),R_(e,n)}function DBe(e,t){var n=new bs;uy(n,`x`,t.a),uy(n,`y`,t.b),R_(e,n)}function OBe(e,t){for(var n=t;n;)Cp(e,-n.i,-n.j),n=ib(n);return e}function kBe(e,t){for(var n=t,r=0;n>0;)r+=e.a[n],n-=n&-n;return r}function jx(e,t,n){var r=(Db(t,e.c.length),e.c[t]);return e.c[t]=n,r}function ABe(e,t,n){e.a.c.length=0,Jlt(e,t,n),e.a.c.length==0||Got(e,t)}function jBe(e){e.i=0,Vl(e.b,null),Vl(e.c,null),e.a=null,e.e=null,++e.g}function Mx(){Mx=D,$J=!0,FCt=!1,ICt=!1,LCt=!1,eY=!1}function MBe(e){Mx(),!$J&&(this.c=e,this.e=!0,this.a=new to)}function NBe(e,t){this.c=0,this.b=t,axe.call(this,e,17493),this.a=this.c}function PBe(e){kpt(),wpe(this),this.a=new $c,ZYe(this,e),Ih(this.a,e)}function FBe(){qxe(this),this.b=new ku(KB,KB),this.a=new ku(qB,qB)}function Nx(){Nx=D,L4=new Jye(bgt,0),KLt=new Jye(`TARGET_WIDTH`,1)}function Px(e,t){return(aO(e),Mc(new ig(e,new OUe(t,e.a)))).Bd(iY)}function IBe(){return WM(),K(B(wEt,1),cB,367,0,[oX,sX,cX,lX,uX])}function LBe(){return mM(),K(B(lOt,1),cB,375,0,[gZ,sOt,cOt,oOt,hZ])}function RBe(){return jk(),K(B(POt,1),cB,348,0,[MOt,jOt,NOt,BZ,zZ])}function zBe(){return hA(),K(B(O0,1),cB,323,0,[rNt,tNt,nNt,E0,D0])}function BBe(){return KO(),K(B(Mkt,1),cB,171,0,[c$,i$,a$,o$,s$])}function VBe(){return SM(),K(B(eIt,1),cB,368,0,[u4,ZFt,$Ft,l4,QFt])}function HBe(){return bF(),K(B(U4,1),cB,373,0,[B4,z4,Z,V4,H4])}function UBe(){return pN(),K(B(hRt,1),cB,324,0,[Z4,pRt,mRt,Q4,$4])}function WBe(){return rA(),K(B(D3,1),cB,170,0,[T3,w3,S3,E3,C3])}function GBe(){return oA(),K(B(l5,1),cB,256,0,[s5,c5,Qzt,o5,$zt])}function KBe(e){return lhe(),function(){return xRe(e,this,arguments)}}function Fx(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function qBe(e,t){return V(t,143)?_m(e.c,H(t,143).c):!1}function Ix(e){return e.t||(e.t=new Qfe(e),UD(new Os(e),0,e.t)),e.t}function JBe(e){this.b=e,Mf.call(this,e),this.a=H(TT(this.b.a,4),129)}function YBe(e){this.b=e,fp.call(this,e),this.a=H(TT(this.b.a,4),129)}function Lx(e,t,n,r,i){EVe.call(this,t,r,i),this.c=e,this.b=n}function XBe(e,t,n,r,i){OLe.call(this,t,r,i),this.c=e,this.a=n}function ZBe(e,t,n,r,i){kLe.call(this,t,r,i),this.c=e,this.a=n}function QBe(e,t,n,r,i){EVe.call(this,t,r,i),this.c=e,this.a=n}function $Be(e,t){return H(cC(e.d,t),23)||H(cC(e.e,t),23)}function eVe(e,t){var n=t.ld(),r=e.Fe(n);return!!r&&xv(r.e,t.md())}function tVe(e,t){var n=t.ld();return new Ic(n,e.e.pc(n,H(t.md(),16)))}function nVe(e,t){return e.a.get(t)??dS($q,Oz,1,0,5,1)}function rVe(e){var t=e.length;return _m(YB.substr(YB.length-t,t),e)}function Rx(e){if(GP(e))return e.c=e.a,e.a.Pb();throw R(new Co)}function iVe(e,t){return t==0||e.e==0?e:t>0?Yrt(e,t):L$e(e,-t)}function zx(e,t){return t==0||e.e==0?e:t>0?L$e(e,t):Yrt(e,-t)}function aVe(e){sve.call(this,e==null?Az:OO(e),V(e,82)?H(e,82):null)}function oVe(e){var t;return e.c||(t=e.r,V(t,90)&&(e.c=H(t,29))),e.c}function Bx(e){var t=new yy;return NT(t,e),pE(t,(sz(),i1),null),t}function sVe(e){var t=e.c.i,n=e.d.i;return t.k==(sN(),TX)&&n.k==TX}function cVe(e){return gf(e&RB,e>>22&RB,e<0?zB:0)}function lVe(e){for(var t,n=e,r=0,i=n.length;r=0?e.Lh(r,n,!0):DP(e,t,n)}function dVe(e,t,n){return nO(xf(eA(e),vf(t.b)),xf(eA(e),vf(n.b)))}function fVe(e,t,n){return nO(xf(eA(e),vf(t.e)),xf(eA(e),vf(n.e)))}function pVe(e,t){return r.Math.min(yS(t.a,e.d.d.c),yS(t.b,e.d.d.c))}function Hx(e,t){e._i(e.i+1),wf(e,e.i,e.Zi(e.i,t)),e.Mi(e.i++,t),e.Ni()}function Ux(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.Oi(n,t),e.Ni()}function mVe(e,t,n){var r=new FSe(e.a);aT(r,e.a.a),UN(r.f,t,n),e.a.a=r}function hVe(e,t,n,r){for(var i=0;it)throw R(new js(JN(e,t,`index`)));return e}function Kx(e,t){var n=(Db(t,e.c.length),e.c[t]);return Nge(e.c,t,1),n}function qx(e,t){var n=(sv(e),e),r=(sv(t),t);return n==r?0:nt.p?-1:0}function IVe(e){var t;return e.a||(t=e.r,V(t,156)&&(e.a=H(t,156))),e.a}function LVe(e,t,n){var r;return++e.e,--e.f,r=H(e.d[t].gd(n),136),r.md()}function Qx(e){var t=e.ld();return uh(H(e.md(),16).Nc(),new gle(t))}function RVe(e,t){return Jg(e.a,t)?(Yx(e.a,t),!0):!1}function $x(e,t,n){return Yb(t,e.e.Rd().gc()),Yb(n,e.c.Rd().gc()),e.a[t][n]}function eS(e,t,n){this.a=e,this.b=t,this.c=n,Cf(e.t,this),Cf(t.i,this)}function tS(e,t,n,r){this.f=e,this.e=t,this.d=n,this.b=r,this.c=r?r.d:null}function nS(){this.b=new $c,this.a=new $c,this.b=new $c,this.a=new $c}function rS(){rS=D;var e,t;THt=(wc(),t=new To,t),EHt=(e=new sme,e)}function zVe(e){var t;return aO(e),t=new hh(e,e.a.e,e.a.d|4),new Zwe(e,t)}function iS(e){var t;for(tv(e),t=0;e.a.Bd(new Me);)t=lO(t,1);return t}function BVe(e,t){return sv(t),e.c=0,`Initial capacity must not be negative`)}function VVe(){VVe=D,L3=new Ja(`org.eclipse.elk.labels.labelManager`)}function oS(){oS=D,WDt=new Zp(`separateLayerConnections`,(YT(),lZ))}function sS(){sS=D,b2=new Fye(`REGULAR`,0),y2=new Fye(`CRITICAL`,1)}function cS(){cS=D,uRt=new Xye(`FIXED`,0),lRt=new Xye(`CENTER_NODE`,1)}function HVe(){HVe=D,jZ=new Xve(`QUADRATIC`,0),TOt=new Xve(`SCANLINE`,1)}function UVe(){UVe=D,OOt=nD((Cw(),K(B(FZ,1),cB,322,0,[NZ,MZ,PZ])))}function WVe(){WVe=D,RZ=nD((XGe(),K(B(AOt,1),cB,351,0,[kOt,LZ,IZ])))}function GVe(){GVe=D,hOt=nD((Tw(),K(B(mOt,1),cB,372,0,[bZ,yZ,vZ])))}function KVe(){KVe=D,VOt=nD((hE(),K(B(BOt,1),cB,460,0,[zOt,HZ,UZ])))}function qVe(){qVe=D,ckt=nD((zT(),K(B(pQ,1),cB,299,0,[fQ,skt,dQ])))}function JVe(){JVe=D,_Q=nD((rC(),K(B(lkt,1),cB,311,0,[hQ,gQ,mQ])))}function YVe(){YVe=D,ZMt=nD((mD(),K(B(XMt,1),cB,390,0,[b0,x0,S0])))}function XVe(){XVe=D,xNt=nD((gT(),K(B(bNt,1),cB,387,0,[_Nt,vNt,yNt])))}function ZVe(){ZVe=D,TNt=nD((RE(),K(B(wNt,1),cB,349,0,[CNt,SNt,W0])))}function QVe(){QVe=D,U0=nD((gw(),K(B(gNt,1),cB,463,0,[H0,B0,V0])))}function $Ve(){$Ve=D,kNt=nD((YE(),K(B(ONt,1),cB,350,0,[ENt,DNt,G0])))}function eHe(){eHe=D,PNt=nD((YGe(),K(B(NNt,1),cB,352,0,[MNt,ANt,jNt])))}function tHe(){tHe=D,LNt=nD((QT(),K(B(INt,1),cB,388,0,[FNt,q0,K0])))}function nHe(){nHe=D,JPt=nD((zE(),K(B(qPt,1),cB,392,0,[KPt,j2,A2])))}function rHe(){rHe=D,p4=nD((JE(),K(B(sIt,1),cB,393,0,[d4,f4,oIt])))}function iHe(){iHe=D,S4=nD((hT(),K(B(GIt,1),cB,300,0,[x4,WIt,b4])))}function aHe(){aHe=D,YIt=nD((Sk(),K(B(JIt,1),cB,445,0,[C4,KIt,qIt])))}function oHe(){oHe=D,eLt=nD((F0e(),K(B($It,1),cB,456,0,[XIt,QIt,ZIt])))}function sHe(){sHe=D,dLt=nD((gO(),K(B(uLt,1),cB,394,0,[cLt,lLt,sLt])))}function cHe(){cHe=D,QLt=nD((RS(),K(B(ZLt,1),cB,439,0,[R4,XLt,YLt])))}function lHe(){lHe=D,QNt=nD((hw(),K(B(ZNt,1),cB,464,0,[Z0,Q0,$0])))}function uHe(){uHe=D,Swt=nD((PS(),K(B(xwt,1),cB,471,0,[vY,_Y,yY])))}function dHe(){dHe=D,bwt=nD((GC(),K(B(mY,1),cB,237,0,[dY,fY,pY])))}function fHe(){fHe=D,Twt=nD((nC(),K(B(wwt,1),cB,472,0,[SY,xY,bY])))}function pHe(){pHe=D,zCt=nD((XE(),K(B(rY,1),cB,108,0,[RCt,tY,nY])))}function mHe(){mHe=D,bEt=nD((tC(),K(B(yEt,1),cB,391,0,[aX,_Et,vEt])))}function hHe(){hHe=D,Yzt=nD((gD(),K(B(Jzt,1),cB,346,0,[U8,H8,W8])))}function gHe(){gHe=D,iRt=nD((GD(),K(B(J4,1),cB,444,0,[G4,K4,q4])))}function _He(){_He=D,Pzt=nD((KC(),K(B(Nzt,1),cB,278,0,[j8,M8,N8])))}function vHe(){vHe=D,gBt=nD((hD(),K(B(hBt,1),cB,280,0,[pBt,a7,mBt])))}function lS(e,t){return!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),S$e(e.o,t)}function yHe(e,t){var n;e.C&&(n=H(Sv(e.b,t),127).n,n.d=e.C.d,n.a=e.C.a)}function bHe(e){var t,n,r,i=e.d;t=e.a,n=e.b,r=e.c,e.d=n,e.a=r,e.b=i,e.c=t}function xHe(e){return!e.g&&(e.g=new Goe),!e.g.b&&(e.g.b=new Yfe(e)),e.g.b}function uS(e){return!e.g&&(e.g=new Goe),!e.g.c&&(e.g.c=new Ya(e)),e.g.c}function SHe(e){return!e.g&&(e.g=new Goe),!e.g.d&&(e.g.d=new Xfe(e)),e.g.d}function CHe(e){return!e.g&&(e.g=new Goe),!e.g.a&&(e.g.a=new Zfe(e)),e.g.a}function wHe(e,t,n,r){return n&&(r=n.Rh(t,XO(n.Dh(),e.c.uk()),null,r)),r}function THe(e,t,n,r){return n&&(r=n.Th(t,XO(n.Dh(),e.c.uk()),null,r)),r}function EHe(e,t,n,r){var i=dS(F9,jB,28,t+1,15,1);return Qst(i,e,t,n,r),i}function dS(e,t,n,r,i,a){var o=QA(i,r);return i!=10&&K(B(e,a),t,n,i,o),o}function fS(e,t,n){var r,i=new IT(t,e);for(r=0;rn||t=0?e.Lh(n,!0,!0):DP(e,t,!0)}function tUe(e,t,n){var r=TYe(e,t,n);return e.b=new jw(r.c.length),yit(e,r)}function nUe(e){if(e.b<=0)throw R(new Co);return--e.b,e.a-=e.c.c,bD(e.a)}function rUe(e){var t;if(!e.a)throw R(new UNe);return t=e.a,e.a=ib(e.a),t}function iUe(e){for(;!e.a;)if(!hEe(e.c,new Pue(e)))return!1;return!0}function OS(e){var t;return E_(e),V(e,204)?(t=H(e,204),t):new Ole(e)}function aUe(e){kS(),H(e.of((pz(),i8)),181).Fc((rP(),y5)),e.qf(r8,null)}function kS(){kS=D,WRt=new Bn,GRt=new Kae,y3=nXe((pz(),r8),WRt,V6,GRt)}function AS(){AS=D,nIt=new Hye(`LEAF_NUMBER`,0),rIt=new Hye(`NODE_SIZE`,1)}function oUe(e){e.a=dS(F9,jB,28,e.b+1,15,1),e.c=dS(F9,jB,28,e.b,15,1),e.d=0}function sUe(e,t){e.a.Ne(t.d,e.b)>0&&(Cf(e.c,new lke(t.c,t.d,e.d)),e.b=t.d)}function cUe(e,t){if(e.g==null||t>=e.i)throw R(new mxe(t,e.i));return e.g[t]}function lUe(e,t,n){if(FE(e,n),n!=null&&!e.fk(n))throw R(new go);return n}function uUe(e,t){return fC(t)!=10&&K(ZE(t),t.Sm,t.__elementTypeId$,fC(t),e),e}function jS(e,t,n,r){var i;r=(ry(),r||YJ),i=e.slice(t,n),YN(i,e,t,n,-t,r)}function MS(e,t,n,r,i){return t<0?DP(e,n,r):H(n,69).wk().yk(e,e.hi(),t,r,i)}function dUe(e,t){return nO(z(Ip(q(e,(fz(),qQ)))),z(Ip(q(t,qQ))))}function fUe(){fUe=D,ACt=nD((NS(),K(B(QJ,1),cB,304,0,[ZJ,DCt,OCt,kCt])))}function NS(){NS=D,ZJ=new Ul(`All`,0),DCt=new Gd,OCt=new SSe,kCt=new Kxe}function PS(){PS=D,vY=new Cve(MV,0),_Y=new Cve(kV,1),yY=new Cve(NV,2)}function pUe(){pUe=D,xL(),rUt=KB,nUt=qB,aUt=new Mi(KB),iUt=new Mi(qB)}function mUe(){mUe=D,Xwt=nD((RT(),K(B(Ywt,1),cB,417,0,[kY,OY,qwt,Jwt])))}function FS(){FS=D,aTt=nD((gA(),K(B(iTt,1),cB,406,0,[IY,rTt,LY,RY])))}function hUe(){hUe=D,Qwt=nD((_A(),K(B(Zwt,1),cB,332,0,[jY,AY,MY,NY])))}function gUe(){gUe=D,UEt=nD((Hk(),K(B(bX,1),cB,389,0,[yX,HEt,_X,vX])))}function _Ue(){_Ue=D,FEt=nD((ZT(),K(B(PEt,1),cB,416,0,[fX,hX,pX,mX])))}function vUe(){vUe=D,aOt=nD((XT(),K(B(iOt,1),cB,421,0,[fZ,pZ,mZ,rOt])))}function IS(){IS=D,KDt=nD((YT(),K(B(GDt,1),cB,371,0,[lZ,sZ,cZ,oZ])))}function yUe(){yUe=D,eNt=nD((wA(),K(B($Mt,1),cB,203,0,[T0,QMt,w0,C0])))}function bUe(){bUe=D,fNt=nD((Mk(),K(B(dNt,1),cB,284,0,[R0,L0,lNt,uNt])))}function LS(){LS=D,KOt=new tye(QH,0),JZ=new tye(`IMPROVE_STRAIGHTNESS`,1)}function xUe(e,t){var n,r=t/e.c.Rd().gc()|0;return n=t%e.c.Rd().gc(),$x(e,r,n)}function SUe(e){var t;if(e.nl())for(t=e.i-1;t>=0;--t)G(e,t);return uze(e)}function CUe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function wUe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function TUe(e){return V(e,180)?``+H(e,180).a:e==null?null:OO(e)}function EUe(e){return V(e,180)?``+H(e,180).a:e==null?null:OO(e)}function DUe(e,t){if(t.a)throw R(new ys(tht));t_(e.a,t),t.a=e,!e.j&&(e.j=t)}function OUe(e,t){oxe.call(this,t.zd(),t.yd()&-16449),sv(e),this.a=e,this.c=t}function kUe(e,t){return new ih(t,Cp(vf(t.e),t.f.a+e,t.f.b+e),(sp(),!1))}function AUe(e,t){return th(),Cf(e,new qu(t,bD(t.e.c.length+t.g.c.length)))}function jUe(e,t){return th(),Cf(e,new qu(t,bD(t.e.c.length+t.g.c.length)))}function MUe(){MUe=D,y4=nD((GA(),K(B(UIt,1),cB,354,0,[v4,VIt,HIt,BIt])))}function NUe(){NUe=D,BFt=nD((qE(),K(B(zFt,1),cB,353,0,[RFt,i4,a4,r4])))}function PUe(){PUe=D,MPt=nD((yj(),K(B(jPt,1),cB,405,0,[w2,T2,E2,D2])))}function FUe(){FUe=D,Izt=nD((hO(),K(B(Fzt,1),cB,223,0,[L8,F8,P8,I8])))}function IUe(){IUe=D,Xzt=nD((xj(),K(B(Y8,1),cB,291,0,[J8,G8,K8,q8])))}function LUe(){LUe=D,uBt=nD((xk(),K(B(Y5,1),cB,386,0,[q5,J5,K5,G5])))}function RUe(){RUe=D,EBt=nD((qO(),K(B(TBt,1),cB,320,0,[wBt,xBt,CBt,SBt])))}function zUe(){zUe=D,NBt=nD((LE(),K(B(MBt,1),cB,415,0,[kBt,ABt,OBt,jBt])))}function RS(){RS=D,R4=new Tu(Avt,0),XLt=new Tu(lvt,1),YLt=new Tu(QH,2)}function zS(e,t,n,r,i){return sv(e),sv(t),sv(n),sv(r),sv(i),new Zje(e,t,r)}function BUe(e,t){var n=H(Yx(e.e,t),400);return n?(Fh(n),n.e):null}function BS(e,t){var n=HS(e,t,0);return n!=-1&&(Kx(e,n),!0)}function VUe(e,t,n){var r;return tv(e),r=new Ae,r.a=t,e.a.Nb(new Kl(r,n)),r.a}function HUe(e){var t;return tv(e),t=dS(z9,QB,28,0,15,1),Nc(e.a,new ea(t)),t}function UUe(e){var t;if(!WKe(e))throw R(new Co);return e.e=1,t=e.d,e.d=null,t}function VS(e){var t;return Sd(e)&&(t=0-e,!isNaN(t))?t:wT(lE(e))}function HS(e,t,n){for(;n=0?x0e(e,n,!0,!0):DP(e,t,!0)}function nWe(e){var t=dw(TT(e,32));return t??=(Lk(e),dw(TT(e,32))),t}function rWe(e){var t;return e.Oh()||(t=M_(e.Dh())-e.ji(),e.$h().Mk(t)),e.zh()}function iWe(e,t){tTt=new wt,eTt=t,PY=e,H(PY.b,68),mS(PY,tTt,null),xlt(PY)}function tC(){tC=D,aX=new $l(`XY`,0),_Et=new $l(`X`,1),vEt=new $l(`Y`,2)}function nC(){nC=D,SY=new wve(`TOP`,0),xY=new wve(kV,1),bY=new wve(PV,2)}function rC(){rC=D,hQ=new rye(QH,0),gQ=new rye(`TOP`,1),mQ=new rye(PV,2)}function iC(){iC=D,pNt=new cye(`INPUT_ORDER`,0),z0=new cye(`PORT_DEGREE`,1)}function aC(){aC=D,yJ=gf(RB,RB,524287),zSt=gf(0,0,BB),bJ=cVe(1),cVe(2),xJ=cVe(0)}function aWe(e){var t;return e.d!=e.r&&(t=Pj(e),e.e=!!t&&t.lk()==hxt,e.d=t),e.e}function oWe(e,t,n){var r=e.g[t];return wf(e,t,e.Zi(t,n)),e.Ri(t,n,r),e.Ni(),r}function oC(e,t){var n=e.dd(t);return n>=0&&(e.gd(n),!0)}function sC(e,t){var n;for(E_(e),E_(t),n=!1;t.Ob();)n|=e.Fc(t.Pb());return n}function cC(e,t){var n=H(N_(e.e,t),400);return n?(KSe(e,n),n.e):null}function sWe(e){var t=e/60|0,n=e%60;return n==0?``+t:``+t+`:`+(``+n)}function lC(e,t){var n=e.a[t],r=(gE(),_J)[typeof n];return r?r(n):qXe(typeof n)}function uC(e,t){var n,r;return aO(e),r=new wVe(t,e.a),n=new ym(r),new ig(e,n)}function cWe(e){var t=e.b.c.length==0?null:$h(e.b,0);return t!=null&&oqe(e,0),t}function lWe(e,t){var n,r,i=t.c.i;n=H(N_(e.f,i),60),r=n.d.c-n.e.c,Hw(t.a,r,0)}function uWe(e,t){var n;for(++e.d,++e.c[t],n=t+1;n=0;)++t[0]}function pWe(e,t){ew(e,t==null||Tm((sv(t),t))||isNaN((sv(t),t))?0:(sv(t),t))}function mWe(e,t){tw(e,t==null||Tm((sv(t),t))||isNaN((sv(t),t))?0:(sv(t),t))}function hWe(e,t){$C(e,t==null||Tm((sv(t),t))||isNaN((sv(t),t))?0:(sv(t),t))}function gWe(e,t){QC(e,t==null||Tm((sv(t),t))||isNaN((sv(t),t))?0:(sv(t),t))}function _We(e,t,n){return xf(new ku(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(sv(t),t)}function vWe(e,t){return V(t,102)&&(H(t,19).Bb&XB)!=0?new gxe(t,e):new IT(t,e)}function dC(e,t){return V(t,102)&&(H(t,19).Bb&XB)!=0?new gxe(t,e):new IT(t,e)}function fC(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function yWe(e,t){return t==(km(),km(),vCt)?e.toLocaleLowerCase():e.toLowerCase()}function bWe(e){if(!e.e)throw R(new Co);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function xWe(e){if(!e.c)throw R(new Co);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function SWe(e){var t;for(++e.a,t=e.c.a.length;e.ae.a[r]&&(r=n);return r}function OWe(e){var t=H(q(e,(fz(),yQ)),313);return t?t.a==e:!1}function kWe(e){var t=H(q(e,(fz(),yQ)),313);return t?t.i==e:!1}function AWe(){AWe=D,TEt=nD((WM(),K(B(wEt,1),cB,367,0,[oX,sX,cX,lX,uX])))}function jWe(){jWe=D,uOt=nD((mM(),K(B(lOt,1),cB,375,0,[gZ,sOt,cOt,oOt,hZ])))}function MWe(){MWe=D,FOt=nD((jk(),K(B(POt,1),cB,348,0,[MOt,jOt,NOt,BZ,zZ])))}function NWe(){NWe=D,iNt=nD((hA(),K(B(O0,1),cB,323,0,[rNt,tNt,nNt,E0,D0])))}function PWe(){PWe=D,Nkt=nD((KO(),K(B(Mkt,1),cB,171,0,[c$,i$,a$,o$,s$])))}function pC(){pC=D,tIt=nD((SM(),K(B(eIt,1),cB,368,0,[u4,ZFt,$Ft,l4,QFt])))}function FWe(){FWe=D,W4=nD((bF(),K(B(U4,1),cB,373,0,[B4,z4,Z,V4,H4])))}function mC(){mC=D,e3=nD((pN(),K(B(hRt,1),cB,324,0,[Z4,pRt,mRt,Q4,$4])))}function IWe(){IWe=D,A8=nD((WD(),K(B(k8,1),cB,88,0,[D8,E8,T8,w8,O8])))}function hC(){hC=D,qRt=nD((rA(),K(B(D3,1),cB,170,0,[T3,w3,S3,E3,C3])))}function LWe(){LWe=D,eBt=nD((oA(),K(B(l5,1),cB,256,0,[s5,c5,Qzt,o5,$zt])))}function RWe(){RWe=D,iBt=nD((WR(),K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5])))}function gC(){gC=D,ZCt=new ql(`BY_SIZE`,0),QCt=new ql(`BY_SIZE_AND_SHAPE`,1)}function _C(){_C=D,WY=new Ql(`EADES`,0),GY=new Ql(`FRUCHTERMAN_REINGOLD`,1)}function vC(){vC=D,VZ=new $ve(`READING_DIRECTION`,0),IOt=new $ve(`ROTATION`,1)}function yC(){yC=D,REt=new Ht,zEt=new lee,IEt=new Wt,LEt=new cee,BEt=new uee}function zWe(e){this.b=new to,this.a=new to,this.c=new to,this.d=new to,this.e=e}function BWe(e){this.g=e,this.f=new to,this.a=r.Math.min(this.g.c.c,this.g.d.c)}function bC(e,t,n){um.call(this),mGe(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function VWe(e,t,n){for(var r,i=new L(n);i.a=0&&t0?t-1:t;return tge(nge(uw(xke(new is,n),e.n),e.j),e.k)}function TC(e){var t,n=(t=new ns,t);_S((!e.q&&(e.q=new Bg(M7,e,11,10)),e.q),n)}function EC(e){return(e.i&2?`interface `:e.i&1?``:`class `)+(Rp(e),e.o)}function DC(e){return uD(e,Cz)>0?Cz:uD(e,pB)<0?pB:Tg(e)}function OC(e){return e<3?(Sw(e,cmt),e+1):e=-.01&&e.a<=LV&&(e.a=0),e.b>=-.01&&e.b<=LV&&(e.b=0),e}function IC(e){GF();var t,n=jW;for(t=0;tn&&(n=e[t]);return n}function XWe(e,t){var n=DF(e.Dh(),t);if(!n)throw R(new Ps(VG+t+ibt));return n}function LC(e,t){for(var n=e;ib(n);)if(n=ib(n),n==t)return!0;return!1}function ZWe(e,t){var n,r=t.a.ld(),i;for(n=H(t.a.md(),16).gc(),i=0;ie||e>t)throw R(new dhe(`fromIndex: 0, toIndex: `+e+Vmt+t))}function BC(e){if(e<0)throw R(new Ps(`Illegal Capacity: `+e));this.g=this.aj(e)}function iGe(e,t){return of(),vw(fB),r.Math.abs(e-t)<=fB||e==t||isNaN(e)&&isNaN(t)}function aGe(e,t){for(var n,r=e.d,i=0,a=r.length;i0&&(e.a/=t,e.b/=t),e}function HC(e){var t;return e.w?e.w:(t=Fb(e),t&&!t.Vh()&&(e.w=t),t)}function UC(e,t){var n,r=e.a;n=ID(e,t,null),r!=t&&!e.e&&(n=PR(e,t,n)),n&&n.oj()}function lGe(e,t,n){var r=t,i;do i=z(e.p[r.p])+n,e.p[r.p]=i,r=e.a[r.p];while(r!=t)}function uGe(e,t,n){var r=function(){return e.apply(r,arguments)};return t.apply(r,n),r}function dGe(e){var t;return e==null?null:(t=H(e,195),LM(t,t.length))}function G(e,t){if(e.g==null||t>=e.i)throw R(new mxe(t,e.i));return e.Wi(t,e.g[t])}function fGe(e,t){iy();var n,r=new to;for(n=0;n=14&&t<=16))),e}function fw(e,t){var n;return sv(t),n=e[`:`+t],_h(!!n,`Enum constant undefined: `+t),n}function pw(e,t,n,r,i,a){var o=T_(e,t);return PGe(n,o),o.i=i?8:0,o.f=r,o.e=i,o.g=a,o}function FGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=1,this.c=e,this.a=n}function IGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=2,this.c=e,this.a=n}function LGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=6,this.c=e,this.a=n}function RGe(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=7,this.c=e,this.a=n}function zGe(e,t,n,r,i){this.d=t,this.j=r,this.e=i,this.o=-1,this.p=4,this.c=e,this.a=n}function BGe(e,t){for(var n,r=t,i=0,a=r.length;i=0))throw R(new Ps(`tolerance (`+e+`) must be >= 0`));return e}function ZGe(e,t){var n;return V(t,44)?e.c.Mc(t):(n=S$e(e,t),Fk(e,t),n)}function yw(e,t,n){return aD(e,t),Pw(e,n),aw(e,0),ow(e,1),PD(e,!0),MD(e,!0),e}function bw(e,t){var n=e.gc();if(t<0||t>n)throw R(new gm(t,n));return new EEe(e,t)}function QGe(e,t){e.b=r.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),Cf(e.a,t)}function $Ge(e){Bp(e.c>=0),a1e(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function eKe(e){for(var t,n=e.c.Cc().Kc();n.Ob();)t=H(n.Pb(),16),t.$b();e.c.$b(),e.d=0}function tKe(e){for(var t,n=e.a,r=0,i=n.length;r=0}function TKe(e,t){e.r>0&&e.c0&&e.g!=0&&TKe(e.i,t/e.r*e.i.d))}function EKe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,1,n,e.c))}function DKe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,4,n,e.c))}function ww(e,t){var n=e.k;e.k=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,2,n,e.k))}function OKe(e,t){var n=e.D;e.D=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,2,n,e.D))}function kKe(e,t){var n=e.f;e.f=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,8,n,e.f))}function AKe(e,t){var n=e.i;e.i=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,7,n,e.i))}function jKe(e,t){var n=e.a;e.a=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,8,n,e.a))}function MKe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,0,n,e.b))}function NKe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,0,n,e.b))}function PKe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,1,n,e.c))}function FKe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,1,n,e.d))}function IKe(e,t,n){var r;e.b=t,e.a=n,r=(e.a&512)==512?new _me:new jr,e.c=mit(r,e.b,e.a)}function LKe(e,t){return PF(e.e,t)?(Rl(),aWe(t)?new Gh(t,e):new Xu(t,e)):new Ube(t,e)}function RKe(e){var t,n;return 0>e?new al:(t=e+1,n=new NBe(t,e),new Qwe(null,n))}function zKe(e,t){iy();var n=new Zc(1);return $u(e)?db(n,e,t):UN(n.f,e,t),new Ui(n)}function BKe(e,t){var n=e.c,r=t.e[e.p];return r>0?H($h(n.a,r-1),10):null}function VKe(e,t){var n=e.o+e.p,r=t.o+t.p;return nt?(t<<=1,t>0?t:oB):t}function WKe(e){switch(_Ce(e.e!=3),e.e){case 2:return!1;case 0:return!0}return xVe(e)}function GKe(e,t){var n;return V(t,8)?(n=H(t,8),e.a==n.a&&e.b==n.b):!1}function KKe(e,t){var n=new wt;H(t.b,68),H(t.b,68),H(t.b,68),RC(t.a,new VOe(e,n,t))}function qKe(e,t){for(var n,r=t.vc().Kc();r.Ob();)n=H(r.Pb(),44),qj(e,n.ld(),n.md())}function JKe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,11,n,e.d))}function YKe(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,13,n,e.j))}function XKe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,21,n,e.b))}function ZKe(e,t){(Mx(),$J?null:t.c).length==0&&rTe(t,new pe),db(e.a,$J?null:t.c,t)}function QKe(e,t){t.Ug(`Hierarchical port constraint processing`,1),$1e(e),xpt(e),t.Vg()}function Tw(){Tw=D,bZ=new Yve(`START`,0),yZ=new Yve(`MIDDLE`,1),vZ=new Yve(`END`,2)}function $Ke(){$Ke=D,s4=new Vye(`P1_NODE_PLACEMENT`,0),c4=new Vye(`P2_EDGE_ROUTING`,1)}function Ew(){Ew=D,nX=new Ja(VH),rX=new Ja(HH),tX=new Ja(Rht),eX=new Ja(UH)}function Dw(e){var t;return cDe(e.f.g,e.d),zp(e.b),e.c=e.a,t=H(e.a.Pb(),44),e.b=HJe(e),t}function eqe(e){var t;return e.b==null?(Il(),Il(),cHt):(t=e.ul()?e.tl():e.sl(),t)}function tqe(e,t){var n=t==null?-1:HS(e.b,t,0);return n<0?!1:(oqe(e,n),!0)}function Ow(e,t){var n;return sv(t),n=t.g,!e.b[n]&&(P_(e.b,n,t),++e.c,!0)}function kw(e,t){var n=1-t,r=e.a[n];return e.a[n]=r.a[t],r.a[t]=e,e.b=!0,r.b=!1,r}function nqe(e,t){for(var n,r=t.Kc();r.Ob();)n=H(r.Pb(),272),e.b=!0,t_(e.e,n),n.b=e}function rqe(e,t){var n=H(q(e,(sz(),M1)),8),r=H(q(t,M1),8);return nO(n.b,r.b)}function iqe(e,t,n){var r,i,a=t>>5;return i=t&31,r=Nb(jg(e.n[n][a],Tg(kg(i,1))),3),r}function aqe(e,t,n){var r,i,a=e.a.length-1;for(i=e.b,r=0;r0):(!e.c&&(e.c=vb(kT(e.f))),e.c).e}function Cqe(e,t){t?e.B??(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function wqe(e,t){return ZT(),e==fX&&t==hX||e==hX&&t==fX||e==mX&&t==pX||e==pX&&t==mX}function Tqe(e,t){return ZT(),e==fX&&t==pX||e==fX&&t==mX||e==hX&&t==mX||e==hX&&t==pX}function Eqe(e,t){return of(),vw(LV),r.Math.abs(0-t)<=LV||t==0?0:e/t}function Dqe(e,t){return z(Ip(Xf(OD(Mv(new ig(null,new kb(e.c.b,16)),new bde(e)),t))))}function Oqe(e,t){return z(Ip(Xf(OD(Mv(new ig(null,new kb(e.c.b,16)),new yde(e)),t))))}function kqe(){return UF(),K(B(uQ,1),cB,259,0,[tQ,rQ,iQ,aQ,oQ,sQ,lQ,eQ,nQ,cQ])}function Aqe(){return yI(),K(B(cNt,1),cB,243,0,[P0,M0,N0,aNt,oNt,k0,sNt,F0,A0,j0])}function Bw(e,t){var n;t.Ug(`General Compactor`,1),n=n$e(H(eF(e,(gN(),EIt)),393)),n.Cg(e)}function Vw(e,t){var n=H(eF(e,(gN(),m4)),17),r=H(eF(t,m4),17);return hf(n.a,r.a)}function Hw(e,t,n){for(var r,i=iA(e,0);i.b!=i.d.c;)r=H(lx(i),8),r.a+=t,r.b+=n;return e}function Uw(e,t,n){for(var r=e.b[n&e.f];r;r=r.b)if(n==r.a&&X_(t,r.g))return r;return null}function Ww(e,t,n){for(var r=e.c[n&e.f];r;r=r.d)if(n==r.f&&X_(t,r.i))return r;return null}function Gw(e,t,n){for(var r=0,i=0,a;i>>31;r!=0&&(e[n]=r)}function Kw(e,t,n,r,i,a){var o;this.c=e,o=new to,T2e(e,o,t,e.b,n,r,i,a),this.a=new Hb(o,0)}function qw(){this.c=new Oge(0),this.b=new Oge(EW),this.d=new Oge(TW),this.a=new Oge(uH)}function Jw(e,t,n,r,i,a,o){Lc.call(this,e,t),this.d=n,this.e=r,this.c=i,this.b=a,this.a=Gx(o)}function Yw(e,t,n,r,i,a,o,s,l,u,d,f,p){return qN(e,t,n,r,i,a,o,s,l,u,d,f,p),sO(e,!1),e}function jqe(e){return e.b.c.i.k==(sN(),TX)?H(q(e.b.c.i,(fz(),WQ)),12):e.b.c}function Mqe(e){return e.b.d.i.k==(sN(),TX)?H(q(e.b.d.i,(fz(),WQ)),12):e.b.d}function Nqe(e){var t=ex(e);return nd(t.a,0)?(rl(),rl(),xCt):(rl(),new cwe(t.b))}function Pqe(e){var t=Qb(e);return nd(t.a,0)?(nl(),nl(),bCt):(nl(),new swe(t.b))}function Xw(e){var t=Qb(e);return nd(t.a,0)?(nl(),nl(),bCt):(nl(),new swe(t.c))}function Fqe(e){switch(e.g){case 2:return WR(),U5;case 4:return WR(),C5;default:return e}}function Zw(e){switch(e.g){case 1:return WR(),V5;case 3:return WR(),w5;default:return e}}function Qw(e){switch(e.g){case 0:return new Nn;case 1:return new Pn;default:return null}}function $w(){$w=D,UDt=new Zp(`edgelabelcenterednessanalysis.includelabel`,(sp(),SJ))}function Iqe(){Iqe=D,XNt=Ik(pxe(Jh(Jh(new mv,(WM(),cX),(mz(),QX)),lX,UX),uX),ZX)}function Lqe(){Lqe=D,ePt=Ik(pxe(Jh(Jh(new mv,(WM(),cX),(mz(),QX)),lX,UX),uX),ZX)}function eT(){eT=D,e9=new cme,iHt=K(B(E7,1),nq,179,0,[]),rHt=K(B(M7,1),_xt,62,0,[])}function tT(){tT=D,MX=new ou(`TO_INTERNAL_LTR`,0),iDt=new ou(`TO_INPUT_DIRECTION`,1)}function nT(){nT=D,QEt=new Jt,jX=new Yt,ZEt=new hee,AX=new Xt,$Et=new Zt,eDt=new gee}function Rqe(e,t){t.Ug(ugt,1),WO(N_e(new ia((yl(),new Vv(e,!1,!1,new mee))))),t.Vg()}function rT(e,t,n){n.Ug(`DFS Treeifying phase`,1),vk(e,t),xrt(e,t),e.a=null,e.b=null,n.Vg()}function iT(e,t){return sp(),$u(e)?qx(e,Lp(t)):td(e)?gje(e,Ip(t)):ed(e)?hje(e,Fp(t)):e.Fd(t)}function aT(e,t){var n,r;for(sv(t),r=t.vc().Kc();r.Ob();)n=H(r.Pb(),44),e.zc(n.ld(),n.md())}function zqe(e,t,n){for(var r=n.Kc();r.Ob();)if(!yx(e,t,r.Pb()))return!1;return!0}function oT(e,t,n,r,i){var a;return n&&(a=XO(t.Dh(),e.c),i=n.Rh(t,-1-(a==-1?r:a),null,i)),i}function Bqe(e,t,n,r,i){var a;return n&&(a=XO(t.Dh(),e.c),i=n.Th(t,-1-(a==-1?r:a),null,i)),i}function Vqe(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function Hqe(e){if(sv(e),e.length==0)throw R(new ec(`Zero length BigInteger`));Oot(this,e)}function sT(e){this.i=e.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),e.Qc(this.g))}function cT(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new to,H7e(this),iy(),ff(this.a,null)}function Uqe(e,t){t.q=e,e.d=r.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),Cf(e.a,t)}function lT(e,t){var n,r,i=e.c,a;return n=e.c+e.b,a=e.d,r=e.d+e.a,t.a>i&&t.aa&&t.bi?n=i:Ob(t,n+1),e.a=Ey(e.a,0,t)+(``+r)+RMe(e.a,n)}function iJe(e,t){e.a=lO(e.a,1),e.c=r.Math.min(e.c,t),e.b=r.Math.max(e.b,t),e.d=lO(e.d,t)}function aJe(e,t){return t1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw R(new Co)}function vJe(e){switch(e.a.g){case 1:return new Oye;case 3:return new J2e;default:return new Jce}}function yJe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return qLe(e,t)}function kT(e){return WB>22),i=e.h+t.h+(r>>22);return gf(n&RB,r&RB,i&zB)}function BJe(e,t){var n=e.l-t.l,r=e.m-t.m+(n>>22),i=e.h-t.h+(r>>22);return gf(n&RB,r&RB,i&zB)}function VJe(e){var t,n;for(nft(e),n=new L(e.d);n.ar)throw R(new gm(t,r));return e.Si()&&(n=tb(e,n)),e.Ei(t,n)}function cE(e,t,n,r,i){for(var a,o=n;o<=i;o++)for(a=t;a<=r;a++)LA(e,a,o)||sI(e,a,o,!0,!1)}function pYe(e){GF();var t,n=dS(R3,Gz,8,2,0,1),r=0;for(t=0;t<2;t++)r+=.5,n[t]=y2e(r,e);return n}function lE(e){var t=~e.l+1&RB,n=~e.m+ +(t==0)&RB;return gf(t,n,~e.h+ +(t==0&&n==0)&zB)}function uE(e){var t;if(e<0)return pB;if(e==0)return 0;for(t=oB;(t&e)==0;t>>=1);return t}function dE(e,t,n){return e>=128?!1:rd(e<64?Nb(kg(1,e),n):Nb(kg(1,e-64),t),0)}function fE(e,t,n){return n==null?(!e.q&&(e.q=new eo),Yx(e.q,t)):(!e.q&&(e.q=new eo),hv(e.q,t,n)),e}function pE(e,t,n){return n==null?(!e.q&&(e.q=new eo),Yx(e.q,t)):(!e.q&&(e.q=new eo),hv(e.q,t,n)),e}function mYe(e){var t,n=new DVe;return NT(n,e),pE(n,(Ew(),nX),e),t=new eo,Tct(e,n,t),BR(e,n,t),n}function mE(e){var t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d;return t||n}function hYe(e,t){for(var n=!1,r=e.a[t].length,i,a=0;a=0,`Negative initial capacity`),_h(t>=0,`Non-positive load factor`),Qg(this)}function xYe(e,t,n,r,i){var a,o=e.length;if(a=n.length,t<0||r<0||i<0||t+i>o||r+i>a)throw R(new ho)}function bE(e,t){iy();var n,r,i,a,o=!1;for(r=t,i=0,a=r.length;i1||t>=0&&e.b<3)}function OE(e){var t=~e.l+1&RB,n=~e.m+ +(t==0)&RB,r=~e.h+ +(t==0&&n==0)&zB;e.l=t,e.m=n,e.h=r}function jYe(e){iy();var t,n,r=1;for(n=e.Kc();n.Ob();)t=n.Pb(),r=31*r+(t==null?0:Nw(t)),r|=0;return r}function MYe(e,t,n,r,i){var a=Aet(e,t);return n&&OE(a),i&&(e=UA(e,t),vJ=r?lE(e):gf(e.l,e.m,e.h)),a}function kE(e,t,n){e.g=NN(e,t,(WR(),C5),e.b),e.d=NN(e,n,C5,e.b),e.g.c!=0&&e.d.c!=0&&F8e(e)}function NYe(e,t,n){e.g=NN(e,t,(WR(),U5),e.j),e.d=NN(e,n,U5,e.j),e.g.c!=0&&e.d.c!=0&&F8e(e)}function AE(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return $Qe(e,t)}function PYe(e,t){switch(t.g){case 0:V(e.b,641)||(e.b=new tJe);break;case 1:V(e.b,642)||(e.b=new Oke)}}function FYe(e){switch(e.g){case 0:return new Bae;default:throw R(new Ps(uG+(e.f==null?``+e.g:e.f)))}}function IYe(e){switch(e.g){case 0:return new Rae;default:throw R(new Ps(uG+(e.f==null?``+e.g:e.f)))}}function LYe(e,t,n){return!Mc(jv(new ig(null,new kb(e.c,16)),new Qi(new Ku(t,n)))).Bd((ol(),iY))}function RYe(e,t){return xf(eA(H(q(t,(YI(),Y2)),88)),new ku(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function zYe(e,t){for(;e.g==null&&!e.c?eb(e):e.g==null||e.i!=0&&H(e.g[e.i-1],51).Ob();)Lbe(t,dF(e))}function jE(e){for(var t,n=new L(e.a.b);n.ar)}function GYe(e){return Cf(e.c,(eE(),VRt)),iGe(e.a,z(Ip(sA((ek(),c0)))))?new woe:new gfe(e)}function KYe(e){for(;!e.d||!e.d.Ob();)if(e.b&&!Ws(e.b))e.d=H($g(e.b),51);else return null;return e.d}function qYe(e){switch(e.g){case 1:return TW;default:case 2:return 0;case 3:return uH;case 4:return EW}}function JYe(){hz();var e;return lUt||(e=ewe(XR(`M`,!0)),e=lg(XR(`M`,!1),e),lUt=e,lUt)}function LE(){LE=D,kBt=new Ebe(`ELK`,0),ABt=new Ebe(`JSON`,1),OBt=new Ebe(`DOT`,2),jBt=new Ebe(`SVG`,3)}function RE(){RE=D,CNt=new dye(`STACKED`,0),SNt=new dye(`REVERSE_STACKED`,1),W0=new dye(`SEQUENCED`,2)}function zE(){zE=D,KPt=new Rye(QH,0),j2=new Rye(`MIDDLE_TO_MIDDLE`,1),A2=new Rye(`AVOID_OVERLAP`,2)}function BE(){BE=D,QDt=new Wte,$Dt=new Gte,ZDt=new Hte,uZ=new Kte,XDt=new Ute,YDt=(sv(XDt),new te)}function YYe(){YYe=D,qzt=new qd(15),Kzt=new $d((pz(),W6),qzt),V8=s8,B8=p6,Uzt=L6,Gzt=z6,Wzt=R6}function VE(e,t){for(var n,r=t,i=0,a=r.length,o;i=e.b.c.length||(iXe(e,2*t+1),n=2*t+2,n0&&(t.Cd(n),n.i&&aQe(n))}function oXe(e,t,n){for(var r=n-1;r>=0&&e[r]===t[r];r--);return r<0?0:ave(Nb(e[r],$B),Nb(t[r],$B))?-1:1}function sXe(e,t,n){var r,i;this.g=e,this.c=t,this.a=this,this.d=this,i=UKe(n),r=dS(ASt,iB,227,i,0,1),this.b=r}function UE(e,t,n,r,i){for(var a,o=n;o<=i;o++)for(a=t;a<=r;a++)if(LA(e,a,o))return!0;return!1}function cXe(e,t){for(var n,r=e.Zb().Cc().Kc();r.Ob();)if(n=H(r.Pb(),16),n.Hc(t))return!0;return!1}function lXe(e,t,n){var r,i,a,o;for(sv(n),o=!1,a=e.fd(t),i=n.Kc();i.Ob();)r=i.Pb(),a.Rb(r),o=!0;return o}function uXe(e,t){var n,r=H(TT(e.a,4),129);return n=dS(yVt,PK,424,t,0,1),r!=null&&qI(r,0,n,0,r.length),n}function dXe(e,t){var n=new lat(!!(e.f&256),e.i,e.a,e.d,!!(e.f&16),e.j,e.g,t);return e.e??(n.c=e),n}function fXe(e,t){var n;return e===t?!0:V(t,85)?(n=H(t,85),SN(Dg(e),n.vc())):!1}function pXe(e,t,n){for(var r,i=n.Kc();i.Ob();)if(r=H(i.Pb(),44),e.Be(t,r.md()))return!0;return!1}function mXe(e,t,n){return e.d[t.p][n.p]||(w0e(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function hXe(e,t){var n;return!e||e==t||!xp(t,(fz(),NQ))?!1:(n=H(q(t,(fz(),NQ)),10),n!=e)}function WE(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.$l()}}function gXe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e._l()}}function _Xe(e){qFe.call(this,`The given string does not match the expected format for individual spacings.`,e)}function vXe(e,t){var n;t.Ug(`Min Size Preprocessing`,1),n=LN(e),yA(e,($F(),D4),n.a),yA(e,rLt,n.b),t.Vg()}function yXe(e){var t=0,n,r=dS(R3,Gz,8,e.b,0,1);for(n=iA(e,0);n.b!=n.d.c;)r[t++]=H(lx(n),8);return r}function bXe(e,t,n){for(var r=new $c,i,a=iA(n,0);a.b!=a.d.c;)i=H(lx(a),8),Ih(r,new Td(i));lXe(e,t,r)}function xXe(e,t){var n=lO(e,t);return ave(nLe(e,t),0)|Xbe(nLe(e,n),0)?n:lO(Xz,nLe(jg(n,63),1))}function SXe(e,t){var n=H(e.d.Bc(t),16),r;return n?(r=e.e.hc(),r.Gc(n),e.e.d-=n.gc(),n.$b(),r):null}function CXe(e){var t=e.a.c.length;if(t>0)return Pg(t-1,e.a.c.length),Kx(e.a,t-1);throw R(new jpe)}function wXe(e,t,n){if(e>t)throw R(new Ps(fV+e+Ymt+t));if(e<0||t>n)throw R(new dhe(fV+e+Xmt+t+Vmt+n))}function GE(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),OKe(e,t==null?null:(sv(t),t)),e.C&&e.hl(null)}function TXe(e,t){var n=sA((ek(),c0))!=null&&t.Sg()!=null?z(Ip(t.Sg()))/z(Ip(sA(c0))):1;hv(e.b,t,n)}function EXe(e,t){var n,r=e.c[t];if(r!=0)for(e.c[t]=0,e.d-=r,n=t+1;nwW?e-n>wW:n-e>wW}function YXe(e,t){for(var n=0;ni&&(H3e(t.q,i),r=n!=t.q.d)),r}function QXe(e,t){var n,i,a,o,s,l,u=t.i,d=t.j;return i=e.f,a=i.i,o=i.j,s=u-a,l=d-o,n=r.Math.sqrt(s*s+l*l),n}function $Xe(e,t){var n,r=zk(e);return r||(!eVt&&(eVt=new nse),n=(XL(),mtt(t)),r=new cpe(n),_S(r.El(),e)),r}function cD(e,t){var n=H(e.c.Bc(t),16),r;return n?(r=e.hc(),r.Gc(n),e.d-=n.gc(),n.$b(),e.mc(r)):e.jc()}function eZe(e,t){var n,r=hF(e.d,1)!=0;for(n=!0;n;)n=!1,n=t.c.mg(t.e,r),n|=OF(e,t,r,!1),r=!r;vqe(e)}function tZe(e,t,n,r){var i,a;e.a=t,a=+!r,e.f=(i=new x5e(e.c,e.a,n,a),new fat(n,e.a,i,e.e,e.b,e.c==(hw(),Q0)))}function lD(e){var t;return zp(e.a!=e.b),t=e.d.a[e.a],Vp(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function nZe(e){var t;if(e.c!=0)return e.c;for(t=0;t=e.c.b:e.a<=e.c.b))throw R(new Co);return t=e.a,e.a+=e.c.c,++e.b,bD(t)}function iZe(e){var t=new xSe(e.a);return NT(t,e),pE(t,(fz(),WQ),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function aZe(e){return(WR(),F5).Hc(e.j)?z(Ip(q(e,(fz(),t$)))):TE(K(B(R3,1),Gz,8,0,[e.i.n,e.n,e.a])).b}function oZe(e){var t=kd(YNt);return H(q(e,(fz(),AQ)),21).Hc((UF(),oQ))&&Jh(t,(WM(),cX),(mz(),eZ)),t}function sZe(e){var t,n,r,i=new Ao;for(r=new L(e);r.a=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function pZe(e,t){var n,r,i=1;for(n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function dD(e,t){var n,r,i,a=(i=e?zk(e):null,b7e((r=t,i&&i.Gl(),r)));return a==t&&(n=zk(e),n&&n.Gl()),a}function mZe(e,t,n){var r,i=e.f;return e.f=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,0,i,t),n?n.nj(r):n=r),n}function hZe(e,t,n){var r,i=e.b;return e.b=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,3,i,t),n?n.nj(r):n=r),n}function gZe(e,t,n){var r,i=e.a;return e.a=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,1,i,t),n?n.nj(r):n=r),n}function _Ze(e){var t,n,r,i;if(e!=null){for(n=0;n=r||t-129&&e<128?(Dke(),t=e+128,n=AJ[t],!n&&(n=AJ[t]=new yue(e)),n):new yue(e)}function xD(e){var t,n;return e>-129&&e<128?(ng(),t=e+128,n=JSt[t],!n&&(n=JSt[t]=new Di(e)),n):new Di(e)}function CZe(e,t){var n;e.a.c.length>0&&(n=H($h(e.a,e.a.c.length-1),579),ZYe(n,t))||Cf(e.a,new PBe(t))}function wZe(e){Rm();var t=e.d.c-e.e.c,n=H(e.g,154);RC(n.b,new ja(t)),RC(n.c,new Ma(t)),Ax(n.i,new ude(t))}function TZe(e){var t=new Qs;return t.a+=`VerticalSegment `,cd(t,e.e),t.a+=` `,ld(t,hCe(new ahe,new L(e.k))),t.a}function EZe(e,t){for(var n=0,r,i=fO(e,t).Kc();i.Ob();)r=H(i.Pb(),12),n+=q(r,(fz(),KQ))==null?0:1;return n}function SD(e,t,n){for(var r=0,i,a=iA(e,0);a.b!=a.d.c&&(i=z(Ip(lx(a))),!(i>n));)i>=t&&++r;return r}function DZe(e,t){E_(e);try{return e._b(t)}catch(e){if(e=GT(e),V(e,212)||V(e,169))return!1;throw R(e)}}function OZe(e,t){E_(e);try{return e.Hc(t)}catch(e){if(e=GT(e),V(e,212)||V(e,169))return!1;throw R(e)}}function kZe(e,t){E_(e);try{return e.Mc(t)}catch(e){if(e=GT(e),V(e,212)||V(e,169))return!1;throw R(e)}}function CD(e,t){E_(e);try{return e.xc(t)}catch(e){if(e=GT(e),V(e,212)||V(e,169))return null;throw R(e)}}function AZe(e,t){E_(e);try{return e.Bc(t)}catch(e){if(e=GT(e),V(e,212)||V(e,169))return null;throw R(e)}}function wD(e,t){switch(t.g){case 2:case 1:return fO(e,t);case 3:case 4:return VO(fO(e,t))}return iy(),iy(),GJ}function TD(e){var t;return e.Db&64?aF(e):(t=new Kf(aF(e)),t.a+=` (name: `,od(t,e.zb),t.a+=`)`,t.a)}function jZe(e){var t=H(cC(e.c.c,``),233);return t||(t=new bb(fc(dc(new Hn,``),`Other`)),Qk(e.c.c,``,t)),t}function MZe(e,t,n){var r,i=e.sb;return e.sb=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,4,i,t),n?n.nj(r):n=r),n}function NZe(e,t,n){var r,i=e.r;return e.r=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,8,i,e.r),n?n.nj(r):n=r),n}function PZe(e,t,n){var r=new XS(e.e,4,13,(i=t.c,i||(_z(),K7)),null,SA(e,t),!1),i;return n?n.nj(r):n=r,n}function FZe(e,t,n){var r=new XS(e.e,3,13,null,(i=t.c,i||(_z(),K7)),SA(e,t),!1),i;return n?n.nj(r):n=r,n}function ED(e,t){var n=H(t,691),r=n.el();return!r&&n.fl(r=V(t,90)?new Wbe(e,H(t,29)):new zLe(e,H(t,156))),r}function DD(e,t,n){var r;e._i(e.i+1),r=e.Zi(t,n),t!=e.i&&qI(e.g,t,e.g,t+1,e.i-t),P_(e.g,t,r),++e.i,e.Mi(t,n),e.Ni()}function IZe(e,t){var n;return t.a&&(n=t.a.a.length,e.a?ld(e.a,e.b):e.a=new qf(e.d),$Le(e.a,t.a,t.d.length,n)),e}function LZe(e,t){var n;e.c=t,e.a=l$e(t),e.a<54&&(e.f=(n=t.d>1?ZLe(t.a[0],t.a[1]):ZLe(t.a[0],0),Zb(t.e>0?n:VS(n))))}function OD(e,t){var n=new Ae;return e.a.Bd(n)?(Ff(),new Ts(sv(VUe(e,n.a,t)))):(tv(e),Ff(),Ff(),yCt)}function RZe(e,t){var n;e.c.length!=0&&(n=H(Jk(e,dS(CX,nU,10,e.c.length,0,1)),199),Fxe(n,new Xee),EP(n,t))}function zZe(e,t){var n;e.c.length!=0&&(n=H(Jk(e,dS(CX,nU,10,e.c.length,0,1)),199),Fxe(n,new Zee),EP(n,t))}function kD(e,t){return $u(e)?_m(e,t):td(e)?fEe(e,t):ed(e)?(sv(e),Qu(e)===Qu(t)):uje(e)?e.Fb(t):pg(e)?bxe(e,t):Mb(e,t)}function AD(e,t,n){if(t<0)nP(e,n);else{if(!n.rk())throw R(new Ps(VG+n.xe()+HG));H(n,69).wk().Ek(e,e.hi(),t)}}function BZe(e,t,n){if(e<0||t>n)throw R(new js(fV+e+Xmt+t+`, size: `+n));if(e>t)throw R(new Ps(fV+e+Ymt+t))}function jD(e){var t;return e.Db&64?aF(e):(t=new Kf(aF(e)),t.a+=` (source: `,od(t,e.d),t.a+=`)`,t.a)}function VZe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function HZe(e){gz();for(var t,n=$k(),r=0,i=n.length;r=0?pk(e):g_(pk(VS(e))))}function BD(e,t,n,r,i,a){this.e=new to,this.f=(gw(),H0),Cf(this.e,e),this.d=t,this.a=n,this.b=r,this.f=i,this.c=a}function VD(e,t,n){e.n=eg(L9,[Gz,Amt],[376,28],14,[n,Vy(r.Math.ceil(t/32))],2),e.o=t,e.p=n,e.j=t-1>>1,e.k=n-1>>1}function qZe(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function JZe(e,t){for(var n,r=new Mf(e);r.e!=r.i.gc();)if(n=H(cA(r),142),Qu(t)===Qu(n))return!0;return!1}function YZe(e,t,n){var r,i,a=(i=cF(e.b,t),i);return a&&(r=H(JL(KS(e,a),``),29),r)?htt(e,r,t,n):null}function XZe(e,t,n){var r,i,a=(i=cF(e.b,t),i);return a&&(r=H(JL(KS(e,a),``),29),r)?gtt(e,r,t,n):null}function HD(e,t){var n=YC(e.i,t);if(n==null)throw R(new Bs(`Node did not exist in input.`));return dT(t,n),null}function ZZe(e,t){var n=DF(e,t);if(V(n,331))return H(n,35);throw R(new Ps(VG+t+`' is not a valid attribute`))}function UD(e,t,n){var r=e.gc();if(t>r)throw R(new gm(t,r));if(e.Si()&&e.Hc(n))throw R(new Ps(pK));e.Gi(t,n)}function QZe(e,t){t.Ug(`Sort end labels`,1),sl(jv(uC(new ig(null,new kb(e.b,16)),new Pee),new Fee),new Iee),t.Vg()}function WD(){WD=D,D8=new Pu(IV,0),E8=new Pu(NV,1),T8=new Pu(MV,2),w8=new Pu(yht,3),O8=new Pu(`UP`,4)}function GD(){GD=D,G4=new Yye(`P1_STRUCTURE`,0),K4=new Yye(`P2_PROCESSING_ORDER`,1),q4=new Yye(`P3_EXECUTION`,2)}function $Ze(){$Ze=D,qFt=Ik(Ik(Ml(Ik(Ik(Ml(Jh(new mv,(yj(),T2),(bI(),UPt)),E2),zPt),VPt),D2),IPt),HPt)}function eQe(e){switch(H(q(e,(fz(),MQ)),311).g){case 1:pE(e,MQ,(rC(),mQ));break;case 2:pE(e,MQ,(rC(),gQ))}}function tQe(e){switch(e){case 0:return new Zo;case 1:return new eme;case 2:return new tme;default:throw R(new vo)}}function nQe(e){switch(e.g){case 2:return E8;case 1:return T8;case 4:return w8;case 3:return O8;default:return D8}}function KD(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new Bv(t.d,0,t.a,t.b);default:return null}}function qD(e){switch(e.g){case 1:return U5;case 2:return w5;case 3:return C5;case 4:return V5;default:return H5}}function JD(e){switch(e.g){case 1:return V5;case 2:return U5;case 3:return w5;case 4:return C5;default:return H5}}function YD(e){switch(e.g){case 1:return C5;case 2:return V5;case 3:return U5;case 4:return w5;default:return H5}}function rQe(e,t,n,r){switch(t){case 1:return!e.n&&(e.n=new Bg(g7,e,1,7)),e.n;case 2:return e.k}return i4e(e,t,n,r)}function XD(e,t,n){var r,i;return e.Pj()?(i=e.Qj(),r=SP(e,t,n),e.Jj(e.Ij(7,bD(n),r,t,i)),r):SP(e,t,n)}function iQe(e,t){var n,r,i;e.d==null?(++e.e,--e.f):(i=t.ld(),n=t.Bi(),r=(n&Cz)%e.d.length,LVe(e,r,Stt(e,r,n,i)))}function ZD(e,t){var n=(e.Bb&aB)!=0;t?e.Bb|=aB:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,10,n,t))}function QD(e,t){var n=(e.Bb&JB)!=0;t?e.Bb|=JB:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,12,n,t))}function $D(e,t){var n=(e.Bb&qK)!=0;t?e.Bb|=qK:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,15,n,t))}function eO(e,t){var n=(e.Bb&JK)!=0;t?e.Bb|=JK:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,11,n,t))}function aQe(e){var t;e.g&&(t=e.c.kg()?e.f:e.a,eit(t.a,e.o,!0),eit(t.a,e.o,!1),pE(e.o,(sz(),E1),(_M(),u5)))}function oQe(e){var t;if(!e.a)throw R(new Fs(`Cannot offset an unassigned cut.`));t=e.c-e.b,e.b+=t,dPe(e,t),uPe(e,t)}function sQe(e,t){var n=N_(e.k,t);if(n==null)throw R(new Bs(`Port did not exist in input.`));return dT(t,n),null}function cQe(e){for(var t,n=vtt(HC(e)).Kc();n.Ob();)if(t=Lp(n.Pb()),VI(e,t))return Gze(($_e(),VVt),t);return null}function lQe(e){for(var t,n=e.p.a.ec().Kc();n.Ob();)if(t=H(n.Pb(),218),t.f&&e.b[t.c]<-1e-10)return t;return null}function uQe(e){var t,n=W_(new Qs,91);for(t=!0;e.Ob();)t||(n.a+=Dz),t=!1,cd(n,e.Pb());return(n.a+=`]`,n).a}function dQe(e){for(var t=new to,n,r=new L(e.b);r.at?1:e==t?e==0?nO(1/e,1/t):0:isNaN(e)?+!isNaN(t):-1}function pQe(e){var t=e.a[e.c-1&e.a.length-1];return t==null?null:(e.c=e.c-1&e.a.length-1,P_(e.a,e.c,null),t)}function mQe(e){var t,n,r=0;for(n=e.length,t=0;t=1?E8:w8):n}function bQe(e){switch(H(q(e,(sz(),q$)),223).g){case 1:return new dre;case 3:return new gre;default:return new ure}}function aO(e){if(e.c)aO(e.c);else if(e.d)throw R(new Fs(`Stream already terminated, can't be modified or used`))}function oO(e,t,n){var r=e.a.get(t);return e.a.set(t,n===void 0?null:n),r===void 0?(++e.c,++e.b.g):++e.d,r}function xQe(e,t,n){for(var r,i=e.a.ec().Kc();i.Ob();)if(r=H(i.Pb(),10),WT(n,H($h(t,r.p),16)))return r;return null}function SQe(e,t,n){var r=0;return t&&(Pd(e.a)?r+=t.f.a/2:r+=t.f.b/2),n&&(Pd(e.a)?r+=n.f.a/2:r+=n.f.b/2),r}function CQe(e,t,n){var r=n;!r&&(r=xke(new is,0)),r.Ug(Kht,2),A0e(e.b,t,r.eh(1)),Flt(e,t,r.eh(1)),bft(t,r.eh(1)),r.Vg()}function wQe(e,t,n){var r=(Cc(),i=new joe,i),i;return kGe(r,t),XC(r,n),e&&_S((!e.a&&(e.a=new Tf(c7,e,5)),e.a),r),r}function TQe(e){var t;return e.Db&64?aF(e):(t=new Kf(aF(e)),t.a+=` (identifier: `,od(t,e.k),t.a+=`)`,t.a)}function sO(e,t){var n=(e.Bb&UG)!=0;t?e.Bb|=UG:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,18,n,t))}function EQe(e,t){var n=(e.Bb&UG)!=0;t?e.Bb|=UG:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,18,n,t))}function cO(e,t){var n=(e.Bb&Kz)!=0;t?e.Bb|=Kz:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,16,n,t))}function DQe(e,t){var n=(e.Bb&XB)!=0;t?e.Bb|=XB:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&ST(e,new Lx(e,1,20,n,t))}function OQe(e){var t=dS(P9,yB,28,2,15,1);return e-=XB,t[0]=(e>>10)+ZB&xB,t[1]=(e&1023)+56320&xB,Ak(t,0,t.length)}function kQe(e){var t=cN(e);return t>34028234663852886e22?KB:t<-34028234663852886e22?qB:t}function lO(e,t){var n;return Sd(e)&&Sd(t)&&(n=e+t,WB`+Rb(t.c):`e_`+Nw(t),e.b&&e.c?Rb(e.b)+`->`+Rb(e.c):`e_`+Nw(e))}function jQe(e,t){return _m(t.b&&t.c?Rb(t.b)+`->`+Rb(t.c):`e_`+Nw(t),e.b&&e.c?Rb(e.b)+`->`+Rb(e.c):`e_`+Nw(e))}function mO(e,t){return of(),vw(fB),r.Math.abs(e-t)<=fB||e==t||isNaN(e)&&isNaN(t)?0:et?1:xd(isNaN(e),isNaN(t))}function hO(){hO=D,L8=new Iu(IV,0),F8=new Iu(`POLYLINE`,1),P8=new Iu(`ORTHOGONAL`,2),I8=new Iu(`SPLINES`,3)}function gO(){gO=D,cLt=new qye(`ASPECT_RATIO_DRIVEN`,0),lLt=new qye(`MAX_SCALE_DRIVEN`,1),sLt=new qye(`AREA_DRIVEN`,2)}function _O(e,t,n){var r;try{OYe(e,t,n)}catch(e){throw e=GT(e),V(e,606)?(r=e,R(new aVe(r))):R(e)}return t}function MQe(e){for(var t,n=0,r=e.length;nt&&r.Ne(e[a-1],e[a])>0;--a)o=e[a],P_(e,a,e[a-1]),P_(e,a-1,o)}function EO(e,t){var n=t.f,r,i,a,o;if(Qk(e.c.d,n,t),t.g!=null)for(i=t.g,a=0,o=i.length;at){nRe(n);break}}__(n,t)}function FQe(e,t){var n,i=z(Ip(uk(Xb(t),(sz(),z1))));n=r.Math.max(0,i/2-.5),Fj(t,n,1),Cf(e,new zve(t,n))}function IQe(e,t,n){var r;n.Ug(`Straight Line Edge Routing`,1),n.dh(t,Dvt),r=H(eF(t,(Up(),o4)),27),Zct(e,r),n.dh(t,zW)}function LQe(e,t){e.n.c.length==0&&Cf(e.n,new Hy(e.s,e.t,e.i)),Cf(e.b,t),FA(H($h(e.n,e.n.c.length-1),209),t),lct(e,t)}function DO(e){var t;this.a=(t=H(e.e&&e.e(),9),new Om(t,H(im(t,t.length),9),0)),this.b=dS($q,Oz,1,this.a.a.length,5,1)}function OO(e){var t;return Array.isArray(e)&&e.Tm===E?Ec(ZE(e))+`@`+(t=Nw(e)>>>0,t.toString(16)):e.toString()}function RQe(e,t){return e.h==BB&&e.m==0&&e.l==0?(t&&(vJ=gf(0,0,0)),yd((aC(),bJ))):(t&&(vJ=gf(e.l,e.m,e.h)),gf(0,0,0))}function zQe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function BQe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function kO(e,t,n,r){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return rQe(e,t,n,r)}function AO(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw R(new Ps(`Node `+t+` not part of edge `+e))}function VQe(e,t){var n=DF(e.Dh(),t);if(V(n,102))return H(n,19);throw R(new Ps(VG+t+`' is not a valid reference`))}function jO(e,t,n,r){if(t<0)gF(e,n,r);else{if(!n.rk())throw R(new Ps(VG+n.xe()+HG));H(n,69).wk().Ck(e,e.hi(),t,r)}}function MO(e){var t;if(e.b){if(MO(e.b),e.b.d!=e.c)throw R(new So)}else e.d.dc()&&(t=H(e.f.c.xc(e.e),16),t&&(e.d=t))}function NO(e){qp();for(var t=e.o.b,n,r=H(H(Wx(e.r,(WR(),V5)),21),87).Kc(),i;r.Ob();)n=H(r.Pb(),117),i=n.e,i.b+=t}function HQe(e){var t,n,r;for(this.a=new Cd,r=new L(e);r.a=i)return t.c+n;return t.c+t.b.gc()}function WQe(e,t){Hp();var n,r=SUe(e),i=t,a;for(jS(r,0,r.length,i),n=0;n0&&(r+=i,++n);return n>1&&(r+=e.d*(n-1)),r}function GQe(e){var t,n,r,i,a=q6e(e);return n=Yge(e.c),r=!n,r&&(i=new ai,xC(a,`knownLayouters`,i),t=new Gfe(i),Ax(e.c,t)),a}function RO(e){var t,n,r=new Xs;for(r.a+=`[`,t=0,n=e.gc();t0&&(Ob(t-1,e.length),e.charCodeAt(t-1)==58)&&!PO(e,S7,C7))}function HO(e,t){var n;return Qu(e)===Qu(t)?!0:V(t,92)?(n=H(t,92),e.e==n.e&&e.d==n.d&&Yze(e,n.a)):!1}function UO(e){switch(WR(),e.g){case 4:return w5;case 1:return C5;case 3:return V5;case 2:return U5;default:return H5}}function qQe(e){var t,n;if(e.b)return e.b;for(n=$J?null:e.d;n;){if(t=$J?null:n.b,t)return t;n=$J?null:n.d}return il(),NCt}function WO(e){var t,n,r=z(Ip(e.a.of((pz(),m8))));for(n=new L(e.a.Sf());n.a>5,t=e&31,r=dS(F9,jB,28,n+1,15,1),r[n]=1<3;)i*=10,--a;e=(e+(i>>1))/i|0}return r.i=e,!0}function XO(e,t){var n=(e.i??ZI(e),e.i),r=t.Lj(),i;if(r!=-1){for(i=n.length;r=0;--r)for(t=n[r],i=0;i>1,this.k=t-1>>1}function v$e(e){kS(),H(e.of((pz(),V6)),181).Hc((OI(),r7))&&(H(e.of(i8),181).Fc((rP(),x5)),H(e.of(V6),181).Mc(r7))}function $O(e){var t=e.d==(PN(),TZ),n=c6e(e);t&&!n||!t&&n?pE(e.a,(sz(),M$),(TA(),U3)):pE(e.a,(sz(),M$),(TA(),H3))}function ek(){ek=D,Tl(),c0=(sz(),Y1),l0=Gx(K(B(x3,1),svt,149,0,[R1,z1,V1,H1,G1,K1,q1,J1,Z1,$1,B1,U1,X1]))}function y$e(e,t){var n=H(Ox(e,SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15);return n.Qc(Yke(n.gc()))}function tk(e,t){var n,r=new Yi(e.a.ad(t,!0));if(r.a.gc()<=1)throw R(new bo);return n=r.a.ec().Kc(),n.Pb(),H(n.Pb(),40)}function nk(e,t,n){var r=z(e.p[t.i.p])+z(e.d[t.i.p])+t.n.b+t.a.b;return z(e.p[n.i.p])+z(e.d[n.i.p])+n.n.b+n.a.b-r}function b$e(e,t){var n;return e.i>0&&(t.lengthe.i&&P_(t,e.i,null),t}function rk(e){var t;return e.Db&64?TD(e):(t=new Kf(TD(e)),t.a+=` (instanceClassName: `,od(t,e.D),t.a+=`)`,t.a)}function ik(e){var t,n,r,i=0;for(n=0,r=e.length;n0&&(e._j(),r=t==null?0:Nw(t),i=(r&Cz)%e.d.length,n=Stt(e,i,r,t),n!=-1)}function C$e(e,t){var n,i;e.a=lO(e.a,1),e.c=r.Math.min(e.c,t),e.b=r.Math.max(e.b,t),e.d+=t,n=t-e.f,i=e.e+n,e.f=i-e.e-n,e.e=i}function ok(e,t){switch(t){case 3:QC(e,0);return;case 4:$C(e,0);return;case 5:ew(e,0);return;case 6:tw(e,0);return}xZe(e,t)}function sk(e,t){switch(t.g){case 1:return dh(e.j,(nT(),jX));case 2:return dh(e.j,(nT(),QEt));default:return iy(),iy(),GJ}}function w$e(e){O_();var t=e.Pc();switch(t.length){case 0:return oJ;case 1:return new Qh(E_(t[0]));default:return new VPe(MQe(t))}}function T$e(e,t){e.Xj();try{e.d.bd(e.e++,t),e.f=e.d.j,e.g=-1}catch(e){throw e=GT(e),V(e,77)?R(new So):R(e)}}function ck(){ck=D,_Ht=new qn,uHt=new ise,dHt=new ase,fHt=new ose,pHt=new sse,mHt=new cse,hHt=new lse,gHt=new use,vHt=new Jn}function lk(e,t){fxe();var n=$p((ws(),ws(),pJ)),r=null;return t==n&&(r=H(Fy(LSt,e),624)),r||(r=new NMe(e),t==n&&db(LSt,e,r)),r}function E$e(e){return wA(),(e.q?e.q:(iy(),iy(),KJ))._b((sz(),m1))?H(q(e,m1),203):H(q($_(e),h1),203)}function uk(e,t){var n,r=null;return xp(e,(sz(),W1))&&(n=H(q(e,W1),96),n.pf(t)&&(r=n.of(t))),r??=q($_(e),t),r}function D$e(e,t){var n,r,i;return V(t,44)?(n=H(t,44),r=n.ld(),i=CD(e.Rc(),r),X_(i,n.md())&&(i!=null||e.Rc()._b(r))):!1}function dk(e,t){var n,r,i;return e.f>0&&(e._j(),r=t==null?0:Nw(t),i=(r&Cz)%e.d.length,n=j9e(e,i,r,t),n)?n.md():null}function fk(e,t,n){var r,i,a;return e.Pj()?(r=e.i,a=e.Qj(),DD(e,r,t),i=e.Ij(3,null,t,r,a),n?n.nj(i):n=i):DD(e,e.i,t),n}function O$e(e,t,n){var r=new XS(e.e,4,10,(i=t.c,V(i,90)?H(i,29):(_z(),q7)),null,SA(e,t),!1),i;return n?n.nj(r):n=r,n}function k$e(e,t,n){var r=new XS(e.e,3,10,null,(i=t.c,V(i,90)?H(i,29):(_z(),q7)),SA(e,t),!1),i;return n?n.nj(r):n=r,n}function A$e(e){qp();var t=new Td(H(e.e.of((pz(),z6)),8));return e.B.Hc((OI(),Q5))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function pk(e){uI();var t,n=Tg(e);return t=Tg(jg(e,32)),t==0?n>10||n<0?new Sx(1,n):aCt[n]:new lLe(n,t)}function mk(e,t){var n;return Sd(e)&&Sd(t)&&(n=e%t,WB=0?a=a.a[1]:(i=a,a=a.a[0])}return i}function Tk(e,t,n){for(var r,i=null,a=e.b;a;){if(r=e.a.Ne(t,a.d),n&&r==0)return a;r<=0?a=a.a[0]:(i=a,a=a.a[1])}return i}function Ek(e,t,n,r){var i=!1,a,o;return Mut(e.f,n,r)&&(E1e(e.f,e.a[t][n],e.a[t][r]),a=e.a[t],o=a[r],a[r]=a[n],a[n]=o,i=!0),i}function I$e(e,t,n){var r,i=H(N_(e.b,n),183),a,o;for(r=0,o=new L(t.j);o.a>5,r,i,a;return t&=31,i=e.d+n+(t==0?0:1),r=dS(F9,jB,28,i,15,1),AM(r,e.a,n,t),a=new c_(e.e,i,r),Gb(a),a}function R$e(e,t){for(var n,r=new Mg(Vf(bO(e).a.Kc(),new f)),i;GP(r);)if(n=H(Rx(r),18),i=n.d.i,i.c==t)return!1;return!0}function z$e(e,t,n){var i,a,o,s=e.k,l=t.k;return i=n[s.g][l.g],a=Ip(uk(e,i)),o=Ip(uk(t,i)),r.Math.max((sv(a),a),(sv(o),o))}function B$e(){return Error.stackTraceLimit>0?(r.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):`stack`in Error()}function V$e(e,t){return of(),of(),vw(fB),(r.Math.abs(e-t)<=fB||e==t||isNaN(e)&&isNaN(t)?0:et?1:xd(isNaN(e),isNaN(t)))>0}function Ok(e,t){return of(),of(),vw(fB),(r.Math.abs(e-t)<=fB||e==t||isNaN(e)&&isNaN(t)?0:et?1:xd(isNaN(e),isNaN(t)))<0}function H$e(e,t){return of(),of(),vw(fB),(r.Math.abs(e-t)<=fB||e==t||isNaN(e)&&isNaN(t)?0:et?1:xd(isNaN(e),isNaN(t)))<=0}function kk(e,t){for(var n=0;!t[n]||t[n]==``;)n++;for(var r=t[n++];n0&&this.b>0&&(this.g=og(this.c,this.b,this.a))}function Z$e(e,t){var n=e.a,r;t=String(t),n.hasOwnProperty(t)&&(r=n[t]);var i=(gE(),_J)[typeof r];return i?i(r):qXe(typeof r)}function Nk(e){var t,n,r=null;if(t=sK in e.a,n=!t,n)throw R(new Bs(`Every element must have an id.`));return r=iP(Jy(e,sK)),r}function Pk(e){var t,n=k5e(e);for(t=null;e.c==2;)cz(e),t||(t=(hz(),hz(),++M9,new rf(2)),lR(t,n),n=t),n.Jm(k5e(e));return n}function Fk(e,t){var n,r,i;return e._j(),r=t==null?0:Nw(t),i=(r&Cz)%e.d.length,n=j9e(e,i,r,t),n?(ZGe(e,n),n.md()):null}function Q$e(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+r.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function e1e(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw R(new Ps(`Input edge is not connected to the input port.`))}function t1e(e){if(Bk(bG,e))return sp(),CJ;if(Bk(xG,e))return sp(),SJ;throw R(new Ps(`Expecting true or false`))}function n1e(e){switch(typeof e){case Ypt:return IE(e);case Jpt:return vd(e);case xz:return dTe(e);default:return e==null?0:rp(e)}}function Ik(e,t){if(e.a<0)throw R(new Fs(`Did not call before(...) or after(...) before calling add(...).`));return iwe(e,e.a,t),e}function r1e(e){return ZFe(),V(e,162)?H(N_(gVt,fCt),295).Rg(e):Jg(gVt,ZE(e))?H(N_(gVt,ZE(e)),295).Rg(e):null}function Lk(e){var t,n;return e.Db&32||(n=(t=H(TT(e,16),29),M_(t||e.ii())-M_(e.ii())),n!=0&&Rk(e,32,dS($q,Oz,1,n,5,1))),e}function Rk(e,t,n){var r;(e.Db&t)==0?n!=null&&zrt(e,t,n):n==null?set(e,t):(r=YA(e,t),r==-1?e.Eb=n:P_(dw(e.Eb),r,n))}function i1e(e,t,n,r){var i,a;t.c.length!=0&&(i=ont(n,r),a=Q7e(t),sl(PC(new ig(null,new kb(a,1)),new En),new BNe(e,n,i,r)))}function a1e(e,t){var n,r=e.a.length-1,i,a;return n=t-e.b&r,a=e.c-t&r,i=e.c-e.b&r,Vp(n=a?(FXe(e,t),-1):(PXe(e,t),1)}function zk(e){var t,n,r=e.Jh();if(!r)for(t=0,n=e.Ph();n;n=n.Ph()){if(++t>jmt)return n.Qh();if(r=n.Jh(),r||n==e)break}return r}function o1e(e,t){var n;return Qu(t)===Qu(e)?!0:!V(t,21)||(n=H(t,21),n.gc()!=e.gc())?!1:e.Ic(n)}function s1e(e,t){return e.et.e?1:e.ft.f?1:Nw(e)-Nw(t)}function Bk(e,t){return sv(e),t==null?!1:_m(e,t)?!0:e.length==t.length&&_m(e.toLowerCase(),t.toLowerCase())}function Vk(e){var t,n;return uD(e,-129)>0&&uD(e,128)<0?(tg(),t=Tg(e)+128,n=MJ[t],!n&&(n=MJ[t]=new Ei(e)),n):new Ei(e)}function Hk(){Hk=D,yX=new iu(QH,0),HEt=new iu(`INSIDE_PORT_SIDE_GROUPS`,1),_X=new iu(`GROUP_MODEL_ORDER`,2),vX=new iu(qht,3)}function c1e(e){var t;return e.b||rge(e,(t=XTe(e.e,e.a),!t||!_m(xG,dk((!t.b&&(t.b=new Ep((_z(),Q7),t9,t)),t.b),`qualified`)))),e.c}function l1e(e,t){for(var n=(Ob(t,e.length),e.charCodeAt(t)),r=t+1;r2e3&&(FSt=e,dJ=r.setTimeout(Zge,10))),uJ++==0&&(CWe((Cs(),ISt)),!0)}function A1e(e,t,n){var r;(FCt?(qQe(e),1):ICt||LCt?(il(),1):eY&&(il(),0))&&(r=new BEe(t),r.b=n,W8e(e,r))}function j1e(e,t){var n=!e.A.Hc((xk(),J5))||e.q==(_M(),d5);e.u.Hc((rP(),v5))?n?uft(e,t):zdt(e,t):e.u.Hc(b5)&&(n?_dt(e,t):jft(e,t))}function M1e(e){var t;Qu(eF(e,(pz(),T6)))===Qu((gD(),U8))&&(ib(e)?(t=H(eF(ib(e),T6),346),yA(e,T6,t)):yA(e,T6,W8))}function N1e(e){var t,n;return xp(e.d.i,(sz(),x1))?(t=H(q(e.c.i,x1),17),n=H(q(e.d.i,x1),17),hf(t.a,n.a)>0):!1}function P1e(e,t,n){return new Bv(r.Math.min(e.a,t.a)-n/2,r.Math.min(e.b,t.b)-n/2,r.Math.abs(e.a-t.a)+n,r.Math.abs(e.b-t.b)+n)}function F1e(e){var t;this.d=new to,this.j=new Sc,this.g=new Sc,t=e.g.b,this.f=H(q($_(t),(sz(),W$)),88),this.e=z(Ip(dA(t,G1)))}function Gk(e){this.d=new to,this.e=new Ex,this.c=dS(F9,jB,28,(WR(),K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5])).length,15,1),this.b=e}function I1e(e,t,n){var r=n[e.g][t];switch(e.g){case 1:case 3:return new ku(0,r);case 2:case 4:return new ku(r,0);default:return null}}function Kk(e,t,n){var r,i=H(Ny(t.f),205);try{i.rf(e,n),rv(t.f,i)}catch(e){throw e=GT(e),V(e,103)?(r=e,R(r)):R(e)}}function L1e(e,t,n){var r=null,i,a,o,s=gut(_w(),t),l;return a=null,s&&(i=null,l=rut(s,n),o=null,l!=null&&(o=e.qf(s,l)),i=o,a=i),r=a,r}function qk(e,t,n,r){var i=e.length;if(t>=i)return i;for(t=t>0?t:0;tr&&P_(t,r,null),t}function R1e(e,t){var n,r=e.a.length;for(t.lengthr&&P_(t,r,null),t}function Yk(e,t){var n,r;if(++e.j,t!=null&&(n=(r=e.a.Cb,V(r,99)?H(r,99).th():null),kP(t,n))){Rk(e.a,4,n);return}Rk(e.a,4,H(t,129))}function Xk(e){var t;if(e==null)return null;if(t=Ctt(FL(e,!0)),t==null)throw R(new $me(`Invalid hexBinary value: '`+e+`'`));return t}function Zk(e,t,n){var r;t.a.length>0&&(Cf(e.b,new oke(t.a,n)),r=t.a.length,0r&&(t.a+=BSe(dS(P9,yB,28,-r,15,1))))}function z1e(e,t,n){var r,i,a;if(!n[t.d])for(n[t.d]=!0,i=new L(QE(t));i.a=e.b>>1)for(r=e.c,n=e.b;n>t;--n)r=r.b;else for(r=e.a.a,n=0;n=0?e.Wh(i):_P(e,r)):n<0?_P(e,r):H(r,69).wk().Bk(e,e.hi(),n)}function X1e(e){var t,n,r=(!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),e.o);for(n=r.c.Kc();n.e!=n.i.gc();)t=H(n.Yj(),44),t.md();return uS(r)}function sA(e){var t;if(V(e.a,4)){if(t=r1e(e.a),t==null)throw R(new Fs(yyt+e.b+`'. `+vyt+(Rp(vVt),vVt.k)+yG));return t}return e.a}function Z1e(e,t){var n,r;if(e.j.length!=t.j.length)return!1;for(n=0,r=e.j.length;n=64&&t<128&&(i=Pb(i,kg(1,t-64)));return i}function dA(e,t){var n,r=null;return xp(e,(pz(),f8))&&(n=H(q(e,f8),96),n.pf(t)&&(r=n.of(t))),r==null&&$_(e)&&(r=q($_(e),t)),r}function Q1e(e,t){var n=H(q(e,(sz(),i1)),75);return MSe(t,WEt)?n?Qv(n):(n=new $o,pE(e,i1,n)):n&&pE(e,i1,null),n}function fA(){fA=D,xTt=(pz(),xzt),hTt=C6,dTt=f6,gTt=W6,yTt=(J4e(),iwt),vTt=nwt,bTt=owt,_Tt=twt,pTt=(jXe(),sTt),fTt=VY,mTt=lTt,HY=uTt}function pA(e){switch(R_e(),this.c=new to,this.d=e,e.g){case 0:case 2:this.a=gv(VEt),this.b=KB;break;case 3:case 1:this.a=VEt,this.b=qB}}function $1e(e){var t;vm(H(q(e,(sz(),E1)),101))&&(t=e.b,F9e((Db(0,t.c.length),H(t.c[0],30))),F9e(H($h(t,t.c.length-1),30)))}function e0e(e,t){t.Ug(`Self-Loop post-processing`,1),sl(jv(jv(uC(new ig(null,new kb(e.b,16)),new Qte),new $te),new ene),new tne),t.Vg()}function t0e(e,t,n){var r,i;if(e.c)ew(e.c,e.c.i+t),tw(e.c,e.c.j+n);else for(i=new L(e.b);i.a=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function hA(){hA=D,rNt=new yu(lvt,0),tNt=new yu(ygt,1),nNt=new yu(`LINEAR_SEGMENTS`,2),E0=new yu(`BRANDES_KOEPF`,3),D0=new yu(cvt,4)}function gA(){gA=D,IY=new Zl(VV,0),rTt=new Zl(bht,1),LY=new Zl(HV,2),RY=new Zl(xht,3),IY.a=!1,rTt.a=!0,LY.a=!1,RY.a=!0}function _A(){_A=D,jY=new Yl(VV,0),AY=new Yl(bht,1),MY=new Yl(HV,2),NY=new Yl(xht,3),jY.a=!1,AY.a=!0,MY.a=!1,NY.a=!0}function vA(e,t,n,r){var i;return n>=0?e.Sh(t,n,r):(e.Ph()&&(r=(i=e.Fh(),i>=0?e.Ah(r):e.Ph().Th(e,-1-i,null,r))),e.Ch(t,n,r))}function l0e(e,t){switch(t){case 7:!e.e&&(e.e=new hm(u7,e,7,4)),dR(e.e);return;case 8:!e.d&&(e.d=new hm(u7,e,8,5)),dR(e.d);return}ok(e,t)}function yA(e,t,n){return n==null?(!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),Fk(e.o,t)):(!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),qj(e.o,t,n)),e}function u0e(e,t){iy();var n=e,r,i,a=t;for(V(e,21)&&!V(t,21)&&(n=t,a=e),i=n.Kc();i.Ob();)if(r=i.Pb(),a.Hc(r))return!1;return!0}function d0e(e,t,n,r){return t.an.b)}function f0e(e,t){return $u(e)?!!ySt[t]:e.Sm?!!e.Sm[t]:td(e)?!!Qq[t]:ed(e)?!!vSt[t]:!1}function p0e(e){var t=e.a;do t=H(Rx(new Mg(Vf(yO(t).a.Kc(),new f))),18).c.i,t.k==(sN(),DX)&&e.b.Fc(t);while(t.k==(sN(),DX));e.b=VO(e.b)}function m0e(e,t){var n,i,a=e;for(i=new Mg(Vf(yO(t).a.Kc(),new f));GP(i);)n=H(Rx(i),18),n.c.i.c&&(a=r.Math.max(a,n.c.i.c.p));return a}function h0e(e,t){var n,r,i=0;for(r=H(H(Wx(e.r,t),21),87).Kc();r.Ob();)n=H(r.Pb(),117),i+=n.d.d+n.b.Mf().b+n.d.a,r.Ob()&&(i+=e.w);return i}function g0e(e,t){var n,r,i=0;for(r=H(H(Wx(e.r,t),21),87).Kc();r.Ob();)n=H(r.Pb(),117),i+=n.d.b+n.b.Mf().a+n.d.c,r.Ob()&&(i+=e.w);return i}function _0e(e){var t,n,r=0,i=LF(e);if(i.c.length==0)return 1;for(n=new L(i);n.a=0?e.Lh(o,n,!0):DP(e,a,n)):H(a,69).wk().yk(e,e.hi(),i,n,r)}function S0e(e,t,n,r){var i=HZe(t.pf((pz(),F6))?H(t.of(F6),21):e.j);i!=(gz(),Uwt)&&(!n||Y$e(i))&&wN(wtt(e,i,r),t)}function C0e(e){switch(e.g){case 1:return RT(),kY;case 3:return RT(),OY;case 2:return RT(),Jwt;case 4:return RT(),qwt;default:return null}}function w0e(e,t,n){if(e.e)switch(e.b){case 1:oPe(e.c,t,n);break;case 0:sPe(e.c,t,n)}else xze(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function T0e(e){var t,n;if(e==null)return null;for(n=dS(CX,Gz,199,e.length,0,2),t=0;t=0)return i;if(e.ol()){for(r=0;r=i)throw R(new gm(t,i));if(e.Si()&&(r=e.dd(n),r>=0&&r!=t))throw R(new Ps(pK));return e.Xi(t,n)}function D0e(e,t){if(this.a=H(E_(e),253),this.b=H(E_(t),253),e.Ed(t)>0||e==(cs(),iJ)||t==(Cme(),aJ))throw R(new Ps(`Invalid range: `+Tze(e,t)))}function O0e(e){var t,n;for(this.b=new to,this.c=e,this.a=!1,n=new L(e.a);n.a0),(t&-t)==t)return Vy(t*hF(e,31)*4656612873077393e-25);do n=hF(e,31),r=n%t;while(n-r+(t-1)<0);return Vy(r)}function z0e(e,t,n){switch(n.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function EA(e,t,n,r){for(var i=t,a;i1&&(a=k0e(e,t)),a}function H0e(e){var t=z(Ip(eF(e,(pz(),v8))))*r.Math.sqrt((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a).i);return new ku(t,t/z(Ip(eF(e,_8))))}function U0e(e){var t;return e.f&&e.f.Vh()&&(t=H(e.f,54),e.f=H(dD(e,t),84),e.f!=t&&e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,9,8,t,e.f))),e.f}function W0e(e){var t;return e.i&&e.i.Vh()&&(t=H(e.i,54),e.i=H(dD(e,t),84),e.i!=t&&e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,9,7,t,e.i))),e.i}function OA(e){var t;return e.b&&e.b.Db&64&&(t=e.b,e.b=H(dD(e,t),19),e.b!=t&&e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,9,21,t,e.b))),e.b}function G0e(e,t){var n,r,i;e.d==null?(++e.e,++e.f):(r=t.Bi(),Vnt(e,e.f+1),i=(r&Cz)%e.d.length,n=e.d[i],!n&&(n=e.d[i]=e.dk()),n.Fc(t),++e.f)}function K0e(e,t,n){var r;return t.tk()?!1:t.Ik()==-2?t.qk()==e.e.Dh()&&n==null:(r=t.ik(),r==null?n==null:kD(r,n))}function q0e(){var e;Sw(16,cmt),e=UKe(16),this.b=dS(TSt,iB,303,e,0,1),this.c=dS(TSt,iB,303,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function kA(e){om.call(this),this.k=(sN(),OX),this.j=(Sw(6,sB),new aS(6)),this.b=(Sw(2,sB),new aS(2)),this.d=new Jo,this.f=new Xo,this.a=e}function J0e(e){var t,n;e.c.length<=1||(t=Oit(e,(WR(),V5)),F5e(e,H(t.a,17).a,H(t.b,17).a),n=Oit(e,U5),F5e(e,H(n.a,17).a,H(n.b,17).a))}function Y0e(e,t,n){var r,i=e.a.b;for(r=i.c.length;r102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function a2e(e,t){if(e==null)throw R(new Is(`null key in entry: null=`+t));if(t==null)throw R(new Is(`null value in entry: `+e+`=null`))}function o2e(e,t){for(var n,r;e.Ob();)if(!t.Ob()||(n=e.Pb(),r=t.Pb(),!(Qu(n)===Qu(r)||n!=null&&kD(n,r))))return!1;return!t.Ob()}function s2e(e,t){var n=K(B(z9,1),QB,28,15,[rD(e.a[0],t),rD(e.a[1],t),rD(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function c2e(e,t){var n=K(B(z9,1),QB,28,15,[iD(e.a[0],t),iD(e.a[1],t),iD(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function l2e(e,t,n){vm(H(q(t,(sz(),E1)),101))||(ABe(e,t,mN(t,n)),ABe(e,t,mN(t,(WR(),V5))),ABe(e,t,mN(t,w5)),iy(),ff(t.j,new Cde(e)))}function u2e(e){var t,n;for(e.c||qlt(e),n=new $o,t=new L(e.a),W(t);t.a0&&(Ob(0,t.length),t.charCodeAt(0)==43)?(Ob(1,t.length+1),t.substr(1)):t))}function w2e(e){var t;return e==null?null:new Kd((t=FL(e,!0),t.length>0&&(Ob(0,t.length),t.charCodeAt(0)==43)?(Ob(1,t.length+1),t.substr(1)):t))}function T2e(e,t,n,r,i,a,o,s){var l,u;r&&(l=r.a[0],l&&T2e(e,t,n,l,i,a,o,s),l4e(e,n,r.d,i,a,o,s)&&t.Fc(r),u=r.a[1],u&&T2e(e,t,n,u,i,a,o,s))}function LA(e,t,n){try{return nd(iqe(e,t,n),1)}catch(r){throw r=GT(r),V(r,333)?R(new js(Cht+e.o+`*`+e.p+wht+t+Dz+n+WV)):R(r)}}function E2e(e,t,n){try{return nd(iqe(e,t,n),0)}catch(r){throw r=GT(r),V(r,333)?R(new js(Cht+e.o+`*`+e.p+wht+t+Dz+n+WV)):R(r)}}function RA(e,t,n){try{return nd(iqe(e,t,n),2)}catch(r){throw r=GT(r),V(r,333)?R(new js(Cht+e.o+`*`+e.p+wht+t+Dz+n+WV)):R(r)}}function zA(e,t){if(e.g==-1)throw R(new yo);e.Xj();try{e.d.hd(e.g,t),e.f=e.d.j}catch(e){throw e=GT(e),V(e,77)?R(new So):R(e)}}function D2e(e){for(var t,n,r=new L(e.b),i,a;r.aa&&P_(t,a,null),t}function VA(e,t){var n,r=e.gc();if(t==null){for(n=0;n0&&(l+=i),u[d]=o,o+=s*(l+r)}function F2e(e){var t,n,r=e.f;for(e.n=dS(z9,QB,28,r,15,1),e.d=dS(z9,QB,28,r,15,1),t=0;t0?e.c:0),++a;e.b=i,e.d=o}function I2e(e,t){var n=K(B(z9,1),QB,28,15,[L0e(e,(GC(),dY),t),L0e(e,fY,t),L0e(e,pY,t)]);return e.f&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function L2e(e,t,n){var r;try{sI(e,t+e.j,n+e.k,!1,!0)}catch(e){throw e=GT(e),V(e,77)?(r=e,R(new js(r.g+GV+t+Dz+n+`).`))):R(e)}}function R2e(e,t,n){var r;try{sI(e,t+e.j,n+e.k,!0,!1)}catch(e){throw e=GT(e),V(e,77)?(r=e,R(new js(r.g+GV+t+Dz+n+`).`))):R(e)}}function z2e(e){var t;xp(e,(sz(),f1))&&(t=H(q(e,f1),21),t.Hc((tF(),Z8))?(t.Mc(Z8),t.Fc($8)):t.Hc($8)&&(t.Mc($8),t.Fc(Z8)))}function B2e(e){var t;xp(e,(sz(),f1))&&(t=H(q(e,f1),21),t.Hc((tF(),i5))?(t.Mc(i5),t.Fc(n5)):t.Hc(n5)&&(t.Mc(n5),t.Fc(i5)))}function V2e(e,t,n,r){var i,a,o,s;return e.a??Z8e(e,t),o=t.b.j.c.length,a=n.d.p,s=r.d.p,i=s-1,i<0&&(i=o-1),a<=i?e.a[i]-e.a[a]:e.a[o-1]-e.a[a]+e.a[i]}function H2e(e){var t,n;if(!e.b)for(e.b=nx(H(e.f,27).kh().i),n=new Mf(H(e.f,27).kh());n.e!=n.i.gc();)t=H(cA(n),135),Cf(e.b,new Fme(t));return e.b}function U2e(e){var t,n;if(!e.e)for(e.e=nx(wNe(H(e.f,27)).i),n=new Mf(wNe(H(e.f,27)));n.e!=n.i.gc();)t=H(cA(n),123),Cf(e.e,new vfe(t));return e.e}function nj(e){var t,n;if(!e.a)for(e.a=nx(sy(H(e.f,27)).i),n=new Mf(sy(H(e.f,27)));n.e!=n.i.gc();)t=H(cA(n),27),Cf(e.a,new XCe(e,t));return e.a}function rj(e){var t;if(!e.C&&(e.D!=null||e.B!=null)){if(t=sdt(e),t)e.hl(t);else try{e.hl(null)}catch(e){if(e=GT(e),!V(e,63))throw R(e)}}return e.C}function W2e(e){switch(e.q.g){case 5:Vj(e,(WR(),w5)),Vj(e,V5);break;case 4:out(e,(WR(),w5)),out(e,V5);break;default:Z5e(e,(WR(),w5)),Z5e(e,V5)}}function G2e(e){switch(e.q.g){case 5:g3e(e,(WR(),C5)),g3e(e,U5);break;case 4:CR(e,(WR(),C5)),CR(e,U5);break;default:Q5e(e,(WR(),C5)),Q5e(e,U5)}}function ij(e,t){var n,i,a=new Sc;for(i=e.Kc();i.Ob();)n=H(i.Pb(),36),lI(n,a.a,0),a.a+=n.f.a+t,a.b=r.Math.max(a.b,n.f.b);return a.b>0&&(a.b+=t),a}function aj(e,t){var n,i,a=new Sc;for(i=e.Kc();i.Ob();)n=H(i.Pb(),36),lI(n,0,a.b),a.b+=n.f.b+t,a.a=r.Math.max(a.a,n.f.a);return a.a>0&&(a.a+=t),a}function K2e(e){var t,n,i=Cz;for(n=new L(e.a);n.a>16==6?e.Cb.Th(e,5,p7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function X2e(e){py();var t=e.e;if(t&&t.stack){var n=t.stack,r=t+` `;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(` -`)}return[]}function X2e(e){var t=(rKe(),WSt);return t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function Z2e(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=CE(r.Math.max(8,i))<<1,e.b==0?Ro(e.a,n):(t=nm(e.a,n),$Ke(e,t,i),e.a=t,e.b=0),e.c=i)}function Q2e(e,t){var n=e.b;return n.pf((gz(),o8))?n.ag()==(XR(),Z5)?-n.Mf().a-z(Ip(n.of(o8))):t+z(Ip(n.of(o8))):n.ag()==(XR(),Z5)?-n.Mf().a:t}function sj(e){var t;return e.b.c.length!=0&&H(Wh(e.b,0),72).a?H(Wh(e.b,0),72).a:(t=Fv(e),t??``+(e.c?XS(e.c.a,e,0):-1))}function cj(e){var t;return e.f.c.length!=0&&H(Wh(e.f,0),72).a?H(Wh(e.f,0),72).a:(t=Fv(e),t??``+(e.i?XS(e.i.j,e,0):-1))}function $2e(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n0?e.c:0),a=r.Math.max(a,t.d),++i;e.e=o,e.b=a}function n4e(e){var t,n;if(!e.b)for(e.b=fRe(H(e.f,123).kh().i),n=new Lf(H(e.f,123).kh());n.e!=n.i.gc();)t=H(fA(n),135),Af(e.b,new Sme(t));return e.b}function r4e(e,t){var n,r,i;if(t.dc())return Vp(),Vp(),bVt;for(n=new CTe(e,t.gc()),i=new Lf(e);i.e!=i.i.gc();)r=fA(i),t.Hc(r)&&SS(n,r);return n}function i4e(e,t,n,r){return t==0?r?(!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),e.o):(!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),gS(e.o)):CA(e,t,n,r)}function a4e(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t>22),i+=r>>22,i<0)?!1:(e.l=n&RB,e.m=r&RB,e.h=i&zB,!0)}function l4e(e,t,n,r,i,a,o){var s,l;return!(t.Te()&&(l=e.a.Ne(n,r),l<0||!i&&l==0)||t.Ue()&&(s=e.a.Ne(n,a),s>0||!o&&s==0))}function u4e(e,t){if(YE(),e.j.g-t.j.g!=0)return 0;switch(e.j.g){case 2:return wQe(t,iOt)-wQe(e,iOt);case 4:return wQe(e,aZ)-wQe(t,aZ)}return 0}function uj(e){switch(e.g){case 0:return RZ;case 1:return JOt;case 2:return zZ;case 3:return BZ;case 4:return VZ;case 5:return YOt;default:return null}}function dj(e,t,n){var r=(i=new ime,mD(i,t),Bw(i,n),SS((!e.c&&(e.c=new Bg(L7,e,12,10)),e.c),i),i),i;return dw(r,0),fw(r,1),qD(r,!0),WD(r,!0),r}function fj(e,t){var n,r;if(t>=e.i)throw R(new ixe(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&JI(e.g,t+1,e.g,t,r),F_(e.g,--e.i,null),e.Qi(t,n),e.Ni(),n}function pj(e,t){var n,r;return e.Db>>16==17?e.Cb.Th(e,21,M7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function d4e(e){var t,n,r,i;for(iy(),bf(e.c,e.a),i=new L(e.c);i.an.a.c.length))throw R(new Ks(`index must be >= 0 and <= layer node count`));e.c&&JS(e.c.a,e),e.c=n,n&&pg(n.a,t,e)}function S4e(e,t){for(var n,r=new jg(Yf(OO(e).a.Kc(),new f)),i;UP(r);)return n=H(Wx(r),18),i=H(t.Kb(n),10),new Qr(D_(i.n.b+i.o.b/2));return vs(),vs(),tJ}function C4e(e,t){this.c=new ho,this.a=e,this.b=t,this.d=H(q(e,(hz(),e$)),312),this.e=cd(q(e,(fz(),_Mt)))===cd((GS(),HZ))?new zpe:new Rpe}function bj(e,t){var n,r=null;return e.pf((gz(),b8))&&(n=H(e.of(b8),96),n.pf(t)&&(r=n.of(t))),r==null&&e.Tf()&&(r=e.Tf().of(t)),r??=dA(t),r}function xj(e,t){var n=e.fd(t),r;try{return r=n.Pb(),n.Qb(),r}catch(e){throw e=eE(e),V(e,112)?R(new Ws(`Can't remove element `+t)):R(e)}}function w4e(e,t){var n,r=new s_e,i=new oYe(r.q.getFullYear()-MB,r.q.getMonth(),r.q.getDate());if(n=bL(e,t,i),n==0||n0?t:0),++n;return new zu(i,a)}function Ej(e,t){var n,r;return e.Db>>16==6?e.Cb.Th(e,6,p7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(oz(),VBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Dj(e,t){var n,r;return e.Db>>16==7?e.Cb.Th(e,1,NBt,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(oz(),UBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function O4e(e,t){var n,r;return e.Db>>16==9?e.Cb.Th(e,9,b7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(oz(),GBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function k4e(e,t){var n,r;return e.Db>>16==5?e.Cb.Th(e,9,zVt,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(bz(),K7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Oj(e,t){var n,r;return e.Db>>16==7?e.Cb.Th(e,6,g7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(bz(),Q7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function kj(e,t){var n,r;return e.Db>>16==3?e.Cb.Th(e,0,FBt,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(bz(),H7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Aj(){this.a=new Roe,this.g=new U0e,this.j=new U0e,this.b=new ho,this.d=new U0e,this.i=new U0e,this.k=new ho,this.c=new ho,this.e=new ho,this.f=new ho}function A4e(e,t,n){var r,i,a;for(n<0&&(n=0),a=e.i,i=n;ijmt)return jj(e,r);if(r==e)return!0}}return!1}function Mj(e){switch(qCe(),e.q.g){case 5:c9e(e,(XR(),M5)),c9e(e,Y5);break;case 4:Htt(e,(XR(),M5)),Htt(e,Y5);break;default:Wdt(e,(XR(),M5)),Wdt(e,Y5)}}function M4e(e){switch(qCe(),e.q.g){case 5:K9e(e,(XR(),j5)),K9e(e,Z5);break;case 4:t0e(e,(XR(),j5)),t0e(e,Z5);break;default:Gdt(e,(XR(),j5)),Gdt(e,Z5)}}function N4e(e){var t=H(q(e,(UI(),XTt)),17),n;t?(n=t.a,n==0?EE(e,(Mw(),oEt),new e$e):EE(e,(Mw(),oEt),new Mx(n))):EE(e,(Mw(),oEt),new Mx(1))}function P4e(e,t){var n=e.i;switch(t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function F4e(e,t){switch(e.g){case 0:return t==(XO(),o$)?rZ:YDt;case 1:return t==(XO(),o$)?rZ:nZ;case 2:return t==(XO(),o$)?nZ:YDt;default:return nZ}}function Nj(e,t){var n,i,a;for(JS(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=Svt,i=new L(e.a);i.a>16==3?e.Cb.Th(e,12,b7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(oz(),BBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function L4e(e,t){var n,r;return e.Db>>16==11?e.Cb.Th(e,10,b7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(oz(),WBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function R4e(e,t){var n,r;return e.Db>>16==10?e.Cb.Th(e,11,M7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(bz(),Z7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function z4e(e,t){var n,r;return e.Db>>16==10?e.Cb.Th(e,12,F7,t):(r=MA(H(MC((n=H(PT(e,16),29),n||(bz(),$7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Pj(e){var t;return!(e.Bb&1)&&e.r&&e.r.Vh()&&(t=H(e.r,54),e.r=H(bD(e,t),142),e.r!=t&&e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,9,8,t,e.r))),e.r}function Fj(e,t,n){var i=K(B(z9,1),QB,28,15,[r8e(e,(XC(),oY),t,n),r8e(e,sY,t,n),r8e(e,cY,t,n)]);return e.f&&(i[0]=r.Math.max(i[0],i[2]),i[2]=i[0]),i}function B4e(e,t){var n,r,i=n0e(e,t);if(i.c.length!=0)for(bf(i,new Ste),n=i.c.length,r=0;r>19,u=t.h>>19;return l==u?(i=e.h,s=t.h,i==s?(r=e.m,o=t.m,r==o?(n=e.l,a=t.l,n-a):r-o):i-s):u-l}function Lj(){Lj=D,iY=(JF(),_wt),dwt=new Td(yV,iY),uwt=(TC(),rwt),lwt=new Td(hht,uwt),cwt=(L1e(),$Ct),swt=new Td(bV,cwt),owt=new Td(ght,(lp(),!0))}function Rj(e,t,n){var r=t*n,i;V(e.g,154)?(i=fx(e),i.f.d?i.f.a||(e.d.a+=r+PV):(e.d.d-=r+PV,e.d.a+=r+PV)):V(e.g,10)&&(e.d.d-=r,e.d.a+=2*r)}function K4e(e,t,n){for(var i,a=e[n.g],o,s,l=new L(t.d);l.a0?e.b:0),++n;t.b=i,t.e=a}function J4e(e){var t,n,r=e.b;if(p_e(e.i,r.length)){for(n=r.length*2,e.b=vS(ESt,aB,303,n,0,1),e.c=vS(ESt,aB,303,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)iP(e,t,t);++e.g}}function Y4e(e,t,n,r){for(var i=0,a,o,s;is&&(l=s/i),a>o&&(u=o/a),kf(e,r.Math.min(l,u)),e}function Z4e(){wL();var e,t;try{if(t=H(lM((Vl(),I7),$G),2113),t)return t}catch(t){if(t=eE(t),V(t,103))e=t,xMe((gf(),e));else throw R(t)}return new Foe}function Q4e(){wL();var e,t;try{if(t=H(lM((Vl(),I7),lq),2040),t)return t}catch(t){if(t=eE(t),V(t,103))e=t,xMe((gf(),e));else throw R(t)}return new P}function $4e(){iUe();var e,t;try{if(t=H(lM((Vl(),I7),Tq),2122),t)return t}catch(t){if(t=eE(t),V(t,103))e=t,xMe((gf(),e));else throw R(t)}return new Sr}function e3e(e,t,n){var r,i=e.e;return e.e=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,4,i,t),n?n.nj(r):n=r),i!=t&&(n=t?BR(e,lF(e,t),n):BR(e,e.a,n)),n}function t3e(){s_e.call(this),this.e=-1,this.a=!1,this.p=hB,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=hB}function n3e(e,t){var n,r=e.b.d.d,i;if(e.a||(r+=e.b.d.a),i=t.b.d.d,t.a||(i+=t.b.d.a),n=uO(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function Vj(e,t){var n,r=e.b.b.d,i;if(e.a||(r+=e.b.b.a),i=t.b.b.d,t.a||(i+=t.b.b.a),n=uO(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function r3e(e,t){var n,r=e.b.g.d,i;if(e.a||(r+=e.b.g.a),i=t.b.g.d,t.a||(i+=t.b.g.a),n=uO(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function i3e(){i3e=D,EEt=xg(zh(zh(zh(new uv,(XM(),iX),(_z(),FDt)),iX,IDt),aX,LDt),aX,TDt),OEt=zh(zh(new uv,iX,vDt),iX,EDt),DEt=xg(new uv,aX,ODt)}function a3e(e){var t=H(q(e,(hz(),wQ)),85),n,r,i,a=e.n;for(r=t.Cc().Kc();r.Ob();)n=H(r.Pb(),314),i=n.i,i.c+=a.a,i.d+=a.b,n.c?Hit(n):Uit(n);EE(e,wQ,null)}function Hj(e,t,n){var r,i=e.b;switch(r=i.d,t.g){case 1:return-r.d-n;case 2:return i.o.a+r.c+n;case 3:return i.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function Uj(e,t,n){var r,i;for(n.Ug(`Interactive node placement`,1),e.a=H(q(t,(hz(),e$)),312),i=new L(t.b);i.a0&&(o=(a&Ez)%e.d.length,i=k9e(e,o,a,t),i)?(s=i.nd(n),s):(r=e.ck(a,t,n),e.c.Fc(r),null)}function g3e(e,t){var n,r,i,a;switch(FD(e,t).Kl()){case 3:case 2:for(n=jL(t),i=0,a=n.i;i=0;i--)if(hm(e[i].d,t)||hm(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function eM(e,t){var n;return Nd(e)&&Nd(t)&&(n=e/t,WB0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=r.Math.min(i,a))}function w3e(e){var t=H(q(H(gA(e.b,0),40),(QI(),xFt)),107);EE(e,(YR(),B2),new zu(0,0)),Lot(new cS,e,t.b+t.c-z(Ip(q(e,qPt))),t.d+t.a-z(Ip(q(e,YPt))))}function T3e(e,t){var n,r=!1;if(ld(t)&&(r=!0,z_(e,new O_(Lp(t)))),r||V(t,242)&&(r=!0,z_(e,(n=Cm(H(t,242)),new fi(n)))),!r)throw R(new zme(sK))}function E3e(e,t,n,r){var i=new aC(e.e,1,10,(o=t.c,V(o,90)?H(o,29):(bz(),X7)),(a=n.c,V(a,90)?H(a,29):(bz(),X7)),wA(e,t),!1),a,o;return r?r.nj(i):r=i,r}function D3e(e){var t,n;switch(H(q($_(e),(fz(),lMt)),429).g){case 0:return t=e.n,n=e.o,new zu(t.a+n.a/2,t.b+n.b/2);case 1:return new Ld(e.n);default:return null}}function iM(){iM=D,UZ=new Eu(oU,0),rkt=new Eu(`LEFTUP`,1),akt=new Eu(`RIGHTUP`,2),nkt=new Eu(`LEFTDOWN`,3),ikt=new Eu(`RIGHTDOWN`,4),tkt=new Eu(`BALANCED`,5)}function aM(e,t,n){var r=uO(e.a[t.p],e.a[n.p]),i,a;if(r==0){if(i=H(q(t,(hz(),LQ)),15),a=H(q(n,LQ),15),i.Hc(n))return-1;if(a.Hc(t))return 1}return r}function oM(e){switch(e.g){case 1:return new _ae;case 2:return new vae;case 3:return new gae;case 0:return null;default:throw R(new Ks(Ovt+(e.f==null?``+e.g:e.f)))}}function sM(e,t,n){switch(t){case 1:!e.n&&(e.n=new Bg(y7,e,1,7)),hR(e.n),!e.n&&(e.n=new Bg(y7,e,1,7)),y_(e.n,H(n,16));return;case 2:kw(e,Lp(n));return}kYe(e,t,n)}function O3e(e,t,n){switch(t){case 3:iw(e,z(Ip(n)));return;case 4:aw(e,z(Ip(n)));return;case 5:ow(e,z(Ip(n)));return;case 6:sw(e,z(Ip(n)));return}sM(e,t,n)}function cM(e,t,n){var r,i,a=(r=new ime,r);i=VM(a,t,null),i&&i.oj(),Bw(a,n),SS((!e.c&&(e.c=new Bg(L7,e,12,10)),e.c),a),dw(a,0),fw(a,1),qD(a,!0),WD(a,!0)}function lM(e,t){var n=Xl(e.i,t),r,i;return V(n,241)?(i=H(n,241),i.zi(),i.wi()):V(n,507)?(r=H(n,2037),i=r.b,i):null}function k3e(e,t,n,r){var i,a;return D_(t),D_(n),a=H(Sm(e.d,t),17),iC(!!a,`Row %s not in %s`,t,e.e),i=H(Sm(e.b,n),17),iC(!!i,`Column %s not in %s`,n,e.c),qJe(e,a.a,i.a,r)}function A3e(e,t,n,r,i,a,o){var s,l,u,d=i[a],f;if(u=a==o-1,s=u?r:0,f=j2e(s,d),r!=10&&K(B(e,o-a),t[a],n[a],s,f),!u)for(++a,l=0;l1||s==-1?(a=H(l,15),i.Wb(r$e(e,a))):i.Wb(Bot(e,H(l,58)))))}function B3e(e,t,n,r){Bge();var i=mSt;hSt=r;function a(){for(var e=0;e0)return!1;return!0}function U3e(e){for(var t,n,r=new OT(new Li(e.b).a),i,a;r.b;)n=Nw(r),t=H(n.ld(),10),a=H(H(n.md(),42).a,10),i=H(H(n.md(),42).b,8),um(wd(t.n),um(Tf(a.n),i))}function W3e(e){switch(H(q(e.b,(fz(),e1)),387).g){case 1:_l(jv(yC(new Yh(null,new Nb(e.d,16)),new ire),new are),new pn);break;case 2:Cat(e);break;case 0:w7e(e)}}function G3e(e,t,n){var r=n,i,a;for(!r&&(r=new hs),r.Ug(`Layout`,e.a.c.length),a=new L(e.a);a.aDW)return n;i>-1e-6&&++n}return n}function _M(e,t){var n;t==e.b?e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,3,t,t)):(n=null,e.b&&(n=Ny(e.b,e,-4,n)),t&&(n=bA(t,e,-4,n)),n=SD(e,t,n),n&&n.oj())}function vM(e,t){var n;t==e.f?e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,0,t,t)):(n=null,e.f&&(n=Ny(e.f,e,-1,n)),t&&(n=bA(t,e,-1,n)),n=xD(e,t,n),n&&n.oj())}function J3e(e,t,n,r){var i,a,o,s;return Hd(e.e)&&(i=t.Lk(),s=t.md(),a=n.md(),o=xy(e,1,i,s,a,i.Jk()?fL(e,i,a,V(i,102)&&(H(i,19).Bb&XB)!=0):-1,!0),r?r.nj(o):r=o),r}function Y3e(e){var t,n,r;if(e==null)return null;if(n=H(e,15),n.dc())return``;for(r=new ac,t=n.Kc();t.Ob();)gd(r,(wR(),Lp(t.Pb()))),r.a+=` `;return kd(r,r.a.length-1)}function X3e(e){var t,n,r;if(e==null)return null;if(n=H(e,15),n.dc())return``;for(r=new ac,t=n.Kc();t.Ob();)gd(r,(wR(),Lp(t.Pb()))),r.a+=` `;return kd(r,r.a.length-1)}function Z3e(e,t,n){var r=e.c[t.c.p][t.p],i=e.c[n.c.p][n.p];return r.a!=null&&i.a!=null?vje(r.a,i.a):r.a==null?i.a==null?0:1:-1}function Q3e(e,t,n){return n.Ug(`Tree layout`,1),Sv(e.b),d_(e.b,(_j(),N2),N2),d_(e.b,P2,P2),d_(e.b,F2,F2),d_(e.b,I2,I2),e.a=xR(e.b,t),G3e(e,t,n.eh(1)),n.Vg(),t}function $3e(e,t){var n,r,i,a,o,s;if(t)for(a=t.a.length,n=new Ng(a),s=(n.b-n.a)*n.c<0?(Kl(),N9):new Rf(n);s.Ob();)o=H(s.Pb(),17),i=sx(t,o.a),r=new _fe(e),ANe(r.a,i)}function e6e(e,t){var n,r,i,a,o,s;if(t)for(a=t.a.length,n=new Ng(a),s=(n.b-n.a)*n.c<0?(Kl(),N9):new Rf(n);s.Ob();)o=H(s.Pb(),17),i=sx(t,o.a),r=new cfe(e),kNe(r.a,i)}function t6e(e){var t;if(e!=null&&e.length>0&&kv(e,e.length-1)==33)try{return t=xtt(Dy(e,0,e.length-1)),t.e==null}catch(e){if(e=eE(e),!V(e,33))throw R(e)}return!1}function n6e(e,t,n){var r=fO($_(t)),i=new bN;switch(_b(i,t),n.g){case 1:rP(i,rO(JO(r)));break;case 2:rP(i,JO(r))}return EE(i,(fz(),M1),Ip(q(e,M1))),i}function r6e(e){var t=H(Wx(new jg(Yf(kO(e.a).a.Kc(),new f))),18),n=H(Wx(new jg(Yf(AO(e.a).a.Kc(),new f))),18);return Vs(Fp(q(t,(hz(),ZQ))))||Vs(Fp(q(n,ZQ)))}function yM(){yM=D,uZ=new Su(`ONE_SIDE`,0),dZ=new Su(`TWO_SIDES_CORNER`,1),fZ=new Su(`TWO_SIDES_OPPOSING`,2),fOt=new Su(`THREE_SIDES`,3),dOt=new Su(`FOUR_SIDES`,4)}function i6e(e,t){var n,r,i,a=new go;for(i=0,r=t.Kc();r.Ob();){for(n=kD(H(r.Pb(),17).a+i);n.a=e.f)break;So(a.c,n)}return a}function a6e(e,t){for(var n,r,i,a=new L(t.a),o;a.a0&&hj(this,this.c-1,(XR(),j5)),this.c0&&e[0].length>0&&(this.c=Vs(Fp(q($_(e[0][0]),(hz(),ykt))))),this.a=vS(t2,Kz,2117,e.length,0,2),this.b=vS(UNt,Kz,2118,e.length,0,2),this.d=new LXe}function g6e(e){return e.c.length==0?!1:(jb(0,e.c.length),H(e.c[0],18)).c.i.k==(fN(),SX)||Bx(jv(new Yh(null,new Nb(e,16)),new Gre),new Kre)}function _6e(e,t){var n,i,a,o,s,l=IF(t),u;for(o=t.f,u=t.g,s=r.Math.sqrt(o*o+u*u),a=0,i=new L(l);i.a=0?(n=eM(e,UB),r=xk(e,UB)):(t=kg(e,1),n=eM(t,5e8),r=xk(t,5e8),r=vO(Dg(r,1),Rb(e,1))),zb(Dg(r,32),Rb(n,$B))}function j6e(e,t,n){var r=(zp(t.b!=0),H(WC(t,t.a.a),8)),i;switch(n.g){case 0:r.b=0;break;case 2:r.b=e.f;break;case 3:r.a=0;break;default:r.a=e.g}return i=lA(t,0),g_(i,r),t}function M6e(e,t,n,r){var i,a,o,s,l=e.b;switch(a=t.d,o=a.j,s=D1e(o,l.d[o.g],n),i=um(Tf(a.n),a.a),a.j.g){case 1:case 3:s.a+=i.a;break;case 2:case 4:s.b+=i.b}kx(r,s,r.c.b,r.c)}function N6e(e,t,n){var r,i,a,o=XS(e.e,t,0);for(a=new Ipe,a.b=n,r=new Kb(e.e,o);r.b1;t>>=1)t&1&&(r=gx(r,n)),n=n.d==1?gx(n,n):new c1e(zI(n.a,n.d,vS(F9,NB,28,n.d<<1,15,1)));return r=gx(r,n),r}function I6e(){I6e=D;var e,t,n,r;for(JJ=vS(z9,QB,28,25,15,1),TCt=vS(z9,QB,28,33,15,1),r=152587890625e-16,t=32;t>=0;t--)TCt[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)JJ[e]=n,n*=.5}function L6e(e){var t,n;if(Vs(Fp(qP(e,(fz(),c1))))){for(n=new jg(Yf(sF(e).a.Kc(),new f));UP(n);)if(t=H(Wx(n),74),wP(t)&&Vs(Fp(qP(t,l1))))return!0}return!1}function R6e(e,t){var n,r,i;n_(e.f,t)&&(t.b=e,r=t.c,XS(e.j,r,0)!=-1||Af(e.j,r),i=t.d,XS(e.j,i,0)!=-1||Af(e.j,i),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new T1e(e)),tJe(e.i,n)))}function jM(e){var t,n=e.c.d,r=n.j,i=e.d.d,a=i.j;return r==a?n.p=0&&hm(e.substr(t,3),`GMT`)||t>=0&&hm(e.substr(t,3),`UTC`))&&(n[0]=t+3),est(e,n,r)}function B6e(e,t){var n,r,i,a=e.g.a,o=e.g.b;for(r=new L(e.d);r.an;a--)e[a]|=t[a-n-1]>>>o,e[a-1]=t[a-n-1]<0&&JI(e.g,t,e.g,t+r,s),o=n.Kc(),e.i+=r,i=0;i>4&15,a=e[r]&15,o[i++]=YBt[n],o[i++]=YBt[a];return Ik(o,0,o.length)}function HM(e){var t,n;return e>=XB?(t=ZB+(e-XB>>10&1023)&xB,n=56320+(e-XB&1023)&xB,String.fromCharCode(t)+(``+String.fromCharCode(n))):String.fromCharCode(e&xB)}function $6e(e,t){Gp();var n,r,i=H(H(Zx(e.r,t),21),87),a;return i.gc()>=2&&(r=H(i.Kc().Pb(),117),n=e.u.Hc((aP(),E5)),a=e.u.Hc(A5),!r.a&&!n&&(i.gc()==2||a))}function e8e(e,t,n,r,i){for(var a=_it(e,t,n,r,i),o,s=!1;!a;)ZP(e,i,!0),s=!0,a=_it(e,t,n,r,i);s&&ZP(e,i,!1),o=lE(i),o.c.length!=0&&(e.d&&e.d.Gg(o),e8e(e,i,n,r,o))}function UM(){UM=D,G8=new Ku(oU,0),Nzt=new Ku(`DIRECTED`,1),Pzt=new Ku(`UNDIRECTED`,2),jzt=new Ku(`ASSOCIATION`,3),W8=new Ku(`GENERALIZATION`,4),Mzt=new Ku(`DEPENDENCY`,5)}function t8e(e,t){var n;if(!Ky(e))throw R(new qs(Hyt));switch(n=Ky(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function n8e(e,t,n){var r=t.Lk(),i,a=t.md();return i=r.Jk()?xy(e,4,r,a,null,fL(e,r,a,V(r,102)&&(H(r,19).Bb&XB)!=0),!0):xy(e,r.tk()?2:1,r,a,r.ik(),-1,!0),n?n.nj(i):n=i,n}function WM(e,t){var n,r;for(iv(t),r=e.b.c.length,Af(e.b,t);r>0;){if(n=r,r=(r-1)/2|0,e.a.Ne(Wh(e.b,r),t)<=0)return Fx(e.b,n,t),!0;Fx(e.b,n,Wh(e.b,r))}return Fx(e.b,r,t),!0}function r8e(e,t,n,i){var a=0,o;if(n)a=pD(e.a[n.g][t.g],i);else for(o=0;o=s)}function a8e(e){switch(e.g){case 0:return new Pae;case 1:return new Fae;default:throw R(new Ks(`No implementation is available for the width approximator `+(e.f==null?``+e.g:e.f)))}}function o8e(e,t,n,r){var i=!1;if(ld(r)&&(i=!0,Sh(t,n,Lp(r))),i||ud(r)&&(i=!0,o8e(e,t,n,r)),i||V(r,242)&&(i=!0,fy(t,n,H(r,242))),!i)throw R(new zme(sK))}function s8e(e,t){var n=t.qi(e.a),r,i;if(n&&(i=gk((!n.b&&(n.b=new Ap((bz(),t9),i9,n)),n.b),eq),i!=null)){for(r=1;r<(LN(),yHt).length;++r)if(hm(yHt[r],i))return r}return 0}function GM(e,t){var n=t.qi(e.a),r,i;if(n&&(i=gk((!n.b&&(n.b=new Ap((bz(),t9),i9,n)),n.b),eq),i!=null)){for(r=1;r<(LN(),bHt).length;++r)if(hm(bHt[r],i))return r}return 0}function c8e(e,t){var n,r,i,a;if(iv(t),a=e.a.gc(),a0);a.a[i]!=n;)a=a.a[i],i=+(e.a.Ne(n.d,a.d)>0);a.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function u8e(e){var t=new go,n=vS(I9,wV,28,e.a.c.length,16,1),r,i;for(Xje(n,n.length),i=new L(e.a);i.a0&&Uot((jb(0,n.c.length),H(n.c[0],30)),e),n.c.length>1&&Uot(H(Wh(n,n.c.length-1),30),e),t.Vg()}function p8e(e){aP();var t=gg(D5,K(B(Jzt,1),lB,279,0,[k5])),n;return!(HT(By(t,e))>1||(n=gg(E5,K(B(Jzt,1),lB,279,0,[T5,A5])),HT(By(n,e))>1))}function m8e(e,t){V(Ry((Vl(),I7),e),507)?mb(I7,e,new jbe(this,t)):mb(I7,e,this),dN(this,t),t==(Nc(),HVt)?(this.wb=H(this,2038),H(t,2040)):this.wb=(j_(),V7)}function h8e(e){var t,n,r;if(e==null)return null;for(t=null,n=0;n=bB?`error`:r>=900?`warn`:r>=800?`info`:`log`),HMe(n,e.a),e.b&&crt(t,n,e.b,`Exception: `,!0))}function q(e,t){var n;return!e.q&&(e.q=new ho),N_(e.q,t)??(n=t.Sg(),V(n,4)&&(n==null?(!e.q&&(e.q=new ho),nS(e.q,t)):(!e.q&&(e.q=new ho),fv(e.q,t,n))),n)}function XM(){XM=D,tX=new fu(`P1_CYCLE_BREAKING`,0),nX=new fu(`P2_LAYERING`,1),rX=new fu(`P3_NODE_ORDERING`,2),iX=new fu(`P4_NODE_PLACEMENT`,3),aX=new fu(`P5_EDGE_ROUTING`,4)}function v8e(e,t){OC();var n;if(e.c==t.c){if(e.b==t.b||yqe(e.b,t.b)){if(n=yxe(e.b)?1:-1,e.a&&!t.a)return n;if(!e.a&&t.a)return-n}return Sf(e.b.g,t.b.g)}return uO(e.c,t.c)}function ZM(e,t){var n,r,i;if(S8e(e,t))return!0;for(r=new L(t);r.a=i||t<0)throw R(new Ws(jbt+t+hK+i));if(n>=i||n<0)throw R(new Ws(gK+n+hK+i));return r=t==n?e.xj(n):(a=e.Cj(n),e.qj(t,a),a),r}function x8e(e){var t,n,r=e;if(e)for(t=0,n=e.Eh();n;n=n.Eh()){if(++t>jmt)return x8e(n);if(r=n,n==e)throw R(new qs(`There is a cycle in the containment hierarchy of `+e))}return r}function rN(e){var t,n,r=new KT(Az,`[`,`]`);for(n=e.Kc();n.Ob();)t=n.Pb(),tS(r,cd(t)===cd(e)?`(this Collection)`:t==null?Mz:FO(t));return r.a?r.e.length==0?r.a.a:r.a.a+(``+r.e):r.c}function S8e(e,t){var n,r=!1;if(t.gc()<2)return!1;for(n=0;n1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=r.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function oN(){oN=D,gOt=K(B(Q5,1),sU,64,0,[(XR(),M5),j5,Y5]),hOt=K(B(Q5,1),sU,64,0,[j5,Y5,Z5]),_Ot=K(B(Q5,1),sU,64,0,[Y5,Z5,M5]),vOt=K(B(Q5,1),sU,64,0,[Z5,M5,j5])}function w8e(e,t,n,r){var i,a,o=e.c.d,s=e.d.d,l,u,d;if(o.j!=s.j)for(d=e.b,i=o.j,l=null;i!=s.j;)l=t==0?iO(i):qZe(i),a=D1e(i,d.d[i.g],n),u=D1e(l,d.d[l.g],n),Ch(r,um(a,u)),i=l}function T8e(e,t,n,r){var i,a,o=g4e(e.a,t,n),s=H(o.a,17).a,l;return a=H(o.b,17).a,r&&(l=H(q(t,(hz(),qQ)),10),i=H(q(n,qQ),10),l&&i&&(yze(e.b,l,i),s+=e.b.i,a+=e.b.e)),s>a}function E8e(e){var t,n,r,i,a,o,s,l,u;for(this.a=S0e(e),this.b=new go,n=e,r=0,i=n.length;rdTe(e.d).c?(e.i+=e.g.c,wk(e.d)):dTe(e.d).c>dTe(e.g).c?(e.e+=e.d.c,wk(e.g)):(e.i+=IAe(e.g),e.e+=IAe(e.d),wk(e.g),wk(e.d))}function j8e(e,t,n){var r,i,a=t.q,o=t.r;for(new wb((fS(),O2),t,a,1),new wb(O2,a,o,1),i=new L(n);i.al&&(u=l/i),a>o&&(d=o/a),s=r.Math.min(u,d),e.a+=s*(t.a-e.a),e.b+=s*(t.b-e.b)}function uN(e,t,n,r,i){var a,o=!1;for(a=H(Wh(n.b,0),27);sL(e,t,a,r,i)&&(o=!0,I3e(n,a),n.b.c.length!=0);)a=H(Wh(n.b,0),27);return n.b.c.length==0&&Nj(n.j,n),o&&N2e(t.q),o}function F8e(e,t){HF();var n,r,i,a;if(t.b<2)return!1;for(a=lA(t,0),n=H(ux(a),8),r=n;a.b!=a.d.c;){if(i=H(ux(a),8),Lnt(e,r,i))return!0;r=i}return!!Lnt(e,r,n)}function I8e(e,t,n,r){var i,a;return n==0?(!e.o&&(e.o=new kS((oz(),v7),C7,e,0)),xm(e.o,t,r)):(a=H(MC((i=H(PT(e,16),29),i||e.ii()),n),69),a.wk().Ak(e,Kk(e),n-M_(e.ii()),t,r))}function dN(e,t){var n;t==e.sb?e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,4,t,t)):(n=null,e.sb&&(n=H(e.sb,54).Th(e,1,h7,n)),t&&(n=H(t,54).Rh(e,1,h7,n)),n=CZe(e,t,n),n&&n.oj())}function L8e(e,t){var n,r,i,a;if(t)i=hw(t,`x`),n=new mfe(e),rw(n.a,(iv(i),i)),a=hw(t,`y`),r=new hfe(e),lw(r.a,(iv(a),a));else throw R(new Qs(`All edge sections need an end point.`))}function R8e(e,t){var n,r,i,a;if(t)i=hw(t,`x`),n=new dfe(e),cw(n.a,(iv(i),i)),a=hw(t,`y`),r=new ffe(e),uw(r.a,(iv(a),a));else throw R(new Qs(`All edge sections need a start point.`))}function z8e(e,t){for(var n,r=GYe(e),i,a=0,o,s=r.length,l;a>22-t,i=e.h<>22-t):t<44?(n=0,r=e.l<>44-t):(n=0,r=0,i=e.l<e)throw R(new Ks(`k must be smaller than n`));return t==0||t==e?1:e==0?0:v3e(e)/(v3e(t)*v3e(e-t))}function J8e(e,t){for(var n=new Ixe(e),r,i,a;n.g==null&&!n.c?ib(n):n.g==null||n.i!=0&&H(n.g[n.i-1],51).Ob();)if(a=H(aF(n),58),V(a,167))for(r=H(a,167),i=0;i>4],t[n*2+1]=b9[a&15];return Ik(t,0,t.length)}function CN(e){mv();var t,n;switch(e.c.length){case 0:return TSt;case 1:return t=H(W7e(new L(e)),44),Th(t.ld(),t.md());default:return n=H(rA(e,vS(oJ,eB,44,e.c.length,0,1)),173),new js(n)}}function wN(e){var t=new If,n=new If,r,i,a,o;for(dx(t,e),dx(n,e);n.b!=n.c;)for(i=H(e_(n),36),o=new L(i.a);o.a0&&dI(e,n,t),i):PP(e,t,n):r}function ON(){ON=D,b4=(gz(),m8),NIt=S8,CIt=W6,wIt=K6,TIt=J6,SIt=H6,EIt=Z6,OIt=u8,bIt=(_ot(),iIt),xIt=aIt,kIt=dIt,MIt=mIt,AIt=fIt,jIt=pIt,DIt=sIt,y4=lIt,x4=uIt,S4=hIt,PIt=_It,yIt=rIt}function n5e(e,t){var n,r,i,a,o;if(e.e<=t||VIe(e,e.g,t))return e.g;for(a=e.r,r=e.g,o=e.r,i=(a-r)/2+r;r+11&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=r.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function c5e(e){var t,n,r,i=e.i;switch(t=i.b,r=i.j,n=i.g,i.a.g){case 0:n.a=(e.g.b.o.a-r.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-r.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function l5e(e,t,n){for(var r,i=new jg(Yf(OO(n).a.Kc(),new f)),a;UP(i);)r=H(Wx(i),18),!(Vx(r)||!Vx(r)&&r.c.i.c==r.d.i.c)&&(a=ant(e,r,n,new Bpe),a.c.length>1&&So(t.c,a))}function u5e(e,t,n,r,i){if(rr&&(e.a=r),e.bi&&(e.b=i),e}function d5e(e){if(V(e,143))return trt(H(e,143));if(V(e,233))return LQe(H(e,233));if(V(e,23))return H8e(H(e,23));throw R(new Ks(bbt+rN(new ec(K(B(eJ,1),jz,1,5,[e])))))}function f5e(e,t,n,r,i){for(var a=!0,o=0,s;o>>i|n[o+r+1]<>>i,++o}return a}function p5e(e,t,n,r){var i,a,o;if(t.k==(fN(),SX)){for(a=new jg(Yf(kO(t).a.Kc(),new f));UP(a);)if(i=H(Wx(a),18),o=i.c.i.k,o==SX&&e.c.a[i.c.i.c.p]==r&&e.c.a[t.c.p]==n)return!0}return!1}function m5e(e,t){var n,r,i,a;return t&=63,n=e.h&zB,t<22?(a=n>>>t,i=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(a=0,i=n>>>t-22,r=e.m>>t-22|e.h<<44-t):(a=0,i=0,r=n>>>t-44),Cf(r&RB,i&RB,a&zB)}function h5e(e,t,n,r){var i;this.b=r,this.e=e==(bw(),r2),i=t[n],this.d=Kh(I9,[Kz,wV],[183,28],16,[i.length,i.length],2),this.a=Kh(F9,[Kz,NB],[53,28],15,[i.length,i.length],2),this.c=new m6e(t,n)}function g5e(e){var t,n,r;for(e.k=new Tb((XR(),K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5])).length,e.j.c.length),r=new L(e.j);r.a=n)return MN(e,t,r.p),!0;return!1}function jN(e,t,n,r){var i,a,o=n.length,s,l,u;for(a=0,i=-1,u=uWe((Mb(t,e.length+1),e.substr(t)),(Om(),bCt)),s=0;sa&&Uje(u,uWe(n[s],bCt))&&(i=s,a=l);return i>=0&&(r[0]=t+a),i}function x5e(e){var t;return e.Db&64?hN(e):(t=new Qf(Qyt),!e.a||yd(yd((t.a+=` "`,t),e.a),`"`),yd(Rc(yd(Rc(yd(Rc(yd(Rc((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function S5e(e,t,n){var r,i,a,o,s=OF(e.e.Dh(),t);for(i=H(e.g,124),r=0,o=0;on?l7e(e,n,`start index`):t<0||t>n?l7e(t,n,`end index`):nI(`end index (%s) must not be less than start index (%s)`,K(B(eJ,1),jz,1,5,[kD(t),kD(e)]))}function T5e(e,t){for(var n,r=0,i=e.length,a;r0&&D5e(e,a,n));t.p=0}function NN(e){var t;this.c=new ll,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,this.j=e.i?e.i:(t=H(Pc(L3),9),new Dm(t,H(nm(t,t.length),9),0)),this.g=e.f}function O5e(e){for(var t=W_(yd(new Qf(`Predicates.`),`and`),40),n=!0,r,i=new Qi(e);i.b0?s[o-1]:vS(vX,dU,10,0,0,1),i=s[o],u=o=0?e.ki(i):J7e(e,r);else throw R(new Ks(HG+r.xe()+UG))}else BD(e,n,r)}function P5e(e){var t,n=null;if(t=!1,V(e,211)&&(t=!0,n=H(e,211).a),t||V(e,263)&&(t=!0,n=``+H(e,263).a),t||V(e,493)&&(t=!0,n=``+H(e,493).a),!t)throw R(new zme(sK));return n}function F5e(e,t,n){var r,i,a,o,s,l=OF(e.e.Dh(),t);for(r=0,s=e.i,i=H(e.g,124),o=0;o=e.d.b.c.length&&(t=new I_(e.d),t.p=r.p-1,Af(e.d.b,t),n=new I_(e.d),n.p=r.p,Af(e.d.b,n)),gb(r,H(Wh(e.d.b,r.p),30))}function H5e(e,t,n){var r,i,a;if(!e.b[t.g]){for(e.b[t.g]=!0,r=n,!r&&(r=new cS),Ch(r.b,t),a=e.a[t.g].Kc();a.Ob();)i=H(a.Pb(),65),i.b!=t&&H5e(e,i.b,r),i.c!=t&&H5e(e,i.c,r),Ch(r.a,i);return r}return null}function U5e(e){switch(e.g){case 0:case 1:case 2:return XR(),M5;case 3:case 4:case 5:return XR(),Y5;case 6:case 7:case 8:return XR(),Z5;case 9:case 10:case 11:return XR(),j5;default:return XR(),X5}}function W5e(e,t){var n;return e.c.length!=0&&(n=x$e((jb(0,e.c.length),H(e.c[0],18)).c.i),fb(),n==(EA(),D0)||n==E0||Bx(jv(new Yh(null,new Nb(e,16)),new qre),new Ode(t)))}function G5e(e,t){if(V(t,207))return sf(e,H(t,27));if(V(t,193))return Wxe(e,H(t,123));if(V(t,452))return Uxe(e,H(t,166));throw R(new Ks(bbt+rN(new ec(K(B(eJ,1),jz,1,5,[t])))))}function K5e(e,t,n){var r,i;if(this.f=e,r=H(N_(e.b,t),260),i=r?r.a:0,dVe(n,i),n>=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++0;)fWe(this);this.b=t,this.a=null}function q5e(e,t){var n,r;t.a?Drt(e,t):(n=H(__e(e.b,t.b),60),n&&n==e.a[t.b.f]&&n.a&&n.a!=t.b.a&&n.c.Fc(t.b),r=H(g_e(e.b,t.b),60),r&&e.a[r.f]==t.b&&r.a&&r.a!=t.b.a&&t.b.c.Fc(r),qSe(e.b,t.b))}function J5e(e,t){var n=H(yv(e.b,t),127),r;if(H(H(Zx(e.r,t),21),87).dc()){n.n.b=0,n.n.c=0;return}n.n.b=e.C.b,n.n.c=e.C.c,e.A.Hc((Ak(),n7))&&Eat(e,t),r=m0e(e,t),Rit(e,t)==(uA(),g5)&&(r+=2*e.w),n.a.a=r}function Y5e(e,t){var n=H(yv(e.b,t),127),r;if(H(H(Zx(e.r,t),21),87).dc()){n.n.d=0,n.n.a=0;return}n.n.d=e.C.d,n.n.a=e.C.a,e.A.Hc((Ak(),n7))&&Dat(e,t),r=p0e(e,t),Rit(e,t)==(uA(),g5)&&(r+=2*e.w),n.a.b=r}function X5e(e,t){var n,r,i,a=new go;for(r=new L(t);r.ar&&(Mb(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return r>0||tn.a&&(r.Hc((mM(),f6))?i=(t.a-n.a)/2:r.Hc(m6)&&(i=t.a-n.a)),t.b>n.b&&(r.Hc((mM(),g6))?a=(t.b-n.b)/2:r.Hc(h6)&&(a=t.b-n.b)),JM(e,i,a)}function $N(e,t,n,r,i,a,o,s,l,u,d,f,p){V(e.Cb,90)&&eP(Hx(H(e.Cb,90)),4),Bw(e,n),e.f=o,sO(e,s),lO(e,l),oO(e,u),cO(e,d),qD(e,f),gO(e,p),WD(e,!0),dw(e,i),e.Zk(a),mD(e,t),r!=null&&(e.i=null,WKe(e,r))}function l7e(e,t,n){if(e<0)return nI(qpt,K(B(eJ,1),jz,1,5,[n,kD(e)]));if(t<0)throw R(new Ks(Jpt+t));return nI(`%s (%s) must not be greater than size (%s)`,K(B(eJ,1),jz,1,5,[n,kD(e),kD(t)]))}function u7e(e,t,n,r,i,a){var o=r-n,s,l,u;if(o<7){EQe(t,n,r,a);return}if(l=n+i,s=r+i,u=l+(s-l>>1),u7e(t,e,l,u,-i,a),u7e(t,e,u,s,-i,a),a.Ne(e[u-1],e[u])<=0){for(;n=0?e.bi(a,n):unt(e,i,n);else throw R(new Ks(HG+i.xe()+UG))}else zO(e,r,i,n)}function g7e(e){var t,n;if(e.f){for(;e.n>0;){if(t=H(e.k.Xb(e.n-1),76),n=t.Lk(),V(n,102)&&(H(n,19).Bb&KG)!=0&&(!e.e||n.pk()!=u7||n.Lj()!=0)&&t.md()!=null)return!0;--e.n}return!1}return e.n>0}function _7e(e){var t,n=H(e,54)._h(),r,i;if(n)try{if(r=null,t=tF((Vl(),I7),RI(RQe(n))),t&&(i=t.ai(),i&&(r=i.Fl(Lme(n.e)))),r&&r!=e)return _7e(r)}catch(e){if(e=eE(e),!V(e,63))throw R(e)}return e}function v7e(e,t,n){var r,i,a;n.Ug(`Remove overlaps`,1),n.dh(t,xvt),r=H(qP(t,(Hp(),u4)),27),e.f=r,e.a=I0e(H(qP(t,(ON(),S4)),300)),i=Ip(qP(t,(gz(),S8))),Ti(e,(iv(i),i)),a=IF(r),edt(e,t,a,n),n.dh(t,GW)}function y7e(e){var t,n,r;if(Vs(Fp(qP(e,(gz(),I6))))){for(r=new go,n=new jg(Yf(sF(e).a.Kc(),new f));UP(n);)t=H(Wx(n),74),wP(t)&&Vs(Fp(qP(t,L6)))&&So(r.c,t);return r}return iy(),iy(),WJ}function b7e(e){if(!e)return Fs(),vJ;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=yJ[typeof t];return n?n(t):_D(typeof t)}return e instanceof Array||e instanceof r.Array?new ui(e):new pi(e)}function x7e(e,t,n){var i,a,o=e.o;switch(i=H(yv(e.p,n),252),a=i.i,a.b=dP(i),a.a=uP(i),a.b=r.Math.max(a.b,o.a),a.b>o.a&&!t&&(a.b=o.a),a.c=-(a.b-o.a)/2,n.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}act(i),uct(i)}function S7e(e,t,n){var i,a,o=e.o;switch(i=H(yv(e.p,n),252),a=i.i,a.b=dP(i),a.a=uP(i),a.a=r.Math.max(a.a,o.b),a.a>o.b&&!t&&(a.a=o.b),a.d=-(a.a-o.b)/2,n.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}act(i),uct(i)}function C7e(e,t){var n,r,i,a,o;if(!t.dc()){if(i=H(t.Xb(0),131),t.gc()==1){Wrt(e,i,i,1,0,t);return}for(n=1;n0)try{i=AI(t,hB,Ez)}catch(e){throw e=eE(e),V(e,130)?(r=e,R(new ZS(r))):R(e)}return n=(!e.a&&(e.a=new fo(e)),e.a),i=0?H(G(n,i),58):null}function O7e(e,t){if(e<0)return nI(qpt,K(B(eJ,1),jz,1,5,[`index`,kD(e)]));if(t<0)throw R(new Ks(Jpt+t));return nI(`%s (%s) must be less than size (%s)`,K(B(eJ,1),jz,1,5,[`index`,kD(e),kD(t)]))}function tP(e){var t,n,r,i,a;if(e==null)return Mz;for(a=new KT(Az,`[`,`]`),n=e,r=0,i=n.length;r`,R(new Ks(r.a))}function G7e(e){var t,n=-e.a;return t=K(B(P9,1),yB,28,15,[43,48,48,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&xB,t[2]=t[2]+(n/60|0)%10&xB,t[3]=t[3]+(n%60/10|0)&xB,t[4]=t[4]+n%10&xB,Ik(t,0,t.length)}function K7e(e){var t,n,r,i;for(e.g=new PO(H(D_(Q5),297)),r=0,n=(XR(),M5),t=0;t=0?e.Lh(n,!0,!0):kP(e,i,!0),160)),H(r,220).Zl(t);else throw R(new Ks(HG+t.xe()+UG))}function Y7e(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=Uy(r.Math.floor(r.Math.log(e)/.6931471805599453)),(!t||e!=r.Math.pow(2,n))&&++n,n):TJe(zT(e))}function X7e(e){var t,n,r,i,a=new Pd,o,s;for(n=new L(e);n.a2&&s.e.b+s.j.b<=2&&(i=s,r=o),a.a.zc(i,a),i.q=r);return a}function Z7e(e,t,n){n.Ug(`Eades radial`,1),n.dh(t,GW),e.d=H(qP(t,(Hp(),u4)),27),e.c=z(Ip(qP(t,(ON(),x4)))),e.e=I0e(H(qP(t,S4),300)),e.a=ZQe(H(qP(t,PIt),434)),e.b=oM(H(qP(t,DIt),354)),o3e(e),n.dh(t,GW)}function Q7e(e,t){if(t.Ug(`Target Width Setter`,1),hS(e,(GF(),LLt)))xA(e,(QF(),P4),Ip(qP(e,LLt)));else throw R(new Xs(`A target width has to be set if the TargetWidthWidthApproximator should be used.`));t.Vg()}function $7e(e,t){var n,r=new NA(e),i;return UT(r,t),EE(r,(hz(),OQ),t),EE(r,(fz(),N1),(CM(),b5)),EE(r,F$,(OA(),e6)),xi(r,(fN(),bX)),n=new bN,_b(n,r),rP(n,(XR(),Z5)),i=new bN,_b(i,r),rP(i,j5),r}function e9e(e){switch(e.g){case 0:return new zs((bw(),n2));case 1:return new Bce;case 2:return new Vce;default:throw R(new Ks(`No implementation is available for the crossing minimizer `+(e.f==null?``+e.g:e.f)))}}function t9e(e,t){var n,r,i,a,o;for(e.c[t.p]=!0,Af(e.a,t),o=new L(t.j);o.a=a)o.$b();else for(i=o.Kc(),r=0;r0?Xme():o<0&&cP(e,t,-o),!0)}function uP(e){var t,n,r,i,a,o,s=0;if(e.b==0){for(o=r2e(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}else s=uhe(oT(Mv(Av(i_(e.a),new Ke),new qe)));return s>0?s+e.n.d+e.n.a:0}function dP(e){var t,n,r,i,a,o,s=0;if(e.b==0)s=uhe(oT(Mv(Av(i_(e.a),new We),new Ge)));else{for(o=FA(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}return s>0?s+e.n.b+e.n.c:0}function fP(e){var t,n;if(e.c.length!=2)throw R(new qs(`Order only allowed for two paths.`));t=(jb(0,e.c.length),H(e.c[0],18)),n=(jb(1,e.c.length),H(e.c[1],18)),t.d.i!=n.c.i&&(e.c.length=0,So(e.c,n),So(e.c,t))}function pP(e,t,n){var r;for(Xd(n,t.g,t.f),Zd(n,t.i,t.j),r=0;r<(!t.a&&(t.a=new Bg(b7,t,10,11)),t.a).i;r++)pP(e,H(G((!t.a&&(t.a=new Bg(b7,t,10,11)),t.a),r),27),H(G((!n.a&&(n.a=new Bg(b7,n,10,11)),n.a),r),27))}function d9e(e,t){var n,i,a,o=H(yv(e.b,t),127);for(n=o.a,a=H(H(Zx(e.r,t),21),87).Kc();a.Ob();)i=H(a.Pb(),117),i.c&&(n.a=r.Math.max(n.a,Kke(i.c)));if(n.a>0)switch(t.g){case 2:o.n.c=e.s;break;case 4:o.n.b=e.s}}function f9e(e,t){var n=H(q(t,(UI(),GY)),17).a-H(q(e,GY),17).a,r,i;return n==0?(r=dm(Tf(H(q(e,(Mw(),JY)),8)),H(q(e,YY),8)),i=dm(Tf(H(q(t,JY),8)),H(q(t,YY),8)),uO(r.a*r.b,i.a*i.b)):n}function p9e(e,t){var n=H(q(t,(QI(),a4)),17).a-H(q(e,a4),17).a,r,i;return n==0?(r=dm(Tf(H(q(e,(YR(),z2)),8)),H(q(e,B2),8)),i=dm(Tf(H(q(t,z2),8)),H(q(t,B2),8)),uO(r.a*r.b,i.a*i.b)):n}function mP(e){var t,n=new sc;return n.a+=`e_`,t=CJe(e),t!=null&&(n.a+=``+t),e.c&&e.d&&(yd((n.a+=` `,n),cj(e.c)),yd(vd((n.a+=`[`,n),e.c.i),`]`),yd((n.a+=Vht,n),cj(e.d)),yd(vd((n.a+=`[`,n),e.d.i),`]`)),n.a}function hP(e){switch(e.g){case 0:return new Gr;case 1:return new Yce;case 2:return new qce;case 3:return new Kce;default:throw R(new Ks(`No implementation is available for the layout phase `+(e.f==null?``+e.g:e.f)))}}function gP(e,t,n,i,a){var o=0;switch(a.g){case 1:o=r.Math.max(0,t.b+e.b-(n.b+i));break;case 3:o=r.Math.max(0,-e.b-i);break;case 2:o=r.Math.max(0,-e.a-i);break;case 4:o=r.Math.max(0,t.a+e.a-(n.a+i))}return o}function m9e(e,t,n){var r,i,a,o,s;if(n)for(i=n.a.length,r=new Ng(i),s=(r.b-r.a)*r.c<0?(Kl(),N9):new Rf(r);s.Ob();)o=H(s.Pb(),17),a=sx(n,o.a),mbt in a.a||iK in a.a?sot(e,a,t):Zft(e,a,t),mCe(H(N_(e.b,zk(a)),74))}function _P(e){var t,n;switch(e.b){case-1:return!0;case 0:return n=e.t,n>1||n==-1?(e.b=-1,!0):(t=Pj(e),t&&(Gl(),t.lk()==xxt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function vP(e,t){var n,r,i,a;if(pz(e),e.c!=0||e.a!=123)throw R(new $s(Sz((gf(),Wbt))));if(a=t==112,r=e.d,n=_p(e.i,125,r),n<0)throw R(new $s(Sz((gf(),SK))));return i=Dy(e.i,r,n),e.d=n+1,wS(i,a,(e.e&512)==512)}function h9e(e){var t,n,r=e.a.c.length,i,a,o,s;if(r>0)for(o=e.c.d,s=e.d.d,i=kf(dm(new zu(s.a,s.b),o),1/(r+1)),a=new zu(o.a,o.b),n=new L(e.a);n.a=0&&r=0?e.Lh(n,!0,!0):kP(e,i,!0),160)),H(r,220).Wl(t);throw R(new Ks(HG+t.xe()+WG))}function y9e(){J_e();var e;return _Ht?H(tF((Vl(),I7),lq),2038):(Dd(oJ,new Tse),Hut(),e=H(V(Ry((Vl(),I7),lq),560)?Ry(I7,lq):new dv,560),_Ht=!0,Npt(e),Wpt(e),fv((W_e(),VVt),e,new rse),mb(I7,lq,e),e)}function b9e(e,t){var n,r,i,a;e.j=-1,Hd(e.e)?(n=e.i,a=e.i!=0,Yx(e,t),r=new aC(e.e,3,e.c,null,t,n,a),i=t.zl(e.e,e.c,null),i=s6e(e,t,i),i?(i.nj(r),i.oj()):jT(e.e,r)):(Yx(e,t),i=t.zl(e.e,e.c,null),i&&i.oj())}function SP(e,t){var n,r,i=0;if(r=t[0],r>=e.length)return-1;for(n=(Mb(r,e.length),e.charCodeAt(r));n>=48&&n<=57&&(i=i*10+(n-48),++r,!(r>=e.length));)n=(Mb(r,e.length),e.charCodeAt(r));return r>t[0]?t[0]=r:i=-1,i}function x9e(e){var t,n,i,a=H(e.a,17).a,o=H(e.b,17).a;return n=a,i=o,t=r.Math.max(r.Math.abs(a),r.Math.abs(o)),a<=0&&a==o?(n=0,i=o-1):a==-t&&o!=t?(n=o,i=a,o>=0&&++n):(n=-o,i=a),new nd(kD(n),kD(i))}function S9e(e,t,n,r){for(var i=0,a,o,s,l,u;i=0&&u>=0&&l=e.i)throw R(new Ws(jbt+t+hK+e.i));if(n>=e.i)throw R(new Ws(gK+n+hK+e.i));return r=e.g[n],t!=n&&(t>16),t=r>>16&16,n=16-t,e>>=t,r=e-256,t=r>>16&8,n+=t,e<<=t,r=e-JB,t=r>>16&4,n+=t,e<<=t,r=e-qz,t=r>>16&2,n+=t,e<<=t,r=e>>14,t=r&~(r>>1),n+2-t)}function w9e(e){ay();var t,n,r,i;for(LY=new go,kTt=new ho,OTt=new go,t=(!e.a&&(e.a=new Bg(b7,e,10,11)),e.a),ift(t),i=new Lf(t);i.e!=i.i.gc();)r=H(fA(i),27),XS(LY,r,0)==-1&&(n=new go,Af(OTt,n),g1e(r,n));return OTt}function T9e(e,t,n){var r,i,a,o;e.a=n.b.d,V(t,326)?(i=RF(H(t,74),!1,!1),a=AN(i),r=new Aue(e),Px(a,r),tL(a,i),t.of((gz(),z6))!=null&&Px(H(t.of(z6),75),r)):(o=H(t,422),o.rh(o.nh()+e.a.a),o.sh(o.oh()+e.a.b))}function E9e(e,t){var n,r,i=new go;for(r=lA(t.a,0);r.b!=r.d.c;)n=H(ux(r),65),n.c.g==e.g&&cd(q(n.b,(QI(),o4)))!==cd(q(n.c,o4))&&!Bx(new Yh(null,new Nb(i,16)),new zde(n))&&So(i.c,n);return bf(i,new yie),i}function D9e(e,t,n){var r,i,a,o;return V(t,153)&&V(n,153)?(a=H(t,153),o=H(n,153),e.a[a.a][o.a]+e.a[o.a][a.a]):V(t,250)&&V(n,250)&&(r=H(t,250),i=H(n,250),r.a==i.a)?H(q(i.a,(UI(),GY)),17).a:0}function DP(e,t){var n,i,a,o,s,l,u,d=z(Ip(q(t,(fz(),o0))));for(u=e[0].n.a+e[0].o.a+e[0].d.c+d,l=1;l=0?n:(s=K_(dm(new zu(o.c+o.b/2,o.d+o.a/2),new zu(a.c+a.b/2,a.d+a.a/2))),-(Cst(a,o)-1)*s)}function OP(e,t,n){var r;_l(new Yh(null,(!n.a&&(n.a=new Bg(m7,n,6,6)),new Nb(n.a,16))),new rbe(e,t)),_l(new Yh(null,(!n.n&&(n.n=new Bg(y7,n,1,7)),new Nb(n.n,16))),new ibe(e,t)),r=H(qP(n,(gz(),z6)),75),r&&Qw(r,e,t)}function kP(e,t,n){var r,i,a=CR((LN(),o9),e.Dh(),t);if(a)return Gl(),H(a,69).xk()||(a=Vb(tC(o9,a))),i=(r=e.Ih(a),H(r>=0?e.Lh(r,!0,!0):kP(e,a,!0),160)),H(i,220).Sl(t,n);throw R(new Ks(HG+t.xe()+WG))}function k9e(e,t,n,r){var i=e.d[t],a,o,s,l;if(i){if(a=i.g,l=i.i,r!=null){for(s=0;s=n&&(r=t,u=(l.c+l.a)/2,o=u-n,l.c<=u-n&&(i=new eh(l.c,o),pg(e,r++,i)),s=u+n,s<=l.a&&(a=new eh(s,l.a),Ab(r,e.c.length),pu(e.c,r,a)))}function F9e(e,t,n){var r,i,a,o,s,l;if(!t.dc()){for(i=new ll,l=t.Kc();l.Ob();)for(s=H(l.Pb(),40),fv(e.a,kD(s.g),kD(n)),o=(r=lA(new Ya(s).a.d,0),new Xa(r));Vc(o.a);)a=H(ux(o.a),65).c,kx(i,a,i.c.b,i.c);F9e(e,i,n+1)}}function MP(e){var t;if(!e.c&&e.g==null)e.d=e.bj(e.f),SS(e,e.d),t=e.d;else if(e.g==null)return!0;else if(e.i==0)return!1;else t=H(e.g[e.i-1],51);return t==e.b&&null.Vm>=null.Um()?(aF(e),MP(e)):t.Ob()}function I9e(e){if(this.a=e,e.c.i.k==(fN(),bX))this.c=e.c,this.d=H(q(e.c.i,(hz(),kQ)),64);else if(e.d.i.k==bX)this.c=e.d,this.d=H(q(e.d.i,(hz(),kQ)),64);else throw R(new Ks(`Edge `+e+` is not an external edge.`))}function L9e(e,t){var n,r,i=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,3,i,e.b)),t?t!=e&&(Bw(e,t.zb),wGe(e,t.d),n=(r=t.c,r??t.zb),SKe(e,n==null||hm(n,t.zb)?null:n)):(Bw(e,null),wGe(e,0),SKe(e,null))}function R9e(e,t){var n;this.e=(A_(),D_(e),A_(),v$e(e)),this.c=(D_(t),v$e(t)),dCe(this.e.Rd().dc()==this.c.Rd().dc()),this.d=TQe(this.e),this.b=TQe(this.c),n=Kh(eJ,[Kz,jz],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=n,XGe(this)}function z9e(e){var t=(!uJ&&(uJ=Sft()),uJ);return`"`+e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(e){return Vy(e,t)})+`"`}function B9e(e,t,n,i,a,o){var s,l,u,d,f;if(a!=0)for(cd(e)===cd(n)&&(e=e.slice(t,t+a),t=0),u=n,l=t,d=t+a;l=o)throw R(new mm(t,o));return i=n[t],o==1?r=null:(r=vS(gVt,PK,424,o-1,0,1),JI(n,0,r,0,t),a=o-t-1,a>0&&JI(n,t+1,r,t,a)),iA(e,r),r7e(e,t,i),i}function W9e(e){var t,n;if(e.f){for(;e.n0?JO(n):rO(JO(n))),xA(t,R1,a)}function J9e(e,t){var n;t.Ug(`Partition preprocessing`,1),n=H(Ax(Av(yC(Av(new Yh(null,new Nb(e.a,16)),new zte),new Bte),new Vte),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15),_l(n.Oc(),new Hte),t.Vg()}function Y9e(e,t){var n,r,i,a,o=e.j;for(t.a!=t.b&&bf(o,new sre),i=o.c.length/2|0,r=0;r0&&dI(e,n,t),a):r.a==null?i.a==null?0:(dI(e,n,t),1):(dI(e,t,n),-1)}function FP(e,t){var n,r,i=t.b.b,a,o;for(e.a=vS(aJ,vH,15,i,0,1),e.b=vS(I9,wV,28,i,16,1),o=lA(t.b,0);o.b!=o.d.c;)a=H(ux(o),40),e.a[a.g]=new ll;for(r=lA(t.a,0);r.b!=r.d.c;)n=H(ux(r),65),e.a[n.b.g].Fc(n),e.a[n.c.g].Fc(n)}function X9e(e,t){var n,r,i,a;e.Pj()?(n=e.Ej(),a=e.Qj(),++e.j,e.qj(n,e.Zi(n,t)),r=e.Ij(3,null,t,n,a),e.Mj()?(i=e.Nj(t,null),i?(i.nj(r),i.oj()):e.Jj(r)):e.Jj(r)):(B_(e,t),e.Mj()&&(i=e.Nj(t,null),i&&i.oj()))}function IP(e,t,n){var r,i,a;e.Pj()?(a=e.Qj(),ID(e,t,n),r=e.Ij(3,null,n,t,a),e.Mj()?(i=e.Nj(n,null),e.Tj()&&(i=e.Uj(n,i)),i?(i.nj(r),i.oj()):e.Jj(r)):e.Jj(r)):(ID(e,t,n),e.Mj()&&(i=e.Nj(n,null),i&&i.oj()))}function LP(e,t){var n,r,i,a,o=OF(e.e.Dh(),t);for(i=new qn,n=H(e.g,124),a=e.i;--a>=0;)r=n[a],o.am(r.Lk())&&SS(i,r);!Aft(e,i)&&Hd(e.e)&&Bo(e,t.Jk()?xy(e,6,t,(iy(),WJ),null,-1,!1):xy(e,t.tk()?2:1,t,null,null,-1,!1))}function Z9e(e,t){var n,r,i,a,o;return e.a==(cN(),JZ)||(a=t.a.c,n=t.a.c+t.a.b,!(t.j&&(r=t.A,o=r.c.c.a-r.o.a/2,i=a-(r.n.a+r.o.a),i>o)||t.q&&(r=t.C,o=r.c.c.a-r.o.a/2,i=r.n.a-n,i>o)))}function Q9e(e){$Fe();for(var t,n=new Ox,r,i=new L(e.e.b),a,o,s;i.a1?e.e*=z(e.a):e.f/=z(e.a),hD(e),r1e(e),jat(e),EE(e.b,(mA(),IY),e.g)}function iet(e,t,n){var r=0,i,a,o,s,l=n;for(t||(r=n*(e.c.length-1),l*=-1),a=new L(e);a.a=0?e.Ah(null):e.Ph().Th(e,-1-t,null,null)),e.Bh(H(i,54),n),r&&r.oj(),e.vh()&&e.wh()&&n>-1&&jT(e,new Vg(e,9,n,a,i)),i):a}function yet(e,t){var n,r,i,a=e.b.Ce(t),o;for(r=(n=e.a.get(a),n??vS(eJ,jz,1,0,5,1)),o=0;o>5,i>=e.d)return e.e<0;if(n=e.a[i],t=1<<(t&31),e.e<0){if(r=Aqe(e),i>16)),15).dd(a),s0&&(!(Wd(e.a.c)&&t.n.d)&&!(Gd(e.a.c)&&t.n.b)&&(t.g.d+=r.Math.max(0,i/2-.5)),!(Wd(e.a.c)&&t.n.a)&&!(Gd(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function Aet(e){var t,n,i,a=new go,o=fst(e,a);if(t=H(q(e,(hz(),qQ)),10),t)for(i=new L(t.j);i.a>t,a=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(o=r?zB:0,a=n>>t-22,i=e.m>>t-22|n<<44-t):(o=r?zB:0,a=r?RB:0,i=n>>t-44),Cf(i&RB,a&RB,o&zB)}function Pet(e){var t,n,i,a,o,s;for(this.c=new go,this.d=e,i=KB,a=KB,t=qB,n=qB,s=lA(e,0);s.b!=s.d.c;)o=H(ux(s),8),i=r.Math.min(i,o.a),a=r.Math.min(a,o.b),t=r.Math.max(t,o.a),n=r.Math.max(n,o.b);this.a=new Vv(i,a,t-i,n-a)}function Fet(e,t){for(var n,r,i,a=new L(e.b),o,s;a.a0&&V(t,44)&&(e.a._j(),u=H(t,44),l=u.ld(),a=l==null?0:zw(l),o=xTe(e.a,a),n=e.a.d[o],n)){for(r=H(n.g,379),d=n.i,s=0;s=2)for(n=a.Kc(),t=Ip(n.Pb());n.Ob();)o=t,t=Ip(n.Pb()),i=r.Math.min(i,(iv(t),t-(iv(o),o)));return i}function Xet(e,t){var n,r,i=new go;for(r=lA(t.a,0);r.b!=r.d.c;)n=H(ux(r),65),n.b.g==e.g&&!hm(n.b.c,FW)&&cd(q(n.b,(QI(),o4)))!==cd(q(n.c,o4))&&!Bx(new Yh(null,new Nb(i,16)),new Bde(n))&&So(i.c,n);return bf(i,new Cie),i}function Zet(e,t){var n,r,i;if(cd(t)===cd(D_(e)))return!0;if(!V(t,15)||(r=H(t,15),i=e.gc(),i!=r.gc()))return!1;if(V(r,59)){for(n=0;n0&&(i=n),o=new L(e.f.e);o.a0?(--t,--n):r>=0&&i<0?(t+=1,n+=1):r>0&&i>=0?(--t,n+=1):(t+=1,--n),new nd(kD(t),kD(n))}function mtt(e,t){return e.ct.c?1:e.bt.b?1:e.a==t.a?e.d==(mx(),l2)&&t.d==c2?-1:+(e.d==c2&&t.d==l2):zw(e.a)-zw(t.a)}function htt(e,t){var n,r,i,a=t.a,o=a.c.i==t.b?a.d:a.c;return r=a.c.i==t.b?a.c:a.d,i=m$e(e.a,o,r),i>0&&i<_H?(n=itt(e.a,r.i,i,e.c),iGe(e.a,r.i,-n),n>0):i<0&&-i<_H&&(n=att(e.a,r.i,-i,e.c),iGe(e.a,r.i,n),n>0)}function gtt(e,t,n,r){var i=(t-e.d)/e.c.c.length,a=0,o,s,l,u,d,f;for(e.a+=n,e.d=t,f=new L(e.c);f.a>24;return o}function vtt(e){if(e.ze()){var t=e.c;e.o=t.Ae()?`[`+t.n:t.ze()?`[`+t.xe():`[L`+t.xe()+`;`,e.b=t.we()+`[]`,e.k=t.ye()+`[]`;return}var n=e.j,r=e.d;r=r.split(`/`),e.o=I$e(`.`,[n,I$e(`$`,r)]),e.b=I$e(`.`,[n,I$e(`.`,r)]),e.k=r[r.length-1]}function ytt(e,t){var n,r,i,a,o=null;for(a=new L(e.e.a);a.a=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(r=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=r,r=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=r);e.c=!0}}function Ett(e,t){var n,r,i,a,o,s,l,u=-1,d=0;for(o=e,s=0,l=o.length;s0&&++d;++u}return d}function $P(e){var t,n=new Qf(Fc(e.Rm));return n.a+=`@`,yd(n,(t=zw(e)>>>0,t.toString(16))),e.Vh()?(n.a+=` (eProxyURI: `,vd(n,e._h()),e.Kh()&&(n.a+=` eClass: `,vd(n,e.Kh())),n.a+=`)`):e.Kh()&&(n.a+=` (eClass: `,vd(n,e.Kh()),n.a+=`)`),n.a}function eF(e){var t,n,r,i;if(e.e)throw R(new qs((Rp(ZCt),pV+ZCt.k+oht)));for(e.d==(eO(),M8)&&GR(e,A8),n=new L(e.a.a);n.a>24}return n}function jtt(e,t,n){var r,i=H(yv(e.i,t),314),a;if(!i){if(i=new kC(e.d,t,n),o_(e.i,t,i),U$e(t))HSe(e.a,t.c,t.b,i);else switch(a=U5e(t),r=H(yv(e.p,a),252),a.g){case 1:case 3:i.j=!0,Dme(r,t.b,i);break;case 4:case 2:i.k=!0,Dme(r,t.c,i)}}return i}function Mtt(e,t){var n,r,i,a,o,s,l=gp(e.c-e.b&e.a.length-1),u=null,d=null;for(a=new Dv(e);a.a!=a.b;)i=H(KXe(a),10),n=(s=H(q(i,(hz(),VQ)),12),s?s.i:null),r=(o=H(q(i,HQ),12),o?o.i:null),(u!=n||d!=r)&&(oet(l,t),u=n,d=r),So(l.c,i);oet(l,t)}function nF(e,t,n,r){var i,a,o,s=new qn,l=OF(e.e.Dh(),t),u;if(i=H(e.g,124),Gl(),H(t,69).xk())for(o=0;o=0)return a;for(o=1,l=new L(t.j);l.a=0)return a;for(o=1,l=new L(t.j);l.a0&&t.Ne((jb(i-1,e.c.length),H(e.c[i-1],10)),a)>0;)Fx(e,i,(jb(i-1,e.c.length),H(e.c[i-1],10))),--i;jb(i,e.c.length),e.c[i]=a}n.a=new ho,n.b=new ho}function Itt(e,t,n){var r,i,a,o,s,l,u,d=(r=H(t.e&&t.e(),9),new Dm(r,H(nm(r,r.length),9),0));for(l=ZI(n,`[\\[\\]\\s,]+`),a=l,o=0,s=a.length;o=0?(t||(t=new oc,r>0&&gd(t,(bS(0,r,e.length),e.substr(0,r)))),t.a+=`\\`,U_(t,n&xB)):t&&U_(t,n&xB);return t?t.a:e}function Rtt(e){for(var t,n=new L(e.a.a.b),i;n.a0&&(!(Wd(e.a.c)&&t.n.d)&&!(Gd(e.a.c)&&t.n.b)&&(t.g.d-=r.Math.max(0,i/2-.5)),!(Wd(e.a.c)&&t.n.a)&&!(Gd(e.a.c)&&t.n.c)&&(t.g.a+=r.Math.max(0,i-1)))}function ztt(e,t,n){var r,i;if((e.c-e.b&e.a.length-1)==2)t==(XR(),M5)||t==j5?(BC(H(NE(e),15),(vj(),e5)),BC(H(NE(e),15),t5)):(BC(H(NE(e),15),(vj(),t5)),BC(H(NE(e),15),e5));else for(i=new Dv(e);i.a!=i.b;)r=H(KXe(i),15),BC(r,n)}function Btt(e,t){var n,r,i=sh(new Ife(e)),a,o,s=new Kb(i,i.c.length),l;for(a=sh(new Ife(t)),l=new Kb(a,a.c.length),o=null;s.b>0&&l.b>0&&(n=(zp(s.b>0),H(s.a.Xb(s.c=--s.b),27)),r=(zp(l.b>0),H(l.a.Xb(l.c=--l.b),27)),n==r);)o=n;return o}function Vtt(e,t,n){var r,i,a,o;vLe(e,t)>vLe(e,n)?(r=xO(n,(XR(),j5)),e.d=r.dc()?0:Oh(H(r.Xb(0),12)),o=xO(t,Z5),e.b=o.dc()?0:Oh(H(o.Xb(0),12))):(i=xO(n,(XR(),Z5)),e.d=i.dc()?0:Oh(H(i.Xb(0),12)),a=xO(t,j5),e.b=a.dc()?0:Oh(H(a.Xb(0),12)))}function Htt(e,t){for(var n=e.o.a,r,i,a=H(H(Zx(e.r,t),21),87).Kc();a.Ob();)i=H(a.Pb(),117),i.e.a=n*z(Ip(i.b.of(xY))),i.e.b=(r=i.b,r.pf((gz(),o8))?r.ag()==(XR(),M5)?-r.Mf().b-z(Ip(r.of(o8))):z(Ip(r.of(o8))):r.ag()==(XR(),M5)?-r.Mf().b:0)}function Utt(e,t){var n,r,i,a;for(t.Ug(`Self-Loop pre-processing`,1),r=new L(e.a);r.ae.c));o++)i.a>=e.s&&(a<0&&(a=o),s=o);return l=(e.s+e.c)/2,a>=0&&(r=aot(e,t,a,s),l=H_e((jb(r,t.c.length),H(t.c[r],339))),P9e(t,r,n)),l}function rF(e,t,n){var r,i,a,o=(a=new Goe,a),s,l,u;for(AKe(o,(iv(t),t)),u=(!o.b&&(o.b=new Ap((bz(),t9),i9,o)),o.b),l=1;l0&&Rlt(this,i)}function qtt(e,t,n,r,i,a){var o,s,l;if(!i[t.a]){for(i[t.a]=!0,o=r,!o&&(o=new iS),Af(o.e,t),l=a[t.a].Kc();l.Ob();)s=H(l.Pb(),290),s.d!=n&&s.c!=n&&(s.c!=t&&qtt(e,s.c,t,o,i,a),s.d!=t&&qtt(e,s.d,t,o,i,a),Af(o.c,s),nE(o.d,s.b));return o}return null}function Jtt(e){for(var t=0,n,r,i=new L(e.e),a,o,s;i.a=2}function Ytt(e,t,n,r,i){for(var a=e.c.d.j,o=H(gA(n,0),8),s,l,u,d=1;d1||(t=gg(o5,K(B(m5,1),lB,95,0,[a5,c5])),HT(By(t,e))>1)||(r=gg(p5,K(B(m5,1),lB,95,0,[f5,d5])),HT(By(r,e))>1))}function iF(e,t,n){for(var r,i,a=new L(e.t);a.a0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&Ch(t,r.b));for(i=new L(e.i);i.a0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&Ch(n,r.a))}function aF(e){var t,n,r,i,a;if(e.g==null&&(e.d=e.bj(e.f),SS(e,e.d),e.c))return a=e.f,a;if(t=H(e.g[e.i-1],51),i=t.Pb(),e.e=t,n=e.bj(i),n.Ob())e.d=n,SS(e,n);else for(e.d=null;!t.Ob()&&(F_(e.g,--e.i,null),e.i!=0);)r=H(e.g[e.i-1],51),t=r;return i}function Ztt(e,t){var n,r=t,i=r.Lk(),a,o,s;if(jF(e.e,i)){if(i.Si()&&bx(e,i,r.md()))return!1}else for(s=OF(e.e.Dh(),i),n=H(e.g,124),a=0;a1||n>1)return 2;return t+n==1?2:0}function cF(e,t){var n,i,a,o=e.a*Bmt+e.b*1502,s,l=e.b*Bmt+11;return n=r.Math.floor(l*oV),o+=n,l-=n*Vmt,o%=Vmt,e.a=o,e.b=l,t<=24?r.Math.floor(e.a*JJ[t]):(a=e.a*(1<=2147483648&&(i-=4294967296),i)}function snt(e,t,n){var r,i,a=new go,o,s,l,u=new ll;for(o=new ll,jct(e,u,o,t),dut(e,u,o,t,n),l=new L(e);l.ar.b.g&&So(a.c,r);return a}function cnt(e,t,n){var r,i,a,o,s=e.c,l;for(o=(n.q?n.q:(iy(),iy(),GJ)).vc().Kc();o.Ob();)a=H(o.Pb(),44),r=!Bc(Av(new Yh(null,new Nb(s,16)),new ua(new qye(t,a)))).Bd((gl(),eY)),r&&(l=a.md(),V(l,4)&&(i=Gk(l),i!=null&&(l=i)),t.qf(H(a.ld(),149),l))}function lnt(e,t,n){var r,i;if(Sv(e.b),d_(e.b,(tO(),$Lt),(Pl(),w3)),d_(e.b,X4,t.g),d_(e.b,Z4,t.a),e.a=xR(e.b,t),n.Ug(`Compaction by shrinking a tree`,e.a.c.length),t.i.c.length>1)for(i=new L(e.a);i.a=0?e.Lh(r,!0,!0):kP(e,a,!0),160)),H(i,220).Xl(t,n)}else throw R(new Ks(HG+t.xe()+UG))}function lF(e,t){var n,r,i,a,o;if(t){for(a=V(e.Cb,90)||V(e.Cb,102),o=!a&&V(e.Cb,331),r=new Lf((!t.a&&(t.a=new ag(t,P7,t)),t.a));r.e!=r.i.gc();)if(n=H(fA(r),89),i=GI(n),a?V(i,90):o?V(i,156):i)return i;return a?(bz(),X7):(bz(),Y7)}return null}function dnt(e,t){var n,r,i,a;for(t.Ug(`Resize child graph to fit parent.`,1),r=new L(e.b);r.a=2*t&&Af(n,new eh(o[r-1]+t,o[r]-t));return n}function mnt(e,t,n){var r,i,a,o,s,l,u,d;if(n)for(a=n.a.length,r=new Ng(a),s=(r.b-r.a)*r.c<0?(Kl(),N9):new Rf(r);s.Ob();)o=H(s.Pb(),17),i=sx(n,o.a),i&&(l=oze(e,(u=(Mc(),d=new Jpe,d),t&&wnt(u,t),u),i),kw(l,cx(i,cK)),NM(i,l),E7e(i,l),mYe(e,i,l))}function uF(e){var t,n,r,i,a,o;if(!e.j){if(o=new Yoe,t=r9,a=t.a.zc(e,t),a==null){for(r=new Lf(Cy(e));r.e!=r.i.gc();)n=H(fA(r),29),i=uF(n),y_(o,i),SS(o,n);t.a.Bc(e)}tD(o),e.j=new Ed((H(G(ly((j_(),V7).o),11),19),o.i),o.g),Hx(e).b&=-33}return e.j}function hnt(e){var t,n,r,i;if(e==null)return null;if(r=VL(e,!0),i=jq.length,hm(r.substr(r.length-i,i),jq)){if(n=r.length,n==4){if(t=(Mb(0,r.length),r.charCodeAt(0)),t==43)return rUt;if(t==45)return nUt}else if(n==3)return rUt}return new Epe(r)}function gnt(e){var t,n=e.l,r;return n&n-1||(r=e.m,r&r-1)||(t=e.h,t&t-1)||t==0&&r==0&&n==0?-1:t==0&&r==0&&n!=0?QGe(n):t==0&&r!=0&&n==0?QGe(r)+22:t!=0&&r==0&&n==0?QGe(t)+44:-1}function dF(e,t){var n,r,i=t.a&e.f,a=null,o;for(r=e.b[i];;r=r.b){if(r==t){a?a.b=t.b:e.b[i]=t.b;break}a=r}for(o=t.f&e.f,a=null,n=e.c[o];;n=n.d){if(n==t){a?a.d=t.d:e.c[o]=t.d;break}a=n}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function _nt(e,t){var n;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(n=H(rv(H(nS(e.b,t.a),260)),260),n.a=0,++e.c):(n=H(rv(H(N_(e.b,t.a),260)),260),--n.a,t.e?t.e.c=t.c:n.b=H(rv(t.c),511),t.c?t.c.e=t.e:n.c=H(rv(t.e),511)),--e.d}function vnt(e){var t,n=e.o,i,a,o,s,l,u,d,f;for(t=e.p,s=Ez,a=hB,l=Ez,o=hB,d=0;d0),a.a.Xb(a.c=--a.b),$p(a,i),zp(a.b3&&oC(e,0,t-3))}function Snt(e){var t,n,r,i;return cd(q(e,(fz(),i1)))===cd((ED(),Y8))?!e.e&&cd(q(e,H$))!==cd((XT(),lQ)):(r=H(q(e,U$),299),i=Vs(Fp(q(e,$jt)))||cd(q(e,K$))===cd((Ow(),OZ)),t=H(q(e,Yjt),17).a,n=e.a.c.length,!i&&r!=(XT(),lQ)&&(t==0||t>n))}function Cnt(e){for(var t,n=0;n0);n++);if(n>0&&n0);t++);return t>0&&n>16!=6&&t){if(jj(e,t))throw R(new Ks(YG+$9e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?Ej(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=bA(t,e,6,r)),r=vTe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,6,t,t))}function mF(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(jj(e,t))throw R(new Ks(YG+Bct(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?I4e(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=bA(t,e,12,r)),r=yTe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,3,t,t))}function wnt(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=9&&t){if(jj(e,t))throw R(new Ks(YG+Yat(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?O4e(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=bA(t,e,9,r)),r=bTe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,9,t,t))}function hF(e){var t,n,r=Pj(e),i,a=e.j;if(a==null&&r)return e.Jk()?null:r.ik();if(V(r,156)){if(n=r.jk(),n&&(i=n.wi(),i!=e.i)){if(t=H(r,156),t.nk())try{e.g=i.ti(t,a)}catch(t){if(t=eE(t),V(t,82))e.g=null;else throw R(t)}e.i=i}return e.g}return null}function Tnt(e){var t=new go;return Af(t,new $l(new zu(e.c,e.d),new zu(e.c+e.b,e.d))),Af(t,new $l(new zu(e.c,e.d),new zu(e.c,e.d+e.a))),Af(t,new $l(new zu(e.c+e.b,e.d+e.a),new zu(e.c+e.b,e.d))),Af(t,new $l(new zu(e.c+e.b,e.d+e.a),new zu(e.c,e.d+e.a))),t}function Ent(e){var t,n,r;if(e==null)return Mz;try{return FO(e)}catch(i){if(i=eE(i),V(i,103))return t=i,r=Fc(sD(e))+`@`+(n=(ul(),J$e(e)>>>0),n.toString(16)),x1e(EJe(),(ml(),`Exception during lenientFormat for `+r),t),`<`+r+` threw `+Fc(t.Rm)+`>`;throw R(i)}}function Dnt(e,t,n){for(var r,i,a=t.a.ec().Kc();a.Ob();)i=H(a.Pb(),74),r=H(N_(e.b,i),272),!r&&(ob(eN(i))==ob(tN(i))?Ort(e,i,n):eN(i)==ob(tN(i))?N_(e.c,i)==null&&N_(e.b,tN(i))!=null&&Fut(e,i,n,!1):N_(e.d,i)==null&&N_(e.b,eN(i))!=null&&Fut(e,i,n,!0))}function Ont(e,t){for(var n,r,i=e.Kc(),a,o,s,l;i.Ob();)for(r=H(i.Pb(),10),s=new bN,_b(s,r),rP(s,(XR(),j5)),EE(s,(hz(),Ekt),(lp(),!0)),o=t.Kc();o.Ob();)a=H(o.Pb(),10),l=new bN,_b(l,a),rP(l,Z5),EE(l,Ekt,!0),n=new vy,EE(n,Ekt,!0),hb(n,s),vb(n,l)}function knt(e,t,n,r){var i=k$e(e,t,n),a=k$e(e,n,t),o=H(N_(e.c,t),118),s=H(N_(e.c,n),118);i1)for(t=rp((n=new qo,++e.b,n),e.d),s=lA(a,0);s.b!=s.d.c;)o=H(ux(s),125),DF(xl(bl(Sl(yl(new Ko,1),0),t),o))}function Nnt(e,t,n){var r,i,a,o,s;for(n.Ug(`Breaking Point Removing`,1),e.a=H(q(t,(fz(),Z$)),223),a=new L(t.b);a.a>16!=11&&t){if(jj(e,t))throw R(new Ks(YG+aI(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?L4e(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=bA(t,e,10,r)),r=eEe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,11,t,t))}function Pnt(e){for(var t,n,r=new OT(new Li(e.b).a),i;r.b;)n=Nw(r),i=H(n.ld(),12),t=H(n.md(),10),EE(t,(hz(),KQ),i),EE(i,qQ,t),EE(i,PQ,(lp(),!0)),rP(i,H(q(t,kQ),64)),q(t,kQ),EE(i.i,(fz(),N1),(CM(),S5)),H(q($_(i.i),jQ),21).Fc((BF(),iQ))}function Fnt(e,t,n){var r,i,a=0,o=0,s,l;if(e.c)for(l=new L(e.d.i.j);l.aa.a?-1:i.al){for(d=e.d,e.d=vS(dVt,IK,66,2*l+4,0,1),a=0;a=0x8000000000000000?(pC(),LSt):(i=!1,e<0&&(i=!0,e=-e),r=0,e>=HB&&(r=Uy(e/HB),e-=r*HB),n=0,e>=VB&&(n=Uy(e/VB),e-=n*VB),t=Uy(e),a=Cf(t,n,r),i&&BE(a),a)}function Xnt(e){var t,n,r,i,a=new go;if(UC(e.b,new pa(a)),e.b.c.length=0,a.c.length!=0){for(t=(jb(0,a.c.length),H(a.c[0],82)),n=1,r=a.c.length;n=-t&&i==t?new nd(kD(n-1),kD(i)):new nd(kD(n),kD(i-1))}function $nt(){return _z(),K(B(KDt,1),lB,81,0,[wDt,xDt,OX,NX,HDt,IX,ZX,VX,BDt,jDt,RDt,BX,VDt,kDt,UDt,hDt,UX,qX,PX,KX,WDt,GX,gDt,zDt,GDt,YX,$X,FX,EDt,IDt,FDt,QX,yDt,AX,RX,vDt,zX,NDt,ADt,LDt,MX,SDt,bDt,PDt,jX,HX,XX,_Dt,WX,MDt,LX,DDt,TDt,JX,kX,ODt,CDt])}function ert(e,t,n){e.d=0,e.b=0,t.k==(fN(),wX)&&n.k==wX&&H(q(t,(hz(),KQ)),10)==H(q(n,KQ),10)&&(IUe(t).j==(XR(),M5)?Vtt(e,t,n):Vtt(e,n,t)),t.k==wX&&n.k==SX?IUe(t).j==(XR(),M5)?e.d=1:e.b=1:n.k==wX&&t.k==SX&&(IUe(n).j==(XR(),M5)?e.b=1:e.d=1),u2e(e,t,n)}function trt(e){var t,n,r,i,a,o,s,l,u,d,f=IM(e);return t=e.a,l=t!=null,l&&Sh(f,`category`,e.a),i=Wc(new Ii(e.d)),o=!i,o&&(u=new mi,AC(f,`knownOptions`,u),n=new Mfe(u),Px(new Ii(e.d),n)),a=Wc(e.g),s=!a,s&&(d=new mi,AC(f,`supportedFeatures`,d),r=new Nfe(d),Px(e.g,r)),f}function nrt(e){var t,n,r=!1,i,a,o,s,l,u;for(t=336,n=0,a=new GTe(e.length),s=e,l=0,u=s.length;l>16!=7&&t){if(jj(e,t))throw R(new Ks(YG+x5e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?Dj(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=H(t,54).Rh(e,1,NBt,r)),r=ije(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,7,t,t))}function SF(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(jj(e,t))throw R(new Ks(YG+jZe(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?kj(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=H(t,54).Rh(e,0,FBt,r)),r=aje(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,3,t,t))}function art(e,t){UF();var n,r,i,a,o,s,l,u,d;return t.d>e.d&&(s=e,e=t,t=s),t.d<63?fit(e,t):(o=(e.d&-2)<<4,u=QBe(e,o),d=QBe(t,o),r=zL(e,Gx(u,o)),i=zL(t,Gx(d,o)),l=art(u,d),n=art(r,i),a=art(zL(u,r),zL(i,d)),a=SR(SR(a,l),n),a=Gx(a,o),l=Gx(l,o<<1),SR(SR(l,a),n))}function CF(){CF=D,C0=new Au(ivt,0),x0=new Au(`LONGEST_PATH`,1),HMt=new Au(`LONGEST_PATH_SOURCE`,2),v0=new Au(`COFFMAN_GRAHAM`,3),b0=new Au(TU,4),UMt=new Au(`STRETCH_WIDTH`,5),S0=new Au(`MIN_WIDTH`,6),_0=new Au(`BF_MODEL_ORDER`,7),y0=new Au(`DF_MODEL_ORDER`,8)}function ort(e,t,n){var r,i,a,o=ND(e,n),s=vS(vX,dU,10,t.length,0,1);for(r=0,a=o.Kc();a.Ob();)i=H(a.Pb(),12),Vs(Fp(q(i,(hz(),PQ))))&&(s[r++]=H(q(i,qQ),10));if(r=0;a+=n?1:-1)o|=t.c.lg(l,a,n,r&&!Vs(Fp(q(t.j,(hz(),AQ))))&&!Vs(Fp(q(t.j,(hz(),QQ))))),o|=t.q.ug(l,a,n),o|=xat(e,l[a],n,r);return n_(e.c,t),o}function EF(e,t,n){for(var r,i,a,o,s,l,u,d=mRe(e.j),f=0,p=d.length;f1&&(e.a=!0),_g(H(n.b,68),um(Tf(H(t.b,68).c),kf(dm(Tf(H(n.b,68).a),H(t.b,68).a),i))),nIe(e,t),drt(e,n)}function frt(e){for(var t,n,r,i,a=new L(e.a.a),o,s;a.a0&&a>0?o.p=t++:r>0?o.p=n++:a>0?o.p=i++:o.p=n++}iy(),bf(e.j,new Pte)}function mrt(e){var t,n=null;t=H(Wh(e.g,0),18);do{if(n=t.d.i,Cp(n,(hz(),HQ)))return H(q(n,HQ),12).i;if(n.k!=(fN(),CX)&&UP(new jg(Yf(AO(n).a.Kc(),new f))))t=H(Wx(new jg(Yf(AO(n).a.Kc(),new f))),18);else if(n.k!=CX)return null}while(n&&n.k!=(fN(),CX));return n}function hrt(e,t){var n,r,i,a,o,s=t.j,l,u,d;for(o=t.g,l=H(Wh(s,s.c.length-1),113),d=(jb(0,s.c.length),H(s.c[0],113)),u=R2e(e,o,l,d),a=1;au&&(l=n,d=i,u=r);t.a=d,t.c=l}function grt(e,t,n){var r,i,a,o,s,l,u=new zc(new wde(e));for(o=K(B(cDt,1),Ght,12,0,[t,n]),s=0,l=o.length;sl-e.b&&sl-e.a&&s0?a.a?(s=a.b.Mf().a,n>s&&(i=(n-s)/2,a.d.b=i,a.d.c=i)):a.d.c=e.s+n:Lg(e.u)&&(r=zM(a.b),r.c<0&&(a.d.b=-r.c),r.c+r.b>a.b.Mf().a&&(a.d.c=r.c+r.b-a.b.Mf().a))}function Irt(e,t){var n,r,i,a,o=new go;n=t;do a=H(N_(e.b,n),131),a.B=n.c,a.D=n.d,So(o.c,a),n=H(N_(e.k,n),18);while(n);return r=(jb(0,o.c.length),H(o.c[0],131)),r.j=!0,r.A=H(r.d.a.ec().Kc().Pb(),18).c.i,i=H(Wh(o,o.c.length-1),131),i.q=!0,i.C=H(i.d.a.ec().Kc().Pb(),18).d.i,o}function Lrt(e){var t=H(e.a,17).a,n=H(e.b,17).a;if(t>=0){if(t==n)return new nd(kD(-t-1),kD(-t-1));if(t==-n)return new nd(kD(-t),kD(n+1))}return r.Math.abs(t)>r.Math.abs(n)?t<0?new nd(kD(-t),kD(n)):new nd(kD(-t),kD(n+1)):new nd(kD(t+1),kD(n))}function Rrt(e){var t,n=H(q(e,(fz(),f1)),171);t=H(q(e,(hz(),FQ)),311),n==(XO(),o$)?(EE(e,f1,l$),EE(e,FQ,(dC(),hQ))):n==c$?(EE(e,f1,l$),EE(e,FQ,(dC(),pQ))):t==(dC(),hQ)?(EE(e,f1,o$),EE(e,FQ,mQ)):t==pQ&&(EE(e,f1,c$),EE(e,FQ,mQ))}function kF(){kF=D,D2=new yn,uPt=zh(new uv,(XM(),rX),(_z(),PX)),fPt=xg(zh(new uv,rX,GX),aX,WX),pPt=Wk(Wk(Rl(xg(zh(new uv,tX,ZX),aX,XX),iX),YX),QX),dPt=xg(zh(zh(zh(new uv,nX,IX),iX,RX),iX,zX),aX,LX),E2=xg(zh(zh(new uv,iX,zX),iX,AX),aX,kX)}function AF(){AF=D,gPt=zh(xg(new uv,(XM(),aX),(_z(),DDt)),rX,PX),A2=Wk(Wk(Rl(xg(zh(new uv,tX,ZX),aX,XX),iX),YX),QX),_Pt=xg(zh(zh(zh(new uv,nX,IX),iX,RX),iX,zX),aX,LX),yPt=zh(zh(new uv,rX,GX),aX,WX),vPt=xg(zh(zh(new uv,iX,zX),iX,AX),aX,kX)}function zrt(e,t,n,r,i){var a,o;(!Vx(t)&&t.c.i.c==t.d.i.c||!BKe(LE(K(B(X3,1),Kz,8,0,[i.i.n,i.n,i.a])),n))&&!Vx(t)&&(t.c==i?yp(t.a,0,new Ld(n)):Ch(t.a,new Ld(n)),r&&!il(e.a,n)&&(o=H(q(t,(fz(),d1)),75),o||(o=new cs,EE(t,d1,o)),a=new Ld(n),kx(o,a,o.c.b,o.c),n_(e.a,a)))}function Brt(e,t){var n,r,i,a=Sg(yO(rB,_v(Sg(yO(t==null?0:zw(t),iB)),15)));for(n=a&e.b.length-1,i=null,r=e.b[n];r;i=r,r=r.a)if(r.d==a&&Y_(r.i,t))return i?i.a=r.a:e.b[n]=r.a,Kme(H(rv(r.c),604),H(rv(r.f),604)),wo(H(rv(r.b),227),H(rv(r.e),227)),--e.f,++e.e,!0;return!1}function Vrt(e){for(var t,n=new jg(Yf(kO(e).a.Kc(),new f));UP(n);)if(t=H(Wx(n),18),t.c.i.k!=(fN(),xX))throw R(new Xs(ogt+sj(e)+`' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen.`))}function Hrt(e,t,n){var r,i=LZe(e.Db&254),a,o,s,l,u;if(i==0)e.Eb=n;else{if(i==1)s=vS(eJ,jz,1,2,5,1),a=nj(e,t),a==0?(s[0]=n,s[1]=e.Eb):(s[0]=e.Eb,s[1]=n);else for(s=vS(eJ,jz,1,i+1,5,1),o=gw(e.Eb),r=2,l=0,u=0;r<=128;r<<=1)r==t?s[u++]=n:(e.Db&r)!=0&&(s[u++]=o[l++]);e.Eb=s}e.Db|=t}function Urt(e,t,n){var i,a,o,s;for(this.b=new go,a=0,i=0,s=new L(e);s.a0&&(o=H(Wh(this.b,0),176),a+=o.o,i+=o.p),a*=2,i*=2,t>1?a=Uy(r.Math.ceil(a*t)):i=Uy(r.Math.ceil(i/t)),this.a=new ik(a,i)}function Wrt(e,t,n,i,a,o){var s,l,u,d,f=i,p,m,h,g,_,v,y;for(t.j&&t.o?(h=H(N_(e.f,t.A),60),_=h.d.c+h.d.b,--f):_=t.a.c+t.a.b,p=a,n.q&&n.o?(h=H(N_(e.f,n.C),60),d=h.d.c,++p):d=n.a.c,v=d-_,u=r.Math.max(2,p-f),l=v/u,g=_+l,m=f;m=0;o+=i?1:-1){for(s=t[o],l=r==(XR(),j5)?i?xO(s,r):qO(xO(s,r)):i?qO(xO(s,r)):xO(s,r),a&&(e.c[s.p]=l.gc()),f=l.Kc();f.Ob();)d=H(f.Pb(),12),e.d[d.p]=u++;nE(n,l)}}function qrt(e,t,n){var r,i,a=z(Ip(e.b.Kc().Pb())),o,s,l,u=z(Ip(wJe(t.b))),d;for(r=kf(Tf(e.a),u-n),i=kf(Tf(t.a),n-a),d=um(r,i),kf(d,1/(u-a)),this.a=d,this.b=new go,s=!0,o=e.b.Kc(),o.Pb();o.Ob();)l=z(Ip(o.Pb())),s&&l-n>DW&&(this.b.Fc(n),s=!1),this.b.Fc(l);s&&this.b.Fc(n)}function Jrt(e){var t,n,r,i;if(pI(e,e.n),e.d.c.length>0){for(tc(e.c);Oet(e,H(W(new L(e.e.a)),125))>5,i,a,o;if(t&=31,r>=e.d)return e.e<0?(cI(),iCt):(cI(),BJ);if(a=e.d-r,i=vS(F9,NB,28,a+1,15,1),f5e(i,a,e.a,r,t),e.e<0){for(n=0;n0&&e.a[n]<<32-t){for(n=0;n=0?!1:(n=CR((LN(),o9),i,t),!n||(r=n.Ik(),(r>1||r==-1)&&sv(tC(o9,n))!=3))):!1}function tit(e,t,n,r){var i,a,o,s=PM(H(G((!t.b&&(t.b=new pm(f7,t,4,7)),t.b),0),84)),l=PM(H(G((!t.c&&(t.c=new pm(f7,t,5,8)),t.c),0),84));return ob(s)==ob(l)||HC(l,s)?null:(o=Gy(t),o==n?r:(a=H(N_(e.a,o),10),a&&(i=a.e,i)?i:null))}function nit(e,t,n){var r,i,a,o,s;for(n.Ug(`Longest path to source layering`,1),e.a=t,s=e.a.a,e.b=vS(F9,NB,28,s.c.length,15,1),r=0,o=new L(s);o.a0&&(n[0]+=e.d,s-=n[0]),n[2]>0&&(n[2]+=e.d,s-=n[2]),o=r.Math.max(0,s),n[1]=r.Math.max(n[1],s),cVe(e,sY,a.c+i.b+n[0]-(n[1]-s)/2,n),t==sY&&(e.c.b=o,e.c.c=a.c+i.b+(o-s)/2)}function mit(){this.c=vS(z9,QB,28,(XR(),K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5])).length,15,1),this.b=vS(z9,QB,28,K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5]).length,15,1),this.a=vS(z9,QB,28,K(B(Q5,1),sU,64,0,[X5,M5,j5,Y5,Z5]).length,15,1),tve(this.c,KB),tve(this.b,qB),tve(this.a,qB)}function PF(e,t,n){var r,i,a,o;if(t<=n?(i=t,a=n):(i=n,a=t),r=0,e.b==null)e.b=vS(F9,NB,28,2,15,1),e.b[0]=i,e.b[1]=a,e.c=!0;else{if(r=e.b.length,e.b[r-1]+1==i){e.b[r-1]=a;return}o=vS(F9,NB,28,r+2,15,1),JI(e.b,0,o,0,r),e.b=o,e.b[r-1]>=i&&(e.c=!1,e.a=!1),e.b[r++]=i,e.b[r]=a,e.c||QP(e)}}function FF(e,t,n){var r,i,a,o,s,l,u=t.d;for(e.a=new dS(u.c.length),e.c=new ho,s=new L(u);s.a=0?e.Lh(u,!1,!0):kP(e,n,!1),61));n:for(a=f.Kc();a.Ob();){for(i=H(a.Pb(),58),d=0;d1;)zF(i,i.i-1);return r}function bit(e,t){for(var n=new If,r,i,a=new L(e.b),o,s,l;a.ae.d[o.p]&&(n+=TBe(e.b,a),dx(e.a,kD(a)));for(;!nc(e.a);)tWe(e.b,H(e_(e.a),17).a)}return n}function Sit(e){var t,n,r,i,a,o,s,l,u;for(e.a=new om,u=0,i=0,r=new L(e.i.b);r.al.d&&(f=l.d+l.a+d));n.c.d=f,t.a.zc(n,t),u=r.Math.max(u,n.c.d+n.c.a)}return u}function BF(){BF=D,$Z=new Ou(`COMMENTS`,0),tQ=new Ou(`EXTERNAL_PORTS`,1),nQ=new Ou(`HYPEREDGES`,2),rQ=new Ou(`HYPERNODES`,3),iQ=new Ou(`NON_FREE_PORTS`,4),aQ=new Ou(`NORTH_SOUTH_PORTS`,5),sQ=new Ou(pgt,6),QZ=new Ou(`CENTER_LABELS`,7),eQ=new Ou(`END_LABELS`,8),oQ=new Ou(`PARTITIONS`,9)}function Tit(e,t,n,r,i){return r<0?(r=jN(e,i,K(B(PJ,1),Kz,2,6,[SB,CB,wB,TB,EB,DB,OB,kB,mmt,hmt,AB,jB]),t),r<0&&(r=jN(e,i,K(B(PJ,1),Kz,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,EB,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function Eit(e,t,n,r,i){return r<0?(r=jN(e,i,K(B(PJ,1),Kz,2,6,[SB,CB,wB,TB,EB,DB,OB,kB,mmt,hmt,AB,jB]),t),r<0&&(r=jN(e,i,K(B(PJ,1),Kz,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,EB,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function Dit(e,t,n,r,i,a){var o,s=32,l,u;if(r<0){if(t[0]>=e.length||(s=kv(e,t[0]),s!=43&&s!=45)||(++t[0],r=SP(e,t),r<0))return!1;s==45&&(r=-r)}return s==32&&t[0]-n==2&&i.b==2&&(l=new s_e,u=l.q.getFullYear()-MB+MB-80,o=u%100,a.a=r==o,r+=(u/100|0)*100+(r=0?bk(e):h_(bk(YS(e)))),UJ[t]=Bbe(Dg(e,t),0)?bk(Dg(e,t)):h_(bk(YS(Dg(e,t)))),e=yO(e,5);for(;t=d&&(u=i);u&&(f=r.Math.max(f,u.a.o.a)),f>m&&(p=d,m=f)}return p}function Fit(e){var t,n,r,i,a=new zc(H(D_(new rt),50)),o,s=qB;for(n=new L(e.d);n.aBvt?bf(u,e.b):i<=Bvt&&i>$W?bf(u,e.d):i<=$W&&i>eG?bf(u,e.c):i<=eG&&bf(u,e.a),o=zit(e,u,o);return a}function Bit(e,t,n,r){var i=(r.c+r.a)/2,a,o,s,l,u;for(Qv(t.j),Ch(t.j,i),Qv(n.e),Ch(n.e,i),u=new Whe,s=new L(e.f);s.a1,s&&(r=new zu(i,n.b),Ch(t.a,r)),Ew(t.a,K(B(X3,1),Kz,8,0,[p,f]))}function KF(e,t,n){var r,i;for(t=48;n--)y9[n]=n-48<<24>>24;for(r=70;r>=65;r--)y9[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)y9[i]=i-97+10<<24>>24;for(a=0;a<10;a++)b9[a]=48+a&xB;for(e=10;e<=15;e++)b9[e]=65+e-10&xB}function qit(e,t){t.Ug(`Process graph bounds`,1),EE(e,(YR(),qPt),pye(sT(Mv(new Yh(null,new Nb(e.b,16)),new kn)))),EE(e,YPt,pye(sT(Mv(new Yh(null,new Nb(e.b,16)),new Mie)))),EE(e,KPt,pye(oT(Mv(new Yh(null,new Nb(e.b,16)),new Nie)))),EE(e,JPt,pye(oT(Mv(new Yh(null,new Nb(e.b,16)),new Pie)))),t.Vg()}function Jit(e){var t,n,i,a=H(q(e,(fz(),w1)),21),o=H(q(e,E1),21);n=new zu(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Ld(n),a.Hc((Ak(),$5))&&(i=H(q(e,T1),8),o.Hc((EI(),o7))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=r.Math.max(n.a,i.a),t.b=r.Math.max(n.b,i.b)),Vs(Fp(q(e,yMt)))||DL(e,n,t)}function Yit(e,t){for(var n,r,i,a=xO(t,(XR(),Y5)).Kc();a.Ob();)r=H(a.Pb(),12),n=H(q(r,(hz(),qQ)),10),n&&DF(xl(bl(Sl(yl(new Ko,0),.1),e.i[t.p].d),e.i[n.p].a));for(i=xO(t,M5).Kc();i.Ob();)r=H(i.Pb(),12),n=H(q(r,(hz(),qQ)),10),n&&DF(xl(bl(Sl(yl(new Ko,0),.1),e.i[n.p].d),e.i[t.p].a))}function Xit(e){var t,n,r,i,a,o;if(!e.c){if(o=new Koe,t=r9,a=t.a.zc(e,t),a==null){for(r=new Lf(Sx(e));r.e!=r.i.gc();)n=H(fA(r),89),i=GI(n),V(i,90)&&y_(o,Xit(H(i,29))),SS(o,n);t.a.Bc(e),t.a.gc()}u$e(o),tD(o),e.c=new Ed((H(G(ly((j_(),V7).o),15),19),o.i),o.g),Hx(e).b&=-33}return e.c}function Zit(e){var t;if(e.c!=10)throw R(new $s(Sz((gf(),Fbt))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw R(new $s(Sz((gf(),DK))))}return t}function Qit(e){var t,n,r,i,a;if(e.l==0&&e.m==0&&e.h==0)return`0`;if(e.h==BB&&e.m==0&&e.l==0)return`-9223372036854775808`;if(e.h>>19)return`-`+Qit(SE(e));for(n=e,r=``;n.l!=0||n.m!=0||n.h!=0;){if(i=tVe(UB),n=Ilt(n,i,!0),t=``+ege(bJ),n.l!=0||n.m!=0||n.h!=0)for(a=9-t.length;a>0;a--)t=`0`+t;r=t+r}return r}function $it(e){for(var t=!1,n=0,r,i=new L(e.d.b),a,o,s;i.a=e.a||!x6e(t,n))return-1;if(lx(H(i.Kb(t),20)))return 1;for(a=0,s=H(i.Kb(t),20).Kc();s.Ob();)if(o=H(s.Pb(),18),u=o.c.i==t?o.d.i:o.c.i,l=rat(e,u,n,i),l==-1||(a=r.Math.max(a,l),a>e.c-1))return-1;return a+1}function iat(e,t){var n,r,i,a,o,s;if(cd(t)===cd(e))return!0;if(!V(t,15)||(r=H(t,15),s=e.gc(),r.gc()!=s))return!1;if(o=r.Kc(),e.Yi()){for(n=0;n0){if(e._j(),t!=null){for(a=0;a>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw R(new lc(`Invalid hexadecimal`))}}function JF(){JF=D,ywt=new eu(`SPIRAL`,0),aY=new eu(`LINE_BY_LINE`,1),hwt=new eu(`MANHATTAN`,2),mwt=new eu(`JITTER`,3),_wt=new eu(`QUADRANTS_LINE_BY_LINE`,4),vwt=new eu(`QUADRANTS_MANHATTAN`,5),gwt=new eu(`QUADRANTS_JITTER`,6),pwt=new eu(`COMBINE_LINE_BY_LINE_MANHATTAN`,7),fwt=new eu(`COMBINE_JITTER_MANHATTAN`,8)}function cat(e,t,n,r){var i,a,o,s,l=tM(e,n),u=tM(t,n);for(i=!1;l&&u&&(r||e4e(l,u,n));)o=tM(l,n),s=tM(u,n),QS(t),QS(e),a=l.c,ER(l,!1),ER(u,!1),n?(yj(t,u.p,a),t.p=u.p,yj(e,l.p+1,a),e.p=l.p):(yj(e,l.p,a),e.p=l.p,yj(t,u.p+1,a),t.p=u.p),gb(l,null),gb(u,null),l=o,u=s,i=!0;return i}function lat(e){switch(e.g){case 0:return new Fce;case 1:return new Nce;case 3:return new Fl;case 4:return new Fre;case 5:return new HTe;case 6:return new Pce;case 2:return new Mce;case 7:return new Dce;case 8:return new kce;default:throw R(new Ks(`No implementation is available for the layerer `+(e.f==null?``+e.g:e.f)))}}function uat(e,t,n,r){for(var i=!1,a=!1,o,s=new L(r.j),l;s.a=t.length)throw R(new Ws(`Greedy SwitchDecider: Free layer not in graph.`));this.c=t[e],this.e=new bm(r),nqe(this.e,this.c,(XR(),Z5)),this.i=new bm(r),nqe(this.i,this.c,j5),this.f=new TAe(this.c),this.a=!a&&i.i&&!i.s&&this.c[0].k==(fN(),bX),this.a&&A5e(this,e,t.length)}function mat(e,t){var n,r,i,a=!e.B.Hc((EI(),i7)),o=e.B.Hc(rBt),s;e.a=new d$e(o,a,e.c),e.n&&iPe(e.a.n,e.n),Dme(e.g,(XC(),sY),e.a),t||(r=new $k(1,a,e.c),r.n.a=e.k,o_(e.p,(XR(),M5),r),i=new $k(1,a,e.c),i.n.d=e.k,o_(e.p,Y5,i),s=new $k(0,a,e.c),s.n.c=e.k,o_(e.p,Z5,s),n=new $k(0,a,e.c),n.n.b=e.k,o_(e.p,j5,n))}function hat(e){var t=H(q(e.d,(fz(),Z$)),223),n,r;switch(t.g){case 2:n=Uft(e);break;case 3:n=(r=new go,_l(Av(jv(yC(yC(new Yh(null,new Nb(e.d.b,16)),new fn),new Vne),new Hne),new Mne),new Ua(r)),r);break;default:throw R(new qs(`Compaction not supported for `+t+` edges.`))}_R(e,n),Px(new Ii(e.g),new nde(e))}function XF(e,t){var n,r,i,a,o,s,l;if(t.Ug(`Process directions`,1),n=H(q(e,(QI(),t4)),88),n!=(eO(),k8))for(i=lA(e.b,0);i.b!=i.d.c;){switch(r=H(ux(i),40),s=H(q(r,(YR(),$2)),17).a,l=H(q(r,e4),17).a,n.g){case 4:l*=-1;break;case 1:a=s,s=l,l=a;break;case 2:o=s,s=-l,l=o}EE(r,$2,kD(s)),EE(r,e4,kD(l))}t.Vg()}function gat(e,t){var n=new bt;return t&&UT(n,H(N_(e.a,NBt),96)),V(t,422)&&UT(n,H(N_(e.a,PBt),96)),V(t,366)?(UT(n,H(N_(e.a,y7),96)),n):(V(t,84)&&UT(n,H(N_(e.a,f7),96)),V(t,207)?(UT(n,H(N_(e.a,b7),96)),n):V(t,193)?(UT(n,H(N_(e.a,x7),96)),n):(V(t,326)&&UT(n,H(N_(e.a,p7),96)),n))}function _at(e){var t,n,r,i,a,o,s,l=new kBe;for(s=new L(e.a);s.a0&&t=0)return!1;if(t.p=n.b,Af(n.e,t),i==(fN(),SX)||i==wX){for(o=new L(t.j);o.ae.d[s.p]&&(n+=TBe(e.b,a),dx(e.a,kD(a)))):++o;for(n+=e.b.d*o;!nc(e.a);)tWe(e.b,H(e_(e.a),17).a)}return n}function Rat(e){var t,n,r,i,a=0,o;return t=Pj(e),t.kk()&&(a|=4),(e.Bb&VK)!=0&&(a|=2),V(e,102)?(n=H(e,19),i=MA(n),(n.Bb&KG)!=0&&(a|=32),i&&(M_(sb(i)),a|=8,o=i.t,(o>1||o==-1)&&(a|=16),(i.Bb&KG)!=0&&(a|=64)),(n.Bb&XB)!=0&&(a|=HK),a|=oB):V(t,469)?a|=512:(r=t.kk(),r&&r.i&1&&(a|=256)),e.Bb&512&&(a|=128),a}function rI(e,t){var n;return e.f==OHt?(n=sv(tC((LN(),o9),t)),e.e?n==4&&t!=(NP(),c9)&&t!=(NP(),s9)&&t!=(NP(),kHt)&&t!=(NP(),AHt):n==2):e.d&&(e.d.Hc(t)||e.d.Hc(Vb(tC((LN(),o9),t)))||e.d.Hc(CR((LN(),o9),e.b,t)))?!0:e.f&&Rnt((LN(),e.f),wv(tC(o9,t)))?(n=sv(tC(o9,t)),e.e?n==4:n==2):!1}function zat(e){var t,n,r,i,a,o,s,l,u,d,f,p=-1,m=0;for(u=e,d=0,f=u.length;d0&&++m;++p}return m}function Bat(e,t,n,i){var a,o,s=H(qP(n,(gz(),m8)),8),l,u=s.a,d,f=s.b+e,p;return a=r.Math.atan2(f,u),a<0&&(a+=WW),a+=t,a>WW&&(a-=WW),l=H(qP(i,m8),8),d=l.a,p=l.b+e,o=r.Math.atan2(p,d),o<0&&(o+=WW),o+=t,o>WW&&(o-=WW),mf(),Cw(1e-10),r.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:ao?1:Md(isNaN(a),isNaN(o))}function Vat(e){var t,n,r,i,a,o,s=new ho;for(r=new L(e.a.b);r.a=e.o)throw R(new Vpe);s=t>>5,o=t&31,a=Dg(1,Sg(Dg(o,1))),i?e.n[n][s]=zb(e.n[n][s],a):e.n[n][s]=Rb(e.n[n][s],_h(a)),a=Dg(a,1),r?e.n[n][s]=zb(e.n[n][s],a):e.n[n][s]=Rb(e.n[n][s],_h(a))}catch(r){throw r=eE(r),V(r,333)?R(new Ws(WV+e.o+`*`+e.p+GV+t+Az+n+KV)):R(r)}}function Gat(e,t,n,r){var i,a,o,s,l,u,d,f,p=new zc(new Cde(e));for(s=K(B(vX,1),dU,10,0,[t,n]),l=0,u=s.length;l0&&(r=(!e.n&&(e.n=new Bg(y7,e,1,7)),H(G(e.n,0),135)).a,!r||yd(yd((t.a+=` "`,t),r),`"`))),yd(Rc(yd(Rc(yd(Rc(yd(Rc((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function Yat(e){var t,n,r;return e.Db&64?hN(e):(t=new Qf(ebt),n=e.k,n?yd(yd((t.a+=` "`,t),n),`"`):(!e.n&&(e.n=new Bg(y7,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new Bg(y7,e,1,7)),H(G(e.n,0),135)).a,!r||yd(yd((t.a+=` "`,t),r),`"`))),yd(Rc(yd(Rc(yd(Rc(yd(Rc((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function Xat(e,t){var n,r,i,a,o;for(t==(qE(),_Nt)&&GN(H(Zx(e.a,(yM(),uZ)),15)),i=H(Zx(e.a,(yM(),uZ)),15).Kc();i.Ob();)switch(r=H(i.Pb(),105),n=H(Wh(r.j,0),113).d.j,a=new Em(r.j),bf(a,new Yne),t.g){case 2:RM(e,a,n,(Aw(),mZ),1);break;case 1:case 0:o=Cnt(a),RM(e,new Sb(a,0,o),n,(Aw(),mZ),0),RM(e,new Sb(a,o,a.c.length),n,mZ,1)}}function Zat(e,t){var n,r,i,a,o,s,l;if(t==null||t.length==0)return null;if(i=H(Ry(e.a,t),143),!i){for(r=(s=new Ui(e.b).a.vc().Kc(),new Wi(s));r.a.Ob();)if(n=(a=H(r.a.Pb(),44),H(a.md(),143)),o=n.c,l=t.length,hm(o.substr(o.length-l,l),t)&&(t.length==o.length||kv(o,o.length-t.length-1)==46)){if(i)return null;i=n}i&&mb(e.a,t,i)}return i}function Qat(e,t){var n=new lt,r=H(Ax(jv(new Yh(null,new Nb(e.f,16)),n),qS(new ve,new ye,new Ee,new De,K(B($J,1),lB,108,0,[(aD(),QJ),ZJ]))),21),i=r.gc(),a;return r=H(Ax(jv(new Yh(null,new Nb(t.f,16)),n),qS(new ve,new ye,new Ee,new De,K(B($J,1),lB,108,0,[QJ,ZJ]))),21),a=r.gc(),ii.p?(rP(a,Y5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=s-t)):a.j==Y5&&i.p>e.p&&(rP(a,M5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=-(s-t)));break}return i}function oI(e,t,n,r,i){var a,o,s,l,u,d,f;if(!(V(t,207)||V(t,366)||V(t,193)))throw R(new Ks(`Method only works for ElkNode-, ElkLabel and ElkPort-objects.`));return o=e.a/2,l=t.i+r-o,d=t.j+i-o,u=l+t.g+e.a,f=d+t.f+e.a,a=new cs,Ch(a,new zu(l,d)),Ch(a,new zu(l,f)),Ch(a,new zu(u,f)),Ch(a,new zu(u,d)),s=new Pet(a),UT(s,t),n&&fv(e.b,t,s),s}function sI(e,t,n){for(var r,i,a=new zu(t,n),o,s,l,u,d=new L(e.a),f,p;d.a1,s&&(r=new zu(i,n.b),Ch(t.a,r)),Ew(t.a,K(B(X3,1),Kz,8,0,[p,f]))}function mI(){mI=D,z0=new Mu(oU,0),F0=new Mu(`NIKOLOV`,1),L0=new Mu(`NIKOLOV_PIXEL`,2),I0=new Mu(`NIKOLOV_IMPROVED`,3),nNt=new Mu(`NIKOLOV_IMPROVED_PIXEL`,4),tNt=new Mu(`DUMMYNODE_PERCENTAGE`,5),R0=new Mu(`NODECOUNT_PERCENTAGE`,6),B0=new Mu(`NO_BOUNDARY`,7),N0=new Mu(`MODEL_ORDER_LEFT_TO_RIGHT`,8),P0=new Mu(`MODEL_ORDER_RIGHT_TO_LEFT`,9)}function got(e){var t,n,r=e.length,i,a;for(t=new oc,a=0;a=40,o&&Ust(e),tlt(e),Jrt(e),n=eQe(e),r=0;n&&r0&&Ch(e.f,a)):(e.c[o]-=u+1,e.c[o]<=0&&e.a[o]>0&&Ch(e.e,a))))}function Lot(e,t,n,r){var i,a,o,s,l=new zu(n,r),u,d;for(dm(l,H(q(t,(YR(),B2)),8)),d=lA(t.b,0);d.b!=d.d.c;)u=H(ux(d),40),um(u.e,l),Ch(e.b,u);for(s=H(Ax(HFe(new Yh(null,new Nb(t.a,16))),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15).Kc();s.Ob();){for(o=H(s.Pb(),65),a=lA(o.a,0);a.b!=a.d.c;)i=H(ux(a),8),i.a+=l.a,i.b+=l.b;Ch(e.a,o)}}function Rot(e,t){var n,r,i,a;if(0<(V(e,16)?H(e,16).gc():vx(e.Kc()))){if(i=t,1=0&&la*2?(d=new lGe(f),u=$h(o)/Qh(o),l=az(d,t,new as,n,r,i,u),um(wd(d.e),l),f.c.length=0,a=0,So(f.c,d),So(f.c,o),a=$h(d)*Qh(d)+$h(o)*Qh(o)):(So(f.c,o),a+=$h(o)*Qh(o));return f}function Uot(e,t){var n,r,i,a,o,s=H(q(t,(fz(),N1)),101);if(s==(CM(),x5)||s==b5)for(i=new zu(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,o=new L(e.a);o.an?t:n;u<=f;++u)u==n?s=r++:(a=i[u],d=h.am(a.Lk()),u==t&&(l=u==f&&!d?r-1:r),d&&++r);return p=H(aO(e,t,n),76),s!=l&&Bo(e,new AS(e.e,7,o,kD(s),m.md(),l)),p}}else return H(C9e(e,t,n),76);return H(aO(e,t,n),76)}function Got(e,t){var n,r,i,a,o,s,l;for(t.Ug(`Port order processing`,1),l=H(q(e,(fz(),EMt)),430),r=new L(e.b);r.a=0&&(s=c4e(e,o),!(s&&(u<22?l.l|=1<>>1,o.m=d>>>1|(f&1)<<21,o.l=p>>>1|(d&1)<<21,--u;return n&&BE(l),a&&(r?(bJ=SE(e),i&&(bJ=jJe(bJ,(pC(),zSt)))):bJ=Cf(e.l,e.m,e.h)),l}function qot(e,t){var n,r,i,a,o,s,l,u=e.e[t.c.p][t.p]+1,d,f;for(l=t.c.a.c.length+1,s=new L(e.a);s.a0&&(Mb(0,e.length),e.charCodeAt(0)==45||(Mb(0,e.length),e.charCodeAt(0)==43))),r=o;rn)throw R(new lc(GB+e+`"`));return s}function Jot(e){var t,n,i,a,o,s=new ll,l;for(o=new L(e.a);o.a1)&&t==1&&H(e.a[e.b],10).k==(fN(),xX)?vL(H(e.a[e.b],10),(vj(),e5)):r&&(!n||(e.c-e.b&e.a.length-1)>1)&&t==1&&H(e.a[e.c-1&e.a.length-1],10).k==(fN(),xX)?vL(H(e.a[e.c-1&e.a.length-1],10),(vj(),t5)):(e.c-e.b&e.a.length-1)==2?(vL(H(NE(e),10),(vj(),e5)),vL(H(NE(e),10),t5)):Mtt(e,i),Nze(e)}function Qot(e,t,n){var i,a,o=0,s,l;for(a=new Lf((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a));a.e!=a.i.gc();)i=H(fA(a),27),s=``,(!i.n&&(i.n=new Bg(y7,i,1,7)),i.n).i==0||(s=H(G((!i.n&&(i.n=new Bg(y7,i,1,7)),i.n),0),135).a),l=new AYe(o++,t,s),UT(l,i),EE(l,(YR(),Y2),i),l.e.b=i.j+i.f/2,l.f.a=r.Math.max(i.g,1),l.e.a=i.i+i.g/2,l.f.b=r.Math.max(i.f,1),Ch(t.b,l),qN(n.f,i,l)}function $ot(e){var t,n,r=H(q(e,(hz(),KQ)),27),i,a=H(qP(r,(fz(),w1)),181).Hc((Ak(),n7));e.e||(i=H(q(e,jQ),21),t=new zu(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),i.Hc((BF(),tQ))?(xA(r,N1,(CM(),b5)),$R(r,t.a,t.b,!1,!0)):Vs(Fp(qP(r,yMt)))||$R(r,t.a,t.b,!0,!0)),a?xA(r,w1,dO(n7)):xA(r,w1,(n=H(Pc(r7),9),new Dm(n,H(nm(n,n.length),9),0)))}function est(e,t,n){var r,i,a,o;if(t[0]>=e.length)return n.o=0,!0;switch(kv(e,t[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.o=0,!0}if(++t[0],a=t[0],o=SP(e,t),o==0&&t[0]==a)return!1;if(t[0]s&&(s=i,d.c.length=0),i==s&&Af(d,new nd(n.c.i,n)));iy(),bf(d,e.c),pg(e.b,l.p,d)}}function NI(e,t){for(var n,r,i,a,o=new L(t.b),s,l,u,d;o.as&&(s=i,d.c.length=0),i==s&&Af(d,new nd(n.d.i,n)));iy(),bf(d,e.c),pg(e.f,l.p,d)}}function PI(e,t){var n,r,i,a,o,s,l,u=Fp(q(t,(QI(),TFt)));if(u==null||(iv(u),u)){for(FP(e,t),i=new go,l=lA(t.b,0);l.b!=l.d.c;)o=H(ux(l),40),n=H5e(e,o,null),n&&(UT(n,t),So(i.c,n));if(e.a=null,e.b=null,i.c.length>1)for(r=new L(i);r.a=0&&s!=n&&(a=new Vg(e,1,s,o,null),r?r.nj(a):r=a),n>=0&&(a=new Vg(e,1,n,s==n?o:null,t),r?r.nj(a):r=a)),r}function RI(e){var t,n,r;if(e.b==null){if(r=new ac,e.i!=null&&(gd(r,e.i),r.a+=`:`),e.f&256){for(e.f&256&&e.a!=null&&(INe(e.i)||(r.a+=`//`),gd(r,e.a)),e.d!=null&&(r.a+=`/`,gd(r,e.d)),e.f&16&&(r.a+=`/`),t=0,n=e.j.length;tp?!1:(f=(l=kL(r,p,!1),l.a),d+s+f<=t.b&&(jS(n,a-n.s),n.c=!0,jS(r,a-n.s),jA(r,n.s,n.t+n.d+s),r.k=!0,vT(n.q,r),m=!0,i&&(qGe(t,r),r.j=t,e.c.length>o&&(Nj((jb(o,e.c.length),H(e.c[o],186)),r),(jb(o,e.c.length),H(e.c[o],186)).a.c.length==0&&eS(e,o)))),m)}function cst(e,t){var n,r,i,a,o,s;if(t.Ug(`Partition midprocessing`,1),i=new Fy,_l(Av(new Yh(null,new Nb(e.a,16)),new Ite),new Jue(i)),i.d!=0){for(s=H(Ax(Pb((a=i.i,new Yh(null,(a||(i.i=new zf(i,i.c))).Nc()))),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15),r=s.Kc(),n=H(r.Pb(),17);r.Ob();)o=H(r.Pb(),17),Ont(H(Zx(i,n),21),H(Zx(i,o),21)),n=o;t.Vg()}}function lst(e,t,n){var r,i,a,o,s,l,u,d;if(t.p==0){for(t.p=1,o=n,o||=(i=new go,a=(r=H(Pc(Q5),9),new Dm(r,H(nm(r,r.length),9),0)),new nd(i,a)),H(o.a,15).Fc(t),t.k==(fN(),bX)&&H(o.b,21).Fc(H(q(t,(hz(),kQ)),64)),l=new L(t.j);l.a0){if(i=H(e.Ab.g,2033),t==null){for(a=0;an.s&&lo)return XR(),j5;break;case 4:case 3:if(d<0)return XR(),M5;if(d+n>a)return XR(),Y5}return l=(u+s/2)/o,r=(d+n/2)/a,l+r<=1&&l-r<=0?(XR(),Z5):l+r>=1&&l-r>=0?(XR(),j5):r<.5?(XR(),M5):(XR(),Y5)}function _st(e,t){var n=!1,r,i,a,o,s,l,u,d=z(Ip(q(t,(fz(),n0)))),f,p,m,h=mB*d,g;for(i=new L(t.b);i.al+h&&(g=f.g+p.g,p.a=(p.g*p.a+f.g*f.a)/g,p.g=g,f.f=p,n=!0)),a=s,f=p;return n}function vst(e,t,n,r,i,a,o){var s,l,u,d,f,p=new zd;for(u=t.Kc();u.Ob();)for(s=H(u.Pb(),853),f=new L(s.Rf());f.a0?l.a?(d=l.b.Mf().b,a>d&&(e.v||l.c.d.c.length==1?(s=(a-d)/2,l.d.d=s,l.d.a=s):(n=H(Wh(l.c.d,0),187).Mf().b,i=(n-d)/2,l.d.d=r.Math.max(0,i),l.d.a=a-i-d))):l.d.a=e.t+a:Lg(e.u)&&(o=zM(l.b),o.d<0&&(l.d.d=-o.d),o.d+o.a>l.b.Mf().b&&(l.d.a=o.d+o.a-l.b.Mf().b))}function UI(){UI=D,GY=new cf((gz(),h8),kD(1)),KY=new cf(S8,80),eEt=new cf(gzt,5),VTt=new cf(x6,jH),XTt=new cf(g8,kD(1)),$Tt=new cf(fzt,(lp(),!0)),UY=new rf(50),JTt=new cf(Q6,UY),BY=R6,WY=s8,HTt=new cf(k6,!1),qTt=Z6,GTt=G6,KTt=J6,WTt=W6,UTt=H6,YTt=u8,HY=(_N(),MTt),tEt=LTt,VY=jTt,ZTt=PTt,QTt=ITt,iEt=E8,aEt=O8,rEt=T8,nEt=w8,qY=(TD(),c7),new cf(D8,qY)}function xst(e,t){var n;switch(xC(e)){case 6:return ld(t);case 7:return dd(t);case 8:return ud(t);case 3:return Array.isArray(t)&&(n=xC(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===Kpt;case 12:return t!=null&&(typeof t===Cz||typeof t==Kpt);case 0:return u0e(t,e.__elementTypeId$);case 2:return Gje(t)&&t.Tm!==E;case 1:return Gje(t)&&t.Tm!==E||u0e(t,e.__elementTypeId$);default:return!0}}function Sst(e){var t,n,i=e.o,a;Gp(),e.A.dc()||zD(e.A,Qwt)?a=i.a:(a=e.D?r.Math.max(i.a,dP(e.f)):dP(e.f),e.A.Hc((Ak(),e7))&&!e.B.Hc((EI(),s7))&&(a=r.Math.max(a,dP(H(yv(e.p,(XR(),M5)),252))),a=r.Math.max(a,dP(H(yv(e.p,Y5),252)))),t=Gqe(e),t&&(a=r.Math.max(a,t.a))),i.a=Vs(Fp(e.e.Tf().of((gz(),G6))))?r.Math.max(i.a,a):a,n=e.f.i,n.c=0,n.b=a,act(e.f)}function Cst(e,t){var n,i=r.Math.min(r.Math.abs(e.c-(t.c+t.b)),r.Math.abs(e.c+e.b-t.c)),a,o=r.Math.min(r.Math.abs(e.d-(t.d+t.a)),r.Math.abs(e.d+e.a-t.d));return n=r.Math.abs(e.c+e.b/2-(t.c+t.b/2)),n>e.b/2+t.b/2||(a=r.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:n==0&&a==0?0:n==0?o/a+1:a==0?i/n+1:r.Math.min(i/n,o/a)+1}function wst(e,t){var n,r,i,a=0,o,s=0,l=0;for(i=new L(e.f.e);i.a0&&e.d!=(lC(),wEt)&&(s+=o*(r.d.a+e.a[t.a][r.a]*(t.d.a-r.d.a)/n)),n>0&&e.d!=(lC(),CEt)&&(l+=o*(r.d.b+e.a[t.a][r.a]*(t.d.b-r.d.b)/n)));switch(e.d.g){case 1:return new zu(s/a,t.d.b);case 2:return new zu(t.d.a,l/a);default:return new zu(s/a,l/a)}}function Tst(e){var t,n=(!e.a&&(e.a=new Mf(d7,e,5)),e.a).i+2,r,i,a,o=new dS(n);for(Af(o,new zu(e.j,e.k)),_l(new Yh(null,(!e.a&&(e.a=new Mf(d7,e,5)),new Nb(e.a,16))),new afe(o)),Af(o,new zu(e.b,e.c)),t=1;t0&&(_E(l,!1,(eO(),A8)),_E(l,!0,j8)),UC(t.g,new Nve(e,n)),fv(e.g,t,n)}function Ost(){Ost=D;var e;for(KSt=K(B(F9,1),NB,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),MJ=vS(F9,NB,28,37,15,1),qSt=K(B(F9,1),NB,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),JSt=vS(L9,Amt,28,37,14,1),e=2;e<=36;e++)MJ[e]=Uy(r.Math.pow(e,KSt[e])),JSt[e]=eM(Zz,MJ[e])}function kst(e){var t;if((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a).i!=1)throw R(new Ks(Uyt+(!e.a&&(e.a=new Bg(m7,e,6,6)),e.a).i));return t=new cs,tE(H(G((!e.b&&(e.b=new pm(f7,e,4,7)),e.b),0),84))&&Ww(t,dz(e,tE(H(G((!e.b&&(e.b=new pm(f7,e,4,7)),e.b),0),84)),!1)),tE(H(G((!e.c&&(e.c=new pm(f7,e,5,8)),e.c),0),84))&&Ww(t,dz(e,tE(H(G((!e.c&&(e.c=new pm(f7,e,5,8)),e.c),0),84)),!0)),t}function Ast(e,t){var n,r,i=t.d?e.a.c==(Jy(),g2)?kO(t.b):AO(t.b):e.a.c==(Jy(),h2)?kO(t.b):AO(t.b),a=!1,o;for(r=new jg(Yf(i.a.Kc(),new f));UP(r);)if(n=H(Wx(r),18),o=Vs(e.a.f[e.a.g[t.b.p].p]),(o||Vx(n)||n.c.i.c!=n.d.i.c)&&!(Vs(e.a.n[e.a.g[t.b.p].p])||Vs(e.a.n[e.a.g[t.b.p].p]))&&(a=!0,il(e.b,e.a.g[O2e(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=a,t.a=null,t}function jst(e,t,n){var r=n.gc(),i,a,o,s,l,u;if(r==0)return!1;if(e.Pj()){if(l=e.Qj(),c$e(e,t,n),o=r==1?e.Ij(3,null,n.Kc().Pb(),t,l):e.Ij(5,null,n,t,l),e.Mj()){for(s=r<100?null:new Ac(r),a=t+r,i=t;i0){for(s=0;s>16==-15&&e.Cb.Yh()&&zUe(new KHe(e.Cb,9,13,n,e.c,wA($S(H(e.Cb,62)),e))):V(e.Cb,90)&&e.Db>>16==-23&&e.Cb.Yh()&&(t=e.c,V(t,90)||(t=(bz(),X7)),V(n,90)||(n=(bz(),X7)),zUe(new KHe(e.Cb,9,10,n,t,wA(Sx(H(e.Cb,29)),e)))))),e.c}function Lst(e,t,n){var r,i,a,o,s,l,u,d,f;for(n.Ug(`Hyperedge merging`,1),Het(e,t),l=new Kb(t.b,0);l.b0,s=RO(t,a),PCe(n?s.b:s.g,t),cD(s).c.length==1&&kx(r,s,r.c.b,r.c),i=new nd(a,t),dx(e.o,i),JS(e.e.a,a))}function Wst(e,t){var n,i=r.Math.abs(Qg(e.b).a-Qg(t.b).a),a,o,s,l=r.Math.abs(Qg(e.b).b-Qg(t.b).b),u;return a=0,u=0,n=1,s=1,i>e.b.b/2+t.b.b/2&&(a=r.Math.min(r.Math.abs(e.b.c-(t.b.c+t.b.b)),r.Math.abs(e.b.c+e.b.b-t.b.c)),n=1-a/i),l>e.b.a/2+t.b.a/2&&(u=r.Math.min(r.Math.abs(e.b.d-(t.b.d+t.b.a)),r.Math.abs(e.b.d+e.b.a-t.b.d)),s=1-u/l),o=r.Math.min(n,s),(1-o)*r.Math.sqrt(i*i+l*l)}function Gst(e){var t,n,r,i;for(Edt(e,e.e,e.f,(qy(),j2),!0,e.c,e.i),Edt(e,e.e,e.f,j2,!1,e.c,e.i),Edt(e,e.e,e.f,M2,!0,e.c,e.i),Edt(e,e.e,e.f,M2,!1,e.c,e.i),Ist(e,e.c,e.e,e.f,e.i),r=new Kb(e.i,0);r.b=65;n--)_9[n]=n-65<<24>>24;for(r=122;r>=97;r--)_9[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)_9[i]=i-48+52<<24>>24;for(_9[43]=62,_9[47]=63,a=0;a<=25;a++)v9[a]=65+a&xB;for(o=26,l=0;o<=51;++o,l++)v9[o]=97+l&xB;for(e=52,s=0;e<=61;++e,s++)v9[e]=48+s&xB;v9[62]=43,v9[63]=47}function qst(e,t){var n,i,a=_qe(e),o,s,l=_qe(t);return a==l?e.e==t.e&&e.a<54&&t.a<54?e.ft.f):(i=e.e-t.e,n=(e.d>0?e.d:r.Math.floor((e.a-1)*Mmt)+1)-(t.d>0?t.d:r.Math.floor((t.a-1)*Mmt)+1),n>i+1?a:n0&&(s=gx(s,gL(i))),K$e(o,s))):ad&&(m=0,h+=u+t,u=0),sI(s,m,h),n=r.Math.max(n,m+f.a),u=r.Math.max(u,f.b),m+=f.a+t;return new zu(n+t,h+u+t)}function Xst(e,t){var n,r,i,a,o,s,l;if(!Ky(e))throw R(new qs(Hyt));if(r=Ky(e),a=r.g,i=r.f,a<=0&&i<=0)return XR(),X5;switch(s=e.i,l=e.j,t.g){case 2:case 1:if(s<0)return XR(),Z5;if(s+e.g>a)return XR(),j5;break;case 4:case 3:if(l<0)return XR(),M5;if(l+e.f>i)return XR(),Y5}return o=(s+e.g/2)/a,n=(l+e.f/2)/i,o+n<=1&&o-n<=0?(XR(),Z5):o+n>=1&&o-n>=0?(XR(),j5):n<.5?(XR(),M5):(XR(),Y5)}function Zst(e,t,n,r,i){var a=vO(Rb(t[0],$B),Rb(r[0],$B)),o;if(e[0]=Sg(a),a=Og(a,32),n>=i){for(o=1;o0&&(i.b[o++]=0,i.b[o++]=a.b[0]-1),t=1;t0&&(Vle(l,l.d-i.d),i.c==(fS(),O2)&&zle(l,l.a-i.d),l.d<=0&&l.i>0&&kx(t,l,t.c.b,t.c)));for(a=new L(e.f);a.a0&&(Hle(s,s.i-i.d),i.c==(fS(),O2)&&Ble(s,s.b-i.d),s.i<=0&&s.d>0&&kx(n,s,n.c.b,n.c)))}function nct(e,t,n,r,i){var a,o,s,l,u,d,f,p,m;for(iy(),bf(e,new yoe),o=ch(e),m=new go,p=new go,s=null,l=0;o.b!=0;)a=H(o.b==0?null:(zp(o.b!=0),WC(o,o.a.a)),163),!s||$h(s)*Qh(s)/2<$h(a)*Qh(a)?(s=a,So(m.c,a)):(l+=$h(a)*Qh(a),So(p.c,a),p.c.length>1&&(l>$h(s)*Qh(s)/2||o.b==0)&&(f=new lGe(p),d=$h(s)/Qh(s),u=az(f,t,new as,n,r,i,d),um(wd(f.e),u),s=f,So(m.c,f),l=0,p.c.length=0));return nE(m,p),m}function JI(e,t,n,r,i){ul();var a,o,s,l,u,d,f;if(nMe(e,`src`),nMe(n,`dest`),f=sD(e),l=sD(n),ph(!!(f.i&4),`srcType is not an array`),ph(!!(l.i&4),`destType is not an array`),d=f.c,o=l.c,ph(d.i&1?d==o:!(o.i&1),`Array types don't match`),cYe(e,t,n,r,i),!(d.i&1)&&f!=l){if(u=gw(e),a=gw(n),cd(e)===cd(n)&&tr;)F_(a,s,u[--t]);else for(s=r+i;r0),r.a.Xb(r.c=--r.b),f>p+l&&G_(r);for(o=new L(m);o.a0),r.a.Xb(r.c=--r.b)}}function rct(){vz();var e,t,n,r,i,a;if(O9)return O9;for(e=(++M9,new Bb(4)),UL(e,nz(Jq,!0)),LR(e,nz(`M`,!0)),LR(e,nz(`C`,!0)),a=(++M9,new Bb(4)),r=0;r<11;r++)PF(a,r,r);return t=(++M9,new Bb(4)),UL(t,nz(`M`,!0)),PF(t,4448,4607),PF(t,65438,65439),i=(++M9,new pf(2)),dR(i,e),dR(i,D9),n=(++M9,new pf(2)),n.Jm(ng(a,nz(`L`,!0))),n.Jm(t),n=(++M9,new Tx(3,n)),n=(++M9,new p_(i,n)),O9=n,O9}function ZI(e,t){var n=new RegExp(t,`g`),r,i,a,o,s,l=vS(PJ,Kz,2,0,6,1),u;for(r=0,u=e,a=null;;){if(s=n.exec(u),s==null||u==``){l[r]=u;break}o=s.index,l[r]=(bS(0,o,u.length),u.substr(0,o)),u=Dy(u,o+s[0].length,u.length),n.lastIndex=0,a==u&&(l[r]=(bS(0,1,u.length),u.substr(0,1)),u=(Mb(1,u.length+1),u.substr(1))),a=u,++r}if(e.length>0){for(i=l.length;i>0&&l[i-1]==``;)--i;i0&&(p-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(p-=i[2]+e.c),i[1]=r.Math.max(i[1],p),mg(e.a[1],n.c+t.b+i[0]-(i[1]-p)/2,i[1]);for(o=e.a,l=0,d=o.length;l0?(e.n.c.length-1)*e.i:0,i=new L(e.n);i.a1)for(r=lA(i,0);r.b!=r.d.c;)for(n=H(ux(r),235),a=0,l=new L(n.e);l.a0&&(t[0]+=e.c,p-=t[0]),t[2]>0&&(p-=t[2]+e.c),t[1]=r.Math.max(t[1],p),hg(e.a[1],i.d+n.d+t[0]-(t[1]-p)/2,t[1]);else for(g=i.d+n.d,h=i.a-n.d-n.a,s=e.a,u=0,f=s.length;u0||wO(a.b.d,e.b.d+e.b.a)==0&&i.b<0||wO(a.b.d+a.b.a,e.b.d)==0&&i.b>0){l=0;break}}else l=r.Math.min(l,F7e(e,a,i));l=r.Math.min(l,pct(e,o,l,i))}return l}function tL(e,t){var n,r,i,a,o,s,l;if(e.b<2)throw R(new Ks(`The vector chain must contain at least a source and a target point.`));for(i=(zp(e.b!=0),H(e.a.a.c,8)),$d(t,i.a,i.b),l=new pp((!t.a&&(t.a=new Mf(d7,t,5)),t.a)),o=lA(e,1);o.a=0&&a!=n))throw R(new Ks(mK));for(i=0,l=0;lz(Df(o.g,o.d[0]).a)?(zp(l.b>0),l.a.Xb(l.c=--l.b),$p(l,o),i=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new go),s.e).Mc(t),u=(!s.e&&(s.e=new go),s.e).Mc(n),(a||u)&&((!s.e&&(s.e=new go),s.e).Fc(o),++o.c));i||So(r.c,o)}function _ct(e,t,n){var r,i,a,o,s,l,u,d,f=e.a.i+e.a.g/2,p=e.a.i+e.a.g/2,m,h=t.i+t.g/2,g,_=t.j+t.f/2,v;return s=new zu(h,_),u=H(qP(t,(gz(),m8)),8),u.a+=f,u.b+=p,a=(s.b-u.b)/(s.a-u.a),r=s.b-a*s.a,g=n.i+n.g/2,v=n.j+n.f/2,l=new zu(g,v),d=H(qP(n,m8),8),d.a+=f,d.b+=p,o=(l.b-d.b)/(l.a-d.a),i=l.b-o*l.a,m=(r-i)/(o-a),!(u.a>>0,`0`+t.toString(16)),r=`\\x`+Dy(n,n.length-2,n.length)):e>=XB?(n=(t=e>>>0,`0`+t.toString(16)),r=`\\v`+Dy(n,n.length-6,n.length)):r=``+String.fromCharCode(e&xB)}return r}function aL(e){var t,n,r;if(Ud(H(q(e,(fz(),N1)),101)))for(n=new L(e.j);n.a=t.o&&n.f<=t.f||t.a*.5<=n.f&&t.a*1.5>=n.f){if(o=H(Wh(t.n,t.n.c.length-1),209),o.e+o.d+n.g+i<=r&&(a=H(Wh(t.n,t.n.c.length-1),209),a.f-e.f+n.f<=e.b||e.a.c.length==1))return AQe(t,n),!0;if(t.s+n.g<=r&&(t.t+t.d+n.f+i<=e.b||e.a.c.length==1))return Af(t.b,n),s=H(Wh(t.n,t.n.c.length-1),209),Af(t.n,new Wy(t.s,s.f+s.a+t.i,t.i)),p2e(H(Wh(t.n,t.n.c.length-1),209),n),sct(t,n),!0}return!1}function cL(e,t,n){var r,i,a,o;return e.Pj()?(i=null,a=e.Qj(),r=e.Ij(1,o=hC(e,t,n),n,t,a),e.Mj()&&!(e.Yi()&&o!=null?zD(o,n):cd(o)===cd(n))?(o!=null&&(i=e.Oj(o,i)),i=e.Nj(n,i),e.Tj()&&(i=e.Wj(o,n,i)),i?(i.nj(r),i.oj()):e.Jj(r)):(e.Tj()&&(i=e.Wj(o,n,i)),i?(i.nj(r),i.oj()):e.Jj(r)),o):(o=hC(e,t,n),e.Mj()&&!(e.Yi()&&o!=null?zD(o,n):cd(o)===cd(n))&&(i=null,o!=null&&(i=e.Oj(o,null)),i=e.Nj(n,i),i&&i.oj()),o)}function Tct(e,t){var n,r,i,a,o;if(t.Ug(`Path-Like Graph Wrapping`,1),e.b.c.length==0){t.Vg();return}if(i=new Met(e),o=(i.i??(i.i=qw(i,new Ere)),z(i.i)*i.f),n=o/(i.i??(i.i=qw(i,new Ere)),z(i.i)),i.b>n){t.Vg();return}switch(H(q(e,(fz(),u0)),351).g){case 2:a=new kre;break;case 0:a=new yre;break;default:a=new Are}if(r=a.og(e,i),!a.pg())switch(H(q(e,m0),352).g){case 2:r=B7e(i,r);break;case 1:r=i6e(i,r)}mlt(e,i,r),t.Vg()}function lL(e,t){var n,i,a,o,s,l,u,d;t%=24,e.q.getHours()!=t&&(i=new r.Date(e.q.getTime()),i.setDate(i.getDate()+1),l=e.q.getTimezoneOffset()-i.getTimezoneOffset(),l>0&&(u=l/60|0,d=l%60,a=e.q.getDate(),n=e.q.getHours(),n+u>=24&&++a,o=new r.Date(e.q.getFullYear(),e.q.getMonth(),a,t+u,e.q.getMinutes()+d,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(o.getTime()))),s=e.q.getTime(),e.q.setTime(s+36e5),e.q.getHours()!=t&&e.q.setTime(s)}function uL(e,t){var n,r,i,a;if(BIe(e.d,e.e),e.c.a.$b(),z(Ip(q(t.j,(fz(),z$))))!=0||z(Ip(q(t.j,z$)))!=0)for(n=_H,cd(q(t.j,B$))!==cd((Rk(),V0))&&EE(t.j,(hz(),AQ),(lp(),!0)),a=H(q(t.j,s0),17).a,i=0;ii&&++u,Af(o,(jb(s+u,t.c.length),H(t.c[s+u],17))),l+=(jb(s+u,t.c.length),H(t.c[s+u],17)).a-r,++n;n=v&&e.e[u.p]>g*e.b||x>=n*v)&&(So(m.c,l),l=new go,Ww(s,o),o.a.$b(),d-=f,h=r.Math.max(h,d*e.b+_),d+=x,b=x,x=0,f=0,_=0);return new nd(h,m)}function dL(e){var t,n,r,i,a,o,s;if(!e.d){if(s=new Qn,t=r9,a=t.a.zc(e,t),a==null){for(r=new Lf(Cy(e));r.e!=r.i.gc();)n=H(fA(r),29),y_(s,dL(n));t.a.Bc(e),t.a.gc()}for(o=s.i,i=(!e.q&&(e.q=new Bg(F7,e,11,10)),new Lf(e.q));i.e!=i.i.gc();++o)H(fA(i),411);y_(s,(!e.q&&(e.q=new Bg(F7,e,11,10)),e.q)),tD(s),e.d=new Ed((H(G(ly((j_(),V7).o),9),19),s.i),s.g),e.e=H(s.g,688),e.e??=eHt,Hx(e).b&=-17}return e.d}function fL(e,t,n,r){var i,a,o,s,l,u=OF(e.e.Dh(),t);if(l=0,i=H(e.g,124),Gl(),H(t,69).xk()){for(o=0;o1||h==-1){if(f=H(g,71),p=H(d,71),f.dc())p.$b();else for(o=!!MA(t),a=0,s=e.a?f.Kc():f.Ii();s.Ob();)u=H(s.Pb(),58),i=H(_C(e,u),58),i?(o?(l=p.dd(i),l==-1?p.Gi(a,i):a!=l&&p.Ui(a,i)):p.Gi(a,i),++a):e.b&&!o&&(p.Gi(a,u),++a)}else g==null?d.Wb(null):(i=_C(e,g),i==null?e.b&&!MA(t)&&d.Wb(g):d.Wb(i))}}function mL(e,t){for(var n=new tte,i,a=new jg(Yf(kO(t).a.Kc(),new f)),o,s,l,u,d;UP(a);)if(i=H(Wx(a),18),!Vx(i)&&(l=i.c.i,x6e(l,DX))){if(d=rat(e,l,DX,EX),d==-1)continue;n.b=r.Math.max(n.b,d),!n.a&&(n.a=new go),Af(n.a,l)}for(s=new jg(Yf(AO(t).a.Kc(),new f));UP(s);)if(o=H(Wx(s),18),!Vx(o)&&(u=o.d.i,x6e(u,EX))){if(d=rat(e,u,EX,DX),d==-1)continue;n.d=r.Math.max(n.d,d),!n.c&&(n.c=new go),Af(n.c,u)}return n}function kct(e,t,n,r){var i,a,o,s,l,u,d;if(n.d.i!=t.i){for(i=new NA(e),xi(i,(fN(),SX)),EE(i,(hz(),KQ),n),EE(i,(fz(),N1),(CM(),b5)),So(r.c,i),o=new bN,_b(o,i),rP(o,(XR(),Z5)),s=new bN,_b(s,i),rP(s,j5),d=n.d,vb(n,o),a=new vy,UT(a,n),EE(a,d1,null),hb(a,s),vb(a,d),u=new Kb(n.b,0);u.b1e6)throw R(new Us(`power of ten too big`));if(e<=Ez)return Gx(AP(HJ[1],t),t);for(r=AP(HJ[1],Ez),i=r,n=zT(e-Ez),t=Uy(e%Ez);yD(n,Ez)>0;)i=gx(i,r),n=bO(n,Ez);for(i=gx(i,AP(HJ[1],t)),i=Gx(i,Ez),n=zT(e-Ez);yD(n,Ez)>0;)i=Gx(i,Ez),n=bO(n,Ez);return i=Gx(i,t),i}function Act(e){for(var t,n,r,i,a,o,s,l=new L(e.a),u,d;l.au&&r>u)d=s,u=z(t.p[s.p])+z(t.d[s.p])+s.o.b+s.d.a;else{i=!1,n._g()&&n.bh(`bk node placement breaks on `+s+` which should have been after `+d);break}if(!i)break}return n._g()&&n.bh(t+` is feasible: `+i),i}function yL(e,t,n,r){var i,a=new NA(e),o,s,l,u,d,f,p;if(xi(a,(fN(),wX)),EE(a,(fz(),N1),(CM(),b5)),i=0,t){for(o=new bN,EE(o,(hz(),KQ),t),EE(a,KQ,t.i),rP(o,(XR(),Z5)),_b(o,a),p=Jb(t.e),u=p,d=0,f=u.length;d0){if(i<0&&d.a&&(i=l,a=u[0],r=0),i>=0){if(s=d.b,l==i&&(s-=r++,s==0))return 0;if(!tz(t,u,d,s,o)){l=i-1,u[0]=a;continue}}else if(i=-1,!tz(t,u,d,0,o))return 0}else{if(i=-1,kv(d.c,0)==32){if(f=u[0],rWe(t,u),u[0]>f)continue}else if(LPe(t,d.c,u[0])){u[0]+=d.c.length;continue}return 0}return Hdt(o,n)?u[0]:0}function xL(e,t,n){var r,i,a,o,s,l,u,d=new Ag(new Sa(n)),f,p;for(s=vS(I9,wV,28,e.f.e.c.length,16,1),Xje(s,s.length),n[t.a]=0,u=new L(e.f.e);u.a=0&&!UA(e,d,f);)--f;i[d]=f}for(m=0;m=0&&!UA(e,s,h);)--s;a[h]=s}for(l=0;lt[p]&&pr[l]&&iI(e,l,p,!1,!0)}function SL(e){var t,n=Vs(Fp(q(e,(UI(),HTt)))),r,i,a=e.a.c.d,o,s=e.a.d.d,l;n?(o=kf(dm(new zu(s.a,s.b),a),.5),l=kf(Tf(e.e),.5),t=dm(um(new zu(a.a,a.b),o),l),Twe(e.d,t)):(i=z(Ip(q(e.a,eEt))),r=e.d,a.a>=s.a?a.b>=s.b?(r.a=s.a+(a.a-s.a)/2+i,r.b=s.b+(a.b-s.b)/2-i-e.e.b):(r.a=s.a+(a.a-s.a)/2+i,r.b=a.b+(s.b-a.b)/2+i):a.b>=s.b?(r.a=a.a+(s.a-a.a)/2+i,r.b=s.b+(a.b-s.b)/2+i):(r.a=a.a+(s.a-a.a)/2+i,r.b=a.b+(s.b-a.b)/2-i-e.e.b))}function CL(e){var t,n,r,i,a,o,s,l;if(!e.f){if(l=new Zn,s=new Zn,t=r9,o=t.a.zc(e,t),o==null){for(a=new Lf(Cy(e));a.e!=a.i.gc();)i=H(fA(a),29),y_(l,CL(i));t.a.Bc(e),t.a.gc()}for(r=(!e.s&&(e.s=new Bg(k7,e,21,17)),new Lf(e.s));r.e!=r.i.gc();)n=H(fA(r),179),V(n,102)&&SS(s,H(n,19));tD(s),e.r=new Bke(e,(H(G(ly((j_(),V7).o),6),19),s.i),s.g),y_(l,e.r),tD(l),e.f=new Ed((H(G(ly(V7.o),5),19),l.i),l.g),Hx(e).b&=-3}return e.f}function Ict(e){Ll(e,new MM(vc(mc(_c(gc(new Bn,uH),`ELK DisCo`),`Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out.`),new Dt))),Zb(e,uH,dH,dA(DTt)),Zb(e,uH,fH,dA(xTt)),Zb(e,uH,pH,dA(_Tt)),Zb(e,uH,mH,dA(STt)),Zb(e,uH,hht,dA(TTt)),Zb(e,uH,bV,dA(wTt)),Zb(e,uH,yV,dA(ETt)),Zb(e,uH,ght,dA(CTt)),Zb(e,uH,aH,dA(yTt)),Zb(e,uH,oH,dA(vTt)),Zb(e,uH,sH,dA(bTt)),Zb(e,uH,cH,dA(IY))}function wL(){wL=D,YBt=K(B(P9,1),yB,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),XBt=RegExp(`[ -\r\f]+`);try{S7=K(B(nHt,1),jz,2114,0,[new oo((nxe(),mk(`yyyy-MM-dd'T'HH:mm:ss'.'SSSZ`,Zp((Ls(),Ls(),hJ))))),new oo(mk(`yyyy-MM-dd'T'HH:mm:ss'.'SSS`,Zp(hJ))),new oo(mk(`yyyy-MM-dd'T'HH:mm:ss`,Zp(hJ))),new oo(mk(`yyyy-MM-dd'T'HH:mm`,Zp(hJ))),new oo(mk(`yyyy-MM-dd`,Zp(hJ)))])}catch(e){if(e=eE(e),!V(e,82))throw R(e)}}function Lct(e,t){var n,r,i=cF(e.d,1)!=0,a;if(r=rot(e,t),r==0&&Vs(Fp(q(t.j,(hz(),AQ)))))return 0;!Vs(Fp(q(t.j,(hz(),AQ))))&&!Vs(Fp(q(t.j,QQ)))||cd(q(t.j,(fz(),B$)))===cd((Rk(),V0))?t.c.mg(t.e,i):i=Vs(Fp(q(t.j,AQ))),TF(e,t,i,!0),Vs(Fp(q(t.j,QQ)))&&EE(t.j,QQ,(lp(),!1)),Vs(Fp(q(t.j,AQ)))&&(EE(t.j,AQ,(lp(),!1)),EE(t.j,QQ,!0)),n=rot(e,t);do{if(fqe(e),n==0)return 0;i=!i,a=n,TF(e,t,i,!1),n=rot(e,t)}while(a>n);return a}function TL(e,t){var n,r,i=cF(e.d,1)!=0,a;if(r=KN(e,t),r==0&&Vs(Fp(q(t.j,(hz(),AQ)))))return 0;!Vs(Fp(q(t.j,(hz(),AQ))))&&!Vs(Fp(q(t.j,QQ)))||cd(q(t.j,(fz(),B$)))===cd((Rk(),V0))?t.c.mg(t.e,i):i=Vs(Fp(q(t.j,AQ))),TF(e,t,i,!0),Vs(Fp(q(t.j,QQ)))&&EE(t.j,QQ,(lp(),!1)),Vs(Fp(q(t.j,AQ)))&&(EE(t.j,AQ,(lp(),!1)),EE(t.j,QQ,!0)),n=KN(e,t);do{if(fqe(e),n==0)return 0;i=!i,a=n,TF(e,t,i,!1),n=KN(e,t)}while(a>n);return a}function EL(e,t,n,i){var a,o,s,l,u=dm(new zu(n.a,n.b),e),d=u.a*t.b-u.b*t.a,f=t.a*i.b-t.b*i.a,p=(u.a*i.b-u.b*i.a)/f,m=d/f;return f==0?d==0?(a=um(new zu(n.a,n.b),kf(new zu(i.a,i.b),.5)),o=ES(e,a),s=ES(um(new zu(e.a,e.b),t),a),l=r.Math.sqrt(i.a*i.a+i.b*i.b)*.5,o=0&&p<=1&&m>=0&&m<=1?um(new zu(e.a,e.b),kf(new zu(t.a,t.b),p)):null}function DL(e,t,n){var r=H(q(e,(fz(),Jjt)),21),i,a,o,s;if(n.a>t.a&&(r.Hc((mM(),f6))?e.c.a+=(n.a-t.a)/2:r.Hc(m6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((mM(),g6))?e.c.b+=(n.b-t.b)/2:r.Hc(h6)&&(e.c.b+=n.b-t.b)),H(q(e,(hz(),jQ)),21).Hc((BF(),tQ))&&(n.a>t.a||n.b>t.b))for(s=new L(e.a);s.at.a&&(r.Hc((mM(),f6))?e.c.a+=(n.a-t.a)/2:r.Hc(m6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((mM(),g6))?e.c.b+=(n.b-t.b)/2:r.Hc(h6)&&(e.c.b+=n.b-t.b)),H(q(e,(hz(),jQ)),21).Hc((BF(),tQ))&&(n.a>t.a||n.b>t.b))for(o=new L(e.a);o.a0?e.i:0)>t&&u>0&&(o=0,s+=u+e.i,a=r.Math.max(a,m),i+=u+e.i,u=0,m=0,n&&(++p,Af(e.n,new Wy(e.s,s,e.i))),l=0),m+=d.g+(l>0?e.i:0),u=r.Math.max(u,d.f),n&&p2e(H(Wh(e.n,p),209),d),o+=d.g+(l>0?e.i:0),++l;return a=r.Math.max(a,m),i+=u,n&&(e.r=a,e.d=i,t4e(e.j)),new Vv(e.s,e.t,a,i)}function AL(e){var t,n,i,a,o,s,l,u,d,f,p,m;for(e.b=!1,p=KB,u=qB,m=KB,d=qB,i=e.e.a.ec().Kc();i.Ob();)for(n=H(i.Pb(),272),a=n.a,p=r.Math.min(p,a.c),u=r.Math.max(u,a.c+a.b),m=r.Math.min(m,a.d),d=r.Math.max(d,a.d+a.a),s=new L(n.c);s.ae.o.a&&(f=(u-e.o.a)/2,l.b=r.Math.max(l.b,f),l.c=r.Math.max(l.c,f))}}function FL(e){var t,n,r,i,a=new CLe,o,s,l;for(Oxe(a,(cE(),E3)),r=(i=hqe(e,vS(PJ,Kz,2,0,6,1)),new Qi(new ec(new c_e(e,i).b)));r.bs?1:-1,i==-1)f=-l,d=o==l?uVe(t.a,s,e.a,a):yHe(t.a,s,e.a,a);else if(f=o,o==l){if(i==0)return cI(),BJ;d=uVe(e.a,a,t.a,s)}else d=yHe(e.a,a,t.a,s);return u=new c_(f,d.length,d),Yb(u),u}function zct(e,t){var n,r,i,a=Vst(t);if(!t.c&&(t.c=new Bg(x7,t,9,9)),_l(new Yh(null,(!t.c&&(t.c=new Bg(x7,t,9,9)),new Nb(t.c,16))),new ka(a)),i=H(q(a,(hz(),jQ)),21),qut(t,i),i.Hc((BF(),tQ)))for(r=new Lf((!t.c&&(t.c=new Bg(x7,t,9,9)),t.c));r.e!=r.i.gc();)n=H(fA(r),123),kdt(e,t,a,n);return H(qP(t,(fz(),w1)),181).gc()!=0&&Oit(t,a),Vs(Fp(q(a,xMt)))&&i.Fc(oQ),Cp(a,H1)&&Ame(new rk(z(Ip(q(a,H1)))),a),cd(qP(t,i1))===cd((ED(),Y8))?Ppt(e,t,a):upt(e,t,a),a}function BL(e){for(var t,n,r,i=new L(e.b),a,o,s,l;i.a0?Dy(n.a,0,a-1):``):(bS(0,a-1,e.length),e.substr(0,a-1)):n?n.a:e}function HL(e,t){var n,r,i,a,o,s,l;for(t.Ug(`Sort By Input Model `+q(e,(fz(),B$)),1),i=0,r=new L(e.b);r.a=e.b.length?(a[i++]=o.b[r++],a[i++]=o.b[r++]):r>=o.b.length?(a[i++]=e.b[n++],a[i++]=e.b[n++]):o.b[r]0?e.i:0)),++t;for(dQe(e.n,u),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=KB,e.p=KB,o=new L(e.b);o.a0&&(i=(!e.n&&(e.n=new Bg(y7,e,1,7)),H(G(e.n,0),135)).a,!i||yd(yd((t.a+=` "`,t),i),`"`))),n=(!e.b&&(e.b=new pm(f7,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new pm(f7,e,5,8)),e.c.i<=1))),n?t.a+=` [`:t.a+=` `,yd(t,uCe(new qme,new Lf(e.b))),n&&(t.a+=`]`),t.a+=Vht,n&&(t.a+=`[`),yd(t,uCe(new qme,new Lf(e.c))),n&&(t.a+=`]`),t.a)}function Vct(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S=e.c,C=t.c,w,T,E,D;for(n=XS(S.a,e,0),r=XS(C.a,t,0),b=H(pk(e,(xw(),K0)).Kc().Pb(),12),E=H(pk(e,q0).Kc().Pb(),12),x=H(pk(t,K0).Kc().Pb(),12),D=H(pk(t,q0).Kc().Pb(),12),v=Jb(b.e),w=Jb(E.g),y=Jb(x.e),T=Jb(D.g),yj(e,r,C),o=y,d=0,h=o.length;df?new wb((fS(),k2),n,t,d-f):d>0&&f>0&&(new wb((fS(),k2),t,n,0),new wb(k2,n,t,0))),s)}function Gct(e,t,n){var r,i,a;for(e.a=new go,a=lA(t.b,0);a.b!=a.d.c;){for(i=H(ux(a),40);H(q(i,(QI(),o4)),17).a>e.a.c.length-1;)Af(e.a,new nd(_H,svt));r=H(q(i,o4),17).a,n==(eO(),A8)||n==j8?(i.e.az(Ip(H(Wh(e.a,r),42).b))&&Di(H(Wh(e.a,r),42),i.e.a+i.f.a)):(i.e.bz(Ip(H(Wh(e.a,r),42).b))&&Di(H(Wh(e.a,r),42),i.e.b+i.f.b))}}function KL(e,t,n,r){var i,a=fO(r),o,s=Vs(Fp(q(r,(fz(),hMt)))),l,u,d;if((s||Vs(Fp(q(e,s1))))&&!Ud(H(q(e,N1),101)))i=JO(a),l=dst(e,n,n==(xw(),q0)?i:rO(i));else switch(l=new bN,_b(l,e),t?(d=l.n,d.a=t.a-e.n.a,d.b=t.b-e.n.b,u5e(d,0,0,e.o.a,e.o.b),rP(l,gst(l,a))):(i=JO(a),rP(l,n==(xw(),q0)?i:rO(i))),o=H(q(r,(hz(),jQ)),21),u=l.j,a.g){case 2:case 1:(u==(XR(),M5)||u==Y5)&&o.Fc((BF(),aQ));break;case 4:case 3:(u==(XR(),j5)||u==Z5)&&o.Fc((BF(),aQ))}return l}function Kct(e,t){for(var n,i,a,o,s=new OT(new Li(e.f.b).a),l;s.b;){if(o=Nw(s),a=H(o.ld(),602),t==1){if(a.Af()!=(eO(),N8)&&a.Af()!=k8)continue}else if(a.Af()!=(eO(),A8)&&a.Af()!=j8)continue;switch(i=H(H(o.md(),42).b,86),l=H(H(o.md(),42).a,194),n=l.c,a.Af().g){case 2:i.g.c=e.e.a,i.g.b=r.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=r.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=r.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=r.Math.max(1,i.g.a-n)}}}function qct(e,t){var n,i,a,o,s,l=vS(F9,NB,28,t.b.c.length,15,1),u,d=vS($Et,lB,273,t.b.c.length,0,1),f,p,m,h,g,_;for(u=vS(vX,dU,10,t.b.c.length,0,1),p=e.a,m=0,h=p.length;m0&&u[i]&&(g=wf(e.b,u[i],a)),_=r.Math.max(_,a.c.c.b+g);for(o=new L(f.e);o.a1)throw R(new Ks(Oq));l||(a=yx(t,r.Kc().Pb()),o.Fc(a))}return yE(e,F5e(e,t,n),o)}function JL(e,t,n){var r,i,a,o,s,l,u,d;if(jF(e.e,t))l=(Gl(),H(t,69).xk()?new nAe(t,e):new od(t,e)),LP(l.c,l.b),Ef(l,H(n,16));else{for(d=OF(e.e.Dh(),t),r=H(e.g,124),o=0;o`}l!=null&&(t.a+=``+l)}else e.e?(s=e.e.zb,s!=null&&(t.a+=``+s)):(t.a+=`?`,e.b?(t.a+=` super `,QL(e.b,t)):e.f&&(t.a+=` extends `,QL(e.f,t)))}function $L(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function eR(e){var t,n,i=cpt((!e.c&&(e.c=xb(zT(e.f))),e.c),0),a;if(e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=+(_qe(e)<0),n=e.e,a=(i.length+1+r.Math.abs(Uy(e.e)),new cc),t==1&&(a.a+=`-`),e.e>0){if(n-=i.length-t,n>=0){for(a.a+=`0.`;n>IJ.length;n-=IJ.length)Uh(a,IJ);DTe(a,IJ,Uy(n)),yd(a,(Mb(t,i.length+1),i.substr(t)))}else n=t-n,yd(a,Dy(i,t,Uy(n))),a.a+=`.`,yd(a,LMe(i,Uy(n)))}else{for(yd(a,(Mb(t,i.length+1),i.substr(t)));n<-IJ.length;n+=IJ.length)Uh(a,IJ);DTe(a,IJ,Uy(-n))}return a.a}function tR(e){var t,n,r,i,a,o,s,l,u;return!(e.k!=(fN(),CX)||e.j.c.length<=1||(a=H(q(e,(fz(),N1)),101),a==(CM(),b5))||(i=(EA(),r=(e.q?e.q:(iy(),iy(),GJ))._b(x1)?H(q(e,x1),203):H(q($_(e),S1),203),r),i==O0)||i!=D0&&i!=E0&&(o=z(Ip(hk(e,o0))),t=H(q(e,a0),140),!t&&(t=new RTe(o,o,o,o)),u=xO(e,(XR(),Z5)),l=t.d+t.a+(u.gc()-1)*o,l>e.o.b||(n=xO(e,j5),s=t.d+t.a+(n.gc()-1)*o,s>e.o.b)))}function nR(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;t.Ug(`Orthogonal edge routing`,1),u=z(Ip(q(e,(fz(),r0)))),n=z(Ip(q(e,q1))),r=z(Ip(q(e,X1))),p=new SMe(0,n),_=0,o=new Kb(e.b,0),s=null,d=null,l=null,f=null;do d=o.b0?(m=(h-1)*n,s&&(m+=r),d&&(m+=r),mt||Vs(Fp(qP(l,(GF(),L4)))))&&(i=0,a+=d.b+n,So(f.c,d),d=new xLe(a,n),r=new jYe(0,d.f,d,n),qGe(d,r),i=0),r.b.c.length==0||!Vs(Fp(qP(ob(l),(GF(),R4))))&&(l.f>=r.o&&l.f<=r.f||r.a*.5<=l.f&&r.a*1.5>=l.f)?AQe(r,l):(o=new jYe(r.s+r.r+n,d.f,d,n),qGe(d,o),AQe(o,l)),i=l.i+l.g;return So(f.c,d),f}function cR(e){var t,n,r,i;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,i=0;i=e.b[i+1])i+=2;else if(n0)for(r=new Em(H(Zx(e.a,a),21)),iy(),bf(r,new Nue(t)),i=new Kb(a.b,0);i.b0&&r>=-6?r>=0?ip(a,n-Uy(e.e),`.`):(Jqe(a,t-1,t-1,`0.`),ip(a,t+1,Ik(IJ,0,-Uy(r)-1))):(n-t>=1&&(ip(a,t,`.`),++n),ip(a,n,`E`),r>0&&ip(a,++n,`+`),ip(a,++n,``+Rg(zT(r)))),e.g=a.a,e.g)):e.g}function dlt(e,t){var n,i=z(Ip(q(t,(fz(),vMt)))),a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=H(q(t,s0),17).a,w,T;m=4,a=3,w=20/C,h=!1,u=0,s=Ez;do{for(o=u!=1,p=u!=0,T=0,v=e.a,b=0,S=v.length;bC)?(u=2,s=Ez):u==0?(u=1,s=T):(u=0,s=T)):(h=T>=s||s-T0?1:Md(isNaN(i),!1))>=0^(Cw(CW),(r.Math.abs(l)<=CW||l==0?0:l<0?-1:l>0?1:Md(isNaN(l),!1))>=0)?r.Math.max(l,i):(Cw(CW),(r.Math.abs(i)<=CW||i==0?0:i<0?-1:i>0?1:Md(isNaN(i),!1))>0?r.Math.sqrt(l*l+i*i):-r.Math.sqrt(l*l+i*i))}function dR(e,t){var n,r,i,a,o,s;if(t){if(!e.a&&(e.a=new Go),e.e==2){zo(e.a,t);return}if(t.e==1){for(i=0;i=XB?gd(n,bQe(r)):U_(n,r&xB),o=(++M9,new Iy(10,null,0)),Jje(e.a,o,s-1)):(n=(o.Mm().length+a,new oc),gd(n,o.Mm())),t.e==0?(r=t.Km(),r>=XB?gd(n,bQe(r)):U_(n,r&xB)):gd(n,t.Mm()),H(o,530).b=n.a}}function mlt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(!n.dc()){for(s=0,p=0,r=n.Kc(),h=H(r.Pb(),17).a;s1&&(l=u.Hg(l,e.a,s));return l.c.length==1?H(Wh(l,l.c.length-1),238):l.c.length==2?$ct((jb(0,l.c.length),H(l.c[0],238)),(jb(1,l.c.length),H(l.c[1],238)),o,a):null}function mR(e,t,n){var r,i,a,o,s,l,u;for(n.Ug(`Find roots`,1),e.a.c.length=0,i=lA(t.b,0);i.b!=i.d.c;)r=H(ux(i),40),r.b.b==0&&(EE(r,(YR(),Q2),(lp(),!0)),Af(e.a,r));switch(e.a.c.length){case 0:a=new AYe(0,t,`DUMMY_ROOT`),EE(a,(YR(),Q2),(lp(),!0)),EE(a,V2,!0),Ch(t.b,a);break;case 1:break;default:for(o=new AYe(0,t,FW),l=new L(e.a);l.a=r.Math.abs(i.b)?(i.b=0,o.d+o.a>s.d&&o.ds.c&&o.c0){if(t=new Ibe(e.i,e.g),n=e.i,a=n<100?null:new Ac(n),e.Tj())for(r=0;r0){for(s=e.g,u=e.i,Xx(e),a=u<100?null:new Ac(u),r=0;r>13|(e.m&15)<<9,i=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,o=(e.h&1048320)>>8,s=t.l&8191,l=t.l>>13|(t.m&15)<<9,u=t.m>>4&8191,d=t.m>>17|(t.h&255)<<5,f=(t.h&1048320)>>8,p,m,h,g,_,v,y,b,x,S,C,w,T=n*s,E=r*s,D=i*s,O=a*s,k=o*s;return l!=0&&(E+=n*l,D+=r*l,O+=i*l,k+=a*l),u!=0&&(D+=n*u,O+=r*u,k+=i*u),d!=0&&(O+=n*d,k+=r*d),f!=0&&(k+=n*f),m=T&RB,h=(E&511)<<13,p=m+h,_=T>>22,v=E>>9,y=(D&262143)<<4,b=(O&31)<<17,g=_+v+y+b,S=D>>18,C=O>>5,w=(k&4095)<<8,x=S+C+w,g+=p>>22,p&=RB,x+=g>>22,g&=RB,x&=zB,Cf(p,g,x)}function xlt(e){var t,n,i,a,o,s,l=H(Wh(e.j,0),12);if(l.g.c.length!=0&&l.e.c.length!=0)throw R(new qs(`Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges.`));if(l.g.c.length!=0){for(o=KB,n=new L(l.g);n.a4){if(e.fk(t)){if(e.al()){if(i=H(t,54),r=i.Eh(),l=r==e.e&&(e.ml()?i.yh(i.Fh(),e.il())==e.jl():-1-i.Fh()==e.Lj()),e.nl()&&!l&&!r&&i.Jh()){for(a=0;a0&&D5e(e,s,f);for(i=new L(f);i.ae.d[o.p]&&(n+=TBe(e.b,a)*H(l.b,17).a,dx(e.a,kD(a)));for(;!nc(e.a);)tWe(e.b,H(e_(e.a),17).a)}return n}function gR(e,t){var n,r,i,a,o,s,l,u,d=H(q(e,(hz(),kQ)),64),f;if(r=H(Wh(e.j,0),12),d==(XR(),M5)?rP(r,Y5):d==Y5&&rP(r,M5),H(q(t,(fz(),w1)),181).Hc((Ak(),n7))){if(l=z(Ip(q(e,e0))),u=z(Ip(q(e,t0))),o=z(Ip(q(e,Q1))),s=H(q(t,I1),21),s.Hc((aP(),D5)))for(n=u,f=e.o.a/2-r.n.a,a=new L(r.f);a.a0&&(u=e.n.a/a);break;case 2:case 4:i=e.i.o.b,i>0&&(u=e.n.b/i)}EE(e,(hz(),JQ),u)}if(l=e.o,o=e.a,r)o.a=r.a,o.b=r.b,e.d=!0;else if(t!=C5&&t!=w5&&s!=X5)switch(s.g){case 1:o.a=l.a/2;break;case 2:o.a=l.a,o.b=l.b/2;break;case 3:o.a=l.a/2,o.b=l.b;break;case 4:o.b=l.b/2}else o.a=l.a/2,o.b=l.b/2}function yR(e){var t,n,r,i,a,o,s,l,u,d;if(e.Pj()){if(d=e.Ej(),l=e.Qj(),d>0){if(t=new Mqe(e.pj()),n=d,a=n<100?null:new Ac(n),Kp(e,n,t.g),i=n==1?e.Ij(4,G(t,0),null,0,l):e.Ij(6,t,null,-1,l),e.Mj()){for(r=new Lf(t);r.e!=r.i.gc();)a=e.Oj(fA(r),a);a?(a.nj(i),a.oj()):e.Jj(i)}else a?(a.nj(i),a.oj()):e.Jj(i)}else Kp(e,e.Ej(),e.Fj()),e.Jj(e.Ij(6,(iy(),WJ),null,-1,l))}else if(e.Mj()){if(d=e.Ej(),d>0){for(s=e.Fj(),u=d,Kp(e,d,s),a=u<100?null:new Ac(u),r=0;r1&&$h(o)*Qh(o)/2>s[0]){for(a=0;as[a];)++a;h=new Sb(g,0,a+1),f=new lGe(h),d=$h(o)/Qh(o),l=az(f,t,new as,n,r,i,d),um(wd(f.e),l),fh(WM(p,f),tV),m=new Sb(g,a+1,g.c.length),Sj(p,m),g.c.length=0,u=0,HAe(s,s.length,0)}else _=p.b.c.length==0?null:Wh(p.b,0),_!=null&&Iw(p,0),u>0&&(s[u]=s[u-1]),s[u]+=$h(o)*Qh(o),++u,So(g.c,o);return g}function Olt(e,t){var n=t.b,r,i,a=new Em(n.j);i=0,r=n.j,r.c.length=0,v_(H(DT(e.b,(XR(),M5),(Aw(),hZ)),15),n),i=AA(a,i,new Zne,r),v_(H(DT(e.b,M5,mZ),15),n),i=AA(a,i,new Wne,r),v_(H(DT(e.b,M5,pZ),15),n),v_(H(DT(e.b,j5,hZ),15),n),v_(H(DT(e.b,j5,mZ),15),n),i=AA(a,i,new Qne,r),v_(H(DT(e.b,j5,pZ),15),n),v_(H(DT(e.b,Y5,hZ),15),n),i=AA(a,i,new $ne,r),v_(H(DT(e.b,Y5,mZ),15),n),i=AA(a,i,new ere,r),v_(H(DT(e.b,Y5,pZ),15),n),v_(H(DT(e.b,Z5,hZ),15),n),i=AA(a,i,new qne,r),v_(H(DT(e.b,Z5,mZ),15),n),v_(H(DT(e.b,Z5,pZ),15),n)}function klt(e,t,n){for(var r,i,a,o,s=new L(t),l,u,d,f,p,m;s.a.5?y-=s*2*(g-.5):g<.5&&(y+=o*2*(.5-g)),a=l.d.b,yv.a-_-f&&(y=v.a-_-f),l.n.a=t+y}}function Plt(e){var t,n,r=H(q(e,(fz(),f1)),171),i,a;if(r==(XO(),o$)){for(n=new jg(Yf(kO(e).a.Kc(),new f));UP(n);)if(t=H(Wx(n),18),!eVe(t))throw R(new Xs(ogt+sj(e)+`' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges.`))}else if(r==c$){for(a=new jg(Yf(AO(e).a.Kc(),new f));UP(a);)if(i=H(Wx(a),18),!eVe(i))throw R(new Xs(ogt+sj(e)+`' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges.`))}}function xR(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h;if(e.e&&e.c.c>19&&(t=SE(t),l=!l),o=gnt(t),a=!1,i=!1,r=!1,e.h==BB&&e.m==0&&e.l==0){if(i=!0,a=!0,o==-1)e=pxe((pC(),LSt)),r=!0,l=!l;else return s=Net(e,o),l&&BE(s),n&&(bJ=Cf(0,0,0)),s}else e.h>>19&&(a=!0,e=SE(e),r=!0,l=!l);return o==-1?Ij(e,t)<0?(n&&(bJ=a?SE(e):Cf(e.l,e.m,e.h)),Cf(0,0,0)):kI(r?e:Cf(e.l,e.m,e.h),t,l,a,i,n):yYe(e,o,l,a,n)}function SR(e,t){var n,r,i,a,o=e.e,s,l=t.e,u,d,f,p,m,h;if(o==0)return t;if(l==0)return e;if(a=e.d,s=t.d,a+s==2)return n=Rb(e.a[0],$B),r=Rb(t.a[0],$B),o==l?(d=vO(n,r),h=Sg(d),m=Sg(kg(d,32)),m==0?new wx(o,h):new c_(o,2,K(B(F9,1),NB,28,15,[h,m]))):(cI(),Bbe(o<0?bO(r,n):bO(n,r),0)?bk(o<0?bO(r,n):bO(n,r)):h_(bk(YS(o<0?bO(r,n):bO(n,r)))));if(o==l)p=o,f=a>=s?yHe(e.a,a,t.a,s):yHe(t.a,s,e.a,a);else{if(i=a==s?YYe(e.a,t.a,a):a>s?1:-1,i==0)return cI(),BJ;i==1?(p=o,f=uVe(e.a,a,t.a,s)):(p=l,f=uVe(t.a,s,e.a,a))}return u=new c_(p,f.length,f),Yb(u),u}function Llt(e,t){var n,r,i,a,o,s,l;if(!(e.g>t.f||t.g>e.f)){for(n=0,r=0,o=e.w.a.ec().Kc();o.Ob();)i=H(o.Pb(),12),RXe(LE(K(B(X3,1),Kz,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&++n;for(s=e.r.a.ec().Kc();s.Ob();)i=H(s.Pb(),12),RXe(LE(K(B(X3,1),Kz,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&--n;for(l=t.w.a.ec().Kc();l.Ob();)i=H(l.Pb(),12),RXe(LE(K(B(X3,1),Kz,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++r;for(a=t.r.a.ec().Kc();a.Ob();)i=H(a.Pb(),12),RXe(LE(K(B(X3,1),Kz,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--r;n=0)return n;switch(sv(tC(e,n))){case 2:if(hm(``,FD(e,n.qk()).xe())){if(l=wv(tC(e,n)),s=Cv(tC(e,n)),d=Stt(e,t,l,s),d)return d;for(i=Sot(e,t),o=0,f=i.gc();o1)throw R(new Ks(Oq));for(d=OF(e.e.Dh(),t),r=H(e.g,124),o=0;o1,d=new rS(m.b);xf(d.a)||xf(d.b);)u=H(xf(d.a)?W(d.a):W(d.b),18),p=u.c==m?u.d:u.c,r.Math.abs(LE(K(B(X3,1),Kz,8,0,[p.i.n,p.n,p.a])).b-s.b)>1&&zrt(e,u,s,o,m)}}function Ult(e){var t,n,i,a=new Kb(e.e,0),o,s;if(i=new Kb(e.a,0),e.d)for(n=0;nDW;){for(o=t,s=0;r.Math.abs(t-o)0),a.a.Xb(a.c=--a.b),XI(e,e.b-s,o,i,a),zp(a.b0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n0?(e.f[f.p]=h/(f.e.c.length+f.g.c.length),e.c=r.Math.min(e.c,e.f[f.p]),e.b=r.Math.max(e.b,e.f[f.p])):l&&(e.f[f.p]=h)}}function Glt(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function Klt(e,t,n){var r,i,a,o;for(n.Ug(`Graph transformation (`+e.a+`)`,1),o=Ib(t.a),a=new L(t.b);a.a=s.b.c)&&(s.b=t),(!s.c||t.c<=s.c.c)&&(s.d=s.c,s.c=t),(!s.e||t.d>=s.e.d)&&(s.e=t),(!s.f||t.d<=s.f.d)&&(s.f=t);return r=new hA((aE(),sX)),Wb(e,UEt,new ec(K(B(oX,1),jz,382,0,[r]))),o=new hA(uX),Wb(e,dX,new ec(K(B(oX,1),jz,382,0,[o]))),i=new hA(cX),Wb(e,HEt,new ec(K(B(oX,1),jz,382,0,[i]))),a=new hA(lX),Wb(e,VEt,new ec(K(B(oX,1),jz,382,0,[a]))),fF(r.c,sX),fF(i.c,cX),fF(a.c,lX),fF(o.c,uX),s.a.c.length=0,nE(s.a,r.c),nE(s.a,qO(i.c)),nE(s.a,a.c),nE(s.a,qO(o.c)),s}function Jlt(e,t){var n,i,a,o,s,l,u,d,f,p,m,h,g;for(t.Ug(Jvt,1),h=z(Ip(qP(e,(QF(),P4)))),s=z(Ip(qP(e,(GF(),H4)))),l=H(qP(e,B4),107),rqe((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a)),f=alt((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a),h,s),!e.a&&(e.a=new Bg(b7,e,10,11)),d=new L(f);d.a0&&(e.a=l+(h-1)*a,t.c.b+=e.a,t.f.b+=e.a)),g.a.gc()!=0&&(m=new SMe(1,a),h=Cut(m,t,g,_,t.f.b+l-t.c.b),h>0&&(t.f.b+=l+(h-1)*a))}function Xlt(e,t,n){var i,a,o,s,l,u,d,f=z(Ip(q(e,(fz(),Y1)))),p,m,h,g,_,v,y,b,x,S;for(i=z(Ip(q(e,IMt))),m=new Ooe,EE(m,Y1,f+i),d=t,y=d.d,_=d.c.i,b=d.d.i,v=Sxe(_.c),x=Sxe(b.c),a=new go,p=v;p<=x;p++)l=new NA(e),xi(l,(fN(),SX)),EE(l,(hz(),KQ),d),EE(l,N1,(CM(),b5)),EE(l,Z1,m),h=H(Wh(e.b,p),30),p==v?yj(l,h.a.c.length-n,h):gb(l,h),S=z(Ip(q(d,n1))),S<0&&(S=0,EE(d,n1,S)),l.o.b=S,g=r.Math.floor(S/2),s=new bN,rP(s,(XR(),Z5)),_b(s,l),s.n.b=g,u=new bN,rP(u,j5),_b(u,l),u.n.b=g,vb(d,s),o=new vy,UT(o,d),EE(o,d1,null),hb(o,u),vb(o,y),X4e(l,d,o),So(a.c,o),d=o;return a}function ER(e,t){var n,r,i,a,o,s,l=H(TN(e,(XR(),Z5)).Kc().Pb(),12).e,u,d,f,p,m=H(TN(e,j5).Kc().Pb(),12).g,h,g,_,v,y,b;for(s=l.c.length,b=Ob(H(Wh(e.j,0),12));s-->0;){for(g=(jb(0,l.c.length),H(l.c[0],18)),i=(jb(0,m.c.length),H(m.c[0],18)),y=i.d.e,a=XS(y,i,0),vRe(g,i.d,a),hb(i,null),vb(i,null),h=g.a,t&&Ch(h,new Ld(b)),r=lA(i.a,0);r.b!=r.d.c;)n=H(ux(r),8),Ch(h,new Ld(n));for(v=g.b,p=new L(i.b);p.ao)&&n_(e.b,H(_.b,18));++s}a=o}}}function DR(e,t){var n;if(t==null||hm(t,Mz)||t.length==0&&e.k!=(PN(),H3))return null;switch(e.k.g){case 1:return Yk(t,DG)?(lp(),SJ):Yk(t,OG)?(lp(),xJ):null;case 2:try{return kD(AI(t,hB,Ez))}catch(e){if(e=eE(e),V(e,130))return null;throw R(e)}case 4:try{return pN(t)}catch(e){if(e=eE(e),V(e,130))return null;throw R(e)}case 3:return t;case 5:return yXe(e),xP(e,t);case 6:return yXe(e),Itt(e,e.a,t);case 7:try{return n=_et(e),n.cg(t),n}catch(e){if(e=eE(e),V(e,33))return null;throw R(e)}default:throw R(new qs(`Invalid type set for this layout option.`))}}function OR(e){var t;switch(e.d){case 1:if(e.Sj())return e.o!=-2;break;case 2:if(e.Sj())return e.o==-2;break;case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Rj(),e.p){case 0:return t!=null&&Vs(Fp(t))!=pd(e.k,0);case 1:return t!=null&&H(t,222).a!=Sg(e.k)<<24>>24;case 2:return t!=null&&H(t,180).a!=(Sg(e.k)&xB);case 6:return t!=null&&pd(H(t,168).a,e.k);case 5:return t!=null&&H(t,17).a!=Sg(e.k);case 7:return t!=null&&H(t,191).a!=Sg(e.k)<<16>>16;case 3:return t!=null&&z(Ip(t))!=e.j;case 4:return t!=null&&H(t,161).a!=e.j;default:return t==null?e.n!=null:!zD(t,e.n)}}function kR(e,t,n){var r,i,a,o;return e.ol()&&e.nl()&&(o=Hje(e,H(n,58)),cd(o)!==cd(n))?(e.xj(t),e.Dj(t,nUe(e,t,o)),e.al()&&(a=(i=H(n,54),e.ml()?e.kl()?i.Th(e.b,MA(H(MC(Ty(e.b),e.Lj()),19)).n,H(MC(Ty(e.b),e.Lj()).Hk(),29).kk(),null):i.Th(e.b,$O(i.Dh(),MA(H(MC(Ty(e.b),e.Lj()),19))),null,null):i.Th(e.b,-1-e.Lj(),null,null)),!H(o,54).Ph()&&(a=(r=H(o,54),e.ml()?e.kl()?r.Rh(e.b,MA(H(MC(Ty(e.b),e.Lj()),19)).n,H(MC(Ty(e.b),e.Lj()).Hk(),29).kk(),a):r.Rh(e.b,$O(r.Dh(),MA(H(MC(Ty(e.b),e.Lj()),19))),null,a):r.Rh(e.b,-1-e.Lj(),null,a))),a&&a.oj()),Hd(e.b)&&e.Jj(e.Ij(9,n,o,t,!1)),o):n}function Qlt(e){for(var t,n,r=new go,i,a,o=new L(e.e.a),s,l,u,d;o.a0&&(s=r.Math.max(s,Gw(e.C.b+i.d.b,a))),f=i,p=a,m=o;e.C&&e.C.c>0&&(h=m+e.C.c,d&&(h+=f.d.c),s=r.Math.max(s,(mf(),Cw(PV),r.Math.abs(p-1)<=PV||p==1?0:h/(1-p)))),n.n.b=0,n.a.a=s}function $lt(e,t){var n=H(yv(e.b,t),127),i,a,o,s,l,u=H(H(Zx(e.r,t),21),87),d,f,p,m,h;if(u.dc()){n.n.d=0,n.n.a=0;return}for(d=e.u.Hc((aP(),D5)),s=0,e.A.Hc((Ak(),n7))&&Dat(e,t),l=u.Kc(),f=null,m=0,p=0;l.Ob();)i=H(l.Pb(),117),o=z(Ip(i.b.of((qCe(),xY)))),a=i.b.Mf().b,f?(h=p+f.d.a+e.w+i.d.d,s=r.Math.max(s,(mf(),Cw(PV),r.Math.abs(m-o)<=PV||m==o||isNaN(m)&&isNaN(o)?0:h/(o-m)))):e.C&&e.C.d>0&&(s=r.Math.max(s,Gw(e.C.d+i.d.d,o))),f=i,m=o,p=a;e.C&&e.C.a>0&&(h=p+e.C.a,d&&(h+=f.d.a),s=r.Math.max(s,(mf(),Cw(PV),r.Math.abs(m-1)<=PV||m==1?0:h/(1-m)))),n.n.d=0,n.a.b=s}function eut(e,t,n,r,i,a,o,s){var l,u,d,f,p,m,h=!1,g,_,v;if(u=Jnt(n.q,t.f+t.b-n.q.f),m=r.f>t.b&&s,v=i-(n.q.e+u-o),f=(l=kL(r,v,!1),l.a),m&&f>r.f)return!1;if(m){for(p=0,_=new L(t.d);_.a<_.c.c.length;)g=H(W(_),315),p+=Jnt(g,r.f)+o;v=i-p}return v=(jb(a,e.c.length),H(e.c[a],186)).e,!m&&f>t.b&&!d)?!1:((d||m||f<=t.b)&&(d&&f>t.b?(n.d=f,jS(n,n5e(n,f))):(L3e(n.q,u),n.c=!0),jS(r,i-(n.s+n.r)),jA(r,n.q.e+n.q.d,t.f),qGe(t,r),e.c.length>a&&(Nj((jb(a,e.c.length),H(e.c[a],186)),r),(jb(a,e.c.length),H(e.c[a],186)).a.c.length==0&&eS(e,a)),h=!0),h)}function tut(e,t,n){var r,i,a,o,s,l;for(this.g=e,s=t.d.length,l=n.d.length,this.d=vS(vX,dU,10,s+l,0,1),o=0;o0?$We(this,this.f/this.a):Df(t.g,t.d[0]).a!=null&&Df(n.g,n.d[0]).a!=null?$We(this,(z(Df(t.g,t.d[0]).a)+z(Df(n.g,n.d[0]).a))/2):Df(t.g,t.d[0]).a==null?Df(n.g,n.d[0]).a!=null&&$We(this,Df(n.g,n.d[0]).a):$We(this,Df(t.g,t.d[0]).a)}function nut(e,t){var n,r,i,a,o,s,l,u,d,f;for(e.a=new L_(fE(P8)),r=new L(t.a);r.a=1&&(_-o>0&&f>=0?(l.n.a+=g,l.n.b+=a*o):_-o<0&&d>=0&&(l.n.a+=g*_,l.n.b+=a));e.o.a=t.a,e.o.b=t.b,EE(e,(fz(),w1),(Ak(),r=H(Pc(r7),9),new Dm(r,H(nm(r,r.length),9),0)))}function out(e,t,n,r,i,a){var o;if(t!=null&&UO(t,AVt,jVt))throw R(new Ks(`invalid scheme: `+t));if(!e&&!(n!=null&&jd(n,HM(35))==-1&&n.length>0&&(Mb(0,n.length),n.charCodeAt(0)!=47)))throw R(new Ks(`invalid opaquePart: `+n));if(e&&!(t!=null&&nl(FVt,t.toLowerCase()))&&n!=null&&UO(n,T7,E7)||e&&t!=null&&nl(FVt,t.toLowerCase())&&!t6e(n))throw R(new Ks(lxt+n));if(!BQe(r))throw R(new Ks(`invalid device: `+r));if(!BXe(i))throw o=i==null?`invalid segments: null`:`invalid segment: `+DXe(i),R(new Ks(o));if(a!=null&&jd(a,HM(35))!=-1)throw R(new Ks(`invalid query: `+a))}function sut(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y;if(n.Ug(`Network simplex layering`,1),e.b=t,y=H(q(t,(fz(),s0)),17).a*4,v=e.b.a,v.c.length<1){n.Vg();return}for(o=Eot(e,v),_=null,a=lA(o,0);a.b!=a.d.c;){for(i=H(ux(a),15),l=y*Uy(r.Math.sqrt(i.gc())),s=Kot(i),SI(pc(bhe(yhe(_De(s),l),_),!0),n.eh(1)),m=e.b.b,g=new L(s.a);g.a1)for(_=vS(F9,NB,28,e.b.b.c.length,15,1),p=0,d=new L(e.b.b);d.a0){aA(e,n,0),n.a+=String.fromCharCode(r),i=e1e(t,a),aA(e,n,i),a+=i-1;continue}r==39?a+10&&h.a<=0){l.c.length=0,So(l.c,h);break}m=h.i-h.d,m>=s&&(m>s&&(l.c.length=0,s=m),So(l.c,h))}l.c.length!=0&&(o=H(Wh(l,kA(i,l.c.length)),118),b.a.Bc(o),o.g=d++,tct(o,t,n,r),l.c.length=0)}for(_=e.c.length+1,p=new L(e);p.aqB||t.o==y2&&d=s&&i<=l)s<=i&&a<=l?(n[d++]=i,n[d++]=a,r+=2):s<=i?(n[d++]=i,n[d++]=l,e.b[r]=l+1,o+=2):a<=l?(n[d++]=s,n[d++]=a,r+=2):(n[d++]=s,n[d++]=l,e.b[r]=l+1);else if(lmB)&&l<10);Che(e.c,new Lt),NR(e),Zje(e.c),qlt(e.f)}function _ut(e,t){var n=H(q(e,(fz(),N1)),101),i,a,o,s=e.f,l,u,d,f,p,m,h,g,_;for(o=e.d,l=s.a+o.b+o.c,u=0-o.d-e.c.b,f=s.b+o.d+o.a-e.c.b,d=new go,p=new go,a=new L(t);a.a=2){for(l=lA(n,0),o=H(ux(l),8),s=H(ux(l),8);s.a0&&_E(u,!0,(eO(),j8)),s.k==(fN(),bX)&&eNe(u),fv(e.f,s,t)}}function but(e){var t,n,i,a=H(q(e,(YR(),Y2)),27),o,s,l,u,d=Ez,f=Ez,p,m,h,g,_,v,y,b,x,S;for(l=hB,u=hB,x=lA(e.b,0);x.b!=x.d.c;)y=H(ux(x),40),h=y.e,g=y.f,d=r.Math.min(d,h.a-g.a/2),f=r.Math.min(f,h.b-g.b/2),l=r.Math.max(l,h.a+g.a/2),u=r.Math.max(u,h.b+g.b/2);for(m=H(qP(a,(QI(),xFt)),107),b=lA(e.b,0);b.b!=b.d.c;)y=H(ux(b),40),p=q(y,Y2),V(p,207)&&(o=H(p,27),Zd(o,y.e.a,y.e.b),vF(o,y));for(v=lA(e.a,0);v.b!=v.d.c;)_=H(ux(v),65),i=H(q(_,Y2),74),i&&(t=_.a,n=RF(i,!0,!0),tL(t,n));S=l-d+(m.b+m.c),s=u-f+(m.d+m.a),Vs(Fp(qP(a,(gz(),G6))))||$R(a,S,s,!1,!1),xA(a,w6,S-(m.b+m.c)),xA(a,C6,s-(m.d+m.a))}function xut(e,t){var n,r,i,a,o,s,l=!0,u,d,p;for(i=0,u=e.g[t.p],d=t.o.b+e.o,n=e.d[t.p][2],Fx(e.b,u,kD(H(Wh(e.b,u),17).a-1+n)),Fx(e.c,u,z(Ip(Wh(e.c,u)))-d+n*e.f),++u,u>=e.j?(++e.j,Af(e.b,kD(1)),Af(e.c,d)):(r=e.d[t.p][1],Fx(e.b,u,kD(H(Wh(e.b,u),17).a+1-r)),Fx(e.c,u,z(Ip(Wh(e.c,u)))+d-r*e.f)),(e.r==(mI(),F0)&&(H(Wh(e.b,u),17).a>e.k||H(Wh(e.b,u-1),17).a>e.k)||e.r==L0&&(z(Ip(Wh(e.c,u)))>e.n||z(Ip(Wh(e.c,u-1)))>e.n))&&(l=!1),o=new jg(Yf(kO(t).a.Kc(),new f));UP(o);)a=H(Wx(o),18),s=a.c.i,e.g[s.p]==u&&(p=xut(e,s),i+=H(p.a,17).a,l&&=Vs(Fp(p.b)));return e.g[t.p]=u,i+=e.d[t.p][0],new nd(kD(i),(lp(),!!l))}function Sut(e,t){var n=z(Ip(q(t,(fz(),K1)))),r,i,a,o;n<2&&EE(t,K1,2),r=H(q(t,J$),88),r==(eO(),M8)&&EE(t,J$,fO(t)),i=H(q(t,kMt),17),i.a==0?EE(t,(hz(),YQ),new e$e):EE(t,(hz(),YQ),new Mx(i.a)),a=Fp(q(t,b1)),a??EE(t,b1,(lp(),cd(q(t,Z$))===cd((TO(),z8)))),_l(new Yh(null,new Nb(t.a,16)),new wa(e)),_l(yC(new Yh(null,new Nb(t.b,16)),new Ft),new Mue(e)),o=new rut(t),EE(t,(hz(),e$),o),Sv(e.a),d_(e.a,(XM(),tX),H(q(t,q$),188)),d_(e.a,nX,H(q(t,h1),188)),d_(e.a,rX,H(q(t,K$),188)),d_(e.a,iX,H(q(t,C1),188)),d_(e.a,aX,cJe(H(q(t,Z$),223))),Id(e.a,tpt(t)),EE(t,Dkt,xR(e.a,t))}function Cut(e,t,n,i,a){var o,s,l,u,d,f,p=new ho,m,h,g,_,v,y;for(s=new go,t7e(e,n,e.d.Ag(),s,p),t7e(e,i,e.d.Bg(),s,p),e.b=.2*(_=Yet(yC(new Yh(null,new Nb(s,16)),new mie)),v=Yet(yC(new Yh(null,new Nb(s,16)),new hie)),r.Math.min(_,v)),o=0,l=0;l=2&&(y=snt(s,!0,m),!e.e&&(e.e=new Ide(e)),Y$e(e.e,y,s,e.b)),S6e(s,m),FR(s),h=-1,f=new L(s);f.as)}function Eut(e,t){var n,i,a,o,s,l,u,d=KB,f=KB,p,m,h,g,_,v,y,b;for(l=qB,u=qB,m=new L(t.i);m.a-1){for(a=lA(l,0);a.b!=a.d.c;)i=H(ux(a),131),i.v=s;for(;l.b!=0;)for(i=H(xj(l,0),131),n=new L(i.i);n.a-1){for(o=new L(l);o.a0)&&(Ule(u,r.Math.min(u.o,a.o-1)),Hle(u,u.i-1),u.i==0&&So(l.c,u))}}function IR(e,t,n,i,a){var o,s,l,u=KB;return s=!1,l=EL(e,dm(new zu(t.a,t.b),e),um(new zu(n.a,n.b),a),dm(new zu(i.a,i.b),n)),o=!!l&&!(r.Math.abs(l.a-e.a)<=kG&&r.Math.abs(l.b-e.b)<=kG||r.Math.abs(l.a-t.a)<=kG&&r.Math.abs(l.b-t.b)<=kG),l=EL(e,dm(new zu(t.a,t.b),e),n,a),l&&((r.Math.abs(l.a-e.a)<=kG&&r.Math.abs(l.b-e.b)<=kG)==(r.Math.abs(l.a-t.a)<=kG&&r.Math.abs(l.b-t.b)<=kG)||o?u=r.Math.min(u,K_(dm(l,n))):s=!0),l=EL(e,dm(new zu(t.a,t.b),e),i,a),l&&(s||(r.Math.abs(l.a-e.a)<=kG&&r.Math.abs(l.b-e.b)<=kG)==(r.Math.abs(l.a-t.a)<=kG&&r.Math.abs(l.b-t.b)<=kG)||o)&&(u=r.Math.min(u,K_(dm(l,i)))),u}function Mut(e){Ll(e,new MM(hc(vc(mc(_c(gc(new Bn,QH),Iht),`Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths.`),new nee),MH))),Zb(e,QH,RH,dA(gEt)),Zb(e,QH,BH,(lp(),!0)),Zb(e,QH,WH,dA(yEt)),Zb(e,QH,$H,dA(QY)),Zb(e,QH,UH,dA(bEt)),Zb(e,QH,GH,dA(vEt)),Zb(e,QH,VH,dA(xEt)),Zb(e,QH,KH,dA(SEt)),Zb(e,QH,jht,dA(hEt)),Zb(e,QH,Nht,dA(pEt)),Zb(e,QH,Pht,dA(mEt)),Zb(e,QH,Fht,dA(_Et)),Zb(e,QH,Mht,dA(ZY))}function Nut(e){for(var t=null,n,r=new L(e),i,a,o,s,l;r.a0&&n.c==0&&(!t&&(t=new go),So(t.c,n));if(t)for(;t.c.length!=0;){if(n=H(eS(t,0),239),n.b&&n.b.c.length>0){for(a=(!n.b&&(n.b=new go),new L(n.b));a.aXS(e,n,0))return new nd(i,n)}else if(z(Df(i.g,i.d[0]).a)>z(Df(n.g,n.d[0]).a))return new nd(i,n)}for(s=(!n.e&&(n.e=new go),n.e).Kc();s.Ob();)o=H(s.Pb(),239),l=(!o.b&&(o.b=new go),o.b),Ab(0,l.c.length),pu(l.c,0,n),o.c==l.c.length&&So(t.c,o)}return null}function Put(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v;for(t.Ug(`Interactive crossing minimization`,1),o=0,a=new L(e.b);a.a0&&(n+=l.n.a+l.o.a/2,++f),h=new L(l.j);h.a0&&(n/=f),v=vS(z9,QB,28,r.a.c.length,15,1),s=0,u=new L(r.a);u.a=s&&i<=l)s<=i&&a<=l?r+=2:s<=i?(e.b[r]=l+1,o+=2):a<=l?(n[d++]=i,n[d++]=s-1,r+=2):(n[d++]=i,n[d++]=s-1,e.b[r]=l+1,o+=2);else if(l2?(f=new go,nE(f,new Sb(y,1,y.b)),o=ppt(f,x+e.a),b=new Pet(o),UT(b,t),So(n.c,b)):b=H(i?N_(e.b,eN(t)):N_(e.b,tN(t)),272),u=eN(t),i&&(u=tN(t)),s=y5e(v,u),d=x+e.a,s.a?(d+=r.Math.abs(v.b-p.b),_=new zu(p.a,(p.b+v.b)/2)):(d+=r.Math.abs(v.a-p.a),_=new zu((p.a+v.a)/2,p.b)),fv(i?e.d:e.c,t,new w2e(b,s,_,d)),fv(e.b,t,b),g=(!t.n&&(t.n=new Bg(y7,t,1,7)),t.n),h=new Lf(g);h.e!=h.i.gc();)m=H(fA(h),135),a=oI(e,m,!0,0,0),So(n.c,a)}function Iut(e){var t,n,r,i,a,o,s;if(!e.A.dc()){if(e.A.Hc((Ak(),t7))&&(H(yv(e.b,(XR(),M5)),127).k=!0,H(yv(e.b,Y5),127).k=!0,t=e.q!=(CM(),x5)&&e.q!=b5,bi(H(yv(e.b,j5),127),t),bi(H(yv(e.b,Z5),127),t),bi(e.g,t),e.A.Hc(n7)&&(H(yv(e.b,M5),127).j=!0,H(yv(e.b,Y5),127).j=!0,H(yv(e.b,j5),127).k=!0,H(yv(e.b,Z5),127).k=!0,e.g.k=!0)),e.A.Hc(e7))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,s=e.B.Hc((EI(),s7)),i=N1e(),a=0,o=i.length;a0),H(d.a.Xb(d.c=--d.b),18));a!=r&&d.b>0;)e.a[a.p]=!0,e.a[r.p]=!0,a=(zp(d.b>0),H(d.a.Xb(d.c=--d.b),18));d.b>0&&G_(d)}}function zut(e,t,n){var r,i,a,o,s,l,u,d,f,p,m;if(!e.b)return!1;for(o=null,p=null,l=new OHe(null,null),i=1,l.a[1]=e.b,f=l;f.a[i];)u=i,s=p,p=f,f=f.a[i],r=e.a.Ne(t,f.d),i=r<0?0:1,r==0&&(!n.c||vv(f.e,n.d))&&(o=f),!(f&&f.b)&&!rc(f.a[i])&&(rc(f.a[1-i])?p=p.a[u]=Fw(f,i):rc(f.a[1-i])||(m=p.a[1-u],m&&(!rc(m.a[1-u])&&!rc(m.a[u])?(p.b=!1,m.b=!0,f.b=!0):(a=+(s.a[1]==p),rc(m.a[u])?s.a[a]=KLe(p,u):rc(m.a[1-u])&&(s.a[a]=Fw(p,u)),f.b=s.a[a].b=!0,s.a[a].a[0].b=!1,s.a[a].a[1].b=!1))));return o&&(n.b=!0,n.d=o.e,f!=o&&(d=new OHe(f.d,f.e),YM(e,l,o,d),p==o&&(p=d)),p.a[+(p.a[1]==f)]=f.a[+!f.a[0]],--e.c),e.b=l.a[1],e.b&&(e.b.b=!1),n.b}function But(e){for(var t,n,i,a=new L(e.a.a.b),o,s,l,u,d,f,p,m;a.a0?i-=864e5:i+=864e5,l=new nTe(vO(zT(t.q.getTime()),i))),d=new cc,u=e.a.length,a=0;a=97&&r<=122||r>=65&&r<=90){for(o=a+1;o=u)throw R(new Ks(`Missing trailing '`));o+1=14&&d<=16))?t.a._b(r)?(n.a?yd(n.a,n.b):n.a=new Qf(n.d),_d(n.a,`[...]`)):(s=gw(r),u=new qh(t),tS(n,Uut(s,u))):V(r,183)?tS(n,j7e(H(r,183))):V(r,195)?tS(n,v6e(H(r,195))):V(r,201)?tS(n,gN(H(r,201))):V(r,2111)?tS(n,TM(H(r,2111))):V(r,53)?tS(n,A7e(H(r,53))):V(r,376)?tS(n,o9e(H(r,376))):V(r,846)?tS(n,k7e(H(r,846))):V(r,109)&&tS(n,tP(H(r,109))):tS(n,r==null?Mz:FO(r));return n.a?n.e.length==0?n.a.a:n.a.a+(``+n.e):n.c}function zR(e,t){var n,r,i,a=e.F;t==null?(e.F=null,eD(e,null)):(e.F=(iv(t),t),r=jd(t,HM(60)),r==-1?(i=t,jd(t,HM(46))==-1&&(r=jd(t,HM(91)),r!=-1&&(i=(bS(0,r,t.length),t.substr(0,r))),!hm(i,wz)&&!hm(i,UK)&&!hm(i,WK)&&!hm(i,GK)&&!hm(i,KK)&&!hm(i,qK)&&!hm(i,JK)&&!hm(i,YK)?(i=Sxt,r!=-1&&(i+=``+(Mb(r,t.length+1),t.substr(r)))):i=t),eD(e,i),i==t&&(e.F=e.D)):(i=(bS(0,r,t.length),t.substr(0,r)),jd(t,HM(46))==-1&&!hm(i,wz)&&!hm(i,UK)&&!hm(i,WK)&&!hm(i,GK)&&!hm(i,KK)&&!hm(i,qK)&&!hm(i,JK)&&!hm(i,YK)&&(i=Sxt),n=SCe(t,HM(62)),n!=-1&&(i+=``+(Mb(n+1,t.length+1),t.substr(n+1))),eD(e,i))),e.Db&4&&!(e.Db&1)&&jT(e,new Vg(e,1,5,a,t))}function Wut(e,t){var n,r,i,a,o,s,l=t.length-1,u,d,f;if(s=(Mb(l,t.length),t.charCodeAt(l)),s==93){if(o=jd(t,HM(91)),o>=0)return i=NQe(e,(bS(1,o,t.length),t.substr(1,o-1))),d=(bS(o+1,l,t.length),t.substr(o+1,l-(o+1))),Wft(e,d,i)}else{if(n=-1,HSt??=RegExp(`\\d`),HSt.test(String.fromCharCode(s))&&(n=yEe(t,HM(46),l-1),n>=0)){r=H(rVe(e,GWe(e,(bS(1,n,t.length),t.substr(1,n-1))),!1),61),u=0;try{u=AI((Mb(n+1,t.length+1),t.substr(n+1)),hB,Ez)}catch(e){throw e=eE(e),V(e,130)?(a=e,R(new ZS(a))):R(e)}if(u>16==-10?n=H(e.Cb,292).Yk(t,n):e.Db>>16==-15&&(!t&&(t=(bz(),Y7)),!u&&(u=(bz(),Y7)),e.Cb.Yh()&&(l=new aC(e.Cb,1,13,u,t,wA($S(H(e.Cb,62)),e),!1),n?n.nj(l):n=l));else if(V(e.Cb,90))e.Db>>16==-23&&(V(t,90)||(t=(bz(),X7)),V(u,90)||(u=(bz(),X7)),e.Cb.Yh()&&(l=new aC(e.Cb,1,10,u,t,wA(Sx(H(e.Cb,29)),e),!1),n?n.nj(l):n=l));else if(V(e.Cb,457))for(s=H(e.Cb,850),o=(!s.b&&(s.b=new lo(new ame)),s.b),a=(r=new OT(new Li(o.a).a),new uo(r));a.a.b;)i=H(Nw(a.a).ld(),89),n=BR(i,lF(i,s),n)}return n}function qut(e,t){var n,r,i,a,o=Vs(Fp(qP(e,(fz(),c1)))),s,l,u,d,f,p=H(qP(e,I1),21);for(l=!1,u=!1,f=new Lf((!e.c&&(e.c=new Bg(x7,e,9,9)),e.c));f.e!=f.i.gc()&&(!l||!u);){for(a=H(fA(f),123),s=0,i=Zg(yw(K(B(rJ,1),jz,20,0,[(!a.d&&(a.d=new pm(p7,a,8,5)),a.d),(!a.e&&(a.e=new pm(p7,a,7,4)),a.e)])));UP(i)&&(r=H(Wx(i),74),d=o&&wP(r)&&Vs(Fp(qP(r,l1))),n=Slt((!r.b&&(r.b=new pm(f7,r,4,7)),r.b),a)?e==ob(PM(H(G((!r.c&&(r.c=new pm(f7,r,5,8)),r.c),0),84))):e==ob(PM(H(G((!r.b&&(r.b=new pm(f7,r,4,7)),r.b),0),84))),!((d||n)&&(++s,s>1))););(s>0||p.Hc((aP(),D5))&&(!a.n&&(a.n=new Bg(y7,a,1,7)),a.n).i>0)&&(l=!0),s>1&&(u=!0)}l&&t.Fc((BF(),tQ)),u&&t.Fc((BF(),nQ))}function Jut(e){var t,n,i,a,o,s,l,u,d,f,p,m=H(qP(e,(gz(),W6)),21);if(m.dc())return null;if(l=0,s=0,m.Hc((Ak(),t7))){for(f=H(qP(e,s8),101),i=2,n=2,a=2,o=2,t=ob(e)?H(qP(ob(e),O6),88):H(qP(e,O6),88),d=new Lf((!e.c&&(e.c=new Bg(x7,e,9,9)),e.c));d.e!=d.i.gc();)if(u=H(fA(d),123),p=H(qP(u,p8),64),p==(XR(),X5)&&(p=Xst(u,t),xA(u,p8,p)),f==(CM(),b5))switch(p.g){case 1:i=r.Math.max(i,u.i+u.g);break;case 2:n=r.Math.max(n,u.j+u.f);break;case 3:a=r.Math.max(a,u.i+u.g);break;case 4:o=r.Math.max(o,u.j+u.f)}else switch(p.g){case 1:i+=u.g+2;break;case 2:n+=u.f+2;break;case 3:a+=u.g+2;break;case 4:o+=u.f+2}l=r.Math.max(i,a),s=r.Math.max(n,o)}return $R(e,l,s,!0,!0)}function VR(e,t,n,i,a){var o,s,l,u,d,f,p,m,h,g,_,v,y,b=H(Ax(HWe(Av(new Yh(null,new Nb(t.d,16)),new ode(n)),new sde(n)),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15),x,S;for(p=Ez,f=hB,u=new L(t.b.j);u.a0,u?u&&(p=v.p,o?++p:--p,f=H(Wh(v.c.a,p),10),r=mE(f),m=!(Lnt(r,C,n[0])||Mje(r,C,n[0]))):m=!0),h=!1,S=t.D.i,S&&S.c&&s.e&&(d=o&&S.p>0||!o&&S.p=0){for(l=null,s=new Kb(d.a,u+1);s.bs?1:Md(!1,isNaN(s)))<0&&(Cw(CW),(r.Math.abs(s-1)<=CW||s==1?0:s<1?-1:s>1?1:Md(isNaN(s),!1))<0)&&(Cw(CW),(r.Math.abs(0-l)<=CW||l==0?0:0l?1:Md(!1,isNaN(l)))<0)&&(Cw(CW),(r.Math.abs(l-1)<=CW||l==1?0:l<1?-1:l>1?1:Md(isNaN(l),!1))<0)),o)}function ndt(e){var t,n=e.D==null?e.B:e.D,r,i;if(t=jd(n,HM(91)),t!=-1){r=(bS(0,t,n.length),n.substr(0,t)),i=new ac;do i.a+=`[`;while((t=_p(n,91,++t))!=-1);hm(r,wz)?i.a+=`Z`:hm(r,UK)?i.a+=`B`:hm(r,WK)?i.a+=`C`:hm(r,GK)?i.a+=`D`:hm(r,KK)?i.a+=`F`:hm(r,qK)?i.a+=`I`:hm(r,JK)?i.a+=`J`:hm(r,YK)?i.a+=`S`:(i.a+=`L`,i.a+=``+r,i.a+=`;`);try{return null}catch(e){if(e=eE(e),!V(e,63))throw R(e)}}else if(jd(n,HM(46))==-1){if(hm(n,wz))return I9;if(hm(n,UK))return R9;if(hm(n,WK))return P9;if(hm(n,GK))return z9;if(hm(n,KK))return B9;if(hm(n,qK))return F9;if(hm(n,JK))return L9;if(hm(n,YK))return V9}return null}function rdt(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(e.e=t,s=w9e(t),C=new go,r=new L(s);r.a=0&&g=d.c.c.length?Aze((fN(),CX),SX):Aze((fN(),SX),SX),f*=2,o=n.a.g,n.a.g=r.Math.max(o,o+(f-o)),s=n.b.g,n.b.g=r.Math.max(s,s+(f-s)),a=t}}function idt(e){var t,n,i,a;for(_l(Av(new Yh(null,new Nb(e.a.b,16)),new Fne),new Ine),U3e(e),_l(Av(new Yh(null,new Nb(e.a.b,16)),new Lne),new Rne),e.c==(TO(),V8)&&(_l(Av(yC(new Yh(null,new Nb(new Ii(e.f),1)),new cn),new zne),new tde(e)),_l(Av(jv(yC(yC(new Yh(null,new Nb(e.d.b,16)),new ln),new un),new Bne),new dn),new rde(e))),a=new zu(KB,KB),t=new zu(qB,qB),i=new L(e.a.b);i.a `):t.a+=`Root `,n=e.Dh().zb,hm(n.substr(0,3),`Elk`)?yd(t,(Mb(3,n.length+1),n.substr(3))):t.a+=``+n,i=e.jh(),i){yd((t.a+=` `,t),i);return}if(V(e,366)&&(u=H(e,135).a,u)){yd((t.a+=` `,t),u);return}for(o=new Lf(e.kh());o.e!=o.i.gc();)if(a=H(fA(o),135),u=a.a,u){yd((t.a+=` `,t),u);return}if(V(e,326)&&(r=H(e,74),!r.b&&(r.b=new pm(f7,r,4,7)),r.b.i!=0&&(!r.c&&(r.c=new pm(f7,r,5,8)),r.c.i!=0))){for(t.a+=` (`,s=new pp((!r.b&&(r.b=new pm(f7,r,4,7)),r.b));s.e!=s.i.gc();)s.e>0&&(t.a+=Az),qR(H(fA(s),167),t);for(t.a+=Vht,l=new pp((!r.c&&(r.c=new pm(f7,r,5,8)),r.c));l.e!=l.i.gc();)l.e>0&&(t.a+=Az),qR(H(fA(l),167),t);t.a+=`)`}}function adt(e,t,n){for(var i,a,o,s,l,u=new Lf((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a)),d,p;u.e!=u.i.gc();)for(l=H(fA(u),27),a=new jg(Yf(sF(l).a.Kc(),new f));UP(a);){if(i=H(Wx(a),74),!i.b&&(i.b=new pm(f7,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new pm(f7,i,5,8)),i.c.i<=1)))throw R(new Zs(`Graph must not contain hyperedges.`));if(!zP(i)&&l!=PM(H(G((!i.c&&(i.c=new pm(f7,i,5,8)),i.c),0),84)))for(d=new VTe,UT(d,i),EE(d,(Mw(),XY),i),Nle(d,H(sd(dg(n.f,l)),153)),Ile(d,H(N_(n,PM(H(G((!i.c&&(i.c=new pm(f7,i,5,8)),i.c),0),84))),153)),Af(t.c,d),s=new Lf((!i.n&&(i.n=new Bg(y7,i,1,7)),i.n));s.e!=s.i.gc();)o=H(fA(s),135),p=new Sze(d,o.a),UT(p,o),EE(p,XY,o),p.e.a=r.Math.max(o.g,1),p.e.b=r.Math.max(o.f,1),SL(p),Af(t.d,p)}}function odt(e,t,n){var i,a,o,s,l,u,d,f,p,m;switch(n.Ug(`Node promotion heuristic`,1),e.i=t,e.r=H(q(t,(fz(),m1)),243),e.r!=(mI(),N0)&&e.r!=P0?qdt(e):Sit(e),f=H(q(e.i,mMt),17).a,o=new jte,e.r.g){case 2:case 1:sR(e,o);break;case 3:for(e.r=B0,sR(e,o),u=0,l=new L(e.b);l.ae.k&&(e.r=F0,sR(e,o));break;case 4:for(e.r=B0,sR(e,o),d=0,a=new L(e.c);a.ae.n&&(e.r=L0,sR(e,o));break;case 6:m=Uy(r.Math.ceil(e.g.length*f/100)),sR(e,new Kue(m));break;case 5:p=Uy(r.Math.ceil(e.e*f/100)),sR(e,new que(p));break;case 8:xpt(e,!0);break;case 9:xpt(e,!1);break;default:sR(e,o)}e.r!=N0&&e.r!=P0?krt(e,t):Wat(e,t),n.Vg()}function sdt(e){var t,n,r,i,a,o,s,l,u,d,f=e.b,p,m,h,g,_,v,y,b;for(d=new Kb(f,0),$p(d,new I_(e)),y=!1,o=1;d.b0&&(m.d+=f.n.d,m.d+=f.d),m.a>0&&(m.a+=f.n.a,m.a+=f.d),m.b>0&&(m.b+=f.n.b,m.b+=f.d),m.c>0&&(m.c+=f.n.c,m.c+=f.d),m}function ldt(e,t,n){var i,a,o,s,l,u,d,f,p,m=n.d,h,g;for(p=n.c,o=new zu(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),s=o.b,d=new L(e.a);d.a0&&(e.c[t.c.p][t.p].d+=cF(e.i,24)*oV*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function pdt(e){for(var t,n,r,i,a,o,s,l,u,d,f,p,m,h=new L(e),g,_;h.ai.d,i.d=r.Math.max(i.d,t),l&&n&&(i.d=r.Math.max(i.d,i.a),i.a=i.d+a);break;case 3:n=t>i.a,i.a=r.Math.max(i.a,t),l&&n&&(i.a=r.Math.max(i.a,i.d),i.d=i.a+a);break;case 2:n=t>i.c,i.c=r.Math.max(i.c,t),l&&n&&(i.c=r.Math.max(i.b,i.c),i.b=i.c+a);break;case 4:n=t>i.b,i.b=r.Math.max(i.b,t),l&&n&&(i.b=r.Math.max(i.b,i.c),i.c=i.b+a)}}}function gdt(e,t){var n,r,i,a,o,s,l,u=``,d;return t.length==0?e.ne(pmt,vB,-1,-1):(d=WN(t),hm(d.substr(0,3),`at `)&&(d=(Mb(3,d.length+1),d.substr(3))),d=d.replace(/\[.*?\]/g,``),o=d.indexOf(`(`),o==-1?(o=d.indexOf(`@`),o==-1?(u=d,d=``):(u=WN((Mb(o+1,d.length+1),d.substr(o+1))),d=WN((bS(0,o,d.length),d.substr(0,o))))):(n=d.indexOf(`)`,o),u=(bS(o+1,n,d.length),d.substr(o+1,n-(o+1))),d=WN((bS(0,o,d.length),d.substr(0,o)))),o=jd(d,HM(46)),o!=-1&&(d=(Mb(o+1,d.length+1),d.substr(o+1))),(d.length==0||hm(d,`Anonymous function`))&&(d=vB),s=SCe(u,HM(58)),i=yEe(u,HM(58),s-1),l=-1,r=-1,a=pmt,s!=-1&&i!=-1&&(a=(bS(0,i,u.length),u.substr(0,i)),l=$Ce((bS(i+1,s,u.length),u.substr(i+1,s-(i+1)))),r=$Ce((Mb(s+1,u.length+1),u.substr(s+1)))),e.ne(a,d,l,r))}function _dt(e){for(var t,n,r,i,a,o,s,l,u=new L(e),d,f;u.a0||d.j==Z5&&d.e.c.length-d.g.c.length<0)){t=!1;break}for(i=new L(d.g);i.a=d&&C>=v&&(m+=g.n.b+_.n.b+_.a.b-S,++l));if(n)for(s=new L(b.e);s.a=d&&C>=v&&(m+=g.n.b+_.n.b+_.a.b-S,++l))}l>0&&(w+=m/l,++h)}h>0?(t.a=a*w/h,t.g=h):(t.a=0,t.g=0)}function ydt(e){var t,n,r,i,a=e.f.b,o,s,l,u,d,f,p=a.a,m,h,g,_,v,y,b,x,S,C,w;for(d=a.b,h=e.e.g,m=e.e.f,Xd(e.e,a.a,a.b),C=p/h,w=d/m,u=new Lf(bv(e.e));u.e!=u.i.gc();)l=H(fA(u),135),ow(l,l.i*C),sw(l,l.j*w);for(y=new Lf(xv(e.e));y.e!=y.i.gc();)v=H(fA(y),123),x=v.i,S=v.j,x>0&&ow(v,x*C),S>0&&sw(v,S*w);for(CT(e.b,new Nt),t=new go,s=new OT(new Li(e.c).a);s.b;)o=Nw(s),r=H(o.ld(),74),n=H(o.md(),407).a,i=RF(r,!1,!1),f=j6e(eN(r),AN(i),n),tL(f,i),b=y8e(r),b&&XS(t,b,0)==-1&&(So(t.c,b),PNe(b,(zp(f.b!=0),H(f.a.a.c,8)),n));for(_=new OT(new Li(e.d).a);_.b;)g=Nw(_),r=H(g.ld(),74),n=H(g.md(),407).a,i=RF(r,!1,!1),f=j6e(tN(r),UE(AN(i)),n),f=UE(f),tL(f,i),b=b8e(r),b&&XS(t,b,0)==-1&&(So(t.c,b),PNe(b,(zp(f.b!=0),H(f.c.b.c,8)),n))}function bdt(e,t,n,r){var i,a,o,s=new Idt(t),l;return Znt(s,r),i=!0,e&&e.pf((gz(),O6))&&(a=H(e.of((gz(),O6)),88),i=a==(eO(),M8)||a==A8||a==j8),mat(s,!1),UC(s.e.Rf(),new pDe(s,!1,i)),_Fe(s,s.f,(XC(),oY),(XR(),M5)),_Fe(s,s.f,cY,Y5),_Fe(s,s.g,oY,Z5),_Fe(s,s.g,cY,j5),o0e(s,M5),o0e(s,Y5),xNe(s,j5),xNe(s,Z5),Gp(),o=s.A.Hc((Ak(),$5))&&s.B.Hc((EI(),iBt))?yk(s):null,o&&mhe(s.a,o),hdt(s),H2e(s),U2e(s),Iut(s),Sst(s),Mj(s),eA(s,M5),eA(s,Y5),Pat(s),fR(s),n?(VO(s),M4e(s),eA(s,j5),eA(s,Z5),l=s.B.Hc((EI(),s7)),x7e(s,l,M5),x7e(s,l,Y5),S7e(s,l,j5),S7e(s,l,Z5),_l(new Yh(null,new Nb(new Ui(s.i),0)),new Xe),_l(Av(new Yh(null,EMe(s.r).a.oc()),new Ze),new Qe),xM(s),s.e.Pf(s.o),_l(new Yh(null,EMe(s.r).a.oc()),new $e),s.o):s.o}function xdt(e){var t,n,i,a,o,s,l,u,d=KB,f,p,m,h,g,_;for(i=new L(e.a.b);i.a1)for(h=new ylt(g,x,i),Px(x,new bye(e,h)),So(s.c,h),p=x.a.ec().Kc();p.Ob();)f=H(p.Pb(),42),JS(o,f.b);if(l.a.gc()>1)for(h=new ylt(g,l,i),Px(l,new xye(e,h)),So(s.c,h),p=l.a.ec().Kc();p.Ob();)f=H(p.Pb(),42),JS(o,f.b)}}function Ddt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_=e.n,v=e.o,y;if(m=e.d,p=z(Ip(hk(e,(fz(),U1)))),t){for(f=p*(t.gc()-1),h=0,u=t.Kc();u.Ob();)s=H(u.Pb(),10),f+=s.o.a,h=r.Math.max(h,s.o.b);for(y=_.a-(f-v.a)/2,o=_.b-m.d+h,i=v.a/(t.gc()+1),a=i,l=t.Kc();l.Ob();)s=H(l.Pb(),10),s.n.a=y,s.n.b=o-s.o.b,y+=s.o.a+p,d=ynt(s),d.n.a=s.o.a/2-d.a.a,d.n.b=s.o.b,g=H(q(s,(hz(),vQ)),12),g.e.c.length+g.g.c.length==1&&(g.n.a=a-g.a.a,g.n.b=0,_b(g,e)),a+=i}if(n){for(f=p*(n.gc()-1),h=0,u=n.Kc();u.Ob();)s=H(u.Pb(),10),f+=s.o.a,h=r.Math.max(h,s.o.b);for(y=_.a-(f-v.a)/2,o=_.b+v.b+m.a-h,i=v.a/(n.gc()+1),a=i,l=n.Kc();l.Ob();)s=H(l.Pb(),10),s.n.a=y,s.n.b=o,y+=s.o.a+p,d=ynt(s),d.n.a=s.o.a/2-d.a.a,d.n.b=0,g=H(q(s,(hz(),vQ)),12),g.e.c.length+g.g.c.length==1&&(g.n.a=a-g.a.a,g.n.b=v.b,_b(g,e)),a+=i}}function Odt(e,t){var n,i,a,o,s,l;if(H(q(t,(hz(),jQ)),21).Hc((BF(),tQ))){for(l=new L(t.a);l.a=0&&o0&&(H(yv(e.b,t),127).a.b=n)}function Pdt(e,t,n,r){var i,a,o,s,l,u,d,f,p=z(Ip(q(e,(fz(),e0)))),m=z(Ip(q(e,t0))),h,g;if(f=z(Ip(q(e,Q1))),s=e.o,a=H(Wh(e.j,0),12),o=a.n,g=I5e(a,f),g){if(t.Hc((aP(),D5)))switch(H(q(e,(hz(),kQ)),64).g){case 1:g.c=(s.a-g.b)/2-o.a,g.d=m;break;case 3:g.c=(s.a-g.b)/2-o.a,g.d=-m-g.a;break;case 2:n&&a.e.c.length==0&&a.g.c.length==0?(d=r?g.a:H(Wh(a.f,0),72).o.b,g.d=(s.b-d)/2-o.b):g.d=s.b+m-o.b,g.c=-p-g.b;break;case 4:n&&a.e.c.length==0&&a.g.c.length==0?(d=r?g.a:H(Wh(a.f,0),72).o.b,g.d=(s.b-d)/2-o.b):g.d=s.b+m-o.b,g.c=p}else if(t.Hc(k5))switch(H(q(e,(hz(),kQ)),64).g){case 1:case 3:g.c=o.a+p;break;case 2:case 4:n&&!a.c?(d=r?g.a:H(Wh(a.f,0),72).o.b,g.d=(s.b-d)/2-o.b):g.d=o.b+m}for(i=g.d,u=new L(a.f);u.a=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},eat()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[`:`+e]},e.prototype.set=function(e,t){this.obj[`:`+e]=t},e.prototype[zmt]=function(e){delete this.obj[`:`+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),e}function YR(){YR=D,Y2=new ao(Dht),new ao(Oht),new Yp(`DEPTH`,kD(0)),GPt=new Yp(`FAN`,kD(0)),WPt=new Yp(uvt,kD(0)),Q2=new Yp(`ROOT`,(lp(),!1)),U2=new Yp(`LEFTNEIGHBOR`,null),ZPt=new Yp(`RIGHTNEIGHBOR`,null),W2=new Yp(`LEFTSIBLING`,null),QPt=new Yp(`RIGHTSIBLING`,null),V2=new Yp(`DUMMY`,!1),new Yp(`LEVEL`,kD(0)),XPt=new Yp(`REMOVABLE_EDGES`,new ll),$2=new Yp(`XCOOR`,kD(0)),e4=new Yp(`YCOOR`,kD(0)),G2=new Yp(`LEVELHEIGHT`,0),q2=new Yp(`LEVELMIN`,0),K2=new Yp(`LEVELMAX`,0),qPt=new Yp(`GRAPH_XMIN`,0),YPt=new Yp(`GRAPH_YMIN`,0),KPt=new Yp(`GRAPH_XMAX`,0),JPt=new Yp(`GRAPH_YMAX`,0),UPt=new Yp(`COMPACT_LEVEL_ASCENSION`,!1),HPt=new Yp(`COMPACT_CONSTRAINTS`,new go),H2=new Yp(`ID`,``),X2=new Yp(`POSITION`,kD(0)),Z2=new Yp(`PRELIM`,0),J2=new Yp(`MODIFIER`,0),B2=new ao(kht),z2=new ao(Aht)}function Vdt(e){Kst();var t,n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(e==null)return null;if(f=e.length*8,f==0)return``;for(s=f%24,m=f/24|0,p=s==0?m:m+1,a=null,a=vS(P9,yB,28,p*4,15,1),u=0,d=0,t=0,n=0,r=0,o=0,i=0,l=0;l>24,u=(t&3)<<24>>24,h=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,g=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,_=r&-128?(r>>6^252)<<24>>24:r>>6<<24>>24,a[o++]=v9[h],a[o++]=v9[g|u<<4],a[o++]=v9[d<<2|_],a[o++]=v9[r&63];return s==8?(t=e[i],u=(t&3)<<24>>24,h=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,a[o++]=v9[h],a[o++]=v9[u<<4],a[o++]=61,a[o++]=61):s==16&&(t=e[i],n=e[i+1],d=(n&15)<<24>>24,u=(t&3)<<24>>24,h=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,g=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=v9[h],a[o++]=v9[g|u<<4],a[o++]=v9[d<<2],a[o++]=61),Ik(a,0,a.length)}function Hdt(e,t){var n,i,a,o,s,l,u;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>hB&&Oze(t,e.p-MB),s=t.q.getDate(),Zy(t,1),e.k>=0&&lb(t,e.k),e.c>=0?Zy(t,e.c):e.k>=0?(u=new oYe(t.q.getFullYear()-MB,t.q.getMonth(),35),i=35-u.q.getDate(),Zy(t,r.Math.min(i,s))):Zy(t,s),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),BSe(t,e.f==24&&e.g?0:e.f),e.j>=0&&TVe(t,e.j),e.n>=0&&SHe(t,e.n),e.i>=0&&sxe(t,vO(yO(eM(zT(t.q.getTime()),bB),bB),e.i)),e.a&&(a=new s_e,Oze(a,a.q.getFullYear()-MB-80),Z_e(zT(t.q.getTime()),zT(a.q.getTime()))&&Oze(t,a.q.getFullYear()-MB+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),l=t.q.getMonth(),Zy(t,t.q.getDate()+n),t.q.getMonth()!=l&&Zy(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>hB&&(o=t.q.getTimezoneOffset(),sxe(t,vO(zT(t.q.getTime()),(e.o-o)*60*bB))),!0}function Udt(e,t){var n,r,i=q(t,(hz(),KQ)),a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x;if(V(i,207)){for(h=H(i,27),g=t.e,p=new Ld(t.c),a=t.d,p.a+=a.b,p.b+=a.d,x=H(qP(h,(fz(),E1)),181),op(x,(EI(),a7))&&(m=H(qP(h,O1),107),gi(m,a.a),Fle(m,a.d),_i(m,a.b),Ple(m,a.c)),n=new go,d=new L(t.a);d.ar.c.length-1;)Af(r,new nd(_H,svt));n=H(q(i,o4),17).a,Wd(H(q(e,t4),88))?(i.e.az(Ip((jb(n,r.c.length),H(r.c[n],42)).b))&&Di((jb(n,r.c.length),H(r.c[n],42)),i.e.a+i.f.a)):(i.e.bz(Ip((jb(n,r.c.length),H(r.c[n],42)).b))&&Di((jb(n,r.c.length),H(r.c[n],42)),i.e.b+i.f.b))}for(a=lA(e.b,0);a.b!=a.d.c;)i=H(ux(a),40),n=H(q(i,(QI(),o4)),17).a,EE(i,(YR(),q2),Ip((jb(n,r.c.length),H(r.c[n],42)).a)),EE(i,K2,Ip((jb(n,r.c.length),H(r.c[n],42)).b));t.Vg()}function qdt(e){var t,n,i,a,o,s,l,u,d,p,m,h,g,_,v;for(e.o=z(Ip(q(e.i,(fz(),n0)))),e.f=z(Ip(q(e.i,X1))),e.j=e.i.b.c.length,l=e.j-1,h=0,e.k=0,e.n=0,e.b=$x(vS(AJ,Kz,17,e.j,0,1)),e.c=$x(vS(OJ,Kz,345,e.j,7,1)),s=new L(e.i.b);s.a0&&Af(e.q,p),Af(e.p,p);t-=i,g=u+t,d+=t*e.f,Fx(e.b,l,kD(g)),Fx(e.c,l,d),e.k=r.Math.max(e.k,g),e.n=r.Math.max(e.n,d),e.e+=t,t+=v}}function XR(){XR=D;var e;X5=new Qu(NV,0),M5=new Qu(BV,1),j5=new Qu(xht,2),Y5=new Qu(Sht,3),Z5=new Qu(VV,4),L5=(iy(),new uc((e=H(Pc(Q5),9),new Dm(e,H(nm(e,e.length),9),0)))),R5=DD(gg(M5,K(B(Q5,1),sU,64,0,[]))),N5=DD(gg(j5,K(B(Q5,1),sU,64,0,[]))),K5=DD(gg(Y5,K(B(Q5,1),sU,64,0,[]))),J5=DD(gg(Z5,K(B(Q5,1),sU,64,0,[]))),U5=DD(gg(M5,K(B(Q5,1),sU,64,0,[Y5]))),I5=DD(gg(j5,K(B(Q5,1),sU,64,0,[Z5]))),G5=DD(gg(M5,K(B(Q5,1),sU,64,0,[Z5]))),z5=DD(gg(M5,K(B(Q5,1),sU,64,0,[j5]))),q5=DD(gg(Y5,K(B(Q5,1),sU,64,0,[Z5]))),P5=DD(gg(j5,K(B(Q5,1),sU,64,0,[Y5]))),H5=DD(gg(M5,K(B(Q5,1),sU,64,0,[j5,Z5]))),F5=DD(gg(j5,K(B(Q5,1),sU,64,0,[Y5,Z5]))),W5=DD(gg(M5,K(B(Q5,1),sU,64,0,[Y5,Z5]))),B5=DD(gg(M5,K(B(Q5,1),sU,64,0,[j5,Y5]))),V5=DD(gg(M5,K(B(Q5,1),sU,64,0,[j5,Y5,Z5])))}function ZR(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(t.Ug(lgt,1),g=new go,C=new go,u=new L(e.b);u.a0&&(S-=g),Nlt(s,S),p=0,h=new L(s.a);h.a0),l.a.Xb(l.c=--l.b)),u=.4*i*p,!o&&l.b0&&(l=(Mb(0,t.length),t.charCodeAt(0)),l!=64)){if(l==37&&(f=t.lastIndexOf(`%`),u=!1,f!=0&&(f==p-1||(u=(Mb(f+1,t.length),t.charCodeAt(f+1)==46))))){if(o=(bS(1,f,t.length),t.substr(1,f-1)),b=hm(`%`,o)?null:sft(o),r=0,u)try{r=AI((Mb(f+2,t.length+1),t.substr(f+2)),hB,Ez)}catch(e){throw e=eE(e),V(e,130)?(s=e,R(new ZS(s))):R(e)}for(_=JKe(e.Gh());_.Ob();)if(h=LT(_),V(h,519)&&(i=H(h,598),y=i.d,(b==null?y==null:hm(b,y))&&r--==0))return i;return null}if(d=t.lastIndexOf(`.`),m=d==-1?t:(bS(0,d,t.length),t.substr(0,d)),n=0,d!=-1)try{n=AI((Mb(d+1,t.length+1),t.substr(d+1)),hB,Ez)}catch(e){if(e=eE(e),V(e,130))m=t;else throw R(e)}for(m=hm(`%`,m)?null:sft(m),g=JKe(e.Gh());g.Ob();)if(h=LT(g),V(h,197)&&(a=H(h,197),v=a.xe(),(m==null?v==null:hm(m,v))&&n--==0))return a;return null}return Wut(e,t)}function nft(e){var t,n,r,i,a,o,s,l,u,d=new ho,p,m,h,g,_,v,y,b;for(l=new Fy,r=new L(e.a.a.b);r.at.d.c){if(h=e.c[t.a.d],v=e.c[p.a.d],h==v)continue;DF(xl(bl(Sl(yl(new Ko,1),100),h),v))}}}}}function rft(e,t){var n,i,a,o,s,l,u,d,f,p,m=H(H(Zx(e.r,t),21),87),h,g,_,v,y,b,x,S,C,w;if(t==(XR(),j5)||t==Z5){Ndt(e,t);return}for(o=t==M5?(YT(),SY):(YT(),CY),S=t==M5?(uC(),gY):(uC(),mY),n=H(yv(e.b,t),127),i=n.i,a=i.c+VC(K(B(z9,1),QB,28,15,[n.n.b,e.C.b,e.k])),y=i.c+i.b-VC(K(B(z9,1),QB,28,15,[n.n.c,e.C.c,e.k])),s=xhe(vDe(o),e.t),b=t==M5?qB:KB,p=m.Kc();p.Ob();)d=H(p.Pb(),117),!(!d.c||d.c.d.c.length<=0)&&(v=d.b.Mf(),_=d.e,h=d.c,g=h.i,g.b=(u=h.n,h.e.a+u.b+u.c),g.a=(l=h.n,h.e.b+l.d+l.a),Sy(S,_ht),h.f=S,CS(h,(US(),pY)),g.c=_.a-(g.b-v.a)/2,C=r.Math.min(a,_.a),w=r.Math.max(y,_.a+v.a),g.cw&&(g.c=w-g.b),Af(s.d,new KAe(g,KZe(s,g))),b=t==M5?r.Math.max(b,_.b+d.b.Mf().b):r.Math.min(b,_.b));for(b+=t==M5?e.t:-e.t,x=tk((s.e=b,s)),x>0&&(H(yv(e.b,t),127).a.b=x),f=m.Kc();f.Ob();)d=H(f.Pb(),117),!(!d.c||d.c.d.c.length<=0)&&(g=d.c.i,g.c-=d.e.a,g.d-=d.e.b)}function ift(e){for(var t=new ho,n,r,i,a,o,s,l=new Lf(e),u,d,p,m,h;l.e!=l.i.gc();){for(s=H(fA(l),27),n=new Uo,fv(kTt,s,n),h=new Ot,i=H(Ax(new Yh(null,new x_(new jg(Yf(oF(s).a.Kc(),new f)))),VAe(h,OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)])))),85),BGe(n,H(i.xc((lp(),!0)),16),new kt),r=H(Ax(Av(H(i.xc(!1),15).Lc(),new At),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ]))),15),o=r.Kc();o.Ob();)a=H(o.Pb(),74),m=y8e(a),m&&(u=H(sd(dg(t.f,m)),21),u||(u=$rt(m),qN(t.f,m,u)),Ww(n,u));for(i=H(Ax(new Yh(null,new x_(new jg(Yf(sF(s).a.Kc(),new f)))),VAe(h,OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ])))),85),BGe(n,H(i.xc(!0),16),new jt),r=H(Ax(Av(H(i.xc(!1),15).Lc(),new Mt),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ]))),15),p=r.Kc();p.Ob();)d=H(p.Pb(),74),m=b8e(d),m&&(u=H(sd(dg(t.f,m)),21),u||(u=$rt(m),qN(t.f,m,u)),Ww(n,u))}}function aft(e,t){RL();var n,r,i,a,o,s,l=yD(e,0)<0,u,d,f,p,m,h,g;if(l&&(e=YS(e)),yD(e,0)==0)switch(t){case 0:return`0`;case 1:return eV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return m=new sc,t<0?m.a+=`0E+`:m.a+=`0E`,m.a+=t==hB?`2147483648`:``+-t,m.a}d=18,f=vS(P9,yB,28,d+1,15,1),n=d,g=e;do u=g,g=eM(g,10),f[--n]=Sg(vO(48,bO(u,yO(g,10))))&xB;while(yD(g,0)!=0);if(i=bO(bO(bO(d,n),t),1),t==0)return l&&(f[--n]=45),Ik(f,n,d-n);if(t>0&&yD(i,-6)>=0){if(yD(i,0)>=0){for(a=n+Sg(i),s=d-1;s>=a;s--)f[s+1]=f[s];return f[++a]=46,l&&(f[--n]=45),Ik(f,n,d-n+1)}for(o=2;Z_e(o,vO(YS(i),1));o++)f[--n]=48;return f[--n]=46,f[--n]=48,l&&(f[--n]=45),Ik(f,n,d-n)}return h=n+1,r=d,p=new cc,l&&(p.a+=`-`),r-h>=1?(W_(p,f[n]),p.a+=`.`,p.a+=Ik(f,n+1,d-n-1)):p.a+=Ik(f,n,d-n),p.a+=`E`,yD(i,0)>0&&(p.a+=`+`),p.a+=``+Rg(i),p.a}function $R(e,t,n,i,a){var o,s,l,u,d,f,p,m,h,g,_,v=new zu(e.g,e.f),y,b,x,S,C,w;if(_=HN(e),_.a=r.Math.max(_.a,t),_.b=r.Math.max(_.b,n),w=_.a/v.a,f=_.b/v.b,S=_.a-v.a,u=_.b-v.b,i)for(s=ob(e)?H(qP(ob(e),(gz(),O6)),88):H(qP(e,(gz(),O6)),88),l=cd(qP(e,(gz(),s8)))===cd((CM(),b5)),b=new Lf((!e.c&&(e.c=new Bg(x7,e,9,9)),e.c));b.e!=b.i.gc();)switch(y=H(fA(b),123),x=H(qP(y,p8),64),x==(XR(),X5)&&(x=Xst(y,s),xA(y,p8,x)),x.g){case 1:l||ow(y,y.i*w);break;case 2:ow(y,y.i+S),l||sw(y,y.j*f);break;case 3:l||ow(y,y.i*w),sw(y,y.j+u);break;case 4:l||sw(y,y.j*f)}if(Xd(e,_.a,_.b),a)for(m=new Lf((!e.n&&(e.n=new Bg(y7,e,1,7)),e.n));m.e!=m.i.gc();)p=H(fA(m),135),h=p.i+p.g/2,g=p.j+p.f/2,C=h/v.a,d=g/v.b,C+d>=1&&(C-d>0&&g>=0?(ow(p,p.i+S),sw(p,p.j+u*d)):C-d<0&&h>=0&&(ow(p,p.i+S*C),sw(p,p.j+u)));return xA(e,(gz(),W6),(Ak(),o=H(Pc(r7),9),new Dm(o,H(nm(o,o.length),9),0))),new zu(w,f)}function oft(e){Ll(e,new MM(hc(vc(mc(_c(gc(new Bn,ZW),`ELK Radial`),`A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.`),new xae),ZW))),Zb(e,ZW,fW,dA(b4)),Zb(e,ZW,PH,dA(NIt)),Zb(e,ZW,WH,dA(CIt)),Zb(e,ZW,$H,dA(wIt)),Zb(e,ZW,UH,dA(TIt)),Zb(e,ZW,GH,dA(SIt)),Zb(e,ZW,VH,dA(EIt)),Zb(e,ZW,KH,dA(OIt)),Zb(e,ZW,JW,dA(bIt)),Zb(e,ZW,Mvt,dA(xIt)),Zb(e,ZW,qW,dA(kIt)),Zb(e,ZW,YW,dA(MIt)),Zb(e,ZW,Ivt,dA(AIt)),Zb(e,ZW,XW,dA(jIt)),Zb(e,ZW,Fvt,dA(DIt)),Zb(e,ZW,Avt,dA(y4)),Zb(e,ZW,jvt,dA(x4)),Zb(e,ZW,Nvt,dA(S4)),Zb(e,ZW,Pvt,dA(PIt)),Zb(e,ZW,kvt,dA(yIt))}function ez(e){var t,n,r,i,a,o,s,l,u,d,f;if(e==null)throw R(new lc(Mz));if(u=e,a=e.length,l=!1,a>0&&(t=(Mb(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Mb(1,e.length+1),e.substr(1)),--a,l=t==45)),a==0)throw R(new lc(GB+u+`"`));for(;e.length>0&&(Mb(0,e.length),e.charCodeAt(0)==48);)e=(Mb(1,e.length+1),e.substr(1)),--a;if(a>(Ost(),qSt)[10])throw R(new lc(GB+u+`"`));for(i=0;i0&&(f=-parseInt((bS(0,r,e.length),e.substr(0,r)),10),e=(Mb(r,e.length+1),e.substr(r)),a-=r,n=!1);a>=o;){if(r=parseInt((bS(0,o,e.length),e.substr(0,o)),10),e=(Mb(o,e.length+1),e.substr(o)),a-=o,n)n=!1;else{if(yD(f,s)<0)throw R(new lc(GB+u+`"`));f=yO(f,d)}f=bO(f,r)}if(yD(f,0)>0||!l&&(f=YS(f),yD(f,0)<0))throw R(new lc(GB+u+`"`));return f}function sft(e){aR();var t,n,r,i,a,o,s,l;if(e==null)return null;if(i=jd(e,HM(37)),i<0)return e;for(l=new Qf((bS(0,i,e.length),e.substr(0,i))),t=vS(R9,QG,28,4,15,1),s=0,r=0,o=e.length;ii+2&&wE((Mb(i+1,e.length),e.charCodeAt(i+1)),OVt,kVt)&&wE((Mb(i+2,e.length),e.charCodeAt(i+2)),OVt,kVt)){if(n=wke((Mb(i+1,e.length),e.charCodeAt(i+1)),(Mb(i+2,e.length),e.charCodeAt(i+2))),i+=2,r>0?(n&192)==128?t[s++]=n<<24>>24:r=0:n>=128&&((n&224)==192?(t[s++]=n<<24>>24,r=2):(n&240)==224?(t[s++]=n<<24>>24,r=3):(n&248)==240&&(t[s++]=n<<24>>24,r=4)),r>0){if(s==r){switch(s){case 2:W_(l,((t[0]&31)<<6|t[1]&63)&xB);break;case 3:W_(l,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&xB)}s=0,r=0}}else{for(a=0;a=2){if((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a).i==0)n=(Mc(),a=new Poe,a),SS((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a),n);else if((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a).i>1)for(m=new pp((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a));m.e!=m.i.gc();)uM(m);tL(t,H(G((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a),0),166))}if(p)for(i=new Lf((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a));i.e!=i.i.gc();)for(n=H(fA(i),166),d=new Lf((!n.a&&(n.a=new Mf(d7,n,5)),n.a));d.e!=d.i.gc();)u=H(fA(d),377),l.a=r.Math.max(l.a,u.a),l.b=r.Math.max(l.b,u.b);for(s=new Lf((!e.n&&(e.n=new Bg(y7,e,1,7)),e.n));s.e!=s.i.gc();)o=H(fA(s),135),f=H(qP(o,J8),8),f&&Zd(o,f.a,f.b),p&&(l.a=r.Math.max(l.a,o.i+o.g),l.b=r.Math.max(l.b,o.j+o.f));return l}function tz(e,t,n,r,i){var a,o,s;if(rWe(e,t),o=t[0],a=kv(n.c,0),s=-1,vYe(n)){if(r>0){if(o+r>e.length)return!1;s=SP((bS(0,o+r,e.length),e.substr(0,o+r)),t)}else s=SP(e,t)}switch(a){case 71:return s=jN(e,o,K(B(PJ,1),Kz,2,6,[PB,gmt]),t),i.e=s,!0;case 77:return Tit(e,t,i,s,o);case 76:return Eit(e,t,i,s,o);case 69:return a7e(e,t,o,i);case 99:return o7e(e,t,o,i);case 97:return s=jN(e,o,K(B(PJ,1),Kz,2,6,[`AM`,`PM`]),t),i.b=s,!0;case 121:return Dit(e,t,o,s,n,i);case 100:return s<=0?!1:(i.c=s,!0);case 83:return s<0?!1:l$e(s,o,t[0],i);case 104:s==12&&(s=0);case 75:case 72:return s<0?!1:(i.f=s,i.g=!1,!0);case 107:return s<0?!1:(i.f=s,i.g=!0,!0);case 109:return s<0?!1:(i.j=s,!0);case 115:return s<0?!1:(i.n=s,!0);case 90:if(oE[u]&&(v=u),p=new L(e.a.b);p.a1;){if(a=Unt(t),p=o.g,g=H(qP(t,B4),107),_=z(Ip(qP(t,F4))),(!t.a&&(t.a=new Bg(b7,t,10,11)),t.a).i>1&&z(Ip(qP(t,(QF(),eLt))))!=KB&&(o.c+(g.b+g.c))/(o.b+(g.d+g.a))<_?xA(a,(QF(),P4),z(Ip(qP(t,P4)))+z(Ip(qP(t,eLt)))):(!t.a&&(t.a=new Bg(b7,t,10,11)),t.a).i>1&&z(Ip(qP(t,(QF(),$It))))!=KB&&(o.c+(g.b+g.c))/(o.b+(g.d+g.a))>_&&xA(a,(QF(),P4),r.Math.max(z(Ip(qP(t,M4))),z(Ip(qP(a,P4)))-z(Ip(qP(t,$It))))),h=new Kye(i,f),u=mpt(h,a,m),d=u.g,d>=p&&d==d){for(s=0;s<(!a.a&&(a.a=new Bg(b7,a,10,11)),a.a).i;s++)pP(e,H(G((!a.a&&(a.a=new Bg(b7,a,10,11)),a.a),s),27),H(G((!t.a&&(t.a=new Bg(b7,t,10,11)),t.a),s),27));JWe(t,h),dFe(o,u.c),uFe(o,u.b)}--l}xA(t,(QF(),k4),o.b),xA(t,A4,o.c),n.Vg()}function fft(e,t){var n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b;for(t.Ug(`Interactive node layering`,1),n=new go,m=new L(e.a);m.a=l){zp(b.b>0),b.a.Xb(b.c=--b.b);break}v.a>u&&(i?(nE(i.b,v.b),i.a=r.Math.max(i.a,v.a),G_(b)):(Af(v.b,f),v.c=r.Math.min(v.c,u),v.a=r.Math.max(v.a,l),i=v))}i||(i=new es,i.c=u,i.a=l,$p(b,i),Af(i.b,f))}for(s=e.b,d=0,y=new L(n);y.ah&&(o&&(bd(w,m),bd(E,kD(d.b-1))),j=n.b,M+=m+t,m=0,f=r.Math.max(f,n.b+n.c+A)),ow(l,j),sw(l,M),f=r.Math.max(f,j+A+n.c),m=r.Math.max(m,p),j+=A+t;if(f=r.Math.max(f,i),k=M+m+n.a,kOH,D=r.Math.abs(m.b-g.b)>OH,(!n&&E&&D||n&&(E||D))&&Ch(v.a,S)),Ww(v.a,i),m=i.b==0?S:(zp(i.b!=0),H(i.c.b.c,8)),xJe(h,p,_),iT(a)==T&&($_(T.i)!=a.a&&(_=new jc,z5e(_,$_(T.i),b)),EE(v,Akt,_)),vN(h,v,b),f.a.zc(h,f);hb(v,C),vb(v,T)}for(d=f.a.ec().Kc();d.Ob();)u=H(d.Pb(),18),hb(u,null),vb(u,null);t.Vg()}function hft(e,t){var n,r,i=H(q(e,(QI(),t4)),88),a,o,s,l,u,d=i==(eO(),A8)||i==j8?k8:j8,f,p;for(n=H(Ax(Av(new Yh(null,new Nb(e.b,16)),new On),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15),l=H(Ax(jv(n.Oc(),new Ude(t)),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ]))),15),l.Gc(H(Ax(jv(n.Oc(),new Wde(t)),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ]))),16)),l.jd(new Gde(d)),p=new zc(new Kde(i)),r=new ho,s=l.Kc();s.Ob();)o=H(s.Pb(),240),u=H(o.a,40),Vs(Fp(o.c))?(p.a.zc(u,(lp(),xJ)),new ca(p.a.Zc(u,!1)).a.gc()>0&&fv(r,u,H(new ca(p.a.Zc(u,!1)).a.Vc(),40)),new ca(p.a.ad(u,!0)).a.gc()>1&&fv(r,p$e(p,u),u)):(new ca(p.a.Zc(u,!1)).a.gc()>0&&(a=H(new ca(p.a.Zc(u,!1)).a.Vc(),40),cd(a)===cd(sd(dg(r.f,u)))&&H(q(u,(YR(),HPt)),15).Fc(a)),new ca(p.a.ad(u,!0)).a.gc()>1&&(f=p$e(p,u),cd(sd(dg(r.f,f)))===cd(u)&&H(q(f,(YR(),HPt)),15).Fc(u)),p.a.Bc(u))}function gft(e){var t,n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S;if(e.gc()==1)return H(e.Xb(0),235);if(e.gc()<=0)return new iS;for(a=e.Kc();a.Ob();){for(n=H(a.Pb(),235),g=0,f=Ez,p=Ez,u=hB,d=hB,h=new L(n.e);h.al&&(x=0,S+=s+y,s=0),wI(_,n,x,S),t=r.Math.max(t,x+v.a),s=r.Math.max(s,v.b),x+=v.a+y;return _}function _ft(e){Kst();var t,n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(e==null||(a=sC(e),h=oQe(a),h%4!=0))return null;if(g=h/4|0,g==0)return vS(R9,QG,28,0,15,1);for(f=null,t=0,n=0,r=0,i=0,o=0,s=0,l=0,u=0,m=0,p=0,d=0,f=vS(R9,QG,28,g*3,15,1);m>4)<<24>>24,f[p++]=((n&15)<<4|r>>2&15)<<24>>24,f[p++]=(r<<6|i)<<24>>24}return!Gc(o=a[d++])||!Gc(s=a[d++])?null:(t=_9[o],n=_9[s],l=a[d++],u=a[d++],_9[l]==-1||_9[u]==-1?l==61&&u==61?n&15?null:(_=vS(R9,QG,28,m*3+1,15,1),JI(f,0,_,0,m*3),_[p]=(t<<2|n>>4)<<24>>24,_):l!=61&&u==61?(r=_9[l],r&3?null:(_=vS(R9,QG,28,m*3+2,15,1),JI(f,0,_,0,m*3),_[p++]=(t<<2|n>>4)<<24>>24,_[p]=((n&15)<<4|r>>2&15)<<24>>24,_)):null:(r=_9[l],i=_9[u],f[p++]=(t<<2|n>>4)<<24>>24,f[p++]=((n&15)<<4|r>>2&15)<<24>>24,f[p++]=(r<<6|i)<<24>>24,f))}function vft(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S;for(t.Ug(lgt,1),h=H(q(e,(fz(),Z$)),223),i=new L(e.b);i.a=2){for(g=!0,p=new L(a.j),n=H(W(p),12),m=null;p.a0){if(i=p.gc(),d=Uy(r.Math.floor((i+1)/2))-1,a=Uy(r.Math.ceil((i+1)/2))-1,t.o==b2)for(f=a;f>=d;f--)t.a[S.p]==S&&(_=H(p.Xb(f),42),g=H(_.a,10),!il(n,_.b)&&h>e.b.e[g.p]&&(t.a[g.p]=S,t.g[S.p]=t.g[g.p],t.a[S.p]=t.g[S.p],t.f[t.g[S.p].p]=(lp(),!!(Vs(t.f[t.g[S.p].p])&S.k==(fN(),SX))),h=e.b.e[g.p]));else for(f=d;f<=a;f++)t.a[S.p]==S&&(y=H(p.Xb(f),42),v=H(y.a,10),!il(n,y.b)&&h0&&(a=H(Wh(v.c.a,w-1),10),s=e.i[a.p],E=r.Math.ceil(wf(e.n,a,v)),o=C.a.e-v.d.d-(s.a.e+a.o.b+a.d.a)-E),d=KB,w0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)<0,g=x.a.e.e-x.a.a-(x.b.e.e-x.b.a)<0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)>0,h=x.a.e.e+x.b.aT.b.e.e+T.a.a,S=0,!_&&!g&&(m?o+p>0?S=p:d-i>0&&(S=i):h&&(o+l>0?S=l:d-b>0&&(S=b))),C.a.e+=S,C.b&&(C.d.e+=S),!1))}function xft(e,t,n){var i=new Vv(t.Lf().a,t.Lf().b,t.Mf().a,t.Mf().b),a=new zd,o,s,l,u,d,f,p,m;if(e.c)for(s=new L(t.Rf());s.au&&(r.a+=NSe(vS(P9,yB,28,-u,15,1))),r.a+=`Is`,jd(l,HM(32))>=0)for(i=0;i=r.o.b/2}else y=!f;y?(v=H(q(r,(hz(),i$)),15),v?p?a=v:(i=H(q(r,gQ),15),i?a=v.gc()<=i.gc()?v:i:(a=new go,EE(r,gQ,a))):(a=new go,EE(r,i$,a))):(i=H(q(r,(hz(),gQ)),15),i?f?a=i:(v=H(q(r,i$),15),v?a=i.gc()<=v.gc()?i:v:(a=new go,EE(r,i$,a))):(a=new go,EE(r,gQ,a))),a.Fc(e),EE(e,(hz(),vQ),n),t.d==n?(vb(t,null),n.e.c.length+n.g.c.length==0&&_b(n,null),HYe(n)):(hb(t,null),n.e.c.length+n.g.c.length==0&&_b(n,null)),Qv(t.a)}function Dft(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M;for(n.Ug(`MinWidth layering`,1),h=t.b,T=t.a,M=H(q(t,(fz(),fMt)),17).a,l=H(q(t,pMt),17).a,e.b=z(Ip(q(t,K1))),e.d=KB,S=new L(T);S.a0?(d=0,v&&(d+=l),d+=(D-1)*s,x&&(d+=l),E&&x&&(d=r.Math.max(d,Crt(x,s,b,T))),d=e.a&&(i=mL(e,x),p=r.Math.max(p,i.b),C=r.Math.max(C,i.d),Af(l,new nd(x,i)));for(D=new go,d=0;d0),y.a.Xb(y.c=--y.b),O=new I_(e.b),$p(y,O),zp(y.b0){for(p=d<100?null:new Ac(d),u=new Mqe(t),h=u.g,v=vS(F9,NB,28,d,15,1),r=0,x=new KC(d),i=0;i=0;)if(m==null?cd(m)===cd(h[l]):zD(m,h[l])){v.length<=r&&(_=v,v=vS(F9,NB,28,2*v.length,15,1),JI(_,0,v,0,r)),v[r++]=i,SS(x,h[l]);break v}if(m=m,cd(m)===cd(s))break}}if(u=x,h=x.g,d=r,r>v.length&&(_=v,v=vS(F9,NB,28,r,15,1),JI(_,0,v,0,r)),r>0){for(b=!0,a=0;a=0;)fj(e,v[o]);if(r!=d){for(i=d;--i>=r;)fj(u,i);_=v,v=vS(F9,NB,28,r,15,1),JI(_,0,v,0,r)}t=u}}}else for(t=r4e(e,t),i=e.i;--i>=0;)t.Hc(e.g[i])&&(fj(e,i),b=!0);if(b){if(v!=null){for(n=t.gc(),f=n==1?pb(e,4,t.Kc().Pb(),null,v[0],g):pb(e,6,t,v,v[0],g),p=n<100?null:new Ac(n),i=t.Kc();i.Ob();)m=i.Pb(),p=IEe(e,H(m,76),p);p?(p.nj(f),p.oj()):jT(e.e,f)}else{for(p=qTe(t.gc()),i=t.Kc();i.Ob();)m=i.Pb(),p=IEe(e,H(m,76),p);p&&p.oj()}return!0}return!1}function jft(e,t){var n=new E0e(t),r,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x;for(n.a||Xot(t),u=_at(t),l=new Fy,v=new mit,_=new L(t.a);_.a<_.c.c.length;)for(g=H(W(_),10),i=new jg(Yf(AO(g).a.Kc(),new f));UP(i);)r=H(Wx(i),18),(r.c.i.k==(fN(),bX)||r.d.i.k==bX)&&(d=Xut(e,r,u,v),TP(l,P1e(d.d),d.a));for(o=new go,x=H(q(n.c,(hz(),EQ)),21).Kc();x.Ob();){switch(b=H(x.Pb(),64),h=v.c[b.g],m=v.b[b.g],s=v.a[b.g],a=null,y=null,b.g){case 4:a=new Vv(e.d.a,h,u.b.a-e.d.a,m-h),y=new Vv(e.d.a,h,s,m-h),wh(u,new zu(a.c+a.b,a.d)),wh(u,new zu(a.c+a.b,a.d+a.a));break;case 2:a=new Vv(u.a.a,h,e.c.a-u.a.a,m-h),y=new Vv(e.c.a-s,h,s,m-h),wh(u,new zu(a.c,a.d)),wh(u,new zu(a.c,a.d+a.a));break;case 1:a=new Vv(h,e.d.b,m-h,u.b.b-e.d.b),y=new Vv(h,e.d.b,m-h,s),wh(u,new zu(a.c,a.d+a.a)),wh(u,new zu(a.c+a.b,a.d+a.a));break;case 3:a=new Vv(h,u.a.b,m-h,e.c.b-u.a.b),y=new Vv(h,e.c.b-s,m-h,s),wh(u,new zu(a.c,a.d)),wh(u,new zu(a.c+a.b,a.d))}a&&(p=new Zo,p.d=b,p.b=a,p.c=y,p.a=my(H(Zx(l,P1e(b)),21)),So(o.c,p))}return nE(n.b,o),n.d=MXe(TR(u)),n}function Mft(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(n.p[t.p]==null){l=!0,n.p[t.p]=0,s=t,_=n.o==(Yy(),y2)?qB:KB;do a=e.b.e[s.p],o=s.c.a.c.length,n.o==y2&&a>0||n.o==b2&&a=n}function Pft(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b=t,x,S,C,w,T,E,D,O,k;for(y=new Fy,x=new Fy,d=ax(b,hbt),r=new GNe(e,n,y,x),i5e(r.a,r.b,r.c,r.d,d),l=(w=y.i,w||(y.i=new zf(y,y.c))),E=l.Kc();E.Ob();)for(T=H(E.Pb(),166),i=H(Zx(y,T),21),g=i.Kc();g.Ob();)if(h=g.Pb(),S=H(tw(e.d,h),166),S)s=(!T.e&&(T.e=new pm(m7,T,10,9)),T.e),SS(s,S);else throw o=cx(b,cK),p=Cbt+h+wbt+o,m=p+uK,R(new Qs(m));for(u=(C=x.i,C||(x.i=new zf(x,x.c))),O=u.Kc();O.Ob();)for(D=H(O.Pb(),166),a=H(Zx(x,D),21),v=a.Kc();v.Ob();)if(_=v.Pb(),S=H(tw(e.d,_),166),S)f=(!D.g&&(D.g=new pm(m7,D,9,10)),D.g),SS(f,S);else throw o=cx(b,cK),p=Cbt+_+wbt+o,m=p+uK,R(new Qs(m));!n.b&&(n.b=new pm(f7,n,4,7)),n.b.i!=0&&(!n.c&&(n.c=new pm(f7,n,5,8)),n.c.i!=0)&&(!n.b&&(n.b=new pm(f7,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new pm(f7,n,5,8)),n.c.i<=1))&&(!n.a&&(n.a=new Bg(m7,n,6,6)),n.a).i==1&&(k=H(G((!n.a&&(n.a=new Bg(m7,n,6,6)),n.a),0),166),!z0e(k)&&!B0e(k)&&(wKe(k,H(G((!n.b&&(n.b=new pm(f7,n,4,7)),n.b),0),84)),TKe(k,H(G((!n.c&&(n.c=new pm(f7,n,5,8)),n.c),0),84))))}function Fft(e){for(var t,n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x=e.a,S=0,C=x.length,w,T,E,D,O;S0?(p=H(Wh(m.c.a,s-1),10),E=wf(e.b,m,p),v=m.n.b-m.d.d-(p.n.b+p.o.b+p.d.a+E)):v=m.n.b-m.d.d,d=r.Math.min(v,d),s1&&(s=r.Math.min(s,r.Math.abs(H(gA(l.a,1),8).b-f.b)))));else for(_=new L(t.j);_.a<_.c.c.length;)for(g=H(W(_),12),u=new L(g.e);u.aa&&(o=m.a-a,s=Ez,i.c.length=0,a=m.a),m.a>=a&&(So(i.c,l),l.a.b>1&&(s=r.Math.min(s,r.Math.abs(H(gA(l.a,l.a.b-2),8).b-m.b)))));if(i.c.length!=0&&o>t.o.a/2&&s>t.o.b/2){for(h=new bN,_b(h,t),rP(h,(XR(),M5)),h.n.a=t.o.a/2,y=new bN,_b(y,t),rP(y,Y5),y.n.a=t.o.a/2,y.n.b=t.o.b,u=new L(i);u.a=d.b?hb(l,y):hb(l,h)):(d=H(ske(l.a),8),v=l.a.b==0?Ob(l.c):H(Sp(l.a),8),v.b>=d.b?vb(l,y):vb(l,h)),p=H(q(l,(fz(),d1)),75),p&&QO(p,d,!0);t.n.a=a-t.o.a/2}}function rz(e,t,n){for(var i,a,o,s,l=lA(e.b,0),u,d,f,p,m;l.b!=l.d.c;)if(s=H(ux(l),40),!hm(s.c,FW))for(d=Xet(s,e),t==(eO(),A8)||t==j8?bf(d,new Zie):bf(d,new Qie),u=d.c.length,i=0;i=0?JO(s):rO(JO(s)),e.qf(R1,m)),u=new jc,p=!1,e.pf(j1)?(Twe(u,H(e.of(j1),8)),p=!0):tCe(u,o.a/2,o.b/2),m.g){case 4:EE(d,f1,(XO(),o$)),EE(d,CQ,(kE(),LZ)),d.o.b=o.b,g<0&&(d.o.a=-g),rP(f,(XR(),j5)),p||(u.a=o.a),u.a-=o.a;break;case 2:EE(d,f1,(XO(),c$)),EE(d,CQ,(kE(),IZ)),d.o.b=o.b,g<0&&(d.o.a=-g),rP(f,(XR(),Z5)),p||(u.a=0);break;case 1:EE(d,FQ,(dC(),hQ)),d.o.a=o.a,g<0&&(d.o.b=-g),rP(f,(XR(),Y5)),p||(u.b=o.b),u.b-=o.b;break;case 3:EE(d,FQ,(dC(),pQ)),d.o.a=o.a,g<0&&(d.o.b=-g),rP(f,(XR(),M5)),p||(u.b=0)}if(Twe(f.n,u),EE(d,j1,u),t==y5||t==x5||t==b5){if(h=0,t==y5&&e.pf(P1))switch(m.g){case 1:case 2:h=H(e.of(P1),17).a;break;case 3:case 4:h=-H(e.of(P1),17).a}else switch(m.g){case 4:case 2:h=a.b,t==x5&&(h/=i.b);break;case 1:case 3:h=a.a,t==x5&&(h/=i.a)}EE(d,JQ,h)}return EE(d,kQ,m),d}function Lft(){Zhe();function e(e){var t=this;this.dispatch=function(t){var n=t.data;switch(n.cmd){case`algorithms`:var r=ek((iy(),new Yi(new Ui(w7.b))));e.postMessage({id:n.id,data:r});break;case`categories`:var i=ek((iy(),new Yi(new Ui(w7.c))));e.postMessage({id:n.id,data:i});break;case`options`:var a=ek((iy(),new Yi(new Ui(w7.d))));e.postMessage({id:n.id,data:a});break;case`register`:aut(n.algorithms),e.postMessage({id:n.id});break;case`layout`:Pct(n.graph,n.layoutOptions||{},n.options||{}),e.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{t.dispatch(n)}catch(t){e.postMessage({id:n.data.id,error:t})}}}function r(t){var n=this;this.dispatcher=new e({postMessage:function(e){n.onmessage({data:e})}}),this.postMessage=function(e){setTimeout(function(){n.dispatcher.saveDispatch({data:e})},0)}}if(typeof document===Ymt&&typeof self!==Ymt){var i=new e(self);self.onmessage=i.saveDispatch}else typeof t!==Ymt&&t.exports&&(Object.defineProperty(n,"__esModule",{value:!0}),t.exports={default:r,Worker:r})}function Rft(e,t,n){var r,i,a,o,s,l,u,d=new NA(n),f,p;for(UT(d,t),EE(d,(hz(),KQ),t),d.o.a=t.g,d.o.b=t.f,d.n.a=t.i,d.n.b=t.j,Af(n.a,d),fv(e.a,t,d),((!t.a&&(t.a=new Bg(b7,t,10,11)),t.a).i!=0||Vs(Fp(qP(t,(fz(),c1)))))&&EE(d,yQ,(lp(),!0)),u=H(q(n,jQ),21),f=H(q(d,(fz(),N1)),101),f==(CM(),w5)?EE(d,N1,C5):f!=C5&&u.Fc((BF(),iQ)),p=0,r=H(q(n,J$),88),l=new Lf((!t.c&&(t.c=new Bg(x7,t,9,9)),t.c));l.e!=l.i.gc();)s=H(fA(l),123),i=ob(t),(cd(qP(i,B$))!==cd((Rk(),V0))||cd(qP(i,q$))===cd((Lk(),PZ))||cd(qP(i,q$))===cd((Lk(),NZ))||Vs(Fp(qP(i,V$)))||cd(qP(i,R$))!==cd((Zk(),hX))||cd(qP(i,m1))===cd((mI(),N0))||cd(qP(i,m1))===cd((mI(),P0))||cd(qP(i,h1))===cd((CF(),_0))||cd(qP(i,h1))===cd((CF(),y0)))&&!Vs(Fp(qP(t,Kjt)))&&xA(s,GQ,kD(p++)),Vs(Fp(qP(s,D1)))||Adt(e,s,d,u,r,f);for(o=new Lf((!t.n&&(t.n=new Bg(y7,t,1,7)),t.n));o.e!=o.i.gc();)a=H(fA(o),135),!Vs(Fp(qP(a,D1)))&&a.a&&Af(d.b,YXe(a));return Vs(Fp(q(d,I$)))&&u.Fc((BF(),$Z)),Vs(Fp(q(d,s1)))&&(u.Fc((BF(),rQ)),u.Fc(nQ),EE(d,N1,C5)),d}function az(e,t,n,i,a,o,s){var l,u,d,f,p,m,h,g,_=0,v,y,b,x,S,C,w,T,E,D,O=0,k,A,j,M;for(d=new L(e.b);d.a_&&(o&&(bd(w,h),bd(E,kD(f.b-1)),Af(e.d,g),l.c.length=0),j=n.b,M+=h+t,h=0,p=r.Math.max(p,n.b+n.c+A)),So(l.c,u),$1e(u,j,M),p=r.Math.max(p,j+A+n.c),h=r.Math.max(h,m),j+=A+t,g=u;if(nE(e.a,l),Af(e.d,H(Wh(l,l.c.length-1),163)),p=r.Math.max(p,i),k=M+h+n.a,ki.d.d+i.d.a?d.f.d=!0:(d.f.d=!0,d.f.a=!0))),r.b!=r.d.c&&(t=n);d&&(a=H(N_(e.f,o.d.i),60),t.ba.d.d+a.d.a?d.f.d=!0:(d.f.d=!0,d.f.a=!0))}for(s=new jg(Yf(kO(h).a.Kc(),new f));UP(s);)o=H(Wx(s),18),o.a.b!=0&&(t=H(Sp(o.a),8),o.d.j==(XR(),M5)&&(v=new _L(t,new zu(t.a,i.d.d),i,o),v.f.a=!0,v.a=o.d,So(_.c,v)),o.d.j==Y5&&(v=new _L(t,new zu(t.a,i.d.d+i.d.a),i,o),v.f.d=!0,v.a=o.d,So(_.c,v)))}return _}function Wft(e,t,n){var r,i,a,o,s,l=new go,u,d,f=t.length,p;for(o=PE(n),u=0;u=h&&(y>h&&(m.c.length=0,h=y),So(m.c,o));m.c.length!=0&&(p=H(Wh(m,kA(t,m.c.length)),131),O.a.Bc(p),p.s=g++,iF(p,E,C),m.c.length=0)}for(x=e.c.length+1,s=new L(e);s.aD.s&&(G_(n),JS(D.i,r),r.c>0&&(r.a=D,Af(D.t,r),r.b=w,Af(w.i,r)))}function qft(e,t,n,r,i){var a,o,s,l,u,d,f,p,m,h,g=new dS(t.b),_,v,y,b,x=new dS(t.b),S,C,w,T,E,D,O;for(p=new dS(t.b),T=new dS(t.b),_=new dS(t.b),w=lA(t,0);w.b!=w.d.c;)for(S=H(ux(w),12),s=new L(S.g);s.a0,v=S.g.c.length>0,u&&v?So(p.c,S):u?So(g.c,S):v&&So(x.c,S);for(h=new L(g);h.ab.nh()-d.b&&(m=b.nh()-d.b),h>b.oh()-d.d&&(h=b.oh()-d.d),f0){for(S=lA(e.f,0);S.b!=S.d.c;)x=H(ux(S),10),x.p+=h-e.e;V5e(e),Qv(e.f),KF(e,i,g)}else{for(Ch(e.f,g),g.p=i,e.e=r.Math.max(e.e,i),o=new jg(Yf(kO(g).a.Kc(),new f));UP(o);)a=H(Wx(o),18),!a.c.i.c&&a.c.i.k==(fN(),xX)&&(Ch(e.f,a.c.i),a.c.i.p=i-1);e.c=i}}else V5e(e),Qv(e.f),i=0,UP(new jg(Yf(kO(g).a.Kc(),new f)))?(h=0,h=f0e(h,g),i=h+2,KF(e,i,g)):(Ch(e.f,g),g.p=0,e.e=r.Math.max(e.e,0),e.b=H(Wh(e.d.b,0),30),e.c=0);for(e.f.b==0||V5e(e),e.d.a.c.length=0,b=new go,d=new L(e.d.b);d.a=48&&t<=57){for(r=t-48;i=48&&t<=57;)if(r=r*10+t-48,r<0)throw R(new $s(Sz((gf(),sxt))))}else throw R(new $s(Sz((gf(),ixt))));if(n=r,t==44){if(i>=e.j)throw R(new $s(Sz((gf(),axt))));if((t=kv(e.i,i++))>=48&&t<=57){for(n=t-48;i=48&&t<=57;)if(n=n*10+t-48,n<0)throw R(new $s(Sz((gf(),sxt))));if(r>n)throw R(new $s(Sz((gf(),oxt))))}else n=-1}if(t!=125)throw R(new $s(Sz((gf(),OK))));e.bm(i)?(a=(vz(),vz(),++M9,new Tx(9,a)),e.d=i+1):(a=(vz(),vz(),++M9,new Tx(3,a)),e.d=i),a.Om(r),a.Nm(n),pz(e)}}return a}function tpt(e){var t,n=H(q(e,(hz(),jQ)),21),r,i,a;switch(t=Bd(EEt),i=H(q(e,(fz(),i1)),346),i==(ED(),Y8)&&AT(t,DEt),Vs(Fp(q(e,sMt)))?zh(t,(XM(),tX),(_z(),qX)):zh(t,(XM(),rX),(_z(),qX)),q(e,(FVe(),J3))!=null&&AT(t,OEt),(Vs(Fp(q(e,u1)))||Vs(Fp(q(e,r1))))&&xg(t,(XM(),aX),(_z(),SDt)),H(q(e,J$),88).g){case 2:case 3:case 4:xg(zh(t,(XM(),tX),(_z(),wDt)),aX,CDt)}switch(n.Hc((BF(),$Z))&&xg(zh(zh(t,(XM(),tX),(_z(),xDt)),iX,yDt),aX,bDt),cd(q(e,m1))!==cd((mI(),z0))&&zh(t,(XM(),rX),(_z(),RDt)),n.Hc(oQ)&&(zh(t,(XM(),tX),(_z(),HDt)),zh(t,nX,BDt),zh(t,rX,VDt)),cd(q(e,L$))!==cd((cN(),JZ))&&cd(q(e,Z$))!==cd((TO(),B8))&&xg(t,(XM(),aX),(_z(),MDt)),Vs(Fp(q(e,o1)))&&zh(t,(XM(),rX),(_z(),jDt)),Vs(Fp(q(e,$jt)))&&zh(t,(XM(),rX),(_z(),UDt)),Snt(e)&&(r=cd(q(e,i1))===cd(Y8)?H(q(e,H$),299):H(q(e,U$),299),a=r==(XT(),lkt)?(_z(),zDt):(_z(),GDt),zh(t,(XM(),iX),a)),H(q(e,f0),388).g){case 1:zh(t,(XM(),iX),(_z(),$X));break;case 2:xg(zh(zh(t,(XM(),rX),(_z(),hDt)),iX,gDt),aX,_Dt)}return cd(q(e,B$))!==cd((Rk(),V0))&&zh(t,(XM(),rX),(_z(),WDt)),t}function cz(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b;if(Xg(e.a,t)){if(il(H(N_(e.a,t),49),n))return 1}else fv(e.a,t,new Uo);if(Xg(e.a,n)){if(il(H(N_(e.a,n),49),t))return-1}else fv(e.a,n,new Uo);if(Xg(e.e,t)){if(il(H(N_(e.e,t),49),n))return-1}else fv(e.e,t,new Uo);if(Xg(e.e,n)){if(il(H(N_(e.a,n),49),t))return 1}else fv(e.e,n,new Uo);if(e.c==(Rk(),H0)||!Cp(t,(hz(),GQ))||!Cp(n,(hz(),GQ))){for(f=null,u=new L(t.j);u.ao?uI(e,t,n):uI(e,n,t),io)}return r=H(q(t,(hz(),GQ)),17).a,a=H(q(n,GQ),17).a,r>a?uI(e,t,n):uI(e,n,t),ra)}function lz(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(n==null)return null;if(e.a!=t.jk())throw R(new Ks(XG+t.xe()+ZG));if(V(t,469)){if(_=Lit(H(t,685),n),!_)throw R(new Ks(abt+n+`' is not a valid enumerator of '`+t.xe()+`'`));return _}switch(FD((LN(),o9),t).Nl()){case 2:n=VL(n,!1);break;case 3:n=VL(n,!0)}if(r=FD(o9,t).Jl(),r)return r.jk().wi().ti(r,n);if(p=FD(o9,t).Ll(),p){for(_=new go,u=$E(n),d=0,f=u.length;d1)for(g=new pp((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a));g.e!=g.i.gc();)uM(g);for(s=H(G((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a),0),166),v=j,j>C+S?v=C+S:jw+_?y=w+_:MC-S&&vw-_&&yj+A?E=j+A:CM+T?D=M+T:wj-A&&EM-T&&Dn&&(m=n-1),h=ie+cF(t,24)*oV*p-p/2,h<0?h=1:h>i&&(h=i-1),a=(Mc(),u=new Moe,u),CGe(a,m),nw(a,h),SS((!s.a&&(s.a=new Mf(d7,s,5)),s.a),a)}function spt(e){Ll(e,new MM(vc(mc(_c(gc(new Bn,fG),`ELK Rectangle Packing`),`Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces.`),new jae))),Zb(e,fG,pH,1.3),Zb(e,fG,HH,(lp(),!1)),Zb(e,fG,mH,V4),Zb(e,fG,PH,15),Zb(e,fG,dW,dA(xLt)),Zb(e,fG,WH,dA(ELt)),Zb(e,fG,$H,dA(OLt)),Zb(e,fG,UH,dA(kLt)),Zb(e,fG,GH,dA(TLt)),Zb(e,fG,VH,dA(ALt)),Zb(e,fG,KH,dA(MLt)),Zb(e,fG,cG,dA(FLt)),Zb(e,fG,lG,dA(PLt)),Zb(e,fG,sG,dA(LLt)),Zb(e,fG,oG,dA(ILt)),Zb(e,fG,uG,dA(z4)),Zb(e,fG,dG,dA(R4)),Zb(e,fG,Uvt,dA(jLt)),Zb(e,fG,Wvt,dA(U4)),Zb(e,fG,RH,dA(CLt)),Zb(e,fG,pW,dA(wLt)),Zb(e,fG,Hvt,dA(I4)),Zb(e,fG,iG,dA(SLt)),Zb(e,fG,aG,dA(L4)),Zb(e,fG,rG,dA(NLt))}function cpt(e,t){RL();var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.e,E,D,O,k,A;if(h=e.d,i=e.a,T==0)switch(t){case 0:return`0`;case 1:return eV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return C=new sc,t<0?C.a+=`0E+`:C.a+=`0E`,C.a+=-t,C.a}if(b=h*10+1+7,x=vS(P9,yB,28,b+1,15,1),n=b,h==1){if(s=i[0],s<0){A=Rb(s,$B);do g=A,A=eM(A,10),x[--n]=48+Sg(bO(g,yO(A,10)))&xB;while(yD(A,0)!=0)}else{A=s;do g=A,A=A/10|0,x[--n]=48+(g-A*10)&xB;while(A!=0)}}else{D=vS(F9,NB,28,h,15,1),k=h,JI(i,0,D,0,k);I:for(;;){for(w=0,u=k-1;u>=0;u--)O=vO(Dg(w,32),Rb(D[u],$B)),v=A6e(O),D[u]=Sg(v),w=Sg(Og(v,32));y=Sg(w),_=n;do x[--n]=48+y%10&xB;while((y=y/10|0)!=0&&n!=0);for(r=9-_+n,l=0;l0;l++)x[--n]=48;for(f=k-1;D[f]==0;f--)if(f==0)break I;k=f+1}for(;x[n]==48;)++n}if(m=T<0,o=b-n-t-1,t==0)return m&&(x[--n]=45),Ik(x,n,b-n);if(t>0&&o>=-6){if(o>=0){for(d=n+o,p=b-1;p>=d;p--)x[p+1]=x[p];return x[++d]=46,m&&(x[--n]=45),Ik(x,n,b-n+1)}for(f=2;f<-o+1;f++)x[--n]=48;return x[--n]=46,x[--n]=48,m&&(x[--n]=45),Ik(x,n,b-n)}return E=n+1,a=b,S=new cc,m&&(S.a+=`-`),a-E>=1?(W_(S,x[n]),S.a+=`.`,S.a+=Ik(x,n+1,b-n-1)):S.a+=Ik(x,n,b-n),S.a+=`E`,o>0&&(S.a+=`+`),S.a+=``+o,S.a}function lpt(e,t){var n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;switch(e.c=t,e.g=new ho,n=(zl(),new Bs(e.c)),i=new ga(n),UQe(i),x=Lp(qP(e.c,(QM(),hRt))),u=H(qP(e.c,gRt),324),C=H(qP(e.c,c3),437),s=H(qP(e.c,fRt),490),S=H(qP(e.c,s3),438),e.j=z(Ip(qP(e.c,_Rt))),l=e.a,u.g){case 0:l=e.a;break;case 1:l=e.b;break;case 2:l=e.i;break;case 3:l=e.e;break;case 4:l=e.f;break;default:throw R(new Ks(gG+(u.f==null?``+u.g:u.f)))}if(e.d=new CFe(l,C,s),EE(e.d,(ET(),kY),Fp(qP(e.c,mRt))),e.d.c=Vs(Fp(qP(e.c,pRt))),sy(e.c).i==0)return e.d;for(p=new Lf(sy(e.c));p.e!=p.i.gc();){for(f=H(fA(p),27),h=f.g/2,m=f.f/2,w=new zu(f.i+h,f.j+m);Xg(e.g,w);)Ep(w,(r.Math.random()-.5)*OH,(r.Math.random()-.5)*OH);_=H(qP(f,(gz(),B6)),140),v=new WFe(w,new Vv(w.a-h-e.j/2-_.b,w.b-m-e.j/2-_.d,f.g+e.j+(_.b+_.c),f.f+e.j+(_.d+_.a))),Af(e.d.i,v),fv(e.g,w,new nd(v,f))}switch(S.g){case 0:if(x==null)e.d.d=H(Wh(e.d.i,0),68);else for(b=new L(e.d.i);b.a0?k+1:1);for(o=new L(C.g);o.a0?k+1:1)}e.c[u]==0?Ch(e.e,g):e.a[u]==0&&Ch(e.f,g),++u}for(h=-1,m=1,f=new go,e.d=H(q(t,(hz(),YQ)),234);te>0;){for(;e.e.b!=0;)j=H(oke(e.e),10),e.b[j.p]=h--,TI(e,j),--te;for(;e.f.b!=0;)M=H(oke(e.f),10),e.b[M.p]=m++,TI(e,M),--te;if(te>0){for(p=hB,y=new L(b);y.a=p&&(x>p&&(f.c.length=0,p=x),So(f.c,g)));d=e.sg(f),e.b[d.p]=m++,TI(e,d),--te}}for(A=b.c.length+1,u=0;ue.b[ee]&&(nL(r,!0),EE(t,SQ,(lp(),!0)));e.a=null,e.c=null,e.b=null,Qv(e.f),Qv(e.e),n.Vg()}function dz(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=H(G((!e.a&&(e.a=new Bg(m7,e,6,6)),e.a),0),166),w;for(f=new cs,S=new ho,w=Tst(C),qN(S.f,C,w),m=new ho,i=new ll,g=Zg(yw(K(B(rJ,1),jz,20,0,[(!t.d&&(t.d=new pm(p7,t,8,5)),t.d),(!t.e&&(t.e=new pm(p7,t,7,4)),t.e)])));UP(g);){if(h=H(Wx(g),74),(!e.a&&(e.a=new Bg(m7,e,6,6)),e.a).i!=1)throw R(new Ks(Uyt+(!e.a&&(e.a=new Bg(m7,e,6,6)),e.a).i));h!=e&&(v=H(G((!h.a&&(h.a=new Bg(m7,h,6,6)),h.a),0),166),kx(i,v,i.c.b,i.c),_=H(sd(dg(S.f,v)),13),_||(_=Tst(v),qN(S.f,v,_)),p=n?dm(new Ld(H(Wh(w,w.c.length-1),8)),H(Wh(_,_.c.length-1),8)):dm(new Ld((jb(0,w.c.length),H(w.c[0],8))),(jb(0,_.c.length),H(_.c[0],8))),qN(m.f,v,p))}if(i.b!=0)for(y=H(Wh(w,n?w.c.length-1:0),8),d=1;d1&&kx(f,y,f.c.b,f.c),UWe(a)));y=b}return f}function fpt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D;for(n.Ug(yvt,1),D=H(Ax(Av(new Yh(null,new Nb(t,16)),new oae),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15),d=H(Ax(Av(new Yh(null,new Nb(t,16)),new Jde(t)),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ]))),15),h=H(Ax(Av(new Yh(null,new Nb(t,16)),new qde(t)),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[ZJ]))),15),g=vS(L2,RW,40,t.gc(),0,1),o=0;o=0&&E=0&&!g[m]){g[m]=i,d.gd(s),--s;break}if(m=E-p,m=0&&!g[m]){g[m]=i,d.gd(s),--s;break}}for(h.jd(new sae),l=g.length-1;l>=0;l--)!g[l]&&!h.dc()&&(g[l]=H(h.Xb(0),40),h.gd(0));for(u=0;u=0;l--)Ch(n,(jb(l,o.c.length),H(o.c[l],8)));return n}function mpt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x=z(Ip(qP(t,(QF(),P4)))),S;for(h=z(Ip(qP(t,M4))),m=z(Ip(qP(t,j4))),rqe((!t.a&&(t.a=new Bg(b7,t,10,11)),t.a)),y=alt((!t.a&&(t.a=new Bg(b7,t,10,11)),t.a),x,e.b),v=0;vp&&Nj((jb(p,t.c.length),H(t.c[p],186)),d),d=null;t.c.length>p&&(jb(p,t.c.length),H(t.c[p],186)).a.c.length==0;)JS(t,(jb(p,t.c.length),t.c[p]));if(!d){--o;continue}if(!Vs(Fp(H(Wh(d.b,0),27).of((GF(),L4))))&&sst(t,h,a,d,_,n,p,r)){g=!0;continue}if(_){if(m=h.b,f=d.f,!Vs(Fp(H(Wh(d.b,0),27).of(L4)))&&eut(t,h,a,d,n,p,r,i)){if(g=!0,m=e.j){e.a=-1,e.c=1;return}if(t=kv(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(r=10,e.d>=e.j)throw R(new $s(Sz((gf(),Fbt))));e.a=kv(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||kv(e.i,e.d)!=63)break;if(++e.d>=e.j)throw R(new $s(Sz((gf(),bK))));switch(t=kv(e.i,e.d++),t){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(e.d>=e.j)throw R(new $s(Sz((gf(),bK))));if(t=kv(e.i,e.d++),t==61)r=16;else if(t==33)r=17;else throw R(new $s(Sz((gf(),Ibt))));break;case 35:for(;e.d=e.j)throw R(new $s(Sz((gf(),Fbt))));e.a=kv(e.i,e.d++);break;default:r=0}e.c=r}function vpt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(n.Ug(`Process compaction`,1),Vs(Fp(q(t,(QI(),uFt))))){for(i=H(q(t,t4),88),m=z(Ip(q(t,DFt))),Gct(e,t,i),hft(t,m/2/2),h=t.b,Lw(h,new Za(i)),u=lA(h,0);u.b!=u.d.c;)if(l=H(ux(u),40),!Vs(Fp(q(l,(YR(),Q2))))){if(r=yat(l,i),g=xct(l,t),f=0,p=0,r)switch(_=r.e,i.g){case 2:f=_.a-m-l.f.a,g.e.a-m-l.f.af&&(f=g.e.a+g.f.a+m),p=f+l.f.a;break;case 4:f=_.b-m-l.f.b,g.e.b-m-l.f.bf&&(f=g.e.b+g.f.b+m),p=f+l.f.b}else if(g)switch(i.g){case 2:f=g.e.a-m-l.f.a,p=f+l.f.a;break;case 1:f=g.e.a+g.f.a+m,p=f+l.f.a;break;case 4:f=g.e.b-m-l.f.b,p=f+l.f.b;break;case 3:f=g.e.b+g.f.b+m,p=f+l.f.b}cd(q(t,mFt))===cd((JE(),R2))?(a=f,o=p,s=WE(Av(new Yh(null,new Nb(e.a,16)),new Cye(a,o))),s.a==null?(s=i==(eO(),A8)||i==N8?WE(Av(sGe(new Yh(null,new Nb(e.a,16))),new Vde(a))):WE(Av(sGe(new Yh(null,new Nb(e.a,16))),new Hde(a))),s.a!=null&&(i==A8||i==j8?l.e.a=z(Ip((zp(s.a!=null),H(s.a,42)).a)):l.e.b=z(Ip((zp(s.a!=null),H(s.a,42)).a)))):i==(eO(),A8)||i==j8?l.e.a=f:l.e.b=f,s.a!=null&&(d=XS(e.a,(zp(s.a!=null),s.a),0),d>0&&d!=H(q(l,o4),17).a&&(EE(l,UPt,(lp(),!0)),EE(l,o4,kD(d))))):i==(eO(),A8)||i==j8?l.e.a=f:l.e.b=f}n.Vg()}}function ypt(e){var t,n,r,i,a,o,s,l,u;for(e.b=1,pz(e),t=null,e.c==0&&e.a==94?(pz(e),t=(vz(),vz(),++M9,new Bb(4)),PF(t,0,Wq),s=(++M9,new Bb(4))):s=(vz(),vz(),++M9,new Bb(4)),i=!0;(u=e.c)!=1;){if(u==0&&e.a==93&&!i){t&&(LR(t,s),s=t);break}if(n=e.a,r=!1,u==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:UL(s,jI(n)),r=!0;break;case 105:case 73:case 99:case 67:n=(UL(s,jI(n)),-1),n<0&&(r=!0);break;case 112:case 80:if(l=vP(e,n),!l)throw R(new $s(Sz((gf(),Kbt))));UL(s,l),r=!0;break;default:n=Zit(e)}else if(u==24&&!i){if(t&&(LR(t,s),s=t),a=ypt(e),LR(s,a),e.c!=0||e.a!=93)throw R(new $s(Sz((gf(),Ybt))));break}if(pz(e),!r){if(u==0){if(n==91)throw R(new $s(Sz((gf(),Xbt))));if(n==93)throw R(new $s(Sz((gf(),Zbt))));if(n==45&&!i&&e.a!=93)throw R(new $s(Sz((gf(),Qbt))))}if(e.c!=0||e.a!=45||n==45&&i)PF(s,n,n);else{if(pz(e),(u=e.c)==1)throw R(new $s(Sz((gf(),CK))));if(u==0&&e.a==93)PF(s,n,n),PF(s,45,45);else if(u==0&&e.a==93||u==24)throw R(new $s(Sz((gf(),Qbt))));else{if(o=e.a,u==0){if(o==91)throw R(new $s(Sz((gf(),Xbt))));if(o==93)throw R(new $s(Sz((gf(),Zbt))));if(o==45)throw R(new $s(Sz((gf(),Qbt))))}else u==10&&(o=Zit(e));if(pz(e),n>o)throw R(new $s(Sz((gf(),ext))));PF(s,n,o)}}}i=!1}if(e.c==1)throw R(new $s(Sz((gf(),CK))));return QP(s),cR(s),e.b=0,pz(e),s}function bpt(e,t,n){var r,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x,S,C;if(n.Ug(`Coffman-Graham Layering`,1),t.a.c.length==0){n.Vg();return}for(C=H(q(t,(fz(),uMt)),17).a,l=0,o=0,m=new L(t.a);m.a=C||!j$e(y,r))&&(r=bNe(t,d)),gb(y,r),a=new jg(Yf(kO(y).a.Kc(),new f));UP(a);)i=H(Wx(a),18),!e.a[i.p]&&(_=i.c.i,--e.e[_.p],e.e[_.p]==0&&fh(WM(h,_),tV));for(u=d.c.length-1;u>=0;--u)Af(t.b,(jb(u,d.c.length),H(d.c[u],30)));t.a.c.length=0,n.Vg()}function xpt(e,t){var n,r,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x,S=!1;do for(S=!1,a=t?new Ii(e.a.b).a.gc()-2:1;t?a>=0:aH(q(v,GQ),17).a)&&(x=!1);if(x){for(l=t?a+1:a-1,s=KRe(e.a,kD(l)),o=!1,b=!0,r=!1,d=lA(s,0);d.b!=d.d.c;)u=H(ux(d),10),Cp(u,GQ)?u.p!=p.p&&(o|=t?H(q(u,GQ),17).aH(q(p,GQ),17).a,b=!1):!o&&b&&u.k==(fN(),xX)&&(r=!0,m=t?H(Wx(new jg(Yf(kO(u).a.Kc(),new f))),18).c.i:H(Wx(new jg(Yf(AO(u).a.Kc(),new f))),18).d.i,m==p&&(n=t?H(Wx(new jg(Yf(AO(u).a.Kc(),new f))),18).d.i:H(Wx(new jg(Yf(kO(u).a.Kc(),new f))),18).c.i,(t?H(Tp(e.a,n),17).a-H(Tp(e.a,m),17).a:H(Tp(e.a,m),17).a-H(Tp(e.a,n),17).a)<=2&&(b=!1)));if(r&&b&&(n=t?H(Wx(new jg(Yf(AO(p).a.Kc(),new f))),18).d.i:H(Wx(new jg(Yf(kO(p).a.Kc(),new f))),18).c.i,(t?H(Tp(e.a,n),17).a-H(Tp(e.a,p),17).a:H(Tp(e.a,p),17).a-H(Tp(e.a,n),17).a)<=2&&n.k==(fN(),CX)&&(b=!1)),o||b){for(_=bnt(e,p,t);_.a.gc()!=0;)g=H(_.a.ec().Kc().Pb(),10),_.a.Bc(g),Ww(_,bnt(e,g,t));--h,S=!0}}}while(S)}function Spt(e){rF(e.c,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#decimal`])),rF(e.d,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#integer`])),rF(e.e,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#boolean`])),rF(e.f,$K,K(B(PJ,1),Kz,2,6,[fq,`EBoolean`,fK,`EBoolean:Object`])),rF(e.i,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#byte`])),rF(e.g,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#hexBinary`])),rF(e.j,$K,K(B(PJ,1),Kz,2,6,[fq,`EByte`,fK,`EByte:Object`])),rF(e.n,$K,K(B(PJ,1),Kz,2,6,[fq,`EChar`,fK,`EChar:Object`])),rF(e.t,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#double`])),rF(e.u,$K,K(B(PJ,1),Kz,2,6,[fq,`EDouble`,fK,`EDouble:Object`])),rF(e.F,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#float`])),rF(e.G,$K,K(B(PJ,1),Kz,2,6,[fq,`EFloat`,fK,`EFloat:Object`])),rF(e.I,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#int`])),rF(e.J,$K,K(B(PJ,1),Kz,2,6,[fq,`EInt`,fK,`EInt:Object`])),rF(e.N,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#long`])),rF(e.O,$K,K(B(PJ,1),Kz,2,6,[fq,`ELong`,fK,`ELong:Object`])),rF(e.Z,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#short`])),rF(e.$,$K,K(B(PJ,1),Kz,2,6,[fq,`EShort`,fK,`EShort:Object`])),rF(e._,$K,K(B(PJ,1),Kz,2,6,[fq,`http://www.w3.org/2001/XMLSchema#string`]))}function Cpt(e,t,n,r,i,a,o){var s,l,u,d,f,p=H(r.a,17).a,m=H(r.b,17).a,h;return f=e.b,h=e.c,s=0,d=0,t==(eO(),A8)||t==j8?(d=pye(FZe(Mv(jv(new Yh(null,new Nb(n.b,16)),new lae),new Gie))),f.e.b+f.f.b/2>d?(u=++m,s=z(Ip(np(Fg(jv(new Yh(null,new Nb(n.b,16)),new Wye(i,u)),new An))))):(l=++p,s=z(Ip(np(Ig(jv(new Yh(null,new Nb(n.b,16)),new Gye(i,l)),new Kie)))))):(d=pye(FZe(Mv(jv(new Yh(null,new Nb(n.b,16)),new Xie),new Wie))),f.e.a+f.f.a/2>d?(u=++m,s=z(Ip(np(Fg(jv(new Yh(null,new Nb(n.b,16)),new Hye(i,u)),new qie))))):(l=++p,s=z(Ip(np(Ig(jv(new Yh(null,new Nb(n.b,16)),new Uye(i,l)),new Jie)))))),t==A8?(bd(e.a,new zu(z(Ip(q(f,(YR(),q2))))-i,s)),bd(e.a,new zu(h.e.a+h.f.a+i+a,s)),bd(e.a,new zu(h.e.a+h.f.a+i+a,h.e.b+h.f.b/2)),bd(e.a,new zu(h.e.a+h.f.a,h.e.b+h.f.b/2))):t==j8?(bd(e.a,new zu(z(Ip(q(f,(YR(),K2))))+i,f.e.b+f.f.b/2)),bd(e.a,new zu(f.e.a+f.f.a+i,s)),bd(e.a,new zu(h.e.a-i-a,s)),bd(e.a,new zu(h.e.a-i-a,h.e.b+h.f.b/2)),bd(e.a,new zu(h.e.a,h.e.b+h.f.b/2))):t==N8?(bd(e.a,new zu(s,z(Ip(q(f,(YR(),q2))))-i)),bd(e.a,new zu(s,h.e.b+h.f.b+i+a)),bd(e.a,new zu(h.e.a+h.f.a/2,h.e.b+h.f.b+i+a)),bd(e.a,new zu(h.e.a+h.f.a/2,h.e.b+h.f.b+i))):(e.a.b==0||(H(Sp(e.a),8).b=z(Ip(q(f,(YR(),K2))))+i*H(o.b,17).a),bd(e.a,new zu(s,z(Ip(q(f,(YR(),K2))))+i*H(o.b,17).a)),bd(e.a,new zu(s,h.e.b-i*H(o.a,17).a-a))),new nd(kD(p),kD(m))}function wpt(e){var t,n,r,i,a,o=!0,s,l,u,d,f=null,p,m;if(r=null,i=null,t=!1,m=MVt,u=null,a=null,s=0,l=nA(e,s,AVt,jVt),l=0&&hm(e.substr(s,2),`//`)?(s+=2,l=nA(e,s,T7,E7),r=(bS(s,l,e.length),e.substr(s,l-s)),s=l):f!=null&&(s==e.length||(Mb(s,e.length),e.charCodeAt(s)!=47))&&(o=!1,l=xCe(e,HM(35),s),l==-1&&(l=e.length),r=(bS(s,l,e.length),e.substr(s,l-s)),s=l);if(!n&&s0&&kv(d,d.length-1)==58&&(i=d,s=l)),sbtt(a))&&(f=a);for(!f&&(f=(jb(0,_.c.length),H(_.c[0],185))),g=new L(t.b);g.ap&&(k=0,A+=f+T,f=0),Lot(C,s,k,A),t=r.Math.max(t,k+w.a),f=r.Math.max(f,w.b),k+=w.a+T;for(S=new ho,n=new ho,D=new L(e);D.a=-1900),n>=4?yd(e,K(B(PJ,1),Kz,2,6,[PB,gmt])[s]):yd(e,K(B(PJ,1),Kz,2,6,[`BC`,`AD`])[s]);break;case 121:I1e(e,n,r);break;case 77:CI(e,n,r);break;case 107:l=i.q.getHours(),l==0?oC(e,24,n):oC(e,l,n);break;case 83:xnt(e,n,i);break;case 69:d=r.q.getDay(),n==5?yd(e,K(B(PJ,1),Kz,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[d]):n==4?yd(e,K(B(PJ,1),Kz,2,6,[_mt,FB,vmt,ymt,bmt,xmt,Smt])[d]):yd(e,K(B(PJ,1),Kz,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[d]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?yd(e,K(B(PJ,1),Kz,2,6,[`AM`,`PM`])[1]):yd(e,K(B(PJ,1),Kz,2,6,[`AM`,`PM`])[0]);break;case 104:f=i.q.getHours()%12,f==0?oC(e,12,n):oC(e,f,n);break;case 75:p=i.q.getHours()%12,oC(e,p,n);break;case 72:m=i.q.getHours(),oC(e,m,n);break;case 99:h=r.q.getDay(),n==5?yd(e,K(B(PJ,1),Kz,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[h]):n==4?yd(e,K(B(PJ,1),Kz,2,6,[_mt,FB,vmt,ymt,bmt,xmt,Smt])[h]):n==3?yd(e,K(B(PJ,1),Kz,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[h]):oC(e,h,1);break;case 76:g=r.q.getMonth(),n==5?yd(e,K(B(PJ,1),Kz,2,6,[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`])[g]):n==4?yd(e,K(B(PJ,1),Kz,2,6,[SB,CB,wB,TB,EB,DB,OB,kB,mmt,hmt,AB,jB])[g]):n==3?yd(e,K(B(PJ,1),Kz,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,EB,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`])[g]):oC(e,g+1,n);break;case 81:_=r.q.getMonth()/3|0,n<4?yd(e,K(B(PJ,1),Kz,2,6,[`Q1`,`Q2`,`Q3`,`Q4`])[_]):yd(e,K(B(PJ,1),Kz,2,6,[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`])[_]);break;case 100:v=r.q.getDate(),oC(e,v,n);break;case 109:u=i.q.getMinutes(),oC(e,u,n);break;case 115:o=i.q.getSeconds(),oC(e,o,n);break;case 122:n<4?yd(e,a.c[0]):yd(e,a.c[1]);break;case 118:yd(e,a.b);break;case 90:n<3?yd(e,G7e(a)):n==3?yd(e,i9e(a)):yd(e,a9e(a.a));break;default:return!1}return!0}function Apt(e,t,n,r){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;if(not(t),l=H(G((!t.b&&(t.b=new pm(f7,t,4,7)),t.b),0),84),d=H(G((!t.c&&(t.c=new pm(f7,t,5,8)),t.c),0),84),s=PM(l),u=PM(d),o=(!t.a&&(t.a=new Bg(m7,t,6,6)),t.a).i==0?null:H(G((!t.a&&(t.a=new Bg(m7,t,6,6)),t.a),0),166),w=H(N_(e.a,s),10),O=H(N_(e.a,u),10),T=null,k=null,V(l,193)&&(C=H(N_(e.a,l),305),V(C,12)?T=H(C,12):V(C,10)&&(w=H(C,10),T=H(Wh(w.j,0),12))),V(d,193)&&(D=H(N_(e.a,d),305),V(D,12)?k=H(D,12):V(D,10)&&(O=H(D,10),k=H(Wh(O.j,0),12))),!w||!O)throw R(new Zs(`The source or the target of edge `+t+` could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN.`));for(g=new vy,UT(g,t),EE(g,(hz(),KQ),t),EE(g,(fz(),d1),null),m=H(q(r,jQ),21),w==O&&m.Fc((BF(),sQ)),T||=(S=(xw(),q0),E=null,o&&Ud(H(q(w,N1),101))&&(E=new zu(o.j,o.k),Tze(E,Gy(t)),wBe(E,n),HC(u,s)&&(S=K0,um(E,w.n))),KL(w,E,S,r)),k||=(S=(xw(),K0),A=null,o&&Ud(H(q(O,N1),101))&&(A=new zu(o.b,o.c),Tze(A,Gy(t)),wBe(A,n)),KL(O,A,S,$_(O))),hb(g,T),vb(g,k),(T.e.c.length>1||T.g.c.length>1||k.e.c.length>1||k.g.c.length>1)&&m.Fc((BF(),nQ)),p=new Lf((!t.n&&(t.n=new Bg(y7,t,1,7)),t.n));p.e!=p.i.gc();)if(f=H(fA(p),135),!Vs(Fp(qP(f,D1)))&&f.a)switch(_=YXe(f),Af(g.b,_),H(q(_,Y$),278).g){case 1:case 2:m.Fc((BF(),eQ));break;case 0:m.Fc((BF(),QZ)),EE(_,Y$,(ZC(),F8))}if(a=H(q(r,K$),322),v=H(q(r,C1),323),i=a==(Ow(),OZ)||v==(_A(),ZMt),o&&(!o.a&&(o.a=new Mf(d7,o,5)),o.a).i!=0&&i){for(y=AN(o),h=new cs,x=lA(y,0);x.b!=x.d.c;)b=H(ux(x),8),Ch(h,new Ld(b));EE(g,bkt,h)}return g}function jpt(e,t,n,r){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=0,D=0,O,k,A,j;for(w=new ho,S=H(np(Fg(jv(new Yh(null,new Nb(e.b,16)),new Yie),new rae)),17).a+1,T=vS(F9,NB,28,S,15,1),_=vS(F9,NB,28,S,15,1),g=0;g1)for(s=k+1;su.b.e.b*(1-v)+u.c.e.b*v));h++);if(C.gc()>0&&(A=u.a.b==0?Tf(u.b.e):H(Sp(u.a),8),b=um(Tf(H(C.Xb(C.gc()-1),40).e),H(C.Xb(C.gc()-1),40).f),p=um(Tf(H(C.Xb(0),40).e),H(C.Xb(0),40).f),h>=C.gc()-1&&A.b>b.b&&u.c.e.b>b.b||h<=0&&A.bu.b.e.a*(1-v)+u.c.e.a*v));h++);if(C.gc()>0&&(A=u.a.b==0?Tf(u.b.e):H(Sp(u.a),8),b=um(Tf(H(C.Xb(C.gc()-1),40).e),H(C.Xb(C.gc()-1),40).f),p=um(Tf(H(C.Xb(0),40).e),H(C.Xb(0),40).f),h>=C.gc()-1&&A.a>b.a&&u.c.e.a>b.a||h<=0&&A.a=z(Ip(q(e,(YR(),JPt))))&&++D):(m.f&&m.d.e.a<=z(Ip(q(e,(YR(),qPt))))&&++E,m.g&&m.c.e.a+m.c.f.a>=z(Ip(q(e,(YR(),KPt))))&&++D)}else x==0?u9e(u):x<0&&(++T[k],++_[j],O=Cpt(u,t,e,new nd(kD(E),kD(D)),n,r,new nd(kD(_[j]),kD(T[k]))),E=H(O.a,17).a,D=H(O.b,17).a)}function Mpt(e,t,n){var r=t,i,a,o,s,l=n,u,d,f,p,m,h,g,_,v,y;if(e.b&&r.j==(XR(),Z5)&&l.j==(XR(),Z5)&&(y=r,r=l,l=y),Xg(e.a,r)){if(il(H(N_(e.a,r),49),l))return 1}else fv(e.a,r,new Uo);if(Xg(e.a,l)){if(il(H(N_(e.a,l),49),r))return-1}else fv(e.a,l,new Uo);if(Xg(e.d,r)){if(il(H(N_(e.d,r),49),l))return-1}else fv(e.d,r,new Uo);if(Xg(e.d,l)){if(il(H(N_(e.a,l),49),r))return 1}else fv(e.d,l,new Uo);if(r.j!=l.j)return v=qd(r.j,l.j),v==-1?fI(e,l,r):fI(e,r,l),v;if(r.e.c.length!=0&&l.e.c.length!=0){if(e.b&&(v=OXe(r,l),v!=0))return v==-1?fI(e,l,r):v==1&&fI(e,r,l),v;if(a=H(Wh(r.e,0),18).c.i,d=H(Wh(l.e,0),18).c.i,a==d)return i=H(q(H(Wh(r.e,0),18),(hz(),GQ)),17).a,u=H(q(H(Wh(l.e,0),18),GQ),17).a,i>u?fI(e,r,l):fI(e,l,r),iu);for(h=e.c,g=0,_=h.length;g<_;++g){if(m=h[g],m==a)return fI(e,r,l),1;if(m==d)return fI(e,l,r),-1}}return r.g.c.length!=0&&l.g.c.length!=0?(s=H(q(r,(hz(),UQ)),10),p=H(q(l,UQ),10),e.e==(Rk(),U0)&&s&&p&&Cp(s,GQ)&&Cp(p,GQ)?(i=H(q(s,GQ),17).a,u=H(q(p,GQ),17).a,i>u?fI(e,r,l):fI(e,l,r),iu)):e.b&&(v=OXe(r,l),v!=0)?(v==-1?fI(e,l,r):v==1&&fI(e,r,l),v):(o=0,f=0,Cp(H(Wh(r.g,0),18),GQ)&&(o=H(q(H(Wh(r.g,0),18),GQ),17).a),Cp(H(Wh(l.g,0),18),GQ)&&(f=H(q(H(Wh(r.g,0),18),GQ),17).a),s&&s==p?Vs(Fp(q(H(Wh(r.g,0),18),ZQ)))&&!Vs(Fp(q(H(Wh(l.g,0),18),ZQ)))?(fI(e,r,l),1):!Vs(Fp(q(H(Wh(r.g,0),18),ZQ)))&&Vs(Fp(q(H(Wh(l.g,0),18),ZQ)))?(fI(e,l,r),-1):(o>f?fI(e,r,l):fI(e,l,r),of)):(e.f&&(e.f._b(s)&&(o=H(e.f.xc(s),17).a),e.f._b(p)&&(f=H(e.f.xc(p),17).a)),o>f?fI(e,r,l):fI(e,l,r),of)))):r.e.c.length!=0&&l.g.c.length!=0?(fI(e,r,l),1):r.g.c.length!=0&&l.e.c.length!=0?(fI(e,l,r),-1):Cp(r,(hz(),GQ))&&Cp(l,GQ)?(i=H(q(r,GQ),17).a,u=H(q(l,GQ),17).a,i>u?fI(e,r,l):fI(e,l,r),iu)):(fI(e,l,r),-1)}function Npt(e){e.gb||(e.gb=!0,e.b=FT(e,0),Hw(e.b,18),Uw(e.b,19),e.a=FT(e,1),Hw(e.a,1),Uw(e.a,2),Uw(e.a,3),Uw(e.a,4),Uw(e.a,5),e.o=FT(e,2),Hw(e.o,8),Hw(e.o,9),Uw(e.o,10),Uw(e.o,11),Uw(e.o,12),Uw(e.o,13),Uw(e.o,14),Uw(e.o,15),Uw(e.o,16),Uw(e.o,17),Uw(e.o,18),Uw(e.o,19),Uw(e.o,20),Uw(e.o,21),Uw(e.o,22),Uw(e.o,23),PC(e.o),PC(e.o),PC(e.o),PC(e.o),PC(e.o),PC(e.o),PC(e.o),PC(e.o),PC(e.o),PC(e.o),e.p=FT(e,3),Hw(e.p,2),Hw(e.p,3),Hw(e.p,4),Hw(e.p,5),Uw(e.p,6),Uw(e.p,7),PC(e.p),PC(e.p),e.q=FT(e,4),Hw(e.q,8),e.v=FT(e,5),Uw(e.v,9),PC(e.v),PC(e.v),PC(e.v),e.w=FT(e,6),Hw(e.w,2),Hw(e.w,3),Hw(e.w,4),Uw(e.w,5),e.B=FT(e,7),Uw(e.B,1),PC(e.B),PC(e.B),PC(e.B),e.Q=FT(e,8),Uw(e.Q,0),PC(e.Q),e.R=FT(e,9),Hw(e.R,1),e.S=FT(e,10),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),PC(e.S),e.T=FT(e,11),Uw(e.T,10),Uw(e.T,11),Uw(e.T,12),Uw(e.T,13),Uw(e.T,14),PC(e.T),PC(e.T),e.U=FT(e,12),Hw(e.U,2),Hw(e.U,3),Uw(e.U,4),Uw(e.U,5),Uw(e.U,6),Uw(e.U,7),PC(e.U),e.V=FT(e,13),Uw(e.V,10),e.W=FT(e,14),Hw(e.W,18),Hw(e.W,19),Hw(e.W,20),Uw(e.W,21),Uw(e.W,22),Uw(e.W,23),e.bb=FT(e,15),Hw(e.bb,10),Hw(e.bb,11),Hw(e.bb,12),Hw(e.bb,13),Hw(e.bb,14),Hw(e.bb,15),Hw(e.bb,16),Uw(e.bb,17),PC(e.bb),PC(e.bb),e.eb=FT(e,16),Hw(e.eb,2),Hw(e.eb,3),Hw(e.eb,4),Hw(e.eb,5),Hw(e.eb,6),Hw(e.eb,7),Uw(e.eb,8),Uw(e.eb,9),e.ab=FT(e,17),Hw(e.ab,0),Hw(e.ab,1),e.H=FT(e,18),Uw(e.H,0),Uw(e.H,1),Uw(e.H,2),Uw(e.H,3),Uw(e.H,4),Uw(e.H,5),PC(e.H),e.db=FT(e,19),Uw(e.db,2),e.c=IT(e,20),e.d=IT(e,21),e.e=IT(e,22),e.f=IT(e,23),e.i=IT(e,24),e.g=IT(e,25),e.j=IT(e,26),e.k=IT(e,27),e.n=IT(e,28),e.r=IT(e,29),e.s=IT(e,30),e.t=IT(e,31),e.u=IT(e,32),e.fb=IT(e,33),e.A=IT(e,34),e.C=IT(e,35),e.D=IT(e,36),e.F=IT(e,37),e.G=IT(e,38),e.I=IT(e,39),e.J=IT(e,40),e.L=IT(e,41),e.M=IT(e,42),e.N=IT(e,43),e.O=IT(e,44),e.P=IT(e,45),e.X=IT(e,46),e.Y=IT(e,47),e.Z=IT(e,48),e.$=IT(e,49),e._=IT(e,50),e.cb=IT(e,51),e.K=IT(e,52))}function Ppt(e,t,n){var r,i,a,o=new ll,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=H(q(n,(fz(),J$)),88),w,T,E,D,O,k;for(g=0,Ww(o,(!t.a&&(t.a=new Bg(b7,t,10,11)),t.a));o.b!=0;)d=H(o.b==0?null:(zp(o.b!=0),WC(o,o.a.a)),27),u=ob(d),(cd(qP(u,B$))!==cd((Rk(),V0))||cd(qP(u,q$))===cd((Lk(),PZ))||cd(qP(u,q$))===cd((Lk(),NZ))||Vs(Fp(qP(u,V$)))||cd(qP(u,R$))!==cd((Zk(),hX))||cd(qP(u,m1))===cd((mI(),N0))||cd(qP(u,m1))===cd((mI(),P0))||cd(qP(u,h1))===cd((CF(),_0))||cd(qP(u,h1))===cd((CF(),y0)))&&!Vs(Fp(qP(d,Kjt)))&&xA(d,(hz(),GQ),kD(g++)),v=!Vs(Fp(qP(d,D1))),v&&(p=(!d.a&&(d.a=new Bg(b7,d,10,11)),d.a).i!=0,h=L6e(d),m=cd(qP(d,i1))===cd((ED(),Y8)),k=!hS(d,(gz(),b6))||ZBe(Lp(qP(d,b6))),x=null,k&&m&&(p||h)&&(x=Vst(d),EE(x,J$,C),Cp(x,H1)&&Ame(new rk(z(Ip(q(x,H1)))),x),H(qP(d,w1),181).gc()!=0&&(f=x,_l(new Yh(null,(!d.c&&(d.c=new Bg(x7,d,9,9)),new Nb(d.c,16))),new Aa(f)),Oit(d,x))),w=n,T=H(N_(e.a,ob(d)),10),T&&(w=T.e),b=Rft(e,d,w),x&&(b.e=x,x.e=b,Ww(o,(!d.a&&(d.a=new Bg(b7,d,10,11)),d.a))));for(g=0,kx(o,t,o.c.b,o.c);o.b!=0;){for(a=H(o.b==0?null:(zp(o.b!=0),WC(o,o.a.a)),27),l=new Lf((!a.b&&(a.b=new Bg(p7,a,12,3)),a.b));l.e!=l.i.gc();)s=H(fA(l),74),not(s),(cd(qP(t,B$))!==cd((Rk(),V0))||cd(qP(t,q$))===cd((Lk(),PZ))||cd(qP(t,q$))===cd((Lk(),NZ))||Vs(Fp(qP(t,V$)))||cd(qP(t,R$))!==cd((Zk(),hX))||cd(qP(t,m1))===cd((mI(),N0))||cd(qP(t,m1))===cd((mI(),P0))||cd(qP(t,h1))===cd((CF(),_0))||cd(qP(t,h1))===cd((CF(),y0)))&&xA(s,(hz(),GQ),kD(g++)),D=PM(H(G((!s.b&&(s.b=new pm(f7,s,4,7)),s.b),0),84)),O=PM(H(G((!s.c&&(s.c=new pm(f7,s,5,8)),s.c),0),84)),!(Vs(Fp(qP(s,D1)))||Vs(Fp(qP(D,D1)))||Vs(Fp(qP(O,D1))))&&(_=wP(s)&&Vs(Fp(qP(D,c1)))&&Vs(Fp(qP(s,l1))),S=a,_||HC(O,D)?S=D:HC(D,O)&&(S=O),w=n,T=H(N_(e.a,S),10),T&&(w=T.e),y=Apt(e,s,S,w),EE(y,(hz(),bQ),tit(e,s,t,n)));if(m=cd(qP(a,i1))===cd((ED(),Y8)),m)for(i=new Lf((!a.a&&(a.a=new Bg(b7,a,10,11)),a.a));i.e!=i.i.gc();)r=H(fA(i),27),k=!hS(r,(gz(),b6))||ZBe(Lp(qP(r,b6))),E=cd(qP(r,i1))===cd(Y8),k&&E&&kx(o,r,o.c.b,o.c)}}function hz(){hz=D;var e,t;KQ=new ao(Dht),bQ=new ao(`coordinateOrigin`),Dkt=new ao(`processors`),yQ=new Yp(`compoundNode`,(lp(),!1)),PQ=new Yp(`insideConnections`,!1),bkt=new ao(`originalBendpoints`),xkt=new ao(`originalDummyNodePosition`),Skt=new ao(`originalLabelEdge`),XQ=new ao(`representedLabels`),wQ=new ao(`endLabels`),TQ=new ao(`endLabel.origin`),RQ=new Yp(`labelSide`,(vj(),r5)),WQ=new Yp(`maxEdgeThickness`,0),ZQ=new Yp(`reversed`,!1),YQ=new ao(Oht),VQ=new Yp(`longEdgeSource`,null),HQ=new Yp(`longEdgeTarget`,null),BQ=new Yp(`longEdgeHasLabelDummies`,!1),zQ=new Yp(`longEdgeBeforeLabelDummy`,!1),CQ=new Yp(`edgeConstraint`,(kE(),GOt)),IQ=new ao(`inLayerLayoutUnit`),FQ=new Yp(`inLayerConstraint`,(dC(),mQ)),LQ=new Yp(`inLayerSuccessorConstraint`,new go),ykt=new Yp(`inLayerSuccessorConstraintBetweenNonDummies`,!1),qQ=new ao(`portDummy`),xQ=new Yp(`crossingHint`,kD(0)),jQ=new Yp(`graphProperties`,(t=H(Pc(cQ),9),new Dm(t,H(nm(t,t.length),9),0))),kQ=new Yp(`externalPortSide`,(XR(),X5)),vkt=new Yp(`externalPortSize`,new jc),DQ=new ao(`externalPortReplacedDummies`),OQ=new ao(`externalPortReplacedDummy`),EQ=new Yp(`externalPortConnections`,(e=H(Pc(Q5),9),new Dm(e,H(nm(e,e.length),9),0))),JQ=new Yp(yht,0),gkt=new ao(`barycenterAssociates`),i$=new ao(`TopSideComments`),gQ=new ao(`BottomSideComments`),vQ=new ao(`CommentConnectionPort`),NQ=new Yp(`inputCollect`,!1),Tkt=new Yp(`outputCollect`,!1),SQ=new Yp(`cyclic`,!1),_kt=new ao(`crossHierarchyMap`),Akt=new ao(`targetOffset`),new Yp(`splineLabelSize`,new jc),e$=new ao(`spacings`),Ekt=new Yp(`partitionConstraint`,!1),_Q=new ao(`breakingPoint.info`),Okt=new ao(`splines.survivingEdge`),r$=new ao(`splines.route.start`),t$=new ao(`splines.edgeChain`),wkt=new ao(`originalPortConstraints`),$Q=new ao(`selfLoopHolder`),n$=new ao(`splines.nsPortY`),GQ=new ao(`modelOrder`),UQ=new ao(`longEdgeTargetNode`),AQ=new Yp(mgt,!1),QQ=new Yp(mgt,!1),MQ=new ao(`layerConstraints.hiddenNodes`),Ckt=new ao(`layerConstraints.opposidePort`),kkt=new ao(`targetNode.modelOrder`)}function Fpt(e,t,n,i){for(var a,o,s,l,u,d,f,p=lA(e.b,0),m,h,g;p.b!=p.d.c;)if(f=H(ux(p),40),!hm(f.c,FW))for(o=H(Ax(new Yh(null,new Nb(E9e(f,e),16)),OS(new _e,new ge,new Te,K(B($J,1),lB,108,0,[(aD(),ZJ)]))),15),t==(eO(),A8)||t==j8?o.jd(new $ie):o.jd(new eae),g=o.gc(),a=0;a0&&(l=H(Sp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(Sp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(u-h)/(r.Math.abs(l-m)/40)>50&&(h>u?bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a+i/5.3,f.e.b+f.f.b*s-i/2)):bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a+i/5.3,f.e.b+f.f.b*s+i/2)))),bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a,f.e.b+f.f.b*s))):t==j8?(d=z(Ip(q(f,(YR(),q2)))),f.e.a-i>d?bd(H(o.Xb(a),65).a,new zu(d-n,f.e.b+f.f.b*s)):H(o.Xb(a),65).a.b>0&&(l=H(Sp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(Sp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(u-h)/(r.Math.abs(l-m)/40)>50&&(h>u?bd(H(o.Xb(a),65).a,new zu(f.e.a-i/5.3,f.e.b+f.f.b*s-i/2)):bd(H(o.Xb(a),65).a,new zu(f.e.a-i/5.3,f.e.b+f.f.b*s+i/2)))),bd(H(o.Xb(a),65).a,new zu(f.e.a,f.e.b+f.f.b*s))):t==N8?(d=z(Ip(q(f,(YR(),K2)))),f.e.b+f.f.b+i0&&(l=H(Sp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(Sp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(u-h)/40)>50&&(m>l?bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s-i/2,f.e.b+i/5.3+f.f.b)):bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s+i/2,f.e.b+i/5.3+f.f.b)))),bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s,f.e.b+f.f.b))):(d=z(Ip(q(f,(YR(),q2)))),DYe(H(o.Xb(a),65),e)?bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s,H(Sp(H(o.Xb(a),65).a),8).b)):f.e.b-i>d?bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s,d-n)):H(o.Xb(a),65).a.b>0&&(l=H(Sp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(Sp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(u-h)/40)>50&&(m>l?bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s-i/2,f.e.b-i/5.3)):bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s+i/2,f.e.b-i/5.3)))),bd(H(o.Xb(a),65).a,new zu(f.e.a+f.f.a*s,f.e.b)))}function gz(){gz=D;var e,t;b6=new ao(gyt),_8=new ao(_yt),WRt=(OA(),Q3),URt=new Td(oW,WRt),new mo,x6=new Td(pH,null),S6=new ao(vyt),E6=(mM(),gg(_6,K(B(v6,1),lB,298,0,[p6]))),T6=new Td(dW,E6),D6=new Td(aW,(lp(),!1)),JRt=(eO(),M8),O6=new Td(sW,JRt),M6=(TO(),H8),YRt=new Td(ZU,M6),QRt=new Td(myt,!1),P6=(ED(),X8),N6=new Td(g_t,P6),izt=new rf(12),Q6=new Td(mH,izt),R6=new Td(RH,!1),$Rt=new Td(pW,!1),Z6=new Td(VH,!1),c8=(CM(),w5),s8=new Td(zH,c8),m8=new ao(fW),h8=new ao(NH),g8=new ao(IH),fzt=new ao(LH),ezt=new cs,z6=new Td(q_t,ezt),qRt=new Td(X_t,!1),F6=new Td(Z_t,!1),new ao(yyt),V6=new rs,B6=new Td(tvt,V6),X6=new Td(rW,!1),new mo,dzt=new Td(byt,1),w6=new ao(xyt),C6=new ao(Syt),E8=new Td(qH,!1),new Td(Cyt,!0),kD(0),new Td(MG,kD(100)),new Td(wyt,!1),kD(0),new Td(Tyt,kD(4e3)),kD(0),new Td(Eyt,kD(400)),new Td(Dyt,!1),new Td(Oyt,!1),new Td(kyt,!0),new Td(Ayt,!1),KRt=(ZO(),xBt),GRt=new Td(hyt,KRt),pzt=new Td(j_t,10),mzt=new Td(M_t,10),v8=new Td(dH,20),hzt=new Td(N_t,10),gzt=new Td(FH,2),y8=new Td(P_t,10),_zt=new Td(F_t,0),x8=new Td(R_t,5),vzt=new Td(I_t,1),yzt=new Td(L_t,1),S8=new Td(PH,20),bzt=new Td(eW,10),C8=new Td(tW,10),b8=new ao(z_t),Szt=new Cxe,xzt=new Td(nvt,Szt),ozt=new ao(evt),$6=!1,azt=new Td($_t,$6),nzt=new rf(5),tzt=new Td(cW,nzt),U6=(JP(),t=H(Pc(m5),9),new Dm(t,H(nm(t,t.length),9),0)),H6=new Td(GH,U6),t8=(uA(),g5),e8=new Td(uW,t8),r8=new ao(U_t),i8=new ao(W_t),a8=new ao(G_t),n8=new ao(K_t),rzt=(e=H(Pc(r7),9),new Dm(e,H(nm(e,e.length),9),0)),W6=new Td(WH,rzt),Y6=dO((EI(),o7)),J6=new Td(UH,Y6),q6=new zu(0,0),K6=new Td($H,q6),G6=new Td(HH,!1),j6=(ZC(),F8),A6=new Td(J_t,j6),k6=new Td(BH,!1),new ao(jyt),kD(1),new Td(Myt,null),czt=new ao(Q_t),l8=new ao(Y_t),uzt=(XR(),X5),p8=new Td(iW,uzt),o8=new ao(nW),d8=(aP(),dO(k5)),u8=new Td(KH,d8),lzt=new Td(H_t,!1),f8=new Td(lW,!0),new mo,O8=new Td(JH,1),Ezt=new Td(Nyt,null),T8=new Td(YH,150),w8=new Td(XH,1.414),D8=new Td(ZH,null),Czt=new Td(NG,1),I6=new Td(B_t,!1),L6=new Td(V_t,!1),XRt=new Td(fH,1),ZRt=(UM(),G8),new Td(PG,ZRt),szt=!0,Tzt=(TD(),c7),Dzt=c7,wzt=c7}function _z(){_z=D,wDt=new yu(`DIRECTION_PREPROCESSOR`,0),xDt=new yu(`COMMENT_PREPROCESSOR`,1),OX=new yu(`EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER`,2),NX=new yu(`INTERACTIVE_EXTERNAL_PORT_POSITIONER`,3),HDt=new yu(`PARTITION_PREPROCESSOR`,4),IX=new yu(`LABEL_DUMMY_INSERTER`,5),ZX=new yu(`SELF_LOOP_PREPROCESSOR`,6),VX=new yu(`LAYER_CONSTRAINT_PREPROCESSOR`,7),BDt=new yu(`PARTITION_MIDPROCESSOR`,8),jDt=new yu(`HIGH_DEGREE_NODE_LAYER_PROCESSOR`,9),RDt=new yu(`NODE_PROMOTION`,10),BX=new yu(`LAYER_CONSTRAINT_POSTPROCESSOR`,11),VDt=new yu(`PARTITION_POSTPROCESSOR`,12),kDt=new yu(`HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR`,13),UDt=new yu(`SEMI_INTERACTIVE_CROSSMIN_PROCESSOR`,14),hDt=new yu(`BREAKING_POINT_INSERTER`,15),UX=new yu(`LONG_EDGE_SPLITTER`,16),qX=new yu(`PORT_SIDE_PROCESSOR`,17),PX=new yu(`INVERTED_PORT_PROCESSOR`,18),KX=new yu(`PORT_LIST_SORTER`,19),WDt=new yu(`SORT_BY_INPUT_ORDER_OF_MODEL`,20),GX=new yu(`NORTH_SOUTH_PORT_PREPROCESSOR`,21),gDt=new yu(`BREAKING_POINT_PROCESSOR`,22),zDt=new yu(ngt,23),GDt=new yu(rgt,24),YX=new yu(`SELF_LOOP_PORT_RESTORER`,25),$X=new yu(`SINGLE_EDGE_GRAPH_WRAPPER`,26),FX=new yu(`IN_LAYER_CONSTRAINT_PROCESSOR`,27),EDt=new yu(`END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR`,28),IDt=new yu(`LABEL_AND_NODE_SIZE_PROCESSOR`,29),FDt=new yu(`INNERMOST_NODE_MARGIN_CALCULATOR`,30),QX=new yu(`SELF_LOOP_ROUTER`,31),yDt=new yu(`COMMENT_NODE_MARGIN_CALCULATOR`,32),AX=new yu(`END_LABEL_PREPROCESSOR`,33),RX=new yu(`LABEL_DUMMY_SWITCHER`,34),vDt=new yu(`CENTER_LABEL_MANAGEMENT_PROCESSOR`,35),zX=new yu(`LABEL_SIDE_SELECTOR`,36),NDt=new yu(`HYPEREDGE_DUMMY_MERGER`,37),ADt=new yu(`HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR`,38),LDt=new yu(`LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR`,39),MX=new yu(`HIERARCHICAL_PORT_POSITION_PROCESSOR`,40),SDt=new yu(`CONSTRAINTS_POSTPROCESSOR`,41),bDt=new yu(`COMMENT_POSTPROCESSOR`,42),PDt=new yu(`HYPERNODE_PROCESSOR`,43),jX=new yu(`HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER`,44),HX=new yu(`LONG_EDGE_JOINER`,45),XX=new yu(`SELF_LOOP_POSTPROCESSOR`,46),_Dt=new yu(`BREAKING_POINT_REMOVER`,47),WX=new yu(`NORTH_SOUTH_PORT_POSTPROCESSOR`,48),MDt=new yu(`HORIZONTAL_COMPACTOR`,49),LX=new yu(`LABEL_DUMMY_REMOVER`,50),DDt=new yu(`FINAL_SPLINE_BENDPOINTS_CALCULATOR`,51),TDt=new yu(`END_LABEL_SORTER`,52),JX=new yu(`REVERSED_EDGE_RESTORER`,53),kX=new yu(`END_LABEL_POSTPROCESSOR`,54),ODt=new yu(`HIERARCHICAL_NODE_RESIZER`,55),CDt=new yu(`DIRECTION_POSTPROCESSOR`,56)}function Ipt(){Ipt=D,oAt=(DC(),FZ),aAt=new Td(hgt,oAt),yAt=new Td(ggt,(lp(),!1)),wAt=(px(),fkt),CAt=new Td(EU,wAt),VAt=new Td(_gt,!1),D$=new Td(vgt,!0),Mkt=new Td(ygt,!1),k$=(fC(),sNt),ajt=new Td(bgt,k$),kD(1),pjt=new Td(xgt,kD(7)),mjt=new Td(Sgt,!1),bAt=new Td(Cgt,!1),iAt=(Lk(),ROt),rAt=new Td(wgt,iAt),BAt=(CF(),C0),E$=new Td(DU,BAt),jAt=(XO(),l$),AAt=new Td(Tgt,jAt),kD(-1),kAt=new Td(Egt,null),kD(-1),MAt=new Td(Dgt,kD(-1)),kD(-1),NAt=new Td(Ogt,kD(4)),kD(-1),FAt=new Td(OU,kD(2)),zAt=(mI(),z0),RAt=new Td(kgt,zAt),kD(0),LAt=new Td(kU,kD(0)),DAt=new Td(Agt,kD(Ez)),nAt=(Ow(),kZ),tAt=new Td(AU,nAt),Wkt=new Td(jgt,!1),_$=new Td(Mgt,.1),$kt=new Td(Ngt,!1),Zkt=new Td(Pgt,null),y$=new Td(Fgt,null),kD(-1),Qkt=new Td(Igt,null),kD(-1),b$=new Td(Lgt,kD(-1)),kD(0),Gkt=new Td(Rgt,kD(40)),Xkt=(XT(),uQ),Ykt=new Td(zgt,Xkt),qkt=lQ,Kkt=new Td(jU,qkt),O$=(_A(),A0),ijt=new Td(MU,O$),JAt=new ao(NU),UAt=(GS(),HZ),HAt=new Td(Bgt,UAt),KAt=(iM(),UZ),GAt=new Td(Vgt,KAt),new mo,ZAt=new Td(Hgt,.3),$At=new ao(PU),tjt=(EA(),O0),ejt=new Td(Ugt,tjt),fAt=(TT(),pNt),dAt=new Td(Wgt,fAt),w$=(qE(),vNt),C$=new Td(Ggt,w$),mAt=(iD(),X0),pAt=new Td(FU,mAt),gAt=new Td(IU,.2),x$=new Td(Kgt,2),ljt=new Td(qgt,null),djt=new Td(Jgt,10),ujt=new Td(Ygt,10),fjt=new Td(Xgt,20),kD(0),ojt=new Td(Zgt,kD(0)),kD(0),sjt=new Td(Qgt,kD(0)),kD(0),cjt=new Td($gt,kD(0)),Nkt=new Td(e_t,!1),Ikt=(cN(),JZ),d$=new Td(t_t,Ikt),Fkt=(LVe(),EZ),Pkt=new Td(n_t,Fkt),xAt=new Td(LU,!1),kD(0),T$=new Td(r_t,kD(16)),kD(0),SAt=new Td(i_t,kD(5)),Mjt=(oE(),ANt),P$=new Td(RU,Mjt),A$=new Td(zU,10),_jt=new Td(BU,1),M$=(GGe(),jZ),wjt=new Td(VU,M$),yjt=new ao(a_t),Sjt=kD(1),kD(0),xjt=new Td(o_t,Sjt),Ljt=(WGe(),TNt),Ijt=new Td(HU,Ljt),Njt=new ao(UU),Ojt=new Td(WU,!0),Ejt=new Td(GU,2),Ajt=new Td(s_t,!0),uAt=(mN(),VZ),lAt=new Td(c_t,uAt),cAt=(RN(),bZ),sAt=new Td(l_t,cAt),Ukt=(Rk(),V0),Hkt=new Td(KU,Ukt),Vkt=new Td(qU,!1),Bkt=new Td(u_t,!1),p$=(Zk(),hX),f$=new Td(JU,p$),zkt=(wD(),w0),Rkt=new Td(d_t,zkt),m$=new Td(YU,0),Lkt=new Td(f_t,0),EAt=zOt,TAt=OZ,PAt=S0,IAt=S0,OAt=v0,v$=(ED(),Y8),eAt=kZ,g$=kZ,Jkt=kZ,h$=Y8,YAt=M0,XAt=A0,WAt=A0,qAt=A0,QAt=j0,rjt=M0,njt=M0,hAt=(TO(),V8),_At=V8,vAt=X0,S$=B8,hjt=Q0,gjt=Z0,vjt=Q0,j$=Z0,Tjt=Q0,N$=Z0,bjt=FOt,Cjt=jZ,Rjt=Q0,zjt=Z0,Pjt=Q0,Fjt=Z0,kjt=Z0,Djt=Z0,jjt=Z0}function Lpt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be=0,xe,Se,Ce,we,Te,Ee,De,Oe,ke;for(j=t,te=0,ie=j.length;te0&&(e.a[de.p]=be++)}for(Te=0,M=n,ne=0,ae=M.length;ne0;){for(de=(zp(he.b>0),H(he.a.Xb(he.c=--he.b),12)),me=0,l=new L(de.e);l.a0&&(de.j==(XR(),M5)?(e.a[de.p]=Te,++Te):(e.a[de.p]=Te+oe+ce,++ce))}Te+=ce}for(pe=new ho,g=new Pd,A=t,ee=0,re=A.length;eed.b&&(d.b=ge)):de.i.c==ye&&(ged.c&&(d.c=ge));for(zS(_,0,_.length,null),we=vS(F9,NB,28,_.length,15,1),i=vS(F9,NB,28,Te+1,15,1),y=0;y<_.length;y++)we[y]=_[y].f,i[we[y]]=1;for(o=0,b=0;b0;)T%2>0&&(a+=Oe[T+1]),T=(T-1)/2|0,++Oe[T];for(D=vS(XNt,jz,374,_.length*2,0,1),S=0;S<_.length;S++)D[2*S]=new Rv(_[S],_[S].e,_[S].b,(mx(),l2)),D[2*S+1]=new Rv(_[S],_[S].b,_[S].e,c2);for(zS(D,0,D.length,null),se=0,C=0;C0&&Py(ee.f),qP(y,Ezt)!=null&&(l=H(qP(y,Ezt),347),pe=l.Tg(y),Xd(y,r.Math.max(y.g,pe.a),r.Math.max(y.f,pe.b)));if(ae=H(qP(t,Q6),107),h=t.g-(ae.b+ae.c),m=t.f-(ae.d+ae.a),ge.bh(`Available Child Area: (`+h+`|`+m+`)`),xA(t,x6,h/m),O1e(t,a,i.eh(re)),H(qP(t,D8),280)==dBt&&(Jft(t),Xd(t,ae.b+z(Ip(qP(t,w6)))+ae.c,ae.d+z(Ip(qP(t,C6)))+ae.a)),ge.bh(`Executed layout algorithm: `+Lp(qP(t,b6))+` on node `+t.k),H(qP(t,D8),280)==c7){if(h<0||m<0)throw R(new Xs(`The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. `+t.k));for(hS(t,w6)||hS(t,C6)||Jft(t),_=z(Ip(qP(t,w6))),g=z(Ip(qP(t,C6))),ge.bh(`Desired Child Area: (`+_+`|`+g+`)`),se=h/_,ce=m/g,oe=r.Math.min(se,r.Math.min(ce,z(Ip(qP(t,Czt))))),xA(t,O8,oe),ge.bh(t.k+` -- Local Scale Factor (X|Y): (`+se+`|`+ce+`)`),S=H(qP(t,T6),21),o=0,s=0,oe'?`:hm(Ibt,e)?`'(?<' or '(? toIndex: `,$mt=`, toIndex: `,eht=`Index: `,tht=`, Size: `,uV=`org.eclipse.elk.alg.common`,dV={50:1},nht=`org.eclipse.elk.alg.common.compaction`,rht=`Scanline/EventHandler`,fV=`org.eclipse.elk.alg.common.compaction.oned`,iht=`CNode belongs to another CGroup.`,aht=`ISpacingsHandler/1`,pV=`The `,oht=` instance has been finished already.`,sht=`The direction `,cht=` is not supported by the CGraph instance.`,mV=`OneDimensionalCompactor`,lht=`OneDimensionalCompactor/lambda$0$Type`,uht=`Quadruplet`,dht=`ScanlineConstraintCalculator`,fht=`ScanlineConstraintCalculator/ConstraintsScanlineHandler`,pht=`ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type`,mht=`ScanlineConstraintCalculator/Timestamp`,hV=`ScanlineConstraintCalculator/lambda$0$Type`,gV={178:1,46:1},_V=`org.eclipse.elk.alg.common.compaction.options`,vV=`org.eclipse.elk.core.data`,yV=`org.eclipse.elk.polyomino.traversalStrategy`,hht=`org.eclipse.elk.polyomino.lowLevelSort`,bV=`org.eclipse.elk.polyomino.highLevelSort`,ght=`org.eclipse.elk.polyomino.fill`,xV={134:1},SV=`polyomino`,CV=`org.eclipse.elk.alg.common.networksimplex`,wV={183:1,3:1,4:1},TV=`org.eclipse.elk.alg.common.nodespacing`,EV=`org.eclipse.elk.alg.common.nodespacing.cellsystem`,DV=`CENTER`,OV={217:1,336:1},kV={3:1,4:1,5:1,603:1},AV=`LEFT`,jV=`RIGHT`,_ht=`Vertical alignment cannot be null`,vht=`BOTTOM`,MV=`org.eclipse.elk.alg.common.nodespacing.internal`,NV=`UNDEFINED`,PV=.01,FV=`org.eclipse.elk.alg.common.nodespacing.internal.algorithm`,IV=`LabelPlacer/lambda$0$Type`,LV=`LabelPlacer/lambda$1$Type`,yht=`portRatioOrPosition`,RV=`org.eclipse.elk.alg.common.overlaps`,bht=`DOWN`,zV=`org.eclipse.elk.alg.common.polyomino`,BV=`NORTH`,xht=`EAST`,Sht=`SOUTH`,VV=`WEST`,HV=`org.eclipse.elk.alg.common.polyomino.structures`,UV=`Direction`,WV=`Grid is only of size `,GV=`. Requested point (`,KV=`) is out of bounds.`,qV=` Given center based coordinates were (`,JV=`org.eclipse.elk.graph.properties`,YV=`IPropertyHolder`,XV={3:1,96:1,137:1},ZV=`org.eclipse.elk.alg.common.spore`,Cht=`org.eclipse.elk.alg.common.utils`,QV={205:1},$V=`org.eclipse.elk.core`,eH=`Connected Components Compaction`,tH=`org.eclipse.elk.alg.disco`,nH=`org.eclipse.elk.alg.disco.graph`,rH=`org.eclipse.elk.alg.disco.options`,iH=`CompactionStrategy`,aH=`org.eclipse.elk.disco.componentCompaction.strategy`,oH=`org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm`,sH=`org.eclipse.elk.disco.debug.discoGraph`,cH=`org.eclipse.elk.disco.debug.discoPolys`,lH=`componentCompaction`,uH=`org.eclipse.elk.disco`,dH=`org.eclipse.elk.spacing.componentComponent`,fH=`org.eclipse.elk.edge.thickness`,pH=`org.eclipse.elk.aspectRatio`,mH=`org.eclipse.elk.padding`,hH=`org.eclipse.elk.alg.disco.transform`,gH=1.5707963267948966,_H=17976931348623157e292,vH={3:1,4:1,5:1,198:1},yH={3:1,6:1,4:1,5:1,100:1,115:1},bH=`org.eclipse.elk.alg.force`,wht=`ComponentsProcessor`,Tht=`ComponentsProcessor/1`,xH=`ElkGraphImporter/lambda$0$Type`,SH=`org.eclipse.elk.alg.force.graph`,Eht=`Component Layout`,CH=`org.eclipse.elk.alg.force.model`,wH=`org.eclipse.elk.force.model`,TH=`org.eclipse.elk.force.iterations`,EH=`org.eclipse.elk.force.repulsivePower`,DH=`org.eclipse.elk.force.temperature`,OH=.001,kH=`org.eclipse.elk.force.repulsion`,AH=`org.eclipse.elk.alg.force.options`,jH=1.600000023841858,MH=`org.eclipse.elk.force`,NH=`org.eclipse.elk.priority`,PH=`org.eclipse.elk.spacing.nodeNode`,FH=`org.eclipse.elk.spacing.edgeLabel`,IH=`org.eclipse.elk.randomSeed`,LH=`org.eclipse.elk.separateConnectedComponents`,RH=`org.eclipse.elk.interactive`,zH=`org.eclipse.elk.portConstraints`,BH=`org.eclipse.elk.edgeLabels.inline`,VH=`org.eclipse.elk.omitNodeMicroLayout`,HH=`org.eclipse.elk.nodeSize.fixedGraphSize`,UH=`org.eclipse.elk.nodeSize.options`,WH=`org.eclipse.elk.nodeSize.constraints`,GH=`org.eclipse.elk.nodeLabels.placement`,KH=`org.eclipse.elk.portLabels.placement`,qH=`org.eclipse.elk.topdownLayout`,JH=`org.eclipse.elk.topdown.scaleFactor`,YH=`org.eclipse.elk.topdown.hierarchicalNodeWidth`,XH=`org.eclipse.elk.topdown.hierarchicalNodeAspectRatio`,ZH=`org.eclipse.elk.topdown.nodeType`,Dht=`origin`,Oht=`random`,kht=`boundingBox.upLeft`,Aht=`boundingBox.lowRight`,jht=`org.eclipse.elk.stress.fixed`,Mht=`org.eclipse.elk.stress.desiredEdgeLength`,Nht=`org.eclipse.elk.stress.dimension`,Pht=`org.eclipse.elk.stress.epsilon`,Fht=`org.eclipse.elk.stress.iterationLimit`,QH=`org.eclipse.elk.stress`,Iht=`ELK Stress`,$H=`org.eclipse.elk.nodeSize.minimum`,eU=`org.eclipse.elk.alg.force.stress`,Lht=`Layered layout`,tU=`org.eclipse.elk.alg.layered`,nU=`org.eclipse.elk.alg.layered.compaction.components`,rU=`org.eclipse.elk.alg.layered.compaction.oned`,Rht=`org.eclipse.elk.alg.layered.compaction.oned.algs`,iU=`org.eclipse.elk.alg.layered.compaction.recthull`,aU=`org.eclipse.elk.alg.layered.components`,oU=`NONE`,zht=`MODEL_ORDER`,sU={3:1,6:1,4:1,9:1,5:1,126:1},Bht={3:1,6:1,4:1,5:1,150:1,100:1,115:1},cU=`org.eclipse.elk.alg.layered.compound`,lU={47:1},uU=`org.eclipse.elk.alg.layered.graph`,Vht=` -> `,Hht=`Not supported by LGraph`,Uht=`Port side is undefined`,Wht={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},dU={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},Ght={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},Kht=`([{"' \r -`,qht=`)]}"' \r -`,Jht=`The given string contains parts that cannot be parsed as numbers.`,fU=`org.eclipse.elk.core.math`,Yht={3:1,4:1,140:1,214:1,423:1},Xht={3:1,4:1,107:1,214:1,423:1},pU=`org.eclipse.elk.alg.layered.graph.transform`,Zht=`ElkGraphImporter`,Qht=`ElkGraphImporter/lambda$1$Type`,$ht=`ElkGraphImporter/lambda$2$Type`,egt=`ElkGraphImporter/lambda$4$Type`,mU=`org.eclipse.elk.alg.layered.intermediate`,tgt=`Node margin calculation`,ngt=`ONE_SIDED_GREEDY_SWITCH`,rgt=`TWO_SIDED_GREEDY_SWITCH`,igt=`No implementation is available for the layout processor `,agt=`IntermediateProcessorStrategy`,ogt=`Node '`,sgt=`FIRST_SEPARATE`,cgt=`LAST_SEPARATE`,lgt=`Odd port side processing`,hU=`org.eclipse.elk.alg.layered.intermediate.compaction`,gU=`org.eclipse.elk.alg.layered.intermediate.greedyswitch`,_U=`org.eclipse.elk.alg.layered.p3order.counting`,vU={230:1},yU=`org.eclipse.elk.alg.layered.intermediate.loops`,bU=`org.eclipse.elk.alg.layered.intermediate.loops.ordering`,xU=`org.eclipse.elk.alg.layered.intermediate.loops.routing`,SU=`org.eclipse.elk.alg.layered.intermediate.preserveorder`,CU=`org.eclipse.elk.alg.layered.intermediate.wrapping`,wU=`org.eclipse.elk.alg.layered.options`,TU=`INTERACTIVE`,ugt=`GREEDY`,dgt=`DEPTH_FIRST`,fgt=`EDGE_LENGTH`,pgt=`SELF_LOOPS`,mgt=`firstTryWithInitialOrder`,hgt=`org.eclipse.elk.layered.directionCongruency`,ggt=`org.eclipse.elk.layered.feedbackEdges`,EU=`org.eclipse.elk.layered.interactiveReferencePoint`,_gt=`org.eclipse.elk.layered.mergeEdges`,vgt=`org.eclipse.elk.layered.mergeHierarchyEdges`,ygt=`org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides`,bgt=`org.eclipse.elk.layered.portSortingStrategy`,xgt=`org.eclipse.elk.layered.thoroughness`,Sgt=`org.eclipse.elk.layered.unnecessaryBendpoints`,Cgt=`org.eclipse.elk.layered.generatePositionAndLayerIds`,wgt=`org.eclipse.elk.layered.cycleBreaking.strategy`,DU=`org.eclipse.elk.layered.layering.strategy`,Tgt=`org.eclipse.elk.layered.layering.layerConstraint`,Egt=`org.eclipse.elk.layered.layering.layerChoiceConstraint`,Dgt=`org.eclipse.elk.layered.layering.layerId`,Ogt=`org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth`,OU=`org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor`,kgt=`org.eclipse.elk.layered.layering.nodePromotion.strategy`,kU=`org.eclipse.elk.layered.layering.nodePromotion.maxIterations`,Agt=`org.eclipse.elk.layered.layering.coffmanGraham.layerBound`,AU=`org.eclipse.elk.layered.crossingMinimization.strategy`,jgt=`org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder`,Mgt=`org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness`,Ngt=`org.eclipse.elk.layered.crossingMinimization.semiInteractive`,Pgt=`org.eclipse.elk.layered.crossingMinimization.inLayerPredOf`,Fgt=`org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf`,Igt=`org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint`,Lgt=`org.eclipse.elk.layered.crossingMinimization.positionId`,Rgt=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold`,zgt=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.type`,jU=`org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type`,MU=`org.eclipse.elk.layered.nodePlacement.strategy`,NU=`org.eclipse.elk.layered.nodePlacement.favorStraightEdges`,Bgt=`org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening`,Vgt=`org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment`,Hgt=`org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening`,PU=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility`,Ugt=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default`,Wgt=`org.eclipse.elk.layered.edgeRouting.selfLoopDistribution`,Ggt=`org.eclipse.elk.layered.edgeRouting.selfLoopOrdering`,FU=`org.eclipse.elk.layered.edgeRouting.splines.mode`,IU=`org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor`,Kgt=`org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth`,qgt=`org.eclipse.elk.layered.spacing.baseValue`,Jgt=`org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers`,Ygt=`org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers`,Xgt=`org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers`,Zgt=`org.eclipse.elk.layered.priority.direction`,Qgt=`org.eclipse.elk.layered.priority.shortness`,$gt=`org.eclipse.elk.layered.priority.straightness`,e_t=`org.eclipse.elk.layered.compaction.connectedComponents`,t_t=`org.eclipse.elk.layered.compaction.postCompaction.strategy`,n_t=`org.eclipse.elk.layered.compaction.postCompaction.constraints`,LU=`org.eclipse.elk.layered.highDegreeNodes.treatment`,r_t=`org.eclipse.elk.layered.highDegreeNodes.threshold`,i_t=`org.eclipse.elk.layered.highDegreeNodes.treeHeight`,RU=`org.eclipse.elk.layered.wrapping.strategy`,zU=`org.eclipse.elk.layered.wrapping.additionalEdgeSpacing`,BU=`org.eclipse.elk.layered.wrapping.correctionFactor`,VU=`org.eclipse.elk.layered.wrapping.cutting.strategy`,a_t=`org.eclipse.elk.layered.wrapping.cutting.cuts`,o_t=`org.eclipse.elk.layered.wrapping.cutting.msd.freedom`,HU=`org.eclipse.elk.layered.wrapping.validify.strategy`,UU=`org.eclipse.elk.layered.wrapping.validify.forbiddenIndices`,WU=`org.eclipse.elk.layered.wrapping.multiEdge.improveCuts`,GU=`org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty`,s_t=`org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges`,c_t=`org.eclipse.elk.layered.edgeLabels.sideSelection`,l_t=`org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy`,KU=`org.eclipse.elk.layered.considerModelOrder.strategy`,qU=`org.eclipse.elk.layered.considerModelOrder.portModelOrder`,u_t=`org.eclipse.elk.layered.considerModelOrder.noModelOrder`,JU=`org.eclipse.elk.layered.considerModelOrder.components`,d_t=`org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy`,YU=`org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence`,f_t=`org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence`,p_t=`layering`,m_t=`layering.minWidth`,h_t=`layering.nodePromotion`,XU=`crossingMinimization`,g_t=`org.eclipse.elk.hierarchyHandling`,__t=`crossingMinimization.greedySwitch`,v_t=`nodePlacement`,y_t=`nodePlacement.bk`,b_t=`edgeRouting`,ZU=`org.eclipse.elk.edgeRouting`,QU=`spacing`,x_t=`priority`,S_t=`compaction`,C_t=`compaction.postCompaction`,w_t=`Specifies whether and how post-process compaction is applied.`,T_t=`highDegreeNodes`,E_t=`wrapping`,D_t=`wrapping.cutting`,O_t=`wrapping.validify`,k_t=`wrapping.multiEdge`,A_t=`edgeLabels`,$U=`considerModelOrder`,j_t=`org.eclipse.elk.spacing.commentComment`,M_t=`org.eclipse.elk.spacing.commentNode`,N_t=`org.eclipse.elk.spacing.edgeEdge`,P_t=`org.eclipse.elk.spacing.edgeNode`,F_t=`org.eclipse.elk.spacing.labelLabel`,I_t=`org.eclipse.elk.spacing.labelPortHorizontal`,L_t=`org.eclipse.elk.spacing.labelPortVertical`,R_t=`org.eclipse.elk.spacing.labelNode`,eW=`org.eclipse.elk.spacing.nodeSelfLoop`,tW=`org.eclipse.elk.spacing.portPort`,z_t=`org.eclipse.elk.spacing.individual`,nW=`org.eclipse.elk.port.borderOffset`,rW=`org.eclipse.elk.noLayout`,iW=`org.eclipse.elk.port.side`,aW=`org.eclipse.elk.debugMode`,oW=`org.eclipse.elk.alignment`,B_t=`org.eclipse.elk.insideSelfLoops.activate`,V_t=`org.eclipse.elk.insideSelfLoops.yo`,sW=`org.eclipse.elk.direction`,cW=`org.eclipse.elk.nodeLabels.padding`,H_t=`org.eclipse.elk.portLabels.nextToPortIfPossible`,lW=`org.eclipse.elk.portLabels.treatAsGroup`,uW=`org.eclipse.elk.portAlignment.default`,U_t=`org.eclipse.elk.portAlignment.north`,W_t=`org.eclipse.elk.portAlignment.south`,G_t=`org.eclipse.elk.portAlignment.west`,K_t=`org.eclipse.elk.portAlignment.east`,dW=`org.eclipse.elk.contentAlignment`,q_t=`org.eclipse.elk.junctionPoints`,J_t=`org.eclipse.elk.edgeLabels.placement`,Y_t=`org.eclipse.elk.port.index`,X_t=`org.eclipse.elk.commentBox`,Z_t=`org.eclipse.elk.hypernode`,Q_t=`org.eclipse.elk.port.anchor`,$_t=`org.eclipse.elk.partitioning.activate`,evt=`org.eclipse.elk.partitioning.partition`,fW=`org.eclipse.elk.position`,tvt=`org.eclipse.elk.margins`,nvt=`org.eclipse.elk.spacing.portsSurrounding`,pW=`org.eclipse.elk.interactiveLayout`,mW=`org.eclipse.elk.core.util`,rvt={3:1,4:1,5:1,601:1},ivt=`NETWORK_SIMPLEX`,avt=`SIMPLE`,hW={106:1,47:1},gW=`org.eclipse.elk.alg.layered.p1cycles`,_W=`org.eclipse.elk.alg.layered.p2layers`,vW={413:1,230:1},yW={846:1,3:1,4:1},bW=`org.eclipse.elk.alg.layered.p3order`,xW=`org.eclipse.elk.alg.layered.p4nodes`,SW={3:1,4:1,5:1,854:1},CW=1e-5,wW=`org.eclipse.elk.alg.layered.p4nodes.bk`,ovt=`org.eclipse.elk.alg.layered.p5edges`,TW=`org.eclipse.elk.alg.layered.p5edges.orthogonal`,EW=`org.eclipse.elk.alg.layered.p5edges.orthogonal.direction`,DW=1e-6,OW=`org.eclipse.elk.alg.layered.p5edges.splines`,kW=.09999999999999998,AW=1e-8,jW=4.71238898038469,MW=3.141592653589793,NW=`org.eclipse.elk.alg.mrtree`,PW=.10000000149011612,FW=`SUPER_ROOT`,IW=`org.eclipse.elk.alg.mrtree.graph`,svt=-17976931348623157e292,LW=`org.eclipse.elk.alg.mrtree.intermediate`,cvt=`Processor compute fanout`,RW={3:1,6:1,4:1,5:1,534:1,100:1,115:1},lvt=`Set neighbors in level`,zW=`org.eclipse.elk.alg.mrtree.options`,uvt=`DESCENDANTS`,dvt=`org.eclipse.elk.mrtree.compaction`,fvt=`org.eclipse.elk.mrtree.edgeEndTextureLength`,pvt=`org.eclipse.elk.mrtree.treeLevel`,mvt=`org.eclipse.elk.mrtree.positionConstraint`,hvt=`org.eclipse.elk.mrtree.weighting`,gvt=`org.eclipse.elk.mrtree.edgeRoutingMode`,BW=`org.eclipse.elk.mrtree.searchOrder`,_vt=`Position Constraint`,VW=`org.eclipse.elk.mrtree`,vvt=`org.eclipse.elk.tree`,yvt=`Processor arrange level`,HW=`org.eclipse.elk.alg.mrtree.p2order`,UW=`org.eclipse.elk.alg.mrtree.p4route`,bvt=`org.eclipse.elk.alg.radial`,WW=6.283185307179586,xvt=`Before`,Svt=5e-324,GW=`After`,Cvt=`org.eclipse.elk.alg.radial.intermediate`,wvt=`COMPACTION`,Tvt=`org.eclipse.elk.alg.radial.intermediate.compaction`,Evt={3:1,4:1,5:1,100:1},Dvt=`org.eclipse.elk.alg.radial.intermediate.optimization`,Ovt=`No implementation is available for the layout option `,KW=`org.eclipse.elk.alg.radial.options`,kvt=`org.eclipse.elk.radial.centerOnRoot`,Avt=`org.eclipse.elk.radial.orderId`,jvt=`org.eclipse.elk.radial.radius`,qW=`org.eclipse.elk.radial.rotate`,Mvt=`org.eclipse.elk.radial.compactor`,JW=`org.eclipse.elk.radial.compactionStepSize`,Nvt=`org.eclipse.elk.radial.sorter`,Pvt=`org.eclipse.elk.radial.wedgeCriteria`,Fvt=`org.eclipse.elk.radial.optimizationCriteria`,YW=`org.eclipse.elk.radial.rotation.targetAngle`,Ivt=`org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace`,XW=`org.eclipse.elk.radial.rotation.outgoingEdgeAngles`,Lvt=`Compaction`,Rvt=`rotation`,ZW=`org.eclipse.elk.radial`,zvt=`org.eclipse.elk.alg.radial.p1position.wedge`,QW=`org.eclipse.elk.alg.radial.sorting`,Bvt=5.497787143782138,$W=3.9269908169872414,eG=2.356194490192345,Vvt=`org.eclipse.elk.alg.rectpacking`,tG=`org.eclipse.elk.alg.rectpacking.intermediate`,nG=`org.eclipse.elk.alg.rectpacking.options`,rG=`org.eclipse.elk.rectpacking.trybox`,iG=`org.eclipse.elk.rectpacking.currentPosition`,Hvt=`org.eclipse.elk.rectpacking.desiredPosition`,aG=`org.eclipse.elk.rectpacking.inNewRow`,oG=`org.eclipse.elk.rectpacking.widthApproximation.strategy`,sG=`org.eclipse.elk.rectpacking.widthApproximation.targetWidth`,cG=`org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal`,lG=`org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift`,uG=`org.eclipse.elk.rectpacking.packing.strategy`,dG=`org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation`,Uvt=`org.eclipse.elk.rectpacking.packing.compaction.iterations`,Wvt=`org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy`,Gvt=`widthApproximation`,Kvt=`Compaction Strategy`,qvt=`packing.compaction`,fG=`org.eclipse.elk.rectpacking`,pG=`org.eclipse.elk.alg.rectpacking.p1widthapproximation`,mG=`org.eclipse.elk.alg.rectpacking.p2packing`,Jvt=`No Compaction`,Yvt=`org.eclipse.elk.alg.rectpacking.p3whitespaceelimination`,hG=`org.eclipse.elk.alg.rectpacking.util`,gG=`No implementation available for `,_G=`org.eclipse.elk.alg.spore`,vG=`org.eclipse.elk.alg.spore.options`,yG=`org.eclipse.elk.sporeCompaction`,Xvt=`org.eclipse.elk.underlyingLayoutAlgorithm`,Zvt=`org.eclipse.elk.processingOrder.treeConstruction`,Qvt=`org.eclipse.elk.processingOrder.spanningTreeCostFunction`,$vt=`org.eclipse.elk.processingOrder.preferredRoot`,eyt=`org.eclipse.elk.processingOrder.rootSelection`,tyt=`org.eclipse.elk.structure.structureExtractionStrategy`,nyt=`org.eclipse.elk.compaction.compactionStrategy`,ryt=`org.eclipse.elk.compaction.orthogonal`,iyt=`org.eclipse.elk.overlapRemoval.maxIterations`,ayt=`org.eclipse.elk.overlapRemoval.runScanline`,bG=`processingOrder`,oyt=`overlapRemoval`,xG=`org.eclipse.elk.sporeOverlap`,syt=`org.eclipse.elk.alg.spore.p1structure`,SG=`org.eclipse.elk.alg.spore.p2processingorder`,cyt=`org.eclipse.elk.alg.spore.p3execution`,lyt=`Topdown Layout`,uyt=`Invalid index: `,CG=`org.eclipse.elk.core.alg`,wG={341:1},TG={295:1},EG=`Make sure its type is registered with the `,dyt=` utility class.`,DG=`true`,OG=`false`,fyt=`Couldn't clone property '`,kG=.05,AG=`org.eclipse.elk.core.options`,pyt=1.2999999523162842,jG=`org.eclipse.elk.box`,myt=`org.eclipse.elk.expandNodes`,hyt=`org.eclipse.elk.box.packingMode`,gyt=`org.eclipse.elk.algorithm`,_yt=`org.eclipse.elk.resolvedAlgorithm`,vyt=`org.eclipse.elk.bendPoints`,yyt=`org.eclipse.elk.labelManager`,byt=`org.eclipse.elk.scaleFactor`,xyt=`org.eclipse.elk.childAreaWidth`,Syt=`org.eclipse.elk.childAreaHeight`,Cyt=`org.eclipse.elk.animate`,MG=`org.eclipse.elk.animTimeFactor`,wyt=`org.eclipse.elk.layoutAncestors`,Tyt=`org.eclipse.elk.maxAnimTime`,Eyt=`org.eclipse.elk.minAnimTime`,Dyt=`org.eclipse.elk.progressBar`,Oyt=`org.eclipse.elk.validateGraph`,kyt=`org.eclipse.elk.validateOptions`,Ayt=`org.eclipse.elk.zoomToFit`,jyt=`org.eclipse.elk.font.name`,Myt=`org.eclipse.elk.font.size`,Nyt=`org.eclipse.elk.topdown.sizeApproximator`,NG=`org.eclipse.elk.topdown.scaleCap`,PG=`org.eclipse.elk.edge.type`,Pyt=`partitioning`,Fyt=`nodeLabels`,FG=`portAlignment`,Iyt=`nodeSize`,Lyt=`port`,Ryt=`portLabels`,IG=`topdown`,zyt=`insideSelfLoops`,LG=`org.eclipse.elk.fixed`,Byt=`org.eclipse.elk.random`,Vyt={3:1,34:1,22:1,347:1},Hyt=`port must have a parent node to calculate the port side`,Uyt=`The edge needs to have exactly one edge section. Found: `,RG=`org.eclipse.elk.core.util.adapters`,zG=`org.eclipse.emf.ecore`,BG=`org.eclipse.elk.graph`,Wyt=`EMapPropertyHolder`,Gyt=`ElkBendPoint`,Kyt=`ElkGraphElement`,qyt=`ElkConnectableShape`,Jyt=`ElkEdge`,Yyt=`ElkEdgeSection`,Xyt=`EModelElement`,Zyt=`ENamedElement`,Qyt=`ElkLabel`,$yt=`ElkNode`,ebt=`ElkPort`,tbt={94:1,93:1},VG=`org.eclipse.emf.common.notify.impl`,HG=`The feature '`,UG=`' is not a valid changeable feature`,nbt=`Expecting null`,WG=`' is not a valid feature`,GG=`The feature ID`,rbt=` is not a valid feature ID`,KG=32768,ibt={110:1,94:1,93:1,58:1,54:1,99:1},qG=`org.eclipse.emf.ecore.impl`,JG=`org.eclipse.elk.graph.impl`,YG=`Recursive containment not allowed for `,XG=`The datatype '`,ZG=`' is not a valid classifier`,abt=`The value '`,QG={195:1,3:1,4:1},obt=`The class '`,$G=`http://www.eclipse.org/elk/ElkGraph`,sbt=`property`,eK=`value`,tK=`source`,nK=`properties`,cbt=`identifier`,lbt=`height`,ubt=`width`,rK=`parent`,dbt=`text`,fbt=`children`,pbt=`hierarchical`,mbt=`sources`,iK=`targets`,hbt=`sections`,aK=`bendPoints`,gbt=`outgoingShape`,_bt=`incomingShape`,vbt=`outgoingSections`,ybt=`incomingSections`,oK=`org.eclipse.emf.common.util`,sK=`Severe implementation error in the Json to ElkGraph importer.`,cK=`id`,lK=`org.eclipse.elk.graph.json`,bbt=`Unhandled parameter types: `,xbt=`startPoint`,Sbt=`An edge must have at least one source and one target (edge id: '`,uK=`').`,Cbt=`Referenced edge section does not exist: `,wbt=` (edge id: '`,Tbt=`target`,Ebt=`sourcePoint`,Dbt=`targetPoint`,dK=`group`,fK=`name`,Obt=`connectableShape cannot be null`,kbt=`edge cannot be null`,Abt=`Passed edge is not 'simple'.`,pK=`org.eclipse.elk.graph.util`,mK=`The 'no duplicates' constraint is violated`,jbt=`targetIndex=`,hK=`, size=`,gK=`sourceIndex=`,_K={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},vK={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},yK=`logging`,Mbt=`measureExecutionTime`,Nbt=`parser.parse.1`,Pbt=`parser.parse.2`,Fbt=`parser.next.1`,bK=`parser.next.2`,Ibt=`parser.next.3`,Lbt=`parser.next.4`,xK=`parser.factor.1`,Rbt=`parser.factor.2`,zbt=`parser.factor.3`,Bbt=`parser.factor.4`,Vbt=`parser.factor.5`,Hbt=`parser.factor.6`,Ubt=`parser.atom.1`,Wbt=`parser.atom.2`,SK=`parser.atom.3`,Gbt=`parser.atom.4`,Kbt=`parser.atom.5`,qbt=`parser.cc.1`,CK=`parser.cc.2`,Jbt=`parser.cc.3`,Ybt=`parser.cc.5`,Xbt=`parser.cc.6`,Zbt=`parser.cc.7`,Qbt=`parser.cc.8`,wK=`parser.ope.1`,$bt=`parser.ope.2`,ext=`parser.ope.3`,TK=`parser.descape.1`,txt=`parser.descape.2`,EK=`parser.descape.3`,nxt=`parser.descape.4`,rxt=`parser.descape.5`,DK=`parser.process.1`,ixt=`parser.quantifier.1`,OK=`parser.quantifier.2`,axt=`parser.quantifier.3`,oxt=`parser.quantifier.4`,sxt=`parser.quantifier.5`,kK=`org.eclipse.emf.common.notify`,AK={424:1,686:1},jK={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},MK={378:1,152:1},NK=`index=`,PK={3:1,4:1,5:1,129:1},FK={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},IK={3:1,6:1,4:1,5:1,198:1},cxt={3:1,4:1,5:1,173:1,379:1},LK=`;/?:@&=+$,`,lxt=`invalid authority: `,RK=`EAnnotation`,uxt=`ETypedElement`,zK=`EStructuralFeature`,dxt=`EAttribute`,fxt=`EClassifier`,pxt=`EEnumLiteral`,mxt=`EGenericType`,hxt=`EOperation`,gxt=`EParameter`,_xt=`EReference`,vxt=`ETypeParameter`,BK=`org.eclipse.emf.ecore.util`,yxt={79:1},bxt={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},xxt=`org.eclipse.emf.ecore.util.FeatureMap$Entry`,VK=8192,HK=2048,UK=`byte`,WK=`char`,GK=`double`,KK=`float`,qK=`int`,JK=`long`,YK=`short`,Sxt=`java.lang.Object`,XK={3:1,4:1,5:1,254:1},Cxt={3:1,4:1,5:1,688:1},wxt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},ZK={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},QK=`mixed`,$K=`http:///org/eclipse/emf/ecore/util/ExtendedMetaData`,eq=`kind`,tq={3:1,4:1,5:1,689:1},nq={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},rq={20:1,31:1,56:1,16:1,15:1,61:1,71:1},iq={51:1,128:1,287:1},aq={76:1,343:1},oq=`The value of type '`,sq=`' must be of type '`,cq=1352,lq=`http://www.eclipse.org/emf/2002/Ecore`,uq=-32768,dq=`constraints`,fq=`baseType`,pq=`getEStructuralFeature`,Txt=`getFeatureID`,mq=`feature`,Ext=`getOperationID`,Dxt=`operation`,Oxt=`defaultValue`,kxt=`eTypeParameters`,Axt=`isInstance`,jxt=`getEEnumLiteral`,Mxt=`eContainingClass`,hq={57:1},Nxt={3:1,4:1,5:1,124:1},Pxt=`org.eclipse.emf.ecore.resource`,Fxt={94:1,93:1,599:1,2034:1},Ixt=`org.eclipse.emf.ecore.resource.impl`,Lxt=`unspecified`,gq=`simple`,_q=`attribute`,Rxt=`attributeWildcard`,vq=`element`,yq=`elementWildcard`,bq=`collapse`,xq=`itemType`,Sq=`namespace`,Cq=`##targetNamespace`,wq=`whiteSpace`,zxt=`wildcards`,Tq=`http://www.eclipse.org/emf/2003/XMLType`,Eq=`##any`,Dq=`uninitialized`,Oq=`The multiplicity constraint is violated`,kq=`org.eclipse.emf.ecore.xml.type`,Bxt=`ProcessingInstruction`,Vxt=`SimpleAnyType`,Hxt=`XMLTypeDocumentRoot`,Aq=`org.eclipse.emf.ecore.xml.type.impl`,jq=`INF`,Mq=`processing`,Nq=`ENTITIES_._base`,Pq=`minLength`,Uxt=`ENTITY`,Fq=`NCName`,Wxt=`IDREFS_._base`,Iq=`integer`,Lq=`token`,Rq=`pattern`,Gxt=`[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*`,Kxt=`\\i\\c*`,qxt=`[\\i-[:]][\\c-[:]]*`,Jxt=`nonPositiveInteger`,zq=`maxInclusive`,Bq=`NMTOKEN`,Yxt=`NMTOKENS_._base`,Xxt=`nonNegativeInteger`,Vq=`minInclusive`,Zxt=`normalizedString`,Qxt=`unsignedByte`,$xt=`unsignedInt`,Hq=`18446744073709551615`,eSt=`unsignedShort`,tSt=`processingInstruction`,Uq=`org.eclipse.emf.ecore.xml.type.internal`,Wq=1114111,nSt=`Internal Error: shorthands: \\u`,Gq=`xml:isDigit`,rSt=`xml:isWord`,Kq=`xml:isSpace`,qq=`xml:isNameChar`,iSt=`xml:isInitialNameChar`,aSt=`09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩`,oSt=`AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣`,sSt=`Private Use`,Jq=`ASSIGNED`,Yq=`\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾＀￯`,cSt=`UNASSIGNED`,Xq={3:1,122:1},lSt=`org.eclipse.emf.ecore.xml.type.util`,Zq={3:1,4:1,5:1,381:1},uSt=`org.eclipse.xtext.xbase.lib`,Qq=`Cannot add elements to a Range`,dSt=`Cannot set elements in a Range`,fSt=`Cannot remove elements from a Range`,pSt=`user.agent`,X,$q,mSt,hSt=-1;r.goog=r.goog||{},r.goog.global=r.goog.global||r,$q={},J(1,null,{},a),X.Fb=function(e){return uxe(this,e)},X.Gb=function(){return this.Rm},X.Hb=function(){return cp(this)},X.Ib=function(){var e;return Fc(sD(this))+`@`+(e=zw(this)>>>0,e.toString(16))},X.equals=function(e){return this.Fb(e)},X.hashCode=function(){return this.Hb()},X.toString=function(){return this.Ib()};var gSt,_St,vSt;J(297,1,{297:1,2124:1},jE),X.ve=function(e){var t=new jE;return t.i=4,t.c=e>1?cb(this,e-1):this,t},X.we=function(){return Rp(this),this.b},X.xe=function(){return Fc(this)},X.ye=function(){return Rp(this),this.k},X.ze=function(){return!!(this.i&4)},X.Ae=function(){return!!(this.i&1)},X.Ib=function(){return FC(this)},X.i=0;var ySt=1,eJ=U(Dz,`Object`,1),bSt=U(Dz,`Class`,297);J(2096,1,Oz),U(kz,`Optional`,2096),J(1191,2096,Oz,o),X.Fb=function(e){return e===this},X.Hb=function(){return 2040732332},X.Ib=function(){return`Optional.absent()`},X.Jb=function(e){return D_(e),vs(),tJ};var tJ;U(kz,`Absent`,1191),J(636,1,{},qme),U(kz,`Joiner`,636);var xSt=Lh(kz,`Predicate`);J(589,1,{178:1,589:1,3:1,46:1},Zr),X.Mb=function(e){return _Ye(this,e)},X.Lb=function(e){return _Ye(this,e)},X.Fb=function(e){var t;return V(e,589)?(t=H(e,589),Vet(this.a,t.a)):!1},X.Hb=function(){return VE(this.a)+306654252},X.Ib=function(){return O5e(this.a)},U(kz,`Predicates/AndPredicate`,589),J(419,2096,{419:1,3:1},Qr),X.Fb=function(e){var t;return V(e,419)?(t=H(e,419),zD(this.a,t.a)):!1},X.Hb=function(){return 1502476572+zw(this.a)},X.Ib=function(){return Xpt+this.a+`)`},X.Jb=function(e){return new Qr(oy(e.Kb(this.a),`the Function passed to Optional.transform() must not return null.`))},U(kz,`Present`,419),J(204,1,Nz),X.Nb=function(e){Yg(this,e)},X.Qb=function(){Jme()},U(Pz,`UnmodifiableIterator`,204),J(2076,204,Fz),X.Qb=function(){Jme()},X.Rb=function(e){throw R(new Po)},X.Wb=function(e){throw R(new Po)},U(Pz,`UnmodifiableListIterator`,2076),J(399,2076,Fz),X.Ob=function(){return this.c0},X.Pb=function(){if(this.c>=this.d)throw R(new Io);return this.Xb(this.c++)},X.Tb=function(){return this.c},X.Ub=function(){if(this.c<=0)throw R(new Io);return this.Xb(--this.c)},X.Vb=function(){return this.c-1},X.c=0,X.d=0,U(Pz,`AbstractIndexedListIterator`,399),J(713,204,Nz),X.Ob=function(){return zKe(this)},X.Pb=function(){return FUe(this)},X.e=1,U(Pz,`AbstractIterator`,713),J(2084,1,{229:1}),X.Zb=function(){return this.f||=this.ac()},X.Fb=function(e){return BYe(this,e)},X.Hb=function(){return zw(this.Zb())},X.dc=function(){return this.gc()==0},X.ec=function(){return Cg(this)},X.Ib=function(){return FO(this.Zb())},U(Pz,`AbstractMultimap`,2084),J(742,2084,Iz),X.$b=function(){YGe(this)},X._b=function(e){return tge(this,e)},X.ac=function(){return new Jc(this,this.c)},X.ic=function(e){return this.hc()},X.bc=function(){return new zf(this,this.c)},X.jc=function(){return this.mc(this.hc())},X.kc=function(){return new gme(this)},X.lc=function(){return J6e(this.c.vc().Nc(),new l,64,this.d)},X.cc=function(e){return Zx(this,e)},X.fc=function(e){return vD(this,e)},X.gc=function(){return this.d},X.mc=function(e){return iy(),new Yi(e)},X.nc=function(){return new hme(this)},X.oc=function(){return J6e(this.c.Cc().Nc(),new s,64,this.d)},X.pc=function(e,t){return new MVe(this,e,t,null)},X.d=0,U(Pz,`AbstractMapBasedMultimap`,742),J(1696,742,Iz),X.hc=function(){return new dS(this.a)},X.jc=function(){return iy(),iy(),WJ},X.cc=function(e){return H(Zx(this,e),15)},X.fc=function(e){return H(vD(this,e),15)},X.Zb=function(){return ty(this)},X.Fb=function(e){return BYe(this,e)},X.qc=function(e){return H(Zx(this,e),15)},X.rc=function(e){return H(vD(this,e),15)},X.mc=function(e){return SPe(H(e,15))},X.pc=function(e,t){return ERe(this,e,H(t,15),null)},U(Pz,`AbstractListMultimap`,1696),J(748,1,Lz),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return this.c.Ob()||this.e.Ob()},X.Pb=function(){var e;return this.e.Ob()||(e=H(this.c.Pb(),44),this.b=e.ld(),this.a=H(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},X.Qb=function(){this.e.Qb(),H(rv(this.a),16).dc()&&this.c.Qb(),--this.d.d},U(Pz,`AbstractMapBasedMultimap/Itr`,748),J(1129,748,Lz,hme),X.sc=function(e,t){return t},U(Pz,`AbstractMapBasedMultimap/1`,1129),J(1130,1,{},s),X.Kb=function(e){return H(e,16).Nc()},U(Pz,`AbstractMapBasedMultimap/1methodref$spliterator$Type`,1130),J(1131,748,Lz,gme),X.sc=function(e,t){return new Zc(e,t)},U(Pz,`AbstractMapBasedMultimap/2`,1131);var nJ=Lh(Rz,`Map`);J(2065,1,zz),X.wc=function(e){CT(this,e)},X.yc=function(e,t,n){return MO(this,e,t,n)},X.$b=function(){this.vc().$b()},X.tc=function(e){return x2e(this,e)},X._b=function(e){return!!l6e(this,e,!1)},X.uc=function(e){for(var t,n=this.vc().Kc(),r;n.Ob();)if(t=H(n.Pb(),44),r=t.md(),cd(e)===cd(r)||e!=null&&zD(e,r))return!0;return!1},X.Fb=function(e){var t,n,r;if(e===this)return!0;if(!V(e,85)||(r=H(e,85),this.gc()!=r.gc()))return!1;for(n=r.vc().Kc();n.Ob();)if(t=H(n.Pb(),44),!this.tc(t))return!1;return!0},X.xc=function(e){return sd(l6e(this,e,!1))},X.Hb=function(){return dE(this.vc())},X.dc=function(){return this.gc()==0},X.ec=function(){return new Ii(this)},X.zc=function(e,t){throw R(new Ys(`Put not supported on this map`))},X.Ac=function(e){gT(this,e)},X.Bc=function(e){return sd(l6e(this,e,!0))},X.gc=function(){return this.vc().gc()},X.Ib=function(){return y6e(this)},X.Cc=function(){return new Ui(this)},U(Rz,`AbstractMap`,2065),J(2085,2065,zz),X.bc=function(){return new a_e(this)},X.vc=function(){return sje(this)},X.ec=function(){return this.g||=this.bc()},X.Cc=function(){return this.i||=new el(this)},U(Pz,`Maps/ViewCachingAbstractMap`,2085),J(402,2085,zz,Jc),X.xc=function(e){return PWe(this,e)},X.Bc=function(e){return pXe(this,e)},X.$b=function(){this.d==this.e.c?this.e.$b():Hh(new fAe(this))},X._b=function(e){return vZe(this.d,e)},X.Ec=function(){return new sle(this)},X.Dc=function(){return this.Ec()},X.Fb=function(e){return this===e||zD(this.d,e)},X.Hb=function(){return zw(this.d)},X.ec=function(){return this.e.ec()},X.gc=function(){return this.d.gc()},X.Ib=function(){return FO(this.d)},U(Pz,`AbstractMapBasedMultimap/AsMap`,402);var rJ=Lh(Dz,`Iterable`);J(31,1,Bz),X.Jc=function(e){Px(this,e)},X.Lc=function(){return this.Oc()},X.Nc=function(){return new Nb(this,0)},X.Oc=function(){return new Yh(null,this.Nc())},X.Fc=function(e){throw R(new Ys(`Add not supported on this collection`))},X.Gc=function(e){return Ww(this,e)},X.$b=function(){LNe(this)},X.Hc=function(e){return QO(this,e,!1)},X.Ic=function(e){return $T(this,e)},X.dc=function(){return this.gc()==0},X.Mc=function(e){return QO(this,e,!0)},X.Pc=function(){return uje(this)},X.Qc=function(e){return JA(this,e)},X.Ib=function(){return rN(this)},U(Rz,`AbstractCollection`,31);var iJ=Lh(Rz,`Set`);J(Vz,31,Hz),X.Nc=function(){return new Nb(this,1)},X.Fb=function(e){return Z$e(this,e)},X.Hb=function(){return dE(this)},U(Rz,`AbstractSet`,Vz),J(2068,Vz,Hz),U(Pz,`Sets/ImprovedAbstractSet`,2068),J(2069,2068,Hz),X.$b=function(){this.Rc().$b()},X.Hc=function(e){return S$e(this,e)},X.dc=function(){return this.Rc().dc()},X.Mc=function(e){var t;return this.Hc(e)&&V(e,44)?(t=H(e,44),this.Rc().ec().Mc(t.ld())):!1},X.gc=function(){return this.Rc().gc()},U(Pz,`Maps/EntrySet`,2069),J(1127,2069,Hz,sle),X.Hc=function(e){return yZe(this.a.d.vc(),e)},X.Kc=function(){return new fAe(this.a)},X.Rc=function(){return this.a},X.Mc=function(e){var t;return yZe(this.a.d.vc(),e)?(t=H(rv(H(e,44)),44),Jx(this.a.e,t.ld()),!0):!1},X.Nc=function(){return ah(this.a.d.vc().Nc(),new cle(this.a))},U(Pz,`AbstractMapBasedMultimap/AsMap/AsMapEntries`,1127),J(1128,1,{},cle),X.Kb=function(e){return YBe(this.a,H(e,44))},U(Pz,`AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type`,1128),J(746,1,Lz,fAe),X.Nb=function(e){Yg(this,e)},X.Pb=function(){var e=H(this.b.Pb(),44);return this.a=H(e.md(),16),YBe(this.c,e)},X.Ob=function(){return this.b.Ob()},X.Qb=function(){Mm(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},U(Pz,`AbstractMapBasedMultimap/AsMap/AsMapIterator`,746),J(542,2068,Hz,a_e),X.$b=function(){this.b.$b()},X.Hc=function(e){return this.b._b(e)},X.Jc=function(e){D_(e),this.b.wc(new wle(e))},X.dc=function(){return this.b.dc()},X.Kc=function(){return new ks(this.b.vc().Kc())},X.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},X.gc=function(){return this.b.gc()},U(Pz,`Maps/KeySet`,542),J(327,542,Hz,zf),X.$b=function(){var e;Hh((e=this.b.vc().Kc(),new Jge(this,e)))},X.Ic=function(e){return this.b.ec().Ic(e)},X.Fb=function(e){return this===e||zD(this.b.ec(),e)},X.Hb=function(){return zw(this.b.ec())},X.Kc=function(){var e=this.b.vc().Kc();return new Jge(this,e)},X.Mc=function(e){var t,n=0;return t=H(this.b.Bc(e),16),t&&(n=t.gc(),t.$b(),this.a.d-=n),n>0},X.Nc=function(){return this.b.ec().Nc()},U(Pz,`AbstractMapBasedMultimap/KeySet`,327),J(747,1,Lz,Jge),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return this.c.Ob()},X.Pb=function(){return this.a=H(this.c.Pb(),44),this.a.ld()},X.Qb=function(){var e;Mm(!!this.a),e=H(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},U(Pz,`AbstractMapBasedMultimap/KeySet/1`,747),J(503,402,{85:1,133:1},Up),X.bc=function(){return this.Sc()},X.ec=function(){return this.Uc()},X.Sc=function(){return new Kc(this.c,this.Wc())},X.Tc=function(){return this.Wc().Tc()},X.Uc=function(){return this.b||=this.Sc()},X.Vc=function(){return this.Wc().Vc()},X.Wc=function(){return H(this.d,133)},U(Pz,`AbstractMapBasedMultimap/SortedAsMap`,503),J(446,503,Uz,Wp),X.bc=function(){return new qc(this.a,H(H(this.d,133),139))},X.Sc=function(){return new qc(this.a,H(H(this.d,133),139))},X.ec=function(){var e=this.b;return H(e||(this.b=new qc(this.a,H(H(this.d,133),139))),277)},X.Uc=function(){var e=this.b;return H(e||(this.b=new qc(this.a,H(H(this.d,133),139))),277)},X.Wc=function(){return H(H(this.d,133),139)},X.Xc=function(e){return H(H(this.d,133),139).Xc(e)},X.Yc=function(e){return H(H(this.d,133),139).Yc(e)},X.Zc=function(e,t){return new Wp(this.a,H(H(this.d,133),139).Zc(e,t))},X.$c=function(e){return H(H(this.d,133),139).$c(e)},X._c=function(e){return H(H(this.d,133),139)._c(e)},X.ad=function(e,t){return new Wp(this.a,H(H(this.d,133),139).ad(e,t))},U(Pz,`AbstractMapBasedMultimap/NavigableAsMap`,446),J(502,327,Zpt,Kc),X.Nc=function(){return this.b.ec().Nc()},U(Pz,`AbstractMapBasedMultimap/SortedKeySet`,502),J(401,502,Qpt,qc),U(Pz,`AbstractMapBasedMultimap/NavigableKeySet`,401),J(551,31,Bz,MVe),X.Fc=function(e){var t,n;return BO(this),n=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,n&&em(this)),t},X.Gc=function(e){var t,n,r;return!e.dc()&&(r=(BO(this),this.d.gc()),t=this.d.Gc(e),t&&(n=this.d.gc(),this.f.d+=n-r,r==0&&em(this)),t)},X.$b=function(){var e=(BO(this),this.d.gc());e!=0&&(this.d.$b(),this.f.d-=e,cg(this))},X.Hc=function(e){return BO(this),this.d.Hc(e)},X.Ic=function(e){return BO(this),this.d.Ic(e)},X.Fb=function(e){return e===this||(BO(this),zD(this.d,e))},X.Hb=function(){return BO(this),zw(this.d)},X.Kc=function(){return BO(this),new nke(this)},X.Mc=function(e){var t;return BO(this),t=this.d.Mc(e),t&&(--this.f.d,cg(this)),t},X.gc=function(){return Hbe(this)},X.Nc=function(){return BO(this),this.d.Nc()},X.Ib=function(){return BO(this),FO(this.d)},U(Pz,`AbstractMapBasedMultimap/WrappedCollection`,551);var aJ=Lh(Rz,`List`);J(744,551,{20:1,31:1,16:1,15:1},Sje),X.jd=function(e){Lw(this,e)},X.Nc=function(){return BO(this),this.d.Nc()},X.bd=function(e,t){var n;BO(this),n=this.d.dc(),H(this.d,15).bd(e,t),++this.a.d,n&&em(this)},X.cd=function(e,t){var n,r,i;return!t.dc()&&(i=(BO(this),this.d.gc()),n=H(this.d,15).cd(e,t),n&&(r=this.d.gc(),this.a.d+=r-i,i==0&&em(this)),n)},X.Xb=function(e){return BO(this),H(this.d,15).Xb(e)},X.dd=function(e){return BO(this),H(this.d,15).dd(e)},X.ed=function(){return BO(this),new Xxe(this)},X.fd=function(e){return BO(this),new ePe(this,e)},X.gd=function(e){var t;return BO(this),t=H(this.d,15).gd(e),--this.a.d,cg(this),t},X.hd=function(e,t){return BO(this),H(this.d,15).hd(e,t)},X.kd=function(e,t){return BO(this),ERe(this.a,this.e,H(this.d,15).kd(e,t),this.b?this.b:this)},U(Pz,`AbstractMapBasedMultimap/WrappedList`,744),J(1126,744,{20:1,31:1,16:1,15:1,59:1},ZCe),U(Pz,`AbstractMapBasedMultimap/RandomAccessWrappedList`,1126),J(628,1,Lz,nke),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return Zv(this),this.b.Ob()},X.Pb=function(){return Zv(this),this.b.Pb()},X.Qb=function(){Hf(this)},U(Pz,`AbstractMapBasedMultimap/WrappedCollection/WrappedIterator`,628),J(745,628,Wz,Xxe,ePe),X.Qb=function(){Hf(this)},X.Rb=function(e){var t=Hbe(this.a)==0;(Zv(this),H(this.b,128)).Rb(e),++this.a.a.d,t&&em(this.a)},X.Sb=function(){return(Zv(this),H(this.b,128)).Sb()},X.Tb=function(){return(Zv(this),H(this.b,128)).Tb()},X.Ub=function(){return(Zv(this),H(this.b,128)).Ub()},X.Vb=function(){return(Zv(this),H(this.b,128)).Vb()},X.Wb=function(e){(Zv(this),H(this.b,128)).Wb(e)},U(Pz,`AbstractMapBasedMultimap/WrappedList/WrappedListIterator`,745),J(743,551,Zpt,eTe),X.Nc=function(){return BO(this),this.d.Nc()},U(Pz,`AbstractMapBasedMultimap/WrappedSortedSet`,743),J(1125,743,Qpt,Fxe),U(Pz,`AbstractMapBasedMultimap/WrappedNavigableSet`,1125),J(1124,551,Hz,tTe),X.Nc=function(){return BO(this),this.d.Nc()},U(Pz,`AbstractMapBasedMultimap/WrappedSet`,1124),J(1133,1,{},l),X.Kb=function(e){return AVe(H(e,44))},U(Pz,`AbstractMapBasedMultimap/lambda$1$Type`,1133),J(1132,1,{},$r),X.Kb=function(e){return new Zc(this.a,e)},U(Pz,`AbstractMapBasedMultimap/lambda$2$Type`,1132);var oJ=Lh(Rz,`Map/Entry`);J(358,1,Gz),X.Fb=function(e){var t;return V(e,44)?(t=H(e,44),Y_(this.ld(),t.ld())&&Y_(this.md(),t.md())):!1},X.Hb=function(){var e=this.ld(),t=this.md();return(e==null?0:zw(e))^(t==null?0:zw(t))},X.nd=function(e){throw R(new Po)},X.Ib=function(){return this.ld()+`=`+this.md()},U(Pz,$pt,358),J(2086,31,Bz),X.$b=function(){this.od().$b()},X.Hc=function(e){var t;return V(e,44)?(t=H(e,44),WLe(this.od(),t.ld(),t.md())):!1},X.Mc=function(e){var t;return V(e,44)?(t=H(e,44),GLe(this.od(),t.ld(),t.md())):!1},X.gc=function(){return this.od().d},U(Pz,`Multimaps/Entries`,2086),J(749,2086,Bz,ei),X.Kc=function(){return this.a.kc()},X.od=function(){return this.a},X.Nc=function(){return this.a.lc()},U(Pz,`AbstractMultimap/Entries`,749),J(750,749,Hz,bs),X.Nc=function(){return this.a.lc()},X.Fb=function(e){return a5e(this,e)},X.Hb=function(){return mqe(this)},U(Pz,`AbstractMultimap/EntrySet`,750),J(751,31,Bz,ti),X.$b=function(){this.a.$b()},X.Hc=function(e){return QYe(this.a,e)},X.Kc=function(){return this.a.nc()},X.gc=function(){return this.a.d},X.Nc=function(){return this.a.oc()},U(Pz,`AbstractMultimap/Values`,751),J(2087,31,{849:1,20:1,31:1,16:1}),X.Jc=function(e){D_(e),Pv(this).Jc(new kle(e))},X.Nc=function(){var e=Pv(this).Nc();return J6e(e,new _,64|e.yd()&1296,this.a.d)},X.Fc=function(e){return Xme(),!0},X.Gc=function(e){return D_(this),D_(e),V(e,552)?ex(H(e,849)):!e.dc()&&ZUe(this,e.Kc())},X.Hc=function(e){var t=H(MD(ty(this.a),e),16);return(t?t.gc():0)>0},X.Fb=function(e){return ftt(this,e)},X.Hb=function(){return zw(Pv(this))},X.dc=function(){return Pv(this).dc()},X.Mc=function(e){return cP(this,e,1)>0},X.Ib=function(){return FO(Pv(this))},U(Pz,`AbstractMultiset`,2087),J(2089,2068,Hz),X.$b=function(){YGe(this.a.a)},X.Hc=function(e){var t,n;return V(e,504)?(n=H(e,425),H(n.a.md(),16).gc()<=0?!1:(t=mIe(this.a,n.a.ld()),t==H(n.a.md(),16).gc())):!1},X.Mc=function(e){var t,n,r,i;return V(e,504)&&(n=H(e,425),t=n.a.ld(),r=H(n.a.md(),16).gc(),r!=0)?(i=this.a,lP(i,t,r)):!1},U(Pz,`Multisets/EntrySet`,2089),J(1139,2089,Hz,fle),X.Kc=function(){return new As(sje(ty(this.a.a)).Kc())},X.gc=function(){return ty(this.a.a).gc()},U(Pz,`AbstractMultiset/EntrySet`,1139),J(627,742,Iz),X.hc=function(){return this.pd()},X.jc=function(){return this.qd()},X.cc=function(e){return this.rd(e)},X.fc=function(e){return this.sd(e)},X.Zb=function(){return this.f||=this.ac()},X.qd=function(){return iy(),iy(),KJ},X.Fb=function(e){return BYe(this,e)},X.rd=function(e){return H(Zx(this,e),21)},X.sd=function(e){return H(vD(this,e),21)},X.mc=function(e){return iy(),new uc(H(e,21))},X.pc=function(e,t){return new tTe(this,e,H(t,21))},U(Pz,`AbstractSetMultimap`,627),J(1723,627,Iz),X.hc=function(){return new zc(this.b)},X.pd=function(){return new zc(this.b)},X.jc=function(){return $Me(new zc(this.b))},X.qd=function(){return $Me(new zc(this.b))},X.cc=function(e){return H(H(Zx(this,e),21),87)},X.rd=function(e){return H(H(Zx(this,e),21),87)},X.fc=function(e){return H(H(vD(this,e),21),87)},X.sd=function(e){return H(H(vD(this,e),21),87)},X.mc=function(e){return V(e,277)?$Me(H(e,277)):(iy(),new OCe(H(e,87)))},X.Zb=function(){return this.f||=V(this.c,139)?new Wp(this,H(this.c,139)):V(this.c,133)?new Up(this,H(this.c,133)):new Jc(this,this.c)},X.pc=function(e,t){return V(t,277)?new Fxe(this,e,H(t,277)):new eTe(this,e,H(t,87))},U(Pz,`AbstractSortedSetMultimap`,1723),J(1724,1723,Iz),X.Zb=function(){var e=this.f;return H(H(e||(this.f=V(this.c,139)?new Wp(this,H(this.c,139)):V(this.c,133)?new Up(this,H(this.c,133)):new Jc(this,this.c)),133),139)},X.ec=function(){var e=this.i;return H(H(e||(this.i=V(this.c,139)?new qc(this,H(this.c,139)):V(this.c,133)?new Kc(this,H(this.c,133)):new zf(this,this.c)),87),277)},X.bc=function(){return V(this.c,139)?new qc(this,H(this.c,139)):V(this.c,133)?new Kc(this,H(this.c,133)):new zf(this,this.c)},U(Pz,`AbstractSortedKeySortedSetMultimap`,1724),J(2109,1,{2046:1}),X.Fb=function(e){return y3e(this,e)},X.Hb=function(){var e;return dE((e=this.g,e||(this.g=new mle(this))))},X.Ib=function(){var e;return y6e((e=this.f,e||(this.f=new Uf(this))))},U(Pz,`AbstractTable`,2109),J(679,Vz,Hz,mle),X.$b=function(){Zme()},X.Hc=function(e){var t,n;return V(e,479)?(t=H(e,697),n=H(MD(OMe(this.a),md(t.c.e,t.b)),85),!!n&&yZe(n.vc(),new Zc(md(t.c.c,t.a),oS(t.c,t.b,t.a)))):!1},X.Kc=function(){return CPe(this.a)},X.Mc=function(e){var t,n;return V(e,479)?(t=H(e,697),n=H(MD(OMe(this.a),md(t.c.e,t.b)),85),!!n&&bZe(n.vc(),new Zc(md(t.c.c,t.a),oS(t.c,t.b,t.a)))):!1},X.gc=function(){return aAe(this.a)},X.Nc=function(){return pRe(this.a)},U(Pz,`AbstractTable/CellSet`,679),J(2025,31,Bz,hle),X.$b=function(){Zme()},X.Hc=function(e){return k6e(this.a,e)},X.Kc=function(){return wPe(this.a)},X.gc=function(){return aAe(this.a)},X.Nc=function(){return BLe(this.a)},U(Pz,`AbstractTable/Values`,2025),J(1697,1696,Iz),U(Pz,`ArrayListMultimapGwtSerializationDependencies`,1697),J(520,1697,Iz,dc,Tb),X.hc=function(){return new dS(this.a)},X.a=0,U(Pz,`ArrayListMultimap`,520),J(678,2109,{678:1,2046:1,3:1},R9e),U(Pz,`ArrayTable`,678),J(2021,399,Fz,_Ce),X.Xb=function(e){return new ME(this.a,e)},U(Pz,`ArrayTable/1`,2021),J(2022,1,{},lle),X.td=function(e){return new ME(this.a,e)},U(Pz,`ArrayTable/1methodref$getCell$Type`,2022),J(2110,1,{697:1}),X.Fb=function(e){var t;return e===this?!0:V(e,479)?(t=H(e,697),Y_(md(this.c.e,this.b),md(t.c.e,t.b))&&Y_(md(this.c.c,this.a),md(t.c.c,t.a))&&Y_(oS(this.c,this.b,this.a),oS(t.c,t.b,t.a))):!1},X.Hb=function(){return uD(K(B(eJ,1),jz,1,5,[md(this.c.e,this.b),md(this.c.c,this.a),oS(this.c,this.b,this.a)]))},X.Ib=function(){return`(`+md(this.c.e,this.b)+`,`+md(this.c.c,this.a)+`)=`+oS(this.c,this.b,this.a)},U(Pz,`Tables/AbstractCell`,2110),J(479,2110,{479:1,697:1},ME),X.a=0,X.b=0,X.d=0,U(Pz,`ArrayTable/2`,479),J(2024,1,{},ule),X.td=function(e){return pUe(this.a,e)},U(Pz,`ArrayTable/2methodref$getValue$Type`,2024),J(2023,399,Fz,vCe),X.Xb=function(e){return pUe(this.a,e)},U(Pz,`ArrayTable/3`,2023),J(2077,2065,zz),X.$b=function(){Hh(this.kc())},X.vc=function(){return new oi(this)},X.lc=function(){return new VNe(this.kc(),this.gc())},U(Pz,`Maps/IteratorBasedAbstractMap`,2077),J(842,2077,zz),X.$b=function(){throw R(new Po)},X._b=function(e){return nge(this.c,e)},X.kc=function(){return new Wf(this,this.c.b.c.gc())},X.lc=function(){return Bh(this.c.b.c.gc(),16,new dle(this))},X.xc=function(e){var t=H(Sm(this.c,e),17);return t?this.vd(t.a):null},X.dc=function(){return this.c.b.c.dc()},X.ec=function(){return cje(this.c)},X.zc=function(e,t){var n=H(Sm(this.c,e),17);if(!n)throw R(new Ks(this.ud()+` `+e+` not in `+cje(this.c)));return this.wd(n.a,t)},X.Bc=function(e){throw R(new Po)},X.gc=function(){return this.c.b.c.gc()},U(Pz,`ArrayTable/ArrayMap`,842),J(2020,1,{},dle),X.td=function(e){return AMe(this.a,e)},U(Pz,`ArrayTable/ArrayMap/0methodref$getEntry$Type`,2020),J(2018,358,Gz,Vge),X.ld=function(){return twe(this.a,this.b)},X.md=function(){return this.a.vd(this.b)},X.nd=function(e){return this.a.wd(this.b,e)},X.b=0,U(Pz,`ArrayTable/ArrayMap/1`,2018),J(2019,399,Fz,Wf),X.Xb=function(e){return AMe(this.a,e)},U(Pz,`ArrayTable/ArrayMap/2`,2019),J(2017,842,zz,Kg),X.ud=function(){return`Column`},X.vd=function(e){return oS(this.b,this.a,e)},X.wd=function(e,t){return qJe(this.b,this.a,e,t)},X.a=0,U(Pz,`ArrayTable/Row`,2017),J(843,842,zz,Uf),X.vd=function(e){return new Kg(this.a,e)},X.zc=function(e,t){return H(t,85),Qme()},X.wd=function(e,t){return H(t,85),$me()},X.ud=function(){return`Row`},U(Pz,`ArrayTable/RowMap`,843),J(1157,1,Jz,Hge),X.Ad=function(e){return!!(this.a.yd()&-262&e)},X.yd=function(){return this.a.yd()&-262},X.zd=function(){return this.a.zd()},X.Nb=function(e){this.a.Nb(new Wge(e,this.b))},X.Bd=function(e){return this.a.Bd(new Uge(e,this.b))},U(Pz,`CollectSpliterators/1`,1157),J(1158,1,Yz,Uge),X.Cd=function(e){this.a.Cd(this.b.Kb(e))},U(Pz,`CollectSpliterators/1/lambda$0$Type`,1158),J(1159,1,Yz,Wge),X.Cd=function(e){this.a.Cd(this.b.Kb(e))},U(Pz,`CollectSpliterators/1/lambda$1$Type`,1159),J(1154,1,Jz,OEe),X.Ad=function(e){return!!((16464|this.b)&e)},X.yd=function(){return 16464|this.b},X.zd=function(){return this.a.zd()},X.Nb=function(e){this.a.Qe(new Kge(e,this.c))},X.Bd=function(e){return this.a.Re(new Gge(e,this.c))},X.b=0,U(Pz,`CollectSpliterators/1WithCharacteristics`,1154),J(1155,1,Xz,Gge),X.Dd=function(e){this.a.Cd(this.b.td(e))},U(Pz,`CollectSpliterators/1WithCharacteristics/lambda$0$Type`,1155),J(1156,1,Xz,Kge),X.Dd=function(e){this.a.Cd(this.b.td(e))},U(Pz,`CollectSpliterators/1WithCharacteristics/lambda$1$Type`,1156),J(1150,1,Jz),X.Ad=function(e){return(this.a&e)!=0},X.yd=function(){return this.a},X.zd=function(){return this.e&&(this.b=oSe(this.b,this.e.zd())),oSe(this.b,0)},X.Nb=function(e){this.e&&=(this.e.Nb(e),null),this.c.Nb(new qge(this,e)),this.b=0},X.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return pd(this.b,Zz)&&(this.b=bO(this.b,1)),!0;if(this.e=null,!this.c.Bd(new gle(this)))return!1}},X.a=0,X.b=0,U(Pz,`CollectSpliterators/FlatMapSpliterator`,1150),J(1152,1,Yz,gle),X.Cd=function(e){vEe(this.a,e)},U(Pz,`CollectSpliterators/FlatMapSpliterator/lambda$0$Type`,1152),J(1153,1,Yz,qge),X.Cd=function(e){Lv(this.a,this.b,e)},U(Pz,`CollectSpliterators/FlatMapSpliterator/lambda$1$Type`,1153),J(1151,1150,Jz,CRe),U(Pz,`CollectSpliterators/FlatMapSpliteratorOfObject`,1151),J(253,1,tmt),X.Fd=function(e){return this.Ed(H(e,253))},X.Ed=function(e){var t;return e==(fme(),CSt)?1:e==(ys(),SSt)?-1:(t=(xh(),hT(this.a,e.a)),t==0?V(this,526)==V(e,526)?0:V(this,526)?1:-1:t)},X.Id=function(){return this.a},X.Fb=function(e){return ZA(this,e)},U(Pz,`Cut`,253),J(1823,253,tmt,mme),X.Ed=function(e){return e==this?0:1},X.Gd=function(e){throw R(new Ao)},X.Hd=function(e){e.a+=`+∞)`},X.Id=function(){throw R(new qs(nmt))},X.Hb=function(){return ul(),J$e(this)},X.Jd=function(e){return!1},X.Ib=function(){return`+∞`};var SSt;U(Pz,`Cut/AboveAll`,1823),J(526,253,{253:1,526:1,3:1,34:1},ECe),X.Gd=function(e){vd((e.a+=`(`,e),this.a)},X.Hd=function(e){W_(vd(e,this.a),93)},X.Hb=function(){return~zw(this.a)},X.Jd=function(e){return xh(),hT(this.a,e)<0},X.Ib=function(){return`/`+this.a+`\\`},U(Pz,`Cut/AboveValue`,526),J(1822,253,tmt,pme),X.Ed=function(e){return e==this?0:-1},X.Gd=function(e){e.a+=`(-∞`},X.Hd=function(e){throw R(new Ao)},X.Id=function(){throw R(new qs(nmt))},X.Hb=function(){return ul(),J$e(this)},X.Jd=function(e){return!0},X.Ib=function(){return`-∞`};var CSt;U(Pz,`Cut/BelowAll`,1822),J(1824,253,tmt,DCe),X.Gd=function(e){vd((e.a+=`[`,e),this.a)},X.Hd=function(e){W_(vd(e,this.a),41)},X.Hb=function(){return zw(this.a)},X.Jd=function(e){return xh(),hT(this.a,e)<=0},X.Ib=function(){return`\\`+this.a+`/`},U(Pz,`Cut/BelowValue`,1824),J(547,1,Qz),X.Jc=function(e){Px(this,e)},X.Ib=function(){return tQe(H(oy(this,`use Optional.orNull() instead of Optional.or(null)`),20).Kc())},U(Pz,`FluentIterable`,547),J(442,547,Qz,Rd),X.Kc=function(){return new jg(Yf(this.a.Kc(),new f))},U(Pz,`FluentIterable/2`,442),J(1059,547,Qz,jxe),X.Kc=function(){return Zg(this)},U(Pz,`FluentIterable/3`,1059),J(724,399,Fz,Gf),X.Xb=function(e){return this.a[e].Kc()},U(Pz,`FluentIterable/3/1`,724),J(2070,1,{}),X.Ib=function(){return FO(this.Kd().b)},U(Pz,`ForwardingObject`,2070),J(2071,2070,rmt),X.Kd=function(){return this.Ld()},X.Jc=function(e){Px(this,e)},X.Lc=function(){return this.Oc()},X.Nc=function(){return new Nb(this,0)},X.Oc=function(){return new Yh(null,this.Nc())},X.Fc=function(e){return this.Ld(),uge()},X.Gc=function(e){return this.Ld(),dge()},X.$b=function(){this.Ld(),fge()},X.Hc=function(e){return this.Ld().Hc(e)},X.Ic=function(e){return this.Ld().Ic(e)},X.dc=function(){return this.Ld().b.dc()},X.Kc=function(){return this.Ld().Kc()},X.Mc=function(e){return this.Ld(),pge()},X.gc=function(){return this.Ld().b.gc()},X.Pc=function(){return this.Ld().Pc()},X.Qc=function(e){return this.Ld().Qc(e)},U(Pz,`ForwardingCollection`,2071),J(2078,31,imt),X.Kc=function(){return this.Od()},X.Fc=function(e){throw R(new Po)},X.Gc=function(e){throw R(new Po)},X.Md=function(){return this.c||=this.Nd()},X.$b=function(){throw R(new Po)},X.Hc=function(e){return e!=null&&QO(this,e,!1)},X.Nd=function(){switch(this.gc()){case 0:return A_(),A_(),wSt;case 1:return A_(),new dAe(D_(this.Od().Pb()));default:return new qg(this,this.Pc())}},X.Mc=function(e){throw R(new Po)},U(Pz,`ImmutableCollection`,2078),J(727,2078,imt,ppe),X.Kc=function(){return PS(this.a.Kc())},X.Hc=function(e){return e!=null&&this.a.Hc(e)},X.Ic=function(e){return this.a.Ic(e)},X.dc=function(){return this.a.dc()},X.Od=function(){return PS(this.a.Kc())},X.gc=function(){return this.a.gc()},X.Pc=function(){return this.a.Pc()},X.Qc=function(e){return this.a.Qc(e)},X.Ib=function(){return FO(this.a)},U(Pz,`ForwardingImmutableCollection`,727),J(307,2078,$z),X.Kc=function(){return this.Od()},X.ed=function(){return this.Pd(0)},X.fd=function(e){return this.Pd(e)},X.jd=function(e){Lw(this,e)},X.Nc=function(){return new Nb(this,16)},X.kd=function(e,t){return this.Qd(e,t)},X.bd=function(e,t){throw R(new Po)},X.cd=function(e,t){throw R(new Po)},X.Md=function(){return this},X.Fb=function(e){return Zet(this,e)},X.Hb=function(){return dJe(this)},X.dd=function(e){return e==null?-1:b2e(this,e)},X.Od=function(){return this.Pd(0)},X.Pd=function(e){return vp(this,e)},X.gd=function(e){throw R(new Po)},X.hd=function(e,t){throw R(new Po)},X.Qd=function(e,t){var n;return OD((n=new r_e(this),new Sb(n,e,t)))};var wSt;U(Pz,`ImmutableList`,307),J(2105,307,$z),X.Kc=function(){return PS(this.Rd().Kc())},X.kd=function(e,t){return OD(this.Rd().kd(e,t))},X.Hc=function(e){return e!=null&&this.Rd().Hc(e)},X.Ic=function(e){return this.Rd().Ic(e)},X.Fb=function(e){return zD(this.Rd(),e)},X.Xb=function(e){return md(this,e)},X.Hb=function(){return zw(this.Rd())},X.dd=function(e){return this.Rd().dd(e)},X.dc=function(){return this.Rd().dc()},X.Od=function(){return PS(this.Rd().Kc())},X.gc=function(){return this.Rd().gc()},X.Qd=function(e,t){return OD(this.Rd().kd(e,t))},X.Pc=function(){return this.Rd().Qc(vS(eJ,jz,1,this.Rd().gc(),5,1))},X.Qc=function(e){return this.Rd().Qc(e)},X.Ib=function(){return FO(this.Rd())},U(Pz,`ForwardingImmutableList`,2105),J(729,1,tB),X.vc=function(){return Tg(this)},X.wc=function(e){CT(this,e)},X.ec=function(){return cje(this)},X.yc=function(e,t,n){return MO(this,e,t,n)},X.Cc=function(){return this.Vd()},X.$b=function(){throw R(new Po)},X._b=function(e){return this.xc(e)!=null},X.uc=function(e){return this.Vd().Hc(e)},X.Td=function(){return new mpe(this)},X.Ud=function(){return new To(this)},X.Fb=function(e){return nXe(this,e)},X.Hb=function(){return Tg(this).Hb()},X.dc=function(){return this.gc()==0},X.zc=function(e,t){return Yme()},X.Bc=function(e){throw R(new Po)},X.Ib=function(){return U8e(this)},X.Vd=function(){return this.e?this.e:this.e=this.Ud()},X.c=null,X.d=null,X.e=null;var TSt;U(Pz,`ImmutableMap`,729),J(730,729,tB),X._b=function(e){return nge(this,e)},X.uc=function(e){return rl(this.b,e)},X.Sd=function(){return pZe(new ple(this))},X.Td=function(){return pZe(gv(this.b))},X.Ud=function(){return km(),new ppe(yNe(this.b))},X.Fb=function(e){return f_e(this.b,e)},X.xc=function(e){return Sm(this,e)},X.Hb=function(){return zw(this.b.c)},X.dc=function(){return this.b.c.dc()},X.gc=function(){return this.b.c.gc()},X.Ib=function(){return FO(this.b.c)},U(Pz,`ForwardingImmutableMap`,730),J(2072,2071,amt),X.Kd=function(){return this.Wd()},X.Ld=function(){return this.Wd()},X.Nc=function(){return new Nb(this,1)},X.Fb=function(e){return e===this||this.Wd().Fb(e)},X.Hb=function(){return this.Wd().Hb()},U(Pz,`ForwardingSet`,2072),J(1085,2072,amt,ple),X.Kd=function(){return hv(this.a.b)},X.Ld=function(){return hv(this.a.b)},X.Hc=function(e){if(V(e,44)&&H(e,44).ld()==null)return!1;try{return d_e(hv(this.a.b),e)}catch(e){if(e=eE(e),V(e,212))return!1;throw R(e)}},X.Wd=function(){return hv(this.a.b)},X.Qc=function(e){var t=BPe(hv(this.a.b),e);return hv(this.a.b).b.gc()=0?`+`:``)+(n/60|0),t=vxe(r.Math.abs(n)%60),(g8e(),pCt)[this.q.getDay()]+` `+mCt[this.q.getMonth()]+` `+vxe(this.q.getDate())+` `+vxe(this.q.getHours())+`:`+vxe(this.q.getMinutes())+`:`+vxe(this.q.getSeconds())+` GMT`+e+t+` `+this.q.getFullYear()};var gJ=U(Rz,`Date`,206);J(2015,206,Emt,t3e),X.a=!1,X.b=0,X.c=0,X.d=0,X.e=0,X.f=0,X.g=!1,X.i=0,X.j=0,X.k=0,X.n=0,X.o=0,X.p=0,U(`com.google.gwt.i18n.shared.impl`,`DateRecord`,2015),J(2064,1,{}),X.pe=function(){return null},X.qe=function(){return null},X.re=function(){return null},X.se=function(){return null},X.te=function(){return null},U(LB,`JSONValue`,2064),J(221,2064,{221:1},mi,ui),X.Fb=function(e){return V(e,221)?Lb(this.a,H(e,221).a):!1},X.oe=function(){return ipe},X.Hb=function(){return TPe(this.a)},X.pe=function(){return this},X.Ib=function(){var e,t,n=new Qf(`[`);for(t=0,e=this.a.length;t0&&(n.a+=`,`),vd(n,vC(this,t));return n.a+=`]`,n.a},U(LB,`JSONArray`,221),J(493,2064,{493:1},di),X.oe=function(){return ape},X.qe=function(){return this},X.Ib=function(){return lp(),``+this.a},X.a=!1;var _J,ISt;U(LB,`JSONBoolean`,493),J(997,63,gB,yme),U(LB,`JSONException`,997),J(1036,2064,{},T),X.oe=function(){return ope},X.Ib=function(){return Mz};var vJ;U(LB,`JSONNull`,1036),J(263,2064,{263:1},fi),X.Fb=function(e){return V(e,263)?this.a==H(e,263).a:!1},X.oe=function(){return npe},X.Hb=function(){return Ad(this.a)},X.re=function(){return this},X.Ib=function(){return this.a+``},X.a=0,U(LB,`JSONNumber`,263),J(190,2064,{190:1},Ps,pi),X.Fb=function(e){return V(e,190)?Lb(this.a,H(e,190).a):!1},X.oe=function(){return rpe},X.Hb=function(){return TPe(this.a)},X.se=function(){return this},X.Ib=function(){var e,t,n,r,i,a,o=new Qf(`{`);for(e=!0,a=hqe(this,vS(PJ,Kz,2,0,6,1)),n=a,r=0,i=n.length;r=0?`:`+this.c:``)+`)`},X.c=0;var XSt=U(Dz,`StackTraceElement`,319);vSt={3:1,484:1,34:1,2:1};var PJ=U(Dz,umt,2);J(111,427,{484:1},ac,oc,Zf),U(Dz,`StringBuffer`,111),J(104,427,{484:1},sc,cc,Qf),U(Dz,`StringBuilder`,104),J(702,77,Omt,the),U(Dz,`StringIndexOutOfBoundsException`,702),J(2145,1,{});var FJ;J(48,63,{3:1,103:1,63:1,82:1,48:1},Po,Ys),U(Dz,`UnsupportedOperationException`,48),J(247,242,{3:1,34:1,242:1,247:1},XD,xge),X.Fd=function(e){return qst(this,H(e,247))},X.ue=function(){return pN(ult(this))},X.Fb=function(e){var t;return this===e?!0:V(e,247)?(t=H(e,247),this.e==t.e&&qst(this,t)==0):!1},X.Hb=function(){var e;return this.b==0?this.a<54?(e=zT(this.f),this.b=Sg(Rb(e,-1)),this.b=33*this.b+Sg(Rb(Og(e,32),-1)),this.b=17*this.b+Uy(this.e),this.b):(this.b=17*qXe(this.c)+Uy(this.e),this.b):this.b},X.Ib=function(){return ult(this)},X.a=0,X.b=0,X.d=0,X.e=0,X.f=0;var ZSt,IJ,QSt,$St,eCt,LJ,tCt,nCt,rCt=U(`java.math`,`BigDecimal`,247);J(92,242,{3:1,34:1,242:1,92:1},wx,aLe,c_,c1e,nf),X.Fd=function(e){return K$e(this,H(e,92))},X.ue=function(){return pN(cpt(this,0))},X.Fb=function(e){return VQe(this,e)},X.Hb=function(){return qXe(this)},X.Ib=function(){return cpt(this,0)},X.b=-2,X.c=0,X.d=0,X.e=0;var iCt,RJ,aCt,oCt,zJ,BJ,VJ=U(`java.math`,`BigInteger`,92),sCt,cCt,HJ,UJ;J(498,2065,zz),X.$b=function(){$g(this)},X._b=function(e){return Xg(this,e)},X.uc=function(e){return rXe(this,e,this.i)||rXe(this,e,this.f)},X.vc=function(){return new Li(this)},X.xc=function(e){return N_(this,e)},X.zc=function(e,t){return fv(this,e,t)},X.Bc=function(e){return nS(this,e)},X.gc=function(){return al(this)},X.g=0,U(Rz,`AbstractHashMap`,498),J(267,Vz,Hz,Li),X.$b=function(){this.a.$b()},X.Hc=function(e){return nx(this,e)},X.Kc=function(){return new OT(this.a)},X.Mc=function(e){var t;return nx(this,e)?(t=H(e,44).ld(),this.a.Bc(t),!0):!1},X.gc=function(){return this.a.gc()},U(Rz,`AbstractHashMap/EntrySet`,267),J(268,1,Lz,OT),X.Nb=function(e){Yg(this,e)},X.Pb=function(){return Nw(this)},X.Ob=function(){return this.b},X.Qb=function(){BUe(this)},X.b=!1,X.d=0,U(Rz,`AbstractHashMap/EntrySetIterator`,268),J(426,1,Lz,Qi),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return Jl(this)},X.Pb=function(){return QNe(this)},X.Qb=function(){G_(this)},X.b=0,X.c=-1,U(Rz,`AbstractList/IteratorImpl`,426),J(98,426,Wz,Kb),X.Qb=function(){G_(this)},X.Rb=function(e){$p(this,e)},X.Sb=function(){return this.b>0},X.Tb=function(){return this.b},X.Ub=function(){return zp(this.b>0),this.a.Xb(this.c=--this.b)},X.Vb=function(){return this.b-1},X.Wb=function(e){Bp(this.c!=-1),this.a.hd(this.c,e)},U(Rz,`AbstractList/ListIteratorImpl`,98),J(244,56,uB,Sb),X.bd=function(e,t){Ab(e,this.b),this.c.bd(this.a+e,t),++this.b},X.Xb=function(e){return jb(e,this.b),this.c.Xb(this.a+e)},X.gd=function(e){var t;return jb(e,this.b),t=this.c.gd(this.a+e),--this.b,t},X.hd=function(e,t){return jb(e,this.b),this.c.hd(this.a+e,t)},X.gc=function(){return this.b},X.a=0,X.b=0,U(Rz,`AbstractList/SubList`,244),J(266,Vz,Hz,Ii),X.$b=function(){this.a.$b()},X.Hc=function(e){return this.a._b(e)},X.Kc=function(){return new Hi(this.a.vc().Kc())},X.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},X.gc=function(){return this.a.gc()},U(Rz,`AbstractMap/1`,266),J(541,1,Lz,Hi),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return this.a.Ob()},X.Pb=function(){return H(this.a.Pb(),44).ld()},X.Qb=function(){this.a.Qb()},U(Rz,`AbstractMap/1/1`,541),J(231,31,Bz,Ui),X.$b=function(){this.a.$b()},X.Hc=function(e){return this.a.uc(e)},X.Kc=function(){return new Wi(this.a.vc().Kc())},X.gc=function(){return this.a.gc()},U(Rz,`AbstractMap/2`,231),J(301,1,Lz,Wi),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return this.a.Ob()},X.Pb=function(){return H(this.a.Pb(),44).md()},X.Qb=function(){this.a.Qb()},U(Rz,`AbstractMap/2/1`,301),J(494,1,{494:1,44:1}),X.Fb=function(e){var t;return V(e,44)?(t=H(e,44),vv(this.d,t.ld())&&vv(this.e,t.md())):!1},X.ld=function(){return this.d},X.md=function(){return this.e},X.Hb=function(){return ff(this.d)^ff(this.e)},X.nd=function(e){return OTe(this,e)},X.Ib=function(){return this.d+`=`+this.e},U(Rz,`AbstractMap/AbstractEntry`,494),J(397,494,{494:1,397:1,44:1},cve),U(Rz,`AbstractMap/SimpleEntry`,397),J(2082,1,Nmt),X.Fb=function(e){var t;return V(e,44)?(t=H(e,44),vv(this.ld(),t.ld())&&vv(this.md(),t.md())):!1},X.Hb=function(){return ff(this.ld())^ff(this.md())},X.Ib=function(){return this.ld()+`=`+this.md()},U(Rz,$pt,2082),J(2090,2065,Uz),X.Xc=function(e){return rge(this.Ee(e))},X.tc=function(e){return JBe(this,e)},X._b=function(e){return kTe(this,e)},X.vc=function(){return new qi(this)},X.Tc=function(){return Kje(this.Ge())},X.Yc=function(e){return rge(this.He(e))},X.xc=function(e){var t=e;return sd(this.Fe(t))},X.$c=function(e){return rge(this.Ie(e))},X.ec=function(){return new Gi(this)},X.Vc=function(){return Kje(this.Je())},X._c=function(e){return rge(this.Ke(e))},U(Rz,`AbstractNavigableMap`,2090),J(629,Vz,Hz,qi),X.Hc=function(e){return V(e,44)&&JBe(this.b,H(e,44))},X.Kc=function(){return this.b.De()},X.Mc=function(e){var t;return V(e,44)?(t=H(e,44),this.b.Le(t)):!1},X.gc=function(){return this.b.gc()},U(Rz,`AbstractNavigableMap/EntrySet`,629),J(1146,Vz,Qpt,Gi),X.Nc=function(){return new Zl(this)},X.$b=function(){this.a.$b()},X.Hc=function(e){return kTe(this.a,e)},X.Kc=function(){return new Ki(this.a.vc().b.De())},X.Mc=function(e){return kTe(this.a,e)?(this.a.Bc(e),!0):!1},X.gc=function(){return this.a.gc()},U(Rz,`AbstractNavigableMap/NavigableKeySet`,1146),J(1147,1,Lz,Ki),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return Jl(this.a.a)},X.Pb=function(){return cwe(this.a).ld()},X.Qb=function(){HEe(this.a)},U(Rz,`AbstractNavigableMap/NavigableKeySet/1`,1147),J(2103,31,Bz),X.Fc=function(e){return fh(WM(this,e),tV),!0},X.Gc=function(e){return iv(e),dh(e!=this,`Can't add a queue to itself`),Ww(this,e)},X.$b=function(){for(;$Ue(this)!=null;);},U(Rz,`AbstractQueue`,2103),J(310,31,{4:1,20:1,31:1,16:1},If,XLe),X.Fc=function(e){return ORe(this,e),!0},X.$b=function(){Nze(this)},X.Hc=function(e){return PJe(new Dv(this),e)},X.dc=function(){return nc(this)},X.Kc=function(){return new Dv(this)},X.Mc=function(e){return MFe(new Dv(this),e)},X.gc=function(){return this.c-this.b&this.a.length-1},X.Nc=function(){return new Nb(this,272)},X.Qc=function(e){var t=this.c-this.b&this.a.length-1;return e.lengtht&&F_(e,t,null),e},X.b=0,X.c=0,U(Rz,`ArrayDeque`,310),J(459,1,Lz,Dv),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return this.a!=this.b},X.Pb=function(){return KXe(this)},X.Qb=function(){JGe(this)},X.a=0,X.b=0,X.c=-1,U(Rz,`ArrayDeque/IteratorImpl`,459),J(13,56,Pmt,go,dS,Em),X.bd=function(e,t){pg(this,e,t)},X.Fc=function(e){return Af(this,e)},X.cd=function(e,t){return lD(this,e,t)},X.Gc=function(e){return nE(this,e)},X.$b=function(){Ro(this.c,0)},X.Hc=function(e){return XS(this,e,0)!=-1},X.Jc=function(e){UC(this,e)},X.Xb=function(e){return Wh(this,e)},X.dd=function(e){return XS(this,e,0)},X.dc=function(){return this.c.length==0},X.Kc=function(){return new L(this)},X.gd=function(e){return eS(this,e)},X.Mc=function(e){return JS(this,e)},X.ce=function(e,t){hIe(this,e,t)},X.hd=function(e,t){return Fx(this,e,t)},X.gc=function(){return this.c.length},X.jd=function(e){bf(this,e)},X.Pc=function(){return Uke(this.c)},X.Qc=function(e){return rA(this,e)};var lCt=U(Rz,`ArrayList`,13);J(7,1,Lz,L),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return xf(this)},X.Pb=function(){return W(this)},X.Qb=function(){f_(this)},X.a=0,X.b=-1,U(Rz,`ArrayList/1`,7),J(2112,r.Function,{},k),X.Me=function(e,t){return uO(e,t)},J(151,56,Fmt,ec),X.Hc=function(e){return ZGe(this,e)!=-1},X.Jc=function(e){var t,n,r,i;for(iv(e),n=this.a,r=0,i=n.length;r0)throw R(new Ks(Gmt+e+` greater than `+this.e));return this.f.Te()?hFe(this.c,this.b,this.a,e,t):Eb(this.c,e,t)},X.zc=function(e,t){if(!l4e(this.c,this.f,e,this.b,this.a,this.e,this.d))throw R(new Ks(e+` outside the range `+this.b+` to `+this.e));return uYe(this.c,e,t)},X.Bc=function(e){var t=e;return l4e(this.c,this.f,t,this.b,this.a,this.e,this.d)?gFe(this.c,t):null},X.Le=function(e){return q_(this,e.ld())&&yS(this.c,e)},X.gc=function(){var e,t=this.f.Te()?this.a?Mk(this.c,this.b,!0):Mk(this.c,this.b,!1):hUe(this.c),n;if(!(t&&q_(this,t.d)&&t))return 0;for(e=0,n=new tT(this.c,this.f,this.b,this.a,this.e,this.d);Jl(n.a);n.b=H(QNe(n.a),44))++e;return e},X.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw R(new Ks(Gmt+e+sV+this.b));return this.f.Ue()?hFe(this.c,e,t,this.e,this.d):_Ie(this.c,e,t)},X.a=!1,X.d=!1,U(Rz,`TreeMap/SubMap`,631),J(304,22,Kmt,ave),X.Te=function(){return!1},X.Ue=function(){return!1};var kCt,ACt,jCt,MCt,NCt=vw(Rz,`TreeMap/SubMapType`,304,sJ,FRe,KEe);J(1143,304,Kmt,tf),X.Ue=function(){return!0},vw(Rz,`TreeMap/SubMapType/1`,1143,NCt,null,null),J(1144,304,Kmt,hSe),X.Te=function(){return!0},X.Ue=function(){return!0},vw(Rz,`TreeMap/SubMapType/2`,1144,NCt,null,null),J(1145,304,Kmt,ef),X.Te=function(){return!0},vw(Rz,`TreeMap/SubMapType/3`,1145,NCt,null,null);var PCt;J(157,Vz,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},Wo,zc,ca),X.Nc=function(){return new Zl(this)},X.Fc=function(e){return r_(this,e)},X.$b=function(){this.a.$b()},X.Hc=function(e){return this.a._b(e)},X.Kc=function(){return this.a.ec().Kc()},X.Mc=function(e){return qSe(this,e)},X.gc=function(){return this.a.gc()};var FCt=U(Rz,`TreeSet`,157);J(1082,1,{},la),X.Ve=function(e,t){return sTe(this.a,e,t)},U(qmt,`BinaryOperator/lambda$0$Type`,1082),J(1083,1,{},pue),X.Ve=function(e,t){return cTe(this.a,e,t)},U(qmt,`BinaryOperator/lambda$1$Type`,1083),J(952,1,{},de),X.Kb=function(e){return e},U(qmt,`Function/lambda$0$Type`,952),J(395,1,fB,ua),X.Mb=function(e){return!this.a.Mb(e)},U(qmt,`Predicate/lambda$2$Type`,395),J(581,1,{581:1});var ICt=U(cV,`Handler`,581);J(2107,1,Oz),X.xe=function(){return`DUMMY`},X.Ib=function(){return this.xe()};var YJ;U(cV,`Level`,2107),J(1706,2107,Oz,fe),X.xe=function(){return`INFO`},U(cV,`Level/LevelInfo`,1706),J(1843,1,{},Dpe);var LCt;U(cV,`LogManager`,1843),J(1896,1,Oz,VEe),X.b=null,U(cV,`LogRecord`,1896),J(525,1,{525:1},Rx),X.e=!1;var RCt=!1,zCt=!1,XJ=!1,BCt=!1,VCt=!1;U(cV,`Logger`,525),J(835,581,{581:1},pe),U(cV,`SimpleConsoleLogHandler`,835),J(108,22,{3:1,34:1,22:1,108:1},ove);var HCt,ZJ,QJ,$J=vw(lV,`Collector/Characteristics`,108,sJ,vIe,qEe),UCt;J(758,1,{},l_),U(lV,`CollectorImpl`,758),J(1074,1,{},me),X.Ve=function(e,t){return DZe(H(e,213),H(t,213))},U(lV,`Collectors/10methodref$merge$Type`,1074),J(1075,1,{},he),X.Kb=function(e){return ZLe(H(e,213))},U(lV,`Collectors/11methodref$toString$Type`,1075),J(1076,1,{},mue),X.Kb=function(e){return lp(),!!dxe(e)},U(lV,`Collectors/12methodref$test$Type`,1076),J(144,1,{},ge),X.Yd=function(e,t){H(e,16).Fc(t)},U(lV,`Collectors/20methodref$add$Type`,144),J(146,1,{},_e),X.Xe=function(){return new go},U(lV,`Collectors/21methodref$ctor$Type`,146),J(359,1,{},ve),X.Xe=function(){return new Uo},U(lV,`Collectors/23methodref$ctor$Type`,359),J(360,1,{},ye),X.Yd=function(e,t){n_(H(e,49),t)},U(lV,`Collectors/24methodref$add$Type`,360),J(1069,1,{},be),X.Ve=function(e,t){return S_e(H(e,15),H(t,16))},U(lV,`Collectors/4methodref$addAll$Type`,1069),J(1073,1,{},xe),X.Yd=function(e,t){tS(H(e,213),H(t,484))},U(lV,`Collectors/9methodref$add$Type`,1073),J(1072,1,{},pke),X.Xe=function(){return new KT(this.a,this.b,this.c)},U(lV,`Collectors/lambda$15$Type`,1072),J(1077,1,{},Se),X.Xe=function(){var e=new Ox;return oA(e,(lp(),!1),new go),oA(e,!0,new go),e},U(lV,`Collectors/lambda$22$Type`,1077),J(1078,1,{},hue),X.Xe=function(){return K(B(eJ,1),jz,1,5,[this.a])},U(lV,`Collectors/lambda$25$Type`,1078),J(1079,1,{},da),X.Yd=function(e,t){gAe(this.a,gw(e))},U(lV,`Collectors/lambda$26$Type`,1079),J(1080,1,{},gue),X.Ve=function(e,t){return Fje(this.a,gw(e),gw(t))},U(lV,`Collectors/lambda$27$Type`,1080),J(1081,1,{},Ce),X.Kb=function(e){return gw(e)[0]},U(lV,`Collectors/lambda$28$Type`,1081),J(728,1,{},we),X.Ve=function(e,t){return vAe(e,t)},U(lV,`Collectors/lambda$4$Type`,728),J(145,1,{},Te),X.Ve=function(e,t){return v_e(H(e,16),H(t,16))},U(lV,`Collectors/lambda$42$Type`,145),J(361,1,{},Ee),X.Ve=function(e,t){return y_e(H(e,49),H(t,49))},U(lV,`Collectors/lambda$50$Type`,361),J(362,1,{},De),X.Kb=function(e){return H(e,49)},U(lV,`Collectors/lambda$51$Type`,362),J(1068,1,{},_ue),X.Yd=function(e,t){NYe(this.a,H(e,85),t)},U(lV,`Collectors/lambda$7$Type`,1068),J(1070,1,{},Oe),X.Ve=function(e,t){return IJe(H(e,85),H(t,85),new be)},U(lV,`Collectors/lambda$8$Type`,1070),J(1071,1,{},vue),X.Kb=function(e){return jO(this.a,H(e,85))},U(lV,`Collectors/lambda$9$Type`,1071),J(550,1,{}),X.$e=function(){tv(this)},X.d=!1,U(lV,`TerminatableStream`,550),J(827,550,Xmt,Qwe),X.$e=function(){tv(this)},U(lV,`DoubleStreamImpl`,827),J(1847,736,Jz,mke),X.Re=function(e){return s2e(this,H(e,189))},X.a=null,U(lV,`DoubleStreamImpl/2`,1847),J(1848,1,nV,yue),X.Pe=function(e){Bxe(this.a,e)},U(lV,`DoubleStreamImpl/2/lambda$0$Type`,1848),J(1845,1,nV,bue),X.Pe=function(e){zxe(this.a,e)},U(lV,`DoubleStreamImpl/lambda$0$Type`,1845),J(1846,1,nV,xue),X.Pe=function(e){fk(this.a,e)},U(lV,`DoubleStreamImpl/lambda$2$Type`,1846),J(1397,735,Jz,DBe),X.Re=function(e){return sRe(this,H(e,202))},X.a=0,X.b=0,X.c=0,U(lV,`IntStream/5`,1397),J(806,550,Xmt,$we),X.$e=function(){tv(this)},X._e=function(){return ev(this),this.a},U(lV,`IntStreamImpl`,806),J(807,550,Xmt,hl),X.$e=function(){tv(this)},X._e=function(){return ev(this),pCe(),DCt},U(lV,`IntStreamImpl/Empty`,807),J(1687,1,Xz,Sue),X.Dd=function(e){Yqe(this.a,e)},U(lV,`IntStreamImpl/lambda$4$Type`,1687);var WCt=Lh(lV,`Stream`);J(26,550,{533:1,687:1,848:1},Yh),X.$e=function(){tv(this)};var eY;U(lV,`StreamImpl`,26),J(1102,500,Jz,DEe),X.Bd=function(e){for(;QHe(this);)if(this.a.Bd(e))return!0;else tv(this.b),this.b=null,this.a=null;return!1},U(lV,`StreamImpl/1`,1102),J(1103,1,Yz,Cue),X.Cd=function(e){vke(this.a,H(e,848))},U(lV,`StreamImpl/1/lambda$0$Type`,1103),J(1104,1,fB,wue),X.Mb=function(e){return n_(this.a,e)},U(lV,`StreamImpl/1methodref$add$Type`,1104),J(1105,500,Jz,aPe),X.Bd=function(e){var t;return this.a||=(t=new go,this.b.a.Nb(new Tue(t)),iy(),bf(t,this.c),new Nb(t,16)),NWe(this.a,e)},X.a=null,U(lV,`StreamImpl/5`,1105),J(1106,1,Yz,Tue),X.Cd=function(e){Af(this.a,e)},U(lV,`StreamImpl/5/2methodref$add$Type`,1106),J(737,500,Jz,bUe),X.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new Ql(this,e)););return this.b},X.b=!1,U(lV,`StreamImpl/FilterSpliterator`,737),J(1096,1,Yz,Ql),X.Cd=function(e){Cje(this.a,this.b,e)},U(lV,`StreamImpl/FilterSpliterator/lambda$0$Type`,1096),J(1091,736,Jz,hVe),X.Re=function(e){return hEe(this,H(e,189))},U(lV,`StreamImpl/MapToDoubleSpliterator`,1091),J(1095,1,Yz,lve),X.Cd=function(e){_ve(this.a,this.b,e)},U(lV,`StreamImpl/MapToDoubleSpliterator/lambda$0$Type`,1095),J(1090,735,Jz,gVe),X.Re=function(e){return gEe(this,H(e,202))},U(lV,`StreamImpl/MapToIntSpliterator`,1090),J(1094,1,Yz,uve),X.Cd=function(e){vve(this.a,this.b,e)},U(lV,`StreamImpl/MapToIntSpliterator/lambda$0$Type`,1094),J(734,500,Jz,_Ve),X.Bd=function(e){return _Ee(this,e)},U(lV,`StreamImpl/MapToObjSpliterator`,734),J(1093,1,Yz,dve),X.Cd=function(e){yve(this.a,this.b,e)},U(lV,`StreamImpl/MapToObjSpliterator/lambda$0$Type`,1093),J(1092,500,Jz,vKe),X.Bd=function(e){for(;X_e(this.b,0);){if(!this.a.Bd(new ke))return!1;this.b=bO(this.b,1)}return this.a.Bd(e)},X.b=0,U(lV,`StreamImpl/SkipSpliterator`,1092),J(1097,1,Yz,ke),X.Cd=function(e){},U(lV,`StreamImpl/SkipSpliterator/lambda$0$Type`,1097),J(626,1,Yz,Ae),X.Cd=function(e){hi(this,e)},U(lV,`StreamImpl/ValueConsumer`,626),J(1098,1,Yz,je),X.Cd=function(e){gl()},U(lV,`StreamImpl/lambda$0$Type`,1098),J(1099,1,Yz,Me),X.Cd=function(e){gl()},U(lV,`StreamImpl/lambda$1$Type`,1099),J(1100,1,{},fa),X.Ve=function(e,t){return gDe(this.a,e,t)},U(lV,`StreamImpl/lambda$4$Type`,1100),J(1101,1,Yz,fve),X.Cd=function(e){ATe(this.b,this.a,e)},U(lV,`StreamImpl/lambda$5$Type`,1101),J(1107,1,Yz,pa),X.Cd=function(e){uJe(this.a,H(e,380))},U(lV,`TerminatableStream/lambda$0$Type`,1107),J(2142,1,{}),J(2014,1,{},Ne),U(`javaemul.internal`,`ConsoleLogger`,2014);var GCt=0;J(2134,1,{}),J(1830,1,Yz,Pe),X.Cd=function(e){H(e,317)},U(uV,`BowyerWatsonTriangulation/lambda$0$Type`,1830),J(1831,1,Yz,Eue),X.Cd=function(e){Ww(this.a,H(e,317).e)},U(uV,`BowyerWatsonTriangulation/lambda$1$Type`,1831),J(1832,1,Yz,Fe),X.Cd=function(e){H(e,177)},U(uV,`BowyerWatsonTriangulation/lambda$2$Type`,1832),J(1827,1,dV,ha),X.Ne=function(e,t){return _x(this.a,H(e,177),H(t,177))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(uV,`NaiveMinST/lambda$0$Type`,1827),J(449,1,{},ma),U(uV,`NodeMicroLayout`,449),J(177,1,{177:1},$l),X.Fb=function(e){var t;return V(e,177)?(t=H(e,177),vv(this.a,t.a)&&vv(this.b,t.b)||vv(this.a,t.b)&&vv(this.b,t.a)):!1},X.Hb=function(){return ff(this.a)+ff(this.b)};var KCt=U(uV,`TEdge`,177);J(317,1,{317:1},bct),X.Fb=function(e){var t;return V(e,317)?(t=H(e,317),nC(this,t.a)&&nC(this,t.b)&&nC(this,t.c)):!1},X.Hb=function(){return ff(this.a)+ff(this.b)+ff(this.c)},U(uV,`TTriangle`,317),J(225,1,{225:1},gSe),U(uV,`Tree`,225),J(1218,1,{},GFe),U(nht,`Scanline`,1218);var qCt=Lh(nht,rht);J(1758,1,{},AWe),U(fV,`CGraph`,1758),J(316,1,{316:1},ub),X.b=0,X.c=0,X.d=0,X.g=0,X.i=0,X.k=qB,U(fV,`CGroup`,316),J(830,1,{},Jo),U(fV,`CGroup/CGroupBuilder`,830),J(60,1,{60:1},BTe),X.Ib=function(){var e;return this.j?Lp(this.j.Kb(this)):(Rp(tY),tY.o+`@`+(e=cp(this)>>>0,e.toString(16)))},X.f=0,X.i=qB;var tY=U(fV,`CNode`,60);J(829,1,{},jpe),U(fV,`CNode/CNodeBuilder`,829);var JCt;J(1590,1,{},Ie),X.ff=function(e,t){return 0},X.gf=function(e,t){return 0},U(fV,aht,1590),J(1853,1,{},Le),X.cf=function(e){var t,n,i,a,o,s,l,u,d=KB,f,p,m,h,g,_;for(i=new L(e.a.b);i.ar.d.c||r.d.c==a.d.c&&r.d.b0?e+this.n.d+this.n.a:0},X.kf=function(){var e,t,n,i,a=0;if(this.e)this.b?a=this.b.a:this.a[1][1]&&(a=this.a[1][1].kf());else if(this.g)a=IQe(this,Fj(this,null,!0));else for(t=(XC(),K(B(lY,1),lB,237,0,[oY,sY,cY])),n=0,i=t.length;n0?a+this.n.b+this.n.c:0},X.lf=function(){var e,t,n,r,i;if(this.g)for(e=Fj(this,null,!1),n=(XC(),K(B(lY,1),lB,237,0,[oY,sY,cY])),r=0,i=n.length;r0&&(i[0]+=this.d,n-=i[0]),i[2]>0&&(i[2]+=this.d,n-=i[2]),this.c.a=r.Math.max(0,n),this.c.d=t.d+e.d+(this.c.a-n)/2,i[1]=r.Math.max(i[1],n),lVe(this,sY,t.d+e.d+i[0]-(i[1]-n)/2,i)},X.b=null,X.d=0,X.e=!1,X.f=!1,X.g=!1;var Ewt=0,uY=0;U(EV,`GridContainerCell`,1538),J(471,22,{3:1,34:1,22:1,471:1},nu);var dY,fY,pY,Dwt=vw(EV,`HorizontalLabelAlignment`,471,sJ,bIe,QEe),Owt;J(314,217,{217:1,314:1},TFe,kC,VPe),X.jf=function(){return Gke(this)},X.kf=function(){return Kke(this)},X.a=0,X.c=!1;var kwt=U(EV,`LabelCell`,314);J(252,336,{217:1,336:1,252:1},$k),X.jf=function(){return uP(this)},X.kf=function(){return dP(this)},X.lf=function(){act(this)},X.mf=function(){uct(this)},X.b=0,X.c=0,X.d=!1,U(EV,`StripContainerCell`,252),J(1691,1,fB,We),X.Mb=function(e){return Ume(H(e,217))},U(EV,`StripContainerCell/lambda$0$Type`,1691),J(1692,1,{},Ge),X.Ye=function(e){return H(e,217).kf()},U(EV,`StripContainerCell/lambda$1$Type`,1692),J(1693,1,fB,Ke),X.Mb=function(e){return Wme(H(e,217))},U(EV,`StripContainerCell/lambda$2$Type`,1693),J(1694,1,{},qe),X.Ye=function(e){return H(e,217).jf()},U(EV,`StripContainerCell/lambda$3$Type`,1694),J(472,22,{3:1,34:1,22:1,472:1},ru);var mY,hY,gY,Awt=vw(EV,`VerticalLabelAlignment`,472,sJ,yIe,$Ee),jwt;J(800,1,{},Idt),X.c=0,X.d=0,X.k=0,X.s=0,X.t=0,X.v=!1,X.w=0,X.D=!1,X.F=!1,U(MV,`NodeContext`,800),J(1536,1,dV,Je),X.Ne=function(e,t){return xxe(H(e,64),H(t,64))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(MV,`NodeContext/0methodref$comparePortSides$Type`,1536),J(1537,1,dV,Ye),X.Ne=function(e,t){return X6e(H(e,117),H(t,117))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(MV,`NodeContext/1methodref$comparePortContexts$Type`,1537),J(164,22,{3:1,34:1,22:1,164:1},nT);var Mwt,Nwt,Pwt,Fwt,Iwt,Lwt,Rwt,zwt,Bwt,_Y,vY,yY,bY,Vwt,Hwt,Uwt,Wwt,Gwt,Kwt,qwt,Jwt,Ywt,Xwt=vw(MV,`NodeLabelLocation`,164,sJ,N1e,eDe),Zwt;J(117,1,{117:1},G9e),X.a=!1,U(MV,`PortContext`,117),J(1541,1,Yz,Xe),X.Cd=function(e){Tge(H(e,314))},U(FV,IV,1541),J(1542,1,fB,Ze),X.Mb=function(e){return!!H(e,117).c},U(FV,LV,1542),J(1543,1,Yz,Qe),X.Cd=function(e){Tge(H(e,117).c)},U(FV,`LabelPlacer/lambda$2$Type`,1543);var Qwt;J(1540,1,Yz,$e),X.Cd=function(e){Gp(),cpe(H(e,117))},U(FV,`NodeLabelAndSizeUtilities/lambda$0$Type`,1540),J(801,1,Yz,pDe),X.Cd=function(e){I_e(this.b,this.c,this.a,H(e,187))},X.a=!1,X.c=!1,U(FV,`NodeLabelCellCreator/lambda$0$Type`,801),J(1539,1,Yz,_a),X.Cd=function(e){Spe(this.a,H(e,187))},U(FV,`PortContextCreator/lambda$0$Type`,1539);var xY;J(1902,1,{},et),U(RV,`GreedyRectangleStripOverlapRemover`,1902),J(1903,1,dV,tt),X.Ne=function(e,t){return FCe(H(e,226),H(t,226))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(RV,`GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type`,1903),J(1849,1,{},Xo),X.a=5,X.e=0,U(RV,`RectangleStripOverlapRemover`,1849),J(1850,1,dV,nt),X.Ne=function(e,t){return ICe(H(e,226),H(t,226))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(RV,`RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type`,1850),J(1852,1,dV,rt),X.Ne=function(e,t){return oMe(H(e,226),H(t,226))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(RV,`RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type`,1852),J(417,22,{3:1,34:1,22:1,417:1},iu);var SY,$wt,eTt,CY,tTt=vw(RV,`RectangleStripOverlapRemover/OverlapRemovalDirection`,417,sJ,RRe,tDe),nTt;J(226,1,{226:1},KAe),U(RV,`RectangleStripOverlapRemover/RectangleNode`,226),J(1851,1,Yz,va),X.Cd=function(e){C2e(this.a,H(e,226))},U(RV,`RectangleStripOverlapRemover/lambda$1$Type`,1851),J(1323,1,dV,it),X.Ne=function(e,t){return olt(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(zV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator`,1323),J(1326,1,{},at),X.Kb=function(e){return H(e,334).a},U(zV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type`,1326),J(1327,1,fB,ot),X.Mb=function(e){return H(e,332).a},U(zV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type`,1327),J(1328,1,fB,st),X.Mb=function(e){return H(e,332).a},U(zV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type`,1328),J(1321,1,dV,ct),X.Ne=function(e,t){return Qat(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(zV,`PolyominoCompactor/MinNumOfExtensionDirectionsComparator`,1321),J(1324,1,{},lt),X.Kb=function(e){return H(e,334).a},U(zV,`PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type`,1324),J(781,1,dV,ut),X.Ne=function(e,t){return SJe(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(zV,`PolyominoCompactor/MinNumOfExtensionsComparator`,781),J(1319,1,dV,dt),X.Ne=function(e,t){return IKe(H(e,330),H(t,330))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(zV,`PolyominoCompactor/MinPerimeterComparator`,1319),J(1320,1,dV,ft),X.Ne=function(e,t){return w0e(H(e,330),H(t,330))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(zV,`PolyominoCompactor/MinPerimeterComparatorWithShape`,1320),J(1322,1,dV,pt),X.Ne=function(e,t){return Mot(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(zV,`PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator`,1322),J(1325,1,{},mt),X.Kb=function(e){return H(e,334).a},U(zV,`PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type`,1325),J(782,1,{},au),X.Ve=function(e,t){return yRe(this,H(e,42),H(t,176))},U(zV,`SuccessorCombination`,782),J(649,1,{},ht),X.Ve=function(e,t){var n;return x9e((n=H(e,42),H(t,176),n))},U(zV,`SuccessorJitter`,649),J(648,1,{},gt),X.Ve=function(e,t){var n;return Lrt((n=H(e,42),H(t,176),n))},U(zV,`SuccessorLineByLine`,648),J(573,1,{},_t),X.Ve=function(e,t){var n;return ptt((n=H(e,42),H(t,176),n))},U(zV,`SuccessorManhattan`,573),J(1344,1,{},vt),X.Ve=function(e,t){var n;return Qnt((n=H(e,42),H(t,176),n))},U(zV,`SuccessorMaxNormWindingInMathPosSense`,1344),J(409,1,{},ya),X.Ve=function(e,t){return a_(this,e,t)},X.c=!1,X.d=!1,X.e=!1,X.f=!1,U(zV,`SuccessorQuadrantsGeneric`,409),J(1345,1,{},yt),X.Kb=function(e){return H(e,334).a},U(zV,`SuccessorQuadrantsGeneric/lambda$0$Type`,1345),J(332,22,{3:1,34:1,22:1,332:1},ou),X.a=!1;var wY,TY,EY,DY,rTt=vw(HV,UV,332,sJ,IRe,nDe),iTt;J(1317,1,{}),X.Ib=function(){var e,t,n=` `,r,i,a;for(e=kD(0),i=0;i=0?`b`+e+`[`+xBe(this.a)+`]`:`b[`+xBe(this.a)+`]`):`b_`+cp(this)},U(SH,`FBendpoint`,250),J(290,137,{3:1,290:1,96:1,137:1},VTe),X.Ib=function(){return xBe(this)},U(SH,`FEdge`,290),J(235,137,{3:1,235:1,96:1,137:1},iS);var ATt=U(SH,`FGraph`,235);J(454,309,{3:1,454:1,309:1,96:1,137:1},Sze),X.Ib=function(){return this.b==null||this.b.length==0?`l[`+xBe(this.a)+`]`:`l_`+this.b},U(SH,`FLabel`,454),J(153,309,{3:1,153:1,309:1,96:1,137:1},pSe),X.Ib=function(){return mLe(this)},X.a=0,U(SH,`FNode`,153),J(2100,1,{}),X.vf=function(e){WI(this,e)},X.wf=function(){M2e(this)},X.d=0,U(CH,`AbstractForceModel`,2100),J(641,2100,{641:1},Kqe),X.uf=function(e,t){var n,i,a,o,s;return jlt(this.f,e,t),a=dm(Tf(t.d),e.d),s=r.Math.sqrt(a.a*a.a+a.b*a.b),i=r.Math.max(0,s-K_(e.e)/2-K_(t.e)/2),n=D9e(this.e,e,t),o=n>0?-eMe(i,this.c)*n:uwe(i,this.b)*H(q(e,(UI(),GY)),17).a,kf(a,o/s),a},X.vf=function(e){WI(this,e),this.a=H(q(e,(UI(),VY)),17).a,this.c=z(Ip(q(e,KY))),this.b=z(Ip(q(e,ZTt)))},X.xf=function(e){return e0&&(o-=Nme(i,this.a)*n),kf(a,o*this.b/s),a},X.vf=function(e){var t,n,i,a,o,s,l;for(WI(this,e),this.b=z(Ip(q(e,(UI(),tEt)))),this.c=this.b/H(q(e,VY),17).a,i=e.e.c.length,o=0,a=0,l=new L(e.e);l.a0},X.a=0,X.b=0,X.c=0,U(CH,`FruchtermanReingoldModel`,642),J(860,1,xV,Br),X.hf=function(e){NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,wH),``),`Force Model`),`Determines the model for force calculation.`),NTt),(PN(),V3)),zY),dO((cA(),F3))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,TH),``),`Iterations`),`The number of iterations on the force model.`),kD(300)),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,EH),``),`Repulsive Power`),`Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model`),kD(0)),U3),AJ),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,DH),``),`FR Temperature`),`The temperature is used as a scaling factor for particle displacements.`),OH),B3),OJ),dO(F3)))),Xb(e,DH,wH,RTt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,kH),``),`Eades Repulsion`),`Factor for repulsive forces in Eades' model.`),5),B3),OJ),dO(F3)))),Xb(e,kH,wH,FTt),Cft((new Vr,e))};var jTt,MTt,NTt,PTt,FTt,ITt,LTt,RTt;U(AH,`ForceMetaDataProvider`,860),J(432,22,{3:1,34:1,22:1,432:1},uu);var zTt,RY,zY=vw(AH,`ForceModelStrategy`,432,sJ,WPe,jm),BTt;J(bB,1,xV,Vr),X.hf=function(e){Cft(e)};var VTt,HTt,BY,VY,HY,UTt,WTt,GTt,KTt,qTt,JTt,UY,WY,YTt,GY,XTt,ZTt,QTt,$Tt,eEt,KY,tEt,nEt,rEt,iEt,qY,aEt;U(AH,`ForceOptions`,bB),J(1001,1,{},iee),X.sf=function(){return new Ape},X.tf=function(e){},U(AH,`ForceOptions/ForceFactory`,1001);var JY,YY,XY,oEt;J(861,1,xV,Hr),X.hf=function(e){NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,jht),``),`Fixed Position`),`Prevent that the node is moved by the layout algorithm.`),(lp(),!1)),(PN(),z3)),CJ),dO((cA(),P3))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Mht),``),`Desired Edge Length`),`Either specified for parent nodes or for individual edges, where the latter takes higher precedence.`),100),B3),OJ),gg(F3,K(B(L3,1),lB,170,0,[M3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Nht),``),`Layout Dimension`),`Dimensions that are permitted to be altered during layout.`),lEt),V3),TEt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Pht),``),`Stress Epsilon`),`Termination criterion for the iterative process.`),OH),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Fht),``),`Iteration Limit`),`Maximum number of performed iterations. Takes higher precedence than 'epsilon'.`),kD(Ez)),U3),AJ),dO(F3)))),Mut((new xce,e))};var sEt,cEt,lEt,uEt,dEt,fEt;U(AH,`StressMetaDataProvider`,861),J(1004,1,xV,xce),X.hf=function(e){Mut(e)};var ZY,pEt,mEt,hEt,gEt,_Et,vEt,yEt,QY,bEt,xEt,SEt;U(AH,`StressOptions`,1004),J(1005,1,{},nee),X.sf=function(){return new am},X.tf=function(e){},U(AH,`StressOptions/StressFactory`,1005),J(1110,205,QV,am),X.rf=function(e,t){var n,r,i,a,o;for(t.Ug(Iht,1),Vs(Fp(qP(e,(Cj(),gEt))))?Vs(Fp(qP(e,xEt)))||Hy((n=new ma((zl(),new Bs(e))),n)):ent(new Ape,e,t.eh(1)),i=tYe(e),r=cct(this.a,i),o=r.Kc();o.Ob();)a=H(o.Pb(),235),!(a.e.c.length<=1)&&(nlt(this.b,a),ctt(this.b),UC(a.d,new ree));i=gft(r),Qft(i),t.Vg()},U(eU,`StressLayoutProvider`,1110),J(1111,1,Yz,ree),X.Cd=function(e){SL(H(e,454))},U(eU,`StressLayoutProvider/lambda$0$Type`,1111),J(1002,1,{},xpe),X.c=0,X.e=0,X.g=0,U(eU,`StressMajorization`,1002),J(391,22,{3:1,34:1,22:1,391:1},du);var CEt,$Y,wEt,TEt=vw(eU,`StressMajorization/Dimension`,391,sJ,SIe,iDe),eX;J(1003,1,dV,Sa),X.Ne=function(e,t){return bEe(this.a,H(e,153),H(t,153))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(eU,`StressMajorization/lambda$0$Type`,1003),J(1192,1,{},SLe),U(tU,`ElkLayered`,1192),J(1193,1,Yz,jue),X.Cd=function(e){N7e(this.a,H(e,36))},U(tU,`ElkLayered/lambda$0$Type`,1193),J(1194,1,Yz,Ca),X.Cd=function(e){xEe(this.a,H(e,36))},U(tU,`ElkLayered/lambda$1$Type`,1194),J(1281,1,{},MSe);var EEt,DEt,OEt;U(tU,`GraphConfigurator`,1281),J(770,1,Yz,wa),X.Cd=function(e){B8e(this.a,H(e,10))},U(tU,`GraphConfigurator/lambda$0$Type`,770),J(771,1,{},Ft),X.Kb=function(e){return i3e(),new Yh(null,new Nb(H(e,30).a,16))},U(tU,`GraphConfigurator/lambda$1$Type`,771),J(772,1,Yz,Mue),X.Cd=function(e){B8e(this.a,H(e,10))},U(tU,`GraphConfigurator/lambda$2$Type`,772),J(1109,205,QV,Fpe),X.rf=function(e,t){var n=zct(new Qo,e);cd(qP(e,(fz(),i1)))===cd((ED(),Y8))?hQe(this.a,n,t):ttt(this.a,n,t),t.$g()||Udt(new Sce,n)},U(tU,`LayeredLayoutProvider`,1109),J(367,22,{3:1,34:1,22:1,367:1},fu);var tX,nX,rX,iX,aX,kEt=vw(tU,`LayeredPhases`,367,sJ,ABe,aDe),AEt;J(1717,1,{},pKe),X.i=0;var jEt;U(nU,`ComponentsToCGraphTransformer`,1717);var MEt;J(1718,1,{},tee),X.yf=function(e,t){return r.Math.min(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},X.zf=function(e,t){return r.Math.min(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},U(nU,`ComponentsToCGraphTransformer/1`,1718),J(86,1,{86:1}),X.i=0,X.k=!0,X.o=qB;var NEt=U(rU,`CNode`,86);J(470,86,{470:1,86:1},XCe,s1e),X.Ib=function(){return``},U(nU,`ComponentsToCGraphTransformer/CRectNode`,470),J(1688,1,{},aee);var PEt,FEt;U(nU,`OneDimensionalComponentsCompaction`,1688),J(1689,1,{},It),X.Kb=function(e){return aIe(H(e,42))},X.Fb=function(e){return this===e},U(nU,`OneDimensionalComponentsCompaction/lambda$0$Type`,1689),J(1690,1,{},Lt),X.Kb=function(e){return SO(H(e,42))},X.Fb=function(e){return this===e},U(nU,`OneDimensionalComponentsCompaction/lambda$1$Type`,1690),J(1720,1,{},L_),U(rU,`CGraph`,1720),J(194,1,{194:1},Qk),X.b=0,X.c=0,X.e=0,X.g=!0,X.i=qB,U(rU,`CGroup`,194),J(1719,1,{},Rt),X.yf=function(e,t){return r.Math.max(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},X.zf=function(e,t){return r.Math.max(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},U(rU,aht,1719),J(1721,1,{},M9e),X.d=!1;var IEt,LEt=U(rU,mV,1721);J(1722,1,{},zt),X.Kb=function(e){return j_e(),lp(),H(H(e,42).a,86).d.e!=0},X.Fb=function(e){return this===e},U(rU,lht,1722),J(833,1,{},CAe),X.a=!1,X.b=!1,X.c=!1,X.d=!1,U(rU,uht,833),J(1898,1,{},qAe),U(Rht,dht,1898);var oX=Lh(iU,rht);J(1899,1,{382:1},jPe),X.bf=function(e){lit(this,H(e,476))},U(Rht,fht,1899),J(MB,1,dV,Bt),X.Ne=function(e,t){return Nv(H(e,86),H(t,86))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(Rht,pht,MB),J(476,1,{476:1},kve),X.a=!1,U(Rht,mht,476),J(1901,1,dV,Vt),X.Ne=function(e,t){return r3e(H(e,476),H(t,476))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(Rht,hV,1901),J(148,1,{148:1},xu,gke),X.Fb=function(e){var t;return e==null||REt!=sD(e)?!1:(t=H(e,148),vv(this.c,t.c)&&vv(this.d,t.d))},X.Hb=function(){return uD(K(B(eJ,1),jz,1,5,[this.c,this.d]))},X.Ib=function(){return`(`+this.c+Az+this.d+(this.a?`cx`:``)+this.b+`)`},X.a=!0,X.c=0,X.d=0;var REt=U(iU,`Point`,148);J(416,22,{3:1,34:1,22:1,416:1},bve);var sX,cX,lX,uX,zEt=vw(iU,`Point/Quadrant`,416,sJ,zRe,oDe),BEt;J(1708,1,{},Ppe),X.b=null,X.c=null,X.d=null,X.e=null,X.f=null;var VEt,HEt,dX,UEt,WEt;U(iU,`RectilinearConvexHull`,1708),J(583,1,{382:1},hA),X.bf=function(e){eUe(this,H(e,148))},X.b=0;var fX;U(iU,`RectilinearConvexHull/MaximalElementsEventHandler`,583),J(1710,1,dV,Ht),X.Ne=function(e,t){return FNe(Ip(e),Ip(t))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(iU,`RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type`,1710),J(1709,1,{382:1},jWe),X.bf=function(e){rrt(this,H(e,148))},X.a=0,X.b=null,X.c=null,X.d=null,X.e=null,U(iU,`RectilinearConvexHull/RectangleEventHandler`,1709),J(1711,1,dV,Ut),X.Ne=function(e,t){return lLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(iU,`RectilinearConvexHull/lambda$0$Type`,1711),J(1712,1,dV,cee),X.Ne=function(e,t){return uLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(iU,`RectilinearConvexHull/lambda$1$Type`,1712),J(1713,1,dV,Gt),X.Ne=function(e,t){return cLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(iU,`RectilinearConvexHull/lambda$2$Type`,1713),J(1714,1,dV,see),X.Ne=function(e,t){return dLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(iU,`RectilinearConvexHull/lambda$3$Type`,1714),J(1715,1,dV,lee),X.Ne=function(e,t){return v8e(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(iU,`RectilinearConvexHull/lambda$4$Type`,1715),J(1716,1,{},KFe),U(iU,`Scanline`,1716),J(2104,1,{}),U(aU,`AbstractGraphPlacer`,2104),J(335,1,{335:1},xwe),X.Ff=function(e){return this.Gf(e)?(TP(this.b,H(q(e,(hz(),EQ)),21),e),!0):!1},X.Gf=function(e){for(var t=H(q(e,(hz(),EQ)),21),n,r=H(Zx(pX,t),21).Kc();r.Ob();)if(n=H(r.Pb(),21),!H(Zx(this.b,n),15).dc())return!1;return!0};var pX;U(aU,`ComponentGroup`,335),J(779,2104,{},Yo),X.Hf=function(e){for(var t,n=new L(this.a);n.an&&(f=0,p+=l+i,l=0),u=o.c,sI(o,f+u.a,p+u.b),wd(u),a=r.Math.max(a,f+d.a),l=r.Math.max(l,d.b),f+=d.a+i;t.f.a=a,t.f.b=p+l},X.Jf=function(e,t){var n,r,i,a,o;if(cd(q(t,(fz(),R$)))===cd((Zk(),hX))){for(r=e.Kc();r.Ob();){for(n=H(r.Pb(),36),o=0,a=new L(n.a);a.an&&!H(q(o,(hz(),EQ)),21).Hc((XR(),M5))||u&&H(q(u,(hz(),EQ)),21).Hc((XR(),j5))||H(q(o,(hz(),EQ)),21).Hc((XR(),Z5)))&&(m=p,h+=l+i,l=0),d=o.c,H(q(o,(hz(),EQ)),21).Hc((XR(),M5))&&(m=a+i),sI(o,m+d.a,h+d.b),a=r.Math.max(a,m+f.a),H(q(o,EQ),21).Hc(Y5)&&(p=r.Math.max(p,m+f.a+i)),wd(d),l=r.Math.max(l,f.b),m+=f.a+i,u=o;t.f.a=a,t.f.b=h+l},X.Jf=function(e,t){},U(aU,`ModelOrderRowGraphPlacer`,1313),J(1311,1,dV,Kt),X.Ne=function(e,t){return fJe(H(e,36),H(t,36))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(aU,`SimpleRowGraphPlacer/1`,1311);var YEt;J(1280,1,gV,qt),X.Lb=function(e){var t=H(q(H(e,249).b,(fz(),d1)),75);return!!t&&t.b!=0},X.Fb=function(e){return this===e},X.Mb=function(e){var t=H(q(H(e,249).b,(fz(),d1)),75);return!!t&&t.b!=0},U(cU,`CompoundGraphPostprocessor/1`,1280),J(1279,1,lU,$o),X.Kf=function(e,t){O0e(this,H(e,36),t)},U(cU,`CompoundGraphPreprocessor`,1279),J(453,1,{453:1},IZe),X.c=!1,U(cU,`CompoundGraphPreprocessor/ExternalPort`,453),J(249,1,{249:1},fDe),X.Ib=function(){return wp(this.c)+`:`+mP(this.b)},U(cU,`CrossHierarchyEdge`,249),J(777,1,dV,Nue),X.Ne=function(e,t){return x4e(this,H(e,249),H(t,249))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(cU,`CrossHierarchyEdgeComparator`,777),J(305,137,{3:1,305:1,96:1,137:1}),X.p=0,U(uU,`LGraphElement`,305),J(18,305,{3:1,18:1,305:1,96:1,137:1},vy),X.Ib=function(){return mP(this)};var XEt=U(uU,`LEdge`,18);J(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},mKe),X.Jc=function(e){Px(this,e)},X.Kc=function(){return new L(this.b)},X.Ib=function(){return this.b.c.length==0?`G-unlayered`+rN(this.a):this.a.c.length==0?`G-layered`+rN(this.b):`G[layerless`+rN(this.a)+`, layers`+rN(this.b)+`]`};var ZEt=U(uU,`LGraph`,36),QEt;J(666,1,{}),X.Lf=function(){return this.e.n},X.of=function(e){return q(this.e,e)},X.Mf=function(){return this.e.o},X.Nf=function(){return this.e.p},X.pf=function(e){return Cp(this.e,e)},X.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},X.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},X.Qf=function(e){this.e.p=e},U(uU,`LGraphAdapters/AbstractLShapeAdapter`,666),J(474,1,{853:1},Ta),X.Rf=function(){var e,t;if(!this.b)for(this.b=gp(this.a.b.c.length),t=new L(this.a.b);t.a0&&gD((Mb(t-1,e.length),e.charCodeAt(t-1)),qht);)--t;if(a> `,e),cj(n)),yd(vd((e.a+=`[`,e),n.i),`]`)),e.a},X.c=!0,X.d=!1;var nDt,rDt,iDt,aDt,oDt,sDt,cDt=U(uU,`LPort`,12);J(408,1,Qz,Da),X.Jc=function(e){Px(this,e)},X.Kc=function(){return new Pue(new L(this.a.e))},U(uU,`LPort/1`,408),J(1309,1,Lz,Pue),X.Nb=function(e){Yg(this,e)},X.Pb=function(){return H(W(this.a),18).c},X.Ob=function(){return xf(this.a)},X.Qb=function(){f_(this.a)},U(uU,`LPort/1/1`,1309),J(369,1,Qz,Oa),X.Jc=function(e){Px(this,e)},X.Kc=function(){return new Fue(new L(this.a.g))},U(uU,`LPort/2`,369),J(776,1,Lz,Fue),X.Nb=function(e){Yg(this,e)},X.Pb=function(){return H(W(this.a),18).d},X.Ob=function(){return xf(this.a)},X.Qb=function(){f_(this.a)},U(uU,`LPort/2/1`,776),J(1302,1,Qz,Cve),X.Jc=function(e){Px(this,e)},X.Kc=function(){return new rS(this)},U(uU,`LPort/CombineIter`,1302),J(208,1,Lz,rS),X.Nb=function(e){Yg(this,e)},X.Qb=function(){lge()},X.Ob=function(){return sp(this)},X.Pb=function(){return xf(this.a)?W(this.a):W(this.b)},U(uU,`LPort/CombineIter/1`,208),J(1303,1,gV,Yt),X.Lb=function(e){return Eje(e)},X.Fb=function(e){return this===e},X.Mb=function(e){return pT(),H(e,12).g.c.length!=0},U(uU,`LPort/lambda$0$Type`,1303),J(1304,1,gV,Xt),X.Lb=function(e){return Dje(e)},X.Fb=function(e){return this===e},X.Mb=function(e){return pT(),H(e,12).e.c.length!=0},U(uU,`LPort/lambda$1$Type`,1304),J(1305,1,gV,mee),X.Lb=function(e){return pT(),H(e,12).j==(XR(),M5)},X.Fb=function(e){return this===e},X.Mb=function(e){return pT(),H(e,12).j==(XR(),M5)},U(uU,`LPort/lambda$2$Type`,1305),J(1306,1,gV,Zt),X.Lb=function(e){return pT(),H(e,12).j==(XR(),j5)},X.Fb=function(e){return this===e},X.Mb=function(e){return pT(),H(e,12).j==(XR(),j5)},U(uU,`LPort/lambda$3$Type`,1306),J(1307,1,gV,hee),X.Lb=function(e){return pT(),H(e,12).j==(XR(),Y5)},X.Fb=function(e){return this===e},X.Mb=function(e){return pT(),H(e,12).j==(XR(),Y5)},U(uU,`LPort/lambda$4$Type`,1307),J(1308,1,gV,gee),X.Lb=function(e){return pT(),H(e,12).j==(XR(),Z5)},X.Fb=function(e){return this===e},X.Mb=function(e){return pT(),H(e,12).j==(XR(),Z5)},U(uU,`LPort/lambda$5$Type`,1308),J(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},I_),X.Jc=function(e){Px(this,e)},X.Kc=function(){return new L(this.a)},X.Ib=function(){return`L_`+XS(this.b.b,this,0)+rN(this.a)},U(uU,`Layer`,30),J(1330,1,{},Qo),U(pU,Zht,1330),J(1334,1,{},_ee),X.Kb=function(e){return PM(H(e,84))},U(pU,`ElkGraphImporter/0methodref$connectableShapeToNode$Type`,1334),J(1337,1,{},vee),X.Kb=function(e){return PM(H(e,84))},U(pU,`ElkGraphImporter/1methodref$connectableShapeToNode$Type`,1337),J(1331,1,Yz,ka),X.Cd=function(e){q9e(this.a,H(e,123))},U(pU,xH,1331),J(1332,1,Yz,Aa),X.Cd=function(e){q9e(this.a,H(e,123))},U(pU,Qht,1332),J(1333,1,{},yee),X.Kb=function(e){return new Yh(null,new Nb(ENe(H(e,74)),16))},U(pU,$ht,1333),J(1335,1,fB,ja),X.Mb=function(e){return Vxe(this.a,H(e,27))},U(pU,egt,1335),J(1336,1,{},bee),X.Kb=function(e){return new Yh(null,new Nb(DNe(H(e,74)),16))},U(pU,`ElkGraphImporter/lambda$5$Type`,1336),J(1338,1,fB,Ma),X.Mb=function(e){return Hxe(this.a,H(e,27))},U(pU,`ElkGraphImporter/lambda$7$Type`,1338),J(1339,1,fB,xee),X.Mb=function(e){return tPe(H(e,74))},U(pU,`ElkGraphImporter/lambda$8$Type`,1339),J(1297,1,{},Sce);var lDt;U(pU,`ElkGraphLayoutTransferrer`,1297),J(1298,1,fB,Iue),X.Mb=function(e){return LTe(this.a,H(e,18))},U(pU,`ElkGraphLayoutTransferrer/lambda$0$Type`,1298),J(1299,1,Yz,Lue),X.Cd=function(e){Ol(),Af(this.a,H(e,18))},U(pU,`ElkGraphLayoutTransferrer/lambda$1$Type`,1299),J(1300,1,fB,Rue),X.Mb=function(e){return aTe(this.a,H(e,18))},U(pU,`ElkGraphLayoutTransferrer/lambda$2$Type`,1300),J(1301,1,Yz,zue),X.Cd=function(e){Ol(),Af(this.a,H(e,18))},U(pU,`ElkGraphLayoutTransferrer/lambda$3$Type`,1301),J(819,1,{},om),U(mU,`BiLinkedHashMultiMap`,819),J(1550,1,lU,See),X.Kf=function(e,t){uqe(H(e,36),t)},U(mU,`CommentNodeMarginCalculator`,1550),J(1551,1,{},Cee),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`CommentNodeMarginCalculator/lambda$0$Type`,1551),J(1552,1,Yz,wee),X.Cd=function(e){PL(H(e,10))},U(mU,`CommentNodeMarginCalculator/lambda$1$Type`,1552),J(1553,1,lU,Qt),X.Kf=function(e,t){yit(H(e,36),t)},U(mU,`CommentPostprocessor`,1553),J(1554,1,lU,Tee),X.Kf=function(e,t){Mdt(H(e,36),t)},U(mU,`CommentPreprocessor`,1554),J(1555,1,lU,Eee),X.Kf=function(e,t){_rt(H(e,36),t)},U(mU,`ConstraintsPostprocessor`,1555),J(1556,1,lU,$t),X.Kf=function(e,t){nJe(H(e,36),t)},U(mU,`EdgeAndLayerConstraintEdgeReverser`,1556),J(1557,1,lU,Dee),X.Kf=function(e,t){nk(H(e,36),t)},U(mU,`EndLabelPostprocessor`,1557),J(1558,1,{},Oee),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`EndLabelPostprocessor/lambda$0$Type`,1558),J(1559,1,fB,kee),X.Mb=function(e){return bBe(H(e,10))},U(mU,`EndLabelPostprocessor/lambda$1$Type`,1559),J(1560,1,Yz,Aee),X.Cd=function(e){a3e(H(e,10))},U(mU,`EndLabelPostprocessor/lambda$2$Type`,1560),J(1561,1,lU,jee),X.Kf=function(e,t){BN(H(e,36),t)},U(mU,`EndLabelPreprocessor`,1561),J(1562,1,{},Mee),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`EndLabelPreprocessor/lambda$0$Type`,1562),J(1563,1,Yz,dDe),X.Cd=function(e){L_e(this.a,this.b,this.c,H(e,10))},X.a=0,X.b=0,X.c=!1,U(mU,`EndLabelPreprocessor/lambda$1$Type`,1563),J(1564,1,fB,Nee),X.Mb=function(e){return cd(q(H(e,72),(fz(),Y$)))===cd((ZC(),L8))},U(mU,`EndLabelPreprocessor/lambda$2$Type`,1564),J(1565,1,Yz,Na),X.Cd=function(e){Ch(this.a,H(e,72))},U(mU,`EndLabelPreprocessor/lambda$3$Type`,1565),J(1566,1,fB,Pee),X.Mb=function(e){return cd(q(H(e,72),(fz(),Y$)))===cd((ZC(),I8))},U(mU,`EndLabelPreprocessor/lambda$4$Type`,1566),J(1567,1,Yz,Bue),X.Cd=function(e){Ch(this.a,H(e,72))},U(mU,`EndLabelPreprocessor/lambda$5$Type`,1567),J(1615,1,lU,vce),X.Kf=function(e,t){HZe(H(e,36),t)};var uDt;U(mU,`EndLabelSorter`,1615),J(1616,1,dV,Fee),X.Ne=function(e,t){return m1e(H(e,466),H(t,466))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`EndLabelSorter/1`,1616),J(466,1,{466:1},mPe),U(mU,`EndLabelSorter/LabelGroup`,466),J(1617,1,{},Iee),X.Kb=function(e){return Dl(),new Yh(null,new Nb(H(e,30).a,16))},U(mU,`EndLabelSorter/lambda$0$Type`,1617),J(1618,1,fB,Lee),X.Mb=function(e){return Dl(),H(e,10).k==(fN(),CX)},U(mU,`EndLabelSorter/lambda$1$Type`,1618),J(1619,1,Yz,Ree),X.Cd=function(e){V8e(H(e,10))},U(mU,`EndLabelSorter/lambda$2$Type`,1619),J(1620,1,fB,zee),X.Mb=function(e){return Dl(),cd(q(H(e,72),(fz(),Y$)))===cd((ZC(),I8))},U(mU,`EndLabelSorter/lambda$3$Type`,1620),J(1621,1,fB,Bee),X.Mb=function(e){return Dl(),cd(q(H(e,72),(fz(),Y$)))===cd((ZC(),L8))},U(mU,`EndLabelSorter/lambda$4$Type`,1621),J(1568,1,lU,Vee),X.Kf=function(e,t){ZL(this,H(e,36))},X.b=0,X.c=0,U(mU,`FinalSplineBendpointsCalculator`,1568),J(1569,1,{},Hee),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`FinalSplineBendpointsCalculator/lambda$0$Type`,1569),J(1570,1,{},Uee),X.Kb=function(e){return new Yh(null,new x_(new jg(Yf(AO(H(e,10)).a.Kc(),new f))))},U(mU,`FinalSplineBendpointsCalculator/lambda$1$Type`,1570),J(1571,1,fB,Wee),X.Mb=function(e){return!Vx(H(e,18))},U(mU,`FinalSplineBendpointsCalculator/lambda$2$Type`,1571),J(1572,1,fB,Gee),X.Mb=function(e){return Cp(H(e,18),(hz(),r$))},U(mU,`FinalSplineBendpointsCalculator/lambda$3$Type`,1572),J(1573,1,Yz,Vue),X.Cd=function(e){Fot(this.a,H(e,131))},U(mU,`FinalSplineBendpointsCalculator/lambda$4$Type`,1573),J(1574,1,Yz,Kee),X.Cd=function(e){GN(H(e,18).a)},U(mU,`FinalSplineBendpointsCalculator/lambda$5$Type`,1574),J(803,1,lU,Pa),X.Kf=function(e,t){Klt(this,H(e,36),t)},U(mU,`GraphTransformer`,803),J(517,22,{3:1,34:1,22:1,517:1},vu);var dDt,TX,fDt=vw(mU,`GraphTransformer/Mode`,517,sJ,GPe,vOe),pDt;J(1575,1,lU,qee),X.Kf=function(e,t){dnt(H(e,36),t)},U(mU,`HierarchicalNodeResizingProcessor`,1575),J(1576,1,lU,Jee),X.Kf=function(e,t){qKe(H(e,36),t)},U(mU,`HierarchicalPortConstraintProcessor`,1576),J(1577,1,dV,Yee),X.Ne=function(e,t){return i0e(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`HierarchicalPortConstraintProcessor/NodeComparator`,1577),J(1578,1,lU,Xee),X.Kf=function(e,t){ect(H(e,36),t)},U(mU,`HierarchicalPortDummySizeProcessor`,1578),J(1579,1,lU,Zee),X.Kf=function(e,t){oat(this,H(e,36),t)},X.a=0,U(mU,`HierarchicalPortOrthogonalEdgeRouter`,1579),J(1580,1,dV,Qee),X.Ne=function(e,t){return LCe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`HierarchicalPortOrthogonalEdgeRouter/1`,1580),J(1581,1,dV,$ee),X.Ne=function(e,t){return rUe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`HierarchicalPortOrthogonalEdgeRouter/2`,1581),J(1582,1,lU,ete),X.Kf=function(e,t){f8e(H(e,36),t)},U(mU,`HierarchicalPortPositionProcessor`,1582),J(1583,1,lU,Cce),X.Kf=function(e,t){kft(this,H(e,36))},X.a=0,X.c=0;var EX,DX;U(mU,`HighDegreeNodeLayeringProcessor`,1583),J(580,1,{580:1},tte),X.b=-1,X.d=-1,U(mU,`HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation`,580),J(1584,1,{},nte),X.Kb=function(e){return Fm(),kO(H(e,10))},X.Fb=function(e){return this===e},U(mU,`HighDegreeNodeLayeringProcessor/lambda$0$Type`,1584),J(1585,1,{},en),X.Kb=function(e){return Fm(),AO(H(e,10))},X.Fb=function(e){return this===e},U(mU,`HighDegreeNodeLayeringProcessor/lambda$1$Type`,1585),J(1591,1,lU,rte),X.Kf=function(e,t){Lst(this,H(e,36),t)},U(mU,`HyperedgeDummyMerger`,1591),J(804,1,{},mDe),X.a=!1,X.b=!1,X.c=!1,U(mU,`HyperedgeDummyMerger/MergeState`,804),J(1592,1,{},ite),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`HyperedgeDummyMerger/lambda$0$Type`,1592),J(1593,1,{},ate),X.Kb=function(e){return new Yh(null,new Nb(H(e,10).j,16))},U(mU,`HyperedgeDummyMerger/lambda$1$Type`,1593),J(1594,1,Yz,ote),X.Cd=function(e){H(e,12).p=-1},U(mU,`HyperedgeDummyMerger/lambda$2$Type`,1594),J(1595,1,lU,ste),X.Kf=function(e,t){Fst(H(e,36),t)},U(mU,`HypernodesProcessor`,1595),J(1596,1,lU,cte),X.Kf=function(e,t){Qst(H(e,36),t)},U(mU,`InLayerConstraintProcessor`,1596),J(1597,1,lU,lte),X.Kf=function(e,t){mT(H(e,36),t)},U(mU,`InnermostNodeMarginCalculator`,1597),J(1598,1,lU,ute),X.Kf=function(e,t){Odt(this,H(e,36))},X.a=qB,X.b=qB,X.c=KB,X.d=KB;var mDt=U(mU,`InteractiveExternalPortPositioner`,1598);J(1599,1,{},dte),X.Kb=function(e){return H(e,18).d.i},X.Fb=function(e){return this===e},U(mU,`InteractiveExternalPortPositioner/lambda$0$Type`,1599),J(1600,1,{},Hue),X.Kb=function(e){return RCe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(mU,`InteractiveExternalPortPositioner/lambda$1$Type`,1600),J(1601,1,{},fte),X.Kb=function(e){return H(e,18).c.i},X.Fb=function(e){return this===e},U(mU,`InteractiveExternalPortPositioner/lambda$2$Type`,1601),J(1602,1,{},Fa),X.Kb=function(e){return zCe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(mU,`InteractiveExternalPortPositioner/lambda$3$Type`,1602),J(1603,1,{},Ia),X.Kb=function(e){return JTe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(mU,`InteractiveExternalPortPositioner/lambda$4$Type`,1603),J(1604,1,{},La),X.Kb=function(e){return YTe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(mU,`InteractiveExternalPortPositioner/lambda$5$Type`,1604),J(81,22,{3:1,34:1,22:1,81:1,196:1},yu),X.dg=function(){switch(this.g){case 15:return new bre;case 22:return new xre;case 47:return new wre;case 28:case 35:return new Cte;case 32:return new See;case 42:return new Qt;case 1:return new Tee;case 41:return new Eee;case 56:return new Pa((fT(),TX));case 0:return new Pa((fT(),dDt));case 2:return new $t;case 54:return new Dee;case 33:return new jee;case 51:return new Vee;case 55:return new qee;case 13:return new Jee;case 38:return new Xee;case 44:return new Zee;case 40:return new ete;case 9:return new Cce;case 49:return new KCe;case 37:return new rte;case 43:return new ste;case 27:return new cte;case 30:return new lte;case 3:return new ute;case 18:return new mte;case 29:return new hte;case 5:return new wce;case 50:return new pte;case 34:return new Tce;case 36:return new wte;case 52:return new vce;case 11:return new Tte;case 7:return new Ece;case 39:return new Ete;case 45:return new Dte;case 16:return new Ote;case 10:return new gye;case 48:return new Mte;case 21:return new Nte;case 23:return new zs((bw(),r2));case 8:return new Fte;case 12:return new Lte;case 4:return new Rte;case 19:return new jce;case 17:return new tn;case 53:return new nn;case 6:return new ane;case 25:return new ts;case 46:return new Qte;case 31:return new cm;case 14:return new pne;case 26:return new jre;case 20:return new gne;case 24:return new zs((bw(),i2));default:throw R(new Ks(igt+(this.f==null?``+this.g:this.f)))}};var hDt,gDt,_Dt,vDt,yDt,bDt,xDt,SDt,CDt,wDt,OX,kX,AX,TDt,EDt,DDt,ODt,kDt,ADt,jX,MX,jDt,MDt,NDt,PDt,FDt,NX,PX,FX,IDt,IX,LX,RX,zX,BX,VX,LDt,HX,UX,RDt,WX,GX,zDt,BDt,VDt,HDt,KX,qX,JX,YX,XX,ZX,QX,UDt,$X,WDt,GDt,KDt=vw(mU,agt,81,sJ,$nt,xDe),eZ;J(1605,1,lU,mte),X.Kf=function(e,t){Tdt(H(e,36),t)},U(mU,`InvertedPortProcessor`,1605),J(1606,1,lU,hte),X.Kf=function(e,t){Tot(H(e,36),t)},U(mU,`LabelAndNodeSizeProcessor`,1606),J(1607,1,fB,gte),X.Mb=function(e){return H(e,10).k==(fN(),CX)},U(mU,`LabelAndNodeSizeProcessor/lambda$0$Type`,1607),J(1608,1,fB,_te),X.Mb=function(e){return H(e,10).k==(fN(),bX)},U(mU,`LabelAndNodeSizeProcessor/lambda$1$Type`,1608),J(1609,1,Yz,Pm),X.Cd=function(e){R_e(this.b,this.a,this.c,H(e,10))},X.a=!1,X.c=!1,U(mU,`LabelAndNodeSizeProcessor/lambda$2$Type`,1609),J(1610,1,lU,wce),X.Kf=function(e,t){Gut(H(e,36),t)};var qDt;U(mU,`LabelDummyInserter`,1610),J(1611,1,gV,vte),X.Lb=function(e){return cd(q(H(e,72),(fz(),Y$)))===cd((ZC(),F8))},X.Fb=function(e){return this===e},X.Mb=function(e){return cd(q(H(e,72),(fz(),Y$)))===cd((ZC(),F8))},U(mU,`LabelDummyInserter/1`,1611),J(1612,1,lU,pte),X.Kf=function(e,t){Dut(H(e,36),t)},U(mU,`LabelDummyRemover`,1612),J(1613,1,fB,yte),X.Mb=function(e){return Vs(Fp(q(H(e,72),(fz(),iMt))))},U(mU,`LabelDummyRemover/lambda$0$Type`,1613),J(1378,1,lU,Tce),X.Kf=function(e,t){mut(this,H(e,36),t)},X.a=null;var tZ;U(mU,`LabelDummySwitcher`,1378),J(293,1,{293:1},lI),X.c=0,X.d=null,X.f=0,U(mU,`LabelDummySwitcher/LabelDummyInfo`,293),J(1379,1,{},bte),X.Kb=function(e){return lT(),new Yh(null,new Nb(H(e,30).a,16))},U(mU,`LabelDummySwitcher/lambda$0$Type`,1379),J(1380,1,fB,xte),X.Mb=function(e){return lT(),H(e,10).k==(fN(),xX)},U(mU,`LabelDummySwitcher/lambda$1$Type`,1380),J(1381,1,{},Ra),X.Kb=function(e){return oTe(this.a,H(e,10))},U(mU,`LabelDummySwitcher/lambda$2$Type`,1381),J(1382,1,Yz,Uue),X.Cd=function(e){VMe(this.a,H(e,293))},U(mU,`LabelDummySwitcher/lambda$3$Type`,1382),J(1383,1,dV,Ste),X.Ne=function(e,t){return Oje(H(e,293),H(t,293))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`LabelDummySwitcher/lambda$4$Type`,1383),J(802,1,lU,Cte),X.Kf=function(e,t){wHe(H(e,36),t)},U(mU,`LabelManagementProcessor`,802),J(1614,1,lU,wte),X.Kf=function(e,t){eit(H(e,36),t)},U(mU,`LabelSideSelector`,1614),J(1622,1,lU,Tte),X.Kf=function(e,t){rL(H(e,36),t)},U(mU,`LayerConstraintPostprocessor`,1622),J(1623,1,lU,Ece),X.Kf=function(e,t){Iet(H(e,36),t)};var JDt;U(mU,`LayerConstraintPreprocessor`,1623),J(371,22,{3:1,34:1,22:1,371:1},bu);var nZ,rZ,YDt,XDt,ZDt=vw(mU,`LayerConstraintPreprocessor/HiddenNodeConnections`,371,sJ,VRe,SDe),iZ;J(1624,1,lU,Ete),X.Kf=function(e,t){bR(H(e,36),t)},U(mU,`LayerSizeAndGraphHeightCalculator`,1624),J(1625,1,lU,Dte),X.Kf=function(e,t){fnt(H(e,36),t)},U(mU,`LongEdgeJoiner`,1625),J(1626,1,lU,Ote),X.Kf=function(e,t){clt(H(e,36),t)},U(mU,`LongEdgeSplitter`,1626),J(1627,1,lU,gye),X.Kf=function(e,t){odt(this,H(e,36),t)},X.e=0,X.f=0,X.j=0,X.k=0,X.n=0,X.o=0;var QDt,$Dt;U(mU,`NodePromotion`,1627),J(1628,1,dV,kte),X.Ne=function(e,t){return UYe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`NodePromotion/1`,1628),J(1629,1,dV,Ate),X.Ne=function(e,t){return WYe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`NodePromotion/2`,1629),J(1630,1,{},jte),X.Kb=function(e){return H(e,42),yDe(),lp(),!0},X.Fb=function(e){return this===e},U(mU,`NodePromotion/lambda$0$Type`,1630),J(1631,1,{},Kue),X.Kb=function(e){return PFe(this.a,H(e,42))},X.Fb=function(e){return this===e},X.a=0,U(mU,`NodePromotion/lambda$1$Type`,1631),J(1632,1,{},que),X.Kb=function(e){return nb(this.a,H(e,42))},X.Fb=function(e){return this===e},X.a=0,U(mU,`NodePromotion/lambda$2$Type`,1632),J(1633,1,lU,Mte),X.Kf=function(e,t){vft(H(e,36),t)},U(mU,`NorthSouthPortPostprocessor`,1633),J(1634,1,lU,Nte),X.Kf=function(e,t){ZR(H(e,36),t)},U(mU,`NorthSouthPortPreprocessor`,1634),J(1635,1,dV,Pte),X.Ne=function(e,t){return pJe(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`NorthSouthPortPreprocessor/lambda$0$Type`,1635),J(1636,1,lU,Fte),X.Kf=function(e,t){cst(H(e,36),t)},U(mU,`PartitionMidprocessor`,1636),J(1637,1,fB,Ite),X.Mb=function(e){return Cp(H(e,10),(fz(),k1))},U(mU,`PartitionMidprocessor/lambda$0$Type`,1637),J(1638,1,Yz,Jue),X.Cd=function(e){nPe(this.a,H(e,10))},U(mU,`PartitionMidprocessor/lambda$1$Type`,1638),J(1639,1,lU,Lte),X.Kf=function(e,t){Bnt(H(e,36),t)},U(mU,`PartitionPostprocessor`,1639),J(1640,1,lU,Rte),X.Kf=function(e,t){J9e(H(e,36),t)},U(mU,`PartitionPreprocessor`,1640),J(1641,1,fB,zte),X.Mb=function(e){return Cp(H(e,10),(fz(),k1))},U(mU,`PartitionPreprocessor/lambda$0$Type`,1641),J(1642,1,{},Bte),X.Kb=function(e){return new Yh(null,new x_(new jg(Yf(AO(H(e,10)).a.Kc(),new f))))},U(mU,`PartitionPreprocessor/lambda$1$Type`,1642),J(1643,1,fB,Vte),X.Mb=function(e){return C1e(H(e,18))},U(mU,`PartitionPreprocessor/lambda$2$Type`,1643),J(1644,1,Yz,Hte),X.Cd=function(e){QJe(H(e,18))},U(mU,`PartitionPreprocessor/lambda$3$Type`,1644),J(1645,1,lU,jce),X.Kf=function(e,t){Got(H(e,36),t)};var eOt,tOt,nOt,rOt,aZ,iOt;U(mU,`PortListSorter`,1645),J(1648,1,dV,Ute),X.Ne=function(e,t){return Fze(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`PortListSorter/lambda$0$Type`,1648),J(1650,1,dV,Wte),X.Ne=function(e,t){return Est(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`PortListSorter/lambda$1$Type`,1650),J(1646,1,{},Gte),X.Kb=function(e){return YE(),H(e,12).e},U(mU,`PortListSorter/lambda$2$Type`,1646),J(1647,1,{},Kte),X.Kb=function(e){return YE(),H(e,12).g},U(mU,`PortListSorter/lambda$3$Type`,1647),J(1649,1,dV,qte),X.Ne=function(e,t){return u4e(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`PortListSorter/lambda$4$Type`,1649),J(1651,1,lU,tn),X.Kf=function(e,t){$et(H(e,36),t)},U(mU,`PortSideProcessor`,1651),J(1652,1,lU,nn),X.Kf=function(e,t){tI(H(e,36),t)},U(mU,`ReversedEdgeRestorer`,1652),J(1657,1,lU,ts),X.Kf=function(e,t){QA(this,H(e,36),t)},U(mU,`SelfLoopPortRestorer`,1657),J(1658,1,{},rn),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`SelfLoopPortRestorer/lambda$0$Type`,1658),J(1659,1,fB,Jte),X.Mb=function(e){return H(e,10).k==(fN(),CX)},U(mU,`SelfLoopPortRestorer/lambda$1$Type`,1659),J(1660,1,fB,Yte),X.Mb=function(e){return Cp(H(e,10),(hz(),$Q))},U(mU,`SelfLoopPortRestorer/lambda$2$Type`,1660),J(1661,1,{},Xte),X.Kb=function(e){return H(q(H(e,10),(hz(),$Q)),337)},U(mU,`SelfLoopPortRestorer/lambda$3$Type`,1661),J(1662,1,Yz,Gue),X.Cd=function(e){xN(this.a,H(e,337))},U(mU,`SelfLoopPortRestorer/lambda$4$Type`,1662),J(805,1,Yz,Zte),X.Cd=function(e){g5e(H(e,105))},U(mU,`SelfLoopPortRestorer/lambda$5$Type`,805),J(1663,1,lU,Qte),X.Kf=function(e,t){Q1e(H(e,36),t)},U(mU,`SelfLoopPostProcessor`,1663),J(1664,1,{},$te),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`SelfLoopPostProcessor/lambda$0$Type`,1664),J(1665,1,fB,ene),X.Mb=function(e){return H(e,10).k==(fN(),CX)},U(mU,`SelfLoopPostProcessor/lambda$1$Type`,1665),J(1666,1,fB,tne),X.Mb=function(e){return Cp(H(e,10),(hz(),$Q))},U(mU,`SelfLoopPostProcessor/lambda$2$Type`,1666),J(1667,1,Yz,nne),X.Cd=function(e){S3e(H(e,10))},U(mU,`SelfLoopPostProcessor/lambda$3$Type`,1667),J(1668,1,{},rne),X.Kb=function(e){return new Yh(null,new Nb(H(e,105).f,1))},U(mU,`SelfLoopPostProcessor/lambda$4$Type`,1668),J(1669,1,Yz,Wue),X.Cd=function(e){GRe(this.a,H(e,340))},U(mU,`SelfLoopPostProcessor/lambda$5$Type`,1669),J(1670,1,fB,ine),X.Mb=function(e){return!!H(e,105).i},U(mU,`SelfLoopPostProcessor/lambda$6$Type`,1670),J(1671,1,Yz,za),X.Cd=function(e){kme(this.a,H(e,105))},U(mU,`SelfLoopPostProcessor/lambda$7$Type`,1671),J(1653,1,lU,ane),X.Kf=function(e,t){Utt(H(e,36),t)},U(mU,`SelfLoopPreProcessor`,1653),J(1654,1,{},one),X.Kb=function(e){return new Yh(null,new Nb(H(e,105).f,1))},U(mU,`SelfLoopPreProcessor/lambda$0$Type`,1654),J(1655,1,{},sne),X.Kb=function(e){return H(e,340).a},U(mU,`SelfLoopPreProcessor/lambda$1$Type`,1655),J(1656,1,Yz,cne),X.Cd=function(e){cSe(H(e,18))},U(mU,`SelfLoopPreProcessor/lambda$2$Type`,1656),J(1672,1,lU,cm),X.Kf=function(e,t){P8e(this,H(e,36),t)},U(mU,`SelfLoopRouter`,1672),J(1673,1,{},lne),X.Kb=function(e){return new Yh(null,new Nb(H(e,30).a,16))},U(mU,`SelfLoopRouter/lambda$0$Type`,1673),J(1674,1,fB,une),X.Mb=function(e){return H(e,10).k==(fN(),CX)},U(mU,`SelfLoopRouter/lambda$1$Type`,1674),J(1675,1,fB,dne),X.Mb=function(e){return Cp(H(e,10),(hz(),$Q))},U(mU,`SelfLoopRouter/lambda$2$Type`,1675),J(1676,1,{},fne),X.Kb=function(e){return H(q(H(e,10),(hz(),$Q)),337)},U(mU,`SelfLoopRouter/lambda$3$Type`,1676),J(1677,1,Yz,xve),X.Cd=function(e){RNe(this.a,this.b,H(e,337))},U(mU,`SelfLoopRouter/lambda$4$Type`,1677),J(1678,1,lU,pne),X.Kf=function(e,t){Nrt(H(e,36),t)},U(mU,`SemiInteractiveCrossMinProcessor`,1678),J(1679,1,fB,mne),X.Mb=function(e){return H(e,10).k==(fN(),CX)},U(mU,`SemiInteractiveCrossMinProcessor/lambda$0$Type`,1679),J(1680,1,fB,an),X.Mb=function(e){return FAe(H(e,10))._b((fz(),z1))},U(mU,`SemiInteractiveCrossMinProcessor/lambda$1$Type`,1680),J(1681,1,dV,on),X.Ne=function(e,t){return ZKe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mU,`SemiInteractiveCrossMinProcessor/lambda$2$Type`,1681),J(1682,1,{},hne),X.Ve=function(e,t){return rPe(H(e,10),H(t,10))},U(mU,`SemiInteractiveCrossMinProcessor/lambda$3$Type`,1682),J(1684,1,lU,gne),X.Kf=function(e,t){HL(H(e,36),t)},U(mU,`SortByInputModelProcessor`,1684),J(1685,1,fB,_ne),X.Mb=function(e){return H(e,12).g.c.length!=0},U(mU,`SortByInputModelProcessor/lambda$0$Type`,1685),J(1686,1,Yz,Ba),X.Cd=function(e){E5e(this.a,H(e,12))},U(mU,`SortByInputModelProcessor/lambda$1$Type`,1686),J(1759,817,{},sqe),X.df=function(e){var t,n,r,i;switch(this.c=e,this.a.g){case 2:t=new go,_l(Av(new Yh(null,new Nb(this.c.a.b,16)),new sn),new jve(this,t)),YN(this,new yne),UC(t,new bne),t.c.length=0,_l(Av(new Yh(null,new Nb(this.c.a.b,16)),new xne),new Ha(t)),YN(this,new Sne),UC(t,new Cne),t.c.length=0,n=aSe(sT(Mv(new Yh(null,new Nb(this.c.a.b,16)),new Yue(this))),new wne),_l(new Yh(null,new Nb(this.c.a.a,16)),new wve(n,t)),YN(this,new Ene),UC(t,new Dne),t.c.length=0;break;case 3:r=new go,YN(this,new vne),i=aSe(sT(Mv(new Yh(null,new Nb(this.c.a.b,16)),new Va(this))),new Tne),_l(Av(new Yh(null,new Nb(this.c.a.b,16)),new One),new Eve(i,r)),YN(this,new kne),UC(r,new Ane),r.c.length=0;break;default:throw R(new ype)}},X.b=0,U(hU,`EdgeAwareScanlineConstraintCalculation`,1759),J(1760,1,gV,vne),X.Lb=function(e){return V(H(e,60).g,154)},X.Fb=function(e){return this===e},X.Mb=function(e){return V(H(e,60).g,154)},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$0$Type`,1760),J(1761,1,{},Va),X.Ye=function(e){return I7e(this.a,H(e,60))},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$1$Type`,1761),J(1769,1,pB,Sve),X.de=function(){Rj(this.a,this.b,-1)},X.b=0,U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$10$Type`,1769),J(1771,1,gV,yne),X.Lb=function(e){return V(H(e,60).g,154)},X.Fb=function(e){return this===e},X.Mb=function(e){return V(H(e,60).g,154)},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$11$Type`,1771),J(1772,1,Yz,bne),X.Cd=function(e){H(e,380).de()},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$12$Type`,1772),J(1773,1,fB,xne),X.Mb=function(e){return V(H(e,60).g,10)},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$13$Type`,1773),J(1775,1,Yz,Ha),X.Cd=function(e){OQe(this.a,H(e,60))},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$14$Type`,1775),J(1774,1,pB,Dve),X.de=function(){Rj(this.b,this.a,-1)},X.a=0,U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$15$Type`,1774),J(1776,1,gV,Sne),X.Lb=function(e){return V(H(e,60).g,10)},X.Fb=function(e){return this===e},X.Mb=function(e){return V(H(e,60).g,10)},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$16$Type`,1776),J(1777,1,Yz,Cne),X.Cd=function(e){H(e,380).de()},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$17$Type`,1777),J(1778,1,{},Yue),X.Ye=function(e){return L7e(this.a,H(e,60))},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$18$Type`,1778),J(1779,1,{},wne),X.We=function(){return 0},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$19$Type`,1779),J(1762,1,{},Tne),X.We=function(){return 0},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$2$Type`,1762),J(1781,1,Yz,wve),X.Cd=function(e){vg(this.a,this.b,H(e,316))},X.a=0,U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$20$Type`,1781),J(1780,1,pB,Tve),X.de=function(){ntt(this.a,this.b,-1)},X.b=0,U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$21$Type`,1780),J(1782,1,gV,Ene),X.Lb=function(e){return H(e,60),!0},X.Fb=function(e){return this===e},X.Mb=function(e){return H(e,60),!0},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$22$Type`,1782),J(1783,1,Yz,Dne),X.Cd=function(e){H(e,380).de()},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$23$Type`,1783),J(1763,1,fB,One),X.Mb=function(e){return V(H(e,60).g,10)},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$3$Type`,1763),J(1765,1,Yz,Eve),X.Cd=function(e){tje(this.a,this.b,H(e,60))},X.a=0,U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$4$Type`,1765),J(1764,1,pB,Ove),X.de=function(){Rj(this.b,this.a,-1)},X.a=0,U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$5$Type`,1764),J(1766,1,gV,kne),X.Lb=function(e){return H(e,60),!0},X.Fb=function(e){return this===e},X.Mb=function(e){return H(e,60),!0},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$6$Type`,1766),J(1767,1,Yz,Ane),X.Cd=function(e){H(e,380).de()},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$7$Type`,1767),J(1768,1,fB,sn),X.Mb=function(e){return V(H(e,60).g,154)},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$8$Type`,1768),J(1770,1,Yz,jve),X.Cd=function(e){BWe(this.a,this.b,H(e,60))},U(hU,`EdgeAwareScanlineConstraintCalculation/lambda$9$Type`,1770),J(1586,1,lU,KCe),X.Kf=function(e,t){hlt(this,H(e,36),t)};var aOt;U(hU,`HorizontalGraphCompactor`,1586),J(1587,1,{},Xue),X.ff=function(e,t){var n,r,i;return VUe(e,t)||(n=$b(e),r=$b(t),n&&n.k==(fN(),bX)||r&&r.k==(fN(),bX))?0:(i=H(q(this.a.a,(hz(),e$)),312),UCe(i,n?n.k:(fN(),SX),r?r.k:(fN(),SX)))},X.gf=function(e,t){var n,r,i;return VUe(e,t)?1:(n=$b(e),r=$b(t),i=H(q(this.a.a,(hz(),e$)),312),WCe(i,n?n.k:(fN(),SX),r?r.k:(fN(),SX)))},U(hU,`HorizontalGraphCompactor/1`,1587),J(1588,1,{},jne),X.ef=function(e,t){return Al(),e.a.i==0},U(hU,`HorizontalGraphCompactor/lambda$0$Type`,1588),J(1589,1,{},Zue),X.ef=function(e,t){return cPe(this.a,e,t)},U(hU,`HorizontalGraphCompactor/lambda$1$Type`,1589),J(1730,1,{},RUe);var oZ,oOt;U(hU,`LGraphToCGraphTransformer`,1730),J(1738,1,fB,Mne),X.Mb=function(e){return e!=null},U(hU,`LGraphToCGraphTransformer/0methodref$nonNull$Type`,1738),J(1731,1,{},Nne),X.Kb=function(e){return Im(),FO(q(H(H(e,60).g,10),(hz(),KQ)))},U(hU,`LGraphToCGraphTransformer/lambda$0$Type`,1731),J(1732,1,{},Pne),X.Kb=function(e){return Im(),gZe(H(H(e,60).g,154))},U(hU,`LGraphToCGraphTransformer/lambda$1$Type`,1732),J(1741,1,fB,Fne),X.Mb=function(e){return Im(),V(H(e,60).g,10)},U(hU,`LGraphToCGraphTransformer/lambda$10$Type`,1741),J(1742,1,Yz,Ine),X.Cd=function(e){xPe(H(e,60))},U(hU,`LGraphToCGraphTransformer/lambda$11$Type`,1742),J(1743,1,fB,Lne),X.Mb=function(e){return Im(),V(H(e,60).g,154)},U(hU,`LGraphToCGraphTransformer/lambda$12$Type`,1743),J(1747,1,Yz,Rne),X.Cd=function(e){hZe(H(e,60))},U(hU,`LGraphToCGraphTransformer/lambda$13$Type`,1747),J(1744,1,Yz,Que),X.Cd=function(e){Fd(this.a,H(e,8))},X.a=0,U(hU,`LGraphToCGraphTransformer/lambda$14$Type`,1744),J(1745,1,Yz,$ue),X.Cd=function(e){Dxe(this.a,H(e,116))},X.a=0,U(hU,`LGraphToCGraphTransformer/lambda$15$Type`,1745),J(1746,1,Yz,ede),X.Cd=function(e){Exe(this.a,H(e,8))},X.a=0,U(hU,`LGraphToCGraphTransformer/lambda$16$Type`,1746),J(1748,1,{},cn),X.Kb=function(e){return Im(),new Yh(null,new x_(new jg(Yf(AO(H(e,10)).a.Kc(),new f))))},U(hU,`LGraphToCGraphTransformer/lambda$17$Type`,1748),J(1749,1,fB,zne),X.Mb=function(e){return Im(),Vx(H(e,18))},U(hU,`LGraphToCGraphTransformer/lambda$18$Type`,1749),J(1750,1,Yz,tde),X.Cd=function(e){eWe(this.a,H(e,18))},U(hU,`LGraphToCGraphTransformer/lambda$19$Type`,1750),J(1734,1,Yz,nde),X.Cd=function(e){gLe(this.a,H(e,154))},U(hU,`LGraphToCGraphTransformer/lambda$2$Type`,1734),J(1751,1,{},ln),X.Kb=function(e){return Im(),new Yh(null,new Nb(H(e,30).a,16))},U(hU,`LGraphToCGraphTransformer/lambda$20$Type`,1751),J(1752,1,{},un),X.Kb=function(e){return Im(),new Yh(null,new x_(new jg(Yf(AO(H(e,10)).a.Kc(),new f))))},U(hU,`LGraphToCGraphTransformer/lambda$21$Type`,1752),J(1753,1,{},Bne),X.Kb=function(e){return Im(),H(q(H(e,18),(hz(),r$)),15)},U(hU,`LGraphToCGraphTransformer/lambda$22$Type`,1753),J(1754,1,fB,dn),X.Mb=function(e){return GCe(H(e,15))},U(hU,`LGraphToCGraphTransformer/lambda$23$Type`,1754),J(1755,1,Yz,rde),X.Cd=function(e){C7e(this.a,H(e,15))},U(hU,`LGraphToCGraphTransformer/lambda$24$Type`,1755),J(1733,1,Yz,Mve),X.Cd=function(e){vze(this.a,this.b,H(e,154))},U(hU,`LGraphToCGraphTransformer/lambda$3$Type`,1733),J(1735,1,{},fn),X.Kb=function(e){return Im(),new Yh(null,new Nb(H(e,30).a,16))},U(hU,`LGraphToCGraphTransformer/lambda$4$Type`,1735),J(1736,1,{},Vne),X.Kb=function(e){return Im(),new Yh(null,new x_(new jg(Yf(AO(H(e,10)).a.Kc(),new f))))},U(hU,`LGraphToCGraphTransformer/lambda$5$Type`,1736),J(1737,1,{},Hne),X.Kb=function(e){return Im(),H(q(H(e,18),(hz(),r$)),15)},U(hU,`LGraphToCGraphTransformer/lambda$6$Type`,1737),J(1739,1,Yz,Ua),X.Cd=function(e){R7e(this.a,H(e,15))},U(hU,`LGraphToCGraphTransformer/lambda$8$Type`,1739),J(1740,1,Yz,Nve),X.Cd=function(e){lSe(this.a,this.b,H(e,154))},U(hU,`LGraphToCGraphTransformer/lambda$9$Type`,1740),J(1729,1,{},Une),X.cf=function(e){var t,n,r,i,a;for(this.a=e,this.d=new Ope,this.c=vS(Cwt,jz,125,this.a.a.a.c.length,0,1),this.b=0,n=new L(this.a.a.a);n.a=_&&(Af(o,kD(f)),b=r.Math.max(b,x[f-1]-p),l+=g,v+=x[f-1]-v,p=x[f-1],g=u[f]),g=r.Math.max(g,u[f]),++f;l+=g}h=r.Math.min(1/b,1/t.b/l),h>i&&(i=h,n=o)}return n},X.pg=function(){return!1},U(CU,`MSDCutIndexHeuristic`,816),J(1683,1,lU,jre),X.Kf=function(e,t){Tct(H(e,36),t)},U(CU,`SingleEdgeGraphWrapper`,1683),J(232,22,{3:1,34:1,22:1,232:1},Cu);var vZ,yZ,bZ,xZ,SZ,CZ,wZ=vw(wU,`CenterEdgeLabelPlacementStrategy`,232,sJ,FHe,EDe),AOt;J(431,22,{3:1,34:1,22:1,431:1},Rve);var TZ,EZ,DZ=vw(wU,`ConstraintCalculationStrategy`,431,sJ,qPe,DDe),jOt;J(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},zve),X.dg=function(){return e9e(this)},X.qg=function(){return e9e(this)};var OZ,kZ,MOt,NOt=vw(wU,`CrossingMinimizationStrategy`,322,sJ,wIe,ODe),AZ;J(351,22,{3:1,34:1,22:1,351:1},Bve);var POt,FOt,jZ,IOt=vw(wU,`CuttingStrategy`,351,sJ,TIe,kDe),MZ;J(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},wu),X.dg=function(){return Wet(this)},X.qg=function(){return Wet(this)};var LOt,ROt,NZ,zOt,PZ,BOt=vw(wU,`CycleBreakingStrategy`,348,sJ,MBe,ADe),VOt;J(428,22,{3:1,34:1,22:1,428:1},Vve);var FZ,HOt,UOt=vw(wU,`DirectionCongruency`,428,sJ,Ay,jDe),WOt;J(460,22,{3:1,34:1,22:1,460:1},Hve);var IZ,GOt,LZ,KOt=vw(wU,`EdgeConstraint`,460,sJ,EIe,RDe),qOt;J(283,22,{3:1,34:1,22:1,283:1},Tu);var RZ,JOt,zZ,BZ,VZ,YOt,XOt=vw(wU,`EdgeLabelSideSelection`,283,sJ,MHe,zDe),ZOt;J(488,22,{3:1,34:1,22:1,488:1},Uve);var HZ,QOt,$Ot=vw(wU,`EdgeStraighteningStrategy`,488,sJ,eFe,BDe),ekt;J(281,22,{3:1,34:1,22:1,281:1},Eu);var tkt,nkt,rkt,UZ,ikt,akt,okt=vw(wU,`FixedAlignment`,281,sJ,NHe,LDe),skt;J(282,22,{3:1,34:1,22:1,282:1},Du);var WZ,GZ,KZ,qZ,JZ,YZ,XZ=vw(wU,`GraphCompactionStrategy`,282,sJ,PHe,MDe),ZZ;J(259,22,{3:1,34:1,22:1,259:1},Ou);var QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ=vw(wU,`GraphProperties`,259,sJ,Jw,NDe),ckt;J(299,22,{3:1,34:1,22:1,299:1},Wve);var lQ,lkt,uQ,dQ=vw(wU,`GreedySwitchType`,299,sJ,DIe,PDe),fQ;J(311,22,{3:1,34:1,22:1,311:1},Gve);var pQ,mQ,hQ,ukt=vw(wU,`InLayerConstraint`,311,sJ,OIe,FDe),dkt;J(429,22,{3:1,34:1,22:1,429:1},Kve);var fkt,pkt,mkt=vw(wU,`InteractiveReferencePoint`,429,sJ,KPe,IDe),hkt,gkt,gQ,_Q,vQ,yQ,bQ,xQ,_kt,SQ,CQ,wQ,TQ,EQ,DQ,OQ,kQ,vkt,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,ykt,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,bkt,xkt,Skt,Ckt,wkt,Tkt,Ekt,qQ,JQ,Dkt,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,Okt,kkt,Akt,i$;J(171,22,{3:1,34:1,22:1,171:1},ku);var a$,o$,s$,c$,l$,jkt=vw(wU,`LayerConstraint`,171,sJ,PBe,VDe),u$;J(859,1,xV,Rce),X.hf=function(e){NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,hgt),``),`Direction Congruency`),`Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other.`),oAt),(PN(),V3)),UOt),dO((cA(),F3))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,ggt),``),`Feedback Edges`),`Whether feedback edges should be highlighted by routing around the nodes.`),(lp(),!1)),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,EU),``),`Interactive Reference Point`),`Determines which point of a node is considered by interactive layout phases.`),wAt),V3),mkt),dO(F3)))),Xb(e,EU,wgt,EAt),Xb(e,EU,AU,TAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,_gt),``),`Merge Edges`),`Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,vgt),``),`Merge Hierarchy-Crossing Edges`),`If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port.`),!0),z3),CJ),dO(F3)))),NO(e,new NN(Phe(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,ygt),``),`Allow Non-Flow Ports To Switch Sides`),`Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed.`),!1),z3),CJ),dO(I3)),K(B(PJ,1),Kz,2,6,[`org.eclipse.elk.layered.northOrSouthPort`])))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,bgt),``),`Port Sorting Strategy`),`Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes.`),k$),V3),lNt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,xgt),``),`Thoroughness`),`How much effort should be spent to produce a nice layout.`),kD(7)),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Sgt),``),`Add Unnecessary Bendpoints`),`Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Cgt),``),`Generate Position and Layer IDs`),`If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,wgt),`cycleBreaking`),`Cycle Breaking Strategy`),`Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right).`),iAt),V3),BOt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,DU),p_t),`Node Layering Strategy`),`Strategy for node layering.`),BAt),V3),WMt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Tgt),p_t),`Layer Constraint`),`Determines a constraint on the placement of the node regarding the layering.`),jAt),V3),jkt),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Egt),p_t),`Layer Choice Constraint`),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),U3),AJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Dgt),p_t),`Layer ID`),`Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),kD(-1)),U3),AJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Ogt),m_t),`Upper Bound On Width [MinWidth Layerer]`),`Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected.`),kD(4)),U3),AJ),dO(F3)))),Xb(e,Ogt,DU,PAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,OU),m_t),`Upper Layer Estimation Scaling Factor [MinWidth Layerer]`),`Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected.`),kD(2)),U3),AJ),dO(F3)))),Xb(e,OU,DU,IAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,kgt),h_t),`Node Promotion Strategy`),`Reduces number of dummy nodes after layering phase (if possible).`),zAt),V3),rNt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,kU),h_t),`Max Node Promotion Iterations`),`Limits the number of iterations for node promotion.`),kD(0)),U3),AJ),dO(F3)))),Xb(e,kU,kgt,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Agt),`layering.coffmanGraham`),`Layer Bound`),`The maximum number of nodes allowed per layer.`),kD(Ez)),U3),AJ),dO(F3)))),Xb(e,Agt,DU,OAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,AU),XU),`Crossing Minimization Strategy`),`Strategy for crossing minimization.`),nAt),V3),NOt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,jgt),XU),`Force Node Model Order`),`The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Mgt),XU),`Hierarchical Sweepiness`),`How likely it is to use cross-hierarchy (1) vs bottom-up (-1).`),.1),B3),OJ),dO(F3)))),Xb(e,Mgt,g_t,v$),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Ngt),XU),`Semi-Interactive Crossing Minimization`),`Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints.`),!1),z3),CJ),dO(F3)))),Xb(e,Ngt,AU,eAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Pgt),XU),`In Layer Predecessor of`),`Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer`),null),G3),PJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Fgt),XU),`In Layer Successor of`),`Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer`),null),G3),PJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Igt),XU),`Position Choice Constraint`),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),U3),AJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Lgt),XU),`Position ID`),`Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),kD(-1)),U3),AJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Rgt),__t),`Greedy Switch Activation Threshold`),`By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation.`),kD(40)),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,zgt),__t),`Greedy Switch Crossing Minimization`),`Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used.`),Xkt),V3),dQ),dO(F3)))),Xb(e,zgt,AU,g$),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,jU),`crossingMinimization.greedySwitchHierarchical`),`Greedy Switch Crossing Minimization (hierarchical)`),`Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges.`),qkt),V3),dQ),dO(F3)))),Xb(e,jU,AU,Jkt),Xb(e,jU,g_t,h$),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,MU),v_t),`Node Placement Strategy`),`Strategy for node placement.`),O$),V3),$Mt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,NU),v_t),`Favor Straight Edges Over Balancing`),`Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false.`),z3),CJ),dO(F3)))),Xb(e,NU,MU,YAt),Xb(e,NU,MU,XAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Bgt),y_t),`BK Edge Straightening`),`Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments.`),UAt),V3),$Ot),dO(F3)))),Xb(e,Bgt,MU,WAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Vgt),y_t),`BK Fixed Alignment`),`Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four.`),KAt),V3),okt),dO(F3)))),Xb(e,Vgt,MU,qAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Hgt),`nodePlacement.linearSegments`),`Linear Segments Deflection Dampening`),`Dampens the movement of nodes to keep the diagram from getting too large.`),.3),B3),OJ),dO(F3)))),Xb(e,Hgt,MU,QAt),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,PU),`nodePlacement.networkSimplex`),`Node Flexibility`),`Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent.`),V3),k0),dO(P3)))),Xb(e,PU,MU,rjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Ugt),`nodePlacement.networkSimplex.nodeFlexibility`),`Node Flexibility Default`),`Default value of the 'nodeFlexibility' option for the children of a hierarchical node.`),tjt),V3),k0),dO(F3)))),Xb(e,Ugt,MU,njt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Wgt),b_t),`Self-Loop Distribution`),`Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE.`),fAt),V3),hNt),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Ggt),b_t),`Self-Loop Ordering`),`Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE.`),w$),V3),yNt),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,FU),`edgeRouting.splines`),`Spline Routing Mode`),`Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes.`),mAt),V3),CNt),dO(F3)))),Xb(e,FU,ZU,hAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,IU),`edgeRouting.splines.sloppy`),`Sloppy Spline Layer Spacing Factor`),`Spacing factor for routing area between layers when using sloppy spline routing.`),.2),B3),OJ),dO(F3)))),Xb(e,IU,ZU,_At),Xb(e,IU,FU,vAt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Kgt),`edgeRouting.polyline`),`Sloped Edge Zone Width`),`Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer.`),2),B3),OJ),dO(F3)))),Xb(e,Kgt,ZU,S$),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,qgt),QU),`Spacing Base Value`),`An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node.`),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Jgt),QU),`Edge Node Between Layers Spacing`),`The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Ygt),QU),`Edge Edge Between Layer Spacing`),`Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Xgt),QU),`Node Node Between Layers Spacing`),`The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself.`),20),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Zgt),x_t),`Direction Priority`),`Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase.`),kD(0)),U3),AJ),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Qgt),x_t),`Shortness Priority`),`Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase.`),kD(0)),U3),AJ),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,$gt),x_t),`Straightness Priority`),`Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement.`),kD(0)),U3),AJ),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,e_t),S_t),eH),`Tries to further compact components (disconnected sub-graphs).`),!1),z3),CJ),dO(F3)))),Xb(e,e_t,LH,!0),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,t_t),C_t),`Post Compaction Strategy`),w_t),Ikt),V3),XZ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,n_t),C_t),`Post Compaction Constraint Calculation`),w_t),Fkt),V3),DZ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,LU),T_t),`High Degree Node Treatment`),`Makes room around high degree nodes to place leafs and trees.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,r_t),T_t),`High Degree Node Threshold`),`Whether a node is considered to have a high degree.`),kD(16)),U3),AJ),dO(F3)))),Xb(e,r_t,LU,!0),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,i_t),T_t),`High Degree Node Maximum Tree Height`),`Maximum height of a subtree connected to a high degree node to be moved to separate layers.`),kD(5)),U3),AJ),dO(F3)))),Xb(e,i_t,LU,!0),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,RU),E_t),`Graph Wrapping Strategy`),`For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'.`),Mjt),V3),$0),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,zU),E_t),`Additional Wrapped Edges Spacing`),`To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing.`),10),B3),OJ),dO(F3)))),Xb(e,zU,RU,hjt),Xb(e,zU,RU,gjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,BU),E_t),`Correction Factor for Wrapping`),`At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option.`),1),B3),OJ),dO(F3)))),Xb(e,BU,RU,vjt),Xb(e,BU,RU,j$),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,VU),D_t),`Cutting Strategy`),`The strategy by which the layer indexes are determined at which the layering crumbles into chunks.`),M$),V3),IOt),dO(F3)))),Xb(e,VU,RU,Tjt),Xb(e,VU,RU,N$),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,a_t),D_t),`Manually Specified Cuts`),`Allows the user to specify her own cuts for a certain graph.`),W3),aJ),dO(F3)))),Xb(e,a_t,VU,bjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,o_t),`wrapping.cutting.msd`),`MSD Freedom`),`The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts.`),Sjt),U3),AJ),dO(F3)))),Xb(e,o_t,VU,Cjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,HU),O_t),`Validification Strategy`),`When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed.`),Ljt),V3),ONt),dO(F3)))),Xb(e,HU,RU,Rjt),Xb(e,HU,RU,zjt),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,UU),O_t),`Valid Indices for Wrapping`),null),W3),aJ),dO(F3)))),Xb(e,UU,RU,Pjt),Xb(e,UU,RU,Fjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,WU),k_t),`Improve Cuts`),`For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought.`),!0),z3),CJ),dO(F3)))),Xb(e,WU,RU,kjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,GU),k_t),`Distance Penalty When Improving Cuts`),null),2),B3),OJ),dO(F3)))),Xb(e,GU,RU,Djt),Xb(e,GU,WU,!0),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,s_t),k_t),`Improve Wrapped Edges`),`The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges.`),!0),z3),CJ),dO(F3)))),Xb(e,s_t,RU,jjt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,c_t),A_t),`Edge Label Side Selection`),`Method to decide on edge label sides.`),uAt),V3),XOt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,l_t),A_t),`Edge Center Label Placement Strategy`),`Determines in which layer center labels of long edges should be placed.`),cAt),V3),wZ),gg(F3,K(B(L3,1),lB,170,0,[N3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,KU),$U),`Consider Model Order`),`Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting.`),Ukt),V3),oNt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,qU),$U),`Consider Port Order`),`If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,u_t),$U),`No Model Order`),`Set on a node to not set a model order for this node even though it is a real node.`),!1),z3),CJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,JU),$U),`Consider Model Order for Components`),`If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected.`),p$),V3),qEt),dO(F3)))),Xb(e,JU,LH,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,d_t),$U),`Long Edge Ordering Strategy`),`Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout.`),zkt),V3),qMt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,YU),$U),`Crossing Counter Node Order Influence`),`Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0).`),0),B3),OJ),dO(F3)))),Xb(e,YU,KU,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,f_t),$U),`Crossing Counter Port Order Influence`),`Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0).`),0),B3),OJ),dO(F3)))),Xb(e,f_t,KU,null),Bpt((new zce,e))};var Mkt,Nkt,Pkt,Fkt,d$,Ikt,f$,p$,m$,Lkt,Rkt,zkt,Bkt,Vkt,Hkt,Ukt,Wkt,Gkt,Kkt,qkt,Jkt,h$,Ykt,Xkt,g$,_$,v$,Zkt,y$,Qkt,b$,$kt,eAt,tAt,nAt,rAt,iAt,aAt,oAt,sAt,cAt,lAt,uAt,x$,S$,dAt,fAt,C$,w$,pAt,mAt,hAt,gAt,_At,vAt,yAt,bAt,T$,xAt,SAt,CAt,wAt,TAt,EAt,DAt,OAt,kAt,AAt,jAt,MAt,NAt,PAt,FAt,IAt,LAt,RAt,zAt,E$,BAt,VAt,D$,HAt,UAt,WAt,GAt,KAt,qAt,JAt,YAt,XAt,ZAt,QAt,$At,ejt,tjt,njt,rjt,ijt,O$,ajt,k$,ojt,sjt,cjt,ljt,ujt,djt,fjt,pjt,mjt,A$,hjt,gjt,_jt,vjt,j$,yjt,bjt,xjt,Sjt,Cjt,wjt,M$,Tjt,N$,Ejt,Djt,Ojt,kjt,Ajt,jjt,P$,Mjt,Njt,Pjt,Fjt,Ijt,Ljt,Rjt,zjt;U(wU,`LayeredMetaDataProvider`,859),J(998,1,xV,zce),X.hf=function(e){Bpt(e)};var F$,Bjt,Vjt,I$,Hjt,Ujt,L$,R$,z$,Wjt,Gjt,Kjt,qjt,B$,Jjt,V$,Yjt,H$,U$,Xjt,Zjt,Qjt,W$,G$,$jt,K$,q$,eMt,J$,tMt,nMt,rMt,iMt,Y$,X$,Z$,Q$,$$,e1,aMt,t1,oMt,n1,sMt,r1,i1,a1,o1,cMt,s1,c1,l1,u1,lMt,d1,uMt,dMt,f1,p1,fMt,pMt,mMt,m1,h1,g1,hMt,gMt,_1,v1,_Mt,y1,b1,vMt,x1,S1,C1,w1,yMt,T1,E1,D1,O1,bMt,xMt,k1,SMt,CMt,wMt,TMt,A1,j1,M1,N1,P1,F1,I1,L1,R1,EMt,z1,DMt,B1,OMt,V1,kMt,AMt,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,jMt,MMt,NMt,PMt,FMt,c0,IMt,LMt,l0,RMt,u0,zMt,d0,BMt,f0,p0,m0;U(wU,`LayeredOptions`,998),J(999,1,{},Mre),X.sf=function(){return new Fpe},X.tf=function(e){},U(wU,`LayeredOptions/LayeredFactory`,999),J(1391,1,{}),X.a=0;var VMt;U(mW,`ElkSpacings/AbstractSpacingsBuilder`,1391),J(792,1391,{},rk);var h0,g0;U(wU,`LayeredSpacings/LayeredSpacingsBuilder`,792),J(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},Au),X.dg=function(){return lat(this)},X.qg=function(){return lat(this)};var _0,v0,y0,b0,x0,HMt,S0,C0,UMt,WMt=vw(wU,`LayeringStrategy`,265,sJ,UGe,HDe),GMt;J(390,22,{3:1,34:1,22:1,390:1},qve);var w0,KMt,T0,qMt=vw(wU,`LongEdgeOrderingStrategy`,390,sJ,kIe,UDe),JMt;J(203,22,{3:1,34:1,22:1,203:1},Jve);var E0,D0,O0,YMt,k0=vw(wU,`NodeFlexibility`,203,sJ,HRe,WDe),XMt;J(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},ju),X.dg=function(){return Uet(this)},X.qg=function(){return Uet(this)};var A0,ZMt,j0,M0,QMt,$Mt=vw(wU,`NodePlacementStrategy`,323,sJ,NBe,GDe),eNt;J(243,22,{3:1,34:1,22:1,243:1},Mu);var tNt,N0,P0,F0,I0,nNt,L0,R0,z0,B0,rNt=vw(wU,`NodePromotionStrategy`,243,sJ,Yw,KDe),iNt;J(284,22,{3:1,34:1,22:1,284:1},Yve);var aNt,V0,H0,U0,oNt=vw(wU,`OrderingStrategy`,284,sJ,URe,qDe),W0;J(430,22,{3:1,34:1,22:1,430:1},Xve);var sNt,cNt,lNt=vw(wU,`PortSortingStrategy`,430,sJ,JPe,JDe),G0;J(463,22,{3:1,34:1,22:1,463:1},Zve);var K0,q0,J0,uNt=vw(wU,`PortType`,463,sJ,AIe,Lm),dNt;J(387,22,{3:1,34:1,22:1,387:1},Qve);var fNt,pNt,mNt,hNt=vw(wU,`SelfLoopDistributionStrategy`,387,sJ,jIe,YDe),gNt;J(349,22,{3:1,34:1,22:1,349:1},$ve);var _Nt,Y0,vNt,yNt=vw(wU,`SelfLoopOrderingStrategy`,349,sJ,Db,XDe),bNt;J(312,1,{312:1},rut),U(wU,`Spacings`,312),J(350,22,{3:1,34:1,22:1,350:1},eye);var xNt,SNt,X0,CNt=vw(wU,`SplineRoutingMode`,350,sJ,MIe,Rm),wNt;J(352,22,{3:1,34:1,22:1,352:1},tye);var TNt,ENt,DNt,ONt=vw(wU,`ValidifyStrategy`,352,sJ,NIe,zm),kNt;J(388,22,{3:1,34:1,22:1,388:1},nye);var Z0,ANt,Q0,$0=vw(wU,`WrappingStrategy`,388,sJ,PIe,ZDe),jNt;J(1398,1,hW,Ur),X.rg=function(e){return H(e,36),MNt},X.Kf=function(e,t){plt(this,H(e,36),t)};var MNt;U(gW,`DepthFirstCycleBreaker`,1398),J(793,1,hW,YAe),X.rg=function(e){return H(e,36),NNt},X.Kf=function(e,t){dpt(this,H(e,36),t)},X.sg=function(e){return H(Wh(e,kA(this.d,e.c.length)),10)};var NNt;U(gW,`GreedyCycleBreaker`,793),J(1401,793,hW,qbe),X.sg=function(e){var t,n,r,i=null;for(t=Ez,r=new L(e);r.a1&&(Vs(Fp(q($_((jb(0,e.c.length),H(e.c[0],10))),(fz(),V$))))?Ftt(e,this.d,H(this,669)):(iy(),bf(e,this.d)),sJe(this.e,e))},X.lg=function(e,t,n,r){var i,a,o,s,l,u,d;for(t!=Zh(n,e.length)&&(a=e[t-(n?1:-1)],CVe(this.f,a,n?(xw(),q0):(xw(),K0))),i=e[t][0],d=!r||i.k==(fN(),bX),u=$x(e[t]),this.vg(u,d,!1,n),o=0,l=new L(u);l.a`),e0?eb(this.a,e[t-1],e[t]):!n&&t1&&(Vs(Fp(q($_((jb(0,e.c.length),H(e.c[0],10))),(fz(),V$))))?Ftt(e,this.d,this):(iy(),bf(e,this.d)),Vs(Fp(q($_((jb(0,e.c.length),H(e.c[0],10))),V$)))||sJe(this.e,e))},U(bW,`ModelOrderBarycenterHeuristic`,669),J(1866,1,dV,bde),X.Ne=function(e,t){return DN(this.a,H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(bW,`ModelOrderBarycenterHeuristic/lambda$0$Type`,1866),J(1423,1,hW,Vce),X.rg=function(e){var t;return H(e,36),t=Bd(qNt),zh(t,(XM(),rX),(_z(),KX)),t},X.Kf=function(e,t){UNe((H(e,36),t))};var qNt;U(bW,`NoCrossingMinimizer`,1423),J(809,413,vW,Bhe),X.tg=function(e,t,n){var r,i,a,o,s,l,u,d,f=this.g,p,m;switch(n.g){case 1:for(i=0,a=0,d=new L(e.j);d.a1&&(i.j==(XR(),j5)?this.b[e]=!0:i.j==Z5&&e>0&&(this.b[e-1]=!0))},X.f=0,U(_U,`AllCrossingsCounter`,1861),J(595,1,{},Rw),X.b=0,X.d=0,U(_U,`BinaryIndexedTree`,595),J(532,1,{},bm);var JNt,s2;U(_U,`CrossingsCounter`,532),J(1950,1,dV,xde),X.Ne=function(e,t){return OAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(_U,`CrossingsCounter/lambda$0$Type`,1950),J(1951,1,dV,Sde),X.Ne=function(e,t){return kAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(_U,`CrossingsCounter/lambda$1$Type`,1951),J(1952,1,dV,Cde),X.Ne=function(e,t){return AAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(_U,`CrossingsCounter/lambda$2$Type`,1952),J(1953,1,dV,wde),X.Ne=function(e,t){return jAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(_U,`CrossingsCounter/lambda$3$Type`,1953),J(1954,1,Yz,qa),X.Cd=function(e){SUe(this.a,H(e,12))},U(_U,`CrossingsCounter/lambda$4$Type`,1954),J(1955,1,fB,Tde),X.Mb=function(e){return fye(this.a,H(e,12))},U(_U,`CrossingsCounter/lambda$5$Type`,1955),J(1956,1,Yz,Ede),X.Cd=function(e){Obe(this,e)},U(_U,`CrossingsCounter/lambda$6$Type`,1956),J(1957,1,Yz,iye),X.Cd=function(e){var t;$m(),dx(this.b,(t=this.a,H(e,12),t))},U(_U,`CrossingsCounter/lambda$7$Type`,1957),J(839,1,gV,Hre),X.Lb=function(e){return $m(),Cp(H(e,12),(hz(),qQ))},X.Fb=function(e){return this===e},X.Mb=function(e){return $m(),Cp(H(e,12),(hz(),qQ))},U(_U,`CrossingsCounter/lambda$8$Type`,839),J(1949,1,{},Dde),U(_U,`HyperedgeCrossingsCounter`,1949),J(478,1,{34:1,478:1},WTe),X.Fd=function(e){return Q$e(this,H(e,478))},X.b=0,X.c=0,X.e=0,X.f=0;var YNt=U(_U,`HyperedgeCrossingsCounter/Hyperedge`,478);J(374,1,{34:1,374:1},Rv),X.Fd=function(e){return mtt(this,H(e,374))},X.b=0,X.c=0;var XNt=U(_U,`HyperedgeCrossingsCounter/HyperedgeCorner`,374);J(531,22,{3:1,34:1,22:1,531:1},aye);var c2,l2,ZNt=vw(_U,`HyperedgeCrossingsCounter/HyperedgeCorner/Type`,531,sJ,YPe,$De),QNt;J(1425,1,hW,Hce),X.rg=function(e){return H(q(H(e,36),(hz(),jQ)),21).Hc((BF(),tQ))?$Nt:null},X.Kf=function(e,t){Uj(this,H(e,36),t)};var $Nt;U(xW,`InteractiveNodePlacer`,1425),J(1426,1,hW,Uce),X.rg=function(e){return H(q(H(e,36),(hz(),jQ)),21).Hc((BF(),tQ))?ePt:null},X.Kf=function(e,t){f2e(this,H(e,36),t)};var ePt,u2,d2;U(xW,`LinearSegmentsNodePlacer`,1426),J(261,1,{34:1,261:1},Ipe),X.Fd=function(e){return Ehe(this,H(e,261))},X.Fb=function(e){var t;return V(e,261)?(t=H(e,261),this.b==t.b):!1},X.Hb=function(){return this.b},X.Ib=function(){return`ls`+rN(this.e)},X.a=0,X.b=0,X.c=-1,X.d=-1,X.g=0;var tPt=U(xW,`LinearSegmentsNodePlacer/LinearSegment`,261);J(1428,1,hW,XAe),X.rg=function(e){return H(q(H(e,36),(hz(),jQ)),21).Hc((BF(),tQ))?f2:null},X.Kf=function(e,t){Yft(this,H(e,36),t)},X.b=0,X.g=0;var f2;U(xW,`NetworkSimplexPlacer`,1428),J(1447,1,dV,Ure),X.Ne=function(e,t){return Sf(H(e,17).a,H(t,17).a)},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(xW,`NetworkSimplexPlacer/0methodref$compare$Type`,1447),J(1449,1,dV,Wre),X.Ne=function(e,t){return Sf(H(e,17).a,H(t,17).a)},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(xW,`NetworkSimplexPlacer/1methodref$compare$Type`,1449),J(655,1,{655:1},oye);var p2=U(xW,`NetworkSimplexPlacer/EdgeRep`,655);J(412,1,{412:1},zv),X.b=!1;var m2=U(xW,`NetworkSimplexPlacer/NodeRep`,412);J(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Bpe),U(xW,`NetworkSimplexPlacer/Path`,515),J(1429,1,{},Gre),X.Kb=function(e){return H(e,18).d.i.k},U(xW,`NetworkSimplexPlacer/Path/lambda$0$Type`,1429),J(1430,1,fB,Kre),X.Mb=function(e){return H(e,273)==(fN(),SX)},U(xW,`NetworkSimplexPlacer/Path/lambda$1$Type`,1430),J(1431,1,{},qre),X.Kb=function(e){return H(e,18).d.i},U(xW,`NetworkSimplexPlacer/Path/lambda$2$Type`,1431),J(1432,1,fB,Ode),X.Mb=function(e){return mTe(x$e(H(e,10)))},U(xW,`NetworkSimplexPlacer/Path/lambda$3$Type`,1432),J(1433,1,fB,mn),X.Mb=function(e){return Ah(H(e,12))},U(xW,`NetworkSimplexPlacer/lambda$0$Type`,1433),J(1434,1,Yz,sye),X.Cd=function(e){uSe(this.a,this.b,H(e,12))},U(xW,`NetworkSimplexPlacer/lambda$1$Type`,1434),J(1443,1,Yz,kde),X.Cd=function(e){V7e(this.a,H(e,18))},U(xW,`NetworkSimplexPlacer/lambda$10$Type`,1443),J(1444,1,{},Jre),X.Kb=function(e){return fb(),new Yh(null,new Nb(H(e,30).a,16))},U(xW,`NetworkSimplexPlacer/lambda$11$Type`,1444),J(1445,1,Yz,Ade),X.Cd=function(e){Yit(this.a,H(e,10))},U(xW,`NetworkSimplexPlacer/lambda$12$Type`,1445),J(1446,1,{},Yre),X.Kb=function(e){return fb(),kD(H(e,125).e)},U(xW,`NetworkSimplexPlacer/lambda$13$Type`,1446),J(1448,1,{},Xre),X.Kb=function(e){return fb(),kD(H(e,125).e)},U(xW,`NetworkSimplexPlacer/lambda$15$Type`,1448),J(1450,1,fB,Zre),X.Mb=function(e){return fb(),H(e,412).c.k==(fN(),CX)},U(xW,`NetworkSimplexPlacer/lambda$17$Type`,1450),J(1451,1,fB,Qre),X.Mb=function(e){return fb(),H(e,412).c.j.c.length>1},U(xW,`NetworkSimplexPlacer/lambda$18$Type`,1451),J(1452,1,Yz,Bv),X.Cd=function(e){KQe(this.c,this.b,this.d,this.a,H(e,412))},X.c=0,X.d=0,U(xW,`NetworkSimplexPlacer/lambda$19$Type`,1452),J(1435,1,{},$re),X.Kb=function(e){return fb(),new Yh(null,new Nb(H(e,30).a,16))},U(xW,`NetworkSimplexPlacer/lambda$2$Type`,1435),J(1453,1,Yz,jde),X.Cd=function(e){fSe(this.a,H(e,12))},X.a=0,U(xW,`NetworkSimplexPlacer/lambda$20$Type`,1453),J(1454,1,{},eie),X.Kb=function(e){return fb(),new Yh(null,new Nb(H(e,30).a,16))},U(xW,`NetworkSimplexPlacer/lambda$21$Type`,1454),J(1455,1,Yz,Mde),X.Cd=function(e){KSe(this.a,H(e,10))},U(xW,`NetworkSimplexPlacer/lambda$22$Type`,1455),J(1456,1,fB,tie),X.Mb=function(e){return mTe(e)},U(xW,`NetworkSimplexPlacer/lambda$23$Type`,1456),J(1457,1,{},nie),X.Kb=function(e){return fb(),new Yh(null,new Nb(H(e,30).a,16))},U(xW,`NetworkSimplexPlacer/lambda$24$Type`,1457),J(1458,1,fB,Ja),X.Mb=function(e){return _xe(this.a,H(e,10))},U(xW,`NetworkSimplexPlacer/lambda$25$Type`,1458),J(1459,1,Yz,cye),X.Cd=function(e){l5e(this.a,this.b,H(e,10))},U(xW,`NetworkSimplexPlacer/lambda$26$Type`,1459),J(1460,1,fB,rie),X.Mb=function(e){return fb(),!Vx(H(e,18))},U(xW,`NetworkSimplexPlacer/lambda$27$Type`,1460),J(1461,1,fB,iie),X.Mb=function(e){return fb(),!Vx(H(e,18))},U(xW,`NetworkSimplexPlacer/lambda$28$Type`,1461),J(1462,1,{},Nde),X.Ve=function(e,t){return dSe(this.a,H(e,30),H(t,30))},U(xW,`NetworkSimplexPlacer/lambda$29$Type`,1462),J(1436,1,{},aie),X.Kb=function(e){return fb(),new Yh(null,new x_(new jg(Yf(AO(H(e,10)).a.Kc(),new f))))},U(xW,`NetworkSimplexPlacer/lambda$3$Type`,1436),J(1437,1,fB,oie),X.Mb=function(e){return fb(),hRe(H(e,18))},U(xW,`NetworkSimplexPlacer/lambda$4$Type`,1437),J(1438,1,Yz,Pde),X.Cd=function(e){Sct(this.a,H(e,18))},U(xW,`NetworkSimplexPlacer/lambda$5$Type`,1438),J(1439,1,{},sie),X.Kb=function(e){return fb(),new Yh(null,new Nb(H(e,30).a,16))},U(xW,`NetworkSimplexPlacer/lambda$6$Type`,1439),J(1440,1,fB,cie),X.Mb=function(e){return fb(),H(e,10).k==(fN(),CX)},U(xW,`NetworkSimplexPlacer/lambda$7$Type`,1440),J(1441,1,{},hn),X.Kb=function(e){return fb(),new Yh(null,new x_(new jg(Yf(OO(H(e,10)).a.Kc(),new f))))},U(xW,`NetworkSimplexPlacer/lambda$8$Type`,1441),J(1442,1,fB,lie),X.Mb=function(e){return fb(),Qke(H(e,18))},U(xW,`NetworkSimplexPlacer/lambda$9$Type`,1442),J(1424,1,hW,Wce),X.rg=function(e){return H(q(H(e,36),(hz(),jQ)),21).Hc((BF(),tQ))?nPt:null},X.Kf=function(e,t){Yct(H(e,36),t)};var nPt;U(xW,`SimpleNodePlacer`,1424),J(185,1,{185:1},bI),X.Ib=function(){var e=``;return this.c==(Jy(),g2)?e+=jV:this.c==h2&&(e+=AV),this.o==(Yy(),y2)?e+=bht:this.o==b2?e+=`UP`:e+=`BALANCED`,e},U(wW,`BKAlignedLayout`,185),J(523,22,{3:1,34:1,22:1,523:1},lye);var h2,g2,_2=vw(wW,`BKAlignedLayout/HDirection`,523,sJ,ZPe,eOe),v2;J(522,22,{3:1,34:1,22:1,522:1},uye);var y2,b2,rPt=vw(wW,`BKAlignedLayout/VDirection`,522,sJ,QPe,tOe),iPt;J(1699,1,{},dye),U(wW,`BKAligner`,1699),J(1702,1,{},C4e),U(wW,`BKCompactor`,1702),J(663,1,{663:1},gn),X.a=0,U(wW,`BKCompactor/ClassEdge`,663),J(467,1,{467:1},Lpe),X.a=null,X.b=0,U(wW,`BKCompactor/ClassNode`,467),J(1427,1,hW,vye),X.rg=function(e){return H(q(H(e,36),(hz(),jQ)),21).Hc((BF(),tQ))?aPt:null},X.Kf=function(e,t){Ept(this,H(e,36),t)},X.d=!1;var aPt;U(wW,`BKNodePlacer`,1427),J(1700,1,{},_n),X.d=0,U(wW,`NeighborhoodInformation`,1700),J(1701,1,dV,Fde),X.Ne=function(e,t){return VWe(this,H(e,42),H(t,42))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(wW,`NeighborhoodInformation/NeighborComparator`,1701),J(823,1,{}),U(wW,`ThresholdStrategy`,823),J(1825,823,{},Rpe),X.wg=function(e,t,n){return this.a.o==(Yy(),b2)?KB:qB},X.xg=function(){},U(wW,`ThresholdStrategy/NullThresholdStrategy`,1825),J(587,1,{587:1},yye),X.c=!1,X.d=!1,U(wW,`ThresholdStrategy/Postprocessable`,587),J(1826,823,{},zpe),X.wg=function(e,t,n){var r,i=t==n,a;return r=this.a.a[n.p]==t,i||r?(a=e,this.a.c,Jy(),i&&(a=Zct(this,t,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=Zct(this,n,!1)),a):e},X.xg=function(){for(var e,t,n,r,i;this.d.b!=0;)i=H(mFe(this.d),587),r=Ast(this,i),r.a&&(e=r.a,n=Vs(this.a.f[this.a.g[i.b.p].p]),(n||Vx(e)||e.c.i.c!=e.d.i.c)&&(t=htt(this,i),t||Txe(this.e,i)));for(;this.e.a.c.length!=0;)htt(this,H(mXe(this.e),587))},U(wW,`ThresholdStrategy/SimpleThresholdStrategy`,1826),J(645,1,{645:1,188:1,196:1},uie),X.dg=function(){return RT(this)},X.qg=function(){return RT(this)};var oPt;U(ovt,`EdgeRouterFactory`,645),J(1485,1,hW,Wr),X.rg=function(e){return dit(H(e,36))},X.Kf=function(e,t){nR(H(e,36),t)};var x2,sPt,S2,cPt,lPt,C2,w2,T2;U(ovt,`OrthogonalEdgeRouter`,1485),J(1478,1,hW,_ye),X.rg=function(e){return Xj(H(e,36))},X.Kf=function(e,t){eft(this,H(e,36),t)};var uPt,dPt,E2,fPt,D2,pPt;U(ovt,`PolylineEdgeRouter`,1478),J(1479,1,gV,yn),X.Lb=function(e){return bJe(H(e,10))},X.Fb=function(e){return this===e},X.Mb=function(e){return bJe(H(e,10))},U(ovt,`PolylineEdgeRouter/1`,1479),J(1872,1,fB,bn),X.Mb=function(e){return H(e,132).c==(fS(),O2)},U(TW,`HyperEdgeCycleDetector/lambda$0$Type`,1872),J(1873,1,{},xn),X.Ze=function(e){return H(e,132).d},U(TW,`HyperEdgeCycleDetector/lambda$1$Type`,1873),J(1874,1,fB,Sn),X.Mb=function(e){return H(e,132).c==(fS(),O2)},U(TW,`HyperEdgeCycleDetector/lambda$2$Type`,1874),J(1875,1,{},Cn),X.Ze=function(e){return H(e,132).d},U(TW,`HyperEdgeCycleDetector/lambda$3$Type`,1875),J(1876,1,{},wn),X.Ze=function(e){return H(e,132).d},U(TW,`HyperEdgeCycleDetector/lambda$4$Type`,1876),J(1877,1,{},vn),X.Ze=function(e){return H(e,132).d},U(TW,`HyperEdgeCycleDetector/lambda$5$Type`,1877),J(118,1,{34:1,118:1},JT),X.Fd=function(e){return Dhe(this,H(e,118))},X.Fb=function(e){var t;return V(e,118)?(t=H(e,118),this.g==t.g):!1},X.Hb=function(){return this.g},X.Ib=function(){for(var e=new Qf(`{`),t,n,r=new L(this.n);r.a`+this.b+` (`+lwe(this.c)+`)`},X.d=0,U(TW,`HyperEdgeSegmentDependency`,132),J(528,22,{3:1,34:1,22:1,528:1},wye);var O2,k2,mPt=vw(TW,`HyperEdgeSegmentDependency/DependencyType`,528,sJ,$Pe,nOe),hPt;J(1878,1,{},Ide),U(TW,`HyperEdgeSegmentSplitter`,1878),J(1879,1,{},Whe),X.a=0,X.b=0,U(TW,`HyperEdgeSegmentSplitter/AreaRating`,1879),J(339,1,{339:1},eh),X.a=0,X.b=0,X.c=0,U(TW,`HyperEdgeSegmentSplitter/FreeArea`,339),J(1880,1,dV,Tn),X.Ne=function(e,t){return wEe(H(e,118),H(t,118))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(TW,`HyperEdgeSegmentSplitter/lambda$0$Type`,1880),J(1881,1,Yz,Hv),X.Cd=function(e){bze(this.a,this.d,this.c,this.b,H(e,118))},X.b=0,U(TW,`HyperEdgeSegmentSplitter/lambda$1$Type`,1881),J(1882,1,{},die),X.Kb=function(e){return new Yh(null,new Nb(H(e,118).e,16))},U(TW,`HyperEdgeSegmentSplitter/lambda$2$Type`,1882),J(1883,1,{},fie),X.Kb=function(e){return new Yh(null,new Nb(H(e,118).j,16))},U(TW,`HyperEdgeSegmentSplitter/lambda$3$Type`,1883),J(1884,1,{},pie),X.Ye=function(e){return z(Ip(e))},U(TW,`HyperEdgeSegmentSplitter/lambda$4$Type`,1884),J(664,1,{},SMe),X.a=0,X.b=0,X.c=0,U(TW,`OrthogonalRoutingGenerator`,664),J(1703,1,{},mie),X.Kb=function(e){return new Yh(null,new Nb(H(e,118).e,16))},U(TW,`OrthogonalRoutingGenerator/lambda$0$Type`,1703),J(1704,1,{},hie),X.Kb=function(e){return new Yh(null,new Nb(H(e,118).j,16))},U(TW,`OrthogonalRoutingGenerator/lambda$1$Type`,1704),J(670,1,{}),U(EW,`BaseRoutingDirectionStrategy`,670),J(1870,670,{},Gpe),X.yg=function(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(!e.r||e.q)for(f=t+e.o*n,d=new L(e.n);d.aOH&&(o=f,a=e,i=new zu(p,o),Ch(s.a,i),VI(this,s,a,i,!1),m=e.r,m&&(h=z(Ip(gA(m.e,0))),i=new zu(h,o),Ch(s.a,i),VI(this,s,a,i,!1),o=t+m.o*n,a=m,i=new zu(h,o),Ch(s.a,i),VI(this,s,a,i,!1)),i=new zu(_,o),Ch(s.a,i),VI(this,s,a,i,!1)))},X.zg=function(e){return e.i.n.a+e.n.a+e.a.a},X.Ag=function(){return XR(),Y5},X.Bg=function(){return XR(),M5},U(EW,`NorthToSouthRoutingStrategy`,1870),J(1871,670,{},Kpe),X.yg=function(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(!e.r||e.q)for(f=t-e.o*n,d=new L(e.n);d.aOH&&(o=f,a=e,i=new zu(p,o),Ch(s.a,i),VI(this,s,a,i,!1),m=e.r,m&&(h=z(Ip(gA(m.e,0))),i=new zu(h,o),Ch(s.a,i),VI(this,s,a,i,!1),o=t-m.o*n,a=m,i=new zu(h,o),Ch(s.a,i),VI(this,s,a,i,!1)),i=new zu(_,o),Ch(s.a,i),VI(this,s,a,i,!1)))},X.zg=function(e){return e.i.n.a+e.n.a+e.a.a},X.Ag=function(){return XR(),M5},X.Bg=function(){return XR(),Y5},U(EW,`SouthToNorthRoutingStrategy`,1871),J(1869,670,{},qpe),X.yg=function(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(!e.r||e.q)for(f=t+e.o*n,d=new L(e.n);d.aOH&&(o=f,a=e,i=new zu(o,p),Ch(s.a,i),VI(this,s,a,i,!0),m=e.r,m&&(h=z(Ip(gA(m.e,0))),i=new zu(o,h),Ch(s.a,i),VI(this,s,a,i,!0),o=t+m.o*n,a=m,i=new zu(o,h),Ch(s.a,i),VI(this,s,a,i,!0)),i=new zu(o,_),Ch(s.a,i),VI(this,s,a,i,!0)))},X.zg=function(e){return e.i.n.b+e.n.b+e.a.b},X.Ag=function(){return XR(),j5},X.Bg=function(){return XR(),Z5},U(EW,`WestToEastRoutingStrategy`,1869),J(828,1,{},oL),X.Ib=function(){return rN(this.a)},X.b=0,X.c=!1,X.d=!1,X.f=0,U(OW,`NubSpline`,828),J(418,1,{418:1},qrt,fFe),U(OW,`NubSpline/PolarCP`,418),J(1480,1,hW,q2e),X.rg=function(e){return C6e(H(e,36))},X.Kf=function(e,t){Oft(this,H(e,36),t)};var gPt,_Pt,vPt,yPt,A2;U(OW,`SplineEdgeRouter`,1480),J(274,1,{274:1},sS),X.Ib=function(){return this.a+` ->(`+this.c+`) `+this.b},X.c=0,U(OW,`SplineEdgeRouter/Dependency`,274),J(465,22,{3:1,34:1,22:1,465:1},Tye);var j2,M2,bPt=vw(OW,`SplineEdgeRouter/SideToProcess`,465,sJ,rFe,rOe),xPt;J(1481,1,fB,En),X.Mb=function(e){return AF(),!H(e,131).o},U(OW,`SplineEdgeRouter/lambda$0$Type`,1481),J(1482,1,{},Dn),X.Ze=function(e){return AF(),H(e,131).v+1},U(OW,`SplineEdgeRouter/lambda$1$Type`,1482),J(1483,1,Yz,bye),X.Cd=function(e){Mh(this.a,this.b,H(e,42))},U(OW,`SplineEdgeRouter/lambda$2$Type`,1483),J(1484,1,Yz,xye),X.Cd=function(e){Nh(this.a,this.b,H(e,42))},U(OW,`SplineEdgeRouter/lambda$3$Type`,1484),J(131,1,{34:1,131:1},n7e,ylt),X.Fd=function(e){return jhe(this,H(e,131))},X.b=0,X.e=!1,X.f=0,X.g=0,X.j=!1,X.k=!1,X.n=0,X.o=!1,X.p=!1,X.q=!1,X.s=0,X.u=0,X.v=0,X.F=0,U(OW,`SplineSegment`,131),J(468,1,{468:1},gie),X.a=0,X.b=!1,X.c=!1,X.d=!1,X.e=!1,X.f=0,U(OW,`SplineSegment/EdgeInformation`,468),J(1198,1,{},_ie),U(NW,wht,1198),J(1199,1,dV,vie),X.Ne=function(e,t){return p9e(H(e,121),H(t,121))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(NW,Tht,1199),J(1197,1,{},gge),U(NW,`MrTree`,1197),J(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},Eye),X.dg=function(){return hP(this)},X.qg=function(){return hP(this)};var N2,P2,F2,I2,SPt=vw(NW,`TreeLayoutPhases`,405,sJ,ZRe,iOe),CPt;J(1112,205,QV,UTe),X.rf=function(e,t){var n,r,i,a,o,s,l,u;for(Vs(Fp(qP(e,(QI(),bFt))))||Hy((n=new ma((zl(),new Bs(e))),n)),o=t.eh(PW),o.Ug(`build tGraph`,1),s=(l=new cS,UT(l,e),EE(l,(YR(),Y2),e),u=new ho,Qot(e,l,u),yst(e,l,u),l),o.Vg(),o=t.eh(PW),o.Ug(`Split graph`,1),a=PI(this.a,s),o.Vg(),i=new L(a);i.a`+Hb(this.c):`e_`+zw(this)},U(IW,`TEdge`,65),J(121,137,{3:1,121:1,96:1,137:1},cS),X.Ib=function(){var e,t,n,r,i=null;for(r=lA(this.b,0);r.b!=r.d.c;)n=H(ux(r),40),i+=(n.c==null||n.c.length==0?`n_`+n.g:`n_`+n.c)+` -`;for(t=lA(this.a,0);t.b!=t.d.c;)e=H(ux(t),65),i+=(e.b&&e.c?Hb(e.b)+`->`+Hb(e.c):`e_`+zw(e))+` -`;return i};var wPt=U(IW,`TGraph`,121);J(643,508,{3:1,508:1,643:1,96:1,137:1}),U(IW,`TShape`,643),J(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},AYe),X.Ib=function(){return Hb(this)};var L2=U(IW,`TNode`,40);J(236,1,Qz,Ya),X.Jc=function(e){Px(this,e)},X.Kc=function(){return new Xa(lA(this.a.d,0))},U(IW,`TNode/2`,236),J(329,1,Lz,Xa),X.Nb=function(e){Yg(this,e)},X.Pb=function(){return H(ux(this.a),65).c},X.Ob=function(){return Vc(this.a)},X.Qb=function(){UWe(this.a)},U(IW,`TNode/2/1`,329),J(1923,1,lU,Tie),X.Kf=function(e,t){vpt(this,H(e,121),t)},U(LW,`CompactionProcessor`,1923),J(1924,1,dV,Za),X.Ne=function(e,t){return Zqe(this.a,H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$0$Type`,1924),J(1925,1,fB,Cye),X.Mb=function(e){return kPe(this.b,this.a,H(e,42))},X.a=0,X.b=0,U(LW,`CompactionProcessor/lambda$1$Type`,1925),J(1934,1,dV,Eie),X.Ne=function(e,t){return dMe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$10$Type`,1934),J(1935,1,dV,Die),X.Ne=function(e,t){return VCe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$11$Type`,1935),J(1936,1,dV,Oie),X.Ne=function(e,t){return fMe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$12$Type`,1936),J(1926,1,fB,Vde),X.Mb=function(e){return JSe(this.a,H(e,42))},X.a=0,U(LW,`CompactionProcessor/lambda$2$Type`,1926),J(1927,1,fB,Hde),X.Mb=function(e){return YSe(this.a,H(e,42))},X.a=0,U(LW,`CompactionProcessor/lambda$3$Type`,1927),J(1928,1,fB,On),X.Mb=function(e){return H(e,40).c.indexOf(FW)==-1},U(LW,`CompactionProcessor/lambda$4$Type`,1928),J(1929,1,{},Ude),X.Kb=function(e){return dRe(this.a,H(e,40))},X.a=0,U(LW,`CompactionProcessor/lambda$5$Type`,1929),J(1930,1,{},Wde),X.Kb=function(e){return xUe(this.a,H(e,40))},X.a=0,U(LW,`CompactionProcessor/lambda$6$Type`,1930),J(1931,1,dV,Gde),X.Ne=function(e,t){return iVe(this.a,H(e,240),H(t,240))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$7$Type`,1931),J(1932,1,dV,Kde),X.Ne=function(e,t){return aVe(this.a,H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$8$Type`,1932),J(1933,1,dV,kie),X.Ne=function(e,t){return HCe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(LW,`CompactionProcessor/lambda$9$Type`,1933),J(1921,1,lU,Aie),X.Kf=function(e,t){XF(H(e,121),t)},U(LW,`DirectionProcessor`,1921),J(1913,1,lU,sm),X.Kf=function(e,t){mst(this,H(e,121),t)},U(LW,`FanProcessor`,1913),J(1937,1,lU,jie),X.Kf=function(e,t){qit(H(e,121),t)},U(LW,`GraphBoundsProcessor`,1937),J(1938,1,{},kn),X.Ye=function(e){return H(e,40).e.a},U(LW,`GraphBoundsProcessor/lambda$0$Type`,1938),J(1939,1,{},Mie),X.Ye=function(e){return H(e,40).e.b},U(LW,`GraphBoundsProcessor/lambda$1$Type`,1939),J(1940,1,{},Nie),X.Ye=function(e){return B_e(H(e,40))},U(LW,`GraphBoundsProcessor/lambda$2$Type`,1940),J(1941,1,{},Pie),X.Ye=function(e){return z_e(H(e,40))},U(LW,`GraphBoundsProcessor/lambda$3$Type`,1941),J(262,22,{3:1,34:1,22:1,262:1,196:1},Nu),X.dg=function(){switch(this.g){case 0:return new ms;case 1:return new sm;case 2:return new ps;case 3:return new zie;case 4:return new Iie;case 8:return new Fie;case 5:return new Aie;case 6:return new Vie;case 7:return new Tie;case 9:return new jie;case 10:return new Hie;default:throw R(new Ks(igt+(this.f==null?``+this.g:this.f)))}};var TPt,EPt,DPt,OPt,kPt,APt,jPt,MPt,NPt,PPt,FPt,IPt=vw(LW,agt,262,sJ,Uqe,aOe),LPt;J(1920,1,lU,Fie),X.Kf=function(e,t){Kdt(H(e,121),t)},U(LW,`LevelCoordinatesProcessor`,1920),J(1918,1,lU,Iie),X.Kf=function(e,t){Hnt(this,H(e,121),t)},X.a=0,U(LW,`LevelHeightProcessor`,1918),J(1919,1,Qz,Lie),X.Jc=function(e){Px(this,e)},X.Kc=function(){return iy(),dl(),qJ},U(LW,`LevelHeightProcessor/1`,1919),J(1914,1,lU,ps),X.Kf=function(e,t){Nit(this,H(e,121),t)},U(LW,`LevelProcessor`,1914),J(1915,1,fB,Rie),X.Mb=function(e){return Vs(Fp(q(H(e,40),(YR(),Q2))))},U(LW,`LevelProcessor/lambda$0$Type`,1915),J(1916,1,lU,zie),X.Kf=function(e,t){$5e(this,H(e,121),t)},X.a=0,U(LW,`NeighborsProcessor`,1916),J(1917,1,Qz,Bie),X.Jc=function(e){Px(this,e)},X.Kc=function(){return iy(),dl(),qJ},U(LW,`NeighborsProcessor/1`,1917),J(1922,1,lU,Vie),X.Kf=function(e,t){pst(this,H(e,121),t)},X.a=0,U(LW,`NodePositionProcessor`,1922),J(1912,1,lU,ms),X.Kf=function(e,t){mR(this,H(e,121),t)},U(LW,`RootProcessor`,1912),J(1942,1,lU,Hie),X.Kf=function(e,t){A0e(H(e,121),t)},U(LW,`Untreeifyer`,1942),J(392,22,{3:1,34:1,22:1,392:1},Dye);var R2,RPt,zPt,BPt=vw(zW,`EdgeRoutingMode`,392,sJ,IIe,oOe),VPt,z2,B2,HPt,UPt,WPt,V2,GPt,KPt,qPt,JPt,YPt,H2,U2,W2,G2,K2,q2,J2,Y2,X2,Z2,XPt,ZPt,QPt,Q2,$2,e4;J(862,1,xV,Gce),X.hf=function(e){NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,dvt),``),_vt),`Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level`),(lp(),!1)),(PN(),z3)),CJ),dO((cA(),F3))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,fvt),``),`Edge End Texture Length`),`Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing.`),7),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,pvt),``),`Tree Level`),`The index for the tree level the node is in`),kD(0)),U3),AJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,mvt),``),_vt),`When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint`),kD(-1)),U3),AJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,hvt),``),`Weighting of Nodes`),`Which weighting to use when computing a node order.`),cFt),V3),IFt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,gvt),``),`Edge Routing Mode`),`Chooses an Edge Routing algorithm.`),nFt),V3),BPt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,BW),``),`Search Order`),`Which search order to use when computing a spanning tree.`),aFt),V3),zFt),dO(F3)))),wft((new Jce,e))};var $Pt,eFt,tFt,nFt,rFt,iFt,aFt,oFt,sFt,cFt;U(zW,`MrTreeMetaDataProvider`,862),J(1006,1,xV,Jce),X.hf=function(e){wft(e)};var lFt,uFt,dFt,t4,fFt,pFt,mFt,n4,r4,hFt,gFt,_Ft,vFt,yFt,bFt,xFt,SFt,CFt,i4,a4,wFt,TFt,EFt,DFt,OFt,kFt,AFt,jFt,MFt,o4,NFt;U(zW,`MrTreeOptions`,1006),J(1007,1,{},Uie),X.sf=function(){return new UTe},X.tf=function(e){},U(zW,`MrTreeOptions/MrtreeFactory`,1007),J(353,22,{3:1,34:1,22:1,353:1},Oye);var PFt,s4,FFt,c4,IFt=vw(zW,`OrderWeighting`,353,sJ,QRe,sOe),LFt;J(433,22,{3:1,34:1,22:1,433:1},kye);var RFt,l4,zFt=vw(zW,`TreeifyingOrder`,433,sJ,tFe,cOe),BFt;J(1486,1,hW,Gr),X.rg=function(e){return H(e,121),VFt},X.Kf=function(e,t){Dqe(this,H(e,121),t)};var VFt;U(`org.eclipse.elk.alg.mrtree.p1treeify`,`DFSTreeifyer`,1486),J(1487,1,hW,Yce),X.rg=function(e){return H(e,121),HFt},X.Kf=function(e,t){Vit(this,H(e,121),t)};var HFt;U(HW,`NodeOrderer`,1487),J(1494,1,{},iae),X.td=function(e){return iAe(e)},U(HW,`NodeOrderer/0methodref$lambda$6$Type`,1494),J(1488,1,fB,aae),X.Mb=function(e){return QC(),Vs(Fp(q(H(e,40),(YR(),Q2))))},U(HW,`NodeOrderer/lambda$0$Type`,1488),J(1489,1,fB,oae),X.Mb=function(e){return QC(),H(q(H(e,40),(QI(),i4)),17).a<0},U(HW,`NodeOrderer/lambda$1$Type`,1489),J(1490,1,fB,Jde),X.Mb=function(e){return yKe(this.a,H(e,40))},U(HW,`NodeOrderer/lambda$2$Type`,1490),J(1491,1,fB,qde),X.Mb=function(e){return gRe(this.a,H(e,40))},U(HW,`NodeOrderer/lambda$3$Type`,1491),J(1492,1,dV,sae),X.Ne=function(e,t){return IWe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(HW,`NodeOrderer/lambda$4$Type`,1492),J(1493,1,fB,cae),X.Mb=function(e){return QC(),H(q(H(e,40),(YR(),GPt)),17).a!=0},U(HW,`NodeOrderer/lambda$5$Type`,1493),J(1495,1,hW,qce),X.rg=function(e){return H(e,121),UFt},X.Kf=function(e,t){zot(this,H(e,121),t)},X.b=0;var UFt;U(`org.eclipse.elk.alg.mrtree.p3place`,`NodePlacer`,1495),J(1496,1,hW,Kce),X.rg=function(e){return H(e,121),WFt},X.Kf=function(e,t){lot(H(e,121),t)};var WFt;U(UW,`EdgeRouter`,1496),J(1498,1,dV,rae),X.Ne=function(e,t){return Sf(H(e,17).a,H(t,17).a)},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/0methodref$compare$Type`,1498),J(1503,1,{},Gie),X.Ye=function(e){return z(Ip(e))},U(UW,`EdgeRouter/1methodref$doubleValue$Type`,1503),J(1505,1,dV,An),X.Ne=function(e,t){return uO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/2methodref$compare$Type`,1505),J(1507,1,dV,Kie),X.Ne=function(e,t){return uO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/3methodref$compare$Type`,1507),J(1509,1,{},Wie),X.Ye=function(e){return z(Ip(e))},U(UW,`EdgeRouter/4methodref$doubleValue$Type`,1509),J(1511,1,dV,qie),X.Ne=function(e,t){return uO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/5methodref$compare$Type`,1511),J(1513,1,dV,Jie),X.Ne=function(e,t){return uO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/6methodref$compare$Type`,1513),J(1497,1,{},Yie),X.Kb=function(e){return $C(),H(q(H(e,40),(QI(),o4)),17)},U(UW,`EdgeRouter/lambda$0$Type`,1497),J(1508,1,{},Xie),X.Kb=function(e){return mwe(H(e,40))},U(UW,`EdgeRouter/lambda$11$Type`,1508),J(1510,1,{},Hye),X.Kb=function(e){return jh(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(UW,`EdgeRouter/lambda$13$Type`,1510),J(1512,1,{},Uye),X.Kb=function(e){return hwe(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(UW,`EdgeRouter/lambda$15$Type`,1512),J(1514,1,dV,Zie),X.Ne=function(e,t){return V1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/lambda$17$Type`,1514),J(1515,1,dV,Qie),X.Ne=function(e,t){return H1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/lambda$18$Type`,1515),J(1516,1,dV,$ie),X.Ne=function(e,t){return W1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/lambda$19$Type`,1516),J(1499,1,fB,Yde),X.Mb=function(e){return xFe(this.a,H(e,40))},X.a=0,U(UW,`EdgeRouter/lambda$2$Type`,1499),J(1517,1,dV,eae),X.Ne=function(e,t){return U1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/lambda$20$Type`,1517),J(1500,1,dV,tae),X.Ne=function(e,t){return yke(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/lambda$3$Type`,1500),J(1501,1,dV,nae),X.Ne=function(e,t){return bke(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`EdgeRouter/lambda$4$Type`,1501),J(1502,1,{},lae),X.Kb=function(e){return gwe(H(e,40))},U(UW,`EdgeRouter/lambda$5$Type`,1502),J(1504,1,{},Wye),X.Kb=function(e){return $ke(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(UW,`EdgeRouter/lambda$7$Type`,1504),J(1506,1,{},Gye),X.Kb=function(e){return _we(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(UW,`EdgeRouter/lambda$9$Type`,1506),J(675,1,{675:1},T2e),X.e=0,X.f=!1,X.g=!1,U(UW,`MultiLevelEdgeNodeNodeGap`,675),J(1943,1,dV,uae),X.Ne=function(e,t){return rIe(H(e,240),H(t,240))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`MultiLevelEdgeNodeNodeGap/lambda$0$Type`,1943),J(1944,1,dV,dae),X.Ne=function(e,t){return iIe(H(e,240),H(t,240))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(UW,`MultiLevelEdgeNodeNodeGap/lambda$1$Type`,1944);var u4;J(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},Aye),X.dg=function(){return XQe(this)},X.qg=function(){return XQe(this)};var d4,f4,GFt=vw(bvt,`RadialLayoutPhases`,501,sJ,XPe,lOe),KFt;J(1113,205,QV,hge),X.rf=function(e,t){var n=yrt(this,e),r,i,a,o,s;if(t.Ug(`Radial layout`,n.c.length),Vs(Fp(qP(e,(ON(),EIt))))||Hy((r=new ma((zl(),new Bs(e))),r)),s=D6e(e),xA(e,(Hp(),u4),s),!s)throw R(new Ks(`The given graph is not a tree!`));for(i=z(Ip(qP(e,x4))),i==0&&(i=n9e(e)),xA(e,x4,i),o=new L(yrt(this,e));o.a=3)for(C=H(G(x,0),27),w=H(G(x,1),27),o=0;o+2=C.f+w.f+f||w.f>=S.f+C.f+f){E=!0;break}++o}else E=!0;if(!E){for(m=x.i,l=new Lf(x);l.e!=l.i.gc();)s=H(fA(l),27),xA(s,(gz(),h8),kD(m)),--m;YI(e,new hs),t.Vg();return}for(n=(Sv(this.a),d_(this.a,(jk(),E4),H(qP(e,ILt),188)),d_(this.a,D4,H(qP(e,z4),188)),d_(this.a,UIt,H(qP(e,U4),188)),Id(this.a,(O=new uv,zh(O,E4,(DA(),JIt)),zh(O,D4,qIt),Vs(Fp(qP(e,CLt)))&&zh(O,E4,KIt),O)),xR(this.a,e)),d=1/n.c.length,T=0,g=new L(n);g.a0&&zXe((Mb(t-1,e.length),e.charCodeAt(t-1)),qht);)--t;if(r>=t)throw R(new Ks(`The given string does not contain any numbers.`));if(i=ZI((bS(r,t,e.length),e.substr(r,t-r)),`,|;|\r| -`),i.length!=2)throw R(new Ks(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=pN(WN(i[0])),this.b=pN(WN(i[1]))}catch(e){throw e=eE(e),V(e,130)?(n=e,R(new Ks(Jht+n))):R(e)}},X.Ib=function(){return`(`+this.a+`,`+this.b+`)`},X.a=0,X.b=0;var X3=U(fU,`KVector`,8);J(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},cs,Lhe,Op),X.Pc=function(){return uXe(this)},X.cg=function(e){var t,n,r=ZI(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),i,a,o;Qv(this);try{for(n=0,a=0,i=0,o=0;n0&&(a%2==0?i=pN(r[n]):o=pN(r[n]),a>0&&a%2!=0&&Ch(this,new zu(i,o)),++a),++n}catch(e){throw e=eE(e),V(e,130)?(t=e,R(new Ks(`The given string does not match the expected format for vectors.`+t))):R(e)}},X.Ib=function(){for(var e=new Qf(`(`),t=lA(this,0),n;t.b!=t.d.c;)n=H(ux(t),8),yd(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var Z3=U(fU,`KVectorChain`,75);J(255,22,{3:1,34:1,22:1,255:1},Bu);var Q3,$3,e6,t6,n6,r6,i6=vw(AG,`Alignment`,255,sJ,zHe,TOe),a6;J(991,1,xV,nle),X.hf=function(e){hst(e)};var o6,s6,LRt,RRt,c6,zRt,BRt,VRt,HRt,l6,u6,d6;U(AG,`BoxLayouterOptions`,991),J(992,1,{},hoe),X.sf=function(){return new voe},X.tf=function(e){},U(AG,`BoxLayouterOptions/BoxFactory`,992),J(298,22,{3:1,34:1,22:1,298:1},Uu);var f6,p6,m6,h6,g6,_6,v6=vw(AG,`ContentAlignment`,298,sJ,BHe,EOe),y6;J(699,1,xV,rle),X.hf=function(e){NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,gyt),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(PN(),G3)),PJ),dO((cA(),F3))))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,_yt),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),W3),IRt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,oW),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),WRt),V3),i6),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,pH),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,vyt),``),`Bend Points`),`A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points.`),W3),Z3),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,dW),``),`Content Alignment`),`Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option.`),E6),H3),v6),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,aW),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(lp(),!1)),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,sW),``),UV),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),JRt),V3),P8),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,ZU),``),`Edge Routing`),`What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline.`),M6),V3),U8),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,myt),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,g_t),``),`Hierarchy Handling`),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),P6),V3),Q8),gg(F3,K(B(L3,1),lB,170,0,[P3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,mH),``),`Padding`),`The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately.`),izt),W3),tDt),gg(F3,K(B(L3,1),lB,170,0,[P3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,RH),``),`Interactive`),`Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,pW),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,VH),``),`Omit Node Micro Layout`),`Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,zH),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),c8),V3),Kzt),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,fW),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),W3),X3),gg(P3,K(B(L3,1),lB,170,0,[I3,N3]))))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,NH),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),U3),AJ),gg(P3,K(B(L3,1),lB,170,0,[M3]))))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,IH),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,LH),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,q_t),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),ezt),W3),Z3),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,X_t),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),z3),CJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Z_t),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),z3),CJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,yyt),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),W3),CUt),gg(F3,K(B(L3,1),lB,170,0,[N3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,tvt),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),V6),W3),_X),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,rW),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),z3),CJ),gg(P3,K(B(L3,1),lB,170,0,[M3,I3,N3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,byt),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),B3),OJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,xyt),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,Syt),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,qH),``),lyt),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),z3),CJ),dO(F3)))),Xb(e,qH,ZH,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Cyt),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,MG),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),kD(100)),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,wyt),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Tyt),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),kD(4e3)),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Eyt),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),kD(400)),U3),AJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Dyt),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Oyt),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,kyt),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Ayt),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,hyt),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),KRt),V3),SBt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,j_t),QU),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,M_t),QU),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,dH),QU),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,N_t),QU),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,FH),QU),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,P_t),QU),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,F_t),QU),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,R_t),QU),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,I_t),QU),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,L_t),QU),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,PH),QU),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,eW),QU),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),B3),OJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,tW),QU),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),B3),OJ),gg(F3,K(B(L3,1),lB,170,0,[P3]))))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,z_t),QU),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),W3),wBt),gg(P3,K(B(L3,1),lB,170,0,[M3,I3,N3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,nvt),QU),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),Szt),W3),_X),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,evt),Pyt),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),U3),AJ),gg(F3,K(B(L3,1),lB,170,0,[P3]))))),Xb(e,evt,$_t,szt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,$_t),Pyt),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),$6),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,cW),Fyt),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),nzt),W3),tDt),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,GH),Fyt),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),U6),H3),m5),gg(P3,K(B(L3,1),lB,170,0,[N3]))))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,uW),FG),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),t8),V3),v5),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,U_t),FG),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),V3),v5),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,W_t),FG),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),V3),v5),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,G_t),FG),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),V3),v5),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,K_t),FG),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),V3),v5),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,WH),Iyt),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),rzt),H3),r7),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,UH),Iyt),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),Y6),H3),cBt),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,$H),Iyt),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),q6),W3),X3),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,HH),Iyt),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),z3),CJ),dO(F3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,J_t),A_t),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),j6),V3),R8),dO(N3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,BH),A_t),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),z3),CJ),dO(N3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,jyt),`font`),`Font Name`),`Font name used for a label.`),G3),PJ),dO(N3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,Myt),`font`),`Font Size`),`Font size used for a label.`),U3),AJ),dO(N3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,Q_t),Lyt),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),W3),X3),dO(I3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,Y_t),Lyt),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),U3),AJ),dO(I3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,iW),Lyt),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),uzt),V3),Q5),dO(I3)))),NO(e,new NN(Oc(Dc(kc(Sc(Ec(wc(Tc(new Un,nW),Lyt),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),B3),OJ),dO(I3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,KH),Ryt),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),d8),H3),Jzt),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,H_t),Ryt),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),z3),CJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,lW),Ryt),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),z3),CJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,JH),IG),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),B3),OJ),dO(F3)))),Xb(e,JH,ZH,Tzt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,Nyt),IG),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),V3),gBt),dO(P3)))),Xb(e,Nyt,ZH,Dzt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,YH),IG),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),B3),OJ),gg(F3,K(B(L3,1),lB,170,0,[P3]))))),Xb(e,YH,ZH,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,XH),IG),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),B3),OJ),gg(F3,K(B(L3,1),lB,170,0,[P3]))))),Xb(e,XH,ZH,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,ZH),IG),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),V3),fBt),dO(P3)))),Xb(e,ZH,HH,null),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,NG),IG),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),B3),OJ),dO(F3)))),Xb(e,NG,ZH,wzt),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,B_t),zyt),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),z3),CJ),dO(P3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,V_t),zyt),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),z3),CJ),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,fH),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),B3),OJ),dO(M3)))),NO(e,new NN(Oc(Dc(kc(Cc(Sc(Ec(wc(Tc(new Un,PG),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),ZRt),V3),Fzt),dO(M3)))),Il(e,new Cb(yc(xc(bc(new Vn,YB),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),Il(e,new Cb(yc(xc(bc(new Vn,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Il(e,new Cb(yc(xc(bc(new Vn,MH),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),Il(e,new Cb(yc(xc(bc(new Vn,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),Il(e,new Cb(yc(xc(bc(new Vn,vvt),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),Il(e,new Cb(yc(xc(bc(new Vn,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),Il(e,new Cb(yc(xc(bc(new Vn,ZW),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),pot((new ile,e)),hst((new nle,e)),Git((new ale,e))};var b6,URt,WRt,x6,S6,GRt,KRt,C6,w6,qRt,T6,E6,D6,O6,JRt,k6,A6,j6,YRt,M6,XRt,ZRt,QRt,N6,P6,F6,I6,L6,R6,$Rt,z6,ezt,B6,V6,tzt,nzt,H6,U6,W6,rzt,G6,K6,q6,J6,Y6,X6,Z6,Q6,izt,azt,$6,ozt,szt,e8,t8,n8,r8,i8,a8,czt,o8,s8,c8,l8,lzt,u8,d8,f8,p8,uzt,m8,h8,g8,_8,dzt,fzt,pzt,mzt,v8,hzt,gzt,y8,b8,_zt,x8,vzt,yzt,S8,bzt,xzt,Szt,C8,w8,T8,E8,D8,Czt,wzt,O8,Tzt,Ezt,Dzt;U(AG,`CoreOptions`,699),J(88,22,{3:1,34:1,22:1,88:1},Wu);var k8,A8,j8,M8,N8,P8=vw(AG,UV,88,sJ,_Be,DOe),Ozt;J(278,22,{3:1,34:1,22:1,278:1},Gu);var F8,I8,L8,R8=vw(AG,`EdgeLabelPlacement`,278,sJ,YIe,OOe),kzt;J(223,22,{3:1,34:1,22:1,223:1},Yye);var z8,B8,V8,H8,U8=vw(AG,`EdgeRouting`,223,sJ,nze,Jm),Azt;J(321,22,{3:1,34:1,22:1,321:1},Ku);var jzt,Mzt,Nzt,W8,G8,Pzt,Fzt=vw(AG,`EdgeType`,321,sJ,RHe,Ym),Izt;J(989,1,xV,ile),X.hf=function(e){pot(e)};var Lzt,Rzt,K8,q8,zzt,Bzt,J8;U(AG,`FixedLayouterOptions`,989),J(990,1,{},goe),X.sf=function(){return new Doe},X.tf=function(e){},U(AG,`FixedLayouterOptions/FixedFactory`,990),J(346,22,{3:1,34:1,22:1,346:1},Xye);var Y8,X8,Z8,Q8=vw(AG,`HierarchyHandling`,346,sJ,qIe,Xm),$8;J(291,22,{3:1,34:1,22:1,291:1},qu);var e5,t5,n5,r5,i5=vw(AG,`LabelSide`,291,sJ,tze,kOe),Vzt;J(95,22,{3:1,34:1,22:1,95:1},Ju);var a5,o5,s5,c5,l5,u5,d5,f5,p5,m5=vw(AG,`NodeLabelPlacement`,95,sJ,bGe,Zm),Hzt;J(256,22,{3:1,34:1,22:1,256:1},Yu);var Uzt,h5,g5,Wzt,_5,v5=vw(AG,`PortAlignment`,256,sJ,zBe,AOe),Gzt;J(101,22,{3:1,34:1,22:1,101:1},Xu);var y5,b5,x5,S5,C5,w5,Kzt=vw(AG,`PortConstraints`,101,sJ,LHe,jOe),qzt;J(279,22,{3:1,34:1,22:1,279:1},Zu);var T5,E5,D5,O5,k5,A5,Jzt=vw(AG,`PortLabelPlacement`,279,sJ,IHe,MOe),Yzt;J(64,22,{3:1,34:1,22:1,64:1},Qu);var j5,M5,N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5,G5,K5,q5,J5,Y5,X5,Z5,Q5=vw(AG,`PortSide`,64,sJ,vBe,Qm),Xzt;J(993,1,xV,ale),X.hf=function(e){Git(e)};var Zzt,Qzt,$zt,eBt,tBt;U(AG,`RandomLayouterOptions`,993),J(994,1,{},_oe),X.sf=function(){return new woe},X.tf=function(e){},U(AG,`RandomLayouterOptions/RandomFactory`,994),J(386,22,{3:1,34:1,22:1,386:1},$u);var $5,e7,t7,n7,r7=vw(AG,`SizeConstraint`,386,sJ,eze,NOe),nBt;J(264,22,{3:1,34:1,22:1,264:1},ed);var i7,a7,o7,rBt,iBt,s7,aBt,oBt,sBt,cBt=vw(AG,`SizeOptions`,264,sJ,nKe,POe),lBt;J(280,22,{3:1,34:1,22:1,280:1},td);var c7,uBt,dBt,fBt=vw(AG,`TopdownNodeTypes`,280,sJ,XIe,FOe),pBt;J(347,22,Vyt);var mBt,hBt,gBt=vw(AG,`TopdownSizeApproximator`,347,sJ,oFe,LOe);J(987,347,Vyt,tAe),X.Tg=function(e){return R0e(e)},vw(AG,`TopdownSizeApproximator/1`,987,gBt,null,null),J(988,347,Vyt,Lje),X.Tg=function(e){var t=H(qP(e,(gz(),_8)),143),n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=(Mc(),h=new ss,h),T,E,D;for(vF(w,e),T=new ho,o=new Lf((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a));o.e!=o.i.gc();)i=H(fA(o),27),b=(m=new ss,m),_F(b,w),vF(b,i),D=R0e(i),Xd(b,r.Math.max(i.g,D.a),r.Math.max(i.f,D.b)),qN(T.f,i,b);for(a=new Lf((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=H(fA(a),27),f=new Lf((!i.e&&(i.e=new pm(p7,i,7,4)),i.e));f.e!=f.i.gc();)d=H(fA(f),74),S=H(sd(dg(T.f,i)),27),C=H(N_(T,G((!d.c&&(d.c=new pm(f7,d,5,8)),d.c),0)),27),x=(p=new Wn,p),SS((!x.b&&(x.b=new pm(f7,x,4,7)),x.b),S),SS((!x.c&&(x.c=new pm(f7,x,5,8)),x.c),C),mF(x,ob(S)),vF(x,d);_=H(Py(t.f),205);try{_.rf(w,new joe),nNe(t.f,_)}catch(e){throw e=eE(e),V(e,103)?(g=e,R(g)):R(e)}return hS(w,w6)||hS(w,C6)||Jft(w),u=z(Ip(qP(w,w6))),l=z(Ip(qP(w,C6))),s=u/l,n=z(Ip(qP(w,T8)))*r.Math.sqrt((!w.a&&(w.a=new Bg(b7,w,10,11)),w.a).i),E=H(qP(w,Q6),107),y=E.b+E.c+1,v=E.d+E.a+1,new zu(r.Math.max(y,n),r.Math.max(v,n/s))},vw(AG,`TopdownSizeApproximator/2`,988,gBt,null,null);var _Bt;J(344,1,{871:1},hs),X.Ug=function(e,t){return FM(this,e,t)},X.Vg=function(){kN(this)},X.Wg=function(){return this.q},X.Xg=function(){return this.f?SPe(this.f):null},X.Yg=function(){return SPe(this.a)},X.Zg=function(){return this.p},X.$g=function(){return!1},X._g=function(){return this.n},X.ah=function(){return this.p!=null&&!this.b},X.bh=function(e){var t;this.n&&(t=e,Af(this.f,t))},X.dh=function(e,t){var n,r;this.n&&e&&yLe(this,(n=new wMe,r=Bot(n,e),HR(n),r),(zYe(),EBt))},X.eh=function(e){var t;return this.b?null:(t=NC(this,this.g),Ch(this.a,t),t.i=this,this.d=e,t)},X.fh=function(e){e>0&&!this.b&&bKe(this,e)},X.b=!1,X.c=0,X.d=-1,X.e=null,X.f=null,X.g=-1,X.j=!1,X.k=!1,X.n=!1,X.o=0,X.q=0,X.r=0,U(mW,`BasicProgressMonitor`,344),J(717,205,QV,voe),X.rf=function(e,t){YI(e,t)},U(mW,`BoxLayoutProvider`,717),J(983,1,dV,no),X.Ne=function(e,t){return Wnt(this,H(e,27),H(t,27))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},X.a=!1,U(mW,`BoxLayoutProvider/1`,983),J(163,1,{163:1},lGe,Nwe),X.Ib=function(){return this.c?aI(this.c):rN(this.b)},U(mW,`BoxLayoutProvider/Group`,163),J(320,22,{3:1,34:1,22:1,320:1},Qye);var vBt,yBt,bBt,xBt,SBt=vw(mW,`BoxLayoutProvider/PackingMode`,320,sJ,rze,ROe),CBt;J(984,1,dV,yoe),X.Ne=function(e,t){return dPe(H(e,163),H(t,163))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mW,`BoxLayoutProvider/lambda$0$Type`,984),J(985,1,dV,boe),X.Ne=function(e,t){return $v(H(e,163),H(t,163))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mW,`BoxLayoutProvider/lambda$1$Type`,985),J(986,1,dV,xoe),X.Ne=function(e,t){return ey(H(e,163),H(t,163))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(mW,`BoxLayoutProvider/lambda$2$Type`,986),J(1384,1,{845:1},Soe),X.Mg=function(e,t){return N_e(),!V(t,167)||Cge((cE(),H(e,167)),t)},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1384),J(1385,1,Yz,rfe),X.Cd=function(e){gXe(this.a,H(e,149))},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1385),J(1386,1,Yz,Toe),X.Cd=function(e){H(e,96),N_e()},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1386),J(1390,1,Yz,ife),X.Cd=function(e){lqe(this.a,H(e,96))},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1390),J(1388,1,fB,$ye),X.Mb=function(e){return EYe(this.a,this.b,H(e,149))},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1388),J(1387,1,fB,ebe),X.Mb=function(e){return pwe(this.a,this.b,H(e,845))},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1387),J(1389,1,Yz,tbe),X.Cd=function(e){jje(this.a,this.b,H(e,149))},U(mW,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1389),J(947,1,{},Eoe),X.Kb=function(e){return Vd(e)},X.Fb=function(e){return this===e},U(mW,`ElkUtil/lambda$0$Type`,947),J(948,1,Yz,nbe),X.Cd=function(e){OP(this.a,this.b,H(e,74))},X.a=0,X.b=0,U(mW,`ElkUtil/lambda$1$Type`,948),J(949,1,Yz,rbe),X.Cd=function(e){Ome(this.a,this.b,H(e,166))},X.a=0,X.b=0,U(mW,`ElkUtil/lambda$2$Type`,949),J(950,1,Yz,ibe),X.Cd=function(e){Kxe(this.a,this.b,H(e,135))},X.a=0,X.b=0,U(mW,`ElkUtil/lambda$3$Type`,950),J(951,1,Yz,afe),X.Cd=function(e){rAe(this.a,H(e,377))},U(mW,`ElkUtil/lambda$4$Type`,951),J(325,1,{34:1,325:1},mo),X.Fd=function(e){return ZSe(this,H(e,242))},X.Fb=function(e){var t;return V(e,325)?(t=H(e,325),this.a==t.a):!1},X.Hb=function(){return Uy(this.a)},X.Ib=function(){return this.a+` (exclusive)`},X.a=0,U(mW,`ExclusiveBounds/ExclusiveLowerBound`,325),J(1119,205,QV,Doe),X.rf=function(e,t){var n,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D;for(t.Ug(`Fixed Layout`,1),o=H(qP(e,(gz(),YRt)),223),m=0,h=0,x=new Lf((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a));x.e!=x.i.gc();){for(y=H(fA(x),27),D=H(qP(y,(XE(),J8)),8),D&&(Zd(y,D.a,D.b),H(qP(y,Rzt),181).Hc((Ak(),$5))&&(g=H(qP(y,q8),8),g.a>0&&g.b>0&&$R(y,g.a,g.b,!0,!0))),m=r.Math.max(m,y.i+y.g),h=r.Math.max(h,y.j+y.f),d=new Lf((!y.n&&(y.n=new Bg(y7,y,1,7)),y.n));d.e!=d.i.gc();)l=H(fA(d),135),D=H(qP(l,J8),8),D&&Zd(l,D.a,D.b),m=r.Math.max(m,y.i+l.i+l.g),h=r.Math.max(h,y.j+l.j+l.f);for(w=new Lf((!y.c&&(y.c=new Bg(x7,y,9,9)),y.c));w.e!=w.i.gc();)for(C=H(fA(w),123),D=H(qP(C,J8),8),D&&Zd(C,D.a,D.b),T=y.i+C.i,E=y.j+C.j,m=r.Math.max(m,T+C.g),h=r.Math.max(h,E+C.f),u=new Lf((!C.n&&(C.n=new Bg(y7,C,1,7)),C.n));u.e!=u.i.gc();)l=H(fA(u),135),D=H(qP(l,J8),8),D&&Zd(l,D.a,D.b),m=r.Math.max(m,T+l.i+l.g),h=r.Math.max(h,E+l.j+l.f);for(a=new jg(Yf(sF(y).a.Kc(),new f));UP(a);)n=H(Wx(a),74),p=cft(n),m=r.Math.max(m,p.a),h=r.Math.max(h,p.b);for(i=new jg(Yf(oF(y).a.Kc(),new f));UP(i);)n=H(Wx(i),74),ob(eN(n))!=e&&(p=cft(n),m=r.Math.max(m,p.a),h=r.Math.max(h,p.b))}if(o==(TO(),z8))for(b=new Lf((!e.a&&(e.a=new Bg(b7,e,10,11)),e.a));b.e!=b.i.gc();)for(y=H(fA(b),27),i=new jg(Yf(sF(y).a.Kc(),new f));UP(i);)n=H(Wx(i),74),s=kst(n),s.b==0?xA(n,z6,null):xA(n,z6,s);Vs(Fp(qP(e,(XE(),K8))))||(S=H(qP(e,zzt),107),v=m+S.b+S.c,_=h+S.d+S.a,$R(e,v,_,!0,!0)),t.Vg()},U(mW,`FixedLayoutProvider`,1119),J(385,137,{3:1,423:1,385:1,96:1,137:1},Ooe,GUe),X.cg=function(e){var t,n,r,i,a,o,s,l,u;if(e)try{for(l=ZI(e,`;,;`),a=l,o=0,s=a.length;o>16&xB|t^r<<16},X.Kc=function(){return new ofe(this)},X.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+FO(this.b)+`)`:this.b==null?`pair(`+FO(this.a)+`,null)`:`pair(`+FO(this.a)+`,`+FO(this.b)+`)`},U(mW,`Pair`,42),J(995,1,Lz,ofe),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},X.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw R(new Io)},X.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),R(new Mo)},X.b=!1,X.c=!1,U(mW,`Pair/1`,995),J(455,1,{455:1},BNe),X.Fb=function(e){return vv(this.a,H(e,455).a)&&vv(this.c,H(e,455).c)&&vv(this.d,H(e,455).d)&&vv(this.b,H(e,455).b)},X.Hb=function(){return uD(K(B(eJ,1),jz,1,5,[this.a,this.c,this.d,this.b]))},X.Ib=function(){return`(`+this.a+Az+this.c+Az+this.d+Az+this.b+`)`},U(mW,`Quadruple`,455),J(1108,205,QV,woe),X.rf=function(e,t){var n,r,i,a,o;if(t.Ug(`Random Layout`,1),(!e.a&&(e.a=new Bg(b7,e,10,11)),e.a).i==0){t.Vg();return}a=H(qP(e,(kk(),eBt)),17),i=a&&a.a!=0?new Mx(a.a):new e$e,n=Hs(Ip(qP(e,Zzt))),o=Hs(Ip(qP(e,tBt))),r=H(qP(e,Qzt),107),jdt(e,i,n,o,r),t.Vg()},U(mW,`RandomLayoutProvider`,1108),J(240,1,{240:1},UOe),X.Fb=function(e){return vv(this.a,H(e,240).a)&&vv(this.b,H(e,240).b)&&vv(this.c,H(e,240).c)},X.Hb=function(){return uD(K(B(eJ,1),jz,1,5,[this.a,this.b,this.c]))},X.Ib=function(){return`(`+this.a+Az+this.b+Az+this.c+`)`},U(mW,`Triple`,240);var jBt;J(562,1,{}),X.Lf=function(){return new zu(this.f.i,this.f.j)},X.of=function(e){return RPe(e,(gz(),o8))?qP(this.f,MBt):qP(this.f,e)},X.Mf=function(){return new zu(this.f.g,this.f.f)},X.Nf=function(){return this.g},X.pf=function(e){return hS(this.f,e)},X.Of=function(e){ow(this.f,e.a),sw(this.f,e.b)},X.Pf=function(e){aw(this.f,e.a),iw(this.f,e.b)},X.Qf=function(e){this.g=e},X.g=0;var MBt;U(RG,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,562),J(563,1,{853:1},ro),X.Rf=function(){var e,t;if(!this.b)for(this.b=fRe(bv(this.a).i),t=new Lf(bv(this.a));t.e!=t.i.gc();)e=H(fA(t),135),Af(this.b,new Sme(e));return this.b},X.b=null,U(RG,`ElkGraphAdapters/ElkEdgeAdapter`,563),J(289,562,{},Bs),X.Sf=function(){return V2e(this)},X.a=null,U(RG,`ElkGraphAdapters/ElkGraphAdapter`,289),J(640,562,{187:1},Sme),U(RG,`ElkGraphAdapters/ElkLabelAdapter`,640),J(639,562,{695:1},fp),X.Rf=function(){return z2e(this)},X.Vf=function(){var e=H(qP(this.f,(gz(),B6)),140);return!e&&(e=new rs),e},X.Xf=function(){return B2e(this)},X.Zf=function(e){var t=new eke(e);xA(this.f,(gz(),B6),t)},X.$f=function(e){xA(this.f,(gz(),Q6),new tke(e))},X.Tf=function(){return this.d},X.Uf=function(){var e,t;if(!this.a)for(this.a=new go,t=new jg(Yf(oF(H(this.f,27)).a.Kc(),new f));UP(t);)e=H(Wx(t),74),Af(this.a,new ro(e));return this.a},X.Wf=function(){var e,t;if(!this.c)for(this.c=new go,t=new jg(Yf(sF(H(this.f,27)).a.Kc(),new f));UP(t);)e=H(Wx(t),74),Af(this.c,new ro(e));return this.c},X.Yf=function(){return sy(H(this.f,27)).i!=0||Vs(Fp(H(this.f,27).of((gz(),I6))))},X._f=function(){KUe(this,(zl(),jBt))},X.a=null,X.b=null,X.c=null,X.d=null,X.e=null,U(RG,`ElkGraphAdapters/ElkNodeAdapter`,639),J(1284,562,{852:1},sfe),X.Rf=function(){return n4e(this)},X.Uf=function(){var e,t;if(!this.a)for(this.a=gp(H(this.f,123).hh().i),t=new Lf(H(this.f,123).hh());t.e!=t.i.gc();)e=H(fA(t),74),Af(this.a,new ro(e));return this.a},X.Wf=function(){var e,t;if(!this.c)for(this.c=gp(H(this.f,123).ih().i),t=new Lf(H(this.f,123).ih());t.e!=t.i.gc();)e=H(fA(t),74),Af(this.c,new ro(e));return this.c},X.ag=function(){return H(H(this.f,123).of((gz(),p8)),64)},X.bg=function(){var e,t,n,r=Ky(H(this.f,123)),i,a,o,s;for(n=new Lf(H(this.f,123).ih());n.e!=n.i.gc();)for(e=H(fA(n),74),s=new Lf((!e.c&&(e.c=new pm(f7,e,5,8)),e.c));s.e!=s.i.gc();)if(o=H(fA(s),84),HC(PM(o),r)||PM(o)==r&&Vs(Fp(qP(e,(gz(),L6)))))return!0;for(t=new Lf(H(this.f,123).hh());t.e!=t.i.gc();)for(e=H(fA(t),74),a=new Lf((!e.b&&(e.b=new pm(f7,e,4,7)),e.b));a.e!=a.i.gc();)if(i=H(fA(a),84),HC(PM(i),r))return!0;return!1},X.a=null,X.b=null,X.c=null,U(RG,`ElkGraphAdapters/ElkPortAdapter`,1284),J(1285,1,dV,Coe),X.Ne=function(e,t){return Jat(H(e,123),H(t,123))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(RG,`ElkGraphAdapters/PortComparator`,1285);var l7=Lh(zG,`EObject`),u7=Lh(BG,Wyt),d7=Lh(BG,Gyt),NBt=Lh(BG,Kyt),PBt=Lh(BG,`ElkShape`),f7=Lh(BG,qyt),p7=Lh(BG,Jyt),m7=Lh(BG,Yyt),FBt=Lh(zG,Xyt),h7=Lh(zG,`EFactory`),IBt,LBt=Lh(zG,Zyt),g7=Lh(zG,`EPackage`),_7,RBt,zBt,BBt,VBt,HBt,UBt,WBt,GBt,v7,KBt,qBt,y7=Lh(BG,Qyt),b7=Lh(BG,$yt),x7=Lh(BG,ebt);J(93,1,tbt),X.th=function(){return this.uh(),null},X.uh=function(){return null},X.vh=function(){return this.uh(),!1},X.wh=function(){return!1},X.xh=function(e){jT(this,e)},U(VG,`BasicNotifierImpl`,93),J(99,93,ibt),X.Yh=function(){return Hd(this)},X.yh=function(e,t){return e},X.zh=function(){throw R(new Po)},X.Ah=function(e){var t=MA(H(MC(this.Dh(),this.Fh()),19));return this.Ph().Th(this,t.n,t.f,e)},X.Bh=function(e,t){throw R(new Po)},X.Ch=function(e,t,n){return LI(this,e,t,n)},X.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},X.Eh=function(){return vet(this)},X.Fh=function(){throw R(new Po)},X.Gh=function(){var e,t=this.$h().Ok();return!t&&this.zh().Tk(t=(Ul(),e=lFe($I(this.Dh())),e==null?iHt:new dp(this,e))),t},X.Hh=function(e,t){return e},X.Ih=function(e){return e.pk()?e.Lj():$O(this.Dh(),e)},X.Jh=function(){var e=this.zh();return e?e.Qk():null},X.Kh=function(){return this.zh()?this.zh().Nk():null},X.Lh=function(e,t,n){return CA(this,e,t,n)},X.Mh=function(e){return NS(this,e)},X.Nh=function(e,t){return rVe(this,e,t)},X.Oh=function(){var e=this.zh();return!!e&&e.Rk()},X.Ph=function(){throw R(new Po)},X.Qh=function(){return Jk(this)},X.Rh=function(e,t,n,r){return bA(this,e,t,r)},X.Sh=function(e,t,n){return H(MC(this.Dh(),t),69).wk().zk(this,this.hi(),t-this.ji(),e,n)},X.Th=function(e,t,n,r){return Ny(this,e,t,r)},X.Uh=function(e,t,n){return H(MC(this.Dh(),t),69).wk().Ak(this,this.hi(),t-this.ji(),e,n)},X.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},X.Wh=function(e){return G1e(this,e)},X.Xh=function(e){return $y(this,e)},X.Zh=function(e){return Wut(this,e)},X.$h=function(){throw R(new Po)},X._h=function(){return this.zh()?this.zh().Pk():null},X.ai=function(){return Jk(this)},X.bi=function(e,t){h7e(this,e,t)},X.ci=function(e){this.$h().Sk(e)},X.di=function(e){this.$h().Vk(e)},X.ei=function(e){this.$h().Uk(e)},X.fi=function(e,t){var n,r,i,a=this.Jh();return a&&e&&(t=SA(a.El(),this,t),a.Il(this)),r=this.Ph(),r&&((yot(this,this.Ph(),this.Fh()).Bb&XB)==0?(t=(n=this.Fh(),n>=0?this.Ah(t):this.Ph().Th(this,-1-n,null,t)),t=this.Ch(null,-1,t)):(i=r.Qh(),i&&(e?!a&&i.Il(this):i.Hl(this)))),this.di(e),t},X.gi=function(e){var t,n=this.Dh(),r,i,a=$O(n,e),o,s,l;if(t=this.ji(),a>=t)return H(e,69).wk().Dk(this,this.hi(),a-t);if(a<=-1){if(o=CR((LN(),o9),n,e),o){if(Gl(),H(o,69).xk()||(o=Vb(tC(o9,o))),i=(r=this.Ih(o),H(r>=0?this.Lh(r,!0,!0):kP(this,o,!0),160)),l=o.Ik(),l>1||l==-1)return H(H(i,220).Sl(e,!1),79)}else throw R(new Ks(HG+e.xe()+WG))}else if(e.Jk())return r=this.Ih(e),H(r>=0?this.Lh(r,!1,!0):kP(this,e,!1),79);return s=new Abe(this,e),s},X.hi=function(){return YUe(this)},X.ii=function(){return(j_(),V7).S},X.ji=function(){return M_(this.ii())},X.ki=function(e){N5e(this,e)},X.Ib=function(){return $P(this)},U(qG,`BasicEObjectImpl`,99);var JBt;J(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),X.li=function(e){return JUe(this)[e]},X.mi=function(e,t){F_(JUe(this),e,t)},X.ni=function(e){F_(JUe(this),e,null)},X.th=function(){return H(PT(this,4),129)},X.uh=function(){throw R(new Po)},X.vh=function(){return!!(this.Db&4)},X.zh=function(){throw R(new Po)},X.oi=function(e){qk(this,2,e)},X.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},X.Dh=function(){return Ty(this)},X.Fh=function(){return this.Db>>16},X.Gh=function(){var e,t;return Ul(),t=lFe($I((e=H(PT(this,16),29),e||this.ii()))),t==null?iHt:new dp(this,t)},X.wh=function(){return!(this.Db&1)},X.Jh=function(){return H(PT(this,128),2034)},X.Kh=function(){return H(PT(this,16),29)},X.Oh=function(){return!!(this.Db&32)},X.Ph=function(){return H(PT(this,2),54)},X.Vh=function(){return!!(this.Db&64)},X.$h=function(){throw R(new Po)},X._h=function(){return H(PT(this,64),288)},X.ci=function(e){qk(this,16,e)},X.di=function(e){qk(this,128,e)},X.ei=function(e){qk(this,64,e)},X.hi=function(){return Kk(this)},X.Db=0,U(qG,`MinimalEObjectImpl`,119),J(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.oi=function(e){this.Cb=e},X.Ph=function(){return this.Cb},U(qG,`MinimalEObjectImpl/Container`,120),J(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return i4e(this,e,t,n)},X.Uh=function(e,t,n){return I8e(this,e,t,n)},X.Wh=function(e){return ULe(this,e)},X.bi=function(e,t){kYe(this,e,t)},X.ii=function(){return oz(),qBt},X.ki=function(e){vE(this,e)},X.nf=function(){return K1e(this)},X.gh=function(){return!this.o&&(this.o=new kS((oz(),v7),C7,this,0)),this.o},X.of=function(e){return qP(this,e)},X.pf=function(e){return hS(this,e)},X.qf=function(e,t){return xA(this,e,t)},U(JG,`EMapPropertyHolderImpl`,2083),J(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Moe),X.Lh=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return CA(this,e,t,n)},X.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return G1e(this,e)},X.bi=function(e,t){switch(e){case 0:CGe(this,z(Ip(t)));return;case 1:nw(this,z(Ip(t)));return}h7e(this,e,t)},X.ii=function(){return oz(),RBt},X.ki=function(e){switch(e){case 0:CGe(this,0);return;case 1:nw(this,0);return}N5e(this,e)},X.Ib=function(){var e;return this.Db&64?$P(this):(e=new Zf($P(this)),e.a+=` (x: `,Ic(e,this.a),e.a+=`, y: `,Ic(e,this.b),e.a+=`)`,e.a)},X.a=0,X.b=0,U(JG,`ElkBendPointImpl`,572),J(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return JZe(this,e,t,n)},X.Sh=function(e,t,n){return BM(this,e,t,n)},X.Uh=function(e,t,n){return DJe(this,e,t,n)},X.Wh=function(e){return lJe(this,e)},X.bi=function(e,t){sM(this,e,t)},X.ii=function(){return oz(),HBt},X.ki=function(e){dZe(this,e)},X.jh=function(){return this.k},X.kh=function(){return bv(this)},X.Ib=function(){return hO(this)},X.k=null,U(JG,`ElkGraphElementImpl`,739),J(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return LO(this,e,t,n)},X.Wh=function(e){return YQe(this,e)},X.bi=function(e,t){O3e(this,e,t)},X.ii=function(){return oz(),KBt},X.ki=function(e){_$e(this,e)},X.lh=function(){return this.f},X.mh=function(){return this.g},X.nh=function(){return this.i},X.oh=function(){return this.j},X.ph=function(e,t){Xd(this,e,t)},X.qh=function(e,t){Zd(this,e,t)},X.rh=function(e){ow(this,e)},X.sh=function(e){sw(this,e)},X.Ib=function(){return hN(this)},X.f=0,X.g=0,X.i=0,X.j=0,U(JG,`ElkShapeImpl`,740),J(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return $0e(this,e,t,n)},X.Sh=function(e,t,n){return p3e(this,e,t,n)},X.Uh=function(e,t,n){return m3e(this,e,t,n)},X.Wh=function(e){return SYe(this,e)},X.bi=function(e,t){KP(this,e,t)},X.ii=function(){return oz(),zBt},X.ki=function(e){s0e(this,e)},X.hh=function(){return!this.d&&(this.d=new pm(p7,this,8,5)),this.d},X.ih=function(){return!this.e&&(this.e=new pm(p7,this,7,4)),this.e},U(JG,`ElkConnectableShapeImpl`,741),J(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Wn),X.Ah=function(e){return I4e(this,e)},X.Lh=function(e,t,n){switch(e){case 3:return Gy(this);case 4:return!this.b&&(this.b=new pm(f7,this,4,7)),this.b;case 5:return!this.c&&(this.c=new pm(f7,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Bg(m7,this,6,6)),this.a;case 7:return lp(),!this.b&&(this.b=new pm(f7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new pm(f7,this,5,8)),this.c.i<=1));case 8:return lp(),!!zP(this);case 9:return lp(),!!wP(this);case 10:return lp(),!this.b&&(this.b=new pm(f7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new pm(f7,this,5,8)),this.c.i!=0)}return JZe(this,e,t,n)},X.Sh=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?I4e(this,n):this.Cb.Th(this,-1-r,null,n))),yTe(this,H(e,27),n);case 4:return!this.b&&(this.b=new pm(f7,this,4,7)),_k(this.b,e,n);case 5:return!this.c&&(this.c=new pm(f7,this,5,8)),_k(this.c,e,n);case 6:return!this.a&&(this.a=new Bg(m7,this,6,6)),_k(this.a,e,n)}return BM(this,e,t,n)},X.Uh=function(e,t,n){switch(t){case 3:return yTe(this,null,n);case 4:return!this.b&&(this.b=new pm(f7,this,4,7)),SA(this.b,e,n);case 5:return!this.c&&(this.c=new pm(f7,this,5,8)),SA(this.c,e,n);case 6:return!this.a&&(this.a=new Bg(m7,this,6,6)),SA(this.a,e,n)}return DJe(this,e,t,n)},X.Wh=function(e){switch(e){case 3:return!!Gy(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new pm(f7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new pm(f7,this,5,8)),this.c.i<=1));case 8:return zP(this);case 9:return wP(this);case 10:return!this.b&&(this.b=new pm(f7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new pm(f7,this,5,8)),this.c.i!=0)}return lJe(this,e)},X.bi=function(e,t){switch(e){case 3:mF(this,H(t,27));return;case 4:!this.b&&(this.b=new pm(f7,this,4,7)),hR(this.b),!this.b&&(this.b=new pm(f7,this,4,7)),y_(this.b,H(t,16));return;case 5:!this.c&&(this.c=new pm(f7,this,5,8)),hR(this.c),!this.c&&(this.c=new pm(f7,this,5,8)),y_(this.c,H(t,16));return;case 6:!this.a&&(this.a=new Bg(m7,this,6,6)),hR(this.a),!this.a&&(this.a=new Bg(m7,this,6,6)),y_(this.a,H(t,16));return}sM(this,e,t)},X.ii=function(){return oz(),BBt},X.ki=function(e){switch(e){case 3:mF(this,null);return;case 4:!this.b&&(this.b=new pm(f7,this,4,7)),hR(this.b);return;case 5:!this.c&&(this.c=new pm(f7,this,5,8)),hR(this.c);return;case 6:!this.a&&(this.a=new Bg(m7,this,6,6)),hR(this.a);return}dZe(this,e)},X.Ib=function(){return Bct(this)},U(JG,`ElkEdgeImpl`,326),J(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Poe),X.Ah=function(e){return Ej(this,e)},X.Lh=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Mf(d7,this,5)),this.a;case 6:return OFe(this);case 7:return t?B0e(this):this.i;case 8:return t?z0e(this):this.f;case 9:return!this.g&&(this.g=new pm(m7,this,9,10)),this.g;case 10:return!this.e&&(this.e=new pm(m7,this,10,9)),this.e;case 11:return this.d}return i4e(this,e,t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?Ej(this,n):this.Cb.Th(this,-1-i,null,n))),vTe(this,H(e,74),n);case 9:return!this.g&&(this.g=new pm(m7,this,9,10)),_k(this.g,e,n);case 10:return!this.e&&(this.e=new pm(m7,this,10,9)),_k(this.e,e,n)}return a=H(MC((r=H(PT(this,16),29),r||(oz(),VBt)),t),69),a.wk().zk(this,Kk(this),t-M_((oz(),VBt)),e,n)},X.Uh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new Mf(d7,this,5)),SA(this.a,e,n);case 6:return vTe(this,null,n);case 9:return!this.g&&(this.g=new pm(m7,this,9,10)),SA(this.g,e,n);case 10:return!this.e&&(this.e=new pm(m7,this,10,9)),SA(this.e,e,n)}return I8e(this,e,t,n)},X.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!OFe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return ULe(this,e)},X.bi=function(e,t){switch(e){case 1:cw(this,z(Ip(t)));return;case 2:uw(this,z(Ip(t)));return;case 3:rw(this,z(Ip(t)));return;case 4:lw(this,z(Ip(t)));return;case 5:!this.a&&(this.a=new Mf(d7,this,5)),hR(this.a),!this.a&&(this.a=new Mf(d7,this,5)),y_(this.a,H(t,16));return;case 6:pF(this,H(t,74));return;case 7:TKe(this,H(t,84));return;case 8:wKe(this,H(t,84));return;case 9:!this.g&&(this.g=new pm(m7,this,9,10)),hR(this.g),!this.g&&(this.g=new pm(m7,this,9,10)),y_(this.g,H(t,16));return;case 10:!this.e&&(this.e=new pm(m7,this,10,9)),hR(this.e),!this.e&&(this.e=new pm(m7,this,10,9)),y_(this.e,H(t,16));return;case 11:UKe(this,Lp(t));return}kYe(this,e,t)},X.ii=function(){return oz(),VBt},X.ki=function(e){switch(e){case 1:cw(this,0);return;case 2:uw(this,0);return;case 3:rw(this,0);return;case 4:lw(this,0);return;case 5:!this.a&&(this.a=new Mf(d7,this,5)),hR(this.a);return;case 6:pF(this,null);return;case 7:TKe(this,null);return;case 8:wKe(this,null);return;case 9:!this.g&&(this.g=new pm(m7,this,9,10)),hR(this.g);return;case 10:!this.e&&(this.e=new pm(m7,this,10,9)),hR(this.e);return;case 11:UKe(this,null);return}vE(this,e)},X.Ib=function(){return $9e(this)},X.b=0,X.c=0,X.d=null,X.j=0,X.k=0,U(JG,`ElkEdgeSectionImpl`,452),J(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),X.Lh=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab):BS(this,e-M_(this.ii()),MC((r=H(PT(this,16),29),r||this.ii()),e),t,n)},X.Sh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n)):(i=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),i.wk().zk(this,Kk(this),t-M_(this.ii()),e,n))},X.Uh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n)):(i=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Kk(this),t-M_(this.ii()),e,n))},X.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:hx(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.Zh=function(e){return tft(this,e)},X.bi=function(e,t){var n;if(e===0){!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return}zO(this,e-M_(this.ii()),MC((n=H(PT(this,16),29),n||this.ii()),e),t)},X.di=function(e){qk(this,128,e)},X.ii=function(){return bz(),KVt},X.ki=function(e){var t;if(e===0){!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return}BD(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.pi=function(){this.Bb|=1},X.qi=function(e){return BI(this,e)},X.Bb=0,U(qG,`EModelElementImpl`,158),J(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},F),X.ri=function(e,t){return Aut(this,e,t)},X.si=function(e){var t,n,r,i,a;if(this.a!=qC(e)||e.Bb&256)throw R(new Ks(obt+e.zb+ZG));for(r=Cy(e);Sx(r.a).i!=0;){if(n=H(kR(r,0,(t=H(G(Sx(r.a),0),89),a=t.c,V(a,90)?H(a,29):(bz(),X7))),29),aj(n))return i=qC(n).wi().si(n),H(i,54).ci(e),i;r=Cy(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new Ih(e):new jke(e)},X.ti=function(e,t){return lz(this,e,t)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.a}return BS(this,e-M_((bz(),q7)),MC((r=H(PT(this,16),29),r||q7),e),t,n)},X.Sh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 1:return this.a&&(n=H(this.a,54).Th(this,4,g7,n)),aZe(this,H(e,241),n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),q7)),t),69),i.wk().zk(this,Kk(this),t-M_((bz(),q7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 1:return aZe(this,null,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),q7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),q7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return hx(this,e-M_((bz(),q7)),MC((t=H(PT(this,16),29),t||q7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:iN(this,H(t,241));return}zO(this,e-M_((bz(),q7)),MC((n=H(PT(this,16),29),n||q7),e),t)},X.ii=function(){return bz(),q7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:iN(this,null);return}BD(this,e-M_((bz(),q7)),MC((t=H(PT(this,16),29),t||q7),e))};var S7,YBt,XBt;U(qG,`EFactoryImpl`,720),J(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Foe),X.ri=function(e,t){switch(e.hk()){case 12:return H(t,149).Pg();case 13:return FO(t);default:throw R(new Ks(XG+e.xe()+ZG))}},X.si=function(e){var t,n,r,i,a,o,s,l;switch(e.G==-1&&(e.G=(t=qC(e),t?wA(t.vi(),e):-1)),e.G){case 4:return a=new Ioe,a;case 6:return o=new ss,o;case 7:return s=new Jpe,s;case 8:return r=new Wn,r;case 9:return n=new Moe,n;case 10:return i=new Poe,i;case 11:return l=new Loe,l;default:throw R(new Ks(obt+e.zb+ZG))}},X.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw R(new Ks(XG+e.xe()+ZG))}},U(JG,`ElkGraphFactoryImpl`,1037),J(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),X.Gh=function(){var e,t=(e=H(PT(this,16),29),lFe($I(e||this.ii())));return t==null?(Ul(),Ul(),iHt):new Owe(this,t)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.xe()}return BS(this,e-M_(this.ii()),MC((r=H(PT(this,16),29),r||this.ii()),e),t,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return hx(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:this.ui(Lp(t));return}zO(this,e-M_(this.ii()),MC((n=H(PT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return bz(),qVt},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:this.ui(null);return}BD(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.xe=function(){return this.zb},X.ui=function(e){Bw(this,e)},X.Ib=function(){return PD(this)},X.zb=null,U(qG,`ENamedElementImpl`,448),J(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},pPe),X.Ah=function(e){return Oj(this,e)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Wg(this,j7,this)),this.rb;case 6:return!this.vb&&(this.vb=new fm(g7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?H(this.Cb,241):null:zFe(this)}return BS(this,e-M_((bz(),Q7)),MC((r=H(PT(this,16),29),r||Q7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 4:return this.sb&&(n=H(this.sb,54).Th(this,1,h7,n)),CZe(this,H(e,480),n);case 5:return!this.rb&&(this.rb=new Wg(this,j7,this)),_k(this.rb,e,n);case 6:return!this.vb&&(this.vb=new fm(g7,this,6,7)),_k(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?Oj(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,7,n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),Q7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),Q7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 4:return CZe(this,null,n);case 5:return!this.rb&&(this.rb=new Wg(this,j7,this)),SA(this.rb,e,n);case 6:return!this.vb&&(this.vb=new fm(g7,this,6,7)),SA(this.vb,e,n);case 7:return LI(this,null,7,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),Q7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),Q7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!zFe(this)}return hx(this,e-M_((bz(),Q7)),MC((t=H(PT(this,16),29),t||Q7),e))},X.Zh=function(e){return srt(this,e)||tft(this,e)},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:Bw(this,Lp(t));return;case 2:pqe(this,Lp(t));return;case 3:Vw(this,Lp(t));return;case 4:dN(this,H(t,480));return;case 5:!this.rb&&(this.rb=new Wg(this,j7,this)),hR(this.rb),!this.rb&&(this.rb=new Wg(this,j7,this)),y_(this.rb,H(t,16));return;case 6:!this.vb&&(this.vb=new fm(g7,this,6,7)),hR(this.vb),!this.vb&&(this.vb=new fm(g7,this,6,7)),y_(this.vb,H(t,16));return}zO(this,e-M_((bz(),Q7)),MC((n=H(PT(this,16),29),n||Q7),e),t)},X.ei=function(e){var t,n;if(e&&this.rb)for(n=new Lf(this.rb);n.e!=n.i.gc();)t=fA(n),V(t,364)&&(H(t,364).w=null);qk(this,64,e)},X.ii=function(){return bz(),Q7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:Bw(this,null);return;case 2:pqe(this,null);return;case 3:Vw(this,null);return;case 4:dN(this,null);return;case 5:!this.rb&&(this.rb=new Wg(this,j7,this)),hR(this.rb);return;case 6:!this.vb&&(this.vb=new fm(g7,this,6,7)),hR(this.vb);return}BD(this,e-M_((bz(),Q7)),MC((t=H(PT(this,16),29),t||Q7),e))},X.pi=function(){a4e(this)},X.vi=function(){return!this.rb&&(this.rb=new Wg(this,j7,this)),this.rb},X.wi=function(){return this.sb},X.xi=function(){return this.ub},X.yi=function(){return this.xb},X.zi=function(){return this.yb},X.Ai=function(e){this.ub=e},X.Ib=function(){var e;return this.Db&64?PD(this):(e=new Zf(PD(this)),e.a+=` (nsURI: `,gd(e,this.yb),e.a+=`, nsPrefix: `,gd(e,this.xb),e.a+=`)`,e.a)},X.xb=null,X.yb=null;var ZBt;U(qG,`EPackageImpl`,184),J(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},VP),X.q=!1,X.r=!1;var QBt=!1;U(JG,`ElkGraphPackageImpl`,569),J(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Ioe),X.Ah=function(e){return Dj(this,e)},X.Lh=function(e,t,n){switch(e){case 7:return BFe(this);case 8:return this.a}return LO(this,e,t,n)},X.Sh=function(e,t,n){var r;return t===7?(this.Cb&&(n=(r=this.Db>>16,r>=0?Dj(this,n):this.Cb.Th(this,-1-r,null,n))),ije(this,H(e,167),n)):BM(this,e,t,n)},X.Uh=function(e,t,n){return t==7?ije(this,null,n):DJe(this,e,t,n)},X.Wh=function(e){switch(e){case 7:return!!BFe(this);case 8:return!hm(``,this.a)}return YQe(this,e)},X.bi=function(e,t){switch(e){case 7:irt(this,H(t,167));return;case 8:EKe(this,Lp(t));return}O3e(this,e,t)},X.ii=function(){return oz(),UBt},X.ki=function(e){switch(e){case 7:irt(this,null);return;case 8:EKe(this,``);return}_$e(this,e)},X.Ib=function(){return x5e(this)},X.a=``,U(JG,`ElkLabelImpl`,366),J(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},ss),X.Ah=function(e){return L4e(this,e)},X.Lh=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new Bg(x7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Bg(b7,this,10,11)),this.a;case 11:return ob(this);case 12:return!this.b&&(this.b=new Bg(p7,this,12,3)),this.b;case 13:return lp(),!this.a&&(this.a=new Bg(b7,this,10,11)),this.a.i>0}return $0e(this,e,t,n)},X.Sh=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new Bg(x7,this,9,9)),_k(this.c,e,n);case 10:return!this.a&&(this.a=new Bg(b7,this,10,11)),_k(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?L4e(this,n):this.Cb.Th(this,-1-r,null,n))),eEe(this,H(e,27),n);case 12:return!this.b&&(this.b=new Bg(p7,this,12,3)),_k(this.b,e,n)}return p3e(this,e,t,n)},X.Uh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new Bg(x7,this,9,9)),SA(this.c,e,n);case 10:return!this.a&&(this.a=new Bg(b7,this,10,11)),SA(this.a,e,n);case 11:return eEe(this,null,n);case 12:return!this.b&&(this.b=new Bg(p7,this,12,3)),SA(this.b,e,n)}return m3e(this,e,t,n)},X.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!ob(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Bg(b7,this,10,11)),this.a.i>0}return SYe(this,e)},X.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new Bg(x7,this,9,9)),hR(this.c),!this.c&&(this.c=new Bg(x7,this,9,9)),y_(this.c,H(t,16));return;case 10:!this.a&&(this.a=new Bg(b7,this,10,11)),hR(this.a),!this.a&&(this.a=new Bg(b7,this,10,11)),y_(this.a,H(t,16));return;case 11:_F(this,H(t,27));return;case 12:!this.b&&(this.b=new Bg(p7,this,12,3)),hR(this.b),!this.b&&(this.b=new Bg(p7,this,12,3)),y_(this.b,H(t,16));return}KP(this,e,t)},X.ii=function(){return oz(),WBt},X.ki=function(e){switch(e){case 9:!this.c&&(this.c=new Bg(x7,this,9,9)),hR(this.c);return;case 10:!this.a&&(this.a=new Bg(b7,this,10,11)),hR(this.a);return;case 11:_F(this,null);return;case 12:!this.b&&(this.b=new Bg(p7,this,12,3)),hR(this.b);return}s0e(this,e)},X.Ib=function(){return aI(this)},U(JG,`ElkNodeImpl`,207),J(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Jpe),X.Ah=function(e){return O4e(this,e)},X.Lh=function(e,t,n){return e==9?Ky(this):$0e(this,e,t,n)},X.Sh=function(e,t,n){var r;return t===9?(this.Cb&&(n=(r=this.Db>>16,r>=0?O4e(this,n):this.Cb.Th(this,-1-r,null,n))),bTe(this,H(e,27),n)):p3e(this,e,t,n)},X.Uh=function(e,t,n){return t==9?bTe(this,null,n):m3e(this,e,t,n)},X.Wh=function(e){return e==9?!!Ky(this):SYe(this,e)},X.bi=function(e,t){if(e===9){wnt(this,H(t,27));return}KP(this,e,t)},X.ii=function(){return oz(),GBt},X.ki=function(e){if(e===9){wnt(this,null);return}s0e(this,e)},X.Ib=function(){return Yat(this)},U(JG,`ElkPortImpl`,193);var $Bt=Lh(oK,`BasicEMap/Entry`);J(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},Loe),X.Fb=function(e){return this===e},X.ld=function(){return this.b},X.Hb=function(){return cp(this)},X.Di=function(e){DKe(this,H(e,149))},X.Lh=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return CA(this,e,t,n)},X.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return G1e(this,e)},X.bi=function(e,t){switch(e){case 0:DKe(this,H(t,149));return;case 1:xKe(this,t);return}h7e(this,e,t)},X.ii=function(){return oz(),v7},X.ki=function(e){switch(e){case 0:DKe(this,null);return;case 1:xKe(this,null);return}N5e(this,e)},X.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?zw(e):0),this.a},X.md=function(){return this.c},X.Ci=function(e){this.a=e},X.nd=function(e){var t=this.c;return xKe(this,e),t},X.Ib=function(){var e;return this.Db&64?$P(this):(e=new sc,yd(yd(yd(e,this.b?this.b.Pg():Mz),Vht),Xf(this.c)),e.a)},X.a=-1,X.c=null;var C7=U(JG,`ElkPropertyToValueMapEntryImpl`,1122);J(996,1,{},Roe),U(lK,`JsonAdapter`,996),J(216,63,gB,Qs),U(lK,`JsonImportException`,216),J(868,1,{},Aj),U(lK,`JsonImporter`,868),J(903,1,{},abe),U(lK,`JsonImporter/lambda$0$Type`,903),J(904,1,{},obe),U(lK,`JsonImporter/lambda$1$Type`,904),J(912,1,{},cfe),U(lK,`JsonImporter/lambda$10$Type`,912),J(914,1,{},sbe),U(lK,`JsonImporter/lambda$11$Type`,914),J(915,1,{},cbe),U(lK,`JsonImporter/lambda$12$Type`,915),J(921,1,{},GNe),U(lK,`JsonImporter/lambda$13$Type`,921),J(920,1,{},KNe),U(lK,`JsonImporter/lambda$14$Type`,920),J(916,1,{},lbe),U(lK,`JsonImporter/lambda$15$Type`,916),J(917,1,{},ube),U(lK,`JsonImporter/lambda$16$Type`,917),J(918,1,{},dbe),U(lK,`JsonImporter/lambda$17$Type`,918),J(919,1,{},fbe),U(lK,`JsonImporter/lambda$18$Type`,919),J(924,1,{},lfe),U(lK,`JsonImporter/lambda$19$Type`,924),J(905,1,{},ufe),U(lK,`JsonImporter/lambda$2$Type`,905),J(922,1,{},dfe),U(lK,`JsonImporter/lambda$20$Type`,922),J(923,1,{},ffe),U(lK,`JsonImporter/lambda$21$Type`,923),J(927,1,{},pfe),U(lK,`JsonImporter/lambda$22$Type`,927),J(925,1,{},mfe),U(lK,`JsonImporter/lambda$23$Type`,925),J(926,1,{},hfe),U(lK,`JsonImporter/lambda$24$Type`,926),J(929,1,{},gfe),U(lK,`JsonImporter/lambda$25$Type`,929),J(928,1,{},_fe),U(lK,`JsonImporter/lambda$26$Type`,928),J(930,1,Yz,pbe),X.Cd=function(e){qHe(this.b,this.a,Lp(e))},U(lK,`JsonImporter/lambda$27$Type`,930),J(931,1,Yz,mbe),X.Cd=function(e){JHe(this.b,this.a,Lp(e))},U(lK,`JsonImporter/lambda$28$Type`,931),J(932,1,{},hbe),U(lK,`JsonImporter/lambda$29$Type`,932),J(908,1,{},vfe),U(lK,`JsonImporter/lambda$3$Type`,908),J(933,1,{},gbe),U(lK,`JsonImporter/lambda$30$Type`,933),J(934,1,{},yfe),U(lK,`JsonImporter/lambda$31$Type`,934),J(935,1,{},bfe),U(lK,`JsonImporter/lambda$32$Type`,935),J(936,1,{},xfe),U(lK,`JsonImporter/lambda$33$Type`,936),J(937,1,{},Sfe),U(lK,`JsonImporter/lambda$34$Type`,937),J(870,1,{},Cfe),U(lK,`JsonImporter/lambda$35$Type`,870),J(941,1,{},GOe),U(lK,`JsonImporter/lambda$36$Type`,941),J(938,1,Yz,wfe),X.Cd=function(e){SBe(this.a,H(e,377))},U(lK,`JsonImporter/lambda$37$Type`,938),J(939,1,Yz,_be),X.Cd=function(e){Tbe(this.a,this.b,H(e,166))},U(lK,`JsonImporter/lambda$38$Type`,939),J(940,1,Yz,vbe),X.Cd=function(e){Ebe(this.a,this.b,H(e,166))},U(lK,`JsonImporter/lambda$39$Type`,940),J(906,1,{},Tfe),U(lK,`JsonImporter/lambda$4$Type`,906),J(942,1,Yz,Efe),X.Cd=function(e){CBe(this.a,H(e,8))},U(lK,`JsonImporter/lambda$40$Type`,942),J(907,1,{},Dfe),U(lK,`JsonImporter/lambda$5$Type`,907),J(911,1,{},Ofe),U(lK,`JsonImporter/lambda$6$Type`,911),J(909,1,{},kfe),U(lK,`JsonImporter/lambda$7$Type`,909),J(910,1,{},Afe),U(lK,`JsonImporter/lambda$8$Type`,910),J(913,1,{},jfe),U(lK,`JsonImporter/lambda$9$Type`,913),J(961,1,Yz,Mfe),X.Cd=function(e){z_(this.a,new O_(Lp(e)))},U(lK,`JsonMetaDataConverter/lambda$0$Type`,961),J(962,1,Yz,Nfe),X.Cd=function(e){vMe(this.a,H(e,245))},U(lK,`JsonMetaDataConverter/lambda$1$Type`,962),J(963,1,Yz,Pfe),X.Cd=function(e){cIe(this.a,H(e,143))},U(lK,`JsonMetaDataConverter/lambda$2$Type`,963),J(964,1,Yz,Ffe),X.Cd=function(e){yMe(this.a,H(e,170))},U(lK,`JsonMetaDataConverter/lambda$3$Type`,964),J(245,22,{3:1,34:1,22:1,245:1},id);var eVt,tVt,nVt,rVt,iVt,aVt,oVt,sVt,cVt=vw(JV,`GraphFeature`,245,sJ,RC,rke),lVt;J(11,1,{34:1,149:1},ao,Yp,Td,cf),X.Fd=function(e){return QSe(this,H(e,149))},X.Fb=function(e){return RPe(this,e)},X.Sg=function(){return dA(this)},X.Pg=function(){return this.b},X.Hb=function(){return KE(this.b)},X.Ib=function(){return this.b},U(JV,`Property`,11),J(671,1,dV,io),X.Ne=function(e,t){return uQe(this,H(e,96),H(t,96))},X.Fb=function(e){return this===e},X.Oe=function(){return new ea(this)},U(JV,`PropertyHolderComparator`,671),J(709,1,Lz,Ife),X.Nb=function(e){Yg(this,e)},X.Pb=function(){return ZHe(this)},X.Qb=function(){lge()},X.Ob=function(){return!!this.a},U(pK,`ElkGraphUtil/AncestorIterator`,709);var uVt=Lh(oK,`EList`);J(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),X.bd=function(e,t){$D(this,e,t)},X.Fc=function(e){return SS(this,e)},X.cd=function(e,t){return yE(this,e,t)},X.Gc=function(e){return y_(this,e)},X.Ii=function(){return new mp(this)},X.Ji=function(){return new hp(this)},X.Ki=function(e){return Tw(this,e)},X.Li=function(){return!0},X.Mi=function(e,t){},X.Ni=function(){},X.Oi=function(e,t){xHe(this,e,t)},X.Pi=function(e,t,n){},X.Qi=function(e,t){},X.Ri=function(e,t,n){},X.Fb=function(e){return iat(this,e)},X.Hb=function(){return KJe(this)},X.Si=function(){return!1},X.Kc=function(){return new Lf(this)},X.ed=function(){return new pp(this)},X.fd=function(e){var t=this.gc();if(e<0||e>t)throw R(new mm(e,t));return new u_(this,e)},X.Ui=function(e,t){this.Ti(e,this.dd(t))},X.Mc=function(e){return gC(this,e)},X.Wi=function(e,t){return t},X.hd=function(e,t){return TA(this,e,t)},X.Ib=function(){return KO(this)},X.Yi=function(){return!0},X.Zi=function(e,t){return GE(this,t)},U(oK,`AbstractEList`,70),J(66,70,_K,qn,KC,Mqe),X.Ei=function(e,t){return q6e(this,e,t)},X.Fi=function(e){return g2e(this,e)},X.Gi=function(e,t){ID(this,e,t)},X.Hi=function(e){Yx(this,e)},X.$i=function(e){return tUe(this,e)},X.$b=function(){Xx(this)},X.Hc=function(e){return Zj(this,e)},X.Xb=function(e){return G(this,e)},X._i=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t=0&&(this.gd(t),!0)},X.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},X.gc=function(){return this.Ej()},X.Pc=function(){return this.Fj()},X.Qc=function(e){return this.Gj(e)},X.Ib=function(){return this.Hj()},U(oK,`DelegatingEList`,2093),J(2094,2093,jK),X.Ei=function(e,t){return jst(this,e,t)},X.Fi=function(e){return this.Ei(this.Ej(),e)},X.Gi=function(e,t){wet(this,e,t)},X.Hi=function(e){X9e(this,e)},X.Li=function(){return!this.Mj()},X.$b=function(){yR(this)},X.Ij=function(e,t,n,r,i){return new IPe(this,e,t,n,r,i)},X.Jj=function(e){jT(this.jj(),e)},X.Kj=function(){return null},X.Lj=function(){return-1},X.jj=function(){return null},X.Mj=function(){return!1},X.Nj=function(e,t){return t},X.Oj=function(e,t){return t},X.Pj=function(){return!1},X.Qj=function(){return!this.Aj()},X.Ti=function(e,t){var n,r;return this.Pj()?(r=this.Qj(),n=nN(this,e,t),this.Jj(this.Ij(7,kD(t),n,e,r)),n):nN(this,e,t)},X.gd=function(e){var t,n,r,i;return this.Pj()?(n=null,r=this.Qj(),t=this.Ij(4,i=Rh(this,e),null,e,r),this.Mj()&&i&&(n=this.Oj(i,n)),n?(n.nj(t),n.oj()):this.Jj(t),i):(i=Rh(this,e),this.Mj()&&i&&(n=this.Oj(i,null),n&&n.oj()),i)},X.Xi=function(e,t){return Mst(this,e,t)},U(VG,`DelegatingNotifyingListImpl`,2094),J(152,1,MK),X.nj=function(e){return o6e(this,e)},X.oj=function(){zUe(this)},X.gj=function(){return this.d},X.Kj=function(){return null},X.Rj=function(){return null},X.hj=function(e){return-1},X.ij=function(){return iit(this)},X.jj=function(){return null},X.kj=function(){return ait(this)},X.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},X.Sj=function(){return!1},X.mj=function(e){var t,n,r,i,a,o,s,l,u,d,f;switch(this.d){case 1:case 2:switch(i=e.gj(),i){case 1:case 2:if(a=e.jj(),cd(a)===cd(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:if(i=e.gj(),i===4&&(a=e.jj(),cd(a)===cd(this.jj())&&this.hj(null)==e.hj(null)))return u=OR(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.lj(),this.d=6,f=new KC(2),l<=o?(SS(f,this.n),SS(f,e.kj()),this.g=K(B(F9,1),NB,28,15,[this.o=l,o+1])):(SS(f,e.kj()),SS(f,this.n),this.g=K(B(F9,1),NB,28,15,[this.o=o,l])),this.n=f,u||(this.o=-2-this.o-1),!0;break;case 6:if(i=e.gj(),i===4&&(a=e.jj(),cd(a)===cd(this.jj())&&this.hj(null)==e.hj(null))){for(u=OR(this),o=e.lj(),d=H(this.g,53),r=vS(F9,NB,28,d.length+1,15,1),t=0;t>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:oge(r,this.d)}if(uot(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,oge(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,hd(r,this.jj()),r.a+=`, feature: `,hd(r,this.Kj()),r.a+=`, oldValue: `,hd(r,ait(this)),r.a+=`, newValue: `,this.d==6&&V(this.g,53)){for(n=H(this.g,53),r.a+=`[`,e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new qh(this),this.a=this.j),il(this.b,e)):Zj(this,e)},X.Yi=function(){return!0},X.a=0,U(oK,`AbstractEList/1`,966),J(302,77,Omt,mm),U(oK,`AbstractEList/BasicIndexOutOfBoundsException`,302),J(37,1,Lz,Lf),X.Nb=function(e){Yg(this,e)},X.Xj=function(){if(this.i.j!=this.f)throw R(new Fo)},X.Yj=function(){return fA(this)},X.Ob=function(){return this.e!=this.i.gc()},X.Pb=function(){return this.Yj()},X.Qb=function(){uM(this)},X.e=0,X.f=0,X.g=-1,U(oK,`AbstractEList/EIterator`,37),J(286,37,Wz,pp,u_),X.Qb=function(){uM(this)},X.Rb=function(e){y$e(this,e)},X.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(e){throw e=eE(e),V(e,77)?(this.Xj(),R(new Io)):R(e)}},X.$j=function(e){KA(this,e)},X.Sb=function(){return this.e!=0},X.Tb=function(){return this.e},X.Ub=function(){return this.Zj()},X.Vb=function(){return this.e-1},X.Wb=function(e){this.$j(e)},U(oK,`AbstractEList/EListIterator`,286),J(355,37,Lz,mp),X.Yj=function(){return J1e(this)},X.Qb=function(){throw R(new Po)},U(oK,`AbstractEList/NonResolvingEIterator`,355),J(398,286,Wz,hp,ym),X.Rb=function(e){throw R(new Po)},X.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(e){throw e=eE(e),V(e,77)?(this.Xj(),R(new Io)):R(e)}},X.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(e){throw e=eE(e),V(e,77)?(this.Xj(),R(new Io)):R(e)}},X.Qb=function(){throw R(new Po)},X.Wb=function(e){throw R(new Po)},U(oK,`AbstractEList/NonResolvingEListIterator`,398),J(2080,70,FK),X.Ei=function(e,t){var n,r,i=t.gc(),a,o,s,l,u,d,f,p;if(i!=0){for(u=H(PT(this.a,4),129),d=u==null?0:u.length,p=d+i,r=eXe(this,p),f=d-e,f>0&&JI(u,e,r,e+i,f),l=t.Kc(),o=0;on)throw R(new mm(e,n));return new Ev(this,e)},X.$b=function(){var e,t;++this.j,e=H(PT(this.a,4),129),t=e==null?0:e.length,iA(this,null),xHe(this,t,e)},X.Hc=function(e){var t=H(PT(this.a,4),129),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i=n)throw R(new mm(e,n));return t[e]},X.dd=function(e){var t=H(PT(this.a,4),129),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;nn)throw R(new mm(e,n));return new ONe(this,e)},X.Ti=function(e,t){var n=L$e(this),r,i=n==null?0:n.length;if(e>=i)throw R(new Ws(jbt+e+hK+i));if(t>=i)throw R(new Ws(gK+t+hK+i));return r=n[t],e!=t&&(e0&&JI(e,0,t,0,n),t},X.Qc=function(e){var t=H(PT(this.a,4),129),n,r=t==null?0:t.length;return r>0&&(e.lengthr&&F_(e,r,null),e};var vVt;U(oK,`ArrayDelegatingEList`,2080),J(1051,37,Lz,HBe),X.Xj=function(){if(this.b.j!=this.f||cd(H(PT(this.b.a,4),129))!==cd(this.a))throw R(new Fo)},X.Qb=function(){uM(this),this.a=H(PT(this.b.a,4),129)},U(oK,`ArrayDelegatingEList/EIterator`,1051),J(722,286,Wz,Rje,ONe),X.Xj=function(){if(this.b.j!=this.f||cd(H(PT(this.b.a,4),129))!==cd(this.a))throw R(new Fo)},X.$j=function(e){KA(this,e),this.a=H(PT(this.b.a,4),129)},X.Qb=function(){uM(this),this.a=H(PT(this.b.a,4),129)},U(oK,`ArrayDelegatingEList/EListIterator`,722),J(1052,355,Lz,UBe),X.Xj=function(){if(this.b.j!=this.f||cd(H(PT(this.b.a,4),129))!==cd(this.a))throw R(new Fo)},U(oK,`ArrayDelegatingEList/NonResolvingEIterator`,1052),J(723,398,Wz,zje,Ev),X.Xj=function(){if(this.b.j!=this.f||cd(H(PT(this.b.a,4),129))!==cd(this.a))throw R(new Fo)},U(oK,`ArrayDelegatingEList/NonResolvingEListIterator`,723),J(615,302,Omt,ixe),U(oK,`BasicEList/BasicIndexOutOfBoundsException`,615),J(710,66,_K,Ibe),X.bd=function(e,t){throw R(new Po)},X.Fc=function(e){throw R(new Po)},X.cd=function(e,t){throw R(new Po)},X.Gc=function(e){throw R(new Po)},X.$b=function(){throw R(new Po)},X._i=function(e){throw R(new Po)},X.Kc=function(){return this.Ii()},X.ed=function(){return this.Ji()},X.fd=function(e){return this.Ki(e)},X.Ti=function(e,t){throw R(new Po)},X.Ui=function(e,t){throw R(new Po)},X.gd=function(e){throw R(new Po)},X.Mc=function(e){throw R(new Po)},X.hd=function(e,t){throw R(new Po)},U(oK,`BasicEList/UnmodifiableEList`,710),J(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),X.bd=function(e,t){LSe(this,e,H(t,44))},X.Fc=function(e){return jwe(this,H(e,44))},X.Jc=function(e){Px(this,e)},X.Xb=function(e){return H(G(this.c,e),136)},X.Ti=function(e,t){return H(this.c.Ti(e,t),44)},X.Ui=function(e,t){RSe(this,e,H(t,44))},X.Lc=function(){return new Yh(null,new Nb(this,16))},X.gd=function(e){return H(this.c.gd(e),44)},X.hd=function(e,t){return _Me(this,e,H(t,44))},X.jd=function(e){Lw(this,e)},X.Nc=function(){return new Nb(this,16)},X.Oc=function(){return new Yh(null,new Nb(this,16))},X.cd=function(e,t){return this.c.cd(e,t)},X.Gc=function(e){return this.c.Gc(e)},X.$b=function(){this.c.$b()},X.Hc=function(e){return this.c.Hc(e)},X.Ic=function(e){return $T(this.c,e)},X._j=function(){var e,t,n;if(this.d==null){for(this.d=vS(dVt,IK,66,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=H(t.Yj(),136),V0e(this,e);this.e=n}},X.Fb=function(e){return NEe(this,e)},X.Hb=function(){return KJe(this.c)},X.dd=function(e){return this.c.dd(e)},X.ak=function(){this.c=new Lfe(this)},X.dc=function(){return this.f==0},X.Kc=function(){return this.c.Kc()},X.ed=function(){return this.c.ed()},X.fd=function(e){return this.c.fd(e)},X.bk=function(){return gS(this)},X.ck=function(e,t,n){return new KOe(e,t,n)},X.dk=function(){return new Hoe},X.Mc=function(e){return KGe(this,e)},X.gc=function(){return this.f},X.kd=function(e,t){return new Sb(this.c,e,t)},X.Pc=function(){return this.c.Pc()},X.Qc=function(e){return this.c.Qc(e)},X.Ib=function(){return KO(this.c)},X.e=0,X.f=0,U(oK,`BasicEMap`,721),J(1046,66,_K,Lfe),X.Mi=function(e,t){wpe(this,H(t,136))},X.Pi=function(e,t,n){var r;++(r=this,H(t,136),r).a.e},X.Qi=function(e,t){Tpe(this,H(t,136))},X.Ri=function(e,t,n){rwe(this,H(t,136),H(n,136))},X.Oi=function(e,t){iJe(this.a)},U(oK,`BasicEMap/1`,1046),J(1047,66,_K,Hoe),X.aj=function(e){return vS(yVt,cxt,621,e,0,1)},U(oK,`BasicEMap/2`,1047),J(1048,Vz,Hz,Rfe),X.$b=function(){this.a.c.$b()},X.Hc=function(e){return dk(this.a,e)},X.Kc=function(){return this.a.f==0?(Vp(),bVt.a):new Vhe(this.a)},X.Mc=function(e){var t=this.a.f;return Vk(this.a,e),this.a.f!=t},X.gc=function(){return this.a.f},U(oK,`BasicEMap/3`,1048),J(1049,31,Bz,zfe),X.$b=function(){this.a.c.$b()},X.Hc=function(e){return qF(this.a,e)},X.Kc=function(){return this.a.f==0?(Vp(),bVt.a):new Hhe(this.a)},X.gc=function(){return this.a.f},U(oK,`BasicEMap/4`,1049),J(1050,Vz,Hz,Bfe),X.$b=function(){this.a.c.$b()},X.Hc=function(e){var t,n,r,i,a,o,s,l,u;if(this.a.f>0&&V(e,44)&&(this.a._j(),l=H(e,44),s=l.ld(),i=s==null?0:zw(s),a=xTe(this.a,i),t=this.a.d[a],t)){for(n=H(t.g,379),u=t.i,o=0;o`+this.c},X.a=0;var yVt=U(oK,`BasicEMap/EntryImpl`,621);J(546,1,{},Jn),U(oK,`BasicEMap/View`,546);var bVt;J(783,1,{}),X.Fb=function(e){return Vet((iy(),WJ),e)},X.Hb=function(){return VE((iy(),WJ))},X.Ib=function(){return rN((iy(),WJ))},U(oK,`ECollections/BasicEmptyUnmodifiableEList`,783),J(1348,1,Wz,Uoe),X.Nb=function(e){Yg(this,e)},X.Rb=function(e){throw R(new Po)},X.Ob=function(){return!1},X.Sb=function(){return!1},X.Pb=function(){throw R(new Io)},X.Tb=function(){return 0},X.Ub=function(){throw R(new Io)},X.Vb=function(){return-1},X.Qb=function(){throw R(new Po)},X.Wb=function(e){throw R(new Po)},U(oK,`ECollections/BasicEmptyUnmodifiableEList/1`,1348),J(1346,783,{20:1,16:1,15:1,61:1},Ype),X.bd=function(e,t){Ege()},X.Fc=function(e){return Dge()},X.cd=function(e,t){return Oge()},X.Gc=function(e){return kge()},X.$b=function(){Age()},X.Hc=function(e){return!1},X.Ic=function(e){return!1},X.Jc=function(e){Px(this,e)},X.Xb=function(e){return Sd((iy(),e)),null},X.dd=function(e){return-1},X.dc=function(){return!0},X.Kc=function(){return this.a},X.ed=function(){return this.a},X.fd=function(e){return this.a},X.Ti=function(e,t){return jge()},X.Ui=function(e,t){Mge()},X.Lc=function(){return new Yh(null,new Nb(this,16))},X.gd=function(e){return Nge()},X.Mc=function(e){return Pge()},X.hd=function(e,t){return Fge()},X.gc=function(){return 0},X.jd=function(e){Lw(this,e)},X.Nc=function(){return new Nb(this,16)},X.Oc=function(){return new Yh(null,new Nb(this,16))},X.kd=function(e,t){return iy(),new Sb(WJ,e,t)},X.Pc=function(){return uje((iy(),WJ))},X.Qc=function(e){return iy(),JA(WJ,e)},U(oK,`ECollections/EmptyUnmodifiableEList`,1346),J(1347,783,{20:1,16:1,15:1,61:1,597:1},Xpe),X.bd=function(e,t){Ege()},X.Fc=function(e){return Dge()},X.cd=function(e,t){return Oge()},X.Gc=function(e){return kge()},X.$b=function(){Age()},X.Hc=function(e){return!1},X.Ic=function(e){return!1},X.Jc=function(e){Px(this,e)},X.Xb=function(e){return Sd((iy(),e)),null},X.dd=function(e){return-1},X.dc=function(){return!0},X.Kc=function(){return this.a},X.ed=function(){return this.a},X.fd=function(e){return this.a},X.Ti=function(e,t){return jge()},X.Ui=function(e,t){Mge()},X.Lc=function(){return new Yh(null,new Nb(this,16))},X.gd=function(e){return Nge()},X.Mc=function(e){return Pge()},X.hd=function(e,t){return Fge()},X.gc=function(){return 0},X.jd=function(e){Lw(this,e)},X.Nc=function(){return new Nb(this,16)},X.Oc=function(){return new Yh(null,new Nb(this,16))},X.kd=function(e,t){return iy(),new Sb(WJ,e,t)},X.Pc=function(){return uje((iy(),WJ))},X.Qc=function(e){return iy(),JA(WJ,e)},X.bk=function(){return iy(),iy(),GJ},U(oK,`ECollections/EmptyUnmodifiableEMap`,1347);var xVt=Lh(oK,`Enumerator`),SVt;J(288,1,{288:1},dat),X.Fb=function(e){var t;return this===e?!0:V(e,288)?(t=H(e,288),this.f==t.f&&PAe(this.i,t.i)&&NAe(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&NAe(this.d,t.d)&&NAe(this.g,t.g)&&NAe(this.e,t.e)&&q1e(this,t)):!1},X.Hb=function(){return this.f},X.Ib=function(){return RI(this)},X.f=0;var CVt=0,wVt=0,TVt=0,EVt=0,DVt=0,OVt=0,kVt=0,AVt=0,jVt=0,MVt,T7=0,E7=0,NVt=0,PVt=0,FVt,IVt;U(oK,`URI`,288),J(1121,45,rV,Zpe),X.zc=function(e,t){return H(mb(this,Lp(e),H(t,288)),288)},U(oK,`URI/URICache`,1121),J(506,66,_K,Kn,sg),X.Si=function(){return!0},U(oK,`UniqueEList`,506),J(590,63,gB,ZS),U(oK,`WrappedException`,590);var D7=Lh(zG,RK),O7=Lh(zG,uxt),k7=Lh(zG,zK),A7=Lh(zG,dxt),j7=Lh(zG,fxt),M7=Lh(zG,`EClass`),LVt=Lh(zG,`EDataType`),RVt;J(1233,45,rV,ls),X.xc=function(e){return ld(e)?Ry(this,e):sd(dg(this.f,e))},U(zG,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1233);var zVt=Lh(zG,`EEnum`),N7=Lh(zG,pxt),P7=Lh(zG,mxt),F7=Lh(zG,hxt),I7,L7=Lh(zG,gxt),R7=Lh(zG,_xt);J(1042,1,{},Gn),X.Ib=function(){return`NIL`},U(zG,`EStructuralFeature/Internal/DynamicValueHolder/1`,1042);var BVt;J(1041,45,rV,Qpe),X.xc=function(e){return ld(e)?Ry(this,e):sd(dg(this.f,e))},U(zG,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1041);var z7=Lh(zG,vxt),B7=Lh(zG,`EValidator/PatternMatcher`),VVt,HVt,V7,H7,U7,W7,UVt,WVt,GVt,G7,K7,q7,J7,Y7,KVt,qVt,X7,Z7,JVt,Q7,$7,e9,t9,YVt,XVt,n9,ZVt=Lh(BK,`FeatureMap/Entry`);J(545,1,{76:1},kbe),X.Lk=function(){return this.a},X.md=function(){return this.b},U(qG,`BasicEObjectImpl/1`,545),J(1040,1,yxt,Abe),X.Fk=function(e){return rVe(this.a,this.b,e)},X.Qj=function(){return $y(this.a,this.b)},X.Wb=function(e){Qy(this.a,this.b,e)},X.Gk=function(){tNe(this.a,this.b)},U(qG,`BasicEObjectImpl/4`,1040),J(2081,1,{114:1}),X.Mk=function(e){this.e=e==0?QVt:vS(eJ,jz,1,e,5,1)},X.li=function(e){return this.e[e]},X.mi=function(e,t){this.e[e]=t},X.ni=function(e){this.e[e]=null},X.Nk=function(){return this.c},X.Ok=function(){throw R(new Po)},X.Pk=function(){throw R(new Po)},X.Qk=function(){return this.d},X.Rk=function(){return this.e!=null},X.Sk=function(e){this.c=e},X.Tk=function(e){throw R(new Po)},X.Uk=function(e){throw R(new Po)},X.Vk=function(e){this.d=e};var QVt;U(qG,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2081),J(192,2081,{114:1},Jr),X.Ok=function(){return this.a},X.Pk=function(){return this.b},X.Tk=function(e){this.a=e},X.Uk=function(e){this.b=e},U(qG,`BasicEObjectImpl/EPropertiesHolderImpl`,192),J(516,99,ibt,Yn),X.uh=function(){return this.f},X.zh=function(){return this.k},X.Bh=function(e,t){this.g=e,this.i=t},X.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},X.Fh=function(){return this.i},X.wh=function(){return!!(this.j&1)},X.Ph=function(){return this.g},X.Vh=function(){return!!(this.j&4)},X.$h=function(){return!this.k&&(this.k=new Jr),this.k},X.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},X.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},X.ii=function(){return(j_(),V7).S},X.i=0,X.j=1,U(qG,`EObjectImpl`,516),J(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},jke),X.li=function(e){return this.e[e]},X.mi=function(e,t){this.e[e]=t},X.ni=function(e){this.e[e]=null},X.Dh=function(){return this.d},X.Ih=function(e){return $O(this.d,e)},X.Kh=function(){return this.d},X.Oh=function(){return this.e!=null},X.$h=function(){return!this.k&&(this.k=new Woe),this.k},X.ci=function(e){this.d=e},X.hi=function(){var e;return this.e??=(e=M_(this.d),e==0?$Vt:vS(eJ,jz,1,e,5,1)),this},X.ji=function(){return 0};var $Vt;U(qG,`DynamicEObjectImpl`,798),J(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Ih),X.Fb=function(e){return this===e},X.Hb=function(){return cp(this)},X.ci=function(e){this.d=e,this.b=wF(e,`key`),this.c=wF(e,eK)},X.Bi=function(){var e;return this.a==-1&&(e=qUe(this,this.b),this.a=e==null?0:zw(e)),this.a},X.ld=function(){return qUe(this,this.b)},X.md=function(){return qUe(this,this.c)},X.Ci=function(e){this.a=e},X.Di=function(e){Qy(this,this.b,e)},X.nd=function(e){var t=qUe(this,this.c);return Qy(this,this.c,e),t},X.a=0,U(qG,`DynamicEObjectImpl/BasicEMapEntry`,1522),J(1523,1,{114:1},Woe),X.Mk=function(e){throw R(new Po)},X.li=function(e){throw R(new Po)},X.mi=function(e,t){throw R(new Po)},X.ni=function(e){throw R(new Po)},X.Nk=function(){throw R(new Po)},X.Ok=function(){return this.a},X.Pk=function(){return this.b},X.Qk=function(){return this.c},X.Rk=function(){throw R(new Po)},X.Sk=function(e){throw R(new Po)},X.Tk=function(e){this.a=e},X.Uk=function(e){this.b=e},X.Vk=function(e){this.c=e},U(qG,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1523),J(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},Goe),X.Ah=function(e){return kj(this,e)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new Ap((bz(),t9),i9,this)),this.b):(!this.b&&(this.b=new Ap((bz(),t9),i9,this)),gS(this.b));case 3:return VFe(this);case 4:return!this.a&&(this.a=new Mf(l7,this,4)),this.a;case 5:return!this.c&&(this.c=new Ff(l7,this,5)),this.c}return BS(this,e-M_((bz(),H7)),MC((r=H(PT(this,16),29),r||H7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?kj(this,n):this.Cb.Th(this,-1-i,null,n))),aje(this,H(e,155),n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),H7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),H7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 2:return!this.b&&(this.b=new Ap((bz(),t9),i9,this)),xm(this.b,e,n);case 3:return aje(this,null,n);case 4:return!this.a&&(this.a=new Mf(l7,this,4)),SA(this.a,e,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),H7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),H7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!VFe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return hx(this,e-M_((bz(),H7)),MC((t=H(PT(this,16),29),t||H7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:oAe(this,Lp(t));return;case 2:!this.b&&(this.b=new Ap((bz(),t9),i9,this)),ST(this.b,t);return;case 3:SF(this,H(t,155));return;case 4:!this.a&&(this.a=new Mf(l7,this,4)),hR(this.a),!this.a&&(this.a=new Mf(l7,this,4)),y_(this.a,H(t,16));return;case 5:!this.c&&(this.c=new Ff(l7,this,5)),hR(this.c),!this.c&&(this.c=new Ff(l7,this,5)),y_(this.c,H(t,16));return}zO(this,e-M_((bz(),H7)),MC((n=H(PT(this,16),29),n||H7),e),t)},X.ii=function(){return bz(),H7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:AKe(this,null);return;case 2:!this.b&&(this.b=new Ap((bz(),t9),i9,this)),this.b.c.$b();return;case 3:SF(this,null);return;case 4:!this.a&&(this.a=new Mf(l7,this,4)),hR(this.a);return;case 5:!this.c&&(this.c=new Ff(l7,this,5)),hR(this.c);return}BD(this,e-M_((bz(),H7)),MC((t=H(PT(this,16),29),t||H7),e))},X.Ib=function(){return jZe(this)},X.d=null,U(qG,`EAnnotationImpl`,519),J(141,721,bxt,kS),X.Gi=function(e,t){uf(this,e,H(t,44))},X.Wk=function(e,t){return PEe(this,H(e,44),t)},X.$i=function(e){return H(H(this.c,71).$i(e),136)},X.Ii=function(){return H(this.c,71).Ii()},X.Ji=function(){return H(this.c,71).Ji()},X.Ki=function(e){return H(this.c,71).Ki(e)},X.Xk=function(e,t){return xm(this,e,t)},X.Fk=function(e){return H(this.c,79).Fk(e)},X.ak=function(){},X.Qj=function(){return H(this.c,79).Qj()},X.ck=function(e,t,n){var r=H(qC(this.b).wi().si(this.b),136);return r.Ci(e),r.Di(t),r.nd(n),r},X.dk=function(){return new Xfe(this)},X.Wb=function(e){ST(this,e)},X.Gk=function(){H(this.c,79).Gk()},U(BK,`EcoreEMap`,141),J(165,141,bxt,Ap),X._j=function(){var e,t,n,r,i,a;if(this.d==null){for(a=vS(dVt,IK,66,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)t=H(n.Yj(),136),r=t.Bi(),i=(r&Ez)%a.length,e=a[i],!e&&(e=a[i]=new Xfe(this)),e.Fc(t);this.d=a}},U(qG,`EAnnotationImpl/1`,165),J(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),X.Lh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lp(),!!(this.Bb&256);case 3:return lp(),!!(this.Bb&512);case 4:return kD(this.s);case 5:return kD(this.t);case 6:return lp(),!!this.Jk();case 7:return lp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q}return BS(this,e-M_(this.ii()),MC((r=H(PT(this,16),29),r||this.ii()),e),t,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 9:return b_(this,n)}return i=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Kk(this),t-M_(this.ii()),e,n)},X.Wh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0)}return hx(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:this.ui(Lp(t));return;case 2:WD(this,Vs(Fp(t)));return;case 3:qD(this,Vs(Fp(t)));return;case 4:dw(this,H(t,17).a);return;case 5:this.Zk(H(t,17).a);return;case 8:mD(this,H(t,142));return;case 9:r=VM(this,H(t,89),null),r&&r.oj();return}zO(this,e-M_(this.ii()),MC((n=H(PT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return bz(),XVt},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:this.ui(null);return;case 2:WD(this,!0);return;case 3:qD(this,!0);return;case 4:dw(this,0);return;case 5:this.Zk(1);return;case 8:mD(this,null);return;case 9:n=VM(this,null,null),n&&n.oj();return}BD(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.pi=function(){Pj(this),this.Bb|=1},X.Hk=function(){return Pj(this)},X.Ik=function(){return this.t},X.Jk=function(){var e=this.t;return e>1||e==-1},X.Si=function(){return!!(this.Bb&512)},X.Yk=function(e,t){return wZe(this,e,t)},X.Zk=function(e){fw(this,e)},X.Ib=function(){return eet(this)},X.s=0,X.t=1,U(qG,`ETypedElementImpl`,292),J(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),X.Ah=function(e){return pj(this,e)},X.Lh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lp(),!!(this.Bb&256);case 3:return lp(),!!(this.Bb&512);case 4:return kD(this.s);case 5:return kD(this.t);case 6:return lp(),!!this.Jk();case 7:return lp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return lp(),(this.Bb&oB)!=0;case 11:return lp(),(this.Bb&HK)!=0;case 12:return lp(),(this.Bb&JB)!=0;case 13:return this.j;case 14:return hF(this);case 15:return lp(),(this.Bb&VK)!=0;case 16:return lp(),(this.Bb&qz)!=0;case 17:return sb(this)}return BS(this,e-M_(this.ii()),MC((r=H(PT(this,16),29),r||this.ii()),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?pj(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,17,n)}return a=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),a.wk().zk(this,Kk(this),t-M_(this.ii()),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 9:return b_(this,n);case 17:return LI(this,null,17,n)}return i=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Kk(this),t-M_(this.ii()),e,n)},X.Wh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return(this.Bb&oB)==0;case 11:return(this.Bb&HK)!=0;case 12:return(this.Bb&JB)!=0;case 13:return this.j!=null;case 14:return hF(this)!=null;case 15:return(this.Bb&VK)!=0;case 16:return(this.Bb&qz)!=0;case 17:return!!sb(this)}return hx(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:yb(this,Lp(t));return;case 2:WD(this,Vs(Fp(t)));return;case 3:qD(this,Vs(Fp(t)));return;case 4:dw(this,H(t,17).a);return;case 5:this.Zk(H(t,17).a);return;case 8:mD(this,H(t,142));return;case 9:r=VM(this,H(t,89),null),r&&r.oj();return;case 10:oO(this,Vs(Fp(t)));return;case 11:lO(this,Vs(Fp(t)));return;case 12:sO(this,Vs(Fp(t)));return;case 13:wbe(this,Lp(t));return;case 15:cO(this,Vs(Fp(t)));return;case 16:gO(this,Vs(Fp(t)));return}zO(this,e-M_(this.ii()),MC((n=H(PT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return bz(),YVt},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:V(this.Cb,90)&&eP(Hx(H(this.Cb,90)),4),Bw(this,null);return;case 2:WD(this,!0);return;case 3:qD(this,!0);return;case 4:dw(this,0);return;case 5:this.Zk(1);return;case 8:mD(this,null);return;case 9:n=VM(this,null,null),n&&n.oj();return;case 10:oO(this,!0);return;case 11:lO(this,!1);return;case 12:sO(this,!1);return;case 13:this.i=null,WKe(this,null);return;case 15:cO(this,!1);return;case 16:gO(this,!1);return}BD(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.pi=function(){Cv(tC((LN(),o9),this)),Pj(this),this.Bb|=1},X.pk=function(){return this.f},X.ik=function(){return hF(this)},X.qk=function(){return sb(this)},X.uk=function(){return null},X.$k=function(){return this.k},X.Lj=function(){return this.n},X.vk=function(){return pM(this)},X.wk=function(){var e,t,n,r,i,a,o,s,l;return this.p||(n=sb(this),(n.i??$I(n),n.i).length,r=this.uk(),r&&M_(sb(r)),i=Pj(this),o=i.kk(),e=o?o.i&1?o==I9?CJ:o==F9?AJ:o==B9?kJ:o==z9?OJ:o==L9?jJ:o==V9?NJ:o==R9?wJ:EJ:o:null,t=hF(this),s=i.ik(),CQe(this),(this.Bb&qz)!=0&&((a=g3e((LN(),o9),n))&&a!=this||(a=Vb(tC(o9,this))))?this.p=new Mbe(this,a):this.Jk()?this.al()?this.p=r?(this.Bb&VK)==0?e?this.bl()?new Gv(49,e,this,r):new Gv(7,e,this,r):this.bl()?new Dx(48,this,r):new Dx(6,this,r):e?this.bl()?new Gv(47,e,this,r):new Gv(5,e,this,r):this.bl()?new Dx(46,this,r):new Dx(4,this,r):(this.Bb&VK)==0?e?e==oJ?new nh(41,$Bt,this):this.bl()?new nh(45,e,this):new nh(3,e,this):this.bl()?new yy(44,this):new yy(2,this):e?e==oJ?new nh(50,$Bt,this):this.bl()?new nh(43,e,this):new nh(1,e,this):this.bl()?new yy(42,this):new yy(0,this):V(i,156)?this.p=e==ZVt?new yy(40,this):this.Bb&512?(this.Bb&VK)==0?e?new nh(11,e,this):new yy(10,this):e?new nh(9,e,this):new yy(8,this):(this.Bb&VK)==0?e?new nh(15,e,this):new yy(14,this):e?new nh(13,e,this):new yy(12,this):r?(l=r.t,this.p=l>1||l==-1?this.bl()?(this.Bb&VK)==0?e?new Gv(27,e,this,r):new Dx(26,this,r):e?new Gv(25,e,this,r):new Dx(24,this,r):(this.Bb&VK)==0?e?new Gv(31,e,this,r):new Dx(30,this,r):e?new Gv(29,e,this,r):new Dx(28,this,r):this.bl()?(this.Bb&VK)==0?e?new Gv(35,e,this,r):new Dx(34,this,r):e?new Gv(33,e,this,r):new Dx(32,this,r):(this.Bb&VK)==0?e?new Gv(39,e,this,r):new Dx(38,this,r):e?new Gv(37,e,this,r):new Dx(36,this,r)):this.p=this.bl()?(this.Bb&VK)==0?e?new nh(19,e,this):new yy(18,this):e?new nh(17,e,this):new yy(16,this):(this.Bb&VK)==0?e?new nh(23,e,this):new yy(22,this):e?new nh(21,e,this):new yy(20,this):this.p=this._k()?this.bl()?new qOe(H(i,29),this,r):new Ly(H(i,29),this,r):V(i,156)?e==ZVt?new yy(40,this):(this.Bb&VK)==0?e?new bg(t,s,this,(b$e(),o==F9?fHt:o==I9?sHt:o==L9?pHt:o==B9?dHt:o==z9?uHt:o==V9?hHt:o==R9?cHt:o==P9?lHt:mHt)):new qv(H(i,156),t,s,this):e?new rje(t,s,this,(b$e(),o==F9?fHt:o==I9?sHt:o==L9?pHt:o==B9?dHt:o==z9?uHt:o==V9?hHt:o==R9?cHt:o==P9?lHt:mHt)):new qNe(H(i,156),t,s,this):this.al()?r?(this.Bb&VK)==0?this.bl()?new rh(H(i,29),this,r):new JOe(H(i,29),this,r):this.bl()?new ZOe(H(i,29),this,r):new ih(H(i,29),this,r):(this.Bb&VK)==0?this.bl()?new Pwe(H(i,29),this):new Np(H(i,29),this):this.bl()?new Lwe(H(i,29),this):new Fwe(H(i,29),this):this.bl()?r?(this.Bb&VK)==0?new YOe(H(i,29),this,r):new QOe(H(i,29),this,r):(this.Bb&VK)==0?new Iwe(H(i,29),this):new Rwe(H(i,29),this):r?(this.Bb&VK)==0?new XOe(H(i,29),this,r):new $Oe(H(i,29),this,r):(this.Bb&VK)==0?new ig(H(i,29),this):new zwe(H(i,29),this)),this.p},X.rk=function(){return(this.Bb&oB)!=0},X._k=function(){return!1},X.al=function(){return!1},X.sk=function(){return(this.Bb&qz)!=0},X.xk=function(){return mC(this)},X.bl=function(){return!1},X.tk=function(){return(this.Bb&VK)!=0},X.cl=function(e){this.k=e},X.ui=function(e){yb(this,e)},X.Ib=function(){return eI(this)},X.e=!1,X.n=0,U(qG,`EStructuralFeatureImpl`,462),J(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},$pe),X.Lh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lp(),!!(this.Bb&256);case 3:return lp(),!!(this.Bb&512);case 4:return kD(this.s);case 5:return kD(this.t);case 6:return lp(),!!_P(this);case 7:return lp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return lp(),(this.Bb&oB)!=0;case 11:return lp(),(this.Bb&HK)!=0;case 12:return lp(),(this.Bb&JB)!=0;case 13:return this.j;case 14:return hF(this);case 15:return lp(),(this.Bb&VK)!=0;case 16:return lp(),(this.Bb&qz)!=0;case 17:return sb(this);case 18:return lp(),(this.Bb&KG)!=0;case 19:return t?kJe(this):OVe(this)}return BS(this,e-M_((bz(),U7)),MC((r=H(PT(this,16),29),r||U7),e),t,n)},X.Wh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return _P(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return(this.Bb&oB)==0;case 11:return(this.Bb&HK)!=0;case 12:return(this.Bb&JB)!=0;case 13:return this.j!=null;case 14:return hF(this)!=null;case 15:return(this.Bb&VK)!=0;case 16:return(this.Bb&qz)!=0;case 17:return!!sb(this);case 18:return(this.Bb&KG)!=0;case 19:return!!OVe(this)}return hx(this,e-M_((bz(),U7)),MC((t=H(PT(this,16),29),t||U7),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:yb(this,Lp(t));return;case 2:WD(this,Vs(Fp(t)));return;case 3:qD(this,Vs(Fp(t)));return;case 4:dw(this,H(t,17).a);return;case 5:Ghe(this,H(t,17).a);return;case 8:mD(this,H(t,142));return;case 9:r=VM(this,H(t,89),null),r&&r.oj();return;case 10:oO(this,Vs(Fp(t)));return;case 11:lO(this,Vs(Fp(t)));return;case 12:sO(this,Vs(Fp(t)));return;case 13:wbe(this,Lp(t));return;case 15:cO(this,Vs(Fp(t)));return;case 16:gO(this,Vs(Fp(t)));return;case 18:_Qe(this,Vs(Fp(t)));return}zO(this,e-M_((bz(),U7)),MC((n=H(PT(this,16),29),n||U7),e),t)},X.ii=function(){return bz(),U7},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:V(this.Cb,90)&&eP(Hx(H(this.Cb,90)),4),Bw(this,null);return;case 2:WD(this,!0);return;case 3:qD(this,!0);return;case 4:dw(this,0);return;case 5:this.b=0,fw(this,1);return;case 8:mD(this,null);return;case 9:n=VM(this,null,null),n&&n.oj();return;case 10:oO(this,!0);return;case 11:lO(this,!1);return;case 12:sO(this,!1);return;case 13:this.i=null,WKe(this,null);return;case 15:cO(this,!1);return;case 16:gO(this,!1);return;case 18:_Qe(this,!1);return}BD(this,e-M_((bz(),U7)),MC((t=H(PT(this,16),29),t||U7),e))},X.pi=function(){kJe(this),Cv(tC((LN(),o9),this)),Pj(this),this.Bb|=1},X.Jk=function(){return _P(this)},X.Yk=function(e,t){return this.b=0,this.a=null,wZe(this,e,t)},X.Zk=function(e){Ghe(this,e)},X.Ib=function(){var e;return this.Db&64?eI(this):(e=new Zf(eI(this)),e.a+=` (iD: `,Lc(e,(this.Bb&KG)!=0),e.a+=`)`,e.a)},X.b=0,U(qG,`EAttributeImpl`,331),J(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),X.dl=function(e){return e.Dh()==this},X.Ah=function(e){return J2e(this,e)},X.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return aj(this);case 4:return this.ik();case 5:return this.F;case 6:return t?qC(this):ab(this);case 7:return!this.A&&(this.A=new Pf(z7,this,7)),this.A}return BS(this,e-M_(this.ii()),MC((r=H(PT(this,16),29),r||this.ii()),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?J2e(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,6,n)}return a=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),a.wk().zk(this,Kk(this),t-M_(this.ii()),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 6:return LI(this,null,6,n);case 7:return!this.A&&(this.A=new Pf(z7,this,7)),SA(this.A,e,n)}return i=H(MC((r=H(PT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Kk(this),t-M_(this.ii()),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!aj(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!ab(this);case 7:return!!this.A&&this.A.i!=0}return hx(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:oIe(this,Lp(t));return;case 2:Pxe(this,Lp(t));return;case 5:zR(this,Lp(t));return;case 7:!this.A&&(this.A=new Pf(z7,this,7)),hR(this.A),!this.A&&(this.A=new Pf(z7,this,7)),y_(this.A,H(t,16));return}zO(this,e-M_(this.ii()),MC((n=H(PT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return bz(),UVt},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:V(this.Cb,184)&&(H(this.Cb,184).tb=null),Bw(this,null);return;case 2:eD(this,null),pw(this,this.D);return;case 5:zR(this,null);return;case 7:!this.A&&(this.A=new Pf(z7,this,7)),hR(this.A);return}BD(this,e-M_(this.ii()),MC((t=H(PT(this,16),29),t||this.ii()),e))},X.hk=function(){var e;return this.G==-1&&(this.G=(e=qC(this),e?wA(e.vi(),this):-1)),this.G},X.ik=function(){return null},X.jk=function(){return qC(this)},X.el=function(){return this.v},X.kk=function(){return aj(this)},X.lk=function(){return this.D==null?this.B:this.D},X.mk=function(){return this.F},X.fk=function(e){return KI(this,e)},X.fl=function(e){this.v=e},X.gl=function(e){vqe(this,e)},X.hl=function(e){this.C=e},X.ui=function(e){oIe(this,e)},X.Ib=function(){return ck(this)},X.C=null,X.D=null,X.G=-1,U(qG,`EClassifierImpl`,364),J(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},ole),X.dl=function(e){return XTe(this,e.Dh())},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return aj(this);case 4:return null;case 5:return this.F;case 6:return t?qC(this):ab(this);case 7:return!this.A&&(this.A=new Pf(z7,this,7)),this.A;case 8:return lp(),!!(this.Bb&256);case 9:return lp(),!!(this.Bb&512);case 10:return Cy(this);case 11:return!this.q&&(this.q=new Bg(F7,this,11,10)),this.q;case 12:return jL(this);case 13:return CL(this);case 14:return CL(this),this.r;case 15:return jL(this),this.k;case 16:return UN(this);case 17:return dL(this);case 18:return $I(this);case 19:return uF(this);case 20:return jL(this),this.o;case 21:return!this.s&&(this.s=new Bg(k7,this,21,17)),this.s;case 22:return Sx(this);case 23:return Xit(this)}return BS(this,e-M_((bz(),W7)),MC((r=H(PT(this,16),29),r||W7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?J2e(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,6,n);case 11:return!this.q&&(this.q=new Bg(F7,this,11,10)),_k(this.q,e,n);case 21:return!this.s&&(this.s=new Bg(k7,this,21,17)),_k(this.s,e,n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),W7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),W7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 6:return LI(this,null,6,n);case 7:return!this.A&&(this.A=new Pf(z7,this,7)),SA(this.A,e,n);case 11:return!this.q&&(this.q=new Bg(F7,this,11,10)),SA(this.q,e,n);case 21:return!this.s&&(this.s=new Bg(k7,this,21,17)),SA(this.s,e,n);case 22:return SA(Sx(this),e,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),W7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),W7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!aj(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!ab(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!!(this.Bb&256);case 9:return!!(this.Bb&512);case 10:return!!this.u&&Sx(this.u.a).i!=0&&!(this.n&&J0e(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return jL(this).i!=0;case 13:return CL(this).i!=0;case 14:return CL(this),this.r.i!=0;case 15:return jL(this),this.k.i!=0;case 16:return UN(this).i!=0;case 17:return dL(this).i!=0;case 18:return $I(this).i!=0;case 19:return uF(this).i!=0;case 20:return jL(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&J0e(this.n);case 23:return Xit(this).i!=0}return hx(this,e-M_((bz(),W7)),MC((t=H(PT(this,16),29),t||W7),e))},X.Zh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:wF(this,e))||tft(this,e)},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:oIe(this,Lp(t));return;case 2:Pxe(this,Lp(t));return;case 5:zR(this,Lp(t));return;case 7:!this.A&&(this.A=new Pf(z7,this,7)),hR(this.A),!this.A&&(this.A=new Pf(z7,this,7)),y_(this.A,H(t,16));return;case 8:GD(this,Vs(Fp(t)));return;case 9:MZe(this,Vs(Fp(t)));return;case 10:yR(Cy(this)),y_(Cy(this),H(t,16));return;case 11:!this.q&&(this.q=new Bg(F7,this,11,10)),hR(this.q),!this.q&&(this.q=new Bg(F7,this,11,10)),y_(this.q,H(t,16));return;case 21:!this.s&&(this.s=new Bg(k7,this,21,17)),hR(this.s),!this.s&&(this.s=new Bg(k7,this,21,17)),y_(this.s,H(t,16));return;case 22:hR(Sx(this)),y_(Sx(this),H(t,16));return}zO(this,e-M_((bz(),W7)),MC((n=H(PT(this,16),29),n||W7),e),t)},X.ii=function(){return bz(),W7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:V(this.Cb,184)&&(H(this.Cb,184).tb=null),Bw(this,null);return;case 2:eD(this,null),pw(this,this.D);return;case 5:zR(this,null);return;case 7:!this.A&&(this.A=new Pf(z7,this,7)),hR(this.A);return;case 8:GD(this,!1);return;case 9:MZe(this,!1);return;case 10:this.u&&yR(this.u);return;case 11:!this.q&&(this.q=new Bg(F7,this,11,10)),hR(this.q);return;case 21:!this.s&&(this.s=new Bg(k7,this,21,17)),hR(this.s);return;case 22:this.n&&hR(this.n);return}BD(this,e-M_((bz(),W7)),MC((t=H(PT(this,16),29),t||W7),e))},X.pi=function(){var e,t;if(jL(this),CL(this),UN(this),dL(this),$I(this),uF(this),Xit(this),Xx(cke(Hx(this))),this.s)for(e=0,t=this.s.i;e=0;--t)G(this,t);return h$e(this,e)},X.Gk=function(){hR(this)},X.Zi=function(e,t){return DGe(this,e,t)},U(BK,`EcoreEList`,632),J(505,632,ZK,yh),X.Li=function(){return!1},X.Lj=function(){return this.c},X.Mj=function(){return!1},X.ol=function(){return!0},X.Si=function(){return!0},X.Wi=function(e,t){return t},X.Yi=function(){return!1},X.c=0,U(BK,`EObjectEList`,505),J(83,505,ZK,Mf),X.Mj=function(){return!0},X.ml=function(){return!1},X.al=function(){return!0},U(BK,`EObjectContainmentEList`,83),J(555,83,ZK,nCe),X.Ni=function(){this.b=!0},X.Qj=function(){return this.b},X.Gk=function(){var e;hR(this),Hd(this.e)?(e=this.b,this.b=!1,jT(this.e,new Ux(this.e,2,this.c,e,!1))):this.b=!1},X.b=!1,U(BK,`EObjectContainmentEList/Unsettable`,555),J(1161,555,ZK,yg),X.Ti=function(e,t){var n=H(aO(this,e,t),89),r;return Hd(this.e)&&Bo(this,new AS(this.a,7,(bz(),WVt),kD(t),(r=n.c,V(r,90)?H(r,29):X7),e)),n},X.Uj=function(e,t){return C$e(this,H(e,89),t)},X.Vj=function(e,t){return vk(this,H(e,89),t)},X.Wj=function(e,t,n){return E3e(this,H(e,89),H(t,89),n)},X.Ij=function(e,t,n,r,i){switch(e){case 3:return pb(this,e,t,n,r,this.i>1);case 5:return pb(this,e,t,n,r,this.i-H(n,15).gc()>0);default:return new aC(this.e,e,this.c,t,n,r,!0)}},X.Tj=function(){return!0},X.Qj=function(){return J0e(this)},X.Gk=function(){hR(this)},U(qG,`EClassImpl/1`,1161),J(1175,1174,AK),X.dj=function(e){var t,n=e.gj(),r,i,a,o,s;if(n!=8){if(r=F1e(e),r==0)switch(n){case 1:case 9:s=e.kj(),s!=null&&(t=Hx(H(s,482)),!t.c&&(t.c=new nr),gC(t.c,e.jj())),o=e.ij(),o!=null&&(i=H(o,482),i.Bb&1||(t=Hx(i),!t.c&&(t.c=new nr),SS(t.c,H(e.jj(),29))));break;case 3:o=e.ij(),o!=null&&(i=H(o,482),i.Bb&1||(t=Hx(i),!t.c&&(t.c=new nr),SS(t.c,H(e.jj(),29))));break;case 5:if(o=e.ij(),o!=null)for(a=H(o,16).Kc();a.Ob();)i=H(a.Pb(),482),i.Bb&1||(t=Hx(i),!t.c&&(t.c=new nr),SS(t.c,H(e.jj(),29)));break;case 4:s=e.kj(),s!=null&&(i=H(s,482),i.Bb&1||(t=Hx(i),!t.c&&(t.c=new nr),gC(t.c,e.jj())));break;case 6:if(s=e.kj(),s!=null)for(a=H(s,16).Kc();a.Ob();)i=H(a.Pb(),482),i.Bb&1||(t=Hx(i),!t.c&&(t.c=new nr),gC(t.c,e.jj()))}this.ql(r)}},X.ql=function(e){$F(this,e)},X.b=63,U(qG,`ESuperAdapter`,1175),J(1176,1175,AK,Hfe),X.ql=function(e){eP(this,e)},U(qG,`EClassImpl/10`,1176),J(1165,710,ZK),X.Ei=function(e,t){return q6e(this,e,t)},X.Fi=function(e){return g2e(this,e)},X.Gi=function(e,t){ID(this,e,t)},X.Hi=function(e){Yx(this,e)},X.$i=function(e){return tUe(this,e)},X.Xi=function(e,t){return hC(this,e,t)},X.Wk=function(e,t){throw R(new Po)},X.Ii=function(){return new mp(this)},X.Ji=function(){return new hp(this)},X.Ki=function(e){return Tw(this,e)},X.Xk=function(e,t){throw R(new Po)},X.Fk=function(e){return this},X.Qj=function(){return this.i!=0},X.Wb=function(e){throw R(new Po)},X.Gk=function(){throw R(new Po)},U(BK,`EcoreEList/UnmodifiableEList`,1165),J(328,1165,ZK,Ed),X.Yi=function(){return!1},U(BK,`EcoreEList/UnmodifiableEList/FastCompare`,328),J(1168,328,ZK,aYe),X.dd=function(e){var t,n,r;if(V(e,179)&&(t=H(e,179),n=t.Lj(),n!=-1)){for(r=this.i;n4){if(this.fk(e)){if(this.al()){if(r=H(e,54),n=r.Eh(),s=n==this.b&&(this.ml()?r.yh(r.Fh(),H(MC(Ty(this.b),this.Lj()).Hk(),29).kk())==MA(H(MC(Ty(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!s&&!n&&r.Jh()){for(i=0;i1||r==-1)):!1},X.ml=function(){var e,t=MC(Ty(this.b),this.Lj()),n;return V(t,102)?(e=H(t,19),n=MA(e),!!n):!1},X.nl=function(){var e,t=MC(Ty(this.b),this.Lj());return V(t,102)?(e=H(t,19),(e.Bb&XB)!=0):!1},X.dd=function(e){var t,n,r=this.zj(e),i;if(r>=0)return r;if(this.ol()){for(n=0,i=this.Ej();n=0;--e)kR(this,e,this.xj(e));return this.Fj()},X.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)kR(this,t,this.xj(t));return this.Gj(e)},X.Gk=function(){yR(this)},X.Zi=function(e,t){return nUe(this,e,t)},U(BK,`DelegatingEcoreEList`,756),J(1171,756,nq,wTe),X.qj=function(e,t){jp(this,e,H(t,29))},X.rj=function(e){Gxe(this,H(e,29))},X.xj=function(e){var t=H(G(Sx(this.a),e),89).c;return V(t,90)?H(t,29):(bz(),X7)},X.Cj=function(e){var t=H(zF(Sx(this.a),e),89).c;return V(t,90)?H(t,29):(bz(),X7)},X.Dj=function(e,t){return v2e(this,e,H(t,29))},X.Li=function(){return!1},X.Ij=function(e,t,n,r,i){return null},X.sj=function(){return new Gfe(this)},X.tj=function(){hR(Sx(this.a))},X.uj=function(e){return YD(this,e)},X.vj=function(e){for(var t,n=e.Kc();n.Ob();)if(t=n.Pb(),!YD(this,t))return!1;return!0},X.wj=function(e){var t,n,r;if(V(e,15)&&(r=H(e,15),r.gc()==Sx(this.a).i)){for(t=r.Kc(),n=new Lf(this);t.Ob();)if(cd(t.Pb())!==cd(fA(n)))return!1;return!0}return!1},X.yj=function(){var e,t,n=1,r,i;for(t=new Lf(Sx(this.a));t.e!=t.i.gc();)e=H(fA(t),89),r=(i=e.c,V(i,90)?H(i,29):(bz(),X7)),n=31*n+(r?cp(r):0);return n},X.zj=function(e){var t,n,r=0,i;for(n=new Lf(Sx(this.a));n.e!=n.i.gc();){if(t=H(fA(n),89),cd(e)===cd((i=t.c,V(i,90)?H(i,29):(bz(),X7))))return r;++r}return-1},X.Aj=function(){return Sx(this.a).i==0},X.Bj=function(){return null},X.Ej=function(){return Sx(this.a).i},X.Fj=function(){var e,t,n,r,i,a=Sx(this.a).i;for(i=vS(eJ,jz,1,a,5,1),n=0,t=new Lf(Sx(this.a));t.e!=t.i.gc();)e=H(fA(t),89),i[n++]=(r=e.c,V(r,90)?H(r,29):(bz(),X7));return i},X.Gj=function(e){var t,n,r,i,a,o,s=Sx(this.a).i;for(e.lengths&&F_(e,s,null),r=0,n=new Lf(Sx(this.a));n.e!=n.i.gc();)t=H(fA(n),89),a=(o=t.c,V(o,90)?H(o,29):(bz(),X7)),F_(e,r++,a);return e},X.Hj=function(){var e,t,n,r,i=new ac;for(i.a+=`[`,e=Sx(this.a),t=0,r=Sx(this.a).i;t>16,i>=0?J2e(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,6,n);case 9:return!this.a&&(this.a=new Bg(N7,this,9,5)),_k(this.a,e,n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),G7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),G7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 6:return LI(this,null,6,n);case 7:return!this.A&&(this.A=new Pf(z7,this,7)),SA(this.A,e,n);case 9:return!this.a&&(this.a=new Bg(N7,this,9,5)),SA(this.a,e,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),G7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),G7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!aj(this);case 4:return!!bXe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!ab(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256);case 9:return!!this.a&&this.a.i!=0}return hx(this,e-M_((bz(),G7)),MC((t=H(PT(this,16),29),t||G7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:oIe(this,Lp(t));return;case 2:Pxe(this,Lp(t));return;case 5:zR(this,Lp(t));return;case 7:!this.A&&(this.A=new Pf(z7,this,7)),hR(this.A),!this.A&&(this.A=new Pf(z7,this,7)),y_(this.A,H(t,16));return;case 8:KD(this,Vs(Fp(t)));return;case 9:!this.a&&(this.a=new Bg(N7,this,9,5)),hR(this.a),!this.a&&(this.a=new Bg(N7,this,9,5)),y_(this.a,H(t,16));return}zO(this,e-M_((bz(),G7)),MC((n=H(PT(this,16),29),n||G7),e),t)},X.ii=function(){return bz(),G7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:V(this.Cb,184)&&(H(this.Cb,184).tb=null),Bw(this,null);return;case 2:eD(this,null),pw(this,this.D);return;case 5:zR(this,null);return;case 7:!this.A&&(this.A=new Pf(z7,this,7)),hR(this.A);return;case 8:KD(this,!0);return;case 9:!this.a&&(this.a=new Bg(N7,this,9,5)),hR(this.a);return}BD(this,e-M_((bz(),G7)),MC((t=H(PT(this,16),29),t||G7),e))},X.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?H(this.Cb,685):null}return BS(this,e-M_((bz(),K7)),MC((r=H(PT(this,16),29),r||K7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?k4e(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,5,n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),K7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),K7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 5:return LI(this,null,5,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),K7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),K7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&H(this.Cb,685))}return hx(this,e-M_((bz(),K7)),MC((t=H(PT(this,16),29),t||K7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:Bw(this,Lp(t));return;case 2:wGe(this,H(t,17).a);return;case 3:L9e(this,H(t,2039));return;case 4:SKe(this,Lp(t));return}zO(this,e-M_((bz(),K7)),MC((n=H(PT(this,16),29),n||K7),e),t)},X.ii=function(){return bz(),K7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:Bw(this,null);return;case 2:wGe(this,0);return;case 3:L9e(this,null);return;case 4:SKe(this,null);return}BD(this,e-M_((bz(),K7)),MC((t=H(PT(this,16),29),t||K7),e))},X.Ib=function(){return this.c??this.zb},X.b=null,X.c=null,X.d=0,U(qG,`EEnumLiteralImpl`,582);var nHt=Lh(qG,`EFactoryImpl/InternalEDateTimeFormat`);J(499,1,{2114:1},oo),U(qG,`EFactoryImpl/1ClientInternalEDateTimeFormat`,499),J(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},vo),X.Ch=function(e,t,n){var r;return n=LI(this,e,t,n),this.e&&V(e,179)&&(r=lF(this,this.e),r!=this.c&&(n=BR(this,r,n))),n},X.Lh=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new Mf(P7,this,1)),this.d;case 2:return t?GI(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?e2e(this):this.a}return BS(this,e-M_((bz(),J7)),MC((r=H(PT(this,16),29),r||J7),e),t,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return xD(this,null,n);case 1:return!this.d&&(this.d=new Mf(P7,this,1)),SA(this.d,e,n);case 3:return SD(this,null,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),J7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),J7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return hx(this,e-M_((bz(),J7)),MC((t=H(PT(this,16),29),t||J7),e))},X.bi=function(e,t){var n;switch(e){case 0:vM(this,H(t,89));return;case 1:!this.d&&(this.d=new Mf(P7,this,1)),hR(this.d),!this.d&&(this.d=new Mf(P7,this,1)),y_(this.d,H(t,16));return;case 3:_M(this,H(t,89));return;case 4:aN(this,H(t,850));return;case 5:JC(this,H(t,142));return}zO(this,e-M_((bz(),J7)),MC((n=H(PT(this,16),29),n||J7),e),t)},X.ii=function(){return bz(),J7},X.ki=function(e){var t;switch(e){case 0:vM(this,null);return;case 1:!this.d&&(this.d=new Mf(P7,this,1)),hR(this.d);return;case 3:_M(this,null);return;case 4:aN(this,null);return;case 5:JC(this,null);return}BD(this,e-M_((bz(),J7)),MC((t=H(PT(this,16),29),t||J7),e))},X.Ib=function(){var e=new Qf($P(this));return e.a+=` (expression: `,QL(this,e),e.a+=`)`,e.a};var rHt;U(qG,`EGenericTypeImpl`,248),J(2067,2062,rq),X.Gi=function(e,t){_Te(this,e,t)},X.Wk=function(e,t){return _Te(this,this.gc(),e),t},X.$i=function(e){return gA(this.pj(),e)},X.Ii=function(){return this.Ji()},X.pj=function(){return new Yfe(this)},X.Ji=function(){return this.Ki(0)},X.Ki=function(e){return this.pj().fd(e)},X.Xk=function(e,t){return QO(this,e,!0),t},X.Ti=function(e,t){var n,r=xj(this,t);return n=this.fd(e),n.Rb(r),r},X.Ui=function(e,t){var n;QO(this,t,!0),n=this.fd(e),n.Rb(t)},U(BK,`AbstractSequentialInternalEList`,2067),J(496,2067,rq,dp),X.$i=function(e){return gA(this.pj(),e)},X.Ii=function(){return this.b==null?(Wl(),Wl(),aHt):this.sl()},X.pj=function(){return new axe(this.a,this.b)},X.Ji=function(){return this.b==null?(Wl(),Wl(),aHt):this.sl()},X.Ki=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw R(new Ws(NK+e+`, size=0`));return Wl(),Wl(),aHt}for(n=this.sl(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.pk()!=u7||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(a=this.b.Nh(t,this.ul()),this.f=(Gl(),H(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=H(a,15),this.k=r):(r=H(a,71),this.k=this.j=r),V(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?R5e(this,this.p):g7e(this))return i=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=H(i,76),e.Lk(),n=e.md(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}return i=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=H(i,76),e.Lk(),n=e.md(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},X.Pb=function(){return LT(this)},X.Tb=function(){return this.a},X.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw R(new Io)},X.Vb=function(){return this.a-1},X.Qb=function(){throw R(new Po)},X.ul=function(){return!1},X.Wb=function(e){throw R(new Po)},X.vl=function(){return!0},X.a=0,X.d=0,X.f=!1,X.g=0,X.n=0,X.o=0;var aHt;U(BK,`EContentsEList/FeatureIteratorImpl`,287),J(711,287,iq,Mp),X.ul=function(){return!0},U(BK,`EContentsEList/ResolvingFeatureIteratorImpl`,711),J(1178,711,iq,kwe),X.vl=function(){return!1},U(qG,`ENamedElementImpl/1/1`,1178),J(1179,287,iq,Awe),X.vl=function(){return!1},U(qG,`ENamedElementImpl/1/2`,1179),J(39,152,MK,Ex,Rze,Vg,KHe,aC,Ux,AGe,ELe,jGe,DLe,WBe,OLe,PGe,kLe,GBe,ALe,MGe,jLe,Hg,AS,_Pe,NGe,MLe,KBe,NLe),X.Kj=function(){return VHe(this)},X.Rj=function(){var e=VHe(this);return e?e.ik():null},X.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},X.jj=function(){return this.c},X.Sj=function(){var e=VHe(this);return e?e.tk():!1},X.b=-1,U(qG,`ENotificationImpl`,39),J(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},nme),X.Ah=function(e){return R4e(this,e)},X.Lh=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lp(),!!(this.Bb&256);case 3:return lp(),!!(this.Bb&512);case 4:return kD(this.s);case 5:return kD(this.t);case 6:return lp(),a=this.t,a>1||a==-1;case 7:return lp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?H(this.Cb,29):null;case 11:return!this.d&&(this.d=new Pf(z7,this,11)),this.d;case 12:return!this.c&&(this.c=new Bg(L7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new Jp(this,this)),this.a;case 14:return $S(this)}return BS(this,e-M_((bz(),Z7)),MC((r=H(PT(this,16),29),r||Z7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?R4e(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,10,n);case 12:return!this.c&&(this.c=new Bg(L7,this,12,10)),_k(this.c,e,n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),Z7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),Z7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 9:return b_(this,n);case 10:return LI(this,null,10,n);case 11:return!this.d&&(this.d=new Pf(z7,this,11)),SA(this.d,e,n);case 12:return!this.c&&(this.c=new Bg(L7,this,12,10)),SA(this.c,e,n);case 14:return SA($S(this),e,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),Z7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),Z7)),e,n)},X.Wh=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return!!(this.Db>>16==10&&H(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&$S(this.a.a).i!=0&&!(this.b&&Y0e(this.b));case 14:return!!this.b&&Y0e(this.b)}return hx(this,e-M_((bz(),Z7)),MC((t=H(PT(this,16),29),t||Z7),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:Bw(this,Lp(t));return;case 2:WD(this,Vs(Fp(t)));return;case 3:qD(this,Vs(Fp(t)));return;case 4:dw(this,H(t,17).a);return;case 5:fw(this,H(t,17).a);return;case 8:mD(this,H(t,142));return;case 9:r=VM(this,H(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Pf(z7,this,11)),hR(this.d),!this.d&&(this.d=new Pf(z7,this,11)),y_(this.d,H(t,16));return;case 12:!this.c&&(this.c=new Bg(L7,this,12,10)),hR(this.c),!this.c&&(this.c=new Bg(L7,this,12,10)),y_(this.c,H(t,16));return;case 13:!this.a&&(this.a=new Jp(this,this)),yR(this.a),!this.a&&(this.a=new Jp(this,this)),y_(this.a,H(t,16));return;case 14:hR($S(this)),y_($S(this),H(t,16));return}zO(this,e-M_((bz(),Z7)),MC((n=H(PT(this,16),29),n||Z7),e),t)},X.ii=function(){return bz(),Z7},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:Bw(this,null);return;case 2:WD(this,!0);return;case 3:qD(this,!0);return;case 4:dw(this,0);return;case 5:fw(this,1);return;case 8:mD(this,null);return;case 9:n=VM(this,null,null),n&&n.oj();return;case 11:!this.d&&(this.d=new Pf(z7,this,11)),hR(this.d);return;case 12:!this.c&&(this.c=new Bg(L7,this,12,10)),hR(this.c);return;case 13:this.a&&yR(this.a);return;case 14:this.b&&hR(this.b);return}BD(this,e-M_((bz(),Z7)),MC((t=H(PT(this,16),29),t||Z7),e))},X.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;es&&F_(e,s,null),r=0,n=new Lf($S(this.a));n.e!=n.i.gc();)t=H(fA(n),89),a=(o=t.c,o||(bz(),Y7)),F_(e,r++,a);return e},X.Hj=function(){var e,t,n,r,i=new ac;for(i.a+=`[`,e=$S(this.a),t=0,r=$S(this.a).i;t1);case 5:return pb(this,e,t,n,r,this.i-H(n,15).gc()>0);default:return new aC(this.e,e,this.c,t,n,r,!0)}},X.Tj=function(){return!0},X.Qj=function(){return Y0e(this)},X.Gk=function(){hR(this)},U(qG,`EOperationImpl/2`,1377),J(507,1,{2037:1,507:1},jbe),U(qG,`EPackageImpl/1`,507),J(14,83,ZK,Bg),X.il=function(){return this.d},X.jl=function(){return this.b},X.ml=function(){return!0},X.b=0,U(BK,`EObjectContainmentWithInverseEList`,14),J(365,14,ZK,fm),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectContainmentWithInverseEList/Resolving`,365),J(308,365,ZK,Wg),X.Ni=function(){this.a.tb=null},U(qG,`EPackageImpl/2`,308),J(1278,1,{},Xoe),U(qG,`EPackageImpl/3`,1278),J(733,45,rV,rme),X._b=function(e){return ld(e)?EPe(this,e):!!dg(this.f,e)},U(qG,`EPackageRegistryImpl`,733),J(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},ime),X.Ah=function(e){return z4e(this,e)},X.Lh=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lp(),!!(this.Bb&256);case 3:return lp(),!!(this.Bb&512);case 4:return kD(this.s);case 5:return kD(this.t);case 6:return lp(),a=this.t,a>1||a==-1;case 7:return lp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?H(this.Cb,62):null}return BS(this,e-M_((bz(),$7)),MC((r=H(PT(this,16),29),r||$7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),_k(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?z4e(this,n):this.Cb.Th(this,-1-i,null,n))),LI(this,e,10,n)}return a=H(MC((r=H(PT(this,16),29),r||(bz(),$7)),t),69),a.wk().zk(this,Kk(this),t-M_((bz(),$7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 9:return b_(this,n);case 10:return LI(this,null,10,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),$7)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),$7)),e,n)},X.Wh=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return!!(this.Db>>16==10&&H(this.Cb,62))}return hx(this,e-M_((bz(),$7)),MC((t=H(PT(this,16),29),t||$7),e))},X.ii=function(){return bz(),$7},U(qG,`EParameterImpl`,518),J(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},Xwe),X.Lh=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lp(),!!(this.Bb&256);case 3:return lp(),!!(this.Bb&512);case 4:return kD(this.s);case 5:return kD(this.t);case 6:return lp(),o=this.t,o>1||o==-1;case 7:return lp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return lp(),(this.Bb&oB)!=0;case 11:return lp(),(this.Bb&HK)!=0;case 12:return lp(),(this.Bb&JB)!=0;case 13:return this.j;case 14:return hF(this);case 15:return lp(),(this.Bb&VK)!=0;case 16:return lp(),(this.Bb&qz)!=0;case 17:return sb(this);case 18:return lp(),(this.Bb&KG)!=0;case 19:return lp(),a=MA(this),!!(a&&(a.Bb&KG)!=0);case 20:return lp(),(this.Bb&XB)!=0;case 21:return t?MA(this):this.b;case 22:return t?PE(this):qx(this);case 23:return!this.a&&(this.a=new Ff(A7,this,23)),this.a}return BS(this,e-M_((bz(),e9)),MC((r=H(PT(this,16),29),r||e9),e),t,n)},X.Wh=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return(this.Bb&oB)==0;case 11:return(this.Bb&HK)!=0;case 12:return(this.Bb&JB)!=0;case 13:return this.j!=null;case 14:return hF(this)!=null;case 15:return(this.Bb&VK)!=0;case 16:return(this.Bb&qz)!=0;case 17:return!!sb(this);case 18:return(this.Bb&KG)!=0;case 19:return r=MA(this),!!r&&(r.Bb&KG)!=0;case 20:return(this.Bb&XB)==0;case 21:return!!this.b;case 22:return!!qx(this);case 23:return!!this.a&&this.a.i!=0}return hx(this,e-M_((bz(),e9)),MC((t=H(PT(this,16),29),t||e9),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:yb(this,Lp(t));return;case 2:WD(this,Vs(Fp(t)));return;case 3:qD(this,Vs(Fp(t)));return;case 4:dw(this,H(t,17).a);return;case 5:fw(this,H(t,17).a);return;case 8:mD(this,H(t,142));return;case 9:r=VM(this,H(t,89),null),r&&r.oj();return;case 10:oO(this,Vs(Fp(t)));return;case 11:lO(this,Vs(Fp(t)));return;case 12:sO(this,Vs(Fp(t)));return;case 13:wbe(this,Lp(t));return;case 15:cO(this,Vs(Fp(t)));return;case 16:gO(this,Vs(Fp(t)));return;case 18:sIe(this,Vs(Fp(t)));return;case 20:yQe(this,Vs(Fp(t)));return;case 21:GKe(this,H(t,19));return;case 23:!this.a&&(this.a=new Ff(A7,this,23)),hR(this.a),!this.a&&(this.a=new Ff(A7,this,23)),y_(this.a,H(t,16));return}zO(this,e-M_((bz(),e9)),MC((n=H(PT(this,16),29),n||e9),e),t)},X.ii=function(){return bz(),e9},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:V(this.Cb,90)&&eP(Hx(H(this.Cb,90)),4),Bw(this,null);return;case 2:WD(this,!0);return;case 3:qD(this,!0);return;case 4:dw(this,0);return;case 5:fw(this,1);return;case 8:mD(this,null);return;case 9:n=VM(this,null,null),n&&n.oj();return;case 10:oO(this,!0);return;case 11:lO(this,!1);return;case 12:sO(this,!1);return;case 13:this.i=null,WKe(this,null);return;case 15:cO(this,!1);return;case 16:gO(this,!1);return;case 18:vQe(this,!1),V(this.Cb,90)&&eP(Hx(H(this.Cb,90)),2);return;case 20:yQe(this,!0);return;case 21:GKe(this,null);return;case 23:!this.a&&(this.a=new Ff(A7,this,23)),hR(this.a);return}BD(this,e-M_((bz(),e9)),MC((t=H(PT(this,16),29),t||e9),e))},X.pi=function(){PE(this),Cv(tC((LN(),o9),this)),Pj(this),this.Bb|=1},X.uk=function(){return MA(this)},X._k=function(){var e=MA(this);return!!e&&(e.Bb&KG)!=0},X.al=function(){return(this.Bb&KG)!=0},X.bl=function(){return(this.Bb&XB)!=0},X.Yk=function(e,t){return this.c=null,wZe(this,e,t)},X.Ib=function(){var e;return this.Db&64?eI(this):(e=new Zf(eI(this)),e.a+=` (containment: `,Lc(e,(this.Bb&KG)!=0),e.a+=`, resolveProxies: `,Lc(e,(this.Bb&XB)!=0),e.a+=`)`,e.a)},U(qG,`EReferenceImpl`,102),J(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Zoe),X.Fb=function(e){return this===e},X.ld=function(){return this.b},X.md=function(){return this.c},X.Hb=function(){return cp(this)},X.Di=function(e){sAe(this,Lp(e))},X.nd=function(e){return Oke(this,Lp(e))},X.Lh=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return BS(this,e-M_((bz(),t9)),MC((r=H(PT(this,16),29),r||t9),e),t,n)},X.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return hx(this,e-M_((bz(),t9)),MC((t=H(PT(this,16),29),t||t9),e))},X.bi=function(e,t){var n;switch(e){case 0:cAe(this,Lp(t));return;case 1:kKe(this,Lp(t));return}zO(this,e-M_((bz(),t9)),MC((n=H(PT(this,16),29),n||t9),e),t)},X.ii=function(){return bz(),t9},X.ki=function(e){var t;switch(e){case 0:OKe(this,null);return;case 1:kKe(this,null);return}BD(this,e-M_((bz(),t9)),MC((t=H(PT(this,16),29),t||t9),e))},X.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:KE(e)),this.a},X.Ci=function(e){this.a=e},X.Ib=function(){var e;return this.Db&64?$P(this):(e=new Zf($P(this)),e.a+=` (key: `,gd(e,this.b),e.a+=`, value: `,gd(e,this.c),e.a+=`)`,e.a)},X.a=-1,X.b=null,X.c=null;var i9=U(qG,`EStringToStringMapEntryImpl`,561),oHt=Lh(BK,`FeatureMap/Entry/Internal`);J(576,1,aq),X.xl=function(e){return this.yl(H(e,54))},X.yl=function(e){return this.xl(e)},X.Fb=function(e){var t,n;return this===e?!0:V(e,76)?(t=H(e,76),t.Lk()==this.c&&(n=this.md(),n==null?t.md()==null:zD(n,t.md()))):!1},X.Lk=function(){return this.c},X.Hb=function(){var e=this.md();return zw(this.c)^(e==null?0:zw(e))},X.Ib=function(){var e=this.c,t=qC(e.qk()).yi();return e.xe(),(t!=null&&t.length!=0?t+`:`+e.xe():e.xe())+`=`+this.md()},U(qG,`EStructuralFeatureImpl/BasicFeatureMapEntry`,576),J(791,576,aq,TTe),X.yl=function(e){return new TTe(this.c,e)},X.md=function(){return this.a},X.zl=function(e,t,n){return _T(this,e,this.a,t,n)},X.Al=function(e,t,n){return kqe(this,e,this.a,t,n)},U(qG,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,791),J(1350,1,{},Mbe),X.yk=function(e,t,n,r,i){return H(NS(e,this.b),220).Yl(this.a).Fk(r)},X.zk=function(e,t,n,r,i){return H(NS(e,this.b),220).Pl(this.a,r,i)},X.Ak=function(e,t,n,r,i){return H(NS(e,this.b),220).Ql(this.a,r,i)},X.Bk=function(e,t,n){return H(NS(e,this.b),220).Yl(this.a).Qj()},X.Ck=function(e,t,n,r){H(NS(e,this.b),220).Yl(this.a).Wb(r)},X.Dk=function(e,t,n){return H(NS(e,this.b),220).Yl(this.a)},X.Ek=function(e,t,n){H(NS(e,this.b),220).Yl(this.a).Gk()},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1350),J(91,1,{},nh,Gv,yy,Dx),X.yk=function(e,t,n,r,i){var a=t.li(n);if(a??t.mi(n,a=mz(this,e)),!i)switch(this.e){case 50:case 41:return H(a,597).bk();case 40:return H(a,220).Vl()}return a},X.zk=function(e,t,n,r,i){var a,o=t.li(n);return o??t.mi(n,o=mz(this,e)),a=H(o,71).Wk(r,i),a},X.Ak=function(e,t,n,r,i){var a=t.li(n);return a!=null&&(i=H(a,71).Xk(r,i)),i},X.Bk=function(e,t,n){var r=t.li(n);return r!=null&&H(r,79).Qj()},X.Ck=function(e,t,n,r){var i=H(t.li(n),79);!i&&t.mi(n,i=mz(this,e)),i.Wb(r)},X.Dk=function(e,t,n){var r,i=t.li(n);return i??t.mi(n,i=mz(this,e)),V(i,79)?H(i,79):(r=H(t.li(n),15),new qfe(r))},X.Ek=function(e,t,n){var r=H(t.li(n),79);!r&&t.mi(n,r=mz(this,e)),r.Gk()},X.b=0,X.e=0,U(qG,`EStructuralFeatureImpl/InternalSettingDelegateMany`,91),J(512,1,{}),X.zk=function(e,t,n,r,i){throw R(new Po)},X.Ak=function(e,t,n,r,i){throw R(new Po)},X.Dk=function(e,t,n){return new Kv(this,e,t,n)};var a9;U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,512),J(1367,1,yxt,Kv),X.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},X.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},X.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},X.Gk=function(){this.a.Ek(this.c,this.d,this.b)},X.b=0,U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1367),J(784,512,{},Ly),X.yk=function(e,t,n,r,i){return yot(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?vet(e):e.Ph():null},X.zk=function(e,t,n,r,i){var a,o;return e.Ph()&&(i=(a=e.Fh(),a>=0?e.Ah(i):e.Ph().Th(e,-1-a,null,i))),o=$O(e.Dh(),this.e),e.Ch(r,o,i)},X.Ak=function(e,t,n,r,i){var a=$O(e.Dh(),this.e);return e.Ch(null,a,i)},X.Bk=function(e,t,n){var r=$O(e.Dh(),this.e);return!!e.Ph()&&e.Fh()==r},X.Ck=function(e,t,n,r){var i,a,o,s,l;if(r!=null&&!KI(this.a,r))throw R(new Gs(oq+(V(r,58)?K3e(H(r,58).Dh()):FC(sD(r)))+sq+this.a+`'`));if(i=e.Ph(),o=$O(e.Dh(),this.e),cd(r)!==cd(i)||e.Fh()!=o&&r!=null){if(jj(e,H(r,58)))throw R(new Ks(YG+e.Ib()));l=null,i&&(l=(a=e.Fh(),a>=0?e.Ah(l):e.Ph().Th(e,-1-a,null,l))),s=H(r,54),s&&(l=s.Rh(e,$O(s.Dh(),this.b),null,l)),l=e.Ch(s,o,l),l&&l.oj()}else e.vh()&&e.wh()&&jT(e,new Vg(e,1,o,r,r))},X.Ek=function(e,t,n){var r=e.Ph(),i,a,o;r?(o=(i=e.Fh(),i>=0?e.Ah(null):e.Ph().Th(e,-1-i,null,null)),a=$O(e.Dh(),this.e),o=e.Ch(null,a,o),o&&o.oj()):e.vh()&&e.wh()&&jT(e,new Hg(e,1,this.e,null,null))},X.bl=function(){return!1},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,784),J(1351,784,{},qOe),X.bl=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1351),J(574,512,{}),X.yk=function(e,t,n,r,i){var a=t.li(n);return a==null?this.b:cd(a)===cd(a9)?null:a},X.Bk=function(e,t,n){var r=t.li(n);return r!=null&&(cd(r)===cd(a9)||!zD(r,this.b))},X.Ck=function(e,t,n,r){var i,a;e.vh()&&e.wh()?(i=(a=t.li(n),a==null?this.b:cd(a)===cd(a9)?null:a),r==null?this.c==null?this.b==null?t.mi(n,null):t.mi(n,a9):(t.mi(n,null),r=this.b):(this.Bl(r),t.mi(n,r)),jT(e,this.d.Cl(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.mi(n,null):t.mi(n,a9):t.mi(n,null):(this.Bl(r),t.mi(n,r))},X.Ek=function(e,t,n){var r,i;e.vh()&&e.wh()?(r=(i=t.li(n),i==null?this.b:cd(i)===cd(a9)?null:i),t.ni(n),jT(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(n)},X.Bl=function(e){throw R(new _pe)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,574),J(cq,1,{},Qoe),X.Cl=function(e,t,n,r,i){return new Hg(e,t,n,r,i)},X.Dl=function(e,t,n,r,i,a){return new _Pe(e,t,n,r,i,a)};var sHt,cHt,lHt,uHt,dHt,fHt,pHt,mHt,hHt;U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,cq),J(1368,cq,{},$oe),X.Cl=function(e,t,n,r,i){return new KBe(e,t,n,Vs(Fp(r)),Vs(Fp(i)))},X.Dl=function(e,t,n,r,i,a){return new NLe(e,t,n,Vs(Fp(r)),Vs(Fp(i)),a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1368),J(1369,cq,{},ese),X.Cl=function(e,t,n,r,i){return new AGe(e,t,n,H(r,222).a,H(i,222).a)},X.Dl=function(e,t,n,r,i,a){return new ELe(e,t,n,H(r,222).a,H(i,222).a,a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1369),J(1370,cq,{},$n),X.Cl=function(e,t,n,r,i){return new jGe(e,t,n,H(r,180).a,H(i,180).a)},X.Dl=function(e,t,n,r,i,a){return new DLe(e,t,n,H(r,180).a,H(i,180).a,a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1370),J(1371,cq,{},tse),X.Cl=function(e,t,n,r,i){return new WBe(e,t,n,z(Ip(r)),z(Ip(i)))},X.Dl=function(e,t,n,r,i,a){return new OLe(e,t,n,z(Ip(r)),z(Ip(i)),a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1371),J(1372,cq,{},N),X.Cl=function(e,t,n,r,i){return new PGe(e,t,n,H(r,161).a,H(i,161).a)},X.Dl=function(e,t,n,r,i,a){return new kLe(e,t,n,H(r,161).a,H(i,161).a,a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1372),J(1373,cq,{},er),X.Cl=function(e,t,n,r,i){return new GBe(e,t,n,H(r,17).a,H(i,17).a)},X.Dl=function(e,t,n,r,i,a){return new ALe(e,t,n,H(r,17).a,H(i,17).a,a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1373),J(1374,cq,{},tr),X.Cl=function(e,t,n,r,i){return new MGe(e,t,n,H(r,168).a,H(i,168).a)},X.Dl=function(e,t,n,r,i,a){return new jLe(e,t,n,H(r,168).a,H(i,168).a,a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1374),J(1375,cq,{},nse),X.Cl=function(e,t,n,r,i){return new NGe(e,t,n,H(r,191).a,H(i,191).a)},X.Dl=function(e,t,n,r,i,a){return new MLe(e,t,n,H(r,191).a,H(i,191).a,a)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1375),J(1353,574,{},qv),X.Bl=function(e){if(!this.a.fk(e))throw R(new Gs(oq+sD(e)+sq+this.a+`'`))},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1353),J(1354,574,{},bg),X.Bl=function(e){},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1354),J(785,574,{}),X.Bk=function(e,t,n){return t.li(n)!=null},X.Ck=function(e,t,n,r){var i,a;e.vh()&&e.wh()?(i=!0,a=t.li(n),a==null?(i=!1,a=this.b):cd(a)===cd(a9)&&(a=null),r==null?this.c==null?t.mi(n,a9):(t.mi(n,null),r=this.b):(this.Bl(r),t.mi(n,r)),jT(e,this.d.Dl(e,1,this.e,a,r,!i))):r==null?this.c==null?t.mi(n,a9):t.mi(n,null):(this.Bl(r),t.mi(n,r))},X.Ek=function(e,t,n){var r,i;e.vh()&&e.wh()?(r=!0,i=t.li(n),i==null?(r=!1,i=this.b):cd(i)===cd(a9)&&(i=null),t.ni(n),jT(e,this.d.Dl(e,2,this.e,i,this.b,r))):t.ni(n)},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,785),J(1355,785,{},qNe),X.Bl=function(e){if(!this.a.fk(e))throw R(new Gs(oq+sD(e)+sq+this.a+`'`))},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1355),J(1356,785,{},rje),X.Bl=function(e){},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1356),J(410,512,{},ig),X.yk=function(e,t,n,r,i){var a,o,s,l,u=t.li(n);if(this.tk()&&cd(u)===cd(a9))return null;if(this.bl()&&r&&u!=null){if(s=H(u,54),s.Vh()&&(l=bD(e,s),s!=l)){if(!KI(this.a,l))throw R(new Gs(oq+sD(l)+sq+this.a+`'`));t.mi(n,u=l),this.al()&&(a=H(l,54),o=s.Th(e,this.b?$O(s.Dh(),this.b):-1-$O(e.Dh(),this.e),null,null),!a.Ph()&&(o=a.Rh(e,this.b?$O(a.Dh(),this.b):-1-$O(e.Dh(),this.e),null,o)),o&&o.oj()),e.vh()&&e.wh()&&jT(e,new Hg(e,9,this.e,s,l))}return u}return u},X.zk=function(e,t,n,r,i){var a,o=t.li(n);return cd(o)===cd(a9)&&(o=null),t.mi(n,r),this.Mj()?cd(o)!==cd(r)&&o!=null&&(a=H(o,54),i=a.Th(e,$O(a.Dh(),this.b),null,i)):this.al()&&o!=null&&(i=H(o,54).Th(e,-1-$O(e.Dh(),this.e),null,i)),e.vh()&&e.wh()&&(!i&&(i=new Ac(4)),i.nj(new Hg(e,1,this.e,o,r))),i},X.Ak=function(e,t,n,r,i){var a=t.li(n);return cd(a)===cd(a9)&&(a=null),t.ni(n),e.vh()&&e.wh()&&(!i&&(i=new Ac(4)),this.tk()?i.nj(new Hg(e,2,this.e,a,null)):i.nj(new Hg(e,1,this.e,a,null))),i},X.Bk=function(e,t,n){return t.li(n)!=null},X.Ck=function(e,t,n,r){var i,a,o,s,l;if(r!=null&&!KI(this.a,r))throw R(new Gs(oq+(V(r,58)?K3e(H(r,58).Dh()):FC(sD(r)))+sq+this.a+`'`));l=t.li(n),s=l!=null,this.tk()&&cd(l)===cd(a9)&&(l=null),o=null,this.Mj()?cd(l)!==cd(r)&&(l!=null&&(i=H(l,54),o=i.Th(e,$O(i.Dh(),this.b),null,o)),r!=null&&(i=H(r,54),o=i.Rh(e,$O(i.Dh(),this.b),null,o))):this.al()&&cd(l)!==cd(r)&&(l!=null&&(o=H(l,54).Th(e,-1-$O(e.Dh(),this.e),null,o)),r!=null&&(o=H(r,54).Rh(e,-1-$O(e.Dh(),this.e),null,o))),r==null&&this.tk()?t.mi(n,a9):t.mi(n,r),e.vh()&&e.wh()?(a=new _Pe(e,1,this.e,l,r,this.tk()&&!s),o?(o.nj(a),o.oj()):jT(e,a)):o&&o.oj()},X.Ek=function(e,t,n){var r,i,a,o,s=t.li(n);o=s!=null,this.tk()&&cd(s)===cd(a9)&&(s=null),a=null,s!=null&&(this.Mj()?(r=H(s,54),a=r.Th(e,$O(r.Dh(),this.b),null,a)):this.al()&&(a=H(s,54).Th(e,-1-$O(e.Dh(),this.e),null,a))),t.ni(n),e.vh()&&e.wh()?(i=new _Pe(e,this.tk()?2:1,this.e,s,null,o),a?(a.nj(i),a.oj()):jT(e,i)):a&&a.oj()},X.Mj=function(){return!1},X.al=function(){return!1},X.bl=function(){return!1},X.tk=function(){return!1},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,410),J(575,410,{},Np),X.al=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,575),J(1359,575,{},Pwe),X.bl=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1359),J(787,575,{},Fwe),X.tk=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,787),J(1361,787,{},Lwe),X.bl=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1361),J(650,575,{},JOe),X.Mj=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,650),J(1360,650,{},rh),X.bl=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1360),J(788,650,{},ih),X.tk=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,788),J(1362,788,{},ZOe),X.bl=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1362),J(651,410,{},Iwe),X.bl=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,651),J(1363,651,{},Rwe),X.tk=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1363),J(789,651,{},YOe),X.Mj=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,789),J(1364,789,{},QOe),X.tk=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1364),J(1357,410,{},zwe),X.tk=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1357),J(786,410,{},XOe),X.Mj=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,786),J(1358,786,{},$Oe),X.tk=function(){return!0},U(qG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1358),J(790,576,aq,WMe),X.yl=function(e){return new WMe(this.a,this.c,e)},X.md=function(){return this.b},X.zl=function(e,t,n){return _He(this,e,this.b,n)},X.Al=function(e,t,n){return vHe(this,e,this.b,n)},U(qG,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,790),J(1365,1,yxt,qfe),X.Fk=function(e){return this.a},X.Qj=function(){return V(this.a,97)?H(this.a,97).Qj():!this.a.dc()},X.Wb=function(e){this.a.$b(),this.a.Gc(H(e,15))},X.Gk=function(){V(this.a,97)?H(this.a,97).Gk():this.a.$b()},U(qG,`EStructuralFeatureImpl/SettingMany`,1365),J(1366,576,aq,Hze),X.xl=function(e){return new Xp((wR(),g9),this.b.ri(this.a,e))},X.md=function(){return null},X.zl=function(e,t,n){return n},X.Al=function(e,t,n){return n},U(qG,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1366),J(652,576,aq,Xp),X.xl=function(e){return new Xp(this.c,e)},X.md=function(){return this.a},X.zl=function(e,t,n){return n},X.Al=function(e,t,n){return n},U(qG,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,652),J(403,506,_K,nr),X.aj=function(e){return vS(M7,jz,29,e,0,1)},X.Yi=function(){return!1},U(qG,`ESuperAdapter/1`,403),J(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},rr),X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new ag(this,P7,this)),this.a}return BS(this,e-M_((bz(),n9)),MC((r=H(PT(this,16),29),r||n9),e),t,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),SA(this.Ab,e,n);case 2:return!this.a&&(this.a=new ag(this,P7,this)),SA(this.a,e,n)}return i=H(MC((r=H(PT(this,16),29),r||(bz(),n9)),t),69),i.wk().Ak(this,Kk(this),t-M_((bz(),n9)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return hx(this,e-M_((bz(),n9)),MC((t=H(PT(this,16),29),t||n9),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab),!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),y_(this.Ab,H(t,16));return;case 1:Bw(this,Lp(t));return;case 2:!this.a&&(this.a=new ag(this,P7,this)),hR(this.a),!this.a&&(this.a=new ag(this,P7,this)),y_(this.a,H(t,16));return}zO(this,e-M_((bz(),n9)),MC((n=H(PT(this,16),29),n||n9),e),t)},X.ii=function(){return bz(),n9},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(D7,this,0,3)),hR(this.Ab);return;case 1:Bw(this,null);return;case 2:!this.a&&(this.a=new ag(this,P7,this)),hR(this.a);return}BD(this,e-M_((bz(),n9)),MC((t=H(PT(this,16),29),t||n9),e))},U(qG,`ETypeParameterImpl`,457),J(458,83,ZK,ag),X.Nj=function(e,t){return H6e(this,H(e,89),t)},X.Oj=function(e,t){return LM(this,H(e,89),t)},U(qG,`ETypeParameterImpl/1`,458),J(647,45,rV,ame),X.ec=function(){return new lo(this)},U(qG,`ETypeParameterImpl/2`,647),J(570,Vz,Hz,lo),X.Fc=function(e){return ZTe(this,H(e,89))},X.Gc=function(e){var t,n,r=!1;for(n=e.Kc();n.Ob();)t=H(n.Pb(),89),fv(this.a,t,``)??(r=!0);return r},X.$b=function(){$g(this.a)},X.Hc=function(e){return Xg(this.a,e)},X.Kc=function(){return new uo(new OT(new Li(this.a).a))},X.Mc=function(e){return jVe(this,e)},X.gc=function(){return al(this.a)},U(qG,`ETypeParameterImpl/2/1`,570),J(571,1,Lz,uo),X.Nb=function(e){Yg(this,e)},X.Pb=function(){return H(Nw(this.a).ld(),89)},X.Ob=function(){return this.a.b},X.Qb=function(){BUe(this.a)},U(qG,`ETypeParameterImpl/2/1/1`,571),J(1329,45,rV,us),X._b=function(e){return ld(e)?EPe(this,e):!!dg(this.f,e)},X.xc=function(e){var t=ld(e)?Ry(this,e):sd(dg(this.f,e)),n;return V(t,851)?(n=H(t,851),t=n.Kk(),fv(this,H(e,241),t),t):t??(e==null?(q_e(),THt):null)},U(qG,`EValidatorRegistryImpl`,1329),J(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},P),X.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:FO(t);case 25:return YC(t);case 27:return _Ue(t);case 28:return vUe(t);case 29:return t==null?null:xSe(S7[0],H(t,206));case 41:return t==null?``:Fc(H(t,297));case 42:return FO(t);case 50:return Lp(t);default:throw R(new Ks(XG+e.xe()+ZG))}},X.si=function(e){var t,n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;switch(e.G==-1&&(e.G=(p=qC(e),p?wA(p.vi(),e):-1)),e.G){case 0:return n=new $pe,n;case 1:return t=new Goe,t;case 2:return r=new ole,r;case 4:return i=new Lo,i;case 5:return a=new tme,a;case 6:return o=new bpe,o;case 7:return s=new F,s;case 10:return u=new Yn,u;case 11:return d=new nme,d;case 12:return f=new pPe,f;case 13:return m=new ime,m;case 14:return h=new Xwe,h;case 17:return g=new Zoe,g;case 18:return l=new vo,l;case 19:return _=new rr,_;default:throw R(new Ks(obt+e.zb+ZG))}},X.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new xge(t);case 21:return t==null?null:new nf(t);case 23:case 22:return t==null?null:Uk(t);case 26:case 24:return t==null?null:cC(AI(t,-128,127)<<24>>24);case 25:return _tt(t);case 27:return o4e(t);case 28:return s4e(t);case 29:return h8e(t);case 32:case 31:return t==null?null:pN(t);case 38:case 37:return t==null?null:new Epe(t);case 40:case 39:return t==null?null:kD(AI(t,hB,Ez));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:Xk(ez(t));case 49:case 48:return t==null?null:AD(AI(t,uq,32767)<<16>>16);case 50:return t;default:throw R(new Ks(XG+e.xe()+ZG))}},U(qG,`EcoreFactoryImpl`,1349),J(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},dv),X.gb=!1,X.hb=!1;var gHt,_Ht=!1;U(qG,`EcorePackageImpl`,560),J(1234,1,{851:1},rse),X.Kk=function(){return Bf(),EHt},U(qG,`EcorePackageImpl/1`,1234),J(1243,1,hq,ir),X.fk=function(e){return V(e,155)},X.gk=function(e){return vS(FBt,jz,155,e,0,1)},U(qG,`EcorePackageImpl/10`,1243),J(1244,1,hq,ar),X.fk=function(e){return V(e,197)},X.gk=function(e){return vS(LBt,jz,197,e,0,1)},U(qG,`EcorePackageImpl/11`,1244),J(1245,1,hq,or),X.fk=function(e){return V(e,58)},X.gk=function(e){return vS(l7,jz,58,e,0,1)},U(qG,`EcorePackageImpl/12`,1245),J(1246,1,hq,ise),X.fk=function(e){return V(e,411)},X.gk=function(e){return vS(F7,Cxt,62,e,0,1)},U(qG,`EcorePackageImpl/13`,1246),J(1247,1,hq,ase),X.fk=function(e){return V(e,241)},X.gk=function(e){return vS(g7,jz,241,e,0,1)},U(qG,`EcorePackageImpl/14`,1247),J(1248,1,hq,ose),X.fk=function(e){return V(e,518)},X.gk=function(e){return vS(L7,jz,2116,e,0,1)},U(qG,`EcorePackageImpl/15`,1248),J(1249,1,hq,sse),X.fk=function(e){return V(e,102)},X.gk=function(e){return vS(R7,XK,19,e,0,1)},U(qG,`EcorePackageImpl/16`,1249),J(1250,1,hq,cse),X.fk=function(e){return V(e,179)},X.gk=function(e){return vS(k7,XK,179,e,0,1)},U(qG,`EcorePackageImpl/17`,1250),J(1251,1,hq,sr),X.fk=function(e){return V(e,481)},X.gk=function(e){return vS(O7,jz,481,e,0,1)},U(qG,`EcorePackageImpl/18`,1251),J(1252,1,hq,cr),X.fk=function(e){return V(e,561)},X.gk=function(e){return vS(i9,cxt,561,e,0,1)},U(qG,`EcorePackageImpl/19`,1252),J(1235,1,hq,lr),X.fk=function(e){return V(e,331)},X.gk=function(e){return vS(A7,XK,35,e,0,1)},U(qG,`EcorePackageImpl/2`,1235),J(1253,1,hq,ur),X.fk=function(e){return V(e,248)},X.gk=function(e){return vS(P7,tq,89,e,0,1)},U(qG,`EcorePackageImpl/20`,1253),J(1254,1,hq,lse),X.fk=function(e){return V(e,457)},X.gk=function(e){return vS(z7,jz,850,e,0,1)},U(qG,`EcorePackageImpl/21`,1254),J(1255,1,hq,use),X.fk=function(e){return ud(e)},X.gk=function(e){return vS(CJ,Kz,485,e,8,1)},U(qG,`EcorePackageImpl/22`,1255),J(1256,1,hq,dse),X.fk=function(e){return V(e,195)},X.gk=function(e){return vS(R9,Kz,195,e,0,2)},U(qG,`EcorePackageImpl/23`,1256),J(1257,1,hq,fse),X.fk=function(e){return V(e,222)},X.gk=function(e){return vS(wJ,Kz,222,e,0,1)},U(qG,`EcorePackageImpl/24`,1257),J(1258,1,hq,pse),X.fk=function(e){return V(e,180)},X.gk=function(e){return vS(EJ,Kz,180,e,0,1)},U(qG,`EcorePackageImpl/25`,1258),J(1259,1,hq,dr),X.fk=function(e){return V(e,206)},X.gk=function(e){return vS(gJ,Kz,206,e,0,1)},U(qG,`EcorePackageImpl/26`,1259),J(1260,1,hq,mse),X.fk=function(e){return!1},X.gk=function(e){return vS(wUt,jz,2215,e,0,1)},U(qG,`EcorePackageImpl/27`,1260),J(1261,1,hq,fr),X.fk=function(e){return dd(e)},X.gk=function(e){return vS(OJ,Kz,345,e,7,1)},U(qG,`EcorePackageImpl/28`,1261),J(1262,1,hq,hse),X.fk=function(e){return V(e,61)},X.gk=function(e){return vS(uVt,vH,61,e,0,1)},U(qG,`EcorePackageImpl/29`,1262),J(1236,1,hq,pr),X.fk=function(e){return V(e,519)},X.gk=function(e){return vS(D7,{3:1,4:1,5:1,2033:1},598,e,0,1)},U(qG,`EcorePackageImpl/3`,1236),J(1263,1,hq,gse),X.fk=function(e){return V(e,582)},X.gk=function(e){return vS(xVt,jz,2039,e,0,1)},U(qG,`EcorePackageImpl/30`,1263),J(1264,1,hq,mr),X.fk=function(e){return V(e,160)},X.gk=function(e){return vS(wHt,vH,160,e,0,1)},U(qG,`EcorePackageImpl/31`,1264),J(1265,1,hq,_se),X.fk=function(e){return V(e,76)},X.gk=function(e){return vS(ZVt,Nxt,76,e,0,1)},U(qG,`EcorePackageImpl/32`,1265),J(1266,1,hq,hr),X.fk=function(e){return V(e,161)},X.gk=function(e){return vS(kJ,Kz,161,e,0,1)},U(qG,`EcorePackageImpl/33`,1266),J(1267,1,hq,vse),X.fk=function(e){return V(e,17)},X.gk=function(e){return vS(AJ,Kz,17,e,0,1)},U(qG,`EcorePackageImpl/34`,1267),J(1268,1,hq,gr),X.fk=function(e){return V(e,297)},X.gk=function(e){return vS(bSt,jz,297,e,0,1)},U(qG,`EcorePackageImpl/35`,1268),J(1269,1,hq,_r),X.fk=function(e){return V(e,168)},X.gk=function(e){return vS(jJ,Kz,168,e,0,1)},U(qG,`EcorePackageImpl/36`,1269),J(1270,1,hq,yse),X.fk=function(e){return V(e,85)},X.gk=function(e){return vS(nJ,jz,85,e,0,1)},U(qG,`EcorePackageImpl/37`,1270),J(1271,1,hq,bse),X.fk=function(e){return V(e,599)},X.gk=function(e){return vS(vHt,jz,599,e,0,1)},U(qG,`EcorePackageImpl/38`,1271),J(1272,1,hq,vr),X.fk=function(e){return!1},X.gk=function(e){return vS(TUt,jz,2216,e,0,1)},U(qG,`EcorePackageImpl/39`,1272),J(1237,1,hq,xse),X.fk=function(e){return V(e,90)},X.gk=function(e){return vS(M7,jz,29,e,0,1)},U(qG,`EcorePackageImpl/4`,1237),J(1273,1,hq,yr),X.fk=function(e){return V(e,191)},X.gk=function(e){return vS(NJ,Kz,191,e,0,1)},U(qG,`EcorePackageImpl/40`,1273),J(1274,1,hq,Sse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(qG,`EcorePackageImpl/41`,1274),J(1275,1,hq,Cse),X.fk=function(e){return V(e,596)},X.gk=function(e){return vS(fVt,jz,596,e,0,1)},U(qG,`EcorePackageImpl/42`,1275),J(1276,1,hq,wse),X.fk=function(e){return!1},X.gk=function(e){return vS(EUt,Kz,2217,e,0,1)},U(qG,`EcorePackageImpl/43`,1276),J(1277,1,hq,Tse),X.fk=function(e){return V(e,44)},X.gk=function(e){return vS(oJ,eB,44,e,0,1)},U(qG,`EcorePackageImpl/44`,1277),J(1238,1,hq,Ese),X.fk=function(e){return V(e,142)},X.gk=function(e){return vS(j7,jz,142,e,0,1)},U(qG,`EcorePackageImpl/5`,1238),J(1239,1,hq,br),X.fk=function(e){return V(e,156)},X.gk=function(e){return vS(LVt,jz,156,e,0,1)},U(qG,`EcorePackageImpl/6`,1239),J(1240,1,hq,Dse),X.fk=function(e){return V(e,469)},X.gk=function(e){return vS(zVt,jz,685,e,0,1)},U(qG,`EcorePackageImpl/7`,1240),J(1241,1,hq,Ose),X.fk=function(e){return V(e,582)},X.gk=function(e){return vS(N7,jz,694,e,0,1)},U(qG,`EcorePackageImpl/8`,1241),J(1242,1,hq,kse),X.fk=function(e){return V(e,480)},X.gk=function(e){return vS(h7,jz,480,e,0,1)},U(qG,`EcorePackageImpl/9`,1242),J(1038,2080,FK,Cme),X.Mi=function(e,t){UD(this,H(t,424))},X.Qi=function(e,t){r7e(this,e,H(t,424))},U(qG,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1038),J(1039,152,MK,GMe),X.jj=function(){return this.a.a},U(qG,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1039),J(1067,1066,{},Qxe),U(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1067);var vHt=Lh(Pxt,`Resource`);J(799,1524,Fxt),X.Hl=function(e){},X.Il=function(e){},X.El=function(){return!this.a&&(this.a=new fo(this)),this.a},X.Fl=function(e){var t,n,r=e.length,i,a;if(r>0){if(Mb(0,e.length),e.charCodeAt(0)==47){for(a=new dS(4),i=1,t=1;t0&&(e=(bS(0,n,e.length),e.substr(0,n))))}return sP(this,e)},X.Gl=function(){return this.c},X.Ib=function(){var e;return Fc(this.Rm)+`@`+(e=zw(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},X.b=!1,U(Ixt,`ResourceImpl`,799),J(1525,799,Fxt,Jfe),U(Ixt,`BinaryResourceImpl`,1525),J(1190,708,vK),X.bj=function(e){return V(e,58)?zPe(this,H(e,58)):V(e,599)?new Lf(H(e,599).El()):cd(e)===cd(this.f)?H(e,16).Kc():(Vp(),bVt.a)},X.Ob=function(){return MP(this)},X.a=!1,U(BK,`EcoreUtil/ContentTreeIterator`,1190),J(1526,1190,vK,Ije),X.bj=function(e){return cd(e)===cd(this.f)?H(e,15).Kc():new kRe(H(e,58))},U(Ixt,`ResourceImpl/5`,1526),J(658,2092,wxt,fo),X.Hc=function(e){return this.i<=4?Zj(this,e):V(e,54)&&H(e,54).Jh()==this.a},X.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},X.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):xHe(this,e,t)},X.Qi=function(e,t){},X.Ri=function(e,t,n){},X.Lj=function(){return 2},X.jj=function(){return this.a},X.Mj=function(){return!0},X.Nj=function(e,t){return t=H(e,54).fi(this.a,t),t},X.Oj=function(e,t){return H(e,54).fi(null,t)},X.Pj=function(){return!1},X.Si=function(){return!0},X.aj=function(e){return vS(l7,jz,58,e,0,1)},X.Yi=function(){return!1},U(Ixt,`ResourceImpl/ContentsEList`,658),J(970,2062,uB,Yfe),X.fd=function(e){return this.a.Ki(e)},X.gc=function(){return this.a.gc()},U(BK,`AbstractSequentialInternalEList/1`,970);var yHt,bHt,o9,xHt;J(634,1,{},Mke);var SHt,CHt;U(BK,`BasicExtendedMetaData`,634),J(1181,1,{},Pbe),X.Jl=function(){return null},X.Kl=function(){return this.a==-2&&Qle(this,s8e(this.d,this.b)),this.a},X.Ll=function(){return null},X.Ml=function(){return iy(),iy(),WJ},X.xe=function(){return this.c==Dq&&$le(this,f1e(this.d,this.b)),this.c},X.Nl=function(){return 0},X.a=-2,X.c=Dq,U(BK,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1181),J(1182,1,{},FLe),X.Jl=function(){return this.a==(lS(),SHt)&&nue(this,kat(this.f,this.b)),this.a},X.Kl=function(){return 0},X.Ll=function(){return this.c==(lS(),SHt)&&eue(this,Aat(this.f,this.b)),this.c},X.Ml=function(){return!this.d&&rue(this,lct(this.f,this.b)),this.d},X.xe=function(){return this.e==Dq&&aue(this,f1e(this.f,this.b)),this.e},X.Nl=function(){return this.g==-2&&ji(this,wM(this.f,this.b)),this.g},X.e=Dq,X.g=-2,U(BK,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1182),J(1180,1,{},Fbe),X.b=!1,X.c=!1,U(BK,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1180),J(1183,1,{},ILe),X.c=-2,X.e=Dq,X.f=Dq,U(BK,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1183),J(593,632,ZK,bh),X.Lj=function(){return this.c},X.ol=function(){return!1},X.Wi=function(e,t){return t},X.c=0,U(BK,`EDataTypeEList`,593);var wHt=Lh(BK,`FeatureMap`);J(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},kT),X.bd=function(e,t){Knt(this,e,H(t,76))},X.Fc=function(e){return Ztt(this,H(e,76))},X.Hi=function(e){bMe(this,H(e,76))},X.Nj=function(e,t){return FEe(this,H(e,76),t)},X.Oj=function(e,t){return IEe(this,H(e,76),t)},X.Ti=function(e,t){return Wot(this,e,t)},X.Wi=function(e,t){return iut(this,e,H(t,76))},X.hd=function(e,t){return Xrt(this,e,H(t,76))},X.Uj=function(e,t){return LEe(this,H(e,76),t)},X.Vj=function(e,t){return REe(this,H(e,76),t)},X.Wj=function(e,t,n){return J3e(this,H(e,76),H(t,76),n)},X.Zi=function(e,t){return DM(this,e,H(t,76))},X.Ol=function(e,t){return Y(this,e,t)},X.cd=function(e,t){var n,r,i,a,o,s,l,u=new KC(t.gc()),d;for(i=t.Kc();i.Ob();)if(r=H(i.Pb(),76),a=r.Lk(),jF(this.e,a))(!a.Si()||!bx(this,a,r.md())&&!Zj(u,r))&&SS(u,r);else{for(d=OF(this.e.Dh(),a),n=H(this.g,124),o=!0,s=0;s=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},U(BK,`BasicFeatureMap/FeatureEIterator`,420),J(676,420,Wz,oxe),X.ul=function(){return!0},U(BK,`BasicFeatureMap/ResolvingFeatureEIterator`,676),J(968,496,rq,kSe),X.pj=function(){return this},U(BK,`EContentsEList/1`,968),J(969,496,rq,axe),X.ul=function(){return!1},U(BK,`EContentsEList/2`,969),J(967,287,iq,ASe),X.wl=function(e){},X.Ob=function(){return!1},X.Sb=function(){return!1},U(BK,`EContentsEList/FeatureIteratorImpl/1`,967),J(840,593,ZK,Nf),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;hR(this),Hd(this.e)?(e=this.a,this.a=!1,jT(this.e,new Ux(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(BK,`EDataTypeEList/Unsettable`,840),J(1958,593,ZK,rCe),X.Si=function(){return!0},U(BK,`EDataTypeUniqueEList`,1958),J(1959,840,ZK,iCe),X.Si=function(){return!0},U(BK,`EDataTypeUniqueEList/Unsettable`,1959),J(147,83,ZK,Pf),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectContainmentEList/Resolving`,147),J(1184,555,ZK,aCe),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectContainmentEList/Unsettable/Resolving`,1184),J(766,14,ZK,rEe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;hR(this),Hd(this.e)?(e=this.a,this.a=!1,jT(this.e,new Ux(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(BK,`EObjectContainmentWithInverseEList/Unsettable`,766),J(1222,766,ZK,iEe),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1222),J(757,505,ZK,oCe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;hR(this),Hd(this.e)?(e=this.a,this.a=!1,jT(this.e,new Ux(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(BK,`EObjectEList/Unsettable`,757),J(338,505,ZK,Ff),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectResolvingEList`,338),J(1844,757,ZK,sCe),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectResolvingEList/Unsettable`,1844),J(1527,1,{},xr);var THt;U(BK,`EObjectValidator`,1527),J(559,505,ZK,Ug),X.il=function(){return this.d},X.jl=function(){return this.b},X.Mj=function(){return!0},X.ml=function(){return!0},X.b=0,U(BK,`EObjectWithInverseEList`,559),J(1225,559,ZK,aEe),X.ll=function(){return!0},U(BK,`EObjectWithInverseEList/ManyInverse`,1225),J(635,559,ZK,oEe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;hR(this),Hd(this.e)?(e=this.a,this.a=!1,jT(this.e,new Ux(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(BK,`EObjectWithInverseEList/Unsettable`,635),J(1224,635,ZK,cEe),X.ll=function(){return!0},U(BK,`EObjectWithInverseEList/Unsettable/ManyInverse`,1224),J(767,559,ZK,sEe),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectWithInverseResolvingEList`,767),J(32,767,ZK,pm),X.ll=function(){return!0},U(BK,`EObjectWithInverseResolvingEList/ManyInverse`,32),J(768,635,ZK,lEe),X.nl=function(){return!0},X.Wi=function(e,t){return RP(this,e,H(t,58))},U(BK,`EObjectWithInverseResolvingEList/Unsettable`,768),J(1223,768,ZK,uEe),X.ll=function(){return!0},U(BK,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1223),J(1185,632,ZK),X.Li=function(){return!(this.b&1792)},X.Ni=function(){this.b|=1},X.kl=function(){return!!(this.b&4)},X.Mj=function(){return!!(this.b&40)},X.ll=function(){return!!(this.b&16)},X.ml=function(){return!!(this.b&8)},X.nl=function(){return(this.b&HK)!=0},X.al=function(){return!!(this.b&32)},X.ol=function(){return(this.b&oB)!=0},X.fk=function(e){return this.d?fze(this.d,e):this.Lk().Hk().fk(e)},X.Qj=function(){return this.b&2?!!(this.b&1):this.i!=0},X.Si=function(){return!!(this.b&128)},X.Gk=function(){var e;hR(this),this.b&2&&(Hd(this.e)?(e=!!(this.b&1),this.b&=-2,Bo(this,new Ux(this.e,2,$O(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},X.Yi=function(){return!(this.b&1536)},X.b=0,U(BK,`EcoreEList/Generic`,1185),J(1186,1185,ZK,vPe),X.Lk=function(){return this.a},U(BK,`EcoreEList/Dynamic`,1186),J(765,66,_K,Xfe),X.aj=function(e){return mw(this.a.a,e)},U(BK,`EcoreEMap/1`,765),J(764,83,ZK,Gg),X.Mi=function(e,t){V0e(this.b,H(t,136))},X.Oi=function(e,t){iJe(this.b)},X.Pi=function(e,t,n){var r;++(r=this.b,H(t,136),r).e},X.Qi=function(e,t){YZe(this.b,H(t,136))},X.Ri=function(e,t,n){YZe(this.b,H(n,136)),cd(n)===cd(t)&&H(n,136).Ci(Yxe(H(t,136).ld())),V0e(this.b,H(t,136))},U(BK,`EcoreEMap/DelegateEObjectContainmentEList`,764),J(1220,141,bxt,hKe),U(BK,`EcoreEMap/Unsettable`,1220),J(1221,764,ZK,dEe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;hR(this),Hd(this.e)?(e=this.a,this.a=!1,jT(this.e,new Ux(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(BK,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1221),J(1189,215,rV,wMe),X.a=!1,X.b=!1,U(BK,`EcoreUtil/Copier`,1189),J(759,1,Lz,kRe),X.Nb=function(e){Yg(this,e)},X.Ob=function(){return D$e(this)},X.Pb=function(){var e;return D$e(this),e=this.b,this.b=null,e},X.Qb=function(){this.a.Qb()},U(BK,`EcoreUtil/ProperContentIterator`,759),J(1528,1527,{},Yr);var EHt;U(BK,`EcoreValidator`,1528);var DHt;Lh(BK,`FeatureMapUtil/Validator`),J(1295,1,{2041:1},Ase),X.am=function(e){return!0},U(BK,`FeatureMapUtil/1`,1295),J(773,1,{2041:1},JR),X.am=function(e){var t;return this.c==e||(t=Fp(N_(this.a,e)),t==null?rI(this,e)?(sVe(this.a,e,(lp(),SJ)),!0):(sVe(this.a,e,(lp(),xJ)),!1):t==(lp(),SJ))},X.e=!1;var OHt;U(BK,`FeatureMapUtil/BasicValidator`,773),J(774,45,rV,OSe),U(BK,`FeatureMapUtil/BasicValidator/Cache`,774),J(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},od),X.bd=function(e,t){oit(this.c,this.b,e,t)},X.Fc=function(e){return Y(this.c,this.b,e)},X.cd=function(e,t){return Qct(this.c,this.b,e,t)},X.Gc=function(e){return Ef(this,e)},X.Gi=function(e,t){FWe(this.c,this.b,e,t)},X.Wk=function(e,t){return Fat(this.c,this.b,e,t)},X.$i=function(e){return LL(this.c,this.b,e,!1)},X.Ii=function(){return Mxe(this.c,this.b)},X.Ji=function(){return Jd(this.c,this.b)},X.Ki=function(e){return bHe(this.c,this.b,e)},X.Xk=function(e,t){return STe(this,e,t)},X.$b=function(){Vo(this)},X.Hc=function(e){return bx(this.c,this.b,e)},X.Ic=function(e){return Oqe(this.c,this.b,e)},X.Xb=function(e){return LL(this.c,this.b,e,!0)},X.Fk=function(e){return this},X.dd=function(e){return jze(this.c,this.b,e)},X.dc=function(){return zbe(this)},X.Qj=function(){return!uk(this.c,this.b)},X.Kc=function(){return cWe(this.c,this.b)},X.ed=function(){return lWe(this.c,this.b)},X.fd=function(e){return cQe(this.c,this.b,e)},X.Ti=function(e,t){return zst(this.c,this.b,e,t)},X.Ui=function(e,t){THe(this.c,this.b,e,t)},X.gd=function(e){return S5e(this.c,this.b,e)},X.Mc=function(e){return wot(this.c,this.b,e)},X.hd=function(e,t){return mct(this.c,this.b,e,t)},X.Wb=function(e){LP(this.c,this.b),Ef(this,H(e,15))},X.gc=function(){return sQe(this.c,this.b)},X.Pc=function(){return RLe(this.c,this.b)},X.Qc=function(e){return Mze(this.c,this.b,e)},X.Ib=function(){var e,t=new ac;for(t.a+=`[`,e=Mxe(this.c,this.b);oXe(e);)gd(t,Xf(C0e(e))),oXe(e)&&(t.a+=Az);return t.a+=`]`,t.a},X.Gk=function(){LP(this.c,this.b)},U(BK,`FeatureMapUtil/FeatureEList`,509),J(644,39,MK,zze),X.hj=function(e){return JD(this,e)},X.mj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.jj(),cd(a)===cd(this.c)&&JD(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break;case 3:if(i=e.gj(),i===3&&(a=e.jj(),cd(a)===cd(this.c)&&JD(this,null)==e.hj(null)))return this.d=5,t=new KC(2),SS(t,this.g),SS(t,e.ij()),this.g=t,!0;break;case 5:if(i=e.gj(),i===3&&(a=e.jj(),cd(a)===cd(this.c)&&JD(this,null)==e.hj(null)))return n=H(this.g,16),n.Fc(e.ij()),!0;break;case 4:switch(i=e.gj(),i){case 3:if(a=e.jj(),cd(a)===cd(this.c)&&JD(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break;case 4:if(a=e.jj(),cd(a)===cd(this.c)&&JD(this,null)==e.hj(null))return this.d=6,s=new KC(2),SS(s,this.n),SS(s,e.kj()),this.n=s,o=K(B(F9,1),NB,28,15,[this.o,e.lj()]),this.g=o,!0}break;case 6:if(i=e.gj(),i===4&&(a=e.jj(),cd(a)===cd(this.c)&&JD(this,null)==e.hj(null)))return n=H(this.n,16),n.Fc(e.kj()),o=H(this.g,53),r=vS(F9,NB,28,o.length+1,15,1),JI(o,0,r,0,o.length),r[o.length]=e.lj(),this.g=r,!0}return!1},U(BK,`FeatureMapUtil/FeatureENotificationImpl`,644),J(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},nAe),X.Ol=function(e,t){return Y(this.c,e,t)},X.Pl=function(e,t,n){return Fat(this.c,e,t,n)},X.Ql=function(e,t,n){return ML(this.c,e,t,n)},X.Rl=function(){return this},X.Sl=function(e,t){return IL(this.c,e,t)},X.Tl=function(e){return H(LL(this.c,this.b,e,!1),76).Lk()},X.Ul=function(e){return H(LL(this.c,this.b,e,!1),76).md()},X.Vl=function(){return this.a},X.Wl=function(e){return!uk(this.c,e)},X.Xl=function(e,t){JL(this.c,e,t)},X.Yl=function(e){return MKe(this.c,e)},X.Zl=function(e){k2e(this.c,e)},U(BK,`FeatureMapUtil/FeatureFeatureMap`,564),J(1294,1,yxt,Nbe),X.Fk=function(e){return LL(this.b,this.a,-1,e)},X.Qj=function(){return!uk(this.b,this.a)},X.Wb=function(e){JL(this.b,this.a,e)},X.Gk=function(){LP(this.b,this.a)},U(BK,`FeatureMapUtil/FeatureValue`,1294);var s9,kHt,AHt,c9,jHt,MHt=Lh(kq,`AnyType`);J(680,63,gB,Vme),U(kq,`InvalidDatatypeValueException`,680);var NHt=Lh(kq,Bxt),PHt=Lh(kq,Vxt),FHt=Lh(kq,Hxt),IHt,l9,LHt,u9,RHt,zHt,BHt,VHt,HHt,UHt,WHt,GHt,KHt,qHt,JHt,d9,YHt,f9,p9,XHt,m9,ZHt,QHt,$Ht,h9,g9;J(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},ds),X.Lh=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new kT(this,0)),this.c):(!this.c&&(this.c=new kT(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new kT(this,0)),H(bb(this.c,(wR(),u9)),160)):(!this.c&&(this.c=new kT(this,0)),H(H(bb(this.c,(wR(),u9)),160),220)).Vl();case 2:return n?(!this.b&&(this.b=new kT(this,2)),this.b):(!this.b&&(this.b=new kT(this,2)),this.b.b)}return BS(this,e-M_(this.ii()),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():this.ii(),e),t,n)},X.Uh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new kT(this,0)),gI(this.c,e,n);case 1:return(!this.c&&(this.c=new kT(this,0)),H(H(bb(this.c,(wR(),u9)),160),71)).Xk(e,n);case 2:return!this.b&&(this.b=new kT(this,2)),gI(this.b,e,n)}return r=H(MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,YUe(this),t-M_(this.ii()),e,n)},X.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new kT(this,0)),H(bb(this.c,(wR(),u9)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return hx(this,e-M_(this.ii()),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():this.ii(),e))},X.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new kT(this,0)),m_(this.c,t);return;case 1:(!this.c&&(this.c=new kT(this,0)),H(H(bb(this.c,(wR(),u9)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new kT(this,2)),m_(this.b,t);return}zO(this,e-M_(this.ii()),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():this.ii(),e),t)},X.ii=function(){return wR(),LHt},X.ki=function(e){switch(e){case 0:!this.c&&(this.c=new kT(this,0)),hR(this.c);return;case 1:(!this.c&&(this.c=new kT(this,0)),H(bb(this.c,(wR(),u9)),160)).$b();return;case 2:!this.b&&(this.b=new kT(this,2)),hR(this.b);return}BD(this,e-M_(this.ii()),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():this.ii(),e))},X.Ib=function(){var e;return this.j&4?$P(this):(e=new Zf($P(this)),e.a+=` (mixed: `,hd(e,this.c),e.a+=`, anyAttribute: `,hd(e,this.b),e.a+=`)`,e.a)},U(Aq,`AnyTypeImpl`,844),J(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Rse),X.Lh=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return BS(this,e-M_((wR(),d9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():d9,e),t,n)},X.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return hx(this,e-M_((wR(),d9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():d9,e))},X.bi=function(e,t){switch(e){case 0:sue(this,Lp(t));return;case 1:cue(this,Lp(t));return}zO(this,e-M_((wR(),d9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():d9,e),t)},X.ii=function(){return wR(),d9},X.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}BD(this,e-M_((wR(),d9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():d9,e))},X.Ib=function(){var e;return this.j&4?$P(this):(e=new Zf($P(this)),e.a+=` (data: `,gd(e,this.a),e.a+=`, target: `,gd(e,this.b),e.a+=`)`,e.a)},X.a=null,X.b=null,U(Aq,`ProcessingInstructionImpl`,681),J(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},ome),X.Lh=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new kT(this,0)),this.c):(!this.c&&(this.c=new kT(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new kT(this,0)),H(bb(this.c,(wR(),u9)),160)):(!this.c&&(this.c=new kT(this,0)),H(H(bb(this.c,(wR(),u9)),160),220)).Vl();case 2:return n?(!this.b&&(this.b=new kT(this,2)),this.b):(!this.b&&(this.b=new kT(this,2)),this.b.b);case 3:return!this.c&&(this.c=new kT(this,0)),Lp(IL(this.c,(wR(),p9),!0));case 4:return pEe(this.a,(!this.c&&(this.c=new kT(this,0)),Lp(IL(this.c,(wR(),p9),!0))));case 5:return this.a}return BS(this,e-M_((wR(),f9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():f9,e),t,n)},X.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new kT(this,0)),H(bb(this.c,(wR(),u9)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new kT(this,0)),Lp(IL(this.c,(wR(),p9),!0))!=null;case 4:return pEe(this.a,(!this.c&&(this.c=new kT(this,0)),Lp(IL(this.c,(wR(),p9),!0))))!=null;case 5:return!!this.a}return hx(this,e-M_((wR(),f9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():f9,e))},X.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new kT(this,0)),m_(this.c,t);return;case 1:(!this.c&&(this.c=new kT(this,0)),H(H(bb(this.c,(wR(),u9)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new kT(this,2)),m_(this.b,t);return;case 3:LLe(this,Lp(t));return;case 4:LLe(this,fEe(this.a,t));return;case 5:Ni(this,H(t,156));return}zO(this,e-M_((wR(),f9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():f9,e),t)},X.ii=function(){return wR(),f9},X.ki=function(e){switch(e){case 0:!this.c&&(this.c=new kT(this,0)),hR(this.c);return;case 1:(!this.c&&(this.c=new kT(this,0)),H(bb(this.c,(wR(),u9)),160)).$b();return;case 2:!this.b&&(this.b=new kT(this,2)),hR(this.b);return;case 3:!this.c&&(this.c=new kT(this,0)),JL(this.c,(wR(),p9),null);return;case 4:LLe(this,fEe(this.a,null));return;case 5:this.a=null;return}BD(this,e-M_((wR(),f9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():f9,e))},U(Aq,`SimpleAnyTypeImpl`,682),J(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},sme),X.Lh=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new kT(this,0)),this.a):(!this.a&&(this.a=new kT(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new kS((bz(),t9),i9,this,1)),this.b):(!this.b&&(this.b=new kS((bz(),t9),i9,this,1)),gS(this.b));case 2:return n?(!this.c&&(this.c=new kS((bz(),t9),i9,this,2)),this.c):(!this.c&&(this.c=new kS((bz(),t9),i9,this,2)),gS(this.c));case 3:return!this.a&&(this.a=new kT(this,0)),bb(this.a,(wR(),ZHt));case 4:return!this.a&&(this.a=new kT(this,0)),bb(this.a,(wR(),QHt));case 5:return!this.a&&(this.a=new kT(this,0)),bb(this.a,(wR(),h9));case 6:return!this.a&&(this.a=new kT(this,0)),bb(this.a,(wR(),g9))}return BS(this,e-M_((wR(),m9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():m9,e),t,n)},X.Uh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new kT(this,0)),gI(this.a,e,n);case 1:return!this.b&&(this.b=new kS((bz(),t9),i9,this,1)),xm(this.b,e,n);case 2:return!this.c&&(this.c=new kS((bz(),t9),i9,this,2)),xm(this.c,e,n);case 5:return!this.a&&(this.a=new kT(this,0)),STe(bb(this.a,(wR(),h9)),e,n)}return r=H(MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():(wR(),m9),t),69),r.wk().Ak(this,YUe(this),t-M_((wR(),m9)),e,n)},X.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new kT(this,0)),!zbe(bb(this.a,(wR(),ZHt)));case 4:return!this.a&&(this.a=new kT(this,0)),!zbe(bb(this.a,(wR(),QHt)));case 5:return!this.a&&(this.a=new kT(this,0)),!zbe(bb(this.a,(wR(),h9)));case 6:return!this.a&&(this.a=new kT(this,0)),!zbe(bb(this.a,(wR(),g9)))}return hx(this,e-M_((wR(),m9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():m9,e))},X.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new kT(this,0)),m_(this.a,t);return;case 1:!this.b&&(this.b=new kS((bz(),t9),i9,this,1)),ST(this.b,t);return;case 2:!this.c&&(this.c=new kS((bz(),t9),i9,this,2)),ST(this.c,t);return;case 3:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),ZHt))),!this.a&&(this.a=new kT(this,0)),Ef(bb(this.a,ZHt),H(t,16));return;case 4:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),QHt))),!this.a&&(this.a=new kT(this,0)),Ef(bb(this.a,QHt),H(t,16));return;case 5:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),h9))),!this.a&&(this.a=new kT(this,0)),Ef(bb(this.a,h9),H(t,16));return;case 6:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),g9))),!this.a&&(this.a=new kT(this,0)),Ef(bb(this.a,g9),H(t,16));return}zO(this,e-M_((wR(),m9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():m9,e),t)},X.ii=function(){return wR(),m9},X.ki=function(e){switch(e){case 0:!this.a&&(this.a=new kT(this,0)),hR(this.a);return;case 1:!this.b&&(this.b=new kS((bz(),t9),i9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new kS((bz(),t9),i9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),ZHt)));return;case 4:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),QHt)));return;case 5:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),h9)));return;case 6:!this.a&&(this.a=new kT(this,0)),Vo(bb(this.a,(wR(),g9)));return}BD(this,e-M_((wR(),m9)),MC(this.j&2?(!this.k&&(this.k=new Jr),this.k).Nk():m9,e))},X.Ib=function(){var e;return this.j&4?$P(this):(e=new Zf($P(this)),e.a+=` (mixed: `,hd(e,this.a),e.a+=`)`,e.a)},U(Aq,`XMLTypeDocumentRootImpl`,683),J(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Sr),X.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:FO(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Lp(t);case 6:return Uwe(H(t,195));case 12:case 47:case 49:case 11:return Aut(this,e,t);case 13:return t==null?null:eR(H(t,247));case 15:case 14:return t==null?null:mMe(z(Ip(t)));case 17:return Y3e((wR(),t));case 18:return Y3e(t);case 21:case 20:return t==null?null:hMe(H(t,161).a);case 27:return Wwe(H(t,195));case 30:return A2e((wR(),H(t,15)));case 31:return A2e(H(t,15));case 40:return Kwe((wR(),t));case 42:return X3e((wR(),t));case 43:return X3e(t);case 59:case 48:return Gwe((wR(),t));default:throw R(new Ks(XG+e.xe()+ZG))}},X.si=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=qC(e),n?wA(n.vi(),e):-1)),e.G){case 0:return t=new ds,t;case 1:return r=new Rse,r;case 2:return i=new ome,i;case 3:return a=new sme,a;default:throw R(new Ks(obt+e.zb+ZG))}},X.ti=function(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return e0e(t);case 8:case 7:return t==null?null:c6e(t);case 9:return t==null?null:cC(AI((r=VL(t,!0),r.length>0&&(Mb(0,r.length),r.charCodeAt(0)==43)?(Mb(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:cC(AI((i=VL(t,!0),i.length>0&&(Mb(0,i.length),i.charCodeAt(0)==43)?(Mb(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return Lp(lz(this,(wR(),BHt),t));case 12:return Lp(lz(this,(wR(),VHt),t));case 13:return t==null?null:new xge(VL(t,!0));case 15:case 14:return nnt(t);case 16:return Lp(lz(this,(wR(),HHt),t));case 17:return R$e((wR(),t));case 18:return R$e(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return VL(t,!0);case 21:case 20:return hnt(t);case 22:return Lp(lz(this,(wR(),UHt),t));case 23:return Lp(lz(this,(wR(),WHt),t));case 24:return Lp(lz(this,(wR(),GHt),t));case 25:return Lp(lz(this,(wR(),KHt),t));case 26:return Lp(lz(this,(wR(),qHt),t));case 27:return A1e(t);case 30:return z$e((wR(),t));case 31:return z$e(t);case 32:return t==null?null:kD(AI((d=VL(t,!0),d.length>0&&(Mb(0,d.length),d.charCodeAt(0)==43)?(Mb(1,d.length+1),d.substr(1)):d),hB,Ez));case 33:return t==null?null:new nf((f=VL(t,!0),f.length>0&&(Mb(0,f.length),f.charCodeAt(0)==43)?(Mb(1,f.length+1),f.substr(1)):f));case 34:return t==null?null:kD(AI((p=VL(t,!0),p.length>0&&(Mb(0,p.length),p.charCodeAt(0)==43)?(Mb(1,p.length+1),p.substr(1)):p),hB,Ez));case 36:return t==null?null:Xk(ez((m=VL(t,!0),m.length>0&&(Mb(0,m.length),m.charCodeAt(0)==43)?(Mb(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Xk(ez((h=VL(t,!0),h.length>0&&(Mb(0,h.length),h.charCodeAt(0)==43)?(Mb(1,h.length+1),h.substr(1)):h)));case 40:return HA((wR(),t));case 42:return B$e((wR(),t));case 43:return B$e(t);case 44:return t==null?null:new nf((g=VL(t,!0),g.length>0&&(Mb(0,g.length),g.charCodeAt(0)==43)?(Mb(1,g.length+1),g.substr(1)):g));case 45:return t==null?null:new nf((_=VL(t,!0),_.length>0&&(Mb(0,_.length),_.charCodeAt(0)==43)?(Mb(1,_.length+1),_.substr(1)):_));case 46:return VL(t,!1);case 47:return Lp(lz(this,(wR(),JHt),t));case 59:case 48:return VA((wR(),t));case 49:return Lp(lz(this,(wR(),YHt),t));case 50:return t==null?null:AD(AI((v=VL(t,!0),v.length>0&&(Mb(0,v.length),v.charCodeAt(0)==43)?(Mb(1,v.length+1),v.substr(1)):v),uq,32767)<<16>>16);case 51:return t==null?null:AD(AI((a=VL(t,!0),a.length>0&&(Mb(0,a.length),a.charCodeAt(0)==43)?(Mb(1,a.length+1),a.substr(1)):a),uq,32767)<<16>>16);case 53:return Lp(lz(this,(wR(),XHt),t));case 55:return t==null?null:AD(AI((o=VL(t,!0),o.length>0&&(Mb(0,o.length),o.charCodeAt(0)==43)?(Mb(1,o.length+1),o.substr(1)):o),uq,32767)<<16>>16);case 56:return t==null?null:AD(AI((s=VL(t,!0),s.length>0&&(Mb(0,s.length),s.charCodeAt(0)==43)?(Mb(1,s.length+1),s.substr(1)):s),uq,32767)<<16>>16);case 57:return t==null?null:Xk(ez((l=VL(t,!0),l.length>0&&(Mb(0,l.length),l.charCodeAt(0)==43)?(Mb(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Xk(ez((u=VL(t,!0),u.length>0&&(Mb(0,u.length),u.charCodeAt(0)==43)?(Mb(1,u.length+1),u.substr(1)):u)));case 60:return t==null?null:kD(AI((n=VL(t,!0),n.length>0&&(Mb(0,n.length),n.charCodeAt(0)==43)?(Mb(1,n.length+1),n.substr(1)):n),hB,Ez));case 61:return t==null?null:kD(AI(VL(t,!0),hB,Ez));default:throw R(new Ks(XG+e.xe()+ZG))}};var eUt,tUt,nUt,rUt;U(Aq,`XMLTypeFactoryImpl`,2028),J(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},mNe),X.N=!1,X.O=!1;var iUt=!1;U(Aq,`XMLTypePackageImpl`,594),J(1961,1,{851:1},jse),X.Kk=function(){return Pst(),SUt},U(Aq,`XMLTypePackageImpl/1`,1961),J(1970,1,hq,Mse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/10`,1970),J(1971,1,hq,Nse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/11`,1971),J(1972,1,hq,Cr),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/12`,1972),J(1973,1,hq,Pse),X.fk=function(e){return dd(e)},X.gk=function(e){return vS(OJ,Kz,345,e,7,1)},U(Aq,`XMLTypePackageImpl/13`,1973),J(1974,1,hq,Fse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/14`,1974),J(1975,1,hq,Ise),X.fk=function(e){return V(e,15)},X.gk=function(e){return vS(aJ,vH,15,e,0,1)},U(Aq,`XMLTypePackageImpl/15`,1975),J(1976,1,hq,wr),X.fk=function(e){return V(e,15)},X.gk=function(e){return vS(aJ,vH,15,e,0,1)},U(Aq,`XMLTypePackageImpl/16`,1976),J(1977,1,hq,Lse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/17`,1977),J(1978,1,hq,Tr),X.fk=function(e){return V(e,161)},X.gk=function(e){return vS(kJ,Kz,161,e,0,1)},U(Aq,`XMLTypePackageImpl/18`,1978),J(1979,1,hq,zse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/19`,1979),J(1962,1,hq,Bse),X.fk=function(e){return V(e,857)},X.gk=function(e){return vS(MHt,jz,857,e,0,1)},U(Aq,`XMLTypePackageImpl/2`,1962),J(1980,1,hq,Vse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/20`,1980),J(1981,1,hq,Hse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/21`,1981),J(1982,1,hq,Use),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/22`,1982),J(1983,1,hq,Wse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/23`,1983),J(1984,1,hq,Gse),X.fk=function(e){return V(e,195)},X.gk=function(e){return vS(R9,Kz,195,e,0,2)},U(Aq,`XMLTypePackageImpl/24`,1984),J(1985,1,hq,Kse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/25`,1985),J(1986,1,hq,Er),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/26`,1986),J(1987,1,hq,qse),X.fk=function(e){return V(e,15)},X.gk=function(e){return vS(aJ,vH,15,e,0,1)},U(Aq,`XMLTypePackageImpl/27`,1987),J(1988,1,hq,Dr),X.fk=function(e){return V(e,15)},X.gk=function(e){return vS(aJ,vH,15,e,0,1)},U(Aq,`XMLTypePackageImpl/28`,1988),J(1989,1,hq,Jse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/29`,1989),J(1963,1,hq,Or),X.fk=function(e){return V(e,681)},X.gk=function(e){return vS(NHt,jz,2119,e,0,1)},U(Aq,`XMLTypePackageImpl/3`,1963),J(1990,1,hq,Yse),X.fk=function(e){return V(e,17)},X.gk=function(e){return vS(AJ,Kz,17,e,0,1)},U(Aq,`XMLTypePackageImpl/30`,1990),J(1991,1,hq,kr),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/31`,1991),J(1992,1,hq,Xse),X.fk=function(e){return V(e,168)},X.gk=function(e){return vS(jJ,Kz,168,e,0,1)},U(Aq,`XMLTypePackageImpl/32`,1992),J(1993,1,hq,Zse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/33`,1993),J(1994,1,hq,Qse),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/34`,1994),J(1995,1,hq,$se),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/35`,1995),J(1996,1,hq,ece),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/36`,1996),J(1997,1,hq,tce),X.fk=function(e){return V(e,15)},X.gk=function(e){return vS(aJ,vH,15,e,0,1)},U(Aq,`XMLTypePackageImpl/37`,1997),J(1998,1,hq,nce),X.fk=function(e){return V(e,15)},X.gk=function(e){return vS(aJ,vH,15,e,0,1)},U(Aq,`XMLTypePackageImpl/38`,1998),J(1999,1,hq,rce),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/39`,1999),J(1964,1,hq,Ar),X.fk=function(e){return V(e,682)},X.gk=function(e){return vS(PHt,jz,2120,e,0,1)},U(Aq,`XMLTypePackageImpl/4`,1964),J(2e3,1,hq,jr),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/40`,2e3),J(2001,1,hq,Mr),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/41`,2001),J(2002,1,hq,ice),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/42`,2002),J(2003,1,hq,ace),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/43`,2003),J(2004,1,hq,oce),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/44`,2004),J(2005,1,hq,Nr),X.fk=function(e){return V(e,191)},X.gk=function(e){return vS(NJ,Kz,191,e,0,1)},U(Aq,`XMLTypePackageImpl/45`,2005),J(2006,1,hq,sce),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/46`,2006),J(2007,1,hq,cce),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/47`,2007),J(2008,1,hq,Pr),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/48`,2008),J(2009,1,hq,lce),X.fk=function(e){return V(e,191)},X.gk=function(e){return vS(NJ,Kz,191,e,0,1)},U(Aq,`XMLTypePackageImpl/49`,2009),J(1965,1,hq,uce),X.fk=function(e){return V(e,683)},X.gk=function(e){return vS(FHt,jz,2121,e,0,1)},U(Aq,`XMLTypePackageImpl/5`,1965),J(2010,1,hq,Fr),X.fk=function(e){return V(e,168)},X.gk=function(e){return vS(jJ,Kz,168,e,0,1)},U(Aq,`XMLTypePackageImpl/50`,2010),J(2011,1,hq,dce),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/51`,2011),J(2012,1,hq,fce),X.fk=function(e){return V(e,17)},X.gk=function(e){return vS(AJ,Kz,17,e,0,1)},U(Aq,`XMLTypePackageImpl/52`,2012),J(1966,1,hq,Ir),X.fk=function(e){return ld(e)},X.gk=function(e){return vS(PJ,Kz,2,e,6,1)},U(Aq,`XMLTypePackageImpl/6`,1966),J(1967,1,hq,Lr),X.fk=function(e){return V(e,195)},X.gk=function(e){return vS(R9,Kz,195,e,0,2)},U(Aq,`XMLTypePackageImpl/7`,1967),J(1968,1,hq,pce),X.fk=function(e){return ud(e)},X.gk=function(e){return vS(CJ,Kz,485,e,8,1)},U(Aq,`XMLTypePackageImpl/8`,1968),J(1969,1,hq,mce),X.fk=function(e){return V(e,222)},X.gk=function(e){return vS(wJ,Kz,222,e,0,1)},U(Aq,`XMLTypePackageImpl/9`,1969);var _9,v9,y9,b9,$;J(55,63,gB,$s),U(Uq,`RegEx/ParseException`,55),J(836,1,{},Rr),X.bm=function(e){return en*16)throw R(new $s(Sz((gf(),txt))));n=n*16+i}while(1);if(this.a!=125)throw R(new $s(Sz((gf(),EK))));if(n>Wq)throw R(new $s(Sz((gf(),nxt))));e=n}else{if(i=0,this.c!=0||(i=PA(this.a))<0||(n=i,pz(this),this.c!=0||(i=PA(this.a))<0))throw R(new $s(Sz((gf(),TK))));n=n*16+i,e=n}break;case 117:if(r=0,pz(this),this.c!=0||(r=PA(this.a))<0||(t=r,pz(this),this.c!=0||(r=PA(this.a))<0)||(t=t*16+r,pz(this),this.c!=0||(r=PA(this.a))<0)||(t=t*16+r,pz(this),this.c!=0||(r=PA(this.a))<0))throw R(new $s(Sz((gf(),TK))));t=t*16+r,e=t;break;case 118:if(pz(this),this.c!=0||(r=PA(this.a))<0||(t=r,pz(this),this.c!=0||(r=PA(this.a))<0)||(t=t*16+r,pz(this),this.c!=0||(r=PA(this.a))<0)||(t=t*16+r,pz(this),this.c!=0||(r=PA(this.a))<0)||(t=t*16+r,pz(this),this.c!=0||(r=PA(this.a))<0)||(t=t*16+r,pz(this),this.c!=0||(r=PA(this.a))<0))throw R(new $s(Sz((gf(),TK))));if(t=t*16+r,t>Wq)throw R(new $s(Sz((gf(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw R(new $s(Sz((gf(),rxt))))}return e},X.dm=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?nz(`Nd`,!0):(vz(),sUt);break;case 68:n=(this.e&32)==32?nz(`Nd`,!1):(vz(),fUt);break;case 119:n=(this.e&32)==32?nz(`IsWord`,!0):(vz(),j9);break;case 87:n=(this.e&32)==32?nz(`IsWord`,!1):(vz(),mUt);break;case 115:n=(this.e&32)==32?nz(`IsSpace`,!0):(vz(),k9);break;case 83:n=(this.e&32)==32?nz(`IsSpace`,!1):(vz(),pUt);break;default:throw R(new Ns((t=e,nSt+t.toString(16))))}return n},X.em=function(e){var t,n,r,i,a,o,s,l,u,d,f,p;for(this.b=1,pz(this),t=null,this.c==0&&this.a==94?(pz(this),e?d=(vz(),vz(),++M9,new Bb(5)):(t=(vz(),vz(),++M9,new Bb(4)),PF(t,0,Wq),d=(++M9,new Bb(4)))):d=(vz(),vz(),++M9,new Bb(4)),i=!0;(p=this.c)!=1&&(p!=0||this.a!=93||i);){if(i=!1,n=this.a,r=!1,p==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:UL(d,this.dm(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.um(d,n),n<0&&(r=!0);break;case 112:case 80:if(f=vP(this,n),!f)throw R(new $s(Sz((gf(),Kbt))));UL(d,f),r=!0;break;default:n=this.cm()}else if(p==20){if(o=_p(this.i,58,this.d),o<0)throw R(new $s(Sz((gf(),qbt))));if(s=!0,kv(this.i,this.d)==94&&(++this.d,s=!1),a=Dy(this.i,this.d,o),l=wS(a,s,(this.e&512)==512),!l)throw R(new $s(Sz((gf(),Jbt))));if(UL(d,l),r=!0,o+1>=this.j||kv(this.i,o+1)!=93)throw R(new $s(Sz((gf(),qbt))));this.d=o+2}if(pz(this),!r){if(this.c!=0||this.a!=45)PF(d,n,n);else{if(pz(this),(p=this.c)==1)throw R(new $s(Sz((gf(),CK))));p==0&&this.a==93?(PF(d,n,n),PF(d,45,45)):(u=this.a,p==10&&(u=this.cm()),pz(this),PF(d,n,u))}}(this.e&oB)==oB&&this.c==0&&this.a==44&&pz(this)}if(this.c==1)throw R(new $s(Sz((gf(),CK))));return t&&(LR(t,d),d=t),QP(d),cR(d),this.b=0,pz(this),d},X.fm=function(){for(var e,t,n=this.em(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(pz(this),this.c!=9)throw R(new $s(Sz((gf(),wK))));if(t=this.em(!1),r==4)UL(n,t);else if(e==45)LR(n,t);else if(e==38)hut(n,t);else throw R(new Ns(`ASSERT`))}else throw R(new $s(Sz((gf(),$bt))));return pz(this),n},X.gm=function(){var e=this.a-48,t=(vz(),vz(),++M9,new Iy(12,null,e));return!this.g&&(this.g=new Go),zo(this.g,new Zfe(e)),pz(this),t},X.hm=function(){return pz(this),vz(),gUt},X.im=function(){return pz(this),vz(),hUt},X.jm=function(){throw R(new $s(Sz((gf(),DK))))},X.km=function(){throw R(new $s(Sz((gf(),DK))))},X.lm=function(){return pz(this),RYe()},X.mm=function(){return pz(this),vz(),_Ut},X.nm=function(){return pz(this),vz(),yUt},X.om=function(){var e;if(this.d>=this.j||((e=kv(this.i,this.d++))&65504)!=64)throw R(new $s(Sz((gf(),Ubt))));return pz(this),vz(),vz(),++M9,new rg(0,e-64)},X.pm=function(){return pz(this),rct()},X.qm=function(){return pz(this),vz(),bUt},X.rm=function(){var e=(vz(),vz(),++M9,new rg(0,105));return pz(this),e},X.sm=function(){return pz(this),vz(),vUt},X.tm=function(){return pz(this),vz(),A9},X.um=function(e,t){return this.cm()},X.vm=function(){return pz(this),vz(),uUt},X.wm=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw R(new $s(Sz((gf(),Bbt))));if(r=-1,t=null,e=kv(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new Go),zo(this.g,new Zfe(r)),++this.d,kv(this.i,this.d)!=41)throw R(new $s(Sz((gf(),xK))));++this.d}else switch(e==63&&--this.d,pz(this),t=sz(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw R(new $s(Sz((gf(),xK))));break;default:throw R(new $s(Sz((gf(),Vbt))))}if(pz(this),i=Bk(this),n=null,i.e==2){if(i.Pm()!=2)throw R(new $s(Sz((gf(),Hbt))));n=i.Lm(1),i=i.Lm(0)}if(this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),vz(),vz(),++M9,new nWe(r,t,i,n)},X.xm=function(){return pz(this),vz(),dUt},X.ym=function(){var e;if(pz(this),e=Jg(24,Bk(this)),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.zm=function(){var e;if(pz(this),e=Jg(20,Bk(this)),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.Am=function(){var e;if(pz(this),e=Jg(22,Bk(this)),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.Bm=function(){var e=0,t,n=0,r,i;for(t=-1;this.d=this.j)throw R(new $s(Sz((gf(),Rbt))));if(t==45){for(++this.d;this.d=this.j)throw R(new $s(Sz((gf(),Rbt))))}if(t==58){if(++this.d,pz(this),r=kMe(Bk(this),e,n),this.c!=7)throw R(new $s(Sz((gf(),xK))));pz(this)}else if(t==41)++this.d,pz(this),r=kMe(Bk(this),e,n);else throw R(new $s(Sz((gf(),zbt))));return r},X.Cm=function(){var e;if(pz(this),e=Jg(21,Bk(this)),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.Dm=function(){var e;if(pz(this),e=Jg(23,Bk(this)),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.Em=function(){var e,t;if(pz(this),e=this.f++,t=Vje(Bk(this),e),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),t},X.Fm=function(){var e;if(pz(this),e=Vje(Bk(this),0),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.Gm=function(e){return pz(this),this.c==5?(pz(this),ng(e,(vz(),vz(),++M9,new Tx(9,e)))):ng(e,(vz(),vz(),++M9,new Tx(3,e)))},X.Hm=function(e){var t;return pz(this),t=(vz(),vz(),++M9,new pf(2)),this.c==5?(pz(this),dR(t,D9),dR(t,e)):(dR(t,e),dR(t,D9)),t},X.Im=function(e){return pz(this),this.c==5?(pz(this),vz(),vz(),++M9,new Tx(9,e)):(vz(),vz(),++M9,new Tx(3,e))},X.a=0,X.b=0,X.c=0,X.d=0,X.e=0,X.f=1,X.g=null,X.j=0,U(Uq,`RegEx/RegexParser`,836),J(1947,836,{},cme),X.bm=function(e){return!1},X.cm=function(){return Zit(this)},X.dm=function(e){return jI(e)},X.em=function(e){return ypt(this)},X.fm=function(){throw R(new $s(Sz((gf(),DK))))},X.gm=function(){throw R(new $s(Sz((gf(),DK))))},X.hm=function(){throw R(new $s(Sz((gf(),DK))))},X.im=function(){throw R(new $s(Sz((gf(),DK))))},X.jm=function(){return pz(this),jI(67)},X.km=function(){return pz(this),jI(73)},X.lm=function(){throw R(new $s(Sz((gf(),DK))))},X.mm=function(){throw R(new $s(Sz((gf(),DK))))},X.nm=function(){throw R(new $s(Sz((gf(),DK))))},X.om=function(){return pz(this),jI(99)},X.pm=function(){throw R(new $s(Sz((gf(),DK))))},X.qm=function(){throw R(new $s(Sz((gf(),DK))))},X.rm=function(){return pz(this),jI(105)},X.sm=function(){throw R(new $s(Sz((gf(),DK))))},X.tm=function(){throw R(new $s(Sz((gf(),DK))))},X.um=function(e,t){return UL(e,jI(t)),-1},X.vm=function(){return pz(this),vz(),vz(),++M9,new rg(0,94)},X.wm=function(){throw R(new $s(Sz((gf(),DK))))},X.xm=function(){return pz(this),vz(),vz(),++M9,new rg(0,36)},X.ym=function(){throw R(new $s(Sz((gf(),DK))))},X.zm=function(){throw R(new $s(Sz((gf(),DK))))},X.Am=function(){throw R(new $s(Sz((gf(),DK))))},X.Bm=function(){throw R(new $s(Sz((gf(),DK))))},X.Cm=function(){throw R(new $s(Sz((gf(),DK))))},X.Dm=function(){throw R(new $s(Sz((gf(),DK))))},X.Em=function(){var e;if(pz(this),e=Vje(Bk(this),0),this.c!=7)throw R(new $s(Sz((gf(),xK))));return pz(this),e},X.Fm=function(){throw R(new $s(Sz((gf(),DK))))},X.Gm=function(e){return pz(this),ng(e,(vz(),vz(),++M9,new Tx(3,e)))},X.Hm=function(e){var t;return pz(this),t=(vz(),vz(),++M9,new pf(2)),dR(t,e),dR(t,D9),t},X.Im=function(e){return pz(this),vz(),vz(),++M9,new Tx(3,e)};var x9=null,S9=null;U(Uq,`RegEx/ParserForXMLSchema`,1947),J(122,1,Xq,po),X.Jm=function(e){throw R(new Ns(`Not supported.`))},X.Km=function(){return-1},X.Lm=function(e){return null},X.Mm=function(){return null},X.Nm=function(e){},X.Om=function(e){},X.Pm=function(){return 0},X.Ib=function(){return this.Qm(0)},X.Qm=function(e){return this.e==11?`.`:``},X.e=0;var aUt,C9,w9,oUt,T9,E9=null,sUt,cUt=null,lUt,D9,O9=null,uUt,dUt,fUt,pUt,mUt,hUt,k9,gUt,A9,_Ut,vUt,j9,yUt,bUt,M9=0,xUt=U(Uq,`RegEx/Token`,122);J(138,122,{3:1,138:1,122:1},Bb),X.Qm=function(e){var t,n,r;if(this.e==4){if(this==lUt)n=`.`;else if(this==sUt)n=`\\d`;else if(this==j9)n=`\\w`;else if(this==k9)n=`\\s`;else{for(r=new ac,r.a+=`[`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?gd(r,iL(this.b[t])):(gd(r,iL(this.b[t])),r.a+=`-`,gd(r,iL(this.b[t+1])));r.a+=`]`,n=r.a}}else if(this==fUt)n=`\\D`;else if(this==mUt)n=`\\W`;else if(this==pUt)n=`\\S`;else{for(r=new ac,r.a+=`[^`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?gd(r,iL(this.b[t])):(gd(r,iL(this.b[t])),r.a+=`-`,gd(r,iL(this.b[t+1])));r.a+=`]`,n=r.a}return n},X.a=!1,X.c=!1,U(Uq,`RegEx/RangeToken`,138),J(592,1,{592:1},Zfe),X.a=0,U(Uq,`RegEx/RegexParser/ReferencePosition`,592),J(591,1,{3:1,591:1},Rge),X.Fb=function(e){var t;return e==null||!V(e,591)?!1:(t=H(e,591),hm(this.b,t.b)&&this.a==t.a)},X.Hb=function(){return KE(this.b+`/`+Trt(this.a))},X.Ib=function(){return this.c.Qm(this.a)},X.a=0,U(Uq,`RegEx/RegularExpression`,591),J(228,122,Xq,rg),X.Km=function(){return this.a},X.Qm=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+NTe(this.a&xB);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=XB?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+Dy(n,n.length-6,n.length)):r=``+NTe(this.a&xB)}break;case 8:r=this==uUt||this==dUt?``+NTe(this.a&xB):`\\`+NTe(this.a&xB);break;default:r=null}return r},X.a=0,U(Uq,`RegEx/Token/CharToken`,228),J(318,122,Xq,Tx),X.Lm=function(e){return this.a},X.Nm=function(e){this.b=e},X.Om=function(e){this.c=e},X.Pm=function(){return 1},X.Qm=function(e){var t;if(this.e==3){if(this.c<0&&this.b<0)t=this.a.Qm(e)+`*`;else if(this.c==this.b)t=this.a.Qm(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+`{`+this.c+`,}`;else throw R(new Ns(`Token#toString(): CLOSURE `+this.c+Az+this.b))}else if(this.c<0&&this.b<0)t=this.a.Qm(e)+`*?`;else if(this.c==this.b)t=this.a.Qm(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+`{`+this.c+`,}?`;else throw R(new Ns(`Token#toString(): NONGREEDYCLOSURE `+this.c+Az+this.b));return t},X.b=0,X.c=0,U(Uq,`RegEx/Token/ClosureToken`,318),J(837,122,Xq,p_),X.Lm=function(e){return e==0?this.a:this.b},X.Pm=function(){return 2},X.Qm=function(e){return this.b.e==3&&this.b.Lm(0)==this.a?this.a.Qm(e)+`+`:this.b.e==9&&this.b.Lm(0)==this.a?this.a.Qm(e)+`+?`:this.a.Qm(e)+(``+this.b.Qm(e))},U(Uq,`RegEx/Token/ConcatToken`,837),J(1945,122,Xq,nWe),X.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw R(new Ns(`Internal Error: `+e))},X.Pm=function(){return this.b?2:1},X.Qm=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},X.c=0,U(Uq,`RegEx/Token/ConditionToken`,1945),J(1946,122,Xq,oLe),X.Lm=function(e){return this.b},X.Pm=function(){return 1},X.Qm=function(e){return`(?`+(this.a==0?``:Trt(this.a))+(this.c==0?``:Trt(this.c))+`:`+this.b.Qm(e)+`)`},X.a=0,X.c=0,U(Uq,`RegEx/Token/ModifierToken`,1946),J(838,122,Xq,KMe),X.Lm=function(e){return this.a},X.Pm=function(){return 1},X.Qm=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Qm(e)+`)`:`(`+this.a.Qm(e)+`)`;break;case 20:t=`(?=`+this.a.Qm(e)+`)`;break;case 21:t=`(?!`+this.a.Qm(e)+`)`;break;case 22:t=`(?<=`+this.a.Qm(e)+`)`;break;case 23:t=`(?`+this.a.Qm(e)+`)`}return t},X.b=0,U(Uq,`RegEx/Token/ParenToken`,838),J(530,122,{3:1,122:1,530:1},Iy),X.Mm=function(){return this.b},X.Qm=function(e){return this.e==12?`\\`+this.a:Ltt(this.b)},X.a=0,U(Uq,`RegEx/Token/StringToken`,530),J(477,122,Xq,pf),X.Jm=function(e){dR(this,e)},X.Lm=function(e){return H(J_(this.a,e),122)},X.Pm=function(){return this.a?this.a.a.c.length:0},X.Qm=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=H(J_(this.a,0),122),n=H(J_(this.a,1),122),i=n.e==3&&n.Lm(0)==t?t.Qm(e)+`+`:n.e==9&&n.Lm(0)==t?t.Qm(e)+`+?`:t.Qm(e)+(``+n.Qm(e));else{for(a=new ac,r=0;r=this.c.b:this.a<=this.c.b},X.Sb=function(){return this.b>0},X.Tb=function(){return this.b},X.Vb=function(){return this.b-1},X.Qb=function(){throw R(new Ys(fSt))},X.a=0,X.b=0,U(uSt,`ExclusiveRange/RangeIterator`,258);var P9=cv(WK,`C`),F9=cv(qK,`I`),I9=cv(wz,`Z`),L9=cv(JK,`J`),R9=cv(UK,`B`),z9=cv(GK,`D`),B9=cv(KK,`F`),V9=cv(YK,`S`),CUt=Lh(`org.eclipse.elk.core.labels`,`ILabelManager`),wUt=Lh(oK,`DiagnosticChain`),TUt=Lh(Pxt,`ResourceSet`),EUt=U(oK,`InvocationTargetException`,null),DUt=(ehe(),BBe),OUt=OUt=B3e;fKe(yo),$Ge(`permProps`,[[[`locale`,`default`],[pSt,`gecko1_8`]],[[`locale`,`default`],[pSt,`safari`]]]),OUt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function a(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(t){a(n,t);function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r(this,n);var a=Object.assign({},t),o=!1;try{e.resolve(`web-worker`),o=!0}catch{}if(t.workerUrl){if(o){var s=e(`web-worker`);a.workerFactory=function(e){return new s(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +`)}return[]}function Z2e(e){var t=(cKe(),WSt);return t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function Q2e(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=uE(r.Math.max(8,i))<<1,e.b==0?Eo(e.a,n):(t=im(e.a,n),aqe(e,t,i),e.a=t,e.b=0),e.c=i)}function $2e(e,t){var n=e.b;return n.pf((pz(),$6))?n.ag()==(WR(),U5)?-n.Mf().a-z(Ip(n.of($6))):t+z(Ip(n.of($6))):n.ag()==(WR(),U5)?-n.Mf().a:t}function oj(e){var t;return e.b.c.length!=0&&H($h(e.b,0),72).a?H($h(e.b,0),72).a:(t=Iv(e),t??``+(e.c?HS(e.c.a,e,0):-1))}function sj(e){var t;return e.f.c.length!=0&&H($h(e.f,0),72).a?H($h(e.f,0),72).a:(t=Iv(e),t??``+(e.i?HS(e.i.j,e,0):-1))}function e4e(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n0?e.c:0),a=r.Math.max(a,t.d),++i;e.e=o,e.b=a}function r4e(e){var t,n;if(!e.b)for(e.b=nx(H(e.f,123).kh().i),n=new Mf(H(e.f,123).kh());n.e!=n.i.gc();)t=H(cA(n),135),Cf(e.b,new Fme(t));return e.b}function cj(e,t){var n,r,i;if(t.dc())return Hp(),Hp(),CVt;for(n=new xTe(e,t.gc()),i=new Mf(e);i.e!=i.i.gc();)r=cA(i),t.Hc(r)&&_S(n,r);return n}function i4e(e,t,n,r){return t==0?r?(!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),e.o):(!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),uS(e.o)):x0e(e,t,n,r)}function a4e(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t>22),i+=r>>22,i<0)?!1:(e.l=n&RB,e.m=r&RB,e.h=i&zB,!0)}function l4e(e,t,n,r,i,a,o){var s,l;return!(t.Te()&&(l=e.a.Ne(n,r),l<0||!i&&l==0)||t.Ue()&&(s=e.a.Ne(n,a),s>0||!o&&s==0))}function uj(e,t){if(BE(),e.j.g-t.j.g!=0)return 0;switch(e.j.g){case 2:return SO(t,$Dt)-SO(e,$Dt);case 4:return SO(e,QDt)-SO(t,QDt)}return 0}function u4e(e){switch(e.g){case 0:return HOt;case 1:return UOt;case 2:return WZ;case 3:return WOt;case 4:return GZ;case 5:return KZ;default:return null}}function dj(e,t,n){var r=(i=new dme,aD(i,t),Pw(i,n),_S((!e.c&&(e.c=new Bg(P7,e,12,10)),e.c),i),i),i;return aw(r,0),ow(r,1),PD(r,!0),MD(r,!0),r}function fj(e,t){var n,r;if(t>=e.i)throw R(new mxe(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&qI(e.g,t+1,e.g,t,r),P_(e.g,--e.i,null),e.Qi(t,n),e.Ni(),n}function d4e(e,t){var n,r;return e.Db>>16==17?e.Cb.Th(e,21,k7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function f4e(e){var t,n,r,i;for(iy(),ff(e.c,e.a),i=new L(e.c);i.an.a.c.length))throw R(new Ps(`index must be >= 0 and <= layer node count`));e.c&&BS(e.c.a,e),e.c=n,n&&yg(n.a,t,e)}function y4e(e,t){for(var n,r=new Mg(Vf(vO(e).a.Kc(),new f)),i;GP(r);)return n=H(Rx(r),18),i=H(t.Kb(n),10),new mle(E_(i.n.b+i.o.b/2));return ss(),ss(),SSt}function b4e(e,t){this.c=new eo,this.a=e,this.b=t,this.d=H(q(e,(fz(),$Q)),312),this.e=Qu(q(e,(sz(),CMt)))===Qu((LS(),JZ))?new Wo:new Uo}function Cj(e,t){var n,r=null;return e.pf((pz(),f8))&&(n=H(e.of(f8),96),n.pf(t)&&(r=n.of(t))),r==null&&e.Tf()&&(r=e.Tf().of(t)),r??=sA(t),r}function x4e(e,t){var n=e.fd(t),r;try{return r=n.Pb(),n.Qb(),r}catch(e){throw e=GT(e),V(e,112)?R(new js(`Can't remove element `+t)):R(e)}}function S4e(e,t){var n,r=new Uc,i=new vE(r.q.getFullYear()-AB,r.q.getMonth(),r.q.getDate());if(n=gL(e,t,i),n==0||n0?t:0),++n;return new ku(i,a)}function Dj(e,t){var n,r;return e.Db>>16==6?e.Cb.Th(e,6,u7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(ez(),WBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Oj(e,t){var n,r;return e.Db>>16==7?e.Cb.Th(e,1,IBt,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(ez(),KBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function D4e(e,t){var n,r;return e.Db>>16==9?e.Cb.Th(e,9,_7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(ez(),JBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function kj(e,t){var n,r;return e.Db>>16==5?e.Cb.Th(e,9,HVt,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(_z(),U7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function O4e(e,t){var n,r;return e.Db>>16==7?e.Cb.Th(e,6,p7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(_z(),Y7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Aj(e,t){var n,r;return e.Db>>16==3?e.Cb.Th(e,0,RBt,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(_z(),z7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function jj(){this.a=new Boe,this.g=new q0e,this.j=new q0e,this.b=new eo,this.d=new q0e,this.i=new q0e,this.k=new eo,this.c=new eo,this.e=new eo,this.f=new eo}function k4e(e,t,n){var r,i,a;for(n<0&&(n=0),a=e.i,i=n;ijmt)return Mj(e,r);if(r==e)return!0}}return!1}function j4e(e){switch(op(),e.q.g){case 5:u9e(e,(WR(),w5)),u9e(e,V5);break;case 4:Ftt(e,(WR(),w5)),Ftt(e,V5);break;default:Xdt(e,(WR(),w5)),Xdt(e,V5)}}function M4e(e){switch(op(),e.q.g){case 5:K9e(e,(WR(),C5)),K9e(e,U5);break;case 4:r0e(e,(WR(),C5)),r0e(e,U5);break;default:Zdt(e,(WR(),C5)),Zdt(e,U5)}}function N4e(e){var t=H(q(e,(WI(),KTt)),17),n;t?(n=t.a,n==0?pE(e,(Ew(),rX),new i$e):pE(e,(Ew(),rX),new Qze(n))):pE(e,(Ew(),rX),new Qze(1))}function P4e(e,t){var n=e.i;switch(t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function F4e(e,t){switch(e.g){case 0:return t==(KO(),a$)?sZ:cZ;case 1:return t==(KO(),a$)?sZ:oZ;case 2:return t==(KO(),a$)?oZ:cZ;default:return oZ}}function Nj(e,t){var n,i,a;for(BS(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=Ovt,i=new L(e.a);i.a>16==3?e.Cb.Th(e,12,_7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(ez(),UBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function L4e(e,t){var n,r;return e.Db>>16==11?e.Cb.Th(e,10,_7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(ez(),qBt)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function R4e(e,t){var n,r;return e.Db>>16==10?e.Cb.Th(e,11,k7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(_z(),J7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function z4e(e,t){var n,r;return e.Db>>16==10?e.Cb.Th(e,12,M7,t):(r=OA(H(CC((n=H(TT(e,16),29),n||(_z(),X7)),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function Pj(e){var t;return!(e.Bb&1)&&e.r&&e.r.Vh()&&(t=H(e.r,54),e.r=H(dD(e,t),142),e.r!=t&&e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,9,8,t,e.r))),e.r}function B4e(e,t,n){var i=K(B(z9,1),QB,28,15,[c8e(e,(GC(),dY),t,n),c8e(e,fY,t,n),c8e(e,pY,t,n)]);return e.f&&(i[0]=r.Math.max(i[0],i[2]),i[2]=i[0]),i}function V4e(e,t){var n,r,i=i0e(e,t);if(i.c.length!=0)for(ff(i,new xte),n=i.c.length,r=0;r>19,u=t.h>>19;return l==u?(i=e.h,s=t.h,i==s?(r=e.m,o=t.m,r==o?(n=e.l,a=t.l,n-a):r-o):i-s):u-l}function J4e(){J4e=D,swt=(YF(),pwt),owt=new hd(bV,swt),awt=(gC(),QCt),iwt=new hd(xV,awt),rwt=(aA(),sY),nwt=new hd(SV,rwt),twt=new hd(CV,(sp(),!0))}function Fj(e,t,n){var r=t*n,i;V(e.g,154)?(i=dx(e),i.f.d?i.f.a||(e.d.a+=r+LV):(e.d.d-=r+LV,e.d.a+=r+LV)):V(e.g,10)&&(e.d.d-=r,e.d.a+=2*r)}function Y4e(e,t,n){for(var i,a=e[n.g],o,s,l=new L(t.d);l.a0?e.b:0),++n;t.b=i,t.e=a}function Z4e(e){var t,n,r=e.b;if(C_e(e.i,r.length)){for(n=r.length*2,e.b=dS(TSt,iB,303,n,0,1),e.c=dS(TSt,iB,303,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)tP(e,t,t);++e.g}}function Q4e(e,t,n,r){for(var i=0,a,o,s;is&&(l=s/i),a>o&&(u=o/a),Sf(e,r.Math.min(l,u)),e}function e3e(){xL();var e,t;try{if(t=H(eM((Pl(),N7),ZG),2113),t)return t}catch(t){if(t=GT(t),V(t,103))e=t,xMe((cf(),e));else throw R(t)}return new Foe}function t3e(){xL();var e,t;try{if(t=H(eM((Pl(),N7),pq),2040),t)return t}catch(t){if(t=GT(t),V(t,103))e=t,xMe((cf(),e));else throw R(t)}return new Xn}function n3e(){pUe();var e,t;try{if(t=H(eM((Pl(),N7),Dq),2122),t)return t}catch(t){if(t=GT(t),V(t,103))e=t,xMe((cf(),e));else throw R(t)}return new Lse}function r3e(e,t,n){var r,i=e.e;return e.e=t,e.Db&4&&!(e.Db&1)&&(r=new Vg(e,1,4,i,t),n?n.nj(r):n=r),i!=t&&(n=t?PR(e,rnt(e,t),n):PR(e,e.a,n)),n}function i3e(){Uc.call(this),this.e=-1,this.a=!1,this.p=pB,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=pB}function a3e(e,t){var n,r=e.b.d.d,i;if(e.a||(r+=e.b.d.a),i=t.b.d.d,t.a||(i+=t.b.d.a),n=nO(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function o3e(e,t){var n,r=e.b.b.d,i;if(e.a||(r+=e.b.b.a),i=t.b.b.d,t.a||(i+=t.b.b.a),n=nO(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function s3e(e,t){var n,r=e.b.g.d,i;if(e.a||(r+=e.b.g.a),i=t.b.g.d,t.a||(i+=t.b.g.a),n=nO(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function c3e(){c3e=D,xEt=Cg(Jh(Jh(Jh(new mv,(WM(),lX),(mz(),EDt)),lX,ODt),uX,XX),uX,_Dt),CEt=Jh(Jh(new mv,lX,uDt),lX,vDt),SEt=Cg(new mv,uX,bDt)}function l3e(e){var t=H(q(e,(fz(),CQ)),85),n,r,i,a=e.n;for(r=t.Cc().Kc();r.Ob();)n=H(r.Pb(),314),i=n.i,i.c+=a.a,i.d+=a.b,n.c?zit(n):Bit(n);pE(e,CQ,null)}function u3e(e,t,n){var r,i=e.b;switch(r=i.d,t.g){case 1:return-r.d-n;case 2:return i.o.a+r.c+n;case 3:return i.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function Rj(e,t,n){var r,i;for(n.Ug(`Interactive node placement`,1),e.a=H(q(t,(fz(),$Q)),312),i=new L(t.b);i.a0&&(o=(a&Cz)%e.d.length,i=j9e(e,o,a,t),i)?(s=i.nd(n),s):(r=e.ck(a,t,n),e.c.Fc(r),null)}function v3e(e,t){var n,r,i,a;switch(ED(e,t).Kl()){case 3:case 2:for(n=EL(t),i=0,a=n.i;i=0;i--)if(_m(e[i].d,t)||_m(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function Yj(e,t){var n;return Sd(e)&&Sd(t)&&(n=e/t,WB0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=r.Math.min(i,a))}function A3e(e){var t=H(q(H(mA(e.b,0),40),(YI(),EFt)),107);pE(e,(UR(),N2),new ku(0,0)),Iot(new nS,e,t.b+t.c-z(Ip(q(e,tFt))),t.d+t.a-z(Ip(q(e,P2))))}function j3e(e,t){var n,r=!1;if($u(t)&&(r=!0,R_(e,new D_(Lp(t)))),r||V(t,242)&&(r=!0,R_(e,(n=wm(H(t,242)),new ri(n)))),!r)throw R(new Ms(bbt))}function M3e(e,t,n,r){var i=new XS(e.e,1,10,(o=t.c,V(o,90)?H(o,29):(_z(),q7)),(a=n.c,V(a,90)?H(a,29):(_z(),q7)),SA(e,t),!1),a,o;return r?r.nj(i):r=i,r}function Qj(e){var t,n;switch(H(q($_(e),(sz(),gMt)),429).g){case 0:return t=e.n,n=e.o,new ku(t.a+n.a/2,t.b+n.b/2);case 1:return new Td(e.n);default:return null}}function $j(){$j=D,QOt=new mu(QH,0),ZOt=new mu(`LEFTUP`,1),ekt=new mu(`RIGHTUP`,2),XOt=new mu(`LEFTDOWN`,3),$Ot=new mu(`RIGHTDOWN`,4),YOt=new mu(`BALANCED`,5)}function N3e(e,t,n){var r=nO(e.a[t.p],e.a[n.p]),i,a;if(r==0){if(i=H(q(t,(fz(),PQ)),15),a=H(q(n,PQ),15),i.Hc(n))return-1;if(a.Hc(t))return 1}return r}function P3e(e){switch(e.g){case 1:return new gae;case 2:return new _ae;case 3:return new hae;case 0:return null;default:throw R(new Ps(Pvt+(e.f==null?``+e.g:e.f)))}}function F3e(e,t,n){switch(t){case 1:!e.n&&(e.n=new Bg(g7,e,1,7)),dR(e.n),!e.n&&(e.n=new Bg(g7,e,1,7)),b_(e.n,H(n,16));return;case 2:ww(e,Lp(n));return}BYe(e,t,n)}function I3e(e,t,n){switch(t){case 3:QC(e,z(Ip(n)));return;case 4:$C(e,z(Ip(n)));return;case 5:ew(e,z(Ip(n)));return;case 6:tw(e,z(Ip(n)));return}F3e(e,t,n)}function L3e(e,t,n){var r,i,a=(r=new dme,r);i=PM(a,t,null),i&&i.oj(),Pw(a,n),_S((!e.c&&(e.c=new Bg(P7,e,12,10)),e.c),a),aw(a,0),ow(a,1),PD(a,!0),MD(a,!0)}function eM(e,t){var n=Hl(e.i,t),r,i;return V(n,241)?(i=H(n,241),i.zi(),i.wi()):V(n,507)?(r=H(n,2037),i=r.b,i):null}function tM(e,t,n,r){var i,a;return E_(t),E_(n),a=H(Cm(e.d,t),17),XUe(!!a,`Row %s not in %s`,t,e.e),i=H(Cm(e.b,n),17),XUe(!!i,`Column %s not in %s`,n,e.c),tYe(e,a.a,i.a,r)}function nM(e,t,n,r,i,a,o){var s,l,u,d=i[a],f;if(u=a==o-1,s=u?r:0,f=QA(s,d),r!=10&&K(B(e,o-a),t[a],n[a],s,f),!u)for(++a,l=0;l1||s==-1?(a=H(l,15),i.Wb(s$e(e,a))):i.Wb(kI(e,H(l,58)))))}function G3e(e,t,n,r){Qge();var i=gSt;_St=r;function a(){for(var e=0;e0)return!1;return!0}function J3e(e){for(var t,n,r=new yT(new ki(e.b).a),i,a;r.b;)n=Dw(r),t=H(n.ld(),10),a=H(H(n.md(),42).a,10),i=H(H(n.md(),42).b,8),fm(md(t.n),fm(vf(a.n),i))}function Y3e(e){switch(H(q(e.b,(sz(),dMt)),387).g){case 1:sl(Mv(uC(new ig(null,new kb(e.d,16)),new rre),new ire),new mn);break;case 2:Sat(e);break;case 0:D7e(e)}}function X3e(e,t,n){var r=n,i,a;for(!r&&(r=new is),r.Ug(`Layout`,e.a.c.length),a=new L(e.a);a.aSW)return n;i>-1e-6&&++n}return n}function uM(e,t){var n;t==e.b?e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,3,t,t)):(n=null,e.b&&(n=My(e.b,e,-4,n)),t&&(n=vA(t,e,-4,n)),n=hZe(e,t,n),n&&n.oj())}function t6e(e,t){var n;t==e.f?e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,0,t,t)):(n=null,e.f&&(n=My(e.f,e,-1,n)),t&&(n=vA(t,e,-1,n)),n=mZe(e,t,n),n&&n.oj())}function dM(e,t,n,r){var i,a,o,s;return jd(e.e)&&(i=t.Lk(),s=t.md(),a=n.md(),o=xy(e,1,i,s,a,i.Jk()?cL(e,i,a,V(i,102)&&(H(i,19).Bb&XB)!=0):-1,!0),r?r.nj(o):r=o),r}function fM(e){var t,n,r;if(e==null)return null;if(n=H(e,15),n.dc())return``;for(r=new Xs,t=n.Kc();t.Ob();)od(r,(bR(),Lp(t.Pb()))),r.a+=` `;return Sxe(r,r.a.length-1)}function n6e(e){var t,n,r;if(e==null)return null;if(n=H(e,15),n.dc())return``;for(r=new Xs,t=n.Kc();t.Ob();)od(r,(bR(),Lp(t.Pb()))),r.a+=` `;return Sxe(r,r.a.length-1)}function pM(e,t,n){var r=e.c[t.c.p][t.p],i=e.c[n.c.p][n.p];return r.a!=null&&i.a!=null?gje(r.a,i.a):r.a==null?i.a==null?0:1:-1}function r6e(e,t,n){return n.Ug(`Tree layout`,1),Cv(e.b),u_(e.b,(yj(),w2),w2),u_(e.b,T2,T2),u_(e.b,E2,E2),u_(e.b,D2,D2),e.a=_R(e.b,t),X3e(e,t,n.eh(1)),n.Vg(),t}function i6e(e,t){var n,r,i,a,o,s;if(t)for(a=t.a.length,n=new Ng(a),s=(n.b-n.a)*n.c<0?(zl(),N9):new Nf(n);s.Ob();)o=H(s.Pb(),17),i=ox(t,o.a),r=new Ofe(e),Av(r.a,i)}function a6e(e,t){var n,r,i,a,o,s;if(t)for(a=t.a.length,n=new Ng(a),s=(n.b-n.a)*n.c<0?(zl(),N9):new Nf(n);s.Ob();)o=H(s.Pb(),17),i=ox(t,o.a),r=new yfe(e),kNe(r.a,i)}function o6e(e){var t;if(e!=null&&e.length>0&&kv(e,e.length-1)==33)try{return t=mtt(Ey(e,0,e.length-1)),t.e==null}catch(e){if(e=GT(e),!V(e,33))throw R(e)}return!1}function s6e(e,t,n){var r=iO($_(t)),i=new uN;switch(mb(i,t),n.g){case 1:$N(i,JD(UO(r)));break;case 2:$N(i,UO(r))}return pE(i,(sz(),T1),Ip(q(e,T1))),i}function c6e(e){var t=H(Rx(new Mg(Vf(yO(e.a).a.Kc(),new f))),18),n=H(Rx(new Mg(Vf(bO(e.a).a.Kc(),new f))),18);return ks(Fp(q(t,(fz(),XQ))))||ks(Fp(q(n,XQ)))}function mM(){mM=D,gZ=new uu(`ONE_SIDE`,0),sOt=new uu(`TWO_SIDES_CORNER`,1),cOt=new uu(`TWO_SIDES_OPPOSING`,2),oOt=new uu(`THREE_SIDES`,3),hZ=new uu(`FOUR_SIDES`,4)}function l6e(e,t){var n,r,i,a=new to;for(i=0,r=t.Kc();r.Ob();){for(n=bD(H(r.Pb(),17).a+i);n.a=e.f)break;oo(a.c,n)}return a}function u6e(e,t){for(var n,r,i,a=new L(t.a),o;a.a0&&gj(this,this.c-1,(WR(),C5)),this.c0&&e[0].length>0&&(this.c=ks(Fp(q($_(e[0][0]),(fz(),FQ))))),this.a=dS(qNt,Gz,2117,e.length,0,2),this.b=dS(JNt,Gz,2118,e.length,0,2),this.d=new sD}function S6e(e){return e.c.length==0?!1:(Db(0,e.c.length),H(e.c[0],18)).c.i.k==(sN(),DX)||Px(Mv(new ig(null,new kb(e,16)),new Wre),new Gre)}function C6e(e,t){var n,i,a,o,s,l=LF(t),u;for(o=t.f,u=t.g,s=r.Math.sqrt(o*o+u*u),a=0,i=new L(l);i.a=0?(n=Yj(e,UB),r=mk(e,UB)):(t=jg(e,1),n=Yj(t,5e8),r=mk(t,5e8),r=lO(kg(r,1),Nb(e,1))),Pb(kg(r,32),Nb(n,$B))}function I6e(e,t,n){var r=(zp(t.b!=0),H(zC(t,t.a.a),8)),i;switch(n.g){case 0:r.b=0;break;case 2:r.b=e.f;break;case 3:r.a=0;break;default:r.a=e.g}return i=iA(t,0),__(i,r),t}function L6e(e,t,n,r){var i,a,o,s,l=e.b;switch(a=t.d,o=a.j,s=I1e(o,l.d[o.g],n),i=fm(vf(a.n),a.a),a.j.g){case 1:case 3:s.a+=i.a;break;case 2:case 4:s.b+=i.b}Dx(r,s,r.c.b,r.c)}function R6e(e,t,n){var r,i,a,o=HS(e.e,t,0);for(a=new Bo,a.b=n,r=new Hb(e.e,o);r.b1;t>>=1)t&1&&(r=hx(r,n)),n=n.d==1?hx(n,n):new v1e(ast(n.a,n.d,dS(F9,jB,28,n.d<<1,15,1)));return r=hx(r,n),r}function CM(){CM=D;var e,t,n,r;for(SCt=dS(z9,QB,28,25,15,1),CCt=dS(z9,QB,28,33,15,1),r=152587890625e-16,t=32;t>=0;t--)CCt[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)SCt[e]=n,n*=.5}function W6e(e){var t,n;if(ks(Fp(eF(e,(sz(),t1))))){for(n=new Mg(Vf(mF(e).a.Kc(),new f));GP(n);)if(t=H(Rx(n),74),xP(t)&&ks(Fp(eF(t,n1))))return!0}return!1}function wM(e,t){var n,r,i;t_(e.f,t)&&(t.b=e,r=t.c,HS(e.j,r,0)!=-1||Cf(e.j,r),i=t.d,HS(e.j,i,0)!=-1||Cf(e.j,i),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new F1e(e)),uJe(e.i,n)))}function TM(e){var t,n=e.c.d,r=n.j,i=e.d.d,a=i.j;return r==a?n.p=0&&_m(e.substr(t,3),`GMT`)||t>=0&&_m(e.substr(t,3),`UTC`))&&(n[0]=t+3),Zot(e,n,r)}function kM(e,t){var n,r,i,a=e.g.a,o=e.g.b;for(r=new L(e.d);r.an;a--)e[a]|=t[a-n-1]>>>o,e[a-1]=t[a-n-1]<0&&qI(e.g,t,e.g,t+r,s),o=n.Kc(),e.i+=r,i=0;i>4&15,a=e[r]&15,o[i++]=QBt[n],o[i++]=QBt[a];return Ak(o,0,o.length)}function RM(e){var t,n;return e>=XB?(t=ZB+(e-XB>>10&1023)&xB,n=56320+(e-XB&1023)&xB,String.fromCharCode(t)+(``+String.fromCharCode(n))):String.fromCharCode(e&xB)}function r8e(e,t){qp();var n,r,i=H(H(Wx(e.r,t),21),87),a;return i.gc()>=2&&(r=H(i.Kc().Pb(),117),n=e.u.Hc((rP(),_5)),a=e.u.Hc(x5),!r.a&&!n&&(i.gc()==2||a))}function i8e(e,t,n,r,i){for(var a=git(e,t,n,r,i),o,s=!1;!a;)nF(e,i,!0),s=!0,a=git(e,t,n,r,i);s&&nF(e,i,!1),o=tE(i),o.c.length!=0&&(e.d&&e.d.Gg(o),i8e(e,i,n,r,o))}function a8e(){a8e=D,zzt=new Lu(QH,0),z8=new Lu(`DIRECTED`,1),Bzt=new Lu(`UNDIRECTED`,2),Lzt=new Lu(`ASSOCIATION`,3),Rzt=new Lu(`GENERALIZATION`,4),R8=new Lu(`DEPENDENCY`,5)}function o8e(e,t){var n;if(!Wy(e))throw R(new Fs(Wyt));switch(n=Wy(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function s8e(e,t,n){var r=t.Lk(),i,a=t.md();return i=r.Jk()?xy(e,4,r,a,null,cL(e,r,a,V(r,102)&&(H(r,19).Bb&XB)!=0),!0):xy(e,r.tk()?2:1,r,a,r.ik(),-1,!0),n?n.nj(i):n=i,n}function zM(e,t){var n,r;for(sv(t),r=e.b.c.length,Cf(e.b,t);r>0;){if(n=r,r=(r-1)/2|0,e.a.Ne($h(e.b,r),t)<=0)return jx(e.b,n,t),!0;jx(e.b,n,$h(e.b,r))}return jx(e.b,r,t),!0}function c8e(e,t,n,i){var a=0,o;if(n)a=iD(e.a[n.g][t.g],i);else for(o=0;o=s)}function u8e(e){switch(e.g){case 0:return new Nae;case 1:return new Pae;default:throw R(new Ps(`No implementation is available for the width approximator `+(e.f==null?``+e.g:e.f)))}}function d8e(e,t,n,r){var i=!1;if($u(r)&&(i=!0,jh(t,n,Lp(r))),i||ed(r)&&(i=!0,d8e(e,t,n,r)),i||V(r,242)&&(i=!0,uy(t,n,H(r,242))),!i)throw R(new Ms(bbt))}function f8e(e,t){var n=t.qi(e.a),r,i;if(n&&(i=dk((!n.b&&(n.b=new Ep((_z(),Q7),t9,n)),n.b),oq),i!=null)){for(r=1;r<(MN(),SHt).length;++r)if(_m(SHt[r],i))return r}return 0}function p8e(e,t){var n=t.qi(e.a),r,i;if(n&&(i=dk((!n.b&&(n.b=new Ep((_z(),Q7),t9,n)),n.b),oq),i!=null)){for(r=1;r<(MN(),CHt).length;++r)if(_m(CHt[r],i))return r}return 0}function m8e(e,t){var n,r,i,a;if(sv(t),a=e.a.gc(),a0);a.a[i]!=n;)a=a.a[i],i=+(e.a.Ne(n.d,a.d)>0);a.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function y8e(e){var t=new to,n=dS(I9,DV,28,e.a.c.length,16,1),r,i;for(s_(n,n.length),i=new L(e.a);i.a0&&Vot((Db(0,n.c.length),H(n.c[0],30)),e),n.c.length>1&&Vot(H($h(n,n.c.length-1),30),e),t.Vg()}function HM(e){rP();var t=bg(v5,K(B(S5,1),cB,279,0,[b5])),n;return!(MT(vFe(t,e))>1||(n=bg(_5,K(B(S5,1),cB,279,0,[g5,x5])),MT(vFe(n,e))>1))}function UM(e,t){V(Fy((Pl(),N7),e),507)?db(N7,e,new Vbe(this,t)):db(N7,e,this),iN(this,t),t==(wc(),GVt)?(this.wb=H(this,2038),H(t,2040)):this.wb=(A_(),R7)}function x8e(e){var t,n,r;if(e==null)return null;for(t=null,n=0;n=bB?`error`:r>=900?`warn`:r>=800?`info`:`log`),z_(n,e.a),e.b&&art(t,n,e.b,`Exception: `,!0))}function q(e,t){var n;return!e.q&&(e.q=new eo),N_(e.q,t)??(n=t.Sg(),V(n,4)&&(n==null?(!e.q&&(e.q=new eo),Yx(e.q,t)):(!e.q&&(e.q=new eo),hv(e.q,t,n))),n)}function WM(){WM=D,oX=new eu(`P1_CYCLE_BREAKING`,0),sX=new eu(`P2_LAYERING`,1),cX=new eu(`P3_NODE_ORDERING`,2),lX=new eu(`P4_NODE_PLACEMENT`,3),uX=new eu(`P5_EDGE_ROUTING`,4)}function w8e(e,t){yC();var n;if(e.c==t.c){if(e.b==t.b||wqe(e.b,t.b)){if(n=Axe(e.b)?1:-1,e.a&&!t.a)return n;if(!e.a&&t.a)return-n}return hf(e.b.g,t.b.g)}return nO(e.c,t.c)}function T8e(e,t){var n,r,i;if(O8e(e,t))return!0;for(r=new L(t);r.a=i||t<0)throw R(new js(Mbt+t+mK+i));if(n>=i||n<0)throw R(new js(Nbt+n+mK+i));return r=t==n?e.xj(n):(a=e.Cj(n),e.qj(t,a),a),r}function D8e(e){var t,n,r=e;if(e)for(t=0,n=e.Eh();n;n=n.Eh()){if(++t>jmt)return D8e(n);if(r=n,n==e)throw R(new Fs(`There is a cycle in the containment hierarchy of `+e))}return r}function ZM(e){var t,n,r=new FT(Dz,`[`,`]`);for(n=e.Kc();n.Ob();)t=n.Pb(),Jx(r,Qu(t)===Qu(e)?`(this Collection)`:t==null?Az:OO(t));return r.a?r.e.length==0?r.a.a:r.a.a+(``+r.e):r.c}function O8e(e,t){var n,r=!1;if(t.gc()<2)return!1;for(n=0;n1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=r.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function $M(){$M=D,_Z=K(B(W5,1),$H,64,0,[(WR(),w5),C5,V5]),dOt=K(B(W5,1),$H,64,0,[C5,V5,U5]),fOt=K(B(W5,1),$H,64,0,[V5,U5,w5]),pOt=K(B(W5,1),$H,64,0,[U5,w5,C5])}function j8e(e,t,n,r){var i,a,o=e.c.d,s=e.d.d,l,u,d;if(o.j!=s.j)for(d=e.b,i=o.j,l=null;i!=s.j;)l=t==0?YD(i):qD(i),a=I1e(i,d.d[i.g],n),u=I1e(l,d.d[l.g],n),Ih(r,fm(a,u)),i=l}function eN(e,t,n,r){var i,a,o=_j(e.a,t,n),s=H(o.a,17).a,l;return a=H(o.b,17).a,r&&(l=H(q(t,(fz(),KQ)),10),i=H(q(n,KQ),10),l&&i&&(xze(e.b,l,i),s+=e.b.i,a+=e.b.e)),s>a}function tN(e){var t,n,r,i,a,o,s,l,u;for(this.a=T0e(e),this.b=new to,n=e,r=0,i=n.length;rKp(e.d).c?(e.i+=e.g.c,gk(e.d)):Kp(e.d).c>Kp(e.g).c?(e.e+=e.d.c,gk(e.g)):(e.i+=DAe(e.g),e.e+=DAe(e.d),gk(e.g),gk(e.d))}function I8e(e,t,n){var r,i,a=t.q,o=t.r;for(new xb((sS(),y2),t,a,1),new xb(y2,a,o,1),i=new L(n);i.al&&(u=l/i),a>o&&(d=o/a),s=r.Math.min(u,d),e.a+=s*(t.a-e.a),e.b+=s*(t.b-e.b)}function H8e(e,t,n,r,i){var a,o=!1;for(a=H($h(n.b,0),27);rL(e,t,a,r,i)&&(o=!0,V3e(n,a),n.b.c.length!=0);)a=H($h(n.b,0),27);return n.b.c.length==0&&Nj(n.j,n),o&&tj(t.q),o}function rN(e,t){GF();var n,r,i,a;if(t.b<2)return!1;for(a=iA(t,0),n=H(lx(a),8),r=n;a.b!=a.d.c;){if(i=H(lx(a),8),Pnt(e,r,i))return!0;r=i}return!!Pnt(e,r,n)}function U8e(e,t,n,r){var i,a;return n==0?(!e.o&&(e.o=new CS((ez(),h7),b7,e,0)),PEe(e.o,t,r)):(a=H(CC((i=H(TT(e,16),29),i||e.ii()),n),69),a.wk().Ak(e,Lk(e),n-M_(e.ii()),t,r))}function iN(e,t){var n;t==e.sb?e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,4,t,t)):(n=null,e.sb&&(n=H(e.sb,54).Th(e,1,f7,n)),t&&(n=H(t,54).Rh(e,1,f7,n)),n=MZe(e,t,n),n&&n.oj())}function aN(e,t){var n,r,i,a;if(t)i=lw(t,`x`),n=new Tfe(e),ZC(n.a,(sv(i),i)),a=lw(t,`y`),r=new Efe(e),rw(r.a,(sv(a),a));else throw R(new Bs(`All edge sections need an end point.`))}function oN(e,t){var n,r,i,a;if(t)i=lw(t,`x`),n=new Sfe(e),nw(n.a,(sv(i),i)),a=lw(t,`y`),r=new Cfe(e),iw(r.a,(sv(a),a));else throw R(new Bs(`All edge sections need a start point.`))}function W8e(e,t){for(var n,r=tXe(e),i,a=0,o,s=r.length,l;a>22-t,i=e.h<>22-t):t<44?(n=0,r=e.l<>44-t):(n=0,r=0,i=e.l<e)throw R(new Ps(`k must be smaller than n`));return t==0||t==e?1:e==0?0:x3e(e)/(x3e(t)*x3e(e-t))}function e5e(e,t){for(var n=new Gxe(e),r,i,a;n.g==null&&!n.c?eb(n):n.g==null||n.i!=0&&H(n.g[n.i-1],51).Ob();)if(a=H(dF(n),58),V(a,167))for(r=H(a,167),i=0;i>4],t[n*2+1]=sUt[a&15];return Ak(t,0,t.length)}function d5e(e){_v();var t,n;switch(e.c.length){case 0:return sJ;case 1:return t=H(q7e(new L(e)),44),Rke(t.ld(),t.md());default:return n=H(Jk(e,dS(rJ,$z,44,e.c.length,0,1)),173),new _s(n)}}function f5e(e){var t=new jf,n=new jf,r,i,a,o;for(ux(t,e),ux(n,e);n.b!=n.c;)for(i=H($g(n),36),o=new L(i.a);o.a0&&fI(e,n,t),i):X9e(e,t,n):r}function gN(){gN=D,PIt=(pz(),s8),RIt=g8,OIt=L6,kIt=z6,AIt=V6,DIt=F6,jIt=U6,NIt=i8,TIt=(fot(),lIt),EIt=uIt,FIt=gIt,g4=yIt,IIt=_It,LIt=vIt,MIt=fIt,m4=mIt,h4=hIt,_4=bIt,zIt=SIt,wIt=cIt}function _N(e,t){var n,r,i,a,o;if(e.e<=t||KIe(e,e.g,t))return e.g;for(a=e.r,r=e.g,o=e.r,i=(a-r)/2+r;r+11&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=r.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function m5e(e){var t,n,r,i=e.i;switch(t=i.b,r=i.j,n=i.g,i.a.g){case 0:n.a=(e.g.b.o.a-r.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-r.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function h5e(e,t,n){for(var r,i=new Mg(Vf(vO(n).a.Kc(),new f)),a;GP(i);)r=H(Rx(i),18),!(Fx(r)||!Fx(r)&&r.c.i.c==r.d.i.c)&&(a=Qtt(e,r,n,new Zpe),a.c.length>1&&oo(t.c,a))}function g5e(e,t,n,r,i){if(rr&&(e.a=r),e.bi&&(e.b=i),e}function _5e(e){if(V(e,143))return CF(H(e,143));if(V(e,233))return GQe(H(e,233));if(V(e,23))return q8e(H(e,23));throw R(new Ps(xbt+ZM(new Hs(K(B($q,1),Oz,1,5,[e])))))}function v5e(e,t,n,r,i){for(var a=!0,o=0,s;o>>i|n[o+r+1]<>>i,++o}return a}function y5e(e,t,n,r){var i,a,o;if(t.k==(sN(),DX)){for(a=new Mg(Vf(yO(t).a.Kc(),new f));GP(a);)if(i=H(Rx(a),18),o=i.c.i.k,o==DX&&e.c.a[i.c.i.c.p]==r&&e.c.a[t.c.p]==n)return!0}return!1}function b5e(e,t){var n,r,i,a;return t&=63,n=e.h&zB,t<22?(a=n>>>t,i=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(a=0,i=n>>>t-22,r=e.m>>t-22|e.h<<44-t):(a=0,i=0,r=n>>>t-44),gf(r&RB,i&RB,a&zB)}function x5e(e,t,n,r){var i;this.b=r,this.e=e==(hw(),Q0),i=t[n],this.d=eg(I9,[Gz,DV],[183,28],16,[i.length,i.length],2),this.a=eg(F9,[Gz,jB],[53,28],15,[i.length,i.length],2),this.c=new gM(t,n)}function S5e(e){var t,n,r;for(e.k=new bIe((WR(),K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5])).length,e.j.c.length),r=new L(e.j);r.a=n)return EN(e,t,r.p),!0;return!1}function TN(e,t,n,r){var i,a,o=n.length,s,l,u;for(a=0,i=-1,u=yWe((Ob(t,e.length+1),e.substr(t)),(km(),_Ct)),s=0;sa&&Wje(u,yWe(n[s],_Ct))&&(i=s,a=l);return i>=0&&(r[0]=t+a),i}function D5e(e){var t;return e.Db&64?t5e(e):(t=new qf($yt),!e.a||ld(ld((t.a+=` "`,t),e.a),`"`),ld(kc(ld(kc(ld(kc(ld(kc((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function O5e(e,t,n){var r,i,a,o,s=jF(e.e.Dh(),t);for(i=H(e.g,124),r=0,o=0;on?JN(e,n,`start index`):t<0||t>n?JN(t,n,`end index`):iI(`end index (%s) must not be less than start index (%s)`,K(B($q,1),Oz,1,5,[bD(t),bD(e)]))}function j5e(e,t){for(var n,r=0,i=e.length,a;r0&&N5e(e,a,n));t.p=0}function DN(e){var t;this.c=new $c,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,this.j=e.i?e.i:(t=H(Tc(D3),9),new Om(t,H(im(t,t.length),9),0)),this.g=e.f}function P5e(e){for(var t=W_(ld(new qf(`Predicates.`),`and`),40),n=!0,r,i=new Wi(e);i.b0?s[o-1]:dS(CX,nU,10,0,0,1),i=s[o],u=o=0?e.ki(i):nP(e,r);else throw R(new Ps(VG+r.xe()+HG))}else AD(e,n,r)}function R5e(e){var t,n=null;if(t=!1,V(e,211)&&(t=!0,n=H(e,211).a),t||V(e,263)&&(t=!0,n=``+H(e,263).a),t||V(e,493)&&(t=!0,n=``+H(e,493).a),!t)throw R(new Ms(bbt));return n}function z5e(e,t,n){var r,i,a,o,s,l=jF(e.e.Dh(),t);for(r=0,s=e.i,i=H(e.g,124),o=0;o=e.d.b.c.length&&(t=new L_(e.d),t.p=r.p-1,Cf(e.d.b,t),n=new L_(e.d),n.p=r.p,Cf(e.d.b,n)),pb(r,H($h(e.d.b,r.p),30))}function K5e(e,t,n){var r,i,a;if(!e.b[t.g]){for(e.b[t.g]=!0,r=n,!r&&(r=new nS),Ih(r.b,t),a=e.a[t.g].Kc();a.Ob();)i=H(a.Pb(),65),i.b!=t&&K5e(e,i.b,r),i.c!=t&&K5e(e,i.c,r),Ih(r.a,i);return r}return null}function q5e(e){switch(e.g){case 0:case 1:case 2:return WR(),w5;case 3:case 4:case 5:return WR(),V5;case 6:case 7:case 8:return WR(),U5;case 9:case 10:case 11:return WR(),C5;default:return WR(),H5}}function J5e(e,t){var n;return e.c.length!=0&&(n=E$e((Db(0,e.c.length),H(e.c[0],18)).c.i),lb(),n==(wA(),w0)||n==C0||Px(Mv(new ig(null,new kb(e,16)),new Kre),new zde(t)))}function FN(e,t){if(V(t,207))return Zxe(e,H(t,27));if(V(t,193))return Qxe(e,H(t,123));if(V(t,452))return Xxe(e,H(t,166));throw R(new Ps(xbt+ZM(new Hs(K(B($q,1),Oz,1,5,[t])))))}function Y5e(e,t,n){var r,i;if(this.f=e,r=H(N_(e.b,t),260),i=r?r.a:0,yVe(n,i),n>=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++0;)xWe(this);this.b=t,this.a=null}function X5e(e,t){var n,r;t.a?wrt(e,t):(n=H(ul(e.b,t.b),60),n&&n==e.a[t.b.f]&&n.a&&n.a!=t.b.a&&n.c.Fc(t.b),r=H(ll(e.b,t.b),60),r&&e.a[r.f]==t.b&&r.a&&r.a!=t.b.a&&t.b.c.Fc(r),eCe(e.b,t.b))}function Z5e(e,t){var n=H(Sv(e.b,t),127),r;if(H(H(Wx(e.r,t),21),87).dc()){n.n.b=0,n.n.c=0;return}n.n.b=e.C.b,n.n.c=e.C.c,e.A.Hc((xk(),J5))&&Tat(e,t),r=g0e(e,t),Fit(e,t)==(oA(),s5)&&(r+=2*e.w),n.a.a=r}function Q5e(e,t){var n=H(Sv(e.b,t),127),r;if(H(H(Wx(e.r,t),21),87).dc()){n.n.d=0,n.n.a=0;return}n.n.d=e.C.d,n.n.a=e.C.a,e.A.Hc((xk(),J5))&&Eat(e,t),r=h0e(e,t),Fit(e,t)==(oA(),s5)&&(r+=2*e.w),n.a.b=r}function $5e(e,t){var n,r,i,a=new to;for(r=new L(t);r.ar&&(Ob(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return r>0||tn.a&&(r.Hc((lM(),t6))?i=(t.a-n.a)/2:r.Hc(r6)&&(i=t.a-n.a)),t.b>n.b&&(r.Hc((lM(),a6))?a=(t.b-n.b)/2:r.Hc(i6)&&(a=t.b-n.b)),BM(e,i,a)}function qN(e,t,n,r,i,a,o,s,l,u,d,f,p){V(e.Cb,90)&&ZN(Ix(H(e.Cb,90)),4),Pw(e,n),e.f=o,QD(e,s),eO(e,l),ZD(e,u),$D(e,d),PD(e,f),cO(e,p),MD(e,!0),aw(e,i),e.Zk(a),aD(e,t),r!=null&&(e.i=null,YKe(e,r))}function JN(e,t,n){if(e<0)return iI(Xpt,K(B($q,1),Oz,1,5,[n,bD(e)]));if(t<0)throw R(new Ps(Zpt+t));return iI(`%s (%s) must not be greater than size (%s)`,K(B($q,1),Oz,1,5,[n,bD(e),bD(t)]))}function YN(e,t,n,r,i,a){var o=r-n,s,l,u;if(o<7){TO(t,n,r,a);return}if(l=n+i,s=r+i,u=l+(s-l>>1),YN(t,e,l,u,-i,a),YN(t,e,u,s,-i,a),a.Ne(e[u-1],e[u])<=0){for(;n=0?e.bi(a,n):gF(e,i,n);else throw R(new Ps(VG+i.xe()+HG))}else jO(e,r,i,n)}function y7e(e){var t,n;if(e.f){for(;e.n>0;){if(t=H(e.k.Xb(e.n-1),76),n=t.Lk(),V(n,102)&&(H(n,19).Bb&UG)!=0&&(!e.e||n.pk()!=s7||n.Lj()!=0)&&t.md()!=null)return!0;--e.n}return!1}return e.n>0}function b7e(e){var t,n=H(e,54)._h(),r,i;if(n)try{if(r=null,t=cF((Pl(),N7),II(zO(n))),t&&(i=t.ai(),i&&(r=i.Fl(Yme(n.e)))),r&&r!=e)return b7e(r)}catch(e){if(e=GT(e),!V(e,63))throw R(e)}return e}function x7e(e,t,n){var r,i,a;n.Ug(`Remove overlaps`,1),n.dh(t,Dvt),r=H(eF(t,(Up(),o4)),27),e.f=r,e.a=B0e(H(eF(t,(gN(),_4)),300)),i=Ip(eF(t,(pz(),g8))),nue(e,(sv(i),i)),a=LF(r),adt(e,t,a,n),n.dh(t,zW)}function S7e(e){var t,n,r;if(ks(Fp(eF(e,(pz(),D6))))){for(r=new to,n=new Mg(Vf(mF(e).a.Kc(),new f));GP(n);)t=H(Rx(n),74),xP(t)&&ks(Fp(eF(t,O6)))&&oo(r.c,t);return r}return iy(),iy(),GJ}function C7e(e){if(!e)return xs(),gJ;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=_J[typeof t];return n?n(t):qXe(typeof t)}return e instanceof Array||e instanceof r.Array?new ni(e):new ii(e)}function w7e(e,t,n){var i,a,o=e.o;switch(i=H(Sv(e.p,n),252),a=i.i,a.b=oP(i),a.a=aP(i),a.b=r.Math.max(a.b,o.a),a.b>o.a&&!t&&(a.b=o.a),a.c=-(a.b-o.a)/2,n.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}XI(i),fct(i)}function T7e(e,t,n){var i,a,o=e.o;switch(i=H(Sv(e.p,n),252),a=i.i,a.b=oP(i),a.a=aP(i),a.a=r.Math.max(a.a,o.b),a.a>o.b&&!t&&(a.a=o.b),a.d=-(a.a-o.b)/2,n.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}XI(i),fct(i)}function E7e(e,t){var n,r,i,a,o;if(!t.dc()){if(i=H(t.Xb(0),131),t.gc()==1){Vrt(e,i,i,1,0,t);return}for(n=1;n0)try{i=MI(t,pB,Cz)}catch(e){throw e=GT(e),V(e,130)?(r=e,R(new US(r))):R(e)}return n=(!e.a&&(e.a=new spe(e)),e.a),i=0?H(G(n,i),58):null}function j7e(e,t){if(e<0)return iI(Xpt,K(B($q,1),Oz,1,5,[`index`,bD(e)]));if(t<0)throw R(new Ps(Zpt+t));return iI(`%s (%s) must be less than size (%s)`,K(B($q,1),Oz,1,5,[`index`,bD(e),bD(t)]))}function M7e(e){var t,n,r,i,a;if(e==null)return Az;for(a=new FT(Dz,`[`,`]`),n=e,r=0,i=n.length;r`,R(new Ps(r.a))}function J7e(e){var t,n=-e.a;return t=K(B(P9,1),yB,28,15,[43,48,48,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&xB,t[2]=t[2]+(n/60|0)%10&xB,t[3]=t[3]+(n%60/10|0)&xB,t[4]=t[4]+n%10&xB,Ak(t,0,t.length)}function Y7e(e){var t,n,r,i;for(e.g=new DO(H(E_(W5),297)),r=0,n=(WR(),w5),t=0;t=0?e.Lh(n,!0,!0):DP(e,i,!0),160)),H(r,220).Zl(t);else throw R(new Ps(VG+t.xe()+HG))}function Z7e(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=Vy(r.Math.floor(r.Math.log(e)/.6931471805599453)),(!t||e!=r.Math.pow(2,n))&&++n,n):FJe(kT(e))}function Q7e(e){var t,n,r,i,a=new Cd,o,s;for(n=new L(e);n.a2&&s.e.b+s.j.b<=2&&(i=s,r=o),a.a.zc(i,a),i.q=r);return a}function $7e(e,t,n){n.Ug(`Eades radial`,1),n.dh(t,zW),e.d=H(eF(t,(Up(),o4)),27),e.c=z(Ip(eF(t,(gN(),h4)))),e.e=B0e(H(eF(t,_4),300)),e.a=t$e(H(eF(t,zIt),434)),e.b=P3e(H(eF(t,MIt),354)),d3e(e),n.dh(t,zW)}function e9e(e,t){if(t.Ug(`Target Width Setter`,1),lS(e,(JF(),GLt)))yA(e,($F(),O4),Ip(eF(e,GLt)));else throw R(new Rs(`A target width has to be set if the TargetWidthWidthApproximator should be used.`));t.Vg()}function t9e(e,t){var n,r=new kA(e),i;return NT(r,t),pE(r,(fz(),DQ),t),pE(r,(sz(),E1),(_M(),d5)),pE(r,M$,(TA(),V3)),mi(r,(sN(),TX)),n=new uN,mb(n,r),$N(n,(WR(),U5)),i=new uN,mb(i,r),$N(i,C5),r}function n9e(e){switch(e.g){case 0:return new Es((hw(),Z0));case 1:return new Uce;case 2:return new Wce;default:throw R(new Ps(`No implementation is available for the crossing minimizer `+(e.f==null?``+e.g:e.f)))}}function r9e(e,t){var n,r,i,a,o;for(e.c[t.p]=!0,Cf(e.a,t),o=new L(t.j);o.a=a)o.$b();else for(i=o.Kc(),r=0;r0?Js():o<0&&m9e(e,t,-o),!0)}function aP(e){var t,n,r,i,a,o,s=0;if(e.b==0){for(o=s2e(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}else s=vhe(Pqe(Nv(jv(Yje(e.a),new Ke),new qe)));return s>0?s+e.n.d+e.n.a:0}function oP(e){var t,n,r,i,a,o,s=0;if(e.b==0)s=vhe(Pqe(Nv(jv(Yje(e.a),new We),new Ge)));else{for(o=c2e(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}return s>0?s+e.n.b+e.n.c:0}function sP(e){var t,n;if(e.c.length!=2)throw R(new Fs(`Order only allowed for two paths.`));t=(Db(0,e.c.length),H(e.c[0],18)),n=(Db(1,e.c.length),H(e.c[1],18)),t.d.i!=n.c.i&&(e.c.length=0,oo(e.c,n),oo(e.c,t))}function cP(e,t,n){var r;for(Bd(n,t.g,t.f),Vd(n,t.i,t.j),r=0;r<(!t.a&&(t.a=new Bg(_7,t,10,11)),t.a).i;r++)cP(e,H(G((!t.a&&(t.a=new Bg(_7,t,10,11)),t.a),r),27),H(G((!n.a&&(n.a=new Bg(_7,n,10,11)),n.a),r),27))}function lP(e,t){var n,i,a,o=H(Sv(e.b,t),127);for(n=o.a,a=H(H(Wx(e.r,t),21),87).Kc();a.Ob();)i=H(a.Pb(),117),i.c&&(n.a=r.Math.max(n.a,Ph(i.c)));if(n.a>0)switch(t.g){case 2:o.n.c=e.s;break;case 4:o.n.b=e.s}}function uP(e,t){var n=H(q(t,(WI(),YY)),17).a-H(q(e,YY),17).a,r,i;return n==0?(r=pm(vf(H(q(e,(Ew(),eX)),8)),H(q(e,tX),8)),i=pm(vf(H(q(t,eX),8)),H(q(t,tX),8)),nO(r.a*r.b,i.a*i.b)):n}function g9e(e,t){var n=H(q(t,(YI(),e4)),17).a-H(q(e,e4),17).a,r,i;return n==0?(r=pm(vf(H(q(e,(UR(),M2)),8)),H(q(e,N2),8)),i=pm(vf(H(q(t,M2),8)),H(q(t,N2),8)),nO(r.a*r.b,i.a*i.b)):n}function dP(e){var t,n=new Qs;return n.a+=`e_`,t=NJe(e),t!=null&&(n.a+=``+t),e.c&&e.d&&(ld((n.a+=` `,n),sj(e.c)),ld(cd((n.a+=`[`,n),e.c.i),`]`),ld((n.a+=Xht,n),sj(e.d)),ld(cd((n.a+=`[`,n),e.d.i),`]`)),n.a}function fP(e){switch(e.g){case 0:return new Vr;case 1:return new $ce;case 2:return new Zce;case 3:return new Xce;default:throw R(new Ps(`No implementation is available for the layout phase `+(e.f==null?``+e.g:e.f)))}}function _9e(e,t,n,i,a){var o=0;switch(a.g){case 1:o=r.Math.max(0,t.b+e.b-(n.b+i));break;case 3:o=r.Math.max(0,-e.b-i);break;case 2:o=r.Math.max(0,-e.a-i);break;case 4:o=r.Math.max(0,t.a+e.a-(n.a+i))}return o}function v9e(e,t,n){var r,i,a,o,s;if(n)for(i=n.a.length,r=new Ng(i),s=(r.b-r.a)*r.c<0?(zl(),N9):new Nf(r);s.Ob();)o=H(s.Pb(),17),a=ox(n,o.a),mbt in a.a||iK in a.a?hI(e,a,t):rpt(e,a,t),bCe(H(N_(e.b,Nk(a)),74))}function y9e(e){var t,n;switch(e.b){case-1:return!0;case 0:return n=e.t,n>1||n==-1?(e.b=-1,!0):(t=Pj(e),t&&(Rl(),t.lk()==hxt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function pP(e,t){var n,r,i,a;if(cz(e),e.c!=0||e.a!=123)throw R(new Vs(yz((cf(),Hbt))));if(a=t==112,r=e.d,n=hp(e.i,125,r),n<0)throw R(new Vs(yz((cf(),Ubt))));return i=Ey(e.i,r,n),e.d=n+1,qHe(i,a,(e.e&512)==512)}function mP(e){var t,n,r=e.a.c.length,i,a,o,s;if(r>0)for(o=e.c.d,s=e.d.d,i=Sf(pm(new ku(s.a,s.b),o),1/(r+1)),a=new ku(o.a,o.b),n=new L(e.a);n.a=0&&r=0?e.Lh(n,!0,!0):DP(e,i,!0),160)),H(r,220).Wl(t);throw R(new Ps(VG+t.xe()+ibt))}function vP(){tve();var e;return bHt?H(cF((Pl(),N7),pq),2038):(_d(rJ,new jse),Yut(),e=H(V(Fy((Pl(),N7),pq),560)?Fy(N7,pq):new uNe,560),bHt=!0,Ipt(e),qpt(e),hv((X_e(),WVt),e,new Zn),db(N7,pq,e),e)}function yP(e,t){var n,r,i,a;e.j=-1,jd(e.e)?(n=e.i,a=e.i!=0,Hx(e,t),r=new XS(e.e,3,e.c,null,t,n,a),i=t.zl(e.e,e.c,null),i=p6e(e,t,i),i?(i.nj(r),i.oj()):ST(e.e,r)):(Hx(e,t),i=t.zl(e.e,e.c,null),i&&i.oj())}function bP(e,t){var n,r,i=0;if(r=t[0],r>=e.length)return-1;for(n=(Ob(r,e.length),e.charCodeAt(r));n>=48&&n<=57&&(i=i*10+(n-48),++r,!(r>=e.length));)n=(Ob(r,e.length),e.charCodeAt(r));return r>t[0]?t[0]=r:i=-1,i}function C9e(e){var t,n,i,a=H(e.a,17).a,o=H(e.b,17).a;return n=a,i=o,t=r.Math.max(r.Math.abs(a),r.Math.abs(o)),a<=0&&a==o?(n=0,i=o-1):a==-t&&o!=t?(n=o,i=a,o>=0&&++n):(n=-o,i=a),new qu(bD(n),bD(i))}function w9e(e,t,n,r){for(var i=0,a,o,s,l,u;i=0&&u>=0&&l=e.i)throw R(new js(Mbt+t+mK+e.i));if(n>=e.i)throw R(new js(Nbt+n+mK+e.i));return r=e.g[n],t!=n&&(t>16),t=r>>16&16,n=16-t,e>>=t,r=e-256,t=r>>16&8,n+=t,e<<=t,r=e-JB,t=r>>16&4,n+=t,e<<=t,r=e-Kz,t=r>>16&2,n+=t,e<<=t,r=e>>14,t=r&~(r>>1),n+2-t)}function TP(e){ay();var t,n,r,i;for(UY=new to,CTt=new eo,STt=new to,t=(!e.a&&(e.a=new Bg(_7,e,10,11)),e.a),dft(t),i=new Mf(t);i.e!=i.i.gc();)r=H(cA(i),27),HS(UY,r,0)==-1&&(n=new to,Cf(STt,n),T1e(r,n));return STt}function E9e(e,t,n){var r,i,a,o;e.a=n.b.d,V(t,326)?(i=BF(H(t,74),!1,!1),a=bN(i),r=new ca(e),Ax(a,r),$I(a,i),t.of((pz(),j6))!=null&&Ax(H(t.of(j6),75),r)):(o=H(t,422),o.rh(o.nh()+e.a.a),o.sh(o.oh()+e.a.b))}function D9e(e,t){var n,r,i=new to;for(r=iA(t.a,0);r.b!=r.d.c;)n=H(lx(r),65),n.c.g==e.g&&Qu(q(n.b,(YI(),n4)))!==Qu(q(n.c,n4))&&!Px(new ig(null,new kb(i,16)),new Yde(n))&&oo(i.c,n);return ff(i,new vie),i}function O9e(e,t,n){var r,i,a,o;return V(t,153)&&V(n,153)?(a=H(t,153),o=H(n,153),e.a[a.a][o.a]+e.a[o.a][a.a]):V(t,250)&&V(n,250)&&(r=H(t,250),i=H(n,250),r.a==i.a)?H(q(i.a,(WI(),YY)),17).a:0}function EP(e,t){var n,i,a,o,s,l,u,d=z(Ip(q(t,(sz(),$1))));for(u=e[0].n.a+e[0].o.a+e[0].d.c+d,l=1;l=0?n:(s=q_(pm(new ku(o.c+o.b/2,o.d+o.a/2),new ku(a.c+a.b/2,a.d+a.a/2))),-(Sst(a,o)-1)*s)}function A9e(e,t,n){var r;sl(new ig(null,(!n.a&&(n.a=new Bg(d7,n,6,6)),new kb(n.a,16))),new fbe(e,t)),sl(new ig(null,(!n.n&&(n.n=new Bg(g7,n,1,7)),new kb(n.n,16))),new pbe(e,t)),r=H(eF(n,(pz(),j6)),75),r&&Hw(r,e,t)}function DP(e,t,n){var r,i,a=yR((MN(),r9),e.Dh(),t);if(a)return Rl(),H(a,69).xk()||(a=Lb(qS(r9,a))),i=(r=e.Ih(a),H(r>=0?e.Lh(r,!0,!0):DP(e,a,!0),160)),H(i,220).Sl(t,n);throw R(new Ps(VG+t.xe()+ibt))}function j9e(e,t,n,r){var i=e.d[t],a,o,s,l;if(i){if(a=i.g,l=i.i,r!=null){for(s=0;s=n&&(r=t,u=(l.c+l.a)/2,o=u-n,l.c<=u-n&&(i=new rh(l.c,o),yg(e,r++,i)),s=u+n,s<=l.a&&(a=new rh(s,l.a),Eb(r,e.c.length),tu(e.c,r,a)))}function I9e(e,t,n){var r,i,a,o,s,l;if(!t.dc()){for(i=new $c,l=t.Kc();l.Ob();)for(s=H(l.Pb(),40),hv(e.a,bD(s.g),bD(n)),o=(r=iA(new za(s).a.d,0),new Ba(r));Age(o.a);)a=H(lx(o.a),65).c,Dx(i,a,i.c.b,i.c);I9e(e,i,n+1)}}function L9e(e){var t;if(!e.c&&e.g==null)e.d=e.bj(e.f),_S(e,e.d),t=e.d;else if(e.g==null)return!0;else if(e.i==0)return!1;else t=H(e.g[e.i-1],51);return t==e.b&&null.Vm>=null.Um()?(dF(e),L9e(e)):t.Ob()}function jP(e){if(this.a=e,e.c.i.k==(sN(),TX))this.c=e.c,this.d=H(q(e.c.i,(fz(),OQ)),64);else if(e.d.i.k==TX)this.c=e.d,this.d=H(q(e.d.i,(fz(),OQ)),64);else throw R(new Ps(`Edge `+e+` is not an external edge.`))}function R9e(e,t){var n,r,i=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,3,i,e.b)),t?t!=e&&(Pw(e,t.zb),AGe(e,t.d),n=(r=t.c,r??t.zb),DKe(e,n==null||_m(n,t.zb)?null:n)):(Pw(e,null),AGe(e,0),DKe(e,null))}function z9e(e,t){var n;this.e=(O_(),E_(e),O_(),w$e(e)),this.c=(E_(t),w$e(t)),gCe(this.e.Rd().dc()==this.c.Rd().dc()),this.d=CO(this.e),this.b=CO(this.c),n=eg($q,[Gz,Oz],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=n,tKe(this)}function B9e(e){var t=(!PSt&&(PSt=Oft()),PSt);return`"`+e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(e){return yFe(e,t)})+`"`}function MP(e,t,n,i,a,o){var s,l,u,d,f;if(a!=0)for(Qu(e)===Qu(n)&&(e=e.slice(t,t+a),t=0),u=n,l=t,d=t+a;l=o)throw R(new gm(t,o));return i=n[t],o==1?r=null:(r=dS(yVt,PK,424,o-1,0,1),qI(n,0,r,0,t),a=o-t-1,a>0&&qI(n,t+1,r,t,a)),Yk(e,r),s7e(e,t,i),i}function W9e(e){var t,n;if(e.f){for(;e.n0?UO(n):JD(UO(n))),yA(t,j1,a)}function J9e(e,t){var n;t.Ug(`Partition preprocessing`,1),n=H(Ox(jv(uC(jv(new ig(null,new kb(e.a,16)),new Rte),new zte),new Bte),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15),sl(n.Oc(),new Vte),t.Vg()}function Y9e(e,t){var n,r,i,a,o=e.j;for(t.a!=t.b&&ff(o,new ore),i=o.c.length/2|0,r=0;r0&&fI(e,n,t),a):r.a==null?i.a==null?0:(fI(e,n,t),1):(fI(e,t,n),-1)}function Z9e(e,t){var n,r,i=t.b.b,a,o;for(e.a=dS(nJ,fH,15,i,0,1),e.b=dS(I9,DV,28,i,16,1),o=iA(t.b,0);o.b!=o.d.c;)a=H(lx(o),40),e.a[a.g]=new $c;for(r=iA(t.a,0);r.b!=r.d.c;)n=H(lx(r),65),e.a[n.b.g].Fc(n),e.a[n.c.g].Fc(n)}function Q9e(e,t){var n,r,i,a;e.Pj()?(n=e.Ej(),a=e.Qj(),++e.j,e.qj(n,e.Zi(n,t)),r=e.Ij(3,null,t,n,a),e.Mj()?(i=e.Nj(t,null),i?(i.nj(r),i.oj()):e.Jj(r)):e.Jj(r)):(B_(e,t),e.Mj()&&(i=e.Nj(t,null),i&&i.oj()))}function $9e(e,t,n){var r,i,a;e.Pj()?(a=e.Qj(),DD(e,t,n),r=e.Ij(3,null,n,t,a),e.Mj()?(i=e.Nj(n,null),e.Tj()&&(i=e.Uj(n,i)),i?(i.nj(r),i.oj()):e.Jj(r)):e.Jj(r)):(DD(e,t,n),e.Mj()&&(i=e.Nj(n,null),i&&i.oj()))}function PP(e,t){var n,r,i,a,o=jF(e.e.Dh(),t);for(i=new Gn,n=H(e.g,124),a=e.i;--a>=0;)r=n[a],o.am(r.Lk())&&_S(i,r);!Ift(e,i)&&jd(e.e)&&Oo(e,t.Jk()?xy(e,6,t,(iy(),GJ),null,-1,!1):xy(e,t.tk()?2:1,t,null,null,-1,!1))}function FP(e,t){var n,r,i,a,o;return e.a==(nN(),XZ)||(a=t.a.c,n=t.a.c+t.a.b,!(t.j&&(r=t.A,o=r.c.c.a-r.o.a/2,i=a-(r.n.a+r.o.a),i>o)||t.q&&(r=t.C,o=r.c.c.a-r.o.a/2,i=r.n.a-n,i>o)))}function IP(e){nIe();for(var t,n=new Ex,r,i=new L(e.e.b),a,o,s;i.a1?e.e*=z(e.a):e.f/=z(e.a),VXe(e),f1e(e),Aat(e),pE(e.b,(fA(),HY),e.g)}function net(e,t,n){var r=0,i,a,o,s,l=n;for(t||(r=n*(e.c.length-1),l*=-1),a=new L(e);a.a=0?e.Ah(null):e.Ph().Th(e,-1-t,null,null)),e.Bh(H(i,54),n),r&&r.oj(),e.vh()&&e.wh()&&n>-1&&ST(e,new Vg(e,9,n,a,i)),i):a}function get(e,t){var n,r,i,a=e.b.Ce(t),o;for(r=(n=e.a.get(a),n??dS($q,Oz,1,0,5,1)),o=0;o>5,i>=e.d)return e.e<0;if(n=e.a[i],t=1<<(t&31),e.e<0){if(r=Vqe(e),i>16)),15).dd(a),s0&&(!(Nd(e.a.c)&&t.n.d)&&!(Pd(e.a.c)&&t.n.b)&&(t.g.d+=r.Math.max(0,i/2-.5)),!(Nd(e.a.c)&&t.n.a)&&!(Pd(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function Oet(e){var t,n,i,a=new to,o=dst(e,a);if(t=H(q(e,(fz(),KQ)),10),t)for(i=new L(t.j);i.a>t,a=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(o=r?zB:0,a=n>>t-22,i=e.m>>t-22|n<<44-t):(o=r?zB:0,a=r?RB:0,i=n>>t-44),gf(i&RB,a&RB,o&zB)}function qP(e){var t,n,i,a,o,s;for(this.c=new to,this.d=e,i=KB,a=KB,t=qB,n=qB,s=iA(e,0);s.b!=s.d.c;)o=H(lx(s),8),i=r.Math.min(i,o.a),a=r.Math.min(a,o.b),t=r.Math.max(t,o.a),n=r.Math.max(n,o.b);this.a=new Bv(i,a,t-i,n-a)}function jet(e,t){for(var n,r,i,a=new L(e.b),o,s;a.a0&&V(t,44)&&(e.a._j(),u=H(t,44),l=u.ld(),a=l==null?0:Nw(l),o=yTe(e.a,a),n=e.a.d[o],n)){for(r=H(n.g,379),d=n.i,s=0;s=2)for(n=a.Kc(),t=Ip(n.Pb());n.Ob();)o=t,t=Ip(n.Pb()),i=r.Math.min(i,(sv(t),t-(sv(o),o)));return i}function Get(e,t){var n,r,i=new to;for(r=iA(t.a,0);r.b!=r.d.c;)n=H(lx(r),65),n.b.g==e.g&&!_m(n.b.c,kW)&&Qu(q(n.b,(YI(),n4)))!==Qu(q(n.c,n4))&&!Px(new ig(null,new kb(i,16)),new Xde(n))&&oo(i.c,n);return ff(i,new Sie),i}function QP(e,t){var n,r,i;if(Qu(t)===Qu(E_(e)))return!0;if(!V(t,15)||(r=H(t,15),i=e.gc(),i!=r.gc()))return!1;if(V(r,59)){for(n=0;n0&&(i=n),o=new L(e.f.e);o.a0?(--t,--n):r>=0&&i<0?(t+=1,n+=1):r>0&&i>=0?(--t,n+=1):(t+=1,--n),new qu(bD(t),bD(n))}function stt(e,t){return e.ct.c?1:e.bt.b?1:e.a==t.a?e.d==(px(),i2)&&t.d==r2?-1:+(e.d==r2&&t.d==i2):Nw(e.a)-Nw(t.a)}function ctt(e,t){var n,r,i,a=t.a,o=a.c.i==t.b?a.d:a.c;return r=a.c.i==t.b?a.c:a.d,i=nk(e.a,o,r),i>0&&i0):i<0&&-i0)}function ltt(e,t,n,r){var i=(t-e.d)/e.c.c.length,a=0,o,s,l,u,d,f;for(e.a+=n,e.d=t,f=new L(e.c);f.a>24;return o}function dtt(e){if(e.ze()){var t=e.c;e.o=t.Ae()?`[`+t.n:t.ze()?`[`+t.xe():`[L`+t.xe()+`;`,e.b=t.we()+`[]`,e.k=t.ye()+`[]`;return}var n=e.j,r=e.d;r=r.split(`/`),e.o=kk(`.`,[n,kk(`$`,r)]),e.b=kk(`.`,[n,kk(`.`,r)]),e.k=r[r.length-1]}function ftt(e,t){var n,r,i,a,o=null;for(a=new L(e.e.a);a.a=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(r=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=r,r=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=r);e.c=!0}}function iF(e,t){var n,r,i,a,o,s,l,u=-1,d=0;for(o=e,s=0,l=o.length;s0&&++d;++u}return d}function aF(e){var t,n=new qf(Ec(e.Rm));return n.a+=`@`,ld(n,(t=Nw(e)>>>0,t.toString(16))),e.Vh()?(n.a+=` (eProxyURI: `,cd(n,e._h()),e.Kh()&&(n.a+=` eClass: `,cd(n,e.Kh())),n.a+=`)`):e.Kh()&&(n.a+=` (eClass: `,cd(n,e.Kh()),n.a+=`)`),n.a}function oF(e){var t,n,r,i;if(e.e)throw R(new Fs((Rp(qCt),rht+qCt.k+iht)));for(e.d==(WD(),D8)&&LR(e,T8),n=new L(e.a.a);n.a>24}return n}function wtt(e,t,n){var r,i=H(Sv(e.i,t),314),a;if(!i){if(i=new bC(e.d,t,n),r_(e.i,t,i),Y$e(t))YSe(e.a,t.c,t.b,i);else switch(a=q5e(t),r=H(Sv(e.p,a),252),a.g){case 1:case 3:i.j=!0,zme(r,t.b,i);break;case 4:case 2:i.k=!0,zme(r,t.c,i)}}return i}function Ttt(e,t){var n,r,i,a,o,s,l=mp(e.c-e.b&e.a.length-1),u=null,d=null;for(a=new Ov(e);a.a!=a.b;)i=H(lD(a),10),n=(s=H(q(i,(fz(),zQ)),12),s?s.i:null),r=(o=H(q(i,BQ),12),o?o.i:null),(u!=n||d!=r)&&(iet(l,t),u=n,d=r),oo(l.c,i);iet(l,t)}function Ett(e,t,n,r){var i,a,o,s=new Gn,l=jF(e.e.Dh(),t),u;if(i=H(e.g,124),Rl(),H(t,69).xk())for(o=0;o=0)return a;for(o=1,l=new L(t.j);l.a=0)return a;for(o=1,l=new L(t.j);l.a0&&t.Ne((Db(i-1,e.c.length),H(e.c[i-1],10)),a)>0;)jx(e,i,(Db(i-1,e.c.length),H(e.c[i-1],10))),--i;Db(i,e.c.length),e.c[i]=a}n.a=new eo,n.b=new eo}function Att(e,t,n){var r,i,a,o,s,l,u,d=(r=H(t.e&&t.e(),9),new Om(r,H(im(r,r.length),9),0));for(l=JI(n,`[\\[\\]\\s,]+`),a=l,o=0,s=a.length;o=0?(t||(t=new Zs,r>0&&od(t,(hS(0,r,e.length),e.substr(0,r)))),t.a+=`\\`,U_(t,n&xB)):t&&U_(t,n&xB);return t?t.a:e}function jtt(e){for(var t,n=new L(e.a.a.b),i;n.a0&&(!(Nd(e.a.c)&&t.n.d)&&!(Pd(e.a.c)&&t.n.b)&&(t.g.d-=r.Math.max(0,i/2-.5)),!(Nd(e.a.c)&&t.n.a)&&!(Pd(e.a.c)&&t.n.c)&&(t.g.a+=r.Math.max(0,i-1)))}function Mtt(e,t,n){var r,i;if((e.c-e.b&e.a.length-1)==2)t==(WR(),w5)||t==C5?(jC(H(xE(e),15),(xj(),G8)),jC(H(xE(e),15),K8)):(jC(H(xE(e),15),(xj(),K8)),jC(H(xE(e),15),G8));else for(i=new Ov(e);i.a!=i.b;)r=H(lD(i),15),jC(r,n)}function Ntt(e,t){var n,r,i=ph(new qfe(e)),a,o,s=new Hb(i,i.c.length),l;for(a=ph(new qfe(t)),l=new Hb(a,a.c.length),o=null;s.b>0&&l.b>0&&(n=(zp(s.b>0),H(s.a.Xb(s.c=--s.b),27)),r=(zp(l.b>0),H(l.a.Xb(l.c=--l.b),27)),n==r);)o=n;return o}function Ptt(e,t,n){var r,i,a,o;SLe(e,t)>SLe(e,n)?(r=fO(n,(WR(),C5)),e.d=r.dc()?0:Hke(H(r.Xb(0),12)),o=fO(t,U5),e.b=o.dc()?0:Hke(H(o.Xb(0),12))):(i=fO(n,(WR(),U5)),e.d=i.dc()?0:Hke(H(i.Xb(0),12)),a=fO(t,C5),e.b=a.dc()?0:Hke(H(a.Xb(0),12)))}function Ftt(e,t){for(var n=e.o.a,r,i,a=H(H(Wx(e.r,t),21),87).Kc();a.Ob();)i=H(a.Pb(),117),i.e.a=n*z(Ip(i.b.of(DY))),i.e.b=(r=i.b,r.pf((pz(),$6))?r.ag()==(WR(),w5)?-r.Mf().b-z(Ip(r.of($6))):z(Ip(r.of($6))):r.ag()==(WR(),w5)?-r.Mf().b:0)}function Itt(e,t){var n,r,i,a;for(t.Ug(`Self-Loop pre-processing`,1),r=new L(e.a);r.ae.c));o++)i.a>=e.s&&(a<0&&(a=o),s=o);return l=(e.s+e.c)/2,a>=0&&(r=iot(e,t,a,s),l=J_e((Db(r,t.c.length),H(t.c[r],339))),AP(t,r,n)),l}function uF(e,t,n){var r,i,a,o=(a=new Joe,a),s,l,u;for(FKe(o,(sv(t),t)),u=(!o.b&&(o.b=new Ep((_z(),Q7),t9,o)),o.b),l=1;l0&&Hlt(this,i)}function Btt(e,t,n,r,i,a){var o,s,l;if(!i[t.a]){for(i[t.a]=!0,o=r,!o&&(o=new DVe),Cf(o.e,t),l=a[t.a].Kc();l.Ob();)s=H(l.Pb(),290),s.d!=n&&s.c!=n&&(s.c!=t&&Btt(e,s.c,t,o,i,a),s.d!=t&&Btt(e,s.d,t,o,i,a),Cf(o.c,s),qT(o.d,s.b));return o}return null}function Vtt(e){for(var t=0,n,r,i=new L(e.e),a,o,s;i.a=2}function Htt(e,t,n,r,i){for(var a=e.c.d.j,o=H(mA(n,0),8),s,l,u,d=1;d1||(t=bg(Z8,K(B(a5,1),cB,95,0,[X8,$8])),MT(vFe(t,e))>1)||(r=bg(i5,K(B(a5,1),cB,95,0,[r5,n5])),MT(vFe(r,e))>1))}function Wtt(e,t,n){for(var r,i,a=new L(e.t);a.a0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&Ih(t,r.b));for(i=new L(e.i);i.a0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&Ih(n,r.a))}function dF(e){var t,n,r,i,a;if(e.g==null&&(e.d=e.bj(e.f),_S(e,e.d),e.c))return a=e.f,a;if(t=H(e.g[e.i-1],51),i=t.Pb(),e.e=t,n=e.bj(i),n.Ob())e.d=n,_S(e,n);else for(e.d=null;!t.Ob()&&(P_(e.g,--e.i,null),e.i!=0);)r=H(e.g[e.i-1],51),t=r;return i}function Gtt(e,t){var n,r=t,i=r.Lk(),a,o,s;if(PF(e.e,i)){if(i.Si()&&yx(e,i,r.md()))return!1}else for(s=jF(e.e.Dh(),i),n=H(e.g,124),a=0;a1||n>1)return 2;return t+n==1?2:0}function hF(e,t){var n,i,a,o=e.a*oV+e.b*1502,s,l=e.b*oV+11;return n=r.Math.floor(l*sV),o+=n,l-=n*Bmt,o%=Bmt,e.a=o,e.b=l,t<=24?r.Math.floor(e.a*SCt[t]):(a=e.a*(1<=2147483648&&(i-=4294967296),i)}function ent(e,t,n){var r,i,a=new to,o,s,l,u=new $c;for(o=new $c,Lct(e,u,o,t),vut(e,u,o,t,n),l=new L(e);l.ar.b.g&&oo(a.c,r);return a}function tnt(e,t,n){var r,i,a,o,s=e.c,l;for(o=(n.q?n.q:(iy(),iy(),KJ)).vc().Kc();o.Ob();)a=H(o.Pb(),44),r=!Mc(jv(new ig(null,new kb(s,16)),new Qi(new rbe(t,a)))).Bd((ol(),iY)),r&&(l=a.md(),V(l,4)&&(i=r1e(l),i!=null&&(l=i)),t.qf(H(a.ld(),149),l))}function nnt(e,t,n){var r,i;if(Cv(e.b),u_(e.b,(GD(),G4),(Ol(),g3)),u_(e.b,K4,t.g),u_(e.b,q4,t.a),e.a=_R(e.b,t),n.Ug(`Compaction by shrinking a tree`,e.a.c.length),t.i.c.length>1)for(i=new L(e.a);i.a=0?e.Lh(r,!0,!0):DP(e,a,!0),160)),H(i,220).Xl(t,n)}else throw R(new Ps(VG+t.xe()+HG))}function rnt(e,t){var n,r,i,a,o;if(t){for(a=V(e.Cb,90)||V(e.Cb,102),o=!a&&V(e.Cb,331),r=new Mf((!t.a&&(t.a=new dg(t,j7,t)),t.a));r.e!=r.i.gc();)if(n=H(cA(r),89),i=GI(n),a?V(i,90):o?V(i,156):i)return i;return a?(_z(),q7):(_z(),K7)}return null}function int(e,t){var n,r,i,a;for(t.Ug(`Resize child graph to fit parent.`,1),r=new L(e.b);r.a=2*t&&Cf(n,new rh(o[r-1]+t,o[r]-t));return n}function snt(e,t,n){var r,i,a,o,s,l,u,d;if(n)for(a=n.a.length,r=new Ng(a),s=(r.b-r.a)*r.c<0?(zl(),N9):new Nf(r);s.Ob();)o=H(s.Pb(),17),i=ox(n,o.a),i&&(l=sze(e,(u=(Cc(),d=new rme,d),t&&bnt(u,t),u),i),ww(l,sx(i,sK)),DM(i,l),k7e(i,l),EE(e,i,l))}function _F(e){var t,n,r,i,a,o;if(!e.j){if(o=new tse,t=e9,a=t.a.zc(e,t),a==null){for(r=new Mf(Cy(e));r.e!=r.i.gc();)n=H(cA(r),29),i=_F(n),b_(o,i),_S(o,n);t.a.Bc(e)}KE(o),e.j=new gd((H(G(ly((A_(),R7).o),11),19),o.i),o.g),Ix(e).b&=-33}return e.j}function cnt(e){var t,n,r,i;if(e==null)return null;if(r=FL(e,!0),i=Mq.length,_m(r.substr(r.length-i,i),Mq)){if(n=r.length,n==4){if(t=(Ob(0,r.length),r.charCodeAt(0)),t==43)return aUt;if(t==45)return iUt}else if(n==3)return aUt}return new zpe(r)}function lnt(e){var t,n=e.l,r;return n&n-1||(r=e.m,r&r-1)||(t=e.h,t&t-1)||t==0&&r==0&&n==0?-1:t==0&&r==0&&n!=0?rKe(n):t==0&&r!=0&&n==0?rKe(r)+22:t!=0&&r==0&&n==0?rKe(t)+44:-1}function vF(e,t){var n,r,i=t.a&e.f,a=null,o;for(r=e.b[i];;r=r.b){if(r==t){a?a.b=t.b:e.b[i]=t.b;break}a=r}for(o=t.f&e.f,a=null,n=e.c[o];;n=n.d){if(n==t){a?a.d=t.d:e.c[o]=t.d;break}a=n}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function unt(e,t){var n;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(n=H(ov(H(Yx(e.b,t.a),260)),260),n.a=0,++e.c):(n=H(ov(H(N_(e.b,t.a),260)),260),--n.a,t.e?t.e.c=t.c:n.b=H(ov(t.c),511),t.c?t.c.e=t.e:n.c=H(ov(t.e),511)),--e.d}function dnt(e){var t,n=e.o,i,a,o,s,l,u,d,f;for(t=e.p,s=Cz,a=pB,l=Cz,o=pB,d=0;d0),a.a.Xb(a.c=--a.b),tm(a,i),zp(a.b3&&ZS(e,0,t-3))}function gnt(e){var t,n,r,i;return Qu(q(e,(sz(),$$)))===Qu((gD(),H8))?!e.e&&Qu(q(e,z$))!==Qu((zT(),dQ)):(r=H(q(e,$jt),299),i=ks(Fp(q(e,iMt)))||Qu(q(e,V$))===Qu((Cw(),MZ)),t=H(q(e,Qjt),17).a,n=e.a.c.length,!i&&r!=(zT(),dQ)&&(t==0||t>n))}function _nt(e){for(var t,n=0;n0);n++);if(n>0&&n0);t++);return t>0&&n>16!=6&&t){if(Mj(e,t))throw R(new Ps(KG+eet(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?Dj(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=vA(t,e,6,r)),r=gTe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,6,t,t))}function ynt(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(Mj(e,t))throw R(new Ps(KG+zL(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?I4e(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=vA(t,e,12,r)),r=_Te(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,3,t,t))}function bnt(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=9&&t){if(Mj(e,t))throw R(new Ps(KG+qat(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?D4e(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=vA(t,e,9,r)),r=vTe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,9,t,t))}function yF(e){var t,n,r=Pj(e),i,a=e.j;if(a==null&&r)return e.Jk()?null:r.ik();if(V(r,156)){if(n=r.jk(),n&&(i=n.wi(),i!=e.i)){if(t=H(r,156),t.nk())try{e.g=i.ti(t,a)}catch(t){if(t=GT(t),V(t,82))e.g=null;else throw R(t)}e.i=i}return e.g}return null}function xnt(e){var t=new to;return Cf(t,new Gl(new ku(e.c,e.d),new ku(e.c+e.b,e.d))),Cf(t,new Gl(new ku(e.c,e.d),new ku(e.c,e.d+e.a))),Cf(t,new Gl(new ku(e.c+e.b,e.d+e.a),new ku(e.c+e.b,e.d))),Cf(t,new Gl(new ku(e.c+e.b,e.d+e.a),new ku(e.c,e.d+e.a))),t}function Snt(e){var t,n,r;if(e==null)return Az;try{return OO(e)}catch(i){if(i=GT(i),V(i,103))return t=i,r=Ec(ZE(e))+`@`+(n=(el(),n1e(e)>>>0),n.toString(16)),A1e(IJe(),(il(),`Exception during lenientFormat for `+r),t),`<`+r+` threw `+Ec(t.Rm)+`>`;throw R(i)}}function Cnt(e,t,n){for(var r,i,a=t.a.ec().Kc();a.Ob();)i=H(a.Pb(),74),r=H(N_(e.b,i),272),!r&&(ib(qM(i))==ib(YM(i))?Trt(e,i,n):qM(i)==ib(YM(i))?N_(e.c,i)==null&&N_(e.b,YM(i))!=null&&AR(e,i,n,!1):N_(e.d,i)==null&&N_(e.b,qM(i))!=null&&AR(e,i,n,!0))}function wnt(e,t){for(var n,r,i=e.Kc(),a,o,s,l;i.Ob();)for(r=H(i.Pb(),10),s=new uN,mb(s,r),$N(s,(WR(),C5)),pE(s,(fz(),Dkt),(sp(),!0)),o=t.Kc();o.Ob();)a=H(o.Pb(),10),l=new uN,mb(l,a),$N(l,U5),pE(l,Dkt,!0),n=new yy,pE(n,Dkt,!0),fb(n,s),hb(n,l)}function Tnt(e,t,n,r){var i=I$e(e,t,n),a=I$e(e,n,t),o=H(N_(e.c,t),118),s=H(N_(e.c,n),118);i1)for(t=Qf((n=new Fo,++e.b,n),e.d),s=iA(a,0);s.b!=s.d.c;)o=H(lx(s),125),AF(hl(ml(gl(pl(new Po,1),0),t),o))}function knt(e,t,n){var r,i,a,o,s;for(n.Ug(`Breaking Point Removing`,1),e.a=H(q(t,(sz(),q$)),223),a=new L(t.b);a.a>16!=11&&t){if(Mj(e,t))throw R(new Ps(KG+Kat(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?L4e(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=vA(t,e,10,r)),r=QTe(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,11,t,t))}function jnt(e){for(var t,n,r=new yT(new ki(e.b).a),i;r.b;)n=Dw(r),i=H(n.ld(),12),t=H(n.md(),10),pE(t,(fz(),WQ),i),pE(i,KQ,t),pE(i,jQ,(sp(),!0)),$N(i,H(q(t,OQ),64)),q(t,OQ),pE(i.i,(sz(),E1),(_M(),p5)),H(q($_(i.i),AQ),21).Fc((UF(),oQ))}function Mnt(e,t,n){var r,i,a=0,o=0,s,l;if(e.c)for(l=new L(e.d.i.j);l.aa.a?-1:i.al){for(d=e.d,e.d=dS(mVt,IK,66,2*l+4,0,1),a=0;a=0x8000000000000000?(aC(),yJ):(i=!1,e<0&&(i=!0,e=-e),r=0,e>=HB&&(r=Vy(e/HB),e-=r*HB),n=0,e>=VB&&(n=Vy(e/VB),e-=n*VB),t=Vy(e),a=gf(t,n,r),i&&OE(a),a)}function Knt(e){var t,n,r,i,a=new to;if(RC(e.b,new Rue(a)),e.b.c.length=0,a.c.length!=0){for(t=(Db(0,a.c.length),H(a.c[0],82)),n=1,r=a.c.length;n=-t&&i==t?new qu(bD(n-1),bD(i)):new qu(bD(n),bD(i-1))}function Znt(){return mz(),K(B(BDt,1),cB,81,0,[gDt,pDt,IX,DDt,PDt,WX,iZ,YX,MDt,CDt,kDt,JX,NDt,zX,IDt,FX,QX,FDt,HX,eZ,RDt,jDt,cDt,$X,zDt,nZ,LDt,UX,vDt,ODt,EDt,aZ,dDt,RX,KX,uDt,qX,TDt,xDt,XX,BX,mDt,fDt,VX,SDt,ZX,rZ,lDt,ADt,wDt,GX,yDt,_Dt,tZ,LX,bDt,hDt])}function Qnt(e,t,n){e.d=0,e.b=0,t.k==(sN(),kX)&&n.k==kX&&H(q(t,(fz(),WQ)),10)==H(q(n,WQ),10)&&(WUe(t).j==(WR(),w5)?Ptt(e,t,n):Ptt(e,n,t)),t.k==kX&&n.k==DX?WUe(t).j==(WR(),w5)?e.d=1:e.b=1:n.k==kX&&t.k==DX&&(WUe(n).j==(WR(),w5)?e.b=1:e.d=1),g2e(e,t,n)}function CF(e){var t,n,r,i,a,o,s,l,u,d,f=q6e(e);return t=e.a,l=t!=null,l&&jh(f,`category`,e.a),i=Yge(new Oi(e.d)),o=!i,o&&(u=new ai,xC(f,`knownOptions`,u),n=new Ufe(u),Ax(new Oi(e.d),n)),a=Yge(e.g),s=!a,s&&(d=new ai,xC(f,`supportedFeatures`,d),r=new Wfe(d),Ax(e.g,r)),f}function $nt(e){var t,n,r=!1,i,a,o,s,l,u;for(t=336,n=0,a=new dm(e.length),s=e,l=0,u=s.length;l>16!=7&&t){if(Mj(e,t))throw R(new Ps(KG+D5e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?Oj(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=H(t,54).Rh(e,1,IBt,r)),r=wg(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,7,t,t))}function nrt(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(Mj(e,t))throw R(new Ps(KG+jD(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?Aj(e,r):e.Cb.Th(e,-1-n,null,r))),t&&(r=H(t,54).Rh(e,0,RBt,r)),r=nje(e,t,r),r&&r.oj()}else e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,3,t,t))}function rrt(e,t){KF();var n,r,i,a,o,s,l,u,d;return t.d>e.d&&(s=e,e=t,t=s),t.d<63?lit(e,t):(o=(e.d&-2)<<4,u=iVe(e,o),d=iVe(t,o),r=NL(e,zx(u,o)),i=NL(t,zx(d,o)),l=rrt(u,d),n=rrt(r,i),a=rrt(NL(u,r),NL(i,d)),a=Blt(Blt(a,l),n),a=zx(a,o),l=zx(l,o<<1),Blt(Blt(l,a),n))}function TF(){TF=D,_0=new vu(cvt,0),m0=new vu(`LONGEST_PATH`,1),h0=new vu(`LONGEST_PATH_SOURCE`,2),d0=new vu(`COFFMAN_GRAHAM`,3),p0=new vu(ygt,4),v0=new vu(`STRETCH_WIDTH`,5),g0=new vu(`MIN_WIDTH`,6),u0=new vu(`BF_MODEL_ORDER`,7),f0=new vu(`DF_MODEL_ORDER`,8)}function EF(e,t,n){var r,i,a,o=wD(e,n),s=dS(CX,nU,10,t.length,0,1);for(r=0,a=o.Kc();a.Ob();)i=H(a.Pb(),12),ks(Fp(q(i,(fz(),jQ))))&&(s[r++]=H(q(i,KQ),10));if(r=0;a+=n?1:-1)o|=t.c.lg(l,a,n,r&&!ks(Fp(q(t.j,(fz(),kQ))))&&!ks(Fp(q(t.j,(fz(),ZQ))))),o|=t.q.ug(l,a,n),o|=eI(e,l[a],n,r);return t_(e.c,t),o}function kF(e,t,n){for(var r,i,a,o,s,l,u,d=hRe(e.j),f=0,p=d.length;f1&&(e.a=!0),HAe(H(n.b,68),fm(vf(H(t.b,68).c),Sf(pm(vf(H(n.b,68).a),H(t.b,68).a),i))),aIe(e,t),crt(e,n)}function lrt(e){for(var t,n,r,i,a=new L(e.a.a),o,s;a.a0&&a>0?o.p=t++:r>0?o.p=n++:a>0?o.p=i++:o.p=n++}iy(),ff(e.j,new Nte)}function drt(e){var t,n=null;t=H($h(e.g,0),18);do{if(n=t.d.i,xp(n,(fz(),BQ)))return H(q(n,BQ),12).i;if(n.k!=(sN(),OX)&&GP(new Mg(Vf(bO(n).a.Kc(),new f))))t=H(Rx(new Mg(Vf(bO(n).a.Kc(),new f))),18);else if(n.k!=OX)return null}while(n&&n.k!=(sN(),OX));return n}function frt(e,t){var n,r,i,a,o,s=t.j,l,u,d;for(o=t.g,l=H($h(s,s.c.length-1),113),d=(Db(0,s.c.length),H(s.c[0],113)),u=V2e(e,o,l,d),a=1;au&&(l=n,d=i,u=r);t.a=d,t.c=l}function prt(e,t,n){var r,i,a,o,s,l,u=new jc(new Pde(e));for(o=K(B(tDt,1),egt,12,0,[t,n]),s=0,l=o.length;sl-e.b&&sl-e.a&&s0?a.a?(s=a.b.Mf().a,n>s&&(i=(n-s)/2,a.d.b=i,a.d.c=i)):a.d.c=e.s+n:Lg(e.u)&&(r=$6e(a.b),r.c<0&&(a.d.b=-r.c),r.c+r.b>a.b.Mf().a&&(a.d.c=r.c+r.b-a.b.Mf().a))}function Nrt(e,t){var n,r,i,a,o=new to;n=t;do a=H(N_(e.b,n),131),a.B=n.c,a.D=n.d,oo(o.c,a),n=H(N_(e.k,n),18);while(n);return r=(Db(0,o.c.length),H(o.c[0],131)),r.j=!0,r.A=H(r.d.a.ec().Kc().Pb(),18).c.i,i=H($h(o,o.c.length-1),131),i.q=!0,i.C=H(i.d.a.ec().Kc().Pb(),18).d.i,o}function Prt(e){var t=H(e.a,17).a,n=H(e.b,17).a;if(t>=0){if(t==n)return new qu(bD(-t-1),bD(-t-1));if(t==-n)return new qu(bD(-t),bD(n+1))}return r.Math.abs(t)>r.Math.abs(n)?t<0?new qu(bD(-t),bD(n)):new qu(bD(-t),bD(n+1)):new qu(bD(t+1),bD(n))}function Frt(e){var t,n=H(q(e,(sz(),o1)),171);t=H(q(e,(fz(),MQ)),311),n==(KO(),a$)?(pE(e,o1,c$),pE(e,MQ,(rC(),gQ))):n==s$?(pE(e,o1,c$),pE(e,MQ,(rC(),mQ))):t==(rC(),gQ)?(pE(e,o1,a$),pE(e,MQ,hQ)):t==mQ&&(pE(e,o1,s$),pE(e,MQ,hQ))}function MF(){MF=D,v2=new bn,yPt=Jh(new mv,(WM(),cX),(mz(),HX)),_2=Cg(Jh(new mv,cX,jDt),uX,ADt),SPt=Ik(Ik(Ml(Cg(Jh(new mv,oX,iZ),uX,rZ),lX),nZ),aZ),bPt=Cg(Jh(Jh(Jh(new mv,sX,WX),lX,KX),lX,qX),uX,GX),xPt=Cg(Jh(Jh(new mv,lX,qX),lX,RX),uX,LX)}function NF(){NF=D,TPt=Jh(Cg(new mv,(WM(),uX),(mz(),yDt)),cX,HX),OPt=Ik(Ik(Ml(Cg(Jh(new mv,oX,iZ),uX,rZ),lX),nZ),aZ),x2=Cg(Jh(Jh(Jh(new mv,sX,WX),lX,KX),lX,qX),uX,GX),DPt=Jh(Jh(new mv,cX,jDt),uX,ADt),EPt=Cg(Jh(Jh(new mv,lX,qX),lX,RX),uX,LX)}function Irt(e,t,n,r,i){var a,o;(!Fx(t)&&t.c.i.c==t.d.i.c||!GKe(TE(K(B(R3,1),Gz,8,0,[i.i.n,i.n,i.a])),n))&&!Fx(t)&&(t.c==i?_p(t.a,0,new Td(n)):Ih(t.a,new Td(n)),r&&!Jc(e.a,n)&&(o=H(q(t,(sz(),i1)),75),o||(o=new $o,pE(t,i1,o)),a=new Td(n),Dx(o,a,o.c.b,o.c),t_(e.a,a)))}function Lrt(e,t){var n,r,i,a=Tg(uO(nB,bv(Tg(uO(t==null?0:Nw(t),rB)),15)));for(n=a&e.b.length-1,i=null,r=e.b[n];r;i=r,r=r.a)if(r.d==a&&X_(r.i,t))return i?i.a=r.a:e.b[n]=r.a,ihe(H(ov(r.c),604),H(ov(r.f),604)),co(H(ov(r.b),227),H(ov(r.e),227)),--e.f,++e.e,!0;return!1}function Rrt(e){for(var t,n=new Mg(Vf(yO(e).a.Kc(),new f));GP(n);)if(t=H(Rx(n),18),t.c.i.k!=(sN(),EX))throw R(new Rs(mgt+oj(e)+`' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen.`))}function zrt(e,t,n){var r,i=qZe(e.Db&254),a,o,s,l,u;if(i==0)e.Eb=n;else{if(i==1)s=dS($q,Oz,1,2,5,1),a=YA(e,t),a==0?(s[0]=n,s[1]=e.Eb):(s[0]=e.Eb,s[1]=n);else for(s=dS($q,Oz,1,i+1,5,1),o=dw(e.Eb),r=2,l=0,u=0;r<=128;r<<=1)r==t?s[u++]=n:(e.Db&r)!=0&&(s[u++]=o[l++]);e.Eb=s}e.Db|=t}function Brt(e,t,n){var i,a,o,s;for(this.b=new to,a=0,i=0,s=new L(e);s.a0&&(o=H($h(this.b,0),176),a+=o.o,i+=o.p),a*=2,i*=2,t>1?a=Vy(r.Math.ceil(a*t)):i=Vy(r.Math.ceil(i/t)),this.a=new QO(a,i)}function Vrt(e,t,n,i,a,o){var s,l,u,d,f=i,p,m,h,g,_,v,y;for(t.j&&t.o?(h=H(N_(e.f,t.A),60),_=h.d.c+h.d.b,--f):_=t.a.c+t.a.b,p=a,n.q&&n.o?(h=H(N_(e.f,n.C),60),d=h.d.c,++p):d=n.a.c,v=d-_,u=r.Math.max(2,p-f),l=v/u,g=_+l,m=f;m=0;o+=i?1:-1){for(s=t[o],l=r==(WR(),C5)?i?fO(s,r):VO(fO(s,r)):i?VO(fO(s,r)):fO(s,r),a&&(e.c[s.p]=l.gc()),f=l.Kc();f.Ob();)d=H(f.Pb(),12),e.d[d.p]=u++;qT(n,l)}}function Wrt(e,t,n){var r,i,a=z(Ip(e.b.Kc().Pb())),o,s,l,u=z(Ip(PJe(t.b))),d;for(r=Sf(vf(e.a),u-n),i=Sf(vf(t.a),n-a),d=fm(r,i),Sf(d,1/(u-a)),this.a=d,this.b=new to,s=!0,o=e.b.Kc(),o.Pb();o.Ob();)l=z(Ip(o.Pb())),s&&l-n>SW&&(this.b.Fc(n),s=!1),this.b.Fc(l);s&&this.b.Fc(n)}function Grt(e){var t,n,r,i;if(gI(e,e.n),e.d.c.length>0){for(Us(e.c);Eet(e,H(W(new L(e.e.a)),125))>5,i,a,o;if(t&=31,r>=e.d)return e.e<0?(uI(),iCt):(uI(),BJ);if(a=e.d-r,i=dS(F9,jB,28,a+1,15,1),v5e(i,a,e.a,r,t),e.e<0){for(n=0;n0&&e.a[n]<<32-t){for(n=0;n=0?!1:(n=yR((MN(),r9),i,t),!n||(r=n.Ik(),(r>1||r==-1)&&uv(qS(r9,n))!=3))):!1}function Qrt(e,t,n,r){var i,a,o,s=OM(H(G((!t.b&&(t.b=new hm(l7,t,4,7)),t.b),0),84)),l=OM(H(G((!t.c&&(t.c=new hm(l7,t,5,8)),t.c),0),84));return ib(s)==ib(l)||LC(l,s)?null:(o=Uy(t),o==n?r:(a=H(N_(e.a,o),10),a&&(i=a.e,i)?i:null))}function $rt(e,t,n){var r,i,a,o,s;for(n.Ug(`Longest path to source layering`,1),e.a=t,s=e.a.a,e.b=dS(F9,jB,28,s.c.length,15,1),r=0,o=new L(s);o.a0&&(n[0]+=e.d,s-=n[0]),n[2]>0&&(n[2]+=e.d,s-=n[2]),o=r.Math.max(0,s),n[1]=r.Math.max(n[1],s),hVe(e,fY,a.c+i.b+n[0]-(n[1]-s)/2,n),t==fY&&(e.c.b=o,e.c.c=a.c+i.b+(o-s)/2)}function fit(){this.c=dS(z9,QB,28,(WR(),K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5])).length,15,1),this.b=dS(z9,QB,28,K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5]).length,15,1),this.a=dS(z9,QB,28,K(B(W5,1),$H,64,0,[H5,w5,C5,V5,U5]).length,15,1),lve(this.c,KB),lve(this.b,qB),lve(this.a,qB)}function IF(e,t,n){var r,i,a,o;if(t<=n?(i=t,a=n):(i=n,a=t),r=0,e.b==null)e.b=dS(F9,jB,28,2,15,1),e.b[0]=i,e.b[1]=a,e.c=!0;else{if(r=e.b.length,e.b[r-1]+1==i){e.b[r-1]=a;return}o=dS(F9,jB,28,r+2,15,1),qI(e.b,0,o,0,r),e.b=o,e.b[r-1]>=i&&(e.c=!1,e.a=!1),e.b[r++]=i,e.b[r]=a,e.c||rF(e)}}function pit(e,t,n){var r,i,a,o,s,l,u=t.d;for(e.a=new aS(u.c.length),e.c=new eo,s=new L(u);s.a=0?e.Lh(u,!1,!0):DP(e,n,!1),61));n:for(a=f.Kc();a.Ob();){for(i=H(a.Pb(),58),d=0;d1;)HF(i,i.i-1);return r}function vit(e,t){for(var n=new jf,r,i,a=new L(e.b),o,s,l;a.ae.d[o.p]&&(n+=kBe(e.b,a),ux(e.a,bD(a)));for(;!Ws(e.a);)uWe(e.b,H($g(e.a),17).a)}return n}function bit(e){var t,n,r,i,a,o,s,l,u;for(e.a=new VTe,u=0,i=0,r=new L(e.i.b);r.al.d&&(f=l.d+l.a+d));n.c.d=f,t.a.zc(n,t),u=r.Math.max(u,n.c.d+n.c.a)}return u}function UF(){UF=D,tQ=new gu(`COMMENTS`,0),rQ=new gu(`EXTERNAL_PORTS`,1),iQ=new gu(`HYPEREDGES`,2),aQ=new gu(`HYPERNODES`,3),oQ=new gu(`NON_FREE_PORTS`,4),sQ=new gu(`NORTH_SOUTH_PORTS`,5),lQ=new gu(vU,6),eQ=new gu(`CENTER_LABELS`,7),nQ=new gu(`END_LABELS`,8),cQ=new gu(`PARTITIONS`,9)}function Sit(e,t,n,r,i){return r<0?(r=TN(e,i,K(B(FJ,1),Gz,2,6,[mmt,hmt,SB,gmt,CB,wB,TB,EB,DB,_mt,OB,kB]),t),r<0&&(r=TN(e,i,K(B(FJ,1),Gz,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,CB,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function Cit(e,t,n,r,i){return r<0?(r=TN(e,i,K(B(FJ,1),Gz,2,6,[mmt,hmt,SB,gmt,CB,wB,TB,EB,DB,_mt,OB,kB]),t),r<0&&(r=TN(e,i,K(B(FJ,1),Gz,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,CB,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function wit(e,t,n,r,i,a){var o,s=32,l,u;if(r<0){if(t[0]>=e.length||(s=kv(e,t[0]),s!=43&&s!=45)||(++t[0],r=bP(e,t),r<0))return!1;s==45&&(r=-r)}return s==32&&t[0]-n==2&&i.b==2&&(l=new Uc,u=l.q.getFullYear()-AB+AB-80,o=u%100,a.a=r==o,r+=(u/100|0)*100+(r=0?pk(e):g_(pk(VS(e)))),UJ[t]=Xbe(kg(e,t),0)?pk(kg(e,t)):g_(pk(VS(kg(e,t)))),e=uO(e,5);for(;t=d&&(u=i);u&&(f=r.Math.max(f,u.a.o.a)),f>m&&(p=d,m=f)}return p}function Mit(e){var t,n,r,i,a=new jc(H(E_(new rt),50)),o,s=qB;for(n=new L(e.d);n.aYvt?ff(u,e.b):i<=Yvt&&i>Xvt?ff(u,e.d):i<=Xvt&&i>WW?ff(u,e.c):i<=WW&&ff(u,e.a),o=Iit(e,u,o);return a}function Lit(e,t,n,r){var i=(r.c+r.a)/2,a,o,s,l,u;for(Qv(t.j),Ih(t.j,i),Qv(n.e),Ih(n.e,i),u=new $he,s=new L(e.f);s.a1,s&&(r=new ku(i,n.b),Ih(t.a,r)),xw(t.a,K(B(R3,1),Gz,8,0,[p,f]))}function Hit(e,t,n){var r,i;for(t=48;n--)_9[n]=n-48<<24>>24;for(r=70;r>=65;r--)_9[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)_9[i]=i-97+10<<24>>24;for(a=0;a<10;a++)sUt[a]=48+a&xB;for(e=10;e<=15;e++)sUt[e]=65+e-10&xB}function Git(e,t){t.Ug(`Process graph bounds`,1),pE(e,(UR(),tFt),xu(Xw(Nv(new ig(null,new kb(e.b,16)),new An)))),pE(e,P2,xu(Xw(Nv(new ig(null,new kb(e.b,16)),new jie)))),pE(e,eFt,xu(Pqe(Nv(new ig(null,new kb(e.b,16)),new Mie)))),pE(e,nFt,xu(Pqe(Nv(new ig(null,new kb(e.b,16)),new Nie)))),t.Vg()}function Kit(e){var t,n,i,a=H(q(e,(sz(),_1)),21),o=H(q(e,y1),21);n=new ku(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Td(n),a.Hc((xk(),G5))&&(i=H(q(e,v1),8),o.Hc((OI(),Q5))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=r.Math.max(n.a,i.a),t.b=r.Math.max(n.b,i.b)),ks(Fp(q(e,EMt)))||Vct(e,n,t)}function qit(e,t){for(var n,r,i,a=fO(t,(WR(),V5)).Kc();a.Ob();)r=H(a.Pb(),12),n=H(q(r,(fz(),KQ)),10),n&&AF(hl(ml(gl(pl(new Po,0),.1),e.i[t.p].d),e.i[n.p].a));for(i=fO(t,w5).Kc();i.Ob();)r=H(i.Pb(),12),n=H(q(r,(fz(),KQ)),10),n&&AF(hl(ml(gl(pl(new Po,0),.1),e.i[n.p].d),e.i[t.p].a))}function Jit(e){var t,n,r,i,a,o;if(!e.c){if(o=new Yoe,t=e9,a=t.a.zc(e,t),a==null){for(r=new Mf(xx(e));r.e!=r.i.gc();)n=H(cA(r),89),i=GI(n),V(i,90)&&b_(o,Jit(H(i,29))),_S(o,n);t.a.Bc(e),t.a.gc()}p$e(o),KE(o),e.c=new gd((H(G(ly((A_(),R7).o),15),19),o.i),o.g),Ix(e).b&=-33}return e.c}function Yit(e){var t;if(e.c!=10)throw R(new Vs(yz((cf(),xK))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw R(new Vs(yz((cf(),kK))))}return t}function Xit(e){var t,n,r,i,a;if(e.l==0&&e.m==0&&e.h==0)return`0`;if(e.h==BB&&e.m==0&&e.l==0)return`-9223372036854775808`;if(e.h>>19)return`-`+Xit(lE(e));for(n=e,r=``;n.l!=0||n.m!=0||n.h!=0;){if(i=cVe(UB),n=vR(n,i,!0),t=``+lge(vJ),n.l!=0||n.m!=0||n.h!=0)for(a=9-t.length;a>0;a--)t=`0`+t;r=t+r}return r}function Zit(e){for(var t=!1,n=0,r,i=new L(e.d.b),a,o,s;i.a=e.a||!bM(t,n))return-1;if(cx(H(i.Kb(t),20)))return 1;for(a=0,s=H(i.Kb(t),20).Kc();s.Ob();)if(o=H(s.Pb(),18),u=o.c.i==t?o.d.i:o.c.i,l=tat(e,u,n,i),l==-1||(a=r.Math.max(a,l),a>e.c-1))return-1;return a+1}function nat(e,t){var n,r,i,a,o,s;if(Qu(t)===Qu(e))return!0;if(!V(t,15)||(r=H(t,15),s=e.gc(),r.gc()!=s))return!1;if(o=r.Kc(),e.Yi()){for(n=0;n0){if(e._j(),t!=null){for(a=0;a>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw R(new ec(`Invalid hexadecimal`))}}function YF(){YF=D,uY=new Jl(`SPIRAL`,0),dwt=new Jl(`LINE_BY_LINE`,1),lY=new Jl(`MANHATTAN`,2),uwt=new Jl(`JITTER`,3),pwt=new Jl(`QUADRANTS_LINE_BY_LINE`,4),mwt=new Jl(`QUADRANTS_MANHATTAN`,5),fwt=new Jl(`QUADRANTS_JITTER`,6),lwt=new Jl(`COMBINE_LINE_BY_LINE_MANHATTAN`,7),cwt=new Jl(`COMBINE_JITTER_MANHATTAN`,8)}function XF(e,t,n,r){var i,a,o,s,l=Zj(e,n),u=Zj(t,n);for(i=!1;l&&u&&(r||t4e(l,u,n));)o=Zj(l,n),s=Zj(u,n),WS(t),WS(e),a=l.c,nut(l,!1),nut(u,!1),n?(Sj(t,u.p,a),t.p=u.p,Sj(e,l.p+1,a),e.p=l.p):(Sj(e,l.p,a),e.p=l.p,Sj(t,u.p+1,a),t.p=u.p),pb(l,null),pb(u,null),l=o,u=s,i=!0;return i}function sat(e){switch(e.g){case 0:return new Br;case 1:return new Lce;case 3:return new B_e;case 4:return new Pre;case 5:return new sm;case 6:return new Rce;case 2:return new Ice;case 7:return new Ace;case 8:return new Mce;default:throw R(new Ps(`No implementation is available for the layerer `+(e.f==null?``+e.g:e.f)))}}function cat(e,t,n,r){for(var i=!1,a=!1,o,s=new L(r.j),l;s.a=t.length)throw R(new js(`Greedy SwitchDecider: Free layer not in graph.`));this.c=t[e],this.e=new xm(r),lqe(this.e,this.c,(WR(),U5)),this.i=new xm(r),lqe(this.i,this.c,C5),this.f=new gAe(this.c),this.a=!a&&i.i&&!i.s&&this.c[0].k==(sN(),TX),this.a&&I5e(this,e,t.length)}function pat(e,t){var n,r,i,a=!e.B.Hc((OI(),X5)),o=e.B.Hc($5),s;e.a=new ZO(o,a,e.c),e.n&&$v(e.a.n,e.n),zme(e.g,(GC(),fY),e.a),t||(r=new Uk(1,a,e.c),r.n.a=e.k,r_(e.p,(WR(),w5),r),i=new Uk(1,a,e.c),i.n.d=e.k,r_(e.p,V5,i),s=new Uk(0,a,e.c),s.n.c=e.k,r_(e.p,U5,s),n=new Uk(0,a,e.c),n.n.b=e.k,r_(e.p,C5,n))}function mat(e){var t=H(q(e.d,(sz(),q$)),223),n,r;switch(t.g){case 2:n=$R(e);break;case 3:n=(r=new to,sl(jv(Mv(uC(uC(new ig(null,new kb(e.d.b,16)),new pn),new Bne),new Vne),new jne),new mde(r)),r);break;default:throw R(new Fs(`Compaction not supported for `+t+` edges.`))}Olt(e,n),Ax(new Oi(e.g),new fde(e))}function ZF(e,t){var n,r,i,a,o,s,l;if(t.Ug(`Process directions`,1),n=H(q(e,(YI(),Y2)),88),n!=(WD(),w8))for(i=iA(e.b,0);i.b!=i.d.c;){switch(r=H(lx(i),40),s=H(q(r,(UR(),q2)),17).a,l=H(q(r,J2),17).a,n.g){case 4:l*=-1;break;case 1:a=s,s=l,l=a;break;case 2:o=s,s=-l,l=o}pE(r,q2,bD(s)),pE(r,J2,bD(l))}t.Vg()}function hat(e,t){var n=new bt;return t&&NT(n,H(N_(e.a,IBt),96)),V(t,422)&&NT(n,H(N_(e.a,LBt),96)),V(t,366)?(NT(n,H(N_(e.a,g7),96)),n):(V(t,84)&&NT(n,H(N_(e.a,l7),96)),V(t,207)?(NT(n,H(N_(e.a,_7),96)),n):V(t,193)?(NT(n,H(N_(e.a,v7),96)),n):(V(t,326)&&NT(n,H(N_(e.a,u7),96)),n))}function gat(e){var t,n,r,i,a,o,s,l=new FBe;for(s=new L(e.a);s.a0&&t=0)return!1;if(t.p=n.b,Cf(n.e,t),i==(sN(),DX)||i==kX){for(o=new L(t.j);o.ae.d[s.p]&&(n+=kBe(e.b,a),ux(e.a,bD(a)))):++o;for(n+=e.b.d*o;!Ws(e.a);)uWe(e.b,H($g(e.a),17).a)}return n}function Iat(e){var t,n,r,i,a=0,o;return t=Pj(e),t.kk()&&(a|=4),(e.Bb&qK)!=0&&(a|=2),V(e,102)?(n=H(e,19),i=OA(n),(n.Bb&UG)!=0&&(a|=32),i&&(M_(ab(i)),a|=8,o=i.t,(o>1||o==-1)&&(a|=16),(i.Bb&UG)!=0&&(a|=64)),(n.Bb&XB)!=0&&(a|=JK),a|=aB):V(t,469)?a|=512:(r=t.kk(),r&&r.i&1&&(a|=256)),e.Bb&512&&(a|=128),a}function Lat(e,t){var n;return e.f==jHt?(n=uv(qS((MN(),r9),t)),e.e?n==4&&t!=(NP(),a9)&&t!=(NP(),i9)&&t!=(NP(),MHt)&&t!=(NP(),NHt):n==2):e.d&&(e.d.Hc(t)||e.d.Hc(Lb(qS((MN(),r9),t)))||e.d.Hc(yR((MN(),r9),e.b,t)))?!0:e.f&&xF((MN(),e.f),Tv(qS(r9,t)))?(n=uv(qS(r9,t)),e.e?n==4:n==2):!1}function Rat(e){var t,n,r,i,a,o,s,l,u,d,f,p=-1,m=0;for(u=e,d=0,f=u.length;d0&&++m;++p}return m}function zat(e,t,n,i){var a,o,s=H(eF(n,(pz(),s8)),8),l,u=s.a,d,f=s.b+e,p;return a=r.Math.atan2(f,u),a<0&&(a+=RW),a+=t,a>RW&&(a-=RW),l=H(eF(i,s8),8),d=l.a,p=l.b+e,o=r.Math.atan2(p,d),o<0&&(o+=RW),o+=t,o>RW&&(o-=RW),of(),vw(1e-10),r.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:ao?1:xd(isNaN(a),isNaN(o))}function Bat(e){var t,n,r,i,a,o,s=new eo;for(r=new L(e.a.b);r.a=e.o)throw R(new Go);s=t>>5,o=t&31,a=kg(1,Tg(kg(o,1))),i?e.n[n][s]=Pb(e.n[n][s],a):e.n[n][s]=Nb(e.n[n][s],Sh(a)),a=kg(a,1),r?e.n[n][s]=Pb(e.n[n][s],a):e.n[n][s]=Nb(e.n[n][s],Sh(a))}catch(r){throw r=GT(r),V(r,333)?R(new js(Cht+e.o+`*`+e.p+wht+t+Dz+n+WV)):R(r)}}function Hat(e,t,n,r){var i,a,o,s,l,u,d,f,p=new jc(new Nde(e));for(s=K(B(CX,1),nU,10,0,[t,n]),l=0,u=s.length;l0&&(r=(!e.n&&(e.n=new Bg(g7,e,1,7)),H(G(e.n,0),135)).a,!r||ld(ld((t.a+=` "`,t),r),`"`))),ld(kc(ld(kc(ld(kc(ld(kc((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function qat(e){var t,n,r;return e.Db&64?t5e(e):(t=new qf(tbt),n=e.k,n?ld(ld((t.a+=` "`,t),n),`"`):(!e.n&&(e.n=new Bg(g7,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new Bg(g7,e,1,7)),H(G(e.n,0),135)).a,!r||ld(ld((t.a+=` "`,t),r),`"`))),ld(kc(ld(kc(ld(kc(ld(kc((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function Jat(e,t){var n,r,i,a,o;for(t==(RE(),SNt)&&BN(H(Wx(e.a,(mM(),gZ)),15)),i=H(Wx(e.a,(mM(),gZ)),15).Kc();i.Ob();)switch(r=H(i.Pb(),105),n=H($h(r.j,0),113).d.j,a=new Dm(r.j),ff(a,new Jne),t.g){case 2:Q6e(e,a,n,(Tw(),yZ),1);break;case 1:case 0:o=_nt(a),Q6e(e,new yb(a,0,o),n,(Tw(),yZ),0),Q6e(e,new yb(a,o,a.c.length),n,yZ,1)}}function Yat(e,t){var n,r,i,a,o,s,l;if(t==null||t.length==0)return null;if(i=H(Fy(e.a,t),143),!i){for(r=(s=new Pi(e.b).a.vc().Kc(),new Fi(s));r.a.Ob();)if(n=(a=H(r.a.Pb(),44),H(a.md(),143)),o=n.c,l=t.length,_m(o.substr(o.length-l,l),t)&&(t.length==o.length||kv(o,o.length-t.length-1)==46)){if(i)return null;i=n}i&&db(e.a,t,i)}return i}function Xat(e,t){var n=new lt,r=H(Ox(Mv(new ig(null,new kb(e.f,16)),n),zS(new ve,new ye,new Ee,new De,K(B(rY,1),cB,108,0,[(XE(),nY),tY]))),21),i=r.gc(),a;return r=H(Ox(Mv(new ig(null,new kb(t.f,16)),n),zS(new ve,new ye,new Ee,new De,K(B(rY,1),cB,108,0,[nY,tY]))),21),a=r.gc(),ii.p?($N(a,V5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=s-t)):a.j==V5&&i.p>e.p&&($N(a,w5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=-(s-t)));break}return i}function cI(e,t,n,r,i){var a,o,s,l,u,d,f;if(!(V(t,207)||V(t,366)||V(t,193)))throw R(new Ps(`Method only works for ElkNode-, ElkLabel and ElkPort-objects.`));return o=e.a/2,l=t.i+r-o,d=t.j+i-o,u=l+t.g+e.a,f=d+t.f+e.a,a=new $o,Ih(a,new ku(l,d)),Ih(a,new ku(l,f)),Ih(a,new ku(u,f)),Ih(a,new ku(u,d)),s=new qP(a),NT(s,t),n&&hv(e.b,t,s),s}function lI(e,t,n){for(var r,i,a=new ku(t,n),o,s,l,u,d=new L(e.a),f,p;d.a1,s&&(r=new ku(i,n.b),Ih(t.a,r)),xw(t.a,K(B(R3,1),Gz,8,0,[p,f]))}function yI(){yI=D,P0=new bu(QH,0),M0=new bu(`NIKOLOV`,1),N0=new bu(`NIKOLOV_PIXEL`,2),aNt=new bu(`NIKOLOV_IMPROVED`,3),oNt=new bu(`NIKOLOV_IMPROVED_PIXEL`,4),k0=new bu(`DUMMYNODE_PERCENTAGE`,5),sNt=new bu(`NODECOUNT_PERCENTAGE`,6),F0=new bu(`NO_BOUNDARY`,7),A0=new bu(`MODEL_ORDER_LEFT_TO_RIGHT`,8),j0=new bu(`MODEL_ORDER_RIGHT_TO_LEFT`,9)}function dot(e){var t,n,r=e.length,i,a;for(t=new Zs,a=0;a=40,o&&Ust(e),tR(e),Grt(e),n=lQe(e),r=0;n&&r0&&Ih(e.f,a)):(e.c[o]-=u+1,e.c[o]<=0&&e.a[o]>0&&Ih(e.e,a))))}function Iot(e,t,n,r){var i,a,o,s,l=new ku(n,r),u,d;for(pm(l,H(q(t,(UR(),N2)),8)),d=iA(t.b,0);d.b!=d.d.c;)u=H(lx(d),40),fm(u.e,l),Ih(e.b,u);for(s=H(Ox(WFe(new ig(null,new kb(t.a,16))),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15).Kc();s.Ob();){for(o=H(s.Pb(),65),a=iA(o.a,0);a.b!=a.d.c;)i=H(lx(a),8),i.a+=l.a,i.b+=l.b;Ih(e.a,o)}}function Lot(e,t){var n,r,i,a;if(0<(V(e,16)?H(e,16).gc():_x(e.Kc()))){if(i=t,1=0&&la*2?(d=new WC(f),u=cg(o)/sg(o),l=Kft(d,t,new Yo,n,r,i,u),fm(md(d.e),l),f.c.length=0,a=0,oo(f.c,d),oo(f.c,o),a=cg(d)*sg(d)+cg(o)*sg(o)):(oo(f.c,o),a+=cg(o)*sg(o));return f}function Vot(e,t){var n,r,i,a,o,s=H(q(t,(sz(),E1)),101);if(s==(_M(),f5)||s==d5)for(i=new ku(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,o=new L(e.a);o.an?t:n;u<=f;++u)u==n?s=r++:(a=i[u],d=h.am(a.Lk()),u==t&&(l=u==f&&!d?r-1:r),d&&++r);return p=H(XD(e,t,n),76),s!=l&&Oo(e,new wS(e.e,7,o,bD(s),m.md(),l)),p}}else return H(SP(e,t,n),76);return H(XD(e,t,n),76)}function Uot(e,t){var n,r,i,a,o,s,l;for(t.Ug(`Port order processing`,1),l=H(q(e,(sz(),NMt)),430),r=new L(e.b);r.a=0&&(s=c4e(e,o),!(s&&(u<22?l.l|=1<>>1,o.m=d>>>1|(f&1)<<21,o.l=p>>>1|(d&1)<<21,--u;return n&&OE(l),a&&(r?(vJ=lE(e),i&&(vJ=BJe(vJ,(aC(),bJ)))):vJ=gf(e.l,e.m,e.h)),l}function Got(e,t){var n,r,i,a,o,s,l,u=e.e[t.c.p][t.p]+1,d,f;for(l=t.c.a.c.length+1,s=new L(e.a);s.a0&&(Ob(0,e.length),e.charCodeAt(0)==45||(Ob(0,e.length),e.charCodeAt(0)==43))),r=o;rn)throw R(new ec(GB+e+`"`));return s}function Kot(e){var t,n,i,a,o,s=new $c,l;for(o=new L(e.a);o.a1)&&t==1&&H(e.a[e.b],10).k==(sN(),EX)?fL(H(e.a[e.b],10),(xj(),G8)):r&&(!n||(e.c-e.b&e.a.length-1)>1)&&t==1&&H(e.a[e.c-1&e.a.length-1],10).k==(sN(),EX)?fL(H(e.a[e.c-1&e.a.length-1],10),(xj(),K8)):(e.c-e.b&e.a.length-1)==2?(fL(H(xE(e),10),(xj(),G8)),fL(H(xE(e),10),K8)):Ttt(e,i),Pze(e)}function Yot(e,t,n){var i,a,o=0,s,l;for(a=new Mf((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a));a.e!=a.i.gc();)i=H(cA(a),27),s=``,(!i.n&&(i.n=new Bg(g7,i,1,7)),i.n).i==0||(s=H(G((!i.n&&(i.n=new Bg(g7,i,1,7)),i.n),0),135).a),l=new VYe(o++,t,s),NT(l,i),pE(l,(UR(),H2),i),l.e.b=i.j+i.f/2,l.f.a=r.Math.max(i.g,1),l.e.a=i.i+i.g/2,l.f.b=r.Math.max(i.f,1),Ih(t.b,l),UN(n.f,i,l)}function Xot(e){var t,n,r=H(q(e,(fz(),WQ)),27),i,a=H(eF(r,(sz(),_1)),181).Hc((xk(),J5));e.e||(i=H(q(e,AQ),21),t=new ku(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),i.Hc((UF(),rQ))?(yA(r,E1,(_M(),d5)),qR(r,t.a,t.b,!1,!0)):ks(Fp(eF(r,EMt)))||qR(r,t.a,t.b,!0,!0)),a?yA(r,_1,rO(J5)):yA(r,_1,(n=H(Tc(Y5),9),new Om(n,H(im(n,n.length),9),0)))}function Zot(e,t,n){var r,i,a,o;if(t[0]>=e.length)return n.o=0,!0;switch(kv(e,t[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.o=0,!0}if(++t[0],a=t[0],o=bP(e,t),o==0&&t[0]==a)return!1;if(t[0]s&&(s=i,d.c.length=0),i==s&&Cf(d,new qu(n.c.i,n)));iy(),ff(d,e.c),yg(e.b,l.p,d)}}function tst(e,t){for(var n,r,i,a,o=new L(t.b),s,l,u,d;o.as&&(s=i,d.c.length=0),i==s&&Cf(d,new qu(n.d.i,n)));iy(),ff(d,e.c),yg(e.f,l.p,d)}}function nst(e,t){var n,r,i,a,o,s,l,u=Fp(q(t,(YI(),AFt)));if(u==null||(sv(u),u)){for(Z9e(e,t),i=new to,l=iA(t.b,0);l.b!=l.d.c;)o=H(lx(l),40),n=K5e(e,o,null),n&&(NT(n,t),oo(i.c,n));if(e.a=null,e.b=null,i.c.length>1)for(r=new L(i);r.a=0&&s!=n&&(a=new Vg(e,1,s,o,null),r?r.nj(a):r=a),n>=0&&(a=new Vg(e,1,n,s==n?o:null,t),r?r.nj(a):r=a)),r}function II(e){var t,n,r;if(e.b==null){if(r=new Xs,e.i!=null&&(od(r,e.i),r.a+=`:`),e.f&256){for(e.f&256&&e.a!=null&&(FNe(e.i)||(r.a+=`//`),od(r,e.a)),e.d!=null&&(r.a+=`/`,od(r,e.d)),e.f&16&&(r.a+=`/`),t=0,n=e.j.length;tp?!1:(f=(l=wL(r,p,!1),l.a),d+s+f<=t.b&&(TS(n,a-n.s),n.c=!0,TS(r,a-n.s),DA(r,n.s,n.t+n.d+s),r.k=!0,Uqe(n.q,r),m=!0,i&&(QGe(t,r),r.j=t,e.c.length>o&&(Nj((Db(o,e.c.length),H(e.c[o],186)),r),(Db(o,e.c.length),H(e.c[o],186)).a.c.length==0&&Kx(e,o)))),m)}function sst(e,t){var n,r,i,a,o,s;if(t.Ug(`Partition midprocessing`,1),i=new Py,sl(jv(new ig(null,new kb(e.a,16)),new Fte),new ade(i)),i.d!=0){for(s=H(Ox(GIe((a=i.i,new ig(null,(a||(i.i=new Pf(i,i.c))).Nc()))),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15),r=s.Kc(),n=H(r.Pb(),17);r.Ob();)o=H(r.Pb(),17),wnt(H(Wx(i,n),21),H(Wx(i,o),21)),n=o;t.Vg()}}function cst(e,t,n){var r,i,a,o,s,l,u,d;if(t.p==0){for(t.p=1,o=n,o||=(i=new to,a=(r=H(Tc(W5),9),new Om(r,H(im(r,r.length),9),0)),new qu(i,a)),H(o.a,15).Fc(t),t.k==(sN(),TX)&&H(o.b,21).Fc(H(q(t,(fz(),OQ)),64)),l=new L(t.j);l.a0){if(i=H(e.Ab.g,2033),t==null){for(a=0;an.s&&lo)return WR(),C5;break;case 4:case 3:if(d<0)return WR(),w5;if(d+n>a)return WR(),V5}return l=(u+s/2)/o,r=(d+n/2)/a,l+r<=1&&l-r<=0?(WR(),U5):l+r>=1&&l-r>=0?(WR(),C5):r<.5?(WR(),w5):(WR(),V5)}function UI(e,t){var n=!1,r,i,a,o,s,l,u,d=z(Ip(q(t,(sz(),Y1)))),f,p,m,h=fB*d,g;for(i=new L(t.b);i.al+h&&(g=f.g+p.g,p.a=(p.g*p.a+f.g*f.a)/g,p.g=g,f.f=p,n=!0)),a=s,f=p;return n}function _st(e,t,n,r,i,a,o){var s,l,u,d,f,p=new Od;for(u=t.Kc();u.Ob();)for(s=H(u.Pb(),853),f=new L(s.Rf());f.a0?l.a?(d=l.b.Mf().b,a>d&&(e.v||l.c.d.c.length==1?(s=(a-d)/2,l.d.d=s,l.d.a=s):(n=H($h(l.c.d,0),187).Mf().b,i=(n-d)/2,l.d.d=r.Math.max(0,i),l.d.a=a-i-d))):l.d.a=e.t+a:Lg(e.u)&&(o=$6e(l.b),o.d<0&&(l.d.d=-o.d),o.d+o.a>l.b.Mf().b&&(l.d.a=o.d+o.a-l.b.Mf().b))}function WI(){WI=D,YY=new $d((pz(),c8),bD(1)),QY=new $d(g8,80),JTt=new $d(Czt,5),FTt=new $d(f6,xH),KTt=new $d(l8,bD(1)),qTt=new $d(d8,(sp(),!0)),JY=new qd(50),UTt=new $d(W6,JY),LTt=k6,WTt=e8,ITt=new $d(x6,!1),qY=U6,VTt=R6,HTt=V6,BTt=L6,zTt=F6,GTt=i8,RTt=(i5e(),ETt),YTt=jTt,KY=TTt,XY=OTt,ZY=ATt,QTt=y8,$Tt=C8,ZTt=v8,XTt=_8,$Y=(hD(),a7),new $d(b8,$Y)}function bst(e,t){var n;switch(fC(e)){case 6:return $u(t);case 7:return td(t);case 8:return ed(t);case 3:return Array.isArray(t)&&(n=fC(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===Sz;case 12:return t!=null&&(typeof t===bz||typeof t==Sz);case 0:return f0e(t,e.__elementTypeId$);case 2:return Kje(t)&&t.Tm!==E;case 1:return Kje(t)&&t.Tm!==E||f0e(t,e.__elementTypeId$);default:return!0}}function xst(e){var t,n,i=e.o,a;qp(),e.A.dc()||kD(e.A,Kwt)?a=i.a:(a=e.D?r.Math.max(i.a,oP(e.f)):oP(e.f),e.A.Hc((xk(),K5))&&!e.B.Hc((OI(),t7))&&(a=r.Math.max(a,oP(H(Sv(e.p,(WR(),w5)),252))),a=r.Math.max(a,oP(H(Sv(e.p,V5),252)))),t=eJe(e),t&&(a=r.Math.max(a,t.a))),i.a=ks(Fp(e.e.Tf().of((pz(),R6))))?r.Math.max(i.a,a):a,n=e.f.i,n.c=0,n.b=a,XI(e.f)}function Sst(e,t){var n,i=r.Math.min(r.Math.abs(e.c-(t.c+t.b)),r.Math.abs(e.c+e.b-t.c)),a,o=r.Math.min(r.Math.abs(e.d-(t.d+t.a)),r.Math.abs(e.d+e.a-t.d));return n=r.Math.abs(e.c+e.b/2-(t.c+t.b/2)),n>e.b/2+t.b/2||(a=r.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:n==0&&a==0?0:n==0?o/a+1:a==0?i/n+1:r.Math.min(i/n,o/a)+1}function Cst(e,t){var n,r,i,a=0,o,s=0,l=0;for(i=new L(e.f.e);i.a0&&e.d!=(tC(),vEt)&&(s+=o*(r.d.a+e.a[t.a][r.a]*(t.d.a-r.d.a)/n)),n>0&&e.d!=(tC(),_Et)&&(l+=o*(r.d.b+e.a[t.a][r.a]*(t.d.b-r.d.b)/n)));switch(e.d.g){case 1:return new ku(s/a,t.d.b);case 2:return new ku(t.d.a,l/a);default:return new ku(s/a,l/a)}}function wst(e){var t,n=(!e.a&&(e.a=new Tf(c7,e,5)),e.a).i+2,r,i,a,o=new aS(n);for(Cf(o,new ku(e.j,e.k)),sl(new ig(null,(!e.a&&(e.a=new Tf(c7,e,5)),new kb(e.a,16))),new Ga(o)),Cf(o,new ku(e.b,e.c)),t=1;t0&&(aE(l,!1,(WD(),T8)),aE(l,!0,E8)),RC(t.g,new Gve(e,n)),hv(e.g,t,n)}function Dst(){Dst=D;var e;for(GSt=K(B(F9,1),jB,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),NJ=dS(F9,jB,28,37,15,1),KSt=K(B(F9,1),jB,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),qSt=dS(L9,Amt,28,37,14,1),e=2;e<=36;e++)NJ[e]=Vy(r.Math.pow(e,GSt[e])),qSt[e]=Yj(Xz,NJ[e])}function Ost(e){var t;if((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a).i!=1)throw R(new Ps(Gyt+(!e.a&&(e.a=new Bg(d7,e,6,6)),e.a).i));return t=new $o,KT(H(G((!e.b&&(e.b=new hm(l7,e,4,7)),e.b),0),84))&&zw(t,_pt(e,KT(H(G((!e.b&&(e.b=new hm(l7,e,4,7)),e.b),0),84)),!1)),KT(H(G((!e.c&&(e.c=new hm(l7,e,5,8)),e.c),0),84))&&zw(t,_pt(e,KT(H(G((!e.c&&(e.c=new hm(l7,e,5,8)),e.c),0),84)),!0)),t}function kst(e,t){var n,r,i=t.d?e.a.c==(Ky(),c2)?yO(t.b):bO(t.b):e.a.c==(Ky(),s2)?yO(t.b):bO(t.b),a=!1,o;for(r=new Mg(Vf(i.a.Kc(),new f));GP(r);)if(n=H(Rx(r),18),o=ks(e.a.f[e.a.g[t.b.p].p]),(o||Fx(n)||n.c.i.c!=n.d.i.c)&&!(ks(e.a.n[e.a.g[t.b.p].p])||ks(e.a.n[e.a.g[t.b.p].p]))&&(a=!0,Jc(e.b,e.a.g[N2e(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=a,t.a=null,t}function Ast(e,t,n){var r=n.gc(),i,a,o,s,l,u;if(r==0)return!1;if(e.Pj()){if(l=e.Qj(),YO(e,t,n),o=r==1?e.Ij(3,null,n.Kc().Pb(),t,l):e.Ij(5,null,n,t,l),e.Mj()){for(s=r<100?null:new xc(r),a=t+r,i=t;i0){for(s=0;s>16==-15&&e.Cb.Yh()&&qUe(new QHe(e.Cb,9,13,n,e.c,SA(GS(H(e.Cb,62)),e))):V(e.Cb,90)&&e.Db>>16==-23&&e.Cb.Yh()&&(t=e.c,V(t,90)||(t=(_z(),q7)),V(n,90)||(n=(_z(),q7)),qUe(new QHe(e.Cb,9,10,n,t,SA(xx(H(e.Cb,29)),e)))))),e.c}function Lst(e,t,n){var r,i,a,o,s,l,u,d,f;for(n.Ug(`Hyperedge merging`,1),zet(e,t),l=new Hb(t.b,0);l.b0,s=AO(t,a),zCe(n?s.b:s.g,t),QE(s).c.length==1&&Dx(r,s,r.c.b,r.c),i=new qu(a,t),ux(e.o,i),BS(e.e.a,a))}function Wst(e,t){var n,i=r.Math.abs(Zg(e.b).a-Zg(t.b).a),a,o,s,l=r.Math.abs(Zg(e.b).b-Zg(t.b).b),u;return a=0,u=0,n=1,s=1,i>e.b.b/2+t.b.b/2&&(a=r.Math.min(r.Math.abs(e.b.c-(t.b.c+t.b.b)),r.Math.abs(e.b.c+e.b.b-t.b.c)),n=1-a/i),l>e.b.a/2+t.b.a/2&&(u=r.Math.min(r.Math.abs(e.b.d-(t.b.d+t.b.a)),r.Math.abs(e.b.d+e.b.a-t.b.d)),s=1-u/l),o=r.Math.min(n,s),(1-o)*r.Math.sqrt(i*i+l*l)}function Gst(e){var t,n,r,i;for(HR(e,e.e,e.f,(Gy(),S2),!0,e.c,e.i),HR(e,e.e,e.f,S2,!1,e.c,e.i),HR(e,e.e,e.f,C2,!0,e.c,e.i),HR(e,e.e,e.f,C2,!1,e.c,e.i),Ist(e,e.c,e.e,e.f,e.i),r=new Hb(e.i,0);r.b=65;n--)h9[n]=n-65<<24>>24;for(r=122;r>=97;r--)h9[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)h9[i]=i-48+52<<24>>24;for(h9[43]=62,h9[47]=63,a=0;a<=25;a++)g9[a]=65+a&xB;for(o=26,l=0;o<=51;++o,l++)g9[o]=97+l&xB;for(e=52,s=0;e<=61;++e,s++)g9[e]=48+s&xB;g9[62]=43,g9[63]=47}function Jst(e,t){var n,i,a=Sqe(e),o,s,l=Sqe(t);return a==l?e.e==t.e&&e.a<54&&t.a<54?e.ft.f):(i=e.e-t.e,n=(e.d>0?e.d:r.Math.floor((e.a-1)*Mmt)+1)-(t.d>0?t.d:r.Math.floor((t.a-1)*Mmt)+1),n>i+1?a:n0&&(s=hx(s,Ict(i))),Q$e(o,s))):ad&&(m=0,h+=u+t,u=0),lI(s,m,h),n=r.Math.max(n,m+f.a),u=r.Math.max(u,f.b),m+=f.a+t;return new ku(n+t,h+u+t)}function Zst(e,t){var n,r,i,a,o,s,l;if(!Wy(e))throw R(new Fs(Wyt));if(r=Wy(e),a=r.g,i=r.f,a<=0&&i<=0)return WR(),H5;switch(s=e.i,l=e.j,t.g){case 2:case 1:if(s<0)return WR(),U5;if(s+e.g>a)return WR(),C5;break;case 4:case 3:if(l<0)return WR(),w5;if(l+e.f>i)return WR(),V5}return o=(s+e.g/2)/a,n=(l+e.f/2)/i,o+n<=1&&o-n<=0?(WR(),U5):o+n>=1&&o-n>=0?(WR(),C5):n<.5?(WR(),w5):(WR(),V5)}function Qst(e,t,n,r,i){var a=lO(Nb(t[0],$B),Nb(r[0],$B)),o;if(e[0]=Tg(a),a=Ag(a,32),n>=i){for(o=1;o0&&(i.b[o++]=0,i.b[o++]=a.b[0]-1),t=1;t0&&(gi(l,l.d-i.d),i.c==(sS(),y2)&&Jle(l,l.a-i.d),l.d<=0&&l.i>0&&Dx(t,l,t.c.b,t.c)));for(a=new L(e.f);a.a0&&(_i(s,s.i-i.d),i.c==(sS(),y2)&&Yle(s,s.b-i.d),s.i<=0&&s.d>0&&Dx(n,s,n.c.b,n.c)))}function rct(e,t,n,r,i){var a,o,s,l,u,d,f,p,m;for(iy(),ff(e,new voe),o=mh(e),m=new to,p=new to,s=null,l=0;o.b!=0;)a=H(o.b==0?null:(zp(o.b!=0),zC(o,o.a.a)),163),!s||cg(s)*sg(s)/21&&(l>cg(s)*sg(s)/2||o.b==0)&&(f=new WC(p),d=cg(s)/sg(s),u=Kft(f,t,new Yo,n,r,i,d),fm(md(f.e),u),s=f,oo(m.c,f),l=0,p.c.length=0));return qT(m,p),m}function qI(e,t,n,r,i){el();var a,o,s,l,u,d,f;if(tMe(e,`src`),tMe(n,`dest`),f=ZE(e),l=ZE(n),pke(!!(f.i&4),`srcType is not an array`),pke(!!(l.i&4),`destType is not an array`),d=f.c,o=l.c,pke(d.i&1?d==o:!(o.i&1),`Array types don't match`),xYe(e,t,n,r,i),!(d.i&1)&&f!=l){if(u=dw(e),a=dw(n),Qu(e)===Qu(n)&&tr;)P_(a,s,u[--t]);else for(s=r+i;r0),r.a.Xb(r.c=--r.b),f>p+l&&K_(r);for(o=new L(m);o.a0),r.a.Xb(r.c=--r.b)}}function oct(){hz();var e,t,n,r,i,a;if(dUt)return dUt;for(e=(++M9,new Ib(4)),LL(e,XR(Gq,!0)),kR(e,XR(`M`,!0)),kR(e,XR(`C`,!0)),a=(++M9,new Ib(4)),r=0;r<11;r++)IF(a,r,r);return t=(++M9,new Ib(4)),LL(t,XR(`M`,!0)),IF(t,4448,4607),IF(t,65438,65439),i=(++M9,new rf(2)),lR(i,e),lR(i,E9),n=(++M9,new rf(2)),n.Jm(lg(a,XR(`L`,!0))),n.Jm(t),n=(++M9,new Cx(3,n)),n=(++M9,new m_(i,n)),dUt=n,dUt}function JI(e,t){var n=new RegExp(t,`g`),r,i,a,o,s,l=dS(FJ,Gz,2,0,6,1),u;for(r=0,u=e,a=null;;){if(s=n.exec(u),s==null||u==``){l[r]=u;break}o=s.index,l[r]=(hS(0,o,u.length),u.substr(0,o)),u=Ey(u,o+s[0].length,u.length),n.lastIndex=0,a==u&&(l[r]=(hS(0,1,u.length),u.substr(0,1)),u=(Ob(1,u.length+1),u.substr(1))),a=u,++r}if(e.length>0){for(i=l.length;i>0&&l[i-1]==``;)--i;i0&&(p-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(p-=i[2]+e.c),i[1]=r.Math.max(i[1],p),IAe(e.a[1],n.c+t.b+i[0]-(i[1]-p)/2,i[1]);for(o=e.a,l=0,d=o.length;l0?(e.n.c.length-1)*e.i:0,i=new L(e.n);i.a1)for(r=iA(i,0);r.b!=r.d.c;)for(n=H(lx(r),235),a=0,l=new L(n.e);l.a0&&(t[0]+=e.c,p-=t[0]),t[2]>0&&(p-=t[2]+e.c),t[1]=r.Math.max(t[1],p),LAe(e.a[1],i.d+n.d+t[0]-(t[1]-p)/2,t[1]);else for(g=i.d+n.d,h=i.a-n.d-n.a,s=e.a,u=0,f=s.length;u0||mO(a.b.d,e.b.d+e.b.a)==0&&i.b<0||mO(a.b.d+a.b.a,e.b.d)==0&&i.b>0){l=0;break}}else l=r.Math.min(l,z7e(e,a,i));l=r.Math.min(l,hct(e,o,l,i))}return l}function $I(e,t){var n,r,i,a,o,s,l;if(e.b<2)throw R(new Ps(`The vector chain must contain at least a source and a target point.`));for(i=(zp(e.b!=0),H(e.a.a.c,8)),Ud(t,i.a,i.b),l=new dp((!t.a&&(t.a=new Tf(c7,t,5)),t.a)),o=iA(e,1);o.a=0&&a!=n))throw R(new Ps(pK));for(i=0,l=0;lz(bf(o.g,o.d[0]).a)?(zp(l.b>0),l.a.Xb(l.c=--l.b),tm(l,o),i=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new to),s.e).Mc(t),u=(!s.e&&(s.e=new to),s.e).Mc(n),(a||u)&&((!s.e&&(s.e=new to),s.e).Fc(o),++o.c));i||oo(r.c,o)}function yct(e,t,n){var r,i,a,o,s,l,u,d,f=e.a.i+e.a.g/2,p=e.a.i+e.a.g/2,m,h=t.i+t.g/2,g,_=t.j+t.f/2,v;return s=new ku(h,_),u=H(eF(t,(pz(),s8)),8),u.a+=f,u.b+=p,a=(s.b-u.b)/(s.a-u.a),r=s.b-a*s.a,g=n.i+n.g/2,v=n.j+n.f/2,l=new ku(g,v),d=H(eF(n,s8),8),d.a+=f,d.b+=p,o=(l.b-d.b)/(l.a-d.a),i=l.b-o*l.a,m=(r-i)/(o-a),!(u.a>>0,`0`+t.toString(16)),r=`\\x`+Ey(n,n.length-2,n.length)):e>=XB?(n=(t=e>>>0,`0`+t.toString(16)),r=`\\v`+Ey(n,n.length-6,n.length)):r=``+String.fromCharCode(e&xB)}return r}function Dct(e){var t,n,r;if(Md(H(q(e,(sz(),E1)),101)))for(n=new L(e.j);n.a=t.o&&n.f<=t.f||t.a*.5<=n.f&&t.a*1.5>=n.f){if(o=H($h(t.n,t.n.c.length-1),209),o.e+o.d+n.g+i<=r&&(a=H($h(t.n,t.n.c.length-1),209),a.f-e.f+n.f<=e.b||e.a.c.length==1))return LQe(t,n),!0;if(t.s+n.g<=r&&(t.t+t.d+n.f+i<=e.b||e.a.c.length==1))return Cf(t.b,n),s=H($h(t.n,t.n.c.length-1),209),Cf(t.n,new Hy(t.s,s.f+s.a+t.i,t.i)),FA(H($h(t.n,t.n.c.length-1),209),n),lct(t,n),!0}return!1}function kct(e,t,n){var r,i,a,o;return e.Pj()?(i=null,a=e.Qj(),r=e.Ij(1,o=oWe(e,t,n),n,t,a),e.Mj()&&!(e.Yi()&&o!=null?kD(o,n):Qu(o)===Qu(n))?(o!=null&&(i=e.Oj(o,i)),i=e.Nj(n,i),e.Tj()&&(i=e.Wj(o,n,i)),i?(i.nj(r),i.oj()):e.Jj(r)):(e.Tj()&&(i=e.Wj(o,n,i)),i?(i.nj(r),i.oj()):e.Jj(r)),o):(o=oWe(e,t,n),e.Mj()&&!(e.Yi()&&o!=null?kD(o,n):Qu(o)===Qu(n))&&(i=null,o!=null&&(i=e.Oj(o,null)),i=e.Nj(n,i),i&&i.oj()),o)}function iL(e,t){var n,r,i,a,o;if(t.Ug(`Path-Like Graph Wrapping`,1),e.b.c.length==0){t.Vg();return}if(i=new KP(e),o=(i.i??(i.i=Oqe(i,new Tre)),z(i.i)*i.f),n=o/(i.i??(i.i=Oqe(i,new Tre)),z(i.i)),i.b>n){t.Vg();return}switch(H(q(e,(sz(),r0)),351).g){case 2:a=new Ore;break;case 0:a=new vre;break;default:a=new kre}if(r=a.og(e,i),!a.pg())switch(H(q(e,o0),352).g){case 2:r=U7e(i,r);break;case 1:r=l6e(i,r)}glt(e,i,r),t.Vg()}function aL(e,t){var n,i,a,o,s,l,u,d;t%=24,e.q.getHours()!=t&&(i=new r.Date(e.q.getTime()),i.setDate(i.getDate()+1),l=e.q.getTimezoneOffset()-i.getTimezoneOffset(),l>0&&(u=l/60|0,d=l%60,a=e.q.getDate(),n=e.q.getHours(),n+u>=24&&++a,o=new r.Date(e.q.getFullYear(),e.q.getMonth(),a,t+u,e.q.getMinutes()+d,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(o.getTime()))),s=e.q.getTime(),e.q.setTime(s+36e5),e.q.getHours()!=t&&e.q.setTime(s)}function Act(e,t){var n,r,i,a;if(WIe(e.d,e.e),e.c.a.$b(),z(Ip(q(t.j,(sz(),qjt))))!=0||z(Ip(q(t.j,qjt)))!=0)for(n=dH,Qu(q(t.j,L$))!==Qu((Mk(),R0))&&pE(t.j,(fz(),kQ),(sp(),!0)),a=H(q(t.j,e0),17).a,i=0;ii&&++u,Cf(o,(Db(s+u,t.c.length),H(t.c[s+u],17))),l+=(Db(s+u,t.c.length),H(t.c[s+u],17)).a-r,++n;n=v&&e.e[u.p]>g*e.b||x>=n*v)&&(oo(m.c,l),l=new to,zw(s,o),o.a.$b(),d-=f,h=r.Math.max(h,d*e.b+_),d+=x,b=x,x=0,f=0,_=0);return new qu(h,m)}function sL(e){var t,n,r,i,a,o,s;if(!e.d){if(s=new $oe,t=e9,a=t.a.zc(e,t),a==null){for(r=new Mf(Cy(e));r.e!=r.i.gc();)n=H(cA(r),29),b_(s,sL(n));t.a.Bc(e),t.a.gc()}for(o=s.i,i=(!e.q&&(e.q=new Bg(M7,e,11,10)),new Mf(e.q));i.e!=i.i.gc();++o)H(cA(i),411);b_(s,(!e.q&&(e.q=new Bg(M7,e,11,10)),e.q)),KE(s),e.d=new gd((H(G(ly((A_(),R7).o),9),19),s.i),s.g),e.e=H(s.g,688),e.e??=rHt,Ix(e).b&=-17}return e.d}function cL(e,t,n,r){var i,a,o,s,l,u=jF(e.e.Dh(),t);if(l=0,i=H(e.g,124),Rl(),H(t,69).xk()){for(o=0;o1||h==-1){if(f=H(g,71),p=H(d,71),f.dc())p.$b();else for(o=!!OA(t),a=0,s=e.a?f.Kc():f.Ii();s.Ob();)u=H(s.Pb(),58),i=H(cC(e,u),58),i?(o?(l=p.dd(i),l==-1?p.Gi(a,i):a!=l&&p.Ui(a,i)):p.Gi(a,i),++a):e.b&&!o&&(p.Gi(a,u),++a)}else g==null?d.Wb(null):(i=cC(e,g),i==null?e.b&&!OA(t)&&d.Wb(g):d.Wb(i))}}function Pct(e,t){for(var n=new $ee,i,a=new Mg(Vf(yO(t).a.Kc(),new f)),o,s,l,u,d;GP(a);)if(i=H(Rx(a),18),!Fx(i)&&(l=i.c.i,bM(l,PX))){if(d=tat(e,l,PX,NX),d==-1)continue;n.b=r.Math.max(n.b,d),!n.a&&(n.a=new to),Cf(n.a,l)}for(s=new Mg(Vf(bO(t).a.Kc(),new f));GP(s);)if(o=H(Rx(s),18),!Fx(o)&&(u=o.d.i,bM(u,NX))){if(d=tat(e,u,NX,PX),d==-1)continue;n.d=r.Math.max(n.d,d),!n.c&&(n.c=new to),Cf(n.c,u)}return n}function Fct(e,t,n,r){var i,a,o,s,l,u,d;if(n.d.i!=t.i){for(i=new kA(e),mi(i,(sN(),DX)),pE(i,(fz(),WQ),n),pE(i,(sz(),E1),(_M(),d5)),oo(r.c,i),o=new uN,mb(o,i),$N(o,(WR(),U5)),s=new uN,mb(s,i),$N(s,C5),d=n.d,hb(n,o),a=new yy,NT(a,n),pE(a,i1,null),fb(a,s),hb(a,d),u=new Hb(n.b,0);u.b1e6)throw R(new Xme(`power of ten too big`));if(e<=Cz)return zx(OP(HJ[1],t),t);for(r=OP(HJ[1],Cz),i=r,n=kT(e-Cz),t=Vy(e%Cz);uD(n,Cz)>0;)i=hx(i,r),n=dO(n,Cz);for(i=hx(i,OP(HJ[1],t)),i=zx(i,Cz),n=kT(e-Cz);uD(n,Cz)>0;)i=zx(i,Cz),n=dO(n,Cz);return i=zx(i,t),i}function uL(e){for(var t,n,r,i,a,o,s,l=new L(e.a),u,d;l.au&&r>u)d=s,u=z(t.p[s.p])+z(t.d[s.p])+s.o.b+s.d.a;else{i=!1,n._g()&&n.bh(`bk node placement breaks on `+s+` which should have been after `+d);break}if(!i)break}return n._g()&&n.bh(t+` is feasible: `+i),i}function mL(e,t,n,r){var i,a=new kA(e),o,s,l,u,d,f,p;if(mi(a,(sN(),kX)),pE(a,(sz(),E1),(_M(),d5)),i=0,t){for(o=new uN,pE(o,(fz(),WQ),t),pE(a,WQ,t.i),$N(o,(WR(),U5)),mb(o,a),p=Wb(t.e),u=p,d=0,f=u.length;d0){if(i<0&&d.a&&(i=l,a=u[0],r=0),i>=0){if(s=d.b,l==i&&(s-=r++,s==0))return 0;if(!YR(t,u,d,s,o)){l=i-1,u[0]=a;continue}}else if(i=-1,!YR(t,u,d,0,o))return 0}else{if(i=-1,kv(d.c,0)==32){if(f=u[0],fWe(t,u),u[0]>f)continue}else if(LPe(t,d.c,u[0])){u[0]+=d.c.length;continue}return 0}return Jdt(o,n)?u[0]:0}function zct(e,t,n){var r,i,a,o,s,l,u,d=new _je(new la(n)),f,p;for(s=dS(I9,DV,28,e.f.e.c.length,16,1),s_(s,s.length),n[t.a]=0,u=new L(e.f.e);u.a=0&&!LA(e,d,f);)--f;i[d]=f}for(m=0;m=0&&!LA(e,s,h);)--s;a[h]=s}for(l=0;lt[p]&&pr[l]&&sI(e,l,p,!1,!0)}function vL(e){var t,n=ks(Fp(q(e,(WI(),ITt)))),r,i,a=e.a.c.d,o,s=e.a.d.d,l;n?(o=Sf(pm(new ku(s.a,s.b),a),.5),l=Sf(vf(e.e),.5),t=pm(fm(new ku(a.a,a.b),o),l),Owe(e.d,t)):(i=z(Ip(q(e.a,JTt))),r=e.d,a.a>=s.a?a.b>=s.b?(r.a=s.a+(a.a-s.a)/2+i,r.b=s.b+(a.b-s.b)/2-i-e.e.b):(r.a=s.a+(a.a-s.a)/2+i,r.b=a.b+(s.b-a.b)/2+i):a.b>=s.b?(r.a=a.a+(s.a-a.a)/2+i,r.b=s.b+(a.b-s.b)/2+i):(r.a=a.a+(s.a-a.a)/2+i,r.b=a.b+(s.b-a.b)/2-i-e.e.b))}function yL(e){var t,n,r,i,a,o,s,l;if(!e.f){if(l=new Zoe,s=new Zoe,t=e9,o=t.a.zc(e,t),o==null){for(a=new Mf(Cy(e));a.e!=a.i.gc();)i=H(cA(a),29),b_(l,yL(i));t.a.Bc(e),t.a.gc()}for(r=(!e.s&&(e.s=new Bg(E7,e,21,17)),new Mf(e.s));r.e!=r.i.gc();)n=H(cA(r),179),V(n,102)&&_S(s,H(n,19));KE(s),e.r=new jke(e,(H(G(ly((A_(),R7).o),6),19),s.i),s.g),b_(l,e.r),KE(l),e.f=new gd((H(G(ly(R7.o),5),19),l.i),l.g),Ix(e).b&=-3}return e.f}function bL(e){jl(e,new EM(lc(oc(cc(sc(new Vn,iH),`ELK DisCo`),`Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out.`),new Dt))),Jb(e,iH,aH,sA(xTt)),Jb(e,iH,oH,sA(hTt)),Jb(e,iH,sH,sA(dTt)),Jb(e,iH,cH,sA(gTt)),Jb(e,iH,xV,sA(yTt)),Jb(e,iH,SV,sA(vTt)),Jb(e,iH,bV,sA(bTt)),Jb(e,iH,CV,sA(_Tt)),Jb(e,iH,eH,sA(pTt)),Jb(e,iH,tH,sA(fTt)),Jb(e,iH,nH,sA(mTt)),Jb(e,iH,rH,sA(HY))}function xL(){xL=D,QBt=K(B(P9,1),yB,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),$Bt=RegExp(`[ +\r\f]+`);try{y7=K(B(aHt,1),Oz,2114,0,[new Xa((fxe(),lk(`yyyy-MM-dd'T'HH:mm:ss'.'SSSZ`,$p((ws(),ws(),pJ))))),new Xa(lk(`yyyy-MM-dd'T'HH:mm:ss'.'SSS`,$p(pJ))),new Xa(lk(`yyyy-MM-dd'T'HH:mm:ss`,$p(pJ))),new Xa(lk(`yyyy-MM-dd'T'HH:mm`,$p(pJ))),new Xa(lk(`yyyy-MM-dd`,$p(pJ)))])}catch(e){if(e=GT(e),!V(e,82))throw R(e)}}function Bct(e,t){var n,r,i=hF(e.d,1)!=0,a;if(r=tot(e,t),r==0&&ks(Fp(q(t.j,(fz(),kQ)))))return 0;!ks(Fp(q(t.j,(fz(),kQ))))&&!ks(Fp(q(t.j,ZQ)))||Qu(q(t.j,(sz(),L$)))===Qu((Mk(),R0))?t.c.mg(t.e,i):i=ks(Fp(q(t.j,kQ))),OF(e,t,i,!0),ks(Fp(q(t.j,ZQ)))&&pE(t.j,ZQ,(sp(),!1)),ks(Fp(q(t.j,kQ)))&&(pE(t.j,kQ,(sp(),!1)),pE(t.j,ZQ,!0)),n=tot(e,t);do{if(vqe(e),n==0)return 0;i=!i,a=n,OF(e,t,i,!1),n=tot(e,t)}while(a>n);return a}function SL(e,t){var n,r,i=hF(e.d,1)!=0,a;if(r=VN(e,t),r==0&&ks(Fp(q(t.j,(fz(),kQ)))))return 0;!ks(Fp(q(t.j,(fz(),kQ))))&&!ks(Fp(q(t.j,ZQ)))||Qu(q(t.j,(sz(),L$)))===Qu((Mk(),R0))?t.c.mg(t.e,i):i=ks(Fp(q(t.j,kQ))),OF(e,t,i,!0),ks(Fp(q(t.j,ZQ)))&&pE(t.j,ZQ,(sp(),!1)),ks(Fp(q(t.j,kQ)))&&(pE(t.j,kQ,(sp(),!1)),pE(t.j,ZQ,!0)),n=VN(e,t);do{if(vqe(e),n==0)return 0;i=!i,a=n,OF(e,t,i,!1),n=VN(e,t)}while(a>n);return a}function CL(e,t,n,i){var a,o,s,l,u=pm(new ku(n.a,n.b),e),d=u.a*t.b-u.b*t.a,f=t.a*i.b-t.b*i.a,p=(u.a*i.b-u.b*i.a)/f,m=d/f;return f==0?d==0?(a=fm(new ku(n.a,n.b),Sf(new ku(i.a,i.b),.5)),o=yS(e,a),s=yS(fm(new ku(e.a,e.b),t),a),l=r.Math.sqrt(i.a*i.a+i.b*i.b)*.5,o=0&&p<=1&&m>=0&&m<=1?fm(new ku(e.a,e.b),Sf(new ku(t.a,t.b),p)):null}function Vct(e,t,n){var r=H(q(e,(sz(),Zjt)),21),i,a,o,s;if(n.a>t.a&&(r.Hc((lM(),t6))?e.c.a+=(n.a-t.a)/2:r.Hc(r6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((lM(),a6))?e.c.b+=(n.b-t.b)/2:r.Hc(i6)&&(e.c.b+=n.b-t.b)),H(q(e,(fz(),AQ)),21).Hc((UF(),rQ))&&(n.a>t.a||n.b>t.b))for(s=new L(e.a);s.at.a&&(r.Hc((lM(),t6))?e.c.a+=(n.a-t.a)/2:r.Hc(r6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((lM(),a6))?e.c.b+=(n.b-t.b)/2:r.Hc(i6)&&(e.c.b+=n.b-t.b)),H(q(e,(fz(),AQ)),21).Hc((UF(),rQ))&&(n.a>t.a||n.b>t.b))for(o=new L(e.a);o.a0?e.i:0)>t&&u>0&&(o=0,s+=u+e.i,a=r.Math.max(a,m),i+=u+e.i,u=0,m=0,n&&(++p,Cf(e.n,new Hy(e.s,s,e.i))),l=0),m+=d.g+(l>0?e.i:0),u=r.Math.max(u,d.f),n&&FA(H($h(e.n,p),209),d),o+=d.g+(l>0?e.i:0),++l;return a=r.Math.max(a,m),i+=u,n&&(e.r=a,e.d=i,n4e(e.j)),new Bv(e.s,e.t,a,i)}function TL(e){var t,n,i,a,o,s,l,u,d,f,p,m;for(e.b=!1,p=KB,u=qB,m=KB,d=qB,i=e.e.a.ec().Kc();i.Ob();)for(n=H(i.Pb(),272),a=n.a,p=r.Math.min(p,a.c),u=r.Math.max(u,a.c+a.b),m=r.Math.min(m,a.d),d=r.Math.max(d,a.d+a.a),s=new L(n.c);s.ae.o.a&&(f=(u-e.o.a)/2,l.b=r.Math.max(l.b,f),l.c=r.Math.max(l.c,f))}}function Wct(e){var t,n,r,i,a=new zb,o,s,l;for(Bxe(a,(eE(),BRt)),r=(i=bqe(e,dS(FJ,Gz,2,0,6,1)),new Wi(new Hs(new Wc(e,i).b)));r.bs?1:-1,i==-1)f=-l,d=o==l?vVe(t.a,s,e.a,a):EHe(t.a,s,e.a,a);else if(f=o,o==l){if(i==0)return uI(),BJ;d=vVe(e.a,a,t.a,s)}else d=EHe(e.a,a,t.a,s);return u=new c_(f,d.length,d),Gb(u),u}function PL(e,t){var n,r,i,a=Vst(t);if(!t.c&&(t.c=new Bg(v7,t,9,9)),sl(new ig(null,(!t.c&&(t.c=new Bg(v7,t,9,9)),new kb(t.c,16))),new va(a)),i=H(q(a,(fz(),AQ)),21),$ut(t,i),i.Hc((UF(),rQ)))for(r=new Mf((!t.c&&(t.c=new Bg(v7,t,9,9)),t.c));r.e!=r.i.gc();)n=H(cA(r),123),Pdt(e,t,a,n);return H(eF(t,(sz(),_1)),181).gc()!=0&&Tit(t,a),ks(Fp(q(a,kMt)))&&i.Fc(cQ),xp(a,I1)&&Hme(new _$e(z(Ip(q(a,I1)))),a),Qu(eF(t,$$))===Qu((gD(),H8))?Lpt(e,t,a):hpt(e,t,a),a}function Gct(e){for(var t,n,r,i=new L(e.b),a,o,s,l;i.a0?Ey(n.a,0,a-1):``):(hS(0,a-1,e.length),e.substr(0,a-1)):n?n.a:e}function IL(e,t){var n,r,i,a,o,s,l;for(t.Ug(`Sort By Input Model `+q(e,(sz(),L$)),1),i=0,r=new L(e.b);r.a=e.b.length?(a[i++]=o.b[r++],a[i++]=o.b[r++]):r>=o.b.length?(a[i++]=e.b[n++],a[i++]=e.b[n++]):o.b[r]0?e.i:0)),++t;for(yQe(e.n,u),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=KB,e.p=KB,o=new L(e.b);o.a0&&(i=(!e.n&&(e.n=new Bg(g7,e,1,7)),H(G(e.n,0),135)).a,!i||ld(ld((t.a+=` "`,t),i),`"`))),n=(!e.b&&(e.b=new hm(l7,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new hm(l7,e,5,8)),e.c.i<=1))),n?t.a+=` [`:t.a+=` `,ld(t,hCe(new ahe,new Mf(e.b))),n&&(t.a+=`]`),t.a+=Xht,n&&(t.a+=`[`),ld(t,hCe(new ahe,new Mf(e.c))),n&&(t.a+=`]`),t.a)}function BL(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S=e.c,C=t.c,w,T,E,D;for(n=HS(S.a,e,0),r=HS(C.a,t,0),b=H(sk(e,(gw(),B0)).Kc().Pb(),12),E=H(sk(e,V0).Kc().Pb(),12),x=H(sk(t,B0).Kc().Pb(),12),D=H(sk(t,V0).Kc().Pb(),12),v=Wb(b.e),w=Wb(E.g),y=Wb(x.e),T=Wb(D.g),Sj(e,r,C),o=y,d=0,h=o.length;df?new xb((sS(),b2),n,t,d-f):d>0&&f>0&&(new xb((sS(),b2),t,n,0),new xb(b2,n,t,0))),s)}function Jct(e,t,n){var r,i,a;for(e.a=new to,a=iA(t.b,0);a.b!=a.d.c;){for(i=H(lx(a),40);H(q(i,(YI(),n4)),17).a>e.a.c.length-1;)Cf(e.a,new qu(dH,jW));r=H(q(i,n4),17).a,n==(WD(),T8)||n==E8?(i.e.az(Ip(H($h(e.a,r),42).b))&&vi(H($h(e.a,r),42),i.e.a+i.f.a)):(i.e.bz(Ip(H($h(e.a,r),42).b))&&vi(H($h(e.a,r),42),i.e.b+i.f.b))}}function Yct(e,t,n,r){var i,a=iO(r),o,s=ks(Fp(q(r,(sz(),xMt)))),l,u,d;if((s||ks(Fp(q(e,e1))))&&!Md(H(q(e,E1),101)))i=UO(a),l=ust(e,n,n==(gw(),V0)?i:JD(i));else switch(l=new uN,mb(l,e),t?(d=l.n,d.a=t.a-e.n.a,d.b=t.b-e.n.b,g5e(d,0,0,e.o.a,e.o.b),$N(l,gst(l,a))):(i=UO(a),$N(l,n==(gw(),V0)?i:JD(i))),o=H(q(r,(fz(),AQ)),21),u=l.j,a.g){case 2:case 1:(u==(WR(),w5)||u==V5)&&o.Fc((UF(),sQ));break;case 4:case 3:(u==(WR(),C5)||u==U5)&&o.Fc((UF(),sQ))}return l}function UL(e,t){for(var n,i,a,o,s=new yT(new ki(e.f.b).a),l;s.b;){if(o=Dw(s),a=H(o.ld(),602),t==1){if(a.Af()!=(WD(),O8)&&a.Af()!=w8)continue}else if(a.Af()!=(WD(),T8)&&a.Af()!=E8)continue;switch(i=H(H(o.md(),42).b,86),l=H(H(o.md(),42).a,194),n=l.c,a.Af().g){case 2:i.g.c=e.e.a,i.g.b=r.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=r.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=r.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=r.Math.max(1,i.g.a-n)}}}function Xct(e,t){var n,i,a,o,s,l=dS(F9,jB,28,t.b.c.length,15,1),u,d=dS(JEt,cB,273,t.b.c.length,0,1),f,p,m,h,g,_;for(u=dS(CX,nU,10,t.b.c.length,0,1),p=e.a,m=0,h=p.length;m0&&u[i]&&(g=_f(e.b,u[i],a)),_=r.Math.max(_,a.c.c.b+g);for(o=new L(f.e);o.a1)throw R(new Ps(kq));l||(a=vx(t,r.Kc().Pb()),o.Fc(a))}return sE(e,z5e(e,t,n),o)}function WL(e,t,n){var r,i,a,o,s,l,u,d;if(PF(e.e,t))l=(Rl(),H(t,69).xk()?new Gh(t,e):new Xu(t,e)),PP(l.c,l.b),yf(l,H(n,16));else{for(d=jF(e.e.Dh(),t),r=H(e.g,124),o=0;o`}l!=null&&(t.a+=``+l)}else e.e?(s=e.e.zb,s!=null&&(t.a+=``+s)):(t.a+=`?`,e.b?(t.a+=` super `,olt(e.b,t)):e.f&&(t.a+=` extends `,olt(e.f,t)))}function slt(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function GL(e){var t,n,i=az((!e.c&&(e.c=vb(kT(e.f))),e.c),0),a;if(e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=+(Sqe(e)<0),n=e.e,a=(i.length+1+r.Math.abs(Vy(e.e)),new $s),t==1&&(a.a+=`-`),e.e>0){if(n-=i.length-t,n>=0){for(a.a+=`0.`;n>IJ.length;n-=IJ.length)iAe(a,IJ);TTe(a,IJ,Vy(n)),ld(a,(Ob(t,i.length+1),i.substr(t)))}else n=t-n,ld(a,Ey(i,t,Vy(n))),a.a+=`.`,ld(a,RMe(i,Vy(n)))}else{for(ld(a,(Ob(t,i.length+1),i.substr(t)));n<-IJ.length;n+=IJ.length)iAe(a,IJ);TTe(a,IJ,Vy(-n))}return a.a}function KL(e){var t,n,r,i,a,o,s,l,u;return!(e.k!=(sN(),OX)||e.j.c.length<=1||(a=H(q(e,(sz(),E1)),101),a==(_M(),d5))||(i=(wA(),r=(e.q?e.q:(iy(),iy(),KJ))._b(m1)?H(q(e,m1),203):H(q($_(e),h1),203),r),i==T0)||i!=w0&&i!=C0&&(o=z(Ip(uk(e,$1))),t=H(q(e,Q1),140),!t&&(t=new ITe(o,o,o,o)),u=fO(e,(WR(),U5)),l=t.d+t.a+(u.gc()-1)*o,l>e.o.b||(n=fO(e,C5),s=t.d+t.a+(n.gc()-1)*o,s>e.o.b)))}function qL(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;t.Ug(`Orthogonal edge routing`,1),u=z(Ip(q(e,(sz(),X1)))),n=z(Ip(q(e,B1))),r=z(Ip(q(e,U1))),p=new SMe(0,n),_=0,o=new Hb(e.b,0),s=null,d=null,l=null,f=null;do d=o.b0?(m=(h-1)*n,s&&(m+=r),d&&(m+=r),mt||ks(Fp(eF(l,(JF(),A4)))))&&(i=0,a+=d.b+n,oo(f.c,d),d=new ELe(a,n),r=new PE(0,d.f,d,n),QGe(d,r),i=0),r.b.c.length==0||!ks(Fp(eF(ib(l),(JF(),zLt))))&&(l.f>=r.o&&l.f<=r.f||r.a*.5<=l.f&&r.a*1.5>=l.f)?LQe(r,l):(o=new PE(r.s+r.r+n,d.f,d,n),QGe(d,o),LQe(o,l)),i=l.i+l.g;return oo(f.c,d),f}function iR(e){var t,n,r,i;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,i=0;i=e.b[i+1])i+=2;else if(n0)for(r=new Dm(H(Wx(e.a,a),21)),iy(),ff(r,new fa(t)),i=new Hb(a.b,0);i.b0&&r>=-6?r>=0?$f(a,n-Vy(e.e),`.`):(rJe(a,t-1,t-1,`0.`),$f(a,t+1,Ak(IJ,0,-Vy(r)-1))):(n-t>=1&&($f(a,t,`.`),++n),$f(a,n,`E`),r>0&&$f(a,++n,`+`),$f(a,++n,``+Rg(kT(r)))),e.g=a.a,e.g)):e.g}function plt(e,t){var n,i=z(Ip(q(t,(sz(),TMt)))),a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=H(q(t,e0),17).a,w,T;m=4,a=3,w=20/C,h=!1,u=0,s=Cz;do{for(o=u!=1,p=u!=0,T=0,v=e.a,b=0,S=v.length;bC)?(u=2,s=Cz):u==0?(u=1,s=T):(u=0,s=T)):(h=T>=s||s-T0?1:xd(isNaN(i),!1))>=0^(vw(_W),(r.Math.abs(l)<=_W||l==0?0:l<0?-1:l>0?1:xd(isNaN(l),!1))>=0)?r.Math.max(l,i):(vw(_W),(r.Math.abs(i)<=_W||i==0?0:i<0?-1:i>0?1:xd(isNaN(i),!1))>0?r.Math.sqrt(l*l+i*i):-r.Math.sqrt(l*l+i*i))}function lR(e,t){var n,r,i,a,o,s;if(t){if(!e.a&&(e.a=new Mo),e.e==2){Do(e.a,t);return}if(t.e==1){for(i=0;i=XB?od(n,OQe(r)):U_(n,r&xB),o=(++M9,new mFe(10,null,0)),i_(e.a,o,s-1)):(n=(o.Mm().length+a,new Zs),od(n,o.Mm())),t.e==0?(r=t.Km(),r>=XB?od(n,OQe(r)):U_(n,r&xB)):od(n,t.Mm()),H(o,530).b=n.a}}function glt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(!n.dc()){for(s=0,p=0,r=n.Kc(),h=H(r.Pb(),17).a;s1&&(l=u.Hg(l,e.a,s));return l.c.length==1?H($h(l,l.c.length-1),238):l.c.length==2?$L((Db(0,l.c.length),H(l.c[0],238)),(Db(1,l.c.length),H(l.c[1],238)),o,a):null}function blt(e,t,n){var r,i,a,o,s,l,u;for(n.Ug(`Find roots`,1),e.a.c.length=0,i=iA(t.b,0);i.b!=i.d.c;)r=H(lx(i),40),r.b.b==0&&(pE(r,(UR(),K2),(sp(),!0)),Cf(e.a,r));switch(e.a.c.length){case 0:a=new VYe(0,t,`DUMMY_ROOT`),pE(a,(UR(),K2),(sp(),!0)),pE(a,QPt,!0),Ih(t.b,a);break;case 1:break;default:for(o=new VYe(0,t,kW),l=new L(e.a);l.a=r.Math.abs(i.b)?(i.b=0,o.d+o.a>s.d&&o.ds.c&&o.c0){if(t=new Kbe(e.i,e.g),n=e.i,a=n<100?null:new xc(n),e.Tj())for(r=0;r0){for(s=e.g,u=e.i,Ux(e),a=u<100?null:new xc(u),r=0;r>13|(e.m&15)<<9,i=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,o=(e.h&1048320)>>8,s=t.l&8191,l=t.l>>13|(t.m&15)<<9,u=t.m>>4&8191,d=t.m>>17|(t.h&255)<<5,f=(t.h&1048320)>>8,p,m,h,g,_,v,y,b,x,S,C,w,T=n*s,E=r*s,D=i*s,O=a*s,k=o*s;return l!=0&&(E+=n*l,D+=r*l,O+=i*l,k+=a*l),u!=0&&(D+=n*u,O+=r*u,k+=i*u),d!=0&&(O+=n*d,k+=r*d),f!=0&&(k+=n*f),m=T&RB,h=(E&511)<<13,p=m+h,_=T>>22,v=E>>9,y=(D&262143)<<4,b=(O&31)<<17,g=_+v+y+b,S=D>>18,C=O>>5,w=(k&4095)<<8,x=S+C+w,g+=p>>22,p&=RB,x+=g>>22,g&=RB,x&=zB,gf(p,g,x)}function Clt(e){var t,n,i,a,o,s,l=H($h(e.j,0),12);if(l.g.c.length!=0&&l.e.c.length!=0)throw R(new Fs(`Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges.`));if(l.g.c.length!=0){for(o=KB,n=new L(l.g);n.a4){if(e.fk(t)){if(e.al()){if(i=H(t,54),r=i.Eh(),l=r==e.e&&(e.ml()?i.yh(i.Fh(),e.il())==e.jl():-1-i.Fh()==e.Lj()),e.nl()&&!l&&!r&&i.Jh()){for(a=0;a0&&N5e(e,s,f);for(i=new L(f);i.ae.d[o.p]&&(n+=kBe(e.b,a)*H(l.b,17).a,ux(e.a,bD(a)));for(;!Ws(e.a);)uWe(e.b,H($g(e.a),17).a)}return n}function Dlt(e,t){var n,r,i,a,o,s,l,u,d=H(q(e,(fz(),OQ)),64),f;if(r=H($h(e.j,0),12),d==(WR(),w5)?$N(r,V5):d==V5&&$N(r,w5),H(q(t,(sz(),_1)),181).Hc((xk(),J5))){if(l=z(Ip(q(e,q1))),u=z(Ip(q(e,J1))),o=z(Ip(q(e,G1))),s=H(q(t,k1),21),s.Hc((rP(),v5)))for(n=u,f=e.o.a/2-r.n.a,a=new L(r.f);a.a0&&(u=e.n.a/a);break;case 2:case 4:i=e.i.o.b,i>0&&(u=e.n.b/i)}pE(e,(fz(),qQ),u)}if(l=e.o,o=e.a,r)o.a=r.a,o.b=r.b,e.d=!0;else if(t!=m5&&t!=h5&&s!=H5)switch(s.g){case 1:o.a=l.a/2;break;case 2:o.a=l.a,o.b=l.b/2;break;case 3:o.a=l.a/2,o.b=l.b;break;case 4:o.b=l.b/2}else o.a=l.a/2,o.b=l.b/2}function mR(e){var t,n,r,i,a,o,s,l,u,d;if(e.Pj()){if(d=e.Ej(),l=e.Qj(),d>0){if(t=new sT(e.pj()),n=d,a=n<100?null:new xc(n),Jp(e,n,t.g),i=n==1?e.Ij(4,G(t,0),null,0,l):e.Ij(6,t,null,-1,l),e.Mj()){for(r=new Mf(t);r.e!=r.i.gc();)a=e.Oj(cA(r),a);a?(a.nj(i),a.oj()):e.Jj(i)}else a?(a.nj(i),a.oj()):e.Jj(i)}else Jp(e,e.Ej(),e.Fj()),e.Jj(e.Ij(6,(iy(),GJ),null,-1,l))}else if(e.Mj()){if(d=e.Ej(),d>0){for(s=e.Fj(),u=d,Jp(e,d,s),a=u<100?null:new xc(u),r=0;r1&&cg(o)*sg(o)/2>s[0]){for(a=0;as[a];)++a;h=new yb(g,0,a+1),f=new WC(h),d=cg(o)/sg(o),l=Kft(f,t,new Yo,n,r,i,d),fm(md(f.e),l),vh(zM(p,f),tV),m=new yb(g,a+1,g.c.length),C4e(p,m),g.c.length=0,u=0,RAe(s,s.length,0)}else _=p.b.c.length==0?null:$h(p.b,0),_!=null&&oqe(p,0),u>0&&(s[u]=s[u-1]),s[u]+=cg(o)*sg(o),++u,oo(g.c,o);return g}function Mlt(e,t){var n=t.b,r,i,a=new Dm(n.j);i=0,r=n.j,r.c.length=0,y_(H(vT(e.b,(WR(),w5),(Tw(),bZ)),15),n),i=EA(a,i,new Xne,r),y_(H(vT(e.b,w5,yZ),15),n),i=EA(a,i,new Une,r),y_(H(vT(e.b,w5,vZ),15),n),y_(H(vT(e.b,C5,bZ),15),n),y_(H(vT(e.b,C5,yZ),15),n),i=EA(a,i,new Zne,r),y_(H(vT(e.b,C5,vZ),15),n),y_(H(vT(e.b,V5,bZ),15),n),i=EA(a,i,new Qne,r),y_(H(vT(e.b,V5,yZ),15),n),i=EA(a,i,new $ne,r),y_(H(vT(e.b,V5,vZ),15),n),y_(H(vT(e.b,U5,bZ),15),n),i=EA(a,i,new Kne,r),y_(H(vT(e.b,U5,yZ),15),n),y_(H(vT(e.b,U5,vZ),15),n)}function gR(e,t,n){for(var r,i,a,o,s=new L(t),l,u,d,f,p,m;s.a.5?y-=s*2*(g-.5):g<.5&&(y+=o*2*(.5-g)),a=l.d.b,yv.a-_-f&&(y=v.a-_-f),l.n.a=t+y}}function Rlt(e){var t,n,r=H(q(e,(sz(),o1)),171),i,a;if(r==(KO(),a$)){for(n=new Mg(Vf(yO(e).a.Kc(),new f));GP(n);)if(t=H(Rx(n),18),!sVe(t))throw R(new Rs(mgt+oj(e)+`' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges.`))}else if(r==s$){for(a=new Mg(Vf(bO(e).a.Kc(),new f));GP(a);)if(i=H(Rx(a),18),!sVe(i))throw R(new Rs(mgt+oj(e)+`' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges.`))}}function _R(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h;if(e.e&&e.c.c>19&&(t=lE(t),l=!l),o=lnt(t),a=!1,i=!1,r=!1,e.h==BB&&e.m==0&&e.l==0){if(i=!0,a=!0,o==-1)e=yd((aC(),yJ)),r=!0,l=!l;else return s=Aet(e,o),l&&OE(s),n&&(vJ=gf(0,0,0)),s}else e.h>>19&&(a=!0,e=lE(e),r=!0,l=!l);return o==-1?q4e(e,t)<0?(n&&(vJ=a?lE(e):gf(e.l,e.m,e.h)),gf(0,0,0)):Wot(r?e:gf(e.l,e.m,e.h),t,l,a,i,n):MYe(e,o,l,a,n)}function Blt(e,t){var n,r,i,a,o=e.e,s,l=t.e,u,d,f,p,m,h;if(o==0)return t;if(l==0)return e;if(a=e.d,s=t.d,a+s==2)return n=Nb(e.a[0],$B),r=Nb(t.a[0],$B),o==l?(d=lO(n,r),h=Tg(d),m=Tg(jg(d,32)),m==0?new Sx(o,h):new c_(o,2,K(B(F9,1),jB,28,15,[h,m]))):(uI(),Xbe(o<0?dO(r,n):dO(n,r),0)?pk(o<0?dO(r,n):dO(n,r)):g_(pk(VS(o<0?dO(r,n):dO(n,r)))));if(o==l)p=o,f=a>=s?EHe(e.a,a,t.a,s):EHe(t.a,s,e.a,a);else{if(i=a==s?oXe(e.a,t.a,a):a>s?1:-1,i==0)return uI(),BJ;i==1?(p=o,f=vVe(e.a,a,t.a,s)):(p=l,f=vVe(t.a,s,e.a,a))}return u=new c_(p,f.length,f),Gb(u),u}function Vlt(e,t){var n,r,i,a,o,s,l;if(!(e.g>t.f||t.g>e.f)){for(n=0,r=0,o=e.w.a.ec().Kc();o.Ob();)i=H(o.Pb(),12),JXe(TE(K(B(R3,1),Gz,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&++n;for(s=e.r.a.ec().Kc();s.Ob();)i=H(s.Pb(),12),JXe(TE(K(B(R3,1),Gz,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&--n;for(l=t.w.a.ec().Kc();l.Ob();)i=H(l.Pb(),12),JXe(TE(K(B(R3,1),Gz,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++r;for(a=t.r.a.ec().Kc();a.Ob();)i=H(a.Pb(),12),JXe(TE(K(B(R3,1),Gz,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--r;n=0)return n;switch(uv(qS(e,n))){case 2:if(_m(``,ED(e,n.qk()).xe())){if(l=Tv(qS(e,n)),s=wv(qS(e,n)),d=htt(e,t,l,s),d)return d;for(i=_ot(e,t),o=0,f=i.gc();o1)throw R(new Ps(kq));for(d=jF(e.e.Dh(),t),r=H(e.g,124),o=0;o1,d=new Xx(m.b);pf(d.a)||pf(d.b);)u=H(pf(d.a)?W(d.a):W(d.b),18),p=u.c==m?u.d:u.c,r.Math.abs(TE(K(B(R3,1),Gz,8,0,[p.i.n,p.n,p.a])).b-s.b)>1&&Irt(e,u,s,o,m)}}function qlt(e){var t,n,i,a=new Hb(e.e,0),o,s;if(i=new Hb(e.a,0),e.d)for(n=0;nSW;){for(o=t,s=0;r.Math.abs(t-o)0),a.a.Xb(a.c=--a.b),act(e,e.b-s,o,i,a),zp(a.b0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n0?(e.f[f.p]=h/(f.e.c.length+f.g.c.length),e.c=r.Math.min(e.c,e.f[f.p]),e.b=r.Math.max(e.b,e.f[f.p])):l&&(e.f[f.p]=h)}}function Ylt(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function Xlt(e,t,n){var r,i,a,o;for(n.Ug(`Graph transformation (`+e.a+`)`,1),o=jb(t.a),a=new L(t.b);a.a=s.b.c)&&(s.b=t),(!s.c||t.c<=s.c.c)&&(s.d=s.c,s.c=t),(!s.e||t.d>=s.e.d)&&(s.e=t),(!s.f||t.d<=s.f.d)&&(s.f=t);return r=new pA((ZT(),fX)),Bb(e,zEt,new Hs(K(B(dX,1),Oz,382,0,[r]))),o=new pA(hX),Bb(e,REt,new Hs(K(B(dX,1),Oz,382,0,[o]))),i=new pA(pX),Bb(e,LEt,new Hs(K(B(dX,1),Oz,382,0,[i]))),a=new pA(mX),Bb(e,IEt,new Hs(K(B(dX,1),Oz,382,0,[a]))),fnt(r.c,fX),fnt(i.c,pX),fnt(a.c,mX),fnt(o.c,hX),s.a.c.length=0,qT(s.a,r.c),qT(s.a,VO(i.c)),qT(s.a,a.c),qT(s.a,VO(o.c)),s}function $lt(e,t){var n,i,a,o,s,l,u,d,f,p,m,h,g;for(t.Ug(eyt,1),h=z(Ip(eF(e,($F(),O4)))),s=z(Ip(eF(e,(JF(),M4)))),l=H(eF(e,j4),107),uqe((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a)),f=llt((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a),h,s),!e.a&&(e.a=new Bg(_7,e,10,11)),d=new L(f);d.a0&&(e.a=l+(h-1)*a,t.c.b+=e.a,t.f.b+=e.a)),g.a.gc()!=0&&(m=new SMe(1,a),h=Aut(m,t,g,_,t.f.b+l-t.c.b),h>0&&(t.f.b+=l+(h-1)*a))}function tut(e,t,n){var i,a,o,s,l,u,d,f=z(Ip(q(e,(sz(),H1)))),p,m,h,g,_,v,y,b,x,S;for(i=z(Ip(q(e,UMt))),m=new Doe,pE(m,H1,f+i),d=t,y=d.d,_=d.c.i,b=d.d.i,v=Nxe(_.c),x=Nxe(b.c),a=new to,p=v;p<=x;p++)l=new kA(e),mi(l,(sN(),DX)),pE(l,(fz(),WQ),d),pE(l,E1,(_M(),d5)),pE(l,W1,m),h=H($h(e.b,p),30),p==v?Sj(l,h.a.c.length-n,h):pb(l,h),S=z(Ip(q(d,Z$))),S<0&&(S=0,pE(d,Z$,S)),l.o.b=S,g=r.Math.floor(S/2),s=new uN,$N(s,(WR(),U5)),mb(s,l),s.n.b=g,u=new uN,$N(u,C5),mb(u,l),u.n.b=g,hb(d,s),o=new yy,NT(o,d),pE(o,i1,null),fb(o,u),hb(o,y),$4e(l,d,o),oo(a.c,o),d=o;return a}function nut(e,t){var n,r,i,a,o,s,l=H(mN(e,(WR(),U5)).Kc().Pb(),12).e,u,d,f,p,m=H(mN(e,C5).Kc().Pb(),12).g,h,g,_,v,y,b;for(s=l.c.length,b=wb(H($h(e.j,0),12));s-->0;){for(g=(Db(0,l.c.length),H(l.c[0],18)),i=(Db(0,m.c.length),H(m.c[0],18)),y=i.d.e,a=HS(y,i,0),yRe(g,i.d,a),fb(i,null),hb(i,null),h=g.a,t&&Ih(h,new Td(b)),r=iA(i.a,0);r.b!=r.d.c;)n=H(lx(r),8),Ih(h,new Td(n));for(v=g.b,p=new L(i.b);p.ao)&&t_(e.b,H(_.b,18));++s}a=o}}}function rut(e,t){var n;if(t==null||_m(t,Az)||t.length==0&&e.k!=(AN(),j3))return null;switch(e.k.g){case 1:return Bk(t,bG)?(sp(),CJ):Bk(t,xG)?(sp(),SJ):null;case 2:try{return bD(MI(t,pB,Cz))}catch(e){if(e=GT(e),V(e,130))return null;throw R(e)}case 4:try{return cN(t)}catch(e){if(e=GT(e),V(e,130))return null;throw R(e)}case 3:return t;case 5:return OXe(e),S9e(e,t);case 6:return OXe(e),Att(e,e.a,t);case 7:try{return n=met(e),n.cg(t),n}catch(e){if(e=GT(e),V(e,33))return null;throw R(e)}default:throw R(new Fs(`Invalid type set for this layout option.`))}}function iut(e){var t;switch(e.d){case 1:if(e.Sj())return e.o!=-2;break;case 2:if(e.Sj())return e.o==-2;break;case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Rj(),e.p){case 0:return t!=null&&ks(Fp(t))!=rd(e.k,0);case 1:return t!=null&&H(t,222).a!=Tg(e.k)<<24>>24;case 2:return t!=null&&H(t,180).a!=(Tg(e.k)&xB);case 6:return t!=null&&rd(H(t,168).a,e.k);case 5:return t!=null&&H(t,17).a!=Tg(e.k);case 7:return t!=null&&H(t,191).a!=Tg(e.k)<<16>>16;case 3:return t!=null&&z(Ip(t))!=e.j;case 4:return t!=null&&H(t,161).a!=e.j;default:return t==null?e.n!=null:!kD(t,e.n)}}function SR(e,t,n){var r,i,a,o;return e.ol()&&e.nl()&&(o=Yg(e,H(n,58)),Qu(o)!==Qu(n))?(e.xj(t),e.Dj(t,lUe(e,t,o)),e.al()&&(a=(i=H(n,54),e.ml()?e.kl()?i.Th(e.b,OA(H(CC(wy(e.b),e.Lj()),19)).n,H(CC(wy(e.b),e.Lj()).Hk(),29).kk(),null):i.Th(e.b,XO(i.Dh(),OA(H(CC(wy(e.b),e.Lj()),19))),null,null):i.Th(e.b,-1-e.Lj(),null,null)),!H(o,54).Ph()&&(a=(r=H(o,54),e.ml()?e.kl()?r.Rh(e.b,OA(H(CC(wy(e.b),e.Lj()),19)).n,H(CC(wy(e.b),e.Lj()).Hk(),29).kk(),a):r.Rh(e.b,XO(r.Dh(),OA(H(CC(wy(e.b),e.Lj()),19))),null,a):r.Rh(e.b,-1-e.Lj(),null,a))),a&&a.oj()),jd(e.b)&&e.Jj(e.Ij(9,n,o,t,!1)),o):n}function aut(e){for(var t,n,r=new to,i,a,o=new L(e.e.a),s,l,u,d;o.a0&&(s=r.Math.max(s,Eqe(e.C.b+i.d.b,a))),f=i,p=a,m=o;e.C&&e.C.c>0&&(h=m+e.C.c,d&&(h+=f.d.c),s=r.Math.max(s,(of(),vw(LV),r.Math.abs(p-1)<=LV||p==1?0:h/(1-p)))),n.n.b=0,n.a.a=s}function CR(e,t){var n=H(Sv(e.b,t),127),i,a,o,s,l,u=H(H(Wx(e.r,t),21),87),d,f,p,m,h;if(u.dc()){n.n.d=0,n.n.a=0;return}for(d=e.u.Hc((rP(),v5)),s=0,e.A.Hc((xk(),J5))&&Eat(e,t),l=u.Kc(),f=null,m=0,p=0;l.Ob();)i=H(l.Pb(),117),o=z(Ip(i.b.of((op(),DY)))),a=i.b.Mf().b,f?(h=p+f.d.a+e.w+i.d.d,s=r.Math.max(s,(of(),vw(LV),r.Math.abs(m-o)<=LV||m==o||isNaN(m)&&isNaN(o)?0:h/(o-m)))):e.C&&e.C.d>0&&(s=r.Math.max(s,Eqe(e.C.d+i.d.d,o))),f=i,m=o,p=a;e.C&&e.C.a>0&&(h=p+e.C.a,d&&(h+=f.d.a),s=r.Math.max(s,(of(),vw(LV),r.Math.abs(m-1)<=LV||m==1?0:h/(1-m)))),n.n.d=0,n.a.b=s}function sut(e,t,n,r,i,a,o,s){var l,u,d,f,p,m,h=!1,g,_,v;if(u=Wnt(n.q,t.f+t.b-n.q.f),m=r.f>t.b&&s,v=i-(n.q.e+u-o),f=(l=wL(r,v,!1),l.a),m&&f>r.f)return!1;if(m){for(p=0,_=new L(t.d);_.a<_.c.c.length;)g=H(W(_),315),p+=Wnt(g,r.f)+o;v=i-p}return v=(Db(a,e.c.length),H(e.c[a],186)).e,!m&&f>t.b&&!d)?!1:((d||m||f<=t.b)&&(d&&f>t.b?(n.d=f,TS(n,_N(n,f))):(H3e(n.q,u),n.c=!0),TS(r,i-(n.s+n.r)),DA(r,n.q.e+n.q.d,t.f),QGe(t,r),e.c.length>a&&(Nj((Db(a,e.c.length),H(e.c[a],186)),r),(Db(a,e.c.length),H(e.c[a],186)).a.c.length==0&&Kx(e,a)),h=!0),h)}function cut(e,t,n){var r,i,a,o,s,l;for(this.g=e,s=t.d.length,l=n.d.length,this.d=dS(CX,nU,10,s+l,0,1),o=0;o0?aGe(this,this.f/this.a):bf(t.g,t.d[0]).a!=null&&bf(n.g,n.d[0]).a!=null?aGe(this,(z(bf(t.g,t.d[0]).a)+z(bf(n.g,n.d[0]).a))/2):bf(t.g,t.d[0]).a==null?bf(n.g,n.d[0]).a!=null&&aGe(this,bf(n.g,n.d[0]).a):aGe(this,bf(t.g,t.d[0]).a)}function lut(e,t){var n,r,i,a,o,s,l,u,d,f;for(e.a=new BMe(oYe(k8)),r=new L(t.a);r.a=1&&(_-o>0&&f>=0?(l.n.a+=g,l.n.b+=a*o):_-o<0&&d>=0&&(l.n.a+=g*_,l.n.b+=a));e.o.a=t.a,e.o.b=t.b,pE(e,(sz(),_1),(xk(),r=H(Tc(Y5),9),new Om(r,H(im(r,r.length),9),0)))}function put(e,t,n,r,i,a){var o;if(t!=null&&PO(t,NVt,PVt))throw R(new Ps(`invalid scheme: `+t));if(!e&&!(n!=null&&bd(n,RM(35))==-1&&n.length>0&&(Ob(0,n.length),n.charCodeAt(0)!=47)))throw R(new Ps(`invalid opaquePart: `+n));if(e&&!(t!=null&&Kc(RVt,t.toLowerCase()))&&n!=null&&PO(n,S7,C7)||e&&t!=null&&Kc(RVt,t.toLowerCase())&&!o6e(n))throw R(new Ps(zK+n));if(!KQe(r))throw R(new Ps(`invalid device: `+r));if(!XXe(i))throw o=i==null?`invalid segments: null`:`invalid segment: `+IXe(i),R(new Ps(o));if(a!=null&&bd(a,RM(35))!=-1)throw R(new Ps(`invalid query: `+a))}function mut(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y;if(n.Ug(`Network simplex layering`,1),e.b=t,y=H(q(t,(sz(),e0)),17).a*4,v=e.b.a,v.c.length<1){n.Vg();return}for(o=xot(e,v),_=null,a=iA(o,0);a.b!=a.d.c;){for(i=H(lx(a),15),l=y*Vy(r.Math.sqrt(i.gc())),s=AI(i),Mot(Dhe(khe(Ohe(gDe(s),l),_),!0),n.eh(1)),m=e.b.b,g=new L(s.a);g.a1)for(_=dS(F9,jB,28,e.b.b.c.length,15,1),p=0,d=new L(e.b.b);d.a0){Zk(e,n,0),n.a+=String.fromCharCode(r),i=l1e(t,a),Zk(e,n,i),a+=i-1;continue}r==39?a+10&&h.a<=0){l.c.length=0,oo(l.c,h);break}m=h.i-h.d,m>=s&&(m>s&&(l.c.length=0,s=m),oo(l.c,h))}l.c.length!=0&&(o=H($h(l,R0e(i,l.c.length)),118),b.a.Bc(o),o.g=d++,nct(o,t,n,r),l.c.length=0)}for(_=e.c.length+1,p=new L(e);p.aqB||t.o==d2&&d=s&&i<=l)s<=i&&a<=l?(n[d++]=i,n[d++]=a,r+=2):s<=i?(n[d++]=i,n[d++]=l,e.b[r]=l+1,o+=2):a<=l?(n[d++]=s,n[d++]=a,r+=2):(n[d++]=s,n[d++]=l,e.b[r]=l+1);else if(lfB)&&l<10);ac(e.c,new It),xut(e),Qje(e.c),Zlt(e.f)}function Tut(e,t){var n=H(q(e,(sz(),E1)),101),i,a,o,s=e.f,l,u,d,f,p,m,h,g,_;for(o=e.d,l=s.a+o.b+o.c,u=0-o.d-e.c.b,f=s.b+o.d+o.a-e.c.b,d=new to,p=new to,a=new L(t);a.a=2){for(l=iA(n,0),o=H(lx(l),8),s=H(lx(l),8);s.a0&&aE(u,!0,(WD(),E8)),s.k==(sN(),TX)&&$Me(u),hv(e.f,s,t)}}function Dut(e){var t,n,i,a=H(q(e,(UR(),H2)),27),o,s,l,u,d=Cz,f=Cz,p,m,h,g,_,v,y,b,x,S;for(l=pB,u=pB,x=iA(e.b,0);x.b!=x.d.c;)y=H(lx(x),40),h=y.e,g=y.f,d=r.Math.min(d,h.a-g.a/2),f=r.Math.min(f,h.b-g.b/2),l=r.Math.max(l,h.a+g.a/2),u=r.Math.max(u,h.b+g.b/2);for(m=H(eF(a,(YI(),EFt)),107),b=iA(e.b,0);b.b!=b.d.c;)y=H(lx(b),40),p=q(y,H2),V(p,207)&&(o=H(p,27),Vd(o,y.e.a,y.e.b),SF(o,y));for(v=iA(e.a,0);v.b!=v.d.c;)_=H(lx(v),65),i=H(q(_,H2),74),i&&(t=_.a,n=BF(i,!0,!0),$I(t,n));S=l-d+(m.b+m.c),s=u-f+(m.d+m.a),ks(Fp(eF(a,(pz(),R6))))||qR(a,S,s,!1,!1),yA(a,h6,S-(m.b+m.c)),yA(a,m6,s-(m.d+m.a))}function Out(e,t){var n,r,i,a,o,s,l=!0,u,d,p;for(i=0,u=e.g[t.p],d=t.o.b+e.o,n=e.d[t.p][2],jx(e.b,u,bD(H($h(e.b,u),17).a-1+n)),jx(e.c,u,z(Ip($h(e.c,u)))-d+n*e.f),++u,u>=e.j?(++e.j,Cf(e.b,bD(1)),Cf(e.c,d)):(r=e.d[t.p][1],jx(e.b,u,bD(H($h(e.b,u),17).a+1-r)),jx(e.c,u,z(Ip($h(e.c,u)))+d-r*e.f)),(e.r==(yI(),M0)&&(H($h(e.b,u),17).a>e.k||H($h(e.b,u-1),17).a>e.k)||e.r==N0&&(z(Ip($h(e.c,u)))>e.n||z(Ip($h(e.c,u-1)))>e.n))&&(l=!1),o=new Mg(Vf(yO(t).a.Kc(),new f));GP(o);)a=H(Rx(o),18),s=a.c.i,e.g[s.p]==u&&(p=Out(e,s),i+=H(p.a,17).a,l&&=ks(Fp(p.b)));return e.g[t.p]=u,i+=e.d[t.p][0],new qu(bD(i),(sp(),!!l))}function kut(e,t){var n=z(Ip(q(t,(sz(),z1)))),r,i,a,o;n<2&&pE(t,z1,2),r=H(q(t,W$),88),r==(WD(),D8)&&pE(t,W$,iO(t)),i=H(q(t,FMt),17),i.a==0?pE(t,(fz(),JQ),new i$e):pE(t,(fz(),JQ),new Qze(i.a)),a=Fp(q(t,p1)),a??pE(t,p1,(sp(),Qu(q(t,q$))===Qu((hO(),P8)))),sl(new ig(null,new kb(t.a,16)),new da(e)),sl(uC(new ig(null,new kb(t.b,16)),new nee),new Gue(e)),o=new wR(t),pE(t,(fz(),$Q),o),Cv(e.a),u_(e.a,(WM(),oX),H(q(t,H$),188)),u_(e.a,sX,H(q(t,l1),188)),u_(e.a,cX,H(q(t,V$),188)),u_(e.a,lX,H(q(t,g1),188)),u_(e.a,uX,_Je(H(q(t,q$),223))),Vxe(e.a,spt(t)),pE(t,Okt,_R(e.a,t))}function Aut(e,t,n,i,a){var o,s,l,u,d,f,p=new eo,m,h,g,_,v,y;for(s=new to,HN(e,n,e.d.Ag(),s,p),HN(e,i,e.d.Bg(),s,p),e.b=.2*(_=Wet(uC(new ig(null,new kb(s,16)),new pie)),v=Wet(uC(new ig(null,new kb(s,16)),new mie)),r.Math.min(_,v)),o=0,l=0;l=2&&(y=ent(s,!0,m),!e.e&&(e.e=new qde(e)),i1e(e.e,y,s,e.b)),D6e(s,m),Rut(s),h=-1,f=new L(s);f.as)}function Nut(e,t){var n,i,a,o,s,l,u,d=KB,f=KB,p,m,h,g,_,v,y,b;for(l=qB,u=qB,m=new L(t.i);m.a-1){for(a=iA(l,0);a.b!=a.d.c;)i=H(lx(a),131),i.v=s;for(;l.b!=0;)for(i=H(x4e(l,0),131),n=new L(i.i);n.a-1){for(o=new L(l);o.a0)&&(Xle(u,r.Math.min(u.o,a.o-1)),_i(u,u.i-1),u.i==0&&oo(l.c,u))}}function zut(e,t,n,i,a){var o,s,l,u=KB;return s=!1,l=CL(e,pm(new ku(t.a,t.b),e),fm(new ku(n.a,n.b),a),pm(new ku(i.a,i.b),n)),o=!!l&&!(r.Math.abs(l.a-e.a)<=SG&&r.Math.abs(l.b-e.b)<=SG||r.Math.abs(l.a-t.a)<=SG&&r.Math.abs(l.b-t.b)<=SG),l=CL(e,pm(new ku(t.a,t.b),e),n,a),l&&((r.Math.abs(l.a-e.a)<=SG&&r.Math.abs(l.b-e.b)<=SG)==(r.Math.abs(l.a-t.a)<=SG&&r.Math.abs(l.b-t.b)<=SG)||o?u=r.Math.min(u,q_(pm(l,n))):s=!0),l=CL(e,pm(new ku(t.a,t.b),e),i,a),l&&(s||(r.Math.abs(l.a-e.a)<=SG&&r.Math.abs(l.b-e.b)<=SG)==(r.Math.abs(l.a-t.a)<=SG&&r.Math.abs(l.b-t.b)<=SG)||o)&&(u=r.Math.min(u,q_(pm(l,i)))),u}function But(e){jl(e,new EM(Vhe(lc(oc(cc(sc(new Vn,WH),Wht),`Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths.`),new ree),SH))),Jb(e,WH,DH,sA(lEt)),Jb(e,WH,kH,(sp(),!0)),Jb(e,WH,NH,sA(fEt)),Jb(e,WH,GH,sA(pEt)),Jb(e,WH,MH,sA(mEt)),Jb(e,WH,PH,sA(dEt)),Jb(e,WH,AH,sA(hEt)),Jb(e,WH,FH,sA(gEt)),Jb(e,WH,zht,sA(cEt)),Jb(e,WH,Vht,sA(oEt)),Jb(e,WH,Hht,sA(sEt)),Jb(e,WH,Uht,sA(uEt)),Jb(e,WH,Bht,sA(iX))}function Vut(e){for(var t=null,n,r=new L(e),i,a,o,s,l;r.a0&&n.c==0&&(!t&&(t=new to),oo(t.c,n));if(t)for(;t.c.length!=0;){if(n=H(Kx(t,0),239),n.b&&n.b.c.length>0){for(a=(!n.b&&(n.b=new to),new L(n.b));a.aHS(e,n,0))return new qu(i,n)}else if(z(bf(i.g,i.d[0]).a)>z(bf(n.g,n.d[0]).a))return new qu(i,n)}for(s=(!n.e&&(n.e=new to),n.e).Kc();s.Ob();)o=H(s.Pb(),239),l=(!o.b&&(o.b=new to),o.b),Eb(0,l.c.length),tu(l.c,0,n),o.c==l.c.length&&oo(t.c,o)}return null}function Hut(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v;for(t.Ug(`Interactive crossing minimization`,1),o=0,a=new L(e.b);a.a0&&(n+=l.n.a+l.o.a/2,++f),h=new L(l.j);h.a0&&(n/=f),v=dS(z9,QB,28,r.a.c.length,15,1),s=0,u=new L(r.a);u.a=s&&i<=l)s<=i&&a<=l?r+=2:s<=i?(e.b[r]=l+1,o+=2):a<=l?(n[d++]=i,n[d++]=s-1,r+=2):(n[d++]=i,n[d++]=s-1,e.b[r]=l+1,o+=2);else if(l2?(f=new to,qT(f,new yb(y,1,y.b)),o=ypt(f,x+e.a),b=new qP(o),NT(b,t),oo(n.c,b)):b=H(i?N_(e.b,qM(t)):N_(e.b,YM(t)),272),u=qM(t),i&&(u=YM(t)),s=T5e(v,u),d=x+e.a,s.a?(d+=r.Math.abs(v.b-p.b),_=new ku(p.a,(p.b+v.b)/2)):(d+=r.Math.abs(v.a-p.a),_=new ku((p.a+v.a)/2,p.b)),hv(i?e.d:e.c,t,new k2e(b,s,_,d)),hv(e.b,t,b),g=(!t.n&&(t.n=new Bg(g7,t,1,7)),t.n),h=new Mf(g);h.e!=h.i.gc();)m=H(cA(h),135),a=cI(e,m,!0,0,0),oo(n.c,a)}function Uut(e){var t,n,r,i,a,o,s;if(!e.A.dc()){if(e.A.Hc((xk(),q5))&&(H(Sv(e.b,(WR(),w5)),127).k=!0,H(Sv(e.b,V5),127).k=!0,t=e.q!=(_M(),f5)&&e.q!=d5,ci(H(Sv(e.b,C5),127),t),ci(H(Sv(e.b,U5),127),t),ci(e.g,t),e.A.Hc(J5)&&(H(Sv(e.b,w5),127).j=!0,H(Sv(e.b,V5),127).j=!0,H(Sv(e.b,C5),127).k=!0,H(Sv(e.b,U5),127).k=!0,e.g.k=!0)),e.A.Hc(K5))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,s=e.B.Hc((OI(),t7)),i=$k(),a=0,o=i.length;a0),H(d.a.Xb(d.c=--d.b),18));a!=r&&d.b>0;)e.a[a.p]=!0,e.a[r.p]=!0,a=(zp(d.b>0),H(d.a.Xb(d.c=--d.b),18));d.b>0&&K_(d)}}function jR(e,t,n){var r,i,a,o,s,l,u,d,f,p,m;if(!e.b)return!1;for(o=null,p=null,l=new NHe(null,null),i=1,l.a[1]=e.b,f=l;f.a[i];)u=i,s=p,p=f,f=f.a[i],r=e.a.Ne(t,f.d),i=r<0?0:1,r==0&&(!n.c||xv(f.e,n.d))&&(o=f),!(f&&f.b)&&!Gs(f.a[i])&&(Gs(f.a[1-i])?p=p.a[u]=kw(f,i):Gs(f.a[1-i])||(m=p.a[1-u],m&&(!Gs(m.a[1-u])&&!Gs(m.a[u])?(p.b=!1,m.b=!0,f.b=!0):(a=+(s.a[1]==p),Gs(m.a[u])?s.a[a]=XLe(p,u):Gs(m.a[1-u])&&(s.a[a]=kw(p,u)),f.b=s.a[a].b=!0,s.a[a].a[0].b=!1,s.a[a].a[1].b=!1))));return o&&(n.b=!0,n.d=o.e,f!=o&&(d=new NHe(f.d,f.e),v8e(e,l,o,d),p==o&&(p=d)),p.a[+(p.a[1]==f)]=f.a[+!f.a[0]],--e.c),e.b=l.a[1],e.b&&(e.b.b=!1),n.b}function Kut(e){for(var t,n,i,a=new L(e.a.a.b),o,s,l,u,d,f,p,m;a.a0?i-=864e5:i+=864e5,l=new tTe(lO(kT(t.q.getTime()),i))),d=new $s,u=e.a.length,a=0;a=97&&r<=122||r>=65&&r<=90){for(o=a+1;o=u)throw R(new Ps(`Missing trailing '`));o+1=14&&d<=16))?t.a._b(r)?(n.a?ld(n.a,n.b):n.a=new qf(n.d),sd(n.a,`[...]`)):(s=dw(r),u=new rg(t),Jx(n,Xut(s,u))):V(r,183)?Jx(n,F7e(H(r,183))):V(r,195)?Jx(n,vM(H(r,195))):V(r,201)?Jx(n,r5e(H(r,201))):V(r,2111)?Jx(n,T6e(H(r,2111))):V(r,53)?Jx(n,P7e(H(r,53))):V(r,376)?Jx(n,c9e(H(r,376))):V(r,846)?Jx(n,N7e(H(r,846))):V(r,109)&&Jx(n,M7e(H(r,109))):Jx(n,r==null?Az:OO(r));return n.a?n.e.length==0?n.a.a:n.a.a+(``+n.e):n.c}function MR(e,t){var n,r,i,a=e.F;t==null?(e.F=null,GE(e,null)):(e.F=(sv(t),t),r=bd(t,RM(60)),r==-1?(i=t,bd(t,RM(46))==-1&&(r=bd(t,RM(91)),r!=-1&&(i=(hS(0,r,t.length),t.substr(0,r))),!_m(i,xz)&&!_m(i,YK)&&!_m(i,XK)&&!_m(i,ZK)&&!_m(i,QK)&&!_m(i,$K)&&!_m(i,eq)&&!_m(i,tq)?(i=gxt,r!=-1&&(i+=``+(Ob(r,t.length+1),t.substr(r)))):i=t),GE(e,i),i==t&&(e.F=e.D)):(i=(hS(0,r,t.length),t.substr(0,r)),bd(t,RM(46))==-1&&!_m(i,xz)&&!_m(i,YK)&&!_m(i,XK)&&!_m(i,ZK)&&!_m(i,QK)&&!_m(i,$K)&&!_m(i,eq)&&!_m(i,tq)&&(i=gxt),n=Wf(t,RM(62)),n!=-1&&(i+=``+(Ob(n+1,t.length+1),t.substr(n+1))),GE(e,i))),e.Db&4&&!(e.Db&1)&&ST(e,new Vg(e,1,5,a,t))}function NR(e,t){var n,r,i,a,o,s,l=t.length-1,u,d,f;if(s=(Ob(l,t.length),t.charCodeAt(l)),s==93){if(o=bd(t,RM(91)),o>=0)return i=VQe(e,(hS(1,o,t.length),t.substr(1,o-1))),d=(hS(o+1,l,t.length),t.substr(o+1,l-(o+1))),Xft(e,d,i)}else{if(n=-1,HSt??=RegExp(`\\d`),HSt.test(String.fromCharCode(s))&&(n=_Ee(t,RM(46),l-1),n>=0)){r=H(uVe(e,XWe(e,(hS(1,n,t.length),t.substr(1,n-1))),!1),61),u=0;try{u=MI((Ob(n+1,t.length+1),t.substr(n+1)),pB,Cz)}catch(e){throw e=GT(e),V(e,130)?(a=e,R(new US(a))):R(e)}if(u>16==-10?n=H(e.Cb,292).Yk(t,n):e.Db>>16==-15&&(!t&&(t=(_z(),K7)),!u&&(u=(_z(),K7)),e.Cb.Yh()&&(l=new XS(e.Cb,1,13,u,t,SA(GS(H(e.Cb,62)),e),!1),n?n.nj(l):n=l));else if(V(e.Cb,90))e.Db>>16==-23&&(V(t,90)||(t=(_z(),q7)),V(u,90)||(u=(_z(),q7)),e.Cb.Yh()&&(l=new XS(e.Cb,1,10,u,t,SA(xx(H(e.Cb,29)),e),!1),n?n.nj(l):n=l));else if(V(e.Cb,457))for(s=H(e.Cb,850),o=(!s.b&&(s.b=new ape(new fme)),s.b),a=(r=new yT(new ki(o.a).a),new ope(r));a.a.b;)i=H(Dw(a.a).ld(),89),n=PR(i,rnt(i,s),n)}return n}function $ut(e,t){var n,r,i,a,o=ks(Fp(eF(e,(sz(),t1)))),s,l,u,d,f,p=H(eF(e,k1),21);for(l=!1,u=!1,f=new Mf((!e.c&&(e.c=new Bg(v7,e,9,9)),e.c));f.e!=f.i.gc()&&(!l||!u);){for(a=H(cA(f),123),s=0,i=Xg(mw(K(B(eJ,1),Oz,20,0,[(!a.d&&(a.d=new hm(u7,a,8,5)),a.d),(!a.e&&(a.e=new hm(u7,a,7,4)),a.e)])));GP(i)&&(r=H(Rx(i),74),d=o&&xP(r)&&ks(Fp(eF(r,n1))),n=wlt((!r.b&&(r.b=new hm(l7,r,4,7)),r.b),a)?e==ib(OM(H(G((!r.c&&(r.c=new hm(l7,r,5,8)),r.c),0),84))):e==ib(OM(H(G((!r.b&&(r.b=new hm(l7,r,4,7)),r.b),0),84))),!((d||n)&&(++s,s>1))););(s>0||p.Hc((rP(),v5))&&(!a.n&&(a.n=new Bg(g7,a,1,7)),a.n).i>0)&&(l=!0),s>1&&(u=!0)}l&&t.Fc((UF(),rQ)),u&&t.Fc((UF(),iQ))}function edt(e){var t,n,i,a,o,s,l,u,d,f,p,m=H(eF(e,(pz(),L6)),21);if(m.dc())return null;if(l=0,s=0,m.Hc((xk(),q5))){for(f=H(eF(e,e8),101),i=2,n=2,a=2,o=2,t=ib(e)?H(eF(ib(e),y6),88):H(eF(e,y6),88),d=new Mf((!e.c&&(e.c=new Bg(v7,e,9,9)),e.c));d.e!=d.i.gc();)if(u=H(cA(d),123),p=H(eF(u,o8),64),p==(WR(),H5)&&(p=Zst(u,t),yA(u,o8,p)),f==(_M(),d5))switch(p.g){case 1:i=r.Math.max(i,u.i+u.g);break;case 2:n=r.Math.max(n,u.j+u.f);break;case 3:a=r.Math.max(a,u.i+u.g);break;case 4:o=r.Math.max(o,u.j+u.f)}else switch(p.g){case 1:i+=u.g+2;break;case 2:n+=u.f+2;break;case 3:a+=u.g+2;break;case 4:o+=u.f+2}l=r.Math.max(i,a),s=r.Math.max(n,o)}return qR(e,l,s,!0,!0)}function FR(e,t,n,i,a){var o,s,l,u,d,f,p,m,h,g,_,v,y,b=H(Ox(PC(jv(new ig(null,new kb(t.d,16)),new vde(n)),new Na(n)),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15),x,S;for(p=Cz,f=pB,u=new L(t.b.j);u.a0,u?u&&(p=v.p,o?++p:--p,f=H($h(v.c.a,p),10),r=rE(f),m=!(Pnt(r,C,n[0])||Mje(r,C,n[0]))):m=!0),h=!1,S=t.D.i,S&&S.c&&s.e&&(d=o&&S.p>0||!o&&S.p=0){for(l=null,s=new Hb(d.a,u+1);s.bs?1:xd(!1,isNaN(s)))<0&&(vw(_W),(r.Math.abs(s-1)<=_W||s==1?0:s<1?-1:s>1?1:xd(isNaN(s),!1))<0)&&(vw(_W),(r.Math.abs(0-l)<=_W||l==0?0:0l?1:xd(!1,isNaN(l)))<0)&&(vw(_W),(r.Math.abs(l-1)<=_W||l==1?0:l<1?-1:l>1?1:xd(isNaN(l),!1))<0)),o)}function sdt(e){var t,n=e.D==null?e.B:e.D,r,i;if(t=bd(n,RM(91)),t!=-1){r=(hS(0,t,n.length),n.substr(0,t)),i=new Xs;do i.a+=`[`;while((t=hp(n,91,++t))!=-1);_m(r,xz)?i.a+=`Z`:_m(r,YK)?i.a+=`B`:_m(r,XK)?i.a+=`C`:_m(r,ZK)?i.a+=`D`:_m(r,QK)?i.a+=`F`:_m(r,$K)?i.a+=`I`:_m(r,eq)?i.a+=`J`:_m(r,tq)?i.a+=`S`:(i.a+=`L`,i.a+=``+r,i.a+=`;`);try{return null}catch(e){if(e=GT(e),!V(e,63))throw R(e)}}else if(bd(n,RM(46))==-1){if(_m(n,xz))return I9;if(_m(n,YK))return R9;if(_m(n,XK))return P9;if(_m(n,ZK))return z9;if(_m(n,QK))return B9;if(_m(n,$K))return F9;if(_m(n,eq))return L9;if(_m(n,tq))return V9}return null}function cdt(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(e.e=t,s=TP(t),C=new to,r=new L(s);r.a=0&&g=d.c.c.length?jze((sN(),OX),DX):jze((sN(),DX),DX),f*=2,o=n.a.g,n.a.g=r.Math.max(o,o+(f-o)),s=n.b.g,n.b.g=r.Math.max(s,s+(f-s)),a=t}}function fdt(e){var t,n,i,a;for(sl(jv(new ig(null,new kb(e.a.b,16)),new Pne),new Fne),J3e(e),sl(jv(new ig(null,new kb(e.a.b,16)),new Ine),new Lne),e.c==(hO(),I8)&&(sl(jv(uC(new ig(null,new kb(new Oi(e.f),1)),new ln),new Rne),new dde(e)),sl(jv(Mv(uC(uC(new ig(null,new kb(e.d.b,16)),new un),new dn),new zne),new fn),new pde(e))),a=new ku(KB,KB),t=new ku(qB,qB),i=new L(e.a.b);i.a `):t.a+=`Root `,n=e.Dh().zb,_m(n.substr(0,3),`Elk`)?ld(t,(Ob(3,n.length+1),n.substr(3))):t.a+=``+n,i=e.jh(),i){ld((t.a+=` `,t),i);return}if(V(e,366)&&(u=H(e,135).a,u)){ld((t.a+=` `,t),u);return}for(o=new Mf(e.kh());o.e!=o.i.gc();)if(a=H(cA(o),135),u=a.a,u){ld((t.a+=` `,t),u);return}if(V(e,326)&&(r=H(e,74),!r.b&&(r.b=new hm(l7,r,4,7)),r.b.i!=0&&(!r.c&&(r.c=new hm(l7,r,5,8)),r.c.i!=0))){for(t.a+=` (`,s=new dp((!r.b&&(r.b=new hm(l7,r,4,7)),r.b));s.e!=s.i.gc();)s.e>0&&(t.a+=Dz),zR(H(cA(s),167),t);for(t.a+=Xht,l=new dp((!r.c&&(r.c=new hm(l7,r,5,8)),r.c));l.e!=l.i.gc();)l.e>0&&(t.a+=Dz),zR(H(cA(l),167),t);t.a+=`)`}}function BR(e,t,n){for(var i,a,o,s,l,u=new Mf((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a)),d,p;u.e!=u.i.gc();)for(l=H(cA(u),27),a=new Mg(Vf(mF(l).a.Kc(),new f));GP(a);){if(i=H(Rx(a),74),!i.b&&(i.b=new hm(l7,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new hm(l7,i,5,8)),i.c.i<=1)))throw R(new zs(`Graph must not contain hyperedges.`));if(!VP(i)&&l!=OM(H(G((!i.c&&(i.c=new hm(l7,i,5,8)),i.c),0),84)))for(d=new zTe,NT(d,i),pE(d,(Ew(),nX),i),di(d,H(Zu(hg(n.f,l)),153)),Ule(d,H(N_(n,OM(H(G((!i.c&&(i.c=new hm(l7,i,5,8)),i.c),0),84))),153)),Cf(t.c,d),s=new Mf((!i.n&&(i.n=new Bg(g7,i,1,7)),i.n));s.e!=s.i.gc();)o=H(cA(s),135),p=new gx(d,o.a),NT(p,o),pE(p,nX,o),p.e.a=r.Math.max(o.g,1),p.e.b=r.Math.max(o.f,1),vL(p),Cf(t.d,p)}}function pdt(e,t,n){var i,a,o,s,l,u,d,f,p,m;switch(n.Ug(`Node promotion heuristic`,1),e.i=t,e.r=H(q(t,(sz(),c1)),243),e.r!=(yI(),A0)&&e.r!=j0?$dt(e):bit(e),f=H(q(e.i,bMt),17).a,o=new Ate,e.r.g){case 2:case 1:QL(e,o);break;case 3:for(e.r=F0,QL(e,o),u=0,l=new L(e.b);l.ae.k&&(e.r=M0,QL(e,o));break;case 4:for(e.r=F0,QL(e,o),d=0,a=new L(e.c);a.ae.n&&(e.r=N0,QL(e,o));break;case 6:m=Vy(r.Math.ceil(e.g.length*f/100)),QL(e,new Oa(m));break;case 5:p=Vy(r.Math.ceil(e.e*f/100)),QL(e,new ide(p));break;case 8:Tpt(e,!0);break;case 9:Tpt(e,!1);break;default:QL(e,o)}e.r!=A0&&e.r!=j0?Ert(e,t):Vat(e,t),n.Vg()}function mdt(e){var t,n,r,i,a,o,s,l,u,d,f=e.b,p,m,h,g,_,v,y,b;for(d=new Hb(f,0),tm(d,new L_(e)),y=!1,o=1;d.b0&&(m.d+=f.n.d,m.d+=f.d),m.a>0&&(m.a+=f.n.a,m.a+=f.d),m.b>0&&(m.b+=f.n.b,m.b+=f.d),m.c>0&&(m.c+=f.n.c,m.c+=f.d),m}function gdt(e,t,n){var i,a,o,s,l,u,d,f,p,m=n.d,h,g;for(p=n.c,o=new ku(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),s=o.b,d=new L(e.a);d.a0&&(e.c[t.c.p][t.p].d+=hF(e.i,24)*sV*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function bdt(e){for(var t,n,r,i,a,o,s,l,u,d,f,p,m,h=new L(e),g,_;h.ai.d,i.d=r.Math.max(i.d,t),l&&n&&(i.d=r.Math.max(i.d,i.a),i.a=i.d+a);break;case 3:n=t>i.a,i.a=r.Math.max(i.a,t),l&&n&&(i.a=r.Math.max(i.a,i.d),i.d=i.a+a);break;case 2:n=t>i.c,i.c=r.Math.max(i.c,t),l&&n&&(i.c=r.Math.max(i.b,i.c),i.b=i.c+a);break;case 4:n=t>i.b,i.b=r.Math.max(i.b,t),l&&n&&(i.b=r.Math.max(i.b,i.c),i.c=i.b+a)}}}function Cdt(e,t){var n,r,i,a,o,s,l,u=``,d;return t.length==0?e.ne(pmt,_B,-1,-1):(d=RN(t),_m(d.substr(0,3),`at `)&&(d=(Ob(3,d.length+1),d.substr(3))),d=d.replace(/\[.*?\]/g,``),o=d.indexOf(`(`),o==-1?(o=d.indexOf(`@`),o==-1?(u=d,d=``):(u=RN((Ob(o+1,d.length+1),d.substr(o+1))),d=RN((hS(0,o,d.length),d.substr(0,o))))):(n=d.indexOf(`)`,o),u=(hS(o+1,n,d.length),d.substr(o+1,n-(o+1))),d=RN((hS(0,o,d.length),d.substr(0,o)))),o=bd(d,RM(46)),o!=-1&&(d=(Ob(o+1,d.length+1),d.substr(o+1))),(d.length==0||_m(d,`Anonymous function`))&&(d=_B),s=Wf(u,RM(58)),i=_Ee(u,RM(58),s-1),l=-1,r=-1,a=pmt,s!=-1&&i!=-1&&(a=(hS(0,i,u.length),u.substr(0,i)),l=twe((hS(i+1,s,u.length),u.substr(i+1,s-(i+1)))),r=twe((Ob(s+1,u.length+1),u.substr(s+1)))),e.ne(a,d,l,r))}function wdt(e){for(var t,n,r,i,a,o,s,l,u=new L(e),d,f;u.a0||d.j==U5&&d.e.c.length-d.g.c.length<0)){t=!1;break}for(i=new L(d.g);i.a=d&&C>=v&&(m+=g.n.b+_.n.b+_.a.b-S,++l));if(n)for(s=new L(b.e);s.a=d&&C>=v&&(m+=g.n.b+_.n.b+_.a.b-S,++l))}l>0&&(w+=m/l,++h)}h>0?(t.a=a*w/h,t.g=h):(t.a=0,t.g=0)}function Edt(e){var t,n,r,i,a=e.f.b,o,s,l,u,d,f,p=a.a,m,h,g,_,v,y,b,x,S,C,w;for(d=a.b,h=e.e.g,m=e.e.f,Bd(e.e,a.a,a.b),C=p/h,w=d/m,u=new Mf(CNe(e.e));u.e!=u.i.gc();)l=H(cA(u),135),ew(l,l.i*C),tw(l,l.j*w);for(y=new Mf(wNe(e.e));y.e!=y.i.gc();)v=H(cA(y),123),x=v.i,S=v.j,x>0&&ew(v,x*C),S>0&&tw(v,S*w);for(pT(e.b,new Nt),t=new to,s=new yT(new ki(e.c).a);s.b;)o=Dw(s),r=H(o.ld(),74),n=H(o.md(),407).a,i=BF(r,!1,!1),f=I6e(qM(r),bN(i),n),$I(f,i),b=E8e(r),b&&HS(t,b,0)==-1&&(oo(t.c,b),NNe(b,(zp(f.b!=0),H(f.a.a.c,8)),n));for(_=new yT(new ki(e.d).a);_.b;)g=Dw(_),r=H(g.ld(),74),n=H(g.md(),407).a,i=BF(r,!1,!1),f=I6e(YM(r),ME(bN(i)),n),f=ME(f),$I(f,i),b=JM(r),b&&HS(t,b,0)==-1&&(oo(t.c,b),NNe(b,(zp(f.b!=0),H(f.c.b.c,8)),n))}function Ddt(e,t,n,r){var i,a,o,s=new Hdt(t),l;return qnt(s,r),i=!0,e&&e.pf((pz(),y6))&&(a=H(e.of((pz(),y6)),88),i=a==(WD(),D8)||a==T8||a==E8),pat(s,!1),RC(s.e.Rf(),new fDe(s,!1,i)),Ry(s,s.f,(GC(),dY),(WR(),w5)),Ry(s,s.f,pY,V5),Ry(s,s.g,dY,U5),Ry(s,s.g,pY,C5),c0e(s,w5),c0e(s,V5),vNe(s,C5),vNe(s,U5),qp(),o=s.A.Hc((xk(),G5))&&s.B.Hc((OI(),e7))?A$e(s):null,o&&She(s.a,o),Sdt(s),W2e(s),G2e(s),Uut(s),xst(s),j4e(s),j1e(s,w5),j1e(s,V5),Pat(s),uR(s),n?(NO(s),M4e(s),j1e(s,C5),j1e(s,U5),l=s.B.Hc((OI(),t7)),w7e(s,l,w5),w7e(s,l,V5),T7e(s,l,C5),T7e(s,l,U5),sl(new ig(null,new kb(new Pi(s.i),0)),new Xe),sl(jv(new ig(null,EMe(s.r).a.oc()),new Ze),new Qe),hM(s),s.e.Pf(s.o),sl(new ig(null,EMe(s.r).a.oc()),new $e),s.o):s.o}function Odt(e){var t,n,i,a,o,s,l,u,d=KB,f,p,m,h,g,_;for(i=new L(e.a.b);i.a1)for(h=new fR(g,x,i),Ax(x,new jye(e,h)),oo(s.c,h),p=x.a.ec().Kc();p.Ob();)f=H(p.Pb(),42),BS(o,f.b);if(l.a.gc()>1)for(h=new fR(g,l,i),Ax(l,new Mye(e,h)),oo(s.c,h),p=l.a.ec().Kc();p.Ob();)f=H(p.Pb(),42),BS(o,f.b)}}function Mdt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_=e.n,v=e.o,y;if(m=e.d,p=z(Ip(uk(e,(sz(),L1)))),t){for(f=p*(t.gc()-1),h=0,u=t.Kc();u.Ob();)s=H(u.Pb(),10),f+=s.o.a,h=r.Math.max(h,s.o.b);for(y=_.a-(f-v.a)/2,o=_.b-m.d+h,i=v.a/(t.gc()+1),a=i,l=t.Kc();l.Ob();)s=H(l.Pb(),10),s.n.a=y,s.n.b=o-s.o.b,y+=s.o.a+p,d=pnt(s),d.n.a=s.o.a/2-d.a.a,d.n.b=s.o.b,g=H(q(s,(fz(),hkt)),12),g.e.c.length+g.g.c.length==1&&(g.n.a=a-g.a.a,g.n.b=0,mb(g,e)),a+=i}if(n){for(f=p*(n.gc()-1),h=0,u=n.Kc();u.Ob();)s=H(u.Pb(),10),f+=s.o.a,h=r.Math.max(h,s.o.b);for(y=_.a-(f-v.a)/2,o=_.b+v.b+m.a-h,i=v.a/(n.gc()+1),a=i,l=n.Kc();l.Ob();)s=H(l.Pb(),10),s.n.a=y,s.n.b=o,y+=s.o.a+p,d=pnt(s),d.n.a=s.o.a/2-d.a.a,d.n.b=0,g=H(q(s,(fz(),hkt)),12),g.e.c.length+g.g.c.length==1&&(g.n.a=a-g.a.a,g.n.b=v.b,mb(g,e)),a+=i}}function Ndt(e,t){var n,i,a,o,s,l;if(H(q(t,(fz(),AQ)),21).Hc((UF(),rQ))){for(l=new L(t.a);l.a=0&&o0&&(H(Sv(e.b,t),127).a.b=n)}function Bdt(e,t,n,r){var i,a,o,s,l,u,d,f,p=z(Ip(q(e,(sz(),q1)))),m=z(Ip(q(e,J1))),h,g;if(f=z(Ip(q(e,G1))),s=e.o,a=H($h(e.j,0),12),o=a.n,g=B5e(a,f),g){if(t.Hc((rP(),v5)))switch(H(q(e,(fz(),OQ)),64).g){case 1:g.c=(s.a-g.b)/2-o.a,g.d=m;break;case 3:g.c=(s.a-g.b)/2-o.a,g.d=-m-g.a;break;case 2:n&&a.e.c.length==0&&a.g.c.length==0?(d=r?g.a:H($h(a.f,0),72).o.b,g.d=(s.b-d)/2-o.b):g.d=s.b+m-o.b,g.c=-p-g.b;break;case 4:n&&a.e.c.length==0&&a.g.c.length==0?(d=r?g.a:H($h(a.f,0),72).o.b,g.d=(s.b-d)/2-o.b):g.d=s.b+m-o.b,g.c=p}else if(t.Hc(b5))switch(H(q(e,(fz(),OQ)),64).g){case 1:case 3:g.c=o.a+p;break;case 2:case 4:n&&!a.c?(d=r?g.a:H($h(a.f,0),72).o.b,g.d=(s.b-d)/2-o.b):g.d=o.b+m}for(i=g.d,u=new L(a.f);u.a=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},Qit()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[`:`+e]},e.prototype.set=function(e,t){this.obj[`:`+e]=t},e.prototype[zmt]=function(e){delete this.obj[`:`+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),e}function UR(){UR=D,H2=new Ja(VH),new Ja(HH),new Zp(`DEPTH`,bD(0)),$Pt=new Zp(`FAN`,bD(0)),ZPt=new Zp(hvt,bD(0)),K2=new Zp(`ROOT`,(sp(),!1)),I2=new Zp(`LEFTNEIGHBOR`,null),iFt=new Zp(`RIGHTNEIGHBOR`,null),L2=new Zp(`LEFTSIBLING`,null),G2=new Zp(`RIGHTSIBLING`,null),QPt=new Zp(`DUMMY`,!1),new Zp(`LEVEL`,bD(0)),rFt=new Zp(`REMOVABLE_EDGES`,new $c),q2=new Zp(`XCOOR`,bD(0)),J2=new Zp(`YCOOR`,bD(0)),R2=new Zp(`LEVELHEIGHT`,0),B2=new Zp(`LEVELMIN`,0),z2=new Zp(`LEVELMAX`,0),tFt=new Zp(`GRAPH_XMIN`,0),P2=new Zp(`GRAPH_YMIN`,0),eFt=new Zp(`GRAPH_XMAX`,0),nFt=new Zp(`GRAPH_YMAX`,0),XPt=new Zp(`COMPACT_LEVEL_ASCENSION`,!1),YPt=new Zp(`COMPACT_CONSTRAINTS`,new to),F2=new Zp(`ID`,``),U2=new Zp(`POSITION`,bD(0)),W2=new Zp(`PRELIM`,0),V2=new Zp(`MODIFIER`,0),N2=new Ja(Rht),M2=new Ja(UH)}function qdt(e){qst();var t,n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(e==null)return null;if(f=e.length*8,f==0)return``;for(s=f%24,m=f/24|0,p=s==0?m:m+1,a=null,a=dS(P9,yB,28,p*4,15,1),u=0,d=0,t=0,n=0,r=0,o=0,i=0,l=0;l>24,u=(t&3)<<24>>24,h=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,g=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,_=r&-128?(r>>6^252)<<24>>24:r>>6<<24>>24,a[o++]=g9[h],a[o++]=g9[g|u<<4],a[o++]=g9[d<<2|_],a[o++]=g9[r&63];return s==8?(t=e[i],u=(t&3)<<24>>24,h=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,a[o++]=g9[h],a[o++]=g9[u<<4],a[o++]=61,a[o++]=61):s==16&&(t=e[i],n=e[i+1],d=(n&15)<<24>>24,u=(t&3)<<24>>24,h=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,g=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=g9[h],a[o++]=g9[g|u<<4],a[o++]=g9[d<<2],a[o++]=61),Ak(a,0,a.length)}function Jdt(e,t){var n,i,a,o,s,l,u;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>pB&&kze(t,e.p-AB),s=t.q.getDate(),Yy(t,1),e.k>=0&&KFe(t,e.k),e.c>=0?Yy(t,e.c):e.k>=0?(u=new vE(t.q.getFullYear()-AB,t.q.getMonth(),35),i=35-u.q.getDate(),Yy(t,r.Math.min(i,s))):Yy(t,s),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),qSe(t,e.f==24&&e.g?0:e.f),e.j>=0&&MVe(t,e.j),e.n>=0&&kHe(t,e.n),e.i>=0&&_xe(t,lO(uO(Yj(kT(t.q.getTime()),bB),bB),e.i)),e.a&&(a=new Uc,kze(a,a.q.getFullYear()-AB-80),ave(kT(t.q.getTime()),kT(a.q.getTime()))&&kze(t,a.q.getFullYear()-AB+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),l=t.q.getMonth(),Yy(t,t.q.getDate()+n),t.q.getMonth()!=l&&Yy(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>pB&&(o=t.q.getTimezoneOffset(),_xe(t,lO(kT(t.q.getTime()),(e.o-o)*60*bB))),!0}function Ydt(e,t){var n,r,i=q(t,(fz(),WQ)),a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x;if(V(i,207)){for(h=H(i,27),g=t.e,p=new Td(t.c),a=t.d,p.a+=a.b,p.b+=a.d,x=H(eF(h,(sz(),y1)),181),tp(x,(OI(),Z5))&&(m=H(eF(h,DMt),107),oi(m,a.a),pi(m,a.d),Vle(m,a.b),fi(m,a.c)),n=new to,d=new L(t.a);d.ar.c.length-1;)Cf(r,new qu(dH,jW));n=H(q(i,n4),17).a,Nd(H(q(e,Y2),88))?(i.e.az(Ip((Db(n,r.c.length),H(r.c[n],42)).b))&&vi((Db(n,r.c.length),H(r.c[n],42)),i.e.a+i.f.a)):(i.e.bz(Ip((Db(n,r.c.length),H(r.c[n],42)).b))&&vi((Db(n,r.c.length),H(r.c[n],42)),i.e.b+i.f.b))}for(a=iA(e.b,0);a.b!=a.d.c;)i=H(lx(a),40),n=H(q(i,(YI(),n4)),17).a,pE(i,(UR(),B2),Ip((Db(n,r.c.length),H(r.c[n],42)).a)),pE(i,z2,Ip((Db(n,r.c.length),H(r.c[n],42)).b));t.Vg()}function $dt(e){var t,n,i,a,o,s,l,u,d,p,m,h,g,_,v;for(e.o=z(Ip(q(e.i,(sz(),Y1)))),e.f=z(Ip(q(e.i,U1))),e.j=e.i.b.c.length,l=e.j-1,h=0,e.k=0,e.n=0,e.b=Gx(dS(kJ,Gz,17,e.j,0,1)),e.c=Gx(dS(DJ,Gz,345,e.j,7,1)),s=new L(e.i.b);s.a0&&Cf(e.q,p),Cf(e.p,p);t-=i,g=u+t,d+=t*e.f,jx(e.b,l,bD(g)),jx(e.c,l,d),e.k=r.Math.max(e.k,g),e.n=r.Math.max(e.n,d),e.e+=t,t+=v}}function WR(){WR=D;var e;H5=new Uu(IV,0),w5=new Uu(VV,1),C5=new Uu(bht,2),V5=new Uu(HV,3),U5=new Uu(xht,4),k5=(iy(),new tc((e=H(Tc(W5),9),new Om(e,H(im(e,e.length),9),0)))),A5=vD(bg(w5,K(B(W5,1),$H,64,0,[]))),T5=vD(bg(C5,K(B(W5,1),$H,64,0,[]))),R5=vD(bg(V5,K(B(W5,1),$H,64,0,[]))),B5=vD(bg(U5,K(B(W5,1),$H,64,0,[]))),F5=vD(bg(w5,K(B(W5,1),$H,64,0,[V5]))),O5=vD(bg(C5,K(B(W5,1),$H,64,0,[U5]))),L5=vD(bg(w5,K(B(W5,1),$H,64,0,[U5]))),j5=vD(bg(w5,K(B(W5,1),$H,64,0,[C5]))),z5=vD(bg(V5,K(B(W5,1),$H,64,0,[U5]))),E5=vD(bg(C5,K(B(W5,1),$H,64,0,[V5]))),P5=vD(bg(w5,K(B(W5,1),$H,64,0,[C5,U5]))),D5=vD(bg(C5,K(B(W5,1),$H,64,0,[V5,U5]))),I5=vD(bg(w5,K(B(W5,1),$H,64,0,[V5,U5]))),M5=vD(bg(w5,K(B(W5,1),$H,64,0,[C5,V5]))),N5=vD(bg(w5,K(B(W5,1),$H,64,0,[C5,V5,U5])))}function eft(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(t.Ug(_gt,1),g=new to,C=new to,u=new L(e.b);u.a0&&(S-=g),Llt(s,S),p=0,h=new L(s.a);h.a0),l.a.Xb(l.c=--l.b)),u=.4*i*p,!o&&l.b0&&(l=(Ob(0,t.length),t.charCodeAt(0)),l!=64)){if(l==37&&(f=t.lastIndexOf(`%`),u=!1,f!=0&&(f==p-1||(u=(Ob(f+1,t.length),t.charCodeAt(f+1)==46))))){if(o=(hS(1,f,t.length),t.substr(1,f-1)),b=_m(`%`,o)?null:pft(o),r=0,u)try{r=MI((Ob(f+2,t.length+1),t.substr(f+2)),pB,Cz)}catch(e){throw e=GT(e),V(e,130)?(s=e,R(new US(s))):R(e)}for(_=eqe(e.Gh());_.Ob();)if(h=OT(_),V(h,519)&&(i=H(h,598),y=i.d,(b==null?y==null:_m(b,y))&&r--==0))return i;return null}if(d=t.lastIndexOf(`.`),m=d==-1?t:(hS(0,d,t.length),t.substr(0,d)),n=0,d!=-1)try{n=MI((Ob(d+1,t.length+1),t.substr(d+1)),pB,Cz)}catch(e){if(e=GT(e),V(e,130))m=t;else throw R(e)}for(m=_m(`%`,m)?null:pft(m),g=eqe(e.Gh());g.Ob();)if(h=OT(g),V(h,197)&&(a=H(h,197),v=a.xe(),(m==null?v==null:_m(m,v))&&n--==0))return a;return null}return NR(e,t)}function lft(e){var t,n,r,i,a,o,s,l,u,d=new eo,p,m,h,g,_,v,y,b;for(l=new Py,r=new L(e.a.a.b);r.at.d.c){if(h=e.c[t.a.d],v=e.c[p.a.d],h==v)continue;AF(hl(ml(gl(pl(new Po,1),100),h),v))}}}}}function uft(e,t){var n,i,a,o,s,l,u,d,f,p,m=H(H(Wx(e.r,t),21),87),h,g,_,v,y,b,x,S,C,w;if(t==(WR(),C5)||t==U5){zdt(e,t);return}for(o=t==w5?(RT(),OY):(RT(),kY),S=t==w5?(nC(),SY):(nC(),bY),n=H(Sv(e.b,t),127),i=n.i,a=i.c+IC(K(B(z9,1),QB,28,15,[n.n.b,e.C.b,e.k])),y=i.c+i.b-IC(K(B(z9,1),QB,28,15,[n.n.c,e.C.c,e.k])),s=Ahe(_De(o),e.t),b=t==w5?qB:KB,p=m.Kc();p.Ob();)d=H(p.Pb(),117),!(!d.c||d.c.d.c.length<=0)&&(v=d.b.Mf(),_=d.e,h=d.c,g=h.i,g.b=(u=h.n,h.e.a+u.b+u.c),g.a=(l=h.n,h.e.b+l.d+l.a),Sy(S,hht),h.f=S,vS(h,(PS(),yY)),g.c=_.a-(g.b-v.a)/2,C=r.Math.min(a,_.a),w=r.Math.max(y,_.a+v.a),g.cw&&(g.c=w-g.b),Cf(s.d,new UAe(g,KD(s,g))),b=t==w5?r.Math.max(b,_.b+d.b.Mf().b):r.Math.min(b,_.b));for(b+=t==w5?e.t:-e.t,x=h$e((s.e=b,s)),x>0&&(H(Sv(e.b,t),127).a.b=x),f=m.Kc();f.Ob();)d=H(f.Pb(),117),!(!d.c||d.c.d.c.length<=0)&&(g=d.c.i,g.c-=d.e.a,g.d-=d.e.b)}function dft(e){for(var t=new eo,n,r,i,a,o,s,l=new Mf(e),u,d,p,m,h;l.e!=l.i.gc();){for(s=H(cA(l),27),n=new Ao,hv(CTt,s,n),h=new Ot,i=H(Ox(new ig(null,new x_(new Mg(Vf(pF(s).a.Kc(),new f)))),vg(h,SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)])))),85),GGe(n,H(i.xc((sp(),!0)),16),new kt),r=H(Ox(jv(H(i.xc(!1),15).Lc(),new At),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY]))),15),o=r.Kc();o.Ob();)a=H(o.Pb(),74),m=E8e(a),m&&(u=H(Zu(hg(t.f,m)),21),u||(u=Xrt(m),UN(t.f,m,u)),zw(n,u));for(i=H(Ox(new ig(null,new x_(new Mg(Vf(mF(s).a.Kc(),new f)))),vg(h,SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY])))),85),GGe(n,H(i.xc(!0),16),new jt),r=H(Ox(jv(H(i.xc(!1),15).Lc(),new Mt),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY]))),15),p=r.Kc();p.Ob();)d=H(p.Pb(),74),m=JM(d),m&&(u=H(Zu(hg(t.f,m)),21),u||(u=Xrt(m),UN(t.f,m,u)),zw(n,u))}}function KR(e,t){ML();var n,r,i,a,o,s,l=uD(e,0)<0,u,d,f,p,m,h,g;if(l&&(e=VS(e)),uD(e,0)==0)switch(t){case 0:return`0`;case 1:return eV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return m=new Qs,t<0?m.a+=`0E+`:m.a+=`0E`,m.a+=t==pB?`2147483648`:``+-t,m.a}d=18,f=dS(P9,yB,28,d+1,15,1),n=d,g=e;do u=g,g=Yj(g,10),f[--n]=Tg(lO(48,dO(u,uO(g,10))))&xB;while(uD(g,0)!=0);if(i=dO(dO(dO(d,n),t),1),t==0)return l&&(f[--n]=45),Ak(f,n,d-n);if(t>0&&uD(i,-6)>=0){if(uD(i,0)>=0){for(a=n+Tg(i),s=d-1;s>=a;s--)f[s+1]=f[s];return f[++a]=46,l&&(f[--n]=45),Ak(f,n,d-n+1)}for(o=2;ave(o,lO(VS(i),1));o++)f[--n]=48;return f[--n]=46,f[--n]=48,l&&(f[--n]=45),Ak(f,n,d-n)}return h=n+1,r=d,p=new $s,l&&(p.a+=`-`),r-h>=1?(W_(p,f[n]),p.a+=`.`,p.a+=Ak(f,n+1,d-n-1)):p.a+=Ak(f,n,d-n),p.a+=`E`,uD(i,0)>0&&(p.a+=`+`),p.a+=``+Rg(i),p.a}function qR(e,t,n,i,a){var o,s,l,u,d,f,p,m,h,g,_,v=new ku(e.g,e.f),y,b,x,S,C,w;if(_=LN(e),_.a=r.Math.max(_.a,t),_.b=r.Math.max(_.b,n),w=_.a/v.a,f=_.b/v.b,S=_.a-v.a,u=_.b-v.b,i)for(s=ib(e)?H(eF(ib(e),(pz(),y6)),88):H(eF(e,(pz(),y6)),88),l=Qu(eF(e,(pz(),e8)))===Qu((_M(),d5)),b=new Mf((!e.c&&(e.c=new Bg(v7,e,9,9)),e.c));b.e!=b.i.gc();)switch(y=H(cA(b),123),x=H(eF(y,o8),64),x==(WR(),H5)&&(x=Zst(y,s),yA(y,o8,x)),x.g){case 1:l||ew(y,y.i*w);break;case 2:ew(y,y.i+S),l||tw(y,y.j*f);break;case 3:l||ew(y,y.i*w),tw(y,y.j+u);break;case 4:l||tw(y,y.j*f)}if(Bd(e,_.a,_.b),a)for(m=new Mf((!e.n&&(e.n=new Bg(g7,e,1,7)),e.n));m.e!=m.i.gc();)p=H(cA(m),135),h=p.i+p.g/2,g=p.j+p.f/2,C=h/v.a,d=g/v.b,C+d>=1&&(C-d>0&&g>=0?(ew(p,p.i+S),tw(p,p.j+u*d)):C-d<0&&h>=0&&(ew(p,p.i+S*C),tw(p,p.j+u)));return yA(e,(pz(),L6),(xk(),o=H(Tc(Y5),9),new Om(o,H(im(o,o.length),9),0))),new ku(w,f)}function fft(e){jl(e,new EM(Vhe(lc(oc(cc(sc(new Vn,HW),`ELK Radial`),`A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.`),new bae),HW))),Jb(e,HW,cW,sA(PIt)),Jb(e,HW,wH,sA(RIt)),Jb(e,HW,NH,sA(OIt)),Jb(e,HW,GH,sA(kIt)),Jb(e,HW,MH,sA(AIt)),Jb(e,HW,PH,sA(DIt)),Jb(e,HW,AH,sA(jIt)),Jb(e,HW,FH,sA(NIt)),Jb(e,HW,Bvt,sA(TIt)),Jb(e,HW,zvt,sA(EIt)),Jb(e,HW,Rvt,sA(FIt)),Jb(e,HW,Wvt,sA(g4)),Jb(e,HW,VW,sA(IIt)),Jb(e,HW,Gvt,sA(LIt)),Jb(e,HW,Uvt,sA(MIt)),Jb(e,HW,Ivt,sA(m4)),Jb(e,HW,Lvt,sA(h4)),Jb(e,HW,Vvt,sA(_4)),Jb(e,HW,Hvt,sA(zIt)),Jb(e,HW,Fvt,sA(wIt))}function JR(e){var t,n,r,i,a,o,s,l,u,d,f;if(e==null)throw R(new ec(Az));if(u=e,a=e.length,l=!1,a>0&&(t=(Ob(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Ob(1,e.length+1),e.substr(1)),--a,l=t==45)),a==0)throw R(new ec(GB+u+`"`));for(;e.length>0&&(Ob(0,e.length),e.charCodeAt(0)==48);)e=(Ob(1,e.length+1),e.substr(1)),--a;if(a>(Dst(),KSt)[10])throw R(new ec(GB+u+`"`));for(i=0;i0&&(f=-parseInt((hS(0,r,e.length),e.substr(0,r)),10),e=(Ob(r,e.length+1),e.substr(r)),a-=r,n=!1);a>=o;){if(r=parseInt((hS(0,o,e.length),e.substr(0,o)),10),e=(Ob(o,e.length+1),e.substr(o)),a-=o,n)n=!1;else{if(uD(f,s)<0)throw R(new ec(GB+u+`"`));f=uO(f,d)}f=dO(f,r)}if(uD(f,0)>0||!l&&(f=VS(f),uD(f,0)<0))throw R(new ec(GB+u+`"`));return f}function pft(e){XL();var t,n,r,i,a,o,s,l;if(e==null)return null;if(i=bd(e,RM(37)),i<0)return e;for(l=new qf((hS(0,i,e.length),e.substr(0,i))),t=dS(R9,YG,28,4,15,1),s=0,r=0,o=e.length;ii+2&&dE((Ob(i+1,e.length),e.charCodeAt(i+1)),jVt,MVt)&&dE((Ob(i+2,e.length),e.charCodeAt(i+2)),jVt,MVt)){if(n=wh((Ob(i+1,e.length),e.charCodeAt(i+1)),(Ob(i+2,e.length),e.charCodeAt(i+2))),i+=2,r>0?(n&192)==128?t[s++]=n<<24>>24:r=0:n>=128&&((n&224)==192?(t[s++]=n<<24>>24,r=2):(n&240)==224?(t[s++]=n<<24>>24,r=3):(n&248)==240&&(t[s++]=n<<24>>24,r=4)),r>0){if(s==r){switch(s){case 2:W_(l,((t[0]&31)<<6|t[1]&63)&xB);break;case 3:W_(l,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&xB)}s=0,r=0}}else{for(a=0;a=2){if((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a).i==0)n=(Cc(),a=new Poe,a),_S((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a),n);else if((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a).i>1)for(m=new dp((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a));m.e!=m.i.gc();)rM(m);$I(t,H(G((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a),0),166))}if(p)for(i=new Mf((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a));i.e!=i.i.gc();)for(n=H(cA(i),166),d=new Mf((!n.a&&(n.a=new Tf(c7,n,5)),n.a));d.e!=d.i.gc();)u=H(cA(d),377),l.a=r.Math.max(l.a,u.a),l.b=r.Math.max(l.b,u.b);for(s=new Mf((!e.n&&(e.n=new Bg(g7,e,1,7)),e.n));s.e!=s.i.gc();)o=H(cA(s),135),f=H(eF(o,V8),8),f&&Vd(o,f.a,f.b),p&&(l.a=r.Math.max(l.a,o.i+o.g),l.b=r.Math.max(l.b,o.j+o.f));return l}function YR(e,t,n,r,i){var a,o,s;if(fWe(e,t),o=t[0],a=kv(n.c,0),s=-1,DE(n)){if(r>0){if(o+r>e.length)return!1;s=bP((hS(0,o+r,e.length),e.substr(0,o+r)),t)}else s=bP(e,t)}switch(a){case 71:return s=TN(e,o,K(B(FJ,1),Gz,2,6,[vmt,MB]),t),i.e=s,!0;case 77:return Sit(e,t,i,s,o);case 76:return Cit(e,t,i,s,o);case 69:return l7e(e,t,o,i);case 99:return u7e(e,t,o,i);case 97:return s=TN(e,o,K(B(FJ,1),Gz,2,6,[`AM`,`PM`]),t),i.b=s,!0;case 121:return wit(e,t,o,s,n,i);case 100:return s<=0?!1:(i.c=s,!0);case 83:return s<0?!1:f$e(s,o,t[0],i);case 104:s==12&&(s=0);case 75:case 72:return s<0?!1:(i.f=s,i.g=!1,!0);case 107:return s<0?!1:(i.f=s,i.g=!0,!0);case 109:return s<0?!1:(i.j=s,!0);case 115:return s<0?!1:(i.n=s,!0);case 90:if(oE[u]&&(v=u),p=new L(e.a.b);p.a1;){if(a=znt(t),p=o.g,g=H(eF(t,j4),107),_=z(Ip(eF(t,DLt))),(!t.a&&(t.a=new Bg(_7,t,10,11)),t.a).i>1&&z(Ip(eF(t,($F(),aLt))))!=KB&&(o.c+(g.b+g.c))/(o.b+(g.d+g.a))<_?yA(a,($F(),O4),z(Ip(eF(t,O4)))+z(Ip(eF(t,aLt)))):(!t.a&&(t.a=new Bg(_7,t,10,11)),t.a).i>1&&z(Ip(eF(t,($F(),iLt))))!=KB&&(o.c+(g.b+g.c))/(o.b+(g.d+g.a))>_&&yA(a,($F(),O4),r.Math.max(z(Ip(eF(t,D4))),z(Ip(eF(a,O4)))-z(Ip(eF(t,iLt))))),h=new nbe(i,f),u=bpt(h,a,m),d=u.g,d>=p&&d==d){for(s=0;s<(!a.a&&(a.a=new Bg(_7,a,10,11)),a.a).i;s++)cP(e,H(G((!a.a&&(a.a=new Bg(_7,a,10,11)),a.a),s),27),H(G((!t.a&&(t.a=new Bg(_7,t,10,11)),t.a),s),27));$We(t,h),fFe(o,u.c),dFe(o,u.b)}--l}yA(t,($F(),T4),o.b),yA(t,E4,o.c),n.Vg()}function vft(e,t){var n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b;for(t.Ug(`Interactive node layering`,1),n=new to,m=new L(e.a);m.a=l){zp(b.b>0),b.a.Xb(b.c=--b.b);break}v.a>u&&(i?(qT(i.b,v.b),i.a=r.Math.max(i.a,v.a),K_(b)):(Cf(v.b,f),v.c=r.Math.min(v.c,u),v.a=r.Math.max(v.a,l),i=v))}i||(i=new zo,i.c=u,i.a=l,tm(b,i),Cf(i.b,f))}for(s=e.b,d=0,y=new L(n);y.ah&&(o&&(ud(w,m),ud(E,bD(d.b-1))),j=n.b,M+=m+t,m=0,f=r.Math.max(f,n.b+n.c+A)),ew(l,j),tw(l,M),f=r.Math.max(f,j+A+n.c),m=r.Math.max(m,p),j+=A+t;if(f=r.Math.max(f,i),k=M+m+n.a,kvH,D=r.Math.abs(m.b-g.b)>vH,(!n&&E&&D||n&&(E||D))&&Ih(v.a,S)),zw(v.a,i),m=i.b==0?S:(zp(i.b!=0),H(i.c.b.c,8)),jJe(h,p,_),Mqe(a)==T&&($_(T.i)!=a.a&&(_=new Sc,W5e(_,$_(T.i),b)),pE(v,jkt,_)),o5e(h,v,b),f.a.zc(h,f);fb(v,C),hb(v,T)}for(d=f.a.ec().Kc();d.Ob();)u=H(d.Pb(),18),fb(u,null),hb(u,null);t.Vg()}function xft(e,t){var n,r,i=H(q(e,(YI(),Y2)),88),a,o,s,l,u,d=i==(WD(),T8)||i==E8?w8:E8,f,p;for(n=H(Ox(jv(new ig(null,new kb(e.b,16)),new kn),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15),l=H(Ox(Mv(n.Oc(),new efe(t)),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY]))),15),l.Gc(H(Ox(Mv(n.Oc(),new tfe(t)),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY]))),16)),l.jd(new Va(d)),p=new jc(new nfe(i)),r=new eo,s=l.Kc();s.Ob();)o=H(s.Pb(),240),u=H(o.a,40),ks(Fp(o.c))?(p.a.zc(u,(sp(),SJ)),new Yi(p.a.Zc(u,!1)).a.gc()>0&&hv(r,u,H(new Yi(p.a.Zc(u,!1)).a.Vc(),40)),new Yi(p.a.ad(u,!0)).a.gc()>1&&hv(r,tk(p,u),u)):(new Yi(p.a.Zc(u,!1)).a.gc()>0&&(a=H(new Yi(p.a.Zc(u,!1)).a.Vc(),40),Qu(a)===Qu(Zu(hg(r.f,u)))&&H(q(u,(UR(),YPt)),15).Fc(a)),new Yi(p.a.ad(u,!0)).a.gc()>1&&(f=tk(p,u),Qu(Zu(hg(r.f,f)))===Qu(u)&&H(q(f,(UR(),YPt)),15).Fc(u)),p.a.Bc(u))}function Sft(e){var t,n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S;if(e.gc()==1)return H(e.Xb(0),235);if(e.gc()<=0)return new DVe;for(a=e.Kc();a.Ob();){for(n=H(a.Pb(),235),g=0,f=Cz,p=Cz,u=pB,d=pB,h=new L(n.e);h.al&&(x=0,S+=s+y,s=0),EI(_,n,x,S),t=r.Math.max(t,x+v.a),s=r.Math.max(s,v.b),x+=v.a+y;return _}function Cft(e){qst();var t,n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(e==null||(a=QS(e),h=mQe(a),h%4!=0))return null;if(g=h/4|0,g==0)return dS(R9,YG,28,0,15,1);for(f=null,t=0,n=0,r=0,i=0,o=0,s=0,l=0,u=0,m=0,p=0,d=0,f=dS(R9,YG,28,g*3,15,1);m>4)<<24>>24,f[p++]=((n&15)<<4|r>>2&15)<<24>>24,f[p++]=(r<<6|i)<<24>>24}return!Xge(o=a[d++])||!Xge(s=a[d++])?null:(t=h9[o],n=h9[s],l=a[d++],u=a[d++],h9[l]==-1||h9[u]==-1?l==61&&u==61?n&15?null:(_=dS(R9,YG,28,m*3+1,15,1),qI(f,0,_,0,m*3),_[p]=(t<<2|n>>4)<<24>>24,_):l!=61&&u==61?(r=h9[l],r&3?null:(_=dS(R9,YG,28,m*3+2,15,1),qI(f,0,_,0,m*3),_[p++]=(t<<2|n>>4)<<24>>24,_[p]=((n&15)<<4|r>>2&15)<<24>>24,_)):null:(r=h9[l],i=h9[u],f[p++]=(t<<2|n>>4)<<24>>24,f[p++]=((n&15)<<4|r>>2&15)<<24>>24,f[p++]=(r<<6|i)<<24>>24,f))}function wft(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S;for(t.Ug(_gt,1),h=H(q(e,(sz(),q$)),223),i=new L(e.b);i.a=2){for(g=!0,p=new L(a.j),n=H(W(p),12),m=null;p.a0){if(i=p.gc(),d=Vy(r.Math.floor((i+1)/2))-1,a=Vy(r.Math.ceil((i+1)/2))-1,t.o==f2)for(f=a;f>=d;f--)t.a[S.p]==S&&(_=H(p.Xb(f),42),g=H(_.a,10),!Jc(n,_.b)&&h>e.b.e[g.p]&&(t.a[g.p]=S,t.g[S.p]=t.g[g.p],t.a[S.p]=t.g[S.p],t.f[t.g[S.p].p]=(sp(),!!(ks(t.f[t.g[S.p].p])&S.k==(sN(),DX))),h=e.b.e[g.p]));else for(f=d;f<=a;f++)t.a[S.p]==S&&(y=H(p.Xb(f),42),v=H(y.a,10),!Jc(n,y.b)&&h0&&(a=H($h(v.c.a,w-1),10),s=e.i[a.p],E=r.Math.ceil(_f(e.n,a,v)),o=C.a.e-v.d.d-(s.a.e+a.o.b+a.d.a)-E),d=KB,w0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)<0,g=x.a.e.e-x.a.a-(x.b.e.e-x.b.a)<0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)>0,h=x.a.e.e+x.b.aT.b.e.e+T.a.a,S=0,!_&&!g&&(m?o+p>0?S=p:d-i>0&&(S=i):h&&(o+l>0?S=l:d-b>0&&(S=b))),C.a.e+=S,C.b&&(C.d.e+=S),!1))}function Dft(e,t,n){var i=new Bv(t.Lf().a,t.Lf().b,t.Mf().a,t.Mf().b),a=new Od,o,s,l,u,d,f,p,m;if(e.c)for(s=new L(t.Rf());s.au&&(r.a+=BSe(dS(P9,yB,28,-u,15,1))),r.a+=`Is`,bd(l,RM(32))>=0)for(i=0;i=r.o.b/2}else y=!f;y?(v=H(q(r,(fz(),r$)),15),v?p?a=v:(i=H(q(r,vQ),15),i?a=v.gc()<=i.gc()?v:i:(a=new to,pE(r,vQ,a))):(a=new to,pE(r,r$,a))):(i=H(q(r,(fz(),vQ)),15),i?f?a=i:(v=H(q(r,r$),15),v?a=i.gc()<=v.gc()?i:v:(a=new to,pE(r,r$,a))):(a=new to,pE(r,vQ,a))),a.Fc(e),pE(e,(fz(),hkt),n),t.d==n?(hb(t,null),n.e.c.length+n.g.c.length==0&&mb(n,null),QYe(n)):(fb(t,null),n.e.c.length+n.g.c.length==0&&mb(n,null)),Qv(t.a)}function Nft(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M;for(n.Ug(`MinWidth layering`,1),h=t.b,T=t.a,M=H(q(t,(sz(),vMt)),17).a,l=H(q(t,yMt),17).a,e.b=z(Ip(q(t,z1))),e.d=KB,S=new L(T);S.a0?(d=0,v&&(d+=l),d+=(D-1)*s,x&&(d+=l),E&&x&&(d=r.Math.max(d,brt(x,s,b,T))),d=e.a&&(i=Pct(e,x),p=r.Math.max(p,i.b),C=r.Math.max(C,i.d),Cf(l,new qu(x,i)));for(D=new to,d=0;d0),y.a.Xb(y.c=--y.b),O=new L_(e.b),tm(y,O),zp(y.b0){for(p=d<100?null:new xc(d),u=new sT(t),h=u.g,v=dS(F9,jB,28,d,15,1),r=0,x=new BC(d),i=0;i=0;)if(m==null?Qu(m)===Qu(h[l]):kD(m,h[l])){v.length<=r&&(_=v,v=dS(F9,jB,28,2*v.length,15,1),qI(_,0,v,0,r)),v[r++]=i,_S(x,h[l]);break v}if(m=m,Qu(m)===Qu(s))break}}if(u=x,h=x.g,d=r,r>v.length&&(_=v,v=dS(F9,jB,28,r,15,1),qI(_,0,v,0,r)),r>0){for(b=!0,a=0;a=0;)fj(e,v[o]);if(r!=d){for(i=d;--i>=r;)fj(u,i);_=v,v=dS(F9,jB,28,r,15,1),qI(_,0,v,0,r)}t=u}}}else for(t=cj(e,t),i=e.i;--i>=0;)t.Hc(e.g[i])&&(fj(e,i),b=!0);if(b){if(v!=null){for(n=t.gc(),f=n==1?ub(e,4,t.Kc().Pb(),null,v[0],g):ub(e,6,t,v,v[0],g),p=n<100?null:new xc(n),i=t.Kc();i.Ob();)m=i.Pb(),p=Sm(e,H(m,76),p);p?(p.nj(f),p.oj()):ST(e.e,f)}else{for(p=GTe(t.gc()),i=t.Kc();i.Ob();)m=i.Pb(),p=Sm(e,H(m,76),p);p&&p.oj()}return!0}return!1}function Lft(e,t){var n=new O0e(t),r,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x;for(n.a||qot(t),u=gat(t),l=new Py,v=new fit,_=new L(t.a);_.a<_.c.c.length;)for(g=H(W(_),10),i=new Mg(Vf(bO(g).a.Kc(),new f));GP(i);)r=H(Rx(i),18),(r.c.i.k==(sN(),TX)||r.d.i.k==TX)&&(d=ndt(e,r,u,v),CP(l,tA(d.d),d.a));for(o=new to,x=H(q(n.c,(fz(),TQ)),21).Kc();x.Ob();){switch(b=H(x.Pb(),64),h=v.c[b.g],m=v.b[b.g],s=v.a[b.g],a=null,y=null,b.g){case 4:a=new Bv(e.d.a,h,u.b.a-e.d.a,m-h),y=new Bv(e.d.a,h,s,m-h),Lh(u,new ku(a.c+a.b,a.d)),Lh(u,new ku(a.c+a.b,a.d+a.a));break;case 2:a=new Bv(u.a.a,h,e.c.a-u.a.a,m-h),y=new Bv(e.c.a-s,h,s,m-h),Lh(u,new ku(a.c,a.d)),Lh(u,new ku(a.c,a.d+a.a));break;case 1:a=new Bv(h,e.d.b,m-h,u.b.b-e.d.b),y=new Bv(h,e.d.b,m-h,s),Lh(u,new ku(a.c,a.d+a.a)),Lh(u,new ku(a.c+a.b,a.d+a.a));break;case 3:a=new Bv(h,u.a.b,m-h,e.c.b-u.a.b),y=new Bv(h,e.c.b-s,m-h,s),Lh(u,new ku(a.c,a.d)),Lh(u,new ku(a.c+a.b,a.d))}a&&(p=new Ype,p.d=b,p.b=a,p.c=y,p.a=hy(H(Wx(l,tA(b)),21)),oo(o.c,p))}return qT(n.b,o),n.d=HXe(Qlt(u)),n}function Rft(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(n.p[t.p]==null){l=!0,n.p[t.p]=0,s=t,_=n.o==(qy(),d2)?qB:KB;do a=e.b.e[s.p],o=s.c.a.c.length,n.o==d2&&a>0||n.o==f2&&a=n}function Bft(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b=t,x,S,C,w,T,E,D,O,k;for(y=new Py,x=new Py,d=ix(b,hbt),r=new WNe(e,n,y,x),xN(r.a,r.b,r.c,r.d,d),l=(w=y.i,w||(y.i=new Pf(y,y.c))),E=l.Kc();E.Ob();)for(T=H(E.Pb(),166),i=H(Wx(y,T),21),g=i.Kc();g.Ob();)if(h=g.Pb(),S=H(YC(e.d,h),166),S)s=(!T.e&&(T.e=new hm(d7,T,10,9)),T.e),_S(s,S);else throw o=sx(b,sK),p=wbt+h+Tbt+o,m=p+lK,R(new Bs(m));for(u=(C=x.i,C||(x.i=new Pf(x,x.c))),O=u.Kc();O.Ob();)for(D=H(O.Pb(),166),a=H(Wx(x,D),21),v=a.Kc();v.Ob();)if(_=v.Pb(),S=H(YC(e.d,_),166),S)f=(!D.g&&(D.g=new hm(d7,D,9,10)),D.g),_S(f,S);else throw o=sx(b,sK),p=wbt+_+Tbt+o,m=p+lK,R(new Bs(m));!n.b&&(n.b=new hm(l7,n,4,7)),n.b.i!=0&&(!n.c&&(n.c=new hm(l7,n,5,8)),n.c.i!=0)&&(!n.b&&(n.b=new hm(l7,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new hm(l7,n,5,8)),n.c.i<=1))&&(!n.a&&(n.a=new Bg(d7,n,6,6)),n.a).i==1&&(k=H(G((!n.a&&(n.a=new Bg(d7,n,6,6)),n.a),0),166),!U0e(k)&&!W0e(k)&&(kKe(k,H(G((!n.b&&(n.b=new hm(l7,n,4,7)),n.b),0),84)),AKe(k,H(G((!n.c&&(n.c=new hm(l7,n,5,8)),n.c),0),84))))}function Vft(e){for(var t,n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x=e.a,S=0,C=x.length,w,T,E,D,O;S0?(p=H($h(m.c.a,s-1),10),E=_f(e.b,m,p),v=m.n.b-m.d.d-(p.n.b+p.o.b+p.d.a+E)):v=m.n.b-m.d.d,d=r.Math.min(v,d),s1&&(s=r.Math.min(s,r.Math.abs(H(mA(l.a,1),8).b-f.b)))));else for(_=new L(t.j);_.a<_.c.c.length;)for(g=H(W(_),12),u=new L(g.e);u.aa&&(o=m.a-a,s=Cz,i.c.length=0,a=m.a),m.a>=a&&(oo(i.c,l),l.a.b>1&&(s=r.Math.min(s,r.Math.abs(H(mA(l.a,l.a.b-2),8).b-m.b)))));if(i.c.length!=0&&o>t.o.a/2&&s>t.o.b/2){for(h=new uN,mb(h,t),$N(h,(WR(),w5)),h.n.a=t.o.a/2,y=new uN,mb(y,t),$N(y,V5),y.n.a=t.o.a/2,y.n.b=t.o.b,u=new L(i);u.a=d.b?fb(l,y):fb(l,h)):(d=H(tke(l.a),8),v=l.a.b==0?wb(l.c):H(bp(l.a),8),v.b>=d.b?hb(l,y):hb(l,h)),p=H(q(l,(sz(),i1)),75),p&&JO(p,d,!0);t.n.a=a-t.o.a/2}}function Uft(e,t,n){for(var i,a,o,s,l=iA(e.b,0),u,d,f,p,m;l.b!=l.d.c;)if(s=H(lx(l),40),!_m(s.c,kW))for(d=Get(s,e),t==(WD(),T8)||t==E8?ff(d,new Xie):ff(d,new Zie),u=d.c.length,i=0;i=0?UO(s):JD(UO(s)),e.qf(j1,m)),u=new Sc,p=!1,e.pf(w1)?(Owe(u,H(e.of(w1),8)),p=!0):cCe(u,o.a/2,o.b/2),m.g){case 4:pE(d,o1,(KO(),a$)),pE(d,SQ,(hE(),UZ)),d.o.b=o.b,g<0&&(d.o.a=-g),$N(f,(WR(),C5)),p||(u.a=o.a),u.a-=o.a;break;case 2:pE(d,o1,(KO(),s$)),pE(d,SQ,(hE(),HZ)),d.o.b=o.b,g<0&&(d.o.a=-g),$N(f,(WR(),U5)),p||(u.a=0);break;case 1:pE(d,MQ,(rC(),gQ)),d.o.a=o.a,g<0&&(d.o.b=-g),$N(f,(WR(),V5)),p||(u.b=o.b),u.b-=o.b;break;case 3:pE(d,MQ,(rC(),mQ)),d.o.a=o.a,g<0&&(d.o.b=-g),$N(f,(WR(),w5)),p||(u.b=0)}if(Owe(f.n,u),pE(d,w1,u),t==u5||t==f5||t==d5){if(h=0,t==u5&&e.pf(D1))switch(m.g){case 1:case 2:h=H(e.of(D1),17).a;break;case 3:case 4:h=-H(e.of(D1),17).a}else switch(m.g){case 4:case 2:h=a.b,t==f5&&(h/=i.b);break;case 1:case 3:h=a.a,t==f5&&(h/=i.a)}pE(d,qQ,h)}return pE(d,OQ,m),d}function Wft(){oge();function e(e){var t=this;this.dispatch=function(t){var n=t.data;switch(n.cmd){case`algorithms`:var r=m$e((iy(),new Bi(new Pi(x7.b))));e.postMessage({id:n.id,data:r});break;case`categories`:var i=m$e((iy(),new Bi(new Pi(x7.c))));e.postMessage({id:n.id,data:i});break;case`options`:var a=m$e((iy(),new Bi(new Pi(x7.d))));e.postMessage({id:n.id,data:a});break;case`register`:dut(n.algorithms),e.postMessage({id:n.id});break;case`layout`:Rct(n.graph,n.layoutOptions||{},n.options||{}),e.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{t.dispatch(n)}catch(t){e.postMessage({id:n.data.id,error:t})}}}function r(t){var n=this;this.dispatcher=new e({postMessage:function(e){n.onmessage({data:e})}}),this.postMessage=function(e){setTimeout(function(){n.dispatcher.saveDispatch({data:e})},0)}}if(typeof document===uV&&typeof self!==uV){var i=new e(self);self.onmessage=i.saveDispatch}else typeof t!==uV&&t.exports&&(Object.defineProperty(n,"__esModule",{value:!0}),t.exports={default:r,Worker:r})}function Gft(e,t,n){var r,i,a,o,s,l,u,d=new kA(n),f,p;for(NT(d,t),pE(d,(fz(),WQ),t),d.o.a=t.g,d.o.b=t.f,d.n.a=t.i,d.n.b=t.j,Cf(n.a,d),hv(e.a,t,d),((!t.a&&(t.a=new Bg(_7,t,10,11)),t.a).i!=0||ks(Fp(eF(t,(sz(),t1)))))&&pE(d,gkt,(sp(),!0)),u=H(q(n,AQ),21),f=H(q(d,(sz(),E1)),101),f==(_M(),h5)?pE(d,E1,m5):f!=m5&&u.Fc((UF(),oQ)),p=0,r=H(q(n,W$),88),l=new Mf((!t.c&&(t.c=new Bg(v7,t,9,9)),t.c));l.e!=l.i.gc();)s=H(cA(l),123),i=ib(t),(Qu(eF(i,L$))!==Qu((Mk(),R0))||Qu(eF(i,H$))===Qu((jk(),BZ))||Qu(eF(i,H$))===Qu((jk(),zZ))||ks(Fp(eF(i,R$)))||Qu(eF(i,F$))!==Qu((Hk(),yX))||Qu(eF(i,c1))===Qu((yI(),A0))||Qu(eF(i,c1))===Qu((yI(),j0))||Qu(eF(i,l1))===Qu((TF(),u0))||Qu(eF(i,l1))===Qu((TF(),f0)))&&!ks(Fp(eF(t,I$)))&&yA(s,UQ,bD(p++)),ks(Fp(eF(s,b1)))||Fdt(e,s,d,u,r,f);for(o=new Mf((!t.n&&(t.n=new Bg(g7,t,1,7)),t.n));o.e!=o.i.gc();)a=H(cA(o),135),!ks(Fp(eF(a,b1)))&&a.a&&Cf(d.b,iZe(a));return ks(Fp(q(d,N$)))&&u.Fc((UF(),tQ)),ks(Fp(q(d,e1)))&&(u.Fc((UF(),aQ)),u.Fc(iQ),pE(d,E1,m5)),d}function Kft(e,t,n,i,a,o,s){var l,u,d,f,p,m,h,g,_=0,v,y,b,x,S,C,w,T,E,D,O=0,k,A,j,M;for(d=new L(e.b);d.a_&&(o&&(ud(w,h),ud(E,bD(f.b-1)),Cf(e.d,g),l.c.length=0),j=n.b,M+=h+t,h=0,p=r.Math.max(p,n.b+n.c+A)),oo(l.c,u),t0e(u,j,M),p=r.Math.max(p,j+A+n.c),h=r.Math.max(h,m),j+=A+t,g=u;if(qT(e.a,l),Cf(e.d,H($h(l,l.c.length-1),163)),p=r.Math.max(p,i),k=M+h+n.a,ki.d.d+i.d.a?d.f.d=!0:(d.f.d=!0,d.f.a=!0))),r.b!=r.d.c&&(t=n);d&&(a=H(N_(e.f,o.d.i),60),t.ba.d.d+a.d.a?d.f.d=!0:(d.f.d=!0,d.f.a=!0))}for(s=new Mg(Vf(yO(h).a.Kc(),new f));GP(s);)o=H(Rx(s),18),o.a.b!=0&&(t=H(bp(o.a),8),o.d.j==(WR(),w5)&&(v=new dL(t,new ku(t.a,i.d.d),i,o),v.f.a=!0,v.a=o.d,oo(_.c,v)),o.d.j==V5&&(v=new dL(t,new ku(t.a,i.d.d+i.d.a),i,o),v.f.d=!0,v.a=o.d,oo(_.c,v)))}return _}function Xft(e,t,n){var r,i,a,o,s,l=new to,u,d,f=t.length,p;for(o=wYe(n),u=0;u=h&&(y>h&&(m.c.length=0,h=y),oo(m.c,o));m.c.length!=0&&(p=H($h(m,R0e(t,m.c.length)),131),O.a.Bc(p),p.s=g++,Wtt(p,E,C),m.c.length=0)}for(x=e.c.length+1,s=new L(e);s.aD.s&&(K_(n),BS(D.i,r),r.c>0&&(r.a=D,Cf(D.t,r),r.b=w,Cf(w.i,r)))}function $ft(e,t,n,r,i){var a,o,s,l,u,d,f,p,m,h,g=new aS(t.b),_,v,y,b,x=new aS(t.b),S,C,w,T,E,D,O;for(p=new aS(t.b),T=new aS(t.b),_=new aS(t.b),w=iA(t,0);w.b!=w.d.c;)for(S=H(lx(w),12),s=new L(S.g);s.a0,v=S.g.c.length>0,u&&v?oo(p.c,S):u?oo(g.c,S):v&&oo(x.c,S);for(h=new L(g);h.ab.nh()-d.b&&(m=b.nh()-d.b),h>b.oh()-d.d&&(h=b.oh()-d.d),f0){for(S=iA(e.f,0);S.b!=S.d.c;)x=H(lx(S),10),x.p+=h-e.e;G5e(e),Qv(e.f),Hit(e,i,g)}else{for(Ih(e.f,g),g.p=i,e.e=r.Math.max(e.e,i),o=new Mg(Vf(yO(g).a.Kc(),new f));GP(o);)a=H(Rx(o),18),!a.c.i.c&&a.c.i.k==(sN(),EX)&&(Ih(e.f,a.c.i),a.c.i.p=i-1);e.c=i}}else G5e(e),Qv(e.f),i=0,GP(new Mg(Vf(yO(g).a.Kc(),new f)))?(h=0,h=m0e(h,g),i=h+2,Hit(e,i,g)):(Ih(e.f,g),g.p=0,e.e=r.Math.max(e.e,0),e.b=H($h(e.d.b,0),30),e.c=0);for(e.f.b==0||G5e(e),e.d.a.c.length=0,b=new to,d=new L(e.d.b);d.a=48&&t<=57){for(r=t-48;i=48&&t<=57;)if(r=r*10+t-48,r<0)throw R(new Vs(yz((cf(),axt))))}else throw R(new Vs(yz((cf(),nxt))));if(n=r,t==44){if(i>=e.j)throw R(new Vs(yz((cf(),rxt))));if((t=kv(e.i,i++))>=48&&t<=57){for(n=t-48;i=48&&t<=57;)if(n=n*10+t-48,n<0)throw R(new Vs(yz((cf(),axt))));if(r>n)throw R(new Vs(yz((cf(),ixt))))}else n=-1}if(t!=125)throw R(new Vs(yz((cf(),AK))));e.bm(i)?(a=(hz(),hz(),++M9,new Cx(9,a)),e.d=i+1):(a=(hz(),hz(),++M9,new Cx(3,a)),e.d=i),a.Om(r),a.Nm(n),cz(e)}}return a}function spt(e){var t,n=H(q(e,(fz(),AQ)),21),r,i,a;switch(t=kd(xEt),i=H(q(e,(sz(),$$)),346),i==(gD(),H8)&&xT(t,SEt),ks(Fp(q(e,Q$)))?Jh(t,(WM(),oX),(mz(),FDt)):Jh(t,(WM(),cX),(mz(),FDt)),q(e,(VVe(),L3))!=null&&xT(t,CEt),(ks(Fp(q(e,r1)))||ks(Fp(q(e,fMt))))&&Cg(t,(WM(),uX),(mz(),mDt)),H(q(e,W$),88).g){case 2:case 3:case 4:Cg(Jh(t,(WM(),oX),(mz(),gDt)),uX,hDt)}switch(n.Hc((UF(),tQ))&&Cg(Jh(Jh(t,(WM(),oX),(mz(),pDt)),lX,dDt),uX,fDt),Qu(q(e,c1))!==Qu((yI(),P0))&&Jh(t,(WM(),cX),(mz(),kDt)),n.Hc(cQ)&&(Jh(t,(WM(),oX),(mz(),PDt)),Jh(t,sX,MDt),Jh(t,cX,NDt)),Qu(q(e,Kjt))!==Qu((nN(),XZ))&&Qu(q(e,q$))!==Qu((hO(),F8))&&Cg(t,(WM(),uX),(mz(),wDt)),ks(Fp(q(e,mMt)))&&Jh(t,(WM(),cX),(mz(),CDt)),ks(Fp(q(e,iMt)))&&Jh(t,(WM(),cX),(mz(),IDt)),gnt(e)&&(r=Qu(q(e,$$))===Qu(H8)?H(q(e,z$),299):H(q(e,$jt),299),a=r==(zT(),fQ)?(mz(),$X):(mz(),zDt),Jh(t,(WM(),lX),a)),H(q(e,JMt),388).g){case 1:Jh(t,(WM(),lX),(mz(),LDt));break;case 2:Cg(Jh(Jh(t,(WM(),cX),(mz(),FX)),lX,cDt),uX,lDt)}return Qu(q(e,L$))!==Qu((Mk(),R0))&&Jh(t,(WM(),cX),(mz(),RDt)),t}function cpt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b;if(Jg(e.a,t)){if(Jc(H(N_(e.a,t),49),n))return 1}else hv(e.a,t,new Ao);if(Jg(e.a,n)){if(Jc(H(N_(e.a,n),49),t))return-1}else hv(e.a,n,new Ao);if(Jg(e.e,t)){if(Jc(H(N_(e.e,t),49),n))return-1}else hv(e.e,t,new Ao);if(Jg(e.e,n)){if(Jc(H(N_(e.a,n),49),t))return 1}else hv(e.e,n,new Ao);if(e.c==(Mk(),lNt)||!xp(t,(fz(),UQ))||!xp(n,(fz(),UQ))){for(f=null,u=new L(t.j);u.ao?dI(e,t,n):dI(e,n,t),io)}return r=H(q(t,(fz(),UQ)),17).a,a=H(q(n,UQ),17).a,r>a?dI(e,t,n):dI(e,n,t),ra)}function nz(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(n==null)return null;if(e.a!=t.jk())throw R(new Ps(qG+t.xe()+JG));if(V(t,469)){if(_=Pit(H(t,685),n),!_)throw R(new Ps(cbt+n+`' is not a valid enumerator of '`+t.xe()+`'`));return _}switch(ED((MN(),r9),t).Nl()){case 2:n=FL(n,!1);break;case 3:n=FL(n,!0)}if(r=ED(r9,t).Jl(),r)return r.jk().wi().ti(r,n);if(p=ED(r9,t).Ll(),p){for(_=new to,u=rXe(n),d=0,f=u.length;d1)for(g=new dp((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a));g.e!=g.i.gc();)rM(g);for(s=H(G((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a),0),166),v=j,j>C+S?v=C+S:jw+_?y=w+_:MC-S&&vw-_&&yj+A?E=j+A:CM+T?D=M+T:wj-A&&EM-T&&Dn&&(m=n-1),h=ie+hF(t,24)*sV*p-p/2,h<0?h=1:h>i&&(h=i-1),a=(Cc(),u=new joe,u),kGe(a,m),XC(a,h),_S((!s.a&&(s.a=new Tf(c7,s,5)),s.a),a)}function ppt(e){jl(e,new EM(lc(oc(cc(sc(new Vn,oG),`ELK Rectangle Packing`),`Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces.`),new Aae))),Jb(e,oG,sH,1.3),Jb(e,oG,jH,(sp(),!1)),Jb(e,oG,cH,VLt),Jb(e,oG,wH,15),Jb(e,oG,oW,sA(OLt)),Jb(e,oG,NH,sA(NLt)),Jb(e,oG,GH,sA(FLt)),Jb(e,oG,MH,sA(ILt)),Jb(e,oG,PH,sA(MLt)),Jb(e,oG,AH,sA(LLt)),Jb(e,oG,FH,sA(HLt)),Jb(e,oG,$W,sA(ULt)),Jb(e,oG,Qvt,sA(F4)),Jb(e,oG,QW,sA(GLt)),Jb(e,oG,ZW,sA(WLt)),Jb(e,oG,eG,sA(BLt)),Jb(e,oG,tG,sA(zLt)),Jb(e,oG,nG,sA(RLt)),Jb(e,oG,rG,sA(P4)),Jb(e,oG,DH,sA(ALt)),Jb(e,oG,lW,sA(jLt)),Jb(e,oG,YW,sA(k4)),Jb(e,oG,JW,sA(kLt)),Jb(e,oG,XW,sA(A4)),Jb(e,oG,qW,sA(N4))}function az(e,t){ML();var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.e,E,D,O,k,A;if(h=e.d,i=e.a,T==0)switch(t){case 0:return`0`;case 1:return eV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return C=new Qs,t<0?C.a+=`0E+`:C.a+=`0E`,C.a+=-t,C.a}if(b=h*10+1+7,x=dS(P9,yB,28,b+1,15,1),n=b,h==1){if(s=i[0],s<0){A=Nb(s,$B);do g=A,A=Yj(A,10),x[--n]=48+Tg(dO(g,uO(A,10)))&xB;while(uD(A,0)!=0)}else{A=s;do g=A,A=A/10|0,x[--n]=48+(g-A*10)&xB;while(A!=0)}}else{D=dS(F9,jB,28,h,15,1),k=h,qI(i,0,D,0,k);I:for(;;){for(w=0,u=k-1;u>=0;u--)O=lO(kg(w,32),Nb(D[u],$B)),v=F6e(O),D[u]=Tg(v),w=Tg(Ag(v,32));y=Tg(w),_=n;do x[--n]=48+y%10&xB;while((y=y/10|0)!=0&&n!=0);for(r=9-_+n,l=0;l0;l++)x[--n]=48;for(f=k-1;D[f]==0;f--)if(f==0)break I;k=f+1}for(;x[n]==48;)++n}if(m=T<0,o=b-n-t-1,t==0)return m&&(x[--n]=45),Ak(x,n,b-n);if(t>0&&o>=-6){if(o>=0){for(d=n+o,p=b-1;p>=d;p--)x[p+1]=x[p];return x[++d]=46,m&&(x[--n]=45),Ak(x,n,b-n+1)}for(f=2;f<-o+1;f++)x[--n]=48;return x[--n]=46,x[--n]=48,m&&(x[--n]=45),Ak(x,n,b-n)}return E=n+1,a=b,S=new $s,m&&(S.a+=`-`),a-E>=1?(W_(S,x[n]),S.a+=`.`,S.a+=Ak(x,n+1,b-n-1)):S.a+=Ak(x,n,b-n),S.a+=`E`,o>0&&(S.a+=`+`),S.a+=``+o,S.a}function mpt(e,t){var n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;switch(e.c=t,e.g=new eo,n=(Nl(),new Ds(e.c)),i=new ia(n),WO(i),x=Lp(eF(e.c,(GM(),bRt))),u=H(eF(e.c,SRt),324),C=H(eF(e.c,n3),437),s=H(eF(e.c,gRt),490),S=H(eF(e.c,xRt),438),e.j=z(Ip(eF(e.c,CRt))),l=e.a,u.g){case 0:l=e.a;break;case 1:l=e.b;break;case 2:l=e.i;break;case 3:l=e.e;break;case 4:l=e.f;break;default:throw R(new Ps(uG+(u.f==null?``+u.g:u.f)))}if(e.d=new TFe(l,C,s),pE(e.d,(_T(),FY),Fp(eF(e.c,vRt))),e.d.c=ks(Fp(eF(e.c,_Rt))),sy(e.c).i==0)return e.d;for(p=new Mf(sy(e.c));p.e!=p.i.gc();){for(f=H(cA(p),27),h=f.g/2,m=f.f/2,w=new ku(f.i+h,f.j+m);Jg(e.g,w);)Cp(w,(r.Math.random()-.5)*vH,(r.Math.random()-.5)*vH);_=H(eF(f,(pz(),M6)),140),v=new JFe(w,new Bv(w.a-h-e.j/2-_.b,w.b-m-e.j/2-_.d,f.g+e.j+(_.b+_.c),f.f+e.j+(_.d+_.a))),Cf(e.d.i,v),hv(e.g,w,new qu(v,f))}switch(S.g){case 0:if(x==null)e.d.d=H($h(e.d.i,0),68);else for(b=new L(e.d.i);b.a0?k+1:1);for(o=new L(C.g);o.a0?k+1:1)}e.c[u]==0?Ih(e.e,g):e.a[u]==0&&Ih(e.f,g),++u}for(h=-1,m=1,f=new to,e.d=H(q(t,(fz(),JQ)),234);te>0;){for(;e.e.b!=0;)j=H(fh(e.e),10),e.b[j.p]=h--,Fot(e,j),--te;for(;e.f.b!=0;)M=H(fh(e.f),10),e.b[M.p]=m++,Fot(e,M),--te;if(te>0){for(p=pB,y=new L(b);y.a=p&&(x>p&&(f.c.length=0,p=x),oo(f.c,g)));d=e.sg(f),e.b[d.p]=m++,Fot(e,d),--te}}for(A=b.c.length+1,u=0;ue.b[ee]&&(eL(r,!0),pE(t,xQ,(sp(),!0)));e.a=null,e.c=null,e.b=null,Qv(e.f),Qv(e.e),n.Vg()}function _pt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=H(G((!e.a&&(e.a=new Bg(d7,e,6,6)),e.a),0),166),w;for(f=new $o,S=new eo,w=wst(C),UN(S.f,C,w),m=new eo,i=new $c,g=Xg(mw(K(B(eJ,1),Oz,20,0,[(!t.d&&(t.d=new hm(u7,t,8,5)),t.d),(!t.e&&(t.e=new hm(u7,t,7,4)),t.e)])));GP(g);){if(h=H(Rx(g),74),(!e.a&&(e.a=new Bg(d7,e,6,6)),e.a).i!=1)throw R(new Ps(Gyt+(!e.a&&(e.a=new Bg(d7,e,6,6)),e.a).i));h!=e&&(v=H(G((!h.a&&(h.a=new Bg(d7,h,6,6)),h.a),0),166),Dx(i,v,i.c.b,i.c),_=H(Zu(hg(S.f,v)),13),_||(_=wst(v),UN(S.f,v,_)),p=n?pm(new Td(H($h(w,w.c.length-1),8)),H($h(_,_.c.length-1),8)):pm(new Td((Db(0,w.c.length),H(w.c[0],8))),(Db(0,_.c.length),H(_.c[0],8))),UN(m.f,v,p))}if(i.b!=0)for(y=H($h(w,n?w.c.length-1:0),8),d=1;d1&&Dx(f,y,f.c.b,f.c),FC(a)));y=b}return f}function vpt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D;for(n.Ug(Tvt,1),D=H(Ox(jv(new ig(null,new kb(t,16)),new aae),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15),d=H(Ox(jv(new ig(null,new kb(t,16)),new ife(t)),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY]))),15),h=H(Ox(jv(new ig(null,new kb(t,16)),new rfe(t)),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[tY]))),15),g=dS(O2,NW,40,t.gc(),0,1),o=0;o=0&&E=0&&!g[m]){g[m]=i,d.gd(s),--s;break}if(m=E-p,m=0&&!g[m]){g[m]=i,d.gd(s),--s;break}}for(h.jd(new oae),l=g.length-1;l>=0;l--)!g[l]&&!h.dc()&&(g[l]=H(h.Xb(0),40),h.gd(0));for(u=0;u=0;l--)Ih(n,(Db(l,o.c.length),H(o.c[l],8)));return n}function bpt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x=z(Ip(eF(t,($F(),O4)))),S;for(h=z(Ip(eF(t,D4))),m=z(Ip(eF(t,rLt))),uqe((!t.a&&(t.a=new Bg(_7,t,10,11)),t.a)),y=llt((!t.a&&(t.a=new Bg(_7,t,10,11)),t.a),x,e.b),v=0;vp&&Nj((Db(p,t.c.length),H(t.c[p],186)),d),d=null;t.c.length>p&&(Db(p,t.c.length),H(t.c[p],186)).a.c.length==0;)BS(t,(Db(p,t.c.length),t.c[p]));if(!d){--o;continue}if(!ks(Fp(H($h(d.b,0),27).of((JF(),A4))))&&ost(t,h,a,d,_,n,p,r)){g=!0;continue}if(_){if(m=h.b,f=d.f,!ks(Fp(H($h(d.b,0),27).of(A4)))&&sut(t,h,a,d,n,p,r,i)){if(g=!0,m=e.j){e.a=-1,e.c=1;return}if(t=kv(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(r=10,e.d>=e.j)throw R(new Vs(yz((cf(),xK))));e.a=kv(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||kv(e.i,e.d)!=63)break;if(++e.d>=e.j)throw R(new Vs(yz((cf(),SK))));switch(t=kv(e.i,e.d++),t){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(e.d>=e.j)throw R(new Vs(yz((cf(),SK))));if(t=kv(e.i,e.d++),t==61)r=16;else if(t==33)r=17;else throw R(new Vs(yz((cf(),Pbt))));break;case 35:for(;e.d=e.j)throw R(new Vs(yz((cf(),xK))));e.a=kv(e.i,e.d++);break;default:r=0}e.c=r}function Cpt(e,t,n){var r,i,a,o,s,l,u,d,f,p,m,h,g,_;if(n.Ug(`Process compaction`,1),ks(Fp(q(t,(YI(),gFt))))){for(i=H(q(t,Y2),88),m=z(Ip(q(t,t4))),Jct(e,t,i),xft(t,m/2/2),h=t.b,Aw(h,new Zde(i)),u=iA(h,0);u.b!=u.d.c;)if(l=H(lx(u),40),!ks(Fp(q(l,(UR(),K2))))){if(r=QF(l,i),g=Cct(l,t),f=0,p=0,r)switch(_=r.e,i.g){case 2:f=_.a-m-l.f.a,g.e.a-m-l.f.af&&(f=g.e.a+g.f.a+m),p=f+l.f.a;break;case 4:f=_.b-m-l.f.b,g.e.b-m-l.f.bf&&(f=g.e.b+g.f.b+m),p=f+l.f.b}else if(g)switch(i.g){case 2:f=g.e.a-m-l.f.a,p=f+l.f.a;break;case 1:f=g.e.a+g.f.a+m,p=f+l.f.a;break;case 4:f=g.e.b-m-l.f.b,p=f+l.f.b;break;case 3:f=g.e.b+g.f.b+m,p=f+l.f.b}Qu(q(t,X2))===Qu((zE(),A2))?(a=f,o=p,s=NE(jv(new ig(null,new kb(e.a,16)),new Pye(a,o))),s.a==null?(s=i==(WD(),T8)||i==O8?NE(jv(pGe(new ig(null,new kb(e.a,16))),new Qde(a))):NE(jv(pGe(new ig(null,new kb(e.a,16))),new $de(a))),s.a!=null&&(i==T8||i==E8?l.e.a=z(Ip((zp(s.a!=null),H(s.a,42)).a)):l.e.b=z(Ip((zp(s.a!=null),H(s.a,42)).a)))):i==(WD(),T8)||i==E8?l.e.a=f:l.e.b=f,s.a!=null&&(d=HS(e.a,(zp(s.a!=null),s.a),0),d>0&&d!=H(q(l,n4),17).a&&(pE(l,XPt,(sp(),!0)),pE(l,n4,bD(d))))):i==(WD(),T8)||i==E8?l.e.a=f:l.e.b=f}n.Vg()}}function lz(e){var t,n,r,i,a,o,s,l,u;for(e.b=1,cz(e),t=null,e.c==0&&e.a==94?(cz(e),t=(hz(),hz(),++M9,new Ib(4)),IF(t,0,Vq),s=(++M9,new Ib(4))):s=(hz(),hz(),++M9,new Ib(4)),i=!0;(u=e.c)!=1;){if(u==0&&e.a==93&&!i){t&&(kR(t,s),s=t);break}if(n=e.a,r=!1,u==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:LL(s,PI(n)),r=!0;break;case 105:case 73:case 99:case 67:n=(LL(s,PI(n)),-1),n<0&&(r=!0);break;case 112:case 80:if(l=pP(e,n),!l)throw R(new Vs(yz((cf(),Gbt))));LL(s,l),r=!0;break;default:n=Yit(e)}else if(u==24&&!i){if(t&&(kR(t,s),s=t),a=lz(e),kR(s,a),e.c!=0||e.a!=93)throw R(new Vs(yz((cf(),qbt))));break}if(cz(e),!r){if(u==0){if(n==91)throw R(new Vs(yz((cf(),Jbt))));if(n==93)throw R(new Vs(yz((cf(),Ybt))));if(n==45&&!i&&e.a!=93)throw R(new Vs(yz((cf(),EK))))}if(e.c!=0||e.a!=45||n==45&&i)IF(s,n,n);else{if(cz(e),(u=e.c)==1)throw R(new Vs(yz((cf(),wK))));if(u==0&&e.a==93)IF(s,n,n),IF(s,45,45);else if(u==0&&e.a==93||u==24)throw R(new Vs(yz((cf(),EK))));else{if(o=e.a,u==0){if(o==91)throw R(new Vs(yz((cf(),Jbt))));if(o==93)throw R(new Vs(yz((cf(),Ybt))));if(o==45)throw R(new Vs(yz((cf(),EK))))}else u==10&&(o=Yit(e));if(cz(e),n>o)throw R(new Vs(yz((cf(),Qbt))));IF(s,n,o)}}}i=!1}if(e.c==1)throw R(new Vs(yz((cf(),wK))));return rF(s),iR(s),e.b=0,cz(e),s}function wpt(e,t,n){var r,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x,S,C;if(n.Ug(`Coffman-Graham Layering`,1),t.a.c.length==0){n.Vg();return}for(C=H(q(t,(sz(),a1)),17).a,l=0,o=0,m=new L(t.a);m.a=C||!R$e(y,r))&&(r=_Ne(t,d)),pb(y,r),a=new Mg(Vf(yO(y).a.Kc(),new f));GP(a);)i=H(Rx(a),18),!e.a[i.p]&&(_=i.c.i,--e.e[_.p],e.e[_.p]==0&&vh(zM(h,_),tV));for(u=d.c.length-1;u>=0;--u)Cf(t.b,(Db(u,d.c.length),H(d.c[u],30)));t.a.c.length=0,n.Vg()}function Tpt(e,t){var n,r,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x,S=!1;do for(S=!1,a=t?new Oi(e.a.b).a.gc()-2:1;t?a>=0:aH(q(v,UQ),17).a)&&(x=!1);if(x){for(l=t?a+1:a-1,s=qRe(e.a,bD(l)),o=!1,b=!0,r=!1,d=iA(s,0);d.b!=d.d.c;)u=H(lx(d),10),xp(u,UQ)?u.p!=p.p&&(o|=t?H(q(u,UQ),17).aH(q(p,UQ),17).a,b=!1):!o&&b&&u.k==(sN(),EX)&&(r=!0,m=t?H(Rx(new Mg(Vf(yO(u).a.Kc(),new f))),18).c.i:H(Rx(new Mg(Vf(bO(u).a.Kc(),new f))),18).d.i,m==p&&(n=t?H(Rx(new Mg(Vf(bO(u).a.Kc(),new f))),18).d.i:H(Rx(new Mg(Vf(yO(u).a.Kc(),new f))),18).c.i,(t?H(Sp(e.a,n),17).a-H(Sp(e.a,m),17).a:H(Sp(e.a,m),17).a-H(Sp(e.a,n),17).a)<=2&&(b=!1)));if(r&&b&&(n=t?H(Rx(new Mg(Vf(bO(p).a.Kc(),new f))),18).d.i:H(Rx(new Mg(Vf(yO(p).a.Kc(),new f))),18).c.i,(t?H(Sp(e.a,n),17).a-H(Sp(e.a,p),17).a:H(Sp(e.a,p),17).a-H(Sp(e.a,n),17).a)<=2&&n.k==(sN(),OX)&&(b=!1)),o||b){for(_=mnt(e,p,t);_.a.gc()!=0;)g=H(_.a.ec().Kc().Pb(),10),_.a.Bc(g),zw(_,mnt(e,g,t));--h,S=!0}}}while(S)}function Ept(e){uF(e.c,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#decimal`])),uF(e.d,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#integer`])),uF(e.e,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#boolean`])),uF(e.f,aq,K(B(FJ,1),Gz,2,6,[gq,`EBoolean`,dK,`EBoolean:Object`])),uF(e.i,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#byte`])),uF(e.g,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#hexBinary`])),uF(e.j,aq,K(B(FJ,1),Gz,2,6,[gq,`EByte`,dK,`EByte:Object`])),uF(e.n,aq,K(B(FJ,1),Gz,2,6,[gq,`EChar`,dK,`EChar:Object`])),uF(e.t,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#double`])),uF(e.u,aq,K(B(FJ,1),Gz,2,6,[gq,`EDouble`,dK,`EDouble:Object`])),uF(e.F,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#float`])),uF(e.G,aq,K(B(FJ,1),Gz,2,6,[gq,`EFloat`,dK,`EFloat:Object`])),uF(e.I,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#int`])),uF(e.J,aq,K(B(FJ,1),Gz,2,6,[gq,`EInt`,dK,`EInt:Object`])),uF(e.N,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#long`])),uF(e.O,aq,K(B(FJ,1),Gz,2,6,[gq,`ELong`,dK,`ELong:Object`])),uF(e.Z,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#short`])),uF(e.$,aq,K(B(FJ,1),Gz,2,6,[gq,`EShort`,dK,`EShort:Object`])),uF(e._,aq,K(B(FJ,1),Gz,2,6,[gq,`http://www.w3.org/2001/XMLSchema#string`]))}function Dpt(e,t,n,r,i,a,o){var s,l,u,d,f,p=H(r.a,17).a,m=H(r.b,17).a,h;return f=e.b,h=e.c,s=0,d=0,t==(WD(),T8)||t==E8?(d=xu(KZe(Nv(Mv(new ig(null,new kb(n.b,16)),new cae),new Wie))),f.e.b+f.f.b/2>d?(u=++m,s=z(Ip(Xf(Fg(Mv(new ig(null,new kb(n.b,16)),new ebe(i,u)),new jn))))):(l=++p,s=z(Ip(Xf(Ig(Mv(new ig(null,new kb(n.b,16)),new tbe(i,l)),new Gie)))))):(d=xu(KZe(Nv(Mv(new ig(null,new kb(n.b,16)),new Yie),new Uie))),f.e.a+f.f.a/2>d?(u=++m,s=z(Ip(Xf(Fg(Mv(new ig(null,new kb(n.b,16)),new Qye(i,u)),new Kie))))):(l=++p,s=z(Ip(Xf(Ig(Mv(new ig(null,new kb(n.b,16)),new $ye(i,l)),new qie)))))),t==T8?(ud(e.a,new ku(z(Ip(q(f,(UR(),B2))))-i,s)),ud(e.a,new ku(h.e.a+h.f.a+i+a,s)),ud(e.a,new ku(h.e.a+h.f.a+i+a,h.e.b+h.f.b/2)),ud(e.a,new ku(h.e.a+h.f.a,h.e.b+h.f.b/2))):t==E8?(ud(e.a,new ku(z(Ip(q(f,(UR(),z2))))+i,f.e.b+f.f.b/2)),ud(e.a,new ku(f.e.a+f.f.a+i,s)),ud(e.a,new ku(h.e.a-i-a,s)),ud(e.a,new ku(h.e.a-i-a,h.e.b+h.f.b/2)),ud(e.a,new ku(h.e.a,h.e.b+h.f.b/2))):t==O8?(ud(e.a,new ku(s,z(Ip(q(f,(UR(),B2))))-i)),ud(e.a,new ku(s,h.e.b+h.f.b+i+a)),ud(e.a,new ku(h.e.a+h.f.a/2,h.e.b+h.f.b+i+a)),ud(e.a,new ku(h.e.a+h.f.a/2,h.e.b+h.f.b+i))):(e.a.b==0||(H(bp(e.a),8).b=z(Ip(q(f,(UR(),z2))))+i*H(o.b,17).a),ud(e.a,new ku(s,z(Ip(q(f,(UR(),z2))))+i*H(o.b,17).a)),ud(e.a,new ku(s,h.e.b-i*H(o.a,17).a-a))),new qu(bD(p),bD(m))}function Opt(e){var t,n,r,i,a,o=!0,s,l,u,d,f=null,p,m;if(r=null,i=null,t=!1,m=FVt,u=null,a=null,s=0,l=qk(e,s,NVt,PVt),l=0&&_m(e.substr(s,2),`//`)?(s+=2,l=qk(e,s,S7,C7),r=(hS(s,l,e.length),e.substr(s,l-s)),s=l):f!=null&&(s==e.length||(Ob(s,e.length),e.charCodeAt(s)!=47))&&(o=!1,l=Uf(e,RM(35),s),l==-1&&(l=e.length),r=(hS(s,l,e.length),e.substr(s,l-s)),s=l);if(!n&&s0&&kv(d,d.length-1)==58&&(i=d,s=l)),sptt(a))&&(f=a);for(!f&&(f=(Db(0,_.c.length),H(_.c[0],185))),g=new L(t.b);g.ap&&(k=0,A+=f+T,f=0),Iot(C,s,k,A),t=r.Math.max(t,k+w.a),f=r.Math.max(f,w.b),k+=w.a+T;for(S=new eo,n=new eo,D=new L(e);D.a=-1900),n>=4?ld(e,K(B(FJ,1),Gz,2,6,[vmt,MB])[s]):ld(e,K(B(FJ,1),Gz,2,6,[`BC`,`AD`])[s]);break;case 121:V1e(e,n,r);break;case 77:Pot(e,n,r);break;case 107:l=i.q.getHours(),l==0?ZS(e,24,n):ZS(e,l,n);break;case 83:hnt(e,n,i);break;case 69:d=r.q.getDay(),n==5?ld(e,K(B(FJ,1),Gz,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[d]):n==4?ld(e,K(B(FJ,1),Gz,2,6,[NB,PB,ymt,FB,bmt,xmt,IB])[d]):ld(e,K(B(FJ,1),Gz,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[d]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?ld(e,K(B(FJ,1),Gz,2,6,[`AM`,`PM`])[1]):ld(e,K(B(FJ,1),Gz,2,6,[`AM`,`PM`])[0]);break;case 104:f=i.q.getHours()%12,f==0?ZS(e,12,n):ZS(e,f,n);break;case 75:p=i.q.getHours()%12,ZS(e,p,n);break;case 72:m=i.q.getHours(),ZS(e,m,n);break;case 99:h=r.q.getDay(),n==5?ld(e,K(B(FJ,1),Gz,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[h]):n==4?ld(e,K(B(FJ,1),Gz,2,6,[NB,PB,ymt,FB,bmt,xmt,IB])[h]):n==3?ld(e,K(B(FJ,1),Gz,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[h]):ZS(e,h,1);break;case 76:g=r.q.getMonth(),n==5?ld(e,K(B(FJ,1),Gz,2,6,[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`])[g]):n==4?ld(e,K(B(FJ,1),Gz,2,6,[mmt,hmt,SB,gmt,CB,wB,TB,EB,DB,_mt,OB,kB])[g]):n==3?ld(e,K(B(FJ,1),Gz,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,CB,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`])[g]):ZS(e,g+1,n);break;case 81:_=r.q.getMonth()/3|0,n<4?ld(e,K(B(FJ,1),Gz,2,6,[`Q1`,`Q2`,`Q3`,`Q4`])[_]):ld(e,K(B(FJ,1),Gz,2,6,[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`])[_]);break;case 100:v=r.q.getDate(),ZS(e,v,n);break;case 109:u=i.q.getMinutes(),ZS(e,u,n);break;case 115:o=i.q.getSeconds(),ZS(e,o,n);break;case 122:n<4?ld(e,a.c[0]):ld(e,a.c[1]);break;case 118:ld(e,a.b);break;case 90:n<3?ld(e,J7e(a)):n==3?ld(e,o9e(a)):ld(e,s9e(a.a));break;default:return!1}return!0}function dz(e,t,n,r){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;if(eot(t),l=H(G((!t.b&&(t.b=new hm(l7,t,4,7)),t.b),0),84),d=H(G((!t.c&&(t.c=new hm(l7,t,5,8)),t.c),0),84),s=OM(l),u=OM(d),o=(!t.a&&(t.a=new Bg(d7,t,6,6)),t.a).i==0?null:H(G((!t.a&&(t.a=new Bg(d7,t,6,6)),t.a),0),166),w=H(N_(e.a,s),10),O=H(N_(e.a,u),10),T=null,k=null,V(l,193)&&(C=H(N_(e.a,l),305),V(C,12)?T=H(C,12):V(C,10)&&(w=H(C,10),T=H($h(w.j,0),12))),V(d,193)&&(D=H(N_(e.a,d),305),V(D,12)?k=H(D,12):V(D,10)&&(O=H(D,10),k=H($h(O.j,0),12))),!w||!O)throw R(new zs(`The source or the target of edge `+t+` could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN.`));for(g=new yy,NT(g,t),pE(g,(fz(),WQ),t),pE(g,(sz(),i1),null),m=H(q(r,AQ),21),w==O&&m.Fc((UF(),lQ)),T||=(S=(gw(),V0),E=null,o&&Md(H(q(w,E1),101))&&(E=new ku(o.j,o.k),Eze(E,Uy(t)),OBe(E,n),LC(u,s)&&(S=B0,fm(E,w.n))),Yct(w,E,S,r)),k||=(S=(gw(),B0),A=null,o&&Md(H(q(O,E1),101))&&(A=new ku(o.b,o.c),Eze(A,Uy(t)),OBe(A,n)),Yct(O,A,S,$_(O))),fb(g,T),hb(g,k),(T.e.c.length>1||T.g.c.length>1||k.e.c.length>1||k.g.c.length>1)&&m.Fc((UF(),iQ)),p=new Mf((!t.n&&(t.n=new Bg(g7,t,1,7)),t.n));p.e!=p.i.gc();)if(f=H(cA(p),135),!ks(Fp(eF(f,b1)))&&f.a)switch(_=iZe(f),Cf(g.b,_),H(q(_,K$),278).g){case 1:case 2:m.Fc((UF(),nQ));break;case 0:m.Fc((UF(),eQ)),pE(_,K$,(KC(),j8))}if(a=H(q(r,V$),322),v=H(q(r,g1),323),i=a==(Cw(),MZ)||v==(hA(),tNt),o&&(!o.a&&(o.a=new Tf(c7,o,5)),o.a).i!=0&&i){for(y=bN(o),h=new $o,x=iA(y,0);x.b!=x.d.c;)b=H(lx(x),8),Ih(h,new Td(b));pE(g,Skt,h)}return g}function Ppt(e,t,n,r){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=0,D=0,O,k,A,j;for(w=new eo,S=H(Xf(Fg(Mv(new ig(null,new kb(e.b,16)),new Jie),new nae)),17).a+1,T=dS(F9,jB,28,S,15,1),_=dS(F9,jB,28,S,15,1),g=0;g1)for(s=k+1;su.b.e.b*(1-v)+u.c.e.b*v));h++);if(C.gc()>0&&(A=u.a.b==0?vf(u.b.e):H(bp(u.a),8),b=fm(vf(H(C.Xb(C.gc()-1),40).e),H(C.Xb(C.gc()-1),40).f),p=fm(vf(H(C.Xb(0),40).e),H(C.Xb(0),40).f),h>=C.gc()-1&&A.b>b.b&&u.c.e.b>b.b||h<=0&&A.bu.b.e.a*(1-v)+u.c.e.a*v));h++);if(C.gc()>0&&(A=u.a.b==0?vf(u.b.e):H(bp(u.a),8),b=fm(vf(H(C.Xb(C.gc()-1),40).e),H(C.Xb(C.gc()-1),40).f),p=fm(vf(H(C.Xb(0),40).e),H(C.Xb(0),40).f),h>=C.gc()-1&&A.a>b.a&&u.c.e.a>b.a||h<=0&&A.a=z(Ip(q(e,(UR(),nFt))))&&++D):(m.f&&m.d.e.a<=z(Ip(q(e,(UR(),tFt))))&&++E,m.g&&m.c.e.a+m.c.f.a>=z(Ip(q(e,(UR(),eFt))))&&++D)}else x==0?f9e(u):x<0&&(++T[k],++_[j],O=Dpt(u,t,e,new qu(bD(E),bD(D)),n,r,new qu(bD(_[j]),bD(T[k]))),E=H(O.a,17).a,D=H(O.b,17).a)}function Fpt(e,t,n){var r=t,i,a,o,s,l=n,u,d,f,p,m,h,g,_,v,y;if(e.b&&r.j==(WR(),U5)&&l.j==(WR(),U5)&&(y=r,r=l,l=y),Jg(e.a,r)){if(Jc(H(N_(e.a,r),49),l))return 1}else hv(e.a,r,new Ao);if(Jg(e.a,l)){if(Jc(H(N_(e.a,l),49),r))return-1}else hv(e.a,l,new Ao);if(Jg(e.d,r)){if(Jc(H(N_(e.d,r),49),l))return-1}else hv(e.d,r,new Ao);if(Jg(e.d,l)){if(Jc(H(N_(e.a,l),49),r))return 1}else hv(e.d,l,new Ao);if(r.j!=l.j)return v=Id(r.j,l.j),v==-1?pI(e,l,r):pI(e,r,l),v;if(r.e.c.length!=0&&l.e.c.length!=0){if(e.b&&(v=LXe(r,l),v!=0))return v==-1?pI(e,l,r):v==1&&pI(e,r,l),v;if(a=H($h(r.e,0),18).c.i,d=H($h(l.e,0),18).c.i,a==d)return i=H(q(H($h(r.e,0),18),(fz(),UQ)),17).a,u=H(q(H($h(l.e,0),18),UQ),17).a,i>u?pI(e,r,l):pI(e,l,r),iu);for(h=e.c,g=0,_=h.length;g<_;++g){if(m=h[g],m==a)return pI(e,r,l),1;if(m==d)return pI(e,l,r),-1}}return r.g.c.length!=0&&l.g.c.length!=0?(s=H(q(r,(fz(),VQ)),10),p=H(q(l,VQ),10),e.e==(Mk(),uNt)&&s&&p&&xp(s,UQ)&&xp(p,UQ)?(i=H(q(s,UQ),17).a,u=H(q(p,UQ),17).a,i>u?pI(e,r,l):pI(e,l,r),iu)):e.b&&(v=LXe(r,l),v!=0)?(v==-1?pI(e,l,r):v==1&&pI(e,r,l),v):(o=0,f=0,xp(H($h(r.g,0),18),UQ)&&(o=H(q(H($h(r.g,0),18),UQ),17).a),xp(H($h(l.g,0),18),UQ)&&(f=H(q(H($h(r.g,0),18),UQ),17).a),s&&s==p?ks(Fp(q(H($h(r.g,0),18),XQ)))&&!ks(Fp(q(H($h(l.g,0),18),XQ)))?(pI(e,r,l),1):!ks(Fp(q(H($h(r.g,0),18),XQ)))&&ks(Fp(q(H($h(l.g,0),18),XQ)))?(pI(e,l,r),-1):(o>f?pI(e,r,l):pI(e,l,r),of)):(e.f&&(e.f._b(s)&&(o=H(e.f.xc(s),17).a),e.f._b(p)&&(f=H(e.f.xc(p),17).a)),o>f?pI(e,r,l):pI(e,l,r),of)))):r.e.c.length!=0&&l.g.c.length!=0?(pI(e,r,l),1):r.g.c.length!=0&&l.e.c.length!=0?(pI(e,l,r),-1):xp(r,(fz(),UQ))&&xp(l,UQ)?(i=H(q(r,UQ),17).a,u=H(q(l,UQ),17).a,i>u?pI(e,r,l):pI(e,l,r),iu)):(pI(e,l,r),-1)}function Ipt(e){e.gb||(e.gb=!0,e.b=ET(e,0),Lw(e.b,18),Rw(e.b,19),e.a=ET(e,1),Lw(e.a,1),Rw(e.a,2),Rw(e.a,3),Rw(e.a,4),Rw(e.a,5),e.o=ET(e,2),Lw(e.o,8),Lw(e.o,9),Rw(e.o,10),Rw(e.o,11),Rw(e.o,12),Rw(e.o,13),Rw(e.o,14),Rw(e.o,15),Rw(e.o,16),Rw(e.o,17),Rw(e.o,18),Rw(e.o,19),Rw(e.o,20),Rw(e.o,21),Rw(e.o,22),Rw(e.o,23),TC(e.o),TC(e.o),TC(e.o),TC(e.o),TC(e.o),TC(e.o),TC(e.o),TC(e.o),TC(e.o),TC(e.o),e.p=ET(e,3),Lw(e.p,2),Lw(e.p,3),Lw(e.p,4),Lw(e.p,5),Rw(e.p,6),Rw(e.p,7),TC(e.p),TC(e.p),e.q=ET(e,4),Lw(e.q,8),e.v=ET(e,5),Rw(e.v,9),TC(e.v),TC(e.v),TC(e.v),e.w=ET(e,6),Lw(e.w,2),Lw(e.w,3),Lw(e.w,4),Rw(e.w,5),e.B=ET(e,7),Rw(e.B,1),TC(e.B),TC(e.B),TC(e.B),e.Q=ET(e,8),Rw(e.Q,0),TC(e.Q),e.R=ET(e,9),Lw(e.R,1),e.S=ET(e,10),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),TC(e.S),e.T=ET(e,11),Rw(e.T,10),Rw(e.T,11),Rw(e.T,12),Rw(e.T,13),Rw(e.T,14),TC(e.T),TC(e.T),e.U=ET(e,12),Lw(e.U,2),Lw(e.U,3),Rw(e.U,4),Rw(e.U,5),Rw(e.U,6),Rw(e.U,7),TC(e.U),e.V=ET(e,13),Rw(e.V,10),e.W=ET(e,14),Lw(e.W,18),Lw(e.W,19),Lw(e.W,20),Rw(e.W,21),Rw(e.W,22),Rw(e.W,23),e.bb=ET(e,15),Lw(e.bb,10),Lw(e.bb,11),Lw(e.bb,12),Lw(e.bb,13),Lw(e.bb,14),Lw(e.bb,15),Lw(e.bb,16),Rw(e.bb,17),TC(e.bb),TC(e.bb),e.eb=ET(e,16),Lw(e.eb,2),Lw(e.eb,3),Lw(e.eb,4),Lw(e.eb,5),Lw(e.eb,6),Lw(e.eb,7),Rw(e.eb,8),Rw(e.eb,9),e.ab=ET(e,17),Lw(e.ab,0),Lw(e.ab,1),e.H=ET(e,18),Rw(e.H,0),Rw(e.H,1),Rw(e.H,2),Rw(e.H,3),Rw(e.H,4),Rw(e.H,5),TC(e.H),e.db=ET(e,19),Rw(e.db,2),e.c=DT(e,20),e.d=DT(e,21),e.e=DT(e,22),e.f=DT(e,23),e.i=DT(e,24),e.g=DT(e,25),e.j=DT(e,26),e.k=DT(e,27),e.n=DT(e,28),e.r=DT(e,29),e.s=DT(e,30),e.t=DT(e,31),e.u=DT(e,32),e.fb=DT(e,33),e.A=DT(e,34),e.C=DT(e,35),e.D=DT(e,36),e.F=DT(e,37),e.G=DT(e,38),e.I=DT(e,39),e.J=DT(e,40),e.L=DT(e,41),e.M=DT(e,42),e.N=DT(e,43),e.O=DT(e,44),e.P=DT(e,45),e.X=DT(e,46),e.Y=DT(e,47),e.Z=DT(e,48),e.$=DT(e,49),e._=DT(e,50),e.cb=DT(e,51),e.K=DT(e,52))}function Lpt(e,t,n){var r,i,a,o=new $c,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=H(q(n,(sz(),W$)),88),w,T,E,D,O,k;for(g=0,zw(o,(!t.a&&(t.a=new Bg(_7,t,10,11)),t.a));o.b!=0;)d=H(o.b==0?null:(zp(o.b!=0),zC(o,o.a.a)),27),u=ib(d),(Qu(eF(u,L$))!==Qu((Mk(),R0))||Qu(eF(u,H$))===Qu((jk(),BZ))||Qu(eF(u,H$))===Qu((jk(),zZ))||ks(Fp(eF(u,R$)))||Qu(eF(u,F$))!==Qu((Hk(),yX))||Qu(eF(u,c1))===Qu((yI(),A0))||Qu(eF(u,c1))===Qu((yI(),j0))||Qu(eF(u,l1))===Qu((TF(),u0))||Qu(eF(u,l1))===Qu((TF(),f0)))&&!ks(Fp(eF(d,I$)))&&yA(d,(fz(),UQ),bD(g++)),v=!ks(Fp(eF(d,b1))),v&&(p=(!d.a&&(d.a=new Bg(_7,d,10,11)),d.a).i!=0,h=W6e(d),m=Qu(eF(d,$$))===Qu((gD(),H8)),k=!lS(d,(pz(),l6))||rVe(Lp(eF(d,l6))),x=null,k&&m&&(p||h)&&(x=Vst(d),pE(x,W$,C),xp(x,I1)&&Hme(new _$e(z(Ip(q(x,I1)))),x),H(eF(d,_1),181).gc()!=0&&(f=x,sl(new ig(null,(!d.c&&(d.c=new Bg(v7,d,9,9)),new kb(d.c,16))),new ya(f)),Tit(d,x))),w=n,T=H(N_(e.a,ib(d)),10),T&&(w=T.e),b=Gft(e,d,w),x&&(b.e=x,x.e=b,zw(o,(!d.a&&(d.a=new Bg(_7,d,10,11)),d.a))));for(g=0,Dx(o,t,o.c.b,o.c);o.b!=0;){for(a=H(o.b==0?null:(zp(o.b!=0),zC(o,o.a.a)),27),l=new Mf((!a.b&&(a.b=new Bg(u7,a,12,3)),a.b));l.e!=l.i.gc();)s=H(cA(l),74),eot(s),(Qu(eF(t,L$))!==Qu((Mk(),R0))||Qu(eF(t,H$))===Qu((jk(),BZ))||Qu(eF(t,H$))===Qu((jk(),zZ))||ks(Fp(eF(t,R$)))||Qu(eF(t,F$))!==Qu((Hk(),yX))||Qu(eF(t,c1))===Qu((yI(),A0))||Qu(eF(t,c1))===Qu((yI(),j0))||Qu(eF(t,l1))===Qu((TF(),u0))||Qu(eF(t,l1))===Qu((TF(),f0)))&&yA(s,(fz(),UQ),bD(g++)),D=OM(H(G((!s.b&&(s.b=new hm(l7,s,4,7)),s.b),0),84)),O=OM(H(G((!s.c&&(s.c=new hm(l7,s,5,8)),s.c),0),84)),!(ks(Fp(eF(s,b1)))||ks(Fp(eF(D,b1)))||ks(Fp(eF(O,b1))))&&(_=xP(s)&&ks(Fp(eF(D,t1)))&&ks(Fp(eF(s,n1))),S=a,_||LC(O,D)?S=D:LC(D,O)&&(S=O),w=n,T=H(N_(e.a,S),10),T&&(w=T.e),y=dz(e,s,S,w),pE(y,(fz(),_kt),Qrt(e,s,t,n)));if(m=Qu(eF(a,$$))===Qu((gD(),H8)),m)for(i=new Mf((!a.a&&(a.a=new Bg(_7,a,10,11)),a.a));i.e!=i.i.gc();)r=H(cA(i),27),k=!lS(r,(pz(),l6))||rVe(Lp(eF(r,l6))),E=Qu(eF(r,$$))===Qu(H8),k&&E&&Dx(o,r,o.c.b,o.c)}}function fz(){fz=D;var e,t;WQ=new Ja(VH),_kt=new Ja(`coordinateOrigin`),Okt=new Ja(`processors`),gkt=new Zp(`compoundNode`,(sp(),!1)),jQ=new Zp(`insideConnections`,!1),Skt=new Ja(`originalBendpoints`),Ckt=new Ja(`originalDummyNodePosition`),wkt=new Ja(`originalLabelEdge`),YQ=new Ja(`representedLabels`),CQ=new Ja(`endLabels`),wQ=new Ja(`endLabel.origin`),IQ=new Zp(`labelSide`,(xj(),J8)),HQ=new Zp(`maxEdgeThickness`,0),XQ=new Zp(`reversed`,!1),JQ=new Ja(HH),zQ=new Zp(`longEdgeSource`,null),BQ=new Zp(`longEdgeTarget`,null),RQ=new Zp(`longEdgeHasLabelDummies`,!1),LQ=new Zp(`longEdgeBeforeLabelDummy`,!1),SQ=new Zp(`edgeConstraint`,(hE(),zOt)),NQ=new Ja(`inLayerLayoutUnit`),MQ=new Zp(`inLayerConstraint`,(rC(),hQ)),PQ=new Zp(`inLayerSuccessorConstraint`,new to),FQ=new Zp(`inLayerSuccessorConstraintBetweenNonDummies`,!1),KQ=new Ja(`portDummy`),bQ=new Zp(`crossingHint`,bD(0)),AQ=new Zp(`graphProperties`,(t=H(Tc(uQ),9),new Om(t,H(im(t,t.length),9),0))),OQ=new Zp(`externalPortSide`,(WR(),H5)),ykt=new Zp(`externalPortSize`,new Sc),EQ=new Ja(`externalPortReplacedDummies`),DQ=new Ja(`externalPortReplacedDummy`),TQ=new Zp(`externalPortConnections`,(e=H(Tc(W5),9),new Om(e,H(im(e,e.length),9),0))),qQ=new Zp(vht,0),mkt=new Ja(`barycenterAssociates`),r$=new Ja(`TopSideComments`),vQ=new Ja(`BottomSideComments`),hkt=new Ja(`CommentConnectionPort`),xkt=new Zp(`inputCollect`,!1),Ekt=new Zp(`outputCollect`,!1),xQ=new Zp(`cyclic`,!1),vkt=new Ja(`crossHierarchyMap`),jkt=new Ja(`targetOffset`),new Zp(`splineLabelSize`,new Sc),$Q=new Ja(`spacings`),Dkt=new Zp(`partitionConstraint`,!1),yQ=new Ja(`breakingPoint.info`),kkt=new Ja(`splines.survivingEdge`),n$=new Ja(`splines.route.start`),e$=new Ja(`splines.edgeChain`),Tkt=new Ja(`originalPortConstraints`),QQ=new Ja(`selfLoopHolder`),t$=new Ja(`splines.nsPortY`),UQ=new Ja(`modelOrder`),VQ=new Ja(`longEdgeTargetNode`),kQ=new Zp(yU,!1),ZQ=new Zp(yU,!1),bkt=new Ja(`layerConstraints.hiddenNodes`),GQ=new Ja(`layerConstraints.opposidePort`),Akt=new Ja(`targetNode.modelOrder`)}function Rpt(e,t,n,i){for(var a,o,s,l,u,d,f,p=iA(e.b,0),m,h,g;p.b!=p.d.c;)if(f=H(lx(p),40),!_m(f.c,kW))for(o=H(Ox(new ig(null,new kb(D9e(f,e),16)),SS(new _e,new ge,new Te,K(B(rY,1),cB,108,0,[(XE(),tY)]))),15),t==(WD(),T8)||t==E8?o.jd(new Qie):o.jd(new $ie),g=o.gc(),a=0;a0&&(l=H(bp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(bp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(u-h)/(r.Math.abs(l-m)/40)>50&&(h>u?ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a+i/5.3,f.e.b+f.f.b*s-i/2)):ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a+i/5.3,f.e.b+f.f.b*s+i/2)))),ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a,f.e.b+f.f.b*s))):t==E8?(d=z(Ip(q(f,(UR(),B2)))),f.e.a-i>d?ud(H(o.Xb(a),65).a,new ku(d-n,f.e.b+f.f.b*s)):H(o.Xb(a),65).a.b>0&&(l=H(bp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(bp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(u-h)/(r.Math.abs(l-m)/40)>50&&(h>u?ud(H(o.Xb(a),65).a,new ku(f.e.a-i/5.3,f.e.b+f.f.b*s-i/2)):ud(H(o.Xb(a),65).a,new ku(f.e.a-i/5.3,f.e.b+f.f.b*s+i/2)))),ud(H(o.Xb(a),65).a,new ku(f.e.a,f.e.b+f.f.b*s))):t==O8?(d=z(Ip(q(f,(UR(),z2)))),f.e.b+f.f.b+i0&&(l=H(bp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(bp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(u-h)/40)>50&&(m>l?ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s-i/2,f.e.b+i/5.3+f.f.b)):ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s+i/2,f.e.b+i/5.3+f.f.b)))),ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s,f.e.b+f.f.b))):(d=z(Ip(q(f,(UR(),B2)))),RYe(H(o.Xb(a),65),e)?ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s,H(bp(H(o.Xb(a),65).a),8).b)):f.e.b-i>d?ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s,d-n)):H(o.Xb(a),65).a.b>0&&(l=H(bp(H(o.Xb(a),65).a),8).a,m=f.e.a+f.f.a/2,u=H(bp(H(o.Xb(a),65).a),8).b,h=f.e.b+f.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(u-h)/40)>50&&(m>l?ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s-i/2,f.e.b-i/5.3)):ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s+i/2,f.e.b-i/5.3)))),ud(H(o.Xb(a),65).a,new ku(f.e.a+f.f.a*s,f.e.b)))}function pz(){pz=D;var e,t;l6=new Ja(xyt),u8=new Ja(Syt),d6=(TA(),Q),u6=new hd(K_t,d6),new $a,f6=new hd(sH,null),p6=new Ja(DG),nzt=(lM(),bg(o6,K(B(s6,1),cB,298,0,[n6]))),_6=new hd(oW,nzt),v6=new hd($U,(sp(),!1)),b6=(WD(),D8),y6=new hd(nW,b6),azt=(hO(),L8),izt=new hd(YU,azt),ozt=new hd(TG,!1),E6=(gD(),U8),T6=new hd(JU,E6),G6=new qd(12),W6=new hd(cH,G6),k6=new hd(DH,!1),A6=new hd(lW,!1),U6=new hd(AH,!1),t8=(_M(),h5),e8=new hd(OH,t8),s8=new Ja(cW),c8=new Ja(CH),l8=new Ja(TH),d8=new Ja(EH),czt=new $o,j6=new hd(Q_t,czt),g6=new hd(tvt,!1),szt=new hd(nvt,!1),new Ja(Cyt),N6=new qo,M6=new hd(avt,N6),H6=new hd(G_t,!1),new $a,vzt=new hd(wyt,1),h6=new Ja(Tyt),m6=new Ja(Eyt),y8=new hd(IH,!1),new hd(Dyt,!0),bD(0),new hd(Oyt,bD(100)),new hd(kyt,!1),bD(0),new hd(Ayt,bD(4e3)),bD(0),new hd(jyt,bD(400)),new hd(Myt,!1),new hd(OG,!1),new hd(Nyt,!0),new hd(Pyt,!1),tzt=(qO(),wBt),ezt=new hd(EG,tzt),yzt=new hd(N_t,10),bzt=new hd(P_t,10),xzt=new hd(aH,20),Szt=new hd(F_t,10),Czt=new hd(Lht,2),wzt=new hd(I_t,10),p8=new hd(L_t,0),m8=new hd(B_t,5),Tzt=new hd(R_t,1),h8=new hd(z_t,1),g8=new hd(wH,20),Ezt=new hd(V_t,10),kzt=new hd(H_t,10),f8=new Ja(U_t),Ozt=new Pxe,Dzt=new hd(ovt,Ozt),fzt=new Ja(sW),q6=!1,K6=new hd(ivt,q6),P6=new qd(5),lzt=new hd(q_t,P6),I6=(tF(),t=H(Tc(a5),9),new Om(t,H(im(t,t.length),9),0)),F6=new hd(PH,I6),hzt=(oA(),s5),mzt=new hd(Y_t,hzt),Y6=new Ja(X_t),X6=new Ja(iW),Z6=new Ja(Z_t),J6=new Ja(aW),uzt=(e=H(Tc(Y5),9),new Om(e,H(im(e,e.length),9),0)),L6=new hd(NH,uzt),dzt=rO((OI(),Q5)),V6=new hd(MH,dzt),B6=new ku(0,0),z6=new hd(GH,B6),R6=new hd(jH,!1),rzt=(KC(),j8),S6=new hd($_t,rzt),x6=new hd(kH,!1),new Ja(Fyt),bD(1),new hd(Iyt,null),Q6=new Ja(rvt),n8=new Ja(evt),_zt=(WR(),H5),o8=new hd(QU,_zt),$6=new Ja(W_t),gzt=(rP(),rO(b5)),i8=new hd(FH,gzt),r8=new hd(rW,!1),a8=new hd(J_t,!0),new $a,C8=new hd(LH,1),jzt=new hd(Lyt,null),v8=new hd(RH,150),_8=new hd(zH,1.414),b8=new hd(BH,null),x8=new hd(Ryt,1),D6=new hd(eW,!1),O6=new hd(tW,!1),C6=new hd(oH,1),w6=(a8e(),zzt),new hd(zyt,w6),pzt=!0,Azt=(hD(),a7),Mzt=a7,S8=a7}function mz(){mz=D,gDt=new su(`DIRECTION_PREPROCESSOR`,0),pDt=new su(`COMMENT_PREPROCESSOR`,1),IX=new su(`EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER`,2),DDt=new su(`INTERACTIVE_EXTERNAL_PORT_POSITIONER`,3),PDt=new su(`PARTITION_PREPROCESSOR`,4),WX=new su(`LABEL_DUMMY_INSERTER`,5),iZ=new su(`SELF_LOOP_PREPROCESSOR`,6),YX=new su(`LAYER_CONSTRAINT_PREPROCESSOR`,7),MDt=new su(`PARTITION_MIDPROCESSOR`,8),CDt=new su(`HIGH_DEGREE_NODE_LAYER_PROCESSOR`,9),kDt=new su(`NODE_PROMOTION`,10),JX=new su(`LAYER_CONSTRAINT_POSTPROCESSOR`,11),NDt=new su(`PARTITION_POSTPROCESSOR`,12),zX=new su(`HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR`,13),IDt=new su(`SEMI_INTERACTIVE_CROSSMIN_PROCESSOR`,14),FX=new su(`BREAKING_POINT_INSERTER`,15),QX=new su(`LONG_EDGE_SPLITTER`,16),FDt=new su(`PORT_SIDE_PROCESSOR`,17),HX=new su(`INVERTED_PORT_PROCESSOR`,18),eZ=new su(`PORT_LIST_SORTER`,19),RDt=new su(`SORT_BY_INPUT_ORDER_OF_MODEL`,20),jDt=new su(`NORTH_SOUTH_PORT_PREPROCESSOR`,21),cDt=new su(`BREAKING_POINT_PROCESSOR`,22),$X=new su(dgt,23),zDt=new su(fgt,24),nZ=new su(`SELF_LOOP_PORT_RESTORER`,25),LDt=new su(`SINGLE_EDGE_GRAPH_WRAPPER`,26),UX=new su(`IN_LAYER_CONSTRAINT_PROCESSOR`,27),vDt=new su(`END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR`,28),ODt=new su(`LABEL_AND_NODE_SIZE_PROCESSOR`,29),EDt=new su(`INNERMOST_NODE_MARGIN_CALCULATOR`,30),aZ=new su(`SELF_LOOP_ROUTER`,31),dDt=new su(`COMMENT_NODE_MARGIN_CALCULATOR`,32),RX=new su(`END_LABEL_PREPROCESSOR`,33),KX=new su(`LABEL_DUMMY_SWITCHER`,34),uDt=new su(`CENTER_LABEL_MANAGEMENT_PROCESSOR`,35),qX=new su(`LABEL_SIDE_SELECTOR`,36),TDt=new su(`HYPEREDGE_DUMMY_MERGER`,37),xDt=new su(`HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR`,38),XX=new su(`LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR`,39),BX=new su(`HIERARCHICAL_PORT_POSITION_PROCESSOR`,40),mDt=new su(`CONSTRAINTS_POSTPROCESSOR`,41),fDt=new su(`COMMENT_POSTPROCESSOR`,42),VX=new su(`HYPERNODE_PROCESSOR`,43),SDt=new su(`HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER`,44),ZX=new su(`LONG_EDGE_JOINER`,45),rZ=new su(`SELF_LOOP_POSTPROCESSOR`,46),lDt=new su(`BREAKING_POINT_REMOVER`,47),ADt=new su(`NORTH_SOUTH_PORT_POSTPROCESSOR`,48),wDt=new su(`HORIZONTAL_COMPACTOR`,49),GX=new su(`LABEL_DUMMY_REMOVER`,50),yDt=new su(`FINAL_SPLINE_BENDPOINTS_CALCULATOR`,51),_Dt=new su(`END_LABEL_SORTER`,52),tZ=new su(`REVERSED_EDGE_RESTORER`,53),LX=new su(`END_LABEL_POSTPROCESSOR`,54),bDt=new su(`HIERARCHICAL_NODE_RESIZER`,55),hDt=new su(`DIRECTION_POSTPROCESSOR`,56)}function zpt(){zpt=D,cAt=(vC(),VZ),sAt=new hd(xgt,cAt),xAt=new hd(Sgt,(sp(),!1)),DAt=(fx(),ukt),EAt=new hd(bU,DAt),WAt=new hd(Cgt,!1),GAt=new hd(wgt,!0),Pkt=new hd(Tgt,!1),cjt=(iC(),pNt),sjt=new hd(Egt,cjt),bD(1),gjt=new hd(Dgt,bD(7)),_jt=new hd(Ogt,!1),SAt=new hd(kgt,!1),oAt=(jk(),MOt),v$=new hd(xU,oAt),UAt=(TF(),_0),HAt=new hd(SU,UAt),NAt=(KO(),c$),MAt=new hd(Agt,NAt),bD(-1),jAt=new hd(jgt,null),bD(-1),PAt=new hd(Mgt,bD(-1)),bD(-1),FAt=new hd(Ngt,bD(4)),bD(-1),LAt=new hd(CU,bD(2)),VAt=(yI(),P0),BAt=new hd(Pgt,VAt),bD(0),zAt=new hd(Fgt,bD(0)),kAt=new hd(wU,bD(Cz)),aAt=(Cw(),NZ),_$=new hd(TU,aAt),Kkt=new hd(Igt,!1),tAt=new hd(Lgt,.1),g$=new hd(EU,!1),nAt=new hd(Rgt,null),rAt=new hd(zgt,null),bD(-1),m$=new hd(Bgt,null),bD(-1),h$=new hd(Vgt,bD(-1)),bD(0),qkt=new hd(Hgt,bD(40)),$kt=(zT(),skt),Qkt=new hd(Ugt,$kt),Ykt=dQ,Jkt=new hd(DU,Ykt),ojt=(hA(),E0),ajt=new hd(OU,ojt),XAt=new Ja(kU),w$=(LS(),JZ),KAt=new hd(AU,w$),T$=($j(),QOt),JAt=new hd(Wgt,T$),new $a,$At=new hd(Ggt,.3),tjt=new Ja(Kgt),E$=(wA(),T0),njt=new hd(jU,E$),gAt=(gT(),vNt),hAt=new hd(qgt,gAt),y$=(RE(),CNt),_At=new hd(Jgt,y$),vAt=(YE(),G0),b$=new hd(MU,vAt),x$=new hd(NU,.2),pAt=new hd(Ygt,2),fjt=new hd(Xgt,null),mjt=new hd(Zgt,10),pjt=new hd(Qgt,10),hjt=new hd($gt,20),bD(0),ljt=new hd(e_t,bD(0)),bD(0),ujt=new hd(t_t,bD(0)),bD(0),djt=new hd(n_t,bD(0)),Fkt=new hd(r_t,!1),Lkt=(nN(),XZ),u$=new hd(i_t,Lkt),Ikt=(HVe(),TOt),l$=new hd(a_t,Ikt),wAt=new hd(PU,!1),bD(0),CAt=new hd(o_t,bD(16)),bD(0),TAt=new hd(s_t,bD(5)),Ijt=(QT(),FNt),Fjt=new hd(FU,Ijt),vjt=new hd(IU,10),xjt=new hd(LU,1),k$=(XGe(),LZ),Djt=new hd(RU,k$),Cjt=new Ja(c_t),Ejt=bD(1),bD(0),Tjt=new hd(l_t,Ejt),Bjt=(YGe(),ANt),j$=new hd(zU,Bjt),Ljt=new Ja(BU),Mjt=new hd(VU,!0),Ajt=new hd(HU,2),A$=new hd(u_t,!0),fAt=(Q8e(),GZ),dAt=new hd(d_t,fAt),uAt=(PN(),EZ),lAt=new hd(f_t,uAt),Gkt=(Mk(),R0),Wkt=new hd(UU,Gkt),f$=new hd(p_t,!1),Ukt=new hd(m_t,!1),zkt=(Hk(),yX),Rkt=new hd(h_t,zkt),d$=(mD(),b0),Hkt=new hd(g_t,d$),Bkt=new hd(WU,0),Vkt=new hd(GU,0),OAt=NOt,C$=MZ,IAt=g0,RAt=g0,AAt=d0,p$=(gD(),H8),iAt=NZ,eAt=NZ,Xkt=NZ,Zkt=H8,ZAt=D0,QAt=E0,qAt=E0,YAt=E0,ejt=nNt,ijt=D0,rjt=D0,yAt=(hO(),I8),S$=I8,bAt=G0,mAt=F8,yjt=q0,bjt=K0,Sjt=q0,D$=K0,Ojt=q0,kjt=K0,wjt=IZ,O$=LZ,Vjt=q0,Hjt=K0,Rjt=q0,zjt=K0,Njt=K0,jjt=K0,Pjt=K0}function Bpt(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be=0,xe,Se,Ce,we,Te,Ee,De,Oe,ke;for(j=t,te=0,ie=j.length;te0&&(e.a[de.p]=be++)}for(Te=0,M=n,ne=0,ae=M.length;ne0;){for(de=(zp(he.b>0),H(he.a.Xb(he.c=--he.b),12)),me=0,l=new L(de.e);l.a0&&(de.j==(WR(),w5)?(e.a[de.p]=Te,++Te):(e.a[de.p]=Te+oe+ce,++ce))}Te+=ce}for(pe=new eo,g=new Cd,A=t,ee=0,re=A.length;eed.b&&(d.b=ge)):de.i.c==ye&&(ged.c&&(d.c=ge));for(jS(_,0,_.length,null),we=dS(F9,jB,28,_.length,15,1),i=dS(F9,jB,28,Te+1,15,1),y=0;y<_.length;y++)we[y]=_[y].f,i[we[y]]=1;for(o=0,b=0;b0;)T%2>0&&(a+=Oe[T+1]),T=(T-1)/2|0,++Oe[T];for(D=dS(n2,Oz,374,_.length*2,0,1),S=0;S<_.length;S++)D[2*S]=new Lv(_[S],_[S].e,_[S].b,(px(),i2)),D[2*S+1]=new Lv(_[S],_[S].b,_[S].e,r2);for(jS(D,0,D.length,null),se=0,C=0;C0&&Ny(ee.f),eF(y,jzt)!=null&&(l=H(eF(y,jzt),347),pe=l.Tg(y),Bd(y,r.Math.max(y.g,pe.a),r.Math.max(y.f,pe.b)));if(ae=H(eF(t,W6),107),h=t.g-(ae.b+ae.c),m=t.f-(ae.d+ae.a),ge.bh(`Available Child Area: (`+h+`|`+m+`)`),yA(t,f6,h/m),Kk(t,a,i.eh(re)),H(eF(t,b8),280)==mBt&&(ept(t),Bd(t,ae.b+z(Ip(eF(t,h6)))+ae.c,ae.d+z(Ip(eF(t,m6)))+ae.a)),ge.bh(`Executed layout algorithm: `+Lp(eF(t,l6))+` on node `+t.k),H(eF(t,b8),280)==a7){if(h<0||m<0)throw R(new Rs(`The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. `+t.k));for(lS(t,h6)||lS(t,m6)||ept(t),_=z(Ip(eF(t,h6))),g=z(Ip(eF(t,m6))),ge.bh(`Desired Child Area: (`+_+`|`+g+`)`),se=h/_,ce=m/g,oe=r.Math.min(se,r.Math.min(ce,z(Ip(eF(t,x8))))),yA(t,C8,oe),ge.bh(t.k+` -- Local Scale Factor (X|Y): (`+se+`|`+ce+`)`),S=H(eF(t,_6),21),o=0,s=0,oe'?`:_m(Pbt,e)?`'(?<' or '(? toIndex: `,Xmt=`, toIndex: `,Zmt=`Index: `,Qmt=`, Size: `,pV=`org.eclipse.elk.alg.common`,mV={50:1},$mt=`org.eclipse.elk.alg.common.compaction`,eht=`Scanline/EventHandler`,hV=`org.eclipse.elk.alg.common.compaction.oned`,tht=`CNode belongs to another CGroup.`,nht=`ISpacingsHandler/1`,rht=`The `,iht=` instance has been finished already.`,aht=`The direction `,oht=` is not supported by the CGraph instance.`,sht=`OneDimensionalCompactor`,cht=`OneDimensionalCompactor/lambda$0$Type`,lht=`Quadruplet`,uht=`ScanlineConstraintCalculator`,dht=`ScanlineConstraintCalculator/ConstraintsScanlineHandler`,gV=`ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type`,fht=`ScanlineConstraintCalculator/Timestamp`,pht=`ScanlineConstraintCalculator/lambda$0$Type`,_V={178:1,46:1},vV=`org.eclipse.elk.alg.common.compaction.options`,yV=`org.eclipse.elk.core.data`,bV=`org.eclipse.elk.polyomino.traversalStrategy`,xV=`org.eclipse.elk.polyomino.lowLevelSort`,SV=`org.eclipse.elk.polyomino.highLevelSort`,CV=`org.eclipse.elk.polyomino.fill`,wV={134:1},TV=`polyomino`,EV=`org.eclipse.elk.alg.common.networksimplex`,DV={183:1,3:1,4:1},mht=`org.eclipse.elk.alg.common.nodespacing`,OV=`org.eclipse.elk.alg.common.nodespacing.cellsystem`,kV=`CENTER`,AV={217:1,336:1},jV={3:1,4:1,5:1,603:1},MV=`LEFT`,NV=`RIGHT`,hht=`Vertical alignment cannot be null`,PV=`BOTTOM`,FV=`org.eclipse.elk.alg.common.nodespacing.internal`,IV=`UNDEFINED`,LV=.01,RV=`org.eclipse.elk.alg.common.nodespacing.internal.algorithm`,ght=`LabelPlacer/lambda$0$Type`,_ht=`LabelPlacer/lambda$1$Type`,vht=`portRatioOrPosition`,zV=`org.eclipse.elk.alg.common.overlaps`,yht=`DOWN`,BV=`org.eclipse.elk.alg.common.polyomino`,VV=`NORTH`,bht=`EAST`,HV=`SOUTH`,xht=`WEST`,UV=`org.eclipse.elk.alg.common.polyomino.structures`,Sht=`Direction`,Cht=`Grid is only of size `,wht=`. Requested point (`,WV=`) is out of bounds.`,GV=` Given center based coordinates were (`,KV=`org.eclipse.elk.graph.properties`,qV=`IPropertyHolder`,Tht={3:1,96:1,137:1},JV=`org.eclipse.elk.alg.common.spore`,Eht=`org.eclipse.elk.alg.common.utils`,YV={205:1},XV=`org.eclipse.elk.core`,Dht=`Connected Components Compaction`,ZV=`org.eclipse.elk.alg.disco`,QV=`org.eclipse.elk.alg.disco.graph`,$V=`org.eclipse.elk.alg.disco.options`,Oht=`CompactionStrategy`,eH=`org.eclipse.elk.disco.componentCompaction.strategy`,tH=`org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm`,nH=`org.eclipse.elk.disco.debug.discoGraph`,rH=`org.eclipse.elk.disco.debug.discoPolys`,kht=`componentCompaction`,iH=`org.eclipse.elk.disco`,aH=`org.eclipse.elk.spacing.componentComponent`,oH=`org.eclipse.elk.edge.thickness`,sH=`org.eclipse.elk.aspectRatio`,cH=`org.eclipse.elk.padding`,lH=`org.eclipse.elk.alg.disco.transform`,uH=1.5707963267948966,dH=17976931348623157e292,fH={3:1,4:1,5:1,198:1},Aht={3:1,6:1,4:1,5:1,100:1,115:1},jht=`org.eclipse.elk.alg.force`,Mht=`ComponentsProcessor`,Nht=`ComponentsProcessor/1`,Pht=`ElkGraphImporter/lambda$0$Type`,pH=`org.eclipse.elk.alg.force.graph`,Fht=`Component Layout`,Iht=`org.eclipse.elk.alg.force.model`,mH=`org.eclipse.elk.force.model`,hH=`org.eclipse.elk.force.iterations`,gH=`org.eclipse.elk.force.repulsivePower`,_H=`org.eclipse.elk.force.temperature`,vH=.001,yH=`org.eclipse.elk.force.repulsion`,bH=`org.eclipse.elk.alg.force.options`,xH=1.600000023841858,SH=`org.eclipse.elk.force`,CH=`org.eclipse.elk.priority`,wH=`org.eclipse.elk.spacing.nodeNode`,Lht=`org.eclipse.elk.spacing.edgeLabel`,TH=`org.eclipse.elk.randomSeed`,EH=`org.eclipse.elk.separateConnectedComponents`,DH=`org.eclipse.elk.interactive`,OH=`org.eclipse.elk.portConstraints`,kH=`org.eclipse.elk.edgeLabels.inline`,AH=`org.eclipse.elk.omitNodeMicroLayout`,jH=`org.eclipse.elk.nodeSize.fixedGraphSize`,MH=`org.eclipse.elk.nodeSize.options`,NH=`org.eclipse.elk.nodeSize.constraints`,PH=`org.eclipse.elk.nodeLabels.placement`,FH=`org.eclipse.elk.portLabels.placement`,IH=`org.eclipse.elk.topdownLayout`,LH=`org.eclipse.elk.topdown.scaleFactor`,RH=`org.eclipse.elk.topdown.hierarchicalNodeWidth`,zH=`org.eclipse.elk.topdown.hierarchicalNodeAspectRatio`,BH=`org.eclipse.elk.topdown.nodeType`,VH=`origin`,HH=`random`,Rht=`boundingBox.upLeft`,UH=`boundingBox.lowRight`,zht=`org.eclipse.elk.stress.fixed`,Bht=`org.eclipse.elk.stress.desiredEdgeLength`,Vht=`org.eclipse.elk.stress.dimension`,Hht=`org.eclipse.elk.stress.epsilon`,Uht=`org.eclipse.elk.stress.iterationLimit`,WH=`org.eclipse.elk.stress`,Wht=`ELK Stress`,GH=`org.eclipse.elk.nodeSize.minimum`,Ght=`org.eclipse.elk.alg.force.stress`,Kht=`Layered layout`,KH=`org.eclipse.elk.alg.layered`,qH=`org.eclipse.elk.alg.layered.compaction.components`,JH=`org.eclipse.elk.alg.layered.compaction.oned`,YH=`org.eclipse.elk.alg.layered.compaction.oned.algs`,XH=`org.eclipse.elk.alg.layered.compaction.recthull`,ZH=`org.eclipse.elk.alg.layered.components`,QH=`NONE`,qht=`MODEL_ORDER`,$H={3:1,6:1,4:1,9:1,5:1,126:1},Jht={3:1,6:1,4:1,5:1,150:1,100:1,115:1},Yht=`org.eclipse.elk.alg.layered.compound`,eU={47:1},tU=`org.eclipse.elk.alg.layered.graph`,Xht=` -> `,Zht=`Not supported by LGraph`,Qht=`Port side is undefined`,$ht={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},nU={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},egt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},tgt=`([{"' \r +`,ngt=`)]}"' \r +`,rgt=`The given string contains parts that cannot be parsed as numbers.`,rU=`org.eclipse.elk.core.math`,igt={3:1,4:1,140:1,214:1,423:1},agt={3:1,4:1,107:1,214:1,423:1},iU=`org.eclipse.elk.alg.layered.graph.transform`,ogt=`ElkGraphImporter`,sgt=`ElkGraphImporter/lambda$1$Type`,cgt=`ElkGraphImporter/lambda$2$Type`,lgt=`ElkGraphImporter/lambda$4$Type`,aU=`org.eclipse.elk.alg.layered.intermediate`,ugt=`Node margin calculation`,dgt=`ONE_SIDED_GREEDY_SWITCH`,fgt=`TWO_SIDED_GREEDY_SWITCH`,pgt=`No implementation is available for the layout processor `,oU=`IntermediateProcessorStrategy`,mgt=`Node '`,hgt=`FIRST_SEPARATE`,ggt=`LAST_SEPARATE`,_gt=`Odd port side processing`,sU=`org.eclipse.elk.alg.layered.intermediate.compaction`,cU=`org.eclipse.elk.alg.layered.intermediate.greedyswitch`,lU=`org.eclipse.elk.alg.layered.p3order.counting`,uU={230:1},dU=`org.eclipse.elk.alg.layered.intermediate.loops`,fU=`org.eclipse.elk.alg.layered.intermediate.loops.ordering`,pU=`org.eclipse.elk.alg.layered.intermediate.loops.routing`,vgt=`org.eclipse.elk.alg.layered.intermediate.preserveorder`,mU=`org.eclipse.elk.alg.layered.intermediate.wrapping`,hU=`org.eclipse.elk.alg.layered.options`,ygt=`INTERACTIVE`,bgt=`GREEDY`,gU=`DEPTH_FIRST`,_U=`EDGE_LENGTH`,vU=`SELF_LOOPS`,yU=`firstTryWithInitialOrder`,xgt=`org.eclipse.elk.layered.directionCongruency`,Sgt=`org.eclipse.elk.layered.feedbackEdges`,bU=`org.eclipse.elk.layered.interactiveReferencePoint`,Cgt=`org.eclipse.elk.layered.mergeEdges`,wgt=`org.eclipse.elk.layered.mergeHierarchyEdges`,Tgt=`org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides`,Egt=`org.eclipse.elk.layered.portSortingStrategy`,Dgt=`org.eclipse.elk.layered.thoroughness`,Ogt=`org.eclipse.elk.layered.unnecessaryBendpoints`,kgt=`org.eclipse.elk.layered.generatePositionAndLayerIds`,xU=`org.eclipse.elk.layered.cycleBreaking.strategy`,SU=`org.eclipse.elk.layered.layering.strategy`,Agt=`org.eclipse.elk.layered.layering.layerConstraint`,jgt=`org.eclipse.elk.layered.layering.layerChoiceConstraint`,Mgt=`org.eclipse.elk.layered.layering.layerId`,Ngt=`org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth`,CU=`org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor`,Pgt=`org.eclipse.elk.layered.layering.nodePromotion.strategy`,Fgt=`org.eclipse.elk.layered.layering.nodePromotion.maxIterations`,wU=`org.eclipse.elk.layered.layering.coffmanGraham.layerBound`,TU=`org.eclipse.elk.layered.crossingMinimization.strategy`,Igt=`org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder`,Lgt=`org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness`,EU=`org.eclipse.elk.layered.crossingMinimization.semiInteractive`,Rgt=`org.eclipse.elk.layered.crossingMinimization.inLayerPredOf`,zgt=`org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf`,Bgt=`org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint`,Vgt=`org.eclipse.elk.layered.crossingMinimization.positionId`,Hgt=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold`,Ugt=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.type`,DU=`org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type`,OU=`org.eclipse.elk.layered.nodePlacement.strategy`,kU=`org.eclipse.elk.layered.nodePlacement.favorStraightEdges`,AU=`org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening`,Wgt=`org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment`,Ggt=`org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening`,Kgt=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility`,jU=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default`,qgt=`org.eclipse.elk.layered.edgeRouting.selfLoopDistribution`,Jgt=`org.eclipse.elk.layered.edgeRouting.selfLoopOrdering`,MU=`org.eclipse.elk.layered.edgeRouting.splines.mode`,NU=`org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor`,Ygt=`org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth`,Xgt=`org.eclipse.elk.layered.spacing.baseValue`,Zgt=`org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers`,Qgt=`org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers`,$gt=`org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers`,e_t=`org.eclipse.elk.layered.priority.direction`,t_t=`org.eclipse.elk.layered.priority.shortness`,n_t=`org.eclipse.elk.layered.priority.straightness`,r_t=`org.eclipse.elk.layered.compaction.connectedComponents`,i_t=`org.eclipse.elk.layered.compaction.postCompaction.strategy`,a_t=`org.eclipse.elk.layered.compaction.postCompaction.constraints`,PU=`org.eclipse.elk.layered.highDegreeNodes.treatment`,o_t=`org.eclipse.elk.layered.highDegreeNodes.threshold`,s_t=`org.eclipse.elk.layered.highDegreeNodes.treeHeight`,FU=`org.eclipse.elk.layered.wrapping.strategy`,IU=`org.eclipse.elk.layered.wrapping.additionalEdgeSpacing`,LU=`org.eclipse.elk.layered.wrapping.correctionFactor`,RU=`org.eclipse.elk.layered.wrapping.cutting.strategy`,c_t=`org.eclipse.elk.layered.wrapping.cutting.cuts`,l_t=`org.eclipse.elk.layered.wrapping.cutting.msd.freedom`,zU=`org.eclipse.elk.layered.wrapping.validify.strategy`,BU=`org.eclipse.elk.layered.wrapping.validify.forbiddenIndices`,VU=`org.eclipse.elk.layered.wrapping.multiEdge.improveCuts`,HU=`org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty`,u_t=`org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges`,d_t=`org.eclipse.elk.layered.edgeLabels.sideSelection`,f_t=`org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy`,UU=`org.eclipse.elk.layered.considerModelOrder.strategy`,p_t=`org.eclipse.elk.layered.considerModelOrder.portModelOrder`,m_t=`org.eclipse.elk.layered.considerModelOrder.noModelOrder`,h_t=`org.eclipse.elk.layered.considerModelOrder.components`,g_t=`org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy`,WU=`org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence`,GU=`org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence`,KU=`layering`,__t=`layering.minWidth`,v_t=`layering.nodePromotion`,qU=`crossingMinimization`,JU=`org.eclipse.elk.hierarchyHandling`,y_t=`crossingMinimization.greedySwitch`,b_t=`nodePlacement`,x_t=`nodePlacement.bk`,S_t=`edgeRouting`,YU=`org.eclipse.elk.edgeRouting`,XU=`spacing`,C_t=`priority`,w_t=`compaction`,T_t=`compaction.postCompaction`,E_t=`Specifies whether and how post-process compaction is applied.`,D_t=`highDegreeNodes`,O_t=`wrapping`,k_t=`wrapping.cutting`,A_t=`wrapping.validify`,j_t=`wrapping.multiEdge`,M_t=`edgeLabels`,ZU=`considerModelOrder`,N_t=`org.eclipse.elk.spacing.commentComment`,P_t=`org.eclipse.elk.spacing.commentNode`,F_t=`org.eclipse.elk.spacing.edgeEdge`,I_t=`org.eclipse.elk.spacing.edgeNode`,L_t=`org.eclipse.elk.spacing.labelLabel`,R_t=`org.eclipse.elk.spacing.labelPortHorizontal`,z_t=`org.eclipse.elk.spacing.labelPortVertical`,B_t=`org.eclipse.elk.spacing.labelNode`,V_t=`org.eclipse.elk.spacing.nodeSelfLoop`,H_t=`org.eclipse.elk.spacing.portPort`,U_t=`org.eclipse.elk.spacing.individual`,W_t=`org.eclipse.elk.port.borderOffset`,G_t=`org.eclipse.elk.noLayout`,QU=`org.eclipse.elk.port.side`,$U=`org.eclipse.elk.debugMode`,K_t=`org.eclipse.elk.alignment`,eW=`org.eclipse.elk.insideSelfLoops.activate`,tW=`org.eclipse.elk.insideSelfLoops.yo`,nW=`org.eclipse.elk.direction`,q_t=`org.eclipse.elk.nodeLabels.padding`,rW=`org.eclipse.elk.portLabels.nextToPortIfPossible`,J_t=`org.eclipse.elk.portLabels.treatAsGroup`,Y_t=`org.eclipse.elk.portAlignment.default`,X_t=`org.eclipse.elk.portAlignment.north`,iW=`org.eclipse.elk.portAlignment.south`,Z_t=`org.eclipse.elk.portAlignment.west`,aW=`org.eclipse.elk.portAlignment.east`,oW=`org.eclipse.elk.contentAlignment`,Q_t=`org.eclipse.elk.junctionPoints`,$_t=`org.eclipse.elk.edgeLabels.placement`,evt=`org.eclipse.elk.port.index`,tvt=`org.eclipse.elk.commentBox`,nvt=`org.eclipse.elk.hypernode`,rvt=`org.eclipse.elk.port.anchor`,ivt=`org.eclipse.elk.partitioning.activate`,sW=`org.eclipse.elk.partitioning.partition`,cW=`org.eclipse.elk.position`,avt=`org.eclipse.elk.margins`,ovt=`org.eclipse.elk.spacing.portsSurrounding`,lW=`org.eclipse.elk.interactiveLayout`,uW=`org.eclipse.elk.core.util`,svt={3:1,4:1,5:1,601:1},cvt=`NETWORK_SIMPLEX`,lvt=`SIMPLE`,dW={106:1,47:1},fW=`org.eclipse.elk.alg.layered.p1cycles`,pW=`org.eclipse.elk.alg.layered.p2layers`,uvt={413:1,230:1},dvt={846:1,3:1,4:1},mW=`org.eclipse.elk.alg.layered.p3order`,hW=`org.eclipse.elk.alg.layered.p4nodes`,gW={3:1,4:1,5:1,854:1},_W=1e-5,vW=`org.eclipse.elk.alg.layered.p4nodes.bk`,yW=`org.eclipse.elk.alg.layered.p5edges`,bW=`org.eclipse.elk.alg.layered.p5edges.orthogonal`,xW=`org.eclipse.elk.alg.layered.p5edges.orthogonal.direction`,SW=1e-6,CW=`org.eclipse.elk.alg.layered.p5edges.splines`,fvt=.09999999999999998,wW=1e-8,TW=4.71238898038469,EW=3.141592653589793,DW=`org.eclipse.elk.alg.mrtree`,OW=.10000000149011612,kW=`SUPER_ROOT`,AW=`org.eclipse.elk.alg.mrtree.graph`,jW=-17976931348623157e292,MW=`org.eclipse.elk.alg.mrtree.intermediate`,pvt=`Processor compute fanout`,NW={3:1,6:1,4:1,5:1,534:1,100:1,115:1},mvt=`Set neighbors in level`,PW=`org.eclipse.elk.alg.mrtree.options`,hvt=`DESCENDANTS`,gvt=`org.eclipse.elk.mrtree.compaction`,_vt=`org.eclipse.elk.mrtree.edgeEndTextureLength`,vvt=`org.eclipse.elk.mrtree.treeLevel`,yvt=`org.eclipse.elk.mrtree.positionConstraint`,bvt=`org.eclipse.elk.mrtree.weighting`,xvt=`org.eclipse.elk.mrtree.edgeRoutingMode`,Svt=`org.eclipse.elk.mrtree.searchOrder`,Cvt=`Position Constraint`,FW=`org.eclipse.elk.mrtree`,wvt=`org.eclipse.elk.tree`,Tvt=`Processor arrange level`,IW=`org.eclipse.elk.alg.mrtree.p2order`,LW=`org.eclipse.elk.alg.mrtree.p4route`,Evt=`org.eclipse.elk.alg.radial`,RW=6.283185307179586,Dvt=`Before`,Ovt=5e-324,zW=`After`,kvt=`org.eclipse.elk.alg.radial.intermediate`,Avt=`COMPACTION`,jvt=`org.eclipse.elk.alg.radial.intermediate.compaction`,Mvt={3:1,4:1,5:1,100:1},Nvt=`org.eclipse.elk.alg.radial.intermediate.optimization`,Pvt=`No implementation is available for the layout option `,BW=`org.eclipse.elk.alg.radial.options`,Fvt=`org.eclipse.elk.radial.centerOnRoot`,Ivt=`org.eclipse.elk.radial.orderId`,Lvt=`org.eclipse.elk.radial.radius`,Rvt=`org.eclipse.elk.radial.rotate`,zvt=`org.eclipse.elk.radial.compactor`,Bvt=`org.eclipse.elk.radial.compactionStepSize`,Vvt=`org.eclipse.elk.radial.sorter`,Hvt=`org.eclipse.elk.radial.wedgeCriteria`,Uvt=`org.eclipse.elk.radial.optimizationCriteria`,Wvt=`org.eclipse.elk.radial.rotation.targetAngle`,VW=`org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace`,Gvt=`org.eclipse.elk.radial.rotation.outgoingEdgeAngles`,Kvt=`Compaction`,qvt=`rotation`,HW=`org.eclipse.elk.radial`,Jvt=`org.eclipse.elk.alg.radial.p1position.wedge`,UW=`org.eclipse.elk.alg.radial.sorting`,Yvt=5.497787143782138,Xvt=3.9269908169872414,WW=2.356194490192345,Zvt=`org.eclipse.elk.alg.rectpacking`,GW=`org.eclipse.elk.alg.rectpacking.intermediate`,KW=`org.eclipse.elk.alg.rectpacking.options`,qW=`org.eclipse.elk.rectpacking.trybox`,JW=`org.eclipse.elk.rectpacking.currentPosition`,YW=`org.eclipse.elk.rectpacking.desiredPosition`,XW=`org.eclipse.elk.rectpacking.inNewRow`,ZW=`org.eclipse.elk.rectpacking.widthApproximation.strategy`,QW=`org.eclipse.elk.rectpacking.widthApproximation.targetWidth`,$W=`org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal`,Qvt=`org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift`,eG=`org.eclipse.elk.rectpacking.packing.strategy`,tG=`org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation`,nG=`org.eclipse.elk.rectpacking.packing.compaction.iterations`,rG=`org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy`,iG=`widthApproximation`,aG=`Compaction Strategy`,$vt=`packing.compaction`,oG=`org.eclipse.elk.rectpacking`,sG=`org.eclipse.elk.alg.rectpacking.p1widthapproximation`,cG=`org.eclipse.elk.alg.rectpacking.p2packing`,eyt=`No Compaction`,tyt=`org.eclipse.elk.alg.rectpacking.p3whitespaceelimination`,lG=`org.eclipse.elk.alg.rectpacking.util`,uG=`No implementation available for `,dG=`org.eclipse.elk.alg.spore`,fG=`org.eclipse.elk.alg.spore.options`,pG=`org.eclipse.elk.sporeCompaction`,nyt=`org.eclipse.elk.underlyingLayoutAlgorithm`,ryt=`org.eclipse.elk.processingOrder.treeConstruction`,iyt=`org.eclipse.elk.processingOrder.spanningTreeCostFunction`,ayt=`org.eclipse.elk.processingOrder.preferredRoot`,oyt=`org.eclipse.elk.processingOrder.rootSelection`,syt=`org.eclipse.elk.structure.structureExtractionStrategy`,cyt=`org.eclipse.elk.compaction.compactionStrategy`,lyt=`org.eclipse.elk.compaction.orthogonal`,uyt=`org.eclipse.elk.overlapRemoval.maxIterations`,dyt=`org.eclipse.elk.overlapRemoval.runScanline`,fyt=`processingOrder`,pyt=`overlapRemoval`,mG=`org.eclipse.elk.sporeOverlap`,myt=`org.eclipse.elk.alg.spore.p1structure`,hyt=`org.eclipse.elk.alg.spore.p2processingorder`,hG=`org.eclipse.elk.alg.spore.p3execution`,gyt=`Topdown Layout`,_yt=`Invalid index: `,gG=`org.eclipse.elk.core.alg`,_G={341:1},vG={295:1},vyt=`Make sure its type is registered with the `,yG=` utility class.`,bG=`true`,xG=`false`,yyt=`Couldn't clone property '`,SG=.05,CG=`org.eclipse.elk.core.options`,byt=1.2999999523162842,wG=`org.eclipse.elk.box`,TG=`org.eclipse.elk.expandNodes`,EG=`org.eclipse.elk.box.packingMode`,xyt=`org.eclipse.elk.algorithm`,Syt=`org.eclipse.elk.resolvedAlgorithm`,DG=`org.eclipse.elk.bendPoints`,Cyt=`org.eclipse.elk.labelManager`,wyt=`org.eclipse.elk.scaleFactor`,Tyt=`org.eclipse.elk.childAreaWidth`,Eyt=`org.eclipse.elk.childAreaHeight`,Dyt=`org.eclipse.elk.animate`,Oyt=`org.eclipse.elk.animTimeFactor`,kyt=`org.eclipse.elk.layoutAncestors`,Ayt=`org.eclipse.elk.maxAnimTime`,jyt=`org.eclipse.elk.minAnimTime`,Myt=`org.eclipse.elk.progressBar`,OG=`org.eclipse.elk.validateGraph`,Nyt=`org.eclipse.elk.validateOptions`,Pyt=`org.eclipse.elk.zoomToFit`,Fyt=`org.eclipse.elk.font.name`,Iyt=`org.eclipse.elk.font.size`,Lyt=`org.eclipse.elk.topdown.sizeApproximator`,Ryt=`org.eclipse.elk.topdown.scaleCap`,zyt=`org.eclipse.elk.edge.type`,Byt=`partitioning`,Vyt=`nodeLabels`,kG=`portAlignment`,AG=`nodeSize`,jG=`port`,MG=`portLabels`,NG=`topdown`,Hyt=`insideSelfLoops`,PG=`org.eclipse.elk.fixed`,FG=`org.eclipse.elk.random`,Uyt={3:1,34:1,22:1,347:1},Wyt=`port must have a parent node to calculate the port side`,Gyt=`The edge needs to have exactly one edge section. Found: `,IG=`org.eclipse.elk.core.util.adapters`,LG=`org.eclipse.emf.ecore`,RG=`org.eclipse.elk.graph`,Kyt=`EMapPropertyHolder`,qyt=`ElkBendPoint`,zG=`ElkGraphElement`,Jyt=`ElkConnectableShape`,Yyt=`ElkEdge`,Xyt=`ElkEdgeSection`,Zyt=`EModelElement`,Qyt=`ENamedElement`,$yt=`ElkLabel`,ebt=`ElkNode`,tbt=`ElkPort`,nbt={94:1,93:1},BG=`org.eclipse.emf.common.notify.impl`,VG=`The feature '`,HG=`' is not a valid changeable feature`,rbt=`Expecting null`,ibt=`' is not a valid feature`,abt=`The feature ID`,obt=` is not a valid feature ID`,UG=32768,sbt={110:1,94:1,93:1,58:1,54:1,99:1},WG=`org.eclipse.emf.ecore.impl`,GG=`org.eclipse.elk.graph.impl`,KG=`Recursive containment not allowed for `,qG=`The datatype '`,JG=`' is not a valid classifier`,cbt=`The value '`,YG={195:1,3:1,4:1},XG=`The class '`,ZG=`http://www.eclipse.org/elk/ElkGraph`,lbt=`property`,QG=`value`,$G=`source`,ubt=`properties`,dbt=`identifier`,eK=`height`,tK=`width`,nK=`parent`,rK=`text`,fbt=`children`,pbt=`hierarchical`,mbt=`sources`,iK=`targets`,hbt=`sections`,aK=`bendPoints`,gbt=`outgoingShape`,_bt=`incomingShape`,vbt=`outgoingSections`,ybt=`incomingSections`,oK=`org.eclipse.emf.common.util`,bbt=`Severe implementation error in the Json to ElkGraph importer.`,sK=`id`,cK=`org.eclipse.elk.graph.json`,xbt=`Unhandled parameter types: `,Sbt=`startPoint`,Cbt=`An edge must have at least one source and one target (edge id: '`,lK=`').`,wbt=`Referenced edge section does not exist: `,Tbt=` (edge id: '`,Ebt=`target`,Dbt=`sourcePoint`,Obt=`targetPoint`,uK=`group`,dK=`name`,kbt=`connectableShape cannot be null`,Abt=`edge cannot be null`,jbt=`Passed edge is not 'simple'.`,fK=`org.eclipse.elk.graph.util`,pK=`The 'no duplicates' constraint is violated`,Mbt=`targetIndex=`,mK=`, size=`,Nbt=`sourceIndex=`,hK={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},gK={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},_K=`logging`,vK=`measureExecutionTime`,yK=`parser.parse.1`,bK=`parser.parse.2`,xK=`parser.next.1`,SK=`parser.next.2`,Pbt=`parser.next.3`,Fbt=`parser.next.4`,CK=`parser.factor.1`,Ibt=`parser.factor.2`,Lbt=`parser.factor.3`,Rbt=`parser.factor.4`,zbt=`parser.factor.5`,Bbt=`parser.factor.6`,Vbt=`parser.atom.1`,Hbt=`parser.atom.2`,Ubt=`parser.atom.3`,Wbt=`parser.atom.4`,Gbt=`parser.atom.5`,Kbt=`parser.cc.1`,wK=`parser.cc.2`,TK=`parser.cc.3`,qbt=`parser.cc.5`,Jbt=`parser.cc.6`,Ybt=`parser.cc.7`,EK=`parser.cc.8`,Xbt=`parser.ope.1`,Zbt=`parser.ope.2`,Qbt=`parser.ope.3`,DK=`parser.descape.1`,$bt=`parser.descape.2`,OK=`parser.descape.3`,ext=`parser.descape.4`,txt=`parser.descape.5`,kK=`parser.process.1`,nxt=`parser.quantifier.1`,AK=`parser.quantifier.2`,rxt=`parser.quantifier.3`,ixt=`parser.quantifier.4`,axt=`parser.quantifier.5`,oxt=`org.eclipse.emf.common.notify`,jK={424:1,686:1},sxt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},MK={378:1,152:1},NK=`index=`,PK={3:1,4:1,5:1,129:1},FK={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},IK={3:1,6:1,4:1,5:1,198:1},LK={3:1,4:1,5:1,173:1,379:1},RK=`;/?:@&=+$,`,zK=`invalid authority: `,BK=`EAnnotation`,VK=`ETypedElement`,cxt=`EStructuralFeature`,HK=`EAttribute`,UK=`EClassifier`,WK=`EEnumLiteral`,lxt=`EGenericType`,GK=`EOperation`,uxt=`EParameter`,dxt=`EReference`,fxt=`ETypeParameter`,KK=`org.eclipse.emf.ecore.util`,pxt={79:1},mxt={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},hxt=`org.eclipse.emf.ecore.util.FeatureMap$Entry`,qK=8192,JK=2048,YK=`byte`,XK=`char`,ZK=`double`,QK=`float`,$K=`int`,eq=`long`,tq=`short`,gxt=`java.lang.Object`,nq={3:1,4:1,5:1,254:1},_xt={3:1,4:1,5:1,688:1},vxt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},rq={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},iq=`mixed`,aq=`http:///org/eclipse/emf/ecore/util/ExtendedMetaData`,oq=`kind`,yxt={3:1,4:1,5:1,689:1},bxt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},sq={20:1,31:1,56:1,16:1,15:1,61:1,71:1},cq={51:1,128:1,287:1},lq={76:1,343:1},uq=`The value of type '`,dq=`' must be of type '`,fq=1352,pq=`http://www.eclipse.org/emf/2002/Ecore`,mq=-32768,hq=`constraints`,gq=`baseType`,xxt=`getEStructuralFeature`,Sxt=`getFeatureID`,_q=`feature`,Cxt=`getOperationID`,wxt=`operation`,vq=`defaultValue`,Txt=`eTypeParameters`,Ext=`isInstance`,Dxt=`getEEnumLiteral`,Oxt=`eContainingClass`,yq={57:1},kxt={3:1,4:1,5:1,124:1},Axt=`org.eclipse.emf.ecore.resource`,jxt={94:1,93:1,599:1,2034:1},bq=`org.eclipse.emf.ecore.resource.impl`,Mxt=`unspecified`,xq=`simple`,Sq=`attribute`,Nxt=`attributeWildcard`,Pxt=`element`,Fxt=`elementWildcard`,Cq=`collapse`,Ixt=`itemType`,wq=`namespace`,Tq=`##targetNamespace`,Eq=`whiteSpace`,Lxt=`wildcards`,Dq=`http://www.eclipse.org/emf/2003/XMLType`,Rxt=`##any`,Oq=`uninitialized`,kq=`The multiplicity constraint is violated`,zxt=`org.eclipse.emf.ecore.xml.type`,Bxt=`ProcessingInstruction`,Vxt=`SimpleAnyType`,Aq=`XMLTypeDocumentRoot`,jq=`org.eclipse.emf.ecore.xml.type.impl`,Mq=`INF`,Hxt=`processing`,Uxt=`ENTITIES_._base`,Wxt=`minLength`,Gxt=`ENTITY`,Nq=`NCName`,Pq=`IDREFS_._base`,Fq=`integer`,Iq=`token`,Kxt=`pattern`,qxt=`[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*`,Jxt=`\\i\\c*`,Lq=`[\\i-[:]][\\c-[:]]*`,Yxt=`nonPositiveInteger`,Rq=`maxInclusive`,Xxt=`NMTOKEN`,Zxt=`NMTOKENS_._base`,Qxt=`nonNegativeInteger`,zq=`minInclusive`,$xt=`normalizedString`,eSt=`unsignedByte`,tSt=`unsignedInt`,nSt=`18446744073709551615`,rSt=`unsignedShort`,iSt=`processingInstruction`,Bq=`org.eclipse.emf.ecore.xml.type.internal`,Vq=1114111,Hq=`Internal Error: shorthands: \\u`,Uq=`xml:isDigit`,Wq=`xml:isWord`,aSt=`xml:isSpace`,oSt=`xml:isNameChar`,sSt=`xml:isInitialNameChar`,cSt=`09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩`,lSt=`AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣`,uSt=`Private Use`,Gq=`ASSIGNED`,dSt=`\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾＀￯`,Kq=`UNASSIGNED`,qq={3:1,122:1},fSt=`org.eclipse.emf.ecore.xml.type.util`,Jq={3:1,4:1,5:1,381:1},Yq=`org.eclipse.xtext.xbase.lib`,pSt=`Cannot add elements to a Range`,Xq=`Cannot set elements in a Range`,mSt=`Cannot remove elements from a Range`,hSt=`user.agent`,X,Zq,gSt,_St=-1;r.goog=r.goog||{},r.goog.global=r.goog.global||r,Zq={},J(1,null,{},a),X.Fb=function(e){return bxe(this,e)},X.Gb=function(){return this.Rm},X.Hb=function(){return rp(this)},X.Ib=function(){var e;return Ec(ZE(this))+`@`+(e=Nw(this)>>>0,e.toString(16))},X.equals=function(e){return this.Fb(e)},X.hashCode=function(){return this.Hb()},X.toString=function(){return this.Ib()};var vSt,Qq,ySt;J(297,1,{297:1,2124:1},yYe),X.ve=function(e){var t=new yYe;return t.i=4,t.c=e>1?GFe(this,e-1):this,t},X.we=function(){return Rp(this),this.b},X.xe=function(){return Ec(this)},X.ye=function(){return Rp(this),this.k},X.ze=function(){return!!(this.i&4)},X.Ae=function(){return!!(this.i&1)},X.Ib=function(){return EC(this)},X.i=0;var bSt=1,$q=U(wz,`Object`,1),xSt=U(wz,`Class`,297);J(2096,1,Tz),U(Ez,`Optional`,2096),J(1191,2096,Tz,o),X.Fb=function(e){return e===this},X.Hb=function(){return 2040732332},X.Ib=function(){return`Optional.absent()`},X.Jb=function(e){return E_(e),ss(),SSt};var SSt;U(Ez,`Absent`,1191),J(636,1,{},ahe),U(Ez,`Joiner`,636);var CSt=Kh(Ez,`Predicate`);J(589,1,{178:1,589:1,3:1,46:1},ple),X.Mb=function(e){return kYe(this,e)},X.Lb=function(e){return kYe(this,e)},X.Fb=function(e){var t;return V(e,589)?(t=H(e,589),YP(this.a,t.a)):!1},X.Hb=function(){return jYe(this.a)+306654252},X.Ib=function(){return P5e(this.a)},U(Ez,`Predicates/AndPredicate`,589),J(419,2096,{419:1,3:1},mle),X.Fb=function(e){var t;return V(e,419)?(t=H(e,419),kD(this.a,t.a)):!1},X.Hb=function(){return 1502476572+Nw(this.a)},X.Ib=function(){return Qpt+this.a+`)`},X.Jb=function(e){return new mle(oy(e.Kb(this.a),`the Function passed to Optional.transform() must not return null.`))},U(Ez,`Present`,419),J(204,1,jz),X.Nb=function(e){qg(this,e)},X.Qb=function(){qs()},U(Mz,`UnmodifiableIterator`,204),J(2076,204,Nz),X.Qb=function(){qs()},X.Rb=function(e){throw R(new xo)},X.Wb=function(e){throw R(new xo)},U(Mz,`UnmodifiableListIterator`,2076),J(399,2076,Nz),X.Ob=function(){return this.c0},X.Pb=function(){if(this.c>=this.d)throw R(new Co);return this.Xb(this.c++)},X.Tb=function(){return this.c},X.Ub=function(){if(this.c<=0)throw R(new Co);return this.Xb(--this.c)},X.Vb=function(){return this.c-1},X.c=0,X.d=0,U(Mz,`AbstractIndexedListIterator`,399),J(713,204,jz),X.Ob=function(){return WKe(this)},X.Pb=function(){return UUe(this)},X.e=1,U(Mz,`AbstractIterator`,713),J(2084,1,{229:1}),X.Zb=function(){return this.f||=this.ac()},X.Fb=function(e){return XYe(this,e)},X.Hb=function(){return Nw(this.Zb())},X.dc=function(){return this.gc()==0},X.ec=function(){return Eg(this)},X.Ib=function(){return OO(this.Zb())},U(Mz,`AbstractMultimap`,2084),J(742,2084,Pz),X.$b=function(){eKe(this)},X._b=function(e){return uge(this,e)},X.ac=function(){return new Fc(this,this.c)},X.ic=function(e){return this.hc()},X.bc=function(){return new Pf(this,this.c)},X.jc=function(){return this.mc(this.hc())},X.kc=function(){return new ds(this)},X.lc=function(){return FM(this.c.vc().Nc(),new l,64,this.d)},X.cc=function(e){return Wx(this,e)},X.fc=function(e){return cD(this,e)},X.gc=function(){return this.d},X.mc=function(e){return iy(),new Bi(e)},X.nc=function(){return new us(this)},X.oc=function(){return FM(this.c.Cc().Nc(),new s,64,this.d)},X.pc=function(e,t){return new tS(this,e,t,null)},X.d=0,U(Mz,`AbstractMapBasedMultimap`,742),J(1696,742,Pz),X.hc=function(){return new aS(this.a)},X.jc=function(){return iy(),iy(),GJ},X.cc=function(e){return H(Wx(this,e),15)},X.fc=function(e){return H(cD(this,e),15)},X.Zb=function(){return ty(this)},X.Fb=function(e){return XYe(this,e)},X.qc=function(e){return H(Wx(this,e),15)},X.rc=function(e){return H(cD(this,e),15)},X.mc=function(e){return my(H(e,15))},X.pc=function(e,t){return DRe(this,e,H(t,15),null)},U(Mz,`AbstractListMultimap`,1696),J(748,1,Fz),X.Nb=function(e){qg(this,e)},X.Ob=function(){return this.c.Ob()||this.e.Ob()},X.Pb=function(){var e;return this.e.Ob()||(e=H(this.c.Pb(),44),this.b=e.ld(),this.a=H(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},X.Qb=function(){this.e.Qb(),H(ov(this.a),16).dc()&&this.c.Qb(),--this.d.d},U(Mz,`AbstractMapBasedMultimap/Itr`,748),J(1129,748,Fz,us),X.sc=function(e,t){return t},U(Mz,`AbstractMapBasedMultimap/1`,1129),J(1130,1,{},s),X.Kb=function(e){return H(e,16).Nc()},U(Mz,`AbstractMapBasedMultimap/1methodref$spliterator$Type`,1130),J(1131,748,Fz,ds),X.sc=function(e,t){return new Ic(e,t)},U(Mz,`AbstractMapBasedMultimap/2`,1131);var wSt=Kh(Iz,`Map`);J(2065,1,Lz),X.wc=function(e){pT(this,e)},X.yc=function(e,t,n){return wO(this,e,t,n)},X.$b=function(){this.vc().$b()},X.tc=function(e){return HA(this,e)},X._b=function(e){return!!h6e(this,e,!1)},X.uc=function(e){for(var t,n=this.vc().Kc(),r;n.Ob();)if(t=H(n.Pb(),44),r=t.md(),Qu(e)===Qu(r)||e!=null&&kD(e,r))return!0;return!1},X.Fb=function(e){var t,n,r;if(e===this)return!0;if(!V(e,85)||(r=H(e,85),this.gc()!=r.gc()))return!1;for(n=r.vc().Kc();n.Ob();)if(t=H(n.Pb(),44),!this.tc(t))return!1;return!0},X.xc=function(e){return Zu(h6e(this,e,!1))},X.Hb=function(){return aYe(this.vc())},X.dc=function(){return this.gc()==0},X.ec=function(){return new Oi(this)},X.zc=function(e,t){throw R(new Ls(`Put not supported on this map`))},X.Ac=function(e){aT(this,e)},X.Bc=function(e){return Zu(h6e(this,e,!0))},X.gc=function(){return this.vc().gc()},X.Ib=function(){return E6e(this)},X.Cc=function(){return new Pi(this)},U(Iz,`AbstractMap`,2065),J(2085,2065,Lz),X.bc=function(){return new v_e(this)},X.vc=function(){return ije(this)},X.ec=function(){return this.g||=this.bc()},X.Cc=function(){return this.i||=new Vc(this)},U(Mz,`Maps/ViewCachingAbstractMap`,2085),J(402,2085,Lz,Fc),X.xc=function(e){return AC(this,e)},X.Bc=function(e){return SXe(this,e)},X.$b=function(){this.d==this.e.c?this.e.$b():tAe(new nAe(this))},X._b=function(e){return DZe(this.d,e)},X.Ec=function(){return new F(this)},X.Dc=function(){return this.Ec()},X.Fb=function(e){return this===e||kD(this.d,e)},X.Hb=function(){return Nw(this.d)},X.ec=function(){return this.e.ec()},X.gc=function(){return this.d.gc()},X.Ib=function(){return OO(this.d)},U(Mz,`AbstractMapBasedMultimap/AsMap`,402);var eJ=Kh(wz,`Iterable`);J(31,1,Rz),X.Jc=function(e){Ax(this,e)},X.Lc=function(){return this.Oc()},X.Nc=function(){return new kb(this,0)},X.Oc=function(){return new ig(null,this.Nc())},X.Fc=function(e){throw R(new Ls(`Add not supported on this collection`))},X.Gc=function(e){return zw(this,e)},X.$b=function(){INe(this)},X.Hc=function(e){return JO(this,e,!1)},X.Ic=function(e){return WT(this,e)},X.dc=function(){return this.gc()==0},X.Mc=function(e){return JO(this,e,!0)},X.Pc=function(){return cje(this)},X.Qc=function(e){return BA(this,e)},X.Ib=function(){return ZM(this)},U(Iz,`AbstractCollection`,31);var tJ=Kh(Iz,`Set`);J(zz,31,Bz),X.Nc=function(){return new kb(this,1)},X.Fb=function(e){return o1e(this,e)},X.Hb=function(){return aYe(this)},U(Iz,`AbstractSet`,zz),J(2068,zz,Bz),U(Mz,`Sets/ImprovedAbstractSet`,2068),J(2069,2068,Bz),X.$b=function(){this.Rc().$b()},X.Hc=function(e){return D$e(this,e)},X.dc=function(){return this.Rc().dc()},X.Mc=function(e){var t;return this.Hc(e)&&V(e,44)?(t=H(e,44),this.Rc().ec().Mc(t.ld())):!1},X.gc=function(){return this.Rc().gc()},U(Mz,`Maps/EntrySet`,2069),J(1127,2069,Bz,F),X.Hc=function(e){return OZe(this.a.d.vc(),e)},X.Kc=function(){return new nAe(this.a)},X.Rc=function(){return this.a},X.Mc=function(e){var t;return OZe(this.a.d.vc(),e)?(t=H(ov(H(e,44)),44),Vx(this.a.e,t.ld()),!0):!1},X.Nc=function(){return uh(this.a.d.vc().Nc(),new Kr(this.a))},U(Mz,`AbstractMapBasedMultimap/AsMap/AsMapEntries`,1127),J(1128,1,{},Kr),X.Kb=function(e){return tVe(this.a,H(e,44))},U(Mz,`AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type`,1128),J(746,1,Fz,nAe),X.Nb=function(e){qg(this,e)},X.Pb=function(){var e=H(this.b.Pb(),44);return this.a=H(e.md(),16),tVe(this.c,e)},X.Ob=function(){return this.b.Ob()},X.Qb=function(){Nm(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},U(Mz,`AbstractMapBasedMultimap/AsMap/AsMapIterator`,746),J(542,2068,Bz,v_e),X.$b=function(){this.b.$b()},X.Hc=function(e){return this.b._b(e)},X.Jc=function(e){E_(e),this.b.wc(new $r(e))},X.dc=function(){return this.b.dc()},X.Kc=function(){return new ms(this.b.vc().Kc())},X.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},X.gc=function(){return this.b.gc()},U(Mz,`Maps/KeySet`,542),J(327,542,Bz,Pf),X.$b=function(){var e;tAe((e=this.b.vc().Kc(),new s_e(this,e)))},X.Ic=function(e){return this.b.ec().Ic(e)},X.Fb=function(e){return this===e||kD(this.b.ec(),e)},X.Hb=function(){return Nw(this.b.ec())},X.Kc=function(){var e=this.b.vc().Kc();return new s_e(this,e)},X.Mc=function(e){var t,n=0;return t=H(this.b.Bc(e),16),t&&(n=t.gc(),t.$b(),this.a.d-=n),n>0},X.Nc=function(){return this.b.ec().Nc()},U(Mz,`AbstractMapBasedMultimap/KeySet`,327),J(747,1,Fz,s_e),X.Nb=function(e){qg(this,e)},X.Ob=function(){return this.c.Ob()},X.Pb=function(){return this.a=H(this.c.Pb(),44),this.a.ld()},X.Qb=function(){var e;Nm(!!this.a),e=H(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},U(Mz,`AbstractMapBasedMultimap/KeySet/1`,747),J(503,402,{85:1,133:1},Wp),X.bc=function(){return this.Sc()},X.ec=function(){return this.Uc()},X.Sc=function(){return new $ge(this.c,this.Wc())},X.Tc=function(){return this.Wc().Tc()},X.Uc=function(){return this.b||=this.Sc()},X.Vc=function(){return this.Wc().Vc()},X.Wc=function(){return H(this.d,133)},U(Mz,`AbstractMapBasedMultimap/SortedAsMap`,503),J(446,503,Vz,Gp),X.bc=function(){return new Pc(this.a,H(H(this.d,133),139))},X.Sc=function(){return new Pc(this.a,H(H(this.d,133),139))},X.ec=function(){var e=this.b;return H(e||(this.b=new Pc(this.a,H(H(this.d,133),139))),277)},X.Uc=function(){var e=this.b;return H(e||(this.b=new Pc(this.a,H(H(this.d,133),139))),277)},X.Wc=function(){return H(H(this.d,133),139)},X.Xc=function(e){return H(H(this.d,133),139).Xc(e)},X.Yc=function(e){return H(H(this.d,133),139).Yc(e)},X.Zc=function(e,t){return new Gp(this.a,H(H(this.d,133),139).Zc(e,t))},X.$c=function(e){return H(H(this.d,133),139).$c(e)},X._c=function(e){return H(H(this.d,133),139)._c(e)},X.ad=function(e,t){return new Gp(this.a,H(H(this.d,133),139).ad(e,t))},U(Mz,`AbstractMapBasedMultimap/NavigableAsMap`,446),J(502,327,Hz,$ge),X.Nc=function(){return this.b.ec().Nc()},U(Mz,`AbstractMapBasedMultimap/SortedKeySet`,502),J(401,502,$pt,Pc),U(Mz,`AbstractMapBasedMultimap/NavigableKeySet`,401),J(551,31,Rz,tS),X.Fc=function(e){var t,n;return MO(this),n=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,n&&nm(this)),t},X.Gc=function(e){var t,n,r;return!e.dc()&&(r=(MO(this),this.d.gc()),t=this.d.Gc(e),t&&(n=this.d.gc(),this.f.d+=n-r,r==0&&nm(this)),t)},X.$b=function(){var e=(MO(this),this.d.gc());e!=0&&(this.d.$b(),this.f.d-=e,NAe(this))},X.Hc=function(e){return MO(this),this.d.Hc(e)},X.Ic=function(e){return MO(this),this.d.Ic(e)},X.Fb=function(e){return e===this||(MO(this),kD(this.d,e))},X.Hb=function(){return MO(this),Nw(this.d)},X.Kc=function(){return MO(this),new ZOe(this)},X.Mc=function(e){var t;return MO(this),t=this.d.Mc(e),t&&(--this.f.d,NAe(this)),t},X.gc=function(){return Qbe(this)},X.Nc=function(){return MO(this),this.d.Nc()},X.Ib=function(){return MO(this),OO(this.d)},U(Mz,`AbstractMapBasedMultimap/WrappedCollection`,551);var nJ=Kh(Iz,`List`);J(744,551,{20:1,31:1,16:1,15:1},Sje),X.jd=function(e){Aw(this,e)},X.Nc=function(){return MO(this),this.d.Nc()},X.bd=function(e,t){var n;MO(this),n=this.d.dc(),H(this.d,15).bd(e,t),++this.a.d,n&&nm(this)},X.cd=function(e,t){var n,r,i;return!t.dc()&&(i=(MO(this),this.d.gc()),n=H(this.d,15).cd(e,t),n&&(r=this.d.gc(),this.a.d+=r-i,i==0&&nm(this)),n)},X.Xb=function(e){return MO(this),H(this.d,15).Xb(e)},X.dd=function(e){return MO(this),H(this.d,15).dd(e)},X.ed=function(){return MO(this),new af(this)},X.fd=function(e){return MO(this),new ePe(this,e)},X.gd=function(e){var t;return MO(this),t=H(this.d,15).gd(e),--this.a.d,NAe(this),t},X.hd=function(e,t){return MO(this),H(this.d,15).hd(e,t)},X.kd=function(e,t){return MO(this),DRe(this.a,this.e,H(this.d,15).kd(e,t),this.b?this.b:this)},U(Mz,`AbstractMapBasedMultimap/WrappedList`,744),J(1126,744,{20:1,31:1,16:1,15:1,59:1},$Ce),U(Mz,`AbstractMapBasedMultimap/RandomAccessWrappedList`,1126),J(628,1,Fz,ZOe),X.Nb=function(e){qg(this,e)},X.Ob=function(){return Zv(this),this.b.Ob()},X.Pb=function(){return Zv(this),this.b.Pb()},X.Qb=function(){If(this)},U(Mz,`AbstractMapBasedMultimap/WrappedCollection/WrappedIterator`,628),J(745,628,Uz,af,ePe),X.Qb=function(){If(this)},X.Rb=function(e){var t=Qbe(this.a)==0;(Zv(this),H(this.b,128)).Rb(e),++this.a.a.d,t&&nm(this.a)},X.Sb=function(){return(Zv(this),H(this.b,128)).Sb()},X.Tb=function(){return(Zv(this),H(this.b,128)).Tb()},X.Ub=function(){return(Zv(this),H(this.b,128)).Ub()},X.Vb=function(){return(Zv(this),H(this.b,128)).Vb()},X.Wb=function(e){(Zv(this),H(this.b,128)).Wb(e)},U(Mz,`AbstractMapBasedMultimap/WrappedList/WrappedListIterator`,745),J(743,551,Hz,$we),X.Nc=function(){return MO(this),this.d.Nc()},U(Mz,`AbstractMapBasedMultimap/WrappedSortedSet`,743),J(1125,743,$pt,Wd),U(Mz,`AbstractMapBasedMultimap/WrappedNavigableSet`,1125),J(1124,551,Bz,eTe),X.Nc=function(){return MO(this),this.d.Nc()},U(Mz,`AbstractMapBasedMultimap/WrappedSet`,1124),J(1133,1,{},l),X.Kb=function(e){return Qx(H(e,44))},U(Mz,`AbstractMapBasedMultimap/lambda$1$Type`,1133),J(1132,1,{},gle),X.Kb=function(e){return new Ic(this.a,e)},U(Mz,`AbstractMapBasedMultimap/lambda$2$Type`,1132);var rJ=Kh(Iz,`Map/Entry`);J(358,1,Wz),X.Fb=function(e){var t;return V(e,44)?(t=H(e,44),X_(this.ld(),t.ld())&&X_(this.md(),t.md())):!1},X.Hb=function(){var e=this.ld(),t=this.md();return(e==null?0:Nw(e))^(t==null?0:Nw(t))},X.nd=function(e){throw R(new xo)},X.Ib=function(){return this.ld()+`=`+this.md()},U(Mz,emt,358),J(2086,31,Rz),X.$b=function(){this.od().$b()},X.Hc=function(e){var t;return V(e,44)?(t=H(e,44),JLe(this.od(),t.ld(),t.md())):!1},X.Mc=function(e){var t;return V(e,44)?(t=H(e,44),YLe(this.od(),t.ld(),t.md())):!1},X.gc=function(){return this.od().d},U(Mz,`Multimaps/Entries`,2086),J(749,2086,Rz,_le),X.Kc=function(){return this.a.kc()},X.od=function(){return this.a},X.Nc=function(){return this.a.lc()},U(Mz,`AbstractMultimap/Entries`,749),J(750,749,Bz,Tme),X.Nc=function(){return this.a.lc()},X.Fb=function(e){return SN(this,e)},X.Hb=function(){return yqe(this)},U(Mz,`AbstractMultimap/EntrySet`,750),J(751,31,Rz,vle),X.$b=function(){this.a.$b()},X.Hc=function(e){return cXe(this.a,e)},X.Kc=function(){return this.a.nc()},X.gc=function(){return this.a.d},X.Nc=function(){return this.a.oc()},U(Mz,`AbstractMultimap/Values`,751),J(2087,31,{849:1,20:1,31:1,16:1}),X.Jc=function(e){E_(e),Fv(this).Jc(new Ile(e))},X.Nc=function(){var e=Fv(this).Nc();return FM(e,new _,64|e.yd()&1296,this.a.d)},X.Fc=function(e){return Js(),!0},X.Gc=function(e){return E_(this),E_(e),V(e,552)?oRe(H(e,849)):!e.dc()&&sC(this,e.Kc())},X.Hc=function(e){var t=H(CD(ty(this.a),e),16);return(t?t.gc():0)>0},X.Fb=function(e){return att(this,e)},X.Hb=function(){return Nw(Fv(this))},X.dc=function(){return Fv(this).dc()},X.Mc=function(e){return m9e(this,e,1)>0},X.Ib=function(){return OO(Fv(this))},U(Mz,`AbstractMultiset`,2087),J(2089,2068,Bz),X.$b=function(){eKe(this.a.a)},X.Hc=function(e){var t,n;return V(e,504)?(n=H(e,425),H(n.a.md(),16).gc()<=0?!1:(t=_Ie(this.a,n.a.ld()),t==H(n.a.md(),16).gc())):!1},X.Mc=function(e){var t,n,r,i;return V(e,504)&&(n=H(e,425),t=n.a.ld(),r=H(n.a.md(),16).gc(),r!=0)?(i=this.a,h9e(i,t,r)):!1},U(Mz,`Multisets/EntrySet`,2089),J(1139,2089,Bz,yle),X.Kc=function(){return new gs(ije(ty(this.a.a)).Kc())},X.gc=function(){return ty(this.a.a).gc()},U(Mz,`AbstractMultiset/EntrySet`,1139),J(627,742,Pz),X.hc=function(){return this.pd()},X.jc=function(){return this.qd()},X.cc=function(e){return this.rd(e)},X.fc=function(e){return this.sd(e)},X.Zb=function(){return this.f||=this.ac()},X.qd=function(){return iy(),iy(),qJ},X.Fb=function(e){return XYe(this,e)},X.rd=function(e){return H(Wx(this,e),21)},X.sd=function(e){return H(cD(this,e),21)},X.mc=function(e){return iy(),new tc(H(e,21))},X.pc=function(e,t){return new eTe(this,e,H(t,21))},U(Mz,`AbstractSetMultimap`,627),J(1723,627,Pz),X.hc=function(){return new jc(this.b)},X.pd=function(){return new jc(this.b)},X.jc=function(){return ev(new jc(this.b))},X.qd=function(){return ev(new jc(this.b))},X.cc=function(e){return H(H(Wx(this,e),21),87)},X.rd=function(e){return H(H(Wx(this,e),21),87)},X.fc=function(e){return H(H(cD(this,e),21),87)},X.sd=function(e){return H(H(cD(this,e),21),87)},X.mc=function(e){return V(e,277)?ev(H(e,277)):(iy(),new PCe(H(e,87)))},X.Zb=function(){return this.f||=V(this.c,139)?new Gp(this,H(this.c,139)):V(this.c,133)?new Wp(this,H(this.c,133)):new Fc(this,this.c)},X.pc=function(e,t){return V(t,277)?new Wd(this,e,H(t,277)):new $we(this,e,H(t,87))},U(Mz,`AbstractSortedSetMultimap`,1723),J(1724,1723,Pz),X.Zb=function(){var e=this.f;return H(H(e||(this.f=V(this.c,139)?new Gp(this,H(this.c,139)):V(this.c,133)?new Wp(this,H(this.c,133)):new Fc(this,this.c)),133),139)},X.ec=function(){var e=this.i;return H(H(e||(this.i=V(this.c,139)?new Pc(this,H(this.c,139)):V(this.c,133)?new $ge(this,H(this.c,133)):new Pf(this,this.c)),87),277)},X.bc=function(){return V(this.c,139)?new Pc(this,H(this.c,139)):V(this.c,133)?new $ge(this,H(this.c,133)):new Pf(this,this.c)},U(Mz,`AbstractSortedKeySortedSetMultimap`,1724),J(2109,1,{2046:1}),X.Fb=function(e){return C3e(this,e)},X.Hb=function(){var e;return aYe((e=this.g,e||(this.g=new Yr(this))))},X.Ib=function(){var e;return E6e((e=this.f,e||(this.f=new Lf(this))))},U(Mz,`AbstractTable`,2109),J(679,zz,Bz,Yr),X.$b=function(){Ys()},X.Hc=function(e){var t,n;return V(e,479)?(t=H(e,697),n=H(CD(OMe(this.a),id(t.c.e,t.b)),85),!!n&&OZe(n.vc(),new Ic(id(t.c.c,t.a),$x(t.c,t.b,t.a)))):!1},X.Kc=function(){return SPe(this.a)},X.Mc=function(e){var t,n;return V(e,479)?(t=H(e,697),n=H(CD(OMe(this.a),id(t.c.e,t.b)),85),!!n&&kZe(n.vc(),new Ic(id(t.c.c,t.a),$x(t.c,t.b,t.a)))):!1},X.gc=function(){return Xke(this.a)},X.Nc=function(){return mRe(this.a)},U(Mz,`AbstractTable/CellSet`,679),J(2025,31,Rz,xle),X.$b=function(){Ys()},X.Hc=function(e){return P6e(this.a,e)},X.Kc=function(){return CPe(this.a)},X.gc=function(){return Xke(this.a)},X.Nc=function(){return WLe(this.a)},U(Mz,`AbstractTable/Values`,2025),J(1697,1696,Pz),U(Mz,`ArrayListMultimapGwtSerializationDependencies`,1697),J(520,1697,Pz,ic,bIe),X.hc=function(){return new aS(this.a)},X.a=0,U(Mz,`ArrayListMultimap`,520),J(678,2109,{678:1,2046:1,3:1},z9e),U(Mz,`ArrayTable`,678),J(2021,399,Nz,CCe),X.Xb=function(e){return new _E(this.a,e)},U(Mz,`ArrayTable/1`,2021),J(2022,1,{},qr),X.td=function(e){return new _E(this.a,e)},U(Mz,`ArrayTable/1methodref$getCell$Type`,2022),J(2110,1,{697:1}),X.Fb=function(e){var t;return e===this?!0:V(e,479)?(t=H(e,697),X_(id(this.c.e,this.b),id(t.c.e,t.b))&&X_(id(this.c.c,this.a),id(t.c.c,t.a))&&X_($x(this.c,this.b,this.a),$x(t.c,t.b,t.a))):!1},X.Hb=function(){return tD(K(B($q,1),Oz,1,5,[id(this.c.e,this.b),id(this.c.c,this.a),$x(this.c,this.b,this.a)]))},X.Ib=function(){return`(`+id(this.c.e,this.b)+`,`+id(this.c.c,this.a)+`)=`+$x(this.c,this.b,this.a)},U(Mz,`Tables/AbstractCell`,2110),J(479,2110,{479:1,697:1},_E),X.a=0,X.b=0,X.d=0,U(Mz,`ArrayTable/2`,479),J(2024,1,{},Jr),X.td=function(e){return xUe(this.a,e)},U(Mz,`ArrayTable/2methodref$getValue$Type`,2024),J(2023,399,Nz,wCe),X.Xb=function(e){return xUe(this.a,e)},U(Mz,`ArrayTable/3`,2023),J(2077,2065,Lz),X.$b=function(){tAe(this.kc())},X.vc=function(){return new jle(this)},X.lc=function(){return new Gv(this.kc(),this.gc())},U(Mz,`Maps/IteratorBasedAbstractMap`,2077),J(842,2077,Lz),X.$b=function(){throw R(new xo)},X._b=function(e){return dge(this.c,e)},X.kc=function(){return new TCe(this,this.c.b.c.gc())},X.lc=function(){return Yh(this.c.b.c.gc(),16,new hle(this))},X.xc=function(e){var t=H(Cm(this.c,e),17);return t?this.vd(t.a):null},X.dc=function(){return this.c.b.c.dc()},X.ec=function(){return oje(this.c)},X.zc=function(e,t){var n=H(Cm(this.c,e),17);if(!n)throw R(new Ps(this.ud()+` `+e+` not in `+oje(this.c)));return this.wd(n.a,t)},X.Bc=function(e){throw R(new xo)},X.gc=function(){return this.c.b.c.gc()},U(Mz,`ArrayTable/ArrayMap`,842),J(2020,1,{},hle),X.td=function(e){return jMe(this.a,e)},U(Mz,`ArrayTable/ArrayMap/0methodref$getEntry$Type`,2020),J(2018,358,Wz,e_e),X.ld=function(){return rwe(this.a,this.b)},X.md=function(){return this.a.vd(this.b)},X.nd=function(e){return this.a.wd(this.b,e)},X.b=0,U(Mz,`ArrayTable/ArrayMap/1`,2018),J(2019,399,Nz,TCe),X.Xb=function(e){return jMe(this.a,e)},U(Mz,`ArrayTable/ArrayMap/2`,2019),J(2017,842,Lz,Vje),X.ud=function(){return`Column`},X.vd=function(e){return $x(this.b,this.a,e)},X.wd=function(e,t){return tYe(this.b,this.a,e,t)},X.a=0,U(Mz,`ArrayTable/Row`,2017),J(843,842,Lz,Lf),X.vd=function(e){return new Vje(this.a,e)},X.zc=function(e,t){return H(t,85),she()},X.wd=function(e,t){return H(t,85),che()},X.ud=function(){return`Row`},U(Mz,`ArrayTable/RowMap`,843),J(1157,1,qz,t_e),X.Ad=function(e){return!!(this.a.yd()&-262&e)},X.yd=function(){return this.a.yd()&-262},X.zd=function(){return this.a.zd()},X.Nb=function(e){this.a.Nb(new r_e(e,this.b))},X.Bd=function(e){return this.a.Bd(new n_e(e,this.b))},U(Mz,`CollectSpliterators/1`,1157),J(1158,1,Jz,n_e),X.Cd=function(e){this.a.Cd(this.b.Kb(e))},U(Mz,`CollectSpliterators/1/lambda$0$Type`,1158),J(1159,1,Jz,r_e),X.Cd=function(e){this.a.Cd(this.b.Kb(e))},U(Mz,`CollectSpliterators/1/lambda$1$Type`,1159),J(1154,1,qz,bm),X.Ad=function(e){return!!((16464|this.b)&e)},X.yd=function(){return 16464|this.b},X.zd=function(){return this.a.zd()},X.Nb=function(e){this.a.Qe(new a_e(e,this.c))},X.Bd=function(e){return this.a.Re(new i_e(e,this.c))},X.b=0,U(Mz,`CollectSpliterators/1WithCharacteristics`,1154),J(1155,1,Yz,i_e),X.Dd=function(e){this.a.Cd(this.b.td(e))},U(Mz,`CollectSpliterators/1WithCharacteristics/lambda$0$Type`,1155),J(1156,1,Yz,a_e),X.Dd=function(e){this.a.Cd(this.b.td(e))},U(Mz,`CollectSpliterators/1WithCharacteristics/lambda$1$Type`,1156),J(1150,1,qz),X.Ad=function(e){return(this.a&e)!=0},X.yd=function(){return this.a},X.zd=function(){return this.e&&(this.b=pSe(this.b,this.e.zd())),pSe(this.b,0)},X.Nb=function(e){this.e&&=(this.e.Nb(e),null),this.c.Nb(new o_e(this,e)),this.b=0},X.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return rd(this.b,Xz)&&(this.b=dO(this.b,1)),!0;if(this.e=null,!this.c.Bd(new Sle(this)))return!1}},X.a=0,X.b=0,U(Mz,`CollectSpliterators/FlatMapSpliterator`,1150),J(1152,1,Jz,Sle),X.Cd=function(e){gEe(this.a,e)},U(Mz,`CollectSpliterators/FlatMapSpliterator/lambda$0$Type`,1152),J(1153,1,Jz,o_e),X.Cd=function(e){RNe(this.a,this.b,e)},U(Mz,`CollectSpliterators/FlatMapSpliterator/lambda$1$Type`,1153),J(1151,1150,qz,wRe),U(Mz,`CollectSpliterators/FlatMapSpliteratorOfObject`,1151),J(253,1,nmt),X.Fd=function(e){return this.Ed(H(e,253))},X.Ed=function(e){var t;return e==(Cme(),aJ)?1:e==(cs(),iJ)?-1:(t=(kh(),iT(this.a,e.a)),t==0?V(this,526)==V(e,526)?0:V(this,526)?1:-1:t)},X.Id=function(){return this.a},X.Fb=function(e){return j2e(this,e)},U(Mz,`Cut`,253),J(1823,253,nmt,ls),X.Ed=function(e){return e==this?0:1},X.Gd=function(e){throw R(new mo)},X.Hd=function(e){e.a+=`+∞)`},X.Id=function(){throw R(new Fs(rmt))},X.Hb=function(){return el(),n1e(this)},X.Jd=function(e){return!1},X.Ib=function(){return`+∞`};var iJ;U(Mz,`Cut/AboveAll`,1823),J(526,253,{253:1,526:1,3:1,34:1},jCe),X.Gd=function(e){cd((e.a+=`(`,e),this.a)},X.Hd=function(e){W_(cd(e,this.a),93)},X.Hb=function(){return~Nw(this.a)},X.Jd=function(e){return kh(),iT(this.a,e)<0},X.Ib=function(){return`/`+this.a+`\\`},U(Mz,`Cut/AboveValue`,526),J(1822,253,nmt,wme),X.Ed=function(e){return e==this?0:-1},X.Gd=function(e){e.a+=`(-∞`},X.Hd=function(e){throw R(new mo)},X.Id=function(){throw R(new Fs(rmt))},X.Hb=function(){return el(),n1e(this)},X.Jd=function(e){return!0},X.Ib=function(){return`-∞`};var aJ;U(Mz,`Cut/BelowAll`,1822),J(1824,253,nmt,MCe),X.Gd=function(e){cd((e.a+=`[`,e),this.a)},X.Hd=function(e){W_(cd(e,this.a),41)},X.Hb=function(){return Nw(this.a)},X.Jd=function(e){return kh(),iT(this.a,e)<=0},X.Ib=function(){return`\\`+this.a+`/`},U(Mz,`Cut/BelowValue`,1824),J(547,1,Zz),X.Jc=function(e){Ax(this,e)},X.Ib=function(){return uQe(H(oy(this,`use Optional.orNull() instead of Optional.or(null)`),20).Kc())},U(Mz,`FluentIterable`,547),J(442,547,Zz,Ed),X.Kc=function(){return new Mg(Vf(this.a.Kc(),new f))},U(Mz,`FluentIterable/2`,442),J(1059,547,Zz,Dd),X.Kc=function(){return Xg(this)},U(Mz,`FluentIterable/3`,1059),J(724,399,Nz,Rf),X.Xb=function(e){return this.a[e].Kc()},U(Mz,`FluentIterable/3/1`,724),J(2070,1,{}),X.Ib=function(){return OO(this.Kd().b)},U(Mz,`ForwardingObject`,2070),J(2071,2070,imt),X.Kd=function(){return this.Ld()},X.Jc=function(e){Ax(this,e)},X.Lc=function(){return this.Oc()},X.Nc=function(){return new kb(this,0)},X.Oc=function(){return new ig(null,this.Nc())},X.Fc=function(e){return this.Ld(),vge()},X.Gc=function(e){return this.Ld(),yge()},X.$b=function(){this.Ld(),bge()},X.Hc=function(e){return this.Ld().Hc(e)},X.Ic=function(e){return this.Ld().Ic(e)},X.dc=function(){return this.Ld().b.dc()},X.Kc=function(){return this.Ld().Kc()},X.Mc=function(e){return this.Ld(),xge()},X.gc=function(){return this.Ld().b.gc()},X.Pc=function(){return this.Ld().Pc()},X.Qc=function(e){return this.Ld().Qc(e)},U(Mz,`ForwardingCollection`,2071),J(2078,31,amt),X.Kc=function(){return this.Od()},X.Fc=function(e){throw R(new xo)},X.Gc=function(e){throw R(new xo)},X.Md=function(){return this.c||=this.Nd()},X.$b=function(){throw R(new xo)},X.Hc=function(e){return e!=null&&JO(this,e,!1)},X.Nd=function(){switch(this.gc()){case 0:return O_(),O_(),oJ;case 1:return O_(),new Qh(E_(this.Od().Pb()));default:return new Uje(this,this.Pc())}},X.Mc=function(e){throw R(new xo)},U(Mz,`ImmutableCollection`,2078),J(727,2078,amt,Ope),X.Kc=function(){return OS(this.a.Kc())},X.Hc=function(e){return e!=null&&this.a.Hc(e)},X.Ic=function(e){return this.a.Ic(e)},X.dc=function(){return this.a.dc()},X.Od=function(){return OS(this.a.Kc())},X.gc=function(){return this.a.gc()},X.Pc=function(){return this.a.Pc()},X.Qc=function(e){return this.a.Qc(e)},X.Ib=function(){return OO(this.a)},U(Mz,`ForwardingImmutableCollection`,727),J(307,2078,Qz),X.Kc=function(){return this.Od()},X.ed=function(){return this.Pd(0)},X.fd=function(e){return this.Pd(e)},X.jd=function(e){Aw(this,e)},X.Nc=function(){return new kb(this,16)},X.kd=function(e,t){return this.Qd(e,t)},X.bd=function(e,t){throw R(new xo)},X.cd=function(e,t){throw R(new xo)},X.Md=function(){return this},X.Fb=function(e){return QP(this,e)},X.Hb=function(){return xJe(this)},X.dd=function(e){return e==null?-1:VA(this,e)},X.Od=function(){return this.Pd(0)},X.Pd=function(e){return gp(this,e)},X.gd=function(e){throw R(new xo)},X.hd=function(e,t){throw R(new xo)},X.Qd=function(e,t){var n;return yD((n=new Bc(this),new yb(n,e,t)))};var oJ;U(Mz,`ImmutableList`,307),J(2105,307,Qz),X.Kc=function(){return OS(this.Rd().Kc())},X.kd=function(e,t){return yD(this.Rd().kd(e,t))},X.Hc=function(e){return e!=null&&this.Rd().Hc(e)},X.Ic=function(e){return this.Rd().Ic(e)},X.Fb=function(e){return kD(this.Rd(),e)},X.Xb=function(e){return id(this,e)},X.Hb=function(){return Nw(this.Rd())},X.dd=function(e){return this.Rd().dd(e)},X.dc=function(){return this.Rd().dc()},X.Od=function(){return OS(this.Rd().Kc())},X.gc=function(){return this.Rd().gc()},X.Qd=function(e,t){return yD(this.Rd().kd(e,t))},X.Pc=function(){return this.Rd().Qc(dS($q,Oz,1,this.Rd().gc(),5,1))},X.Qc=function(e){return this.Rd().Qc(e)},X.Ib=function(){return OO(this.Rd())},U(Mz,`ForwardingImmutableList`,2105),J(729,1,eB),X.vc=function(){return Dg(this)},X.wc=function(e){pT(this,e)},X.ec=function(){return oje(this)},X.yc=function(e,t,n){return wO(this,e,t,n)},X.Cc=function(){return this.Vd()},X.$b=function(){throw R(new xo)},X._b=function(e){return this.xc(e)!=null},X.uc=function(e){return this.Vd().Hc(e)},X.Td=function(){return new lo(this)},X.Ud=function(){return new uo(this)},X.Fb=function(e){return fXe(this,e)},X.Hb=function(){return Dg(this).Hb()},X.dc=function(){return this.gc()==0},X.zc=function(e,t){return ohe()},X.Bc=function(e){throw R(new xo)},X.Ib=function(){return J8e(this)},X.Vd=function(){return this.e?this.e:this.e=this.Ud()},X.c=null,X.d=null,X.e=null;var sJ;U(Mz,`ImmutableMap`,729),J(730,729,eB),X._b=function(e){return dge(this,e)},X.uc=function(e){return qc(this.b,e)},X.Sd=function(){return SZe(new ble(this))},X.Td=function(){return SZe(gNe(this.b))},X.Ud=function(){return Am(),new Ope(vv(this.b))},X.Fb=function(e){return S_e(this.b,e)},X.xc=function(e){return Cm(this,e)},X.Hb=function(){return Nw(this.b.c)},X.dc=function(){return this.b.c.dc()},X.gc=function(){return this.b.c.gc()},X.Ib=function(){return OO(this.b.c)},U(Mz,`ForwardingImmutableMap`,730),J(2072,2071,omt),X.Kd=function(){return this.Wd()},X.Ld=function(){return this.Wd()},X.Nc=function(){return new kb(this,1)},X.Fb=function(e){return e===this||this.Wd().Fb(e)},X.Hb=function(){return this.Wd().Hb()},U(Mz,`ForwardingSet`,2072),J(1085,2072,omt,ble),X.Kd=function(){return yv(this.a.b)},X.Ld=function(){return yv(this.a.b)},X.Hc=function(e){if(V(e,44)&&H(e,44).ld()==null)return!1;try{return x_e(yv(this.a.b),e)}catch(e){if(e=GT(e),V(e,212))return!1;throw R(e)}},X.Wd=function(){return yv(this.a.b)},X.Qc=function(e){var t=BPe(yv(this.a.b),e);return yv(this.a.b).b.gc()=0?`+`:``)+(n/60|0),t=kxe(r.Math.abs(n)%60),(S8e(),uCt)[this.q.getDay()]+` `+dCt[this.q.getMonth()]+` `+kxe(this.q.getDate())+` `+kxe(this.q.getHours())+`:`+kxe(this.q.getMinutes())+`:`+kxe(this.q.getSeconds())+` GMT`+e+t+` `+this.q.getFullYear()};var mJ=U(Iz,`Date`,206);J(2015,206,Emt,i3e),X.a=!1,X.b=0,X.c=0,X.d=0,X.e=0,X.f=0,X.g=!1,X.i=0,X.j=0,X.k=0,X.n=0,X.o=0,X.p=0,U(`com.google.gwt.i18n.shared.impl`,`DateRecord`,2015),J(2064,1,{}),X.pe=function(){return null},X.qe=function(){return null},X.re=function(){return null},X.se=function(){return null},X.te=function(){return null},U(LB,`JSONValue`,2064),J(221,2064,{221:1},ai,ni),X.Fb=function(e){return V(e,221)?Mb(this.a,H(e,221).a):!1},X.oe=function(){return vpe},X.Hb=function(){return wPe(this.a)},X.pe=function(){return this},X.Ib=function(){var e,t,n=new qf(`[`);for(t=0,e=this.a.length;t0&&(n.a+=`,`),cd(n,lC(this,t));return n.a+=`]`,n.a},U(LB,`JSONArray`,221),J(493,2064,{493:1},zle),X.oe=function(){return ype},X.qe=function(){return this},X.Ib=function(){return sp(),``+this.a},X.a=!1;var hJ,RSt;U(LB,`JSONBoolean`,493),J(997,63,mB,Nme),U(LB,`JSONException`,997),J(1036,2064,{},T),X.oe=function(){return bpe},X.Ib=function(){return Az};var gJ;U(LB,`JSONNull`,1036),J(263,2064,{263:1},ri),X.Fb=function(e){return V(e,263)?this.a==H(e,263).a:!1},X.oe=function(){return gpe},X.Hb=function(){return vd(this.a)},X.re=function(){return this},X.Ib=function(){return this.a+``},X.a=0,U(LB,`JSONNumber`,263),J(190,2064,{190:1},bs,ii),X.Fb=function(e){return V(e,190)?Mb(this.a,H(e,190).a):!1},X.oe=function(){return _pe},X.Hb=function(){return wPe(this.a)},X.se=function(){return this},X.Ib=function(){var e,t,n,r,i,a,o=new qf(`{`);for(e=!0,a=bqe(this,dS(FJ,Gz,2,0,6,1)),n=a,r=0,i=n.length;r=0?`:`+this.c:``)+`)`},X.c=0;var YSt=U(wz,`StackTraceElement`,319);ySt={3:1,484:1,34:1,2:1};var FJ=U(wz,fmt,2);J(111,427,{484:1},Xs,Zs,Kf),U(wz,`StringBuffer`,111),J(104,427,{484:1},Qs,$s,qf),U(wz,`StringBuilder`,104),J(702,77,Omt,uhe),U(wz,`StringIndexOutOfBoundsException`,702),J(2145,1,{});var XSt;J(48,63,{3:1,103:1,63:1,82:1,48:1},xo,Ls),U(wz,`UnsupportedOperationException`,48),J(247,242,{3:1,34:1,242:1,247:1},zD,kge),X.Fd=function(e){return Jst(this,H(e,247))},X.ue=function(){return cN(sR(this))},X.Fb=function(e){var t;return this===e?!0:V(e,247)?(t=H(e,247),this.e==t.e&&Jst(this,t)==0):!1},X.Hb=function(){var e;return this.b==0?this.a<54?(e=kT(this.f),this.b=Tg(Nb(e,-1)),this.b=33*this.b+Tg(Nb(Ag(e,32),-1)),this.b=17*this.b+Vy(this.e),this.b):(this.b=17*nZe(this.c)+Vy(this.e),this.b):this.b},X.Ib=function(){return sR(this)},X.a=0,X.b=0,X.d=0,X.e=0,X.f=0;var ZSt,IJ,QSt,$St,LJ,eCt,tCt,nCt,rCt=U(`java.math`,`BigDecimal`,247);J(92,242,{3:1,34:1,242:1,92:1},Sx,lLe,c_,v1e,Kd),X.Fd=function(e){return Q$e(this,H(e,92))},X.ue=function(){return cN(az(this,0))},X.Fb=function(e){return HO(this,e)},X.Hb=function(){return nZe(this)},X.Ib=function(){return az(this,0)},X.b=-2,X.c=0,X.d=0,X.e=0;var iCt,RJ,aCt,oCt,zJ,BJ,VJ=U(`java.math`,`BigInteger`,92),sCt,cCt,HJ,UJ;J(498,2065,Lz),X.$b=function(){Qg(this)},X._b=function(e){return Jg(this,e)},X.uc=function(e){return pXe(this,e,this.i)||pXe(this,e,this.f)},X.vc=function(){return new ki(this)},X.xc=function(e){return N_(this,e)},X.zc=function(e,t){return hv(this,e,t)},X.Bc=function(e){return Yx(this,e)},X.gc=function(){return Yc(this)},X.g=0,U(Iz,`AbstractHashMap`,498),J(267,zz,Bz,ki),X.$b=function(){this.a.$b()},X.Hc=function(e){return sRe(this,e)},X.Kc=function(){return new yT(this.a)},X.Mc=function(e){var t;return sRe(this,e)?(t=H(e,44).ld(),this.a.Bc(t),!0):!1},X.gc=function(){return this.a.gc()},U(Iz,`AbstractHashMap/EntrySet`,267),J(268,1,Fz,yT),X.Nb=function(e){qg(this,e)},X.Pb=function(){return Dw(this)},X.Ob=function(){return this.b},X.Qb=function(){JUe(this)},X.b=!1,X.d=0,U(Iz,`AbstractHashMap/EntrySetIterator`,268),J(426,1,Fz,Wi),X.Nb=function(e){qg(this,e)},X.Ob=function(){return rve(this)},X.Pb=function(){return QNe(this)},X.Qb=function(){K_(this)},X.b=0,X.c=-1,U(Iz,`AbstractList/IteratorImpl`,426),J(98,426,Uz,Hb),X.Qb=function(){K_(this)},X.Rb=function(e){tm(this,e)},X.Sb=function(){return this.b>0},X.Tb=function(){return this.b},X.Ub=function(){return zp(this.b>0),this.a.Xb(this.c=--this.b)},X.Vb=function(){return this.b-1},X.Wb=function(e){Bp(this.c!=-1),this.a.hd(this.c,e)},U(Iz,`AbstractList/ListIteratorImpl`,98),J(244,56,lB,yb),X.bd=function(e,t){Eb(e,this.b),this.c.bd(this.a+e,t),++this.b},X.Xb=function(e){return Db(e,this.b),this.c.Xb(this.a+e)},X.gd=function(e){var t;return Db(e,this.b),t=this.c.gd(this.a+e),--this.b,t},X.hd=function(e,t){return Db(e,this.b),this.c.hd(this.a+e,t)},X.gc=function(){return this.b},X.a=0,X.b=0,U(Iz,`AbstractList/SubList`,244),J(266,zz,Bz,Oi),X.$b=function(){this.a.$b()},X.Hc=function(e){return this.a._b(e)},X.Kc=function(){return new Ni(this.a.vc().Kc())},X.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},X.gc=function(){return this.a.gc()},U(Iz,`AbstractMap/1`,266),J(541,1,Fz,Ni),X.Nb=function(e){qg(this,e)},X.Ob=function(){return this.a.Ob()},X.Pb=function(){return H(this.a.Pb(),44).ld()},X.Qb=function(){this.a.Qb()},U(Iz,`AbstractMap/1/1`,541),J(231,31,Rz,Pi),X.$b=function(){this.a.$b()},X.Hc=function(e){return this.a.uc(e)},X.Kc=function(){return new Fi(this.a.vc().Kc())},X.gc=function(){return this.a.gc()},U(Iz,`AbstractMap/2`,231),J(301,1,Fz,Fi),X.Nb=function(e){qg(this,e)},X.Ob=function(){return this.a.Ob()},X.Pb=function(){return H(this.a.Pb(),44).md()},X.Qb=function(){this.a.Qb()},U(Iz,`AbstractMap/2/1`,301),J(494,1,{494:1,44:1}),X.Fb=function(e){var t;return V(e,44)?(t=H(e,44),xv(this.d,t.ld())&&xv(this.e,t.md())):!1},X.ld=function(){return this.d},X.md=function(){return this.e},X.Hb=function(){return nf(this.d)^nf(this.e)},X.nd=function(e){return ETe(this,e)},X.Ib=function(){return this.d+`=`+this.e},U(Iz,`AbstractMap/AbstractEntry`,494),J(397,494,{494:1,397:1,44:1},Wl),U(Iz,`AbstractMap/SimpleEntry`,397),J(2082,1,Nmt),X.Fb=function(e){var t;return V(e,44)?(t=H(e,44),xv(this.ld(),t.ld())&&xv(this.md(),t.md())):!1},X.Hb=function(){return nf(this.ld())^nf(this.md())},X.Ib=function(){return this.ld()+`=`+this.md()},U(Iz,emt,2082),J(2090,2065,Vz),X.Xc=function(e){return fge(this.Ee(e))},X.tc=function(e){return eVe(this,e)},X._b=function(e){return em(this,e)},X.vc=function(){return new Ri(this)},X.Tc=function(){return qje(this.Ge())},X.Yc=function(e){return fge(this.He(e))},X.xc=function(e){var t=e;return Zu(this.Fe(t))},X.$c=function(e){return fge(this.Ie(e))},X.ec=function(){return new Ii(this)},X.Vc=function(){return qje(this.Je())},X._c=function(e){return fge(this.Ke(e))},U(Iz,`AbstractNavigableMap`,2090),J(629,zz,Bz,Ri),X.Hc=function(e){return V(e,44)&&eVe(this.b,H(e,44))},X.Kc=function(){return this.b.De()},X.Mc=function(e){var t;return V(e,44)?(t=H(e,44),this.b.Le(t)):!1},X.gc=function(){return this.b.gc()},U(Iz,`AbstractNavigableMap/EntrySet`,629),J(1146,zz,$pt,Ii),X.Nc=function(){return new pve(this)},X.$b=function(){this.a.$b()},X.Hc=function(e){return em(this.a,e)},X.Kc=function(){return new Li(this.a.vc().b.De())},X.Mc=function(e){return em(this.a,e)?(this.a.Bc(e),!0):!1},X.gc=function(){return this.a.gc()},U(Iz,`AbstractNavigableMap/NavigableKeySet`,1146),J(1147,1,Fz,Li),X.Nb=function(e){qg(this,e)},X.Ob=function(){return rve(this.a.a)},X.Pb=function(){return uwe(this.a).ld()},X.Qb=function(){VEe(this.a)},U(Iz,`AbstractNavigableMap/NavigableKeySet/1`,1147),J(2103,31,Rz),X.Fc=function(e){return vh(zM(this,e),tV),!0},X.Gc=function(e){return sv(e),_h(e!=this,`Can't add a queue to itself`),zw(this,e)},X.$b=function(){for(;cWe(this)!=null;);},U(Iz,`AbstractQueue`,2103),J(310,31,{4:1,20:1,31:1,16:1},jf,eRe),X.Fc=function(e){return kRe(this,e),!0},X.$b=function(){Pze(this)},X.Hc=function(e){return UJe(new Ov(this),e)},X.dc=function(){return Ws(this)},X.Kc=function(){return new Ov(this)},X.Mc=function(e){return PFe(new Ov(this),e)},X.gc=function(){return this.c-this.b&this.a.length-1},X.Nc=function(){return new kb(this,272)},X.Qc=function(e){var t=this.c-this.b&this.a.length-1;return e.lengtht&&P_(e,t,null),e},X.b=0,X.c=0,U(Iz,`ArrayDeque`,310),J(459,1,Fz,Ov),X.Nb=function(e){qg(this,e)},X.Ob=function(){return this.a!=this.b},X.Pb=function(){return lD(this)},X.Qb=function(){$Ge(this)},X.a=0,X.b=0,X.c=-1,U(Iz,`ArrayDeque/IteratorImpl`,459),J(13,56,Pmt,to,aS,Dm),X.bd=function(e,t){yg(this,e,t)},X.Fc=function(e){return Cf(this,e)},X.cd=function(e,t){return $E(this,e,t)},X.Gc=function(e){return qT(this,e)},X.$b=function(){Eo(this.c,0)},X.Hc=function(e){return HS(this,e,0)!=-1},X.Jc=function(e){RC(this,e)},X.Xb=function(e){return $h(this,e)},X.dd=function(e){return HS(this,e,0)},X.dc=function(){return this.c.length==0},X.Kc=function(){return new L(this)},X.gd=function(e){return Kx(this,e)},X.Mc=function(e){return BS(this,e)},X.ce=function(e,t){vIe(this,e,t)},X.hd=function(e,t){return jx(this,e,t)},X.gc=function(){return this.c.length},X.jd=function(e){ff(this,e)},X.Pc=function(){return Mh(this.c)},X.Qc=function(e){return Jk(this,e)};var WJ=U(Iz,`ArrayList`,13);J(7,1,Fz,L),X.Nb=function(e){qg(this,e)},X.Ob=function(){return pf(this)},X.Pb=function(){return W(this)},X.Qb=function(){p_(this)},X.a=0,X.b=-1,U(Iz,`ArrayList/1`,7),J(2112,r.Function,{},k),X.Me=function(e,t){return nO(e,t)},J(151,56,Fmt,Hs),X.Hc=function(e){return nKe(this,e)!=-1},X.Jc=function(e){var t,n,r,i;for(sv(e),n=this.a,r=0,i=n.length;r0)throw R(new Ps(Umt+e+` greater than `+this.e));return this.f.Te()?Iy(this.c,this.b,this.a,e,t):xIe(this.c,e,t)},X.zc=function(e,t){if(!l4e(this.c,this.f,e,this.b,this.a,this.e,this.d))throw R(new Ps(e+` outside the range `+this.b+` to `+this.e));return SYe(this.c,e,t)},X.Bc=function(e){var t=e;return l4e(this.c,this.f,t,this.b,this.a,this.e,this.d)?bFe(this.c,t):null},X.Le=function(e){return J_(this,e.ld())&&OHe(this.c,e)},X.gc=function(){var e,t=this.f.Te()?this.a?wk(this.c,this.b,!0):wk(this.c,this.b,!1):CUe(this.c),n;if(!(t&&J_(this,t.d)&&t))return 0;for(e=0,n=new Kw(this.c,this.f,this.b,this.a,this.e,this.d);rve(n.a);n.b=H(QNe(n.a),44))++e;return e},X.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw R(new Ps(Umt+e+Wmt+this.b));return this.f.Ue()?Iy(this.c,e,t,this.e,this.d):SIe(this.c,e,t)},X.a=!1,X.d=!1,U(Iz,`TreeMap/SubMap`,631),J(304,22,Gmt,Ul),X.Te=function(){return!1},X.Ue=function(){return!1};var ZJ,DCt,OCt,kCt,QJ=pw(Iz,`TreeMap/SubMapType`,304,cJ,IRe,GEe);J(1143,304,Gmt,Gd),X.Ue=function(){return!0},pw(Iz,`TreeMap/SubMapType/1`,1143,QJ,null,null),J(1144,304,Gmt,SSe),X.Te=function(){return!0},X.Ue=function(){return!0},pw(Iz,`TreeMap/SubMapType/2`,1144,QJ,null,null),J(1145,304,Gmt,Kxe),X.Te=function(){return!0},pw(Iz,`TreeMap/SubMapType/3`,1145,QJ,null,null);var ACt;J(157,zz,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},jo,jc,Yi),X.Nc=function(){return new pve(this)},X.Fc=function(e){return n_(this,e)},X.$b=function(){this.a.$b()},X.Hc=function(e){return this.a._b(e)},X.Kc=function(){return this.a.ec().Kc()},X.Mc=function(e){return eCe(this,e)},X.gc=function(){return this.a.gc()};var jCt=U(Iz,`TreeSet`,157);J(1082,1,{},Xi),X.Ve=function(e,t){return oTe(this.a,e,t)},U(Kmt,`BinaryOperator/lambda$0$Type`,1082),J(1083,1,{},Zi),X.Ve=function(e,t){return sTe(this.a,e,t)},U(Kmt,`BinaryOperator/lambda$1$Type`,1083),J(952,1,{},de),X.Kb=function(e){return e},U(Kmt,`Function/lambda$0$Type`,952),J(395,1,uB,Qi),X.Mb=function(e){return!this.a.Mb(e)},U(Kmt,`Predicate/lambda$2$Type`,395),J(581,1,{581:1});var MCt=U(lV,`Handler`,581);J(2107,1,Tz),X.xe=function(){return`DUMMY`},X.Ib=function(){return this.xe()};var NCt;U(lV,`Level`,2107),J(1706,2107,Tz,fe),X.xe=function(){return`INFO`},U(lV,`Level/LevelInfo`,1706),J(1843,1,{},Bpe);var PCt;U(lV,`LogManager`,1843),J(1896,1,Tz,BEe),X.b=null,U(lV,`LogRecord`,1896),J(525,1,{525:1},MBe),X.e=!1;var FCt=!1,ICt=!1,$J=!1,eY=!1,LCt=!1;U(lV,`Logger`,525),J(835,581,{581:1},pe),U(lV,`SimpleConsoleLogHandler`,835),J(108,22,{3:1,34:1,22:1,108:1},mve);var RCt,tY,nY,rY=pw(dV,`Collector/Characteristics`,108,cJ,CIe,KEe),zCt;J(758,1,{},Zje),U(dV,`CollectorImpl`,758),J(1074,1,{},me),X.Ve=function(e,t){return IZe(H(e,213),H(t,213))},U(dV,`Collectors/10methodref$merge$Type`,1074),J(1075,1,{},he),X.Kb=function(e){return tRe(H(e,213))},U(dV,`Collectors/11methodref$toString$Type`,1075),J(1076,1,{},Eue),X.Kb=function(e){return sp(),!!Cxe(e)},U(dV,`Collectors/12methodref$test$Type`,1076),J(144,1,{},ge),X.Yd=function(e,t){H(e,16).Fc(t)},U(dV,`Collectors/20methodref$add$Type`,144),J(146,1,{},_e),X.Xe=function(){return new to},U(dV,`Collectors/21methodref$ctor$Type`,146),J(359,1,{},ve),X.Xe=function(){return new Ao},U(dV,`Collectors/23methodref$ctor$Type`,359),J(360,1,{},ye),X.Yd=function(e,t){t_(H(e,49),t)},U(dV,`Collectors/24methodref$add$Type`,360),J(1069,1,{},be),X.Ve=function(e,t){return O_e(H(e,15),H(t,16))},U(dV,`Collectors/4methodref$addAll$Type`,1069),J(1073,1,{},xe),X.Yd=function(e,t){Jx(H(e,213),H(t,484))},U(dV,`Collectors/9methodref$add$Type`,1073),J(1072,1,{},ske),X.Xe=function(){return new FT(this.a,this.b,this.c)},U(dV,`Collectors/lambda$15$Type`,1072),J(1077,1,{},Se),X.Xe=function(){var e=new Ex;return Qk(e,(sp(),!1),new to),Qk(e,!0,new to),e},U(dV,`Collectors/lambda$22$Type`,1077),J(1078,1,{},Due),X.Xe=function(){return K(B($q,1),Oz,1,5,[this.a])},U(dV,`Collectors/lambda$25$Type`,1078),J(1079,1,{},$i),X.Yd=function(e,t){cAe(this.a,dw(e))},U(dV,`Collectors/lambda$26$Type`,1079),J(1080,1,{},Oue),X.Ve=function(e,t){return Fje(this.a,dw(e),dw(t))},U(dV,`Collectors/lambda$27$Type`,1080),J(1081,1,{},Ce),X.Kb=function(e){return dw(e)[0]},U(dV,`Collectors/lambda$28$Type`,1081),J(728,1,{},we),X.Ve=function(e,t){return uAe(e,t)},U(dV,`Collectors/lambda$4$Type`,728),J(145,1,{},Te),X.Ve=function(e,t){return dl(H(e,16),H(t,16))},U(dV,`Collectors/lambda$42$Type`,145),J(361,1,{},Ee),X.Ve=function(e,t){return fl(H(e,49),H(t,49))},U(dV,`Collectors/lambda$50$Type`,361),J(362,1,{},De),X.Kb=function(e){return H(e,49)},U(dV,`Collectors/lambda$51$Type`,362),J(1068,1,{},kue),X.Yd=function(e,t){UYe(this.a,H(e,85),t)},U(dV,`Collectors/lambda$7$Type`,1068),J(1070,1,{},Oe),X.Ve=function(e,t){return GJe(H(e,85),H(t,85),new be)},U(dV,`Collectors/lambda$8$Type`,1070),J(1071,1,{},Aue),X.Kb=function(e){return xO(this.a,H(e,85))},U(dV,`Collectors/lambda$9$Type`,1071),J(550,1,{}),X.$e=function(){nv(this)},X.d=!1,U(dV,`TerminatableStream`,550),J(827,550,Jmt,Zwe),X.$e=function(){nv(this)},U(dV,`DoubleStreamImpl`,827),J(1847,736,qz,hh),X.Re=function(e){return m2e(this,H(e,189))},X.a=null,U(dV,`DoubleStreamImpl/2`,1847),J(1848,1,nV,jue),X.Pe=function(e){Jxe(this.a,e)},U(dV,`DoubleStreamImpl/2/lambda$0$Type`,1848),J(1845,1,nV,ea),X.Pe=function(e){Zd(this.a,e)},U(dV,`DoubleStreamImpl/lambda$0$Type`,1845),J(1846,1,nV,Mue),X.Pe=function(e){C$e(this.a,e)},U(dV,`DoubleStreamImpl/lambda$2$Type`,1846),J(1397,735,qz,NBe),X.Re=function(e){return uRe(this,H(e,202))},X.a=0,X.b=0,X.c=0,U(dV,`IntStream/5`,1397),J(806,550,Jmt,Qwe),X.$e=function(){nv(this)},X._e=function(){return tv(this),this.a},U(dV,`IntStreamImpl`,806),J(807,550,Jmt,al),X.$e=function(){nv(this)},X._e=function(){return tv(this),vCe(),TCt},U(dV,`IntStreamImpl/Empty`,807),J(1687,1,Yz,Nue),X.Dd=function(e){iJe(this.a,e)},U(dV,`IntStreamImpl/lambda$4$Type`,1687);var BCt=Kh(dV,`Stream`);J(26,550,{533:1,687:1,848:1},ig),X.$e=function(){nv(this)};var iY;U(dV,`StreamImpl`,26),J(1102,500,qz,ym),X.Bd=function(e){for(;iUe(this);)if(this.a.Bd(e))return!0;else nv(this.b),this.b=null,this.a=null;return!1},U(dV,`StreamImpl/1`,1102),J(1103,1,Jz,Pue),X.Cd=function(e){fke(this.a,H(e,848))},U(dV,`StreamImpl/1/lambda$0$Type`,1103),J(1104,1,uB,Fue),X.Mb=function(e){return t_(this.a,e)},U(dV,`StreamImpl/1methodref$add$Type`,1104),J(1105,500,qz,ey),X.Bd=function(e){var t;return this.a||=(t=new to,this.b.a.Nb(new Iue(t)),iy(),ff(t,this.c),new kb(t,16)),kC(this.a,e)},X.a=null,U(dV,`StreamImpl/5`,1105),J(1106,1,Jz,Iue),X.Cd=function(e){Cf(this.a,e)},U(dV,`StreamImpl/5/2methodref$add$Type`,1106),J(737,500,qz,OUe),X.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new gve(this,e)););return this.b},X.b=!1,U(dV,`StreamImpl/FilterSpliterator`,737),J(1096,1,Jz,gve),X.Cd=function(e){Cje(this.a,this.b,e)},U(dV,`StreamImpl/FilterSpliterator/lambda$0$Type`,1096),J(1091,736,qz,SVe),X.Re=function(e){return pEe(this,H(e,189))},U(dV,`StreamImpl/MapToDoubleSpliterator`,1091),J(1095,1,Jz,_ve),X.Cd=function(e){nu(this.a,this.b,e)},U(dV,`StreamImpl/MapToDoubleSpliterator/lambda$0$Type`,1095),J(1090,735,qz,CVe),X.Re=function(e){return mEe(this,H(e,202))},U(dV,`StreamImpl/MapToIntSpliterator`,1090),J(1094,1,Jz,vve),X.Cd=function(e){kve(this.a,this.b,e)},U(dV,`StreamImpl/MapToIntSpliterator/lambda$0$Type`,1094),J(734,500,qz,wVe),X.Bd=function(e){return hEe(this,e)},U(dV,`StreamImpl/MapToObjSpliterator`,734),J(1093,1,Jz,yve),X.Cd=function(e){Ave(this.a,this.b,e)},U(dV,`StreamImpl/MapToObjSpliterator/lambda$0$Type`,1093),J(1092,500,qz,CKe),X.Bd=function(e){for(;Bl(this.b,0);){if(!this.a.Bd(new ke))return!1;this.b=dO(this.b,1)}return this.a.Bd(e)},X.b=0,U(dV,`StreamImpl/SkipSpliterator`,1092),J(1097,1,Jz,ke),X.Cd=function(e){},U(dV,`StreamImpl/SkipSpliterator/lambda$0$Type`,1097),J(626,1,Jz,Ae),X.Cd=function(e){Ble(this,e)},U(dV,`StreamImpl/ValueConsumer`,626),J(1098,1,Jz,je),X.Cd=function(e){ol()},U(dV,`StreamImpl/lambda$0$Type`,1098),J(1099,1,Jz,Me),X.Cd=function(e){ol()},U(dV,`StreamImpl/lambda$1$Type`,1099),J(1100,1,{},Lue),X.Ve=function(e,t){return hDe(this.a,e,t)},U(dV,`StreamImpl/lambda$4$Type`,1100),J(1101,1,Jz,Kl),X.Cd=function(e){kTe(this.b,this.a,e)},U(dV,`StreamImpl/lambda$5$Type`,1101),J(1107,1,Jz,Rue),X.Cd=function(e){bJe(this.a,H(e,380))},U(dV,`TerminatableStream/lambda$0$Type`,1107),J(2142,1,{}),J(2014,1,{},Ne),U(`javaemul.internal`,`ConsoleLogger`,2014);var VCt=0;J(2134,1,{}),J(1830,1,Jz,Pe),X.Cd=function(e){H(e,317)},U(pV,`BowyerWatsonTriangulation/lambda$0$Type`,1830),J(1831,1,Jz,zue),X.Cd=function(e){zw(this.a,H(e,317).e)},U(pV,`BowyerWatsonTriangulation/lambda$1$Type`,1831),J(1832,1,Jz,Fe),X.Cd=function(e){H(e,177)},U(pV,`BowyerWatsonTriangulation/lambda$2$Type`,1832),J(1827,1,mV,Bue),X.Ne=function(e,t){return yze(this.a,H(e,177),H(t,177))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(pV,`NaiveMinST/lambda$0$Type`,1827),J(449,1,{},ta),U(pV,`NodeMicroLayout`,449),J(177,1,{177:1},Gl),X.Fb=function(e){var t;return V(e,177)?(t=H(e,177),xv(this.a,t.a)&&xv(this.b,t.b)||xv(this.a,t.b)&&xv(this.b,t.a)):!1},X.Hb=function(){return nf(this.a)+nf(this.b)};var aY=U(pV,`TEdge`,177);J(317,1,{317:1},Sct),X.Fb=function(e){var t;return V(e,317)?(t=H(e,317),JS(this,t.a)&&JS(this,t.b)&&JS(this,t.c)):!1},X.Hb=function(){return nf(this.a)+nf(this.b)+nf(this.c)},U(pV,`TTriangle`,317),J(225,1,{225:1},CSe),U(pV,`Tree`,225),J(1218,1,{},YFe),U($mt,`Scanline`,1218);var HCt=Kh($mt,eht);J(1758,1,{},zWe),U(hV,`CGraph`,1758),J(316,1,{316:1},XFe),X.b=0,X.c=0,X.d=0,X.g=0,X.i=0,X.k=qB,U(hV,`CGroup`,316),J(830,1,{},Upe),U(hV,`CGroup/CGroupBuilder`,830),J(60,1,{60:1},RTe),X.Ib=function(){var e;return this.j?Lp(this.j.Kb(this)):(Rp(oY),oY.o+`@`+(e=rp(this)>>>0,e.toString(16)))},X.f=0,X.i=qB;var oY=U(hV,`CNode`,60);J(829,1,{},Wpe),U(hV,`CNode/CNodeBuilder`,829);var UCt;J(1590,1,{},Ie),X.ff=function(e,t){return 0},X.gf=function(e,t){return 0},U(hV,nht,1590),J(1853,1,{},Le),X.cf=function(e){var t,n,i,a,o,s,l,u,d=KB,f,p,m,h,g,_;for(i=new L(e.a.b);i.ar.d.c||r.d.c==a.d.c&&r.d.b0?e+this.n.d+this.n.a:0},X.kf=function(){var e,t,n,i,a=0;if(this.e)this.b?a=this.b.a:this.a[1][1]&&(a=this.a[1][1].kf());else if(this.g)a=LO(this,B4e(this,null,!0));else for(t=(GC(),K(B(mY,1),cB,237,0,[dY,fY,pY])),n=0,i=t.length;n0?a+this.n.b+this.n.c:0},X.lf=function(){var e,t,n,r,i;if(this.g)for(e=B4e(this,null,!1),n=(GC(),K(B(mY,1),cB,237,0,[dY,fY,pY])),r=0,i=n.length;r0&&(i[0]+=this.d,n-=i[0]),i[2]>0&&(i[2]+=this.d,n-=i[2]),this.c.a=r.Math.max(0,n),this.c.d=t.d+e.d+(this.c.a-n)/2,i[1]=r.Math.max(i[1],n),gVe(this,fY,t.d+e.d+i[0]-(i[1]-n)/2,i)},X.b=null,X.d=0,X.e=!1,X.f=!1,X.g=!1;var hY=0,gY=0;U(OV,`GridContainerCell`,1538),J(471,22,{3:1,34:1,22:1,471:1},Cve);var _Y,vY,yY,xwt=pw(OV,`HorizontalLabelAlignment`,471,cJ,wIe,ZEe),Swt;J(314,217,{217:1,314:1},DFe,bC,HPe),X.jf=function(){return Pke(this)},X.kf=function(){return Ph(this)},X.a=0,X.c=!1;var Cwt=U(OV,`LabelCell`,314);J(252,336,{217:1,336:1,252:1},Uk),X.jf=function(){return aP(this)},X.kf=function(){return oP(this)},X.lf=function(){XI(this)},X.mf=function(){fct(this)},X.b=0,X.c=0,X.d=!1,U(OV,`StripContainerCell`,252),J(1691,1,uB,We),X.Mb=function(e){return the(H(e,217))},U(OV,`StripContainerCell/lambda$0$Type`,1691),J(1692,1,{},Ge),X.Ye=function(e){return H(e,217).kf()},U(OV,`StripContainerCell/lambda$1$Type`,1692),J(1693,1,uB,Ke),X.Mb=function(e){return nhe(H(e,217))},U(OV,`StripContainerCell/lambda$2$Type`,1693),J(1694,1,{},qe),X.Ye=function(e){return H(e,217).jf()},U(OV,`StripContainerCell/lambda$3$Type`,1694),J(472,22,{3:1,34:1,22:1,472:1},wve);var bY,xY,SY,wwt=pw(OV,`VerticalLabelAlignment`,472,cJ,Sb,QEe),Twt;J(800,1,{},Hdt),X.c=0,X.d=0,X.k=0,X.s=0,X.t=0,X.v=!1,X.w=0,X.D=!1,X.F=!1,U(FV,`NodeContext`,800),J(1536,1,mV,Je),X.Ne=function(e,t){return Mxe(H(e,64),H(t,64))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(FV,`NodeContext/0methodref$comparePortSides$Type`,1536),J(1537,1,mV,Ye),X.Ne=function(e,t){return IM(H(e,117),H(t,117))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(FV,`NodeContext/1methodref$comparePortContexts$Type`,1537),J(164,22,{3:1,34:1,22:1,164:1},Jw);var Ewt,Dwt,Owt,kwt,Awt,jwt,Mwt,Nwt,Pwt,Fwt,Iwt,Lwt,Rwt,zwt,CY,wY,TY,EY,Bwt,Vwt,Hwt,Uwt,Wwt=pw(FV,`NodeLabelLocation`,164,cJ,$k,$Ee),Gwt;J(117,1,{117:1},G9e),X.a=!1,U(FV,`PortContext`,117),J(1541,1,Jz,Xe),X.Cd=function(e){Pge(H(e,314))},U(RV,ght,1541),J(1542,1,uB,Ze),X.Mb=function(e){return!!H(e,117).c},U(RV,_ht,1542),J(1543,1,Jz,Qe),X.Cd=function(e){Pge(H(e,117).c)},U(RV,`LabelPlacer/lambda$2$Type`,1543);var Kwt;J(1540,1,Jz,$e),X.Cd=function(e){qp(),Cpe(H(e,117))},U(RV,`NodeLabelAndSizeUtilities/lambda$0$Type`,1540),J(801,1,Jz,fDe),X.Cd=function(e){H_e(this.b,this.c,this.a,H(e,187))},X.a=!1,X.c=!1,U(RV,`NodeLabelCellCreator/lambda$0$Type`,801),J(1539,1,Jz,Vue),X.Cd=function(e){Ppe(this.a,H(e,187))},U(RV,`PortContextCreator/lambda$0$Type`,1539);var DY;J(1902,1,{},et),U(zV,`GreedyRectangleStripOverlapRemover`,1902),J(1903,1,mV,tt),X.Ne=function(e,t){return BCe(H(e,226),H(t,226))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(zV,`GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type`,1903),J(1849,1,{},qpe),X.a=5,X.e=0,U(zV,`RectangleStripOverlapRemover`,1849),J(1850,1,mV,nt),X.Ne=function(e,t){return VCe(H(e,226),H(t,226))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(zV,`RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type`,1850),J(1852,1,mV,rt),X.Ne=function(e,t){return aMe(H(e,226),H(t,226))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(zV,`RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type`,1852),J(417,22,{3:1,34:1,22:1,417:1},Tve);var OY,qwt,Jwt,kY,Ywt=pw(zV,`RectangleStripOverlapRemover/OverlapRemovalDirection`,417,cJ,zRe,eDe),Xwt;J(226,1,{226:1},UAe),U(zV,`RectangleStripOverlapRemover/RectangleNode`,226),J(1851,1,Jz,aa),X.Cd=function(e){O2e(this.a,H(e,226))},U(zV,`RectangleStripOverlapRemover/lambda$1$Type`,1851),J(1323,1,mV,it),X.Ne=function(e,t){return dlt(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(BV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator`,1323),J(1326,1,{},at),X.Kb=function(e){return H(e,334).a},U(BV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type`,1326),J(1327,1,uB,ot),X.Mb=function(e){return H(e,332).a},U(BV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type`,1327),J(1328,1,uB,st),X.Mb=function(e){return H(e,332).a},U(BV,`PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type`,1328),J(1321,1,mV,ct),X.Ne=function(e,t){return Xat(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(BV,`PolyominoCompactor/MinNumOfExtensionDirectionsComparator`,1321),J(1324,1,{},lt),X.Kb=function(e){return H(e,334).a},U(BV,`PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type`,1324),J(781,1,mV,ut),X.Ne=function(e,t){return MJe(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(BV,`PolyominoCompactor/MinNumOfExtensionsComparator`,781),J(1319,1,mV,dt),X.Ne=function(e,t){return VKe(H(e,330),H(t,330))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(BV,`PolyominoCompactor/MinPerimeterComparator`,1319),J(1320,1,mV,ft),X.Ne=function(e,t){return E0e(H(e,330),H(t,330))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(BV,`PolyominoCompactor/MinPerimeterComparatorWithShape`,1320),J(1322,1,mV,pt),X.Ne=function(e,t){return kot(H(e,176),H(t,176))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(BV,`PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator`,1322),J(1325,1,{},mt),X.Kb=function(e){return H(e,334).a},U(BV,`PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type`,1325),J(782,1,{},Eve),X.Ve=function(e,t){return bRe(this,H(e,42),H(t,176))},U(BV,`SuccessorCombination`,782),J(649,1,{},ht),X.Ve=function(e,t){var n;return C9e((n=H(e,42),H(t,176),n))},U(BV,`SuccessorJitter`,649),J(648,1,{},gt),X.Ve=function(e,t){var n;return Prt((n=H(e,42),H(t,176),n))},U(BV,`SuccessorLineByLine`,648),J(573,1,{},_t),X.Ve=function(e,t){var n;return ott((n=H(e,42),H(t,176),n))},U(BV,`SuccessorManhattan`,573),J(1344,1,{},vt),X.Ve=function(e,t){var n;return Xnt((n=H(e,42),H(t,176),n))},U(BV,`SuccessorMaxNormWindingInMathPosSense`,1344),J(409,1,{},oa),X.Ve=function(e,t){return Xje(this,e,t)},X.c=!1,X.d=!1,X.e=!1,X.f=!1,U(BV,`SuccessorQuadrantsGeneric`,409),J(1345,1,{},yt),X.Kb=function(e){return H(e,334).a},U(BV,`SuccessorQuadrantsGeneric/lambda$0$Type`,1345),J(332,22,{3:1,34:1,22:1,332:1},Yl),X.a=!1;var AY,jY,MY,NY,Zwt=pw(UV,Sht,332,cJ,LRe,tDe),Qwt;J(1317,1,{}),X.Ib=function(){var e,t,n=` `,r,i,a;for(e=bD(0),i=0;i=0?`b`+e+`[`+TBe(this.a)+`]`:`b[`+TBe(this.a)+`]`):`b_`+rp(this)},U(pH,`FBendpoint`,250),J(290,137,{3:1,290:1,96:1,137:1},zTe),X.Ib=function(){return TBe(this)},U(pH,`FEdge`,290),J(235,137,{3:1,235:1,96:1,137:1},DVe);var wTt=U(pH,`FGraph`,235);J(454,309,{3:1,454:1,309:1,96:1,137:1},gx),X.Ib=function(){return this.b==null||this.b.length==0?`l[`+TBe(this.a)+`]`:`l_`+this.b},U(pH,`FLabel`,454),J(153,309,{3:1,153:1,309:1,96:1,137:1},bSe),X.Ib=function(){return vLe(this)},X.a=0,U(pH,`FNode`,153),J(2100,1,{}),X.vf=function(e){Mst(this,e)},X.wf=function(){ej(this)},X.d=0,U(Iht,`AbstractForceModel`,2100),J(641,2100,{641:1},tJe),X.uf=function(e,t){var n,i,a,o,s;return Plt(this.f,e,t),a=pm(vf(t.d),e.d),s=r.Math.sqrt(a.a*a.a+a.b*a.b),i=r.Math.max(0,s-q_(e.e)/2-q_(t.e)/2),n=O9e(this.e,e,t),o=n>0?-$je(i,this.c)*n:pwe(i,this.b)*H(q(e,(WI(),YY)),17).a,Sf(a,o/s),a},X.vf=function(e){Mst(this,e),this.a=H(q(e,(WI(),KY)),17).a,this.c=z(Ip(q(e,QY))),this.b=z(Ip(q(e,XY)))},X.xf=function(e){return e0&&(o-=Gme(i,this.a)*n),Sf(a,o*this.b/s),a},X.vf=function(e){var t,n,i,a,o,s,l;for(Mst(this,e),this.b=z(Ip(q(e,(WI(),YTt)))),this.c=this.b/H(q(e,KY),17).a,i=e.e.c.length,o=0,a=0,l=new L(e.e);l.a0},X.a=0,X.b=0,X.c=0,U(Iht,`FruchtermanReingoldModel`,642),J(860,1,wV,Tce),X.hf=function(e){EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,mH),``),`Force Model`),`Determines the model for force calculation.`),DTt),(AN(),A3)),NTt),rO((rA(),T3))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,hH),``),`Iterations`),`The number of iterations on the force model.`),bD(300)),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,gH),``),`Repulsive Power`),`Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model`),bD(0)),M3),kJ),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,_H),``),`FR Temperature`),`The temperature is used as a scaling factor for particle displacements.`),vH),k3),DJ),rO(T3)))),qb(e,_H,mH,MTt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,yH),``),`Eades Repulsion`),`Factor for repulsive forces in Eades' model.`),5),k3),DJ),rO(T3)))),qb(e,yH,mH,kTt),kft((new Ece,e))};var TTt,ETt,DTt,OTt,kTt,ATt,jTt,MTt;U(bH,`ForceMetaDataProvider`,860),J(432,22,{3:1,34:1,22:1,432:1},Ql);var WY,GY,NTt=pw(bH,`ForceModelStrategy`,432,cJ,qPe,iDe),PTt;J(bB,1,wV,Ece),X.hf=function(e){kft(e)};var FTt,ITt,LTt,KY,RTt,zTt,BTt,VTt,HTt,qY,UTt,JY,WTt,GTt,YY,KTt,XY,ZY,qTt,JTt,QY,YTt,XTt,ZTt,QTt,$Y,$Tt;U(bH,`ForceOptions`,bB),J(1001,1,{},aee),X.sf=function(){return new Hpe},X.tf=function(e){},U(bH,`ForceOptions/ForceFactory`,1001);var eX,tX,nX,rX;J(861,1,wV,Dce),X.hf=function(e){EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,zht),``),`Fixed Position`),`Prevent that the node is moved by the layout algorithm.`),(sp(),!1)),(AN(),O3)),wJ),rO((rA(),w3))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Bht),``),`Desired Edge Length`),`Either specified for parent nodes or for individual edges, where the latter takes higher precedence.`),100),k3),DJ),bg(T3,K(B(D3,1),cB,170,0,[S3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Vht),``),`Layout Dimension`),`Dimensions that are permitted to be altered during layout.`),nEt),A3),yEt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Hht),``),`Stress Epsilon`),`Termination criterion for the iterative process.`),vH),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Uht),``),`Iteration Limit`),`Maximum number of performed iterations. Takes higher precedence than 'epsilon'.`),bD(Cz)),M3),kJ),rO(T3)))),But((new Oce,e))};var eEt,tEt,nEt,rEt,iEt,aEt;U(bH,`StressMetaDataProvider`,861),J(1004,1,wV,Oce),X.hf=function(e){But(e)};var iX,oEt,sEt,cEt,lEt,uEt,dEt,fEt,pEt,mEt,hEt,gEt;U(bH,`StressOptions`,1004),J(1005,1,{},ree),X.sf=function(){return new BTe},X.tf=function(e){},U(bH,`StressOptions/StressFactory`,1005),J(1110,205,YV,BTe),X.rf=function(e,t){var n,r,i,a,o;for(t.Ug(Wht,1),ks(Fp(eF(e,(wj(),lEt))))?ks(Fp(eF(e,hEt)))||zy((n=new ta((Nl(),new Ds(e))),n)):Jtt(new Hpe,e,t.eh(1)),i=mYe(e),r=uct(this.a,i),o=r.Kc();o.Ob();)a=H(o.Pb(),235),!(a.e.c.length<=1)&&(nR(this.b,a),ttt(this.b),RC(a.d,new iee));i=Sft(r),ipt(i),t.Vg()},U(Ght,`StressLayoutProvider`,1110),J(1111,1,Jz,iee),X.Cd=function(e){vL(H(e,454))},U(Ght,`StressLayoutProvider/lambda$0$Type`,1111),J(1002,1,{},Npe),X.c=0,X.e=0,X.g=0,U(Ght,`StressMajorization`,1002),J(391,22,{3:1,34:1,22:1,391:1},$l);var _Et,aX,vEt,yEt=pw(Ght,`StressMajorization/Dimension`,391,cJ,TIe,aDe),bEt;J(1003,1,mV,la),X.Ne=function(e,t){return vEe(this.a,H(e,153),H(t,153))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(Ght,`StressMajorization/lambda$0$Type`,1003),J(1192,1,{},DLe),U(KH,`ElkLayered`,1192),J(1193,1,Jz,Wue),X.Cd=function(e){L7e(this.a,H(e,36))},U(KH,`ElkLayered/lambda$0$Type`,1193),J(1194,1,Jz,ua),X.Cd=function(e){yEe(this.a,H(e,36))},U(KH,`ElkLayered/lambda$1$Type`,1194),J(1281,1,{},zSe);var xEt,SEt,CEt;U(KH,`GraphConfigurator`,1281),J(770,1,Jz,da),X.Cd=function(e){G8e(this.a,H(e,10))},U(KH,`GraphConfigurator/lambda$0$Type`,770),J(771,1,{},nee),X.Kb=function(e){return c3e(),new ig(null,new kb(H(e,30).a,16))},U(KH,`GraphConfigurator/lambda$1$Type`,771),J(772,1,Jz,Gue),X.Cd=function(e){G8e(this.a,H(e,10))},U(KH,`GraphConfigurator/lambda$2$Type`,772),J(1109,205,YV,Jpe),X.rf=function(e,t){var n=PL(new Xpe,e);Qu(eF(e,(sz(),$$)))===Qu((gD(),H8))?CQe(this.a,n,t):Yet(this.a,n,t),t.$g()||Ydt(new Ir,n)},U(KH,`LayeredLayoutProvider`,1109),J(367,22,{3:1,34:1,22:1,367:1},eu);var oX,sX,cX,lX,uX,wEt=pw(KH,`LayeredPhases`,367,cJ,IBe,oDe),TEt;J(1717,1,{},vKe),X.i=0;var EEt;U(qH,`ComponentsToCGraphTransformer`,1717);var DEt;J(1718,1,{},tee),X.yf=function(e,t){return r.Math.min(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},X.zf=function(e,t){return r.Math.min(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},U(qH,`ComponentsToCGraphTransformer/1`,1718),J(86,1,{86:1}),X.i=0,X.k=!0,X.o=qB;var OEt=U(JH,`CNode`,86);J(470,86,{470:1,86:1},QCe,g1e),X.Ib=function(){return``},U(qH,`ComponentsToCGraphTransformer/CRectNode`,470),J(1688,1,{},oee);var kEt,AEt;U(qH,`OneDimensionalComponentsCompaction`,1688),J(1689,1,{},Ft),X.Kb=function(e){return cIe(H(e,42))},X.Fb=function(e){return this===e},U(qH,`OneDimensionalComponentsCompaction/lambda$0$Type`,1689),J(1690,1,{},It),X.Kb=function(e){return pO(H(e,42))},X.Fb=function(e){return this===e},U(qH,`OneDimensionalComponentsCompaction/lambda$1$Type`,1690),J(1720,1,{},BMe),U(JH,`CGraph`,1720),J(194,1,{194:1},_1e),X.b=0,X.c=0,X.e=0,X.g=!0,X.i=qB,U(JH,`CGroup`,194),J(1719,1,{},Lt),X.yf=function(e,t){return r.Math.max(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},X.zf=function(e,t){return r.Math.max(e.a==null?e.c.i:z(e.a),t.a==null?t.c.i:z(t.a))},U(JH,nht,1719),J(1721,1,{},N9e),X.d=!1;var jEt,MEt=U(JH,sht,1721);J(1722,1,{},Rt),X.Kb=function(e){return L_e(),sp(),H(H(e,42).a,86).d.e!=0},X.Fb=function(e){return this===e},U(JH,cht,1722),J(833,1,{},pAe),X.a=!1,X.b=!1,X.c=!1,X.d=!1,U(JH,lht,833),J(1898,1,{},WAe),U(YH,uht,1898);var dX=Kh(XH,eht);J(1899,1,{382:1},MPe),X.bf=function(e){oit(this,H(e,476))},U(YH,dht,1899),J(AB,1,mV,zt),X.Ne=function(e,t){return Pv(H(e,86),H(t,86))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(YH,gV,AB),J(476,1,{476:1},Vve),X.a=!1,U(YH,fht,476),J(1901,1,mV,Bt),X.Ne=function(e,t){return s3e(H(e,476),H(t,476))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(YH,pht,1901),J(148,1,{148:1},lu,lke),X.Fb=function(e){var t;return e==null||NEt!=ZE(e)?!1:(t=H(e,148),xv(this.c,t.c)&&xv(this.d,t.d))},X.Hb=function(){return tD(K(B($q,1),Oz,1,5,[this.c,this.d]))},X.Ib=function(){return`(`+this.c+Dz+this.d+(this.a?`cx`:``)+this.b+`)`},X.a=!0,X.c=0,X.d=0;var NEt=U(XH,`Point`,148);J(416,22,{3:1,34:1,22:1,416:1},ru);var fX,pX,mX,hX,PEt=pw(XH,`Point/Quadrant`,416,cJ,BRe,sDe),FEt;J(1708,1,{},Kpe),X.b=null,X.c=null,X.d=null,X.e=null,X.f=null;var IEt,LEt,REt,zEt,BEt;U(XH,`RectilinearConvexHull`,1708),J(583,1,{382:1},pA),X.bf=function(e){sUe(this,H(e,148))},X.b=0;var VEt;U(XH,`RectilinearConvexHull/MaximalElementsEventHandler`,583),J(1710,1,mV,Vt),X.Ne=function(e,t){return PNe(Ip(e),Ip(t))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(XH,`RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type`,1710),J(1709,1,{382:1},BWe),X.bf=function(e){ert(this,H(e,148))},X.a=0,X.b=null,X.c=null,X.d=null,X.e=null,U(XH,`RectilinearConvexHull/RectangleEventHandler`,1709),J(1711,1,mV,Ht),X.Ne=function(e,t){return pLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(XH,`RectilinearConvexHull/lambda$0$Type`,1711),J(1712,1,mV,lee),X.Ne=function(e,t){return mLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(XH,`RectilinearConvexHull/lambda$1$Type`,1712),J(1713,1,mV,Wt),X.Ne=function(e,t){return fLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(XH,`RectilinearConvexHull/lambda$2$Type`,1713),J(1714,1,mV,cee),X.Ne=function(e,t){return hLe(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(XH,`RectilinearConvexHull/lambda$3$Type`,1714),J(1715,1,mV,uee),X.Ne=function(e,t){return w8e(H(e,148),H(t,148))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(XH,`RectilinearConvexHull/lambda$4$Type`,1715),J(1716,1,{},ob),U(XH,`Scanline`,1716),J(2104,1,{}),U(ZH,`AbstractGraphPlacer`,2104),J(335,1,{335:1},wwe),X.Ff=function(e){return this.Gf(e)?(CP(this.b,H(q(e,(fz(),TQ)),21),e),!0):!1},X.Gf=function(e){for(var t=H(q(e,(fz(),TQ)),21),n,r=H(Wx(gX,t),21).Kc();r.Ob();)if(n=H(r.Pb(),21),!H(Wx(this.b,n),15).dc())return!1;return!0};var gX;U(ZH,`ComponentGroup`,335),J(779,2104,{},Lo),X.Hf=function(e){for(var t,n=new L(this.a);n.an&&(f=0,p+=l+i,l=0),u=o.c,lI(o,f+u.a,p+u.b),md(u),a=r.Math.max(a,f+d.a),l=r.Math.max(l,d.b),f+=d.a+i;t.f.a=a,t.f.b=p+l},X.Jf=function(e,t){var n,r,i,a,o;if(Qu(q(t,(sz(),F$)))===Qu((Hk(),yX))){for(r=e.Kc();r.Ob();){for(n=H(r.Pb(),36),o=0,a=new L(n.a);a.an&&!H(q(o,(fz(),TQ)),21).Hc((WR(),w5))||u&&H(q(u,(fz(),TQ)),21).Hc((WR(),C5))||H(q(o,(fz(),TQ)),21).Hc((WR(),U5)))&&(m=p,h+=l+i,l=0),d=o.c,H(q(o,(fz(),TQ)),21).Hc((WR(),w5))&&(m=a+i),lI(o,m+d.a,h+d.b),a=r.Math.max(a,m+f.a),H(q(o,TQ),21).Hc(V5)&&(p=r.Math.max(p,m+f.a+i)),md(d),l=r.Math.max(l,f.b),m+=f.a+i,u=o;t.f.a=a,t.f.b=h+l},X.Jf=function(e,t){},U(ZH,`ModelOrderRowGraphPlacer`,1313),J(1311,1,mV,Gt),X.Ne=function(e,t){return CJe(H(e,36),H(t,36))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(ZH,`SimpleRowGraphPlacer/1`,1311);var WEt;J(1280,1,_V,Kt),X.Lb=function(e){var t=H(q(H(e,249).b,(sz(),i1)),75);return!!t&&t.b!=0},X.Fb=function(e){return this===e},X.Mb=function(e){var t=H(q(H(e,249).b,(sz(),i1)),75);return!!t&&t.b!=0},U(Yht,`CompoundGraphPostprocessor/1`,1280),J(1279,1,eU,Ro),X.Kf=function(e,t){A0e(this,H(e,36),t)},U(Yht,`CompoundGraphPreprocessor`,1279),J(453,1,{453:1},BD),X.c=!1,U(Yht,`CompoundGraphPreprocessor/ExternalPort`,453),J(249,1,{249:1},Pm),X.Ib=function(){return fwe(this.c)+`:`+dP(this.b)},U(Yht,`CrossHierarchyEdge`,249),J(777,1,mV,fa),X.Ne=function(e,t){return v4e(this,H(e,249),H(t,249))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(Yht,`CrossHierarchyEdgeComparator`,777),J(305,137,{3:1,305:1,96:1,137:1}),X.p=0,U(tU,`LGraphElement`,305),J(18,305,{3:1,18:1,305:1,96:1,137:1},yy),X.Ib=function(){return dP(this)};var SX=U(tU,`LEdge`,18);J(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},yKe),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return new L(this.b)},X.Ib=function(){return this.b.c.length==0?`G-unlayered`+ZM(this.a):this.a.c.length==0?`G-layered`+ZM(this.b):`G[layerless`+ZM(this.a)+`, layers`+ZM(this.b)+`]`};var GEt=U(tU,`LGraph`,36),KEt;J(666,1,{}),X.Lf=function(){return this.e.n},X.of=function(e){return q(this.e,e)},X.Mf=function(){return this.e.o},X.Nf=function(){return this.e.p},X.pf=function(e){return xp(this.e,e)},X.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},X.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},X.Qf=function(e){this.e.p=e},U(tU,`LGraphAdapters/AbstractLShapeAdapter`,666),J(474,1,{853:1},pa),X.Rf=function(){var e,t;if(!this.b)for(this.b=mp(this.a.b.c.length),t=new L(this.a.b);t.a0&&UXe((Ob(t-1,e.length),e.charCodeAt(t-1)),ngt);)--t;if(a> `,e),sj(n)),ld(cd((e.a+=`[`,e),n.i),`]`)),e.a},X.c=!0,X.d=!1;var AX,jX,ZEt,QEt,$Et,eDt,tDt=U(tU,`LPort`,12);J(408,1,Zz,ha),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return new Kue(new L(this.a.e))},U(tU,`LPort/1`,408),J(1309,1,Fz,Kue),X.Nb=function(e){qg(this,e)},X.Pb=function(){return H(W(this.a),18).c},X.Ob=function(){return pf(this.a)},X.Qb=function(){p_(this.a)},U(tU,`LPort/1/1`,1309),J(369,1,Zz,ga),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return new _a(new L(this.a.g))},U(tU,`LPort/2`,369),J(776,1,Fz,_a),X.Nb=function(e){qg(this,e)},X.Pb=function(){return H(W(this.a),18).d},X.Ob=function(){return pf(this.a)},X.Qb=function(){p_(this.a)},U(tU,`LPort/2/1`,776),J(1302,1,Zz,cu),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return new Xx(this)},U(tU,`LPort/CombineIter`,1302),J(208,1,Fz,Xx),X.Nb=function(e){qg(this,e)},X.Qb=function(){_ge()},X.Ob=function(){return np(this)},X.Pb=function(){return pf(this.a)?W(this.a):W(this.b)},U(tU,`LPort/CombineIter/1`,208),J(1303,1,_V,Jt),X.Lb=function(e){return Eje(e)},X.Fb=function(e){return this===e},X.Mb=function(e){return nT(),H(e,12).g.c.length!=0},U(tU,`LPort/lambda$0$Type`,1303),J(1304,1,_V,Yt),X.Lb=function(e){return Dje(e)},X.Fb=function(e){return this===e},X.Mb=function(e){return nT(),H(e,12).e.c.length!=0},U(tU,`LPort/lambda$1$Type`,1304),J(1305,1,_V,hee),X.Lb=function(e){return nT(),H(e,12).j==(WR(),w5)},X.Fb=function(e){return this===e},X.Mb=function(e){return nT(),H(e,12).j==(WR(),w5)},U(tU,`LPort/lambda$2$Type`,1305),J(1306,1,_V,Xt),X.Lb=function(e){return nT(),H(e,12).j==(WR(),C5)},X.Fb=function(e){return this===e},X.Mb=function(e){return nT(),H(e,12).j==(WR(),C5)},U(tU,`LPort/lambda$3$Type`,1306),J(1307,1,_V,Zt),X.Lb=function(e){return nT(),H(e,12).j==(WR(),V5)},X.Fb=function(e){return this===e},X.Mb=function(e){return nT(),H(e,12).j==(WR(),V5)},U(tU,`LPort/lambda$4$Type`,1307),J(1308,1,_V,gee),X.Lb=function(e){return nT(),H(e,12).j==(WR(),U5)},X.Fb=function(e){return this===e},X.Mb=function(e){return nT(),H(e,12).j==(WR(),U5)},U(tU,`LPort/lambda$5$Type`,1308),J(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},L_),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return new L(this.a)},X.Ib=function(){return`L_`+HS(this.b.b,this,0)+ZM(this.a)},U(tU,`Layer`,30),J(1330,1,{},Xpe),U(iU,ogt,1330),J(1334,1,{},Qt),X.Kb=function(e){return OM(H(e,84))},U(iU,`ElkGraphImporter/0methodref$connectableShapeToNode$Type`,1334),J(1337,1,{},$t),X.Kb=function(e){return OM(H(e,84))},U(iU,`ElkGraphImporter/1methodref$connectableShapeToNode$Type`,1337),J(1331,1,Jz,va),X.Cd=function(e){q9e(this.a,H(e,123))},U(iU,Pht,1331),J(1332,1,Jz,ya),X.Cd=function(e){q9e(this.a,H(e,123))},U(iU,sgt,1332),J(1333,1,{},_ee),X.Kb=function(e){return new ig(null,new kb(TNe(H(e,74)),16))},U(iU,cgt,1333),J(1335,1,uB,que),X.Mb=function(e){return Yxe(this.a,H(e,27))},U(iU,lgt,1335),J(1336,1,{},vee),X.Kb=function(e){return new ig(null,new kb(ENe(H(e,74)),16))},U(iU,`ElkGraphImporter/lambda$5$Type`,1336),J(1338,1,uB,Jue),X.Mb=function(e){return Qd(this.a,H(e,27))},U(iU,`ElkGraphImporter/lambda$7$Type`,1338),J(1339,1,uB,yee),X.Mb=function(e){return rPe(H(e,74))},U(iU,`ElkGraphImporter/lambda$8$Type`,1339),J(1297,1,{},Ir);var nDt;U(iU,`ElkGraphLayoutTransferrer`,1297),J(1298,1,uB,Yue),X.Mb=function(e){return FTe(this.a,H(e,18))},U(iU,`ElkGraphLayoutTransferrer/lambda$0$Type`,1298),J(1299,1,Jz,ba),X.Cd=function(e){xl(),Cf(this.a,H(e,18))},U(iU,`ElkGraphLayoutTransferrer/lambda$1$Type`,1299),J(1300,1,uB,xa),X.Mb=function(e){return iTe(this.a,H(e,18))},U(iU,`ElkGraphLayoutTransferrer/lambda$2$Type`,1300),J(1301,1,Jz,Sa),X.Cd=function(e){xl(),Cf(this.a,H(e,18))},U(iU,`ElkGraphLayoutTransferrer/lambda$3$Type`,1301),J(819,1,{},VTe),U(aU,`BiLinkedHashMultiMap`,819),J(1550,1,eU,bee),X.Kf=function(e,t){gqe(H(e,36),t)},U(aU,`CommentNodeMarginCalculator`,1550),J(1551,1,{},xee),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`CommentNodeMarginCalculator/lambda$0$Type`,1551),J(1552,1,Jz,See),X.Cd=function(e){kL(H(e,10))},U(aU,`CommentNodeMarginCalculator/lambda$1$Type`,1552),J(1553,1,eU,en),X.Kf=function(e,t){zF(H(e,36),t)},U(aU,`CommentPostprocessor`,1553),J(1554,1,eU,Cee),X.Kf=function(e,t){Ldt(H(e,36),t)},U(aU,`CommentPreprocessor`,1554),J(1555,1,eU,wee),X.Kf=function(e,t){mrt(H(e,36),t)},U(aU,`ConstraintsPostprocessor`,1555),J(1556,1,eU,tn),X.Kf=function(e,t){dJe(H(e,36),t)},U(aU,`EdgeAndLayerConstraintEdgeReverser`,1556),J(1557,1,eU,Tee),X.Kf=function(e,t){g$e(H(e,36),t)},U(aU,`EndLabelPostprocessor`,1557),J(1558,1,{},Eee),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`EndLabelPostprocessor/lambda$0$Type`,1558),J(1559,1,uB,Dee),X.Mb=function(e){return wBe(H(e,10))},U(aU,`EndLabelPostprocessor/lambda$1$Type`,1559),J(1560,1,Jz,Oee),X.Cd=function(e){l3e(H(e,10))},U(aU,`EndLabelPostprocessor/lambda$2$Type`,1560),J(1561,1,eU,kee),X.Kf=function(e,t){t7e(H(e,36),t)},U(aU,`EndLabelPreprocessor`,1561),J(1562,1,{},Aee),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`EndLabelPreprocessor/lambda$0$Type`,1562),J(1563,1,Jz,dDe),X.Cd=function(e){U_e(this.a,this.b,this.c,H(e,10))},X.a=0,X.b=0,X.c=!1,U(aU,`EndLabelPreprocessor/lambda$1$Type`,1563),J(1564,1,uB,jee),X.Mb=function(e){return Qu(q(H(e,72),(sz(),K$)))===Qu((KC(),N8))},U(aU,`EndLabelPreprocessor/lambda$2$Type`,1564),J(1565,1,Jz,Ca),X.Cd=function(e){Ih(this.a,H(e,72))},U(aU,`EndLabelPreprocessor/lambda$3$Type`,1565),J(1566,1,uB,Mee),X.Mb=function(e){return Qu(q(H(e,72),(sz(),K$)))===Qu((KC(),M8))},U(aU,`EndLabelPreprocessor/lambda$4$Type`,1566),J(1567,1,Jz,Xue),X.Cd=function(e){Ih(this.a,H(e,72))},U(aU,`EndLabelPreprocessor/lambda$5$Type`,1567),J(1615,1,eU,Sce),X.Kf=function(e,t){QZe(H(e,36),t)};var rDt;U(aU,`EndLabelSorter`,1615),J(1616,1,mV,Nee),X.Ne=function(e,t){return C1e(H(e,466),H(t,466))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`EndLabelSorter/1`,1616),J(466,1,{466:1},hPe),U(aU,`EndLabelSorter/LabelGroup`,466),J(1617,1,{},Pee),X.Kb=function(e){return bl(),new ig(null,new kb(H(e,30).a,16))},U(aU,`EndLabelSorter/lambda$0$Type`,1617),J(1618,1,uB,Fee),X.Mb=function(e){return bl(),H(e,10).k==(sN(),OX)},U(aU,`EndLabelSorter/lambda$1$Type`,1618),J(1619,1,Jz,Iee),X.Cd=function(e){K8e(H(e,10))},U(aU,`EndLabelSorter/lambda$2$Type`,1619),J(1620,1,uB,Lee),X.Mb=function(e){return bl(),Qu(q(H(e,72),(sz(),K$)))===Qu((KC(),M8))},U(aU,`EndLabelSorter/lambda$3$Type`,1620),J(1621,1,uB,Ree),X.Mb=function(e){return bl(),Qu(q(H(e,72),(sz(),K$)))===Qu((KC(),N8))},U(aU,`EndLabelSorter/lambda$4$Type`,1621),J(1568,1,eU,zee),X.Kf=function(e,t){alt(this,H(e,36))},X.b=0,X.c=0,U(aU,`FinalSplineBendpointsCalculator`,1568),J(1569,1,{},Bee),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`FinalSplineBendpointsCalculator/lambda$0$Type`,1569),J(1570,1,{},Vee),X.Kb=function(e){return new ig(null,new x_(new Mg(Vf(bO(H(e,10)).a.Kc(),new f))))},U(aU,`FinalSplineBendpointsCalculator/lambda$1$Type`,1570),J(1571,1,uB,Hee),X.Mb=function(e){return!Fx(H(e,18))},U(aU,`FinalSplineBendpointsCalculator/lambda$2$Type`,1571),J(1572,1,uB,Uee),X.Mb=function(e){return xp(H(e,18),(fz(),n$))},U(aU,`FinalSplineBendpointsCalculator/lambda$3$Type`,1572),J(1573,1,Jz,Zue),X.Cd=function(e){Not(this.a,H(e,131))},U(aU,`FinalSplineBendpointsCalculator/lambda$4$Type`,1573),J(1574,1,Jz,Wee),X.Cd=function(e){BN(H(e,18).a)},U(aU,`FinalSplineBendpointsCalculator/lambda$5$Type`,1574),J(803,1,eU,Que),X.Kf=function(e,t){Xlt(this,H(e,36),t)},U(aU,`GraphTransformer`,803),J(517,22,{3:1,34:1,22:1,517:1},ou);var iDt,MX,aDt=pw(aU,`GraphTransformer/Mode`,517,cJ,JPe,Hm),oDt;J(1575,1,eU,Gee),X.Kf=function(e,t){int(H(e,36),t)},U(aU,`HierarchicalNodeResizingProcessor`,1575),J(1576,1,eU,Kee),X.Kf=function(e,t){QKe(H(e,36),t)},U(aU,`HierarchicalPortConstraintProcessor`,1576),J(1577,1,mV,qee),X.Ne=function(e,t){return o0e(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`HierarchicalPortConstraintProcessor/NodeComparator`,1577),J(1578,1,eU,Jee),X.Kf=function(e,t){tct(H(e,36),t)},U(aU,`HierarchicalPortDummySizeProcessor`,1578),J(1579,1,eU,Yee),X.Kf=function(e,t){aat(this,H(e,36),t)},X.a=0,U(aU,`HierarchicalPortOrthogonalEdgeRouter`,1579),J(1580,1,mV,Xee),X.Ne=function(e,t){return HCe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`HierarchicalPortOrthogonalEdgeRouter/1`,1580),J(1581,1,mV,Zee),X.Ne=function(e,t){return dUe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`HierarchicalPortOrthogonalEdgeRouter/2`,1581),J(1582,1,eU,Qee),X.Kf=function(e,t){b8e(H(e,36),t)},U(aU,`HierarchicalPortPositionProcessor`,1582),J(1583,1,eU,Lr),X.Kf=function(e,t){Fft(this,H(e,36))},X.a=0,X.c=0;var NX,PX;U(aU,`HighDegreeNodeLayeringProcessor`,1583),J(580,1,{580:1},$ee),X.b=-1,X.d=-1,U(aU,`HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation`,580),J(1584,1,{},ete),X.Kb=function(e){return Im(),yO(H(e,10))},X.Fb=function(e){return this===e},U(aU,`HighDegreeNodeLayeringProcessor/lambda$0$Type`,1584),J(1585,1,{},tte),X.Kb=function(e){return Im(),bO(H(e,10))},X.Fb=function(e){return this===e},U(aU,`HighDegreeNodeLayeringProcessor/lambda$1$Type`,1585),J(1591,1,eU,nte),X.Kf=function(e,t){Lst(this,H(e,36),t)},U(aU,`HyperedgeDummyMerger`,1591),J(804,1,{},pDe),X.a=!1,X.b=!1,X.c=!1,U(aU,`HyperedgeDummyMerger/MergeState`,804),J(1592,1,{},rte),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`HyperedgeDummyMerger/lambda$0$Type`,1592),J(1593,1,{},ite),X.Kb=function(e){return new ig(null,new kb(H(e,10).j,16))},U(aU,`HyperedgeDummyMerger/lambda$1$Type`,1593),J(1594,1,Jz,ate),X.Cd=function(e){H(e,12).p=-1},U(aU,`HyperedgeDummyMerger/lambda$2$Type`,1594),J(1595,1,eU,ote),X.Kf=function(e,t){Fst(H(e,36),t)},U(aU,`HypernodesProcessor`,1595),J(1596,1,eU,ste),X.Kf=function(e,t){$st(H(e,36),t)},U(aU,`InLayerConstraintProcessor`,1596),J(1597,1,eU,cte),X.Kf=function(e,t){Rqe(H(e,36),t)},U(aU,`InnermostNodeMarginCalculator`,1597),J(1598,1,eU,lte),X.Kf=function(e,t){Ndt(this,H(e,36))},X.a=qB,X.b=qB,X.c=KB,X.d=KB;var sDt=U(aU,`InteractiveExternalPortPositioner`,1598);J(1599,1,{},ute),X.Kb=function(e){return H(e,18).d.i},X.Fb=function(e){return this===e},U(aU,`InteractiveExternalPortPositioner/lambda$0$Type`,1599),J(1600,1,{},$ue),X.Kb=function(e){return UCe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(aU,`InteractiveExternalPortPositioner/lambda$1$Type`,1600),J(1601,1,{},dte),X.Kb=function(e){return H(e,18).c.i},X.Fb=function(e){return this===e},U(aU,`InteractiveExternalPortPositioner/lambda$2$Type`,1601),J(1602,1,{},wa),X.Kb=function(e){return WCe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(aU,`InteractiveExternalPortPositioner/lambda$3$Type`,1602),J(1603,1,{},ede),X.Kb=function(e){return KTe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(aU,`InteractiveExternalPortPositioner/lambda$4$Type`,1603),J(1604,1,{},tde),X.Kb=function(e){return qTe(this.a,Ip(e))},X.Fb=function(e){return this===e},U(aU,`InteractiveExternalPortPositioner/lambda$5$Type`,1604),J(81,22,{3:1,34:1,22:1,81:1,196:1},su),X.dg=function(){switch(this.g){case 15:return new yre;case 22:return new bre;case 47:return new Cre;case 28:case 35:return new Ste;case 32:return new bee;case 42:return new en;case 1:return new Cee;case 41:return new wee;case 56:return new Que((tT(),MX));case 0:return new Que((tT(),iDt));case 2:return new tn;case 54:return new Tee;case 33:return new kee;case 51:return new zee;case 55:return new Gee;case 13:return new Kee;case 38:return new Jee;case 44:return new Yee;case 40:return new Qee;case 9:return new Lr;case 49:return new YCe;case 37:return new nte;case 43:return new ote;case 27:return new ste;case 30:return new cte;case 3:return new lte;case 18:return new pte;case 29:return new mte;case 5:return new Rr;case 50:return new fte;case 34:return new zr;case 36:return new Cte;case 52:return new Sce;case 11:return new wte;case 7:return new kce;case 39:return new Tte;case 45:return new Ete;case 16:return new Dte;case 10:return new Dye;case 48:return new jte;case 21:return new Mte;case 23:return new Es((hw(),Q0));case 8:return new Pte;case 12:return new Ite;case 4:return new Lte;case 19:return new Fce;case 17:return new nn;case 53:return new rn;case 6:return new ine;case 25:return new Vo;case 46:return new Zte;case 31:return new cm;case 14:return new fne;case 26:return new Are;case 20:return new hne;case 24:return new Es((hw(),$0));default:throw R(new Ps(pgt+(this.f==null?``+this.g:this.f)))}};var FX,cDt,lDt,uDt,dDt,fDt,pDt,mDt,hDt,gDt,IX,LX,RX,_Dt,vDt,yDt,bDt,zX,xDt,SDt,BX,CDt,wDt,TDt,VX,EDt,DDt,HX,UX,ODt,WX,GX,KX,qX,JX,YX,XX,ZX,QX,kDt,ADt,jDt,$X,MDt,NDt,PDt,eZ,FDt,tZ,nZ,rZ,iZ,aZ,IDt,LDt,RDt,zDt,BDt=pw(aU,oU,81,cJ,Znt,yDe),VDt;J(1605,1,eU,pte),X.Kf=function(e,t){jdt(H(e,36),t)},U(aU,`InvertedPortProcessor`,1605),J(1606,1,eU,mte),X.Kf=function(e,t){bot(H(e,36),t)},U(aU,`LabelAndNodeSizeProcessor`,1606),J(1607,1,uB,hte),X.Mb=function(e){return H(e,10).k==(sN(),OX)},U(aU,`LabelAndNodeSizeProcessor/lambda$0$Type`,1607),J(1608,1,uB,gte),X.Mb=function(e){return H(e,10).k==(sN(),TX)},U(aU,`LabelAndNodeSizeProcessor/lambda$1$Type`,1608),J(1609,1,Jz,mDe),X.Cd=function(e){W_e(this.b,this.a,this.c,H(e,10))},X.a=!1,X.c=!1,U(aU,`LabelAndNodeSizeProcessor/lambda$2$Type`,1609),J(1610,1,eU,Rr),X.Kf=function(e,t){Zut(H(e,36),t)};var HDt;U(aU,`LabelDummyInserter`,1610),J(1611,1,_V,_te),X.Lb=function(e){return Qu(q(H(e,72),(sz(),K$)))===Qu((KC(),j8))},X.Fb=function(e){return this===e},X.Mb=function(e){return Qu(q(H(e,72),(sz(),K$)))===Qu((KC(),j8))},U(aU,`LabelDummyInserter/1`,1611),J(1612,1,eU,fte),X.Kf=function(e,t){Put(H(e,36),t)},U(aU,`LabelDummyRemover`,1612),J(1613,1,uB,vte),X.Mb=function(e){return ks(Fp(q(H(e,72),(sz(),sMt))))},U(aU,`LabelDummyRemover/lambda$0$Type`,1613),J(1378,1,eU,zr),X.Kf=function(e,t){wut(this,H(e,36),t)},X.a=null;var UDt;U(aU,`LabelDummySwitcher`,1378),J(293,1,{293:1},rot),X.c=0,X.d=null,X.f=0,U(aU,`LabelDummySwitcher/LabelDummyInfo`,293),J(1379,1,{},yte),X.Kb=function(e){return $w(),new ig(null,new kb(H(e,30).a,16))},U(aU,`LabelDummySwitcher/lambda$0$Type`,1379),J(1380,1,uB,bte),X.Mb=function(e){return $w(),H(e,10).k==(sN(),EX)},U(aU,`LabelDummySwitcher/lambda$1$Type`,1380),J(1381,1,{},nde),X.Kb=function(e){return aTe(this.a,H(e,10))},U(aU,`LabelDummySwitcher/lambda$2$Type`,1381),J(1382,1,Jz,rde),X.Cd=function(e){HMe(this.a,H(e,293))},U(aU,`LabelDummySwitcher/lambda$3$Type`,1382),J(1383,1,mV,xte),X.Ne=function(e,t){return Oje(H(e,293),H(t,293))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`LabelDummySwitcher/lambda$4$Type`,1383),J(802,1,eU,Ste),X.Kf=function(e,t){AHe(H(e,36),t)},U(aU,`LabelManagementProcessor`,802),J(1614,1,eU,Cte),X.Kf=function(e,t){Zrt(H(e,36),t)},U(aU,`LabelSideSelector`,1614),J(1622,1,eU,wte),X.Kf=function(e,t){Ect(H(e,36),t)},U(aU,`LayerConstraintPostprocessor`,1622),J(1623,1,eU,kce),X.Kf=function(e,t){Met(H(e,36),t)};var WDt;U(aU,`LayerConstraintPreprocessor`,1623),J(371,22,{3:1,34:1,22:1,371:1},Nve);var oZ,sZ,cZ,lZ,GDt=pw(aU,`LayerConstraintPreprocessor/HiddenNodeConnections`,371,cJ,HRe,bDe),KDt;J(1624,1,eU,Tte),X.Kf=function(e,t){Ilt(H(e,36),t)},U(aU,`LayerSizeAndGraphHeightCalculator`,1624),J(1625,1,eU,Ete),X.Kf=function(e,t){ant(H(e,36),t)},U(aU,`LongEdgeJoiner`,1625),J(1626,1,eU,Dte),X.Kf=function(e,t){flt(H(e,36),t)},U(aU,`LongEdgeSplitter`,1626),J(1627,1,eU,Dye),X.Kf=function(e,t){pdt(this,H(e,36),t)},X.e=0,X.f=0,X.j=0,X.k=0,X.n=0,X.o=0;var qDt,JDt;U(aU,`NodePromotion`,1627),J(1628,1,mV,Ote),X.Ne=function(e,t){return $Ye(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`NodePromotion/1`,1628),J(1629,1,mV,kte),X.Ne=function(e,t){return eXe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`NodePromotion/2`,1629),J(1630,1,{},Ate),X.Kb=function(e){return H(e,42),Lm(),sp(),!0},X.Fb=function(e){return this===e},U(aU,`NodePromotion/lambda$0$Type`,1630),J(1631,1,{},Oa),X.Kb=function(e){return zFe(this.a,H(e,42))},X.Fb=function(e){return this===e},X.a=0,U(aU,`NodePromotion/lambda$1$Type`,1631),J(1632,1,{},ide),X.Kb=function(e){return RFe(this.a,H(e,42))},X.Fb=function(e){return this===e},X.a=0,U(aU,`NodePromotion/lambda$2$Type`,1632),J(1633,1,eU,jte),X.Kf=function(e,t){wft(H(e,36),t)},U(aU,`NorthSouthPortPostprocessor`,1633),J(1634,1,eU,Mte),X.Kf=function(e,t){eft(H(e,36),t)},U(aU,`NorthSouthPortPreprocessor`,1634),J(1635,1,mV,Nte),X.Ne=function(e,t){return wJe(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`NorthSouthPortPreprocessor/lambda$0$Type`,1635),J(1636,1,eU,Pte),X.Kf=function(e,t){sst(H(e,36),t)},U(aU,`PartitionMidprocessor`,1636),J(1637,1,uB,Fte),X.Mb=function(e){return xp(H(e,10),(sz(),x1))},U(aU,`PartitionMidprocessor/lambda$0$Type`,1637),J(1638,1,Jz,ade),X.Cd=function(e){iPe(this.a,H(e,10))},U(aU,`PartitionMidprocessor/lambda$1$Type`,1638),J(1639,1,eU,Ite),X.Kf=function(e,t){Int(H(e,36),t)},U(aU,`PartitionPostprocessor`,1639),J(1640,1,eU,Lte),X.Kf=function(e,t){J9e(H(e,36),t)},U(aU,`PartitionPreprocessor`,1640),J(1641,1,uB,Rte),X.Mb=function(e){return xp(H(e,10),(sz(),x1))},U(aU,`PartitionPreprocessor/lambda$0$Type`,1641),J(1642,1,{},zte),X.Kb=function(e){return new ig(null,new x_(new Mg(Vf(bO(H(e,10)).a.Kc(),new f))))},U(aU,`PartitionPreprocessor/lambda$1$Type`,1642),J(1643,1,uB,Bte),X.Mb=function(e){return N1e(H(e,18))},U(aU,`PartitionPreprocessor/lambda$2$Type`,1643),J(1644,1,Jz,Vte),X.Cd=function(e){cYe(H(e,18))},U(aU,`PartitionPreprocessor/lambda$3$Type`,1644),J(1645,1,eU,Fce),X.Kf=function(e,t){Uot(H(e,36),t)};var YDt,XDt,uZ,ZDt,QDt,$Dt;U(aU,`PortListSorter`,1645),J(1648,1,mV,Hte),X.Ne=function(e,t){return Lze(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`PortListSorter/lambda$0$Type`,1648),J(1650,1,mV,Ute),X.Ne=function(e,t){return Tst(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`PortListSorter/lambda$1$Type`,1650),J(1646,1,{},Wte),X.Kb=function(e){return BE(),H(e,12).e},U(aU,`PortListSorter/lambda$2$Type`,1646),J(1647,1,{},Gte),X.Kb=function(e){return BE(),H(e,12).g},U(aU,`PortListSorter/lambda$3$Type`,1647),J(1649,1,mV,Kte),X.Ne=function(e,t){return uj(H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`PortListSorter/lambda$4$Type`,1649),J(1651,1,eU,nn),X.Kf=function(e,t){qet(H(e,36),t)},U(aU,`PortSideProcessor`,1651),J(1652,1,eU,rn),X.Kf=function(e,t){jat(H(e,36),t)},U(aU,`ReversedEdgeRestorer`,1652),J(1657,1,eU,Vo),X.Kf=function(e,t){P2e(this,H(e,36),t)},U(aU,`SelfLoopPortRestorer`,1657),J(1658,1,{},an),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`SelfLoopPortRestorer/lambda$0$Type`,1658),J(1659,1,uB,qte),X.Mb=function(e){return H(e,10).k==(sN(),OX)},U(aU,`SelfLoopPortRestorer/lambda$1$Type`,1659),J(1660,1,uB,Jte),X.Mb=function(e){return xp(H(e,10),(fz(),QQ))},U(aU,`SelfLoopPortRestorer/lambda$2$Type`,1660),J(1661,1,{},Yte),X.Kb=function(e){return H(q(H(e,10),(fz(),QQ)),337)},U(aU,`SelfLoopPortRestorer/lambda$3$Type`,1661),J(1662,1,Jz,Ea),X.Cd=function(e){fN(this.a,H(e,337))},U(aU,`SelfLoopPortRestorer/lambda$4$Type`,1662),J(805,1,Jz,Xte),X.Cd=function(e){S5e(H(e,105))},U(aU,`SelfLoopPortRestorer/lambda$5$Type`,805),J(1663,1,eU,Zte),X.Kf=function(e,t){e0e(H(e,36),t)},U(aU,`SelfLoopPostProcessor`,1663),J(1664,1,{},Qte),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`SelfLoopPostProcessor/lambda$0$Type`,1664),J(1665,1,uB,$te),X.Mb=function(e){return H(e,10).k==(sN(),OX)},U(aU,`SelfLoopPostProcessor/lambda$1$Type`,1665),J(1666,1,uB,ene),X.Mb=function(e){return xp(H(e,10),(fz(),QQ))},U(aU,`SelfLoopPostProcessor/lambda$2$Type`,1666),J(1667,1,Jz,tne),X.Cd=function(e){E3e(H(e,10))},U(aU,`SelfLoopPostProcessor/lambda$3$Type`,1667),J(1668,1,{},nne),X.Kb=function(e){return new ig(null,new kb(H(e,105).f,1))},U(aU,`SelfLoopPostProcessor/lambda$4$Type`,1668),J(1669,1,Jz,Ta),X.Cd=function(e){KRe(this.a,H(e,340))},U(aU,`SelfLoopPostProcessor/lambda$5$Type`,1669),J(1670,1,uB,rne),X.Mb=function(e){return!!H(e,105).i},U(aU,`SelfLoopPostProcessor/lambda$6$Type`,1670),J(1671,1,Jz,Da),X.Cd=function(e){Vme(this.a,H(e,105))},U(aU,`SelfLoopPostProcessor/lambda$7$Type`,1671),J(1653,1,eU,ine),X.Kf=function(e,t){Itt(H(e,36),t)},U(aU,`SelfLoopPreProcessor`,1653),J(1654,1,{},ane),X.Kb=function(e){return new ig(null,new kb(H(e,105).f,1))},U(aU,`SelfLoopPreProcessor/lambda$0$Type`,1654),J(1655,1,{},one),X.Kb=function(e){return H(e,340).a},U(aU,`SelfLoopPreProcessor/lambda$1$Type`,1655),J(1656,1,Jz,sne),X.Cd=function(e){hSe(H(e,18))},U(aU,`SelfLoopPreProcessor/lambda$2$Type`,1656),J(1672,1,eU,cm),X.Kf=function(e,t){B8e(this,H(e,36),t)},U(aU,`SelfLoopRouter`,1672),J(1673,1,{},cne),X.Kb=function(e){return new ig(null,new kb(H(e,30).a,16))},U(aU,`SelfLoopRouter/lambda$0$Type`,1673),J(1674,1,uB,lne),X.Mb=function(e){return H(e,10).k==(sN(),OX)},U(aU,`SelfLoopRouter/lambda$1$Type`,1674),J(1675,1,uB,une),X.Mb=function(e){return xp(H(e,10),(fz(),QQ))},U(aU,`SelfLoopRouter/lambda$2$Type`,1675),J(1676,1,{},dne),X.Kb=function(e){return H(q(H(e,10),(fz(),QQ)),337)},U(aU,`SelfLoopRouter/lambda$3$Type`,1676),J(1677,1,Jz,Pve),X.Cd=function(e){zNe(this.a,this.b,H(e,337))},U(aU,`SelfLoopRouter/lambda$4$Type`,1677),J(1678,1,eU,fne),X.Kf=function(e,t){Art(H(e,36),t)},U(aU,`SemiInteractiveCrossMinProcessor`,1678),J(1679,1,uB,pne),X.Mb=function(e){return H(e,10).k==(sN(),OX)},U(aU,`SemiInteractiveCrossMinProcessor/lambda$0$Type`,1679),J(1680,1,uB,on),X.Mb=function(e){return EAe(H(e,10))._b((sz(),M1))},U(aU,`SemiInteractiveCrossMinProcessor/lambda$1$Type`,1680),J(1681,1,mV,sn),X.Ne=function(e,t){return rqe(H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(aU,`SemiInteractiveCrossMinProcessor/lambda$2$Type`,1681),J(1682,1,{},mne),X.Ve=function(e,t){return aPe(H(e,10),H(t,10))},U(aU,`SemiInteractiveCrossMinProcessor/lambda$3$Type`,1682),J(1684,1,eU,hne),X.Kf=function(e,t){IL(H(e,36),t)},U(aU,`SortByInputModelProcessor`,1684),J(1685,1,uB,gne),X.Mb=function(e){return H(e,12).g.c.length!=0},U(aU,`SortByInputModelProcessor/lambda$0$Type`,1685),J(1686,1,Jz,ode),X.Cd=function(e){M5e(this.a,H(e,12))},U(aU,`SortByInputModelProcessor/lambda$1$Type`,1686),J(1759,817,{},mqe),X.df=function(e){var t,n,r,i;switch(this.c=e,this.a.g){case 2:t=new to,sl(jv(new ig(null,new kb(this.c.a.b,16)),new cn),new Uve(this,t)),WN(this,new vne),RC(t,new yne),t.c.length=0,sl(jv(new ig(null,new kb(this.c.a.b,16)),new bne),new sde(t)),WN(this,new xne),RC(t,new Sne),t.c.length=0,n=fSe(Xw(Nv(new ig(null,new kb(this.c.a.b,16)),new cde(this))),new Cne),sl(new ig(null,new kb(this.c.a.a,16)),new Ive(n,t)),WN(this,new Tne),RC(t,new Ene),t.c.length=0;break;case 3:r=new to,WN(this,new _ne),i=fSe(Xw(Nv(new ig(null,new kb(this.c.a.b,16)),new ka(this))),new wne),sl(jv(new ig(null,new kb(this.c.a.b,16)),new Dne),new Rve(i,r)),WN(this,new One),RC(r,new kne),r.c.length=0;break;default:throw R(new wo)}},X.b=0,U(sU,`EdgeAwareScanlineConstraintCalculation`,1759),J(1760,1,_V,_ne),X.Lb=function(e){return V(H(e,60).g,154)},X.Fb=function(e){return this===e},X.Mb=function(e){return V(H(e,60).g,154)},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$0$Type`,1760),J(1761,1,{},ka),X.Ye=function(e){return eP(this.a,H(e,60))},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$1$Type`,1761),J(1769,1,dB,Fve),X.de=function(){Fj(this.a,this.b,-1)},X.b=0,U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$10$Type`,1769),J(1771,1,_V,vne),X.Lb=function(e){return V(H(e,60).g,154)},X.Fb=function(e){return this===e},X.Mb=function(e){return V(H(e,60).g,154)},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$11$Type`,1771),J(1772,1,Jz,yne),X.Cd=function(e){H(e,380).de()},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$12$Type`,1772),J(1773,1,uB,bne),X.Mb=function(e){return V(H(e,60).g,10)},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$13$Type`,1773),J(1775,1,Jz,sde),X.Cd=function(e){FQe(this.a,H(e,60))},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$14$Type`,1775),J(1774,1,dB,zve),X.de=function(){Fj(this.b,this.a,-1)},X.a=0,U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$15$Type`,1774),J(1776,1,_V,xne),X.Lb=function(e){return V(H(e,60).g,10)},X.Fb=function(e){return this===e},X.Mb=function(e){return V(H(e,60).g,10)},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$16$Type`,1776),J(1777,1,Jz,Sne),X.Cd=function(e){H(e,380).de()},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$17$Type`,1777),J(1778,1,{},cde),X.Ye=function(e){return B7e(this.a,H(e,60))},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$18$Type`,1778),J(1779,1,{},Cne),X.We=function(){return 0},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$19$Type`,1779),J(1762,1,{},wne),X.We=function(){return 0},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$2$Type`,1762),J(1781,1,Jz,Ive),X.Cd=function(e){ZAe(this.a,this.b,H(e,316))},X.a=0,U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$20$Type`,1781),J(1780,1,dB,Lve),X.de=function(){Xet(this.a,this.b,-1)},X.b=0,U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$21$Type`,1780),J(1782,1,_V,Tne),X.Lb=function(e){return H(e,60),!0},X.Fb=function(e){return this===e},X.Mb=function(e){return H(e,60),!0},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$22$Type`,1782),J(1783,1,Jz,Ene),X.Cd=function(e){H(e,380).de()},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$23$Type`,1783),J(1763,1,uB,Dne),X.Mb=function(e){return V(H(e,60).g,10)},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$3$Type`,1763),J(1765,1,Jz,Rve),X.Cd=function(e){QAe(this.a,this.b,H(e,60))},X.a=0,U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$4$Type`,1765),J(1764,1,dB,Bve),X.de=function(){Fj(this.b,this.a,-1)},X.a=0,U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$5$Type`,1764),J(1766,1,_V,One),X.Lb=function(e){return H(e,60),!0},X.Fb=function(e){return this===e},X.Mb=function(e){return H(e,60),!0},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$6$Type`,1766),J(1767,1,Jz,kne),X.Cd=function(e){H(e,380).de()},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$7$Type`,1767),J(1768,1,uB,cn),X.Mb=function(e){return V(H(e,60).g,154)},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$8$Type`,1768),J(1770,1,Jz,Uve),X.Cd=function(e){MC(this.a,this.b,H(e,60))},U(sU,`EdgeAwareScanlineConstraintCalculation/lambda$9$Type`,1770),J(1586,1,eU,YCe),X.Kf=function(e,t){_lt(this,H(e,36),t)};var eOt;U(sU,`HorizontalGraphCompactor`,1586),J(1587,1,{},lde),X.ff=function(e,t){var n,r,i;return YUe(e,t)||(n=Xb(e),r=Xb(t),n&&n.k==(sN(),TX)||r&&r.k==(sN(),TX))?0:(i=H(q(this.a.a,(fz(),$Q)),312),qCe(i,n?n.k:(sN(),DX),r?r.k:(sN(),DX)))},X.gf=function(e,t){var n,r,i;return YUe(e,t)?1:(n=Xb(e),r=Xb(t),i=H(q(this.a.a,(fz(),$Q)),312),ap(i,n?n.k:(sN(),DX),r?r.k:(sN(),DX)))},U(sU,`HorizontalGraphCompactor/1`,1587),J(1588,1,{},Ane),X.ef=function(e,t){return Cl(),e.a.i==0},U(sU,`HorizontalGraphCompactor/lambda$0$Type`,1588),J(1589,1,{},Aa),X.ef=function(e,t){return cPe(this.a,e,t)},U(sU,`HorizontalGraphCompactor/lambda$1$Type`,1589),J(1730,1,{},KUe);var tOt,nOt;U(sU,`LGraphToCGraphTransformer`,1730),J(1738,1,uB,jne),X.Mb=function(e){return e!=null},U(sU,`LGraphToCGraphTransformer/0methodref$nonNull$Type`,1738),J(1731,1,{},Mne),X.Kb=function(e){return Rm(),OO(q(H(H(e,60).g,10),(fz(),WQ)))},U(sU,`LGraphToCGraphTransformer/lambda$0$Type`,1731),J(1732,1,{},Nne),X.Kb=function(e){return Rm(),TZe(H(H(e,60).g,154))},U(sU,`LGraphToCGraphTransformer/lambda$1$Type`,1732),J(1741,1,uB,Pne),X.Mb=function(e){return Rm(),V(H(e,60).g,10)},U(sU,`LGraphToCGraphTransformer/lambda$10$Type`,1741),J(1742,1,Jz,Fne),X.Cd=function(e){xPe(H(e,60))},U(sU,`LGraphToCGraphTransformer/lambda$11$Type`,1742),J(1743,1,uB,Ine),X.Mb=function(e){return Rm(),V(H(e,60).g,154)},U(sU,`LGraphToCGraphTransformer/lambda$12$Type`,1743),J(1747,1,Jz,Lne),X.Cd=function(e){wZe(H(e,60))},U(sU,`LGraphToCGraphTransformer/lambda$13$Type`,1747),J(1744,1,Jz,ja),X.Cd=function(e){Lxe(this.a,H(e,8))},X.a=0,U(sU,`LGraphToCGraphTransformer/lambda$14$Type`,1744),J(1745,1,Jz,Ma),X.Cd=function(e){zxe(this.a,H(e,116))},X.a=0,U(sU,`LGraphToCGraphTransformer/lambda$15$Type`,1745),J(1746,1,Jz,ude),X.Cd=function(e){Rxe(this.a,H(e,8))},X.a=0,U(sU,`LGraphToCGraphTransformer/lambda$16$Type`,1746),J(1748,1,{},ln),X.Kb=function(e){return Rm(),new ig(null,new x_(new Mg(Vf(bO(H(e,10)).a.Kc(),new f))))},U(sU,`LGraphToCGraphTransformer/lambda$17$Type`,1748),J(1749,1,uB,Rne),X.Mb=function(e){return Rm(),Fx(H(e,18))},U(sU,`LGraphToCGraphTransformer/lambda$18$Type`,1749),J(1750,1,Jz,dde),X.Cd=function(e){lWe(this.a,H(e,18))},U(sU,`LGraphToCGraphTransformer/lambda$19$Type`,1750),J(1734,1,Jz,fde),X.Cd=function(e){bLe(this.a,H(e,154))},U(sU,`LGraphToCGraphTransformer/lambda$2$Type`,1734),J(1751,1,{},un),X.Kb=function(e){return Rm(),new ig(null,new kb(H(e,30).a,16))},U(sU,`LGraphToCGraphTransformer/lambda$20$Type`,1751),J(1752,1,{},dn),X.Kb=function(e){return Rm(),new ig(null,new x_(new Mg(Vf(bO(H(e,10)).a.Kc(),new f))))},U(sU,`LGraphToCGraphTransformer/lambda$21$Type`,1752),J(1753,1,{},zne),X.Kb=function(e){return Rm(),H(q(H(e,18),(fz(),n$)),15)},U(sU,`LGraphToCGraphTransformer/lambda$22$Type`,1753),J(1754,1,uB,fn),X.Mb=function(e){return JCe(H(e,15))},U(sU,`LGraphToCGraphTransformer/lambda$23$Type`,1754),J(1755,1,Jz,pde),X.Cd=function(e){E7e(this.a,H(e,15))},U(sU,`LGraphToCGraphTransformer/lambda$24$Type`,1755),J(1733,1,Jz,Wve),X.Cd=function(e){bze(this.a,this.b,H(e,154))},U(sU,`LGraphToCGraphTransformer/lambda$3$Type`,1733),J(1735,1,{},pn),X.Kb=function(e){return Rm(),new ig(null,new kb(H(e,30).a,16))},U(sU,`LGraphToCGraphTransformer/lambda$4$Type`,1735),J(1736,1,{},Bne),X.Kb=function(e){return Rm(),new ig(null,new x_(new Mg(Vf(bO(H(e,10)).a.Kc(),new f))))},U(sU,`LGraphToCGraphTransformer/lambda$5$Type`,1736),J(1737,1,{},Vne),X.Kb=function(e){return Rm(),H(q(H(e,18),(fz(),n$)),15)},U(sU,`LGraphToCGraphTransformer/lambda$6$Type`,1737),J(1739,1,Jz,mde),X.Cd=function(e){V7e(this.a,H(e,15))},U(sU,`LGraphToCGraphTransformer/lambda$8$Type`,1739),J(1740,1,Jz,Gve),X.Cd=function(e){gSe(this.a,this.b,H(e,154))},U(sU,`LGraphToCGraphTransformer/lambda$9$Type`,1740),J(1729,1,{},Hne),X.cf=function(e){var t,n,r,i,a;for(this.a=e,this.d=new No,this.c=dS(vwt,Oz,125,this.a.a.a.c.length,0,1),this.b=0,n=new L(this.a.a.a);n.a=_&&(Cf(o,bD(f)),b=r.Math.max(b,x[f-1]-p),l+=g,v+=x[f-1]-v,p=x[f-1],g=u[f]),g=r.Math.max(g,u[f]),++f;l+=g}h=r.Math.min(1/b,1/t.b/l),h>i&&(i=h,n=o)}return n},X.pg=function(){return!1},U(mU,`MSDCutIndexHeuristic`,816),J(1683,1,eU,Are),X.Kf=function(e,t){iL(H(e,36),t)},U(mU,`SingleEdgeGraphWrapper`,1683),J(232,22,{3:1,34:1,22:1,232:1},du);var wZ,TZ,EZ,DZ,OZ,kZ,AZ=pw(hU,`CenterEdgeLabelPlacementStrategy`,232,cJ,BHe,wDe),wOt;J(431,22,{3:1,34:1,22:1,431:1},Xve);var jZ,TOt,EOt=pw(hU,`ConstraintCalculationStrategy`,431,cJ,YPe,TDe),DOt;J(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},Zve),X.dg=function(){return n9e(this)},X.qg=function(){return n9e(this)};var MZ,NZ,PZ,FZ=pw(hU,`CrossingMinimizationStrategy`,322,cJ,DIe,EDe),OOt;J(351,22,{3:1,34:1,22:1,351:1},Qve);var kOt,IZ,LZ,AOt=pw(hU,`CuttingStrategy`,351,cJ,OIe,DDe),RZ;J(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},fu),X.dg=function(){return Bet(this)},X.qg=function(){return Bet(this)};var jOt,MOt,zZ,NOt,BZ,POt=pw(hU,`CycleBreakingStrategy`,348,cJ,RBe,ODe),FOt;J(428,22,{3:1,34:1,22:1,428:1},$ve);var VZ,IOt,LOt=pw(hU,`DirectionCongruency`,428,cJ,Oy,kDe),ROt;J(460,22,{3:1,34:1,22:1,460:1},eye);var HZ,zOt,UZ,BOt=pw(hU,`EdgeConstraint`,460,cJ,kIe,IDe),VOt;J(283,22,{3:1,34:1,22:1,283:1},pu);var HOt,UOt,WZ,WOt,GZ,KZ,GOt=pw(hU,`EdgeLabelSideSelection`,283,cJ,LHe,LDe),qZ;J(488,22,{3:1,34:1,22:1,488:1},tye);var JZ,KOt,qOt=pw(hU,`EdgeStraighteningStrategy`,488,cJ,tFe,RDe),JOt;J(281,22,{3:1,34:1,22:1,281:1},mu);var YOt,XOt,ZOt,QOt,$Ot,ekt,tkt=pw(hU,`FixedAlignment`,281,cJ,RHe,FDe),nkt;J(282,22,{3:1,34:1,22:1,282:1},hu);var YZ,rkt,ikt,akt,XZ,ZZ,QZ=pw(hU,`GraphCompactionStrategy`,282,cJ,zHe,ADe),$Z;J(259,22,{3:1,34:1,22:1,259:1},gu);var eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ=pw(hU,`GraphProperties`,259,cJ,kqe,jDe),okt;J(299,22,{3:1,34:1,22:1,299:1},nye);var dQ,fQ,skt,pQ=pw(hU,`GreedySwitchType`,299,cJ,AIe,MDe),ckt;J(311,22,{3:1,34:1,22:1,311:1},rye);var mQ,hQ,gQ,lkt=pw(hU,`InLayerConstraint`,311,cJ,jIe,NDe),_Q;J(429,22,{3:1,34:1,22:1,429:1},iye);var ukt,dkt,fkt=pw(hU,`InteractiveReferencePoint`,429,cJ,Dy,PDe),pkt,mkt,vQ,yQ,hkt,gkt,_kt,bQ,vkt,xQ,SQ,CQ,wQ,TQ,EQ,DQ,OQ,ykt,kQ,AQ,bkt,xkt,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,Skt,Ckt,wkt,GQ,Tkt,Ekt,Dkt,KQ,qQ,Okt,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,kkt,Akt,jkt,r$;J(171,22,{3:1,34:1,22:1,171:1},_u);var i$,a$,o$,s$,c$,Mkt=pw(hU,`LayerConstraint`,171,cJ,BBe,zDe),Nkt;J(859,1,wV,Vce),X.hf=function(e){EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,xgt),``),`Direction Congruency`),`Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other.`),cAt),(AN(),A3)),LOt),rO((rA(),T3))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Sgt),``),`Feedback Edges`),`Whether feedback edges should be highlighted by routing around the nodes.`),(sp(),!1)),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,bU),``),`Interactive Reference Point`),`Determines which point of a node is considered by interactive layout phases.`),DAt),A3),fkt),rO(T3)))),qb(e,bU,xU,OAt),qb(e,bU,TU,C$),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Cgt),``),`Merge Edges`),`Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,wgt),``),`Merge Hierarchy-Crossing Edges`),`If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port.`),!0),O3),wJ),rO(T3)))),EO(e,new DN(Uhe(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Tgt),``),`Allow Non-Flow Ports To Switch Sides`),`Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed.`),!1),O3),wJ),rO(E3)),K(B(FJ,1),Gz,2,6,[`org.eclipse.elk.layered.northOrSouthPort`])))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Egt),``),`Port Sorting Strategy`),`Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes.`),cjt),A3),mNt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Dgt),``),`Thoroughness`),`How much effort should be spent to produce a nice layout.`),bD(7)),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ogt),``),`Add Unnecessary Bendpoints`),`Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,kgt),``),`Generate Position and Layer IDs`),`If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,xU),`cycleBreaking`),`Cycle Breaking Strategy`),`Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right).`),oAt),A3),POt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,SU),KU),`Node Layering Strategy`),`Strategy for node layering.`),UAt),A3),y0),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Agt),KU),`Layer Constraint`),`Determines a constraint on the placement of the node regarding the layering.`),NAt),A3),Mkt),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,jgt),KU),`Layer Choice Constraint`),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),M3),kJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Mgt),KU),`Layer ID`),`Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),bD(-1)),M3),kJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ngt),__t),`Upper Bound On Width [MinWidth Layerer]`),`Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected.`),bD(4)),M3),kJ),rO(T3)))),qb(e,Ngt,SU,IAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,CU),__t),`Upper Layer Estimation Scaling Factor [MinWidth Layerer]`),`Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected.`),bD(2)),M3),kJ),rO(T3)))),qb(e,CU,SU,RAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Pgt),v_t),`Node Promotion Strategy`),`Reduces number of dummy nodes after layering phase (if possible).`),VAt),A3),cNt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Fgt),v_t),`Max Node Promotion Iterations`),`Limits the number of iterations for node promotion.`),bD(0)),M3),kJ),rO(T3)))),qb(e,Fgt,Pgt,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,wU),`layering.coffmanGraham`),`Layer Bound`),`The maximum number of nodes allowed per layer.`),bD(Cz)),M3),kJ),rO(T3)))),qb(e,wU,SU,AAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,TU),qU),`Crossing Minimization Strategy`),`Strategy for crossing minimization.`),aAt),A3),FZ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Igt),qU),`Force Node Model Order`),`The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Lgt),qU),`Hierarchical Sweepiness`),`How likely it is to use cross-hierarchy (1) vs bottom-up (-1).`),.1),k3),DJ),rO(T3)))),qb(e,Lgt,JU,p$),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,EU),qU),`Semi-Interactive Crossing Minimization`),`Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints.`),!1),O3),wJ),rO(T3)))),qb(e,EU,TU,iAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Rgt),qU),`In Layer Predecessor of`),`Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer`),null),P3),FJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,zgt),qU),`In Layer Successor of`),`Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer`),null),P3),FJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Bgt),qU),`Position Choice Constraint`),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),M3),kJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Vgt),qU),`Position ID`),`Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),bD(-1)),M3),kJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Hgt),y_t),`Greedy Switch Activation Threshold`),`By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation.`),bD(40)),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ugt),y_t),`Greedy Switch Crossing Minimization`),`Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used.`),$kt),A3),pQ),rO(T3)))),qb(e,Ugt,TU,eAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,DU),`crossingMinimization.greedySwitchHierarchical`),`Greedy Switch Crossing Minimization (hierarchical)`),`Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges.`),Ykt),A3),pQ),rO(T3)))),qb(e,DU,TU,Xkt),qb(e,DU,JU,Zkt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,OU),b_t),`Node Placement Strategy`),`Strategy for node placement.`),ojt),A3),O0),rO(T3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,kU),b_t),`Favor Straight Edges Over Balancing`),`Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false.`),O3),wJ),rO(T3)))),qb(e,kU,OU,ZAt),qb(e,kU,OU,QAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,AU),x_t),`BK Edge Straightening`),`Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments.`),w$),A3),qOt),rO(T3)))),qb(e,AU,OU,qAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Wgt),x_t),`BK Fixed Alignment`),`Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four.`),T$),A3),tkt),rO(T3)))),qb(e,Wgt,OU,YAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ggt),`nodePlacement.linearSegments`),`Linear Segments Deflection Dampening`),`Dampens the movement of nodes to keep the diagram from getting too large.`),.3),k3),DJ),rO(T3)))),qb(e,Ggt,OU,ejt),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Kgt),`nodePlacement.networkSimplex`),`Node Flexibility`),`Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent.`),A3),$Mt),rO(w3)))),qb(e,Kgt,OU,ijt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,jU),`nodePlacement.networkSimplex.nodeFlexibility`),`Node Flexibility Default`),`Default value of the 'nodeFlexibility' option for the children of a hierarchical node.`),E$),A3),$Mt),rO(T3)))),qb(e,jU,OU,rjt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,qgt),S_t),`Self-Loop Distribution`),`Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE.`),gAt),A3),bNt),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Jgt),S_t),`Self-Loop Ordering`),`Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE.`),y$),A3),wNt),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,MU),`edgeRouting.splines`),`Spline Routing Mode`),`Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes.`),vAt),A3),ONt),rO(T3)))),qb(e,MU,YU,yAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,NU),`edgeRouting.splines.sloppy`),`Sloppy Spline Layer Spacing Factor`),`Spacing factor for routing area between layers when using sloppy spline routing.`),.2),k3),DJ),rO(T3)))),qb(e,NU,YU,S$),qb(e,NU,MU,bAt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ygt),`edgeRouting.polyline`),`Sloped Edge Zone Width`),`Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer.`),2),k3),DJ),rO(T3)))),qb(e,Ygt,YU,mAt),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Xgt),XU),`Spacing Base Value`),`An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node.`),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Zgt),XU),`Edge Node Between Layers Spacing`),`The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Qgt),XU),`Edge Edge Between Layer Spacing`),`Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,$gt),XU),`Node Node Between Layers Spacing`),`The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself.`),20),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,e_t),C_t),`Direction Priority`),`Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase.`),bD(0)),M3),kJ),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,t_t),C_t),`Shortness Priority`),`Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase.`),bD(0)),M3),kJ),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,n_t),C_t),`Straightness Priority`),`Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement.`),bD(0)),M3),kJ),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,r_t),w_t),Dht),`Tries to further compact components (disconnected sub-graphs).`),!1),O3),wJ),rO(T3)))),qb(e,r_t,EH,!0),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,i_t),T_t),`Post Compaction Strategy`),E_t),Lkt),A3),QZ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,a_t),T_t),`Post Compaction Constraint Calculation`),E_t),Ikt),A3),EOt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,PU),D_t),`High Degree Node Treatment`),`Makes room around high degree nodes to place leafs and trees.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,o_t),D_t),`High Degree Node Threshold`),`Whether a node is considered to have a high degree.`),bD(16)),M3),kJ),rO(T3)))),qb(e,o_t,PU,!0),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,s_t),D_t),`High Degree Node Maximum Tree Height`),`Maximum height of a subtree connected to a high degree node to be moved to separate layers.`),bD(5)),M3),kJ),rO(T3)))),qb(e,s_t,PU,!0),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,FU),O_t),`Graph Wrapping Strategy`),`For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'.`),Ijt),A3),INt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,IU),O_t),`Additional Wrapped Edges Spacing`),`To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing.`),10),k3),DJ),rO(T3)))),qb(e,IU,FU,yjt),qb(e,IU,FU,bjt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,LU),O_t),`Correction Factor for Wrapping`),`At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option.`),1),k3),DJ),rO(T3)))),qb(e,LU,FU,Sjt),qb(e,LU,FU,D$),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,RU),k_t),`Cutting Strategy`),`The strategy by which the layer indexes are determined at which the layering crumbles into chunks.`),k$),A3),AOt),rO(T3)))),qb(e,RU,FU,Ojt),qb(e,RU,FU,kjt),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,c_t),k_t),`Manually Specified Cuts`),`Allows the user to specify her own cuts for a certain graph.`),N3),nJ),rO(T3)))),qb(e,c_t,RU,wjt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,l_t),`wrapping.cutting.msd`),`MSD Freedom`),`The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts.`),Ejt),M3),kJ),rO(T3)))),qb(e,l_t,RU,O$),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,zU),A_t),`Validification Strategy`),`When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed.`),Bjt),A3),NNt),rO(T3)))),qb(e,zU,FU,Vjt),qb(e,zU,FU,Hjt),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,BU),A_t),`Valid Indices for Wrapping`),null),N3),nJ),rO(T3)))),qb(e,BU,FU,Rjt),qb(e,BU,FU,zjt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,VU),j_t),`Improve Cuts`),`For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought.`),!0),O3),wJ),rO(T3)))),qb(e,VU,FU,Njt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,HU),j_t),`Distance Penalty When Improving Cuts`),null),2),k3),DJ),rO(T3)))),qb(e,HU,FU,jjt),qb(e,HU,VU,!0),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,u_t),j_t),`Improve Wrapped Edges`),`The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges.`),!0),O3),wJ),rO(T3)))),qb(e,u_t,FU,Pjt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,d_t),M_t),`Edge Label Side Selection`),`Method to decide on edge label sides.`),fAt),A3),GOt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,f_t),M_t),`Edge Center Label Placement Strategy`),`Determines in which layer center labels of long edges should be placed.`),uAt),A3),AZ),bg(T3,K(B(D3,1),cB,170,0,[C3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,UU),ZU),`Consider Model Order`),`Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting.`),Gkt),A3),dNt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,p_t),ZU),`Consider Port Order`),`If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,m_t),ZU),`No Model Order`),`Set on a node to not set a model order for this node even though it is a real node.`),!1),O3),wJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,h_t),ZU),`Consider Model Order for Components`),`If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected.`),zkt),A3),bX),rO(T3)))),qb(e,h_t,EH,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,g_t),ZU),`Long Edge Ordering Strategy`),`Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout.`),d$),A3),XMt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,WU),ZU),`Crossing Counter Node Order Influence`),`Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0).`),0),k3),DJ),rO(T3)))),qb(e,WU,UU,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,GU),ZU),`Crossing Counter Port Order Influence`),`Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0).`),0),k3),DJ),rO(T3)))),qb(e,GU,UU,null),Upt((new Hce,e))};var Pkt,Fkt,l$,Ikt,u$,Lkt,Rkt,zkt,Bkt,Vkt,Hkt,d$,Ukt,f$,Wkt,Gkt,Kkt,qkt,Jkt,Ykt,Xkt,Zkt,Qkt,$kt,eAt,tAt,p$,nAt,rAt,m$,h$,g$,iAt,_$,aAt,v$,oAt,sAt,cAt,lAt,uAt,dAt,fAt,pAt,mAt,hAt,gAt,_At,y$,b$,vAt,yAt,x$,S$,bAt,xAt,SAt,CAt,wAt,TAt,EAt,DAt,C$,OAt,kAt,AAt,jAt,MAt,NAt,PAt,FAt,IAt,LAt,RAt,zAt,BAt,VAt,HAt,UAt,WAt,GAt,KAt,w$,qAt,JAt,T$,YAt,XAt,ZAt,QAt,$At,ejt,tjt,njt,E$,rjt,ijt,ajt,ojt,sjt,cjt,ljt,ujt,djt,fjt,pjt,mjt,hjt,gjt,_jt,vjt,yjt,bjt,xjt,Sjt,D$,Cjt,wjt,Tjt,Ejt,O$,Djt,k$,Ojt,kjt,Ajt,jjt,Mjt,Njt,A$,Pjt,Fjt,Ijt,Ljt,Rjt,zjt,j$,Bjt,Vjt,Hjt;U(hU,`LayeredMetaDataProvider`,859),J(998,1,wV,Hce),X.hf=function(e){Upt(e)};var M$,Ujt,Wjt,N$,P$,Gjt,Kjt,F$,qjt,Jjt,Yjt,I$,Xjt,L$,Zjt,R$,Qjt,z$,$jt,eMt,tMt,nMt,rMt,B$,iMt,V$,H$,U$,W$,aMt,oMt,G$,sMt,K$,cMt,q$,lMt,uMt,dMt,J$,Y$,X$,Z$,Q$,fMt,$$,pMt,mMt,hMt,e1,t1,n1,r1,gMt,i1,a1,_Mt,o1,s1,vMt,yMt,bMt,c1,l1,u1,xMt,SMt,d1,f1,CMt,wMt,p1,TMt,m1,h1,g1,_1,EMt,v1,y1,b1,DMt,OMt,kMt,x1,S1,C1,AMt,jMt,MMt,w1,T1,E1,D1,O1,k1,A1,j1,NMt,M1,PMt,N1,P1,F1,FMt,IMt,I1,L1,LMt,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,RMt,zMt,BMt,VMt,HMt,t0,UMt,WMt,GMt,n0,r0,KMt,qMt,i0,JMt,a0,o0;U(hU,`LayeredOptions`,998),J(999,1,{},jre),X.sf=function(){return new Jpe},X.tf=function(e){},U(hU,`LayeredOptions/LayeredFactory`,999),J(1391,1,{}),X.a=0;var s0;U(uW,`ElkSpacings/AbstractSpacingsBuilder`,1391),J(792,1391,{},_$e);var c0,l0;U(hU,`LayeredSpacings/LayeredSpacingsBuilder`,792),J(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},vu),X.dg=function(){return sat(this)},X.qg=function(){return sat(this)};var u0,d0,f0,p0,m0,h0,g0,_0,v0,y0=pw(hU,`LayeringStrategy`,265,cJ,JGe,BDe),YMt;J(390,22,{3:1,34:1,22:1,390:1},aye);var b0,x0,S0,XMt=pw(hU,`LongEdgeOrderingStrategy`,390,cJ,MIe,VDe),ZMt;J(203,22,{3:1,34:1,22:1,203:1},oye);var C0,w0,T0,QMt,$Mt=pw(hU,`NodeFlexibility`,203,cJ,URe,HDe),eNt;J(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},yu),X.dg=function(){return XP(this)},X.qg=function(){return XP(this)};var E0,tNt,nNt,D0,rNt,O0=pw(hU,`NodePlacementStrategy`,323,cJ,zBe,UDe),iNt;J(243,22,{3:1,34:1,22:1,243:1},bu);var k0,A0,j0,M0,aNt,oNt,N0,sNt,P0,F0,cNt=pw(hU,`NodePromotionStrategy`,243,cJ,Aqe,WDe),I0;J(284,22,{3:1,34:1,22:1,284:1},sye);var L0,R0,lNt,uNt,dNt=pw(hU,`OrderingStrategy`,284,cJ,WRe,GDe),fNt;J(430,22,{3:1,34:1,22:1,430:1},cye);var pNt,z0,mNt=pw(hU,`PortSortingStrategy`,430,cJ,XPe,KDe),hNt;J(463,22,{3:1,34:1,22:1,463:1},lye);var B0,V0,H0,gNt=pw(hU,`PortType`,463,cJ,NIe,qDe),U0;J(387,22,{3:1,34:1,22:1,387:1},uye);var _Nt,vNt,yNt,bNt=pw(hU,`SelfLoopDistributionStrategy`,387,cJ,PIe,JDe),xNt;J(349,22,{3:1,34:1,22:1,349:1},dye);var SNt,W0,CNt,wNt=pw(hU,`SelfLoopOrderingStrategy`,349,cJ,FIe,YDe),TNt;J(312,1,{312:1},wR),U(hU,`Spacings`,312),J(350,22,{3:1,34:1,22:1,350:1},fye);var ENt,DNt,G0,ONt=pw(hU,`SplineRoutingMode`,350,cJ,IIe,XDe),kNt;J(352,22,{3:1,34:1,22:1,352:1},pye);var ANt,jNt,MNt,NNt=pw(hU,`ValidifyStrategy`,352,cJ,LIe,ZDe),PNt;J(388,22,{3:1,34:1,22:1,388:1},mye);var K0,FNt,q0,INt=pw(hU,`WrappingStrategy`,388,cJ,RIe,zm),LNt;J(1398,1,dW,Pce),X.rg=function(e){return H(e,36),RNt},X.Kf=function(e,t){mlt(this,H(e,36),t)};var RNt;U(fW,`DepthFirstCycleBreaker`,1398),J(793,1,dW,KAe),X.rg=function(e){return H(e,36),zNt},X.Kf=function(e,t){gpt(this,H(e,36),t)},X.sg=function(e){return H($h(e,R0e(this.d,e.c.length)),10)};var zNt;U(fW,`GreedyCycleBreaker`,793),J(1401,793,dW,rxe),X.sg=function(e){var t,n,r,i=null;for(t=Cz,r=new L(e);r.a1&&(ks(Fp(q($_((Db(0,e.c.length),H(e.c[0],10))),(sz(),R$))))?ktt(e,this.d,H(this,669)):(iy(),ff(e,this.d)),gJe(this.e,e))},X.lg=function(e,t,n,r){var i,a,o,s,l,u,d;for(t!=CAe(n,e.length)&&(a=e[t-(n?1:-1)],jVe(this.f,a,n?(gw(),V0):(gw(),B0))),i=e[t][0],d=!r||i.k==(sN(),TX),u=Gx(e[t]),this.vg(u,d,!1,n),o=0,l=new L(u);l.a`),e0?Xy(this.a,e[t-1],e[t]):!n&&t1&&(ks(Fp(q($_((Db(0,e.c.length),H(e.c[0],10))),(sz(),R$))))?ktt(e,this.d,this):(iy(),ff(e,this.d)),ks(Fp(q($_((Db(0,e.c.length),H(e.c[0],10))),R$)))||gJe(this.e,e))},U(mW,`ModelOrderBarycenterHeuristic`,669),J(1866,1,mV,Ade),X.Ne=function(e,t){return p5e(this.a,H(e,10),H(t,10))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(mW,`ModelOrderBarycenterHeuristic/lambda$0$Type`,1866),J(1423,1,dW,Wce),X.rg=function(e){var t;return H(e,36),t=kd(ePt),Jh(t,(WM(),cX),(mz(),eZ)),t},X.Kf=function(e,t){HNe((H(e,36),t))};var ePt;U(mW,`NoCrossingMinimizer`,1423),J(809,413,uvt,Yhe),X.tg=function(e,t,n){var r,i,a,o,s,l,u,d,f=this.g,p,m;switch(n.g){case 1:for(i=0,a=0,d=new L(e.j);d.a1&&(i.j==(WR(),C5)?this.b[e]=!0:i.j==U5&&e>0&&(this.b[e-1]=!0))},X.f=0,U(lU,`AllCrossingsCounter`,1861),J(595,1,{},jw),X.b=0,X.d=0,U(lU,`BinaryIndexedTree`,595),J(532,1,{},xm);var tPt,e2;U(lU,`CrossingsCounter`,532),J(1950,1,mV,jde),X.Ne=function(e,t){return yAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(lU,`CrossingsCounter/lambda$0$Type`,1950),J(1951,1,mV,Mde),X.Ne=function(e,t){return bAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(lU,`CrossingsCounter/lambda$1$Type`,1951),J(1952,1,mV,Nde),X.Ne=function(e,t){return xAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(lU,`CrossingsCounter/lambda$2$Type`,1952),J(1953,1,mV,Pde),X.Ne=function(e,t){return SAe(this.a,H(e,12),H(t,12))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(lU,`CrossingsCounter/lambda$3$Type`,1953),J(1954,1,Jz,Fde),X.Cd=function(e){AUe(this.a,H(e,12))},U(lU,`CrossingsCounter/lambda$4$Type`,1954),J(1955,1,uB,Ide),X.Mb=function(e){return wye(this.a,H(e,12))},U(lU,`CrossingsCounter/lambda$5$Type`,1955),J(1956,1,Jz,Lde),X.Cd=function(e){Rbe(this,e)},U(lU,`CrossingsCounter/lambda$6$Type`,1956),J(1957,1,Jz,gye),X.Cd=function(e){var t;th(),ux(this.b,(t=this.a,H(e,12),t))},U(lU,`CrossingsCounter/lambda$7$Type`,1957),J(839,1,_V,Vre),X.Lb=function(e){return th(),xp(H(e,12),(fz(),KQ))},X.Fb=function(e){return this===e},X.Mb=function(e){return th(),xp(H(e,12),(fz(),KQ))},U(lU,`CrossingsCounter/lambda$8$Type`,839),J(1949,1,{},Rde),U(lU,`HyperedgeCrossingsCounter`,1949),J(478,1,{34:1,478:1},lm),X.Fd=function(e){return s1e(this,H(e,478))},X.b=0,X.c=0,X.e=0,X.f=0;var t2=U(lU,`HyperedgeCrossingsCounter/Hyperedge`,478);J(374,1,{34:1,374:1},Lv),X.Fd=function(e){return stt(this,H(e,374))},X.b=0,X.c=0;var n2=U(lU,`HyperedgeCrossingsCounter/HyperedgeCorner`,374);J(531,22,{3:1,34:1,22:1,531:1},_ye);var r2,i2,nPt=pw(lU,`HyperedgeCrossingsCounter/HyperedgeCorner/Type`,531,cJ,ZPe,$De),rPt;J(1425,1,dW,Gce),X.rg=function(e){return H(q(H(e,36),(fz(),AQ)),21).Hc((UF(),rQ))?iPt:null},X.Kf=function(e,t){Rj(this,H(e,36),t)};var iPt;U(hW,`InteractiveNodePlacer`,1425),J(1426,1,dW,Kce),X.rg=function(e){return H(q(H(e,36),(fz(),AQ)),21).Hc((UF(),rQ))?aPt:null},X.Kf=function(e,t){v2e(this,H(e,36),t)};var aPt,a2,o2;U(hW,`LinearSegmentsNodePlacer`,1426),J(261,1,{34:1,261:1},Bo),X.Fd=function(e){return Phe(this,H(e,261))},X.Fb=function(e){var t;return V(e,261)?(t=H(e,261),this.b==t.b):!1},X.Hb=function(){return this.b},X.Ib=function(){return`ls`+ZM(this.e)},X.a=0,X.b=0,X.c=-1,X.d=-1,X.g=0;var oPt=U(hW,`LinearSegmentsNodePlacer/LinearSegment`,261);J(1428,1,dW,xg),X.rg=function(e){return H(q(H(e,36),(fz(),AQ)),21).Hc((UF(),rQ))?sPt:null},X.Kf=function(e,t){tpt(this,H(e,36),t)},X.b=0,X.g=0;var sPt;U(hW,`NetworkSimplexPlacer`,1428),J(1447,1,mV,Hre),X.Ne=function(e,t){return hf(H(e,17).a,H(t,17).a)},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(hW,`NetworkSimplexPlacer/0methodref$compare$Type`,1447),J(1449,1,mV,Ure),X.Ne=function(e,t){return hf(H(e,17).a,H(t,17).a)},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(hW,`NetworkSimplexPlacer/1methodref$compare$Type`,1449),J(655,1,{655:1},vye);var cPt=U(hW,`NetworkSimplexPlacer/EdgeRep`,655);J(412,1,{412:1},Rv),X.b=!1;var lPt=U(hW,`NetworkSimplexPlacer/NodeRep`,412);J(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Zpe),U(hW,`NetworkSimplexPlacer/Path`,515),J(1429,1,{},Wre),X.Kb=function(e){return H(e,18).d.i.k},U(hW,`NetworkSimplexPlacer/Path/lambda$0$Type`,1429),J(1430,1,uB,Gre),X.Mb=function(e){return H(e,273)==(sN(),DX)},U(hW,`NetworkSimplexPlacer/Path/lambda$1$Type`,1430),J(1431,1,{},Kre),X.Kb=function(e){return H(e,18).d.i},U(hW,`NetworkSimplexPlacer/Path/lambda$2$Type`,1431),J(1432,1,uB,zde),X.Mb=function(e){return fTe(E$e(H(e,10)))},U(hW,`NetworkSimplexPlacer/Path/lambda$3$Type`,1432),J(1433,1,uB,hn),X.Mb=function(e){return zh(H(e,12))},U(hW,`NetworkSimplexPlacer/lambda$0$Type`,1433),J(1434,1,Jz,yye),X.Cd=function(e){_Se(this.a,this.b,H(e,12))},U(hW,`NetworkSimplexPlacer/lambda$1$Type`,1434),J(1443,1,Jz,La),X.Cd=function(e){W7e(this.a,H(e,18))},U(hW,`NetworkSimplexPlacer/lambda$10$Type`,1443),J(1444,1,{},qre),X.Kb=function(e){return lb(),new ig(null,new kb(H(e,30).a,16))},U(hW,`NetworkSimplexPlacer/lambda$11$Type`,1444),J(1445,1,Jz,Bde),X.Cd=function(e){qit(this.a,H(e,10))},U(hW,`NetworkSimplexPlacer/lambda$12$Type`,1445),J(1446,1,{},Jre),X.Kb=function(e){return lb(),bD(H(e,125).e)},U(hW,`NetworkSimplexPlacer/lambda$13$Type`,1446),J(1448,1,{},Yre),X.Kb=function(e){return lb(),bD(H(e,125).e)},U(hW,`NetworkSimplexPlacer/lambda$15$Type`,1448),J(1450,1,uB,Xre),X.Mb=function(e){return lb(),H(e,412).c.k==(sN(),OX)},U(hW,`NetworkSimplexPlacer/lambda$17$Type`,1450),J(1451,1,uB,Zre),X.Mb=function(e){return lb(),H(e,412).c.j.c.length>1},U(hW,`NetworkSimplexPlacer/lambda$18$Type`,1451),J(1452,1,Jz,zv),X.Cd=function(e){ZQe(this.c,this.b,this.d,this.a,H(e,412))},X.c=0,X.d=0,U(hW,`NetworkSimplexPlacer/lambda$19$Type`,1452),J(1435,1,{},Qre),X.Kb=function(e){return lb(),new ig(null,new kb(H(e,30).a,16))},U(hW,`NetworkSimplexPlacer/lambda$2$Type`,1435),J(1453,1,Jz,Vde),X.Cd=function(e){ySe(this.a,H(e,12))},X.a=0,U(hW,`NetworkSimplexPlacer/lambda$20$Type`,1453),J(1454,1,{},$re),X.Kb=function(e){return lb(),new ig(null,new kb(H(e,30).a,16))},U(hW,`NetworkSimplexPlacer/lambda$21$Type`,1454),J(1455,1,Jz,Hde),X.Cd=function(e){$Se(this.a,H(e,10))},U(hW,`NetworkSimplexPlacer/lambda$22$Type`,1455),J(1456,1,uB,eie),X.Mb=function(e){return fTe(e)},U(hW,`NetworkSimplexPlacer/lambda$23$Type`,1456),J(1457,1,{},tie),X.Kb=function(e){return lb(),new ig(null,new kb(H(e,30).a,16))},U(hW,`NetworkSimplexPlacer/lambda$24$Type`,1457),J(1458,1,uB,Ude),X.Mb=function(e){return Oxe(this.a,H(e,10))},U(hW,`NetworkSimplexPlacer/lambda$25$Type`,1458),J(1459,1,Jz,bye),X.Cd=function(e){h5e(this.a,this.b,H(e,10))},U(hW,`NetworkSimplexPlacer/lambda$26$Type`,1459),J(1460,1,uB,nie),X.Mb=function(e){return lb(),!Fx(H(e,18))},U(hW,`NetworkSimplexPlacer/lambda$27$Type`,1460),J(1461,1,uB,rie),X.Mb=function(e){return lb(),!Fx(H(e,18))},U(hW,`NetworkSimplexPlacer/lambda$28$Type`,1461),J(1462,1,{},Wde),X.Ve=function(e,t){return vSe(this.a,H(e,30),H(t,30))},U(hW,`NetworkSimplexPlacer/lambda$29$Type`,1462),J(1436,1,{},iie),X.Kb=function(e){return lb(),new ig(null,new x_(new Mg(Vf(bO(H(e,10)).a.Kc(),new f))))},U(hW,`NetworkSimplexPlacer/lambda$3$Type`,1436),J(1437,1,uB,aie),X.Mb=function(e){return lb(),gRe(H(e,18))},U(hW,`NetworkSimplexPlacer/lambda$4$Type`,1437),J(1438,1,Jz,Gde),X.Cd=function(e){wct(this.a,H(e,18))},U(hW,`NetworkSimplexPlacer/lambda$5$Type`,1438),J(1439,1,{},oie),X.Kb=function(e){return lb(),new ig(null,new kb(H(e,30).a,16))},U(hW,`NetworkSimplexPlacer/lambda$6$Type`,1439),J(1440,1,uB,sie),X.Mb=function(e){return lb(),H(e,10).k==(sN(),OX)},U(hW,`NetworkSimplexPlacer/lambda$7$Type`,1440),J(1441,1,{},gn),X.Kb=function(e){return lb(),new ig(null,new x_(new Mg(Vf(vO(H(e,10)).a.Kc(),new f))))},U(hW,`NetworkSimplexPlacer/lambda$8$Type`,1441),J(1442,1,uB,cie),X.Mb=function(e){return lb(),Uke(H(e,18))},U(hW,`NetworkSimplexPlacer/lambda$9$Type`,1442),J(1424,1,dW,qce),X.rg=function(e){return H(q(H(e,36),(fz(),AQ)),21).Hc((UF(),rQ))?uPt:null},X.Kf=function(e,t){$ct(H(e,36),t)};var uPt;U(hW,`SimpleNodePlacer`,1424),J(185,1,{185:1},Y),X.Ib=function(){var e=``;return this.c==(Ky(),c2)?e+=NV:this.c==s2&&(e+=MV),this.o==(qy(),d2)?e+=yht:this.o==f2?e+=`UP`:e+=`BALANCED`,e},U(vW,`BKAlignedLayout`,185),J(523,22,{3:1,34:1,22:1,523:1},xye);var s2,c2,l2=pw(vW,`BKAlignedLayout/HDirection`,523,cJ,ky,Bm),u2;J(522,22,{3:1,34:1,22:1,522:1},Sye);var d2,f2,dPt=pw(vW,`BKAlignedLayout/VDirection`,522,cJ,$Pe,Vm),p2;J(1699,1,{},Cye),U(vW,`BKAligner`,1699),J(1702,1,{},b4e),U(vW,`BKCompactor`,1702),J(663,1,{663:1},_n),X.a=0,U(vW,`BKCompactor/ClassEdge`,663),J(467,1,{467:1},Ho),X.a=null,X.b=0,U(vW,`BKCompactor/ClassNode`,467),J(1427,1,dW,kye),X.rg=function(e){return H(q(H(e,36),(fz(),AQ)),21).Hc((UF(),rQ))?m2:null},X.Kf=function(e,t){Apt(this,H(e,36),t)},X.d=!1;var m2;U(vW,`BKNodePlacer`,1427),J(1700,1,{},vn),X.d=0,U(vW,`NeighborhoodInformation`,1700),J(1701,1,mV,Kde),X.Ne=function(e,t){return NC(this,H(e,42),H(t,42))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(vW,`NeighborhoodInformation/NeighborComparator`,1701),J(823,1,{}),U(vW,`ThresholdStrategy`,823),J(1825,823,{},Uo),X.wg=function(e,t,n){return this.a.o==(qy(),f2)?KB:qB},X.xg=function(){},U(vW,`ThresholdStrategy/NullThresholdStrategy`,1825),J(587,1,{587:1},Aye),X.c=!1,X.d=!1,U(vW,`ThresholdStrategy/Postprocessable`,587),J(1826,823,{},Wo),X.wg=function(e,t,n){var r,i=t==n,a;return r=this.a.a[n.p]==t,i||r?(a=e,this.a.c,Ky(),i&&(a=tlt(this,t,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=tlt(this,n,!1)),a):e},X.xg=function(){for(var e,t,n,r,i;this.d.b!=0;)i=H(_Fe(this.d),587),r=kst(this,i),r.a&&(e=r.a,n=ks(this.a.f[this.a.g[i.b.p].p]),(n||Fx(e)||e.c.i.c!=e.d.i.c)&&(t=ctt(this,i),t||Ixe(this.e,i)));for(;this.e.a.c.length!=0;)ctt(this,H(CXe(this.e),587))},U(vW,`ThresholdStrategy/SimpleThresholdStrategy`,1826),J(645,1,{645:1,188:1,196:1},lie),X.dg=function(){return vJe(this)},X.qg=function(){return vJe(this)};var fPt;U(yW,`EdgeRouterFactory`,645),J(1485,1,dW,Jce),X.rg=function(e){return cit(H(e,36))},X.Kf=function(e,t){qL(H(e,36),t)};var pPt,mPt,hPt,gPt,_Pt,h2,vPt,g2;U(yW,`OrthogonalEdgeRouter`,1485),J(1478,1,dW,Oye),X.rg=function(e){return b3e(H(e,36))},X.Kf=function(e,t){oft(this,H(e,36),t)};var yPt,bPt,xPt,_2,v2,SPt;U(yW,`PolylineEdgeRouter`,1478),J(1479,1,_V,bn),X.Lb=function(e){return AJe(H(e,10))},X.Fb=function(e){return this===e},X.Mb=function(e){return AJe(H(e,10))},U(yW,`PolylineEdgeRouter/1`,1479),J(1872,1,uB,xn),X.Mb=function(e){return H(e,132).c==(sS(),y2)},U(bW,`HyperEdgeCycleDetector/lambda$0$Type`,1872),J(1873,1,{},Sn),X.Ze=function(e){return H(e,132).d},U(bW,`HyperEdgeCycleDetector/lambda$1$Type`,1873),J(1874,1,uB,Cn),X.Mb=function(e){return H(e,132).c==(sS(),y2)},U(bW,`HyperEdgeCycleDetector/lambda$2$Type`,1874),J(1875,1,{},wn),X.Ze=function(e){return H(e,132).d},U(bW,`HyperEdgeCycleDetector/lambda$3$Type`,1875),J(1876,1,{},Tn),X.Ze=function(e){return H(e,132).d},U(bW,`HyperEdgeCycleDetector/lambda$4$Type`,1876),J(1877,1,{},yn),X.Ze=function(e){return H(e,132).d},U(bW,`HyperEdgeCycleDetector/lambda$5$Type`,1877),J(118,1,{34:1,118:1},LT),X.Fd=function(e){return Fhe(this,H(e,118))},X.Fb=function(e){var t;return V(e,118)?(t=H(e,118),this.g==t.g):!1},X.Hb=function(){return this.g},X.Ib=function(){for(var e=new qf(`{`),t,n,r=new L(this.n);r.a`+this.b+` (`+dwe(this.c)+`)`},X.d=0,U(bW,`HyperEdgeSegmentDependency`,132),J(528,22,{3:1,34:1,22:1,528:1},Fye);var y2,b2,CPt=pw(bW,`HyperEdgeSegmentDependency/DependencyType`,528,cJ,eFe,eOe),wPt;J(1878,1,{},qde),U(bW,`HyperEdgeSegmentSplitter`,1878),J(1879,1,{},$he),X.a=0,X.b=0,U(bW,`HyperEdgeSegmentSplitter/AreaRating`,1879),J(339,1,{339:1},rh),X.a=0,X.b=0,X.c=0,U(bW,`HyperEdgeSegmentSplitter/FreeArea`,339),J(1880,1,mV,En),X.Ne=function(e,t){return SEe(H(e,118),H(t,118))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(bW,`HyperEdgeSegmentSplitter/lambda$0$Type`,1880),J(1881,1,Jz,BNe),X.Cd=function(e){Sze(this.a,this.d,this.c,this.b,H(e,118))},X.b=0,U(bW,`HyperEdgeSegmentSplitter/lambda$1$Type`,1881),J(1882,1,{},uie),X.Kb=function(e){return new ig(null,new kb(H(e,118).e,16))},U(bW,`HyperEdgeSegmentSplitter/lambda$2$Type`,1882),J(1883,1,{},die),X.Kb=function(e){return new ig(null,new kb(H(e,118).j,16))},U(bW,`HyperEdgeSegmentSplitter/lambda$3$Type`,1883),J(1884,1,{},fie),X.Ye=function(e){return z(Ip(e))},U(bW,`HyperEdgeSegmentSplitter/lambda$4$Type`,1884),J(664,1,{},SMe),X.a=0,X.b=0,X.c=0,U(bW,`OrthogonalRoutingGenerator`,664),J(1703,1,{},pie),X.Kb=function(e){return new ig(null,new kb(H(e,118).e,16))},U(bW,`OrthogonalRoutingGenerator/lambda$0$Type`,1703),J(1704,1,{},mie),X.Kb=function(e){return new ig(null,new kb(H(e,118).j,16))},U(bW,`OrthogonalRoutingGenerator/lambda$1$Type`,1704),J(670,1,{}),U(xW,`BaseRoutingDirectionStrategy`,670),J(1870,670,{},eme),X.yg=function(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(!e.r||e.q)for(f=t+e.o*n,d=new L(e.n);d.avH&&(o=f,a=e,i=new ku(p,o),Ih(s.a,i),HI(this,s,a,i,!1),m=e.r,m&&(h=z(Ip(mA(m.e,0))),i=new ku(h,o),Ih(s.a,i),HI(this,s,a,i,!1),o=t+m.o*n,a=m,i=new ku(h,o),Ih(s.a,i),HI(this,s,a,i,!1)),i=new ku(_,o),Ih(s.a,i),HI(this,s,a,i,!1)))},X.zg=function(e){return e.i.n.a+e.n.a+e.a.a},X.Ag=function(){return WR(),V5},X.Bg=function(){return WR(),w5},U(xW,`NorthToSouthRoutingStrategy`,1870),J(1871,670,{},tme),X.yg=function(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(!e.r||e.q)for(f=t-e.o*n,d=new L(e.n);d.avH&&(o=f,a=e,i=new ku(p,o),Ih(s.a,i),HI(this,s,a,i,!1),m=e.r,m&&(h=z(Ip(mA(m.e,0))),i=new ku(h,o),Ih(s.a,i),HI(this,s,a,i,!1),o=t-m.o*n,a=m,i=new ku(h,o),Ih(s.a,i),HI(this,s,a,i,!1)),i=new ku(_,o),Ih(s.a,i),HI(this,s,a,i,!1)))},X.zg=function(e){return e.i.n.a+e.n.a+e.a.a},X.Ag=function(){return WR(),w5},X.Bg=function(){return WR(),V5},U(xW,`SouthToNorthRoutingStrategy`,1871),J(1869,670,{},Zo),X.yg=function(e,t,n){var i,a,o,s,l,u,d,f,p,m,h,g,_;if(!e.r||e.q)for(f=t+e.o*n,d=new L(e.n);d.avH&&(o=f,a=e,i=new ku(o,p),Ih(s.a,i),HI(this,s,a,i,!0),m=e.r,m&&(h=z(Ip(mA(m.e,0))),i=new ku(o,h),Ih(s.a,i),HI(this,s,a,i,!0),o=t+m.o*n,a=m,i=new ku(o,h),Ih(s.a,i),HI(this,s,a,i,!0)),i=new ku(o,_),Ih(s.a,i),HI(this,s,a,i,!0)))},X.zg=function(e){return e.i.n.b+e.n.b+e.a.b},X.Ag=function(){return WR(),C5},X.Bg=function(){return WR(),U5},U(xW,`WestToEastRoutingStrategy`,1869),J(828,1,{},nL),X.Ib=function(){return ZM(this.a)},X.b=0,X.c=!1,X.d=!1,X.f=0,U(CW,`NubSpline`,828),J(418,1,{418:1},Wrt,pFe),U(CW,`NubSpline/PolarCP`,418),J(1480,1,dW,J2e),X.rg=function(e){return xM(H(e,36))},X.Kf=function(e,t){Pft(this,H(e,36),t)};var TPt,x2,EPt,DPt,OPt;U(CW,`SplineEdgeRouter`,1480),J(274,1,{274:1},eS),X.Ib=function(){return this.a+` ->(`+this.c+`) `+this.b},X.c=0,U(CW,`SplineEdgeRouter/Dependency`,274),J(465,22,{3:1,34:1,22:1,465:1},Iye);var S2,C2,kPt=pw(CW,`SplineEdgeRouter/SideToProcess`,465,cJ,oFe,tOe),APt;J(1481,1,uB,Dn),X.Mb=function(e){return NF(),!H(e,131).o},U(CW,`SplineEdgeRouter/lambda$0$Type`,1481),J(1482,1,{},On),X.Ze=function(e){return NF(),H(e,131).v+1},U(CW,`SplineEdgeRouter/lambda$1$Type`,1482),J(1483,1,Jz,jye),X.Cd=function(e){Gke(this.a,this.b,H(e,42))},U(CW,`SplineEdgeRouter/lambda$2$Type`,1483),J(1484,1,Jz,Mye),X.Cd=function(e){Kke(this.a,this.b,H(e,42))},U(CW,`SplineEdgeRouter/lambda$3$Type`,1484),J(131,1,{34:1,131:1},o7e,fR),X.Fd=function(e){return zhe(this,H(e,131))},X.b=0,X.e=!1,X.f=0,X.g=0,X.j=!1,X.k=!1,X.n=0,X.o=!1,X.p=!1,X.q=!1,X.s=0,X.u=0,X.v=0,X.F=0,U(CW,`SplineSegment`,131),J(468,1,{468:1},hie),X.a=0,X.b=!1,X.c=!1,X.d=!1,X.e=!1,X.f=0,U(CW,`SplineSegment/EdgeInformation`,468),J(1198,1,{},gie),U(DW,Mht,1198),J(1199,1,mV,_ie),X.Ne=function(e,t){return g9e(H(e,121),H(t,121))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(DW,Nht,1199),J(1197,1,{},wge),U(DW,`MrTree`,1197),J(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},Lye),X.dg=function(){return fP(this)},X.qg=function(){return fP(this)};var w2,T2,E2,D2,jPt=pw(DW,`TreeLayoutPhases`,405,cJ,QRe,nOe),MPt;J(1112,205,YV,UTe),X.rf=function(e,t){var n,r,i,a,o,s,l,u;for(ks(Fp(eF(e,(YI(),TFt))))||zy((n=new ta((Nl(),new Ds(e))),n)),o=t.eh(OW),o.Ug(`build tGraph`,1),s=(l=new nS,NT(l,e),pE(l,(UR(),H2),e),u=new eo,Yot(e,l,u),vst(e,l,u),l),o.Vg(),o=t.eh(OW),o.Ug(`Split graph`,1),a=nst(this.a,s),o.Vg(),i=new L(a);i.a`+Rb(this.c):`e_`+Nw(this)},U(AW,`TEdge`,65),J(121,137,{3:1,121:1,96:1,137:1},nS),X.Ib=function(){var e,t,n,r,i=null;for(r=iA(this.b,0);r.b!=r.d.c;)n=H(lx(r),40),i+=(n.c==null||n.c.length==0?`n_`+n.g:`n_`+n.c)+` +`;for(t=iA(this.a,0);t.b!=t.d.c;)e=H(lx(t),65),i+=(e.b&&e.c?Rb(e.b)+`->`+Rb(e.c):`e_`+Nw(e))+` +`;return i};var NPt=U(AW,`TGraph`,121);J(643,508,{3:1,508:1,643:1,96:1,137:1}),U(AW,`TShape`,643),J(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},VYe),X.Ib=function(){return Rb(this)};var O2=U(AW,`TNode`,40);J(236,1,Zz,za),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return new Ba(iA(this.a.d,0))},U(AW,`TNode/2`,236),J(329,1,Fz,Ba),X.Nb=function(e){qg(this,e)},X.Pb=function(){return H(lx(this.a),65).c},X.Ob=function(){return Age(this.a)},X.Qb=function(){FC(this.a)},U(AW,`TNode/2/1`,329),J(1923,1,eU,wie),X.Kf=function(e,t){Cpt(this,H(e,121),t)},U(MW,`CompactionProcessor`,1923),J(1924,1,mV,Zde),X.Ne=function(e,t){return oJe(this.a,H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$0$Type`,1924),J(1925,1,uB,Pye),X.Mb=function(e){return kPe(this.b,this.a,H(e,42))},X.a=0,X.b=0,U(MW,`CompactionProcessor/lambda$1$Type`,1925),J(1934,1,mV,Tie),X.Ne=function(e,t){return uMe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$10$Type`,1934),J(1935,1,mV,Eie),X.Ne=function(e,t){return KCe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$11$Type`,1935),J(1936,1,mV,Die),X.Ne=function(e,t){return dMe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$12$Type`,1936),J(1926,1,uB,Qde),X.Mb=function(e){return tCe(this.a,H(e,42))},X.a=0,U(MW,`CompactionProcessor/lambda$2$Type`,1926),J(1927,1,uB,$de),X.Mb=function(e){return nCe(this.a,H(e,42))},X.a=0,U(MW,`CompactionProcessor/lambda$3$Type`,1927),J(1928,1,uB,kn),X.Mb=function(e){return H(e,40).c.indexOf(kW)==-1},U(MW,`CompactionProcessor/lambda$4$Type`,1928),J(1929,1,{},efe),X.Kb=function(e){return pRe(this.a,H(e,40))},X.a=0,U(MW,`CompactionProcessor/lambda$5$Type`,1929),J(1930,1,{},tfe),X.Kb=function(e){return kUe(this.a,H(e,40))},X.a=0,U(MW,`CompactionProcessor/lambda$6$Type`,1930),J(1931,1,mV,Va),X.Ne=function(e,t){return dVe(this.a,H(e,240),H(t,240))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$7$Type`,1931),J(1932,1,mV,nfe),X.Ne=function(e,t){return fVe(this.a,H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$8$Type`,1932),J(1933,1,mV,Oie),X.Ne=function(e,t){return ip(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(MW,`CompactionProcessor/lambda$9$Type`,1933),J(1921,1,eU,kie),X.Kf=function(e,t){ZF(H(e,121),t)},U(MW,`DirectionProcessor`,1921),J(1913,1,eU,HTe),X.Kf=function(e,t){mst(this,H(e,121),t)},U(MW,`FanProcessor`,1913),J(1937,1,eU,Aie),X.Kf=function(e,t){Git(H(e,121),t)},U(MW,`GraphBoundsProcessor`,1937),J(1938,1,{},An),X.Ye=function(e){return H(e,40).e.a},U(MW,`GraphBoundsProcessor/lambda$0$Type`,1938),J(1939,1,{},jie),X.Ye=function(e){return H(e,40).e.b},U(MW,`GraphBoundsProcessor/lambda$1$Type`,1939),J(1940,1,{},Mie),X.Ye=function(e){return K_e(H(e,40))},U(MW,`GraphBoundsProcessor/lambda$2$Type`,1940),J(1941,1,{},Nie),X.Ye=function(e){return G_e(H(e,40))},U(MW,`GraphBoundsProcessor/lambda$3$Type`,1941),J(262,22,{3:1,34:1,22:1,262:1,196:1},Su),X.dg=function(){switch(this.g){case 0:return new yme;case 1:return new HTe;case 2:return new vme;case 3:return new Rie;case 4:return new Fie;case 8:return new Pie;case 5:return new kie;case 6:return new Bie;case 7:return new wie;case 9:return new Aie;case 10:return new Vie;default:throw R(new Ps(pgt+(this.f==null?``+this.g:this.f)))}};var PPt,FPt,IPt,k2,LPt,RPt,zPt,BPt,VPt,HPt,UPt,WPt=pw(MW,oU,262,cJ,Qqe,rOe),GPt;J(1920,1,eU,Pie),X.Kf=function(e,t){Qdt(H(e,121),t)},U(MW,`LevelCoordinatesProcessor`,1920),J(1918,1,eU,Fie),X.Kf=function(e,t){Rnt(this,H(e,121),t)},X.a=0,U(MW,`LevelHeightProcessor`,1918),J(1919,1,Zz,Iie),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return iy(),tl(),JJ},U(MW,`LevelHeightProcessor/1`,1919),J(1914,1,eU,vme),X.Kf=function(e,t){Ait(this,H(e,121),t)},U(MW,`LevelProcessor`,1914),J(1915,1,uB,Lie),X.Mb=function(e){return ks(Fp(q(H(e,40),(UR(),K2))))},U(MW,`LevelProcessor/lambda$0$Type`,1915),J(1916,1,eU,Rie),X.Kf=function(e,t){IN(this,H(e,121),t)},X.a=0,U(MW,`NeighborsProcessor`,1916),J(1917,1,Zz,zie),X.Jc=function(e){Ax(this,e)},X.Kc=function(){return iy(),tl(),JJ},U(MW,`NeighborsProcessor/1`,1917),J(1922,1,eU,Bie),X.Kf=function(e,t){pst(this,H(e,121),t)},X.a=0,U(MW,`NodePositionProcessor`,1922),J(1912,1,eU,yme),X.Kf=function(e,t){blt(this,H(e,121),t)},U(MW,`RootProcessor`,1912),J(1942,1,eU,Vie),X.Kf=function(e,t){M0e(H(e,121),t)},U(MW,`Untreeifyer`,1942),J(392,22,{3:1,34:1,22:1,392:1},Rye);var A2,j2,KPt,qPt=pw(PW,`EdgeRoutingMode`,392,cJ,BIe,iOe),JPt,M2,N2,YPt,XPt,ZPt,QPt,$Pt,eFt,tFt,nFt,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,rFt,iFt,G2,K2,q2,J2;J(862,1,wV,Yce),X.hf=function(e){EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,gvt),``),Cvt),`Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level`),(sp(),!1)),(AN(),O3)),wJ),rO((rA(),T3))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,_vt),``),`Edge End Texture Length`),`Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing.`),7),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,vvt),``),`Tree Level`),`The index for the tree level the node is in`),bD(0)),M3),kJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,yvt),``),Cvt),`When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint`),bD(-1)),M3),kJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,bvt),``),`Weighting of Nodes`),`Which weighting to use when computing a node order.`),mFt),A3),zFt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,xvt),``),`Edge Routing Mode`),`Chooses an Edge Routing algorithm.`),cFt),A3),qPt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Svt),``),`Search Order`),`Which search order to use when computing a spanning tree.`),dFt),A3),UFt),rO(T3)))),Aft((new Qce,e))};var aFt,oFt,sFt,cFt,lFt,uFt,dFt,fFt,pFt,mFt;U(PW,`MrTreeMetaDataProvider`,862),J(1006,1,wV,Qce),X.hf=function(e){Aft(e)};var hFt,gFt,_Ft,Y2,vFt,yFt,X2,bFt,xFt,SFt,CFt,wFt,Z2,Q2,TFt,EFt,DFt,OFt,$2,e4,kFt,AFt,jFt,t4,MFt,NFt,PFt,FFt,IFt,n4,LFt;U(PW,`MrTreeOptions`,1006),J(1007,1,{},Hie),X.sf=function(){return new UTe},X.tf=function(e){},U(PW,`MrTreeOptions/MrtreeFactory`,1007),J(353,22,{3:1,34:1,22:1,353:1},zye);var r4,i4,a4,RFt,zFt=pw(PW,`OrderWeighting`,353,cJ,$Re,aOe),BFt;J(433,22,{3:1,34:1,22:1,433:1},Bye);var VFt,HFt,UFt=pw(PW,`TreeifyingOrder`,433,cJ,iFe,oOe),WFt;J(1486,1,dW,Vr),X.rg=function(e){return H(e,121),GFt},X.Kf=function(e,t){rT(this,H(e,121),t)};var GFt;U(`org.eclipse.elk.alg.mrtree.p1treeify`,`DFSTreeifyer`,1486),J(1487,1,dW,$ce),X.rg=function(e){return H(e,121),KFt},X.Kf=function(e,t){Rit(this,H(e,121),t)};var KFt;U(IW,`NodeOrderer`,1487),J(1494,1,{},rae),X.td=function(e){return Yke(e)},U(IW,`NodeOrderer/0methodref$lambda$6$Type`,1494),J(1488,1,uB,iae),X.Mb=function(e){return qC(),ks(Fp(q(H(e,40),(UR(),K2))))},U(IW,`NodeOrderer/lambda$0$Type`,1488),J(1489,1,uB,aae),X.Mb=function(e){return qC(),H(q(H(e,40),(YI(),$2)),17).a<0},U(IW,`NodeOrderer/lambda$1$Type`,1489),J(1490,1,uB,ife),X.Mb=function(e){return wKe(this.a,H(e,40))},U(IW,`NodeOrderer/lambda$2$Type`,1490),J(1491,1,uB,rfe),X.Mb=function(e){return _Re(this.a,H(e,40))},U(IW,`NodeOrderer/lambda$3$Type`,1491),J(1492,1,mV,oae),X.Ne=function(e,t){return UWe(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(IW,`NodeOrderer/lambda$4$Type`,1492),J(1493,1,uB,sae),X.Mb=function(e){return qC(),H(q(H(e,40),(UR(),$Pt)),17).a!=0},U(IW,`NodeOrderer/lambda$5$Type`,1493),J(1495,1,dW,Zce),X.rg=function(e){return H(e,121),qFt},X.Kf=function(e,t){DI(this,H(e,121),t)},X.b=0;var qFt;U(`org.eclipse.elk.alg.mrtree.p3place`,`NodePlacer`,1495),J(1496,1,dW,Xce),X.rg=function(e){return H(e,121),JFt},X.Kf=function(e,t){oot(H(e,121),t)};var JFt;U(LW,`EdgeRouter`,1496),J(1498,1,mV,nae),X.Ne=function(e,t){return hf(H(e,17).a,H(t,17).a)},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/0methodref$compare$Type`,1498),J(1503,1,{},Wie),X.Ye=function(e){return z(Ip(e))},U(LW,`EdgeRouter/1methodref$doubleValue$Type`,1503),J(1505,1,mV,jn),X.Ne=function(e,t){return nO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/2methodref$compare$Type`,1505),J(1507,1,mV,Gie),X.Ne=function(e,t){return nO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/3methodref$compare$Type`,1507),J(1509,1,{},Uie),X.Ye=function(e){return z(Ip(e))},U(LW,`EdgeRouter/4methodref$doubleValue$Type`,1509),J(1511,1,mV,Kie),X.Ne=function(e,t){return nO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/5methodref$compare$Type`,1511),J(1513,1,mV,qie),X.Ne=function(e,t){return nO(z(Ip(e)),z(Ip(t)))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/6methodref$compare$Type`,1513),J(1497,1,{},Jie),X.Kb=function(e){return JC(),H(q(H(e,40),(YI(),n4)),17)},U(LW,`EdgeRouter/lambda$0$Type`,1497),J(1508,1,{},Yie),X.Kb=function(e){return _we(H(e,40))},U(LW,`EdgeRouter/lambda$11$Type`,1508),J(1510,1,{},Qye),X.Kb=function(e){return Bh(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(LW,`EdgeRouter/lambda$13$Type`,1510),J(1512,1,{},$ye),X.Kb=function(e){return vwe(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(LW,`EdgeRouter/lambda$15$Type`,1512),J(1514,1,mV,Xie),X.Ne=function(e,t){return G1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/lambda$17$Type`,1514),J(1515,1,mV,Zie),X.Ne=function(e,t){return K1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/lambda$18$Type`,1515),J(1516,1,mV,Qie),X.Ne=function(e,t){return J1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/lambda$19$Type`,1516),J(1499,1,uB,afe),X.Mb=function(e){return CFe(this.a,H(e,40))},X.a=0,U(LW,`EdgeRouter/lambda$2$Type`,1499),J(1517,1,mV,$ie),X.Ne=function(e,t){return q1e(H(e,65),H(t,65))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/lambda$20$Type`,1517),J(1500,1,mV,eae),X.Ne=function(e,t){return yh(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/lambda$3$Type`,1500),J(1501,1,mV,tae),X.Ne=function(e,t){return hke(H(e,40),H(t,40))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`EdgeRouter/lambda$4$Type`,1501),J(1502,1,{},cae),X.Kb=function(e){return ywe(H(e,40))},U(LW,`EdgeRouter/lambda$5$Type`,1502),J(1504,1,{},ebe),X.Kb=function(e){return Wke(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(LW,`EdgeRouter/lambda$7$Type`,1504),J(1506,1,{},tbe),X.Kb=function(e){return bwe(this.b,this.a,H(e,40))},X.a=0,X.b=0,U(LW,`EdgeRouter/lambda$9$Type`,1506),J(675,1,{675:1},A2e),X.e=0,X.f=!1,X.g=!1,U(LW,`MultiLevelEdgeNodeNodeGap`,675),J(1943,1,mV,lae),X.Ne=function(e,t){return oIe(H(e,240),H(t,240))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`MultiLevelEdgeNodeNodeGap/lambda$0$Type`,1943),J(1944,1,mV,uae),X.Ne=function(e,t){return sIe(H(e,240),H(t,240))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(LW,`MultiLevelEdgeNodeNodeGap/lambda$1$Type`,1944);var o4;J(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},Vye),X.dg=function(){return e$e(this)},X.qg=function(){return e$e(this)};var s4,c4,YFt=pw(Evt,`RadialLayoutPhases`,501,cJ,QPe,sOe),XFt;J(1113,205,YV,Cge),X.rf=function(e,t){var n=grt(this,e),r,i,a,o,s;if(t.Ug(`Radial layout`,n.c.length),ks(Fp(eF(e,(gN(),jIt))))||zy((r=new ta((Nl(),new Ds(e))),r)),s=j6e(e),yA(e,(Up(),o4),s),!s)throw R(new Ps(`The given graph is not a tree!`));for(i=z(Ip(eF(e,h4))),i==0&&(i=i9e(e)),yA(e,h4,i),o=new L(grt(this,e));o.a=3)for(C=H(G(x,0),27),w=H(G(x,1),27),o=0;o+2=C.f+w.f+f||w.f>=S.f+C.f+f){E=!0;break}++o}else E=!0;if(!E){for(m=x.i,l=new Mf(x);l.e!=l.i.gc();)s=H(cA(l),27),yA(s,(pz(),c8),bD(m)),--m;ict(e,new is),t.Vg();return}for(n=(Cv(this.a),u_(this.a,(Sk(),C4),H(eF(e,WLt),188)),u_(this.a,KIt,H(eF(e,BLt),188)),u_(this.a,qIt,H(eF(e,P4),188)),Vxe(this.a,(O=new mv,Jh(O,C4,(F0e(),QIt)),Jh(O,KIt,ZIt),ks(Fp(eF(e,ALt)))&&Jh(O,C4,XIt),O)),_R(this.a,e)),d=1/n.c.length,T=0,g=new L(n);g.a0&&YXe((Ob(t-1,e.length),e.charCodeAt(t-1)),ngt);)--t;if(r>=t)throw R(new Ps(`The given string does not contain any numbers.`));if(i=JI((hS(r,t,e.length),e.substr(r,t-r)),`,|;|\r| +`),i.length!=2)throw R(new Ps(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=cN(RN(i[0])),this.b=cN(RN(i[1]))}catch(e){throw e=GT(e),V(e,130)?(n=e,R(new Ps(rgt+n))):R(e)}},X.Ib=function(){return`(`+this.a+`,`+this.b+`)`},X.a=0,X.b=0;var R3=U(rU,`KVector`,8);J(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},$o,Khe,Tp),X.Pc=function(){return yXe(this)},X.cg=function(e){var t,n,r=JI(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),i,a,o;Qv(this);try{for(n=0,a=0,i=0,o=0;n0&&(a%2==0?i=cN(r[n]):o=cN(r[n]),a>0&&a%2!=0&&Ih(this,new ku(i,o)),++a),++n}catch(e){throw e=GT(e),V(e,130)?(t=e,R(new Ps(`The given string does not match the expected format for vectors.`+t))):R(e)}},X.Ib=function(){for(var e=new qf(`(`),t=iA(this,0),n;t.b!=t.d.c;)n=H(lx(t),8),ld(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var z3=U(rU,`KVectorChain`,75);J(255,22,{3:1,34:1,22:1,255:1},Au);var Q,B3,V3,H3,U3,W3,G3=pw(CG,`Alignment`,255,cJ,GHe,TOe),K3;J(991,1,wV,ale),X.hf=function(e){hst(e)};var q3,J3,Y3,X3,Z3,Q3,$3,XRt,ZRt,e6,QRt,$Rt;U(CG,`BoxLayouterOptions`,991),J(992,1,{},moe),X.sf=function(){return new _oe},X.tf=function(e){},U(CG,`BoxLayouterOptions/BoxFactory`,992),J(298,22,{3:1,34:1,22:1,298:1},Nu);var t6,n6,r6,i6,a6,o6,s6=pw(CG,`ContentAlignment`,298,cJ,gS,Jm),c6;J(699,1,wV,ole),X.hf=function(e){EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,xyt),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(AN(),P3)),FJ),rO((rA(),T3))))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Syt),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),N3),KRt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,K_t),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),d6),A3),G3),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,sH),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,DG),``),`Bend Points`),`A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points.`),N3),z3),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,oW),``),`Content Alignment`),`Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option.`),nzt),j3),s6),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,$U),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(sp(),!1)),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,nW),``),Sht),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),b6),A3),k8),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,YU),``),`Edge Routing`),`What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline.`),azt),A3),Fzt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,TG),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,JU),``),`Hierarchy Handling`),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),E6),A3),Jzt),bg(T3,K(B(D3,1),cB,170,0,[w3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,cH),``),`Padding`),`The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately.`),G6),N3),XEt),bg(T3,K(B(D3,1),cB,170,0,[w3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,DH),``),`Interactive`),`Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,lW),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,AH),``),`Omit Node Micro Layout`),`Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,OH),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),t8),A3),tBt),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,cW),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),N3),R3),bg(w3,K(B(D3,1),cB,170,0,[E3,C3]))))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,CH),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),M3),kJ),bg(w3,K(B(D3,1),cB,170,0,[S3]))))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,TH),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,EH),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Q_t),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),czt),N3),z3),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,tvt),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),O3),wJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,nvt),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),O3),wJ),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Cyt),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),N3),CUt),bg(T3,K(B(D3,1),cB,170,0,[C3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,avt),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),N6),N3),qEt),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,G_t),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),O3),wJ),bg(w3,K(B(D3,1),cB,170,0,[S3,E3,C3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,wyt),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),k3),DJ),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Tyt),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Eyt),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,IH),``),gyt),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),O3),wJ),rO(T3)))),qb(e,IH,BH,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Dyt),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Oyt),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),bD(100)),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,kyt),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ayt),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),bD(4e3)),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,jyt),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),bD(400)),M3),kJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Myt),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,OG),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Nyt),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Pyt),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,EG),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),tzt),A3),TBt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,N_t),XU),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,P_t),XU),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,aH),XU),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,F_t),XU),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Lht),XU),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,I_t),XU),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,L_t),XU),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,B_t),XU),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,R_t),XU),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,z_t),XU),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,wH),XU),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,V_t),XU),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),k3),DJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,H_t),XU),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),k3),DJ),bg(T3,K(B(D3,1),cB,170,0,[w3]))))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,U_t),XU),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),N3),DBt),bg(w3,K(B(D3,1),cB,170,0,[S3,E3,C3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,ovt),XU),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),Ozt),N3),qEt),rO(T3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,sW),Byt),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),M3),kJ),bg(T3,K(B(D3,1),cB,170,0,[w3]))))),qb(e,sW,ivt,pzt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,ivt),Byt),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),q6),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,q_t),Vyt),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),P6),N3),XEt),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,PH),Vyt),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),I6),j3),a5),bg(w3,K(B(D3,1),cB,170,0,[C3]))))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Y_t),kG),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),hzt),A3),l5),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,X_t),kG),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),A3),l5),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,iW),kG),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),A3),l5),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Z_t),kG),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),A3),l5),rO(w3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,aW),kG),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),A3),l5),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,NH),AG),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),uzt),j3),Y5),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,MH),AG),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),dzt),j3),dBt),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,GH),AG),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),B6),N3),R3),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,jH),AG),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),O3),wJ),rO(T3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,$_t),M_t),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),rzt),A3),Nzt),rO(C3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,kH),M_t),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),O3),wJ),rO(C3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Fyt),`font`),`Font Name`),`Font name used for a label.`),P3),FJ),rO(C3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,Iyt),`font`),`Font Size`),`Font size used for a label.`),M3),kJ),rO(C3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,rvt),jG),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),N3),R3),rO(E3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,evt),jG),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),M3),kJ),rO(E3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,QU),jG),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),_zt),A3),W5),rO(E3)))),EO(e,new DN(yc(vc(bc(pc(_c(hc(gc(new Wn,W_t),jG),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),k3),DJ),rO(E3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,FH),MG),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),gzt),j3),S5),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,rW),MG),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),O3),wJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,J_t),MG),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),O3),wJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,LH),NG),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),k3),DJ),rO(T3)))),qb(e,LH,BH,Azt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Lyt),NG),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),A3),yBt),rO(w3)))),qb(e,Lyt,BH,Mzt),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,RH),NG),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),k3),DJ),bg(T3,K(B(D3,1),cB,170,0,[w3]))))),qb(e,RH,BH,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,zH),NG),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),k3),DJ),bg(T3,K(B(D3,1),cB,170,0,[w3]))))),qb(e,zH,BH,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,BH),NG),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),A3),hBt),rO(w3)))),qb(e,BH,jH,null),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,Ryt),NG),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),k3),DJ),rO(T3)))),qb(e,Ryt,BH,S8),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,eW),Hyt),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),O3),wJ),rO(w3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,tW),Hyt),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),O3),wJ),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,oH),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),k3),DJ),rO(S3)))),EO(e,new DN(yc(vc(bc(mc(pc(_c(hc(gc(new Wn,zyt),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),w6),A3),Vzt),rO(S3)))),Al(e,new bb(uc(fc(dc(new Hn,YB),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),Al(e,new bb(uc(fc(dc(new Hn,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Al(e,new bb(uc(fc(dc(new Hn,SH),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),Al(e,new bb(uc(fc(dc(new Hn,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),Al(e,new bb(uc(fc(dc(new Hn,wvt),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),Al(e,new bb(uc(fc(dc(new Hn,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),Al(e,new bb(uc(fc(dc(new Hn,HW),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),cot((new sle,e)),hst((new ale,e)),Uit((new cle,e))};var l6,u6,d6,f6,p6,ezt,tzt,m6,h6,g6,_6,nzt,v6,y6,b6,x6,S6,rzt,izt,azt,C6,w6,ozt,T6,E6,szt,D6,O6,k6,A6,j6,czt,M6,N6,lzt,P6,F6,I6,L6,uzt,R6,z6,B6,V6,dzt,H6,U6,W6,G6,K6,q6,fzt,pzt,mzt,hzt,J6,Y6,X6,Z6,Q6,$6,e8,t8,n8,r8,i8,gzt,a8,o8,_zt,s8,c8,l8,u8,vzt,d8,yzt,bzt,xzt,Szt,Czt,wzt,f8,p8,m8,Tzt,h8,g8,Ezt,Dzt,Ozt,kzt,_8,v8,y8,b8,x8,S8,C8,Azt,jzt,Mzt;U(CG,`CoreOptions`,699),J(88,22,{3:1,34:1,22:1,88:1},Pu);var w8,T8,E8,D8,O8,k8=pw(CG,Sht,88,cJ,xBe,Ym),A8;J(278,22,{3:1,34:1,22:1,278:1},Fu);var j8,M8,N8,Nzt=pw(CG,`EdgeLabelPlacement`,278,cJ,eLe,EOe),Pzt;J(223,22,{3:1,34:1,22:1,223:1},Iu);var P8,F8,I8,L8,Fzt=pw(CG,`EdgeRouting`,223,cJ,rze,DOe),Izt;J(321,22,{3:1,34:1,22:1,321:1},Lu);var Lzt,R8,z8,Rzt,zzt,Bzt,Vzt=pw(CG,`EdgeType`,321,cJ,WHe,OOe),Hzt;J(989,1,wV,sle),X.hf=function(e){cot(e)};var B8,Uzt,Wzt,Gzt,Kzt,qzt,V8;U(CG,`FixedLayouterOptions`,989),J(990,1,{},hoe),X.sf=function(){return new Eoe},X.tf=function(e){},U(CG,`FixedLayouterOptions/FixedFactory`,990),J(346,22,{3:1,34:1,22:1,346:1},Ru);var H8,U8,W8,Jzt=pw(CG,`HierarchyHandling`,346,cJ,QIe,kOe),Yzt;J(291,22,{3:1,34:1,22:1,291:1},abe);var G8,K8,q8,J8,Y8=pw(CG,`LabelSide`,291,cJ,nze,AOe),Xzt;J(95,22,{3:1,34:1,22:1,95:1},zu);var X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5=pw(CG,`NodeLabelPlacement`,95,cJ,EGe,jOe),Zzt;J(256,22,{3:1,34:1,22:1,256:1},Bu);var Qzt,o5,s5,$zt,c5,l5=pw(CG,`PortAlignment`,256,cJ,GBe,Xm),eBt;J(101,22,{3:1,34:1,22:1,101:1},Vu);var u5,d5,f5,p5,m5,h5,tBt=pw(CG,`PortConstraints`,101,cJ,UHe,Zm),nBt;J(279,22,{3:1,34:1,22:1,279:1},Hu);var g5,_5,v5,y5,b5,x5,S5=pw(CG,`PortLabelPlacement`,279,cJ,HHe,Qm),rBt;J(64,22,{3:1,34:1,22:1,64:1},Uu);var C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5=pw(CG,`PortSide`,64,cJ,SBe,MOe),iBt;J(993,1,wV,cle),X.hf=function(e){Uit(e)};var aBt,oBt,sBt,cBt,lBt;U(CG,`RandomLayouterOptions`,993),J(994,1,{},goe),X.sf=function(){return new Coe},X.tf=function(e){},U(CG,`RandomLayouterOptions/RandomFactory`,994),J(386,22,{3:1,34:1,22:1,386:1},obe);var G5,K5,q5,J5,Y5=pw(CG,`SizeConstraint`,386,cJ,tze,$m),uBt;J(264,22,{3:1,34:1,22:1,264:1},Wu);var X5,Z5,Q5,$5,e7,t7,n7,r7,i7,dBt=pw(CG,`SizeOptions`,264,cJ,sKe,NOe),fBt;J(280,22,{3:1,34:1,22:1,280:1},sbe);var a7,pBt,mBt,hBt=pw(CG,`TopdownNodeTypes`,280,cJ,tLe,POe),gBt;J(347,22,Uyt);var _Bt,vBt,yBt=pw(CG,`TopdownSizeApproximator`,347,cJ,sFe,eh);J(987,347,Uyt,Wh),X.Tg=function(e){return H0e(e)},pw(CG,`TopdownSizeApproximator/1`,987,yBt,null,null),J(988,347,Uyt,Lje),X.Tg=function(e){var t=H(eF(e,(pz(),u8)),143),n,i,a,o,s,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=(Cc(),h=new Qo,h),T,E,D;for(SF(w,e),T=new eo,o=new Mf((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a));o.e!=o.i.gc();)i=H(cA(o),27),b=(m=new Qo,m),Ant(b,w),SF(b,i),D=H0e(i),Bd(b,r.Math.max(i.g,D.a),r.Math.max(i.f,D.b)),UN(T.f,i,b);for(a=new Mf((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=H(cA(a),27),f=new Mf((!i.e&&(i.e=new hm(u7,i,7,4)),i.e));f.e!=f.i.gc();)d=H(cA(f),74),S=H(Zu(hg(T.f,i)),27),C=H(N_(T,G((!d.c&&(d.c=new hm(l7,d,5,8)),d.c),0)),27),x=(p=new Noe,p),_S((!x.b&&(x.b=new hm(l7,x,4,7)),x.b),S),_S((!x.c&&(x.c=new hm(l7,x,5,8)),x.c),C),ynt(x,ib(S)),SF(x,d);_=H(Ny(t.f),205);try{_.rf(w,new Aoe),rv(t.f,_)}catch(e){throw e=GT(e),V(e,103)?(g=e,R(g)):R(e)}return lS(w,h6)||lS(w,m6)||ept(w),u=z(Ip(eF(w,h6))),l=z(Ip(eF(w,m6))),s=u/l,n=z(Ip(eF(w,v8)))*r.Math.sqrt((!w.a&&(w.a=new Bg(_7,w,10,11)),w.a).i),E=H(eF(w,W6),107),y=E.b+E.c+1,v=E.d+E.a+1,new ku(r.Math.max(y,n),r.Math.max(v,n/s))},pw(CG,`TopdownSizeApproximator/2`,988,yBt,null,null);var bBt;J(344,1,{871:1},is),X.Ug=function(e,t){return K6e(this,e,t)},X.Vg=function(){yN(this)},X.Wg=function(){return this.q},X.Xg=function(){return this.f?my(this.f):null},X.Yg=function(){return my(this.a)},X.Zg=function(){return this.p},X.$g=function(){return!1},X._g=function(){return this.n},X.ah=function(){return this.p!=null&&!this.b},X.bh=function(e){var t;this.n&&(t=e,Cf(this.f,t))},X.dh=function(e,t){var n,r;this.n&&e&&wLe(this,(n=new wMe,r=kI(n,e),ldt(n),r),(LE(),kBt))},X.eh=function(e){var t;return this.b?null:(t=wC(this,this.g),Ih(this.a,t),t.i=this,this.d=e,t)},X.fh=function(e){e>0&&!this.b&&TKe(this,e)},X.b=!1,X.c=0,X.d=-1,X.e=null,X.f=null,X.g=-1,X.j=!1,X.k=!1,X.n=!1,X.o=0,X.q=0,X.r=0,U(uW,`BasicProgressMonitor`,344),J(717,205,YV,_oe),X.rf=function(e,t){ict(e,t)},U(uW,`BoxLayoutProvider`,717),J(983,1,mV,Ua),X.Ne=function(e,t){return Bnt(this,H(e,27),H(t,27))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},X.a=!1,U(uW,`BoxLayoutProvider/1`,983),J(163,1,{163:1},WC,Mp),X.Ib=function(){return this.c?Kat(this.c):ZM(this.b)},U(uW,`BoxLayoutProvider/Group`,163),J(320,22,{3:1,34:1,22:1,320:1},Gu);var xBt,SBt,CBt,wBt,TBt=pw(uW,`BoxLayoutProvider/PackingMode`,320,cJ,ize,IOe),EBt;J(984,1,mV,voe),X.Ne=function(e,t){return fPe(H(e,163),H(t,163))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(uW,`BoxLayoutProvider/lambda$0$Type`,984),J(985,1,mV,yoe),X.Ne=function(e,t){return tPe(H(e,163),H(t,163))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(uW,`BoxLayoutProvider/lambda$1$Type`,985),J(986,1,mV,boe),X.Ne=function(e,t){return nPe(H(e,163),H(t,163))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(uW,`BoxLayoutProvider/lambda$2$Type`,986),J(1384,1,{845:1},xoe),X.Mg=function(e,t){return Tl(),!V(t,167)||Mge((eE(),H(e,167)),t)},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1384),J(1385,1,Jz,Wa),X.Cd=function(e){TXe(this.a,H(e,149))},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1385),J(1386,1,Jz,woe),X.Cd=function(e){H(e,96),Tl()},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1386),J(1390,1,Jz,gfe),X.Cd=function(e){hqe(this.a,H(e,96))},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1390),J(1388,1,uB,lbe),X.Mb=function(e){return LYe(this.a,this.b,H(e,149))},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1388),J(1387,1,uB,Ku),X.Mb=function(e){return gwe(this.a,this.b,H(e,845))},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1387),J(1389,1,Jz,ube),X.Cd=function(e){jje(this.a,this.b,H(e,149))},U(uW,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1389),J(947,1,{},Toe),X.Kb=function(e){return Ad(e)},X.Fb=function(e){return this===e},U(uW,`ElkUtil/lambda$0$Type`,947),J(948,1,Jz,dbe),X.Cd=function(e){A9e(this.a,this.b,H(e,74))},X.a=0,X.b=0,U(uW,`ElkUtil/lambda$1$Type`,948),J(949,1,Jz,fbe),X.Cd=function(e){Bme(this.a,this.b,H(e,166))},X.a=0,X.b=0,U(uW,`ElkUtil/lambda$2$Type`,949),J(950,1,Jz,pbe),X.Cd=function(e){ef(this.a,this.b,H(e,135))},X.a=0,X.b=0,U(uW,`ElkUtil/lambda$3$Type`,950),J(951,1,Jz,Ga),X.Cd=function(e){Jke(this.a,H(e,377))},U(uW,`ElkUtil/lambda$4$Type`,951),J(325,1,{34:1,325:1},$a),X.Fd=function(e){return iCe(this,H(e,242))},X.Fb=function(e){var t;return V(e,325)?(t=H(e,325),this.a==t.a):!1},X.Hb=function(){return Vy(this.a)},X.Ib=function(){return this.a+` (exclusive)`},X.a=0,U(uW,`ExclusiveBounds/ExclusiveLowerBound`,325),J(1119,205,YV,Eoe),X.rf=function(e,t){var n,i,a,o,s,l,u,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D;for(t.Ug(`Fixed Layout`,1),o=H(eF(e,(pz(),izt)),223),m=0,h=0,x=new Mf((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a));x.e!=x.i.gc();){for(y=H(cA(x),27),D=H(eF(y,(YYe(),V8)),8),D&&(Vd(y,D.a,D.b),H(eF(y,Uzt),181).Hc((xk(),G5))&&(g=H(eF(y,Gzt),8),g.a>0&&g.b>0&&qR(y,g.a,g.b,!0,!0))),m=r.Math.max(m,y.i+y.g),h=r.Math.max(h,y.j+y.f),d=new Mf((!y.n&&(y.n=new Bg(g7,y,1,7)),y.n));d.e!=d.i.gc();)l=H(cA(d),135),D=H(eF(l,V8),8),D&&Vd(l,D.a,D.b),m=r.Math.max(m,y.i+l.i+l.g),h=r.Math.max(h,y.j+l.j+l.f);for(w=new Mf((!y.c&&(y.c=new Bg(v7,y,9,9)),y.c));w.e!=w.i.gc();)for(C=H(cA(w),123),D=H(eF(C,V8),8),D&&Vd(C,D.a,D.b),T=y.i+C.i,E=y.j+C.j,m=r.Math.max(m,T+C.g),h=r.Math.max(h,E+C.f),u=new Mf((!C.n&&(C.n=new Bg(g7,C,1,7)),C.n));u.e!=u.i.gc();)l=H(cA(u),135),D=H(eF(l,V8),8),D&&Vd(l,D.a,D.b),m=r.Math.max(m,T+l.i+l.g),h=r.Math.max(h,E+l.j+l.f);for(a=new Mg(Vf(mF(y).a.Kc(),new f));GP(a);)n=H(Rx(a),74),p=mft(n),m=r.Math.max(m,p.a),h=r.Math.max(h,p.b);for(i=new Mg(Vf(pF(y).a.Kc(),new f));GP(i);)n=H(Rx(i),74),ib(qM(n))!=e&&(p=mft(n),m=r.Math.max(m,p.a),h=r.Math.max(h,p.b))}if(o==(hO(),P8))for(b=new Mf((!e.a&&(e.a=new Bg(_7,e,10,11)),e.a));b.e!=b.i.gc();)for(y=H(cA(b),27),i=new Mg(Vf(mF(y).a.Kc(),new f));GP(i);)n=H(Rx(i),74),s=Ost(n),s.b==0?yA(n,j6,null):yA(n,j6,s);ks(Fp(eF(e,(YYe(),Wzt))))||(S=H(eF(e,Kzt),107),v=m+S.b+S.c,_=h+S.d+S.a,qR(e,v,_,!0,!0)),t.Vg()},U(uW,`FixedLayoutProvider`,1119),J(385,137,{3:1,423:1,385:1,96:1,137:1},Doe,$Ue),X.cg=function(e){var t,n,r,i,a,o,s,l,u;if(e)try{for(l=JI(e,`;,;`),a=l,o=0,s=a.length;o>16&xB|t^r<<16},X.Kc=function(){return new _fe(this)},X.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+OO(this.b)+`)`:this.b==null?`pair(`+OO(this.a)+`,null)`:`pair(`+OO(this.a)+`,`+OO(this.b)+`)`},U(uW,`Pair`,42),J(995,1,Fz,_fe),X.Nb=function(e){qg(this,e)},X.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},X.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw R(new Co)},X.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),R(new yo)},X.b=!1,X.c=!1,U(uW,`Pair/1`,995),J(455,1,{455:1},Hv),X.Fb=function(e){return xv(this.a,H(e,455).a)&&xv(this.c,H(e,455).c)&&xv(this.d,H(e,455).d)&&xv(this.b,H(e,455).b)},X.Hb=function(){return tD(K(B($q,1),Oz,1,5,[this.a,this.c,this.d,this.b]))},X.Ib=function(){return`(`+this.a+Dz+this.c+Dz+this.d+Dz+this.b+`)`},U(uW,`Quadruple`,455),J(1108,205,YV,Coe),X.rf=function(e,t){var n,r,i,a,o;if(t.Ug(`Random Layout`,1),(!e.a&&(e.a=new Bg(_7,e,10,11)),e.a).i==0){t.Vg();return}a=H(eF(e,(bk(),cBt)),17),i=a&&a.a!=0?new Qze(a.a):new i$e,n=As(Ip(eF(e,aBt))),o=As(Ip(eF(e,lBt))),r=H(eF(e,oBt),107),Idt(e,i,n,o,r),t.Vg()},U(uW,`RandomLayoutProvider`,1108),J(240,1,{240:1},ih),X.Fb=function(e){return xv(this.a,H(e,240).a)&&xv(this.b,H(e,240).b)&&xv(this.c,H(e,240).c)},X.Hb=function(){return tD(K(B($q,1),Oz,1,5,[this.a,this.b,this.c]))},X.Ib=function(){return`(`+this.a+Dz+this.b+Dz+this.c+`)`},U(uW,`Triple`,240);var PBt;J(562,1,{}),X.Lf=function(){return new ku(this.f.i,this.f.j)},X.of=function(e){return RPe(e,(pz(),$6))?eF(this.f,FBt):eF(this.f,e)},X.Mf=function(){return new ku(this.f.g,this.f.f)},X.Nf=function(){return this.g},X.pf=function(e){return lS(this.f,e)},X.Of=function(e){ew(this.f,e.a),tw(this.f,e.b)},X.Pf=function(e){$C(this.f,e.a),QC(this.f,e.b)},X.Qf=function(e){this.g=e},X.g=0;var FBt;U(IG,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,562),J(563,1,{853:1},Ka),X.Rf=function(){var e,t;if(!this.b)for(this.b=nx(CNe(this.a).i),t=new Mf(CNe(this.a));t.e!=t.i.gc();)e=H(cA(t),135),Cf(this.b,new Fme(e));return this.b},X.b=null,U(IG,`ElkGraphAdapters/ElkEdgeAdapter`,563),J(289,562,{},Ds),X.Sf=function(){return nj(this)},X.a=null,U(IG,`ElkGraphAdapters/ElkGraphAdapter`,289),J(640,562,{187:1},Fme),U(IG,`ElkGraphAdapters/ElkLabelAdapter`,640),J(639,562,{695:1},XCe),X.Rf=function(){return H2e(this)},X.Vf=function(){var e=H(eF(this.f,(pz(),M6)),140);return!e&&(e=new qo),e},X.Xf=function(){return U2e(this)},X.Zf=function(e){var t=new ch(e);yA(this.f,(pz(),M6),t)},X.$f=function(e){yA(this.f,(pz(),W6),new lh(e))},X.Tf=function(){return this.d},X.Uf=function(){var e,t;if(!this.a)for(this.a=new to,t=new Mg(Vf(pF(H(this.f,27)).a.Kc(),new f));GP(t);)e=H(Rx(t),74),Cf(this.a,new Ka(e));return this.a},X.Wf=function(){var e,t;if(!this.c)for(this.c=new to,t=new Mg(Vf(mF(H(this.f,27)).a.Kc(),new f));GP(t);)e=H(Rx(t),74),Cf(this.c,new Ka(e));return this.c},X.Yf=function(){return sy(H(this.f,27)).i!=0||ks(Fp(H(this.f,27).of((pz(),D6))))},X._f=function(){eWe(this,(Nl(),PBt))},X.a=null,X.b=null,X.c=null,X.d=null,X.e=null,U(IG,`ElkGraphAdapters/ElkNodeAdapter`,639),J(1284,562,{852:1},vfe),X.Rf=function(){return r4e(this)},X.Uf=function(){var e,t;if(!this.a)for(this.a=mp(H(this.f,123).hh().i),t=new Mf(H(this.f,123).hh());t.e!=t.i.gc();)e=H(cA(t),74),Cf(this.a,new Ka(e));return this.a},X.Wf=function(){var e,t;if(!this.c)for(this.c=mp(H(this.f,123).ih().i),t=new Mf(H(this.f,123).ih());t.e!=t.i.gc();)e=H(cA(t),74),Cf(this.c,new Ka(e));return this.c},X.ag=function(){return H(H(this.f,123).of((pz(),o8)),64)},X.bg=function(){var e,t,n,r=Wy(H(this.f,123)),i,a,o,s;for(n=new Mf(H(this.f,123).ih());n.e!=n.i.gc();)for(e=H(cA(n),74),s=new Mf((!e.c&&(e.c=new hm(l7,e,5,8)),e.c));s.e!=s.i.gc();)if(o=H(cA(s),84),LC(OM(o),r)||OM(o)==r&&ks(Fp(eF(e,(pz(),O6)))))return!0;for(t=new Mf(H(this.f,123).hh());t.e!=t.i.gc();)for(e=H(cA(t),74),a=new Mf((!e.b&&(e.b=new hm(l7,e,4,7)),e.b));a.e!=a.i.gc();)if(i=H(cA(a),84),LC(OM(i),r))return!0;return!1},X.a=null,X.b=null,X.c=null,U(IG,`ElkGraphAdapters/ElkPortAdapter`,1284),J(1285,1,mV,Soe),X.Ne=function(e,t){return Gat(H(e,123),H(t,123))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(IG,`ElkGraphAdapters/PortComparator`,1285);var o7=Kh(LG,`EObject`),s7=Kh(RG,Kyt),c7=Kh(RG,qyt),IBt=Kh(RG,zG),LBt=Kh(RG,`ElkShape`),l7=Kh(RG,Jyt),u7=Kh(RG,Yyt),d7=Kh(RG,Xyt),RBt=Kh(LG,Zyt),f7=Kh(LG,`EFactory`),zBt,BBt=Kh(LG,Qyt),p7=Kh(LG,`EPackage`),m7,VBt,HBt,UBt,WBt,GBt,KBt,qBt,JBt,h7,YBt,XBt,g7=Kh(RG,$yt),_7=Kh(RG,ebt),v7=Kh(RG,tbt);J(93,1,nbt),X.th=function(){return this.uh(),null},X.uh=function(){return null},X.vh=function(){return this.uh(),!1},X.wh=function(){return!1},X.xh=function(e){ST(this,e)},U(BG,`BasicNotifierImpl`,93),J(99,93,sbt),X.Yh=function(){return jd(this)},X.yh=function(e,t){return e},X.zh=function(){throw R(new xo)},X.Ah=function(e){var t=OA(H(CC(this.Dh(),this.Fh()),19));return this.Ph().Th(this,t.n,t.f,e)},X.Bh=function(e,t){throw R(new xo)},X.Ch=function(e,t,n){return FI(this,e,t,n)},X.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},X.Eh=function(){return het(this)},X.Fh=function(){throw R(new xo)},X.Gh=function(){var e,t=this.$h().Ok();return!t&&this.zh().Tk(t=(Fl(),e=uFe(ZI(this.Dh())),e==null?sHt:new lp(this,e))),t},X.Hh=function(e,t){return e},X.Ih=function(e){return e.pk()?e.Lj():XO(this.Dh(),e)},X.Jh=function(){var e=this.zh();return e?e.Qk():null},X.Kh=function(){return this.zh()?this.zh().Nk():null},X.Lh=function(e,t,n){return x0e(this,e,t,n)},X.Mh=function(e){return DS(this,e)},X.Nh=function(e,t){return uVe(this,e,t)},X.Oh=function(){var e=this.zh();return!!e&&e.Rk()},X.Ph=function(){throw R(new xo)},X.Qh=function(){return zk(this)},X.Rh=function(e,t,n,r){return vA(this,e,t,r)},X.Sh=function(e,t,n){return H(CC(this.Dh(),t),69).wk().zk(this,this.hi(),t-this.ji(),e,n)},X.Th=function(e,t,n,r){return My(this,e,t,r)},X.Uh=function(e,t,n){return H(CC(this.Dh(),t),69).wk().Ak(this,this.hi(),t-this.ji(),e,n)},X.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},X.Wh=function(e){return Y1e(this,e)},X.Xh=function(e){return IFe(this,e)},X.Zh=function(e){return NR(this,e)},X.$h=function(){throw R(new xo)},X._h=function(){return this.zh()?this.zh().Pk():null},X.ai=function(){return zk(this)},X.bi=function(e,t){v7e(this,e,t)},X.ci=function(e){this.$h().Sk(e)},X.di=function(e){this.$h().Vk(e)},X.ei=function(e){this.$h().Uk(e)},X.fi=function(e,t){var n,r,i,a=this.Jh();return a&&e&&(t=bA(a.El(),this,t),a.Il(this)),r=this.Ph(),r&&((mot(this,this.Ph(),this.Fh()).Bb&XB)==0?(t=(n=this.Fh(),n>=0?this.Ah(t):this.Ph().Th(this,-1-n,null,t)),t=this.Ch(null,-1,t)):(i=r.Qh(),i&&(e?!a&&i.Il(this):i.Hl(this)))),this.di(e),t},X.gi=function(e){var t,n=this.Dh(),r,i,a=XO(n,e),o,s,l;if(t=this.ji(),a>=t)return H(e,69).wk().Dk(this,this.hi(),a-t);if(a<=-1){if(o=yR((MN(),r9),n,e),o){if(Rl(),H(o,69).xk()||(o=Lb(qS(r9,o))),i=(r=this.Ih(o),H(r>=0?this.Lh(r,!0,!0):DP(this,o,!0),160)),l=o.Ik(),l>1||l==-1)return H(H(i,220).Sl(e,!1),79)}else throw R(new Ps(VG+e.xe()+ibt))}else if(e.Jk())return r=this.Ih(e),H(r>=0?this.Lh(r,!1,!0):DP(this,e,!1),79);return s=new Bbe(this,e),s},X.hi=function(){return rWe(this)},X.ii=function(){return(A_(),R7).S},X.ji=function(){return M_(this.ii())},X.ki=function(e){kN(this,e)},X.Ib=function(){return aF(this)},U(WG,`BasicEObjectImpl`,99);var ZBt;J(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),X.li=function(e){return nWe(this)[e]},X.mi=function(e,t){P_(nWe(this),e,t)},X.ni=function(e){P_(nWe(this),e,null)},X.th=function(){return H(TT(this,4),129)},X.uh=function(){throw R(new xo)},X.vh=function(){return!!(this.Db&4)},X.zh=function(){throw R(new xo)},X.oi=function(e){Rk(this,2,e)},X.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},X.Dh=function(){return wy(this)},X.Fh=function(){return this.Db>>16},X.Gh=function(){var e,t;return Fl(),t=uFe(ZI((e=H(TT(this,16),29),e||this.ii()))),t==null?sHt:new lp(this,t)},X.wh=function(){return!(this.Db&1)},X.Jh=function(){return H(TT(this,128),2034)},X.Kh=function(){return H(TT(this,16),29)},X.Oh=function(){return!!(this.Db&32)},X.Ph=function(){return H(TT(this,2),54)},X.Vh=function(){return!!(this.Db&64)},X.$h=function(){throw R(new xo)},X._h=function(){return H(TT(this,64),288)},X.ci=function(e){Rk(this,16,e)},X.di=function(e){Rk(this,128,e)},X.ei=function(e){Rk(this,64,e)},X.hi=function(){return Lk(this)},X.Db=0,U(WG,`MinimalEObjectImpl`,119),J(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.oi=function(e){this.Cb=e},X.Ph=function(){return this.Cb},U(WG,`MinimalEObjectImpl/Container`,120),J(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return i4e(this,e,t,n)},X.Uh=function(e,t,n){return U8e(this,e,t,n)},X.Wh=function(e){return qLe(this,e)},X.bi=function(e,t){BYe(this,e,t)},X.ii=function(){return ez(),XBt},X.ki=function(e){oE(this,e)},X.nf=function(){return X1e(this)},X.gh=function(){return!this.o&&(this.o=new CS((ez(),h7),b7,this,0)),this.o},X.of=function(e){return eF(this,e)},X.pf=function(e){return lS(this,e)},X.qf=function(e,t){return yA(this,e,t)},U(GG,`EMapPropertyHolderImpl`,2083),J(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},joe),X.Lh=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return x0e(this,e,t,n)},X.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Y1e(this,e)},X.bi=function(e,t){switch(e){case 0:kGe(this,z(Ip(t)));return;case 1:XC(this,z(Ip(t)));return}v7e(this,e,t)},X.ii=function(){return ez(),VBt},X.ki=function(e){switch(e){case 0:kGe(this,0);return;case 1:XC(this,0);return}kN(this,e)},X.Ib=function(){var e;return this.Db&64?aF(this):(e=new Kf(aF(this)),e.a+=` (x: `,Dc(e,this.a),e.a+=`, y: `,Dc(e,this.b),e.a+=`)`,e.a)},X.a=0,X.b=0,U(GG,`ElkBendPointImpl`,572),J(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return rQe(this,e,t,n)},X.Sh=function(e,t,n){return e8e(this,e,t,n)},X.Uh=function(e,t,n){return LJe(this,e,t,n)},X.Wh=function(e){return yJe(this,e)},X.bi=function(e,t){F3e(this,e,t)},X.ii=function(){return ez(),GBt},X.ki=function(e){xZe(this,e)},X.jh=function(){return this.k},X.kh=function(){return CNe(this)},X.Ib=function(){return TQe(this)},X.k=null,U(GG,`ElkGraphElementImpl`,739),J(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return kO(this,e,t,n)},X.Wh=function(e){return $Qe(this,e)},X.bi=function(e,t){I3e(this,e,t)},X.ii=function(){return ez(),YBt},X.ki=function(e){ok(this,e)},X.lh=function(){return this.f},X.mh=function(){return this.g},X.nh=function(){return this.i},X.oh=function(){return this.j},X.ph=function(e,t){Bd(this,e,t)},X.qh=function(e,t){Vd(this,e,t)},X.rh=function(e){ew(this,e)},X.sh=function(e){tw(this,e)},X.Ib=function(){return t5e(this)},X.f=0,X.g=0,X.i=0,X.j=0,U(GG,`ElkShapeImpl`,740),J(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),X.Lh=function(e,t,n){return r2e(this,e,t,n)},X.Sh=function(e,t,n){return Gj(this,e,t,n)},X.Uh=function(e,t,n){return Kj(this,e,t,n)},X.Wh=function(e){return AE(this,e)},X.bi=function(e,t){Ret(this,e,t)},X.ii=function(){return ez(),HBt},X.ki=function(e){l0e(this,e)},X.hh=function(){return!this.d&&(this.d=new hm(u7,this,8,5)),this.d},X.ih=function(){return!this.e&&(this.e=new hm(u7,this,7,4)),this.e},U(GG,`ElkConnectableShapeImpl`,741),J(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Noe),X.Ah=function(e){return I4e(this,e)},X.Lh=function(e,t,n){switch(e){case 3:return Uy(this);case 4:return!this.b&&(this.b=new hm(l7,this,4,7)),this.b;case 5:return!this.c&&(this.c=new hm(l7,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Bg(d7,this,6,6)),this.a;case 7:return sp(),!this.b&&(this.b=new hm(l7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hm(l7,this,5,8)),this.c.i<=1));case 8:return sp(),!!VP(this);case 9:return sp(),!!xP(this);case 10:return sp(),!this.b&&(this.b=new hm(l7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hm(l7,this,5,8)),this.c.i!=0)}return rQe(this,e,t,n)},X.Sh=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?I4e(this,n):this.Cb.Th(this,-1-r,null,n))),_Te(this,H(e,27),n);case 4:return!this.b&&(this.b=new hm(l7,this,4,7)),fk(this.b,e,n);case 5:return!this.c&&(this.c=new hm(l7,this,5,8)),fk(this.c,e,n);case 6:return!this.a&&(this.a=new Bg(d7,this,6,6)),fk(this.a,e,n)}return e8e(this,e,t,n)},X.Uh=function(e,t,n){switch(t){case 3:return _Te(this,null,n);case 4:return!this.b&&(this.b=new hm(l7,this,4,7)),bA(this.b,e,n);case 5:return!this.c&&(this.c=new hm(l7,this,5,8)),bA(this.c,e,n);case 6:return!this.a&&(this.a=new Bg(d7,this,6,6)),bA(this.a,e,n)}return LJe(this,e,t,n)},X.Wh=function(e){switch(e){case 3:return!!Uy(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new hm(l7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hm(l7,this,5,8)),this.c.i<=1));case 8:return VP(this);case 9:return xP(this);case 10:return!this.b&&(this.b=new hm(l7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hm(l7,this,5,8)),this.c.i!=0)}return yJe(this,e)},X.bi=function(e,t){switch(e){case 3:ynt(this,H(t,27));return;case 4:!this.b&&(this.b=new hm(l7,this,4,7)),dR(this.b),!this.b&&(this.b=new hm(l7,this,4,7)),b_(this.b,H(t,16));return;case 5:!this.c&&(this.c=new hm(l7,this,5,8)),dR(this.c),!this.c&&(this.c=new hm(l7,this,5,8)),b_(this.c,H(t,16));return;case 6:!this.a&&(this.a=new Bg(d7,this,6,6)),dR(this.a),!this.a&&(this.a=new Bg(d7,this,6,6)),b_(this.a,H(t,16));return}F3e(this,e,t)},X.ii=function(){return ez(),UBt},X.ki=function(e){switch(e){case 3:ynt(this,null);return;case 4:!this.b&&(this.b=new hm(l7,this,4,7)),dR(this.b);return;case 5:!this.c&&(this.c=new hm(l7,this,5,8)),dR(this.c);return;case 6:!this.a&&(this.a=new Bg(d7,this,6,6)),dR(this.a);return}xZe(this,e)},X.Ib=function(){return zL(this)},U(GG,`ElkEdgeImpl`,326),J(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Poe),X.Ah=function(e){return Dj(this,e)},X.Lh=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Tf(c7,this,5)),this.a;case 6:return AFe(this);case 7:return t?W0e(this):this.i;case 8:return t?U0e(this):this.f;case 9:return!this.g&&(this.g=new hm(d7,this,9,10)),this.g;case 10:return!this.e&&(this.e=new hm(d7,this,10,9)),this.e;case 11:return this.d}return i4e(this,e,t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?Dj(this,n):this.Cb.Th(this,-1-i,null,n))),gTe(this,H(e,74),n);case 9:return!this.g&&(this.g=new hm(d7,this,9,10)),fk(this.g,e,n);case 10:return!this.e&&(this.e=new hm(d7,this,10,9)),fk(this.e,e,n)}return a=H(CC((r=H(TT(this,16),29),r||(ez(),WBt)),t),69),a.wk().zk(this,Lk(this),t-M_((ez(),WBt)),e,n)},X.Uh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new Tf(c7,this,5)),bA(this.a,e,n);case 6:return gTe(this,null,n);case 9:return!this.g&&(this.g=new hm(d7,this,9,10)),bA(this.g,e,n);case 10:return!this.e&&(this.e=new hm(d7,this,10,9)),bA(this.e,e,n)}return U8e(this,e,t,n)},X.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!AFe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return qLe(this,e)},X.bi=function(e,t){switch(e){case 1:nw(this,z(Ip(t)));return;case 2:iw(this,z(Ip(t)));return;case 3:ZC(this,z(Ip(t)));return;case 4:rw(this,z(Ip(t)));return;case 5:!this.a&&(this.a=new Tf(c7,this,5)),dR(this.a),!this.a&&(this.a=new Tf(c7,this,5)),b_(this.a,H(t,16));return;case 6:vnt(this,H(t,74));return;case 7:AKe(this,H(t,84));return;case 8:kKe(this,H(t,84));return;case 9:!this.g&&(this.g=new hm(d7,this,9,10)),dR(this.g),!this.g&&(this.g=new hm(d7,this,9,10)),b_(this.g,H(t,16));return;case 10:!this.e&&(this.e=new hm(d7,this,10,9)),dR(this.e),!this.e&&(this.e=new hm(d7,this,10,9)),b_(this.e,H(t,16));return;case 11:JKe(this,Lp(t));return}BYe(this,e,t)},X.ii=function(){return ez(),WBt},X.ki=function(e){switch(e){case 1:nw(this,0);return;case 2:iw(this,0);return;case 3:ZC(this,0);return;case 4:rw(this,0);return;case 5:!this.a&&(this.a=new Tf(c7,this,5)),dR(this.a);return;case 6:vnt(this,null);return;case 7:AKe(this,null);return;case 8:kKe(this,null);return;case 9:!this.g&&(this.g=new hm(d7,this,9,10)),dR(this.g);return;case 10:!this.e&&(this.e=new hm(d7,this,10,9)),dR(this.e);return;case 11:JKe(this,null);return}oE(this,e)},X.Ib=function(){return eet(this)},X.b=0,X.c=0,X.d=null,X.j=0,X.k=0,U(GG,`ElkEdgeSectionImpl`,452),J(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),X.Lh=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab):MS(this,e-M_(this.ii()),CC((r=H(TT(this,16),29),r||this.ii()),e),t,n)},X.Sh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n)):(i=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),i.wk().zk(this,Lk(this),t-M_(this.ii()),e,n))},X.Uh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n)):(i=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Lk(this),t-M_(this.ii()),e,n))},X.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:mx(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.Zh=function(e){return cft(this,e)},X.bi=function(e,t){var n;if(e===0){!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return}jO(this,e-M_(this.ii()),CC((n=H(TT(this,16),29),n||this.ii()),e),t)},X.di=function(e){Rk(this,128,e)},X.ii=function(){return _z(),YVt},X.ki=function(e){var t;if(e===0){!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return}AD(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.pi=function(){this.Bb|=1},X.qi=function(e){return VI(this,e)},X.Bb=0,U(WG,`EModelElementImpl`,158),J(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},ule),X.ri=function(e,t){return OR(this,e,t)},X.si=function(e){var t,n,r,i,a;if(this.a!=HC(e)||e.Bb&256)throw R(new Ps(XG+e.zb+JG));for(r=Cy(e);xx(r.a).i!=0;){if(n=H(SR(r,0,(t=H(G(xx(r.a),0),89),a=t.c,V(a,90)?H(a,29):(_z(),q7))),29),rj(n))return i=HC(n).wi().si(n),H(i,54).ci(e),i;r=Cy(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new qke(e):new Cke(e)},X.ti=function(e,t){return nz(this,e,t)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.a}return MS(this,e-M_((_z(),W7)),CC((r=H(TT(this,16),29),r||W7),e),t,n)},X.Sh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 1:return this.a&&(n=H(this.a,54).Th(this,4,p7,n)),gZe(this,H(e,241),n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),W7)),t),69),i.wk().zk(this,Lk(this),t-M_((_z(),W7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 1:return gZe(this,null,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),W7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),W7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return mx(this,e-M_((_z(),W7)),CC((t=H(TT(this,16),29),t||W7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:k8e(this,H(t,241));return}jO(this,e-M_((_z(),W7)),CC((n=H(TT(this,16),29),n||W7),e),t)},X.ii=function(){return _z(),W7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:k8e(this,null);return}AD(this,e-M_((_z(),W7)),CC((t=H(TT(this,16),29),t||W7),e))};var y7,QBt,$Bt;U(WG,`EFactoryImpl`,720),J(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Foe),X.ri=function(e,t){switch(e.hk()){case 12:return H(t,149).Pg();case 13:return OO(t);default:throw R(new Ps(qG+e.xe()+JG))}},X.si=function(e){var t,n,r,i,a,o,s,l;switch(e.G==-1&&(e.G=(t=HC(e),t?SA(t.vi(),e):-1)),e.G){case 4:return a=new Ioe,a;case 6:return o=new Qo,o;case 7:return s=new rme,s;case 8:return r=new Noe,r;case 9:return n=new joe,n;case 10:return i=new Poe,i;case 11:return l=new Loe,l;default:throw R(new Ps(XG+e.zb+JG))}},X.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw R(new Ps(qG+e.xe()+JG))}},U(GG,`ElkGraphFactoryImpl`,1037),J(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),X.Gh=function(){var e,t=(e=H(TT(this,16),29),uFe(ZI(e||this.ii())));return t==null?(Fl(),Fl(),sHt):new Op(this,t)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.xe()}return MS(this,e-M_(this.ii()),CC((r=H(TT(this,16),29),r||this.ii()),e),t,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return mx(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:this.ui(Lp(t));return}jO(this,e-M_(this.ii()),CC((n=H(TT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return _z(),XVt},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:this.ui(null);return}AD(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.xe=function(){return this.zb},X.ui=function(e){Pw(this,e)},X.Ib=function(){return TD(this)},X.zb=null,U(WG,`ENamedElementImpl`,448),J(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},mPe),X.Ah=function(e){return O4e(this,e)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Wg(this,O7,this)),this.rb;case 6:return!this.vb&&(this.vb=new mm(p7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?H(this.Cb,241):null:nb(this)}return MS(this,e-M_((_z(),Y7)),CC((r=H(TT(this,16),29),r||Y7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 4:return this.sb&&(n=H(this.sb,54).Th(this,1,f7,n)),MZe(this,H(e,480),n);case 5:return!this.rb&&(this.rb=new Wg(this,O7,this)),fk(this.rb,e,n);case 6:return!this.vb&&(this.vb=new mm(p7,this,6,7)),fk(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?O4e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,7,n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),Y7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),Y7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 4:return MZe(this,null,n);case 5:return!this.rb&&(this.rb=new Wg(this,O7,this)),bA(this.rb,e,n);case 6:return!this.vb&&(this.vb=new mm(p7,this,6,7)),bA(this.vb,e,n);case 7:return FI(this,null,7,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),Y7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),Y7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!nb(this)}return mx(this,e-M_((_z(),Y7)),CC((t=H(TT(this,16),29),t||Y7),e))},X.Zh=function(e){return irt(this,e)||cft(this,e)},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:Pw(this,Lp(t));return;case 2:Iw(this,Lp(t));return;case 3:Fw(this,Lp(t));return;case 4:iN(this,H(t,480));return;case 5:!this.rb&&(this.rb=new Wg(this,O7,this)),dR(this.rb),!this.rb&&(this.rb=new Wg(this,O7,this)),b_(this.rb,H(t,16));return;case 6:!this.vb&&(this.vb=new mm(p7,this,6,7)),dR(this.vb),!this.vb&&(this.vb=new mm(p7,this,6,7)),b_(this.vb,H(t,16));return}jO(this,e-M_((_z(),Y7)),CC((n=H(TT(this,16),29),n||Y7),e),t)},X.ei=function(e){var t,n;if(e&&this.rb)for(n=new Mf(this.rb);n.e!=n.i.gc();)t=cA(n),V(t,364)&&(H(t,364).w=null);Rk(this,64,e)},X.ii=function(){return _z(),Y7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:Pw(this,null);return;case 2:Iw(this,null);return;case 3:Fw(this,null);return;case 4:iN(this,null);return;case 5:!this.rb&&(this.rb=new Wg(this,O7,this)),dR(this.rb);return;case 6:!this.vb&&(this.vb=new mm(p7,this,6,7)),dR(this.vb);return}AD(this,e-M_((_z(),Y7)),CC((t=H(TT(this,16),29),t||Y7),e))},X.pi=function(){a4e(this)},X.vi=function(){return!this.rb&&(this.rb=new Wg(this,O7,this)),this.rb},X.wi=function(){return this.sb},X.xi=function(){return this.ub},X.yi=function(){return this.xb},X.zi=function(){return this.yb},X.Ai=function(e){this.ub=e},X.Ib=function(){var e;return this.Db&64?TD(this):(e=new Kf(TD(this)),e.a+=` (nsURI: `,od(e,this.yb),e.a+=`, nsPrefix: `,od(e,this.xb),e.a+=`)`,e.a)},X.xb=null,X.yb=null;var eVt;U(WG,`EPackageImpl`,184),J(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},xet),X.q=!1,X.r=!1;var tVt=!1;U(GG,`ElkGraphPackageImpl`,569),J(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Ioe),X.Ah=function(e){return Oj(this,e)},X.Lh=function(e,t,n){switch(e){case 7:return HFe(this);case 8:return this.a}return kO(this,e,t,n)},X.Sh=function(e,t,n){var r;return t===7?(this.Cb&&(n=(r=this.Db>>16,r>=0?Oj(this,n):this.Cb.Th(this,-1-r,null,n))),wg(this,H(e,167),n)):e8e(this,e,t,n)},X.Uh=function(e,t,n){return t==7?wg(this,null,n):LJe(this,e,t,n)},X.Wh=function(e){switch(e){case 7:return!!HFe(this);case 8:return!_m(``,this.a)}return $Qe(this,e)},X.bi=function(e,t){switch(e){case 7:trt(this,H(t,167));return;case 8:jKe(this,Lp(t));return}I3e(this,e,t)},X.ii=function(){return ez(),KBt},X.ki=function(e){switch(e){case 7:trt(this,null);return;case 8:jKe(this,``);return}ok(this,e)},X.Ib=function(){return D5e(this)},X.a=``,U(GG,`ElkLabelImpl`,366),J(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Qo),X.Ah=function(e){return L4e(this,e)},X.Lh=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new Bg(v7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Bg(_7,this,10,11)),this.a;case 11:return ib(this);case 12:return!this.b&&(this.b=new Bg(u7,this,12,3)),this.b;case 13:return sp(),!this.a&&(this.a=new Bg(_7,this,10,11)),this.a.i>0}return r2e(this,e,t,n)},X.Sh=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new Bg(v7,this,9,9)),fk(this.c,e,n);case 10:return!this.a&&(this.a=new Bg(_7,this,10,11)),fk(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?L4e(this,n):this.Cb.Th(this,-1-r,null,n))),QTe(this,H(e,27),n);case 12:return!this.b&&(this.b=new Bg(u7,this,12,3)),fk(this.b,e,n)}return Gj(this,e,t,n)},X.Uh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new Bg(v7,this,9,9)),bA(this.c,e,n);case 10:return!this.a&&(this.a=new Bg(_7,this,10,11)),bA(this.a,e,n);case 11:return QTe(this,null,n);case 12:return!this.b&&(this.b=new Bg(u7,this,12,3)),bA(this.b,e,n)}return Kj(this,e,t,n)},X.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!ib(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Bg(_7,this,10,11)),this.a.i>0}return AE(this,e)},X.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new Bg(v7,this,9,9)),dR(this.c),!this.c&&(this.c=new Bg(v7,this,9,9)),b_(this.c,H(t,16));return;case 10:!this.a&&(this.a=new Bg(_7,this,10,11)),dR(this.a),!this.a&&(this.a=new Bg(_7,this,10,11)),b_(this.a,H(t,16));return;case 11:Ant(this,H(t,27));return;case 12:!this.b&&(this.b=new Bg(u7,this,12,3)),dR(this.b),!this.b&&(this.b=new Bg(u7,this,12,3)),b_(this.b,H(t,16));return}Ret(this,e,t)},X.ii=function(){return ez(),qBt},X.ki=function(e){switch(e){case 9:!this.c&&(this.c=new Bg(v7,this,9,9)),dR(this.c);return;case 10:!this.a&&(this.a=new Bg(_7,this,10,11)),dR(this.a);return;case 11:Ant(this,null);return;case 12:!this.b&&(this.b=new Bg(u7,this,12,3)),dR(this.b);return}l0e(this,e)},X.Ib=function(){return Kat(this)},U(GG,`ElkNodeImpl`,207),J(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},rme),X.Ah=function(e){return D4e(this,e)},X.Lh=function(e,t,n){return e==9?Wy(this):r2e(this,e,t,n)},X.Sh=function(e,t,n){var r;return t===9?(this.Cb&&(n=(r=this.Db>>16,r>=0?D4e(this,n):this.Cb.Th(this,-1-r,null,n))),vTe(this,H(e,27),n)):Gj(this,e,t,n)},X.Uh=function(e,t,n){return t==9?vTe(this,null,n):Kj(this,e,t,n)},X.Wh=function(e){return e==9?!!Wy(this):AE(this,e)},X.bi=function(e,t){if(e===9){bnt(this,H(t,27));return}Ret(this,e,t)},X.ii=function(){return ez(),JBt},X.ki=function(e){if(e===9){bnt(this,null);return}l0e(this,e)},X.Ib=function(){return qat(this)},U(GG,`ElkPortImpl`,193);var nVt=Kh(oK,`BasicEMap/Entry`);J(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},Loe),X.Fb=function(e){return this===e},X.ld=function(){return this.b},X.Hb=function(){return rp(this)},X.Di=function(e){MKe(this,H(e,149))},X.Lh=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return x0e(this,e,t,n)},X.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Y1e(this,e)},X.bi=function(e,t){switch(e){case 0:MKe(this,H(t,149));return;case 1:EKe(this,t);return}v7e(this,e,t)},X.ii=function(){return ez(),h7},X.ki=function(e){switch(e){case 0:MKe(this,null);return;case 1:EKe(this,null);return}kN(this,e)},X.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?Nw(e):0),this.a},X.md=function(){return this.c},X.Ci=function(e){this.a=e},X.nd=function(e){var t=this.c;return EKe(this,e),t},X.Ib=function(){var e;return this.Db&64?aF(this):(e=new Qs,ld(ld(ld(e,this.b?this.b.Pg():Az),Xht),Gf(this.c)),e.a)},X.a=-1,X.c=null;var b7=U(GG,`ElkPropertyToValueMapEntryImpl`,1122);J(996,1,{},Boe),U(cK,`JsonAdapter`,996),J(216,63,mB,Bs),U(cK,`JsonImportException`,216),J(868,1,{},jj),U(cK,`JsonImporter`,868),J(903,1,{},mbe),U(cK,`JsonImporter/lambda$0$Type`,903),J(904,1,{},hbe),U(cK,`JsonImporter/lambda$1$Type`,904),J(912,1,{},yfe),U(cK,`JsonImporter/lambda$10$Type`,912),J(914,1,{},gbe),U(cK,`JsonImporter/lambda$11$Type`,914),J(915,1,{},_be),U(cK,`JsonImporter/lambda$12$Type`,915),J(921,1,{},WNe),U(cK,`JsonImporter/lambda$13$Type`,921),J(920,1,{},GNe),U(cK,`JsonImporter/lambda$14$Type`,920),J(916,1,{},vbe),U(cK,`JsonImporter/lambda$15$Type`,916),J(917,1,{},ybe),U(cK,`JsonImporter/lambda$16$Type`,917),J(918,1,{},bbe),U(cK,`JsonImporter/lambda$17$Type`,918),J(919,1,{},xbe),U(cK,`JsonImporter/lambda$18$Type`,919),J(924,1,{},bfe),U(cK,`JsonImporter/lambda$19$Type`,924),J(905,1,{},xfe),U(cK,`JsonImporter/lambda$2$Type`,905),J(922,1,{},Sfe),U(cK,`JsonImporter/lambda$20$Type`,922),J(923,1,{},Cfe),U(cK,`JsonImporter/lambda$21$Type`,923),J(927,1,{},wfe),U(cK,`JsonImporter/lambda$22$Type`,927),J(925,1,{},Tfe),U(cK,`JsonImporter/lambda$23$Type`,925),J(926,1,{},Efe),U(cK,`JsonImporter/lambda$24$Type`,926),J(929,1,{},Dfe),U(cK,`JsonImporter/lambda$25$Type`,929),J(928,1,{},Ofe),U(cK,`JsonImporter/lambda$26$Type`,928),J(930,1,Jz,Sbe),X.Cd=function(e){$He(this.b,this.a,Lp(e))},U(cK,`JsonImporter/lambda$27$Type`,930),J(931,1,Jz,Cbe),X.Cd=function(e){eUe(this.b,this.a,Lp(e))},U(cK,`JsonImporter/lambda$28$Type`,931),J(932,1,{},wbe),U(cK,`JsonImporter/lambda$29$Type`,932),J(908,1,{},kfe),U(cK,`JsonImporter/lambda$3$Type`,908),J(933,1,{},Tbe),U(cK,`JsonImporter/lambda$30$Type`,933),J(934,1,{},Afe),U(cK,`JsonImporter/lambda$31$Type`,934),J(935,1,{},jfe),U(cK,`JsonImporter/lambda$32$Type`,935),J(936,1,{},Mfe),U(cK,`JsonImporter/lambda$33$Type`,936),J(937,1,{},Nfe),U(cK,`JsonImporter/lambda$34$Type`,937),J(870,1,{},Pfe),U(cK,`JsonImporter/lambda$35$Type`,870),J(941,1,{},ah),U(cK,`JsonImporter/lambda$36$Type`,941),J(938,1,Jz,Ffe),X.Cd=function(e){EBe(this.a,H(e,377))},U(cK,`JsonImporter/lambda$37$Type`,938),J(939,1,Jz,Dbe),X.Cd=function(e){Fbe(this.a,this.b,H(e,166))},U(cK,`JsonImporter/lambda$38$Type`,939),J(940,1,Jz,Obe),X.Cd=function(e){Ibe(this.a,this.b,H(e,166))},U(cK,`JsonImporter/lambda$39$Type`,940),J(906,1,{},Ife),U(cK,`JsonImporter/lambda$4$Type`,906),J(942,1,Jz,Lfe),X.Cd=function(e){DBe(this.a,H(e,8))},U(cK,`JsonImporter/lambda$40$Type`,942),J(907,1,{},Rfe),U(cK,`JsonImporter/lambda$5$Type`,907),J(911,1,{},zfe),U(cK,`JsonImporter/lambda$6$Type`,911),J(909,1,{},Bfe),U(cK,`JsonImporter/lambda$7$Type`,909),J(910,1,{},Vfe),U(cK,`JsonImporter/lambda$8$Type`,910),J(913,1,{},Hfe),U(cK,`JsonImporter/lambda$9$Type`,913),J(961,1,Jz,Ufe),X.Cd=function(e){R_(this.a,new D_(Lp(e)))},U(cK,`JsonMetaDataConverter/lambda$0$Type`,961),J(962,1,Jz,Wfe),X.Cd=function(e){_Me(this.a,H(e,245))},U(cK,`JsonMetaDataConverter/lambda$1$Type`,962),J(963,1,Jz,Gfe),X.Cd=function(e){fIe(this.a,H(e,143))},U(cK,`JsonMetaDataConverter/lambda$2$Type`,963),J(964,1,Jz,Kfe),X.Cd=function(e){vMe(this.a,H(e,170))},U(cK,`JsonMetaDataConverter/lambda$3$Type`,964),J(245,22,{3:1,34:1,22:1,245:1},Ju);var rVt,iVt,aVt,oVt,sVt,cVt,lVt,uVt,dVt=pw(KV,`GraphFeature`,245,cJ,GWe,QOe),fVt;J(11,1,{34:1,149:1},Ja,Zp,hd,$d),X.Fd=function(e){return aCe(this,H(e,149))},X.Fb=function(e){return RPe(this,e)},X.Sg=function(){return sA(this)},X.Pg=function(){return this.b},X.Hb=function(){return IE(this.b)},X.Ib=function(){return this.b},U(KV,`Property`,11),J(671,1,mV,qa),X.Ne=function(e,t){return vQe(this,H(e,96),H(t,96))},X.Fb=function(e){return this===e},X.Oe=function(){return new Gi(this)},U(KV,`PropertyHolderComparator`,671),J(709,1,Fz,qfe),X.Nb=function(e){qg(this,e)},X.Pb=function(){return rUe(this)},X.Qb=function(){_ge()},X.Ob=function(){return!!this.a},U(fK,`ElkGraphUtil/AncestorIterator`,709);var pVt=Kh(oK,`EList`);J(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),X.bd=function(e,t){UD(this,e,t)},X.Fc=function(e){return _S(this,e)},X.cd=function(e,t){return sE(this,e,t)},X.Gc=function(e){return b_(this,e)},X.Ii=function(){return new fp(this)},X.Ji=function(){return new pp(this)},X.Ki=function(e){return bw(this,e)},X.Li=function(){return!0},X.Mi=function(e,t){},X.Ni=function(){},X.Oi=function(e,t){DHe(this,e,t)},X.Pi=function(e,t,n){},X.Qi=function(e,t){},X.Ri=function(e,t,n){},X.Fb=function(e){return nat(this,e)},X.Hb=function(){return eYe(this)},X.Si=function(){return!1},X.Kc=function(){return new Mf(this)},X.ed=function(){return new dp(this)},X.fd=function(e){var t=this.gc();if(e<0||e>t)throw R(new gm(e,t));return new l_(this,e)},X.Ui=function(e,t){this.Ti(e,this.dd(t))},X.Mc=function(e){return oC(this,e)},X.Wi=function(e,t){return t},X.hd=function(e,t){return CA(this,e,t)},X.Ib=function(){return RO(this)},X.Yi=function(){return!0},X.Zi=function(e,t){return FE(this,t)},U(oK,`AbstractEList`,70),J(66,70,hK,Gn,BC,sT),X.Ei=function(e,t){return NM(this,e,t)},X.Fi=function(e){return b2e(this,e)},X.Gi=function(e,t){DD(this,e,t)},X.Hi=function(e){Hx(this,e)},X.$i=function(e){return cUe(this,e)},X.$b=function(){Ux(this)},X.Hc=function(e){return Jj(this,e)},X.Xb=function(e){return G(this,e)},X._i=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t=0&&(this.gd(t),!0)},X.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},X.gc=function(){return this.Ej()},X.Pc=function(){return this.Fj()},X.Qc=function(e){return this.Gj(e)},X.Ib=function(){return this.Hj()},U(oK,`DelegatingEList`,2093),J(2094,2093,sxt),X.Ei=function(e,t){return Ast(this,e,t)},X.Fi=function(e){return this.Ei(this.Ej(),e)},X.Gi=function(e,t){Cet(this,e,t)},X.Hi=function(e){Q9e(this,e)},X.Li=function(){return!this.Mj()},X.$b=function(){mR(this)},X.Ij=function(e,t,n,r,i){return new IPe(this,e,t,n,r,i)},X.Jj=function(e){ST(this.jj(),e)},X.Kj=function(){return null},X.Lj=function(){return-1},X.jj=function(){return null},X.Mj=function(){return!1},X.Nj=function(e,t){return t},X.Oj=function(e,t){return t},X.Pj=function(){return!1},X.Qj=function(){return!this.Aj()},X.Ti=function(e,t){var n,r;return this.Pj()?(r=this.Qj(),n=XM(this,e,t),this.Jj(this.Ij(7,bD(t),n,e,r)),n):XM(this,e,t)},X.gd=function(e){var t,n,r,i;return this.Pj()?(n=null,r=this.Qj(),t=this.Ij(4,i=qh(this,e),null,e,r),this.Mj()&&i&&(n=this.Oj(i,n)),n?(n.nj(t),n.oj()):this.Jj(t),i):(i=qh(this,e),this.Mj()&&i&&(n=this.Oj(i,null),n&&n.oj()),i)},X.Xi=function(e,t){return jst(this,e,t)},U(BG,`DelegatingNotifyingListImpl`,2094),J(152,1,MK),X.nj=function(e){return f6e(this,e)},X.oj=function(){qUe(this)},X.gj=function(){return this.d},X.Kj=function(){return null},X.Rj=function(){return null},X.hj=function(e){return-1},X.ij=function(){return nit(this)},X.jj=function(){return null},X.kj=function(){return rit(this)},X.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},X.Sj=function(){return!1},X.mj=function(e){var t,n,r,i,a,o,s,l,u,d,f;switch(this.d){case 1:case 2:switch(i=e.gj(),i){case 1:case 2:if(a=e.jj(),Qu(a)===Qu(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:if(i=e.gj(),i===4&&(a=e.jj(),Qu(a)===Qu(this.jj())&&this.hj(null)==e.hj(null)))return u=iut(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.lj(),this.d=6,f=new BC(2),l<=o?(_S(f,this.n),_S(f,e.kj()),this.g=K(B(F9,1),jB,28,15,[this.o=l,o+1])):(_S(f,e.kj()),_S(f,this.n),this.g=K(B(F9,1),jB,28,15,[this.o=o,l])),this.n=f,u||(this.o=-2-this.o-1),!0;break;case 6:if(i=e.gj(),i===4&&(a=e.jj(),Qu(a)===Qu(this.jj())&&this.hj(null)==e.hj(null))){for(u=iut(this),o=e.lj(),d=H(this.g,53),r=dS(F9,jB,28,d.length+1,15,1),t=0;t>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:hge(r,this.d)}if(_I(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,hge(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,ad(r,this.jj()),r.a+=`, feature: `,ad(r,this.Kj()),r.a+=`, oldValue: `,ad(r,rit(this)),r.a+=`, newValue: `,this.d==6&&V(this.g,53)){for(n=H(this.g,53),r.a+=`[`,e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new rg(this),this.a=this.j),Jc(this.b,e)):Jj(this,e)},X.Yi=function(){return!0},X.a=0,U(oK,`AbstractEList/1`,966),J(302,77,Omt,gm),U(oK,`AbstractEList/BasicIndexOutOfBoundsException`,302),J(37,1,Fz,Mf),X.Nb=function(e){qg(this,e)},X.Xj=function(){if(this.i.j!=this.f)throw R(new So)},X.Yj=function(){return cA(this)},X.Ob=function(){return this.e!=this.i.gc()},X.Pb=function(){return this.Yj()},X.Qb=function(){rM(this)},X.e=0,X.f=0,X.g=-1,U(oK,`AbstractEList/EIterator`,37),J(286,37,Uz,dp,l_),X.Qb=function(){rM(this)},X.Rb=function(e){T$e(this,e)},X.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(e){throw e=GT(e),V(e,77)?(this.Xj(),R(new Co)):R(e)}},X.$j=function(e){zA(this,e)},X.Sb=function(){return this.e!=0},X.Tb=function(){return this.e},X.Ub=function(){return this.Zj()},X.Vb=function(){return this.e-1},X.Wb=function(e){this.$j(e)},U(oK,`AbstractEList/EListIterator`,286),J(355,37,Fz,fp),X.Yj=function(){return lA(this)},X.Qb=function(){throw R(new xo)},U(oK,`AbstractEList/NonResolvingEIterator`,355),J(398,286,Uz,pp,EEe),X.Rb=function(e){throw R(new xo)},X.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(e){throw e=GT(e),V(e,77)?(this.Xj(),R(new Co)):R(e)}},X.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(e){throw e=GT(e),V(e,77)?(this.Xj(),R(new Co)):R(e)}},X.Qb=function(){throw R(new xo)},X.Wb=function(e){throw R(new xo)},U(oK,`AbstractEList/NonResolvingEListIterator`,398),J(2080,70,FK),X.Ei=function(e,t){var n,r,i=t.gc(),a,o,s,l,u,d,f,p;if(i!=0){for(u=H(TT(this.a,4),129),d=u==null?0:u.length,p=d+i,r=uXe(this,p),f=d-e,f>0&&qI(u,e,r,e+i,f),l=t.Kc(),o=0;on)throw R(new gm(e,n));return new Dv(this,e)},X.$b=function(){var e,t;++this.j,e=H(TT(this.a,4),129),t=e==null?0:e.length,Yk(this,null),DHe(this,t,e)},X.Hc=function(e){var t=H(TT(this.a,4),129),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i=n)throw R(new gm(e,n));return t[e]},X.dd=function(e){var t=H(TT(this.a,4),129),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;nn)throw R(new gm(e,n));return new DNe(this,e)},X.Ti=function(e,t){var n=U$e(this),r,i=n==null?0:n.length;if(e>=i)throw R(new js(Mbt+e+mK+i));if(t>=i)throw R(new js(Nbt+t+mK+i));return r=n[t],e!=t&&(e0&&qI(e,0,t,0,n),t},X.Qc=function(e){var t=H(TT(this.a,4),129),n,r=t==null?0:t.length;return r>0&&(e.lengthr&&P_(e,r,null),e};var xVt;U(oK,`ArrayDelegatingEList`,2080),J(1051,37,Fz,JBe),X.Xj=function(){if(this.b.j!=this.f||Qu(H(TT(this.b.a,4),129))!==Qu(this.a))throw R(new So)},X.Qb=function(){rM(this),this.a=H(TT(this.b.a,4),129)},U(oK,`ArrayDelegatingEList/EIterator`,1051),J(722,286,Uz,Rje,DNe),X.Xj=function(){if(this.b.j!=this.f||Qu(H(TT(this.b.a,4),129))!==Qu(this.a))throw R(new So)},X.$j=function(e){zA(this,e),this.a=H(TT(this.b.a,4),129)},X.Qb=function(){rM(this),this.a=H(TT(this.b.a,4),129)},U(oK,`ArrayDelegatingEList/EListIterator`,722),J(1052,355,Fz,YBe),X.Xj=function(){if(this.b.j!=this.f||Qu(H(TT(this.b.a,4),129))!==Qu(this.a))throw R(new So)},U(oK,`ArrayDelegatingEList/NonResolvingEIterator`,1052),J(723,398,Uz,zje,Dv),X.Xj=function(){if(this.b.j!=this.f||Qu(H(TT(this.b.a,4),129))!==Qu(this.a))throw R(new So)},U(oK,`ArrayDelegatingEList/NonResolvingEListIterator`,723),J(615,302,Omt,mxe),U(oK,`BasicEList/BasicIndexOutOfBoundsException`,615),J(710,66,hK,Kbe),X.bd=function(e,t){throw R(new xo)},X.Fc=function(e){throw R(new xo)},X.cd=function(e,t){throw R(new xo)},X.Gc=function(e){throw R(new xo)},X.$b=function(){throw R(new xo)},X._i=function(e){throw R(new xo)},X.Kc=function(){return this.Ii()},X.ed=function(){return this.Ji()},X.fd=function(e){return this.Ki(e)},X.Ti=function(e,t){throw R(new xo)},X.Ui=function(e,t){throw R(new xo)},X.gd=function(e){throw R(new xo)},X.Mc=function(e){throw R(new xo)},X.hd=function(e,t){throw R(new xo)},U(oK,`BasicEList/UnmodifiableEList`,710),J(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),X.bd=function(e,t){WSe(this,e,H(t,44))},X.Fc=function(e){return jp(this,H(e,44))},X.Jc=function(e){Ax(this,e)},X.Xb=function(e){return H(G(this.c,e),136)},X.Ti=function(e,t){return H(this.c.Ti(e,t),44)},X.Ui=function(e,t){GSe(this,e,H(t,44))},X.Lc=function(){return new ig(null,new kb(this,16))},X.gd=function(e){return H(this.c.gd(e),44)},X.hd=function(e,t){return gMe(this,e,H(t,44))},X.jd=function(e){Aw(this,e)},X.Nc=function(){return new kb(this,16)},X.Oc=function(){return new ig(null,new kb(this,16))},X.cd=function(e,t){return this.c.cd(e,t)},X.Gc=function(e){return this.c.Gc(e)},X.$b=function(){this.c.$b()},X.Hc=function(e){return this.c.Hc(e)},X.Ic=function(e){return WT(this.c,e)},X._j=function(){var e,t,n;if(this.d==null){for(this.d=dS(mVt,IK,66,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=H(t.Yj(),136),G0e(this,e);this.e=n}},X.Fb=function(e){return MEe(this,e)},X.Hb=function(){return eYe(this.c)},X.dd=function(e){return this.c.dd(e)},X.ak=function(){this.c=new Jfe(this)},X.dc=function(){return this.f==0},X.Kc=function(){return this.c.Kc()},X.ed=function(){return this.c.ed()},X.fd=function(e){return this.c.fd(e)},X.bk=function(){return uS(this)},X.ck=function(e,t,n){return new HOe(e,t,n)},X.dk=function(){return new Woe},X.Mc=function(e){return ZGe(this,e)},X.gc=function(){return this.f},X.kd=function(e,t){return new yb(this.c,e,t)},X.Pc=function(){return this.c.Pc()},X.Qc=function(e){return this.c.Qc(e)},X.Ib=function(){return RO(this.c)},X.e=0,X.f=0,U(oK,`BasicEMap`,721),J(1046,66,hK,Jfe),X.Mi=function(e,t){Ipe(this,H(t,136))},X.Pi=function(e,t,n){var r;++(r=this,H(t,136),r).a.e},X.Qi=function(e,t){Lpe(this,H(t,136))},X.Ri=function(e,t,n){awe(this,H(t,136),H(n,136))},X.Oi=function(e,t){pJe(this.a)},U(oK,`BasicEMap/1`,1046),J(1047,66,hK,Woe),X.aj=function(e){return dS(SVt,LK,621,e,0,1)},U(oK,`BasicEMap/2`,1047),J(1048,zz,Bz,Yfe),X.$b=function(){this.a.c.$b()},X.Hc=function(e){return S$e(this.a,e)},X.Kc=function(){return this.a.f==0?(Hp(),CVt.a):new Xhe(this.a)},X.Mc=function(e){var t=this.a.f;return Fk(this.a,e),this.a.f!=t},X.gc=function(){return this.a.f},U(oK,`BasicEMap/3`,1048),J(1049,31,Rz,Xfe),X.$b=function(){this.a.c.$b()},X.Hc=function(e){return rat(this.a,e)},X.Kc=function(){return this.a.f==0?(Hp(),CVt.a):new Zhe(this.a)},X.gc=function(){return this.a.f},U(oK,`BasicEMap/4`,1049),J(1050,zz,Bz,Zfe),X.$b=function(){this.a.c.$b()},X.Hc=function(e){var t,n,r,i,a,o,s,l,u;if(this.a.f>0&&V(e,44)&&(this.a._j(),l=H(e,44),s=l.ld(),i=s==null?0:Nw(s),a=yTe(this.a,i),t=this.a.d[a],t)){for(n=H(t.g,379),u=t.i,o=0;o`+this.c},X.a=0;var SVt=U(oK,`BasicEMap/EntryImpl`,621);J(546,1,{},Goe),U(oK,`BasicEMap/View`,546);var CVt;J(783,1,{}),X.Fb=function(e){return YP((iy(),GJ),e)},X.Hb=function(){return jYe((iy(),GJ))},X.Ib=function(){return ZM((iy(),GJ))},U(oK,`ECollections/BasicEmptyUnmodifiableEList`,783),J(1348,1,Uz,Koe),X.Nb=function(e){qg(this,e)},X.Rb=function(e){throw R(new xo)},X.Ob=function(){return!1},X.Sb=function(){return!1},X.Pb=function(){throw R(new Co)},X.Tb=function(){return 0},X.Ub=function(){throw R(new Co)},X.Vb=function(){return-1},X.Qb=function(){throw R(new xo)},X.Wb=function(e){throw R(new xo)},U(oK,`ECollections/BasicEmptyUnmodifiableEList/1`,1348),J(1346,783,{20:1,16:1,15:1,61:1},ime),X.bd=function(e,t){Fge()},X.Fc=function(e){return Ige()},X.cd=function(e,t){return Lge()},X.Gc=function(e){return Rge()},X.$b=function(){zge()},X.Hc=function(e){return!1},X.Ic=function(e){return!1},X.Jc=function(e){Ax(this,e)},X.Xb=function(e){return sxe((iy(),e)),null},X.dd=function(e){return-1},X.dc=function(){return!0},X.Kc=function(){return this.a},X.ed=function(){return this.a},X.fd=function(e){return this.a},X.Ti=function(e,t){return Bge()},X.Ui=function(e,t){Vge()},X.Lc=function(){return new ig(null,new kb(this,16))},X.gd=function(e){return Hge()},X.Mc=function(e){return Uge()},X.hd=function(e,t){return Wge()},X.gc=function(){return 0},X.jd=function(e){Aw(this,e)},X.Nc=function(){return new kb(this,16)},X.Oc=function(){return new ig(null,new kb(this,16))},X.kd=function(e,t){return iy(),new yb(GJ,e,t)},X.Pc=function(){return cje((iy(),GJ))},X.Qc=function(e){return iy(),BA(GJ,e)},U(oK,`ECollections/EmptyUnmodifiableEList`,1346),J(1347,783,{20:1,16:1,15:1,61:1,597:1},es),X.bd=function(e,t){Fge()},X.Fc=function(e){return Ige()},X.cd=function(e,t){return Lge()},X.Gc=function(e){return Rge()},X.$b=function(){zge()},X.Hc=function(e){return!1},X.Ic=function(e){return!1},X.Jc=function(e){Ax(this,e)},X.Xb=function(e){return sxe((iy(),e)),null},X.dd=function(e){return-1},X.dc=function(){return!0},X.Kc=function(){return this.a},X.ed=function(){return this.a},X.fd=function(e){return this.a},X.Ti=function(e,t){return Bge()},X.Ui=function(e,t){Vge()},X.Lc=function(){return new ig(null,new kb(this,16))},X.gd=function(e){return Hge()},X.Mc=function(e){return Uge()},X.hd=function(e,t){return Wge()},X.gc=function(){return 0},X.jd=function(e){Aw(this,e)},X.Nc=function(){return new kb(this,16)},X.Oc=function(){return new ig(null,new kb(this,16))},X.kd=function(e,t){return iy(),new yb(GJ,e,t)},X.Pc=function(){return cje((iy(),GJ))},X.Qc=function(e){return iy(),BA(GJ,e)},X.bk=function(){return iy(),iy(),KJ},U(oK,`ECollections/EmptyUnmodifiableEMap`,1347);var wVt=Kh(oK,`Enumerator`),TVt;J(288,1,{288:1},lat),X.Fb=function(e){var t;return this===e?!0:V(e,288)?(t=H(e,288),this.f==t.f&&TAe(this.i,t.i)&&wAe(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&wAe(this.d,t.d)&&wAe(this.g,t.g)&&wAe(this.e,t.e)&&Z1e(this,t)):!1},X.Hb=function(){return this.f},X.Ib=function(){return II(this)},X.f=0;var EVt=0,DVt=0,OVt=0,kVt=0,AVt=0,jVt=0,MVt=0,NVt=0,PVt=0,FVt,S7=0,C7=0,IVt=0,LVt=0,RVt,zVt;U(oK,`URI`,288),J(1121,45,rV,ts),X.zc=function(e,t){return H(db(this,Lp(e),H(t,288)),288)},U(oK,`URI/URICache`,1121),J(506,66,hK,zoe,fg),X.Si=function(){return!0},U(oK,`UniqueEList`,506),J(590,63,mB,US),U(oK,`WrappedException`,590);var w7=Kh(LG,BK),T7=Kh(LG,VK),E7=Kh(LG,cxt),D7=Kh(LG,HK),O7=Kh(LG,UK),k7=Kh(LG,`EClass`),BVt=Kh(LG,`EDataType`),VVt;J(1233,45,rV,ame),X.xc=function(e){return $u(e)?Fy(this,e):Zu(hg(this.f,e))},U(LG,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1233);var HVt=Kh(LG,`EEnum`),A7=Kh(LG,WK),j7=Kh(LG,lxt),M7=Kh(LG,GK),N7,P7=Kh(LG,uxt),F7=Kh(LG,dxt);J(1042,1,{},Roe),X.Ib=function(){return`NIL`},U(LG,`EStructuralFeature/Internal/DynamicValueHolder/1`,1042);var UVt;J(1041,45,rV,ome),X.xc=function(e){return $u(e)?Fy(this,e):Zu(hg(this.f,e))},U(LG,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1041);var I7=Kh(LG,fxt),L7=Kh(LG,`EValidator/PatternMatcher`),WVt,GVt,R7,z7,B7,V7,KVt,qVt,JVt,H7,U7,W7,G7,K7,YVt,XVt,q7,J7,ZVt,Y7,X7,Z7,Q7,QVt,$Vt,$7,eHt=Kh(KK,`FeatureMap/Entry`);J(545,1,{76:1},zbe),X.Lk=function(){return this.a},X.md=function(){return this.b},U(WG,`BasicEObjectImpl/1`,545),J(1040,1,pxt,Bbe),X.Fk=function(e){return uVe(this.a,this.b,e)},X.Qj=function(){return IFe(this.a,this.b)},X.Wb=function(e){FFe(this.a,this.b,e)},X.Gk=function(){tNe(this.a,this.b)},U(WG,`BasicEObjectImpl/4`,1040),J(2081,1,{114:1}),X.Mk=function(e){this.e=e==0?tHt:dS($q,Oz,1,e,5,1)},X.li=function(e){return this.e[e]},X.mi=function(e,t){this.e[e]=t},X.ni=function(e){this.e[e]=null},X.Nk=function(){return this.c},X.Ok=function(){throw R(new xo)},X.Pk=function(){throw R(new xo)},X.Qk=function(){return this.d},X.Rk=function(){return this.e!=null},X.Sk=function(e){this.c=e},X.Tk=function(e){throw R(new xo)},X.Uk=function(e){throw R(new xo)},X.Vk=function(e){this.d=e};var tHt;U(WG,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2081),J(192,2081,{114:1},Gr),X.Ok=function(){return this.a},X.Pk=function(){return this.b},X.Tk=function(e){this.a=e},X.Uk=function(e){this.b=e},U(WG,`BasicEObjectImpl/EPropertiesHolderImpl`,192),J(516,99,sbt,Kn),X.uh=function(){return this.f},X.zh=function(){return this.k},X.Bh=function(e,t){this.g=e,this.i=t},X.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},X.Fh=function(){return this.i},X.wh=function(){return!!(this.j&1)},X.Ph=function(){return this.g},X.Vh=function(){return!!(this.j&4)},X.$h=function(){return!this.k&&(this.k=new Gr),this.k},X.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},X.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},X.ii=function(){return(A_(),R7).S},X.i=0,X.j=1,U(WG,`EObjectImpl`,516),J(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Cke),X.li=function(e){return this.e[e]},X.mi=function(e,t){this.e[e]=t},X.ni=function(e){this.e[e]=null},X.Dh=function(){return this.d},X.Ih=function(e){return XO(this.d,e)},X.Kh=function(){return this.d},X.Oh=function(){return this.e!=null},X.$h=function(){return!this.k&&(this.k=new qoe),this.k},X.ci=function(e){this.d=e},X.hi=function(){var e;return this.e??=(e=M_(this.d),e==0?nHt:dS($q,Oz,1,e,5,1)),this},X.ji=function(){return 0};var nHt;U(WG,`DynamicEObjectImpl`,798),J(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},qke),X.Fb=function(e){return this===e},X.Hb=function(){return rp(this)},X.ci=function(e){this.d=e,this.b=DF(e,`key`),this.c=DF(e,QG)},X.Bi=function(){var e;return this.a==-1&&(e=tWe(this,this.b),this.a=e==null?0:Nw(e)),this.a},X.ld=function(){return tWe(this,this.b)},X.md=function(){return tWe(this,this.c)},X.Ci=function(e){this.a=e},X.Di=function(e){FFe(this,this.b,e)},X.nd=function(e){var t=tWe(this,this.c);return FFe(this,this.c,e),t},X.a=0,U(WG,`DynamicEObjectImpl/BasicEMapEntry`,1522),J(1523,1,{114:1},qoe),X.Mk=function(e){throw R(new xo)},X.li=function(e){throw R(new xo)},X.mi=function(e,t){throw R(new xo)},X.ni=function(e){throw R(new xo)},X.Nk=function(){throw R(new xo)},X.Ok=function(){return this.a},X.Pk=function(){return this.b},X.Qk=function(){return this.c},X.Rk=function(){throw R(new xo)},X.Sk=function(e){throw R(new xo)},X.Tk=function(e){this.a=e},X.Uk=function(e){this.b=e},X.Vk=function(e){this.c=e},U(WG,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1523),J(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},Joe),X.Ah=function(e){return Aj(this,e)},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new Ep((_z(),Q7),t9,this)),this.b):(!this.b&&(this.b=new Ep((_z(),Q7),t9,this)),uS(this.b));case 3:return UFe(this);case 4:return!this.a&&(this.a=new Tf(o7,this,4)),this.a;case 5:return!this.c&&(this.c=new Af(o7,this,5)),this.c}return MS(this,e-M_((_z(),z7)),CC((r=H(TT(this,16),29),r||z7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?Aj(this,n):this.Cb.Th(this,-1-i,null,n))),nje(this,H(e,155),n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),z7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),z7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 2:return!this.b&&(this.b=new Ep((_z(),Q7),t9,this)),PEe(this.b,e,n);case 3:return nje(this,null,n);case 4:return!this.a&&(this.a=new Tf(o7,this,4)),bA(this.a,e,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),z7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),z7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!UFe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return mx(this,e-M_((_z(),z7)),CC((t=H(TT(this,16),29),t||z7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:Zke(this,Lp(t));return;case 2:!this.b&&(this.b=new Ep((_z(),Q7),t9,this)),fT(this.b,t);return;case 3:nrt(this,H(t,155));return;case 4:!this.a&&(this.a=new Tf(o7,this,4)),dR(this.a),!this.a&&(this.a=new Tf(o7,this,4)),b_(this.a,H(t,16));return;case 5:!this.c&&(this.c=new Af(o7,this,5)),dR(this.c),!this.c&&(this.c=new Af(o7,this,5)),b_(this.c,H(t,16));return}jO(this,e-M_((_z(),z7)),CC((n=H(TT(this,16),29),n||z7),e),t)},X.ii=function(){return _z(),z7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:FKe(this,null);return;case 2:!this.b&&(this.b=new Ep((_z(),Q7),t9,this)),this.b.c.$b();return;case 3:nrt(this,null);return;case 4:!this.a&&(this.a=new Tf(o7,this,4)),dR(this.a);return;case 5:!this.c&&(this.c=new Af(o7,this,5)),dR(this.c);return}AD(this,e-M_((_z(),z7)),CC((t=H(TT(this,16),29),t||z7),e))},X.Ib=function(){return jD(this)},X.d=null,U(WG,`EAnnotationImpl`,519),J(141,721,mxt,CS),X.Gi=function(e,t){nSe(this,e,H(t,44))},X.Wk=function(e,t){return NEe(this,H(e,44),t)},X.$i=function(e){return H(H(this.c,71).$i(e),136)},X.Ii=function(){return H(this.c,71).Ii()},X.Ji=function(){return H(this.c,71).Ji()},X.Ki=function(e){return H(this.c,71).Ki(e)},X.Xk=function(e,t){return PEe(this,e,t)},X.Fk=function(e){return H(this.c,79).Fk(e)},X.ak=function(){},X.Qj=function(){return H(this.c,79).Qj()},X.ck=function(e,t,n){var r=H(HC(this.b).wi().si(this.b),136);return r.Ci(e),r.Di(t),r.nd(n),r},X.dk=function(){return new upe(this)},X.Wb=function(e){fT(this,e)},X.Gk=function(){H(this.c,79).Gk()},U(KK,`EcoreEMap`,141),J(165,141,mxt,Ep),X._j=function(){var e,t,n,r,i,a;if(this.d==null){for(a=dS(mVt,IK,66,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)t=H(n.Yj(),136),r=t.Bi(),i=(r&Cz)%a.length,e=a[i],!e&&(e=a[i]=new upe(this)),e.Fc(t);this.d=a}},U(WG,`EAnnotationImpl/1`,165),J(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),X.Lh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return sp(),!!(this.Bb&256);case 3:return sp(),!!(this.Bb&512);case 4:return bD(this.s);case 5:return bD(this.t);case 6:return sp(),!!this.Jk();case 7:return sp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q}return MS(this,e-M_(this.ii()),CC((r=H(TT(this,16),29),r||this.ii()),e),t,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 9:return yMe(this,n)}return i=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Lk(this),t-M_(this.ii()),e,n)},X.Wh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0)}return mx(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:this.ui(Lp(t));return;case 2:MD(this,ks(Fp(t)));return;case 3:PD(this,ks(Fp(t)));return;case 4:aw(this,H(t,17).a);return;case 5:this.Zk(H(t,17).a);return;case 8:aD(this,H(t,142));return;case 9:r=PM(this,H(t,89),null),r&&r.oj();return}jO(this,e-M_(this.ii()),CC((n=H(TT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return _z(),$Vt},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:this.ui(null);return;case 2:MD(this,!0);return;case 3:PD(this,!0);return;case 4:aw(this,0);return;case 5:this.Zk(1);return;case 8:aD(this,null);return;case 9:n=PM(this,null,null),n&&n.oj();return}AD(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.pi=function(){Pj(this),this.Bb|=1},X.Hk=function(){return Pj(this)},X.Ik=function(){return this.t},X.Jk=function(){var e=this.t;return e>1||e==-1},X.Si=function(){return!!(this.Bb&512)},X.Yk=function(e,t){return NZe(this,e,t)},X.Zk=function(e){ow(this,e)},X.Ib=function(){return LP(this)},X.s=0,X.t=1,U(WG,`ETypedElementImpl`,292),J(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),X.Ah=function(e){return d4e(this,e)},X.Lh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return sp(),!!(this.Bb&256);case 3:return sp(),!!(this.Bb&512);case 4:return bD(this.s);case 5:return bD(this.t);case 6:return sp(),!!this.Jk();case 7:return sp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return sp(),(this.Bb&aB)!=0;case 11:return sp(),(this.Bb&JK)!=0;case 12:return sp(),(this.Bb&JB)!=0;case 13:return this.j;case 14:return yF(this);case 15:return sp(),(this.Bb&qK)!=0;case 16:return sp(),(this.Bb&Kz)!=0;case 17:return ab(this)}return MS(this,e-M_(this.ii()),CC((r=H(TT(this,16),29),r||this.ii()),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?d4e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,17,n)}return a=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),a.wk().zk(this,Lk(this),t-M_(this.ii()),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 9:return yMe(this,n);case 17:return FI(this,null,17,n)}return i=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Lk(this),t-M_(this.ii()),e,n)},X.Wh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return(this.Bb&aB)==0;case 11:return(this.Bb&JK)!=0;case 12:return(this.Bb&JB)!=0;case 13:return this.j!=null;case 14:return yF(this)!=null;case 15:return(this.Bb&qK)!=0;case 16:return(this.Bb&Kz)!=0;case 17:return!!ab(this)}return mx(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:uIe(this,Lp(t));return;case 2:MD(this,ks(Fp(t)));return;case 3:PD(this,ks(Fp(t)));return;case 4:aw(this,H(t,17).a);return;case 5:this.Zk(H(t,17).a);return;case 8:aD(this,H(t,142));return;case 9:r=PM(this,H(t,89),null),r&&r.oj();return;case 10:ZD(this,ks(Fp(t)));return;case 11:eO(this,ks(Fp(t)));return;case 12:QD(this,ks(Fp(t)));return;case 13:Pbe(this,Lp(t));return;case 15:$D(this,ks(Fp(t)));return;case 16:cO(this,ks(Fp(t)));return}jO(this,e-M_(this.ii()),CC((n=H(TT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return _z(),QVt},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:V(this.Cb,90)&&ZN(Ix(H(this.Cb,90)),4),Pw(this,null);return;case 2:MD(this,!0);return;case 3:PD(this,!0);return;case 4:aw(this,0);return;case 5:this.Zk(1);return;case 8:aD(this,null);return;case 9:n=PM(this,null,null),n&&n.oj();return;case 10:ZD(this,!0);return;case 11:eO(this,!1);return;case 12:QD(this,!1);return;case 13:this.i=null,YKe(this,null);return;case 15:$D(this,!1);return;case 16:cO(this,!1);return}AD(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.pi=function(){wv(qS((MN(),r9),this)),Pj(this),this.Bb|=1},X.pk=function(){return this.f},X.ik=function(){return yF(this)},X.qk=function(){return ab(this)},X.uk=function(){return null},X.$k=function(){return this.k},X.Lj=function(){return this.n},X.vk=function(){return cM(this)},X.wk=function(){var e,t,n,r,i,a,o,s,l;return this.p||(n=ab(this),(n.i??ZI(n),n.i).length,r=this.uk(),r&&M_(ab(r)),i=Pj(this),o=i.kk(),e=o?o.i&1?o==I9?wJ:o==F9?kJ:o==B9?OJ:o==z9?DJ:o==L9?jJ:o==V9?PJ:o==R9?TJ:EJ:o:null,t=yF(this),s=i.ik(),NQe(this),(this.Bb&Kz)!=0&&((a=v3e((MN(),r9),n))&&a!=this||(a=Lb(qS(r9,this))))?this.p=new Hbe(this,a):this.Jk()?this.al()?this.p=r?(this.Bb&qK)==0?e?this.bl()?new Kv(49,e,this,r):new Kv(7,e,this,r):this.bl()?new Tx(48,this,r):new Tx(6,this,r):e?this.bl()?new Kv(47,e,this,r):new Kv(5,e,this,r):this.bl()?new Tx(46,this,r):new Tx(4,this,r):(this.Bb&qK)==0?e?e==rJ?new oh(41,nVt,this):this.bl()?new oh(45,e,this):new oh(3,e,this):this.bl()?new by(44,this):new by(2,this):e?e==rJ?new oh(50,nVt,this):this.bl()?new oh(43,e,this):new oh(1,e,this):this.bl()?new by(42,this):new by(0,this):V(i,156)?this.p=e==eHt?new by(40,this):this.Bb&512?(this.Bb&qK)==0?e?new oh(11,e,this):new by(10,this):e?new oh(9,e,this):new by(8,this):(this.Bb&qK)==0?e?new oh(15,e,this):new by(14,this):e?new oh(13,e,this):new by(12,this):r?(l=r.t,this.p=l>1||l==-1?this.bl()?(this.Bb&qK)==0?e?new Kv(27,e,this,r):new Tx(26,this,r):e?new Kv(25,e,this,r):new Tx(24,this,r):(this.Bb&qK)==0?e?new Kv(31,e,this,r):new Tx(30,this,r):e?new Kv(29,e,this,r):new Tx(28,this,r):this.bl()?(this.Bb&qK)==0?e?new Kv(35,e,this,r):new Tx(34,this,r):e?new Kv(33,e,this,r):new Tx(32,this,r):(this.Bb&qK)==0?e?new Kv(39,e,this,r):new Tx(38,this,r):e?new Kv(37,e,this,r):new Tx(36,this,r)):this.p=this.bl()?(this.Bb&qK)==0?e?new oh(19,e,this):new by(18,this):e?new oh(17,e,this):new by(16,this):(this.Bb&qK)==0?e?new oh(23,e,this):new by(22,this):e?new oh(21,e,this):new by(20,this):this.p=this._k()?this.bl()?new UOe(H(i,29),this,r):new hFe(H(i,29),this,r):V(i,156)?e==eHt?new by(40,this):(this.Bb&qK)==0?e?new tje(t,s,this,(ck(),o==F9?hHt:o==I9?uHt:o==L9?gHt:o==B9?mHt:o==z9?pHt:o==V9?vHt:o==R9?dHt:o==P9?fHt:_Ht)):new qNe(H(i,156),t,s,this):e?new Sg(t,s,this,(ck(),o==F9?hHt:o==I9?uHt:o==L9?gHt:o==B9?mHt:o==z9?pHt:o==V9?vHt:o==R9?dHt:o==P9?fHt:_Ht)):new JNe(H(i,156),t,s,this):this.al()?r?(this.Bb&qK)==0?this.bl()?new KOe(H(i,29),this,r):new sh(H(i,29),this,r):this.bl()?new JOe(H(i,29),this,r):new qOe(H(i,29),this,r):(this.Bb&qK)==0?this.bl()?new Pwe(H(i,29),this):new Np(H(i,29),this):this.bl()?new Lwe(H(i,29),this):new Fwe(H(i,29),this):this.bl()?r?(this.Bb&qK)==0?new WOe(H(i,29),this,r):new YOe(H(i,29),this,r):(this.Bb&qK)==0?new Iwe(H(i,29),this):new Rwe(H(i,29),this):r?(this.Bb&qK)==0?new GOe(H(i,29),this,r):new XOe(H(i,29),this,r):(this.Bb&qK)==0?new AAe(H(i,29),this):new zwe(H(i,29),this)),this.p},X.rk=function(){return(this.Bb&aB)!=0},X._k=function(){return!1},X.al=function(){return!1},X.sk=function(){return(this.Bb&Kz)!=0},X.xk=function(){return aWe(this)},X.bl=function(){return!1},X.tk=function(){return(this.Bb&qK)!=0},X.cl=function(e){this.k=e},X.ui=function(e){uIe(this,e)},X.Ib=function(){return tI(this)},X.e=!1,X.n=0,U(WG,`EStructuralFeatureImpl`,462),J(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},sme),X.Lh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return sp(),!!(this.Bb&256);case 3:return sp(),!!(this.Bb&512);case 4:return bD(this.s);case 5:return bD(this.t);case 6:return sp(),!!y9e(this);case 7:return sp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return sp(),(this.Bb&aB)!=0;case 11:return sp(),(this.Bb&JK)!=0;case 12:return sp(),(this.Bb&JB)!=0;case 13:return this.j;case 14:return yF(this);case 15:return sp(),(this.Bb&qK)!=0;case 16:return sp(),(this.Bb&Kz)!=0;case 17:return ab(this);case 18:return sp(),(this.Bb&UG)!=0;case 19:return t?UT(this):IVe(this)}return MS(this,e-M_((_z(),B7)),CC((r=H(TT(this,16),29),r||B7),e),t,n)},X.Wh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return y9e(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return(this.Bb&aB)==0;case 11:return(this.Bb&JK)!=0;case 12:return(this.Bb&JB)!=0;case 13:return this.j!=null;case 14:return yF(this)!=null;case 15:return(this.Bb&qK)!=0;case 16:return(this.Bb&Kz)!=0;case 17:return!!ab(this);case 18:return(this.Bb&UG)!=0;case 19:return!!IVe(this)}return mx(this,e-M_((_z(),B7)),CC((t=H(TT(this,16),29),t||B7),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:uIe(this,Lp(t));return;case 2:MD(this,ks(Fp(t)));return;case 3:PD(this,ks(Fp(t)));return;case 4:aw(this,H(t,17).a);return;case 5:ege(this,H(t,17).a);return;case 8:aD(this,H(t,142));return;case 9:r=PM(this,H(t,89),null),r&&r.oj();return;case 10:ZD(this,ks(Fp(t)));return;case 11:eO(this,ks(Fp(t)));return;case 12:QD(this,ks(Fp(t)));return;case 13:Pbe(this,Lp(t));return;case 15:$D(this,ks(Fp(t)));return;case 16:cO(this,ks(Fp(t)));return;case 18:sO(this,ks(Fp(t)));return}jO(this,e-M_((_z(),B7)),CC((n=H(TT(this,16),29),n||B7),e),t)},X.ii=function(){return _z(),B7},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:V(this.Cb,90)&&ZN(Ix(H(this.Cb,90)),4),Pw(this,null);return;case 2:MD(this,!0);return;case 3:PD(this,!0);return;case 4:aw(this,0);return;case 5:this.b=0,ow(this,1);return;case 8:aD(this,null);return;case 9:n=PM(this,null,null),n&&n.oj();return;case 10:ZD(this,!0);return;case 11:eO(this,!1);return;case 12:QD(this,!1);return;case 13:this.i=null,YKe(this,null);return;case 15:$D(this,!1);return;case 16:cO(this,!1);return;case 18:sO(this,!1);return}AD(this,e-M_((_z(),B7)),CC((t=H(TT(this,16),29),t||B7),e))},X.pi=function(){UT(this),wv(qS((MN(),r9),this)),Pj(this),this.Bb|=1},X.Jk=function(){return y9e(this)},X.Yk=function(e,t){return this.b=0,this.a=null,NZe(this,e,t)},X.Zk=function(e){ege(this,e)},X.Ib=function(){var e;return this.Db&64?tI(this):(e=new Kf(tI(this)),e.a+=` (iD: `,Oc(e,(this.Bb&UG)!=0),e.a+=`)`,e.a)},X.b=0,U(WG,`EAttributeImpl`,331),J(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),X.dl=function(e){return e.Dh()==this},X.Ah=function(e){return Y2e(this,e)},X.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return rj(this);case 4:return this.ik();case 5:return this.F;case 6:return t?HC(this):rb(this);case 7:return!this.A&&(this.A=new Of(I7,this,7)),this.A}return MS(this,e-M_(this.ii()),CC((r=H(TT(this,16),29),r||this.ii()),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?Y2e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,6,n)}return a=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),a.wk().zk(this,Lk(this),t-M_(this.ii()),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 6:return FI(this,null,6,n);case 7:return!this.A&&(this.A=new Of(I7,this,7)),bA(this.A,e,n)}return i=H(CC((r=H(TT(this,16),29),r||this.ii()),t),69),i.wk().Ak(this,Lk(this),t-M_(this.ii()),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!rj(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rb(this);case 7:return!!this.A&&this.A.i!=0}return mx(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:lIe(this,Lp(t));return;case 2:Rd(this,Lp(t));return;case 5:MR(this,Lp(t));return;case 7:!this.A&&(this.A=new Of(I7,this,7)),dR(this.A),!this.A&&(this.A=new Of(I7,this,7)),b_(this.A,H(t,16));return}jO(this,e-M_(this.ii()),CC((n=H(TT(this,16),29),n||this.ii()),e),t)},X.ii=function(){return _z(),KVt},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:V(this.Cb,184)&&(H(this.Cb,184).tb=null),Pw(this,null);return;case 2:GE(this,null),sw(this,this.D);return;case 5:MR(this,null);return;case 7:!this.A&&(this.A=new Of(I7,this,7)),dR(this.A);return}AD(this,e-M_(this.ii()),CC((t=H(TT(this,16),29),t||this.ii()),e))},X.hk=function(){var e;return this.G==-1&&(this.G=(e=HC(this),e?SA(e.vi(),this):-1)),this.G},X.ik=function(){return null},X.jk=function(){return HC(this)},X.el=function(){return this.v},X.kk=function(){return rj(this)},X.lk=function(){return this.D==null?this.B:this.D},X.mk=function(){return this.F},X.fk=function(e){return Kst(this,e)},X.fl=function(e){this.v=e},X.gl=function(e){Cqe(this,e)},X.hl=function(e){this.C=e},X.ui=function(e){lIe(this,e)},X.Ib=function(){return rk(this)},X.C=null,X.D=null,X.G=-1,U(WG,`EClassifierImpl`,364),J(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},lle),X.dl=function(e){return JTe(this,e.Dh())},X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return rj(this);case 4:return null;case 5:return this.F;case 6:return t?HC(this):rb(this);case 7:return!this.A&&(this.A=new Of(I7,this,7)),this.A;case 8:return sp(),!!(this.Bb&256);case 9:return sp(),!!(this.Bb&512);case 10:return Cy(this);case 11:return!this.q&&(this.q=new Bg(M7,this,11,10)),this.q;case 12:return EL(this);case 13:return yL(this);case 14:return yL(this),this.r;case 15:return EL(this),this.k;case 16:return a7e(this);case 17:return sL(this);case 18:return ZI(this);case 19:return _F(this);case 20:return EL(this),this.o;case 21:return!this.s&&(this.s=new Bg(E7,this,21,17)),this.s;case 22:return xx(this);case 23:return Jit(this)}return MS(this,e-M_((_z(),V7)),CC((r=H(TT(this,16),29),r||V7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?Y2e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,6,n);case 11:return!this.q&&(this.q=new Bg(M7,this,11,10)),fk(this.q,e,n);case 21:return!this.s&&(this.s=new Bg(E7,this,21,17)),fk(this.s,e,n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),V7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),V7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 6:return FI(this,null,6,n);case 7:return!this.A&&(this.A=new Of(I7,this,7)),bA(this.A,e,n);case 11:return!this.q&&(this.q=new Bg(M7,this,11,10)),bA(this.q,e,n);case 21:return!this.s&&(this.s=new Bg(E7,this,21,17)),bA(this.s,e,n);case 22:return bA(xx(this),e,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),V7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),V7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!rj(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rb(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!!(this.Bb&256);case 9:return!!(this.Bb&512);case 10:return!!this.u&&xx(this.u.a).i!=0&&!(this.n&&Q0e(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return EL(this).i!=0;case 13:return yL(this).i!=0;case 14:return yL(this),this.r.i!=0;case 15:return EL(this),this.k.i!=0;case 16:return a7e(this).i!=0;case 17:return sL(this).i!=0;case 18:return ZI(this).i!=0;case 19:return _F(this).i!=0;case 20:return EL(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Q0e(this.n);case 23:return Jit(this).i!=0}return mx(this,e-M_((_z(),V7)),CC((t=H(TT(this,16),29),t||V7),e))},X.Zh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:DF(this,e))||cft(this,e)},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:lIe(this,Lp(t));return;case 2:Rd(this,Lp(t));return;case 5:MR(this,Lp(t));return;case 7:!this.A&&(this.A=new Of(I7,this,7)),dR(this.A),!this.A&&(this.A=new Of(I7,this,7)),b_(this.A,H(t,16));return;case 8:WZe(this,ks(Fp(t)));return;case 9:FD(this,ks(Fp(t)));return;case 10:mR(Cy(this)),b_(Cy(this),H(t,16));return;case 11:!this.q&&(this.q=new Bg(M7,this,11,10)),dR(this.q),!this.q&&(this.q=new Bg(M7,this,11,10)),b_(this.q,H(t,16));return;case 21:!this.s&&(this.s=new Bg(E7,this,21,17)),dR(this.s),!this.s&&(this.s=new Bg(E7,this,21,17)),b_(this.s,H(t,16));return;case 22:dR(xx(this)),b_(xx(this),H(t,16));return}jO(this,e-M_((_z(),V7)),CC((n=H(TT(this,16),29),n||V7),e),t)},X.ii=function(){return _z(),V7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:V(this.Cb,184)&&(H(this.Cb,184).tb=null),Pw(this,null);return;case 2:GE(this,null),sw(this,this.D);return;case 5:MR(this,null);return;case 7:!this.A&&(this.A=new Of(I7,this,7)),dR(this.A);return;case 8:WZe(this,!1);return;case 9:FD(this,!1);return;case 10:this.u&&mR(this.u);return;case 11:!this.q&&(this.q=new Bg(M7,this,11,10)),dR(this.q);return;case 21:!this.s&&(this.s=new Bg(E7,this,21,17)),dR(this.s);return;case 22:this.n&&dR(this.n);return}AD(this,e-M_((_z(),V7)),CC((t=H(TT(this,16),29),t||V7),e))},X.pi=function(){var e,t;if(EL(this),yL(this),a7e(this),sL(this),ZI(this),_F(this),Jit(this),Ux(nke(Ix(this))),this.s)for(e=0,t=this.s.i;e=0;--t)G(this,t);return b$e(this,e)},X.Gk=function(){dR(this)},X.Zi=function(e,t){return NGe(this,e,t)},U(KK,`EcoreEList`,632),J(505,632,rq,Dh),X.Li=function(){return!1},X.Lj=function(){return this.c},X.Mj=function(){return!1},X.ol=function(){return!0},X.Si=function(){return!0},X.Wi=function(e,t){return t},X.Yi=function(){return!1},X.c=0,U(KK,`EObjectEList`,505),J(83,505,rq,Tf),X.Mj=function(){return!0},X.ml=function(){return!1},X.al=function(){return!0},U(KK,`EObjectContainmentEList`,83),J(555,83,rq,Ef),X.Ni=function(){this.b=!0},X.Qj=function(){return this.b},X.Gk=function(){var e;dR(this),jd(this.e)?(e=this.b,this.b=!1,ST(this.e,new Lx(this.e,2,this.c,e,!1))):this.b=!1},X.b=!1,U(KK,`EObjectContainmentEList/Unsettable`,555),J(1161,555,rq,$Ae),X.Ti=function(e,t){var n=H(XD(this,e,t),89),r;return jd(this.e)&&Oo(this,new wS(this.a,7,(_z(),qVt),bD(t),(r=n.c,V(r,90)?H(r,29):q7),e)),n},X.Uj=function(e,t){return k$e(this,H(e,89),t)},X.Vj=function(e,t){return O$e(this,H(e,89),t)},X.Wj=function(e,t,n){return M3e(this,H(e,89),H(t,89),n)},X.Ij=function(e,t,n,r,i){switch(e){case 3:return ub(this,e,t,n,r,this.i>1);case 5:return ub(this,e,t,n,r,this.i-H(n,15).gc()>0);default:return new XS(this.e,e,this.c,t,n,r,!0)}},X.Tj=function(){return!0},X.Qj=function(){return Q0e(this)},X.Gk=function(){dR(this)},U(WG,`EClassImpl/1`,1161),J(1175,1174,jK),X.dj=function(e){var t,n=e.gj(),r,i,a,o,s;if(n!=8){if(r=nA(e),r==0)switch(n){case 1:case 9:s=e.kj(),s!=null&&(t=Ix(H(s,482)),!t.c&&(t.c=new Yn),oC(t.c,e.jj())),o=e.ij(),o!=null&&(i=H(o,482),i.Bb&1||(t=Ix(i),!t.c&&(t.c=new Yn),_S(t.c,H(e.jj(),29))));break;case 3:o=e.ij(),o!=null&&(i=H(o,482),i.Bb&1||(t=Ix(i),!t.c&&(t.c=new Yn),_S(t.c,H(e.jj(),29))));break;case 5:if(o=e.ij(),o!=null)for(a=H(o,16).Kc();a.Ob();)i=H(a.Pb(),482),i.Bb&1||(t=Ix(i),!t.c&&(t.c=new Yn),_S(t.c,H(e.jj(),29)));break;case 4:s=e.kj(),s!=null&&(i=H(s,482),i.Bb&1||(t=Ix(i),!t.c&&(t.c=new Yn),oC(t.c,e.jj())));break;case 6:if(s=e.kj(),s!=null)for(a=H(s,16).Kc();a.Ob();)i=H(a.Pb(),482),i.Bb&1||(t=Ix(i),!t.c&&(t.c=new Yn),oC(t.c,e.jj()))}this.ql(r)}},X.ql=function(e){bat(this,e)},X.b=63,U(WG,`ESuperAdapter`,1175),J(1176,1175,jK,Qfe),X.ql=function(e){ZN(this,e)},U(WG,`EClassImpl/10`,1176),J(1165,710,rq),X.Ei=function(e,t){return NM(this,e,t)},X.Fi=function(e){return b2e(this,e)},X.Gi=function(e,t){DD(this,e,t)},X.Hi=function(e){Hx(this,e)},X.$i=function(e){return cUe(this,e)},X.Xi=function(e,t){return oWe(this,e,t)},X.Wk=function(e,t){throw R(new xo)},X.Ii=function(){return new fp(this)},X.Ji=function(){return new pp(this)},X.Ki=function(e){return bw(this,e)},X.Xk=function(e,t){throw R(new xo)},X.Fk=function(e){return this},X.Qj=function(){return this.i!=0},X.Wb=function(e){throw R(new xo)},X.Gk=function(){throw R(new xo)},U(KK,`EcoreEList/UnmodifiableEList`,1165),J(328,1165,rq,gd),X.Yi=function(){return!1},U(KK,`EcoreEList/UnmodifiableEList/FastCompare`,328),J(1168,328,rq,bYe),X.dd=function(e){var t,n,r;if(V(e,179)&&(t=H(e,179),n=t.Lj(),n!=-1)){for(r=this.i;n4){if(this.fk(e)){if(this.al()){if(r=H(e,54),n=r.Eh(),s=n==this.b&&(this.ml()?r.yh(r.Fh(),H(CC(wy(this.b),this.Lj()).Hk(),29).kk())==OA(H(CC(wy(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!s&&!n&&r.Jh()){for(i=0;i1||r==-1)):!1},X.ml=function(){var e,t=CC(wy(this.b),this.Lj()),n;return V(t,102)?(e=H(t,19),n=OA(e),!!n):!1},X.nl=function(){var e,t=CC(wy(this.b),this.Lj());return V(t,102)?(e=H(t,19),(e.Bb&XB)!=0):!1},X.dd=function(e){var t,n,r=this.zj(e),i;if(r>=0)return r;if(this.ol()){for(n=0,i=this.Ej();n=0;--e)SR(this,e,this.xj(e));return this.Fj()},X.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)SR(this,t,this.xj(t));return this.Gj(e)},X.Gk=function(){mR(this)},X.Zi=function(e,t){return lUe(this,e,t)},U(KK,`DelegatingEcoreEList`,756),J(1171,756,bxt,STe),X.qj=function(e,t){Dp(this,e,H(t,29))},X.rj=function(e){$xe(this,H(e,29))},X.xj=function(e){var t=H(G(xx(this.a),e),89).c;return V(t,90)?H(t,29):(_z(),q7)},X.Cj=function(e){var t=H(HF(xx(this.a),e),89).c;return V(t,90)?H(t,29):(_z(),q7)},X.Dj=function(e,t){return S2e(this,e,H(t,29))},X.Li=function(){return!1},X.Ij=function(e,t,n,r,i){return null},X.sj=function(){return new tpe(this)},X.tj=function(){dR(xx(this.a))},X.uj=function(e){return GZe(this,e)},X.vj=function(e){for(var t,n=e.Kc();n.Ob();)if(t=n.Pb(),!GZe(this,t))return!1;return!0},X.wj=function(e){var t,n,r;if(V(e,15)&&(r=H(e,15),r.gc()==xx(this.a).i)){for(t=r.Kc(),n=new Mf(this);t.Ob();)if(Qu(t.Pb())!==Qu(cA(n)))return!1;return!0}return!1},X.yj=function(){var e,t,n=1,r,i;for(t=new Mf(xx(this.a));t.e!=t.i.gc();)e=H(cA(t),89),r=(i=e.c,V(i,90)?H(i,29):(_z(),q7)),n=31*n+(r?rp(r):0);return n},X.zj=function(e){var t,n,r=0,i;for(n=new Mf(xx(this.a));n.e!=n.i.gc();){if(t=H(cA(n),89),Qu(e)===Qu((i=t.c,V(i,90)?H(i,29):(_z(),q7))))return r;++r}return-1},X.Aj=function(){return xx(this.a).i==0},X.Bj=function(){return null},X.Ej=function(){return xx(this.a).i},X.Fj=function(){var e,t,n,r,i,a=xx(this.a).i;for(i=dS($q,Oz,1,a,5,1),n=0,t=new Mf(xx(this.a));t.e!=t.i.gc();)e=H(cA(t),89),i[n++]=(r=e.c,V(r,90)?H(r,29):(_z(),q7));return i},X.Gj=function(e){var t,n,r,i,a,o,s=xx(this.a).i;for(e.lengths&&P_(e,s,null),r=0,n=new Mf(xx(this.a));n.e!=n.i.gc();)t=H(cA(n),89),a=(o=t.c,V(o,90)?H(o,29):(_z(),q7)),P_(e,r++,a);return e},X.Hj=function(){var e,t,n,r,i=new Xs;for(i.a+=`[`,e=xx(this.a),t=0,r=xx(this.a).i;t>16,i>=0?Y2e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,6,n);case 9:return!this.a&&(this.a=new Bg(A7,this,9,5)),fk(this.a,e,n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),H7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),H7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 6:return FI(this,null,6,n);case 7:return!this.A&&(this.A=new Of(I7,this,7)),bA(this.A,e,n);case 9:return!this.a&&(this.a=new Bg(A7,this,9,5)),bA(this.a,e,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),H7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),H7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!rj(this);case 4:return!!kXe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rb(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256);case 9:return!!this.a&&this.a.i!=0}return mx(this,e-M_((_z(),H7)),CC((t=H(TT(this,16),29),t||H7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:lIe(this,Lp(t));return;case 2:Rd(this,Lp(t));return;case 5:MR(this,Lp(t));return;case 7:!this.A&&(this.A=new Of(I7,this,7)),dR(this.A),!this.A&&(this.A=new Of(I7,this,7)),b_(this.A,H(t,16));return;case 8:ND(this,ks(Fp(t)));return;case 9:!this.a&&(this.a=new Bg(A7,this,9,5)),dR(this.a),!this.a&&(this.a=new Bg(A7,this,9,5)),b_(this.a,H(t,16));return}jO(this,e-M_((_z(),H7)),CC((n=H(TT(this,16),29),n||H7),e),t)},X.ii=function(){return _z(),H7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:V(this.Cb,184)&&(H(this.Cb,184).tb=null),Pw(this,null);return;case 2:GE(this,null),sw(this,this.D);return;case 5:MR(this,null);return;case 7:!this.A&&(this.A=new Of(I7,this,7)),dR(this.A);return;case 8:ND(this,!0);return;case 9:!this.a&&(this.a=new Bg(A7,this,9,5)),dR(this.a);return}AD(this,e-M_((_z(),H7)),CC((t=H(TT(this,16),29),t||H7),e))},X.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?H(this.Cb,685):null}return MS(this,e-M_((_z(),U7)),CC((r=H(TT(this,16),29),r||U7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?kj(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,5,n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),U7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),U7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 5:return FI(this,null,5,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),U7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),U7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&H(this.Cb,685))}return mx(this,e-M_((_z(),U7)),CC((t=H(TT(this,16),29),t||U7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:Pw(this,Lp(t));return;case 2:AGe(this,H(t,17).a);return;case 3:R9e(this,H(t,2039));return;case 4:DKe(this,Lp(t));return}jO(this,e-M_((_z(),U7)),CC((n=H(TT(this,16),29),n||U7),e),t)},X.ii=function(){return _z(),U7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:Pw(this,null);return;case 2:AGe(this,0);return;case 3:R9e(this,null);return;case 4:DKe(this,null);return}AD(this,e-M_((_z(),U7)),CC((t=H(TT(this,16),29),t||U7),e))},X.Ib=function(){return this.c??this.zb},X.b=null,X.c=null,X.d=0,U(WG,`EEnumLiteralImpl`,582);var aHt=Kh(WG,`EFactoryImpl/InternalEDateTimeFormat`);J(499,1,{2114:1},Xa),U(WG,`EFactoryImpl/1ClientInternalEDateTimeFormat`,499),J(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},ro),X.Ch=function(e,t,n){var r;return n=FI(this,e,t,n),this.e&&V(e,179)&&(r=rnt(this,this.e),r!=this.c&&(n=PR(this,r,n))),n},X.Lh=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new Tf(j7,this,1)),this.d;case 2:return t?GI(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?i2e(this):this.a}return MS(this,e-M_((_z(),G7)),CC((r=H(TT(this,16),29),r||G7),e),t,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return mZe(this,null,n);case 1:return!this.d&&(this.d=new Tf(j7,this,1)),bA(this.d,e,n);case 3:return hZe(this,null,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),G7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),G7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return mx(this,e-M_((_z(),G7)),CC((t=H(TT(this,16),29),t||G7),e))},X.bi=function(e,t){var n;switch(e){case 0:t6e(this,H(t,89));return;case 1:!this.d&&(this.d=new Tf(j7,this,1)),dR(this.d),!this.d&&(this.d=new Tf(j7,this,1)),b_(this.d,H(t,16));return;case 3:uM(this,H(t,89));return;case 4:QM(this,H(t,850));return;case 5:UC(this,H(t,142));return}jO(this,e-M_((_z(),G7)),CC((n=H(TT(this,16),29),n||G7),e),t)},X.ii=function(){return _z(),G7},X.ki=function(e){var t;switch(e){case 0:t6e(this,null);return;case 1:!this.d&&(this.d=new Tf(j7,this,1)),dR(this.d);return;case 3:uM(this,null);return;case 4:QM(this,null);return;case 5:UC(this,null);return}AD(this,e-M_((_z(),G7)),CC((t=H(TT(this,16),29),t||G7),e))},X.Ib=function(){var e=new qf(aF(this));return e.a+=` (expression: `,olt(this,e),e.a+=`)`,e.a};var oHt;U(WG,`EGenericTypeImpl`,248),J(2067,2062,sq),X.Gi=function(e,t){hTe(this,e,t)},X.Wk=function(e,t){return hTe(this,this.gc(),e),t},X.$i=function(e){return mA(this.pj(),e)},X.Ii=function(){return this.Ji()},X.pj=function(){return new lpe(this)},X.Ji=function(){return this.Ki(0)},X.Ki=function(e){return this.pj().fd(e)},X.Xk=function(e,t){return JO(this,e,!0),t},X.Ti=function(e,t){var n,r=x4e(this,t);return n=this.fd(e),n.Rb(r),r},X.Ui=function(e,t){var n;JO(this,t,!0),n=this.fd(e),n.Rb(t)},U(KK,`AbstractSequentialInternalEList`,2067),J(496,2067,sq,lp),X.$i=function(e){return mA(this.pj(),e)},X.Ii=function(){return this.b==null?(Il(),Il(),cHt):this.sl()},X.pj=function(){return new hxe(this.a,this.b)},X.Ji=function(){return this.b==null?(Il(),Il(),cHt):this.sl()},X.Ki=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw R(new js(NK+e+`, size=0`));return Il(),Il(),cHt}for(n=this.sl(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.pk()!=s7||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(a=this.b.Nh(t,this.ul()),this.f=(Rl(),H(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=H(a,15),this.k=r):(r=H(a,71),this.k=this.j=r),V(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?U5e(this,this.p):y7e(this))return i=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=H(i,76),e.Lk(),n=e.md(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}return i=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=H(i,76),e.Lk(),n=e.md(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},X.Pb=function(){return OT(this)},X.Tb=function(){return this.a},X.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw R(new Co)},X.Vb=function(){return this.a-1},X.Qb=function(){throw R(new xo)},X.ul=function(){return!1},X.Wb=function(e){throw R(new xo)},X.vl=function(){return!0},X.a=0,X.d=0,X.f=!1,X.g=0,X.n=0,X.o=0;var cHt;U(KK,`EContentsEList/FeatureIteratorImpl`,287),J(711,287,cq,kp),X.ul=function(){return!0},U(KK,`EContentsEList/ResolvingFeatureIteratorImpl`,711),J(1178,711,cq,Mwe),X.vl=function(){return!1},U(WG,`ENamedElementImpl/1/1`,1178),J(1179,287,cq,Ap),X.vl=function(){return!1},U(WG,`ENamedElementImpl/1/2`,1179),J(39,152,MK,wx,Bze,Vg,QHe,XS,Lx,FGe,ALe,IGe,jLe,XBe,MLe,zGe,NLe,ZBe,PLe,LGe,FLe,Hg,wS,yPe,RGe,ILe,QBe,LLe),X.Kj=function(){return KHe(this)},X.Rj=function(){var e=KHe(this);return e?e.ik():null},X.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},X.jj=function(){return this.c},X.Sj=function(){var e=KHe(this);return e?e.tk():!1},X.b=-1,U(WG,`ENotificationImpl`,39),J(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},ns),X.Ah=function(e){return R4e(this,e)},X.Lh=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return sp(),!!(this.Bb&256);case 3:return sp(),!!(this.Bb&512);case 4:return bD(this.s);case 5:return bD(this.t);case 6:return sp(),a=this.t,a>1||a==-1;case 7:return sp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?H(this.Cb,29):null;case 11:return!this.d&&(this.d=new Of(I7,this,11)),this.d;case 12:return!this.c&&(this.c=new Bg(P7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new Xp(this,this)),this.a;case 14:return GS(this)}return MS(this,e-M_((_z(),J7)),CC((r=H(TT(this,16),29),r||J7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?R4e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,10,n);case 12:return!this.c&&(this.c=new Bg(P7,this,12,10)),fk(this.c,e,n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),J7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),J7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 9:return yMe(this,n);case 10:return FI(this,null,10,n);case 11:return!this.d&&(this.d=new Of(I7,this,11)),bA(this.d,e,n);case 12:return!this.c&&(this.c=new Bg(P7,this,12,10)),bA(this.c,e,n);case 14:return bA(GS(this),e,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),J7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),J7)),e,n)},X.Wh=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return!!(this.Db>>16==10&&H(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&GS(this.a.a).i!=0&&!(this.b&&$0e(this.b));case 14:return!!this.b&&$0e(this.b)}return mx(this,e-M_((_z(),J7)),CC((t=H(TT(this,16),29),t||J7),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:Pw(this,Lp(t));return;case 2:MD(this,ks(Fp(t)));return;case 3:PD(this,ks(Fp(t)));return;case 4:aw(this,H(t,17).a);return;case 5:ow(this,H(t,17).a);return;case 8:aD(this,H(t,142));return;case 9:r=PM(this,H(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Of(I7,this,11)),dR(this.d),!this.d&&(this.d=new Of(I7,this,11)),b_(this.d,H(t,16));return;case 12:!this.c&&(this.c=new Bg(P7,this,12,10)),dR(this.c),!this.c&&(this.c=new Bg(P7,this,12,10)),b_(this.c,H(t,16));return;case 13:!this.a&&(this.a=new Xp(this,this)),mR(this.a),!this.a&&(this.a=new Xp(this,this)),b_(this.a,H(t,16));return;case 14:dR(GS(this)),b_(GS(this),H(t,16));return}jO(this,e-M_((_z(),J7)),CC((n=H(TT(this,16),29),n||J7),e),t)},X.ii=function(){return _z(),J7},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:Pw(this,null);return;case 2:MD(this,!0);return;case 3:PD(this,!0);return;case 4:aw(this,0);return;case 5:ow(this,1);return;case 8:aD(this,null);return;case 9:n=PM(this,null,null),n&&n.oj();return;case 11:!this.d&&(this.d=new Of(I7,this,11)),dR(this.d);return;case 12:!this.c&&(this.c=new Bg(P7,this,12,10)),dR(this.c);return;case 13:this.a&&mR(this.a);return;case 14:this.b&&dR(this.b);return}AD(this,e-M_((_z(),J7)),CC((t=H(TT(this,16),29),t||J7),e))},X.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;es&&P_(e,s,null),r=0,n=new Mf(GS(this.a));n.e!=n.i.gc();)t=H(cA(n),89),a=(o=t.c,o||(_z(),K7)),P_(e,r++,a);return e},X.Hj=function(){var e,t,n,r,i=new Xs;for(i.a+=`[`,e=GS(this.a),t=0,r=GS(this.a).i;t1);case 5:return ub(this,e,t,n,r,this.i-H(n,15).gc()>0);default:return new XS(this.e,e,this.c,t,n,r,!0)}},X.Tj=function(){return!0},X.Qj=function(){return $0e(this)},X.Gk=function(){dR(this)},U(WG,`EOperationImpl/2`,1377),J(507,1,{2037:1,507:1},Vbe),U(WG,`EPackageImpl/1`,507),J(14,83,rq,Bg),X.il=function(){return this.d},X.jl=function(){return this.b},X.ml=function(){return!0},X.b=0,U(KK,`EObjectContainmentWithInverseEList`,14),J(365,14,rq,mm),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectContainmentWithInverseEList/Resolving`,365),J(308,365,rq,Wg),X.Ni=function(){this.a.tb=null},U(WG,`EPackageImpl/2`,308),J(1278,1,{},nse),U(WG,`EPackageImpl/3`,1278),J(733,45,rV,ume),X._b=function(e){return $u(e)?TPe(this,e):!!hg(this.f,e)},U(WG,`EPackageRegistryImpl`,733),J(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},dme),X.Ah=function(e){return z4e(this,e)},X.Lh=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return sp(),!!(this.Bb&256);case 3:return sp(),!!(this.Bb&512);case 4:return bD(this.s);case 5:return bD(this.t);case 6:return sp(),a=this.t,a>1||a==-1;case 7:return sp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?H(this.Cb,62):null}return MS(this,e-M_((_z(),X7)),CC((r=H(TT(this,16),29),r||X7),e),t,n)},X.Sh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),fk(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?z4e(this,n):this.Cb.Th(this,-1-i,null,n))),FI(this,e,10,n)}return a=H(CC((r=H(TT(this,16),29),r||(_z(),X7)),t),69),a.wk().zk(this,Lk(this),t-M_((_z(),X7)),e,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 9:return yMe(this,n);case 10:return FI(this,null,10,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),X7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),X7)),e,n)},X.Wh=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return!!(this.Db>>16==10&&H(this.Cb,62))}return mx(this,e-M_((_z(),X7)),CC((t=H(TT(this,16),29),t||X7),e))},X.ii=function(){return _z(),X7},U(WG,`EParameterImpl`,518),J(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},Ywe),X.Lh=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return sp(),!!(this.Bb&256);case 3:return sp(),!!(this.Bb&512);case 4:return bD(this.s);case 5:return bD(this.t);case 6:return sp(),o=this.t,o>1||o==-1;case 7:return sp(),i=this.s,i>=1;case 8:return t?Pj(this):this.r;case 9:return this.q;case 10:return sp(),(this.Bb&aB)!=0;case 11:return sp(),(this.Bb&JK)!=0;case 12:return sp(),(this.Bb&JB)!=0;case 13:return this.j;case 14:return yF(this);case 15:return sp(),(this.Bb&qK)!=0;case 16:return sp(),(this.Bb&Kz)!=0;case 17:return ab(this);case 18:return sp(),(this.Bb&UG)!=0;case 19:return sp(),a=OA(this),!!(a&&(a.Bb&UG)!=0);case 20:return sp(),(this.Bb&XB)!=0;case 21:return t?OA(this):this.b;case 22:return t?wYe(this):oVe(this);case 23:return!this.a&&(this.a=new Af(D7,this,23)),this.a}return MS(this,e-M_((_z(),Z7)),CC((r=H(TT(this,16),29),r||Z7),e),t,n)},X.Wh=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&H_(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&H_(this.q).i==0);case 10:return(this.Bb&aB)==0;case 11:return(this.Bb&JK)!=0;case 12:return(this.Bb&JB)!=0;case 13:return this.j!=null;case 14:return yF(this)!=null;case 15:return(this.Bb&qK)!=0;case 16:return(this.Bb&Kz)!=0;case 17:return!!ab(this);case 18:return(this.Bb&UG)!=0;case 19:return r=OA(this),!!r&&(r.Bb&UG)!=0;case 20:return(this.Bb&XB)==0;case 21:return!!this.b;case 22:return!!oVe(this);case 23:return!!this.a&&this.a.i!=0}return mx(this,e-M_((_z(),Z7)),CC((t=H(TT(this,16),29),t||Z7),e))},X.bi=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:uIe(this,Lp(t));return;case 2:MD(this,ks(Fp(t)));return;case 3:PD(this,ks(Fp(t)));return;case 4:aw(this,H(t,17).a);return;case 5:ow(this,H(t,17).a);return;case 8:aD(this,H(t,142));return;case 9:r=PM(this,H(t,89),null),r&&r.oj();return;case 10:ZD(this,ks(Fp(t)));return;case 11:eO(this,ks(Fp(t)));return;case 12:QD(this,ks(Fp(t)));return;case 13:Pbe(this,Lp(t));return;case 15:$D(this,ks(Fp(t)));return;case 16:cO(this,ks(Fp(t)));return;case 18:dIe(this,ks(Fp(t)));return;case 20:DQe(this,ks(Fp(t)));return;case 21:XKe(this,H(t,19));return;case 23:!this.a&&(this.a=new Af(D7,this,23)),dR(this.a),!this.a&&(this.a=new Af(D7,this,23)),b_(this.a,H(t,16));return}jO(this,e-M_((_z(),Z7)),CC((n=H(TT(this,16),29),n||Z7),e),t)},X.ii=function(){return _z(),Z7},X.ki=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:V(this.Cb,90)&&ZN(Ix(H(this.Cb,90)),4),Pw(this,null);return;case 2:MD(this,!0);return;case 3:PD(this,!0);return;case 4:aw(this,0);return;case 5:ow(this,1);return;case 8:aD(this,null);return;case 9:n=PM(this,null,null),n&&n.oj();return;case 10:ZD(this,!0);return;case 11:eO(this,!1);return;case 12:QD(this,!1);return;case 13:this.i=null,YKe(this,null);return;case 15:$D(this,!1);return;case 16:cO(this,!1);return;case 18:EQe(this,!1),V(this.Cb,90)&&ZN(Ix(H(this.Cb,90)),2);return;case 20:DQe(this,!0);return;case 21:XKe(this,null);return;case 23:!this.a&&(this.a=new Af(D7,this,23)),dR(this.a);return}AD(this,e-M_((_z(),Z7)),CC((t=H(TT(this,16),29),t||Z7),e))},X.pi=function(){wYe(this),wv(qS((MN(),r9),this)),Pj(this),this.Bb|=1},X.uk=function(){return OA(this)},X._k=function(){var e=OA(this);return!!e&&(e.Bb&UG)!=0},X.al=function(){return(this.Bb&UG)!=0},X.bl=function(){return(this.Bb&XB)!=0},X.Yk=function(e,t){return this.c=null,NZe(this,e,t)},X.Ib=function(){var e;return this.Db&64?tI(this):(e=new Kf(tI(this)),e.a+=` (containment: `,Oc(e,(this.Bb&UG)!=0),e.a+=`, resolveProxies: `,Oc(e,(this.Bb&XB)!=0),e.a+=`)`,e.a)},U(WG,`EReferenceImpl`,102),J(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},rse),X.Fb=function(e){return this===e},X.ld=function(){return this.b},X.md=function(){return this.c},X.Hb=function(){return rp(this)},X.Di=function(e){Qke(this,Lp(e))},X.nd=function(e){return bke(this,Lp(e))},X.Lh=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return MS(this,e-M_((_z(),Q7)),CC((r=H(TT(this,16),29),r||Q7),e),t,n)},X.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return mx(this,e-M_((_z(),Q7)),CC((t=H(TT(this,16),29),t||Q7),e))},X.bi=function(e,t){var n;switch(e){case 0:$ke(this,Lp(t));return;case 1:PKe(this,Lp(t));return}jO(this,e-M_((_z(),Q7)),CC((n=H(TT(this,16),29),n||Q7),e),t)},X.ii=function(){return _z(),Q7},X.ki=function(e){var t;switch(e){case 0:NKe(this,null);return;case 1:PKe(this,null);return}AD(this,e-M_((_z(),Q7)),CC((t=H(TT(this,16),29),t||Q7),e))},X.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:IE(e)),this.a},X.Ci=function(e){this.a=e},X.Ib=function(){var e;return this.Db&64?aF(this):(e=new Kf(aF(this)),e.a+=` (key: `,od(e,this.b),e.a+=`, value: `,od(e,this.c),e.a+=`)`,e.a)},X.a=-1,X.b=null,X.c=null;var t9=U(WG,`EStringToStringMapEntryImpl`,561),lHt=Kh(KK,`FeatureMap/Entry/Internal`);J(576,1,lq),X.xl=function(e){return this.yl(H(e,54))},X.yl=function(e){return this.xl(e)},X.Fb=function(e){var t,n;return this===e?!0:V(e,76)?(t=H(e,76),t.Lk()==this.c&&(n=this.md(),n==null?t.md()==null:kD(n,t.md()))):!1},X.Lk=function(){return this.c},X.Hb=function(){var e=this.md();return Nw(this.c)^(e==null?0:Nw(e))},X.Ib=function(){var e=this.c,t=HC(e.qk()).yi();return e.xe(),(t!=null&&t.length!=0?t+`:`+e.xe():e.xe())+`=`+this.md()},U(WG,`EStructuralFeatureImpl/BasicFeatureMapEntry`,576),J(791,576,lq,CTe),X.yl=function(e){return new CTe(this.c,e)},X.md=function(){return this.a},X.zl=function(e,t,n){return oT(this,e,this.a,t,n)},X.Al=function(e,t,n){return Bqe(this,e,this.a,t,n)},U(WG,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,791),J(1350,1,{},Hbe),X.yk=function(e,t,n,r,i){return H(DS(e,this.b),220).Yl(this.a).Fk(r)},X.zk=function(e,t,n,r,i){return H(DS(e,this.b),220).Pl(this.a,r,i)},X.Ak=function(e,t,n,r,i){return H(DS(e,this.b),220).Ql(this.a,r,i)},X.Bk=function(e,t,n){return H(DS(e,this.b),220).Yl(this.a).Qj()},X.Ck=function(e,t,n,r){H(DS(e,this.b),220).Yl(this.a).Wb(r)},X.Dk=function(e,t,n){return H(DS(e,this.b),220).Yl(this.a)},X.Ek=function(e,t,n){H(DS(e,this.b),220).Yl(this.a).Gk()},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1350),J(91,1,{},oh,Kv,by,Tx),X.yk=function(e,t,n,r,i){var a=t.li(n);if(a??t.mi(n,a=uz(this,e)),!i)switch(this.e){case 50:case 41:return H(a,597).bk();case 40:return H(a,220).Vl()}return a},X.zk=function(e,t,n,r,i){var a,o=t.li(n);return o??t.mi(n,o=uz(this,e)),a=H(o,71).Wk(r,i),a},X.Ak=function(e,t,n,r,i){var a=t.li(n);return a!=null&&(i=H(a,71).Xk(r,i)),i},X.Bk=function(e,t,n){var r=t.li(n);return r!=null&&H(r,79).Qj()},X.Ck=function(e,t,n,r){var i=H(t.li(n),79);!i&&t.mi(n,i=uz(this,e)),i.Wb(r)},X.Dk=function(e,t,n){var r,i=t.li(n);return i??t.mi(n,i=uz(this,e)),V(i,79)?H(i,79):(r=H(t.li(n),15),new rpe(r))},X.Ek=function(e,t,n){var r=H(t.li(n),79);!r&&t.mi(n,r=uz(this,e)),r.Gk()},X.b=0,X.e=0,U(WG,`EStructuralFeatureImpl/InternalSettingDelegateMany`,91),J(512,1,{}),X.zk=function(e,t,n,r,i){throw R(new xo)},X.Ak=function(e,t,n,r,i){throw R(new xo)},X.Dk=function(e,t,n){return new KNe(this,e,t,n)};var n9;U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,512),J(1367,1,pxt,KNe),X.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},X.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},X.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},X.Gk=function(){this.a.Ek(this.c,this.d,this.b)},X.b=0,U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1367),J(784,512,{},hFe),X.yk=function(e,t,n,r,i){return mot(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?het(e):e.Ph():null},X.zk=function(e,t,n,r,i){var a,o;return e.Ph()&&(i=(a=e.Fh(),a>=0?e.Ah(i):e.Ph().Th(e,-1-a,null,i))),o=XO(e.Dh(),this.e),e.Ch(r,o,i)},X.Ak=function(e,t,n,r,i){var a=XO(e.Dh(),this.e);return e.Ch(null,a,i)},X.Bk=function(e,t,n){var r=XO(e.Dh(),this.e);return!!e.Ph()&&e.Fh()==r},X.Ck=function(e,t,n,r){var i,a,o,s,l;if(r!=null&&!Kst(this.a,r))throw R(new Ns(uq+(V(r,58)?Z3e(H(r,58).Dh()):EC(ZE(r)))+dq+this.a+`'`));if(i=e.Ph(),o=XO(e.Dh(),this.e),Qu(r)!==Qu(i)||e.Fh()!=o&&r!=null){if(Mj(e,H(r,58)))throw R(new Ps(KG+e.Ib()));l=null,i&&(l=(a=e.Fh(),a>=0?e.Ah(l):e.Ph().Th(e,-1-a,null,l))),s=H(r,54),s&&(l=s.Rh(e,XO(s.Dh(),this.b),null,l)),l=e.Ch(s,o,l),l&&l.oj()}else e.vh()&&e.wh()&&ST(e,new Vg(e,1,o,r,r))},X.Ek=function(e,t,n){var r=e.Ph(),i,a,o;r?(o=(i=e.Fh(),i>=0?e.Ah(null):e.Ph().Th(e,-1-i,null,null)),a=XO(e.Dh(),this.e),o=e.Ch(null,a,o),o&&o.oj()):e.vh()&&e.wh()&&ST(e,new Hg(e,1,this.e,null,null))},X.bl=function(){return!1},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,784),J(1351,784,{},UOe),X.bl=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1351),J(574,512,{}),X.yk=function(e,t,n,r,i){var a=t.li(n);return a==null?this.b:Qu(a)===Qu(n9)?null:a},X.Bk=function(e,t,n){var r=t.li(n);return r!=null&&(Qu(r)===Qu(n9)||!kD(r,this.b))},X.Ck=function(e,t,n,r){var i,a;e.vh()&&e.wh()?(i=(a=t.li(n),a==null?this.b:Qu(a)===Qu(n9)?null:a),r==null?this.c==null?this.b==null?t.mi(n,null):t.mi(n,n9):(t.mi(n,null),r=this.b):(this.Bl(r),t.mi(n,r)),ST(e,this.d.Cl(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.mi(n,null):t.mi(n,n9):t.mi(n,null):(this.Bl(r),t.mi(n,r))},X.Ek=function(e,t,n){var r,i;e.vh()&&e.wh()?(r=(i=t.li(n),i==null?this.b:Qu(i)===Qu(n9)?null:i),t.ni(n),ST(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(n)},X.Bl=function(e){throw R(new _o)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,574),J(fq,1,{},qn),X.Cl=function(e,t,n,r,i){return new Hg(e,t,n,r,i)},X.Dl=function(e,t,n,r,i,a){return new yPe(e,t,n,r,i,a)};var uHt,dHt,fHt,pHt,mHt,hHt,gHt,_Ht,vHt;U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,fq),J(1368,fq,{},ise),X.Cl=function(e,t,n,r,i){return new QBe(e,t,n,ks(Fp(r)),ks(Fp(i)))},X.Dl=function(e,t,n,r,i,a){return new LLe(e,t,n,ks(Fp(r)),ks(Fp(i)),a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1368),J(1369,fq,{},ase),X.Cl=function(e,t,n,r,i){return new FGe(e,t,n,H(r,222).a,H(i,222).a)},X.Dl=function(e,t,n,r,i,a){return new ALe(e,t,n,H(r,222).a,H(i,222).a,a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1369),J(1370,fq,{},ose),X.Cl=function(e,t,n,r,i){return new IGe(e,t,n,H(r,180).a,H(i,180).a)},X.Dl=function(e,t,n,r,i,a){return new jLe(e,t,n,H(r,180).a,H(i,180).a,a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1370),J(1371,fq,{},sse),X.Cl=function(e,t,n,r,i){return new XBe(e,t,n,z(Ip(r)),z(Ip(i)))},X.Dl=function(e,t,n,r,i,a){return new MLe(e,t,n,z(Ip(r)),z(Ip(i)),a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1371),J(1372,fq,{},cse),X.Cl=function(e,t,n,r,i){return new zGe(e,t,n,H(r,161).a,H(i,161).a)},X.Dl=function(e,t,n,r,i,a){return new NLe(e,t,n,H(r,161).a,H(i,161).a,a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1372),J(1373,fq,{},lse),X.Cl=function(e,t,n,r,i){return new ZBe(e,t,n,H(r,17).a,H(i,17).a)},X.Dl=function(e,t,n,r,i,a){return new PLe(e,t,n,H(r,17).a,H(i,17).a,a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1373),J(1374,fq,{},use),X.Cl=function(e,t,n,r,i){return new LGe(e,t,n,H(r,168).a,H(i,168).a)},X.Dl=function(e,t,n,r,i,a){return new FLe(e,t,n,H(r,168).a,H(i,168).a,a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1374),J(1375,fq,{},Jn),X.Cl=function(e,t,n,r,i){return new RGe(e,t,n,H(r,191).a,H(i,191).a)},X.Dl=function(e,t,n,r,i,a){return new ILe(e,t,n,H(r,191).a,H(i,191).a,a)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1375),J(1353,574,{},qNe),X.Bl=function(e){if(!this.a.fk(e))throw R(new Ns(uq+ZE(e)+dq+this.a+`'`))},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1353),J(1354,574,{},tje),X.Bl=function(e){},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1354),J(785,574,{}),X.Bk=function(e,t,n){return t.li(n)!=null},X.Ck=function(e,t,n,r){var i,a;e.vh()&&e.wh()?(i=!0,a=t.li(n),a==null?(i=!1,a=this.b):Qu(a)===Qu(n9)&&(a=null),r==null?this.c==null?t.mi(n,n9):(t.mi(n,null),r=this.b):(this.Bl(r),t.mi(n,r)),ST(e,this.d.Dl(e,1,this.e,a,r,!i))):r==null?this.c==null?t.mi(n,n9):t.mi(n,null):(this.Bl(r),t.mi(n,r))},X.Ek=function(e,t,n){var r,i;e.vh()&&e.wh()?(r=!0,i=t.li(n),i==null?(r=!1,i=this.b):Qu(i)===Qu(n9)&&(i=null),t.ni(n),ST(e,this.d.Dl(e,2,this.e,i,this.b,r))):t.ni(n)},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,785),J(1355,785,{},JNe),X.Bl=function(e){if(!this.a.fk(e))throw R(new Ns(uq+ZE(e)+dq+this.a+`'`))},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1355),J(1356,785,{},Sg),X.Bl=function(e){},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1356),J(410,512,{},AAe),X.yk=function(e,t,n,r,i){var a,o,s,l,u=t.li(n);if(this.tk()&&Qu(u)===Qu(n9))return null;if(this.bl()&&r&&u!=null){if(s=H(u,54),s.Vh()&&(l=dD(e,s),s!=l)){if(!Kst(this.a,l))throw R(new Ns(uq+ZE(l)+dq+this.a+`'`));t.mi(n,u=l),this.al()&&(a=H(l,54),o=s.Th(e,this.b?XO(s.Dh(),this.b):-1-XO(e.Dh(),this.e),null,null),!a.Ph()&&(o=a.Rh(e,this.b?XO(a.Dh(),this.b):-1-XO(e.Dh(),this.e),null,o)),o&&o.oj()),e.vh()&&e.wh()&&ST(e,new Hg(e,9,this.e,s,l))}return u}return u},X.zk=function(e,t,n,r,i){var a,o=t.li(n);return Qu(o)===Qu(n9)&&(o=null),t.mi(n,r),this.Mj()?Qu(o)!==Qu(r)&&o!=null&&(a=H(o,54),i=a.Th(e,XO(a.Dh(),this.b),null,i)):this.al()&&o!=null&&(i=H(o,54).Th(e,-1-XO(e.Dh(),this.e),null,i)),e.vh()&&e.wh()&&(!i&&(i=new xc(4)),i.nj(new Hg(e,1,this.e,o,r))),i},X.Ak=function(e,t,n,r,i){var a=t.li(n);return Qu(a)===Qu(n9)&&(a=null),t.ni(n),e.vh()&&e.wh()&&(!i&&(i=new xc(4)),this.tk()?i.nj(new Hg(e,2,this.e,a,null)):i.nj(new Hg(e,1,this.e,a,null))),i},X.Bk=function(e,t,n){return t.li(n)!=null},X.Ck=function(e,t,n,r){var i,a,o,s,l;if(r!=null&&!Kst(this.a,r))throw R(new Ns(uq+(V(r,58)?Z3e(H(r,58).Dh()):EC(ZE(r)))+dq+this.a+`'`));l=t.li(n),s=l!=null,this.tk()&&Qu(l)===Qu(n9)&&(l=null),o=null,this.Mj()?Qu(l)!==Qu(r)&&(l!=null&&(i=H(l,54),o=i.Th(e,XO(i.Dh(),this.b),null,o)),r!=null&&(i=H(r,54),o=i.Rh(e,XO(i.Dh(),this.b),null,o))):this.al()&&Qu(l)!==Qu(r)&&(l!=null&&(o=H(l,54).Th(e,-1-XO(e.Dh(),this.e),null,o)),r!=null&&(o=H(r,54).Rh(e,-1-XO(e.Dh(),this.e),null,o))),r==null&&this.tk()?t.mi(n,n9):t.mi(n,r),e.vh()&&e.wh()?(a=new yPe(e,1,this.e,l,r,this.tk()&&!s),o?(o.nj(a),o.oj()):ST(e,a)):o&&o.oj()},X.Ek=function(e,t,n){var r,i,a,o,s=t.li(n);o=s!=null,this.tk()&&Qu(s)===Qu(n9)&&(s=null),a=null,s!=null&&(this.Mj()?(r=H(s,54),a=r.Th(e,XO(r.Dh(),this.b),null,a)):this.al()&&(a=H(s,54).Th(e,-1-XO(e.Dh(),this.e),null,a))),t.ni(n),e.vh()&&e.wh()?(i=new yPe(e,this.tk()?2:1,this.e,s,null,o),a?(a.nj(i),a.oj()):ST(e,i)):a&&a.oj()},X.Mj=function(){return!1},X.al=function(){return!1},X.bl=function(){return!1},X.tk=function(){return!1},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,410),J(575,410,{},Np),X.al=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,575),J(1359,575,{},Pwe),X.bl=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1359),J(787,575,{},Fwe),X.tk=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,787),J(1361,787,{},Lwe),X.bl=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1361),J(650,575,{},sh),X.Mj=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,650),J(1360,650,{},KOe),X.bl=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1360),J(788,650,{},qOe),X.tk=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,788),J(1362,788,{},JOe),X.bl=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1362),J(651,410,{},Iwe),X.bl=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,651),J(1363,651,{},Rwe),X.tk=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1363),J(789,651,{},WOe),X.Mj=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,789),J(1364,789,{},YOe),X.tk=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1364),J(1357,410,{},zwe),X.tk=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1357),J(786,410,{},GOe),X.Mj=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,786),J(1358,786,{},XOe),X.tk=function(){return!0},U(WG,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1358),J(790,576,lq,G_),X.yl=function(e){return new G_(this.a,this.c,e)},X.md=function(){return this.b},X.zl=function(e,t,n){return wHe(this,e,this.b,n)},X.Al=function(e,t,n){return THe(this,e,this.b,n)},U(WG,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,790),J(1365,1,pxt,rpe),X.Fk=function(e){return this.a},X.Qj=function(){return V(this.a,97)?H(this.a,97).Qj():!this.a.dc()},X.Wb=function(e){this.a.$b(),this.a.Gc(H(e,15))},X.Gk=function(){V(this.a,97)?H(this.a,97).Gk():this.a.$b()},U(WG,`EStructuralFeatureImpl/SettingMany`,1365),J(1366,576,lq,Wze),X.xl=function(e){return new Qp((bR(),m9),this.b.ri(this.a,e))},X.md=function(){return null},X.zl=function(e,t,n){return n},X.Al=function(e,t,n){return n},U(WG,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1366),J(652,576,lq,Qp),X.xl=function(e){return new Qp(this.c,e)},X.md=function(){return this.a},X.zl=function(e,t,n){return n},X.Al=function(e,t,n){return n},U(WG,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,652),J(403,506,hK,Yn),X.aj=function(e){return dS(k7,Oz,29,e,0,1)},X.Yi=function(){return!1},U(WG,`ESuperAdapter/1`,403),J(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},N),X.Lh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new dg(this,j7,this)),this.a}return MS(this,e-M_((_z(),$7)),CC((r=H(TT(this,16),29),r||$7),e),t,n)},X.Uh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),bA(this.Ab,e,n);case 2:return!this.a&&(this.a=new dg(this,j7,this)),bA(this.a,e,n)}return i=H(CC((r=H(TT(this,16),29),r||(_z(),$7)),t),69),i.wk().Ak(this,Lk(this),t-M_((_z(),$7)),e,n)},X.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return mx(this,e-M_((_z(),$7)),CC((t=H(TT(this,16),29),t||$7),e))},X.bi=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab),!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),b_(this.Ab,H(t,16));return;case 1:Pw(this,Lp(t));return;case 2:!this.a&&(this.a=new dg(this,j7,this)),dR(this.a),!this.a&&(this.a=new dg(this,j7,this)),b_(this.a,H(t,16));return}jO(this,e-M_((_z(),$7)),CC((n=H(TT(this,16),29),n||$7),e),t)},X.ii=function(){return _z(),$7},X.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new Bg(w7,this,0,3)),dR(this.Ab);return;case 1:Pw(this,null);return;case 2:!this.a&&(this.a=new dg(this,j7,this)),dR(this.a);return}AD(this,e-M_((_z(),$7)),CC((t=H(TT(this,16),29),t||$7),e))},U(WG,`ETypeParameterImpl`,457),J(458,83,rq,dg),X.Nj=function(e,t){return Y6e(this,H(e,89),t)},X.Oj=function(e,t){return X6e(this,H(e,89),t)},U(WG,`ETypeParameterImpl/1`,458),J(647,45,rV,fme),X.ec=function(){return new ape(this)},U(WG,`ETypeParameterImpl/2`,647),J(570,zz,Bz,ape),X.Fc=function(e){return YTe(this,H(e,89))},X.Gc=function(e){var t,n,r=!1;for(n=e.Kc();n.Ob();)t=H(n.Pb(),89),hv(this.a,t,``)??(r=!0);return r},X.$b=function(){Qg(this.a)},X.Hc=function(e){return Jg(this.a,e)},X.Kc=function(){return new ope(new yT(new ki(this.a).a))},X.Mc=function(e){return RVe(this,e)},X.gc=function(){return Yc(this.a)},U(WG,`ETypeParameterImpl/2/1`,570),J(571,1,Fz,ope),X.Nb=function(e){qg(this,e)},X.Pb=function(){return H(Dw(this.a).ld(),89)},X.Ob=function(){return this.a.b},X.Qb=function(){JUe(this.a)},U(WG,`ETypeParameterImpl/2/1/1`,571),J(1329,45,rV,pme),X._b=function(e){return $u(e)?TPe(this,e):!!hg(this.f,e)},X.xc=function(e){var t=$u(e)?Fy(this,e):Zu(hg(this.f,e)),n;return V(t,851)?(n=H(t,851),t=n.Kk(),hv(this,H(e,241),t),t):t??(e==null?(Ll(),OHt):null)},U(WG,`EValidatorRegistryImpl`,1329),J(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},Xn),X.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:OO(t);case 25:return dGe(t);case 27:return TUe(t);case 28:return EUe(t);case 29:return t==null?null:OSe(y7[0],H(t,206));case 41:return t==null?``:Ec(H(t,297));case 42:return OO(t);case 50:return Lp(t);default:throw R(new Ps(qG+e.xe()+JG))}},X.si=function(e){var t,n,r,i,a,o,s,l,u,d,f,p,m,h,g,_;switch(e.G==-1&&(e.G=(p=HC(e),p?SA(p.vi(),e):-1)),e.G){case 0:return n=new sme,n;case 1:return t=new Joe,t;case 2:return r=new lle,r;case 4:return i=new To,i;case 5:return a=new lme,a;case 6:return o=new Mpe,o;case 7:return s=new ule,s;case 10:return u=new Kn,u;case 11:return d=new ns,d;case 12:return f=new mPe,f;case 13:return m=new dme,m;case 14:return h=new Ywe,h;case 17:return g=new rse,g;case 18:return l=new ro,l;case 19:return _=new N,_;default:throw R(new Ps(XG+e.zb+JG))}},X.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new kge(t);case 21:return t==null?null:new Kd(t);case 23:case 22:return t==null?null:t1e(t);case 26:case 24:return t==null?null:$S(MI(t,-128,127)<<24>>24);case 25:return utt(t);case 27:return o4e(t);case 28:return s4e(t);case 29:return x8e(t);case 32:case 31:return t==null?null:cN(t);case 38:case 37:return t==null?null:new zpe(t);case 40:case 39:return t==null?null:bD(MI(t,pB,Cz));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:Vk(JR(t));case 49:case 48:return t==null?null:xD(MI(t,mq,32767)<<16>>16);case 50:return t;default:throw R(new Ps(qG+e.xe()+JG))}},U(WG,`EcoreFactoryImpl`,1349),J(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},uNe),X.gb=!1,X.hb=!1;var yHt,bHt=!1;U(WG,`EcorePackageImpl`,560),J(1234,1,{851:1},Zn),X.Kk=function(){return yCe(),kHt},U(WG,`EcorePackageImpl/1`,1234),J(1243,1,yq,dse),X.fk=function(e){return V(e,155)},X.gk=function(e){return dS(RBt,Oz,155,e,0,1)},U(WG,`EcorePackageImpl/10`,1243),J(1244,1,yq,fse),X.fk=function(e){return V(e,197)},X.gk=function(e){return dS(BBt,Oz,197,e,0,1)},U(WG,`EcorePackageImpl/11`,1244),J(1245,1,yq,Qn),X.fk=function(e){return V(e,58)},X.gk=function(e){return dS(o7,Oz,58,e,0,1)},U(WG,`EcorePackageImpl/12`,1245),J(1246,1,yq,P),X.fk=function(e){return V(e,411)},X.gk=function(e){return dS(M7,_xt,62,e,0,1)},U(WG,`EcorePackageImpl/13`,1246),J(1247,1,yq,pse),X.fk=function(e){return V(e,241)},X.gk=function(e){return dS(p7,Oz,241,e,0,1)},U(WG,`EcorePackageImpl/14`,1247),J(1248,1,yq,$n),X.fk=function(e){return V(e,518)},X.gk=function(e){return dS(P7,Oz,2116,e,0,1)},U(WG,`EcorePackageImpl/15`,1248),J(1249,1,yq,er),X.fk=function(e){return V(e,102)},X.gk=function(e){return dS(F7,nq,19,e,0,1)},U(WG,`EcorePackageImpl/16`,1249),J(1250,1,yq,tr),X.fk=function(e){return V(e,179)},X.gk=function(e){return dS(E7,nq,179,e,0,1)},U(WG,`EcorePackageImpl/17`,1250),J(1251,1,yq,mse),X.fk=function(e){return V(e,481)},X.gk=function(e){return dS(T7,Oz,481,e,0,1)},U(WG,`EcorePackageImpl/18`,1251),J(1252,1,yq,hse),X.fk=function(e){return V(e,561)},X.gk=function(e){return dS(t9,LK,561,e,0,1)},U(WG,`EcorePackageImpl/19`,1252),J(1235,1,yq,gse),X.fk=function(e){return V(e,331)},X.gk=function(e){return dS(D7,nq,35,e,0,1)},U(WG,`EcorePackageImpl/2`,1235),J(1253,1,yq,_se),X.fk=function(e){return V(e,248)},X.gk=function(e){return dS(j7,yxt,89,e,0,1)},U(WG,`EcorePackageImpl/20`,1253),J(1254,1,yq,vse),X.fk=function(e){return V(e,457)},X.gk=function(e){return dS(I7,Oz,850,e,0,1)},U(WG,`EcorePackageImpl/21`,1254),J(1255,1,yq,nr),X.fk=function(e){return ed(e)},X.gk=function(e){return dS(wJ,Gz,485,e,8,1)},U(WG,`EcorePackageImpl/22`,1255),J(1256,1,yq,rr),X.fk=function(e){return V(e,195)},X.gk=function(e){return dS(R9,Gz,195,e,0,2)},U(WG,`EcorePackageImpl/23`,1256),J(1257,1,yq,ir),X.fk=function(e){return V(e,222)},X.gk=function(e){return dS(TJ,Gz,222,e,0,1)},U(WG,`EcorePackageImpl/24`,1257),J(1258,1,yq,ar),X.fk=function(e){return V(e,180)},X.gk=function(e){return dS(EJ,Gz,180,e,0,1)},U(WG,`EcorePackageImpl/25`,1258),J(1259,1,yq,yse),X.fk=function(e){return V(e,206)},X.gk=function(e){return dS(mJ,Gz,206,e,0,1)},U(WG,`EcorePackageImpl/26`,1259),J(1260,1,yq,bse),X.fk=function(e){return!1},X.gk=function(e){return dS(wUt,Oz,2215,e,0,1)},U(WG,`EcorePackageImpl/27`,1260),J(1261,1,yq,xse),X.fk=function(e){return td(e)},X.gk=function(e){return dS(DJ,Gz,345,e,7,1)},U(WG,`EcorePackageImpl/28`,1261),J(1262,1,yq,Sse),X.fk=function(e){return V(e,61)},X.gk=function(e){return dS(pVt,fH,61,e,0,1)},U(WG,`EcorePackageImpl/29`,1262),J(1236,1,yq,Cse),X.fk=function(e){return V(e,519)},X.gk=function(e){return dS(w7,{3:1,4:1,5:1,2033:1},598,e,0,1)},U(WG,`EcorePackageImpl/3`,1236),J(1263,1,yq,or),X.fk=function(e){return V(e,582)},X.gk=function(e){return dS(wVt,Oz,2039,e,0,1)},U(WG,`EcorePackageImpl/30`,1263),J(1264,1,yq,wse),X.fk=function(e){return V(e,160)},X.gk=function(e){return dS(DHt,fH,160,e,0,1)},U(WG,`EcorePackageImpl/31`,1264),J(1265,1,yq,sr),X.fk=function(e){return V(e,76)},X.gk=function(e){return dS(eHt,kxt,76,e,0,1)},U(WG,`EcorePackageImpl/32`,1265),J(1266,1,yq,Tse),X.fk=function(e){return V(e,161)},X.gk=function(e){return dS(OJ,Gz,161,e,0,1)},U(WG,`EcorePackageImpl/33`,1266),J(1267,1,yq,cr),X.fk=function(e){return V(e,17)},X.gk=function(e){return dS(kJ,Gz,17,e,0,1)},U(WG,`EcorePackageImpl/34`,1267),J(1268,1,yq,Ese),X.fk=function(e){return V(e,297)},X.gk=function(e){return dS(xSt,Oz,297,e,0,1)},U(WG,`EcorePackageImpl/35`,1268),J(1269,1,yq,lr),X.fk=function(e){return V(e,168)},X.gk=function(e){return dS(jJ,Gz,168,e,0,1)},U(WG,`EcorePackageImpl/36`,1269),J(1270,1,yq,Dse),X.fk=function(e){return V(e,85)},X.gk=function(e){return dS(wSt,Oz,85,e,0,1)},U(WG,`EcorePackageImpl/37`,1270),J(1271,1,yq,ur),X.fk=function(e){return V(e,599)},X.gk=function(e){return dS(xHt,Oz,599,e,0,1)},U(WG,`EcorePackageImpl/38`,1271),J(1272,1,yq,Ose),X.fk=function(e){return!1},X.gk=function(e){return dS(TUt,Oz,2216,e,0,1)},U(WG,`EcorePackageImpl/39`,1272),J(1237,1,yq,dr),X.fk=function(e){return V(e,90)},X.gk=function(e){return dS(k7,Oz,29,e,0,1)},U(WG,`EcorePackageImpl/4`,1237),J(1273,1,yq,fr),X.fk=function(e){return V(e,191)},X.gk=function(e){return dS(PJ,Gz,191,e,0,1)},U(WG,`EcorePackageImpl/40`,1273),J(1274,1,yq,kse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(WG,`EcorePackageImpl/41`,1274),J(1275,1,yq,Ase),X.fk=function(e){return V(e,596)},X.gk=function(e){return dS(hVt,Oz,596,e,0,1)},U(WG,`EcorePackageImpl/42`,1275),J(1276,1,yq,pr),X.fk=function(e){return!1},X.gk=function(e){return dS(EUt,Gz,2217,e,0,1)},U(WG,`EcorePackageImpl/43`,1276),J(1277,1,yq,jse),X.fk=function(e){return V(e,44)},X.gk=function(e){return dS(rJ,$z,44,e,0,1)},U(WG,`EcorePackageImpl/44`,1277),J(1238,1,yq,mr),X.fk=function(e){return V(e,142)},X.gk=function(e){return dS(O7,Oz,142,e,0,1)},U(WG,`EcorePackageImpl/5`,1238),J(1239,1,yq,Mse),X.fk=function(e){return V(e,156)},X.gk=function(e){return dS(BVt,Oz,156,e,0,1)},U(WG,`EcorePackageImpl/6`,1239),J(1240,1,yq,Nse),X.fk=function(e){return V(e,469)},X.gk=function(e){return dS(HVt,Oz,685,e,0,1)},U(WG,`EcorePackageImpl/7`,1240),J(1241,1,yq,Pse),X.fk=function(e){return V(e,582)},X.gk=function(e){return dS(A7,Oz,694,e,0,1)},U(WG,`EcorePackageImpl/8`,1241),J(1242,1,yq,Fse),X.fk=function(e){return V(e,480)},X.gk=function(e){return dS(f7,Oz,480,e,0,1)},U(WG,`EcorePackageImpl/9`,1242),J(1038,2080,FK,Os),X.Mi=function(e,t){UZe(this,H(t,424))},X.Qi=function(e,t){s7e(this,e,H(t,424))},U(WG,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1038),J(1039,152,MK,WMe),X.jj=function(){return this.a.a},U(WG,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1039),J(1067,1066,{},oSe),U(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1067);var xHt=Kh(Axt,`Resource`);J(799,1524,jxt),X.Hl=function(e){},X.Il=function(e){},X.El=function(){return!this.a&&(this.a=new spe(this)),this.a},X.Fl=function(e){var t,n,r=e.length,i,a;if(r>0){if(Ob(0,e.length),e.charCodeAt(0)==47){for(a=new aS(4),i=1,t=1;t0&&(e=(hS(0,n,e.length),e.substr(0,n))))}return p9e(this,e)},X.Gl=function(){return this.c},X.Ib=function(){var e;return Ec(this.Rm)+`@`+(e=Nw(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},X.b=!1,U(bq,`ResourceImpl`,799),J(1525,799,jxt,cpe),U(bq,`BinaryResourceImpl`,1525),J(1190,708,gK),X.bj=function(e){return V(e,58)?zPe(this,H(e,58)):V(e,599)?new Mf(H(e,599).El()):Qu(e)===Qu(this.f)?H(e,16).Kc():(Hp(),CVt.a)},X.Ob=function(){return L9e(this)},X.a=!1,U(KK,`EcoreUtil/ContentTreeIterator`,1190),J(1526,1190,gK,Ije),X.bj=function(e){return Qu(e)===Qu(this.f)?H(e,15).Kc():new ARe(H(e,58))},U(bq,`ResourceImpl/5`,1526),J(658,2092,vxt,spe),X.Hc=function(e){return this.i<=4?Jj(this,e):V(e,54)&&H(e,54).Jh()==this.a},X.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},X.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):DHe(this,e,t)},X.Qi=function(e,t){},X.Ri=function(e,t,n){},X.Lj=function(){return 2},X.jj=function(){return this.a},X.Mj=function(){return!0},X.Nj=function(e,t){return t=H(e,54).fi(this.a,t),t},X.Oj=function(e,t){return H(e,54).fi(null,t)},X.Pj=function(){return!1},X.Si=function(){return!0},X.aj=function(e){return dS(o7,Oz,58,e,0,1)},X.Yi=function(){return!1},U(bq,`ResourceImpl/ContentsEList`,658),J(970,2062,lB,lpe),X.fd=function(e){return this.a.Ki(e)},X.gc=function(){return this.a.gc()},U(KK,`AbstractSequentialInternalEList/1`,970);var SHt,CHt,r9,wHt;J(634,1,{},wke);var THt,EHt;U(KK,`BasicExtendedMetaData`,634),J(1181,1,{},Wbe),X.Jl=function(){return null},X.Kl=function(){return this.a==-2&&cue(this,f8e(this.d,this.b)),this.a},X.Ll=function(){return null},X.Ml=function(){return iy(),iy(),GJ},X.xe=function(){return this.c==Oq&&lue(this,x1e(this.d,this.b)),this.c},X.Nl=function(){return 0},X.a=-2,X.c=Oq,U(KK,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1181),J(1182,1,{},zLe),X.Jl=function(){return this.a==(rS(),THt)&&xi(this,Oat(this.f,this.b)),this.a},X.Kl=function(){return 0},X.Ll=function(){return this.c==(rS(),THt)&&yi(this,kat(this.f,this.b)),this.c},X.Ml=function(){return!this.d&&due(this,dct(this.f,this.b)),this.d},X.xe=function(){return this.e==Oq&&pue(this,x1e(this.f,this.b)),this.e},X.Nl=function(){return this.g==-2&&Si(this,w6e(this.f,this.b)),this.g},X.e=Oq,X.g=-2,U(KK,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1182),J(1180,1,{},Gbe),X.b=!1,X.c=!1,U(KK,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1180),J(1183,1,{},BLe),X.c=-2,X.e=Oq,X.f=Oq,U(KK,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1183),J(593,632,rq,Oh),X.Lj=function(){return this.c},X.ol=function(){return!1},X.Wi=function(e,t){return t},X.c=0,U(KK,`EDataTypeEList`,593);var DHt=Kh(KK,`FeatureMap`);J(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},bT),X.bd=function(e,t){Hnt(this,e,H(t,76))},X.Fc=function(e){return Gtt(this,H(e,76))},X.Hi=function(e){bMe(this,H(e,76))},X.Nj=function(e,t){return FEe(this,H(e,76),t)},X.Oj=function(e,t){return Sm(this,H(e,76),t)},X.Ti=function(e,t){return Hot(this,e,t)},X.Wi=function(e,t){return uut(this,e,H(t,76))},X.hd=function(e,t){return qrt(this,e,H(t,76))},X.Uj=function(e,t){return IEe(this,H(e,76),t)},X.Vj=function(e,t){return LEe(this,H(e,76),t)},X.Wj=function(e,t,n){return dM(this,H(e,76),H(t,76),n)},X.Zi=function(e,t){return N6e(this,e,H(t,76))},X.Ol=function(e,t){return CI(this,e,t)},X.cd=function(e,t){var n,r,i,a,o,s,l,u=new BC(t.gc()),d;for(i=t.Kc();i.Ob();)if(r=H(i.Pb(),76),a=r.Lk(),PF(this.e,a))(!a.Si()||!yx(this,a,r.md())&&!Jj(u,r))&&_S(u,r);else{for(d=jF(this.e.Dh(),a),n=H(this.g,124),o=!0,s=0;s=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},U(KK,`BasicFeatureMap/FeatureEIterator`,420),J(676,420,Uz,gxe),X.ul=function(){return!0},U(KK,`BasicFeatureMap/ResolvingFeatureEIterator`,676),J(968,496,sq,ISe),X.pj=function(){return this},U(KK,`EContentsEList/1`,968),J(969,496,sq,hxe),X.ul=function(){return!1},U(KK,`EContentsEList/2`,969),J(967,287,cq,LSe),X.wl=function(e){},X.Ob=function(){return!1},X.Sb=function(){return!1},U(KK,`EContentsEList/FeatureIteratorImpl/1`,967),J(840,593,rq,Df),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;dR(this),jd(this.e)?(e=this.a,this.a=!1,ST(this.e,new Lx(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(KK,`EDataTypeEList/Unsettable`,840),J(1958,593,rq,lCe),X.Si=function(){return!0},U(KK,`EDataTypeUniqueEList`,1958),J(1959,840,rq,uCe),X.Si=function(){return!0},U(KK,`EDataTypeUniqueEList/Unsettable`,1959),J(147,83,rq,Of),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectContainmentEList/Resolving`,147),J(1184,555,rq,dCe),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectContainmentEList/Unsettable/Resolving`,1184),J(766,14,rq,tEe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;dR(this),jd(this.e)?(e=this.a,this.a=!1,ST(this.e,new Lx(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(KK,`EObjectContainmentWithInverseEList/Unsettable`,766),J(1222,766,rq,nEe),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1222),J(757,505,rq,kf),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;dR(this),jd(this.e)?(e=this.a,this.a=!1,ST(this.e,new Lx(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(KK,`EObjectEList/Unsettable`,757),J(338,505,rq,Af),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectResolvingEList`,338),J(1844,757,rq,fCe),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectResolvingEList/Unsettable`,1844),J(1527,1,{},Ise);var OHt;U(KK,`EObjectValidator`,1527),J(559,505,rq,Ug),X.il=function(){return this.d},X.jl=function(){return this.b},X.Mj=function(){return!0},X.ml=function(){return!0},X.b=0,U(KK,`EObjectWithInverseEList`,559),J(1225,559,rq,rEe),X.ll=function(){return!0},U(KK,`EObjectWithInverseEList/ManyInverse`,1225),J(635,559,rq,iEe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;dR(this),jd(this.e)?(e=this.a,this.a=!1,ST(this.e,new Lx(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(KK,`EObjectWithInverseEList/Unsettable`,635),J(1224,635,rq,oEe),X.ll=function(){return!0},U(KK,`EObjectWithInverseEList/Unsettable/ManyInverse`,1224),J(767,559,rq,aEe),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectWithInverseResolvingEList`,767),J(32,767,rq,hm),X.ll=function(){return!0},U(KK,`EObjectWithInverseResolvingEList/ManyInverse`,32),J(768,635,rq,sEe),X.nl=function(){return!0},X.Wi=function(e,t){return BP(this,e,H(t,58))},U(KK,`EObjectWithInverseResolvingEList/Unsettable`,768),J(1223,768,rq,cEe),X.ll=function(){return!0},U(KK,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1223),J(1185,632,rq),X.Li=function(){return!(this.b&1792)},X.Ni=function(){this.b|=1},X.kl=function(){return!!(this.b&4)},X.Mj=function(){return!!(this.b&40)},X.ll=function(){return!!(this.b&16)},X.ml=function(){return!!(this.b&8)},X.nl=function(){return(this.b&JK)!=0},X.al=function(){return!!(this.b&32)},X.ol=function(){return(this.b&aB)!=0},X.fk=function(e){return this.d?pze(this.d,e):this.Lk().Hk().fk(e)},X.Qj=function(){return this.b&2?!!(this.b&1):this.i!=0},X.Si=function(){return!!(this.b&128)},X.Gk=function(){var e;dR(this),this.b&2&&(jd(this.e)?(e=!!(this.b&1),this.b&=-2,Oo(this,new Lx(this.e,2,XO(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},X.Yi=function(){return!(this.b&1536)},X.b=0,U(KK,`EcoreEList/Generic`,1185),J(1186,1185,rq,bPe),X.Lk=function(){return this.a},U(KK,`EcoreEList/Dynamic`,1186),J(765,66,hK,upe),X.aj=function(e){return cw(this.a.a,e)},U(KK,`EcoreEMap/1`,765),J(764,83,rq,Bje),X.Mi=function(e,t){G0e(this.b,H(t,136))},X.Oi=function(e,t){pJe(this.b)},X.Pi=function(e,t,n){var r;++(r=this.b,H(t,136),r).e},X.Qi=function(e,t){iQe(this.b,H(t,136))},X.Ri=function(e,t,n){iQe(this.b,H(n,136)),Qu(n)===Qu(t)&&H(n,136).Ci(iSe(H(t,136).ld())),G0e(this.b,H(t,136))},U(KK,`EcoreEMap/DelegateEObjectContainmentEList`,764),J(1220,141,mxt,bKe),U(KK,`EcoreEMap/Unsettable`,1220),J(1221,764,rq,lEe),X.Ni=function(){this.a=!0},X.Qj=function(){return this.a},X.Gk=function(){var e;dR(this),jd(this.e)?(e=this.a,this.a=!1,ST(this.e,new Lx(this.e,2,this.c,e,!1))):this.a=!1},X.a=!1,U(KK,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1221),J(1189,215,rV,wMe),X.a=!1,X.b=!1,U(KK,`EcoreUtil/Copier`,1189),J(759,1,Fz,ARe),X.Nb=function(e){qg(this,e)},X.Ob=function(){return Ck(this)},X.Pb=function(){var e;return Ck(this),e=this.b,this.b=null,e},X.Qb=function(){this.a.Qb()},U(KK,`EcoreUtil/ProperContentIterator`,759),J(1528,1527,{},dle);var kHt;U(KK,`EcoreValidator`,1528);var AHt;Kh(KK,`FeatureMapUtil/Validator`),J(1295,1,{2041:1},hr),X.am=function(e){return!0},U(KK,`FeatureMapUtil/1`,1295),J(773,1,{2041:1},Rdt),X.am=function(e){var t;return this.c==e||(t=Fp(N_(this.a,e)),t==null?Lat(this,e)?(mVe(this.a,e,(sp(),CJ)),!0):(mVe(this.a,e,(sp(),SJ)),!1):t==(sp(),CJ))},X.e=!1;var jHt;U(KK,`FeatureMapUtil/BasicValidator`,773),J(774,45,rV,FSe),U(KK,`FeatureMapUtil/BasicValidator/Cache`,774),J(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},Xu),X.bd=function(e,t){iit(this.c,this.b,e,t)},X.Fc=function(e){return CI(this.c,this.b,e)},X.cd=function(e,t){return nlt(this.c,this.b,e,t)},X.Gc=function(e){return yf(this,e)},X.Gi=function(e,t){HWe(this.c,this.b,e,t)},X.Wk=function(e,t){return nI(this.c,this.b,e,t)},X.$i=function(e){return jL(this.c,this.b,e,!1)},X.Ii=function(){return Uxe(this.c,this.b)},X.Ji=function(){return Wxe(this.c,this.b)},X.Ki=function(e){return fS(this.c,this.b,e)},X.Xk=function(e,t){return bTe(this,e,t)},X.$b=function(){ko(this)},X.Hc=function(e){return yx(this.c,this.b,e)},X.Ic=function(e){return zqe(this.c,this.b,e)},X.Xb=function(e){return jL(this.c,this.b,e,!0)},X.Fk=function(e){return this},X.dd=function(e){return Mze(this.c,this.b,e)},X.dc=function(){return Ybe(this)},X.Qj=function(){return!ak(this.c,this.b)},X.Kc=function(){return vWe(this.c,this.b)},X.ed=function(){return dC(this.c,this.b)},X.fd=function(e){return gQe(this.c,this.b,e)},X.Ti=function(e,t){return zst(this.c,this.b,e,t)},X.Ui=function(e,t){jHe(this.c,this.b,e,t)},X.gd=function(e){return O5e(this.c,this.b,e)},X.Mc=function(e){return yot(this.c,this.b,e)},X.hd=function(e,t){return gct(this.c,this.b,e,t)},X.Wb=function(e){PP(this.c,this.b),yf(this,H(e,15))},X.gc=function(){return hQe(this.c,this.b)},X.Pc=function(){return HLe(this.c,this.b)},X.Qc=function(e){return Nze(this.c,this.b,e)},X.Ib=function(){var e,t=new Xs;for(t.a+=`[`,e=Uxe(this.c,this.b);WE(e);)od(t,Gf(xA(e))),WE(e)&&(t.a+=Dz);return t.a+=`]`,t.a},X.Gk=function(){PP(this.c,this.b)},U(KK,`FeatureMapUtil/FeatureEList`,509),J(644,39,MK,Vze),X.hj=function(e){return LD(this,e)},X.mj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.jj(),Qu(a)===Qu(this.c)&&LD(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break;case 3:if(i=e.gj(),i===3&&(a=e.jj(),Qu(a)===Qu(this.c)&&LD(this,null)==e.hj(null)))return this.d=5,t=new BC(2),_S(t,this.g),_S(t,e.ij()),this.g=t,!0;break;case 5:if(i=e.gj(),i===3&&(a=e.jj(),Qu(a)===Qu(this.c)&&LD(this,null)==e.hj(null)))return n=H(this.g,16),n.Fc(e.ij()),!0;break;case 4:switch(i=e.gj(),i){case 3:if(a=e.jj(),Qu(a)===Qu(this.c)&&LD(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break;case 4:if(a=e.jj(),Qu(a)===Qu(this.c)&&LD(this,null)==e.hj(null))return this.d=6,s=new BC(2),_S(s,this.n),_S(s,e.kj()),this.n=s,o=K(B(F9,1),jB,28,15,[this.o,e.lj()]),this.g=o,!0}break;case 6:if(i=e.gj(),i===4&&(a=e.jj(),Qu(a)===Qu(this.c)&&LD(this,null)==e.hj(null)))return n=H(this.n,16),n.Fc(e.kj()),o=H(this.g,53),r=dS(F9,jB,28,o.length+1,15,1),qI(o,0,r,0,o.length),r[o.length]=e.lj(),this.g=r,!0}return!1},U(KK,`FeatureMapUtil/FeatureENotificationImpl`,644),J(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Gh),X.Ol=function(e,t){return CI(this.c,e,t)},X.Pl=function(e,t,n){return nI(this.c,e,t,n)},X.Ql=function(e,t,n){return DL(this.c,e,t,n)},X.Rl=function(){return this},X.Sl=function(e,t){return AL(this.c,e,t)},X.Tl=function(e){return H(jL(this.c,this.b,e,!1),76).Lk()},X.Ul=function(e){return H(jL(this.c,this.b,e,!1),76).md()},X.Vl=function(){return this.a},X.Wl=function(e){return!ak(this.c,e)},X.Xl=function(e,t){WL(this.c,e,t)},X.Yl=function(e){return LKe(this.c,e)},X.Zl=function(e){XA(this.c,e)},U(KK,`FeatureMapUtil/FeatureFeatureMap`,564),J(1294,1,pxt,Ube),X.Fk=function(e){return jL(this.b,this.a,-1,e)},X.Qj=function(){return!ak(this.b,this.a)},X.Wb=function(e){WL(this.b,this.a,e)},X.Gk=function(){PP(this.b,this.a)},U(KK,`FeatureMapUtil/FeatureValue`,1294);var i9,MHt,NHt,a9,PHt,FHt=Kh(zxt,`AnyType`);J(680,63,mB,$me),U(zxt,`InvalidDatatypeValueException`,680);var IHt=Kh(zxt,Bxt),LHt=Kh(zxt,Vxt),RHt=Kh(zxt,Aq),zHt,o9,BHt,s9,VHt,HHt,UHt,WHt,GHt,KHt,qHt,JHt,YHt,XHt,ZHt,c9,QHt,l9,u9,$Ht,d9,eUt,f9,tUt,p9,m9;J(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},mme),X.Lh=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new bT(this,0)),this.c):(!this.c&&(this.c=new bT(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new bT(this,0)),H(_b(this.c,(bR(),s9)),160)):(!this.c&&(this.c=new bT(this,0)),H(H(_b(this.c,(bR(),s9)),160),220)).Vl();case 2:return n?(!this.b&&(this.b=new bT(this,2)),this.b):(!this.b&&(this.b=new bT(this,2)),this.b.b)}return MS(this,e-M_(this.ii()),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():this.ii(),e),t,n)},X.Uh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new bT(this,0)),xI(this.c,e,n);case 1:return(!this.c&&(this.c=new bT(this,0)),H(H(_b(this.c,(bR(),s9)),160),71)).Xk(e,n);case 2:return!this.b&&(this.b=new bT(this,2)),xI(this.b,e,n)}return r=H(CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,rWe(this),t-M_(this.ii()),e,n)},X.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new bT(this,0)),H(_b(this.c,(bR(),s9)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return mx(this,e-M_(this.ii()),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():this.ii(),e))},X.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new bT(this,0)),h_(this.c,t);return;case 1:(!this.c&&(this.c=new bT(this,0)),H(H(_b(this.c,(bR(),s9)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new bT(this,2)),h_(this.b,t);return}jO(this,e-M_(this.ii()),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():this.ii(),e),t)},X.ii=function(){return bR(),BHt},X.ki=function(e){switch(e){case 0:!this.c&&(this.c=new bT(this,0)),dR(this.c);return;case 1:(!this.c&&(this.c=new bT(this,0)),H(_b(this.c,(bR(),s9)),160)).$b();return;case 2:!this.b&&(this.b=new bT(this,2)),dR(this.b);return}AD(this,e-M_(this.ii()),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():this.ii(),e))},X.Ib=function(){var e;return this.j&4?aF(this):(e=new Kf(aF(this)),e.a+=` (mixed: `,ad(e,this.c),e.a+=`, anyAttribute: `,ad(e,this.b),e.a+=`)`,e.a)},U(jq,`AnyTypeImpl`,844),J(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Wse),X.Lh=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return MS(this,e-M_((bR(),c9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():c9,e),t,n)},X.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return mx(this,e-M_((bR(),c9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():c9,e))},X.bi=function(e,t){switch(e){case 0:_ue(this,Lp(t));return;case 1:wi(this,Lp(t));return}jO(this,e-M_((bR(),c9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():c9,e),t)},X.ii=function(){return bR(),c9},X.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}AD(this,e-M_((bR(),c9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():c9,e))},X.Ib=function(){var e;return this.j&4?aF(this):(e=new Kf(aF(this)),e.a+=` (data: `,od(e,this.a),e.a+=`, target: `,od(e,this.b),e.a+=`)`,e.a)},X.a=null,X.b=null,U(jq,`ProcessingInstructionImpl`,681),J(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},hme),X.Lh=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new bT(this,0)),this.c):(!this.c&&(this.c=new bT(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new bT(this,0)),H(_b(this.c,(bR(),s9)),160)):(!this.c&&(this.c=new bT(this,0)),H(H(_b(this.c,(bR(),s9)),160),220)).Vl();case 2:return n?(!this.b&&(this.b=new bT(this,2)),this.b):(!this.b&&(this.b=new bT(this,2)),this.b.b);case 3:return!this.c&&(this.c=new bT(this,0)),Lp(AL(this.c,(bR(),u9),!0));case 4:return dEe(this.a,(!this.c&&(this.c=new bT(this,0)),Lp(AL(this.c,(bR(),u9),!0))));case 5:return this.a}return MS(this,e-M_((bR(),l9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():l9,e),t,n)},X.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new bT(this,0)),H(_b(this.c,(bR(),s9)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new bT(this,0)),Lp(AL(this.c,(bR(),u9),!0))!=null;case 4:return dEe(this.a,(!this.c&&(this.c=new bT(this,0)),Lp(AL(this.c,(bR(),u9),!0))))!=null;case 5:return!!this.a}return mx(this,e-M_((bR(),l9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():l9,e))},X.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new bT(this,0)),h_(this.c,t);return;case 1:(!this.c&&(this.c=new bT(this,0)),H(H(_b(this.c,(bR(),s9)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new bT(this,2)),h_(this.b,t);return;case 3:VLe(this,Lp(t));return;case 4:VLe(this,uEe(this.a,t));return;case 5:Ci(this,H(t,156));return}jO(this,e-M_((bR(),l9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():l9,e),t)},X.ii=function(){return bR(),l9},X.ki=function(e){switch(e){case 0:!this.c&&(this.c=new bT(this,0)),dR(this.c);return;case 1:(!this.c&&(this.c=new bT(this,0)),H(_b(this.c,(bR(),s9)),160)).$b();return;case 2:!this.b&&(this.b=new bT(this,2)),dR(this.b);return;case 3:!this.c&&(this.c=new bT(this,0)),WL(this.c,(bR(),u9),null);return;case 4:VLe(this,uEe(this.a,null));return;case 5:this.a=null;return}AD(this,e-M_((bR(),l9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():l9,e))},U(jq,`SimpleAnyTypeImpl`,682),J(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},gme),X.Lh=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new bT(this,0)),this.a):(!this.a&&(this.a=new bT(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new CS((_z(),Q7),t9,this,1)),this.b):(!this.b&&(this.b=new CS((_z(),Q7),t9,this,1)),uS(this.b));case 2:return n?(!this.c&&(this.c=new CS((_z(),Q7),t9,this,2)),this.c):(!this.c&&(this.c=new CS((_z(),Q7),t9,this,2)),uS(this.c));case 3:return!this.a&&(this.a=new bT(this,0)),_b(this.a,(bR(),eUt));case 4:return!this.a&&(this.a=new bT(this,0)),_b(this.a,(bR(),f9));case 5:return!this.a&&(this.a=new bT(this,0)),_b(this.a,(bR(),p9));case 6:return!this.a&&(this.a=new bT(this,0)),_b(this.a,(bR(),m9))}return MS(this,e-M_((bR(),d9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():d9,e),t,n)},X.Uh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new bT(this,0)),xI(this.a,e,n);case 1:return!this.b&&(this.b=new CS((_z(),Q7),t9,this,1)),PEe(this.b,e,n);case 2:return!this.c&&(this.c=new CS((_z(),Q7),t9,this,2)),PEe(this.c,e,n);case 5:return!this.a&&(this.a=new bT(this,0)),bTe(_b(this.a,(bR(),p9)),e,n)}return r=H(CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():(bR(),d9),t),69),r.wk().Ak(this,rWe(this),t-M_((bR(),d9)),e,n)},X.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new bT(this,0)),!Ybe(_b(this.a,(bR(),eUt)));case 4:return!this.a&&(this.a=new bT(this,0)),!Ybe(_b(this.a,(bR(),f9)));case 5:return!this.a&&(this.a=new bT(this,0)),!Ybe(_b(this.a,(bR(),p9)));case 6:return!this.a&&(this.a=new bT(this,0)),!Ybe(_b(this.a,(bR(),m9)))}return mx(this,e-M_((bR(),d9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():d9,e))},X.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new bT(this,0)),h_(this.a,t);return;case 1:!this.b&&(this.b=new CS((_z(),Q7),t9,this,1)),fT(this.b,t);return;case 2:!this.c&&(this.c=new CS((_z(),Q7),t9,this,2)),fT(this.c,t);return;case 3:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),eUt))),!this.a&&(this.a=new bT(this,0)),yf(_b(this.a,eUt),H(t,16));return;case 4:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),f9))),!this.a&&(this.a=new bT(this,0)),yf(_b(this.a,f9),H(t,16));return;case 5:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),p9))),!this.a&&(this.a=new bT(this,0)),yf(_b(this.a,p9),H(t,16));return;case 6:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),m9))),!this.a&&(this.a=new bT(this,0)),yf(_b(this.a,m9),H(t,16));return}jO(this,e-M_((bR(),d9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():d9,e),t)},X.ii=function(){return bR(),d9},X.ki=function(e){switch(e){case 0:!this.a&&(this.a=new bT(this,0)),dR(this.a);return;case 1:!this.b&&(this.b=new CS((_z(),Q7),t9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new CS((_z(),Q7),t9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),eUt)));return;case 4:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),f9)));return;case 5:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),p9)));return;case 6:!this.a&&(this.a=new bT(this,0)),ko(_b(this.a,(bR(),m9)));return}AD(this,e-M_((bR(),d9)),CC(this.j&2?(!this.k&&(this.k=new Gr),this.k).Nk():d9,e))},X.Ib=function(){var e;return this.j&4?aF(this):(e=new Kf(aF(this)),e.a+=` (mixed: `,ad(e,this.a),e.a+=`)`,e.a)},U(jq,`XMLTypeDocumentRootImpl`,683),J(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Lse),X.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:OO(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Lp(t);case 6:return Uwe(H(t,195));case 12:case 47:case 49:case 11:return OR(this,e,t);case 13:return t==null?null:GL(H(t,247));case 15:case 14:return t==null?null:pMe(z(Ip(t)));case 17:return fM((bR(),t));case 18:return fM(t);case 21:case 20:return t==null?null:mMe(H(t,161).a);case 27:return Wwe(H(t,195));case 30:return ZA((bR(),H(t,15)));case 31:return ZA(H(t,15));case 40:return Kwe((bR(),t));case 42:return n6e((bR(),t));case 43:return n6e(t);case 59:case 48:return Gwe((bR(),t));default:throw R(new Ps(qG+e.xe()+JG))}},X.si=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=HC(e),n?SA(n.vi(),e):-1)),e.G){case 0:return t=new mme,t;case 1:return r=new Wse,r;case 2:return i=new hme,i;case 3:return a=new gme,a;default:throw R(new Ps(XG+e.zb+JG))}},X.ti=function(e,t){var n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return n0e(t);case 8:case 7:return t==null?null:m6e(t);case 9:return t==null?null:$S(MI((r=FL(t,!0),r.length>0&&(Ob(0,r.length),r.charCodeAt(0)==43)?(Ob(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:$S(MI((i=FL(t,!0),i.length>0&&(Ob(0,i.length),i.charCodeAt(0)==43)?(Ob(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return Lp(nz(this,(bR(),UHt),t));case 12:return Lp(nz(this,(bR(),WHt),t));case 13:return t==null?null:new kge(FL(t,!0));case 15:case 14:return Ytt(t);case 16:return Lp(nz(this,(bR(),GHt),t));case 17:return W$e((bR(),t));case 18:return W$e(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return FL(t,!0);case 21:case 20:return cnt(t);case 22:return Lp(nz(this,(bR(),KHt),t));case 23:return Lp(nz(this,(bR(),qHt),t));case 24:return Lp(nz(this,(bR(),JHt),t));case 25:return Lp(nz(this,(bR(),YHt),t));case 26:return Lp(nz(this,(bR(),XHt),t));case 27:return Xk(t);case 30:return G$e((bR(),t));case 31:return G$e(t);case 32:return t==null?null:bD(MI((d=FL(t,!0),d.length>0&&(Ob(0,d.length),d.charCodeAt(0)==43)?(Ob(1,d.length+1),d.substr(1)):d),pB,Cz));case 33:return t==null?null:new Kd((f=FL(t,!0),f.length>0&&(Ob(0,f.length),f.charCodeAt(0)==43)?(Ob(1,f.length+1),f.substr(1)):f));case 34:return t==null?null:bD(MI((p=FL(t,!0),p.length>0&&(Ob(0,p.length),p.charCodeAt(0)==43)?(Ob(1,p.length+1),p.substr(1)):p),pB,Cz));case 36:return t==null?null:Vk(JR((m=FL(t,!0),m.length>0&&(Ob(0,m.length),m.charCodeAt(0)==43)?(Ob(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Vk(JR((h=FL(t,!0),h.length>0&&(Ob(0,h.length),h.charCodeAt(0)==43)?(Ob(1,h.length+1),h.substr(1)):h)));case 40:return w2e((bR(),t));case 42:return K$e((bR(),t));case 43:return K$e(t);case 44:return t==null?null:new Kd((g=FL(t,!0),g.length>0&&(Ob(0,g.length),g.charCodeAt(0)==43)?(Ob(1,g.length+1),g.substr(1)):g));case 45:return t==null?null:new Kd((_=FL(t,!0),_.length>0&&(Ob(0,_.length),_.charCodeAt(0)==43)?(Ob(1,_.length+1),_.substr(1)):_));case 46:return FL(t,!1);case 47:return Lp(nz(this,(bR(),ZHt),t));case 59:case 48:return C2e((bR(),t));case 49:return Lp(nz(this,(bR(),QHt),t));case 50:return t==null?null:xD(MI((v=FL(t,!0),v.length>0&&(Ob(0,v.length),v.charCodeAt(0)==43)?(Ob(1,v.length+1),v.substr(1)):v),mq,32767)<<16>>16);case 51:return t==null?null:xD(MI((a=FL(t,!0),a.length>0&&(Ob(0,a.length),a.charCodeAt(0)==43)?(Ob(1,a.length+1),a.substr(1)):a),mq,32767)<<16>>16);case 53:return Lp(nz(this,(bR(),$Ht),t));case 55:return t==null?null:xD(MI((o=FL(t,!0),o.length>0&&(Ob(0,o.length),o.charCodeAt(0)==43)?(Ob(1,o.length+1),o.substr(1)):o),mq,32767)<<16>>16);case 56:return t==null?null:xD(MI((s=FL(t,!0),s.length>0&&(Ob(0,s.length),s.charCodeAt(0)==43)?(Ob(1,s.length+1),s.substr(1)):s),mq,32767)<<16>>16);case 57:return t==null?null:Vk(JR((l=FL(t,!0),l.length>0&&(Ob(0,l.length),l.charCodeAt(0)==43)?(Ob(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Vk(JR((u=FL(t,!0),u.length>0&&(Ob(0,u.length),u.charCodeAt(0)==43)?(Ob(1,u.length+1),u.substr(1)):u)));case 60:return t==null?null:bD(MI((n=FL(t,!0),n.length>0&&(Ob(0,n.length),n.charCodeAt(0)==43)?(Ob(1,n.length+1),n.substr(1)):n),pB,Cz));case 61:return t==null?null:bD(MI(FL(t,!0),pB,Cz));default:throw R(new Ps(qG+e.xe()+JG))}};var nUt,rUt,iUt,aUt;U(jq,`XMLTypeFactoryImpl`,2028),J(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},dNe),X.N=!1,X.O=!1;var oUt=!1;U(jq,`XMLTypePackageImpl`,594),J(1961,1,{851:1},Rse),X.Kk=function(){return Pst(),SUt},U(jq,`XMLTypePackageImpl/1`,1961),J(1970,1,yq,zse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/10`,1970),J(1971,1,yq,gr),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/11`,1971),J(1972,1,yq,Bse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/12`,1972),J(1973,1,yq,_r),X.fk=function(e){return td(e)},X.gk=function(e){return dS(DJ,Gz,345,e,7,1)},U(jq,`XMLTypePackageImpl/13`,1973),J(1974,1,yq,Vse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/14`,1974),J(1975,1,yq,Hse),X.fk=function(e){return V(e,15)},X.gk=function(e){return dS(nJ,fH,15,e,0,1)},U(jq,`XMLTypePackageImpl/15`,1975),J(1976,1,yq,Use),X.fk=function(e){return V(e,15)},X.gk=function(e){return dS(nJ,fH,15,e,0,1)},U(jq,`XMLTypePackageImpl/16`,1976),J(1977,1,yq,vr),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/17`,1977),J(1978,1,yq,Gse),X.fk=function(e){return V(e,161)},X.gk=function(e){return dS(OJ,Gz,161,e,0,1)},U(jq,`XMLTypePackageImpl/18`,1978),J(1979,1,yq,Kse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/19`,1979),J(1962,1,yq,yr),X.fk=function(e){return V(e,857)},X.gk=function(e){return dS(FHt,Oz,857,e,0,1)},U(jq,`XMLTypePackageImpl/2`,1962),J(1980,1,yq,qse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/20`,1980),J(1981,1,yq,Jse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/21`,1981),J(1982,1,yq,br),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/22`,1982),J(1983,1,yq,Yse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/23`,1983),J(1984,1,yq,Xse),X.fk=function(e){return V(e,195)},X.gk=function(e){return dS(R9,Gz,195,e,0,2)},U(jq,`XMLTypePackageImpl/24`,1984),J(1985,1,yq,Zse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/25`,1985),J(1986,1,yq,Qse),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/26`,1986),J(1987,1,yq,$se),X.fk=function(e){return V(e,15)},X.gk=function(e){return dS(nJ,fH,15,e,0,1)},U(jq,`XMLTypePackageImpl/27`,1987),J(1988,1,yq,ece),X.fk=function(e){return V(e,15)},X.gk=function(e){return dS(nJ,fH,15,e,0,1)},U(jq,`XMLTypePackageImpl/28`,1988),J(1989,1,yq,tce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/29`,1989),J(1963,1,yq,nce),X.fk=function(e){return V(e,681)},X.gk=function(e){return dS(IHt,Oz,2119,e,0,1)},U(jq,`XMLTypePackageImpl/3`,1963),J(1990,1,yq,xr),X.fk=function(e){return V(e,17)},X.gk=function(e){return dS(kJ,Gz,17,e,0,1)},U(jq,`XMLTypePackageImpl/30`,1990),J(1991,1,yq,rce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/31`,1991),J(1992,1,yq,Sr),X.fk=function(e){return V(e,168)},X.gk=function(e){return dS(jJ,Gz,168,e,0,1)},U(jq,`XMLTypePackageImpl/32`,1992),J(1993,1,yq,ice),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/33`,1993),J(1994,1,yq,Cr),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/34`,1994),J(1995,1,yq,ace),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/35`,1995),J(1996,1,yq,wr),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/36`,1996),J(1997,1,yq,oce),X.fk=function(e){return V(e,15)},X.gk=function(e){return dS(nJ,fH,15,e,0,1)},U(jq,`XMLTypePackageImpl/37`,1997),J(1998,1,yq,sce),X.fk=function(e){return V(e,15)},X.gk=function(e){return dS(nJ,fH,15,e,0,1)},U(jq,`XMLTypePackageImpl/38`,1998),J(1999,1,yq,cce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/39`,1999),J(1964,1,yq,lce),X.fk=function(e){return V(e,682)},X.gk=function(e){return dS(LHt,Oz,2120,e,0,1)},U(jq,`XMLTypePackageImpl/4`,1964),J(2e3,1,yq,uce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/40`,2e3),J(2001,1,yq,dce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/41`,2001),J(2002,1,yq,fce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/42`,2002),J(2003,1,yq,pce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/43`,2003),J(2004,1,yq,Tr),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/44`,2004),J(2005,1,yq,Er),X.fk=function(e){return V(e,191)},X.gk=function(e){return dS(PJ,Gz,191,e,0,1)},U(jq,`XMLTypePackageImpl/45`,2005),J(2006,1,yq,Dr),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/46`,2006),J(2007,1,yq,mce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/47`,2007),J(2008,1,yq,hce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/48`,2008),J(2009,1,yq,gce),X.fk=function(e){return V(e,191)},X.gk=function(e){return dS(PJ,Gz,191,e,0,1)},U(jq,`XMLTypePackageImpl/49`,2009),J(1965,1,yq,Or),X.fk=function(e){return V(e,683)},X.gk=function(e){return dS(RHt,Oz,2121,e,0,1)},U(jq,`XMLTypePackageImpl/5`,1965),J(2010,1,yq,_ce),X.fk=function(e){return V(e,168)},X.gk=function(e){return dS(jJ,Gz,168,e,0,1)},U(jq,`XMLTypePackageImpl/50`,2010),J(2011,1,yq,vce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/51`,2011),J(2012,1,yq,kr),X.fk=function(e){return V(e,17)},X.gk=function(e){return dS(kJ,Gz,17,e,0,1)},U(jq,`XMLTypePackageImpl/52`,2012),J(1966,1,yq,yce),X.fk=function(e){return $u(e)},X.gk=function(e){return dS(FJ,Gz,2,e,6,1)},U(jq,`XMLTypePackageImpl/6`,1966),J(1967,1,yq,bce),X.fk=function(e){return V(e,195)},X.gk=function(e){return dS(R9,Gz,195,e,0,2)},U(jq,`XMLTypePackageImpl/7`,1967),J(1968,1,yq,Ar),X.fk=function(e){return ed(e)},X.gk=function(e){return dS(wJ,Gz,485,e,8,1)},U(jq,`XMLTypePackageImpl/8`,1968),J(1969,1,yq,xce),X.fk=function(e){return V(e,222)},X.gk=function(e){return dS(TJ,Gz,222,e,0,1)},U(jq,`XMLTypePackageImpl/9`,1969);var h9,g9,_9,sUt,$;J(55,63,mB,Vs),U(Bq,`RegEx/ParseException`,55),J(836,1,{},jr),X.bm=function(e){return en*16)throw R(new Vs(yz((cf(),$bt))));n=n*16+i}while(1);if(this.a!=125)throw R(new Vs(yz((cf(),OK))));if(n>Vq)throw R(new Vs(yz((cf(),ext))));e=n}else{if(i=0,this.c!=0||(i=AA(this.a))<0||(n=i,cz(this),this.c!=0||(i=AA(this.a))<0))throw R(new Vs(yz((cf(),DK))));n=n*16+i,e=n}break;case 117:if(r=0,cz(this),this.c!=0||(r=AA(this.a))<0||(t=r,cz(this),this.c!=0||(r=AA(this.a))<0)||(t=t*16+r,cz(this),this.c!=0||(r=AA(this.a))<0)||(t=t*16+r,cz(this),this.c!=0||(r=AA(this.a))<0))throw R(new Vs(yz((cf(),DK))));t=t*16+r,e=t;break;case 118:if(cz(this),this.c!=0||(r=AA(this.a))<0||(t=r,cz(this),this.c!=0||(r=AA(this.a))<0)||(t=t*16+r,cz(this),this.c!=0||(r=AA(this.a))<0)||(t=t*16+r,cz(this),this.c!=0||(r=AA(this.a))<0)||(t=t*16+r,cz(this),this.c!=0||(r=AA(this.a))<0)||(t=t*16+r,cz(this),this.c!=0||(r=AA(this.a))<0))throw R(new Vs(yz((cf(),DK))));if(t=t*16+r,t>Vq)throw R(new Vs(yz((cf(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw R(new Vs(yz((cf(),txt))))}return e},X.dm=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?XR(`Nd`,!0):(hz(),T9);break;case 68:n=(this.e&32)==32?XR(`Nd`,!1):(hz(),mUt);break;case 119:n=(this.e&32)==32?XR(`IsWord`,!0):(hz(),A9);break;case 87:n=(this.e&32)==32?XR(`IsWord`,!1):(hz(),O9);break;case 115:n=(this.e&32)==32?XR(`IsSpace`,!0):(hz(),k9);break;case 83:n=(this.e&32)==32?XR(`IsSpace`,!1):(hz(),D9);break;default:throw R(new ys((t=e,Hq+t.toString(16))))}return n},X.em=function(e){var t,n,r,i,a,o,s,l,u,d,f,p;for(this.b=1,cz(this),t=null,this.c==0&&this.a==94?(cz(this),e?d=(hz(),hz(),++M9,new Ib(5)):(t=(hz(),hz(),++M9,new Ib(4)),IF(t,0,Vq),d=(++M9,new Ib(4)))):d=(hz(),hz(),++M9,new Ib(4)),i=!0;(p=this.c)!=1&&(p!=0||this.a!=93||i);){if(i=!1,n=this.a,r=!1,p==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:LL(d,this.dm(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.um(d,n),n<0&&(r=!0);break;case 112:case 80:if(f=pP(this,n),!f)throw R(new Vs(yz((cf(),Gbt))));LL(d,f),r=!0;break;default:n=this.cm()}else if(p==20){if(o=hp(this.i,58,this.d),o<0)throw R(new Vs(yz((cf(),Kbt))));if(s=!0,kv(this.i,this.d)==94&&(++this.d,s=!1),a=Ey(this.i,this.d,o),l=qHe(a,s,(this.e&512)==512),!l)throw R(new Vs(yz((cf(),TK))));if(LL(d,l),r=!0,o+1>=this.j||kv(this.i,o+1)!=93)throw R(new Vs(yz((cf(),Kbt))));this.d=o+2}if(cz(this),!r){if(this.c!=0||this.a!=45)IF(d,n,n);else{if(cz(this),(p=this.c)==1)throw R(new Vs(yz((cf(),wK))));p==0&&this.a==93?(IF(d,n,n),IF(d,45,45)):(u=this.a,p==10&&(u=this.cm()),cz(this),IF(d,n,u))}}(this.e&aB)==aB&&this.c==0&&this.a==44&&cz(this)}if(this.c==1)throw R(new Vs(yz((cf(),wK))));return t&&(kR(t,d),d=t),rF(d),iR(d),this.b=0,cz(this),d},X.fm=function(){for(var e,t,n=this.em(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(cz(this),this.c!=9)throw R(new Vs(yz((cf(),Xbt))));if(t=this.em(!1),r==4)LL(n,t);else if(e==45)kR(n,t);else if(e==38)TR(n,t);else throw R(new ys(`ASSERT`))}else throw R(new Vs(yz((cf(),Zbt))));return cz(this),n},X.gm=function(){var e=this.a-48,t=(hz(),hz(),++M9,new mFe(12,null,e));return!this.g&&(this.g=new Mo),Do(this.g,new dpe(e)),cz(this),t},X.hm=function(){return cz(this),hz(),gUt},X.im=function(){return cz(this),hz(),hUt},X.jm=function(){throw R(new Vs(yz((cf(),kK))))},X.km=function(){throw R(new Vs(yz((cf(),kK))))},X.lm=function(){return cz(this),JYe()},X.mm=function(){return cz(this),hz(),vUt},X.nm=function(){return cz(this),hz(),bUt},X.om=function(){var e;if(this.d>=this.j||((e=kv(this.i,this.d++))&65504)!=64)throw R(new Vs(yz((cf(),Vbt))));return cz(this),hz(),hz(),++M9,new ug(0,e-64)},X.pm=function(){return cz(this),oct()},X.qm=function(){return cz(this),hz(),j9},X.rm=function(){var e=(hz(),hz(),++M9,new ug(0,105));return cz(this),e},X.sm=function(){return cz(this),hz(),yUt},X.tm=function(){return cz(this),hz(),_Ut},X.um=function(e,t){return this.cm()},X.vm=function(){return cz(this),hz(),fUt},X.wm=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw R(new Vs(yz((cf(),Rbt))));if(r=-1,t=null,e=kv(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new Mo),Do(this.g,new dpe(r)),++this.d,kv(this.i,this.d)!=41)throw R(new Vs(yz((cf(),CK))));++this.d}else switch(e==63&&--this.d,cz(this),t=tz(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw R(new Vs(yz((cf(),CK))));break;default:throw R(new Vs(yz((cf(),zbt))))}if(cz(this),i=Pk(this),n=null,i.e==2){if(i.Pm()!=2)throw R(new Vs(yz((cf(),Bbt))));n=i.Lm(1),i=i.Lm(0)}if(this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),hz(),hz(),++M9,new dWe(r,t,i,n)},X.xm=function(){return cz(this),hz(),pUt},X.ym=function(){var e;if(cz(this),e=Gg(24,Pk(this)),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.zm=function(){var e;if(cz(this),e=Gg(20,Pk(this)),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.Am=function(){var e;if(cz(this),e=Gg(22,Pk(this)),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.Bm=function(){var e=0,t,n=0,r,i;for(t=-1;this.d=this.j)throw R(new Vs(yz((cf(),Ibt))));if(t==45){for(++this.d;this.d=this.j)throw R(new Vs(yz((cf(),Ibt))))}if(t==58){if(++this.d,cz(this),r=AMe(Pk(this),e,n),this.c!=7)throw R(new Vs(yz((cf(),CK))));cz(this)}else if(t==41)++this.d,cz(this),r=AMe(Pk(this),e,n);else throw R(new Vs(yz((cf(),Lbt))));return r},X.Cm=function(){var e;if(cz(this),e=Gg(21,Pk(this)),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.Dm=function(){var e;if(cz(this),e=Gg(23,Pk(this)),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.Em=function(){var e,t;if(cz(this),e=this.f++,t=Kg(Pk(this),e),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),t},X.Fm=function(){var e;if(cz(this),e=Kg(Pk(this),0),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.Gm=function(e){return cz(this),this.c==5?(cz(this),lg(e,(hz(),hz(),++M9,new Cx(9,e)))):lg(e,(hz(),hz(),++M9,new Cx(3,e)))},X.Hm=function(e){var t;return cz(this),t=(hz(),hz(),++M9,new rf(2)),this.c==5?(cz(this),lR(t,E9),lR(t,e)):(lR(t,e),lR(t,E9)),t},X.Im=function(e){return cz(this),this.c==5?(cz(this),hz(),hz(),++M9,new Cx(9,e)):(hz(),hz(),++M9,new Cx(3,e))},X.a=0,X.b=0,X.c=0,X.d=0,X.e=0,X.f=1,X.g=null,X.j=0,U(Bq,`RegEx/RegexParser`,836),J(1947,836,{},_me),X.bm=function(e){return!1},X.cm=function(){return Yit(this)},X.dm=function(e){return PI(e)},X.em=function(e){return lz(this)},X.fm=function(){throw R(new Vs(yz((cf(),kK))))},X.gm=function(){throw R(new Vs(yz((cf(),kK))))},X.hm=function(){throw R(new Vs(yz((cf(),kK))))},X.im=function(){throw R(new Vs(yz((cf(),kK))))},X.jm=function(){return cz(this),PI(67)},X.km=function(){return cz(this),PI(73)},X.lm=function(){throw R(new Vs(yz((cf(),kK))))},X.mm=function(){throw R(new Vs(yz((cf(),kK))))},X.nm=function(){throw R(new Vs(yz((cf(),kK))))},X.om=function(){return cz(this),PI(99)},X.pm=function(){throw R(new Vs(yz((cf(),kK))))},X.qm=function(){throw R(new Vs(yz((cf(),kK))))},X.rm=function(){return cz(this),PI(105)},X.sm=function(){throw R(new Vs(yz((cf(),kK))))},X.tm=function(){throw R(new Vs(yz((cf(),kK))))},X.um=function(e,t){return LL(e,PI(t)),-1},X.vm=function(){return cz(this),hz(),hz(),++M9,new ug(0,94)},X.wm=function(){throw R(new Vs(yz((cf(),kK))))},X.xm=function(){return cz(this),hz(),hz(),++M9,new ug(0,36)},X.ym=function(){throw R(new Vs(yz((cf(),kK))))},X.zm=function(){throw R(new Vs(yz((cf(),kK))))},X.Am=function(){throw R(new Vs(yz((cf(),kK))))},X.Bm=function(){throw R(new Vs(yz((cf(),kK))))},X.Cm=function(){throw R(new Vs(yz((cf(),kK))))},X.Dm=function(){throw R(new Vs(yz((cf(),kK))))},X.Em=function(){var e;if(cz(this),e=Kg(Pk(this),0),this.c!=7)throw R(new Vs(yz((cf(),CK))));return cz(this),e},X.Fm=function(){throw R(new Vs(yz((cf(),kK))))},X.Gm=function(e){return cz(this),lg(e,(hz(),hz(),++M9,new Cx(3,e)))},X.Hm=function(e){var t;return cz(this),t=(hz(),hz(),++M9,new rf(2)),lR(t,e),lR(t,E9),t},X.Im=function(e){return cz(this),hz(),hz(),++M9,new Cx(3,e)};var v9=null,y9=null;U(Bq,`RegEx/ParserForXMLSchema`,1947),J(122,1,qq,Qa),X.Jm=function(e){throw R(new ys(`Not supported.`))},X.Km=function(){return-1},X.Lm=function(e){return null},X.Mm=function(){return null},X.Nm=function(e){},X.Om=function(e){},X.Pm=function(){return 0},X.Ib=function(){return this.Qm(0)},X.Qm=function(e){return this.e==11?`.`:``},X.e=0;var b9,x9,S9,cUt,C9,w9=null,T9,lUt=null,uUt,E9,dUt=null,fUt,pUt,mUt,D9,O9,hUt,k9,gUt,_Ut,vUt,yUt,A9,bUt,j9,M9=0,xUt=U(Bq,`RegEx/Token`,122);J(138,122,{3:1,138:1,122:1},Ib),X.Qm=function(e){var t,n,r;if(this.e==4){if(this==uUt)n=`.`;else if(this==T9)n=`\\d`;else if(this==A9)n=`\\w`;else if(this==k9)n=`\\s`;else{for(r=new Xs,r.a+=`[`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?od(r,tL(this.b[t])):(od(r,tL(this.b[t])),r.a+=`-`,od(r,tL(this.b[t+1])));r.a+=`]`,n=r.a}}else if(this==mUt)n=`\\D`;else if(this==O9)n=`\\W`;else if(this==D9)n=`\\S`;else{for(r=new Xs,r.a+=`[^`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?od(r,tL(this.b[t])):(od(r,tL(this.b[t])),r.a+=`-`,od(r,tL(this.b[t+1])));r.a+=`]`,n=r.a}return n},X.a=!1,X.c=!1,U(Bq,`RegEx/RangeToken`,138),J(592,1,{592:1},dpe),X.a=0,U(Bq,`RegEx/RegexParser/ReferencePosition`,592),J(591,1,{3:1,591:1},Jge),X.Fb=function(e){var t;return e==null||!V(e,591)?!1:(t=H(e,591),_m(this.b,t.b)&&this.a==t.a)},X.Hb=function(){return IE(this.b+`/`+Srt(this.a))},X.Ib=function(){return this.c.Qm(this.a)},X.a=0,U(Bq,`RegEx/RegularExpression`,591),J(228,122,qq,ug),X.Km=function(){return this.a},X.Qm=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+am(this.a&xB);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=XB?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+Ey(n,n.length-6,n.length)):r=``+am(this.a&xB)}break;case 8:r=this==fUt||this==pUt?``+am(this.a&xB):`\\`+am(this.a&xB);break;default:r=null}return r},X.a=0,U(Bq,`RegEx/Token/CharToken`,228),J(318,122,qq,Cx),X.Lm=function(e){return this.a},X.Nm=function(e){this.b=e},X.Om=function(e){this.c=e},X.Pm=function(){return 1},X.Qm=function(e){var t;if(this.e==3){if(this.c<0&&this.b<0)t=this.a.Qm(e)+`*`;else if(this.c==this.b)t=this.a.Qm(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+`{`+this.c+`,}`;else throw R(new ys(`Token#toString(): CLOSURE `+this.c+Dz+this.b))}else if(this.c<0&&this.b<0)t=this.a.Qm(e)+`*?`;else if(this.c==this.b)t=this.a.Qm(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+`{`+this.c+`,}?`;else throw R(new ys(`Token#toString(): NONGREEDYCLOSURE `+this.c+Dz+this.b));return t},X.b=0,X.c=0,U(Bq,`RegEx/Token/ClosureToken`,318),J(837,122,qq,m_),X.Lm=function(e){return e==0?this.a:this.b},X.Pm=function(){return 2},X.Qm=function(e){return this.b.e==3&&this.b.Lm(0)==this.a?this.a.Qm(e)+`+`:this.b.e==9&&this.b.Lm(0)==this.a?this.a.Qm(e)+`+?`:this.a.Qm(e)+(``+this.b.Qm(e))},U(Bq,`RegEx/Token/ConcatToken`,837),J(1945,122,qq,dWe),X.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw R(new ys(`Internal Error: `+e))},X.Pm=function(){return this.b?2:1},X.Qm=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},X.c=0,U(Bq,`RegEx/Token/ConditionToken`,1945),J(1946,122,qq,uLe),X.Lm=function(e){return this.b},X.Pm=function(){return 1},X.Qm=function(e){return`(?`+(this.a==0?``:Srt(this.a))+(this.c==0?``:Srt(this.c))+`:`+this.b.Qm(e)+`)`},X.a=0,X.c=0,U(Bq,`RegEx/Token/ModifierToken`,1946),J(838,122,qq,GMe),X.Lm=function(e){return this.a},X.Pm=function(){return 1},X.Qm=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Qm(e)+`)`:`(`+this.a.Qm(e)+`)`;break;case 20:t=`(?=`+this.a.Qm(e)+`)`;break;case 21:t=`(?!`+this.a.Qm(e)+`)`;break;case 22:t=`(?<=`+this.a.Qm(e)+`)`;break;case 23:t=`(?`+this.a.Qm(e)+`)`}return t},X.b=0,U(Bq,`RegEx/Token/ParenToken`,838),J(530,122,{3:1,122:1,530:1},mFe),X.Mm=function(){return this.b},X.Qm=function(e){return this.e==12?`\\`+this.a:lF(this.b)},X.a=0,U(Bq,`RegEx/Token/StringToken`,530),J(477,122,qq,rf),X.Jm=function(e){lR(this,e)},X.Lm=function(e){return H(Y_(this.a,e),122)},X.Pm=function(){return this.a?this.a.a.c.length:0},X.Qm=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=H(Y_(this.a,0),122),n=H(Y_(this.a,1),122),i=n.e==3&&n.Lm(0)==t?t.Qm(e)+`+`:n.e==9&&n.Lm(0)==t?t.Qm(e)+`+?`:t.Qm(e)+(``+n.Qm(e));else{for(a=new Xs,r=0;r=this.c.b:this.a<=this.c.b},X.Sb=function(){return this.b>0},X.Tb=function(){return this.b},X.Vb=function(){return this.b-1},X.Qb=function(){throw R(new Ls(mSt))},X.a=0,X.b=0,U(Yq,`ExclusiveRange/RangeIterator`,258);var P9=dv(XK,`C`),F9=dv($K,`I`),I9=dv(xz,`Z`),L9=dv(eq,`J`),R9=dv(YK,`B`),z9=dv(ZK,`D`),B9=dv(QK,`F`),V9=dv(tq,`S`),CUt=Kh(`org.eclipse.elk.core.labels`,`ILabelManager`),wUt=Kh(oK,`DiagnosticChain`),TUt=Kh(Axt,`ResourceSet`),EUt=U(oK,`InvocationTargetException`,null),DUt=(lhe(),KBe),OUt=OUt=G3e;_Ke(Spe),iKe(`permProps`,[[[`locale`,`default`],[hSt,`gecko1_8`]],[[`locale`,`default`],[hSt,`safari`]]]),OUt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function a(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(t){a(n,t);function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r(this,n);var a=Object.assign({},t),o=!1;try{e.resolve(`web-worker`),o=!0}catch{}if(t.workerUrl){if(o){var s=e(`web-worker`);a.workerFactory=function(e){return new s(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed. Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`)}if(!a.workerFactory){var l=e(`./elk-worker.min.js`).Worker;a.workerFactory=function(e){return new l(e)}}return i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a))}return n}(e(`./elk-api.js`).default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=o,o.default=o},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=Worker},{}]},{},[3])(3)})})),hUe=l({render:()=>NWe});function gUe(e,t,{parentById:n}){let r=e;for(;(n[r]??hWe)!==t;)r=n[r];return r}function _Ue(e,t){let n=e.map(()=>!1),r=new Map;e.forEach(({source:e,target:n},i)=>{if(e===n)return;let a=mWe(e,n,t);if(a===e||a===n)return;let o=gUe(e,a,t),s=gUe(n,a,t),l=r.get(a)??[];l.push({index:i,from:o,to:s,collapsed:o!==e||s!==n}),r.set(a,l)});for(let e of r.values()){let t=new Map,r=[],i=new Map;for(let n of e){for(let e of[n.from,n.to])t.has(e)||(t.set(e,[]),r.push(e),i.set(e,0));t.get(n.from).push(n),i.set(n.to,i.get(n.to)+1)}let a=new Map,o=[...r.filter(e=>i.get(e)===0),...r];for(let e of o){if(a.has(e))continue;a.set(e,1);let r=[{node:e,next:0}];for(;r.length>0;){let e=r[r.length-1],i=t.get(e.node);if(e.next>=i.length){a.set(e.node,2),r.pop();continue}let o=i[e.next++],s=a.get(o.to);s===1?n[o.index]=o.collapsed:s===void 0&&(a.set(o.to,1),r.push({node:o.to,next:0}))}}}return n}function vUe(e,{measure:t}){let n=e.config?.elk?.lineHops;if(n===!1)return;let r=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));TNe(t.groups.edgePaths,r,{enabled:!0,jumpRadius:gWe,jumpStyle:n===`gap`?`gap`:`arc`})}function yUe(e){for(let t of IC)delete e[t];e[`spacing.baseValue`]=jC,e[`spacing.nodeNode`]=MC}function bUe(e,t){if(typeof e==`string`){if(!LC.has(e)){t?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...LC].join(`, `)}. Falling back to the diagram's layout algorithm.`);return}return e}}function xUe(e){switch(e){case`LR`:return`RIGHT`;case`RL`:return`LEFT`;case`TB`:case`TD`:return`DOWN`;case`BT`:return`UP`;default:return`DOWN`}}function SUe(e){return G_(e.shape)?(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0):0}function CUe(e){return G_(e.shape)?{"nodeSize.constraints":`[MINIMUM_SIZE, NODE_LABELS]`,"nodeSize.minimum":`(${SUe(e)}, 0)`}:{}}function wUe(e,t,n,r){let i=(e.labelData?.width??0)+2*(e.padding??0),a=e.labelData?.height??0,o=JS(t?.preset),s={...CUe(e),"spacing.baseValue":jC,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":MC,"elk.padding":`[top=${AC},left=${AC},bottom=${AC},right=${AC}]`,"nodeLabels.placement":`[H_CENTER V_TOP, INSIDE]`,"elk.layered.mergeEdges":t?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":t?.nodePlacementAlignment??o.alignment,"elk.layered.nodePlacement.strategy":t?.nodePlacementStrategy??o.containerPlacement,"elk.layered.cycleBreaking.strategy":t?.cycleBreakingStrategy??o.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":`PORT_POSITION`,"elk.spacing.portsSurrounding":MWe},l=bUe(e.metadata?.algorithm,r);if(l){let e=a+NC;if(s[`nodeSize.constraints`]=`[MINIMUM_SIZE, NODE_LABELS]`,s[`nodeSize.minimum`]=`(${i}, ${e+NC})`,s[`elk.algorithm`]=l,s[`elk.hierarchyHandling`]=`SEPARATE_CHILDREN`,s[`elk.aspectRatio`]=`2.0`,s[`elk.contentAlignment`]=`H_CENTER V_TOP`,s[`elk.expandNodes`]=`true`,s[`elk.padding`]=`[top=${e},left=${NC},bottom=${NC},right=${NC}]`,l===`elk.rectpacking`){let e=a+PC;Object.assign(s,FC,{"elk.padding":`[top=${e},left=${PC},bottom=${PC},right=${PC}]`,"nodeSize.minimum":`(${i}, ${e+PC})`})}}else e.dir&&(s[`elk.algorithm`]=n,s[`elk.direction`]=xUe(e.dir),s[`elk.hierarchyHandling`]=`SEPARATE_CHILDREN`);return Object.assign(s,bWe),s}function TUe(e,t){let n=new Set,r=new Map;for(let{id:t,parentId:n}of e){let e=r.get(n);e?e.push(t):r.set(n,[t])}for(let e of r.values()){let r=new Set(e),i=new Map(e.map(e=>[e,0])),a=new Map(e.map(e=>[e,[]])),o=[];for(let e of t){let t=e.source==null?void 0:String(e.source),n=e.target==null?void 0:String(e.target);t&&n&&t!==n&&r.has(t)&&r.has(n)&&(i.set(n,(i.get(n)??0)+1),a.get(t).push(n),a.get(n).push(t),o.push([t,n]))}let s=new Map,l=0;for(let t of e){if(s.has(t))continue;let e=[t];for(s.set(t,l);e.length>0;){let t=e.pop();for(let n of a.get(t))s.has(n)||(s.set(n,l),e.push(n))}l++}let u=Array(l).fill(!1);for(let t of e)(i.get(t)??0)===0&&(u[s.get(t)]=!0);if(!u.includes(!1))continue;let d=new Map(e.map(e=>[e,[]])),f=new Map(e.map(e=>[e,0])),p=N((e,t)=>{let n=new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===t)return!0;for(let t of d.get(e))n.has(t)||(n.add(t),r.push(t))}return!1},`reaches`);for(let[e,t]of o)p(t,e)||(d.get(e).push(t),f.set(t,(f.get(t)??0)+1));let m=Array(l).fill(!1);for(let t of e){let e=s.get(t);!u[e]&&!m[e]&&f.get(t)===0&&(n.add(t),m[e]=!0)}}return n}function EUe(e,t){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=TUe(e.nodes,e.edges.map(e=>({source:e.start,target:e.end})));for(let e of n){let n=t[e];n&&(n.layoutOptions={...n.layoutOptions,"elk.layered.layering.layerConstraint":`FIRST`})}}function DUe(e,t){let n=MUe(t);return jUe(n),$Ue(e,n),{algorithm:n.algorithm}}async function OUe(e,t){let n=MUe(t),r=kUe(e,n),i=new pWe.default;n.log.info(`Drawing flowchart using v4 renderer`,i);let a=await $S(i,r.elkGraph,n.log);return eC(e,a,r,n.log),KS(e.nodes),a}function kUe(e,t){let n={},r=NUe(e,t.algorithm,t.rootLayoutOptions),i=e.direction??`DOWN`;r.layoutOptions[`elk.direction`]=xUe(i);let a=PUe(e.nodes,t.log);return FUe(e.nodes,r,n,t),LUe(e,r,n,t),zUe(e,n,a,t),QS(r,n,a,t.log),e.config.elk?.orientFeedbackEdges!==!1&&AUe(r,a),EUe(e,n),{elkGraph:r,nodeDb:n,parentLookupDb:a}}function AUe(e,t){let n=_Ue(e.edges.map(e=>({source:e.sources[0],target:e.targets[0]})),t);e.edges.forEach((e,t)=>{n[t]&&([e.sources,e.targets]=[e.targets,e.sources],e.layoutReversed=!0)})}function jUe(e){js(e.getConfig())}function KS(e){let t=new Map(e.map(e=>[e.id,e]));e.sort((e,n)=>e.isGroup===n.isGroup?e.isGroup&&n.isGroup?qS(e,t)-qS(n,t):0:e.isGroup?-1:1)}function qS(e,t){let n=0,r=new Set,i=e.parentId;for(;i&&!r.has(i);){r.add(i);let e=t.get(i);if(!e?.isGroup)break;n++,i=e.parentId}return n}function MUe(e){let t=e.helpers;if(!t)throw Error(`ELK layout requires Mermaid internal helpers`);return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:t.common,getConfig:t.getConfig,interpolateToCurve:t.interpolateToCurve,log:t.log}}function JS(e){return e!==void 0&&Object.hasOwn(PWe,e)?PWe[e]:PWe.default}function NUe(e,t,n){let r=JS(e.config.elk?.preset),i={id:`root`,layoutOptions:{"elk.hierarchyHandling":`INCLUDE_CHILDREN`,"elk.algorithm":t,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??r.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??r.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":`DOWN`,"spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??r.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??r.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":`EQUALLY`,"elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":MWe},children:[],edges:[]};return t===`elk.rectpacking`&&Object.assign(i.layoutOptions,FC,{"elk.contentAlignment":`H_CENTER V_TOP`,"elk.padding":`[top=15,left=15,bottom=15,right=15]`}),n&&Object.assign(i.layoutOptions,n),Object.assign(i.layoutOptions,_We,vWe,yWe),i}function PUe(e,t){let n={parentById:{},childrenById:{}},r=e.filter(e=>e.isGroup);return t.info(`Subgraphs - `,r),r.forEach(t=>{e.filter(e=>e.parentId===t.id).forEach(e=>{n.parentById[e.id]=t.id,n.childrenById[t.id]??=[],n.childrenById[t.id].push(e.id)})}),n}function FUe(e,t,n,r,i){let a=e.filter(e=>e?.parentId===i);return r.log.info(`addVertices APA12`,a,i),a.forEach(i=>{YS(t,e,i,n,r)}),t}function YS(e,t,n,r,i){let a=XS(n);e.children.push(a),r[n.id]=a,n.isGroup&&(a.children=[],FUe(t,a,r,i,n.id),a.labelData=IUe(n,i.getConfig()))}function XS(e){let t={...e};return delete t.domId,e.isGroup?t.children=[]:(t.width=e.width??0,t.height=e.height??0,e.spreadPorts&&(t.layoutOptions={...t.layoutOptions,"elk.portAlignment.default":`CENTER`})),t}function IUe(e,t){return e.labelData||(e.labelBBox?{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??t.flowchart?.wrappingWidth}:{width:0,height:0,wrappingWidth:e.wrappingWidth??t.flowchart?.wrappingWidth})}function LUe(e,t,n,r){r.log.info(`abc78 DAGA edges = `,e);let i={};return e.edges.forEach(e=>{let a=e.id;i[a]=(i[a]??-1)+1;let o=a;e.id=o,r.log.info(`abc78 new link id to be used is`,a,o,i[a]);let{source:s,target:l,sourceId:u,targetId:d}=ZS(e,n);r.log.debug(`abc78 source and target`,s,l),t.edges.push({...e,sources:[s],targets:[l],sourceId:u,targetId:d,labels:[{width:e.width??0,height:e.height??0,orgWidth:e.width??0,orgHeight:e.height??0,text:e.label??``,layoutOptions:{"edgeLabels.inline":`true`,"edgeLabels.placement":`CENTER`}},...(r.rootLayoutOptions?.[`elk.algorithm`]??r.algorithm??`elk.layered`)===`elk.layered`?RUe(e):[]]})}),t}function RUe(e){let t={startLeft:e.startLabelLeft,startRight:e.startLabelRight,endLeft:e.endLabelLeft,endRight:e.endLabelRight};return Object.entries(e.terminalLabelSizes??{}).map(([n,r])=>{let i=n.startsWith(`start`),a=i?e.arrowTypeStart:e.arrowTypeEnd,o=a&&a!==`none`?FWe:0;return{terminal:n,text:t[n],width:r.width+2*o,height:r.height+2*o,layoutOptions:{"edgeLabels.placement":i?`TAIL`:`HEAD`}}})}function ZS(e,t){let n=e.start,r=e.end,i=n,a=r,o=n?t[n]:void 0,s=r?t[r]:void 0;return!o||!s?{source:i,target:a}:{source:i,target:a,sourceId:n,targetId:r}}function zUe(e,t,n,r){e.nodes.forEach(i=>{let a=t[i.id];a&&n.childrenById[a.id]!==void 0&&(a.labels=[{text:a.label,width:a?.labelData?.width??50,height:a?.labelData?.height??50}],r.log.debug(`UIO node label`,a?.labelData?.width,a.padding),a.layoutOptions=wUe(a,e.config.elk,r.algorithm,r.log),delete a.x,delete a.y,delete a.width,delete a.height)})}function QS(e,t,n,r){r.debug(`APA01 processing edges, count:`,e.edges.length),e.edges.forEach((e,i)=>{r.debug(`APA01 processing edge`,i,`:`,e);let a=e.sources[0],o=e.targets[0];if(r.debug(`APA01 source:`,a,`target:`,o),r.debug(`APA01 nodeDb[source]:`,t[a]),r.debug(`APA01 nodeDb[target]:`,t[o]),t[a]&&t[o]&&t[a].parentId!==t[o].parentId){let e=mWe(a,o,n);BUe(t,a,e,r),BUe(t,o,e,r)}})}function BUe(e,t,n,r){let i=e[t];i&&(i.layoutOptions??={},i.layoutOptions[`elk.hierarchyHandling`]===`SEPARATE_CHILDREN`&&bUe(i.metadata?.algorithm)&&(r.debug(`Dropping explicit algorithm for node`,i.id,`due to cross-boundary edges`),yUe(i.layoutOptions),Object.assign(i.layoutOptions,CUe(i))),i.layoutOptions[`elk.hierarchyHandling`]=`INCLUDE_CHILDREN`,i.id!==n&&i.parentId&&BUe(e,i.parentId,n,r))}async function $S(e,t,n){let r=globalThis.__mermaidProfiler;try{r?.begin(`layoutCore`);let i;try{i=await e.layout(t)}finally{r?.end()}return n.debug(`APA01 after - success`),n.debug(`APA01 layout result:`,i),i}catch(e){throw n.error(`ELK layout error:`,e),e}}function eC(e,t,n,r){let i=new Map(e.nodes.map(e=>[e.id,e]));rC(t.children??[],n,i,0,0,0,r),nC(t.children??[],n,i,t),qUe(e,t,n,r)}function tC(e,t=new Set){for(let n of e.children??[])t.add(n.id),tC(n,t);return t}function VUe(e,t,n,r){let i=[];for(let a of e.edges??[]){let e=a.sources?.[0]??a.start,o=a.targets?.[0]??a.end,s=t.has(e)&&t.has(o),l=e===r,u=o===r;if(!s&&!l&&!u)continue;let d=mC(e,o,n.parentLookupDb,n.nodeDb);for(let e of a.sections??[]){let t=s?[e.startPoint,...e.bendPoints??[],e.endPoint]:[l?e.startPoint:null,u?e.endPoint:null];for(let e of t)e&&i.push({x:e.x+d.x,y:e.y+d.y})}}return i}function nC(e,t,n,r={}){for(let i of e){if(!i?.isGroup)continue;let e=i.children??[];nC(e,t,n,r);let a=t.nodeDb[i.id],o=e.map(e=>t.nodeDb[e.id]).filter(e=>e?.offset&&e.width&&e.height);if(!a?.offset||o.length===0)continue;let s=VUe(r,tC(i),t,i.id),l=[...o.map(e=>e.offset.posX),...o.map(e=>e.offset.posX+e.width),...s.map(e=>e.x)],u=[...o.map(e=>e.offset.posY),...o.map(e=>e.offset.posY+e.height),...s.map(e=>e.y)],d=a.offset,f=Math.max(d.posX,Math.min(...l)-AC),p=Math.min(d.posX+a.width,Math.max(...l)+AC),m=Math.min(d.posY+a.height,Math.max(...u)+AC),h=d.posY,g=SUe(i),_=f,v=p-f;if(v{if(!e)return;let s=t.nodeDb[e.id]??e,l=Math.max(e.width,e.labels&&e.labels[0]?.width||0),u={posX:e.x+r,posY:e.y+i,x:r,y:i,depth:a,width:l,height:e.height};s.offset=u,s.x=u.posX+e.width/2,s.y=u.posY+e.height/2,s.width=e.width,s.height=e.height;let d=n.get(e.id);if(d){d.x=s.x,d.y=s.y,d.width=e.isGroup?Math.max(e.width,e.labelData?.width??0):e.width,d.height=e.height;let t=d;t.labelData=e.labelData,t.labels=e.labels}e.isGroup?(o.debug(`Id abc88 subgraph = `,e.id,e.x,e.y,e.labelData),rC(e.children??[],t,n,u.posX,u.posY,a+1,o)):o.info(`Id NODE = `,e.id,e.x,e.y,r,i,`translate(${s.x}, ${s.y})`)})}function iC(e,t){let n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);if(n>RC&&r<=RC)return`h`;if(r>RC&&n<=RC)return`v`}function aC(e){let t=[],n=e,r=oC(n);r&&(n=r.points,t.push(r.run));let i=oC([...n].reverse());return i&&(n=i.points.reverse(),t.push(i.run)),{points:n,runs:t}}function oC(e){if(e.length<5)return null;let[t,n,r,i]=e,a=iC(t,n);if(!a||iC(r,i)!==a||iC(n,r)!==(a===`h`?`v`:`h`)||Math.hypot(n.x-t.x,n.y-t.y)>LWe)return null;let o=Math.abs(a===`h`?r.y-n.y:r.x-n.x);if(oIWe||!(a===`h`?Math.sign(n.x-t.x)===Math.sign(i.x-r.x):Math.sign(n.y-t.y)===Math.sign(i.y-r.y)))return null;let s=3;for(;s+1(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),`side`),a=i(n,r,e),o=i(n,r,t),s=i(e,t,n),l=i(e,t,r);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)}function cC(e,t){let n=0;for(let r=0;re.points??[]),n=e.map(e=>e.x==null||e.y==null||!e.label||!e.width||!e.height?void 0:{centre:{x:e.x,y:e.y},size:{width:e.width,height:e.height}}),r=N((e,t)=>{let n=t&&zC(t.centre,t.size);return!!n&&e.some((t,r)=>rp||g>h||(o.points=s,t[a]=s,n[a]=f,i.push({edge:o,runs:l}))}return i}function qUe(e,t,n,r){let i=new Map(e.edges.map(e=>[e.id,e])),a=e.config.elk?.straightenEdges!==!1,o=new Map;for(let t of e.edges)delete t.terminalLabelCenters;let s=new Map(e.nodes.map(e=>[e.id,e])),l=new Set;if(t.edges?.forEach(e=>{if(!e.sections?.length)return;let t=n.nodeDb[e.sources?.[0]??e.start],r=n.nodeDb[e.targets?.[0]??e.end];if(!t||!r)return;let i=mC(e.start??e.sourceId??e.sources?.[0],e.end??e.targetId??e.targets?.[0],n.parentLookupDb,n.nodeDb),a=e.sections[0];t.shape!==`rect33`&&fC(t,{x:a.startPoint.x+i.x,y:a.startPoint.y+i.y},s,l),r.shape!==`rect33`&&fC(r,{x:a.endPoint.x+i.x,y:a.endPoint.y+i.y},s,l)}),t.edges?.forEach(e=>{let t=i.get(e.id);if(!t)return;let a=e.layoutReversed===!0,s=e.sources?.[0]??e.start,l=e.targets?.[0]??e.end;a&&([s,l]=[l,s]);let u=n.nodeDb[s],d=n.nodeDb[l];if(!u||!d)return;if(!e.sections?.length){let n=N(e=>({x:(e.offset?.posX??e.x??0)+(e.width??0)/2,y:(e.offset?.posY??e.y??0)+(e.height??0)/2}),`centre`),i=n(u),a=n(d);u.x=i.x,u.y=i.y,d.x=a.x,d.y=a.y;let o=hC([i,a],u,d,r);t.points=o,t.curve=`linear`;let s=o[0],l=o[o.length-1];t.x=(s.x+l.x)/2,t.y=(s.y+l.y)/2,r.debug(`APA18 no edge sections, using a straight line`,e.id,t.points);return}let f=e.start??e.sourceId??s,p=e.end??e.targetId??l,m=mC(f,p,n.parentLookupDb,n.nodeDb);r.debug(`APA18 offset`,m,f,` ==> `,p,`edge:`,e,u);let h=e.sections[0],g=pC(h,m);a&&g.reverse();let _={start:g[0],end:g[g.length-1]};u.x=u.offset.posX+u.width/2,u.y=u.offset.posY+u.height/2,d.x=d.offset.posX+d.width/2,d.y=d.offset.posY+d.height/2,u.shape!==`rect33`&&g.unshift({x:u.x,y:u.y}),d.shape!==`rect33`&&g.push({x:d.x,y:d.y}),t.points=vC(yC(hC(g,u,d,r),bC(d),_C(t),r),bC(u),QUe(t),r),t.curve=`rounded`;let v=e.labels?.[0];v&&(t.x=v.x+m.x+v.width/2,t.y=v.y+m.y+v.height/2);for(let n of e.labels??[])n.terminal&&(n.x||n.y)&&(t.terminalLabelCenters??={},t.terminalLabelCenters[n.terminal]={x:n.x+m.x+n.width/2,y:n.y+m.y+n.height/2});t.terminalLabelCenters&&o.set(t,_)}),a){let t=KUe(e.edges);for(let{edge:e,runs:n}of t){if(e.x==null||e.y==null)continue;let t=WUe({x:e.x,y:e.y},n);t&&(e.x=t.x,e.y=t.y)}}for(let[e,t]of o)dC(e,t);lC(e.edges,e.nodes),uC(e.edges,e.nodes),JUe(e.edges)}function JUe(e){let t=new Map;for(let n of e){if(n.x==null||n.y==null||!n.label||!n.width)continue;let e=[n.start??``,n.end??``].sort().join(`\0`),r=t.get(e);r?r.push(n):t.set(e,[n])}for(let e of t.values()){if(e.length!==2)continue;let[t,n]=e;if(Math.abs(t.y-n.y)>Math.max(t.height??0,n.height??0))continue;let r=t.width/2+n.width/2+RWe,i=n.x-t.x,a=r-Math.abs(i);if(a<=0)continue;let o=Math.sign(i)||1;t.x-=o*a/2,n.x+=o*a/2}}function YUe(e,t){let n=t.filter(e=>e.x!==void 0&&e.y!==void 0),r=N(e=>zC({x:e.x,y:e.y},{width:e.width??0,height:e.height??0}),`boxOf`),i=n.filter(e=>!e.isGroup).map(r),a=n.filter(e=>e.isGroup).map(r).flatMap(({x1:e,y1:t,x2:n,y2:r})=>[[{x:e,y:t},{x:n,y:t}],[{x:n,y:t},{x:n,y:r}],[{x:n,y:r},{x:e,y:r}],[{x:e,y:r},{x:e,y:t}]]),o=e.filter(e=>e.label&&e.width&&e.height&&e.x!==void 0).map(e=>zC({x:e.x,y:e.y},{width:e.width,height:e.height})),s=N((e,t=0)=>{let n={x1:e.x1-t,y1:e.y1-t,x2:e.x2+t,y2:e.y2+t};return a.some(([e,t])=>GUe(e,t,n))},`hitsFrame`);return{hitsFrame:s,blocked:N((t,n,r,a,l=0)=>i.some(e=>zWe(t,e))||o.some(e=>zWe(t,e))||s(t,l)||e.some(e=>(e.points??[]).some((r,i,o)=>iObject.entries(e.terminalLabelCenters??{}).some(([i,a])=>{let o=e.terminalLabelSizes?.[i];return(e!==n||i!==r)&&o!==void 0&&zWe(t,zC(a,o))})),`blocked`)}}function*XUe(e){for(let t of e){let e=t.points;if(!(!e||e.length<2||!t.terminalLabelCenters||!t.terminalLabelSizes))for(let[n,r]of Object.entries(t.terminalLabelCenters)){let i=t.terminalLabelSizes[n],a=n.startsWith(`start`),o=a?0:e.length-2,[s,l]=[e[o],e[o+1]],u=Math.hypot(l.x-s.x,l.y-s.y);i&&u!==0&&(yield{edge:t,key:n,center:r,size:i,atStart:a,segment:o,from:s,to:l,length:u})}}}function lC(e,t){let{hitsFrame:n,blocked:r}=YUe(e,t);for(let{edge:t,key:i,center:a,size:o,atStart:s,segment:l,from:u,to:d,length:f}of XUe(e)){if(!n(zC(a,o)))continue;let[e,p]=s?[d,u]:[u,d],m={x:(p.x-e.x)/f,y:(p.y-e.y)/f},h=(Math.abs(m.x)*o.width+Math.abs(m.y)*o.height)/2,g=N(e=>(e.x-p.x)*m.x+(e.y-p.y)*m.y,`along`),_=N(e=>g(e)+h<=0&&g(e)-h>=-f,`onSegment`);for(let e=1;e<=f;e++){let n=[e,-e].map(e=>({x:a.x+e*m.x,y:a.y+e*m.y})).find(e=>_(e)&&!r(zC(e,o),t,i,l,BC));if(n){t.terminalLabelCenters[i]=n;break}}}}function uC(e,t){let{blocked:n}=YUe(e,t);for(let{edge:t,key:r,center:i,size:a,segment:o,from:s,to:l,length:u}of XUe(e)){let e={x:-(l.y-s.y)/u,y:(l.x-s.x)/u},d=(i.x-s.x)*e.x+(i.y-s.y)*e.y;if(d===0||d>0===r.endsWith(`Right`))continue;let f={x:i.x-2*d*e.x,y:i.y-2*d*e.y};n(zC(f,a),t,r,o)||(t.terminalLabelCenters[r]=f)}}function dC(e,t){let n=e.points;if(!n?.length||!e.terminalLabelCenters)return;let r={start:{x:n[0].x-t.start.x,y:n[0].y-t.start.y},end:{x:n[n.length-1].x-t.end.x,y:n[n.length-1].y-t.end.y}};for(let[t,n]of Object.entries(e.terminalLabelCenters)){let i=t.startsWith(`start`)?r.start:r.end;e.terminalLabelCenters[t]={x:n.x+i.x,y:n.y+i.y}}}function fC(e,t,n,r){let i=e.width??0,a=e.height??0,o=e.offset.posY,s=o+a,l=.5,u=Math.abs(t.y-o)<=l||Math.abs(t.y-s)<=l;if((u?i:a)>=2*kC||r.has(e.id))return;r.add(e.id);let d=u?t.x-(e.offset.posX+i/2):t.y-(e.offset.posY+a/2);if(Math.abs(d)<.01)return;u?(e.offset.posX+=d,e.x=e.offset.posX+i/2):(e.offset.posY+=d,e.y=e.offset.posY+a/2);let f=n.get(e.id);f&&(f.x=e.offset.posX+i/2,f.y=e.offset.posY+a/2)}function pC(e,t){let n=e.startPoint,r=e.endPoint,i=(e.bendPoints?e.bendPoints:[]).map(e=>({x:e.x+t.x,y:e.y+t.y}));return[{x:n.x+t.x,y:n.y+t.y},...i,{x:r.x+t.x,y:r.y+t.y}]}function mC(e,t,n,r){let i=mWe(e,t,n);if(i===void 0||i===`root`)return{x:0,y:0};let a=r[i],o=a?.elkOrigin??a?.offset;return{x:o?.posX??0,y:o?.posY??0}}function hC(e,t,n,r){let i=Array.isArray(e)?[...e]:[],a=bC(n);r.debug(`PPP cutter2: Points before cutter2:`,JSON.stringify(e),`endBounds:`,a,CC(a,e[e.length-1]));let o;{let e=bC(t),a=bC(n),s=!!t?.isGroup,l=!!n?.isGroup,{candidate:u,centerApprox:d}=sWe(i,t,`start`),{candidate:f,centerApprox:p}=sWe(i,n,`end`),m=s&&CC(e,u),h=l&&CC(a,f);cWe(i,`start`,m&&d),cWe(i,`end`,h&&p),s&&!m&&(m=lWe(i,e,`start`)),l&&!h&&(h=lWe(i,a,`end`)),m||h?(m||xC(i,t,e,r),h||uWe(i,n,a,r),r.debug(`PPP cutter2: skipping cutter2 due to on-border group endpoint(s)`,{skipStart:m,skipEnd:h,startCenterApprox:d,endCenterApprox:p,startCandidate:u,endCandidate:f}),o=i):o=fWe(t,n,i,r)}if(r.debug(`PPP cutter2: Points after cutter2:`,JSON.stringify(o)),!Array.isArray(o)||o.length<2||gC(o)){r.warn(`POI cutter2: Invalid points from cutter2, falling back to prevPoints`,o);let e=i.filter(e=>Number.isFinite(e?.x)&&Number.isFinite(e?.y));o=e.length>=2?e:i}return r.debug(`UIO cutter2: Points after cutter2 (sanitized):`,o),ZUe(o,r)}function gC(e){return e?.some(e=>!Number.isFinite(e?.x)||!Number.isFinite(e?.y))}function ZUe(e,t){let n=e.filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return Math.abs(e.x-r.x)>1e-6||Math.abs(e.y-r.y)>1e-6});return n.length!==e.length&&t.debug(`UIO cutter2: removed consecutive duplicate points`,{before:e,after:n}),n}function _C(e){return AWe(e.arrowTypeEnd)}function QUe(e){return AWe(e.arrowTypeStart)}function vC(e,t,n,r){if(n<=0||e.length<3)return e;let i=e[0],a=e[1],o=Math.hypot(a.x-i.x,a.y-i.y);if(o>=Math.max(OC,n*2)||!CC(t,a,1))return e;let s=[i,...e.slice(2)];return r.debug(`UIO cutter2: removed short start marker segment`,{before:e,after:s,markerOffset:n,segmentLength:o}),s}function yC(e,t,n,r){if(n<=0||e.length<3)return e;let i=e[e.length-1],a=e[e.length-2],o=Math.hypot(i.x-a.x,i.y-a.y);if(o>=Math.max(OC,n*2)||!CC(t,a,1))return e;let s=[...e.slice(0,-2),i];return r.debug(`UIO cutter2: removed short end marker segment`,{before:e,after:s,markerOffset:n,segmentLength:o}),s}function $Ue(e,t){let n=e.edges.defaultInterpolate,r=e.edges.defaultStyle,i=t.getConfig();e.edges.forEach(e=>{let a=rWe(e,{defaultStyle:r,defaultInterpolate:n,confCurve:i.curve},t);Object.assign(e,a)})}function eWe(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`}function tWe(e,t,n){let r=`normal`,i=`solid`,a=[],o=[];return e===`dotted`?(i=`dotted`,a=[`fill:none`,`stroke-width:2px`,`stroke-dasharray:3`]):e===`thick`?(r=`thick`,a=[`stroke-width: 3.5px`,`fill:none`]):(a=t??[`fill:none`],n!==void 0&&(o=n)),{thickness:r,pattern:i,style:a,labelStyle:o}}function nWe(e,t,n){return e===void 0?t===void 0?n:t:e}function rWe(e,t,n){let r={};r.minlen=e.minlen??e.length??1,r.text=e.text??e.label,r.arrowhead=e.arrowhead??(e.type===`arrow_open`?`none`:`normal`);let i=jWe[e.type??`arrow_open`]??jWe.arrow_open;r.arrowTypeStart=e.arrowTypeStart??i[0],r.arrowTypeEnd=e.arrowTypeEnd??i[1],r.startLabelRight=e.startLabelRight,r.endLabelLeft=e.endLabelLeft;let a=tWe(e.stroke,t.defaultStyle,t.defaultLabelStyle);r.thickness=e.thickness??a.thickness,r.pattern=e.pattern??a.pattern,r.style=e.style??a.style,r.labelStyle=e.labelStyle??a.labelStyle,r.classes=eWe(e),r.curve=n.interpolateToCurve(nWe(e.curve??e.interpolate,t.defaultInterpolate,t.confCurve),tp);let o=(r.text??``)!==``;return e.arrowheadStyle===void 0?(o||e.style!==void 0)&&(r.arrowheadStyle=`fill: #333`):r.arrowheadStyle=e.arrowheadStyle,r.labelpos=e.labelpos??(o?`c`:void 0),r.labelType=e.labelType,r.label=(e.label??r.text??``).replace(n.common.lineBreakRegex,` -`),r}function iWe(e){return Math.max(e.width??0,SUe(e))}function bC(e){let t=e?.isGroup?iWe(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:t??0,height:e.height??0,padding:e.padding}}function aWe(e,t,n=1e-6){return Math.abs(e-t)1?e[1]:n,centerApprox:r}}{let n=e[e.length-1],r=oWe(n,t);return{candidate:r&&e.length>1?e[e.length-2]:n,centerApprox:r}}}function cWe(e,t,n){n&&(t===`start`?e.length>0&&e.shift():e.length>0&&e.pop())}function lWe(e,t,n){let r=n===`start`?1:-1,i=n===`start`?0:e.length-1,a=i;for(;i>=0&&i=e.length)return!1;let o=e[i],s=e[i-r],l=o.x-s.x,u=o.y-s.y,d=l===0?1/0:(t.x+Math.sign(l)*t.width/2-s.x)/l,f=u===0?1/0:(t.y+Math.sign(u)*t.height/2-s.y)/u,p=Math.min(d,f),m={x:s.x+p*l,y:s.y+p*u};return n===`start`?e.splice(0,i,m):e.splice(i+1,e.length-i-1,m),!0}function xC(e,t,n,r){let i=-1;for(let[t,r]of e.entries())if(wC(n,r)){i=t;break}if(i!==-1){let a=e[i],o=e[0],s=EC(t,n,a,o);DC(e,`start`,s),r.debug(`UIO cutter2: start-only intersection applied`,{startIntersection:s})}}function uWe(e,t,n,r){let i=-1;for(let t=e.length-1;t>=0;t--)if(wC(n,e[t])){i=t;break}if(i!==-1){let a=e[i],o=e[e.length-1],s=EC(t,n,a,o);DC(e,`end`,s),r.debug(`UIO cutter2: end-only intersection applied`,{endIntersection:s})}}function dWe(e,t,n,r,i){if(e?.isGroup)return null;let a=n[r],o=n[r+i];return!a||!o?null:TC(e,t,a,o)}function fWe(e,t,n,r){let i=bC(e),a=bC(t);if(n.length===0)return[];let o=[...n],s=o[0],l=o[o.length-1];r.debug(`PPP cutter2: bounds`,{startBounds:i,endBounds:a}),r.debug(`PPP cutter2: original points`,n);let u=-1;for(let[e,t]of o.entries())u===-1&&wC(i,t)&&(u=e);if(u!==-1){let t=o[u],n=dWe(e,i,o,u,1)??EC(e,i,t,s);r.debug(`UIO cutter2: start intersection`,n),DC(o,`start`,n)}let d=null,f=-1;for(let e=o.length-1;e>=0;e--)if(wC(a,o[e])){d=o[e],f=e;break}if(!d&&o.length>1&&(d=o[o.length-2],f=o.length-2),d){let e=dWe(t,a,o,f,-1)??EC(t,a,d,l);r.debug(`UIO cutter2: end intersection`,{endIntersection:e,outsideIndexForEnd:f}),DC(o,`end`,e)}if(o.length>1){let e=o[o.length-1],t=o[o.length-2],n=Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2);n<2&&(r.debug(`UIO cutter2: trimming tail point (too close)`,{distance:n,lastPoint:e,secondLastPoint:t}),o.pop())}return r.debug(`UIO cutter2: final points`,o),o}var pWe,mWe,hWe,gWe,_We,vWe,yWe,bWe,SC,xWe,CC,SWe,wC,CWe,wWe,TWe,EWe,DWe,OWe,kWe,TC,EC,DC,OC,AWe,jWe,kC,MWe,AC,jC,MC,NC,PC,FC,IC,LC,NWe,PWe,FWe,IWe,LWe,RC,zC,RWe,zWe,BC,BWe=o((()=>{Cv(),pUe(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),Dp(),pWe=d(mUe(),1),mWe=N((e,t,{parentById:n})=>{let r=new Set,i=e;if(e===t)return n[e]||`root`;for(;i;){if(r.add(i),i===t)return i;i=n[i]}for(i=t;i;){if(r.has(i))return i;i=n[i]}return`root`},`findCommonAncestor`),hWe=`root`,N(gUe,`childOnPath`),N(_Ue,`findSubgraphFeedbackEdges`),gWe=6,N(vUe,`applyElkLineJumps`),_We={},vWe={},yWe={},bWe={},SC=1,xWe=10,CC=N((e,t,n=.5)=>{let r=e.width/2,i=e.height/2,a=e.x-r,o=e.x+r,s=e.y-i,l=e.y+i,u=Math.abs(t.x-a)<=n&&t.y>=s-n&&t.y<=l+n,d=Math.abs(t.x-o)<=n&&t.y>=s-n&&t.y<=l+n,f=Math.abs(t.y-s)<=n&&t.x>=a-n&&t.x<=o+n,p=Math.abs(t.y-l)<=n&&t.x>=a-n&&t.x<=o+n;return u||d||f||p},`onBorder`),SWe=N((e,t,n)=>{let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.xMath.abs(r-t.x)*l){let e=n.y{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),CWe=N((e,t,n=xWe)=>{let r=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y),a=e.width/2,o=e.height/2;if(Math.abs(r-a)0)return{x:e.x+r/a*(a+n),y:e.y+i/a*(a+n)}}return t},`ensureTrulyOutside`),wWe=N((e,t,n)=>{let r=Math.abs(t.x-e.x){if(!e?.intersect)return null;let r=e.intersect(n);return!r||n.xt.x||n.x>t.x&&r.xSWe(e,t,wWe(e,t,n)),`fallbackIntersection`),DWe=20,OWe=1e-6,kWe=N((e,t,n)=>{let r=e.intersect?.(n);return r?Math.hypot(n.x-t.x,n.y-t.y)<=Math.hypot(r.x-t.x,r.y-t.y)+1e-9:!1},`insideOutline`),TC=N((e,t,n,r)=>{if(!e?.intersect)return null;let i=r.x-n.x,a=r.y-n.y;if(i===0&&a===0||Math.abs(i)>OWe&&Math.abs(a)>OWe)return null;let o={x:t.x,y:t.y},s=Math.abs(i)>Math.abs(a),l=N(e=>s?{x:e,y:n.y}:{x:n.x,y:e},`along`),u=s?o.x:o.y,d=s?n.x:n.y;if(!kWe(e,o,l(u)))return null;if(kWe(e,o,l(d)))return{...n};for(let t=0;t{let i=CWe(t,n);return TWe(e,t,i)??EWe(t,i,r)},`computeNodeIntersection`),DC=N((e,t,n,r=.1)=>{if(n&&e.length!==0){if(t===`start`)e.length>0&&Math.abs(e[0].x-n.x)0&&Math.abs(e[t].x-n.x)typeof e==`string`?Math.max(tv[e]??0,eNe[e]??0):0,`markerPathOffset`),jWe={arrow_open:[`none`,`none`],arrow_cross:[`none`,`arrow_cross`],double_arrow_cross:[`arrow_cross`,`arrow_cross`],arrow_point:[`none`,`arrow_point`],double_arrow_point:[`arrow_point`,`arrow_point`],arrow_circle:[`none`,`arrow_circle`],double_arrow_circle:[`arrow_circle`,`arrow_circle`]},kC=12,MWe=`[top=${kC},left=${kC},bottom=${kC},right=${kC}]`,AC=24,jC=24,MC=50,NC=15,PC=10,FC={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":`1.6`,"elk.expandNodes":`true`,"elk.rectpacking.trybox":`true`,"elk.rectpacking.packing.compaction.rowHeightReevaluation":`true`,"elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":`EQUAL_BETWEEN_STRUCTURES`,"elk.rectpacking.widthApproximation.strategy":`SCANLINE`},IC=[`nodeSize.constraints`,`nodeSize.minimum`,`elk.algorithm`,`elk.aspectRatio`,`elk.contentAlignment`,`elk.expandNodes`,`elk.padding`,...Object.keys(FC)],N(yUe,`clearContainerAlgorithmOptions`),LC=new Set([`elk.layered`,`elk.box`,`elk.rectpacking`,`elk.stress`,`elk.force`,`elk.mrtree`,`elk.radial`,`elk.sporeOverlap`]),N(bUe,`resolveContainerAlgorithm`),N(xUe,`dir2ElkDirection`),N(SUe,`groupTitleWidth`),N(CUe,`groupTitleSizeOptions`),N(wUe,`buildSubgraphLayoutOptions`),N(TUe,`findCyclicEntryNodes`),N(EUe,`applyCyclicEntryConstraint`),N(DUe,`prepareLayoutForElk`),N(OUe,`runElkLayoutCore`),N(kUe,`buildElkGraphFromLayoutData`),N(AUe,`reverseSubgraphFeedbackEdges`),NWe=NS({afterPaint:vUe,prepareLayout:DUe,measureLayout:N((e,t)=>XHe(e,t,{unwrapGroupLabels:!0}),`measureLayout`),runLayoutCore:OUe,paintOptions:{skipIntersect:!0}}),N(jUe,`syncHostConfig`),N(KS,`orderNodesForElkPaint`),N(qS,`getGroupDepth`),N(MUe,`getElkLayoutContext`),PWe={default:{layering:`NETWORK_SIMPLEX`,placement:`BRANDES_KOEPF`,containerPlacement:`BRANDES_KOEPF`,alignment:`BALANCED`,cycleBreaking:`DEPTH_FIRST`},legacy:{layering:`NETWORK_SIMPLEX`,placement:`BRANDES_KOEPF`,containerPlacement:`BRANDES_KOEPF`,alignment:`NONE`,cycleBreaking:`GREEDY`},modelOrder:{layering:`NETWORK_SIMPLEX`,placement:`NETWORK_SIMPLEX`,containerPlacement:`BRANDES_KOEPF`,alignment:`NONE`,cycleBreaking:`GREEDY_MODEL_ORDER`},depthFirst:{layering:`NETWORK_SIMPLEX`,placement:`NETWORK_SIMPLEX`,containerPlacement:`BRANDES_KOEPF`,alignment:`NONE`,cycleBreaking:`DEPTH_FIRST`}},N(JS,`resolveElkPreset`),N(NUe,`createRootElkGraph`),N(PUe,`addSubGraphs`),N(FUe,`addVertices`),N(YS,`addVertex`),N(XS,`createElkNode`),N(IUe,`getMeasuredLabelData`),N(LUe,`addEdgesToElkGraph`),FWe=6,N(RUe,`terminalElkLabels`),N(ZS,`getEdgeStartEndPoint`),N(zUe,`configureSubgraphNodes`),N(QS,`configureCrossHierarchyEdges`),N(BUe,`setIncludeChildrenPolicy`),N($S,`runElkLayout`),N(eC,`applyElkLayoutResult`),N(tC,`collectDescendantIds`),N(VUe,`internalEdgePoints`),N(nC,`evenGroupFrames`),N(rC,`applyElkNodePositions`),IWe=16,LWe=30,RC=.01,N(iC,`axisOf`),N(aC,`straightenTerminalJogsWithRuns`),N(oC,`straightenFront`),N(sC,`segmentsCrossStrict`),N(cC,`crossingCount`),N(HUe,`paramOnSegment`),N(UUe,`pointAtParam`),N(WUe,`projectLabelOntoStraightenedRun`),N(GUe,`segmentHitsBox`),zC=N((e,t)=>({x1:e.x-t.width/2,y1:e.y-t.height/2,x2:e.x+t.width/2,y2:e.y+t.height/2}),`labelBox`),N(KUe,`straightenEdgeTerminals`),N(qUe,`applyElkEdgeLayout`),RWe=4,N(JUe,`separateOppositeEdgeLabels`),zWe=N((e,t)=>e.x1{UWe=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return VWe(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&VWe(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,HWe)),n=n._prev;return`[`+e.join(`, `)+`]`}}}));function VC(e,t){if(e.nodeCount()<=1)return[];var n=KWe(e,t||qWe);return Rb(Qx(GWe(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function GWe(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)HC(e,t,n,o);for(;o=i.dequeue();)HC(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(HC(e,t,n,o,!0));break}}}return r}function HC(e,t,n,r,i){var a=i?[]:void 0;return qx(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,UC(t,n,s)}),qx(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,UC(t,n,o)}),e.removeNode(r.v),a}function KWe(e,t){var n=new wS,r=0,i=0;qx(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),qx(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=_S(i+r+3).map(function(){return new UWe}),o=r+1;return qx(n.nodes(),function(e){UC(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function UC(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var qWe,JWe=o((()=>{xS(),TS(),WWe(),qWe=gy(1)}));function YWe(e){qx(e.graph().acyclicer===`greedy`?VC(e,t(e)):XWe(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,kHe(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function XWe(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,qx(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return qx(e.nodes(),i),t}function WC(e){qx(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}var ZWe=o((()=>{xS(),JWe()}));function GC(e,t,n,r){var i;do i=kHe(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function KC(e){var t=new wS().setGraph(e.graph());return qx(e.nodes(),function(n){t.setNode(n,e.node(n))}),qx(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function QWe(e){var t=new wS({multigraph:e.isMultigraph()}).setGraph(e.graph());return qx(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),qx(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function $We(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=s*i/a,u=s):(i<0&&(o=-o),l=o,u=o*a/i),{x:n+l,y:r+u}}function eGe(e){var t=Qx(_S(qC(e)+1),function(){return[]});return qx(e.nodes(),function(n){var r=e.node(n),i=r.rank;aS(i)||(t[i][r.order]=n)}),t}function tGe(e){var t=NVe(Qx(e.nodes(),function(t){return e.node(t).rank}));qx(e.nodes(),function(n){var r=e.node(n);gVe(r,`rank`)&&(r.rank-=t)})}function nGe(e){var t=NVe(Qx(e.nodes(),function(t){return e.node(t).rank})),n=[];qx(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;qx(n,function(t,n){aS(t)&&n%i!==0?--r:r&&qx(t,function(t){e.node(t).rank+=r})})}function rGe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),GC(e,`border`,i,t)}function qC(e){return sS(Qx(e.nodes(),function(t){var n=e.node(t).rank;if(!aS(n))return n}))}function JC(e,t){var n={lhs:[],rhs:[]};return qx(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function iGe(e,t){var n=FBe();try{return t()}finally{console.log(e+` time: `+(FBe()-n)+`ms`)}}function aGe(e,t){return t()}var YC=o((()=>{xS(),TS()}));function G(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&qx(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a{xS(),YC()}));function cGe(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&XC(e)}function lGe(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&QC(e),(t===`lr`||t===`rl`)&&(uGe(e),XC(e))}function XC(e){qx(e.nodes(),function(t){ZC(e.node(t))}),qx(e.edges(),function(t){ZC(e.edge(t))})}function ZC(e){var t=e.width;e.width=e.height,e.height=t}function QC(e){qx(e.nodes(),function(t){$C(e.node(t))}),qx(e.edges(),function(t){var n=e.edge(t);qx(n.points,$C),Object.prototype.hasOwnProperty.call(n,`y`)&&$C(n)})}function $C(e){e.y=-e.y}function uGe(e){qx(e.nodes(),function(t){dGe(e.node(t))}),qx(e.edges(),function(t){var n=e.edge(t);qx(n.points,dGe),Object.prototype.hasOwnProperty.call(n,`x`)&&dGe(n)})}function dGe(e){var t=e.x;e.x=e.y,e.y=t}var fGe=o((()=>{xS()}));function pGe(e){e.graph().dummyChains=[],qx(e.edges(),function(t){mGe(e,t)})}function mGe(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),l=s.labelRank;if(a!==r+1){e.removeEdge(t);var u=void 0,d,f=0;for(++r;r{xS(),YC()}));function _Ge(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=NVe(Qx(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}qx(e.sources(),n)}function ew(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var vGe=o((()=>{xS()}));function yGe(e){var t=new wS({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;bGe(t,e){xS(),TS(),vGe()})),nw=o((()=>{xS()})),rw=o((()=>{nw()})),iw=o((()=>{xS()})),aw=o((()=>{xS()})),ow=o((()=>{aw()}));function sw(e,t,n){Vv(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return qx(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);cw(e,t,n===`post`,a,r,i)}),i}function cw(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),qx(i(t),function(t){cw(e,t,n,r,i,a)}),n&&a.push(t))}var lw=o((()=>{xS()}));function uw(e,t){return sw(e,t,`post`)}var CGe=o((()=>{lw()}));function dw(e,t){return sw(e,t,`pre`)}var fw=o((()=>{lw()})),wGe=o((()=>{HHe()})),pw=o((()=>{nw(),rw(),iw(),ow(),CGe(),fw(),wGe(),aw()}));function mw(e){e=KC(e),_Ge(e);var t=yGe(e);DGe(t),TGe(t,e);for(var n,r;n=kGe(t);)r=gw(t,e,n),_w(t,e,n,r)}function TGe(e,t){var n=uw(e,e.nodes());n=n.slice(0,n.length-1),qx(n,function(n){EGe(e,t,n)})}function EGe(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=hw(e,t,n)}function hw(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,qx(t.nodeEdges(n),function(a){var s=a.v===n,l=s?a.w:a.v;if(l!==r){var u=s===i,d=t.edge(a).weight;if(o+=u?d:-d,AGe(e,n,l)){var f=e.edge(n,l).cutvalue;o+=u?-f:f}}}),o}function DGe(e,t){arguments.length<2&&(t=e.nodes()[0]),OGe(e,{},1,t)}function OGe(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,qx(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=OGe(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function kGe(e){return sVe(e.edges(),function(t){return e.edge(t).cutvalue<0})}function gw(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,l=!1;return a.lim>o.lim&&(s=o,l=!0),uS(Jx(t.edges(),function(t){return l===jGe(e,e.node(t.v),s)&&l!==jGe(e,e.node(t.w),s)}),function(e){return ew(t,e)})}function _w(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),DGe(e),TGe(e,t),vw(e,t)}function vw(e,t){var n=dw(e,sVe(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),qx(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function AGe(e,t,n){return e.hasEdge(t,n)}function jGe(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var MGe=o((()=>{xS(),pw(),YC(),SGe(),vGe(),mw.initLowLimValues=DGe,mw.initCutValues=TGe,mw.calcCutValue=hw,mw.leaveEdge=kGe,mw.enterEdge=gw,mw.exchangeEdges=_w}));function NGe(e){switch(e.graph().ranker){case`network-simplex`:FGe(e);break;case`tight-tree`:PGe(e);break;case`longest-path`:yw(e);break;default:FGe(e)}}function PGe(e){_Ge(e),yGe(e)}function FGe(e){mw(e)}var yw,IGe=o((()=>{SGe(),MGe(),vGe(),yw=_Ge}));function LGe(e){var t=GC(e,`root`,{},`_root`),n=zGe(e),r=sS(iS(n))-1,i=2*r+1;e.graph().nestingRoot=t,qx(e.edges(),function(t){e.edge(t).minlen*=i});var a=BGe(e)+1;qx(e.children(),function(o){RGe(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function RGe(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var l=rGe(e,`_bt`),u=rGe(e,`_bb`),d=e.node(o);e.setParent(l,o),d.borderTop=l,e.setParent(u,o),d.borderBottom=u,qx(s,function(s){RGe(e,t,n,r,i,a,s);var d=e.node(s),f=d.borderTop?d.borderTop:s,p=d.borderBottom?d.borderBottom:s,m=d.borderTop?r:2*r,h=f===p?i-a[o]+1:1;e.setEdge(l,f,{weight:m,minlen:h,nestingEdge:!0}),e.setEdge(p,u,{weight:m,minlen:h,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,l,{weight:0,minlen:i+a[o]})}function zGe(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&qx(a,function(e){n(e,i+1)}),t[r]=i}return qx(e.children(),function(e){n(e,1)}),t}function BGe(e){return vS(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function VGe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,qx(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}var HGe=o((()=>{xS(),YC()}));function UGe(e,t,n){var r={},i;qx(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}var bw=o((()=>{xS()}));function WGe(e,t,n){var r=GGe(e),i=new wS({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return qx(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),qx(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=aS(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function GGe(e){for(var t;e.hasNode(t=kHe(`_root`)););return t}var xw=o((()=>{xS(),TS()}));function Sw(e,t){for(var n=0,r=1;r0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;l+=e.weight*n})),l}var KGe=o((()=>{xS()}));function ww(e){var t={},n=Jx(e.nodes(),function(t){return!e.children(t).length}),r=sS(Qx(n,function(t){return e.node(t).rank})),i=Qx(_S(r+1),function(){return[]});function a(n){gVe(t,n)||(t[n]=!0,i[e.node(n).rank].push(n),qx(e.successors(n),a))}return qx(yS(n,function(t){return e.node(t).rank}),a),i}var Tw=o((()=>{xS()}));function qGe(e,t){return Qx(t,function(t){var n=e.inEdges(t);if(n.length){var r=vS(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}var JGe=o((()=>{xS()}));function YGe(e,t){var n={};return qx(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};aS(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),qx(t.edges(),function(e){var t=n[e.v],r=n[e.w];!aS(t)&&!aS(r)&&(r.indegree++,t.out.push(n[e.w]))}),XGe(Jx(n,function(e){return!e.indegree}))}function XGe(e){var t=[];function n(e){return function(t){t.merged||(aS(t.barycenter)||aS(e.barycenter)||t.barycenter>=e.barycenter)&&Ew(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),qx(i.in.reverse(),n(i)),qx(i.out,r(i))}return Qx(Jx(t,function(e){return!e.merged}),function(e){return mS(e,[`vs`,`i`,`barycenter`,`weight`])})}function Ew(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}var ZGe=o((()=>{xS()}));function QGe(e,t){var n=JC(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=yS(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,l=0;r.sort($Ge(!!t)),l=Dw(a,i,l),qx(r,function(e){l+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,l=Dw(a,i,l)});var u={vs:Rb(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function Dw(e,t,n){for(var r;t.length&&(r=Wx(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function $Ge(e){return function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i}}var eKe=o((()=>{xS(),YC()}));function tKe(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,l={};o&&(i=Jx(i,function(e){return e!==o&&e!==s}));var u=qGe(e,i);qx(u,function(t){if(e.children(t.v).length){var i=tKe(e,t.v,n,r);l[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&rKe(t,i)}});var d=YGe(u,n);nKe(d,l);var f=QGe(d,r);if(o&&(f.vs=Rb([o,f.vs,s]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(f,`barycenter`)||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+m.order)/(f.weight+2),f.weight+=2}return f}function nKe(e,t){qx(e,function(e){e.vs=Rb(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rKe(e,t){aS(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var Ow=o((()=>{xS(),JGe(),ZGe(),eKe()}));function iKe(e){var t=qC(e),n=aKe(e,_S(1,t+1),`inEdges`),r=aKe(e,_S(t-1,-1,-1),`outEdges`),i=ww(e);sKe(e,i);for(var a=1/0,o,s=0,l=0;l<4;++s,++l){oKe(s%2?n:r,s%4>=2),i=eGe(e);var u=Sw(e,i);u{xS(),TS(),YC(),bw(),xw(),KGe(),Tw(),Ow()}));function lKe(e){var t=dKe(e);qx(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=uKe(e,t,i.v,i.w),o=a.path,s=a.lca,l=0,u=o[l],d=!0;n!==i.w;){if(r=e.node(n),d){for(;(u=o[l])!==s&&e.node(u).maxRanko||s>t[l].lim));for(u=l,l=r;(l=e.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function dKe(e){var t={},n=0;function r(i){var a=n;qx(e.children(i),r),t[i]={low:a,lim:n++}}return qx(e.children(),r),t}var fKe=o((()=>{xS()}));function pKe(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=Wx(r);return qx(r,function(t,l){var u=hKe(e,t),d=u?e.node(u).order:o;(u||t===s)&&(qx(r.slice(a,l+1),function(t){qx(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(oo)&&gKe(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return qx(n,function(s,l){if(e.node(s).dummy===`border`){var u=e.predecessors(s);u.length&&(a=e.node(u[0]).order,r(n,o,l,i,a),o=l,i=a)}r(n,o,n.length,a,t.length)}),n}return vS(t,i),n}function hKe(e,t){if(e.node(t).dummy)return sVe(e.predecessors(t),function(t){return e.node(t).dummy})}function gKe(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function _Ke(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function vKe(e,t,n,r){var i={},a={},o={};return qx(t,function(e){qx(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),qx(t,function(e){var t=-1;qx(e,function(e){var s=r(e);if(s.length){s=yS(s,function(e){return o[e]});for(var l=(s.length-1)/2,u=Math.floor(l),d=Math.ceil(l);u<=d;++u){var f=s[u];a[e]===e&&t{xS(),TS(),YC()}));function DKe(e){e=QWe(e),OKe(e),eS(CKe(e),function(t,n){e.node(n).x=t})}function OKe(e){var t=eGe(e),n=e.graph().ranksep,r=0;qx(t,function(t){var i=sS(Qx(t,function(t){return e.node(t).height}));qx(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}var kKe=o((()=>{xS(),YC(),EKe()}));function AKe(e,t){var n=t&&t.debugTiming?iGe:aGe;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>NKe(e));n(` runLayout`,()=>jKe(t,n)),n(` updateInputGraph`,()=>MKe(e,t))})}function jKe(e,t){t(` makeSpaceForEdgeLabels`,()=>PKe(e)),t(` removeSelfEdges`,()=>UKe(e)),t(` acyclic`,()=>YWe(e)),t(` nestingGraph.run`,()=>LGe(e)),t(` rank`,()=>NGe(QWe(e))),t(` injectEdgeLabelProxies`,()=>FKe(e)),t(` removeEmptyRanks`,()=>nGe(e)),t(` nestingGraph.cleanup`,()=>VGe(e)),t(` normalizeRanks`,()=>tGe(e)),t(` assignRankMinMax`,()=>IKe(e)),t(` removeEdgeLabelProxies`,()=>LKe(e)),t(` normalize.run`,()=>pGe(e)),t(` parentDummyChains`,()=>lKe(e)),t(` addBorderSegments`,()=>G(e)),t(` order`,()=>iKe(e)),t(` insertSelfEdges`,()=>WKe(e)),t(` adjustCoordinateSystem`,()=>cGe(e)),t(` position`,()=>DKe(e)),t(` positionSelfEdges`,()=>GKe(e)),t(` removeBorderNodes`,()=>HKe(e)),t(` normalize.undo`,()=>hGe(e)),t(` fixupEdgeLabelCoords`,()=>BKe(e)),t(` undoCoordinateSystem`,()=>lGe(e)),t(` translateGraph`,()=>RKe(e)),t(` assignNodeIntersects`,()=>zKe(e)),t(` reversePoints`,()=>VKe(e)),t(` acyclic.undo`,()=>WC(e))}function MKe(e,t){qx(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),qx(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function NKe(e){var t=new wS({multigraph:!0,compound:!0}),n=qKe(e.graph());return t.setGraph(cS({},jw,KKe(n,Aw),mS(n,Mw))),qx(e.nodes(),function(n){var r=qKe(e.node(n));t.setNode(n,zBe(KKe(r,Nw),JKe)),t.setParent(n,e.parent(n))}),qx(e.edges(),function(n){var r=qKe(e.edge(n));t.setEdge(n,cS({},Pw,KKe(r,YKe),mS(r,Fw)))}),t}function PKe(e){var t=e.graph();t.ranksep/=2,qx(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function FKe(e){qx(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);GC(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function IKe(e){var t=0;qx(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=sS(t,r.maxRank))}),e.graph().maxRank=t}function LKe(e){qx(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function RKe(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function l(e){var a=e.x,o=e.y,s=e.width,l=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}qx(e.nodes(),function(t){l(e.node(t))}),qx(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=o,r-=s,qx(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),qx(e.edges(),function(n){var i=e.edge(n);qx(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function zKe(e){qx(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift($We(r,a)),n.points.push($We(i,o))})}function BKe(e){qx(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset}})}function VKe(e){qx(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function HKe(e){qx(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(Wx(n.borderLeft)),o=e.node(Wx(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),qx(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function UKe(e){qx(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function WKe(e){qx(eGe(e),function(t){var n=0;qx(t,function(t,r){var i=e.node(t);i.order=r+n,qx(i.selfEdges,function(t){GC(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function GKe(e){qx(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function KKe(e,t){return kVe(mS(e,t),Number)}function qKe(e){var t={};return qx(e,function(e,n){t[n.toLowerCase()]=e}),t}var Aw,jw,Mw,Nw,JKe,YKe,Pw,Fw,XKe=o((()=>{xS(),TS(),sGe(),fGe(),ZWe(),gGe(),IGe(),HGe(),cKe(),fKe(),kKe(),YC(),Aw=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jw={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mw=[`acyclicer`,`ranker`,`rankdir`,`align`],Nw=[`width`,`height`],JKe={width:0,height:0},YKe=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Pw={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Fw=[`labelpos`]})),ZKe=o((()=>{ZWe(),XKe(),gGe(),IGe()})),QKe=l({applyDagreLayoutResult:()=>lqe,getEdgesToRender:()=>iqe,measureDagreLayout:()=>fqe,prepareLayoutForDagre:()=>dqe,render:()=>Vw,runDagreLayoutCore:()=>Bw}),$Ke,Iw,eqe,tqe,nqe,Lw,rqe,iqe,Rw,aqe,oqe,sqe,cqe,lqe,uqe,zw,dqe,fqe,Bw,Vw,pqe=o((()=>{pUe(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),ZKe(),TS(),$Ke=N((e,t,n)=>Math.max(t,Math.min(n,e)),`clamp`),Iw=N((e=`TB`)=>{switch(e){case`BT`:return`bottom`;case`LR`:return`right`;case`RL`:return`left`;default:return`top`}},`getDefaultSelfLoopSide`),eqe=N(e=>e===`flowchart`||e===`flowchart-v2`||e===`stateDiagram`||e===`er`||e===`classDiagram`,`shouldMergeSelfLoopSegments`),tqe=[`x`,`y`,`width`,`height`,`labelBBox`,`intersect`,`calcIntersect`,`diff`,`clusterNode`],nqe=N((e,t,n,r,i)=>{let a=[],o=new Set;if(n.forEach(({start:e,end:t})=>{e!==r&&o.add(e),t!==r&&o.add(t)}),o.forEach(t=>{let n=e.node(t);typeof n?.x==`number`&&typeof n?.y==`number`&&a.push(n)}),a.length===0&&n.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{typeof e?.x==`number`&&typeof e?.y==`number`&&a.push(e)})}),a.length===0)return Iw(i);let s=a.reduce((e,t)=>({x:e.x+t.x/a.length,y:e.y+t.y/a.length}),{x:0,y:0}),l=s.x-t.x,u=s.y-t.y;return Math.abs(l)>Math.abs(u)?l>0?`right`:`left`:Math.abs(u)>0?u>0?`bottom`:`top`:Iw(i)},`getSelfLoopSide`),Lw=N((e,t=`top`,n=0,r=0)=>{let i=e.x,a=e.y-n,o=e.width/2,s=e.height/2,l=Math.max(36,Math.min(100,e.width*.8)),u=$Ke(Math.max(r,e.width*.35),36,l),d=$Ke(Math.min(e.width,e.height)*.45,24,48);switch(t){case`bottom`:{let e=a+s;return[{x:i-u/2,y:e},{x:i-u/2,y:e+d},{x:i+u/2,y:e+d},{x:i+u/2,y:e}]}case`right`:{let e=i+o;return[{x:e,y:a-u/2},{x:e+d,y:a-u/2},{x:e+d,y:a+u/2},{x:e,y:a+u/2}]}case`left`:{let e=i-o;return[{x:e,y:a-u/2},{x:e-d,y:a-u/2},{x:e-d,y:a+u/2},{x:e,y:a+u/2}]}default:{let e=a-s;return[{x:i-u/2,y:e},{x:i-u/2,y:e-d},{x:i+u/2,y:e-d},{x:i+u/2,y:e}]}}},`getSelfLoopPoints`),rqe=N((e,t,n=`top`,r=0,i={})=>{let a=e.x,o=e.y-r,s=i.width??0,l=i.height??0;switch(n){case`bottom`:return{x:a,y:Math.max(...t.map(e=>e.y))+l/2+4};case`right`:return{x:Math.max(...t.map(e=>e.x))+s/2+4,y:o};case`left`:return{x:Math.min(...t.map(e=>e.x))-s/2-4,y:o};default:return{x:a,y:Math.min(...t.map(e=>e.y))-l/2-4}}},`getSelfLoopLabelPosition`),iqe=N((e,t=0,{mergeSelfLoops:n=!0}={})=>{let r=new Map,i=[],a=e.graph()?.rankdir;return e.edges().forEach(t=>{let a=e.edge(t);if(n&&a.selfLoop){let e=a.selfLoop.id;r.has(e)||r.set(e,[]),r.get(e).push({edge:a,start:t.v,end:t.w})}else i.push({edge:a,start:t.v,end:t.w})}),r.forEach(n=>{if(n.length!==3){n.forEach(e=>i.push(e));return}n.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[r,o,s]=n,l=r.edge.originalEdge??o.edge.originalEdge??s.edge.originalEdge??o.edge,u=e.node(l.start);if(!u){n.forEach(e=>i.push(e));return}let d={width:o.edge.width,height:o.edge.height},f=nqe(e,u,n,l.start,a),p=Lw(u,f,t,d.width??0),m=rqe(u,p,f,t,d),h={...o.edge,...l,id:l.id,points:p,start:l.start,end:l.end,x:m.x,y:m.y,width:d.width,height:d.height,labelStyle:o.edge.labelStyle,fromCluster:r.edge.fromCluster??o.edge.fromCluster??s.edge.fromCluster,toCluster:r.edge.toCluster??o.edge.toCluster??s.edge.toCluster};delete h.selfLoop,delete h.originalEdge,i.push({edge:h,start:h.start,end:h.end})}),i},`getEdgesToRender`),Rw=N(async({element:e,graph:t,diagramType:n,id:r,parentCluster:i,siteConfig:a})=>{let o=t.graph().rankdir;P.trace(`Dir in recursive render - dir:`,o);let{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f}=AS(e,{edgePathsClass:`edgePaths`});t.nodes()?P.info(`Recursive render XXX`,t.nodes()):P.info(`No nodes found for`,t),t.edges().length>0&&P.info(`Recursive edges`,t.edge(t.edges()[0]));let p=eqe(n);await Promise.all(t.nodes().map(async function(e){let s=t.node(e);if(i!==void 0){let n=JSON.parse(JSON.stringify(i.clusterData));P.trace(`Setting data for parent cluster XXX +... Falling back to non-web worker version.`)}if(!a.workerFactory){var l=e(`./elk-worker.min.js`).Worker;a.workerFactory=function(e){return new l(e)}}return i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a))}return n}(e(`./elk-api.js`).default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=o,o.default=o},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=Worker},{}]},{},[3])(3)})})),OUe=l({render:()=>GWe});function kUe(e,t,{parentById:n}){let r=e;for(;(n[r]??kWe)!==t;)r=n[r];return r}function AUe(e,t){let n=e.map(()=>!1),r=new Map;e.forEach(({source:e,target:n},i)=>{if(e===n)return;let a=OWe(e,n,t);if(a===e||a===n)return;let o=kUe(e,a,t),s=kUe(n,a,t),l=r.get(a)??[];l.push({index:i,from:o,to:s,collapsed:o!==e||s!==n}),r.set(a,l)});for(let e of r.values()){let t=new Map,r=[],i=new Map;for(let n of e){for(let e of[n.from,n.to])t.has(e)||(t.set(e,[]),r.push(e),i.set(e,0));t.get(n.from).push(n),i.set(n.to,i.get(n.to)+1)}let a=new Map,o=[...r.filter(e=>i.get(e)===0),...r];for(let e of o){if(a.has(e))continue;a.set(e,1);let r=[{node:e,next:0}];for(;r.length>0;){let e=r[r.length-1],i=t.get(e.node);if(e.next>=i.length){a.set(e.node,2),r.pop();continue}let o=i[e.next++],s=a.get(o.to);s===1?n[o.index]=o.collapsed:s===void 0&&(a.set(o.to,1),r.push({node:o.to,next:0}))}}}return n}function jUe(e,{measure:t}){let n=e.config?.elk?.lineHops;if(n===!1)return;let r=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));Cv(t.groups.edgePaths,r,{enabled:!0,jumpRadius:AWe,jumpStyle:n===`gap`?`gap`:`arc`})}function MUe(e){for(let t of UWe)delete e[t];e[`spacing.baseValue`]=DC,e[`spacing.nodeNode`]=OC}function NUe(e,t){if(typeof e==`string`){if(!WWe.has(e)){t?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...WWe].join(`, `)}. Falling back to the diagram's layout algorithm.`);return}return e}}function PUe(e){switch(e){case`LR`:return`RIGHT`;case`RL`:return`LEFT`;case`TB`:case`TD`:return`DOWN`;case`BT`:return`UP`;default:return`DOWN`}}function FUe(e){return XMe(e.shape)?(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0):0}function IUe(e){return XMe(e.shape)?{"nodeSize.constraints":`[MINIMUM_SIZE, NODE_LABELS]`,"nodeSize.minimum":`(${FUe(e)}, 0)`}:{}}function LUe(e,t,n,r){let i=(e.labelData?.width??0)+2*(e.padding??0),a=e.labelData?.height??0,o=HS(t?.preset),s={...IUe(e),"spacing.baseValue":DC,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":OC,"elk.padding":`[top=${EC},left=${EC},bottom=${EC},right=${EC}]`,"nodeLabels.placement":`[H_CENTER V_TOP, INSIDE]`,"elk.layered.mergeEdges":t?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":t?.nodePlacementAlignment??o.alignment,"elk.layered.nodePlacement.strategy":t?.nodePlacementStrategy??o.containerPlacement,"elk.layered.cycleBreaking.strategy":t?.cycleBreakingStrategy??o.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":`PORT_POSITION`,"elk.spacing.portsSurrounding":TC},l=NUe(e.metadata?.algorithm,r);if(l){let e=a+kC;if(s[`nodeSize.constraints`]=`[MINIMUM_SIZE, NODE_LABELS]`,s[`nodeSize.minimum`]=`(${i}, ${e+kC})`,s[`elk.algorithm`]=l,s[`elk.hierarchyHandling`]=`SEPARATE_CHILDREN`,s[`elk.aspectRatio`]=`2.0`,s[`elk.contentAlignment`]=`H_CENTER V_TOP`,s[`elk.expandNodes`]=`true`,s[`elk.padding`]=`[top=${e},left=${kC},bottom=${kC},right=${kC}]`,l===`elk.rectpacking`){let e=a+AC;Object.assign(s,HWe,{"elk.padding":`[top=${e},left=${AC},bottom=${AC},right=${AC}]`,"nodeSize.minimum":`(${i}, ${e+AC})`})}}else e.dir&&(s[`elk.algorithm`]=n,s[`elk.direction`]=PUe(e.dir),s[`elk.hierarchyHandling`]=`SEPARATE_CHILDREN`);return Object.assign(s,PWe),s}function RUe(e,t){let n=new Set,r=new Map;for(let{id:t,parentId:n}of e){let e=r.get(n);e?e.push(t):r.set(n,[t])}for(let e of r.values()){let r=new Set(e),i=new Map(e.map(e=>[e,0])),a=new Map(e.map(e=>[e,[]])),o=[];for(let e of t){let t=e.source==null?void 0:String(e.source),n=e.target==null?void 0:String(e.target);t&&n&&t!==n&&r.has(t)&&r.has(n)&&(i.set(n,(i.get(n)??0)+1),a.get(t).push(n),a.get(n).push(t),o.push([t,n]))}let s=new Map,l=0;for(let t of e){if(s.has(t))continue;let e=[t];for(s.set(t,l);e.length>0;){let t=e.pop();for(let n of a.get(t))s.has(n)||(s.set(n,l),e.push(n))}l++}let u=Array(l).fill(!1);for(let t of e)(i.get(t)??0)===0&&(u[s.get(t)]=!0);if(!u.includes(!1))continue;let d=new Map(e.map(e=>[e,[]])),f=new Map(e.map(e=>[e,0])),p=N((e,t)=>{let n=new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===t)return!0;for(let t of d.get(e))n.has(t)||(n.add(t),r.push(t))}return!1},`reaches`);for(let[e,t]of o)p(t,e)||(d.get(e).push(t),f.set(t,(f.get(t)??0)+1));let m=Array(l).fill(!1);for(let t of e){let e=s.get(t);!u[e]&&!m[e]&&f.get(t)===0&&(n.add(t),m[e]=!0)}}return n}function zUe(e,t){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=RUe(e.nodes,e.edges.map(e=>({source:e.start,target:e.end})));for(let e of n){let n=t[e];n&&(n.layoutOptions={...n.layoutOptions,"elk.layered.layering.layerConstraint":`FIRST`})}}function RS(e,t){let n=VS(t);return VUe(n),pWe(e,n),{algorithm:n.algorithm}}async function zS(e,t){let n=VS(t),r=BUe(e,n),i=new DWe.default;n.log.info(`Drawing flowchart using v4 renderer`,i);let a=await YS(i,r.elkGraph,n.log);return XUe(e,a,r,n.log),HUe(e.nodes),a}function BUe(e,t){let n={},r=WUe(e,t.algorithm,t.rootLayoutOptions),i=e.direction??`DOWN`;r.layoutOptions[`elk.direction`]=PUe(i);let a=GUe(e.nodes,t.log);return KUe(e.nodes,r,n,t),JUe(e,r,n,t),qS(e,n,a,t),YUe(r,n,a,t.log),e.config.elk?.orientFeedbackEdges!==!1&&BS(r,a),zUe(e,n),{elkGraph:r,nodeDb:n,parentLookupDb:a}}function BS(e,t){let n=AUe(e.edges.map(e=>({source:e.sources[0],target:e.targets[0]})),t);e.edges.forEach((e,t)=>{n[t]&&([e.sources,e.targets]=[e.targets,e.sources],e.layoutReversed=!0)})}function VUe(e){xs(e.getConfig())}function HUe(e){let t=new Map(e.map(e=>[e.id,e]));e.sort((e,n)=>e.isGroup===n.isGroup?e.isGroup&&n.isGroup?UUe(e,t)-UUe(n,t):0:e.isGroup?-1:1)}function UUe(e,t){let n=0,r=new Set,i=e.parentId;for(;i&&!r.has(i);){r.add(i);let e=t.get(i);if(!e?.isGroup)break;n++,i=e.parentId}return n}function VS(e){let t=e.helpers;if(!t)throw Error(`ELK layout requires Mermaid internal helpers`);return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:t.common,getConfig:t.getConfig,interpolateToCurve:t.interpolateToCurve,log:t.log}}function HS(e){return e!==void 0&&Object.hasOwn(KWe,e)?KWe[e]:KWe.default}function WUe(e,t,n){let r=HS(e.config.elk?.preset),i={id:`root`,layoutOptions:{"elk.hierarchyHandling":`INCLUDE_CHILDREN`,"elk.algorithm":t,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??r.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??r.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":`DOWN`,"spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??r.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??r.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":`EQUALLY`,"elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":TC},children:[],edges:[]};return t===`elk.rectpacking`&&Object.assign(i.layoutOptions,HWe,{"elk.contentAlignment":`H_CENTER V_TOP`,"elk.padding":`[top=15,left=15,bottom=15,right=15]`}),n&&Object.assign(i.layoutOptions,n),Object.assign(i.layoutOptions,jWe,MWe,NWe),i}function GUe(e,t){let n={parentById:{},childrenById:{}},r=e.filter(e=>e.isGroup);return t.info(`Subgraphs - `,r),r.forEach(t=>{e.filter(e=>e.parentId===t.id).forEach(e=>{n.parentById[e.id]=t.id,n.childrenById[t.id]??=[],n.childrenById[t.id].push(e.id)})}),n}function KUe(e,t,n,r,i){let a=e.filter(e=>e?.parentId===i);return r.log.info(`addVertices APA12`,a,i),a.forEach(i=>{US(t,e,i,n,r)}),t}function US(e,t,n,r,i){let a=qUe(n);e.children.push(a),r[n.id]=a,n.isGroup&&(a.children=[],KUe(t,a,r,i,n.id),a.labelData=WS(n,i.getConfig()))}function qUe(e){let t={...e};return delete t.domId,e.isGroup?t.children=[]:(t.width=e.width??0,t.height=e.height??0,e.spreadPorts&&(t.layoutOptions={...t.layoutOptions,"elk.portAlignment.default":`CENTER`})),t}function WS(e,t){return e.labelData||(e.labelBBox?{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??t.flowchart?.wrappingWidth}:{width:0,height:0,wrappingWidth:e.wrappingWidth??t.flowchart?.wrappingWidth})}function JUe(e,t,n,r){r.log.info(`abc78 DAGA edges = `,e);let i={};return e.edges.forEach(e=>{let a=e.id;i[a]=(i[a]??-1)+1;let o=a;e.id=o,r.log.info(`abc78 new link id to be used is`,a,o,i[a]);let{source:s,target:l,sourceId:u,targetId:d}=KS(e,n);r.log.debug(`abc78 source and target`,s,l),t.edges.push({...e,sources:[s],targets:[l],sourceId:u,targetId:d,labels:[{width:e.width??0,height:e.height??0,orgWidth:e.width??0,orgHeight:e.height??0,text:e.label??``,layoutOptions:{"edgeLabels.inline":`true`,"edgeLabels.placement":`CENTER`}},...(r.rootLayoutOptions?.[`elk.algorithm`]??r.algorithm??`elk.layered`)===`elk.layered`?GS(e):[]]})}),t}function GS(e){let t={startLeft:e.startLabelLeft,startRight:e.startLabelRight,endLeft:e.endLabelLeft,endRight:e.endLabelRight};return Object.entries(e.terminalLabelSizes??{}).map(([n,r])=>{let i=n.startsWith(`start`),a=i?e.arrowTypeStart:e.arrowTypeEnd,o=a&&a!==`none`?qWe:0;return{terminal:n,text:t[n],width:r.width+2*o,height:r.height+2*o,layoutOptions:{"edgeLabels.placement":i?`TAIL`:`HEAD`}}})}function KS(e,t){let n=e.start,r=e.end,i=n,a=r,o=n?t[n]:void 0,s=r?t[r]:void 0;return!o||!s?{source:i,target:a}:{source:i,target:a,sourceId:n,targetId:r}}function qS(e,t,n,r){e.nodes.forEach(i=>{let a=t[i.id];a&&n.childrenById[a.id]!==void 0&&(a.labels=[{text:a.label,width:a?.labelData?.width??50,height:a?.labelData?.height??50}],r.log.debug(`UIO node label`,a?.labelData?.width,a.padding),a.layoutOptions=LUe(a,e.config.elk,r.algorithm,r.log),delete a.x,delete a.y,delete a.width,delete a.height)})}function YUe(e,t,n,r){r.debug(`APA01 processing edges, count:`,e.edges.length),e.edges.forEach((e,i)=>{r.debug(`APA01 processing edge`,i,`:`,e);let a=e.sources[0],o=e.targets[0];if(r.debug(`APA01 source:`,a,`target:`,o),r.debug(`APA01 nodeDb[source]:`,t[a]),r.debug(`APA01 nodeDb[target]:`,t[o]),t[a]&&t[o]&&t[a].parentId!==t[o].parentId){let e=OWe(a,o,n);JS(t,a,e,r),JS(t,o,e,r)}})}function JS(e,t,n,r){let i=e[t];i&&(i.layoutOptions??={},i.layoutOptions[`elk.hierarchyHandling`]===`SEPARATE_CHILDREN`&&NUe(i.metadata?.algorithm)&&(r.debug(`Dropping explicit algorithm for node`,i.id,`due to cross-boundary edges`),MUe(i.layoutOptions),Object.assign(i.layoutOptions,IUe(i))),i.layoutOptions[`elk.hierarchyHandling`]=`INCLUDE_CHILDREN`,i.id!==n&&i.parentId&&JS(e,i.parentId,n,r))}async function YS(e,t,n){let r=globalThis.__mermaidProfiler;try{r?.begin(`layoutCore`);let i;try{i=await e.layout(t)}finally{r?.end()}return n.debug(`APA01 after - success`),n.debug(`APA01 layout result:`,i),i}catch(e){throw n.error(`ELK layout error:`,e),e}}function XUe(e,t,n,r){let i=new Map(e.nodes.map(e=>[e.id,e]));$S(t.children??[],n,i,0,0,0,r),QS(t.children??[],n,i,t),nC(e,t,n,r)}function XS(e,t=new Set){for(let n of e.children??[])t.add(n.id),XS(n,t);return t}function ZS(e,t,n,r){let i=[];for(let a of e.edges??[]){let e=a.sources?.[0]??a.start,o=a.targets?.[0]??a.end,s=t.has(e)&&t.has(o),l=e===r,u=o===r;if(!s&&!l&&!u)continue;let d=sWe(e,o,n.parentLookupDb,n.nodeDb);for(let e of a.sections??[]){let t=s?[e.startPoint,...e.bendPoints??[],e.endPoint]:[l?e.startPoint:null,u?e.endPoint:null];for(let e of t)e&&i.push({x:e.x+d.x,y:e.y+d.y})}}return i}function QS(e,t,n,r={}){for(let i of e){if(!i?.isGroup)continue;let e=i.children??[];QS(e,t,n,r);let a=t.nodeDb[i.id],o=e.map(e=>t.nodeDb[e.id]).filter(e=>e?.offset&&e.width&&e.height);if(!a?.offset||o.length===0)continue;let s=ZS(r,XS(i),t,i.id),l=[...o.map(e=>e.offset.posX),...o.map(e=>e.offset.posX+e.width),...s.map(e=>e.x)],u=[...o.map(e=>e.offset.posY),...o.map(e=>e.offset.posY+e.height),...s.map(e=>e.y)],d=a.offset,f=Math.max(d.posX,Math.min(...l)-EC),p=Math.min(d.posX+a.width,Math.max(...l)+EC),m=Math.min(d.posY+a.height,Math.max(...u)+EC),h=d.posY,g=FUe(i),_=f,v=p-f;if(v{if(!e)return;let s=t.nodeDb[e.id]??e,l=Math.max(e.width,e.labels&&e.labels[0]?.width||0),u={posX:e.x+r,posY:e.y+i,x:r,y:i,depth:a,width:l,height:e.height};s.offset=u,s.x=u.posX+e.width/2,s.y=u.posY+e.height/2,s.width=e.width,s.height=e.height;let d=n.get(e.id);if(d){d.x=s.x,d.y=s.y,d.width=e.isGroup?Math.max(e.width,e.labelData?.width??0):e.width,d.height=e.height;let t=d;t.labelData=e.labelData,t.labels=e.labels}e.isGroup?(o.debug(`Id abc88 subgraph = `,e.id,e.x,e.y,e.labelData),$S(e.children??[],t,n,u.posX,u.posY,a+1,o)):o.info(`Id NODE = `,e.id,e.x,e.y,r,i,`translate(${s.x}, ${s.y})`)})}function eC(e,t){let n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);if(n>MC&&r<=MC)return`h`;if(r>MC&&n<=MC)return`v`}function ZUe(e){let t=[],n=e,r=QUe(n);r&&(n=r.points,t.push(r.run));let i=QUe([...n].reverse());return i&&(n=i.points.reverse(),t.push(i.run)),{points:n,runs:t}}function QUe(e){if(e.length<5)return null;let[t,n,r,i]=e,a=eC(t,n);if(!a||eC(r,i)!==a||eC(n,r)!==(a===`h`?`v`:`h`)||Math.hypot(n.x-t.x,n.y-t.y)>jC)return null;let o=Math.abs(a===`h`?r.y-n.y:r.x-n.x);if(oJWe||!(a===`h`?Math.sign(n.x-t.x)===Math.sign(i.x-r.x):Math.sign(n.y-t.y)===Math.sign(i.y-r.y)))return null;let s=3;for(;s+1(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),`side`),a=i(n,r,e),o=i(n,r,t),s=i(e,t,n),l=i(e,t,r);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)}function eWe(e,t){let n=0;for(let r=0;re.points??[]),n=e.map(e=>e.x==null||e.y==null||!e.label||!e.width||!e.height?void 0:{centre:{x:e.x,y:e.y},size:{width:e.width,height:e.height}}),r=N((e,t)=>{let n=t&&NC(t.centre,t.size);return!!n&&e.some((t,r)=>rp||g>h||(o.points=s,t[a]=s,n[a]=f,i.push({edge:o,runs:l}))}return i}function nC(e,t,n,r){let i=new Map(e.edges.map(e=>[e.id,e])),a=e.config.elk?.straightenEdges!==!1,o=new Map;for(let t of e.edges)delete t.terminalLabelCenters;let s=new Map(e.nodes.map(e=>[e.id,e])),l=new Set;if(t.edges?.forEach(e=>{if(!e.sections?.length)return;let t=n.nodeDb[e.sources?.[0]??e.start],r=n.nodeDb[e.targets?.[0]??e.end];if(!t||!r)return;let i=sWe(e.start??e.sourceId??e.sources?.[0],e.end??e.targetId??e.targets?.[0],n.parentLookupDb,n.nodeDb),a=e.sections[0];t.shape!==`rect33`&&sC(t,{x:a.startPoint.x+i.x,y:a.startPoint.y+i.y},s,l),r.shape!==`rect33`&&sC(r,{x:a.endPoint.x+i.x,y:a.endPoint.y+i.y},s,l)}),t.edges?.forEach(e=>{let t=i.get(e.id);if(!t)return;let a=e.layoutReversed===!0,s=e.sources?.[0]??e.start,l=e.targets?.[0]??e.end;a&&([s,l]=[l,s]);let u=n.nodeDb[s],d=n.nodeDb[l];if(!u||!d)return;if(!e.sections?.length){let n=N(e=>({x:(e.offset?.posX??e.x??0)+(e.width??0)/2,y:(e.offset?.posY??e.y??0)+(e.height??0)/2}),`centre`),i=n(u),a=n(d);u.x=i.x,u.y=i.y,d.x=a.x,d.y=a.y;let o=lC([i,a],u,d,r);t.points=o,t.curve=`linear`;let s=o[0],l=o[o.length-1];t.x=(s.x+l.x)/2,t.y=(s.y+l.y)/2,r.debug(`APA18 no edge sections, using a straight line`,e.id,t.points);return}let f=e.start??e.sourceId??s,p=e.end??e.targetId??l,m=sWe(f,p,n.parentLookupDb,n.nodeDb);r.debug(`APA18 offset`,m,f,` ==> `,p,`edge:`,e,u);let h=e.sections[0],g=cC(h,m);a&&g.reverse();let _={start:g[0],end:g[g.length-1]};u.x=u.offset.posX+u.width/2,u.y=u.offset.posY+u.height/2,d.x=d.offset.posX+d.width/2,d.y=d.offset.posY+d.height/2,u.shape!==`rect33`&&g.unshift({x:u.x,y:u.y}),d.shape!==`rect33`&&g.push({x:d.x,y:d.y}),t.points=dWe(fWe(lC(g,u,d,r),dC(d),lWe(t),r),dC(u),uWe(t),r),t.curve=`rounded`;let v=e.labels?.[0];v&&(t.x=v.x+m.x+v.width/2,t.y=v.y+m.y+v.height/2);for(let n of e.labels??[])n.terminal&&(n.x||n.y)&&(t.terminalLabelCenters??={},t.terminalLabelCenters[n.terminal]={x:n.x+m.x+n.width/2,y:n.y+m.y+n.height/2});t.terminalLabelCenters&&o.set(t,_)}),a){let t=tC(e.edges);for(let{edge:e,runs:n}of t){if(e.x==null||e.y==null)continue;let t=rWe({x:e.x,y:e.y},n);t&&(e.x=t.x,e.y=t.y)}}for(let[e,t]of o)oC(e,t);aWe(e.edges,e.nodes),oWe(e.edges,e.nodes),rC(e.edges)}function rC(e){let t=new Map;for(let n of e){if(n.x==null||n.y==null||!n.label||!n.width)continue;let e=[n.start??``,n.end??``].sort().join(`\0`),r=t.get(e);r?r.push(n):t.set(e,[n])}for(let e of t.values()){if(e.length!==2)continue;let[t,n]=e;if(Math.abs(t.y-n.y)>Math.max(t.height??0,n.height??0))continue;let r=t.width/2+n.width/2+PC,i=n.x-t.x,a=r-Math.abs(i);if(a<=0)continue;let o=Math.sign(i)||1;t.x-=o*a/2,n.x+=o*a/2}}function iC(e,t){let n=t.filter(e=>e.x!==void 0&&e.y!==void 0),r=N(e=>NC({x:e.x,y:e.y},{width:e.width??0,height:e.height??0}),`boxOf`),i=n.filter(e=>!e.isGroup).map(r),a=n.filter(e=>e.isGroup).map(r).flatMap(({x1:e,y1:t,x2:n,y2:r})=>[[{x:e,y:t},{x:n,y:t}],[{x:n,y:t},{x:n,y:r}],[{x:n,y:r},{x:e,y:r}],[{x:e,y:r},{x:e,y:t}]]),o=e.filter(e=>e.label&&e.width&&e.height&&e.x!==void 0).map(e=>NC({x:e.x,y:e.y},{width:e.width,height:e.height})),s=N((e,t=0)=>{let n={x1:e.x1-t,y1:e.y1-t,x2:e.x2+t,y2:e.y2+t};return a.some(([e,t])=>iWe(e,t,n))},`hitsFrame`);return{hitsFrame:s,blocked:N((t,n,r,a,l=0)=>i.some(e=>FC(t,e))||o.some(e=>FC(t,e))||s(t,l)||e.some(e=>(e.points??[]).some((r,i,o)=>iObject.entries(e.terminalLabelCenters??{}).some(([i,a])=>{let o=e.terminalLabelSizes?.[i];return(e!==n||i!==r)&&o!==void 0&&FC(t,NC(a,o))})),`blocked`)}}function*aC(e){for(let t of e){let e=t.points;if(!(!e||e.length<2||!t.terminalLabelCenters||!t.terminalLabelSizes))for(let[n,r]of Object.entries(t.terminalLabelCenters)){let i=t.terminalLabelSizes[n],a=n.startsWith(`start`),o=a?0:e.length-2,[s,l]=[e[o],e[o+1]],u=Math.hypot(l.x-s.x,l.y-s.y);i&&u!==0&&(yield{edge:t,key:n,center:r,size:i,atStart:a,segment:o,from:s,to:l,length:u})}}}function aWe(e,t){let{hitsFrame:n,blocked:r}=iC(e,t);for(let{edge:t,key:i,center:a,size:o,atStart:s,segment:l,from:u,to:d,length:f}of aC(e)){if(!n(NC(a,o)))continue;let[e,p]=s?[d,u]:[u,d],m={x:(p.x-e.x)/f,y:(p.y-e.y)/f},h=(Math.abs(m.x)*o.width+Math.abs(m.y)*o.height)/2,g=N(e=>(e.x-p.x)*m.x+(e.y-p.y)*m.y,`along`),_=N(e=>g(e)+h<=0&&g(e)-h>=-f,`onSegment`);for(let e=1;e<=f;e++){let n=[e,-e].map(e=>({x:a.x+e*m.x,y:a.y+e*m.y})).find(e=>_(e)&&!r(NC(e,o),t,i,l,YWe));if(n){t.terminalLabelCenters[i]=n;break}}}}function oWe(e,t){let{blocked:n}=iC(e,t);for(let{edge:t,key:r,center:i,size:a,segment:o,from:s,to:l,length:u}of aC(e)){let e={x:-(l.y-s.y)/u,y:(l.x-s.x)/u},d=(i.x-s.x)*e.x+(i.y-s.y)*e.y;if(d===0||d>0===r.endsWith(`Right`))continue;let f={x:i.x-2*d*e.x,y:i.y-2*d*e.y};n(NC(f,a),t,r,o)||(t.terminalLabelCenters[r]=f)}}function oC(e,t){let n=e.points;if(!n?.length||!e.terminalLabelCenters)return;let r={start:{x:n[0].x-t.start.x,y:n[0].y-t.start.y},end:{x:n[n.length-1].x-t.end.x,y:n[n.length-1].y-t.end.y}};for(let[t,n]of Object.entries(e.terminalLabelCenters)){let i=t.startsWith(`start`)?r.start:r.end;e.terminalLabelCenters[t]={x:n.x+i.x,y:n.y+i.y}}}function sC(e,t,n,r){let i=e.width??0,a=e.height??0,o=e.offset.posY,s=o+a,l=.5,u=Math.abs(t.y-o)<=l||Math.abs(t.y-s)<=l;if((u?i:a)>=2*wC||r.has(e.id))return;r.add(e.id);let d=u?t.x-(e.offset.posX+i/2):t.y-(e.offset.posY+a/2);if(Math.abs(d)<.01)return;u?(e.offset.posX+=d,e.x=e.offset.posX+i/2):(e.offset.posY+=d,e.y=e.offset.posY+a/2);let f=n.get(e.id);f&&(f.x=e.offset.posX+i/2,f.y=e.offset.posY+a/2)}function cC(e,t){let n=e.startPoint,r=e.endPoint,i=(e.bendPoints?e.bendPoints:[]).map(e=>({x:e.x+t.x,y:e.y+t.y}));return[{x:n.x+t.x,y:n.y+t.y},...i,{x:r.x+t.x,y:r.y+t.y}]}function sWe(e,t,n,r){let i=OWe(e,t,n);if(i===void 0||i===`root`)return{x:0,y:0};let a=r[i],o=a?.elkOrigin??a?.offset;return{x:o?.posX??0,y:o?.posY??0}}function lC(e,t,n,r){let i=Array.isArray(e)?[...e]:[],a=dC(n);r.debug(`PPP cutter2: Points before cutter2:`,JSON.stringify(e),`endBounds:`,a,mC(a,e[e.length-1]));let o;{let e=dC(t),a=dC(n),s=!!t?.isGroup,l=!!n?.isGroup,{candidate:u,centerApprox:d}=bWe(i,t,`start`),{candidate:f,centerApprox:p}=bWe(i,n,`end`),m=s&&mC(e,u),h=l&&mC(a,f);xWe(i,`start`,m&&d),xWe(i,`end`,h&&p),s&&!m&&(m=SWe(i,e,`start`)),l&&!h&&(h=SWe(i,a,`end`)),m||h?(m||CWe(i,t,e,r),h||wWe(i,n,a,r),r.debug(`PPP cutter2: skipping cutter2 due to on-border group endpoint(s)`,{skipStart:m,skipEnd:h,startCenterApprox:d,endCenterApprox:p,startCandidate:u,endCandidate:f}),o=i):o=EWe(t,n,i,r)}if(r.debug(`PPP cutter2: Points after cutter2:`,JSON.stringify(o)),!Array.isArray(o)||o.length<2||uC(o)){r.warn(`POI cutter2: Invalid points from cutter2, falling back to prevPoints`,o);let e=i.filter(e=>Number.isFinite(e?.x)&&Number.isFinite(e?.y));o=e.length>=2?e:i}return r.debug(`UIO cutter2: Points after cutter2 (sanitized):`,o),cWe(o,r)}function uC(e){return e?.some(e=>!Number.isFinite(e?.x)||!Number.isFinite(e?.y))}function cWe(e,t){let n=e.filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return Math.abs(e.x-r.x)>1e-6||Math.abs(e.y-r.y)>1e-6});return n.length!==e.length&&t.debug(`UIO cutter2: removed consecutive duplicate points`,{before:e,after:n}),n}function lWe(e){return SC(e.arrowTypeEnd)}function uWe(e){return SC(e.arrowTypeStart)}function dWe(e,t,n,r){if(n<=0||e.length<3)return e;let i=e[0],a=e[1],o=Math.hypot(a.x-i.x,a.y-i.y);if(o>=Math.max(xC,n*2)||!mC(t,a,1))return e;let s=[i,...e.slice(2)];return r.debug(`UIO cutter2: removed short start marker segment`,{before:e,after:s,markerOffset:n,segmentLength:o}),s}function fWe(e,t,n,r){if(n<=0||e.length<3)return e;let i=e[e.length-1],a=e[e.length-2],o=Math.hypot(i.x-a.x,i.y-a.y);if(o>=Math.max(xC,n*2)||!mC(t,a,1))return e;let s=[...e.slice(0,-2),i];return r.debug(`UIO cutter2: removed short end marker segment`,{before:e,after:s,markerOffset:n,segmentLength:o}),s}function pWe(e,t){let n=e.edges.defaultInterpolate,r=e.edges.defaultStyle,i=t.getConfig();e.edges.forEach(e=>{let a=_We(e,{defaultStyle:r,defaultInterpolate:n,confCurve:i.curve},t);Object.assign(e,a)})}function mWe(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`}function hWe(e,t,n){let r=`normal`,i=`solid`,a=[],o=[];return e===`dotted`?(i=`dotted`,a=[`fill:none`,`stroke-width:2px`,`stroke-dasharray:3`]):e===`thick`?(r=`thick`,a=[`stroke-width: 3.5px`,`fill:none`]):(a=t??[`fill:none`],n!==void 0&&(o=n)),{thickness:r,pattern:i,style:a,labelStyle:o}}function gWe(e,t,n){return e===void 0?t===void 0?n:t:e}function _We(e,t,n){let r={};r.minlen=e.minlen??e.length??1,r.text=e.text??e.label,r.arrowhead=e.arrowhead??(e.type===`arrow_open`?`none`:`normal`);let i=CC[e.type??`arrow_open`]??CC.arrow_open;r.arrowTypeStart=e.arrowTypeStart??i[0],r.arrowTypeEnd=e.arrowTypeEnd??i[1],r.startLabelRight=e.startLabelRight,r.endLabelLeft=e.endLabelLeft;let a=hWe(e.stroke,t.defaultStyle,t.defaultLabelStyle);r.thickness=e.thickness??a.thickness,r.pattern=e.pattern??a.pattern,r.style=e.style??a.style,r.labelStyle=e.labelStyle??a.labelStyle,r.classes=mWe(e),r.curve=n.interpolateToCurve(gWe(e.curve??e.interpolate,t.defaultInterpolate,t.confCurve),Zf);let o=(r.text??``)!==``;return e.arrowheadStyle===void 0?(o||e.style!==void 0)&&(r.arrowheadStyle=`fill: #333`):r.arrowheadStyle=e.arrowheadStyle,r.labelpos=e.labelpos??(o?`c`:void 0),r.labelType=e.labelType,r.label=(e.label??r.text??``).replace(n.common.lineBreakRegex,` +`),r}function vWe(e){return Math.max(e.width??0,FUe(e))}function dC(e){let t=e?.isGroup?vWe(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:t??0,height:e.height??0,padding:e.padding}}function fC(e,t,n=1e-6){return Math.abs(e-t)1?e[1]:n,centerApprox:r}}{let n=e[e.length-1],r=yWe(n,t);return{candidate:r&&e.length>1?e[e.length-2]:n,centerApprox:r}}}function xWe(e,t,n){n&&(t===`start`?e.length>0&&e.shift():e.length>0&&e.pop())}function SWe(e,t,n){let r=n===`start`?1:-1,i=n===`start`?0:e.length-1,a=i;for(;i>=0&&i=e.length)return!1;let o=e[i],s=e[i-r],l=o.x-s.x,u=o.y-s.y,d=l===0?1/0:(t.x+Math.sign(l)*t.width/2-s.x)/l,f=u===0?1/0:(t.y+Math.sign(u)*t.height/2-s.y)/u,p=Math.min(d,f),m={x:s.x+p*l,y:s.y+p*u};return n===`start`?e.splice(0,i,m):e.splice(i+1,e.length-i-1,m),!0}function CWe(e,t,n,r){let i=-1;for(let[t,r]of e.entries())if(hC(n,r)){i=t;break}if(i!==-1){let a=e[i],o=e[0],s=bC(t,n,a,o);VWe(e,`start`,s),r.debug(`UIO cutter2: start-only intersection applied`,{startIntersection:s})}}function wWe(e,t,n,r){let i=-1;for(let t=e.length-1;t>=0;t--)if(hC(n,e[t])){i=t;break}if(i!==-1){let a=e[i],o=e[e.length-1],s=bC(t,n,a,o);VWe(e,`end`,s),r.debug(`UIO cutter2: end-only intersection applied`,{endIntersection:s})}}function TWe(e,t,n,r,i){if(e?.isGroup)return null;let a=n[r],o=n[r+i];return!a||!o?null:BWe(e,t,a,o)}function EWe(e,t,n,r){let i=dC(e),a=dC(t);if(n.length===0)return[];let o=[...n],s=o[0],l=o[o.length-1];r.debug(`PPP cutter2: bounds`,{startBounds:i,endBounds:a}),r.debug(`PPP cutter2: original points`,n);let u=-1;for(let[e,t]of o.entries())u===-1&&hC(i,t)&&(u=e);if(u!==-1){let t=o[u],n=TWe(e,i,o,u,1)??bC(e,i,t,s);r.debug(`UIO cutter2: start intersection`,n),VWe(o,`start`,n)}let d=null,f=-1;for(let e=o.length-1;e>=0;e--)if(hC(a,o[e])){d=o[e],f=e;break}if(!d&&o.length>1&&(d=o[o.length-2],f=o.length-2),d){let e=TWe(t,a,o,f,-1)??bC(t,a,d,l);r.debug(`UIO cutter2: end intersection`,{endIntersection:e,outsideIndexForEnd:f}),VWe(o,`end`,e)}if(o.length>1){let e=o[o.length-1],t=o[o.length-2],n=Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2);n<2&&(r.debug(`UIO cutter2: trimming tail point (too close)`,{distance:n,lastPoint:e,secondLastPoint:t}),o.pop())}return r.debug(`UIO cutter2: final points`,o),o}var DWe,OWe,kWe,AWe,jWe,MWe,NWe,PWe,pC,FWe,mC,IWe,hC,LWe,RWe,gC,_C,vC,yC,zWe,BWe,bC,VWe,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,HWe,UWe,WWe,GWe,KWe,qWe,JWe,jC,MC,NC,PC,FC,YWe,IC=o((()=>{Ov(),EUe(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),Dp(),DWe=d(DUe(),1),OWe=N((e,t,{parentById:n})=>{let r=new Set,i=e;if(e===t)return n[e]||`root`;for(;i;){if(r.add(i),i===t)return i;i=n[i]}for(i=t;i;){if(r.has(i))return i;i=n[i]}return`root`},`findCommonAncestor`),kWe=`root`,N(kUe,`childOnPath`),N(AUe,`findSubgraphFeedbackEdges`),AWe=6,N(jUe,`applyElkLineJumps`),jWe={},MWe={},NWe={},PWe={},pC=1,FWe=10,mC=N((e,t,n=.5)=>{let r=e.width/2,i=e.height/2,a=e.x-r,o=e.x+r,s=e.y-i,l=e.y+i,u=Math.abs(t.x-a)<=n&&t.y>=s-n&&t.y<=l+n,d=Math.abs(t.x-o)<=n&&t.y>=s-n&&t.y<=l+n,f=Math.abs(t.y-s)<=n&&t.x>=a-n&&t.x<=o+n,p=Math.abs(t.y-l)<=n&&t.x>=a-n&&t.x<=o+n;return u||d||f||p},`onBorder`),IWe=N((e,t,n)=>{let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.xMath.abs(r-t.x)*l){let e=n.y{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),LWe=N((e,t,n=FWe)=>{let r=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y),a=e.width/2,o=e.height/2;if(Math.abs(r-a)0)return{x:e.x+r/a*(a+n),y:e.y+i/a*(a+n)}}return t},`ensureTrulyOutside`),RWe=N((e,t,n)=>{let r=Math.abs(t.x-e.x){if(!e?.intersect)return null;let r=e.intersect(n);return!r||n.xt.x||n.x>t.x&&r.xIWe(e,t,RWe(e,t,n)),`fallbackIntersection`),vC=20,yC=1e-6,zWe=N((e,t,n)=>{let r=e.intersect?.(n);return r?Math.hypot(n.x-t.x,n.y-t.y)<=Math.hypot(r.x-t.x,r.y-t.y)+1e-9:!1},`insideOutline`),BWe=N((e,t,n,r)=>{if(!e?.intersect)return null;let i=r.x-n.x,a=r.y-n.y;if(i===0&&a===0||Math.abs(i)>yC&&Math.abs(a)>yC)return null;let o={x:t.x,y:t.y},s=Math.abs(i)>Math.abs(a),l=N(e=>s?{x:e,y:n.y}:{x:n.x,y:e},`along`),u=s?o.x:o.y,d=s?n.x:n.y;if(!zWe(e,o,l(u)))return null;if(zWe(e,o,l(d)))return{...n};for(let t=0;t{let i=LWe(t,n);return gC(e,t,i)??_C(t,i,r)},`computeNodeIntersection`),VWe=N((e,t,n,r=.1)=>{if(n&&e.length!==0){if(t===`start`)e.length>0&&Math.abs(e[0].x-n.x)0&&Math.abs(e[t].x-n.x)typeof e==`string`?Math.max(iv[e]??0,nNe[e]??0):0,`markerPathOffset`),CC={arrow_open:[`none`,`none`],arrow_cross:[`none`,`arrow_cross`],double_arrow_cross:[`arrow_cross`,`arrow_cross`],arrow_point:[`none`,`arrow_point`],double_arrow_point:[`arrow_point`,`arrow_point`],arrow_circle:[`none`,`arrow_circle`],double_arrow_circle:[`arrow_circle`,`arrow_circle`]},wC=12,TC=`[top=${wC},left=${wC},bottom=${wC},right=${wC}]`,EC=24,DC=24,OC=50,kC=15,AC=10,HWe={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":`1.6`,"elk.expandNodes":`true`,"elk.rectpacking.trybox":`true`,"elk.rectpacking.packing.compaction.rowHeightReevaluation":`true`,"elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":`EQUAL_BETWEEN_STRUCTURES`,"elk.rectpacking.widthApproximation.strategy":`SCANLINE`},UWe=[`nodeSize.constraints`,`nodeSize.minimum`,`elk.algorithm`,`elk.aspectRatio`,`elk.contentAlignment`,`elk.expandNodes`,`elk.padding`,...Object.keys(HWe)],N(MUe,`clearContainerAlgorithmOptions`),WWe=new Set([`elk.layered`,`elk.box`,`elk.rectpacking`,`elk.stress`,`elk.force`,`elk.mrtree`,`elk.radial`,`elk.sporeOverlap`]),N(NUe,`resolveContainerAlgorithm`),N(PUe,`dir2ElkDirection`),N(FUe,`groupTitleWidth`),N(IUe,`groupTitleSizeOptions`),N(LUe,`buildSubgraphLayoutOptions`),N(RUe,`findCyclicEntryNodes`),N(zUe,`applyCyclicEntryConstraint`),N(RS,`prepareLayoutForElk`),N(zS,`runElkLayoutCore`),N(BUe,`buildElkGraphFromLayoutData`),N(BS,`reverseSubgraphFeedbackEdges`),GWe=OS({afterPaint:jUe,prepareLayout:RS,measureLayout:N((e,t)=>kS(e,t,{unwrapGroupLabels:!0}),`measureLayout`),runLayoutCore:zS,paintOptions:{skipIntersect:!0}}),N(VUe,`syncHostConfig`),N(HUe,`orderNodesForElkPaint`),N(UUe,`getGroupDepth`),N(VS,`getElkLayoutContext`),KWe={default:{layering:`NETWORK_SIMPLEX`,placement:`BRANDES_KOEPF`,containerPlacement:`BRANDES_KOEPF`,alignment:`BALANCED`,cycleBreaking:`DEPTH_FIRST`},legacy:{layering:`NETWORK_SIMPLEX`,placement:`BRANDES_KOEPF`,containerPlacement:`BRANDES_KOEPF`,alignment:`NONE`,cycleBreaking:`GREEDY`},modelOrder:{layering:`NETWORK_SIMPLEX`,placement:`NETWORK_SIMPLEX`,containerPlacement:`BRANDES_KOEPF`,alignment:`NONE`,cycleBreaking:`GREEDY_MODEL_ORDER`},depthFirst:{layering:`NETWORK_SIMPLEX`,placement:`NETWORK_SIMPLEX`,containerPlacement:`BRANDES_KOEPF`,alignment:`NONE`,cycleBreaking:`DEPTH_FIRST`}},N(HS,`resolveElkPreset`),N(WUe,`createRootElkGraph`),N(GUe,`addSubGraphs`),N(KUe,`addVertices`),N(US,`addVertex`),N(qUe,`createElkNode`),N(WS,`getMeasuredLabelData`),N(JUe,`addEdgesToElkGraph`),qWe=6,N(GS,`terminalElkLabels`),N(KS,`getEdgeStartEndPoint`),N(qS,`configureSubgraphNodes`),N(YUe,`configureCrossHierarchyEdges`),N(JS,`setIncludeChildrenPolicy`),N(YS,`runElkLayout`),N(XUe,`applyElkLayoutResult`),N(XS,`collectDescendantIds`),N(ZS,`internalEdgePoints`),N(QS,`evenGroupFrames`),N($S,`applyElkNodePositions`),JWe=16,jC=30,MC=.01,N(eC,`axisOf`),N(ZUe,`straightenTerminalJogsWithRuns`),N(QUe,`straightenFront`),N($Ue,`segmentsCrossStrict`),N(eWe,`crossingCount`),N(tWe,`paramOnSegment`),N(nWe,`pointAtParam`),N(rWe,`projectLabelOntoStraightenedRun`),N(iWe,`segmentHitsBox`),NC=N((e,t)=>({x1:e.x-t.width/2,y1:e.y-t.height/2,x2:e.x+t.width/2,y2:e.y+t.height/2}),`labelBox`),N(tC,`straightenEdgeTerminals`),N(nC,`applyElkEdgeLayout`),PC=4,N(rC,`separateOppositeEdgeLabels`),FC=N((e,t)=>e.x1{ZWe=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return XWe(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&XWe(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,LC)),n=n._prev;return`[`+e.join(`, `)+`]`}}}));function QWe(e,t){if(e.nodeCount()<=1)return[];var n=tGe(e,t||nGe);return Fb(qx($We(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function $We(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)eGe(e,t,n,o);for(;o=i.dequeue();)eGe(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(eGe(e,t,n,o,!0));break}}}return r}function eGe(e,t,n,r,i){var a=i?[]:void 0;return Vx(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,zC(t,n,s)}),Vx(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,zC(t,n,o)}),e.removeNode(r.v),a}function tGe(e,t){var n=new bS,r=0,i=0;Vx(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),Vx(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=fS(i+r+3).map(function(){return new ZWe}),o=r+1;return Vx(n.nodes(),function(e){zC(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function zC(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var nGe,rGe=o((()=>{gS(),xS(),RC(),nGe=_y(1)}));function BC(e){Vx(e.graph().acyclicer===`greedy`?QWe(e,t(e)):iGe(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,zHe(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function iGe(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,Vx(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return Vx(e.nodes(),i),t}function aGe(e){Vx(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}var oGe=o((()=>{gS(),rGe()}));function VC(e,t,n,r){var i;do i=zHe(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function sGe(e){var t=new bS().setGraph(e.graph());return Vx(e.nodes(),function(n){t.setNode(n,e.node(n))}),Vx(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function cGe(e){var t=new bS({multigraph:e.isMultigraph()}).setGraph(e.graph());return Vx(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),Vx(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function HC(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=s*i/a,u=s):(i<0&&(o=-o),l=o,u=o*a/i),{x:n+l,y:r+u}}function UC(e){var t=qx(fS(G(e)+1),function(){return[]});return Vx(e.nodes(),function(n){var r=e.node(n),i=r.rank;Qx(i)||(t[i][r.order]=n)}),t}function lGe(e){var t=oS(qx(e.nodes(),function(t){return e.node(t).rank}));Vx(e.nodes(),function(n){var r=e.node(n);DVe(r,`rank`)&&(r.rank-=t)})}function uGe(e){var t=oS(qx(e.nodes(),function(t){return e.node(t).rank})),n=[];Vx(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;Vx(n,function(t,n){Qx(t)&&n%i!==0?--r:r&&Vx(t,function(t){e.node(t).rank+=r})})}function dGe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),VC(e,`border`,i,t)}function G(e){return iS(qx(e.nodes(),function(t){var n=e.node(t).rank;if(!Qx(n))return n}))}function fGe(e,t){var n={lhs:[],rhs:[]};return Vx(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function pGe(e,t){var n=KBe();try{return t()}finally{console.log(e+` time: `+(KBe()-n)+`ms`)}}function mGe(e,t){return t()}var WC=o((()=>{gS(),xS()}));function GC(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&Vx(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a{gS(),WC()}));function JC(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&gGe(e)}function hGe(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&vGe(e),(t===`lr`||t===`rl`)&&(bGe(e),gGe(e))}function gGe(e){Vx(e.nodes(),function(t){_Ge(e.node(t))}),Vx(e.edges(),function(t){_Ge(e.edge(t))})}function _Ge(e){var t=e.width;e.width=e.height,e.height=t}function vGe(e){Vx(e.nodes(),function(t){yGe(e.node(t))}),Vx(e.edges(),function(t){var n=e.edge(t);Vx(n.points,yGe),Object.prototype.hasOwnProperty.call(n,`y`)&&yGe(n)})}function yGe(e){e.y=-e.y}function bGe(e){Vx(e.nodes(),function(t){xGe(e.node(t))}),Vx(e.edges(),function(t){var n=e.edge(t);Vx(n.points,xGe),Object.prototype.hasOwnProperty.call(n,`x`)&&xGe(n)})}function xGe(e){var t=e.x;e.x=e.y,e.y=t}var SGe=o((()=>{gS()}));function CGe(e){e.graph().dummyChains=[],Vx(e.edges(),function(t){wGe(e,t)})}function wGe(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),l=s.labelRank;if(a!==r+1){e.removeEdge(t);var u=void 0,d,f=0;for(++r;r{gS(),WC()}));function DGe(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=oS(qx(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}Vx(e.sources(),n)}function YC(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var OGe=o((()=>{gS()}));function XC(e){var t=new bS({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;ZC(t,e){gS(),xS(),OGe()})),tw=o((()=>{gS()})),nw=o((()=>{tw()})),rw=o((()=>{gS()})),iw=o((()=>{gS()})),kGe=o((()=>{iw()}));function aw(e,t,n){Wv(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return Vx(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);ow(e,t,n===`post`,a,r,i)}),i}function ow(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),Vx(i(t),function(t){ow(e,t,n,r,i,a)}),n&&a.push(t))}var AGe=o((()=>{gS()}));function sw(e,t){return aw(e,t,`post`)}var cw=o((()=>{AGe()}));function jGe(e,t){return aw(e,t,`pre`)}var MGe=o((()=>{AGe()})),lw=o((()=>{ZHe()})),NGe=o((()=>{tw(),nw(),rw(),kGe(),cw(),MGe(),lw(),iw()}));function uw(e){e=sGe(e),DGe(e);var t=XC(e);pw(t),PGe(t,e);for(var n,r;n=IGe(t);)r=LGe(t,e,n),RGe(t,e,n,r)}function PGe(e,t){var n=sw(e,e.nodes());n=n.slice(0,n.length-1),Vx(n,function(n){dw(e,t,n)})}function dw(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=fw(e,t,n)}function fw(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,Vx(t.nodeEdges(n),function(a){var s=a.v===n,l=s?a.w:a.v;if(l!==r){var u=s===i,d=t.edge(a).weight;if(o+=u?d:-d,BGe(e,n,l)){var f=e.edge(n,l).cutvalue;o+=u?-f:f}}}),o}function pw(e,t){arguments.length<2&&(t=e.nodes()[0]),FGe(e,{},1,t)}function FGe(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,Vx(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=FGe(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function IGe(e){return Gx(e.edges(),function(t){return e.edge(t).cutvalue<0})}function LGe(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,l=!1;return a.lim>o.lim&&(s=o,l=!0),cS(Hx(t.edges(),function(t){return l===mw(e,e.node(t.v),s)&&l!==mw(e,e.node(t.w),s)}),function(e){return YC(t,e)})}function RGe(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),pw(e),PGe(e,t),zGe(e,t)}function zGe(e,t){var n=jGe(e,Gx(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),Vx(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function BGe(e,t,n){return e.hasEdge(t,n)}function mw(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var VGe=o((()=>{gS(),NGe(),WC(),ew(),OGe(),uw.initLowLimValues=pw,uw.initCutValues=PGe,uw.calcCutValue=fw,uw.leaveEdge=IGe,uw.enterEdge=LGe,uw.exchangeEdges=RGe}));function HGe(e){switch(e.graph().ranker){case`network-simplex`:WGe(e);break;case`tight-tree`:UGe(e);break;case`longest-path`:GGe(e);break;default:WGe(e)}}function UGe(e){DGe(e),XC(e)}function WGe(e){uw(e)}var GGe,KGe=o((()=>{ew(),VGe(),OGe(),GGe=DGe}));function qGe(e){var t=VC(e,`root`,{},`_root`),n=hw(e),r=iS(Zx(n))-1,i=2*r+1;e.graph().nestingRoot=t,Vx(e.edges(),function(t){e.edge(t).minlen*=i});var a=YGe(e)+1;Vx(e.children(),function(o){JGe(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function JGe(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var l=dGe(e,`_bt`),u=dGe(e,`_bb`),d=e.node(o);e.setParent(l,o),d.borderTop=l,e.setParent(u,o),d.borderBottom=u,Vx(s,function(s){JGe(e,t,n,r,i,a,s);var d=e.node(s),f=d.borderTop?d.borderTop:s,p=d.borderBottom?d.borderBottom:s,m=d.borderTop?r:2*r,h=f===p?i-a[o]+1:1;e.setEdge(l,f,{weight:m,minlen:h,nestingEdge:!0}),e.setEdge(p,u,{weight:m,minlen:h,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,l,{weight:0,minlen:i+a[o]})}function hw(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&Vx(a,function(e){n(e,i+1)}),t[r]=i}return Vx(e.children(),function(e){n(e,1)}),t}function YGe(e){return pS(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function XGe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Vx(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}var gw=o((()=>{gS(),WC()}));function _w(e,t,n){var r={},i;Vx(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}var vw=o((()=>{gS()}));function ZGe(e,t,n){var r=yw(e),i=new bS({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return Vx(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),Vx(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=Qx(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function yw(e){for(var t;e.hasNode(t=zHe(`_root`)););return t}var bw=o((()=>{gS(),xS()}));function QGe(e,t){for(var n=0,r=1;r0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;l+=e.weight*n})),l}var eKe=o((()=>{gS()}));function tKe(e){var t={},n=Hx(e.nodes(),function(t){return!e.children(t).length}),r=iS(qx(n,function(t){return e.node(t).rank})),i=qx(fS(r+1),function(){return[]});function a(n){DVe(t,n)||(t[n]=!0,i[e.node(n).rank].push(n),Vx(e.successors(n),a))}return Vx(mS(n,function(t){return e.node(t).rank}),a),i}var xw=o((()=>{gS()}));function nKe(e,t){return qx(t,function(t){var n=e.inEdges(t);if(n.length){var r=pS(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}var rKe=o((()=>{gS()}));function Sw(e,t){var n={};return Vx(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};Qx(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),Vx(t.edges(),function(e){var t=n[e.v],r=n[e.w];!Qx(t)&&!Qx(r)&&(r.indegree++,t.out.push(n[e.w]))}),iKe(Hx(n,function(e){return!e.indegree}))}function iKe(e){var t=[];function n(e){return function(t){t.merged||(Qx(t.barycenter)||Qx(e.barycenter)||t.barycenter>=e.barycenter)&&aKe(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),Vx(i.in.reverse(),n(i)),Vx(i.out,r(i))}return qx(Hx(t,function(e){return!e.merged}),function(e){return xHe(e,[`vs`,`i`,`barycenter`,`weight`])})}function aKe(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}var oKe=o((()=>{gS()}));function sKe(e,t){var n=fGe(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=mS(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,l=0;r.sort(Cw(!!t)),l=cKe(a,i,l),Vx(r,function(e){l+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,l=cKe(a,i,l)});var u={vs:Fb(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function cKe(e,t,n){for(var r;t.length&&(r=Bx(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function Cw(e){return function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i}}var lKe=o((()=>{gS(),WC()}));function uKe(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,l={};o&&(i=Hx(i,function(e){return e!==o&&e!==s}));var u=nKe(e,i);Vx(u,function(t){if(e.children(t.v).length){var i=uKe(e,t.v,n,r);l[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&fKe(t,i)}});var d=Sw(u,n);dKe(d,l);var f=sKe(d,r);if(o&&(f.vs=Fb([o,f.vs,s]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(f,`barycenter`)||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+m.order)/(f.weight+2),f.weight+=2}return f}function dKe(e,t){Vx(e,function(e){e.vs=Fb(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function fKe(e,t){Qx(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var pKe=o((()=>{gS(),rKe(),oKe(),lKe()}));function mKe(e){var t=G(e),n=hKe(e,fS(1,t+1),`inEdges`),r=hKe(e,fS(t-1,-1,-1),`outEdges`),i=tKe(e);_Ke(e,i);for(var a=1/0,o,s=0,l=0;l<4;++s,++l){gKe(s%2?n:r,s%4>=2),i=UC(e);var u=QGe(e,i);u{gS(),xS(),WC(),vw(),bw(),eKe(),xw(),pKe()}));function yKe(e){var t=xKe(e);Vx(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=bKe(e,t,i.v,i.w),o=a.path,s=a.lca,l=0,u=o[l],d=!0;n!==i.w;){if(r=e.node(n),d){for(;(u=o[l])!==s&&e.node(u).maxRanko||s>t[l].lim));for(u=l,l=r;(l=e.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function xKe(e){var t={},n=0;function r(i){var a=n;Vx(e.children(i),r),t[i]={low:a,lim:n++}}return Vx(e.children(),r),t}var SKe=o((()=>{gS()}));function CKe(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=Bx(r);return Vx(r,function(t,l){var u=TKe(e,t),d=u?e.node(u).order:o;(u||t===s)&&(Vx(r.slice(a,l+1),function(t){Vx(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(oo)&&EKe(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return Vx(n,function(s,l){if(e.node(s).dummy===`border`){var u=e.predecessors(s);u.length&&(a=e.node(u[0]).order,r(n,o,l,i,a),o=l,i=a)}r(n,o,n.length,a,t.length)}),n}return pS(t,i),n}function TKe(e,t){if(e.node(t).dummy)return Gx(e.predecessors(t),function(t){return e.node(t).dummy})}function EKe(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function DKe(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function ww(e,t,n,r){var i={},a={},o={};return Vx(t,function(e){Vx(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),Vx(t,function(e){var t=-1;Vx(e,function(e){var s=r(e);if(s.length){s=mS(s,function(e){return o[e]});for(var l=(s.length-1)/2,u=Math.floor(l),d=Math.ceil(l);u<=d;++u){var f=s[u];a[e]===e&&t{gS(),xS(),WC()}));function LKe(e){e=cGe(e),RKe(e),Yx(NKe(e),function(t,n){e.node(n).x=t})}function RKe(e){var t=UC(e),n=e.graph().ranksep,r=0;Vx(t,function(t){var i=iS(qx(t,function(t){return e.node(t).height}));Vx(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}var zKe=o((()=>{gS(),WC(),IKe()}));function BKe(e,t){var n=t&&t.debugTiming?pGe:mGe;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>UKe(e));n(` runLayout`,()=>VKe(t,n)),n(` updateInputGraph`,()=>HKe(e,t))})}function VKe(e,t){t(` makeSpaceForEdgeLabels`,()=>WKe(e)),t(` removeSelfEdges`,()=>Tw(e)),t(` acyclic`,()=>BC(e)),t(` nestingGraph.run`,()=>qGe(e)),t(` rank`,()=>HGe(cGe(e))),t(` injectEdgeLabelProxies`,()=>GKe(e)),t(` removeEmptyRanks`,()=>uGe(e)),t(` nestingGraph.cleanup`,()=>XGe(e)),t(` normalizeRanks`,()=>lGe(e)),t(` assignRankMinMax`,()=>KKe(e)),t(` removeEdgeLabelProxies`,()=>qKe(e)),t(` normalize.run`,()=>CGe(e)),t(` parentDummyChains`,()=>yKe(e)),t(` addBorderSegments`,()=>GC(e)),t(` order`,()=>mKe(e)),t(` insertSelfEdges`,()=>$Ke(e)),t(` adjustCoordinateSystem`,()=>JC(e)),t(` position`,()=>LKe(e)),t(` positionSelfEdges`,()=>Ew(e)),t(` removeBorderNodes`,()=>QKe(e)),t(` normalize.undo`,()=>TGe(e)),t(` fixupEdgeLabelCoords`,()=>XKe(e)),t(` undoCoordinateSystem`,()=>hGe(e)),t(` translateGraph`,()=>JKe(e)),t(` assignNodeIntersects`,()=>YKe(e)),t(` reversePoints`,()=>ZKe(e)),t(` acyclic.undo`,()=>aGe(e))}function HKe(e,t){Vx(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),Vx(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function UKe(e){var t=new bS({multigraph:!0,compound:!0}),n=eqe(e.graph());return t.setGraph(aS({},Ow,Dw(n,tqe),xHe(n,kw))),Vx(e.nodes(),function(n){var r=eqe(e.node(n));t.setNode(n,JBe(Dw(r,nqe),rqe)),t.setParent(n,e.parent(n))}),Vx(e.edges(),function(n){var r=eqe(e.edge(n));t.setEdge(n,aS({},aqe,Dw(r,iqe),xHe(r,oqe)))}),t}function WKe(e){var t=e.graph();t.ranksep/=2,Vx(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function GKe(e){Vx(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);VC(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function KKe(e){var t=0;Vx(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=iS(t,r.maxRank))}),e.graph().maxRank=t}function qKe(e){Vx(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function JKe(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function l(e){var a=e.x,o=e.y,s=e.width,l=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}Vx(e.nodes(),function(t){l(e.node(t))}),Vx(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=o,r-=s,Vx(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),Vx(e.edges(),function(n){var i=e.edge(n);Vx(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function YKe(e){Vx(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(HC(r,a)),n.points.push(HC(i,o))})}function XKe(e){Vx(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset}})}function ZKe(e){Vx(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function QKe(e){Vx(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(Bx(n.borderLeft)),o=e.node(Bx(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),Vx(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Tw(e){Vx(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function $Ke(e){Vx(UC(e),function(t){var n=0;Vx(t,function(t,r){var i=e.node(t);i.order=r+n,Vx(i.selfEdges,function(t){VC(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Ew(e){Vx(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Dw(e,t){return tS(xHe(e,t),Number)}function eqe(e){var t={};return Vx(e,function(e,n){t[n.toLowerCase()]=e}),t}var tqe,Ow,kw,nqe,rqe,iqe,aqe,oqe,sqe=o((()=>{gS(),xS(),qC(),SGe(),oGe(),EGe(),KGe(),gw(),vKe(),SKe(),zKe(),WC(),tqe=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],Ow={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},kw=[`acyclicer`,`ranker`,`rankdir`,`align`],nqe=[`width`,`height`],rqe={width:0,height:0},iqe=[`minlen`,`weight`,`width`,`height`,`labeloffset`],aqe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},oqe=[`labelpos`]})),cqe=o((()=>{oGe(),sqe(),EGe(),KGe()})),lqe=l({applyDagreLayoutResult:()=>Pw,getEdgesToRender:()=>Mw,measureDagreLayout:()=>Rw,prepareLayoutForDagre:()=>Lw,render:()=>yqe,runDagreLayoutCore:()=>zw}),Aw,uqe,dqe,jw,fqe,pqe,mqe,Mw,hqe,gqe,Nw,_qe,vqe,Pw,Fw,Iw,Lw,Rw,zw,yqe,bqe=o((()=>{EUe(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),cqe(),xS(),Aw=N((e,t,n)=>Math.max(t,Math.min(n,e)),`clamp`),uqe=N((e=`TB`)=>{switch(e){case`BT`:return`bottom`;case`LR`:return`right`;case`RL`:return`left`;default:return`top`}},`getDefaultSelfLoopSide`),dqe=N(e=>e===`flowchart`||e===`flowchart-v2`||e===`stateDiagram`||e===`er`||e===`classDiagram`,`shouldMergeSelfLoopSegments`),jw=[`x`,`y`,`width`,`height`,`labelBBox`,`intersect`,`calcIntersect`,`diff`,`clusterNode`],fqe=N((e,t,n,r,i)=>{let a=[],o=new Set;if(n.forEach(({start:e,end:t})=>{e!==r&&o.add(e),t!==r&&o.add(t)}),o.forEach(t=>{let n=e.node(t);typeof n?.x==`number`&&typeof n?.y==`number`&&a.push(n)}),a.length===0&&n.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{typeof e?.x==`number`&&typeof e?.y==`number`&&a.push(e)})}),a.length===0)return uqe(i);let s=a.reduce((e,t)=>({x:e.x+t.x/a.length,y:e.y+t.y/a.length}),{x:0,y:0}),l=s.x-t.x,u=s.y-t.y;return Math.abs(l)>Math.abs(u)?l>0?`right`:`left`:Math.abs(u)>0?u>0?`bottom`:`top`:uqe(i)},`getSelfLoopSide`),pqe=N((e,t=`top`,n=0,r=0)=>{let i=e.x,a=e.y-n,o=e.width/2,s=e.height/2,l=Math.max(36,Math.min(100,e.width*.8)),u=Aw(Math.max(r,e.width*.35),36,l),d=Aw(Math.min(e.width,e.height)*.45,24,48);switch(t){case`bottom`:{let e=a+s;return[{x:i-u/2,y:e},{x:i-u/2,y:e+d},{x:i+u/2,y:e+d},{x:i+u/2,y:e}]}case`right`:{let e=i+o;return[{x:e,y:a-u/2},{x:e+d,y:a-u/2},{x:e+d,y:a+u/2},{x:e,y:a+u/2}]}case`left`:{let e=i-o;return[{x:e,y:a-u/2},{x:e-d,y:a-u/2},{x:e-d,y:a+u/2},{x:e,y:a+u/2}]}default:{let e=a-s;return[{x:i-u/2,y:e},{x:i-u/2,y:e-d},{x:i+u/2,y:e-d},{x:i+u/2,y:e}]}}},`getSelfLoopPoints`),mqe=N((e,t,n=`top`,r=0,i={})=>{let a=e.x,o=e.y-r,s=i.width??0,l=i.height??0;switch(n){case`bottom`:return{x:a,y:Math.max(...t.map(e=>e.y))+l/2+4};case`right`:return{x:Math.max(...t.map(e=>e.x))+s/2+4,y:o};case`left`:return{x:Math.min(...t.map(e=>e.x))-s/2-4,y:o};default:return{x:a,y:Math.min(...t.map(e=>e.y))-l/2-4}}},`getSelfLoopLabelPosition`),Mw=N((e,t=0,{mergeSelfLoops:n=!0}={})=>{let r=new Map,i=[],a=e.graph()?.rankdir;return e.edges().forEach(t=>{let a=e.edge(t);if(n&&a.selfLoop){let e=a.selfLoop.id;r.has(e)||r.set(e,[]),r.get(e).push({edge:a,start:t.v,end:t.w})}else i.push({edge:a,start:t.v,end:t.w})}),r.forEach(n=>{if(n.length!==3){n.forEach(e=>i.push(e));return}n.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[r,o,s]=n,l=r.edge.originalEdge??o.edge.originalEdge??s.edge.originalEdge??o.edge,u=e.node(l.start);if(!u){n.forEach(e=>i.push(e));return}let d={width:o.edge.width,height:o.edge.height},f=fqe(e,u,n,l.start,a),p=pqe(u,f,t,d.width??0),m=mqe(u,p,f,t,d),h={...o.edge,...l,id:l.id,points:p,start:l.start,end:l.end,x:m.x,y:m.y,width:d.width,height:d.height,labelStyle:o.edge.labelStyle,fromCluster:r.edge.fromCluster??o.edge.fromCluster??s.edge.fromCluster,toCluster:r.edge.toCluster??o.edge.toCluster??s.edge.toCluster};delete h.selfLoop,delete h.originalEdge,i.push({edge:h,start:h.start,end:h.end})}),i},`getEdgesToRender`),hqe=N(async({element:e,graph:t,diagramType:n,id:r,parentCluster:i,siteConfig:a})=>{let o=t.graph().rankdir;P.trace(`Dir in recursive render - dir:`,o);let{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f}=DS(e,{edgePathsClass:`edgePaths`});t.nodes()?P.info(`Recursive render XXX`,t.nodes()):P.info(`No nodes found for`,t),t.edges().length>0&&P.info(`Recursive edges`,t.edge(t.edges()[0]));let p=dqe(n);await Promise.all(t.nodes().map(async function(e){let s=t.node(e);if(i!==void 0){let n=JSON.parse(JSON.stringify(i.clusterData));P.trace(`Setting data for parent cluster XXX Node.id = `,e,` data=`,n.height,` -Parent cluster`,i.height),t.setNode(i.id,n),t.parent(e)||(P.trace(`Setting parent`,e,i.id),t.setParent(e,i.id,n))}if(P.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(t.node(e))),s?.clusterNode){P.info(`Cluster identified XBX`,e,s.width,t.node(e));let{ranksep:i,nodesep:o}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:i+25,nodesep:o});let l=await zw({element:d,graph:s.graph,diagramType:n,id:r,parentCluster:t.node(e),siteConfig:a}),u=l.elem;i_(s,u),s.diff=l.diff||0,P.info(`New compound node after recursive render XAX`,e,`width`,s.width,`height`,s.height),z_(u,s)}else t.children(e).length>0?(P.trace(`Cluster - the non recursive path XBX`,e,s.id,s,s.width,`Graph:`,t),P.trace(WS(s.id,t)),RS.set(s.id,{id:WS(s.id,t),node:s})):(P.trace(`Node - the non recursive path XAX`,e,d,t.node(e),o),await MS(d,t.node(e),{config:a,dir:o}))})),await N(async()=>{let e=t.edges().map(async function(e){let n=t.edge(e.v,e.w,e.name);if(P.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),P.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(t.edge(e))),P.info(`Fix`,RS,`ids:`,e.v,e.w,`Translating: `,RS.get(e.v),RS.get(e.w)),p&&n.selfLoop){if(n.selfLoop.order!==1)return;let e={...n.originalEdge,...n,id:n.selfLoop.id,startLabelLeft:n.originalEdge?.startLabelLeft??n.startLabelLeft,startLabelRight:n.originalEdge?.startLabelRight??n.startLabelRight,endLabelLeft:n.originalEdge?.endLabelLeft??n.endLabelLeft,endLabelRight:n.originalEdge?.endLabelRight??n.endLabelRight};await ov(u,e),n.width=e.width,n.height=e.height,n.labelStyle=e.labelStyle;return}await ov(u,n)});await Promise.all(e)},`processEdges`)();let{subGraphTitleTotalMargin:m}=R_(a);return{elem:f,graph:t,groups:{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f},diagramType:n,id:r,mergeSelfLoops:p,subGraphTitleTotalMargin:m}},`measureDagreGraph`),aqe=N(e=>{P.info(`############################################# XXX`),P.info(`### Layout ### XXX`),P.info(`############################################# XXX`),AKe(e)},`runDagreGraphLayout`),oqe=N((e,t,n)=>{let r=e.node(t);if(!r)return;let i={...r};return r?.clusterNode?i.y=(r.y??0)+n:e.children(t).length>0?i.height=(r.height??0)+n:i.y=(r.y??0)+n/2,i},`normalizeDagreNode`),sqe=N((e,t)=>{tqe.forEach(n=>{t[n]!==void 0&&(e[n]=t[n])})},`applyDagreNodeLayout`),cqe=N((e,t,n,r)=>({...e,start:e.start??t,end:e.end??n,points:(e.points??[]).map(e=>({...e,y:typeof e.y==`number`?e.y+r:e.y}))}),`normalizeDagreEdge`),lqe=N((e,t)=>{let{graph:n,mergeSelfLoops:r,subGraphTitleTotalMargin:i=0}=t,a=new Map(e.nodes.map(e=>[e.id,e]));uUe(n).forEach(e=>{let t=oqe(n,e,i);if(!t)return;sqe(n.node(e),t);let r=a.get(e);r&&sqe(r,t)});let o=i/2;return e.edges=iqe(n,o,{mergeSelfLoops:r}).map(({edge:e,start:t,end:n})=>cqe(e,t,n,o)),e},`applyDagreLayoutResult`),uqe=N(async({elem:e,graph:t,groups:{clusters:n,edgePaths:r},diagramType:i,id:a,mergeSelfLoops:o,subGraphTitleTotalMargin:s})=>{let l=0;await Promise.all(uUe(t).map(async function(e){let r=t.node(e);if(P.info(`Position XBX => `+e+`: (`+r.x,`,`+r.y,`) width: `,r.width,` height: `,r.height),r?.clusterNode)r.y+=s,P.info(`A tainted cluster node XBX1`,e,r.id,r.width,r.height,r.x,r.y,t.parent(e)),RS.get(r.id).node=r,B_(r);else if(t.children(e).length>0){P.info(`A pure cluster node XBX1`,e,r.id,r.x,r.y,r.width,r.height,t.parent(e)),r.height+=s,t.node(r.parentId);let i=r?.padding/2||0,a=r?.labelBBox?.height||0,o=a-i||0;P.debug(`OffsetY`,o,`labelHeight`,a,`halfPadding`,i),await q_(n,r),RS.get(r.id).node=r}else{let e=t.node(r.parentId);r.y+=s/2,P.info(`A regular node XBX1 - using the padding`,r.id,`parent`,r.parentId,r.width,r.height,r.x,r.y,`offsetY`,r.offsetY,`parent`,e,e?.offsetY,r),B_(r)}}));let u=s/2;return iqe(t,u,{mergeSelfLoops:o}).forEach(function({edge:e,start:n,end:o}){P.info(`Edge `+n+` -> `+o+`: `+JSON.stringify(e),e),e.points.forEach(e=>e.y+=u);let s=t.node(n),l=t.node(o),d=dv(r,e,RS,i,s,l,a);uNe(e,d)}),t.nodes().forEach(function(e){let n=t.node(e);P.info(e,n.type,n.diff),n.isGroup&&(l=n.diff)}),P.warn(`Returning from recursive render XAX`,e,l),{elem:e,diff:l}},`paintDagreLayoutCore`),zw=N(async e=>{let t=await Rw(e);return aqe(t.graph),await uqe(t)},`renderDagreSubgraph`),dqe=N(e=>{let t=new wS({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)}),P.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let n=e.start,r=n+`---`+n+`---1`,i=n+`---`+n+`---2`,a=t.node(n);t.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),t.setParent(r,a.parentId),t.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),t.setParent(i,a.parentId);let o=structuredClone(e),s=structuredClone(e),l=structuredClone(e),u=structuredClone(e);s.originalEdge=o,s.selfLoop={id:o.id,order:0},l.originalEdge=o,l.selfLoop={id:o.id,order:1},u.originalEdge=o,u.selfLoop={id:o.id,order:2},s.label=``,s.arrowTypeEnd=`none`,s.endLabelLeft=``,s.endLabelRight=``,s.startLabelLeft=``,s.id=n+`-cyclic-special-1`,l.startLabelRight=``,l.startLabelLeft=``,l.endLabelLeft=``,l.endLabelRight=``,l.arrowTypeStart=`none`,l.arrowTypeEnd=`none`,l.id=n+`-cyclic-special-mid`,u.label=``,u.startLabelRight=``,u.startLabelLeft=``,u.arrowTypeStart=`none`,a.isGroup&&(s.fromCluster=n,u.toCluster=n),u.id=n+`-cyclic-special-2`,u.arrowTypeStart=`none`,t.setEdge(n,r,s,n+`-cyclic-special-0`),t.setEdge(r,i,l,n+`-cyclic-special-1`),t.setEdge(i,n,u,n+`-cyclic-special-2`)}else t.setEdge(e.start,e.end,{...e},e.id)}),sUe(t),{graph:t}},`prepareLayoutForDagre`),fqe=N(async(e,{element:t,preparedLayout:n})=>{let r=n??dqe(e),i=As(),a=await Rw({element:t,graph:r.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:i});return r.measuredLayout=a,a},`measureDagreLayout`),Bw=N((e,t)=>{let n=t.preparedLayout?.measuredLayout;if(!n)throw Error(`runDagreLayoutCore requires measureDagreLayout to run first`);return aqe(n.graph),lqe(e,n),n},`runDagreLayoutCore`),Vw=NS({prepareLayout:dqe,measureLayout:fqe,runLayoutCore:Bw,paintOptions:{clusterDb:RS,getNodes:N((e,{measure:t})=>uUe(t.graph).map(e=>t.graph.node(e)).filter(Boolean),`getDagrePaintNodes`),getEdgeNode:N((e,t,{measure:n})=>e?n.graph.node(e):void 0,`getDagreEdgeNode`),skipNode:N((e,{measure:t})=>!t.graph.hasNode(e.id),`skipNode`),isCluster:N((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,`isCluster`)}})})),Hw=l({render:()=>oYe});function Uw(e,{measure:t}){let n=e.config?.swimlane?.lineHops;if(n===!1)return;let r=n===`gap`?`gap`:`arc`,i=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));TNe(t.groups.edgePaths,i,{enabled:!0,jumpRadius:6,jumpStyle:r})}function Ww(e){return Math.max(e.padding??uE,uE)}function mqe(e){let{x:t,y:n,width:r,height:i}=e,a=e.swimlaneContentTop;if(typeof t!=`number`||typeof n!=`number`||typeof r!=`number`||typeof i!=`number`||typeof a!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)||r<=0||i<=0){delete e.groupTitleRect;return}let o=n-i/2,s=Math.min(a,n+i/2),l=o+Math.min(YJe,Math.max(0,s-o));if(l<=o){delete e.groupTitleRect;return}e.groupTitleRect={left:t-r/2,right:t+r/2,top:o,bottom:l}}function hqe(e){let t=e.direction,n=e.nodes??=[];for(let n of e.nodes??[])n.isGroup&&!n.parentId&&(n.shape=`swimlane`,t&&(n.direction=t));let r=n.filter(e=>!e.isGroup&&!e.parentId);if(r.length===0)return;let i=n.find(e=>e.id===lE);i?i.isGroup&&(i.shape=`swimlane`,t&&(i.direction=t)):(i={id:lE,label:``,isGroup:!0,shape:`swimlane`,padding:20,look:e.config?.look,colorIndex:n.reduce((e,t)=>Math.max(e,t.colorIndex??-1),-1)+1,...t?{direction:t}:{}},n.push(i));for(let e of r)e.parentId=lE}function gqe(e){let t=new Map;for(let n of e.nodes??[])t.set(n.id,n);let n=[];for(let t of e.edges??[]){let e=typeof t.start==`string`?t.start:void 0,r=typeof t.end==`string`?t.end:void 0;e&&r&&(t.labelNodeId||n.push({id:t.id,src:e,dst:r,ref:t}))}let r=e.nodes??[],i=r.filter(e=>e.isGroup),a=r.filter(e=>!e.isGroup);return{nodes:[...[...i].reverse(),...a].map(e=>e.id),edges:n,layout:e,nodeById:t}}function _qe(e,t,n,r){let{layout:i}=e,a=e.nodeById,o=r?.layerGap??100,s=r?.nodeGap??40,l=0;for(let e of t.layers){let t=0;for(let r of e){let e=a.get(r);if(!e){t++;continue}e.layer=l,e.order=t;let i=n.x[r]??t*s,u=n.y[r]??l*o;e.x=i,e.y=u,t++}l++}let u=i.nodes??[],d=new Map,f=[];for(let e of u){if(!e?.isGroup)continue;e.parentId||f.push(e);let t=u.filter(t=>t.parentId===e.id),r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e of t){let t=e.x??n.x[e.id],s=e.y??n.y[e.id],l=e.width??0,u=e.height??0;t!=null&&s!=null&&(r=Math.min(r,t-l/2),i=Math.max(i,t+l/2),a=Math.min(a,s-u/2),o=Math.max(o,s+u/2))}if(r===1/0||a===1/0)e.x=e.x??0,e.y=e.y??0,e.width=e.width??0,e.height=e.height??0;else{let t=e.padding??20,n=e.parentId?t:2*Ww(e),s=t,l=Math.max(0,i-r)+n,u=Math.max(0,o-a)+s,f=(r+i)/2,p=(a+o)/2;e.x=f,e.y=p,e.width=l,e.height=u,d.set(e.id,{minX:r,maxX:i,minY:a,maxY:o})}}if(f.length>0&&d.size>0){let e=1/0,t=-1/0,n=0;for(let r of f){let i=r.padding??20;i>n&&(n=i);let a=d.get(r.id);a&&(e=Math.min(e,a.minY),t=Math.max(t,a.maxY))}if(e!==1/0&&t!==-1/0){let r=Math.max(0,t-e)+2*Math.max(n,36),i=(e+t)/2;for(let t of f)t.y=i,t.height=r,t.swimlaneContentTop=e;let a=[...f].sort((e,t)=>(e.x??0)-(t.x??0)),o=[],s=[],l=[];for(let e of a){let t=d.get(e.id);if(!t)continue;let n=Math.max(0,t.maxX-t.minX)+2*Ww(e),r=(t.minX+t.maxX)/2;o.push(e.id),s.push(r),l.push(n)}let u=o.length;if(u>0){let e=new Map;if(u===1)e.set(o[0],l[0]);else{let t=[];for(let e=0;e0&&i>0?{cx:t,cy:n,rect:iT(t,n,r,i)}:void 0}function bqe(e){if(e.isGroup)return;let t=yqe(e);if(t)return{id:String(e.id??``),cx:t.cx,cy:t.cy,rect:t.rect}}function Gw(e,t,n=dE){return Math.abs(e.x-t.x)n}function Yw(e,t,n=dE){return Kw(e,t,n)&&Math.abs(e.y-t.y)>n}function Xw(e,t,n,r){return Math.max(0,Math.min(Math.max(e,t),Math.max(n,r))-Math.max(Math.min(e,t),Math.min(n,r)))}function Zw(e,t,n=dE){return e.horizontal&&t.horizontal&&qw(e.a,t.a,n)?Xw(e.a.x,e.b.x,t.a.x,t.b.x):e.vertical&&t.vertical&&Kw(e.a,t.a,n)?Xw(e.a.y,e.b.y,t.a.y,t.b.y):0}function Qw(e,t=dE){let n=[];for(let r=0;r0?n[n.length-1]:void 0;(!e||!Gw(e,r,t))&&n.push({x:r.x,y:r.y})}return n}function xqe(e,t=dE){if(!e||e.length!==4)return;let[n,r,i,a]=e;return Jw(n,r,t)&&Yw(r,i,t)&&Jw(i,a,t)?{kind:`HVH`,p0:n,p1:r,p2:i,p3:a}:Yw(n,r,t)&&Jw(r,i,t)&&Yw(i,a,t)?{kind:`VHV`,p0:n,p1:r,p2:i,p3:a}:void 0}function tT(e,t,n,r=0){let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return a>n.left-r&&in.top-r&&ot.left+n&&e.xt.top+n&&e.y=t.right&&e.top<=t.top&&e.bottom>=t.bottom}function rT(e,t){return e.leftt.left&&e.topt.top}function Cqe(e,t){return{left:e.left-t,right:e.right+t,top:e.top-t,bottom:e.bottom+t}}function iT(e,t,n,r){return{left:e-n/2,right:e+n/2,top:t-r/2,bottom:t+r/2}}function aT(e){return yqe(e)?.rect}function oT(e,t){switch(t){case`top`:return{x:e.cx,y:e.rect.top};case`bottom`:return{x:e.cx,y:e.rect.bottom};case`left`:return{x:e.rect.left,y:e.cy};case`right`:return{x:e.rect.right,y:e.cy}}}function sT(e,t,n,r,i,a=dE){let o=t===`left`||t===`right`,s=r===`left`||r===`right`;if(o&&s){if(t===`right`&&r===`left`&&e.xn.x){if(qw(e,n,a))return[e,n];let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}if(t===r){if(qw(e,n,a))return;let r=t===`left`?Math.min(e.x,n.x)-i:Math.max(e.x,n.x)+i;return[e,{x:r,y:e.y},{x:r,y:n.y},n]}return}if(!o&&!s){if(t===r){if(Kw(e,n,a))return;let r=t===`top`?Math.min(e.y,n.y)-i:Math.max(e.y,n.y)+i;return[e,{x:e.x,y:r},{x:n.x,y:r},n]}if(!(t===`bottom`&&r===`top`&&e.yn.y))return;if(Kw(e,n,a))return[e,n];let o=(e.y+n.y)/2;return[e,{x:e.x,y:o},{x:n.x,y:o},n]}if(o&&!s){let i=t===`right`&&n.x>e.x||t===`left`&&n.xn.y;return i&&a?[e,{x:n.x,y:e.y},n]:void 0}let l=t===`bottom`&&n.y>e.y||t===`top`&&n.yn.x;return l&&u?[e,{x:e.x,y:n.y},n]:void 0}function wqe(e,t,n,r){return t===`left`||t===`right`?[e,{x:r,y:e.y},{x:r,y:n.y},n]:[e,{x:e.x,y:r},{x:n.x,y:r},n]}function Tqe(e){let t=new Map,n=[];for(let r of e){if(r.isEdgeLabel)continue;let e=bqe(r);e&&(t.set(e.id,e),n.push({id:e.id,rect:e.rect}))}return{nodeInfoById:t,realNodeRects:n}}function cT(e){let t=[],n=[];for(let r of e){let e=bqe(r);if(!e)continue;let i={id:e.id,rect:e.rect};r.isEdgeLabel?n.push(i):t.push(i)}return{realNodeRects:t,labelNodeRects:n}}function lT(e,{includeEdgeLabels:t=!0}={}){let n=[];for(let r of e){if(r.isGroup||!t&&r.isEdgeLabel)continue;let e=r.x??0,i=r.y??0,a=r.width??0,o=r.height??0;n.push({nodeId:r.id,...iT(e,i,a,o)})}return n}function Eqe(e,t,n=dE){let r=e.start,i=e.end;if(!r||!i)return;let a=t.get(r),o=t.get(i);if(a&&o)return{srcId:r,dstId:i,srcInfo:a,dstInfo:o,collinearX:Math.abs(a.cx-o.cx)h||p<_||p>v)return!1;let y=Math.abs(g-d.a.x)i:a&&s&&qw(e,n,i)?Xw(e.x,t.x,n.x,r.x)>i:!1}function pT(e,t,n,r,{epsilon:i=dE,skipDegenerateOther:a=!1}={}){for(let o of n){if(o===r||o.isLayoutOnly)continue;let n=o.points;if(!(!n||n.length<2))for(let r=0;rp+i&&hg+i&&f<_-i}function Dqe(e,t,n){let r=Math.min(t,n),i=Math.max(t,n);return e>r+dE&&e=2?t[t.length-2]:void 0,n=e&&Kw(e,r)?{x:r.x,y:i.y}:{x:i.x,y:r.y};t.push(n)}t.push(i)}let n=[];for(let e of t){let t=n[n.length-1];(!t||!Gw(t,e))&&n.push(e)}return n}function _T(e){if(e.length<3)return e;let t=[...e];for(let e=0;e<32;e++){let e=gT(t);if(t=e.points,!e.changed)break}return t}function kqe(e,t,n){let r=e;if(r.isLayoutOnly||!r.points||r.points.length=0&&i=e.length)return e;let a=i-r;if(a<0||a>=e.length)return e;let o=Aqe(e[i],e[a],t);return n?[o,...e.slice(i)]:[...e.slice(0,i+1),o]}function Mqe(e,t){for(let n of e){let e=kqe(n,t,2);if(!e)continue;let r=[...e.points];e.srcRect&&(r=jqe(r,e.srcRect,!0)),e.dstRect&&(r=jqe(r,e.dstRect,!1)),r=_T(Oqe(r)),r=Lqe(r,e.srcRect,e.dstRect),e.edge.points=_T(Oqe(r))}}function Nqe(e,t,n,r=!1){if(qw(e,t,fE)){if(t.yn.bottom+fE)return t;if(r){if(e.xn.right+fE)return{x:n.right,y:e.y}}return{x:Math.abs(t.x-n.left)<=Math.abs(t.x-n.right)?n.left:n.right,y:e.y}}if(Kw(e,t,fE)){if(t.xn.right+fE)return t;if(r){if(e.yn.bottom+fE)return{x:e.x,y:n.bottom}}let i=Math.abs(t.y-n.top)<=Math.abs(t.y-n.bottom);return{x:e.x,y:i?n.top:n.bottom}}return t}function vT(e,t,n){let r=e[t];for(let i=t+n;i>=0&&ie.lo)),n=Math.min(...e.map(e=>e.hi));if(!(t>n))return{lo:t,hi:n}}function Fqe(e,t){return t===`left`||t===`right`?yT(e.top,e.bottom):yT(e.left,e.right)}function Iqe(e,t,n){let r=e.y>=n.top-fE&&e.y<=n.bottom+fE,i=e.x>=n.left-fE&&e.x<=n.right+fE;if(qw(e,t,fE)&&r){if(Math.abs(e.x-n.left)0?Pqe(a):void 0}function CT(e,t,n,r,i){let a=ST(e,t,n,r,i);if(!a)return;let o=i?e.y:e.x,s=Math.min(a.hi,Math.max(a.lo,o));if(!(Math.abs(s-o)({...e}));for(let s=t;s>=0&&s=n.left-fE&&Math.max(e.x,t.x)<=n.right+fE,i=Math.min(e.y,t.y)>=n.top-fE&&Math.max(e.y,t.y)<=n.bottom+fE;if(Math.abs(e.y-n.top)r.bottom+fE;case`left`:return qw(t,n,fE)&&n.xr.right+fE}}function Bqe(e,t,n){if(e.length<3)return e;if(n){let n=TT(e[0],e[1],t);return n&&ET(n,e[1],e[2],t)?e.slice(1):e}let r=e.length-1,i=TT(e[r-1],e[r],t);return i&&ET(i,e[r-1],e[r-2],t)?e.slice(0,r):e}function Vqe(e,t,n){let r=e;if(t){let e=vT(r,0,1);if(e){let n=Nqe(e,r[0],t);n!==r[0]&&(r=[n,...r.slice(1)])}r=Bqe(r,t,!0)}if(n){let e=r.length-1,t=vT(r,e,-1);if(t){let i=Nqe(t,r[e],n,!0);i!==r[e]&&(r=[...r.slice(0,e),i])}r=Bqe(r,n,!1)}let i=Lqe(r,t,n);return i!==r||r.length===2?i:(t&&(r=wT(r,t,!0)),n&&(r=wT(r,n,!1)),r)}function Hqe(e,t){for(let n of e){let e=kqe(n,t,2);if(!e)continue;let r=Vqe(eT(e.points,fE),e.srcRect,e.dstRect);if(r.length<3){e.edge.points=r;continue}let i=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];e.edge.points=i}}function Uqe(e){return new Map(e.map(e=>[e.id,e]))}function DT(e,t){let n=e.parentId,r=null;for(;n;){let e=t.get(n);if(!e?.isGroup)break;r=e.id,n=e.parentId}return r}function Wqe(e,t){let n=0,r=e.parentId;for(;r;){let e=t.get(r);if(!e?.isGroup)break;n++,r=e.parentId}return n}function Gqe(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(let a of e){let e=a.x,o=a.y;if(typeof e!=`number`||typeof o!=`number`)continue;let s=a.width??0,l=a.height??0;t=Math.min(t,e-s/2),n=Math.max(n,e+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}return t===1/0||r===1/0?null:{minX:t,maxX:n,minY:r,maxY:i}}function Kqe(e,t){let n=e.padding??20;e.x=(t.minX+t.maxX)/2,e.y=(t.minY+t.maxY)/2,e.width=Math.max(0,t.maxX-t.minX)+n,e.height=Math.max(0,t.maxY-t.minY)+n}function OT(e){let t=Uqe(e),n=e.filter(e=>e.isGroup&&e.parentId).sort((e,n)=>Wqe(n,t)-Wqe(e,t));for(let t of n){let n=Gqe(e.filter(e=>e.parentId===t.id));n&&Kqe(t,n)}}function kT(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=-1/0;for(let e of i){let n=e[t];typeof n==`number`&&(a=Math.min(a,n),o=Math.max(o,n))}if(!Number.isFinite(a)||!Number.isFinite(o))return!1;let s=N(e=>a+o-e,`mirror`);for(let e of n){let n=e[t];typeof n==`number`&&(e[t]=s(n));let r=e.groupTitleRect;r&&(e.groupTitleRect=t===`x`?{...r,left:s(r.right),right:s(r.left)}:{...r,top:s(r.bottom),bottom:s(r.top)})}for(let e of r)for(let n of e.points??[])n[t]=s(n[t]);return!0}function qqe(e){return!(e.nodes??[]).some(e=>!e.isGroup)||kT(e,`y`)}function AT(e,t=`LR`){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=1/0;for(let e of i){let t=e.x??0,n=e.y??0;t0?Math.max(1,u/d):1;for(let e of i){let t=e.x??0,n=((e.y??0)-o)*f+36,r=t-a;e.x=n,e.y=r}for(let e of r)if(e.points)for(let t of e.points){let e=t.x,n=(t.y-o)*f+36,r=e-a;t.x=n,t.y=r}OT(n);let p=n.filter(e=>e.isGroup&&!e.parentId);if(p.length===0)return t===`RL`&&kT(e,`x`),!0;let m=Uqe(n),h=new Map;for(let e of n){if(e.isGroup)continue;let t=DT(e,m);if(!t)continue;let n=h.get(t)??[];n.push(e),h.set(t,n)}let g=0;for(let e of p){let t=e.padding??0;t>g&&(g=t)}let _=[],v=1/0,y=-1/0;for(let e of p){let t=Gqe(h.get(e.id)??[]);t&&(v=Math.min(v,t.minX),y=Math.max(y,t.maxX),_.push({lane:e,contentTop:t.minY,contentBottom:t.maxY,centerY:(t.minY+t.maxY)/2}))}if(v===1/0||y===-1/0)return!0;let b=Math.max(0,y-v)+2*Math.max(g,10),x=36+b,S=(v+y)/2-b/2-36,C=S+x/2,w=Math.max(g,36);_.sort((e,t)=>e.centerY-t.centerY);for(let e=0;e<_.length;e++){let t=_[e],n,r;if(n=e===0?t.contentTop-w:(_[e-1].contentBottom+t.contentTop)/2,e===_.length-1)r=t.contentBottom+w;else{let n=_[e+1];r=(t.contentBottom+n.contentTop)/2}let i=Math.max(0,r-n),a=(n+r)/2;t.lane.x=C,t.lane.y=a,t.lane.width=x,t.lane.height=i,t.lane.swimlaneContentTop=t.contentTop,t.lane.groupTitleRect={left:S,right:S+36,top:n,bottom:r}}return t===`RL`&&kT(e,`x`),!0}function Jqe(e,t){let{nodeInfoById:n,realNodeRects:r}=Tqe(t);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!i||i.length<4)continue;let a=xqe(eT(i,pE),pE);if(!a)continue;let{p3:o}=a,s=a.kind===`HVH`,l=Eqe(t,n,pE);if(!l)continue;let{srcId:u,dstId:d,srcInfo:f,dstInfo:p,collinearX:m,collinearY:h}=l;if(m||h)continue;let g,_=f.rect;for(let n of $Je){let i,a,l;if(s){let e=p.cy>f.cy?_.bottom:_.top,t=f.cx+n;if(t<=_.left+pE||t>=_.right-pE)continue;i={x:t,y:e},a={x:t,y:o.y},l={x:o.x,y:o.y}}else{let e=p.cx>f.cx?_.right:_.left,t=f.cy+n;if(t<=_.top+pE||t>=_.bottom-pE)continue;i={x:e,y:t},a={x:o.x,y:t},l={x:o.x,y:o.y}}let m=Gw(i,a,pE),h=Gw(a,l,pE);if(m&&h||!m&&uT(i,a,r,[u],1)||!h&&uT(a,l,r,[d],1))continue;let v=!m&&pT(i,a,e,t,{epsilon:pE,skipDegenerateOther:!0}),y=!h&&pT(a,l,e,t,{epsilon:pE,skipDegenerateOther:!0});if(!(v||y)){g=m?[a,l]:h?[i,a]:[i,a,l];break}}g&&(t.points=g)}}function Yqe(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=cT(t.values());for(let a of e){if(a.isLayoutOnly)continue;let o=a.points;if(!o||o.length<4)continue;let s=eT(o,n);if(s.length<4)continue;let l=s.length-1,u=s[l],d=s[l-1],f=s[l-2],p=u.x-d.x,m=u.y-d.y,h=Math.hypot(p,m);if(h>=10||h0;O={x:f.x,y:E},k={x:e?D.right:D.left,y:E}}if(uT(O,k,r,S?[S]:[],-2)||uT(O,k,i,[],-2))continue;if(C){let e=t.get(C),n=e?aT(e):void 0;if(n&&Sqe(O,n,2))continue}let A=N((e,t)=>`${e.x.toFixed(3)},${e.y.toFixed(3)}|${t.x.toFixed(3)},${t.y.toFixed(3)}`,`ownSegmentKey`),j=new Set;for(let e=0;e{for(let i of e){if(i===a||i.isLayoutOnly)continue;let e=i.points;if(!(!e||e.length<2))for(let i=0;i=0){let e=s[l-3],t=[C,S].filter(e=>!!e);if(uT(e,O,r,t,-2)||M(e,O))continue}let ee=[...s.slice(0,l-2),O,k];a.points=ee;let te=a.labelNodeId;if(te){let e=t.get(te);if(e){let t=e.width??0,r=e.height??0;if(t>0&&r>0){let i,a,o=-1;for(let e=0;e=t+2||f&&u>=r+2)&&u>o&&(o=u,i=(s.x+l.x)/2,a=(s.y+l.y)/2)}i!==void 0&&a!==void 0&&(e.x=i,e.y=a)}}}}}function Xqe(e,t){let n=N((e,t)=>{let n=e.x??0,r=e.y??0,i=t.x-n,a=t.y-r,o=(e.width??0)/2,s=(e.height??0)/2;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),{x:n+(a===0?0:s*i/a),y:r+s}):(i<0&&(o=-o),{x:n+o,y:r+(i===0?0:o*a/i)})},`rectIntersect`),r=N((e,r)=>{let i=eT(e.points??[]);if(i.length<2)return;let a=r?e.start:e.end,o=a?t.get(a):void 0,s=o?aT(o):void 0;if(!o||!a||!s)return;let l=r?i[0]:i[i.length-1],u=r?i[1]:i[i.length-2],d=n(o,l),f=l;if(eYe(u,d)&&(f=u),Kw(d,f,hE))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`V`,coord:d.x,min:Math.min(d.y,f.y),max:Math.max(d.y,f.y),boundary:d,railEnd:f,rect:s};if(qw(d,f,hE))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`H`,coord:d.y,min:Math.min(d.x,f.x),max:Math.max(d.x,f.x),boundary:d,railEnd:f,rect:s}},`terminalLaneFor`),i=N((e,t)=>Math.max(0,Math.min(e.max,t.max)-Math.max(e.min,t.min)),`projectedOverlapLength`),a=N((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:e.orientation===`H`?(Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1)&&Kw(e.boundary,t.boundary,1):(Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1)&&qw(e.boundary,t.boundary,1),`sameTerminalFace`),o=N((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:i(e,t)>=gE&&Math.abs(e.coord-t.coord)<.5,`exactTerminalLaneConflict`),s=N((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation||e.orientation!==`H`||e.atStart===t.atStart)return!1;let n=i(e,t);if(n2*r?!1:a(e,t)&&Math.abs(e.coord-t.coord)<16},`nearTerminalLaneConflict`),l=N((e,t)=>{let n=eT(e.edge.points??[]);if(n.length<2)return;let r=e.orientation===`V`?{x:e.boundary.x+t,y:e.boundary.y}:{x:e.boundary.x,y:e.boundary.y+t},i=e.orientation===`V`?{x:e.railEnd.x+t,y:e.railEnd.y}:{x:e.railEnd.x,y:e.railEnd.y+t};if(!N(()=>Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1?qw(r,e.boundary,hE)&&r.x>=e.rect.left+1&&r.x<=e.rect.right-1:Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1?Kw(r,e.boundary,hE)&&r.y>=e.rect.top+1&&r.y<=e.rect.bottom-1:!1,`boundaryStaysOnSameFace`)())return;if(e.atStart){let t=n.length>1&&Gw(n[1],e.railEnd,hE),a=n.slice(t?2:1),o=a[0];return o&&!eYe(o,i)?void 0:[r,i,...a]}let a=n.length>1&&Gw(n[n.length-2],e.railEnd,hE),o=n.slice(0,a?-2:-1),s=o[o.length-1];if(!s||eYe(s,i))return[...o,i,r]},`shiftedCandidate`),u=N(e=>{let n=e.edge,r=eT(n.points??[]);if(r.length!==2)return!1;let i=n.start,a=n.end,o=i?t.get(i):void 0,s=a?t.get(a):void 0;if(!o||!s)return!1;let l=o.x??0,u=o.y??0,d=s.x??0,f=s.y??0,[p,m]=r;return qw(p,m,hE)&&Math.abs(u-f)<1&&Math.abs(l-d)>1||Kw(p,m,hE)&&Math.abs(l-d)<1&&Math.abs(u-f)>1},`laneIsStraightCollinearConnector`),d=[-7,7,-14,14,-21,21];for(let t=0;t<8;t++){let t=e.filter(e=>!e.isLayoutOnly).flatMap(e=>[r(e,!0),r(e,!1)]).filter(e=>!!e),n=!1;for(let e=0;e{let n=u(e),r=u(t);return n===r?Number(!t.atStart)-Number(!e.atStart):Number(n)-Number(r)});for(let e of m){for(let i of d){let a=l(e,i);if(!a)continue;let u=r({...e.edge,points:a},e.atStart);if(u&&!t.some(t=>t.edge!==e.edge&&(o(u,t)||p&&s(u,t)))){e.edge.points=a,n=!0;break}}if(n)break}}if(!n)return}}function Zqe(e,t){let{realNodeRects:n,labelNodeRects:r}=cT(t.values()),i=N((t,i)=>{let a=t.start,o=t.end,s=vE(i);if(s.length!==i.length-1)return!1;let l=[a,o].filter(e=>!!e);for(let e of s)if(uT(e.a,e.b,n,l,-2)||uT(e.a,e.b,r,[],-2))return!1;for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.points;if(!(!e||e.length<2)){for(let t of s)for(let n of vE(eT(e)))if(Zw(t,n,.5)>=gE||mT(t.a,t.b,n.a,n.b,hE))return!1}}return!0},`candidateIsSafe`),a=N((e,t)=>{if(t+4>=e.length)return;let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=e[t+4],s=Jw(n,r)&&Yw(r,i)&&Jw(i,a)&&Yw(a,o)&&Kw(n,a,hE)&&Kw(n,o,hE)&&Kw(r,i,hE)&&(r.x-n.x)*(a.x-i.x)<0,l=Yw(n,r)&&Jw(r,i)&&Yw(i,a)&&Jw(a,o)&&qw(n,a,hE)&&qw(n,o,hE)&&qw(r,i,hE)&&(r.y-n.y)*(a.y-i.y)<0;if(s||l)return eT([...e.slice(0,t+1),o,...e.slice(t+5)]);if(t+5>=e.length)return;let u=e[t+5],d=Yw(n,r)&&Jw(r,i)&&Yw(i,a)&&Jw(a,o)&&Yw(o,u)&&Kw(n,o,hE)&&Kw(n,u,hE)&&Kw(i,a,hE)&&(i.x-r.x)*(o.x-a.x)<0,f=Jw(n,r)&&Yw(r,i)&&Jw(i,a)&&Yw(a,o)&&Jw(o,u)&&qw(n,o,hE)&&qw(n,u,hE)&&qw(i,a,hE)&&(i.y-r.y)*(o.y-a.y)<0;if(d||f)return eT([...e.slice(0,t+1),u,...e.slice(t+6)])},`withoutDogleg`);for(let t=0;t<8;t++){let t=!1;for(let n of e){if(n.isLayoutOnly)continue;let e=eT(n.points??[]);for(let r=0;r<=e.length-5;r++){let o=a(e,r);if(o&&i(n,o)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function Qqe(e,t){let{realNodeRects:n,labelNodeRects:r}=cT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=N((e,t,n)=>eT(e===t?n??[]:e.points??[]),`pointsFor`),o=N((e,t)=>{let n=0;for(let r=0;r{let t=vE(e);if(t.length!==3)return;let n=t[1];if(t[0].horizontal!==n.horizontal&&t[2].horizontal!==n.horizontal)return{index:n.index,horizontal:n.horizontal,vertical:n.vertical,segment:n}},`middleRail`),l=N((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);return n.filter(e=>{if(r.includes(e.id))return!1;let n=e.rect;return t.horizontal?Xw(t.a.x,t.b.x,n.left,n.right)>=gE&&t.a.y>=n.top-2&&t.a.y<=n.bottom+2:Xw(t.a.y,t.b.y,n.top,n.bottom)>=gE&&t.a.x>=n.left-2&&t.a.x<=n.right+2})},`blockingRectsFor`),u=N((e,t,n)=>{let r=e.map(e=>({...e}));if(t.horizontal)r[t.index].y=n,r[t.index+1].y=n;else if(t.vertical)r[t.index].x=n,r[t.index+1].x=n;else return;let i=_T(eT(r));return vE(i).length===i.length-1?i:void 0},`candidateByMovingRail`),d=N((e,t,s)=>{let l=[e.start,e.end].filter(e=>!!e),u=vE(t);if(u.length!==t.length-1)return!1;for(let e of u)if(uT(e.a,e.b,n,l,-2)||uT(e.a,e.b,r,[],-2))return!1;for(let t of i)if(t!==e){for(let e of u)for(let n of vE(a(t)))if(Zw(e,n,.5)>=gE)return!1}return o(e,t)<=s},`candidateIsSafe`);for(let e=0;e<8;e++){let e=o(),t=!1;for(let n of i){let r=a(n),i=s(r);if(!i)continue;let o=l(n,i.segment);if(o.length===0)continue;let f=i.horizontal?[Math.min(...o.map(e=>e.rect.top))-20,Math.max(...o.map(e=>e.rect.bottom))+20]:[Math.min(...o.map(e=>e.rect.left))-20,Math.max(...o.map(e=>e.rect.right))+20];for(let a of f){let o=u(r,i.segment,a);if(o&&d(n,o,e)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function jT(e,t,n){let r=N(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),i=N(e=>{if(!e.isGroup||e.parentId)return;let t=_E(e.direction??n);if(t===`LR`||t===`RL`||t===`BT`)return;let i=r(e),a=e.y,o=e.height;if(!i||typeof a!=`number`||typeof o!=`number`||!Number.isFinite(a)||!Number.isFinite(o)||o<=0)return;let s=i.right-i.left,l=i.bottom-i.top;if(!(l<=0||s{if(!e.horizontal)return!1;let n=e.a.y;return nt.bottom+hE?!1:Xw(e.a.x,e.b.x,t.left,t.right)>=gE},`horizontalSegmentIntersectsTitle`),o=[...t.values()].map(i).filter(e=>!!e);if(o.length===0)return;let s=0;for(let t of e){if(t.isLayoutOnly)continue;let e=eT(t.points??[]);for(let t of vE(e))for(let e of o)a(t,e.rect)&&(s=Math.max(s,e.rect.bottom-t.a.y+4))}if(!(s<=hE))for(let e of o){let t=e.node.y,n=e.node.height;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.y=t-s/2,e.node.height=n+s,e.node.groupTitleRect={...e.rect,top:e.rect.top-s,bottom:e.rect.bottom-s})}}function $qe(e,t,n){let r=N(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),i=N(e=>{if(!e.isGroup||e.parentId||_E(e.direction??n)!==`LR`)return;let t=r(e),i=e.x,a=e.width;if(!t||typeof i!=`number`||typeof a!=`number`||!Number.isFinite(i)||!Number.isFinite(a)||a<=0)return;let o=t.right-t.left,s=t.bottom-t.top;if(!(o<=0||s{if(!e.vertical)return!1;let n=e.a.x;return nt.right+hE?!1:Xw(e.a.y,e.b.y,t.top,t.bottom)>=gE},`verticalSegmentIntersectsTitle`),o=N((e,t)=>{if(!e.horizontal)return!1;let n=e.a.y;return nt.bottom+hE?!1:Xw(e.a.x,e.b.x,t.left,t.right)>=gE},`horizontalSegmentIntersectsTitle`),s=[...t.values()].map(i).filter(e=>!!e);if(s.length===0)return;let l=0;for(let t of e){if(t.isLayoutOnly)continue;let e=eT(t.points??[]);for(let t of vE(e))for(let e of s)if(a(t,e.rect))l=Math.max(l,e.rect.right-t.a.x+4);else if(o(t,e.rect)){let n=Math.min(t.a.x,t.b.x);l=Math.max(l,e.rect.right-n+4)}}if(!(l<=hE))for(let e of s){let t=e.node.x,n=e.node.width;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.x=t-l/2,e.node.width=n+l,e.node.groupTitleRect={...e.rect,left:e.rect.left-l,right:e.rect.right-l})}}function MT(e,t){let{realNodeRects:n}=cT(t.values()),r=e.filter(e=>!e.isLayoutOnly),i=N((e,t=new Map)=>eT(t.get(e)??e.points??[]),`replacementPointsFor`),a=N((e=new Map)=>{let t=0;for(let n=0;nr.reduce((t,n)=>t+$w(i(n,e)),0),`totalBends`),s=N(e=>{let t=i(e);if(t.length<4)return;let n=t[t.length-2],r=t[t.length-1];if(Jw(n,r,hE)||Yw(n,r,hE))return{tailStart:n,terminal:r}},`terminalTailFor`),l=N((e,t)=>{let n=i(e);if(n.length<3)return;let r=n[0],a=n[1],o;if(Jw(r,a,hE))o={x:a.x,y:t.tailStart.y};else if(Yw(r,a,hE))o={x:t.tailStart.x,y:a.y};else return;let s=_T(eT([r,a,o,t.tailStart,t.terminal]));return vE(s).length===s.length-1?s:void 0},`candidateWithDestinationTail`),u=N((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);for(let e of vE(t))if(uT(e.a,e.b,n,r,-2))return!0;return!1},`pathHasNodeHit`),d=N((e,t,n)=>{for(let a of r)if(a!==e){for(let e of vE(t))for(let t of vE(i(a,n)))if(Zw(e,t,.5)>=gE)return!0}return!1},`pathHasSharedTrack`),f=N((e,t,n)=>!u(e,t)&&!d(e,t,n),`candidateIsSafe`),p=N(()=>{let e=new Map;for(let n of r){let r=n.end;if(!r||!t.has(r)||i(n).length<4)continue;let a=e.get(r)??[];a.push(n),e.set(r,a)}return e},`edgesByDestination`);for(let e=0;e<4;e++){let e=a();if(e===0)return;let t=o(),n,r=e,i=t;for(let t of p().values())for(let u=0;u=e||b>r||b===r&&x>=i||(n=y,r=b,i=x)}if(!n)return;for(let[e,t]of n)e.points=t}}function NT(e,t){let{realNodeRects:n,labelNodeRects:r}=cT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=N((e,t=new Map)=>eT(t.get(e)??e.points??[]),`replacementPointsFor`),o=N((e=new Map)=>{let t=0;for(let n=0;ni.reduce((t,n)=>t+$w(a(n,e)),0),`totalBends`),l=N(e=>{let n=e.start,r=e.end,i=n?t.get(n):void 0,a=r?t.get(r):void 0,o=i?aT(i):void 0,s=a?aT(a):void 0;return o&&s?{src:o,dst:s}:void 0},`endpointRectsFor`),u=N((e,t,n)=>{if(n.index<=0||n.index+1>=t.length-1)return;let r=l(e);if(r){if(n.vertical){let i=n.a.x,a=Math.min(r.src.left,r.dst.left),o=Math.max(r.src.right,r.dst.right),s=io+hE?`right`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`vertical`,side:s,coord:i,min:Math.min(n.a.y,n.b.y),max:Math.max(n.a.y,n.b.y)}:void 0}if(n.horizontal){let i=n.a.y,a=Math.min(r.src.top,r.dst.top),o=Math.max(r.src.bottom,r.dst.bottom),s=io+hE?`bottom`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`horizontal`,side:s,coord:i,min:Math.min(n.a.x,n.b.x),max:Math.max(n.a.x,n.b.x)}:void 0}}},`externalRailForSegment`),d=N(()=>{let e=[];for(let t of i){let n=a(t);for(let r of vE(n)){let i=u(t,n,r);i&&e.push(i)}}return e},`collectExternalRails`),f=N((e,t)=>e.edge!==t.edge&&e.axis===t.axis&&e.side===t.side&&Xw(e.min,e.max,t.min,t.max)>=gE,`railsInteract`),p=N(e=>{let t=[],n=new Set;for(let r of e){if(n.has(r))continue;let i=[r],a=[];for(n.add(r);i.length>0;){let t=i.pop();a.push(t);for(let r of e)!n.has(r)&&f(t,r)&&(n.add(r),i.push(r))}a.length>1&&t.push(a)}return t},`connectedComponents`),m=N(e=>{let t=[];for(let n of e)t.some(e=>Math.abs(e-n.coord){let t=e.map(e=>e.coord),n=m(e),r=[];if(e.length<=6){let i=Array(n.length).fill(!1),a=[],o=N(()=>{if(a.length===e.length){a.some((e,n)=>Math.abs(e-t[n])>=hE)&&r.push([...a]);return}for(let[e,t]of n.entries())i[e]||(i[e]=!0,a.push(t),o(),a.pop(),i[e]=!1)},`visit`);return o(),r}for(let e=0;e{let n=new Map;for(let[r,i]of e.entries()){let e=t[r],a=n.get(i.edge)??i.points.map(e=>({x:e.x,y:e.y}));i.axis===`vertical`?(a[i.segmentIndex].x=e,a[i.segmentIndex+1].x=e):(a[i.segmentIndex].y=e,a[i.segmentIndex+1].y=e),n.set(i.edge,a)}let r=new Map;for(let[e,t]of n){let n=_T(eT(t));if(vE(n).length!==n.length-1)return;r.set(e,n)}return r},`replacementsForAssignment`),_=N(e=>{for(let[t,i]of e){let e=[t.start,t.end].filter(e=>!!e);for(let t of vE(i))if(uT(t.a,t.b,n,e,-2)||uT(t.a,t.b,r,[],-2))return!1}for(let t=0;t=gE)return!1}}return!0},`candidateIsSafe`);for(let e=0;e<4;e++){let e=o();if(e===0)return;let t,n=e,r=s(),i=1/0;for(let a of p(d()))for(let l of h(a)){let u=g(a,l);if(!u||!_(u))continue;let d=o(u);if(d>=e)continue;let f=s(u),p=a.reduce((e,t,n)=>e+Math.abs(l[n]-t.coord),0);d>n||d===n&&(f>r||f===r&&p>=i)||(t=u,n=d,r=f,i=p)}if(!t)return;for(let[e,n]of t)e.points=n}}function eJe(e,t){let{realNodeRects:n,labelNodeRects:r}=cT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=N((e,t,n)=>eT(e===t?n??[]:e.points??[]),`pointsFor`),o=N(e=>vE(e).reduce((e,t)=>{let n=t.a.x-t.b.x,r=t.a.y-t.b.y;return e+Math.hypot(n,r)},0),`pathLength`),s=N((e,t)=>{let n=0;for(let r=0;r{if(e.horizontal){let n=e.a.y;return(Math.abs(n-t.top)<1||Math.abs(n-t.bottom)<1)&&Xw(e.a.x,e.b.x,t.left,t.right)>=gE}if(e.vertical){let n=e.a.x;return(Math.abs(n-t.left)<1||Math.abs(n-t.right)<1)&&Xw(e.a.y,e.b.y,t.top,t.bottom)>=gE}return!1},`segmentRunsAlongRectBorder`),u=N(e=>{let n=[e.start,e.end].filter(e=>!!e),r=[];for(let e of n){let n=t.get(e),i=n?aT(n):void 0;i&&r.push(i)}return r},`endpointRectsFor`),d=N((e,t)=>{if(t+3>=e.length)return[];let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=Jw(n,r,hE)&&Yw(r,i,hE)&&Jw(i,a,hE),s=Yw(n,r,hE)&&Jw(r,i,hE)&&Yw(i,a,hE);if(!o&&!s||!(o?Math.sign(r.x-n.x)!==Math.sign(a.x-i.x):Math.sign(r.y-n.y)!==Math.sign(a.y-i.y)))return[];let l=Kw(n,a,hE)||qw(n,a,hE)?[]:[{x:n.x,y:a.y},{x:a.x,y:n.y}],u=l.length===0?[[...e.slice(0,t+1),...e.slice(t+3)]]:l.map(n=>[...e.slice(0,t+1),n,...e.slice(t+3)]),d=new Set;return u.map(e=>_T(eT(e))).filter(e=>{if(vE(e).length!==e.length-1||!e.some(e=>Gw(e,a,hE)))return!1;let t=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return!d.has(t)&&(d.add(t),!0)})},`shortcutCandidatesAt`),f=N((e,t,o)=>{let d=[e.start,e.end].filter(e=>!!e),f=u(e);for(let e of vE(t))if(uT(e.a,e.b,n,d,-2)||uT(e.a,e.b,r,[],-2)||f.some(t=>l(e,t)))return!1;for(let n of i)if(n!==e){for(let e of vE(t))for(let t of vE(a(n)))if(Zw(e,t,.5)>=gE)return!1}return s(e,t)<=o},`candidateIsSafe`);for(let e=0;e<8;e++){let e=s(),t,n,r=e,l=1/0,u=1/0;for(let p of i){let i=a(p),m=$w(i,hE),h=o(i);for(let a=0;a<=i.length-4;a++)for(let g of d(i,a)){let i=$w(g,hE),a=o(g);if(!(ir||d===r&&(i>l||i===l&&a>=u)||(t=p,n=g,r=d,l=i,u=a)}}if(!t||!n)return;t.points=n}}function tJe(e,t){let n=[];for(let e of t.values()){if(e.isGroup||e.isEdgeLabel)continue;let t=e.x??0,r=e.y??0,i=aT(e);i&&n.push({id:String(e.id??``),cx:t,cy:r,rect:i})}if(n.length===0)return;let r=new Map(n.map(e=>[e.id,e])),i=n.map(e=>({id:e.id,rect:e.rect})),a=[`top`,`bottom`,`left`,`right`],o={top:Math.min(...n.map(e=>e.rect.top))-20,bottom:Math.max(...n.map(e=>e.rect.bottom))+20,left:Math.min(...n.map(e=>e.rect.left))-20,right:Math.max(...n.map(e=>e.rect.right))+20},s=e.filter(e=>!e.isLayoutOnly),l=new Map(s.map((e,t)=>[e,t])),u=N(e=>{let t=e===`left`||e===`top`?-1:1,n=[];for(let r=0;r<=2;r++)n.push(o[e]+t*20*r);return n},`outwardTracksForSide`),d=N((e,t=new Map)=>eT(t.get(e)??e.points??[]),`replacementPointsFor`),f=N((e,t)=>{let n=0;for(let r of e)for(let e of t)mT(r.a,r.b,e.a,e.b,hE)&&n++;return n},`crossingCountBetweenSegments`),p=N((e,t)=>f(vE(e),vE(t)),`crossingCountBetweenPaths`),m=N((e=new Map)=>{let t=0,n=[],r=new Set,i=[],a=N(e=>{r.has(e)||(r.add(e),i.push(e))},`addEdge`);for(let r=0;r0&&(t+=u,n.push({first:i,second:r,count:u}),a(i),a(r))}}return i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),{count:t,pairs:n,edgeSet:r,edges:i}},`crossingSnapshot`),h=N((e,t)=>{let n=new Set(t.keys());if(n.size===0)return e.count;let r=0;for(let t of e.pairs)(n.has(t.first)||n.has(t.second))&&(r+=t.count);let i=0;for(let e=0;e{let t=new Map;for(let n of e.pairs){let e=t.get(n.first)??new Set;e.add(n.second),t.set(n.first,e);let r=t.get(n.second)??new Set;r.add(n.first),t.set(n.second,r)}let n=[],r=new Set;for(let i of e.edges){if(r.has(i))continue;let e=[i],a=[];for(r.add(i);e.length>0;){let n=e.pop();a.push(n);for(let i of t.get(n)??[])r.has(i)||(r.add(i),e.push(i))}a.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),a.length>1&&n.push(a)}return n},`crossingComponents`),_=N(e=>[e.start,e.end].filter(e=>!!e),`endpointIdsFor`),v=N(e=>{let t=[];for(let n of g(e)){let e=new Set(n),r=new Set(n.flatMap(e=>_(e))),i=[...n];for(let t of s)e.has(t)||_(t).some(e=>r.has(e))&&i.push(t);i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),t.push(i)}return t},`pairSearchGroups`),y=N((e,t,n)=>h(e,new Map([[t,n]])),`crossingCountWithSingleReplacement`),b=N(e=>{let t=new Map;for(let n of e.pairs)t.set(n.first,(t.get(n.first)??0)+n.count),t.set(n.second,(t.get(n.second)??0)+n.count);return t},`currentCrossingsByEdge`),x=N(e=>e.slice(1).reduce((t,n,r)=>{let i=e[r];return t+Math.abs(n.x-i.x)+Math.abs(n.y-i.y)},0),`pathLength`),S=N((e=new Map)=>s.reduce((t,n)=>t+$w(d(n,e)),0),`totalBends`),C=N((e=new Map)=>s.reduce((t,n)=>t+x(d(n,e)),0),`totalLength`),w=N((e,t,n=new Map)=>{let r=vE(t);for(let t of s)if(t!==e){for(let e of r)for(let r of vE(d(t,n)))if(Zw(e,r,.5)>=gE)return!0}return!1},`pathHasSegmentConflict`),T=N((e,t)=>{let n=[e.start,e.end].filter(e=>!!e);for(let e of vE(t))if(uT(e.a,e.b,i,n,-2))return!0;return!1},`pathHitsNode`),E=N((e,t)=>{let n=_T(eT(t));vE(n).length===n.length-1&&e.push(n)},`pushOrthogonalCandidate`),D=N(e=>e===`left`||e===`right`,`sideIsHorizontal`),O=N((e,t,n)=>{switch(t){case`left`:return Math.min(e.x,n.x)-20;case`right`:return Math.max(e.x,n.x)+20;case`top`:return Math.min(e.y,n.y)-20;case`bottom`:return Math.max(e.y,n.y)+20}},`localTrackForSameSide`),k=N((e,t,n,r)=>{let i=n===`left`||n===`top`?-1:1,a=[O(t,n,r),o[n]];for(let o of a)for(let a=0;a<=2;a++)E(e,wqe(t,n,r,o+i*20*a))},`addSameSideCandidates`),A=N((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:a,y:t.y},{x:a,y:n},{x:r.x,y:n},r])},`addHorizontalToVerticalCandidates`),j=N((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:t.x,y:a},{x:n,y:a},{x:n,y:r.y},r])},`addVerticalToHorizontalCandidates`),M=N((e,t,n,r,i)=>{let a=[...u(`top`),...u(`bottom`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:o,y:t.y},{x:o,y:i},{x:n,y:i},{x:n,y:r.y},r])},`addHorizontalPairCandidates`),ee=N((e,t,n,r,i)=>{let a=[...u(`left`),...u(`right`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:t.x,y:o},{x:i,y:o},{x:i,y:n},{x:r.x,y:n},r])},`addVerticalPairCandidates`),te=N(e=>{let t=new Set;return e.map(e=>eT(e)).filter(e=>{let n=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return t.has(n)||e.length<2?!1:(t.add(n),!0)})},`dedupeCandidatePaths`),ne=N((e,t,n,r)=>{let i=[],a=sT(e,t,n,r,20,hE);a&&E(i,a),t===r&&k(i,e,t,n);let o=D(t),s=D(r);return o&&!s?A(i,e,t,n,r):!o&&s?j(i,e,t,n,r):o?M(i,e,t,n,r):ee(i,e,t,n,r),te(i)},`buildCandidatesForSides`),re=N((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=oT(r,s),l=s===`top`||s===`bottom`?u(s):o;for(let r of i){E(e,[t,n,{x:r,y:n.y},{x:r,y:a.y},a]);for(let i of l)E(e,[t,n,{x:r,y:n.y},{x:r,y:i},{x:a.x,y:i},a])}}},`addVerticalDepartureOuterTrackCandidates`),ie=N((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=oT(r,s),l=s===`left`||s===`right`?u(s):i;for(let r of o){E(e,[t,n,{x:n.x,y:r},{x:a.x,y:r},a]);for(let i of l)E(e,[t,n,{x:n.x,y:r},{x:i,y:r},{x:i,y:a.y},a])}}},`addHorizontalDepartureOuterTrackCandidates`),ae=N(e=>{let t=e.start,n=e.end,i=n?r.get(n):void 0;if(!t||!i)return[];let a=eT(e.points??[]);if(a.length<4)return[];let o=a[0],s=a[1],l=[];return Yw(o,s,hE)?re(l,o,s,i):Jw(o,s,hE)&&ie(l,o,s,i),l},`terminalPreservingOuterTrackCandidates`),oe=N(e=>{let t=e.start,n=e.end,i=t?r.get(t):void 0,o=n?r.get(n):void 0;if(!i||!o)return[];let s=[];for(let e of a){let t=oT(i,e);for(let n of a)s.push(...ne(t,e,oT(o,n),n))}return s.push(...ae(e)),s},`candidatePathsFor`),se=N(()=>new Map(s.map(e=>[e,vE(d(e))])),`currentSegmentsByEdge`),ce=N((e,t,n)=>{let r=new Set;for(let i of s){if(i===e)continue;let a=n.get(i)??vE(d(i));t.some(e=>a.some(t=>Zw(e,t,.5)>=gE))&&r.add(i)}return r},`sharedTrackConflictsFor`),le=N((e,t,n,r)=>{let i=new Set;return oe(e).map(e=>_T(eT(e))).filter(t=>{if(T(e,t))return!1;let n=t.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return i.has(n)||t.length<2?!1:(i.add(n),!0)}).map(i=>{let a=vE(i),o=0;for(let t of s)t!==e&&(o+=f(a,n.get(t)??vE(d(t))));return{candidate:i,candidateSegments:a,crossings:t.count-(r.get(e)??0)+o,bends:$w(i,hE),totalBends:$w(i),length:x(i)}}).filter(({crossings:e})=>e<=t.count).sort((e,t)=>e.crossings-t.crossings||e.bends-t.bends||e.length-t.length).slice(0,48).map(t=>({path:t.candidate,segments:t.candidateSegments,sharedTrackConflicts:ce(e,t.candidateSegments,n),totalBends:t.totalBends,length:t.length}))},`pairCandidatesFor`),ue=N((e,t,n,r,i,a)=>{let o=0;for(let n of e.pairs)(n.first===t||n.second===t||n.first===r||n.second===r)&&(o+=n.count);let l=f(n.segments,i.segments);for(let e of s){if(e===t||e===r)continue;let o=a.get(e)??vE(d(e));l+=f(n.segments,o)+f(i.segments,o)}return e.count-o+l},`pairCrossingCount`),de=N((e,t)=>{for(let n of e.sharedTrackConflicts)if(n!==t)return!1;return!0},`conflictsOnlyWith`),fe=N((e,t)=>e.segments.some(e=>t.segments.some(t=>Zw(e,t,.5)>=gE)),`candidatesShareTrack`),pe=N((e,t,n,r)=>de(t,n.edge)&&de(r,e.edge)&&!fe(t,r),`pairCandidatesAreCompatible`),me=N((e,t,n,r,i)=>{let a=ue(e.current,t.edge,n,r.edge,i,e.baseSegments);if(!(a>=e.current.count))return{replacements:new Map([[t.edge,n.path],[r.edge,i.path]]),crossings:a,bends:e.currentBends-(e.baseBendsByEdge.get(t.edge)??0)-(e.baseBendsByEdge.get(r.edge)??0)+n.totalBends+i.totalBends,length:e.currentLength-(e.baseLengthByEdge.get(t.edge)??0)-(e.baseLengthByEdge.get(r.edge)??0)+n.length+i.length}},`scorePairReplacement`),he=N((e,t)=>e.crossings{let i=r;for(let r of t.candidates)for(let a of n.candidates){if(!pe(t,r,n,a))continue;let o=me(e,t,r,n,a);o&&he(o,i)&&(i=o)}return i},`bestScoreForOptionPair`),_e=N(e=>{let t=S(),n=C(),r=se(),i=b(e),a=new Map(s.map(e=>[e,$w(d(e))])),o=new Map(s.map(e=>[e,x(d(e))])),l=new Map,u=v(e);for(let t of u)for(let n of t){if(l.has(n))continue;let t=le(n,e,r,i);t.length>0&&l.set(n,{edge:n,candidates:t})}let f={replacements:new Map,crossings:e.count,bends:t,length:n},p={current:e,currentBends:t,currentLength:n,baseBendsByEdge:a,baseLengthByEdge:o,baseSegments:r};for(let t of u){let n=new Set(t.filter(t=>e.edgeSet.has(t))),r=t.map(e=>l.get(e)).filter(e=>!!e);for(let e=0;e0?f.replacements:void 0},`bestPairedReplacement`);for(let e=0;e<4;e++){let e=m(),t=e.count;if(t===0)return;let n,r,i=t,a=1/0;for(let o of e.edges){let s=$w(d(o),hE);for(let l of oe(o)){let u=T(o,l),d=!u&&w(o,l),f=y(e,o,l),p=$w(l,hE);u||d||(fi||f===i&&p>=a||(n=o,r=l,i=f,a=p))}}if(n&&r){n.points=r;continue}let o=_e(e);if(!o)return;for(let[e,t]of o)e.points=t}}function nJe(e,t){let{nodeInfoById:n,realNodeRects:r}=Tqe(t),i=[`top`,`bottom`,`left`,`right`],a={top:Math.min(...r.map(e=>e.rect.top))-20,bottom:Math.max(...r.map(e=>e.rect.bottom))+20,left:Math.min(...r.map(e=>e.rect.left))-20,right:Math.max(...r.map(e=>e.rect.right))+20},o=N((e,t,n,r)=>{let i=[],o=sT(e,t,n,r,20,yE);return o&&i.push(o),t===r&&i.push(wqe(e,t,n,a[t])),i},`buildOrthogonalPathCandidates`),s=N((e,t)=>{for(let n=0;n{let i=0,a=Qw(t,yE),o=n.start,s=n.end;for(let t of e){if(t===n||t.isLayoutOnly)continue;let e=t.start,l=t.end;if(!r&&o&&s&&(e===o||e===s||l===o||l===s))continue;let u=t.points;if(!(!u||u.length<2))for(let e of a)for(let t of Qw(u,yE)){if(dT(e.a,e.b,t.a,t.b,yE,yE)){i++;continue}Zw(e,t,yE)>=bE&&i++}}return i},`pathConflictCount`),u=N((e,t)=>{let n=Math.abs(e.y-t.rect.top),r=Math.abs(e.y-t.rect.bottom),i=Math.abs(e.x-t.rect.left),a=Math.abs(e.x-t.rect.right),o=`top`,s=n;return r{let r=d.get(e)??[];r.push({side:t,edgeId:n}),d.set(e,r)},`addFaceClaim`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points??[];if(e.length<1)continue;let r=t.id??``,i=t.start,a=t.end;if(i){let t=n.get(i);t&&f(i,u(e[0],t),r)}if(a){let t=n.get(a);t&&f(a,u(e[e.length-1],t),r)}}let p=N((e,t,n)=>d.get(e)?.some(e=>e.edgeId!==n&&e.side===t)??!1,`faceIsClaimed`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!e||e.length<2)continue;let r=$w(e,yE);if(r<4)continue;let a=t.start,m=t.end;if(!a||!m)continue;let h=n.get(a),g=n.get(m);if(!h||!g)continue;let _=t.id??``,v=l(e,t,!0),y=l(e,t),b,x=v,S=r;for(let e of i){if(p(a,e,_))continue;let n=oT(h,e);for(let r of i){if(p(m,r,_))continue;let i=oT(g,r);for(let u of o(n,e,i,r)){if(s(u,[a,m]))continue;let e=$w(u,yE);if(v>0){let n=l(u,t,!0);if(n>x||n===x&&e>=S)continue;x=n,S=e,b=u;continue}l(u,t)>y||ee.edgeId!==_));let n=d.get(m);n&&d.set(m,n.filter(e=>e.edgeId!==_)),f(a,u(b[0],h),_),f(m,u(b[b.length-1],g),_)}}}function rJe(e,t){let n=t?0:e.length-1,r=t?1:-1,i=e[n],a=e[n+r];if(!i||!a)return;let o=a.x-i.x,s=a.y-i.y;if(!(Math.abs(o)+Math.abs(s)t&&rT(e,iJe(t)))}function PT(e,t){let n=[];for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!(!e||e.length<2))for(let r=0;r{let n=Cqe(t,3);for(let{nodeId:t,rect:i}of r)if(t!==e&&rT(n,i))return!0;return!1},`labelOverlapsForeignNode`),o=N((e,t)=>{let r=Cqe(t,3);for(let t of n)if(t.edgeId!==e&&tT(t.p1,t.p2,r))return!0;return!1},`labelOverlapsForeignEdge`),s=N((e,t,n)=>a(e,n)||o(t,n),`labelOverlapsAnything`),l=[],u=N(e=>{for(let{id:t,rect:n}of i)if(nT(n,e))return t},`findContainingLane`),d=N((e,t)=>l.some(n=>n.labelId!==e&&rT(t,n.rect)),`overlapsPlacedLabel`);for(let n of e){if(n.isLayoutOnly)continue;let e=n.labelNodeId;if(!e)continue;let r=t.get(e);if(!r)continue;let f=n.points;if(!f||f.length<2)continue;let p=r.width??0,m=r.height??0;if(p<=0||m<=0)continue;let h=[];for(let e=0;e=xE&&i>=xE||h.push({idx:e,length:r+i,orientation:r>=xE?`horizontal`:`vertical`,midX:(t.x+n.x)/2,midY:(t.y+n.y)/2})}if(h.length===0)continue;let g=h.length>=3?h.filter(e=>e.idx>0&&e.idx0?g:h,v=p>=m?`horizontal`:`vertical`,y=N(e=>[...e].sort((e,t)=>{let n=e.orientation===v;if(n!==(t.orientation===v))return n?-1:1;let r=e.length>=(e.orientation===`horizontal`?p:m)+2;return r===t.length>=(t.orientation===`horizontal`?p:m)+2?t.length-e.length:r?-1:1}),`rankSegments`),b=h[0],x=h[h.length-1],S=[.5,.25,.75,.05,.95,.15,.85,.1,.9],C=N((e,t)=>{let n=f[e.idx],r=f[e.idx+1];return{midX:n.x+(r.x-n.x)*t,midY:n.y+(r.y-n.y)*t}},`anchorAtT`),w=N((e,t,n)=>Math.min(n,Math.max(t,e)),`clamp`),T=N((e,t)=>e.midX>=t.left-xE&&e.midX<=t.right+xE&&e.midY>=t.top-xE&&e.midY<=t.bottom+xE,`pointInsideRectInclusive`),E=N(e=>{let t=iT(e.midX,e.midY,p,m),n=u(t);if(n)return{laneId:n,anchor:e,rect:t};let r=i.find(({rect:t})=>T(e,t));if(!r)return;let a=r.rect.left+p/2+1,o=r.rect.right-p/2-1,s=r.rect.top+m/2+1,l=r.rect.bottom-m/2-1;if(a>o||s>l)return;let d={midX:w(e.midX,a,o),midY:w(e.midY,s,l)},f=iT(d.midX,d.midY,p,m);return T(e,f)?{laneId:r.id,anchor:d,rect:f}:void 0},`placementForAnchor`),D=N((e,t,n)=>e.orientation===`horizontal`?Math.abs(t.midX-n.x):Math.abs(t.midY-n.y),`distanceAlongSegment`),O=N((e,t)=>{let n=(e.orientation===`horizontal`?p/2:m/2)+12;if(e===b){let r=f[e.idx];if(D(e,t,r)+xE{let r=y(t);for(let t of r)for(let r of S){let i=C(t,r);if(!O(t,i))continue;let a=E(i);if(a&&!aJe(a.rect,f)&&!d(e,a.rect)&&!s(e,n.id,a.rect))return{laneId:a.laneId,anchor:a.anchor}}},`tryPool`),A=N((t,r,i=!1)=>{let s=y(t);for(let t of s){let s={midX:t.midX,midY:t.midY};if(r&&!O(t,s))continue;let l=E(s);if(l&&!aJe(l.rect,f)&&!d(e,l.rect)&&!a(e,l.rect)&&(i||!o(n.id,l.rect)))return{laneId:l.laneId,anchor:l.anchor}}},`findLaneContainingFallback`),j=k(_)??(_.lengtht.labelId===e);n>=0?l[n]={labelId:e,rect:t}:l.push({labelId:e,rect:t})}}}function FT(e,t){return e{let o=FT(n,r),s=0,l=N(e=>{if(!e)return;let t=i.get(e);if(!t)return;let n=a===`x`?t.w/2:t.h/2;n>s&&(s=n)},`consider`);l(t.labelNodeId);for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.start,r=n.end;e&&r&&FT(e,r)===o&&l(n.labelNodeId)}return s>0?s+EE:0},`labelClearanceFor`);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!xqe(i,wE))continue;let o=Eqe(t,n,wE);if(!o)continue;let{srcId:s,dstId:l,srcInfo:u,dstInfo:d,collinearX:f,collinearY:p}=o;if(f===p)continue;let m,h;if(f){let e=d.cy>u.cy;m={x:u.cx,y:e?u.rect.bottom:u.rect.top},h={x:d.cx,y:e?d.rect.top:d.rect.bottom}}else{let e=d.cx>u.cx;m={x:e?u.rect.right:u.rect.left,y:u.cy},h={x:e?d.rect.left:d.rect.right,y:d.cy}}if(uT(m,h,r,[s,l],1))continue;let g=a(t,s,l,f?`x`:`y`),_=g>TE?g:TE,v=[0,_,-_];for(let n of v){let i={...m},a={...h};if(f){if(i.x+=n,a.x+=n,i.x<=u.rect.left||i.x>=u.rect.right||a.x<=d.rect.left||a.x>=d.rect.right)continue}else if(i.y+=n,a.y+=n,i.y<=u.rect.top||i.y>=u.rect.bottom||a.y<=d.rect.top||a.y>=d.rect.bottom)continue;if(!uT(i,a,r,[s,l],1)&&!pT(i,a,e,t,{epsilon:wE})){t.points=[i,a];break}}}}function oJe(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=cT(t.values()),a=N((e,t)=>Qw(t,n).map(n=>({...n,edge:e,interior:n.index>=1&&n.index<=t.length-3})),`segmentsFor`),o=N(()=>{let t=[];for(let n of e){if(n.isLayoutOnly)continue;let e=n.points;!e||e.length<2||t.push(...a(n,eT(e)))}return t},`allSegments`),s=N((e,t)=>e.horizontal&&t.horizontal?Xw(e.a.x,e.b.x,t.a.x,t.b.x)>=8&&Math.abs(e.a.y-t.a.y)<7:e.vertical&&t.vertical?Xw(e.a.y,e.b.y,t.a.y,t.b.y)>=8&&Math.abs(e.a.x-t.a.x)<7:!1,`hasCrowdedParallelTrack`),l=N((t,o)=>{let l=t.start,u=t.end,d=a(t,o);if(d.length!==o.length-1)return!1;let f=[l,u].filter(e=>!!e),p=t.labelNodeId?[t.labelNodeId]:[];for(let e of d)if(uT(e.a,e.b,r,f,-2)||uT(e.a,e.b,i,p,-2))return!1;for(let r of e){if(r===t||r.isLayoutOnly)continue;let e=r.points;if(!(!e||e.length<2)){for(let t of d)for(let i of a(r,eT(e)))if(s(t,i)||mT(t.a,t.b,i.a,i.b,n))return!1}}return!0},`candidateIsSafe`),u=N((e,t)=>{let n=eT(e.edge.points??[]);if(n.length<4||e.index>=n.length-1)return;let r=n.map(e=>({...e}));if(e.horizontal)r[e.index].y+=t,r[e.index+1].y+=t;else if(e.vertical)r[e.index].x+=t,r[e.index+1].x+=t;else return;return a(e.edge,r).length===r.length-1?r:void 0},`shiftedCandidate`),d=N((e,t)=>({x:e.x??(t.left+t.right)/2,y:e.y??(t.top+t.bottom)/2}),`nodeCenter`),f=N(e=>{let n=e.edge,r=eT(n.points??[]);if(r.length!==4||e.index!==1)return;let i=n.start?t.get(n.start):void 0,a=n.end?t.get(n.end):void 0,o=i?aT(i):void 0,s=a?aT(a):void 0,l=r.slice(e.index+2);if(i&&a&&o&&s&&l.length!==0)return{sourceCenter:d(i,o),targetCenter:d(a,s),sourceRect:o,tail:l}},`sourceDetourContextFor`),p=N((e,t,r,i,a,o)=>{let s=i.y>=r.y,l=s?a.bottom:a.top,u=l+(s?20:-20);if(s&&e.b.y<=u+n||!s&&e.b.y>=u-n)return;let d=e.a.x+t;return eT([{x:r.x,y:l},{x:r.x,y:u},{x:d,y:u},{x:d,y:e.b.y},...o],n)},`verticalSourceDetour`),m=N((e,t,r,i,a,o)=>{let s=i.x>=r.x,l=s?a.right:a.left,u=l+(s?20:-20);if(s&&e.b.x<=u+n||!s&&e.b.x>=u-n)return;let d=e.a.y+t;return eT([{x:l,y:r.y},{x:u,y:r.y},{x:u,y:d},{x:e.b.x,y:d},...o],n)},`horizontalSourceDetour`),h=N((e,t)=>{let n=f(e);if(n){if(e.vertical)return p(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail);if(e.horizontal)return m(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail)}},`sourceDetourCandidate`),g=[-7,7,-14,14,-21,21];for(let e=0;e<12;e++){let e=o(),t=!1;for(let n=0;ne.interior);for(let e of o){for(let n of g){let r=u(e,n);if(r&&l(e.edge,r)){e.edge.points=r,t=!0;break}let i=h(e,n);if(i&&l(e.edge,i)){e.edge.points=i,t=!0;break}}if(t)break}}if(!t)return}}function sJe(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y,l=i*s-a*o;if(Math.abs(l)<1e-10)return!1;let u=n.x-e.x,d=n.y-e.y,f=(u*s-d*o)/l,p=(u*a-d*i)/l,m=.01;return f>m&&f<.99&&p>m&&p<.99}function cJe(e){let t=e.nodes??[],n=e.edges??[],r=[];if(!n.length||!t.length)return r;let i=lT(t),a=[];for(let e of n){if(e.isLayoutOnly)continue;let t=e.points;if(!t||t.length<2)continue;let n=e.start,o=e.end,s=e.labelNodeId,l=e.id??`${n}->${o}`;for(let e of i)if(e.nodeId!==n&&e.nodeId!==o&&!(s&&e.nodeId===s)){for(let n=0;n0){let e=r.filter(e=>e.type===`edge-node-overlap`).length,t=r.filter(e=>e.type===`edge-edge-crossing`).length;P.warn(`[SWIMLANE_VALIDATE] ${r.length} issue(s) detected: ${e} edge-node overlap(s), ${t} edge crossing(s)`);for(let e of r)P.warn(`[SWIMLANE_VALIDATE] ${e.type}: ${e.detail}`)}return r}function LT(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);if((t===`LR`||t===`RL`)&&i.length>0&&!AT(e,t)||t===`BT`&&i.length>0&&!qqe(e))return;for(let e of r){if(e.isLayoutOnly)continue;let t=e.points;!t||t.length<2||(e.points=_T(Oqe(t)))}nJe(r,n),IT(r,n),Jqe(r,n);let a=new Map;for(let e of n)a.set(String(e.id),e);PT(r,a),Mqe(r,a),Yqe(r,a),oJe(r,a),Xqe(r,a),Zqe(r,a),Qqe(r,a),MT(r,a);let o=N(()=>{tJe(r,a),Xqe(r,a),NT(r,a),eJe(r,a),PT(r,a),Hqe(r,a),Qqe(r,a),PT(r,a),Hqe(r,a)},`finalizeRenderedEdges`);o(),oJe(r,a),o(),jT(r,a,t),$qe(r,a,t),jT(r,a,t),$qe(r,a,t)}function RT(e){let t=new Map(e.nodeById),n=new Set,r=[];for(let i of e.edges){if(!t.has(i.src)||!t.has(i.dst))continue;let e=`${i.id}:${i.src}->${i.dst}`;n.has(e)||(n.add(e),r.push(i))}return{nodes:[...t.keys()],edges:r,layout:e.layout,nodeById:t}}function lJe(e,t){return e.edges.filter(e=>e.dst===t)}function zT(e){let t=new Map;for(let n of e.nodes)t.set(n,[]);for(let n of e.edges)t.get(n.src).push(n.dst);return t}function BT(e){let t=zT(e);for(let e of t.values())e.sort((e,t)=>e.localeCompare(t));return t}function uJe(e){let t=new Map;for(let n of e.nodes)t.set(n,0);for(let n of e.edges)t.set(n.dst,(t.get(n.dst)??0)+1);return t}function VT(e,t){let n=[...t.entries()].filter(([,e])=>e===0).map(([e])=>e).sort((e,t)=>e.localeCompare(t)),r=new Set(e.edges.flatMap(e=>[e.src,e.dst])),i=N(t=>!r.has(t)&&!e.nodeById.get(t)?.isGroup,`isUnconnected`),a=[...t.keys()].filter(e=>t.get(e)===0&&i(e)),o=0;return n.map(e=>i(e)?a[o++]:e)}function HT(e,t=()=>!0){let n=new Map,r=new Map;for(let t of e.nodes)n.set(t,[]),r.set(t,[]);for(let i of e.edges)t(i)&&(r.get(i.src).push(i.dst),n.get(i.dst).push(i.src));return{preds:n,succs:r}}function dJe(e,t,n,r){let i=0;for(let t of e.nodes)r?.skipGroups&&e.nodeById.get(t)?.isGroup||(i=Math.max(i,n[t]??0));let a=Array.from({length:i+1},()=>[]);for(let i of t)r?.skipGroups&&e.nodeById.get(i)?.isGroup||a[Math.max(0,n[i]??0)].push(i);return a}function UT(e){let t=uJe(e),n=VT(e,t),r=[],i=BT(e);for(;n.length;){let e=n.shift();r.push(e);for(let r of i.get(e)??[])if(t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0){let e=0;for(;e{if(i-r<=1)return 0;let a=r+i>>1,o=n(r,a)+n(a,i),s=r,l=a,u=r;for(;s=i||se.dst===t.dst?e.id.localeCompare(t.id):e.dst.localeCompare(t.dst));let r=Object.create(null);for(let e of t.nodes)r[e]=0;let i=[],a=N(e=>{r[e]=1;for(let t of n.get(e)??[]){let e=t.dst;r[e]===0?a(e):r[e]===1&&i.push(t)}r[e]=2},`dfs`),o=uJe(t),s=[...t.nodes.filter(e=>(o.get(e)??0)===0),...t.nodes.filter(e=>(o.get(e)??0)!==0)];for(let e of s)r[e]===0&&a(e);let l=new Set(i.map(e=>`${e.id}:${e.src}->${e.dst}`)),u=t.edges.map(e=>l.has(`${e.id}:${e.src}->${e.dst}`)?{id:e.id,src:e.dst,dst:e.src,weight:e.weight,ref:e.ref}:e);return{acyclic:{nodes:[...t.nodes],edges:u,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:i}}function GT(e){let t=new Map,n=N(r=>{if(t.has(r))return t.get(r);let i=e.nodeById.get(r);if(!i)return t.set(r,null),null;let a=i.parentId;if(!a)return t.set(r,null),null;let o=n(a)??a;return t.set(r,o),o},`resolve`);for(let t of e.nodes)n(t);return t}function KT(e){let t=GT(e);return e=>t.get(e)??null}function qT(e){let t=[];for(let n of e.layout.nodes??[])n.isGroup&&!n.parentId&&t.push(n.id);return[...new Set(t)].reverse()}function JT(e,t){let n=qT(e);if(!t||t.length===0)return n;let r=new Set(n),i=new Set,a=[];for(let e of t)r.has(e)&&!i.has(e)&&(i.add(e),a.push(e));for(let e of n)i.has(e)||a.push(e);return a}function mJe(e,t){let n=RT(e),r=t?.laneOf??(()=>null),i=t?.rankHint,{preds:a}=HT(n);for(let e of a.values())e.sort((e,t)=>e.localeCompare(t));let o=UT(n)??[...n.nodes].sort((e,t)=>e.localeCompare(t)),s=new Map;for(let[e,t]of o.entries())s.set(t,e);let l=new Map,u=new Map;for(let e of n.nodes)u.set(e,[]);for(let e of o){let t=(a.get(e)??[]).filter(e=>l.has(e));if(t.length>0){let n=YT(e,t,{laneOf:r,rankHint:i,topoIndex:s});l.set(e,n),u.get(n).push(e)}else l.has(e)||l.set(e,null)}for(let e of n.nodes)l.has(e)||l.set(e,null);let d=new Set;for(let e of n.nodes)(l.get(e)??null)===null&&d.add(e);let f=[...d].sort((e,t)=>{let n=s.get(e)??0,r=s.get(t)??0;return n===r?e.localeCompare(t):n-r}),p=XT(n),m=new Map;for(let[e,t]of p.entries())m.set(e,[...t].sort((e,t)=>e.localeCompare(t)));let h=hJe(m),g=gJe(m),_=new Map;for(let e of n.nodes)_.set(e,[]);for(let e of g)for(let t of e.nodes){let n=_.get(t);n?n.push(e.id):_.set(t,[e.id])}let v=[],y=[],b=new Set,x=N(e=>{if(!b.has(e)){b.add(e),v.push(e);for(let t of u.get(e)??[])x(t);y.push(e)}},`walk`);for(let e of f)x(e);for(let e of o)x(e);return{parent:l,children:u,roots:f,componentOf:h,blocks:g,nodeBlocks:_,adjacency:m,preorder:v,postorder:y,topologicalOrder:o}}function YT(e,t,n){let r=n.laneOf(e);return[...t].sort((e,t)=>{let i=n.laneOf(e),a=n.laneOf(t),o=i!=null&&i===r;if(o!==(a!=null&&a===r))return o?-1:1;let s=n.rankHint?.[e],l=n.rankHint?.[t];if(s!=null&&l!=null&&s!==l)return l-s;let u=n.topoIndex.get(e)??0,d=n.topoIndex.get(t)??0;return u===d?e.localeCompare(t):u-d})[0]}function XT(e){let t=new Map;for(let n of e.nodes)t.set(n,new Set);for(let n of e.edges)t.get(n.src).add(n.dst),t.get(n.dst).add(n.src);return t}function hJe(e){let t=new Map,n=0;for(let r of e.keys()){if(t.has(r))continue;let i=[r];for(;i.length>0;){let r=i.pop();if(!t.has(r)){t.set(r,n);for(let n of e.get(r)??[])t.has(n)||i.push(n)}}n++}return t}function gJe(e){let t=new Map,n=new Map,r=[],i=[],a=0,o=N((s,l)=>{t.set(s,++a),n.set(s,a);for(let u of e.get(s)??[])u!==l&&(t.has(u)?(t.get(u)??0)<(t.get(s)??0)&&(r.push([s,u]),n.set(s,Math.min(n.get(s)??a,t.get(u)??a))):(r.push([s,u]),o(u,s),n.set(s,Math.min(n.get(s)??a,n.get(u)??a)),(n.get(u)??0)>=(t.get(s)??0)&&i.push(_Je(s,u,r,i.length))))},`visit`);for(let n of e.keys())t.has(n)||o(n,null);return i}function _Je(e,t,n,r){let i=[],a=new Set;for(;n.length>0;){let r=n.pop();if(i.push(r),a.add(r[0]),a.add(r[1]),r[0]===e&&r[1]===t||r[0]===t&&r[1]===e)break}return{id:r,edges:i,nodes:[...a]}}function vJe(e,t,n){let r=[...e.nodes],i=new Map;for(let[e,t]of r.entries())i.set(t,e);let a=r.length,o=Array(a).fill(-1),s=Array(a).fill(0),l=[],u=new Set;for(let e of r){let t=n.parent.get(e)??null,r=i.get(e);r!=null&&(t??(o[r]=-1,s[r]=0,u.has(e)||(u.add(e),l.push(e))))}for(;l.length>0;){let e=l.shift(),t=i.get(e);if(t==null)continue;let r=n.children.get(e)??[];for(let e of r){if(u.has(e))continue;let n=i.get(e);n!=null&&(o[n]=t,s[n]=s[t]+1,u.add(e),l.push(e))}}for(let e of r){if(u.has(e))continue;let t=i.get(e);t!=null&&(o[t]=-1,s[t]=0,u.add(e))}let d=Math.max(1,Math.ceil(Math.log2(Math.max(1,a)))+1),f=Array.from({length:d},()=>Array(a).fill(-1));for(let e=0;e{if(e===-1||t===-1)return-1;s[e]>t&1&&(e=f[t][e],e===-1))return-1;if(e===t)return e;for(let n=d-1;n>=0;n--){let r=f[n][e],i=f[n][t];r!==-1&&i!==-1&&r!==i&&(e=r,t=i)}return f[0][e]},`lcaIndex`),m=Array.from({length:a},()=>new Map);for(let n of e.edges){let e=n.src,r=n.dst,a=t[e],o=t[r];if(a==null||o==null||(a>o&&([e,r]=[r,e],[a,o]=[o,a]),a==null||o==null||a===o))continue;let s=i.get(e),l=i.get(r);if(s==null||l==null)continue;let u=p(s,l);if(u===-1)continue;let d=m[u];for(let e=a;e{if(t.size!==0)for(let[n,r]of t)e.set(n,(e.get(n)??0)+r)},`mergeInto`),_=new Set,v=N(e=>{let r=i.get(e);_.add(e);let a=r==null?void 0:m[r],o=a?new Map(a):new Map,s=n.children.get(e)??[];for(let n of s){let r=v(n),i=t[e];if(i!=null){let a=h.get(e);a||(a=new Map,h.set(e,a));let o=r.get(i)??0,s=t[n];s!=null&&s>i&&(o+=1),a.set(n,o)}g(o,r)}return o},`dfs`);for(let e of n.roots)_.has(e)||v(e);for(let e of r)_.has(e)||v(e);return h}function yJe(e,t,n){let r=new Map,i=N(e=>{let a=n[e]??0,o=[...t.get(e)??[]];o.sort(bJe(n));for(let e of o){i(e);let t=r.get(e);t!=null&&(a=Math.min(a,t))}r.set(e,a)},`annotate`);for(let t of e)i(t);return r}function bJe(e){return(t,n)=>{let r=e[t]??0,i=e[n]??0;return r===i?t.localeCompare(n):r-i}}function xJe(e,t,n,r){let i=0;for(let e of t){let t=n[e]??0;t>i&&(i=t)}let a=Array.from({length:i+1},()=>[]),o=new Set,s=N(e=>{if(o.has(e))return;o.add(e);let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e);for(let t of r(e))s(t)},`emit`);for(let t of e)s(t);for(let e of t)if(!o.has(e)){let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e),o.add(e)}return a}function ZT(e){let t=[];for(let n of e){let e=new Set,r=[];for(let t of n)e.has(t)||(e.add(t),r.push(t));t.push(r)}return t}function SJe(e,t,n,r){return i=>{let a=e.get(i)??[];if(a.length===0)return[];let o=t[i]??0,s=[],l=[],u=n.get(i);for(let e of a){let t=r.get(e)??o;t>o?s.push({child:e,min:t}):l.push(e)}return s.sort((e,t)=>e.min===t.min?e.child.localeCompare(t.child):e.min-t.min),l.sort((e,t)=>{let n=u?.get(e)??0,i=u?.get(t)??0;if(n!==i)return n-i;let a=r.get(e)??o,s=r.get(t)??o;return a===s?e.localeCompare(t):a-s}),[...s.map(e=>e.child),...l]}}function CJe(e,t,n){let r=mJe(e,{rankHint:t,laneOf:n}),{children:i,roots:a}=r;for(let t of e.nodes)i.has(t)||i.set(t,[]);let o=vJe(e,t,r),s=[...a].sort(bJe(t)),l=SJe(i,t,o,yJe(s,i,t)),u=xJe(s,e.nodes,t,l);return u=ZT(u),u}function wJe(e,t,n){let r=new Set(e),i=new Set(t),a=WT(t),o=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&o.push(a.get(e.dst));return fJe(o)}function TJe(e,t,n){let r=[];for(let e of t){let t=n[e.src],i=n[e.dst];if(t==null||i==null||t===i)continue;let a=e.src,o=e.dst,s=t,l=i;t>i&&(a=e.dst,o=e.src,s=i,l=t);for(let t=s;t(n[t]??0)-(n[e]??0));for(let s of o){let o=n[s]??0;if(o===0)continue;let l=0;for(let e of r.get(s)??[])l=Math.max(l,(n[e]??0)+1);if(l>=o)continue;let u=o;n[s]=l;let d=TJe(CJe(e,n,i),e.edges,n);d(t[e]??0)-(t[n]??0)||e.localeCompare(n));for(let i of r){let r=n(i);if(!r)continue;let a=e.edges.filter(e=>e.src===i);if(a.length===0)continue;let o=!1,s=0;for(let e of a){let t=n(e.dst);t==null||t===r?o=!0:s++}if(s===0||o)continue;let l=0,u=!1;for(let t of e.edges){if(t.dst!==i)continue;let e=n(t.src);e&&(e===r?u=!0:l++)}if(l>0||!u)continue;let d=t[i]??0,f=d+s,p=0;for(let n of e.edges)n.dst===i&&(p=Math.max(p,(t[n.src]??0)+1));let m=Math.max(d,p,f);m!==d&&(t[i]=m)}}function QT(e,t){let n=RT(e),r=UT(n)??[...n.nodes].sort(),i=t?.compactSingleInput??!1,a=KT(n),o=Object.create(null);for(let e of r){let r=lJe(n,e),s=t?.ignoreCrossLaneEdges?r.filter(t=>{let n=a(t.src),r=a(e);return!n||!r||n===r}):r;if(s.length===0)o[e]=0;else if(i&&s.length===1){let t=s[0].src;a(t)===a(e)?o[e]=(o[t]??0)+1:o[e]=o[t]??0}else{let t=-1/0;for(let e of s)t=Math.max(t,(o[e.src]??0)+1);o[e]=t===-1/0?0:t}}return(t?.optimizeRanksByCrossings??!1)&&(o=EJe(n,o)),t?.ignoreCrossLaneEdges&&DJe(n,o),{layers:CJe(n,o,a),rankOf:o,dummy:new Set}}function OJe(e,t){let n=RT(e),r={...QT(n,{compactSingleInput:t?.compactSingleInput,ignoreCrossLaneEdges:t?.ignoreCrossLaneEdges,optimizeRanksByCrossings:t?.optimizeRanksByCrossings}).rankOf},i=KT(n),{preds:a,succs:o}=HT(n,e=>{if(t?.ignoreCrossLaneEdges){let t=i(e.src),n=i(e.dst);if(t&&n&&t!==n)return!1}return!0}),s=UT(n)??[...n.nodes],l=[...s].reverse(),u=N((e,t)=>{let n=0;for(let t of a.get(e)??[])n=Math.max(n,(r[t]??0)+1);let i=1/0,s=o.get(e)??[];return s.length>0&&(i=Math.min(...s.map(e=>(r[e]??0)-1))),Number.isFinite(i)||(i=Math.max(n,t)),Math.min(Math.max(t,n),i)},`clampFeasible`),d=DE.GRAVITY_ITERATIONS,f=N(e=>{let t=!1;for(let n of e){let e=a.get(n)??[],i=o.get(n)??[];if(e.length===0&&i.length===0)continue;let s=e.length>0?e.reduce((e,t)=>e+(r[t]??0)+1,0)/e.length:r[n]??0,l=i.length>0?i.reduce((e,t)=>e+(r[t]??0)-1,0)/i.length:r[n]??0,d=Math.round((s+l)/2),f=u(n,d);f!==r[n]&&(r[n]=f,t=!0)}return t},`relaxOrder`);for(let e=0;e0){let n=Math.min(...t.map(e=>(r[e]??0)-1));(r[e]??0)>n&&(r[e]=n)}}return{layers:dJe(n,s,r),rankOf:r,dummy:new Set}}function kJe(e){let t=uJe(e),n=BT(e),r=VT(e,t),i=[];for(;r.length>0;){let e=[];for(let a of r){i.push(a);for(let r of n.get(a)??[])t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0&&e.push(r)}r=e.sort((e,t)=>e.localeCompare(t))}return i.length===e.nodes.length?i:null}function $T(e,t){let n=RT(e),r=t?.direction===`LR`?kJe(n)??[...n.nodes].sort():UT(n)??[...n.nodes].sort(),i=KT(n),a=N(e=>i(e)??e,`laneOf`),o=Object.create(null),s=new Map,l=N((e,n)=>t?.ignoreCrossLaneEdges??!0?+(a(e)===a(n)):1,`edgeWeight`);for(let e of r){if(n.nodeById.get(e)?.isGroup)continue;let t=lJe(n,e),r=0;if(t.length>0)for(let n of t){let t=n.src,i=o[t]??0;r=Math.max(r,i+l(t,e))}let i=a(e),u=s.get(i)??0,d=Math.max(r,u);o[e]=d,s.set(i,d+1)}return{layers:dJe(n,r,o,{skipGroups:!0}),rankOf:o,dummy:new Set}}function AJe(e,t){let n=RT(t),{rankOf:r}=e,i=e.layers.map(e=>[...e]),a=new Set(e.dummy?[...e.dummy]:[]),o=0,s=new Map(n.nodeById),l=N(e=>{let t=`placeholder-${o++}`,n={id:t,isGroup:!1,isDummy:!0,width:0,height:0};for(s.set(t,n),a.add(t);i.length<=e;)i.push([]);return i[e].push(t),r[t]=e,t},`addDummyAt`),u=[...n.edges].sort((e,t)=>e.id===t.id?e.src===t.src?e.dst.localeCompare(t.dst):e.src.localeCompare(t.src):e.id.localeCompare(t.id)),d=[];for(let e of u){let t=r[e.src]??0,n=r[e.dst]??0;if(n-t<=1){d.push(e);continue}let i=e.src;for(let r=t+1,a=0;r!n.nodes.includes(e))],edges:d,layout:n.layout,nodeById:s};return{layering:{layers:i,rankOf:r,dummy:a},graphWithDummies:f}}function jJe(e){let t=e.length;if(t===0)return 1/0;let n=[...e].sort((e,t)=>e-t);return t%2==1?n[(t-1)/2]:.5*(n[t/2-1]+n[t/2])}function MJe(e){return e.length===0?1/0:e.reduce((e,t)=>e+t,0)/e.length}function eE(e,t,n,r){let i=new Map;for(let t of e)i.set(t,[]);for(let e of n)r===`down`?t.has(e.src)&&i.has(e.dst)&&i.get(e.dst).push(t.get(e.src)):t.has(e.dst)&&i.has(e.src)&&i.get(e.src).push(t.get(e.dst));return i}function tE(e,t,n){let r=n.get(e)??0,i=n.get(t)??0;return r===i?e.localeCompare(t):r-i}function NJe(e,t,n){let r=new Set(e),i=new Set(t),a=WT(e),o=WT(t),s=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&s.push({u:a.get(e.src),v:o.get(e.dst)});return s.sort((e,t)=>e.u===t.u?e.v-t.v:e.u-t.u),fJe(s.map(e=>e.v))}function PJe(e,t,n){return[...e].sort((e,r)=>{let i=jJe(t.get(e)??[]),a=jJe(t.get(r)??[]);return i===a?tE(e,r,n):isFinite(i)?isFinite(a)?i-a:-1:1})}function FJe(e,t,n,r,i,a){let o=WT(e),s=WT(t),l=eE(t,o,n,r);if(!i||!a||a.length===0)return PJe(t,l,s);let u=new Map;for(let e of t){let t=i(e),n=u.get(t)??[];n.push(e),u.set(t,n)}let d=[];for(let e of a){let t=u.get(e);if(!t||t.length===0)continue;let n=PJe(t,l,s);d.push(...n)}let f=u.get(null);if(f&&f.length>0){let e=PJe(f,l,s);for(let t of e){let e=MJe(l.get(t)??[]),n=d.length;if(isFinite(e)){for(let[t,r]of d.entries())if(eo.has(e.src)&&s.has(e.dst)),d=l?n.filter(e=>s.has(e.src)&&l.has(e.dst)):void 0,f=N(t=>{let n=NJe(e,t,u);return d&&r&&(n+=NJe(t,r,d)),n},`crossingScore`),p=i?new Map:null;if(i&&p)for(let e of t)p.set(e,i(e));let m=!0,h=f(a);for(;m;){m=!1;for(let e=0;e+1[...e]),i=t.edges,a=KT(t),o=JT(t,n?.laneOrder);for(let e=0;e<3;e++){for(let e=1;e=0;e--)r[e]=FJe(r[e+1],r[e],i,`up`,a,o),r[e]=nE(r[e+1],r[e],i,r[e-1],a)}return{layers:r}}function LJe(e,t,n){let r=n?.layerGap??nYe.DEFAULT_LAYER_GAP,i=n?.nodeGap??nYe.DEFAULT_NODE_GAP,a=n?.laneGap??i*2,o=n?.direction??`TB`,s=o===`LR`||o===`RL`,l=e.layers,u=Object.create(null),d=Object.create(null),f=N(e=>t.nodeById.get(e),`getNode`),p=N(e=>f(e)?.width??0,`getWidth`),m=N(e=>f(e)?.height??0,`getHeight`),h=KT(t),g=JT(t,n?.laneOrder),_=l.map(e=>e.reduce((e,t)=>Math.max(e,m(t)),0)),v=[];if(s)for(let e=0;e+1Math.max(e,p(t)),0),n=l[e+1].reduce((e,t)=>Math.max(e,p(t)),0),i=_[e],a=_[e+1],o=i/2+a/2,s=(t+n)/2,u=Math.max(0,s-o-r);v.push(u)}let y=new Set;for(let e of l)for(let t of e)y.add(h(t));let b=y.has(null),x=g.filter(e=>y.has(e)),S=[...b?[null]:[],...x],C=Object.create(null);for(let e of x)C[e]=0;b&&(C.null=0);for(let e of l){let t=Object.create(null),n=[];for(let r of e){let e=h(r);e===null?n.push(r):(t[e]||=[]).push(r)}for(let[e,n]of Object.entries(t)){let t=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C[e]=Math.max(C[e]??0,t)}if(b&&n.length){let e=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C.null=Math.max(C.null??0,e)}}let w=new Map;{let e=S.map(e=>(e===null?C.null:C[e])??0),t=-(e.reduce((e,t)=>e+t,0)+a*Math.max(0,S.length-1))/2;for(let n=0;np(e)),a=r-(e.reduce((e,t)=>e+t,0)+i*(t.length-1))/2;for(let[r,o]of t.entries()){let t=e[r];u[o]=a+t/2,d[o]=T+n/2,a+=t+i}}}let o=v[e]??0;T+=n+r+o}let E=new Map;for(let e of t.edges){let t=e.ref.id;E.has(t)||E.set(t,[]),E.get(t).push(e)}for(let[,e]of E){if(e.length===0)continue;let n=e[0].ref,r=n.start,i=n.end;if(r==null||i==null)continue;let a=Math.round(((u[r]??0)+(u[i]??0))/2),o=new Set;for(let t of e)o.add(t.src),o.add(t.dst);for(let e of o)e!==r&&e!==i&&t.nodeById.get(e)?.isDummy&&(u[e]=a)}return{x:u,y:d}}function RJe(e){let t=2166136261;for(let n=0;n>>0}function zJe(e){let t=e>>>0;return()=>{t+=1831565813;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function BJe(e,t){let n=[...e],r=zJe(t);for(let e=n.length-1;e>0;e--){let t=Math.floor(r()*(e+1));[n[e],n[t]]=[n[t],n[e]]}return n}function VJe(e,t){let n=0;for(let[r,i]of e.entries())n+=Math.abs(r-(t.get(i)??r));return n}function HJe(e,t){let n=new Map;for(let[t,r]of e.entries())n.set(r,t);let r=0;for(let{a:e,b:i,weight:a}of t){let t=n.get(e),o=n.get(i);t!=null&&o!=null&&(r+=a*Math.abs(t-o))}return r}function UJe(e){let t=qT(e);if(t.length<2)return[];let n=new Map(t.map((e,t)=>[e,t])),r=KT(e),i=new Map;for(let t of e.layout.edges??[]){if(t.isLayoutOnly)continue;let a=typeof t.start==`string`?t.start:void 0,o=typeof t.end==`string`?t.end:void 0;if(!a||!o||!e.nodeById.has(a)||!e.nodeById.has(o))continue;let s=r(a),l=r(o);if(!s||!l||s===l)continue;let u=n.get(s),d=n.get(l);if(u==null||d==null)continue;let[f,p]=u<=d?[s,l]:[l,s],m=`${f}\0${p}`,h=i.get(m);h?h.weight++:i.set(m,{a:f,b:p,weight:1})}return[...i.values()]}function WJe(e,t,n){let r=[...e],i=HJe(r,t),a=!0,o=0,s=Math.max(1,r.length);for(;a&&oe.a===t.a?e.b.localeCompare(t.b):e.a.localeCompare(t.a)).map(({a:e,b:t,weight:n})=>`${e}:${t}:${n}`).join(`|`);return RJe(`${e.join(`|`)}#${r}#${n}`)}function qJe(e,t={}){let n=qT(e);if(n.length<2)return n;let r=UJe(e);if(r.length===0)return n;let i=new Map(n.map((e,t)=>[e,t])),a=WJe(n,r,i),o=Math.max(0,t.restarts??rYe);for(let e=0;eOE&&l*3>=s?o>0?`bottom`:`top`:s>OE?a>0?`right`:`left`:n}function iE(e,t){return Math.abs(e.to-t.from)e.isGroup&&!e.parentId);for(let e of u){let t={id:e.id},r=N(e=>{o.set(e.id,t),n.filter(t=>t.parentId===e.id).forEach(r)},`assignLane`);r(e)}let d=n.filter(e=>!e.isGroup&&!e.isEdgeLabel).map(e=>{let t=e.width??10,n=e.height??10,r=e.x??0,i=e.y??0,a=iYe;return{nodeId:e.id,minX:r-t/2-a,maxX:r+t/2+a,minY:i-n/2-a,maxY:i+n/2+a,visualXHalfExtent:l?n/2+a:t/2+a}}),f=N((e,t,n,r)=>{let i=s.find(n=>n.orientation===e&&Math.abs(n.coord-t)<1);return i||(i={id:`pipe-${e}-${t.toFixed(0)}`,orientation:e,coord:t,spanMin:n,spanMax:r,tracks:[]},s.push(i)),i.spanMin=Math.min(i.spanMin,n),i.spanMax=Math.max(i.spanMax,r),i},`getOrAddPipe`),p=N((e,t)=>{let n=e.width??10,r=e.height??10,i=e.x??0,a=e.y??0;switch(t){case`top`:return{x:i,y:a-r/2};case`bottom`:return{x:i,y:a+r/2};case`left`:return{x:i-n/2,y:a};case`right`:return{x:i+n/2,y:a}}},`portForSide`),m=N((e,t,n)=>p(e,rE(e,t,n?`bottom`:`top`)),`getOrthogonalPort`),h=[],g=[],_=new Set,v=1e3,y=N((e,t,n)=>{if(h.length===0)return 0;let r=Math.abs(t.y-n.y)o||t.from-OE<=r&&t.to+OE>=r&&(a+=v))}else if(i){let r=t.x,i=Math.min(t.y,n.y)-OE,o=Math.max(t.y,n.y)+OE;if(o<=i)return 0;for(let t of h)t.edgeIndex!==e&&t.orientation===`horizontal`&&(t.pipe.coordo||t.from-OE<=r&&t.to+OE>=r&&(a+=v))}return a},`crossingPenalty`),b=i.map((e,t)=>{if(!e.start||!e.end)return{idx:t,crossLane:0,dx:0,dy:0};let n=a.get(e.start),r=a.get(e.end),i=o.get(e.start),s=o.get(e.end);return{idx:t,crossLane:i&&s&&i.id!==s.id?1:0,dx:n&&r?Math.abs((r.x??0)-(n.x??0)):0,dy:n&&r?Math.abs((r.y??0)-(n.y??0)):0}}).sort((e,t)=>{if(e.crossLane!==t.crossLane)return t.crossLane-e.crossLane;let n=e.dx+e.dy,r=t.dx+t.dy;return Math.abs(n-r)>1?n-r:e.idx-t.idx}).map(e=>e.idx),x=N((e,t,n,r)=>{let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return!!d.find(l=>n&&l.nodeId===n||r&&l.nodeId===r?!1:Math.abs(e.x-t.x)>OE?l.minYe.y&&l.maxX>i&&l.minXe.x&&l.maxY>o&&l.minYrE(e,t,`bottom`),`determineSide`),T=new Map;for(let[e,t]of i.entries()){if(!t.start||!t.end||t.start===t.end||t.points&&t.points.length>0)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let i=(r.x??0)-(n.x??0),o=(r.y??0)-(n.y??0);T.set(e,{edgeIdx:e,srcId:t.start,dstId:t.end,srcSide:w(n,{x:r.x??0,y:r.y??0}),dstSide:w(r,{x:n.x??0,y:n.y??0}),absDx:Math.abs(i),absDy:Math.abs(o),dxSign:Math.sign(i),dySign:Math.sign(o)})}let E=N(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.absDx===0?1/0:e.absDy/e.absDx:e.absDy===0?1/0:e.absDx/e.absDy,`preferenceStrength`),D=N(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.dxSign>=0?`right`:`left`:e.dySign>=0?`bottom`:`top`,`secondarySide`),O=new Map;for(let e of T.values()){let t=`${e.srcId}:${e.srcSide}`;O.has(t)||O.set(t,[]),O.get(t).push(e)}let k=new Map,A=N((e,t)=>`${e}:${t}`,`loadKey`);for(let e of T.values())k.set(A(e.srcId,e.srcSide),(k.get(A(e.srcId,e.srcSide))??0)+1),k.set(A(e.dstId,e.dstSide),(k.get(A(e.dstId,e.dstSide))??0)+1);for(let e of O.values())if(!(e.length<2)){e.sort((e,t)=>{let n=E(e),r=E(t);return Math.abs(n-r)>1e-9?r-n:e.edgeIdx-t.edgeIdx});for(let t=1;t=i||(k.set(A(n.srcId,n.srcSide),i-1),k.set(A(n.srcId,r),a+1),n.srcSide=r)}}let j=N(e=>{let t=e?.shape;return t===`question`||t===`diamond`},`isDiamondNode`),M=new Map;for(let e of T.values())M.has(e.dstId)||M.set(e.dstId,new Set),M.get(e.dstId).add(e.dstSide);for(let e of T.values()){if(!j(a.get(e.srcId)))continue;let t=M.get(e.srcId);if(!t?.has(e.srcSide))continue;let n=D(e);if(t.has(n)||(k.get(A(e.srcId,n))??0)>0)continue;let r=k.get(A(e.srcId,e.srcSide))??0;k.set(A(e.srcId,e.srcSide),Math.max(0,r-1)),k.set(A(e.srcId,n),1),e.srcSide=n}for(let e of T.values()){let{edgeIdx:t,srcId:n,dstId:r,srcSide:i,dstSide:o}=e,s=a.get(n),l=a.get(r),u=`${n}:${i}:src`,d=i===`top`||i===`bottom`?l.x??0:l.y??0;S.has(u)||S.set(u,[]),S.get(u).push({edgeIdx:t,oppositeCoord:d});let f=`${r}:${o}:dst`,p=o===`top`||o===`bottom`?s.x??0:s.y??0;S.has(f)||S.set(f,[]),S.get(f).push({edgeIdx:t,oppositeCoord:p})}let ee=new Map;for(let[e,t]of S){if(t.length<2)continue;t.sort((e,t)=>e.oppositeCoord-t.oppositeCoord);let n=e.split(`:`),r=n.slice(0,-2).join(`:`),i=n[n.length-2],o=n[n.length-1],s=a.get(r);if(!s)continue;let l=i===`left`||i===`right`?s.height??10:s.width??10,u=s.shape,d=u===`question`||u===`diamond`?l*.3:l,f=Math.min(20,Math.max(8,d/(t.length+1))),p=-(f*(t.length-1))/2;for(let[e,n]of t.entries()){let t=p+e*f,r=`${n.edgeIdx}:${o}`;ee.set(r,t)}}let te=N(e=>!!i[e]?.labelNodeId,`edgeHasLabelNode`),ne=N((e,t)=>e?(S.get(`${e}:${t}:src`)??[]).some(({edgeIdx:e})=>te(e))||(S.get(`${e}:${t}:dst`)??[]).some(({edgeIdx:e})=>te(e)):!1,`faceHasLabelNode`),re=N((e,t,n)=>t===`top`||t===`bottom`?{x:e.x+n,y:e.y}:{x:e.x,y:e.y+n},`applyPortOffset`),ie=N((e,t,n)=>{let r=T.get(e),i={x:n.x??0,y:n.y??0},a={x:t.x??0,y:t.y??0},o=r?.srcSide??w(t,i),s=r?.dstSide??w(n,a),l=r?p(t,r.srcSide):m(t,i,!0),u=r?p(n,r.dstSide):m(n,a,!1),d=ee.get(`${e}:src`),f=ee.get(`${e}:dst`);return d!==void 0&&(l=re(l,o,d)),f!==void 0&&(u=re(u,s,f)),{pSrcPort:l,pDstPort:u,srcSide:o,dstSide:s}},`portsForEdge`);for(let e of b){let t=i[e];if(g[e]=[],!t.start||!t.end||t.points&&t.points.length>0||t.start===t.end)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let{pSrcPort:o,pDstPort:u,srcSide:p,dstSide:m}=ie(e,n,r),v={...o},b={...u},w=p===`top`||p===`bottom`,T=m===`top`||m===`bottom`;w?v.y=o.y>(n.y??0)?o.y+ME:o.y-ME:v.x=o.x>(n.x??0)?o.x+ME:o.x-ME,T?b.y=u.y>(r.y??0)?u.y+ME:u.y-ME:b.x=u.x>(r.x??0)?u.x+ME:u.x-ME;let E=N((e,t)=>{for(let n of d)if(!t.includes(n.nodeId)&&e.x>n.minX&&e.xn.minY&&e.y{if(i){let i=e.y>(t.y??0);return{x:(n.x??0)>=e.x?r.maxX+kE:r.minX-kE,y:i?r.maxY+AE:r.minY-AE,leavesPositiveSide:i}}let a=e.x>(t.x??0),o=(n.y??0)>=e.y;return{x:a?r.maxX+kE:r.minX-kE,y:o?r.maxY+AE:r.minY-AE,leavesPositiveSide:a}},`obstacleDetour`),O=[],k=[t.start,t.end],A=E(v,k);if(A.inside&&A.obstacle){let e=A.obstacle;if(w){let t=D(o,n,r,e,!0);v.x=t.x,v.y=t.y;let i=t.leavesPositiveSide?Math.min(e.minY-2,o.y+ME):Math.max(e.maxY+2,o.y-ME);O=[{x:o.x,y:i},{x:t.x,y:i},{x:t.x,y:t.y}]}else{let t=D(o,n,r,e,!1),i=t.leavesPositiveSide?Math.min(e.minX-2,o.x+ME):Math.max(e.maxX+2,o.x-ME);v.x=t.x,v.y=t.y,O=[{x:i,y:o.y},{x:i,y:t.y},{x:t.x,y:t.y}]}}let j=[],M=E(b,k);if(M.inside&&M.obstacle){let e=M.obstacle;if(T){let t=D(u,r,n,e,!0);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:u.x,y:t.y}]}else{let t=D(u,r,n,e,!1);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:t.x,y:u.y}]}}if(O.length===0&&j.length===0){let n=kE,r=Math.abs(v.x-b.x)1||l>1,f=C.get(t.start??``)??0,g=C.get(t.end??``)??0,y=s>1&&ne(t.start,p)||l>1&&ne(t.end,m);if((r||i)&&!a&&(!d||d&&!y&&(s<=1||f<=2)&&(l<=1||g<=2))&&!x(o,u,t.start,t.end)){t.points=[{...o},{...v},{...b},{...u}],_.add(e);let n=i?`horizontal`:`vertical`,r=i?o.y:o.x,a=i?Math.min(o.x,u.x):Math.min(o.y,u.y),s=i?Math.max(o.x,u.x):Math.max(o.y,u.y),l={id:`fast-path-${n}-${r.toFixed(0)}-${e}`,orientation:n,coord:r,spanMin:a,spanMax:s,tracks:[]};h.push({edgeIndex:e,segmentIndex:0,orientation:n,pipe:l,trackIndex:0,from:a,to:s});continue}}v.x=f(`vertical`,v.x,v.y,v.y).coord,b.x=f(`vertical`,b.x,b.y,b.y).coord;let te=Math.min(v.x,b.x)-50,re=Math.max(v.x,b.x)+50,ae=Math.min(v.y,b.y)-50,oe=Math.max(v.y,b.y)+50;for(let e of d){let t=Math.min(v.x,b.x),n=Math.max(v.x,b.x),r=Math.min(v.y,b.y),i=Math.max(v.y,b.y);e.minXt&&e.minYr&&(te=Math.min(te,e.minX-jE),re=Math.max(re,e.maxX+jE),ae=Math.min(ae,e.minY-jE),oe=Math.max(oe,e.maxY+jE))}for(let e of d){if(e.maxXre||e.maxYoe)continue;let t=kE;f(`horizontal`,e.minY-t,te,re),f(`horizontal`,e.maxY+t,te,re);let n=AE;f(`vertical`,e.minX-n,ae,oe),f(`vertical`,e.maxX+n,ae,oe)}f(`horizontal`,v.y,te,re),f(`horizontal`,b.y,te,re);let se=s.filter(e=>e.orientation===`horizontal`&&e.coord>=ae&&e.coord<=oe),ce=s.filter(e=>e.orientation===`vertical`&&e.coord>=te&&e.coord<=re),le=N((e,t)=>`${e.toFixed(1)},${t.toFixed(1)}`,`getKey`),ue=le(v.x,v.y),de=le(b.x,b.y),fe=new Map,pe=new Map,me=new Map,he=new Set,ge=[];fe.set(ue,0),me.set(ue,`n`),ge.push({key:ue,f:Math.hypot(b.x-v.x,b.y-v.y),pt:v}),he.add(ue);let _e=[],ve=N((e,n)=>x(e,n,t.start,t.end),`checkSegmentBlocked`),ye={x:b.x,y:v.y},be=ve(v,ye),xe=ve(ye,b),Se=be||xe,Ce={x:v.x,y:b.y},we=ve(v,Ce),Te=ve(Ce,b);if(Se?we||Te||(_e=Math.abs(v.x-b.x)0;){ge.sort((e,t)=>e.f-t.f);let n=ge.shift();if(he.delete(n.key),n.key===de){let e=de,t=b;for(_e=[t];pe.has(e);){let n=pe.get(e);_e.unshift(n),t=n,e=le(n.x,n.y)}break}let r=n.pt.x,i=n.pt.y,a=ce.sort((e,t)=>e.coord-t.coord),o=a.findIndex(e=>Math.abs(e.coord-r)<1),s=se.sort((e,t)=>e.coord-t.coord),l=s.findIndex(e=>Math.abs(e.coord-i)<1),u=[];o>0&&u.push({x:a[o-1].coord,y:i}),o>=0&&o0&&u.push({x:r,y:s[l-1].coord}),l>=0&&le.nodeId===t.start||e.nodeId===t.end?!1:o===s?e.minXr&&e.maxY>l&&e.minYi&&e.maxX>o&&e.minX10&&S<-5||_<-10&&S>5)&&(h=Math.abs(S)*100),(g>10&&x<-5||g<-10&&x>5)&&(h+=Math.abs(x)*50);let C=0,w=me.get(n.key)??`n`,T=Math.abs(x)>OE?`h`:`v`;w!==`n`&&w!==T&&(C=50);let E=p+m+h+C,D=(fe.get(n.key)??1/0)+E,O=Math.abs(b.x-a.x)+Math.abs(b.y-a.y);if(D<(fe.get(f)??1/0)){if(pe.set(f,n.pt),fe.set(f,D),me.set(f,T),!he.has(f))ge.push({key:f,f:D+O,pt:a}),he.add(f);else{let e=ge.findIndex(e=>e.key===f);e!==-1&&(ge[e].f=D+O)}}}}if(_e.length===0&&(_e=[v,{x:v.x,y:b.y},b]),_e.length>4){let e=_e[0],t=_e[_e.length-1],n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y);for(let e of _e)n=Math.min(n,e.x),r=Math.max(r,e.x),i=Math.min(i,e.y),a=Math.max(a,e.y);let o=r>Math.max(e.x,t.x),s=ne.minXn&&e.minYa);if(s.length>0){let n=Math.max(e.x,t.x);for(let e of s){let t=(e.minX+e.maxX)/2;if(e.visualXHalfExtent===void 0||isNaN(e.visualXHalfExtent))continue;let r=t+e.visualXHalfExtent+i;n=Math.max(n,r)}isNaN(n)||(r=n)}}if(s){let r=d.filter(n=>n.minXMath.min(e.y,t.y));if(r.length>0){let a=Math.min(e.x,t.x);for(let e of r){let t=(e.minX+e.maxX)/2-e.visualXHalfExtent-i;a=Math.min(a,t)}n=a}}}let u=N(n=>{let r=t.y>e.y,i=d.filter(n=>{let r=Math.min(e.x,t.x)n.minX,i=Math.min(e.y,t.y)n.minY;return r&&i}),a=i;if(l&&i.length>0){let e=i.filter(e=>e.minXn);e.length>0&&(a=e)}if(a.length===0)return t.y;let o=kE;if(r){let e=Math.max(...a.map(e=>e.maxY))+o;if(ee.minY))-o;if(e>t.y+OE)return e}return t.y},`findBestReturnY`),f=N(n=>{let r=u(n),i={x:n,y:e.y},a={x:n,y:r},o={x:t.x,y:r},s=ve(e,i),l=ve(i,a),d=ve(a,o),f=r!==t.y&&ve(o,t);return!s&&!l&&!d&&!f?Math.abs(r-t.y)=3){let e=Ee[Ee.length-1],t=Ee[Ee.length-2],n=Ee[Ee.length-3],r=Math.abs(n.y-t.y)Math.abs(e.x-n.x)&&Ee.splice(-2,1)}else if(i){let r=Math.sign(t.y-n.y),i=Math.sign(e.y-n.y);r!==0&&r===i&&Math.abs(t.y-n.y)>Math.abs(e.y-n.y)&&Ee.splice(-2,1)}}let De=[Ee[0]];for(let e=1;et.x!=r.x>n.x){De.push(n);continue}continue}if(Math.abs(t.x-n.x)t.y!=r.y>n.y){De.push(n);continue}continue}De.push(n)}De.push(Ee[Ee.length-1]);for(let t=0;te.from{let i=!r.segments.some(n=>(n.edgeIndex!==t.edgeIndex||n.segmentIndex!==t.segmentIndex)&&ae(n,e)),a=!n.segments.some(n=>(n.edgeIndex!==e.edgeIndex||n.segmentIndex!==e.segmentIndex)&&ae(n,t));return i&&a?(e.trackIndex=r.index,t.trackIndex=n.index,n.segments=[...n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),{edgeIndex:t.edgeIndex,segmentIndex:t.segmentIndex,from:t.from,to:t.to}],r.segments=[...r.segments.filter(e=>e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex),{edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to}],!0):!1},`trySwapSegmentsAcrossTracks`),se=N(e=>{let t=e.tracks.length;return e.tracks[t]={index:t,coord:e.coord,segments:[]},t},`createNewTrack`),ce=N((e,t)=>{let n=e.pipe.tracks[e.trackIndex];n.segments=n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),e.trackIndex=t,e.pipe.tracks[t].segments.push({edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to})},`moveSegmentToTrack`),le=N((e,t)=>{let n=g[e.edgeIndex];for(let r of n){let n=h[r];n.pipe===e.pipe&&ce(n,t)}},`moveSegmentChainToTrack`),ue=N(e=>{let t=g[e.edgeIndex],n=t.indexOf(h.indexOf(e)),r=[];return n>0&&r.push(h[t[n-1]]),n{if(e.orientation===t.orientation)return!1;let n=e.orientation===`horizontal`?e:t,r=e.orientation===`horizontal`?t:e;return r.pipe.coord>n.from&&r.pipe.coordr.from&&n.pipe.coord{for(let n of e.tracks)if(!n.segments.some(e=>(e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex)&&ae(e,t)))return n.index;return-1},`findAvailableTrack`),pe=N((e,t)=>{if(e.trackIndex===t.trackIndex)return ae(e,t);let n=ue(e),r=ue(t);return n.some(e=>r.some(t=>de(e,t)))},`segmentsConflict`),me=N((e,t,n)=>{if(oe(e,t,e.pipe.tracks[e.trackIndex],t.pipe.tracks[t.trackIndex]))return;let r=fe(e.pipe,t);n(t,r===-1?se(e.pipe):r)},`resolveTrackConflict`),he=N(e=>{let t=0;for(let n=0;n{if(ge.has(e))return ge.get(e);let t=g[e];if(t.length===0){let t={dest:0,deviation:0,base:0,delta:0};return ge.set(e,t),t}let n=h[t[0]].pipe.coord,r=n;for(let e=1;eMath.abs(t-n)?e:t;break}}let i=Math.abs(r-n),a={dest:r,deviation:i,base:n,delta:r-n};return ge.set(e,a),a},`getDestInfo`),ve=N(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.start&&(t.has(n.start)||t.set(n.start,[]),t.get(n.start).push(e));let n=N(e=>{let t=i[e];if(!t.start||!t.end)return 0;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)return 0;let o=(r.x??0)-(n.x??0),s=(r.y??0)-(n.y??0);return Math.abs(o)+Math.abs(s)},`getEdgeDistance`);for(let r of t.values()){r.sort((e,t)=>{let r=_e(e),i=_e(t);if(Math.abs(r.deviation-i.deviation)>1)return r.deviation-i.deviation;if(Math.abs(r.dest-i.dest)>1)return r.dest-i.dest;let a=n(e),o=n(t);if(Math.abs(a-o)>1)return o-a;let s=g[e].length,l=g[t].length;if(s!==l)return s-l;if(s===1){let n=g[e][0],r=g[t][0];if(h[n]&&h[r]){let e=h[n],t=h[r],i=Math.abs(e.to-e.from),a=Math.abs(t.to-t.from);if(Math.abs(i-a)>1)return i-a}}return 0});let t=r.map(e=>h[g[e][0]]);e+=he(t)}return e},`fixSourceHandleCrossings`),ye=N(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.end&&(t.has(n.end)||t.set(n.end,[]),t.get(n.end).push(e));for(let n of t.values()){n.sort((e,t)=>{let n=N(e=>{let t=g[e];if(t.length<2)return 0;let n=h[t[t.length-2]];return Math.abs(n.to-n.from)},`getDist`),r=n(e),i=n(t);return Math.abs(r-i)>.1?r-i:e-t});let t=n.map(e=>h[g[e][g[e].length-1]]);e+=he(t)}return e},`fixTargetHandleCrossings`),be=N(()=>{let e=0;for(let t of s){let n=[];for(let e of t.tracks)for(let t of e.segments){let e=g[t.edgeIndex].find(e=>h[e].segmentIndex===t.segmentIndex);e!==void 0&&n.push(h[e])}n.sort((e,t)=>e.edgeIndex-t.edgeIndex||e.segmentIndex-t.segmentIndex);for(let t=0;t{e.segments.forEach(n=>{t.push({edgeIndex:n.edgeIndex,segmentIndex:n.segmentIndex,trackIndex:e.index,from:n.from,to:n.to})})}),t.sort((e,t)=>e.from-t.from);let n=[];if(t.length>0){let e=[t[0]],r=t[0].to;for(let i=1;in.add(e.trackIndex));let r=new Map;t.forEach(e=>{let t=_e(e.edgeIndex);r.set(e.trackIndex,(r.get(e.trackIndex)??0)+t.delta)});let i=[...n].filter(e=>(r.get(e)??0)<-1),a=[...n].filter(e=>(r.get(e)??0)>1),o=[...n].filter(e=>Math.abs(r.get(e)??0)<=1);i.sort((e,t)=>(r.get(t)??0)-(r.get(e)??0)),a.sort((e,t)=>(r.get(e)??0)-(r.get(t)??0));let s=N((n,r)=>{t.filter(e=>e.trackIndex===n).forEach(t=>{let n=_.has(t.edgeIndex)?e.coord:r;Se.set(`${t.edgeIndex}-${t.segmentIndex}`,n)})},`assignCoord`),l=0;for(let t of i)l++,s(t,e.coord-l*aYe);if(o.length===0&&n.size>0){let e=[...n].sort((e,t)=>Math.abs(r.get(e)??0)-Math.abs(r.get(t)??0))[0],t=i.indexOf(e);t!==-1&&i.splice(t,1);let s=a.indexOf(e);s!==-1&&a.splice(s,1),o.push(e)}let u=0;for(let t of o){if(u===0)s(t,e.coord);else{let n=u%2==1?1:-1,r=Math.ceil(u/2);s(t,e.coord+n*r*aYe*.5)}u++}let d=0;for(let t of a)d++,s(t,e.coord+d*aYe)}}for(let[e,t]of i.entries()){let n=g[e]??[];if(n.length===0)continue;let r=[],{pSrcPort:i,pDstPort:o}=ie(e,a.get(t.start),a.get(t.end)),s=n.map(e=>{let t=h[e],n=Se.get(`${t.edgeIndex}-${t.segmentIndex}`)??t.pipe.coord;return{orient:t.orientation,coord:n,from:t.from,to:t.to}});r.push(i);for(let e=0;eOE&&r.push(aE(t,i)),l&&o.orient===t.orient){if(Math.abs(t.coord-o.coord)>OE){let e=t.orient===`vertical`?(i+o.from)/2:iE(t,o);r.push(aE(t,e),aE(o,e))}else(e===0||e===s.length-2)&&r.push(aE(t,iE(t,o)))}else if(l)r.push(aE(t,o.coord));else{let e=Math.abs(t.from-i)OE||Math.abs(l.y-o.y)>OE)&&r.push(o);let u=[];r.length>0&&u.push(r[0]);for(let e=1;eOE||Math.abs(t.y-n.y)>OE)&&u.push(t)}t.points=u}for(let e of i){let t=e.__originalEdge;t&&e.points&&(t.points=e.points)}e.edges=(e.edges??[]).filter(e=>!e.isLayoutOnly);let Ce=N((e,t)=>{let n=t.x??0,r=t.y??0,i=t.width??0,a=t.height??0;if(i<=0||a<=0)return e;let o=n-i/2,s=n+i/2,l=r-a/2,u=r+a/2;if(e.xs||e.yu)return e;let d=e.x-o,f=s-e.x,p=e.y-l,m=u-e.y,h=Math.min(d,f,p,m);return h===d?{x:o,y:e.y}:h===f?{x:s,y:e.y}:h===p?{x:e.x,y:l}:{x:e.x,y:u}},`nodeBoundaryClamp`);for(let t of e.edges){let e=t.points;if(!e||e.length<2)continue;let n=t.start,r=t.end,i=n?a.get(n):void 0,o=r?a.get(r):void 0;i&&(e[0]=Ce(e[0],i)),o&&(e[e.length-1]=Ce(e[e.length-1],o))}return e}function sE(e){return e.direction??`TB`}function cE(e){let t=gqe(e),n=e.config.flowchart?.nodeSpacing??40,r=e.config.flowchart?.rankSpacing??100,i=e.config.swimlane?.ignoreCrossLaneEdges??!0,a=e.config.swimlane?.optimizeRanksByCrossings??!0,o=e.config.swimlane?.automaticLaneOrdering??!1,s=sE(e),{ordered:l,coordinates:u}=K(t,{nodeGap:n,layerGap:r,ignoreCrossLaneEdges:i,optimizeRanksByCrossings:a,automaticLaneOrdering:o,direction:s});_qe(t,l,u,{nodeGap:n,layerGap:r});for(let t of e.edges??[])delete t.points;oE(e,s);for(let t of e.edges??[])(!t.curve||t.curve===`basis`)&&(t.curve=`rounded`);return LT(e,s),cJe(e),s}function JJe(e){hqe(e);let t=vqe(e);e.nodes=t.nodes,e.edges=t.edges}var lE,YJe,uE,XJe,dE,fE,ZJe,QJe,pE,mE,$Je,hE,gE,_E,vE,eYe,yE,bE,xE,SE,CE,wE,TE,EE,tYe,DE,nYe,rYe,OE,iYe,kE,AE,jE,ME,aYe,oYe,sYe=o((()=>{Cv(),pUe(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),N(Uw,`applySwimlaneLineJumps`),lE=`__swimlane_default__`,YJe=21,uE=20,N(Ww,`topLaneHorizontalPadding`),N(mqe,`assignTopLaneTitleRect`),N(hqe,`prepareLayoutForSwimlanes`),N(gqe,`toGraphView`),N(_qe,`writeBackToLayoutData`),XJe=`[EdgeLabelNodes]`,N(vqe,`createEdgeLabelNodes`),dE=.001,N(yqe,`measuredNodeRect`),N(bqe,`nodeBoundsInfoFor`),N(Gw,`samePoint`),N(Kw,`sameX`),N(qw,`sameY`),N(Jw,`isHorizontalSegment`),N(Yw,`isVerticalSegment`),N(Xw,`overlapLength`),N(Zw,`sameAxisSegmentOverlapLength`),N(Qw,`orthogonalSegmentsForPoints`),N($w,`countOrthogonalBends`),N(eT,`dedupeConsecutivePoints`),N(xqe,`classifyThreeSegmentRoute`),N(tT,`segmentBoundsOverlapRect`),N(Sqe,`pointInsideRect`),N(nT,`rectContainsRect`),N(rT,`rectsOverlap`),N(Cqe,`inflateRect`),N(iT,`rectFromCenterSize`),N(aT,`rectOfNodeBounds`),N(oT,`portForRectSide`),N(sT,`buildOrthogonalPortPath`),N(wqe,`buildSameSideTrackPath`),N(Tqe,`collectRealNodeBounds`),N(cT,`collectNodeRectEntries`),N(lT,`collectLayoutNodeRects`),N(Eqe,`getNodePairGeometry`),N(uT,`segmentHitsAnyRect`),N(dT,`orthogonalSegmentsCross`),N(fT,`sameAxisSegmentsOverlap`),N(pT,`segmentConflictsWithAnyEdge`),N(mT,`orthogonalSegmentsStrictlyCross`),N(Dqe,`strictlyBetween`),N(hT,`isCollinearIntermediate`),N(gT,`simplifyPolylineOnce`),N(Oqe,`orthogonalizePolyline`),N(_T,`simplifyPolyline`),fE=.001,ZJe=.5,QJe=4,N(kqe,`endpointContextFor`),N(Aqe,`segmentEnterPoint`),N(jqe,`clipEndpoint`),N(Mqe,`clipEdgeEndpointsToNodeBoundaries`),N(Nqe,`snapEndpointToBoundary`),N(vT,`firstDistinctAdjacent`),N(yT,`cornerClearanceRange`),N(bT,`clampToCornerClearance`),N(Pqe,`intersectRanges`),N(Fqe,`clearanceRangeForSide`),N(Iqe,`terminalSideForSegment`),N(xT,`isHorizontalSide`),N(ST,`straightClearanceRange`),N(CT,`clearStraightEndpointCornerAxis`),N(Lqe,`clearStraightEndpointCornerConnections`),N(Rqe,`cornerClearedEndpoint`),N(zqe,`moveCollinearEndpointRun`),N(wT,`clearEndpointCornerConnection`),N(TT,`borderSideForSegment`),N(ET,`leavesOutward`),N(Bqe,`collapseOwnBorderStub`),N(Vqe,`snapAndCollapseEndpoints`),N(Hqe,`prepareEdgeEndpointsForRenderer`),N(Uqe,`buildNodeMap`),N(DT,`resolveTopLevelGroupId`),N(Wqe,`groupDepth`),N(Gqe,`boundsForChildren`),N(Kqe,`applyGroupBounds`),N(OT,`recomputeNestedGroupBounds`),N(kT,`mirrorAxis`),N(qqe,`applyBtDirectionTransform`),N(AT,`applyLrDirectionTransform`),pE=1e-6,mE=8,$Je=[0,mE,-mE,2*mE,-2*mE],N(Jqe,`portSwapToLShape`),N(Yqe,`collapseShortTerminalStub`),hE=.001,gE=8,_E=N(e=>typeof e==`string`?e.toUpperCase():``,`upperCaseDirection`),vE=Qw,eYe=N((e,t)=>Kw(e,t,hE)||qw(e,t,hE),`orthogonallyAligned`),N(Xqe,`separateSharedRenderedTerminalLanes`),N(Zqe,`collapseRedundantRectangularDoglegs`),N(Qqe,`liftObstacleHuggingSameSideRails`),N(jT,`liftTopLaneTitleBandsAboveRails`),N($qe,`shiftLeftLaneTitleBandsLeftOfRails`),N(MT,`swapDestinationTerminalTailsToReduceCrossings`),N(NT,`reassignCrossingExternalRailChannels`),N(eJe,`shortcutRedundantOrthogonalJogs`),N(tJe,`resolveRenderedOrthogonalCrossings`),yE=.001,bE=8,N(nJe,`simplifyDetouredEdges`),xE=.001,SE=10,CE=7,N(rJe,`markerClearanceRectFor`),N(iJe,`normalizeRect`),N(aJe,`labelOverlapsOwnMarker`),N(PT,`anchorLabelsToPolyline`),wE=1e-6,TE=4,EE=3,N(FT,`pairKey`),N(IT,`straightenCollinearSiblingDetours`),N(oJe,`nudgeSharedInteriorSubpaths`),N(sJe,`segmentsIntersect`),N(cJe,`validateSwimlanesLayout`),N(LT,`postProcessSwimlaneLayout`),N(RT,`normalizeGraph`),N(lJe,`incoming`),N(zT,`buildSuccessorMap`),N(BT,`buildSortedSuccessorMap`),N(uJe,`buildInDegreeMap`),N(VT,`sortedZeroInDegreeNodes`),N(HT,`buildPredecessorSuccessorMaps`),N(dJe,`buildLayersFromRanks`),N(UT,`topoSortIfAcyclic`),N(WT,`buildLayerIndex`),N(fJe,`countInversions`),N(pJe,`removeCycles_DFS`),N(GT,`buildTopLaneMap`),N(KT,`createTopLaneResolver`),N(qT,`buildTopLaneOrder`),N(JT,`resolveTopLaneOrder`),tYe={EPSILON:1e-6},DE={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},nYe={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40},N(mJe,`buildDrivingTree`),N(YT,`chooseParent`),N(XT,`buildAdjacency`),N(hJe,`assignComponents`),N(gJe,`computeBlocks`),N(_Je,`popBlock`),N(vJe,`computeSubtreeCrossCounts`),N(yJe,`annotateMinimumLayers`),N(bJe,`compareByRankThenId`),N(xJe,`emitNodesInTreeOrder`),N(ZT,`deduplicateLayers`),N(SJe,`createChildOrderer`),N(CJe,`buildMultitreeLayerOrder`),N(wJe,`countCrossingsBetweenAdjacent`),N(TJe,`totalCrossings`),N(EJe,`optimizeRanksByCrossings`),N(DJe,`adjustCrossLaneSources`),N(QT,`assignLayers_LongestPath`),N(OJe,`assignLayers_Gravity`),N(kJe,`topoSortByGenerationIfAcyclic`),N($T,`assignLayers_LaneAwareCompact`),N(AJe,`makeProperLayering`),N(jJe,`median`),N(MJe,`barycenter`),N(eE,`neighborPositionsFor`),N(tE,`currentOrderTieBreak`),N(NJe,`countCrossingsBetweenAdjacent`),N(PJe,`sortByHeuristic`),N(FJe,`reorderLayer`),N(nE,`transposeImprove`),N(IJe,`orderLayers`),N(LJe,`assignCoordinates`),rYe=8,N(RJe,`hashString`),N(zJe,`mulberry32`),N(BJe,`deterministicShuffle`),N(VJe,`sourceDistance`),N(HJe,`laneArrangementCost`),N(UJe,`buildWeightedLaneEdges`),N(WJe,`greedySwitch`),N(GJe,`isBetterCandidate`),N(KJe,`seedForRestart`),N(qJe,`optimizeTopLaneOrder`),N(K,`sugiyamaLayout`),OE=tYe.EPSILON,iYe=8,kE=15,AE=15,jE=25,ME=20,aYe=10,N(rE,`chooseOrthogonalSide`),N(iE,`sharedLineEndpointCoord`),N(aE,`pointOnLine`),N(oE,`routeEdgesOrthogonal`),N(sE,`getSwimlaneDirection`),N(cE,`runSwimlaneLayoutCore`),N(JJe,`prepareSwimlaneLayout`),oYe=NS({prepareLayout:JJe,runLayoutCore:cE,afterPaint:Uw})}));function cYe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function IE(e,t,n){return(t=_Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fYe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function pYe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function LE(){throw TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mYe(){throw TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RE(e,t){return lYe(e)||pYe(e,t)||vYe(e,t)||LE()}function hYe(e){return uYe(e)||fYe(e)||vYe(e)||mYe()}function gYe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}function _Ye(e){var t=gYe(e,`string`);return typeof t==`symbol`?t:t+``}function zE(e){"@babel/helpers - typeof";return zE=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},zE(e)}function vYe(e,t){if(e){if(typeof e==`string`)return cYe(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cYe(e,t):void 0}}function BE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function VE(){if(tQe)return eQe;tQe=1;function e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}return eQe=e,eQe}function yYe(){return rQe?nQe:(rQe=1,nQe=typeof $Ze==`object`&&$Ze&&$Ze.Object===Object&&$Ze,nQe)}function bYe(){if(uO)return iQe;uO=1;var e=yYe(),t=typeof self==`object`&&self&&self.Object===Object&&self;return iQe=e||t||Function(`return this`)(),iQe}function xYe(){if(oQe)return aQe;oQe=1;var e=bYe();return aQe=function(){return e.Date.now()},aQe}function SYe(){if(cQe)return sQe;cQe=1;var e=/\s/;function t(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return sQe=t,sQe}function CYe(){if(uQe)return lQe;uQe=1;var e=SYe(),t=/^\s+/;function n(n){return n&&n.slice(0,e(n)+1).replace(t,``)}return lQe=n,lQe}function wYe(){return dO?dQe:(dO=1,dQe=bYe().Symbol,dQe)}function TYe(){if(fQe)return fO;fQe=1;var e=wYe(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(e){var t=n.call(e,i),a=e[i];try{e[i]=void 0;var o=!0}catch{}var s=r.call(e);return o&&(t?e[i]=a:delete e[i]),s}return fO=a,fO}function EYe(){if(mO)return pO;mO=1;var e=Object.prototype.toString;function t(t){return e.call(t)}return pO=t,pO}function DYe(){if(mQe)return pQe;mQe=1;var e=wYe(),t=TYe(),n=EYe(),r=`[object Null]`,i=`[object Undefined]`,a=e?e.toStringTag:void 0;function o(e){return e==null?e===void 0?i:r:a&&a in Object(e)?t(e):n(e)}return pQe=o,pQe}function OYe(){if(gQe)return hQe;gQe=1;function e(e){return typeof e==`object`&&!!e}return hQe=e,hQe}function HE(){if(_Qe)return hO;_Qe=1;var e=DYe(),t=OYe(),n=`[object Symbol]`;function r(r){return typeof r==`symbol`||t(r)&&e(r)==n}return hO=r,hO}function UE(){if(gO)return vQe;gO=1;var e=CYe(),t=VE(),n=HE(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(l){if(typeof l==`number`)return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf==`function`?l.valueOf():l;l=t(u)?u+``:u}if(typeof l!=`string`)return l===0?l:+l;l=e(l);var d=a.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):i.test(l)?r:+l}return vQe=l,vQe}function WE(){if(bQe)return yQe;bQe=1;var e=VE(),t=xYe(),n=UE(),r=`Expected a function`,i=Math.max,a=Math.min;function o(o,s,l){var u,d,f,p,m,h,g=0,_=!1,v=!1,y=!0;if(typeof o!=`function`)throw TypeError(r);s=n(s)||0,e(l)&&(_=!!l.leading,v=`maxWait`in l,f=v?i(n(l.maxWait)||0,s):f,y=`trailing`in l?!!l.trailing:y);function b(e){var t=u,n=d;return u=d=void 0,g=e,p=o.apply(n,t),p}function x(e){return g=e,m=setTimeout(w,s),_?b(e):p}function S(e){var t=e-h,n=e-g,r=s-t;return v?a(r,f-n):r}function C(e){var t=e-h,n=e-g;return h===void 0||t>=s||t<0||v&&n>=f}function w(){var e=t();if(C(e))return T(e);m=setTimeout(w,S(e))}function T(e){return m=void 0,y&&u?b(e):(u=d=void 0,p)}function E(){m!==void 0&&clearTimeout(m),g=0,u=h=d=m=void 0}function D(){return m===void 0?p:T(t())}function O(){var e=t(),n=C(e);if(u=arguments,d=this,h=e,n){if(m===void 0)return x(h);if(v)return clearTimeout(m),m=setTimeout(w,s),b(h)}return m===void 0&&(m=setTimeout(w,s)),p}return O.cancel=E,O.flush=D,O}return yQe=o,yQe}function kYe(e,t,n,r,i){var a=i*Math.PI/180;return{x:Math.cos(a)*(e-n)-Math.sin(a)*(t-r)+n,y:Math.sin(a)*(e-n)+Math.cos(a)*(t-r)+r}}function AYe(e,t,n){if(n===0)return e;var r=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,a=t.w/t.h,o=1/a,s=kYe(e.x,e.y,r,i,n),l=TQe(s.x,s.y,r,i,a,o);return{x:l.x,y:l.y}}function jYe(){return JO?BQe.exports:(JO=1,(function(e,t){(function(){var t,n,r=Math.floor,i,a,o,s,l,u,d=Math.min,f,p,m,h,g;n=function(e,t){return et)},u=function(e,t,i,a,o){var s;if(i??=0,o??=n,i<0)throw Error(`lo must be non-negative`);for(a??=e.length;in;0<=n?t++:t--)u.push(t);return u}).apply(this).reverse(),l=[],a=0,o=s.length;ag;0<=g?++p:--p)_.push(a(e,r));return _},h=function(e,t,r,i){var a,o,s;for(i??=n,a=e[r];r>t;){if(s=r-1>>1,o=e[s],i(a,o)<0){e[r]=o,r=s;continue}break}return e[r]=a},g=function(e,t,r){var i,a,o,s,l;for(r??=n,a=e.length,l=t,o=e[t],i=2*t+1;i-1}return s0e=t,s0e}function XYe(){if(l0e)return c0e;l0e=1;var e=$E();function t(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}return c0e=t,c0e}function ZYe(){if(d0e)return u0e;d0e=1;var e=KYe(),t=qYe(),n=JYe(),r=YYe(),i=XYe();function a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&n%1==0&&n0;){var u=i.shift();t(u),a.add(u.id()),o&&r(i,a,u)}return e}function rD(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i0&&arguments[0]!==void 0?arguments[0]:sj,t=arguments.length>1?arguments[1]:void 0,n=0;n0?i=o:r=o;while(Math.abs(a)>1e-7&&++s<10);return o}function v(t){for(var r=0,o=1,s=i-1;o!==s&&l[o]<=t;++o)r+=a;--o;var u=(t-l[o])/(l[o+1]-l[o]),d=r+u*a,f=m(d,e,n);return f>=.001?h(t,d):f===0?d:_(t,r,r+a)}var y=!1;function b(){y=!0,(e!==t||n!==r)&&g()}var x=function(i){return y||b(),e===t&&n===r?i:i===0?0:i===1?1:p(v(i),t,r)};x.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var S=`generateBezier(`+[e,t,n,r]+`)`;return x.toString=function(){return S},x}function mD(e,t,n,r,i){if(r===1||t===n)return n;var a=i(t,n,r);return e==null?a:((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max)),a)}function jXe(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!==`%`)?e.pfValue:e.value:e}function hD(e,t,n,r,i){var a=i==null?null:i.type;n<0?n=0:n>1&&(n=1);var o=jXe(e,i),s=jXe(t,i);if(qD(o)&&qD(s))return mD(a,o,s,n,r);if(WD(o)&&WD(s)){for(var l=[],u=0;u0?(f===`spring`&&p.push(o.duration),o.easingImpl=g4e[f].apply(null,p)):o.easingImpl=g4e[f]}}var m=o.easingImpl,h=o.duration===0?1:(n-l)/o.duration;if(o.applying&&(h=o.progress),h<0?h=0:h>1&&(h=1),o.delay==null){var g=o.startPosition,_=o.position;if(_&&i&&!e.locked()){var v={};gD(g.x,_.x)&&(v.x=hD(g.x,_.x,h,m)),gD(g.y,_.y)&&(v.y=hD(g.y,_.y,h,m)),e.position(v)}var y=o.startPan,b=o.pan,x=a.pan,S=b!=null&&r;S&&(gD(y.x,b.x)&&(x.x=hD(y.x,b.x,h,m)),gD(y.y,b.y)&&(x.y=hD(y.y,b.y,h,m)),e.emit(`pan`));var C=o.startZoom,w=o.zoom,T=w!=null&&r;T&&(gD(C,w)&&(a.zoom=ok(a.minZoom,hD(C,w,h,m),a.maxZoom)),e.emit(`zoom`)),(S||T)&&e.emit(`viewport`);var E=o.style;if(E&&E.length>0&&i){for(var D=0;D=0;t--){var n=e[t];n()}e.splice(0,e.length)},d=a.length-1;d>=0;d--){var f=a[d],p=f._private;if(p.stopped){a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.frames);continue}(p.playing||p.applying)&&(p.playing&&p.applying&&(p.applying=!1),p.started||NXe(t,f,e),MXe(t,f,e,n),p.applying&&=!1,u(p.frames),p.step!=null&&p.step(e),f.completed()&&(a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.completes)),s=!0)}return!n&&a.length===0&&o.length===0&&r.push(t),s}for(var a=!1,o=0;o0?t.notify(`draw`,n):t.notify(`draw`)),n.unmerge(r),t.emit(`step`)}function FXe(e){this.options=aO({},j4e,jj,e)}function IXe(e){this.options=aO({},N4e,e)}function LXe(e){this.options=aO({},P4e,e)}function _D(e){this.options=aO({},Nj,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter(function(e){var n=e.source().data(`id`),r=e.target().data(`id`),i=t.some(function(e){return e.data(`id`)===n}),a=t.some(function(e){return e.data(`id`)===r});return!i||!a});this.options.eles=this.options.eles.not(n)}function RXe(e){this.options=aO({},X4e,e)}function zXe(e){this.options=aO({},Bj,e)}function BXe(e){this.options=aO({},Z4e,e)}function VXe(e){this.options=aO({},Q4e,e)}function HXe(e){this.options=e,this.notifications=0}function UXe(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function vD(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(_3e(e,t,n,r,i),{cx:i3e,cy:a3e,radius:qj,startX:d3e,startY:f3e,stopX:p3e,stopY:m3e,startAngle:Hj.ang+Math.PI/2*Wj,endAngle:Uj.ang-Math.PI/2*Wj,counterClockwise:c3e})}function WXe(e){var t=[];if(e!=null){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}function $Xe(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}function eZe(e,t,n){var r=$Xe(e,e.VERTEX_SHADER,t),i=$Xe(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error(`Could not initialize shaders`);return a}function tZe(e,t,n){n===void 0&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext(`2d`);return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function nZe(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function yD(e){var t=e.pixelRatio;return e.cy.zoom()*t}function rZe(e,t,n,r,i){var a=r*n+t.x,o=i*n+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}function iZe(e,t){return t.picking?!0:e.pstyle(`background-fill`).value!==`solid`||e.pstyle(`background-image`).strValue!==`none`?!1:e.pstyle(`border-width`).value===0||e.pstyle(`border-opacity`).value===0||e.pstyle(`border-style`).value===`solid`}function bD(e,t){if(e.length!==t.length)return!1;for(var n=0;n>0&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function aZe(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function oZe(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}function sZe(e,t){switch(t){case`float`:return[1,e.FLOAT,4];case`vec2`:return[2,e.FLOAT,4];case`vec3`:return[3,e.FLOAT,4];case`vec4`:return[4,e.FLOAT,4];case`int`:return[1,e.INT,4];case`ivec2`:return[2,e.INT,4]}}function cZe(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function lZe(e,t,n,r,i,a){switch(t){case e.FLOAT:return new Float32Array(n.buffer,a*r,i);case e.INT:return new Int32Array(n.buffer,a*r,i)}}function uZe(e,t,n,r){var i=RE(sZe(e,t),2),a=i[0],o=i[1],s=cZe(e,o,r),l=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(n,a,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(n,a,o,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),l}function CD(e,t,n,r){var i=RE(sZe(e,n),3),a=i[0],o=i[1],s=i[2],l=cZe(e,o,t*a),u=a*s,d=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,d),e.bufferData(e.ARRAY_BUFFER,t*u,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,u,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,u,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var f=Array(t),p=0;pN3e?(_Ze(e),t.call(e,n)):(jD(e),CZe(e,n,DM.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return PD(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),t===`viewport`||t===`bounds`?e.pickingFrameBuffer.needsDraw=!0:t===`background`&&e.drawing.invalidate(n,{type:`node-body`})}}function _Ze(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function jD(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function vZe(e){var t=e.canvasWidth,n=e.canvasHeight,r=nZe(e),i=r.pan,a=r.zoom,o=ED();DD(o,o,[i.x,i.y]),OD(o,o,[a,a]);var s=ED();kD(s,t,n);var l=ED();return fZe(l,s,o),l}function yZe(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=nZe(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}function bZe(e,t){e.drawSelectionRectangle(t,function(t){return yZe(e,t)})}function MD(e){var t=e.data.contexts[e.NODE];t.save(),yZe(e,t),t.strokeStyle=`rgba(0, 0, 0, 0.3)`,t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function xZe(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),a=e.data.contexts[e.NODE],o=i.atlases,s=0;s=0&&b.add(S)}return b}function PD(e,t,n){var r=ND(e,t,n),i=e.getCachedZSortedEles(),a,o,s=FE(r),l;try{for(s.s();!(l=s.n()).done;){var u=i[l.value];if(!a&&u.isNode()&&(a=u),!o&&u.isEdge()&&(o=u),a&&o)break}}catch(e){s.e(e)}finally{s.f()}return[a,o].filter(Boolean)}function SZe(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,`node-underlay`),r.drawNode(n,t,`node-body`),r.drawTexture(n,t,`label`),r.drawNode(n,t,`node-overlay`)):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,`source`),r.drawEdgeArrow(n,t,`target`),r.drawTexture(n,t,`label`),r.drawTexture(n,t,`edge-source-label`),r.drawTexture(n,t,`edge-target-label`))}function CZe(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,a=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&bZe(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var o=e.data.contexts[e.WEBGL];n.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var s=vZe(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(s,n),n.screen){for(var u=0;u{for(RD=typeof window>`u`?null:window,kZe=RD?RD.navigator:null,RD&&RD.document,zD=zE(``),BD=zE({}),AZe=zE(function(){}),jZe=typeof HTMLElement>`u`?`undefined`:zE(HTMLElement),VD=function(e){return e&&e.instanceString&&UD(e.instanceString)?e.instanceString():null},HD=function(e){return e!=null&&zE(e)==zD},UD=function(e){return e!=null&&zE(e)===AZe},WD=function(e){return!JD(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},GD=function(e){return e!=null&&zE(e)===BD&&!WD(e)&&e.constructor===Object},KD=function(e){return e!=null&&zE(e)===BD},qD=function(e){return e!=null&&zE(e)===zE(1)&&!isNaN(e)},MZe=function(e){return qD(e)&&Math.floor(e)===e},NZe=function(e){if(jZe!==`undefined`)return e!=null&&e instanceof HTMLElement},JD=function(e){return YD(e)||PZe(e)},YD=function(e){return VD(e)===`collection`&&e._private.single},PZe=function(e){return VD(e)===`collection`&&!e._private.single},FZe=function(e){return VD(e)===`core`},XD=function(e){return VD(e)===`stylesheet`},IZe=function(e){return VD(e)===`event`},ZD=function(e){return!!(e==null||e===``||e.match(/^\s+$/))},LZe=function(e){return typeof HTMLElement>`u`?!1:e instanceof HTMLElement},RZe=function(e){return GD(e)&&qD(e.x1)&&qD(e.x2)&&qD(e.y1)&&qD(e.y2)},zZe=function(e){return KD(e)&&UD(e.then)},BZe=function(){return kZe&&kZe.userAgent.match(/msie|trident|edge/i)},QD=function(e,t){t||=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return`undefined`;for(var e=[],t=0;tt)},JZe=function(e,t){return-1*iO(e,t)},aO=Object.assign==null?function(e){for(var t=arguments,n=1;n1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var d=RegExp(`^`+GZe+`$`).exec(e);if(d){if(n=parseInt(d[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,r=parseFloat(d[2]),r<0||r>100||(r/=100,i=parseFloat(d[3]),i<0||i>100)||(i/=100,a=d[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(r===0)o=s=l=Math.round(i*255);else{var f=i<.5?i*(1+r):i+r-i*r,p=2*i-f;o=Math.round(255*u(p,f,n+1/3)),s=Math.round(255*u(p,f,n)),l=Math.round(255*u(p,f,n-1/3))}t=[o,s,l,a]}return t},sO=function(e){var t,n=RegExp(`^`+UZe+`$`).exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if(a[a.length-1]===`%`&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},cO=function(e){return XZe[e.toLowerCase()]},lO=function(e){return(WD(e)?e:null)||cO(e)||YZe(e)||sO(e)||oO(e)},XZe={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]},ZZe=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:CO,n;n=e.next(),!n.done;)t=t*xQe+n.value|0;return t},EO=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO)*xQe+e|0},DO=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wO;return(t<<5)+t+e|0},SQe=function(e,t){return e*2097152+t},OO=function(e){return e[0]*2097152+e[1]},kO=function(e,t){return[EO(e[0],t[0]),DO(e[1],t[1])]},AO=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return TO({next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},PQe=function(e){e.splice(0,e.length)},FQe=function(e,t){for(var n=0;n`u`?`undefined`:zE(Set))===IQe?LQe:Set,RQe=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!FZe(e)){FO(`An element must have a core reference and parameters set`);return}var r=t.group;if(r??=t.data&&t.data.source!=null&&t.data.target!=null?`edges`:`nodes`,r!==`nodes`&&r!==`edges`){FO("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0||!!t.grabbable,pannable:t.pannable===void 0?r===`edges`:!!t.pannable,active:!1,classes:new KO,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.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??(i.position.x=0),i.position.y??(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var l=[];WD(t.classes)?l=t.classes:HD(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,d=l.length;u0;){var S=v.pop(),C=g(S),w=S.id();if(f[w]=C,C!==1/0)for(var T=S.neighborhood().intersect(m),E=0;E0)for(n.unshift(t);d[i];){var a=d[i];n.unshift(a.edge),n.unshift(a.node),r=a.node,i=r.id()}return o.spawn(n)}}}},KQe={kruskal:function(e){e||=function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=Array(i),o=n,s=function(e){for(var t=0;t0;){if(x(),C++,b===u){for(var w=[],T=i,E=u,D=_[E];w.unshift(T),D!=null&&w.unshift(D),T=g[E],T!=null;)E=T.id(),D=_[E];return{found:!0,distance:d[b],path:this.spawn(w),steps:C}}p[b]=!0;for(var O=y._private.edges,k=0;kE&&(m[T]=E,_[T]=w,v[T]=b),!i){var D=w*u+C;!i&&m[D]>E&&(m[D]=E,_[D]=C,v[D]=b)}}}for(var O=0;O1&&arguments[1]!==void 0?arguments[1]:a,r=y(e),i=[],o=r;;){if(o==null)return t.spawn();var l=v(o),u=l.edge,d=l.pred;if(i.unshift(o[0]),o.same(n)&&i.length>0)break;u!=null&&i.unshift(u),o=d}return s.spawn(i)},S=0;S=0;u--){var d=l[u],f=d[1],p=d[2];(t[f]===o&&t[p]===s||t[f]===s&&t[p]===o)&&l.splice(u,1)}for(var m=0;mr;)t=e$e(Math.floor(Math.random()*t.length),e,t),n--;return t},ZO={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,a=r.length,o=Math.ceil((Math.log(i)/Math.LN2)**2),s=Math.floor(i/$Qe);if(i<2){FO(`At least 2 nodes are required for Karger-Stein algorithm`);return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,i=0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];a?isFinite(l)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var u=e.length,d=Math.floor(u/2);return u%2==0?(e[d-1+o]+e[d+o])/2:e[d+1+o]},c$e=function(e,t){return t===0?e:c$e(t,e%t)},l$e=function(e){for(var t=e[0],n=0;n0&&(t=c$e(t,e[n]));else return 0;return t},$O=function(e){return Math.PI*e/180},u$e=function(e,t){return Math.atan2(t,e)-Math.PI/2},ek=Math.log2||function(e){return Math.log(e)/Math.log(2)},tk=function(e){return e>0?1:e<0?-1:0},nk=function(e,t){return Math.sqrt(rk(e,t))},rk=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},d$e=function(e){for(var t=e.length,n=0,r=0;r=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}}},p$e=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},m$e=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},h$e=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},ck=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),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},lk=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},g$e=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,i,a;if(t.length===1)n=r=i=a=t[0];else if(t.length===2)n=i=t[0],a=r=t[1];else if(t.length===4){var o=RE(t,4);n=o[0],r=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=r,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},uk=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},dk=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},fk=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},_$e=function(e,t){return fk(e,t.x,t.y)},pk=function(e,t){return fk(e,t.x1,t.y1)&&fk(e,t.x2,t.y2)},v$e=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)},y$e=function(e,t,n,r,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:`auto`,l=s===`auto`?Ak(i,a):s,u=i/2,d=a/2;l=Math.min(l,u,d);var f=l!==u,p=l!==d,m;if(f){var h=n-u+l-o,g=r-d-o;if(m=Tk(e,t,n,r,h,g,n+u-l+o,g,!1),m.length>0)return m}if(p){var _=n+u+o;if(m=Tk(e,t,n,r,_,r-d+l-o,_,r+d-l+o,!1),m.length>0)return m}if(f){var v=n-u+l-o,y=r+d+o;if(m=Tk(e,t,n,r,v,y,n+u-l+o,y,!1),m.length>0)return m}if(p){var b=n-u-o;if(m=Tk(e,t,n,r,b,r-d+l-o,b,r+d-l+o,!1),m.length>0)return m}var x,S=n-u+l,C=r-d+l;if(x=Ck(e,t,n,r,S,C,l+o),x.length>0&&x[0]<=S&&x[1]<=C)return[x[0],x[1]];var w=n+u-l,T=r-d+l;if(x=Ck(e,t,n,r,w,T,l+o),x.length>0&&x[0]>=w&&x[1]<=T)return[x[0],x[1]];var E=n+u-l,D=r+d-l;if(x=Ck(e,t,n,r,E,D,l+o),x.length>0&&x[0]>=E&&x[1]>=D)return[x[0],x[1]];var O=n-u+l,k=r+d-l;return x=Ck(e,t,n,r,O,k,l+o),x.length>0&&x[0]<=O&&x[1]>=k?[x[0],x[1]]:[]},b$e=function(e,t,n,r,i,a,o){var s=o,l=Math.min(n,i),u=Math.max(n,i),d=Math.min(r,a),f=Math.max(r,a);return l-s<=e&&e<=u+s&&d-s<=t&&t<=f+s},mk=function(e,t,n,r,i,a,o,s,l){var u={x1:Math.min(n,o,i)-l,x2:Math.max(n,o,i)+l,y1:Math.min(r,s,a)-l,y2:Math.max(r,s,a)+l};return!(eu.x2||tu.y2)},x$e=function(e,t,n,r){n-=r;var i=t*t-4*e*n;if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},hk=function(e,t,n,r,i){e===0&&(e=1e-5),t/=e,n/=e,r/=e;var a,o=(3*n-t*t)/9,s=-(27*r)+t*(9*n-t*t*2),l,u,d,f,p;if(s/=54,a=o*o*o+s*s,i[1]=0,f=t/3,a>0){u=s+Math.sqrt(a),u=u<0?-((-u)**(1/3)):u**(1/3),d=s-Math.sqrt(a),d=d<0?-((-d)**(1/3)):d**(1/3),i[0]=-f+u+d,f+=(u+d)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-d+u)/2,i[3]=f,i[5]=-f;return}if(i[5]=i[3]=0,a===0){p=s<0?-((-s)**(1/3)):s**(1/3),i[0]=-f+2*p,i[4]=i[2]=-(p+f);return}o=-o,l=o*o*o,l=Math.acos(s/Math.sqrt(l)),p=2*Math.sqrt(o),i[0]=-f+p*Math.cos(l/3),i[2]=-f+p*Math.cos((l+2*Math.PI)/3),i[4]=-f+p*Math.cos((l+4*Math.PI)/3)},S$e=function(e,t,n,r,i,a,o,s){var l=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,u=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,d=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,f=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,p=[];hk(l,u,d,f,p);for(var m=1e-7,h=[],g=0;g<6;g+=2)Math.abs(p[g+1])=0&&p[g]<=1&&h.push(p[g]);h.push(1),h.push(0);for(var _=-1,v,y,b,x=0;x=0?b<_&&(_=b):_=b;return _},gk=function(e,t,n,r,i,a){var o=[e-n,t-r],s=[i-n,a-r],l=s[0]*s[0]+s[1]*s[1],u=o[0]*o[0]+o[1]*o[1],d=o[0]*s[0]+o[1]*s[1],f=d*d/l;return d<0?u:f>l?(e-i)*(e-i)+(t-a)*(t-a):u-f},_k=function(e,t,n){for(var r,i,a,o,s,l=0,u=0;u=e&&e>=a||r<=e&&e<=a)s=(e-r)/(a-r)*(o-i)+i,s>t&&l++;else continue}return l%2!=0},vk=function(e,t,n,r,i,a,o,s,l){var u=Array(n.length),d;s[0]==null?d=s:(d=Math.atan(s[1]/s[0]),s[0]<0?d+=Math.PI/2:d=-d-Math.PI/2);for(var f=Math.cos(-d),p=Math.sin(-d),m=0;m0?yk(bk(u,-l)):u;return _k(e,t,h)},C$e=function(e,t,n,r,i,a,o,s){for(var l=Array(n.length*2),u=0;u=0&&g<=1&&v.push(g),_>=0&&_<=1&&v.push(_),v.length===0)return[];var y=v[0]*s[0]+e,b=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,b]:[y,b,v[1]*s[0]+e,v[1]*s[1]+t]:[y,b]},wk=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},Tk=function(e,t,n,r,i,a,o,s,l){var u=e-i,d=n-e,f=o-i,p=t-a,m=r-t,h=s-a,g=f*p-h*u,_=d*p-m*u,v=h*d-f*m;if(v!==0){var y=g/v,b=_/v,x=.001,S=0-x,C=1+x;return S<=y&&y<=C&&S<=b&&b<=C||l?[e+y*d,t+y*m]:[]}return g===0||_===0?wk(e,n,o)===o?[o,s]:wk(e,n,i)===i?[i,a]:wk(i,o,n)===n?[n,r]:[]:[]},w$e=function(e,t,n,r,i){var a=[],o=r/2,s=i/2,l=t,u=n;a.push({x:l+o*e[0],y:u+s*e[1]});for(var d=1;d0?yk(bk(d,-s)):d}else p=n;for(var h,g,_,v,y=0;y2){for(var m=[u[0],u[1]],h=(m[0]-e)**2+(m[1]-t)**2,g=1;gu&&(u=t)},get:function(e){return l[e]}},f=0;f0?y.edgesTo(v)[0]:v.edgesTo(y)[0];var x=r(b);v=v.id(),u[v]>u[h]+x&&(u[v]=u[h]+x,f.nodes.indexOf(v)<0?f.push(v):f.updateItem(v),l[v]=0,n[v]=[]),u[v]==u[h]+x&&(l[v]=l[v]+l[h],n[v].push(h))}else for(var S=0;S0;){for(var E=t.pop(),D=0;D0&&o.push(n[s]);o.length!==0&&i.push(r.collection(o))}return i},U$e=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:G$e,o=r,s,l,u=0;u=2?Hk(e,t,n,0,Vk,K$e):Hk(e,t,n,0,Bk)},squaredEuclidean:function(e,t,n){return Hk(e,t,n,0,Vk)},manhattan:function(e,t,n){return Hk(e,t,n,0,Bk)},max:function(e,t,n){return Hk(e,t,n,-1/0,q$e)}},Uk[`squared-euclidean`]=Uk.squaredEuclidean,Uk.squaredeuclidean=Uk.squaredEuclidean,J$e=VO({k:2,m:2,sensitivityThreshold:1e-4,distance:`euclidean`,maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Wk=function(e){return J$e(e)},Gk=function(e,t,n,r,i){var a=i===`kMedoids`?function(e){return r[e](n)}:function(e){return n[e]},o=function(e){return r[e](t)},s=n,l=t;return PYe(e,r.length,a,o,s,l)},Kk=function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,l=0;ln)return!1;return!0},Z$e=function(e,t,n){for(var r=0;ro&&(o=t[l][u],s=u);i[s].push(e[l])}for(var d=0;d=i.threshold||i.mode===`dendrogram`&&e.length===1)return!1;var m=t[a],h=t[r[a]],g=i.mode===`dendrogram`?{left:m,right:h,key:m.key}:{value:m.value.concat(h.value),key:m.key};e[m.index]=g,e.splice(h.index,1),t[m.key]=g;for(var _=0;_n[h.key][v.key]&&(s=n[h.key][v.key])):i.linkage===`max`?(s=n[m.key][v.key],n[m.key][v.key]0&&r.push(i);return r},g1e=function(e,t,n){for(var r=[],i=0;io&&(a=l,o=t[i*e+l])}a>0&&r.push(a)}for(var u=0;ul&&(s=u,l=d)}n[i]=a[s]}return r=g1e(e,t,n),r},v1e=function(e){for(var t=this.cy(),n=this.nodes(),r=f1e(e),i={},a=0;a=D?(O=D,D=A,k=j):A>O&&(O=A);for(var M=0;M0);C[T%r.minIterations*o+ae]=oe,ie+=oe}if(ie>0&&(T>=r.minIterations-1||T==r.maxIterations-1)){for(var se=0,ce=0;ce1||i>1)&&(o=!0),d[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&d[t].push(e.id())})}else f[t]=[void 0,e.target().id()]}):a.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(s?l?o=!0:l=t:s=t),d[t]=[],e.connectedEdges().forEach(function(e){return d[t].push(e.id())})):f[t]=[e.source().id(),e.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(l&&s){if(i){if(u&&l!=u)return p;u=l}else if(u&&l!=u&&s!=u)return p;else u||=l}else u||=a[0].id();var m=function(e){for(var t=e,n=[e],r,a,o;d[t].length;)r=d[t].shift(),a=f[r][0],o=f[r][1],t==o?!i&&t!=a&&(d[a]=d[a].filter(function(e){return e!=r}),t=a):(d[o]=d[o].filter(function(e){return e!=r}),t=o),n.unshift(r),n.unshift(t);return n},h=[],g=[];for(g=m(u);g.length!=1;)d[g[0]].length==0?(h.unshift(a.getElementById(g.shift())),h.unshift(a.getElementById(g.shift()))):g=m(g.shift()).concat(g);for(var _ in h.unshift(a.getElementById(g.shift())),d)if(d[_].length)return p;return p.found=!0,p.trail=this.spawn(h,!0),p}},eA=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},s=function(n,r){for(var o=a.length-1,s=[],l=e.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter(function(e){return e.isLoop()})):l.merge(i)})}),i.push(l)},l=function(u,d,f){u===f&&(r+=1),t[d]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var m,h,g,_;p.forEach(function(e){m=e.source().id(),h=e.target().id(),g=m===d?h:m,g!==f&&(_=e.id(),o[_]||(o[_]=!0,a.push({x:d,y:g,edge:e})),g in t?t[d].low=Math.min(t[d].low,t[g].id):(l(u,g,d),t[d].low=Math.min(t[d].low,t[g].low),t[d].id<=t[g].low&&(t[d].cutVertex=!0,s(d,g))))})}};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,l(n,n),t[n].cutVertex=r>1)}});var u=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(u),components:i}},S1e={hopcroftTarjanBiconnected:eA,htbc:eA,htb:eA,hopcroftTarjanBiconnectedComponents:eA},C1e=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var u=i.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var d=l.edgesWith(l),f=l.merge(d);r.push(f),a=a.difference(f)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||o(n)}}),{cut:a,components:r}},w1e={tarjanStronglyConnected:C1e,tsc:C1e,tscc:C1e,tarjanStronglyConnectedComponents:C1e},T1e={},[qO,GQe,KQe,JQe,XQe,QQe,ZO,k$e,Pk,Fk,N$e,W$e,r1e,u1e,y1e,x1e,S1e,w1e].forEach(function(e){aO(T1e,e)}),E1e=0,D1e=1,O1e=2,tA=function(e){if(!(this instanceof tA))return new tA(e);this.id=`Thenable/1.0.7`,this.state=E1e,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))},tA.prototype={fulfill:function(e){return nA(this,D1e,`fulfillValue`,e)},reject:function(e){return nA(this,O1e,`rejectReason`,e)},then:function(e,t){var n=this,r=new tA;return n.onFulfilled.push(iA(e,r,`fulfill`)),n.onRejected.push(iA(t,r,`reject`)),rA(n),r.proxy}},nA=function(e,t,n,r){return e.state===E1e&&(e.state=t,e[n]=r,rA(e)),e},rA=function(e){e.state===D1e?k1e(e,`onFulfilled`,e.fulfillValue):e.state===O1e&&k1e(e,`onRejected`,e.rejectReason)},k1e=function(e,t,n){if(e[t].length!==0){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0}},clearQueue:function(){return function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n0&&this.spawn(r).updateStyle().emit(`class`),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){WD(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit(`class`),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}},a2e.className=a2e.classNames=a2e.classes,IA={metaChar:`[\\!\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\\`\\{\\|\\}\\~]`,comparatorOp:`=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=`,boolOp:`\\?|\\!|\\^`,string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:nO,meta:`degree|indegree|outdegree`,separator:`\\s*,\\s*`,descendant:`\\s+`,child:`\\s+>\\s+`,subject:`\\$`,group:`node|edge|\\*`,directedEdge:`\\s+->\\s+`,undirectedEdge:`\\s+<->\\s+`},IA.variable=`(?:[\\w-.]|(?:\\\\`+IA.metaChar+`))+`,IA.className=`(?:[\\w-]|(?:\\\\`+IA.metaChar+`))+`,IA.value=IA.string+`|`+IA.number,IA.id=IA.variable,(function(){for(var e=IA.comparatorOp.split(`|`),t,n=0;n=0)&&t!==`=`&&(IA.comparatorOp+=`|\\!`+t)})(),LA=function(){return{checks:[]}},RA={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},o2e=[{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(e,t){return JZe(e.selector,t.selector)}),s2e=function(){for(var e={},t,n=0;n0&&u.edgeCount>0)return IO("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return IO("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&IO("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},toString:function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(e){return e??``},t=function(t){return HD(t)?`"`+t+`"`:e(t)},n=function(e){return` `+e+` `},r=function(r,a){var o=r.type,s=r.value;switch(o){case RA.GROUP:var l=e(s);return l.substring(0,l.length-1);case RA.DATA_COMPARE:var u=r.field,d=r.operator;return`[`+u+n(e(d))+t(s)+`]`;case RA.DATA_BOOL:var f=r.operator,p=r.field;return`[`+e(f)+p+`]`;case RA.DATA_EXIST:return`[`+r.field+`]`;case RA.META_COMPARE:var m=r.operator;return`[[`+r.field+n(e(m))+t(s)+`]]`;case RA.STATE:return s;case RA.ID:return`#`+s;case RA.CLASS:return`.`+s;case RA.PARENT:case RA.CHILD:return i(r.parent,a)+n(`>`)+i(r.child,a);case RA.ANCESTOR:case RA.DESCENDANT:return i(r.ancestor,a)+` `+i(r.descendant,a);case RA.COMPOUND_SPLIT:var h=i(r.left,a),g=i(r.subject,a),_=i(r.right,a);return h+(h.length>0?` `:``)+g+_;case RA.TRUE:return``}},i=function(e,t){return e.checks.reduce(function(n,i,a){return n+(t===e&&a===0?`$`:``)+r(i,t)},``)},a=``,o=0;o1&&o=0&&(t=t.replace(`!`,``),d=!0),t.indexOf(`@`)>=0&&(t=t.replace(`@`,``),u=!0),(i||o||u)&&(s=!i&&!a?``:``+e,l=``+n),u&&(e=s=s.toLowerCase(),n=l=l.toLowerCase()),t){case`*=`:r=s.indexOf(l)>=0;break;case`$=`:r=s.indexOf(l,s.length-l.length)>=0;break;case`^=`:r=s.indexOf(l)===0;break;case`=`:r=e===n;break;case`>`:f=!0,r=e>n;break;case`>=`:f=!0,r=e>=n;break;case`<`:f=!0,r=e1&&arguments[1]!==void 0?arguments[1]:!0;return nD(this,e,t,rD)},qA.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return nD(this,e,t,iD)},qA.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return nD(this,e,t,aD)},qA.ancestors=qA.parents,JA=b2e={data:FA.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:FA.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:FA.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:FA.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),rscratch:FA.data({field:`rscratch`,allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:FA.removeData({field:`rscratch`,triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},JA.attr=JA.data,JA.removeAttr=JA.removeData,x2e=b2e,S2e={},aO(S2e,{degree:oD(function(e,t){return t.source().same(t.target())?2:1}),indegree:oD(function(e,t){return+!!t.target().same(e)}),outdegree:oD(function(e,t){return+!!t.source().same(e)})}),aO(S2e,{minDegree:sD(`degree`,function(e,t){return et}),minIndegree:sD(`indegree`,function(e,t){return et}),minOutdegree:sD(`outdegree`,function(e,t){return et})}),aO(S2e,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,f=d;d&&(u=u[0]);var p=f?u.position():{x:0,y:0};t===void 0?i!==void 0&&l.position({x:i.x+p.x,y:i.y+p.y}):l.position(e,t+p[e])}else{var m=n.position(),h=o?n.parent():null,g=h&&h.length>0,_=g;g&&(h=h[0]);var v=_?h.position():{x:0,y:0};return i={x:m.x-v.x,y:m.y-v.y},e===void 0?i:i[e]}}else if(!a)return;return this}},YA.modelPosition=YA.point=YA.position,YA.modelPositions=YA.points=YA.positions,YA.renderedPoint=YA.renderedPosition,YA.relativePoint=YA.relativePosition,E2e=C2e,XA=function(e){switch(e){case`left`:case`right-inside`:return`left`;case`right`:case`left-inside`:return`right`;default:return`center`}},ZA=function(e){switch(e){case`top`:case`bottom-inside`:return`top`;case`bottom`:case`top-inside`:return`bottom`;default:return`center`}},D2e=function(e){switch(e){case`left`:return`right`;case`right`:return`left`;case`left-inside`:return`left`;case`right-inside`:return`right`;default:return`center`}},O2e=QA={},QA.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},QA.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify(`bounds`)}}),this},QA.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;function n(e){if(!e.isParent())return;var t=e._private,n=e.children(),r=e.pstyle(`compound-sizing-wrt-labels`).value===`include`,i={width:{val:e.pstyle(`min-width`).pfValue,left:e.pstyle(`min-width-bias-left`),right:e.pstyle(`min-width-bias-right`)},height:{val:e.pstyle(`min-height`).pfValue,top:e.pstyle(`min-height-bias-top`),bottom:e.pstyle(`min-height-bias-bottom`)}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;(a.w===0||a.h===0)&&(a={w:e.pstyle(`width`).pfValue,h:e.pstyle(`height`).pfValue},a.x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);function s(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}function l(e,t,n,r){if(n.units===`%`)switch(r){case`width`:return e>0?n.pfValue*e:0;case`height`:return t>0?n.pfValue*t:0;case`average`:return e>0&&t>0?n.pfValue*(e+t)/2:0;case`min`:return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case`max`:return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}else if(n.units===`px`)return n.pfValue;else return 0}var u=i.width.left.value;i.width.left.units===`px`&&i.width.val>0&&(u=u*100/i.width.val);var d=i.width.right.value;i.width.right.units===`px`&&i.width.val>0&&(d=d*100/i.width.val);var f=i.height.top.value;i.height.top.units===`px`&&i.height.val>0&&(f=f*100/i.height.val);var p=i.height.bottom.value;i.height.bottom.units===`px`&&i.height.val>0&&(p=p*100/i.height.val);var m=s(i.width.val-a.w,u,d),h=m.biasDiff,g=m.biasComplementDiff,_=s(i.height.val-a.h,f,p),v=_.biasDiff,y=_.biasComplementDiff;t.autoPadding=l(a.w,a.h,e.pstyle(`padding`),e.pstyle(`padding-relative-to`).value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-h+a.x1+a.x2+g)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-v+a.y1+a.y2+y)/2}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},tj=function(e,t){return t==null?e:ej(e,t.x1,t.y1,t.x2,t.y2)},nj=function(e,t,n){return UO(e,t,n)},k2e=function(e,t,n){if(!t.cy().headless()){var r=t._private,i=r.rstyle,a=i.arrowWidth/2,o=t.pstyle(n+`-arrow-shape`).value,s,l;if(o!==`none`){n===`source`?(s=i.srcX,l=i.srcY):n===`target`?(s=i.tgtX,l=i.tgtY):(s=i.midX,l=i.midY);var u=r.arrowBounds=r.arrowBounds||{},d=u[n]=u[n]||{};d.x1=s-a,d.y1=l-a,d.x2=s+a,d.y2=l+a,d.w=d.x2-d.x1,d.h=d.y2-d.y1,lk(d,1),ej(e,d.x1,d.y1,d.x2,d.y2)}}},A2e=function(e,t,n){if(!t.cy().headless()){var r=n?n+`-`:``,i=t._private,a=i.rstyle;if(t.pstyle(r+`label`).strValue){var o=t.pstyle(`text-halign`),s=t.pstyle(`text-valign`),l=nj(a,`labelWidth`,n),u=nj(a,`labelHeight`,n),d=nj(a,`labelX`,n),f=nj(a,`labelY`,n),p=t.pstyle(r+`text-margin-x`).pfValue,m=t.pstyle(r+`text-margin-y`).pfValue,h=t.isEdge(),g=t.pstyle(r+`text-rotation`),_=t.pstyle(`text-outline-width`).pfValue,v=t.pstyle(`text-border-width`).pfValue/2,y=t.pstyle(`text-background-padding`).pfValue,b=2,x=u,S=l,C=S/2,w=x/2,T,E,D,O;if(h)T=d-C,E=d+C,D=f-w,O=f+w;else{switch(XA(o.value)){case`left`:T=d-S,E=d;break;case`center`:T=d-C,E=d+C;break;case`right`:T=d,E=d+S}switch(ZA(s.value)){case`top`:D=f-x,O=f;break;case`center`:D=f-w,O=f+w;break;case`bottom`:D=f,O=f+x}}var k=p-Math.max(_,v)-y-b,A=p+Math.max(_,v)+y+b,j=m-Math.max(_,v)-y-b,M=m+Math.max(_,v)+y+b;T+=k,E+=A,D+=j,O+=M;var ee=n||`main`,te=i.labelBounds,ne=te[ee]=te[ee]||{};ne.x1=T,ne.y1=D,ne.x2=E,ne.y2=O,ne.w=E-T,ne.h=O-D,ne.leftPad=k,ne.rightPad=A,ne.topPad=j,ne.botPad=M;var re=h&&g.strValue===`autorotate`,ie=g.pfValue!=null&&g.pfValue!==0;if(re||ie){var ae=re?nj(i.rstyle,`labelAngle`,n):g.pfValue,oe=Math.cos(ae),se=Math.sin(ae),ce=(T+E)/2,le=(D+O)/2;if(!h){switch(XA(o.value)){case`left`:ce=E;break;case`right`:ce=T}switch(ZA(s.value)){case`top`:le=O;break;case`bottom`:le=D}}var ue=function(e,t){return e-=ce,t-=le,{x:e*oe-t*se+ce,y:e*se+t*oe+le}},de=ue(T,D),fe=ue(T,O),pe=ue(E,D),me=ue(E,O);T=Math.min(de.x,fe.x,pe.x,me.x),E=Math.max(de.x,fe.x,pe.x,me.x),D=Math.min(de.y,fe.y,pe.y,me.y),O=Math.max(de.y,fe.y,pe.y,me.y)}var he=ee+`Rot`,ge=te[he]=te[he]||{};ge.x1=T,ge.y1=D,ge.x2=E,ge.y2=O,ge.w=E-T,ge.h=O-D,ej(e,T,D,E,O),ej(i.labelBounds.all,T,D,E,O)}return e}},j2e=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`outline-opacity`).value,r=t.pstyle(`outline-width`).value+t.pstyle(`outline-offset`).value;rj(e,t,n,r,`outside`,r/2)}},rj=function(e,t,n,r,i,a){if(!(n===0||r<=0||i===`inside`)){var o=t.cy().renderer(),s=o.nodeShapes[o.getNodeShape(t)];if(s){var l=t.position(),u=l.x,d=l.y,f=t.width(),p=t.height();s.hasMiterBounds?(i===`center`&&(r/=2),tj(e,s.miterBounds(u,d,f,p,r))):a!=null&&a>0&&g$e(e,[a,a,a,a])}}},M2e=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`border-opacity`).value,r=t.pstyle(`border-width`).pfValue,i=t.pstyle(`border-position`).value;rj(e,t,n,r,i)}},N2e=function(e,t){var n=e._private.cy,r=n.styleEnabled(),i=n.headless(),a=sk(),o=e._private,s=e.isNode(),l=e.isEdge(),u,d,f,p,m,h,g=o.rstyle,_=s&&r?e.pstyle(`bounds-expansion`).pfValue:[0],v=function(e){return e.pstyle(`display`).value!==`none`},y=!r||v(e)&&(!l||v(e.source())&&v(e.target()));if(y){var b=0,x=0;r&&t.includeOverlays&&(b=e.pstyle(`overlay-opacity`).value,b!==0&&(x=e.pstyle(`overlay-padding`).value));var S=0,C=0;r&&t.includeUnderlays&&(S=e.pstyle(`underlay-opacity`).value,S!==0&&(C=e.pstyle(`underlay-padding`).value));var w=Math.max(x,C),T=0,E=0;if(r&&(T=e.pstyle(`width`).pfValue,E=T/2),s&&t.includeNodes){var D=e.position();m=D.x,h=D.y;var O=e.outerWidth()/2,k=e.outerHeight()/2;u=m-O,d=m+O,f=h-k,p=h+k,ej(a,u,f,d,p),r&&j2e(a,e),r&&t.includeOutlines&&!i&&j2e(a,e),r&&M2e(a,e)}else if(l&&t.includeEdges){if(r&&!i){var A=e.pstyle(`curve-style`).strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),d=Math.max(g.srcX,g.midX,g.tgtX),f=Math.min(g.srcY,g.midY,g.tgtY),p=Math.max(g.srcY,g.midY,g.tgtY),u-=E,d+=E,f-=E,p+=E,ej(a,u,f,d,p),A===`haystack`){var j=g.haystackPts;if(j&&j.length===2){if(u=j[0].x,f=j[0].y,d=j[1].x,p=j[1].y,u>d){var M=u;u=d,d=M}if(f>p){var ee=f;f=p,p=ee}ej(a,u-E,f-E,d+E,p+E)}}else if(A===`bezier`||A===`unbundled-bezier`||tO(A,`segments`)||tO(A,`taxi`)){var te;switch(A){case`bezier`:case`unbundled-bezier`:te=g.bezierPts;break;case`segments`:case`taxi`:case`round-segments`:case`round-taxi`:te=g.linePts}if(te!=null)for(var ne=0;ned){var oe=u;u=d,d=oe}if(f>p){var se=f;f=p,p=se}u-=E,d+=E,f-=E,p+=E,ej(a,u,f,d,p)}}if(r&&t.includeEdges&&l&&(k2e(a,e,`mid-source`),k2e(a,e,`mid-target`),k2e(a,e,`source`),k2e(a,e,`target`)),r&&e.pstyle(`ghost`).value===`yes`){var ce=e.pstyle(`ghost-offset-x`).pfValue,le=e.pstyle(`ghost-offset-y`).pfValue;ej(a,a.x1+ce,a.y1+le,a.x2+ce,a.y2+le)}var ue=o.bodyBounds=o.bodyBounds||{};uk(ue,a),g$e(ue,_),lk(ue,1),r&&(u=a.x1,d=a.x2,f=a.y1,p=a.y2,ej(a,u-w,f-w,d+w,p+w));var de=o.overlayBounds=o.overlayBounds||{};uk(de,a),g$e(de,_),lk(de,1);var fe=o.labelBounds=o.labelBounds||{};fe.all==null?fe.all=sk():m$e(fe.all),r&&t.includeLabels&&(t.includeMainLabels&&A2e(a,e,null),l&&(t.includeSourceLabels&&A2e(a,e,`source`),t.includeTargetLabels&&A2e(a,e,`target`)))}return a.x1=$A(a.x1),a.y1=$A(a.y1),a.x2=$A(a.x2),a.y2=$A(a.y2),a.w=$A(a.x2-a.x1),a.h=$A(a.y2-a.y1),a.w>0&&a.h>0&&y&&(g$e(a,_),lk(a,1)),a},P2e=function(e){var t=0,n=function(e){return+!!e<=0;s--)o(s);return this},cj.removeAllListeners=function(){return this.removeListener(`*`)},cj.emit=cj.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,WD(t)||(t=[t]),t4e(this,function(e,a){n!=null&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(){var n=r[s];if(n.type===a.type&&(!n.namespace||n.namespace===a.namespace||n.namespace===X2e)&&e.eventMatches(e.context,n,a)){var i=[a];t!=null&&FQe(i,t),e.beforeEmit(e.context,n,a),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var o=e.callbackContext(e.context,n,a),l=n.callback.apply(o,i);e.afterEmit(e.context,n,a),l===!1&&(a.stopPropagation(),a.preventDefault())}},s=0;s1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&HD(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;in&&(n=s,r=o)}return{value:n,ele:r}},min:function(e,t){for(var n=1/0,r,i=this,a=0;a=0&&i`u`?`undefined`:zE(Symbol))!=e&&zE(Symbol.iterator)!=e&&(c4e[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return IE({next:function(){return n1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n)return n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n)),n._private.style[e]??(t?r.style().getDefaultProperty(e):null)},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue===void 0?n.value:n.pfValue}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(GD(e)){var a=e;i.applyBypass(this,a,r),this.emitAndNotify(`style`)}else if(HD(e)){if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}i.applyBypass(this,e,t,r),this.emitAndNotify(`style`)}else if(e===void 0){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(e===void 0)for(var a=0;a0&&t.push(d[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},`neighborhood`),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),pj.neighbourhood=pj.neighborhood,pj.closedNeighbourhood=pj.closedNeighborhood,pj.openNeighbourhood=pj.openNeighborhood,aO(pj,{source:KA(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},`source`),target:KA(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},`target`),sources:pD({attr:`source`}),targets:pD({attr:`target`})}),aO(pj,{edgesWith:KA(OXe(),`edgesWith`),edgesTo:KA(OXe({thisIsSrc:!0}),`edgesTo`)}),aO(pj,{connectedEdges:KA(function(e){for(var t=[],n=this,r=0;r0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),pj.componentsOf=pj.components,mj=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===void 0){FO(`A collection must have a reference to the core`);return}var i=new GO,a=!1;if(!t)t=[];else if(t.length>0&&GD(t[0])&&!YD(t[0])){a=!0;for(var o=[],s=new KO,l=0,u=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=n.cy(),i=r._private,a=[],o=[],s,l=0,u=n.length;l0){for(var ne=s.length===n.length?n:new mj(r,s),re=0;re0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=[],i={},a=n._private.cy;function o(e){for(var t=e._private.edges,n=0;n0&&(e?D.emitAndNotify(`remove`):t&&D.emit(`remove`));for(var O=0;Ol&&Math.abs(p.v)>l;);return d?function(e){return o[e*(o.length-1)|0]}:s}}(),gj=function(e,t,n,r){var i=AXe(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},g4e={linear:function(e,t,n){return e+(t-e)*n},ease:gj(.25,.1,.25,1),"ease-in":gj(.42,0,1,1),"ease-out":gj(0,0,.58,1),"ease-in-out":gj(.42,0,.58,1),"ease-in-sine":gj(.47,0,.745,.715),"ease-out-sine":gj(.39,.575,.565,1),"ease-in-out-sine":gj(.445,.05,.55,.95),"ease-in-quad":gj(.55,.085,.68,.53),"ease-out-quad":gj(.25,.46,.45,.94),"ease-in-out-quad":gj(.455,.03,.515,.955),"ease-in-cubic":gj(.55,.055,.675,.19),"ease-out-cubic":gj(.215,.61,.355,1),"ease-in-out-cubic":gj(.645,.045,.355,1),"ease-in-quart":gj(.895,.03,.685,.22),"ease-out-quart":gj(.165,.84,.44,1),"ease-in-out-quart":gj(.77,0,.175,1),"ease-in-quint":gj(.755,.05,.855,.06),"ease-out-quint":gj(.23,1,.32,1),"ease-in-out-quint":gj(.86,0,.07,1),"ease-in-expo":gj(.95,.05,.795,.035),"ease-out-expo":gj(.19,1,.22,1),"ease-in-out-expo":gj(1,0,0,1),"ease-in-circ":gj(.6,.04,.98,.335),"ease-out-circ":gj(.075,.82,.165,1),"ease-in-out-circ":gj(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return g4e.linear;var r=h4e(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":gj},_4e={animate:FA.animate(),animation:FA.animation(),animated:FA.animated(),clearQueue:FA.clearQueue(),delay:FA.delay(),delayAnimation:FA.delayAnimation(),stop:FA.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&xO(function(n){PXe(n,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(t,n){PXe(n,e)},n.beforeRenderPriorities.animations):t()}},_j={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return r==null||e!==n.target&&YD(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier==null?e:n.target}},v4e=function(e){return HD(e)?new UA(e):e},y4e={createEmitter:function(){var e=this._private;return e.emitter||=new wXe(_j,this),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,v4e(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,v4e(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,v4e(t),n),this},once:function(e,t,n){return this.emitter().one(e,v4e(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}},FA.eventAliasesOn(y4e),vj={png:function(e){var t=this._private.renderer;return e||={},t.png(e)},jpg:function(e){var t=this._private.renderer;return e||={},e.bg=e.bg||`#fff`,t.jpg(e)}},vj.jpeg=vj.jpg,b4e={layout:function(e){var t=this;if(e==null){FO(`Layout options must be specified to make a layout`);return}if(e.name==null){FO("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension(`layout`,n);if(r==null){FO("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i=HD(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles;return new r(aO({},e,{cy:t,eles:i}))}},b4e.createLayout=b4e.makeLayout=b4e.layout,x4e={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.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??=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 t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on(`render`,e)},offRender:function(e){return this.off(`render`,e)}},S4e.invalidateDimensions=S4e.resize,C4e={collection:function(e,t){return HD(e)?this.$(e):JD(e)?e.collection():WD(e)?(t||={},new mj(this,e,t.unique,t.removed)):new mj(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}},C4e.elements=C4e.filter=C4e.$,bj={},xj=`t`,w4e=`f`,bj.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(p||f&&m){var h=void 0;p&&m||p?h=u.properties:m&&(h=u.mappedProperties);for(var g=0;g1&&(x=1),s.color){var C=r.valueMin[0],w=r.valueMax[0],T=r.valueMin[1],E=r.valueMax[1],D=r.valueMin[2],O=r.valueMax[2],k=r.valueMin[3]==null?1:r.valueMin[3],A=r.valueMax[3]==null?1:r.valueMax[3],j=[Math.round(C+(w-C)*x),Math.round(T+(E-T)*x),Math.round(D+(O-D)*x),Math.round(k+(A-k)*x)];a={bypass:r.bypass,name:r.name,value:j,strValue:`rgb(`+j[0]+`, `+j[1]+`, `+j[2]+`)`}}else if(s.number){var M=r.valueMin+(r.valueMax-r.valueMin)*x;a=this.parse(r.name,M,r.bypass,p)}else return!1;if(!a)return g(),!1;a.mapping=r,r=a;break;case o.data:for(var ee=r.field.split(`.`),te=f.data,ne=0;ne0&&a>0){for(var s={},l=!1,u=0;u0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle(`transition-timing-function`).value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify(`style`),r.transitioning=!1})}else r.transitioning&&=(this.removeBypasses(e,i),e.emitAndNotify(`style`),!1)},bj.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);e.removed()||s!=null&&s(n,r,e)&&a(o)},bj.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify(`zorder`,e)})},bj.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},bj.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},bj.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},bj.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)},Sj={},Sj.applyBypass=function(e,t,n,r){var i=this,a=[],o=!0;if(t===`*`||t===`**`){if(n!==void 0)for(var s=0;si.length?r.substr(i.length):``}function l(){a=a.length>o.length?a.substr(o.length):``}for(;!r.match(/^\s*$/);){var u=r.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){IO(`Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: `+r);break}i=u[0];var d=u[1];if(d!==`core`&&new UA(d).invalid){IO(`Skipping parsing of block: Invalid selector found in string stylesheet: `+d),s();continue}var f=u[2],p=!1;a=f;for(var m=[];!a.match(/^\s*$/);){var h=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!h){IO(`Skipping parsing of block: Invalid formatting of style property and value definitions found in:`+f),p=!0;break}o=h[0];var g=h[1],_=h[2];if(!t.properties[g]){IO(`Skipping property: Invalid property name in: `+o),l();continue}if(!n.parse(g,_)){IO(`Skipping property: Invalid property definition in: `+o),l();continue}m.push({name:g,val:_}),l()}if(p){s();break}n.selector(d);for(var v=0;v=7&&t[0]===`d`&&(d=new RegExp(s.data.regex).exec(t))){if(n)return!1;var p=s.data;return{name:e,value:d,strValue:``+t,mapped:p,field:d[1],bypass:n}}if(t.length>=10&&t[0]===`m`&&(f=new RegExp(s.mapData.regex).exec(t))){if(n||u.multiple)return!1;var m=s.mapData;if(!(u.color||u.number))return!1;var h=this.parse(e,f[4]);if(!h||h.mapped)return!1;var g=this.parse(e,f[5]);if(!g||g.mapped)return!1;if(h.pfValue===g.pfValue||h.strValue===g.strValue)return IO("`"+e+`: `+t+"` is not a valid mapper because the output range is zero; converting to `"+e+`: `+h.strValue+"`"),this.parse(e,h.strValue);if(u.color){var _=h.value,v=g.value;if(_[0]===v[0]&&_[1]===v[1]&&_[2]===v[2]&&(_[3]===v[3]||(_[3]==null||_[3]===1)&&(v[3]==null||v[3]===1)))return!1}return{name:e,value:f,strValue:``+t,mapped:m,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:g.value,bypass:n}}}if(u.multiple&&r!==`multiple`){var y=l?t.split(/\s+/):WD(t)?t:[t];if(u.evenMultiple&&y.length%2!=0)return null;for(var b=[],x=[],S=[],C=``,w=!1,T=0;T0?` `:``)+E.strValue}return u.validate&&!u.validate(b,x)?null:u.singleEnum&&w?b.length===1&&HD(b[0])?{name:e,value:b[0],strValue:b[0],bypass:n}:null:{name:e,value:b,pfValue:S,strValue:C,bypass:n,units:x}}var D=function(){for(var r=0;ru.max||u.strictMax&&t===u.max))return null;var M={name:e,value:t,strValue:``+t+(O||``),units:O,bypass:n};return M.pfValue=u.unitless||O!==`px`&&O!==`em`||O===`px`||!O?t:this.getEmSizeInPixels()*t,(O===`ms`||O===`s`)&&(M.pfValue=O===`ms`?t:1e3*t),(O===`deg`||O===`rad`)&&(M.pfValue=O===`rad`?t:$O(t)),O===`%`&&(M.pfValue=t/100),M}if(u.propList){var ee=[],te=``+t;if(te!==`none`){for(var ne=te.split(/\s*,\s*|\s+/),re=0;re0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((a-2*t)/n.w,(o-2*t)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=t),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 t=this._private,n=t.pan,r=t.zoom,i,a,o=!1;if(t.zoomingEnabled||(o=!0),qD(e)?a=e:GD(e)&&(a=e.level,e.position==null?e.renderedPosition!=null&&(i=e.renderedPosition):i=n$e(e.position,r,n),i!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=at.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push(`zoom`))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;qD(l.x)&&(t.pan.x=l.x,o=!1),qD(l.y)&&(t.pan.y=l.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 t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit(`pan viewport`),this.notify(`viewport`)),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(HD(e)){var n=e;e=this.mutableElements().filter(n)}else JD(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),i=this.width(),a=this.height();return t=t===void 0?this._private.zoom:t,{x:(i-t*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?function(){var e=n.window().getComputedStyle(t),r=function(t){return parseFloat(e.getPropertyValue(t))};return{width:t.clientWidth-r(`padding-left`)-r(`padding-right`),height:t.clientHeight-r(`padding-top`)-r(`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,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}},Oj.centre=Oj.center,Oj.autolockNodes=Oj.autolock,Oj.autoungrabifyNodes=Oj.autoungrabify,kj={data:FA.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeData:FA.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),scratch:FA.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:FA.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0})},kj.attr=kj.data,kj.removeAttr=kj.removeData,Aj=function(e){var t=this;e=aO({},e);var n=e.container;n&&!NZe(n)&&NZe(n[0])&&(n=n[0]);var r=n?n._cyreg:null;r||={},r&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=RD!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=aO({name:a?`grid`:`null`},o.layout),o.renderer=aO({name:a?`canvas`:`null`},o.renderer);var s=function(e,t,n){return t===void 0?n===void 0?e:n:t},l=this._private={container:n,ready:!1,options:o,elements:new mj(this),listeners:[],aniEles:new mj(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?a:o.styleEnabled,zoom:qD(o.zoom)?o.zoom:1,pan:{x:GD(o.pan)&&qD(o.pan.x)?o.pan.x:0,y:GD(o.pan)&&qD(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=function(e,t){if(e.some(zZe))return aA.all(e).then(t);t(e)};l.styleEnabled&&t.setStyle([]);var d=aO({},o,o.renderer);t.initRenderer(d);var f=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),e!=null&&(GD(e)||WD(e))&&t.add(e),t.one(`layoutready`,function(e){t.notifications(!0),t.emit(e),t.one(`load`,n),t.emitAndNotify(`load`)}).one(`layoutstop`,function(){t.one(`done`,r),t.emit(`done`)});var a=aO({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()};u([o.style,o.elements],function(e){var n=e[0],a=e[1];l.styleEnabled&&t.style().append(n),f(a,function(){t.startAnimationLoop(),l.ready=!0,UD(o.ready)&&t.on(`ready`,o.ready);for(var e=0;e0,s=!!e.boundingBox,l=sk(s?e.boundingBox:structuredClone(t.extent())),u;if(JD(e.roots))u=e.roots;else if(WD(e.roots)){for(var d=[],f=0;f0;){var j=A(),M=E(j,O);if(M)j.outgoers().filter(function(e){return e.isNode()&&n.has(e)}).forEach(k);else if(M===null){IO("Detected double maximal shift for node `"+j.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var ee=0;if(e.avoidOverlap)for(var te=0;te0&&v[0].length<=3?a/2:0),u=2*Math.PI/v[r].length*i;return r===0&&v[0].length===1&&(o=1),{x:me.x+o*Math.cos(u),y:me.y+o*Math.sin(u)}}var d=v[r].length,f=Math.max(d===1?0:s?(l.w-e.padding*2-he.w)/((e.grid?_e:d)-1):(l.w-e.padding*2-he.w)/((e.grid?_e:d)+1),ee);return{x:me.x+(i+1-(d+1)/2)*f,y:me.y+(r+1-(ce+1)/2)*ge}},ye={downward:0,leftward:90,upward:180,rightward:-90};return Object.keys(ye).indexOf(e.direction)===-1&&FO(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(ye).join(`, `)}`),n.nodes().layoutPositions(this,e,function(t){return AYe(ve(t),l,ye[e.direction])}),this},N4e={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,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},IXe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,a=r.nodes().not(`:parent`);t.sort&&(a=a.sort(t.sort));for(var o=sk(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=(t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),u,d=0,f=0;f1&&t.avoidOverlap){d*=1.75;var g=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),v=Math.sqrt(d*d/(g*g+_*_));u=Math.max(v,u)}return r.nodes().layoutPositions(this,t,function(e,n){var r=t.startAngle+n*l*(i?1:-1),a=u*Math.cos(r),o=u*Math.sin(r);return{x:s.x+a,y:s.y+o}}),this},P4e={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,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},LXe.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,r=e.cy,i=t.eles,a=i.nodes().not(`:parent`),o=sk(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=[],u=0,d=0;d0&&Math.abs(v[0].value-b.value)>=g&&(v=[],_.push(v)),v.push(b)}var x=u+t.minNodeSpacing;if(!t.avoidOverlap){var S=_.length>0&&_[0].length>1,C=(Math.min(o.w,o.h)/2-x)/(_.length+S?1:0);x=Math.min(x,C)}for(var w=0,T=0;T<_.length;T++){var E=_[T],D=E.dTheta=(t.sweep===void 0?2*Math.PI-2*Math.PI/E.length:t.sweep)/Math.max(1,E.length-1);if(E.length>1&&t.avoidOverlap){var O=Math.cos(D)-Math.cos(0),k=Math.sin(D)-Math.sin(0),A=Math.sqrt(x*x/(O*O+k*k));w=Math.max(A,w)}E.r=w,w+=x}if(t.equidistant){for(var j=0,M=0,ee=0;ee<_.length;ee++){var te=_[ee].r-M;j=Math.max(j,te)}M=0;for(var ne=0;ne<_.length;ne++){var re=_[ne];ne===0&&(M=re.r),re.r=M,M+=j}}for(var ie={},ae=0;ae<_.length;ae++)for(var oe=_[ae],se=oe.dTheta,ce=oe.r,le=0;le=e.numIter||(V4e(r,e),r.temperature*=e.coolingFactor,r.temperature=e.animationThreshold&&a(),xO(d)):(zj(r,e),s())};d()}else{for(;u;)u=o(l),l++;zj(r,e),s()}return this},_D.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit(`layoutstop`),this},_D.prototype.destroy=function(){return this.thread&&this.thread.stop(),this},I4e=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=sk(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:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(w);for(var u=0;ur.count?0:r.graph},R4e=function(e,t,n,r){var i=r.graphSet[n];if(-10)var l=r.nodeOverlap*s,u=Math.sqrt(i*i+a*a),d=l*i/u,f=l*a/u;else var p=Ij(e,i,a),m=Ij(t,-1*i,-1*a),h=m.x-p.x,g=m.y-p.y,_=h*h+g*g,u=Math.sqrt(_),l=(e.nodeRepulsion+t.nodeRepulsion)/_,d=l*h/u,f=l*g/u;e.isLocked||(e.offsetX-=d,e.offsetY-=f),t.isLocked||(t.offsetX+=d,t.offsetY+=f)}},G4e=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},Ij=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,l=a/o,u={};return t===0&&0n?(u.x=r,u.y=i+a/2,u):0t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=i-o*n/2/t,u):0=l)?(u.x=r+a*t/2/n,u.y=i+a/2,u):0>n&&(s<=-1*l||s>=l)?(u.x=r-a*t/2/n,u.y=i-a/2,u):u},Lj=function(e,t){for(var n=0;nn){var g=t.gravity*p/h,_=t.gravity*m/h;f.offsetX+=g,f.offsetY+=_}}}}},K4e=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],l=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},Y4e=function(e,t){var n=e.parentId;if(n!=null){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((r.maxX==null||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(r.minX==null||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(r.minY==null||e.minY-r.padTopg&&(p+=h+t.componentSpacing,f=0,m=0,h=0)}}},X4e={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,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},RXe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(`:parent`);t.sort&&(i=i.sort(t.sort));var a=sk(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(a.h===0||a.w===0)r.nodes().layoutPositions(this,t,function(e){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),l=Math.round(s),u=Math.round(a.w/a.h*s),d=function(e){if(e==null)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},f=function(e){if(e==null)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},p=t.rows,m=t.cols==null?t.columns:t.cols;if(p!=null&&m!=null)l=p,u=m;else if(p!=null&&m==null)l=p,u=Math.ceil(o/l);else if(p==null&&m!=null)u=m,l=Math.ceil(o/u);else if(u*l>o){var h=d(),g=f();(h-1)*g>=o?d(h-1):(g-1)*h>=o&&f(g-1)}else for(;u*l=o?f(v+1):d(_+1)}var y=a.w/u,b=a.h/l;if(t.condense&&(y=0,b=0),t.avoidOverlap)for(var x=0;x=u&&(M=0,j++)},te={},ne=0;ne(b=gk(e,t,x[S],x[S+1],x[S+2],x[S+3])))return _(n,b),!0}else if(o.edgeType===`bezier`||o.edgeType===`multibezier`||o.edgeType===`self`||o.edgeType===`compound`){for(var x=o.allpts,S=0;S+5(b=S$e(e,t,x[S],x[S+1],x[S+2],x[S+3],x[S+4],x[S+5])))return _(n,b),!0}for(var g=g||r.source,y=y||r.target,C=i.getArrowWidth(l,f),w=[{name:`source`,x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:`target`,x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:`mid-source`,x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:`mid-target`,x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}],S=0;S0&&(v(g),v(y))}function b(e,t,n){return UO(e,t,n)}function x(n,r){var i=n._private,a=p,o=r?r+`-`:``;n.boundingBox();var s=i.labelBounds[r||`main`],l=n.pstyle(o+`label`).value;if(n.pstyle(`text-events`).strValue===`yes`&&l){var u=b(i.rscratch,`labelX`,r),d=b(i.rscratch,`labelY`,r),f=b(i.rscratch,`labelAngle`,r),m=n.pstyle(o+`text-margin-x`).pfValue,h=n.pstyle(o+`text-margin-y`).pfValue,g=s.x1-a-m,v=s.x2+a-m,y=s.y1-a-h,x=s.y2+a-h;if(f){var S=Math.cos(f),C=Math.sin(f),w=function(e,t){return e-=u,t-=d,{x:e*S-t*C+u,y:e*C+t*S+d}},T=w(g,y),E=w(g,x),D=w(v,y),O=w(v,x);if(_k(e,t,[T.x+m,T.y+h,D.x+m,D.y+h,O.x+m,O.y+h,E.x+m,E.y+h]))return _(n),!0}else if(fk(s,e,t))return _(n),!0}}for(var S=o.length-1;S>=0;S--){var C=o[S];C.isNode()?v(C)||x(C):y(C)||x(C)||x(C,`source`)||x(C,`target`)}return s},Vj.getAllInBox=function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,a=2/this.cy.zoom(),o=[],s=Math.min(e,n),l=Math.max(e,n),u=Math.min(t,r),d=Math.max(t,r);e=s,n=l,t=u,r=d;var f=sk({x1:e,y1:t,x2:n,y2:r}),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}],m=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function h(e,t,n){return UO(e,t,n)}function g(e,t){var n=e._private,r=a,i=``;e.boundingBox();var o=n.labelBounds.main;if(!o)return null;var s=h(n.rscratch,`labelX`,t),l=h(n.rscratch,`labelY`,t),u=h(n.rscratch,`labelAngle`,t),d=e.pstyle(i+`text-margin-x`).pfValue,f=e.pstyle(i+`text-margin-y`).pfValue,p=o.x1-r-d,m=o.x2+r-d,g=o.y1-r-f,_=o.y2+r-f;if(u){var v=Math.cos(u),y=Math.sin(u),b=function(e,t){return e-=s,t-=l,{x:e*v-t*y+s,y:e*y+t*v+l}};return[b(p,g),b(m,g),b(m,_),b(p,_)]}return[{x:p,y:g},{x:m,y:g},{x:m,y:_},{x:p,y:_}]}function _(e,t,n,r){function i(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}for(var v=0;v0?-(Math.PI-e.ang):Math.PI+e.ang},_3e=function(e,t,n,r,i){if(e===h3e?g3e(Uj,Hj):Yj(t,e,Hj),Yj(t,n,Uj),o3e=Hj.nx*Uj.ny-Hj.ny*Uj.nx,s3e=Hj.nx*Uj.nx-Hj.ny*-Uj.ny,Gj=Math.asin(Math.max(-1,Math.min(1,o3e))),Math.abs(Gj)<1e-6){i3e=t.x,a3e=t.y,qj=l3e=0;return}Wj=1,c3e=!1,s3e<0?Gj<0?Gj=Math.PI+Gj:(Gj=Math.PI-Gj,Wj=-1,c3e=!0):Gj>0&&(Wj=-1,c3e=!0),l3e=t.radius===void 0?r:t.radius,Kj=Gj/2,u3e=Math.min(Hj.len/2,Uj.len/2),i?(Jj=Math.abs(Math.cos(Kj)*l3e/Math.sin(Kj)),Jj>u3e?(Jj=u3e,qj=Math.abs(Jj*Math.sin(Kj)/Math.cos(Kj))):qj=l3e):(Jj=Math.min(u3e,l3e),qj=Math.abs(Jj*Math.sin(Kj)/Math.cos(Kj))),p3e=t.x+Uj.nx*Jj,m3e=t.y+Uj.ny*Jj,i3e=p3e-Uj.ny*qj*Wj,a3e=m3e+Uj.nx*qj*Wj,d3e=t.x+Hj.nx*Jj,f3e=t.y+Hj.ny*Jj,h3e=t},Xj=.01,v3e=Math.sqrt(2*Xj),Zj={},Zj.findMidptPtsEtc=function(e,t){var n=t.posPts,r=t.intersectionPts,i=t.vectorNormInverse,a,o=e.pstyle(`source-endpoint`),s=e.pstyle(`target-endpoint`),l=o.units!=null&&s.units!=null,u=function(e,t,n,r){var i=r-t,a=n-e,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}};switch(e.pstyle(`edge-distances`).value){case`node-position`:a=n;break;case`intersection`:a=r;break;case`endpoints`:if(l){var d=RE(this.manualEndptToPx(e.source()[0],o),2),f=d[0],p=d[1],m=RE(this.manualEndptToPx(e.target()[0],s),2),h=m[0],g=m[1],_={x1:f,y1:p,x2:h,y2:g};i=u(f,p,h,g),a=_}else IO(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),a=r}return{midptPts:a,vectorNormInverse:i}},Zj.findHaystackPoints=function(e){for(var t=0;t0?Math.max(e-t,0):Math.min(e+t,0)},k=O(E,w),A=O(D,T),j=!1;v===u?_=Math.abs(k)>Math.abs(A)?i:r:v===l||v===s?(_=r,j=!0):(v===a||v===o)&&(_=i,j=!0);var M=_===r,ee=M?A:k,te=M?D:E,ne=tk(te),re=!1;!(j&&(b||S))&&(v===s&&te<0||v===l&&te>0||v===a&&te>0||v===o&&te<0)&&(ne*=-1,ee=ne*Math.abs(ee),re=!0);var ie=b?(x<0?1+x:x)*ee:(x<0?ee:0)+x*ne,ae=function(e){return Math.abs(e)=Math.abs(ee)},oe=ae(ie),se=ae(Math.abs(ee)-Math.abs(ie));if((oe||se)&&!re){if(M){var ce=Math.abs(te)<=p/2,le=Math.abs(E)<=m/2;if(ce){var ue=(d.x1+d.x2)/2;n.segpts=[ue,d.y1,ue,d.y2]}else if(le){var de=(d.y1+d.y2)/2;n.segpts=[d.x1,de,d.x2,de]}else n.segpts=[d.x1,d.y2]}else{var fe=Math.abs(te)<=f/2,pe=Math.abs(D)<=h/2;if(fe){var me=(d.y1+d.y2)/2;n.segpts=[d.x1,me,d.x2,me]}else if(pe){var he=(d.x1+d.x2)/2;n.segpts=[he,d.y1,he,d.y2]}else n.segpts=[d.x2,d.y1]}}else if(M){var ge=d.y1+ie+(g?p/2*ne:0);n.segpts=[d.x1,ge,d.x2,ge]}else{var _e=d.x1+ie+(g?f/2*ne:0);n.segpts=[_e,d.y1,_e,d.y2]}if(n.isRound){var ve=e.pstyle(`taxi-radius`).value,ye=e.pstyle(`radius-type`).value[0]===`arc-radius`;n.radii=Array(n.segpts.length/2).fill(ve),n.isArcRadius=Array(n.segpts.length/2).fill(ye)}},Zj.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType===`bezier`){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,d=t.tgtShape,f=t.srcCornerRadius,p=t.tgtCornerRadius,m=t.srcRs,h=t.tgtRs,g=!qD(n.startX)||!qD(n.startY),_=!qD(n.arrowStartX)||!qD(n.arrowStartY),v=!qD(n.endX)||!qD(n.endY),y=!qD(n.arrowEndX)||!qD(n.arrowEndY),b=3*(this.getArrowWidth(e.pstyle(`width`).pfValue,e.pstyle(`arrow-scale`).value)*this.arrowShapeWidth),x=nk({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),S=xg.poolIndex()){var _=h;h=g,g=_}var v=d.srcPos=h.position(),y=d.tgtPos=g.position(),b=d.srcW=h.outerWidth(),S=d.srcH=h.outerHeight(),C=d.tgtW=g.outerWidth(),w=d.tgtH=g.outerHeight(),T=d.srcShape=n.nodeShapes[t.getNodeShape(h)],E=d.tgtShape=n.nodeShapes[t.getNodeShape(g)],D=d.srcCornerRadius=h.pstyle(`corner-radius`).value===`auto`?`auto`:h.pstyle(`corner-radius`).pfValue,O=d.tgtCornerRadius=g.pstyle(`corner-radius`).value===`auto`?`auto`:g.pstyle(`corner-radius`).pfValue,k=d.tgtRs=g._private.rscratch,A=d.srcRs=h._private.rscratch;d.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var j=0;j=v3e||(fe=Math.sqrt(Math.max(de*de,Xj)+Math.max(ue*ue,Xj)));var pe=d.vector={x:de,y:ue},me=d.vectorNorm={x:pe.x/fe,y:pe.y/fe},he={x:-me.y,y:me.x};d.nodesOverlap=!qD(fe)||E.checkPoint(ie[0],ie[1],0,C,w,y.x,y.y,O,k)||T.checkPoint(oe[0],oe[1],0,b,S,v.x,v.y,D,A),d.vectorNormInverse=he,f={nodesOverlap:d.nodesOverlap,dirCounts:d.dirCounts,calculatedIntersection:!0,hasBezier:d.hasBezier,hasUnbundled:d.hasUnbundled,eles:d.eles,srcPos:y,srcRs:k,tgtPos:v,tgtRs:A,srcW:C,srcH:w,tgtW:b,tgtH:S,srcIntn:se,tgtIntn:ae,srcShape:E,tgtShape:T,posPts:{x1:le.x2,y1:le.y2,x2:le.x1,y2:le.y1},intersectionPts:{x1:ce.x2,y1:ce.y2,x2:ce.x1,y2:ce.y1},vector:{x:-pe.x,y:-pe.y},vectorNorm:{x:-me.x,y:-me.y},vectorNormInverse:{x:-he.x,y:-he.y}}}var ge=re?f:d;ee.nodesOverlap=ge.nodesOverlap,ee.srcIntn=ge.srcIntn,ee.tgtIntn=ge.tgtIntn,ee.isRound=te.startsWith(`round`),r&&(h.isParent()||h.isChild()||g.isParent()||g.isChild())&&(h.parents().anySame(g)||g.parents().anySame(h)||h.same(g)&&h.isParent())?t.findCompoundLoopPoints(M,ge,j,ne):h===g?t.findLoopPoints(M,ge,j,ne):te.endsWith(`segments`)?t.findSegmentsPoints(M,ge):te.endsWith(`taxi`)?t.findTaxiPoints(M,ge):te===`straight`||!ne&&d.eles.length%2==1&&j===Math.floor(d.eles.length/2)?t.findStraightEdgePoints(M):t.findBezierPoints(M,ge,j,ne,re),t.findEndpoints(M),t.tryToCorrectInvalidPoints(M,ge),t.checkForInvalidEdgeWarning(M),t.storeAllpts(M),t.storeEdgeProjections(M),t.calculateArrowAngles(M),t.recalculateEdgeLabelProjections(M),t.calculateLabelAngles(M)}},x=0;x0){var ve=s,ye=rk(ve,QO(i)),be=rk(ve,QO(_e)),xe=ye;be2&&rk(ve,{x:_e[2],y:_e[3]})0){var Pe=l,Fe=rk(Pe,QO(i)),Ie=rk(Pe,QO(Ne)),Le=Fe;Ie2&&rk(Pe,{x:Ne[2],y:Ne[3]})=u||y){f={cp:g,segment:v};break}}if(f)break}var b=f.cp,x=f.segment,S=(u-p)/x.length,C=x.t1-x.t0,w=l?x.t0+C*S:x.t1-C*S;w=ok(0,w,1),t=ak(b.p0,b.p1,b.p2,w),i=x3e(b.p0,b.p1,b.p2,w);break;case`straight`:case`segments`:case`haystack`:for(var T=0,E,D,O,k,A=r.allpts.length,j=0;j+3=u));j+=2);var M=(u-D)/E;M=ok(0,M,1),t=f$e(O,k,M),i=b3e(O,k)}o(`labelX`,n,t.x),o(`labelY`,n,t.y),o(`labelAutoAngle`,n,i)}};l(`source`),l(`target`),this.applyLabelDimensions(e)}},$j.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,`source`),this.applyPrefixedLabelDimensions(e,`target`))},$j.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=jO(r,e._private.labelDimsKey);if(UO(n.rscratch,`prefixedLabelDimsKey`,t)!==i){WO(n.rscratch,`prefixedLabelDimsKey`,t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle(`line-height`).pfValue,s=e.pstyle(`font-size`).pfValue,l=e.pstyle(`text-wrap`).strValue,u=UO(n.rscratch,`labelWrapCachedLines`,t)||[],d=l===`wrap`?Math.max(u.length,1):1,f=s*o,p=a.width,m=a.height+(d-1)*(o-1)*s;WO(n.rstyle,`labelWidth`,t,p),WO(n.rscratch,`labelWidth`,t,p),WO(n.rstyle,`labelHeight`,t,m),WO(n.rscratch,`labelHeight`,t,m),WO(n.rscratch,`labelLineHeight`,t,f),WO(n.rscratch,`labelActualDescent`,t,a.labelActualDescent)}},$j.getLabelText=function(e,t){var n=e._private,r=t?t+`-`:``,i=e.pstyle(r+`label`).strValue,a=e.pstyle(`text-transform`).value,o=function(e,r){return r?(WO(n.rscratch,e,t,r),r):UO(n.rscratch,e,t)};if(!i)return``;a==`none`||(a==`uppercase`?i=i.toUpperCase():a==`lowercase`&&(i=i.toLowerCase()));var s=e.pstyle(`text-wrap`).value;if(s===`wrap`){var l=o(`labelKey`);if(l!=null&&o(`labelWrapKey`)===l)return o(`labelWrapCachedText`);for(var u=`​`,d=i.split(` -`),f=e.pstyle(`text-max-width`).pfValue,p=e.pstyle(`text-overflow-wrap`).value===`anywhere`,m=[],h=/[\s\u200b]+|$/g,g=0;gf){var y=_.matchAll(h),b=``,x=0,S=FE(y),C;try{for(S.s();!(C=S.n()).done;){var w=C.value,T=w[0],E=_.substring(x,w.index);x=w.index+T.length;var D=b.length===0?E:b+E+T;this.calculateLabelDimensions(e,D).width<=f?b+=E+T:(b&&m.push(b),b=E+T)}}catch(e){S.e(e)}finally{S.f()}b.match(/^[\s\u200b]+$/)||m.push(b)}else m.push(_)}o(`labelWrapCachedLines`,m),i=o(`labelWrapCachedText`,m.join(` -`)),o(`labelWrapKey`,l)}else if(s===`ellipsis`){var O=e.pstyle(`text-max-width`).pfValue,k=``,A=`…`,j=!1;if(this.calculateLabelDimensions(e,i).widthO);M++)k+=i[M],M===i.length-1&&(j=!0);return j||(k+=A),k}return i},$j.getLabelJustification=function(e){var t=e.pstyle(`text-justification`).strValue,n=e.pstyle(`text-halign`).strValue;return t===`auto`?e.isNode()?D2e(n):`center`:t},$j.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle(`font-style`).strValue,a=e.pstyle(`font-size`).pfValue,o=e.pstyle(`font-family`).strValue,s=e.pstyle(`font-weight`).strValue,l=e.pstyle(`text-metrics`).strValue||`font`,u=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!u){u=this.labelCalcCanvas=n.createElement(`canvas`),d=this.labelCalcCanvasContext=u.getContext(`2d`);var f=u.style;f.position=`absolute`,f.left=`-9999px`,f.top=`-9999px`,f.zIndex=`-1`,f.visibility=`hidden`,f.pointerEvents=`none`}d.font=`${i} ${s} ${a}px ${o}`;for(var p=0,m=0,h=t.split(` -`),g=h.length,_=0,v=0,y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var D=a(t);x&&(e.hoverData.tapholdCancelled=!0);var O=function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];t.length===0?(t.push(y[0]),t.push(y[1])):(t[0]+=y[0],t[1]+=y[1])};n=!0,i(h,[`mousemove`,`vmousemove`,`tapdrag`],t,{x:u[0],y:u[1]});var k=function(e){return{originalEvent:t,type:e,position:{x:u[0],y:u[1]}}},A=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||r.emit(k(`boxstart`)),p[4]=1,e.hoverData.selecting=!0,e.redrawHint(`select`,!0),e.redraw()};if(e.hoverData.which===3){if(x){var j=k(`cxtdrag`);v?v.emit(j):r.emit(j),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||h!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(k(`cxtdragout`)),e.hoverData.cxtOver=h,h&&h.emit(k(`cxtdragover`)))}}else if(e.hoverData.dragging){if(n=!0,r.panningEnabled()&&r.userPanningEnabled()){var M;if(e.hoverData.justStartedPan){var ee=e.hoverData.mdownPos;M={x:(u[0]-ee[0])*s,y:(u[1]-ee[1])*s},e.hoverData.justStartedPan=!1}else M={x:y[0]*s,y:y[1]*s};r.panBy(M),r.emit(k(`dragpan`)),e.hoverData.dragged=!0}u=e.projectIntoViewport(t.clientX,t.clientY)}else if(p[4]==1&&(v==null||v.pannable()))x&&(!e.hoverData.dragging&&r.boxSelectionEnabled()&&(D||!r.panningEnabled()||!r.userPanningEnabled())?A():!e.hoverData.selecting&&r.panningEnabled()&&r.userPanningEnabled()&&o(v,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,p[4]=0,e.data.bgActivePosistion=QO(d),e.redrawHint(`select`,!0),e.redraw()),v&&v.pannable()&&v.active()&&v.unactivate());else{if(v&&v.pannable()&&v.active()&&v.unactivate(),(!v||!v.grabbed())&&h!=_&&(_&&i(_,[`mouseout`,`tapdragout`],t,{x:u[0],y:u[1]}),h&&i(h,[`mouseover`,`tapdragover`],t,{x:u[0],y:u[1]}),e.hoverData.last=h),v){if(x){if(r.boxSelectionEnabled()&&D)v&&v.grabbed()&&(g(b),v.emit(k(`freeon`)),b.emit(k(`free`)),e.dragData.didDrag&&(v.emit(k(`dragfreeon`)),b.emit(k(`dragfree`)))),A();else if(v&&v.grabbed()&&e.nodeIsDraggable(v)){var te=!e.dragData.didDrag;te&&e.redrawHint(`eles`,!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||m(b,{inDragLayer:!0});var ne={x:0,y:0};if(qD(y[0])&&qD(y[1])&&(ne.x+=y[0],ne.y+=y[1],te)){var re=e.hoverData.dragDelta;re&&qD(re[0])&&qD(re[1])&&(ne.x+=re[0],ne.y+=re[1])}e.hoverData.draggingEles=!0,b.silentShift(ne).emit(k(`position`)).emit(k(`drag`)),e.redrawHint(`drag`,!0),e.redraw()}}else O()}n=!0}if(p[2]=u[0],p[3]=u[1],n)return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1}},!1);var D,O,k;e.registerBinding(t,`mouseup`,function(t){if(!(e.hoverData.which===1&&t.which!==1&&e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var r=e.cy,o=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(o[0],o[1],!0,!1),u=e.dragData.possibleDragElements,d=e.hoverData.down,f=a(t);e.data.bgActivePosistion&&(e.redrawHint(`select`,!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,d&&d.unactivate();var p=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}};if(e.hoverData.which===3){var m=p(`cxttapend`);if(d?d.emit(m):r.emit(m),!e.hoverData.cxtDragged){var h=p(`cxttap`);d?d.emit(h):r.emit(h)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(i(l,[`mouseup`,`tapend`,`vmouseup`],t,{x:o[0],y:o[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(i(d,[`click`,`tap`,`vclick`],t,{x:o[0],y:o[1]}),O=!1,t.timeStamp-k<=r.multiClickDebounceTime()?(D&&clearTimeout(D),O=!0,k=null,i(d,[`dblclick`,`dbltap`,`vdblclick`],t,{x:o[0],y:o[1]})):(D=setTimeout(function(){O||i(d,[`oneclick`,`onetap`,`voneclick`],t,{x:o[0],y:o[1]})},r.multiClickDebounceTime()),k=t.timeStamp)),d==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(t)&&(r.$(n).unselect([`tapunselect`]),u.length>0&&e.redrawHint(`eles`,!0),e.dragData.possibleDragElements=u=r.collection()),l==d&&!e.dragData.didDrag&&!e.hoverData.selecting&&l!=null&&l._private.selectable&&(e.hoverData.dragging||(r.selectionType()===`additive`||f?l.selected()?l.unselect([`tapunselect`]):l.select([`tapselect`]):f||(r.$(n).unmerge(l).unselect([`tapunselect`]),l.select([`tapselect`]))),e.redrawHint(`eles`,!0)),e.hoverData.selecting){var _=r.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint(`select`,!0),_.length>0&&e.redrawHint(`eles`,!0),r.emit(p(`boxend`)),r.selectionType()===`additive`||f||r.$(n).unmerge(_).unselect(),_.emit(p(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(p(`boxselect`)),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint(`select`,!0),e.redrawHint(`eles`,!0),e.redraw()),!s[4]){e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0);var v=d&&d.grabbed();g(u),v&&(d.emit(p(`freeon`)),u.emit(p(`free`)),e.dragData.didDrag&&(d.emit(p(`dragfreeon`)),u.emit(p(`dragfree`))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var A=[],j=4,M,ee=1e5,te=function(e){for(var t=Math.abs(e[0]),n=1;n=j){M=!1;var i=A;if(i[0]>=5){var a=te(i)?i[0]:l$e(i);a>1&&(M=!0,ee=a)}}else A.push(Math.abs(r)),n=!0}else M&&(ee=Math.min(Math.abs(r),ee));if(!e.scrollingPage){var o=e.cy,s=o.zoom(),l=o.pan(),u=e.projectIntoViewport(t.clientX,t.clientY),d=[u[0]*s+l.x,u[1]*s+l.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||w()){t.preventDefault();return}if(o.panningEnabled()&&o.userPanningEnabled()&&o.zoomingEnabled()&&o.userZoomingEnabled()){t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint(`eles`,!0),e.redraw()},150);var f;n&&Math.abs(r)>5&&(r=tk(r)*5),f=r/-250,M&&(f/=ee,f*=3),f*=e.wheelSensitivity,t.deltaMode===1&&(f*=33);var p=o.zoom()*10**f;t.type===`gesturechange`&&(p=e.gestureStartZoom*t.scale),o.zoom({level:p,renderedPosition:{x:d[0],y:d[1]}}),o.emit({type:t.type===`gesturechange`?`pinchzoom`:`scrollzoom`,originalEvent:t,position:{x:u[0],y:u[1]}})}}}};e.registerBinding(e.container,`wheel`,ne,!0),e.registerBinding(t,`scroll`,function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,`gesturestart`,function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,`gesturechange`,function(t){e.hasTouchStarted||ne(t)},!0),e.registerBinding(e.container,`mouseout`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseout`,position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,`mouseover`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseover`,position:{x:n[0],y:n[1]}})},!1);var re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},_e=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)},ve;e.registerBinding(e.container,`touchstart`,ve=function(t){if(e.hasTouchStarted=!0,T(t)){v(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,r=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);r[0]=o[0],r[1]=o[1]}if(t.touches[1]){var o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);r[2]=o[0],r[3]=o[1]}if(t.touches[2]){var o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);r[4]=o[0],r[5]=o[1]}var s=function(e){return{originalEvent:t,type:e,position:{x:r[0],y:r[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,g(e.dragData.touchDragEles);var l=e.findContainerClientCoords();de=l[0],fe=l[1],pe=l[2],me=l[3],re=t.touches[0].clientX-de,ie=t.touches[0].clientY-fe,ae=t.touches[1].clientX-de,oe=t.touches[1].clientY-fe,he=0<=re&&re<=pe&&0<=ae&&ae<=pe&&0<=ie&&ie<=me&&0<=oe&&oe<=me;var d=n.pan(),f=n.zoom();se=ge(re,ie,ae,oe),ce=_e(re,ie,ae,oe),le=[(re+ae)/2,(ie+oe)/2],ue=[(le[0]-d.x)/f,(le[1]-d.y)/f];var p=200,_=p*p;if(ce<_&&!t.touches[2]){var y=e.findNearestElement(r[0],r[1],!0,!0),b=e.findNearestElement(r[2],r[3],!0,!0);y&&y.isNode()?(y.activate().emit(s(`cxttapstart`)),e.touchData.start=y):b&&b.isNode()?(b.activate().emit(s(`cxttapstart`)),e.touchData.start=b):n.emit(s(`cxttapstart`)),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,e.redraw();return}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(!t.touches[1]&&t.touches[0]){var x=e.findNearestElements(r[0],r[1],!0,!0),S=x[0];if(S!=null&&(S.activate(),e.touchData.start=S,e.touchData.starts=x,e.nodeIsGrabbable(S))){var C=e.dragData.touchDragEles=n.collection(),w=null;e.redrawHint(`eles`,!0),e.redrawHint(`drag`,!0),S.selected()?(w=n.$(function(t){return t.selected()&&e.nodeIsGrabbable(t)}),m(w,{addToList:C})):h(S,{addToList:C}),u(S),S.emit(s(`grabon`)),w?w.forEach(function(e){e.emit(s(`grab`))}):S.emit(s(`grab`))}i(S,[`touchstart`,`tapstart`,`vmousedown`],t,{x:r[0],y:r[1]}),S??(e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint(`select`,!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){e.touchData.singleTouchMoved===!1&&!e.pinching&&!e.touchData.selecting&&i(e.touchData.start,[`taphold`],t,{x:r[0],y:r[1]})},e.tapholdDuration)}if(t.touches.length>=1){for(var E=e.touchData.startPosition=[null,null,null,null,null,null],D=0;D=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var S=t.touches[0].clientX-de,C=t.touches[0].clientY-fe,w=t.touches[1].clientX-de,E=t.touches[1].clientY-fe,D=_e(S,C,w,E),O=D/ce,k=150,A=k*k,j=1.5;if(O>=j*j||D>=A){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var M=f(`cxttapend`);e.touchData.start?(e.touchData.start.unactivate().emit(M),e.touchData.start=null):a.emit(M)}}if(n&&e.touchData.cxt){var M=f(`cxtdrag`);e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.touchData.start?e.touchData.start.emit(M):a.emit(M),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var ee=e.findNearestElement(s[0],s[1],!0,!0);(!e.touchData.cxtOver||ee!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(f(`cxtdragout`)),e.touchData.cxtOver=ee,ee&&ee.emit(f(`cxtdragover`)))}else if(n&&t.touches[2]&&a.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||a.emit(f(`boxstart`)),e.touchData.selecting=!0,e.touchData.didSelect=!0,r[4]=1,!r||r.length===0||r[0]===void 0?(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1):(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3),e.redrawHint(`select`,!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var te=e.dragData.touchDragEles;if(te){e.redrawHint(`drag`,!0);for(var ne=0;ne0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.redraw())}},!1);var be;e.registerBinding(t,`touchcancel`,be=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()});var xe,Se,Ce,we;if(e.registerBinding(t,`touchend`,xe=function(t){var r=e.touchData.start;if(e.touchData.capture)t.touches.length===0&&(e.touchData.capture=!1),t.preventDefault();else return;var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o=e.cy,s=o.zoom(),l=e.touchData.now,u=e.touchData.earlier;if(t.touches[0]){var d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);l[0]=d[0],l[1]=d[1]}if(t.touches[1]){var d=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);l[2]=d[0],l[3]=d[1]}if(t.touches[2]){var d=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);l[4]=d[0],l[5]=d[1]}var f=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}};r&&r.unactivate();var p;if(e.touchData.cxt){if(p=f(`cxttapend`),r?r.emit(p):o.emit(p),!e.touchData.cxtDragged){var m=f(`cxttap`);r?r.emit(m):o.emit(m)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!t.touches[2]&&o.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var h=o.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint(`select`,!0),o.emit(f(`boxend`)),h.emit(f(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(f(`boxselect`)),h.nonempty()&&e.redrawHint(`eles`,!0),e.redraw()}if(r?.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);else if(!t.touches[1]&&!t.touches[0]&&!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var _=e.dragData.touchDragEles;if(r!=null){var v=r._private.grabbed;g(_),e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0),v&&(r.emit(f(`freeon`)),_.emit(f(`free`)),e.dragData.didDrag&&(r.emit(f(`dragfreeon`)),_.emit(f(`dragfree`)))),i(r,[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]}),r.unactivate(),e.touchData.start=null}else i(e.findNearestElement(l[0],l[1],!0,!0),[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]});var y=e.touchData.startPosition[0]-l[0],b=y*y,x=e.touchData.startPosition[1]-l[1],S=(b+x*x)*s*s;e.touchData.singleTouchMoved||(r||o.$(`:selected`).unselect([`tapunselect`]),i(r,[`tap`,`vclick`],t,{x:l[0],y:l[1]}),Se=!1,t.timeStamp-we<=o.multiClickDebounceTime()?(Ce&&clearTimeout(Ce),Se=!0,we=null,i(r,[`dbltap`,`vdblclick`],t,{x:l[0],y:l[1]})):(Ce=setTimeout(function(){Se||i(r,[`onetap`,`voneclick`],t,{x:l[0],y:l[1]})},o.multiClickDebounceTime()),we=t.timeStamp)),r!=null&&!e.dragData.didDrag&&r._private.selectable&&S`u`){var Te=[],Ee=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},De=function(e){return{event:e,touch:Ee(e)}},Oe=function(e){Te.push(De(e))},ke=function(e){for(var t=0;t0)return u[0]}return null},m=Object.keys(f),h=0;h0?f:y$e(i,a,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,i,a,o,s){s=s===`auto`?Ak(r,i):s;var l=2*s;if(vk(e,t,this.points,a,o,r,i-l,[0,-1],n)||vk(e,t,this.points,a,o,r-l,i,[0,-1],n))return!0;var u=r/2+2*n,d=i/2+2*n;return!!(_k(e,t,[a-u,o-d,a-u,o,a+u,o,a+u,o-d])||Sk(e,t,l,l,a+r/2-s,o+i/2-s,n)||Sk(e,t,l,l,a-r/2+s,o+i/2-s,n))}}},oM.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon(`triangle`,Ok(3,0)),this.generateRoundPolygon(`round-triangle`,Ok(3,0)),this.generatePolygon(`rectangle`,Ok(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon(`diamond`,n),this.generateRoundPolygon(`round-diamond`,n),this.generatePolygon(`pentagon`,Ok(5,0)),this.generateRoundPolygon(`round-pentagon`,Ok(5,0)),this.generatePolygon(`hexagon`,Ok(6,0)),this.generateRoundPolygon(`round-hexagon`,Ok(6,0)),this.generatePolygon(`heptagon`,Ok(7,0)),this.generateRoundPolygon(`round-heptagon`,Ok(7,0)),this.generatePolygon(`octagon`,Ok(8,0)),this.generateRoundPolygon(`round-octagon`,Ok(8,0));var r=Array(20),i=kk(5,0),a=kk(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*g)break}else if(i){if(m>=e.deqCost*l||m>=e.deqAvgCost*s)break}else if(h>=e.deqNoDrawCost*k3e)break;var _=e.deq(t,f,d);if(_.length>0)for(var v=0;v<_.length;v++)u.push(_[v]);else break}u.length>0&&(e.onDeqd(t,u),!i&&e.shouldRedraw(t,u,f,d)&&r())},a=e.priority||PO;n.beforeRender(i,a(t))}}}},uM=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kQe;NE(this,e),this.idsByKey=new GO,this.keyForId=new GO,this.cachesByLvl=new GO,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return PE(e,[{key:`getIdsFor`,value:function(e){e??FO(`Can not get id list for null key`);var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new KO,t.set(e,n)),n}},{key:`addIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).add(t)}},{key:`deleteIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).delete(t)}},{key:`getNumberOfIdsForKey`,value:function(e){return e==null?0:this.getIdsFor(e).size}},{key:`updateKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:`deleteKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:`keyHasChangedFor`,value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:`isInvalid`,value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:`getCachesAt`,value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new GO,t.set(e,r),n.push(e)),r}},{key:`getCache`,value:function(e,t){return this.getCachesAt(t).get(e)}},{key:`get`,value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return r!=null&&this.updateKeyMappingFor(e),r}},{key:`getForCachedKey`,value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:`hasCache`,value:function(e,t){return this.getCachesAt(t).has(e)}},{key:`has`,value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:`setCache`,value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:`set`,value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:`deleteCache`,value:function(e,t){this.getCachesAt(t).delete(e)}},{key:`delete`,value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:`invalidateKey`,value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:`invalidate`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||this.getNumberOfIdsForKey(n)===0}}])}(),j3e=25,M3e=50,dM=-4,fM=3,N3e=7.99,P3e=8,F3e=1024,I3e=1024,L3e=1024,R3e=.2,pM=.8,z3e=10,B3e=.15,V3e=.1,H3e=.9,U3e=.9,W3e=100,G3e=1,mM={dequeue:`dequeue`,downscale:`downscale`,highQuality:`highQuality`},K3e=VO({getKey:null,doesEleInvalidateKey:kQe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:OQe,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),hM=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=K3e(t);aO(n,r),n.lookup=new uM(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},gM=hM.prototype,gM.reasons=mM,gM.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},gM.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},gM.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new YO(function(e,t){return t.reqs-e.reqs})},gM.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},gM.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(r??=Math.ceil(ek(s*n)),r=N3e||r>fM)return null;var u=2**r,d=t.h*u,f=t.w*u,p=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,p))return null;var m=l.get(e,r);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var h=d<=j3e?j3e:d<=M3e?M3e:Math.ceil(d/M3e)*M3e;if(d>L3e||f>I3e)return null;var g=a.getTextureQueue(h),_=g[g.length-2],v=function(){return a.recycleTexture(h,f)||a.addTexture(h,f)};_||=g[g.length-1],_||=v(),_.width-_.usedWidthr;O--)E=a.getElement(e,t,n,O,mM.downscale);D()}else return a.queueElement(e,C.level-1),C}else{var k;if(!b&&!x&&!S)for(var A=r-1;A>=dM;A--){var j=l.get(e,A);if(j){k=j;break}}if(y(k))return a.queueElement(e,r),k;_.context.translate(_.usedWidth,0),_.context.scale(u,u),this.drawElement(_.context,e,t,p,!1),_.context.scale(1/u,1/u),_.context.translate(-_.usedWidth,0)}return m={x:_.usedWidth,texture:_,level:r,scale:u,width:f,height:d,scaledLabelShown:p},_.usedWidth+=Math.ceil(f+P3e),_.eleCaches.push(m),l.set(e,r,m),a.checkTextureFullness(_),m},gM.invalidateElements=function(e){for(var t=0;t=R3e*e.width&&this.retireTexture(e)},gM.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>pM&&e.fullnessChecks>=z3e?HO(t,e):e.fullnessChecks++},gM.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;HO(r,e),e.retired=!0;for(var a=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,PQe(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),HO(i,o),r.push(o),o}},gM.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(e),o=i[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,r.updateItem(o);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:a};r.push(s),i[a]=s}},gM.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o0;o++){var s=n.pop(),l=s.key,u=s.eles[0],d=a.hasCache(u,s.level);if(r[l]=null,!d){i.push(s);var f=t.getBoundingBox(u);t.getElement(u,f,e,s.level,mM.dequeue)}}return i},gM.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),a=r[i];a!=null&&(a.eles.length===1?(a.reqs=DQe,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(e))},gM.onDequeue=function(e){this.onDequeues.push(e)},gM.offDequeue=function(e){HO(this.onDequeues,e)},gM.setupDequeueing=A3e.setupDequeueing({deqRedrawThreshold:W3e,deqCost:B3e,deqAvgCost:V3e,deqNoDrawCost:H3e,deqFastCost:U3e,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=J3e||n>vM)return null}r.validateLayersElesOrdering(n,e);var o=r.layersByLevel,s=2**n,l=o[n]=o[n]||[],u,d=r.levelIsComplete(n,e),f,p=function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return f=o[t],!0},i=function(e){if(!f)for(var r=n+e;_M<=r&&r<=vM&&!t(r);r+=e);};i(1),i(-1);for(var a=l.length-1;a>=0;a--){var s=l[a];s.invalid&&HO(l,s)}};if(!d)p();else return l;var m=function(){if(!u){u=sk();for(var t=0;tyM||a>yM||i*a>r6e)return null;var o=r.makeLayer(u,n);if(t!=null){var d=l.indexOf(t)+1;l.splice(d,0,o)}else(e.insert===void 0||e.insert)&&l.unshift(o);return o};if(r.skipping&&!a)return null;for(var g=null,_=e.length/q3e,v=!a,y=0;y=_||!pk(g.bb,b.boundingBox()))&&(g=h({insert:!0,after:g}),!g))return null;f||v?r.queueLayer(g,b):r.drawEleInLayer(g,b,n,t),g.eles.push(b),S[n]=g}return f||(v?null:l)},bM.getEleLevelForLayerLevel=function(e,t){return e},bM.drawEleInLayer=function(e,t,n,r){var i=this,a=this.renderer,o=e.context,s=t.boundingBox();s.w!==0&&s.h!==0&&t.visible()&&(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,n,i6e),a.setImgSmoothing(o,!0))},bM.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||n.length===0)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},bM.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},bM.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=SO(),e.length!==0&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},bM.invalidateLayer=function(e){if(this.lastInvalidationTime=SO(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];HO(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=t._private.rscratch;if((!a||t.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var u=a?t.pstyle(`opacity`).value:1,d=a?t.pstyle(`line-opacity`).value:1,f=t.pstyle(`curve-style`).value,p=t.pstyle(`line-style`).value,m=t.pstyle(`width`).pfValue,h=t.pstyle(`line-cap`).value,g=t.pstyle(`line-outline-width`).value,_=t.pstyle(`line-outline-color`).value,v=u*d,y=u*d,b=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;f===`straight-triangle`?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=m,e.lineCap=h,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},x=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(e.lineWidth=m+g,e.lineCap=h,g>0)o.colorStrokeStyle(e,_[0],_[1],_[2],n);else{e.lineCap=`butt`;return}f===`straight-triangle`?o.drawEdgeTrianglePath(t,e,s.allpts):(o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},S=function(){i&&o.drawEdgeOverlay(e,t)},C=function(){i&&o.drawEdgeUnderlay(e,t)},w=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;o.drawArrowheads(e,t,n)},T=function(){o.drawElementText(e,t,null,r)};if(e.lineJoin=`round`,t.pstyle(`ghost`).value===`yes`){var E=t.pstyle(`ghost-offset-x`).pfValue,D=t.pstyle(`ghost-offset-y`).pfValue,O=v*t.pstyle(`ghost-opacity`).value;e.translate(E,D),b(O),w(O),e.translate(-E,-D)}else x();C(),b(),w(),S(),T(),n&&e.translate(l.x1,l.y1)}},g6e=function(e){if(![`overlay`,`underlay`].includes(e))throw Error(`Invalid state`);return function(t,n){if(n.visible()){var r=n.pstyle(`${e}-opacity`).value;if(r!==0){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle(`${e}-padding`).pfValue,l=n.pstyle(`${e}-color`).value;t.lineWidth=s,t.lineCap=o.edgeType===`self`&&!a?`butt`:`round`,i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,o.allpts,`solid`)}}}},SM.drawEdgeOverlay=g6e(`overlay`),SM.drawEdgeUnderlay=g6e(`underlay`),SM.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,o,s=!1,l=this.usePaths(),u=e.pstyle(`line-dash-pattern`).pfValue,d=e.pstyle(`line-dash-offset`).pfValue;if(l){var f=n.join(`$`);i.pathCacheKey&&i.pathCacheKey===f?(o=t=i.pathCache,s=!0):(o=t=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(r){case`dotted`:a.setLineDash([1,1]);break;case`dashed`:a.setLineDash(u),a.lineDashOffset=d;break;case`solid`:a.setLineDash([])}if(!s&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case`bezier`:case`self`:case`compound`:case`multibezier`:for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(r==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var s=t.pstyle(`label`);if(!s||!s.value)return;var l=o.getLabelJustification(t),u=t.pstyle(`text-metrics`).strValue===`glyph`;e.textAlign=l,e.textBaseline=u?`alphabetic`:`bottom`}else{var d=t.element()._private.rscratch.badLine,f=t.pstyle(`label`),p=t.pstyle(`source-label`),m=t.pstyle(`target-label`);if(d||(!f||!f.value)&&(!p||!p.value)&&(!m||!m.value))return;e.textAlign=`center`,e.textBaseline=`bottom`}var h=!n,g;n&&(g=n,e.translate(-g.x1,-g.y1)),i==null?(o.drawText(e,t,null,h,a),t.isEdge()&&(o.drawText(e,t,`source`,h,a),o.drawText(e,t,`target`,h,a))):o.drawText(e,t,i,h,a),n&&e.translate(g.x1,g.y1)},CM.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle(`font-style`).strValue,i=t.pstyle(`font-size`).pfValue+`px`,a=t.pstyle(`font-family`).strValue,o=t.pstyle(`font-weight`).strValue,s=n?t.effectiveOpacity()*t.pstyle(`text-opacity`).value:1,l=t.pstyle(`text-outline-opacity`).value*s,u=t.pstyle(`color`).value,d=t.pstyle(`text-outline-color`).value;e.font=r+` `+o+` `+i+` `+a,e.lineJoin=`round`,this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,d[0],d[1],d[2],l)},CM.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+`-`:``,a=e.pstyle(i+`text-rotation`);if(a.strValue===`autorotate`){var o=UO(r,`labelAngle`,t);n=e.isEdge()?o:0}else n=a.strValue===`none`?0:a.pfValue;return n},CM.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!i||o!==0&&t.pstyle(`text-opacity`).value!==0){n===`main`&&(n=null);var s=UO(a,`labelX`,n),l=UO(a,`labelY`,n),u,d,f=this.getLabelText(t,n);if(f!=null&&f!==``&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(e,t,i);var p=n?n+`-`:``,m=UO(a,`labelWidth`,n),h=UO(a,`labelHeight`,n),g=UO(a,`labelActualDescent`,n),_=t.pstyle(p+`text-margin-x`).pfValue,v=t.pstyle(p+`text-margin-y`).pfValue,y=t.isEdge(),b=t.pstyle(`text-halign`).value,x=t.pstyle(`text-valign`).value;y&&(b=`center`,x=`center`),s+=_,l+=v;var S=r?this.getTextAngle(t,n):0;S!==0&&(u=s,d=l,e.translate(u,d),e.rotate(S),s=0,l=0);var C=XA(b),w=ZA(x);switch(w){case`top`:break;case`center`:l+=h/2;break;case`bottom`:l+=h}var T=t.pstyle(`text-background-opacity`).value,E=t.pstyle(`text-border-opacity`).value,D=t.pstyle(`text-border-width`).pfValue,O=t.pstyle(`text-background-padding`).pfValue,k=t.pstyle(`text-background-shape`).strValue,A=k===`round-rectangle`||k===`roundrectangle`,j=k===`circle`,M=2;if(T>0||D>0&&E>0){var ee=e.fillStyle,te=e.strokeStyle,ne=e.lineWidth,re=t.pstyle(`text-background-color`).value,ie=t.pstyle(`text-border-color`).value,ae=t.pstyle(`text-border-style`).value,oe=T>0,se=D>0&&E>0,ce=s-O;switch(C){case`left`:ce-=m;break;case`center`:ce-=m/2}var le=l-h-O,ue=m+2*O,de=h+2*O;if(oe&&(e.fillStyle=`rgba(${re[0]},${re[1]},${re[2]},${T*o})`),se&&(e.strokeStyle=`rgba(${ie[0]},${ie[1]},${ie[2]},${E*o})`,e.lineWidth=D,e.setLineDash))switch(ae){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`double`:e.lineWidth=D/4,e.setLineDash([]);break;default:e.setLineDash([])}if(A?(e.beginPath(),QXe(e,ce,le,ue,de,M)):j?(e.beginPath(),ZXe(e,ce,le,ue,de)):(e.beginPath(),e.rect(ce,le,ue,de)),oe&&e.fill(),se&&e.stroke(),se&&ae===`double`){var fe=D/2;e.beginPath(),A?QXe(e,ce+fe,le+fe,ue-2*fe,de-2*fe,M):e.rect(ce+fe,le+fe,ue-2*fe,de-2*fe),e.stroke()}e.fillStyle=ee,e.strokeStyle=te,e.lineWidth=ne,e.setLineDash&&e.setLineDash([])}var pe=2*t.pstyle(`text-outline-width`).pfValue;if(pe>0&&(e.lineWidth=pe),l-=g,t.pstyle(`text-wrap`).value===`wrap`){var me=UO(a,`labelWrapCachedLines`,n),he=UO(a,`labelLineHeight`,n),ge=m/2,_e=this.getLabelJustification(t);switch(_e===`auto`||(C===`left`?_e===`left`?s+=-m:_e===`center`&&(s+=-ge):C===`center`?_e===`left`?s+=-ge:_e===`right`&&(s+=ge):C===`right`&&(_e===`center`?s+=ge:_e===`right`&&(s+=m))),w){case`top`:l-=(me.length-1)*he;break;case`center`:case`bottom`:l-=(me.length-1)*he}for(var ve=0;ve0&&e.strokeText(me[ve],s,l),e.fillText(me[ve],s,l),l+=he}else pe>0&&e.strokeText(f,s,l),e.fillText(f,s,l);S!==0&&(e.rotate(-S),e.translate(-u,-d))}}},wM={},wM.drawNode=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,l,u=t._private,d=u.rscratch,f=t.position();if(qD(f.x)&&qD(f.y)&&(!a||t.visible())){var p=a?t.effectiveOpacity():1,m=o.usePaths(),h,g=!1,_=t.padding();s=t.width()+2*_,l=t.height()+2*_;var v;n&&(v=n,e.translate(-v.x1,-v.y1));for(var y=t.pstyle(`background-image`).value,b=Array(y.length),x=Array(y.length),S=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:O;o.eleFillStyle(e,t,n)},de=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:re;o.colorStrokeStyle(e,k[0],k[1],k[2],t)},fe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:se;o.colorStrokeStyle(e,ae[0],ae[1],ae[2],t)},pe=function(e,t,n,r){var i=o.nodePathCache=o.nodePathCache||[],a=CQe(n===`polygon`?n+`,`+r.join(`,`):n,``+t,``+e,``+le),s=i[a],l,u=!1;return s==null?(l=new Path2D,i[a]=d.pathCache=l):(l=s,u=!0,d.pathCache=l),{path:l,cacheHit:u}},me=t.pstyle(`shape`).strValue,he=t.pstyle(`shape-polygon-points`).pfValue;if(m){e.translate(f.x,f.y);var ge=pe(s,l,me,he);h=ge.path,g=ge.cacheHit}var _e=function(){if(!g){var n=f;m&&(n={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(h||e,n.x,n.y,s,l,le,d)}m?e.fill(h):e.fill()},ve=function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=u.backgrounding,a=0,s=0;s0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasPie(t)&&(o.drawPie(e,t,r),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,le,d)))},be=function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasStripe(t)&&(e.save(),m?e.clip(d.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,le,d),e.clip()),o.drawStripe(e,t,r),e.restore(),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,le,d)))},xe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,n=(E>0?E:-E)*t,r=E>0?0:255;E!==0&&(o.colorFillStyle(e,r,r,r,n),m?e.fill(h):e.fill())},Se=function(){if(D>0){if(e.lineWidth=D,e.lineCap=M,e.lineJoin=j,e.setLineDash)switch(A){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash(te),e.lineDashOffset=ne;break;case`solid`:case`double`:e.setLineDash([])}if(ee!==`center`){if(e.save(),e.lineWidth*=2,ee===`inside`)m?e.clip(h):e.clip();else{var t=new Path2D;t.rect(-s/2-D,-l/2-D,s+2*D,l+2*D),t.addPath(h),e.clip(t,`evenodd`)}m?e.stroke(h):e.stroke(),e.restore()}else m?e.stroke(h):e.stroke();if(A===`double`){e.lineWidth=D/3;var n=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,m?e.stroke(h):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},Ce=function(){if(ie>0){if(e.lineWidth=ie,e.lineCap=`butt`,e.setLineDash)switch(oe){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`solid`:case`double`:e.setLineDash([])}var n=f;m&&(n={x:0,y:0});var r=o.getNodeShape(t),i=D;ee===`inside`&&(i=0),ee===`outside`&&(i*=2);var a=(s+i+(ie+ce))/s,u=(l+i+(ie+ce))/l,d=s*a,p=l*u,h=o.nodeShapes[r].points,g;if(m&&(g=pe(d,p,r,h).path),r===`ellipse`)o.drawEllipsePath(g||e,n.x,n.y,d,p);else if([`round-diamond`,`round-heptagon`,`round-hexagon`,`round-octagon`,`round-pentagon`,`round-polygon`,`round-triangle`,`round-tag`].includes(r)){var _=0,v=0,y=0;r===`round-diamond`?_=(i+ce+ie)*1.4:r===`round-heptagon`?(_=(i+ce+ie)*1.075,y=-(i/2+ce+ie)/35):r===`round-hexagon`?_=(i+ce+ie)*1.12:r===`round-pentagon`?(_=(i+ce+ie)*1.13,y=-(i/2+ce+ie)/15):r===`round-tag`?(_=(i+ce+ie)*1.12,v=(i/2+ie+ce)*.07):r===`round-triangle`&&(_=(i+ce+ie)*(Math.PI/2),y=-(i+ce/2+ie)/Math.PI),_!==0&&(a=(s+_)/s,d=s*a,[`round-hexagon`,`round-tag`].includes(r)||(u=(l+_)/l,p=l*u)),le=le===`auto`?jk(d,p):le;for(var b=d/2,x=p/2,S=le+(i+ie+ce)/2,C=Array(h.length/2),w=Array(h.length/2),T=0;T0){if(r||=n.position(),i==null||a==null){var p=n.padding();i=n.width()+2*p,a=n.height()+2*p}o.colorFillStyle(t,u[0],u[1],u[2],l),o.nodeShapes[d].draw(t,r.x,r.y,i+s*2,a+s*2,f),t.fill()}}}},wM.drawNodeOverlay=v6e(`overlay`),wM.drawNodeUnderlay=v6e(`underlay`),wM.hasPie=function(e){return e=e[0],e._private.hasPie},wM.hasStripe=function(e){return e=e[0],e._private.hasStripe},wM.drawPie=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=t.pstyle(`pie-size`),o=t.pstyle(`pie-hole`),s=t.pstyle(`pie-start-angle`).pfValue,l=r.x,u=r.y,d=t.width(),f=t.height(),p=Math.min(d,f)/2,m,h=0;if(this.usePaths()&&(l=0,u=0),a.units===`%`?p*=a.pfValue:a.pfValue!==void 0&&(p=a.pfValue/2),o.units===`%`?m=p*o.pfValue:o.pfValue!==void 0&&(m=o.pfValue/2),!(m>=p))for(var g=1;g<=i.pieBackgroundN;g++){var _=t.pstyle(`pie-`+g+`-background-size`).value,v=t.pstyle(`pie-`+g+`-background-color`).value,y=t.pstyle(`pie-`+g+`-background-opacity`).value*n,b=_/100;b+h>1&&(b=1-h);var x=1.5*Math.PI+2*Math.PI*h;x+=s;var S=2*Math.PI*b,C=x+S;_===0||h>=1||h+b>1||(m===0?(e.beginPath(),e.moveTo(l,u),e.arc(l,u,p,x,C),e.closePath()):(e.beginPath(),e.arc(l,u,p,x,C),e.arc(l,u,m,C,x,!0),e.closePath()),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),h+=b)}},wM.drawStripe=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),l=t.height(),u=0,d=this.usePaths();e.save();var f=t.pstyle(`stripe-direction`).value,p=t.pstyle(`stripe-size`);switch(f){case`vertical`:break;case`righward`:e.rotate(-Math.PI/2)}var m=s,h=l;p.units===`%`?(m*=p.pfValue,h*=p.pfValue):p.pfValue!==void 0&&(m=p.pfValue,h=p.pfValue),d&&(a=0,o=0),o-=m/2,a-=h/2;for(var g=1;g<=i.stripeBackgroundN;g++){var _=t.pstyle(`stripe-`+g+`-background-size`).value,v=t.pstyle(`stripe-`+g+`-background-color`).value,y=t.pstyle(`stripe-`+g+`-background-opacity`).value*n,b=_/100;b+u>1&&(b=1-u),!(_===0||u>=1||u+b>1)&&(e.beginPath(),e.rect(a,o+h*u,m,h*b),e.closePath(),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),u+=b)}e.restore()},TM={},y6e=100,TM.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},TM.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,i=0;it.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!f&&(d[t.NODE]=!0,d[t.SELECT_BOX]=!0);var y=n.style(),b=n.zoom(),x=o===void 0?b:o,S=n.pan(),C={x:S.x,y:S.y},w={zoom:b,pan:{x:S.x,y:S.y}},T=t.prevViewport;T!==void 0&&w.zoom===T.zoom&&w.pan.x===T.pan.x&&w.pan.y===T.pan.y&&(!g||h)&&(t.motionBlurPxRatio=1),s&&(C=s),x*=l,C.x*=l,C.y*=l;var E=t.getCachedZSortedEles();function D(e,n,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,a),e.globalCompositeOperation=o}function O(e,n){var a,l,d,f;!t.clearingMotionBlur&&(e===u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||e===u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(a={x:S.x*m,y:S.y*m},l=b*m,d=t.canvasWidth*m,f=t.canvasHeight*m):(a=C,l=x,d=t.canvasWidth,f=t.canvasHeight),e.setTransform(1,0,0,1,0,0),n===`motionBlur`?D(e,0,0,d,f):!r&&(n===void 0||n)&&e.clearRect(0,0,d,f),i||(e.translate(a.x,a.y),e.scale(l,l)),s&&e.translate(s.x,s.y),o&&e.scale(o,o)}if(f||(t.textureDrawLastFrame=!1),f){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var k=t.data.bufferContexts[t.TEXTURE_BUFFER];k.setTransform(1,0,0,1,0,0),k.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:k,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult});var w=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}d[t.DRAG]=!1,d[t.NODE]=!1;var A=u.contexts[t.NODE],j=t.textureCache.texture,w=t.textureCache.viewport;A.setTransform(1,0,0,1,0,0),p?D(A,0,0,w.width,w.height):A.clearRect(0,0,w.width,w.height);var M=y.core(`outside-texture-bg-color`).value,ee=y.core(`outside-texture-bg-opacity`).value;t.colorFillStyle(A,M[0],M[1],M[2],ee),A.fillRect(0,0,w.width,w.height);var b=n.zoom();O(A,!1),A.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l),A.drawImage(j,w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var te=n.extent(),ne=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),re=t.hideEdgesOnViewport&&ne,ie=[];if(ie[t.NODE]=!d[t.NODE]&&p&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,ie[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),ie[t.DRAG]=!d[t.DRAG]&&p&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,ie[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),d[t.NODE]||i||a||ie[t.NODE]){var ae=p&&!ie[t.NODE]&&m!==1,A=r||(ae?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]);O(A,p&&!ae?`motionBlur`:void 0),re?t.drawCachedNodes(A,E.nondrag,l,te):t.drawLayeredElements(A,E.nondrag,l,te),t.debug&&t.drawDebugPoints(A,E.nondrag),!i&&!p&&(d[t.NODE]=!1)}if(!a&&(d[t.DRAG]||i||ie[t.DRAG])){var ae=p&&!ie[t.DRAG]&&m!==1,A=r||(ae?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);O(A,p&&!ae?`motionBlur`:void 0),re?t.drawCachedNodes(A,E.drag,l,te):t.drawCachedElements(A,E.drag,l,te),t.debug&&t.drawDebugPoints(A,E.drag),!i&&!p&&(d[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,O),p&&m!==1){var oe=u.contexts[t.NODE],se=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],ce=u.contexts[t.DRAG],le=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],ue=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!v?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):D(e,0,0,t.canvasWidth,t.canvasHeight);var i=m;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(d[t.NODE]||ie[t.NODE])&&(ue(oe,se,ie[t.NODE]),d[t.NODE]=!1),(d[t.DRAG]||ie[t.DRAG])&&(ue(ce,le,ie[t.DRAG]),d[t.DRAG]=!1)}t.prevViewport=w,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),p&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!f,t.mbFrames=0,d[t.NODE]=!0,d[t.DRAG]=!0,t.redraw()},y6e)),r||n.emit(`render`)},TM.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,a=r.style(),o=e.drawOnlyNodeLayer,s=e.drawAllLayers,l=i.canvasNeedsRedraw,u=e.forcedContext;if(n.showFps||!o&&l[n.SELECT_BOX]&&!s){var d=u||i.contexts[n.SELECT_BOX];if(t(d),n.selection[4]==1&&(n.hoverData.selecting||n.touchData.selecting)){var f=n.cy.zoom(),p=a.core(`selection-box-border-width`).value/f;d.lineWidth=p,d.fillStyle=`rgba(`+a.core(`selection-box-color`).value[0]+`,`+a.core(`selection-box-color`).value[1]+`,`+a.core(`selection-box-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),p>0&&(d.strokeStyle=`rgba(`+a.core(`selection-box-border-color`).value[0]+`,`+a.core(`selection-box-border-color`).value[1]+`,`+a.core(`selection-box-border-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){var f=n.cy.zoom(),m=i.bgActivePosistion;d.fillStyle=`rgba(`+a.core(`active-bg-color`).value[0]+`,`+a.core(`active-bg-color`).value[1]+`,`+a.core(`active-bg-color`).value[2]+`,`+a.core(`active-bg-opacity`).value+`)`,d.beginPath(),d.arc(m.x,m.y,a.core(`active-bg-size`).pfValue/f,0,2*Math.PI),d.fill()}var h=n.lastRedrawTime;if(n.showFps&&h){h=Math.round(h);var g=Math.round(1e3/h),_=`1 frame = `+h+` ms = `+g+` fps`;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`,b6e||=d.measureText(_).actualBoundingBoxAscent,d.fillText(_,0,b6e),d.strokeRect(0,b6e+10,250,20),d.fillRect(0,b6e+10,250*Math.min(g/60,1),20)}s||(l[n.SELECT_BOX]=!1)}},x6e=typeof Float32Array<`u`?Float32Array:Array,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),S6e=function(){function e(t,n,r,i){NE(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=i(t,n,n),this.scratch=i(t,n,this.texHeight,`scratch`)}return PE(e,[{key:`lock`,value:function(){this.locked=!0}},{key:`getKeys`,value:function(){return new Set(this.keyToLocation.keys())}},{key:`getScale`,value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,a=r/n,o=t*a,s=n*a;return o>i&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}}},{key:`draw`,value:function(e,t,n){var r=this;if(this.locked)throw Error(`can't draw, atlas is locked`);var i=this.texSize,a=this.texRows,o=this.texHeight,s=this.getScale(t),l=s.scale,u=s.texW,d=s.texH,f=function(e,r){if(n&&r){var i=r.context,a=e.x,s=e.row,u=a,d=o*s;i.save(),i.translate(u,d),i.scale(l,l),n(i,t),i.restore()}},p=[null,null],m=function(){f(r.freePointer,r.canvas),p[0]={x:r.freePointer.x,y:r.freePointer.row*o,w:u,h:d},p[1]={x:r.freePointer.x+u,y:r.freePointer.row*o,w:0,h:d},r.freePointer.x+=u,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},h=function(){var e=r.scratch,t=r.canvas;e.clear(),f({x:0,row:0},e);var n=i-r.freePointer.x,a=u-n,s=o,l=r.freePointer.x,m=r.freePointer.row*o,h=n;t.context.drawImage(e,0,0,h,s,l,m,h,s),p[0]={x:l,y:m,w:h,h:d};var g=n,_=(r.freePointer.row+1)*o,v=a;t&&t.context.drawImage(e,g,0,v,s,0,_,v,s),p[1]={x:0,y:_,w:v,h:d},r.freePointer.x=a,r.freePointer.row++},g=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+u<=i)m();else if(this.freePointer.row>=a-1)return!1;else this.freePointer.x===i?(g(),m()):this.enableWrapping?h():(g(),m());return this.keyToLocation.set(e,p),this.needsBuffer=!0,p}},{key:`getOffsets`,value:function(e){return this.keyToLocation.get(e)}},{key:`isEmpty`,value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:`canFit`,value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return this.freePointer.x+r>t?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},r=n.forceRedraw,i=r!==void 0&&r,a=n.filterEle,o=a===void 0?function(){return!0}:a,s=n.filterType,l=s===void 0?function(){return!0}:s,u=!1,d=!1,f=FE(e),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;if(o(m)){var h=FE(this.renderTypes.values()),g;try{var _=function(){var e=g.value,n=e.type;if(l(n)){var r=t.collections.get(e.collection),a=e.getKey(m),o=Array.isArray(a)?a:[a];if(i)o.forEach(function(e){return r.markKeyForGC(e)}),d=!0;else{var s=e.getID?e.getID(m):m.id(),f=t._key(n,s),p=t.typeAndIdToKey.get(f);p!==void 0&&!bD(o,p)&&(u=!0,t.typeAndIdToKey.delete(f),p.forEach(function(e){return r.markKeyForGC(e)}))}}};for(h.s();!(g=h.n()).done;)_()}catch(e){h.e(e)}finally{h.f()}}}}catch(e){f.e(e)}finally{f.f()}return d&&(this.gc(),u=!1),u}},{key:`gc`,value:function(){var e=FE(this.collections.values()),t;try{for(e.s();!(t=e.n()).done;)t.value.gc()}catch(t){e.e(t)}finally{e.f()}}},{key:`getOrCreateAtlas`,value:function(e,t,n,r){var i=this.renderTypes.get(t),a=this.collections.get(i.collection),o=!1,s=a.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),o=!0});if(o){var l=i.getID?i.getID(e):e.id(),u=this._key(t,l);this.typeAndIdToKey.has(u)?this.typeAndIdToKey.get(u).push(r):this.typeAndIdToKey.set(u,[r])}return s}},{key:`getAtlasInfo`,value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var a=r.getBoundingBox(e,i),o=n.getOrCreateAtlas(e,t,a,i),s=RE(o.getOffsets(i),2),l=s[0];return{atlas:o,tex:l,tex1:l,tex2:s[1],bb:a}})}},{key:`getDebugInfo`,value:function(){var e=[],t=FE(this.collections),n;try{for(t.s();!(n=t.n()).done;){var r=RE(n.value,2),i=r[0],a=r[1].getCounts(),o=a.keyCount,s=a.atlasCount;e.push({type:i,keyCount:o,atlasCount:s})}}catch(e){t.e(e)}finally{t.f()}return e}}])}(),T6e=function(){function e(t){NE(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return PE(e,[{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(e,t){return t})}},{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(e){return this.batchAtlases.length!==this.maxAtlasesPerBatch||this.batchAtlases.includes(e)}},{key:`getAtlasIndexForBatch`,value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error(`cannot add more atlases to batch`);this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),E6e=` +Parent cluster`,i.height),t.setNode(i.id,n),t.parent(e)||(P.trace(`Setting parent`,e,i.id),t.setParent(e,i.id,n))}if(P.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(t.node(e))),s?.clusterNode){P.info(`Cluster identified XBX`,e,s.width,t.node(e));let{ranksep:i,nodesep:o}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:i+25,nodesep:o});let l=await Iw({element:d,graph:s.graph,diagramType:n,id:r,parentCluster:t.node(e),siteConfig:a}),u=l.elem;o_(s,u),s.diff=l.diff||0,P.info(`New compound node after recursive render XAX`,e,`width`,s.width,`height`,s.height),UMe(u,s)}else t.children(e).length>0?(P.trace(`Cluster - the non recursive path XBX`,e,s.id,s,s.width,`Graph:`,t),P.trace(IS(s.id,t)),NS.set(s.id,{id:IS(s.id,t),node:s})):(P.trace(`Node - the non recursive path XAX`,e,d,t.node(e),o),await nUe(d,t.node(e),{config:a,dir:o}))})),await N(async()=>{let e=t.edges().map(async function(e){let n=t.edge(e.v,e.w,e.name);if(P.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),P.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(t.edge(e))),P.info(`Fix`,NS,`ids:`,e.v,e.w,`Translating: `,NS.get(e.v),NS.get(e.w)),p&&n.selfLoop){if(n.selfLoop.order!==1)return;let e={...n.originalEdge,...n,id:n.selfLoop.id,startLabelLeft:n.originalEdge?.startLabelLeft??n.startLabelLeft,startLabelRight:n.originalEdge?.startLabelRight??n.startLabelRight,endLabelLeft:n.originalEdge?.endLabelLeft??n.endLabelLeft,endLabelRight:n.originalEdge?.endLabelRight??n.endLabelRight};await dv(u,e),n.width=e.width,n.height=e.height,n.labelStyle=e.labelStyle;return}await dv(u,n)});await Promise.all(e)},`processEdges`)();let{subGraphTitleTotalMargin:m}=V_(a);return{elem:f,graph:t,groups:{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f},diagramType:n,id:r,mergeSelfLoops:p,subGraphTitleTotalMargin:m}},`measureDagreGraph`),gqe=N(e=>{P.info(`############################################# XXX`),P.info(`### Layout ### XXX`),P.info(`############################################# XXX`),BKe(e)},`runDagreGraphLayout`),Nw=N((e,t,n)=>{let r=e.node(t);if(!r)return;let i={...r};return r?.clusterNode?i.y=(r.y??0)+n:e.children(t).length>0?i.height=(r.height??0)+n:i.y=(r.y??0)+n/2,i},`normalizeDagreNode`),_qe=N((e,t)=>{jw.forEach(n=>{t[n]!==void 0&&(e[n]=t[n])})},`applyDagreNodeLayout`),vqe=N((e,t,n,r)=>({...e,start:e.start??t,end:e.end??n,points:(e.points??[]).map(e=>({...e,y:typeof e.y==`number`?e.y+r:e.y}))}),`normalizeDagreEdge`),Pw=N((e,t)=>{let{graph:n,mergeSelfLoops:r,subGraphTitleTotalMargin:i=0}=t,a=new Map(e.nodes.map(e=>[e.id,e]));SUe(n).forEach(e=>{let t=Nw(n,e,i);if(!t)return;_qe(n.node(e),t);let r=a.get(e);r&&_qe(r,t)});let o=i/2;return e.edges=Mw(n,o,{mergeSelfLoops:r}).map(({edge:e,start:t,end:n})=>vqe(e,t,n,o)),e},`applyDagreLayoutResult`),Fw=N(async({elem:e,graph:t,groups:{clusters:n,edgePaths:r},diagramType:i,id:a,mergeSelfLoops:o,subGraphTitleTotalMargin:s})=>{let l=0;await Promise.all(SUe(t).map(async function(e){let r=t.node(e);if(P.info(`Position XBX => `+e+`: (`+r.x,`,`+r.y,`) width: `,r.width,` height: `,r.height),r?.clusterNode)r.y+=s,P.info(`A tainted cluster node XBX1`,e,r.id,r.width,r.height,r.x,r.y,t.parent(e)),NS.get(r.id).node=r,W_(r);else if(t.children(e).length>0){P.info(`A pure cluster node XBX1`,e,r.id,r.x,r.y,r.width,r.height,t.parent(e)),r.height+=s,t.node(r.parentId);let i=r?.padding/2||0,a=r?.labelBBox?.height||0,o=a-i||0;P.debug(`OffsetY`,o,`labelHeight`,a,`halfPadding`,i),await Z_(n,r),NS.get(r.id).node=r}else{let e=t.node(r.parentId);r.y+=s/2,P.info(`A regular node XBX1 - using the padding`,r.id,`parent`,r.parentId,r.width,r.height,r.x,r.y,`offsetY`,r.offsetY,`parent`,e,e?.offsetY,r),W_(r)}}));let u=s/2;return Mw(t,u,{mergeSelfLoops:o}).forEach(function({edge:e,start:n,end:o}){P.info(`Edge `+n+` -> `+o+`: `+JSON.stringify(e),e),e.points.forEach(e=>e.y+=u);let s=t.node(n),l=t.node(o),d=gv(r,e,NS,i,s,l,a);pv(e,d)}),t.nodes().forEach(function(e){let n=t.node(e);P.info(e,n.type,n.diff),n.isGroup&&(l=n.diff)}),P.warn(`Returning from recursive render XAX`,e,l),{elem:e,diff:l}},`paintDagreLayoutCore`),Iw=N(async e=>{let t=await hqe(e);return gqe(t.graph),await Fw(t)},`renderDagreSubgraph`),Lw=N(e=>{let t=new bS({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)}),P.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let n=e.start,r=n+`---`+n+`---1`,i=n+`---`+n+`---2`,a=t.node(n);t.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),t.setParent(r,a.parentId),t.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),t.setParent(i,a.parentId);let o=structuredClone(e),s=structuredClone(e),l=structuredClone(e),u=structuredClone(e);s.originalEdge=o,s.selfLoop={id:o.id,order:0},l.originalEdge=o,l.selfLoop={id:o.id,order:1},u.originalEdge=o,u.selfLoop={id:o.id,order:2},s.label=``,s.arrowTypeEnd=`none`,s.endLabelLeft=``,s.endLabelRight=``,s.startLabelLeft=``,s.id=n+`-cyclic-special-1`,l.startLabelRight=``,l.startLabelLeft=``,l.endLabelLeft=``,l.endLabelRight=``,l.arrowTypeStart=`none`,l.arrowTypeEnd=`none`,l.id=n+`-cyclic-special-mid`,u.label=``,u.startLabelRight=``,u.startLabelLeft=``,u.arrowTypeStart=`none`,a.isGroup&&(s.fromCluster=n,u.toCluster=n),u.id=n+`-cyclic-special-2`,u.arrowTypeStart=`none`,t.setEdge(n,r,s,n+`-cyclic-special-0`),t.setEdge(r,i,l,n+`-cyclic-special-1`),t.setEdge(i,n,u,n+`-cyclic-special-2`)}else t.setEdge(e.start,e.end,{...e},e.id)}),bUe(t),{graph:t}},`prepareLayoutForDagre`),Rw=N(async(e,{element:t,preparedLayout:n})=>{let r=n??Lw(e),i=bs(),a=await hqe({element:t,graph:r.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:i});return r.measuredLayout=a,a},`measureDagreLayout`),zw=N((e,t)=>{let n=t.preparedLayout?.measuredLayout;if(!n)throw Error(`runDagreLayoutCore requires measureDagreLayout to run first`);return gqe(n.graph),Pw(e,n),n},`runDagreLayoutCore`),yqe=OS({prepareLayout:Lw,measureLayout:Rw,runLayoutCore:zw,paintOptions:{clusterDb:NS,getNodes:N((e,{measure:t})=>SUe(t.graph).map(e=>t.graph.node(e)).filter(Boolean),`getDagrePaintNodes`),getEdgeNode:N((e,t,{measure:n})=>e?n.graph.node(e):void 0,`getDagreEdgeNode`),skipNode:N((e,{measure:t})=>!t.graph.hasNode(e.id),`skipNode`),isCluster:N((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,`isCluster`)}})})),xqe=l({render:()=>xE});function Sqe(e,{measure:t}){let n=e.config?.swimlane?.lineHops;if(n===!1)return;let r=n===`gap`?`gap`:`arc`,i=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));Cv(t.groups.edgePaths,i,{enabled:!0,jumpRadius:6,jumpStyle:r})}function Cqe(e){return Math.max(e.padding??cYe,cYe)}function wqe(e){let{x:t,y:n,width:r,height:i}=e,a=e.swimlaneContentTop;if(typeof t!=`number`||typeof n!=`number`||typeof r!=`number`||typeof i!=`number`||typeof a!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)||r<=0||i<=0){delete e.groupTitleRect;return}let o=n-i/2,s=Math.min(a,n+i/2),l=o+Math.min(sYe,Math.max(0,s-o));if(l<=o){delete e.groupTitleRect;return}e.groupTitleRect={left:t-r/2,right:t+r/2,top:o,bottom:l}}function Tqe(e){let t=e.direction,n=e.nodes??=[];for(let n of e.nodes??[])n.isGroup&&!n.parentId&&(n.shape=`swimlane`,t&&(n.direction=t));let r=n.filter(e=>!e.isGroup&&!e.parentId);if(r.length===0)return;let i=n.find(e=>e.id===oYe);i?i.isGroup&&(i.shape=`swimlane`,t&&(i.direction=t)):(i={id:oYe,label:``,isGroup:!0,shape:`swimlane`,padding:20,look:e.config?.look,colorIndex:n.reduce((e,t)=>Math.max(e,t.colorIndex??-1),-1)+1,...t?{direction:t}:{}},n.push(i));for(let e of r)e.parentId=oYe}function Eqe(e){let t=new Map;for(let n of e.nodes??[])t.set(n.id,n);let n=[];for(let t of e.edges??[]){let e=typeof t.start==`string`?t.start:void 0,r=typeof t.end==`string`?t.end:void 0;e&&r&&(t.labelNodeId||n.push({id:t.id,src:e,dst:r,ref:t}))}let r=e.nodes??[],i=r.filter(e=>e.isGroup),a=r.filter(e=>!e.isGroup);return{nodes:[...[...i].reverse(),...a].map(e=>e.id),edges:n,layout:e,nodeById:t}}function Dqe(e,t,n,r){let{layout:i}=e,a=e.nodeById,o=r?.layerGap??100,s=r?.nodeGap??40,l=0;for(let e of t.layers){let t=0;for(let r of e){let e=a.get(r);if(!e){t++;continue}e.layer=l,e.order=t;let i=n.x[r]??t*s,u=n.y[r]??l*o;e.x=i,e.y=u,t++}l++}let u=i.nodes??[],d=new Map,f=[];for(let e of u){if(!e?.isGroup)continue;e.parentId||f.push(e);let t=u.filter(t=>t.parentId===e.id),r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e of t){let t=e.x??n.x[e.id],s=e.y??n.y[e.id],l=e.width??0,u=e.height??0;t!=null&&s!=null&&(r=Math.min(r,t-l/2),i=Math.max(i,t+l/2),a=Math.min(a,s-u/2),o=Math.max(o,s+u/2))}if(r===1/0||a===1/0)e.x=e.x??0,e.y=e.y??0,e.width=e.width??0,e.height=e.height??0;else{let t=e.padding??20,n=e.parentId?t:2*Cqe(e),s=t,l=Math.max(0,i-r)+n,u=Math.max(0,o-a)+s,f=(r+i)/2,p=(a+o)/2;e.x=f,e.y=p,e.width=l,e.height=u,d.set(e.id,{minX:r,maxX:i,minY:a,maxY:o})}}if(f.length>0&&d.size>0){let e=1/0,t=-1/0,n=0;for(let r of f){let i=r.padding??20;i>n&&(n=i);let a=d.get(r.id);a&&(e=Math.min(e,a.minY),t=Math.max(t,a.maxY))}if(e!==1/0&&t!==-1/0){let r=Math.max(0,t-e)+2*Math.max(n,36),i=(e+t)/2;for(let t of f)t.y=i,t.height=r,t.swimlaneContentTop=e;let a=[...f].sort((e,t)=>(e.x??0)-(t.x??0)),o=[],s=[],l=[];for(let e of a){let t=d.get(e.id);if(!t)continue;let n=Math.max(0,t.maxX-t.minX)+2*Cqe(e),r=(t.minX+t.maxX)/2;o.push(e.id),s.push(r),l.push(n)}let u=o.length;if(u>0){let e=new Map;if(u===1)e.set(o[0],l[0]);else{let t=[];for(let e=0;e0&&i>0?{cx:t,cy:n,rect:Zw(t,n,r,i)}:void 0}function Aqe(e){if(e.isGroup)return;let t=kqe(e);if(t)return{id:String(e.id??``),cx:t.cx,cy:t.cy,rect:t.rect}}function Bw(e,t,n=rE){return Math.abs(e.x-t.x)n}function Ww(e,t,n=rE){return Vw(e,t,n)&&Math.abs(e.y-t.y)>n}function Gw(e,t,n,r){return Math.max(0,Math.min(Math.max(e,t),Math.max(n,r))-Math.max(Math.min(e,t),Math.min(n,r)))}function Kw(e,t,n=rE){return e.horizontal&&t.horizontal&&Hw(e.a,t.a,n)?Gw(e.a.x,e.b.x,t.a.x,t.b.x):e.vertical&&t.vertical&&Vw(e.a,t.a,n)?Gw(e.a.y,e.b.y,t.a.y,t.b.y):0}function qw(e,t=rE){let n=[];for(let r=0;r0?n[n.length-1]:void 0;(!e||!Bw(e,r,t))&&n.push({x:r.x,y:r.y})}return n}function jqe(e,t=rE){if(!e||e.length!==4)return;let[n,r,i,a]=e;return Uw(n,r,t)&&Ww(r,i,t)&&Uw(i,a,t)?{kind:`HVH`,p0:n,p1:r,p2:i,p3:a}:Ww(n,r,t)&&Uw(r,i,t)&&Ww(i,a,t)?{kind:`VHV`,p0:n,p1:r,p2:i,p3:a}:void 0}function Mqe(e,t,n,r=0){let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return a>n.left-r&&in.top-r&&ot.left+n&&e.xt.top+n&&e.y=t.right&&e.top<=t.top&&e.bottom>=t.bottom}function Xw(e,t){return e.leftt.left&&e.topt.top}function Fqe(e,t){return{left:e.left-t,right:e.right+t,top:e.top-t,bottom:e.bottom+t}}function Zw(e,t,n,r){return{left:e-n/2,right:e+n/2,top:t-r/2,bottom:t+r/2}}function Qw(e){return kqe(e)?.rect}function $w(e,t){switch(t){case`top`:return{x:e.cx,y:e.rect.top};case`bottom`:return{x:e.cx,y:e.rect.bottom};case`left`:return{x:e.rect.left,y:e.cy};case`right`:return{x:e.rect.right,y:e.cy}}}function Iqe(e,t,n,r,i,a=rE){let o=t===`left`||t===`right`,s=r===`left`||r===`right`;if(o&&s){if(t===`right`&&r===`left`&&e.xn.x){if(Hw(e,n,a))return[e,n];let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}if(t===r){if(Hw(e,n,a))return;let r=t===`left`?Math.min(e.x,n.x)-i:Math.max(e.x,n.x)+i;return[e,{x:r,y:e.y},{x:r,y:n.y},n]}return}if(!o&&!s){if(t===r){if(Vw(e,n,a))return;let r=t===`top`?Math.min(e.y,n.y)-i:Math.max(e.y,n.y)+i;return[e,{x:e.x,y:r},{x:n.x,y:r},n]}if(!(t===`bottom`&&r===`top`&&e.yn.y))return;if(Vw(e,n,a))return[e,n];let o=(e.y+n.y)/2;return[e,{x:e.x,y:o},{x:n.x,y:o},n]}if(o&&!s){let i=t===`right`&&n.x>e.x||t===`left`&&n.xn.y;return i&&a?[e,{x:n.x,y:e.y},n]:void 0}let l=t===`bottom`&&n.y>e.y||t===`top`&&n.yn.x;return l&&u?[e,{x:e.x,y:n.y},n]:void 0}function Lqe(e,t,n,r){return t===`left`||t===`right`?[e,{x:r,y:e.y},{x:r,y:n.y},n]:[e,{x:e.x,y:r},{x:n.x,y:r},n]}function eT(e){let t=new Map,n=[];for(let r of e){if(r.isEdgeLabel)continue;let e=Aqe(r);e&&(t.set(e.id,e),n.push({id:e.id,rect:e.rect}))}return{nodeInfoById:t,realNodeRects:n}}function tT(e){let t=[],n=[];for(let r of e){let e=Aqe(r);if(!e)continue;let i={id:e.id,rect:e.rect};r.isEdgeLabel?n.push(i):t.push(i)}return{realNodeRects:t,labelNodeRects:n}}function nT(e,{includeEdgeLabels:t=!0}={}){let n=[];for(let r of e){if(r.isGroup||!t&&r.isEdgeLabel)continue;let e=r.x??0,i=r.y??0,a=r.width??0,o=r.height??0;n.push({nodeId:r.id,...Zw(e,i,a,o)})}return n}function Rqe(e,t,n=rE){let r=e.start,i=e.end;if(!r||!i)return;let a=t.get(r),o=t.get(i);if(a&&o)return{srcId:r,dstId:i,srcInfo:a,dstInfo:o,collinearX:Math.abs(a.cx-o.cx)h||p<_||p>v)return!1;let y=Math.abs(g-d.a.x)i:a&&s&&Hw(e,n,i)?Gw(e.x,t.x,n.x,r.x)>i:!1}function zqe(e,t,n,r,{epsilon:i=rE,skipDegenerateOther:a=!1}={}){for(let o of n){if(o===r||o.isLayoutOnly)continue;let n=o.points;if(!(!n||n.length<2))for(let r=0;rp+i&&hg+i&&f<_-i}function Bqe(e,t,n){let r=Math.min(t,n),i=Math.max(t,n);return e>r+rE&&e=2?t[t.length-2]:void 0,n=e&&Vw(e,r)?{x:r.x,y:i.y}:{x:i.x,y:r.y};t.push(n)}t.push(i)}let n=[];for(let e of t){let t=n[n.length-1];(!t||!Bw(t,e))&&n.push(e)}return n}function cT(e){if(e.length<3)return e;let t=[...e];for(let e=0;e<32;e++){let e=Hqe(t);if(t=e.points,!e.changed)break}return t}function Uqe(e,t,n){let r=e;if(r.isLayoutOnly||!r.points||r.points.length=0&&i=e.length)return e;let a=i-r;if(a<0||a>=e.length)return e;let o=lT(e[i],e[a],t);return n?[o,...e.slice(i)]:[...e.slice(0,i+1),o]}function Wqe(e,t){for(let n of e){let e=Uqe(n,t,2);if(!e)continue;let r=[...e.points];e.srcRect&&(r=uT(r,e.srcRect,!0)),e.dstRect&&(r=uT(r,e.dstRect,!1)),r=cT(sT(r)),r=_T(r,e.srcRect,e.dstRect),e.edge.points=cT(sT(r))}}function Gqe(e,t,n,r=!1){if(Hw(e,t,iE)){if(t.yn.bottom+iE)return t;if(r){if(e.xn.right+iE)return{x:n.right,y:e.y}}return{x:Math.abs(t.x-n.left)<=Math.abs(t.x-n.right)?n.left:n.right,y:e.y}}if(Vw(e,t,iE)){if(t.xn.right+iE)return t;if(r){if(e.yn.bottom+iE)return{x:e.x,y:n.bottom}}let i=Math.abs(t.y-n.top)<=Math.abs(t.y-n.bottom);return{x:e.x,y:i?n.top:n.bottom}}return t}function Kqe(e,t,n){let r=e[t];for(let i=t+n;i>=0&&ie.lo)),n=Math.min(...e.map(e=>e.hi));if(!(t>n))return{lo:t,hi:n}}function qqe(e,t){return t===`left`||t===`right`?dT(e.top,e.bottom):dT(e.left,e.right)}function Jqe(e,t,n){let r=e.y>=n.top-iE&&e.y<=n.bottom+iE,i=e.x>=n.left-iE&&e.x<=n.right+iE;if(Hw(e,t,iE)&&r){if(Math.abs(e.x-n.left)0?pT(a):void 0}function gT(e,t,n,r,i){let a=hT(e,t,n,r,i);if(!a)return;let o=i?e.y:e.x,s=Math.min(a.hi,Math.max(a.lo,o));if(!(Math.abs(s-o)({...e}));for(let s=t;s>=0&&s=n.left-iE&&Math.max(e.x,t.x)<=n.right+iE,i=Math.min(e.y,t.y)>=n.top-iE&&Math.max(e.y,t.y)<=n.bottom+iE;if(Math.abs(e.y-n.top)r.bottom+iE;case`left`:return Hw(t,n,iE)&&n.xr.right+iE}}function $qe(e,t,n){if(e.length<3)return e;if(n){let n=Qqe(e[0],e[1],t);return n&&vT(n,e[1],e[2],t)?e.slice(1):e}let r=e.length-1,i=Qqe(e[r-1],e[r],t);return i&&vT(i,e[r-1],e[r-2],t)?e.slice(0,r):e}function eJe(e,t,n){let r=e;if(t){let e=Kqe(r,0,1);if(e){let n=Gqe(e,r[0],t);n!==r[0]&&(r=[n,...r.slice(1)])}r=$qe(r,t,!0)}if(n){let e=r.length-1,t=Kqe(r,e,-1);if(t){let i=Gqe(t,r[e],n,!0);i!==r[e]&&(r=[...r.slice(0,e),i])}r=$qe(r,n,!1)}let i=_T(r,t,n);return i!==r||r.length===2?i:(t&&(r=Zqe(r,t,!0)),n&&(r=Zqe(r,n,!1)),r)}function tJe(e,t){for(let n of e){let e=Uqe(n,t,2);if(!e)continue;let r=eJe(Yw(e.points,iE),e.srcRect,e.dstRect);if(r.length<3){e.edge.points=r;continue}let i=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];e.edge.points=i}}function yT(e){return new Map(e.map(e=>[e.id,e]))}function bT(e,t){let n=e.parentId,r=null;for(;n;){let e=t.get(n);if(!e?.isGroup)break;r=e.id,n=e.parentId}return r}function nJe(e,t){let n=0,r=e.parentId;for(;r;){let e=t.get(r);if(!e?.isGroup)break;n++,r=e.parentId}return n}function xT(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(let a of e){let e=a.x,o=a.y;if(typeof e!=`number`||typeof o!=`number`)continue;let s=a.width??0,l=a.height??0;t=Math.min(t,e-s/2),n=Math.max(n,e+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}return t===1/0||r===1/0?null:{minX:t,maxX:n,minY:r,maxY:i}}function rJe(e,t){let n=e.padding??20;e.x=(t.minX+t.maxX)/2,e.y=(t.minY+t.maxY)/2,e.width=Math.max(0,t.maxX-t.minX)+n,e.height=Math.max(0,t.maxY-t.minY)+n}function iJe(e){let t=yT(e),n=e.filter(e=>e.isGroup&&e.parentId).sort((e,n)=>nJe(n,t)-nJe(e,t));for(let t of n){let n=xT(e.filter(e=>e.parentId===t.id));n&&rJe(t,n)}}function aJe(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=-1/0;for(let e of i){let n=e[t];typeof n==`number`&&(a=Math.min(a,n),o=Math.max(o,n))}if(!Number.isFinite(a)||!Number.isFinite(o))return!1;let s=N(e=>a+o-e,`mirror`);for(let e of n){let n=e[t];typeof n==`number`&&(e[t]=s(n));let r=e.groupTitleRect;r&&(e.groupTitleRect=t===`x`?{...r,left:s(r.right),right:s(r.left)}:{...r,top:s(r.bottom),bottom:s(r.top)})}for(let e of r)for(let n of e.points??[])n[t]=s(n[t]);return!0}function oJe(e){return!(e.nodes??[]).some(e=>!e.isGroup)||aJe(e,`y`)}function sJe(e,t=`LR`){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=1/0;for(let e of i){let t=e.x??0,n=e.y??0;t0?Math.max(1,u/d):1;for(let e of i){let t=e.x??0,n=((e.y??0)-o)*f+36,r=t-a;e.x=n,e.y=r}for(let e of r)if(e.points)for(let t of e.points){let e=t.x,n=(t.y-o)*f+36,r=e-a;t.x=n,t.y=r}iJe(n);let p=n.filter(e=>e.isGroup&&!e.parentId);if(p.length===0)return t===`RL`&&aJe(e,`x`),!0;let m=yT(n),h=new Map;for(let e of n){if(e.isGroup)continue;let t=bT(e,m);if(!t)continue;let n=h.get(t)??[];n.push(e),h.set(t,n)}let g=0;for(let e of p){let t=e.padding??0;t>g&&(g=t)}let _=[],v=1/0,y=-1/0;for(let e of p){let t=xT(h.get(e.id)??[]);t&&(v=Math.min(v,t.minX),y=Math.max(y,t.maxX),_.push({lane:e,contentTop:t.minY,contentBottom:t.maxY,centerY:(t.minY+t.maxY)/2}))}if(v===1/0||y===-1/0)return!0;let b=Math.max(0,y-v)+2*Math.max(g,10),x=36+b,S=(v+y)/2-b/2-36,C=S+x/2,w=Math.max(g,36);_.sort((e,t)=>e.centerY-t.centerY);for(let e=0;e<_.length;e++){let t=_[e],n,r;if(n=e===0?t.contentTop-w:(_[e-1].contentBottom+t.contentTop)/2,e===_.length-1)r=t.contentBottom+w;else{let n=_[e+1];r=(t.contentBottom+n.contentTop)/2}let i=Math.max(0,r-n),a=(n+r)/2;t.lane.x=C,t.lane.y=a,t.lane.width=x,t.lane.height=i,t.lane.swimlaneContentTop=t.contentTop,t.lane.groupTitleRect={left:S,right:S+36,top:n,bottom:r}}return t===`RL`&&aJe(e,`x`),!0}function ST(e,t){let{nodeInfoById:n,realNodeRects:r}=eT(t);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!i||i.length<4)continue;let a=jqe(Yw(i,aE),aE);if(!a)continue;let{p3:o}=a,s=a.kind===`HVH`,l=Rqe(t,n,aE);if(!l)continue;let{srcId:u,dstId:d,srcInfo:f,dstInfo:p,collinearX:m,collinearY:h}=l;if(m||h)continue;let g,_=f.rect;for(let n of fYe){let i,a,l;if(s){let e=p.cy>f.cy?_.bottom:_.top,t=f.cx+n;if(t<=_.left+aE||t>=_.right-aE)continue;i={x:t,y:e},a={x:t,y:o.y},l={x:o.x,y:o.y}}else{let e=p.cx>f.cx?_.right:_.left,t=f.cy+n;if(t<=_.top+aE||t>=_.bottom-aE)continue;i={x:e,y:t},a={x:o.x,y:t},l={x:o.x,y:o.y}}let m=Bw(i,a,aE),h=Bw(a,l,aE);if(m&&h||!m&&rT(i,a,r,[u],1)||!h&&rT(a,l,r,[d],1))continue;let v=!m&&zqe(i,a,e,t,{epsilon:aE,skipDegenerateOther:!0}),y=!h&&zqe(a,l,e,t,{epsilon:aE,skipDegenerateOther:!0});if(!(v||y)){g=m?[a,l]:h?[i,a]:[i,a,l];break}}g&&(t.points=g)}}function cJe(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=tT(t.values());for(let a of e){if(a.isLayoutOnly)continue;let o=a.points;if(!o||o.length<4)continue;let s=Yw(o,n);if(s.length<4)continue;let l=s.length-1,u=s[l],d=s[l-1],f=s[l-2],p=u.x-d.x,m=u.y-d.y,h=Math.hypot(p,m);if(h>=10||h0;O={x:f.x,y:E},k={x:e?D.right:D.left,y:E}}if(rT(O,k,r,S?[S]:[],-2)||rT(O,k,i,[],-2))continue;if(C){let e=t.get(C),n=e?Qw(e):void 0;if(n&&Nqe(O,n,2))continue}let A=N((e,t)=>`${e.x.toFixed(3)},${e.y.toFixed(3)}|${t.x.toFixed(3)},${t.y.toFixed(3)}`,`ownSegmentKey`),j=new Set;for(let e=0;e{for(let i of e){if(i===a||i.isLayoutOnly)continue;let e=i.points;if(!(!e||e.length<2))for(let i=0;i=0){let e=s[l-3],t=[C,S].filter(e=>!!e);if(rT(e,O,r,t,-2)||M(e,O))continue}let ee=[...s.slice(0,l-2),O,k];a.points=ee;let te=a.labelNodeId;if(te){let e=t.get(te);if(e){let t=e.width??0,r=e.height??0;if(t>0&&r>0){let i,a,o=-1;for(let e=0;e=t+2||f&&u>=r+2)&&u>o&&(o=u,i=(s.x+l.x)/2,a=(s.y+l.y)/2)}i!==void 0&&a!==void 0&&(e.x=i,e.y=a)}}}}}function CT(e,t){let n=N((e,t)=>{let n=e.x??0,r=e.y??0,i=t.x-n,a=t.y-r,o=(e.width??0)/2,s=(e.height??0)/2;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),{x:n+(a===0?0:s*i/a),y:r+s}):(i<0&&(o=-o),{x:n+o,y:r+(i===0?0:o*a/i)})},`rectIntersect`),r=N((e,r)=>{let i=Yw(e.points??[]);if(i.length<2)return;let a=r?e.start:e.end,o=a?t.get(a):void 0,s=o?Qw(o):void 0;if(!o||!a||!s)return;let l=r?i[0]:i[i.length-1],u=r?i[1]:i[i.length-2],d=n(o,l),f=l;if(uE(u,d)&&(f=u),Vw(d,f,sE))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`V`,coord:d.x,min:Math.min(d.y,f.y),max:Math.max(d.y,f.y),boundary:d,railEnd:f,rect:s};if(Hw(d,f,sE))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`H`,coord:d.y,min:Math.min(d.x,f.x),max:Math.max(d.x,f.x),boundary:d,railEnd:f,rect:s}},`terminalLaneFor`),i=N((e,t)=>Math.max(0,Math.min(e.max,t.max)-Math.max(e.min,t.min)),`projectedOverlapLength`),a=N((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:e.orientation===`H`?(Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1)&&Vw(e.boundary,t.boundary,1):(Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1)&&Hw(e.boundary,t.boundary,1),`sameTerminalFace`),o=N((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:i(e,t)>=cE&&Math.abs(e.coord-t.coord)<.5,`exactTerminalLaneConflict`),s=N((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation||e.orientation!==`H`||e.atStart===t.atStart)return!1;let n=i(e,t);if(n2*r?!1:a(e,t)&&Math.abs(e.coord-t.coord)<16},`nearTerminalLaneConflict`),l=N((e,t)=>{let n=Yw(e.edge.points??[]);if(n.length<2)return;let r=e.orientation===`V`?{x:e.boundary.x+t,y:e.boundary.y}:{x:e.boundary.x,y:e.boundary.y+t},i=e.orientation===`V`?{x:e.railEnd.x+t,y:e.railEnd.y}:{x:e.railEnd.x,y:e.railEnd.y+t};if(!N(()=>Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1?Hw(r,e.boundary,sE)&&r.x>=e.rect.left+1&&r.x<=e.rect.right-1:Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1?Vw(r,e.boundary,sE)&&r.y>=e.rect.top+1&&r.y<=e.rect.bottom-1:!1,`boundaryStaysOnSameFace`)())return;if(e.atStart){let t=n.length>1&&Bw(n[1],e.railEnd,sE),a=n.slice(t?2:1),o=a[0];return o&&!uE(o,i)?void 0:[r,i,...a]}let a=n.length>1&&Bw(n[n.length-2],e.railEnd,sE),o=n.slice(0,a?-2:-1),s=o[o.length-1];if(!s||uE(s,i))return[...o,i,r]},`shiftedCandidate`),u=N(e=>{let n=e.edge,r=Yw(n.points??[]);if(r.length!==2)return!1;let i=n.start,a=n.end,o=i?t.get(i):void 0,s=a?t.get(a):void 0;if(!o||!s)return!1;let l=o.x??0,u=o.y??0,d=s.x??0,f=s.y??0,[p,m]=r;return Hw(p,m,sE)&&Math.abs(u-f)<1&&Math.abs(l-d)>1||Vw(p,m,sE)&&Math.abs(l-d)<1&&Math.abs(u-f)>1},`laneIsStraightCollinearConnector`),d=[-7,7,-14,14,-21,21];for(let t=0;t<8;t++){let t=e.filter(e=>!e.isLayoutOnly).flatMap(e=>[r(e,!0),r(e,!1)]).filter(e=>!!e),n=!1;for(let e=0;e{let n=u(e),r=u(t);return n===r?Number(!t.atStart)-Number(!e.atStart):Number(n)-Number(r)});for(let e of m){for(let i of d){let a=l(e,i);if(!a)continue;let u=r({...e.edge,points:a},e.atStart);if(u&&!t.some(t=>t.edge!==e.edge&&(o(u,t)||p&&s(u,t)))){e.edge.points=a,n=!0;break}}if(n)break}}if(!n)return}}function wT(e,t){let{realNodeRects:n,labelNodeRects:r}=tT(t.values()),i=N((t,i)=>{let a=t.start,o=t.end,s=lE(i);if(s.length!==i.length-1)return!1;let l=[a,o].filter(e=>!!e);for(let e of s)if(rT(e.a,e.b,n,l,-2)||rT(e.a,e.b,r,[],-2))return!1;for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.points;if(!(!e||e.length<2)){for(let t of s)for(let n of lE(Yw(e)))if(Kw(t,n,.5)>=cE||oT(t.a,t.b,n.a,n.b,sE))return!1}}return!0},`candidateIsSafe`),a=N((e,t)=>{if(t+4>=e.length)return;let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=e[t+4],s=Uw(n,r)&&Ww(r,i)&&Uw(i,a)&&Ww(a,o)&&Vw(n,a,sE)&&Vw(n,o,sE)&&Vw(r,i,sE)&&(r.x-n.x)*(a.x-i.x)<0,l=Ww(n,r)&&Uw(r,i)&&Ww(i,a)&&Uw(a,o)&&Hw(n,a,sE)&&Hw(n,o,sE)&&Hw(r,i,sE)&&(r.y-n.y)*(a.y-i.y)<0;if(s||l)return Yw([...e.slice(0,t+1),o,...e.slice(t+5)]);if(t+5>=e.length)return;let u=e[t+5],d=Ww(n,r)&&Uw(r,i)&&Ww(i,a)&&Uw(a,o)&&Ww(o,u)&&Vw(n,o,sE)&&Vw(n,u,sE)&&Vw(i,a,sE)&&(i.x-r.x)*(o.x-a.x)<0,f=Uw(n,r)&&Ww(r,i)&&Uw(i,a)&&Ww(a,o)&&Uw(o,u)&&Hw(n,o,sE)&&Hw(n,u,sE)&&Hw(i,a,sE)&&(i.y-r.y)*(o.y-a.y)<0;if(d||f)return Yw([...e.slice(0,t+1),u,...e.slice(t+6)])},`withoutDogleg`);for(let t=0;t<8;t++){let t=!1;for(let n of e){if(n.isLayoutOnly)continue;let e=Yw(n.points??[]);for(let r=0;r<=e.length-5;r++){let o=a(e,r);if(o&&i(n,o)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function lJe(e,t){let{realNodeRects:n,labelNodeRects:r}=tT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=N((e,t,n)=>Yw(e===t?n??[]:e.points??[]),`pointsFor`),o=N((e,t)=>{let n=0;for(let r=0;r{let t=lE(e);if(t.length!==3)return;let n=t[1];if(t[0].horizontal!==n.horizontal&&t[2].horizontal!==n.horizontal)return{index:n.index,horizontal:n.horizontal,vertical:n.vertical,segment:n}},`middleRail`),l=N((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);return n.filter(e=>{if(r.includes(e.id))return!1;let n=e.rect;return t.horizontal?Gw(t.a.x,t.b.x,n.left,n.right)>=cE&&t.a.y>=n.top-2&&t.a.y<=n.bottom+2:Gw(t.a.y,t.b.y,n.top,n.bottom)>=cE&&t.a.x>=n.left-2&&t.a.x<=n.right+2})},`blockingRectsFor`),u=N((e,t,n)=>{let r=e.map(e=>({...e}));if(t.horizontal)r[t.index].y=n,r[t.index+1].y=n;else if(t.vertical)r[t.index].x=n,r[t.index+1].x=n;else return;let i=cT(Yw(r));return lE(i).length===i.length-1?i:void 0},`candidateByMovingRail`),d=N((e,t,s)=>{let l=[e.start,e.end].filter(e=>!!e),u=lE(t);if(u.length!==t.length-1)return!1;for(let e of u)if(rT(e.a,e.b,n,l,-2)||rT(e.a,e.b,r,[],-2))return!1;for(let t of i)if(t!==e){for(let e of u)for(let n of lE(a(t)))if(Kw(e,n,.5)>=cE)return!1}return o(e,t)<=s},`candidateIsSafe`);for(let e=0;e<8;e++){let e=o(),t=!1;for(let n of i){let r=a(n),i=s(r);if(!i)continue;let o=l(n,i.segment);if(o.length===0)continue;let f=i.horizontal?[Math.min(...o.map(e=>e.rect.top))-20,Math.max(...o.map(e=>e.rect.bottom))+20]:[Math.min(...o.map(e=>e.rect.left))-20,Math.max(...o.map(e=>e.rect.right))+20];for(let a of f){let o=u(r,i.segment,a);if(o&&d(n,o,e)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function uJe(e,t,n){let r=N(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),i=N(e=>{if(!e.isGroup||e.parentId)return;let t=pYe(e.direction??n);if(t===`LR`||t===`RL`||t===`BT`)return;let i=r(e),a=e.y,o=e.height;if(!i||typeof a!=`number`||typeof o!=`number`||!Number.isFinite(a)||!Number.isFinite(o)||o<=0)return;let s=i.right-i.left,l=i.bottom-i.top;if(!(l<=0||s{if(!e.horizontal)return!1;let n=e.a.y;return nt.bottom+sE?!1:Gw(e.a.x,e.b.x,t.left,t.right)>=cE},`horizontalSegmentIntersectsTitle`),o=[...t.values()].map(i).filter(e=>!!e);if(o.length===0)return;let s=0;for(let t of e){if(t.isLayoutOnly)continue;let e=Yw(t.points??[]);for(let t of lE(e))for(let e of o)a(t,e.rect)&&(s=Math.max(s,e.rect.bottom-t.a.y+4))}if(!(s<=sE))for(let e of o){let t=e.node.y,n=e.node.height;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.y=t-s/2,e.node.height=n+s,e.node.groupTitleRect={...e.rect,top:e.rect.top-s,bottom:e.rect.bottom-s})}}function dJe(e,t,n){let r=N(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),i=N(e=>{if(!e.isGroup||e.parentId||pYe(e.direction??n)!==`LR`)return;let t=r(e),i=e.x,a=e.width;if(!t||typeof i!=`number`||typeof a!=`number`||!Number.isFinite(i)||!Number.isFinite(a)||a<=0)return;let o=t.right-t.left,s=t.bottom-t.top;if(!(o<=0||s{if(!e.vertical)return!1;let n=e.a.x;return nt.right+sE?!1:Gw(e.a.y,e.b.y,t.top,t.bottom)>=cE},`verticalSegmentIntersectsTitle`),o=N((e,t)=>{if(!e.horizontal)return!1;let n=e.a.y;return nt.bottom+sE?!1:Gw(e.a.x,e.b.x,t.left,t.right)>=cE},`horizontalSegmentIntersectsTitle`),s=[...t.values()].map(i).filter(e=>!!e);if(s.length===0)return;let l=0;for(let t of e){if(t.isLayoutOnly)continue;let e=Yw(t.points??[]);for(let t of lE(e))for(let e of s)if(a(t,e.rect))l=Math.max(l,e.rect.right-t.a.x+4);else if(o(t,e.rect)){let n=Math.min(t.a.x,t.b.x);l=Math.max(l,e.rect.right-n+4)}}if(!(l<=sE))for(let e of s){let t=e.node.x,n=e.node.width;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.x=t-l/2,e.node.width=n+l,e.node.groupTitleRect={...e.rect,left:e.rect.left-l,right:e.rect.right-l})}}function fJe(e,t){let{realNodeRects:n}=tT(t.values()),r=e.filter(e=>!e.isLayoutOnly),i=N((e,t=new Map)=>Yw(t.get(e)??e.points??[]),`replacementPointsFor`),a=N((e=new Map)=>{let t=0;for(let n=0;nr.reduce((t,n)=>t+Jw(i(n,e)),0),`totalBends`),s=N(e=>{let t=i(e);if(t.length<4)return;let n=t[t.length-2],r=t[t.length-1];if(Uw(n,r,sE)||Ww(n,r,sE))return{tailStart:n,terminal:r}},`terminalTailFor`),l=N((e,t)=>{let n=i(e);if(n.length<3)return;let r=n[0],a=n[1],o;if(Uw(r,a,sE))o={x:a.x,y:t.tailStart.y};else if(Ww(r,a,sE))o={x:t.tailStart.x,y:a.y};else return;let s=cT(Yw([r,a,o,t.tailStart,t.terminal]));return lE(s).length===s.length-1?s:void 0},`candidateWithDestinationTail`),u=N((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);for(let e of lE(t))if(rT(e.a,e.b,n,r,-2))return!0;return!1},`pathHasNodeHit`),d=N((e,t,n)=>{for(let a of r)if(a!==e){for(let e of lE(t))for(let t of lE(i(a,n)))if(Kw(e,t,.5)>=cE)return!0}return!1},`pathHasSharedTrack`),f=N((e,t,n)=>!u(e,t)&&!d(e,t,n),`candidateIsSafe`),p=N(()=>{let e=new Map;for(let n of r){let r=n.end;if(!r||!t.has(r)||i(n).length<4)continue;let a=e.get(r)??[];a.push(n),e.set(r,a)}return e},`edgesByDestination`);for(let e=0;e<4;e++){let e=a();if(e===0)return;let t=o(),n,r=e,i=t;for(let t of p().values())for(let u=0;u=e||b>r||b===r&&x>=i||(n=y,r=b,i=x)}if(!n)return;for(let[e,t]of n)e.points=t}}function pJe(e,t){let{realNodeRects:n,labelNodeRects:r}=tT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=N((e,t=new Map)=>Yw(t.get(e)??e.points??[]),`replacementPointsFor`),o=N((e=new Map)=>{let t=0;for(let n=0;ni.reduce((t,n)=>t+Jw(a(n,e)),0),`totalBends`),l=N(e=>{let n=e.start,r=e.end,i=n?t.get(n):void 0,a=r?t.get(r):void 0,o=i?Qw(i):void 0,s=a?Qw(a):void 0;return o&&s?{src:o,dst:s}:void 0},`endpointRectsFor`),u=N((e,t,n)=>{if(n.index<=0||n.index+1>=t.length-1)return;let r=l(e);if(r){if(n.vertical){let i=n.a.x,a=Math.min(r.src.left,r.dst.left),o=Math.max(r.src.right,r.dst.right),s=io+sE?`right`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`vertical`,side:s,coord:i,min:Math.min(n.a.y,n.b.y),max:Math.max(n.a.y,n.b.y)}:void 0}if(n.horizontal){let i=n.a.y,a=Math.min(r.src.top,r.dst.top),o=Math.max(r.src.bottom,r.dst.bottom),s=io+sE?`bottom`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`horizontal`,side:s,coord:i,min:Math.min(n.a.x,n.b.x),max:Math.max(n.a.x,n.b.x)}:void 0}}},`externalRailForSegment`),d=N(()=>{let e=[];for(let t of i){let n=a(t);for(let r of lE(n)){let i=u(t,n,r);i&&e.push(i)}}return e},`collectExternalRails`),f=N((e,t)=>e.edge!==t.edge&&e.axis===t.axis&&e.side===t.side&&Gw(e.min,e.max,t.min,t.max)>=cE,`railsInteract`),p=N(e=>{let t=[],n=new Set;for(let r of e){if(n.has(r))continue;let i=[r],a=[];for(n.add(r);i.length>0;){let t=i.pop();a.push(t);for(let r of e)!n.has(r)&&f(t,r)&&(n.add(r),i.push(r))}a.length>1&&t.push(a)}return t},`connectedComponents`),m=N(e=>{let t=[];for(let n of e)t.some(e=>Math.abs(e-n.coord){let t=e.map(e=>e.coord),n=m(e),r=[];if(e.length<=6){let i=Array(n.length).fill(!1),a=[],o=N(()=>{if(a.length===e.length){a.some((e,n)=>Math.abs(e-t[n])>=sE)&&r.push([...a]);return}for(let[e,t]of n.entries())i[e]||(i[e]=!0,a.push(t),o(),a.pop(),i[e]=!1)},`visit`);return o(),r}for(let e=0;e{let n=new Map;for(let[r,i]of e.entries()){let e=t[r],a=n.get(i.edge)??i.points.map(e=>({x:e.x,y:e.y}));i.axis===`vertical`?(a[i.segmentIndex].x=e,a[i.segmentIndex+1].x=e):(a[i.segmentIndex].y=e,a[i.segmentIndex+1].y=e),n.set(i.edge,a)}let r=new Map;for(let[e,t]of n){let n=cT(Yw(t));if(lE(n).length!==n.length-1)return;r.set(e,n)}return r},`replacementsForAssignment`),_=N(e=>{for(let[t,i]of e){let e=[t.start,t.end].filter(e=>!!e);for(let t of lE(i))if(rT(t.a,t.b,n,e,-2)||rT(t.a,t.b,r,[],-2))return!1}for(let t=0;t=cE)return!1}}return!0},`candidateIsSafe`);for(let e=0;e<4;e++){let e=o();if(e===0)return;let t,n=e,r=s(),i=1/0;for(let a of p(d()))for(let l of h(a)){let u=g(a,l);if(!u||!_(u))continue;let d=o(u);if(d>=e)continue;let f=s(u),p=a.reduce((e,t,n)=>e+Math.abs(l[n]-t.coord),0);d>n||d===n&&(f>r||f===r&&p>=i)||(t=u,n=d,r=f,i=p)}if(!t)return;for(let[e,n]of t)e.points=n}}function mJe(e,t){let{realNodeRects:n,labelNodeRects:r}=tT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=N((e,t,n)=>Yw(e===t?n??[]:e.points??[]),`pointsFor`),o=N(e=>lE(e).reduce((e,t)=>{let n=t.a.x-t.b.x,r=t.a.y-t.b.y;return e+Math.hypot(n,r)},0),`pathLength`),s=N((e,t)=>{let n=0;for(let r=0;r{if(e.horizontal){let n=e.a.y;return(Math.abs(n-t.top)<1||Math.abs(n-t.bottom)<1)&&Gw(e.a.x,e.b.x,t.left,t.right)>=cE}if(e.vertical){let n=e.a.x;return(Math.abs(n-t.left)<1||Math.abs(n-t.right)<1)&&Gw(e.a.y,e.b.y,t.top,t.bottom)>=cE}return!1},`segmentRunsAlongRectBorder`),u=N(e=>{let n=[e.start,e.end].filter(e=>!!e),r=[];for(let e of n){let n=t.get(e),i=n?Qw(n):void 0;i&&r.push(i)}return r},`endpointRectsFor`),d=N((e,t)=>{if(t+3>=e.length)return[];let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=Uw(n,r,sE)&&Ww(r,i,sE)&&Uw(i,a,sE),s=Ww(n,r,sE)&&Uw(r,i,sE)&&Ww(i,a,sE);if(!o&&!s||!(o?Math.sign(r.x-n.x)!==Math.sign(a.x-i.x):Math.sign(r.y-n.y)!==Math.sign(a.y-i.y)))return[];let l=Vw(n,a,sE)||Hw(n,a,sE)?[]:[{x:n.x,y:a.y},{x:a.x,y:n.y}],u=l.length===0?[[...e.slice(0,t+1),...e.slice(t+3)]]:l.map(n=>[...e.slice(0,t+1),n,...e.slice(t+3)]),d=new Set;return u.map(e=>cT(Yw(e))).filter(e=>{if(lE(e).length!==e.length-1||!e.some(e=>Bw(e,a,sE)))return!1;let t=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return!d.has(t)&&(d.add(t),!0)})},`shortcutCandidatesAt`),f=N((e,t,o)=>{let d=[e.start,e.end].filter(e=>!!e),f=u(e);for(let e of lE(t))if(rT(e.a,e.b,n,d,-2)||rT(e.a,e.b,r,[],-2)||f.some(t=>l(e,t)))return!1;for(let n of i)if(n!==e){for(let e of lE(t))for(let t of lE(a(n)))if(Kw(e,t,.5)>=cE)return!1}return s(e,t)<=o},`candidateIsSafe`);for(let e=0;e<8;e++){let e=s(),t,n,r=e,l=1/0,u=1/0;for(let p of i){let i=a(p),m=Jw(i,sE),h=o(i);for(let a=0;a<=i.length-4;a++)for(let g of d(i,a)){let i=Jw(g,sE),a=o(g);if(!(ir||d===r&&(i>l||i===l&&a>=u)||(t=p,n=g,r=d,l=i,u=a)}}if(!t||!n)return;t.points=n}}function TT(e,t){let n=[];for(let e of t.values()){if(e.isGroup||e.isEdgeLabel)continue;let t=e.x??0,r=e.y??0,i=Qw(e);i&&n.push({id:String(e.id??``),cx:t,cy:r,rect:i})}if(n.length===0)return;let r=new Map(n.map(e=>[e.id,e])),i=n.map(e=>({id:e.id,rect:e.rect})),a=[`top`,`bottom`,`left`,`right`],o={top:Math.min(...n.map(e=>e.rect.top))-20,bottom:Math.max(...n.map(e=>e.rect.bottom))+20,left:Math.min(...n.map(e=>e.rect.left))-20,right:Math.max(...n.map(e=>e.rect.right))+20},s=e.filter(e=>!e.isLayoutOnly),l=new Map(s.map((e,t)=>[e,t])),u=N(e=>{let t=e===`left`||e===`top`?-1:1,n=[];for(let r=0;r<=2;r++)n.push(o[e]+t*20*r);return n},`outwardTracksForSide`),d=N((e,t=new Map)=>Yw(t.get(e)??e.points??[]),`replacementPointsFor`),f=N((e,t)=>{let n=0;for(let r of e)for(let e of t)oT(r.a,r.b,e.a,e.b,sE)&&n++;return n},`crossingCountBetweenSegments`),p=N((e,t)=>f(lE(e),lE(t)),`crossingCountBetweenPaths`),m=N((e=new Map)=>{let t=0,n=[],r=new Set,i=[],a=N(e=>{r.has(e)||(r.add(e),i.push(e))},`addEdge`);for(let r=0;r0&&(t+=u,n.push({first:i,second:r,count:u}),a(i),a(r))}}return i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),{count:t,pairs:n,edgeSet:r,edges:i}},`crossingSnapshot`),h=N((e,t)=>{let n=new Set(t.keys());if(n.size===0)return e.count;let r=0;for(let t of e.pairs)(n.has(t.first)||n.has(t.second))&&(r+=t.count);let i=0;for(let e=0;e{let t=new Map;for(let n of e.pairs){let e=t.get(n.first)??new Set;e.add(n.second),t.set(n.first,e);let r=t.get(n.second)??new Set;r.add(n.first),t.set(n.second,r)}let n=[],r=new Set;for(let i of e.edges){if(r.has(i))continue;let e=[i],a=[];for(r.add(i);e.length>0;){let n=e.pop();a.push(n);for(let i of t.get(n)??[])r.has(i)||(r.add(i),e.push(i))}a.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),a.length>1&&n.push(a)}return n},`crossingComponents`),_=N(e=>[e.start,e.end].filter(e=>!!e),`endpointIdsFor`),v=N(e=>{let t=[];for(let n of g(e)){let e=new Set(n),r=new Set(n.flatMap(e=>_(e))),i=[...n];for(let t of s)e.has(t)||_(t).some(e=>r.has(e))&&i.push(t);i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),t.push(i)}return t},`pairSearchGroups`),y=N((e,t,n)=>h(e,new Map([[t,n]])),`crossingCountWithSingleReplacement`),b=N(e=>{let t=new Map;for(let n of e.pairs)t.set(n.first,(t.get(n.first)??0)+n.count),t.set(n.second,(t.get(n.second)??0)+n.count);return t},`currentCrossingsByEdge`),x=N(e=>e.slice(1).reduce((t,n,r)=>{let i=e[r];return t+Math.abs(n.x-i.x)+Math.abs(n.y-i.y)},0),`pathLength`),S=N((e=new Map)=>s.reduce((t,n)=>t+Jw(d(n,e)),0),`totalBends`),C=N((e=new Map)=>s.reduce((t,n)=>t+x(d(n,e)),0),`totalLength`),w=N((e,t,n=new Map)=>{let r=lE(t);for(let t of s)if(t!==e){for(let e of r)for(let r of lE(d(t,n)))if(Kw(e,r,.5)>=cE)return!0}return!1},`pathHasSegmentConflict`),T=N((e,t)=>{let n=[e.start,e.end].filter(e=>!!e);for(let e of lE(t))if(rT(e.a,e.b,i,n,-2))return!0;return!1},`pathHitsNode`),E=N((e,t)=>{let n=cT(Yw(t));lE(n).length===n.length-1&&e.push(n)},`pushOrthogonalCandidate`),D=N(e=>e===`left`||e===`right`,`sideIsHorizontal`),O=N((e,t,n)=>{switch(t){case`left`:return Math.min(e.x,n.x)-20;case`right`:return Math.max(e.x,n.x)+20;case`top`:return Math.min(e.y,n.y)-20;case`bottom`:return Math.max(e.y,n.y)+20}},`localTrackForSameSide`),k=N((e,t,n,r)=>{let i=n===`left`||n===`top`?-1:1,a=[O(t,n,r),o[n]];for(let o of a)for(let a=0;a<=2;a++)E(e,Lqe(t,n,r,o+i*20*a))},`addSameSideCandidates`),A=N((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:a,y:t.y},{x:a,y:n},{x:r.x,y:n},r])},`addHorizontalToVerticalCandidates`),j=N((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:t.x,y:a},{x:n,y:a},{x:n,y:r.y},r])},`addVerticalToHorizontalCandidates`),M=N((e,t,n,r,i)=>{let a=[...u(`top`),...u(`bottom`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:o,y:t.y},{x:o,y:i},{x:n,y:i},{x:n,y:r.y},r])},`addHorizontalPairCandidates`),ee=N((e,t,n,r,i)=>{let a=[...u(`left`),...u(`right`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:t.x,y:o},{x:i,y:o},{x:i,y:n},{x:r.x,y:n},r])},`addVerticalPairCandidates`),te=N(e=>{let t=new Set;return e.map(e=>Yw(e)).filter(e=>{let n=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return t.has(n)||e.length<2?!1:(t.add(n),!0)})},`dedupeCandidatePaths`),ne=N((e,t,n,r)=>{let i=[],a=Iqe(e,t,n,r,20,sE);a&&E(i,a),t===r&&k(i,e,t,n);let o=D(t),s=D(r);return o&&!s?A(i,e,t,n,r):!o&&s?j(i,e,t,n,r):o?M(i,e,t,n,r):ee(i,e,t,n,r),te(i)},`buildCandidatesForSides`),re=N((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=$w(r,s),l=s===`top`||s===`bottom`?u(s):o;for(let r of i){E(e,[t,n,{x:r,y:n.y},{x:r,y:a.y},a]);for(let i of l)E(e,[t,n,{x:r,y:n.y},{x:r,y:i},{x:a.x,y:i},a])}}},`addVerticalDepartureOuterTrackCandidates`),ie=N((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=$w(r,s),l=s===`left`||s===`right`?u(s):i;for(let r of o){E(e,[t,n,{x:n.x,y:r},{x:a.x,y:r},a]);for(let i of l)E(e,[t,n,{x:n.x,y:r},{x:i,y:r},{x:i,y:a.y},a])}}},`addHorizontalDepartureOuterTrackCandidates`),ae=N(e=>{let t=e.start,n=e.end,i=n?r.get(n):void 0;if(!t||!i)return[];let a=Yw(e.points??[]);if(a.length<4)return[];let o=a[0],s=a[1],l=[];return Ww(o,s,sE)?re(l,o,s,i):Uw(o,s,sE)&&ie(l,o,s,i),l},`terminalPreservingOuterTrackCandidates`),oe=N(e=>{let t=e.start,n=e.end,i=t?r.get(t):void 0,o=n?r.get(n):void 0;if(!i||!o)return[];let s=[];for(let e of a){let t=$w(i,e);for(let n of a)s.push(...ne(t,e,$w(o,n),n))}return s.push(...ae(e)),s},`candidatePathsFor`),se=N(()=>new Map(s.map(e=>[e,lE(d(e))])),`currentSegmentsByEdge`),ce=N((e,t,n)=>{let r=new Set;for(let i of s){if(i===e)continue;let a=n.get(i)??lE(d(i));t.some(e=>a.some(t=>Kw(e,t,.5)>=cE))&&r.add(i)}return r},`sharedTrackConflictsFor`),le=N((e,t,n,r)=>{let i=new Set;return oe(e).map(e=>cT(Yw(e))).filter(t=>{if(T(e,t))return!1;let n=t.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return i.has(n)||t.length<2?!1:(i.add(n),!0)}).map(i=>{let a=lE(i),o=0;for(let t of s)t!==e&&(o+=f(a,n.get(t)??lE(d(t))));return{candidate:i,candidateSegments:a,crossings:t.count-(r.get(e)??0)+o,bends:Jw(i,sE),totalBends:Jw(i),length:x(i)}}).filter(({crossings:e})=>e<=t.count).sort((e,t)=>e.crossings-t.crossings||e.bends-t.bends||e.length-t.length).slice(0,48).map(t=>({path:t.candidate,segments:t.candidateSegments,sharedTrackConflicts:ce(e,t.candidateSegments,n),totalBends:t.totalBends,length:t.length}))},`pairCandidatesFor`),ue=N((e,t,n,r,i,a)=>{let o=0;for(let n of e.pairs)(n.first===t||n.second===t||n.first===r||n.second===r)&&(o+=n.count);let l=f(n.segments,i.segments);for(let e of s){if(e===t||e===r)continue;let o=a.get(e)??lE(d(e));l+=f(n.segments,o)+f(i.segments,o)}return e.count-o+l},`pairCrossingCount`),de=N((e,t)=>{for(let n of e.sharedTrackConflicts)if(n!==t)return!1;return!0},`conflictsOnlyWith`),fe=N((e,t)=>e.segments.some(e=>t.segments.some(t=>Kw(e,t,.5)>=cE)),`candidatesShareTrack`),pe=N((e,t,n,r)=>de(t,n.edge)&&de(r,e.edge)&&!fe(t,r),`pairCandidatesAreCompatible`),me=N((e,t,n,r,i)=>{let a=ue(e.current,t.edge,n,r.edge,i,e.baseSegments);if(!(a>=e.current.count))return{replacements:new Map([[t.edge,n.path],[r.edge,i.path]]),crossings:a,bends:e.currentBends-(e.baseBendsByEdge.get(t.edge)??0)-(e.baseBendsByEdge.get(r.edge)??0)+n.totalBends+i.totalBends,length:e.currentLength-(e.baseLengthByEdge.get(t.edge)??0)-(e.baseLengthByEdge.get(r.edge)??0)+n.length+i.length}},`scorePairReplacement`),he=N((e,t)=>e.crossings{let i=r;for(let r of t.candidates)for(let a of n.candidates){if(!pe(t,r,n,a))continue;let o=me(e,t,r,n,a);o&&he(o,i)&&(i=o)}return i},`bestScoreForOptionPair`),_e=N(e=>{let t=S(),n=C(),r=se(),i=b(e),a=new Map(s.map(e=>[e,Jw(d(e))])),o=new Map(s.map(e=>[e,x(d(e))])),l=new Map,u=v(e);for(let t of u)for(let n of t){if(l.has(n))continue;let t=le(n,e,r,i);t.length>0&&l.set(n,{edge:n,candidates:t})}let f={replacements:new Map,crossings:e.count,bends:t,length:n},p={current:e,currentBends:t,currentLength:n,baseBendsByEdge:a,baseLengthByEdge:o,baseSegments:r};for(let t of u){let n=new Set(t.filter(t=>e.edgeSet.has(t))),r=t.map(e=>l.get(e)).filter(e=>!!e);for(let e=0;e0?f.replacements:void 0},`bestPairedReplacement`);for(let e=0;e<4;e++){let e=m(),t=e.count;if(t===0)return;let n,r,i=t,a=1/0;for(let o of e.edges){let s=Jw(d(o),sE);for(let l of oe(o)){let u=T(o,l),d=!u&&w(o,l),f=y(e,o,l),p=Jw(l,sE);u||d||(fi||f===i&&p>=a||(n=o,r=l,i=f,a=p))}}if(n&&r){n.points=r;continue}let o=_e(e);if(!o)return;for(let[e,t]of o)e.points=t}}function ET(e,t){let{nodeInfoById:n,realNodeRects:r}=eT(t),i=[`top`,`bottom`,`left`,`right`],a={top:Math.min(...r.map(e=>e.rect.top))-20,bottom:Math.max(...r.map(e=>e.rect.bottom))+20,left:Math.min(...r.map(e=>e.rect.left))-20,right:Math.max(...r.map(e=>e.rect.right))+20},o=N((e,t,n,r)=>{let i=[],o=Iqe(e,t,n,r,20,dE);return o&&i.push(o),t===r&&i.push(Lqe(e,t,n,a[t])),i},`buildOrthogonalPathCandidates`),s=N((e,t)=>{for(let n=0;n{let i=0,a=qw(t,dE),o=n.start,s=n.end;for(let t of e){if(t===n||t.isLayoutOnly)continue;let e=t.start,l=t.end;if(!r&&o&&s&&(e===o||e===s||l===o||l===s))continue;let u=t.points;if(!(!u||u.length<2))for(let e of a)for(let t of qw(u,dE)){if(iT(e.a,e.b,t.a,t.b,dE,dE)){i++;continue}Kw(e,t,dE)>=fE&&i++}}return i},`pathConflictCount`),u=N((e,t)=>{let n=Math.abs(e.y-t.rect.top),r=Math.abs(e.y-t.rect.bottom),i=Math.abs(e.x-t.rect.left),a=Math.abs(e.x-t.rect.right),o=`top`,s=n;return r{let r=d.get(e)??[];r.push({side:t,edgeId:n}),d.set(e,r)},`addFaceClaim`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points??[];if(e.length<1)continue;let r=t.id??``,i=t.start,a=t.end;if(i){let t=n.get(i);t&&f(i,u(e[0],t),r)}if(a){let t=n.get(a);t&&f(a,u(e[e.length-1],t),r)}}let p=N((e,t,n)=>d.get(e)?.some(e=>e.edgeId!==n&&e.side===t)??!1,`faceIsClaimed`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!e||e.length<2)continue;let r=Jw(e,dE);if(r<4)continue;let a=t.start,m=t.end;if(!a||!m)continue;let h=n.get(a),g=n.get(m);if(!h||!g)continue;let _=t.id??``,v=l(e,t,!0),y=l(e,t),b,x=v,S=r;for(let e of i){if(p(a,e,_))continue;let n=$w(h,e);for(let r of i){if(p(m,r,_))continue;let i=$w(g,r);for(let u of o(n,e,i,r)){if(s(u,[a,m]))continue;let e=Jw(u,dE);if(v>0){let n=l(u,t,!0);if(n>x||n===x&&e>=S)continue;x=n,S=e,b=u;continue}l(u,t)>y||ee.edgeId!==_));let n=d.get(m);n&&d.set(m,n.filter(e=>e.edgeId!==_)),f(a,u(b[0],h),_),f(m,u(b[b.length-1],g),_)}}}function DT(e,t){let n=t?0:e.length-1,r=t?1:-1,i=e[n],a=e[n+r];if(!i||!a)return;let o=a.x-i.x,s=a.y-i.y;if(!(Math.abs(o)+Math.abs(s)t&&Xw(e,hJe(t)))}function _Je(e,t){let n=[];for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!(!e||e.length<2))for(let r=0;r{let n=Fqe(t,3);for(let{nodeId:t,rect:i}of r)if(t!==e&&Xw(n,i))return!0;return!1},`labelOverlapsForeignNode`),o=N((e,t)=>{let r=Fqe(t,3);for(let t of n)if(t.edgeId!==e&&Mqe(t.p1,t.p2,r))return!0;return!1},`labelOverlapsForeignEdge`),s=N((e,t,n)=>a(e,n)||o(t,n),`labelOverlapsAnything`),l=[],u=N(e=>{for(let{id:t,rect:n}of i)if(Pqe(n,e))return t},`findContainingLane`),d=N((e,t)=>l.some(n=>n.labelId!==e&&Xw(t,n.rect)),`overlapsPlacedLabel`);for(let n of e){if(n.isLayoutOnly)continue;let e=n.labelNodeId;if(!e)continue;let r=t.get(e);if(!r)continue;let f=n.points;if(!f||f.length<2)continue;let p=r.width??0,m=r.height??0;if(p<=0||m<=0)continue;let h=[];for(let e=0;e=pE&&i>=pE||h.push({idx:e,length:r+i,orientation:r>=pE?`horizontal`:`vertical`,midX:(t.x+n.x)/2,midY:(t.y+n.y)/2})}if(h.length===0)continue;let g=h.length>=3?h.filter(e=>e.idx>0&&e.idx0?g:h,v=p>=m?`horizontal`:`vertical`,y=N(e=>[...e].sort((e,t)=>{let n=e.orientation===v;if(n!==(t.orientation===v))return n?-1:1;let r=e.length>=(e.orientation===`horizontal`?p:m)+2;return r===t.length>=(t.orientation===`horizontal`?p:m)+2?t.length-e.length:r?-1:1}),`rankSegments`),b=h[0],x=h[h.length-1],S=[.5,.25,.75,.05,.95,.15,.85,.1,.9],C=N((e,t)=>{let n=f[e.idx],r=f[e.idx+1];return{midX:n.x+(r.x-n.x)*t,midY:n.y+(r.y-n.y)*t}},`anchorAtT`),w=N((e,t,n)=>Math.min(n,Math.max(t,e)),`clamp`),T=N((e,t)=>e.midX>=t.left-pE&&e.midX<=t.right+pE&&e.midY>=t.top-pE&&e.midY<=t.bottom+pE,`pointInsideRectInclusive`),E=N(e=>{let t=Zw(e.midX,e.midY,p,m),n=u(t);if(n)return{laneId:n,anchor:e,rect:t};let r=i.find(({rect:t})=>T(e,t));if(!r)return;let a=r.rect.left+p/2+1,o=r.rect.right-p/2-1,s=r.rect.top+m/2+1,l=r.rect.bottom-m/2-1;if(a>o||s>l)return;let d={midX:w(e.midX,a,o),midY:w(e.midY,s,l)},f=Zw(d.midX,d.midY,p,m);return T(e,f)?{laneId:r.id,anchor:d,rect:f}:void 0},`placementForAnchor`),D=N((e,t,n)=>e.orientation===`horizontal`?Math.abs(t.midX-n.x):Math.abs(t.midY-n.y),`distanceAlongSegment`),O=N((e,t)=>{let n=(e.orientation===`horizontal`?p/2:m/2)+12;if(e===b){let r=f[e.idx];if(D(e,t,r)+pE{let r=y(t);for(let t of r)for(let r of S){let i=C(t,r);if(!O(t,i))continue;let a=E(i);if(a&&!gJe(a.rect,f)&&!d(e,a.rect)&&!s(e,n.id,a.rect))return{laneId:a.laneId,anchor:a.anchor}}},`tryPool`),A=N((t,r,i=!1)=>{let s=y(t);for(let t of s){let s={midX:t.midX,midY:t.midY};if(r&&!O(t,s))continue;let l=E(s);if(l&&!gJe(l.rect,f)&&!d(e,l.rect)&&!a(e,l.rect)&&(i||!o(n.id,l.rect)))return{laneId:l.laneId,anchor:l.anchor}}},`findLaneContainingFallback`),j=k(_)??(_.lengtht.labelId===e);n>=0?l[n]={labelId:e,rect:t}:l.push({labelId:e,rect:t})}}}function OT(e,t){return e{let o=OT(n,r),s=0,l=N(e=>{if(!e)return;let t=i.get(e);if(!t)return;let n=a===`x`?t.w/2:t.h/2;n>s&&(s=n)},`consider`);l(t.labelNodeId);for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.start,r=n.end;e&&r&&OT(e,r)===o&&l(n.labelNodeId)}return s>0?s+_Ye:0},`labelClearanceFor`);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!jqe(i,hYe))continue;let o=Rqe(t,n,hYe);if(!o)continue;let{srcId:s,dstId:l,srcInfo:u,dstInfo:d,collinearX:f,collinearY:p}=o;if(f===p)continue;let m,h;if(f){let e=d.cy>u.cy;m={x:u.cx,y:e?u.rect.bottom:u.rect.top},h={x:d.cx,y:e?d.rect.top:d.rect.bottom}}else{let e=d.cx>u.cx;m={x:e?u.rect.right:u.rect.left,y:u.cy},h={x:e?d.rect.left:d.rect.right,y:d.cy}}if(rT(m,h,r,[s,l],1))continue;let g=a(t,s,l,f?`x`:`y`),_=g>gYe?g:gYe,v=[0,_,-_];for(let n of v){let i={...m},a={...h};if(f){if(i.x+=n,a.x+=n,i.x<=u.rect.left||i.x>=u.rect.right||a.x<=d.rect.left||a.x>=d.rect.right)continue}else if(i.y+=n,a.y+=n,i.y<=u.rect.top||i.y>=u.rect.bottom||a.y<=d.rect.top||a.y>=d.rect.bottom)continue;if(!rT(i,a,r,[s,l],1)&&!zqe(i,a,e,t,{epsilon:hYe})){t.points=[i,a];break}}}}function yJe(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=tT(t.values()),a=N((e,t)=>qw(t,n).map(n=>({...n,edge:e,interior:n.index>=1&&n.index<=t.length-3})),`segmentsFor`),o=N(()=>{let t=[];for(let n of e){if(n.isLayoutOnly)continue;let e=n.points;!e||e.length<2||t.push(...a(n,Yw(e)))}return t},`allSegments`),s=N((e,t)=>e.horizontal&&t.horizontal?Gw(e.a.x,e.b.x,t.a.x,t.b.x)>=8&&Math.abs(e.a.y-t.a.y)<7:e.vertical&&t.vertical?Gw(e.a.y,e.b.y,t.a.y,t.b.y)>=8&&Math.abs(e.a.x-t.a.x)<7:!1,`hasCrowdedParallelTrack`),l=N((t,o)=>{let l=t.start,u=t.end,d=a(t,o);if(d.length!==o.length-1)return!1;let f=[l,u].filter(e=>!!e),p=t.labelNodeId?[t.labelNodeId]:[];for(let e of d)if(rT(e.a,e.b,r,f,-2)||rT(e.a,e.b,i,p,-2))return!1;for(let r of e){if(r===t||r.isLayoutOnly)continue;let e=r.points;if(!(!e||e.length<2)){for(let t of d)for(let i of a(r,Yw(e)))if(s(t,i)||oT(t.a,t.b,i.a,i.b,n))return!1}}return!0},`candidateIsSafe`),u=N((e,t)=>{let n=Yw(e.edge.points??[]);if(n.length<4||e.index>=n.length-1)return;let r=n.map(e=>({...e}));if(e.horizontal)r[e.index].y+=t,r[e.index+1].y+=t;else if(e.vertical)r[e.index].x+=t,r[e.index+1].x+=t;else return;return a(e.edge,r).length===r.length-1?r:void 0},`shiftedCandidate`),d=N((e,t)=>({x:e.x??(t.left+t.right)/2,y:e.y??(t.top+t.bottom)/2}),`nodeCenter`),f=N(e=>{let n=e.edge,r=Yw(n.points??[]);if(r.length!==4||e.index!==1)return;let i=n.start?t.get(n.start):void 0,a=n.end?t.get(n.end):void 0,o=i?Qw(i):void 0,s=a?Qw(a):void 0,l=r.slice(e.index+2);if(i&&a&&o&&s&&l.length!==0)return{sourceCenter:d(i,o),targetCenter:d(a,s),sourceRect:o,tail:l}},`sourceDetourContextFor`),p=N((e,t,r,i,a,o)=>{let s=i.y>=r.y,l=s?a.bottom:a.top,u=l+(s?20:-20);if(s&&e.b.y<=u+n||!s&&e.b.y>=u-n)return;let d=e.a.x+t;return Yw([{x:r.x,y:l},{x:r.x,y:u},{x:d,y:u},{x:d,y:e.b.y},...o],n)},`verticalSourceDetour`),m=N((e,t,r,i,a,o)=>{let s=i.x>=r.x,l=s?a.right:a.left,u=l+(s?20:-20);if(s&&e.b.x<=u+n||!s&&e.b.x>=u-n)return;let d=e.a.y+t;return Yw([{x:l,y:r.y},{x:u,y:r.y},{x:u,y:d},{x:e.b.x,y:d},...o],n)},`horizontalSourceDetour`),h=N((e,t)=>{let n=f(e);if(n){if(e.vertical)return p(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail);if(e.horizontal)return m(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail)}},`sourceDetourCandidate`),g=[-7,7,-14,14,-21,21];for(let e=0;e<12;e++){let e=o(),t=!1;for(let n=0;ne.interior);for(let e of o){for(let n of g){let r=u(e,n);if(r&&l(e.edge,r)){e.edge.points=r,t=!0;break}let i=h(e,n);if(i&&l(e.edge,i)){e.edge.points=i,t=!0;break}}if(t)break}}if(!t)return}}function kT(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y,l=i*s-a*o;if(Math.abs(l)<1e-10)return!1;let u=n.x-e.x,d=n.y-e.y,f=(u*s-d*o)/l,p=(u*a-d*i)/l,m=.01;return f>m&&f<.99&&p>m&&p<.99}function AT(e){let t=e.nodes??[],n=e.edges??[],r=[];if(!n.length||!t.length)return r;let i=nT(t),a=[];for(let e of n){if(e.isLayoutOnly)continue;let t=e.points;if(!t||t.length<2)continue;let n=e.start,o=e.end,s=e.labelNodeId,l=e.id??`${n}->${o}`;for(let e of i)if(e.nodeId!==n&&e.nodeId!==o&&!(s&&e.nodeId===s)){for(let n=0;n0){let e=r.filter(e=>e.type===`edge-node-overlap`).length,t=r.filter(e=>e.type===`edge-edge-crossing`).length;P.warn(`[SWIMLANE_VALIDATE] ${r.length} issue(s) detected: ${e} edge-node overlap(s), ${t} edge crossing(s)`);for(let e of r)P.warn(`[SWIMLANE_VALIDATE] ${e.type}: ${e.detail}`)}return r}function bJe(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);if((t===`LR`||t===`RL`)&&i.length>0&&!sJe(e,t)||t===`BT`&&i.length>0&&!oJe(e))return;for(let e of r){if(e.isLayoutOnly)continue;let t=e.points;!t||t.length<2||(e.points=cT(sT(t)))}ET(r,n),vJe(r,n),ST(r,n);let a=new Map;for(let e of n)a.set(String(e.id),e);_Je(r,a),Wqe(r,a),cJe(r,a),yJe(r,a),CT(r,a),wT(r,a),lJe(r,a),fJe(r,a);let o=N(()=>{TT(r,a),CT(r,a),pJe(r,a),mJe(r,a),_Je(r,a),tJe(r,a),lJe(r,a),_Je(r,a),tJe(r,a)},`finalizeRenderedEdges`);o(),yJe(r,a),o(),uJe(r,a,t),dJe(r,a,t),uJe(r,a,t),dJe(r,a,t)}function jT(e){let t=new Map(e.nodeById),n=new Set,r=[];for(let i of e.edges){if(!t.has(i.src)||!t.has(i.dst))continue;let e=`${i.id}:${i.src}->${i.dst}`;n.has(e)||(n.add(e),r.push(i))}return{nodes:[...t.keys()],edges:r,layout:e.layout,nodeById:t}}function MT(e,t){return e.edges.filter(e=>e.dst===t)}function xJe(e){let t=new Map;for(let n of e.nodes)t.set(n,[]);for(let n of e.edges)t.get(n.src).push(n.dst);return t}function NT(e){let t=xJe(e);for(let e of t.values())e.sort((e,t)=>e.localeCompare(t));return t}function SJe(e){let t=new Map;for(let n of e.nodes)t.set(n,0);for(let n of e.edges)t.set(n.dst,(t.get(n.dst)??0)+1);return t}function CJe(e,t){let n=[...t.entries()].filter(([,e])=>e===0).map(([e])=>e).sort((e,t)=>e.localeCompare(t)),r=new Set(e.edges.flatMap(e=>[e.src,e.dst])),i=N(t=>!r.has(t)&&!e.nodeById.get(t)?.isGroup,`isUnconnected`),a=[...t.keys()].filter(e=>t.get(e)===0&&i(e)),o=0;return n.map(e=>i(e)?a[o++]:e)}function wJe(e,t=()=>!0){let n=new Map,r=new Map;for(let t of e.nodes)n.set(t,[]),r.set(t,[]);for(let i of e.edges)t(i)&&(r.get(i.src).push(i.dst),n.get(i.dst).push(i.src));return{preds:n,succs:r}}function PT(e,t,n,r){let i=0;for(let t of e.nodes)r?.skipGroups&&e.nodeById.get(t)?.isGroup||(i=Math.max(i,n[t]??0));let a=Array.from({length:i+1},()=>[]);for(let i of t)r?.skipGroups&&e.nodeById.get(i)?.isGroup||a[Math.max(0,n[i]??0)].push(i);return a}function FT(e){let t=SJe(e),n=CJe(e,t),r=[],i=NT(e);for(;n.length;){let e=n.shift();r.push(e);for(let r of i.get(e)??[])if(t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0){let e=0;for(;e{if(i-r<=1)return 0;let a=r+i>>1,o=n(r,a)+n(a,i),s=r,l=a,u=r;for(;s=i||se.dst===t.dst?e.id.localeCompare(t.id):e.dst.localeCompare(t.dst));let r=Object.create(null);for(let e of t.nodes)r[e]=0;let i=[],a=N(e=>{r[e]=1;for(let t of n.get(e)??[]){let e=t.dst;r[e]===0?a(e):r[e]===1&&i.push(t)}r[e]=2},`dfs`),o=SJe(t),s=[...t.nodes.filter(e=>(o.get(e)??0)===0),...t.nodes.filter(e=>(o.get(e)??0)!==0)];for(let e of s)r[e]===0&&a(e);let l=new Set(i.map(e=>`${e.id}:${e.src}->${e.dst}`)),u=t.edges.map(e=>l.has(`${e.id}:${e.src}->${e.dst}`)?{id:e.id,src:e.dst,dst:e.src,weight:e.weight,ref:e.ref}:e);return{acyclic:{nodes:[...t.nodes],edges:u,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:i}}function RT(e){let t=new Map,n=N(r=>{if(t.has(r))return t.get(r);let i=e.nodeById.get(r);if(!i)return t.set(r,null),null;let a=i.parentId;if(!a)return t.set(r,null),null;let o=n(a)??a;return t.set(r,o),o},`resolve`);for(let t of e.nodes)n(t);return t}function zT(e){let t=RT(e);return e=>t.get(e)??null}function BT(e){let t=[];for(let n of e.layout.nodes??[])n.isGroup&&!n.parentId&&t.push(n.id);return[...new Set(t)].reverse()}function EJe(e,t){let n=BT(e);if(!t||t.length===0)return n;let r=new Set(n),i=new Set,a=[];for(let e of t)r.has(e)&&!i.has(e)&&(i.add(e),a.push(e));for(let e of n)i.has(e)||a.push(e);return a}function DJe(e,t){let n=jT(e),r=t?.laneOf??(()=>null),i=t?.rankHint,{preds:a}=wJe(n);for(let e of a.values())e.sort((e,t)=>e.localeCompare(t));let o=FT(n)??[...n.nodes].sort((e,t)=>e.localeCompare(t)),s=new Map;for(let[e,t]of o.entries())s.set(t,e);let l=new Map,u=new Map;for(let e of n.nodes)u.set(e,[]);for(let e of o){let t=(a.get(e)??[]).filter(e=>l.has(e));if(t.length>0){let n=OJe(e,t,{laneOf:r,rankHint:i,topoIndex:s});l.set(e,n),u.get(n).push(e)}else l.has(e)||l.set(e,null)}for(let e of n.nodes)l.has(e)||l.set(e,null);let d=new Set;for(let e of n.nodes)(l.get(e)??null)===null&&d.add(e);let f=[...d].sort((e,t)=>{let n=s.get(e)??0,r=s.get(t)??0;return n===r?e.localeCompare(t):n-r}),p=kJe(n),m=new Map;for(let[e,t]of p.entries())m.set(e,[...t].sort((e,t)=>e.localeCompare(t)));let h=AJe(m),g=jJe(m),_=new Map;for(let e of n.nodes)_.set(e,[]);for(let e of g)for(let t of e.nodes){let n=_.get(t);n?n.push(e.id):_.set(t,[e.id])}let v=[],y=[],b=new Set,x=N(e=>{if(!b.has(e)){b.add(e),v.push(e);for(let t of u.get(e)??[])x(t);y.push(e)}},`walk`);for(let e of f)x(e);for(let e of o)x(e);return{parent:l,children:u,roots:f,componentOf:h,blocks:g,nodeBlocks:_,adjacency:m,preorder:v,postorder:y,topologicalOrder:o}}function OJe(e,t,n){let r=n.laneOf(e);return[...t].sort((e,t)=>{let i=n.laneOf(e),a=n.laneOf(t),o=i!=null&&i===r;if(o!==(a!=null&&a===r))return o?-1:1;let s=n.rankHint?.[e],l=n.rankHint?.[t];if(s!=null&&l!=null&&s!==l)return l-s;let u=n.topoIndex.get(e)??0,d=n.topoIndex.get(t)??0;return u===d?e.localeCompare(t):u-d})[0]}function kJe(e){let t=new Map;for(let n of e.nodes)t.set(n,new Set);for(let n of e.edges)t.get(n.src).add(n.dst),t.get(n.dst).add(n.src);return t}function AJe(e){let t=new Map,n=0;for(let r of e.keys()){if(t.has(r))continue;let i=[r];for(;i.length>0;){let r=i.pop();if(!t.has(r)){t.set(r,n);for(let n of e.get(r)??[])t.has(n)||i.push(n)}}n++}return t}function jJe(e){let t=new Map,n=new Map,r=[],i=[],a=0,o=N((s,l)=>{t.set(s,++a),n.set(s,a);for(let u of e.get(s)??[])u!==l&&(t.has(u)?(t.get(u)??0)<(t.get(s)??0)&&(r.push([s,u]),n.set(s,Math.min(n.get(s)??a,t.get(u)??a))):(r.push([s,u]),o(u,s),n.set(s,Math.min(n.get(s)??a,n.get(u)??a)),(n.get(u)??0)>=(t.get(s)??0)&&i.push(VT(s,u,r,i.length))))},`visit`);for(let n of e.keys())t.has(n)||o(n,null);return i}function VT(e,t,n,r){let i=[],a=new Set;for(;n.length>0;){let r=n.pop();if(i.push(r),a.add(r[0]),a.add(r[1]),r[0]===e&&r[1]===t||r[0]===t&&r[1]===e)break}return{id:r,edges:i,nodes:[...a]}}function MJe(e,t,n){let r=[...e.nodes],i=new Map;for(let[e,t]of r.entries())i.set(t,e);let a=r.length,o=Array(a).fill(-1),s=Array(a).fill(0),l=[],u=new Set;for(let e of r){let t=n.parent.get(e)??null,r=i.get(e);r!=null&&(t??(o[r]=-1,s[r]=0,u.has(e)||(u.add(e),l.push(e))))}for(;l.length>0;){let e=l.shift(),t=i.get(e);if(t==null)continue;let r=n.children.get(e)??[];for(let e of r){if(u.has(e))continue;let n=i.get(e);n!=null&&(o[n]=t,s[n]=s[t]+1,u.add(e),l.push(e))}}for(let e of r){if(u.has(e))continue;let t=i.get(e);t!=null&&(o[t]=-1,s[t]=0,u.add(e))}let d=Math.max(1,Math.ceil(Math.log2(Math.max(1,a)))+1),f=Array.from({length:d},()=>Array(a).fill(-1));for(let e=0;e{if(e===-1||t===-1)return-1;s[e]>t&1&&(e=f[t][e],e===-1))return-1;if(e===t)return e;for(let n=d-1;n>=0;n--){let r=f[n][e],i=f[n][t];r!==-1&&i!==-1&&r!==i&&(e=r,t=i)}return f[0][e]},`lcaIndex`),m=Array.from({length:a},()=>new Map);for(let n of e.edges){let e=n.src,r=n.dst,a=t[e],o=t[r];if(a==null||o==null||(a>o&&([e,r]=[r,e],[a,o]=[o,a]),a==null||o==null||a===o))continue;let s=i.get(e),l=i.get(r);if(s==null||l==null)continue;let u=p(s,l);if(u===-1)continue;let d=m[u];for(let e=a;e{if(t.size!==0)for(let[n,r]of t)e.set(n,(e.get(n)??0)+r)},`mergeInto`),_=new Set,v=N(e=>{let r=i.get(e);_.add(e);let a=r==null?void 0:m[r],o=a?new Map(a):new Map,s=n.children.get(e)??[];for(let n of s){let r=v(n),i=t[e];if(i!=null){let a=h.get(e);a||(a=new Map,h.set(e,a));let o=r.get(i)??0,s=t[n];s!=null&&s>i&&(o+=1),a.set(n,o)}g(o,r)}return o},`dfs`);for(let e of n.roots)_.has(e)||v(e);for(let e of r)_.has(e)||v(e);return h}function NJe(e,t,n){let r=new Map,i=N(e=>{let a=n[e]??0,o=[...t.get(e)??[]];o.sort(PJe(n));for(let e of o){i(e);let t=r.get(e);t!=null&&(a=Math.min(a,t))}r.set(e,a)},`annotate`);for(let t of e)i(t);return r}function PJe(e){return(t,n)=>{let r=e[t]??0,i=e[n]??0;return r===i?t.localeCompare(n):r-i}}function FJe(e,t,n,r){let i=0;for(let e of t){let t=n[e]??0;t>i&&(i=t)}let a=Array.from({length:i+1},()=>[]),o=new Set,s=N(e=>{if(o.has(e))return;o.add(e);let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e);for(let t of r(e))s(t)},`emit`);for(let t of e)s(t);for(let e of t)if(!o.has(e)){let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e),o.add(e)}return a}function IJe(e){let t=[];for(let n of e){let e=new Set,r=[];for(let t of n)e.has(t)||(e.add(t),r.push(t));t.push(r)}return t}function LJe(e,t,n,r){return i=>{let a=e.get(i)??[];if(a.length===0)return[];let o=t[i]??0,s=[],l=[],u=n.get(i);for(let e of a){let t=r.get(e)??o;t>o?s.push({child:e,min:t}):l.push(e)}return s.sort((e,t)=>e.min===t.min?e.child.localeCompare(t.child):e.min-t.min),l.sort((e,t)=>{let n=u?.get(e)??0,i=u?.get(t)??0;if(n!==i)return n-i;let a=r.get(e)??o,s=r.get(t)??o;return a===s?e.localeCompare(t):a-s}),[...s.map(e=>e.child),...l]}}function HT(e,t,n){let r=DJe(e,{rankHint:t,laneOf:n}),{children:i,roots:a}=r;for(let t of e.nodes)i.has(t)||i.set(t,[]);let o=MJe(e,t,r),s=[...a].sort(PJe(t)),l=LJe(i,t,o,NJe(s,i,t)),u=FJe(s,e.nodes,t,l);return u=IJe(u),u}function RJe(e,t,n){let r=new Set(e),i=new Set(t),a=IT(t),o=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&o.push(a.get(e.dst));return LT(o)}function UT(e,t,n){let r=[];for(let e of t){let t=n[e.src],i=n[e.dst];if(t==null||i==null||t===i)continue;let a=e.src,o=e.dst,s=t,l=i;t>i&&(a=e.dst,o=e.src,s=i,l=t);for(let t=s;t(n[t]??0)-(n[e]??0));for(let s of o){let o=n[s]??0;if(o===0)continue;let l=0;for(let e of r.get(s)??[])l=Math.max(l,(n[e]??0)+1);if(l>=o)continue;let u=o;n[s]=l;let d=UT(HT(e,n,i),e.edges,n);d(t[e]??0)-(t[n]??0)||e.localeCompare(n));for(let i of r){let r=n(i);if(!r)continue;let a=e.edges.filter(e=>e.src===i);if(a.length===0)continue;let o=!1,s=0;for(let e of a){let t=n(e.dst);t==null||t===r?o=!0:s++}if(s===0||o)continue;let l=0,u=!1;for(let t of e.edges){if(t.dst!==i)continue;let e=n(t.src);e&&(e===r?u=!0:l++)}if(l>0||!u)continue;let d=t[i]??0,f=d+s,p=0;for(let n of e.edges)n.dst===i&&(p=Math.max(p,(t[n.src]??0)+1));let m=Math.max(d,p,f);m!==d&&(t[i]=m)}}function BJe(e,t){let n=jT(e),r=FT(n)??[...n.nodes].sort(),i=t?.compactSingleInput??!1,a=zT(n),o=Object.create(null);for(let e of r){let r=MT(n,e),s=t?.ignoreCrossLaneEdges?r.filter(t=>{let n=a(t.src),r=a(e);return!n||!r||n===r}):r;if(s.length===0)o[e]=0;else if(i&&s.length===1){let t=s[0].src;a(t)===a(e)?o[e]=(o[t]??0)+1:o[e]=o[t]??0}else{let t=-1/0;for(let e of s)t=Math.max(t,(o[e.src]??0)+1);o[e]=t===-1/0?0:t}}return(t?.optimizeRanksByCrossings??!1)&&(o=WT(n,o)),t?.ignoreCrossLaneEdges&&zJe(n,o),{layers:HT(n,o,a),rankOf:o,dummy:new Set}}function VJe(e,t){let n=jT(e),r={...BJe(n,{compactSingleInput:t?.compactSingleInput,ignoreCrossLaneEdges:t?.ignoreCrossLaneEdges,optimizeRanksByCrossings:t?.optimizeRanksByCrossings}).rankOf},i=zT(n),{preds:a,succs:o}=wJe(n,e=>{if(t?.ignoreCrossLaneEdges){let t=i(e.src),n=i(e.dst);if(t&&n&&t!==n)return!1}return!0}),s=FT(n)??[...n.nodes],l=[...s].reverse(),u=N((e,t)=>{let n=0;for(let t of a.get(e)??[])n=Math.max(n,(r[t]??0)+1);let i=1/0,s=o.get(e)??[];return s.length>0&&(i=Math.min(...s.map(e=>(r[e]??0)-1))),Number.isFinite(i)||(i=Math.max(n,t)),Math.min(Math.max(t,n),i)},`clampFeasible`),d=hE.GRAVITY_ITERATIONS,f=N(e=>{let t=!1;for(let n of e){let e=a.get(n)??[],i=o.get(n)??[];if(e.length===0&&i.length===0)continue;let s=e.length>0?e.reduce((e,t)=>e+(r[t]??0)+1,0)/e.length:r[n]??0,l=i.length>0?i.reduce((e,t)=>e+(r[t]??0)-1,0)/i.length:r[n]??0,d=Math.round((s+l)/2),f=u(n,d);f!==r[n]&&(r[n]=f,t=!0)}return t},`relaxOrder`);for(let e=0;e0){let n=Math.min(...t.map(e=>(r[e]??0)-1));(r[e]??0)>n&&(r[e]=n)}}return{layers:PT(n,s,r),rankOf:r,dummy:new Set}}function GT(e){let t=SJe(e),n=NT(e),r=CJe(e,t),i=[];for(;r.length>0;){let e=[];for(let a of r){i.push(a);for(let r of n.get(a)??[])t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0&&e.push(r)}r=e.sort((e,t)=>e.localeCompare(t))}return i.length===e.nodes.length?i:null}function KT(e,t){let n=jT(e),r=t?.direction===`LR`?GT(n)??[...n.nodes].sort():FT(n)??[...n.nodes].sort(),i=zT(n),a=N(e=>i(e)??e,`laneOf`),o=Object.create(null),s=new Map,l=N((e,n)=>t?.ignoreCrossLaneEdges??!0?+(a(e)===a(n)):1,`edgeWeight`);for(let e of r){if(n.nodeById.get(e)?.isGroup)continue;let t=MT(n,e),r=0;if(t.length>0)for(let n of t){let t=n.src,i=o[t]??0;r=Math.max(r,i+l(t,e))}let i=a(e),u=s.get(i)??0,d=Math.max(r,u);o[e]=d,s.set(i,d+1)}return{layers:PT(n,r,o,{skipGroups:!0}),rankOf:o,dummy:new Set}}function HJe(e,t){let n=jT(t),{rankOf:r}=e,i=e.layers.map(e=>[...e]),a=new Set(e.dummy?[...e.dummy]:[]),o=0,s=new Map(n.nodeById),l=N(e=>{let t=`placeholder-${o++}`,n={id:t,isGroup:!1,isDummy:!0,width:0,height:0};for(s.set(t,n),a.add(t);i.length<=e;)i.push([]);return i[e].push(t),r[t]=e,t},`addDummyAt`),u=[...n.edges].sort((e,t)=>e.id===t.id?e.src===t.src?e.dst.localeCompare(t.dst):e.src.localeCompare(t.src):e.id.localeCompare(t.id)),d=[];for(let e of u){let t=r[e.src]??0,n=r[e.dst]??0;if(n-t<=1){d.push(e);continue}let i=e.src;for(let r=t+1,a=0;r!n.nodes.includes(e))],edges:d,layout:n.layout,nodeById:s};return{layering:{layers:i,rankOf:r,dummy:a},graphWithDummies:f}}function UJe(e){let t=e.length;if(t===0)return 1/0;let n=[...e].sort((e,t)=>e-t);return t%2==1?n[(t-1)/2]:.5*(n[t/2-1]+n[t/2])}function WJe(e){return e.length===0?1/0:e.reduce((e,t)=>e+t,0)/e.length}function qT(e,t,n,r){let i=new Map;for(let t of e)i.set(t,[]);for(let e of n)r===`down`?t.has(e.src)&&i.has(e.dst)&&i.get(e.dst).push(t.get(e.src)):t.has(e.dst)&&i.has(e.src)&&i.get(e.src).push(t.get(e.dst));return i}function GJe(e,t,n){let r=n.get(e)??0,i=n.get(t)??0;return r===i?e.localeCompare(t):r-i}function JT(e,t,n){let r=new Set(e),i=new Set(t),a=IT(e),o=IT(t),s=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&s.push({u:a.get(e.src),v:o.get(e.dst)});return s.sort((e,t)=>e.u===t.u?e.v-t.v:e.u-t.u),LT(s.map(e=>e.v))}function KJe(e,t,n){return[...e].sort((e,r)=>{let i=UJe(t.get(e)??[]),a=UJe(t.get(r)??[]);return i===a?GJe(e,r,n):isFinite(i)?isFinite(a)?i-a:-1:1})}function qJe(e,t,n,r,i,a){let o=IT(e),s=IT(t),l=qT(t,o,n,r);if(!i||!a||a.length===0)return KJe(t,l,s);let u=new Map;for(let e of t){let t=i(e),n=u.get(t)??[];n.push(e),u.set(t,n)}let d=[];for(let e of a){let t=u.get(e);if(!t||t.length===0)continue;let n=KJe(t,l,s);d.push(...n)}let f=u.get(null);if(f&&f.length>0){let e=KJe(f,l,s);for(let t of e){let e=WJe(l.get(t)??[]),n=d.length;if(isFinite(e)){for(let[t,r]of d.entries())if(eo.has(e.src)&&s.has(e.dst)),d=l?n.filter(e=>s.has(e.src)&&l.has(e.dst)):void 0,f=N(t=>{let n=JT(e,t,u);return d&&r&&(n+=JT(t,r,d)),n},`crossingScore`),p=i?new Map:null;if(i&&p)for(let e of t)p.set(e,i(e));let m=!0,h=f(a);for(;m;){m=!1;for(let e=0;e+1[...e]),i=t.edges,a=zT(t),o=EJe(t,n?.laneOrder);for(let e=0;e<3;e++){for(let e=1;e=0;e--)r[e]=qJe(r[e+1],r[e],i,`up`,a,o),r[e]=JJe(r[e+1],r[e],i,r[e-1],a)}return{layers:r}}function XJe(e,t,n){let r=n?.layerGap??gE.DEFAULT_LAYER_GAP,i=n?.nodeGap??gE.DEFAULT_NODE_GAP,a=n?.laneGap??i*2,o=n?.direction??`TB`,s=o===`LR`||o===`RL`,l=e.layers,u=Object.create(null),d=Object.create(null),f=N(e=>t.nodeById.get(e),`getNode`),p=N(e=>f(e)?.width??0,`getWidth`),m=N(e=>f(e)?.height??0,`getHeight`),h=zT(t),g=EJe(t,n?.laneOrder),_=l.map(e=>e.reduce((e,t)=>Math.max(e,m(t)),0)),v=[];if(s)for(let e=0;e+1Math.max(e,p(t)),0),n=l[e+1].reduce((e,t)=>Math.max(e,p(t)),0),i=_[e],a=_[e+1],o=i/2+a/2,s=(t+n)/2,u=Math.max(0,s-o-r);v.push(u)}let y=new Set;for(let e of l)for(let t of e)y.add(h(t));let b=y.has(null),x=g.filter(e=>y.has(e)),S=[...b?[null]:[],...x],C=Object.create(null);for(let e of x)C[e]=0;b&&(C.null=0);for(let e of l){let t=Object.create(null),n=[];for(let r of e){let e=h(r);e===null?n.push(r):(t[e]||=[]).push(r)}for(let[e,n]of Object.entries(t)){let t=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C[e]=Math.max(C[e]??0,t)}if(b&&n.length){let e=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C.null=Math.max(C.null??0,e)}}let w=new Map;{let e=S.map(e=>(e===null?C.null:C[e])??0),t=-(e.reduce((e,t)=>e+t,0)+a*Math.max(0,S.length-1))/2;for(let n=0;np(e)),a=r-(e.reduce((e,t)=>e+t,0)+i*(t.length-1))/2;for(let[r,o]of t.entries()){let t=e[r];u[o]=a+t/2,d[o]=T+n/2,a+=t+i}}}let o=v[e]??0;T+=n+r+o}let E=new Map;for(let e of t.edges){let t=e.ref.id;E.has(t)||E.set(t,[]),E.get(t).push(e)}for(let[,e]of E){if(e.length===0)continue;let n=e[0].ref,r=n.start,i=n.end;if(r==null||i==null)continue;let a=Math.round(((u[r]??0)+(u[i]??0))/2),o=new Set;for(let t of e)o.add(t.src),o.add(t.dst);for(let e of o)e!==r&&e!==i&&t.nodeById.get(e)?.isDummy&&(u[e]=a)}return{x:u,y:d}}function ZJe(e){let t=2166136261;for(let n=0;n>>0}function QJe(e){let t=e>>>0;return()=>{t+=1831565813;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function $Je(e,t){let n=[...e],r=QJe(t);for(let e=n.length-1;e>0;e--){let t=Math.floor(r()*(e+1));[n[e],n[t]]=[n[t],n[e]]}return n}function eYe(e,t){let n=0;for(let[r,i]of e.entries())n+=Math.abs(r-(t.get(i)??r));return n}function tYe(e,t){let n=new Map;for(let[t,r]of e.entries())n.set(r,t);let r=0;for(let{a:e,b:i,weight:a}of t){let t=n.get(e),o=n.get(i);t!=null&&o!=null&&(r+=a*Math.abs(t-o))}return r}function K(e){let t=BT(e);if(t.length<2)return[];let n=new Map(t.map((e,t)=>[e,t])),r=zT(e),i=new Map;for(let t of e.layout.edges??[]){if(t.isLayoutOnly)continue;let a=typeof t.start==`string`?t.start:void 0,o=typeof t.end==`string`?t.end:void 0;if(!a||!o||!e.nodeById.has(a)||!e.nodeById.has(o))continue;let s=r(a),l=r(o);if(!s||!l||s===l)continue;let u=n.get(s),d=n.get(l);if(u==null||d==null)continue;let[f,p]=u<=d?[s,l]:[l,s],m=`${f}\0${p}`,h=i.get(m);h?h.weight++:i.set(m,{a:f,b:p,weight:1})}return[...i.values()]}function YT(e,t,n){let r=[...e],i=tYe(r,t),a=!0,o=0,s=Math.max(1,r.length);for(;a&&oe.a===t.a?e.b.localeCompare(t.b):e.a.localeCompare(t.a)).map(({a:e,b:t,weight:n})=>`${e}:${t}:${n}`).join(`|`);return ZJe(`${e.join(`|`)}#${r}#${n}`)}function QT(e,t={}){let n=BT(e);if(n.length<2)return n;let r=K(e);if(r.length===0)return n;let i=new Map(n.map((e,t)=>[e,t])),a=YT(n,r,i),o=Math.max(0,t.restarts??yYe);for(let e=0;e_E&&l*3>=s?o>0?`bottom`:`top`:s>_E?a>0?`right`:`left`:n}function nYe(e,t){return Math.abs(e.to-t.from)<_E||Math.abs(e.to-t.to)<_E?e.to:e.from}function tE(e,t){return e.orient===`vertical`?{x:e.coord,y:t}:{x:t,y:e.coord}}function rYe(e,t){let n=e.nodes??[],r=e.edges??[],i=[];for(let e of r)e.isLayoutOnly||i.push({...e,__originalEdge:e});let a=new Map,o=new Map,s=[],l=t===`LR`;for(let e of n)a.set(e.id,e);let u=n.filter(e=>e.isGroup&&!e.parentId);for(let e of u){let t={id:e.id},r=N(e=>{o.set(e.id,t),n.filter(t=>t.parentId===e.id).forEach(r)},`assignLane`);r(e)}let d=n.filter(e=>!e.isGroup&&!e.isEdgeLabel).map(e=>{let t=e.width??10,n=e.height??10,r=e.x??0,i=e.y??0,a=bYe;return{nodeId:e.id,minX:r-t/2-a,maxX:r+t/2+a,minY:i-n/2-a,maxY:i+n/2+a,visualXHalfExtent:l?n/2+a:t/2+a}}),f=N((e,t,n,r)=>{let i=s.find(n=>n.orientation===e&&Math.abs(n.coord-t)<1);return i||(i={id:`pipe-${e}-${t.toFixed(0)}`,orientation:e,coord:t,spanMin:n,spanMax:r,tracks:[]},s.push(i)),i.spanMin=Math.min(i.spanMin,n),i.spanMax=Math.max(i.spanMax,r),i},`getOrAddPipe`),p=N((e,t)=>{let n=e.width??10,r=e.height??10,i=e.x??0,a=e.y??0;switch(t){case`top`:return{x:i,y:a-r/2};case`bottom`:return{x:i,y:a+r/2};case`left`:return{x:i-n/2,y:a};case`right`:return{x:i+n/2,y:a}}},`portForSide`),m=N((e,t,n)=>p(e,eE(e,t,n?`bottom`:`top`)),`getOrthogonalPort`),h=[],g=[],_=new Set,v=1e3,y=N((e,t,n)=>{if(h.length===0)return 0;let r=Math.abs(t.y-n.y)<_E,i=Math.abs(t.x-n.x)<_E;if(!r&&!i)return 0;let a=0;if(r){let r=t.y,i=Math.min(t.x,n.x)-_E,o=Math.max(t.x,n.x)+_E;if(o<=i)return 0;for(let t of h)t.edgeIndex!==e&&t.orientation===`vertical`&&(t.pipe.coordo||t.from-_E<=r&&t.to+_E>=r&&(a+=v))}else if(i){let r=t.x,i=Math.min(t.y,n.y)-_E,o=Math.max(t.y,n.y)+_E;if(o<=i)return 0;for(let t of h)t.edgeIndex!==e&&t.orientation===`horizontal`&&(t.pipe.coordo||t.from-_E<=r&&t.to+_E>=r&&(a+=v))}return a},`crossingPenalty`),b=i.map((e,t)=>{if(!e.start||!e.end)return{idx:t,crossLane:0,dx:0,dy:0};let n=a.get(e.start),r=a.get(e.end),i=o.get(e.start),s=o.get(e.end);return{idx:t,crossLane:i&&s&&i.id!==s.id?1:0,dx:n&&r?Math.abs((r.x??0)-(n.x??0)):0,dy:n&&r?Math.abs((r.y??0)-(n.y??0)):0}}).sort((e,t)=>{if(e.crossLane!==t.crossLane)return t.crossLane-e.crossLane;let n=e.dx+e.dy,r=t.dx+t.dy;return Math.abs(n-r)>1?n-r:e.idx-t.idx}).map(e=>e.idx),x=N((e,t,n,r)=>{let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return!!d.find(l=>n&&l.nodeId===n||r&&l.nodeId===r?!1:Math.abs(e.x-t.x)>_E?l.minYe.y&&l.maxX>i&&l.minXe.x&&l.maxY>o&&l.minYeE(e,t,`bottom`),`determineSide`),T=new Map;for(let[e,t]of i.entries()){if(!t.start||!t.end||t.start===t.end||t.points&&t.points.length>0)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let i=(r.x??0)-(n.x??0),o=(r.y??0)-(n.y??0);T.set(e,{edgeIdx:e,srcId:t.start,dstId:t.end,srcSide:w(n,{x:r.x??0,y:r.y??0}),dstSide:w(r,{x:n.x??0,y:n.y??0}),absDx:Math.abs(i),absDy:Math.abs(o),dxSign:Math.sign(i),dySign:Math.sign(o)})}let E=N(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.absDx===0?1/0:e.absDy/e.absDx:e.absDy===0?1/0:e.absDx/e.absDy,`preferenceStrength`),D=N(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.dxSign>=0?`right`:`left`:e.dySign>=0?`bottom`:`top`,`secondarySide`),O=new Map;for(let e of T.values()){let t=`${e.srcId}:${e.srcSide}`;O.has(t)||O.set(t,[]),O.get(t).push(e)}let k=new Map,A=N((e,t)=>`${e}:${t}`,`loadKey`);for(let e of T.values())k.set(A(e.srcId,e.srcSide),(k.get(A(e.srcId,e.srcSide))??0)+1),k.set(A(e.dstId,e.dstSide),(k.get(A(e.dstId,e.dstSide))??0)+1);for(let e of O.values())if(!(e.length<2)){e.sort((e,t)=>{let n=E(e),r=E(t);return Math.abs(n-r)>1e-9?r-n:e.edgeIdx-t.edgeIdx});for(let t=1;t=i||(k.set(A(n.srcId,n.srcSide),i-1),k.set(A(n.srcId,r),a+1),n.srcSide=r)}}let j=N(e=>{let t=e?.shape;return t===`question`||t===`diamond`},`isDiamondNode`),M=new Map;for(let e of T.values())M.has(e.dstId)||M.set(e.dstId,new Set),M.get(e.dstId).add(e.dstSide);for(let e of T.values()){if(!j(a.get(e.srcId)))continue;let t=M.get(e.srcId);if(!t?.has(e.srcSide))continue;let n=D(e);if(t.has(n)||(k.get(A(e.srcId,n))??0)>0)continue;let r=k.get(A(e.srcId,e.srcSide))??0;k.set(A(e.srcId,e.srcSide),Math.max(0,r-1)),k.set(A(e.srcId,n),1),e.srcSide=n}for(let e of T.values()){let{edgeIdx:t,srcId:n,dstId:r,srcSide:i,dstSide:o}=e,s=a.get(n),l=a.get(r),u=`${n}:${i}:src`,d=i===`top`||i===`bottom`?l.x??0:l.y??0;S.has(u)||S.set(u,[]),S.get(u).push({edgeIdx:t,oppositeCoord:d});let f=`${r}:${o}:dst`,p=o===`top`||o===`bottom`?s.x??0:s.y??0;S.has(f)||S.set(f,[]),S.get(f).push({edgeIdx:t,oppositeCoord:p})}let ee=new Map;for(let[e,t]of S){if(t.length<2)continue;t.sort((e,t)=>e.oppositeCoord-t.oppositeCoord);let n=e.split(`:`),r=n.slice(0,-2).join(`:`),i=n[n.length-2],o=n[n.length-1],s=a.get(r);if(!s)continue;let l=i===`left`||i===`right`?s.height??10:s.width??10,u=s.shape,d=u===`question`||u===`diamond`?l*.3:l,f=Math.min(20,Math.max(8,d/(t.length+1))),p=-(f*(t.length-1))/2;for(let[e,n]of t.entries()){let t=p+e*f,r=`${n.edgeIdx}:${o}`;ee.set(r,t)}}let te=N(e=>!!i[e]?.labelNodeId,`edgeHasLabelNode`),ne=N((e,t)=>e?(S.get(`${e}:${t}:src`)??[]).some(({edgeIdx:e})=>te(e))||(S.get(`${e}:${t}:dst`)??[]).some(({edgeIdx:e})=>te(e)):!1,`faceHasLabelNode`),re=N((e,t,n)=>t===`top`||t===`bottom`?{x:e.x+n,y:e.y}:{x:e.x,y:e.y+n},`applyPortOffset`),ie=N((e,t,n)=>{let r=T.get(e),i={x:n.x??0,y:n.y??0},a={x:t.x??0,y:t.y??0},o=r?.srcSide??w(t,i),s=r?.dstSide??w(n,a),l=r?p(t,r.srcSide):m(t,i,!0),u=r?p(n,r.dstSide):m(n,a,!1),d=ee.get(`${e}:src`),f=ee.get(`${e}:dst`);return d!==void 0&&(l=re(l,o,d)),f!==void 0&&(u=re(u,s,f)),{pSrcPort:l,pDstPort:u,srcSide:o,dstSide:s}},`portsForEdge`);for(let e of b){let t=i[e];if(g[e]=[],!t.start||!t.end||t.points&&t.points.length>0||t.start===t.end)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let{pSrcPort:o,pDstPort:u,srcSide:p,dstSide:m}=ie(e,n,r),v={...o},b={...u},w=p===`top`||p===`bottom`,T=m===`top`||m===`bottom`;w?v.y=o.y>(n.y??0)?o.y+bE:o.y-bE:v.x=o.x>(n.x??0)?o.x+bE:o.x-bE,T?b.y=u.y>(r.y??0)?u.y+bE:u.y-bE:b.x=u.x>(r.x??0)?u.x+bE:u.x-bE;let E=N((e,t)=>{for(let n of d)if(!t.includes(n.nodeId)&&e.x>n.minX&&e.xn.minY&&e.y{if(i){let i=e.y>(t.y??0);return{x:(n.x??0)>=e.x?r.maxX+vE:r.minX-vE,y:i?r.maxY+yE:r.minY-yE,leavesPositiveSide:i}}let a=e.x>(t.x??0),o=(n.y??0)>=e.y;return{x:a?r.maxX+vE:r.minX-vE,y:o?r.maxY+yE:r.minY-yE,leavesPositiveSide:a}},`obstacleDetour`),O=[],k=[t.start,t.end],A=E(v,k);if(A.inside&&A.obstacle){let e=A.obstacle;if(w){let t=D(o,n,r,e,!0);v.x=t.x,v.y=t.y;let i=t.leavesPositiveSide?Math.min(e.minY-2,o.y+bE):Math.max(e.maxY+2,o.y-bE);O=[{x:o.x,y:i},{x:t.x,y:i},{x:t.x,y:t.y}]}else{let t=D(o,n,r,e,!1),i=t.leavesPositiveSide?Math.min(e.minX-2,o.x+bE):Math.max(e.maxX+2,o.x-bE);v.x=t.x,v.y=t.y,O=[{x:i,y:o.y},{x:i,y:t.y},{x:t.x,y:t.y}]}}let j=[],M=E(b,k);if(M.inside&&M.obstacle){let e=M.obstacle;if(T){let t=D(u,r,n,e,!0);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:u.x,y:t.y}]}else{let t=D(u,r,n,e,!1);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:t.x,y:u.y}]}}if(O.length===0&&j.length===0){let n=vE,r=Math.abs(v.x-b.x)1||l>1,f=C.get(t.start??``)??0,g=C.get(t.end??``)??0,y=s>1&&ne(t.start,p)||l>1&&ne(t.end,m);if((r||i)&&!a&&(!d||d&&!y&&(s<=1||f<=2)&&(l<=1||g<=2))&&!x(o,u,t.start,t.end)){t.points=[{...o},{...v},{...b},{...u}],_.add(e);let n=i?`horizontal`:`vertical`,r=i?o.y:o.x,a=i?Math.min(o.x,u.x):Math.min(o.y,u.y),s=i?Math.max(o.x,u.x):Math.max(o.y,u.y),l={id:`fast-path-${n}-${r.toFixed(0)}-${e}`,orientation:n,coord:r,spanMin:a,spanMax:s,tracks:[]};h.push({edgeIndex:e,segmentIndex:0,orientation:n,pipe:l,trackIndex:0,from:a,to:s});continue}}v.x=f(`vertical`,v.x,v.y,v.y).coord,b.x=f(`vertical`,b.x,b.y,b.y).coord;let te=Math.min(v.x,b.x)-50,re=Math.max(v.x,b.x)+50,ae=Math.min(v.y,b.y)-50,oe=Math.max(v.y,b.y)+50;for(let e of d){let t=Math.min(v.x,b.x),n=Math.max(v.x,b.x),r=Math.min(v.y,b.y),i=Math.max(v.y,b.y);e.minXt&&e.minYr&&(te=Math.min(te,e.minX-xYe),re=Math.max(re,e.maxX+xYe),ae=Math.min(ae,e.minY-xYe),oe=Math.max(oe,e.maxY+xYe))}for(let e of d){if(e.maxXre||e.maxYoe)continue;let t=vE;f(`horizontal`,e.minY-t,te,re),f(`horizontal`,e.maxY+t,te,re);let n=yE;f(`vertical`,e.minX-n,ae,oe),f(`vertical`,e.maxX+n,ae,oe)}f(`horizontal`,v.y,te,re),f(`horizontal`,b.y,te,re);let se=s.filter(e=>e.orientation===`horizontal`&&e.coord>=ae&&e.coord<=oe),ce=s.filter(e=>e.orientation===`vertical`&&e.coord>=te&&e.coord<=re),le=N((e,t)=>`${e.toFixed(1)},${t.toFixed(1)}`,`getKey`),ue=le(v.x,v.y),de=le(b.x,b.y),fe=new Map,pe=new Map,me=new Map,he=new Set,ge=[];fe.set(ue,0),me.set(ue,`n`),ge.push({key:ue,f:Math.hypot(b.x-v.x,b.y-v.y),pt:v}),he.add(ue);let _e=[],ve=N((e,n)=>x(e,n,t.start,t.end),`checkSegmentBlocked`),ye={x:b.x,y:v.y},be=ve(v,ye),xe=ve(ye,b),Se=be||xe,Ce={x:v.x,y:b.y},we=ve(v,Ce),Te=ve(Ce,b);if(Se?we||Te||(_e=Math.abs(v.x-b.x)<_E?[v,b]:[v,Ce,b]):_e=Math.abs(v.y-b.y)<_E||Math.abs(v.x-b.x)<_E?[v,b]:[v,ye,b],_e.length===0)for(;ge.length>0;){ge.sort((e,t)=>e.f-t.f);let n=ge.shift();if(he.delete(n.key),n.key===de){let e=de,t=b;for(_e=[t];pe.has(e);){let n=pe.get(e);_e.unshift(n),t=n,e=le(n.x,n.y)}break}let r=n.pt.x,i=n.pt.y,a=ce.sort((e,t)=>e.coord-t.coord),o=a.findIndex(e=>Math.abs(e.coord-r)<1),s=se.sort((e,t)=>e.coord-t.coord),l=s.findIndex(e=>Math.abs(e.coord-i)<1),u=[];o>0&&u.push({x:a[o-1].coord,y:i}),o>=0&&o0&&u.push({x:r,y:s[l-1].coord}),l>=0&&le.nodeId===t.start||e.nodeId===t.end?!1:o===s?e.minXr&&e.maxY>l&&e.minYi&&e.maxX>o&&e.minX10&&S<-5||_<-10&&S>5)&&(h=Math.abs(S)*100),(g>10&&x<-5||g<-10&&x>5)&&(h+=Math.abs(x)*50);let C=0,w=me.get(n.key)??`n`,T=Math.abs(x)>_E?`h`:`v`;w!==`n`&&w!==T&&(C=50);let E=p+m+h+C,D=(fe.get(n.key)??1/0)+E,O=Math.abs(b.x-a.x)+Math.abs(b.y-a.y);if(D<(fe.get(f)??1/0)){if(pe.set(f,n.pt),fe.set(f,D),me.set(f,T),!he.has(f))ge.push({key:f,f:D+O,pt:a}),he.add(f);else{let e=ge.findIndex(e=>e.key===f);e!==-1&&(ge[e].f=D+O)}}}}if(_e.length===0&&(_e=[v,{x:v.x,y:b.y},b]),_e.length>4){let e=_e[0],t=_e[_e.length-1],n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y);for(let e of _e)n=Math.min(n,e.x),r=Math.max(r,e.x),i=Math.min(i,e.y),a=Math.max(a,e.y);let o=r>Math.max(e.x,t.x),s=ne.minXn&&e.minYa);if(s.length>0){let n=Math.max(e.x,t.x);for(let e of s){let t=(e.minX+e.maxX)/2;if(e.visualXHalfExtent===void 0||isNaN(e.visualXHalfExtent))continue;let r=t+e.visualXHalfExtent+i;n=Math.max(n,r)}isNaN(n)||(r=n)}}if(s){let r=d.filter(n=>n.minXMath.min(e.y,t.y));if(r.length>0){let a=Math.min(e.x,t.x);for(let e of r){let t=(e.minX+e.maxX)/2-e.visualXHalfExtent-i;a=Math.min(a,t)}n=a}}}let u=N(n=>{let r=t.y>e.y,i=d.filter(n=>{let r=Math.min(e.x,t.x)n.minX,i=Math.min(e.y,t.y)n.minY;return r&&i}),a=i;if(l&&i.length>0){let e=i.filter(e=>e.minXn);e.length>0&&(a=e)}if(a.length===0)return t.y;let o=vE;if(r){let e=Math.max(...a.map(e=>e.maxY))+o;if(ee.minY))-o;if(e>t.y+_E)return e}return t.y},`findBestReturnY`),f=N(n=>{let r=u(n),i={x:n,y:e.y},a={x:n,y:r},o={x:t.x,y:r},s=ve(e,i),l=ve(i,a),d=ve(a,o),f=r!==t.y&&ve(o,t);return!s&&!l&&!d&&!f?Math.abs(r-t.y)<_E?[e,i,a,t]:[e,i,a,o,t]:null},`trySimplifyWithDetourX`),p=o&&!s?f(r):s&&!o?f(n):null;p&&(_e=p)}let Ee=[o,...O,..._e,...j.reverse(),u];if(Ee.length>=3){let e=Ee[Ee.length-1],t=Ee[Ee.length-2],n=Ee[Ee.length-3],r=Math.abs(n.y-t.y)<_E&&Math.abs(t.y-e.y)<_E,i=Math.abs(n.x-t.x)<_E&&Math.abs(t.x-e.x)<_E;if(r){let r=Math.sign(t.x-n.x),i=Math.sign(e.x-n.x);r!==0&&r===i&&Math.abs(t.x-n.x)>Math.abs(e.x-n.x)&&Ee.splice(-2,1)}else if(i){let r=Math.sign(t.y-n.y),i=Math.sign(e.y-n.y);r!==0&&r===i&&Math.abs(t.y-n.y)>Math.abs(e.y-n.y)&&Ee.splice(-2,1)}}let De=[Ee[0]];for(let e=1;et.x!=r.x>n.x){De.push(n);continue}continue}if(Math.abs(t.x-n.x)<_E&&Math.abs(n.x-r.x)<_E){if(n.y>t.y!=r.y>n.y){De.push(n);continue}continue}De.push(n)}De.push(Ee[Ee.length-1]);for(let t=0;te.from{let i=!r.segments.some(n=>(n.edgeIndex!==t.edgeIndex||n.segmentIndex!==t.segmentIndex)&&ae(n,e)),a=!n.segments.some(n=>(n.edgeIndex!==e.edgeIndex||n.segmentIndex!==e.segmentIndex)&&ae(n,t));return i&&a?(e.trackIndex=r.index,t.trackIndex=n.index,n.segments=[...n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),{edgeIndex:t.edgeIndex,segmentIndex:t.segmentIndex,from:t.from,to:t.to}],r.segments=[...r.segments.filter(e=>e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex),{edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to}],!0):!1},`trySwapSegmentsAcrossTracks`),se=N(e=>{let t=e.tracks.length;return e.tracks[t]={index:t,coord:e.coord,segments:[]},t},`createNewTrack`),ce=N((e,t)=>{let n=e.pipe.tracks[e.trackIndex];n.segments=n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),e.trackIndex=t,e.pipe.tracks[t].segments.push({edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to})},`moveSegmentToTrack`),le=N((e,t)=>{let n=g[e.edgeIndex];for(let r of n){let n=h[r];n.pipe===e.pipe&&ce(n,t)}},`moveSegmentChainToTrack`),ue=N(e=>{let t=g[e.edgeIndex],n=t.indexOf(h.indexOf(e)),r=[];return n>0&&r.push(h[t[n-1]]),n{if(e.orientation===t.orientation)return!1;let n=e.orientation===`horizontal`?e:t,r=e.orientation===`horizontal`?t:e;return r.pipe.coord>n.from&&r.pipe.coordr.from&&n.pipe.coord{for(let n of e.tracks)if(!n.segments.some(e=>(e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex)&&ae(e,t)))return n.index;return-1},`findAvailableTrack`),pe=N((e,t)=>{if(e.trackIndex===t.trackIndex)return ae(e,t);let n=ue(e),r=ue(t);return n.some(e=>r.some(t=>de(e,t)))},`segmentsConflict`),me=N((e,t,n)=>{if(oe(e,t,e.pipe.tracks[e.trackIndex],t.pipe.tracks[t.trackIndex]))return;let r=fe(e.pipe,t);n(t,r===-1?se(e.pipe):r)},`resolveTrackConflict`),he=N(e=>{let t=0;for(let n=0;n{if(ge.has(e))return ge.get(e);let t=g[e];if(t.length===0){let t={dest:0,deviation:0,base:0,delta:0};return ge.set(e,t),t}let n=h[t[0]].pipe.coord,r=n;for(let e=1;eMath.abs(t-n)?e:t;break}}let i=Math.abs(r-n),a={dest:r,deviation:i,base:n,delta:r-n};return ge.set(e,a),a},`getDestInfo`),ve=N(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.start&&(t.has(n.start)||t.set(n.start,[]),t.get(n.start).push(e));let n=N(e=>{let t=i[e];if(!t.start||!t.end)return 0;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)return 0;let o=(r.x??0)-(n.x??0),s=(r.y??0)-(n.y??0);return Math.abs(o)+Math.abs(s)},`getEdgeDistance`);for(let r of t.values()){r.sort((e,t)=>{let r=_e(e),i=_e(t);if(Math.abs(r.deviation-i.deviation)>1)return r.deviation-i.deviation;if(Math.abs(r.dest-i.dest)>1)return r.dest-i.dest;let a=n(e),o=n(t);if(Math.abs(a-o)>1)return o-a;let s=g[e].length,l=g[t].length;if(s!==l)return s-l;if(s===1){let n=g[e][0],r=g[t][0];if(h[n]&&h[r]){let e=h[n],t=h[r],i=Math.abs(e.to-e.from),a=Math.abs(t.to-t.from);if(Math.abs(i-a)>1)return i-a}}return 0});let t=r.map(e=>h[g[e][0]]);e+=he(t)}return e},`fixSourceHandleCrossings`),ye=N(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.end&&(t.has(n.end)||t.set(n.end,[]),t.get(n.end).push(e));for(let n of t.values()){n.sort((e,t)=>{let n=N(e=>{let t=g[e];if(t.length<2)return 0;let n=h[t[t.length-2]];return Math.abs(n.to-n.from)},`getDist`),r=n(e),i=n(t);return Math.abs(r-i)>.1?r-i:e-t});let t=n.map(e=>h[g[e][g[e].length-1]]);e+=he(t)}return e},`fixTargetHandleCrossings`),be=N(()=>{let e=0;for(let t of s){let n=[];for(let e of t.tracks)for(let t of e.segments){let e=g[t.edgeIndex].find(e=>h[e].segmentIndex===t.segmentIndex);e!==void 0&&n.push(h[e])}n.sort((e,t)=>e.edgeIndex-t.edgeIndex||e.segmentIndex-t.segmentIndex);for(let t=0;t{e.segments.forEach(n=>{t.push({edgeIndex:n.edgeIndex,segmentIndex:n.segmentIndex,trackIndex:e.index,from:n.from,to:n.to})})}),t.sort((e,t)=>e.from-t.from);let n=[];if(t.length>0){let e=[t[0]],r=t[0].to;for(let i=1;in.add(e.trackIndex));let r=new Map;t.forEach(e=>{let t=_e(e.edgeIndex);r.set(e.trackIndex,(r.get(e.trackIndex)??0)+t.delta)});let i=[...n].filter(e=>(r.get(e)??0)<-1),a=[...n].filter(e=>(r.get(e)??0)>1),o=[...n].filter(e=>Math.abs(r.get(e)??0)<=1);i.sort((e,t)=>(r.get(t)??0)-(r.get(e)??0)),a.sort((e,t)=>(r.get(e)??0)-(r.get(t)??0));let s=N((n,r)=>{t.filter(e=>e.trackIndex===n).forEach(t=>{let n=_.has(t.edgeIndex)?e.coord:r;Se.set(`${t.edgeIndex}-${t.segmentIndex}`,n)})},`assignCoord`),l=0;for(let t of i)l++,s(t,e.coord-l*SYe);if(o.length===0&&n.size>0){let e=[...n].sort((e,t)=>Math.abs(r.get(e)??0)-Math.abs(r.get(t)??0))[0],t=i.indexOf(e);t!==-1&&i.splice(t,1);let s=a.indexOf(e);s!==-1&&a.splice(s,1),o.push(e)}let u=0;for(let t of o){if(u===0)s(t,e.coord);else{let n=u%2==1?1:-1,r=Math.ceil(u/2);s(t,e.coord+n*r*SYe*.5)}u++}let d=0;for(let t of a)d++,s(t,e.coord+d*SYe)}}for(let[e,t]of i.entries()){let n=g[e]??[];if(n.length===0)continue;let r=[],{pSrcPort:i,pDstPort:o}=ie(e,a.get(t.start),a.get(t.end)),s=n.map(e=>{let t=h[e],n=Se.get(`${t.edgeIndex}-${t.segmentIndex}`)??t.pipe.coord;return{orient:t.orientation,coord:n,from:t.from,to:t.to}});r.push(i);for(let e=0;e_E&&r.push(tE(t,i)),l&&o.orient===t.orient){if(Math.abs(t.coord-o.coord)>_E){let e=t.orient===`vertical`?(i+o.from)/2:nYe(t,o);r.push(tE(t,e),tE(o,e))}else(e===0||e===s.length-2)&&r.push(tE(t,nYe(t,o)))}else if(l)r.push(tE(t,o.coord));else{let e=Math.abs(t.from-i)_E||Math.abs(l.y-o.y)>_E)&&r.push(o);let u=[];r.length>0&&u.push(r[0]);for(let e=1;e_E||Math.abs(t.y-n.y)>_E)&&u.push(t)}t.points=u}for(let e of i){let t=e.__originalEdge;t&&e.points&&(t.points=e.points)}e.edges=(e.edges??[]).filter(e=>!e.isLayoutOnly);let Ce=N((e,t)=>{let n=t.x??0,r=t.y??0,i=t.width??0,a=t.height??0;if(i<=0||a<=0)return e;let o=n-i/2,s=n+i/2,l=r-a/2,u=r+a/2;if(e.xs||e.yu)return e;let d=e.x-o,f=s-e.x,p=e.y-l,m=u-e.y,h=Math.min(d,f,p,m);return h===d?{x:o,y:e.y}:h===f?{x:s,y:e.y}:h===p?{x:e.x,y:l}:{x:e.x,y:u}},`nodeBoundaryClamp`);for(let t of e.edges){let e=t.points;if(!e||e.length<2)continue;let n=t.start,r=t.end,i=n?a.get(n):void 0,o=r?a.get(r):void 0;i&&(e[0]=Ce(e[0],i)),o&&(e[e.length-1]=Ce(e[e.length-1],o))}return e}function nE(e){return e.direction??`TB`}function iYe(e){let t=Eqe(e),n=e.config.flowchart?.nodeSpacing??40,r=e.config.flowchart?.rankSpacing??100,i=e.config.swimlane?.ignoreCrossLaneEdges??!0,a=e.config.swimlane?.optimizeRanksByCrossings??!0,o=e.config.swimlane?.automaticLaneOrdering??!1,s=nE(e),{ordered:l,coordinates:u}=$T(t,{nodeGap:n,layerGap:r,ignoreCrossLaneEdges:i,optimizeRanksByCrossings:a,automaticLaneOrdering:o,direction:s});Dqe(t,l,u,{nodeGap:n,layerGap:r});for(let t of e.edges??[])delete t.points;rYe(e,s);for(let t of e.edges??[])(!t.curve||t.curve===`basis`)&&(t.curve=`rounded`);return bJe(e,s),AT(e),s}function aYe(e){Tqe(e);let t=Oqe(e);e.nodes=t.nodes,e.edges=t.edges}var oYe,sYe,cYe,lYe,rE,iE,uYe,dYe,aE,oE,fYe,sE,cE,pYe,lE,uE,dE,fE,pE,mYe,mE,hYe,gYe,_Ye,vYe,hE,gE,yYe,_E,bYe,vE,yE,xYe,bE,SYe,xE,CYe=o((()=>{Ov(),EUe(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),N(Sqe,`applySwimlaneLineJumps`),oYe=`__swimlane_default__`,sYe=21,cYe=20,N(Cqe,`topLaneHorizontalPadding`),N(wqe,`assignTopLaneTitleRect`),N(Tqe,`prepareLayoutForSwimlanes`),N(Eqe,`toGraphView`),N(Dqe,`writeBackToLayoutData`),lYe=`[EdgeLabelNodes]`,N(Oqe,`createEdgeLabelNodes`),rE=.001,N(kqe,`measuredNodeRect`),N(Aqe,`nodeBoundsInfoFor`),N(Bw,`samePoint`),N(Vw,`sameX`),N(Hw,`sameY`),N(Uw,`isHorizontalSegment`),N(Ww,`isVerticalSegment`),N(Gw,`overlapLength`),N(Kw,`sameAxisSegmentOverlapLength`),N(qw,`orthogonalSegmentsForPoints`),N(Jw,`countOrthogonalBends`),N(Yw,`dedupeConsecutivePoints`),N(jqe,`classifyThreeSegmentRoute`),N(Mqe,`segmentBoundsOverlapRect`),N(Nqe,`pointInsideRect`),N(Pqe,`rectContainsRect`),N(Xw,`rectsOverlap`),N(Fqe,`inflateRect`),N(Zw,`rectFromCenterSize`),N(Qw,`rectOfNodeBounds`),N($w,`portForRectSide`),N(Iqe,`buildOrthogonalPortPath`),N(Lqe,`buildSameSideTrackPath`),N(eT,`collectRealNodeBounds`),N(tT,`collectNodeRectEntries`),N(nT,`collectLayoutNodeRects`),N(Rqe,`getNodePairGeometry`),N(rT,`segmentHitsAnyRect`),N(iT,`orthogonalSegmentsCross`),N(aT,`sameAxisSegmentsOverlap`),N(zqe,`segmentConflictsWithAnyEdge`),N(oT,`orthogonalSegmentsStrictlyCross`),N(Bqe,`strictlyBetween`),N(Vqe,`isCollinearIntermediate`),N(Hqe,`simplifyPolylineOnce`),N(sT,`orthogonalizePolyline`),N(cT,`simplifyPolyline`),iE=.001,uYe=.5,dYe=4,N(Uqe,`endpointContextFor`),N(lT,`segmentEnterPoint`),N(uT,`clipEndpoint`),N(Wqe,`clipEdgeEndpointsToNodeBoundaries`),N(Gqe,`snapEndpointToBoundary`),N(Kqe,`firstDistinctAdjacent`),N(dT,`cornerClearanceRange`),N(fT,`clampToCornerClearance`),N(pT,`intersectRanges`),N(qqe,`clearanceRangeForSide`),N(Jqe,`terminalSideForSegment`),N(mT,`isHorizontalSide`),N(hT,`straightClearanceRange`),N(gT,`clearStraightEndpointCornerAxis`),N(_T,`clearStraightEndpointCornerConnections`),N(Yqe,`cornerClearedEndpoint`),N(Xqe,`moveCollinearEndpointRun`),N(Zqe,`clearEndpointCornerConnection`),N(Qqe,`borderSideForSegment`),N(vT,`leavesOutward`),N($qe,`collapseOwnBorderStub`),N(eJe,`snapAndCollapseEndpoints`),N(tJe,`prepareEdgeEndpointsForRenderer`),N(yT,`buildNodeMap`),N(bT,`resolveTopLevelGroupId`),N(nJe,`groupDepth`),N(xT,`boundsForChildren`),N(rJe,`applyGroupBounds`),N(iJe,`recomputeNestedGroupBounds`),N(aJe,`mirrorAxis`),N(oJe,`applyBtDirectionTransform`),N(sJe,`applyLrDirectionTransform`),aE=1e-6,oE=8,fYe=[0,oE,-oE,2*oE,-2*oE],N(ST,`portSwapToLShape`),N(cJe,`collapseShortTerminalStub`),sE=.001,cE=8,pYe=N(e=>typeof e==`string`?e.toUpperCase():``,`upperCaseDirection`),lE=qw,uE=N((e,t)=>Vw(e,t,sE)||Hw(e,t,sE),`orthogonallyAligned`),N(CT,`separateSharedRenderedTerminalLanes`),N(wT,`collapseRedundantRectangularDoglegs`),N(lJe,`liftObstacleHuggingSameSideRails`),N(uJe,`liftTopLaneTitleBandsAboveRails`),N(dJe,`shiftLeftLaneTitleBandsLeftOfRails`),N(fJe,`swapDestinationTerminalTailsToReduceCrossings`),N(pJe,`reassignCrossingExternalRailChannels`),N(mJe,`shortcutRedundantOrthogonalJogs`),N(TT,`resolveRenderedOrthogonalCrossings`),dE=.001,fE=8,N(ET,`simplifyDetouredEdges`),pE=.001,mYe=10,mE=7,N(DT,`markerClearanceRectFor`),N(hJe,`normalizeRect`),N(gJe,`labelOverlapsOwnMarker`),N(_Je,`anchorLabelsToPolyline`),hYe=1e-6,gYe=4,_Ye=3,N(OT,`pairKey`),N(vJe,`straightenCollinearSiblingDetours`),N(yJe,`nudgeSharedInteriorSubpaths`),N(kT,`segmentsIntersect`),N(AT,`validateSwimlanesLayout`),N(bJe,`postProcessSwimlaneLayout`),N(jT,`normalizeGraph`),N(MT,`incoming`),N(xJe,`buildSuccessorMap`),N(NT,`buildSortedSuccessorMap`),N(SJe,`buildInDegreeMap`),N(CJe,`sortedZeroInDegreeNodes`),N(wJe,`buildPredecessorSuccessorMaps`),N(PT,`buildLayersFromRanks`),N(FT,`topoSortIfAcyclic`),N(IT,`buildLayerIndex`),N(LT,`countInversions`),N(TJe,`removeCycles_DFS`),N(RT,`buildTopLaneMap`),N(zT,`createTopLaneResolver`),N(BT,`buildTopLaneOrder`),N(EJe,`resolveTopLaneOrder`),vYe={EPSILON:1e-6},hE={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},gE={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40},N(DJe,`buildDrivingTree`),N(OJe,`chooseParent`),N(kJe,`buildAdjacency`),N(AJe,`assignComponents`),N(jJe,`computeBlocks`),N(VT,`popBlock`),N(MJe,`computeSubtreeCrossCounts`),N(NJe,`annotateMinimumLayers`),N(PJe,`compareByRankThenId`),N(FJe,`emitNodesInTreeOrder`),N(IJe,`deduplicateLayers`),N(LJe,`createChildOrderer`),N(HT,`buildMultitreeLayerOrder`),N(RJe,`countCrossingsBetweenAdjacent`),N(UT,`totalCrossings`),N(WT,`optimizeRanksByCrossings`),N(zJe,`adjustCrossLaneSources`),N(BJe,`assignLayers_LongestPath`),N(VJe,`assignLayers_Gravity`),N(GT,`topoSortByGenerationIfAcyclic`),N(KT,`assignLayers_LaneAwareCompact`),N(HJe,`makeProperLayering`),N(UJe,`median`),N(WJe,`barycenter`),N(qT,`neighborPositionsFor`),N(GJe,`currentOrderTieBreak`),N(JT,`countCrossingsBetweenAdjacent`),N(KJe,`sortByHeuristic`),N(qJe,`reorderLayer`),N(JJe,`transposeImprove`),N(YJe,`orderLayers`),N(XJe,`assignCoordinates`),yYe=8,N(ZJe,`hashString`),N(QJe,`mulberry32`),N($Je,`deterministicShuffle`),N(eYe,`sourceDistance`),N(tYe,`laneArrangementCost`),N(K,`buildWeightedLaneEdges`),N(YT,`greedySwitch`),N(XT,`isBetterCandidate`),N(ZT,`seedForRestart`),N(QT,`optimizeTopLaneOrder`),N($T,`sugiyamaLayout`),_E=vYe.EPSILON,bYe=8,vE=15,yE=15,xYe=25,bE=20,SYe=10,N(eE,`chooseOrthogonalSide`),N(nYe,`sharedLineEndpointCoord`),N(tE,`pointOnLine`),N(rYe,`routeEdgesOrthogonal`),N(nE,`getSwimlaneDirection`),N(iYe,`runSwimlaneLayoutCore`),N(aYe,`prepareSwimlaneLayout`),xE=OS({prepareLayout:aYe,runLayoutCore:iYe,afterPaint:Sqe})}));function wYe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function EYe(e,t,n){return(t=MYe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DYe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function OYe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function kYe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AYe(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DE(e,t){return SE(e)||OYe(e,t)||NYe(e,t)||kYe()}function OE(e){return CE(e)||DYe(e)||NYe(e)||AYe()}function jYe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}function MYe(e){var t=jYe(e,`string`);return typeof t==`symbol`?t:t+``}function kE(e){"@babel/helpers - typeof";return kE=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},kE(e)}function NYe(e,t){if(e){if(typeof e==`string`)return wYe(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wYe(e,t):void 0}}function AE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function PYe(){if(pQe)return nO;pQe=1;function e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}return nO=e,nO}function FYe(){return hQe?mQe:(hQe=1,mQe=typeof fQe==`object`&&fQe&&fQe.Object===Object&&fQe,mQe)}function IYe(){if(_Qe)return gQe;_Qe=1;var e=FYe(),t=typeof self==`object`&&self&&self.Object===Object&&self;return gQe=e||t||Function(`return this`)(),gQe}function LYe(){if(yQe)return vQe;yQe=1;var e=IYe();return vQe=function(){return e.Date.now()},vQe}function RYe(){if(iO)return rO;iO=1;var e=/\s/;function t(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return rO=t,rO}function zYe(){if(aO)return bQe;aO=1;var e=RYe(),t=/^\s+/;function n(n){return n&&n.slice(0,e(n)+1).replace(t,``)}return bQe=n,bQe}function jE(){return xQe?oO:(xQe=1,oO=IYe().Symbol,oO)}function ME(){if(CQe)return SQe;CQe=1;var e=jE(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(e){var t=n.call(e,i),a=e[i];try{e[i]=void 0;var o=!0}catch{}var s=r.call(e);return o&&(t?e[i]=a:delete e[i]),s}return SQe=a,SQe}function NE(){if(TQe)return wQe;TQe=1;var e=Object.prototype.toString;function t(t){return e.call(t)}return wQe=t,wQe}function BYe(){if(EQe)return sO;EQe=1;var e=jE(),t=ME(),n=NE(),r=`[object Null]`,i=`[object Undefined]`,a=e?e.toStringTag:void 0;function o(e){return e==null?e===void 0?i:r:a&&a in Object(e)?t(e):n(e)}return sO=o,sO}function VYe(){if(DQe)return cO;DQe=1;function e(e){return typeof e==`object`&&!!e}return cO=e,cO}function PE(){if(kQe)return OQe;kQe=1;var e=BYe(),t=VYe(),n=`[object Symbol]`;function r(r){return typeof r==`symbol`||t(r)&&e(r)==n}return OQe=r,OQe}function FE(){if(uO)return lO;uO=1;var e=zYe(),t=PYe(),n=PE(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(l){if(typeof l==`number`)return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf==`function`?l.valueOf():l;l=t(u)?u+``:u}if(typeof l!=`string`)return l===0?l:+l;l=e(l);var d=a.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):i.test(l)?r:+l}return lO=l,lO}function IE(){if(fO)return dO;fO=1;var e=PYe(),t=LYe(),n=FE(),r=`Expected a function`,i=Math.max,a=Math.min;function o(o,s,l){var u,d,f,p,m,h,g=0,_=!1,v=!1,y=!0;if(typeof o!=`function`)throw TypeError(r);s=n(s)||0,e(l)&&(_=!!l.leading,v=`maxWait`in l,f=v?i(n(l.maxWait)||0,s):f,y=`trailing`in l?!!l.trailing:y);function b(e){var t=u,n=d;return u=d=void 0,g=e,p=o.apply(n,t),p}function x(e){return g=e,m=setTimeout(w,s),_?b(e):p}function S(e){var t=e-h,n=e-g,r=s-t;return v?a(r,f-n):r}function C(e){var t=e-h,n=e-g;return h===void 0||t>=s||t<0||v&&n>=f}function w(){var e=t();if(C(e))return T(e);m=setTimeout(w,S(e))}function T(e){return m=void 0,y&&u?b(e):(u=d=void 0,p)}function E(){m!==void 0&&clearTimeout(m),g=0,u=h=d=m=void 0}function D(){return m===void 0?p:T(t())}function O(){var e=t(),n=C(e);if(u=arguments,d=this,h=e,n){if(m===void 0)return x(h);if(v)return clearTimeout(m),m=setTimeout(w,s),b(h)}return m===void 0&&(m=setTimeout(w,s)),p}return O.cancel=E,O.flush=D,O}return dO=o,dO}function HYe(e,t,n,r,i){var a=i*Math.PI/180;return{x:Math.cos(a)*(e-n)-Math.sin(a)*(t-r)+n,y:Math.sin(a)*(e-n)+Math.cos(a)*(t-r)+r}}function UYe(e,t,n){if(n===0)return e;var r=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,a=t.w/t.h,o=1/a,s=HYe(e.x,e.y,r,i,n),l=FQe(s.x,s.y,r,i,a,o);return{x:l.x,y:l.y}}function WYe(){return XQe?JQe.exports:(XQe=1,(function(e,t){(function(){var t,n,r=Math.floor,i,a,o,s,l,u,d=Math.min,f,p,m,h,g;n=function(e,t){return et)},u=function(e,t,i,a,o){var s;if(i??=0,o??=n,i<0)throw Error(`lo must be non-negative`);for(a??=e.length;in;0<=n?t++:t--)u.push(t);return u}).apply(this).reverse(),l=[],a=0,o=s.length;ag;0<=g?++p:--p)_.push(a(e,r));return _},h=function(e,t,r,i){var a,o,s;for(i??=n,a=e[r];r>t;){if(s=r-1>>1,o=e[s],i(a,o)<0){e[r]=o,r=s;continue}break}return e[r]=a},g=function(e,t,r){var i,a,o,s,l;for(r??=n,a=e.length,l=t,o=e[t],i=2*t+1;i-1}return p0e=t,p0e}function dXe(){if(g0e)return h0e;g0e=1;var e=UE();function t(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}return h0e=t,h0e}function fXe(){if(v0e)return _0e;v0e=1;var e=oXe(),t=cXe(),n=lXe(),r=uXe(),i=dXe();function a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&n%1==0&&n0;){var u=i.shift();t(u),a.add(u.id()),o&&r(i,a,u)}return e}function NXe(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i0&&arguments[0]!==void 0?arguments[0]:r4e,t=arguments.length>1?arguments[1]:void 0,n=0;n0?i=o:r=o;while(Math.abs(a)>1e-7&&++s<10);return o}function v(t){for(var r=0,o=1,s=i-1;o!==s&&l[o]<=t;++o)r+=a;--o;var u=(t-l[o])/(l[o+1]-l[o]),d=r+u*a,f=m(d,e,n);return f>=.001?h(t,d):f===0?d:_(t,r,r+a)}var y=!1;function b(){y=!0,(e!==t||n!==r)&&g()}var x=function(i){return y||b(),e===t&&n===r?i:i===0?0:i===1?1:p(v(i),t,r)};x.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var S=`generateBezier(`+[e,t,n,r]+`)`;return x.toString=function(){return S},x}function WXe(e,t,n,r,i){if(r===1||t===n)return n;var a=i(t,n,r);return e==null?a:((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max)),a)}function GXe(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!==`%`)?e.pfValue:e.value:e}function oD(e,t,n,r,i){var a=i==null?null:i.type;n<0?n=0:n>1&&(n=1);var o=GXe(e,i),s=GXe(t,i);if(RD(o)&&RD(s))return WXe(a,o,s,n,r);if(ID(o)&&ID(s)){for(var l=[],u=0;u0?(f===`spring`&&p.push(o.duration),o.easingImpl=xj[f].apply(null,p)):o.easingImpl=xj[f]}}var m=o.easingImpl,h=o.duration===0?1:(n-l)/o.duration;if(o.applying&&(h=o.progress),h<0?h=0:h>1&&(h=1),o.delay==null){var g=o.startPosition,_=o.position;if(_&&i&&!e.locked()){var v={};sD(g.x,_.x)&&(v.x=oD(g.x,_.x,h,m)),sD(g.y,_.y)&&(v.y=oD(g.y,_.y,h,m)),e.position(v)}var y=o.startPan,b=o.pan,x=a.pan,S=b!=null&&r;S&&(sD(y.x,b.x)&&(x.x=oD(y.x,b.x,h,m)),sD(y.y,b.y)&&(x.y=oD(y.y,b.y,h,m)),e.emit(`pan`));var C=o.startZoom,w=o.zoom,T=w!=null&&r;T&&(sD(C,w)&&(a.zoom=rk(a.minZoom,oD(C,w,h,m),a.maxZoom)),e.emit(`zoom`)),(S||T)&&e.emit(`viewport`);var E=o.style;if(E&&E.length>0&&i){for(var D=0;D=0;t--){var n=e[t];n()}e.splice(0,e.length)},d=a.length-1;d>=0;d--){var f=a[d],p=f._private;if(p.stopped){a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.frames);continue}(p.playing||p.applying)&&(p.playing&&p.applying&&(p.applying=!1),p.started||qXe(t,f,e),KXe(t,f,e,n),p.applying&&=!1,u(p.frames),p.step!=null&&p.step(e),f.completed()&&(a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.completes)),s=!0)}return!n&&a.length===0&&o.length===0&&r.push(t),s}for(var a=!1,o=0;o0?t.notify(`draw`,n):t.notify(`draw`)),n.unmerge(r),t.emit(`step`)}function YXe(e){this.options=eO({},P4e,F4e,e)}function XXe(e){this.options=eO({},L4e,e)}function ZXe(e){this.options=eO({},R4e,e)}function QXe(e){this.options=eO({},Pj,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter(function(e){var n=e.source().data(`id`),r=e.target().data(`id`),i=t.some(function(e){return e.data(`id`)===n}),a=t.some(function(e){return e.data(`id`)===r});return!i||!a});this.options.eles=this.options.eles.not(n)}function $Xe(e){this.options=eO({},r3e,e)}function cD(e){this.options=eO({},i3e,e)}function eZe(e){this.options=eO({},a3e,e)}function tZe(e){this.options=eO({},o3e,e)}function lD(e){this.options=e,this.notifications=0}function nZe(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function rZe(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(C3e(e,t,n,r,i),{cx:f3e,cy:p3e,radius:Wj,startX:qj,startY:v3e,stopX:y3e,stopY:b3e,startAngle:zj.ang+Math.PI/2*Vj,endAngle:Bj.ang-Math.PI/2*Vj,counterClockwise:g3e})}function iZe(e){var t=[];if(e!=null){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}function fZe(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}function pZe(e,t,n){var r=fZe(e,e.VERTEX_SHADER,t),i=fZe(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error(`Could not initialize shaders`);return a}function dD(e,t,n){n===void 0&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext(`2d`);return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function mZe(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function hZe(e){var t=e.pixelRatio;return e.cy.zoom()*t}function gZe(e,t,n,r,i){var a=r*n+t.x,o=i*n+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}function _Ze(e,t){return t.picking?!0:e.pstyle(`background-fill`).value!==`solid`||e.pstyle(`background-image`).strValue!==`none`?!1:e.pstyle(`border-width`).value===0||e.pstyle(`border-opacity`).value===0||e.pstyle(`border-style`).value===`solid`}function vZe(e,t){if(e.length!==t.length)return!1;for(var n=0;n>0&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function yZe(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function bZe(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}function mD(e,t){switch(t){case`float`:return[1,e.FLOAT,4];case`vec2`:return[2,e.FLOAT,4];case`vec3`:return[3,e.FLOAT,4];case`vec4`:return[4,e.FLOAT,4];case`int`:return[1,e.INT,4];case`ivec2`:return[2,e.INT,4]}}function hD(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function gD(e,t,n,r,i,a){switch(t){case e.FLOAT:return new Float32Array(n.buffer,a*r,i);case e.INT:return new Int32Array(n.buffer,a*r,i)}}function xZe(e,t,n,r){var i=DE(mD(e,t),2),a=i[0],o=i[1],s=hD(e,o,r),l=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(n,a,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(n,a,o,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),l}function _D(e,t,n,r){var i=DE(mD(e,n),3),a=i[0],o=i[1],s=i[2],l=hD(e,o,t*a),u=a*s,d=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,d),e.bufferData(e.ARRAY_BUFFER,t*u,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,u,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,u,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var f=Array(t),p=0;pU3e?(CD(e),t.call(e,n)):(AZe(e),DD(e,n,R6e.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return FZe(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),t===`viewport`||t===`bounds`?e.pickingFrameBuffer.needsDraw=!0:t===`background`&&e.drawing.invalidate(n,{type:`node-body`})}}function CD(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function AZe(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function wD(e){var t=e.canvasWidth,n=e.canvasHeight,r=mZe(e),i=r.pan,a=r.zoom,o=yD();CZe(o,o,[i.x,i.y]),TZe(o,o,[a,a]);var s=yD();EZe(s,t,n);var l=yD();return xD(l,s,o),l}function TD(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=mZe(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}function jZe(e,t){e.drawSelectionRectangle(t,function(t){return TD(e,t)})}function MZe(e){var t=e.data.contexts[e.NODE];t.save(),TD(e,t),t.strokeStyle=`rgba(0, 0, 0, 0.3)`,t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function NZe(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),a=e.data.contexts[e.NODE],o=i.atlases,s=0;s=0&&b.add(S)}return b}function FZe(e,t,n){var r=PZe(e,t,n),i=e.getCachedZSortedEles(),a,o,s=EE(r),l;try{for(s.s();!(l=s.n()).done;){var u=i[l.value];if(!a&&u.isNode()&&(a=u),!o&&u.isEdge()&&(o=u),a&&o)break}}catch(e){s.e(e)}finally{s.f()}return[a,o].filter(Boolean)}function ED(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,`node-underlay`),r.drawNode(n,t,`node-body`),r.drawTexture(n,t,`label`),r.drawNode(n,t,`node-overlay`)):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,`source`),r.drawEdgeArrow(n,t,`target`),r.drawTexture(n,t,`label`),r.drawTexture(n,t,`edge-source-label`),r.drawTexture(n,t,`edge-target-label`))}function DD(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,a=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&jZe(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var o=e.data.contexts[e.WEBGL];n.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var s=wD(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(s,n),n.screen){for(var u=0;u{for(jD=typeof window>`u`?null:window,VZe=jD?jD.navigator:null,jD&&jD.document,HZe=kE(``),UZe=kE({}),MD=kE(function(){}),WZe=typeof HTMLElement>`u`?`undefined`:kE(HTMLElement),ND=function(e){return e&&e.instanceString&&FD(e.instanceString)?e.instanceString():null},PD=function(e){return e!=null&&kE(e)==HZe},FD=function(e){return e!=null&&kE(e)===MD},ID=function(e){return!BD(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},LD=function(e){return e!=null&&kE(e)===UZe&&!ID(e)&&e.constructor===Object},GZe=function(e){return e!=null&&kE(e)===UZe},RD=function(e){return e!=null&&kE(e)===kE(1)&&!isNaN(e)},KZe=function(e){return RD(e)&&Math.floor(e)===e},zD=function(e){if(WZe!==`undefined`)return e!=null&&e instanceof HTMLElement},BD=function(e){return VD(e)||qZe(e)},VD=function(e){return ND(e)===`collection`&&e._private.single},qZe=function(e){return ND(e)===`collection`&&!e._private.single},JZe=function(e){return ND(e)===`core`},YZe=function(e){return ND(e)===`stylesheet`},XZe=function(e){return ND(e)===`event`},HD=function(e){return!!(e==null||e===``||e.match(/^\s+$/))},ZZe=function(e){return typeof HTMLElement>`u`?!1:e instanceof HTMLElement},UD=function(e){return LD(e)&&RD(e.x1)&&RD(e.x2)&&RD(e.y1)&&RD(e.y2)},QZe=function(e){return GZe(e)&&FD(e.then)},WD=function(){return VZe&&VZe.userAgent.match(/msie|trident|edge/i)},GD=function(e,t){t||=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return`undefined`;for(var e=[],t=0;tt)},$D=function(e,t){return-1*QD(e,t)},eO=Object.assign==null?function(e){for(var t=arguments,n=1;n1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var d=RegExp(`^`+rQe+`$`).exec(e);if(d){if(n=parseInt(d[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,r=parseFloat(d[2]),r<0||r>100||(r/=100,i=parseFloat(d[3]),i<0||i>100)||(i/=100,a=d[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(r===0)o=s=l=Math.round(i*255);else{var f=i<.5?i*(1+r):i+r-i*r,p=2*i-f;o=Math.round(255*u(p,f,n+1/3)),s=Math.round(255*u(p,f,n)),l=Math.round(255*u(p,f,n-1/3))}t=[o,s,l,a]}return t},sQe=function(e){var t,n=RegExp(`^`+JD+`$`).exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if(a[a.length-1]===`%`&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},cQe=function(e){return uQe[e.toLowerCase()]},lQe=function(e){return(ID(e)?e:null)||cQe(e)||aQe(e)||sQe(e)||oQe(e)},uQe={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]},dQe=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:_O,n;n=e.next(),!n.done;)t=t*MQe+n.value|0;return t},bO=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:_O)*MQe+e|0},xO=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vO;return(t<<5)+t+e|0},NQe=function(e,t){return e*2097152+t},SO=function(e){return e[0]*2097152+e[1]},CO=function(e,t){return[bO(e[0],t[0]),xO(e[1],t[1])]},wO=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return yO({next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},LO=function(e){e.splice(0,e.length)},GQe=function(e,t){for(var n=0;n`u`?`undefined`:kE(Set))===VO?KQe:Set,UO=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!JZe(e)){AO(`An element must have a core reference and parameters set`);return}var r=t.group;if(r??=t.data&&t.data.source!=null&&t.data.target!=null?`edges`:`nodes`,r!==`nodes`&&r!==`edges`){AO("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0||!!t.grabbable,pannable:t.pannable===void 0?r===`edges`:!!t.pannable,active:!1,classes:new HO,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.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??(i.position.x=0),i.position.y??(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var l=[];ID(t.classes)?l=t.classes:PD(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,d=l.length;u0;){var S=v.pop(),C=g(S),w=S.id();if(f[w]=C,C!==1/0)for(var T=S.neighborhood().intersect(m),E=0;E0)for(n.unshift(t);d[i];){var a=d[i];n.unshift(a.edge),n.unshift(a.node),r=a.node,i=r.id()}return o.spawn(n)}}}},t$e={kruskal:function(e){e||=function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=Array(i),o=n,s=function(e){for(var t=0;t0;){if(x(),C++,b===u){for(var w=[],T=i,E=u,D=_[E];w.unshift(T),D!=null&&w.unshift(D),T=g[E],T!=null;)E=T.id(),D=_[E];return{found:!0,distance:d[b],path:this.spawn(w),steps:C}}p[b]=!0;for(var O=y._private.edges,k=0;kE&&(m[T]=E,_[T]=w,v[T]=b),!i){var D=w*u+C;!i&&m[D]>E&&(m[D]=E,_[D]=C,v[D]=b)}}}for(var O=0;O1&&arguments[1]!==void 0?arguments[1]:a,r=y(e),i=[],o=r;;){if(o==null)return t.spawn();var l=v(o),u=l.edge,d=l.pred;if(i.unshift(o[0]),o.same(n)&&i.length>0)break;u!=null&&i.unshift(u),o=d}return s.spawn(i)},S=0;S=0;u--){var d=l[u],f=d[1],p=d[2];(t[f]===o&&t[p]===s||t[f]===s&&t[p]===o)&&l.splice(u,1)}for(var m=0;mr;)t=s$e(Math.floor(Math.random()*t.length),e,t),n--;return t},c$e={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,a=r.length,o=Math.ceil((Math.log(i)/Math.LN2)**2),s=Math.floor(i/o$e);if(i<2){AO(`At least 2 nodes are required for Karger-Stein algorithm`);return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,i=0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];a?isFinite(l)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var u=e.length,d=Math.floor(u/2);return u%2==0?(e[d-1+o]+e[d+o])/2:e[d+1+o]},h$e=function(e,t){return t===0?e:h$e(t,e%t)},g$e=function(e){for(var t=e[0],n=0;n0&&(t=h$e(t,e[n]));else return 0;return t},_$e=function(e){return Math.PI*e/180},ZO=function(e,t){return Math.atan2(t,e)-Math.PI/2},QO=Math.log2||function(e){return Math.log(e)/Math.log(2)},v$e=function(e){return e>0?1:e<0?-1:0},$O=function(e,t){return Math.sqrt(ek(e,t))},ek=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},y$e=function(e){for(var t=e.length,n=0,r=0;r=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}}},x$e=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},ak=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},S$e=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},C$e=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),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},ok=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},sk=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,i,a;if(t.length===1)n=r=i=a=t[0];else if(t.length===2)n=i=t[0],a=r=t[1];else if(t.length===4){var o=DE(t,4);n=o[0],r=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=r,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},w$e=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},T$e=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},ck=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},lk=function(e,t){return ck(e,t.x,t.y)},E$e=function(e,t){return ck(e,t.x1,t.y1)&&ck(e,t.x2,t.y2)},uk=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)},D$e=function(e,t,n,r,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:`auto`,l=s===`auto`?Ek(i,a):s,u=i/2,d=a/2;l=Math.min(l,u,d);var f=l!==u,p=l!==d,m;if(f){var h=n-u+l-o,g=r-d-o;if(m=yk(e,t,n,r,h,g,n+u-l+o,g,!1),m.length>0)return m}if(p){var _=n+u+o;if(m=yk(e,t,n,r,_,r-d+l-o,_,r+d-l+o,!1),m.length>0)return m}if(f){var v=n-u+l-o,y=r+d+o;if(m=yk(e,t,n,r,v,y,n+u-l+o,y,!1),m.length>0)return m}if(p){var b=n-u-o;if(m=yk(e,t,n,r,b,r-d+l-o,b,r+d-l+o,!1),m.length>0)return m}var x,S=n-u+l,C=r-d+l;if(x=vk(e,t,n,r,S,C,l+o),x.length>0&&x[0]<=S&&x[1]<=C)return[x[0],x[1]];var w=n+u-l,T=r-d+l;if(x=vk(e,t,n,r,w,T,l+o),x.length>0&&x[0]>=w&&x[1]<=T)return[x[0],x[1]];var E=n+u-l,D=r+d-l;if(x=vk(e,t,n,r,E,D,l+o),x.length>0&&x[0]>=E&&x[1]>=D)return[x[0],x[1]];var O=n-u+l,k=r+d-l;return x=vk(e,t,n,r,O,k,l+o),x.length>0&&x[0]<=O&&x[1]>=k?[x[0],x[1]]:[]},dk=function(e,t,n,r,i,a,o){var s=o,l=Math.min(n,i),u=Math.max(n,i),d=Math.min(r,a),f=Math.max(r,a);return l-s<=e&&e<=u+s&&d-s<=t&&t<=f+s},fk=function(e,t,n,r,i,a,o,s,l){var u={x1:Math.min(n,o,i)-l,x2:Math.max(n,o,i)+l,y1:Math.min(r,s,a)-l,y2:Math.max(r,s,a)+l};return!(eu.x2||tu.y2)},O$e=function(e,t,n,r){n-=r;var i=t*t-4*e*n;if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},k$e=function(e,t,n,r,i){e===0&&(e=1e-5),t/=e,n/=e,r/=e;var a,o=(3*n-t*t)/9,s=-(27*r)+t*(9*n-t*t*2),l,u,d,f,p;if(s/=54,a=o*o*o+s*s,i[1]=0,f=t/3,a>0){u=s+Math.sqrt(a),u=u<0?-((-u)**(1/3)):u**(1/3),d=s-Math.sqrt(a),d=d<0?-((-d)**(1/3)):d**(1/3),i[0]=-f+u+d,f+=(u+d)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-d+u)/2,i[3]=f,i[5]=-f;return}if(i[5]=i[3]=0,a===0){p=s<0?-((-s)**(1/3)):s**(1/3),i[0]=-f+2*p,i[4]=i[2]=-(p+f);return}o=-o,l=o*o*o,l=Math.acos(s/Math.sqrt(l)),p=2*Math.sqrt(o),i[0]=-f+p*Math.cos(l/3),i[2]=-f+p*Math.cos((l+2*Math.PI)/3),i[4]=-f+p*Math.cos((l+4*Math.PI)/3)},A$e=function(e,t,n,r,i,a,o,s){var l=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,u=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,d=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,f=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,p=[];k$e(l,u,d,f,p);for(var m=1e-7,h=[],g=0;g<6;g+=2)Math.abs(p[g+1])=0&&p[g]<=1&&h.push(p[g]);h.push(1),h.push(0);for(var _=-1,v,y,b,x=0;x=0?b<_&&(_=b):_=b;return _},pk=function(e,t,n,r,i,a){var o=[e-n,t-r],s=[i-n,a-r],l=s[0]*s[0]+s[1]*s[1],u=o[0]*o[0]+o[1]*o[1],d=o[0]*s[0]+o[1]*s[1],f=d*d/l;return d<0?u:f>l?(e-i)*(e-i)+(t-a)*(t-a):u-f},mk=function(e,t,n){for(var r,i,a,o,s,l=0,u=0;u=e&&e>=a||r<=e&&e<=a)s=(e-r)/(a-r)*(o-i)+i,s>t&&l++;else continue}return l%2!=0},hk=function(e,t,n,r,i,a,o,s,l){var u=Array(n.length),d;s[0]==null?d=s:(d=Math.atan(s[1]/s[0]),s[0]<0?d+=Math.PI/2:d=-d-Math.PI/2);for(var f=Math.cos(-d),p=Math.sin(-d),m=0;m0?gk(M$e(u,-l)):u;return mk(e,t,h)},j$e=function(e,t,n,r,i,a,o,s){for(var l=Array(n.length*2),u=0;u=0&&g<=1&&v.push(g),_>=0&&_<=1&&v.push(_),v.length===0)return[];var y=v[0]*s[0]+e,b=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,b]:[y,b,v[1]*s[0]+e,v[1]*s[1]+t]:[y,b]},P$e=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},yk=function(e,t,n,r,i,a,o,s,l){var u=e-i,d=n-e,f=o-i,p=t-a,m=r-t,h=s-a,g=f*p-h*u,_=d*p-m*u,v=h*d-f*m;if(v!==0){var y=g/v,b=_/v,x=.001,S=0-x,C=1+x;return S<=y&&y<=C&&S<=b&&b<=C||l?[e+y*d,t+y*m]:[]}return g===0||_===0?P$e(e,n,o)===o?[o,s]:P$e(e,n,i)===i?[i,a]:P$e(i,o,n)===n?[n,r]:[]:[]},F$e=function(e,t,n,r,i){var a=[],o=r/2,s=i/2,l=t,u=n;a.push({x:l+o*e[0],y:u+s*e[1]});for(var d=1;d0?gk(M$e(d,-s)):d}else p=n;for(var h,g,_,v,y=0;y2){for(var m=[u[0],u[1]],h=(m[0]-e)**2+(m[1]-t)**2,g=1;gu&&(u=t)},get:function(e){return l[e]}},f=0;f0?y.edgesTo(v)[0]:v.edgesTo(y)[0];var x=r(b);v=v.id(),u[v]>u[h]+x&&(u[v]=u[h]+x,f.nodes.indexOf(v)<0?f.push(v):f.updateItem(v),l[v]=0,n[v]=[]),u[v]==u[h]+x&&(l[v]=l[v]+l[h],n[v].push(h))}else for(var S=0;S0;){for(var E=t.pop(),D=0;D0&&o.push(n[s]);o.length!==0&&i.push(r.collection(o))}return i},Nk=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:$$e,o=r,s,l,u=0;u=2?Lk(e,t,n,0,n1e,Ik):Lk(e,t,n,0,t1e)},squaredEuclidean:function(e,t,n){return Lk(e,t,n,0,n1e)},manhattan:function(e,t,n){return Lk(e,t,n,0,t1e)},max:function(e,t,n){return Lk(e,t,n,-1/0,r1e)}},Rk[`squared-euclidean`]=Rk.squaredEuclidean,Rk.squaredeuclidean=Rk.squaredEuclidean,i1e=FO({k:2,m:2,sensitivityThreshold:1e-4,distance:`euclidean`,maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),a1e=function(e){return i1e(e)},zk=function(e,t,n,r,i){var a=i===`kMedoids`?function(e){return r[e](n)}:function(e){return n[e]},o=function(e){return r[e](t)},s=n,l=t;return LE(e,r.length,a,o,s,l)},o1e=function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,l=0;ln)return!1;return!0},c1e=function(e,t,n){for(var r=0;ro&&(o=t[l][u],s=u);i[s].push(e[l])}for(var d=0;d=i.threshold||i.mode===`dendrogram`&&e.length===1)return!1;var m=t[a],h=t[r[a]],g=i.mode===`dendrogram`?{left:m,right:h,key:m.key}:{value:m.value.concat(h.value),key:m.key};e[m.index]=g,e.splice(h.index,1),t[m.key]=g;for(var _=0;_n[h.key][v.key]&&(s=n[h.key][v.key])):i.linkage===`max`?(s=n[m.key][v.key],n[m.key][v.key]0&&r.push(i);return r},A1e=function(e,t,n){for(var r=[],i=0;io&&(a=l,o=t[i*e+l])}a>0&&r.push(a)}for(var u=0;ul&&(s=u,l=d)}n[i]=a[s]}return r=A1e(e,t,n),r},M1e=function(e){for(var t=this.cy(),n=this.nodes(),r=E1e(e),i={},a=0;a=D?(O=D,D=A,k=j):A>O&&(O=A);for(var M=0;M0);C[T%r.minIterations*o+ae]=oe,ie+=oe}if(ie>0&&(T>=r.minIterations-1||T==r.maxIterations-1)){for(var se=0,ce=0;ce1||i>1)&&(o=!0),d[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&d[t].push(e.id())})}else f[t]=[void 0,e.target().id()]}):a.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(s?l?o=!0:l=t:s=t),d[t]=[],e.connectedEdges().forEach(function(e){return d[t].push(e.id())})):f[t]=[e.source().id(),e.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(l&&s){if(i){if(u&&l!=u)return p;u=l}else if(u&&l!=u&&s!=u)return p;else u||=l}else u||=a[0].id();var m=function(e){for(var t=e,n=[e],r,a,o;d[t].length;)r=d[t].shift(),a=f[r][0],o=f[r][1],t==o?!i&&t!=a&&(d[a]=d[a].filter(function(e){return e!=r}),t=a):(d[o]=d[o].filter(function(e){return e!=r}),t=o),n.unshift(r),n.unshift(t);return n},h=[],g=[];for(g=m(u);g.length!=1;)d[g[0]].length==0?(h.unshift(a.getElementById(g.shift())),h.unshift(a.getElementById(g.shift()))):g=m(g.shift()).concat(g);for(var _ in h.unshift(a.getElementById(g.shift())),d)if(d[_].length)return p;return p.found=!0,p.trail=this.spawn(h,!0),p}},Gk=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},s=function(n,r){for(var o=a.length-1,s=[],l=e.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter(function(e){return e.isLoop()})):l.merge(i)})}),i.push(l)},l=function(u,d,f){u===f&&(r+=1),t[d]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var m,h,g,_;p.forEach(function(e){m=e.source().id(),h=e.target().id(),g=m===d?h:m,g!==f&&(_=e.id(),o[_]||(o[_]=!0,a.push({x:d,y:g,edge:e})),g in t?t[d].low=Math.min(t[d].low,t[g].id):(l(u,g,d),t[d].low=Math.min(t[d].low,t[g].low),t[d].id<=t[g].low&&(t[d].cutVertex=!0,s(d,g))))})}};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,l(n,n),t[n].cutVertex=r>1)}});var u=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(u),components:i}},I1e={hopcroftTarjanBiconnected:Gk,htbc:Gk,htb:Gk,hopcroftTarjanBiconnectedComponents:Gk},Kk=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var u=i.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var d=l.edgesWith(l),f=l.merge(d);r.push(f),a=a.difference(f)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||o(n)}}),{cut:a,components:r}},L1e={tarjanStronglyConnected:Kk,tsc:Kk,tscc:Kk,tarjanStronglyConnectedComponents:Kk},qk={},[WO,e$e,t$e,r$e,KO,a$e,c$e,B$e,Ok,kk,W$e,Q$e,_1e,w1e,N1e,F1e,I1e,L1e].forEach(function(e){eO(qk,e)}),Jk=0,R1e=1,Yk=2,Xk=function(e){if(!(this instanceof Xk))return new Xk(e);this.id=`Thenable/1.0.7`,this.state=Jk,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))},Xk.prototype={fulfill:function(e){return Zk(this,R1e,`fulfillValue`,e)},reject:function(e){return Zk(this,Yk,`rejectReason`,e)},then:function(e,t){var n=this,r=new Xk;return n.onFulfilled.push(B1e(e,r,`fulfill`)),n.onRejected.push(B1e(t,r,`reject`)),z1e(n),r.proxy}},Zk=function(e,t,n,r){return e.state===Jk&&(e.state=t,e[n]=r,z1e(e)),e},z1e=function(e){e.state===R1e?Qk(e,`onFulfilled`,e.fulfillValue):e.state===Yk&&Qk(e,`onRejected`,e.rejectReason)},Qk=function(e,t,n){if(e[t].length!==0){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0}},clearQueue:function(){return function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n0&&this.spawn(r).updateStyle().emit(`class`),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){ID(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit(`class`),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}},m2e.className=m2e.classNames=m2e.classes,MA={metaChar:`[\\!\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\\`\\{\\|\\}\\~]`,comparatorOp:`=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=`,boolOp:`\\?|\\!|\\^`,string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:qD,meta:`degree|indegree|outdegree`,separator:`\\s*,\\s*`,descendant:`\\s+`,child:`\\s+>\\s+`,subject:`\\$`,group:`node|edge|\\*`,directedEdge:`\\s+->\\s+`,undirectedEdge:`\\s+<->\\s+`},MA.variable=`(?:[\\w-.]|(?:\\\\`+MA.metaChar+`))+`,MA.className=`(?:[\\w-]|(?:\\\\`+MA.metaChar+`))+`,MA.value=MA.string+`|`+MA.number,MA.id=MA.variable,(function(){for(var e=MA.comparatorOp.split(`|`),t,n=0;n=0)&&t!==`=`&&(MA.comparatorOp+=`|\\!`+t)})(),NA=function(){return{checks:[]}},PA={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},h2e=[{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(e,t){return $D(e.selector,t.selector)}),g2e=function(){for(var e={},t,n=0;n0&&u.edgeCount>0)return jO("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return jO("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&jO("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},toString:function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(e){return e??``},t=function(t){return PD(t)?`"`+t+`"`:e(t)},n=function(e){return` `+e+` `},r=function(r,a){var o=r.type,s=r.value;switch(o){case PA.GROUP:var l=e(s);return l.substring(0,l.length-1);case PA.DATA_COMPARE:var u=r.field,d=r.operator;return`[`+u+n(e(d))+t(s)+`]`;case PA.DATA_BOOL:var f=r.operator,p=r.field;return`[`+e(f)+p+`]`;case PA.DATA_EXIST:return`[`+r.field+`]`;case PA.META_COMPARE:var m=r.operator;return`[[`+r.field+n(e(m))+t(s)+`]]`;case PA.STATE:return s;case PA.ID:return`#`+s;case PA.CLASS:return`.`+s;case PA.PARENT:case PA.CHILD:return i(r.parent,a)+n(`>`)+i(r.child,a);case PA.ANCESTOR:case PA.DESCENDANT:return i(r.ancestor,a)+` `+i(r.descendant,a);case PA.COMPOUND_SPLIT:var h=i(r.left,a),g=i(r.subject,a),_=i(r.right,a);return h+(h.length>0?` `:``)+g+_;case PA.TRUE:return``}},i=function(e,t){return e.checks.reduce(function(n,i,a){return n+(t===e&&a===0?`$`:``)+r(i,t)},``)},a=``,o=0;o1&&o=0&&(t=t.replace(`!`,``),d=!0),t.indexOf(`@`)>=0&&(t=t.replace(`@`,``),u=!0),(i||o||u)&&(s=!i&&!a?``:``+e,l=``+n),u&&(e=s=s.toLowerCase(),n=l=l.toLowerCase()),t){case`*=`:r=s.indexOf(l)>=0;break;case`$=`:r=s.indexOf(l,s.length-l.length)>=0;break;case`^=`:r=s.indexOf(l)===0;break;case`=`:r=e===n;break;case`>`:f=!0,r=e>n;break;case`>=`:f=!0,r=e>=n;break;case`<`:f=!0,r=e1&&arguments[1]!==void 0?arguments[1]:!0;return ZE(this,e,t,NXe)},WA.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ZE(this,e,t,QE)},WA.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ZE(this,e,t,PXe)},WA.ancestors=WA.parents,O2e=k2e={data:jA.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:jA.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:jA.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:jA.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),rscratch:jA.data({field:`rscratch`,allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:jA.removeData({field:`rscratch`,triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},O2e.attr=O2e.data,O2e.removeAttr=O2e.removeData,A2e=k2e,GA={},eO(GA,{degree:FXe(function(e,t){return t.source().same(t.target())?2:1}),indegree:FXe(function(e,t){return+!!t.target().same(e)}),outdegree:FXe(function(e,t){return+!!t.source().same(e)})}),eO(GA,{minDegree:$E(`degree`,function(e,t){return et}),minIndegree:$E(`indegree`,function(e,t){return et}),minOutdegree:$E(`outdegree`,function(e,t){return et})}),eO(GA,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,f=d;d&&(u=u[0]);var p=f?u.position():{x:0,y:0};t===void 0?i!==void 0&&l.position({x:i.x+p.x,y:i.y+p.y}):l.position(e,t+p[e])}else{var m=n.position(),h=o?n.parent():null,g=h&&h.length>0,_=g;g&&(h=h[0]);var v=_?h.position():{x:0,y:0};return i={x:m.x-v.x,y:m.y-v.y},e===void 0?i:i[e]}}else if(!a)return;return this}},KA.modelPosition=KA.point=KA.position,KA.modelPositions=KA.points=KA.positions,KA.renderedPoint=KA.renderedPosition,KA.relativePoint=KA.relativePosition,P2e=j2e,qA=function(e){switch(e){case`left`:case`right-inside`:return`left`;case`right`:case`left-inside`:return`right`;default:return`center`}},JA=function(e){switch(e){case`top`:case`bottom-inside`:return`top`;case`bottom`:case`top-inside`:return`bottom`;default:return`center`}},F2e=function(e){switch(e){case`left`:return`right`;case`right`:return`left`;case`left-inside`:return`left`;case`right-inside`:return`right`;default:return`center`}},YA=XA={},XA.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},XA.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify(`bounds`)}}),this},XA.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;function n(e){if(!e.isParent())return;var t=e._private,n=e.children(),r=e.pstyle(`compound-sizing-wrt-labels`).value===`include`,i={width:{val:e.pstyle(`min-width`).pfValue,left:e.pstyle(`min-width-bias-left`),right:e.pstyle(`min-width-bias-right`)},height:{val:e.pstyle(`min-height`).pfValue,top:e.pstyle(`min-height-bias-top`),bottom:e.pstyle(`min-height-bias-bottom`)}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;(a.w===0||a.h===0)&&(a={w:e.pstyle(`width`).pfValue,h:e.pstyle(`height`).pfValue},a.x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);function s(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}function l(e,t,n,r){if(n.units===`%`)switch(r){case`width`:return e>0?n.pfValue*e:0;case`height`:return t>0?n.pfValue*t:0;case`average`:return e>0&&t>0?n.pfValue*(e+t)/2:0;case`min`:return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case`max`:return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}else if(n.units===`px`)return n.pfValue;else return 0}var u=i.width.left.value;i.width.left.units===`px`&&i.width.val>0&&(u=u*100/i.width.val);var d=i.width.right.value;i.width.right.units===`px`&&i.width.val>0&&(d=d*100/i.width.val);var f=i.height.top.value;i.height.top.units===`px`&&i.height.val>0&&(f=f*100/i.height.val);var p=i.height.bottom.value;i.height.bottom.units===`px`&&i.height.val>0&&(p=p*100/i.height.val);var m=s(i.width.val-a.w,u,d),h=m.biasDiff,g=m.biasComplementDiff,_=s(i.height.val-a.h,f,p),v=_.biasDiff,y=_.biasComplementDiff;t.autoPadding=l(a.w,a.h,e.pstyle(`padding`),e.pstyle(`padding-relative-to`).value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-h+a.x1+a.x2+g)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-v+a.y1+a.y2+y)/2}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},$A=function(e,t){return t==null?e:QA(e,t.x1,t.y1,t.x2,t.y2)},ej=function(e,t,n){return RO(e,t,n)},tj=function(e,t,n){if(!t.cy().headless()){var r=t._private,i=r.rstyle,a=i.arrowWidth/2,o=t.pstyle(n+`-arrow-shape`).value,s,l;if(o!==`none`){n===`source`?(s=i.srcX,l=i.srcY):n===`target`?(s=i.tgtX,l=i.tgtY):(s=i.midX,l=i.midY);var u=r.arrowBounds=r.arrowBounds||{},d=u[n]=u[n]||{};d.x1=s-a,d.y1=l-a,d.x2=s+a,d.y2=l+a,d.w=d.x2-d.x1,d.h=d.y2-d.y1,ok(d,1),QA(e,d.x1,d.y1,d.x2,d.y2)}}},I2e=function(e,t,n){if(!t.cy().headless()){var r=n?n+`-`:``,i=t._private,a=i.rstyle;if(t.pstyle(r+`label`).strValue){var o=t.pstyle(`text-halign`),s=t.pstyle(`text-valign`),l=ej(a,`labelWidth`,n),u=ej(a,`labelHeight`,n),d=ej(a,`labelX`,n),f=ej(a,`labelY`,n),p=t.pstyle(r+`text-margin-x`).pfValue,m=t.pstyle(r+`text-margin-y`).pfValue,h=t.isEdge(),g=t.pstyle(r+`text-rotation`),_=t.pstyle(`text-outline-width`).pfValue,v=t.pstyle(`text-border-width`).pfValue/2,y=t.pstyle(`text-background-padding`).pfValue,b=2,x=u,S=l,C=S/2,w=x/2,T,E,D,O;if(h)T=d-C,E=d+C,D=f-w,O=f+w;else{switch(qA(o.value)){case`left`:T=d-S,E=d;break;case`center`:T=d-C,E=d+C;break;case`right`:T=d,E=d+S}switch(JA(s.value)){case`top`:D=f-x,O=f;break;case`center`:D=f-w,O=f+w;break;case`bottom`:D=f,O=f+x}}var k=p-Math.max(_,v)-y-b,A=p+Math.max(_,v)+y+b,j=m-Math.max(_,v)-y-b,M=m+Math.max(_,v)+y+b;T+=k,E+=A,D+=j,O+=M;var ee=n||`main`,te=i.labelBounds,ne=te[ee]=te[ee]||{};ne.x1=T,ne.y1=D,ne.x2=E,ne.y2=O,ne.w=E-T,ne.h=O-D,ne.leftPad=k,ne.rightPad=A,ne.topPad=j,ne.botPad=M;var re=h&&g.strValue===`autorotate`,ie=g.pfValue!=null&&g.pfValue!==0;if(re||ie){var ae=re?ej(i.rstyle,`labelAngle`,n):g.pfValue,oe=Math.cos(ae),se=Math.sin(ae),ce=(T+E)/2,le=(D+O)/2;if(!h){switch(qA(o.value)){case`left`:ce=E;break;case`right`:ce=T}switch(JA(s.value)){case`top`:le=O;break;case`bottom`:le=D}}var ue=function(e,t){return e-=ce,t-=le,{x:e*oe-t*se+ce,y:e*se+t*oe+le}},de=ue(T,D),fe=ue(T,O),pe=ue(E,D),me=ue(E,O);T=Math.min(de.x,fe.x,pe.x,me.x),E=Math.max(de.x,fe.x,pe.x,me.x),D=Math.min(de.y,fe.y,pe.y,me.y),O=Math.max(de.y,fe.y,pe.y,me.y)}var he=ee+`Rot`,ge=te[he]=te[he]||{};ge.x1=T,ge.y1=D,ge.x2=E,ge.y2=O,ge.w=E-T,ge.h=O-D,QA(e,T,D,E,O),QA(i.labelBounds.all,T,D,E,O)}return e}},L2e=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`outline-opacity`).value,r=t.pstyle(`outline-width`).value+t.pstyle(`outline-offset`).value;R2e(e,t,n,r,`outside`,r/2)}},R2e=function(e,t,n,r,i,a){if(!(n===0||r<=0||i===`inside`)){var o=t.cy().renderer(),s=o.nodeShapes[o.getNodeShape(t)];if(s){var l=t.position(),u=l.x,d=l.y,f=t.width(),p=t.height();s.hasMiterBounds?(i===`center`&&(r/=2),$A(e,s.miterBounds(u,d,f,p,r))):a!=null&&a>0&&sk(e,[a,a,a,a])}}},z2e=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`border-opacity`).value,r=t.pstyle(`border-width`).pfValue,i=t.pstyle(`border-position`).value;R2e(e,t,n,r,i)}},B2e=function(e,t){var n=e._private.cy,r=n.styleEnabled(),i=n.headless(),a=ik(),o=e._private,s=e.isNode(),l=e.isEdge(),u,d,f,p,m,h,g=o.rstyle,_=s&&r?e.pstyle(`bounds-expansion`).pfValue:[0],v=function(e){return e.pstyle(`display`).value!==`none`},y=!r||v(e)&&(!l||v(e.source())&&v(e.target()));if(y){var b=0,x=0;r&&t.includeOverlays&&(b=e.pstyle(`overlay-opacity`).value,b!==0&&(x=e.pstyle(`overlay-padding`).value));var S=0,C=0;r&&t.includeUnderlays&&(S=e.pstyle(`underlay-opacity`).value,S!==0&&(C=e.pstyle(`underlay-padding`).value));var w=Math.max(x,C),T=0,E=0;if(r&&(T=e.pstyle(`width`).pfValue,E=T/2),s&&t.includeNodes){var D=e.position();m=D.x,h=D.y;var O=e.outerWidth()/2,k=e.outerHeight()/2;u=m-O,d=m+O,f=h-k,p=h+k,QA(a,u,f,d,p),r&&L2e(a,e),r&&t.includeOutlines&&!i&&L2e(a,e),r&&z2e(a,e)}else if(l&&t.includeEdges){if(r&&!i){var A=e.pstyle(`curve-style`).strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),d=Math.max(g.srcX,g.midX,g.tgtX),f=Math.min(g.srcY,g.midY,g.tgtY),p=Math.max(g.srcY,g.midY,g.tgtY),u-=E,d+=E,f-=E,p+=E,QA(a,u,f,d,p),A===`haystack`){var j=g.haystackPts;if(j&&j.length===2){if(u=j[0].x,f=j[0].y,d=j[1].x,p=j[1].y,u>d){var M=u;u=d,d=M}if(f>p){var ee=f;f=p,p=ee}QA(a,u-E,f-E,d+E,p+E)}}else if(A===`bezier`||A===`unbundled-bezier`||KD(A,`segments`)||KD(A,`taxi`)){var te;switch(A){case`bezier`:case`unbundled-bezier`:te=g.bezierPts;break;case`segments`:case`taxi`:case`round-segments`:case`round-taxi`:te=g.linePts}if(te!=null)for(var ne=0;ned){var oe=u;u=d,d=oe}if(f>p){var se=f;f=p,p=se}u-=E,d+=E,f-=E,p+=E,QA(a,u,f,d,p)}}if(r&&t.includeEdges&&l&&(tj(a,e,`mid-source`),tj(a,e,`mid-target`),tj(a,e,`source`),tj(a,e,`target`)),r&&e.pstyle(`ghost`).value===`yes`){var ce=e.pstyle(`ghost-offset-x`).pfValue,le=e.pstyle(`ghost-offset-y`).pfValue;QA(a,a.x1+ce,a.y1+le,a.x2+ce,a.y2+le)}var ue=o.bodyBounds=o.bodyBounds||{};w$e(ue,a),sk(ue,_),ok(ue,1),r&&(u=a.x1,d=a.x2,f=a.y1,p=a.y2,QA(a,u-w,f-w,d+w,p+w));var de=o.overlayBounds=o.overlayBounds||{};w$e(de,a),sk(de,_),ok(de,1);var fe=o.labelBounds=o.labelBounds||{};fe.all==null?fe.all=ik():ak(fe.all),r&&t.includeLabels&&(t.includeMainLabels&&I2e(a,e,null),l&&(t.includeSourceLabels&&I2e(a,e,`source`),t.includeTargetLabels&&I2e(a,e,`target`)))}return a.x1=ZA(a.x1),a.y1=ZA(a.y1),a.x2=ZA(a.x2),a.y2=ZA(a.y2),a.w=ZA(a.x2-a.x1),a.h=ZA(a.y2-a.y1),a.w>0&&a.h>0&&y&&(sk(a,_),ok(a,1)),a},V2e=function(e){var t=0,n=function(e){return+!!e<=0;s--)o(s);return this},cj.removeAllListeners=function(){return this.removeListener(`*`)},cj.emit=cj.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,ID(t)||(t=[t]),lj(this,function(e,a){n!=null&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(){var n=r[s];if(n.type===a.type&&(!n.namespace||n.namespace===a.namespace||n.namespace===e4e)&&e.eventMatches(e.context,n,a)){var i=[a];t!=null&&GQe(i,t),e.beforeEmit(e.context,n,a),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var o=e.callbackContext(e.context,n,a),l=n.callback.apply(o,i);e.afterEmit(e.context,n,a),l===!1&&(a.stopPropagation(),a.preventDefault())}},s=0;s1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&PD(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;in&&(n=s,r=o)}return{value:n,ele:r}},min:function(e,t){for(var n=1/0,r,i=this,a=0;a=0&&i`u`?`undefined`:kE(Symbol))!=e&&kE(Symbol.iterator)!=e&&(fj[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return EYe({next:function(){return n1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n)return n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n)),n._private.style[e]??(t?r.style().getDefaultProperty(e):null)},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue===void 0?n.value:n.pfValue}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(LD(e)){var a=e;i.applyBypass(this,a,r),this.emitAndNotify(`style`)}else if(PD(e)){if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}i.applyBypass(this,e,t,r),this.emitAndNotify(`style`)}else if(e===void 0){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(e===void 0)for(var a=0;a0&&t.push(d[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},`neighborhood`),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),gj.neighbourhood=gj.neighborhood,gj.closedNeighbourhood=gj.closedNeighborhood,gj.openNeighbourhood=gj.openNeighborhood,eO(gj,{source:UA(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},`source`),target:UA(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},`target`),sources:BXe({attr:`source`}),targets:BXe({attr:`target`})}),eO(gj,{edgesWith:UA(VXe(),`edgesWith`),edgesTo:UA(VXe({thisIsSrc:!0}),`edgesTo`)}),eO(gj,{connectedEdges:UA(function(e){for(var t=[],n=this,r=0;r0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),gj.componentsOf=gj.components,_j=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===void 0){AO(`A collection must have a reference to the core`);return}var i=new BO,a=!1;if(!t)t=[];else if(t.length>0&&LD(t[0])&&!VD(t[0])){a=!0;for(var o=[],s=new HO,l=0,u=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=n.cy(),i=r._private,a=[],o=[],s,l=0,u=n.length;l0){for(var ne=s.length===n.length?n:new _j(r,s),re=0;re0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=[],i={},a=n._private.cy;function o(e){for(var t=e._private.edges,n=0;n0&&(e?D.emitAndNotify(`remove`):t&&D.emit(`remove`));for(var O=0;Ol&&Math.abs(p.v)>l;);return d?function(e){return o[e*(o.length-1)|0]}:s}}(),bj=function(e,t,n,r){var i=UXe(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},xj={linear:function(e,t,n){return e+(t-e)*n},ease:bj(.25,.1,.25,1),"ease-in":bj(.42,0,1,1),"ease-out":bj(0,0,.58,1),"ease-in-out":bj(.42,0,.58,1),"ease-in-sine":bj(.47,0,.745,.715),"ease-out-sine":bj(.39,.575,.565,1),"ease-in-out-sine":bj(.445,.05,.55,.95),"ease-in-quad":bj(.55,.085,.68,.53),"ease-out-quad":bj(.25,.46,.45,.94),"ease-in-out-quad":bj(.455,.03,.515,.955),"ease-in-cubic":bj(.55,.055,.675,.19),"ease-out-cubic":bj(.215,.61,.355,1),"ease-in-out-cubic":bj(.645,.045,.355,1),"ease-in-quart":bj(.895,.03,.685,.22),"ease-out-quart":bj(.165,.84,.44,1),"ease-in-out-quart":bj(.77,0,.175,1),"ease-in-quint":bj(.755,.05,.855,.06),"ease-out-quint":bj(.23,1,.32,1),"ease-in-out-quint":bj(.86,0,.07,1),"ease-in-expo":bj(.95,.05,.795,.035),"ease-out-expo":bj(.19,1,.22,1),"ease-in-out-expo":bj(1,0,0,1),"ease-in-circ":bj(.6,.04,.98,.335),"ease-out-circ":bj(.075,.82,.165,1),"ease-in-out-circ":bj(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return xj.linear;var r=g4e(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":bj},_4e={animate:jA.animate(),animation:jA.animation(),animated:jA.animated(),clearQueue:jA.clearQueue(),delay:jA.delay(),delayAnimation:jA.delayAnimation(),stop:jA.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&hO(function(n){JXe(n,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(t,n){JXe(n,e)},n.beforeRenderPriorities.animations):t()}},v4e={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return r==null||e!==n.target&&VD(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier==null?e:n.target}},Sj=function(e){return PD(e)?new BA(e):e},y4e={createEmitter:function(){var e=this._private;return e.emitter||=new nD(v4e,this),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,Sj(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,Sj(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,Sj(t),n),this},once:function(e,t,n){return this.emitter().one(e,Sj(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}},jA.eventAliasesOn(y4e),b4e={png:function(e){var t=this._private.renderer;return e||={},t.png(e)},jpg:function(e){var t=this._private.renderer;return e||={},e.bg=e.bg||`#fff`,t.jpg(e)}},b4e.jpeg=b4e.jpg,Cj={layout:function(e){var t=this;if(e==null){AO(`Layout options must be specified to make a layout`);return}if(e.name==null){AO("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension(`layout`,n);if(r==null){AO("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i=PD(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles;return new r(eO({},e,{cy:t,eles:i}))}},Cj.createLayout=Cj.makeLayout=Cj.layout,x4e={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.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??=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 t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on(`render`,e)},offRender:function(e){return this.off(`render`,e)}},C4e.invalidateDimensions=C4e.resize,wj={collection:function(e,t){return PD(e)?this.$(e):BD(e)?e.collection():ID(e)?(t||={},new _j(this,e,t.unique,t.removed)):new _j(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}},wj.elements=wj.filter=wj.$,Tj={},w4e=`t`,T4e=`f`,Tj.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(p||f&&m){var h=void 0;p&&m||p?h=u.properties:m&&(h=u.mappedProperties);for(var g=0;g1&&(x=1),s.color){var C=r.valueMin[0],w=r.valueMax[0],T=r.valueMin[1],E=r.valueMax[1],D=r.valueMin[2],O=r.valueMax[2],k=r.valueMin[3]==null?1:r.valueMin[3],A=r.valueMax[3]==null?1:r.valueMax[3],j=[Math.round(C+(w-C)*x),Math.round(T+(E-T)*x),Math.round(D+(O-D)*x),Math.round(k+(A-k)*x)];a={bypass:r.bypass,name:r.name,value:j,strValue:`rgb(`+j[0]+`, `+j[1]+`, `+j[2]+`)`}}else if(s.number){var M=r.valueMin+(r.valueMax-r.valueMin)*x;a=this.parse(r.name,M,r.bypass,p)}else return!1;if(!a)return g(),!1;a.mapping=r,r=a;break;case o.data:for(var ee=r.field.split(`.`),te=f.data,ne=0;ne0&&a>0){for(var s={},l=!1,u=0;u0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle(`transition-timing-function`).value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify(`style`),r.transitioning=!1})}else r.transitioning&&=(this.removeBypasses(e,i),e.emitAndNotify(`style`),!1)},Tj.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);e.removed()||s!=null&&s(n,r,e)&&a(o)},Tj.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify(`zorder`,e)})},Tj.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},Tj.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},Tj.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},Tj.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)},Ej={},Ej.applyBypass=function(e,t,n,r){var i=this,a=[],o=!0;if(t===`*`||t===`**`){if(n!==void 0)for(var s=0;si.length?r.substr(i.length):``}function l(){a=a.length>o.length?a.substr(o.length):``}for(;!r.match(/^\s*$/);){var u=r.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){jO(`Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: `+r);break}i=u[0];var d=u[1];if(d!==`core`&&new BA(d).invalid){jO(`Skipping parsing of block: Invalid selector found in string stylesheet: `+d),s();continue}var f=u[2],p=!1;a=f;for(var m=[];!a.match(/^\s*$/);){var h=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!h){jO(`Skipping parsing of block: Invalid formatting of style property and value definitions found in:`+f),p=!0;break}o=h[0];var g=h[1],_=h[2];if(!t.properties[g]){jO(`Skipping property: Invalid property name in: `+o),l();continue}if(!n.parse(g,_)){jO(`Skipping property: Invalid property definition in: `+o),l();continue}m.push({name:g,val:_}),l()}if(p){s();break}n.selector(d);for(var v=0;v=7&&t[0]===`d`&&(d=new RegExp(s.data.regex).exec(t))){if(n)return!1;var p=s.data;return{name:e,value:d,strValue:``+t,mapped:p,field:d[1],bypass:n}}if(t.length>=10&&t[0]===`m`&&(f=new RegExp(s.mapData.regex).exec(t))){if(n||u.multiple)return!1;var m=s.mapData;if(!(u.color||u.number))return!1;var h=this.parse(e,f[4]);if(!h||h.mapped)return!1;var g=this.parse(e,f[5]);if(!g||g.mapped)return!1;if(h.pfValue===g.pfValue||h.strValue===g.strValue)return jO("`"+e+`: `+t+"` is not a valid mapper because the output range is zero; converting to `"+e+`: `+h.strValue+"`"),this.parse(e,h.strValue);if(u.color){var _=h.value,v=g.value;if(_[0]===v[0]&&_[1]===v[1]&&_[2]===v[2]&&(_[3]===v[3]||(_[3]==null||_[3]===1)&&(v[3]==null||v[3]===1)))return!1}return{name:e,value:f,strValue:``+t,mapped:m,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:g.value,bypass:n}}}if(u.multiple&&r!==`multiple`){var y=l?t.split(/\s+/):ID(t)?t:[t];if(u.evenMultiple&&y.length%2!=0)return null;for(var b=[],x=[],S=[],C=``,w=!1,T=0;T0?` `:``)+E.strValue}return u.validate&&!u.validate(b,x)?null:u.singleEnum&&w?b.length===1&&PD(b[0])?{name:e,value:b[0],strValue:b[0],bypass:n}:null:{name:e,value:b,pfValue:S,strValue:C,bypass:n,units:x}}var D=function(){for(var r=0;ru.max||u.strictMax&&t===u.max))return null;var M={name:e,value:t,strValue:``+t+(O||``),units:O,bypass:n};return M.pfValue=u.unitless||O!==`px`&&O!==`em`||O===`px`||!O?t:this.getEmSizeInPixels()*t,(O===`ms`||O===`s`)&&(M.pfValue=O===`ms`?t:1e3*t),(O===`deg`||O===`rad`)&&(M.pfValue=O===`rad`?t:_$e(t)),O===`%`&&(M.pfValue=t/100),M}if(u.propList){var ee=[],te=``+t;if(te!==`none`){for(var ne=te.split(/\s*,\s*|\s+/),re=0;re0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((a-2*t)/n.w,(o-2*t)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=t),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 t=this._private,n=t.pan,r=t.zoom,i,a,o=!1;if(t.zoomingEnabled||(o=!0),RD(e)?a=e:LD(e)&&(a=e.level,e.position==null?e.renderedPosition!=null&&(i=e.renderedPosition):i=u$e(e.position,r,n),i!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=at.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push(`zoom`))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;RD(l.x)&&(t.pan.x=l.x,o=!1),RD(l.y)&&(t.pan.y=l.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 t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit(`pan viewport`),this.notify(`viewport`)),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(PD(e)){var n=e;e=this.mutableElements().filter(n)}else BD(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),i=this.width(),a=this.height();return t=t===void 0?this._private.zoom:t,{x:(i-t*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?function(){var e=n.window().getComputedStyle(t),r=function(t){return parseFloat(e.getPropertyValue(t))};return{width:t.clientWidth-r(`padding-left`)-r(`padding-right`),height:t.clientHeight-r(`padding-top`)-r(`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,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}},Mj.centre=Mj.center,Mj.autolockNodes=Mj.autolock,Mj.autoungrabifyNodes=Mj.autoungrabify,j4e={data:jA.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeData:jA.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),scratch:jA.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:jA.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0})},j4e.attr=j4e.data,j4e.removeAttr=j4e.removeData,M4e=function(e){var t=this;e=eO({},e);var n=e.container;n&&!zD(n)&&zD(n[0])&&(n=n[0]);var r=n?n._cyreg:null;r||={},r&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=jD!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=eO({name:a?`grid`:`null`},o.layout),o.renderer=eO({name:a?`canvas`:`null`},o.renderer);var s=function(e,t,n){return t===void 0?n===void 0?e:n:t},l=this._private={container:n,ready:!1,options:o,elements:new _j(this),listeners:[],aniEles:new _j(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?a:o.styleEnabled,zoom:RD(o.zoom)?o.zoom:1,pan:{x:LD(o.pan)&&RD(o.pan.x)?o.pan.x:0,y:LD(o.pan)&&RD(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=function(e,t){if(e.some(QZe))return eA.all(e).then(t);t(e)};l.styleEnabled&&t.setStyle([]);var d=eO({},o,o.renderer);t.initRenderer(d);var f=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),e!=null&&(LD(e)||ID(e))&&t.add(e),t.one(`layoutready`,function(e){t.notifications(!0),t.emit(e),t.one(`load`,n),t.emitAndNotify(`load`)}).one(`layoutstop`,function(){t.one(`done`,r),t.emit(`done`)});var a=eO({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()};u([o.style,o.elements],function(e){var n=e[0],a=e[1];l.styleEnabled&&t.style().append(n),f(a,function(){t.startAnimationLoop(),l.ready=!0,FD(o.ready)&&t.on(`ready`,o.ready);for(var e=0;e0,s=!!e.boundingBox,l=ik(s?e.boundingBox:structuredClone(t.extent())),u;if(BD(e.roots))u=e.roots;else if(ID(e.roots)){for(var d=[],f=0;f0;){var j=A(),M=E(j,O);if(M)j.outgoers().filter(function(e){return e.isNode()&&n.has(e)}).forEach(k);else if(M===null){jO("Detected double maximal shift for node `"+j.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var ee=0;if(e.avoidOverlap)for(var te=0;te0&&v[0].length<=3?a/2:0),u=2*Math.PI/v[r].length*i;return r===0&&v[0].length===1&&(o=1),{x:me.x+o*Math.cos(u),y:me.y+o*Math.sin(u)}}var d=v[r].length,f=Math.max(d===1?0:s?(l.w-e.padding*2-he.w)/((e.grid?_e:d)-1):(l.w-e.padding*2-he.w)/((e.grid?_e:d)+1),ee);return{x:me.x+(i+1-(d+1)/2)*f,y:me.y+(r+1-(ce+1)/2)*ge}},ye={downward:0,leftward:90,upward:180,rightward:-90};return Object.keys(ye).indexOf(e.direction)===-1&&AO(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(ye).join(`, `)}`),n.nodes().layoutPositions(this,e,function(t){return UYe(ve(t),l,ye[e.direction])}),this},L4e={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,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},XXe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,a=r.nodes().not(`:parent`);t.sort&&(a=a.sort(t.sort));for(var o=ik(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=(t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),u,d=0,f=0;f1&&t.avoidOverlap){d*=1.75;var g=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),v=Math.sqrt(d*d/(g*g+_*_));u=Math.max(v,u)}return r.nodes().layoutPositions(this,t,function(e,n){var r=t.startAngle+n*l*(i?1:-1),a=u*Math.cos(r),o=u*Math.sin(r);return{x:s.x+a,y:s.y+o}}),this},R4e={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,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},ZXe.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,r=e.cy,i=t.eles,a=i.nodes().not(`:parent`),o=ik(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=[],u=0,d=0;d0&&Math.abs(v[0].value-b.value)>=g&&(v=[],_.push(v)),v.push(b)}var x=u+t.minNodeSpacing;if(!t.avoidOverlap){var S=_.length>0&&_[0].length>1,C=(Math.min(o.w,o.h)/2-x)/(_.length+S?1:0);x=Math.min(x,C)}for(var w=0,T=0;T<_.length;T++){var E=_[T],D=E.dTheta=(t.sweep===void 0?2*Math.PI-2*Math.PI/E.length:t.sweep)/Math.max(1,E.length-1);if(E.length>1&&t.avoidOverlap){var O=Math.cos(D)-Math.cos(0),k=Math.sin(D)-Math.sin(0),A=Math.sqrt(x*x/(O*O+k*k));w=Math.max(A,w)}E.r=w,w+=x}if(t.equidistant){for(var j=0,M=0,ee=0;ee<_.length;ee++){var te=_[ee].r-M;j=Math.max(j,te)}M=0;for(var ne=0;ne<_.length;ne++){var re=_[ne];ne===0&&(M=re.r),re.r=M,M+=j}}for(var ie={},ae=0;ae<_.length;ae++)for(var oe=_[ae],se=oe.dTheta,ce=oe.r,le=0;le=e.numIter||(q4e(r,e),r.temperature*=e.coolingFactor,r.temperature=e.animationThreshold&&a(),hO(d)):(n3e(r,e),s())};d()}else{for(;u;)u=o(l),l++;n3e(r,e),s()}return this},QXe.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit(`layoutstop`),this},QXe.prototype.destroy=function(){return this.thread&&this.thread.stop(),this},B4e=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=ik(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:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(w);for(var u=0;ur.count?0:r.graph},H4e=function(e,t,n,r){var i=r.graphSet[n];if(-10)var l=r.nodeOverlap*s,u=Math.sqrt(i*i+a*a),d=l*i/u,f=l*a/u;else var p=Z4e(e,i,a),m=Z4e(t,-1*i,-1*a),h=m.x-p.x,g=m.y-p.y,_=h*h+g*g,u=Math.sqrt(_),l=(e.nodeRepulsion+t.nodeRepulsion)/_,d=l*h/u,f=l*g/u;e.isLocked||(e.offsetX-=d,e.offsetY-=f),t.isLocked||(t.offsetX+=d,t.offsetY+=f)}},X4e=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},Z4e=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,l=a/o,u={};return t===0&&0n?(u.x=r,u.y=i+a/2,u):0t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=i-o*n/2/t,u):0=l)?(u.x=r+a*t/2/n,u.y=i+a/2,u):0>n&&(s<=-1*l||s>=l)?(u.x=r-a*t/2/n,u.y=i-a/2,u):u},Q4e=function(e,t){for(var n=0;nn){var g=t.gravity*p/h,_=t.gravity*m/h;f.offsetX+=g,f.offsetY+=_}}}}},$4e=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],l=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},t3e=function(e,t){var n=e.parentId;if(n!=null){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((r.maxX==null||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(r.minX==null||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(r.minY==null||e.minY-r.padTopg&&(p+=h+t.componentSpacing,f=0,m=0,h=0)}}},r3e={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,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},$Xe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(`:parent`);t.sort&&(i=i.sort(t.sort));var a=ik(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(a.h===0||a.w===0)r.nodes().layoutPositions(this,t,function(e){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),l=Math.round(s),u=Math.round(a.w/a.h*s),d=function(e){if(e==null)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},f=function(e){if(e==null)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},p=t.rows,m=t.cols==null?t.columns:t.cols;if(p!=null&&m!=null)l=p,u=m;else if(p!=null&&m==null)l=p,u=Math.ceil(o/l);else if(p==null&&m!=null)u=m,l=Math.ceil(o/u);else if(u*l>o){var h=d(),g=f();(h-1)*g>=o?d(h-1):(g-1)*h>=o&&f(g-1)}else for(;u*l=o?f(v+1):d(_+1)}var y=a.w/u,b=a.h/l;if(t.condense&&(y=0,b=0),t.avoidOverlap)for(var x=0;x=u&&(M=0,j++)},te={},ne=0;ne(b=pk(e,t,x[S],x[S+1],x[S+2],x[S+3])))return _(n,b),!0}else if(o.edgeType===`bezier`||o.edgeType===`multibezier`||o.edgeType===`self`||o.edgeType===`compound`){for(var x=o.allpts,S=0;S+5(b=A$e(e,t,x[S],x[S+1],x[S+2],x[S+3],x[S+4],x[S+5])))return _(n,b),!0}for(var g=g||r.source,y=y||r.target,C=i.getArrowWidth(l,f),w=[{name:`source`,x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:`target`,x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:`mid-source`,x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:`mid-target`,x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}],S=0;S0&&(v(g),v(y))}function b(e,t,n){return RO(e,t,n)}function x(n,r){var i=n._private,a=p,o=r?r+`-`:``;n.boundingBox();var s=i.labelBounds[r||`main`],l=n.pstyle(o+`label`).value;if(n.pstyle(`text-events`).strValue===`yes`&&l){var u=b(i.rscratch,`labelX`,r),d=b(i.rscratch,`labelY`,r),f=b(i.rscratch,`labelAngle`,r),m=n.pstyle(o+`text-margin-x`).pfValue,h=n.pstyle(o+`text-margin-y`).pfValue,g=s.x1-a-m,v=s.x2+a-m,y=s.y1-a-h,x=s.y2+a-h;if(f){var S=Math.cos(f),C=Math.sin(f),w=function(e,t){return e-=u,t-=d,{x:e*S-t*C+u,y:e*C+t*S+d}},T=w(g,y),E=w(g,x),D=w(v,y),O=w(v,x);if(mk(e,t,[T.x+m,T.y+h,D.x+m,D.y+h,O.x+m,O.y+h,E.x+m,E.y+h]))return _(n),!0}else if(ck(s,e,t))return _(n),!0}}for(var S=o.length-1;S>=0;S--){var C=o[S];C.isNode()?v(C)||x(C):y(C)||x(C)||x(C,`source`)||x(C,`target`)}return s},Rj.getAllInBox=function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,a=2/this.cy.zoom(),o=[],s=Math.min(e,n),l=Math.max(e,n),u=Math.min(t,r),d=Math.max(t,r);e=s,n=l,t=u,r=d;var f=ik({x1:e,y1:t,x2:n,y2:r}),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}],m=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function h(e,t,n){return RO(e,t,n)}function g(e,t){var n=e._private,r=a,i=``;e.boundingBox();var o=n.labelBounds.main;if(!o)return null;var s=h(n.rscratch,`labelX`,t),l=h(n.rscratch,`labelY`,t),u=h(n.rscratch,`labelAngle`,t),d=e.pstyle(i+`text-margin-x`).pfValue,f=e.pstyle(i+`text-margin-y`).pfValue,p=o.x1-r-d,m=o.x2+r-d,g=o.y1-r-f,_=o.y2+r-f;if(u){var v=Math.cos(u),y=Math.sin(u),b=function(e,t){return e-=s,t-=l,{x:e*v-t*y+s,y:e*y+t*v+l}};return[b(p,g),b(m,g),b(m,_),b(p,_)]}return[{x:p,y:g},{x:m,y:g},{x:m,y:_},{x:p,y:_}]}function _(e,t,n,r){function i(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}for(var v=0;v0?-(Math.PI-e.ang):Math.PI+e.ang},C3e=function(e,t,n,r,i){if(e===x3e?S3e(Bj,zj):Jj(t,e,zj),Jj(t,n,Bj),m3e=zj.nx*Bj.ny-zj.ny*Bj.nx,h3e=zj.nx*Bj.nx-zj.ny*-Bj.ny,Hj=Math.asin(Math.max(-1,Math.min(1,m3e))),Math.abs(Hj)<1e-6){f3e=t.x,p3e=t.y,Wj=Kj=0;return}Vj=1,g3e=!1,h3e<0?Hj<0?Hj=Math.PI+Hj:(Hj=Math.PI-Hj,Vj=-1,g3e=!0):Hj>0&&(Vj=-1,g3e=!0),Kj=t.radius===void 0?r:t.radius,Uj=Hj/2,_3e=Math.min(zj.len/2,Bj.len/2),i?(Gj=Math.abs(Math.cos(Uj)*Kj/Math.sin(Uj)),Gj>_3e?(Gj=_3e,Wj=Math.abs(Gj*Math.sin(Uj)/Math.cos(Uj))):Wj=Kj):(Gj=Math.min(_3e,Kj),Wj=Math.abs(Gj*Math.sin(Uj)/Math.cos(Uj))),y3e=t.x+Bj.nx*Gj,b3e=t.y+Bj.ny*Gj,f3e=y3e-Bj.ny*Wj*Vj,p3e=b3e+Bj.nx*Wj*Vj,qj=t.x+zj.nx*Gj,v3e=t.y+zj.ny*Gj,x3e=t},w3e=.01,Yj=Math.sqrt(2*w3e),Xj={},Xj.findMidptPtsEtc=function(e,t){var n=t.posPts,r=t.intersectionPts,i=t.vectorNormInverse,a,o=e.pstyle(`source-endpoint`),s=e.pstyle(`target-endpoint`),l=o.units!=null&&s.units!=null,u=function(e,t,n,r){var i=r-t,a=n-e,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}};switch(e.pstyle(`edge-distances`).value){case`node-position`:a=n;break;case`intersection`:a=r;break;case`endpoints`:if(l){var d=DE(this.manualEndptToPx(e.source()[0],o),2),f=d[0],p=d[1],m=DE(this.manualEndptToPx(e.target()[0],s),2),h=m[0],g=m[1],_={x1:f,y1:p,x2:h,y2:g};i=u(f,p,h,g),a=_}else jO(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),a=r}return{midptPts:a,vectorNormInverse:i}},Xj.findHaystackPoints=function(e){for(var t=0;t0?Math.max(e-t,0):Math.min(e+t,0)},k=O(E,w),A=O(D,T),j=!1;v===u?_=Math.abs(k)>Math.abs(A)?i:r:v===l||v===s?(_=r,j=!0):(v===a||v===o)&&(_=i,j=!0);var M=_===r,ee=M?A:k,te=M?D:E,ne=v$e(te),re=!1;!(j&&(b||S))&&(v===s&&te<0||v===l&&te>0||v===a&&te>0||v===o&&te<0)&&(ne*=-1,ee=ne*Math.abs(ee),re=!0);var ie=b?(x<0?1+x:x)*ee:(x<0?ee:0)+x*ne,ae=function(e){return Math.abs(e)=Math.abs(ee)},oe=ae(ie),se=ae(Math.abs(ee)-Math.abs(ie));if((oe||se)&&!re){if(M){var ce=Math.abs(te)<=p/2,le=Math.abs(E)<=m/2;if(ce){var ue=(d.x1+d.x2)/2;n.segpts=[ue,d.y1,ue,d.y2]}else if(le){var de=(d.y1+d.y2)/2;n.segpts=[d.x1,de,d.x2,de]}else n.segpts=[d.x1,d.y2]}else{var fe=Math.abs(te)<=f/2,pe=Math.abs(D)<=h/2;if(fe){var me=(d.y1+d.y2)/2;n.segpts=[d.x1,me,d.x2,me]}else if(pe){var he=(d.x1+d.x2)/2;n.segpts=[he,d.y1,he,d.y2]}else n.segpts=[d.x2,d.y1]}}else if(M){var ge=d.y1+ie+(g?p/2*ne:0);n.segpts=[d.x1,ge,d.x2,ge]}else{var _e=d.x1+ie+(g?f/2*ne:0);n.segpts=[_e,d.y1,_e,d.y2]}if(n.isRound){var ve=e.pstyle(`taxi-radius`).value,ye=e.pstyle(`radius-type`).value[0]===`arc-radius`;n.radii=Array(n.segpts.length/2).fill(ve),n.isArcRadius=Array(n.segpts.length/2).fill(ye)}},Xj.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType===`bezier`){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,d=t.tgtShape,f=t.srcCornerRadius,p=t.tgtCornerRadius,m=t.srcRs,h=t.tgtRs,g=!RD(n.startX)||!RD(n.startY),_=!RD(n.arrowStartX)||!RD(n.arrowStartY),v=!RD(n.endX)||!RD(n.endY),y=!RD(n.arrowEndX)||!RD(n.arrowEndY),b=3*(this.getArrowWidth(e.pstyle(`width`).pfValue,e.pstyle(`arrow-scale`).value)*this.arrowShapeWidth),x=$O({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),S=xg.poolIndex()){var _=h;h=g,g=_}var v=d.srcPos=h.position(),y=d.tgtPos=g.position(),b=d.srcW=h.outerWidth(),S=d.srcH=h.outerHeight(),C=d.tgtW=g.outerWidth(),w=d.tgtH=g.outerHeight(),T=d.srcShape=n.nodeShapes[t.getNodeShape(h)],E=d.tgtShape=n.nodeShapes[t.getNodeShape(g)],D=d.srcCornerRadius=h.pstyle(`corner-radius`).value===`auto`?`auto`:h.pstyle(`corner-radius`).pfValue,O=d.tgtCornerRadius=g.pstyle(`corner-radius`).value===`auto`?`auto`:g.pstyle(`corner-radius`).pfValue,k=d.tgtRs=g._private.rscratch,A=d.srcRs=h._private.rscratch;d.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var j=0;j=Yj||(fe=Math.sqrt(Math.max(de*de,w3e)+Math.max(ue*ue,w3e)));var pe=d.vector={x:de,y:ue},me=d.vectorNorm={x:pe.x/fe,y:pe.y/fe},he={x:-me.y,y:me.x};d.nodesOverlap=!RD(fe)||E.checkPoint(ie[0],ie[1],0,C,w,y.x,y.y,O,k)||T.checkPoint(oe[0],oe[1],0,b,S,v.x,v.y,D,A),d.vectorNormInverse=he,f={nodesOverlap:d.nodesOverlap,dirCounts:d.dirCounts,calculatedIntersection:!0,hasBezier:d.hasBezier,hasUnbundled:d.hasUnbundled,eles:d.eles,srcPos:y,srcRs:k,tgtPos:v,tgtRs:A,srcW:C,srcH:w,tgtW:b,tgtH:S,srcIntn:se,tgtIntn:ae,srcShape:E,tgtShape:T,posPts:{x1:le.x2,y1:le.y2,x2:le.x1,y2:le.y1},intersectionPts:{x1:ce.x2,y1:ce.y2,x2:ce.x1,y2:ce.y1},vector:{x:-pe.x,y:-pe.y},vectorNorm:{x:-me.x,y:-me.y},vectorNormInverse:{x:-he.x,y:-he.y}}}var ge=re?f:d;ee.nodesOverlap=ge.nodesOverlap,ee.srcIntn=ge.srcIntn,ee.tgtIntn=ge.tgtIntn,ee.isRound=te.startsWith(`round`),r&&(h.isParent()||h.isChild()||g.isParent()||g.isChild())&&(h.parents().anySame(g)||g.parents().anySame(h)||h.same(g)&&h.isParent())?t.findCompoundLoopPoints(M,ge,j,ne):h===g?t.findLoopPoints(M,ge,j,ne):te.endsWith(`segments`)?t.findSegmentsPoints(M,ge):te.endsWith(`taxi`)?t.findTaxiPoints(M,ge):te===`straight`||!ne&&d.eles.length%2==1&&j===Math.floor(d.eles.length/2)?t.findStraightEdgePoints(M):t.findBezierPoints(M,ge,j,ne,re),t.findEndpoints(M),t.tryToCorrectInvalidPoints(M,ge),t.checkForInvalidEdgeWarning(M),t.storeAllpts(M),t.storeEdgeProjections(M),t.calculateArrowAngles(M),t.recalculateEdgeLabelProjections(M),t.calculateLabelAngles(M)}},x=0;x0){var ve=s,ye=ek(ve,YO(i)),be=ek(ve,YO(_e)),xe=ye;be2&&ek(ve,{x:_e[2],y:_e[3]})0){var Pe=l,Fe=ek(Pe,YO(i)),Ie=ek(Pe,YO(Ne)),Le=Fe;Ie2&&ek(Pe,{x:Ne[2],y:Ne[3]})=u||y){f={cp:g,segment:v};break}}if(f)break}var b=f.cp,x=f.segment,S=(u-p)/x.length,C=x.t1-x.t0,w=l?x.t0+C*S:x.t1-C*S;w=rk(0,w,1),t=nk(b.p0,b.p1,b.p2,w),i=k3e(b.p0,b.p1,b.p2,w);break;case`straight`:case`segments`:case`haystack`:for(var T=0,E,D,O,k,A=r.allpts.length,j=0;j+3=u));j+=2);var M=(u-D)/E;M=rk(0,M,1),t=b$e(O,k,M),i=O3e(O,k)}o(`labelX`,n,t.x),o(`labelY`,n,t.y),o(`labelAutoAngle`,n,i)}};l(`source`),l(`target`),this.applyLabelDimensions(e)}},Zj.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,`source`),this.applyPrefixedLabelDimensions(e,`target`))},Zj.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=TO(r,e._private.labelDimsKey);if(RO(n.rscratch,`prefixedLabelDimsKey`,t)!==i){zO(n.rscratch,`prefixedLabelDimsKey`,t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle(`line-height`).pfValue,s=e.pstyle(`font-size`).pfValue,l=e.pstyle(`text-wrap`).strValue,u=RO(n.rscratch,`labelWrapCachedLines`,t)||[],d=l===`wrap`?Math.max(u.length,1):1,f=s*o,p=a.width,m=a.height+(d-1)*(o-1)*s;zO(n.rstyle,`labelWidth`,t,p),zO(n.rscratch,`labelWidth`,t,p),zO(n.rstyle,`labelHeight`,t,m),zO(n.rscratch,`labelHeight`,t,m),zO(n.rscratch,`labelLineHeight`,t,f),zO(n.rscratch,`labelActualDescent`,t,a.labelActualDescent)}},Zj.getLabelText=function(e,t){var n=e._private,r=t?t+`-`:``,i=e.pstyle(r+`label`).strValue,a=e.pstyle(`text-transform`).value,o=function(e,r){return r?(zO(n.rscratch,e,t,r),r):RO(n.rscratch,e,t)};if(!i)return``;a==`none`||(a==`uppercase`?i=i.toUpperCase():a==`lowercase`&&(i=i.toLowerCase()));var s=e.pstyle(`text-wrap`).value;if(s===`wrap`){var l=o(`labelKey`);if(l!=null&&o(`labelWrapKey`)===l)return o(`labelWrapCachedText`);for(var u=`​`,d=i.split(` +`),f=e.pstyle(`text-max-width`).pfValue,p=e.pstyle(`text-overflow-wrap`).value===`anywhere`,m=[],h=/[\s\u200b]+|$/g,g=0;gf){var y=_.matchAll(h),b=``,x=0,S=EE(y),C;try{for(S.s();!(C=S.n()).done;){var w=C.value,T=w[0],E=_.substring(x,w.index);x=w.index+T.length;var D=b.length===0?E:b+E+T;this.calculateLabelDimensions(e,D).width<=f?b+=E+T:(b&&m.push(b),b=E+T)}}catch(e){S.e(e)}finally{S.f()}b.match(/^[\s\u200b]+$/)||m.push(b)}else m.push(_)}o(`labelWrapCachedLines`,m),i=o(`labelWrapCachedText`,m.join(` +`)),o(`labelWrapKey`,l)}else if(s===`ellipsis`){var O=e.pstyle(`text-max-width`).pfValue,k=``,A=`…`,j=!1;if(this.calculateLabelDimensions(e,i).widthO);M++)k+=i[M],M===i.length-1&&(j=!0);return j||(k+=A),k}return i},Zj.getLabelJustification=function(e){var t=e.pstyle(`text-justification`).strValue,n=e.pstyle(`text-halign`).strValue;return t===`auto`?e.isNode()?F2e(n):`center`:t},Zj.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle(`font-style`).strValue,a=e.pstyle(`font-size`).pfValue,o=e.pstyle(`font-family`).strValue,s=e.pstyle(`font-weight`).strValue,l=e.pstyle(`text-metrics`).strValue||`font`,u=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!u){u=this.labelCalcCanvas=n.createElement(`canvas`),d=this.labelCalcCanvasContext=u.getContext(`2d`);var f=u.style;f.position=`absolute`,f.left=`-9999px`,f.top=`-9999px`,f.zIndex=`-1`,f.visibility=`hidden`,f.pointerEvents=`none`}d.font=`${i} ${s} ${a}px ${o}`;for(var p=0,m=0,h=t.split(` +`),g=h.length,_=0,v=0,y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var D=a(t);x&&(e.hoverData.tapholdCancelled=!0);var O=function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];t.length===0?(t.push(y[0]),t.push(y[1])):(t[0]+=y[0],t[1]+=y[1])};n=!0,i(h,[`mousemove`,`vmousemove`,`tapdrag`],t,{x:u[0],y:u[1]});var k=function(e){return{originalEvent:t,type:e,position:{x:u[0],y:u[1]}}},A=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||r.emit(k(`boxstart`)),p[4]=1,e.hoverData.selecting=!0,e.redrawHint(`select`,!0),e.redraw()};if(e.hoverData.which===3){if(x){var j=k(`cxtdrag`);v?v.emit(j):r.emit(j),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||h!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(k(`cxtdragout`)),e.hoverData.cxtOver=h,h&&h.emit(k(`cxtdragover`)))}}else if(e.hoverData.dragging){if(n=!0,r.panningEnabled()&&r.userPanningEnabled()){var M;if(e.hoverData.justStartedPan){var ee=e.hoverData.mdownPos;M={x:(u[0]-ee[0])*s,y:(u[1]-ee[1])*s},e.hoverData.justStartedPan=!1}else M={x:y[0]*s,y:y[1]*s};r.panBy(M),r.emit(k(`dragpan`)),e.hoverData.dragged=!0}u=e.projectIntoViewport(t.clientX,t.clientY)}else if(p[4]==1&&(v==null||v.pannable()))x&&(!e.hoverData.dragging&&r.boxSelectionEnabled()&&(D||!r.panningEnabled()||!r.userPanningEnabled())?A():!e.hoverData.selecting&&r.panningEnabled()&&r.userPanningEnabled()&&o(v,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,p[4]=0,e.data.bgActivePosistion=YO(d),e.redrawHint(`select`,!0),e.redraw()),v&&v.pannable()&&v.active()&&v.unactivate());else{if(v&&v.pannable()&&v.active()&&v.unactivate(),(!v||!v.grabbed())&&h!=_&&(_&&i(_,[`mouseout`,`tapdragout`],t,{x:u[0],y:u[1]}),h&&i(h,[`mouseover`,`tapdragover`],t,{x:u[0],y:u[1]}),e.hoverData.last=h),v){if(x){if(r.boxSelectionEnabled()&&D)v&&v.grabbed()&&(g(b),v.emit(k(`freeon`)),b.emit(k(`free`)),e.dragData.didDrag&&(v.emit(k(`dragfreeon`)),b.emit(k(`dragfree`)))),A();else if(v&&v.grabbed()&&e.nodeIsDraggable(v)){var te=!e.dragData.didDrag;te&&e.redrawHint(`eles`,!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||m(b,{inDragLayer:!0});var ne={x:0,y:0};if(RD(y[0])&&RD(y[1])&&(ne.x+=y[0],ne.y+=y[1],te)){var re=e.hoverData.dragDelta;re&&RD(re[0])&&RD(re[1])&&(ne.x+=re[0],ne.y+=re[1])}e.hoverData.draggingEles=!0,b.silentShift(ne).emit(k(`position`)).emit(k(`drag`)),e.redrawHint(`drag`,!0),e.redraw()}}else O()}n=!0}if(p[2]=u[0],p[3]=u[1],n)return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1}},!1);var D,O,k;e.registerBinding(t,`mouseup`,function(t){if(!(e.hoverData.which===1&&t.which!==1&&e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var r=e.cy,o=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(o[0],o[1],!0,!1),u=e.dragData.possibleDragElements,d=e.hoverData.down,f=a(t);e.data.bgActivePosistion&&(e.redrawHint(`select`,!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,d&&d.unactivate();var p=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}};if(e.hoverData.which===3){var m=p(`cxttapend`);if(d?d.emit(m):r.emit(m),!e.hoverData.cxtDragged){var h=p(`cxttap`);d?d.emit(h):r.emit(h)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(i(l,[`mouseup`,`tapend`,`vmouseup`],t,{x:o[0],y:o[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(i(d,[`click`,`tap`,`vclick`],t,{x:o[0],y:o[1]}),O=!1,t.timeStamp-k<=r.multiClickDebounceTime()?(D&&clearTimeout(D),O=!0,k=null,i(d,[`dblclick`,`dbltap`,`vdblclick`],t,{x:o[0],y:o[1]})):(D=setTimeout(function(){O||i(d,[`oneclick`,`onetap`,`voneclick`],t,{x:o[0],y:o[1]})},r.multiClickDebounceTime()),k=t.timeStamp)),d==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(t)&&(r.$(n).unselect([`tapunselect`]),u.length>0&&e.redrawHint(`eles`,!0),e.dragData.possibleDragElements=u=r.collection()),l==d&&!e.dragData.didDrag&&!e.hoverData.selecting&&l!=null&&l._private.selectable&&(e.hoverData.dragging||(r.selectionType()===`additive`||f?l.selected()?l.unselect([`tapunselect`]):l.select([`tapselect`]):f||(r.$(n).unmerge(l).unselect([`tapunselect`]),l.select([`tapselect`]))),e.redrawHint(`eles`,!0)),e.hoverData.selecting){var _=r.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint(`select`,!0),_.length>0&&e.redrawHint(`eles`,!0),r.emit(p(`boxend`)),r.selectionType()===`additive`||f||r.$(n).unmerge(_).unselect(),_.emit(p(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(p(`boxselect`)),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint(`select`,!0),e.redrawHint(`eles`,!0),e.redraw()),!s[4]){e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0);var v=d&&d.grabbed();g(u),v&&(d.emit(p(`freeon`)),u.emit(p(`free`)),e.dragData.didDrag&&(d.emit(p(`dragfreeon`)),u.emit(p(`dragfree`))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var A=[],j=4,M,ee=1e5,te=function(e){for(var t=Math.abs(e[0]),n=1;n=j){M=!1;var i=A;if(i[0]>=5){var a=te(i)?i[0]:g$e(i);a>1&&(M=!0,ee=a)}}else A.push(Math.abs(r)),n=!0}else M&&(ee=Math.min(Math.abs(r),ee));if(!e.scrollingPage){var o=e.cy,s=o.zoom(),l=o.pan(),u=e.projectIntoViewport(t.clientX,t.clientY),d=[u[0]*s+l.x,u[1]*s+l.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||w()){t.preventDefault();return}if(o.panningEnabled()&&o.userPanningEnabled()&&o.zoomingEnabled()&&o.userZoomingEnabled()){t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint(`eles`,!0),e.redraw()},150);var f;n&&Math.abs(r)>5&&(r=v$e(r)*5),f=r/-250,M&&(f/=ee,f*=3),f*=e.wheelSensitivity,t.deltaMode===1&&(f*=33);var p=o.zoom()*10**f;t.type===`gesturechange`&&(p=e.gestureStartZoom*t.scale),o.zoom({level:p,renderedPosition:{x:d[0],y:d[1]}}),o.emit({type:t.type===`gesturechange`?`pinchzoom`:`scrollzoom`,originalEvent:t,position:{x:u[0],y:u[1]}})}}}};e.registerBinding(e.container,`wheel`,ne,!0),e.registerBinding(t,`scroll`,function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,`gesturestart`,function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,`gesturechange`,function(t){e.hasTouchStarted||ne(t)},!0),e.registerBinding(e.container,`mouseout`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseout`,position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,`mouseover`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseover`,position:{x:n[0],y:n[1]}})},!1);var re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},_e=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)},ve;e.registerBinding(e.container,`touchstart`,ve=function(t){if(e.hasTouchStarted=!0,T(t)){v(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,r=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);r[0]=o[0],r[1]=o[1]}if(t.touches[1]){var o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);r[2]=o[0],r[3]=o[1]}if(t.touches[2]){var o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);r[4]=o[0],r[5]=o[1]}var s=function(e){return{originalEvent:t,type:e,position:{x:r[0],y:r[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,g(e.dragData.touchDragEles);var l=e.findContainerClientCoords();de=l[0],fe=l[1],pe=l[2],me=l[3],re=t.touches[0].clientX-de,ie=t.touches[0].clientY-fe,ae=t.touches[1].clientX-de,oe=t.touches[1].clientY-fe,he=0<=re&&re<=pe&&0<=ae&&ae<=pe&&0<=ie&&ie<=me&&0<=oe&&oe<=me;var d=n.pan(),f=n.zoom();se=ge(re,ie,ae,oe),ce=_e(re,ie,ae,oe),le=[(re+ae)/2,(ie+oe)/2],ue=[(le[0]-d.x)/f,(le[1]-d.y)/f];var p=200,_=p*p;if(ce<_&&!t.touches[2]){var y=e.findNearestElement(r[0],r[1],!0,!0),b=e.findNearestElement(r[2],r[3],!0,!0);y&&y.isNode()?(y.activate().emit(s(`cxttapstart`)),e.touchData.start=y):b&&b.isNode()?(b.activate().emit(s(`cxttapstart`)),e.touchData.start=b):n.emit(s(`cxttapstart`)),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,e.redraw();return}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(!t.touches[1]&&t.touches[0]){var x=e.findNearestElements(r[0],r[1],!0,!0),S=x[0];if(S!=null&&(S.activate(),e.touchData.start=S,e.touchData.starts=x,e.nodeIsGrabbable(S))){var C=e.dragData.touchDragEles=n.collection(),w=null;e.redrawHint(`eles`,!0),e.redrawHint(`drag`,!0),S.selected()?(w=n.$(function(t){return t.selected()&&e.nodeIsGrabbable(t)}),m(w,{addToList:C})):h(S,{addToList:C}),u(S),S.emit(s(`grabon`)),w?w.forEach(function(e){e.emit(s(`grab`))}):S.emit(s(`grab`))}i(S,[`touchstart`,`tapstart`,`vmousedown`],t,{x:r[0],y:r[1]}),S??(e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint(`select`,!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){e.touchData.singleTouchMoved===!1&&!e.pinching&&!e.touchData.selecting&&i(e.touchData.start,[`taphold`],t,{x:r[0],y:r[1]})},e.tapholdDuration)}if(t.touches.length>=1){for(var E=e.touchData.startPosition=[null,null,null,null,null,null],D=0;D=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var S=t.touches[0].clientX-de,C=t.touches[0].clientY-fe,w=t.touches[1].clientX-de,E=t.touches[1].clientY-fe,D=_e(S,C,w,E),O=D/ce,k=150,A=k*k,j=1.5;if(O>=j*j||D>=A){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var M=f(`cxttapend`);e.touchData.start?(e.touchData.start.unactivate().emit(M),e.touchData.start=null):a.emit(M)}}if(n&&e.touchData.cxt){var M=f(`cxtdrag`);e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.touchData.start?e.touchData.start.emit(M):a.emit(M),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var ee=e.findNearestElement(s[0],s[1],!0,!0);(!e.touchData.cxtOver||ee!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(f(`cxtdragout`)),e.touchData.cxtOver=ee,ee&&ee.emit(f(`cxtdragover`)))}else if(n&&t.touches[2]&&a.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||a.emit(f(`boxstart`)),e.touchData.selecting=!0,e.touchData.didSelect=!0,r[4]=1,!r||r.length===0||r[0]===void 0?(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1):(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3),e.redrawHint(`select`,!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var te=e.dragData.touchDragEles;if(te){e.redrawHint(`drag`,!0);for(var ne=0;ne0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.redraw())}},!1);var be;e.registerBinding(t,`touchcancel`,be=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()});var xe,Se,Ce,we;if(e.registerBinding(t,`touchend`,xe=function(t){var r=e.touchData.start;if(e.touchData.capture)t.touches.length===0&&(e.touchData.capture=!1),t.preventDefault();else return;var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o=e.cy,s=o.zoom(),l=e.touchData.now,u=e.touchData.earlier;if(t.touches[0]){var d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);l[0]=d[0],l[1]=d[1]}if(t.touches[1]){var d=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);l[2]=d[0],l[3]=d[1]}if(t.touches[2]){var d=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);l[4]=d[0],l[5]=d[1]}var f=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}};r&&r.unactivate();var p;if(e.touchData.cxt){if(p=f(`cxttapend`),r?r.emit(p):o.emit(p),!e.touchData.cxtDragged){var m=f(`cxttap`);r?r.emit(m):o.emit(m)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!t.touches[2]&&o.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var h=o.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint(`select`,!0),o.emit(f(`boxend`)),h.emit(f(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(f(`boxselect`)),h.nonempty()&&e.redrawHint(`eles`,!0),e.redraw()}if(r?.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);else if(!t.touches[1]&&!t.touches[0]&&!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var _=e.dragData.touchDragEles;if(r!=null){var v=r._private.grabbed;g(_),e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0),v&&(r.emit(f(`freeon`)),_.emit(f(`free`)),e.dragData.didDrag&&(r.emit(f(`dragfreeon`)),_.emit(f(`dragfree`)))),i(r,[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]}),r.unactivate(),e.touchData.start=null}else i(e.findNearestElement(l[0],l[1],!0,!0),[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]});var y=e.touchData.startPosition[0]-l[0],b=y*y,x=e.touchData.startPosition[1]-l[1],S=(b+x*x)*s*s;e.touchData.singleTouchMoved||(r||o.$(`:selected`).unselect([`tapunselect`]),i(r,[`tap`,`vclick`],t,{x:l[0],y:l[1]}),Se=!1,t.timeStamp-we<=o.multiClickDebounceTime()?(Ce&&clearTimeout(Ce),Se=!0,we=null,i(r,[`dbltap`,`vdblclick`],t,{x:l[0],y:l[1]})):(Ce=setTimeout(function(){Se||i(r,[`onetap`,`voneclick`],t,{x:l[0],y:l[1]})},o.multiClickDebounceTime()),we=t.timeStamp)),r!=null&&!e.dragData.didDrag&&r._private.selectable&&S`u`){var Te=[],Ee=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},De=function(e){return{event:e,touch:Ee(e)}},Oe=function(e){Te.push(De(e))},ke=function(e){for(var t=0;t0)return u[0]}return null},m=Object.keys(f),h=0;h0?f:D$e(i,a,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,i,a,o,s){s=s===`auto`?Ek(r,i):s;var l=2*s;if(hk(e,t,this.points,a,o,r,i-l,[0,-1],n)||hk(e,t,this.points,a,o,r-l,i,[0,-1],n))return!0;var u=r/2+2*n,d=i/2+2*n;return!!(mk(e,t,[a-u,o-d,a-u,o,a+u,o,a+u,o-d])||_k(e,t,l,l,a+r/2-s,o+i/2-s,n)||_k(e,t,l,l,a-r/2+s,o+i/2-s,n))}}},tM.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon(`triangle`,Ck(3,0)),this.generateRoundPolygon(`round-triangle`,Ck(3,0)),this.generatePolygon(`rectangle`,Ck(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon(`diamond`,n),this.generateRoundPolygon(`round-diamond`,n),this.generatePolygon(`pentagon`,Ck(5,0)),this.generateRoundPolygon(`round-pentagon`,Ck(5,0)),this.generatePolygon(`hexagon`,Ck(6,0)),this.generateRoundPolygon(`round-hexagon`,Ck(6,0)),this.generatePolygon(`heptagon`,Ck(7,0)),this.generateRoundPolygon(`round-heptagon`,Ck(7,0)),this.generatePolygon(`octagon`,Ck(8,0)),this.generateRoundPolygon(`round-octagon`,Ck(8,0));var r=Array(20),i=Tk(5,0),a=Tk(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*g)break}else if(i){if(m>=e.deqCost*l||m>=e.deqAvgCost*s)break}else if(h>=e.deqNoDrawCost*aM)break;var _=e.deq(t,f,d);if(_.length>0)for(var v=0;v<_.length;v++)u.push(_[v]);else break}u.length>0&&(e.onDeqd(t,u),!i&&e.shouldRedraw(t,u,f,d)&&r())},a=e.priority||kO;n.beforeRender(i,a(t))}}}},z3e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zQe;wE(this,e),this.idsByKey=new BO,this.keyForId=new BO,this.cachesByLvl=new BO,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return TE(e,[{key:`getIdsFor`,value:function(e){e??AO(`Can not get id list for null key`);var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new HO,t.set(e,n)),n}},{key:`addIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).add(t)}},{key:`deleteIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).delete(t)}},{key:`getNumberOfIdsForKey`,value:function(e){return e==null?0:this.getIdsFor(e).size}},{key:`updateKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:`deleteKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:`keyHasChangedFor`,value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:`isInvalid`,value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:`getCachesAt`,value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new BO,t.set(e,r),n.push(e)),r}},{key:`getCache`,value:function(e,t){return this.getCachesAt(t).get(e)}},{key:`get`,value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return r!=null&&this.updateKeyMappingFor(e),r}},{key:`getForCachedKey`,value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:`hasCache`,value:function(e,t){return this.getCachesAt(t).has(e)}},{key:`has`,value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:`setCache`,value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:`set`,value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:`deleteCache`,value:function(e,t){this.getCachesAt(t).delete(e)}},{key:`delete`,value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:`invalidateKey`,value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:`invalidate`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||this.getNumberOfIdsForKey(n)===0}}])}(),sM=25,B3e=50,V3e=-4,H3e=3,U3e=7.99,cM=8,W3e=1024,G3e=1024,K3e=1024,q3e=.2,J3e=.8,Y3e=10,X3e=.15,lM=.1,Z3e=.9,Q3e=.9,$3e=100,e6e=1,uM={dequeue:`dequeue`,downscale:`downscale`,highQuality:`highQuality`},t6e=FO({getKey:null,doesEleInvalidateKey:zQe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:RQe,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),dM=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=t6e(t);eO(n,r),n.lookup=new z3e(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},fM=dM.prototype,fM.reasons=uM,fM.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},fM.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},fM.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new GO(function(e,t){return t.reqs-e.reqs})},fM.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},fM.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(r??=Math.ceil(QO(s*n)),r=U3e||r>H3e)return null;var u=2**r,d=t.h*u,f=t.w*u,p=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,p))return null;var m=l.get(e,r);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var h=d<=sM?sM:d<=B3e?B3e:Math.ceil(d/B3e)*B3e;if(d>K3e||f>G3e)return null;var g=a.getTextureQueue(h),_=g[g.length-2],v=function(){return a.recycleTexture(h,f)||a.addTexture(h,f)};_||=g[g.length-1],_||=v(),_.width-_.usedWidthr;O--)E=a.getElement(e,t,n,O,uM.downscale);D()}else return a.queueElement(e,C.level-1),C}else{var k;if(!b&&!x&&!S)for(var A=r-1;A>=V3e;A--){var j=l.get(e,A);if(j){k=j;break}}if(y(k))return a.queueElement(e,r),k;_.context.translate(_.usedWidth,0),_.context.scale(u,u),this.drawElement(_.context,e,t,p,!1),_.context.scale(1/u,1/u),_.context.translate(-_.usedWidth,0)}return m={x:_.usedWidth,texture:_,level:r,scale:u,width:f,height:d,scaledLabelShown:p},_.usedWidth+=Math.ceil(f+cM),_.eleCaches.push(m),l.set(e,r,m),a.checkTextureFullness(_),m},fM.invalidateElements=function(e){for(var t=0;t=q3e*e.width&&this.retireTexture(e)},fM.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>J3e&&e.fullnessChecks>=Y3e?IO(t,e):e.fullnessChecks++},fM.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;IO(r,e),e.retired=!0;for(var a=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,LO(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),IO(i,o),r.push(o),o}},fM.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(e),o=i[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,r.updateItem(o);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:a};r.push(s),i[a]=s}},fM.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o0;o++){var s=n.pop(),l=s.key,u=s.eles[0],d=a.hasCache(u,s.level);if(r[l]=null,!d){i.push(s);var f=t.getBoundingBox(u);t.getElement(u,f,e,s.level,uM.dequeue)}}return i},fM.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),a=r[i];a!=null&&(a.eles.length===1?(a.reqs=OO,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(e))},fM.onDequeue=function(e){this.onDequeues.push(e)},fM.offDequeue=function(e){IO(this.onDequeues,e)},fM.setupDequeueing=oM.setupDequeueing({deqRedrawThreshold:$3e,deqCost:X3e,deqAvgCost:lM,deqNoDrawCost:Z3e,deqFastCost:Q3e,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=i6e||n>r6e)return null}r.validateLayersElesOrdering(n,e);var o=r.layersByLevel,s=2**n,l=o[n]=o[n]||[],u,d=r.levelIsComplete(n,e),f,p=function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return f=o[t],!0},i=function(e){if(!f)for(var r=n+e;pM<=r&&r<=r6e&&!t(r);r+=e);};i(1),i(-1);for(var a=l.length-1;a>=0;a--){var s=l[a];s.invalid&&IO(l,s)}};if(!d)p();else return l;var m=function(){if(!u){u=ik();for(var t=0;tp6e||a>p6e||i*a>f6e)return null;var o=r.makeLayer(u,n);if(t!=null){var d=l.indexOf(t)+1;l.splice(d,0,o)}else(e.insert===void 0||e.insert)&&l.unshift(o);return o};if(r.skipping&&!a)return null;for(var g=null,_=e.length/n6e,v=!a,y=0;y=_||!E$e(g.bb,b.boundingBox()))&&(g=h({insert:!0,after:g}),!g))return null;f||v?r.queueLayer(g,b):r.drawEleInLayer(g,b,n,t),g.eles.push(b),S[n]=g}return f||(v?null:l)},hM.getEleLevelForLayerLevel=function(e,t){return e},hM.drawEleInLayer=function(e,t,n,r){var i=this,a=this.renderer,o=e.context,s=t.boundingBox();s.w!==0&&s.h!==0&&t.visible()&&(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,n,m6e),a.setImgSmoothing(o,!0))},hM.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||n.length===0)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},hM.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},hM.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=gO(),e.length!==0&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},hM.invalidateLayer=function(e){if(this.lastInvalidationTime=gO(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];IO(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=t._private.rscratch;if((!a||t.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var u=a?t.pstyle(`opacity`).value:1,d=a?t.pstyle(`line-opacity`).value:1,f=t.pstyle(`curve-style`).value,p=t.pstyle(`line-style`).value,m=t.pstyle(`width`).pfValue,h=t.pstyle(`line-cap`).value,g=t.pstyle(`line-outline-width`).value,_=t.pstyle(`line-outline-color`).value,v=u*d,y=u*d,b=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;f===`straight-triangle`?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=m,e.lineCap=h,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},x=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(e.lineWidth=m+g,e.lineCap=h,g>0)o.colorStrokeStyle(e,_[0],_[1],_[2],n);else{e.lineCap=`butt`;return}f===`straight-triangle`?o.drawEdgeTrianglePath(t,e,s.allpts):(o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},S=function(){i&&o.drawEdgeOverlay(e,t)},C=function(){i&&o.drawEdgeUnderlay(e,t)},w=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;o.drawArrowheads(e,t,n)},T=function(){o.drawElementText(e,t,null,r)};if(e.lineJoin=`round`,t.pstyle(`ghost`).value===`yes`){var E=t.pstyle(`ghost-offset-x`).pfValue,D=t.pstyle(`ghost-offset-y`).pfValue,O=v*t.pstyle(`ghost-opacity`).value;e.translate(E,D),b(O),w(O),e.translate(-E,-D)}else x();C(),b(),w(),S(),T(),n&&e.translate(l.x1,l.y1)}},T6e=function(e){if(![`overlay`,`underlay`].includes(e))throw Error(`Invalid state`);return function(t,n){if(n.visible()){var r=n.pstyle(`${e}-opacity`).value;if(r!==0){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle(`${e}-padding`).pfValue,l=n.pstyle(`${e}-color`).value;t.lineWidth=s,t.lineCap=o.edgeType===`self`&&!a?`butt`:`round`,i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,o.allpts,`solid`)}}}},vM.drawEdgeOverlay=T6e(`overlay`),vM.drawEdgeUnderlay=T6e(`underlay`),vM.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,o,s=!1,l=this.usePaths(),u=e.pstyle(`line-dash-pattern`).pfValue,d=e.pstyle(`line-dash-offset`).pfValue;if(l){var f=n.join(`$`);i.pathCacheKey&&i.pathCacheKey===f?(o=t=i.pathCache,s=!0):(o=t=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(r){case`dotted`:a.setLineDash([1,1]);break;case`dashed`:a.setLineDash(u),a.lineDashOffset=d;break;case`solid`:a.setLineDash([])}if(!s&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case`bezier`:case`self`:case`compound`:case`multibezier`:for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(r==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var s=t.pstyle(`label`);if(!s||!s.value)return;var l=o.getLabelJustification(t),u=t.pstyle(`text-metrics`).strValue===`glyph`;e.textAlign=l,e.textBaseline=u?`alphabetic`:`bottom`}else{var d=t.element()._private.rscratch.badLine,f=t.pstyle(`label`),p=t.pstyle(`source-label`),m=t.pstyle(`target-label`);if(d||(!f||!f.value)&&(!p||!p.value)&&(!m||!m.value))return;e.textAlign=`center`,e.textBaseline=`bottom`}var h=!n,g;n&&(g=n,e.translate(-g.x1,-g.y1)),i==null?(o.drawText(e,t,null,h,a),t.isEdge()&&(o.drawText(e,t,`source`,h,a),o.drawText(e,t,`target`,h,a))):o.drawText(e,t,i,h,a),n&&e.translate(g.x1,g.y1)},yM.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle(`font-style`).strValue,i=t.pstyle(`font-size`).pfValue+`px`,a=t.pstyle(`font-family`).strValue,o=t.pstyle(`font-weight`).strValue,s=n?t.effectiveOpacity()*t.pstyle(`text-opacity`).value:1,l=t.pstyle(`text-outline-opacity`).value*s,u=t.pstyle(`color`).value,d=t.pstyle(`text-outline-color`).value;e.font=r+` `+o+` `+i+` `+a,e.lineJoin=`round`,this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,d[0],d[1],d[2],l)},yM.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+`-`:``,a=e.pstyle(i+`text-rotation`);if(a.strValue===`autorotate`){var o=RO(r,`labelAngle`,t);n=e.isEdge()?o:0}else n=a.strValue===`none`?0:a.pfValue;return n},yM.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!i||o!==0&&t.pstyle(`text-opacity`).value!==0){n===`main`&&(n=null);var s=RO(a,`labelX`,n),l=RO(a,`labelY`,n),u,d,f=this.getLabelText(t,n);if(f!=null&&f!==``&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(e,t,i);var p=n?n+`-`:``,m=RO(a,`labelWidth`,n),h=RO(a,`labelHeight`,n),g=RO(a,`labelActualDescent`,n),_=t.pstyle(p+`text-margin-x`).pfValue,v=t.pstyle(p+`text-margin-y`).pfValue,y=t.isEdge(),b=t.pstyle(`text-halign`).value,x=t.pstyle(`text-valign`).value;y&&(b=`center`,x=`center`),s+=_,l+=v;var S=r?this.getTextAngle(t,n):0;S!==0&&(u=s,d=l,e.translate(u,d),e.rotate(S),s=0,l=0);var C=qA(b),w=JA(x);switch(w){case`top`:break;case`center`:l+=h/2;break;case`bottom`:l+=h}var T=t.pstyle(`text-background-opacity`).value,E=t.pstyle(`text-border-opacity`).value,D=t.pstyle(`text-border-width`).pfValue,O=t.pstyle(`text-background-padding`).pfValue,k=t.pstyle(`text-background-shape`).strValue,A=k===`round-rectangle`||k===`roundrectangle`,j=k===`circle`,M=2;if(T>0||D>0&&E>0){var ee=e.fillStyle,te=e.strokeStyle,ne=e.lineWidth,re=t.pstyle(`text-background-color`).value,ie=t.pstyle(`text-border-color`).value,ae=t.pstyle(`text-border-style`).value,oe=T>0,se=D>0&&E>0,ce=s-O;switch(C){case`left`:ce-=m;break;case`center`:ce-=m/2}var le=l-h-O,ue=m+2*O,de=h+2*O;if(oe&&(e.fillStyle=`rgba(${re[0]},${re[1]},${re[2]},${T*o})`),se&&(e.strokeStyle=`rgba(${ie[0]},${ie[1]},${ie[2]},${E*o})`,e.lineWidth=D,e.setLineDash))switch(ae){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`double`:e.lineWidth=D/4,e.setLineDash([]);break;default:e.setLineDash([])}if(A?(e.beginPath(),uD(e,ce,le,ue,de,M)):j?(e.beginPath(),dZe(e,ce,le,ue,de)):(e.beginPath(),e.rect(ce,le,ue,de)),oe&&e.fill(),se&&e.stroke(),se&&ae===`double`){var fe=D/2;e.beginPath(),A?uD(e,ce+fe,le+fe,ue-2*fe,de-2*fe,M):e.rect(ce+fe,le+fe,ue-2*fe,de-2*fe),e.stroke()}e.fillStyle=ee,e.strokeStyle=te,e.lineWidth=ne,e.setLineDash&&e.setLineDash([])}var pe=2*t.pstyle(`text-outline-width`).pfValue;if(pe>0&&(e.lineWidth=pe),l-=g,t.pstyle(`text-wrap`).value===`wrap`){var me=RO(a,`labelWrapCachedLines`,n),he=RO(a,`labelLineHeight`,n),ge=m/2,_e=this.getLabelJustification(t);switch(_e===`auto`||(C===`left`?_e===`left`?s+=-m:_e===`center`&&(s+=-ge):C===`center`?_e===`left`?s+=-ge:_e===`right`&&(s+=ge):C===`right`&&(_e===`center`?s+=ge:_e===`right`&&(s+=m))),w){case`top`:l-=(me.length-1)*he;break;case`center`:case`bottom`:l-=(me.length-1)*he}for(var ve=0;ve0&&e.strokeText(me[ve],s,l),e.fillText(me[ve],s,l),l+=he}else pe>0&&e.strokeText(f,s,l),e.fillText(f,s,l);S!==0&&(e.rotate(-S),e.translate(-u,-d))}}},bM={},bM.drawNode=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,l,u=t._private,d=u.rscratch,f=t.position();if(RD(f.x)&&RD(f.y)&&(!a||t.visible())){var p=a?t.effectiveOpacity():1,m=o.usePaths(),h,g=!1,_=t.padding();s=t.width()+2*_,l=t.height()+2*_;var v;n&&(v=n,e.translate(-v.x1,-v.y1));for(var y=t.pstyle(`background-image`).value,b=Array(y.length),x=Array(y.length),S=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:O;o.eleFillStyle(e,t,n)},de=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:re;o.colorStrokeStyle(e,k[0],k[1],k[2],t)},fe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:se;o.colorStrokeStyle(e,ae[0],ae[1],ae[2],t)},pe=function(e,t,n,r){var i=o.nodePathCache=o.nodePathCache||[],a=EO(n===`polygon`?n+`,`+r.join(`,`):n,``+t,``+e,``+le),s=i[a],l,u=!1;return s==null?(l=new Path2D,i[a]=d.pathCache=l):(l=s,u=!0,d.pathCache=l),{path:l,cacheHit:u}},me=t.pstyle(`shape`).strValue,he=t.pstyle(`shape-polygon-points`).pfValue;if(m){e.translate(f.x,f.y);var ge=pe(s,l,me,he);h=ge.path,g=ge.cacheHit}var _e=function(){if(!g){var n=f;m&&(n={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(h||e,n.x,n.y,s,l,le,d)}m?e.fill(h):e.fill()},ve=function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=u.backgrounding,a=0,s=0;s0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasPie(t)&&(o.drawPie(e,t,r),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,le,d)))},be=function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasStripe(t)&&(e.save(),m?e.clip(d.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,le,d),e.clip()),o.drawStripe(e,t,r),e.restore(),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,le,d)))},xe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,n=(E>0?E:-E)*t,r=E>0?0:255;E!==0&&(o.colorFillStyle(e,r,r,r,n),m?e.fill(h):e.fill())},Se=function(){if(D>0){if(e.lineWidth=D,e.lineCap=M,e.lineJoin=j,e.setLineDash)switch(A){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash(te),e.lineDashOffset=ne;break;case`solid`:case`double`:e.setLineDash([])}if(ee!==`center`){if(e.save(),e.lineWidth*=2,ee===`inside`)m?e.clip(h):e.clip();else{var t=new Path2D;t.rect(-s/2-D,-l/2-D,s+2*D,l+2*D),t.addPath(h),e.clip(t,`evenodd`)}m?e.stroke(h):e.stroke(),e.restore()}else m?e.stroke(h):e.stroke();if(A===`double`){e.lineWidth=D/3;var n=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,m?e.stroke(h):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},Ce=function(){if(ie>0){if(e.lineWidth=ie,e.lineCap=`butt`,e.setLineDash)switch(oe){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`solid`:case`double`:e.setLineDash([])}var n=f;m&&(n={x:0,y:0});var r=o.getNodeShape(t),i=D;ee===`inside`&&(i=0),ee===`outside`&&(i*=2);var a=(s+i+(ie+ce))/s,u=(l+i+(ie+ce))/l,d=s*a,p=l*u,h=o.nodeShapes[r].points,g;if(m&&(g=pe(d,p,r,h).path),r===`ellipse`)o.drawEllipsePath(g||e,n.x,n.y,d,p);else if([`round-diamond`,`round-heptagon`,`round-hexagon`,`round-octagon`,`round-pentagon`,`round-polygon`,`round-triangle`,`round-tag`].includes(r)){var _=0,v=0,y=0;r===`round-diamond`?_=(i+ce+ie)*1.4:r===`round-heptagon`?(_=(i+ce+ie)*1.075,y=-(i/2+ce+ie)/35):r===`round-hexagon`?_=(i+ce+ie)*1.12:r===`round-pentagon`?(_=(i+ce+ie)*1.13,y=-(i/2+ce+ie)/15):r===`round-tag`?(_=(i+ce+ie)*1.12,v=(i/2+ie+ce)*.07):r===`round-triangle`&&(_=(i+ce+ie)*(Math.PI/2),y=-(i+ce/2+ie)/Math.PI),_!==0&&(a=(s+_)/s,d=s*a,[`round-hexagon`,`round-tag`].includes(r)||(u=(l+_)/l,p=l*u)),le=le===`auto`?I$e(d,p):le;for(var b=d/2,x=p/2,S=le+(i+ie+ce)/2,C=Array(h.length/2),w=Array(h.length/2),T=0;T0){if(r||=n.position(),i==null||a==null){var p=n.padding();i=n.width()+2*p,a=n.height()+2*p}o.colorFillStyle(t,u[0],u[1],u[2],l),o.nodeShapes[d].draw(t,r.x,r.y,i+s*2,a+s*2,f),t.fill()}}}},bM.drawNodeOverlay=D6e(`overlay`),bM.drawNodeUnderlay=D6e(`underlay`),bM.hasPie=function(e){return e=e[0],e._private.hasPie},bM.hasStripe=function(e){return e=e[0],e._private.hasStripe},bM.drawPie=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=t.pstyle(`pie-size`),o=t.pstyle(`pie-hole`),s=t.pstyle(`pie-start-angle`).pfValue,l=r.x,u=r.y,d=t.width(),f=t.height(),p=Math.min(d,f)/2,m,h=0;if(this.usePaths()&&(l=0,u=0),a.units===`%`?p*=a.pfValue:a.pfValue!==void 0&&(p=a.pfValue/2),o.units===`%`?m=p*o.pfValue:o.pfValue!==void 0&&(m=o.pfValue/2),!(m>=p))for(var g=1;g<=i.pieBackgroundN;g++){var _=t.pstyle(`pie-`+g+`-background-size`).value,v=t.pstyle(`pie-`+g+`-background-color`).value,y=t.pstyle(`pie-`+g+`-background-opacity`).value*n,b=_/100;b+h>1&&(b=1-h);var x=1.5*Math.PI+2*Math.PI*h;x+=s;var S=2*Math.PI*b,C=x+S;_===0||h>=1||h+b>1||(m===0?(e.beginPath(),e.moveTo(l,u),e.arc(l,u,p,x,C),e.closePath()):(e.beginPath(),e.arc(l,u,p,x,C),e.arc(l,u,m,C,x,!0),e.closePath()),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),h+=b)}},bM.drawStripe=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),l=t.height(),u=0,d=this.usePaths();e.save();var f=t.pstyle(`stripe-direction`).value,p=t.pstyle(`stripe-size`);switch(f){case`vertical`:break;case`righward`:e.rotate(-Math.PI/2)}var m=s,h=l;p.units===`%`?(m*=p.pfValue,h*=p.pfValue):p.pfValue!==void 0&&(m=p.pfValue,h=p.pfValue),d&&(a=0,o=0),o-=m/2,a-=h/2;for(var g=1;g<=i.stripeBackgroundN;g++){var _=t.pstyle(`stripe-`+g+`-background-size`).value,v=t.pstyle(`stripe-`+g+`-background-color`).value,y=t.pstyle(`stripe-`+g+`-background-opacity`).value*n,b=_/100;b+u>1&&(b=1-u),!(_===0||u>=1||u+b>1)&&(e.beginPath(),e.rect(a,o+h*u,m,h*b),e.closePath(),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),u+=b)}e.restore()},xM={},O6e=100,xM.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},xM.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,i=0;it.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!f&&(d[t.NODE]=!0,d[t.SELECT_BOX]=!0);var y=n.style(),b=n.zoom(),x=o===void 0?b:o,S=n.pan(),C={x:S.x,y:S.y},w={zoom:b,pan:{x:S.x,y:S.y}},T=t.prevViewport;T!==void 0&&w.zoom===T.zoom&&w.pan.x===T.pan.x&&w.pan.y===T.pan.y&&(!g||h)&&(t.motionBlurPxRatio=1),s&&(C=s),x*=l,C.x*=l,C.y*=l;var E=t.getCachedZSortedEles();function D(e,n,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,a),e.globalCompositeOperation=o}function O(e,n){var a,l,d,f;!t.clearingMotionBlur&&(e===u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||e===u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(a={x:S.x*m,y:S.y*m},l=b*m,d=t.canvasWidth*m,f=t.canvasHeight*m):(a=C,l=x,d=t.canvasWidth,f=t.canvasHeight),e.setTransform(1,0,0,1,0,0),n===`motionBlur`?D(e,0,0,d,f):!r&&(n===void 0||n)&&e.clearRect(0,0,d,f),i||(e.translate(a.x,a.y),e.scale(l,l)),s&&e.translate(s.x,s.y),o&&e.scale(o,o)}if(f||(t.textureDrawLastFrame=!1),f){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var k=t.data.bufferContexts[t.TEXTURE_BUFFER];k.setTransform(1,0,0,1,0,0),k.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:k,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult});var w=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}d[t.DRAG]=!1,d[t.NODE]=!1;var A=u.contexts[t.NODE],j=t.textureCache.texture,w=t.textureCache.viewport;A.setTransform(1,0,0,1,0,0),p?D(A,0,0,w.width,w.height):A.clearRect(0,0,w.width,w.height);var M=y.core(`outside-texture-bg-color`).value,ee=y.core(`outside-texture-bg-opacity`).value;t.colorFillStyle(A,M[0],M[1],M[2],ee),A.fillRect(0,0,w.width,w.height);var b=n.zoom();O(A,!1),A.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l),A.drawImage(j,w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var te=n.extent(),ne=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),re=t.hideEdgesOnViewport&&ne,ie=[];if(ie[t.NODE]=!d[t.NODE]&&p&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,ie[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),ie[t.DRAG]=!d[t.DRAG]&&p&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,ie[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),d[t.NODE]||i||a||ie[t.NODE]){var ae=p&&!ie[t.NODE]&&m!==1,A=r||(ae?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]);O(A,p&&!ae?`motionBlur`:void 0),re?t.drawCachedNodes(A,E.nondrag,l,te):t.drawLayeredElements(A,E.nondrag,l,te),t.debug&&t.drawDebugPoints(A,E.nondrag),!i&&!p&&(d[t.NODE]=!1)}if(!a&&(d[t.DRAG]||i||ie[t.DRAG])){var ae=p&&!ie[t.DRAG]&&m!==1,A=r||(ae?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);O(A,p&&!ae?`motionBlur`:void 0),re?t.drawCachedNodes(A,E.drag,l,te):t.drawCachedElements(A,E.drag,l,te),t.debug&&t.drawDebugPoints(A,E.drag),!i&&!p&&(d[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,O),p&&m!==1){var oe=u.contexts[t.NODE],se=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],ce=u.contexts[t.DRAG],le=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],ue=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!v?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):D(e,0,0,t.canvasWidth,t.canvasHeight);var i=m;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(d[t.NODE]||ie[t.NODE])&&(ue(oe,se,ie[t.NODE]),d[t.NODE]=!1),(d[t.DRAG]||ie[t.DRAG])&&(ue(ce,le,ie[t.DRAG]),d[t.DRAG]=!1)}t.prevViewport=w,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),p&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!f,t.mbFrames=0,d[t.NODE]=!0,d[t.DRAG]=!0,t.redraw()},O6e)),r||n.emit(`render`)},xM.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,a=r.style(),o=e.drawOnlyNodeLayer,s=e.drawAllLayers,l=i.canvasNeedsRedraw,u=e.forcedContext;if(n.showFps||!o&&l[n.SELECT_BOX]&&!s){var d=u||i.contexts[n.SELECT_BOX];if(t(d),n.selection[4]==1&&(n.hoverData.selecting||n.touchData.selecting)){var f=n.cy.zoom(),p=a.core(`selection-box-border-width`).value/f;d.lineWidth=p,d.fillStyle=`rgba(`+a.core(`selection-box-color`).value[0]+`,`+a.core(`selection-box-color`).value[1]+`,`+a.core(`selection-box-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),p>0&&(d.strokeStyle=`rgba(`+a.core(`selection-box-border-color`).value[0]+`,`+a.core(`selection-box-border-color`).value[1]+`,`+a.core(`selection-box-border-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){var f=n.cy.zoom(),m=i.bgActivePosistion;d.fillStyle=`rgba(`+a.core(`active-bg-color`).value[0]+`,`+a.core(`active-bg-color`).value[1]+`,`+a.core(`active-bg-color`).value[2]+`,`+a.core(`active-bg-opacity`).value+`)`,d.beginPath(),d.arc(m.x,m.y,a.core(`active-bg-size`).pfValue/f,0,2*Math.PI),d.fill()}var h=n.lastRedrawTime;if(n.showFps&&h){h=Math.round(h);var g=Math.round(1e3/h),_=`1 frame = `+h+` ms = `+g+` fps`;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`,k6e||=d.measureText(_).actualBoundingBoxAscent,d.fillText(_,0,k6e),d.strokeRect(0,k6e+10,250,20),d.fillRect(0,k6e+10,250*Math.min(g/60,1),20)}s||(l[n.SELECT_BOX]=!1)}},A6e=typeof Float32Array<`u`?Float32Array:Array,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),j6e=function(){function e(t,n,r,i){wE(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=i(t,n,n),this.scratch=i(t,n,this.texHeight,`scratch`)}return TE(e,[{key:`lock`,value:function(){this.locked=!0}},{key:`getKeys`,value:function(){return new Set(this.keyToLocation.keys())}},{key:`getScale`,value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,a=r/n,o=t*a,s=n*a;return o>i&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}}},{key:`draw`,value:function(e,t,n){var r=this;if(this.locked)throw Error(`can't draw, atlas is locked`);var i=this.texSize,a=this.texRows,o=this.texHeight,s=this.getScale(t),l=s.scale,u=s.texW,d=s.texH,f=function(e,r){if(n&&r){var i=r.context,a=e.x,s=e.row,u=a,d=o*s;i.save(),i.translate(u,d),i.scale(l,l),n(i,t),i.restore()}},p=[null,null],m=function(){f(r.freePointer,r.canvas),p[0]={x:r.freePointer.x,y:r.freePointer.row*o,w:u,h:d},p[1]={x:r.freePointer.x+u,y:r.freePointer.row*o,w:0,h:d},r.freePointer.x+=u,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},h=function(){var e=r.scratch,t=r.canvas;e.clear(),f({x:0,row:0},e);var n=i-r.freePointer.x,a=u-n,s=o,l=r.freePointer.x,m=r.freePointer.row*o,h=n;t.context.drawImage(e,0,0,h,s,l,m,h,s),p[0]={x:l,y:m,w:h,h:d};var g=n,_=(r.freePointer.row+1)*o,v=a;t&&t.context.drawImage(e,g,0,v,s,0,_,v,s),p[1]={x:0,y:_,w:v,h:d},r.freePointer.x=a,r.freePointer.row++},g=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+u<=i)m();else if(this.freePointer.row>=a-1)return!1;else this.freePointer.x===i?(g(),m()):this.enableWrapping?h():(g(),m());return this.keyToLocation.set(e,p),this.needsBuffer=!0,p}},{key:`getOffsets`,value:function(e){return this.keyToLocation.get(e)}},{key:`isEmpty`,value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:`canFit`,value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return this.freePointer.x+r>t?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},r=n.forceRedraw,i=r!==void 0&&r,a=n.filterEle,o=a===void 0?function(){return!0}:a,s=n.filterType,l=s===void 0?function(){return!0}:s,u=!1,d=!1,f=EE(e),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;if(o(m)){var h=EE(this.renderTypes.values()),g;try{var _=function(){var e=g.value,n=e.type;if(l(n)){var r=t.collections.get(e.collection),a=e.getKey(m),o=Array.isArray(a)?a:[a];if(i)o.forEach(function(e){return r.markKeyForGC(e)}),d=!0;else{var s=e.getID?e.getID(m):m.id(),f=t._key(n,s),p=t.typeAndIdToKey.get(f);p!==void 0&&!vZe(o,p)&&(u=!0,t.typeAndIdToKey.delete(f),p.forEach(function(e){return r.markKeyForGC(e)}))}}};for(h.s();!(g=h.n()).done;)_()}catch(e){h.e(e)}finally{h.f()}}}}catch(e){f.e(e)}finally{f.f()}return d&&(this.gc(),u=!1),u}},{key:`gc`,value:function(){var e=EE(this.collections.values()),t;try{for(e.s();!(t=e.n()).done;)t.value.gc()}catch(t){e.e(t)}finally{e.f()}}},{key:`getOrCreateAtlas`,value:function(e,t,n,r){var i=this.renderTypes.get(t),a=this.collections.get(i.collection),o=!1,s=a.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),o=!0});if(o){var l=i.getID?i.getID(e):e.id(),u=this._key(t,l);this.typeAndIdToKey.has(u)?this.typeAndIdToKey.get(u).push(r):this.typeAndIdToKey.set(u,[r])}return s}},{key:`getAtlasInfo`,value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var a=r.getBoundingBox(e,i),o=n.getOrCreateAtlas(e,t,a,i),s=DE(o.getOffsets(i),2),l=s[0];return{atlas:o,tex:l,tex1:l,tex2:s[1],bb:a}})}},{key:`getDebugInfo`,value:function(){var e=[],t=EE(this.collections),n;try{for(t.s();!(n=t.n()).done;){var r=DE(n.value,2),i=r[0],a=r[1].getCounts(),o=a.keyCount,s=a.atlasCount;e.push({type:i,keyCount:o,atlasCount:s})}}catch(e){t.e(e)}finally{t.f()}return e}}])}(),N6e=function(){function e(t){wE(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return TE(e,[{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(e,t){return t})}},{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(e){return this.batchAtlases.length!==this.maxAtlasesPerBatch||this.batchAtlases.includes(e)}},{key:`getAtlasIndexForBatch`,value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error(`cannot add more atlases to batch`);this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),P6e=` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } -`,D6e=` +`,F6e=` 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); } -`,EM=` +`,I6e=` 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; } -`,O6e=` +`,L6e=` float ellipseSD(vec2 p, vec2 ab) { p = abs( p ); // symmetry @@ -664,7 +666,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; } -`,DM={SCREEN:{name:`screen`,screen:!0},PICKING:{name:`picking`,picking:!0}},k6e={IGNORE:1,USE_BB:2},A6e=0,j6e=1,M6e=2,N6e=3,OM=4,P6e=5,kM=6,AM=7,F6e=function(){function e(t,n,r){NE(this,e),this.r=t,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=tZe,this.atlasManager=new w6e(t,r),this.batchManager=new T6e(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(DM.SCREEN),this.pickingProgram=this._createShaderProgram(DM.PICKING),this.vao=this._createVAO()}return PE(e,[{key:`addAtlasCollection`,value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:`addTextureAtlasRenderType`,value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:`addSimpleShapeRenderType`,value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:`invalidate`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:`gc`,value:function(){this.atlasManager.gc()}},{key:`_createShaderProgram`,value:function(e){var t=this.gl,n=`#version 300 es +`,R6e={SCREEN:{name:`screen`,screen:!0},PICKING:{name:`picking`,picking:!0}},z6e={IGNORE:1,USE_BB:2},B6e=0,V6e=1,H6e=2,U6e=3,CM=4,W6e=5,wM=6,TM=7,EM=function(){function e(t,n,r){wE(this,e),this.r=t,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=dD,this.atlasManager=new M6e(t,r),this.batchManager=new N6e(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(R6e.SCREEN),this.pickingProgram=this._createShaderProgram(R6e.PICKING),this.vao=this._createVAO()}return TE(e,[{key:`addAtlasCollection`,value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:`addTextureAtlasRenderType`,value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:`addSimpleShapeRenderType`,value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:`invalidate`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:`gc`,value:function(){this.atlasManager.gc()}},{key:`_createShaderProgram`,value:function(e){var t=this.gl,n=`#version 300 es precision highp float; uniform mat3 uPanZoomMatrix; @@ -711,7 +713,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho int vid = gl_VertexID; vec2 position = aPosition; // TODO make this a vec3, simplifies some code below - if(aVertType == ${A6e}) { + if(aVertType == ${B6e}) { float texX = aTex.x; // texture coordinates float texY = aTex.y; float texW = aTex.z; @@ -729,8 +731,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } - else if(aVertType == ${OM} || aVertType == ${AM} - || aVertType == ${P6e} || aVertType == ${kM}) { // simple shapes + else if(aVertType == ${CM} || aVertType == ${TM} + || aVertType == ${W6e} || aVertType == ${wM}) { // simple shapes // the bounding box is needed by the fragment shader vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat @@ -745,7 +747,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } - else if(aVertType == ${j6e}) { + else if(aVertType == ${V6e}) { vec2 source = aPointAPointB.xy; vec2 target = aPointAPointB.zw; @@ -760,7 +762,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); vColor = aColor; } - else if(aVertType == ${M6e}) { + else if(aVertType == ${H6e}) { vec2 pointA = aPointAPointB.xy; vec2 pointB = aPointAPointB.zw; vec2 pointC = aPointCPointD.xy; @@ -809,7 +811,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho vColor = aColor; } - else if(aVertType == ${N6e} && vid < 3) { + else if(aVertType == ${U6e} && vid < 3) { // massage the first triangle into an edge arrow if(vid == 0) position = vec2(-0.15, -0.3); @@ -829,7 +831,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho vVertType = aVertType; vIndex = aIndex; } - `,r=this.batchManager.getIndexArray(),i=eZe(t,n,`#version 300 es + `,r=this.batchManager.getIndexArray(),i=pZe(t,n,`#version 300 es precision highp float; // declare texture unit for each texture atlas in the batch @@ -854,10 +856,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho out vec4 outColor; - ${E6e} - ${D6e} - ${EM} - ${O6e} + ${P6e} + ${F6e} + ${I6e} + ${L6e} vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha return vec4( @@ -873,21 +875,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } void main(void) { - if(vVertType == ${A6e}) { + if(vVertType == ${B6e}) { // look up the texel from the texture unit ${r.map(function(e){return`if(vAtlasId == ${e}) outColor = texture(uTexture${e}, vTexCoord);`}).join(` else `)} } - else if(vVertType == ${N6e}) { + else if(vVertType == ${U6e}) { // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; outColor = blend(vColor, uBGColor); outColor.a = 1.0; // make opaque, masks out line under arrow } - else if(vVertType == ${OM} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + else if(vVertType == ${CM} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done } - else if(vVertType == ${OM} || vVertType == ${AM} - || vVertType == ${P6e} || vVertType == ${kM}) { // use SDF + else if(vVertType == ${CM} || vVertType == ${TM} + || vVertType == ${W6e} || vVertType == ${wM}) { // use SDF float outerBorder = vBorderWidth[0]; float innerBorder = vBorderWidth[1]; @@ -898,11 +900,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center float d; // signed distance - if(vVertType == ${OM}) { + if(vVertType == ${CM}) { d = rectangleSD(p, b); - } else if(vVertType == ${AM} && w == h) { + } else if(vVertType == ${TM} && w == h) { d = circleSD(p, b.x); // faster than ellipse - } else if(vVertType == ${AM}) { + } else if(vVertType == ${TM}) { d = ellipseSD(p, b); } else { d = roundRectangleSD(p, b, vCornerRadius.wzyx); @@ -942,17 +944,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${e.picking?`if(outColor.a == 0.0) discard; else outColor = vIndex;`:``} } - `);i.aPosition=t.getAttribLocation(i,`aPosition`),i.aIndex=t.getAttribLocation(i,`aIndex`),i.aVertType=t.getAttribLocation(i,`aVertType`),i.aTransform=t.getAttribLocation(i,`aTransform`),i.aAtlasId=t.getAttribLocation(i,`aAtlasId`),i.aTex=t.getAttribLocation(i,`aTex`),i.aPointAPointB=t.getAttribLocation(i,`aPointAPointB`),i.aPointCPointD=t.getAttribLocation(i,`aPointCPointD`),i.aLineWidth=t.getAttribLocation(i,`aLineWidth`),i.aColor=t.getAttribLocation(i,`aColor`),i.aCornerRadius=t.getAttribLocation(i,`aCornerRadius`),i.aBorderColor=t.getAttribLocation(i,`aBorderColor`),i.uPanZoomMatrix=t.getUniformLocation(i,`uPanZoomMatrix`),i.uAtlasSize=t.getUniformLocation(i,`uAtlasSize`),i.uBGColor=t.getUniformLocation(i,`uBGColor`),i.uZoom=t.getUniformLocation(i,`uZoom`),i.uTextures=[];for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:DM.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,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(e,t){return e.visible()?t&&t.isVisible?t.isVisible(e):!0:!1}},{key:`drawTexture`,value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var o=a.getTexPickingMode(e);if(o===k6e.IGNORE)return;if(o==k6e.USE_BB){this.drawPickingRectangle(e,t,n);return}}var s=FE(r.getAtlasInfo(e,n)),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,d=u.atlas,f=u.tex1,p=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var m=i.getAtlasIndexForBatch(d),h=0,g=[[f,!0],[p,!1]];h=this.maxInstances&&this.endBatch()}}}}catch(e){s.e(e)}finally{s.f()}}}},{key:`setTransformMatrix`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,l=r.tex2,u=s.w/(s.w+l.w);i||(u=1-u);var d=this._getAdjustedBB(o,a,i,u);this._applyTransformMatrix(t,d,n,e)}else{var f=n.getBoundingBox(e),p=this._getAdjustedBB(f,a,!0,1);this._applyTransformMatrix(t,p,n,e)}}},{key:`_applyTransformMatrix`,value:function(e,t,n,r){var i,a;dZe(e);var o=n.getRotation?n.getRotation(r):0;if(o!==0){var s=n.getRotationPoint(r),l=s.x,u=s.y;DD(e,e,[l,u]),pZe(e,e,o);var d=n.getRotationOffset(r);i=d.x+(t.xOffset||0),a=d.y+(t.yOffset||0)}else i=t.x1,a=t.y1;DD(e,e,[i,a]),OD(e,e,[t.w,t.h])}},{key:`_getAdjustedBB`,value:function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,l=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var u=0,d=o*r;return n&&r<1?o=d:!n&&r<1&&(u=o-d,i+=u,o=d),{x1:i,y1:a,w:o,h:s,xOffset:u,yOffset:l}}},{key:`drawPickingRectangle`,value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=OM,SD(t,this.indexBuffer.getView(i)),xD([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:`drawNode`,value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(a===void 0||r.isSimple&&!r.isSimple(e,this.renderTarget)){this.drawTexture(e,t,n);return}var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,a===P6e||a===kM){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),u=this.cornerRadiusBuffer.getView(o);u[0]=l,u[1]=l,u[2]=l,u[3]=l,a===kM&&(u[0]=0,u[2]=0)}SD(t,this.indexBuffer.getView(o));var d=this.renderTarget.picking?1:n===`node-body`?e.effectiveOpacity():1,f=this.renderTarget.picking?1:e.pstyle(i.opacity).value*d,p=e.pstyle(i.color).value;xD(p,f,this.colorBuffer.getView(o));var m=this.lineWidthBuffer.getView(o);if(m[0]=0,m[1]=0,i.border){var h=e.pstyle(`border-width`).value;if(h>0){var g=e.pstyle(`border-color`).value;xD(g,d*e.pstyle(`border-opacity`).value,this.borderColorBuffer.getView(o));var _=e.pstyle(`border-position`).value;if(_===`inside`)m[0]=0,m[1]=-h;else if(_===`outside`)m[0]=h,m[1]=0;else{var v=h/2;m[0]=v,m[1]=-v}}}var y=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,y,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:`_getVertTypeForShape`,value:function(e,t){switch(e.pstyle(t).value){case`rectangle`:return OM;case`ellipse`:return AM;case`roundrectangle`:case`round-rectangle`:return P6e;case`bottom-round-rectangle`:return kM;default:return}}},{key:`_getCornerRadius`,value:function(e,t,n){var r=n.w,i=n.h;if(e.pstyle(t).value===`auto`)return Ak(r,i);var a=e.pstyle(t).pfValue,o=r/2,s=i/2;return Math.min(a,s,o)}},{key:`drawEdgeArrow`,value:function(e,t,n){if(e.visible()){var r=e._private.rscratch,i,a,o;if(n===`source`?(i=r.arrowStartX,a=r.arrowStartY,o=r.srcArrowAngle):(i=r.arrowEndX,a=r.arrowEndY,o=r.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(a)||a==null||isNaN(o)||o==null)&&e.pstyle(n+`-arrow-shape`).value!==`none`){var s=e.pstyle(n+`-arrow-color`).value,l=e.pstyle(`opacity`).value*e.pstyle(`line-opacity`).value,u=e.pstyle(`width`).pfValue,d=e.pstyle(`arrow-scale`).value,f=this.r.getArrowWidth(u,d),p=this.instanceCount,m=this.transformBuffer.getMatrixView(p);dZe(m),DD(m,m,[i,a]),OD(m,m,[f,f]),pZe(m,m,o),this.vertTypeBuffer.getView(p)[0]=N6e,SD(t,this.indexBuffer.getView(p)),xD(s,l,this.colorBuffer.getView(p)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:`drawEdgeLine`,value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle(`opacity`).value,i=e.pstyle(`line-opacity`).value,a=e.pstyle(`width`).pfValue,o=e.pstyle(`line-color`).value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=j6e,SD(t,this.indexBuffer.getView(l)),xD(o,s,this.colorBuffer.getView(l));var u=this.lineWidthBuffer.getView(l);u[0]=a;var d=this.pointAPointBBuffer.getView(l);d[0]=n[0],d[1]=n[1],d[2]=n[2],d[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var f=0;f=this.maxInstances&&this.endBatch()}}}}},{key:`_isValidEdge`,value:function(e){var t=e._private.rscratch;return!(t.badLine||t.allpts==null||isNaN(t.allpts[0]))}},{key:`_getEdgePoints`,value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(n.length==4)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:`_getNumSegments`,value:function(e){return Math.min(15,this.maxInstances)}},{key:`_getCurveSegmentPoints`,value:function(e,t){if(e.length==4)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(r==0)n[0]=e[0],n[1]=e[1];else if(r==t)n[r*2]=e[e.length-2],n[r*2+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,r*2)}return n}},{key:`_setCurvePoint`,value:function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},s=function(e){return e.pstyle(`text-events`).strValue===`yes`?k6e.USE_BB:k6e.IGNORE},l=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}};n.drawing.addAtlasCollection(`node`,{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection(`label`,{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType(`node-body`,{collection:`node`,getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType(`node-body`,{getBoundingBox:l,isSimple:iZe,shapeProps:{shape:`shape`,color:`background-color`,opacity:`background-opacity`,radius:`corner-radius`,border:!0}}),n.drawing.addSimpleShapeRenderType(`node-overlay`,{getBoundingBox:l,isVisible:o(`overlay`),shapeProps:{shape:`overlay-shape`,color:`overlay-color`,opacity:`overlay-opacity`,padding:`overlay-padding`,radius:`overlay-corner-radius`}}),n.drawing.addSimpleShapeRenderType(`node-underlay`,{getBoundingBox:l,isVisible:o(`underlay`),shapeProps:{shape:`underlay-shape`,color:`underlay-color`,opacity:`underlay-opacity`,padding:`underlay-padding`,radius:`underlay-corner-radius`}}),n.drawing.addTextureAtlasRenderType(`label`,{collection:`label`,getTexPickingMode:s,getKey:L6e(t.getLabelKey,null),getBoundingBox:R6e(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a(`label`)}),n.drawing.addTextureAtlasRenderType(`edge-source-label`,{collection:`label`,getTexPickingMode:s,getKey:L6e(t.getSourceLabelKey,`source`),getBoundingBox:R6e(t.getSourceLabelBox,`source`),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i(`source`),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a(`source-label`)}),n.drawing.addTextureAtlasRenderType(`edge-target-label`,{collection:`label`,getTexPickingMode:s,getKey:L6e(t.getTargetLabelKey,`target`),getBoundingBox:R6e(t.getTargetLabelBox,`target`),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i(`target`),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a(`target-label`)});var u=_O(function(){console.log(`garbage collect flag set`),n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&u()}),gZe(n)},L6e=function(e,t){return function(n){var r=e(n),i=hZe(n,t);return i.length>1?i.map(function(e,t){return`${r}_${t}`}):r}},R6e=function(e,t){return function(n,r){var i=e(n);if(typeof r==`string`){var a=r.indexOf(`_`);if(a>0){var o=Number(r.substring(a+1)),s=hZe(n,t),l=i.h/s.length,u=l*o,d=i.y1+u;return{x1:i.x1,w:i.w,y1:d,h:l,yOffset:u}}}return i}},jM={},jM.drawPolygonPath=function(e,t,n,r,i,a){var o=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],n+s*a[1]);for(var l=1;l0&&a>0){p.clearRect(0,0,i,a),p.globalCompositeOperation=`source-over`;var m=this.getCachedZSortedEles();if(e.full)p.translate(-n.x1*l,-n.y1*l),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(n.x1*l,n.y1*l);else{var h=t.pan(),g={x:h.x*l,y:h.y*l};l*=t.zoom(),p.translate(g.x,g.y),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(-g.x,-g.y)}e.bg&&(p.globalCompositeOperation=`destination-over`,p.fillStyle=e.bg,p.rect(0,0,i,a),p.fill())}return f},IM.png=function(e){return EZe(e,this.bufferCanvasImage(e),`image/png`)},IM.jpg=function(e){return EZe(e,this.bufferCanvasImage(e),`image/jpeg`)},V6e={},V6e.nodeShapeImpl=function(e,t,n,r,i,a,o,s){switch(e){case`ellipse`:return this.drawEllipsePath(t,n,r,i,a);case`polygon`:return this.drawPolygonPath(t,n,r,i,a,o);case`round-polygon`:return this.drawRoundPolygonPath(t,n,r,i,a,o,s);case`roundrectangle`:case`round-rectangle`:return this.drawRoundRectanglePath(t,n,r,i,a,s);case`cutrectangle`:case`cut-rectangle`:return this.drawCutRectanglePath(t,n,r,i,a,o,s);case`bottomroundrectangle`:case`bottom-round-rectangle`:return this.drawBottomRoundRectanglePath(t,n,r,i,a,s);case`barrel`:return this.drawBarrelPath(t,n,r,i,a)}},H6e=FD,LM=FD.prototype,LM.CANVAS_LAYERS=3,LM.SELECT_BOX=0,LM.DRAG=1,LM.NODE=2,LM.WEBGL=3,LM.CANVAS_TYPES=[`2d`,`2d`,`2d`,`webgl2`],LM.BUFFER_COUNT=3,LM.TEXTURE_BUFFER=0,LM.MOTIONBLUR_BUFFER_NODE=1,LM.MOTIONBLUR_BUFFER_DRAG=2,LM.redrawHint=function(e,t){var n=this;switch(e){case`eles`:n.data.canvasNeedsRedraw[LM.NODE]=t;break;case`drag`:n.data.canvasNeedsRedraw[LM.DRAG]=t;break;case`select`:n.data.canvasNeedsRedraw[LM.SELECT_BOX]=t;break;case`gc`:n.data.gc=!0}},U6e=typeof Path2D<`u`,LM.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e},LM.usePaths=function(){return U6e&&this.pathsEnabled},LM.setImgSmoothing=function(e,t){e.imageSmoothingEnabled==null?(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t):e.imageSmoothingEnabled=t},LM.getImgSmoothing=function(e){return e.imageSmoothingEnabled==null?e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled:e.imageSmoothingEnabled},LM.makeOffscreenCanvas=function(e,t){var n;return(typeof OffscreenCanvas>`u`?`undefined`:zE(OffscreenCanvas))===`undefined`?(n=this.cy.window().document.createElement(`canvas`),n.width=e,n.height=t):n=new OffscreenCanvas(e,t),n},[c6e,xM,SM,_6e,CM,wM,TM,I6e,jM,IM,V6e].forEach(function(e){aO(LM,e)}),W6e=[{type:`layout`,extensions:$4e},{type:`renderer`,extensions:[{name:`null`,impl:HXe},{name:`base`,impl:cM},{name:`canvas`,impl:H6e}]}],G6e={},RM={},K6e=function(){if(arguments.length===2)return DZe.apply(null,arguments);if(arguments.length===3)return ID.apply(null,arguments);if(arguments.length===4)return LD.apply(null,arguments);if(arguments.length===5)return OZe.apply(null,arguments);FO(`Invalid extension access syntax`)},Aj.prototype.extension=K6e,W6e.forEach(function(e){e.extensions.forEach(function(t){ID(e.type,t.name,t.impl)})}),zM=function(){if(!(this instanceof zM))return new zM;this.length=0},BM=zM.prototype,BM.instanceString=function(){return`stylesheet`},BM.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this},BM.css=function(e,t){var n=this.length-1;if(HD(e))this[n].properties.push({name:e,value:t});else if(GD(e))for(var r=e,i=Object.keys(r),a=0;a{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(4);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:te=_,ee=a+-C/O,n[2]=ee,n[3]=te;break;case 2:ee=x,te=o+S*O,n[2]=ee,n[3]=te;break;case 3:te=b,ee=a+C/O,n[2]=ee,n[3]=te;break;case 4:ee=y,te=o+-S*O,n[2]=ee,n[3]=te}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(Y6e()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(Y6e()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.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},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.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%u.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-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 e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.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=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(d.WORLD_CENTER_X-o.x/2,d.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(t,null,0,359,0,r);var i=_.calculateBounds(e),a=new v;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var v=_[0];_.splice(0,1);var b=d.indexOf(v);b>=0&&d.splice(b,1),m--,f--}h=t==null?0:(d.indexOf(_[0])+1)%m;for(var x=Math.abs(r-n)/f,S=h;p!=f;S=++S%m){var C=d[S].getOtherEnd(e);if(C!=t){var w=(n+p*x)%360,T=(w+x)%360;y.branchRadialLayout(C,e,w,T,i+a,a),p++}}},y.maxDiagonalInTree=function(e){for(var t=h.MIN_VALUE,n=0;nt&&(t=r)}return t},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;u=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},y.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},y.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},y.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rl&&(l=d.rect.height)}n+=l+e.verticalPadding}},y.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},y.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},y.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},y.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var d=i;d<=a;d++)l[0]+=this.grid[d][o-1].length+this.grid[d][o].length-1;if(a0)for(var d=o;d<=s;d++)l[3]+=this.grid[i-1][d].length+this.grid[i][d].length-1;for(var f=h.MAX_VALUE,p,m,g=0;g{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(X6e()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(X6e()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,l=n(0).layoutBase.PointD,u=n(0).layoutBase.DimensionD,d={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function f(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function p(e){this.options=f(d,e),m(this.options)}var m=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),r.QUALITY=e.quality==`draft`?0:e.quality==`proof`?2:1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};p.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),l=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var u=0;u0){var g=n.getGraphManager().add(n.newGraph(),d);this.processChildrenList(g,o,n)}}},p.prototype.stop=function(){return this.stopped=!0,this};var h=function(e){e(`layout`,`cose-bilkent`,p)};typeof cytoscape<`u`&&h(cytoscape),e.exports=h})])})})),Q6e=l({render:()=>i8e});function HM(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}function $6e(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}function e8e(e){return new Promise(t=>{let n=Qc(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),r=VM({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),HM(e.nodes,r),$6e(e.edges,r),r.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),r.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),r.ready(e=>{P.info(`Cytoscape ready`,e),t(r)})})}function UM(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}function t8e(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}async function n8e(e,t){P.debug(`Starting cose-bilkent layout algorithm`);try{WM(e);let t=await e8e(e),n=UM(t),r=t8e(t);return P.debug(`Layout completed: ${n.length} nodes, ${r.length} edges`),{nodes:n,edges:r}}catch(e){throw P.error(`Error in cose-bilkent layout algorithm:`,e),e}}function WM(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}var r8e,i8e,a8e=o((()=>{ar(),tr(),J6e(),r8e=d(Z6e(),1),Dp(),VM.use(r8e.default),N(HM,`addNodes`),N($6e,`addEdges`),N(e8e,`createCytoscapeInstance`),N(UM,`extractPositionedNodes`),N(t8e,`extractPositionedEdges`),N(n8e,`executeCoseBilkentLayout`),N(WM,`validateLayoutData`),i8e=N(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:l},{algorithm:u})=>{let d={},f={},p=t.select(`g`);a(p,e.markers,e.type,e.diagramId);let m=p.insert(`g`).attr(`class`,`subgraphs`),h=p.insert(`g`).attr(`class`,`edgePaths`),g=p.insert(`g`).attr(`class`,`edgeLabels`),_=p.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};f[t.id]=e,d[t.id]=e,await n(m,t)}else{let n={...t};d[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await n8e({...e,nodes:e.nodes.map(e=>{let t=d[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=d[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=d[t.start??``],a=d[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};l(o,r(h,o,f,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};l(i,r(h,i,f,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`)})),o8e,s8e,GM,c8e,l8e,KM,qM,JM,YM=o((()=>{LTe(),Y_(),fv(),V_(),I_(),Gm(),Ls(),ar(),tr(),o8e={common:gs,getConfig:ns,insertCluster:q_,insertEdge:dv,insertEdgeLabel:ov,insertMarkers:gNe,insertNode:L_,interpolateToCurve:BDe,labelHelper:n_,log:P,positionEdgeLabel:uNe},s8e=[`elk.stress`,`elk.force`,`elk.mrtree`,`elk.sporeOverlap`,`elk.box`,`elk.rectpacking`],GM=Object.create(null),c8e=N(e=>{for(let t of e)GM[t.name]=t},`registerLayoutLoaders`),l8e=N(()=>{let e=N(async()=>await Promise.resolve().then(()=>(BWe(),hUe)),`loader`);return[{name:`elk`,loader:e,algorithm:`elk.layered`},...s8e.map(t=>({name:t,loader:e,algorithm:t}))]},`elkLayoutLoaders`),N(()=>{c8e([{name:`dagre`,loader:N(async()=>await Promise.resolve().then(()=>(pqe(),QKe)),`loader`)},{name:`swimlane`,loader:N(async()=>await Promise.resolve().then(()=>(sYe(),Hw)),`loader`)},{name:`cose-bilkent`,loader:N(async()=>await Promise.resolve().then(()=>(a8e(),Q6e)),`loader`)},...l8e()])},`registerDefaultLayoutLoaders`)(),KM=N(async(e,t)=>{if(!Object.hasOwn(GM,e.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=GM[e.layoutAlgorithm],r=await n.loader();return ITe(t,e.config),r.render(e,t,o8e,{algorithm:n.algorithm})},`render`),qM=`dagre`,JM=N((e=``,{fallback:t=qM}={})=>{if(Object.hasOwn(GM,e))return e;for(let n of[t,qM])if(Object.hasOwn(GM,n))return P.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Neither layout algorithm ${e}, ${t}, nor ${qM} is registered.`)},`getRegisteredLayoutAlgorithm`)})),u8e,d8e,f8e,p8e,m8e,h8e,g8e,_8e=o((()=>{u8e=`comm`,d8e=`rule`,f8e=`decl`,p8e=`@import`,m8e=`@namespace`,h8e=`@keyframes`,g8e=`@layer`}));function q(e){return e.trim()}function XM(e,t,n){return e.replace(t,n)}function v8e(e,t,n){return e.indexOf(t,n)}function ZM(e,t){return e.charCodeAt(t)|0}function QM(e,t,n){return e.slice(t,n)}function $M(e){return e.length}function eN(e){return e.length}function y8e(e,t){return t.push(e),e}var b8e,tN,nN=o((()=>{b8e=Math.abs,tN=String.fromCharCode}));function x8e(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:N8e,column:sN,length:o,return:``,siblings:s}}function rN(){return lN}function S8e(){return lN=cN>0?ZM(uN,--cN):0,sN--,lN===10&&(sN=1,N8e--),lN}function iN(){return lN=cN2||w8e(lN)>3?``:` `}function k8e(e,t){for(;--t&&iN()&&!(lN<48||lN>102||lN>57&&lN<65||lN>70&&lN<97););return oN(e,C8e()+(t<6&&aN()==32&&iN()==32))}function A8e(e){for(;iN();)switch(lN){case e:return cN;case 34:case 39:e!==34&&e!==39&&A8e(lN);break;case 40:e===41&&A8e(e);break;case 92:iN()}return cN}function j8e(e,t){for(;iN()&&e+lN!==57&&(e+lN!==84||aN()!==47););return`/*`+oN(t,cN-1)+`*`+tN(e===47?e:iN())}function M8e(e){for(;!w8e(aN());)iN();return oN(e,cN)}var N8e,sN,P8e,cN,lN,uN,F8e=o((()=>{nN(),N8e=1,sN=1,P8e=0,cN=0,lN=0,uN=``}));function I8e(e){return E8e(dN(``,null,null,null,[``],e=T8e(e),0,[0],e))}function dN(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,p=0,m=0,h=0,g=1,_=1,v=1,y=0,b=``,x=i,S=a,C=r,w=b;_;)switch(h=y,y=iN()){case 40:if(h!=108&&ZM(w,f-1)==58){v8e(w+=XM(D8e(y),`&`,`&\f`),`&\f`,b8e(u?s[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:w+=D8e(y);break;case 9:case 10:case 13:case 32:w+=O8e(h);break;case 92:w+=k8e(C8e()-1,7);continue;case 47:switch(aN()){case 42:case 47:y8e(R8e(j8e(iN(),C8e()),t,n,l),l),(w8e(h||1)==5||w8e(aN()||1)==5)&&$M(w)&&QM(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*g:s[u++]=$M(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=XM(w,/\f/g,``)),m>0&&($M(w)-f||g===0&&h===47)&&y8e(m>32?z8e(w+`;`,r,n,f-1,l):z8e(XM(w,` `,``)+`;`,r,n,f-2,l),l);break;case 59:w+=`;`;default:if(y8e(C=L8e(w,t,n,u,d,i,s,b,x=[],S=[],f,a),a),y===123){if(d===0)dN(w,t,C,C,x,a,f,s,S);else{switch(p){case 99:if(ZM(w,3)===110)break;case 108:if(ZM(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?dN(e,C,C,r&&y8e(L8e(e,C,C,0,0,i,s,b,i,x=[],f,S),S),i,S,f,s,r?x:S):dN(w,C,C,C,[``],S,0,s,S)}}}u=d=m=0,g=v=1,b=w=``,f=o;break;case 58:f=1+$M(w),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&S8e()==125)continue}switch(w+=tN(y),y*g){case 38:v=d>0?1:(w+=`\f`,-1);break;case 44:s[u++]=($M(w)-1)*v,v=1;break;case 64:aN()===45&&(w+=D8e(iN())),p=aN(),d=f=$M(b=w+=M8e(C8e())),y++;break;case 45:h===45&&$M(w)==2&&(g=0)}}return a}function L8e(e,t,n,r,i,a,o,s,l,u,d,f){for(var p=i-1,m=i===0?a:[``],h=eN(m),g=0,_=0,v=0;g0?m[y]+` `+b:XM(b,/&\f/g,m[y])))&&(l[v++]=x);return x8e(e,t,n,i===0?d8e:s,l,u,d,f)}function R8e(e,t,n,r){return x8e(e,t,n,u8e,tN(rN()),QM(e,2,-2),0,r)}function z8e(e,t,n,r,i){return x8e(e,t,n,f8e,QM(e,0,r),QM(e,r+1,-1),r,i)}var B8e=o((()=>{_8e(),nN(),F8e()})),fN=o((()=>{}));function V8e(e,t){for(var n=``,r=0;r{_8e(),nN()}));function W8e(e){var t=eN(e);return function(n,r,i,a){for(var o=``,s=0;s{nN()})),G8e=o((()=>{_8e(),nN(),B8e(),fN(),F8e(),U8e(),pN()})),K8e,mN,q8e,J8e,hN,Y8e,gN,_N,X8e,vN=o((()=>{Ls(),tr(),K8e=ym(),Dp(),mN=N((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),q8e=N((e,t)=>{mN(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),J8e=N((e,t)=>{let n=t.text.replace(ss,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),hN=N((e,t,n,r)=>{let i=e.append(`image`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,K8e.sanitizeUrl)(r);i.attr(`xlink:href`,a)},`drawImage`),Y8e=N((e,t,n,r)=>{let i=e.append(`use`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,K8e.sanitizeUrl)(r);i.attr(`xlink:href`,`#${a}`)},`drawEmbeddedImage`),gN=N(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),_N=N(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),X8e=N(()=>{let e=Qc(`.mermaidTooltip`);return e.empty()&&(e=Qc(`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`)),e},`createTooltip`)})),Z8e=l({diagram:()=>o7e});function yN(e,t,n,r,i){let a=t[e];if(!a.width){if(n)a.text=Bm(a.text,i,r),a.textLines=a.text.split(gs.lineBreakRegex).length,a.width=i,a.height=JDe(a.text,r);else{let e=a.text.split(gs.lineBreakRegex);a.textLines=e.length;let t=0;a.height=0,a.width=0;for(let n of e)a.width=Math.max(Lm(n,r),a.width),t=JDe(n,r),a.height+=t}}return a}async function bN(e,t,n,r,i){let a=i.db,o=new $5e(i);o.data.widthLimit=n.data.widthLimit/Math.min(Q5e,r.length);for(let[s,l]of r.entries()){let r=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=r,r=l.image.Y+l.image.height);let u=l.wrap&&VN.wrap,d=UN(VN);d.fontSize+=2,d.fontWeight=`bold`;let f=yN(`label`,l,u,d,o.data.widthLimit);if(f.Y=r+8,r=f.Y+f.height,l.type&&l.type.text!==``){l.type.text=`[`+l.type.text+`]`;let e=yN(`type`,l,u,UN(VN),o.data.widthLimit);e.Y=r+5,r=e.Y+e.height}if(l.descr&&l.descr.text!==``){let e=UN(VN);e.fontSize-=2;let t=yN(`descr`,l,u,e,o.data.widthLimit);t.Y=r+20,r=t.Y+t.height}if(s==0||s%Q5e===0){let e=n.data.startx+VN.diagramMarginX,t=n.data.stopy+VN.diagramMarginY+r;o.setData(e,e,t,t)}else{let e=o.data.stopx===o.data.startx?o.data.startx:o.data.stopx+VN.diagramMarginX,t=o.data.starty;o.setData(e,e,t,t)}o.name=l.alias;let p=a.getC4ShapeArray(l.alias),m=a.getC4ShapeKeys(l.alias);m.length>0&&await GN(o,e,p,m),t=l.alias;let h=a.getBoundaries(t);h.length>0&&await bN(e,t,o,h,i),l.alias!==`global`&&e7e(e,l,o),n.data.stopy=Math.max(o.data.stopy+VN.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+VN.c4ShapeMargin,n.data.stopx),zN=Math.max(zN,n.data.stopx),BN=Math.max(BN,n.data.stopy)}}var Q8e,$8e,e5e,xN,SN,t5e,CN,wN,TN,EN,DN,ON,n5e,r5e,kN,AN,i5e,a5e,o5e,s5e,c5e,l5e,u5e,d5e,f5e,p5e,m5e,h5e,g5e,_5e,v5e,y5e,b5e,jN,x5e,S5e,C5e,w5e,T5e,MN,E5e,D5e,NN,O5e,k5e,A5e,j5e,M5e,N5e,P5e,F5e,I5e,L5e,PN,FN,IN,R5e,LN,z5e,B5e,RN,V5e,H5e,U5e,W5e,G5e,K5e,q5e,J5e,Y5e,X5e,zN,BN,Z5e,Q5e,VN,$5e,HN,UN,WN,e7e,GN,KN,t7e,n7e,r7e,i7e,a7e,o7e,qN=o((()=>{vN(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),Dp(),Q8e=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,24],n=[1,25],r=[1,26],i=[1,27],a=[1,28],o=[1,63],s=[1,64],l=[1,65],u=[1,66],d=[1,67],f=[1,68],p=[1,69],m=[1,29],h=[1,30],g=[1,31],_=[1,32],v=[1,33],y=[1,34],b=[1,35],x=[1,36],S=[1,37],C=[1,38],w=[1,39],T=[1,40],E=[1,41],D=[1,42],O=[1,43],k=[1,44],A=[1,45],j=[1,46],M=[1,47],ee=[1,48],te=[1,50],ne=[1,51],re=[1,52],ie=[1,53],ae=[1,54],oe=[1,55],se=[1,56],ce=[1,57],le=[1,58],ue=[1,59],de=[1,60],fe=[14,42],pe=[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],me=[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],he=[1,82],ge=[1,83],_e=[1,84],ve=[1,85],ye=[12,14,42],be=[12,14,33,42],xe=[12,14,33,42,76,77,79,80],Se=[12,33],Ce=[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],we={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``}},`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:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:70,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:71,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:72,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:73,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{14:[1,74]},e(fe,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de}),e(fe,[2,14]),e(pe,[2,16],{12:[1,76]}),e(fe,[2,36],{12:[1,77]}),e(me,[2,19]),e(me,[2,20]),{25:[1,78]},{27:[1,79]},e(me,[2,23]),{35:80,75:81,76:he,77:ge,79:_e,80:ve},{35:86,75:81,76:he,77:ge,79:_e,80:ve},{35:87,75:81,76:he,77:ge,79:_e,80:ve},{35:88,75:81,76:he,77:ge,79:_e,80:ve},{35:89,75:81,76:he,77:ge,79:_e,80:ve},{35:90,75:81,76:he,77:ge,79:_e,80:ve},{35:91,75:81,76:he,77:ge,79:_e,80:ve},{35:92,75:81,76:he,77:ge,79:_e,80:ve},{35:93,75:81,76:he,77:ge,79:_e,80:ve},{35:94,75:81,76:he,77:ge,79:_e,80:ve},{35:95,75:81,76:he,77:ge,79:_e,80:ve},{35:96,75:81,76:he,77:ge,79:_e,80:ve},{35:97,75:81,76:he,77:ge,79:_e,80:ve},{35:98,75:81,76:he,77:ge,79:_e,80:ve},{35:99,75:81,76:he,77:ge,79:_e,80:ve},{35:100,75:81,76:he,77:ge,79:_e,80:ve},{35:101,75:81,76:he,77:ge,79:_e,80:ve},{35:102,75:81,76:he,77:ge,79:_e,80:ve},{35:103,75:81,76:he,77:ge,79:_e,80:ve},{35:104,75:81,76:he,77:ge,79:_e,80:ve},e(ye,[2,59]),{35:105,75:81,76:he,77:ge,79:_e,80:ve},{35:106,75:81,76:he,77:ge,79:_e,80:ve},{35:107,75:81,76:he,77:ge,79:_e,80:ve},{35:108,75:81,76:he,77:ge,79:_e,80:ve},{35:109,75:81,76:he,77:ge,79:_e,80:ve},{35:110,75:81,76:he,77:ge,79:_e,80:ve},{35:111,75:81,76:he,77:ge,79:_e,80:ve},{35:112,75:81,76:he,77:ge,79:_e,80:ve},{35:113,75:81,76:he,77:ge,79:_e,80:ve},{35:114,75:81,76:he,77:ge,79:_e,80:ve},{35:115,75:81,76:he,77:ge,79:_e,80:ve},{20:116,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:ge,79:_e,80:ve},{35:120,75:81,76:he,77:ge,79:_e,80:ve},{35:121,75:81,76:he,77:ge,79:_e,80:ve},{35:122,75:81,76:he,77:ge,79:_e,80:ve},{35:123,75:81,76:he,77:ge,79:_e,80:ve},{35:124,75:81,76:he,77:ge,79:_e,80:ve},{35:125,75:81,76:he,77:ge,79:_e,80:ve},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(fe,[2,15]),e(pe,[2,17],{21:22,19:130,22:t,23:n,24:r,26:i,28:a}),e(fe,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:n,24:r,26:i,28:a,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de}),e(me,[2,21]),e(me,[2,22]),e(ye,[2,39]),e(be,[2,71],{75:81,35:132,76:he,77:ge,79:_e,80:ve}),e(xe,[2,73]),{78:[1,133]},e(xe,[2,75]),e(xe,[2,76]),e(ye,[2,40]),e(ye,[2,41]),e(ye,[2,42]),e(ye,[2,43]),e(ye,[2,44]),e(ye,[2,45]),e(ye,[2,46]),e(ye,[2,47]),e(ye,[2,48]),e(ye,[2,49]),e(ye,[2,50]),e(ye,[2,51]),e(ye,[2,52]),e(ye,[2,53]),e(ye,[2,54]),e(ye,[2,55]),e(ye,[2,56]),e(ye,[2,57]),e(ye,[2,58]),e(ye,[2,60]),e(ye,[2,61]),e(ye,[2,62]),e(ye,[2,63]),e(ye,[2,64]),e(ye,[2,65]),e(ye,[2,66]),e(ye,[2,67]),e(ye,[2,68]),e(ye,[2,69]),e(ye,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Se,[2,28]),e(Se,[2,29]),e(Se,[2,30]),e(Se,[2,31]),e(Se,[2,32]),e(Se,[2,33]),e(Se,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(pe,[2,18]),e(fe,[2,38]),e(be,[2,72]),e(xe,[2,74]),e(ye,[2,24]),e(ye,[2,35]),e(Ce,[2,25]),e(Ce,[2,26],{12:[1,138]}),e(Ce,[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:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + `);i.aPosition=t.getAttribLocation(i,`aPosition`),i.aIndex=t.getAttribLocation(i,`aIndex`),i.aVertType=t.getAttribLocation(i,`aVertType`),i.aTransform=t.getAttribLocation(i,`aTransform`),i.aAtlasId=t.getAttribLocation(i,`aAtlasId`),i.aTex=t.getAttribLocation(i,`aTex`),i.aPointAPointB=t.getAttribLocation(i,`aPointAPointB`),i.aPointCPointD=t.getAttribLocation(i,`aPointCPointD`),i.aLineWidth=t.getAttribLocation(i,`aLineWidth`),i.aColor=t.getAttribLocation(i,`aColor`),i.aCornerRadius=t.getAttribLocation(i,`aCornerRadius`),i.aBorderColor=t.getAttribLocation(i,`aBorderColor`),i.uPanZoomMatrix=t.getUniformLocation(i,`uPanZoomMatrix`),i.uAtlasSize=t.getUniformLocation(i,`uAtlasSize`),i.uBGColor=t.getUniformLocation(i,`uBGColor`),i.uZoom=t.getUniformLocation(i,`uZoom`),i.uTextures=[];for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:R6e.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,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(e,t){return e.visible()?t&&t.isVisible?t.isVisible(e):!0:!1}},{key:`drawTexture`,value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var o=a.getTexPickingMode(e);if(o===z6e.IGNORE)return;if(o==z6e.USE_BB){this.drawPickingRectangle(e,t,n);return}}var s=EE(r.getAtlasInfo(e,n)),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,d=u.atlas,f=u.tex1,p=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var m=i.getAtlasIndexForBatch(d),h=0,g=[[f,!0],[p,!1]];h=this.maxInstances&&this.endBatch()}}}}catch(e){s.e(e)}finally{s.f()}}}},{key:`setTransformMatrix`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,l=r.tex2,u=s.w/(s.w+l.w);i||(u=1-u);var d=this._getAdjustedBB(o,a,i,u);this._applyTransformMatrix(t,d,n,e)}else{var f=n.getBoundingBox(e),p=this._getAdjustedBB(f,a,!0,1);this._applyTransformMatrix(t,p,n,e)}}},{key:`_applyTransformMatrix`,value:function(e,t,n,r){var i,a;bD(e);var o=n.getRotation?n.getRotation(r):0;if(o!==0){var s=n.getRotationPoint(r),l=s.x,u=s.y;CZe(e,e,[l,u]),wZe(e,e,o);var d=n.getRotationOffset(r);i=d.x+(t.xOffset||0),a=d.y+(t.yOffset||0)}else i=t.x1,a=t.y1;CZe(e,e,[i,a]),TZe(e,e,[t.w,t.h])}},{key:`_getAdjustedBB`,value:function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,l=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var u=0,d=o*r;return n&&r<1?o=d:!n&&r<1&&(u=o-d,i+=u,o=d),{x1:i,y1:a,w:o,h:s,xOffset:u,yOffset:l}}},{key:`drawPickingRectangle`,value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=CM,pD(t,this.indexBuffer.getView(i)),fD([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:`drawNode`,value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(a===void 0||r.isSimple&&!r.isSimple(e,this.renderTarget)){this.drawTexture(e,t,n);return}var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,a===W6e||a===wM){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),u=this.cornerRadiusBuffer.getView(o);u[0]=l,u[1]=l,u[2]=l,u[3]=l,a===wM&&(u[0]=0,u[2]=0)}pD(t,this.indexBuffer.getView(o));var d=this.renderTarget.picking?1:n===`node-body`?e.effectiveOpacity():1,f=this.renderTarget.picking?1:e.pstyle(i.opacity).value*d,p=e.pstyle(i.color).value;fD(p,f,this.colorBuffer.getView(o));var m=this.lineWidthBuffer.getView(o);if(m[0]=0,m[1]=0,i.border){var h=e.pstyle(`border-width`).value;if(h>0){var g=e.pstyle(`border-color`).value;fD(g,d*e.pstyle(`border-opacity`).value,this.borderColorBuffer.getView(o));var _=e.pstyle(`border-position`).value;if(_===`inside`)m[0]=0,m[1]=-h;else if(_===`outside`)m[0]=h,m[1]=0;else{var v=h/2;m[0]=v,m[1]=-v}}}var y=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,y,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:`_getVertTypeForShape`,value:function(e,t){switch(e.pstyle(t).value){case`rectangle`:return CM;case`ellipse`:return TM;case`roundrectangle`:case`round-rectangle`:return W6e;case`bottom-round-rectangle`:return wM;default:return}}},{key:`_getCornerRadius`,value:function(e,t,n){var r=n.w,i=n.h;if(e.pstyle(t).value===`auto`)return Ek(r,i);var a=e.pstyle(t).pfValue,o=r/2,s=i/2;return Math.min(a,s,o)}},{key:`drawEdgeArrow`,value:function(e,t,n){if(e.visible()){var r=e._private.rscratch,i,a,o;if(n===`source`?(i=r.arrowStartX,a=r.arrowStartY,o=r.srcArrowAngle):(i=r.arrowEndX,a=r.arrowEndY,o=r.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(a)||a==null||isNaN(o)||o==null)&&e.pstyle(n+`-arrow-shape`).value!==`none`){var s=e.pstyle(n+`-arrow-color`).value,l=e.pstyle(`opacity`).value*e.pstyle(`line-opacity`).value,u=e.pstyle(`width`).pfValue,d=e.pstyle(`arrow-scale`).value,f=this.r.getArrowWidth(u,d),p=this.instanceCount,m=this.transformBuffer.getMatrixView(p);bD(m),CZe(m,m,[i,a]),TZe(m,m,[f,f]),wZe(m,m,o),this.vertTypeBuffer.getView(p)[0]=U6e,pD(t,this.indexBuffer.getView(p)),fD(s,l,this.colorBuffer.getView(p)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:`drawEdgeLine`,value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle(`opacity`).value,i=e.pstyle(`line-opacity`).value,a=e.pstyle(`width`).pfValue,o=e.pstyle(`line-color`).value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=V6e,pD(t,this.indexBuffer.getView(l)),fD(o,s,this.colorBuffer.getView(l));var u=this.lineWidthBuffer.getView(l);u[0]=a;var d=this.pointAPointBBuffer.getView(l);d[0]=n[0],d[1]=n[1],d[2]=n[2],d[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var f=0;f=this.maxInstances&&this.endBatch()}}}}},{key:`_isValidEdge`,value:function(e){var t=e._private.rscratch;return!(t.badLine||t.allpts==null||isNaN(t.allpts[0]))}},{key:`_getEdgePoints`,value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(n.length==4)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:`_getNumSegments`,value:function(e){return Math.min(15,this.maxInstances)}},{key:`_getCurveSegmentPoints`,value:function(e,t){if(e.length==4)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(r==0)n[0]=e[0],n[1]=e[1];else if(r==t)n[r*2]=e[e.length-2],n[r*2+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,r*2)}return n}},{key:`_setCurvePoint`,value:function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},s=function(e){return e.pstyle(`text-events`).strValue===`yes`?z6e.USE_BB:z6e.IGNORE},l=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}};n.drawing.addAtlasCollection(`node`,{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection(`label`,{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType(`node-body`,{collection:`node`,getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType(`node-body`,{getBoundingBox:l,isSimple:_Ze,shapeProps:{shape:`shape`,color:`background-color`,opacity:`background-opacity`,radius:`corner-radius`,border:!0}}),n.drawing.addSimpleShapeRenderType(`node-overlay`,{getBoundingBox:l,isVisible:o(`overlay`),shapeProps:{shape:`overlay-shape`,color:`overlay-color`,opacity:`overlay-opacity`,padding:`overlay-padding`,radius:`overlay-corner-radius`}}),n.drawing.addSimpleShapeRenderType(`node-underlay`,{getBoundingBox:l,isVisible:o(`underlay`),shapeProps:{shape:`underlay-shape`,color:`underlay-color`,opacity:`underlay-opacity`,padding:`underlay-padding`,radius:`underlay-corner-radius`}}),n.drawing.addTextureAtlasRenderType(`label`,{collection:`label`,getTexPickingMode:s,getKey:OM(t.getLabelKey,null),getBoundingBox:G6e(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a(`label`)}),n.drawing.addTextureAtlasRenderType(`edge-source-label`,{collection:`label`,getTexPickingMode:s,getKey:OM(t.getSourceLabelKey,`source`),getBoundingBox:G6e(t.getSourceLabelBox,`source`),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i(`source`),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a(`source-label`)}),n.drawing.addTextureAtlasRenderType(`edge-target-label`,{collection:`label`,getTexPickingMode:s,getKey:OM(t.getTargetLabelKey,`target`),getBoundingBox:G6e(t.getTargetLabelBox,`target`),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i(`target`),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a(`target-label`)});var u=pO(function(){console.log(`garbage collect flag set`),n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&u()}),kZe(n)},OM=function(e,t){return function(n){var r=e(n),i=OZe(n,t);return i.length>1?i.map(function(e,t){return`${r}_${t}`}):r}},G6e=function(e,t){return function(n,r){var i=e(n);if(typeof r==`string`){var a=r.indexOf(`_`);if(a>0){var o=Number(r.substring(a+1)),s=OZe(n,t),l=i.h/s.length,u=l*o,d=i.y1+u;return{x1:i.x1,w:i.w,y1:d,h:l,yOffset:u}}}return i}},kM={},kM.drawPolygonPath=function(e,t,n,r,i,a){var o=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],n+s*a[1]);for(var l=1;l0&&a>0){p.clearRect(0,0,i,a),p.globalCompositeOperation=`source-over`;var m=this.getCachedZSortedEles();if(e.full)p.translate(-n.x1*l,-n.y1*l),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(n.x1*l,n.y1*l);else{var h=t.pan(),g={x:h.x*l,y:h.y*l};l*=t.zoom(),p.translate(g.x,g.y),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(-g.x,-g.y)}e.bg&&(p.globalCompositeOperation=`destination-over`,p.fillStyle=e.bg,p.rect(0,0,i,a),p.fill())}return f},jM.png=function(e){return OD(e,this.bufferCanvasImage(e),`image/png`)},jM.jpg=function(e){return OD(e,this.bufferCanvasImage(e),`image/jpeg`)},Z6e={},Z6e.nodeShapeImpl=function(e,t,n,r,i,a,o,s){switch(e){case`ellipse`:return this.drawEllipsePath(t,n,r,i,a);case`polygon`:return this.drawPolygonPath(t,n,r,i,a,o);case`round-polygon`:return this.drawRoundPolygonPath(t,n,r,i,a,o,s);case`roundrectangle`:case`round-rectangle`:return this.drawRoundRectanglePath(t,n,r,i,a,s);case`cutrectangle`:case`cut-rectangle`:return this.drawCutRectanglePath(t,n,r,i,a,o,s);case`bottomroundrectangle`:case`bottom-round-rectangle`:return this.drawBottomRoundRectanglePath(t,n,r,i,a,s);case`barrel`:return this.drawBarrelPath(t,n,r,i,a)}},Q6e=RZe,MM=RZe.prototype,MM.CANVAS_LAYERS=3,MM.SELECT_BOX=0,MM.DRAG=1,MM.NODE=2,MM.WEBGL=3,MM.CANVAS_TYPES=[`2d`,`2d`,`2d`,`webgl2`],MM.BUFFER_COUNT=3,MM.TEXTURE_BUFFER=0,MM.MOTIONBLUR_BUFFER_NODE=1,MM.MOTIONBLUR_BUFFER_DRAG=2,MM.redrawHint=function(e,t){var n=this;switch(e){case`eles`:n.data.canvasNeedsRedraw[MM.NODE]=t;break;case`drag`:n.data.canvasNeedsRedraw[MM.DRAG]=t;break;case`select`:n.data.canvasNeedsRedraw[MM.SELECT_BOX]=t;break;case`gc`:n.data.gc=!0}},$6e=typeof Path2D<`u`,MM.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e},MM.usePaths=function(){return $6e&&this.pathsEnabled},MM.setImgSmoothing=function(e,t){e.imageSmoothingEnabled==null?(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t):e.imageSmoothingEnabled=t},MM.getImgSmoothing=function(e){return e.imageSmoothingEnabled==null?e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled:e.imageSmoothingEnabled},MM.makeOffscreenCanvas=function(e,t){var n;return(typeof OffscreenCanvas>`u`?`undefined`:kE(OffscreenCanvas))===`undefined`?(n=this.cy.window().document.createElement(`canvas`),n.width=e,n.height=t):n=new OffscreenCanvas(e,t),n},[v6e,gM,vM,E6e,yM,bM,xM,DM,kM,jM,Z6e].forEach(function(e){eO(MM,e)}),e8e=[{type:`layout`,extensions:s3e},{type:`renderer`,extensions:[{name:`null`,impl:lD},{name:`base`,impl:R3e},{name:`canvas`,impl:Q6e}]}],NM={},PM={},FM=function(){if(arguments.length===2)return kD.apply(null,arguments);if(arguments.length===3)return zZe.apply(null,arguments);if(arguments.length===4)return BZe.apply(null,arguments);if(arguments.length===5)return AD.apply(null,arguments);AO(`Invalid extension access syntax`)},M4e.prototype.extension=FM,e8e.forEach(function(e){e.extensions.forEach(function(t){zZe(e.type,t.name,t.impl)})}),t8e=function(){if(!(this instanceof t8e))return new t8e;this.length=0},IM=t8e.prototype,IM.instanceString=function(){return`stylesheet`},IM.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this},IM.css=function(e,t){var n=this.length-1;if(PD(e))this[n].properties.push({name:e,value:t});else if(LD(e))for(var r=e,i=Object.keys(r),a=0;a{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(4);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:te=_,ee=a+-C/O,n[2]=ee,n[3]=te;break;case 2:ee=x,te=o+S*O,n[2]=ee,n[3]=te;break;case 3:te=b,ee=a+C/O,n[2]=ee,n[3]=te;break;case 4:ee=y,te=o+-S*O,n[2]=ee,n[3]=te}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(r8e()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(r8e()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.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},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.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%u.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-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 e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.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=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(d.WORLD_CENTER_X-o.x/2,d.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(t,null,0,359,0,r);var i=_.calculateBounds(e),a=new v;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var v=_[0];_.splice(0,1);var b=d.indexOf(v);b>=0&&d.splice(b,1),m--,f--}h=t==null?0:(d.indexOf(_[0])+1)%m;for(var x=Math.abs(r-n)/f,S=h;p!=f;S=++S%m){var C=d[S].getOtherEnd(e);if(C!=t){var w=(n+p*x)%360,T=(w+x)%360;y.branchRadialLayout(C,e,w,T,i+a,a),p++}}},y.maxDiagonalInTree=function(e){for(var t=h.MIN_VALUE,n=0;nt&&(t=r)}return t},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;u=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},y.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},y.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},y.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rl&&(l=d.rect.height)}n+=l+e.verticalPadding}},y.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},y.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},y.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},y.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var d=i;d<=a;d++)l[0]+=this.grid[d][o-1].length+this.grid[d][o].length-1;if(a0)for(var d=o;d<=s;d++)l[3]+=this.grid[i-1][d].length+this.grid[i][d].length-1;for(var f=h.MAX_VALUE,p,m,g=0;g{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(i8e()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(i8e()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,l=n(0).layoutBase.PointD,u=n(0).layoutBase.DimensionD,d={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function f(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function p(e){this.options=f(d,e),m(this.options)}var m=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),r.QUALITY=e.quality==`draft`?0:e.quality==`proof`?2:1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};p.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),l=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var u=0;u0){var g=n.getGraphManager().add(n.newGraph(),d);this.processChildrenList(g,o,n)}}},p.prototype.stop=function(){return this.stopped=!0,this};var h=function(e){e(`layout`,`cose-bilkent`,p)};typeof cytoscape<`u`&&h(cytoscape),e.exports=h})])})})),o8e=l({render:()=>m8e});function s8e(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}function zM(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}function c8e(e){return new Promise(t=>{let n=Bc(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),r=LM({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),s8e(e.nodes,r),zM(e.edges,r),r.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),r.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),r.ready(e=>{P.info(`Cytoscape ready`,e),t(r)})})}function l8e(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}function u8e(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}async function d8e(e,t){P.debug(`Starting cose-bilkent layout algorithm`);try{f8e(e);let t=await c8e(e),n=l8e(t),r=u8e(t);return P.debug(`Layout completed: ${n.length} nodes, ${r.length} edges`),{nodes:n,edges:r}}catch(e){throw P.error(`Error in cose-bilkent layout algorithm:`,e),e}}function f8e(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}var p8e,m8e,h8e=o((()=>{er(),Zn(),RM(),p8e=d(a8e(),1),Dp(),LM.use(p8e.default),N(s8e,`addNodes`),N(zM,`addEdges`),N(c8e,`createCytoscapeInstance`),N(l8e,`extractPositionedNodes`),N(u8e,`extractPositionedEdges`),N(d8e,`executeCoseBilkentLayout`),N(f8e,`validateLayoutData`),m8e=N(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:l},{algorithm:u})=>{let d={},f={},p=t.select(`g`);a(p,e.markers,e.type,e.diagramId);let m=p.insert(`g`).attr(`class`,`subgraphs`),h=p.insert(`g`).attr(`class`,`edgePaths`),g=p.insert(`g`).attr(`class`,`edgeLabels`),_=p.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};f[t.id]=e,d[t.id]=e,await n(m,t)}else{let n={...t};d[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await d8e({...e,nodes:e.nodes.map(e=>{let t=d[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=d[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=d[t.start??``],a=d[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};l(o,r(h,o,f,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};l(i,r(h,i,f,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`)})),g8e,_8e,BM,v8e,y8e,VM,b8e,HM,UM=o((()=>{zTe(),Q_(),vv(),G_(),z_(),qm(),Os(),er(),Zn(),g8e={common:cs,getConfig:Xo,insertCluster:Z_,insertEdge:gv,insertEdgeLabel:dv,insertMarkers:_v,insertNode:B_,interpolateToCurve:UDe,labelHelper:i_,log:P,positionEdgeLabel:pv},_8e=[`elk.stress`,`elk.force`,`elk.mrtree`,`elk.sporeOverlap`,`elk.box`,`elk.rectpacking`],BM=Object.create(null),v8e=N(e=>{for(let t of e)BM[t.name]=t},`registerLayoutLoaders`),y8e=N(()=>{let e=N(async()=>await Promise.resolve().then(()=>(IC(),OUe)),`loader`);return[{name:`elk`,loader:e,algorithm:`elk.layered`},..._8e.map(t=>({name:t,loader:e,algorithm:t}))]},`elkLayoutLoaders`),N(()=>{v8e([{name:`dagre`,loader:N(async()=>await Promise.resolve().then(()=>(bqe(),lqe)),`loader`)},{name:`swimlane`,loader:N(async()=>await Promise.resolve().then(()=>(CYe(),xqe)),`loader`)},{name:`cose-bilkent`,loader:N(async()=>await Promise.resolve().then(()=>(h8e(),o8e)),`loader`)},...y8e()])},`registerDefaultLayoutLoaders`)(),VM=N(async(e,t)=>{if(!Object.hasOwn(BM,e.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=BM[e.layoutAlgorithm],r=await n.loader();return RTe(t,e.config),r.render(e,t,g8e,{algorithm:n.algorithm})},`render`),b8e=`dagre`,HM=N((e=``,{fallback:t=b8e}={})=>{if(Object.hasOwn(BM,e))return e;for(let n of[t,b8e])if(Object.hasOwn(BM,n))return P.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Neither layout algorithm ${e}, ${t}, nor ${b8e} is registered.`)},`getRegisteredLayoutAlgorithm`)})),x8e,S8e,C8e,q,WM,w8e,T8e,GM=o((()=>{x8e=`comm`,S8e=`rule`,C8e=`decl`,q=`@import`,WM=`@namespace`,w8e=`@keyframes`,T8e=`@layer`}));function KM(e){return e.trim()}function qM(e,t,n){return e.replace(t,n)}function E8e(e,t,n){return e.indexOf(t,n)}function JM(e,t){return e.charCodeAt(t)|0}function YM(e,t,n){return e.slice(t,n)}function XM(e){return e.length}function D8e(e){return e.length}function ZM(e,t){return t.push(e),e}var O8e,k8e,QM=o((()=>{O8e=Math.abs,k8e=String.fromCharCode}));function A8e(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:H8e,column:rN,length:o,return:``,siblings:s}}function $M(){return aN}function j8e(){return aN=iN>0?JM(oN,--iN):0,rN--,aN===10&&(rN=1,H8e--),aN}function eN(){return aN=iN2||P8e(aN)>3?``:` `}function z8e(e,t){for(;--t&&eN()&&!(aN<48||aN>102||aN>57&&aN<65||aN>70&&aN<97););return N8e(e,M8e()+(t<6&&tN()==32&&eN()==32))}function B8e(e){for(;eN();)switch(aN){case e:return iN;case 34:case 39:e!==34&&e!==39&&B8e(aN);break;case 40:e===41&&B8e(e);break;case 92:eN()}return iN}function nN(e,t){for(;eN()&&e+aN!==57&&(e+aN!==84||tN()!==47););return`/*`+N8e(t,iN-1)+`*`+k8e(e===47?e:eN())}function V8e(e){for(;!P8e(tN());)eN();return N8e(e,iN)}var H8e,rN,U8e,iN,aN,oN,W8e=o((()=>{QM(),H8e=1,rN=1,U8e=0,iN=0,aN=0,oN=``}));function G8e(e){return I8e(sN(``,null,null,null,[``],e=F8e(e),0,[0],e))}function sN(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,p=0,m=0,h=0,g=1,_=1,v=1,y=0,b=``,x=i,S=a,C=r,w=b;_;)switch(h=y,y=eN()){case 40:if(h!=108&&JM(w,f-1)==58){E8e(w+=qM(L8e(y),`&`,`&\f`),`&\f`,O8e(u?s[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:w+=L8e(y);break;case 9:case 10:case 13:case 32:w+=R8e(h);break;case 92:w+=z8e(M8e()-1,7);continue;case 47:switch(tN()){case 42:case 47:ZM(q8e(nN(eN(),M8e()),t,n,l),l),(P8e(h||1)==5||P8e(tN()||1)==5)&&XM(w)&&YM(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*g:s[u++]=XM(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=qM(w,/\f/g,``)),m>0&&(XM(w)-f||g===0&&h===47)&&ZM(m>32?J8e(w+`;`,r,n,f-1,l):J8e(qM(w,` `,``)+`;`,r,n,f-2,l),l);break;case 59:w+=`;`;default:if(ZM(C=K8e(w,t,n,u,d,i,s,b,x=[],S=[],f,a),a),y===123){if(d===0)sN(w,t,C,C,x,a,f,s,S);else{switch(p){case 99:if(JM(w,3)===110)break;case 108:if(JM(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?sN(e,C,C,r&&ZM(K8e(e,C,C,0,0,i,s,b,i,x=[],f,S),S),i,S,f,s,r?x:S):sN(w,C,C,C,[``],S,0,s,S)}}}u=d=m=0,g=v=1,b=w=``,f=o;break;case 58:f=1+XM(w),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&j8e()==125)continue}switch(w+=k8e(y),y*g){case 38:v=d>0?1:(w+=`\f`,-1);break;case 44:s[u++]=(XM(w)-1)*v,v=1;break;case 64:tN()===45&&(w+=L8e(eN())),p=tN(),d=f=XM(b=w+=V8e(M8e())),y++;break;case 45:h===45&&XM(w)==2&&(g=0)}}return a}function K8e(e,t,n,r,i,a,o,s,l,u,d,f){for(var p=i-1,m=i===0?a:[``],h=D8e(m),g=0,_=0,v=0;g0?m[y]+` `+b:qM(b,/&\f/g,m[y])))&&(l[v++]=x);return A8e(e,t,n,i===0?S8e:s,l,u,d,f)}function q8e(e,t,n,r){return A8e(e,t,n,x8e,k8e($M()),YM(e,2,-2),0,r)}function J8e(e,t,n,r,i){return A8e(e,t,n,C8e,YM(e,0,r),YM(e,r+1,-1),r,i)}var Y8e=o((()=>{GM(),QM(),W8e()})),cN=o((()=>{}));function X8e(e,t){for(var n=``,r=0;r{GM(),QM()}));function $8e(e){var t=D8e(e);return function(n,r,i,a){for(var o=``,s=0;s{QM()})),t5e=o((()=>{GM(),QM(),Y8e(),cN(),W8e(),Q8e(),e5e()})),n5e,r5e,i5e,a5e,o5e,s5e,lN,uN,c5e,dN=o((()=>{Os(),Zn(),n5e=OEe(),Dp(),r5e=N((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),i5e=N((e,t)=>{r5e(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),a5e=N((e,t)=>{let n=t.text.replace(ts,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),o5e=N((e,t,n,r)=>{let i=e.append(`image`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,n5e.sanitizeUrl)(r);i.attr(`xlink:href`,a)},`drawImage`),s5e=N((e,t,n,r)=>{let i=e.append(`use`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,n5e.sanitizeUrl)(r);i.attr(`xlink:href`,`#${a}`)},`drawEmbeddedImage`),lN=N(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),uN=N(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),c5e=N(()=>{let e=Bc(`.mermaidTooltip`);return e.empty()&&(e=Bc(`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`)),e},`createTooltip`)})),l5e=l({diagram:()=>p7e});function fN(e,t,n,r,i){let a=t[e];if(!a.width){if(n)a.text=Hm(a.text,i,r),a.textLines=a.text.split(cs.lineBreakRegex).length,a.width=i,a.height=ZDe(a.text,r);else{let e=a.text.split(cs.lineBreakRegex);a.textLines=e.length;let t=0;a.height=0,a.width=0;for(let n of e)a.width=Math.max(zm(n,r),a.width),t=ZDe(n,r),a.height+=t}}return a}async function pN(e,t,n,r,i){let a=i.db,o=new BN(i);o.data.widthLimit=n.data.widthLimit/Math.min(RN,r.length);for(let[s,l]of r.entries()){let r=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=r,r=l.image.Y+l.image.height);let u=l.wrap&&zN.wrap,d=HN(zN);d.fontSize+=2,d.fontWeight=`bold`;let f=fN(`label`,l,u,d,o.data.widthLimit);if(f.Y=r+8,r=f.Y+f.height,l.type&&l.type.text!==``){l.type.text=`[`+l.type.text+`]`;let e=fN(`type`,l,u,HN(zN),o.data.widthLimit);e.Y=r+5,r=e.Y+e.height}if(l.descr&&l.descr.text!==``){let e=HN(zN);e.fontSize-=2;let t=fN(`descr`,l,u,e,o.data.widthLimit);t.Y=r+20,r=t.Y+t.height}if(s==0||s%RN===0){let e=n.data.startx+zN.diagramMarginX,t=n.data.stopy+zN.diagramMarginY+r;o.setData(e,e,t,t)}else{let e=o.data.stopx===o.data.startx?o.data.startx:o.data.stopx+zN.diagramMarginX,t=o.data.starty;o.setData(e,e,t,t)}o.name=l.alias;let p=a.getC4ShapeArray(l.alias),m=a.getC4ShapeKeys(l.alias);m.length>0&&await c7e(o,e,p,m),t=l.alias;let h=a.getBoundaries(t);h.length>0&&await pN(e,t,o,h,i),l.alias!==`global`&&s7e(e,l,o),n.data.stopy=Math.max(o.data.stopy+zN.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+zN.c4ShapeMargin,n.data.stopx),IN=Math.max(IN,n.data.stopx),LN=Math.max(LN,n.data.stopy)}}var u5e,d5e,f5e,mN,hN,p5e,gN,_N,vN,yN,bN,xN,SN,CN,wN,m5e,h5e,g5e,_5e,v5e,y5e,b5e,x5e,S5e,C5e,w5e,T5e,E5e,TN,D5e,O5e,k5e,A5e,j5e,EN,M5e,N5e,DN,P5e,F5e,I5e,L5e,ON,kN,R5e,z5e,B5e,V5e,AN,jN,H5e,U5e,MN,W5e,NN,PN,G5e,K5e,q5e,J5e,FN,Y5e,X5e,Z5e,Q5e,$5e,e7e,t7e,n7e,r7e,i7e,IN,LN,a7e,RN,zN,BN,VN,HN,o7e,s7e,c7e,l7e,u7e,UN,d7e,WN,f7e,p7e,m7e=o((()=>{dN(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),Dp(),u5e=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,24],n=[1,25],r=[1,26],i=[1,27],a=[1,28],o=[1,63],s=[1,64],l=[1,65],u=[1,66],d=[1,67],f=[1,68],p=[1,69],m=[1,29],h=[1,30],g=[1,31],_=[1,32],v=[1,33],y=[1,34],b=[1,35],x=[1,36],S=[1,37],C=[1,38],w=[1,39],T=[1,40],E=[1,41],D=[1,42],O=[1,43],k=[1,44],A=[1,45],j=[1,46],M=[1,47],ee=[1,48],te=[1,50],ne=[1,51],re=[1,52],ie=[1,53],ae=[1,54],oe=[1,55],se=[1,56],ce=[1,57],le=[1,58],ue=[1,59],de=[1,60],fe=[14,42],pe=[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],me=[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],he=[1,82],ge=[1,83],_e=[1,84],ve=[1,85],ye=[12,14,42],be=[12,14,33,42],xe=[12,14,33,42,76,77,79,80],Se=[12,33],Ce=[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],we={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``}},`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:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:70,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:71,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:72,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{13:73,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{14:[1,74]},e(fe,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de}),e(fe,[2,14]),e(pe,[2,16],{12:[1,76]}),e(fe,[2,36],{12:[1,77]}),e(me,[2,19]),e(me,[2,20]),{25:[1,78]},{27:[1,79]},e(me,[2,23]),{35:80,75:81,76:he,77:ge,79:_e,80:ve},{35:86,75:81,76:he,77:ge,79:_e,80:ve},{35:87,75:81,76:he,77:ge,79:_e,80:ve},{35:88,75:81,76:he,77:ge,79:_e,80:ve},{35:89,75:81,76:he,77:ge,79:_e,80:ve},{35:90,75:81,76:he,77:ge,79:_e,80:ve},{35:91,75:81,76:he,77:ge,79:_e,80:ve},{35:92,75:81,76:he,77:ge,79:_e,80:ve},{35:93,75:81,76:he,77:ge,79:_e,80:ve},{35:94,75:81,76:he,77:ge,79:_e,80:ve},{35:95,75:81,76:he,77:ge,79:_e,80:ve},{35:96,75:81,76:he,77:ge,79:_e,80:ve},{35:97,75:81,76:he,77:ge,79:_e,80:ve},{35:98,75:81,76:he,77:ge,79:_e,80:ve},{35:99,75:81,76:he,77:ge,79:_e,80:ve},{35:100,75:81,76:he,77:ge,79:_e,80:ve},{35:101,75:81,76:he,77:ge,79:_e,80:ve},{35:102,75:81,76:he,77:ge,79:_e,80:ve},{35:103,75:81,76:he,77:ge,79:_e,80:ve},{35:104,75:81,76:he,77:ge,79:_e,80:ve},e(ye,[2,59]),{35:105,75:81,76:he,77:ge,79:_e,80:ve},{35:106,75:81,76:he,77:ge,79:_e,80:ve},{35:107,75:81,76:he,77:ge,79:_e,80:ve},{35:108,75:81,76:he,77:ge,79:_e,80:ve},{35:109,75:81,76:he,77:ge,79:_e,80:ve},{35:110,75:81,76:he,77:ge,79:_e,80:ve},{35:111,75:81,76:he,77:ge,79:_e,80:ve},{35:112,75:81,76:he,77:ge,79:_e,80:ve},{35:113,75:81,76:he,77:ge,79:_e,80:ve},{35:114,75:81,76:he,77:ge,79:_e,80:ve},{35:115,75:81,76:he,77:ge,79:_e,80:ve},{20:116,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:ge,79:_e,80:ve},{35:120,75:81,76:he,77:ge,79:_e,80:ve},{35:121,75:81,76:he,77:ge,79:_e,80:ve},{35:122,75:81,76:he,77:ge,79:_e,80:ve},{35:123,75:81,76:he,77:ge,79:_e,80:ve},{35:124,75:81,76:he,77:ge,79:_e,80:ve},{35:125,75:81,76:he,77:ge,79:_e,80:ve},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(fe,[2,15]),e(pe,[2,17],{21:22,19:130,22:t,23:n,24:r,26:i,28:a}),e(fe,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:n,24:r,26:i,28:a,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:ee,64:te,65:ne,66:re,67:ie,68:ae,69:oe,70:se,71:ce,72:le,73:ue,74:de}),e(me,[2,21]),e(me,[2,22]),e(ye,[2,39]),e(be,[2,71],{75:81,35:132,76:he,77:ge,79:_e,80:ve}),e(xe,[2,73]),{78:[1,133]},e(xe,[2,75]),e(xe,[2,76]),e(ye,[2,40]),e(ye,[2,41]),e(ye,[2,42]),e(ye,[2,43]),e(ye,[2,44]),e(ye,[2,45]),e(ye,[2,46]),e(ye,[2,47]),e(ye,[2,48]),e(ye,[2,49]),e(ye,[2,50]),e(ye,[2,51]),e(ye,[2,52]),e(ye,[2,53]),e(ye,[2,54]),e(ye,[2,55]),e(ye,[2,56]),e(ye,[2,57]),e(ye,[2,58]),e(ye,[2,60]),e(ye,[2,61]),e(ye,[2,62]),e(ye,[2,63]),e(ye,[2,64]),e(ye,[2,65]),e(ye,[2,66]),e(ye,[2,67]),e(ye,[2,68]),e(ye,[2,69]),e(ye,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Se,[2,28]),e(Se,[2,29]),e(Se,[2,30]),e(Se,[2,31]),e(Se,[2,32]),e(Se,[2,33]),e(Se,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(pe,[2,18]),e(fe,[2,38]),e(be,[2,72]),e(xe,[2,74]),e(ye,[2,24]),e(ye,[2,35]),e(Ce,[2,25]),e(Ce,[2,26],{12:[1,138]}),e(Ce,[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:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};we.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){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}}}})();function Te(){this.yy={}}return N(Te,`Parser`),Te.prototype=we,we.Parser=Te,new Te})(),Q8e.parser=Q8e,$8e=Q8e,e5e=N(e=>As()[e],`getRequiredConfig`),xN=new Set([`label`,`descr`,`techn`,`type`]),SN=N((e,t)=>{for(let[n,r]of Object.entries(t))if(r!==void 0){if(typeof r==`object`){let[t,n]=Object.entries(r)[0];e[t]=xN.has(t)?{text:n}:n}else e[n]=r}},`assignAttributes`),t5e=N(()=>({alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}),`createGlobalBoundary`),CN=[],wN=[``],TN=`global`,EN=``,DN=[t5e()],ON=[],n5e=``,r5e=!1,kN=4,AN=2,a5e=N(function(){return i5e},`getC4Type`),o5e=N(function(e){i5e=ls(e,As())},`setC4Type`),s5e=N(function(e,t,n,r,i,a,o,s,l){if(e==null||t==null||n==null||r==null)return;let u={},d=ON.find(e=>e.from===t&&e.to===n);if(d?u=d:ON.push(u),u.type=e,u.from=t,u.to=n,u.label={text:r},i==null)u.techn??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];u[e]=xN.has(e)?{text:t}:t}else u.techn={text:i};if(a==null)u.descr??={text:``};else if(typeof a==`object`){let[e,t]=Object.entries(a)[0];u[e]=xN.has(e)?{text:t}:t}else u.descr={text:a};SN(u,{sprite:o,tags:s,link:l}),u.wrap=NN()},`addRel`),c5e=N(function(e,t,n,r,i,a,o){if(t===null||n===null)return;let s={},l=CN.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,CN.push(s)),n==null?s.label={text:``}:s.label={text:n},r==null)s.descr??={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=xN.has(e)?{text:t}:t}else s.descr={text:r};SN(s,{sprite:i,tags:a,link:o}),s.typeC4Shape={text:e},s.parentBoundary=TN,s.wrap=NN()},`addPersonOrSystem`),l5e=N(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=CN.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,CN.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn??={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]=xN.has(e)?{text:t}:t}else l.techn={text:r};if(i==null)l.descr??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]=xN.has(e)?{text:t}:t}else l.descr={text:i};SN(l,{sprite:a,tags:o,link:s}),l.wrap=NN(),l.typeC4Shape={text:e},l.parentBoundary=TN},`addContainer`),u5e=N(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=CN.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,CN.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn??={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]=xN.has(e)?{text:t}:t}else l.techn={text:r};if(i==null)l.descr??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]=xN.has(e)?{text:t}:t}else l.descr={text:i};SN(l,{sprite:a,tags:o,link:s}),l.wrap=NN(),l.typeC4Shape={text:e},l.parentBoundary=TN},`addComponent`),d5e=N(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=DN.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,DN.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`system`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]=xN.has(e)?{text:t}:t}else a.type={text:n};SN(a,{tags:r,link:i}),a.parentBoundary=TN,a.wrap=NN(),EN=TN,TN=e,wN.push(EN)},`addPersonOrSystemBoundary`),f5e=N(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=DN.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,DN.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`container`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]=xN.has(e)?{text:t}:t}else a.type={text:n};SN(a,{tags:r,link:i}),a.parentBoundary=TN,a.wrap=NN(),EN=TN,TN=e,wN.push(EN)},`addContainerBoundary`),p5e=N(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=DN.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,DN.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.type={text:`node`};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]=xN.has(e)?{text:t}:t}else l.type={text:r};if(i==null)l.descr??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]=xN.has(e)?{text:t}:t}else l.descr={text:i};SN(l,{tags:o,link:s}),l.nodeType=e,l.parentBoundary=TN,l.wrap=NN(),EN=TN,TN=t,wN.push(EN)},`addDeploymentNode`),m5e=N(function(){TN=EN,wN.pop(),EN=wN.pop(),wN.push(EN)},`popBoundaryParseStack`),h5e=N(function(e,t,n,r,i,a,o,s,l,u,d){let f=CN.find(e=>e.alias===t);if(!(f===void 0&&(f=DN.find(e=>e.alias===t),f===void 0))){if(n!=null){if(typeof n==`object`){let[e,t]=Object.entries(n)[0];f[e]=t}else f.bgColor=n}if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];f[e]=t}else f.fontColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];f[e]=t}else f.borderColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];f[e]=t}else f.shadowing=a}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];f[e]=t}else f.shape=o}if(s!=null){if(typeof s==`object`){let[e,t]=Object.entries(s)[0];f[e]=t}else f.sprite=s}if(l!=null){if(typeof l==`object`){let[e,t]=Object.entries(l)[0];f[e]=t}else f.techn=l}if(u!=null){if(typeof u==`object`){let[e,t]=Object.entries(u)[0];f[e]=t}else f.legendText=u}if(d!=null){if(typeof d==`object`){let[e,t]=Object.entries(d)[0];f[e]=t}else f.legendSprite=d}}},`updateElStyle`),g5e=N(function(e,t,n,r,i,a,o){let s=ON.find(e=>e.from===t&&e.to===n);if(s!==void 0){if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(a)}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}}},`updateRelStyle`),_5e=N(function(e,t,n){let r=kN,i=AN;if(typeof t==`object`){let e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if(typeof n==`object`){let e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(kN=r),i>=1&&(AN=i)},`updateLayoutConfig`),v5e=N(function(){return kN},`getC4ShapeInRow`),y5e=N(function(){return AN},`getC4BoundaryInRow`),b5e=N(function(){return TN},`getCurrentBoundaryParse`),jN=N(function(){return EN},`getParentBoundaryParse`),x5e=N(function(e){return e==null?CN:CN.filter(t=>t.parentBoundary===e)},`getC4ShapeArray`),S5e=N(function(e){return CN.find(t=>t.alias===e)??DN.find(t=>t.alias===e)},`getC4Shape`),C5e=N(function(e){return Object.keys(x5e(e))},`getC4ShapeKeys`),w5e=N(function(e){return e==null?DN:DN.filter(t=>t.parentBoundary===e)},`getBoundaries`),T5e=w5e,MN=N(function(){return ON},`getRels`),E5e=N(function(){return n5e},`getTitle`),D5e=N(function(e){r5e=e},`setWrap`),NN=N(function(){return r5e},`autoWrap`),O5e={addPersonOrSystem:c5e,addPersonOrSystemBoundary:d5e,addContainer:l5e,addContainerBoundary:f5e,addComponent:u5e,addDeploymentNode:p5e,popBoundaryParseStack:m5e,addRel:s5e,updateElStyle:h5e,updateRelStyle:g5e,updateLayoutConfig:_5e,autoWrap:NN,setWrap:D5e,getC4ShapeArray:x5e,getC4Shape:S5e,getC4ShapeKeys:C5e,getBoundaries:w5e,getBoundarys:T5e,getCurrentBoundaryParse:b5e,getParentBoundaryParse:jN,getRels:MN,getTitle:E5e,getC4Type:a5e,getC4ShapeInRow:v5e,getC4BoundaryInRow:y5e,setAccTitle:Cs,getAccTitle:ws,getAccDescription:Es,setAccDescription:Ts,getConfig:N(()=>e5e(`c4`),`getConfig`),clear:N(function(){CN=[],DN=[t5e()],EN=``,TN=`global`,wN=[``],ON=[],wN=[``],n5e=``,r5e=!1,kN=4,AN=2},`clear`),LINETYPE:{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},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:N(function(e){n5e=ls(e,As())},`setTitle`),setC4Type:o5e},k5e=N(function(e,t){return mN(e,t)},`drawRect`),A5e=N((e,t,n,r)=>{let i=e.append(`g`),a=0;for(let e of t){let t=e.textColor?e.textColor:`#444444`,o=e.lineColor?e.lineColor:`#444444`,s=e.offsetX?parseInt(String(e.offsetX)):0,l=e.offsetY?parseInt(String(e.offsetY)):0;if(a===0){let t=i.append(`line`);t.attr(`x1`,e.startPoint.x),t.attr(`y1`,e.startPoint.y),t.attr(`x2`,e.endPoint.x),t.attr(`y2`,e.endPoint.y),t.attr(`stroke-width`,`1`),t.attr(`stroke`,o),t.style(`fill`,`none`),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`),a=-1}else{let t=i.append(`path`);t.attr(`fill`,`none`).attr(`stroke-width`,`1`).attr(`stroke`,o).attr(`d`,`Mstartx,starty Qcontrolx,controly stopx,stopy `.replaceAll(`startx`,e.startPoint.x).replaceAll(`starty`,e.startPoint.y).replaceAll(`controlx`,e.startPoint.x+(e.endPoint.x-e.startPoint.x)/2-(e.endPoint.x-e.startPoint.x)/4).replaceAll(`controly`,e.startPoint.y+(e.endPoint.y-e.startPoint.y)/2).replaceAll(`stopx`,e.endPoint.x).replaceAll(`stopy`,e.endPoint.y)),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`)}let u=e.label.width,d=n.messageFont();FN(n)(e.label.text,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+l,u,e.label.height,{fill:t},d),e.techn&&e.techn.text!==``&&(d=n.messageFont(),FN(n)(`[`+e.techn.text+`]`,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+n.messageFontSize+5+l,Math.max(u,e.techn.width),e.techn.height,{fill:t,"font-style":`italic`},d))}},`drawRels`),j5e=N(function(e,t,n){let r=e.append(`g`),i=t.bgColor?t.bgColor:`none`,a=t.borderColor?t.borderColor:`#444444`,o=t.fontColor?t.fontColor:`black`,s={"stroke-width":1,"stroke-dasharray":`7.0,7.0`};t.nodeType&&(s={"stroke-width":1}),k5e(r,{x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s});let l=n.boundaryFont();l.fontWeight=`bold`,l.fontSize+=2,l.fontColor=o,FN(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:`#444444`},l),t.type&&t.type.text!==``&&(l=n.boundaryFont(),l.fontColor=o,FN(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:`#444444`},l)),t.descr&&t.descr.text!==``&&(l=n.boundaryFont(),l.fontSize-=2,l.fontColor=o,FN(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:`#444444`},l))},`drawBoundary`),M5e=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),N5e=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),P5e=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),F5e=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),I5e=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),L5e=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),PN=N(function(e,t){let n=e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),FN=(function(){function e(e,t,n,i,a,o,s){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,i,a,o,s,l){let{fontSize:u,fontFamily:d,fontWeight:f}=l,p=e.split(gs.lineBreakRegex);for(let e=0;e{if(t===`sandbox`){let t=Qc(`#i`+e).node()?.contentDocument;if(!t)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:Qc(t.body),doc:t}}return{root:Qc(`body`),doc:document}},`getDiagramRoot`),LN=new Set([`system_queue`,`external_system_queue`,`container_queue`,`external_container_queue`,`component_queue`,`external_component_queue`]),z5e=new Set([`system_db`,`external_system_db`,`container_db`,`external_container_db`,`component_db`,`external_component_db`]),B5e={person:`person`,box:`rounded`,rounded:`rounded`,cylinder:`cylinder`,database:`cylinder`,db:`cylinder`,queue:`h-cyl`,pipe:`h-cyl`,component:`fr-rect`},RN=N(e=>e?B5e[e.toLowerCase()]:void 0,`keywordShape`),V5e=N(e=>{let t=RN(e.shape)??RN(e.sprite);if(t)return t;if(e.tags)for(let t of e.tags.split(`,`)){let e=RN(t.trim());if(e)return e}let n=e.typeC4Shape.text;return n===`person`||n===`external_person`?`person`:z5e.has(n)?`cylinder`:LN.has(n)?`h-cyl`:`rounded`},`resolveNodeShape`),H5e={person:`Person`,system:`Software System`,container:`Container`,component:`Component`},U5e=N(e=>{let t=e.replace(/^external_/,``).replace(/_(db|queue)$/,``);return H5e[t]??t.replace(/_/g,` `)},`stereotypeLabel`),W5e=N(e=>e.startsWith(`external_`),`isExternal`),G5e=N(e=>{let t=U5e(e.typeC4Shape.text);return e.techn?.text?`[${t}: ${e.techn.text}]`:`[${t}]`},`stereotypeText`),K5e=[`person`,`system`,`system_db`,`system_queue`,`container`,`container_db`,`container_queue`,`component`,`component_db`,`component_queue`].flatMap(e=>[e,`external_${e}`]),q5e=new Set(K5e),J5e=N(e=>q5e.has(e),`isC4ElementType`),Y5e=N((e,t)=>{let n=e.typeC4Shape.text,r=e.bgColor??(J5e(n)&&t[`${n}_bg_color`]),i=e.borderColor??(J5e(n)&&t[`${n}_border_color`]),a=[];return r&&a.push(`fill:${r}`),i&&a.push(`stroke:${i}`),a.push(`color:${e.fontColor??`#FFFFFF`}`),a},`elementCssStyles`),X5e=N((e,t,n,r,i)=>{let a=e.typeC4Shape.text,o=[`c4-shape`,`c4-${a}`];W5e(a)&&o.push(`c4-external`);let s=V5e(e),l=Y5e(e,t);return(s===`rounded`||s===`fr-rect`)&&l.push(`rx:12px`,`ry:12px`),{id:e.alias,label:e.label.text,stereotype:G5e(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:`string`,isGroup:!1,shape:s,cssClasses:o.join(` `),cssStyles:l,padding:n,look:r,useHtmlLabels:!1,width:i}},`buildC4Node`),zN=0,BN=0,Z5e=4,Q5e=2,Q8e.yy=O5e,VN={},$5e=class{static{N(this,`Bounds`)}constructor(e){this.name=``,this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,HN(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.stopx,n=this.data.widthLimit,r=this.nextData.startx===this.nextData.stopx?t+e.margin:t+e.margin*2,i=r+e.width,a=this.nextData.starty+e.margin*2,o=a+e.height;(r>=n||i>=n||this.nextData.cnt>Z5e)&&(r=this.nextData.startx+e.margin+VN.nextLinePaddingX,a=this.nextData.stopy+e.margin*2,this.nextData.stopx=i=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=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`,i,Math.max),this.updateVal(this.data,`stopy`,o,Math.max),this.updateVal(this.nextData,`startx`,r,Math.min),this.updateVal(this.nextData,`starty`,a,Math.min),this.updateVal(this.nextData,`stopx`,i,Math.max),this.updateVal(this.nextData,`stopy`,o,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},HN(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},HN=N(function(e){To(VN,e),e?.fontFamily&&(VN.personFontFamily=VN.systemFontFamily=VN.messageFontFamily=e.fontFamily),e?.fontSize&&(VN.personFontSize=VN.systemFontSize=VN.messageFontSize=e.fontSize),e?.fontWeight&&(VN.personFontWeight=VN.systemFontWeight=VN.messageFontWeight=e.fontWeight)},`setConf`),UN=N(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),`boundaryFont`),WN=N(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),N(yN,`calcC4ShapeTextWH`),e7e=N(function(e,t,n){let r=n.data.startx,i=n.data.starty;t.x=r,t.y=i,t.width=n.data.stopx-r,t.height=n.data.stopy-i,t.intersect=e=>c_.rect({x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height},e),t.label.y=VN.c4ShapeMargin-35;let a=t.wrap&&VN.wrap,o=UN(VN);o.fontSize+=2,o.fontWeight=`bold`,yN(`label`,t,a,o,Lm(t.label.text,o)),IN.drawBoundary(e,t,VN)},`drawBoundary`),GN=N(async function(e,t,n,r){let i=As(),a=i.look??`classic`,o={config:i},s=t.attr(`id`)??``,l=r.map(e=>n[Number(e)]),u=N(e=>{let t=e.shape?BMe[e.shape]:void 0;if(!t)throw Error(`C4: no shape handler for "${e.shape}"`);return t},`shapeHandlerFor`);await Promise.all(l.map(async e=>{let n=X5e(e,VN,VN.c4ShapePadding,a,VN.width);n.domId=`${s}-${n.id}`;let r=await u(n)(t,n,o);e.width=n.width??VN.width,e.height=n.height??VN.height,e.margin=VN.c4ShapeMargin,r.remove()}));for(let t of l)e.insert(t);await Promise.all(l.map(async e=>{let n=X5e(e,VN,VN.c4ShapePadding,a,VN.width);n.domId=`${s}-${n.id}`,n.x=e.x+e.width/2,n.y=e.y+e.height/2;let r=t.append(`g`).attr(`transform`,`translate(${e.x+e.width/2}, ${e.y+e.height/2})`);await u(n)(r,n,o),e.intersect=n.intersect})),e.bumpLastMargin(VN.c4ShapeMargin)},`drawC4ShapeArray`),KN=class{static{N(this,`Point`)}constructor(e,t){this.x=e,this.y=t}},t7e=N(function(e,t){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:n,y:r}=e.intersect(t);return new KN(n,r)},`getIntersectPoint`),n7e=N(function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=t7e(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:t7e(t,n)}},`getIntersectPoints`),r7e=N(function(e,t,n,r,i){let a=r.db.getC4Type(),o=0;for(let e of t){o+=1;let t=e.wrap&&VN.wrap,r=WN(VN);a===`C4Dynamic`&&(e.label.text=o+`: `+e.label.text);let i=Lm(e.label.text,r);yN(`label`,e,t,r,i),e.techn&&e.techn.text!==``&&(i=Lm(e.techn.text,r),yN(`techn`,e,t,r,i)),e.descr&&e.descr.text!==``&&(i=Lm(e.descr.text,r),yN(`descr`,e,t,r,i));let s=n(e.from),l=n(e.to);if(!s||!l)throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape or boundary`);let u=n7e(s,l);if(!u.startPoint||!u.endPoint)throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);e.startPoint=u.startPoint,e.endPoint=u.endPoint}IN.drawRels(e,t,VN,i)},`drawRels`),N(bN,`drawInsideBoundary`),i7e={drawPersonOrSystemArray:GN,drawBoundary:e7e,setConf:HN,draw:N(async function(e,t,n,r){VN=e5e(`c4`);let i=As().securityLevel,{root:a}=R5e(t,i),o=r.db;o.setWrap(VN.wrap),Z5e=o.getC4ShapeInRow(),Q5e=o.getC4BoundaryInRow(),P.debug(`C:${JSON.stringify(VN,null,2)}`);let s=a.select(`[id="${t}"]`);IN.insertComputerIcon(s,t),IN.insertDatabaseIcon(s,t),IN.insertClockIcon(s,t);let l=new $5e(r);l.setData(VN.diagramMarginX,VN.diagramMarginX,VN.diagramMarginY,VN.diagramMarginY),l.data.widthLimit=screen.availWidth,zN=VN.diagramMarginX,BN=VN.diagramMarginY;let u=o.getTitle();await bN(s,``,l,o.getBoundaries(``),r),IN.insertArrowHead(s,t),IN.insertArrowEnd(s,t),IN.insertArrowCrossHead(s,t),IN.insertArrowFilledHead(s,t),r7e(s,o.getRels(),o.getC4Shape,r,t),l.data.stopx=zN,l.data.stopy=BN;let d=l.data,f=d.startx,p=d.starty,m=BN-p+2*VN.diagramMarginY,h=zN-f,g=h+2*VN.diagramMarginX;u&&s.append(`text`).text(u).attr(`x`,h/2-4*VN.diagramMarginX).attr(`y`,p+VN.diagramMarginY),_s(s,m,g,VN.useMaxWidth);let _=u?60:0;s.attr(`viewBox`,f-VN.diagramMarginX+` -`+(VN.diagramMarginY+_)+` `+g+` `+(m+_)),P.debug(`models:`,d)},`draw`)},a7e=N(()=>{let e=As().c4??{},t=new CSSStyleSheet;for(let n of K5e){let r=t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`,t.cssRules.length)],i=e[`${n}FontFamily`],a=e[`${n}FontSize`],o=e[`${n}FontWeight`];i&&r.style.setProperty(`font-family`,i),a&&r.style.setProperty(`font-size`,typeof a==`number`?`${a}px`:a),o&&r.style.setProperty(`font-weight`,String(o))}return[...t.cssRules].filter(e=>e.style.length>0).map(e=>` ${e.cssText}`).join(` -`)},`elementFontStyles`),o7e={parser:$8e,db:O5e,renderer:i7e,styles:N(e=>`.person { +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){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}}}})();function Te(){this.yy={}}return N(Te,`Parser`),Te.prototype=we,we.Parser=Te,new Te})(),u5e.parser=u5e,d5e=u5e,f5e=N(e=>bs()[e],`getRequiredConfig`),mN=new Set([`label`,`descr`,`techn`,`type`]),hN=N((e,t)=>{for(let[n,r]of Object.entries(t))if(r!==void 0){if(typeof r==`object`){let[t,n]=Object.entries(r)[0];e[t]=mN.has(t)?{text:n}:n}else e[n]=r}},`assignAttributes`),p5e=N(()=>({alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}),`createGlobalBoundary`),gN=[],_N=[``],vN=`global`,yN=``,bN=[p5e()],xN=[],SN=``,CN=!1,wN=4,m5e=2,g5e=N(function(){return h5e},`getC4Type`),_5e=N(function(e){h5e=ns(e,bs())},`setC4Type`),v5e=N(function(e,t,n,r,i,a,o,s,l){if(e==null||t==null||n==null||r==null)return;let u={},d=xN.find(e=>e.from===t&&e.to===n);if(d?u=d:xN.push(u),u.type=e,u.from=t,u.to=n,u.label={text:r},i==null)u.techn??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];u[e]=mN.has(e)?{text:t}:t}else u.techn={text:i};if(a==null)u.descr??={text:``};else if(typeof a==`object`){let[e,t]=Object.entries(a)[0];u[e]=mN.has(e)?{text:t}:t}else u.descr={text:a};hN(u,{sprite:o,tags:s,link:l}),u.wrap=ON()},`addRel`),y5e=N(function(e,t,n,r,i,a,o){if(t===null||n===null)return;let s={},l=gN.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,gN.push(s)),n==null?s.label={text:``}:s.label={text:n},r==null)s.descr??={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=mN.has(e)?{text:t}:t}else s.descr={text:r};hN(s,{sprite:i,tags:a,link:o}),s.typeC4Shape={text:e},s.parentBoundary=vN,s.wrap=ON()},`addPersonOrSystem`),b5e=N(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=gN.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,gN.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn??={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]=mN.has(e)?{text:t}:t}else l.techn={text:r};if(i==null)l.descr??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]=mN.has(e)?{text:t}:t}else l.descr={text:i};hN(l,{sprite:a,tags:o,link:s}),l.wrap=ON(),l.typeC4Shape={text:e},l.parentBoundary=vN},`addContainer`),x5e=N(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=gN.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,gN.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn??={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]=mN.has(e)?{text:t}:t}else l.techn={text:r};if(i==null)l.descr??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]=mN.has(e)?{text:t}:t}else l.descr={text:i};hN(l,{sprite:a,tags:o,link:s}),l.wrap=ON(),l.typeC4Shape={text:e},l.parentBoundary=vN},`addComponent`),S5e=N(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=bN.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,bN.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`system`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]=mN.has(e)?{text:t}:t}else a.type={text:n};hN(a,{tags:r,link:i}),a.parentBoundary=vN,a.wrap=ON(),yN=vN,vN=e,_N.push(yN)},`addPersonOrSystemBoundary`),C5e=N(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=bN.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,bN.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`container`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]=mN.has(e)?{text:t}:t}else a.type={text:n};hN(a,{tags:r,link:i}),a.parentBoundary=vN,a.wrap=ON(),yN=vN,vN=e,_N.push(yN)},`addContainerBoundary`),w5e=N(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=bN.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,bN.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.type={text:`node`};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]=mN.has(e)?{text:t}:t}else l.type={text:r};if(i==null)l.descr??={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]=mN.has(e)?{text:t}:t}else l.descr={text:i};hN(l,{tags:o,link:s}),l.nodeType=e,l.parentBoundary=vN,l.wrap=ON(),yN=vN,vN=t,_N.push(yN)},`addDeploymentNode`),T5e=N(function(){vN=yN,_N.pop(),yN=_N.pop(),_N.push(yN)},`popBoundaryParseStack`),E5e=N(function(e,t,n,r,i,a,o,s,l,u,d){let f=gN.find(e=>e.alias===t);if(!(f===void 0&&(f=bN.find(e=>e.alias===t),f===void 0))){if(n!=null){if(typeof n==`object`){let[e,t]=Object.entries(n)[0];f[e]=t}else f.bgColor=n}if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];f[e]=t}else f.fontColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];f[e]=t}else f.borderColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];f[e]=t}else f.shadowing=a}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];f[e]=t}else f.shape=o}if(s!=null){if(typeof s==`object`){let[e,t]=Object.entries(s)[0];f[e]=t}else f.sprite=s}if(l!=null){if(typeof l==`object`){let[e,t]=Object.entries(l)[0];f[e]=t}else f.techn=l}if(u!=null){if(typeof u==`object`){let[e,t]=Object.entries(u)[0];f[e]=t}else f.legendText=u}if(d!=null){if(typeof d==`object`){let[e,t]=Object.entries(d)[0];f[e]=t}else f.legendSprite=d}}},`updateElStyle`),TN=N(function(e,t,n,r,i,a,o){let s=xN.find(e=>e.from===t&&e.to===n);if(s!==void 0){if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(a)}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}}},`updateRelStyle`),D5e=N(function(e,t,n){let r=wN,i=m5e;if(typeof t==`object`){let e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if(typeof n==`object`){let e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(wN=r),i>=1&&(m5e=i)},`updateLayoutConfig`),O5e=N(function(){return wN},`getC4ShapeInRow`),k5e=N(function(){return m5e},`getC4BoundaryInRow`),A5e=N(function(){return vN},`getCurrentBoundaryParse`),j5e=N(function(){return yN},`getParentBoundaryParse`),EN=N(function(e){return e==null?gN:gN.filter(t=>t.parentBoundary===e)},`getC4ShapeArray`),M5e=N(function(e){return gN.find(t=>t.alias===e)??bN.find(t=>t.alias===e)},`getC4Shape`),N5e=N(function(e){return Object.keys(EN(e))},`getC4ShapeKeys`),DN=N(function(e){return e==null?bN:bN.filter(t=>t.parentBoundary===e)},`getBoundaries`),P5e=DN,F5e=N(function(){return xN},`getRels`),I5e=N(function(){return SN},`getTitle`),L5e=N(function(e){CN=e},`setWrap`),ON=N(function(){return CN},`autoWrap`),kN={addPersonOrSystem:y5e,addPersonOrSystemBoundary:S5e,addContainer:b5e,addContainerBoundary:C5e,addComponent:x5e,addDeploymentNode:w5e,popBoundaryParseStack:T5e,addRel:v5e,updateElStyle:E5e,updateRelStyle:TN,updateLayoutConfig:D5e,autoWrap:ON,setWrap:L5e,getC4ShapeArray:EN,getC4Shape:M5e,getC4ShapeKeys:N5e,getBoundaries:DN,getBoundarys:P5e,getCurrentBoundaryParse:A5e,getParentBoundaryParse:j5e,getRels:F5e,getTitle:I5e,getC4Type:g5e,getC4ShapeInRow:O5e,getC4BoundaryInRow:k5e,setAccTitle:ps,getAccTitle:ms,getAccDescription:gs,setAccDescription:hs,getConfig:N(()=>f5e(`c4`),`getConfig`),clear:N(function(){gN=[],bN=[p5e()],yN=``,vN=`global`,_N=[``],xN=[],_N=[``],SN=``,CN=!1,wN=4,m5e=2},`clear`),LINETYPE:{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},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:N(function(e){SN=ns(e,bs())},`setTitle`),setC4Type:_5e},R5e=N(function(e,t){return r5e(e,t)},`drawRect`),z5e=N((e,t,n,r)=>{let i=e.append(`g`),a=0;for(let e of t){let t=e.textColor?e.textColor:`#444444`,o=e.lineColor?e.lineColor:`#444444`,s=e.offsetX?parseInt(String(e.offsetX)):0,l=e.offsetY?parseInt(String(e.offsetY)):0;if(a===0){let t=i.append(`line`);t.attr(`x1`,e.startPoint.x),t.attr(`y1`,e.startPoint.y),t.attr(`x2`,e.endPoint.x),t.attr(`y2`,e.endPoint.y),t.attr(`stroke-width`,`1`),t.attr(`stroke`,o),t.style(`fill`,`none`),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`),a=-1}else{let t=i.append(`path`);t.attr(`fill`,`none`).attr(`stroke-width`,`1`).attr(`stroke`,o).attr(`d`,`Mstartx,starty Qcontrolx,controly stopx,stopy `.replaceAll(`startx`,e.startPoint.x).replaceAll(`starty`,e.startPoint.y).replaceAll(`controlx`,e.startPoint.x+(e.endPoint.x-e.startPoint.x)/2-(e.endPoint.x-e.startPoint.x)/4).replaceAll(`controly`,e.startPoint.y+(e.endPoint.y-e.startPoint.y)/2).replaceAll(`stopx`,e.endPoint.x).replaceAll(`stopy`,e.endPoint.y)),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`)}let u=e.label.width,d=n.messageFont();NN(n)(e.label.text,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+l,u,e.label.height,{fill:t},d),e.techn&&e.techn.text!==``&&(d=n.messageFont(),NN(n)(`[`+e.techn.text+`]`,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+n.messageFontSize+5+l,Math.max(u,e.techn.width),e.techn.height,{fill:t,"font-style":`italic`},d))}},`drawRels`),B5e=N(function(e,t,n){let r=e.append(`g`),i=t.bgColor?t.bgColor:`none`,a=t.borderColor?t.borderColor:`#444444`,o=t.fontColor?t.fontColor:`black`,s={"stroke-width":1,"stroke-dasharray":`7.0,7.0`};t.nodeType&&(s={"stroke-width":1}),R5e(r,{x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s});let l=n.boundaryFont();l.fontWeight=`bold`,l.fontSize+=2,l.fontColor=o,NN(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:`#444444`},l),t.type&&t.type.text!==``&&(l=n.boundaryFont(),l.fontColor=o,NN(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:`#444444`},l)),t.descr&&t.descr.text!==``&&(l=n.boundaryFont(),l.fontSize-=2,l.fontColor=o,NN(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:`#444444`},l))},`drawBoundary`),V5e=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),AN=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),jN=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),H5e=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),U5e=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),MN=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),W5e=N(function(e,t){let n=e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),NN=(function(){function e(e,t,n,i,a,o,s){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,i,a,o,s,l){let{fontSize:u,fontFamily:d,fontWeight:f}=l,p=e.split(cs.lineBreakRegex);for(let e=0;e{if(t===`sandbox`){let t=Bc(`#i`+e).node()?.contentDocument;if(!t)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:Bc(t.body),doc:t}}return{root:Bc(`body`),doc:document}},`getDiagramRoot`),K5e=new Set([`system_queue`,`external_system_queue`,`container_queue`,`external_container_queue`,`component_queue`,`external_component_queue`]),q5e=new Set([`system_db`,`external_system_db`,`container_db`,`external_container_db`,`component_db`,`external_component_db`]),J5e={person:`person`,box:`rounded`,rounded:`rounded`,cylinder:`cylinder`,database:`cylinder`,db:`cylinder`,queue:`h-cyl`,pipe:`h-cyl`,component:`fr-rect`},FN=N(e=>e?J5e[e.toLowerCase()]:void 0,`keywordShape`),Y5e=N(e=>{let t=FN(e.shape)??FN(e.sprite);if(t)return t;if(e.tags)for(let t of e.tags.split(`,`)){let e=FN(t.trim());if(e)return e}let n=e.typeC4Shape.text;return n===`person`||n===`external_person`?`person`:q5e.has(n)?`cylinder`:K5e.has(n)?`h-cyl`:`rounded`},`resolveNodeShape`),X5e={person:`Person`,system:`Software System`,container:`Container`,component:`Component`},Z5e=N(e=>{let t=e.replace(/^external_/,``).replace(/_(db|queue)$/,``);return X5e[t]??t.replace(/_/g,` `)},`stereotypeLabel`),Q5e=N(e=>e.startsWith(`external_`),`isExternal`),$5e=N(e=>{let t=Z5e(e.typeC4Shape.text);return e.techn?.text?`[${t}: ${e.techn.text}]`:`[${t}]`},`stereotypeText`),e7e=[`person`,`system`,`system_db`,`system_queue`,`container`,`container_db`,`container_queue`,`component`,`component_db`,`component_queue`].flatMap(e=>[e,`external_${e}`]),t7e=new Set(e7e),n7e=N(e=>t7e.has(e),`isC4ElementType`),r7e=N((e,t)=>{let n=e.typeC4Shape.text,r=e.bgColor??(n7e(n)&&t[`${n}_bg_color`]),i=e.borderColor??(n7e(n)&&t[`${n}_border_color`]),a=[];return r&&a.push(`fill:${r}`),i&&a.push(`stroke:${i}`),a.push(`color:${e.fontColor??`#FFFFFF`}`),a},`elementCssStyles`),i7e=N((e,t,n,r,i)=>{let a=e.typeC4Shape.text,o=[`c4-shape`,`c4-${a}`];Q5e(a)&&o.push(`c4-external`);let s=Y5e(e),l=r7e(e,t);return(s===`rounded`||s===`fr-rect`)&&l.push(`rx:12px`,`ry:12px`),{id:e.alias,label:e.label.text,stereotype:$5e(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:`string`,isGroup:!1,shape:s,cssClasses:o.join(` `),cssStyles:l,padding:n,look:r,useHtmlLabels:!1,width:i}},`buildC4Node`),IN=0,LN=0,a7e=4,RN=2,u5e.yy=kN,zN={},BN=class{static{N(this,`Bounds`)}constructor(e){this.name=``,this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,VN(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.stopx,n=this.data.widthLimit,r=this.nextData.startx===this.nextData.stopx?t+e.margin:t+e.margin*2,i=r+e.width,a=this.nextData.starty+e.margin*2,o=a+e.height;(r>=n||i>=n||this.nextData.cnt>a7e)&&(r=this.nextData.startx+e.margin+zN.nextLinePaddingX,a=this.nextData.stopy+e.margin*2,this.nextData.stopx=i=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=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`,i,Math.max),this.updateVal(this.data,`stopy`,o,Math.max),this.updateVal(this.nextData,`startx`,r,Math.min),this.updateVal(this.nextData,`starty`,a,Math.min),this.updateVal(this.nextData,`stopx`,i,Math.max),this.updateVal(this.nextData,`stopy`,o,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},VN(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},VN=N(function(e){mo(zN,e),e?.fontFamily&&(zN.personFontFamily=zN.systemFontFamily=zN.messageFontFamily=e.fontFamily),e?.fontSize&&(zN.personFontSize=zN.systemFontSize=zN.messageFontSize=e.fontSize),e?.fontWeight&&(zN.personFontWeight=zN.systemFontWeight=zN.messageFontWeight=e.fontWeight)},`setConf`),HN=N(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),`boundaryFont`),o7e=N(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),N(fN,`calcC4ShapeTextWH`),s7e=N(function(e,t,n){let r=n.data.startx,i=n.data.starty;t.x=r,t.y=i,t.width=n.data.stopx-r,t.height=n.data.stopy-i,t.intersect=e=>d_.rect({x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height},e),t.label.y=zN.c4ShapeMargin-35;let a=t.wrap&&zN.wrap,o=HN(zN);o.fontSize+=2,o.fontWeight=`bold`,fN(`label`,t,a,o,zm(t.label.text,o)),PN.drawBoundary(e,t,zN)},`drawBoundary`),c7e=N(async function(e,t,n,r){let i=bs(),a=i.look??`classic`,o={config:i},s=t.attr(`id`)??``,l=r.map(e=>n[Number(e)]),u=N(e=>{let t=e.shape?R_[e.shape]:void 0;if(!t)throw Error(`C4: no shape handler for "${e.shape}"`);return t},`shapeHandlerFor`);await Promise.all(l.map(async e=>{let n=i7e(e,zN,zN.c4ShapePadding,a,zN.width);n.domId=`${s}-${n.id}`;let r=await u(n)(t,n,o);e.width=n.width??zN.width,e.height=n.height??zN.height,e.margin=zN.c4ShapeMargin,r.remove()}));for(let t of l)e.insert(t);await Promise.all(l.map(async e=>{let n=i7e(e,zN,zN.c4ShapePadding,a,zN.width);n.domId=`${s}-${n.id}`,n.x=e.x+e.width/2,n.y=e.y+e.height/2;let r=t.append(`g`).attr(`transform`,`translate(${e.x+e.width/2}, ${e.y+e.height/2})`);await u(n)(r,n,o),e.intersect=n.intersect})),e.bumpLastMargin(zN.c4ShapeMargin)},`drawC4ShapeArray`),l7e=class{static{N(this,`Point`)}constructor(e,t){this.x=e,this.y=t}},u7e=N(function(e,t){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:n,y:r}=e.intersect(t);return new l7e(n,r)},`getIntersectPoint`),UN=N(function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=u7e(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:u7e(t,n)}},`getIntersectPoints`),d7e=N(function(e,t,n,r,i){let a=r.db.getC4Type(),o=0;for(let e of t){o+=1;let t=e.wrap&&zN.wrap,r=o7e(zN);a===`C4Dynamic`&&(e.label.text=o+`: `+e.label.text);let i=zm(e.label.text,r);fN(`label`,e,t,r,i),e.techn&&e.techn.text!==``&&(i=zm(e.techn.text,r),fN(`techn`,e,t,r,i)),e.descr&&e.descr.text!==``&&(i=zm(e.descr.text,r),fN(`descr`,e,t,r,i));let s=n(e.from),l=n(e.to);if(!s||!l)throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape or boundary`);let u=UN(s,l);if(!u.startPoint||!u.endPoint)throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);e.startPoint=u.startPoint,e.endPoint=u.endPoint}PN.drawRels(e,t,zN,i)},`drawRels`),N(pN,`drawInsideBoundary`),WN={drawPersonOrSystemArray:c7e,drawBoundary:s7e,setConf:VN,draw:N(async function(e,t,n,r){zN=f5e(`c4`);let i=bs().securityLevel,{root:a}=G5e(t,i),o=r.db;o.setWrap(zN.wrap),a7e=o.getC4ShapeInRow(),RN=o.getC4BoundaryInRow(),P.debug(`C:${JSON.stringify(zN,null,2)}`);let s=a.select(`[id="${t}"]`);PN.insertComputerIcon(s,t),PN.insertDatabaseIcon(s,t),PN.insertClockIcon(s,t);let l=new BN(r);l.setData(zN.diagramMarginX,zN.diagramMarginX,zN.diagramMarginY,zN.diagramMarginY),l.data.widthLimit=screen.availWidth,IN=zN.diagramMarginX,LN=zN.diagramMarginY;let u=o.getTitle();await pN(s,``,l,o.getBoundaries(``),r),PN.insertArrowHead(s,t),PN.insertArrowEnd(s,t),PN.insertArrowCrossHead(s,t),PN.insertArrowFilledHead(s,t),d7e(s,o.getRels(),o.getC4Shape,r,t),l.data.stopx=IN,l.data.stopy=LN;let d=l.data,f=d.startx,p=d.starty,m=LN-p+2*zN.diagramMarginY,h=IN-f,g=h+2*zN.diagramMarginX;u&&s.append(`text`).text(u).attr(`x`,h/2-4*zN.diagramMarginX).attr(`y`,p+zN.diagramMarginY),ls(s,m,g,zN.useMaxWidth);let _=u?60:0;s.attr(`viewBox`,f-zN.diagramMarginX+` -`+(zN.diagramMarginY+_)+` `+g+` `+(m+_)),P.debug(`models:`,d)},`draw`)},f7e=N(()=>{let e=bs().c4??{},t=new CSSStyleSheet;for(let n of e7e){let r=t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`,t.cssRules.length)],i=e[`${n}FontFamily`],a=e[`${n}FontSize`],o=e[`${n}FontWeight`];i&&r.style.setProperty(`font-family`,i),a&&r.style.setProperty(`font-size`,typeof a==`number`?`${a}px`:a),o&&r.style.setProperty(`font-weight`,String(o))}return[...t.cssRules].filter(e=>e.style.length>0).map(e=>` ${e.cssText}`).join(` +`)},`elementFontStyles`),p7e={parser:d5e,db:kN,renderer:WN,styles:N(e=>`.person { stroke: ${e.personBorder}; fill: ${e.personBkg}; } -${a7e()} +${f7e()} /* The element font colour is set inline per element (default white); the label text takes it via currentColor. */ @@ -979,7 +981,7 @@ ${a7e()} .c4-shape line { stroke-width: 2px; } -`,`getStyles`),init:N(({c4:e,wrap:t})=>{i7e.setConf(e),O5e.setWrap(t)},`init`)}})),JN,YN=o((()=>{tr(),JN=N(()=>` +`,`getStyles`),init:N(({c4:e,wrap:t})=>{WN.setConf(e),kN.setWrap(t)},`init`)}})),GN,KN=o((()=>{Zn(),GN=N(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; @@ -993,21 +995,21 @@ ${a7e()} stroke: revert; stroke-width: revert; } -`,`getIconStyles`)})),XN,ZN=o((()=>{tr(),Dp(),XN=N((e,t)=>{let n;return t===`sandbox`&&(n=Qc(`#i`+e)),Qc(t===`sandbox`?n.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`)})),QN,s7e,c7e,$N=o((()=>{Ls(),ar(),tr(),QN=N((e,t,n,r)=>{e.attr(`class`,n);let{width:i,height:a,x:o,y:s}=s7e(e,t);_s(e,a,i,r);let l=c7e(o,s,i,a,t);e.attr(`viewBox`,l),P.debug(`viewBox configured: ${l} with padding: ${t}`)},`setupViewPortForSVG`),s7e=N((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),c7e=N((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`)})),l7e,u7e,d7e,f7e,p7e,m7e,h7e,g7e,_7e,v7e,y7e,b7e,x7e=o((()=>{YN(),ZN(),$N(),rm(),YM(),vN(),I_(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),qr(),Tr(),l7e=`flowchart-`,u7e=class{constructor(){this.vertexCounter=0,this.config=As(),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=Cs,this.setAccDescription=Ts,this.setDiagramTitle=Ds,this.getAccTitle=ws,this.getAccDescription=Es,this.getDiagramTitle=Os,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`)}static{N(this,`FlowDB`)}sanitizeText(e){return gs.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(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s){if(!e||e.trim().length===0)return;let l;if(s!==void 0){let e;e=s.includes(` +`,`getIconStyles`)})),qN,JN=o((()=>{Zn(),Dp(),qN=N((e,t)=>{let n;return t===`sandbox`&&(n=Bc(`#i`+e)),Bc(t===`sandbox`?n.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`)})),YN,h7e,g7e,XN=o((()=>{Os(),er(),Zn(),YN=N((e,t,n,r)=>{e.attr(`class`,n);let{width:i,height:a,x:o,y:s}=h7e(e,t);ls(e,a,i,r);let l=g7e(o,s,i,a,t);e.attr(`viewBox`,l),P.debug(`viewBox configured: ${l} with padding: ${t}`)},`setupViewPortForSVG`),h7e=N((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),g7e=N((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`)})),_7e,v7e,y7e,b7e,x7e,S7e,C7e,w7e,T7e,E7e,D7e,O7e,k7e=o((()=>{KN(),JN(),XN(),om(),UM(),dN(),z_(),qh(),qm(),Os(),er(),Zn(),Dp(),Wr(),br(),_7e=`flowchart-`,v7e=class{constructor(){this.vertexCounter=0,this.config=bs(),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=ps,this.setAccDescription=hs,this.setDiagramTitle=_s,this.getAccTitle=ms,this.getAccDescription=gs,this.getDiagramTitle=vs,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`)}static{N(this,`FlowDB`)}sanitizeText(e){return cs.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(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s){if(!e||e.trim().length===0)return;let l;if(s!==void 0){let e;e=s.includes(` `)?s+` `:`{ `+s+` -}`,l=tm(e,{schema:Qp})}let u=this.subGraphLookup.get(e);if(u&&l){u.metadata={...u.metadata,...l};return}let d=this.edges.find(t=>t.id===e);if(d){let e=l;e?.animate!==void 0&&(d.animate=e.animate),e?.animation!==void 0&&(d.animation=e.animation),e?.curve!==void 0&&(d.interpolate=e.curve);return}let f,p=this.vertices.get(e);if(p===void 0&&(t===void 0&&n===void 0&&r!=null&&P.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),p={id:e,labelType:`text`,domId:l7e+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,t===void 0?p.text===void 0&&(p.text=e):(this.config=As(),f=this.sanitizeText(t.text.trim()),p.labelType=t.type,f.startsWith(`"`)&&f.endsWith(`"`)&&(f=f.substring(1,f.length-1)),p.text=f),n!==void 0&&(p.type=n),r?.forEach(e=>{p.styles.push(e)}),i?.forEach(e=>{p.classes.push(e)}),a!==void 0&&(p.dir=a),p.props===void 0?p.props=o:o!==void 0&&Object.assign(p.props,o),l!==void 0){if(l.shape){if(l.shape!==l.shape.toLowerCase()||l.shape.includes(`_`))throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);if(!Wje(l.shape))throw Error(`No such shape: ${l.shape}.`);p.type=l?.shape}l?.label&&(p.text=l?.label,p.labelType=this.sanitizeNodeLabelType(l?.labelType)),l?.icon&&(p.icon=l?.icon,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.form&&(p.form=l?.form),l?.pos&&(p.pos=l?.pos),l?.img&&(p.img=l?.img,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.constraint&&(p.constraint=l.constraint),l.w&&(p.assetWidth=Number(l.w)),l.h&&(p.assetHeight=Number(l.h))}}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};P.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?Wm(i.start,i.end,{counter:0,prefix:`L`}):Wm(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))P.info(`Pushing edge...`),this.edges.push(i);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. +}`,l=am(e,{schema:rm})}let u=this.subGraphLookup.get(e);if(u&&l){u.metadata={...u.metadata,...l};return}let d=this.edges.find(t=>t.id===e);if(d){let e=l;e?.animate!==void 0&&(d.animate=e.animate),e?.animation!==void 0&&(d.animation=e.animation),e?.curve!==void 0&&(d.interpolate=e.curve);return}let f,p=this.vertices.get(e);if(p===void 0&&(t===void 0&&n===void 0&&r!=null&&P.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),p={id:e,labelType:`text`,domId:_7e+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,t===void 0?p.text===void 0&&(p.text=e):(this.config=bs(),f=this.sanitizeText(t.text.trim()),p.labelType=t.type,f.startsWith(`"`)&&f.endsWith(`"`)&&(f=f.substring(1,f.length-1)),p.text=f),n!==void 0&&(p.type=n),r?.forEach(e=>{p.styles.push(e)}),i?.forEach(e=>{p.classes.push(e)}),a!==void 0&&(p.dir=a),p.props===void 0?p.props=o:o!==void 0&&Object.assign(p.props,o),l!==void 0){if(l.shape){if(l.shape!==l.shape.toLowerCase()||l.shape.includes(`_`))throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);if(!Jje(l.shape))throw Error(`No such shape: ${l.shape}.`);p.type=l?.shape}l?.label&&(p.text=l?.label,p.labelType=this.sanitizeNodeLabelType(l?.labelType)),l?.icon&&(p.icon=l?.icon,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.form&&(p.form=l?.form),l?.pos&&(p.pos=l?.pos),l?.img&&(p.img=l?.img,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.constraint&&(p.constraint=l.constraint),l.w&&(p.assetWidth=Number(l.w)),l.h&&(p.assetHeight=Number(l.h))}}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};P.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?Km(i.start,i.end,{counter:0,prefix:`L`}):Km(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))P.info(`Pushing edge...`),this.edges.push(i);else throw 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 typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;P.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}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,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(As().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{Hm.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=Hm.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=X8e();Qc(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=Qc(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Kr.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Qc(e.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=As(),Ss()}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,t,n){let r=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(r=void 0);let a=N(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir,l=As().flowchart??{};if(s??=l.inheritDir?this.getDirection()??As().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;ee!==r);let d=this.subGraphs.find(e=>e.id===r);return d?d.nodes.push(...u.nodes):this.subGraphs.push(u),this.subGraphLookup.set(r,d??u),r}getPosForId(e){for(let[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){let n=this.subGraphs[t].nodes;if(this.secCount+=1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=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 t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1)}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1))}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:`INVALID`,stroke:`INVALID`};if(r.type===`arrow_open`)r.type=n.type;else{if(r.type!==n.type)return{type:`INVALID`,stroke:`INVALID`};r.type=`double_`+r.type}return r.type===`double_arrow`&&(r.type=`double_arrow_point`),r.length=n.length,r}return n}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||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,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`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`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(` `);else{let n={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:a,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};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:i.flowchart?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=As(),t=[],n=[],r=this.getSubGraphs(),i=new Map,a=new Map,o=new Map;for(let e of r)for(let t of e.nodes)this.subGraphLookup.has(t)&&o.set(t,e.id);let s=new Map,l=new Map;for(let e of r){let t=o.get(e.id);t!==void 0&&l.set(t,[...l.get(t)??[],e.id])}let u=0,d=N(e=>{s.set(e,u++);for(let t of l.get(e)??[])d(t)},`walk`);for(let e of r)o.has(e.id)||d(e.id);let f=N(e=>this.subGraphLookup.get(e)?.metadata?.view===`collapsed`,`isCollapsed`),p=N(e=>{let t,n=new Set,r=e;for(;r!==void 0&&!n.has(r);)n.add(r),f(r)&&(t=r),r=o.get(r);return t},`outermostCollapsed`),m=new Set,h=new Map;for(let e of r){let t=p(e.id);if(t!==void 0){e.id!==t&&(m.add(e.id),h.set(e.id,t));for(let n of e.nodes)n!==t&&(m.add(n),h.set(n,t))}}for(let e=r.length-1;e>=0;e--){let t=r[e];if(!m.has(t.id)){t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}}for(let n=r.length-1;n>=0;n--){let a=r[n];m.has(a.id)||(a.metadata?.view===`collapsed`?t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`collapsedGroup`,dir:a.dir,isGroup:!1,look:e.look,colorIndex:s.get(a.id)}):t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:e.look,colorIndex:s.get(a.id),metadata:a.metadata}))}this.getVertices().forEach(n=>{m.has(n.id)||this.addNodeFromVertex(n,t,i,a,e,e.look||`classic`)});let g=this.getEdges();return g.forEach((t,r)=>{let{arrowTypeStart:i,arrowTypeEnd:a}=this.destructEdgeType(t.type),o=[...g.defaultStyle??[]],s=h.get(t.start)??t.start,l=h.get(t.end)??t.end;if(s===l&&(h.has(t.start)||h.has(t.end)))return;t.style&&o.push(...t.style);let u={id:Wm(s,l,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:s,end:l,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:i,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:a,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:o,style:o,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(u)}),{nodes:t,edges:n,other:{},config:e}}defaultConfig(){return Ms.flowchart}},d7e={getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,flowchart:a,layout:o}=As();r.db.setDiagramId(t),P.debug(`Before getData: `);let s=r.db.getData();P.debug(`Data: `,s);let l=XN(t,i),u=r.db.getDirection();s.type=r.type,s.layoutAlgorithm=JM(o),s.direction=u,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`point`,`circle`,`cross`],s.diagramId=t,P.debug(`REF1:`,s),await KM(s,l);let d=s.config.flowchart?.diagramPadding??8;Hm.insertTitle(l,`flowchartTitleText`,a?.titleTopMargin||0,r.db.getDiagramTitle()),QN(l,d,`flowchart`,a?.useMaxWidth||!1)},`draw`)},f7e=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],o=[1,13],s=[1,14],l=[1,15],u=[1,16],d=[1,23],f=[1,25],p=[1,26],m=[1,27],h=[1,50],g=[1,49],_=[1,29],v=[1,30],y=[1,31],b=[1,32],x=[1,33],S=[1,45],C=[1,47],w=[1,43],T=[1,48],E=[1,44],D=[1,51],O=[1,46],k=[1,52],A=[1,53],j=[1,34],M=[1,35],ee=[1,36],te=[1,37],ne=[1,38],re=[1,58],ie=[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],ae=[1,62],oe=[1,61],se=[1,63],ce=[8,9,11,75,77,78],le=[1,79],ue=[1,92],de=[1,97],fe=[1,96],pe=[1,93],me=[1,89],he=[1,95],ge=[1,91],_e=[1,98],ve=[1,94],ye=[1,99],be=[1,90],xe=[8,9,10,11,40,75,77,78],Se=[8,9,10,11,40,46,75,77,78],Ce=[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],we=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Te=[44,60,89,102,105,106,109,111,114,115,116],Ee=[1,122],De=[1,123],Oe=[1,125],ke=[1,124],Ae=[44,60,62,74,89,102,105,106,109,111,114,115,116],je=[1,134],Me=[1,148],Ne=[1,149],Pe=[1,150],Fe=[1,151],Ie=[1,136],Le=[1,138],Re=[1,142],ze=[1,143],Be=[1,144],Ve=[1,145],He=[1,146],Ue=[1,147],We=[1,152],Ge=[1,153],Ke=[1,132],qe=[1,133],Je=[1,140],Ye=[1,135],Xe=[1,139],Ze=[1,137],Qe=[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],$e=[1,155],et=[1,157],tt=[8,9,11],nt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],rt=[1,177],it=[1,173],at=[1,174],ot=[1,178],st=[1,175],ct=[1,176],lt=[77,116,119],ut=[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],dt=[10,106],ft=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],pt=[1,248],mt=[1,246],ht=[1,250],gt=[1,244],_t=[1,245],vt=[1,247],yt=[1,249],bt=[1,251],xt=[1,269],St=[8,9,11,106],Ct=[8,9,10,11,60,84,105,106,109,110,111,112],wt={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:this.$=[a[s]];break;case 52:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=a[s];break;case 55:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 58:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 62:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 66:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 72:this.$=a[s],r.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:this.$=a[s];break;case 77:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1]};break;case 78:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1],id:a[s-3]};break;case 79:this.$={text:a[s],type:`text`};break;case 80:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 81:this.$={text:a[s],type:`string`};break;case 82:this.$={text:a[s],type:`markdown`};break;case 83:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 86:this.$={text:a[s],type:`text`};break;case 87:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 88:this.$={text:a[s],type:`string`};break;case 89:case 104:this.$={text:a[s],type:`markdown`};break;case 101:this.$={text:a[s],type:`text`};break;case 102:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 103:this.$={text:a[s],type:`text`};break;case 105:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 128:case 130:this.$=[a[s]];break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 133:this.$=a[s-1]+a[s];break;case 181:this.$=a[s];break;case 182:this.$=a[s-1]+``+a[s];break;case 184:this.$=a[s-1]+``+a[s];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`}}},`anonymous`),table:[{3:1,4:2,9:t,10:n,12:r},{1:[3]},e(i,a,{5:6}),{4:7,9:t,10:n,12:r},{4:8,9:t,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,55],9:[1,56],10:re,15:54,18:57},e(ie,[2,3]),e(ie,[2,4]),e(ie,[2,5]),e(ie,[2,6]),e(ie,[2,7]),e(ie,[2,8]),{8:ae,9:oe,11:se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ae,9:oe,11:se,21:68},{8:ae,9:oe,11:se,21:69},{8:ae,9:oe,11:se,21:70},{8:ae,9:oe,11:se,21:71},{8:ae,9:oe,11:se,21:72},{8:ae,9:oe,10:[1,73],11:se,21:74},e(ie,[2,36]),{35:[1,75]},{37:[1,76]},e(ie,[2,39]),e(ce,[2,50],{18:77,39:78,10:re,40:le}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ue,44:de,60:fe,80:[1,87],89:pe,95:[1,84],97:[1,85],101:86,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be,120:88},e(ie,[2,185]),e(ie,[2,186]),e(ie,[2,187]),e(ie,[2,188]),e(ie,[2,189]),e(xe,[2,51]),e(xe,[2,54],{46:[1,100]}),e(Se,[2,72],{113:113,29:[1,101],44:h,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:g,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(Ce,[2,181]),e(Ce,[2,142]),e(Ce,[2,143]),e(Ce,[2,144]),e(Ce,[2,145]),e(Ce,[2,146]),e(Ce,[2,147]),e(Ce,[2,148]),e(Ce,[2,149]),e(Ce,[2,150]),e(Ce,[2,151]),e(Ce,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,114]},e(we,[2,26],{18:115,10:re}),e(ie,[2,27]),{42:116,43:39,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(ie,[2,40]),e(ie,[2,41]),e(ie,[2,42]),e(Te,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Ee,81:De,116:Oe,119:ke},{75:[1,126],77:[1,127]},e(Ae,[2,83]),e(ie,[2,28]),e(ie,[2,29]),e(ie,[2,30]),e(ie,[2,31]),e(ie,[2,32]),{10:je,12:Me,14:Ne,27:Pe,28:128,32:Fe,44:Ie,60:Le,75:Re,80:[1,130],81:[1,131],83:141,84:ze,85:Be,86:Ve,87:He,88:Ue,89:We,90:Ge,91:129,105:Ke,109:qe,111:Je,114:Ye,115:Xe,116:Ze},e(Qe,a,{5:154}),e(ie,[2,37]),e(ie,[2,38]),e(ce,[2,48],{44:$e}),e(ce,[2,49],{18:156,10:re,40:et}),e(xe,[2,44]),{44:h,47:158,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{102:[1,159],103:160,105:[1,161]},{44:h,47:162,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{44:h,47:163,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(tt,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(tt,[2,115],{120:168,10:[1,167],14:ue,44:de,60:fe,89:pe,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be}),e(tt,[2,117],{10:[1,169]}),e(nt,[2,183]),e(nt,[2,170]),e(nt,[2,171]),e(nt,[2,172]),e(nt,[2,173]),e(nt,[2,174]),e(nt,[2,175]),e(nt,[2,176]),e(nt,[2,177]),e(nt,[2,178]),e(nt,[2,179]),e(nt,[2,180]),{44:h,47:170,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{30:171,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:179,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:181,50:[1,180],67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:182,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:183,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:184,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{109:[1,185]},{30:186,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:187,65:[1,188],67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:189,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:190,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:191,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},e(Ce,[2,182]),e(i,[2,20]),e(we,[2,25]),e(ce,[2,46],{39:192,18:193,10:re,40:le}),e(Te,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{77:[1,197],79:198,116:Oe,119:ke},e(lt,[2,79]),e(lt,[2,81]),e(lt,[2,82]),e(lt,[2,168]),e(lt,[2,169]),{76:199,79:121,80:Ee,81:De,116:Oe,119:ke},e(Ae,[2,84]),{8:ae,9:oe,10:je,11:se,12:Me,14:Ne,21:201,27:Pe,29:[1,200],32:Fe,44:Ie,60:Le,75:Re,83:141,84:ze,85:Be,86:Ve,87:He,88:Ue,89:We,90:Ge,91:202,105:Ke,109:qe,111:Je,114:Ye,115:Xe,116:Ze},e(ut,[2,101]),e(ut,[2,103]),e(ut,[2,104]),e(ut,[2,157]),e(ut,[2,158]),e(ut,[2,159]),e(ut,[2,160]),e(ut,[2,161]),e(ut,[2,162]),e(ut,[2,163]),e(ut,[2,164]),e(ut,[2,165]),e(ut,[2,166]),e(ut,[2,167]),e(ut,[2,90]),e(ut,[2,91]),e(ut,[2,92]),e(ut,[2,93]),e(ut,[2,94]),e(ut,[2,95]),e(ut,[2,96]),e(ut,[2,97]),e(ut,[2,98]),e(ut,[2,99]),e(ut,[2,100]),{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},{10:re,18:204},{44:[1,205]},e(xe,[2,43]),{10:[1,206],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,207]},{10:[1,208],106:[1,209]},e(dt,[2,128]),{10:[1,210],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,211],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{80:[1,212]},e(tt,[2,109],{10:[1,213]}),e(tt,[2,111],{10:[1,214]}),{80:[1,215]},e(nt,[2,184]),{80:[1,216],98:[1,217]},e(xe,[2,55],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),{31:[1,218],67:rt,82:219,116:ot,117:st,118:ct},e(ft,[2,86]),e(ft,[2,88]),e(ft,[2,89]),e(ft,[2,153]),e(ft,[2,154]),e(ft,[2,155]),e(ft,[2,156]),{49:[1,220],67:rt,82:219,116:ot,117:st,118:ct},{30:221,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{51:[1,222],67:rt,82:219,116:ot,117:st,118:ct},{53:[1,223],67:rt,82:219,116:ot,117:st,118:ct},{55:[1,224],67:rt,82:219,116:ot,117:st,118:ct},{57:[1,225],67:rt,82:219,116:ot,117:st,118:ct},{60:[1,226]},{64:[1,227],67:rt,82:219,116:ot,117:st,118:ct},{66:[1,228],67:rt,82:219,116:ot,117:st,118:ct},{30:229,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{31:[1,230],67:rt,82:219,116:ot,117:st,118:ct},{67:rt,69:[1,231],71:[1,232],82:219,116:ot,117:st,118:ct},{67:rt,69:[1,234],71:[1,233],82:219,116:ot,117:st,118:ct},e(ce,[2,45],{18:156,10:re,40:et}),e(ce,[2,47],{44:$e}),e(Te,[2,75]),e(Te,[2,74]),{62:[1,235],67:rt,82:219,116:ot,117:st,118:ct},e(Te,[2,77]),e(lt,[2,80]),{77:[1,236],79:198,116:Oe,119:ke},{30:237,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},e(Qe,a,{5:238}),e(ut,[2,102]),e(ie,[2,35]),{43:239,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{10:re,18:240},{10:pt,60:mt,84:ht,92:241,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{10:pt,60:mt,84:ht,92:252,104:[1,253],105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{10:pt,60:mt,84:ht,92:254,104:[1,255],105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{105:[1,256]},{10:pt,60:mt,84:ht,92:257,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{44:h,47:258,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(tt,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(tt,[2,116]),e(tt,[2,118],{10:[1,262]}),e(tt,[2,119]),e(Se,[2,56]),e(ft,[2,87]),e(Se,[2,57]),{51:[1,263],67:rt,82:219,116:ot,117:st,118:ct},e(Se,[2,64]),e(Se,[2,59]),e(Se,[2,60]),e(Se,[2,61]),{109:[1,264]},e(Se,[2,63]),e(Se,[2,65]),{66:[1,265],67:rt,82:219,116:ot,117:st,118:ct},e(Se,[2,67]),e(Se,[2,68]),e(Se,[2,70]),e(Se,[2,69]),e(Se,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(Te,[2,78]),{31:[1,266],67:rt,82:219,116:ot,117:st,118:ct},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},e(xe,[2,53]),{43:268,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(tt,[2,121],{106:xt}),e(St,[2,130],{108:270,10:pt,60:mt,84:ht,105:gt,109:_t,110:vt,111:yt,112:bt}),e(Ct,[2,132]),e(Ct,[2,134]),e(Ct,[2,135]),e(Ct,[2,136]),e(Ct,[2,137]),e(Ct,[2,138]),e(Ct,[2,139]),e(Ct,[2,140]),e(Ct,[2,141]),e(tt,[2,122],{106:xt}),{10:[1,271]},e(tt,[2,123],{106:xt}),{10:[1,272]},e(dt,[2,129]),e(tt,[2,105],{106:xt}),e(tt,[2,106],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(tt,[2,110]),e(tt,[2,112],{10:[1,273]}),e(tt,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ae,9:oe,11:se,21:278},e(ie,[2,34]),e(xe,[2,52]),{10:pt,60:mt,84:ht,105:gt,107:279,108:243,109:_t,110:vt,111:yt,112:bt},e(Ct,[2,133]),{14:ue,44:de,60:fe,89:pe,101:280,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be,120:88},{14:ue,44:de,60:fe,89:pe,101:281,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be,120:88},{98:[1,282]},e(tt,[2,120]),e(Se,[2,58]),{30:283,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},e(Se,[2,66]),e(Qe,a,{5:284}),e(St,[2,131],{108:270,10:pt,60:mt,84:ht,105:gt,109:_t,110:vt,111:yt,112:bt}),e(tt,[2,126],{120:168,10:[1,285],14:ue,44:de,60:fe,89:pe,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be}),e(tt,[2,127],{120:168,10:[1,286],14:ue,44:de,60:fe,89:pe,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be}),e(tt,[2,114]),{31:[1,287],67:rt,82:219,116:ot,117:st,118:ct},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},{10:pt,60:mt,84:ht,92:289,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{10:pt,60:mt,84:ht,92:290,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},e(Se,[2,62]),e(ie,[2,33]),e(tt,[2,124],{106:xt}),e(tt,[2,125],{106:xt})],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +You have to call mermaid.initialize.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;P.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}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,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(bs().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{Wm.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=Wm.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=c5e();Bc(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=Bc(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Ur.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Bc(e.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=bs(),fs()}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,t,n){let r=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(r=void 0);let a=N(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir,l=bs().flowchart??{};if(s??=l.inheritDir?this.getDirection()??bs().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;ee!==r);let d=this.subGraphs.find(e=>e.id===r);return d?d.nodes.push(...u.nodes):this.subGraphs.push(u),this.subGraphLookup.set(r,d??u),r}getPosForId(e){for(let[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){let n=this.subGraphs[t].nodes;if(this.secCount+=1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=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 t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1)}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1))}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:`INVALID`,stroke:`INVALID`};if(r.type===`arrow_open`)r.type=n.type;else{if(r.type!==n.type)return{type:`INVALID`,stroke:`INVALID`};r.type=`double_`+r.type}return r.type===`double_arrow`&&(r.type=`double_arrow_point`),r.length=n.length,r}return n}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||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,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`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`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(` `);else{let n={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:a,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};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:i.flowchart?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=bs(),t=[],n=[],r=this.getSubGraphs(),i=new Map,a=new Map,o=new Map;for(let e of r)for(let t of e.nodes)this.subGraphLookup.has(t)&&o.set(t,e.id);let s=new Map,l=new Map;for(let e of r){let t=o.get(e.id);t!==void 0&&l.set(t,[...l.get(t)??[],e.id])}let u=0,d=N(e=>{s.set(e,u++);for(let t of l.get(e)??[])d(t)},`walk`);for(let e of r)o.has(e.id)||d(e.id);let f=N(e=>this.subGraphLookup.get(e)?.metadata?.view===`collapsed`,`isCollapsed`),p=N(e=>{let t,n=new Set,r=e;for(;r!==void 0&&!n.has(r);)n.add(r),f(r)&&(t=r),r=o.get(r);return t},`outermostCollapsed`),m=new Set,h=new Map;for(let e of r){let t=p(e.id);if(t!==void 0){e.id!==t&&(m.add(e.id),h.set(e.id,t));for(let n of e.nodes)n!==t&&(m.add(n),h.set(n,t))}}for(let e=r.length-1;e>=0;e--){let t=r[e];if(!m.has(t.id)){t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}}for(let n=r.length-1;n>=0;n--){let a=r[n];m.has(a.id)||(a.metadata?.view===`collapsed`?t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`collapsedGroup`,dir:a.dir,isGroup:!1,look:e.look,colorIndex:s.get(a.id)}):t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:e.look,colorIndex:s.get(a.id),metadata:a.metadata}))}this.getVertices().forEach(n=>{m.has(n.id)||this.addNodeFromVertex(n,t,i,a,e,e.look||`classic`)});let g=this.getEdges();return g.forEach((t,r)=>{let{arrowTypeStart:i,arrowTypeEnd:a}=this.destructEdgeType(t.type),o=[...g.defaultStyle??[]],s=h.get(t.start)??t.start,l=h.get(t.end)??t.end;if(s===l&&(h.has(t.start)||h.has(t.end)))return;t.style&&o.push(...t.style);let u={id:Km(s,l,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:s,end:l,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:i,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:a,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:o,style:o,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(u)}),{nodes:t,edges:n,other:{},config:e}}defaultConfig(){return Ss.flowchart}},y7e={getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,flowchart:a,layout:o}=bs();r.db.setDiagramId(t),P.debug(`Before getData: `);let s=r.db.getData();P.debug(`Data: `,s);let l=qN(t,i),u=r.db.getDirection();s.type=r.type,s.layoutAlgorithm=HM(o),s.direction=u,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`point`,`circle`,`cross`],s.diagramId=t,P.debug(`REF1:`,s),await VM(s,l);let d=s.config.flowchart?.diagramPadding??8;Wm.insertTitle(l,`flowchartTitleText`,a?.titleTopMargin||0,r.db.getDiagramTitle()),YN(l,d,`flowchart`,a?.useMaxWidth||!1)},`draw`)},b7e=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],o=[1,13],s=[1,14],l=[1,15],u=[1,16],d=[1,23],f=[1,25],p=[1,26],m=[1,27],h=[1,50],g=[1,49],_=[1,29],v=[1,30],y=[1,31],b=[1,32],x=[1,33],S=[1,45],C=[1,47],w=[1,43],T=[1,48],E=[1,44],D=[1,51],O=[1,46],k=[1,52],A=[1,53],j=[1,34],M=[1,35],ee=[1,36],te=[1,37],ne=[1,38],re=[1,58],ie=[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],ae=[1,62],oe=[1,61],se=[1,63],ce=[8,9,11,75,77,78],le=[1,79],ue=[1,92],de=[1,97],fe=[1,96],pe=[1,93],me=[1,89],he=[1,95],ge=[1,91],_e=[1,98],ve=[1,94],ye=[1,99],be=[1,90],xe=[8,9,10,11,40,75,77,78],Se=[8,9,10,11,40,46,75,77,78],Ce=[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],we=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Te=[44,60,89,102,105,106,109,111,114,115,116],Ee=[1,122],De=[1,123],Oe=[1,125],ke=[1,124],Ae=[44,60,62,74,89,102,105,106,109,111,114,115,116],je=[1,134],Me=[1,148],Ne=[1,149],Pe=[1,150],Fe=[1,151],Ie=[1,136],Le=[1,138],Re=[1,142],ze=[1,143],Be=[1,144],Ve=[1,145],He=[1,146],Ue=[1,147],We=[1,152],Ge=[1,153],Ke=[1,132],qe=[1,133],Je=[1,140],Ye=[1,135],Xe=[1,139],Ze=[1,137],Qe=[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],$e=[1,155],et=[1,157],tt=[8,9,11],nt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],rt=[1,177],it=[1,173],at=[1,174],ot=[1,178],st=[1,175],ct=[1,176],lt=[77,116,119],ut=[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],dt=[10,106],ft=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],pt=[1,248],mt=[1,246],ht=[1,250],gt=[1,244],_t=[1,245],vt=[1,247],yt=[1,249],bt=[1,251],xt=[1,269],St=[8,9,11,106],Ct=[8,9,10,11,60,84,105,106,109,110,111,112],wt={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:this.$=[a[s]];break;case 52:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=a[s];break;case 55:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 58:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 62:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 66:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 72:this.$=a[s],r.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:this.$=a[s];break;case 77:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1]};break;case 78:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1],id:a[s-3]};break;case 79:this.$={text:a[s],type:`text`};break;case 80:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 81:this.$={text:a[s],type:`string`};break;case 82:this.$={text:a[s],type:`markdown`};break;case 83:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 86:this.$={text:a[s],type:`text`};break;case 87:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 88:this.$={text:a[s],type:`string`};break;case 89:case 104:this.$={text:a[s],type:`markdown`};break;case 101:this.$={text:a[s],type:`text`};break;case 102:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 103:this.$={text:a[s],type:`text`};break;case 105:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 128:case 130:this.$=[a[s]];break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 133:this.$=a[s-1]+a[s];break;case 181:this.$=a[s];break;case 182:this.$=a[s-1]+``+a[s];break;case 184:this.$=a[s-1]+``+a[s];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`}}},`anonymous`),table:[{3:1,4:2,9:t,10:n,12:r},{1:[3]},e(i,a,{5:6}),{4:7,9:t,10:n,12:r},{4:8,9:t,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,55],9:[1,56],10:re,15:54,18:57},e(ie,[2,3]),e(ie,[2,4]),e(ie,[2,5]),e(ie,[2,6]),e(ie,[2,7]),e(ie,[2,8]),{8:ae,9:oe,11:se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ae,9:oe,11:se,21:68},{8:ae,9:oe,11:se,21:69},{8:ae,9:oe,11:se,21:70},{8:ae,9:oe,11:se,21:71},{8:ae,9:oe,11:se,21:72},{8:ae,9:oe,10:[1,73],11:se,21:74},e(ie,[2,36]),{35:[1,75]},{37:[1,76]},e(ie,[2,39]),e(ce,[2,50],{18:77,39:78,10:re,40:le}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ue,44:de,60:fe,80:[1,87],89:pe,95:[1,84],97:[1,85],101:86,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be,120:88},e(ie,[2,185]),e(ie,[2,186]),e(ie,[2,187]),e(ie,[2,188]),e(ie,[2,189]),e(xe,[2,51]),e(xe,[2,54],{46:[1,100]}),e(Se,[2,72],{113:113,29:[1,101],44:h,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:g,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(Ce,[2,181]),e(Ce,[2,142]),e(Ce,[2,143]),e(Ce,[2,144]),e(Ce,[2,145]),e(Ce,[2,146]),e(Ce,[2,147]),e(Ce,[2,148]),e(Ce,[2,149]),e(Ce,[2,150]),e(Ce,[2,151]),e(Ce,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,114]},e(we,[2,26],{18:115,10:re}),e(ie,[2,27]),{42:116,43:39,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(ie,[2,40]),e(ie,[2,41]),e(ie,[2,42]),e(Te,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Ee,81:De,116:Oe,119:ke},{75:[1,126],77:[1,127]},e(Ae,[2,83]),e(ie,[2,28]),e(ie,[2,29]),e(ie,[2,30]),e(ie,[2,31]),e(ie,[2,32]),{10:je,12:Me,14:Ne,27:Pe,28:128,32:Fe,44:Ie,60:Le,75:Re,80:[1,130],81:[1,131],83:141,84:ze,85:Be,86:Ve,87:He,88:Ue,89:We,90:Ge,91:129,105:Ke,109:qe,111:Je,114:Ye,115:Xe,116:Ze},e(Qe,a,{5:154}),e(ie,[2,37]),e(ie,[2,38]),e(ce,[2,48],{44:$e}),e(ce,[2,49],{18:156,10:re,40:et}),e(xe,[2,44]),{44:h,47:158,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{102:[1,159],103:160,105:[1,161]},{44:h,47:162,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{44:h,47:163,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(tt,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(tt,[2,115],{120:168,10:[1,167],14:ue,44:de,60:fe,89:pe,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be}),e(tt,[2,117],{10:[1,169]}),e(nt,[2,183]),e(nt,[2,170]),e(nt,[2,171]),e(nt,[2,172]),e(nt,[2,173]),e(nt,[2,174]),e(nt,[2,175]),e(nt,[2,176]),e(nt,[2,177]),e(nt,[2,178]),e(nt,[2,179]),e(nt,[2,180]),{44:h,47:170,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{30:171,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:179,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:181,50:[1,180],67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:182,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:183,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:184,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{109:[1,185]},{30:186,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:187,65:[1,188],67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:189,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:190,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{30:191,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},e(Ce,[2,182]),e(i,[2,20]),e(we,[2,25]),e(ce,[2,46],{39:192,18:193,10:re,40:le}),e(Te,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{77:[1,197],79:198,116:Oe,119:ke},e(lt,[2,79]),e(lt,[2,81]),e(lt,[2,82]),e(lt,[2,168]),e(lt,[2,169]),{76:199,79:121,80:Ee,81:De,116:Oe,119:ke},e(Ae,[2,84]),{8:ae,9:oe,10:je,11:se,12:Me,14:Ne,21:201,27:Pe,29:[1,200],32:Fe,44:Ie,60:Le,75:Re,83:141,84:ze,85:Be,86:Ve,87:He,88:Ue,89:We,90:Ge,91:202,105:Ke,109:qe,111:Je,114:Ye,115:Xe,116:Ze},e(ut,[2,101]),e(ut,[2,103]),e(ut,[2,104]),e(ut,[2,157]),e(ut,[2,158]),e(ut,[2,159]),e(ut,[2,160]),e(ut,[2,161]),e(ut,[2,162]),e(ut,[2,163]),e(ut,[2,164]),e(ut,[2,165]),e(ut,[2,166]),e(ut,[2,167]),e(ut,[2,90]),e(ut,[2,91]),e(ut,[2,92]),e(ut,[2,93]),e(ut,[2,94]),e(ut,[2,95]),e(ut,[2,96]),e(ut,[2,97]),e(ut,[2,98]),e(ut,[2,99]),e(ut,[2,100]),{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},{10:re,18:204},{44:[1,205]},e(xe,[2,43]),{10:[1,206],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,207]},{10:[1,208],106:[1,209]},e(dt,[2,128]),{10:[1,210],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,211],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{80:[1,212]},e(tt,[2,109],{10:[1,213]}),e(tt,[2,111],{10:[1,214]}),{80:[1,215]},e(nt,[2,184]),{80:[1,216],98:[1,217]},e(xe,[2,55],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),{31:[1,218],67:rt,82:219,116:ot,117:st,118:ct},e(ft,[2,86]),e(ft,[2,88]),e(ft,[2,89]),e(ft,[2,153]),e(ft,[2,154]),e(ft,[2,155]),e(ft,[2,156]),{49:[1,220],67:rt,82:219,116:ot,117:st,118:ct},{30:221,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{51:[1,222],67:rt,82:219,116:ot,117:st,118:ct},{53:[1,223],67:rt,82:219,116:ot,117:st,118:ct},{55:[1,224],67:rt,82:219,116:ot,117:st,118:ct},{57:[1,225],67:rt,82:219,116:ot,117:st,118:ct},{60:[1,226]},{64:[1,227],67:rt,82:219,116:ot,117:st,118:ct},{66:[1,228],67:rt,82:219,116:ot,117:st,118:ct},{30:229,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},{31:[1,230],67:rt,82:219,116:ot,117:st,118:ct},{67:rt,69:[1,231],71:[1,232],82:219,116:ot,117:st,118:ct},{67:rt,69:[1,234],71:[1,233],82:219,116:ot,117:st,118:ct},e(ce,[2,45],{18:156,10:re,40:et}),e(ce,[2,47],{44:$e}),e(Te,[2,75]),e(Te,[2,74]),{62:[1,235],67:rt,82:219,116:ot,117:st,118:ct},e(Te,[2,77]),e(lt,[2,80]),{77:[1,236],79:198,116:Oe,119:ke},{30:237,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},e(Qe,a,{5:238}),e(ut,[2,102]),e(ie,[2,35]),{43:239,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{10:re,18:240},{10:pt,60:mt,84:ht,92:241,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{10:pt,60:mt,84:ht,92:252,104:[1,253],105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{10:pt,60:mt,84:ht,92:254,104:[1,255],105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{105:[1,256]},{10:pt,60:mt,84:ht,92:257,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{44:h,47:258,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(tt,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(tt,[2,116]),e(tt,[2,118],{10:[1,262]}),e(tt,[2,119]),e(Se,[2,56]),e(ft,[2,87]),e(Se,[2,57]),{51:[1,263],67:rt,82:219,116:ot,117:st,118:ct},e(Se,[2,64]),e(Se,[2,59]),e(Se,[2,60]),e(Se,[2,61]),{109:[1,264]},e(Se,[2,63]),e(Se,[2,65]),{66:[1,265],67:rt,82:219,116:ot,117:st,118:ct},e(Se,[2,67]),e(Se,[2,68]),e(Se,[2,70]),e(Se,[2,69]),e(Se,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(Te,[2,78]),{31:[1,266],67:rt,82:219,116:ot,117:st,118:ct},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},e(xe,[2,53]),{43:268,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(tt,[2,121],{106:xt}),e(St,[2,130],{108:270,10:pt,60:mt,84:ht,105:gt,109:_t,110:vt,111:yt,112:bt}),e(Ct,[2,132]),e(Ct,[2,134]),e(Ct,[2,135]),e(Ct,[2,136]),e(Ct,[2,137]),e(Ct,[2,138]),e(Ct,[2,139]),e(Ct,[2,140]),e(Ct,[2,141]),e(tt,[2,122],{106:xt}),{10:[1,271]},e(tt,[2,123],{106:xt}),{10:[1,272]},e(dt,[2,129]),e(tt,[2,105],{106:xt}),e(tt,[2,106],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(tt,[2,110]),e(tt,[2,112],{10:[1,273]}),e(tt,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ae,9:oe,11:se,21:278},e(ie,[2,34]),e(xe,[2,52]),{10:pt,60:mt,84:ht,105:gt,107:279,108:243,109:_t,110:vt,111:yt,112:bt},e(Ct,[2,133]),{14:ue,44:de,60:fe,89:pe,101:280,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be,120:88},{14:ue,44:de,60:fe,89:pe,101:281,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be,120:88},{98:[1,282]},e(tt,[2,120]),e(Se,[2,58]),{30:283,67:rt,80:it,81:at,82:172,116:ot,117:st,118:ct},e(Se,[2,66]),e(Qe,a,{5:284}),e(St,[2,131],{108:270,10:pt,60:mt,84:ht,105:gt,109:_t,110:vt,111:yt,112:bt}),e(tt,[2,126],{120:168,10:[1,285],14:ue,44:de,60:fe,89:pe,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be}),e(tt,[2,127],{120:168,10:[1,286],14:ue,44:de,60:fe,89:pe,105:me,106:he,109:ge,111:_e,114:ve,115:ye,116:be}),e(tt,[2,114]),{31:[1,287],67:rt,82:219,116:ot,117:st,118:ct},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:ee,124:te,125:ne},{10:pt,60:mt,84:ht,92:289,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},{10:pt,60:mt,84:ht,92:290,105:gt,107:242,108:243,109:_t,110:vt,111:yt,112:bt},e(Se,[2,62]),e(ie,[2,33]),e(tt,[2,124],{106:xt}),e(tt,[2,125],{106:xt})],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};wt.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){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:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),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 e.lex.firstGraph()&&this.begin(`dir`),12;case 36:return e.lex.firstGraph()&&this.begin(`dir`),12;case 37:return e.lex.firstGraph()&&this.begin(`dir`),12;case 38:return e.lex.firstGraph()&&this.begin(`dir`),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;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 this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState(`edgeText`),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState(`thickEdgeText`),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState(`dottedEdgeText`),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return`TEXT`;case 82:return this.pushState(`ellipseText`),52;case 83:return this.popState(),55;case 84:return this.pushState(`text`),54;case 85:return this.popState(),57;case 86:return this.pushState(`text`),56;case 87:return 58;case 88:return this.pushState(`text`),67;case 89:return this.popState(),64;case 90:return this.pushState(`text`),63;case 91:return this.popState(),49;case 92:return this.pushState(`text`),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState(`trapText`),68;case 97:return this.pushState(`trapText`),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return`SEP`;case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState(`text`),62;case 111:return this.popState(),51;case 112:return this.pushState(`text`),50;case 113:return this.popState(),31;case 114:return this.pushState(`text`),29;case 115:return this.popState(),66;case 116:return this.pushState(`text`),65;case 117:return`TEXT`;case 118:return`QUOTE`;case 119:return 9;case 120:return 10;case 121: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)/,/^(?:swimlane-beta\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\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],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,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function Tt(){this.yy={}}return N(Tt,`Parser`),Tt.prototype=wt,wt.Parser=Tt,new Tt})(),f7e.parser=f7e,p7e=f7e,m7e=Object.assign({},p7e),m7e.parse=e=>{let t=e.replace(/}\s*\n/g,`} -`);return p7e.parse(t)},h7e=m7e,g7e=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=Mh(e.look),a=Ah(n),o=``;for(let t=0;t`${l}.node ${e}, ${l}.rough-node ${e}`,`collapsedRule`),d=N(e=>`${l}.swimlane.cluster .swimlane-title${e}, ${l}.swimlane.cluster .swimlane-body${e}`,`laneRule`);o+=` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){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:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),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 e.lex.firstGraph()&&this.begin(`dir`),12;case 36:return e.lex.firstGraph()&&this.begin(`dir`),12;case 37:return e.lex.firstGraph()&&this.begin(`dir`),12;case 38:return e.lex.firstGraph()&&this.begin(`dir`),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;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 this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState(`edgeText`),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState(`thickEdgeText`),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState(`dottedEdgeText`),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return`TEXT`;case 82:return this.pushState(`ellipseText`),52;case 83:return this.popState(),55;case 84:return this.pushState(`text`),54;case 85:return this.popState(),57;case 86:return this.pushState(`text`),56;case 87:return 58;case 88:return this.pushState(`text`),67;case 89:return this.popState(),64;case 90:return this.pushState(`text`),63;case 91:return this.popState(),49;case 92:return this.pushState(`text`),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState(`trapText`),68;case 97:return this.pushState(`trapText`),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return`SEP`;case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState(`text`),62;case 111:return this.popState(),51;case 112:return this.pushState(`text`),50;case 113:return this.popState(),31;case 114:return this.pushState(`text`),29;case 115:return this.popState(),66;case 116:return this.pushState(`text`),65;case 117:return`TEXT`;case 118:return`QUOTE`;case 119:return 9;case 120:return 10;case 121: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)/,/^(?:swimlane-beta\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\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],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,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function Tt(){this.yy={}}return N(Tt,`Parser`),Tt.prototype=wt,wt.Parser=Tt,new Tt})(),b7e.parser=b7e,x7e=b7e,S7e=Object.assign({},x7e),S7e.parse=e=>{let t=e.replace(/}\s*\n/g,`} +`);return x7e.parse(t)},C7e=S7e,w7e=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Uh(e.look),a=Vh(n),o=``;for(let t=0;t`${l}.node ${e}, ${l}.rough-node ${e}`,`collapsedRule`),d=N(e=>`${l}.swimlane.cluster .swimlane-title${e}, ${l}.swimlane.cluster .swimlane-body${e}`,`laneRule`);o+=` ${l}.cluster:not(.swimlane) rect { stroke: ${e}; @@ -1051,7 +1053,7 @@ ${a?` ${u(`.collapsed-separator`)} { stroke: ${e}; } - `}return o},`genColor`),_7e=N((e,t)=>{let n=yr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return vr(r,i,a,t)},`fade`),v7e=N(e=>`${g7e(e)} + `}return o},`genColor`),T7e=N((e,t)=>{let n=mr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return pr(r,i,a,t)},`fade`),E7e=N(e=>`${w7e(e)} .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; @@ -1133,7 +1135,7 @@ ${a?` /* For html labels only */ .labelBkg { - background-color: ${_7e(e.edgeLabelBackground,.5)}; + background-color: ${T7e(e.edgeLabelBackground,.5)}; // background-color: } @@ -1204,16 +1206,16 @@ ${a?` } text-align: center; } - ${JN()} -`,`getStyles`),y7e=N(({styles:e=v7e}={})=>({parser:h7e,get db(){return new u7e},renderer:d7e,styles:e,init:N(e=>{e.flowchart||={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,js({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)}),`createFlowDiagram`),b7e=y7e()})),S7e=l({createFlowDiagram:()=>y7e,diagram:()=>b7e}),C7e=o((()=>{x7e(),ZN(),$N(),rm(),YM(),vN(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar()})),w7e=l({diagram:()=>Y7e});function T7e(e){return e&&(A7e.get(e)??e)}function E7e(e,t){for(let n of e)if(!n.isGroup){if((!n.shape||n.shape===`squareRect`||n.shape===`rect`)&&(n.shape=nP),j7e.has(n.shape)){let e=`shape "${n.shape}" was removed in v0.8.1, using "${nP}"`;t?.emitError?t.emitError(`SHAPE_REMOVED`,e,{nodeId:n.id}):P.warn(`agentflow: ${e}`),n.shape=nP;continue}if(!M7e.has(n.shape)){let e=`shape "${n.shape}" is not supported, using "${nP}"`;t?.emitWarning?t.emitWarning(`SHAPE_UNSUPPORTED`,e,{nodeId:n.id}):P.warn(`agentflow: ${e}`),n.shape=nP}}}function eP(e,t,n){let r=As().themeVariables?.borderColorArray,i=Array.isArray(r)?r.length:0,a=n.size;for(let r of e??[]){if(r.isGroup||r.shape===`collapsedGroup`){r.colorIndex=L7e(n.get(String(r.id))??a++,i);continue}let e=t(String(r.id));e&&N7e.has(e)&&(r.cssClasses=`${r.cssClasses??``} ${F7e(e)}`.replace(/\s+/g,` `).trim())}}function D7e(e){if(Array.isArray(e))return e.map(e=>D7e(e));if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=D7e(e[n]));return t}function O7e(e){let t=!1,n=!1,r=0,i,a=[];for(let o of e.split(` + ${GN()} +`,`getStyles`),D7e=N(({styles:e=E7e}={})=>({parser:C7e,get db(){return new v7e},renderer:y7e,styles:e,init:N(e=>{e.flowchart||={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,xs({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)}),`createFlowDiagram`),O7e=D7e()})),ZN=l({createFlowDiagram:()=>D7e,diagram:()=>O7e}),A7e=o((()=>{k7e(),JN(),XN(),om(),UM(),dN(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er()})),j7e=l({diagram:()=>n9e});function M7e(e){return e&&(R7e.get(e)??e)}function N7e(e,t){for(let n of e)if(!n.isGroup){if((!n.shape||n.shape===`squareRect`||n.shape===`rect`)&&(n.shape=eP),z7e.has(n.shape)){let e=`shape "${n.shape}" was removed in v0.8.1, using "${eP}"`;t?.emitError?t.emitError(`SHAPE_REMOVED`,e,{nodeId:n.id}):P.warn(`agentflow: ${e}`),n.shape=eP;continue}if(!$N.has(n.shape)){let e=`shape "${n.shape}" is not supported, using "${eP}"`;t?.emitWarning?t.emitWarning(`SHAPE_UNSUPPORTED`,e,{nodeId:n.id}):P.warn(`agentflow: ${e}`),n.shape=eP}}}function P7e(e,t,n){let r=bs().themeVariables?.borderColorArray,i=Array.isArray(r)?r.length:0,a=n.size;for(let r of e??[]){if(r.isGroup||r.shape===`collapsedGroup`){r.colorIndex=G7e(n.get(String(r.id))??a++,i);continue}let e=t(String(r.id));e&&B7e.has(e)&&(r.cssClasses=`${r.cssClasses??``} ${H7e(e)}`.replace(/\s+/g,` `).trim())}}function F7e(e){if(Array.isArray(e))return e.map(e=>F7e(e));if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=F7e(e[n]));return t}function I7e(e){let t=!1,n=!1,r=0,i,a=[];for(let o of e.split(` `)){if(i!==void 0){let e=o.length-o.trimStart().length;if(o.trim()===``||e>i){a.push(o);continue}i=void 0}let e=-1;for(let i=0;i0){a.push(o);continue}let s=e>=0?o.slice(0,e):o,l=e>=0?o.slice(e):``;if(/:\s*[>|][\d+-]*\s*$/.test(s)){i=o.length-o.trimStart().length,a.push(o);continue}a.push(s.replace(/,([\t ]*)$/,`$1`)+l)}return a.join(` -`)}var tP,k7e,A7e,j7e,M7e,nP,N7e,P7e,F7e,rP,I7e,L7e,R7e,z7e,B7e,V7e,H7e,U7e,iP,W7e,G7e,K7e,q7e,J7e,Y7e,X7e=o((()=>{YN(),ZN(),$N(),rm(),YM(),vN(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),qr(),Tr(),tP={SHAPE_UNSUPPORTED:`SHAPE_UNSUPPORTED`,SHAPE_REMOVED:`SHAPE_REMOVED`,EDGE_OPERATOR_UNSUPPORTED:`EDGE_OPERATOR_UNSUPPORTED`,REFERENCE_EDGE_LABEL_REJECTED:`REFERENCE_EDGE_LABEL_REJECTED`,CONNECTOR_REF_UNRESOLVED:`CONNECTOR_REF_UNRESOLVED`,CONNECTOR_REF_NOT_A_CONNECTOR:`CONNECTOR_REF_NOT_A_CONNECTOR`,METADATA_KEY_MISAPPLIED:`METADATA_KEY_MISAPPLIED`,DUPLICATE_ID_NODE:`DUPLICATE_ID_NODE`,RESERVED_SYNTHETIC_ID:`RESERVED_SYNTHETIC_ID`,CONTAINMENT_VIOLATION:`CONTAINMENT_VIOLATION`,EDGE_SEMANTIC_CONTRADICTION:`EDGE_SEMANTIC_CONTRADICTION`,FLOW_NO_INPUT:`FLOW_NO_INPUT`},k7e=new Set([tP.SHAPE_UNSUPPORTED,tP.SHAPE_REMOVED,tP.CONTAINMENT_VIOLATION]),new Set(Object.values(tP).filter(e=>!k7e.has(e))),A7e=new Map([[`task`,`roundedRect`],[`tool`,`subroutine`],[`input`,`lean-right`],[`decision`,`diamond`],[`refdoc`,`lin-doc`],[`action`,`hexagon`],[`round`,`rect`]]),j7e=new Set(`doc.stadium.terminal.circle.trapezoid.inv_trapezoid.inv-trapezoid.doublecircle.double-circle.typeDeclaration.procs.lean_left.lean-left.in-out.cylinder.ellipse.odd.tag-rect.tagged-rectangle.delay.half-rounded-rectangle.lin-rect.lined-rectangle.win-pane.window-pane.curv-trap.curved-trapezoid`.split(`.`)),M7e=new Set([`roundedRect`,`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`lean-right`,`diamond`,`lin-doc`,`lined-document`,`hexagon`,`hex`,`connector`,`collapsedGroup`]),nP=`roundedRect`,N(T7e,`resolveShapeAlias`),N(E7e,`normaliseNodeShapes`),N7e=new Map([[`tool`,0],[`task`,1],[`decision`,2],[`input`,3],[`refdoc`,4],[`connector`,5],[`action`,6]]),P7e=N7e.size,F7e=N(e=>`af-kind-${e}`,`kindClass`),rP=[...N7e.keys()],I7e=N(e=>Math.max(1,e-P7e),`containerSlotCount`),L7e=N((e,t)=>{let n=P7e+e%I7e(t);return t>0?n%t:n},`containerSlot`),N(eP,`assignColorSlots`),R7e=`agentflow-`,z7e=new Set([`shape`,`view`,`icon`,`img`,`form`,`pos`,`w`,`h`,`class`,`style`,`labelType`]),B7e=new Set([`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`tool`]),V7e={flow:`flowGroup`},N(D7e,`stripPrototypeKeys`),N(O7e,`stripLineTrailingCommas`),H7e=class{constructor(){this.vertexCounter=0,this.config=As(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId=``,this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=Cs,this.setAccDescription=Ts,this.setDiagramTitle=Ds,this.getAccTitle=ws,this.getAccDescription=Es,this.getDiagramTitle=Os,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.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.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.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{N(this,`AgentFlowDB`)}sanitizeText(e){return gs.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(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s,l){if(!e||e.trim().length===0)return;let u;if(s!==void 0){let e;e=s.includes(` +`)}var QN,L7e,R7e,z7e,$N,eP,B7e,V7e,H7e,U7e,W7e,G7e,K7e,tP,q7e,J7e,Y7e,X7e,nP,Z7e,Q7e,$7e,e9e,t9e,n9e,r9e=o((()=>{KN(),JN(),XN(),om(),UM(),dN(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),Dp(),Wr(),br(),QN={SHAPE_UNSUPPORTED:`SHAPE_UNSUPPORTED`,SHAPE_REMOVED:`SHAPE_REMOVED`,EDGE_OPERATOR_UNSUPPORTED:`EDGE_OPERATOR_UNSUPPORTED`,REFERENCE_EDGE_LABEL_REJECTED:`REFERENCE_EDGE_LABEL_REJECTED`,CONNECTOR_REF_UNRESOLVED:`CONNECTOR_REF_UNRESOLVED`,CONNECTOR_REF_NOT_A_CONNECTOR:`CONNECTOR_REF_NOT_A_CONNECTOR`,METADATA_KEY_MISAPPLIED:`METADATA_KEY_MISAPPLIED`,DUPLICATE_ID_NODE:`DUPLICATE_ID_NODE`,RESERVED_SYNTHETIC_ID:`RESERVED_SYNTHETIC_ID`,CONTAINMENT_VIOLATION:`CONTAINMENT_VIOLATION`,EDGE_SEMANTIC_CONTRADICTION:`EDGE_SEMANTIC_CONTRADICTION`,FLOW_NO_INPUT:`FLOW_NO_INPUT`},L7e=new Set([QN.SHAPE_UNSUPPORTED,QN.SHAPE_REMOVED,QN.CONTAINMENT_VIOLATION]),new Set(Object.values(QN).filter(e=>!L7e.has(e))),R7e=new Map([[`task`,`roundedRect`],[`tool`,`subroutine`],[`input`,`lean-right`],[`decision`,`diamond`],[`refdoc`,`lin-doc`],[`action`,`hexagon`],[`round`,`rect`]]),z7e=new Set(`doc.stadium.terminal.circle.trapezoid.inv_trapezoid.inv-trapezoid.doublecircle.double-circle.typeDeclaration.procs.lean_left.lean-left.in-out.cylinder.ellipse.odd.tag-rect.tagged-rectangle.delay.half-rounded-rectangle.lin-rect.lined-rectangle.win-pane.window-pane.curv-trap.curved-trapezoid`.split(`.`)),$N=new Set([`roundedRect`,`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`lean-right`,`diamond`,`lin-doc`,`lined-document`,`hexagon`,`hex`,`connector`,`collapsedGroup`]),eP=`roundedRect`,N(M7e,`resolveShapeAlias`),N(N7e,`normaliseNodeShapes`),B7e=new Map([[`tool`,0],[`task`,1],[`decision`,2],[`input`,3],[`refdoc`,4],[`connector`,5],[`action`,6]]),V7e=B7e.size,H7e=N(e=>`af-kind-${e}`,`kindClass`),U7e=[...B7e.keys()],W7e=N(e=>Math.max(1,e-V7e),`containerSlotCount`),G7e=N((e,t)=>{let n=V7e+e%W7e(t);return t>0?n%t:n},`containerSlot`),N(P7e,`assignColorSlots`),K7e=`agentflow-`,tP=new Set([`shape`,`view`,`icon`,`img`,`form`,`pos`,`w`,`h`,`class`,`style`,`labelType`]),q7e=new Set([`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`tool`]),J7e={flow:`flowGroup`},N(F7e,`stripPrototypeKeys`),N(I7e,`stripLineTrailingCommas`),Y7e=class{constructor(){this.vertexCounter=0,this.config=bs(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId=``,this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=ps,this.setAccDescription=hs,this.setDiagramTitle=_s,this.getAccTitle=ms,this.getAccDescription=gs,this.getDiagramTitle=vs,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.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.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.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{N(this,`AgentFlowDB`)}sanitizeText(e){return cs.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(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s,l){if(!e||e.trim().length===0)return;let u;if(s!==void 0){let e;e=s.includes(` `)?s+` `:`{ `+s+` -}`;try{u=tm(e,{schema:Qp})??{}}catch(e){let t=s.includes(` -`)?O7e(s):s;if(t!==s)try{u=tm(t+` -`,{schema:Qp})??{}}catch{this.rethrowMetadataYamlError(e,s,l)}else this.rethrowMetadataYamlError(e,s,l)}u=D7e(u)}let d;if(u&&typeof u.shape==`string`){let e=u;d=e.shape;let t=T7e(d);t&&t!==d&&(e.shape=t)}let f=this.subGraphLookup.get(e);if(f&&u){f.metadata={...f.metadata,...u};return}let p=this.connectors.get(e);if(p&&u){p.metadata={...p.metadata,...u};return}if(e===`connectors`)return;let m=this.edges.find(t=>t.id===e);if(m){let e=u;e?.animate!==void 0&&(m.animate=e.animate),e?.animation!==void 0&&(m.animation=e.animation),e?.curve!==void 0&&(m.interpolate=e.curve),u&&(m.metadata={...m.metadata,...u});return}let h,g=this.vertices.get(e);if(g===void 0&&(g={id:e,labelType:`text`,domId:R7e+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,g)),this.vertexCounter++,t===void 0?g.text===void 0&&(g.text=e):(this.config=As(),h=this.sanitizeText(t.text.trim()),g.labelType=t.type,h.startsWith(`"`)&&h.endsWith(`"`)&&(h=h.substring(1,h.length-1)),g.text=h),n!==void 0&&(g.type=n),r?.forEach(e=>{g.styles.push(e)}),i?.forEach(e=>{g.classes.push(e)}),a!==void 0&&(g.dir=a),g.props===void 0?g.props=o:o!==void 0&&Object.assign(g.props,o),u){if(g.metadata={...g.metadata,...u},u.shape){let e=d??u.shape;if(typeof e!=`string`)throw this.positionedShapeError(`No such shape: ${JSON.stringify(e)}.`,l);if(e!==e.toLowerCase()||e.includes(`_`))throw this.positionedShapeError(`No such shape: ${e}. Shape names should be lowercase.`,l);if(!Wje(u.shape))throw this.positionedShapeError(`No such shape: ${u.shape}.`,l);g.type=u?.shape}u?.label&&(g.text=this.sanitizeText(u.label),g.labelType=this.sanitizeNodeLabelType(u?.labelType))}}positionedShapeError(e,t){let n=Error(e);if(!t)return n;let r=t.first_line+this.frontmatterLineOffset;return Object.assign(n,{hash:{text:``,token:null,line:r-1,loc:{first_line:r,last_line:t.last_line+this.frontmatterLineOffset,first_column:t.first_column,last_column:t.last_column},expected:[]}}),n}rethrowMetadataYamlError(e,t,n){let r=e;if(!r||r.name!==`YAMLException`||!r.mark||!n)throw e;let i;try{let e=!t.includes(` +}`;try{u=am(e,{schema:rm})??{}}catch(e){let t=s.includes(` +`)?I7e(s):s;if(t!==s)try{u=am(t+` +`,{schema:rm})??{}}catch{this.rethrowMetadataYamlError(e,s,l)}else this.rethrowMetadataYamlError(e,s,l)}u=F7e(u)}let d;if(u&&typeof u.shape==`string`){let e=u;d=e.shape;let t=M7e(d);t&&t!==d&&(e.shape=t)}let f=this.subGraphLookup.get(e);if(f&&u){f.metadata={...f.metadata,...u};return}let p=this.connectors.get(e);if(p&&u){p.metadata={...p.metadata,...u};return}if(e===`connectors`)return;let m=this.edges.find(t=>t.id===e);if(m){let e=u;e?.animate!==void 0&&(m.animate=e.animate),e?.animation!==void 0&&(m.animation=e.animation),e?.curve!==void 0&&(m.interpolate=e.curve),u&&(m.metadata={...m.metadata,...u});return}let h,g=this.vertices.get(e);if(g===void 0&&(g={id:e,labelType:`text`,domId:K7e+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,g)),this.vertexCounter++,t===void 0?g.text===void 0&&(g.text=e):(this.config=bs(),h=this.sanitizeText(t.text.trim()),g.labelType=t.type,h.startsWith(`"`)&&h.endsWith(`"`)&&(h=h.substring(1,h.length-1)),g.text=h),n!==void 0&&(g.type=n),r?.forEach(e=>{g.styles.push(e)}),i?.forEach(e=>{g.classes.push(e)}),a!==void 0&&(g.dir=a),g.props===void 0?g.props=o:o!==void 0&&Object.assign(g.props,o),u){if(g.metadata={...g.metadata,...u},u.shape){let e=d??u.shape;if(typeof e!=`string`)throw this.positionedShapeError(`No such shape: ${JSON.stringify(e)}.`,l);if(e!==e.toLowerCase()||e.includes(`_`))throw this.positionedShapeError(`No such shape: ${e}. Shape names should be lowercase.`,l);if(!Jje(u.shape))throw this.positionedShapeError(`No such shape: ${u.shape}.`,l);g.type=u?.shape}u?.label&&(g.text=this.sanitizeText(u.label),g.labelType=this.sanitizeNodeLabelType(u?.labelType))}}positionedShapeError(e,t){let n=Error(e);if(!t)return n;let r=t.first_line+this.frontmatterLineOffset;return Object.assign(n,{hash:{text:``,token:null,line:r-1,loc:{first_line:r,last_line:t.last_line+this.frontmatterLineOffset,first_column:t.first_column,last_column:t.last_column},expected:[]}}),n}rethrowMetadataYamlError(e,t,n){let r=e;if(!r||r.name!==`YAMLException`||!r.mark||!n)throw e;let i;try{let e=!t.includes(` `),a=e?`{ `+t+` }`:t+` @@ -1222,17 +1224,17 @@ ${a?` `),p=[];if(e)p.push(1);else for(let e=r.mark.line-1;e<=r.mark.line+1;e++)e<0||e>=f.length||(e!==f.length-1||f[e]!==``||e===r.mark.line)&&p.push(e);let m=Math.max(...p.map(e=>String(l(e,0).line).length)),h=[];for(let e of p){let t=l(e,0).line,n=` ${String(t).padStart(m)} | `;h.push(n+f[e].replace(/\t/g,`→`)),e===r.mark.line&&h.push(`-`.repeat(n.length+r.mark.column)+`^`)}i={message:`${d} (${u.line}:${u.column+1}) ${h.join(` -`)}`,markLine:u.line-1,markColumn:u.column,hash:{text:``,token:null,line:u.line-1,loc:{first_line:u.line,last_line:u.line,first_column:u.column,last_column:u.column+1},expected:[]}}}catch{}throw i&&(r.message=i.message,r.mark.line=i.markLine,r.mark.column=i.markColumn,r.hash=i.hash),r}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};P.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length,n.edgeSemantic&&(i.edgeSemantic=n.edgeSemantic)),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?Wm(i.start,i.end,{counter:0,prefix:`L`}):Wm(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))P.info(`Pushing edge...`),this.edges.push(i);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. +`)}`,markLine:u.line-1,markColumn:u.column,hash:{text:``,token:null,line:u.line-1,loc:{first_line:u.line,last_line:u.line,first_column:u.column,last_column:u.column+1},expected:[]}}}catch{}throw i&&(r.message=i.message,r.mark.line=i.markLine,r.mark.column=i.markColumn,r.hash=i.hash),r}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};P.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length,n.edgeSemantic&&(i.edgeSemantic=n.edgeSemantic)),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?Km(i.start,i.end,{counter:0,prefix:`L`}):Km(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))P.info(`Pushing edge...`),this.edges.push(i);else throw 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 typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;P.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{if(e==="default"){this.edges.defaultInterpolate=t;return}if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}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,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(As().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{Hm.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=Hm.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return B7e.has(e.type)}getTools(){let e=[];for(let t of this.vertices.values())this.isToolDefinition(t)&&e.push(t);return e}getClasses(){return this.classes}setupToolTips(e){let t=X8e();Qc(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=Qc(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Kr.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Qc(e.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.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=As(),this.diagramId=``,this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,Ss()}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,t,n,r){let i=e?.text?.trim(),a=n?.text;e===n&&n?.text&&/\s/.exec(n.text)&&(i=void 0);let o=N(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),s=o.nodeList,l=o.dir,u=As().flowchart??{};if(l??=u.inheritDir?this.getDirection()??As().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;ee!==i&&!this.globalNodes.has(e)),title:a.trim(),classes:[],dir:l,labelType:this.sanitizeNodeLabelType(n?.type),type:r??`flow`};P.info(`Adding`,d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes;let f=this.getPosForId(i);if(f!==-1){let e=this.subGraphs[f];for(let t of d.nodes)e.nodes.includes(t)||e.nodes.push(t);d.title&&(e.title=d.title),d.dir&&(e.dir=d.dir),d.type&&(e.type=d.type),this.subGraphLookup.set(i,e)}else this.subGraphs.push(d),this.subGraphLookup.set(i,d);return i}addGlobal(e){for(let t of e.flat()){if(typeof t!=`string`)continue;let e=t.trim();e!==``&&this.globalNodes.add(e)}for(let e of this.subGraphs)e.nodes=e.nodes.filter(e=>!this.globalNodes.has(e))}getPosForId(e){for(let[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){let n=this.subGraphs[t].nodes;if(this.secCount+=1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=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)}addConnector(e,t){let n=e?.text?.trim();if(!n)return``;let r=t?.text?.trim()??``,i=r.length>0?this.sanitizeText(r):n,a=this.connectors.get(n);return a?r.length>0&&(a.text=i):(a={id:n,labelType:`text`,domId:R7e+n+`-`+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:i},this.connectors.set(n,a),this.vertices.set(n,a),this.vertexCounter++),n}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}computeEdgeSemantic(e,t){if(e===`arrow_point`&&t===`normal`)return`sequence`;if(e===`arrow_cross`&&t===`normal`)return`failure`;if(e===`arrow_open`&&t===`dotted`)return`reference`}destructStartLink(e){let t=e.trim(),n=`normal`;return t.includes(`.`)&&(n=`dotted`),{type:`arrow_open`,stroke:n}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`;break;case`-`:case`.`:r=`arrow_open`,n=t}let i=`normal`,a=n.length-1,o=this.countChar(`.`,n);return o>0&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;return t?(r=this.destructStartLink(t),r.stroke===n.stroke?(r.type=n.type,r.length=n.length,{...r,edgeSemantic:this.computeEdgeSemantic(r.type,r.stroke)}):{type:`INVALID`,stroke:`INVALID`}):{...n,edgeSemantic:this.computeEdgeSemantic(n.type,n.stroke)}}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){let t=typeof e.type==`string`?T7e(e.type):e.type;switch(t){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return t}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`none`,n=`arrow_point`;switch(e){case`arrow_point`:case`arrow_circle`:case`arrow_cross`:case`arrow_hierarchy`:n=e;break;case`double_arrow_point`:case`double_arrow_circle`:case`double_arrow_cross`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(` `);else{let n={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:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:i.agentflow?.wrappingWidth,minWidth:i.agentflow?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}runPostParseValidators(){this.postParseValidationRun||=!0}getData(){this.runPostParseValidators();let e=As(),t=[],n=[],r=this.getSubGraphs(),i=new Map,a=new Map,o=new Set,s=new Map,l=N((e,t,n=new Set)=>{if(n.has(e))return;n.add(e);let r=this.subGraphLookup.get(e);if(r)for(let e of r.nodes)e===t||n.has(e)||(o.add(e),s.set(e,t),l(e,t,n))},`collectDescendants`);for(let e of r)e.metadata?.view===`collapsed`&&!o.has(e.id)&&l(e.id,e.id);let u=N((e,t)=>{let n=new Set,r=t;for(;r!==void 0&&!n.has(r);){if(r===e)return!0;n.add(r),r=i.get(r)}return!1},`wouldCloseContainmentCycle`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(!o.has(t.id)){t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes){if(u(e,t.id)){this.emitWarning(tP.CONTAINMENT_VIOLATION,`Container "${t.id}" cannot contain "${e}" because "${e}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:e});continue}i.set(e,t.id)}}}for(let n=r.length-1;n>=0;n--){let a=r[n];if(!o.has(a.id)){if(a.metadata?.view===`collapsed`){let n={...a.metadata,containerType:a.type};t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`collapsedGroup`,dir:a.dir,isGroup:!1,look:e.look,metadata:n})}else t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:V7e[a.type??`flow`],dir:a.dir,isGroup:!0,look:e.look,metadata:a.metadata})}}this.getVertices().forEach(n=>{o.has(n.id)||this.addNodeFromVertex(n,t,i,a,e,e.look||`classic`)});let d=this.getEdges();d.forEach((t,r)=>{let i=s.get(t.start)??t.start,a=s.get(t.end)??t.end;if(i===a&&t.start!==t.end)return;let{arrowTypeStart:o,arrowTypeEnd:l}=this.destructEdgeType(t.type),u=[...d.defaultStyle??[]];t.style&&u.push(...t.style);let f={id:Wm(i,a,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:i,end:a,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:o,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:l,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:u,style:u,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:t.metadata};n.push(f)}),E7e(t,this);let f=new Map,p=new Map;for(let e of r){let t=i.get(e.id);t!==void 0&&p.set(t,[...p.get(t)??[],e.id])}let m=0,h=N(e=>{if(!f.has(e)){f.set(e,m++);for(let t of p.get(e)??[])h(t)}},`walkContainers`);for(let e of r)i.get(e.id)===void 0&&h(e.id);let g=new Set(this.getConnectors().map(e=>e.id));return eP(t,e=>{if(g.has(e))return`connector`;let t=this.vertices.get(e);return t?this.deriveVertexKind(t,T7e(t.type)):void 0},f),{nodes:t,edges:n,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return Ms.flowchart}deriveVertexKind(e,t){return this.isToolDefinition(e)?`tool`:t===`hexagon`||t===`hex`?`action`:t===`lean-right`||t===`lean_right`?`input`:t===`lin-doc`||t===`lined-document`?`refdoc`:t===`diamond`?`decision`:`task`}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map(e=>e.id)),t=[],n=[];for(let[r,i]of this.vertices){if(e.has(r))continue;if(i.isConnector){let e={id:r};if(i.text!==void 0&&i.text!==r&&(e.title=i.text),i.metadata&&Object.keys(i.metadata).length>0){let t={};for(let[e,n]of Object.entries(i.metadata))z7e.has(e)||(t[e]=n);Object.keys(t).length>0&&(e.metadata=t)}n.push(e);continue}let a={id:r};i.text!==void 0&&(a.label=i.text);let o=typeof i.type==`string`?T7e(i.type):i.type;if(o!==void 0&&(a.shape=o),a.vertexKind=this.deriveVertexKind(i,o),i.metadata&&Object.keys(i.metadata).length>0){let e={};for(let[t,n]of Object.entries(i.metadata))z7e.has(t)||(e[t]=n);Object.keys(e).length>0&&(a.metadata=e)}t.push(a)}let r={vertices:t,edges:this.edges.map(e=>{let t={start:e.start,end:e.end};return e.id!==void 0&&(t.id=e.id),typeof e.text==`string`&&e.text.length>0&&(t.label=e.text),e.type!==void 0&&(t.type=e.type),e.stroke!==void 0&&(t.stroke=e.stroke),e.edgeSemantic!==void 0&&(t.edgeSemantic=e.edgeSemantic),e.length!==void 0&&(t.length=e.length),e.metadata&&Object.keys(e.metadata).length>0&&(t.metadata={...e.metadata}),t}),subGraphs:this.subGraphs.map(e=>{let t={id:e.id,nodes:[...e.nodes]};if(e.type!==void 0&&(t.type=e.type),e.title!==void 0&&(t.title=e.title),e.dir!==void 0&&(t.direction=e.dir),e.metadata&&Object.keys(e.metadata).length>0){let n={};for(let[t,r]of Object.entries(e.metadata))z7e.has(t)||(n[t]=r);Object.keys(n).length>0&&(t.metadata=n)}return t}),connectors:n,diagnostics:this.diagnostics};return this.direction!==void 0&&(r.direction=this.direction),r}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let t=e?.first_line??0,n=e?.first_column??0,r=e?.last_line??t,i=e?.last_column??n,[a,o]=e?.range??[0,0];return{startLine:t+this.frontmatterLineOffset,startColumn:n,endLine:r+this.frontmatterLineOffset,endColumn:i,startIndex:a,endIndex:o}}pushMapping(e,t,n){if(!e)return;let r={id:e,type:t,position:this.toElementPosition(n)};return this.elementMappings.push(r),r}addVertexMapping(e,t,n,r){let i=this.pushMapping(e,`vertex`,r);i&&n==null&&this.bareVertexMappings.add(i)}extendVertexMapping(e,t){if(!e||!t)return;let n=this.toElementPosition(t);for(let t=this.elementMappings.length-1;t>=0;t--){let r=this.elementMappings[t];if(r.type===`vertex`&&r.id===e){this.bareVertexMappings.has(r)&&(r.type=`attachment`,this.bareVertexMappings.delete(r)),(n.endLine>r.position.endLine||n.endLine===r.position.endLine&&n.endColumn>r.position.endColumn)&&(r.position.endLine=n.endLine,r.position.endColumn=n.endColumn,r.position.endIndex=n.endIndex);return}}this.pushMapping(e,`attachment`,t)}addEdgeMapping(e,t,n,r){let i=Array.isArray(t)?t.map(e=>typeof e==`string`?e:e?.id??``).filter(Boolean):[],a=i.length>0?i.join(`>`):`edge`;this.pushMapping(a,`edge`,r)}addSubgraphMapping(e,t,n,r){let i=(typeof e==`string`?e:e?.text)??``,a=this.toElementPosition(n),o=r?this.toElementPosition(r):a;i&&this.elementMappings.push({id:i,type:`subgraph`,position:{startLine:a.startLine,startColumn:a.startColumn,endLine:o.endLine,endColumn:o.endColumn,startIndex:a.startIndex,endIndex:o.endIndex}})}addConnectorMapping(e,t,n,r){let i=e?.text?.trim()??``;if(!i)return;let a=this.toElementPosition(n),o=r?this.toElementPosition(r):a;this.elementMappings.push({id:i,type:`connector`,position:{startLine:a.startLine,startColumn:a.startColumn,endLine:o.endLine,endColumn:o.endColumn,startIndex:a.startIndex,endIndex:o.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find(t=>t.id===e)}getElementsOnLine(e){return this.elementMappings.filter(t=>e>=t.position.startLine&&e<=t.position.endLine)}getElementAtPosition(e,t){let n=this.elementMappings.filter(n=>{let{startLine:r,startColumn:i,endLine:a,endColumn:o}=n.position;return!(ea||e===r&&to)});if(n.length===0)return;let r=N(({position:e})=>[e.endLine-e.startLine,e.endColumn-e.startColumn],`span`);return n.reduce((e,t)=>{let[n,i]=r(e),[a,o]=r(t);return a===n?oe.id===o.id&&e.severity===o.severity&&e.message===o.message&&e.nodeId===o.nodeId&&e.edgeId===o.edgeId))return;this.diagnostics.push(o);let s=`agentflow[${e}]: ${n}`;t===`error`?P.error(s):P.warn(s)}emitWarning(e,t,n){this.emitDiagnostic(e,`warning`,t,n)}emitError(e,t,n){this.emitDiagnostic(e,`error`,t,n)}getDiagnostics(){return[...this.diagnostics]}},U7e={getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.debug(`Drawing agentflow diagram`,t);let{securityLevel:i,agentflow:a,layout:o}=As();r.db.setDiagramId(t),P.debug(`Before getData: `);let s=r.db.getData();P.debug(`Data: `,s);let l=XN(t,i),u=r.db.getDirection();s.type=r.type,s.layoutAlgorithm=JM(o),s.layoutAlgorithm===`dagre`&&o===`elk`&&P.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."),s.direction=u,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`point`,`circle`,`cross`,`hierarchy`],s.diagramId=t,P.debug(`REF1:`,s),await KM(s,l);let d=a?.diagramPadding??8;Hm.insertTitle(l,`agentflowTitleText`,a?.titleTopMargin??0,r.db.getDiagramTitle()),QN(l,d,`agentflow`,a?.useMaxWidth??!0)},`draw`)},iP=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,5],n=[1,4],r=[1,3],i=[1,6],a=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],o=[2,2],s=[1,15],l=[1,16],u=[1,17],d=[1,18],f=[1,19],p=[1,26],m=[1,27],h=[1,28],g=[1,30],_=[1,31],v=[1,32],y=[1,55],b=[1,54],x=[1,34],S=[1,35],C=[1,36],w=[1,37],T=[1,38],E=[1,50],D=[1,52],O=[1,48],k=[1,53],A=[1,49],j=[1,56],M=[1,51],ee=[1,57],te=[1,58],ne=[1,39],re=[1,40],ie=[1,41],ae=[1,42],oe=[1,43],se=[1,64],ce=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],le=[1,70],ue=[1,68],de=[1,67],fe=[1,69],pe=[8,9,10,12,78,80,81],me=[1,88],he=[1,101],ge=[1,106],_e=[1,105],ve=[1,102],ye=[1,98],be=[1,104],xe=[1,100],Se=[1,107],Ce=[1,103],we=[1,108],Te=[1,99],Ee=[8,9,10,11,12,43,78,80,81],De=[8,9,10,11,12,43,49,78,80,81],Oe=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],ke=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],Ae=[47,63,92,105,108,109,112,114,117,118,119],je=[1,131],Me=[1,132],Ne=[1,134],Pe=[1,133],Fe=[47,63,65,77,92,105,108,109,112,114,117,118,119],Ie=[1,143],Le=[1,157],Re=[1,158],ze=[1,159],Be=[1,162],Ve=[1,161],He=[1,160],Ue=[1,145],We=[1,147],Ge=[1,151],Ke=[1,139],qe=[1,140],Je=[1,152],Ye=[1,153],Xe=[1,154],Ze=[1,155],Qe=[1,156],$e=[1,163],et=[1,164],tt=[1,141],nt=[1,142],rt=[1,149],it=[1,144],at=[1,148],ot=[1,146],st=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],ct=[1,168],lt=[1,170],ut=[8,9,10,12],dt=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],ft=[1,190],pt=[1,186],mt=[1,187],ht=[1,191],gt=[1,188],_t=[1,189],vt=[80,119,122],yt=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],bt=[11,109],xt=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],St=[1,269],Ct=[1,267],wt=[1,271],Tt=[1,265],Et=[1,266],Dt=[1,268],Ot=[1,270],kt=[1,272],At=[1,292],jt=[8,9,10,12,109],Mt=[8,9,10,11,12,63,87,108,109,112,113,114,115],Nt={trace:N(function(){},`trace`),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:`error`,8:`COMMENT`,9:`SEMI`,10:`NEWLINE`,11:`SPACE`,12:`EOF`,13:`GRAPH`,14:`NODIR`,15:`DIR`,28:`flow`,30:`SQS`,32:`SQE`,33:`end`,35:`global`,36:`connector`,38:`acc_title`,39:`acc_title_value`,40:`acc_descr`,41:`acc_descr_value`,42:`acc_descr_multiline_value`,43:`SHAPE_DATA`,47:`AMP`,49:`STYLE_SEPARATOR`,51:`DOUBLECIRCLESTART`,52:`DOUBLECIRCLEEND`,53:`PS`,54:`PE`,55:`(-`,56:`-)`,57:`STADIUMSTART`,58:`STADIUMEND`,59:`SUBROUTINESTART`,60:`SUBROUTINEEND`,61:`VERTEX_WITH_PROPS_START`,62:`NODE_STRING[field]`,63:`COLON`,64:`NODE_STRING[value]`,65:`PIPE`,66:`CYLINDERSTART`,67:`CYLINDEREND`,68:`DIAMOND_START`,69:`DIAMOND_STOP`,70:`TAGEND`,71:`TRAPSTART`,72:`TRAPEND`,73:`INVTRAPSTART`,74:`INVTRAPEND`,77:`TESTSTR`,78:`START_LINK`,80:`LINK`,81:`LINK_ID`,83:`STR`,84:`MD_STR`,87:`STYLE`,88:`LINKSTYLE`,89:`CLASSDEF`,90:`CLASS`,91:`CLICK`,92:`DOWN`,93:`UP`,96:`idString[vertex]`,97:`idString[class]`,98:`CALLBACKNAME`,99:`CALLBACKARGS`,100:`HREF`,101:`LINK_TARGET`,102:`STR[link]`,103:`STR[tooltip]`,105:`DEFAULT`,107:`INTERPOLATE`,108:`NUM`,109:`COMMA`,112:`NODE_STRING`,113:`UNIT`,114:`BRKT`,115:`PCT`,117:`MINUS`,118:`MULT`,119:`UNICODE_TEXT`,120:`TEXT`,121:`TAGSTART`,122:`EDGE_TEXT`,124:`direction_tb`,125:`direction_bt`,126:`direction_rl`,127:`direction_lr`,128:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 198:this.$=a[s];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:r.setDirection(`TB`),this.$=`TB`;break;case 14:r.setDirection(a[s-1]),this.$=a[s-1];break;case 32:this.$=a[s-1].nodes;break;case 38:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4],`flow`),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-6],a[s-4],o[s-8],o[s]);break;case 39:this.$=r.addSubGraph(a[s-7],a[s-1],a[s-5],`flow`),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-3],o[s-3]),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-7],a[s-5],o[s-9],o[s]);break;case 40:this.$=r.addSubGraph(a[s-3],a[s-1],{text:``,type:`text`},`flow`),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-3],{text:``,type:`text`},o[s-5],o[s]);break;case 41:this.$=r.addSubGraph(a[s-4],a[s-1],{text:``,type:`text`},`flow`),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-3],o[s-3]),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-4],{text:``,type:`text`},o[s-6],o[s]);break;case 42:this.$=r.addSubGraph(void 0,a[s-1],void 0,`flow`),r.addSubgraphMapping&&r.addSubgraphMapping(void 0,void 0,o[s-3],o[s]);break;case 43:r.addGlobal(a[s-1]),this.$=[];break;case 44:this.$=r.addConnector(a[s-4],a[s-2]),r.addConnectorMapping&&r.addConnectorMapping(a[s-4],a[s-2],o[s-6],o[s]);break;case 45:this.$=r.addConnector(a[s-5],a[s-3]),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-1],o[s-1]),r.addConnectorMapping&&r.addConnectorMapping(a[s-5],a[s-3],o[s-7],o[s]);break;case 46:this.$=r.addConnector(a[s-1],{text:``,type:`text`}),r.addConnectorMapping&&r.addConnectorMapping(a[s-1],{text:``,type:`text`},o[s-3],o[s]);break;case 47:this.$=r.addConnector(a[s-2],{text:``,type:`text`}),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-1],o[s-1]),r.addConnectorMapping&&r.addConnectorMapping(a[s-2],{text:``,type:`text`},o[s-4],o[s]);break;case 49:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 50:case 51:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 56:this.$=a[s-1]+a[s];break;case 57:this.$=a[s];break;case 58:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s],o[s]),r.extendVertexMapping&&r.extendVertexMapping(a[s-1][a[s-1].length-1],o[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),r.addEdgeMapping&&r.addEdgeMapping(a[s-3].stmt,a[s-1],a[s-2],this._$),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 59:r.addLink(a[s-2].stmt,a[s],a[s-1]),r.addEdgeMapping&&r.addEdgeMapping(a[s-2].stmt,a[s],a[s-1],this._$),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 60:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),r.addEdgeMapping&&r.addEdgeMapping(a[s-3].stmt,a[s-1],a[s-2],this._$),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 61:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 62:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s],o[s]),r.extendVertexMapping&&r.extendVertexMapping(a[s-1][a[s-1].length-1],o[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 63:this.$={stmt:a[s],nodes:a[s]};break;case 64:this.$=[a[s]];break;case 65:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4],o[s-4]),r.extendVertexMapping&&r.extendVertexMapping(a[s-5][a[s-5].length-1],o[s-4]),this.$=a[s-5].concat(a[s]);break;case 66:this.$=a[s-4].concat(a[s]);break;case 67:this.$=a[s];break;case 68:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`square`,this._$);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`doublecircle`,this._$);break;case 71:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`),r.addVertexMapping&&r.addVertexMapping(a[s-5],a[s-2],`circle`,this._$);break;case 72:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`ellipse`,this._$);break;case 73:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`stadium`,this._$);break;case 74:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`subroutine`,this._$);break;case 75:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]])),r.addVertexMapping&&r.addVertexMapping(a[s-7],a[s-1],`rect`,this._$);break;case 76:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`cylinder`,this._$);break;case 77:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`round`,this._$);break;case 78:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`diamond`,this._$);break;case 79:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`),r.addVertexMapping&&r.addVertexMapping(a[s-5],a[s-2],`hexagon`,this._$);break;case 80:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`odd`,this._$);break;case 81:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`trapezoid`,this._$);break;case 82:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`inv_trapezoid`,this._$);break;case 83:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`lean_right`,this._$);break;case 84:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`lean_left`,this._$);break;case 85:this.$=a[s],r.addVertex(a[s]),r.addVertexMapping&&r.addVertexMapping(a[s],void 0,void 0,this._$);break;case 86:a[s-1].text=a[s],this.$=a[s-1];break;case 87:case 88:a[s-2].text=a[s-1],this.$=a[s-2];break;case 89:this.$=a[s];break;case 90:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[s-1]};break;case 91:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[s-1],id:a[s-3]};break;case 92:this.$={text:a[s],type:`text`};break;case 93:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 94:this.$={text:a[s],type:`string`};break;case 95:this.$={text:a[s],type:`markdown`};break;case 96:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic};break;case 97:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,id:a[s-1]};break;case 98:this.$=a[s-1];break;case 99:this.$={text:a[s],type:`text`};break;case 100:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 101:this.$={text:a[s],type:`string`};break;case 102:case 119:this.$={text:a[s],type:`markdown`};break;case 116:this.$={text:a[s],type:`text`};break;case 117:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 118:this.$={text:a[s],type:`text`};break;case 120:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 121:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 122:case 130:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 123:case 131:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 124:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 125:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 126:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 127:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 128:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 129:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 132:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 133:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 134:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 135:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 136:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 137:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 138:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 139:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 140:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 141:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 142:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 143:case 145:this.$=[a[s]];break;case 144:case 146:a[s-2].push(a[s]),this.$=a[s-2];break;case 148:this.$=a[s-1]+a[s];break;case 196:this.$=a[s];break;case 197:this.$=a[s-1]+``+a[s];break;case 199:this.$=a[s-1]+``+a[s];break;case 200:this.$={stmt:`dir`,value:`TB`};break;case 201:this.$={stmt:`dir`,value:`BT`};break;case 202:this.$={stmt:`dir`,value:`RL`};break;case 203:this.$={stmt:`dir`,value:`LR`};break;case 204:this.$={stmt:`dir`,value:`TD`}}},`anonymous`),table:[{3:1,4:2,8:t,10:n,11:r,13:i},{1:[3]},e(a,o,{5:7}),{4:8,8:t,10:n,11:r,13:i},{4:9,8:t,10:n,11:r,13:i},{4:10,8:t,10:n,11:r,13:i},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(a,[2,10]),e(a,[2,11]),e(a,[2,12]),e(a,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:se,16:59,19:62},e(ce,[2,3]),e(ce,[2,4]),e(ce,[2,5]),e(ce,[2,6]),e(ce,[2,7]),e(ce,[2,8]),e(ce,[2,9]),{8:le,9:ue,10:de,12:fe,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:le,9:ue,10:de,12:fe,22:75},{8:le,9:ue,10:de,12:fe,22:76},{8:le,9:ue,10:de,12:fe,22:77},{8:le,9:ue,10:de,12:fe,22:78},{8:le,9:ue,10:de,12:fe,22:79},{8:le,9:ue,10:de,11:[1,80],12:fe,22:81},{8:le,9:ue,10:de,12:fe,22:82},{11:[1,83]},e(ce,[2,48]),{39:[1,84]},{41:[1,85]},e(ce,[2,51]),e(pe,[2,63],{19:86,34:87,11:se,43:me}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:he,47:ge,63:_e,83:[1,96],92:ve,98:[1,93],100:[1,94],104:95,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te,123:97},e(ce,[2,200]),e(ce,[2,201]),e(ce,[2,202]),e(ce,[2,203]),e(ce,[2,204]),e(Ee,[2,64]),e(Ee,[2,67],{49:[1,109]}),e(De,[2,85],{116:122,30:[1,110],47:y,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:b,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:E,105:D,108:O,109:k,112:A,114:j,117:M,118:ee,119:te}),e(Oe,[2,196]),e(Oe,[2,157]),e(Oe,[2,158]),e(Oe,[2,159]),e(Oe,[2,160]),e(Oe,[2,161]),e(Oe,[2,162]),e(Oe,[2,163]),e(Oe,[2,164]),e(Oe,[2,165]),e(Oe,[2,166]),e(Oe,[2,167]),e(a,[2,14]),e(a,[2,20]),e(a,[2,21]),{10:[1,123]},e(a,[2,23]),e(ke,[2,31],{19:124,11:se}),e(ce,[2,32]),{45:125,46:44,47:y,48:45,50:46,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ce,[2,52]),e(ce,[2,53]),e(ce,[2,54]),e(ce,[2,55]),e(Ae,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:je,84:Me,119:Ne,122:Pe},{78:[1,135],80:[1,136]},e(Fe,[2,96]),e(ce,[2,33]),e(ce,[2,34]),e(ce,[2,35]),e(ce,[2,36]),e(ce,[2,37]),{11:Ie,13:Le,15:Re,28:ze,29:137,33:Be,35:Ve,36:He,47:Ue,63:We,78:Ge,83:Ke,84:qe,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:138,108:tt,112:nt,114:rt,117:it,118:at,119:ot},e(st,o,{5:165}),e(st,o,{5:166}),{11:Ie,13:Le,15:Re,28:ze,29:167,33:Be,35:Ve,36:He,47:Ue,63:We,78:Ge,83:Ke,84:qe,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:138,108:tt,112:nt,114:rt,117:it,118:at,119:ot},e(ce,[2,49]),e(ce,[2,50]),e(pe,[2,61],{47:ct}),e(pe,[2,62],{19:169,11:se,43:lt}),e(Ee,[2,57]),{47:y,50:171,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{105:[1,172],106:173,108:[1,174]},{47:y,50:175,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{47:y,50:176,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ut,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(ut,[2,130],{123:181,11:[1,180],15:he,47:ge,63:_e,92:ve,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te}),e(ut,[2,132],{11:[1,182]}),e(dt,[2,198]),e(dt,[2,185]),e(dt,[2,186]),e(dt,[2,187]),e(dt,[2,188]),e(dt,[2,189]),e(dt,[2,190]),e(dt,[2,191]),e(dt,[2,192]),e(dt,[2,193]),e(dt,[2,194]),e(dt,[2,195]),{47:y,50:183,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{31:184,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:192,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:194,53:[1,193],70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:195,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:196,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:197,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{112:[1,198]},{31:199,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:200,68:[1,201],70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:202,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:203,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:204,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(Oe,[2,197]),e(a,[2,22]),e(ke,[2,30]),e(pe,[2,59],{34:205,19:206,11:se,43:me}),e(Ae,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{80:[1,210],82:211,119:Ne,122:Pe},e(vt,[2,92]),e(vt,[2,94]),e(vt,[2,95]),e(vt,[2,183]),e(vt,[2,184]),{79:212,82:130,83:je,84:Me,119:Ne,122:Pe},e(Fe,[2,97]),{8:le,9:ue,10:de,11:Ie,12:fe,13:Le,15:Re,22:214,28:ze,30:[1,213],33:Be,34:215,35:Ve,36:He,43:me,47:Ue,63:We,78:Ge,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:216,108:tt,112:nt,114:rt,117:it,118:at,119:ot},e(yt,[2,116]),e(yt,[2,118]),e(yt,[2,119]),e(yt,[2,172]),e(yt,[2,173]),e(yt,[2,174]),e(yt,[2,175]),e(yt,[2,176]),e(yt,[2,177]),e(yt,[2,178]),e(yt,[2,179]),e(yt,[2,180]),e(yt,[2,181]),e(yt,[2,182]),e(yt,[2,103]),e(yt,[2,104]),e(yt,[2,105]),e(yt,[2,106]),e(yt,[2,107]),e(yt,[2,108]),e(yt,[2,109]),e(yt,[2,110]),e(yt,[2,111]),e(yt,[2,112]),e(yt,[2,113]),e(yt,[2,114]),e(yt,[2,115]),{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,217],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,218],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},{8:le,9:ue,10:de,11:Ie,12:fe,13:Le,15:Re,22:220,28:ze,30:[1,219],33:Be,34:221,35:Ve,36:He,43:me,47:Ue,63:We,78:Ge,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:216,108:tt,112:nt,114:rt,117:it,118:at,119:ot},{11:se,19:222},{47:[1,223]},e(Ee,[2,56]),{11:[1,224],47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:122,117:M,118:ee,119:te},{11:[1,225]},{11:[1,226],109:[1,227]},e(bt,[2,143]),{11:[1,228],47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:122,117:M,118:ee,119:te},{11:[1,229],47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:122,117:M,118:ee,119:te},{83:[1,230]},e(ut,[2,124],{11:[1,231]}),e(ut,[2,126],{11:[1,232]}),{83:[1,233]},e(dt,[2,199]),{83:[1,234],101:[1,235]},e(Ee,[2,68],{116:122,47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,117:M,118:ee,119:te}),{32:[1,236],70:ft,85:237,119:ht,120:gt,121:_t},e(xt,[2,99]),e(xt,[2,101]),e(xt,[2,102]),e(xt,[2,168]),e(xt,[2,169]),e(xt,[2,170]),e(xt,[2,171]),{52:[1,238],70:ft,85:237,119:ht,120:gt,121:_t},{31:239,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{54:[1,240],70:ft,85:237,119:ht,120:gt,121:_t},{56:[1,241],70:ft,85:237,119:ht,120:gt,121:_t},{58:[1,242],70:ft,85:237,119:ht,120:gt,121:_t},{60:[1,243],70:ft,85:237,119:ht,120:gt,121:_t},{63:[1,244]},{67:[1,245],70:ft,85:237,119:ht,120:gt,121:_t},{69:[1,246],70:ft,85:237,119:ht,120:gt,121:_t},{31:247,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{32:[1,248],70:ft,85:237,119:ht,120:gt,121:_t},{70:ft,72:[1,249],74:[1,250],85:237,119:ht,120:gt,121:_t},{70:ft,72:[1,252],74:[1,251],85:237,119:ht,120:gt,121:_t},e(pe,[2,58],{19:169,11:se,43:lt}),e(pe,[2,60],{47:ct}),e(Ae,[2,88]),e(Ae,[2,87]),{65:[1,253],70:ft,85:237,119:ht,120:gt,121:_t},e(Ae,[2,90]),e(vt,[2,93]),{80:[1,254],82:211,119:Ne,122:Pe},{31:255,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(st,o,{5:256}),{8:le,9:ue,10:de,12:fe,22:257,43:lt},e(yt,[2,117]),e(ce,[2,42]),e(ce,[2,43]),{31:258,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(ce,[2,46]),{8:le,9:ue,10:de,12:fe,22:259,43:lt},{46:260,47:y,48:45,50:46,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{11:se,19:261},{11:St,63:Ct,87:wt,95:262,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{11:St,63:Ct,87:wt,95:273,107:[1,274],108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{11:St,63:Ct,87:wt,95:275,107:[1,276],108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{108:[1,277]},{11:St,63:Ct,87:wt,95:278,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{47:y,50:279,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ut,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(ut,[2,131]),e(ut,[2,133],{11:[1,283]}),e(ut,[2,134]),e(De,[2,69]),e(xt,[2,100]),e(De,[2,70]),{54:[1,284],70:ft,85:237,119:ht,120:gt,121:_t},e(De,[2,77]),e(De,[2,72]),e(De,[2,73]),e(De,[2,74]),{112:[1,285]},e(De,[2,76]),e(De,[2,78]),{69:[1,286],70:ft,85:237,119:ht,120:gt,121:_t},e(De,[2,80]),e(De,[2,81]),e(De,[2,83]),e(De,[2,82]),e(De,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(Ae,[2,91]),{32:[1,287],70:ft,85:237,119:ht,120:gt,121:_t},{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,288],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(st,o,{5:289}),{32:[1,290],70:ft,85:237,119:ht,120:gt,121:_t},e(ce,[2,47]),e(Ee,[2,66]),{46:291,47:y,48:45,50:46,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ut,[2,136],{109:At}),e(jt,[2,145],{111:293,11:St,63:Ct,87:wt,108:Tt,112:Et,113:Dt,114:Ot,115:kt}),e(Mt,[2,147]),e(Mt,[2,149]),e(Mt,[2,150]),e(Mt,[2,151]),e(Mt,[2,152]),e(Mt,[2,153]),e(Mt,[2,154]),e(Mt,[2,155]),e(Mt,[2,156]),e(ut,[2,137],{109:At}),{11:[1,294]},e(ut,[2,138],{109:At}),{11:[1,295]},e(bt,[2,144]),e(ut,[2,120],{109:At}),e(ut,[2,121],{116:122,47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,117:M,118:ee,119:te}),e(ut,[2,125]),e(ut,[2,127],{11:[1,296]}),e(ut,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:le,9:ue,10:de,12:fe,22:301,34:302,43:me},e(ce,[2,40]),{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,303],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},{8:le,9:ue,10:de,12:fe,22:304,34:305,43:me},e(Ee,[2,65]),{11:St,63:Ct,87:wt,108:Tt,110:306,111:264,112:Et,113:Dt,114:Ot,115:kt},e(Mt,[2,148]),{15:he,47:ge,63:_e,92:ve,104:307,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te,123:97},{15:he,47:ge,63:_e,92:ve,104:308,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te,123:97},{101:[1,309]},e(ut,[2,135]),e(De,[2,71]),{31:310,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(De,[2,79]),e(st,o,{5:311}),{8:le,9:ue,10:de,12:fe,22:312,43:lt},e(ce,[2,41]),e(ce,[2,44]),{8:le,9:ue,10:de,12:fe,22:313,43:lt},e(jt,[2,146],{111:293,11:St,63:Ct,87:wt,108:Tt,112:Et,113:Dt,114:Ot,115:kt}),e(ut,[2,141],{123:181,11:[1,314],15:he,47:ge,63:_e,92:ve,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te}),e(ut,[2,142],{123:181,11:[1,315],15:he,47:ge,63:_e,92:ve,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te}),e(ut,[2,129]),{32:[1,316],70:ft,85:237,119:ht,120:gt,121:_t},{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,317],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(st,o,{5:318}),e(ce,[2,45]),{11:St,63:Ct,87:wt,95:319,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{11:St,63:Ct,87:wt,95:320,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},e(De,[2,75]),e(ce,[2,38]),{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,321],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(ut,[2,139],{109:At}),e(ut,[2,140],{109:At}),e(ce,[2,39])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +You have to call mermaid.initialize.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;P.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{if(e==="default"){this.edges.defaultInterpolate=t;return}if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} 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.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}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,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(bs().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{Wm.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=Wm.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return q7e.has(e.type)}getTools(){let e=[];for(let t of this.vertices.values())this.isToolDefinition(t)&&e.push(t);return e}getClasses(){return this.classes}setupToolTips(e){let t=c5e();Bc(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=Bc(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Ur.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Bc(e.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.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=bs(),this.diagramId=``,this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,fs()}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,t,n,r){let i=e?.text?.trim(),a=n?.text;e===n&&n?.text&&/\s/.exec(n.text)&&(i=void 0);let o=N(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),s=o.nodeList,l=o.dir,u=bs().flowchart??{};if(l??=u.inheritDir?this.getDirection()??bs().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;ee!==i&&!this.globalNodes.has(e)),title:a.trim(),classes:[],dir:l,labelType:this.sanitizeNodeLabelType(n?.type),type:r??`flow`};P.info(`Adding`,d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes;let f=this.getPosForId(i);if(f!==-1){let e=this.subGraphs[f];for(let t of d.nodes)e.nodes.includes(t)||e.nodes.push(t);d.title&&(e.title=d.title),d.dir&&(e.dir=d.dir),d.type&&(e.type=d.type),this.subGraphLookup.set(i,e)}else this.subGraphs.push(d),this.subGraphLookup.set(i,d);return i}addGlobal(e){for(let t of e.flat()){if(typeof t!=`string`)continue;let e=t.trim();e!==``&&this.globalNodes.add(e)}for(let e of this.subGraphs)e.nodes=e.nodes.filter(e=>!this.globalNodes.has(e))}getPosForId(e){for(let[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){let n=this.subGraphs[t].nodes;if(this.secCount+=1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=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)}addConnector(e,t){let n=e?.text?.trim();if(!n)return``;let r=t?.text?.trim()??``,i=r.length>0?this.sanitizeText(r):n,a=this.connectors.get(n);return a?r.length>0&&(a.text=i):(a={id:n,labelType:`text`,domId:K7e+n+`-`+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:i},this.connectors.set(n,a),this.vertices.set(n,a),this.vertexCounter++),n}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}computeEdgeSemantic(e,t){if(e===`arrow_point`&&t===`normal`)return`sequence`;if(e===`arrow_cross`&&t===`normal`)return`failure`;if(e===`arrow_open`&&t===`dotted`)return`reference`}destructStartLink(e){let t=e.trim(),n=`normal`;return t.includes(`.`)&&(n=`dotted`),{type:`arrow_open`,stroke:n}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`;break;case`-`:case`.`:r=`arrow_open`,n=t}let i=`normal`,a=n.length-1,o=this.countChar(`.`,n);return o>0&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;return t?(r=this.destructStartLink(t),r.stroke===n.stroke?(r.type=n.type,r.length=n.length,{...r,edgeSemantic:this.computeEdgeSemantic(r.type,r.stroke)}):{type:`INVALID`,stroke:`INVALID`}):{...n,edgeSemantic:this.computeEdgeSemantic(n.type,n.stroke)}}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){let t=typeof e.type==`string`?M7e(e.type):e.type;switch(t){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return t}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`none`,n=`arrow_point`;switch(e){case`arrow_point`:case`arrow_circle`:case`arrow_cross`:case`arrow_hierarchy`:n=e;break;case`double_arrow_point`:case`double_arrow_circle`:case`double_arrow_cross`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(` `);else{let n={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:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:i.agentflow?.wrappingWidth,minWidth:i.agentflow?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}runPostParseValidators(){this.postParseValidationRun||=!0}getData(){this.runPostParseValidators();let e=bs(),t=[],n=[],r=this.getSubGraphs(),i=new Map,a=new Map,o=new Set,s=new Map,l=N((e,t,n=new Set)=>{if(n.has(e))return;n.add(e);let r=this.subGraphLookup.get(e);if(r)for(let e of r.nodes)e===t||n.has(e)||(o.add(e),s.set(e,t),l(e,t,n))},`collectDescendants`);for(let e of r)e.metadata?.view===`collapsed`&&!o.has(e.id)&&l(e.id,e.id);let u=N((e,t)=>{let n=new Set,r=t;for(;r!==void 0&&!n.has(r);){if(r===e)return!0;n.add(r),r=i.get(r)}return!1},`wouldCloseContainmentCycle`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(!o.has(t.id)){t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes){if(u(e,t.id)){this.emitWarning(QN.CONTAINMENT_VIOLATION,`Container "${t.id}" cannot contain "${e}" because "${e}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:e});continue}i.set(e,t.id)}}}for(let n=r.length-1;n>=0;n--){let a=r[n];if(!o.has(a.id)){if(a.metadata?.view===`collapsed`){let n={...a.metadata,containerType:a.type};t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`collapsedGroup`,dir:a.dir,isGroup:!1,look:e.look,metadata:n})}else t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:J7e[a.type??`flow`],dir:a.dir,isGroup:!0,look:e.look,metadata:a.metadata})}}this.getVertices().forEach(n=>{o.has(n.id)||this.addNodeFromVertex(n,t,i,a,e,e.look||`classic`)});let d=this.getEdges();d.forEach((t,r)=>{let i=s.get(t.start)??t.start,a=s.get(t.end)??t.end;if(i===a&&t.start!==t.end)return;let{arrowTypeStart:o,arrowTypeEnd:l}=this.destructEdgeType(t.type),u=[...d.defaultStyle??[]];t.style&&u.push(...t.style);let f={id:Km(i,a,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:i,end:a,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:o,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:l,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:u,style:u,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:t.metadata};n.push(f)}),N7e(t,this);let f=new Map,p=new Map;for(let e of r){let t=i.get(e.id);t!==void 0&&p.set(t,[...p.get(t)??[],e.id])}let m=0,h=N(e=>{if(!f.has(e)){f.set(e,m++);for(let t of p.get(e)??[])h(t)}},`walkContainers`);for(let e of r)i.get(e.id)===void 0&&h(e.id);let g=new Set(this.getConnectors().map(e=>e.id));return P7e(t,e=>{if(g.has(e))return`connector`;let t=this.vertices.get(e);return t?this.deriveVertexKind(t,M7e(t.type)):void 0},f),{nodes:t,edges:n,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return Ss.flowchart}deriveVertexKind(e,t){return this.isToolDefinition(e)?`tool`:t===`hexagon`||t===`hex`?`action`:t===`lean-right`||t===`lean_right`?`input`:t===`lin-doc`||t===`lined-document`?`refdoc`:t===`diamond`?`decision`:`task`}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map(e=>e.id)),t=[],n=[];for(let[r,i]of this.vertices){if(e.has(r))continue;if(i.isConnector){let e={id:r};if(i.text!==void 0&&i.text!==r&&(e.title=i.text),i.metadata&&Object.keys(i.metadata).length>0){let t={};for(let[e,n]of Object.entries(i.metadata))tP.has(e)||(t[e]=n);Object.keys(t).length>0&&(e.metadata=t)}n.push(e);continue}let a={id:r};i.text!==void 0&&(a.label=i.text);let o=typeof i.type==`string`?M7e(i.type):i.type;if(o!==void 0&&(a.shape=o),a.vertexKind=this.deriveVertexKind(i,o),i.metadata&&Object.keys(i.metadata).length>0){let e={};for(let[t,n]of Object.entries(i.metadata))tP.has(t)||(e[t]=n);Object.keys(e).length>0&&(a.metadata=e)}t.push(a)}let r={vertices:t,edges:this.edges.map(e=>{let t={start:e.start,end:e.end};return e.id!==void 0&&(t.id=e.id),typeof e.text==`string`&&e.text.length>0&&(t.label=e.text),e.type!==void 0&&(t.type=e.type),e.stroke!==void 0&&(t.stroke=e.stroke),e.edgeSemantic!==void 0&&(t.edgeSemantic=e.edgeSemantic),e.length!==void 0&&(t.length=e.length),e.metadata&&Object.keys(e.metadata).length>0&&(t.metadata={...e.metadata}),t}),subGraphs:this.subGraphs.map(e=>{let t={id:e.id,nodes:[...e.nodes]};if(e.type!==void 0&&(t.type=e.type),e.title!==void 0&&(t.title=e.title),e.dir!==void 0&&(t.direction=e.dir),e.metadata&&Object.keys(e.metadata).length>0){let n={};for(let[t,r]of Object.entries(e.metadata))tP.has(t)||(n[t]=r);Object.keys(n).length>0&&(t.metadata=n)}return t}),connectors:n,diagnostics:this.diagnostics};return this.direction!==void 0&&(r.direction=this.direction),r}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let t=e?.first_line??0,n=e?.first_column??0,r=e?.last_line??t,i=e?.last_column??n,[a,o]=e?.range??[0,0];return{startLine:t+this.frontmatterLineOffset,startColumn:n,endLine:r+this.frontmatterLineOffset,endColumn:i,startIndex:a,endIndex:o}}pushMapping(e,t,n){if(!e)return;let r={id:e,type:t,position:this.toElementPosition(n)};return this.elementMappings.push(r),r}addVertexMapping(e,t,n,r){let i=this.pushMapping(e,`vertex`,r);i&&n==null&&this.bareVertexMappings.add(i)}extendVertexMapping(e,t){if(!e||!t)return;let n=this.toElementPosition(t);for(let t=this.elementMappings.length-1;t>=0;t--){let r=this.elementMappings[t];if(r.type===`vertex`&&r.id===e){this.bareVertexMappings.has(r)&&(r.type=`attachment`,this.bareVertexMappings.delete(r)),(n.endLine>r.position.endLine||n.endLine===r.position.endLine&&n.endColumn>r.position.endColumn)&&(r.position.endLine=n.endLine,r.position.endColumn=n.endColumn,r.position.endIndex=n.endIndex);return}}this.pushMapping(e,`attachment`,t)}addEdgeMapping(e,t,n,r){let i=Array.isArray(t)?t.map(e=>typeof e==`string`?e:e?.id??``).filter(Boolean):[],a=i.length>0?i.join(`>`):`edge`;this.pushMapping(a,`edge`,r)}addSubgraphMapping(e,t,n,r){let i=(typeof e==`string`?e:e?.text)??``,a=this.toElementPosition(n),o=r?this.toElementPosition(r):a;i&&this.elementMappings.push({id:i,type:`subgraph`,position:{startLine:a.startLine,startColumn:a.startColumn,endLine:o.endLine,endColumn:o.endColumn,startIndex:a.startIndex,endIndex:o.endIndex}})}addConnectorMapping(e,t,n,r){let i=e?.text?.trim()??``;if(!i)return;let a=this.toElementPosition(n),o=r?this.toElementPosition(r):a;this.elementMappings.push({id:i,type:`connector`,position:{startLine:a.startLine,startColumn:a.startColumn,endLine:o.endLine,endColumn:o.endColumn,startIndex:a.startIndex,endIndex:o.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find(t=>t.id===e)}getElementsOnLine(e){return this.elementMappings.filter(t=>e>=t.position.startLine&&e<=t.position.endLine)}getElementAtPosition(e,t){let n=this.elementMappings.filter(n=>{let{startLine:r,startColumn:i,endLine:a,endColumn:o}=n.position;return!(ea||e===r&&to)});if(n.length===0)return;let r=N(({position:e})=>[e.endLine-e.startLine,e.endColumn-e.startColumn],`span`);return n.reduce((e,t)=>{let[n,i]=r(e),[a,o]=r(t);return a===n?oe.id===o.id&&e.severity===o.severity&&e.message===o.message&&e.nodeId===o.nodeId&&e.edgeId===o.edgeId))return;this.diagnostics.push(o);let s=`agentflow[${e}]: ${n}`;t===`error`?P.error(s):P.warn(s)}emitWarning(e,t,n){this.emitDiagnostic(e,`warning`,t,n)}emitError(e,t,n){this.emitDiagnostic(e,`error`,t,n)}getDiagnostics(){return[...this.diagnostics]}},X7e={getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.debug(`Drawing agentflow diagram`,t);let{securityLevel:i,agentflow:a,layout:o}=bs();r.db.setDiagramId(t),P.debug(`Before getData: `);let s=r.db.getData();P.debug(`Data: `,s);let l=qN(t,i),u=r.db.getDirection();s.type=r.type,s.layoutAlgorithm=HM(o),s.layoutAlgorithm===`dagre`&&o===`elk`&&P.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."),s.direction=u,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`point`,`circle`,`cross`,`hierarchy`],s.diagramId=t,P.debug(`REF1:`,s),await VM(s,l);let d=a?.diagramPadding??8;Wm.insertTitle(l,`agentflowTitleText`,a?.titleTopMargin??0,r.db.getDiagramTitle()),YN(l,d,`agentflow`,a?.useMaxWidth??!0)},`draw`)},nP=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,5],n=[1,4],r=[1,3],i=[1,6],a=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],o=[2,2],s=[1,15],l=[1,16],u=[1,17],d=[1,18],f=[1,19],p=[1,26],m=[1,27],h=[1,28],g=[1,30],_=[1,31],v=[1,32],y=[1,55],b=[1,54],x=[1,34],S=[1,35],C=[1,36],w=[1,37],T=[1,38],E=[1,50],D=[1,52],O=[1,48],k=[1,53],A=[1,49],j=[1,56],M=[1,51],ee=[1,57],te=[1,58],ne=[1,39],re=[1,40],ie=[1,41],ae=[1,42],oe=[1,43],se=[1,64],ce=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],le=[1,70],ue=[1,68],de=[1,67],fe=[1,69],pe=[8,9,10,12,78,80,81],me=[1,88],he=[1,101],ge=[1,106],_e=[1,105],ve=[1,102],ye=[1,98],be=[1,104],xe=[1,100],Se=[1,107],Ce=[1,103],we=[1,108],Te=[1,99],Ee=[8,9,10,11,12,43,78,80,81],De=[8,9,10,11,12,43,49,78,80,81],Oe=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],ke=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],Ae=[47,63,92,105,108,109,112,114,117,118,119],je=[1,131],Me=[1,132],Ne=[1,134],Pe=[1,133],Fe=[47,63,65,77,92,105,108,109,112,114,117,118,119],Ie=[1,143],Le=[1,157],Re=[1,158],ze=[1,159],Be=[1,162],Ve=[1,161],He=[1,160],Ue=[1,145],We=[1,147],Ge=[1,151],Ke=[1,139],qe=[1,140],Je=[1,152],Ye=[1,153],Xe=[1,154],Ze=[1,155],Qe=[1,156],$e=[1,163],et=[1,164],tt=[1,141],nt=[1,142],rt=[1,149],it=[1,144],at=[1,148],ot=[1,146],st=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],ct=[1,168],lt=[1,170],ut=[8,9,10,12],dt=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],ft=[1,190],pt=[1,186],mt=[1,187],ht=[1,191],gt=[1,188],_t=[1,189],vt=[80,119,122],yt=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],bt=[11,109],xt=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],St=[1,269],Ct=[1,267],wt=[1,271],Tt=[1,265],Et=[1,266],Dt=[1,268],Ot=[1,270],kt=[1,272],At=[1,292],jt=[8,9,10,12,109],Mt=[8,9,10,11,12,63,87,108,109,112,113,114,115],Nt={trace:N(function(){},`trace`),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:`error`,8:`COMMENT`,9:`SEMI`,10:`NEWLINE`,11:`SPACE`,12:`EOF`,13:`GRAPH`,14:`NODIR`,15:`DIR`,28:`flow`,30:`SQS`,32:`SQE`,33:`end`,35:`global`,36:`connector`,38:`acc_title`,39:`acc_title_value`,40:`acc_descr`,41:`acc_descr_value`,42:`acc_descr_multiline_value`,43:`SHAPE_DATA`,47:`AMP`,49:`STYLE_SEPARATOR`,51:`DOUBLECIRCLESTART`,52:`DOUBLECIRCLEEND`,53:`PS`,54:`PE`,55:`(-`,56:`-)`,57:`STADIUMSTART`,58:`STADIUMEND`,59:`SUBROUTINESTART`,60:`SUBROUTINEEND`,61:`VERTEX_WITH_PROPS_START`,62:`NODE_STRING[field]`,63:`COLON`,64:`NODE_STRING[value]`,65:`PIPE`,66:`CYLINDERSTART`,67:`CYLINDEREND`,68:`DIAMOND_START`,69:`DIAMOND_STOP`,70:`TAGEND`,71:`TRAPSTART`,72:`TRAPEND`,73:`INVTRAPSTART`,74:`INVTRAPEND`,77:`TESTSTR`,78:`START_LINK`,80:`LINK`,81:`LINK_ID`,83:`STR`,84:`MD_STR`,87:`STYLE`,88:`LINKSTYLE`,89:`CLASSDEF`,90:`CLASS`,91:`CLICK`,92:`DOWN`,93:`UP`,96:`idString[vertex]`,97:`idString[class]`,98:`CALLBACKNAME`,99:`CALLBACKARGS`,100:`HREF`,101:`LINK_TARGET`,102:`STR[link]`,103:`STR[tooltip]`,105:`DEFAULT`,107:`INTERPOLATE`,108:`NUM`,109:`COMMA`,112:`NODE_STRING`,113:`UNIT`,114:`BRKT`,115:`PCT`,117:`MINUS`,118:`MULT`,119:`UNICODE_TEXT`,120:`TEXT`,121:`TAGSTART`,122:`EDGE_TEXT`,124:`direction_tb`,125:`direction_bt`,126:`direction_rl`,127:`direction_lr`,128:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 198:this.$=a[s];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:r.setDirection(`TB`),this.$=`TB`;break;case 14:r.setDirection(a[s-1]),this.$=a[s-1];break;case 32:this.$=a[s-1].nodes;break;case 38:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4],`flow`),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-6],a[s-4],o[s-8],o[s]);break;case 39:this.$=r.addSubGraph(a[s-7],a[s-1],a[s-5],`flow`),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-3],o[s-3]),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-7],a[s-5],o[s-9],o[s]);break;case 40:this.$=r.addSubGraph(a[s-3],a[s-1],{text:``,type:`text`},`flow`),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-3],{text:``,type:`text`},o[s-5],o[s]);break;case 41:this.$=r.addSubGraph(a[s-4],a[s-1],{text:``,type:`text`},`flow`),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-3],o[s-3]),r.addSubgraphMapping&&r.addSubgraphMapping(a[s-4],{text:``,type:`text`},o[s-6],o[s]);break;case 42:this.$=r.addSubGraph(void 0,a[s-1],void 0,`flow`),r.addSubgraphMapping&&r.addSubgraphMapping(void 0,void 0,o[s-3],o[s]);break;case 43:r.addGlobal(a[s-1]),this.$=[];break;case 44:this.$=r.addConnector(a[s-4],a[s-2]),r.addConnectorMapping&&r.addConnectorMapping(a[s-4],a[s-2],o[s-6],o[s]);break;case 45:this.$=r.addConnector(a[s-5],a[s-3]),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-1],o[s-1]),r.addConnectorMapping&&r.addConnectorMapping(a[s-5],a[s-3],o[s-7],o[s]);break;case 46:this.$=r.addConnector(a[s-1],{text:``,type:`text`}),r.addConnectorMapping&&r.addConnectorMapping(a[s-1],{text:``,type:`text`},o[s-3],o[s]);break;case 47:this.$=r.addConnector(a[s-2],{text:``,type:`text`}),r.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[s-1],o[s-1]),r.addConnectorMapping&&r.addConnectorMapping(a[s-2],{text:``,type:`text`},o[s-4],o[s]);break;case 49:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 50:case 51:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 56:this.$=a[s-1]+a[s];break;case 57:this.$=a[s];break;case 58:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s],o[s]),r.extendVertexMapping&&r.extendVertexMapping(a[s-1][a[s-1].length-1],o[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),r.addEdgeMapping&&r.addEdgeMapping(a[s-3].stmt,a[s-1],a[s-2],this._$),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 59:r.addLink(a[s-2].stmt,a[s],a[s-1]),r.addEdgeMapping&&r.addEdgeMapping(a[s-2].stmt,a[s],a[s-1],this._$),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 60:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),r.addEdgeMapping&&r.addEdgeMapping(a[s-3].stmt,a[s-1],a[s-2],this._$),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 61:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 62:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s],o[s]),r.extendVertexMapping&&r.extendVertexMapping(a[s-1][a[s-1].length-1],o[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 63:this.$={stmt:a[s],nodes:a[s]};break;case 64:this.$=[a[s]];break;case 65:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4],o[s-4]),r.extendVertexMapping&&r.extendVertexMapping(a[s-5][a[s-5].length-1],o[s-4]),this.$=a[s-5].concat(a[s]);break;case 66:this.$=a[s-4].concat(a[s]);break;case 67:this.$=a[s];break;case 68:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`square`,this._$);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`doublecircle`,this._$);break;case 71:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`),r.addVertexMapping&&r.addVertexMapping(a[s-5],a[s-2],`circle`,this._$);break;case 72:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`ellipse`,this._$);break;case 73:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`stadium`,this._$);break;case 74:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`subroutine`,this._$);break;case 75:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]])),r.addVertexMapping&&r.addVertexMapping(a[s-7],a[s-1],`rect`,this._$);break;case 76:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`cylinder`,this._$);break;case 77:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`round`,this._$);break;case 78:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`diamond`,this._$);break;case 79:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`),r.addVertexMapping&&r.addVertexMapping(a[s-5],a[s-2],`hexagon`,this._$);break;case 80:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`odd`,this._$);break;case 81:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`trapezoid`,this._$);break;case 82:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`inv_trapezoid`,this._$);break;case 83:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`lean_right`,this._$);break;case 84:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`),r.addVertexMapping&&r.addVertexMapping(a[s-3],a[s-1],`lean_left`,this._$);break;case 85:this.$=a[s],r.addVertex(a[s]),r.addVertexMapping&&r.addVertexMapping(a[s],void 0,void 0,this._$);break;case 86:a[s-1].text=a[s],this.$=a[s-1];break;case 87:case 88:a[s-2].text=a[s-1],this.$=a[s-2];break;case 89:this.$=a[s];break;case 90:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[s-1]};break;case 91:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[s-1],id:a[s-3]};break;case 92:this.$={text:a[s],type:`text`};break;case 93:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 94:this.$={text:a[s],type:`string`};break;case 95:this.$={text:a[s],type:`markdown`};break;case 96:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic};break;case 97:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,id:a[s-1]};break;case 98:this.$=a[s-1];break;case 99:this.$={text:a[s],type:`text`};break;case 100:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 101:this.$={text:a[s],type:`string`};break;case 102:case 119:this.$={text:a[s],type:`markdown`};break;case 116:this.$={text:a[s],type:`text`};break;case 117:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 118:this.$={text:a[s],type:`text`};break;case 120:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 121:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 122:case 130:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 123:case 131:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 124:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 125:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 126:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 127:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 128:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 129:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 132:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 133:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 134:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 135:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 136:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 137:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 138:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 139:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 140:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 141:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 142:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 143:case 145:this.$=[a[s]];break;case 144:case 146:a[s-2].push(a[s]),this.$=a[s-2];break;case 148:this.$=a[s-1]+a[s];break;case 196:this.$=a[s];break;case 197:this.$=a[s-1]+``+a[s];break;case 199:this.$=a[s-1]+``+a[s];break;case 200:this.$={stmt:`dir`,value:`TB`};break;case 201:this.$={stmt:`dir`,value:`BT`};break;case 202:this.$={stmt:`dir`,value:`RL`};break;case 203:this.$={stmt:`dir`,value:`LR`};break;case 204:this.$={stmt:`dir`,value:`TD`}}},`anonymous`),table:[{3:1,4:2,8:t,10:n,11:r,13:i},{1:[3]},e(a,o,{5:7}),{4:8,8:t,10:n,11:r,13:i},{4:9,8:t,10:n,11:r,13:i},{4:10,8:t,10:n,11:r,13:i},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(a,[2,10]),e(a,[2,11]),e(a,[2,12]),e(a,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:se,16:59,19:62},e(ce,[2,3]),e(ce,[2,4]),e(ce,[2,5]),e(ce,[2,6]),e(ce,[2,7]),e(ce,[2,8]),e(ce,[2,9]),{8:le,9:ue,10:de,12:fe,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:le,9:ue,10:de,12:fe,22:75},{8:le,9:ue,10:de,12:fe,22:76},{8:le,9:ue,10:de,12:fe,22:77},{8:le,9:ue,10:de,12:fe,22:78},{8:le,9:ue,10:de,12:fe,22:79},{8:le,9:ue,10:de,11:[1,80],12:fe,22:81},{8:le,9:ue,10:de,12:fe,22:82},{11:[1,83]},e(ce,[2,48]),{39:[1,84]},{41:[1,85]},e(ce,[2,51]),e(pe,[2,63],{19:86,34:87,11:se,43:me}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:he,47:ge,63:_e,83:[1,96],92:ve,98:[1,93],100:[1,94],104:95,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te,123:97},e(ce,[2,200]),e(ce,[2,201]),e(ce,[2,202]),e(ce,[2,203]),e(ce,[2,204]),e(Ee,[2,64]),e(Ee,[2,67],{49:[1,109]}),e(De,[2,85],{116:122,30:[1,110],47:y,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:b,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:E,105:D,108:O,109:k,112:A,114:j,117:M,118:ee,119:te}),e(Oe,[2,196]),e(Oe,[2,157]),e(Oe,[2,158]),e(Oe,[2,159]),e(Oe,[2,160]),e(Oe,[2,161]),e(Oe,[2,162]),e(Oe,[2,163]),e(Oe,[2,164]),e(Oe,[2,165]),e(Oe,[2,166]),e(Oe,[2,167]),e(a,[2,14]),e(a,[2,20]),e(a,[2,21]),{10:[1,123]},e(a,[2,23]),e(ke,[2,31],{19:124,11:se}),e(ce,[2,32]),{45:125,46:44,47:y,48:45,50:46,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ce,[2,52]),e(ce,[2,53]),e(ce,[2,54]),e(ce,[2,55]),e(Ae,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:je,84:Me,119:Ne,122:Pe},{78:[1,135],80:[1,136]},e(Fe,[2,96]),e(ce,[2,33]),e(ce,[2,34]),e(ce,[2,35]),e(ce,[2,36]),e(ce,[2,37]),{11:Ie,13:Le,15:Re,28:ze,29:137,33:Be,35:Ve,36:He,47:Ue,63:We,78:Ge,83:Ke,84:qe,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:138,108:tt,112:nt,114:rt,117:it,118:at,119:ot},e(st,o,{5:165}),e(st,o,{5:166}),{11:Ie,13:Le,15:Re,28:ze,29:167,33:Be,35:Ve,36:He,47:Ue,63:We,78:Ge,83:Ke,84:qe,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:138,108:tt,112:nt,114:rt,117:it,118:at,119:ot},e(ce,[2,49]),e(ce,[2,50]),e(pe,[2,61],{47:ct}),e(pe,[2,62],{19:169,11:se,43:lt}),e(Ee,[2,57]),{47:y,50:171,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{105:[1,172],106:173,108:[1,174]},{47:y,50:175,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{47:y,50:176,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ut,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(ut,[2,130],{123:181,11:[1,180],15:he,47:ge,63:_e,92:ve,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te}),e(ut,[2,132],{11:[1,182]}),e(dt,[2,198]),e(dt,[2,185]),e(dt,[2,186]),e(dt,[2,187]),e(dt,[2,188]),e(dt,[2,189]),e(dt,[2,190]),e(dt,[2,191]),e(dt,[2,192]),e(dt,[2,193]),e(dt,[2,194]),e(dt,[2,195]),{47:y,50:183,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{31:184,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:192,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:194,53:[1,193],70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:195,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:196,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:197,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{112:[1,198]},{31:199,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:200,68:[1,201],70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:202,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:203,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{31:204,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(Oe,[2,197]),e(a,[2,22]),e(ke,[2,30]),e(pe,[2,59],{34:205,19:206,11:se,43:me}),e(Ae,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{80:[1,210],82:211,119:Ne,122:Pe},e(vt,[2,92]),e(vt,[2,94]),e(vt,[2,95]),e(vt,[2,183]),e(vt,[2,184]),{79:212,82:130,83:je,84:Me,119:Ne,122:Pe},e(Fe,[2,97]),{8:le,9:ue,10:de,11:Ie,12:fe,13:Le,15:Re,22:214,28:ze,30:[1,213],33:Be,34:215,35:Ve,36:He,43:me,47:Ue,63:We,78:Ge,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:216,108:tt,112:nt,114:rt,117:it,118:at,119:ot},e(yt,[2,116]),e(yt,[2,118]),e(yt,[2,119]),e(yt,[2,172]),e(yt,[2,173]),e(yt,[2,174]),e(yt,[2,175]),e(yt,[2,176]),e(yt,[2,177]),e(yt,[2,178]),e(yt,[2,179]),e(yt,[2,180]),e(yt,[2,181]),e(yt,[2,182]),e(yt,[2,103]),e(yt,[2,104]),e(yt,[2,105]),e(yt,[2,106]),e(yt,[2,107]),e(yt,[2,108]),e(yt,[2,109]),e(yt,[2,110]),e(yt,[2,111]),e(yt,[2,112]),e(yt,[2,113]),e(yt,[2,114]),e(yt,[2,115]),{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,217],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,218],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},{8:le,9:ue,10:de,11:Ie,12:fe,13:Le,15:Re,22:220,28:ze,30:[1,219],33:Be,34:221,35:Ve,36:He,43:me,47:Ue,63:We,78:Ge,86:150,87:Je,88:Ye,89:Xe,90:Ze,91:Qe,92:$e,93:et,94:216,108:tt,112:nt,114:rt,117:it,118:at,119:ot},{11:se,19:222},{47:[1,223]},e(Ee,[2,56]),{11:[1,224],47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:122,117:M,118:ee,119:te},{11:[1,225]},{11:[1,226],109:[1,227]},e(bt,[2,143]),{11:[1,228],47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:122,117:M,118:ee,119:te},{11:[1,229],47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:122,117:M,118:ee,119:te},{83:[1,230]},e(ut,[2,124],{11:[1,231]}),e(ut,[2,126],{11:[1,232]}),{83:[1,233]},e(dt,[2,199]),{83:[1,234],101:[1,235]},e(Ee,[2,68],{116:122,47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,117:M,118:ee,119:te}),{32:[1,236],70:ft,85:237,119:ht,120:gt,121:_t},e(xt,[2,99]),e(xt,[2,101]),e(xt,[2,102]),e(xt,[2,168]),e(xt,[2,169]),e(xt,[2,170]),e(xt,[2,171]),{52:[1,238],70:ft,85:237,119:ht,120:gt,121:_t},{31:239,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{54:[1,240],70:ft,85:237,119:ht,120:gt,121:_t},{56:[1,241],70:ft,85:237,119:ht,120:gt,121:_t},{58:[1,242],70:ft,85:237,119:ht,120:gt,121:_t},{60:[1,243],70:ft,85:237,119:ht,120:gt,121:_t},{63:[1,244]},{67:[1,245],70:ft,85:237,119:ht,120:gt,121:_t},{69:[1,246],70:ft,85:237,119:ht,120:gt,121:_t},{31:247,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},{32:[1,248],70:ft,85:237,119:ht,120:gt,121:_t},{70:ft,72:[1,249],74:[1,250],85:237,119:ht,120:gt,121:_t},{70:ft,72:[1,252],74:[1,251],85:237,119:ht,120:gt,121:_t},e(pe,[2,58],{19:169,11:se,43:lt}),e(pe,[2,60],{47:ct}),e(Ae,[2,88]),e(Ae,[2,87]),{65:[1,253],70:ft,85:237,119:ht,120:gt,121:_t},e(Ae,[2,90]),e(vt,[2,93]),{80:[1,254],82:211,119:Ne,122:Pe},{31:255,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(st,o,{5:256}),{8:le,9:ue,10:de,12:fe,22:257,43:lt},e(yt,[2,117]),e(ce,[2,42]),e(ce,[2,43]),{31:258,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(ce,[2,46]),{8:le,9:ue,10:de,12:fe,22:259,43:lt},{46:260,47:y,48:45,50:46,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},{11:se,19:261},{11:St,63:Ct,87:wt,95:262,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{11:St,63:Ct,87:wt,95:273,107:[1,274],108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{11:St,63:Ct,87:wt,95:275,107:[1,276],108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{108:[1,277]},{11:St,63:Ct,87:wt,95:278,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{47:y,50:279,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ut,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(ut,[2,131]),e(ut,[2,133],{11:[1,283]}),e(ut,[2,134]),e(De,[2,69]),e(xt,[2,100]),e(De,[2,70]),{54:[1,284],70:ft,85:237,119:ht,120:gt,121:_t},e(De,[2,77]),e(De,[2,72]),e(De,[2,73]),e(De,[2,74]),{112:[1,285]},e(De,[2,76]),e(De,[2,78]),{69:[1,286],70:ft,85:237,119:ht,120:gt,121:_t},e(De,[2,80]),e(De,[2,81]),e(De,[2,83]),e(De,[2,82]),e(De,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(Ae,[2,91]),{32:[1,287],70:ft,85:237,119:ht,120:gt,121:_t},{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,288],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(st,o,{5:289}),{32:[1,290],70:ft,85:237,119:ht,120:gt,121:_t},e(ce,[2,47]),e(Ee,[2,66]),{46:291,47:y,48:45,50:46,63:b,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te},e(ut,[2,136],{109:At}),e(jt,[2,145],{111:293,11:St,63:Ct,87:wt,108:Tt,112:Et,113:Dt,114:Ot,115:kt}),e(Mt,[2,147]),e(Mt,[2,149]),e(Mt,[2,150]),e(Mt,[2,151]),e(Mt,[2,152]),e(Mt,[2,153]),e(Mt,[2,154]),e(Mt,[2,155]),e(Mt,[2,156]),e(ut,[2,137],{109:At}),{11:[1,294]},e(ut,[2,138],{109:At}),{11:[1,295]},e(bt,[2,144]),e(ut,[2,120],{109:At}),e(ut,[2,121],{116:122,47:y,63:b,92:E,105:D,108:O,109:k,112:A,114:j,117:M,118:ee,119:te}),e(ut,[2,125]),e(ut,[2,127],{11:[1,296]}),e(ut,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:le,9:ue,10:de,12:fe,22:301,34:302,43:me},e(ce,[2,40]),{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,303],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},{8:le,9:ue,10:de,12:fe,22:304,34:305,43:me},e(Ee,[2,65]),{11:St,63:Ct,87:wt,108:Tt,110:306,111:264,112:Et,113:Dt,114:Ot,115:kt},e(Mt,[2,148]),{15:he,47:ge,63:_e,92:ve,104:307,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te,123:97},{15:he,47:ge,63:_e,92:ve,104:308,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te,123:97},{101:[1,309]},e(ut,[2,135]),e(De,[2,71]),{31:310,70:ft,83:pt,84:mt,85:185,119:ht,120:gt,121:_t},e(De,[2,79]),e(st,o,{5:311}),{8:le,9:ue,10:de,12:fe,22:312,43:lt},e(ce,[2,41]),e(ce,[2,44]),{8:le,9:ue,10:de,12:fe,22:313,43:lt},e(jt,[2,146],{111:293,11:St,63:Ct,87:wt,108:Tt,112:Et,113:Dt,114:Ot,115:kt}),e(ut,[2,141],{123:181,11:[1,314],15:he,47:ge,63:_e,92:ve,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te}),e(ut,[2,142],{123:181,11:[1,315],15:he,47:ge,63:_e,92:ve,108:ye,109:be,112:xe,114:Se,117:Ce,118:we,119:Te}),e(ut,[2,129]),{32:[1,316],70:ft,85:237,119:ht,120:gt,121:_t},{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,317],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(st,o,{5:318}),e(ce,[2,45]),{11:St,63:Ct,87:wt,95:319,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},{11:St,63:Ct,87:wt,95:320,108:Tt,110:263,111:264,112:Et,113:Dt,114:Ot,115:kt},e(De,[2,75]),e(ce,[2,38]),{6:13,7:14,8:s,9:l,10:u,11:d,12:f,21:20,23:21,24:22,25:23,26:24,27:25,28:p,33:[1,321],35:m,36:h,37:29,38:g,40:_,42:v,45:33,46:44,47:y,48:45,50:46,63:b,87:x,88:S,89:C,90:w,91:T,92:E,105:D,108:O,109:k,112:A,114:j,116:47,117:M,118:ee,119:te,124:ne,125:re,126:ie,127:ae,128:oe},e(ut,[2,139],{109:At}),e(ut,[2,140],{109:At}),e(ce,[2,39])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Nt.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),38;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),40;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=``,43;case 8:return this.pushState(`shapeDataStr`),43;case 9:return this.popState(),43;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),43;case 11:return 43;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 98;case 17:this.popState();break;case 18:return 99;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 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 91;case 35:return e.lex.firstGraph()&&this.begin(`dir`),13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;case 45:return this.popState(),15;case 46:return this.popState(),15;case 47:return this.popState(),15;case 48:return this.popState(),15;case 49:return this.popState(),15;case 50:return this.popState(),15;case 51:return this.popState(),15;case 52:return this.popState(),15;case 53:return this.popState(),15;case 54:return this.popState(),15;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;case 70:return this.pushState(`edgeText`),78;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;case 75:return`TEXT`;case 76:return this.pushState(`ellipseText`),55;case 77:return this.popState(),58;case 78:return this.pushState(`text`),57;case 79:return this.popState(),60;case 80:return this.pushState(`text`),59;case 81:return 61;case 82:return this.pushState(`text`),70;case 83:return this.popState(),67;case 84:return this.pushState(`text`),66;case 85:return this.popState(),52;case 86:return this.pushState(`text`),51;case 87:break;case 88:return this.popState(),72;case 89:return this.popState(),74;case 90:return 120;case 91:return this.pushState(`trapText`),71;case 92:return this.pushState(`trapText`),73;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return`SEP`;case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;case 106:return this.pushState(`text`),65;case 107:return this.popState(),54;case 108:return this.pushState(`text`),53;case 109:return this.popState(),32;case 110:return this.pushState(`text`),30;case 111:return this.popState(),69;case 112:return this.pushState(`text`),68;case 113:break;case 114:return`TEXT`;case 115:return`QUOTE`;case 116:return 10;case 117:return 11;case 118:return 12}},`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]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_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*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],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,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}}})();function Pt(){this.yy={}}return N(Pt,`Parser`),Pt.prototype=Nt,Nt.Parser=Pt,new Pt})(),iP.parser=iP,W7e=iP,G7e=Object.assign({},W7e),G7e.parse=e=>{let t=e.replace(/}[^\S\n]*\n/g,`} -`);return W7e.parse(t)},K7e=G7e,q7e=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=Mh(e.look),a=Ah(n),o=Ph(e.THEME_COLOR_LIMIT,r),s=N(e=>r[e%r.length],`border`),l=N(e=>a?`fill: ${n[e%n.length]};`:``,`fill`),u=``;for(let e of rP){let t=N7e.get(e),n=`[data-look="${i}"].node.${F7e(e)}`;u+=` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),38;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),40;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=``,43;case 8:return this.pushState(`shapeDataStr`),43;case 9:return this.popState(),43;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),43;case 11:return 43;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 98;case 17:this.popState();break;case 18:return 99;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 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 91;case 35:return e.lex.firstGraph()&&this.begin(`dir`),13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;case 45:return this.popState(),15;case 46:return this.popState(),15;case 47:return this.popState(),15;case 48:return this.popState(),15;case 49:return this.popState(),15;case 50:return this.popState(),15;case 51:return this.popState(),15;case 52:return this.popState(),15;case 53:return this.popState(),15;case 54:return this.popState(),15;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;case 70:return this.pushState(`edgeText`),78;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;case 75:return`TEXT`;case 76:return this.pushState(`ellipseText`),55;case 77:return this.popState(),58;case 78:return this.pushState(`text`),57;case 79:return this.popState(),60;case 80:return this.pushState(`text`),59;case 81:return 61;case 82:return this.pushState(`text`),70;case 83:return this.popState(),67;case 84:return this.pushState(`text`),66;case 85:return this.popState(),52;case 86:return this.pushState(`text`),51;case 87:break;case 88:return this.popState(),72;case 89:return this.popState(),74;case 90:return 120;case 91:return this.pushState(`trapText`),71;case 92:return this.pushState(`trapText`),73;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return`SEP`;case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;case 106:return this.pushState(`text`),65;case 107:return this.popState(),54;case 108:return this.pushState(`text`),53;case 109:return this.popState(),32;case 110:return this.pushState(`text`),30;case 111:return this.popState(),69;case 112:return this.pushState(`text`),68;case 113:break;case 114:return`TEXT`;case 115:return`QUOTE`;case 116:return 10;case 117:return 11;case 118:return 12}},`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]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_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*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],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,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}}})();function Pt(){this.yy={}}return N(Pt,`Parser`),Pt.prototype=Nt,Nt.Parser=Pt,new Pt})(),nP.parser=nP,Z7e=nP,Q7e=Object.assign({},Z7e),Q7e.parse=e=>{let t=e.replace(/}[^\S\n]*\n/g,`} +`);return Z7e.parse(t)},$7e=Q7e,e9e=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Uh(e.look),a=Vh(n),o=Gh(e.THEME_COLOR_LIMIT,r),s=N(e=>r[e%r.length],`border`),l=N(e=>a?`fill: ${n[e%n.length]};`:``,`fill`),u=``;for(let e of U7e){let t=B7e.get(e),n=`[data-look="${i}"].node.${H7e(e)}`;u+=` ${n} rect, ${n} path, @@ -1240,14 +1242,14 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l stroke: ${s(t)}; ${l(t)} } -`}for(let e=0;e`${n} ${e}, ${r} ${e}`,`rule`);u+=` +`}for(let e=0;e`${n} ${e}, ${r} ${e}`,`rule`);u+=` ${a(`rect`)}, ${a(`path`)} { stroke: ${s(t)}; ${l(t)} } -`}return u},`genColor`),J7e=N((e,t)=>{let n=yr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return vr(r,i,a,t)},`fade`),Y7e={parser:K7e,get db(){return new H7e},renderer:U7e,styles:N(e=>`${q7e(e)} +`}return u},`genColor`),t9e=N((e,t)=>{let n=mr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return pr(r,i,a,t)},`fade`),n9e={parser:$7e,get db(){return new Y7e},renderer:X7e,styles:N(e=>`${e9e(e)} .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; @@ -1328,7 +1330,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l /* For html labels only */ .labelBkg { - background-color: ${J7e(e.edgeLabelBackground,.5)}; + background-color: ${t9e(e.edgeLabelBackground,.5)}; } .cluster rect { @@ -1403,20 +1405,20 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l } text-align: center; } - ${JN()} -`,`getStyles`),init:N(e=>{e.agentflow??={},e.layout&&js({layout:e.layout}),e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,js({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)}})),Z7e=l({diagram:()=>Q7e}),Q7e,$7e=o((()=>{x7e(),ZN(),$N(),rm(),YM(),vN(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),Q7e=y7e({styles:N(e=>`${v7e(e)} + ${GN()} +`,`getStyles`),init:N(e=>{e.agentflow??={},e.layout&&xs({layout:e.layout}),e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,xs({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},`init`)}})),i9e=l({diagram:()=>rP}),rP,a9e=o((()=>{k7e(),JN(),XN(),om(),UM(),dN(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),rP=D7e({styles:N(e=>`${E7e(e)} .swimlane.cluster:not([data-color-id]) rect { stroke: ${e.clusterBorder} !important; } [data-look="neo"].cluster rect { filter: none; } -`,`getStyles`)})})),e9e=l({diagram:()=>s9e}),t9e,n9e,aP,r9e,i9e,a9e,o9e,s9e,c9e=o((()=>{ZN(),$N(),YM(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),Tr(),t9e=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],a=[1,10],o=[1,11],s=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],ee=[43,51,53,54,55,74,75],te=[1,70],ne=[1,68],re=[1,65],ie=[1,69],ae=[1,71],oe=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],se=[1,78],ce=[1,77],le=[1,76],ue=[69,70,71,72,73],de=[1,91],fe=[6,9,45,50],pe=[6,9,12,44,45,50,51,52],me=[1,101],he=[1,100],ge=[1,99],_e=[18,61],ve=[1,110],ye=[1,109],be=[20,43,51,53,54,55],xe=[18,61,64,66],Se={trace:N(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,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`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},e(t,S,{1:[2,1]}),e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,n,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},e(ee,[2,77]),e(ee,[2,78]),e(ee,[2,79]),e(ee,[2,80]),e(ee,[2,81]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:te,42:64,44:ne,45:re,48:66,49:67,51:ie,52:ae},e(oe,[2,41]),e(oe,[2,42]),{15:72,43:A,44:j,45:re},{12:te,42:73,44:ne,45:re,48:66,49:67,51:ie,52:ae},{6:se,9:ce,19:[1,75],35:74,50:le},{12:[1,79],14:[1,80]},e(C,[2,16],{67:35,11:81,16:[1,82],45:re,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},e(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},e(ue,[2,82]),e(ue,[2,83]),e(C,[2,31]),e(C,S),{6:se,9:ce,35:90,45:de,50:le},{43:[1,92],44:[1,93]},e(fe,[2,47],{49:94,12:te,44:ne,51:ie,52:ae}),e(pe,[2,49]),e(pe,[2,54]),e(pe,[2,55]),e(pe,[2,56]),e(pe,[2,57]),e(C,[2,45],{45:re}),{6:se,9:ce,35:95,45:de,50:le},e(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),{13:98,43:me,53:he,76:ge},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},e(C,[2,11]),{18:[2,64]},e(_e,[2,65],{59:106,60:107,63:108,65:ve,66:ye}),e([18,61,65,66],[2,71]),{61:[2,70]},e(C,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(C,[2,40]),{12:te,44:ne,48:113,49:67,51:ie,52:ae},e(oe,[2,43]),e(oe,[2,44]),e(pe,[2,50]),e(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},e(be,[2,34]),e(C,[2,7]),e(C,[2,84]),e(C,[2,85]),e(C,[2,86]),{12:[1,116],45:re},{12:[1,118],14:[1,117]},{18:[1,119]},e(C,[2,14]),e(_e,[2,66],{60:120,64:[1,121],66:ye}),e(_e,[2,67]),e(xe,[2,72]),e(_e,[2,75]),e(xe,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(fe,[2,48],{49:94,12:te,44:ne,51:ie,52:ae}),{6:se,9:ce,35:125,50:le},e(be,[2,35]),{13:126,43:me,53:he,76:ge},{15:127,43:A,44:j},{13:128,43:me,53:he,76:ge},e(C,[2,12]),e(_e,[2,68]),{63:129,65:ve},{18:[1,130]},e(C,[2,19]),e(C,[2,22],{16:[1,131],45:re}),e(C,[2,33]),e(C,[2,10]),{12:[1,132],45:re},e(C,[2,9]),e(xe,[2,73]),e(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:me,53:he,76:ge},{18:[1,136]},e(C,[2,20]),e(C,[2,8]),e(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`,`getStyles`)})})),o9e=l({diagram:()=>p9e}),s9e,c9e,l9e,u9e,d9e,f9e,iP,p9e,m9e=o((()=>{JN(),XN(),UM(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),Dp(),br(),s9e=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],a=[1,10],o=[1,11],s=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],ee=[43,51,53,54,55,74,75],te=[1,70],ne=[1,68],re=[1,65],ie=[1,69],ae=[1,71],oe=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],se=[1,78],ce=[1,77],le=[1,76],ue=[69,70,71,72,73],de=[1,91],fe=[6,9,45,50],pe=[6,9,12,44,45,50,51,52],me=[1,101],he=[1,100],ge=[1,99],_e=[18,61],ve=[1,110],ye=[1,109],be=[20,43,51,53,54,55],xe=[18,61,64,66],Se={trace:N(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,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`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},e(t,S,{1:[2,1]}),e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,n,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},e(ee,[2,77]),e(ee,[2,78]),e(ee,[2,79]),e(ee,[2,80]),e(ee,[2,81]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:te,42:64,44:ne,45:re,48:66,49:67,51:ie,52:ae},e(oe,[2,41]),e(oe,[2,42]),{15:72,43:A,44:j,45:re},{12:te,42:73,44:ne,45:re,48:66,49:67,51:ie,52:ae},{6:se,9:ce,19:[1,75],35:74,50:le},{12:[1,79],14:[1,80]},e(C,[2,16],{67:35,11:81,16:[1,82],45:re,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},e(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},e(ue,[2,82]),e(ue,[2,83]),e(C,[2,31]),e(C,S),{6:se,9:ce,35:90,45:de,50:le},{43:[1,92],44:[1,93]},e(fe,[2,47],{49:94,12:te,44:ne,51:ie,52:ae}),e(pe,[2,49]),e(pe,[2,54]),e(pe,[2,55]),e(pe,[2,56]),e(pe,[2,57]),e(C,[2,45],{45:re}),{6:se,9:ce,35:95,45:de,50:le},e(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),{13:98,43:me,53:he,76:ge},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},e(C,[2,11]),{18:[2,64]},e(_e,[2,65],{59:106,60:107,63:108,65:ve,66:ye}),e([18,61,65,66],[2,71]),{61:[2,70]},e(C,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(C,[2,40]),{12:te,44:ne,48:113,49:67,51:ie,52:ae},e(oe,[2,43]),e(oe,[2,44]),e(pe,[2,50]),e(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},e(be,[2,34]),e(C,[2,7]),e(C,[2,84]),e(C,[2,85]),e(C,[2,86]),{12:[1,116],45:re},{12:[1,118],14:[1,117]},{18:[1,119]},e(C,[2,14]),e(_e,[2,66],{60:120,64:[1,121],66:ye}),e(_e,[2,67]),e(xe,[2,72]),e(_e,[2,75]),e(xe,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(fe,[2,48],{49:94,12:te,44:ne,51:ie,52:ae}),{6:se,9:ce,35:125,50:le},e(be,[2,35]),{13:126,43:me,53:he,76:ge},{15:127,43:A,44:j},{13:128,43:me,53:he,76:ge},e(C,[2,12]),e(_e,[2,68]),{63:129,65:ve},{18:[1,130]},e(C,[2,19]),e(C,[2,22],{16:[1,131],45:re}),e(C,[2,33]),e(C,[2,10]),{12:[1,132],45:re},e(C,[2,9]),e(xe,[2,73]),e(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:me,53:he,76:ge},{18:[1,136]},e(C,[2,20]),e(C,[2,8]),e(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Se.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),23;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),25;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 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin(`block`),16;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin(`block_bq`);break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;case 32:return t.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin(`style`),47;case 36:return this.popState(),9;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin(`style`),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return t.yytext[0];case 82: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,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/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,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/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:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,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,74,75,76,77,80,81,82],inclusive:!0}}}})();function Ce(){this.yy={}}return N(Ce,`Parser`),Ce.prototype=Se,Se.Parser=Ce,new Ce})(),t9e.parser=t9e,n9e=t9e,aP=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,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=Cs,this.getAccTitle=ws,this.setAccDescription=Ts,this.getAccDescription=Es,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,this.getConfig=N(()=>As().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),this.addSubGraph=this.addSubGraph.bind(this)}static{N(this,`ErDB`)}addEntity(e,t=``){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,P.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:`erBox`,look:As().look??`default`,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),P.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,t){let n=this.addEntity(e),r;for(r=t.length-1;r>=0;r--)t[r].keys||(t[r].keys=[]),t[r].comment||(t[r].comment=``),n.attributes.push(t[r]),P.debug(`Added attribute `,t[r].name)}addRelationship(e,t,n,r){let i;if(this.subGraphLookup.has(e))i=e;else{let t=this.addEntity(e);if(!t)return;i=t.id}let a;if(this.subGraphLookup.has(n))a=n;else{let e=this.addEntity(n);if(!e)return;a=e.id}let o={entityA:i,roleA:t,entityB:a,relSpec:r};this.relationships.push(o),P.debug(`Added new relationship :`,o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n),r=this.subGraphLookup.get(n);if(t){if(e)for(let n of t)e.cssStyles.push(n);if(r){r.cssStyles||=[];for(let e of t)r.cssStyles.push(e)}}}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text,a=N(e=>{let t=new Set,n;return{nodeList:e.filter(e=>{if(e?.stmt)return e.stmt===`dir`&&(n=e.value),!1;if(typeof e!=`string`)return!1;let r=e.trim();return!r||t.has(r)?!1:(t.add(r),!0)}),dir:n}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir;r??=`subGraph`+this.subCount,i||=``,i=this.sanitizeText(i),this.subCount+=1;let l={id:r,nodes:o,title:i.trim(),classes:[],cssStyles:[],dir:s,labelType:this.sanitizeNodeLabelType(n?.type)};return P.info(`Adding`,l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(r,l),r}getSubGraphs(){return this.subGraphs}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n;let r=this.subGraphLookup.get(n);if(r)for(let e of t)r.classes.push(e)}}subgraphNodeCache(e){let t=new Set;for(let n of e)for(let e of n.nodes)t.add(e);return t}makeUniq(e,t){let n=this.subgraphNodeCache(t),r=[];return e.nodes.forEach((t,i)=>{n.has(t)?P.warn(`Entity '${t}' already belongs to another subgraph and will be ignored`):r.push(e.nodes[i])}),{nodes:r}}sanitizeText(e){return gs.sanitizeText(e,As())}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,Ss()}getData(){let e=[],t=[],n=As(),r=this.getSubGraphs(),i=new Map,a=new Map;for(let e=r.length-1;e>=0;e--){let t=r[e];t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}for(let t=r.length-1;t>=0;t--){let a=r[t];e.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssStyles:a.cssStyles,cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:n.look})}let o=new Set(r.map(e=>e.id)),s=0;for(let t of this.entities.keys()){if(o.has(t))continue;let n=this.entities.get(t);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=s++,e.push({...n,parentId:i.get(t),isGroup:!1}))}let l=0;for(let e of this.relationships){let r={id:Wm(e.entityA,e.entityB,{prefix:`id`,counter:l++}),type:`normal`,curve:`basis`,start:e.entityA,end:e.entityB,label:e.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:e.relSpec.cardB.toLowerCase(),arrowTypeEnd:e.relSpec.cardA.toLowerCase(),pattern:e.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.direction}}},r9e={},er(r9e,{draw:()=>i9e}),i9e=N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing er diagram (unified)`,t);let{securityLevel:i,er:a,layout:o}=As(),s=r.db.getData(),l=XN(t,i);s.type=r.type,s.layoutAlgorithm=JM(o),s.config.flowchart.nodeSpacing=a?.nodeSpacing||140,s.config.flowchart.rankSpacing=a?.rankSpacing||80,s.direction=r.db.getDirection();let{config:u}=s,{look:d}=u;s.markers=d===`neo`?[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],s.diagramId=t,await KM(s,l);let f=l.selectAll(`[id*="-background"]`);Array.from(f).length>0&&f.each(function(){let e=Qc(this),t=e.attr(`id`).replace(`-background`,``),n=l.select(`#${CSS.escape(t)}`);if(!n.empty()){let t=n.attr(`transform`);e.attr(`transform`,t)}}),Hm.insertTitle(l,`erDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),QN(l,8,`erDiagram`,a?.useMaxWidth??!0)},`draw`),a9e=N((e,t)=>{let n=yr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return vr(r,i,a,t)},`fade`),o9e=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=Mh(e.look),a=Ah(n),o=``;for(let e=0;e0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),23;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),25;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 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin(`block`),16;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin(`block_bq`);break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;case 32:return t.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin(`style`),47;case 36:return this.popState(),9;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin(`style`),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return t.yytext[0];case 82: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,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/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,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/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:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,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,74,75,76,77,80,81,82],inclusive:!0}}}})();function Ce(){this.yy={}}return N(Ce,`Parser`),Ce.prototype=Se,Se.Parser=Ce,new Ce})(),s9e.parser=s9e,c9e=s9e,l9e=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,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=ps,this.getAccTitle=ms,this.setAccDescription=hs,this.getAccDescription=gs,this.setDiagramTitle=_s,this.getDiagramTitle=vs,this.getConfig=N(()=>bs().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),this.addSubGraph=this.addSubGraph.bind(this)}static{N(this,`ErDB`)}addEntity(e,t=``){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,P.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:`erBox`,look:bs().look??`default`,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),P.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,t){let n=this.addEntity(e),r;for(r=t.length-1;r>=0;r--)t[r].keys||(t[r].keys=[]),t[r].comment||(t[r].comment=``),n.attributes.push(t[r]),P.debug(`Added attribute `,t[r].name)}addRelationship(e,t,n,r){let i;if(this.subGraphLookup.has(e))i=e;else{let t=this.addEntity(e);if(!t)return;i=t.id}let a;if(this.subGraphLookup.has(n))a=n;else{let e=this.addEntity(n);if(!e)return;a=e.id}let o={entityA:i,roleA:t,entityB:a,relSpec:r};this.relationships.push(o),P.debug(`Added new relationship :`,o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n),r=this.subGraphLookup.get(n);if(t){if(e)for(let n of t)e.cssStyles.push(n);if(r){r.cssStyles||=[];for(let e of t)r.cssStyles.push(e)}}}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text,a=N(e=>{let t=new Set,n;return{nodeList:e.filter(e=>{if(e?.stmt)return e.stmt===`dir`&&(n=e.value),!1;if(typeof e!=`string`)return!1;let r=e.trim();return!r||t.has(r)?!1:(t.add(r),!0)}),dir:n}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir;r??=`subGraph`+this.subCount,i||=``,i=this.sanitizeText(i),this.subCount+=1;let l={id:r,nodes:o,title:i.trim(),classes:[],cssStyles:[],dir:s,labelType:this.sanitizeNodeLabelType(n?.type)};return P.info(`Adding`,l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(r,l),r}getSubGraphs(){return this.subGraphs}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n;let r=this.subGraphLookup.get(n);if(r)for(let e of t)r.classes.push(e)}}subgraphNodeCache(e){let t=new Set;for(let n of e)for(let e of n.nodes)t.add(e);return t}makeUniq(e,t){let n=this.subgraphNodeCache(t),r=[];return e.nodes.forEach((t,i)=>{n.has(t)?P.warn(`Entity '${t}' already belongs to another subgraph and will be ignored`):r.push(e.nodes[i])}),{nodes:r}}sanitizeText(e){return cs.sanitizeText(e,bs())}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,fs()}getData(){let e=[],t=[],n=bs(),r=this.getSubGraphs(),i=new Map,a=new Map;for(let e=r.length-1;e>=0;e--){let t=r[e];t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}for(let t=r.length-1;t>=0;t--){let a=r[t];e.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssStyles:a.cssStyles,cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:n.look})}let o=new Set(r.map(e=>e.id)),s=0;for(let t of this.entities.keys()){if(o.has(t))continue;let n=this.entities.get(t);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=s++,e.push({...n,parentId:i.get(t),isGroup:!1}))}let l=0;for(let e of this.relationships){let r={id:Km(e.entityA,e.entityB,{prefix:`id`,counter:l++}),type:`normal`,curve:`basis`,start:e.entityA,end:e.entityB,label:e.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:e.relSpec.cardB.toLowerCase(),arrowTypeEnd:e.relSpec.cardA.toLowerCase(),pattern:e.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.direction}}},u9e={},Xn(u9e,{draw:()=>d9e}),d9e=N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing er diagram (unified)`,t);let{securityLevel:i,er:a,layout:o}=bs(),s=r.db.getData(),l=qN(t,i);s.type=r.type,s.layoutAlgorithm=HM(o),s.config.flowchart.nodeSpacing=a?.nodeSpacing||140,s.config.flowchart.rankSpacing=a?.rankSpacing||80,s.direction=r.db.getDirection();let{config:u}=s,{look:d}=u;s.markers=d===`neo`?[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],s.diagramId=t,await VM(s,l);let f=l.selectAll(`[id*="-background"]`);Array.from(f).length>0&&f.each(function(){let e=Bc(this),t=e.attr(`id`).replace(`-background`,``),n=l.select(`#${CSS.escape(t)}`);if(!n.empty()){let t=n.attr(`transform`);e.attr(`transform`,t)}}),Wm.insertTitle(l,`erDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),YN(l,8,`erDiagram`,a?.useMaxWidth??!0)},`draw`),f9e=N((e,t)=>{let n=mr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return pr(r,i,a,t)},`fade`),iP=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Uh(e.look),a=Vh(n),o=``;for(let e=0;e{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return` - ${o9e(e)} + `}return o},`genColor`),p9e={parser:c9e,get db(){return new l9e},renderer:u9e,styles:N(e=>{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return` + ${iP(e)} .entityBox { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; @@ -1444,14 +1446,14 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l } .labelBkg { - background-color: ${Oh.has(n)&&r?r:a9e(e.tertiaryColor,.5)}; + background-color: ${Wke.has(n)&&r?r:f9e(e.tertiaryColor,.5)}; } .edgeLabel { - background-color: ${Oh.has(n)&&r?r:e.edgeLabelBackground}; + background-color: ${Wke.has(n)&&r?r:e.edgeLabelBackground}; } .edgeLabel .label rect { - fill: ${Oh.has(n)&&r?r:e.edgeLabelBackground}; + fill: ${Wke.has(n)&&r?r:e.edgeLabelBackground}; } .edgeLabel .label text { fill: ${e.textColor}; @@ -1493,7 +1495,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l stroke-width: 1; } [data-look=neo].labelBkg { - background-color: ${a9e(e.tertiaryColor,.5)}; + background-color: ${f9e(e.tertiaryColor,.5)}; } .cluster rect { @@ -1509,91 +1511,91 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l .cluster-label text { fill: ${e.titleColor??e.textColor}; } -`},`getStyles`)}})),l9e,u9e=o((()=>{tr(),l9e=class{constructor(e){this.init=e,this.records=this.init()}static{N(this,`ImperativeState`)}reset(){this.records=this.init()}}}));function oP(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var sP=o((()=>{tr(),N(oP,`populateCommonDb`)}));function cP(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function lP(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function uP(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function dP(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function fP(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}function pP(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function d9e(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function f9e(e){return pP(e)&&typeof e.fullText==`string`}function p9e(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function mP(e){return!!e&&typeof e[Symbol.iterator]==`function`}function hP(...e){if(e.length===1){let t=e[0];if(t instanceof rL)return t;if(mP(t))return new rL(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new rL(()=>({index:0}),e=>e.index1?new rL(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex{cP(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&gP(r,t))}):cP(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&gP(r,t)))}function m9e(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function _P(e){let t=vP(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function vP(e){for(;e.$container;)e=e.$container;return e}function h9e(e){return lP(e)?e.ref?[e.ref]:[]:uP(e)?e.items.map(e=>e.ref):[]}function g9e(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new rL(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexg9e(e,t))}function bP(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!_9e(e,t.range)?new oL(e,()=>[]):new oL(e,e=>g9e(e,t),{includeRoot:!0})}function _9e(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?K9e(n,t):!1}function xP(e){return new rL(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexpP(e)?e.content:[],{includeRoot:!0})}function H9e(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function U9e(e){return{start:{line:e.startLine-1,character:e.startColumn-1},end:{line:e.endLine-1,character:e.endColumn}}}function W9e(e){let{startOffset:t,endOffset:n}=e;return typeof t==`number`&&Number.isFinite(t)&&t>=0&&typeof n==`number`&&Number.isFinite(n)&&n>=t}function NP(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}function G9e(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return GL.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.lineGL.After}function q9e(e,t){if(e){let n=Y9e(e,!0);if(n&&J9e(n,t))return n;if(f9e(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(J9e(n,t))return n}}}}function J9e(e,t){return d9e(e)&&t.includes(e.tokenType.name)}function Y9e(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}function PP(e,t=`Error: Got unexpected value.`){throw Error(typeof t==`string`?t:t())}function FP(e){return e.charCodeAt(0)}function X9e(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function IP(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function LP(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function Z9e(){throw Error(`Internal Error - Should never get here!`)}function Q9e(e){return e.type===`Character`}function $9e(e){try{return typeof e==`string`&&(e=new RegExp(e)),e=e.toString(),Zct.reset(e),Zct.visit(Yct.pattern(e)),Zct.multiline}catch{return!1}}function eet(e){let t=typeof e==`string`?new RegExp(e):e;return Qct.some(e=>t.test(e))}function tet(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function net(e,t){let n=ret(e),r=t.match(n);return!!r&&r[0].length>0}function ret(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function o(t){e+=n.substr(r,t),r+=t}Y(o,`appendRaw`);function s(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for(Y(s,`appendOptional`);r`,r)-r+1);break;default:s(2)}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],s(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:o(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?o(a[0].length):s(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:o(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`}}else o(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:s(1)}return e}return Y(i,`process`),new RegExp(i(),e.flags)}function iet(e){return e.rules.find(e=>AP(e)&&e.entry)}function RP(e){return e.rules.filter(e=>MP(e)&&e.hidden)}function aet(e,t){let n=new Set,r=iet(e);if(!r)return new Set(e.rules);let i=[r].concat(RP(e));for(let e of i)oet(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||MP(t)&&t.hidden)&&a.add(t);return a}function oet(e,t,n){t.add(e.name),yP(e).forEach(e=>{if(jP(e)||n&&I9e(e)){let r=e.rule.ref;r&&!t.has(r.name)&&oet(r,t,n)}})}function set(e){if(e.terminal)return e.terminal;if(e.type.ref)return het(e.type.ref)?.terminal}function cet(e){return e.hidden&&!eet(Cet(e))}function uet(e,t){return!e||!t?[]:fet(e,t,e.astNode,!0)}function det(e,t,n){if(!e||!t)return;let r=fet(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function fet(e,t,n,r){if(!r){let n=m9e(e.grammarSource,CP);if(n&&n.feature===t)return[e]}return pP(e)&&e.astNode===n?e.content.flatMap(e=>fet(e,t,n,!1)):[]}function pet(e,t,n){if(!e)return;let r=met(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function met(e,t,n){if(e.astNode!==n)return[];if(OP(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=V9e(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?OP(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}function zP(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=m9e(e.grammarSource,CP);if(t)return t;e=e.container}}function het(e){let t=e;return D9e(t)&&(x9e(t.$container)?t=t.$container.$container:SP(t.$container)?t=t.$container:PP(t.$container)),get(e,t,new Map)}function get(e,t,n){function r(t,r){let i;return m9e(t,CP)||(i=get(r,r,n)),n.set(e,i),i}if(Y(r,`go`),n.has(e))return n.get(e);n.set(e,void 0);for(let i of yP(t))if(CP(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(jP(i)&&AP(i.rule.ref))return r(i,i.rule.ref);else if(N9e(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}function _et(e){return vet(e,new Set)}function vet(e,t){if(t.has(e))return!0;t.add(e);for(let n of yP(e))if(jP(n)){if(!n.rule.ref||AP(n.rule.ref)&&!vet(n.rule.ref,t)||DP(n.rule.ref))return!1}else if(CP(n))return!1;else if(x9e(n))return!1;return!!e.definition}function yet(e){if(!MP(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function BP(e){if(SP(e))return AP(e)&&_et(e)?e.name:yet(e)??e.name;if(O9e(e)||L9e(e)||M9e(e))return e.name;if(x9e(e)){let t=bet(e);if(t)return t}else if(D9e(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}function bet(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return BP(e.type.ref)}function xet(e){return MP(e)?e.type?.name??`string`:yet(e)??e.name}function Cet(e){let t={s:!1,i:!1,u:!1},n=VP(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}function VP(e,t){if(P9e(e))return HP(e);if(F9e(e))return wet(e);if(C9e(e))return Det(e);if(I9e(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return UP(VP(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(kP(e))return Eet(e);if(z9e(e))return Tet(e);if(j9e(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),UP(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}if(B9e(e))return UP(JL,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function HP(e){return UP(e.elements.map(e=>VP(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function wet(e){return UP(e.elements.map(e=>VP(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Tet(e){return UP(`${JL}*?${VP(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Eet(e){return UP(`(?!${VP(e.terminal)})${JL}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Det(e){return e.right?UP(`[${J(e.left)}-${J(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):UP(J(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function J(e){return tet(e.value)}function UP(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function Oet(e){let t=[],n=e.Grammar;for(let e of n.rules)MP(e)&&cet(e)&&$9e(Cet(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:Bct}}function ket(e){console&&console.error&&console.error(`Error: ${e}`)}function Aet(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function jet(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}function Met(e){function t(){}Y(t,`FakeConstructor`),t.prototype=e;let n=new t;function r(){return typeof n.bar}return Y(r,`fakeAccess`),r(),r(),e}function Net(e){return Pet(e)?e.LABEL:e.name}function Pet(e){return typeof e.LABEL==`string`&&e.LABEL!==``}function Fet(e){return e.map(Iet)}function Iet(e){function t(e){return e.map(Iet)}if(Y(t,`convertDefinition`),e instanceof XL){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}if(e instanceof QL)return{type:`Alternative`,definition:t(e.definition)};if(e instanceof $L)return{type:`Option`,idx:e.idx,definition:t(e.definition)};if(e instanceof eR)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};if(e instanceof tR)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:Iet(new aR({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof rR)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:Iet(new aR({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof nR)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};if(e instanceof iR)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};if(e instanceof aR){let t={type:`Terminal`,name:e.terminalType.name,label:Net(e.terminalType),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}if(e instanceof ZL)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error(`non exhaustive match`)}function WP(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function Let(e){return e instanceof QL||e instanceof $L||e instanceof nR||e instanceof eR||e instanceof tR||e instanceof rR||e instanceof aR||e instanceof ZL}function Ret(e,t=[]){return e instanceof $L||e instanceof nR||e instanceof rR?!0:e instanceof iR?e.definition.some(e=>Ret(e,t)):e instanceof XL&&t.includes(e)?!1:e instanceof YL&&(e instanceof XL&&t.push(e),e.definition.every(e=>Ret(e,t)))}function zet(e){return e instanceof iR}function GP(e){if(e instanceof XL)return`SUBRULE`;if(e instanceof $L)return`OPTION`;if(e instanceof iR)return`OR`;if(e instanceof eR)return`AT_LEAST_ONE`;if(e instanceof tR)return`AT_LEAST_ONE_SEP`;if(e instanceof rR)return`MANY_SEP`;if(e instanceof nR)return`MANY`;if(e instanceof aR)return`CONSUME`;throw Error(`non exhaustive match`)}function Bet(e,t,n){return[new $L({definition:[new aR({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function KP(e){if(e instanceof XL)return KP(e.referencedRule);if(e instanceof aR)return Uet(e);if(Let(e))return Vet(e);if(zet(e))return Het(e);throw Error(`non exhaustive match`)}function Vet(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=Ret(a),t=t.concat(KP(a)),r+=1,i=n.length>r;return[...new Set(t)]}function Het(e){let t=e.definition.map(e=>KP(e));return[...new Set(t.flat())]}function Uet(e){return[e.terminalType]}function Wet(e){let t={};return e.forEach(e=>{let n=new elt(e).startWalking();Object.assign(t,n)}),t}function Get(e,t){return e.name+t+$ct}function Ket(e){let t=e.toString();if(tlt.hasOwnProperty(t))return tlt[t];{let e=nlt.pattern(t);return tlt[t]=e,e}}function qet(){tlt={}}function Jet(e,t=!1){try{let t=Ket(e);return Yet(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===rlt)t&&Aet(`${ilt} Unable to optimize: < ${e.toString()} > +`},`getStyles`)}})),h9e,aP=o((()=>{Zn(),h9e=class{constructor(e){this.init=e,this.records=this.init()}static{N(this,`ImperativeState`)}reset(){this.records=this.init()}}}));function oP(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var sP=o((()=>{Zn(),N(oP,`populateCommonDb`)}));function cP(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function lP(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function uP(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function g9e(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function dP(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}function fP(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function _9e(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function v9e(e){return fP(e)&&typeof e.fullText==`string`}function y9e(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function pP(e){return!!e&&typeof e[Symbol.iterator]==`function`}function mP(...e){if(e.length===1){let t=e[0];if(t instanceof rL)return t;if(pP(t))return new rL(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new rL(()=>({index:0}),e=>e.index1?new rL(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex{cP(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&b9e(r,t))}):cP(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&b9e(r,t)))}function hP(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function gP(e){let t=x9e(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function x9e(e){for(;e.$container;)e=e.$container;return e}function S9e(e){return lP(e)?e.ref?[e.ref]:[]:uP(e)?e.items.map(e=>e.ref):[]}function _P(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new rL(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex_P(e,t))}function yP(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!bP(e,t.range)?new aL(e,()=>[]):new aL(e,e=>_P(e,t),{includeRoot:!0})}function bP(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?Z9e(n,t):!1}function C9e(e){return new rL(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexfP(e)?e.content:[],{includeRoot:!0})}function K9e(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function q9e(e){return{start:{line:e.startLine-1,character:e.startColumn-1},end:{line:e.endLine-1,character:e.endColumn}}}function J9e(e){let{startOffset:t,endOffset:n}=e;return typeof t==`number`&&Number.isFinite(t)&&t>=0&&typeof n==`number`&&Number.isFinite(n)&&n>=t}function Y9e(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}function X9e(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return HL.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.lineHL.After}function Q9e(e,t){if(e){let n=PP(e,!0);if(n&&$9e(n,t))return n;if(v9e(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if($9e(n,t))return n}}}}function $9e(e,t){return _9e(e)&&t.includes(e.tokenType.name)}function PP(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}function FP(e,t=`Error: Got unexpected value.`){throw Error(typeof t==`string`?t:t())}function IP(e){return e.charCodeAt(0)}function eet(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function LP(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function RP(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function zP(){throw Error(`Internal Error - Should never get here!`)}function tet(e){return e.type===`Character`}function net(e){try{return typeof e==`string`&&(e=new RegExp(e)),e=e.toString(),alt.reset(e),alt.visit(rlt.pattern(e)),alt.multiline}catch{return!1}}function BP(e){let t=typeof e==`string`?new RegExp(e):e;return olt.some(e=>t.test(e))}function ret(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function iet(e,t){let n=aet(e),r=t.match(n);return!!r&&r[0].length>0}function aet(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function o(t){e+=n.substr(r,t),r+=t}Y(o,`appendRaw`);function s(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for(Y(s,`appendOptional`);r`,r)-r+1);break;default:s(2)}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],s(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:o(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?o(a[0].length):s(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:o(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`}}else o(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:s(1)}return e}return Y(i,`process`),new RegExp(i(),e.flags)}function oet(e){return e.rules.find(e=>AP(e)&&e.entry)}function set(e){return e.rules.filter(e=>MP(e)&&e.hidden)}function cet(e,t){let n=new Set,r=oet(e);if(!r)return new Set(e.rules);let i=[r].concat(set(e));for(let e of i)uet(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||MP(t)&&t.hidden)&&a.add(t);return a}function uet(e,t,n){t.add(e.name),vP(e).forEach(e=>{if(jP(e)||n&&V9e(e)){let r=e.rule.ref;r&&!t.has(r.name)&&uet(r,t,n)}})}function det(e){if(e.terminal)return e.terminal;if(e.type.ref)return _et(e.type.ref)?.terminal}function fet(e){return e.hidden&&!BP(Tet(e))}function VP(e,t){return!e||!t?[]:pet(e,t,e.astNode,!0)}function HP(e,t,n){if(!e||!t)return;let r=pet(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function pet(e,t,n,r){if(!r){let n=hP(e.grammarSource,TP);if(n&&n.feature===t)return[e]}return fP(e)&&e.astNode===n?e.content.flatMap(e=>pet(e,t,n,!1)):[]}function met(e,t,n){if(!e)return;let r=het(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function het(e,t,n){if(e.astNode!==n)return[];if(kP(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=G9e(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?kP(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}function get(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=hP(e.grammarSource,TP);if(t)return t;e=e.container}}function _et(e){let t=e;return j9e(t)&&(CP(t.$container)?t=t.$container.$container:SP(t.$container)?t=t.$container:FP(t.$container)),vet(e,t,new Map)}function vet(e,t,n){function r(t,r){let i;return hP(t,TP)||(i=vet(r,r,n)),n.set(e,i),i}if(Y(r,`go`),n.has(e))return n.get(e);n.set(e,void 0);for(let i of vP(t))if(TP(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(jP(i)&&AP(i.rule.ref))return r(i,i.rule.ref);else if(R9e(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}function yet(e){return bet(e,new Set)}function bet(e,t){if(t.has(e))return!0;t.add(e);for(let n of vP(e))if(jP(n)){if(!n.rule.ref||AP(n.rule.ref)&&!bet(n.rule.ref,t)||M9e(n.rule.ref))return!1}else if(TP(n))return!1;else if(CP(n))return!1;return!!e.definition}function xet(e){if(!MP(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function UP(e){if(SP(e))return AP(e)&&yet(e)?e.name:xet(e)??e.name;if(OP(e)||H9e(e)||L9e(e))return e.name;if(CP(e)){let t=Cet(e);if(t)return t}else if(j9e(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}function Cet(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return UP(e.type.ref)}function wet(e){return MP(e)?e.type?.name??`string`:xet(e)??e.name}function Tet(e){let t={s:!1,i:!1,u:!1},n=WP(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}function WP(e,t){if(z9e(e))return J(e);if(B9e(e))return GP(e);if(D9e(e))return Oet(e);if(V9e(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return KP(WP(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(N9e(e))return Det(e);if(W9e(e))return Eet(e);if(I9e(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),KP(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}if(NP(e))return KP(slt,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function J(e){return KP(e.elements.map(e=>WP(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function GP(e){return KP(e.elements.map(e=>WP(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Eet(e){return KP(`${slt}*?${WP(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Det(e){return KP(`(?!${WP(e.terminal)})${slt}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Oet(e){return e.right?KP(`[${ket(e.left)}-${ket(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):KP(ket(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function ket(e){return ret(e.value)}function KP(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function Aet(e){let t=[],n=e.Grammar;for(let e of n.rules)MP(e)&&fet(e)&&net(Tet(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:Jct}}function qP(e){console&&console.error&&console.error(`Error: ${e}`)}function jet(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function Met(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}function Net(e){function t(){}Y(t,`FakeConstructor`),t.prototype=e;let n=new t;function r(){return typeof n.bar}return Y(r,`fakeAccess`),r(),r(),e}function Pet(e){return Fet(e)?e.LABEL:e.name}function Fet(e){return typeof e.LABEL==`string`&&e.LABEL!==``}function Iet(e){return e.map(Let)}function Let(e){function t(e){return e.map(Let)}if(Y(t,`convertDefinition`),e instanceof KL){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}if(e instanceof JL)return{type:`Alternative`,definition:t(e.definition)};if(e instanceof YL)return{type:`Option`,idx:e.idx,definition:t(e.definition)};if(e instanceof XL)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};if(e instanceof ZL)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:Let(new tR({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof $L)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:Let(new tR({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof QL)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};if(e instanceof eR)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};if(e instanceof tR){let t={type:`Terminal`,name:e.terminalType.name,label:Pet(e.terminalType),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}if(e instanceof qL)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error(`non exhaustive match`)}function JP(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function Ret(e){return e instanceof JL||e instanceof YL||e instanceof QL||e instanceof XL||e instanceof ZL||e instanceof $L||e instanceof tR||e instanceof qL}function YP(e,t=[]){return e instanceof YL||e instanceof QL||e instanceof $L?!0:e instanceof eR?e.definition.some(e=>YP(e,t)):e instanceof KL&&t.includes(e)?!1:e instanceof GL&&(e instanceof KL&&t.push(e),e.definition.every(e=>YP(e,t)))}function zet(e){return e instanceof eR}function XP(e){if(e instanceof KL)return`SUBRULE`;if(e instanceof YL)return`OPTION`;if(e instanceof eR)return`OR`;if(e instanceof XL)return`AT_LEAST_ONE`;if(e instanceof ZL)return`AT_LEAST_ONE_SEP`;if(e instanceof $L)return`MANY_SEP`;if(e instanceof QL)return`MANY`;if(e instanceof tR)return`CONSUME`;throw Error(`non exhaustive match`)}function Bet(e,t,n){return[new YL({definition:[new tR({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function ZP(e){if(e instanceof KL)return ZP(e.referencedRule);if(e instanceof tR)return Uet(e);if(Ret(e))return Vet(e);if(zet(e))return Het(e);throw Error(`non exhaustive match`)}function Vet(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=YP(a),t=t.concat(ZP(a)),r+=1,i=n.length>r;return[...new Set(t)]}function Het(e){let t=e.definition.map(e=>ZP(e));return[...new Set(t.flat())]}function Uet(e){return[e.terminalType]}function Wet(e){let t={};return e.forEach(e=>{let n=new llt(e).startWalking();Object.assign(t,n)}),t}function Get(e,t){return e.name+t+clt}function QP(e){let t=e.toString();if(iR.hasOwnProperty(t))return iR[t];{let e=ult.pattern(t);return iR[t]=e,e}}function Ket(){iR={}}function qet(e,t=!1){try{let t=QP(e);return Jet(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===dlt)t&&jet(`${aR} Unable to optimize: < ${e.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=` This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),ket(`${ilt} + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),qP(`${aR} Failed parsing: < ${e.toString()} > Using the @chevrotain/regexp-to-ast library - Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function Yet(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)Xet(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)Xet(e,t,n);else{for(let e=r.from;e<=r.to&&e=uR){let e=r.from>=uR?r.from:uR,n=r.to,i=YP(e),a=YP(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:Yet(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&$et(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return Object.values(t)}function Xet(e,t,n){let r=YP(e);t[r]=r,n===!0&&Zet(e,t)}function Zet(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=YP(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=YP(e.charCodeAt(0));t[n]=n}}}function Qet(e,t){return e.value.find(e=>{if(typeof e==`number`)return t.includes(e);{let n=e;return t.find(e=>n.from<=e&&e<=n.to)!==void 0}})}function $et(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Array.isArray(e.value)?e.value.every($et):$et(e.value):!1}function ett(e,t){if(t instanceof RegExp){let n=Ket(t),r=new alt(e);return r.visit(n),r.found}for(let n of t){let t=n.charCodeAt(0);if(e.includes(t))return!0}return!1}function ttt(e,t){t=Object.assign({safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` -`],tracer:Y((e,t)=>t(),`tracer`)},t);let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{Ttt()});let r;n(`Reject Lexer.NA`,()=>{r=e.filter(e=>e[cR]!==mR.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=r.map(e=>{let t=e[cR];if(t instanceof RegExp){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&![`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`].includes(e[1])?e[1]:gtt(t)}if(typeof t==`function`)return i=!0,{exec:t};if(typeof t==`object`)return i=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return gtt(new RegExp(e))}}throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=r.map(e=>e.tokenTypeIdx),s=r.map(e=>{let t=e.GROUP;if(t!==mR.SKIPPED){if(typeof t==`string`)return t;if(t===void 0)return!1;throw Error(`non exhaustive match`)}}),l=r.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>r.indexOf(e)):[r.indexOf(t)]}),u=r.map(e=>e.PUSH_MODE),d=r.map(e=>Object.hasOwn(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=Ctt(t.lineTerminatorCharacters);f=r.map(e=>!1),t.positionTracking!==`onlyOffset`&&(f=r.map(t=>Object.hasOwn(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:xtt(t,e)===!1&&ett(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=r.map(ytt),m=a.map(btt),h=r.reduce((e,t)=>{let n=t.GROUP;return typeof n==`string`&&n!==mR.SKIPPED&&(e[n]=[]),e},{}),g=a.map((e,t)=>{let n=s[t]===void 0&&l[t]===void 0?ntt(r[t].PATTERN):void 0;return{pattern:a[t],asciiClass:n,longerAlt:l[t],canLineTerminator:f[t],matchType:n===void 0?m[t]===!1?p[t]?clt:llt:slt:ult,short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}})});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=r.reduce((e,n,r)=>{if(typeof n.PATTERN==`string`)wtt(e,YP(n.PATTERN.charCodeAt(0)),g[r]);else if(Array.isArray(n.START_CHARS_HINT)){let t;n.START_CHARS_HINT.forEach(n=>{let i=YP(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,wtt(e,i,g[r]))})}else if(n.PATTERN instanceof RegExp){if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&ket(`${ilt} Unable to analyze < ${n.PATTERN.toString()} > pattern. + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function Jet(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)Yet(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)Yet(e,t,n);else{for(let e=r.from;e<=r.to&&e=uR){let e=r.from>=uR?r.from:uR,n=r.to,i=iF(e),a=iF(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:Jet(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&Zet(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return Object.values(t)}function Yet(e,t,n){let r=iF(e);t[r]=r,n===!0&&Xet(e,t)}function Xet(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=iF(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=iF(e.charCodeAt(0));t[n]=n}}}function $P(e,t){return e.value.find(e=>{if(typeof e==`number`)return t.includes(e);{let n=e;return t.find(e=>n.from<=e&&e<=n.to)!==void 0}})}function Zet(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Array.isArray(e.value)?e.value.every(Zet):Zet(e.value):!1}function Qet(e,t){if(t instanceof RegExp){let n=QP(t),r=new flt(e);return r.visit(n),r.found}for(let n of t){let t=n.charCodeAt(0);if(e.includes(t))return!0}return!1}function $et(e,t){t=Object.assign({safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` +`],tracer:Y((e,t)=>t(),`tracer`)},t);let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{aF()});let r;n(`Reject Lexer.NA`,()=>{r=e.filter(e=>e[oR]!==pR.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=r.map(e=>{let t=e[oR];if(t instanceof RegExp){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&![`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`].includes(e[1])?e[1]:mtt(t)}if(typeof t==`function`)return i=!0,{exec:t};if(typeof t==`object`)return i=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return mtt(new RegExp(e))}}throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=r.map(e=>e.tokenTypeIdx),s=r.map(e=>{let t=e.GROUP;if(t!==pR.SKIPPED){if(typeof t==`string`)return t;if(t===void 0)return!1;throw Error(`non exhaustive match`)}}),l=r.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>r.indexOf(e)):[r.indexOf(t)]}),u=r.map(e=>e.PUSH_MODE),d=r.map(e=>Object.hasOwn(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=nF(t.lineTerminatorCharacters);f=r.map(e=>!1),t.positionTracking!==`onlyOffset`&&(f=r.map(t=>Object.hasOwn(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:ytt(t,e)===!1&&Qet(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=r.map(_tt),m=a.map(vtt),h=r.reduce((e,t)=>{let n=t.GROUP;return typeof n==`string`&&n!==pR.SKIPPED&&(e[n]=[]),e},{}),g=a.map((e,t)=>{let n=s[t]===void 0&&l[t]===void 0?eF(r[t].PATTERN):void 0;return{pattern:a[t],asciiClass:n,longerAlt:l[t],canLineTerminator:f[t],matchType:n===void 0?m[t]===!1?p[t]?mlt:hlt:cR:lR,short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}})});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=r.reduce((e,n,r)=>{if(typeof n.PATTERN==`string`)rF(e,iF(n.PATTERN.charCodeAt(0)),g[r]);else if(Array.isArray(n.START_CHARS_HINT)){let t;n.START_CHARS_HINT.forEach(n=>{let i=iF(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,rF(e,i,g[r]))})}else if(n.PATTERN instanceof RegExp){if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&qP(`${aR} Unable to analyze < ${n.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{let i=Jet(n.PATTERN,t.ensureOptimizations);i.length===0&&(_=!1),i.forEach(t=>{wtt(e,t,g[r])})}}else t.ensureOptimizations&&ket(`${ilt} TokenType: <${n.name}> is using a custom token pattern without providing parameter. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=qet(n.PATTERN,t.ensureOptimizations);i.length===0&&(_=!1),i.forEach(t=>{rF(e,t,g[r])})}}else t.ensureOptimizations&&qP(`${aR} TokenType: <${n.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`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}function ntt(e){if(!(e instanceof RegExp)||e.flags!==``)return;let t;try{t=Ket(e)}catch{return}if(t.value.value.length!==1||t.value.value[0].value.length!==1)return;let n=t.value.value[0].value[0],r;for(;n.type===`Group`;){if(n.capturing||n.quantifier!==void 0&&r!==void 0||n.value.value.length!==1||n.value.value[0].value.length!==1)return;r=n.quantifier??r,n=n.value.value[0].value[0]}if(n.type!==`Set`||n.complement||n.quantifier!==void 0&&r!==void 0||(r=n.quantifier??r,r?.atLeast!==1||r.atMost!==1/0||!r.greedy))return;let i=new Uint8Array(128);for(let e of n.value){let t=typeof e==`number`?e:e.from,n=typeof e==`number`?e:e.to;if(t<0||n>=i.length)return;i.fill(1,t,n+1)}return i}function rtt(e,t){let n=[],r=att(e);n=n.concat(r.errors);let i=ott(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(itt(a)),n=n.concat(utt(a)),n=n.concat(dtt(a,t)),n=n.concat(ftt(a)),n}function itt(e){let t=[],n=e.filter(e=>e[cR]instanceof RegExp);return t=t.concat(qP(n)),t=t.concat(stt(n)),t=t.concat(ctt(n)),t=t.concat(ltt(n)),t=t.concat(JP(n)),t}function att(e){let t=e.filter(e=>!Object.hasOwn(e,cR));return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:fR.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function ott(e){let t=e.filter(e=>{let t=e[cR];return!(t instanceof RegExp)&&typeof t!=`function`&&!Object.hasOwn(t,`exec`)&&typeof t!=`string`});return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:fR.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function qP(e){class t extends qL{static{Y(this,`EndAnchorFinder`)}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=Ket(n),r=new t;return r.visit(e),r.found}catch{return dlt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}function eF(e){if(!(e instanceof RegExp)||e.flags!==``)return;let t;try{t=QP(e)}catch{return}if(t.value.value.length!==1||t.value.value[0].value.length!==1)return;let n=t.value.value[0].value[0],r;for(;n.type===`Group`;){if(n.capturing||n.quantifier!==void 0&&r!==void 0||n.value.value.length!==1||n.value.value[0].value.length!==1)return;r=n.quantifier??r,n=n.value.value[0].value[0]}if(n.type!==`Set`||n.complement||n.quantifier!==void 0&&r!==void 0||(r=n.quantifier??r,r?.atLeast!==1||r.atMost!==1/0||!r.greedy))return;let i=new Uint8Array(128);for(let e of n.value){let t=typeof e==`number`?e:e.from,n=typeof e==`number`?e:e.to;if(t<0||n>=i.length)return;i.fill(1,t,n+1)}return i}function tF(e,t){let n=[],r=ttt(e);n=n.concat(r.errors);let i=ntt(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(ett(a)),n=n.concat(ctt(a)),n=n.concat(ltt(a,t)),n=n.concat(utt(a)),n}function ett(e){let t=[],n=e.filter(e=>e[oR]instanceof RegExp);return t=t.concat(rtt(n)),t=t.concat(att(n)),t=t.concat(ott(n)),t=t.concat(stt(n)),t=t.concat(itt(n)),t}function ttt(e){let t=e.filter(e=>!Object.hasOwn(e,oR));return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:dR.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function ntt(e){let t=e.filter(e=>{let t=e[oR];return!(t instanceof RegExp)&&typeof t!=`function`&&!Object.hasOwn(t,`exec`)&&typeof t!=`string`});return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:dR.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function rtt(e){class t extends nlt{static{Y(this,`EndAnchorFinder`)}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=QP(n),r=new t;return r.visit(e),r.found}catch{return glt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:fR.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function JP(e){return e.filter(e=>e.PATTERN.test(``)).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:fR.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function stt(e){class t extends qL{static{Y(this,`StartAnchorFinder`)}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=Ket(n),r=new t;return r.visit(e),r.found}catch{return flt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dR.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function itt(e){return e.filter(e=>e.PATTERN.test(``)).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:dR.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function att(e){class t extends nlt{static{Y(this,`StartAnchorFinder`)}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=QP(n),r=new t;return r.visit(e),r.found}catch{return _lt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:fR.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ctt(e){return e.filter(e=>{let t=e[cR];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:fR.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function ltt(e){let t=[],n=e.map(n=>e.reduce((e,r)=>n.PATTERN.source===r.PATTERN.source&&!t.includes(r)&&r.PATTERN!==mR.NA?(t.push(r),e.push(r),e):e,[]));return n=n.filter(Boolean),n.filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name);return{message:`The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:fR.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function utt(e){return e.filter(e=>{if(!Object.hasOwn(e,`GROUP`))return!1;let t=e.GROUP;return t!==mR.SKIPPED&&t!==mR.NA&&typeof t!=`string`}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:fR.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function dtt(e,t){return e.filter(e=>e.PUSH_MODE!==void 0&&!t.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:fR.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function ftt(e){let t=[],n=e.reduce((e,t,n)=>{let r=t.PATTERN;return r===mR.NA||(typeof r==`string`?e.push({str:r,idx:n,tokenType:t}):r instanceof RegExp&&mtt(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return e.forEach((e,r)=>{n.forEach(({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dR.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ott(e){return e.filter(e=>{let t=e[oR];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:dR.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function stt(e){let t=[],n=e.map(n=>e.reduce((e,r)=>n.PATTERN.source===r.PATTERN.source&&!t.includes(r)&&r.PATTERN!==pR.NA?(t.push(r),e.push(r),e):e,[]));return n=n.filter(Boolean),n.filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name);return{message:`The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:dR.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function ctt(e){return e.filter(e=>{if(!Object.hasOwn(e,`GROUP`))return!1;let t=e.GROUP;return t!==pR.SKIPPED&&t!==pR.NA&&typeof t!=`string`}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:dR.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function ltt(e,t){return e.filter(e=>e.PUSH_MODE!==void 0&&!t.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:dR.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function utt(e){let t=[],n=e.reduce((e,t,n)=>{let r=t.PATTERN;return r===pR.NA||(typeof r==`string`?e.push({str:r,idx:n,tokenType:t}):r instanceof RegExp&&ftt(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return e.forEach((e,r)=>{n.forEach(({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched. Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition. -See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:fR.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function ptt(e,t){if(t instanceof RegExp){if(htt(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(typeof t==`function`)return t(e,0,[],{});if(Object.hasOwn(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}function mtt(e){return[`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`].find(t=>e.source.indexOf(t)!==-1)===void 0}function htt(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition -`,type:fR.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,olt)||r.push({message:`A MultiMode Lexer cannot be initialized without a <`+olt+`> property in its definition -`,type:fR.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,olt)&&Object.hasOwn(e,lR)&&!Object.hasOwn(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${lR}: <${e.defaultMode}>which does not exist -`,type:fR.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,olt)&&Object.keys(e.modes).forEach(t=>{let n=e.modes[t];n.forEach((e,i)=>{e===void 0?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}> -`,type:fR.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,`LONGER_ALT`)&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(i=>{i!==void 0&&!n.includes(i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${e.name}> outside of mode <${t}> -`,type:fR.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function vtt(e,t,n){let r=[],i=!1,a=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[cR]!==mR.NA),o=Ctt(n);return t&&a.forEach(e=>{let t=xtt(e,o);if(t!==!1){let n={message:Stt(e,t),type:t.issue,tokenType:e};r.push(n)}else Object.hasOwn(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):ett(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:dR.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function dtt(e,t){if(t instanceof RegExp){if(ptt(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(typeof t==`function`)return t(e,0,[],{});if(Object.hasOwn(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}function ftt(e){return[`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`].find(t=>e.source.indexOf(t)!==-1)===void 0}function ptt(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:dR.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,plt)||r.push({message:`A MultiMode Lexer cannot be initialized without a <`+plt+`> property in its definition +`,type:dR.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,plt)&&Object.hasOwn(e,sR)&&!Object.hasOwn(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${sR}: <${e.defaultMode}>which does not exist +`,type:dR.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,plt)&&Object.keys(e.modes).forEach(t=>{let n=e.modes[t];n.forEach((e,i)=>{e===void 0?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}> +`,type:dR.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,`LONGER_ALT`)&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(i=>{i!==void 0&&!n.includes(i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${e.name}> outside of mode <${t}> +`,type:dR.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function gtt(e,t,n){let r=[],i=!1,a=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[oR]!==pR.NA),o=nF(n);return t&&a.forEach(e=>{let t=ytt(e,o);if(t!==!1){let n={message:btt(e,t),type:t.issue,tokenType:e};r.push(n)}else Object.hasOwn(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):Qet(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. 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:fR.NO_LINE_BREAKS_FLAGS}),r}function ytt(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if(typeof t==`function`||Object.hasOwn(t,`exec`))return!0;if(typeof t==`string`)return!1;throw Error(`non exhaustive match`)}function btt(e){return typeof e==`string`&&e.length===1&&e.charCodeAt(0)}function xtt(e,t){if(Object.hasOwn(e,`LINE_BREAKS`))return!1;if(e.PATTERN instanceof RegExp){try{ett(t,e.PATTERN)}catch(e){return{issue:fR.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(typeof e.PATTERN==`string`)return!1;if(ytt(e))return{issue:fR.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function Stt(e,t){if(t.issue===fR.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. + for details.`,type:dR.NO_LINE_BREAKS_FLAGS}),r}function _tt(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if(typeof t==`function`||Object.hasOwn(t,`exec`))return!0;if(typeof t==`string`)return!1;throw Error(`non exhaustive match`)}function vtt(e){return typeof e==`string`&&e.length===1&&e.charCodeAt(0)}function ytt(e,t){if(Object.hasOwn(e,`LINE_BREAKS`))return!1;if(e.PATTERN instanceof RegExp){try{Qet(t,e.PATTERN)}catch(e){return{issue:dR.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(typeof e.PATTERN==`string`)return!1;if(_tt(e))return{issue:dR.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function btt(e,t){if(t.issue===dR.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. The problem is in the <${e.name}> Token Type Root cause: ${t.errMsg}. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===fR.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===dR.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. The problem is in the <${e.name}> Token Type - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function Ctt(e){return e.map(e=>typeof e==`string`?e.charCodeAt(0):e)}function wtt(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function YP(e){return e255?255+~~(e/255):e}}function XP(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx||t.isParent===!0&&t.categoryMatchesMap[n]===!0}function ZP(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function QP(e){let t=Ett(e);$P(t),Dtt(t),eF(t),t.forEach(e=>{e.isParent=e.categoryMatches.length>0})}function Ett(e){let t=[...e],n=e,r=!0;for(;r;){n=n.map(e=>e.CATEGORIES).flat().filter(Boolean);let e=n.filter(e=>!t.includes(e));t=t.concat(e),e.length===0?r=!1:n=e}return t}function $P(e){e.forEach(e=>{ktt(e)||(hlt[mlt]=e,e.tokenTypeIdx=mlt++),tF(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),tF(e)||(e.CATEGORIES=[]),Att(e)||(e.categoryMatches=[]),jtt(e)||(e.categoryMatchesMap={})})}function eF(e){e.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(hlt[t].tokenTypeIdx)})})}function Dtt(e){e.forEach(e=>{Ott([],e)})}function Ott(e,t){e.forEach(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(n=>{let r=e.concat(t);r.includes(n)||Ott(r,n)})}function ktt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function tF(e){return Object.hasOwn(e??{},`CATEGORIES`)}function Att(e){return Object.hasOwn(e??{},`categoryMatches`)}function jtt(e){return Object.hasOwn(e??{},`categoryMatchesMap`)}function Mtt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function nF(e){return Ntt(e)?e.LABEL:e.name}function Ntt(e){return typeof e.LABEL==`string`&&e.LABEL!==``}function Ptt(e){return Ftt(e)}function Ftt(e){let t=e.pattern,n={};if(n.name=e.name,t!==void 0&&(n.PATTERN=t),Object.hasOwn(e,_lt))throw`The parent property is no longer supported. -See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Object.hasOwn(e,vlt)&&(n.CATEGORIES=e[vlt]),QP([n]),Object.hasOwn(e,hR)&&(n.LABEL=e[hR]),Object.hasOwn(e,ylt)&&(n.GROUP=e[ylt]),Object.hasOwn(e,xlt)&&(n.POP_MODE=e[xlt]),Object.hasOwn(e,blt)&&(n.PUSH_MODE=e[blt]),Object.hasOwn(e,Slt)&&(n.LONGER_ALT=e[Slt]),Object.hasOwn(e,Clt)&&(n.LINE_BREAKS=e[Clt]),Object.hasOwn(e,wlt)&&(n.START_CHARS_HINT=e[wlt]),n}function Itt(e,t,n,r,i,a,o,s){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:a,startColumn:o,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Ltt(e,t){return XP(e,t)}function Rtt(e,t){let n=new Elt(e,t);return n.resolveRefs(),n.errors}function ztt(e,t,n=[]){n=[...n];let r=[],i=0;function a(t){return t.concat(e.slice(i+1))}Y(a,`remainingPathWith`);function o(e){let i=ztt(a(e),t,n);return r.concat(i)}for(Y(o,`getAlternativesForProd`);n.length{e.definition.length!==0&&(r=o(e.definition))}),r;else if(t instanceof aR)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:e.slice(i)}),r}function Btt(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,l=t.length,u=l-r-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});f.length!==0;){let e=f.pop();if(e===o){s&&f.at(-1).idx<=u&&f.pop();continue}let r=e.def,p=e.idx,m=e.ruleStack,h=e.occurrenceStack;if(r.length===0)continue;let g=r[0];if(g===i){let e={idx:p,def:r.slice(1),ruleStack:m.slice(0,-1),occurrenceStack:h.slice(0,-1)};f.push(e)}else if(g instanceof aR){if(p=0;e--){let t={idx:p,def:g.definition[e].definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h};f.push(t),f.push(o)}else if(g instanceof QL)f.push({idx:p,def:g.definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h});else if(g instanceof ZL)f.push(Vtt(g,p,m,h));else throw Error(`non exhaustive match`)}return d}function Vtt(e,t,n,r){let i=[...n];i.push(e.name);let a=[...r];return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function Htt(e){if(e instanceof $L||e===`Option`)return bR.OPTION;if(e instanceof nR||e===`Repetition`)return bR.REPETITION;if(e instanceof eR||e===`RepetitionMandatory`)return bR.REPETITION_MANDATORY;if(e instanceof tR||e===`RepetitionMandatoryWithSeparator`)return bR.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof rR||e===`RepetitionWithSeparator`)return bR.REPETITION_WITH_SEPARATOR;if(e instanceof iR||e===`Alternation`)return bR.ALTERNATION;throw Error(`non exhaustive match`)}function Utt(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=Htt(r);return a===bR.ALTERNATION?iF(t,n,i):aF(t,n,a,i)}function Wtt(e,t,n,r,i,a){let o=iF(e,t,n);return a(o,r,$tt(o)?ZP:XP,i)}function Gtt(e,t,n,r,i,a){let o=aF(e,t,i,n),s=$tt(o)?ZP:XP;return a(o[0],s,r)}function rF(e,t,n,r){let i=e.length,a=e.every(e=>e.every(e=>e.length===1));if(t)return function(t){let r=t.map(e=>e.GATE);for(let t=0;te.flat()).reduce((e,t,n)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=n),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA_FAST(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=e.flat();if(t.length===1&&t[0].categoryMatches.length===0){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,n)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]===!0}}}return function(){nextPath:for(let n=0;nztt([e],1)),r=qtt(n.length),i=n.map(e=>{let t={};return e.forEach(e=>{Jtt(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=qtt(n.length);for(let o=0;o{Jtt(e.partialPath).forEach(e=>{i[o][e]=!0})})}}}}return r}function iF(e,t,n,r){let i=new Plt(e,bR.ALTERNATION,r);return t.accept(i),Xtt(i.result,n)}function aF(e,t,n,r){let i=new Plt(e,n);t.accept(i);let a=i.result,o=new Nlt(t,e,n).startWalking();return Xtt([new QL({definition:a}),new QL({definition:o})],r)}function Ztt(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function $tt(e){return e.every(e=>e.every(e=>e.every(e=>e.categoryMatches.length===0)))}function ent(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:PR.CUSTOM_LOOKAHEAD_VALIDATION},e))}function tnt(e,t,n,r){let i=e.flatMap(e=>oF(e,n)),a=dnt(e,t,n),o=e.flatMap(e=>cnt(e,n)),s=e.flatMap(t=>rnt(t,e,r,n));return i.concat(a,o,s)}function oF(e,t){let n=new xR;e.accept(n);let r=n.allProductions,i=Object.groupBy(r,sF),a=Object.fromEntries(Object.entries(i).filter(([e,t])=>t.length>1));return Object.values(a).map(n=>{let r=n[0],i=t.buildDuplicateFoundError(e,n),a=GP(r),o={message:i,type:PR.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=nnt(r);return s&&(o.parameter=s),o})}function sF(e){return`${GP(e)}_#_${e.idx}_#_${nnt(e)}`}function nnt(e){return e instanceof aR?e.terminalType.name:e instanceof XL?e.nonTerminalName:``}function rnt(e,t,n,r){let i=[];if(t.reduce((t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:PR.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function int(e,t,n){let r=[],i;return t.includes(e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:PR.INVALID_RULE_OVERRIDE,ruleName:e})),r}function ant(e,t,n,r=[]){let i=[],a=ont(t.definition);if(a.length===0)return[];{let t=e.name;a.includes(e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:PR.LEFT_RECURSION,ruleName:t});let o=r.concat([e]),s=a.filter(e=>!o.includes(e)).flatMap(t=>{let i=[...r];return i.push(t),ant(e,t,n,i)});return i.concat(s)}}function ont(e){let t=[];if(e.length===0)return t;let n=e[0];if(n instanceof XL)t.push(n.referencedRule);else if(n instanceof QL||n instanceof $L||n instanceof eR||n instanceof tR||n instanceof rR||n instanceof nR)t=t.concat(ont(n.definition));else if(n instanceof iR)t=n.definition.map(e=>ont(e.definition)).flat();else if(!(n instanceof aR))throw Error(`non exhaustive match`);let r=Ret(n),i=e.length>1;if(r&&i){let n=e.slice(1);return t.concat(ont(n))}return t}function cF(e,t){let n=new Flt;return e.accept(n),n.alternations.flatMap(n=>n.definition.slice(0,-1).flatMap((r,i)=>Btt([r],[],XP,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:PR.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function snt(e,t,n){let r=new Flt;e.accept(r);let i=r.alternations;return i=i.filter(e=>e.ignoreAmbiguities!==!0),i.flatMap(r=>{let i=r.idx,a=iF(i,e,r.maxLookahead||t,r),o=unt(a,r,e,n),s=lF(a,r,e,n);return o.concat(s)})}function cnt(e,t){let n=new Flt;return e.accept(n),n.alternations.flatMap(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:PR.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function lnt(e,t,n){let r=[];return e.forEach(e=>{let i=new Ilt;e.accept(i),i.allProductions.forEach(i=>{let a=Htt(i),o=i.maxLookahead||t,s=i.idx;if(aF(s,e,a,o)[0].flat().length===0){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:PR.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function unt(e,t,n,r){let i=[];return e.reduce((n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||r.forEach(r=>{let o=[a];e.forEach((e,n)=>{a!==n&&Ztt(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!Ztt(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]).map(e=>{let i=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:PR.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function lF(e,t,n,r){let i=e.reduce((e,t,n)=>{let r=t.map(e=>({idx:n,path:e}));return e.concat(r)},[]);return i.flatMap(e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return i.filter(e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:PR.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})})}function dnt(e,t,n){let r=[],i=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(i.includes(t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:PR.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}function fnt(e){let t=Object.assign({errMsgProvider:Tlt},e),n={};return e.rules.forEach(e=>{n[e.name]=e}),Rtt(n,t.errMsgProvider)}function pnt(e){let t=e.errMsgProvider??vR;return tnt(e.rules,e.tokenTypes,t,e.grammarName)}function mnt(e){return CR.includes(e.name)}function uF(e,t,n,r,i,a,o){var s,l;let u=r|i,d=(s=this.firstAfterRepMap)[l=this.currRuleShortName]??(s[l]=[]),f=d[u];if(f===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];f=new a(t,i).startWalking(),d[u]=f}let p=f.token,m=f.occurrence,h=f.isEndOfRule;this.RULE_STACK_IDX===0&&h&&p===void 0&&(p=gR,m=1),p!==void 0&&m!==void 0&&this.shouldInRepetitionRecoveryBeTried(p,m,o)&&this.tryInRepetitionRecovery(e,t,n,p)}function hnt(e){AR.reset(),e.accept(AR);let t=AR.dslMethods;return AR.reset(),t}function gnt(e,t){e.startOffset===-1?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function nF(e){return e.map(e=>typeof e==`string`?e.charCodeAt(0):e)}function rF(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function iF(e){return e255?255+~~(e/255):e}}function oF(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx||t.isParent===!0&&t.categoryMatchesMap[n]===!0}function xtt(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function sF(e){let t=Stt(e);cF(t),wtt(t),Ctt(t),t.forEach(e=>{e.isParent=e.categoryMatches.length>0})}function Stt(e){let t=[...e],n=e,r=!0;for(;r;){n=n.map(e=>e.CATEGORIES).flat().filter(Boolean);let e=n.filter(e=>!t.includes(e));t=t.concat(e),e.length===0?r=!1:n=e}return t}function cF(e){e.forEach(e=>{Ett(e)||(xlt[blt]=e,e.tokenTypeIdx=blt++),Dtt(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Dtt(e)||(e.CATEGORIES=[]),Ott(e)||(e.categoryMatches=[]),ktt(e)||(e.categoryMatchesMap={})})}function Ctt(e){e.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(xlt[t].tokenTypeIdx)})})}function wtt(e){e.forEach(e=>{Ttt([],e)})}function Ttt(e,t){e.forEach(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(n=>{let r=e.concat(t);r.includes(n)||Ttt(r,n)})}function Ett(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function Dtt(e){return Object.hasOwn(e??{},`CATEGORIES`)}function Ott(e){return Object.hasOwn(e??{},`categoryMatches`)}function ktt(e){return Object.hasOwn(e??{},`categoryMatchesMap`)}function Att(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function lF(e){return jtt(e)?e.LABEL:e.name}function jtt(e){return typeof e.LABEL==`string`&&e.LABEL!==``}function Mtt(e){return Ntt(e)}function Ntt(e){let t=e.pattern,n={};if(n.name=e.name,t!==void 0&&(n.PATTERN=t),Object.hasOwn(e,Clt))throw`The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Object.hasOwn(e,wlt)&&(n.CATEGORIES=e[wlt]),sF([n]),Object.hasOwn(e,Tlt)&&(n.LABEL=e[Tlt]),Object.hasOwn(e,Elt)&&(n.GROUP=e[Elt]),Object.hasOwn(e,Olt)&&(n.POP_MODE=e[Olt]),Object.hasOwn(e,Dlt)&&(n.PUSH_MODE=e[Dlt]),Object.hasOwn(e,klt)&&(n.LONGER_ALT=e[klt]),Object.hasOwn(e,Alt)&&(n.LINE_BREAKS=e[Alt]),Object.hasOwn(e,jlt)&&(n.START_CHARS_HINT=e[jlt]),n}function Ptt(e,t,n,r,i,a,o,s){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:a,startColumn:o,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Ftt(e,t){return oF(e,t)}function Itt(e,t){let n=new Nlt(e,t);return n.resolveRefs(),n.errors}function Ltt(e,t,n=[]){n=[...n];let r=[],i=0;function a(t){return t.concat(e.slice(i+1))}Y(a,`remainingPathWith`);function o(e){let i=Ltt(a(e),t,n);return r.concat(i)}for(Y(o,`getAlternativesForProd`);n.length{e.definition.length!==0&&(r=o(e.definition))}),r;else if(t instanceof tR)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:e.slice(i)}),r}function Rtt(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,l=t.length,u=l-r-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});f.length!==0;){let e=f.pop();if(e===o){s&&f.at(-1).idx<=u&&f.pop();continue}let r=e.def,p=e.idx,m=e.ruleStack,h=e.occurrenceStack;if(r.length===0)continue;let g=r[0];if(g===i){let e={idx:p,def:r.slice(1),ruleStack:m.slice(0,-1),occurrenceStack:h.slice(0,-1)};f.push(e)}else if(g instanceof tR){if(p=0;e--){let t={idx:p,def:g.definition[e].definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h};f.push(t),f.push(o)}else if(g instanceof JL)f.push({idx:p,def:g.definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h});else if(g instanceof qL)f.push(uF(g,p,m,h));else throw Error(`non exhaustive match`)}return d}function uF(e,t,n,r){let i=[...n];i.push(e.name);let a=[...r];return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function ztt(e){if(e instanceof YL||e===`Option`)return vR.OPTION;if(e instanceof QL||e===`Repetition`)return vR.REPETITION;if(e instanceof XL||e===`RepetitionMandatory`)return vR.REPETITION_MANDATORY;if(e instanceof ZL||e===`RepetitionMandatoryWithSeparator`)return vR.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof $L||e===`RepetitionWithSeparator`)return vR.REPETITION_WITH_SEPARATOR;if(e instanceof eR||e===`Alternation`)return vR.ALTERNATION;throw Error(`non exhaustive match`)}function Btt(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=ztt(r);return a===vR.ALTERNATION?Jtt(t,n,i):fF(t,n,a,i)}function Vtt(e,t,n,r,i,a){let o=Jtt(e,t,n);return a(o,r,Ytt(o)?xtt:oF,i)}function Htt(e,t,n,r,i,a){let o=fF(e,t,i,n),s=Ytt(o)?xtt:oF;return a(o[0],s,r)}function Utt(e,t,n,r){let i=e.length,a=e.every(e=>e.every(e=>e.length===1));if(t)return function(t){let r=t.map(e=>e.GATE);for(let t=0;te.flat()).reduce((e,t,n)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=n),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA_FAST(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=e.flat();if(t.length===1&&t[0].categoryMatches.length===0){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,n)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]===!0}}}return function(){nextPath:for(let n=0;nLtt([e],1)),r=dF(n.length),i=n.map(e=>{let t={};return e.forEach(e=>{Gtt(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=dF(n.length);for(let o=0;o{Gtt(e.partialPath).forEach(e=>{i[o][e]=!0})})}}}}return r}function Jtt(e,t,n,r){let i=new Vlt(e,vR.ALTERNATION,r);return t.accept(i),qtt(i.result,n)}function fF(e,t,n,r){let i=new Vlt(e,n);t.accept(i);let a=i.result,o=new Blt(t,e,n).startWalking();return qtt([new JL({definition:a}),new JL({definition:o})],r)}function pF(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function Ytt(e){return e.every(e=>e.every(e=>e.every(e=>e.categoryMatches.length===0)))}function Xtt(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:DR.CUSTOM_LOOKAHEAD_VALIDATION},e))}function Ztt(e,t,n,r){let i=e.flatMap(e=>Qtt(e,n)),a=cnt(e,t,n),o=e.flatMap(e=>ant(e,n)),s=e.flatMap(t=>ent(t,e,r,n));return i.concat(a,o,s)}function Qtt(e,t){let n=new Hlt;e.accept(n);let r=n.allProductions,i=Object.groupBy(r,$tt),a=Object.fromEntries(Object.entries(i).filter(([e,t])=>t.length>1));return Object.values(a).map(n=>{let r=n[0],i=t.buildDuplicateFoundError(e,n),a=XP(r),o={message:i,type:DR.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=hF(r);return s&&(o.parameter=s),o})}function $tt(e){return`${XP(e)}_#_${e.idx}_#_${hF(e)}`}function hF(e){return e instanceof tR?e.terminalType.name:e instanceof KL?e.nonTerminalName:``}function ent(e,t,n,r){let i=[];if(t.reduce((t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:DR.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function tnt(e,t,n){let r=[],i;return t.includes(e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:DR.INVALID_RULE_OVERRIDE,ruleName:e})),r}function nnt(e,t,n,r=[]){let i=[],a=gF(t.definition);if(a.length===0)return[];{let t=e.name;a.includes(e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:DR.LEFT_RECURSION,ruleName:t});let o=r.concat([e]),s=a.filter(e=>!o.includes(e)).flatMap(t=>{let i=[...r];return i.push(t),nnt(e,t,n,i)});return i.concat(s)}}function gF(e){let t=[];if(e.length===0)return t;let n=e[0];if(n instanceof KL)t.push(n.referencedRule);else if(n instanceof JL||n instanceof YL||n instanceof XL||n instanceof ZL||n instanceof $L||n instanceof QL)t=t.concat(gF(n.definition));else if(n instanceof eR)t=n.definition.map(e=>gF(e.definition)).flat();else if(!(n instanceof tR))throw Error(`non exhaustive match`);let r=YP(n),i=e.length>1;if(r&&i){let n=e.slice(1);return t.concat(gF(n))}return t}function rnt(e,t){let n=new Ult;return e.accept(n),n.alternations.flatMap(n=>n.definition.slice(0,-1).flatMap((r,i)=>Rtt([r],[],oF,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:DR.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function int(e,t,n){let r=new Ult;e.accept(r);let i=r.alternations;return i=i.filter(e=>e.ignoreAmbiguities!==!0),i.flatMap(r=>{let i=r.idx,a=Jtt(i,e,r.maxLookahead||t,r),o=snt(a,r,e,n),s=_F(a,r,e,n);return o.concat(s)})}function ant(e,t){let n=new Ult;return e.accept(n),n.alternations.flatMap(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:DR.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function ont(e,t,n){let r=[];return e.forEach(e=>{let i=new yR;e.accept(i),i.allProductions.forEach(i=>{let a=ztt(i),o=i.maxLookahead||t,s=i.idx;if(fF(s,e,a,o)[0].flat().length===0){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:DR.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function snt(e,t,n,r){let i=[];return e.reduce((n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||r.forEach(r=>{let o=[a];e.forEach((e,n)=>{a!==n&&pF(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!pF(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]).map(e=>{let i=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:DR.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function _F(e,t,n,r){let i=e.reduce((e,t,n)=>{let r=t.map(e=>({idx:n,path:e}));return e.concat(r)},[]);return i.flatMap(e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return i.filter(e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:DR.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})})}function cnt(e,t,n){let r=[],i=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(i.includes(t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:DR.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}function lnt(e){let t=Object.assign({errMsgProvider:Mlt},e),n={};return e.rules.forEach(e=>{n[e.name]=e}),Itt(n,t.errMsgProvider)}function vF(e){let t=e.errMsgProvider??gR;return Ztt(e.rules,e.tokenTypes,t,e.grammarName)}function unt(e){return bR.includes(e.name)}function dnt(e,t,n,r,i,a,o){var s,l;let u=r|i,d=(s=this.firstAfterRepMap)[l=this.currRuleShortName]??(s[l]=[]),f=d[u];if(f===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];f=new a(t,i).startWalking(),d[u]=f}let p=f.token,m=f.occurrence,h=f.isEndOfRule;this.RULE_STACK_IDX===0&&h&&p===void 0&&(p=mR,m=1),p!==void 0&&m!==void 0&&this.shouldInRepetitionRecoveryBeTried(p,m,o)&&this.tryInRepetitionRecovery(e,t,n,p)}function fnt(e){wR.reset(),e.accept(wR);let t=wR.dslMethods;return wR.reset(),t}function pnt(e,t){e.startOffset===-1?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: ${t.join(` `).replace(/\n/g,` - `)}`)}},`validateVisitor`)},n.prototype.constructor=n,n._RULE_NAMES=t,n}function xnt(e,t,n){let r=Y(function(){},`derivedConstructor`);fF(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return t.forEach(e=>{i[e]=ynt}),r.prototype=i,r.prototype.constructor=r,r}function Snt(e,t){return Cnt(e,t)}function Cnt(e,t){return t.filter(t=>typeof e[t]!=`function`).map(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:eut.MISSING_METHOD,methodName:t})).filter(Boolean)}function pF(e,t,n,r=!1){hF(n);let i=this.recordingProdStack.at(-1),a=typeof t==`function`?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Object.hasOwn(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),jR}function mF(e,t){hF(t);let n=this.recordingProdStack.at(-1),r=Array.isArray(e)===!1,i=r===!1?e:e.DEF,a=new iR({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return Object.hasOwn(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=i.some(e=>typeof e.GATE==`function`),n.definition.push(a),i.forEach(e=>{let t=new QL({definition:[]});a.definition.push(t),Object.hasOwn(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),jR}function wnt(e){return e===0?``:`${e}`}function hF(e){if(e<0||e>sut){let t=Error(`Invalid DSL Method idx value: <${e}> - Idx value must be a none negative value smaller than ${sut+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}function Tnt(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}function Ent(e=void 0){return function(){return e}}function Dnt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}function Nnt(e,t){var n=this.__data__,r=yut(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _F(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&kdt?new Tdt:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=fft}function yrt(e){return QR(e)&&pft(e.length)&&!!rz[RR(e)]}function brt(e){return function(t){return e(t)}}function xrt(e,t){var n=ZR(e),r=!n&&$R(e),i=!n&&!r&&tz(e),a=!n&&!r&&!i&&Hft(e),o=n||r||i||a,s=o?eft(e.length,String):[],l=s.length;for(var u in e)(t||Uft.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||dft(u,l)))&&s.push(u);return s}function Srt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Gft)}function Crt(e,t){return function(n){return e(t(n))}}function wrt(e){if(!Kft(e))return qft(e);var t=[];for(var n in Object(e))Jft.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Trt(e){return e!=null&&pft(e.length)&&!Gut(e)}function Ert(e){return Xft(e)?Wft(e):Yft(e)}function OF(e){return Jdt(e,Zft,$dt)}function Drt(e,t,n,r,i,a){var o=n&$ft,s=Qft(e),l=s.length;if(l!=Qft(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:ept.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++uoit(e,t,n)))}function fit(e,t,n){let r=RF(e,t,n,{type:jz});return FF(e,r),PF(e,t,n,IF(e,t,r,n,NF(e,t,n)))}function NF(e,t,n){let r=qpt(kz(n.definition,n=>oit(e,t,n)),e=>e!==void 0);if(r.length===1)return r[0];if(r.length!==0)return git(e,r)}function pit(e,t,n,r,i){let a=r.left,o=r.right,s=RF(e,t,n,{type:Iz});FF(e,s);let l=RF(e,t,n,{type:Lz});return a.loopback=s,l.loopback=s,e.decisionMap[MF(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,LF(o,s),i===void 0?(LF(s,a),LF(s,l)):(LF(s,l),LF(s,i.left),LF(i.right,a)),{left:a,right:l}}function mit(e,t,n,r,i){let a=r.left,o=r.right,s=RF(e,t,n,{type:Fz});FF(e,s);let l=RF(e,t,n,{type:Lz}),u=RF(e,t,n,{type:Pz});return s.loopback=u,l.loopback=u,LF(s,a),LF(s,l),LF(o,u),i===void 0?LF(u,s):(LF(u,l),LF(u,i.left),LF(i.right,a)),e.decisionMap[MF(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:l}}function PF(e,t,n,r){let i=r.left,a=r.right;return LF(i,a),e.decisionMap[MF(t,`Option`,n.idx)]=i,r}function FF(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function IF(e,t,n,r,...i){let a=RF(e,t,r,{type:Nz,start:n});n.end=a;for(let e of i)e===void 0?LF(n,a):(LF(n,e.left),LF(e.right,a));let o={left:n,right:a};return e.decisionMap[MF(t,hit(r),r.idx)]=n,o}function hit(e){if(e instanceof iR)return`Alternation`;if(e instanceof $L)return`Option`;if(e instanceof nR)return`Repetition`;if(e instanceof rR)return`RepetitionWithSeparator`;if(e instanceof eR)return`RepetitionMandatory`;if(e instanceof tR)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}function git(e,t){let n=t.length;for(let r=0;re.stateNumber.toString()).join(`_`)}`}function Cit(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?Tit(s,t-1,n,r,i):XR(i,s):r||(i[i.length]=s)}return i}function Eit(e,t){return emt(kz(e,t),1)}function Dit(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}function HF(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=rmt){var u=t?null:Qz(e);if(u)return JR(u);o=!1,i=Ddt,l=new Tdt}else l=t?[]:s;outer:for(;++r{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}function Vit(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function GF(e){let t=new Map;for(let n of e.states)for(let e of n.transitions)if(e instanceof Vz){let n=t.get(e.rule);n===void 0&&(n=[],t.set(e.rule,n)),n.push(e.followState)}return t}function Hit(e,t){let n=new Set,r=new Set,i=[e];for(;i.length>0;){let e=i.shift();if(!r.has(e)){if(r.add(e),e.type===Mz){if(t!==void 0){let n=t.get(e.rule);n!==void 0&&i.push(...n)}continue}for(let t of e.transitions)if(t instanceof zz){n.add(t.tokenType.tokenTypeIdx);for(let e of t.tokenType.categoryMatches)n.add(e)}else i.push(t.target)}}return n}function Uit(e,t,n){let r=t===`RepetitionMandatoryWithSeparator`,i=e.transitions[+!!r],a=e.transitions[+!r];if(i===void 0||a===void 0)return!1;let o=Hit(i.target),s=Hit(a.target,n);for(let e of o)if(s.has(e))return!0;return!1}function Wit(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;rnF(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${Yit(e.production)}${n}> inside <${e.topLevelRule.name}> Rule, + `)}`)}},`validateVisitor`)},n.prototype.constructor=n,n._RULE_NAMES=t,n}function bnt(e,t,n){let r=Y(function(){},`derivedConstructor`);_nt(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return t.forEach(e=>{i[e]=vnt}),r.prototype=i,r.prototype.constructor=r,r}function yF(e,t){return xnt(e,t)}function xnt(e,t){return t.filter(t=>typeof e[t]!=`function`).map(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:dut.MISSING_METHOD,methodName:t})).filter(Boolean)}function Snt(e,t,n,r=!1){Tnt(n);let i=this.recordingProdStack.at(-1),a=typeof t==`function`?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Object.hasOwn(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),_ut}function Cnt(e,t){Tnt(t);let n=this.recordingProdStack.at(-1),r=Array.isArray(e)===!1,i=r===!1?e:e.DEF,a=new eR({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return Object.hasOwn(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=i.some(e=>typeof e.GATE==`function`),n.definition.push(a),i.forEach(e=>{let t=new JL({definition:[]});a.definition.push(t),Object.hasOwn(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),_ut}function wnt(e){return e===0?``:`${e}`}function Tnt(e){if(e<0||e>yut){let t=Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${yut+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}function Ent(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}function bF(e=void 0){return function(){return e}}function Dnt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}function Pnt(e,t){var n=this.__data__,r=jut(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function xF(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&zdt?new Fdt:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=Cft}function xrt(e){return KR(e)&&wft(e.length)&&!!QR[NR(e)]}function Srt(e){return function(t){return e(t)}}function Crt(e,t){var n=GR(e),r=!n&&YR(e),i=!n&&!r&&yft(e),a=!n&&!r&&!i&&$ft(e),o=n||r||i||a,s=o?dft(e.length,String):[],l=s.length;for(var u in e)(t||ept.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||Sft(u,l)))&&s.push(u);return s}function jF(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||npt)}function wrt(e,t){return function(n){return e(t(n))}}function Trt(e){if(!rpt(e))return ipt(e);var t=[];for(var n in Object(e))apt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ert(e){return e!=null&&wft(e.length)&&!FR(e)}function Drt(e){return ez(e)?tpt(e):opt(e)}function Ort(e){return aft(e,tz,uft)}function krt(e,t,n,r,i,a){var o=n&cpt,s=spt(e),l=s.length;if(l!=spt(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:nz.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++ucit(e,t,n)))}function pit(e,t,n){let r=HF(e,t,n,{type:jz});return RF(e,r),git(e,t,n,zF(e,t,r,n,LF(e,t,n)))}function LF(e,t,n){let r=Az(kz(n.definition,n=>cit(e,t,n)),e=>e!==void 0);if(r.length===1)return r[0];if(r.length!==0)return BF(e,r)}function mit(e,t,n,r,i){let a=r.left,o=r.right,s=HF(e,t,n,{type:zz});RF(e,s);let l=HF(e,t,n,{type:Bz});return a.loopback=s,l.loopback=s,e.decisionMap[FF(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,VF(o,s),i===void 0?(VF(s,a),VF(s,l)):(VF(s,l),VF(s,i.left),VF(i.right,a)),{left:a,right:l}}function hit(e,t,n,r,i){let a=r.left,o=r.right,s=HF(e,t,n,{type:Rz});RF(e,s);let l=HF(e,t,n,{type:Bz}),u=HF(e,t,n,{type:Lz});return s.loopback=u,l.loopback=u,VF(s,a),VF(s,l),VF(o,u),i===void 0?VF(u,s):(VF(u,l),VF(u,i.left),VF(i.right,a)),e.decisionMap[FF(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:l}}function git(e,t,n,r){let i=r.left,a=r.right;return VF(i,a),e.decisionMap[FF(t,`Option`,n.idx)]=i,r}function RF(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function zF(e,t,n,r,...i){let a=HF(e,t,r,{type:Iz,start:n});n.end=a;for(let e of i)e===void 0?VF(n,a):(VF(n,e.left),VF(e.right,a));let o={left:n,right:a};return e.decisionMap[FF(t,_it(r),r.idx)]=n,o}function _it(e){if(e instanceof eR)return`Alternation`;if(e instanceof YL)return`Option`;if(e instanceof QL)return`Repetition`;if(e instanceof $L)return`RepetitionWithSeparator`;if(e instanceof XL)return`RepetitionMandatory`;if(e instanceof ZL)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}function BF(e,t){let n=t.length;for(let r=0;re.stateNumber.toString()).join(`_`)}`}function Cit(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?WF(s,t-1,n,r,i):ift(i,s):r||(i[i.length]=s)}return i}function Dit(e,t){return Yz(kz(e,t),1)}function GF(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}function qF(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=omt){var u=t?null:eB(e);if(u)return Udt(u);o=!1,i=Ldt,l=new Fdt}else l=t?[]:s;outer:for(;++r{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}function Hit(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function Uit(e){let t=new Map;for(let n of e.states)for(let e of n.transitions)if(e instanceof Uz){let n=t.get(e.rule);n===void 0&&(n=[],t.set(e.rule,n)),n.push(e.followState)}return t}function Wit(e,t){let n=new Set,r=new Set,i=[e];for(;i.length>0;){let e=i.shift();if(!r.has(e)){if(r.add(e),e.type===Fz){if(t!==void 0){let n=t.get(e.rule);n!==void 0&&i.push(...n)}continue}for(let t of e.transitions)if(t instanceof Hz){n.add(t.tokenType.tokenTypeIdx);for(let e of t.tokenType.categoryMatches)n.add(e)}else i.push(t.target)}}return n}function Git(e,t,n){let r=t===`RepetitionMandatoryWithSeparator`,i=e.transitions[+!!r],a=e.transitions[+!r];if(i===void 0||a===void 0)return!1;let o=Wit(i.target),s=Wit(a.target,n);for(let e of o)if(s.has(e))return!0;return!1}function Kit(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;rlF(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${Qit(e.production)}${n}> inside <${e.topLevelRule.name}> Rule, <${t}> may appears as a prefix path in all these alternatives. `;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,r}function Yit(e){if(e instanceof XL)return`SUBRULE`;if(e instanceof $L)return`OPTION`;if(e instanceof iR)return`OR`;if(e instanceof eR)return`AT_LEAST_ONE`;if(e instanceof tR)return`AT_LEAST_ONE_SEP`;if(e instanceof rR)return`MANY_SEP`;if(e instanceof nR)return`MANY`;if(e instanceof aR)return`CONSUME`;throw Error(`non exhaustive match`)}function Xit(e,t,n){return{actualToken:n,possibleTokenTypes:$z(Kz(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof zz).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function Zit(e,t){return e.edges[t.tokenTypeIdx]}function Qit(e,t,n){let r=new Uz,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===Mz){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n0&&!oat(a))for(let e of i)a.add(e);return a}function $it(e,t){if(e instanceof zz&&Ltt(t,e.tokenType))return e.target}function eat(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function tat(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function nat(e,t,n,r){return r=rat(e,r),t.edges[n.tokenTypeIdx]=r,r}function rat(e,t){if(t===Hz)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}function iat(e){let t=new Uz,n=e.transitions.length;for(let r=0;r0){let n=[...e.stack];qF({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i1)return!0;return!1}function uat(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}function dat(e,t){let n;for(let r of e.configs.elements)if(t.is(r.alt)!==!1&&r.state.type!==Mz){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function YF(e){return e|0}function fat(e){return e.$type===hB}function pat(e,t,n){return mat({parser:t,tokens:n,ruleNames:new Map},e),t}function mat(e,t){let n=aet(t,!1),r=hP(t.rules).filter(AP).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,XF(n,t.definition))}let i=hP(t.rules).filter(DP).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,hat(e,t))}function hat(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(MP(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},o={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,o);let s={$container:o,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},l={...a,$container:o};o.elements.push(s,l);let u=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:Y(()=>e.parser.consume(n,t,s),`ALT`)})),d;return t=>{d??=wat(e,n),e.parser.subrule(0,d,!1,a,t),e.parser.many(0,{DEF:Y(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,l,t)},`DEF`)})}}function XF(e,t,n=!1){let r;if(OP(t))r=Sat(e,t);else if(x9e(t))r=gat(e,t);else if(CP(t))r=XF(e,t.terminal);else if(EP(t))r=xat(e,t);else if(jP(t))r=_at(e,t);else if(S9e(t))r=yat(e,t);else if(R9e(t))r=bat(e,t);else if(E9e(t))r=QF(e,t);else if(T9e(t)){let n=e.consume++;r=Y(()=>e.parser.consume(n,gR,t),`method`)}else throw new Vct(t.$cstNode,`Unexpected element type: ${t.$type}`);return Cat(e,n?void 0:$F(t),r,t.cardinality)}function gat(e,t){let n=BP(t);return()=>e.parser.action(n,t)}function _at(e,t){let n=t.rule.ref;if(SP(n)){let r=e.subrule++,i=AP(n)&&n.fragment,a=t.arguments.length>0?vat(n,t.arguments):()=>({}),o;return s=>{o??=wat(e,n),e.parser.subrule(r,o,i,t,a(s))}}if(MP(n)){let r=e.consume++,i=Eat(e,n.name);return()=>e.parser.consume(r,i,t)}if(n)PP(n);else throw new Vct(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function vat(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:ZF(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}{let n=t.map(e=>ZF(e.value));return t=>{let r={};for(let i=0;it(e)||n(e)}if(TP(e)){let t=ZF(e.left),n=ZF(e.right);return e=>t(e)&&n(e)}if(k9e(e)){let t=ZF(e.value);return e=>!t(e)}if(A9e(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}if(wP(e)){let t=!!e.true;return()=>t}PP(e)}function yat(e,t){if(t.elements.length===1)return XF(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:XF(e,r,!0)},i=$F(r);i&&(t.GATE=ZF(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:Y(()=>e.ALT(t),`ALT`)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}function bat(e,t){if(t.elements.length===1)return XF(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:XF(e,r,!0)},i=$F(r);i&&(t.GATE=ZF(i)),n.push(t)}let r=e.or++,i=Y((e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,`idFunc`),a=Y(t=>e.parser.alternatives(r,n.map((n,a)=>{let o={ALT:Y(()=>!0,`ALT`)},s=e.parser;o.ALT=()=>{if(n.ALT(t),!s.isRecording()){let e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);let t=s.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let l=n.GATE;return o.GATE=l?()=>l(t):()=>!s.unorderedGroups.get(i(r,s))?.[a],o})),`alternatives`),o=Cat(e,$F(t),a,`*`);return t=>{o(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}function QF(e,t){let n=t.elements.map(t=>XF(e,t));return e=>n.forEach(t=>t(e))}function $F(e){if(E9e(e))return e.guardCondition}function xat(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=het(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+BP(t.type.ref));return xat(e,t,n)}if(jP(n)&&AP(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=wat(e,r),e.parser.subrule(i,a,!1,t,n)}}if(jP(n)&&MP(n.rule.ref)){let r=e.consume++,i=Eat(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}if(OP(n)){let r=e.consume++,i=Eat(e,n.value);return()=>e.parser.consume(r,i,t)}throw Error(`Could not build cross reference parser`)}function Sat(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}function Cat(e,t,n,r){let i=t&&ZF(t);if(!r){if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:Y(()=>n(r),`ALT`),GATE:Y(()=>i(r),`GATE`)},{ALT:Ent(),GATE:Y(()=>!i(r),`GATE`)}])}return n}if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:Y(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:Y(()=>e.parser.atLeastOne(t,{DEF:Y(()=>n(a),`DEF`)}),`ALT`),GATE:Y(()=>i(a),`GATE`)},{ALT:Ent(),GATE:Y(()=>!i(a),`GATE`)}])}return r=>e.parser.atLeastOne(t,{DEF:Y(()=>n(r),`DEF`)})}if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:Y(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}PP(r)}function wat(e,t){let n=Tat(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}function Tat(e,t){if(SP(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!AP(r);)(E9e(r)||S9e(r)||R9e(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}function Eat(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}function Dat(e){let t=e.Grammar,n=e.parser.Lexer,r=new fmt(e);return pat(t,r,n.definition),r.finalize(),r}function Oat(e){let t=eI(e);return t.finalize(),t}function eI(e){let t=e.Grammar,n=e.parser.Lexer;return pat(t,new umt(e),n.definition)}function kat(){return new Promise(e=>{typeof setImmediate>`u`?setTimeout(e,0):setImmediate(e)})}function Aat(){return TB=performance.now(),new wB.CancellationTokenSource}function jat(e){return e===DB}async function tI(e){if(e===wB.CancellationToken.None)return;let t=performance.now();if(t-TB>=EB&&(TB=t,await kat(),TB=performance.now()),e.isCancellationRequested)throw DB}function Mat(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Mat(r,t),Mat(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Iat(e){let t=Fat(e.range);return t===e.range?e:{newText:e.newText,range:t}}function nI(e){return typeof e.name==`string`}function Lat(e){return typeof e.$comment==`string`}function Rat(e){return typeof e==`object`&&!!e&&(`$ref`in e||`$refs`in e||`$error`in e)}function rI(e){return{code:e}}function zat(e){if(e.range)return e.range;let t;return typeof e.property==`string`?t=det(e.node.$cstNode,e.property,e.index):typeof e.keyword==`string`&&(t=pet(e.node.$cstNode,e.keyword,e.index)),t??=e.node.$cstNode,t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Bat(e){switch(e){case`error`:return 1;case`warning`:return 2;case`info`:return 3;case`hint`:return 4;default:throw Error(`Invalid diagnostic severity: `+e)}}function Vat(e){switch(e){case`error`:return rI(GB.LexingError);case`warning`:return rI(GB.LexingWarning);case`info`:return rI(GB.LexingInfo);case`hint`:return rI(GB.LexingHint);default:throw Error(`Invalid diagnostic severity: `+e)}}function Hat(e){return Array.isArray(e)&&(e.length===0||`name`in e[0])}function Uat(e){return e&&`modes`in e&&`defaultMode`in e}function Wat(e){return!Hat(e)&&!Uat(e)}function iI(e,t,n){let r,i;typeof e==`string`?(i=t,r=n):(i=e.range.start,r=t),i||=OI.create(0,0);let a=Kat(e),o=tot(r);return Xat({index:0,tokens:qat({lines:a,position:i,options:o}),position:i})}function Gat(e,t){let n=tot(t),r=Kat(e);if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=n.start,s=n.end;return!!o?.exec(i)&&!!s?.exec(a)}function Kat(e){let t=``;return t=typeof e==`string`?e:e.text,t.split(Jct)}function qat(e){let t=[],n=e.position.line,r=e.position.character;for(let i=0;i=s.length){if(t.length>0){let e=OI.create(n,r);t.push({type:`break`,content:``,range:kI.create(e,e)})}}else{tV.lastIndex=l;let e=tV.exec(s);if(e){let i=e[0],a=e[1],o=OI.create(n,r+l),u=OI.create(n,r+l+i.length);t.push({type:`tag`,content:a,range:kI.create(o,u)}),l+=i.length,l=aI(s,l)}if(l0&&t[t.length-1].type===`break`?t.slice(0,-1):t}function Jat(e,t,n,r){let i=[];if(e.length===0){let e=OI.create(n,r),a=OI.create(n,r+t.length);i.push({type:`text`,content:t,range:kI.create(e,a)})}else{let a=0;for(let o of e){let e=o.index,s=t.substring(a,e);s.length>0&&i.push({type:`text`,content:t.substring(a,e),range:kI.create(OI.create(n,a+r),OI.create(n,e+r))});let l=s.length+1,u=o[1];if(i.push({type:`inline-tag`,content:u,range:kI.create(OI.create(n,a+l+r),OI.create(n,a+l+u.length+r))}),l+=u.length,o.length===4){l+=o[2].length;let e=o[3];i.push({type:`text`,content:e,range:kI.create(OI.create(n,a+l+r),OI.create(n,a+l+e.length+r))})}else i.push({type:`text`,content:``,range:kI.create(OI.create(n,a+l+r),OI.create(n,a+l+r))});a=e+o[0].length}let o=t.substring(a);o.length>0&&i.push({type:`text`,content:o,range:kI.create(OI.create(n,a+r),OI.create(n,a+r+o.length))})}return i}function aI(e,t){let n=e.substring(t).match(Fmt);return n?t+n.index:e.length}function Yat(e){let t=e.match(Imt);if(t&&typeof t.index==`number`)return t.index}function Xat(e){let t=OI.create(e.position.line,e.position.character);if(e.tokens.length===0)return new Lmt([],kI.create(t,t));let n=[];for(;e.index0){let e=aI(t,r);i=t.substring(e),t=t.substring(0,r)}return(e===`linkcode`||e===`link`&&n.link===`code`)&&(i=`\`${i}\``),n.renderLink?.(t,i)??cI(t,i)}}function cI(e,t){try{return AB.parse(e,!0),`[${t}](${e})`}catch{return e}}function iot(e){return e.endsWith(` +For Further details.`,r}function Qit(e){if(e instanceof KL)return`SUBRULE`;if(e instanceof YL)return`OPTION`;if(e instanceof eR)return`OR`;if(e instanceof XL)return`AT_LEAST_ONE`;if(e instanceof ZL)return`AT_LEAST_ONE_SEP`;if(e instanceof $L)return`MANY_SEP`;if(e instanceof QL)return`MANY`;if(e instanceof tR)return`CONSUME`;throw Error(`non exhaustive match`)}function $it(e,t,n){return{actualToken:n,possibleTokenTypes:smt(Xz(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof Hz).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function eat(e,t){return e.edges[t.tokenTypeIdx]}function tat(e,t,n){let r=new emt,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===Fz){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n0&&!cat(a))for(let e of i)a.add(e);return a}function nat(e,t){if(e instanceof Hz&&Ftt(t,e.tokenType))return e.target}function rat(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function iat(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function aat(e,t,n,r){return r=oat(e,r),t.edges[n.tokenTypeIdx]=r,r}function oat(e,t){if(t===Wz)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}function YF(e){let t=new emt,n=e.transitions.length;for(let r=0;r0){let n=[...e.stack];XF({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i1)return!0;return!1}function pat(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}function mat(e,t){let n;for(let r of e.configs.elements)if(t.is(r.alt)!==!1&&r.state.type!==Fz){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function ZF(e){return e|0}function hat(e){return e.$type===gB}function gat(e,t,n){return _at({parser:t,tokens:n,ruleNames:new Map},e),t}function _at(e,t){let n=cet(t,!1),r=mP(t.rules).filter(AP).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,QF(n,t.definition))}let i=mP(t.rules).filter(M9e).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,vat(e,t))}function vat(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(MP(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},o={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,o);let s={$container:o,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},l={...a,$container:o};o.elements.push(s,l);let u=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:Y(()=>e.parser.consume(n,t,s),`ALT`)})),d;return t=>{d??=tI(e,n),e.parser.subrule(0,d,!1,a,t),e.parser.many(0,{DEF:Y(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,l,t)},`DEF`)})}}function QF(e,t,n=!1){let r;if(kP(t))r=Eat(e,t);else if(CP(t))r=yat(e,t);else if(TP(t))r=QF(e,t.terminal);else if(EP(t))r=Tat(e,t);else if(jP(t))r=$F(e,t);else if(wP(t))r=xat(e,t);else if(U9e(t))r=Sat(e,t);else if(DP(t))r=Cat(e,t);else if(A9e(t)){let n=e.consume++;r=Y(()=>e.parser.consume(n,mR,t),`method`)}else throw new Yct(t.$cstNode,`Unexpected element type: ${t.$type}`);return Dat(e,n?void 0:wat(t),r,t.cardinality)}function yat(e,t){let n=UP(t);return()=>e.parser.action(n,t)}function $F(e,t){let n=t.rule.ref;if(SP(n)){let r=e.subrule++,i=AP(n)&&n.fragment,a=t.arguments.length>0?bat(n,t.arguments):()=>({}),o;return s=>{o??=tI(e,n),e.parser.subrule(r,o,i,t,a(s))}}if(MP(n)){let r=e.consume++,i=kat(e,n.name);return()=>e.parser.consume(r,i,t)}if(n)FP(n);else throw new Yct(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function bat(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:eI(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}{let n=t.map(e=>eI(e.value));return t=>{let r={};for(let i=0;it(e)||n(e)}if(O9e(e)){let t=eI(e.left),n=eI(e.right);return e=>t(e)&&n(e)}if(P9e(e)){let t=eI(e.value);return e=>!t(e)}if(F9e(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}if(E9e(e)){let t=!!e.true;return()=>t}FP(e)}function xat(e,t){if(t.elements.length===1)return QF(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:QF(e,r,!0)},i=wat(r);i&&(t.GATE=eI(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:Y(()=>e.ALT(t),`ALT`)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}function Sat(e,t){if(t.elements.length===1)return QF(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:QF(e,r,!0)},i=wat(r);i&&(t.GATE=eI(i)),n.push(t)}let r=e.or++,i=Y((e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,`idFunc`),a=Y(t=>e.parser.alternatives(r,n.map((n,a)=>{let o={ALT:Y(()=>!0,`ALT`)},s=e.parser;o.ALT=()=>{if(n.ALT(t),!s.isRecording()){let e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);let t=s.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let l=n.GATE;return o.GATE=l?()=>l(t):()=>!s.unorderedGroups.get(i(r,s))?.[a],o})),`alternatives`),o=Dat(e,wat(t),a,`*`);return t=>{o(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}function Cat(e,t){let n=t.elements.map(t=>QF(e,t));return e=>n.forEach(t=>t(e))}function wat(e){if(DP(e))return e.guardCondition}function Tat(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=_et(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+UP(t.type.ref));return Tat(e,t,n)}if(jP(n)&&AP(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=tI(e,r),e.parser.subrule(i,a,!1,t,n)}}if(jP(n)&&MP(n.rule.ref)){let r=e.consume++,i=kat(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}if(kP(n)){let r=e.consume++,i=kat(e,n.value);return()=>e.parser.consume(r,i,t)}throw Error(`Could not build cross reference parser`)}function Eat(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}function Dat(e,t,n,r){let i=t&&eI(t);if(!r){if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:Y(()=>n(r),`ALT`),GATE:Y(()=>i(r),`GATE`)},{ALT:bF(),GATE:Y(()=>!i(r),`GATE`)}])}return n}if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:Y(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:Y(()=>e.parser.atLeastOne(t,{DEF:Y(()=>n(a),`DEF`)}),`ALT`),GATE:Y(()=>i(a),`GATE`)},{ALT:bF(),GATE:Y(()=>!i(a),`GATE`)}])}return r=>e.parser.atLeastOne(t,{DEF:Y(()=>n(r),`DEF`)})}if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:Y(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}FP(r)}function tI(e,t){let n=Oat(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}function Oat(e,t){if(SP(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!AP(r);)(DP(r)||wP(r)||U9e(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}function kat(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}function Aat(e){let t=e.Grammar,n=e.parser.Lexer,r=new mmt(e);return gat(t,r,n.definition),r.finalize(),r}function jat(e){let t=Mat(e);return t.finalize(),t}function Mat(e){let t=e.Grammar,n=e.parser.Lexer;return gat(t,new yB(e),n.definition)}function Nat(){return new Promise(e=>{typeof setImmediate>`u`?setTimeout(e,0):setImmediate(e)})}function Pat(){return DB=performance.now(),new EB.CancellationTokenSource}function nI(e){return e===OB}async function rI(e){if(e===EB.CancellationToken.None)return;let t=performance.now();if(t-DB>=_mt&&(DB=t,await Nat(),DB=performance.now()),e.isCancellationRequested)throw OB}function iI(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);iI(r,t),iI(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Rat(e){let t=Lat(e.range);return t===e.range?e:{newText:e.newText,range:t}}function zat(e){return typeof e.name==`string`}function Bat(e){return typeof e.$comment==`string`}function aI(e){return typeof e==`object`&&!!e&&(`$ref`in e||`$refs`in e||`$error`in e)}function oI(e){return{code:e}}function Vat(e){if(e.range)return e.range;let t;return typeof e.property==`string`?t=HP(e.node.$cstNode,e.property,e.index):typeof e.keyword==`string`&&(t=met(e.node.$cstNode,e.keyword,e.index)),t??=e.node.$cstNode,t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function sI(e){switch(e){case`error`:return 1;case`warning`:return 2;case`info`:return 3;case`hint`:return 4;default:throw Error(`Invalid diagnostic severity: `+e)}}function Hat(e){switch(e){case`error`:return oI(YB.LexingError);case`warning`:return oI(YB.LexingWarning);case`info`:return oI(YB.LexingInfo);case`hint`:return oI(YB.LexingHint);default:throw Error(`Invalid diagnostic severity: `+e)}}function Uat(e){return Array.isArray(e)&&(e.length===0||`name`in e[0])}function Wat(e){return e&&`modes`in e&&`defaultMode`in e}function Gat(e){return!Uat(e)&&!Wat(e)}function Kat(e,t,n){let r,i;typeof e==`string`?(i=t,r=n):(i=e.range.start,r=t),i||=NI.create(0,0);let a=Jat(e),o=rot(r);return cI({index:0,tokens:Yat({lines:a,position:i,options:o}),position:i})}function qat(e,t){let n=rot(t),r=Jat(e);if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=n.start,s=n.end;return!!o?.exec(i)&&!!s?.exec(a)}function Jat(e){let t=``;return t=typeof e==`string`?e:e.text,t.split(WL)}function Yat(e){let t=[],n=e.position.line,r=e.position.character;for(let i=0;i=s.length){if(t.length>0){let e=NI.create(n,r);t.push({type:`break`,content:``,range:PI.create(e,e)})}}else{nV.lastIndex=l;let e=nV.exec(s);if(e){let i=e[0],a=e[1],o=NI.create(n,r+l),u=NI.create(n,r+l+i.length);t.push({type:`tag`,content:a,range:PI.create(o,u)}),l+=i.length,l=Zat(s,l)}if(l0&&t[t.length-1].type===`break`?t.slice(0,-1):t}function Xat(e,t,n,r){let i=[];if(e.length===0){let e=NI.create(n,r),a=NI.create(n,r+t.length);i.push({type:`text`,content:t,range:PI.create(e,a)})}else{let a=0;for(let o of e){let e=o.index,s=t.substring(a,e);s.length>0&&i.push({type:`text`,content:t.substring(a,e),range:PI.create(NI.create(n,a+r),NI.create(n,e+r))});let l=s.length+1,u=o[1];if(i.push({type:`inline-tag`,content:u,range:PI.create(NI.create(n,a+l+r),NI.create(n,a+l+u.length+r))}),l+=u.length,o.length===4){l+=o[2].length;let e=o[3];i.push({type:`text`,content:e,range:PI.create(NI.create(n,a+l+r),NI.create(n,a+l+e.length+r))})}else i.push({type:`text`,content:``,range:PI.create(NI.create(n,a+l+r),NI.create(n,a+l+r))});a=e+o[0].length}let o=t.substring(a);o.length>0&&i.push({type:`text`,content:o,range:PI.create(NI.create(n,a+r),NI.create(n,a+r+o.length))})}return i}function Zat(e,t){let n=e.substring(t).match(Rmt);return n?t+n.index:e.length}function Qat(e){let t=e.match(zmt);if(t&&typeof t.index==`number`)return t.index}function cI(e){let t=NI.create(e.position.line,e.position.character);if(e.tokens.length===0)return new iV([],PI.create(t,t));let n=[];for(;e.index0){let e=Zat(t,r);i=t.substring(e),t=t.substring(0,r)}return(e===`linkcode`||e===`link`&&n.link===`code`)&&(i=`\`${i}\``),n.renderLink?.(t,i)??pI(t,i)}}function pI(e,t){try{return MB.parse(e,!0),`[${t}](${e})`}catch{return e}}function iot(e){return e.endsWith(` `)?` `:` -`}function lI(e){return{documentation:{CommentProvider:Y(e=>new iV(e),`CommentProvider`),DocumentationProvider:Y(e=>new zmt(e),`DocumentationProvider`)},parser:{AsyncParser:Y(e=>new aV(e),`AsyncParser`),GrammarConfig:Y(e=>Oet(e),`GrammarConfig`),LangiumParser:Y(e=>Oat(e),`LangiumParser`),CompletionParser:Y(e=>Dat(e),`CompletionParser`),ValueConverter:Y(()=>new SB,`ValueConverter`),TokenBuilder:Y(()=>new xB,`TokenBuilder`),Lexer:Y(e=>new Nmt(e),`Lexer`),ParserErrorMessageProvider:Y(()=>new vB,`ParserErrorMessageProvider`),LexerErrorMessageProvider:Y(()=>new $B,`LexerErrorMessageProvider`)},workspace:{AstNodeLocator:Y(()=>new JB,`AstNodeLocator`),AstNodeDescriptionProvider:Y(e=>new KB(e),`AstNodeDescriptionProvider`),ReferenceDescriptionProvider:Y(e=>new qB(e),`ReferenceDescriptionProvider`)},references:{Linker:Y(e=>new bmt(e),`Linker`),NameProvider:Y(()=>new xmt,`NameProvider`),ScopeProvider:Y(e=>new VB(e),`ScopeProvider`),ScopeComputation:Y(e=>new wmt(e),`ScopeComputation`),References:Y(e=>new Smt(e),`References`)},serializer:{Hydrator:Y(e=>new Vmt(e),`Hydrator`),JsonSerializer:Y(e=>new HB(e),`JsonSerializer`)},validation:{DocumentValidator:Y(e=>new kmt(e),`DocumentValidator`),ValidationRegistry:Y(e=>new Dmt(e),`ValidationRegistry`)},shared:Y(()=>e.shared,`shared`)}}function uI(e){return{ServiceRegistry:Y(e=>new UB(e),`ServiceRegistry`),workspace:{LangiumDocuments:Y(e=>new _mt(e),`LangiumDocuments`),LangiumDocumentFactory:Y(e=>new gmt(e),`LangiumDocumentFactory`),DocumentBuilder:Y(e=>new QB(e),`DocumentBuilder`),IndexManager:Y(e=>new jmt(e),`IndexManager`),WorkspaceManager:Y(e=>new Mmt(e),`WorkspaceManager`),FileSystemProvider:Y(t=>e.fileSystemProvider(t),`FileSystemProvider`),WorkspaceLock:Y(()=>new oV,`WorkspaceLock`),ConfigurationProvider:Y(e=>new YB(e),`ConfigurationProvider`)},profilers:{}}}function dI(e,t,n,r,i,a,o,s,l){return fI([e,t,n,r,i,a,o,s,l].reduce(oot,{}))}function fI(e,t){let n=new Proxy({},{deleteProperty:Y(()=>!1,`deleteProperty`),set:Y(()=>{throw Error(`Cannot set property on injected service container`)},`set`),get:Y((r,i)=>i===Umt||aot(r,i,e,t||n),`get`),getOwnPropertyDescriptor:Y((r,i)=>(aot(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),`getOwnPropertyDescriptor`),has:Y((t,n)=>n in e,`has`),ownKeys:Y(()=>[...Object.getOwnPropertyNames(e)],`ownKeys`)});return n}function aot(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw Error(`Construction failure. Please make sure that your dependencies are constructable. Cause: `+e[t]);if(e[t]===Wmt)throw Error(`Cycle detected. Please make "`+String(t)+`" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies`);return e[t]}if(t in n){let i=n[t];e[t]=Wmt;try{e[t]=typeof i==`function`?i(r):fI(i,r)}catch(n){throw e[t]=n instanceof Error?n:void 0,n}return e[t]}}function oot(e,t){if(t){for(let[n,r]of Object.entries(t))if(n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&r!=null){if(typeof r==`object`){let t=e[n];e[n]=oot(typeof t==`object`&&t?t:{},r)}else e[n]=r}}return e}function sot(){let e=dI(uI(sV),qmt),t=dI(lI({shared:e}),Kmt);return e.ServiceRegistry.register(t),t}function pI(e){let t=sot(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,AB.parse(`memory:/${n.name??`grammar`}.langium`)),n}function cot(e){return XH.isInstance(e,_V.$type)}function lot(e){return XH.isInstance(e,yV.$type)}function uot(e){return XH.isInstance(e,xV.$type)}function dot(e){return XH.isInstance(e,TV.$type)}function fot(e){return XH.isInstance(e,kV.$type)}function pot(e){return XH.isInstance(e,AV.$type)}function mot(e){return e===`rmo`||e===`readmodel`||e===`ui`||e===`cmd`||e===`command`||e===`evt`||e===`event`||e===`pcr`||e===`processor`}function hot(e){return XH.isInstance(e,JV.$type)}function mI(e){return XH.isInstance(e,eH.$type)}function got(e){return XH.isInstance(e,nH.$type)}function _ot(e){return XH.isInstance(e,cH.$type)}function vot(e){return XH.isInstance(e,dH.$type)}function yot(e){return XH.isInstance(e,fH.$type)}function bot(e){return XH.isInstance(e,xH.$type)}function xot(e){return XH.isInstance(e,SH.$type)}function hI(e){return XH.isInstance(e,TH.$type)}function Sot(e){return XH.isInstance(e,EH.$type)}function Cot(e){return XH.isInstance(e,OH.$type)}function gI(e){return XH.isInstance(e,NH.$type)}function wot(e){return XH.isInstance(e,UH.$type)}function Tot(e){return XH.isInstance(e,WH.$type)}function Eot(e){return XH.isInstance(e,JH.$type)}var Dot,_I,Oot,vI,kot,Aot,Y,jot,yI,Mot,Not,bI,Pot,xI,SI,Fot,Iot,CI,wI,TI,Lot,Rot,zot,EI,Bot,Vot,DI,Hot,Uot,Wot,Got,Kot,OI,kI,qot,AI,Jot,Yot,jI,Xot,Zot,Qot,$ot,est,tst,nst,MI,NI,PI,FI,II,LI,RI,rst,ist,ast,zI,ost,sst,cst,lst,BI,ust,dst,fst,VI,HI,pst,mst,hst,gst,_st,vst,yst,bst,UI,xst,Sst,Cst,wst,Tst,Est,Dst,Ost,kst,Ast,jst,Mst,WI,Nst,Pst,Fst,Ist,GI,Lst,Rst,zst,Bst,Vst,Hst,Ust,Wst,Gst,KI,Kst,qst,Jst,Yst,Xst,Zst,qI,Qst,$st,ect,tct,nct,JI,YI,XI,rct,ZI,QI,ict,act,oct,sct,cct,$I,lct,uct,dct,eL,fct,pct,tL,mct,hct,gct,_ct,vct,yct,bct,nL,xct,Sct,Cct,rL,iL,aL,oL,wct,sL,cL,Tct,lL,uL,Ect,Dct,Oct,dL,fL,pL,mL,kct,hL,gL,Act,_L,jct,vL,Mct,yL,Nct,Pct,bL,xL,Fct,SL,CL,Ict,wL,Lct,TL,EL,DL,Rct,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,zct,BL,VL,HL,UL,WL,GL,Bct,Vct,Hct,Uct,Wct,Gct,KL,Kct,qct,qL,Jct,Yct,Xct,Zct,Qct,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,$ct,elt,tlt,nlt,rlt,ilt,alt,cR,lR,olt,slt,clt,llt,ult,dlt,flt,plt,uR,dR,mlt,hlt,glt,fR,pR,mR,_lt,vlt,hR,ylt,blt,xlt,Slt,Clt,wlt,gR,_R,Tlt,vR,Elt,yR,Dlt,Olt,klt,Alt,jlt,Mlt,bR,Nlt,Plt,xR,Flt,Ilt,SR,Llt,Rlt,zlt,CR,Blt,Vlt,Hlt,Ult,wR,Wlt,Glt,Klt,qlt,TR,Jlt,Ylt,Xlt,ER,Zlt,DR,OR,kR,Qlt,AR,$lt,eut,tut,nut,rut,iut,aut,jR,out,sut,cut,lut,uut,dut,fut,MR,NR,put,PR,mut,hut,gut,_ut,vut,yut,but,xut,Sut,Cut,wut,Tut,Eut,Dut,Out,kut,Aut,jut,FR,IR,Mut,Nut,Put,LR,Fut,Iut,Lut,Rut,zut,But,RR,Vut,Hut,Uut,zR,Wut,Gut,Kut,BR,qut,Jut,VR,Yut,Xut,Zut,Qut,$ut,edt,tdt,ndt,rdt,HR,UR,WR,idt,GR,KR,qR,adt,odt,sdt,cdt,ldt,udt,ddt,fdt,pdt,mdt,hdt,gdt,_dt,vdt,ydt,bdt,xdt,Sdt,Cdt,wdt,Tdt,Edt,Ddt,Odt,kdt,Adt,jdt,Mdt,JR,Ndt,Pdt,Fdt,Idt,Ldt,Rdt,zdt,Bdt,YR,Vdt,Hdt,Udt,Wdt,Gdt,Kdt,qdt,XR,ZR,Jdt,Ydt,Xdt,Zdt,Qdt,$dt,eft,QR,tft,nft,rft,ift,aft,$R,oft,ez,sft,cft,tz,lft,uft,dft,fft,pft,mft,hft,gft,_ft,vft,yft,bft,xft,Sft,Cft,nz,wft,Tft,Eft,Dft,Oft,kft,Aft,jft,Mft,Nft,Pft,Fft,Ift,rz,iz,Lft,Rft,az,zft,Bft,Vft,Hft,Uft,Wft,Gft,Kft,qft,Jft,Yft,Xft,Zft,Qft,$ft,ept,oz,sz,tpt,cz,lz,uz,npt,rpt,ipt,apt,opt,spt,cpt,lpt,upt,dpt,dz,fpt,ppt,mpt,hpt,gpt,_pt,fz,pz,vpt,ypt,bpt,xpt,Spt,Cpt,wpt,Tpt,Ept,Dpt,mz,Opt,kpt,Apt,jpt,Mpt,Npt,Ppt,hz,Fpt,gz,_z,Ipt,Lpt,vz,yz,bz,Rpt,zpt,xz,Bpt,Vpt,Sz,Hpt,Upt,Wpt,Cz,wz,Gpt,Tz,Kpt,Ez,Dz,Oz,kz,Az,qpt,jz,Jpt,Ypt,Xpt,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Zpt,Qpt,Wz,Gz,$pt,emt,Kz,qz,Jz,Yz,Xz,Zz,tmt,nmt,Qz,rmt,imt,$z,eB,tB,amt,nB,omt,rB,iB,aB,smt,oB,sB,cB,lB,uB,dB,cmt,fB,pB,mB,hB,lmt,gB,_B,umt,dmt,vB,fmt,pmt,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,mmt,hmt,AB,jB,MB,NB,PB,gmt,_mt,FB,vmt,ymt,bmt,xmt,Smt,IB,Cmt,wmt,Tmt,Emt,LB,RB,zB,BB,VB,HB,UB,WB,Dmt,Omt,kmt,GB,KB,qB,JB,Amt,YB,XB,ZB,QB,jmt,Mmt,$B,eV,Nmt,tV,Pmt,Fmt,Imt,Lmt,nV,rV,Rmt,zmt,iV,aV,Bmt,oV,Vmt,Hmt,Umt,Wmt,Gmt,sV,Kmt,qmt,cV,Jmt,Ymt,lV,Xmt,Zmt,Qmt,$mt,eht,tht,uV,dV,nht,rht,fV,iht,aht,pV,oht,sht,cht,mV,lht,uht,dht,fht,pht,mht,hV,gV,_V,vV,yV,hht,bV,ght,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,_ht,vht,MV,NV,PV,FV,IV,LV,yht,RV,bht,zV,BV,xht,Sht,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,Cht,QV,$V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH,hH,gH,_H,vH,yH,bH,wht,Tht,xH,SH,Eht,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,Dht,Oht,kht,Aht,jht,Mht,Nht,Pht,Fht,QH,Iht,$H,eU,Lht,tU,nU,rU,Rht,iU,aU,oU,zht,sU,Bht,cU,lU,uU,Vht,Hht,Uht,Wht,dU,Ght,Kht,qht,Jht,fU,Yht,Xht,pU,Zht,Qht,$ht,egt,mU,tgt,ngt,rgt,igt,agt,ogt,sgt,cgt,lgt,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU=o((()=>{Dot=Object.create,_I=Object.defineProperty,Oot=Object.getOwnPropertyDescriptor,vI=Object.getOwnPropertyNames,kot=Object.getPrototypeOf,Aot=Object.prototype.hasOwnProperty,Y=(e,t)=>_I(e,`name`,{value:t,configurable:!0}),jot=(e,t)=>function(){return e&&(t=(0,e[vI(e)[0]])(e=0)),t},yI=(e,t)=>function(){return t||(0,e[vI(e)[0]])((t={exports:{}}).exports,t),t.exports},Mot=(e,t)=>{for(var n in t)_I(e,n,{get:t[n],enumerable:!0})},Not=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of vI(t))!Aot.call(e,i)&&i!==n&&_I(e,i,{get:()=>t[i],enumerable:!(r=Oot(t,i))||r.enumerable});return e},bI=(e,t,n)=>(n=e==null?{}:Dot(kot(e)),Not(t||!e||!e.__esModule?_I(n,`default`,{value:e,enumerable:!0}):n,e)),Pot=e=>Not(_I({},`__esModule`,{value:!0}),e),xI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=n,e.number=r,e.error=i,e.func=a,e.array=o,e.stringArray=s;function t(e){return e===!0||e===!1}Y(t,`boolean`);function n(e){return typeof e==`string`||e instanceof String}Y(n,`string`);function r(e){return typeof e==`number`||e instanceof Number}Y(r,`number`);function i(e){return e instanceof Error}Y(i,`error`);function a(e){return typeof e==`function`}Y(a,`func`);function o(e){return Array.isArray(e)}Y(o,`array`);function s(e){return o(e)&&e.every(e=>n(e))}Y(s,`stringArray`)}}),SI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;on,next:Y(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:Y(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:Y(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw Error(`Invalid list`);if(n===t.First||n===t.Last){if(n===t.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===t.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=n,e.LRUCache=class extends n{static{Y(this,`LRUCache`)}_limit;_ratio;constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=t.AsNew){return super.get(e,n)}peek(e){return super.get(e,t.None)}set(e,n){return super.set(e,n,t.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),Iot=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}Y(t,`create`),e.create=t})(t||(e.Disposable=t={}))}}),CI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function n(){if(t===void 0)throw Error(`No runtime abstraction layer installed`);return t}Y(n,`RAL`),(function(e){function n(e){if(e===void 0)throw Error(`No runtime abstraction layer provided`);t=e}Y(n,`install`),e.install=n})(n||={}),e.default=n}}),wI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var n=t(CI()),r;(function(e){let t={dispose(){}};e.None=function(){return t}})(r||(e.Event=r={}));var i=class{static{Y(this,`CallbackList`)}_callbacks;_contexts;add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:Y(()=>this.remove(e,t),`dispose`)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||=new i,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:Y(()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},`dispose`)};return Array.isArray(r)&&r.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}}}}),TI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length!==0&&this._active!==this._capacity&&(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`Too many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),zot=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property. -${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,a.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),EI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;othis.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(u,t.byteLength.toString(),d),n.push(d),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),Bot=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,n=10,r=`\r +`}function mI(e){return{documentation:{CommentProvider:Y(e=>new cV(e),`CommentProvider`),DocumentationProvider:Y(e=>new Bmt(e),`DocumentationProvider`)},parser:{AsyncParser:Y(e=>new Vmt(e),`AsyncParser`),GrammarConfig:Y(e=>Aet(e),`GrammarConfig`),LangiumParser:Y(e=>jat(e),`LangiumParser`),CompletionParser:Y(e=>Aat(e),`CompletionParser`),ValueConverter:Y(()=>new wB,`ValueConverter`),TokenBuilder:Y(()=>new CB,`TokenBuilder`),Lexer:Y(e=>new Lmt(e),`Lexer`),ParserErrorMessageProvider:Y(()=>new xB,`ParserErrorMessageProvider`),LexerErrorMessageProvider:Y(()=>new Fmt,`LexerErrorMessageProvider`)},workspace:{AstNodeLocator:Y(()=>new QB,`AstNodeLocator`),AstNodeDescriptionProvider:Y(e=>new XB(e),`AstNodeDescriptionProvider`),ReferenceDescriptionProvider:Y(e=>new ZB(e),`ReferenceDescriptionProvider`)},references:{Linker:Y(e=>new wmt(e),`Linker`),NameProvider:Y(()=>new Tmt,`NameProvider`),ScopeProvider:Y(e=>new Omt(e),`ScopeProvider`),ScopeComputation:Y(e=>new zB(e),`ScopeComputation`),References:Y(e=>new Emt(e),`References`)},serializer:{Hydrator:Y(e=>new Wmt(e),`Hydrator`),JsonSerializer:Y(e=>new kmt(e),`JsonSerializer`)},validation:{DocumentValidator:Y(e=>new Amt(e),`DocumentValidator`),ValidationRegistry:Y(e=>new qB(e),`ValidationRegistry`)},shared:Y(()=>e.shared,`shared`)}}function hI(e){return{ServiceRegistry:Y(e=>new GB(e),`ServiceRegistry`),workspace:{LangiumDocuments:Y(e=>new xmt(e),`LangiumDocuments`),LangiumDocumentFactory:Y(e=>new bmt(e),`LangiumDocumentFactory`),DocumentBuilder:Y(e=>new Nmt(e),`DocumentBuilder`),IndexManager:Y(e=>new tV(e),`IndexManager`),WorkspaceManager:Y(e=>new Pmt(e),`WorkspaceManager`),FileSystemProvider:Y(t=>e.fileSystemProvider(t),`FileSystemProvider`),WorkspaceLock:Y(()=>new Umt,`WorkspaceLock`),ConfigurationProvider:Y(e=>new Mmt(e),`ConfigurationProvider`)},profilers:{}}}function gI(e,t,n,r,i,a,o,s,l){return aot([e,t,n,r,i,a,o,s,l].reduce(_I,{}))}function aot(e,t){let n=new Proxy({},{deleteProperty:Y(()=>!1,`deleteProperty`),set:Y(()=>{throw Error(`Cannot set property on injected service container`)},`set`),get:Y((r,i)=>i===Kmt||oot(r,i,e,t||n),`get`),getOwnPropertyDescriptor:Y((r,i)=>(oot(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),`getOwnPropertyDescriptor`),has:Y((t,n)=>n in e,`has`),ownKeys:Y(()=>[...Object.getOwnPropertyNames(e)],`ownKeys`)});return n}function oot(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw Error(`Construction failure. Please make sure that your dependencies are constructable. Cause: `+e[t]);if(e[t]===lV)throw Error(`Cycle detected. Please make "`+String(t)+`" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies`);return e[t]}if(t in n){let i=n[t];e[t]=lV;try{e[t]=typeof i==`function`?i(r):aot(i,r)}catch(n){throw e[t]=n instanceof Error?n:void 0,n}return e[t]}}function _I(e,t){if(t){for(let[n,r]of Object.entries(t))if(n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&r!=null){if(typeof r==`object`){let t=e[n];e[n]=_I(typeof t==`object`&&t?t:{},r)}else e[n]=r}}return e}function sot(){let e=gI(hI(uV),Jmt),t=gI(mI({shared:e}),dV);return e.ServiceRegistry.register(t),t}function vI(e){let t=sot(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,MB.parse(`memory:/${n.name??`grammar`}.langium`)),n}function cot(e){return UH.isInstance(e,CV.$type)}function lot(e){return UH.isInstance(e,TV.$type)}function uot(e){return UH.isInstance(e,OV.$type)}function yI(e){return UH.isInstance(e,MV.$type)}function dot(e){return UH.isInstance(e,FV.$type)}function fot(e){return UH.isInstance(e,IV.$type)}function pot(e){return e===`rmo`||e===`readmodel`||e===`ui`||e===`cmd`||e===`command`||e===`evt`||e===`event`||e===`pcr`||e===`processor`}function mot(e){return UH.isInstance(e,YV.$type)}function hot(e){return UH.isInstance(e,eH.$type)}function got(e){return UH.isInstance(e,nH.$type)}function bI(e){return UH.isInstance(e,sH.$type)}function _ot(e){return UH.isInstance(e,uH.$type)}function vot(e){return UH.isInstance(e,dH.$type)}function xI(e){return UH.isInstance(e,hH.$type)}function yot(e){return UH.isInstance(e,gH.$type)}function bot(e){return UH.isInstance(e,bH.$type)}function xot(e){return UH.isInstance(e,xH.$type)}function Sot(e){return UH.isInstance(e,CH.$type)}function Cot(e){return UH.isInstance(e,DH.$type)}function wot(e){return UH.isInstance(e,LH.$type)}function SI(e){return UH.isInstance(e,RH.$type)}function Tot(e){return UH.isInstance(e,HH.$type)}var Eot,CI,Dot,Oot,kot,Aot,Y,jot,wI,Mot,Not,TI,Pot,EI,Fot,Iot,Lot,DI,OI,kI,Rot,zot,Bot,Vot,Hot,Uot,AI,jI,Wot,Got,MI,Kot,NI,PI,qot,Jot,Yot,Xot,Zot,Qot,$ot,est,tst,nst,rst,ist,FI,II,LI,RI,zI,ast,BI,ost,sst,cst,VI,lst,ust,dst,HI,fst,pst,mst,hst,gst,UI,_st,vst,yst,WI,bst,xst,Sst,Cst,wst,Tst,Est,Dst,Ost,kst,Ast,jst,Mst,Nst,Pst,Fst,Ist,GI,Lst,Rst,zst,Bst,Vst,Hst,Ust,Wst,Gst,Kst,qst,Jst,Yst,Xst,Zst,Qst,KI,$st,ect,tct,nct,rct,qI,ict,act,oct,JI,YI,sct,XI,cct,lct,uct,ZI,dct,fct,pct,QI,mct,hct,$I,gct,_ct,vct,yct,bct,xct,Sct,eL,Cct,wct,Tct,Ect,tL,Dct,nL,Oct,rL,kct,iL,aL,Act,oL,jct,Mct,sL,cL,Nct,Pct,Fct,lL,Ict,uL,dL,Lct,fL,pL,mL,hL,Rct,gL,zct,_L,vL,yL,bL,xL,Bct,SL,CL,Vct,Hct,Uct,wL,TL,EL,DL,OL,kL,Wct,AL,jL,ML,NL,PL,Gct,FL,IL,LL,Kct,RL,zL,BL,qct,VL,HL,Jct,Yct,UL,Xct,Zct,Qct,$ct,elt,tlt,nlt,WL,rlt,ilt,alt,olt,slt,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,clt,llt,iR,ult,dlt,aR,flt,oR,sR,plt,cR,mlt,hlt,lR,glt,_lt,vlt,uR,ylt,blt,xlt,Slt,dR,fR,pR,Clt,wlt,Tlt,Elt,Dlt,Olt,klt,Alt,jlt,mR,hR,Mlt,gR,Nlt,Plt,Flt,Ilt,Llt,Rlt,_R,zlt,vR,Blt,Vlt,Hlt,Ult,yR,Wlt,Glt,Klt,qlt,bR,Jlt,Ylt,Xlt,Zlt,Qlt,$lt,eut,tut,nut,xR,rut,iut,SR,aut,out,CR,sut,cut,lut,wR,uut,dut,fut,put,mut,hut,gut,_ut,vut,yut,but,xut,Sut,Cut,wut,TR,ER,Tut,DR,Eut,Dut,Out,kut,Aut,jut,Mut,Nut,Put,Fut,Iut,OR,Lut,Rut,zut,But,Vut,Hut,kR,AR,Uut,Wut,Gut,jR,Kut,qut,Jut,Yut,Xut,MR,NR,Zut,Qut,PR,$ut,edt,FR,tdt,ndt,rdt,idt,IR,adt,odt,sdt,cdt,ldt,udt,ddt,fdt,LR,RR,zR,BR,pdt,mdt,hdt,gdt,_dt,vdt,ydt,bdt,xdt,Sdt,Cdt,wdt,Tdt,Edt,Ddt,Odt,kdt,VR,Adt,jdt,HR,Mdt,Ndt,Pdt,Fdt,Idt,Ldt,Rdt,zdt,Bdt,Vdt,Hdt,Udt,Wdt,Gdt,Kdt,UR,qdt,Jdt,Ydt,Xdt,Zdt,Qdt,$dt,WR,eft,tft,nft,rft,ift,GR,aft,oft,sft,cft,lft,uft,dft,KR,qR,fft,JR,pft,mft,YR,hft,gft,_ft,vft,yft,bft,xft,Sft,Cft,wft,Tft,Eft,Dft,Oft,kft,XR,Aft,jft,Mft,Nft,Pft,Fft,Ift,Lft,Rft,zft,Bft,Vft,Hft,Uft,ZR,Wft,Gft,Kft,QR,qft,Jft,Yft,$R,Xft,Zft,Qft,$ft,ept,tpt,npt,rpt,ipt,apt,opt,ez,tz,spt,cpt,nz,lpt,rz,upt,iz,dpt,fpt,ppt,az,mpt,hpt,gpt,_pt,vpt,ypt,bpt,xpt,oz,Spt,sz,cz,Cpt,lz,wpt,Tpt,Ept,Dpt,Opt,kpt,Apt,jpt,uz,Mpt,Npt,dz,Ppt,Fpt,Ipt,Lpt,fz,Rpt,pz,mz,zpt,Bpt,hz,gz,_z,Vpt,Hpt,vz,Upt,Wpt,yz,Gpt,Kpt,qpt,bz,xz,Jpt,Ypt,Sz,Cz,wz,Tz,Ez,Dz,Xpt,Oz,Zpt,kz,Qpt,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,$pt,Uz,Wz,emt,tmt,Gz,Kz,qz,Jz,Yz,Xz,nmt,rmt,Zz,imt,amt,Qz,$z,eB,omt,tB,smt,nB,rB,iB,cmt,aB,oB,sB,cB,lB,lmt,umt,uB,dB,fB,pB,dmt,mB,hB,fmt,gB,_B,vB,pmt,yB,bB,xB,mmt,hmt,SB,gmt,CB,wB,TB,EB,DB,_mt,OB,kB,AB,jB,vmt,MB,NB,PB,ymt,FB,bmt,xmt,IB,Smt,Cmt,wmt,Tmt,Emt,LB,RB,zB,BB,VB,HB,UB,WB,Dmt,Omt,kmt,GB,KB,qB,JB,Amt,YB,XB,ZB,QB,jmt,Mmt,$B,eV,Nmt,tV,Pmt,Fmt,Imt,Lmt,nV,rV,Rmt,zmt,iV,aV,oV,sV,Bmt,cV,Vmt,Hmt,Umt,Wmt,Gmt,Kmt,lV,qmt,uV,dV,Jmt,fV,Ymt,Xmt,Zmt,Qmt,pV,mV,$mt,eht,hV,tht,nht,rht,iht,aht,oht,sht,cht,lht,uht,dht,gV,fht,pht,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,mht,OV,kV,AV,jV,MV,NV,hht,PV,FV,IV,LV,RV,ght,_ht,vht,zV,yht,BV,VV,bht,HV,xht,UV,Sht,Cht,wht,WV,GV,KV,qV,Tht,JV,Eht,YV,XV,Dht,ZV,QV,$V,Oht,eH,tH,nH,rH,kht,iH,aH,oH,sH,cH,lH,uH,dH,fH,Aht,jht,Mht,Nht,Pht,pH,Fht,Iht,mH,hH,gH,_H,vH,yH,bH,xH,SH,CH,wH,Lht,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,Rht,UH,zht,Bht,Vht,Hht,Uht,WH,Wht,GH,Ght,Kht,KH,qH,JH,YH,XH,ZH,QH,qht,$H,Jht,Yht,eU,tU,Xht,Zht,Qht,$ht,nU,egt,tgt,ngt,rgt,rU,igt,agt,iU,ogt,sgt,cgt,lgt,aU,ugt,dgt,fgt,pgt,oU,mgt,hgt,ggt,_gt,sU,cU,lU,uU,dU,fU,pU,vgt,mU,hU,ygt,bgt,gU,_U,vU,yU=o((()=>{Eot=Object.create,CI=Object.defineProperty,Dot=Object.getOwnPropertyDescriptor,Oot=Object.getOwnPropertyNames,kot=Object.getPrototypeOf,Aot=Object.prototype.hasOwnProperty,Y=(e,t)=>CI(e,`name`,{value:t,configurable:!0}),jot=(e,t)=>function(){return e&&(t=(0,e[Oot(e)[0]])(e=0)),t},wI=(e,t)=>function(){return t||(0,e[Oot(e)[0]])((t={exports:{}}).exports,t),t.exports},Mot=(e,t)=>{for(var n in t)CI(e,n,{get:t[n],enumerable:!0})},Not=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Oot(t))!Aot.call(e,i)&&i!==n&&CI(e,i,{get:()=>t[i],enumerable:!(r=Dot(t,i))||r.enumerable});return e},TI=(e,t,n)=>(n=e==null?{}:Eot(kot(e)),Not(t||!e||!e.__esModule?CI(n,`default`,{value:e,enumerable:!0}):n,e)),Pot=e=>Not(CI({},`__esModule`,{value:!0}),e),EI=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=n,e.number=r,e.error=i,e.func=a,e.array=o,e.stringArray=s;function t(e){return e===!0||e===!1}Y(t,`boolean`);function n(e){return typeof e==`string`||e instanceof String}Y(n,`string`);function r(e){return typeof e==`number`||e instanceof Number}Y(r,`number`);function i(e){return e instanceof Error}Y(i,`error`);function a(e){return typeof e==`function`}Y(a,`func`);function o(e){return Array.isArray(e)}Y(o,`array`);function s(e){return o(e)&&e.every(e=>n(e))}Y(s,`stringArray`)}}),Fot=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;on,next:Y(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:Y(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:Y(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw Error(`Invalid list`);if(n===t.First||n===t.Last){if(n===t.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===t.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=n,e.LRUCache=class extends n{static{Y(this,`LRUCache`)}_limit;_ratio;constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=t.AsNew){return super.get(e,n)}peek(e){return super.get(e,t.None)}set(e,n){return super.set(e,n,t.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),Lot=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}Y(t,`create`),e.create=t})(t||(e.Disposable=t={}))}}),DI=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function n(){if(t===void 0)throw Error(`No runtime abstraction layer installed`);return t}Y(n,`RAL`),(function(e){function n(e){if(e===void 0)throw Error(`No runtime abstraction layer provided`);t=e}Y(n,`install`),e.install=n})(n||={}),e.default=n}}),OI=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var n=t(DI()),r;(function(e){let t={dispose(){}};e.None=function(){return t}})(r||(e.Event=r={}));var i=class{static{Y(this,`CallbackList`)}_callbacks;_contexts;add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:Y(()=>this.remove(e,t),`dispose`)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||=new i,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:Y(()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},`dispose`)};return Array.isArray(r)&&r.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}}}}),kI=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length!==0&&this._active!==this._capacity&&(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`Too many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),Bot=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,a.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),Vot=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;othis.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(u,t.byteLength.toString(),d),n.push(d),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),Hot=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,n=10,r=`\r `;e.AbstractMessageBuffer=class{static{Y(this,`AbstractMessageBuffer`)}_encoding;_chunks;_totalLength;constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let i=0,a=0,o=0,s=0;row:for(;athis._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}}}),Vot=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o{},`error`),warn:Y(()=>{},`warn`),info:Y(()=>{},`info`),log:Y(()=>{},`log`)});var g;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(g||(e.Trace=g={}));var _;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(_||(e.TraceValue=_={})),e.TraceValues=_,(function(e){function t(t){if(!o.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}Y(t,`fromString`),e.fromString=t;function n(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}Y(n,`toString`),e.toString=n})(g||(e.Trace=g={}));var v;(function(e){e.Text=`text`,e.JSON=`json`})(v||(e.TraceFormat=v={})),(function(e){function t(t){return o.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}Y(t,`fromString`),e.fromString=t})(v||(e.TraceFormat=v={}));var y;(function(e){e.type=new s.NotificationType(`$/setTrace`)})(y||(e.SetTraceNotification=y={}));var b;(function(e){e.type=new s.NotificationType(`$/logTrace`)})(b||(e.LogTraceNotification=b={}));var x;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(x||(e.ConnectionErrors=x={}));var S=class e extends Error{static{Y(this,`ConnectionError`)}code;constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=S;var C;(function(e){function t(e){let t=e;return t&&o.func(t.cancelUndispatched)}Y(t,`is`),e.is=t})(C||(e.ConnectionStrategy=C={}));var w;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&o.func(t.createCancellationTokenSource)&&(t.dispose===void 0||o.func(t.dispose))}Y(t,`is`),e.is=t})(w||(e.IdCancellationReceiverStrategy=w={}));var T;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&o.func(t.createCancellationTokenSource)&&(t.dispose===void 0||o.func(t.dispose))}Y(t,`is`),e.is=t})(T||(e.RequestCancellationReceiverStrategy=T={}));var E;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new d.CancellationTokenSource}});function t(e){return w.is(e)||T.is(e)}Y(t,`is`),e.is=t})(E||(e.CancellationReceiverStrategy=E={}));var D;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(f.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&o.func(t.sendCancellation)&&o.func(t.cleanup)}Y(t,`is`),e.is=t})(D||(e.CancellationSenderStrategy=D={}));var O;(function(e){e.Message=Object.freeze({receiver:E.Message,sender:D.Message});function t(e){let t=e;return t&&E.is(t.receiver)&&D.is(t.sender)}Y(t,`is`),e.is=t})(O||(e.CancellationStrategy=O={}));var k;(function(e){function t(e){let t=e;return t&&o.func(t.handleMessage)}Y(t,`is`),e.is=t})(k||(e.MessageStrategy=k={}));var A;(function(e){function t(e){let t=e;return t&&(O.is(t.cancellationStrategy)||C.is(t.connectionStrategy)||k.is(t.messageStrategy)||o.number(t.maxParallelism))}Y(t,`is`),e.is=t})(A||(e.ConnectionOptions=A={}));var j;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(j||={});function M(t,n,r,i){let _=r===void 0?e.NullLogger:r,C=0,T=0,E=0,D=i?.maxParallelism??-1,A=0,M,ee=new Map,te,ne=new Map,re=new Map,ie,ae=new l.LinkedMap,oe=new Map,se=new Set,ce=new Map,le=g.Off,ue=v.Text,de,fe=j.New,pe=new u.Emitter,me=new u.Emitter,he=new u.Emitter,ge=new u.Emitter,_e=new u.Emitter,ve=i&&i.cancellationStrategy?i.cancellationStrategy:O.Message;function ye(e){}Y(ye,`cancelUndispatched`);function be(){return fe===j.Listening}Y(be,`isListening`);function xe(){return fe===j.Closed}Y(xe,`isClosed`);function Se(){return fe===j.Disposed}Y(Se,`isDisposed`);function Ce(){(fe===j.New||fe===j.Listening)&&(fe=j.Closed,me.fire(void 0))}Y(Ce,`closeHandler`);function we(e){pe.fire([e,void 0,void 0])}Y(we,`readErrorHandler`);function Te(e){pe.fire(e)}Y(Te,`writeErrorHandler`),t.onClose(Ce),t.onError(we),n.onClose(Ce),n.onError(Te);function Ee(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}Y(Ee,`createRequestQueueKey`);function De(e){return e===null?`res-unknown-`+(++E).toString():`res-`+e.toString()}Y(De,`createResponseQueueKey`);function Oe(){return`not-`+(++T).toString()}Y(Oe,`createNotificationQueueKey`);function ke(e,t){s.Message.isRequest(t)?e.set(Ee(t.id),t):s.Message.isResponse(t)?D===-1?e.set(De(t.id),t):Pe(t):e.set(Oe(),t)}Y(ke,`addMessageToQueue`);function Ae(){ie||ae.size===0||D!==-1&&A>=D||(ie=(0,a.default)().timer.setImmediate(async()=>{if(ie=void 0,ae.size===0||D!==-1&&A>=D)return;let e=ae.shift(),t;try{A++;let n=i?.messageStrategy;t=k.is(n)?n.handleMessage(e,je):je(e)}catch(e){_.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then(()=>{A--,Ae()}).catch(e=>{_.error(`Processing message queue failed: ${e.toString()}`)}):A--,Ae()}}))}Y(Ae,`triggerMessageQueue`);async function je(e){return s.Message.isRequest(e)?Ne(e):s.Message.isNotification(e)?Fe(e):s.Message.isResponse(e)?Pe(e):Ie(e)}Y(je,`handleMessage`);let Me=Y(e=>{try{if(s.Message.isNotification(e)&&e.method===f.type.method){let t=e.params.id,r=Ee(t),a=ae.get(r);if(s.Message.isRequest(a)){let o=i?.connectionStrategy,s=o&&o.cancelUndispatched?o.cancelUndispatched(a,ye):void 0;if(s&&(s.error!==void 0||s.result!==void 0)){ae.delete(r),ce.delete(t),s.id=a.id,Be(s,e.method,Date.now()),n.write(s).catch(()=>_.error(`Sending response for canceled message failed.`));return}}let o=ce.get(t);if(o!==void 0){o.cancel(),He(e);return}se.add(t)}ke(ae,e)}finally{Ae()}},`callback`);async function Ne(e){if(Se())return Promise.resolve();function t(t,r,i){let a={jsonrpc:`2.0`,id:e.id};return t instanceof s.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,Be(a,r,i),n.write(a)}Y(t,`reply`);function r(t,r,i){let a={jsonrpc:`2.0`,id:e.id,error:t.toJson()};return Be(a,r,i),n.write(a)}Y(r,`replyError`),Ve(e);let i=ee.get(e.method),a,l;i&&(a=i.type,l=i.handler);let u=Date.now();if(l||M){let n=e.id??String(Date.now()),i=w.is(ve.receiver)?ve.receiver.createCancellationTokenSource(n):ve.receiver.createCancellationTokenSource(e);e.id!==null&&se.has(e.id)&&i.cancel(),e.id!==null&&ce.set(n,i);try{let n;if(l){if(e.params===void 0){if(a!==void 0&&a.numberOfParams!==0)return r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);n=l(i.token)}else if(Array.isArray(e.params)){if(a!==void 0&&a.parameterStructures===s.ParameterStructures.byName)return r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);n=l(...e.params,i.token)}else{if(a!==void 0&&a.parameterStructures===s.ParameterStructures.byPosition)return r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);n=l(e.params,i.token)}}else M&&(n=M(e.method,e.params,i.token));await t(await n,e.method,u)}catch(n){n instanceof s.ResponseError?await t(n,e.method,u):n&&o.string(n.message)?await r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):await r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}finally{ce.delete(n)}}else await r(new s.ResponseError(s.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}Y(Ne,`handleRequest`);function Pe(e){if(!Se()){if(e.id===null)e.error?_.error(`Received response message without id: Error is: +${n}`);let i=n.substr(0,r),a=n.substr(r+1).trim();u.set(e?i.toLowerCase():i,a)}return u}tryReadBody(e){if(!(this._totalLengththis._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}}}),Uot=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o{},`error`),warn:Y(()=>{},`warn`),info:Y(()=>{},`info`),log:Y(()=>{},`log`)});var g;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(g||(e.Trace=g={}));var _;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(_||(e.TraceValue=_={})),e.TraceValues=_,(function(e){function t(t){if(!o.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}Y(t,`fromString`),e.fromString=t;function n(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}Y(n,`toString`),e.toString=n})(g||(e.Trace=g={}));var v;(function(e){e.Text=`text`,e.JSON=`json`})(v||(e.TraceFormat=v={})),(function(e){function t(t){return o.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}Y(t,`fromString`),e.fromString=t})(v||(e.TraceFormat=v={}));var y;(function(e){e.type=new s.NotificationType(`$/setTrace`)})(y||(e.SetTraceNotification=y={}));var b;(function(e){e.type=new s.NotificationType(`$/logTrace`)})(b||(e.LogTraceNotification=b={}));var x;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(x||(e.ConnectionErrors=x={}));var S=class e extends Error{static{Y(this,`ConnectionError`)}code;constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=S;var C;(function(e){function t(e){let t=e;return t&&o.func(t.cancelUndispatched)}Y(t,`is`),e.is=t})(C||(e.ConnectionStrategy=C={}));var w;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&o.func(t.createCancellationTokenSource)&&(t.dispose===void 0||o.func(t.dispose))}Y(t,`is`),e.is=t})(w||(e.IdCancellationReceiverStrategy=w={}));var T;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&o.func(t.createCancellationTokenSource)&&(t.dispose===void 0||o.func(t.dispose))}Y(t,`is`),e.is=t})(T||(e.RequestCancellationReceiverStrategy=T={}));var E;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new d.CancellationTokenSource}});function t(e){return w.is(e)||T.is(e)}Y(t,`is`),e.is=t})(E||(e.CancellationReceiverStrategy=E={}));var D;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(f.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&o.func(t.sendCancellation)&&o.func(t.cleanup)}Y(t,`is`),e.is=t})(D||(e.CancellationSenderStrategy=D={}));var O;(function(e){e.Message=Object.freeze({receiver:E.Message,sender:D.Message});function t(e){let t=e;return t&&E.is(t.receiver)&&D.is(t.sender)}Y(t,`is`),e.is=t})(O||(e.CancellationStrategy=O={}));var k;(function(e){function t(e){let t=e;return t&&o.func(t.handleMessage)}Y(t,`is`),e.is=t})(k||(e.MessageStrategy=k={}));var A;(function(e){function t(e){let t=e;return t&&(O.is(t.cancellationStrategy)||C.is(t.connectionStrategy)||k.is(t.messageStrategy)||o.number(t.maxParallelism))}Y(t,`is`),e.is=t})(A||(e.ConnectionOptions=A={}));var j;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(j||={});function M(t,n,r,i){let _=r===void 0?e.NullLogger:r,C=0,T=0,E=0,D=i?.maxParallelism??-1,A=0,M,ee=new Map,te,ne=new Map,re=new Map,ie,ae=new l.LinkedMap,oe=new Map,se=new Set,ce=new Map,le=g.Off,ue=v.Text,de,fe=j.New,pe=new u.Emitter,me=new u.Emitter,he=new u.Emitter,ge=new u.Emitter,_e=new u.Emitter,ve=i&&i.cancellationStrategy?i.cancellationStrategy:O.Message;function ye(e){}Y(ye,`cancelUndispatched`);function be(){return fe===j.Listening}Y(be,`isListening`);function xe(){return fe===j.Closed}Y(xe,`isClosed`);function Se(){return fe===j.Disposed}Y(Se,`isDisposed`);function Ce(){(fe===j.New||fe===j.Listening)&&(fe=j.Closed,me.fire(void 0))}Y(Ce,`closeHandler`);function we(e){pe.fire([e,void 0,void 0])}Y(we,`readErrorHandler`);function Te(e){pe.fire(e)}Y(Te,`writeErrorHandler`),t.onClose(Ce),t.onError(we),n.onClose(Ce),n.onError(Te);function Ee(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}Y(Ee,`createRequestQueueKey`);function De(e){return e===null?`res-unknown-`+(++E).toString():`res-`+e.toString()}Y(De,`createResponseQueueKey`);function Oe(){return`not-`+(++T).toString()}Y(Oe,`createNotificationQueueKey`);function ke(e,t){s.Message.isRequest(t)?e.set(Ee(t.id),t):s.Message.isResponse(t)?D===-1?e.set(De(t.id),t):Pe(t):e.set(Oe(),t)}Y(ke,`addMessageToQueue`);function Ae(){ie||ae.size===0||D!==-1&&A>=D||(ie=(0,a.default)().timer.setImmediate(async()=>{if(ie=void 0,ae.size===0||D!==-1&&A>=D)return;let e=ae.shift(),t;try{A++;let n=i?.messageStrategy;t=k.is(n)?n.handleMessage(e,je):je(e)}catch(e){_.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then(()=>{A--,Ae()}).catch(e=>{_.error(`Processing message queue failed: ${e.toString()}`)}):A--,Ae()}}))}Y(Ae,`triggerMessageQueue`);async function je(e){return s.Message.isRequest(e)?Ne(e):s.Message.isNotification(e)?Fe(e):s.Message.isResponse(e)?Pe(e):Ie(e)}Y(je,`handleMessage`);let Me=Y(e=>{try{if(s.Message.isNotification(e)&&e.method===f.type.method){let t=e.params.id,r=Ee(t),a=ae.get(r);if(s.Message.isRequest(a)){let o=i?.connectionStrategy,s=o&&o.cancelUndispatched?o.cancelUndispatched(a,ye):void 0;if(s&&(s.error!==void 0||s.result!==void 0)){ae.delete(r),ce.delete(t),s.id=a.id,Be(s,e.method,Date.now()),n.write(s).catch(()=>_.error(`Sending response for canceled message failed.`));return}}let o=ce.get(t);if(o!==void 0){o.cancel(),He(e);return}se.add(t)}ke(ae,e)}finally{Ae()}},`callback`);async function Ne(e){if(Se())return Promise.resolve();function t(t,r,i){let a={jsonrpc:`2.0`,id:e.id};return t instanceof s.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,Be(a,r,i),n.write(a)}Y(t,`reply`);function r(t,r,i){let a={jsonrpc:`2.0`,id:e.id,error:t.toJson()};return Be(a,r,i),n.write(a)}Y(r,`replyError`),Ve(e);let i=ee.get(e.method),a,l;i&&(a=i.type,l=i.handler);let u=Date.now();if(l||M){let n=e.id??String(Date.now()),i=w.is(ve.receiver)?ve.receiver.createCancellationTokenSource(n):ve.receiver.createCancellationTokenSource(e);e.id!==null&&se.has(e.id)&&i.cancel(),e.id!==null&&ce.set(n,i);try{let n;if(l){if(e.params===void 0){if(a!==void 0&&a.numberOfParams!==0)return r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);n=l(i.token)}else if(Array.isArray(e.params)){if(a!==void 0&&a.parameterStructures===s.ParameterStructures.byName)return r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);n=l(...e.params,i.token)}else{if(a!==void 0&&a.parameterStructures===s.ParameterStructures.byPosition)return r(new s.ResponseError(s.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);n=l(e.params,i.token)}}else M&&(n=M(e.method,e.params,i.token));await t(await n,e.method,u)}catch(n){n instanceof s.ResponseError?await t(n,e.method,u):n&&o.string(n.message)?await r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):await r(new s.ResponseError(s.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}finally{ce.delete(n)}}else await r(new s.ResponseError(s.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}Y(Ne,`handleRequest`);function Pe(e){if(!Se()){if(e.id===null)e.error?_.error(`Received response message without id: Error is: ${JSON.stringify(e.error,void 0,4)}`):_.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=oe.get(t);if(Ue(e,n),n!==void 0){oe.delete(t);try{if(e.error){let t=e.error;n.reject(new s.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?_.error(`Response handler '${n.method}' failed with message: ${e.message}`):_.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}}Y(Pe,`handleResponse`);async function Fe(e){if(Se())return;let t,n;if(e.method===f.type.method){let t=e.params.id;se.delete(t),He(e);return}{let r=ne.get(e.method);r&&(n=r.handler,t=r.type)}if(n||te)try{if(He(e),n){if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==s.ParameterStructures.byName&&_.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){let r=e.params;e.method===m.type.method&&r.length===2&&p.is(r[0])?await n({token:r[0],value:r[1]}):(t!==void 0&&(t.parameterStructures===s.ParameterStructures.byName&&_.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&_.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${r.length} arguments`)),await n(...r))}else t!==void 0&&t.parameterStructures===s.ParameterStructures.byPosition&&_.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params)}else te&&await te(e.method,e.params)}catch(t){t.message?_.error(`Notification handler '${e.method}' failed with message: ${t.message}`):_.error(`Notification handler '${e.method}' failed unexpectedly.`)}else he.fire(e)}Y(Fe,`handleNotification`);function Ie(e){if(!e){_.error(`Received empty message.`);return}_.error(`Received message which is neither a response nor a notification message: -${JSON.stringify(e,null,4)}`);let t=e;if(o.string(t.id)||o.number(t.id)){let e=t.id,n=oe.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}Y(Ie,`handleInvalidMessage`);function Le(e){if(e!=null)switch(le){case g.Verbose:return JSON.stringify(e,null,4);case g.Compact:return JSON.stringify(e);default:return}}Y(Le,`stringifyTrace`);function Re(e){if(le!==g.Off&&de){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&e.params&&(t=`Params: ${Le(e.params)}`),de.log(`Sending request '${e.method} - (${e.id})'.`,t)}else We(`send-request`,e)}}Y(Re,`traceSendingRequest`);function ze(e){if(le!==g.Off&&de){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&(t=e.params?`Params: ${Le(e.params)}`:`No parameters provided.`),de.log(`Sending notification '${e.method}'.`,t)}else We(`send-notification`,e)}}Y(ze,`traceSendingNotification`);function Be(e,t,n){if(le!==g.Off&&de){if(ue===v.Text){let r;(le===g.Verbose||le===g.Compact)&&(e.error&&e.error.data?r=`Error data: ${Le(e.error.data)}`:e.result?r=`Result: ${Le(e.result)}`:e.error===void 0&&(r=`No result returned.`));let i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;de.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms.${i}`,r)}else We(`send-response`,e)}}Y(Be,`traceSendingResponse`);function Ve(e){if(le!==g.Off&&de){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&e.params&&(t=`Params: ${Le(e.params)}`),de.log(`Received request '${e.method} - (${e.id})'.`,t)}else We(`receive-request`,e)}}Y(Ve,`traceReceivedRequest`);function He(e){if(le!==g.Off&&de&&e.method!==b.type.method){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&(t=e.params?`Params: ${Le(e.params)}`:`No parameters provided.`),de.log(`Received notification '${e.method}'.`,t)}else We(`receive-notification`,e)}}Y(He,`traceReceivedNotification`);function Ue(e,t){if(le!==g.Off&&de){if(ue===v.Text){let n;if((le===g.Verbose||le===g.Compact)&&(e.error&&e.error.data?n=`Error data: ${Le(e.error.data)}`:e.result?n=`Result: ${Le(e.result)}`:e.error===void 0&&(n=`No result returned.`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;de.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else de.log(`Received response ${e.id} without active response promise.`,n)}else We(`receive-response`,e)}}Y(Ue,`traceReceivedResponse`);function We(e,t){if(!de||le===g.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};de.log(n)}Y(We,`logLSPMessage`);function Ge(){if(xe())throw new S(x.Closed,`Connection is closed.`);if(Se())throw new S(x.Disposed,`Connection is disposed.`)}Y(Ge,`throwIfClosedOrDisposed`);function Ke(){if(be())throw new S(x.AlreadyListening,`Connection is already listening`)}Y(Ke,`throwIfListening`);function qe(){if(!be())throw Error(`Call listen() first.`)}Y(qe,`throwIfNotListening`);function Je(e){return e===void 0?null:e}Y(Je,`undefinedToNull`);function Ye(e){if(e!==null)return e}Y(Ye,`nullToUndefined`);function Xe(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}Y(Xe,`isNamedParam`);function Ze(e,t){switch(e){case s.ParameterStructures.auto:return Xe(t)?Ye(t):[Je(t)];case s.ParameterStructures.byName:if(!Xe(t))throw Error(`Received parameters by name but param is not an object literal.`);return Ye(t);case s.ParameterStructures.byPosition:return[Je(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}Y(Ze,`computeSingleParam`);function Qe(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ze(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{Ge();let r,i;if(o.string(e)){r=e;let n=t[0],a=0,o=s.ParameterStructures.auto;s.ParameterStructures.is(n)&&(a=1,o=n);let l=t.length,u=l-a;switch(u){case 0:i=void 0;break;case 1:i=Ze(o,t[a]);break;default:if(o===s.ParameterStructures.byName)throw Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);i=t.slice(a,l).map(e=>Je(e))}}else{let n=t;r=e.method,i=Qe(e,n)}let a={jsonrpc:`2.0`,method:r,params:i};return ze(a),n.write(a).catch(e=>{throw _.error(`Sending notification failed.`),e})},`sendNotification`),onNotification:Y((e,t)=>{Ge();let n;return o.func(e)?te=e:t&&(o.string(e)?(n=e,ne.set(e,{type:void 0,handler:t})):(n=e.method,ne.set(e.method,{type:e,handler:t}))),{dispose:Y(()=>{n===void 0?te===e&&(te=void 0):ne.get(n)?.handler===t&&ne.delete(n)},`dispose`)}},`onNotification`),onProgress:Y((e,t,n)=>{if(re.has(t))throw Error(`Progress handler for token ${t} already registered`);return re.set(t,n),{dispose:Y(()=>{re.get(t)===n&&re.delete(t)},`dispose`)}},`onProgress`),sendProgress:Y((e,t,n)=>$e.sendNotification(m.type,{token:t,value:n}),`sendProgress`),onUnhandledProgress:ge.event,sendRequest:Y((e,...t)=>{Ge(),qe();function r(e,t){let n=ve.sender.sendCancellation(e,t);n===void 0?_.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch(()=>{_.log(`Sending cancellation messages for id ${t} failed.`)})}Y(r,`sendCancellation`);let i,a,l;if(o.string(e)){i=e;let n=t[0],r=t[t.length-1],o=0,u=s.ParameterStructures.auto;s.ParameterStructures.is(n)&&(o=1,u=n);let f=t.length;d.CancellationToken.is(r)&&(--f,l=r);let p=f-o;switch(p){case 0:a=void 0;break;case 1:a=Ze(u,t[o]);break;default:if(u===s.ParameterStructures.byName)throw Error(`Received ${p} parameters for 'by Name' request parameter structure.`);a=t.slice(o,f).map(e=>Je(e))}}else{let n=t;i=e.method,a=Qe(e,n);let r=e.numberOfParams;l=d.CancellationToken.is(n[r])?n[r]:void 0}let u=C++,f,p=!1;l!==void 0&&(l.isCancellationRequested?p=!0:f=l.onCancellationRequested(()=>{r($e,u)}));let m={jsonrpc:`2.0`,id:u,method:i,params:a};return Re(m),typeof ve.sender.enableCancellation==`function`&&ve.sender.enableCancellation(m),new Promise(async(e,t)=>{let a=Y(t=>{e(t),ve.sender.cleanup(u),f?.dispose()},`resolveWithCleanup`),o=Y(e=>{t(e),ve.sender.cleanup(u),f?.dispose()},`rejectWithCleanup`),l={method:i,timerStart:Date.now(),resolve:a,reject:o};try{oe.set(u,l),await n.write(m),p&&r($e,u)}catch(e){oe.delete(u),l.reject(new s.ResponseError(s.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),_.error(`Sending request failed.`)}})},`sendRequest`),onRequest:Y((e,t)=>{Ge();let n=null;return h.is(e)?(n=void 0,M=e):o.string(e)?(n=null,t!==void 0&&(n=e,ee.set(e,{handler:t,type:void 0}))):t!==void 0&&(n=e.method,ee.set(e.method,{type:e,handler:t})),{dispose:Y(()=>{n!==null&&(n===void 0?M===e&&(M=void 0):ee.get(n)?.handler===t&&ee.delete(n))},`dispose`)}},`onRequest`),hasPendingResponse:Y(()=>oe.size>0,`hasPendingResponse`),trace:Y(async(e,t,n)=>{let r=!1,i=v.Text;n!==void 0&&(o.boolean(n)?r=n:(r=n.sendNotification||!1,i=n.traceFormat||v.Text)),le=e,ue=i,de=le===g.Off?void 0:t,r&&!xe()&&!Se()&&await $e.sendNotification(y.type,{value:g.toString(e)})},`trace`),onError:pe.event,onClose:me.event,onUnhandledNotification:he.event,onDispose:_e.event,end:Y(()=>{n.end()},`end`),dispose:Y(()=>{if(Se())return;fe=j.Disposed,_e.fire(void 0);let e=new s.ResponseError(s.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of oe.values())t.reject(e);oe=new Map,ce=new Map,se=new Set,ae=new l.LinkedMap,o.func(n.dispose)&&n.dispose(),o.func(t.dispose)&&t.dispose()},`dispose`),listen:Y(()=>{Ge(),Ke(),fe=j.Listening,t.listen(Me)},`listen`),inspect:Y(()=>{(0,a.default)().console.log(`inspect`)},`inspect`)};return $e.onNotification(b.type,e=>{if(le===g.Off||!de)return;let t=le===g.Verbose||le===g.Compact;de.log(e.message,t?e.verbose:void 0)}),$e.onNotification(m.type,async e=>{let t=re.get(e.token);t?await t(e.value):ge.fire(e)}),$e}Y(M,`createMessageConnection`)}}),DI=yI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.TraceValue=e.Trace=void 0;var n=SI();Object.defineProperty(e,"Message",{enumerable:!0,get:Y(function(){return n.Message},`get`)}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:Y(function(){return n.RequestType},`get`)}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:Y(function(){return n.RequestType0},`get`)}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:Y(function(){return n.RequestType1},`get`)}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:Y(function(){return n.RequestType2},`get`)}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:Y(function(){return n.RequestType3},`get`)}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:Y(function(){return n.RequestType4},`get`)}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:Y(function(){return n.RequestType5},`get`)}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:Y(function(){return n.RequestType6},`get`)}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:Y(function(){return n.RequestType7},`get`)}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:Y(function(){return n.RequestType8},`get`)}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:Y(function(){return n.RequestType9},`get`)}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:Y(function(){return n.ResponseError},`get`)}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:Y(function(){return n.ErrorCodes},`get`)}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:Y(function(){return n.NotificationType},`get`)}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:Y(function(){return n.NotificationType0},`get`)}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:Y(function(){return n.NotificationType1},`get`)}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:Y(function(){return n.NotificationType2},`get`)}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:Y(function(){return n.NotificationType3},`get`)}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:Y(function(){return n.NotificationType4},`get`)}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:Y(function(){return n.NotificationType5},`get`)}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:Y(function(){return n.NotificationType6},`get`)}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:Y(function(){return n.NotificationType7},`get`)}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:Y(function(){return n.NotificationType8},`get`)}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:Y(function(){return n.NotificationType9},`get`)}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:Y(function(){return n.ParameterStructures},`get`)});var r=Fot();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:Y(function(){return r.LinkedMap},`get`)}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:Y(function(){return r.LRUCache},`get`)}),Object.defineProperty(e,"Touch",{enumerable:!0,get:Y(function(){return r.Touch},`get`)});var i=Iot();Object.defineProperty(e,"Disposable",{enumerable:!0,get:Y(function(){return i.Disposable},`get`)});var a=wI();Object.defineProperty(e,"Event",{enumerable:!0,get:Y(function(){return a.Event},`get`)}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:Y(function(){return a.Emitter},`get`)});var o=TI();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:Y(function(){return o.CancellationTokenSource},`get`)}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:Y(function(){return o.CancellationToken},`get`)});var s=Lot();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:Y(function(){return s.SharedArraySenderStrategy},`get`)}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:Y(function(){return s.SharedArrayReceiverStrategy},`get`)});var l=zot();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:Y(function(){return l.MessageReader},`get`)}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:Y(function(){return l.AbstractMessageReader},`get`)}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:Y(function(){return l.ReadableStreamMessageReader},`get`)});var u=EI();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:Y(function(){return u.MessageWriter},`get`)}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:Y(function(){return u.AbstractMessageWriter},`get`)}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:Y(function(){return u.WriteableStreamMessageWriter},`get`)});var d=Bot();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:Y(function(){return d.AbstractMessageBuffer},`get`)});var f=Vot();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:Y(function(){return f.ConnectionStrategy},`get`)}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:Y(function(){return f.ConnectionOptions},`get`)}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:Y(function(){return f.NullLogger},`get`)}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:Y(function(){return f.createMessageConnection},`get`)}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:Y(function(){return f.ProgressToken},`get`)}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:Y(function(){return f.ProgressType},`get`)}),Object.defineProperty(e,"Trace",{enumerable:!0,get:Y(function(){return f.Trace},`get`)}),Object.defineProperty(e,"TraceValue",{enumerable:!0,get:Y(function(){return f.TraceValue},`get`)}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:Y(function(){return f.TraceFormat},`get`)}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:Y(function(){return f.SetTraceNotification},`get`)}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:Y(function(){return f.LogTraceNotification},`get`)}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:Y(function(){return f.ConnectionErrors},`get`)}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:Y(function(){return f.ConnectionError},`get`)}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:Y(function(){return f.CancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"IdCancellationReceiverStrategy",{enumerable:!0,get:Y(function(){return f.IdCancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"RequestCancellationReceiverStrategy",{enumerable:!0,get:Y(function(){return f.RequestCancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:Y(function(){return f.CancellationSenderStrategy},`get`)}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:Y(function(){return f.CancellationStrategy},`get`)}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:Y(function(){return f.MessageStrategy},`get`)}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:Y(function(){return f.TraceValues},`get`)}),e.RAL=t(CI()).default}}),Hot={},Mot(Hot,{AnnotatedTextEdit:()=>II,ApplyKind:()=>vst,ChangeAnnotation:()=>PI,ChangeAnnotationIdentifier:()=>FI,CodeAction:()=>Fst,CodeActionContext:()=>Nst,CodeActionKind:()=>Mst,CodeActionTag:()=>Pst,CodeActionTriggerKind:()=>WI,CodeDescription:()=>tst,CodeLens:()=>Ist,Color:()=>Jot,ColorInformation:()=>Yot,ColorPresentation:()=>jI,Command:()=>MI,CompletionItem:()=>bst,CompletionItemKind:()=>pst,CompletionItemLabelDetails:()=>yst,CompletionItemTag:()=>hst,CompletionList:()=>UI,CreateFile:()=>RI,DeleteFile:()=>ist,Diagnostic:()=>nst,DiagnosticRelatedInformation:()=>Qot,DiagnosticSeverity:()=>$ot,DiagnosticTag:()=>est,DocumentHighlight:()=>Est,DocumentHighlightKind:()=>Tst,DocumentLink:()=>Lst,DocumentSymbol:()=>jst,DocumentUri:()=>Uot,EOL:()=>ect,FoldingRange:()=>Zot,FoldingRangeKind:()=>Xot,FormattingOptions:()=>GI,Hover:()=>Sst,InlayHint:()=>qst,InlayHintKind:()=>KI,InlayHintLabelPart:()=>Kst,InlineCompletionContext:()=>Qst,InlineCompletionItem:()=>Yst,InlineCompletionList:()=>Xst,InlineCompletionTriggerKind:()=>Zst,InlineValueContext:()=>Gst,InlineValueEvaluatableExpression:()=>Wst,InlineValueText:()=>Hst,InlineValueVariableLookup:()=>Ust,InsertReplaceEdit:()=>gst,InsertTextFormat:()=>mst,InsertTextMode:()=>_st,LanguageKind:()=>dst,Location:()=>qot,LocationLink:()=>AI,MarkedString:()=>xst,MarkupContent:()=>HI,MarkupKind:()=>VI,OptionalVersionedTextDocumentIdentifier:()=>ust,ParameterInformation:()=>Cst,Position:()=>OI,Range:()=>kI,RenameFile:()=>rst,SelectedCompletionInfo:()=>qI,SelectionRange:()=>Rst,SemanticTokenModifiers:()=>Bst,SemanticTokenTypes:()=>zst,SemanticTokens:()=>Vst,SignatureInformation:()=>wst,SnippetTextEdit:()=>ost,StringValue:()=>Jst,SymbolInformation:()=>kst,SymbolKind:()=>Dst,SymbolTag:()=>Ost,TextDocument:()=>tct,TextDocumentEdit:()=>LI,TextDocumentIdentifier:()=>lst,TextDocumentItem:()=>fst,TextEdit:()=>NI,URI:()=>Wot,VersionedTextDocumentIdentifier:()=>BI,WorkspaceChange:()=>cst,WorkspaceEdit:()=>ast,WorkspaceFolder:()=>$st,WorkspaceSymbol:()=>Ast,integer:()=>Got,uinteger:()=>Kot}),YI=jot({"../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(e){return typeof e==`string`}Y(t,`is`),e.is=t})(Uot||={}),(function(e){function t(e){return typeof e==`string`}Y(t,`is`),e.is=t})(Wot||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}Y(t,`is`),e.is=t})(Got||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}Y(t,`is`),e.is=t})(Kot||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Kot.MAX_VALUE),t===Number.MAX_VALUE&&(t=Kot.MAX_VALUE),{line:e,character:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&JI.uinteger(t.line)&&JI.uinteger(t.character)}Y(n,`is`),e.is=n})(OI||={}),(function(e){function t(e,t,n,r){if(JI.uinteger(e)&&JI.uinteger(t)&&JI.uinteger(n)&&JI.uinteger(r))return{start:OI.create(e,t),end:OI.create(n,r)};if(OI.is(e)&&OI.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&OI.is(t.start)&&OI.is(t.end)}Y(n,`is`),e.is=n})(kI||={}),(function(e){function t(e,t){return{uri:e,range:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&kI.is(t.range)&&(JI.string(t.uri)||JI.undefined(t.uri))}Y(n,`is`),e.is=n})(qot||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&kI.is(t.targetRange)&&JI.string(t.targetUri)&&kI.is(t.targetSelectionRange)&&(kI.is(t.originSelectionRange)||JI.undefined(t.originSelectionRange))}Y(n,`is`),e.is=n})(AI||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&JI.numberRange(t.red,0,1)&&JI.numberRange(t.green,0,1)&&JI.numberRange(t.blue,0,1)&&JI.numberRange(t.alpha,0,1)}Y(n,`is`),e.is=n})(Jot||={}),(function(e){function t(e,t){return{range:e,color:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&kI.is(t.range)&&Jot.is(t.color)}Y(n,`is`),e.is=n})(Yot||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&JI.string(t.label)&&(JI.undefined(t.textEdit)||NI.is(t))&&(JI.undefined(t.additionalTextEdits)||JI.typedArray(t.additionalTextEdits,NI.is))}Y(n,`is`),e.is=n})(jI||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(Xot||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return JI.defined(n)&&(o.startCharacter=n),JI.defined(r)&&(o.endCharacter=r),JI.defined(i)&&(o.kind=i),JI.defined(a)&&(o.collapsedText=a),o}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&JI.uinteger(t.startLine)&&JI.uinteger(t.startLine)&&(JI.undefined(t.startCharacter)||JI.uinteger(t.startCharacter))&&(JI.undefined(t.endCharacter)||JI.uinteger(t.endCharacter))&&(JI.undefined(t.kind)||JI.string(t.kind))}Y(n,`is`),e.is=n})(Zot||={}),(function(e){function t(e,t){return{location:e,message:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&qot.is(t.location)&&JI.string(t.message)}Y(n,`is`),e.is=n})(Qot||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})($ot||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(est||={}),(function(e){function t(e){let t=e;return JI.objectLiteral(t)&&JI.string(t.href)}Y(t,`is`),e.is=t})(tst||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return JI.defined(n)&&(o.severity=n),JI.defined(r)&&(o.code=r),JI.defined(i)&&(o.source=i),JI.defined(a)&&(o.relatedInformation=a),o}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&kI.is(t.range)&&(JI.string(t.message)||HI.is(t.message))&&(JI.number(t.severity)||JI.undefined(t.severity))&&(JI.integer(t.code)||JI.string(t.code)||JI.undefined(t.code))&&(JI.undefined(t.codeDescription)||JI.string(t.codeDescription?.href))&&(JI.string(t.source)||JI.undefined(t.source))&&(JI.undefined(t.relatedInformation)||JI.typedArray(t.relatedInformation,Qot.is))}Y(n,`is`),e.is=n;function r(e){return JI.string(e.message)}Y(r,`is3_17`),e.is3_17=r;function i(e){if(JI.string(e.message))return e.message;if(HI.is(e.message))return e.message.value;throw Error(`Unknown message type ${typeof e.message}`)}Y(i,`getMessageString`),e.getMessageString=i})(nst||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return JI.defined(n)&&n.length>0&&(r.arguments=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.string(t.title)&&(t.tooltip===void 0||JI.string(t.tooltip))&&JI.string(t.command)}Y(n,`is`),e.is=n})(MI||={}),(function(e){function t(e,t){return{range:e,newText:t}}Y(t,`replace`),e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}Y(n,`insert`),e.insert=n;function r(e){return{range:e,newText:``}}Y(r,`del`),e.del=r;function i(e){let t=e;return JI.objectLiteral(t)&&JI.string(t.newText)&&kI.is(t.range)}Y(i,`is`),e.is=i})(NI||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&JI.string(t.label)&&(JI.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(JI.string(t.description)||t.description===void 0)}Y(n,`is`),e.is=n})(PI||={}),(function(e){function t(e){let t=e;return JI.string(t)}Y(t,`is`),e.is=t})(FI||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}Y(t,`replace`),e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}Y(n,`insert`),e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}Y(r,`del`),e.del=r;function i(e){let t=e;return NI.is(t)&&(PI.is(t.annotationId)||FI.is(t.annotationId))}Y(i,`is`),e.is=i})(II||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&ust.is(t.textDocument)&&Array.isArray(t.edits)}Y(n,`is`),e.is=n})(LI||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&JI.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||JI.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||JI.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||FI.is(t.annotationId))}Y(n,`is`),e.is=n})(RI||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&JI.string(t.oldUri)&&JI.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||JI.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||JI.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||FI.is(t.annotationId))}Y(n,`is`),e.is=n})(rst||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&JI.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||JI.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||JI.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||FI.is(t.annotationId))}Y(n,`is`),e.is=n})(ist||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>JI.string(e.kind)?RI.is(e)||rst.is(e)||ist.is(e):LI.is(e)))}Y(t,`is`),e.is=t})(ast||={}),zI=class{static{Y(this,`TextEditChangeImpl`)}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=NI.insert(e,t):FI.is(n)?(i=n,r=II.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=II.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=NI.replace(e,t):FI.is(n)?(i=n,r=II.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=II.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=NI.del(e):FI.is(t)?(r=t,n=II.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=II.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},(function(e){function t(e){let t=e;return JI.objectLiteral(t)&&kI.is(t.range)&&Jst.isSnippet(t.snippet)&&(t.annotationId===void 0||PI.is(t.annotationId)||FI.is(t.annotationId))}Y(t,`is`),e.is=t})(ost||={}),sst=class{static{Y(this,`ChangeAnnotations`)}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(FI.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},cst=class{static{Y(this,`WorkspaceChange`)}constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new sst(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(LI.is(e)){let t=new zI(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new zI(e.changes[t]);this._textEditChanges[t]=n}))}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(e){if(ust.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new zI(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new zI(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new sst,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(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;PI.is(t)||FI.is(t)?r=t:n=t;let i,a;if(r===void 0?i=RI.create(e,n):(a=FI.is(r)?r:this._changeAnnotations.manage(r),i=RI.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;PI.is(n)||FI.is(n)?i=n:r=n;let a,o;if(i===void 0?a=rst.create(e,t,r):(o=FI.is(i)?i:this._changeAnnotations.manage(i),a=rst.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;PI.is(t)||FI.is(t)?r=t:n=t;let i,a;if(r===void 0?i=ist.create(e,n):(a=FI.is(r)?r:this._changeAnnotations.manage(r),i=ist.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.string(t.uri)}Y(n,`is`),e.is=n})(lst||={}),(function(e){function t(e,t){return{uri:e,version:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.string(t.uri)&&JI.integer(t.version)}Y(n,`is`),e.is=n})(BI||={}),(function(e){function t(e,t){return{uri:e,version:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.string(t.uri)&&(t.version===null||JI.integer(t.version))}Y(n,`is`),e.is=n})(ust||={}),(function(e){e.ABAP=`abap`,e.WindowsBat=`bat`,e.BibTeX=`bibtex`,e.Clojure=`clojure`,e.Coffeescript=`coffeescript`,e.C=`c`,e.CPP=`cpp`,e.CSharp=`csharp`,e.CSS=`css`,e.D=`d`,e.Delphi=`pascal`,e.Diff=`diff`,e.Dart=`dart`,e.Dockerfile=`dockerfile`,e.Elixir=`elixir`,e.Erlang=`erlang`,e.FSharp=`fsharp`,e.GitCommit=`git-commit`,e.GitRebase=`git-rebase`,e.Go=`go`,e.Groovy=`groovy`,e.Handlebars=`handlebars`,e.Haskell=`haskell`,e.HTML=`html`,e.Ini=`ini`,e.Java=`java`,e.JavaScript=`javascript`,e.JavaScriptReact=`javascriptreact`,e.JSON=`json`,e.LaTeX=`latex`,e.Less=`less`,e.Lua=`lua`,e.Makefile=`makefile`,e.Markdown=`markdown`,e.ObjectiveC=`objective-c`,e.ObjectiveCPP=`objective-cpp`,e.Pascal=`pascal`,e.Perl=`perl`,e.Perl6=`perl6`,e.PHP=`php`,e.Plaintext=`plaintext`,e.Powershell=`powershell`,e.Pug=`jade`,e.Python=`python`,e.R=`r`,e.Razor=`razor`,e.Ruby=`ruby`,e.Rust=`rust`,e.SCSS=`scss`,e.SASS=`sass`,e.Scala=`scala`,e.ShaderLab=`shaderlab`,e.ShellScript=`shellscript`,e.SQL=`sql`,e.Swift=`swift`,e.TypeScript=`typescript`,e.TypeScriptReact=`typescriptreact`,e.TeX=`tex`,e.VisualBasic=`vb`,e.XML=`xml`,e.XSL=`xsl`,e.YAML=`yaml`})(dst||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.string(t.uri)&&JI.string(t.languageId)&&JI.integer(t.version)&&JI.string(t.text)}Y(n,`is`),e.is=n})(fst||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}Y(t,`is`),e.is=t})(VI||={}),(function(e){function t(e){let t=e;return JI.objectLiteral(e)&&VI.is(t.kind)&&JI.string(t.value)}Y(t,`is`),e.is=t})(HI||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(pst||={}),(function(e){e.PlainText=1,e.Snippet=2})(mst||={}),(function(e){e.Deprecated=1})(hst||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&JI.string(t.newText)&&kI.is(t.insert)&&kI.is(t.replace)}Y(n,`is`),e.is=n})(gst||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(_st||={}),(function(e){e.Replace=1,e.Merge=2})(vst||={}),(function(e){function t(e){let t=e;return t&&(JI.string(t.detail)||t.detail===void 0)&&(JI.string(t.description)||t.description===void 0)}Y(t,`is`),e.is=t})(yst||={}),(function(e){function t(e){return{label:e}}Y(t,`create`),e.create=t})(bst||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}Y(t,`create`),e.create=t})(UI||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}Y(t,`fromPlainText`),e.fromPlainText=t;function n(e){let t=e;return JI.string(t)||JI.objectLiteral(t)&&JI.string(t.language)&&JI.string(t.value)}Y(n,`is`),e.is=n})(xst||={}),(function(e){function t(e){let t=e;return!!t&&JI.objectLiteral(t)&&(HI.is(t.contents)||xst.is(t.contents)||JI.typedArray(t.contents,xst.is))&&(e.range===void 0||kI.is(e.range))}Y(t,`is`),e.is=t})(Sst||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}Y(t,`create`),e.create=t})(Cst||={}),(function(e){function t(e,t,...n){let r={label:e};return JI.defined(t)&&(r.documentation=t),r.parameters=JI.defined(n)?n:[],r}Y(t,`create`),e.create=t})(wst||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(Tst||={}),(function(e){function t(e,t){let n={range:e};return JI.number(t)&&(n.kind=t),n}Y(t,`create`),e.create=t})(Est||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Dst||={}),(function(e){e.Deprecated=1})(Ost||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}Y(t,`create`),e.create=t})(kst||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}Y(t,`create`),e.create=t})(Ast||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&JI.string(t.name)&&JI.number(t.kind)&&kI.is(t.range)&&kI.is(t.selectionRange)&&(t.detail===void 0||JI.string(t.detail))&&(t.deprecated===void 0||JI.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}Y(n,`is`),e.is=n})(jst||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorMove=`refactor.move`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e.Notebook=`notebook`})(Mst||={}),(function(e){e.Invoked=1,e.Automatic=2})(WI||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.typedArray(t.diagnostics,nst.is)&&(t.only===void 0||JI.typedArray(t.only,JI.string))&&(t.triggerKind===void 0||t.triggerKind===WI.Invoked||t.triggerKind===WI.Automatic)}Y(n,`is`),e.is=n})(Nst||={}),(function(e){e.LLMGenerated=1;function t(t){return JI.defined(t)&&t===e.LLMGenerated}Y(t,`is`),e.is=t})(Pst||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):MI.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&JI.string(t.title)&&(t.diagnostics===void 0||JI.typedArray(t.diagnostics,nst.is))&&(t.kind===void 0||JI.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||MI.is(t.command))&&(t.isPreferred===void 0||JI.boolean(t.isPreferred))&&(t.edit===void 0||ast.is(t.edit))&&(t.tags===void 0||JI.typedArray(t.tags,Pst.is))}Y(n,`is`),e.is=n})(Fst||={}),(function(e){function t(e,t){let n={range:e};return JI.defined(t)&&(n.data=t),n}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&kI.is(t.range)&&(JI.undefined(t.command)||MI.is(t.command))}Y(n,`is`),e.is=n})(Ist||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&JI.uinteger(t.tabSize)&&JI.boolean(t.insertSpaces)}Y(n,`is`),e.is=n})(GI||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&kI.is(t.range)&&(JI.undefined(t.target)||JI.string(t.target))}Y(n,`is`),e.is=n})(Lst||={}),(function(e){function t(e,t){return{range:e,parent:t}}Y(t,`create`),e.create=t;function n(t){let n=t;return JI.objectLiteral(n)&&kI.is(n.range)&&(n.parent===void 0||e.is(n.parent))}Y(n,`is`),e.is=n})(Rst||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`,e.label=`label`})(zst||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Bst||={}),(function(e){function t(e){let t=e;return JI.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}Y(t,`is`),e.is=t})(Vst||={}),(function(e){function t(e,t){return{range:e,text:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&kI.is(t.range)&&JI.string(t.text)}Y(n,`is`),e.is=n})(Hst||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&kI.is(t.range)&&JI.boolean(t.caseSensitiveLookup)&&(JI.string(t.variableName)||t.variableName===void 0)}Y(n,`is`),e.is=n})(Ust||={}),(function(e){function t(e,t){return{range:e,expression:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&kI.is(t.range)&&(JI.string(t.expression)||t.expression===void 0)}Y(n,`is`),e.is=n})(Wst||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.defined(t)&&kI.is(e.stoppedLocation)}Y(n,`is`),e.is=n})(Gst||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}Y(t,`is`),e.is=t})(KI||={}),(function(e){function t(e){return{value:e}}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&(t.tooltip===void 0||JI.string(t.tooltip)||HI.is(t.tooltip))&&(t.location===void 0||qot.is(t.location))&&(t.command===void 0||MI.is(t.command))}Y(n,`is`),e.is=n})(Kst||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return JI.objectLiteral(t)&&OI.is(t.position)&&(JI.string(t.label)||JI.typedArray(t.label,Kst.is))&&(t.kind===void 0||KI.is(t.kind))&&t.textEdits===void 0||JI.typedArray(t.textEdits,NI.is)&&(t.tooltip===void 0||JI.string(t.tooltip)||HI.is(t.tooltip))&&(t.paddingLeft===void 0||JI.boolean(t.paddingLeft))&&(t.paddingRight===void 0||JI.boolean(t.paddingRight))}Y(n,`is`),e.is=n})(qst||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}Y(t,`createSnippet`),e.createSnippet=t;function n(e){let t=e;return JI.objectLiteral(t)&&t.kind===`snippet`&&JI.string(t.value)}Y(n,`isSnippet`),e.isSnippet=n})(Jst||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}Y(t,`create`),e.create=t})(Yst||={}),(function(e){function t(e){return{items:e}}Y(t,`create`),e.create=t})(Xst||={}),(function(e){e.Invoked=1,e.Automatic=2})(Zst||={}),(function(e){function t(e,t){return{range:e,text:t}}Y(t,`create`),e.create=t})(qI||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}Y(t,`create`),e.create=t})(Qst||={}),(function(e){function t(e){let t=e;return JI.objectLiteral(t)&&Wot.is(t.uri)&&JI.string(t.name)}Y(t,`is`),e.is=t})($st||={}),ect=[` +${JSON.stringify(e,null,4)}`);let t=e;if(o.string(t.id)||o.number(t.id)){let e=t.id,n=oe.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}Y(Ie,`handleInvalidMessage`);function Le(e){if(e!=null)switch(le){case g.Verbose:return JSON.stringify(e,null,4);case g.Compact:return JSON.stringify(e);default:return}}Y(Le,`stringifyTrace`);function Re(e){if(le!==g.Off&&de){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&e.params&&(t=`Params: ${Le(e.params)}`),de.log(`Sending request '${e.method} - (${e.id})'.`,t)}else We(`send-request`,e)}}Y(Re,`traceSendingRequest`);function ze(e){if(le!==g.Off&&de){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&(t=e.params?`Params: ${Le(e.params)}`:`No parameters provided.`),de.log(`Sending notification '${e.method}'.`,t)}else We(`send-notification`,e)}}Y(ze,`traceSendingNotification`);function Be(e,t,n){if(le!==g.Off&&de){if(ue===v.Text){let r;(le===g.Verbose||le===g.Compact)&&(e.error&&e.error.data?r=`Error data: ${Le(e.error.data)}`:e.result?r=`Result: ${Le(e.result)}`:e.error===void 0&&(r=`No result returned.`));let i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;de.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms.${i}`,r)}else We(`send-response`,e)}}Y(Be,`traceSendingResponse`);function Ve(e){if(le!==g.Off&&de){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&e.params&&(t=`Params: ${Le(e.params)}`),de.log(`Received request '${e.method} - (${e.id})'.`,t)}else We(`receive-request`,e)}}Y(Ve,`traceReceivedRequest`);function He(e){if(le!==g.Off&&de&&e.method!==b.type.method){if(ue===v.Text){let t;(le===g.Verbose||le===g.Compact)&&(t=e.params?`Params: ${Le(e.params)}`:`No parameters provided.`),de.log(`Received notification '${e.method}'.`,t)}else We(`receive-notification`,e)}}Y(He,`traceReceivedNotification`);function Ue(e,t){if(le!==g.Off&&de){if(ue===v.Text){let n;if((le===g.Verbose||le===g.Compact)&&(e.error&&e.error.data?n=`Error data: ${Le(e.error.data)}`:e.result?n=`Result: ${Le(e.result)}`:e.error===void 0&&(n=`No result returned.`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;de.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else de.log(`Received response ${e.id} without active response promise.`,n)}else We(`receive-response`,e)}}Y(Ue,`traceReceivedResponse`);function We(e,t){if(!de||le===g.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};de.log(n)}Y(We,`logLSPMessage`);function Ge(){if(xe())throw new S(x.Closed,`Connection is closed.`);if(Se())throw new S(x.Disposed,`Connection is disposed.`)}Y(Ge,`throwIfClosedOrDisposed`);function Ke(){if(be())throw new S(x.AlreadyListening,`Connection is already listening`)}Y(Ke,`throwIfListening`);function qe(){if(!be())throw Error(`Call listen() first.`)}Y(qe,`throwIfNotListening`);function Je(e){return e===void 0?null:e}Y(Je,`undefinedToNull`);function Ye(e){if(e!==null)return e}Y(Ye,`nullToUndefined`);function Xe(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}Y(Xe,`isNamedParam`);function Ze(e,t){switch(e){case s.ParameterStructures.auto:return Xe(t)?Ye(t):[Je(t)];case s.ParameterStructures.byName:if(!Xe(t))throw Error(`Received parameters by name but param is not an object literal.`);return Ye(t);case s.ParameterStructures.byPosition:return[Je(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}Y(Ze,`computeSingleParam`);function Qe(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ze(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{Ge();let r,i;if(o.string(e)){r=e;let n=t[0],a=0,o=s.ParameterStructures.auto;s.ParameterStructures.is(n)&&(a=1,o=n);let l=t.length,u=l-a;switch(u){case 0:i=void 0;break;case 1:i=Ze(o,t[a]);break;default:if(o===s.ParameterStructures.byName)throw Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);i=t.slice(a,l).map(e=>Je(e))}}else{let n=t;r=e.method,i=Qe(e,n)}let a={jsonrpc:`2.0`,method:r,params:i};return ze(a),n.write(a).catch(e=>{throw _.error(`Sending notification failed.`),e})},`sendNotification`),onNotification:Y((e,t)=>{Ge();let n;return o.func(e)?te=e:t&&(o.string(e)?(n=e,ne.set(e,{type:void 0,handler:t})):(n=e.method,ne.set(e.method,{type:e,handler:t}))),{dispose:Y(()=>{n===void 0?te===e&&(te=void 0):ne.get(n)?.handler===t&&ne.delete(n)},`dispose`)}},`onNotification`),onProgress:Y((e,t,n)=>{if(re.has(t))throw Error(`Progress handler for token ${t} already registered`);return re.set(t,n),{dispose:Y(()=>{re.get(t)===n&&re.delete(t)},`dispose`)}},`onProgress`),sendProgress:Y((e,t,n)=>$e.sendNotification(m.type,{token:t,value:n}),`sendProgress`),onUnhandledProgress:ge.event,sendRequest:Y((e,...t)=>{Ge(),qe();function r(e,t){let n=ve.sender.sendCancellation(e,t);n===void 0?_.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch(()=>{_.log(`Sending cancellation messages for id ${t} failed.`)})}Y(r,`sendCancellation`);let i,a,l;if(o.string(e)){i=e;let n=t[0],r=t[t.length-1],o=0,u=s.ParameterStructures.auto;s.ParameterStructures.is(n)&&(o=1,u=n);let f=t.length;d.CancellationToken.is(r)&&(--f,l=r);let p=f-o;switch(p){case 0:a=void 0;break;case 1:a=Ze(u,t[o]);break;default:if(u===s.ParameterStructures.byName)throw Error(`Received ${p} parameters for 'by Name' request parameter structure.`);a=t.slice(o,f).map(e=>Je(e))}}else{let n=t;i=e.method,a=Qe(e,n);let r=e.numberOfParams;l=d.CancellationToken.is(n[r])?n[r]:void 0}let u=C++,f,p=!1;l!==void 0&&(l.isCancellationRequested?p=!0:f=l.onCancellationRequested(()=>{r($e,u)}));let m={jsonrpc:`2.0`,id:u,method:i,params:a};return Re(m),typeof ve.sender.enableCancellation==`function`&&ve.sender.enableCancellation(m),new Promise(async(e,t)=>{let a=Y(t=>{e(t),ve.sender.cleanup(u),f?.dispose()},`resolveWithCleanup`),o=Y(e=>{t(e),ve.sender.cleanup(u),f?.dispose()},`rejectWithCleanup`),l={method:i,timerStart:Date.now(),resolve:a,reject:o};try{oe.set(u,l),await n.write(m),p&&r($e,u)}catch(e){oe.delete(u),l.reject(new s.ResponseError(s.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),_.error(`Sending request failed.`)}})},`sendRequest`),onRequest:Y((e,t)=>{Ge();let n=null;return h.is(e)?(n=void 0,M=e):o.string(e)?(n=null,t!==void 0&&(n=e,ee.set(e,{handler:t,type:void 0}))):t!==void 0&&(n=e.method,ee.set(e.method,{type:e,handler:t})),{dispose:Y(()=>{n!==null&&(n===void 0?M===e&&(M=void 0):ee.get(n)?.handler===t&&ee.delete(n))},`dispose`)}},`onRequest`),hasPendingResponse:Y(()=>oe.size>0,`hasPendingResponse`),trace:Y(async(e,t,n)=>{let r=!1,i=v.Text;n!==void 0&&(o.boolean(n)?r=n:(r=n.sendNotification||!1,i=n.traceFormat||v.Text)),le=e,ue=i,de=le===g.Off?void 0:t,r&&!xe()&&!Se()&&await $e.sendNotification(y.type,{value:g.toString(e)})},`trace`),onError:pe.event,onClose:me.event,onUnhandledNotification:he.event,onDispose:_e.event,end:Y(()=>{n.end()},`end`),dispose:Y(()=>{if(Se())return;fe=j.Disposed,_e.fire(void 0);let e=new s.ResponseError(s.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of oe.values())t.reject(e);oe=new Map,ce=new Map,se=new Set,ae=new l.LinkedMap,o.func(n.dispose)&&n.dispose(),o.func(t.dispose)&&t.dispose()},`dispose`),listen:Y(()=>{Ge(),Ke(),fe=j.Listening,t.listen(Me)},`listen`),inspect:Y(()=>{(0,a.default)().console.log(`inspect`)},`inspect`)};return $e.onNotification(b.type,e=>{if(le===g.Off||!de)return;let t=le===g.Verbose||le===g.Compact;de.log(e.message,t?e.verbose:void 0)}),$e.onNotification(m.type,async e=>{let t=re.get(e.token);t?await t(e.value):ge.fire(e)}),$e}Y(M,`createMessageConnection`)}}),AI=wI({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.TraceValue=e.Trace=void 0;var n=Fot();Object.defineProperty(e,"Message",{enumerable:!0,get:Y(function(){return n.Message},`get`)}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:Y(function(){return n.RequestType},`get`)}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:Y(function(){return n.RequestType0},`get`)}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:Y(function(){return n.RequestType1},`get`)}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:Y(function(){return n.RequestType2},`get`)}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:Y(function(){return n.RequestType3},`get`)}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:Y(function(){return n.RequestType4},`get`)}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:Y(function(){return n.RequestType5},`get`)}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:Y(function(){return n.RequestType6},`get`)}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:Y(function(){return n.RequestType7},`get`)}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:Y(function(){return n.RequestType8},`get`)}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:Y(function(){return n.RequestType9},`get`)}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:Y(function(){return n.ResponseError},`get`)}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:Y(function(){return n.ErrorCodes},`get`)}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:Y(function(){return n.NotificationType},`get`)}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:Y(function(){return n.NotificationType0},`get`)}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:Y(function(){return n.NotificationType1},`get`)}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:Y(function(){return n.NotificationType2},`get`)}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:Y(function(){return n.NotificationType3},`get`)}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:Y(function(){return n.NotificationType4},`get`)}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:Y(function(){return n.NotificationType5},`get`)}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:Y(function(){return n.NotificationType6},`get`)}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:Y(function(){return n.NotificationType7},`get`)}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:Y(function(){return n.NotificationType8},`get`)}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:Y(function(){return n.NotificationType9},`get`)}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:Y(function(){return n.ParameterStructures},`get`)});var r=Iot();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:Y(function(){return r.LinkedMap},`get`)}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:Y(function(){return r.LRUCache},`get`)}),Object.defineProperty(e,"Touch",{enumerable:!0,get:Y(function(){return r.Touch},`get`)});var i=Lot();Object.defineProperty(e,"Disposable",{enumerable:!0,get:Y(function(){return i.Disposable},`get`)});var a=OI();Object.defineProperty(e,"Event",{enumerable:!0,get:Y(function(){return a.Event},`get`)}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:Y(function(){return a.Emitter},`get`)});var o=kI();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:Y(function(){return o.CancellationTokenSource},`get`)}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:Y(function(){return o.CancellationToken},`get`)});var s=Rot();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:Y(function(){return s.SharedArraySenderStrategy},`get`)}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:Y(function(){return s.SharedArrayReceiverStrategy},`get`)});var l=Bot();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:Y(function(){return l.MessageReader},`get`)}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:Y(function(){return l.AbstractMessageReader},`get`)}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:Y(function(){return l.ReadableStreamMessageReader},`get`)});var u=Vot();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:Y(function(){return u.MessageWriter},`get`)}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:Y(function(){return u.AbstractMessageWriter},`get`)}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:Y(function(){return u.WriteableStreamMessageWriter},`get`)});var d=Hot();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:Y(function(){return d.AbstractMessageBuffer},`get`)});var f=Uot();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:Y(function(){return f.ConnectionStrategy},`get`)}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:Y(function(){return f.ConnectionOptions},`get`)}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:Y(function(){return f.NullLogger},`get`)}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:Y(function(){return f.createMessageConnection},`get`)}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:Y(function(){return f.ProgressToken},`get`)}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:Y(function(){return f.ProgressType},`get`)}),Object.defineProperty(e,"Trace",{enumerable:!0,get:Y(function(){return f.Trace},`get`)}),Object.defineProperty(e,"TraceValue",{enumerable:!0,get:Y(function(){return f.TraceValue},`get`)}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:Y(function(){return f.TraceFormat},`get`)}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:Y(function(){return f.SetTraceNotification},`get`)}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:Y(function(){return f.LogTraceNotification},`get`)}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:Y(function(){return f.ConnectionErrors},`get`)}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:Y(function(){return f.ConnectionError},`get`)}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:Y(function(){return f.CancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"IdCancellationReceiverStrategy",{enumerable:!0,get:Y(function(){return f.IdCancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"RequestCancellationReceiverStrategy",{enumerable:!0,get:Y(function(){return f.RequestCancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:Y(function(){return f.CancellationSenderStrategy},`get`)}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:Y(function(){return f.CancellationStrategy},`get`)}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:Y(function(){return f.MessageStrategy},`get`)}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:Y(function(){return f.TraceValues},`get`)}),e.RAL=t(DI()).default}}),jI={},Mot(jI,{AnnotatedTextEdit:()=>zI,ApplyKind:()=>xst,ChangeAnnotation:()=>LI,ChangeAnnotationIdentifier:()=>RI,CodeAction:()=>zst,CodeActionContext:()=>Lst,CodeActionKind:()=>Ist,CodeActionTag:()=>Rst,CodeActionTriggerKind:()=>GI,CodeDescription:()=>rst,CodeLens:()=>Bst,Color:()=>Yot,ColorInformation:()=>Xot,ColorPresentation:()=>Zot,Command:()=>FI,CompletionItem:()=>Cst,CompletionItemKind:()=>_st,CompletionItemLabelDetails:()=>Sst,CompletionItemTag:()=>yst,CompletionList:()=>wst,CreateFile:()=>BI,DeleteFile:()=>sst,Diagnostic:()=>ist,DiagnosticRelatedInformation:()=>est,DiagnosticSeverity:()=>tst,DiagnosticTag:()=>nst,DocumentHighlight:()=>Ast,DocumentHighlightKind:()=>kst,DocumentLink:()=>Hst,DocumentSymbol:()=>Fst,DocumentUri:()=>Wot,EOL:()=>act,FoldingRange:()=>$ot,FoldingRangeKind:()=>Qot,FormattingOptions:()=>Vst,Hover:()=>Est,InlayHint:()=>KI,InlayHintKind:()=>Zst,InlayHintLabelPart:()=>Qst,InlineCompletionContext:()=>qI,InlineCompletionItem:()=>ect,InlineCompletionList:()=>tct,InlineCompletionTriggerKind:()=>nct,InlineValueContext:()=>Xst,InlineValueEvaluatableExpression:()=>Yst,InlineValueText:()=>qst,InlineValueVariableLookup:()=>Jst,InsertReplaceEdit:()=>WI,InsertTextFormat:()=>vst,InsertTextMode:()=>bst,LanguageKind:()=>mst,Location:()=>qot,LocationLink:()=>Jot,MarkedString:()=>Tst,MarkupContent:()=>UI,MarkupKind:()=>gst,OptionalVersionedTextDocumentIdentifier:()=>pst,ParameterInformation:()=>Dst,Position:()=>NI,Range:()=>PI,RenameFile:()=>ost,SelectedCompletionInfo:()=>rct,SelectionRange:()=>Ust,SemanticTokenModifiers:()=>Gst,SemanticTokenTypes:()=>Wst,SemanticTokens:()=>Kst,SignatureInformation:()=>Ost,SnippetTextEdit:()=>lst,StringValue:()=>$st,SymbolInformation:()=>Nst,SymbolKind:()=>jst,SymbolTag:()=>Mst,TextDocument:()=>oct,TextDocumentEdit:()=>ast,TextDocumentIdentifier:()=>HI,TextDocumentItem:()=>hst,TextEdit:()=>II,URI:()=>Got,VersionedTextDocumentIdentifier:()=>fst,WorkspaceChange:()=>dst,WorkspaceEdit:()=>cst,WorkspaceFolder:()=>ict,WorkspaceSymbol:()=>Pst,integer:()=>MI,uinteger:()=>Kot}),sct=jot({"../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(e){return typeof e==`string`}Y(t,`is`),e.is=t})(Wot||={}),(function(e){function t(e){return typeof e==`string`}Y(t,`is`),e.is=t})(Got||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}Y(t,`is`),e.is=t})(MI||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}Y(t,`is`),e.is=t})(Kot||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Kot.MAX_VALUE),t===Number.MAX_VALUE&&(t=Kot.MAX_VALUE),{line:e,character:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&YI.uinteger(t.line)&&YI.uinteger(t.character)}Y(n,`is`),e.is=n})(NI||={}),(function(e){function t(e,t,n,r){if(YI.uinteger(e)&&YI.uinteger(t)&&YI.uinteger(n)&&YI.uinteger(r))return{start:NI.create(e,t),end:NI.create(n,r)};if(NI.is(e)&&NI.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&NI.is(t.start)&&NI.is(t.end)}Y(n,`is`),e.is=n})(PI||={}),(function(e){function t(e,t){return{uri:e,range:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&PI.is(t.range)&&(YI.string(t.uri)||YI.undefined(t.uri))}Y(n,`is`),e.is=n})(qot||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&PI.is(t.targetRange)&&YI.string(t.targetUri)&&PI.is(t.targetSelectionRange)&&(PI.is(t.originSelectionRange)||YI.undefined(t.originSelectionRange))}Y(n,`is`),e.is=n})(Jot||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&YI.numberRange(t.red,0,1)&&YI.numberRange(t.green,0,1)&&YI.numberRange(t.blue,0,1)&&YI.numberRange(t.alpha,0,1)}Y(n,`is`),e.is=n})(Yot||={}),(function(e){function t(e,t){return{range:e,color:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&PI.is(t.range)&&Yot.is(t.color)}Y(n,`is`),e.is=n})(Xot||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&YI.string(t.label)&&(YI.undefined(t.textEdit)||II.is(t))&&(YI.undefined(t.additionalTextEdits)||YI.typedArray(t.additionalTextEdits,II.is))}Y(n,`is`),e.is=n})(Zot||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(Qot||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return YI.defined(n)&&(o.startCharacter=n),YI.defined(r)&&(o.endCharacter=r),YI.defined(i)&&(o.kind=i),YI.defined(a)&&(o.collapsedText=a),o}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&YI.uinteger(t.startLine)&&YI.uinteger(t.startLine)&&(YI.undefined(t.startCharacter)||YI.uinteger(t.startCharacter))&&(YI.undefined(t.endCharacter)||YI.uinteger(t.endCharacter))&&(YI.undefined(t.kind)||YI.string(t.kind))}Y(n,`is`),e.is=n})($ot||={}),(function(e){function t(e,t){return{location:e,message:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&qot.is(t.location)&&YI.string(t.message)}Y(n,`is`),e.is=n})(est||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(tst||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(nst||={}),(function(e){function t(e){let t=e;return YI.objectLiteral(t)&&YI.string(t.href)}Y(t,`is`),e.is=t})(rst||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return YI.defined(n)&&(o.severity=n),YI.defined(r)&&(o.code=r),YI.defined(i)&&(o.source=i),YI.defined(a)&&(o.relatedInformation=a),o}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&PI.is(t.range)&&(YI.string(t.message)||UI.is(t.message))&&(YI.number(t.severity)||YI.undefined(t.severity))&&(YI.integer(t.code)||YI.string(t.code)||YI.undefined(t.code))&&(YI.undefined(t.codeDescription)||YI.string(t.codeDescription?.href))&&(YI.string(t.source)||YI.undefined(t.source))&&(YI.undefined(t.relatedInformation)||YI.typedArray(t.relatedInformation,est.is))}Y(n,`is`),e.is=n;function r(e){return YI.string(e.message)}Y(r,`is3_17`),e.is3_17=r;function i(e){if(YI.string(e.message))return e.message;if(UI.is(e.message))return e.message.value;throw Error(`Unknown message type ${typeof e.message}`)}Y(i,`getMessageString`),e.getMessageString=i})(ist||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return YI.defined(n)&&n.length>0&&(r.arguments=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.string(t.title)&&(t.tooltip===void 0||YI.string(t.tooltip))&&YI.string(t.command)}Y(n,`is`),e.is=n})(FI||={}),(function(e){function t(e,t){return{range:e,newText:t}}Y(t,`replace`),e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}Y(n,`insert`),e.insert=n;function r(e){return{range:e,newText:``}}Y(r,`del`),e.del=r;function i(e){let t=e;return YI.objectLiteral(t)&&YI.string(t.newText)&&PI.is(t.range)}Y(i,`is`),e.is=i})(II||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&YI.string(t.label)&&(YI.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(YI.string(t.description)||t.description===void 0)}Y(n,`is`),e.is=n})(LI||={}),(function(e){function t(e){let t=e;return YI.string(t)}Y(t,`is`),e.is=t})(RI||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}Y(t,`replace`),e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}Y(n,`insert`),e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}Y(r,`del`),e.del=r;function i(e){let t=e;return II.is(t)&&(LI.is(t.annotationId)||RI.is(t.annotationId))}Y(i,`is`),e.is=i})(zI||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&pst.is(t.textDocument)&&Array.isArray(t.edits)}Y(n,`is`),e.is=n})(ast||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&YI.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||YI.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||YI.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||RI.is(t.annotationId))}Y(n,`is`),e.is=n})(BI||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&YI.string(t.oldUri)&&YI.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||YI.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||YI.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||RI.is(t.annotationId))}Y(n,`is`),e.is=n})(ost||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&YI.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||YI.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||YI.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||RI.is(t.annotationId))}Y(n,`is`),e.is=n})(sst||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>YI.string(e.kind)?BI.is(e)||ost.is(e)||sst.is(e):ast.is(e)))}Y(t,`is`),e.is=t})(cst||={}),VI=class{static{Y(this,`TextEditChangeImpl`)}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=II.insert(e,t):RI.is(n)?(i=n,r=zI.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=zI.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=II.replace(e,t):RI.is(n)?(i=n,r=zI.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=zI.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=II.del(e):RI.is(t)?(r=t,n=zI.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=zI.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},(function(e){function t(e){let t=e;return YI.objectLiteral(t)&&PI.is(t.range)&&$st.isSnippet(t.snippet)&&(t.annotationId===void 0||LI.is(t.annotationId)||RI.is(t.annotationId))}Y(t,`is`),e.is=t})(lst||={}),ust=class{static{Y(this,`ChangeAnnotations`)}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(RI.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},dst=class{static{Y(this,`WorkspaceChange`)}constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ust(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(ast.is(e)){let t=new VI(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new VI(e.changes[t]);this._textEditChanges[t]=n}))}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(e){if(pst.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new VI(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new VI(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ust,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(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;LI.is(t)||RI.is(t)?r=t:n=t;let i,a;if(r===void 0?i=BI.create(e,n):(a=RI.is(r)?r:this._changeAnnotations.manage(r),i=BI.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;LI.is(n)||RI.is(n)?i=n:r=n;let a,o;if(i===void 0?a=ost.create(e,t,r):(o=RI.is(i)?i:this._changeAnnotations.manage(i),a=ost.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;LI.is(t)||RI.is(t)?r=t:n=t;let i,a;if(r===void 0?i=sst.create(e,n):(a=RI.is(r)?r:this._changeAnnotations.manage(r),i=sst.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.string(t.uri)}Y(n,`is`),e.is=n})(HI||={}),(function(e){function t(e,t){return{uri:e,version:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.string(t.uri)&&YI.integer(t.version)}Y(n,`is`),e.is=n})(fst||={}),(function(e){function t(e,t){return{uri:e,version:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.string(t.uri)&&(t.version===null||YI.integer(t.version))}Y(n,`is`),e.is=n})(pst||={}),(function(e){e.ABAP=`abap`,e.WindowsBat=`bat`,e.BibTeX=`bibtex`,e.Clojure=`clojure`,e.Coffeescript=`coffeescript`,e.C=`c`,e.CPP=`cpp`,e.CSharp=`csharp`,e.CSS=`css`,e.D=`d`,e.Delphi=`pascal`,e.Diff=`diff`,e.Dart=`dart`,e.Dockerfile=`dockerfile`,e.Elixir=`elixir`,e.Erlang=`erlang`,e.FSharp=`fsharp`,e.GitCommit=`git-commit`,e.GitRebase=`git-rebase`,e.Go=`go`,e.Groovy=`groovy`,e.Handlebars=`handlebars`,e.Haskell=`haskell`,e.HTML=`html`,e.Ini=`ini`,e.Java=`java`,e.JavaScript=`javascript`,e.JavaScriptReact=`javascriptreact`,e.JSON=`json`,e.LaTeX=`latex`,e.Less=`less`,e.Lua=`lua`,e.Makefile=`makefile`,e.Markdown=`markdown`,e.ObjectiveC=`objective-c`,e.ObjectiveCPP=`objective-cpp`,e.Pascal=`pascal`,e.Perl=`perl`,e.Perl6=`perl6`,e.PHP=`php`,e.Plaintext=`plaintext`,e.Powershell=`powershell`,e.Pug=`jade`,e.Python=`python`,e.R=`r`,e.Razor=`razor`,e.Ruby=`ruby`,e.Rust=`rust`,e.SCSS=`scss`,e.SASS=`sass`,e.Scala=`scala`,e.ShaderLab=`shaderlab`,e.ShellScript=`shellscript`,e.SQL=`sql`,e.Swift=`swift`,e.TypeScript=`typescript`,e.TypeScriptReact=`typescriptreact`,e.TeX=`tex`,e.VisualBasic=`vb`,e.XML=`xml`,e.XSL=`xsl`,e.YAML=`yaml`})(mst||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.string(t.uri)&&YI.string(t.languageId)&&YI.integer(t.version)&&YI.string(t.text)}Y(n,`is`),e.is=n})(hst||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}Y(t,`is`),e.is=t})(gst||={}),(function(e){function t(e){let t=e;return YI.objectLiteral(e)&&gst.is(t.kind)&&YI.string(t.value)}Y(t,`is`),e.is=t})(UI||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_st||={}),(function(e){e.PlainText=1,e.Snippet=2})(vst||={}),(function(e){e.Deprecated=1})(yst||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&YI.string(t.newText)&&PI.is(t.insert)&&PI.is(t.replace)}Y(n,`is`),e.is=n})(WI||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(bst||={}),(function(e){e.Replace=1,e.Merge=2})(xst||={}),(function(e){function t(e){let t=e;return t&&(YI.string(t.detail)||t.detail===void 0)&&(YI.string(t.description)||t.description===void 0)}Y(t,`is`),e.is=t})(Sst||={}),(function(e){function t(e){return{label:e}}Y(t,`create`),e.create=t})(Cst||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}Y(t,`create`),e.create=t})(wst||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}Y(t,`fromPlainText`),e.fromPlainText=t;function n(e){let t=e;return YI.string(t)||YI.objectLiteral(t)&&YI.string(t.language)&&YI.string(t.value)}Y(n,`is`),e.is=n})(Tst||={}),(function(e){function t(e){let t=e;return!!t&&YI.objectLiteral(t)&&(UI.is(t.contents)||Tst.is(t.contents)||YI.typedArray(t.contents,Tst.is))&&(e.range===void 0||PI.is(e.range))}Y(t,`is`),e.is=t})(Est||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}Y(t,`create`),e.create=t})(Dst||={}),(function(e){function t(e,t,...n){let r={label:e};return YI.defined(t)&&(r.documentation=t),r.parameters=YI.defined(n)?n:[],r}Y(t,`create`),e.create=t})(Ost||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(kst||={}),(function(e){function t(e,t){let n={range:e};return YI.number(t)&&(n.kind=t),n}Y(t,`create`),e.create=t})(Ast||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(jst||={}),(function(e){e.Deprecated=1})(Mst||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}Y(t,`create`),e.create=t})(Nst||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}Y(t,`create`),e.create=t})(Pst||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&YI.string(t.name)&&YI.number(t.kind)&&PI.is(t.range)&&PI.is(t.selectionRange)&&(t.detail===void 0||YI.string(t.detail))&&(t.deprecated===void 0||YI.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}Y(n,`is`),e.is=n})(Fst||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorMove=`refactor.move`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e.Notebook=`notebook`})(Ist||={}),(function(e){e.Invoked=1,e.Automatic=2})(GI||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.typedArray(t.diagnostics,ist.is)&&(t.only===void 0||YI.typedArray(t.only,YI.string))&&(t.triggerKind===void 0||t.triggerKind===GI.Invoked||t.triggerKind===GI.Automatic)}Y(n,`is`),e.is=n})(Lst||={}),(function(e){e.LLMGenerated=1;function t(t){return YI.defined(t)&&t===e.LLMGenerated}Y(t,`is`),e.is=t})(Rst||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):FI.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return t&&YI.string(t.title)&&(t.diagnostics===void 0||YI.typedArray(t.diagnostics,ist.is))&&(t.kind===void 0||YI.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||FI.is(t.command))&&(t.isPreferred===void 0||YI.boolean(t.isPreferred))&&(t.edit===void 0||cst.is(t.edit))&&(t.tags===void 0||YI.typedArray(t.tags,Rst.is))}Y(n,`is`),e.is=n})(zst||={}),(function(e){function t(e,t){let n={range:e};return YI.defined(t)&&(n.data=t),n}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&PI.is(t.range)&&(YI.undefined(t.command)||FI.is(t.command))}Y(n,`is`),e.is=n})(Bst||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&YI.uinteger(t.tabSize)&&YI.boolean(t.insertSpaces)}Y(n,`is`),e.is=n})(Vst||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&PI.is(t.range)&&(YI.undefined(t.target)||YI.string(t.target))}Y(n,`is`),e.is=n})(Hst||={}),(function(e){function t(e,t){return{range:e,parent:t}}Y(t,`create`),e.create=t;function n(t){let n=t;return YI.objectLiteral(n)&&PI.is(n.range)&&(n.parent===void 0||e.is(n.parent))}Y(n,`is`),e.is=n})(Ust||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`,e.label=`label`})(Wst||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Gst||={}),(function(e){function t(e){let t=e;return YI.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}Y(t,`is`),e.is=t})(Kst||={}),(function(e){function t(e,t){return{range:e,text:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&PI.is(t.range)&&YI.string(t.text)}Y(n,`is`),e.is=n})(qst||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}Y(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&PI.is(t.range)&&YI.boolean(t.caseSensitiveLookup)&&(YI.string(t.variableName)||t.variableName===void 0)}Y(n,`is`),e.is=n})(Jst||={}),(function(e){function t(e,t){return{range:e,expression:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&PI.is(t.range)&&(YI.string(t.expression)||t.expression===void 0)}Y(n,`is`),e.is=n})(Yst||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.defined(t)&&PI.is(e.stoppedLocation)}Y(n,`is`),e.is=n})(Xst||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}Y(t,`is`),e.is=t})(Zst||={}),(function(e){function t(e){return{value:e}}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&(t.tooltip===void 0||YI.string(t.tooltip)||UI.is(t.tooltip))&&(t.location===void 0||qot.is(t.location))&&(t.command===void 0||FI.is(t.command))}Y(n,`is`),e.is=n})(Qst||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}Y(t,`create`),e.create=t;function n(e){let t=e;return YI.objectLiteral(t)&&NI.is(t.position)&&(YI.string(t.label)||YI.typedArray(t.label,Qst.is))&&(t.kind===void 0||Zst.is(t.kind))&&t.textEdits===void 0||YI.typedArray(t.textEdits,II.is)&&(t.tooltip===void 0||YI.string(t.tooltip)||UI.is(t.tooltip))&&(t.paddingLeft===void 0||YI.boolean(t.paddingLeft))&&(t.paddingRight===void 0||YI.boolean(t.paddingRight))}Y(n,`is`),e.is=n})(KI||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}Y(t,`createSnippet`),e.createSnippet=t;function n(e){let t=e;return YI.objectLiteral(t)&&t.kind===`snippet`&&YI.string(t.value)}Y(n,`isSnippet`),e.isSnippet=n})($st||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}Y(t,`create`),e.create=t})(ect||={}),(function(e){function t(e){return{items:e}}Y(t,`create`),e.create=t})(tct||={}),(function(e){e.Invoked=1,e.Automatic=2})(nct||={}),(function(e){function t(e,t){return{range:e,text:t}}Y(t,`create`),e.create=t})(rct||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}Y(t,`create`),e.create=t})(qI||={}),(function(e){function t(e){let t=e;return YI.objectLiteral(t)&&Got.is(t.uri)&&YI.string(t.name)}Y(t,`is`),e.is=t})(ict||={}),act=[` `,`\r -`,`\r`],(function(e){function t(e,t,n,r){return new nct(e,t,n,r)}Y(t,`create`),e.create=t;function n(e){let t=e;return!!(JI.defined(t)&&JI.string(t.uri)&&(JI.undefined(t.languageId)||JI.string(t.languageId))&&JI.uinteger(t.lineCount)&&JI.func(t.getText)&&JI.func(t.positionAt)&&JI.func(t.offsetAt))}Y(n,`is`),e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}Y(r,`applyEdits`),e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,l=0;for(;o{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}Y(r,`applyEdits`),e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,l=0;for(;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return OI.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return OI.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n(e))}Y(s,`stringArray`);function l(e,t){return Array.isArray(e)&&e.every(t)}Y(l,`typedArray`);function u(e){return typeof e==`object`&&!!e}Y(u,`objectLiteral`)}}),ZI=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.implementation`,`implementationProvider`)})(n||(e.ImplementationRequest=n={}))}}),QI=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.typeDefinition`,`typeDefinitionProvider`)})(n||(e.TypeDefinitionRequest=n={}))}}),ict=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=XI(),n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.workspaceFolders`,`workspace.workspaceFolders`)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(void 0,`workspace.workspaceFolders.changeNotifications`)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))}}),act=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=XI(),n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.configuration`,void 0)})(n||(e.ConfigurationRequest=n={}))}}),oct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.colorProvider`,`colorProvider`)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.colorProvider`,`colorProvider`)})(r||(e.ColorPresentationRequest=r={}))}}),sct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.foldingRange`,`foldingRangeProvider`)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.foldingRange.refreshSupport`,void 0)})(r||(e.FoldingRangeRefreshRequest=r={}))}}),cct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.declaration`,`declarationProvider`)})(n||(e.DeclarationRequest=n={}))}}),$I=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.selectionRange`,`selectionRangeProvider`)})(n||(e.SelectionRangeRequest=n={}))}}),lct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=DI(),n=XI(),r;(function(e){e.type=new t.ProgressType;function n(t){return t===e.type}Y(n,`is`),e.is=n})(r||(e.WorkDoneProgress=r={}));var i;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create(`window.workDoneProgress`,void 0)})(i||(e.WorkDoneProgressCreateRequest=i={}));var a;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(a||(e.WorkDoneProgressCancelNotification=a={}))}}),uct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.callHierarchy`,`callHierarchyProvider`)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.callHierarchy`,`callHierarchyProvider`)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.callHierarchy`,`callHierarchyProvider`)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))}}),dct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=XI(),n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=t.CM.create(`textDocument.semanticTokens`,`semanticTokensProvider`)})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=t.CM.create(`textDocument.semanticTokens.requests.full.delta`,`semanticTokensProvider.full.delta`)})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=t.CM.create(`textDocument.semanticTokens.requests.range`,`semanticTokensProvider.range`)})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.semanticTokens.refreshSupport`,void 0)})(s||(e.SemanticTokensRefreshRequest=s={}))}}),eL=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=XI(),n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`window.showDocument.support`,void 0)})(n||(e.ShowDocumentRequest=n={}))}}),fct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.linkedEditingRange`,`linkedEditingRangeProvider`)})(n||(e.LinkedEditingRangeRequest=n={}))}}),pct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=XI(),n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.willCreate`,`workspace.fileOperations.willCreate`)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.didCreate`,`workspace.fileOperations.didCreate`)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.willRename`,`workspace.fileOperations.willRename`)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.didRename`,`workspace.fileOperations.didRename`)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.didDelete`,`workspace.fileOperations.didDelete`)})(s||(e.DidDeleteFilesNotification=s={}));var l;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.willDelete`,`workspace.fileOperations.willDelete`)})(l||(e.WillDeleteFilesRequest=l={}))}}),tL=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=XI(),n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.moniker`,`monikerProvider`)})(i||(e.MonikerRequest=i={}))}}),mct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.typeHierarchy`,`typeHierarchyProvider`)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))}}),hct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.inlineValue`,`inlineValueProvider`)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.inlineValue.refreshSupport`,void 0)})(r||(e.InlineValueRefreshRequest=r={}))}}),gct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.inlayHint`,`inlayHintProvider`)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.inlayHint.resolveSupport`,`inlayHintProvider.resolveProvider`)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.inlayHint.refreshSupport`,void 0)})(i||(e.InlayHintRefreshRequest=i={}))}}),_ct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o0}Y(t,`hasId`),e.hasId=t})(se||(e.StaticRegistrationOptions=se={}));var ce;(function(e){function t(e){let t=e;return t&&(t.documentSelector===null||ee.is(t.documentSelector))}Y(t,`is`),e.is=t})(ce||(e.TextDocumentRegistrationOptions=ce={}));var le;(function(e){function t(e){let t=e;return o.objectLiteral(t)&&(t.workDoneProgress===void 0||o.boolean(t.workDoneProgress))}Y(t,`is`),e.is=t;function n(e){let t=e;return t&&o.boolean(t.workDoneProgress)}Y(n,`hasWorkDoneProgress`),e.hasWorkDoneProgress=n})(le||(e.WorkDoneProgressOptions=le={}));var ue;(function(e){e.method=`initialize`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)})(ue||(e.InitializeRequest=ue={}));var de;(function(e){e.unknownProtocolVersion=1})(de||(e.InitializeErrorCodes=de={}));var fe;(function(e){e.method=`initialized`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)})(fe||(e.InitializedNotification=fe={}));var pe;(function(e){e.method=`shutdown`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType0(e.method)})(pe||(e.ShutdownRequest=pe={}));var me;(function(e){e.method=`exit`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType0(e.method)})(me||(e.ExitNotification=me={}));var he;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`workspace.didChangeConfiguration`,void 0)})(he||(e.DidChangeConfigurationNotification=he={}));var ge;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(ge||(e.MessageType=ge={}));var _e;(function(e){e.method=`window/showMessage`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`window.showMessage`,void 0)})(_e||(e.ShowMessageNotification=_e={}));var ve;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`window.showMessage`,void 0)})(ve||(e.ShowMessageRequest=ve={}));var ye;(function(e){e.method=`window/logMessage`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)})(ye||(e.LogMessageNotification=ye={}));var be;(function(e){e.method=`telemetry/event`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)})(be||(e.TelemetryEventNotification=be={}));var xe;(function(e){e.None=0,e.Full=1,e.Incremental=2})(xe||(e.TextDocumentSyncKind=xe={}));var Se;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization`,`textDocumentSync.openClose`)})(Se||(e.DidOpenTextDocumentNotification=Se={}));var Ce;(function(e){function t(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}Y(t,`isIncremental`),e.isIncremental=t;function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}Y(n,`isFull`),e.isFull=n})(Ce||(e.TextDocumentContentChangeEvent=Ce={}));var we;(function(e){e.method=`textDocument/didChange`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization`,`textDocumentSync`)})(we||(e.DidChangeTextDocumentNotification=we={}));var Te;(function(e){e.method=`textDocument/didClose`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization`,`textDocumentSync.openClose`)})(Te||(e.DidCloseTextDocumentNotification=Te={}));var Ee;(function(e){e.method=`textDocument/didSave`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization.didSave`,`textDocumentSync.save`)})(Ee||(e.DidSaveTextDocumentNotification=Ee={}));var De;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(De||(e.TextDocumentSaveReason=De={}));var Oe;(function(e){e.method=`textDocument/willSave`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization.willSave`,`textDocumentSync.willSave`)})(Oe||(e.WillSaveTextDocumentNotification=Oe={}));var ke;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization.willSaveWaitUntil`,`textDocumentSync.willSaveWaitUntil`)})(ke||(e.WillSaveTextDocumentWaitUntilRequest=ke={}));var Ae;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`workspace.didChangeWatchedFiles`,void 0)})(Ae||(e.DidChangeWatchedFilesNotification=Ae={}));var je;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(je||(e.FileChangeType=je={}));var Me;(function(e){function t(e){let t=e;return o.objectLiteral(t)&&(a.URI.is(t.baseUri)||a.WorkspaceFolder.is(t.baseUri))&&o.string(t.pattern)}Y(t,`is`),e.is=t})(Me||(e.RelativePattern=Me={}));var Ne;(function(e){function t(e){let t=e;return o.string(t)||Me.is(t)}Y(t,`is`),e.is=t})(Ne||(e.GlobPattern=Ne={}));var Pe;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Pe||(e.WatchKind=Pe={}));var Fe;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.publishDiagnostics`,void 0)})(Fe||(e.PublishDiagnosticsNotification=Fe={}));var Ie;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Ie||(e.CompletionTriggerKind=Ie={}));var Le;(function(e){e.method=`textDocument/completion`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.completion`,`completionProvider`)})(Le||(e.CompletionRequest=Le={}));var Re;(function(e){e.method=`completionItem/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.completion.completionItem.resolveSupport`,`completionProvider.resolveProvider`)})(Re||(e.CompletionResolveRequest=Re={}));var ze;(function(e){e.method=`textDocument/hover`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.hover`,`hoverProvider`)})(ze||(e.HoverRequest=ze={}));var Be;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Be||(e.SignatureHelpTriggerKind=Be={}));var Ve;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.signatureHelp`,`signatureHelpProvider`)})(Ve||(e.SignatureHelpRequest=Ve={}));var He;(function(e){e.method=`textDocument/definition`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.definition`,`definitionProvider`)})(He||(e.DefinitionRequest=He={}));var Ue;(function(e){e.method=`textDocument/references`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.references`,`referencesProvider`)})(Ue||(e.ReferencesRequest=Ue={}));var We;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentHighlight`,`documentHighlightProvider`)})(We||(e.DocumentHighlightRequest=We={}));var Ge;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentSymbol`,`documentSymbolProvider`)})(Ge||(e.DocumentSymbolRequest=Ge={}));var Ke;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeAction`,`codeActionProvider`)})(Ke||(e.CodeActionRequest=Ke={}));var qe;(function(e){e.method=`codeAction/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeAction.resolveSupport`,`codeActionProvider.resolveProvider`)})(qe||(e.CodeActionResolveRequest=qe={}));var Je;(function(e){e.method=`workspace/symbol`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`workspace.symbol`,`workspaceSymbolProvider`)})(Je||(e.WorkspaceSymbolRequest=Je={}));var Ye;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`workspace.symbol.resolveSupport`,`workspaceSymbolProvider.resolveProvider`)})(Ye||(e.WorkspaceSymbolResolveRequest=Ye={}));var Xe;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeLens`,`codeLensProvider`)})(Xe||(e.CodeLensRequest=Xe={}));var Ze;(function(e){e.method=`codeLens/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeLens.resolveSupport`,`codeLensProvider.resolveProvider`)})(Ze||(e.CodeLensResolveRequest=Ze={}));var Qe;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create(`workspace.codeLens`,void 0)})(Qe||(e.CodeLensRefreshRequest=Qe={}));var $e;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentLink`,`documentLinkProvider`)})($e||(e.DocumentLinkRequest=$e={}));var et;(function(e){e.method=`documentLink/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentLink`,`documentLinkProvider.resolveProvider`)})(et||(e.DocumentLinkResolveRequest=et={}));var tt;(function(e){e.method=`textDocument/formatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.formatting`,`documentFormattingProvider`)})(tt||(e.DocumentFormattingRequest=tt={}));var nt;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rangeFormatting`,`documentRangeFormattingProvider`)})(nt||(e.DocumentRangeFormattingRequest=nt={}));var rt;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rangeFormatting.rangesSupport`,`documentRangeFormattingProvider.rangesSupport`)})(rt||(e.DocumentRangesFormattingRequest=rt={}));var it;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.onTypeFormatting`,`documentOnTypeFormattingProvider`)})(it||(e.DocumentOnTypeFormattingRequest=it={}));var at;(function(e){e.Identifier=1})(at||(e.PrepareSupportDefaultBehavior=at={}));var ot;(function(e){e.method=`textDocument/rename`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rename`,`renameProvider`)})(ot||(e.RenameRequest=ot={}));var st;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rename.prepareSupport`,`renameProvider.prepareProvider`)})(st||(e.PrepareRenameRequest=st={}));var ct;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`workspace.executeCommand`,`executeCommandProvider`)})(ct||(e.ExecuteCommandRequest=ct={}));var lt;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(`workspace/applyEdit`),e.capabilities=i.CM.create(`workspace.applyEdit`,void 0)})(lt||(e.ApplyWorkspaceEditRequest=lt={}))}}),xct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=n;var t=DI();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}Y(n,`createProtocolConnection`)}}),Sct=yI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(DI(),e),n((YI(),Pot(Hot)),e),n(XI(),e),n(nL(),e);var r=xct();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:Y(function(){return r.createProtocolConnection},`get`)});var i;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(i||(e.LSPErrorCodes=i={}))}}),Y(cP,`isAstNode`),Y(lP,`isReference`),Y(uP,`isMultiReference`),Y(dP,`isAstNodeDescription`),Y(fP,`isLinkingError`),Cct=class{static{Y(this,`AbstractAstReflection`)}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return cP(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}isComplete(e){let t=this.getTypeMetaData(e.$type);for(let n of Object.keys(t.properties)){let r=t.properties[n];if(!r.optional&&e[r.name]==null)return!1}return!0}},Y(pP,`isCompositeCstNode`),Y(d9e,`isLeafCstNode`),Y(f9e,`isRootCstNode`),rL=class e{static{Y(this,`StreamImpl`)}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:Y(()=>this.nextFn(e.state),`next`),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return aL})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=p9e(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?aL:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return aL})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(mP(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return aL})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t){if(mP(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}}while(e.iterator);return aL})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?aL:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return aL})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}},Y(p9e,`toString`),Y(mP,`isIterable`),iL=new rL(()=>void 0,()=>aL),aL=Object.freeze({done:!0,value:void 0}),Y(hP,`stream`),oL=class extends rL{static{Y(this,`TreeStreamImpl`)}constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return aL})}iterator(){let e={state:this.startFn(),next:Y(()=>this.nextFn(e.state),`next`),prune:Y(()=>{e.state.pruned=!0},`prune`),[Symbol.iterator]:()=>e};return e}},(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}Y(t,`sum`),e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}Y(n,`product`),e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}Y(r,`min`),e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}Y(i,`max`),e.max=i})(wct||={}),Y(gP,`linkContentToContainer`),Y(m9e,`getContainerOfType`),Y(_P,`getDocument`),Y(vP,`findRootNode`),Y(h9e,`getReferenceNodes`),Y(g9e,`streamContents`),Y(yP,`streamAllContents`),Y(bP,`streamAst`),Y(_9e,`isAstNodeInRange`),Y(xP,`streamReferences`),Y(v9e,`assignMandatoryProperties`),Y(y9e,`copyDefaultValue`),sL={$type:`AbstractElement`,cardinality:`cardinality`},Y(b9e,`isAbstractElement`),cL={$type:`AbstractParserRule`},Y(SP,`isAbstractParserRule`),Tct={$type:`AbstractRule`},lL={$type:`AbstractType`},uL={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`},Y(x9e,`isAction`),Ect={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`},Y(S9e,`isAlternatives`),Dct={$type:`ArrayLiteral`,elements:`elements`},Oct={$type:`ArrayType`,elementType:`elementType`},dL={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`},Y(CP,`isAssignment`),fL={$type:`BooleanLiteral`,true:`true`},Y(wP,`isBooleanLiteral`),pL={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`},Y(C9e,`isCharacterRange`),mL={$type:`Condition`},kct={$type:`Conjunction`,left:`left`,right:`right`},Y(TP,`isConjunction`),hL={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`},Y(EP,`isCrossReference`),gL={$type:`Disjunction`,left:`left`,right:`right`},Y(w9e,`isDisjunction`),Act={$type:`EndOfFile`,cardinality:`cardinality`},Y(T9e,`isEndOfFile`),_L={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},jct={$type:`GrammarImport`,path:`path`},vL={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`},Y(E9e,`isGroup`),Mct={$type:`InferredType`,name:`name`},Y(D9e,`isInferredType`),yL={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`},Y(DP,`isInfixRule`),Nct={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Pct={$type:`InfixRuleOperators`,precedences:`precedences`},bL={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`},Y(O9e,`isInterface`),xL={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`},Y(OP,`isKeyword`),Fct={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},SL={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},Y(kP,`isNegatedToken`),CL={$type:`Negation`,value:`value`},Y(k9e,`isNegation`),Ict={$type:`NumberLiteral`,value:`value`},wL={$type:`Parameter`,name:`name`},Lct={$type:`ParameterReference`,parameter:`parameter`},Y(A9e,`isParameterReference`),TL={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`},Y(AP,`isParserRule`),EL={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},DL={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`},Y(j9e,`isRegexToken`),Rct={$type:`ReturnType`,name:`name`},Y(M9e,`isReturnType`),OL={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`},Y(jP,`isRuleCall`),kL={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`},Y(N9e,`isSimpleType`),AL={$type:`StringLiteral`,value:`value`},jL={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},Y(P9e,`isTerminalAlternatives`),ML={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},NL={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},Y(F9e,`isTerminalGroup`),PL={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`},Y(MP,`isTerminalRule`),FL={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`},Y(I9e,`isTerminalRuleCall`),IL={$type:`Type`,name:`name`,type:`type`},Y(L9e,`isType`),LL={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},RL={$type:`TypeDefinition`},zL={$type:`UnionType`,types:`types`},zct={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`},Y(R9e,`isUnorderedGroup`),BL={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},Y(z9e,`isUntilToken`),VL={$type:`ValueLiteral`},HL={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},Y(B9e,`isWildcard`),UL=class extends Cct{static{Y(this,`LangiumGrammarAstReflection`)}constructor(){super(...arguments),this.types={AbstractElement:{name:sL.$type,properties:{cardinality:{name:sL.cardinality,optional:!0}},superTypes:[]},AbstractParserRule:{name:cL.$type,properties:{},superTypes:[Tct.$type,lL.$type]},AbstractRule:{name:Tct.$type,properties:{},superTypes:[]},AbstractType:{name:lL.$type,properties:{},superTypes:[]},Action:{name:uL.$type,properties:{cardinality:{name:uL.cardinality,optional:!0},feature:{name:uL.feature,optional:!0},inferredType:{name:uL.inferredType,optional:!0},operator:{name:uL.operator,optional:!0},type:{name:uL.type,referenceType:lL.$type,optional:!0}},superTypes:[sL.$type]},Alternatives:{name:Ect.$type,properties:{cardinality:{name:Ect.cardinality,optional:!0},elements:{name:Ect.elements,defaultValue:[]}},superTypes:[sL.$type]},ArrayLiteral:{name:Dct.$type,properties:{elements:{name:Dct.elements,defaultValue:[]}},superTypes:[VL.$type]},ArrayType:{name:Oct.$type,properties:{elementType:{name:Oct.elementType}},superTypes:[RL.$type]},Assignment:{name:dL.$type,properties:{cardinality:{name:dL.cardinality,optional:!0},feature:{name:dL.feature},operator:{name:dL.operator},predicate:{name:dL.predicate,optional:!0},terminal:{name:dL.terminal}},superTypes:[sL.$type]},BooleanLiteral:{name:fL.$type,properties:{true:{name:fL.true,defaultValue:!1}},superTypes:[mL.$type,VL.$type]},CharacterRange:{name:pL.$type,properties:{cardinality:{name:pL.cardinality,optional:!0},left:{name:pL.left},lookahead:{name:pL.lookahead,optional:!0},parenthesized:{name:pL.parenthesized,defaultValue:!1,optional:!0},right:{name:pL.right,optional:!0}},superTypes:[ML.$type]},Condition:{name:mL.$type,properties:{},superTypes:[]},Conjunction:{name:kct.$type,properties:{left:{name:kct.left},right:{name:kct.right}},superTypes:[mL.$type]},CrossReference:{name:hL.$type,properties:{cardinality:{name:hL.cardinality,optional:!0},deprecatedSyntax:{name:hL.deprecatedSyntax,defaultValue:!1},isMulti:{name:hL.isMulti,defaultValue:!1},terminal:{name:hL.terminal,optional:!0},type:{name:hL.type,referenceType:lL.$type}},superTypes:[sL.$type]},Disjunction:{name:gL.$type,properties:{left:{name:gL.left},right:{name:gL.right}},superTypes:[mL.$type]},EndOfFile:{name:Act.$type,properties:{cardinality:{name:Act.cardinality,optional:!0}},superTypes:[sL.$type]},Grammar:{name:_L.$type,properties:{imports:{name:_L.imports,defaultValue:[]},interfaces:{name:_L.interfaces,defaultValue:[]},isDeclared:{name:_L.isDeclared,defaultValue:!1},name:{name:_L.name,optional:!0},rules:{name:_L.rules,defaultValue:[]},types:{name:_L.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:jct.$type,properties:{path:{name:jct.path}},superTypes:[]},Group:{name:vL.$type,properties:{cardinality:{name:vL.cardinality,optional:!0},elements:{name:vL.elements,defaultValue:[]},guardCondition:{name:vL.guardCondition,optional:!0},predicate:{name:vL.predicate,optional:!0}},superTypes:[sL.$type]},InferredType:{name:Mct.$type,properties:{name:{name:Mct.name}},superTypes:[lL.$type]},InfixRule:{name:yL.$type,properties:{call:{name:yL.call},dataType:{name:yL.dataType,optional:!0},inferredType:{name:yL.inferredType,optional:!0},name:{name:yL.name},operators:{name:yL.operators},parameters:{name:yL.parameters,defaultValue:[]},returnType:{name:yL.returnType,referenceType:lL.$type,optional:!0}},superTypes:[cL.$type]},InfixRuleOperatorList:{name:Nct.$type,properties:{associativity:{name:Nct.associativity,optional:!0},operators:{name:Nct.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Pct.$type,properties:{precedences:{name:Pct.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:bL.$type,properties:{attributes:{name:bL.attributes,defaultValue:[]},name:{name:bL.name},superTypes:{name:bL.superTypes,defaultValue:[],referenceType:lL.$type}},superTypes:[lL.$type]},Keyword:{name:xL.$type,properties:{cardinality:{name:xL.cardinality,optional:!0},predicate:{name:xL.predicate,optional:!0},value:{name:xL.value}},superTypes:[sL.$type]},NamedArgument:{name:Fct.$type,properties:{calledByName:{name:Fct.calledByName,defaultValue:!1},parameter:{name:Fct.parameter,referenceType:wL.$type,optional:!0},value:{name:Fct.value}},superTypes:[]},NegatedToken:{name:SL.$type,properties:{cardinality:{name:SL.cardinality,optional:!0},lookahead:{name:SL.lookahead,optional:!0},parenthesized:{name:SL.parenthesized,defaultValue:!1,optional:!0},terminal:{name:SL.terminal}},superTypes:[ML.$type]},Negation:{name:CL.$type,properties:{value:{name:CL.value}},superTypes:[mL.$type]},NumberLiteral:{name:Ict.$type,properties:{value:{name:Ict.value}},superTypes:[VL.$type]},Parameter:{name:wL.$type,properties:{name:{name:wL.name}},superTypes:[]},ParameterReference:{name:Lct.$type,properties:{parameter:{name:Lct.parameter,referenceType:wL.$type}},superTypes:[mL.$type]},ParserRule:{name:TL.$type,properties:{dataType:{name:TL.dataType,optional:!0},definition:{name:TL.definition},entry:{name:TL.entry,defaultValue:!1},fragment:{name:TL.fragment,defaultValue:!1},inferredType:{name:TL.inferredType,optional:!0},name:{name:TL.name},parameters:{name:TL.parameters,defaultValue:[]},returnType:{name:TL.returnType,referenceType:lL.$type,optional:!0}},superTypes:[cL.$type]},ReferenceType:{name:EL.$type,properties:{isMulti:{name:EL.isMulti,defaultValue:!1},referenceType:{name:EL.referenceType}},superTypes:[RL.$type]},RegexToken:{name:DL.$type,properties:{cardinality:{name:DL.cardinality,optional:!0},lookahead:{name:DL.lookahead,optional:!0},parenthesized:{name:DL.parenthesized,defaultValue:!1,optional:!0},regex:{name:DL.regex}},superTypes:[ML.$type]},ReturnType:{name:Rct.$type,properties:{name:{name:Rct.name}},superTypes:[]},RuleCall:{name:OL.$type,properties:{arguments:{name:OL.arguments,defaultValue:[]},cardinality:{name:OL.cardinality,optional:!0},predicate:{name:OL.predicate,optional:!0},rule:{name:OL.rule,referenceType:Tct.$type}},superTypes:[sL.$type]},SimpleType:{name:kL.$type,properties:{primitiveType:{name:kL.primitiveType,optional:!0},stringType:{name:kL.stringType,optional:!0},typeRef:{name:kL.typeRef,referenceType:lL.$type,optional:!0}},superTypes:[RL.$type]},StringLiteral:{name:AL.$type,properties:{value:{name:AL.value}},superTypes:[VL.$type]},TerminalAlternatives:{name:jL.$type,properties:{cardinality:{name:jL.cardinality,optional:!0},elements:{name:jL.elements,defaultValue:[]},lookahead:{name:jL.lookahead,optional:!0},parenthesized:{name:jL.parenthesized,defaultValue:!1,optional:!0}},superTypes:[ML.$type]},TerminalElement:{name:ML.$type,properties:{cardinality:{name:ML.cardinality,optional:!0},lookahead:{name:ML.lookahead,optional:!0},parenthesized:{name:ML.parenthesized,defaultValue:!1,optional:!0}},superTypes:[sL.$type]},TerminalGroup:{name:NL.$type,properties:{cardinality:{name:NL.cardinality,optional:!0},elements:{name:NL.elements,defaultValue:[]},lookahead:{name:NL.lookahead,optional:!0},parenthesized:{name:NL.parenthesized,defaultValue:!1,optional:!0}},superTypes:[ML.$type]},TerminalRule:{name:PL.$type,properties:{definition:{name:PL.definition},fragment:{name:PL.fragment,defaultValue:!1},hidden:{name:PL.hidden,defaultValue:!1},name:{name:PL.name},type:{name:PL.type,optional:!0}},superTypes:[Tct.$type]},TerminalRuleCall:{name:FL.$type,properties:{cardinality:{name:FL.cardinality,optional:!0},lookahead:{name:FL.lookahead,optional:!0},parenthesized:{name:FL.parenthesized,defaultValue:!1,optional:!0},rule:{name:FL.rule,referenceType:PL.$type}},superTypes:[ML.$type]},Type:{name:IL.$type,properties:{name:{name:IL.name},type:{name:IL.type}},superTypes:[lL.$type]},TypeAttribute:{name:LL.$type,properties:{defaultValue:{name:LL.defaultValue,optional:!0},isOptional:{name:LL.isOptional,defaultValue:!1},name:{name:LL.name},type:{name:LL.type}},superTypes:[]},TypeDefinition:{name:RL.$type,properties:{},superTypes:[]},UnionType:{name:zL.$type,properties:{types:{name:zL.types,defaultValue:[]}},superTypes:[RL.$type]},UnorderedGroup:{name:zct.$type,properties:{cardinality:{name:zct.cardinality,optional:!0},elements:{name:zct.elements,defaultValue:[]}},superTypes:[sL.$type]},UntilToken:{name:BL.$type,properties:{cardinality:{name:BL.cardinality,optional:!0},lookahead:{name:BL.lookahead,optional:!0},parenthesized:{name:BL.parenthesized,defaultValue:!1,optional:!0},terminal:{name:BL.terminal}},superTypes:[ML.$type]},ValueLiteral:{name:VL.$type,properties:{},superTypes:[]},Wildcard:{name:HL.$type,properties:{cardinality:{name:HL.cardinality,optional:!0},lookahead:{name:HL.lookahead,optional:!0},parenthesized:{name:HL.parenthesized,defaultValue:!1,optional:!0}},superTypes:[ML.$type]}}}},WL=new UL,Y(V9e,`streamCst`),Y(H9e,`isChildNode`),Y(U9e,`tokenToRange`),Y(W9e,`isValidTokenRange`),Y(NP,`toDocumentSegment`),(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(GL||={}),Y(G9e,`compareRange`),Y(K9e,`inRange`),Bct=/^[\w\p{L}]$/u,Y(q9e,`findCommentNode`),Y(J9e,`isCommentNode`),Y(Y9e,`getPreviousNode`),Vct=class extends Error{static{Y(this,`ErrorWithLocation`)}constructor(e,t){let n=typeof t==`string`?t:t();super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}},Y(PP,`assertUnreachable`),Y(FP,`cc`),Y(X9e,`insertToSet`),Y(IP,`addFlag`),Y(LP,`ASSERT_EXISTS`),Y(Z9e,`ASSERT_NEVER_REACH_HERE`),Y(Q9e,`isCharacter`),Hct=[];for(let e=FP(`0`);e<=FP(`9`);e++)Hct.push(e);Uct=[FP(`_`)].concat(Hct);for(let e=FP(`a`);e<=FP(`z`);e++)Uct.push(e);for(let e=FP(`A`);e<=FP(`Z`);e++)Uct.push(e);Wct=[FP(` `),FP(`\f`),FP(` -`),FP(`\r`),FP(` `),FP(`\v`),FP(` `),FP(`\xA0`),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(` `),FP(`\u2028`),FP(`\u2029`),FP(` `),FP(` `),FP(` `),FP(``)],Gct=/[0-9a-fA-F]/,KL=/[0-9]/,Kct=/[1-9]/,qct=class{static{Y(this,`RegExpParser`)}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(`/`);let t=this.disjunction();this.consumeChar(`/`);let 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`:IP(n,`global`);break;case`i`:IP(n,`ignoreCase`);break;case`m`:IP(n,`multiLine`);break;case`u`:IP(n,`unicode`);break;case`y`:IP(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let 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 t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}LP(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return Z9e()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;LP(t)}if((e!==!0||t!==void 0)&&LP(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),LP(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Z9e()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[FP(` -`),FP(`\r`),FP(`\u2028`),FP(`\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,t=!1;switch(this.popChar()){case`d`:e=Hct;break;case`D`:e=Hct,t=!0;break;case`s`:e=Wct;break;case`S`:e=Wct,t=!0;break;case`w`:e=Uct;break;case`W`:e=Uct,t=!0}return LP(e)?{type:`Set`,value:e,complement:t}:Z9e()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=FP(`\f`);break;case`n`:e=FP(` -`);break;case`r`:e=FP(`\r`);break;case`t`:e=FP(` `);break;case`v`:e=FP(`\v`)}return LP(e)?{type:`Character`,value:e}:Z9e()}controlLetterEscapeAtom(){this.consumeChar(`c`);let 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:FP(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:FP(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` -`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:FP(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,Q9e(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,Q9e(n)){if(n.value0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return NI.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return NI.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n(e))}Y(s,`stringArray`);function l(e,t){return Array.isArray(e)&&e.every(t)}Y(l,`typedArray`);function u(e){return typeof e==`object`&&!!e}Y(u,`objectLiteral`)}}),lct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.implementation`,`implementationProvider`)})(n||(e.ImplementationRequest=n={}))}}),uct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.typeDefinition`,`typeDefinitionProvider`)})(n||(e.TypeDefinitionRequest=n={}))}}),ZI=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=XI(),n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.workspaceFolders`,`workspace.workspaceFolders`)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(void 0,`workspace.workspaceFolders.changeNotifications`)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))}}),dct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=XI(),n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.configuration`,void 0)})(n||(e.ConfigurationRequest=n={}))}}),fct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.colorProvider`,`colorProvider`)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.colorProvider`,`colorProvider`)})(r||(e.ColorPresentationRequest=r={}))}}),pct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.foldingRange`,`foldingRangeProvider`)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.foldingRange.refreshSupport`,void 0)})(r||(e.FoldingRangeRefreshRequest=r={}))}}),QI=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.declaration`,`declarationProvider`)})(n||(e.DeclarationRequest=n={}))}}),mct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.selectionRange`,`selectionRangeProvider`)})(n||(e.SelectionRangeRequest=n={}))}}),hct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=AI(),n=XI(),r;(function(e){e.type=new t.ProgressType;function n(t){return t===e.type}Y(n,`is`),e.is=n})(r||(e.WorkDoneProgress=r={}));var i;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create(`window.workDoneProgress`,void 0)})(i||(e.WorkDoneProgressCreateRequest=i={}));var a;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(a||(e.WorkDoneProgressCancelNotification=a={}))}}),$I=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.callHierarchy`,`callHierarchyProvider`)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.callHierarchy`,`callHierarchyProvider`)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.callHierarchy`,`callHierarchyProvider`)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))}}),gct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=XI(),n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=t.CM.create(`textDocument.semanticTokens`,`semanticTokensProvider`)})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=t.CM.create(`textDocument.semanticTokens.requests.full.delta`,`semanticTokensProvider.full.delta`)})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=t.CM.create(`textDocument.semanticTokens.requests.range`,`semanticTokensProvider.range`)})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.semanticTokens.refreshSupport`,void 0)})(s||(e.SemanticTokensRefreshRequest=s={}))}}),_ct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=XI(),n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`window.showDocument.support`,void 0)})(n||(e.ShowDocumentRequest=n={}))}}),vct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.linkedEditingRange`,`linkedEditingRangeProvider`)})(n||(e.LinkedEditingRangeRequest=n={}))}}),yct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=XI(),n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.willCreate`,`workspace.fileOperations.willCreate`)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.didCreate`,`workspace.fileOperations.didCreate`)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.willRename`,`workspace.fileOperations.willRename`)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.didRename`,`workspace.fileOperations.didRename`)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.didDelete`,`workspace.fileOperations.didDelete`)})(s||(e.DidDeleteFilesNotification=s={}));var l;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`workspace.fileOperations.willDelete`,`workspace.fileOperations.willDelete`)})(l||(e.WillDeleteFilesRequest=l={}))}}),bct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=XI(),n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.moniker`,`monikerProvider`)})(i||(e.MonikerRequest=i={}))}}),xct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.typeHierarchy`,`typeHierarchyProvider`)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))}}),Sct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.inlineValue`,`inlineValueProvider`)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.inlineValue.refreshSupport`,void 0)})(r||(e.InlineValueRefreshRequest=r={}))}}),eL=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=XI(),n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.inlayHint`,`inlayHintProvider`)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.capabilities=t.CM.create(`textDocument.inlayHint.resolveSupport`,`inlayHintProvider.resolveProvider`)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method),e.capabilities=t.CM.create(`workspace.inlayHint.refreshSupport`,void 0)})(i||(e.InlayHintRefreshRequest=i={}))}}),Cct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=Y(function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},`ownKeys`);return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o0}Y(t,`hasId`),e.hasId=t})(se||(e.StaticRegistrationOptions=se={}));var ce;(function(e){function t(e){let t=e;return t&&(t.documentSelector===null||ee.is(t.documentSelector))}Y(t,`is`),e.is=t})(ce||(e.TextDocumentRegistrationOptions=ce={}));var le;(function(e){function t(e){let t=e;return o.objectLiteral(t)&&(t.workDoneProgress===void 0||o.boolean(t.workDoneProgress))}Y(t,`is`),e.is=t;function n(e){let t=e;return t&&o.boolean(t.workDoneProgress)}Y(n,`hasWorkDoneProgress`),e.hasWorkDoneProgress=n})(le||(e.WorkDoneProgressOptions=le={}));var ue;(function(e){e.method=`initialize`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)})(ue||(e.InitializeRequest=ue={}));var de;(function(e){e.unknownProtocolVersion=1})(de||(e.InitializeErrorCodes=de={}));var fe;(function(e){e.method=`initialized`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)})(fe||(e.InitializedNotification=fe={}));var pe;(function(e){e.method=`shutdown`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType0(e.method)})(pe||(e.ShutdownRequest=pe={}));var me;(function(e){e.method=`exit`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType0(e.method)})(me||(e.ExitNotification=me={}));var he;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`workspace.didChangeConfiguration`,void 0)})(he||(e.DidChangeConfigurationNotification=he={}));var ge;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(ge||(e.MessageType=ge={}));var _e;(function(e){e.method=`window/showMessage`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`window.showMessage`,void 0)})(_e||(e.ShowMessageNotification=_e={}));var ve;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`window.showMessage`,void 0)})(ve||(e.ShowMessageRequest=ve={}));var ye;(function(e){e.method=`window/logMessage`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)})(ye||(e.LogMessageNotification=ye={}));var be;(function(e){e.method=`telemetry/event`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)})(be||(e.TelemetryEventNotification=be={}));var xe;(function(e){e.None=0,e.Full=1,e.Incremental=2})(xe||(e.TextDocumentSyncKind=xe={}));var Se;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization`,`textDocumentSync.openClose`)})(Se||(e.DidOpenTextDocumentNotification=Se={}));var Ce;(function(e){function t(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}Y(t,`isIncremental`),e.isIncremental=t;function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}Y(n,`isFull`),e.isFull=n})(Ce||(e.TextDocumentContentChangeEvent=Ce={}));var we;(function(e){e.method=`textDocument/didChange`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization`,`textDocumentSync`)})(we||(e.DidChangeTextDocumentNotification=we={}));var Te;(function(e){e.method=`textDocument/didClose`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization`,`textDocumentSync.openClose`)})(Te||(e.DidCloseTextDocumentNotification=Te={}));var Ee;(function(e){e.method=`textDocument/didSave`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization.didSave`,`textDocumentSync.save`)})(Ee||(e.DidSaveTextDocumentNotification=Ee={}));var De;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(De||(e.TextDocumentSaveReason=De={}));var Oe;(function(e){e.method=`textDocument/willSave`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization.willSave`,`textDocumentSync.willSave`)})(Oe||(e.WillSaveTextDocumentNotification=Oe={}));var ke;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.synchronization.willSaveWaitUntil`,`textDocumentSync.willSaveWaitUntil`)})(ke||(e.WillSaveTextDocumentWaitUntilRequest=ke={}));var Ae;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`workspace.didChangeWatchedFiles`,void 0)})(Ae||(e.DidChangeWatchedFilesNotification=Ae={}));var je;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(je||(e.FileChangeType=je={}));var Me;(function(e){function t(e){let t=e;return o.objectLiteral(t)&&(a.URI.is(t.baseUri)||a.WorkspaceFolder.is(t.baseUri))&&o.string(t.pattern)}Y(t,`is`),e.is=t})(Me||(e.RelativePattern=Me={}));var Ne;(function(e){function t(e){let t=e;return o.string(t)||Me.is(t)}Y(t,`is`),e.is=t})(Ne||(e.GlobPattern=Ne={}));var Pe;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Pe||(e.WatchKind=Pe={}));var Fe;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(`textDocument.publishDiagnostics`,void 0)})(Fe||(e.PublishDiagnosticsNotification=Fe={}));var Ie;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Ie||(e.CompletionTriggerKind=Ie={}));var Le;(function(e){e.method=`textDocument/completion`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.completion`,`completionProvider`)})(Le||(e.CompletionRequest=Le={}));var Re;(function(e){e.method=`completionItem/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.completion.completionItem.resolveSupport`,`completionProvider.resolveProvider`)})(Re||(e.CompletionResolveRequest=Re={}));var ze;(function(e){e.method=`textDocument/hover`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.hover`,`hoverProvider`)})(ze||(e.HoverRequest=ze={}));var Be;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Be||(e.SignatureHelpTriggerKind=Be={}));var Ve;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.signatureHelp`,`signatureHelpProvider`)})(Ve||(e.SignatureHelpRequest=Ve={}));var He;(function(e){e.method=`textDocument/definition`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.definition`,`definitionProvider`)})(He||(e.DefinitionRequest=He={}));var Ue;(function(e){e.method=`textDocument/references`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.references`,`referencesProvider`)})(Ue||(e.ReferencesRequest=Ue={}));var We;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentHighlight`,`documentHighlightProvider`)})(We||(e.DocumentHighlightRequest=We={}));var Ge;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentSymbol`,`documentSymbolProvider`)})(Ge||(e.DocumentSymbolRequest=Ge={}));var Ke;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeAction`,`codeActionProvider`)})(Ke||(e.CodeActionRequest=Ke={}));var qe;(function(e){e.method=`codeAction/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeAction.resolveSupport`,`codeActionProvider.resolveProvider`)})(qe||(e.CodeActionResolveRequest=qe={}));var Je;(function(e){e.method=`workspace/symbol`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`workspace.symbol`,`workspaceSymbolProvider`)})(Je||(e.WorkspaceSymbolRequest=Je={}));var Ye;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`workspace.symbol.resolveSupport`,`workspaceSymbolProvider.resolveProvider`)})(Ye||(e.WorkspaceSymbolResolveRequest=Ye={}));var Xe;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeLens`,`codeLensProvider`)})(Xe||(e.CodeLensRequest=Xe={}));var Ze;(function(e){e.method=`codeLens/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.codeLens.resolveSupport`,`codeLensProvider.resolveProvider`)})(Ze||(e.CodeLensResolveRequest=Ze={}));var Qe;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create(`workspace.codeLens`,void 0)})(Qe||(e.CodeLensRefreshRequest=Qe={}));var $e;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentLink`,`documentLinkProvider`)})($e||(e.DocumentLinkRequest=$e={}));var et;(function(e){e.method=`documentLink/resolve`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.documentLink`,`documentLinkProvider.resolveProvider`)})(et||(e.DocumentLinkResolveRequest=et={}));var tt;(function(e){e.method=`textDocument/formatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.formatting`,`documentFormattingProvider`)})(tt||(e.DocumentFormattingRequest=tt={}));var nt;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rangeFormatting`,`documentRangeFormattingProvider`)})(nt||(e.DocumentRangeFormattingRequest=nt={}));var rt;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rangeFormatting.rangesSupport`,`documentRangeFormattingProvider.rangesSupport`)})(rt||(e.DocumentRangesFormattingRequest=rt={}));var it;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.onTypeFormatting`,`documentOnTypeFormattingProvider`)})(it||(e.DocumentOnTypeFormattingRequest=it={}));var at;(function(e){e.Identifier=1})(at||(e.PrepareSupportDefaultBehavior=at={}));var ot;(function(e){e.method=`textDocument/rename`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rename`,`renameProvider`)})(ot||(e.RenameRequest=ot={}));var st;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`textDocument.rename.prepareSupport`,`renameProvider.prepareProvider`)})(st||(e.PrepareRenameRequest=st={}));var ct;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create(`workspace.executeCommand`,`executeCommandProvider`)})(ct||(e.ExecuteCommandRequest=ct={}));var lt;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(`workspace/applyEdit`),e.capabilities=i.CM.create(`workspace.applyEdit`,void 0)})(lt||(e.ApplyWorkspaceEditRequest=lt={}))}}),Dct=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=n;var t=AI();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}Y(n,`createProtocolConnection`)}}),nL=wI({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:Y(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(AI(),e),n((sct(),Pot(jI)),e),n(XI(),e),n(tL(),e);var r=Dct();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:Y(function(){return r.createProtocolConnection},`get`)});var i;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(i||(e.LSPErrorCodes=i={}))}}),Y(cP,`isAstNode`),Y(lP,`isReference`),Y(uP,`isMultiReference`),Y(g9e,`isAstNodeDescription`),Y(dP,`isLinkingError`),Oct=class{static{Y(this,`AbstractAstReflection`)}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return cP(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}isComplete(e){let t=this.getTypeMetaData(e.$type);for(let n of Object.keys(t.properties)){let r=t.properties[n];if(!r.optional&&e[r.name]==null)return!1}return!0}},Y(fP,`isCompositeCstNode`),Y(_9e,`isLeafCstNode`),Y(v9e,`isRootCstNode`),rL=class e{static{Y(this,`StreamImpl`)}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:Y(()=>this.nextFn(e.state),`next`),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return iL})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=y9e(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?iL:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return iL})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(pP(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return iL})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t){if(pP(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}}while(e.iterator);return iL})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?iL:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return iL})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}},Y(y9e,`toString`),Y(pP,`isIterable`),kct=new rL(()=>void 0,()=>iL),iL=Object.freeze({done:!0,value:void 0}),Y(mP,`stream`),aL=class extends rL{static{Y(this,`TreeStreamImpl`)}constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return iL})}iterator(){let e={state:this.startFn(),next:Y(()=>this.nextFn(e.state),`next`),prune:Y(()=>{e.state.pruned=!0},`prune`),[Symbol.iterator]:()=>e};return e}},(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}Y(t,`sum`),e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}Y(n,`product`),e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}Y(r,`min`),e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}Y(i,`max`),e.max=i})(Act||={}),Y(b9e,`linkContentToContainer`),Y(hP,`getContainerOfType`),Y(gP,`getDocument`),Y(x9e,`findRootNode`),Y(S9e,`getReferenceNodes`),Y(_P,`streamContents`),Y(vP,`streamAllContents`),Y(yP,`streamAst`),Y(bP,`isAstNodeInRange`),Y(C9e,`streamReferences`),Y(w9e,`assignMandatoryProperties`),Y(T9e,`copyDefaultValue`),oL={$type:`AbstractElement`,cardinality:`cardinality`},Y(xP,`isAbstractElement`),jct={$type:`AbstractParserRule`},Y(SP,`isAbstractParserRule`),Mct={$type:`AbstractRule`},sL={$type:`AbstractType`},cL={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`},Y(CP,`isAction`),Nct={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`},Y(wP,`isAlternatives`),Pct={$type:`ArrayLiteral`,elements:`elements`},Fct={$type:`ArrayType`,elementType:`elementType`},lL={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`},Y(TP,`isAssignment`),Ict={$type:`BooleanLiteral`,true:`true`},Y(E9e,`isBooleanLiteral`),uL={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`},Y(D9e,`isCharacterRange`),dL={$type:`Condition`},Lct={$type:`Conjunction`,left:`left`,right:`right`},Y(O9e,`isConjunction`),fL={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`},Y(EP,`isCrossReference`),pL={$type:`Disjunction`,left:`left`,right:`right`},Y(k9e,`isDisjunction`),mL={$type:`EndOfFile`,cardinality:`cardinality`},Y(A9e,`isEndOfFile`),hL={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},Rct={$type:`GrammarImport`,path:`path`},gL={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`},Y(DP,`isGroup`),zct={$type:`InferredType`,name:`name`},Y(j9e,`isInferredType`),_L={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`},Y(M9e,`isInfixRule`),vL={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},yL={$type:`InfixRuleOperators`,precedences:`precedences`},bL={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`},Y(OP,`isInterface`),xL={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`},Y(kP,`isKeyword`),Bct={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},SL={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},Y(N9e,`isNegatedToken`),CL={$type:`Negation`,value:`value`},Y(P9e,`isNegation`),Vct={$type:`NumberLiteral`,value:`value`},Hct={$type:`Parameter`,name:`name`},Uct={$type:`ParameterReference`,parameter:`parameter`},Y(F9e,`isParameterReference`),wL={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`},Y(AP,`isParserRule`),TL={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},EL={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`},Y(I9e,`isRegexToken`),DL={$type:`ReturnType`,name:`name`},Y(L9e,`isReturnType`),OL={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`},Y(jP,`isRuleCall`),kL={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`},Y(R9e,`isSimpleType`),Wct={$type:`StringLiteral`,value:`value`},AL={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},Y(z9e,`isTerminalAlternatives`),jL={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},ML={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},Y(B9e,`isTerminalGroup`),NL={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`},Y(MP,`isTerminalRule`),PL={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`},Y(V9e,`isTerminalRuleCall`),Gct={$type:`Type`,name:`name`,type:`type`},Y(H9e,`isType`),FL={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},IL={$type:`TypeDefinition`},LL={$type:`UnionType`,types:`types`},Kct={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`},Y(U9e,`isUnorderedGroup`),RL={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},Y(W9e,`isUntilToken`),zL={$type:`ValueLiteral`},BL={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},Y(NP,`isWildcard`),qct=class extends Oct{static{Y(this,`LangiumGrammarAstReflection`)}constructor(){super(...arguments),this.types={AbstractElement:{name:oL.$type,properties:{cardinality:{name:oL.cardinality,optional:!0}},superTypes:[]},AbstractParserRule:{name:jct.$type,properties:{},superTypes:[Mct.$type,sL.$type]},AbstractRule:{name:Mct.$type,properties:{},superTypes:[]},AbstractType:{name:sL.$type,properties:{},superTypes:[]},Action:{name:cL.$type,properties:{cardinality:{name:cL.cardinality,optional:!0},feature:{name:cL.feature,optional:!0},inferredType:{name:cL.inferredType,optional:!0},operator:{name:cL.operator,optional:!0},type:{name:cL.type,referenceType:sL.$type,optional:!0}},superTypes:[oL.$type]},Alternatives:{name:Nct.$type,properties:{cardinality:{name:Nct.cardinality,optional:!0},elements:{name:Nct.elements,defaultValue:[]}},superTypes:[oL.$type]},ArrayLiteral:{name:Pct.$type,properties:{elements:{name:Pct.elements,defaultValue:[]}},superTypes:[zL.$type]},ArrayType:{name:Fct.$type,properties:{elementType:{name:Fct.elementType}},superTypes:[IL.$type]},Assignment:{name:lL.$type,properties:{cardinality:{name:lL.cardinality,optional:!0},feature:{name:lL.feature},operator:{name:lL.operator},predicate:{name:lL.predicate,optional:!0},terminal:{name:lL.terminal}},superTypes:[oL.$type]},BooleanLiteral:{name:Ict.$type,properties:{true:{name:Ict.true,defaultValue:!1}},superTypes:[dL.$type,zL.$type]},CharacterRange:{name:uL.$type,properties:{cardinality:{name:uL.cardinality,optional:!0},left:{name:uL.left},lookahead:{name:uL.lookahead,optional:!0},parenthesized:{name:uL.parenthesized,defaultValue:!1,optional:!0},right:{name:uL.right,optional:!0}},superTypes:[jL.$type]},Condition:{name:dL.$type,properties:{},superTypes:[]},Conjunction:{name:Lct.$type,properties:{left:{name:Lct.left},right:{name:Lct.right}},superTypes:[dL.$type]},CrossReference:{name:fL.$type,properties:{cardinality:{name:fL.cardinality,optional:!0},deprecatedSyntax:{name:fL.deprecatedSyntax,defaultValue:!1},isMulti:{name:fL.isMulti,defaultValue:!1},terminal:{name:fL.terminal,optional:!0},type:{name:fL.type,referenceType:sL.$type}},superTypes:[oL.$type]},Disjunction:{name:pL.$type,properties:{left:{name:pL.left},right:{name:pL.right}},superTypes:[dL.$type]},EndOfFile:{name:mL.$type,properties:{cardinality:{name:mL.cardinality,optional:!0}},superTypes:[oL.$type]},Grammar:{name:hL.$type,properties:{imports:{name:hL.imports,defaultValue:[]},interfaces:{name:hL.interfaces,defaultValue:[]},isDeclared:{name:hL.isDeclared,defaultValue:!1},name:{name:hL.name,optional:!0},rules:{name:hL.rules,defaultValue:[]},types:{name:hL.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Rct.$type,properties:{path:{name:Rct.path}},superTypes:[]},Group:{name:gL.$type,properties:{cardinality:{name:gL.cardinality,optional:!0},elements:{name:gL.elements,defaultValue:[]},guardCondition:{name:gL.guardCondition,optional:!0},predicate:{name:gL.predicate,optional:!0}},superTypes:[oL.$type]},InferredType:{name:zct.$type,properties:{name:{name:zct.name}},superTypes:[sL.$type]},InfixRule:{name:_L.$type,properties:{call:{name:_L.call},dataType:{name:_L.dataType,optional:!0},inferredType:{name:_L.inferredType,optional:!0},name:{name:_L.name},operators:{name:_L.operators},parameters:{name:_L.parameters,defaultValue:[]},returnType:{name:_L.returnType,referenceType:sL.$type,optional:!0}},superTypes:[jct.$type]},InfixRuleOperatorList:{name:vL.$type,properties:{associativity:{name:vL.associativity,optional:!0},operators:{name:vL.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:yL.$type,properties:{precedences:{name:yL.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:bL.$type,properties:{attributes:{name:bL.attributes,defaultValue:[]},name:{name:bL.name},superTypes:{name:bL.superTypes,defaultValue:[],referenceType:sL.$type}},superTypes:[sL.$type]},Keyword:{name:xL.$type,properties:{cardinality:{name:xL.cardinality,optional:!0},predicate:{name:xL.predicate,optional:!0},value:{name:xL.value}},superTypes:[oL.$type]},NamedArgument:{name:Bct.$type,properties:{calledByName:{name:Bct.calledByName,defaultValue:!1},parameter:{name:Bct.parameter,referenceType:Hct.$type,optional:!0},value:{name:Bct.value}},superTypes:[]},NegatedToken:{name:SL.$type,properties:{cardinality:{name:SL.cardinality,optional:!0},lookahead:{name:SL.lookahead,optional:!0},parenthesized:{name:SL.parenthesized,defaultValue:!1,optional:!0},terminal:{name:SL.terminal}},superTypes:[jL.$type]},Negation:{name:CL.$type,properties:{value:{name:CL.value}},superTypes:[dL.$type]},NumberLiteral:{name:Vct.$type,properties:{value:{name:Vct.value}},superTypes:[zL.$type]},Parameter:{name:Hct.$type,properties:{name:{name:Hct.name}},superTypes:[]},ParameterReference:{name:Uct.$type,properties:{parameter:{name:Uct.parameter,referenceType:Hct.$type}},superTypes:[dL.$type]},ParserRule:{name:wL.$type,properties:{dataType:{name:wL.dataType,optional:!0},definition:{name:wL.definition},entry:{name:wL.entry,defaultValue:!1},fragment:{name:wL.fragment,defaultValue:!1},inferredType:{name:wL.inferredType,optional:!0},name:{name:wL.name},parameters:{name:wL.parameters,defaultValue:[]},returnType:{name:wL.returnType,referenceType:sL.$type,optional:!0}},superTypes:[jct.$type]},ReferenceType:{name:TL.$type,properties:{isMulti:{name:TL.isMulti,defaultValue:!1},referenceType:{name:TL.referenceType}},superTypes:[IL.$type]},RegexToken:{name:EL.$type,properties:{cardinality:{name:EL.cardinality,optional:!0},lookahead:{name:EL.lookahead,optional:!0},parenthesized:{name:EL.parenthesized,defaultValue:!1,optional:!0},regex:{name:EL.regex}},superTypes:[jL.$type]},ReturnType:{name:DL.$type,properties:{name:{name:DL.name}},superTypes:[]},RuleCall:{name:OL.$type,properties:{arguments:{name:OL.arguments,defaultValue:[]},cardinality:{name:OL.cardinality,optional:!0},predicate:{name:OL.predicate,optional:!0},rule:{name:OL.rule,referenceType:Mct.$type}},superTypes:[oL.$type]},SimpleType:{name:kL.$type,properties:{primitiveType:{name:kL.primitiveType,optional:!0},stringType:{name:kL.stringType,optional:!0},typeRef:{name:kL.typeRef,referenceType:sL.$type,optional:!0}},superTypes:[IL.$type]},StringLiteral:{name:Wct.$type,properties:{value:{name:Wct.value}},superTypes:[zL.$type]},TerminalAlternatives:{name:AL.$type,properties:{cardinality:{name:AL.cardinality,optional:!0},elements:{name:AL.elements,defaultValue:[]},lookahead:{name:AL.lookahead,optional:!0},parenthesized:{name:AL.parenthesized,defaultValue:!1,optional:!0}},superTypes:[jL.$type]},TerminalElement:{name:jL.$type,properties:{cardinality:{name:jL.cardinality,optional:!0},lookahead:{name:jL.lookahead,optional:!0},parenthesized:{name:jL.parenthesized,defaultValue:!1,optional:!0}},superTypes:[oL.$type]},TerminalGroup:{name:ML.$type,properties:{cardinality:{name:ML.cardinality,optional:!0},elements:{name:ML.elements,defaultValue:[]},lookahead:{name:ML.lookahead,optional:!0},parenthesized:{name:ML.parenthesized,defaultValue:!1,optional:!0}},superTypes:[jL.$type]},TerminalRule:{name:NL.$type,properties:{definition:{name:NL.definition},fragment:{name:NL.fragment,defaultValue:!1},hidden:{name:NL.hidden,defaultValue:!1},name:{name:NL.name},type:{name:NL.type,optional:!0}},superTypes:[Mct.$type]},TerminalRuleCall:{name:PL.$type,properties:{cardinality:{name:PL.cardinality,optional:!0},lookahead:{name:PL.lookahead,optional:!0},parenthesized:{name:PL.parenthesized,defaultValue:!1,optional:!0},rule:{name:PL.rule,referenceType:NL.$type}},superTypes:[jL.$type]},Type:{name:Gct.$type,properties:{name:{name:Gct.name},type:{name:Gct.type}},superTypes:[sL.$type]},TypeAttribute:{name:FL.$type,properties:{defaultValue:{name:FL.defaultValue,optional:!0},isOptional:{name:FL.isOptional,defaultValue:!1},name:{name:FL.name},type:{name:FL.type}},superTypes:[]},TypeDefinition:{name:IL.$type,properties:{},superTypes:[]},UnionType:{name:LL.$type,properties:{types:{name:LL.types,defaultValue:[]}},superTypes:[IL.$type]},UnorderedGroup:{name:Kct.$type,properties:{cardinality:{name:Kct.cardinality,optional:!0},elements:{name:Kct.elements,defaultValue:[]}},superTypes:[oL.$type]},UntilToken:{name:RL.$type,properties:{cardinality:{name:RL.cardinality,optional:!0},lookahead:{name:RL.lookahead,optional:!0},parenthesized:{name:RL.parenthesized,defaultValue:!1,optional:!0},terminal:{name:RL.terminal}},superTypes:[jL.$type]},ValueLiteral:{name:zL.$type,properties:{},superTypes:[]},Wildcard:{name:BL.$type,properties:{cardinality:{name:BL.cardinality,optional:!0},lookahead:{name:BL.lookahead,optional:!0},parenthesized:{name:BL.parenthesized,defaultValue:!1,optional:!0}},superTypes:[jL.$type]}}}},VL=new qct,Y(G9e,`streamCst`),Y(K9e,`isChildNode`),Y(q9e,`tokenToRange`),Y(J9e,`isValidTokenRange`),Y(Y9e,`toDocumentSegment`),(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(HL||={}),Y(X9e,`compareRange`),Y(Z9e,`inRange`),Jct=/^[\w\p{L}]$/u,Y(Q9e,`findCommentNode`),Y($9e,`isCommentNode`),Y(PP,`getPreviousNode`),Yct=class extends Error{static{Y(this,`ErrorWithLocation`)}constructor(e,t){let n=typeof t==`string`?t:t();super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}},Y(FP,`assertUnreachable`),Y(IP,`cc`),Y(eet,`insertToSet`),Y(LP,`addFlag`),Y(RP,`ASSERT_EXISTS`),Y(zP,`ASSERT_NEVER_REACH_HERE`),Y(tet,`isCharacter`),UL=[];for(let e=IP(`0`);e<=IP(`9`);e++)UL.push(e);Xct=[IP(`_`)].concat(UL);for(let e=IP(`a`);e<=IP(`z`);e++)Xct.push(e);for(let e=IP(`A`);e<=IP(`Z`);e++)Xct.push(e);Zct=[IP(` `),IP(`\f`),IP(` +`),IP(`\r`),IP(` `),IP(`\v`),IP(` `),IP(`\xA0`),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(` `),IP(`\u2028`),IP(`\u2029`),IP(` `),IP(` `),IP(` `),IP(``)],Qct=/[0-9a-fA-F]/,$ct=/[0-9]/,elt=/[1-9]/,tlt=class{static{Y(this,`RegExpParser`)}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(`/`);let t=this.disjunction();this.consumeChar(`/`);let 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`:LP(n,`global`);break;case`i`:LP(n,`ignoreCase`);break;case`m`:LP(n,`multiLine`);break;case`u`:LP(n,`unicode`);break;case`y`:LP(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let 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 t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}RP(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return zP()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;RP(t)}if((e!==!0||t!==void 0)&&RP(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),RP(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):zP()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[IP(` +`),IP(`\r`),IP(`\u2028`),IP(`\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,t=!1;switch(this.popChar()){case`d`:e=UL;break;case`D`:e=UL,t=!0;break;case`s`:e=Zct;break;case`S`:e=Zct,t=!0;break;case`w`:e=Xct;break;case`W`:e=Xct,t=!0}return RP(e)?{type:`Set`,value:e,complement:t}:zP()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=IP(`\f`);break;case`n`:e=IP(` +`);break;case`r`:e=IP(`\r`);break;case`t`:e=IP(` `);break;case`v`:e=IP(`\v`)}return RP(e)?{type:`Character`,value:e}:zP()}controlLetterEscapeAtom(){this.consumeChar(`c`);let 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:IP(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:IP(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:IP(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,tet(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,tet(n)){if(n.value=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}},qL=class{static{Y(this,`BaseRegExpVisitor`)}visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}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)}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){}},Jct=/\r?\n/gm,Yct=new qct,Xct=class extends qL{static{Y(this,`TerminalRegExpVisitor`)}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){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` -`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=tet(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!` -`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}},Zct=new Xct,Y($9e,`isMultilineComment`),Qct=`\f -\r \v \xA0            \u2028\u2029   `.split(``),Y(eet,`isWhitespace`),Y(tet,`escapeRegExp`),Y(net,`partialMatches`),Y(ret,`partialRegExp`),Y(iet,`getEntryRule`),Y(RP,`getHiddenRules`),Y(aet,`getAllReachableRules`),Y(oet,`ruleDfs`),Y(set,`getCrossReferenceTerminal`),Y(cet,`isCommentTerminal`),Y(uet,`findNodesForProperty`),Y(det,`findNodeForProperty`),Y(fet,`findNodesForPropertyInternal`),Y(pet,`findNodeForKeyword`),Y(met,`findNodesForKeywordInternal`),Y(zP,`findAssignment`),Y(het,`findNameAssignment`),Y(get,`findNameAssignmentInternal`),Y(_et,`isDataTypeRule`),Y(vet,`isDataTypeRuleInternal`),Y(yet,`getExplicitRuleType`),Y(BP,`getTypeName`),Y(bet,`getActionType`),Y(xet,`getRuleType`),Y(Cet,`terminalRegex`),JL=`[\\s\\S]`,Y(VP,`abstractElementToRegex`),Y(HP,`terminalAlternativesToRegex`),Y(wet,`terminalGroupToRegex`),Y(Tet,`untilTokenToRegex`),Y(Eet,`negateTokenToRegex`),Y(Det,`characterRangeToRegex`),Y(J,`keywordToRegex`),Y(UP,`withCardinality`),Y(Oet,`createGrammarConfig`),Y(ket,`PRINT_ERROR`),Y(Aet,`PRINT_WARNING`),Y(jet,`timer`),Y(Met,`toFastProperties`),Y(Net,`tokenLabel`),Y(Pet,`hasTokenLabel`),YL=class{static{Y(this,`AbstractProduction`)}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},XL=class extends YL{static{Y(this,`NonTerminal`)}constructor(e){super([]),this.idx=1,Object.assign(this,WP(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},ZL=class extends YL{static{Y(this,`Rule`)}constructor(e){super(e.definition),this.orgText=``,Object.assign(this,WP(e))}},QL=class extends YL{static{Y(this,`Alternative`)}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,WP(e))}},$L=class extends YL{static{Y(this,`Option`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,WP(e))}},eR=class extends YL{static{Y(this,`RepetitionMandatory`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,WP(e))}},tR=class extends YL{static{Y(this,`RepetitionMandatoryWithSeparator`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,WP(e))}},nR=class extends YL{static{Y(this,`Repetition`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,WP(e))}},rR=class extends YL{static{Y(this,`RepetitionWithSeparator`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,WP(e))}},iR=class extends YL{static{Y(this,`Alternation`)}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,Object.assign(this,WP(e))}},aR=class{static{Y(this,`Terminal`)}constructor(e){this.idx=1,Object.assign(this,WP(e))}accept(e){e.visit(this)}},Y(Fet,`serializeGrammar`),Y(Iet,`serializeProduction`),Y(WP,`pickOnlyDefined`),oR=class{static{Y(this,`GAstVisitor`)}visit(e){let t=e;switch(t.constructor){case XL:return this.visitNonTerminal(t);case QL:return this.visitAlternative(t);case $L:return this.visitOption(t);case eR:return this.visitRepetitionMandatory(t);case tR:return this.visitRepetitionMandatoryWithSeparator(t);case rR:return this.visitRepetitionWithSeparator(t);case nR:return this.visitRepetition(t);case iR:return this.visitAlternation(t);case aR:return this.visitTerminal(t);case ZL:return this.visitRule(t);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){}},Y(Let,`isSequenceProd`),Y(Ret,`isOptionalProd`),Y(zet,`isBranchingProd`),Y(GP,`getProductionDslName`),sR=class{static{Y(this,`RestWalker`)}walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof XL)this.walkProdRef(n,i,t);else if(n instanceof aR)this.walkTerminal(n,i,t);else if(n instanceof QL)this.walkFlat(n,i,t);else if(n instanceof $L)this.walkOption(n,i,t);else if(n instanceof eR)this.walkAtLeastOne(n,i,t);else if(n instanceof tR)this.walkAtLeastOneSep(n,i,t);else if(n instanceof rR)this.walkManySep(n,i,t);else if(n instanceof nR)this.walkMany(n,i,t);else if(n instanceof iR)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new $L({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=Bet(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new $L({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=Bet(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new QL({definition:[e]});this.walk(t,r)})}},Y(Bet,`restForRepetitionWithSeparator`),Y(KP,`first`),Y(Vet,`firstForSequence`),Y(Het,`firstForBranching`),Y(Uet,`firstForTerminal`),$ct=`_~IN~_`,elt=class extends sR{static{Y(this,`ResyncFollowsWalker`)}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=Get(e.referencedRule,e.idx)+this.topProd.name,i=KP(new QL({definition:t.concat(n)}));this.follows[r]=i}},Y(Wet,`computeAllProdsFollows`),Y(Get,`buildBetweenProdsFollowPrefix`),tlt={},nlt=new qct,Y(Ket,`getRegExpAst`),Y(qet,`clearRegExpParserCache`),rlt=`Complement Sets are not supported for first char optimization`,ilt=`Unable to use "first char" lexer optimizations: -`,Y(Jet,`getOptimizedStartCodesIndices`),Y(Yet,`firstCharOptimizedIndices`),Y(Xet,`addOptimizedIdxToResult`),Y(Zet,`handleIgnoreCase`),Y(Qet,`findCode`),Y($et,`isWholeOptional`),alt=class extends qL{static{Y(this,`CharCodeFinder`)}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){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?Qet(e,this.targetCharCodes)===void 0&&(this.found=!0):Qet(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},Y(ett,`canMatchCharCode`),cR=`PATTERN`,lR=`defaultMode`,olt=`modes`,slt=0,clt=1,llt=2,ult=3,Y(ttt,`analyzeTokenTypes`),Y(ntt,`getAsciiClass`),Y(rtt,`validatePatterns`),Y(itt,`validateRegExpPattern`),Y(att,`findMissingPatterns`),Y(ott,`findInvalidPatterns`),dlt=/[^\\][$]/,Y(qP,`findEndOfInputAnchor`),Y(JP,`findEmptyMatchRegExps`),flt=/[^\\[][\^]|^\^/,Y(stt,`findStartOfInputAnchor`),Y(ctt,`findUnsupportedFlags`),Y(ltt,`findDuplicatePatterns`),Y(utt,`findInvalidGroupType`),Y(dtt,`findModesThatDoNotExist`),Y(ftt,`findUnreachablePatterns`),Y(ptt,`tryToMatchStrToPattern`),Y(mtt,`noMetaChar`),Y(htt,`usesLookAheadOrBehind`),Y(gtt,`addStickyFlag`),Y(_tt,`performRuntimeChecks`),Y(vtt,`performWarningRuntimeChecks`),Y(ytt,`isCustomPattern`),Y(btt,`isShortPattern`),plt={test:Y(function(e){let t=e.length;for(let n=this.lastIndex;n${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}},(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(fR||={}),pR={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` -`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:glt,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(pR),mR=class{static{Y(this,`Lexer`)}constructor(e,t=pR){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=jet(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`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=Object.assign({},pR,t);let 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 n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===pR.lineTerminatorsPattern)this.config.lineTerminatorsPattern=plt;else if(this.config.lineTerminatorCharacters===pR.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(t.safeMode&&t.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),Array.isArray(e)?n={modes:{defaultMode:[...e]},defaultMode:lR}:(r=!1,n=Object.assign({},e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(_tt(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(vtt(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Object.entries(n.modes).forEach(([e,t])=>{n.modes[e]=t.filter(e=>e!==void 0)});let i=Object.keys(n.modes);if(Object.entries(n.modes).forEach(([e,n])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(rtt(n,i))}),this.lexerDefinitionErrors.length===0){QP(n);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=ttt(n,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=r.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- +`:case`\r`:case`\u2028`:case`\u2029`:return!1;default:return!0}}parseHexDigits(e){let t=``;for(let n=0;n=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}},nlt=class{static{Y(this,`BaseRegExpVisitor`)}visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}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)}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){}},WL=/\r?\n/gm,rlt=new tlt,ilt=class extends nlt{static{Y(this,`TerminalRegExpVisitor`)}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){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=ret(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!` +`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}},alt=new ilt,Y(net,`isMultilineComment`),olt=`\f +\r \v \xA0            \u2028\u2029   `.split(``),Y(BP,`isWhitespace`),Y(ret,`escapeRegExp`),Y(iet,`partialMatches`),Y(aet,`partialRegExp`),Y(oet,`getEntryRule`),Y(set,`getHiddenRules`),Y(cet,`getAllReachableRules`),Y(uet,`ruleDfs`),Y(det,`getCrossReferenceTerminal`),Y(fet,`isCommentTerminal`),Y(VP,`findNodesForProperty`),Y(HP,`findNodeForProperty`),Y(pet,`findNodesForPropertyInternal`),Y(met,`findNodeForKeyword`),Y(het,`findNodesForKeywordInternal`),Y(get,`findAssignment`),Y(_et,`findNameAssignment`),Y(vet,`findNameAssignmentInternal`),Y(yet,`isDataTypeRule`),Y(bet,`isDataTypeRuleInternal`),Y(xet,`getExplicitRuleType`),Y(UP,`getTypeName`),Y(Cet,`getActionType`),Y(wet,`getRuleType`),Y(Tet,`terminalRegex`),slt=`[\\s\\S]`,Y(WP,`abstractElementToRegex`),Y(J,`terminalAlternativesToRegex`),Y(GP,`terminalGroupToRegex`),Y(Eet,`untilTokenToRegex`),Y(Det,`negateTokenToRegex`),Y(Oet,`characterRangeToRegex`),Y(ket,`keywordToRegex`),Y(KP,`withCardinality`),Y(Aet,`createGrammarConfig`),Y(qP,`PRINT_ERROR`),Y(jet,`PRINT_WARNING`),Y(Met,`timer`),Y(Net,`toFastProperties`),Y(Pet,`tokenLabel`),Y(Fet,`hasTokenLabel`),GL=class{static{Y(this,`AbstractProduction`)}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},KL=class extends GL{static{Y(this,`NonTerminal`)}constructor(e){super([]),this.idx=1,Object.assign(this,JP(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},qL=class extends GL{static{Y(this,`Rule`)}constructor(e){super(e.definition),this.orgText=``,Object.assign(this,JP(e))}},JL=class extends GL{static{Y(this,`Alternative`)}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,JP(e))}},YL=class extends GL{static{Y(this,`Option`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,JP(e))}},XL=class extends GL{static{Y(this,`RepetitionMandatory`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,JP(e))}},ZL=class extends GL{static{Y(this,`RepetitionMandatoryWithSeparator`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,JP(e))}},QL=class extends GL{static{Y(this,`Repetition`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,JP(e))}},$L=class extends GL{static{Y(this,`RepetitionWithSeparator`)}constructor(e){super(e.definition),this.idx=1,Object.assign(this,JP(e))}},eR=class extends GL{static{Y(this,`Alternation`)}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,Object.assign(this,JP(e))}},tR=class{static{Y(this,`Terminal`)}constructor(e){this.idx=1,Object.assign(this,JP(e))}accept(e){e.visit(this)}},Y(Iet,`serializeGrammar`),Y(Let,`serializeProduction`),Y(JP,`pickOnlyDefined`),nR=class{static{Y(this,`GAstVisitor`)}visit(e){let t=e;switch(t.constructor){case KL:return this.visitNonTerminal(t);case JL:return this.visitAlternative(t);case YL:return this.visitOption(t);case XL:return this.visitRepetitionMandatory(t);case ZL:return this.visitRepetitionMandatoryWithSeparator(t);case $L:return this.visitRepetitionWithSeparator(t);case QL:return this.visitRepetition(t);case eR:return this.visitAlternation(t);case tR:return this.visitTerminal(t);case qL:return this.visitRule(t);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){}},Y(Ret,`isSequenceProd`),Y(YP,`isOptionalProd`),Y(zet,`isBranchingProd`),Y(XP,`getProductionDslName`),rR=class{static{Y(this,`RestWalker`)}walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof KL)this.walkProdRef(n,i,t);else if(n instanceof tR)this.walkTerminal(n,i,t);else if(n instanceof JL)this.walkFlat(n,i,t);else if(n instanceof YL)this.walkOption(n,i,t);else if(n instanceof XL)this.walkAtLeastOne(n,i,t);else if(n instanceof ZL)this.walkAtLeastOneSep(n,i,t);else if(n instanceof $L)this.walkManySep(n,i,t);else if(n instanceof QL)this.walkMany(n,i,t);else if(n instanceof eR)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new YL({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=Bet(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new YL({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=Bet(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new JL({definition:[e]});this.walk(t,r)})}},Y(Bet,`restForRepetitionWithSeparator`),Y(ZP,`first`),Y(Vet,`firstForSequence`),Y(Het,`firstForBranching`),Y(Uet,`firstForTerminal`),clt=`_~IN~_`,llt=class extends rR{static{Y(this,`ResyncFollowsWalker`)}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=Get(e.referencedRule,e.idx)+this.topProd.name,i=ZP(new JL({definition:t.concat(n)}));this.follows[r]=i}},Y(Wet,`computeAllProdsFollows`),Y(Get,`buildBetweenProdsFollowPrefix`),iR={},ult=new tlt,Y(QP,`getRegExpAst`),Y(Ket,`clearRegExpParserCache`),dlt=`Complement Sets are not supported for first char optimization`,aR=`Unable to use "first char" lexer optimizations: +`,Y(qet,`getOptimizedStartCodesIndices`),Y(Jet,`firstCharOptimizedIndices`),Y(Yet,`addOptimizedIdxToResult`),Y(Xet,`handleIgnoreCase`),Y($P,`findCode`),Y(Zet,`isWholeOptional`),flt=class extends nlt{static{Y(this,`CharCodeFinder`)}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){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?$P(e,this.targetCharCodes)===void 0&&(this.found=!0):$P(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},Y(Qet,`canMatchCharCode`),oR=`PATTERN`,sR=`defaultMode`,plt=`modes`,cR=0,mlt=1,hlt=2,lR=3,Y($et,`analyzeTokenTypes`),Y(eF,`getAsciiClass`),Y(tF,`validatePatterns`),Y(ett,`validateRegExpPattern`),Y(ttt,`findMissingPatterns`),Y(ntt,`findInvalidPatterns`),glt=/[^\\][$]/,Y(rtt,`findEndOfInputAnchor`),Y(itt,`findEmptyMatchRegExps`),_lt=/[^\\[][\^]|^\^/,Y(att,`findStartOfInputAnchor`),Y(ott,`findUnsupportedFlags`),Y(stt,`findDuplicatePatterns`),Y(ctt,`findInvalidGroupType`),Y(ltt,`findModesThatDoNotExist`),Y(utt,`findUnreachablePatterns`),Y(dtt,`tryToMatchStrToPattern`),Y(ftt,`noMetaChar`),Y(ptt,`usesLookAheadOrBehind`),Y(mtt,`addStickyFlag`),Y(htt,`performRuntimeChecks`),Y(gtt,`performWarningRuntimeChecks`),Y(_tt,`isCustomPattern`),Y(vtt,`isShortPattern`),vlt={test:Y(function(e){let t=e.length;for(let n=this.lastIndex;n${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}},(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(dR||={}),fR={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Slt,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(fR),pR=class{static{Y(this,`Lexer`)}constructor(e,t=fR){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=Met(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`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=Object.assign({},fR,t);let 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 n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===fR.lineTerminatorsPattern)this.config.lineTerminatorsPattern=vlt;else if(this.config.lineTerminatorCharacters===fR.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(t.safeMode&&t.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),Array.isArray(e)?n={modes:{defaultMode:[...e]},defaultMode:sR}:(r=!1,n=Object.assign({},e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(htt(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(gtt(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Object.entries(n.modes).forEach(([e,t])=>{n.modes[e]=t.filter(e=>e!==void 0)});let i=Object.keys(n.modes);if(Object.entries(n.modes).forEach(([e,n])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(tF(n,i))}),this.lexerDefinitionErrors.length===0){sF(n);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=$et(n,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=r.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- `);throw Error(`Errors detected in definition of Lexer: -`+e)}this.lexerDefinitionWarning.forEach(e=>{Aet(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=e=>e),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/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`,()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,n])=>(n===!1&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized. +`+e)}this.lexerDefinitionWarning.forEach(e=>{jet(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=e=>e),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/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`,()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,n])=>(n===!1&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.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`,()=>{qet()}),this.TRACE_INIT(`toFastProperties`,()=>{Met(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT(`clearRegExpParserCache`,()=>{Ket()}),this.TRACE_INIT(`toFastProperties`,()=>{Net(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- `);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v=e,y=v.length,b=0,x=0,S=this.hasCustom?0:Math.floor(e.length/10),C=Array(S),w=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,D={};for(let e=0;e{if(ee.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{ee.pop();let e=ee.at(-1);j=this.patternIdxToConfig[e],M=this.charCodeToPatternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}},`pop_mode`);function ie(e){ee.push(e),M=this.charCodeToPatternIdxToConfig[e],j=this.patternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}Y(ie,`push_mode`),ie.call(this,t);let ae,oe=this.config.recoveryEnabled;for(;bs.length){s=a,d=a.length,l=u,ae=t;break}}}break}}if(d!==-1){if(f=ae.group,f!==void 0&&(s=s===null?e.substring(b,b+d):s,p=ae.tokenTypeIdx,m=this.createTokenInstance(s,b,p,ae.tokenType,T,E,d),this.handlePayload(m,l),f===!1?x=this.addToken(C,x,m):D[f].push(m)),O===!0&&ae.canLineTerminator===!0){let t=0,n,r;k.lastIndex=0;do s=s===null?e.substring(b,b+d):s,n=k.test(s),n===!0&&(r=k.lastIndex-1,t++);while(n===!0);t===0?E=this.computeNewColumn(E,d):(T+=t,E=d-r,this.updateTokenEndLineColumnLocation(m,f,r,t,T,E,d))}else E=this.computeNewColumn(E,d);b+=d,this.handleModes(ae,re,ie,m)}else{let t=b,n=T,i=E,a=oe===!1;for(;a===!1&&b ${nF(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` +`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v=e,y=v.length,b=0,x=0,S=this.hasCustom?0:Math.floor(e.length/10),C=Array(S),w=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,D={};for(let e=0;e{if(ee.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{ee.pop();let e=ee.at(-1);j=this.patternIdxToConfig[e],M=this.charCodeToPatternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}},`pop_mode`);function ie(e){ee.push(e),M=this.charCodeToPatternIdxToConfig[e],j=this.patternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}Y(ie,`push_mode`),ie.call(this,t);let ae,oe=this.config.recoveryEnabled;for(;bs.length){s=a,d=a.length,l=u,ae=t;break}}}break}}if(d!==-1){if(f=ae.group,f!==void 0&&(s=s===null?e.substring(b,b+d):s,p=ae.tokenTypeIdx,m=this.createTokenInstance(s,b,p,ae.tokenType,T,E,d),this.handlePayload(m,l),f===!1?x=this.addToken(C,x,m):D[f].push(m)),O===!0&&ae.canLineTerminator===!0){let t=0,n,r;k.lastIndex=0;do s=s===null?e.substring(b,b+d):s,n=k.test(s),n===!0&&(r=k.lastIndex-1,t++);while(n===!0);t===0?E=this.computeNewColumn(E,d):(T+=t,E=d-r,this.updateTokenEndLineColumnLocation(m,f,r,t,T,E,d))}else E=this.computeNewColumn(E,d);b+=d,this.handleModes(ae,re,ie,m)}else{let t=b,n=T,i=E,a=oe===!1;for(;a===!1&&b ${lF(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` but found: '`+t[0].image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences: -${e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>nF(e)).join(`, `)}]`).map((e,t)=>` ${t+1}. ${e}`).join(` +${e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>lF(e)).join(`, `)}]`).map((e,t)=>` ${t+1}. ${e}`).join(` `)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=` but found: '`+t[0].image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: - <${e.map(e=>`[${e.map(e=>nF(e)).join(`,`)}]`).join(` ,`)}>`+i}},Object.freeze(_R),Tlt={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- -inside top level rule: ->`+e.name+`<-`}},vR={buildDuplicateFoundError(e,t){function n(e){return e instanceof aR?e.terminalType.name:e instanceof XL?e.nonTerminalName:``}Y(n,`getExtraProductionArgument`);let r=e.name,i=t[0],a=i.idx,o=GP(i),s=n(i),l=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} + <${e.map(e=>`[${e.map(e=>lF(e)).join(`,`)}]`).join(` ,`)}>`+i}},Object.freeze(hR),Mlt={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+`<-`}},gR={buildDuplicateFoundError(e,t){function n(e){return e instanceof tR?e.terminalType.name:e instanceof KL?e.nonTerminalName:``}Y(n,`getExtraProductionArgument`);let r=e.name,i=t[0],a=i.idx,o=XP(i),s=n(i),l=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} appears more than once (${t.length} times) in the top level rule: ->${r}<-. For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES `;return l=l.replace(/[ \t]+/g,` `),l=l.replace(/\s\s+/g,` @@ -1601,16 +1603,16 @@ inside top level rule: ->`+e.name+`<-`}},vR={buildDuplicateFoundError(e,t){funct The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. To resolve this make sure each Terminal and Non-Terminal names are unique This is easy to accomplish by using the convention that Terminal names start with an uppercase letter -and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>nF(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>lF(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix in inside <${e.topLevelRule.name}> Rule, <${t}> may appears as a prefix path in all these alternatives. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX For Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule, `;if(n)r+=`These alternatives are all empty (match no tokens), making them indistinguishable. Only the last alternative may be empty. -`;else{let t=e.prefixPath.map(e=>nF(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives. +`;else{let t=e.prefixPath.map(e=>lF(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives. `}return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,r},buildEmptyRepetitionError(e){let t=GP(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +For Further details.`,r},buildEmptyRepetitionError(e){let t=XP(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. This could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: inside <${e.topLevelRule.name}> Rule. @@ -1619,64 +1621,64 @@ rule: <${t}> can be invoked from itself (directly or indirectly) without consuming any Tokens. The grammar path that causes this is: ${`${t} --> ${e.leftRecursionPath.map(e=>e.name).concat([t]).join(` --> `)}`} To fix this refactor your grammar to remove the left recursion. -see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof ZL?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}},Y(Rtt,`resolveGrammar`),Elt=class extends oR{static{Y(this,`GastRefResolverVisitor`)}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:PR.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},yR=class extends sR{static{Y(this,`AbstractNextPossibleTokensWalker`)}constructor(e,t){super(),this.topProd=e,this.path=t,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=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Dlt=class extends yR{static{Y(this,`NextAfterTokenWalker`)}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new QL({definition:t.concat(n)});this.possibleTokTypes=KP(e),this.found=!0}}},Olt=class extends sR{static{Y(this,`AbstractNextTerminalAfterProductionWalker`)}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},klt=class extends Olt{static{Y(this,`NextTerminalAfterManyWalker`)}walkMany(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof aR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},Alt=class extends Olt{static{Y(this,`NextTerminalAfterManySepWalker`)}walkManySep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof aR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},jlt=class extends Olt{static{Y(this,`NextTerminalAfterAtLeastOneWalker`)}walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof aR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},Mlt=class extends Olt{static{Y(this,`NextTerminalAfterAtLeastOneSepWalker`)}walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof aR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}},Y(ztt,`possiblePathsFrom`),Y(Btt,`nextPossibleTokensAfter`),Y(Vtt,`expandTopLevelRule`),(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(bR||={}),Y(Htt,`getProdType`),Y(Utt,`getLookaheadPaths`),Y(Wtt,`buildLookaheadFuncForOr`),Y(Gtt,`buildLookaheadFuncForOptionalProd`),Y(rF,`buildAlternativesLookAheadFunc`),Y(Ktt,`buildSingleAlternativeLookaheadFunction`),Nlt=class extends sR{static{Y(this,`RestDefinitionFinderWalker`)}constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,bR.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,bR.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,bR.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,bR.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,bR.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},Plt=class extends oR{static{Y(this,`InsideDefinitionFinderVisitor`)}constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,bR.OPTION)}visitRepetition(e){this.checkIsTarget(e,bR.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,bR.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,bR.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,bR.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,bR.ALTERNATION)}},Y(qtt,`initializeArrayOfArrays`),Y(Jtt,`pathToHashKeys`),Y(Ytt,`isUniquePrefixHash`),Y(Xtt,`lookAheadSequenceFromAlternatives`),Y(iF,`getLookaheadPathsForOr`),Y(aF,`getLookaheadPathsForOptionalProd`),Y(Ztt,`containsPath`),Y(Qtt,`isStrictPrefixOfPath`),Y($tt,`areTokenCategoriesNotUsed`),Y(ent,`validateLookahead`),Y(tnt,`validateGrammar`),Y(oF,`validateDuplicateProductions`),Y(sF,`identifyProductionForDuplicates`),Y(nnt,`getExtraProductionArgument`),xR=class extends oR{static{Y(this,`OccurrenceValidationCollector`)}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)}},Y(rnt,`validateRuleDoesNotAlreadyExist`),Y(int,`validateRuleIsOverridden`),Y(ant,`validateNoLeftRecursion`),Y(ont,`getFirstNoneTerminal`),Flt=class extends oR{static{Y(this,`OrCollector`)}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},Y(cF,`validateEmptyOrAlternative`),Y(snt,`validateAmbiguousAlternationAlternatives`),Ilt=class extends oR{static{Y(this,`RepetitionCollector`)}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)}},Y(cnt,`validateTooManyAlts`),Y(lnt,`validateSomeNonEmptyLookaheadPath`),Y(unt,`checkAlternativesAmbiguities`),Y(lF,`checkPrefixAlternativesAmbiguities`),Y(dnt,`checkTerminalAndNoneTerminalsNameSpace`),Y(fnt,`resolveGrammar`),Y(pnt,`validateGrammar`),SR=`MismatchedTokenException`,Llt=`NoViableAltException`,Rlt=`EarlyExitException`,zlt=`NotAllInputParsedException`,CR=[SR,Llt,Rlt,zlt],Object.freeze(CR),Y(mnt,`isRecognitionException`),Blt=class extends Error{static{Y(this,`RecognitionException`)}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Vlt=class extends Blt{static{Y(this,`MismatchedTokenException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=SR}},Hlt=class extends Blt{static{Y(this,`NoViableAltException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=Llt}},Ult=class extends Blt{static{Y(this,`NotAllInputParsedException`)}constructor(e,t){super(e,t),this.name=zlt}},wR=class extends Blt{static{Y(this,`EarlyExitException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=Rlt}},Wlt={},Glt=`InRuleRecoveryException`,Klt=class extends Error{static{Y(this,`InRuleRecoveryException`)}constructor(e){super(e),this.name=Glt}},qlt=class{static{Y(this,`Recoverable`)}initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,`recoveryEnabled`)?e.recoveryEnabled:NR.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=uF)}getTokenToInsert(e){let t=Itt(e,``,-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA_FAST(1),u=this.LA_FAST(1),d=Y(()=>{let e=this.LA(0),t=new Vlt(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=o.slice(0,-1),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0],n=this.getGAstProductions()[t];return new Dlt(n,e).startWalking()}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new Klt(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||t.length===0)return!1;let n=this.LA_FAST(1);return t.find(e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),n=2;for(;;){let r=e.find(e=>Ltt(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return Wlt;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,n=this.RULE_STACK_IDX+1,r=Array(n);for(let i=0;ithis.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===Wlt)return[gR];let t=e.ruleName+e.idxInCallingRule+$ct+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,gR)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA_FAST(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let n=0;nant(e,e,vR))}validateEmptyOrAlternatives(e){return e.flatMap(e=>cF(e,vR))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>snt(e,t,vR))}validateSomeNonEmptyLookaheadPath(e,t){return lnt(e,t,vR)}buildLookaheadForAlternation(e){return Wtt(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,rF)}buildLookaheadForOptional(e){return Gtt(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Htt(e.prodType),Ktt)}},kR=class{static{Y(this,`LooksAhead`)}initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:NR.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,`maxLookahead`)?e.maxLookahead:NR.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,`lookaheadStrategy`)?e.lookaheadStrategy:new OR({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=hnt(e);t.forEach(t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${GP(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],Jlt|t.idx,n)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Xlt,`Repetition`,t.maxLookahead,GP(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Ylt,`Option`,t.maxLookahead,GP(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,ER,`RepetitionMandatory`,t.maxLookahead,GP(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,DR,`RepetitionMandatoryWithSeparator`,t.maxLookahead,GP(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Zlt,`RepetitionWithSeparator`,t.maxLookahead,GP(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r});this.setLaFuncCache(this.fullRuleNameToShort[e.name],n|t,a)})}setLaFuncCache(e,t,n){let r=this.lookAheadFuncsCache[e];r===void 0&&(r=[],this.lookAheadFuncsCache[e]=r),r[t]=n}},Qlt=class extends oR{static{Y(this,`DslMethodsCollectorVisitor`)}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)}},AR=new Qlt,Y(hnt,`collectMethods`),Y(gnt,`setNodeLocationOnlyOffset`),Y(dF,`setNodeLocationFull`),Y(_nt,`addTerminalToCst`),Y(vnt,`addNoneTerminalToCst`),$lt=`name`,Y(fF,`defineNameProp`),Y(ynt,`defaultVisit`),Y(bnt,`createBaseSemanticVisitorConstructor`),Y(xnt,`createBaseVisitorConstructorWithDefaults`),(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(eut||={}),Y(Snt,`validateVisitor`),Y(Cnt,`validateMissingCstMethods`),tut=class{static{Y(this,`TreeBuilder`)}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,`nodeLocationTracking`)?e.nodeLocationTracking:NR.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=dF,this.setNodeLocationFromNode=dF,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=gnt,this.setNodeLocationFromNode=gnt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=-1,n.startLine=-1,n.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=-1}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];_nt(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];vnt(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=bnt(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=xnt(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},nut=class{static{Y(this,`LexerAdapter`)}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.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):MR}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?MR:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},rut=class{static{Y(this,`RecognizerApi`)}ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}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,t,n=put){if(this.definedRulesNames.includes(e)){let t={message:vR.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:PR.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=put){let r=int(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){let n=e.coreRule??e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return n.apply(this,t),!0}catch(e){if(mnt(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Fet(Object.values(this.gastProductionsCache))}},iut=class{static{Y(this,`RecognizerEngine`)}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=ZP,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a property. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof qL?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}},Y(Itt,`resolveGrammar`),Nlt=class extends nR{static{Y(this,`GastRefResolverVisitor`)}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:DR.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},Plt=class extends rR{static{Y(this,`AbstractNextPossibleTokensWalker`)}constructor(e,t){super(),this.topProd=e,this.path=t,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=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Flt=class extends Plt{static{Y(this,`NextAfterTokenWalker`)}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new JL({definition:t.concat(n)});this.possibleTokTypes=ZP(e),this.found=!0}}},Ilt=class extends rR{static{Y(this,`AbstractNextTerminalAfterProductionWalker`)}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Llt=class extends Ilt{static{Y(this,`NextTerminalAfterManyWalker`)}walkMany(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},Rlt=class extends Ilt{static{Y(this,`NextTerminalAfterManySepWalker`)}walkManySep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},_R=class extends Ilt{static{Y(this,`NextTerminalAfterAtLeastOneWalker`)}walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},zlt=class extends Ilt{static{Y(this,`NextTerminalAfterAtLeastOneSepWalker`)}walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tR&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}},Y(Ltt,`possiblePathsFrom`),Y(Rtt,`nextPossibleTokensAfter`),Y(uF,`expandTopLevelRule`),(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(vR||={}),Y(ztt,`getProdType`),Y(Btt,`getLookaheadPaths`),Y(Vtt,`buildLookaheadFuncForOr`),Y(Htt,`buildLookaheadFuncForOptionalProd`),Y(Utt,`buildAlternativesLookAheadFunc`),Y(Wtt,`buildSingleAlternativeLookaheadFunction`),Blt=class extends rR{static{Y(this,`RestDefinitionFinderWalker`)}constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,vR.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,vR.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,vR.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,vR.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,vR.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},Vlt=class extends nR{static{Y(this,`InsideDefinitionFinderVisitor`)}constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,vR.OPTION)}visitRepetition(e){this.checkIsTarget(e,vR.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,vR.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,vR.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,vR.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,vR.ALTERNATION)}},Y(dF,`initializeArrayOfArrays`),Y(Gtt,`pathToHashKeys`),Y(Ktt,`isUniquePrefixHash`),Y(qtt,`lookAheadSequenceFromAlternatives`),Y(Jtt,`getLookaheadPathsForOr`),Y(fF,`getLookaheadPathsForOptionalProd`),Y(pF,`containsPath`),Y(mF,`isStrictPrefixOfPath`),Y(Ytt,`areTokenCategoriesNotUsed`),Y(Xtt,`validateLookahead`),Y(Ztt,`validateGrammar`),Y(Qtt,`validateDuplicateProductions`),Y($tt,`identifyProductionForDuplicates`),Y(hF,`getExtraProductionArgument`),Hlt=class extends nR{static{Y(this,`OccurrenceValidationCollector`)}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)}},Y(ent,`validateRuleDoesNotAlreadyExist`),Y(tnt,`validateRuleIsOverridden`),Y(nnt,`validateNoLeftRecursion`),Y(gF,`getFirstNoneTerminal`),Ult=class extends nR{static{Y(this,`OrCollector`)}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},Y(rnt,`validateEmptyOrAlternative`),Y(int,`validateAmbiguousAlternationAlternatives`),yR=class extends nR{static{Y(this,`RepetitionCollector`)}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)}},Y(ant,`validateTooManyAlts`),Y(ont,`validateSomeNonEmptyLookaheadPath`),Y(snt,`checkAlternativesAmbiguities`),Y(_F,`checkPrefixAlternativesAmbiguities`),Y(cnt,`checkTerminalAndNoneTerminalsNameSpace`),Y(lnt,`resolveGrammar`),Y(vF,`validateGrammar`),Wlt=`MismatchedTokenException`,Glt=`NoViableAltException`,Klt=`EarlyExitException`,qlt=`NotAllInputParsedException`,bR=[Wlt,Glt,Klt,qlt],Object.freeze(bR),Y(unt,`isRecognitionException`),Jlt=class extends Error{static{Y(this,`RecognitionException`)}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Ylt=class extends Jlt{static{Y(this,`MismatchedTokenException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=Wlt}},Xlt=class extends Jlt{static{Y(this,`NoViableAltException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=Glt}},Zlt=class extends Jlt{static{Y(this,`NotAllInputParsedException`)}constructor(e,t){super(e,t),this.name=qlt}},Qlt=class extends Jlt{static{Y(this,`EarlyExitException`)}constructor(e,t,n){super(e,t),this.previousToken=n,this.name=Klt}},$lt={},eut=`InRuleRecoveryException`,tut=class extends Error{static{Y(this,`InRuleRecoveryException`)}constructor(e){super(e),this.name=eut}},nut=class{static{Y(this,`Recoverable`)}initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,`recoveryEnabled`)?e.recoveryEnabled:ER.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=dnt)}getTokenToInsert(e){let t=Ptt(e,``,-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA_FAST(1),u=this.LA_FAST(1),d=Y(()=>{let e=this.LA(0),t=new Ylt(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=o.slice(0,-1),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0],n=this.getGAstProductions()[t];return new Flt(n,e).startWalking()}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new tut(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||t.length===0)return!1;let n=this.LA_FAST(1);return t.find(e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),n=2;for(;;){let r=e.find(e=>Ftt(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return $lt;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,n=this.RULE_STACK_IDX+1,r=Array(n);for(let i=0;ithis.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===$lt)return[mR];let t=e.ruleName+e.idxInCallingRule+clt+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,mR)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA_FAST(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let n=0;nnnt(e,e,gR))}validateEmptyOrAlternatives(e){return e.flatMap(e=>rnt(e,gR))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>int(e,t,gR))}validateSomeNonEmptyLookaheadPath(e,t){return ont(e,t,gR)}buildLookaheadForAlternation(e){return Vtt(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Utt)}buildLookaheadForOptional(e){return Htt(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,ztt(e.prodType),Wtt)}},cut=class{static{Y(this,`LooksAhead`)}initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:ER.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,`maxLookahead`)?e.maxLookahead:ER.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,`lookaheadStrategy`)?e.lookaheadStrategy:new sut({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=fnt(e);t.forEach(t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${XP(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],rut|t.idx,n)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,SR,`Repetition`,t.maxLookahead,XP(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,iut,`Option`,t.maxLookahead,XP(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,aut,`RepetitionMandatory`,t.maxLookahead,XP(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,CR,`RepetitionMandatoryWithSeparator`,t.maxLookahead,XP(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,out,`RepetitionWithSeparator`,t.maxLookahead,XP(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r});this.setLaFuncCache(this.fullRuleNameToShort[e.name],n|t,a)})}setLaFuncCache(e,t,n){let r=this.lookAheadFuncsCache[e];r===void 0&&(r=[],this.lookAheadFuncsCache[e]=r),r[t]=n}},lut=class extends nR{static{Y(this,`DslMethodsCollectorVisitor`)}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)}},wR=new lut,Y(fnt,`collectMethods`),Y(pnt,`setNodeLocationOnlyOffset`),Y(mnt,`setNodeLocationFull`),Y(hnt,`addTerminalToCst`),Y(gnt,`addNoneTerminalToCst`),uut=`name`,Y(_nt,`defineNameProp`),Y(vnt,`defaultVisit`),Y(ynt,`createBaseSemanticVisitorConstructor`),Y(bnt,`createBaseVisitorConstructorWithDefaults`),(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(dut||={}),Y(yF,`validateVisitor`),Y(xnt,`validateMissingCstMethods`),fut=class{static{Y(this,`TreeBuilder`)}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,`nodeLocationTracking`)?e.nodeLocationTracking:ER.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=mnt,this.setNodeLocationFromNode=mnt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=pnt,this.setNodeLocationFromNode=pnt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=-1,n.startLine=-1,n.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=-1}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];hnt(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];gnt(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=ynt(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=bnt(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},put=class{static{Y(this,`LexerAdapter`)}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.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):TR}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?TR:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},mut=class{static{Y(this,`RecognizerApi`)}ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}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,t,n=Tut){if(this.definedRulesNames.includes(e)){let t={message:gR.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:DR.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=Tut){let r=tnt(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){let n=e.coreRule??e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return n.apply(this,t),!0}catch(e){if(unt(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Iet(Object.values(this.gastProductionsCache))}},hut=class{static{Y(this,`RecognizerEngine`)}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=xtt,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,`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(Array.isArray(e)){if(e.length===0)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(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,`modes`)&&Object.values(e.modes).flat().every(Mtt)){let t=Object.values(e.modes).flat(),n=[...new Set(t)];this.tokensMap=n.reduce((e,t)=>(e[t.name]=t,e),{})}else if(typeof e==`object`&&e)this.tokensMap=Object.assign({},e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=gR;let n=(Object.hasOwn(e,`modes`)?Object.values(e.modes).flat():Object.values(e)).every(e=>e.categoryMatches?.length==0);this.tokenMatcher=n?ZP:XP,QP(Object.values(this.tokensMap))}defineRule(e,t,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.`);let r=Object.hasOwn(n,`resyncEnabled`)?n.resyncEnabled:put.resyncEnabled,i=Object.hasOwn(n,`recoveryValueFunc`)?n.recoveryValueFunc:put.recoveryValueFunc,a=this.ruleShortNameIdx++;this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let o;return o=this.outputCst===!0?Y(function(...n){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n);let r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},`invokeRuleWithTry`):Y(function(...n){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},`invokeRuleWithTryCst`),Object.assign(Y(function(...t){this.onBeforeParse(e);try{return o.apply(this,t)}finally{this.onAfterParse(e)}},`rootRule`),{ruleName:e,originalGrammarAction:t,coreRule:o})}invokeRuleCatch(e,t,n){let r=this.RULE_STACK_IDX===0,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(mnt(e)){let t=e;if(i){let r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){let n=Ylt|t;return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof e!=`function`){i=e.DEF;let t=e.GATE;if(t!==void 0){let e=r;r=Y(()=>t.call(this)&&e.call(this),`lookAheadFunc`)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=ER|e;return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=Y(()=>e.call(this)&&t.call(this),`lookAheadFunc`)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,bR.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,ER,e,jlt)}atLeastOneSepFirstInternal(e,t){let n=DR|e;this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=Y(()=>this.tokenMatcher(this.LA_FAST(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Mlt],t,DR,e,Mlt)}else throw this.raiseEarlyExitException(e,bR.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=Xlt|e;return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=Y(()=>e.call(this)&&t.call(this),`lookaheadFunction`)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,Xlt,e,klt,a)}manySepFirstInternal(e,t){let n=Zlt|e;this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=Y(()=>this.tokenMatcher(this.LA_FAST(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Alt],t,Zlt,e,Alt)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,DR,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=Jlt|t,r=Array.isArray(e)?e:e.DEF,i=this.currRuleLookaheadFuncs[n].call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.coreRule.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw mnt(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA_FAST(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Vlt(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===Glt?n:e}}throw n}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=n,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),gR)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e{for(let e=0;e<10;e++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},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`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;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,t){return()=>!0}LA_RECORD(e){return MR}topLevelRuleRecord(e,t){try{let n=new ZL({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.message+=` + For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,`modes`)&&Object.values(e.modes).flat().every(Att)){let t=Object.values(e.modes).flat(),n=[...new Set(t)];this.tokensMap=n.reduce((e,t)=>(e[t.name]=t,e),{})}else if(typeof e==`object`&&e)this.tokensMap=Object.assign({},e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=mR;let n=(Object.hasOwn(e,`modes`)?Object.values(e.modes).flat():Object.values(e)).every(e=>e.categoryMatches?.length==0);this.tokenMatcher=n?xtt:oF,sF(Object.values(this.tokensMap))}defineRule(e,t,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.`);let r=Object.hasOwn(n,`resyncEnabled`)?n.resyncEnabled:Tut.resyncEnabled,i=Object.hasOwn(n,`recoveryValueFunc`)?n.recoveryValueFunc:Tut.recoveryValueFunc,a=this.ruleShortNameIdx++;this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let o;return o=this.outputCst===!0?Y(function(...n){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n);let r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},`invokeRuleWithTry`):Y(function(...n){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},`invokeRuleWithTryCst`),Object.assign(Y(function(...t){this.onBeforeParse(e);try{return o.apply(this,t)}finally{this.onAfterParse(e)}},`rootRule`),{ruleName:e,originalGrammarAction:t,coreRule:o})}invokeRuleCatch(e,t,n){let r=this.RULE_STACK_IDX===0,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(unt(e)){let t=e;if(i){let r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){let n=iut|t;return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof e!=`function`){i=e.DEF;let t=e.GATE;if(t!==void 0){let e=r;r=Y(()=>t.call(this)&&e.call(this),`lookAheadFunc`)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=aut|e;return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=Y(()=>e.call(this)&&t.call(this),`lookAheadFunc`)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,vR.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,aut,e,_R)}atLeastOneSepFirstInternal(e,t){let n=CR|e;this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=Y(()=>this.tokenMatcher(this.LA_FAST(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,zlt],t,CR,e,zlt)}else throw this.raiseEarlyExitException(e,vR.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=SR|e;return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=Y(()=>e.call(this)&&t.call(this),`lookaheadFunction`)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,SR,e,Llt,a)}manySepFirstInternal(e,t){let n=out|e;this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=Y(()=>this.tokenMatcher(this.LA_FAST(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Rlt],t,out,e,Rlt)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,CR,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=rut|t,r=Array.isArray(e)?e:e.DEF,i=this.currRuleLookaheadFuncs[n].call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.coreRule.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw unt(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA_FAST(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Ylt(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===eut?n:e}}throw n}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=n,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),mR)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e{for(let e=0;e<10;e++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},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`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;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,t){return()=>!0}LA_RECORD(e){return TR}topLevelRuleRecord(e,t){try{let n=new qL({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.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 e}throw e}}optionInternalRecord(e,t){return pF.call(this,$L,e,t)}atLeastOneInternalRecord(e,t){pF.call(this,eR,t,e)}atLeastOneSepFirstInternalRecord(e,t){pF.call(this,tR,t,e,out)}manyInternalRecord(e,t){pF.call(this,nR,t,e)}manySepFirstInternalRecord(e,t){pF.call(this,rR,t,e,out)}orInternalRecord(e,t){return mF.call(this,e,t)}subruleInternalRecord(e,t,n){if(hF(t),!e||!Object.hasOwn(e,`ruleName`)){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=e.ruleName,a=new XL({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?uut:jR}consumeInternalRecord(e,t,n){if(hF(t),!ktt(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=new aR({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),lut}},Y(pF,`recordProd`),Y(mF,`recordOrProd`),Y(wnt,`getIdxSuffix`),Y(hF,`assertMethodIdxIsValid`),fut=class{static{Y(this,`PerformanceTracer`)}initPerformanceTracer(e){if(Object.hasOwn(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=NR.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=jet(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}},Y(Tnt,`applyMixins`),MR=Itt(gR,``,-1,-1,-1,-1,-1,-1),Object.freeze(MR),NR=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:_R,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),put=Object.freeze({recoveryValueFunc:Y(()=>void 0,`recoveryValueFunc`),resyncEnabled:!0}),(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})(PR||={}),Y(Ent,`EMPTY_ALT`),mut=class e{static{Y(this,`Parser`)}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 t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{Met(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=fnt({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(r.length===0&&this.skipValidations===!1){let e=pnt({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:vR,grammarName:n}),t=ent({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=Wet(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return Snt.call(this,YL,e,t)}atLeastOneInternalRecord(e,t){Snt.call(this,XL,t,e)}atLeastOneSepFirstInternalRecord(e,t){Snt.call(this,ZL,t,e,vut)}manyInternalRecord(e,t){Snt.call(this,QL,t,e)}manySepFirstInternalRecord(e,t){Snt.call(this,$L,t,e,vut)}orInternalRecord(e,t){return Cnt.call(this,e,t)}subruleInternalRecord(e,t,n){if(Tnt(t),!e||!Object.hasOwn(e,`ruleName`)){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=e.ruleName,a=new KL({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?Sut:_ut}consumeInternalRecord(e,t,n){if(Tnt(t),!Ett(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=new tR({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),xut}},Y(Snt,`recordProd`),Y(Cnt,`recordOrProd`),Y(wnt,`getIdxSuffix`),Y(Tnt,`assertMethodIdxIsValid`),wut=class{static{Y(this,`PerformanceTracer`)}initPerformanceTracer(e){if(Object.hasOwn(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=ER.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=Met(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}},Y(Ent,`applyMixins`),TR=Ptt(mR,``,-1,-1,-1,-1,-1,-1),Object.freeze(TR),ER=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:hR,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),Tut=Object.freeze({recoveryValueFunc:Y(()=>void 0,`recoveryValueFunc`),resyncEnabled:!0}),(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})(DR||={}),Y(bF,`EMPTY_ALT`),Eut=class e{static{Y(this,`Parser`)}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 t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{Net(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=lnt({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(r.length===0&&this.skipValidations===!1){let e=vF({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:gR,grammarName:n}),t=Xtt({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=Wet(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected: ${t.join(` ------------------------------- `)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initGastRecorder(t),n.initPerformanceTracer(t),Object.hasOwn(t,`ignoredIssues`))throw 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=Object.hasOwn(t,`skipValidations`)?t.skipValidations:NR.skipValidations}},mut.DEFER_DEFINITION_ERRORS_HANDLING=!1,Tnt(mut,[qlt,kR,tut,nut,iut,rut,aut,dut,fut]),hut=class extends mut{static{Y(this,`EmbeddedActionsParser`)}constructor(e,t=NR){let n=Object.assign({},t);n.outputCst=!1,super(e,n)}},Y(Dnt,`arrayMap`),gut=Dnt,Y(Ont,`listCacheClear`),_ut=Ont,Y(knt,`eq`),vut=knt,Y(Ant,`assocIndexOf`),yut=Ant,but=Array.prototype.splice,Y(gF,`listCacheDelete`),xut=gF,Y(jnt,`listCacheGet`),Sut=jnt,Y(Mnt,`listCacheHas`),Cut=Mnt,Y(Nnt,`listCacheSet`),wut=Nnt,Y(_F,`ListCache`),_F.prototype.clear=_ut,_F.prototype.delete=xut,_F.prototype.get=Sut,_F.prototype.has=Cut,_F.prototype.set=wut,Tut=_F,Y(Pnt,`stackClear`),Eut=Pnt,Y(Fnt,`stackDelete`),Dut=Fnt,Y(Int,`stackGet`),Out=Int,Y(Lnt,`stackHas`),kut=Lnt,Aut=typeof global==`object`&&global&&global.Object===Object&&global,jut=typeof self==`object`&&self&&self.Object===Object&&self,FR=Aut||jut||Function(`return this`)(),IR=FR.Symbol,Mut=Object.prototype,Nut=Mut.hasOwnProperty,Put=Mut.toString,LR=IR?IR.toStringTag:void 0,Y(Rnt,`getRawTag`),Fut=Rnt,Iut=Object.prototype.toString,Y(znt,`objectToString`),Lut=znt,Rut=`[object Null]`,zut=`[object Undefined]`,But=IR?IR.toStringTag:void 0,Y(Bnt,`baseGetTag`),RR=Bnt,Y(Vnt,`isObject`),Vut=Vnt,Hut=`[object AsyncFunction]`,Uut=`[object Function]`,zR=`[object GeneratorFunction]`,Wut=`[object Proxy]`,Y(Hnt,`isFunction`),Gut=Hnt,Kut=FR[`__core-js_shared__`],BR=(function(){var e=/[^.]+$/.exec(Kut&&Kut.keys&&Kut.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),Y(Unt,`isMasked`),qut=Unt,Jut=Function.prototype.toString,Y(Wnt,`toSource`),VR=Wnt,Yut=/[\\^$.*+?()[\]{}|]/g,Xut=/^\[object .+?Constructor\]$/,Zut=Function.prototype,Qut=Object.prototype,$ut=Zut.toString,edt=Qut.hasOwnProperty,tdt=RegExp(`^`+$ut.call(edt).replace(Yut,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Y(Gnt,`baseIsNative`),ndt=Gnt,Y(Knt,`getValue`),rdt=Knt,Y(qnt,`getNative`),HR=qnt,UR=HR(FR,`Map`),WR=HR(Object,`create`),Y(Jnt,`hashClear`),idt=Jnt,Y(vF,`hashDelete`),GR=vF,KR=`__lodash_hash_undefined__`,qR=Object.prototype.hasOwnProperty,Y(Ynt,`hashGet`),adt=Ynt,odt=Object.prototype.hasOwnProperty,Y(Xnt,`hashHas`),sdt=Xnt,cdt=`__lodash_hash_undefined__`,Y(Znt,`hashSet`),ldt=Znt,Y(yF,`Hash`),yF.prototype.clear=idt,yF.prototype.delete=GR,yF.prototype.get=adt,yF.prototype.has=sdt,yF.prototype.set=ldt,udt=yF,Y(bF,`mapCacheClear`),ddt=bF,Y(Qnt,`isKeyable`),fdt=Qnt,Y($nt,`getMapData`),pdt=$nt,Y(ert,`mapCacheDelete`),mdt=ert,Y(trt,`mapCacheGet`),hdt=trt,Y(nrt,`mapCacheHas`),gdt=nrt,Y(rrt,`mapCacheSet`),_dt=rrt,Y(xF,`MapCache`),xF.prototype.clear=ddt,xF.prototype.delete=mdt,xF.prototype.get=hdt,xF.prototype.has=gdt,xF.prototype.set=_dt,vdt=xF,ydt=200,Y(irt,`stackSet`),bdt=irt,Y(SF,`Stack`),SF.prototype.clear=Eut,SF.prototype.delete=Dut,SF.prototype.get=Out,SF.prototype.has=kut,SF.prototype.set=bdt,xdt=SF,Sdt=`__lodash_hash_undefined__`,Y(art,`setCacheAdd`),Cdt=art,Y(CF,`setCacheHas`),wdt=CF,Y(ort,`SetCache`),ort.prototype.add=ort.prototype.push=Cdt,ort.prototype.has=wdt,Tdt=ort,Y(srt,`arraySome`),Edt=srt,Y(wF,`cacheHas`),Ddt=wF,Odt=1,kdt=2,Y(crt,`equalArrays`),Adt=crt,jdt=FR.Uint8Array,Y(TF,`mapToArray`),Mdt=TF,Y(EF,`setToArray`),JR=EF,Ndt=1,Pdt=2,Fdt=`[object Boolean]`,Idt=`[object Date]`,Ldt=`[object Error]`,Rdt=`[object Map]`,zdt=`[object Number]`,Bdt=`[object RegExp]`,YR=`[object Set]`,Vdt=`[object String]`,Hdt=`[object Symbol]`,Udt=`[object ArrayBuffer]`,Wdt=`[object DataView]`,Gdt=IR?IR.prototype:void 0,Kdt=Gdt?Gdt.valueOf:void 0,Y(lrt,`equalByTag`),qdt=lrt,Y(urt,`arrayPush`),XR=urt,ZR=Array.isArray,Y(drt,`baseGetAllKeys`),Jdt=drt,Y(frt,`arrayFilter`),Ydt=frt,Y(prt,`stubArray`),Xdt=prt,Zdt=Object.prototype.propertyIsEnumerable,Qdt=Object.getOwnPropertySymbols,$dt=Qdt?function(e){return e==null?[]:(e=Object(e),Ydt(Qdt(e),function(t){return Zdt.call(e,t)}))}:Xdt,Y(mrt,`baseTimes`),eft=mrt,Y(hrt,`isObjectLike`),QR=hrt,tft=`[object Arguments]`,Y(grt,`baseIsArguments`),nft=grt,rft=Object.prototype,ift=rft.hasOwnProperty,aft=rft.propertyIsEnumerable,$R=nft((function(){return arguments})())?nft:function(e){return QR(e)&&ift.call(e,`callee`)&&!aft.call(e,`callee`)},Y(DF,`stubFalse`),oft=DF,ez=typeof exports==`object`&&exports&&!exports.nodeType&&exports,sft=ez&&typeof module==`object`&&module&&!module.nodeType&&module,cft=sft&&sft.exports===ez?FR.Buffer:void 0,tz=(cft?cft.isBuffer:void 0)||oft,lft=9007199254740991,uft=/^(?:0|[1-9]\d*)$/,Y(_rt,`isIndex`),dft=_rt,fft=9007199254740991,Y(vrt,`isLength`),pft=vrt,mft=`[object Arguments]`,hft=`[object Array]`,gft=`[object Boolean]`,_ft=`[object Date]`,vft=`[object Error]`,yft=`[object Function]`,bft=`[object Map]`,xft=`[object Number]`,Sft=`[object Object]`,Cft=`[object RegExp]`,nz=`[object Set]`,wft=`[object String]`,Tft=`[object WeakMap]`,Eft=`[object ArrayBuffer]`,Dft=`[object DataView]`,Oft=`[object Float32Array]`,kft=`[object Float64Array]`,Aft=`[object Int8Array]`,jft=`[object Int16Array]`,Mft=`[object Int32Array]`,Nft=`[object Uint8Array]`,Pft=`[object Uint8ClampedArray]`,Fft=`[object Uint16Array]`,Ift=`[object Uint32Array]`,rz={},rz[Oft]=rz[kft]=rz[Aft]=rz[jft]=rz[Mft]=rz[Nft]=rz[Pft]=rz[Fft]=rz[Ift]=!0,rz[mft]=rz[hft]=rz[Eft]=rz[gft]=rz[Dft]=rz[_ft]=rz[vft]=rz[yft]=rz[bft]=rz[xft]=rz[Sft]=rz[Cft]=rz[nz]=rz[wft]=rz[Tft]=!1,Y(yrt,`baseIsTypedArray`),iz=yrt,Y(brt,`baseUnary`),Lft=brt,Rft=typeof exports==`object`&&exports&&!exports.nodeType&&exports,az=Rft&&typeof module==`object`&&module&&!module.nodeType&&module,zft=az&&az.exports===Rft&&Aut.process,Bft=(function(){try{return az&&az.require&&az.require(`util`).types||zft&&zft.binding&&zft.binding(`util`)}catch{}})(),Vft=Bft&&Bft.isTypedArray,Hft=Vft?Lft(Vft):iz,Uft=Object.prototype.hasOwnProperty,Y(xrt,`arrayLikeKeys`),Wft=xrt,Gft=Object.prototype,Y(Srt,`isPrototype`),Kft=Srt,Y(Crt,`overArg`),qft=Crt(Object.keys,Object),Jft=Object.prototype.hasOwnProperty,Y(wrt,`baseKeys`),Yft=wrt,Y(Trt,`isArrayLike`),Xft=Trt,Y(Ert,`keys`),Zft=Ert,Y(OF,`getAllKeys`),Qft=OF,$ft=1,ept=Object.prototype.hasOwnProperty,Y(Drt,`equalObjects`),oz=Drt,sz=HR(FR,`DataView`),tpt=HR(FR,`Promise`),cz=HR(FR,`Set`),lz=HR(FR,`WeakMap`),uz=`[object Map]`,npt=`[object Object]`,rpt=`[object Promise]`,ipt=`[object Set]`,apt=`[object WeakMap]`,opt=`[object DataView]`,spt=VR(sz),cpt=VR(UR),lpt=VR(tpt),upt=VR(cz),dpt=VR(lz),dz=RR,(sz&&dz(new sz(new ArrayBuffer(1)))!=opt||UR&&dz(new UR)!=uz||tpt&&dz(tpt.resolve())!=rpt||cz&&dz(new cz)!=ipt||lz&&dz(new lz)!=apt)&&(dz=Y(function(e){var t=RR(e),n=t==npt?e.constructor:void 0,r=n?VR(n):``;if(r)switch(r){case spt:return opt;case cpt:return uz;case lpt:return rpt;case upt:return ipt;case dpt:return apt}return t},`getTag`)),fpt=dz,ppt=1,mpt=`[object Arguments]`,hpt=`[object Array]`,gpt=`[object Object]`,_pt=Object.prototype.hasOwnProperty,Y(Ort,`baseIsEqualDeep`),fz=Ort,Y(krt,`baseIsEqual`),pz=krt,vpt=1,ypt=2,Y(Art,`baseIsMatch`),bpt=Art,Y(jrt,`isStrictComparable`),xpt=jrt,Y(Mrt,`getMatchData`),Spt=Mrt,Y(Nrt,`matchesStrictComparable`),Cpt=Nrt,Y(Prt,`baseMatches`),wpt=Prt,Tpt=`[object Symbol]`,Y(Frt,`isSymbol`),Ept=Frt,Dpt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mz=/^\w*$/,Y(Irt,`isKey`),Opt=Irt,kpt=`Expected a function`,Y(Lrt,`memoize`),Lrt.Cache=vdt,Apt=Lrt,jpt=500,Y(Rrt,`memoizeCapped`),Mpt=Rrt,Npt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ppt=/\\(\\)?/g,hz=Mpt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Npt,function(e,n,r,i){t.push(r?i.replace(Ppt,`$1`):n||e)}),t}),Fpt=1/0,gz=IR?IR.prototype:void 0,_z=gz?gz.toString:void 0,Y(kF,`baseToString`),Ipt=kF,Y(AF,`toString`),Lpt=AF,Y(zrt,`castPath`),vz=zrt,yz=1/0,Y(Brt,`toKey`),bz=Brt,Y(Vrt,`baseGet`),Rpt=Vrt,Y(Hrt,`get`),zpt=Hrt,Y(Urt,`baseHasIn`),xz=Urt,Y(Wrt,`hasPath`),Bpt=Wrt,Y(Grt,`hasIn`),Vpt=Grt,Sz=1,Hpt=2,Y(Krt,`baseMatchesProperty`),Upt=Krt,Y(qrt,`identity`),Wpt=qrt,Y(Jrt,`baseProperty`),Cz=Jrt,Y(Yrt,`basePropertyDeep`),wz=Yrt,Y(Xrt,`property`),Gpt=Xrt,Y(Zrt,`baseIteratee`),Tz=Zrt,Y(Qrt,`createBaseFor`),Kpt=Qrt(),Y($rt,`baseForOwn`),Ez=$rt,Y(eit,`createBaseEach`),Dz=eit(Ez),Y(jF,`baseMap`),Oz=jF,Y(tit,`map`),kz=tit,Y(nit,`baseFilter`),Az=nit,Y(rit,`filter`),qpt=rit,Y(MF,`buildATNKey`),jz=1,Jpt=2,Ypt=4,Xpt=5,Mz=7,Nz=8,Pz=9,Fz=10,Iz=11,Lz=12,Rz=class{static{Y(this,`AbstractTransition`)}constructor(e){this.target=e}isEpsilon(){return!1}},zz=class extends Rz{static{Y(this,`AtomTransition`)}constructor(e,t){super(e),this.tokenType=t}},Bz=class extends Rz{static{Y(this,`EpsilonTransition`)}constructor(e){super(e)}isEpsilon(){return!0}},Vz=class extends Rz{static{Y(this,`RuleTransition`)}constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}},Y(iit,`createATN`),Y(ait,`createRuleStartAndStopATNStates`),Y(oit,`atom`),Y(sit,`repetition`),Y(cit,`repetitionSep`),Y(lit,`repetitionMandatory`),Y(uit,`repetitionMandatorySep`),Y(dit,`alternation`),Y(fit,`option`),Y(NF,`block`),Y(pit,`plus`),Y(mit,`star`),Y(PF,`optional`),Y(FF,`defineDecisionState`),Y(IF,`makeAlts`),Y(hit,`getProdType`),Y(git,`makeBlock`),Y(_it,`tokenRef`),Y(vit,`ruleRef`),Y(yit,`buildRuleHandle`),Y(LF,`epsilon`),Y(RF,`newState`),Y(bit,`addTransition`),Y(xit,`removeState`),Hz={},Uz=class{static{Y(this,`ATNConfigSet`)}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=Sit(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return kz(this.configs,e=>e.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}},Y(Sit,`getATNConfigKey`),Y(Cit,`baseExtremum`),Zpt=Cit,Y(zF,`baseLt`),Qpt=zF,Y(wit,`min`),Wz=wit,Gz=IR?IR.isConcatSpreadable:void 0,Y(BF,`isFlattenable`),$pt=BF,Y(Tit,`baseFlatten`),emt=Tit,Y(Eit,`flatMap`),Kz=Eit,Y(Dit,`baseFindIndex`),qz=Dit,Y(Oit,`baseIsNaN`),Jz=Oit,Y(kit,`strictIndexOf`),Yz=kit,Y(VF,`baseIndexOf`),Xz=VF,Y(Ait,`arrayIncludes`),Zz=Ait,Y(HF,`arrayIncludesWith`),tmt=HF,Y(UF,`noop`),nmt=UF,Qz=cz&&1/JR(new cz([,-0]))[1]==1/0?function(e){return new cz(e)}:nmt,rmt=200,Y(jit,`baseUniq`),imt=jit,Y(Mit,`uniqBy`),$z=Mit,Y(Nit,`flatten`),eB=Nit,Y(WF,`arrayEach`),tB=WF,Y(Pit,`castFunction`),amt=Pit,Y(Fit,`forEach`),nB=Fit,omt=`[object Map]`,rB=`[object Set]`,iB=Object.prototype.hasOwnProperty,Y(Iit,`isEmpty`),aB=Iit,Y(Lit,`arrayReduce`),smt=Lit,Y(Rit,`baseReduce`),oB=Rit,Y(zit,`reduce`),sB=zit,Y(Bit,`createDFACache`),cB=class{static{Y(this,`PredicateSet`)}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;nconsole.log(e)),this.incomplete=e?.incomplete??!1}initialize(e){this.atn=iit(e.rules),this.dfas=Wit(this.atn),this.callers=GF(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=this.incomplete,l=MF(n,`Alternation`,t),u=this.atn.decisionMap[l].decision,d=kz(Utt({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>kz(e,e=>e[0]));if(Vit(d,!1)&&!i){let e=sB(d,(e,t,n)=>(nB(t,t=>{t&&(e[t.tokenTypeIdx]=n,nB(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=this.LA_FAST(1),r=e[n.tokenTypeIdx];if(t!==void 0&&r!==void 0){let e=t[r]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return r}:function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]}}return r?function(e){let t=new cB,n=e===void 0?0:e.length;for(let r=0;rkz(e,e=>e[0]));if(Vit(p)&&p[0][0]&&!i&&!Uit(d,r,l)){let e=p[0],t=eB(e);if(t.length===1&&aB(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=sB(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,nB(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]===!0}}}return function(){let e=KF.call(this,a,f,lB,o,s);return typeof e!=`object`&&e===0}}},Y(Vit,`isLL1Sequence`),Y(GF,`buildCallers`),Y(Hit,`firstSet`),Y(Uit,`optionalHasFollowConflict`),Y(Wit,`initATNSimulator`),Y(KF,`adaptivePredict`),Y(Git,`performLookahead`),Y(Kit,`computeLookaheadTarget`),Y(qit,`reportLookaheadAmbiguity`),Y(Jit,`buildAmbiguityError`),Y(Yit,`getProductionDslName`),Y(Xit,`buildAdaptivePredictError`),Y(Zit,`getExistingTargetState`),Y(Qit,`computeReachSet`),Y($it,`getReachableTarget`),Y(eat,`getUniqueAlt`),Y(tat,`newDFAState`),Y(nat,`addDFAEdge`),Y(rat,`addDFAState`),Y(iat,`computeStartState`),Y(qF,`closure`),Y(aat,`getEpsilonTarget`),Y(oat,`hasConfigInRuleStopState`),Y(sat,`allConfigsInRuleStopStates`),Y(JF,`hasConflictTerminatingPrediction`),Y(cat,`getConflictingAltSets`),Y(lat,`hasConflictingAltSet`),Y(uat,`hasStateAssociatedWithOneAlt`),Y(dat,`getBestGuess`),dB=class{static{Y(this,`CstNodeBuilder`)}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new mB(e),this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new pB;return t.grammarSource=e,this.appendChild(this.current,t),this.nodeStack.push(t),t}buildLeafNode(e,t){let n=this.createLeafNode(e,!t);return t&&(n.grammarSource=t),this.appendChild(this.current,n),n}createLeafNode(e,t){return new fB(e.startOffset,e.image.length,e.startLine-1,e.startColumn-1,e.endLine-1,e.endColumn,e.tokenType,t)}appendChild(e,t){t.container=e,e.content.push(t)}appendChildren(e,t){for(let n of t)n.container=e;e.content.length===0?e.content=t.slice():e.content.push(...t)}insertChildren(e,t,n){for(let t of n)t.container=e;e.content.splice(t,0,...n)}removeNode(e){let t=e.container;if(t){let n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e)t.push(this.createLeafNode(n,!0));let n=this.current,r=!1;if(n.content.length>0){this.appendChildren(n,t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){this.insertChildren(n.container,e,t),r=!0;break}n=n.container}r||this.insertChildren(this.rootNode,0,t)}construct(e){e.$cstNode=this.current;let t=this.nodeStack.pop();t&&(t.content.length===0?this.removeNode(t):t.content=t.content.slice())}},cmt=class{static{Y(this,`AbstractCstNode`)}constructor(){this.container=void 0,this.grammarSource=void 0}get root(){let e=this;for(;e.container;)e=e.container;return e}get text(){return this.root.fullText.substring(this.offset,this.end)}},fB=class extends cmt{static{Y(this,`LeafCstNodeImpl`)}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 astNode(){let e=this.container;if(!e)throw Error(`This node has no associated AST element`);return e.astNode}get range(){return{start:{line:this._startLine,character:this._startColumn},end:{line:this._endLine,character:this._endColumn}}}constructor(e,t,n,r,i,a,o,s=!1){super(),this._hidden=s,this._offset=YF(e),this._length=YF(t),this._startLine=YF(n),this._startColumn=YF(r),this._endLine=YF(i),this._endColumn=YF(a),this._tokenType=o}},Y(YF,`toSmi`),pB=class extends cmt{static{Y(this,`CompositeCstNodeImpl`)}constructor(){super(...arguments),this.content=[],this._astNode=void 0,this._rangeCache=void 0}get astNode(){let e=this;for(;e;){if(e._astNode)return e._astNode;e=e.container}throw Error(`This node has no associated AST element`)}set astNode(e){this._astNode=e}get hidden(){return!1}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this._rangeCache;if(e===void 0){let t=this.firstNonHiddenNode,n=this.lastNonHiddenNode;if(t&&n){let{range:r}=t,{range:i}=n;this._rangeCache=e={start:r.start,end:i.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},mB=class extends pB{static{Y(this,`RootCstNodeImpl`)}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text=``,this._text=e??``}},hB=Symbol(`Datatype`),Y(fat,`isDataTypeNode`),lmt=`​`,gB=Y(e=>e.endsWith(lmt)?e:e+lmt,`withRuleSuffix`),_B=class{static{Y(this,`AbstractLangiumParser`)}constructor(e,t){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let n=this.lexer.definition,r=e.LanguageMetaData.mode===`production`;this.wrapper=e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?new bB(n,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},t,e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):new yB(n,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},t)}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}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()}},umt=class extends _B{static{Y(this,`LangiumParser`)}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e,!1),this.nodeBuilder=new dB,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,t){let n=this.computeRuleType(e),r;DP(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(gB(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),AP(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return this.linkCstNode(t),t}linkCstNode(e){cP(e)&&e.$cstNode&&(e.$cstNode.astNode=e)}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===hB?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;en)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=OP(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(fat(o)){let e=r.image;OP(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&W9e(e)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(fat(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode);let r=this.nodeBuilder.buildCompositeNode(t);this.nodeBuilder.appendChild(r,n.$cstNode);let i={$type:e};this.stack.push(i),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):fat(e)?this.converter.convert(e.value,e.$cstNode):(v9e(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;ea?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),l=n.slice(0,i+1),u=n.slice(i+1),d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:s},p=this.constructInfix(d,t),m=this.constructInfix(f,t);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:r[i],right:m}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=m9e(e,CP);this.assignmentMap.set(e,{assignment:t,crossRef:t&&EP(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,this.linkCstNode(o),e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}return e.$cstNode=void 0,e}get definitionErrors(){return this.wrapper.definitionErrors}},dmt=class{static{Y(this,`AbstractParserErrorMessageProvider`)}buildMismatchTokenMessage(e){return _R.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return _R.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return _R.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return _R.buildEarlyExitMessage(e)}},vB=class extends dmt{static{Y(this,`LangiumParserErrorMessageProvider`)}buildMismatchTokenMessage({expected:e,actual:t}){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 \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},fmt=class extends _B{static{Y(this,`LangiumCompletionParser`)}constructor(e){super(e,!0),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.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,t){let n=this.wrapper.DEFINE_RULE(gB(e.name),this.startImplementation(t).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 t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},pmt={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new vB},yB=class extends hut{static{Y(this,`ChevrotainWrapper`)}constructor(e,t,n){let r=t&&`maxLookahead`in t;super(e,{...pmt,lookaheadStrategy:r?new OR({maxLookahead:t.maxLookahead}):new uB({logging:t.skipValidations?()=>{}:void 0,incomplete:n}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},bB=class extends yB{static{Y(this,`ProfilerWrapper`)}constructor(e,t,n,r){super(e,t,n),this.task=r}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,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}},Y(pat,`createParser`),Y(mat,`buildRules`),Y(hat,`buildInfixRule`),Y(XF,`buildElement`),Y(gat,`buildAction`),Y(_at,`buildRuleCall`),Y(vat,`buildRuleCallPredicate`),Y(ZF,`buildPredicate`),Y(yat,`buildAlternatives`),Y(bat,`buildUnorderedGroup`),Y(QF,`buildGroup`),Y($F,`getGuardCondition`),Y(xat,`buildCrossReference`),Y(Sat,`buildKeyword`),Y(Cat,`wrap`),Y(wat,`getRule`),Y(Tat,`getRuleName`),Y(Eat,`getToken`),Y(Dat,`createCompletionParser`),Y(Oat,`createLangiumParser`),Y(eI,`prepareLangiumParser`),xB=class{static{Y(this,`DefaultTokenBuilder`)}constructor(){this.diagnostics=[]}buildTokens(e,t){let n=hP(aet(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(MP).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=Cet(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=eet(t)?mR.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(SP).flatMap(e=>yP(e).filter(OP)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(tet(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&net(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},SB=class{static{Y(this,`DefaultValueConverter`)}convert(e,t){let n=t.grammarSource;if(EP(n)&&(n=set(n)),jP(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return CB.convertInt(t);case`STRING`:return CB.convertString(t);case`ID`:return CB.convertID(t)}switch(xet(e)?.toLowerCase()){case`number`:return CB.convertNumber(t);case`boolean`:return CB.convertBoolean(t);case`bigint`:return CB.convertBigint(t);case`date`:return CB.convertDate(t);default:return t}}},(function(e){function t(e){let t=``;for(let r=1;r{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},kB=class e{static{Y(this,`FullTextDocument`)}constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=Fat(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=Nat(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;ee?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1=t.length){let e=t.length-1;return{start:{line:e,character:0},end:{line:e,character:this._content.length-t[e]}}}if(e<0)return{start:{line:0,character:0},end:{line:0,character:0}};let n=t[e],r=e+1=t.length||e<0)return``;let n=e+1t&&Pat(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},(function(e){function t(e,t,n,r){return new kB(e,t,n,r)}Y(t,`create`),e.create=t;function n(e,t,n){if(e instanceof kB)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}Y(n,`update`),e.update=n;function r(e,t){let n=e.getText(),r=Mat(t.map(Iat),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}Y(r,`applyEdits`),e.applyEdits=r})(mmt||={}),Y(Mat,`mergeSort`),Y(Nat,`computeLineOffsets`),Y(Pat,`isEOL`),Y(Fat,`getWellformedRange`),Y(Iat,`getWellformedEdit`),(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}Y(t,`e`);function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf(`/`);if(l!==r.length-1){l===-1?(r=``,i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}Y(n,`r`);var r={resolve:Y(function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},`resolve`),normalize:Y(function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},`normalize`),isAbsolute:Y(function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},`isAbsolute`),join:Y(function(){if(arguments.length===0)return`.`;for(var e,n=0;n0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},`join`),relative:Y(function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;iu){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>u&&(e.charCodeAt(i+f)===47?d=f:f===0&&(d=0));break}var p=e.charCodeAt(i+f);if(p!==n.charCodeAt(s+f))break;p===47&&(d=f)}var m=``;for(f=i+d+1;f<=a;++f)f!==a&&e.charCodeAt(f)!==47||(m.length===0?m+=`..`:m+=`/..`);return m.length>0?m+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},`relative`),_makeLong:Y(function(e){return e},`_makeLong`),dirname:Y(function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},`dirname`),basename:Y(function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(u===47){if(!o){i=r+1;break}}else l===-1&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=l))}return i===a?a=l:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},`basename`),extname:Y(function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(l!==47)i===-1&&(a=!1,i=s+1),l===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},`extname`),format:Y(function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return(function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r})(0,e)},`format`),parse:Y(function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,l=-1,u=!0,d=e.length-1,f=0;d>=r;--d)if((i=e.charCodeAt(d))!==47)l===-1&&(u=!1,l=d+1),i===46?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1);else if(!u){s=d+1;break}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(n.base=n.name=s===0&&a?e.slice(1,l):e.slice(s,l)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(s,o),n.base=e.slice(s,l)),n.ext=e.slice(o,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},`parse`),sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}Y(n,`r`),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:Y(()=>d,`URI`),Utils:Y(()=>w,`Utils`)}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw 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(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}Y(l,`a`);let u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static{Y(this,`l`)}static isUri(e){return e instanceof d||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=(function(e,t){return e||t?e:`file`})(e,a),this.authority=t||``,this.path=(function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t})(this.scheme,n||``),this.query=r||``,this.fragment=i||``,l(this,a))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new p(t,n,r,i,a)}static parse(e,t=!1){let n=u.exec(e);return n?new p(n[2]||``,x(n[4]||``),x(n[5]||``),x(n[7]||``),x(n[9]||``),t):new p(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new p(`file`,t,e,``,``)}static from(e){let t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{let t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}let f=i?1:void 0;class p extends d{static{Y(this,`d`)}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=_(this,!1),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||=v(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let 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 h(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=m[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}Y(h,`m`);function g(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}Y(_,`v`);function v(e,t){let n=t?g:h,r=``,{scheme:i,authority:a,path:o,query:s,fragment:l}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),l&&(r+=`#`,r+=t?l:h(l,!1,!1)),r}Y(v,`b`);function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}Y(y,`C`);let b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(b)?e.replace(b,(e=>y(e))):e}Y(x,`w`);var S=n(975);let C=S.posix||S;var w;(function(e){e.joinPath=function(e,...t){return e.with({path:C.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=C.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=C.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return C.basename(e.path)},e.extname=function(e){return C.extname(e.path)}})(w||={}),hmt=r})(),{URI:AB,Utils:jB}=hmt,(function(e){e.basename=jB.basename,e.dirname=jB.dirname,e.extname=jB.extname,e.joinPath=jB.joinPath,e.resolvePath=jB.resolvePath;let t=typeof process==`object`&&process?.platform===`win32`;function n(e,t){return e?.toString()===t?.toString()}Y(n,`equals`),e.equals=n;function r(e,n){let r=typeof e==`string`?AB.parse(e).path:e.path,i=typeof n==`string`?AB.parse(n).path:n.path,a=r.split(`/`).filter(e=>e.length>0),o=i.split(`/`).filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]!==o[0])return i.substring(1)}let s=0;for(;s({name:e.name,uri:MB.joinPath(AB.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(this.normalizeUri(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let n=e.split(`/`);e.charAt(e.length-1)===`/`&&n.pop();let r=this.root;for(let e of n){let n=r.children.get(e);if(!n){if(t)n={name:e,children:new Map,parent:r},r.children.set(e,n);else return}r=n}return r}collectValues(e){let t=[];e.element&&t.push(e.element);for(let n of e.children.values())t.push(...this.collectValues(n));return t}},(function(e){e[e.Changed=0]=`Changed`,e[e.Parsed=1]=`Parsed`,e[e.IndexedContent=2]=`IndexedContent`,e[e.ComputedScopes=3]=`ComputedScopes`,e[e.Linked=4]=`Linked`,e[e.IndexedReferences=5]=`IndexedReferences`,e[e.Validated=6]=`Validated`})(PB||={}),gmt=class{static{Y(this,`DefaultLangiumDocumentFactory`)}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=wB.CancellationToken.None){let n=await this.getInitialText(e,t);return this.createAsync(e,n,t)}async getInitialText(e,t){return this.fileSystemProvider.readFile(e)}fromTextDocument(e,t,n){return t??=AB.parse(e.uri),wB.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return wB.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==`string`){let r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}if(`$model`in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}{let r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==`string`){let r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}{let r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:PB.Parsed,references:[],textDocument:n};else{let n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:PB.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){let n=e.parseResult.value.$cstNode?.root.fullText,r=this.textDocuments?.get(e.uri.toString()),i=await this.getUpdatedText(e,r,t);if(r)Object.defineProperty(e,"textDocument",{value:r});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=PB.Parsed,e}async getUpdatedText(e,t,n){return t?t.getText():await this.fileSystemProvider.readFile(e.uri)}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){let n=this.serviceRegistry,r;return()=>r??=mmt.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??``)}},_mt=class{static{Y(this,`DefaultLangiumDocuments`)}constructor(e){this.documentTrie=new NB,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return hP(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,PB.Changed),n}deleteDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=PB.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){let t=e.toString(),n=this.documentTrie.findAll(t);for(let e of n)e.state=PB.Changed;return this.documentTrie.delete(t),n}},FB=Symbol(`RefResolving`),vmt=class{static{Y(this,`DefaultReferenceImpl`)}constructor(e,t,n,r,i){this.resolver=e,this.node=t,this.property=n,this._ref=void 0,this.$refNode=r,this.$refText=i}get ref(){return this.resolver.resolveReference(this,this.node,this.property)}get $nodeDescription(){return this._nodeDescription}get error(){return fP(this._ref)?this._ref:void 0}},ymt=class{static{Y(this,`DefaultMultiReferenceImpl`)}constructor(e,t,n,r,i){this.resolver=e,this.node=t,this.property=n,this._items=void 0,this.$refNode=r,this.$refText=i}get items(){return this.resolver.resolveMultiReference(this,this.node,this.property)}get error(){return this._linkingError}},bmt=class{static{Y(this,`DefaultLinker`)}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,this.referenceResolver={resolveReference:this.resolveReference.bind(this),resolveMultiReference:this.resolveMultiReference.bind(this)}}async link(e,t=wB.CancellationToken.None){if(this.profiler?.isActive(`linking`)){let n=this.profiler.createTask(`linking`,this.languageId);n.start();try{for(let r of bP(e.parseResult.value))await tI(t),xP(r).forEach(t=>{let i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(let n of bP(e.parseResult.value))await tI(t),xP(n).forEach(t=>this.doLink(t,e))}doLink(e,t){let n=e.reference;if(`_ref`in n&&n._ref===void 0){n._ref=FB;try{let t=this.getCandidate(e);fP(t)?n._ref=t:(n._nodeDescription=t,n._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(t){console.error(`An error occurred while resolving reference to '${n.$refText}':`,t);let r=t.message??String(t);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`}}t.references.push(n)}else if(`_items`in n&&n._items===void 0){n._items=FB;try{let t=this.getCandidates(e),r=[];if(fP(t))n._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(t){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`},n._items=[]}t.references.push(n)}}unlink(e){for(let t of e.references)`_ref`in t?(t._ref=void 0,delete t._nodeDescription):`_items`in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){return new vmt(this.referenceResolver,e,t,n,r)}buildMultiReference(e,t,n,r){return new ymt(this.referenceResolver,e,t,n,r)}resolveReference(e,t,n){if(cP(e._ref))return e._ref;if(dP(e._nodeDescription))e._ref=this.loadAstNode(e._nodeDescription)??this.createLinkingError({reference:e,container:t,property:n},e._nodeDescription);else if(e._ref===void 0){e._ref=FB;let r=vP(t).$document,i=this.getLinkedNode({reference:e,container:t,property:n});if(i.error&&r&&r.stateEP(e)&&e.isMulti)}findDeclarations(e){if(e){let t=zP(e),n=e.astNode;if(t&&n){let r=n[t.feature];if(lP(r)||uP(r))return h9e(r);if(Array.isArray(r)){for(let t of r)if((lP(t)||uP(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return h9e(t)}}if(n){let t=this.nameProvider.getNameNode(n);if(t&&(t===e||H9e(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n){for(let t of xP(n))if(uP(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&n.push(t)}return n}findReferences(e,t){let n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>MB.equals(e.sourceUri,t.documentUri))),n.push(...r),hP(n)}getSelfReferences(e){let t=this.getSelfNodes(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let r=_P(e),i=this.nodeLocator.getAstNodePath(e);n.push({sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:NP(t),local:!0})}}return n}},IB=class{static{Y(this,`MultiMap`)}constructor(e){if(this.map=new Map,e)for(let[t,n]of e)this.add(t,n)}get size(){return wct.sum(hP(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let r=n.indexOf(t);if(r>=0)return n.length===1?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?hP(t):iL}has(e,t){if(t===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return hP(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return hP(this.map.keys())}values(){return hP(this.map.values()).flat()}entriesGroupedByKey(){return hP(this.map.entries())}},Cmt=class{static{Y(this,`BiMap`)}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t!==void 0&&(this.map.delete(e),this.inverse.delete(t),!0)}},wmt=class{static{Y(this,`DefaultScopeComputation`)}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=wB.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=g9e,r=wB.CancellationToken.None){let i=[];this.addExportedSymbol(e,i,t);for(let a of n(e))await tI(r),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,n){let r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=wB.CancellationToken.None){let n=e.parseResult.value,r=new IB;for(let i of yP(n))await tI(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){let r=e.$container;if(r){let i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},Tmt=class{static{Y(this,`StreamScope`)}constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},Emt=class{static{Y(this,`MultiMapScope`)}constructor(e,t,n){this.elements=new IB,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||n.length===0)&&this.outerScope?hP(n).concat(this.outerScope.getElements(e)):hP(n)}getAllElements(){let e=hP(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},LB=class{static{Y(this,`DisposableCache`)}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 Error(`This cache has already been disposed`)}},RB=class extends LB{static{Y(this,`SimpleCache`)}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let n=t();return this.cache.set(e,n),n}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},zB=class extends LB{static{Y(this,`ContextCache`)}constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();let r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){let e=n();return r.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},BB=class extends RB{static{Y(this,`WorkspaceCache`)}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},VB=class{static{Y(this,`DefaultScopeProvider`)}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 BB(e.shared)}getScope(e){let t=[],n=this.reflection.getReferenceType(e),r=_P(e.container).localSymbols;if(r){let i=e.container;do r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container;while(i)}let i=this.getGlobalScope(n,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,n){return new Tmt(hP(e),t,n)}createScopeForNodes(e,t,n){return new Tmt(hP(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new Emt(this.indexManager.allElements(e)))}},Y(Lat,`isAstNodeWithComment`),Y(Rat,`isIntermediateReference`),HB=class{static{Y(this,`DefaultJsonSerializer`)}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,t){let n=t??{},r=t?.replacer,i=Y((e,t)=>this.replacer(e,t,n),`defaultReplacer`),a=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=_P(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(e)){if(lP(t)){let e=t.ref,r=n?t.$refText:void 0;if(e){let t=_P(e),n=``;this.currentDocument&&this.currentDocument!==t&&(n=o?o(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${n}#${i}`,$refText:r}}return{$error:t.error?.message??`Could not resolve reference`,$refText:r}}if(uP(t)){let e=n?t.$refText:void 0,r=[];for(let e of t.items){let t=e.ref,n=_P(e.ref),i=``;this.currentDocument&&this.currentDocument!==n&&(i=o?o(n.uri,t):n.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);r.push(`${i}#${a}`)}return{$refs:r,$refText:e}}if(cP(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&n?.$textRegion&&(n.$textRegion.documentURI=this.currentDocument?.uri.toString())),r&&!e&&(n??={...t},n.$sourceText=t.$cstNode?.text),a){n??={...t};let e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,``))}return n??t}return t}}addAstNodeRegionWithAssignmentsTo(e){let t=Y(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),`createDocumentSegment`);if(e.$cstNode){let n=e.$textRegion=t(e.$cstNode),r=n.assignments={};return Object.keys(e).filter(e=>!e.startsWith(`$`)).forEach(n=>{let i=uet(e.$cstNode,n).map(t);i.length!==0&&(r[n]=i)}),e}}linkNode(e,t,n,r,i,a){for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,n,r,i),`An error occurred during validation`,r,n)}}async handleException(e,t,n,r){try{await e()}catch(e){if(jat(e))throw e;console.error(`${t}:`,e),e instanceof Error&&e.stack&&console.error(e.stack),n(`error`,`${t}: ${e instanceof Error?e.message:String(e)}`,{node:r})}}addEntry(e,t){if(e===`AstNode`){this.entries.add(`AstNode`,t);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,t)}getChecks(e,t){let n=hP(this.entries.get(e)).concat(this.entries.get(`AstNode`));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,`An error occurred during set-up of the validation`,t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,`An error occurred during tear-down of the validation`,t))}wrapPreparationException(e,t,n){return async(r,i,a,o)=>{await this.handleException(()=>e.call(n,r,i,a,o),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},Omt=Object.freeze({validateNode:!0,validateChildren:!0}),kmt=class{static{Y(this,`DefaultDocumentValidator`)}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,t={},n=wB.CancellationToken.None){let r=e.parseResult,i=[];if(await tI(n),(!t.categories||t.categories.includes(`built-in`))&&(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===GB.LexingError)||(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===GB.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===GB.LinkingError))))return i;try{i.push(...await this.validateAst(r.value,t,n))}catch(e){if(jat(e))throw e;console.error(`An error occurred during validation:`,e)}return await tI(n),i}processLexingErrors(e,t,n){let r=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let e of r){let n=e.severity??`error`,r={severity:Bat(n),range:{start:{line:e.line-1,character:e.column-1},end:{line:e.line-1,character:e.column+e.length-1}},message:e.message,data:Vat(n),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,n){for(let n of e.parserErrors){let e;if(W9e(n.token))e=U9e(n.token);else if(`previousToken`in n){let t=n.previousToken;if(W9e(t)){let n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}else{let t={line:0,character:0};e={start:t,end:t}}}if(e){let r={severity:Bat(`error`),range:e,message:n.message,data:rI(GB.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,n){for(let n of e.references){let e=n.error;if(e){let r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:GB.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic(`error`,e.message,r))}}}async validateAst(e,t,n=wB.CancellationToken.None){let r=[],i=Y((e,t,n)=>{r.push(this.toDiagnostic(e,t,n))},`acceptor`);return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=wB.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await tI(r),await a(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=wB.CancellationToken.None){if(this.profiler?.isActive(`validating`)){let i=this.profiler.createTask(`validating`,this.languageId);i.start();try{let a=bP(e).iterator();for(let e of a){i.startSubTask(e.$type);let o=this.validateSingleNodeOptions(e,t);if(o.validateNode)try{let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}o.validateChildren||a.prune()}}finally{i.stop()}}else{let i=bP(e).iterator();for(let e of i){await tI(r);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode){let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return Omt}async validateAstAfter(e,t,n,r=wB.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await tI(r),await a(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:zat(n),severity:Bat(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},Y(zat,`getDiagnosticRange`),Y(Bat,`toDiagnosticSeverity`),Y(Vat,`toDiagnosticData`),(function(e){e.LexingError=`lexing-error`,e.LexingWarning=`lexing-warning`,e.LexingInfo=`lexing-info`,e.LexingHint=`lexing-hint`,e.ParsingError=`parsing-error`,e.LinkingError=`linking-error`})(GB||={}),KB=class{static{Y(this,`DefaultAstNodeDescriptionProvider`)}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){let r=n??_P(e);t??=this.nameProvider.getName(e);let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,o=Y(()=>a??=NP(this.nameProvider.getNameNode(e)??e.$cstNode),`nameSegmentGetter`);return{node:e,name:t,get nameSegment(){return o()},selectionSegment:NP(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},qB=class{static{Y(this,`DefaultReferenceDescriptionProvider`)}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=wB.CancellationToken.None){let n=[],r=e.parseResult.value;for(let e of bP(r))await tI(t),xP(e).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let n=[];lP(t)&&t.$nodeDescription?n=[t.$nodeDescription]:uP(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>e!==void 0));let r=_P(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],o=NP(t.$refNode);for(let e of n)a.push({sourceUri:r,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:o,local:MB.equals(e.documentUri,r)});return a}},JB=class{static{Y(this,`DefaultAstNodeLocator`)}constructor(){this.segmentSeparator=`/`,this.indexSeparator=`@`}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return``}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error(`Missing '$containerProperty' in AST node.`);return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||t.length===0)return e;let n=t.indexOf(this.indexSeparator);if(n>0){let r=t.substring(0,n),i=parseInt(t.substring(n+1));return e[r]?.[i]}return e[t]},e)}},Amt=bI(Sct(),1),YB=class{static{Y(this,`DefaultConfigurationProvider`)}constructor(e){this._ready=new OB,this.onConfigurationSectionUpdateEmitter=new Amt.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){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings==`object`&&e.settings!==null&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},XB=bI(Sct(),1),(function(e){function t(e){return{dispose:Y(async()=>await e(),`dispose`)}}Y(t,`create`),e.create=t})(ZB||={}),QB=class{static{Y(this,`DefaultDocumentBuilder`)}constructor(e){this.updateBuildOptions={validation:{categories:[`built-in`,`fast`]}},this.updateListeners=[],this.buildPhaseListeners=new IB,this.documentPhaseListeners=new IB,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=PB.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,t={},n=wB.CancellationToken.None){for(let n of e){let e=n.uri.toString();if(n.state===PB.Validated){if(typeof t.validation==`boolean`&&t.validation)this.resetToState(n,PB.IndexedReferences);else if(typeof t.validation==`object`){let r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=PB.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=PB.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=wB.CancellationToken.None){this.currentState=PB.Changed;let r=[];for(let e of t){let t=this.langiumDocuments.deleteDocuments(e);for(let e of t)r.push(e.uri),this.cleanUpDeleted(e)}let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);t===void 0&&(t=this.langiumDocumentFactory.fromModel({$type:`INVALID`},e),t.state=PB.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,PB.Changed)}let a=hP(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,PB.ComputedScopes)),await this.emitUpdate(i,r),await tI(n);let o=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let n=this.buildState.get(e.uri.toString()),r=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?r:new Set;return hP(t===void 0||t.validation===!0?r:typeof t.validation==`object`?t.validation.categories??r:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t=0&&!this.hasTextDocument(e[n]);)n--;te.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),ZB.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case PB.Changed:case PB.Parsed:this.indexManager.removeContent(e.uri);case PB.IndexedContent:e.localSymbols=void 0;case PB.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case PB.Linked:this.indexManager.removeReferences(e.uri);case PB.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case PB.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=PB.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,PB.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,PB.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,PB.ComputedScopes,n,async e=>{e.localSymbols=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectLocalSymbols(e,n)});let r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,PB.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,PB.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));let i=e.filter(e=>this.shouldValidate(e)?!0:(this.markAsCompleted(e),!1));await this.runCancelable(i,PB.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let n of e){let e=n.uri.toString(),r=this.buildState.get(e);(!r||r.completed)&&this.buildState.set(e,{completed:!1,options:t,result:r?.result})}}async runCancelable(e,t,n,r){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),ZB.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),ZB.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&`path`in t?r=t:n=t,n??=wB.CancellationToken.None,r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){let r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(DB):this.currentState>=e&&e>r.state?Promise.reject(new XB.ResponseError(XB.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${PB[r.state]}, requiring ${PB[e]}, but workspace state is already ${PB[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{let a=this.onDocumentPhase(e,e=>{MB.equals(e.uri,t)&&(a.dispose(),o.dispose(),r(e.uri))}),o=n.onCancellationRequested(()=>{a.dispose(),o.dispose(),i(DB)})}):Promise.reject(new XB.ResponseError(XB.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(DB):new Promise((n,r)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),n()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),r(DB)})})}async notifyDocumentPhase(e,t,n){let r=this.documentPhaseListeners.get(t).slice();for(let t of r)try{await tI(n),await t(e,n)}catch(e){if(!jat(e))throw e}}async notifyBuildPhase(e,t,n){if(e.length===0)return;let r=this.buildPhaseListeners.get(t).slice();for(let t of r)await tI(n),await t(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i=typeof r.validation==`object`?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);let a=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let o=this.buildState.get(e.uri.toString());o&&(o.result??={},o.result.validationChecks?o.result.validationChecks=hP(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},jmt=class{static{Y(this,`DefaultIndexManager`)}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new zB,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let n=_P(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{MB.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),hP(r)}allElements(e,t){let n=hP(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=wB.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),r=e.uri.toString();this.symbolIndex.set(r,n),this.symbolByTypeIndex.clear(r)}async updateReferences(e,t=wB.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(e=>!e.local&&t.has(e.targetUri.toString())):!1}},Mmt=class{static{Y(this,`DefaultWorkspaceManager`)}constructor(e){this.initialBuildOptions={},this._ready=new OB,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(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=wB.CancellationToken.None){let n=await this.performStartup(e);await tI(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){let t=[],n=Y(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},`collector`);await this.loadAdditionalDocuments(e,n);let r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));let i=hP(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return AB.parse(e.uri)}async traverseFolder(e,t){try{let n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error(`Failure to read directory content of `+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=MB.basename(e.uri);return t.startsWith(`.`)?!1:e.isDirectory?t!==`node_modules`&&t!==`out`:e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},$B=class{static{Y(this,`DefaultLexerErrorMessageProvider`)}buildUnexpectedCharactersMessage(e,t,n,r,i){return glt.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return glt.buildUnableToPopLexerModeMessage(e)}},eV={mode:`full`},Nmt=class{static{Y(this,`DefaultLexer`)}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let n=Wat(t)?Object.values(t):t,r=e.LanguageMetaData.mode===`production`;this.chevrotainLexer=new mR(n,{positionTracking:`full`,skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=eV){let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(Wat(e))return e;let t=Uat(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}},Y(Hat,`isTokenTypeArray`),Y(Uat,`isIMultiModeLexerDefinition`),Y(Wat,`isTokenTypeDictionary`),YI(),Y(iI,`parseJSDoc`),Y(Gat,`isJSDoc`),Y(Kat,`getLines`),tV=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pmt=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,Y(qat,`tokenize`),Y(Jat,`buildInlineTokens`),Fmt=/\S/,Imt=/\s*$/,Y(aI,`skipWhitespace`),Y(Yat,`lastCharacter`),Y(Xat,`parseJSDocComment`),Y(Zat,`parseJSDocElement`),Y(Qat,`appendEmptyLine`),Y($at,`parseJSDocText`),Y(eot,`parseJSDocInline`),Y(oI,`parseJSDocTag`),Y(sI,`parseJSDocLine`),Y(tot,`normalizeOptions`),Y(not,`normalizeOption`),Lmt=class{static{Y(this,`JSDocCommentImpl`)}constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>`name`in e)}toString(){let e=``;for(let t of this.elements)if(e.length===0)e=t.toString();else{let n=t.toString();e+=iot(e)+n}return e.trim()}toMarkdown(e){let t=``;for(let n of this.elements)if(t.length===0)t=n.toMarkdown(e);else{let r=n.toMarkdown(e);t+=iot(t)+r}return t.trim()}},nV=class{static{Y(this,`JSDocTagImpl`)}constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} -${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=rot(this.name,t,e??{});if(typeof n==`string`)return n}let n=``;e?.tag===`italic`||e?.tag===void 0?n=`*`:e?.tag===`bold`?n=`**`:e?.tag===`bold-italic`&&(n=`***`);let r=`${n}@${this.name}${n}`;return this.content.inlines.length===1?r=`${r} \u2014 ${t}`:this.content.inlines.length>1&&(r=`${r} -${t}`),this.inline?`{${r}}`:r}},Y(rot,`renderInlineTag`),Y(cI,`renderLinkDefault`),rV=class{static{Y(this,`JSDocTextImpl`)}constructor(e,t){this.inlines=e,this.range=t}toString(){let e=``;for(let t=0;tn.range.start.line&&(e+=` + For further details.`);this.skipValidations=Object.hasOwn(t,`skipValidations`)?t.skipValidations:ER.skipValidations}},Eut.DEFER_DEFINITION_ERRORS_HANDLING=!1,Ent(Eut,[nut,cut,fut,put,hut,mut,gut,Cut,wut]),Dut=class extends Eut{static{Y(this,`EmbeddedActionsParser`)}constructor(e,t=ER){let n=Object.assign({},t);n.outputCst=!1,super(e,n)}},Y(Dnt,`arrayMap`),Out=Dnt,Y(Ont,`listCacheClear`),kut=Ont,Y(knt,`eq`),Aut=knt,Y(Ant,`assocIndexOf`),jut=Ant,Mut=Array.prototype.splice,Y(jnt,`listCacheDelete`),Nut=jnt,Y(Mnt,`listCacheGet`),Put=Mnt,Y(Nnt,`listCacheHas`),Fut=Nnt,Y(Pnt,`listCacheSet`),Iut=Pnt,Y(xF,`ListCache`),xF.prototype.clear=kut,xF.prototype.delete=Nut,xF.prototype.get=Put,xF.prototype.has=Fut,xF.prototype.set=Iut,OR=xF,Y(Fnt,`stackClear`),Lut=Fnt,Y(Int,`stackDelete`),Rut=Int,Y(Lnt,`stackGet`),zut=Lnt,Y(Rnt,`stackHas`),But=Rnt,Vut=typeof global==`object`&&global&&global.Object===Object&&global,Hut=typeof self==`object`&&self&&self.Object===Object&&self,kR=Vut||Hut||Function(`return this`)(),AR=kR.Symbol,Uut=Object.prototype,Wut=Uut.hasOwnProperty,Gut=Uut.toString,jR=AR?AR.toStringTag:void 0,Y(znt,`getRawTag`),Kut=znt,qut=Object.prototype.toString,Y(Bnt,`objectToString`),Jut=Bnt,Yut=`[object Null]`,Xut=`[object Undefined]`,MR=AR?AR.toStringTag:void 0,Y(Vnt,`baseGetTag`),NR=Vnt,Y(Hnt,`isObject`),Zut=Hnt,Qut=`[object AsyncFunction]`,PR=`[object Function]`,$ut=`[object GeneratorFunction]`,edt=`[object Proxy]`,Y(Unt,`isFunction`),FR=Unt,tdt=kR[`__core-js_shared__`],ndt=(function(){var e=/[^.]+$/.exec(tdt&&tdt.keys&&tdt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),Y(Wnt,`isMasked`),rdt=Wnt,idt=Function.prototype.toString,Y(SF,`toSource`),IR=SF,adt=/[\\^$.*+?()[\]{}|]/g,odt=/^\[object .+?Constructor\]$/,sdt=Function.prototype,cdt=Object.prototype,ldt=sdt.toString,udt=cdt.hasOwnProperty,ddt=RegExp(`^`+ldt.call(udt).replace(adt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Y(Gnt,`baseIsNative`),fdt=Gnt,Y(Knt,`getValue`),LR=Knt,Y(qnt,`getNative`),RR=qnt,zR=RR(kR,`Map`),BR=RR(Object,`create`),Y(Jnt,`hashClear`),pdt=Jnt,Y(Ynt,`hashDelete`),mdt=Ynt,hdt=`__lodash_hash_undefined__`,gdt=Object.prototype.hasOwnProperty,Y(Xnt,`hashGet`),_dt=Xnt,vdt=Object.prototype.hasOwnProperty,Y(Znt,`hashHas`),ydt=Znt,bdt=`__lodash_hash_undefined__`,Y(Qnt,`hashSet`),xdt=Qnt,Y(CF,`Hash`),CF.prototype.clear=pdt,CF.prototype.delete=mdt,CF.prototype.get=_dt,CF.prototype.has=ydt,CF.prototype.set=xdt,Sdt=CF,Y($nt,`mapCacheClear`),Cdt=$nt,Y(ert,`isKeyable`),wdt=ert,Y(wF,`getMapData`),Tdt=wF,Y(trt,`mapCacheDelete`),Edt=trt,Y(nrt,`mapCacheGet`),Ddt=nrt,Y(rrt,`mapCacheHas`),Odt=rrt,Y(TF,`mapCacheSet`),kdt=TF,Y(EF,`MapCache`),EF.prototype.clear=Cdt,EF.prototype.delete=Edt,EF.prototype.get=Ddt,EF.prototype.has=Odt,EF.prototype.set=kdt,VR=EF,Adt=200,Y(irt,`stackSet`),jdt=irt,Y(DF,`Stack`),DF.prototype.clear=Lut,DF.prototype.delete=Rut,DF.prototype.get=zut,DF.prototype.has=But,DF.prototype.set=jdt,HR=DF,Mdt=`__lodash_hash_undefined__`,Y(art,`setCacheAdd`),Ndt=art,Y(OF,`setCacheHas`),Pdt=OF,Y(kF,`SetCache`),kF.prototype.add=kF.prototype.push=Ndt,kF.prototype.has=Pdt,Fdt=kF,Y(ort,`arraySome`),Idt=ort,Y(srt,`cacheHas`),Ldt=srt,Rdt=1,zdt=2,Y(crt,`equalArrays`),Bdt=crt,Vdt=kR.Uint8Array,Y(lrt,`mapToArray`),Hdt=lrt,Y(urt,`setToArray`),Udt=urt,Wdt=1,Gdt=2,Kdt=`[object Boolean]`,UR=`[object Date]`,qdt=`[object Error]`,Jdt=`[object Map]`,Ydt=`[object Number]`,Xdt=`[object RegExp]`,Zdt=`[object Set]`,Qdt=`[object String]`,$dt=`[object Symbol]`,WR=`[object ArrayBuffer]`,eft=`[object DataView]`,tft=AR?AR.prototype:void 0,nft=tft?tft.valueOf:void 0,Y(drt,`equalByTag`),rft=drt,Y(frt,`arrayPush`),ift=frt,GR=Array.isArray,Y(prt,`baseGetAllKeys`),aft=prt,Y(AF,`arrayFilter`),oft=AF,Y(mrt,`stubArray`),sft=mrt,cft=Object.prototype.propertyIsEnumerable,lft=Object.getOwnPropertySymbols,uft=lft?function(e){return e==null?[]:(e=Object(e),oft(lft(e),function(t){return cft.call(e,t)}))}:sft,Y(hrt,`baseTimes`),dft=hrt,Y(grt,`isObjectLike`),KR=grt,qR=`[object Arguments]`,Y(_rt,`baseIsArguments`),fft=_rt,JR=Object.prototype,pft=JR.hasOwnProperty,mft=JR.propertyIsEnumerable,YR=fft((function(){return arguments})())?fft:function(e){return KR(e)&&pft.call(e,`callee`)&&!mft.call(e,`callee`)},Y(vrt,`stubFalse`),hft=vrt,gft=typeof exports==`object`&&exports&&!exports.nodeType&&exports,_ft=gft&&typeof module==`object`&&module&&!module.nodeType&&module,vft=_ft&&_ft.exports===gft?kR.Buffer:void 0,yft=(vft?vft.isBuffer:void 0)||hft,bft=9007199254740991,xft=/^(?:0|[1-9]\d*)$/,Y(yrt,`isIndex`),Sft=yrt,Cft=9007199254740991,Y(brt,`isLength`),wft=brt,Tft=`[object Arguments]`,Eft=`[object Array]`,Dft=`[object Boolean]`,Oft=`[object Date]`,kft=`[object Error]`,XR=`[object Function]`,Aft=`[object Map]`,jft=`[object Number]`,Mft=`[object Object]`,Nft=`[object RegExp]`,Pft=`[object Set]`,Fft=`[object String]`,Ift=`[object WeakMap]`,Lft=`[object ArrayBuffer]`,Rft=`[object DataView]`,zft=`[object Float32Array]`,Bft=`[object Float64Array]`,Vft=`[object Int8Array]`,Hft=`[object Int16Array]`,Uft=`[object Int32Array]`,ZR=`[object Uint8Array]`,Wft=`[object Uint8ClampedArray]`,Gft=`[object Uint16Array]`,Kft=`[object Uint32Array]`,QR={},QR[zft]=QR[Bft]=QR[Vft]=QR[Hft]=QR[Uft]=QR[ZR]=QR[Wft]=QR[Gft]=QR[Kft]=!0,QR[Tft]=QR[Eft]=QR[Lft]=QR[Dft]=QR[Rft]=QR[Oft]=QR[kft]=QR[XR]=QR[Aft]=QR[jft]=QR[Mft]=QR[Nft]=QR[Pft]=QR[Fft]=QR[Ift]=!1,Y(xrt,`baseIsTypedArray`),qft=xrt,Y(Srt,`baseUnary`),Jft=Srt,Yft=typeof exports==`object`&&exports&&!exports.nodeType&&exports,$R=Yft&&typeof module==`object`&&module&&!module.nodeType&&module,Xft=$R&&$R.exports===Yft&&Vut.process,Zft=(function(){try{return $R&&$R.require&&$R.require(`util`).types||Xft&&Xft.binding&&Xft.binding(`util`)}catch{}})(),Qft=Zft&&Zft.isTypedArray,$ft=Qft?Jft(Qft):qft,ept=Object.prototype.hasOwnProperty,Y(Crt,`arrayLikeKeys`),tpt=Crt,npt=Object.prototype,Y(jF,`isPrototype`),rpt=jF,Y(wrt,`overArg`),ipt=wrt(Object.keys,Object),apt=Object.prototype.hasOwnProperty,Y(Trt,`baseKeys`),opt=Trt,Y(Ert,`isArrayLike`),ez=Ert,Y(Drt,`keys`),tz=Drt,Y(Ort,`getAllKeys`),spt=Ort,cpt=1,nz=Object.prototype.hasOwnProperty,Y(krt,`equalObjects`),lpt=krt,rz=RR(kR,`DataView`),upt=RR(kR,`Promise`),iz=RR(kR,`Set`),dpt=RR(kR,`WeakMap`),fpt=`[object Map]`,ppt=`[object Object]`,az=`[object Promise]`,mpt=`[object Set]`,hpt=`[object WeakMap]`,gpt=`[object DataView]`,_pt=IR(rz),vpt=IR(zR),ypt=IR(upt),bpt=IR(iz),xpt=IR(dpt),oz=NR,(rz&&oz(new rz(new ArrayBuffer(1)))!=gpt||zR&&oz(new zR)!=fpt||upt&&oz(upt.resolve())!=az||iz&&oz(new iz)!=mpt||dpt&&oz(new dpt)!=hpt)&&(oz=Y(function(e){var t=NR(e),n=t==ppt?e.constructor:void 0,r=n?IR(n):``;if(r)switch(r){case _pt:return gpt;case vpt:return fpt;case ypt:return az;case bpt:return mpt;case xpt:return hpt}return t},`getTag`)),Spt=oz,sz=1,cz=`[object Arguments]`,Cpt=`[object Array]`,lz=`[object Object]`,wpt=Object.prototype.hasOwnProperty,Y(Art,`baseIsEqualDeep`),Tpt=Art,Y(jrt,`baseIsEqual`),Ept=jrt,Dpt=1,Opt=2,Y(Mrt,`baseIsMatch`),kpt=Mrt,Y(Nrt,`isStrictComparable`),Apt=Nrt,Y(Prt,`getMatchData`),jpt=Prt,Y(Frt,`matchesStrictComparable`),uz=Frt,Y(MF,`baseMatches`),Mpt=MF,Npt=`[object Symbol]`,Y(NF,`isSymbol`),dz=NF,Ppt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fpt=/^\w*$/,Y(Irt,`isKey`),Ipt=Irt,Lpt=`Expected a function`,Y(Lrt,`memoize`),Lrt.Cache=VR,fz=Lrt,Rpt=500,Y(Rrt,`memoizeCapped`),pz=Rrt,mz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zpt=/\\(\\)?/g,Bpt=pz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(mz,function(e,n,r,i){t.push(r?i.replace(zpt,`$1`):n||e)}),t}),hz=1/0,gz=AR?AR.prototype:void 0,_z=gz?gz.toString:void 0,Y(zrt,`baseToString`),Vpt=zrt,Y(Brt,`toString`),Hpt=Brt,Y(Vrt,`castPath`),vz=Vrt,Upt=1/0,Y(Hrt,`toKey`),Wpt=Hrt,Y(Urt,`baseGet`),yz=Urt,Y(Wrt,`get`),Gpt=Wrt,Y(Grt,`baseHasIn`),Kpt=Grt,Y(Krt,`hasPath`),qpt=Krt,Y(qrt,`hasIn`),bz=qrt,xz=1,Jpt=2,Y(Jrt,`baseMatchesProperty`),Ypt=Jrt,Y(Yrt,`identity`),Sz=Yrt,Y(Xrt,`baseProperty`),Cz=Xrt,Y(Zrt,`basePropertyDeep`),wz=Zrt,Y(PF,`property`),Tz=PF,Y(Qrt,`baseIteratee`),Ez=Qrt,Y($rt,`createBaseFor`),Dz=$rt(),Y(eit,`baseForOwn`),Xpt=eit,Y(tit,`createBaseEach`),Oz=tit(Xpt),Y(nit,`baseMap`),Zpt=nit,Y(rit,`map`),kz=rit,Y(iit,`baseFilter`),Qpt=iit,Y(ait,`filter`),Az=ait,Y(FF,`buildATNKey`),jz=1,Mz=2,Nz=4,Pz=5,Fz=7,Iz=8,Lz=9,Rz=10,zz=11,Bz=12,Vz=class{static{Y(this,`AbstractTransition`)}constructor(e){this.target=e}isEpsilon(){return!1}},Hz=class extends Vz{static{Y(this,`AtomTransition`)}constructor(e,t){super(e),this.tokenType=t}},$pt=class extends Vz{static{Y(this,`EpsilonTransition`)}constructor(e){super(e)}isEpsilon(){return!0}},Uz=class extends Vz{static{Y(this,`RuleTransition`)}constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}},Y(oit,`createATN`),Y(sit,`createRuleStartAndStopATNStates`),Y(cit,`atom`),Y(lit,`repetition`),Y(uit,`repetitionSep`),Y(dit,`repetitionMandatory`),Y(fit,`repetitionMandatorySep`),Y(IF,`alternation`),Y(pit,`option`),Y(LF,`block`),Y(mit,`plus`),Y(hit,`star`),Y(git,`optional`),Y(RF,`defineDecisionState`),Y(zF,`makeAlts`),Y(_it,`getProdType`),Y(BF,`makeBlock`),Y(vit,`tokenRef`),Y(yit,`ruleRef`),Y(bit,`buildRuleHandle`),Y(VF,`epsilon`),Y(HF,`newState`),Y(xit,`addTransition`),Y(UF,`removeState`),Wz={},emt=class{static{Y(this,`ATNConfigSet`)}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=Sit(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return kz(this.configs,e=>e.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}},Y(Sit,`getATNConfigKey`),Y(Cit,`baseExtremum`),tmt=Cit,Y(wit,`baseLt`),Gz=wit,Y(Tit,`min`),Kz=Tit,qz=AR?AR.isConcatSpreadable:void 0,Y(Eit,`isFlattenable`),Jz=Eit,Y(WF,`baseFlatten`),Yz=WF,Y(Dit,`flatMap`),Xz=Dit,Y(GF,`baseFindIndex`),nmt=GF,Y(KF,`baseIsNaN`),rmt=KF,Y(Oit,`strictIndexOf`),Zz=Oit,Y(kit,`baseIndexOf`),imt=kit,Y(Ait,`arrayIncludes`),amt=Ait,Y(qF,`arrayIncludesWith`),Qz=qF,Y(jit,`noop`),$z=jit,eB=iz&&1/Udt(new iz([,-0]))[1]==1/0?function(e){return new iz(e)}:$z,omt=200,Y(Mit,`baseUniq`),tB=Mit,Y(Nit,`uniqBy`),smt=Nit,Y(Pit,`flatten`),nB=Pit,Y(Fit,`arrayEach`),rB=Fit,Y(Iit,`castFunction`),iB=Iit,Y(Lit,`forEach`),cmt=Lit,aB=`[object Map]`,oB=`[object Set]`,sB=Object.prototype.hasOwnProperty,Y(Rit,`isEmpty`),cB=Rit,Y(JF,`arrayReduce`),lB=JF,Y(zit,`baseReduce`),lmt=zit,Y(Bit,`reduce`),umt=Bit,Y(Vit,`createDFACache`),uB=class{static{Y(this,`PredicateSet`)}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;nconsole.log(e)),this.incomplete=e?.incomplete??!1}initialize(e){this.atn=oit(e.rules),this.dfas=Kit(this.atn),this.callers=Uit(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=this.incomplete,l=FF(n,`Alternation`,t),u=this.atn.decisionMap[l].decision,d=kz(Btt({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>kz(e,e=>e[0]));if(Hit(d,!1)&&!i){let e=umt(d,(e,t,n)=>(cmt(t,t=>{t&&(e[t.tokenTypeIdx]=n,cmt(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=this.LA_FAST(1),r=e[n.tokenTypeIdx];if(t!==void 0&&r!==void 0){let e=t[r]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return r}:function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]}}return r?function(e){let t=new uB,n=e===void 0?0:e.length;for(let r=0;rkz(e,e=>e[0]));if(Hit(p)&&p[0][0]&&!i&&!Git(d,r,l)){let e=p[0],t=nB(e);if(t.length===1&&cB(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=umt(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,cmt(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]===!0}}}return function(){let e=qit.call(this,a,f,dB,o,s);return typeof e!=`object`&&e===0}}},Y(Hit,`isLL1Sequence`),Y(Uit,`buildCallers`),Y(Wit,`firstSet`),Y(Git,`optionalHasFollowConflict`),Y(Kit,`initATNSimulator`),Y(qit,`adaptivePredict`),Y(Jit,`performLookahead`),Y(Yit,`computeLookaheadTarget`),Y(Xit,`reportLookaheadAmbiguity`),Y(Zit,`buildAmbiguityError`),Y(Qit,`getProductionDslName`),Y($it,`buildAdaptivePredictError`),Y(eat,`getExistingTargetState`),Y(tat,`computeReachSet`),Y(nat,`getReachableTarget`),Y(rat,`getUniqueAlt`),Y(iat,`newDFAState`),Y(aat,`addDFAEdge`),Y(oat,`addDFAState`),Y(YF,`computeStartState`),Y(XF,`closure`),Y(sat,`getEpsilonTarget`),Y(cat,`hasConfigInRuleStopState`),Y(lat,`allConfigsInRuleStopStates`),Y(uat,`hasConflictTerminatingPrediction`),Y(dat,`getConflictingAltSets`),Y(fat,`hasConflictingAltSet`),Y(pat,`hasStateAssociatedWithOneAlt`),Y(mat,`getBestGuess`),pB=class{static{Y(this,`CstNodeBuilder`)}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new fmt(e),this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new hB;return t.grammarSource=e,this.appendChild(this.current,t),this.nodeStack.push(t),t}buildLeafNode(e,t){let n=this.createLeafNode(e,!t);return t&&(n.grammarSource=t),this.appendChild(this.current,n),n}createLeafNode(e,t){return new mB(e.startOffset,e.image.length,e.startLine-1,e.startColumn-1,e.endLine-1,e.endColumn,e.tokenType,t)}appendChild(e,t){t.container=e,e.content.push(t)}appendChildren(e,t){for(let n of t)n.container=e;e.content.length===0?e.content=t.slice():e.content.push(...t)}insertChildren(e,t,n){for(let t of n)t.container=e;e.content.splice(t,0,...n)}removeNode(e){let t=e.container;if(t){let n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e)t.push(this.createLeafNode(n,!0));let n=this.current,r=!1;if(n.content.length>0){this.appendChildren(n,t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){this.insertChildren(n.container,e,t),r=!0;break}n=n.container}r||this.insertChildren(this.rootNode,0,t)}construct(e){e.$cstNode=this.current;let t=this.nodeStack.pop();t&&(t.content.length===0?this.removeNode(t):t.content=t.content.slice())}},dmt=class{static{Y(this,`AbstractCstNode`)}constructor(){this.container=void 0,this.grammarSource=void 0}get root(){let e=this;for(;e.container;)e=e.container;return e}get text(){return this.root.fullText.substring(this.offset,this.end)}},mB=class extends dmt{static{Y(this,`LeafCstNodeImpl`)}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 astNode(){let e=this.container;if(!e)throw Error(`This node has no associated AST element`);return e.astNode}get range(){return{start:{line:this._startLine,character:this._startColumn},end:{line:this._endLine,character:this._endColumn}}}constructor(e,t,n,r,i,a,o,s=!1){super(),this._hidden=s,this._offset=ZF(e),this._length=ZF(t),this._startLine=ZF(n),this._startColumn=ZF(r),this._endLine=ZF(i),this._endColumn=ZF(a),this._tokenType=o}},Y(ZF,`toSmi`),hB=class extends dmt{static{Y(this,`CompositeCstNodeImpl`)}constructor(){super(...arguments),this.content=[],this._astNode=void 0,this._rangeCache=void 0}get astNode(){let e=this;for(;e;){if(e._astNode)return e._astNode;e=e.container}throw Error(`This node has no associated AST element`)}set astNode(e){this._astNode=e}get hidden(){return!1}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this._rangeCache;if(e===void 0){let t=this.firstNonHiddenNode,n=this.lastNonHiddenNode;if(t&&n){let{range:r}=t,{range:i}=n;this._rangeCache=e={start:r.start,end:i.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},fmt=class extends hB{static{Y(this,`RootCstNodeImpl`)}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text=``,this._text=e??``}},gB=Symbol(`Datatype`),Y(hat,`isDataTypeNode`),_B=`​`,vB=Y(e=>e.endsWith(_B)?e:e+_B,`withRuleSuffix`),pmt=class{static{Y(this,`AbstractLangiumParser`)}constructor(e,t){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let n=this.lexer.definition,r=e.LanguageMetaData.mode===`production`;this.wrapper=e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?new gmt(n,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},t,e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):new SB(n,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},t)}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}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()}},yB=class extends pmt{static{Y(this,`LangiumParser`)}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e,!1),this.nodeBuilder=new pB,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,t){let n=this.computeRuleType(e),r;M9e(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(vB(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),AP(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return this.linkCstNode(t),t}linkCstNode(e){cP(e)&&e.$cstNode&&(e.$cstNode.astNode=e)}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===gB?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;en)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=kP(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(hat(o)){let e=r.image;kP(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&J9e(e)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(hat(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode);let r=this.nodeBuilder.buildCompositeNode(t);this.nodeBuilder.appendChild(r,n.$cstNode);let i={$type:e};this.stack.push(i),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):hat(e)?this.converter.convert(e.value,e.$cstNode):(w9e(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;ea?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),l=n.slice(0,i+1),u=n.slice(i+1),d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:s},p=this.constructInfix(d,t),m=this.constructInfix(f,t);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:r[i],right:m}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=hP(e,TP);this.assignmentMap.set(e,{assignment:t,crossRef:t&&EP(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,this.linkCstNode(o),e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}return e.$cstNode=void 0,e}get definitionErrors(){return this.wrapper.definitionErrors}},bB=class{static{Y(this,`AbstractParserErrorMessageProvider`)}buildMismatchTokenMessage(e){return hR.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return hR.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return hR.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return hR.buildEarlyExitMessage(e)}},xB=class extends bB{static{Y(this,`LangiumParserErrorMessageProvider`)}buildMismatchTokenMessage({expected:e,actual:t}){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 \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},mmt=class extends pmt{static{Y(this,`LangiumCompletionParser`)}constructor(e){super(e,!0),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.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,t){let n=this.wrapper.DEFINE_RULE(vB(e.name),this.startImplementation(t).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 t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},hmt={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new xB},SB=class extends Dut{static{Y(this,`ChevrotainWrapper`)}constructor(e,t,n){let r=t&&`maxLookahead`in t;super(e,{...hmt,lookaheadStrategy:r?new sut({maxLookahead:t.maxLookahead}):new fB({logging:t.skipValidations?()=>{}:void 0,incomplete:n}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},gmt=class extends SB{static{Y(this,`ProfilerWrapper`)}constructor(e,t,n,r){super(e,t,n),this.task=r}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,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}},Y(gat,`createParser`),Y(_at,`buildRules`),Y(vat,`buildInfixRule`),Y(QF,`buildElement`),Y(yat,`buildAction`),Y($F,`buildRuleCall`),Y(bat,`buildRuleCallPredicate`),Y(eI,`buildPredicate`),Y(xat,`buildAlternatives`),Y(Sat,`buildUnorderedGroup`),Y(Cat,`buildGroup`),Y(wat,`getGuardCondition`),Y(Tat,`buildCrossReference`),Y(Eat,`buildKeyword`),Y(Dat,`wrap`),Y(tI,`getRule`),Y(Oat,`getRuleName`),Y(kat,`getToken`),Y(Aat,`createCompletionParser`),Y(jat,`createLangiumParser`),Y(Mat,`prepareLangiumParser`),CB=class{static{Y(this,`DefaultTokenBuilder`)}constructor(){this.diagnostics=[]}buildTokens(e,t){let n=mP(cet(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(MP).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=Tet(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=BP(t)?pR.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(SP).flatMap(e=>vP(e).filter(kP)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(ret(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&iet(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},wB=class{static{Y(this,`DefaultValueConverter`)}convert(e,t){let n=t.grammarSource;if(EP(n)&&(n=det(n)),jP(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return TB.convertInt(t);case`STRING`:return TB.convertString(t);case`ID`:return TB.convertID(t)}switch(wet(e)?.toLowerCase()){case`number`:return TB.convertNumber(t);case`boolean`:return TB.convertBoolean(t);case`bigint`:return TB.convertBigint(t);case`date`:return TB.convertDate(t);default:return t}}},(function(e){function t(e){let t=``;for(let r=1;r{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},AB=class e{static{Y(this,`FullTextDocument`)}constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=Lat(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=Fat(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;ee?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1=t.length){let e=t.length-1;return{start:{line:e,character:0},end:{line:e,character:this._content.length-t[e]}}}if(e<0)return{start:{line:0,character:0},end:{line:0,character:0}};let n=t[e],r=e+1=t.length||e<0)return``;let n=e+1t&&Iat(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},(function(e){function t(e,t,n,r){return new AB(e,t,n,r)}Y(t,`create`),e.create=t;function n(e,t,n){if(e instanceof AB)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}Y(n,`update`),e.update=n;function r(e,t){let n=e.getText(),r=iI(t.map(Rat),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}Y(r,`applyEdits`),e.applyEdits=r})(jB||={}),Y(iI,`mergeSort`),Y(Fat,`computeLineOffsets`),Y(Iat,`isEOL`),Y(Lat,`getWellformedRange`),Y(Rat,`getWellformedEdit`),(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}Y(t,`e`);function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf(`/`);if(l!==r.length-1){l===-1?(r=``,i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}Y(n,`r`);var r={resolve:Y(function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},`resolve`),normalize:Y(function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},`normalize`),isAbsolute:Y(function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},`isAbsolute`),join:Y(function(){if(arguments.length===0)return`.`;for(var e,n=0;n0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},`join`),relative:Y(function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;iu){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>u&&(e.charCodeAt(i+f)===47?d=f:f===0&&(d=0));break}var p=e.charCodeAt(i+f);if(p!==n.charCodeAt(s+f))break;p===47&&(d=f)}var m=``;for(f=i+d+1;f<=a;++f)f!==a&&e.charCodeAt(f)!==47||(m.length===0?m+=`..`:m+=`/..`);return m.length>0?m+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},`relative`),_makeLong:Y(function(e){return e},`_makeLong`),dirname:Y(function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},`dirname`),basename:Y(function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(u===47){if(!o){i=r+1;break}}else l===-1&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=l))}return i===a?a=l:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},`basename`),extname:Y(function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(l!==47)i===-1&&(a=!1,i=s+1),l===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},`extname`),format:Y(function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return(function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r})(0,e)},`format`),parse:Y(function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,l=-1,u=!0,d=e.length-1,f=0;d>=r;--d)if((i=e.charCodeAt(d))!==47)l===-1&&(u=!1,l=d+1),i===46?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1);else if(!u){s=d+1;break}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(n.base=n.name=s===0&&a?e.slice(1,l):e.slice(s,l)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(s,o),n.base=e.slice(s,l)),n.ext=e.slice(o,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},`parse`),sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}Y(n,`r`),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:Y(()=>d,`URI`),Utils:Y(()=>w,`Utils`)}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw 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(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}Y(l,`a`);let u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static{Y(this,`l`)}static isUri(e){return e instanceof d||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=(function(e,t){return e||t?e:`file`})(e,a),this.authority=t||``,this.path=(function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t})(this.scheme,n||``),this.query=r||``,this.fragment=i||``,l(this,a))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new p(t,n,r,i,a)}static parse(e,t=!1){let n=u.exec(e);return n?new p(n[2]||``,x(n[4]||``),x(n[5]||``),x(n[7]||``),x(n[9]||``),t):new p(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new p(`file`,t,e,``,``)}static from(e){let t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{let t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}let f=i?1:void 0;class p extends d{static{Y(this,`d`)}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=_(this,!1),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||=v(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let 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 h(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=m[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}Y(h,`m`);function g(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}Y(_,`v`);function v(e,t){let n=t?g:h,r=``,{scheme:i,authority:a,path:o,query:s,fragment:l}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),l&&(r+=`#`,r+=t?l:h(l,!1,!1)),r}Y(v,`b`);function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}Y(y,`C`);let b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(b)?e.replace(b,(e=>y(e))):e}Y(x,`w`);var S=n(975);let C=S.posix||S;var w;(function(e){e.joinPath=function(e,...t){return e.with({path:C.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=C.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=C.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return C.basename(e.path)},e.extname=function(e){return C.extname(e.path)}})(w||={}),vmt=r})(),{URI:MB,Utils:NB}=vmt,(function(e){e.basename=NB.basename,e.dirname=NB.dirname,e.extname=NB.extname,e.joinPath=NB.joinPath,e.resolvePath=NB.resolvePath;let t=typeof process==`object`&&process?.platform===`win32`;function n(e,t){return e?.toString()===t?.toString()}Y(n,`equals`),e.equals=n;function r(e,n){let r=typeof e==`string`?MB.parse(e).path:e.path,i=typeof n==`string`?MB.parse(n).path:n.path,a=r.split(`/`).filter(e=>e.length>0),o=i.split(`/`).filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]!==o[0])return i.substring(1)}let s=0;for(;s({name:e.name,uri:PB.joinPath(MB.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(this.normalizeUri(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let n=e.split(`/`);e.charAt(e.length-1)===`/`&&n.pop();let r=this.root;for(let e of n){let n=r.children.get(e);if(!n){if(t)n={name:e,children:new Map,parent:r},r.children.set(e,n);else return}r=n}return r}collectValues(e){let t=[];e.element&&t.push(e.element);for(let n of e.children.values())t.push(...this.collectValues(n));return t}},(function(e){e[e.Changed=0]=`Changed`,e[e.Parsed=1]=`Parsed`,e[e.IndexedContent=2]=`IndexedContent`,e[e.ComputedScopes=3]=`ComputedScopes`,e[e.Linked=4]=`Linked`,e[e.IndexedReferences=5]=`IndexedReferences`,e[e.Validated=6]=`Validated`})(FB||={}),bmt=class{static{Y(this,`DefaultLangiumDocumentFactory`)}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=EB.CancellationToken.None){let n=await this.getInitialText(e,t);return this.createAsync(e,n,t)}async getInitialText(e,t){return this.fileSystemProvider.readFile(e)}fromTextDocument(e,t,n){return t??=MB.parse(e.uri),EB.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return EB.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==`string`){let r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}if(`$model`in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}{let r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==`string`){let r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}{let r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:FB.Parsed,references:[],textDocument:n};else{let n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:FB.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){let n=e.parseResult.value.$cstNode?.root.fullText,r=this.textDocuments?.get(e.uri.toString()),i=await this.getUpdatedText(e,r,t);if(r)Object.defineProperty(e,"textDocument",{value:r});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=FB.Parsed,e}async getUpdatedText(e,t,n){return t?t.getText():await this.fileSystemProvider.readFile(e.uri)}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){let n=this.serviceRegistry,r;return()=>r??=jB.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??``)}},xmt=class{static{Y(this,`DefaultLangiumDocuments`)}constructor(e){this.documentTrie=new ymt,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return mP(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,FB.Changed),n}deleteDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=FB.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){let t=e.toString(),n=this.documentTrie.findAll(t);for(let e of n)e.state=FB.Changed;return this.documentTrie.delete(t),n}},IB=Symbol(`RefResolving`),Smt=class{static{Y(this,`DefaultReferenceImpl`)}constructor(e,t,n,r,i){this.resolver=e,this.node=t,this.property=n,this._ref=void 0,this.$refNode=r,this.$refText=i}get ref(){return this.resolver.resolveReference(this,this.node,this.property)}get $nodeDescription(){return this._nodeDescription}get error(){return dP(this._ref)?this._ref:void 0}},Cmt=class{static{Y(this,`DefaultMultiReferenceImpl`)}constructor(e,t,n,r,i){this.resolver=e,this.node=t,this.property=n,this._items=void 0,this.$refNode=r,this.$refText=i}get items(){return this.resolver.resolveMultiReference(this,this.node,this.property)}get error(){return this._linkingError}},wmt=class{static{Y(this,`DefaultLinker`)}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,this.referenceResolver={resolveReference:this.resolveReference.bind(this),resolveMultiReference:this.resolveMultiReference.bind(this)}}async link(e,t=EB.CancellationToken.None){if(this.profiler?.isActive(`linking`)){let n=this.profiler.createTask(`linking`,this.languageId);n.start();try{for(let r of yP(e.parseResult.value))await rI(t),C9e(r).forEach(t=>{let i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(let n of yP(e.parseResult.value))await rI(t),C9e(n).forEach(t=>this.doLink(t,e))}doLink(e,t){let n=e.reference;if(`_ref`in n&&n._ref===void 0){n._ref=IB;try{let t=this.getCandidate(e);dP(t)?n._ref=t:(n._nodeDescription=t,n._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(t){console.error(`An error occurred while resolving reference to '${n.$refText}':`,t);let r=t.message??String(t);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`}}t.references.push(n)}else if(`_items`in n&&n._items===void 0){n._items=IB;try{let t=this.getCandidates(e),r=[];if(dP(t))n._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(t){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`},n._items=[]}t.references.push(n)}}unlink(e){for(let t of e.references)`_ref`in t?(t._ref=void 0,delete t._nodeDescription):`_items`in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){return new Smt(this.referenceResolver,e,t,n,r)}buildMultiReference(e,t,n,r){return new Cmt(this.referenceResolver,e,t,n,r)}resolveReference(e,t,n){if(cP(e._ref))return e._ref;if(g9e(e._nodeDescription))e._ref=this.loadAstNode(e._nodeDescription)??this.createLinkingError({reference:e,container:t,property:n},e._nodeDescription);else if(e._ref===void 0){e._ref=IB;let r=x9e(t).$document,i=this.getLinkedNode({reference:e,container:t,property:n});if(i.error&&r&&r.stateEP(e)&&e.isMulti)}findDeclarations(e){if(e){let t=get(e),n=e.astNode;if(t&&n){let r=n[t.feature];if(lP(r)||uP(r))return S9e(r);if(Array.isArray(r)){for(let t of r)if((lP(t)||uP(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return S9e(t)}}if(n){let t=this.nameProvider.getNameNode(n);if(t&&(t===e||K9e(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n){for(let t of C9e(n))if(uP(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&n.push(t)}return n}findReferences(e,t){let n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>PB.equals(e.sourceUri,t.documentUri))),n.push(...r),mP(n)}getSelfReferences(e){let t=this.getSelfNodes(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let r=gP(e),i=this.nodeLocator.getAstNodePath(e);n.push({sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Y9e(t),local:!0})}}return n}},LB=class{static{Y(this,`MultiMap`)}constructor(e){if(this.map=new Map,e)for(let[t,n]of e)this.add(t,n)}get size(){return Act.sum(mP(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let r=n.indexOf(t);if(r>=0)return n.length===1?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?mP(t):kct}has(e,t){if(t===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return mP(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return mP(this.map.keys())}values(){return mP(this.map.values()).flat()}entriesGroupedByKey(){return mP(this.map.entries())}},RB=class{static{Y(this,`BiMap`)}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t!==void 0&&(this.map.delete(e),this.inverse.delete(t),!0)}},zB=class{static{Y(this,`DefaultScopeComputation`)}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=EB.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=_P,r=EB.CancellationToken.None){let i=[];this.addExportedSymbol(e,i,t);for(let a of n(e))await rI(r),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,n){let r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=EB.CancellationToken.None){let n=e.parseResult.value,r=new LB;for(let i of vP(n))await rI(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){let r=e.$container;if(r){let i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},BB=class{static{Y(this,`StreamScope`)}constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},VB=class{static{Y(this,`MultiMapScope`)}constructor(e,t,n){this.elements=new LB,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||n.length===0)&&this.outerScope?mP(n).concat(this.outerScope.getElements(e)):mP(n)}getAllElements(){let e=mP(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},HB=class{static{Y(this,`DisposableCache`)}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 Error(`This cache has already been disposed`)}},UB=class extends HB{static{Y(this,`SimpleCache`)}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let n=t();return this.cache.set(e,n),n}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},WB=class extends HB{static{Y(this,`ContextCache`)}constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();let r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){let e=n();return r.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},Dmt=class extends UB{static{Y(this,`WorkspaceCache`)}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},Omt=class{static{Y(this,`DefaultScopeProvider`)}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 Dmt(e.shared)}getScope(e){let t=[],n=this.reflection.getReferenceType(e),r=gP(e.container).localSymbols;if(r){let i=e.container;do r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container;while(i)}let i=this.getGlobalScope(n,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,n){return new BB(mP(e),t,n)}createScopeForNodes(e,t,n){return new BB(mP(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new VB(this.indexManager.allElements(e)))}},Y(Bat,`isAstNodeWithComment`),Y(aI,`isIntermediateReference`),kmt=class{static{Y(this,`DefaultJsonSerializer`)}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,t){let n=t??{},r=t?.replacer,i=Y((e,t)=>this.replacer(e,t,n),`defaultReplacer`),a=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=gP(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(e)){if(lP(t)){let e=t.ref,r=n?t.$refText:void 0;if(e){let t=gP(e),n=``;this.currentDocument&&this.currentDocument!==t&&(n=o?o(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${n}#${i}`,$refText:r}}return{$error:t.error?.message??`Could not resolve reference`,$refText:r}}if(uP(t)){let e=n?t.$refText:void 0,r=[];for(let e of t.items){let t=e.ref,n=gP(e.ref),i=``;this.currentDocument&&this.currentDocument!==n&&(i=o?o(n.uri,t):n.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);r.push(`${i}#${a}`)}return{$refs:r,$refText:e}}if(cP(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&n?.$textRegion&&(n.$textRegion.documentURI=this.currentDocument?.uri.toString())),r&&!e&&(n??={...t},n.$sourceText=t.$cstNode?.text),a){n??={...t};let e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,``))}return n??t}return t}}addAstNodeRegionWithAssignmentsTo(e){let t=Y(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),`createDocumentSegment`);if(e.$cstNode){let n=e.$textRegion=t(e.$cstNode),r=n.assignments={};return Object.keys(e).filter(e=>!e.startsWith(`$`)).forEach(n=>{let i=VP(e.$cstNode,n).map(t);i.length!==0&&(r[n]=i)}),e}}linkNode(e,t,n,r,i,a){for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,n,r,i),`An error occurred during validation`,r,n)}}async handleException(e,t,n,r){try{await e()}catch(e){if(nI(e))throw e;console.error(`${t}:`,e),e instanceof Error&&e.stack&&console.error(e.stack),n(`error`,`${t}: ${e instanceof Error?e.message:String(e)}`,{node:r})}}addEntry(e,t){if(e===`AstNode`){this.entries.add(`AstNode`,t);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,t)}getChecks(e,t){let n=mP(this.entries.get(e)).concat(this.entries.get(`AstNode`));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,`An error occurred during set-up of the validation`,t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,`An error occurred during tear-down of the validation`,t))}wrapPreparationException(e,t,n){return async(r,i,a,o)=>{await this.handleException(()=>e.call(n,r,i,a,o),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},JB=Object.freeze({validateNode:!0,validateChildren:!0}),Amt=class{static{Y(this,`DefaultDocumentValidator`)}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,t={},n=EB.CancellationToken.None){let r=e.parseResult,i=[];if(await rI(n),(!t.categories||t.categories.includes(`built-in`))&&(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===YB.LexingError)||(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===YB.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===YB.LinkingError))))return i;try{i.push(...await this.validateAst(r.value,t,n))}catch(e){if(nI(e))throw e;console.error(`An error occurred during validation:`,e)}return await rI(n),i}processLexingErrors(e,t,n){let r=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let e of r){let n=e.severity??`error`,r={severity:sI(n),range:{start:{line:e.line-1,character:e.column-1},end:{line:e.line-1,character:e.column+e.length-1}},message:e.message,data:Hat(n),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,n){for(let n of e.parserErrors){let e;if(J9e(n.token))e=q9e(n.token);else if(`previousToken`in n){let t=n.previousToken;if(J9e(t)){let n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}else{let t={line:0,character:0};e={start:t,end:t}}}if(e){let r={severity:sI(`error`),range:e,message:n.message,data:oI(YB.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,n){for(let n of e.references){let e=n.error;if(e){let r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:YB.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic(`error`,e.message,r))}}}async validateAst(e,t,n=EB.CancellationToken.None){let r=[],i=Y((e,t,n)=>{r.push(this.toDiagnostic(e,t,n))},`acceptor`);return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=EB.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await rI(r),await a(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=EB.CancellationToken.None){if(this.profiler?.isActive(`validating`)){let i=this.profiler.createTask(`validating`,this.languageId);i.start();try{let a=yP(e).iterator();for(let e of a){i.startSubTask(e.$type);let o=this.validateSingleNodeOptions(e,t);if(o.validateNode)try{let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}o.validateChildren||a.prune()}}finally{i.stop()}}else{let i=yP(e).iterator();for(let e of i){await rI(r);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode){let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return JB}async validateAstAfter(e,t,n,r=EB.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await rI(r),await a(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:Vat(n),severity:sI(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},Y(Vat,`getDiagnosticRange`),Y(sI,`toDiagnosticSeverity`),Y(Hat,`toDiagnosticData`),(function(e){e.LexingError=`lexing-error`,e.LexingWarning=`lexing-warning`,e.LexingInfo=`lexing-info`,e.LexingHint=`lexing-hint`,e.ParsingError=`parsing-error`,e.LinkingError=`linking-error`})(YB||={}),XB=class{static{Y(this,`DefaultAstNodeDescriptionProvider`)}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){let r=n??gP(e);t??=this.nameProvider.getName(e);let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,o=Y(()=>a??=Y9e(this.nameProvider.getNameNode(e)??e.$cstNode),`nameSegmentGetter`);return{node:e,name:t,get nameSegment(){return o()},selectionSegment:Y9e(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},ZB=class{static{Y(this,`DefaultReferenceDescriptionProvider`)}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=EB.CancellationToken.None){let n=[],r=e.parseResult.value;for(let e of yP(r))await rI(t),C9e(e).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let n=[];lP(t)&&t.$nodeDescription?n=[t.$nodeDescription]:uP(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>e!==void 0));let r=gP(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],o=Y9e(t.$refNode);for(let e of n)a.push({sourceUri:r,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:o,local:PB.equals(e.documentUri,r)});return a}},QB=class{static{Y(this,`DefaultAstNodeLocator`)}constructor(){this.segmentSeparator=`/`,this.indexSeparator=`@`}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return``}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error(`Missing '$containerProperty' in AST node.`);return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||t.length===0)return e;let n=t.indexOf(this.indexSeparator);if(n>0){let r=t.substring(0,n),i=parseInt(t.substring(n+1));return e[r]?.[i]}return e[t]},e)}},jmt=TI(nL(),1),Mmt=class{static{Y(this,`DefaultConfigurationProvider`)}constructor(e){this._ready=new kB,this.onConfigurationSectionUpdateEmitter=new jmt.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){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings==`object`&&e.settings!==null&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},$B=TI(nL(),1),(function(e){function t(e){return{dispose:Y(async()=>await e(),`dispose`)}}Y(t,`create`),e.create=t})(eV||={}),Nmt=class{static{Y(this,`DefaultDocumentBuilder`)}constructor(e){this.updateBuildOptions={validation:{categories:[`built-in`,`fast`]}},this.updateListeners=[],this.buildPhaseListeners=new LB,this.documentPhaseListeners=new LB,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=FB.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,t={},n=EB.CancellationToken.None){for(let n of e){let e=n.uri.toString();if(n.state===FB.Validated){if(typeof t.validation==`boolean`&&t.validation)this.resetToState(n,FB.IndexedReferences);else if(typeof t.validation==`object`){let r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=FB.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=FB.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=EB.CancellationToken.None){this.currentState=FB.Changed;let r=[];for(let e of t){let t=this.langiumDocuments.deleteDocuments(e);for(let e of t)r.push(e.uri),this.cleanUpDeleted(e)}let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);t===void 0&&(t=this.langiumDocumentFactory.fromModel({$type:`INVALID`},e),t.state=FB.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,FB.Changed)}let a=mP(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,FB.ComputedScopes)),await this.emitUpdate(i,r),await rI(n);let o=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let n=this.buildState.get(e.uri.toString()),r=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?r:new Set;return mP(t===void 0||t.validation===!0?r:typeof t.validation==`object`?t.validation.categories??r:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t=0&&!this.hasTextDocument(e[n]);)n--;te.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),eV.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case FB.Changed:case FB.Parsed:this.indexManager.removeContent(e.uri);case FB.IndexedContent:e.localSymbols=void 0;case FB.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case FB.Linked:this.indexManager.removeReferences(e.uri);case FB.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case FB.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=FB.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,FB.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,FB.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,FB.ComputedScopes,n,async e=>{e.localSymbols=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectLocalSymbols(e,n)});let r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,FB.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,FB.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));let i=e.filter(e=>this.shouldValidate(e)?!0:(this.markAsCompleted(e),!1));await this.runCancelable(i,FB.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let n of e){let e=n.uri.toString(),r=this.buildState.get(e);(!r||r.completed)&&this.buildState.set(e,{completed:!1,options:t,result:r?.result})}}async runCancelable(e,t,n,r){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),eV.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),eV.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&`path`in t?r=t:n=t,n??=EB.CancellationToken.None,r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){let r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(OB):this.currentState>=e&&e>r.state?Promise.reject(new $B.ResponseError($B.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${FB[r.state]}, requiring ${FB[e]}, but workspace state is already ${FB[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{let a=this.onDocumentPhase(e,e=>{PB.equals(e.uri,t)&&(a.dispose(),o.dispose(),r(e.uri))}),o=n.onCancellationRequested(()=>{a.dispose(),o.dispose(),i(OB)})}):Promise.reject(new $B.ResponseError($B.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(OB):new Promise((n,r)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),n()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),r(OB)})})}async notifyDocumentPhase(e,t,n){let r=this.documentPhaseListeners.get(t).slice();for(let t of r)try{await rI(n),await t(e,n)}catch(e){if(!nI(e))throw e}}async notifyBuildPhase(e,t,n){if(e.length===0)return;let r=this.buildPhaseListeners.get(t).slice();for(let t of r)await rI(n),await t(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i=typeof r.validation==`object`?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);let a=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let o=this.buildState.get(e.uri.toString());o&&(o.result??={},o.result.validationChecks?o.result.validationChecks=mP(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},tV=class{static{Y(this,`DefaultIndexManager`)}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new WB,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let n=gP(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{PB.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),mP(r)}allElements(e,t){let n=mP(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=EB.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),r=e.uri.toString();this.symbolIndex.set(r,n),this.symbolByTypeIndex.clear(r)}async updateReferences(e,t=EB.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(e=>!e.local&&t.has(e.targetUri.toString())):!1}},Pmt=class{static{Y(this,`DefaultWorkspaceManager`)}constructor(e){this.initialBuildOptions={},this._ready=new kB,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(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=EB.CancellationToken.None){let n=await this.performStartup(e);await rI(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){let t=[],n=Y(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},`collector`);await this.loadAdditionalDocuments(e,n);let r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));let i=mP(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return MB.parse(e.uri)}async traverseFolder(e,t){try{let n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error(`Failure to read directory content of `+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=PB.basename(e.uri);return t.startsWith(`.`)?!1:e.isDirectory?t!==`node_modules`&&t!==`out`:e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},Fmt=class{static{Y(this,`DefaultLexerErrorMessageProvider`)}buildUnexpectedCharactersMessage(e,t,n,r,i){return Slt.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return Slt.buildUnableToPopLexerModeMessage(e)}},Imt={mode:`full`},Lmt=class{static{Y(this,`DefaultLexer`)}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let n=Gat(t)?Object.values(t):t,r=e.LanguageMetaData.mode===`production`;this.chevrotainLexer=new pR(n,{positionTracking:`full`,skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=Imt){let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(Gat(e))return e;let t=Wat(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}},Y(Uat,`isTokenTypeArray`),Y(Wat,`isIMultiModeLexerDefinition`),Y(Gat,`isTokenTypeDictionary`),sct(),Y(Kat,`parseJSDoc`),Y(qat,`isJSDoc`),Y(Jat,`getLines`),nV=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,rV=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,Y(Yat,`tokenize`),Y(Xat,`buildInlineTokens`),Rmt=/\S/,zmt=/\s*$/,Y(Zat,`skipWhitespace`),Y(Qat,`lastCharacter`),Y(cI,`parseJSDocComment`),Y(lI,`parseJSDocElement`),Y($at,`appendEmptyLine`),Y(eot,`parseJSDocText`),Y(tot,`parseJSDocInline`),Y(uI,`parseJSDocTag`),Y(not,`parseJSDocLine`),Y(rot,`normalizeOptions`),Y(dI,`normalizeOption`),iV=class{static{Y(this,`JSDocCommentImpl`)}constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>`name`in e)}toString(){let e=``;for(let t of this.elements)if(e.length===0)e=t.toString();else{let n=t.toString();e+=iot(e)+n}return e.trim()}toMarkdown(e){let t=``;for(let n of this.elements)if(t.length===0)t=n.toMarkdown(e);else{let r=n.toMarkdown(e);t+=iot(t)+r}return t.trim()}},aV=class{static{Y(this,`JSDocTagImpl`)}constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=fI(this.name,t,e??{});if(typeof n==`string`)return n}let n=``;e?.tag===`italic`||e?.tag===void 0?n=`*`:e?.tag===`bold`?n=`**`:e?.tag===`bold-italic`&&(n=`***`);let r=`${n}@${this.name}${n}`;return this.content.inlines.length===1?r=`${r} \u2014 ${t}`:this.content.inlines.length>1&&(r=`${r} +${t}`),this.inline?`{${r}}`:r}},Y(fI,`renderInlineTag`),Y(pI,`renderLinkDefault`),oV=class{static{Y(this,`JSDocTextImpl`)}constructor(e,t){this.inlines=e,this.range=t}toString(){let e=``;for(let t=0;tn.range.start.line&&(e+=` `)}return e}toMarkdown(e){let t=``;for(let n=0;nr.range.start.line&&(t+=` -`)}return t}},Rmt=class{static{Y(this,`JSDocLineImpl`)}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},Y(iot,`fillNewlines`),zmt=class{static{Y(this,`JSDocDocumentationProvider`)}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&Gat(t))return iI(t).toMarkdown({renderLink:Y((t,n)=>this.documentationLinkRenderer(e,t,n),`renderLink`),renderTag:Y(t=>this.documentationTagRenderer(e,t),`renderTag`)})}documentationLinkRenderer(e,t,n){let r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){let e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=_P(e).localSymbols;if(!n)return;let r=e;do{let e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},iV=class{static{Y(this,`DefaultCommentProvider`)}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return Lat(e)?e.$comment:q9e(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},aV=class{static{Y(this,`DefaultAsyncParser`)}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},(function(e){e[e.Normal=0]=`Normal`,e[e.Immediate=1]=`Immediate`})(Bmt||={}),oV=class{static{Y(this,`DefaultWorkspaceLock`)}constructor(){this.previousTokenSource=new wB.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.immediateReads=[],this.done=!0}write(e){this.cancelWrite();let t=Aat();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e,t=Bmt.Normal){if(t===Bmt.Immediate){let t=Promise.resolve().then(()=>e());this.immediateReads.push(t);let n=Y(()=>{this.immediateReads.splice(this.immediateReads.indexOf(t),1)},`remove`);return t.then(n,n),t}return this.enqueue(this.readQueue,e)}enqueue(e,t,n=wB.CancellationToken.None){let r=new OB,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)for(e.push(this.writeQueue.shift()),this.done=!1;this.immediateReads.length>0;)await Promise.allSettled(this.immediateReads.slice());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length)),this.done=!1;else return;await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{let r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(e){jat(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Vmt=class{static{Y(this,`DefaultHydrator`)}constructor(e){this.grammarElementIdMap=new Cmt,this.tokenTypeIdMap=new Cmt,this.cstNodeBuilder=new dB,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(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,n=new Map;for(let n of bP(e))t.set(n,{});if(e.$cstNode)for(let t of V9e(e.$cstNode))n.set(t,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){let n=t.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,t));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let n of i)cP(n)?e.push(this.dehydrateAstNode(n,t)):lP(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else cP(i)?n[r]=this.dehydrateAstNode(i,t):lP(i)?n[r]=this.dehydrateReference(i,t):i!==void 0&&(n[r]=i)}return n}dehydrateReference(e,t){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){let n=t.cstNodes.get(e);if(f9e(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,pP(e))n.content=e.content.map(e=>this.dehydrateCstNode(e,t));else if(d9e(e)){n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length;let{start:t,end:r}=e.range;n.startLine=t.line,n.startColumn=t.character,n.endLine=r.line,n.endColumn=r.character}return n}hydrate(e){let t=e.value,n=this.createHydrationContext(t);return`$cstNode`in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){let t=new Map,n=new Map;for(let n of bP(e))t.set(n,{});if(e.$cstNode)for(let t of V9e(e.$cstNode)){let e;`fullText`in t?e=new mB(t.fullText):`content`in t?e=new pB:`tokenType`in t&&(e=this.hydrateCstLeafNode(t)),e&&n.set(t,e)}return{astNodes:t,cstNodes:n,linkedCstNodes:new Set}}hydrateAstNode(e,t){let n=t.astNodes.get(e);if(n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode){let r=t.cstNodes.get(e.$cstNode);n.$cstNode=r,r&&!t.linkedCstNodes.has(r)&&(t.linkedCstNodes.add(r),r.astNode=n)}for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let a of i)cP(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):lP(a)?e.push(this.hydrateReference(a,n,r,t)):e.push(a)}else cP(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):lP(i)?n[r]=this.hydrateReference(i,n,r,t):i!==void 0&&(n[r]=i)}return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){let r=t.cstNodes.get(e);if(typeof e.grammarSource==`number`&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),pP(r)){let i=[];for(let r of e.content)i.push(this.hydrateCstNode(r,t,n++));this.cstNodeBuilder.appendChildren(r,i)}return r}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType);return new fB(e.offset,e.length,e.startLine,e.startColumn,e.endLine,e.endColumn,t,e.hidden)}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(let t of bP(this.grammar))b9e(t)&&this.grammarElementIdMap.set(t,e++)}},Y(lI,`createDefaultCoreModule`),Y(uI,`createDefaultSharedCoreModule`),(function(e){e.merge=(e,t)=>oot(oot({},e),t)})(Hmt||={}),Y(dI,`inject`),Umt=Symbol(`isProxy`),Y(fI,`_inject`),Wmt=Symbol(),Y(aot,`_resolve`),Y(oot,`_merge`),Gmt=class{static{Y(this,`EmptyFileSystemProvider`)}stat(e){throw Error(`No file system is available.`)}statSync(e){throw Error(`No file system is available.`)}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error(`No file system is available.`)}readBinarySync(){throw Error(`No file system is available.`)}readFile(){throw Error(`No file system is available.`)}readFileSync(){throw Error(`No file system is available.`)}async readDirectory(){return[]}readDirectorySync(){return[]}},sV={fileSystemProvider:Y(()=>new Gmt,`fileSystemProvider`)},Kmt={Grammar:Y(()=>void 0,`Grammar`),LanguageMetaData:Y(()=>({caseInsensitive:!1,fileExtensions:[`.langium`],languageId:`langium`}),`LanguageMetaData`)},qmt={AstReflection:Y(()=>new UL,`AstReflection`)},Y(sot,`createMinimalGrammarServices`),Y(pI,`loadGrammarFromJson`),(e=>{e.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:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(cV||={}),(e=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,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]*/}})(Jmt||={}),(e=>{e.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]*/}})(Ymt||={}),(e=>{e.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])?/}})(lV||={}),(e=>{e.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]*/}})(Xmt||={}),(e=>{e.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]*/}})(Zmt||={}),(e=>{e.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]*/}})(Qmt||={}),(e=>{e.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]*/}})($mt||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(eht||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(tht||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(uV||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(dV||={}),(e=>{e.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:/"[^"]*"|'[^']*'/}})(nht||={}),(e=>{e.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]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(rht||={}),(e=>{e.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]*/}})(fV||={}),{...cV.Terminals,...Jmt.Terminals,...Ymt.Terminals,...lV.Terminals,...Xmt.Terminals,...Zmt.Terminals,...Qmt.Terminals,...$mt.Terminals,...eht.Terminals,...tht.Terminals,...uV.Terminals,...dV.Terminals,...rht.Terminals,...nht.Terminals,...fV.Terminals},iht={$type:`AbnfAlternation`,alternatives:`alternatives`},aht={$type:`AbnfConcatenation`,elements:`elements`},pV={$type:`AbnfElement`,primary:`primary`,repeat:`repeat`},oht={$type:`AbnfGroup`,element:`element`},sht={$type:`AbnfNumVal`,value:`value`},cht={$type:`AbnfOptionalGroup`,element:`element`},mV={$type:`AbnfPrimary`},lht={$type:`AbnfRule`,definition:`definition`,name:`name`},uht={$type:`AbnfRuleName`,name:`name`},dht={$type:`AbnfStringLiteral`,value:`value`},fht={$type:`Accelerator`,name:`name`,x:`x`,y:`y`},pht={$type:`Alignment`,direction:`direction`,members:`members`},mht={$type:`Anchor`,evolution:`evolution`,name:`name`,visibility:`visibility`},hV={$type:`Annotation`,number:`number`,text:`text`,x:`x`,y:`y`},gV={$type:`Annotations`,x:`x`,y:`y`},_V={$type:`Architecture`,accDescr:`accDescr`,accTitle:`accTitle`,alignments:`alignments`,edges:`edges`,groups:`groups`,junctions:`junctions`,services:`services`,title:`title`},Y(cot,`isArchitecture`),vV={$type:`Axis`,label:`label`,name:`name`},yV={$type:`Branch`,name:`name`,order:`order`},Y(lot,`isBranch`),hht={$type:`Checkout`,branch:`branch`},bV={$type:`CherryPicking`,id:`id`,parent:`parent`,tags:`tags`},ght={$type:`ClassDefStatement`,className:`className`,styleText:`styleText`},xV={$type:`Commit`,id:`id`,message:`message`,tags:`tags`,type:`type`},Y(uot,`isCommit`),SV={$type:`Common`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},CV={$type:`Component`,decorator:`decorator`,evolution:`evolution`,inertia:`inertia`,label:`label`,name:`name`,visibility:`visibility`},wV={$type:`Curve`,entries:`entries`,label:`label`,name:`name`},TV={$type:`Cynefin`,accDescr:`accDescr`,accTitle:`accTitle`,domains:`domains`,title:`title`,transitions:`transitions`},Y(dot,`isCynefin`),EV={$type:`Deaccelerator`,name:`name`,x:`x`,y:`y`},DV={$type:`Decorator`,strategy:`strategy`},OV={$type:`Direction`,accDescr:`accDescr`,accTitle:`accTitle`,dir:`dir`,statements:`statements`,title:`title`},kV={$type:`DomainBlock`,domain:`domain`,items:`items`},Y(fot,`isDomainBlock`),AV={$type:`DomainItem`,label:`label`},Y(pot,`isDomainItem`),jV={$type:`EbnfChoice`,alternatives:`alternatives`},_ht={$type:`EbnfExceptionPostfix`,except:`except`},vht={$type:`EbnfGroup`,element:`element`},MV={$type:`EbnfNonTerminal`,name:`name`},NV={$type:`EbnfOneOrMorePostfix`,operator:`operator`},PV={$type:`EbnfOptional`,element:`element`},FV={$type:`EbnfOptionalPostfix`,operator:`operator`},IV={$type:`EbnfPostfix`},LV={$type:`EbnfPrimary`},yht={$type:`EbnfRepetition`,element:`element`},RV={$type:`EbnfRule`,definition:`definition`,name:`name`},bht={$type:`EbnfSequence`,elements:`elements`},zV={$type:`EbnfSpecial`,text:`text`},BV={$type:`EbnfTerm`,base:`base`,postfixes:`postfixes`},xht={$type:`EbnfTerminal`,value:`value`},Sht={$type:`EbnfZeroOrMorePostfix`,operator:`operator`},VV={$type:`Edge`,lhsDir:`lhsDir`,lhsGroup:`lhsGroup`,lhsId:`lhsId`,lhsInto:`lhsInto`,rhsDir:`rhsDir`,rhsGroup:`rhsGroup`,rhsId:`rhsId`,rhsInto:`rhsInto`,title:`title`},HV={$type:`EmDataEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,name:`name`},UV={$type:`EmFrame`},WV={$type:`EmGwt`,givenStatements:`givenStatements`,sourceFrame:`sourceFrame`,thenStatements:`thenStatements`,whenStatements:`whenStatements`},GV={$type:`EmGwtStatement`,entityIdentifier:`entityIdentifier`},KV={$type:`EmModelEntity`,name:`name`},Y(mot,`isEmModelEntityType`),qV={$type:`EmNoteEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,sourceFrame:`sourceFrame`},JV={$type:`EmResetFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},Y(hot,`isEmResetFrame`),YV={$type:`EmTimeFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},XV={$type:`Entry`,axis:`axis`,value:`value`},ZV={$type:`EventModel`,accDescr:`accDescr`,accTitle:`accTitle`,dataEntities:`dataEntities`,frames:`frames`,gwtEntities:`gwtEntities`,modelEntities:`modelEntities`,noteEntities:`noteEntities`,title:`title`},Cht={$type:`Evolution`,stages:`stages`},QV={$type:`EvolutionStage`,boundary:`boundary`,name:`name`,secondName:`secondName`},$V={$type:`Evolve`,component:`component`,target:`target`},eH={$type:`GitGraph`,accDescr:`accDescr`,accTitle:`accTitle`,statements:`statements`,title:`title`},Y(mI,`isGitGraph`),tH={$type:`Group`,icon:`icon`,id:`id`,in:`in`,title:`title`},nH={$type:`Info`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},Y(got,`isInfo`),rH={$type:`Item`,classSelector:`classSelector`,name:`name`},iH={$type:`Junction`,id:`id`,in:`in`},aH={$type:`Label`,negX:`negX`,negY:`negY`,offsetX:`offsetX`,offsetY:`offsetY`},oH={$type:`Leaf`,classSelector:`classSelector`,name:`name`,value:`value`},sH={$type:`Link`,arrow:`arrow`,from:`from`,fromPort:`fromPort`,linkLabel:`linkLabel`,to:`to`,toPort:`toPort`},cH={$type:`Merge`,branch:`branch`,id:`id`,tags:`tags`,type:`type`},Y(_ot,`isMerge`),lH={$type:`Note`,evolution:`evolution`,text:`text`,visibility:`visibility`},uH={$type:`Option`,name:`name`,value:`value`},dH={$type:`Packet`,accDescr:`accDescr`,accTitle:`accTitle`,blocks:`blocks`,title:`title`},Y(vot,`isPacket`),fH={$type:`PacketBlock`,bits:`bits`,end:`end`,label:`label`,start:`start`},Y(yot,`isPacketBlock`),pH={$type:`PegAny`,dot:`dot`},mH={$type:`PegGroup`,element:`element`},hH={$type:`PegIdentifier`,name:`name`},gH={$type:`PegLiteral`,value:`value`},_H={$type:`PegOrderedChoice`,alternatives:`alternatives`},vH={$type:`PegPrefix`,operator:`operator`,suffix:`suffix`},yH={$type:`PegPrimary`},bH={$type:`PegRule`,definition:`definition`,name:`name`},wht={$type:`PegSequence`,elements:`elements`},Tht={$type:`PegSuffix`,operator:`operator`,primary:`primary`},xH={$type:`Pie`,accDescr:`accDescr`,accTitle:`accTitle`,sections:`sections`,showData:`showData`,title:`title`},Y(bot,`isPie`),SH={$type:`PieSection`,label:`label`,value:`value`},Y(xot,`isPieSection`),Eht={$type:`Pipeline`,components:`components`,parent:`parent`},CH={$type:`PipelineComponent`,evolution:`evolution`,label:`label`,name:`name`},wH={$type:`Radar`,accDescr:`accDescr`,accTitle:`accTitle`,axes:`axes`,curves:`curves`,options:`options`,title:`title`},TH={$type:`Railroad`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(hI,`isRailroad`),EH={$type:`RailroadAbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(Sot,`isRailroadAbnf`),DH={$type:`RailroadChoiceExpr`,alternatives:`alternatives`},OH={$type:`RailroadEbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(Cot,`isRailroadEbnf`),kH={$type:`RailroadExpression`},AH={$type:`RailroadNonTerminalExpr`,name:`name`},jH={$type:`RailroadOneOrMoreExpr`,element:`element`},MH={$type:`RailroadOptionalExpr`,element:`element`},NH={$type:`RailroadPeg`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(gI,`isRailroadPeg`),PH={$type:`RailroadRule`,definition:`definition`,name:`name`},FH={$type:`RailroadSequenceExpr`,elements:`elements`},IH={$type:`RailroadSpecialExpr`,text:`text`},LH={$type:`RailroadTerminalExpr`,value:`value`},RH={$type:`RailroadZeroOrMoreExpr`,element:`element`},zH={$type:`Section`,classSelector:`classSelector`,name:`name`},BH={$type:`Service`,icon:`icon`,iconText:`iconText`,id:`id`,in:`in`,title:`title`},VH={$type:`Size`,height:`height`,width:`width`},HH={$type:`Statement`},UH={$type:`Transition`,from:`from`,label:`label`,to:`to`},Y(wot,`isTransition`),WH={$type:`Treemap`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`,TreemapRows:`TreemapRows`},Y(Tot,`isTreemap`),GH={$type:`TreemapRow`,indent:`indent`,item:`item`},KH={$type:`TreeNode`,classAnnotation:`classAnnotation`,descAnnotation:`descAnnotation`,iconAnnotation:`iconAnnotation`,indent:`indent`,name:`name`},qH={$type:`TreeView`,accDescr:`accDescr`,accTitle:`accTitle`,nodes:`nodes`,title:`title`},JH={$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`},Y(Eot,`isWardley`),YH=class extends Cct{constructor(){super(...arguments),this.types={AbnfAlternation:{name:iht.$type,properties:{alternatives:{name:iht.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:aht.$type,properties:{elements:{name:aht.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:pV.$type,properties:{primary:{name:pV.primary},repeat:{name:pV.repeat,optional:!0}},superTypes:[]},AbnfGroup:{name:oht.$type,properties:{element:{name:oht.element}},superTypes:[mV.$type]},AbnfNumVal:{name:sht.$type,properties:{value:{name:sht.value}},superTypes:[mV.$type]},AbnfOptionalGroup:{name:cht.$type,properties:{element:{name:cht.element}},superTypes:[mV.$type]},AbnfPrimary:{name:mV.$type,properties:{},superTypes:[]},AbnfRule:{name:lht.$type,properties:{definition:{name:lht.definition},name:{name:lht.name}},superTypes:[]},AbnfRuleName:{name:uht.$type,properties:{name:{name:uht.name}},superTypes:[mV.$type]},AbnfStringLiteral:{name:dht.$type,properties:{value:{name:dht.value}},superTypes:[mV.$type]},Accelerator:{name:fht.$type,properties:{name:{name:fht.name},x:{name:fht.x},y:{name:fht.y}},superTypes:[]},Alignment:{name:pht.$type,properties:{direction:{name:pht.direction},members:{name:pht.members,defaultValue:[]}},superTypes:[]},Anchor:{name:mht.$type,properties:{evolution:{name:mht.evolution},name:{name:mht.name},visibility:{name:mht.visibility}},superTypes:[]},Annotation:{name:hV.$type,properties:{number:{name:hV.number},text:{name:hV.text},x:{name:hV.x},y:{name:hV.y}},superTypes:[]},Annotations:{name:gV.$type,properties:{x:{name:gV.x},y:{name:gV.y}},superTypes:[]},Architecture:{name:_V.$type,properties:{accDescr:{name:_V.accDescr,optional:!0},accTitle:{name:_V.accTitle,optional:!0},alignments:{name:_V.alignments,defaultValue:[],optional:!0},edges:{name:_V.edges,defaultValue:[],optional:!0},groups:{name:_V.groups,defaultValue:[],optional:!0},junctions:{name:_V.junctions,defaultValue:[],optional:!0},services:{name:_V.services,defaultValue:[],optional:!0},title:{name:_V.title,optional:!0}},superTypes:[]},Axis:{name:vV.$type,properties:{label:{name:vV.label,optional:!0},name:{name:vV.name}},superTypes:[]},Branch:{name:yV.$type,properties:{name:{name:yV.name},order:{name:yV.order}},superTypes:[HH.$type]},Checkout:{name:hht.$type,properties:{branch:{name:hht.branch}},superTypes:[HH.$type]},CherryPicking:{name:bV.$type,properties:{id:{name:bV.id},parent:{name:bV.parent},tags:{name:bV.tags,defaultValue:[]}},superTypes:[HH.$type]},ClassDefStatement:{name:ght.$type,properties:{className:{name:ght.className},styleText:{name:ght.styleText}},superTypes:[]},Commit:{name:xV.$type,properties:{id:{name:xV.id},message:{name:xV.message},tags:{name:xV.tags,defaultValue:[]},type:{name:xV.type}},superTypes:[HH.$type]},Common:{name:SV.$type,properties:{accDescr:{name:SV.accDescr,optional:!0},accTitle:{name:SV.accTitle,optional:!0},title:{name:SV.title,optional:!0}},superTypes:[]},Component:{name:CV.$type,properties:{decorator:{name:CV.decorator,optional:!0},evolution:{name:CV.evolution},inertia:{name:CV.inertia,defaultValue:!1},label:{name:CV.label,optional:!0},name:{name:CV.name},visibility:{name:CV.visibility}},superTypes:[]},Curve:{name:wV.$type,properties:{entries:{name:wV.entries,defaultValue:[]},label:{name:wV.label,optional:!0},name:{name:wV.name}},superTypes:[]},Cynefin:{name:TV.$type,properties:{accDescr:{name:TV.accDescr,optional:!0},accTitle:{name:TV.accTitle,optional:!0},domains:{name:TV.domains,defaultValue:[],optional:!0},title:{name:TV.title,optional:!0},transitions:{name:TV.transitions,defaultValue:[],optional:!0}},superTypes:[]},Deaccelerator:{name:EV.$type,properties:{name:{name:EV.name},x:{name:EV.x},y:{name:EV.y}},superTypes:[]},Decorator:{name:DV.$type,properties:{strategy:{name:DV.strategy}},superTypes:[]},Direction:{name:OV.$type,properties:{accDescr:{name:OV.accDescr},accTitle:{name:OV.accTitle},dir:{name:OV.dir},statements:{name:OV.statements,defaultValue:[]},title:{name:OV.title}},superTypes:[eH.$type]},DomainBlock:{name:kV.$type,properties:{domain:{name:kV.domain},items:{name:kV.items,defaultValue:[],optional:!0}},superTypes:[]},DomainItem:{name:AV.$type,properties:{label:{name:AV.label}},superTypes:[]},EbnfChoice:{name:jV.$type,properties:{alternatives:{name:jV.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:_ht.$type,properties:{except:{name:_ht.except}},superTypes:[IV.$type]},EbnfGroup:{name:vht.$type,properties:{element:{name:vht.element}},superTypes:[LV.$type]},EbnfNonTerminal:{name:MV.$type,properties:{name:{name:MV.name}},superTypes:[LV.$type]},EbnfOneOrMorePostfix:{name:NV.$type,properties:{operator:{name:NV.operator}},superTypes:[IV.$type]},EbnfOptional:{name:PV.$type,properties:{element:{name:PV.element}},superTypes:[LV.$type]},EbnfOptionalPostfix:{name:FV.$type,properties:{operator:{name:FV.operator}},superTypes:[IV.$type]},EbnfPostfix:{name:IV.$type,properties:{},superTypes:[]},EbnfPrimary:{name:LV.$type,properties:{},superTypes:[]},EbnfRepetition:{name:yht.$type,properties:{element:{name:yht.element}},superTypes:[LV.$type]},EbnfRule:{name:RV.$type,properties:{definition:{name:RV.definition},name:{name:RV.name}},superTypes:[]},EbnfSequence:{name:bht.$type,properties:{elements:{name:bht.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:zV.$type,properties:{text:{name:zV.text}},superTypes:[LV.$type]},EbnfTerm:{name:BV.$type,properties:{base:{name:BV.base},postfixes:{name:BV.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:xht.$type,properties:{value:{name:xht.value}},superTypes:[LV.$type]},EbnfZeroOrMorePostfix:{name:Sht.$type,properties:{operator:{name:Sht.operator}},superTypes:[IV.$type]},Edge:{name:VV.$type,properties:{lhsDir:{name:VV.lhsDir},lhsGroup:{name:VV.lhsGroup,defaultValue:!1,optional:!0},lhsId:{name:VV.lhsId},lhsInto:{name:VV.lhsInto,defaultValue:!1,optional:!0},rhsDir:{name:VV.rhsDir},rhsGroup:{name:VV.rhsGroup,defaultValue:!1,optional:!0},rhsId:{name:VV.rhsId},rhsInto:{name:VV.rhsInto,defaultValue:!1,optional:!0},title:{name:VV.title,optional:!0}},superTypes:[]},EmDataEntity:{name:HV.$type,properties:{dataBlockValue:{name:HV.dataBlockValue},dataType:{name:HV.dataType,optional:!0},name:{name:HV.name}},superTypes:[]},EmFrame:{name:UV.$type,properties:{},superTypes:[]},EmGwt:{name:WV.$type,properties:{givenStatements:{name:WV.givenStatements,defaultValue:[]},sourceFrame:{name:WV.sourceFrame,referenceType:UV.$type},thenStatements:{name:WV.thenStatements,defaultValue:[]},whenStatements:{name:WV.whenStatements,defaultValue:[],optional:!0}},superTypes:[]},EmGwtStatement:{name:GV.$type,properties:{entityIdentifier:{name:GV.entityIdentifier,referenceType:KV.$type}},superTypes:[]},EmModelEntity:{name:KV.$type,properties:{name:{name:KV.name}},superTypes:[]},EmNoteEntity:{name:qV.$type,properties:{dataBlockValue:{name:qV.dataBlockValue},dataType:{name:qV.dataType,optional:!0},sourceFrame:{name:qV.sourceFrame,referenceType:UV.$type}},superTypes:[]},EmResetFrame:{name:JV.$type,properties:{dataInlineValue:{name:JV.dataInlineValue,optional:!0},dataReference:{name:JV.dataReference,referenceType:HV.$type,optional:!0},dataType:{name:JV.dataType,optional:!0},entityIdentifier:{name:JV.entityIdentifier},modelEntityType:{name:JV.modelEntityType},name:{name:JV.name},sourceFrames:{name:JV.sourceFrames,defaultValue:[],referenceType:UV.$type,optional:!0}},superTypes:[UV.$type]},EmTimeFrame:{name:YV.$type,properties:{dataInlineValue:{name:YV.dataInlineValue,optional:!0},dataReference:{name:YV.dataReference,referenceType:HV.$type,optional:!0},dataType:{name:YV.dataType,optional:!0},entityIdentifier:{name:YV.entityIdentifier},modelEntityType:{name:YV.modelEntityType},name:{name:YV.name},sourceFrames:{name:YV.sourceFrames,defaultValue:[],referenceType:UV.$type,optional:!0}},superTypes:[UV.$type]},Entry:{name:XV.$type,properties:{axis:{name:XV.axis,referenceType:vV.$type,optional:!0},value:{name:XV.value}},superTypes:[]},EventModel:{name:ZV.$type,properties:{accDescr:{name:ZV.accDescr,optional:!0},accTitle:{name:ZV.accTitle,optional:!0},dataEntities:{name:ZV.dataEntities,defaultValue:[],optional:!0},frames:{name:ZV.frames,defaultValue:[],optional:!0},gwtEntities:{name:ZV.gwtEntities,defaultValue:[],optional:!0},modelEntities:{name:ZV.modelEntities,defaultValue:[],optional:!0},noteEntities:{name:ZV.noteEntities,defaultValue:[],optional:!0},title:{name:ZV.title,optional:!0}},superTypes:[]},Evolution:{name:Cht.$type,properties:{stages:{name:Cht.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:QV.$type,properties:{boundary:{name:QV.boundary,optional:!0},name:{name:QV.name},secondName:{name:QV.secondName,optional:!0}},superTypes:[]},Evolve:{name:$V.$type,properties:{component:{name:$V.component},target:{name:$V.target}},superTypes:[]},GitGraph:{name:eH.$type,properties:{accDescr:{name:eH.accDescr},accTitle:{name:eH.accTitle},statements:{name:eH.statements,defaultValue:[]},title:{name:eH.title}},superTypes:[]},Group:{name:tH.$type,properties:{icon:{name:tH.icon,optional:!0},id:{name:tH.id},in:{name:tH.in},title:{name:tH.title,optional:!0}},superTypes:[]},Info:{name:nH.$type,properties:{accDescr:{name:nH.accDescr,optional:!0},accTitle:{name:nH.accTitle,optional:!0},title:{name:nH.title,optional:!0}},superTypes:[]},Item:{name:rH.$type,properties:{classSelector:{name:rH.classSelector,optional:!0},name:{name:rH.name}},superTypes:[]},Junction:{name:iH.$type,properties:{id:{name:iH.id},in:{name:iH.in}},superTypes:[]},Label:{name:aH.$type,properties:{negX:{name:aH.negX,defaultValue:!1,optional:!0},negY:{name:aH.negY,defaultValue:!1,optional:!0},offsetX:{name:aH.offsetX},offsetY:{name:aH.offsetY}},superTypes:[]},Leaf:{name:oH.$type,properties:{classSelector:{name:oH.classSelector,optional:!0},name:{name:oH.name},value:{name:oH.value}},superTypes:[rH.$type]},Link:{name:sH.$type,properties:{arrow:{name:sH.arrow,optional:!0},from:{name:sH.from},fromPort:{name:sH.fromPort,optional:!0},linkLabel:{name:sH.linkLabel,optional:!0},to:{name:sH.to},toPort:{name:sH.toPort,optional:!0}},superTypes:[]},Merge:{name:cH.$type,properties:{branch:{name:cH.branch},id:{name:cH.id},tags:{name:cH.tags,defaultValue:[]},type:{name:cH.type}},superTypes:[HH.$type]},Note:{name:lH.$type,properties:{evolution:{name:lH.evolution},text:{name:lH.text},visibility:{name:lH.visibility}},superTypes:[]},Option:{name:uH.$type,properties:{name:{name:uH.name},value:{name:uH.value,defaultValue:!1}},superTypes:[]},Packet:{name:dH.$type,properties:{accDescr:{name:dH.accDescr,optional:!0},accTitle:{name:dH.accTitle,optional:!0},blocks:{name:dH.blocks,defaultValue:[],optional:!0},title:{name:dH.title,optional:!0}},superTypes:[]},PacketBlock:{name:fH.$type,properties:{bits:{name:fH.bits},end:{name:fH.end,optional:!0},label:{name:fH.label},start:{name:fH.start}},superTypes:[]},PegAny:{name:pH.$type,properties:{dot:{name:pH.dot}},superTypes:[yH.$type]},PegGroup:{name:mH.$type,properties:{element:{name:mH.element}},superTypes:[yH.$type]},PegIdentifier:{name:hH.$type,properties:{name:{name:hH.name}},superTypes:[yH.$type]},PegLiteral:{name:gH.$type,properties:{value:{name:gH.value}},superTypes:[yH.$type]},PegOrderedChoice:{name:_H.$type,properties:{alternatives:{name:_H.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:vH.$type,properties:{operator:{name:vH.operator,optional:!0},suffix:{name:vH.suffix}},superTypes:[]},PegPrimary:{name:yH.$type,properties:{},superTypes:[]},PegRule:{name:bH.$type,properties:{definition:{name:bH.definition},name:{name:bH.name}},superTypes:[]},PegSequence:{name:wht.$type,properties:{elements:{name:wht.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:Tht.$type,properties:{operator:{name:Tht.operator,optional:!0},primary:{name:Tht.primary}},superTypes:[]},Pie:{name:xH.$type,properties:{accDescr:{name:xH.accDescr,optional:!0},accTitle:{name:xH.accTitle,optional:!0},sections:{name:xH.sections,defaultValue:[],optional:!0},showData:{name:xH.showData,defaultValue:!1,optional:!0},title:{name:xH.title,optional:!0}},superTypes:[]},PieSection:{name:SH.$type,properties:{label:{name:SH.label},value:{name:SH.value}},superTypes:[]},Pipeline:{name:Eht.$type,properties:{components:{name:Eht.components,defaultValue:[]},parent:{name:Eht.parent}},superTypes:[]},PipelineComponent:{name:CH.$type,properties:{evolution:{name:CH.evolution},label:{name:CH.label,optional:!0},name:{name:CH.name}},superTypes:[]},Radar:{name:wH.$type,properties:{accDescr:{name:wH.accDescr,optional:!0},accTitle:{name:wH.accTitle,optional:!0},axes:{name:wH.axes,defaultValue:[],optional:!0},curves:{name:wH.curves,defaultValue:[],optional:!0},options:{name:wH.options,defaultValue:[],optional:!0},title:{name:wH.title,optional:!0}},superTypes:[]},Railroad:{name:TH.$type,properties:{accDescr:{name:TH.accDescr,optional:!0},accTitle:{name:TH.accTitle,optional:!0},rules:{name:TH.rules,defaultValue:[]},title:{name:TH.title,optional:!0}},superTypes:[]},RailroadAbnf:{name:EH.$type,properties:{accDescr:{name:EH.accDescr,optional:!0},accTitle:{name:EH.accTitle,optional:!0},rules:{name:EH.rules,defaultValue:[]},title:{name:EH.title,optional:!0}},superTypes:[]},RailroadChoiceExpr:{name:DH.$type,properties:{alternatives:{name:DH.alternatives,defaultValue:[]}},superTypes:[kH.$type]},RailroadEbnf:{name:OH.$type,properties:{accDescr:{name:OH.accDescr,optional:!0},accTitle:{name:OH.accTitle,optional:!0},rules:{name:OH.rules,defaultValue:[]},title:{name:OH.title,optional:!0}},superTypes:[]},RailroadExpression:{name:kH.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:AH.$type,properties:{name:{name:AH.name}},superTypes:[kH.$type]},RailroadOneOrMoreExpr:{name:jH.$type,properties:{element:{name:jH.element}},superTypes:[kH.$type]},RailroadOptionalExpr:{name:MH.$type,properties:{element:{name:MH.element}},superTypes:[kH.$type]},RailroadPeg:{name:NH.$type,properties:{accDescr:{name:NH.accDescr,optional:!0},accTitle:{name:NH.accTitle,optional:!0},rules:{name:NH.rules,defaultValue:[]},title:{name:NH.title,optional:!0}},superTypes:[]},RailroadRule:{name:PH.$type,properties:{definition:{name:PH.definition},name:{name:PH.name}},superTypes:[]},RailroadSequenceExpr:{name:FH.$type,properties:{elements:{name:FH.elements,defaultValue:[]}},superTypes:[kH.$type]},RailroadSpecialExpr:{name:IH.$type,properties:{text:{name:IH.text}},superTypes:[kH.$type]},RailroadTerminalExpr:{name:LH.$type,properties:{value:{name:LH.value}},superTypes:[kH.$type]},RailroadZeroOrMoreExpr:{name:RH.$type,properties:{element:{name:RH.element}},superTypes:[kH.$type]},Section:{name:zH.$type,properties:{classSelector:{name:zH.classSelector,optional:!0},name:{name:zH.name}},superTypes:[rH.$type]},Service:{name:BH.$type,properties:{icon:{name:BH.icon,optional:!0},iconText:{name:BH.iconText,optional:!0},id:{name:BH.id},in:{name:BH.in},title:{name:BH.title,optional:!0}},superTypes:[]},Size:{name:VH.$type,properties:{height:{name:VH.height},width:{name:VH.width}},superTypes:[]},Statement:{name:HH.$type,properties:{},superTypes:[]},Transition:{name:UH.$type,properties:{from:{name:UH.from},label:{name:UH.label},to:{name:UH.to}},superTypes:[]},TreeNode:{name:KH.$type,properties:{classAnnotation:{name:KH.classAnnotation,optional:!0},descAnnotation:{name:KH.descAnnotation,optional:!0},iconAnnotation:{name:KH.iconAnnotation,optional:!0},indent:{name:KH.indent,optional:!0},name:{name:KH.name}},superTypes:[]},TreeView:{name:qH.$type,properties:{accDescr:{name:qH.accDescr,optional:!0},accTitle:{name:qH.accTitle,optional:!0},nodes:{name:qH.nodes,defaultValue:[]},title:{name:qH.title,optional:!0}},superTypes:[]},Treemap:{name:WH.$type,properties:{accDescr:{name:WH.accDescr,optional:!0},accTitle:{name:WH.accTitle,optional:!0},title:{name:WH.title,optional:!0},TreemapRows:{name:WH.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:GH.$type,properties:{indent:{name:GH.indent,optional:!0},item:{name:GH.item}},superTypes:[]},Wardley:{name:JH.$type,properties:{accDescr:{name:JH.accDescr,optional:!0},accelerators:{name:JH.accelerators,defaultValue:[],optional:!0},accTitle:{name:JH.accTitle,optional:!0},anchors:{name:JH.anchors,defaultValue:[],optional:!0},annotation:{name:JH.annotation,defaultValue:[],optional:!0},annotations:{name:JH.annotations,defaultValue:[],optional:!0},components:{name:JH.components,defaultValue:[],optional:!0},deaccelerators:{name:JH.deaccelerators,defaultValue:[],optional:!0},evolution:{name:JH.evolution,optional:!0},evolves:{name:JH.evolves,defaultValue:[],optional:!0},links:{name:JH.links,defaultValue:[],optional:!0},notes:{name:JH.notes,defaultValue:[],optional:!0},pipelines:{name:JH.pipelines,defaultValue:[],optional:!0},size:{name:JH.size,optional:!0},title:{name:JH.title,optional:!0}},superTypes:[]}}}static{Y(this,`MermaidAstReflection`)}},XH=new YH,Dht=Y(()=>ZH??=pI(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"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":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"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@10"},"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@10"},"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@12"},"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@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@24"},"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@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"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":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`ArchitectureGrammarGrammar`),kht=Y(()=>Oht??=pI(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"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":[]}`),`CynefinGrammarGrammar`),jht=Y(()=>Aht??=pI('{"$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`),Nht=Y(()=>Mht??=pI(`{"$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`),Fht=Y(()=>Pht??=pI(`{"$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`),Iht=Y(()=>QH??=pI(`{"$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`),eU=Y(()=>$H??=pI(`{"$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`),tU=Y(()=>Lht??=pI(`{"$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`),rU=Y(()=>nU??=pI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadAbnfGrammarGrammar`),iU=Y(()=>Rht??=pI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadEbnfGrammarGrammar`),oU=Y(()=>aU??=pI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadGrammarGrammar`),sU=Y(()=>zht??=pI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadPegGrammarGrammar`),cU=Y(()=>Bht??=pI(`{"$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`),uU=Y(()=>lU??=pI(`{"$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@14"},"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":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","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":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"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 *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),`TreeViewGrammarGrammar`),Hht=Y(()=>Vht??=pI(`{"$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`),Uht={languageId:`architecture`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Wht={languageId:`cynefin`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},dU={languageId:`eventmodeling`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Ght={languageId:`gitGraph`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Kht={languageId:`info`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},qht={languageId:`packet`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Jht={languageId:`pie`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},fU={languageId:`radar`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Yht={languageId:`railroadAbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Xht={languageId:`railroadEbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},pU={languageId:`railroad`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Zht={languageId:`railroadPeg`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Qht={languageId:`treemap`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},$ht={languageId:`treeView`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},egt={languageId:`wardley`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},mU={AstReflection:Y(()=>new YH,`AstReflection`)},tgt={Grammar:Y(()=>Dht(),`Grammar`),LanguageMetaData:Y(()=>Uht,`LanguageMetaData`),parser:{}},ngt={Grammar:Y(()=>kht(),`Grammar`),LanguageMetaData:Y(()=>Wht,`LanguageMetaData`),parser:{}},rgt={Grammar:Y(()=>jht(),`Grammar`),LanguageMetaData:Y(()=>dU,`LanguageMetaData`),parser:{}},igt={Grammar:Y(()=>Nht(),`Grammar`),LanguageMetaData:Y(()=>Ght,`LanguageMetaData`),parser:{}},agt={Grammar:Y(()=>Fht(),`Grammar`),LanguageMetaData:Y(()=>Kht,`LanguageMetaData`),parser:{}},ogt={Grammar:Y(()=>Iht(),`Grammar`),LanguageMetaData:Y(()=>qht,`LanguageMetaData`),parser:{}},sgt={Grammar:Y(()=>eU(),`Grammar`),LanguageMetaData:Y(()=>Jht,`LanguageMetaData`),parser:{}},cgt={Grammar:Y(()=>tU(),`Grammar`),LanguageMetaData:Y(()=>fU,`LanguageMetaData`),parser:{}},lgt={Grammar:Y(()=>rU(),`Grammar`),LanguageMetaData:Y(()=>Yht,`LanguageMetaData`),parser:{}},hU={Grammar:Y(()=>iU(),`Grammar`),LanguageMetaData:Y(()=>Xht,`LanguageMetaData`),parser:{}},gU={Grammar:Y(()=>oU(),`Grammar`),LanguageMetaData:Y(()=>pU,`LanguageMetaData`),parser:{}},_U={Grammar:Y(()=>sU(),`Grammar`),LanguageMetaData:Y(()=>Zht,`LanguageMetaData`),parser:{}},vU={Grammar:Y(()=>cU(),`Grammar`),LanguageMetaData:Y(()=>Qht,`LanguageMetaData`),parser:{}},yU={Grammar:Y(()=>uU(),`Grammar`),LanguageMetaData:Y(()=>$ht,`LanguageMetaData`),parser:{}},bU={Grammar:Y(()=>Hht(),`Grammar`),LanguageMetaData:Y(()=>egt,`LanguageMetaData`),parser:{}},xU={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},SU=class extends SB{static{Y(this,`AbstractMermaidValueConverter`)}runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return r===void 0&&(r=this.runCustomConverter(e,t,n)),r===void 0?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){let r=xU[e.name];if(r===void 0)return;let i=r.exec(t);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,` -`)}}},CU=class extends SU{static{Y(this,`CommonValueConverter`)}runCustomConverter(e,t,n){}},wU=class extends xB{static{Y(this,`AbstractMermaidTokenBuilder`)}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}},class extends wU{static{Y(this,`CommonTokenBuilder`)}}}));function ugt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),cgt,fgt);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}var dgt,fgt,pgt=o((()=>{TU(),dgt=class extends wU{static{Y(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},fgt={parser:{TokenBuilder:Y(()=>new dgt,`TokenBuilder`),ValueConverter:Y(()=>new CU,`ValueConverter`)}},Y(ugt,`createRadarServices`)}));function mgt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),gU,_gt);return t.ServiceRegistry.register(n),{shared:t,Railroad:n}}var hgt,ggt,EU,_gt,vgt=o((()=>{TU(),hgt=class extends wU{static{Y(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},ggt=Y(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew hgt,`TokenBuilder`),ValueConverter:Y(()=>new EU,`ValueConverter`)}},Y(mgt,`createRailroadServices`)}));function ygt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),hU,Cgt);return t.ServiceRegistry.register(n),{shared:t,RailroadEbnf:n}}var bgt,xgt,Sgt,Cgt,wgt=o((()=>{TU(),bgt=class extends wU{static{Y(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},xgt=Y(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew bgt,`TokenBuilder`),ValueConverter:Y(()=>new Sgt,`ValueConverter`)}},Y(ygt,`createRailroadEbnfServices`)}));function DU(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),lgt,Dgt);return t.ServiceRegistry.register(n),{shared:t,RailroadAbnf:n}}var Tgt,Egt,Dgt,Ogt=o((()=>{TU(),Tgt=class extends wU{static{Y(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Egt=class extends SU{static{Y(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},Dgt={parser:{TokenBuilder:Y(()=>new Tgt,`TokenBuilder`),ValueConverter:Y(()=>new Egt,`ValueConverter`)}},Y(DU,`createRailroadAbnfServices`)}));function OU(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),_U,AU);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}var kgt,kU,Agt,AU,jgt=o((()=>{TU(),kgt=class extends wU{static{Y(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},kU=Y(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew kgt,`TokenBuilder`),ValueConverter:Y(()=>new Agt,`ValueConverter`)}},Y(OU,`createRailroadPegServices`)}));function Mgt(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}function Ngt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),vU,Rgt);return t.ServiceRegistry.register(n),Mgt(n),{shared:t,Treemap:n}}var Pgt,Fgt,Igt,Lgt,Rgt,zgt=o((()=>{TU(),Pgt=class extends wU{static{Y(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Fgt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Igt=class extends SU{static{Y(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Fgt.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}},Y(Mgt,`registerValidationChecks`),Lgt=class{static{Y(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Rgt={parser:{TokenBuilder:Y(()=>new Pgt,`TokenBuilder`),ValueConverter:Y(()=>new Igt,`ValueConverter`)},validation:{TreemapValidator:Y(()=>new Lgt,`TreemapValidator`)}},Y(Ngt,`createTreemapServices`)}));function jU(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),bU,NU);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}var MU,NU,Bgt=o((()=>{TU(),MU=class extends SU{static{Y(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},NU={parser:{ValueConverter:Y(()=>new MU,`ValueConverter`)}},Y(jU,`createWardleyServices`)}));function Vgt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),ngt,PU);return t.ServiceRegistry.register(n),{shared:t,Cynefin:n}}var Hgt,PU,Ugt=o((()=>{TU(),Hgt=class extends wU{static{Y(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},PU={parser:{TokenBuilder:Y(()=>new Hgt,`TokenBuilder`),ValueConverter:Y(()=>new CU,`ValueConverter`)}},Y(Vgt,`createCynefinServices`)}));function Wgt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),igt,FU);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}var Ggt,FU,IU=o((()=>{TU(),Ggt=class extends wU{static{Y(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},FU={parser:{TokenBuilder:Y(()=>new Ggt,`TokenBuilder`),ValueConverter:Y(()=>new CU,`ValueConverter`)}},Y(Wgt,`createGitGraphServices`)}));function Kgt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),agt,Jgt);return t.ServiceRegistry.register(n),{shared:t,Info:n}}var qgt,Jgt,Ygt=o((()=>{TU(),qgt=class extends wU{static{Y(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},Jgt={parser:{TokenBuilder:Y(()=>new qgt,`TokenBuilder`),ValueConverter:Y(()=>new CU,`ValueConverter`)}},Y(Kgt,`createInfoServices`)}));function Xgt(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),ogt,Qgt);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}var Zgt,Qgt,$gt=o((()=>{TU(),Zgt=class extends wU{static{Y(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},Qgt={parser:{TokenBuilder:Y(()=>new Zgt,`TokenBuilder`),ValueConverter:Y(()=>new CU,`ValueConverter`)}},Y(Xgt,`createPacketServices`)}));function e_t(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),sgt,LU);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}var t_t,n_t,LU,r_t=o((()=>{TU(),t_t=class extends wU{static{Y(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},n_t=class extends SU{static{Y(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},LU={parser:{TokenBuilder:Y(()=>new t_t,`TokenBuilder`),ValueConverter:Y(()=>new n_t,`ValueConverter`)}},Y(e_t,`createPieServices`)}));function i_t(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),yU,BU);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}var RU,zU,BU,VU=o((()=>{TU(),RU=class extends SU{static{Y(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},zU=class extends wU{static{Y(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},BU={parser:{TokenBuilder:Y(()=>new zU,`TokenBuilder`),ValueConverter:Y(()=>new RU,`ValueConverter`)}},Y(i_t,`createTreeViewServices`)}));function a_t(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),tgt,UU);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}var o_t,HU,UU,WU=o((()=>{TU(),o_t=class extends wU{static{Y(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},HU=class extends SU{static{Y(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},UU={parser:{TokenBuilder:Y(()=>new o_t,`TokenBuilder`),ValueConverter:Y(()=>new HU,`ValueConverter`)}},Y(a_t,`createArchitectureServices`)}));function GU(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}function s_t(e=sV){let t=dI(uI(e),mU),n=dI(lI({shared:t}),rgt,YU);return t.ServiceRegistry.register(n),GU(n),{shared:t,EventModel:n}}var c_t,l_t,KU,qU,u_t,JU,d_t,YU,f_t=o((()=>{TU(),c_t=class extends wU{static{Y(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},l_t=new Set([`cmd`,`command`]),KU=new Set([`evt`,`event`]),qU=new Set([`rmo`,`readmodel`]),u_t=new Set([`pcr`,`processor`]),JU=new Set([`ui`]),Y(GU,`registerValidationChecks`),d_t=class{static{Y(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(l_t.has(e.modelEntityType)?this.validateSources(e,new Set([...JU,...u_t]),`command`,`ui or processor`,t):KU.has(e.modelEntityType)?this.validateSources(e,l_t,`event`,`command`,t):qU.has(e.modelEntityType)?this.validateSources(e,KU,`read model`,`event`,t):u_t.has(e.modelEntityType)?this.validateSources(e,qU,`processor`,`read model`,t):JU.has(e.modelEntityType)&&this.validateSources(e,qU,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},YU={parser:{TokenBuilder:Y(()=>new c_t,`TokenBuilder`),ValueConverter:Y(()=>new CU,`ValueConverter`)},validation:{EventModelingValidator:Y(()=>new d_t,`EventModelingValidator`)}},Y(s_t,`createEventModelingServices`)})),p_t=l({InfoModule:()=>Jgt,createInfoServices:()=>Kgt}),m_t=o((()=>{Ygt(),TU()})),h_t=l({PacketModule:()=>Qgt,createPacketServices:()=>Xgt}),XU=o((()=>{$gt(),TU()})),g_t=l({PieModule:()=>LU,createPieServices:()=>e_t}),__t=o((()=>{r_t(),TU()})),v_t=l({TreeViewModule:()=>BU,createTreeViewServices:()=>i_t}),y_t=o((()=>{VU(),TU()})),b_t=l({ArchitectureModule:()=>UU,createArchitectureServices:()=>a_t}),ZU=o((()=>{WU(),TU()})),QU=l({GitGraphModule:()=>FU,createGitGraphServices:()=>Wgt}),x_t=o((()=>{IU(),TU()})),S_t=l({EventModelingModule:()=>YU,createEventModelingServices:()=>s_t}),C_t=o((()=>{f_t(),TU()})),w_t=l({RadarModule:()=>fgt,createRadarServices:()=>ugt}),T_t=o((()=>{pgt(),TU()})),E_t=l({RailroadModule:()=>_gt,createRailroadServices:()=>mgt}),D_t=o((()=>{vgt(),TU()})),O_t=l({RailroadEbnfModule:()=>Cgt,createRailroadEbnfServices:()=>ygt}),k_t=o((()=>{wgt(),TU()})),A_t=l({RailroadAbnfModule:()=>Dgt,createRailroadAbnfServices:()=>DU}),$U=o((()=>{Ogt(),TU()})),j_t=l({RailroadPegModule:()=>AU,createRailroadPegServices:()=>OU}),M_t=o((()=>{jgt(),TU()})),N_t=l({TreemapModule:()=>Rgt,createTreemapServices:()=>Ngt}),P_t=o((()=>{zgt(),TU()})),F_t=l({WardleyModule:()=>NU,createWardleyServices:()=>jU}),I_t=o((()=>{Bgt(),TU()})),L_t=l({CynefinModule:()=>PU,createCynefinServices:()=>Vgt}),R_t=o((()=>{Ugt(),TU()}));async function eW(e,t){let n=z_t[e];if(!n)throw Error(`Unknown diagram type: ${e}`);tW[e]||await n();let r=tW[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new rW(r);return r.value}var tW,z_t,nW,rW,iW=o((()=>{pgt(),vgt(),wgt(),Ogt(),jgt(),zgt(),Bgt(),Ugt(),IU(),Ygt(),$gt(),r_t(),VU(),WU(),f_t(),TU(),tW={},z_t={info:Y(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>(m_t(),p_t));tW.info=e().Info.parser.LangiumParser},`info`),packet:Y(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>(XU(),h_t));tW.packet=e().Packet.parser.LangiumParser},`packet`),pie:Y(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>(__t(),g_t));tW.pie=e().Pie.parser.LangiumParser},`pie`),treeView:Y(async()=>{let{createTreeViewServices:e}=await Promise.resolve().then(()=>(y_t(),v_t));tW.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:Y(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>(ZU(),b_t));tW.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:Y(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>(x_t(),QU));tW.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:Y(async()=>{let{createEventModelingServices:e}=await Promise.resolve().then(()=>(C_t(),S_t));tW.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:Y(async()=>{let{createRadarServices:e}=await Promise.resolve().then(()=>(T_t(),w_t));tW.radar=e().Radar.parser.LangiumParser},`radar`),railroad:Y(async()=>{let{createRailroadServices:e}=await Promise.resolve().then(()=>(D_t(),E_t));tW.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:Y(async()=>{let{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>(k_t(),O_t));tW.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:Y(async()=>{let{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>($U(),A_t));tW.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:Y(async()=>{let{createRailroadPegServices:e}=await Promise.resolve().then(()=>(M_t(),j_t));tW.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:Y(async()=>{let{createTreemapServices:e}=await Promise.resolve().then(()=>(P_t(),N_t));tW.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:Y(async()=>{let{createWardleyServices:e}=await Promise.resolve().then(()=>(I_t(),F_t));tW.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:Y(async()=>{let{createCynefinServices:e}=await Promise.resolve().then(()=>(R_t(),L_t));tW.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)},Y(eW,`parse`),nW=Y(e=>e!==void 0&&e>=0?e:`?`,`formatLocation`),rW=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${nW(e.line)}, column ${nW(e.column)}: ${e.message}`).join(` -`),n=e.parserErrors.map(e=>`Parse error on line ${nW(e.token.startLine)}, column ${nW(e.token.startColumn)}: ${e.message}`).join(` -`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{Y(this,`MermaidParseError`)}}})),aW=l({diagram:()=>Evt});function oW(){return dOe({length:7})}function B_t(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}function V_t(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}function sW(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in uW.records.branches)uW.records.branches.get(e)===t.id&&r.push(e);if(P.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=uW.records.commits.get(t.parents[0]);V_t(e,t,n),t.parents[1]&&e.push(uW.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=uW.records.commits.get(t.parents[0]);V_t(e,t,n)}e=B_t(e,e=>e.id),sW(e)}var cW,H_t,lW,uW,U_t,W_t,G_t,K_t,dW,q_t,J_t,Y_t,X_t,Z_t,Q_t,$_t,evt,fW,tvt,nvt,pW,mW,rvt,ivt,avt,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,ovt,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,svt,LW,cvt,RW,lvt,zW,uvt,dvt,fvt,pvt,mvt,hvt,gvt,BW,_vt,VW,vvt,yvt,HW,UW,bvt,WW,xvt,Svt,GW,Cvt,wvt,Tvt,Evt,Dvt=o((()=>{u9e(),sP(),Gm(),Ls(),ar(),tr(),iW(),Dp(),cW={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},H_t=Wo.gitGraph,lW=N(()=>Rm({...H_t,...ns().gitGraph}),`getConfig`),uW=new l9e(()=>{let e=lW(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}}),N(oW,`getID`),N(B_t,`uniqBy`),U_t=N(function(e){uW.records.direction=e},`setDirection`),W_t=N(function(e){P.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{uW.records.options=JSON.parse(e)}catch(e){P.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),G_t=N(function(){return uW.records.options},`getOptions`),K_t=N(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;P.info(`commit`,t,n,r,i),P.debug(`Entering commit:`,t,n,r,i);let a=lW();n=gs.sanitizeText(n,a),t=gs.sanitizeText(t,a),i=i?.map(e=>gs.sanitizeText(e,a));let o={id:n||uW.records.seq+`-`+oW(),message:t,seq:uW.records.seq++,type:r??cW.NORMAL,tags:i??[],parents:uW.records.head==null?[]:[uW.records.head.id],branch:uW.records.currBranch};uW.records.head=o,P.info(`main branch`,a.mainBranchName),uW.records.commits.has(o.id)&&P.warn(`Commit ID ${o.id} already exists`),uW.records.commits.set(o.id,o),uW.records.branches.set(uW.records.currBranch,o.id),P.debug(`in pushCommit `+o.id)},`commit`),dW=N(function(e){let t=e.name,n=e.order;if(t=gs.sanitizeText(t,lW()),uW.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);uW.records.branches.set(t,uW.records.head==null?null:uW.records.head.id),uW.records.branchConfig.set(t,{name:t,order:n}),Y_t(t),P.debug(`in createBranch`)},`branch`),q_t=N(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=lW();t=gs.sanitizeText(t,a),n&&=gs.sanitizeText(n,a);let o=uW.records.branches.get(uW.records.currBranch),s=uW.records.branches.get(t),l=o?uW.records.commits.get(o):void 0,u=s?uW.records.commits.get(s):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(uW.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${uW.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!uW.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&uW.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let d=s||``,f={id:n||`${uW.records.seq}-${oW()}`,message:`merged branch ${t} into ${uW.records.currBranch}`,seq:uW.records.seq++,parents:uW.records.head==null?[]:[uW.records.head.id,d],branch:uW.records.currBranch,type:cW.MERGE,customType:r,customId:!!n,tags:i??[]};uW.records.head=f,uW.records.commits.set(f.id,f),uW.records.branches.set(uW.records.currBranch,f.id),P.debug(uW.records.branches),P.debug(`in mergeBranch`)},`merge`),J_t=N(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;P.debug(`Entering cherryPick:`,t,n,r);let a=lW();if(t=gs.sanitizeText(t,a),n=gs.sanitizeText(n,a),r=r?.map(e=>gs.sanitizeText(e,a)),i=gs.sanitizeText(i,a),!t||!uW.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=uW.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===cW.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!uW.records.commits.has(n)){if(s===uW.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=uW.records.branches.get(uW.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${uW.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=uW.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${uW.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:uW.records.seq+`-`+oW(),message:`cherry-picked ${o?.message} into ${uW.records.currBranch}`,seq:uW.records.seq++,parents:uW.records.head==null?[]:[uW.records.head.id,o.id],branch:uW.records.currBranch,type:cW.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===cW.MERGE?`|parent:${i}`:``}`]};uW.records.head=l,uW.records.commits.set(l.id,l),uW.records.branches.set(uW.records.currBranch,l.id),P.debug(uW.records.branches),P.debug(`in cherryPick`)}},`cherryPick`),Y_t=N(function(e){if(e=gs.sanitizeText(e,lW()),uW.records.branches.has(e)){uW.records.currBranch=e;let t=uW.records.branches.get(uW.records.currBranch);t===void 0||!t?uW.records.head=null:uW.records.head=uW.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`),N(V_t,`upsert`),N(sW,`prettyPrintCommitHistory`),X_t=N(function(){P.debug(uW.records.commits);let e=fW()[0];sW([e])},`prettyPrint`),Z_t=N(function(){uW.reset(),Ss()},`clear`),Q_t=N(function(){return[...uW.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),$_t=N(function(){return uW.records.branches},`getBranches`),evt=N(function(){return uW.records.commits},`getCommits`),fW=N(function(){let e=[...uW.records.commits.values()];return e.forEach(function(e){P.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),tvt={commitType:cW,getConfig:lW,setDirection:U_t,setOptions:W_t,getOptions:G_t,commit:K_t,branch:dW,merge:q_t,cherryPick:J_t,checkout:Y_t,prettyPrint:X_t,clear:Z_t,getBranchesAsObjArray:Q_t,getBranches:$_t,getCommits:evt,getCommitsArray:fW,getCurrentBranch:N(function(){return uW.records.currBranch},`getCurrentBranch`),getDirection:N(function(){return uW.records.direction},`getDirection`),getHead:N(function(){return uW.records.head},`getHead`),setAccTitle:Cs,getAccTitle:ws,getAccDescription:Es,setAccDescription:Ts,setDiagramTitle:Ds,getDiagramTitle:Os},nvt=N((e,t)=>{oP(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)pW(n,t)},`populate`),pW=N((e,t)=>{let n={Commit:N(e=>t.commit(mW(e)),`Commit`),Branch:N(e=>t.branch(rvt(e)),`Branch`),Merge:N(e=>t.merge(ivt(e)),`Merge`),Checkout:N(e=>t.checkout(avt(e)),`Checkout`),CherryPicking:N(e=>t.cherryPick(hW(e)),`CherryPicking`)}[e.$type];n?n(e):P.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),mW=N(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?cW.NORMAL:cW[e.type],tags:e.tags??void 0}),`parseCommit`),rvt=N(e=>({name:e.name,order:e.order??0}),`parseBranch`),ivt=N(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:cW[e.type],tags:e.tags??void 0}),`parseMerge`),avt=N(e=>e.branch,`parseCheckout`),hW=N(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),gW={parse:N(async e=>{let t=await eW(`gitGraph`,e);P.debug(t),nvt(t,tvt)},`parse`)},_W=10,vW=40,yW=4,bW=2,xW=8,SW=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),CW=12,wW=new Set([`redux-color`,`redux-dark-color`]),ovt=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),TW=N((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),EW=new Map,DW=new Map,OW=30,kW=new Map,AW=[],jW=0,MW=`LR`,NW=N(()=>{EW.clear(),DW.clear(),kW.clear(),jW=0,AW=[],MW=`LR`},`clear`),PW=N(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),FW=N(e=>{let t,n,r;return MW===`BT`?(n=N((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=N((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=MW===`TB`||MW==`BT`?DW.get(e)?.y:DW.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),IW=N(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=DW.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),svt=N((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=cvt(n),i=Math.max(r,i)):a.push(n),RW(n,r)}),r=i,a.forEach(e=>{lvt(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=IW(n.parents);r=DW.get(e).y-vW,r<=i&&(i=r);let t=EW.get(n.branch).pos,a=r-_W;DW.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),LW=N(e=>{let t=FW(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=DW.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),cvt=N(e=>LW(e)+vW,`calculateCommitPosition`),RW=N((e,t)=>{let n=EW.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+_W;return DW.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),lvt=N((e,t,n)=>{let r=EW.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;DW.set(e.id,{x:a,y:i})},`setRootPosition`),zW=N((e,t,n,r,i,a)=>{let{theme:o}=As(),s=SW.has(o??``),l=wW.has(o??``),u=ovt.has(o??``);if(a===cW.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${TW(i,xW,l)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${TW(i,xW,l)} ${r}-inner`);else if(a===cW.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${TW(i,xW,l)}`),a===cW.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${TW(i,xW,l)}`)}if(a===cW.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${TW(i,xW,l)}`)}}},`drawCommitBullet`),uvt=N((e,t,n,r,i)=>{if(t.type!==cW.CHERRY_PICK&&(t.customId&&t.type===cW.MERGE||t.type!==cW.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),l=s.node()?.getBBox();if(l&&(o.attr(`x`,n.posWithOffset-l.width/2-bW).attr(`y`,n.y+13.5).attr(`width`,l.width+2*bW).attr(`height`,l.height+2*bW),MW===`TB`||MW===`BT`?(o.attr(`x`,n.x-(l.width+4*yW+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(l.width+4*yW)).attr(`y`,n.y+l.height-12)):s.attr(`x`,n.posWithOffset-l.width/2),i.rotateCommitLabel)){if(MW===`TB`||MW===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(l.width+10)/25*9.5,t=10+l.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),dvt=N((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),l=e.append(`circle`),u=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),d=u.node()?.getBBox();if(!d)throw Error(`Tag bbox not found`);a=Math.max(a,d.width),o=Math.max(o,d.height),u.attr(`x`,n.posWithOffset-d.width/2),s.push({tag:u,hole:l,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:l}of s){let s=o/2,u=n.y-19.2-l;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,` - ${r-a/2-yW/2},${u+bW} - ${r-a/2-yW/2},${u-bW} - ${n.posWithOffset-a/2-yW},${u-s-bW} - ${n.posWithOffset+a/2+yW},${u-s-bW} - ${n.posWithOffset+a/2+yW},${u+s+bW} - ${n.posWithOffset-a/2-yW},${u+s+bW}`),t.attr(`cy`,u).attr(`cx`,r-a/2+yW/2).attr(`r`,1.5).attr(`class`,`tag-hole`),MW===`TB`||MW===`BT`){let o=r+l;i.attr(`class`,`tag-label-bkg`).attr(`points`,` +`)}return t}},sV=class{static{Y(this,`JSDocLineImpl`)}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},Y(iot,`fillNewlines`),Bmt=class{static{Y(this,`JSDocDocumentationProvider`)}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&qat(t))return Kat(t).toMarkdown({renderLink:Y((t,n)=>this.documentationLinkRenderer(e,t,n),`renderLink`),renderTag:Y(t=>this.documentationTagRenderer(e,t),`renderTag`)})}documentationLinkRenderer(e,t,n){let r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){let e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=gP(e).localSymbols;if(!n)return;let r=e;do{let e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},cV=class{static{Y(this,`DefaultCommentProvider`)}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return Bat(e)?e.$comment:Q9e(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},Vmt=class{static{Y(this,`DefaultAsyncParser`)}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},(function(e){e[e.Normal=0]=`Normal`,e[e.Immediate=1]=`Immediate`})(Hmt||={}),Umt=class{static{Y(this,`DefaultWorkspaceLock`)}constructor(){this.previousTokenSource=new EB.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.immediateReads=[],this.done=!0}write(e){this.cancelWrite();let t=Pat();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e,t=Hmt.Normal){if(t===Hmt.Immediate){let t=Promise.resolve().then(()=>e());this.immediateReads.push(t);let n=Y(()=>{this.immediateReads.splice(this.immediateReads.indexOf(t),1)},`remove`);return t.then(n,n),t}return this.enqueue(this.readQueue,e)}enqueue(e,t,n=EB.CancellationToken.None){let r=new kB,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)for(e.push(this.writeQueue.shift()),this.done=!1;this.immediateReads.length>0;)await Promise.allSettled(this.immediateReads.slice());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length)),this.done=!1;else return;await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{let r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(e){nI(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Wmt=class{static{Y(this,`DefaultHydrator`)}constructor(e){this.grammarElementIdMap=new RB,this.tokenTypeIdMap=new RB,this.cstNodeBuilder=new pB,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(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,n=new Map;for(let n of yP(e))t.set(n,{});if(e.$cstNode)for(let t of G9e(e.$cstNode))n.set(t,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){let n=t.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,t));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let n of i)cP(n)?e.push(this.dehydrateAstNode(n,t)):lP(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else cP(i)?n[r]=this.dehydrateAstNode(i,t):lP(i)?n[r]=this.dehydrateReference(i,t):i!==void 0&&(n[r]=i)}return n}dehydrateReference(e,t){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){let n=t.cstNodes.get(e);if(v9e(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,fP(e))n.content=e.content.map(e=>this.dehydrateCstNode(e,t));else if(_9e(e)){n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length;let{start:t,end:r}=e.range;n.startLine=t.line,n.startColumn=t.character,n.endLine=r.line,n.endColumn=r.character}return n}hydrate(e){let t=e.value,n=this.createHydrationContext(t);return`$cstNode`in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){let t=new Map,n=new Map;for(let n of yP(e))t.set(n,{});if(e.$cstNode)for(let t of G9e(e.$cstNode)){let e;`fullText`in t?e=new fmt(t.fullText):`content`in t?e=new hB:`tokenType`in t&&(e=this.hydrateCstLeafNode(t)),e&&n.set(t,e)}return{astNodes:t,cstNodes:n,linkedCstNodes:new Set}}hydrateAstNode(e,t){let n=t.astNodes.get(e);if(n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode){let r=t.cstNodes.get(e.$cstNode);n.$cstNode=r,r&&!t.linkedCstNodes.has(r)&&(t.linkedCstNodes.add(r),r.astNode=n)}for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let a of i)cP(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):lP(a)?e.push(this.hydrateReference(a,n,r,t)):e.push(a)}else cP(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):lP(i)?n[r]=this.hydrateReference(i,n,r,t):i!==void 0&&(n[r]=i)}return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){let r=t.cstNodes.get(e);if(typeof e.grammarSource==`number`&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),fP(r)){let i=[];for(let r of e.content)i.push(this.hydrateCstNode(r,t,n++));this.cstNodeBuilder.appendChildren(r,i)}return r}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType);return new mB(e.offset,e.length,e.startLine,e.startColumn,e.endLine,e.endColumn,t,e.hidden)}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(let t of yP(this.grammar))xP(t)&&this.grammarElementIdMap.set(t,e++)}},Y(mI,`createDefaultCoreModule`),Y(hI,`createDefaultSharedCoreModule`),(function(e){e.merge=(e,t)=>_I(_I({},e),t)})(Gmt||={}),Y(gI,`inject`),Kmt=Symbol(`isProxy`),Y(aot,`_inject`),lV=Symbol(),Y(oot,`_resolve`),Y(_I,`_merge`),qmt=class{static{Y(this,`EmptyFileSystemProvider`)}stat(e){throw Error(`No file system is available.`)}statSync(e){throw Error(`No file system is available.`)}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error(`No file system is available.`)}readBinarySync(){throw Error(`No file system is available.`)}readFile(){throw Error(`No file system is available.`)}readFileSync(){throw Error(`No file system is available.`)}async readDirectory(){return[]}readDirectorySync(){return[]}},uV={fileSystemProvider:Y(()=>new qmt,`fileSystemProvider`)},dV={Grammar:Y(()=>void 0,`Grammar`),LanguageMetaData:Y(()=>({caseInsensitive:!1,fileExtensions:[`.langium`],languageId:`langium`}),`LanguageMetaData`)},Jmt={AstReflection:Y(()=>new qct,`AstReflection`)},Y(sot,`createMinimalGrammarServices`),Y(vI,`loadGrammarFromJson`),(e=>{e.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:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(fV||={}),(e=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,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]*/}})(Ymt||={}),(e=>{e.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]*/}})(Xmt||={}),(e=>{e.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])?/}})(Zmt||={}),(e=>{e.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]*/}})(Qmt||={}),(e=>{e.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]*/}})(pV||={}),(e=>{e.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]*/}})(mV||={}),(e=>{e.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]*/}})($mt||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(eht||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(hV||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(tht||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(nht||={}),(e=>{e.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:/"[^"]*"|'[^']*'/}})(rht||={}),(e=>{e.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]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(iht||={}),(e=>{e.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]*/}})(aht||={}),{...fV.Terminals,...Ymt.Terminals,...Xmt.Terminals,...Zmt.Terminals,...Qmt.Terminals,...pV.Terminals,...mV.Terminals,...$mt.Terminals,...eht.Terminals,...hV.Terminals,...tht.Terminals,...nht.Terminals,...iht.Terminals,...rht.Terminals,...aht.Terminals},oht={$type:`AbnfAlternation`,alternatives:`alternatives`},sht={$type:`AbnfConcatenation`,elements:`elements`},cht={$type:`AbnfElement`,primary:`primary`,repeat:`repeat`},lht={$type:`AbnfGroup`,element:`element`},uht={$type:`AbnfNumVal`,value:`value`},dht={$type:`AbnfOptionalGroup`,element:`element`},gV={$type:`AbnfPrimary`},fht={$type:`AbnfRule`,definition:`definition`,name:`name`},pht={$type:`AbnfRuleName`,name:`name`},_V={$type:`AbnfStringLiteral`,value:`value`},vV={$type:`Accelerator`,name:`name`,x:`x`,y:`y`},yV={$type:`Alignment`,direction:`direction`,members:`members`},bV={$type:`Anchor`,evolution:`evolution`,name:`name`,visibility:`visibility`},xV={$type:`Annotation`,number:`number`,text:`text`,x:`x`,y:`y`},SV={$type:`Annotations`,x:`x`,y:`y`},CV={$type:`Architecture`,accDescr:`accDescr`,accTitle:`accTitle`,alignments:`alignments`,edges:`edges`,groups:`groups`,junctions:`junctions`,services:`services`,title:`title`},Y(cot,`isArchitecture`),wV={$type:`Axis`,label:`label`,name:`name`},TV={$type:`Branch`,name:`name`,order:`order`},Y(lot,`isBranch`),EV={$type:`Checkout`,branch:`branch`},DV={$type:`CherryPicking`,id:`id`,parent:`parent`,tags:`tags`},mht={$type:`ClassDefStatement`,className:`className`,styleText:`styleText`},OV={$type:`Commit`,id:`id`,message:`message`,tags:`tags`,type:`type`},Y(uot,`isCommit`),kV={$type:`Common`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},AV={$type:`Component`,decorator:`decorator`,evolution:`evolution`,inertia:`inertia`,label:`label`,name:`name`,visibility:`visibility`},jV={$type:`Curve`,entries:`entries`,label:`label`,name:`name`},MV={$type:`Cynefin`,accDescr:`accDescr`,accTitle:`accTitle`,domains:`domains`,title:`title`,transitions:`transitions`},Y(yI,`isCynefin`),NV={$type:`Deaccelerator`,name:`name`,x:`x`,y:`y`},hht={$type:`Decorator`,strategy:`strategy`},PV={$type:`Direction`,accDescr:`accDescr`,accTitle:`accTitle`,dir:`dir`,statements:`statements`,title:`title`},FV={$type:`DomainBlock`,domain:`domain`,items:`items`},Y(dot,`isDomainBlock`),IV={$type:`DomainItem`,label:`label`},Y(fot,`isDomainItem`),LV={$type:`EbnfChoice`,alternatives:`alternatives`},RV={$type:`EbnfExceptionPostfix`,except:`except`},ght={$type:`EbnfGroup`,element:`element`},_ht={$type:`EbnfNonTerminal`,name:`name`},vht={$type:`EbnfOneOrMorePostfix`,operator:`operator`},zV={$type:`EbnfOptional`,element:`element`},yht={$type:`EbnfOptionalPostfix`,operator:`operator`},BV={$type:`EbnfPostfix`},VV={$type:`EbnfPrimary`},bht={$type:`EbnfRepetition`,element:`element`},HV={$type:`EbnfRule`,definition:`definition`,name:`name`},xht={$type:`EbnfSequence`,elements:`elements`},UV={$type:`EbnfSpecial`,text:`text`},Sht={$type:`EbnfTerm`,base:`base`,postfixes:`postfixes`},Cht={$type:`EbnfTerminal`,value:`value`},wht={$type:`EbnfZeroOrMorePostfix`,operator:`operator`},WV={$type:`Edge`,lhsDir:`lhsDir`,lhsGroup:`lhsGroup`,lhsId:`lhsId`,lhsInto:`lhsInto`,rhsDir:`rhsDir`,rhsGroup:`rhsGroup`,rhsId:`rhsId`,rhsInto:`rhsInto`,title:`title`},GV={$type:`EmDataEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,name:`name`},KV={$type:`EmFrame`},qV={$type:`EmGwt`,givenStatements:`givenStatements`,sourceFrame:`sourceFrame`,thenStatements:`thenStatements`,whenStatements:`whenStatements`},Tht={$type:`EmGwtStatement`,entityIdentifier:`entityIdentifier`},JV={$type:`EmModelEntity`,name:`name`},Y(pot,`isEmModelEntityType`),Eht={$type:`EmNoteEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,sourceFrame:`sourceFrame`},YV={$type:`EmResetFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},Y(mot,`isEmResetFrame`),XV={$type:`EmTimeFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},Dht={$type:`Entry`,axis:`axis`,value:`value`},ZV={$type:`EventModel`,accDescr:`accDescr`,accTitle:`accTitle`,dataEntities:`dataEntities`,frames:`frames`,gwtEntities:`gwtEntities`,modelEntities:`modelEntities`,noteEntities:`noteEntities`,title:`title`},QV={$type:`Evolution`,stages:`stages`},$V={$type:`EvolutionStage`,boundary:`boundary`,name:`name`,secondName:`secondName`},Oht={$type:`Evolve`,component:`component`,target:`target`},eH={$type:`GitGraph`,accDescr:`accDescr`,accTitle:`accTitle`,statements:`statements`,title:`title`},Y(hot,`isGitGraph`),tH={$type:`Group`,icon:`icon`,id:`id`,in:`in`,title:`title`},nH={$type:`Info`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},Y(got,`isInfo`),rH={$type:`Item`,classSelector:`classSelector`,name:`name`},kht={$type:`Junction`,id:`id`,in:`in`},iH={$type:`Label`,negX:`negX`,negY:`negY`,offsetX:`offsetX`,offsetY:`offsetY`},aH={$type:`Leaf`,classSelector:`classSelector`,name:`name`,value:`value`},oH={$type:`Link`,arrow:`arrow`,from:`from`,fromPort:`fromPort`,linkLabel:`linkLabel`,to:`to`,toPort:`toPort`},sH={$type:`Merge`,branch:`branch`,id:`id`,tags:`tags`,type:`type`},Y(bI,`isMerge`),cH={$type:`Note`,evolution:`evolution`,text:`text`,visibility:`visibility`},lH={$type:`Option`,name:`name`,value:`value`},uH={$type:`Packet`,accDescr:`accDescr`,accTitle:`accTitle`,blocks:`blocks`,title:`title`},Y(_ot,`isPacket`),dH={$type:`PacketBlock`,bits:`bits`,end:`end`,label:`label`,start:`start`},Y(vot,`isPacketBlock`),fH={$type:`PegAny`,dot:`dot`},Aht={$type:`PegGroup`,element:`element`},jht={$type:`PegIdentifier`,name:`name`},Mht={$type:`PegLiteral`,value:`value`},Nht={$type:`PegOrderedChoice`,alternatives:`alternatives`},Pht={$type:`PegPrefix`,operator:`operator`,suffix:`suffix`},pH={$type:`PegPrimary`},Fht={$type:`PegRule`,definition:`definition`,name:`name`},Iht={$type:`PegSequence`,elements:`elements`},mH={$type:`PegSuffix`,operator:`operator`,primary:`primary`},hH={$type:`Pie`,accDescr:`accDescr`,accTitle:`accTitle`,sections:`sections`,showData:`showData`,title:`title`},Y(xI,`isPie`),gH={$type:`PieSection`,label:`label`,value:`value`},Y(yot,`isPieSection`),_H={$type:`Pipeline`,components:`components`,parent:`parent`},vH={$type:`PipelineComponent`,evolution:`evolution`,label:`label`,name:`name`},yH={$type:`Radar`,accDescr:`accDescr`,accTitle:`accTitle`,axes:`axes`,curves:`curves`,options:`options`,title:`title`},bH={$type:`Railroad`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(bot,`isRailroad`),xH={$type:`RailroadAbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(xot,`isRailroadAbnf`),SH={$type:`RailroadChoiceExpr`,alternatives:`alternatives`},CH={$type:`RailroadEbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(Sot,`isRailroadEbnf`),wH={$type:`RailroadExpression`},Lht={$type:`RailroadNonTerminalExpr`,name:`name`},TH={$type:`RailroadOneOrMoreExpr`,element:`element`},EH={$type:`RailroadOptionalExpr`,element:`element`},DH={$type:`RailroadPeg`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},Y(Cot,`isRailroadPeg`),OH={$type:`RailroadRule`,definition:`definition`,name:`name`},kH={$type:`RailroadSequenceExpr`,elements:`elements`},AH={$type:`RailroadSpecialExpr`,text:`text`},jH={$type:`RailroadTerminalExpr`,value:`value`},MH={$type:`RailroadZeroOrMoreExpr`,element:`element`},NH={$type:`Section`,classSelector:`classSelector`,name:`name`},PH={$type:`Service`,icon:`icon`,iconText:`iconText`,id:`id`,in:`in`,title:`title`},FH={$type:`Size`,height:`height`,width:`width`},IH={$type:`Statement`},LH={$type:`Transition`,from:`from`,label:`label`,to:`to`},Y(wot,`isTransition`),RH={$type:`Treemap`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`,TreemapRows:`TreemapRows`},Y(SI,`isTreemap`),zH={$type:`TreemapRow`,indent:`indent`,item:`item`},BH={$type:`TreeNode`,classAnnotation:`classAnnotation`,descAnnotation:`descAnnotation`,iconAnnotation:`iconAnnotation`,indent:`indent`,name:`name`},VH={$type:`TreeView`,accDescr:`accDescr`,accTitle:`accTitle`,nodes:`nodes`,title:`title`},HH={$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`},Y(Tot,`isWardley`),Rht=class extends Oct{constructor(){super(...arguments),this.types={AbnfAlternation:{name:oht.$type,properties:{alternatives:{name:oht.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:sht.$type,properties:{elements:{name:sht.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:cht.$type,properties:{primary:{name:cht.primary},repeat:{name:cht.repeat,optional:!0}},superTypes:[]},AbnfGroup:{name:lht.$type,properties:{element:{name:lht.element}},superTypes:[gV.$type]},AbnfNumVal:{name:uht.$type,properties:{value:{name:uht.value}},superTypes:[gV.$type]},AbnfOptionalGroup:{name:dht.$type,properties:{element:{name:dht.element}},superTypes:[gV.$type]},AbnfPrimary:{name:gV.$type,properties:{},superTypes:[]},AbnfRule:{name:fht.$type,properties:{definition:{name:fht.definition},name:{name:fht.name}},superTypes:[]},AbnfRuleName:{name:pht.$type,properties:{name:{name:pht.name}},superTypes:[gV.$type]},AbnfStringLiteral:{name:_V.$type,properties:{value:{name:_V.value}},superTypes:[gV.$type]},Accelerator:{name:vV.$type,properties:{name:{name:vV.name},x:{name:vV.x},y:{name:vV.y}},superTypes:[]},Alignment:{name:yV.$type,properties:{direction:{name:yV.direction},members:{name:yV.members,defaultValue:[]}},superTypes:[]},Anchor:{name:bV.$type,properties:{evolution:{name:bV.evolution},name:{name:bV.name},visibility:{name:bV.visibility}},superTypes:[]},Annotation:{name:xV.$type,properties:{number:{name:xV.number},text:{name:xV.text},x:{name:xV.x},y:{name:xV.y}},superTypes:[]},Annotations:{name:SV.$type,properties:{x:{name:SV.x},y:{name:SV.y}},superTypes:[]},Architecture:{name:CV.$type,properties:{accDescr:{name:CV.accDescr,optional:!0},accTitle:{name:CV.accTitle,optional:!0},alignments:{name:CV.alignments,defaultValue:[],optional:!0},edges:{name:CV.edges,defaultValue:[],optional:!0},groups:{name:CV.groups,defaultValue:[],optional:!0},junctions:{name:CV.junctions,defaultValue:[],optional:!0},services:{name:CV.services,defaultValue:[],optional:!0},title:{name:CV.title,optional:!0}},superTypes:[]},Axis:{name:wV.$type,properties:{label:{name:wV.label,optional:!0},name:{name:wV.name}},superTypes:[]},Branch:{name:TV.$type,properties:{name:{name:TV.name},order:{name:TV.order}},superTypes:[IH.$type]},Checkout:{name:EV.$type,properties:{branch:{name:EV.branch}},superTypes:[IH.$type]},CherryPicking:{name:DV.$type,properties:{id:{name:DV.id},parent:{name:DV.parent},tags:{name:DV.tags,defaultValue:[]}},superTypes:[IH.$type]},ClassDefStatement:{name:mht.$type,properties:{className:{name:mht.className},styleText:{name:mht.styleText}},superTypes:[]},Commit:{name:OV.$type,properties:{id:{name:OV.id},message:{name:OV.message},tags:{name:OV.tags,defaultValue:[]},type:{name:OV.type}},superTypes:[IH.$type]},Common:{name:kV.$type,properties:{accDescr:{name:kV.accDescr,optional:!0},accTitle:{name:kV.accTitle,optional:!0},title:{name:kV.title,optional:!0}},superTypes:[]},Component:{name:AV.$type,properties:{decorator:{name:AV.decorator,optional:!0},evolution:{name:AV.evolution},inertia:{name:AV.inertia,defaultValue:!1},label:{name:AV.label,optional:!0},name:{name:AV.name},visibility:{name:AV.visibility}},superTypes:[]},Curve:{name:jV.$type,properties:{entries:{name:jV.entries,defaultValue:[]},label:{name:jV.label,optional:!0},name:{name:jV.name}},superTypes:[]},Cynefin:{name:MV.$type,properties:{accDescr:{name:MV.accDescr,optional:!0},accTitle:{name:MV.accTitle,optional:!0},domains:{name:MV.domains,defaultValue:[],optional:!0},title:{name:MV.title,optional:!0},transitions:{name:MV.transitions,defaultValue:[],optional:!0}},superTypes:[]},Deaccelerator:{name:NV.$type,properties:{name:{name:NV.name},x:{name:NV.x},y:{name:NV.y}},superTypes:[]},Decorator:{name:hht.$type,properties:{strategy:{name:hht.strategy}},superTypes:[]},Direction:{name:PV.$type,properties:{accDescr:{name:PV.accDescr},accTitle:{name:PV.accTitle},dir:{name:PV.dir},statements:{name:PV.statements,defaultValue:[]},title:{name:PV.title}},superTypes:[eH.$type]},DomainBlock:{name:FV.$type,properties:{domain:{name:FV.domain},items:{name:FV.items,defaultValue:[],optional:!0}},superTypes:[]},DomainItem:{name:IV.$type,properties:{label:{name:IV.label}},superTypes:[]},EbnfChoice:{name:LV.$type,properties:{alternatives:{name:LV.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:RV.$type,properties:{except:{name:RV.except}},superTypes:[BV.$type]},EbnfGroup:{name:ght.$type,properties:{element:{name:ght.element}},superTypes:[VV.$type]},EbnfNonTerminal:{name:_ht.$type,properties:{name:{name:_ht.name}},superTypes:[VV.$type]},EbnfOneOrMorePostfix:{name:vht.$type,properties:{operator:{name:vht.operator}},superTypes:[BV.$type]},EbnfOptional:{name:zV.$type,properties:{element:{name:zV.element}},superTypes:[VV.$type]},EbnfOptionalPostfix:{name:yht.$type,properties:{operator:{name:yht.operator}},superTypes:[BV.$type]},EbnfPostfix:{name:BV.$type,properties:{},superTypes:[]},EbnfPrimary:{name:VV.$type,properties:{},superTypes:[]},EbnfRepetition:{name:bht.$type,properties:{element:{name:bht.element}},superTypes:[VV.$type]},EbnfRule:{name:HV.$type,properties:{definition:{name:HV.definition},name:{name:HV.name}},superTypes:[]},EbnfSequence:{name:xht.$type,properties:{elements:{name:xht.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:UV.$type,properties:{text:{name:UV.text}},superTypes:[VV.$type]},EbnfTerm:{name:Sht.$type,properties:{base:{name:Sht.base},postfixes:{name:Sht.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:Cht.$type,properties:{value:{name:Cht.value}},superTypes:[VV.$type]},EbnfZeroOrMorePostfix:{name:wht.$type,properties:{operator:{name:wht.operator}},superTypes:[BV.$type]},Edge:{name:WV.$type,properties:{lhsDir:{name:WV.lhsDir},lhsGroup:{name:WV.lhsGroup,defaultValue:!1,optional:!0},lhsId:{name:WV.lhsId},lhsInto:{name:WV.lhsInto,defaultValue:!1,optional:!0},rhsDir:{name:WV.rhsDir},rhsGroup:{name:WV.rhsGroup,defaultValue:!1,optional:!0},rhsId:{name:WV.rhsId},rhsInto:{name:WV.rhsInto,defaultValue:!1,optional:!0},title:{name:WV.title,optional:!0}},superTypes:[]},EmDataEntity:{name:GV.$type,properties:{dataBlockValue:{name:GV.dataBlockValue},dataType:{name:GV.dataType,optional:!0},name:{name:GV.name}},superTypes:[]},EmFrame:{name:KV.$type,properties:{},superTypes:[]},EmGwt:{name:qV.$type,properties:{givenStatements:{name:qV.givenStatements,defaultValue:[]},sourceFrame:{name:qV.sourceFrame,referenceType:KV.$type},thenStatements:{name:qV.thenStatements,defaultValue:[]},whenStatements:{name:qV.whenStatements,defaultValue:[],optional:!0}},superTypes:[]},EmGwtStatement:{name:Tht.$type,properties:{entityIdentifier:{name:Tht.entityIdentifier,referenceType:JV.$type}},superTypes:[]},EmModelEntity:{name:JV.$type,properties:{name:{name:JV.name}},superTypes:[]},EmNoteEntity:{name:Eht.$type,properties:{dataBlockValue:{name:Eht.dataBlockValue},dataType:{name:Eht.dataType,optional:!0},sourceFrame:{name:Eht.sourceFrame,referenceType:KV.$type}},superTypes:[]},EmResetFrame:{name:YV.$type,properties:{dataInlineValue:{name:YV.dataInlineValue,optional:!0},dataReference:{name:YV.dataReference,referenceType:GV.$type,optional:!0},dataType:{name:YV.dataType,optional:!0},entityIdentifier:{name:YV.entityIdentifier},modelEntityType:{name:YV.modelEntityType},name:{name:YV.name},sourceFrames:{name:YV.sourceFrames,defaultValue:[],referenceType:KV.$type,optional:!0}},superTypes:[KV.$type]},EmTimeFrame:{name:XV.$type,properties:{dataInlineValue:{name:XV.dataInlineValue,optional:!0},dataReference:{name:XV.dataReference,referenceType:GV.$type,optional:!0},dataType:{name:XV.dataType,optional:!0},entityIdentifier:{name:XV.entityIdentifier},modelEntityType:{name:XV.modelEntityType},name:{name:XV.name},sourceFrames:{name:XV.sourceFrames,defaultValue:[],referenceType:KV.$type,optional:!0}},superTypes:[KV.$type]},Entry:{name:Dht.$type,properties:{axis:{name:Dht.axis,referenceType:wV.$type,optional:!0},value:{name:Dht.value}},superTypes:[]},EventModel:{name:ZV.$type,properties:{accDescr:{name:ZV.accDescr,optional:!0},accTitle:{name:ZV.accTitle,optional:!0},dataEntities:{name:ZV.dataEntities,defaultValue:[],optional:!0},frames:{name:ZV.frames,defaultValue:[],optional:!0},gwtEntities:{name:ZV.gwtEntities,defaultValue:[],optional:!0},modelEntities:{name:ZV.modelEntities,defaultValue:[],optional:!0},noteEntities:{name:ZV.noteEntities,defaultValue:[],optional:!0},title:{name:ZV.title,optional:!0}},superTypes:[]},Evolution:{name:QV.$type,properties:{stages:{name:QV.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:$V.$type,properties:{boundary:{name:$V.boundary,optional:!0},name:{name:$V.name},secondName:{name:$V.secondName,optional:!0}},superTypes:[]},Evolve:{name:Oht.$type,properties:{component:{name:Oht.component},target:{name:Oht.target}},superTypes:[]},GitGraph:{name:eH.$type,properties:{accDescr:{name:eH.accDescr},accTitle:{name:eH.accTitle},statements:{name:eH.statements,defaultValue:[]},title:{name:eH.title}},superTypes:[]},Group:{name:tH.$type,properties:{icon:{name:tH.icon,optional:!0},id:{name:tH.id},in:{name:tH.in},title:{name:tH.title,optional:!0}},superTypes:[]},Info:{name:nH.$type,properties:{accDescr:{name:nH.accDescr,optional:!0},accTitle:{name:nH.accTitle,optional:!0},title:{name:nH.title,optional:!0}},superTypes:[]},Item:{name:rH.$type,properties:{classSelector:{name:rH.classSelector,optional:!0},name:{name:rH.name}},superTypes:[]},Junction:{name:kht.$type,properties:{id:{name:kht.id},in:{name:kht.in}},superTypes:[]},Label:{name:iH.$type,properties:{negX:{name:iH.negX,defaultValue:!1,optional:!0},negY:{name:iH.negY,defaultValue:!1,optional:!0},offsetX:{name:iH.offsetX},offsetY:{name:iH.offsetY}},superTypes:[]},Leaf:{name:aH.$type,properties:{classSelector:{name:aH.classSelector,optional:!0},name:{name:aH.name},value:{name:aH.value}},superTypes:[rH.$type]},Link:{name:oH.$type,properties:{arrow:{name:oH.arrow,optional:!0},from:{name:oH.from},fromPort:{name:oH.fromPort,optional:!0},linkLabel:{name:oH.linkLabel,optional:!0},to:{name:oH.to},toPort:{name:oH.toPort,optional:!0}},superTypes:[]},Merge:{name:sH.$type,properties:{branch:{name:sH.branch},id:{name:sH.id},tags:{name:sH.tags,defaultValue:[]},type:{name:sH.type}},superTypes:[IH.$type]},Note:{name:cH.$type,properties:{evolution:{name:cH.evolution},text:{name:cH.text},visibility:{name:cH.visibility}},superTypes:[]},Option:{name:lH.$type,properties:{name:{name:lH.name},value:{name:lH.value,defaultValue:!1}},superTypes:[]},Packet:{name:uH.$type,properties:{accDescr:{name:uH.accDescr,optional:!0},accTitle:{name:uH.accTitle,optional:!0},blocks:{name:uH.blocks,defaultValue:[],optional:!0},title:{name:uH.title,optional:!0}},superTypes:[]},PacketBlock:{name:dH.$type,properties:{bits:{name:dH.bits},end:{name:dH.end,optional:!0},label:{name:dH.label},start:{name:dH.start}},superTypes:[]},PegAny:{name:fH.$type,properties:{dot:{name:fH.dot}},superTypes:[pH.$type]},PegGroup:{name:Aht.$type,properties:{element:{name:Aht.element}},superTypes:[pH.$type]},PegIdentifier:{name:jht.$type,properties:{name:{name:jht.name}},superTypes:[pH.$type]},PegLiteral:{name:Mht.$type,properties:{value:{name:Mht.value}},superTypes:[pH.$type]},PegOrderedChoice:{name:Nht.$type,properties:{alternatives:{name:Nht.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:Pht.$type,properties:{operator:{name:Pht.operator,optional:!0},suffix:{name:Pht.suffix}},superTypes:[]},PegPrimary:{name:pH.$type,properties:{},superTypes:[]},PegRule:{name:Fht.$type,properties:{definition:{name:Fht.definition},name:{name:Fht.name}},superTypes:[]},PegSequence:{name:Iht.$type,properties:{elements:{name:Iht.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:mH.$type,properties:{operator:{name:mH.operator,optional:!0},primary:{name:mH.primary}},superTypes:[]},Pie:{name:hH.$type,properties:{accDescr:{name:hH.accDescr,optional:!0},accTitle:{name:hH.accTitle,optional:!0},sections:{name:hH.sections,defaultValue:[],optional:!0},showData:{name:hH.showData,defaultValue:!1,optional:!0},title:{name:hH.title,optional:!0}},superTypes:[]},PieSection:{name:gH.$type,properties:{label:{name:gH.label},value:{name:gH.value}},superTypes:[]},Pipeline:{name:_H.$type,properties:{components:{name:_H.components,defaultValue:[]},parent:{name:_H.parent}},superTypes:[]},PipelineComponent:{name:vH.$type,properties:{evolution:{name:vH.evolution},label:{name:vH.label,optional:!0},name:{name:vH.name}},superTypes:[]},Radar:{name:yH.$type,properties:{accDescr:{name:yH.accDescr,optional:!0},accTitle:{name:yH.accTitle,optional:!0},axes:{name:yH.axes,defaultValue:[],optional:!0},curves:{name:yH.curves,defaultValue:[],optional:!0},options:{name:yH.options,defaultValue:[],optional:!0},title:{name:yH.title,optional:!0}},superTypes:[]},Railroad:{name:bH.$type,properties:{accDescr:{name:bH.accDescr,optional:!0},accTitle:{name:bH.accTitle,optional:!0},rules:{name:bH.rules,defaultValue:[]},title:{name:bH.title,optional:!0}},superTypes:[]},RailroadAbnf:{name:xH.$type,properties:{accDescr:{name:xH.accDescr,optional:!0},accTitle:{name:xH.accTitle,optional:!0},rules:{name:xH.rules,defaultValue:[]},title:{name:xH.title,optional:!0}},superTypes:[]},RailroadChoiceExpr:{name:SH.$type,properties:{alternatives:{name:SH.alternatives,defaultValue:[]}},superTypes:[wH.$type]},RailroadEbnf:{name:CH.$type,properties:{accDescr:{name:CH.accDescr,optional:!0},accTitle:{name:CH.accTitle,optional:!0},rules:{name:CH.rules,defaultValue:[]},title:{name:CH.title,optional:!0}},superTypes:[]},RailroadExpression:{name:wH.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:Lht.$type,properties:{name:{name:Lht.name}},superTypes:[wH.$type]},RailroadOneOrMoreExpr:{name:TH.$type,properties:{element:{name:TH.element}},superTypes:[wH.$type]},RailroadOptionalExpr:{name:EH.$type,properties:{element:{name:EH.element}},superTypes:[wH.$type]},RailroadPeg:{name:DH.$type,properties:{accDescr:{name:DH.accDescr,optional:!0},accTitle:{name:DH.accTitle,optional:!0},rules:{name:DH.rules,defaultValue:[]},title:{name:DH.title,optional:!0}},superTypes:[]},RailroadRule:{name:OH.$type,properties:{definition:{name:OH.definition},name:{name:OH.name}},superTypes:[]},RailroadSequenceExpr:{name:kH.$type,properties:{elements:{name:kH.elements,defaultValue:[]}},superTypes:[wH.$type]},RailroadSpecialExpr:{name:AH.$type,properties:{text:{name:AH.text}},superTypes:[wH.$type]},RailroadTerminalExpr:{name:jH.$type,properties:{value:{name:jH.value}},superTypes:[wH.$type]},RailroadZeroOrMoreExpr:{name:MH.$type,properties:{element:{name:MH.element}},superTypes:[wH.$type]},Section:{name:NH.$type,properties:{classSelector:{name:NH.classSelector,optional:!0},name:{name:NH.name}},superTypes:[rH.$type]},Service:{name:PH.$type,properties:{icon:{name:PH.icon,optional:!0},iconText:{name:PH.iconText,optional:!0},id:{name:PH.id},in:{name:PH.in},title:{name:PH.title,optional:!0}},superTypes:[]},Size:{name:FH.$type,properties:{height:{name:FH.height},width:{name:FH.width}},superTypes:[]},Statement:{name:IH.$type,properties:{},superTypes:[]},Transition:{name:LH.$type,properties:{from:{name:LH.from},label:{name:LH.label},to:{name:LH.to}},superTypes:[]},TreeNode:{name:BH.$type,properties:{classAnnotation:{name:BH.classAnnotation,optional:!0},descAnnotation:{name:BH.descAnnotation,optional:!0},iconAnnotation:{name:BH.iconAnnotation,optional:!0},indent:{name:BH.indent,optional:!0},name:{name:BH.name}},superTypes:[]},TreeView:{name:VH.$type,properties:{accDescr:{name:VH.accDescr,optional:!0},accTitle:{name:VH.accTitle,optional:!0},nodes:{name:VH.nodes,defaultValue:[]},title:{name:VH.title,optional:!0}},superTypes:[]},Treemap:{name:RH.$type,properties:{accDescr:{name:RH.accDescr,optional:!0},accTitle:{name:RH.accTitle,optional:!0},title:{name:RH.title,optional:!0},TreemapRows:{name:RH.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:zH.$type,properties:{indent:{name:zH.indent,optional:!0},item:{name:zH.item}},superTypes:[]},Wardley:{name:HH.$type,properties:{accDescr:{name:HH.accDescr,optional:!0},accelerators:{name:HH.accelerators,defaultValue:[],optional:!0},accTitle:{name:HH.accTitle,optional:!0},anchors:{name:HH.anchors,defaultValue:[],optional:!0},annotation:{name:HH.annotation,defaultValue:[],optional:!0},annotations:{name:HH.annotations,defaultValue:[],optional:!0},components:{name:HH.components,defaultValue:[],optional:!0},deaccelerators:{name:HH.deaccelerators,defaultValue:[],optional:!0},evolution:{name:HH.evolution,optional:!0},evolves:{name:HH.evolves,defaultValue:[],optional:!0},links:{name:HH.links,defaultValue:[],optional:!0},notes:{name:HH.notes,defaultValue:[],optional:!0},pipelines:{name:HH.pipelines,defaultValue:[],optional:!0},size:{name:HH.size,optional:!0},title:{name:HH.title,optional:!0}},superTypes:[]}}}static{Y(this,`MermaidAstReflection`)}},UH=new Rht,Bht=Y(()=>zht??=vI(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"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":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"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@10"},"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@10"},"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@12"},"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@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@24"},"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@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"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":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`ArchitectureGrammarGrammar`),Hht=Y(()=>Vht??=vI(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"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":[]}`),`CynefinGrammarGrammar`),WH=Y(()=>Uht??=vI('{"$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`),GH=Y(()=>Wht??=vI(`{"$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`),Kht=Y(()=>Ght??=vI(`{"$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`),qH=Y(()=>KH??=vI(`{"$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`),YH=Y(()=>JH??=vI(`{"$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`),ZH=Y(()=>XH??=vI(`{"$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`),qht=Y(()=>QH??=vI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadAbnfGrammarGrammar`),Jht=Y(()=>$H??=vI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadEbnfGrammarGrammar`),eU=Y(()=>Yht??=vI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadGrammarGrammar`),Xht=Y(()=>tU??=vI(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","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":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$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"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadPegGrammarGrammar`),Qht=Y(()=>Zht??=vI(`{"$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`),nU=Y(()=>$ht??=vI(`{"$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@14"},"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":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","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":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"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 *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),`TreeViewGrammarGrammar`),tgt=Y(()=>egt??=vI(`{"$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`),ngt={languageId:`architecture`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},rgt={languageId:`cynefin`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},rU={languageId:`eventmodeling`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},igt={languageId:`gitGraph`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},agt={languageId:`info`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},iU={languageId:`packet`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},ogt={languageId:`pie`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},sgt={languageId:`radar`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},cgt={languageId:`railroadAbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},lgt={languageId:`railroadEbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},aU={languageId:`railroad`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},ugt={languageId:`railroadPeg`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},dgt={languageId:`treemap`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},fgt={languageId:`treeView`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},pgt={languageId:`wardley`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},oU={AstReflection:Y(()=>new Rht,`AstReflection`)},mgt={Grammar:Y(()=>Bht(),`Grammar`),LanguageMetaData:Y(()=>ngt,`LanguageMetaData`),parser:{}},hgt={Grammar:Y(()=>Hht(),`Grammar`),LanguageMetaData:Y(()=>rgt,`LanguageMetaData`),parser:{}},ggt={Grammar:Y(()=>WH(),`Grammar`),LanguageMetaData:Y(()=>rU,`LanguageMetaData`),parser:{}},_gt={Grammar:Y(()=>GH(),`Grammar`),LanguageMetaData:Y(()=>igt,`LanguageMetaData`),parser:{}},sU={Grammar:Y(()=>Kht(),`Grammar`),LanguageMetaData:Y(()=>agt,`LanguageMetaData`),parser:{}},cU={Grammar:Y(()=>qH(),`Grammar`),LanguageMetaData:Y(()=>iU,`LanguageMetaData`),parser:{}},lU={Grammar:Y(()=>YH(),`Grammar`),LanguageMetaData:Y(()=>ogt,`LanguageMetaData`),parser:{}},uU={Grammar:Y(()=>ZH(),`Grammar`),LanguageMetaData:Y(()=>sgt,`LanguageMetaData`),parser:{}},dU={Grammar:Y(()=>qht(),`Grammar`),LanguageMetaData:Y(()=>cgt,`LanguageMetaData`),parser:{}},fU={Grammar:Y(()=>Jht(),`Grammar`),LanguageMetaData:Y(()=>lgt,`LanguageMetaData`),parser:{}},pU={Grammar:Y(()=>eU(),`Grammar`),LanguageMetaData:Y(()=>aU,`LanguageMetaData`),parser:{}},vgt={Grammar:Y(()=>Xht(),`Grammar`),LanguageMetaData:Y(()=>ugt,`LanguageMetaData`),parser:{}},mU={Grammar:Y(()=>Qht(),`Grammar`),LanguageMetaData:Y(()=>dgt,`LanguageMetaData`),parser:{}},hU={Grammar:Y(()=>nU(),`Grammar`),LanguageMetaData:Y(()=>fgt,`LanguageMetaData`),parser:{}},ygt={Grammar:Y(()=>tgt(),`Grammar`),LanguageMetaData:Y(()=>pgt,`LanguageMetaData`),parser:{}},bgt={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},gU=class extends wB{static{Y(this,`AbstractMermaidValueConverter`)}runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return r===void 0&&(r=this.runCustomConverter(e,t,n)),r===void 0?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){let r=bgt[e.name];if(r===void 0)return;let i=r.exec(t);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,` +`)}}},_U=class extends gU{static{Y(this,`CommonValueConverter`)}runCustomConverter(e,t,n){}},vU=class extends CB{static{Y(this,`AbstractMermaidTokenBuilder`)}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}},class extends vU{static{Y(this,`CommonTokenBuilder`)}}}));function xgt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),uU,bU);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}var Sgt,bU,Cgt=o((()=>{yU(),Sgt=class extends vU{static{Y(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},bU={parser:{TokenBuilder:Y(()=>new Sgt,`TokenBuilder`),ValueConverter:Y(()=>new _U,`ValueConverter`)}},Y(xgt,`createRadarServices`)}));function wgt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),pU,Ogt);return t.ServiceRegistry.register(n),{shared:t,Railroad:n}}var Tgt,Egt,Dgt,Ogt,kgt=o((()=>{yU(),Tgt=class extends vU{static{Y(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},Egt=Y(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew Tgt,`TokenBuilder`),ValueConverter:Y(()=>new Dgt,`ValueConverter`)}},Y(wgt,`createRailroadServices`)}));function xU(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),fU,Mgt);return t.ServiceRegistry.register(n),{shared:t,RailroadEbnf:n}}var SU,Agt,jgt,Mgt,Ngt=o((()=>{yU(),SU=class extends vU{static{Y(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},Agt=Y(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew SU,`TokenBuilder`),ValueConverter:Y(()=>new jgt,`ValueConverter`)}},Y(xU,`createRailroadEbnfServices`)}));function CU(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),dU,wU);return t.ServiceRegistry.register(n),{shared:t,RailroadAbnf:n}}var Pgt,Fgt,wU,TU=o((()=>{yU(),Pgt=class extends vU{static{Y(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Fgt=class extends gU{static{Y(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},wU={parser:{TokenBuilder:Y(()=>new Pgt,`TokenBuilder`),ValueConverter:Y(()=>new Fgt,`ValueConverter`)}},Y(CU,`createRailroadAbnfServices`)}));function Igt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),vgt,zgt);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}var Lgt,EU,Rgt,zgt,Bgt=o((()=>{yU(),Lgt=class extends vU{static{Y(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},EU=Y(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew Lgt,`TokenBuilder`),ValueConverter:Y(()=>new Rgt,`ValueConverter`)}},Y(Igt,`createRailroadPegServices`)}));function Vgt(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}function Hgt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),mU,AU);return t.ServiceRegistry.register(n),Vgt(n),{shared:t,Treemap:n}}var Ugt,DU,OU,kU,AU,Wgt=o((()=>{yU(),Ugt=class extends vU{static{Y(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},DU=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,OU=class extends gU{static{Y(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=DU.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}},Y(Vgt,`registerValidationChecks`),kU=class{static{Y(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},AU={parser:{TokenBuilder:Y(()=>new Ugt,`TokenBuilder`),ValueConverter:Y(()=>new OU,`ValueConverter`)},validation:{TreemapValidator:Y(()=>new kU,`TreemapValidator`)}},Y(Hgt,`createTreemapServices`)}));function Ggt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),ygt,jU);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}var Kgt,jU,qgt=o((()=>{yU(),Kgt=class extends gU{static{Y(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},jU={parser:{ValueConverter:Y(()=>new Kgt,`ValueConverter`)}},Y(Ggt,`createWardleyServices`)}));function Jgt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),hgt,NU);return t.ServiceRegistry.register(n),{shared:t,Cynefin:n}}var MU,NU,Ygt=o((()=>{yU(),MU=class extends vU{static{Y(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},NU={parser:{TokenBuilder:Y(()=>new MU,`TokenBuilder`),ValueConverter:Y(()=>new _U,`ValueConverter`)}},Y(Jgt,`createCynefinServices`)}));function Xgt(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),_gt,Qgt);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}var Zgt,Qgt,$gt=o((()=>{yU(),Zgt=class extends vU{static{Y(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},Qgt={parser:{TokenBuilder:Y(()=>new Zgt,`TokenBuilder`),ValueConverter:Y(()=>new _U,`ValueConverter`)}},Y(Xgt,`createGitGraphServices`)}));function e_t(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),sU,n_t);return t.ServiceRegistry.register(n),{shared:t,Info:n}}var t_t,n_t,r_t=o((()=>{yU(),t_t=class extends vU{static{Y(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},n_t={parser:{TokenBuilder:Y(()=>new t_t,`TokenBuilder`),ValueConverter:Y(()=>new _U,`ValueConverter`)}},Y(e_t,`createInfoServices`)}));function i_t(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),cU,PU);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}var a_t,PU,o_t=o((()=>{yU(),a_t=class extends vU{static{Y(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},PU={parser:{TokenBuilder:Y(()=>new a_t,`TokenBuilder`),ValueConverter:Y(()=>new _U,`ValueConverter`)}},Y(i_t,`createPacketServices`)}));function s_t(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),lU,LU);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}var FU,IU,LU,RU=o((()=>{yU(),FU=class extends vU{static{Y(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},IU=class extends gU{static{Y(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},LU={parser:{TokenBuilder:Y(()=>new FU,`TokenBuilder`),ValueConverter:Y(()=>new IU,`ValueConverter`)}},Y(s_t,`createPieServices`)}));function c_t(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),hU,BU);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}var l_t,zU,BU,VU=o((()=>{yU(),l_t=class extends gU{static{Y(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},zU=class extends vU{static{Y(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},BU={parser:{TokenBuilder:Y(()=>new zU,`TokenBuilder`),ValueConverter:Y(()=>new l_t,`ValueConverter`)}},Y(c_t,`createTreeViewServices`)}));function HU(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),mgt,f_t);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}var u_t,d_t,f_t,UU=o((()=>{yU(),u_t=class extends vU{static{Y(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},d_t=class extends gU{static{Y(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},f_t={parser:{TokenBuilder:Y(()=>new u_t,`TokenBuilder`),ValueConverter:Y(()=>new d_t,`ValueConverter`)}},Y(HU,`createArchitectureServices`)}));function p_t(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}function m_t(e=uV){let t=gI(hI(e),oU),n=gI(mI({shared:t}),ggt,qU);return t.ServiceRegistry.register(n),p_t(n),{shared:t,EventModel:n}}var h_t,g_t,WU,GU,KU,__t,v_t,qU,JU=o((()=>{yU(),h_t=class extends vU{static{Y(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},g_t=new Set([`cmd`,`command`]),WU=new Set([`evt`,`event`]),GU=new Set([`rmo`,`readmodel`]),KU=new Set([`pcr`,`processor`]),__t=new Set([`ui`]),Y(p_t,`registerValidationChecks`),v_t=class{static{Y(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(g_t.has(e.modelEntityType)?this.validateSources(e,new Set([...__t,...KU]),`command`,`ui or processor`,t):WU.has(e.modelEntityType)?this.validateSources(e,g_t,`event`,`command`,t):GU.has(e.modelEntityType)?this.validateSources(e,WU,`read model`,`event`,t):KU.has(e.modelEntityType)?this.validateSources(e,GU,`processor`,`read model`,t):__t.has(e.modelEntityType)&&this.validateSources(e,GU,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},qU={parser:{TokenBuilder:Y(()=>new h_t,`TokenBuilder`),ValueConverter:Y(()=>new _U,`ValueConverter`)},validation:{EventModelingValidator:Y(()=>new v_t,`EventModelingValidator`)}},Y(m_t,`createEventModelingServices`)})),y_t=l({InfoModule:()=>n_t,createInfoServices:()=>e_t}),b_t=o((()=>{r_t(),yU()})),x_t=l({PacketModule:()=>PU,createPacketServices:()=>i_t}),S_t=o((()=>{o_t(),yU()})),YU=l({PieModule:()=>LU,createPieServices:()=>s_t}),XU=o((()=>{RU(),yU()})),C_t=l({TreeViewModule:()=>BU,createTreeViewServices:()=>c_t}),w_t=o((()=>{VU(),yU()})),T_t=l({ArchitectureModule:()=>f_t,createArchitectureServices:()=>HU}),E_t=o((()=>{UU(),yU()})),D_t=l({GitGraphModule:()=>Qgt,createGitGraphServices:()=>Xgt}),O_t=o((()=>{$gt(),yU()})),k_t=l({EventModelingModule:()=>qU,createEventModelingServices:()=>m_t}),A_t=o((()=>{JU(),yU()})),j_t=l({RadarModule:()=>bU,createRadarServices:()=>xgt}),M_t=o((()=>{Cgt(),yU()})),ZU=l({RailroadModule:()=>Ogt,createRailroadServices:()=>wgt}),N_t=o((()=>{kgt(),yU()})),P_t=l({RailroadEbnfModule:()=>Mgt,createRailroadEbnfServices:()=>xU}),F_t=o((()=>{Ngt(),yU()})),I_t=l({RailroadAbnfModule:()=>wU,createRailroadAbnfServices:()=>CU}),L_t=o((()=>{TU(),yU()})),R_t=l({RailroadPegModule:()=>zgt,createRailroadPegServices:()=>Igt}),z_t=o((()=>{Bgt(),yU()})),B_t=l({TreemapModule:()=>AU,createTreemapServices:()=>Hgt}),V_t=o((()=>{Wgt(),yU()})),H_t=l({WardleyModule:()=>jU,createWardleyServices:()=>Ggt}),U_t=o((()=>{qgt(),yU()})),W_t=l({CynefinModule:()=>NU,createCynefinServices:()=>Jgt}),G_t=o((()=>{Ygt(),yU()}));async function QU(e,t){let n=K_t[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$U[e]||await n();let r=$U[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new tW(r);return r.value}var $U,K_t,eW,tW,nW=o((()=>{Cgt(),kgt(),Ngt(),TU(),Bgt(),Wgt(),qgt(),Ygt(),$gt(),r_t(),o_t(),RU(),VU(),UU(),JU(),yU(),$U={},K_t={info:Y(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>(b_t(),y_t));$U.info=e().Info.parser.LangiumParser},`info`),packet:Y(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>(S_t(),x_t));$U.packet=e().Packet.parser.LangiumParser},`packet`),pie:Y(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>(XU(),YU));$U.pie=e().Pie.parser.LangiumParser},`pie`),treeView:Y(async()=>{let{createTreeViewServices:e}=await Promise.resolve().then(()=>(w_t(),C_t));$U.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:Y(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>(E_t(),T_t));$U.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:Y(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>(O_t(),D_t));$U.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:Y(async()=>{let{createEventModelingServices:e}=await Promise.resolve().then(()=>(A_t(),k_t));$U.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:Y(async()=>{let{createRadarServices:e}=await Promise.resolve().then(()=>(M_t(),j_t));$U.radar=e().Radar.parser.LangiumParser},`radar`),railroad:Y(async()=>{let{createRailroadServices:e}=await Promise.resolve().then(()=>(N_t(),ZU));$U.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:Y(async()=>{let{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>(F_t(),P_t));$U.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:Y(async()=>{let{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>(L_t(),I_t));$U.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:Y(async()=>{let{createRailroadPegServices:e}=await Promise.resolve().then(()=>(z_t(),R_t));$U.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:Y(async()=>{let{createTreemapServices:e}=await Promise.resolve().then(()=>(V_t(),B_t));$U.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:Y(async()=>{let{createWardleyServices:e}=await Promise.resolve().then(()=>(U_t(),H_t));$U.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:Y(async()=>{let{createCynefinServices:e}=await Promise.resolve().then(()=>(G_t(),W_t));$U.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)},Y(QU,`parse`),eW=Y(e=>e!==void 0&&e>=0?e:`?`,`formatLocation`),tW=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${eW(e.line)}, column ${eW(e.column)}: ${e.message}`).join(` +`),n=e.parserErrors.map(e=>`Parse error on line ${eW(e.token.startLine)}, column ${eW(e.token.startColumn)}: ${e.message}`).join(` +`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{Y(this,`MermaidParseError`)}}})),q_t=l({diagram:()=>Ivt});function rW(){return mOe({length:7})}function J_t(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}function Y_t(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}function X_t(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in oW.records.branches)oW.records.branches.get(e)===t.id&&r.push(e);if(P.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=oW.records.commits.get(t.parents[0]);Y_t(e,t,n),t.parents[1]&&e.push(oW.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=oW.records.commits.get(t.parents[0]);Y_t(e,t,n)}e=J_t(e,e=>e.id),X_t(e)}var iW,Z_t,aW,oW,Q_t,$_t,evt,tvt,nvt,rvt,ivt,sW,cW,avt,ovt,lW,uW,svt,cvt,lvt,dW,fW,pW,uvt,dvt,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,fvt,wW,TW,EW,DW,OW,kW,AW,jW,MW,pvt,NW,mvt,PW,hvt,gvt,_vt,vvt,yvt,bvt,xvt,Svt,Cvt,FW,wvt,Tvt,IW,LW,Evt,RW,Dvt,Ovt,zW,kvt,Avt,jvt,Mvt,Nvt,Pvt,BW,Fvt,Ivt,Lvt=o((()=>{aP(),sP(),qm(),Os(),er(),Zn(),nW(),Dp(),iW={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Z_t=Fo.gitGraph,aW=N(()=>Bm({...Z_t,...Xo().gitGraph}),`getConfig`),oW=new h9e(()=>{let e=aW(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}}),N(rW,`getID`),N(J_t,`uniqBy`),Q_t=N(function(e){oW.records.direction=e},`setDirection`),$_t=N(function(e){P.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{oW.records.options=JSON.parse(e)}catch(e){P.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),evt=N(function(){return oW.records.options},`getOptions`),tvt=N(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;P.info(`commit`,t,n,r,i),P.debug(`Entering commit:`,t,n,r,i);let a=aW();n=cs.sanitizeText(n,a),t=cs.sanitizeText(t,a),i=i?.map(e=>cs.sanitizeText(e,a));let o={id:n||oW.records.seq+`-`+rW(),message:t,seq:oW.records.seq++,type:r??iW.NORMAL,tags:i??[],parents:oW.records.head==null?[]:[oW.records.head.id],branch:oW.records.currBranch};oW.records.head=o,P.info(`main branch`,a.mainBranchName),oW.records.commits.has(o.id)&&P.warn(`Commit ID ${o.id} already exists`),oW.records.commits.set(o.id,o),oW.records.branches.set(oW.records.currBranch,o.id),P.debug(`in pushCommit `+o.id)},`commit`),nvt=N(function(e){let t=e.name,n=e.order;if(t=cs.sanitizeText(t,aW()),oW.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);oW.records.branches.set(t,oW.records.head==null?null:oW.records.head.id),oW.records.branchConfig.set(t,{name:t,order:n}),sW(t),P.debug(`in createBranch`)},`branch`),rvt=N(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=aW();t=cs.sanitizeText(t,a),n&&=cs.sanitizeText(n,a);let o=oW.records.branches.get(oW.records.currBranch),s=oW.records.branches.get(t),l=o?oW.records.commits.get(o):void 0,u=s?oW.records.commits.get(s):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(oW.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${oW.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!oW.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&oW.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let d=s||``,f={id:n||`${oW.records.seq}-${rW()}`,message:`merged branch ${t} into ${oW.records.currBranch}`,seq:oW.records.seq++,parents:oW.records.head==null?[]:[oW.records.head.id,d],branch:oW.records.currBranch,type:iW.MERGE,customType:r,customId:!!n,tags:i??[]};oW.records.head=f,oW.records.commits.set(f.id,f),oW.records.branches.set(oW.records.currBranch,f.id),P.debug(oW.records.branches),P.debug(`in mergeBranch`)},`merge`),ivt=N(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;P.debug(`Entering cherryPick:`,t,n,r);let a=aW();if(t=cs.sanitizeText(t,a),n=cs.sanitizeText(n,a),r=r?.map(e=>cs.sanitizeText(e,a)),i=cs.sanitizeText(i,a),!t||!oW.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=oW.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===iW.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!oW.records.commits.has(n)){if(s===oW.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=oW.records.branches.get(oW.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${oW.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=oW.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${oW.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:oW.records.seq+`-`+rW(),message:`cherry-picked ${o?.message} into ${oW.records.currBranch}`,seq:oW.records.seq++,parents:oW.records.head==null?[]:[oW.records.head.id,o.id],branch:oW.records.currBranch,type:iW.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===iW.MERGE?`|parent:${i}`:``}`]};oW.records.head=l,oW.records.commits.set(l.id,l),oW.records.branches.set(oW.records.currBranch,l.id),P.debug(oW.records.branches),P.debug(`in cherryPick`)}},`cherryPick`),sW=N(function(e){if(e=cs.sanitizeText(e,aW()),oW.records.branches.has(e)){oW.records.currBranch=e;let t=oW.records.branches.get(oW.records.currBranch);t===void 0||!t?oW.records.head=null:oW.records.head=oW.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`),N(Y_t,`upsert`),N(X_t,`prettyPrintCommitHistory`),cW=N(function(){P.debug(oW.records.commits);let e=svt()[0];X_t([e])},`prettyPrint`),avt=N(function(){oW.reset(),fs()},`clear`),ovt=N(function(){return[...oW.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),lW=N(function(){return oW.records.branches},`getBranches`),uW=N(function(){return oW.records.commits},`getCommits`),svt=N(function(){let e=[...oW.records.commits.values()];return e.forEach(function(e){P.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),cvt={commitType:iW,getConfig:aW,setDirection:Q_t,setOptions:$_t,getOptions:evt,commit:tvt,branch:nvt,merge:rvt,cherryPick:ivt,checkout:sW,prettyPrint:cW,clear:avt,getBranchesAsObjArray:ovt,getBranches:lW,getCommits:uW,getCommitsArray:svt,getCurrentBranch:N(function(){return oW.records.currBranch},`getCurrentBranch`),getDirection:N(function(){return oW.records.direction},`getDirection`),getHead:N(function(){return oW.records.head},`getHead`),setAccTitle:ps,getAccTitle:ms,getAccDescription:gs,setAccDescription:hs,setDiagramTitle:_s,getDiagramTitle:vs},lvt=N((e,t)=>{oP(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)dW(n,t)},`populate`),dW=N((e,t)=>{let n={Commit:N(e=>t.commit(fW(e)),`Commit`),Branch:N(e=>t.branch(pW(e)),`Branch`),Merge:N(e=>t.merge(uvt(e)),`Merge`),Checkout:N(e=>t.checkout(dvt(e)),`Checkout`),CherryPicking:N(e=>t.cherryPick(mW(e)),`CherryPicking`)}[e.$type];n?n(e):P.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),fW=N(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?iW.NORMAL:iW[e.type],tags:e.tags??void 0}),`parseCommit`),pW=N(e=>({name:e.name,order:e.order??0}),`parseBranch`),uvt=N(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:iW[e.type],tags:e.tags??void 0}),`parseMerge`),dvt=N(e=>e.branch,`parseCheckout`),mW=N(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),hW={parse:N(async e=>{let t=await QU(`gitGraph`,e);P.debug(t),lvt(t,cvt)},`parse`)},gW=10,_W=40,vW=4,yW=2,bW=8,xW=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),SW=12,CW=new Set([`redux-color`,`redux-dark-color`]),fvt=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),wW=N((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),TW=new Map,EW=new Map,DW=30,OW=new Map,kW=[],AW=0,jW=`LR`,MW=N(()=>{TW.clear(),EW.clear(),OW.clear(),AW=0,kW=[],jW=`LR`},`clear`),pvt=N(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),NW=N(e=>{let t,n,r;return jW===`BT`?(n=N((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=N((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=jW===`TB`||jW==`BT`?EW.get(e)?.y:EW.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),mvt=N(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=EW.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),PW=N((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=gvt(n),i=Math.max(r,i)):a.push(n),_vt(n,r)}),r=i,a.forEach(e=>{vvt(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=mvt(n.parents);r=EW.get(e).y-_W,r<=i&&(i=r);let t=TW.get(n.branch).pos,a=r-gW;EW.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),hvt=N(e=>{let t=NW(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=EW.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),gvt=N(e=>hvt(e)+_W,`calculateCommitPosition`),_vt=N((e,t)=>{let n=TW.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+gW;return EW.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),vvt=N((e,t,n)=>{let r=TW.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;EW.set(e.id,{x:a,y:i})},`setRootPosition`),yvt=N((e,t,n,r,i,a)=>{let{theme:o}=bs(),s=xW.has(o??``),l=CW.has(o??``),u=fvt.has(o??``);if(a===iW.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${wW(i,bW,l)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${wW(i,bW,l)} ${r}-inner`);else if(a===iW.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${wW(i,bW,l)}`),a===iW.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${wW(i,bW,l)}`)}if(a===iW.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${wW(i,bW,l)}`)}}},`drawCommitBullet`),bvt=N((e,t,n,r,i)=>{if(t.type!==iW.CHERRY_PICK&&(t.customId&&t.type===iW.MERGE||t.type!==iW.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),l=s.node()?.getBBox();if(l&&(o.attr(`x`,n.posWithOffset-l.width/2-yW).attr(`y`,n.y+13.5).attr(`width`,l.width+2*yW).attr(`height`,l.height+2*yW),jW===`TB`||jW===`BT`?(o.attr(`x`,n.x-(l.width+4*vW+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(l.width+4*vW)).attr(`y`,n.y+l.height-12)):s.attr(`x`,n.posWithOffset-l.width/2),i.rotateCommitLabel)){if(jW===`TB`||jW===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(l.width+10)/25*9.5,t=10+l.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),xvt=N((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),l=e.append(`circle`),u=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),d=u.node()?.getBBox();if(!d)throw Error(`Tag bbox not found`);a=Math.max(a,d.width),o=Math.max(o,d.height),u.attr(`x`,n.posWithOffset-d.width/2),s.push({tag:u,hole:l,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:l}of s){let s=o/2,u=n.y-19.2-l;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,` + ${r-a/2-vW/2},${u+yW} + ${r-a/2-vW/2},${u-yW} + ${n.posWithOffset-a/2-vW},${u-s-yW} + ${n.posWithOffset+a/2+vW},${u-s-yW} + ${n.posWithOffset+a/2+vW},${u+s+yW} + ${n.posWithOffset-a/2-vW},${u+s+yW}`),t.attr(`cy`,u).attr(`cx`,r-a/2+vW/2).attr(`r`,1.5).attr(`class`,`tag-hole`),jW===`TB`||jW===`BT`){let o=r+l;i.attr(`class`,`tag-label-bkg`).attr(`points`,` ${n.x},${o+2} ${n.x},${o-2} - ${n.x+_W},${o-s-2} - ${n.x+_W+a+4},${o-s-2} - ${n.x+_W+a+4},${o+s+2} - ${n.x+_W},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+yW/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),fvt=N(e=>{switch(e.customType??e.type){case cW.NORMAL:return`commit-normal`;case cW.REVERSE:return`commit-reverse`;case cW.HIGHLIGHT:return`commit-highlight`;case cW.MERGE:return`commit-merge`;case cW.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),pvt=N((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=FW(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+vW:t===`BT`?(r.get(e.id)??i).y-vW:a.x+vW}}else if(t===`TB`)return OW;else if(t===`BT`)return(r.get(e.id)??i).y-vW;else return 0;return 0},`calculatePosition`),mvt=N((e,t,n)=>{let r=MW===`BT`&&n?t:t+_W,i=EW.get(e.branch)?.pos,a=MW===`TB`||MW===`BT`?EW.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=SW.has(As().theme??``);return{x:a,y:MW===`TB`||MW===`BT`?r:i+(o?CW/2+1:-2),posWithOffset:r}},`getCommitPosition`),hvt=N((e,t,n,r)=>{let i=e.append(`g`).attr(`class`,`commit-bullets`),a=e.append(`g`).attr(`class`,`commit-labels`),o=MW===`TB`||MW===`BT`?OW:0,s=[...t.keys()],l=r.parallelCommits??!1,u=N((e,n)=>{let r=t.get(e)?.seq,i=t.get(n)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=s.sort(u);MW===`BT`&&(l&&svt(d,t,o),d=d.reverse()),d.forEach(e=>{let s=t.get(e);if(!s)throw Error(`Commit not found for key ${e}`);l&&(o=pvt(s,MW,o,DW));let u=mvt(s,o,l);if(n){let e=fvt(s),t=s.customType??s.type,n=EW.get(s.branch)?.index??0;zW(i,s,u,e,n,t),uvt(a,s,u,o,r),dvt(a,s,u,o)}MW===`TB`||MW===`BT`?DW.set(s.id,{x:u.x,y:u.posWithOffset}):DW.set(s.id,{x:u.posWithOffset,y:u.y}),o=MW===`BT`&&l?o+vW:o+vW+_W,o>jW&&(jW=o)})},`drawCommits`),gvt=N((e,t,n,r,i)=>{let a=(MW===`TB`||MW===`BT`?n.xe.branch===a,`isOnBranchToGetCurve`),s=N(n=>n.seq>e.seq&&n.seqs(e)&&o(e))},`shouldRerouteArrow`),BW=N((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:AW.every(e=>Math.abs(e-r)>=10)?(AW.push(r),r):BW(e,t-Math.abs(e-t)/5,n+1)},`findLane`),_vt=N((e,t,n,r)=>{let{theme:i}=As(),a=wW.has(i??``),o=DW.get(t.id),s=DW.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let l=gvt(t,n,o,s,r),u=``,d=``,f=0,p=0,m=EW.get(n.branch)?.index;n.type===cW.MERGE&&t.id!==n.parents[0]&&(m=EW.get(t.branch)?.index);let h;if(l){u=`A 10 10, 0, 0, 0,`,d=`A 10 10, 0, 0, 1,`,f=10,p=10;let e=o.ys.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===cW.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${d} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):MW===`BT`?(o.xs.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===cW.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${u} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${d} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.ys.y&&(h=n.type===cW.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${u} ${s.x} ${o.y-p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${d} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+TW(m,xW,a))},`drawArrow`),VW=N((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{_vt(n,t.get(e),r,t)})})},`drawArrows`),vvt=N((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=As(),{dropShadow:s,THEME_COLOR_LIMIT:l}=o,u=SW.has(a??``),d=wW.has(a??``),f=e.append(`g`);t.forEach((e,t)=>{let a=TW(t,u?l:xW,d),o=EW.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let p=MW===`TB`||MW===`BT`?o:u?o+CW/2+1:o-2,m=f.append(`line`);m.attr(`x1`,0),m.attr(`y1`,p),m.attr(`x2`,jW),m.attr(`y2`,p),m.attr(`class`,`branch branch`+a),MW===`TB`?(m.attr(`y1`,OW),m.attr(`x1`,o),m.attr(`y2`,jW),m.attr(`x2`,o)):MW===`BT`&&(m.attr(`y1`,jW),m.attr(`x1`,o),m.attr(`y2`,OW),m.attr(`x2`,o)),AW.push(p);let h=e.name,g=PW(h),_=f.insert(`rect`),v=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);v.node().appendChild(g);let y=g.getBBox(),b=u?0:4,x=u?16:0,S=u?CW:0;i===`neo`&&_.attr(`data-look`,`neo`),_.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${u?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,b).attr(`ry`,b).attr(`x`,-y.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-y.height/2+10).attr(`width`,y.width+18+x).attr(`height`,y.height+4+S),v.attr(`transform`,`translate(`+(-y.width-14-(n.rotateCommitLabel===!0?30:0)+x/2)+`, `+(p-y.height/2-2)+`)`),MW===`TB`?(_.attr(`x`,o-y.width/2-10).attr(`y`,0),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, 0)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${-S-10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(-S*2+7)+`)`))):MW===`BT`?(_.attr(`x`,o-y.width/2-10).attr(`y`,jW),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+jW+`)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${S+10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(jW+S*2+4)+`)`))):_.attr(`transform`,`translate(-19, `+(p-12-S/2)+`)`)})},`drawBranches`),yvt=N(function(e,t,n,r,i){return EW.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(MW===`TB`||MW===`BT`?r.width/2:0),t},`setBranchPosition`),HW={draw:N(function(e,t,n,r){NW(),P.debug(`in gitgraph renderer`,e+` -`,`id:`,t,n);let i=r.db;if(!i.getConfig){P.error(`getConfig method is not available on db`);return}let a=i.getConfig(),o=a.rotateCommitLabel??!1;kW=i.getCommits();let s=i.getBranchesAsObjArray();MW=i.getDirection();let l=Qc(`[id="${t}"]`),{look:u,theme:d,themeVariables:f}=As(),{useGradient:p,gradientStart:m,gradientStop:h,filterColor:g}=f;if(p){let e=l.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,m).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,h).attr(`stop-opacity`,1)}u===`neo`&&SW.has(d??``)&&l.append(`defs`).append(`filter`).attr(`id`,t+`-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`,g);let _=0;s.forEach((e,t)=>{let n=PW(e.name),r=l.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let s=n.getBBox();_=yvt(e.name,_,t,s,o),a.remove(),i.remove(),r.remove()}),hvt(l,kW,!1,a),a.showBranches&&vvt(l,s,a,t),VW(l,kW),hvt(l,kW,!0,a),Hm.insertTitle(l,`gitTitleText`,a.titleTopMargin??0,i.getDiagramTitle()),yme(void 0,l,a.diagramPadding,a.useMaxWidth)},`draw`)},UW=8,bvt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),WW=new Set([`redux-color`,`redux-dark-color`]),xvt=new Set([`neo`,`neo-dark`]),Svt=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),GW=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),Cvt=N(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r{switch(e.customType??e.type){case iW.NORMAL:return`commit-normal`;case iW.REVERSE:return`commit-reverse`;case iW.HIGHLIGHT:return`commit-highlight`;case iW.MERGE:return`commit-merge`;case iW.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),Cvt=N((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=NW(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+_W:t===`BT`?(r.get(e.id)??i).y-_W:a.x+_W}}else if(t===`TB`)return DW;else if(t===`BT`)return(r.get(e.id)??i).y-_W;else return 0;return 0},`calculatePosition`),FW=N((e,t,n)=>{let r=jW===`BT`&&n?t:t+gW,i=TW.get(e.branch)?.pos,a=jW===`TB`||jW===`BT`?TW.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=xW.has(bs().theme??``);return{x:a,y:jW===`TB`||jW===`BT`?r:i+(o?SW/2+1:-2),posWithOffset:r}},`getCommitPosition`),wvt=N((e,t,n,r)=>{let i=e.append(`g`).attr(`class`,`commit-bullets`),a=e.append(`g`).attr(`class`,`commit-labels`),o=jW===`TB`||jW===`BT`?DW:0,s=[...t.keys()],l=r.parallelCommits??!1,u=N((e,n)=>{let r=t.get(e)?.seq,i=t.get(n)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=s.sort(u);jW===`BT`&&(l&&PW(d,t,o),d=d.reverse()),d.forEach(e=>{let s=t.get(e);if(!s)throw Error(`Commit not found for key ${e}`);l&&(o=Cvt(s,jW,o,EW));let u=FW(s,o,l);if(n){let e=Svt(s),t=s.customType??s.type,n=TW.get(s.branch)?.index??0;yvt(i,s,u,e,n,t),bvt(a,s,u,o,r),xvt(a,s,u,o)}jW===`TB`||jW===`BT`?EW.set(s.id,{x:u.x,y:u.posWithOffset}):EW.set(s.id,{x:u.posWithOffset,y:u.y}),o=jW===`BT`&&l?o+_W:o+_W+gW,o>AW&&(AW=o)})},`drawCommits`),Tvt=N((e,t,n,r,i)=>{let a=(jW===`TB`||jW===`BT`?n.xe.branch===a,`isOnBranchToGetCurve`),s=N(n=>n.seq>e.seq&&n.seqs(e)&&o(e))},`shouldRerouteArrow`),IW=N((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:kW.every(e=>Math.abs(e-r)>=10)?(kW.push(r),r):IW(e,t-Math.abs(e-t)/5,n+1)},`findLane`),LW=N((e,t,n,r)=>{let{theme:i}=bs(),a=CW.has(i??``),o=EW.get(t.id),s=EW.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let l=Tvt(t,n,o,s,r),u=``,d=``,f=0,p=0,m=TW.get(n.branch)?.index;n.type===iW.MERGE&&t.id!==n.parents[0]&&(m=TW.get(t.branch)?.index);let h;if(l){u=`A 10 10, 0, 0, 0,`,d=`A 10 10, 0, 0, 1,`,f=10,p=10;let e=o.ys.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===iW.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${d} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):jW===`BT`?(o.xs.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===iW.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${u} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${d} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.ys.y&&(h=n.type===iW.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${u} ${s.x} ${o.y-p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${d} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+wW(m,bW,a))},`drawArrow`),Evt=N((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{LW(n,t.get(e),r,t)})})},`drawArrows`),RW=N((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=bs(),{dropShadow:s,THEME_COLOR_LIMIT:l}=o,u=xW.has(a??``),d=CW.has(a??``),f=e.append(`g`);t.forEach((e,t)=>{let a=wW(t,u?l:bW,d),o=TW.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let p=jW===`TB`||jW===`BT`?o:u?o+SW/2+1:o-2,m=f.append(`line`);m.attr(`x1`,0),m.attr(`y1`,p),m.attr(`x2`,AW),m.attr(`y2`,p),m.attr(`class`,`branch branch`+a),jW===`TB`?(m.attr(`y1`,DW),m.attr(`x1`,o),m.attr(`y2`,AW),m.attr(`x2`,o)):jW===`BT`&&(m.attr(`y1`,AW),m.attr(`x1`,o),m.attr(`y2`,DW),m.attr(`x2`,o)),kW.push(p);let h=e.name,g=pvt(h),_=f.insert(`rect`),v=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);v.node().appendChild(g);let y=g.getBBox(),b=u?0:4,x=u?16:0,S=u?SW:0;i===`neo`&&_.attr(`data-look`,`neo`),_.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${u?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,b).attr(`ry`,b).attr(`x`,-y.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-y.height/2+10).attr(`width`,y.width+18+x).attr(`height`,y.height+4+S),v.attr(`transform`,`translate(`+(-y.width-14-(n.rotateCommitLabel===!0?30:0)+x/2)+`, `+(p-y.height/2-2)+`)`),jW===`TB`?(_.attr(`x`,o-y.width/2-10).attr(`y`,0),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, 0)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${-S-10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(-S*2+7)+`)`))):jW===`BT`?(_.attr(`x`,o-y.width/2-10).attr(`y`,AW),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+AW+`)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${S+10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(AW+S*2+4)+`)`))):_.attr(`transform`,`translate(-19, `+(p-12-S/2)+`)`)})},`drawBranches`),Dvt=N(function(e,t,n,r,i){return TW.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(jW===`TB`||jW===`BT`?r.width/2:0),t},`setBranchPosition`),Ovt={draw:N(function(e,t,n,r){MW(),P.debug(`in gitgraph renderer`,e+` +`,`id:`,t,n);let i=r.db;if(!i.getConfig){P.error(`getConfig method is not available on db`);return}let a=i.getConfig(),o=a.rotateCommitLabel??!1;OW=i.getCommits();let s=i.getBranchesAsObjArray();jW=i.getDirection();let l=Bc(`[id="${t}"]`),{look:u,theme:d,themeVariables:f}=bs(),{useGradient:p,gradientStart:m,gradientStop:h,filterColor:g}=f;if(p){let e=l.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,m).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,h).attr(`stop-opacity`,1)}u===`neo`&&xW.has(d??``)&&l.append(`defs`).append(`filter`).attr(`id`,t+`-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`,g);let _=0;s.forEach((e,t)=>{let n=pvt(e.name),r=l.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let s=n.getBBox();_=Dvt(e.name,_,t,s,o),a.remove(),i.remove(),r.remove()}),wvt(l,OW,!1,a),a.showBranches&&RW(l,s,a,t),Evt(l,OW),wvt(l,OW,!0,a),Wm.insertTitle(l,`gitTitleText`,a.titleTopMargin??0,i.getDiagramTitle()),Cs(void 0,l,a.diagramPadding,a.useMaxWidth)},`draw`)},zW=8,kvt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Avt=new Set([`redux-color`,`redux-dark-color`]),jvt=new Set([`neo`,`neo-dark`]),Mvt=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Nvt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),Pvt=N(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r{let{theme:t,themeVariables:n}=ns(),{borderColorArray:r}=n,i=bvt.has(t);if(xvt.has(t)){let t=``;for(let n=0;n{let{theme:t,themeVariables:n}=Xo(),{borderColorArray:r}=n,i=kvt.has(t);if(jvt.has(t)){let t=``;for(let n=0;n`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%UW;return` + `;return t}},`genColor`),Fvt=N(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%zW;return` .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; } .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; } .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; } .label${t} { fill: ${e[`git`+n]}; } .arrow${t} { stroke: ${e[`git`+n]}; } `}).join(` -`)}`,`normalTheme`),Evt={parser:gW,db:tvt,renderer:HW,styles:N(e=>{let{theme:t}=ns(),n=GW.has(t);return` +`)}`,`normalTheme`),Ivt={parser:hW,db:cvt,renderer:Ovt,styles:N(e=>{let{theme:t}=Xo(),n=Nvt.has(t);return` .commit-id, .commit-msg, .branch-label { @@ -1714,7 +1716,7 @@ ${t}`),this.inline?`{${r}}`:r}},Y(rot,`renderInlineTag`),Y(cI,`renderLinkDefault font-family: var(--mermaid-font-family); } - ${n?wvt(e):Tvt(e)} + ${n?BW(e):Fvt(e)} .branch { stroke-width: ${e.strokeWidth}; @@ -1745,7 +1747,7 @@ ${t}`),this.inline?`{${r}}`:r}},Y(rot,`renderInlineTag`),Y(cI,`renderLinkDefault .arrow { /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ - stroke-width: ${bvt.has(t)?e.strokeWidth:8}; + stroke-width: ${kvt.has(t)?e.strokeWidth:8}; stroke-linecap: round; fill: none } @@ -1754,12 +1756,12 @@ ${t}`),this.inline?`{${r}}`:r}},Y(rot,`renderInlineTag`),Y(cI,`renderLinkDefault font-size: 18px; fill: ${e.textColor}; } -`},`getStyles`)}})),Ovt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),l=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(l,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),KW=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},p={A:[a,function(e){this.afternoon=f(e,!1)}],a:[a,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l(`seconds`)],ss:[i,l(`seconds`)],m:[i,l(`minutes`)],mm:[i,l(`minutes`)],H:[i,l(`hours`)],h:[i,l(`hours`)],HH:[i,l(`hours`)],hh:[i,l(`hours`)],D:[i,l(`day`)],DD:[r,l(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,l(`week`)],ww:[r,l(`week`)],M:[i,l(`month`)],MM:[r,l(`month`)],MMM:[a,function(e){var t=d(`months`),n=(d(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=d(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l(`year`)],Z:u,ZZ:u};function m(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date((t===`X`?1e3:1)*e);var i=m(t)(e),a=i.year,o=i.month,s=i.day,l=i.hours,u=i.minutes,d=i.seconds,f=i.milliseconds,p=i.zone,h=i.week,g=new Date,_=s||(a||o?1:g.getDate()),v=a||g.getFullYear(),y=0;a&&!o||(y=o>0?o-1:g.getMonth());var b,x=l||0,S=u||0,C=d||0,w=f||0;return p?new Date(Date.UTC(v,y,_,x,S,C,w+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,_,x,S,C,w)):(b=new Date(v,y,_,x,S,C,w),h&&(b=r(b).week(h).toDate()),b)}catch{return new Date(``)}}(t,s,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),d&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),kvt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`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(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Avt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,d={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof y},p=function(e,t,n){return new y(e,n,t.$l)},m=function(e){return t.p(e)+`s`},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},_=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:``+_(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*d[m(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[m(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var _=h.prototype;return _.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*d[n]}),0)},_.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/o),e%=o,this.$d.months=g(e/s),e%=s,this.$d.days=g(e/a),e%=a,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},_.toISOString=function(){var e=v(this.$d.years,`Y`),t=v(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,`D`),i=v(this.$d.hours,`H`),a=v(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,`S`),l=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,u=i.format||a.format||s.format?`T`:``,d=(l?`-`:``)+`P`+e.format+t.format+r.format+u+i.format+a.format+s.format;return d===`P`||d===`-P`?`P0D`:d},_.toJSON=function(){return this.toISOString()},_.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(u,(function(e,t){return t||String(r[e])}))},_.as=function(e){return this.$ms/d[m(e)]},_.get=function(e){var t=this.$ms,n=m(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?g(t/d[n]):this.$d[n],t||0},_.add=function(e,t,n){var r=t?e*d[m(t)]:f(e)?e.$ms:p(e,this).$ms;return p(this.$ms+r*(n?-1:1),this)},_.subtract=function(e,t){return this.add(e,t,!0)},_.locale=function(e){var t=this.clone();return t.$l=e,t},_.clone=function(){return p(this.$ms,this)},_.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get(`milliseconds`)},_.asMilliseconds=function(){return this.as(`milliseconds`)},_.seconds=function(){return this.get(`seconds`)},_.asSeconds=function(){return this.as(`seconds`)},_.minutes=function(){return this.get(`minutes`)},_.asMinutes=function(){return this.as(`minutes`)},_.hours=function(){return this.get(`hours`)},_.asHours=function(){return this.as(`hours`)},_.days=function(){return this.get(`days`)},_.asDays=function(){return this.as(`days`)},_.weeks=function(){return this.get(`weeks`)},_.asWeeks=function(){return this.as(`weeks`)},_.months=function(){return this.get(`months`)},_.asMonths=function(){return this.as(`months`)},_.years=function(){return this.get(`years`)},_.asYears=function(){return this.as(`years`)},h}(),b=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return p(e,{$l:i.locale()},t)},i.isDuration=f;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):o.bind(this)(e,t)}}}))})),jvt=l({diagram:()=>Tyt});function qW(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}var Mvt,JW,Nvt,Pvt,Fvt,YW,Ivt,XW,Lvt,Rvt,ZW,zvt,QW,Bvt,$W,eG,Vvt,tG,nG,rG,iG,Hvt,aG,oG,sG,cG,lG,uG,dG,Uvt,Wvt,Gvt,Kvt,qvt,fG,pG,mG,Jvt,Yvt,hG,gG,_G,vG,yG,Xvt,Zvt,Qvt,$vt,eyt,tyt,nyt,ryt,iyt,ayt,bG,oyt,xG,syt,SG,cyt,lyt,uyt,CG,wG,TG,EG,dyt,DG,OG,fyt,kG,AG,pyt,jG,myt,hyt,gyt,_yt,vyt,yyt,byt,xyt,Syt,Cyt,MG,wyt,Tyt,Eyt=o((()=>{Gm(),Ls(),ar(),tr(),Mvt=ym(),JW=d(nse(),1),Nvt=d(Ovt(),1),Pvt=d(KW(),1),Fvt=d(kvt(),1),YW=d(nse(),1),Ivt=d(Avt(),1),Dp(),XW=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[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],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`},`getStyles`)}})),Rvt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),l=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(l,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),zvt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},p={A:[a,function(e){this.afternoon=f(e,!1)}],a:[a,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l(`seconds`)],ss:[i,l(`seconds`)],m:[i,l(`minutes`)],mm:[i,l(`minutes`)],H:[i,l(`hours`)],h:[i,l(`hours`)],HH:[i,l(`hours`)],hh:[i,l(`hours`)],D:[i,l(`day`)],DD:[r,l(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,l(`week`)],ww:[r,l(`week`)],M:[i,l(`month`)],MM:[r,l(`month`)],MMM:[a,function(e){var t=d(`months`),n=(d(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=d(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l(`year`)],Z:u,ZZ:u};function m(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date((t===`X`?1e3:1)*e);var i=m(t)(e),a=i.year,o=i.month,s=i.day,l=i.hours,u=i.minutes,d=i.seconds,f=i.milliseconds,p=i.zone,h=i.week,g=new Date,_=s||(a||o?1:g.getDate()),v=a||g.getFullYear(),y=0;a&&!o||(y=o>0?o-1:g.getMonth());var b,x=l||0,S=u||0,C=d||0,w=f||0;return p?new Date(Date.UTC(v,y,_,x,S,C,w+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,_,x,S,C,w)):(b=new Date(v,y,_,x,S,C,w),h&&(b=r(b).week(h).toDate()),b)}catch{return new Date(``)}}(t,s,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),d&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Bvt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`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(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Vvt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,d={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof y},p=function(e,t,n){return new y(e,n,t.$l)},m=function(e){return t.p(e)+`s`},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},_=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:``+_(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*d[m(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[m(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var _=h.prototype;return _.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*d[n]}),0)},_.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/o),e%=o,this.$d.months=g(e/s),e%=s,this.$d.days=g(e/a),e%=a,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},_.toISOString=function(){var e=v(this.$d.years,`Y`),t=v(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,`D`),i=v(this.$d.hours,`H`),a=v(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,`S`),l=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,u=i.format||a.format||s.format?`T`:``,d=(l?`-`:``)+`P`+e.format+t.format+r.format+u+i.format+a.format+s.format;return d===`P`||d===`-P`?`P0D`:d},_.toJSON=function(){return this.toISOString()},_.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(u,(function(e,t){return t||String(r[e])}))},_.as=function(e){return this.$ms/d[m(e)]},_.get=function(e){var t=this.$ms,n=m(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?g(t/d[n]):this.$d[n],t||0},_.add=function(e,t,n){var r=t?e*d[m(t)]:f(e)?e.$ms:p(e,this).$ms;return p(this.$ms+r*(n?-1:1),this)},_.subtract=function(e,t){return this.add(e,t,!0)},_.locale=function(e){var t=this.clone();return t.$l=e,t},_.clone=function(){return p(this.$ms,this)},_.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get(`milliseconds`)},_.asMilliseconds=function(){return this.as(`milliseconds`)},_.seconds=function(){return this.get(`seconds`)},_.asSeconds=function(){return this.as(`seconds`)},_.minutes=function(){return this.get(`minutes`)},_.asMinutes=function(){return this.as(`minutes`)},_.hours=function(){return this.get(`hours`)},_.asHours=function(){return this.as(`hours`)},_.days=function(){return this.get(`days`)},_.asDays=function(){return this.as(`days`)},_.weeks=function(){return this.get(`weeks`)},_.asWeeks=function(){return this.as(`weeks`)},_.months=function(){return this.get(`months`)},_.asMonths=function(){return this.as(`months`)},_.years=function(){return this.get(`years`)},_.asYears=function(){return this.as(`years`)},h}(),b=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return p(e,{$l:i.locale()},t)},i.isDuration=f;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):o.bind(this)(e,t)}}}))})),Hvt=l({diagram:()=>Pyt});function Uvt(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}var Wvt,VW,Gvt,Kvt,qvt,HW,Jvt,UW,Yvt,Xvt,WW,Zvt,GW,KW,qW,JW,YW,XW,ZW,QW,$W,Qvt,eG,tG,nG,rG,iG,aG,$vt,oG,sG,cG,eyt,tyt,lG,uG,dG,fG,pG,nyt,ryt,iyt,ayt,oyt,syt,cyt,lyt,uyt,dyt,fyt,pyt,mG,myt,hyt,hG,gyt,_yt,gG,_G,vG,vyt,yG,bG,xG,yyt,SG,CG,byt,wG,TG,EG,xyt,Syt,DG,Cyt,wyt,Tyt,Eyt,Dyt,Oyt,kyt,Ayt,jyt,Myt,OG,Nyt,Pyt,Fyt=o((()=>{qm(),Os(),er(),Zn(),Wvt=OEe(),VW=d(dse(),1),Gvt=d(Rvt(),1),Kvt=d(zvt(),1),qvt=d(Bvt(),1),HW=d(dse(),1),Jvt=d(Vvt(),1),Dp(),UW=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[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],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function O(){this.yy={}}return N(O,`Parser`),O.prototype=D,D.Parser=O,new O})(),XW.parser=XW,Lvt=XW,JW.default.extend(Nvt.default),JW.default.extend(Pvt.default),JW.default.extend(Fvt.default),Rvt={friday:5,saturday:6},ZW=``,zvt=``,QW=void 0,Bvt=``,$W=[],eG=[],Vvt=new Map,tG=[],nG=[],rG=``,iG=``,Hvt=[`active`,`done`,`crit`,`milestone`,`vert`],aG=[],oG=``,sG=!1,cG=!1,lG=`sunday`,uG=`saturday`,dG=0,Uvt=N(function(){tG=[],nG=[],rG=``,aG=[],TG=0,OG=void 0,fyt=void 0,kG=[],ZW=``,zvt=``,iG=``,QW=void 0,Bvt=``,$W=[],eG=[],sG=!1,cG=!1,dG=0,Vvt=new Map,oG=``,Ss(),lG=`sunday`,uG=`saturday`},`clear`),Wvt=N(function(e){oG=e},`setDiagramId`),Gvt=N(function(e){zvt=e},`setAxisFormat`),Kvt=N(function(){return zvt},`getAxisFormat`),qvt=N(function(e){QW=e},`setTickInterval`),fG=N(function(){return QW},`getTickInterval`),pG=N(function(e){Bvt=e},`setTodayMarker`),mG=N(function(){return Bvt},`getTodayMarker`),Jvt=N(function(e){ZW=e},`setDateFormat`),Yvt=N(function(){sG=!0},`enableInclusiveEndDates`),hG=N(function(){return sG},`endDatesAreInclusive`),gG=N(function(){cG=!0},`enableTopAxis`),_G=N(function(){return cG},`topAxisEnabled`),vG=N(function(e){iG=e},`setDisplayMode`),yG=N(function(){return iG},`getDisplayMode`),Xvt=N(function(){return ZW},`getDateFormat`),Zvt=N((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),Qvt=N(function(e){$W=Zvt($W,e)},`setIncludes`),$vt=N(function(){return $W},`getIncludes`),eyt=N(function(e){eG=Zvt(eG,e)},`setExcludes`),tyt=N(function(){return eG},`getExcludes`),nyt=N(function(){return Vvt},`getLinks`),ryt=N(function(e){rG=e,tG.push(e)},`addSection`),iyt=N(function(){return tG},`getSections`),ayt=N(function(){let e=hyt(),t=0;for(;!e&&t<10;)e=hyt(),t++;return nG=kG,nG},`getTasks`),bG=N(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===Rvt[uG]||e.isoWeekday()===Rvt[uG]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),oyt=N(function(e){lG=e},`setWeekday`),xG=N(function(){return lG},`getWeekday`),syt=N(function(e){uG=e},`setWeekend`),SG=N(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,JW.default)(e.startTime):(0,JW.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,JW.default)(e.endTime):(0,JW.default)(e.endTime,t,!0);let[o,s]=cyt(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),cyt=N(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=bG(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),lyt=N(function(e,t){P.warn(`Gantt: the "${e}" statement references unknown task id(s): ${t.join(`, `)}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},`warnAboutUnknownTaskIds`),uyt=N(function(e,t,n){if(n=n.trim(),N(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?[\d\w- ]+)/.exec(n);if(r!==null){let e=null,t=[],n=r.groups.ids.split(` `).filter(e=>e!==``);for(let r of n){let n=jG(r);if(n===void 0){t.push(r);continue}(!e||n.endTime>e.endTime)&&(e=n)}if(t.length>0&&lyt(`after`,t),e)return e.endTime;let i=new Date;return i.setHours(0,0,0,0),i}let i=(0,JW.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{P.debug(`Invalid date:`+n),P.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),CG=N(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),wG=N(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?[\d\w- ]+)/.exec(n);if(i!==null){let e=null,t=[],n=i.groups.ids.split(` `).filter(e=>e!==``);for(let r of n){let n=jG(r);if(n===void 0){t.push(r);continue}(!e||n.startTime0&&lyt(`until`,t),e)return e.startTime;let r=new Date;return r.setHours(0,0,0,0),r}let a=(0,JW.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,JW.default)(e),[s,l]=CG(n);if(Number.isNaN(s))P.warn(`Gantt: "${n}" is neither a valid date for the "${t.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let e=o.add(s,l);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),TG=0,EG=N(function(e){return e===void 0?(TG+=1,`task`+TG):e},`parseId`),dyt=N(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};qW(r,i,Hvt);for(let e=0;e{window.open(n,`_self`)}),Vvt.set(e,n))}),_yt(e,`clickable`)},`setLink`),_yt=N(function(e,t){e.split(`,`).forEach(function(e){let n=jG(e);n!==void 0&&n.classes.push(t)})},`setClass`),vyt=N(function(e,t,n){if(As().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{Hm.runFunc(t,...r)})},`setClickFun`),yyt=N(function(e,t){aG.push(function(){let n=oG?`${oG}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=oG?`${oG}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),byt={getConfig:N(()=>As().gantt,`getConfig`),clear:Uvt,setDateFormat:Jvt,getDateFormat:Xvt,enableInclusiveEndDates:Yvt,endDatesAreInclusive:hG,enableTopAxis:gG,topAxisEnabled:_G,setAxisFormat:Gvt,getAxisFormat:Kvt,setTickInterval:qvt,getTickInterval:fG,setTodayMarker:pG,getTodayMarker:mG,setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,setDiagramId:Wvt,setDisplayMode:vG,getDisplayMode:yG,setAccDescription:Ts,getAccDescription:Es,addSection:ryt,getSections:iyt,getTasks:ayt,addTask:pyt,findTaskById:jG,addTaskOrg:myt,setIncludes:Qvt,getIncludes:$vt,setExcludes:eyt,getExcludes:tyt,setClickEvent:N(function(e,t,n){e.split(`,`).forEach(function(e){vyt(e,t,n)}),_yt(e,`clickable`)},`setClickEvent`),setLink:gyt,getLinks:nyt,bindFunctions:N(function(e){aG.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:CG,isInvalidDate:bG,setWeekday:oyt,getWeekday:xG,setWeekend:syt},N(qW,`getTaskTags`),YW.default.extend(Ivt.default),xyt=N(function(){P.debug(`Something is calling, setConf, remove the call`)},`setConf`),Syt={monday:rf,tuesday:af,wednesday:Lxe,thursday:of,friday:Rxe,saturday:zxe,sunday:nf},Cyt=N((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),wyt=1e4,Tyt={parser:Lvt,db:byt,renderer:{setConf:xyt,draw:N(function(e,t,n,r){let i=As().gantt;r.db.setDiagramId(t);let a=As().securityLevel,o;a===`sandbox`&&(o=Qc(`#i`+t));let s=Qc(a===`sandbox`?o.nodes()[0].contentDocument.body:`body`),l=a===`sandbox`?o.nodes()[0].contentDocument:document,u=l.getElementById(t);MG=u.parentElement.offsetWidth,MG===void 0&&(MG=1200),i.useWidth!==void 0&&(MG=i.useWidth);let d=r.db.getTasks(),f=d.filter(e=>!e.vert),p=[];for(let e of f)p.push(e.type);p=E(p);let m={},h=2*i.topPadding;if(r.db.getDisplayMode()===`compact`||i.displayMode===`compact`){let e={};for(let t of f)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Cyt(e[n],t)+1;t+=r,h+=r*(i.barHeight+i.barGap),m[n]=r}}else{h+=f.length*(i.barHeight+i.barGap);for(let e of p)m[e]=f.filter(t=>t.type===e).length}u.setAttribute(`viewBox`,`0 0 `+MG+` `+h);let g=s.select(`[id="${t}"]`),_=lCe().domain([qs(d,function(e){return e.startTime}),Gs(d,function(e){return e.endTime})]).rangeRound([0,MG-i.leftPadding-i.rightPadding]);function v(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:ne.vert===t.vert?0:e.vert?1:-1);let d=e.filter(e=>!e.vert),f=[...new Set(d.map(e=>e.order))].map(e=>d.find(t=>t.order===e));g.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+a-2}).attr(`width`,function(){return u-i.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of p.entries())if(e.type===n)return`section section`+t%i.numberSectionStyles;return`section section0`}).enter();let m=g.append(`g`).selectAll(`rect`).data(e).enter(),h=r.db.getLinks();if(m.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))-.5*s:_(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:_(e.renderEndTime||e.endTime)-_(e.startTime)}).attr(`height`,function(e){return e.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))).toString()+`px `+(t*n+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of p.entries())e.type===r&&(n=t%i.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),m.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,i.fontSize).attr(`x`,function(e){let t=_(e.startTime),n=_(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(_(e.endTime)-_(e.startTime))-.5*s,n=t+s),e.vert)return _(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>u?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(t=e.order,t*n+i.barHeight/2+(i.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=_(e.startTime),n=_(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,a=``;e.classes.length>0&&(a=e.classes.join(` `));let o=0;for(let[t,n]of p.entries())e.type===n&&(o=t%i.numberSectionStyles);let l=``;return e.active&&(l=e.crit?`activeCritText`+o:`activeText`+o),e.done?l=e.crit?l+` doneCritText`+o:l+` doneText`+o:e.crit&&(l=l+` critText`+o),e.milestone&&(l+=` milestoneText`),e.vert&&(l+=` vertText`),r>n-t?n+r+1.5*i.leftPadding>u?a+` taskTextOutsideLeft taskTextOutside`+o+` `+l:a+` taskTextOutsideRight taskTextOutside`+o+` `+l+` width-`+r:a+` taskText taskText`+o+` `+l+` width-`+r}),As().securityLevel===`sandbox`){let e;e=Qc(`#i`+t);let n=e.nodes()[0].contentDocument;m.filter(function(e){return h.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,h.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}N(b,`drawRects`);function x(e,n,a,o,s,l,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of l)(f===void 0||ep)&&(p=t);if(!f||!p)return;if((0,YW.default)(p).diff((0,YW.default)(f),`year`)>5){P.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let m=r.db.getDateFormat(),h=[],v=null,y=(0,YW.default)(f);for(;y.valueOf()<=p;)r.db.isInvalidDate(y,m,u,d)?v?v.end=y:v={start:y,end:y}:v&&=(h.push(v),null),y=y.add(1,`d`);g.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>_(e.start.startOf(`day`))+a).attr(`y`,i.gridLineStartPadding).attr(`width`,e=>_(e.end.endOf(`day`))-_(e.start.startOf(`day`))).attr(`height`,s-n-i.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(_(t.start)+a+.5*(_(t.end)-_(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}N(x,`drawExcludeDays`);function S(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=YW.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}N(S,`getEstimatedTickCount`);function C(e,t,n,a){let o=r.db.getDateFormat(),s=r.db.getAxisFormat(),l;l=s||(o===`D`?`%d`:i.axisFormat??`%Y-%m-%d`);let u=Ume(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(rCe(l)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)P.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],n=r.db.getWeekday()||i.weekday,a=_.domain(),o=a[0],s=a[1],l=S(o,s,e,t);if(l>wyt)P.warn(`The tick interval "${e}${t}" would generate ${l} ticks, which exceeds the maximum allowed (${wyt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:u.ticks(Rd.every(e));break;case`second`:u.ticks(qd.every(e));break;case`minute`:u.ticks(Jd.every(e));break;case`hour`:u.ticks(Yd.every(e));break;case`day`:u.ticks(Qd.every(e));break;case`week`:u.ticks(Syt[n].every(e));break;case`month`:u.ticks(lf.every(e))}}}if(g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(a-50)+`)`).call(u).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),r.db.topAxisEnabled()||i.topAxis){let n=rc(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(rCe(l));if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)P.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],a=r.db.getWeekday()||i.weekday,o=_.domain(),s=o[0],l=o[1];if(S(s,l,e,t)<=wyt)switch(t){case`millisecond`:n.ticks(Rd.every(e));break;case`second`:n.ticks(qd.every(e));break;case`minute`:n.ticks(Jd.every(e));break;case`hour`:n.ticks(Yd.every(e));break;case`day`:n.ticks(Qd.every(e));break;case`week`:n.ticks(Syt[a].every(e));break;case`month`:n.ticks(lf.every(e))}}}g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}N(C,`makeGrid`);function w(e,t){let n=0,r=Object.keys(m).map(e=>[e,m[e]]);g.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(gs.lineBreakRegex),n=-(t.length-1)/2,r=l.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=l.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function O(){this.yy={}}return N(O,`Parser`),O.prototype=D,D.Parser=O,new O})(),UW.parser=UW,Yvt=UW,VW.default.extend(Gvt.default),VW.default.extend(Kvt.default),VW.default.extend(qvt.default),Xvt={friday:5,saturday:6},WW=``,Zvt=``,GW=void 0,KW=``,qW=[],JW=[],YW=new Map,XW=[],ZW=[],QW=``,$W=``,Qvt=[`active`,`done`,`crit`,`milestone`,`vert`],eG=[],tG=``,nG=!1,rG=!1,iG=`sunday`,aG=`saturday`,$vt=0,oG=N(function(){XW=[],ZW=[],QW=``,eG=[],yyt=0,wG=void 0,TG=void 0,EG=[],WW=``,Zvt=``,$W=``,GW=void 0,KW=``,qW=[],JW=[],nG=!1,rG=!1,$vt=0,YW=new Map,tG=``,fs(),iG=`sunday`,aG=`saturday`},`clear`),sG=N(function(e){tG=e},`setDiagramId`),cG=N(function(e){Zvt=e},`setAxisFormat`),eyt=N(function(){return Zvt},`getAxisFormat`),tyt=N(function(e){GW=e},`setTickInterval`),lG=N(function(){return GW},`getTickInterval`),uG=N(function(e){KW=e},`setTodayMarker`),dG=N(function(){return KW},`getTodayMarker`),fG=N(function(e){WW=e},`setDateFormat`),pG=N(function(){nG=!0},`enableInclusiveEndDates`),nyt=N(function(){return nG},`endDatesAreInclusive`),ryt=N(function(){rG=!0},`enableTopAxis`),iyt=N(function(){return rG},`topAxisEnabled`),ayt=N(function(e){$W=e},`setDisplayMode`),oyt=N(function(){return $W},`getDisplayMode`),syt=N(function(){return WW},`getDateFormat`),cyt=N((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),lyt=N(function(e){qW=cyt(qW,e)},`setIncludes`),uyt=N(function(){return qW},`getIncludes`),dyt=N(function(e){JW=cyt(JW,e)},`setExcludes`),fyt=N(function(){return JW},`getExcludes`),pyt=N(function(){return YW},`getLinks`),mG=N(function(e){QW=e,XW.push(e)},`addSection`),myt=N(function(){return XW},`getSections`),hyt=N(function(){let e=wyt(),t=0;for(;!e&&t<10;)e=wyt(),t++;return ZW=EG,ZW},`getTasks`),hG=N(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===Xvt[aG]||e.isoWeekday()===Xvt[aG]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),gyt=N(function(e){iG=e},`setWeekday`),_yt=N(function(){return iG},`getWeekday`),gG=N(function(e){aG=e},`setWeekend`),_G=N(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,VW.default)(e.startTime):(0,VW.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,VW.default)(e.endTime):(0,VW.default)(e.endTime,t,!0);let[o,s]=vG(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),vG=N(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=hG(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),vyt=N(function(e,t){P.warn(`Gantt: the "${e}" statement references unknown task id(s): ${t.join(`, `)}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},`warnAboutUnknownTaskIds`),yG=N(function(e,t,n){if(n=n.trim(),N(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?[\d\w- ]+)/.exec(n);if(r!==null){let e=null,t=[],n=r.groups.ids.split(` `).filter(e=>e!==``);for(let r of n){let n=DG(r);if(n===void 0){t.push(r);continue}(!e||n.endTime>e.endTime)&&(e=n)}if(t.length>0&&vyt(`after`,t),e)return e.endTime;let i=new Date;return i.setHours(0,0,0,0),i}let i=(0,VW.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{P.debug(`Invalid date:`+n),P.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),bG=N(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),xG=N(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?[\d\w- ]+)/.exec(n);if(i!==null){let e=null,t=[],n=i.groups.ids.split(` `).filter(e=>e!==``);for(let r of n){let n=DG(r);if(n===void 0){t.push(r);continue}(!e||n.startTime0&&vyt(`until`,t),e)return e.startTime;let r=new Date;return r.setHours(0,0,0,0),r}let a=(0,VW.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,VW.default)(e),[s,l]=bG(n);if(Number.isNaN(s))P.warn(`Gantt: "${n}" is neither a valid date for the "${t.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let e=o.add(s,l);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),yyt=0,SG=N(function(e){return e===void 0?(yyt+=1,`task`+yyt):e},`parseId`),CG=N(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Uvt(r,i,Qvt);for(let e=0;e{window.open(n,`_self`)}),YW.set(e,n))}),Eyt(e,`clickable`)},`setLink`),Eyt=N(function(e,t){e.split(`,`).forEach(function(e){let n=DG(e);n!==void 0&&n.classes.push(t)})},`setClass`),Dyt=N(function(e,t,n){if(bs().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{Wm.runFunc(t,...r)})},`setClickFun`),Oyt=N(function(e,t){eG.push(function(){let n=tG?`${tG}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=tG?`${tG}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),kyt={getConfig:N(()=>bs().gantt,`getConfig`),clear:oG,setDateFormat:fG,getDateFormat:syt,enableInclusiveEndDates:pG,endDatesAreInclusive:nyt,enableTopAxis:ryt,topAxisEnabled:iyt,setAxisFormat:cG,getAxisFormat:eyt,setTickInterval:tyt,getTickInterval:lG,setTodayMarker:uG,getTodayMarker:dG,setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,setDiagramId:sG,setDisplayMode:ayt,getDisplayMode:oyt,setAccDescription:hs,getAccDescription:gs,addSection:mG,getSections:myt,getTasks:hyt,addTask:Syt,findTaskById:DG,addTaskOrg:Cyt,setIncludes:lyt,getIncludes:uyt,setExcludes:dyt,getExcludes:fyt,setClickEvent:N(function(e,t,n){e.split(`,`).forEach(function(e){Dyt(e,t,n)}),Eyt(e,`clickable`)},`setClickEvent`),setLink:Tyt,getLinks:pyt,bindFunctions:N(function(e){eG.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:bG,isInvalidDate:hG,setWeekday:gyt,getWeekday:_yt,setWeekend:gG},N(Uvt,`getTaskTags`),HW.default.extend(Jvt.default),Ayt=N(function(){P.debug(`Something is calling, setConf, remove the call`)},`setConf`),jyt={monday:Zd,tuesday:Jxe,wednesday:Yxe,thursday:Qd,friday:Xxe,saturday:Zxe,sunday:Xd},Myt=N((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),Nyt=1e4,Pyt={parser:Yvt,db:kyt,renderer:{setConf:Ayt,draw:N(function(e,t,n,r){let i=bs().gantt;r.db.setDiagramId(t);let a=bs().securityLevel,o;a===`sandbox`&&(o=Bc(`#i`+t));let s=Bc(a===`sandbox`?o.nodes()[0].contentDocument.body:`body`),l=a===`sandbox`?o.nodes()[0].contentDocument:document,u=l.getElementById(t);OG=u.parentElement.offsetWidth,OG===void 0&&(OG=1200),i.useWidth!==void 0&&(OG=i.useWidth);let d=r.db.getTasks(),f=d.filter(e=>!e.vert),p=[];for(let e of f)p.push(e.type);p=E(p);let m={},h=2*i.topPadding;if(r.db.getDisplayMode()===`compact`||i.displayMode===`compact`){let e={};for(let t of f)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Myt(e[n],t)+1;t+=r,h+=r*(i.barHeight+i.barGap),m[n]=r}}else{h+=f.length*(i.barHeight+i.barGap);for(let e of p)m[e]=f.filter(t=>t.type===e).length}u.setAttribute(`viewBox`,`0 0 `+OG+` `+h);let g=s.select(`[id="${t}"]`),_=gCe().domain([zs(d,function(e){return e.startTime}),Ls(d,function(e){return e.endTime})]).rangeRound([0,OG-i.leftPadding-i.rightPadding]);function v(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:ne.vert===t.vert?0:e.vert?1:-1);let d=e.filter(e=>!e.vert),f=[...new Set(d.map(e=>e.order))].map(e=>d.find(t=>t.order===e));g.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+a-2}).attr(`width`,function(){return u-i.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of p.entries())if(e.type===n)return`section section`+t%i.numberSectionStyles;return`section section0`}).enter();let m=g.append(`g`).selectAll(`rect`).data(e).enter(),h=r.db.getLinks();if(m.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))-.5*s:_(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:_(e.renderEndTime||e.endTime)-_(e.startTime)}).attr(`height`,function(e){return e.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))).toString()+`px `+(t*n+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of p.entries())e.type===r&&(n=t%i.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),m.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,i.fontSize).attr(`x`,function(e){let t=_(e.startTime),n=_(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(_(e.endTime)-_(e.startTime))-.5*s,n=t+s),e.vert)return _(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>u?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(t=e.order,t*n+i.barHeight/2+(i.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=_(e.startTime),n=_(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,a=``;e.classes.length>0&&(a=e.classes.join(` `));let o=0;for(let[t,n]of p.entries())e.type===n&&(o=t%i.numberSectionStyles);let l=``;return e.active&&(l=e.crit?`activeCritText`+o:`activeText`+o),e.done?l=e.crit?l+` doneCritText`+o:l+` doneText`+o:e.crit&&(l=l+` critText`+o),e.milestone&&(l+=` milestoneText`),e.vert&&(l+=` vertText`),r>n-t?n+r+1.5*i.leftPadding>u?a+` taskTextOutsideLeft taskTextOutside`+o+` `+l:a+` taskTextOutsideRight taskTextOutside`+o+` `+l+` width-`+r:a+` taskText taskText`+o+` `+l+` width-`+r}),bs().securityLevel===`sandbox`){let e;e=Bc(`#i`+t);let n=e.nodes()[0].contentDocument;m.filter(function(e){return h.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,h.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}N(b,`drawRects`);function x(e,n,a,o,s,l,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of l)(f===void 0||ep)&&(p=t);if(!f||!p)return;if((0,HW.default)(p).diff((0,HW.default)(f),`year`)>5){P.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let m=r.db.getDateFormat(),h=[],v=null,y=(0,HW.default)(f);for(;y.valueOf()<=p;)r.db.isInvalidDate(y,m,u,d)?v?v.end=y:v={start:y,end:y}:v&&=(h.push(v),null),y=y.add(1,`d`);g.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>_(e.start.startOf(`day`))+a).attr(`y`,i.gridLineStartPadding).attr(`width`,e=>_(e.end.endOf(`day`))-_(e.start.startOf(`day`))).attr(`height`,s-n-i.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(_(t.start)+a+.5*(_(t.end)-_(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}N(x,`drawExcludeDays`);function S(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=HW.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}N(S,`getEstimatedTickCount`);function C(e,t,n,a){let o=r.db.getDateFormat(),s=r.db.getAxisFormat(),l;l=s||(o===`D`?`%d`:i.axisFormat??`%Y-%m-%d`);let u=ahe(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(Af(l)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)P.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],n=r.db.getWeekday()||i.weekday,a=_.domain(),o=a[0],s=a[1],l=S(o,s,e,t);if(l>Nyt)P.warn(`The tick interval "${e}${t}" would generate ${l} ticks, which exceeds the maximum allowed (${Nyt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:u.ticks(jd.every(e));break;case`second`:u.ticks(zd.every(e));break;case`minute`:u.ticks(Vd.every(e));break;case`hour`:u.ticks(Wd.every(e));break;case`day`:u.ticks(Gd.every(e));break;case`week`:u.ticks(jyt[n].every(e));break;case`month`:u.ticks(tf.every(e))}}}if(g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(a-50)+`)`).call(u).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),r.db.topAxisEnabled()||i.topAxis){let n=Ks(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(Af(l));if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)P.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],a=r.db.getWeekday()||i.weekday,o=_.domain(),s=o[0],l=o[1];if(S(s,l,e,t)<=Nyt)switch(t){case`millisecond`:n.ticks(jd.every(e));break;case`second`:n.ticks(zd.every(e));break;case`minute`:n.ticks(Vd.every(e));break;case`hour`:n.ticks(Wd.every(e));break;case`day`:n.ticks(Gd.every(e));break;case`week`:n.ticks(jyt[a].every(e));break;case`month`:n.ticks(tf.every(e))}}}g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}N(C,`makeGrid`);function w(e,t){let n=0,r=Object.keys(m).map(e=>[e,m[e]]);g.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(cs.lineBreakRegex),n=-(t.length-1)/2,r=l.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=l.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o` .mermaid-main-font { font-family: ${e.fontFamily}; } @@ -2045,8 +2047,8 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l fill: ${e.titleColor||e.textColor}; font-family: ${e.fontFamily}; } -`,`getStyles`)}})),Dyt=l({diagram:()=>Ayt}),Oyt,kyt,Ayt,jyt=o((()=>{kp(),Ls(),ar(),tr(),iW(),Oyt={parse:N(async e=>{let t=await eW(`info`,e);P.debug(t)},`parse`)},kyt={version:`12.2.0`},Ayt={parser:Oyt,db:{getVersion:N(()=>kyt.version,`getVersion`)},renderer:{draw:N((e,t,n)=>{P.debug(`rendering info diagram -`+e);let r=Op(t);_s(r,100,400,!0),r.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${n}`)},`draw`)}}})),Myt=l({diagram:()=>zyt}),Nyt,NG,PG,Pyt,Fyt,FG,Iyt,Lyt,Ryt,IG,zyt,LG=o((()=>{sP(),kp(),Gm(),Ls(),ar(),tr(),iW(),Dp(),Nyt=Wo.pie,NG={sections:new Map,showData:!1,config:Nyt},PG=NG.sections,Pyt=NG.showData,Fyt=structuredClone(Nyt),FG={getConfig:N(()=>structuredClone(Fyt),`getConfig`),clear:N(()=>{PG=new Map,Pyt=NG.showData,Ss()},`clear`),setDiagramTitle:Ds,getDiagramTitle:Os,setAccTitle:Cs,getAccTitle:ws,setAccDescription:Ts,getAccDescription:Es,addSection:N(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);PG.has(e)||(PG.set(e,t),P.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:N(()=>PG,`getSections`),setShowData:N(e=>{Pyt=e},`setShowData`),getShowData:N(()=>Pyt,`getShowData`)},Iyt=N((e,t)=>{oP(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),Lyt={parse:N(async e=>{let t=await eW(`pie`,e);P.debug(t),Iyt(t,FG)},`parse`)},Ryt=N(e=>` +`,`getStyles`)}})),Iyt=l({diagram:()=>zyt}),Lyt,Ryt,zyt,Byt=o((()=>{kp(),Os(),er(),Zn(),nW(),Lyt={parse:N(async e=>{let t=await QU(`info`,e);P.debug(t)},`parse`)},Ryt={version:`12.2.0`},zyt={parser:Lyt,db:{getVersion:N(()=>Ryt.version,`getVersion`)},renderer:{draw:N((e,t,n)=>{P.debug(`rendering info diagram +`+e);let r=Op(t);ls(r,100,400,!0),r.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${n}`)},`draw`)}}})),Vyt=l({diagram:()=>Gyt}),kG,AG,jG,MG,NG,Hyt,PG,FG,Uyt,Wyt,Gyt,IG=o((()=>{sP(),kp(),qm(),Os(),er(),Zn(),nW(),Dp(),kG=Fo.pie,AG={sections:new Map,showData:!1,config:kG},jG=AG.sections,MG=AG.showData,NG=structuredClone(kG),Hyt={getConfig:N(()=>structuredClone(NG),`getConfig`),clear:N(()=>{jG=new Map,MG=AG.showData,fs()},`clear`),setDiagramTitle:_s,getDiagramTitle:vs,setAccTitle:ps,getAccTitle:ms,setAccDescription:hs,getAccDescription:gs,addSection:N(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);jG.has(e)||(jG.set(e,t),P.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:N(()=>jG,`getSections`),setShowData:N(e=>{MG=e},`setShowData`),getShowData:N(()=>MG,`getShowData`)},PG=N((e,t)=>{oP(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),FG={parse:N(async e=>{let t=await QU(`pie`,e);P.debug(t),PG(t,Hyt)},`parse`)},Uyt=N(e=>` .pieCircle{ stroke: ${e.pieStrokeColor}; stroke-width : ${e.pieStrokeWidth}; @@ -2083,25 +2085,25 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l font-family: ${e.fontFamily}; font-size: ${e.pieLegendTextSize}; } -`,`getStyles`),IG=N(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return FCe().value(e=>e.value).sort(null)(n)},`createPieArcs`),zyt={parser:Lyt,db:FG,renderer:{draw:N((e,t,n,r)=>{P.debug(`rendering pie chart -`+e);let i=r.db,a=As(),o=Rm(i.getConfig(),a.pie),s=Op(t),l=s.append(`g`);l.attr(`transform`,`translate(225,225)`);let{themeVariables:u}=a,[d]=Vm(u.pieOuterStrokeWidth);d??=2;let f=o.legendPosition,p=o.textPosition,m=o.donutHole>0&&o.donutHole<=.9?o.donutHole:0,h=Qf().innerRadius(m*185).outerRadius(185),g=Qf().innerRadius(185*p).outerRadius(185*p),_=l.append(`g`);_.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+d/2).attr(`class`,`pieOuterCircle`);let v=i.getSections(),y=IG(v),b=[u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12],x=0;v.forEach(e=>{x+=e});let S=y.filter(e=>(e.data.value/x*100).toFixed(0)!==`0`),C=Od(b).domain([...v.keys()]);_.selectAll(`mySlices`).data(S).enter().append(`path`).attr(`d`,h).attr(`fill`,e=>C(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return o.highlightSlice===`hover`?t+=` highlightedOnHover`:o.highlightSlice===e.data.label&&(t+=` highlighted`),t}),_.selectAll(`mySlices`).data(S).enter().append(`text`).text(e=>(e.data.value/x*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+g.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let w=l.append(`text`).text(i.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),T=[...v.entries()].map(([e,t])=>({label:e,value:t})),E=l.selectAll(`.legend`).data(T).enter().append(`g`).attr(`class`,`legend`);E.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>C(e.label)).style(`stroke`,e=>C(e.label)),E.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>i.getShowData()?`${e.label} [${e.value}]`:e.label);let D=Math.max(...E.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),O=450,k=490,A=T.length*22;switch(f){case`center`:E.attr(`transform`,(e,t)=>{let n=22*T.length/2,r=-D/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:O+=A,E.attr(`transform`,(e,t)=>`translate(${-D/2-22}, ${t*22-185})`),_.attr(`transform`,()=>`translate(0, ${A+22})`);break;case`bottom`:O+=A,E.attr(`transform`,(e,t)=>{let n=-D/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(-207,`+(t*22-n)+`)`}),_.attr(`transform`,()=>`translate(${D+18+4}, 0)`);break;default:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(216,`+(t*22-n)+`)`})}let j=w.node()?.getBoundingClientRect().width??0,M=225-j/2,ee=225+j/2,te=Math.min(0,M),ne=Math.max(k,ee)-te;s.attr(`viewBox`,`${te} 0 ${ne} ${O}`),_s(s,O,ne,o.useMaxWidth)},`draw`)},styles:Ryt}})),Byt=l({diagram:()=>KG});function Vyt(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function Hyt(e){return!/^\d+$/.test(e)}function Uyt(e){return!/^\d+px$/.test(e)}function RG(e){return ls(e.trim(),As())}function zG(e){GG.setData({quadrant1Text:RG(e.text)})}function BG(e){GG.setData({quadrant2Text:RG(e.text)})}function Wyt(e){GG.setData({quadrant3Text:RG(e.text)})}function Gyt(e){GG.setData({quadrant4Text:RG(e.text)})}function Kyt(e){GG.setData({xAxisLeftText:RG(e.text)})}function qyt(e){GG.setData({xAxisRightText:RG(e.text)})}function Jyt(e){GG.setData({yAxisTopText:RG(e.text)})}function Yyt(e){GG.setData({yAxisBottomText:RG(e.text)})}function Xyt(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(Hyt(r))throw new WG(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(Vyt(r))throw new WG(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(Vyt(r))throw new WG(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(Uyt(r))throw new WG(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}function Zyt(e,t,n,r,i){let a=Xyt(i);GG.addPoints([{x:n,y:r,text:RG(e.text),className:t,...a}])}function Qyt(e,t){GG.addClass(e,Xyt(t))}function $yt(e){GG.setConfig({chartWidth:e})}function ebt(e){GG.setConfig({chartHeight:e})}function tbt(){let{themeVariables:e,quadrantChart:t}=As();return t&&GG.setConfig(t),GG.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}),GG.setData({titleText:Os()}),GG.build()}var VG,HG,UG,nbt,WG,GG,rbt,KG,ibt=o((()=>{Ls(),ar(),tr(),Dp(),VG=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[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],s=[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],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],ee=[1,34],te=[1,39],ne=[1,40],re=[1,42],ie=[1,44],ae=[1,63],oe=[1,62],se=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ce=[1,66],le=[1,67],ue=[1,68],de=[1,69],fe=[1,70],pe=[1,71],me=[1,72],he=[1,73],ge=[1,74],_e=[1,75],ve=[1,76],ye=[1,77],be=[4,5,6,7,8,9,10,11,12,13,14,15,18],xe=[1,91],Se=[1,92],Ce=[1,93],we=[1,100],Te=[1,94],Ee=[1,97],De=[1,95],Oe=[1,96],ke=[1,98],Ae=[1,99],je=[1,103],Me=[10,55,56,57],Ne=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Pe={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,44:[1,58],47:[1,59],58:61,59:60,63:ee,64:te,65:ne,66:re,67:ie},e(se,[2,64]),e(se,[2,66]),e(se,[2,67]),e(se,[2,70]),e(se,[2,71]),e(se,[2,72]),e(se,[2,73]),e(se,[2,74]),e(se,[2,75]),e(se,[2,76]),e(se,[2,77]),e(se,[2,78]),e(se,[2,79]),e(se,[2,80]),e(se,[2,81]),e(o,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:ce,5:le,6:ue,7:de,8:fe,9:pe,10:me,11:he,12:ge,13:_e,14:ve,15:ye,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,49:[1,78],63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,49:[1,79],63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),{45:[1,80]},{44:[1,81]},e(se,[2,65]),e(se,[2,82]),e(se,[2,83]),e(se,[2,84]),{3:83,4:ce,5:le,6:ue,7:de,8:fe,9:pe,10:me,11:he,12:ge,13:_e,14:ve,15:ye,18:[1,82]},e(be,[2,23]),e(be,[2,1]),e(be,[2,2]),e(be,[2,3]),e(be,[2,4]),e(be,[2,5]),e(be,[2,6]),e(be,[2,7]),e(be,[2,8]),e(be,[2,9]),e(be,[2,10]),e(be,[2,11]),e(be,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),{46:[1,86]},{45:[1,87]},{4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,16:90,17:De,18:Oe,19:ke,20:Ae,22:89,23:88},e(be,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,47],{22:89,16:90,23:101,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae}),{46:[1,102]},e(l,[2,29],{10:je}),e(Me,[2,27],{16:104,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae}),e(Ne,[2,25]),e(Ne,[2,13]),e(Ne,[2,14]),e(Ne,[2,15]),e(Ne,[2,16]),e(Ne,[2,17]),e(Ne,[2,18]),e(Ne,[2,19]),e(Ne,[2,20]),e(Ne,[2,21]),e(Ne,[2,22]),e(l,[2,49],{10:je}),e(l,[2,48],{22:89,16:90,23:105,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae}),{4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,16:90,17:De,18:Oe,19:ke,20:Ae,22:106},e(Ne,[2,26]),e(l,[2,50],{10:je}),e(Me,[2,28],{16:104,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae})],defaultActions:{8:[2,30],9:[2,31]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`,`getStyles`),Wyt=N(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return WCe().value(e=>e.value).sort(null)(n)},`createPieArcs`),Gyt={parser:FG,db:Hyt,renderer:{draw:N((e,t,n,r)=>{P.debug(`rendering pie chart +`+e);let i=r.db,a=bs(),o=Bm(i.getConfig(),a.pie),s=Op(t),l=s.append(`g`);l.attr(`transform`,`translate(225,225)`);let{themeVariables:u}=a,[d]=Um(u.pieOuterStrokeWidth);d??=2;let f=o.legendPosition,p=o.textPosition,m=o.donutHole>0&&o.donutHole<=.9?o.donutHole:0,h=Yf().innerRadius(m*185).outerRadius(185),g=Yf().innerRadius(185*p).outerRadius(185*p),_=l.append(`g`);_.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+d/2).attr(`class`,`pieOuterCircle`);let v=i.getSections(),y=Wyt(v),b=[u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12],x=0;v.forEach(e=>{x+=e});let S=y.filter(e=>(e.data.value/x*100).toFixed(0)!==`0`),C=yd(b).domain([...v.keys()]);_.selectAll(`mySlices`).data(S).enter().append(`path`).attr(`d`,h).attr(`fill`,e=>C(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return o.highlightSlice===`hover`?t+=` highlightedOnHover`:o.highlightSlice===e.data.label&&(t+=` highlighted`),t}),_.selectAll(`mySlices`).data(S).enter().append(`text`).text(e=>(e.data.value/x*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+g.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let w=l.append(`text`).text(i.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),T=[...v.entries()].map(([e,t])=>({label:e,value:t})),E=l.selectAll(`.legend`).data(T).enter().append(`g`).attr(`class`,`legend`);E.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>C(e.label)).style(`stroke`,e=>C(e.label)),E.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>i.getShowData()?`${e.label} [${e.value}]`:e.label);let D=Math.max(...E.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),O=450,k=490,A=T.length*22;switch(f){case`center`:E.attr(`transform`,(e,t)=>{let n=22*T.length/2,r=-D/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:O+=A,E.attr(`transform`,(e,t)=>`translate(${-D/2-22}, ${t*22-185})`),_.attr(`transform`,()=>`translate(0, ${A+22})`);break;case`bottom`:O+=A,E.attr(`transform`,(e,t)=>{let n=-D/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(-207,`+(t*22-n)+`)`}),_.attr(`transform`,()=>`translate(${D+18+4}, 0)`);break;default:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(216,`+(t*22-n)+`)`})}let j=w.node()?.getBoundingClientRect().width??0,M=225-j/2,ee=225+j/2,te=Math.min(0,M),ne=Math.max(k,ee)-te;s.attr(`viewBox`,`${te} 0 ${ne} ${O}`),ls(s,O,ne,o.useMaxWidth)},`draw`)},styles:Uyt}})),LG=l({diagram:()=>qG});function RG(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function Kyt(e){return!/^\d+$/.test(e)}function qyt(e){return!/^\d+px$/.test(e)}function zG(e){return ns(e.trim(),bs())}function Jyt(e){GG.setData({quadrant1Text:zG(e.text)})}function Yyt(e){GG.setData({quadrant2Text:zG(e.text)})}function Xyt(e){GG.setData({quadrant3Text:zG(e.text)})}function Zyt(e){GG.setData({quadrant4Text:zG(e.text)})}function Qyt(e){GG.setData({xAxisLeftText:zG(e.text)})}function $yt(e){GG.setData({xAxisRightText:zG(e.text)})}function ebt(e){GG.setData({yAxisTopText:zG(e.text)})}function tbt(e){GG.setData({yAxisBottomText:zG(e.text)})}function nbt(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(Kyt(r))throw new WG(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(RG(r))throw new WG(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(RG(r))throw new WG(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(qyt(r))throw new WG(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}function BG(e,t,n,r,i){let a=nbt(i);GG.addPoints([{x:n,y:r,text:zG(e.text),className:t,...a}])}function VG(e,t){GG.addClass(e,nbt(t))}function HG(e){GG.setConfig({chartWidth:e})}function rbt(e){GG.setConfig({chartHeight:e})}function ibt(){let{themeVariables:e,quadrantChart:t}=bs();return t&&GG.setConfig(t),GG.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}),GG.setData({titleText:vs()}),GG.build()}var abt,obt,UG,sbt,WG,GG,KG,qG,JG=o((()=>{Os(),er(),Zn(),Dp(),abt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[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],s=[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],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],ee=[1,34],te=[1,39],ne=[1,40],re=[1,42],ie=[1,44],ae=[1,63],oe=[1,62],se=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ce=[1,66],le=[1,67],ue=[1,68],de=[1,69],fe=[1,70],pe=[1,71],me=[1,72],he=[1,73],ge=[1,74],_e=[1,75],ve=[1,76],ye=[1,77],be=[4,5,6,7,8,9,10,11,12,13,14,15,18],xe=[1,91],Se=[1,92],Ce=[1,93],we=[1,100],Te=[1,94],Ee=[1,97],De=[1,95],Oe=[1,96],ke=[1,98],Ae=[1,99],je=[1,103],Me=[10,55,56,57],Ne=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Pe={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie},{4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,44:[1,58],47:[1,59],58:61,59:60,63:ee,64:te,65:ne,66:re,67:ie},e(se,[2,64]),e(se,[2,66]),e(se,[2,67]),e(se,[2,70]),e(se,[2,71]),e(se,[2,72]),e(se,[2,73]),e(se,[2,74]),e(se,[2,75]),e(se,[2,76]),e(se,[2,77]),e(se,[2,78]),e(se,[2,79]),e(se,[2,80]),e(se,[2,81]),e(o,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:ce,5:le,6:ue,7:de,8:fe,9:pe,10:me,11:he,12:ge,13:_e,14:ve,15:ye,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,49:[1,78],63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,49:[1,79],63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),{45:[1,80]},{44:[1,81]},e(se,[2,65]),e(se,[2,82]),e(se,[2,83]),e(se,[2,84]),{3:83,4:ce,5:le,6:ue,7:de,8:fe,9:pe,10:me,11:he,12:ge,13:_e,14:ve,15:ye,18:[1,82]},e(be,[2,23]),e(be,[2,1]),e(be,[2,2]),e(be,[2,3]),e(be,[2,4]),e(be,[2,5]),e(be,[2,6]),e(be,[2,7]),e(be,[2,8]),e(be,[2,9]),e(be,[2,10]),e(be,[2,11]),e(be,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:ee,64:te,65:ne,66:re,67:ie}),{46:[1,86]},{45:[1,87]},{4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,16:90,17:De,18:Oe,19:ke,20:Ae,22:89,23:88},e(be,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:ae,10:p,12:m,13:h,14:g,15:_,18:oe,63:ee,64:te,65:ne,66:re,67:ie}),e(l,[2,47],{22:89,16:90,23:101,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae}),{46:[1,102]},e(l,[2,29],{10:je}),e(Me,[2,27],{16:104,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae}),e(Ne,[2,25]),e(Ne,[2,13]),e(Ne,[2,14]),e(Ne,[2,15]),e(Ne,[2,16]),e(Ne,[2,17]),e(Ne,[2,18]),e(Ne,[2,19]),e(Ne,[2,20]),e(Ne,[2,21]),e(Ne,[2,22]),e(l,[2,49],{10:je}),e(l,[2,48],{22:89,16:90,23:105,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae}),{4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,16:90,17:De,18:Oe,19:ke,20:Ae,22:106},e(Ne,[2,26]),e(l,[2,50],{10:je}),e(Me,[2,28],{16:104,4:xe,5:Se,6:Ce,8:we,11:Te,13:Ee,17:De,18:Oe,19:ke,20:Ae})],defaultActions:{8:[2,30],9:[2,31]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Pe.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function Fe(){this.yy={}}return N(Fe,`Parser`),Fe.prototype=Pe,Pe.Parser=Fe,new Fe})(),VG.parser=VG,HG=VG,UG=No(),nbt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{N(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Wo.quadrantChart?.chartWidth||500,chartWidth:Wo.quadrantChart?.chartHeight||500,titlePadding:Wo.quadrantChart?.titlePadding||10,titleFontSize:Wo.quadrantChart?.titleFontSize||20,quadrantPadding:Wo.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Wo.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Wo.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Wo.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Wo.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Wo.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Wo.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Wo.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Wo.quadrantChart?.pointLabelFontSize||12,pointRadius:Wo.quadrantChart?.pointRadius||5,xAxisPosition:Wo.quadrantChart?.xAxisPosition||`top`,yAxisPosition:Wo.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:Wo.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Wo.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:UG.quadrant1Fill,quadrant2Fill:UG.quadrant2Fill,quadrant3Fill:UG.quadrant3Fill,quadrant4Fill:UG.quadrant4Fill,quadrant1TextFill:UG.quadrant1TextFill,quadrant2TextFill:UG.quadrant2TextFill,quadrant3TextFill:UG.quadrant3TextFill,quadrant4TextFill:UG.quadrant4TextFill,quadrantPointFill:UG.quadrantPointFill,quadrantPointTextFill:UG.quadrantPointTextFill,quadrantXAxisTextFill:UG.quadrantXAxisTextFill,quadrantYAxisTextFill:UG.quadrantYAxisTextFill,quadrantTitleFill:UG.quadrantTitleFill,quadrantInternalBorderStrokeFill:UG.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:UG.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,P.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){P.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){P.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},l=this.config.titleFontSize+this.config.titlePadding*2,u={top:r?l:0},d=this.config.quadrantPadding+s.left,f=this.config.quadrantPadding+a.top+u.top,p=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,m=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-u.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:u,quadrantSpace:{quadrantLeft:d,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:p/2,quadrantHeight:m,quadrantHalfHeight:m/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:l,quadrantHalfWidth:u,quadrantTop:d,quadrantWidth:f}=i,p=!!this.data.xAxisRightText,m=!!this.data.yAxisTopText,h=[];return this.data.xAxisLeftText&&t&&h.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&h.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+u+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&h.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+s-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&h.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+o-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),h}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,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:r+i,y:a,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:r,y:a,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:r,y:a+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:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=Fd().domain([0,1]).range([r,a+r]),s=Fd().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:l}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+l+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+l,y1:s+t,x2:a+l,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+l+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+l-t,y2:s+r}]}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(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},WG=class extends Error{static{N(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}},N(Vyt,`validateHexCode`),N(Hyt,`validateNumber`),N(Uyt,`validateSizeInPixels`),N(RG,`textSanitizer`),GG=new nbt,N(zG,`setQuadrant1Text`),N(BG,`setQuadrant2Text`),N(Wyt,`setQuadrant3Text`),N(Gyt,`setQuadrant4Text`),N(Kyt,`setXAxisLeftText`),N(qyt,`setXAxisRightText`),N(Jyt,`setYAxisTopText`),N(Yyt,`setYAxisBottomText`),N(Xyt,`parseStyles`),N(Zyt,`addPoint`),N(Qyt,`addClass`),N($yt,`setWidth`),N(ebt,`setHeight`),N(tbt,`getQuadrantData`),rbt={setWidth:$yt,setHeight:ebt,setQuadrant1Text:zG,setQuadrant2Text:BG,setQuadrant3Text:Wyt,setQuadrant4Text:Gyt,setXAxisLeftText:Kyt,setXAxisRightText:qyt,setYAxisTopText:Jyt,setYAxisBottomText:Yyt,parseStyles:Xyt,addPoint:Zyt,addClass:Qyt,getQuadrantData:tbt,clear:N(function(){GG.clear(),Ss()},`clear`),setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,getAccDescription:Es,setAccDescription:Ts},KG={parser:HG,db:rbt,renderer:{draw:N((e,t,n,r)=>{function i(e){return e===`top`?`hanging`:`middle`}N(i,`getDominantBaseLine`);function a(e){return e===`left`?`start`:`middle`}N(a,`getTextAnchor`);function o(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}N(o,`getTransformation`);let s=As();P.debug(`Rendering quadrant chart -`+e);let l=s.securityLevel,u;l===`sandbox`&&(u=Qc(`#i`+t));let d=Qc(l===`sandbox`?u.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`),f=d.append(`g`).attr(`class`,`main`),p=s.quadrantChart?.chartWidth??500,m=s.quadrantChart?.chartHeight??500;_s(d,m,p,s.quadrantChart?.useMaxWidth??!0),d.attr(`viewBox`,`0 0 `+p+` `+m),r.db.setHeight(m),r.db.setWidth(p);let h=r.db.getQuadrantData(),g=f.append(`g`).attr(`class`,`quadrants`),_=f.append(`g`).attr(`class`,`border`),v=f.append(`g`).attr(`class`,`data-points`),y=f.append(`g`).attr(`class`,`labels`),b=f.append(`g`).attr(`class`,`title`);h.title&&b.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,h.title.fill).attr(`font-size`,h.title.fontSize).attr(`dominant-baseline`,i(h.title.horizontalPos)).attr(`text-anchor`,a(h.title.verticalPos)).attr(`transform`,o(h.title)).text(h.title.text),h.borderLines&&_.selectAll(`line`).data(h.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let x=g.selectAll(`g.quadrant`).data(h.quadrants).enter().append(`g`).attr(`class`,`quadrant`);x.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),x.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text)).text(e=>e.text.text),y.selectAll(`g.label`).data(h.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>i(e.horizontalPos)).attr(`text-anchor`,e=>a(e.verticalPos)).attr(`transform`,e=>o(e));let S=v.selectAll(`g.data-point`).data(h.points).enter().append(`g`).attr(`class`,`data-point`);S.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),S.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text))},`draw`)},styles:N(()=>``,`styles`)}})),qG=l({diagram:()=>Nbt});function JG(e){return e.type===`bar`}function YG(e){return e.type===`band`}function XG(e){return e.type===`linear`}function ZG(e,t,n,r){let i=new lK(r);return YG(e)?new uK(t,n,e.categories,e.title,i):new Cbt(t,n,[e.min,e.max],e.title,i)}function abt(e,t,n,r){return new wbt(new lK(r),e,t,n)}function QG(e){return{fontSize:e,markerSize:e*Tbt,markerSpacing:e*Dbt,itemSpacing:e*Ebt}}function obt(e,t,n,r){return new dK(new lK(r),e,t,n)}function $G(e,t,n){return new kbt(e,t,n)}function sbt(){let e=No(),t=ns();return Rm(e.xyChart,t.themeVariables.xyChart)}function eK(){let e=ns();return Rm(Wo.xyChart,e.xyChart)}function tK(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}function nK(e){let t=ns();return ls(e.trim(),t)}function cbt(e){jbt=e}function lbt(e){e===`horizontal`?hK.chartOrientation=`horizontal`:hK.chartOrientation=`vertical`}function ubt(e){_K.xAxis.title=nK(e.text)}function rK(e,t){_K.xAxis={type:`linear`,title:_K.xAxis.title,min:e,max:t},yK=!0}function dbt(e){_K.xAxis={type:`band`,title:_K.xAxis.title,categories:e.map(e=>nK(e.text))},yK=!0}function fbt(e){_K.yAxis.title=nK(e.text)}function pbt(e,t){_K.yAxis={type:`linear`,title:_K.yAxis.title,min:e,max:t},Mbt=!0}function mbt(e){let t=Math.min(...e),n=Math.max(...e),r=XG(_K.yAxis)?_K.yAxis.min:1/0,i=XG(_K.yAxis)?_K.yAxis.max:-1/0;_K.yAxis={type:`linear`,title:_K.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}function iK(e){let t=[];if(e.length===0)return t;if(!yK){let t=XG(_K.xAxis)?_K.xAxis.min:1/0,n=XG(_K.xAxis)?_K.xAxis.max:-1/0;rK(Math.min(t,1),Math.max(n,e.length))}if(YG(_K.xAxis)&&e.length>_K.xAxis.categories.length&&(e=e.slice(0,_K.xAxis.categories.length)),Mbt||mbt(e),YG(_K.xAxis)&&(t=_K.xAxis.categories.map((t,n)=>[t,e[n]])),XG(_K.xAxis)){let n=_K.xAxis.min,r=_K.xAxis.max;if(e.length===1)t=[[`${n}`,e[0]]];else{let i=(r-n)/(e.length-1);t=e.map((e,t)=>[`${n+t*i}`,e])}}return t}function hbt(e){return vK[e===0?0:e%vK.length]}function aK(e,t){let n=t.map(e=>e.value),r=t.map(e=>e.label?nK(e.label):``),i=iK(n),a=r.some(e=>e!==``);_K.plots.push({type:`line`,title:nK(e.text),strokeFill:hbt(mK),strokeWidth:2,data:i,...a?{pointLabels:r}:{}}),mK++}function gbt(e,t){let n=iK(t.map(e=>e.value));_K.plots.push({type:`bar`,title:nK(e.text),fill:hbt(mK),data:n}),mK++}function _bt(){if(_K.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return _K.title=Os(),pK.build(hK,_K,gK,jbt)}function vbt(){return gK}function ybt(){return hK}function oK(){return _K}var sK,cK,lK,bbt,xbt,Sbt,uK,Cbt,wbt,Tbt,Ebt,Dbt,dK,fK,Obt,kbt,Abt,pK,mK,jbt,hK,gK,_K,vK,yK,Mbt,Nbt,Pbt=o((()=>{kp(),Dh(),_m(),Gm(),Ls(),ar(),tr(),Dp(),sK=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,10,12,14,16,18,19,21,23],n=[2,6],r=[1,3],i=[1,5],a=[1,6],o=[1,7],s=[1,5,10,12,14,16,18,19,21,23,36,37,38],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={trace:N(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,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$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`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`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],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[e(t,n,{3:1,4:2,7:4,5:r,36:i,37:a,38:o}),{1:[3]},e(t,n,{4:2,7:4,3:8,5:r,36:i,37:a,38:o}),e(t,n,{4:2,7:4,6:9,3:10,5:r,8:[1,11],36:i,37:a,38:o}),{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]},e(s,[2,36]),e(s,[2,37]),e(s,[2,38]),{1:[2,1]},e(t,n,{4:2,7:4,3:21,5:r,36:i,37:a,38:o}),{1:[2,3]},e(s,[2,5]),e(t,[2,7],{4:22,36:i,37:a,38:o}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{20:[1,53]},{22:[1,54]},e(T,[2,18]),{1:[2,2]},e(T,[2,8]),e(T,[2,9]),e(E,[2,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),e(E,[2,40]),e(E,[2,41]),e(D,[2,42]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(D,[2,52]),e(D,[2,53]),e(T,[2,10]),e(T,[2,24],{32:41,31:56,24:x,29:S}),e(T,[2,26]),e(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,11]),e(T,[2,32],{35:60,29:C}),e(T,[2,34]),{33:[1,61]},e(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},e(T,[2,14]),{17:66,24:w},e(T,[2,16]),e(T,[2,17]),e(D,[2,43]),e(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(T,[2,33]),{29:[1,70]},e(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(k,[2,23],{30:[1,73]}),e(T,[2,15]),e(T,[2,28]),e(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,35]),e(T,[2,19]),{25:75,27:64,29:O},e(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function Fe(){this.yy={}}return N(Fe,`Parser`),Fe.prototype=Pe,Pe.Parser=Fe,new Fe})(),abt.parser=abt,obt=abt,UG=wo(),sbt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{N(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Fo.quadrantChart?.chartWidth||500,chartWidth:Fo.quadrantChart?.chartHeight||500,titlePadding:Fo.quadrantChart?.titlePadding||10,titleFontSize:Fo.quadrantChart?.titleFontSize||20,quadrantPadding:Fo.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Fo.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Fo.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Fo.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Fo.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Fo.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Fo.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Fo.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Fo.quadrantChart?.pointLabelFontSize||12,pointRadius:Fo.quadrantChart?.pointRadius||5,xAxisPosition:Fo.quadrantChart?.xAxisPosition||`top`,yAxisPosition:Fo.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:Fo.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Fo.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:UG.quadrant1Fill,quadrant2Fill:UG.quadrant2Fill,quadrant3Fill:UG.quadrant3Fill,quadrant4Fill:UG.quadrant4Fill,quadrant1TextFill:UG.quadrant1TextFill,quadrant2TextFill:UG.quadrant2TextFill,quadrant3TextFill:UG.quadrant3TextFill,quadrant4TextFill:UG.quadrant4TextFill,quadrantPointFill:UG.quadrantPointFill,quadrantPointTextFill:UG.quadrantPointTextFill,quadrantXAxisTextFill:UG.quadrantXAxisTextFill,quadrantYAxisTextFill:UG.quadrantYAxisTextFill,quadrantTitleFill:UG.quadrantTitleFill,quadrantInternalBorderStrokeFill:UG.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:UG.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,P.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){P.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){P.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},l=this.config.titleFontSize+this.config.titlePadding*2,u={top:r?l:0},d=this.config.quadrantPadding+s.left,f=this.config.quadrantPadding+a.top+u.top,p=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,m=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-u.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:u,quadrantSpace:{quadrantLeft:d,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:p/2,quadrantHeight:m,quadrantHalfHeight:m/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:l,quadrantHalfWidth:u,quadrantTop:d,quadrantWidth:f}=i,p=!!this.data.xAxisRightText,m=!!this.data.yAxisTopText,h=[];return this.data.xAxisLeftText&&t&&h.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&h.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+u+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&h.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+s-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&h.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+o-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),h}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,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:r+i,y:a,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:r,y:a,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:r,y:a+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:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=wd().domain([0,1]).range([r,a+r]),s=wd().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:l}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+l+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+l,y1:s+t,x2:a+l,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+l+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+l-t,y2:s+r}]}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(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},WG=class extends Error{static{N(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}},N(RG,`validateHexCode`),N(Kyt,`validateNumber`),N(qyt,`validateSizeInPixels`),N(zG,`textSanitizer`),GG=new sbt,N(Jyt,`setQuadrant1Text`),N(Yyt,`setQuadrant2Text`),N(Xyt,`setQuadrant3Text`),N(Zyt,`setQuadrant4Text`),N(Qyt,`setXAxisLeftText`),N($yt,`setXAxisRightText`),N(ebt,`setYAxisTopText`),N(tbt,`setYAxisBottomText`),N(nbt,`parseStyles`),N(BG,`addPoint`),N(VG,`addClass`),N(HG,`setWidth`),N(rbt,`setHeight`),N(ibt,`getQuadrantData`),KG={setWidth:HG,setHeight:rbt,setQuadrant1Text:Jyt,setQuadrant2Text:Yyt,setQuadrant3Text:Xyt,setQuadrant4Text:Zyt,setXAxisLeftText:Qyt,setXAxisRightText:$yt,setYAxisTopText:ebt,setYAxisBottomText:tbt,parseStyles:nbt,addPoint:BG,addClass:VG,getQuadrantData:ibt,clear:N(function(){GG.clear(),fs()},`clear`),setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,getAccDescription:gs,setAccDescription:hs},qG={parser:obt,db:KG,renderer:{draw:N((e,t,n,r)=>{function i(e){return e===`top`?`hanging`:`middle`}N(i,`getDominantBaseLine`);function a(e){return e===`left`?`start`:`middle`}N(a,`getTextAnchor`);function o(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}N(o,`getTransformation`);let s=bs();P.debug(`Rendering quadrant chart +`+e);let l=s.securityLevel,u;l===`sandbox`&&(u=Bc(`#i`+t));let d=Bc(l===`sandbox`?u.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`),f=d.append(`g`).attr(`class`,`main`),p=s.quadrantChart?.chartWidth??500,m=s.quadrantChart?.chartHeight??500;ls(d,m,p,s.quadrantChart?.useMaxWidth??!0),d.attr(`viewBox`,`0 0 `+p+` `+m),r.db.setHeight(m),r.db.setWidth(p);let h=r.db.getQuadrantData(),g=f.append(`g`).attr(`class`,`quadrants`),_=f.append(`g`).attr(`class`,`border`),v=f.append(`g`).attr(`class`,`data-points`),y=f.append(`g`).attr(`class`,`labels`),b=f.append(`g`).attr(`class`,`title`);h.title&&b.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,h.title.fill).attr(`font-size`,h.title.fontSize).attr(`dominant-baseline`,i(h.title.horizontalPos)).attr(`text-anchor`,a(h.title.verticalPos)).attr(`transform`,o(h.title)).text(h.title.text),h.borderLines&&_.selectAll(`line`).data(h.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let x=g.selectAll(`g.quadrant`).data(h.quadrants).enter().append(`g`).attr(`class`,`quadrant`);x.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),x.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text)).text(e=>e.text.text),y.selectAll(`g.label`).data(h.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>i(e.horizontalPos)).attr(`text-anchor`,e=>a(e.verticalPos)).attr(`transform`,e=>o(e));let S=v.selectAll(`g.data-point`).data(h.points).enter().append(`g`).attr(`class`,`data-point`);S.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),S.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text))},`draw`)},styles:N(()=>``,`styles`)}})),cbt=l({diagram:()=>Fbt});function YG(e){return e.type===`bar`}function XG(e){return e.type===`band`}function ZG(e){return e.type===`linear`}function lbt(e,t,n,r){let i=new wbt(r);return XG(e)?new Obt(t,n,e.categories,e.title,i):new uK(t,n,[e.min,e.max],e.title,i)}function QG(e,t,n,r){return new dK(new wbt(r),e,t,n)}function $G(e){return{fontSize:e,markerSize:e*kbt,markerSpacing:e*jbt,itemSpacing:e*Abt}}function ubt(e,t,n,r){return new fK(new wbt(r),e,t,n)}function dbt(e,t,n){return new mK(e,t,n)}function eK(){let e=wo(),t=Xo();return Bm(e.xyChart,t.themeVariables.xyChart)}function tK(){let e=Xo();return Bm(Fo.xyChart,e.xyChart)}function nK(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}function rK(e){let t=Xo();return ns(e.trim(),t)}function fbt(e){_K=e}function pbt(e){e===`horizontal`?vK.chartOrientation=`horizontal`:vK.chartOrientation=`vertical`}function mbt(e){bK.xAxis.title=rK(e.text)}function iK(e,t){bK.xAxis={type:`linear`,title:bK.xAxis.title,min:e,max:t},SK=!0}function hbt(e){bK.xAxis={type:`band`,title:bK.xAxis.title,categories:e.map(e=>rK(e.text))},SK=!0}function aK(e){bK.yAxis.title=rK(e.text)}function gbt(e,t){bK.yAxis={type:`linear`,title:bK.yAxis.title,min:e,max:t},Pbt=!0}function _bt(e){let t=Math.min(...e),n=Math.max(...e),r=ZG(bK.yAxis)?bK.yAxis.min:1/0,i=ZG(bK.yAxis)?bK.yAxis.max:-1/0;bK.yAxis={type:`linear`,title:bK.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}function vbt(e){let t=[];if(e.length===0)return t;if(!SK){let t=ZG(bK.xAxis)?bK.xAxis.min:1/0,n=ZG(bK.xAxis)?bK.xAxis.max:-1/0;iK(Math.min(t,1),Math.max(n,e.length))}if(XG(bK.xAxis)&&e.length>bK.xAxis.categories.length&&(e=e.slice(0,bK.xAxis.categories.length)),Pbt||_bt(e),XG(bK.xAxis)&&(t=bK.xAxis.categories.map((t,n)=>[t,e[n]])),ZG(bK.xAxis)){let n=bK.xAxis.min,r=bK.xAxis.max;if(e.length===1)t=[[`${n}`,e[0]]];else{let i=(r-n)/(e.length-1);t=e.map((e,t)=>[`${n+t*i}`,e])}}return t}function ybt(e){return xK[e===0?0:e%xK.length]}function oK(e,t){let n=t.map(e=>e.value),r=t.map(e=>e.label?rK(e.label):``),i=vbt(n),a=r.some(e=>e!==``);bK.plots.push({type:`line`,title:rK(e.text),strokeFill:ybt(gK),strokeWidth:2,data:i,...a?{pointLabels:r}:{}}),gK++}function bbt(e,t){let n=vbt(t.map(e=>e.value));bK.plots.push({type:`bar`,title:rK(e.text),fill:ybt(gK),data:n}),gK++}function sK(){if(bK.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return bK.title=vs(),hK.build(vK,bK,yK,_K)}function cK(){return yK}function xbt(){return vK}function Sbt(){return bK}var Cbt,lK,wbt,Tbt,Ebt,Dbt,Obt,uK,dK,kbt,Abt,jbt,fK,pK,Mbt,mK,Nbt,hK,gK,_K,vK,yK,bK,xK,SK,Pbt,Fbt,CK=o((()=>{kp(),Bh(),bm(),qm(),Os(),er(),Zn(),Dp(),Cbt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,10,12,14,16,18,19,21,23],n=[2,6],r=[1,3],i=[1,5],a=[1,6],o=[1,7],s=[1,5,10,12,14,16,18,19,21,23,36,37,38],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={trace:N(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,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$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`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`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],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[e(t,n,{3:1,4:2,7:4,5:r,36:i,37:a,38:o}),{1:[3]},e(t,n,{4:2,7:4,3:8,5:r,36:i,37:a,38:o}),e(t,n,{4:2,7:4,6:9,3:10,5:r,8:[1,11],36:i,37:a,38:o}),{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]},e(s,[2,36]),e(s,[2,37]),e(s,[2,38]),{1:[2,1]},e(t,n,{4:2,7:4,3:21,5:r,36:i,37:a,38:o}),{1:[2,3]},e(s,[2,5]),e(t,[2,7],{4:22,36:i,37:a,38:o}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{20:[1,53]},{22:[1,54]},e(T,[2,18]),{1:[2,2]},e(T,[2,8]),e(T,[2,9]),e(E,[2,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),e(E,[2,40]),e(E,[2,41]),e(D,[2,42]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(D,[2,52]),e(D,[2,53]),e(T,[2,10]),e(T,[2,24],{32:41,31:56,24:x,29:S}),e(T,[2,26]),e(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,11]),e(T,[2,32],{35:60,29:C}),e(T,[2,34]),{33:[1,61]},e(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},e(T,[2,14]),{17:66,24:w},e(T,[2,16]),e(T,[2,17]),e(D,[2,43]),e(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(T,[2,33]),{29:[1,70]},e(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(k,[2,23],{30:[1,73]}),e(T,[2,15]),e(T,[2,28]),e(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,35]),e(T,[2,19]),{25:75,27:64,29:O},e(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};A.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;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 33;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 29;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 44;case 33:return`COLON`;case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},`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}}}})();function j(){this.yy={}}return N(j,`Parser`),j.prototype=A,A.Parser=j,new j})(),sK.parser=sK,cK=sK,N(JG,`isBarPlot`),N(YG,`isBandAxisData`),N(XG,`isLinearAxisData`),lK=class{constructor(e){this.parentGroup=e}static{N(this,`TextDimensionCalculatorWithFont`)}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t),i=r.node()?.getScreenCTM?.(),a=N(e=>e&&e>0?e:1,`toScale`),o=a(i?.a),s=a(i?.d);for(let i of e){let e=Ike(r,1,i),a=e?e.width/o:i.length*t,l=e?e.height/s:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,l)}return r.remove(),n}},bbt=.7,xbt=.2,Sbt=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,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.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{N(this,`BaseAxis`)}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(){let 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(){bbt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(bbt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=xbt*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height;this.axisPosition===`bottom`&&this.normalizedLabelRotationInRad!==0&&(i=Math.max(i,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*n.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*n.height))),i+=this.axisConfig.labelPadding*2,this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=xbt*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,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}calculateOffsetByRotation(e){let t=this.normalizedLabelRotationInRad;return t===0?0:Math.sin(t)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${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(e=>({text:e.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(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,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(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation(`height`),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation(`width`)),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+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(){let e=[];if(this.showAxisLine){let t=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},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),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){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+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():[]}},uK=class extends Sbt{static{N(this,`BandAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=Ad().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=Ad().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),P.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},Cbt=class extends Sbt{static{N(this,`LinearAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=Fd().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=Fd().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},N(ZG,`getAxis`),wbt=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.titleWidth=0,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{N(this,`ChartTitle`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return r<=e.height&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.titleWidth=t.width,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}alignTo(e,t){let n=Math.min(this.titleWidth,this.chartConfig.width)/2,r=Math.min(Math.max((e+t)/2,n),this.chartConfig.width-n);this.boundingRect.x=r-n,this.boundingRect.width=n*2}getDrawableElements(){let 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}},N(abt,`getChartTitleComponent`),Tbt=.75,Ebt=.5,Dbt=.35,N(QG,`getLegendLayout`),dK=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{N(this,`ChartLegend`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(e=>e.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:t,markerSize:n,markerSpacing:r,itemSpacing:i}=QG(this.chartConfig.legendFontSize),a=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(e=>e.title),t),o=this.chartConfig.legendPadding*2+n+r+a.width,s=this.chartConfig.legendPadding*2+this.visiblePlots.length*t+(this.visiblePlots.length-1)*i;return o<=e.width&&s<=e.height?(this.boundingRect.width=o,this.boundingRect.height=s):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:t,markerSpacing:n,itemSpacing:r}=QG(this.chartConfig.legendFontSize),i=e+r,a=this.boundingRect.x+this.chartConfig.legendPadding,o=this.boundingRect.y+this.chartConfig.legendPadding,s=[],l=[];for(let[e,n]of this.visiblePlots.entries())if(JG(n))s.push({x:a,y:o+e*i,width:t,height:t,fill:n.fill,strokeFill:n.fill,strokeWidth:0});else{let r=o+e*i+t/2;l.push({path:`M ${a},${r} L ${a+t},${r}`,strokeFill:n.strokeFill,strokeWidth:n.strokeWidth})}return[{groupTexts:[`legend`,`markers`],type:`rect`,data:s},{groupTexts:[`legend`,`markers`],type:`path`,data:l},{groupTexts:[`legend`,`label`],type:`text`,data:this.visiblePlots.map((r,s)=>({text:r.title,x:a+t+n,y:o+s*i+t/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:`middle`,horizontalPos:`left`}))}]}},N(obt,`getChartLegendComponent`),fK=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static{N(this,`LinePlot`)}getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;if(t=this.orientation===`horizontal`?jCe().y(e=>e[0]).x(e=>e[1])(e):jCe().x(e=>e[0]).y(e=>e[1])(e),!t)return[];let n=[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let t=[];for(let[n,[r,i]]of e.entries()){let e=this.plotData.pointLabels[n];e&&(this.orientation===`horizontal`?t.push({x:i+10,y:r,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`left`,fontSize:12,rotation:0}):t.push({x:r,y:i-10,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`center`,fontSize:12,rotation:0}))}t.length>0&&n.push({groupTexts:[`plot`,`line-plot-${this.plotIndex}`,`labels`],type:`text`,data:t})}return n}},Obt=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static{N(this,`BarPlot`)}getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[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(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},kbt=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static{N(this,`BasePlot`)}setAxes(e,t){this.xAxis=e,this.yAxis=t}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`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new fK(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new Obt(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}}return e}},N($G,`getPlotComponent`),Abt=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:abt(e,t,n,r),plot:$G(e,t,n),legend:obt(e,t,n,r),xAxis:ZG(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:ZG(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static{N(this,`Orchestrator`)}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i={width:0,height:0},a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`bottom`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=s.height,this.componentStore.yAxis.setAxisPosition(`left`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=s.width,e-=s.width,i=this.componentStore.legend.calculateSpace({width:e,height:o}),e-=i.width,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.title.alignTo(n,n+a),this.componentStore.legend.setBoundingBoxXY({x:n+a,y:r+Math.max((o-i.height)/2,0)}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+o}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>JG(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a={width:0,height:0},o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:o,height:s});e-=l.width,t-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=l.height,t-=l.height,this.componentStore.xAxis.setAxisPosition(`left`),l=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=l.width,r=l.width,this.componentStore.yAxis.setAxisPosition(`top`),l=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=l.height,i=n+l.height,a=this.componentStore.legend.calculateSpace({width:e,height:s}),e-=a.width,e>0&&(o+=e,e=0),t>0&&(s+=t,t=0),this.componentStore.plot.calculateSpace({width:o,height:s}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.title.alignTo(r,r+o),this.componentStore.legend.setBoundingBoxXY({x:r+o,y:i+Math.max((s-a.height)/2,0)}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>JG(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},pK=class{static{N(this,`XYChartBuilder`)}static build(e,t,n,r){return new Abt(e,t,n,r).getDrawableElement()}},mK=0,hK=eK(),gK=sbt(),_K=tK(),vK=gK.plotColorPalette.split(`,`).map(e=>e.trim()),yK=!1,Mbt=!1,N(sbt,`getChartDefaultThemeConfig`),N(eK,`getChartDefaultConfig`),N(tK,`getChartDefaultData`),N(nK,`textSanitizer`),N(cbt,`setTmpSVGG`),N(lbt,`setOrientation`),N(ubt,`setXAxisTitle`),N(rK,`setXAxisRangeData`),N(dbt,`setXAxisBand`),N(fbt,`setYAxisTitle`),N(pbt,`setYAxisRangeData`),N(mbt,`setYAxisRangeFromPlotData`),N(iK,`transformDataWithoutCategory`),N(hbt,`getPlotColorFromPalette`),N(aK,`setLineData`),N(gbt,`setBarData`),N(_bt,`getDrawableElem`),N(vbt,`getChartThemeConfig`),N(ybt,`getChartConfig`),N(oK,`getXYChartData`),Nbt={parser:cK,db:{getDrawableElem:_bt,clear:N(function(){Ss(),mK=0,hK=eK(),_K=tK(),gK=sbt(),vK=gK.plotColorPalette.split(`,`).map(e=>e.trim()),yK=!1,Mbt=!1},`clear`),setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,getAccDescription:Es,setAccDescription:Ts,setOrientation:lbt,setXAxisTitle:ubt,setXAxisRangeData:rK,setXAxisBand:dbt,setYAxisTitle:fbt,setYAxisRangeData:pbt,setLineData:aK,setBarData:gbt,setTmpSVGG:cbt,getChartThemeConfig:vbt,getChartConfig:ybt,getXYChartData:oK},renderer:{draw:N((e,t,n,r)=>{let i=r.db,a=i.getChartThemeConfig(),o=i.getChartConfig(),s=i.getXYChartData().plots[0].data.map(e=>e[1]);function l(e){return e===`top`?`text-before-edge`:`middle`}N(l,`getDominantBaseLine`);function u(e){return e===`left`?`start`:e===`right`?`end`:`middle`}N(u,`getTextAnchor`);function d(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}N(d,`getTextTransformation`),P.debug(`Rendering xychart chart -`+e);let f=Op(t),p=f.append(`g`).attr(`class`,`main`),m=p.append(`rect`).attr(`width`,o.width).attr(`height`,o.height).attr(`class`,`background`);_s(f,o.height,o.width,!0),f.attr(`viewBox`,`0 0 ${o.width} ${o.height}`),m.attr(`fill`,a.backgroundColor),i.setTmpSVGG(f.append(`g`).attr(`class`,`mermaid-tmp-group`));let h=i.getDrawableElem(),g={};function _(e){let t=p,n=``;for(let[r]of e.entries()){let i=p;r>0&&g[n]&&(i=g[n]),n+=e[r],t=g[n],t||=g[n]=i.append(`g`).attr(`class`,e[r])}return t}N(_,`getGroup`);for(let e of h){if(e.data.length===0)continue;let t=_(e.groupTexts);switch(e.type){case`rect`:if(t.selectAll(`rect`).data(e.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),o.showDataLabel){let n=o.showDataLabelOutsideBar;if(o.chartOrientation===`horizontal`){let r=function(e,t){let{data:n,label:r}=e;return t*r.length*i<=n.width-o};N(r,`fitsHorizontally`);let i=.7,o=10,l=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),u=l.map(e=>{let{data:t}=e,n=t.height*.7;for(;!r(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...u)),f=N(e=>n?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);t.selectAll(`text`).data(l).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,n?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let r=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,l=o+a/2,u=s>=r.x&&l<=r.x+r.width,d=r.y+n+t<=r.y+r.height;return u&&d};N(r,`fitsInBar`);let i=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=i.map(e=>{let{data:t,label:n}=e,i=t.width/(n.length*.7);for(;!r(e,i,10)&&i>0;)--i;return i}),l=Math.floor(Math.min(...o)),u=N(e=>n?e.data.y-10:e.data.y+10,`determineLabelYPosition`);t.selectAll(`text`).data(i).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,u).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,n?`auto`:`hanging`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${l}px`).text(e=>e.label)}}break;case`text`:t.selectAll(`text`).data(e.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>l(e.verticalPos)).attr(`text-anchor`,e=>u(e.horizontalPos)).attr(`transform`,e=>d(e)).text(e=>e.text);break;case`path`:t.selectAll(`path`).data(e.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth)}}},`draw`)}}})),Fbt=l({diagram:()=>Vbt}),bK,Ibt,Lbt,xK,Rbt,zbt,Bbt,Vbt,Hbt=o((()=>{ZN(),$N(),YM(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),bK=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],s=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[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],k=[27,29],A=[1,70],j=[1,71],M=[1,72],ee=[1,73],te=[1,74],ne=[1,75],re=[1,76],ie=[1,83],ae=[1,80],oe=[1,84],se=[1,85],ce=[1,86],le=[1,87],ue=[1,88],de=[1,89],fe=[1,90],pe=[1,91],me=[1,92],he=[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],ge=[63,64],_e=[1,101],ve=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],ye=[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],be=[1,110],xe=[1,106],Se=[1,107],Ce=[1,108],we=[1,109],Te=[1,111],Ee=[1,116],De=[1,117],Oe=[1,114],ke=[1,115],Ae={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,6:t,9:n,11:r,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:n,11:r,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:n,11:r,13:i},{1:[2,2]},{4:17,5:o,7:13,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:43,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:44,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:45,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:46,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:47,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:48,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:49,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:50,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{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]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},e(D,[2,29]),e(D,[2,30]),e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(D,[2,34]),e(O,[2,81]),e(O,[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]},e(k,[2,79]),e(k,[2,80]),{27:[1,67],29:[1,68]},e(k,[2,85]),e(k,[2,86]),{62:69,65:A,66:j,67:M,68:ee,69:te,70:ne,71:re},{62:77,65:A,66:j,67:M,68:ee,69:te,70:ne,71:re},{30:78,33:62,75:E,89:C,90:w},{73:79,75:ie,76:ae,78:81,79:82,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me},e(he,[2,60]),e(he,[2,62]),{73:93,75:ie,76:ae,78:81,79:82,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me},{30:94,33:62,75:E,76:ae,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},e(ge,[2,50]),e(ge,[2,51]),e(ge,[2,52]),e(ge,[2,53]),e(ge,[2,54]),e(ge,[2,55]),e(ge,[2,56]),{64:[1,100]},e(T,[2,59],{76:ae}),e(T,[2,64],{76:_e}),{33:103,75:[1,102],89:C,90:w},e(ve,[2,65],{79:104,75:ie,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me}),e(ye,[2,67]),e(ye,[2,69]),e(ye,[2,70]),e(ye,[2,71]),e(ye,[2,72]),e(ye,[2,73]),e(ye,[2,74]),e(ye,[2,75]),e(ye,[2,76]),e(ye,[2,77]),e(ye,[2,78]),e(T,[2,57],{76:_e}),e(T,[2,58],{76:ae}),{5:be,28:105,31:xe,34:Se,36:Ce,38:we,40:Te},{27:[1,112],76:ae},{5:Ee,40:De,56:113,57:Oe,59:ke},{27:[1,118],76:ae},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:ie,78:121,79:82,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me},e(he,[2,61]),e(he,[2,63]),e(ye,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:be,28:126,31:xe,34:Se,36:Ce,38:we,40:Te},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:Ee,40:De,56:130,57:Oe,59:ke},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(ve,[2,66],{79:104,75:ie,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me}),{33:132,89:C,90:w},{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]},e(T,[2,27]),{5:be,28:145,31:xe,34:Se,36:Ce,38:we,40:Te},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:Ee,40:De,56:152,57:Oe,59:ke},{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]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:be,28:159,31:xe,34:Se,36:Ce,38:we,40:Te},{5:be,28:160,31:xe,34:Se,36:Ce,38:we,40:Te},{5:be,28:161,31:xe,34:Se,36:Ce,38:we,40:Te},{5:be,28:162,31:xe,34:Se,36:Ce,38:we,40:Te},{5:Ee,40:De,56:163,57:Oe,59:ke},{5:Ee,40:De,56:164,57:Oe,59:ke},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[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:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;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 33;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 29;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 44;case 33:return`COLON`;case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},`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}}}})();function j(){this.yy={}}return N(j,`Parser`),j.prototype=A,A.Parser=j,new j})(),Cbt.parser=Cbt,lK=Cbt,N(YG,`isBarPlot`),N(XG,`isBandAxisData`),N(ZG,`isLinearAxisData`),wbt=class{constructor(e){this.parentGroup=e}static{N(this,`TextDimensionCalculatorWithFont`)}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t),i=r.node()?.getScreenCTM?.(),a=N(e=>e&&e>0?e:1,`toScale`),o=a(i?.a),s=a(i?.d);for(let i of e){let e=Mke(r,1,i),a=e?e.width/o:i.length*t,l=e?e.height/s:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,l)}return r.remove(),n}},Tbt=.7,Ebt=.2,Dbt=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,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.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{N(this,`BaseAxis`)}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(){let 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(){Tbt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Tbt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=Ebt*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height;this.axisPosition===`bottom`&&this.normalizedLabelRotationInRad!==0&&(i=Math.max(i,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*n.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*n.height))),i+=this.axisConfig.labelPadding*2,this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=Ebt*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,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}calculateOffsetByRotation(e){let t=this.normalizedLabelRotationInRad;return t===0?0:Math.sin(t)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${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(e=>({text:e.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(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,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(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation(`height`),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation(`width`)),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+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(){let e=[];if(this.showAxisLine){let t=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},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),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){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+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():[]}},Obt=class extends Dbt{static{N(this,`BandAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=Dxe().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=Dxe().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),P.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},uK=class extends Dbt{static{N(this,`LinearAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=wd().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=wd().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},N(lbt,`getAxis`),dK=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.titleWidth=0,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{N(this,`ChartTitle`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return r<=e.height&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.titleWidth=t.width,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}alignTo(e,t){let n=Math.min(this.titleWidth,this.chartConfig.width)/2,r=Math.min(Math.max((e+t)/2,n),this.chartConfig.width-n);this.boundingRect.x=r-n,this.boundingRect.width=n*2}getDrawableElements(){let 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}},N(QG,`getChartTitleComponent`),kbt=.75,Abt=.5,jbt=.35,N($G,`getLegendLayout`),fK=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{N(this,`ChartLegend`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(e=>e.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:t,markerSize:n,markerSpacing:r,itemSpacing:i}=$G(this.chartConfig.legendFontSize),a=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(e=>e.title),t),o=this.chartConfig.legendPadding*2+n+r+a.width,s=this.chartConfig.legendPadding*2+this.visiblePlots.length*t+(this.visiblePlots.length-1)*i;return o<=e.width&&s<=e.height?(this.boundingRect.width=o,this.boundingRect.height=s):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:t,markerSpacing:n,itemSpacing:r}=$G(this.chartConfig.legendFontSize),i=e+r,a=this.boundingRect.x+this.chartConfig.legendPadding,o=this.boundingRect.y+this.chartConfig.legendPadding,s=[],l=[];for(let[e,n]of this.visiblePlots.entries())if(YG(n))s.push({x:a,y:o+e*i,width:t,height:t,fill:n.fill,strokeFill:n.fill,strokeWidth:0});else{let r=o+e*i+t/2;l.push({path:`M ${a},${r} L ${a+t},${r}`,strokeFill:n.strokeFill,strokeWidth:n.strokeWidth})}return[{groupTexts:[`legend`,`markers`],type:`rect`,data:s},{groupTexts:[`legend`,`markers`],type:`path`,data:l},{groupTexts:[`legend`,`label`],type:`text`,data:this.visiblePlots.map((r,s)=>({text:r.title,x:a+t+n,y:o+s*i+t/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:`middle`,horizontalPos:`left`}))}]}},N(ubt,`getChartLegendComponent`),pK=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static{N(this,`LinePlot`)}getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;if(t=this.orientation===`horizontal`?zCe().y(e=>e[0]).x(e=>e[1])(e):zCe().x(e=>e[0]).y(e=>e[1])(e),!t)return[];let n=[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let t=[];for(let[n,[r,i]]of e.entries()){let e=this.plotData.pointLabels[n];e&&(this.orientation===`horizontal`?t.push({x:i+10,y:r,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`left`,fontSize:12,rotation:0}):t.push({x:r,y:i-10,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`center`,fontSize:12,rotation:0}))}t.length>0&&n.push({groupTexts:[`plot`,`line-plot-${this.plotIndex}`,`labels`],type:`text`,data:t})}return n}},Mbt=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static{N(this,`BarPlot`)}getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[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(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},mK=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static{N(this,`BasePlot`)}setAxes(e,t){this.xAxis=e,this.yAxis=t}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`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new pK(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new Mbt(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}}return e}},N(dbt,`getPlotComponent`),Nbt=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:QG(e,t,n,r),plot:dbt(e,t,n),legend:ubt(e,t,n,r),xAxis:lbt(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:lbt(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static{N(this,`Orchestrator`)}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i={width:0,height:0},a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`bottom`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=s.height,this.componentStore.yAxis.setAxisPosition(`left`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=s.width,e-=s.width,i=this.componentStore.legend.calculateSpace({width:e,height:o}),e-=i.width,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.title.alignTo(n,n+a),this.componentStore.legend.setBoundingBoxXY({x:n+a,y:r+Math.max((o-i.height)/2,0)}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+o}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>YG(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a={width:0,height:0},o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:o,height:s});e-=l.width,t-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=l.height,t-=l.height,this.componentStore.xAxis.setAxisPosition(`left`),l=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=l.width,r=l.width,this.componentStore.yAxis.setAxisPosition(`top`),l=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=l.height,i=n+l.height,a=this.componentStore.legend.calculateSpace({width:e,height:s}),e-=a.width,e>0&&(o+=e,e=0),t>0&&(s+=t,t=0),this.componentStore.plot.calculateSpace({width:o,height:s}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.title.alignTo(r,r+o),this.componentStore.legend.setBoundingBoxXY({x:r+o,y:i+Math.max((s-a.height)/2,0)}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>YG(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},hK=class{static{N(this,`XYChartBuilder`)}static build(e,t,n,r){return new Nbt(e,t,n,r).getDrawableElement()}},gK=0,vK=tK(),yK=eK(),bK=nK(),xK=yK.plotColorPalette.split(`,`).map(e=>e.trim()),SK=!1,Pbt=!1,N(eK,`getChartDefaultThemeConfig`),N(tK,`getChartDefaultConfig`),N(nK,`getChartDefaultData`),N(rK,`textSanitizer`),N(fbt,`setTmpSVGG`),N(pbt,`setOrientation`),N(mbt,`setXAxisTitle`),N(iK,`setXAxisRangeData`),N(hbt,`setXAxisBand`),N(aK,`setYAxisTitle`),N(gbt,`setYAxisRangeData`),N(_bt,`setYAxisRangeFromPlotData`),N(vbt,`transformDataWithoutCategory`),N(ybt,`getPlotColorFromPalette`),N(oK,`setLineData`),N(bbt,`setBarData`),N(sK,`getDrawableElem`),N(cK,`getChartThemeConfig`),N(xbt,`getChartConfig`),N(Sbt,`getXYChartData`),Fbt={parser:lK,db:{getDrawableElem:sK,clear:N(function(){fs(),gK=0,vK=tK(),bK=nK(),yK=eK(),xK=yK.plotColorPalette.split(`,`).map(e=>e.trim()),SK=!1,Pbt=!1},`clear`),setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,getAccDescription:gs,setAccDescription:hs,setOrientation:pbt,setXAxisTitle:mbt,setXAxisRangeData:iK,setXAxisBand:hbt,setYAxisTitle:aK,setYAxisRangeData:gbt,setLineData:oK,setBarData:bbt,setTmpSVGG:fbt,getChartThemeConfig:cK,getChartConfig:xbt,getXYChartData:Sbt},renderer:{draw:N((e,t,n,r)=>{let i=r.db,a=i.getChartThemeConfig(),o=i.getChartConfig(),s=i.getXYChartData().plots[0].data.map(e=>e[1]);function l(e){return e===`top`?`text-before-edge`:`middle`}N(l,`getDominantBaseLine`);function u(e){return e===`left`?`start`:e===`right`?`end`:`middle`}N(u,`getTextAnchor`);function d(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}N(d,`getTextTransformation`),P.debug(`Rendering xychart chart +`+e);let f=Op(t),p=f.append(`g`).attr(`class`,`main`),m=p.append(`rect`).attr(`width`,o.width).attr(`height`,o.height).attr(`class`,`background`);ls(f,o.height,o.width,!0),f.attr(`viewBox`,`0 0 ${o.width} ${o.height}`),m.attr(`fill`,a.backgroundColor),i.setTmpSVGG(f.append(`g`).attr(`class`,`mermaid-tmp-group`));let h=i.getDrawableElem(),g={};function _(e){let t=p,n=``;for(let[r]of e.entries()){let i=p;r>0&&g[n]&&(i=g[n]),n+=e[r],t=g[n],t||=g[n]=i.append(`g`).attr(`class`,e[r])}return t}N(_,`getGroup`);for(let e of h){if(e.data.length===0)continue;let t=_(e.groupTexts);switch(e.type){case`rect`:if(t.selectAll(`rect`).data(e.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),o.showDataLabel){let n=o.showDataLabelOutsideBar;if(o.chartOrientation===`horizontal`){let r=function(e,t){let{data:n,label:r}=e;return t*r.length*i<=n.width-o};N(r,`fitsHorizontally`);let i=.7,o=10,l=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),u=l.map(e=>{let{data:t}=e,n=t.height*.7;for(;!r(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...u)),f=N(e=>n?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);t.selectAll(`text`).data(l).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,n?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let r=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,l=o+a/2,u=s>=r.x&&l<=r.x+r.width,d=r.y+n+t<=r.y+r.height;return u&&d};N(r,`fitsInBar`);let i=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=i.map(e=>{let{data:t,label:n}=e,i=t.width/(n.length*.7);for(;!r(e,i,10)&&i>0;)--i;return i}),l=Math.floor(Math.min(...o)),u=N(e=>n?e.data.y-10:e.data.y+10,`determineLabelYPosition`);t.selectAll(`text`).data(i).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,u).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,n?`auto`:`hanging`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${l}px`).text(e=>e.label)}}break;case`text`:t.selectAll(`text`).data(e.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>l(e.verticalPos)).attr(`text-anchor`,e=>u(e.horizontalPos)).attr(`transform`,e=>d(e)).text(e=>e.text);break;case`path`:t.selectAll(`path`).data(e.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth)}}},`draw`)}}})),Ibt=l({diagram:()=>Wbt}),Lbt,Rbt,zbt,Bbt,Vbt,Hbt,Ubt,Wbt,Gbt=o((()=>{JN(),XN(),UM(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),Lbt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],s=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[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],k=[27,29],A=[1,70],j=[1,71],M=[1,72],ee=[1,73],te=[1,74],ne=[1,75],re=[1,76],ie=[1,83],ae=[1,80],oe=[1,84],se=[1,85],ce=[1,86],le=[1,87],ue=[1,88],de=[1,89],fe=[1,90],pe=[1,91],me=[1,92],he=[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],ge=[63,64],_e=[1,101],ve=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],ye=[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],be=[1,110],xe=[1,106],Se=[1,107],Ce=[1,108],we=[1,109],Te=[1,111],Ee=[1,116],De=[1,117],Oe=[1,114],ke=[1,115],Ae={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,6:t,9:n,11:r,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:n,11:r,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:n,11:r,13:i},{1:[2,2]},{4:17,5:o,7:13,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:43,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:44,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:45,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:46,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:47,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:48,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:49,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:50,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{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]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},e(D,[2,29]),e(D,[2,30]),e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(D,[2,34]),e(O,[2,81]),e(O,[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]},e(k,[2,79]),e(k,[2,80]),{27:[1,67],29:[1,68]},e(k,[2,85]),e(k,[2,86]),{62:69,65:A,66:j,67:M,68:ee,69:te,70:ne,71:re},{62:77,65:A,66:j,67:M,68:ee,69:te,70:ne,71:re},{30:78,33:62,75:E,89:C,90:w},{73:79,75:ie,76:ae,78:81,79:82,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me},e(he,[2,60]),e(he,[2,62]),{73:93,75:ie,76:ae,78:81,79:82,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me},{30:94,33:62,75:E,76:ae,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},e(ge,[2,50]),e(ge,[2,51]),e(ge,[2,52]),e(ge,[2,53]),e(ge,[2,54]),e(ge,[2,55]),e(ge,[2,56]),{64:[1,100]},e(T,[2,59],{76:ae}),e(T,[2,64],{76:_e}),{33:103,75:[1,102],89:C,90:w},e(ve,[2,65],{79:104,75:ie,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me}),e(ye,[2,67]),e(ye,[2,69]),e(ye,[2,70]),e(ye,[2,71]),e(ye,[2,72]),e(ye,[2,73]),e(ye,[2,74]),e(ye,[2,75]),e(ye,[2,76]),e(ye,[2,77]),e(ye,[2,78]),e(T,[2,57],{76:_e}),e(T,[2,58],{76:ae}),{5:be,28:105,31:xe,34:Se,36:Ce,38:we,40:Te},{27:[1,112],76:ae},{5:Ee,40:De,56:113,57:Oe,59:ke},{27:[1,118],76:ae},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:ie,78:121,79:82,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me},e(he,[2,61]),e(he,[2,63]),e(ye,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:be,28:126,31:xe,34:Se,36:Ce,38:we,40:Te},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:Ee,40:De,56:130,57:Oe,59:ke},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(ve,[2,66],{79:104,75:ie,80:oe,81:se,82:ce,83:le,84:ue,85:de,86:fe,87:pe,88:me}),{33:132,89:C,90:w},{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]},e(T,[2,27]),{5:be,28:145,31:xe,34:Se,36:Ce,38:we,40:Te},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:Ee,40:De,56:152,57:Oe,59:ke},{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]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:be,28:159,31:xe,34:Se,36:Ce,38:we,40:Te},{5:be,28:160,31:xe,34:Se,36:Ce,38:we,40:Te},{5:be,28:161,31:xe,34:Se,36:Ce,38:we,40:Te},{5:be,28:162,31:xe,34:Se,36:Ce,38:we,40:Te},{5:Ee,40:De,56:163,57:Oe,59:ke},{5:Ee,40:De,56:164,57:Oe,59:ke},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[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:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Ae.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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 t.yytext=t.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}}}})();function je(){this.yy={}}return N(je,`Parser`),je.prototype=Ae,Ae.Parser=je,new je})(),bK.parser=bK,Ibt=bK,Lbt=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=Cs,this.getAccTitle=ws,this.setAccDescription=Ts,this.getAccDescription=Es,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,this.getConfig=N(()=>As().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)}static{N(this,`RequirementDB`)}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,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,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`]}),P.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,t,n){this.relations.push({type:e,src:t,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,Ss()}setCssStyle(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(let n of t)n.includes(`,`)?e.cssStyles.push(...n.split(`,`)):e.cssStyles.push(n)}}setClass(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(e)for(let n of t){e.classes.push(n);let t=this.classes.get(n)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let n of e){let e=this.classes.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))})}}getClasses(){return this.classes}getData(){let e=As(),t=[],n=[];for(let n of this.requirements.values()){let r=n;r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.shape=`requirementBox`,r.look=e.look,r.colorIndex=t.length,t.push(r)}for(let n of this.elements.values()){let r=n;r.shape=`requirementBox`,r.look=e.look,r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.colorIndex=t.length,t.push(r)}let r=0;for(let t of this.relations){let i=t.type===this.Relationships.CONTAINS,a={id:`${t.src}-${t.dst}-${r++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:`relationshipLine`,style:[`fill:none`,i?``:`stroke-dasharray: 10,7`],labelpos:`c`,thickness:`normal`,type:`normal`,pattern:i?`normal`:`dashed`,arrowTypeStart:i?`requirement_contains`:``,arrowTypeEnd:i?``:`requirement_arrow`,look:e.look,labelType:`markdown`};n.push(a)}return{nodes:t,edges:n,other:{},config:e,direction:this.getDirection()}}},xK=N(()=>{let e=ns(),{theme:t,themeVariables:n}=e,{bkgColorArray:r,borderColorArray:i}=n;if(!jh(t,i))return``;let a=Mh(e.look),o=``,s=Ah(r);for(let e=0;e0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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 t.yytext=t.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}}}})();function je(){this.yy={}}return N(je,`Parser`),je.prototype=Ae,Ae.Parser=je,new je})(),Lbt.parser=Lbt,Rbt=Lbt,zbt=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=ps,this.getAccTitle=ms,this.setAccDescription=hs,this.getAccDescription=gs,this.setDiagramTitle=_s,this.getDiagramTitle=vs,this.getConfig=N(()=>bs().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)}static{N(this,`RequirementDB`)}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,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,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`]}),P.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,t,n){this.relations.push({type:e,src:t,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,fs()}setCssStyle(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(let n of t)n.includes(`,`)?e.cssStyles.push(...n.split(`,`)):e.cssStyles.push(n)}}setClass(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(e)for(let n of t){e.classes.push(n);let t=this.classes.get(n)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let n of e){let e=this.classes.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))})}}getClasses(){return this.classes}getData(){let e=bs(),t=[],n=[];for(let n of this.requirements.values()){let r=n;r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.shape=`requirementBox`,r.look=e.look,r.colorIndex=t.length,t.push(r)}for(let n of this.elements.values()){let r=n;r.shape=`requirementBox`,r.look=e.look,r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.colorIndex=t.length,t.push(r)}let r=0;for(let t of this.relations){let i=t.type===this.Relationships.CONTAINS,a={id:`${t.src}-${t.dst}-${r++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:`relationshipLine`,style:[`fill:none`,i?``:`stroke-dasharray: 10,7`],labelpos:`c`,thickness:`normal`,type:`normal`,pattern:i?`normal`:`dashed`,arrowTypeStart:i?`requirement_contains`:``,arrowTypeEnd:i?``:`requirement_arrow`,look:e.look,labelType:`markdown`};n.push(a)}return{nodes:t,edges:n,other:{},config:e,direction:this.getDirection()}}},Bbt=N(()=>{let e=Xo(),{theme:t,themeVariables:n}=e,{bkgColorArray:r,borderColorArray:i}=n;if(!Hh(t,i))return``;let a=Uh(e.look),o=``,s=Vh(r);for(let e=0;e{let{look:t,themeVariables:n}=ns(),{requirementEdgeLabelBackground:r}=n;return` - ${xK()} + `}return o},`genColor`),Vbt=N(e=>{let{look:t,themeVariables:n}=Xo(),{requirementEdgeLabelBackground:r}=n;return` + ${Bbt()} marker { fill: ${e.relationColor}; stroke: ${e.relationColor}; @@ -2179,16 +2181,16 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l background-color: ${r??e.edgeLabelBackground}; } -`},`getStyles`),zbt={},er(zbt,{draw:()=>Bbt}),Bbt=N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:i,state:a,layout:o,look:s}=As(),l=r.db.getData(),u=XN(t,i);l.type=r.type,l.layoutAlgorithm=JM(o),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=s===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],l.diagramId=t,await KM(l,u),Hm.insertTitle(u,`requirementDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),QN(u,8,`requirementDiagram`,a?.useMaxWidth??!0)},`draw`),Vbt={parser:Ibt,get db(){return new Lbt},renderer:zbt,styles:Rbt}})),Ubt=l({diagram:()=>Fxt});async function Wbt(e,t){nq.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=gs.splitBreaks(i).length,o=ps(i),s=o?await ms(i,As()):Hm.calculateTextDimensions(i,aq(tq));if(!o){let e=s.height/a;t.height+=e,nq.bumpVerticalPos(e)}let l,u=s.height-10,d=s.width;if(n===r){l=nq.getVerticalPos()+u,tq.rightAngles||(u+=tq.boxMargin,l=nq.getVerticalPos()+u),u+=30;let e=gs.getMax(d/2,tq.width/2);nq.insert(n-e,nq.getVerticalPos()-10+u,r+e,nq.getVerticalPos()+30+u)}else u+=tq.boxMargin,l=nq.getVerticalPos()+u,nq.insert(n,l-10,r,l);return nq.bumpVerticalPos(u),t.height+=u,t.stopy=t.starty+t.height,nq.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}function SK(e,t,n,r,i){nq.bumpVerticalPos(n);let a=r;if(t.id&&t.message&&e[t.id]){let n=e[t.id].width,i=aq(tq);t.message=Hm.wrapLabel(`[${t.message}]`,n-2*tq.wrapPadding,i),t.width=n,t.wrap=!0;let o=Hm.calculateTextDimensions(t.message,i),s=gs.getMax(o.height,tq.labelBoxHeight);a=r+s,P.debug(`${s} - ${t.message}`)}i(t),nq.bumpVerticalPos(a)}function Gbt(e,t,n,r,i,a,o){function s(n,r){n.x{let n=aq(tq),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=tq.boxMargin*8;r+=a,r-=2*tq.boxTextMargin,t.wrap&&(t.name=Hm.wrapLabel(t.name,r-2*tq.wrapPadding,n));let o=Hm.calculateTextDimensions(t.name,n);i=gs.getMax(o.height,i);let s=gs.getMax(r,o.width+2*tq.wrapPadding);if(t.margin=tq.boxTextMargin,re.textMaxHeight=i),gs.getMax(r,tq.height)}var CK,Jbt,Ybt,Xbt,Zbt,Qbt,wK,$bt,ext,TK,txt,EK,nxt,rxt,DK,ixt,OK,axt,oxt,sxt,kK,AK,jK,MK,NK,PK,FK,IK,cxt,LK,lxt,RK,uxt,zK,dxt,fxt,pxt,mxt,hxt,gxt,_xt,vxt,BK,yxt,bxt,xxt,VK,HK,UK,WK,GK,KK,qK,JK,YK,Sxt,XK,Cxt,wxt,ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,Txt,mq,Ext,Dxt,Oxt,kxt,Axt,jxt,Mxt,hq,Nxt,Pxt,Fxt,Ixt=o((()=>{u9e(),rm(),vN(),Gm(),Ls(),ar(),tr(),Dp(),CK=ym(),Jbt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],ee=[1,45],te=[1,46],ne=[1,47],re=[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],ie=[1,56],ae=[1,75],oe=[1,81],se=[1,82],ce=[1,83],le=[1,84],ue=[1,85],de=[1,86],fe=[1,87],pe=[1,88],me=[1,89],he=[1,90],ge=[1,91],_e=[1,92],ve=[1,93],ye=[1,94],be=[1,95],xe=[1,96],Se=[1,97],Ce=[1,98],we=[1,99],Te=[1,100],Ee=[1,101],De=[1,102],Oe=[1,103],ke=[1,104],Ae=[1,105],je=[1,106],Me=[2,79],Ne=[2,78],Pe=[4,5,17,51,53,54],Fe=[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],Ie=[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],Le=[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],Re=[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],ze=[5,52],Be=[62,70,71,72,73],Ve=[62,73],He=[1,152],Ue={trace:N(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],[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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},e(re,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},e(re,[2,7]),e(re,[2,8]),e(re,[2,9]),e(re,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:ie,73:ne},{23:57,62:ie,73:ne},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(re,[2,30]),e(re,[2,31]),{33:[1,63]},{35:[1,64]},e(re,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:ie,73:ae},{23:76,55:77,62:ie,73:ae},{23:78,62:ie,73:ne},{69:79,72:[1,80],78:oe,79:se,80:ce,81:le,82:ue,83:de,84:fe,85:pe,86:me,87:he,88:ge,89:_e,90:ve,91:ye,92:be,93:xe,94:Se,95:Ce,96:we,97:Te,98:Ee,99:De,100:Oe,101:ke,102:Ae,103:je},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:ie,73:ne},e([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],Me,{23:112,62:ie,73:ne}),{23:113,62:ie,73:ne},{23:114,62:ie,73:ne},e([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],Ne),e(re,[2,6]),e(re,[2,16]),e(Pe,[2,10],{11:115}),e(re,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(re,[2,22]),{5:[1,119]},e([5,52,66,104],Me),{5:[1,120]},e(re,[2,25]),e(re,[2,26]),e(re,[2,27]),e(re,[2,28]),e(re,[2,29]),e(re,[2,32]),e(re,[2,33]),e(Fe,i,{7:121}),e(Fe,i,{7:122}),e(Fe,i,{7:123}),e(Ie,i,{41:124,7:125}),e(Le,i,{43:126,7:127}),e(Le,i,{7:127,43:128}),e(Re,i,{46:129,7:130}),e(Fe,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(ze,Ne,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:ie,70:[1,143],71:[1,144],72:[1,145],73:ne},{69:147,78:oe,79:se,80:ce,81:le,82:ue,83:de,84:fe,85:pe,86:me,87:he,88:ge,89:_e,90:ve,91:ye,92:be,93:xe,94:Se,95:Ce,96:we,97:Te,98:Ee,99:De,100:Oe,101:ke,102:Ae,103:je},e(Be,[2,80]),e(Be,[2,81]),e(Be,[2,82]),e(Be,[2,83]),e(Be,[2,84]),e(Be,[2,85]),e(Be,[2,86]),e(Be,[2,87]),e(Be,[2,88]),e(Be,[2,89]),e(Be,[2,90]),e(Be,[2,91]),e(Be,[2,92]),e(Be,[2,93]),e(Be,[2,94]),e(Be,[2,95]),e(Be,[2,96]),e(Be,[2,97]),e(Be,[2,98]),e(Be,[2,99]),e(Be,[2,100]),e(Be,[2,101]),e(Be,[2,102]),e(Be,[2,103]),e(Be,[2,104]),e(Be,[2,105]),{23:148,62:ie,73:ne},{23:150,60:149,62:ie,73:ne},e(Ve,[2,68]),e(Ve,[2,69]),{58:151,104:He},{58:153,104:He},{58:154,104:He},{58:155,104:He},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:D,53:O,54:k},{5:[1,161]},e(re,[2,20]),e(re,[2,21]),e(re,[2,23]),e(re,[2,24]),{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,164],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{17:[1,165]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,166],51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{17:[1,167]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,168],51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{17:[1,169]},{17:[1,170]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,171],51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,172],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{16:[1,173]},e(re,[2,50]),{16:[1,174]},e(re,[2,55]),e(ze,[2,76]),{76:[1,175]},{16:[1,176]},e(re,[2,52]),{16:[1,177]},e(re,[2,57]),e(re,[2,53]),{23:178,62:ie,73:ne},{23:179,62:ie,73:ne},{23:180,62:ie,73:ne},{58:181,104:He},{23:182,62:ie,72:[1,183],73:ne},{58:184,104:He},{58:185,104:He},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(re,[2,17]),e(Pe,[2,11]),{13:187,51:D,53:O,54:k},e(Pe,[2,13]),e(Pe,[2,14]),e(re,[2,19]),e(re,[2,35]),e(re,[2,36]),e(re,[2,37]),e(re,[2,38]),{16:[1,188]},e(re,[2,39]),{16:[1,189]},e(re,[2,40]),e(re,[2,41]),{16:[1,190]},e(re,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:He},{58:197,104:He},{58:198,104:He},{5:[2,75]},{58:199,104:He},{23:200,62:ie,73:ne},{5:[2,58]},{5:[2,59]},{23:201,62:ie,73:ne},e(Pe,[2,12]),e(Ie,i,{7:125,41:202}),e(Le,i,{7:127,43:203}),e(Re,i,{7:130,46:204}),e(re,[2,49]),e(re,[2,54]),e(ze,[2,77]),e(re,[2,51]),e(re,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:He},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`},`getStyles`),Hbt={},Xn(Hbt,{draw:()=>Ubt}),Ubt=N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:i,state:a,layout:o,look:s}=bs(),l=r.db.getData(),u=qN(t,i);l.type=r.type,l.layoutAlgorithm=HM(o),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=s===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],l.diagramId=t,await VM(l,u),Wm.insertTitle(u,`requirementDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),YN(u,8,`requirementDiagram`,a?.useMaxWidth??!0)},`draw`),Wbt={parser:Rbt,get db(){return new zbt},renderer:Hbt,styles:Vbt}})),Kbt=l({diagram:()=>Nxt});async function wK(e,t){dq.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=cs.splitBreaks(i).length,o=as(i),s=o?await os(i,bs()):Wm.calculateTextDimensions(i,mq(uq));if(!o){let e=s.height/a;t.height+=e,dq.bumpVerticalPos(e)}let l,u=s.height-10,d=s.width;if(n===r){l=dq.getVerticalPos()+u,uq.rightAngles||(u+=uq.boxMargin,l=dq.getVerticalPos()+u),u+=30;let e=cs.getMax(d/2,uq.width/2);dq.insert(n-e,dq.getVerticalPos()-10+u,r+e,dq.getVerticalPos()+30+u)}else u+=uq.boxMargin,l=dq.getVerticalPos()+u,dq.insert(n,l-10,r,l);return dq.bumpVerticalPos(u),t.height+=u,t.stopy=t.starty+t.height,dq.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}function TK(e,t,n,r,i){dq.bumpVerticalPos(n);let a=r;if(t.id&&t.message&&e[t.id]){let n=e[t.id].width,i=mq(uq);t.message=Wm.wrapLabel(`[${t.message}]`,n-2*uq.wrapPadding,i),t.width=n,t.wrap=!0;let o=Wm.calculateTextDimensions(t.message,i),s=cs.getMax(o.height,uq.labelBoxHeight);a=r+s,P.debug(`${s} - ${t.message}`)}i(t),dq.bumpVerticalPos(a)}function qbt(e,t,n,r,i,a,o){function s(n,r){n.x{let n=mq(uq),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=uq.boxMargin*8;r+=a,r-=2*uq.boxTextMargin,t.wrap&&(t.name=Wm.wrapLabel(t.name,r-2*uq.wrapPadding,n));let o=Wm.calculateTextDimensions(t.name,n);i=cs.getMax(o.height,i);let s=cs.getMax(r,o.width+2*uq.wrapPadding);if(t.margin=uq.boxTextMargin,re.textMaxHeight=i),cs.getMax(r,uq.height)}var EK,Xbt,Zbt,Qbt,DK,$bt,OK,ext,txt,kK,nxt,AK,rxt,ixt,axt,oxt,jK,sxt,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,cxt,HK,UK,WK,lxt,GK,uxt,dxt,fxt,KK,pxt,mxt,hxt,qK,JK,YK,XK,ZK,QK,$K,eq,tq,gxt,nq,_xt,vxt,rq,iq,aq,oq,yxt,bxt,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,xxt,Sxt,_q,Cxt,wxt,vq,Txt,Ext,Dxt,Oxt,yq,kxt,Axt,jxt,bq,Mxt,xq,Sq,Nxt,Pxt=o((()=>{aP(),om(),dN(),qm(),Os(),er(),Zn(),Dp(),EK=OEe(),Xbt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],ee=[1,45],te=[1,46],ne=[1,47],re=[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],ie=[1,56],ae=[1,75],oe=[1,81],se=[1,82],ce=[1,83],le=[1,84],ue=[1,85],de=[1,86],fe=[1,87],pe=[1,88],me=[1,89],he=[1,90],ge=[1,91],_e=[1,92],ve=[1,93],ye=[1,94],be=[1,95],xe=[1,96],Se=[1,97],Ce=[1,98],we=[1,99],Te=[1,100],Ee=[1,101],De=[1,102],Oe=[1,103],ke=[1,104],Ae=[1,105],je=[1,106],Me=[2,79],Ne=[2,78],Pe=[4,5,17,51,53,54],Fe=[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],Ie=[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],Le=[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],Re=[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],ze=[5,52],Be=[62,70,71,72,73],Ve=[62,73],He=[1,152],Ue={trace:N(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],[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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},e(re,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},e(re,[2,7]),e(re,[2,8]),e(re,[2,9]),e(re,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:ie,73:ne},{23:57,62:ie,73:ne},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(re,[2,30]),e(re,[2,31]),{33:[1,63]},{35:[1,64]},e(re,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:ie,73:ae},{23:76,55:77,62:ie,73:ae},{23:78,62:ie,73:ne},{69:79,72:[1,80],78:oe,79:se,80:ce,81:le,82:ue,83:de,84:fe,85:pe,86:me,87:he,88:ge,89:_e,90:ve,91:ye,92:be,93:xe,94:Se,95:Ce,96:we,97:Te,98:Ee,99:De,100:Oe,101:ke,102:Ae,103:je},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:ie,73:ne},e([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],Me,{23:112,62:ie,73:ne}),{23:113,62:ie,73:ne},{23:114,62:ie,73:ne},e([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],Ne),e(re,[2,6]),e(re,[2,16]),e(Pe,[2,10],{11:115}),e(re,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(re,[2,22]),{5:[1,119]},e([5,52,66,104],Me),{5:[1,120]},e(re,[2,25]),e(re,[2,26]),e(re,[2,27]),e(re,[2,28]),e(re,[2,29]),e(re,[2,32]),e(re,[2,33]),e(Fe,i,{7:121}),e(Fe,i,{7:122}),e(Fe,i,{7:123}),e(Ie,i,{41:124,7:125}),e(Le,i,{43:126,7:127}),e(Le,i,{7:127,43:128}),e(Re,i,{46:129,7:130}),e(Fe,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(ze,Ne,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:ie,70:[1,143],71:[1,144],72:[1,145],73:ne},{69:147,78:oe,79:se,80:ce,81:le,82:ue,83:de,84:fe,85:pe,86:me,87:he,88:ge,89:_e,90:ve,91:ye,92:be,93:xe,94:Se,95:Ce,96:we,97:Te,98:Ee,99:De,100:Oe,101:ke,102:Ae,103:je},e(Be,[2,80]),e(Be,[2,81]),e(Be,[2,82]),e(Be,[2,83]),e(Be,[2,84]),e(Be,[2,85]),e(Be,[2,86]),e(Be,[2,87]),e(Be,[2,88]),e(Be,[2,89]),e(Be,[2,90]),e(Be,[2,91]),e(Be,[2,92]),e(Be,[2,93]),e(Be,[2,94]),e(Be,[2,95]),e(Be,[2,96]),e(Be,[2,97]),e(Be,[2,98]),e(Be,[2,99]),e(Be,[2,100]),e(Be,[2,101]),e(Be,[2,102]),e(Be,[2,103]),e(Be,[2,104]),e(Be,[2,105]),{23:148,62:ie,73:ne},{23:150,60:149,62:ie,73:ne},e(Ve,[2,68]),e(Ve,[2,69]),{58:151,104:He},{58:153,104:He},{58:154,104:He},{58:155,104:He},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:D,53:O,54:k},{5:[1,161]},e(re,[2,20]),e(re,[2,21]),e(re,[2,23]),e(re,[2,24]),{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,164],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{17:[1,165]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,166],51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{17:[1,167]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,168],51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{17:[1,169]},{17:[1,170]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,171],51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,172],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:ee,64:te,73:ne},{16:[1,173]},e(re,[2,50]),{16:[1,174]},e(re,[2,55]),e(ze,[2,76]),{76:[1,175]},{16:[1,176]},e(re,[2,52]),{16:[1,177]},e(re,[2,57]),e(re,[2,53]),{23:178,62:ie,73:ne},{23:179,62:ie,73:ne},{23:180,62:ie,73:ne},{58:181,104:He},{23:182,62:ie,72:[1,183],73:ne},{58:184,104:He},{58:185,104:He},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(re,[2,17]),e(Pe,[2,11]),{13:187,51:D,53:O,54:k},e(Pe,[2,13]),e(Pe,[2,14]),e(re,[2,19]),e(re,[2,35]),e(re,[2,36]),e(re,[2,37]),e(re,[2,38]),{16:[1,188]},e(re,[2,39]),{16:[1,189]},e(re,[2,40]),e(re,[2,41]),{16:[1,190]},e(re,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:He},{58:197,104:He},{58:198,104:He},{5:[2,75]},{58:199,104:He},{23:200,62:ie,73:ne},{5:[2,58]},{5:[2,59]},{23:201,62:ie,73:ne},e(Pe,[2,12]),e(Ie,i,{7:125,41:202}),e(Le,i,{7:127,43:203}),e(Re,i,{7:130,46:204}),e(re,[2,49]),e(re,[2,54]),e(ze,[2,77]),e(re,[2,51]),e(re,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:He},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Ue.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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 t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.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 t.yytext=t.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]+(?=\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(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/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}}}})();function We(){this.yy={}}return N(We,`Parser`),We.prototype=Ue,Ue.Parser=We,new We})(),Jbt.parser=Jbt,Ybt=Jbt,Xbt={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},Zbt={FILLED:0,OPEN:1},Qbt={LEFTOF:0,RIGHTOF:1,OVER:2},wK={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},$bt=class{constructor(){this.state=new l9e(()=>({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=Cs,this.setAccDescription=Ts,this.setDiagramTitle=Ds,this.getAccTitle=ws,this.getAccDescription=Es,this.getDiagramTitle=Os,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(As().wrap),this.LINETYPE=Xbt,this.ARROWTYPE=Zbt,this.PLACEMENT=Qbt}static{N(this,`SequenceDB`)}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,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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 t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.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 t.yytext=t.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]+(?=\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(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/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}}}})();function We(){this.yy={}}return N(We,`Parser`),We.prototype=Ue,Ue.Parser=We,new We})(),Xbt.parser=Xbt,Zbt=Xbt,Qbt={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},DK={FILLED:0,OPEN:1},$bt={LEFTOF:0,RIGHTOF:1,OVER:2},OK={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},ext=class{constructor(){this.state=new h9e(()=>({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=ps,this.setAccDescription=hs,this.setDiagramTitle=_s,this.getAccTitle=ms,this.getAccDescription=gs,this.getDiagramTitle=vs,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(bs().wrap),this.LINETYPE=Qbt,this.ARROWTYPE=DK,this.PLACEMENT=$bt}static{N(this,`SequenceDB`)}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,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(` `)?i+` `:`{ `+i+` -}`,o=tm(e,{schema:Qp})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??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();let t=/^:?wrap:/.exec(e)!==null||/^:?nowrap:/.exec(e)===null&&void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?As().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),Ss()}parseMessage(e){let t=e.trim(),{wrap:n,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:n};return P.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?ls(a,As()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),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:t})}addLinks(e,t){let n=this.getActor(e);try{let e=ls(t.text,As());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let r=JSON.parse(e);this.insertLinks(n,r)}catch(e){P.error(`error while parsing actor link text`,e)}}addALink(e,t){let n=this.getActor(e);try{let e={},r=ls(t.text,As()),i=r.indexOf(`@`);r=r.replace(/=/g,`=`),r=r.replace(/&/g,`&`);let a=r.slice(0,i-1).trim();e[a]=r.slice(i+1).trim(),this.insertLinks(n,e)}catch(e){P.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let n=this.getActor(e);try{let e=ls(t.text,As()),r=JSON.parse(e);this.insertProperties(n,r)}catch(e){P.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let n=this.getActor(e),r=document.getElementById(t.text);try{let e=r.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(e){P.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});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 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 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 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`:Cs(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)}}getConfig(){return As().sequence}},ext=N(e=>{let t=e.dropShadow??`none`,{look:n}=As();return`.actor { +}`,o=am(e,{schema:rm})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??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();let t=/^:?wrap:/.exec(e)!==null||/^:?nowrap:/.exec(e)===null&&void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?bs().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),fs()}parseMessage(e){let t=e.trim(),{wrap:n,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:n};return P.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?ns(a,bs()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),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:t})}addLinks(e,t){let n=this.getActor(e);try{let e=ns(t.text,bs());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let r=JSON.parse(e);this.insertLinks(n,r)}catch(e){P.error(`error while parsing actor link text`,e)}}addALink(e,t){let n=this.getActor(e);try{let e={},r=ns(t.text,bs()),i=r.indexOf(`@`);r=r.replace(/=/g,`=`),r=r.replace(/&/g,`&`);let a=r.slice(0,i-1).trim();e[a]=r.slice(i+1).trim(),this.insertLinks(n,e)}catch(e){P.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let n=this.getActor(e);try{let e=ns(t.text,bs()),r=JSON.parse(e);this.insertProperties(n,r)}catch(e){P.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let n=this.getActor(e),r=document.getElementById(t.text);try{let e=r.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(e){P.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});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 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 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 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`:ps(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)}}getConfig(){return bs().sequence}},txt=N(e=>{let t=e.dropShadow??`none`,{look:n}=bs();return`.actor { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; stroke-width: ${e.strokeWidth??1}; @@ -2334,25 +2336,25 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l filter: ${t}; stroke: ${e.nodeBorder}; } -`},`getStyles`),TK=44,txt=6,EK=6,nxt=N((e,t)=>e.actorTextHeight??Hm.calculateTextDimensions(e.description??``,{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}).height,`actorLabelHeight`),rxt=N(e=>TK+txt+e+EK,`actorStackHeight`),DK=N((e,t,n)=>{let r=e+t,i=r-EK-n/2;return{lifelineStartY:r,glyphBottomY:r-EK-n-txt,labelCenterY:i}},`headerBands`),ixt=N((e,t)=>{let n=e+EK,r=n+TK;return{glyphTopY:n,glyphBottomY:r,labelCenterY:r+txt+t/2,stackHeight:rxt(t)}},`footerBands`),OK=36,axt=-5,oxt=60,sxt=oxt-axt,kK=N((e,t,n,r)=>{if(t.look!==`neo`)return null;let i=nxt(e,t);return n?ixt(r,i):DK(r,e.height,i)},`neoBands`),AK=`actor-top`,jK=`actor-bottom`,MK=`actor-box`,NK=`actor-man`,PK=new Set([`redux-color`,`redux-dark-color`]),FK=N((e,t)=>e?.length?e[t%e.length]:void 0,`paletteColor`),IK=N(function(e,t){let n=mN(e,t);return ns().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),cxt=N(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;s.class!==void 0&&(d=` `+s.class);let f=s.width>n?s.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,s.x),p.attr(`y`,s.height),p.attr(`fill`,s.fill),p.attr(`stroke`,s.stroke),p.attr(`width`,f),p.attr(`height`,s.height),p.attr(`rx`,s.rx),p.attr(`ry`,s.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,CK.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),$K(r)(e,h,s.x+10,s.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:s.height+m,width:f}},`drawPopup`),LK=N(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),lxt=N(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await hs(t.text,ns()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),RK=N(function(e,t){let n=0,r=0,i=t.text.split(gs.lineBreakRegex),[a,o]=Vm(t.fontSize),s=[],l=0,u=N(()=>t.y,`yfunc`);if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case`top`:case`start`:u=N(()=>Math.round(t.y+t.textMargin),`yfunc`);break;case`middle`:case`center`:u=N(()=>Math.round(t.y+(n+r+t.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=N(()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin),`yfunc`)}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case`left`:case`start`:t.x=Math.round(t.x+t.textMargin),t.anchor=`start`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`middle`:case`center`:t.x=Math.round(t.x+t.width/2),t.anchor=`middle`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`right`:case`end`:t.x=Math.round(t.x+t.width-t.textMargin),t.anchor=`end`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`}for(let[d,f]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(l=d*a);let i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,u()),t.anchor!==void 0&&i.attr(`text-anchor`,t.anchor).attr(`dominant-baseline`,t.dominantBaseline).attr(`alignment-baseline`,t.alignmentBaseline),t.fontFamily!==void 0&&i.style(`font-family`,t.fontFamily),o!==void 0&&i.style(`font-size`,o),t.fontWeight!==void 0&&i.style(`font-weight`,t.fontWeight),t.fill!==void 0&&i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class),t.dy===void 0?l!==0&&i.attr(`dy`,l):i.attr(`dy`,t.dy);let p=f||`​`;if(t.tspan){let e=i.append(`tspan`);e.attr(`x`,t.x),t.fill!==void 0&&e.attr(`fill`,t.fill),e.text(p)}else i.text(p);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},`drawText`),uxt=N(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}N(n,`genPoints`);let r=e.append(`polygon`);return r.attr(`points`,n(t.x,t.y,t.width,t.height,7)),r.attr(`class`,`labelBox`),t.y+=t.height/2,RK(e,t),r},`drawLabel`),zK=-1,dxt=N((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),fxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+t.height,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower();var g=h;r||(zK++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,LK(`actor${zK}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=zK,t.links!=null&&g.attr(`id`,`root-`+zK),u===`neo`&&g.attr(`data-look`,`neo`));let _=gN();var v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${jK}`:` ${AK}`,_.x=t.x,_.y=o,_.width=t.width,_.height=t.height,_.class=v,_.rx=3,_.ry=3,_.name=t.name,u===`neo`&&(_.rx=6,_.ry=6);let y=IK(g,_),b=a.get(t.name)??0;if(PK.has(d)&&(y.style(`stroke`,FK(m,b)),y.style(`fill`,FK(p,b))),u===`neo`&&y.attr(`filter`,`url(#${XK(i)})`),t.rectData=_,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?Y8e(g,_.x+_.width-20,_.y+10,e.substr(1)):hN(g,_.x+_.width-20,_.y+10,e)}r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`participant`),g.attr(`data-id`,t.name)),QK(n,ps(t.description))(t.description,g,_.x,_.y,_.width,_.height,{class:`actor ${MK}`},n);let x=t.height;if(y.node){let e=y.node().getBBox();n.look!==`neo`&&(t.height=e.height,x=e.height)}return x},`drawActorTypeParticipant`),pxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+t.height,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower();var g=h;r||(zK++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,LK(`actor${zK}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=zK,t.links!=null&&g.attr(`id`,`root-`+zK),u===`neo`&&g.attr(`data-look`,`neo`));let _=gN();var v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${jK}`:` ${AK}`,_.x=t.x,_.y=o,_.width=t.width,_.height=t.height,_.class=v,_.name=t.name,n.look===`neo`&&(_.height=t.height-6);let y={..._,x:_.x+-6,y:_.y+6,class:`actor`},b=IK(g,_),x=IK(g,y);t.rectData=_,u===`neo`&&g.attr(`filter`,`url(#${XK(i)})`);let S=a.get(t.name)??0;if(PK.has(d)&&(b.style(`stroke`,FK(m,S)),b.style(`fill`,FK(p,S)),x.style(`stroke`,FK(m,S)),x.style(`fill`,FK(p,S))),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?Y8e(g,_.x+_.width-20,_.y+10,e.substr(1)):hN(g,_.x+_.width-20,_.y+10,e)}QK(n,ps(t.description))(t.description,g,_.x-6,_.y+6,_.width,_.height,{class:`actor ${MK}`},n);let C=t.height;if(b.node){let e=b.node().getBBox();n.look!==`neo`&&(t.height=e.height,C=e.height)}return r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`collections`),g.attr(`data-id`,t.name)),C},`drawActorTypeCollections`),mxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+t.height,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower(),g=h;r||(zK++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,LK(`actor${zK}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=zK,t.links!=null&&g.attr(`id`,`root-`+zK),u===`neo`&&g.attr(`data-look`,`neo`));let _=gN(),v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${jK}`:` ${AK}`,g.attr(`class`,v),_.x=t.x,_.y=o,_.width=t.width,_.height=t.height,_.name=t.name;let y=_.height/2,b=y/(2.5+_.height/50),x=g.append(`g`),S=g.append(`g`),C=`M ${_.x},${_.y+y} +`},`getStyles`),kK=44,nxt=6,AK=6,rxt=N((e,t)=>e.actorTextHeight??Wm.calculateTextDimensions(e.description??``,{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}).height,`actorLabelHeight`),ixt=N(e=>kK+nxt+e+AK,`actorStackHeight`),axt=N((e,t,n)=>{let r=e+t,i=r-AK-n/2;return{lifelineStartY:r,glyphBottomY:r-AK-n-nxt,labelCenterY:i}},`headerBands`),oxt=N((e,t)=>{let n=e+AK,r=n+kK;return{glyphTopY:n,glyphBottomY:r,labelCenterY:r+nxt+t/2,stackHeight:ixt(t)}},`footerBands`),jK=36,sxt=-5,MK=60,NK=MK-sxt,PK=N((e,t,n,r)=>{if(t.look!==`neo`)return null;let i=rxt(e,t);return n?oxt(r,i):axt(r,e.height,i)},`neoBands`),FK=`actor-top`,IK=`actor-bottom`,LK=`actor-box`,RK=`actor-man`,zK=new Set([`redux-color`,`redux-dark-color`]),BK=N((e,t)=>e?.length?e[t%e.length]:void 0,`paletteColor`),VK=N(function(e,t){let n=r5e(e,t);return Xo().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),cxt=N(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;s.class!==void 0&&(d=` `+s.class);let f=s.width>n?s.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,s.x),p.attr(`y`,s.height),p.attr(`fill`,s.fill),p.attr(`stroke`,s.stroke),p.attr(`width`,f),p.attr(`height`,s.height),p.attr(`rx`,s.rx),p.attr(`ry`,s.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,EK.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),cq(r)(e,h,s.x+10,s.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:s.height+m,width:f}},`drawPopup`),HK=N(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),UK=N(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await ss(t.text,Xo()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),WK=N(function(e,t){let n=0,r=0,i=t.text.split(cs.lineBreakRegex),[a,o]=Um(t.fontSize),s=[],l=0,u=N(()=>t.y,`yfunc`);if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case`top`:case`start`:u=N(()=>Math.round(t.y+t.textMargin),`yfunc`);break;case`middle`:case`center`:u=N(()=>Math.round(t.y+(n+r+t.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=N(()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin),`yfunc`)}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case`left`:case`start`:t.x=Math.round(t.x+t.textMargin),t.anchor=`start`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`middle`:case`center`:t.x=Math.round(t.x+t.width/2),t.anchor=`middle`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`right`:case`end`:t.x=Math.round(t.x+t.width-t.textMargin),t.anchor=`end`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`}for(let[d,f]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(l=d*a);let i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,u()),t.anchor!==void 0&&i.attr(`text-anchor`,t.anchor).attr(`dominant-baseline`,t.dominantBaseline).attr(`alignment-baseline`,t.alignmentBaseline),t.fontFamily!==void 0&&i.style(`font-family`,t.fontFamily),o!==void 0&&i.style(`font-size`,o),t.fontWeight!==void 0&&i.style(`font-weight`,t.fontWeight),t.fill!==void 0&&i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class),t.dy===void 0?l!==0&&i.attr(`dy`,l):i.attr(`dy`,t.dy);let p=f||`​`;if(t.tspan){let e=i.append(`tspan`);e.attr(`x`,t.x),t.fill!==void 0&&e.attr(`fill`,t.fill),e.text(p)}else i.text(p);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},`drawText`),lxt=N(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}N(n,`genPoints`);let r=e.append(`polygon`);return r.attr(`points`,n(t.x,t.y,t.width,t.height,7)),r.attr(`class`,`labelBox`),t.y+=t.height/2,WK(e,t),r},`drawLabel`),GK=-1,uxt=N((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),dxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+t.height,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower();var g=h;r||(GK++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,HK(`actor${GK}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=GK,t.links!=null&&g.attr(`id`,`root-`+GK),u===`neo`&&g.attr(`data-look`,`neo`));let _=lN();var v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${IK}`:` ${FK}`,_.x=t.x,_.y=o,_.width=t.width,_.height=t.height,_.class=v,_.rx=3,_.ry=3,_.name=t.name,u===`neo`&&(_.rx=6,_.ry=6);let y=VK(g,_),b=a.get(t.name)??0;if(zK.has(d)&&(y.style(`stroke`,BK(m,b)),y.style(`fill`,BK(p,b))),u===`neo`&&y.attr(`filter`,`url(#${aq(i)})`),t.rectData=_,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?s5e(g,_.x+_.width-20,_.y+10,e.substr(1)):o5e(g,_.x+_.width-20,_.y+10,e)}r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`participant`),g.attr(`data-id`,t.name)),sq(n,as(t.description))(t.description,g,_.x,_.y,_.width,_.height,{class:`actor ${LK}`},n);let x=t.height;if(y.node){let e=y.node().getBBox();n.look!==`neo`&&(t.height=e.height,x=e.height)}return x},`drawActorTypeParticipant`),fxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+t.height,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower();var g=h;r||(GK++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,HK(`actor${GK}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=GK,t.links!=null&&g.attr(`id`,`root-`+GK),u===`neo`&&g.attr(`data-look`,`neo`));let _=lN();var v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${IK}`:` ${FK}`,_.x=t.x,_.y=o,_.width=t.width,_.height=t.height,_.class=v,_.name=t.name,n.look===`neo`&&(_.height=t.height-6);let y={..._,x:_.x+-6,y:_.y+6,class:`actor`},b=VK(g,_),x=VK(g,y);t.rectData=_,u===`neo`&&g.attr(`filter`,`url(#${aq(i)})`);let S=a.get(t.name)??0;if(zK.has(d)&&(b.style(`stroke`,BK(m,S)),b.style(`fill`,BK(p,S)),x.style(`stroke`,BK(m,S)),x.style(`fill`,BK(p,S))),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?s5e(g,_.x+_.width-20,_.y+10,e.substr(1)):o5e(g,_.x+_.width-20,_.y+10,e)}sq(n,as(t.description))(t.description,g,_.x-6,_.y+6,_.width,_.height,{class:`actor ${LK}`},n);let C=t.height;if(b.node){let e=b.node().getBBox();n.look!==`neo`&&(t.height=e.height,C=e.height)}return r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`collections`),g.attr(`data-id`,t.name)),C},`drawActorTypeCollections`),KK=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+t.height,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m}=f,h=e.append(`g`).lower(),g=h;r||(GK++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,HK(`actor${GK}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=GK,t.links!=null&&g.attr(`id`,`root-`+GK),u===`neo`&&g.attr(`data-look`,`neo`));let _=lN(),v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${IK}`:` ${FK}`,g.attr(`class`,v),_.x=t.x,_.y=o,_.width=t.width,_.height=t.height,_.name=t.name;let y=_.height/2,b=y/(2.5+_.height/50),x=g.append(`g`),S=g.append(`g`),C=`M ${_.x},${_.y+y} a ${b},${y} 0 0 0 0,${_.height} h ${_.width-2*b} a ${b},${y} 0 0 0 0,-${_.height} Z `;x.append(`path`).attr(`d`,C),S.append(`path`).attr(`d`,`M ${_.x},${_.y+y} - a ${b},${y} 0 0 0 0,${_.height}`),x.attr(`transform`,`translate(${b}, ${-(_.height/2)})`),S.attr(`transform`,`translate(${_.width-b}, ${-_.height/2})`),t.rectData=_,u===`neo`&&x.attr(`filter`,`url(#${XK(i)})`);let w=a.get(t.name)??0;if(PK.has(d)&&(x.style(`stroke`,FK(m,w)),x.style(`fill`,FK(p,w)),S.style(`stroke`,FK(m,w)),S.style(`fill`,FK(p,w))),t.properties?.icon){let e=t.properties.icon.trim(),n=_.x+_.width-20,r=_.y+10;e.charAt(0)===`@`?Y8e(g,n,r,e.substr(1)):hN(g,n,r,e)}QK(n,ps(t.description))(t.description,g,_.x,_.y,_.width,_.height,{class:`actor ${MK}`},n);let T=t.height,E=x.select(`path:last-child`);if(E.node()){let e=E.node().getBBox();n.look!==`neo`&&(t.height=e.height,T=e.height)}return r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`queue`),g.attr(`data-id`,t.name)),T},`drawActorTypeQueue`),hxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=kK(t,n,r,o),u=l?l.lifelineStartY:o+75,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g,actorBkg:_}=p,v=e.append(`g`).lower();r||(zK++,v.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=zK);let y=e.append(`g`),b=NK;b+=r?` ${jK}`:` ${AK}`,y.attr(`class`,b),y.attr(`name`,t.name);let x=gN();x.x=t.x,x.y=o,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height,x.class=`actor`;let S=t.x+t.width/2,C=l?l.glyphBottomY-22:o+32;y.append(`defs`).append(`marker`).attr(`id`,i+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),y.append(`circle`).attr(`cx`,S).attr(`cy`,C).attr(`r`,22).attr(`filter`,`${d===`neo`?`url(#${XK(i)})`:``}`),y.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${S}, ${C-22})`);let w=a.get(t.name)??0;return PK.has(f)?(y.style(`stroke`,FK(h,w)),y.style(`fill`,FK(m,w))):(y.style(`stroke`,g),y.style(`fill`,_)),l||(t.height=y.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0)),QK(n,ps(t.description))(t.description,y,x.x,l?l.labelCenterY-x.height/2:x.y+22+(r?5:12),x.width,x.height,{class:`actor ${NK}`},n),r||(y.attr(`data-et`,`participant`),y.attr(`data-type`,`control`),y.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),gxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=kK(t,n,r,o),u=l?l.lifelineStartY:o+75,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h}=p,g=e.append(`g`).lower(),_=e.append(`g`),v=`actor`;v+=r?` ${jK}`:` ${AK}`,_.attr(`class`,v),_.attr(`name`,t.name);let y=gN();y.x=t.x,y.y=o,y.fill=`#eaeaea`,y.width=t.width,y.height=t.height,y.class=`actor`;let b=t.x+t.width/2,x=l?l.glyphBottomY-22:o+(r?10:25);_.append(`circle`).attr(`cx`,b).attr(`cy`,x).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),_.append(`line`).attr(`x1`,b-22).attr(`x2`,b+22).attr(`y1`,x+22).attr(`y2`,x+22).attr(`stroke-width`,2),d===`neo`&&_.attr(`filter`,`url(#${XK(i)})`);let S=a.get(t.name)??0;return PK.has(f)&&(_.style(`stroke`,FK(h,S)),_.style(`fill`,FK(m,S))),l||(t.height=_.node().getBBox().height+(n?.sequence?.labelBoxHeight??0)),r||(zK++,g.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=zK),QK(n,ps(t.description))(t.description,_,y.x,l?l.labelCenterY-y.height/2:y.y+(r?15:30),y.width,y.height,{class:`actor ${NK}`},n),l||_.attr(`transform`,`translate(0, ${r?22:6})`),r||(_.attr(`data-et`,`participant`),_.attr(`data-type`,`entity`),_.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),_xt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=kK(t,n,r,o),u=l?l.lifelineStartY:o+t.height+2*n.boxTextMargin,{theme:d,themeVariables:f,look:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g}=f,_=e.append(`g`).lower(),v=_;r||(zK++,Object.keys(t.links||{}).length&&!n.forceMenus&&v.attr(`onclick`,LK(`actor${zK}_popup`)).attr(`cursor`,`pointer`),v.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),v=_.append(`g`),t.actorCnt=zK,t.links!=null&&v.attr(`id`,`root-`+zK),p===`neo`&&v.attr(`data-look`,`neo`));let y=gN(),b=`actor`;t.properties?.class?b=t.properties.class:y.fill=`#eaeaea`,b+=r?` ${jK}`:` ${AK}`,y.x=t.x,y.y=o,y.width=t.width,y.height=t.height,y.class=b,y.name=t.name,y.x=t.x,y.y=o;let x=y.width/3,S=x/2,C=S/(2.5+x/50),w=l?TK:y.width/3,T=l?l.glyphBottomY-w-C:y.y,E=v.append(`g`);E.attr(`class`,b);let D=` + a ${b},${y} 0 0 0 0,${_.height}`),x.attr(`transform`,`translate(${b}, ${-(_.height/2)})`),S.attr(`transform`,`translate(${_.width-b}, ${-_.height/2})`),t.rectData=_,u===`neo`&&x.attr(`filter`,`url(#${aq(i)})`);let w=a.get(t.name)??0;if(zK.has(d)&&(x.style(`stroke`,BK(m,w)),x.style(`fill`,BK(p,w)),S.style(`stroke`,BK(m,w)),S.style(`fill`,BK(p,w))),t.properties?.icon){let e=t.properties.icon.trim(),n=_.x+_.width-20,r=_.y+10;e.charAt(0)===`@`?s5e(g,n,r,e.substr(1)):o5e(g,n,r,e)}sq(n,as(t.description))(t.description,g,_.x,_.y,_.width,_.height,{class:`actor ${LK}`},n);let T=t.height,E=x.select(`path:last-child`);if(E.node()){let e=E.node().getBBox();n.look!==`neo`&&(t.height=e.height,T=e.height)}return r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`queue`),g.attr(`data-id`,t.name)),T},`drawActorTypeQueue`),pxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=PK(t,n,r,o),u=l?l.lifelineStartY:o+75,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g,actorBkg:_}=p,v=e.append(`g`).lower();r||(GK++,v.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=GK);let y=e.append(`g`),b=RK;b+=r?` ${IK}`:` ${FK}`,y.attr(`class`,b),y.attr(`name`,t.name);let x=lN();x.x=t.x,x.y=o,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height,x.class=`actor`;let S=t.x+t.width/2,C=l?l.glyphBottomY-22:o+32;y.append(`defs`).append(`marker`).attr(`id`,i+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),y.append(`circle`).attr(`cx`,S).attr(`cy`,C).attr(`r`,22).attr(`filter`,`${d===`neo`?`url(#${aq(i)})`:``}`),y.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${S}, ${C-22})`);let w=a.get(t.name)??0;return zK.has(f)?(y.style(`stroke`,BK(h,w)),y.style(`fill`,BK(m,w))):(y.style(`stroke`,g),y.style(`fill`,_)),l||(t.height=y.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0)),sq(n,as(t.description))(t.description,y,x.x,l?l.labelCenterY-x.height/2:x.y+22+(r?5:12),x.width,x.height,{class:`actor ${RK}`},n),r||(y.attr(`data-et`,`participant`),y.attr(`data-type`,`control`),y.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),mxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=PK(t,n,r,o),u=l?l.lifelineStartY:o+75,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h}=p,g=e.append(`g`).lower(),_=e.append(`g`),v=`actor`;v+=r?` ${IK}`:` ${FK}`,_.attr(`class`,v),_.attr(`name`,t.name);let y=lN();y.x=t.x,y.y=o,y.fill=`#eaeaea`,y.width=t.width,y.height=t.height,y.class=`actor`;let b=t.x+t.width/2,x=l?l.glyphBottomY-22:o+(r?10:25);_.append(`circle`).attr(`cx`,b).attr(`cy`,x).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),_.append(`line`).attr(`x1`,b-22).attr(`x2`,b+22).attr(`y1`,x+22).attr(`y2`,x+22).attr(`stroke-width`,2),d===`neo`&&_.attr(`filter`,`url(#${aq(i)})`);let S=a.get(t.name)??0;return zK.has(f)&&(_.style(`stroke`,BK(h,S)),_.style(`fill`,BK(m,S))),l||(t.height=_.node().getBBox().height+(n?.sequence?.labelBoxHeight??0)),r||(GK++,g.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=GK),sq(n,as(t.description))(t.description,_,y.x,l?l.labelCenterY-y.height/2:y.y+(r?15:30),y.width,y.height,{class:`actor ${RK}`},n),l||_.attr(`transform`,`translate(0, ${r?22:6})`),r||(_.attr(`data-et`,`participant`),_.attr(`data-type`,`entity`),_.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),hxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=PK(t,n,r,o),u=l?l.lifelineStartY:o+t.height+2*n.boxTextMargin,{theme:d,themeVariables:f,look:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g}=f,_=e.append(`g`).lower(),v=_;r||(GK++,Object.keys(t.links||{}).length&&!n.forceMenus&&v.attr(`onclick`,HK(`actor${GK}_popup`)).attr(`cursor`,`pointer`),v.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),v=_.append(`g`),t.actorCnt=GK,t.links!=null&&v.attr(`id`,`root-`+GK),p===`neo`&&v.attr(`data-look`,`neo`));let y=lN(),b=`actor`;t.properties?.class?b=t.properties.class:y.fill=`#eaeaea`,b+=r?` ${IK}`:` ${FK}`,y.x=t.x,y.y=o,y.width=t.width,y.height=t.height,y.class=b,y.name=t.name,y.x=t.x,y.y=o;let x=y.width/3,S=x/2,C=S/(2.5+x/50),w=l?kK:y.width/3,T=l?l.glyphBottomY-w-C:y.y,E=v.append(`g`);E.attr(`class`,b);let D=` M ${y.x},${T+C} a ${S},${C} 0 0 0 ${x},0 a ${S},${C} 0 0 0 -${x},0 l 0,${w-2*C} a ${S},${C} 0 0 0 ${x},0 l 0,-${w-2*C} -`;E.append(`path`).attr(`d`,D),p===`neo`&&E.attr(`filter`,`url(#${XK(i)})`);let O=a.get(t.name)??0;if(PK.has(d)?(E.style(`stroke`,FK(h,O)),E.style(`fill`,FK(m,O))):E.style(`stroke`,g),E.attr(`transform`,`translate(${x}, ${C})`),t.rectData=y,QK(n,ps(t.description))(t.description,v,y.x,l?l.labelCenterY-y.height/2:y.y+35,y.width,y.height,{class:`actor ${MK}`},n),!l){let e=E.select(`path:last-child`);e.node()&&(t.height=e.node().getBBox().height+(n.sequence.labelBoxHeight??0))}return r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`database`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),vxt=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=kK(t,n,r,o),u=l?l.lifelineStartY:o+80,d=l?l.glyphBottomY-22:o+12,f=e.append(`g`).lower(),{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_,actorBorder:v}=h;r||(zK++,f.append(`line`).attr(`id`,`actor`+zK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=zK);let y=e.append(`g`),b=NK;b+=r?` ${jK}`:` ${AK}`,y.attr(`class`,b),y.attr(`name`,t.name);let x=gN();x.x=t.x,x.y=o,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height,x.class=`actor`,y.append(`line`).attr(`id`,`actor-man-torso`+zK).attr(`x1`,t.x+t.width/2-55).attr(`y1`,d).attr(`x2`,t.x+t.width/2-15).attr(`y2`,d),y.append(`line`).attr(`id`,`actor-man-arms`+zK).attr(`x1`,t.x+t.width/2-55).attr(`y1`,d-10).attr(`x2`,t.x+t.width/2-55).attr(`y2`,d+10),y.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,d).attr(`r`,22),p===`neo`&&y.attr(`filter`,`url(#${XK(i)})`);let S=a.get(t.name)??0;return PK.has(m)?(y.style(`stroke`,FK(_,S)),y.style(`fill`,FK(g,S))):y.style(`stroke`,v),l||(t.height=y.node().getBBox().height+(n.sequence.labelBoxHeight??0)),QK(n,ps(t.description))(t.description,y,x.x,l?l.labelCenterY-x.height/2:x.y+15,x.width,x.height,{class:`actor ${NK}`},n),l||y.attr(`transform`,`translate(0,21)`),r||(y.attr(`data-et`,`participant`),y.attr(`data-type`,`boundary`),y.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),BK=N(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=kK(t,n,r,a),l=s?s.lifelineStartY:a+80,{theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,h=e.append(`g`).lower();r||(zK++,h.append(`line`).attr(`id`,`actor`+zK).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`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=zK);let g=e.append(`g`),_=NK;_+=r?` ${jK}`:` ${AK}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=s?TK/sxt:1,y=N(e=>s?s.glyphBottomY-(oxt-e)*v:a+e,`gy`),b=N(e=>o+e*v,`gx`);g.append(`line`).attr(`id`,`actor-man-torso`+zK).attr(`x1`,o).attr(`y1`,y(25)).attr(`x2`,o).attr(`y2`,y(45)),g.append(`line`).attr(`id`,`actor-man-arms`+zK).attr(`x1`,b(-OK/2)).attr(`y1`,y(33)).attr(`x2`,b(OK/2)).attr(`y2`,y(33)),g.append(`line`).attr(`x1`,b(-OK/2)).attr(`y1`,y(60)).attr(`x2`,o).attr(`y2`,y(45)),g.append(`line`).attr(`x1`,o).attr(`y1`,y(45)).attr(`x2`,b(OK/2-2)).attr(`y2`,y(60));let x=g.append(`circle`);x.attr(`cx`,t.x+t.width/2),x.attr(`cy`,y(10)),x.attr(`r`,15*v),x.attr(`width`,t.width),x.attr(`height`,t.height),s||(t.height=sxt);let S=gN();S.x=t.x,S.y=a,S.fill=`#eaeaea`,S.width=t.width,S.height=t.height,S.class=`actor`,S.rx=3,S.ry=3;let C=i.get(t.name)??0;return PK.has(u)?(g.style(`stroke`,FK(p,C)),g.style(`fill`,FK(f,C))):g.style(`stroke`,m),QK(n,ps(t.description))(t.description,g,S.x,s?s.labelCenterY-S.height/2:a+35,S.width,S.height,{class:`actor ${NK}`},n),t.height},`drawActorTypeActor`),yxt=N(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await BK(e,t,n,r,s);case`participant`:return await fxt(e,t,n,r,i,s);case`boundary`:return await vxt(e,t,n,r,i,s);case`control`:return await hxt(e,t,n,r,i,s);case`entity`:return await gxt(e,t,n,r,i,s);case`database`:return await _xt(e,t,n,r,i,s);case`collections`:return await pxt(e,t,n,r,i,s);case`queue`:return await mxt(e,t,n,r,i,s)}},`drawActor`),bxt=N(function(e,t,n){let r=e.append(`g`);UK(r,t),t.name&&QK(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),xxt=N(function(e){return e.append(`g`)},`anchorElement`),VK=N(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:l}=r,{bkgColorArray:u,borderColorArray:d,mainBkg:f}=l,p=gN(),m=t.anchored,h=t.actor;p.x=t.startx,p.y=t.starty,p.class=`activation`+i%3,p.width=t.stopx-t.startx,p.height=n-t.starty;let g=IK(m,p),_=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(h)??0;PK.has(s)&&(g.style(`stroke`,FK(d,_)),g.style(`fill`,FK(u,_)??f))},`drawActivation`),HK=N(async function(e,t,n,r,i){let{boxMargin:a,boxTextMargin:o,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:f}=r,p=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+i.id),m=N(function(e,t,n,r){return p.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(e){m(t.startx,e.y,t.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let h=_N();h.text=n,h.x=t.startx,h.y=t.starty,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.width=Math.max(l??0,50),h.height=s+(r.look===`neo`?15:0)||20,h.textMargin=o,h.class=`labelText`,uxt(p,h),h=wxt(),h.text=t.title,h.x=t.startx+l/2+(t.stopx-t.startx)/2,h.y=t.starty+a+o,h.anchor=`middle`,h.valign=`middle`,h.textMargin=o,h.class=`loopText`,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=!0;let g=ps(h.text)?await lxt(p,h,t):RK(p,h);if(t.sectionTitles!==void 0){for(let[e,n]of Object.entries(t.sectionTitles))if(n.message){h.text=n.message,h.x=t.startx+(t.stopx-t.startx)/2,h.y=t.sections[e].y+a+o,h.class=`sectionTitle`,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=t.wrap,ps(h.text)?(t.starty=t.sections[e].y,await lxt(p,h,t)):RK(p,h);let r=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[e].height+=r-(a+o)}}return t.height=Math.round(t.stopy-t.starty),p},`drawLoop`),UK=N(function(e,t){q8e(e,t)},`drawBackgroundRect`),WK=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),GK=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),KK=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),qK=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),JK=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),YK=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),Sxt=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),XK=N(e=>e?`${e}-drop-shadow`:`drop-shadow`,`dropShadowId`),Cxt=N(function(e,t,n){let{theme:r}=t;e.append(`defs`).append(`filter`).attr(`id`,XK(n)).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`),wxt=N(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`),ZK=N(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),QK=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,r,a,o,s,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,[p,m]=Vm(u),h=e.split(gs.lineBreakRegex);for(let e=0;ee.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:N(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:N(function(e){this.boxes.push(e)},`addBox`),addActor:N(function(e){this.actors.push(e)},`addActor`),addLoop:N(function(e){this.loops.push(e)},`addLoop`),addMessage:N(function(e){this.messages.push(e)},`addMessage`),addNote:N(function(e){this.notes.push(e)},`addNote`),lastActor:N(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:N(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:N(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:N(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:N(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,fq(As())},`init`),updateVal:N(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:N(function(e,t,n,r){let i=this,a=0;function o(o){return N(function(s){a++;let l=i.sequenceItems.length-a+1;i.updateVal(s,`starty`,t-l*tq.boxMargin,Math.min),i.updateVal(s,`stopy`,r+l*tq.boxMargin,Math.max),i.updateVal(nq.data,`startx`,e-l*tq.boxMargin,Math.min),i.updateVal(nq.data,`stopx`,n+l*tq.boxMargin,Math.max),o!==`activation`&&(i.updateVal(s,`startx`,e-l*tq.boxMargin,Math.min),i.updateVal(s,`stopx`,n+l*tq.boxMargin,Math.max),i.updateVal(nq.data,`starty`,t-l*tq.boxMargin,Math.min),i.updateVal(nq.data,`stopy`,r+l*tq.boxMargin,Math.max))},`updateItemBounds`)}N(o,`updateFn`),this.sequenceItems.forEach(o()),this.activations.forEach(o(`activation`))},`updateBounds`),insert:N(function(e,t,n,r){let i=gs.getMin(e,n),a=gs.getMax(e,n),o=gs.getMin(t,r),s=gs.getMax(t,r);this.updateVal(nq.data,`startx`,i,Math.min),this.updateVal(nq.data,`starty`,o,Math.min),this.updateVal(nq.data,`stopx`,a,Math.max),this.updateVal(nq.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:N(function(e,t,n){let r=n.get(e.from),i=pq(e.from).length||0,a=r.x+r.width/2+(i-1)*tq.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+tq.activationWidth,stopy:void 0,actor:e.from,anchored:eq.anchorElement(t)})},`newActivation`),endActivation:N(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:N(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:N(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:N(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:N(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:N(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:nq.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:N(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:N(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:N(function(e){this.verticalPos+=e,this.data.stopy=gs.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:N(function(){return this.verticalPos},`getVerticalPos`),getBounds:N(function(){return{bounds:this.data,models:this.models}},`getBounds`)},rq=N(async function(e,t,n){nq.bumpVerticalPos(tq.boxMargin),t.height=tq.boxMargin,t.starty=nq.getVerticalPos();let r=gN();r.x=t.startx,r.y=t.starty,r.width=t.width||tq.width,r.class=`note`;let i=e.append(`g`);i.attr(`data-et`,`note`),i.attr(`data-id`,`i`+n);let a=eq.drawRect(i,r),o=_N();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy=`1em`,o.text=t.message,o.class=`noteText`,o.fontFamily=tq.noteFontFamily,o.fontSize=tq.noteFontSize,o.fontWeight=tq.noteFontWeight,o.anchor=tq.noteAlign,o.textMargin=tq.noteMargin,o.valign=`center`;let s=ps(o.text)?await lxt(i,o):RK(i,o),l=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));a.attr(`height`,l+2*tq.noteMargin),t.height+=l+2*tq.noteMargin,nq.bumpVerticalPos(l+2*tq.noteMargin),t.stopy=t.starty+l+2*tq.noteMargin,t.stopx=t.startx+r.width,nq.insert(t.startx,t.starty,t.stopx,t.stopy),nq.models.addNote(t)},`drawNote`),iq=N(function(e,t,n,r,i,a,o){let s=r.db.getActors(),l=s.get(t.from),u=s.get(t.to),d=n.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=Mxt(t,r),g=e.append(`g`),_=N((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),v=N(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,o).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:b,CENTRAL_CONNECTION_DUAL:x}=r.db.LINETYPE;if(d)switch(t.centralConnection){case y:h&&(p+=_(m,!0));break;case b:h||(f+=_(m,!1));break;case x:h?p+=_(m,!0):f+=_(m,!1)}switch(t.centralConnection){case y:v(p);break;case b:v(f);break;case x:v(f),v(p)}},`drawCentralConnection`),aq=N(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),oq=N(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),sq=N(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`),N(Wbt,`boundMessage`),cq=N(async function(e,t,n,r,i,a){let{startx:o,stopx:s,starty:l,message:u,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=Hm.calculateTextDimensions(u,aq(tq)),h=_N();h.x=Math.min(o,s),h.y=l+10,h.width=Math.abs(s-o),h.class=`messageText`,h.dy=`1em`,h.text=u,h.fontFamily=tq.messageFontFamily,h.fontSize=tq.messageFontSize,h.fontWeight=tq.messageFontWeight,h.anchor=tq.messageAlign,h.valign=`center`,h.textMargin=tq.wrapPadding,h.tspan=!1,ps(h.text)?await lxt(e,h,{startx:o,stopx:s,starty:n}):RK(e,h);let g=m.width,_;if(o===s){let a=p||tq.showSequenceNumbers,l=Mxt(i,r),u=hq(i,r),d=o+(a&&(l||u)?10:0);_=tq.rightAngles?e.append(`path`).attr(`d`,`M ${d},${n} H ${o+gs.getMax(tq.width/2,g/2)} V ${n+25} H ${o}`):e.append(`path`).attr(`d`,`M `+d+`,`+n+` C `+(d+60)+`,`+(n-10)+` `+(o+60)+`,`+(n+30)+` `+o+`,`+(n+20)),Axt(i,r)&&iq(e,i,t,r,o,s,n)}else _=e.append(`line`),_.attr(`x1`,o),_.attr(`y1`,n),_.attr(`x2`,s),_.attr(`y2`,n),Axt(i,r)&&iq(e,i,t,r,o,s,n);d===r.db.LINETYPE.DOTTED||d===r.db.LINETYPE.DOTTED_CROSS||d===r.db.LINETYPE.DOTTED_POINT||d===r.db.LINETYPE.DOTTED_OPEN||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===r.db.LINETYPE.SOLID_TOP_DOTTED||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===r.db.LINETYPE.STICK_TOP_DOTTED||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(_.style(`stroke-dasharray`,`3, 3`),_.attr(`class`,`messageLine1`)):_.attr(`class`,`messageLine0`),_.attr(`data-et`,`message`),_.attr(`data-id`,`i`+t.id),_.attr(`data-from`,t.from),_.attr(`data-to`,t.to);let v=``;if(tq.arrowMarkerAbsolute&&(v=rme(!0)),_.attr(`stroke-width`,2),_.attr(`stroke`,`none`),_.style(`fill`,`none`),(d===r.db.LINETYPE.SOLID_TOP||d===r.db.LINETYPE.SOLID_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.SOLID_BOTTOM||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.STICK_TOP||d===r.db.LINETYPE.STICK_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.STICK_BOTTOM||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.SOLID||d===r.db.LINETYPE.DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`),(d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr(`marker-start`,`url(`+v+`#`+a+`-arrowhead)`),_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`)),(d===r.db.LINETYPE.SOLID_POINT||d===r.db.LINETYPE.DOTTED_POINT)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-filled-head)`),(d===r.db.LINETYPE.SOLID_CROSS||d===r.db.LINETYPE.DOTTED_CROSS)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-crosshead)`),p||tq.showSequenceNumbers){let l=d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,u=d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,p=Axt(i,r),m=o,h=s;l?(oo?h=s-12:(h=s-6,m+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),h+=p?15:0,_.attr(`x2`,h),_.attr(`x1`,m)):_.attr(`x1`,o+6);let g=0,y=o===s,b=o<=s;g=y?t.fromBounds+1:u?b?t.toBounds-1:t.fromBounds+1:b?t.fromBounds+1:t.toBounds-1;let x=`12px`,S=f.toString().length;S>5?x=`7px`:S>3&&(x=`9px`),e.append(`line`).attr(`x1`,g).attr(`y1`,n).attr(`x2`,g).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+v+`#`+a+`-sequencenumber)`),e.append(`text`).attr(`x`,g).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,x).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(f)}},`drawMessage`),lq=N(function(e,t,n,r,i,a,o){let s=0,l=0,u,d=0;for(let e of r){let r=t.get(e),a=r.box;u&&u!=a&&(o||nq.models.addBox(u),l+=tq.boxMargin+u.margin),a&&a!=u&&(o||(a.x=s+l,a.y=i),l+=a.margin),r.width=gs.getMax(r.width||tq.width,tq.width),r.height=gs.getMax(r.height||tq.height,tq.height),r.margin=r.margin||tq.actorMargin,d=gs.getMax(d,r.height),n.get(r.name)&&(l+=r.width/2),r.x=s+l,r.starty=nq.getVerticalPos(),nq.insert(r.x,i,r.x+r.width,r.height),s+=r.width+l,r.box&&(r.box.width=s+a.margin-r.box.x),l=r.margin,u=r.box,nq.models.addActor(r)}u&&!o&&nq.models.addBox(u),nq.bumpVerticalPos(d)},`addActorRenderingData`),uq=N(async function(e,t,n,r,i,a,o){if(r){let r=0;nq.bumpVerticalPos(tq.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=nq.getVerticalPos();let l=await eq.drawActor(e,n,tq,!0,i,a,o);r=gs.getMax(r,l)}nq.bumpVerticalPos(r+tq.boxMargin)}else for(let r of n){let n=t.get(r);await eq.drawActor(e,n,tq,!1,i,a,o)}},`drawActors`),dq=N(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Ext(n),l=eq.drawPopup(e,n,s,tq,tq.forceMenus,r);l.height>i&&(i=l.height),l.width+n.x>a&&(a=l.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),fq=N(function(e){To(tq,e),e.fontFamily&&(tq.actorFontFamily=tq.noteFontFamily=tq.messageFontFamily=e.fontFamily),e.fontSize&&(tq.actorFontSize=tq.noteFontSize=tq.messageFontSize=e.fontSize),e.fontWeight&&(tq.actorFontWeight=tq.noteFontWeight=tq.messageFontWeight=e.fontWeight)},`setConf`),pq=N(function(e){return nq.activations.filter(function(t){return t.actor===e})},`actorActivations`),Txt=N(function(e,t){let n=t.get(e),r=pq(e);return[r.reduce(function(e,t){return gs.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return gs.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`),N(SK,`adjustLoopHeightForWrap`),N(Gbt,`adjustCreatedDestroyedData`),mq=N(async function(e,t,n,r){let{securityLevel:i,sequence:a,look:o,themeVariables:s}=As();tq=a;let l;i===`sandbox`&&(l=Qc(`#i`+t));let u=Qc(i===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=i===`sandbox`?l.nodes()[0].contentDocument:document;nq.init(),P.debug(r.db);let f=i===`sandbox`?u.select(`[id="${t}"]`):Qc(`[id="${t}"]`),p=r.db.getActors(),m=r.db.getCreatedActors(),h=r.db.getDestroyedActors(),g=r.db.getBoxes(),_=r.db.getActorKeys(),v=r.db.getMessages(),y=r.db.getDiagramTitle(),b=r.db.hasAtLeastOneBox(),x=r.db.hasAtLeastOneBoxWithTitle(),S=await Kbt(p,v,r);if(tq.height=await qbt(p,S,g),eq.insertComputerIcon(f,t),eq.insertDatabaseIcon(f,t),eq.insertClockIcon(f,t),b&&(nq.bumpVerticalPos(tq.boxMargin),x&&nq.bumpVerticalPos(g[0].textMaxHeight)),tq.hideUnusedParticipants===!0){let e=new Set;v.forEach(t=>{e.add(t.from),e.add(t.to)}),_=_.filter(t=>e.has(t))}let C=new Map(_.map((e,t)=>[p.get(e)?.name??e,t]));lq(f,p,m,_,0,v,!1);let w=await Pxt(v,p,S,r);eq.insertArrowHead(f,t),eq.insertArrowCrossHead(f,t),eq.insertArrowFilledHead(f,t),eq.insertSequenceNumber(f,t),eq.insertSolidTopArrowHead(f,t),eq.insertSolidBottomArrowHead(f,t),eq.insertStickTopArrowHead(f,t),eq.insertStickBottomArrowHead(f,t),o===`neo`&&eq.insertDropShadow(f,tq,t);function T(e,t){let n=nq.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),eq.drawActivation(f,n,t,tq,pq(e.from).length,r,C),nq.insert(n.startx,t-10,n.stopx,t)}N(T,`activeEnd`);let E=1,D=1,O=[],k=[],A=0;for(let e of v){let t,n,i;switch(e.type){case r.db.LINETYPE.NOTE:nq.resetVerticalPos(),n=e.noteModel,await rq(f,n,e.id);break;case r.db.LINETYPE.ACTIVE_START:nq.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION:nq.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:nq.newActivation(e,f,p);break;case r.db.LINETYPE.ACTIVE_END:T(e,nq.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:SK(w,e,tq.boxMargin,tq.boxMargin+tq.boxTextMargin,e=>nq.newLoop(e));break;case r.db.LINETYPE.LOOP_END:t=nq.endLoop(),await eq.drawLoop(f,t,`loop`,tq,e),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos()),nq.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:SK(w,e,tq.boxMargin,tq.boxMargin,e=>{let t=e.message;t||=s?.rectBkgColor||s?.actorBkg||`rgba(128, 128, 128, 0.5)`,nq.newLoop(void 0,t)});break;case r.db.LINETYPE.RECT_END:t=nq.endLoop(),k.push(t),nq.models.addLoop(t),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos());break;case r.db.LINETYPE.OPT_START:SK(w,e,tq.boxMargin,tq.boxMargin+tq.boxTextMargin,e=>nq.newLoop(e));break;case r.db.LINETYPE.OPT_END:t=nq.endLoop(),await eq.drawLoop(f,t,`opt`,tq,e),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos()),nq.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:SK(w,e,tq.boxMargin,tq.boxMargin+tq.boxTextMargin,e=>nq.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:SK(w,e,tq.boxMargin+tq.boxTextMargin,tq.boxMargin,e=>nq.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:t=nq.endLoop(),await eq.drawLoop(f,t,`alt`,tq,e),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos()),nq.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:SK(w,e,tq.boxMargin,tq.boxMargin+tq.boxTextMargin,e=>nq.newLoop(e)),nq.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:SK(w,e,tq.boxMargin+tq.boxTextMargin,tq.boxMargin,e=>nq.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:t=nq.endLoop(),await eq.drawLoop(f,t,`par`,tq,e),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos()),nq.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:E=e.message.start||E,D=e.message.step||D,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:SK(w,e,tq.boxMargin,tq.boxMargin+tq.boxTextMargin,e=>nq.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:SK(w,e,tq.boxMargin+tq.boxTextMargin,tq.boxMargin,e=>nq.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:t=nq.endLoop(),await eq.drawLoop(f,t,`critical`,tq,e),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos()),nq.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:SK(w,e,tq.boxMargin,tq.boxMargin+tq.boxTextMargin,e=>nq.newLoop(e));break;case r.db.LINETYPE.BREAK_END:t=nq.endLoop(),await eq.drawLoop(f,t,`break`,tq,e),nq.bumpVerticalPos(t.stopy-nq.getVerticalPos()),nq.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=nq.getVerticalPos(),i.sequenceIndex=E,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await Wbt(f,i);Gbt(e,i,t,A,p,m,h),O.push({messageModel:i,lineStartY:t,msg:e}),nq.models.addMessage(i)}catch(e){P.error(`error while drawing message`,e)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(E=Math.round((E+D)*100)/100),A++}P.debug(`createdActors`,m),P.debug(`destroyedActors`,h),await uq(f,p,_,!1,t,r,C);for(let e of O)await cq(f,e.messageModel,e.lineStartY,r,e.msg,t);tq.mirrorActors&&await uq(f,p,_,!0,t,r,C),k.forEach(e=>eq.drawBackgroundRect(f,e)),dxt(f,p,_,tq);for(let e of nq.models.boxes){e.height=nq.getVerticalPos()-e.y,nq.insert(e.x,e.y,e.x+e.width,e.height);let t=tq.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,eq.drawBox(f,e,tq)}b&&nq.bumpVerticalPos(tq.boxMargin);let j=dq(f,p,_,d),{bounds:M}=nq.getBounds();M.startx===void 0&&(M.startx=0),M.starty===void 0&&(M.starty=0),M.stopx===void 0&&(M.stopx=0),M.stopy===void 0&&(M.stopy=0);let ee=M.stopy-M.starty;ee2,p=N(e=>l?-e:e,`adjustValue`);e.from===e.to?d=u:(e.activate&&!f&&(d+=p(tq.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=p(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(u-=p(3)));let m=[i,a,o,s],h=Math.abs(u-d);e.wrap&&e.message&&(e.message=Hm.wrapLabel(e.message,gs.getMax(h+2*tq.wrapPadding,tq.width),aq(tq)));let g=Hm.calculateTextDimensions(e.message,aq(tq));return{width:gs.getMax(e.wrap?0:g.width+2*tq.wrapPadding,h+2*tq.wrapPadding,tq.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},`buildMessageModel`),Pxt=N(async function(e,t,n,r){let i={},a=[],o,s,l;for(let n of e){switch(n.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:n.message&&(o=a.pop(),i[o.id]=o,i[n.id]=o,a.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=pq(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*tq.activationWidth/2,a={startx:i,stopx:i+tq.activationWidth,actor:n.from,enabled:!0};nq.activations.push(a)}break;case r.db.LINETYPE.ACTIVE_END:{let e=nq.activations.map(e=>e.actor).lastIndexOf(n.from);nq.activations.splice(e,1).splice(0,1)}}n.placement===void 0?(l=Nxt(n,t,r),n.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(e=>{if(o=e,l.startx===l.stopx){let e=t.get(n.from),r=t.get(n.to);o.from=gs.getMin(e.x-l.width/2,e.x-e.width/2,o.from),o.to=gs.getMax(r.x+l.width/2,r.x+e.width/2,o.to),o.width=gs.getMax(o.width,Math.abs(o.to-o.from))-tq.labelBoxWidth}else o.from=gs.getMin(l.startx,o.from),o.to=gs.getMax(l.stopx,o.to),o.width=gs.getMax(o.width,l.width)-tq.labelBoxWidth})):(s=await Dxt(n,t,r),n.noteModel=s,a.forEach(e=>{o=e,o.from=gs.getMin(o.from,s.startx),o.to=gs.getMax(o.to,s.startx+s.width),o.width=gs.getMax(o.width,Math.abs(o.from-o.to))-tq.labelBoxWidth}))}return nq.activations=[],P.debug(`Loop type widths:`,i),i},`calculateLoopBounds`),Fxt={parser:Ybt,get db(){return new $bt},renderer:{bounds:nq,drawActors:uq,drawActorsPopup:dq,setConf:fq,draw:mq},styles:ext,init:N(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,js({sequence:{wrap:e.wrap}}))},`init`)}})),Lxt=l({diagram:()=>wq}),gq,_q,Rxt,vq,yq,bq,xq,Sq,Cq,wq,zxt=o((()=>{YN(),ZN(),$N(),YM(),vN(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),qr(),gq=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],ee=[1,62],te=[1,63],ne=[1,64],re=[1,8,9,41],ie=[1,77],ae=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],oe=[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],se=[13,60,86,100,102,103],ce=[13,60,73,74,86,100,102,103],le=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],de=[1,121],fe=[1,117],pe=[1,113],me=[1,119],he=[1,114],ge=[1,115],_e=[1,116],ve=[1,118],ye=[1,120],be=[22,50,60,61,82,86,87,88,89,90],xe=[1,128],Se=[12,39],Ce=[1,8,9,39,41,44,46],we=[1,8,9,22],Te=[1,153],Ee=[1,8,9,61],De=[1,8,9,22,50,60,61,82,86,87,88,89,90],Oe={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`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:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:ee,73:te,74:ne}),{39:[1,65]},e(re,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:ie,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(ae,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(ae,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(oe,[2,133]),e(oe,[2,134]),e(oe,[2,135]),e(oe,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[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:t,35:n,37:r,42:i,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{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:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:ee,73:te,74:ne},e(O,[2,64]),{67:93,73:te,74:ne},e(se,[2,83],{66:94,68:k,69:A,70:j,71:M,72:ee}),e(ce,[2,84]),e(ce,[2,85]),e(ce,[2,86]),e(ce,[2,87]),e(ce,[2,88]),e(le,[2,89]),e(le,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:ue},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:de,50:fe,59:110,60:pe,82:me,84:111,85:112,86:he,87:ge,88:_e,89:ve,90:ye},{60:[1,122]},{13:ie,55:123},e(re,[2,72]),e(re,[2,138]),{22:de,50:fe,59:124,60:pe,61:[1,125],82:me,84:111,85:112,86:he,87:ge,88:_e,89:ve,90:ye},e(be,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},e(ae,[2,16]),e(ae,[2,17]),e(ae,[2,18]),{11:127,12:xe,39:[2,36]},e(Se,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),e(Se,[2,10]),e(Ce,[2,55],{11:131,12:xe}),e(D,[2,7]),{9:[1,132]},e(we,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},e(se,[2,82],{66:136,68:k,69:A,70:j,71:M,72:ee}),e(se,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(re,[2,48],{39:[1,142]}),{41:[1,143]},e(re,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:Te}),e(Ee,[2,107],{85:154,22:de,50:fe,60:pe,82:me,86:he,87:ge,88:_e,89:ve,90:ye}),e(De,[2,109]),e(De,[2,111]),e(De,[2,112]),e(De,[2,113]),e(De,[2,114]),e(De,[2,115]),e(De,[2,116]),e(De,[2,117]),e(De,[2,118]),e(De,[2,119]),e(O,[2,106]),e(re,[2,71]),e(O,[2,73],{61:Te}),{60:[1,155]},e(ae,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},e(Se,[2,12]),e(Ce,[2,56]),{1:[2,4]},e(we,[2,69]),e(we,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},e(se,[2,80]),e(re,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:u,56:d},{45:163,51:ue},e(re,[2,49]),{41:[2,62]},e(re,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:de,50:fe,60:pe,82:me,84:169,85:112,86:he,87:ge,88:_e,89:ve,90:ye},e(De,[2,110]),e(be,[2,75]),{14:[1,170]},e(Se,[2,11]),e(we,[2,70]),e(re,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(Ee,[2,108],{85:154,22:de,50:fe,60:pe,82:me,86:he,87:ge,88:_e,89:ve,90:ye}),e(Ce,[2,8]),e(re,[2,51]),{41:[1,175]},e(re,[2,54]),e(O,[2,104]),e(re,[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:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`;E.append(`path`).attr(`d`,D),p===`neo`&&E.attr(`filter`,`url(#${aq(i)})`);let O=a.get(t.name)??0;if(zK.has(d)?(E.style(`stroke`,BK(h,O)),E.style(`fill`,BK(m,O))):E.style(`stroke`,g),E.attr(`transform`,`translate(${x}, ${C})`),t.rectData=y,sq(n,as(t.description))(t.description,v,y.x,l?l.labelCenterY-y.height/2:y.y+35,y.width,y.height,{class:`actor ${LK}`},n),!l){let e=E.select(`path:last-child`);e.node()&&(t.height=e.node().getBBox().height+(n.sequence.labelBoxHeight??0))}return r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`database`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),qK=N(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=PK(t,n,r,o),u=l?l.lifelineStartY:o+80,d=l?l.glyphBottomY-22:o+12,f=e.append(`g`).lower(),{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_,actorBorder:v}=h;r||(GK++,f.append(`line`).attr(`id`,`actor`+GK).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=GK);let y=e.append(`g`),b=RK;b+=r?` ${IK}`:` ${FK}`,y.attr(`class`,b),y.attr(`name`,t.name);let x=lN();x.x=t.x,x.y=o,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height,x.class=`actor`,y.append(`line`).attr(`id`,`actor-man-torso`+GK).attr(`x1`,t.x+t.width/2-55).attr(`y1`,d).attr(`x2`,t.x+t.width/2-15).attr(`y2`,d),y.append(`line`).attr(`id`,`actor-man-arms`+GK).attr(`x1`,t.x+t.width/2-55).attr(`y1`,d-10).attr(`x2`,t.x+t.width/2-55).attr(`y2`,d+10),y.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,d).attr(`r`,22),p===`neo`&&y.attr(`filter`,`url(#${aq(i)})`);let S=a.get(t.name)??0;return zK.has(m)?(y.style(`stroke`,BK(_,S)),y.style(`fill`,BK(g,S))):y.style(`stroke`,v),l||(t.height=y.node().getBBox().height+(n.sequence.labelBoxHeight??0)),sq(n,as(t.description))(t.description,y,x.x,l?l.labelCenterY-x.height/2:x.y+15,x.width,x.height,{class:`actor ${RK}`},n),l||y.attr(`transform`,`translate(0,21)`),r||(y.attr(`data-et`,`participant`),y.attr(`data-type`,`boundary`),y.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),JK=N(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=PK(t,n,r,a),l=s?s.lifelineStartY:a+80,{theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,h=e.append(`g`).lower();r||(GK++,h.append(`line`).attr(`id`,`actor`+GK).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`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=GK);let g=e.append(`g`),_=RK;_+=r?` ${IK}`:` ${FK}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=s?kK/NK:1,y=N(e=>s?s.glyphBottomY-(MK-e)*v:a+e,`gy`),b=N(e=>o+e*v,`gx`);g.append(`line`).attr(`id`,`actor-man-torso`+GK).attr(`x1`,o).attr(`y1`,y(25)).attr(`x2`,o).attr(`y2`,y(45)),g.append(`line`).attr(`id`,`actor-man-arms`+GK).attr(`x1`,b(-jK/2)).attr(`y1`,y(33)).attr(`x2`,b(jK/2)).attr(`y2`,y(33)),g.append(`line`).attr(`x1`,b(-jK/2)).attr(`y1`,y(60)).attr(`x2`,o).attr(`y2`,y(45)),g.append(`line`).attr(`x1`,o).attr(`y1`,y(45)).attr(`x2`,b(jK/2-2)).attr(`y2`,y(60));let x=g.append(`circle`);x.attr(`cx`,t.x+t.width/2),x.attr(`cy`,y(10)),x.attr(`r`,15*v),x.attr(`width`,t.width),x.attr(`height`,t.height),s||(t.height=NK);let S=lN();S.x=t.x,S.y=a,S.fill=`#eaeaea`,S.width=t.width,S.height=t.height,S.class=`actor`,S.rx=3,S.ry=3;let C=i.get(t.name)??0;return zK.has(u)?(g.style(`stroke`,BK(p,C)),g.style(`fill`,BK(f,C))):g.style(`stroke`,m),sq(n,as(t.description))(t.description,g,S.x,s?s.labelCenterY-S.height/2:a+35,S.width,S.height,{class:`actor ${RK}`},n),t.height},`drawActorTypeActor`),YK=N(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await JK(e,t,n,r,s);case`participant`:return await dxt(e,t,n,r,i,s);case`boundary`:return await qK(e,t,n,r,i,s);case`control`:return await pxt(e,t,n,r,i,s);case`entity`:return await mxt(e,t,n,r,i,s);case`database`:return await hxt(e,t,n,r,i,s);case`collections`:return await fxt(e,t,n,r,i,s);case`queue`:return await KK(e,t,n,r,i,s)}},`drawActor`),XK=N(function(e,t,n){let r=e.append(`g`);eq(r,t),t.name&&sq(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),ZK=N(function(e){return e.append(`g`)},`anchorElement`),QK=N(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:l}=r,{bkgColorArray:u,borderColorArray:d,mainBkg:f}=l,p=lN(),m=t.anchored,h=t.actor;p.x=t.startx,p.y=t.starty,p.class=`activation`+i%3,p.width=t.stopx-t.startx,p.height=n-t.starty;let g=VK(m,p),_=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(h)??0;zK.has(s)&&(g.style(`stroke`,BK(d,_)),g.style(`fill`,BK(u,_)??f))},`drawActivation`),$K=N(async function(e,t,n,r,i){let{boxMargin:a,boxTextMargin:o,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:f}=r,p=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+i.id),m=N(function(e,t,n,r){return p.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(e){m(t.startx,e.y,t.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let h=uN();h.text=n,h.x=t.startx,h.y=t.starty,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.width=Math.max(l??0,50),h.height=s+(r.look===`neo`?15:0)||20,h.textMargin=o,h.class=`labelText`,lxt(p,h),h=yxt(),h.text=t.title,h.x=t.startx+l/2+(t.stopx-t.startx)/2,h.y=t.starty+a+o,h.anchor=`middle`,h.valign=`middle`,h.textMargin=o,h.class=`loopText`,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=!0;let g=as(h.text)?await UK(p,h,t):WK(p,h);if(t.sectionTitles!==void 0){for(let[e,n]of Object.entries(t.sectionTitles))if(n.message){h.text=n.message,h.x=t.startx+(t.stopx-t.startx)/2,h.y=t.sections[e].y+a+o,h.class=`sectionTitle`,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=t.wrap,as(h.text)?(t.starty=t.sections[e].y,await UK(p,h,t)):WK(p,h);let r=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[e].height+=r-(a+o)}}return t.height=Math.round(t.stopy-t.starty),p},`drawLoop`),eq=N(function(e,t){i5e(e,t)},`drawBackgroundRect`),tq=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),gxt=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),nq=N(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-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`),_xt=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),vxt=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),rq=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),iq=N(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`),aq=N(e=>e?`${e}-drop-shadow`:`drop-shadow`,`dropShadowId`),oq=N(function(e,t,n){let{theme:r}=t;e.append(`defs`).append(`filter`).attr(`id`,aq(n)).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`),yxt=N(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`),bxt=N(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),sq=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,r,a,o,s,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,[p,m]=Um(u),h=e.split(cs.lineBreakRegex);for(let e=0;ee.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:N(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:N(function(e){this.boxes.push(e)},`addBox`),addActor:N(function(e){this.actors.push(e)},`addActor`),addLoop:N(function(e){this.loops.push(e)},`addLoop`),addMessage:N(function(e){this.messages.push(e)},`addMessage`),addNote:N(function(e){this.notes.push(e)},`addNote`),lastActor:N(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:N(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:N(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:N(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:N(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,wxt(bs())},`init`),updateVal:N(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:N(function(e,t,n,r){let i=this,a=0;function o(o){return N(function(s){a++;let l=i.sequenceItems.length-a+1;i.updateVal(s,`starty`,t-l*uq.boxMargin,Math.min),i.updateVal(s,`stopy`,r+l*uq.boxMargin,Math.max),i.updateVal(dq.data,`startx`,e-l*uq.boxMargin,Math.min),i.updateVal(dq.data,`stopx`,n+l*uq.boxMargin,Math.max),o!==`activation`&&(i.updateVal(s,`startx`,e-l*uq.boxMargin,Math.min),i.updateVal(s,`stopx`,n+l*uq.boxMargin,Math.max),i.updateVal(dq.data,`starty`,t-l*uq.boxMargin,Math.min),i.updateVal(dq.data,`stopy`,r+l*uq.boxMargin,Math.max))},`updateItemBounds`)}N(o,`updateFn`),this.sequenceItems.forEach(o()),this.activations.forEach(o(`activation`))},`updateBounds`),insert:N(function(e,t,n,r){let i=cs.getMin(e,n),a=cs.getMax(e,n),o=cs.getMin(t,r),s=cs.getMax(t,r);this.updateVal(dq.data,`startx`,i,Math.min),this.updateVal(dq.data,`starty`,o,Math.min),this.updateVal(dq.data,`stopx`,a,Math.max),this.updateVal(dq.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:N(function(e,t,n){let r=n.get(e.from),i=vq(e.from).length||0,a=r.x+r.width/2+(i-1)*uq.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+uq.activationWidth,stopy:void 0,actor:e.from,anchored:lq.anchorElement(t)})},`newActivation`),endActivation:N(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:N(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:N(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:N(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:N(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:N(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:dq.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:N(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:N(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:N(function(e){this.verticalPos+=e,this.data.stopy=cs.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:N(function(){return this.verticalPos},`getVerticalPos`),getBounds:N(function(){return{bounds:this.data,models:this.models}},`getBounds`)},fq=N(async function(e,t,n){dq.bumpVerticalPos(uq.boxMargin),t.height=uq.boxMargin,t.starty=dq.getVerticalPos();let r=lN();r.x=t.startx,r.y=t.starty,r.width=t.width||uq.width,r.class=`note`;let i=e.append(`g`);i.attr(`data-et`,`note`),i.attr(`data-id`,`i`+n);let a=lq.drawRect(i,r),o=uN();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy=`1em`,o.text=t.message,o.class=`noteText`,o.fontFamily=uq.noteFontFamily,o.fontSize=uq.noteFontSize,o.fontWeight=uq.noteFontWeight,o.anchor=uq.noteAlign,o.textMargin=uq.noteMargin,o.valign=`center`;let s=as(o.text)?await UK(i,o):WK(i,o),l=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));a.attr(`height`,l+2*uq.noteMargin),t.height+=l+2*uq.noteMargin,dq.bumpVerticalPos(l+2*uq.noteMargin),t.stopy=t.starty+l+2*uq.noteMargin,t.stopx=t.startx+r.width,dq.insert(t.startx,t.starty,t.stopx,t.stopy),dq.models.addNote(t)},`drawNote`),pq=N(function(e,t,n,r,i,a,o){let s=r.db.getActors(),l=s.get(t.from),u=s.get(t.to),d=n.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=bq(t,r),g=e.append(`g`),_=N((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),v=N(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,o).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:b,CENTRAL_CONNECTION_DUAL:x}=r.db.LINETYPE;if(d)switch(t.centralConnection){case y:h&&(p+=_(m,!0));break;case b:h||(f+=_(m,!1));break;case x:h?p+=_(m,!0):f+=_(m,!1)}switch(t.centralConnection){case y:v(p);break;case b:v(f);break;case x:v(f),v(p)}},`drawCentralConnection`),mq=N(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),hq=N(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),gq=N(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`),N(wK,`boundMessage`),xxt=N(async function(e,t,n,r,i,a){let{startx:o,stopx:s,starty:l,message:u,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=Wm.calculateTextDimensions(u,mq(uq)),h=uN();h.x=Math.min(o,s),h.y=l+10,h.width=Math.abs(s-o),h.class=`messageText`,h.dy=`1em`,h.text=u,h.fontFamily=uq.messageFontFamily,h.fontSize=uq.messageFontSize,h.fontWeight=uq.messageFontWeight,h.anchor=uq.messageAlign,h.valign=`center`,h.textMargin=uq.wrapPadding,h.tspan=!1,as(h.text)?await UK(e,h,{startx:o,stopx:s,starty:n}):WK(e,h);let g=m.width,_;if(o===s){let a=p||uq.showSequenceNumbers,l=bq(i,r),u=Mxt(i,r),d=o+(a&&(l||u)?10:0);_=uq.rightAngles?e.append(`path`).attr(`d`,`M ${d},${n} H ${o+cs.getMax(uq.width/2,g/2)} V ${n+25} H ${o}`):e.append(`path`).attr(`d`,`M `+d+`,`+n+` C `+(d+60)+`,`+(n-10)+` `+(o+60)+`,`+(n+30)+` `+o+`,`+(n+20)),Axt(i,r)&&pq(e,i,t,r,o,s,n)}else _=e.append(`line`),_.attr(`x1`,o),_.attr(`y1`,n),_.attr(`x2`,s),_.attr(`y2`,n),Axt(i,r)&&pq(e,i,t,r,o,s,n);d===r.db.LINETYPE.DOTTED||d===r.db.LINETYPE.DOTTED_CROSS||d===r.db.LINETYPE.DOTTED_POINT||d===r.db.LINETYPE.DOTTED_OPEN||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===r.db.LINETYPE.SOLID_TOP_DOTTED||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===r.db.LINETYPE.STICK_TOP_DOTTED||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(_.style(`stroke-dasharray`,`3, 3`),_.attr(`class`,`messageLine1`)):_.attr(`class`,`messageLine0`),_.attr(`data-et`,`message`),_.attr(`data-id`,`i`+t.id),_.attr(`data-from`,t.from),_.attr(`data-to`,t.to);let v=``;if(uq.arrowMarkerAbsolute&&(v=hme(!0)),_.attr(`stroke-width`,2),_.attr(`stroke`,`none`),_.style(`fill`,`none`),(d===r.db.LINETYPE.SOLID_TOP||d===r.db.LINETYPE.SOLID_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.SOLID_BOTTOM||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.STICK_TOP||d===r.db.LINETYPE.STICK_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.STICK_BOTTOM||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.SOLID||d===r.db.LINETYPE.DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`),(d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr(`marker-start`,`url(`+v+`#`+a+`-arrowhead)`),_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`)),(d===r.db.LINETYPE.SOLID_POINT||d===r.db.LINETYPE.DOTTED_POINT)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-filled-head)`),(d===r.db.LINETYPE.SOLID_CROSS||d===r.db.LINETYPE.DOTTED_CROSS)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-crosshead)`),p||uq.showSequenceNumbers){let l=d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,u=d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,p=Axt(i,r),m=o,h=s;l?(oo?h=s-12:(h=s-6,m+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),h+=p?15:0,_.attr(`x2`,h),_.attr(`x1`,m)):_.attr(`x1`,o+6);let g=0,y=o===s,b=o<=s;g=y?t.fromBounds+1:u?b?t.toBounds-1:t.fromBounds+1:b?t.fromBounds+1:t.toBounds-1;let x=`12px`,S=f.toString().length;S>5?x=`7px`:S>3&&(x=`9px`),e.append(`line`).attr(`x1`,g).attr(`y1`,n).attr(`x2`,g).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+v+`#`+a+`-sequencenumber)`),e.append(`text`).attr(`x`,g).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,x).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(f)}},`drawMessage`),Sxt=N(function(e,t,n,r,i,a,o){let s=0,l=0,u,d=0;for(let e of r){let r=t.get(e),a=r.box;u&&u!=a&&(o||dq.models.addBox(u),l+=uq.boxMargin+u.margin),a&&a!=u&&(o||(a.x=s+l,a.y=i),l+=a.margin),r.width=cs.getMax(r.width||uq.width,uq.width),r.height=cs.getMax(r.height||uq.height,uq.height),r.margin=r.margin||uq.actorMargin,d=cs.getMax(d,r.height),n.get(r.name)&&(l+=r.width/2),r.x=s+l,r.starty=dq.getVerticalPos(),dq.insert(r.x,i,r.x+r.width,r.height),s+=r.width+l,r.box&&(r.box.width=s+a.margin-r.box.x),l=r.margin,u=r.box,dq.models.addActor(r)}u&&!o&&dq.models.addBox(u),dq.bumpVerticalPos(d)},`addActorRenderingData`),_q=N(async function(e,t,n,r,i,a,o){if(r){let r=0;dq.bumpVerticalPos(uq.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=dq.getVerticalPos();let l=await lq.drawActor(e,n,uq,!0,i,a,o);r=cs.getMax(r,l)}dq.bumpVerticalPos(r+uq.boxMargin)}else for(let r of n){let n=t.get(r);await lq.drawActor(e,n,uq,!1,i,a,o)}},`drawActors`),Cxt=N(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Dxt(n),l=lq.drawPopup(e,n,s,uq,uq.forceMenus,r);l.height>i&&(i=l.height),l.width+n.x>a&&(a=l.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),wxt=N(function(e){mo(uq,e),e.fontFamily&&(uq.actorFontFamily=uq.noteFontFamily=uq.messageFontFamily=e.fontFamily),e.fontSize&&(uq.actorFontSize=uq.noteFontSize=uq.messageFontSize=e.fontSize),e.fontWeight&&(uq.actorFontWeight=uq.noteFontWeight=uq.messageFontWeight=e.fontWeight)},`setConf`),vq=N(function(e){return dq.activations.filter(function(t){return t.actor===e})},`actorActivations`),Txt=N(function(e,t){let n=t.get(e),r=vq(e);return[r.reduce(function(e,t){return cs.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return cs.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`),N(TK,`adjustLoopHeightForWrap`),N(qbt,`adjustCreatedDestroyedData`),Ext=N(async function(e,t,n,r){let{securityLevel:i,sequence:a,look:o,themeVariables:s}=bs();uq=a;let l;i===`sandbox`&&(l=Bc(`#i`+t));let u=Bc(i===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=i===`sandbox`?l.nodes()[0].contentDocument:document;dq.init(),P.debug(r.db);let f=i===`sandbox`?u.select(`[id="${t}"]`):Bc(`[id="${t}"]`),p=r.db.getActors(),m=r.db.getCreatedActors(),h=r.db.getDestroyedActors(),g=r.db.getBoxes(),_=r.db.getActorKeys(),v=r.db.getMessages(),y=r.db.getDiagramTitle(),b=r.db.hasAtLeastOneBox(),x=r.db.hasAtLeastOneBoxWithTitle(),S=await Jbt(p,v,r);if(uq.height=await Ybt(p,S,g),lq.insertComputerIcon(f,t),lq.insertDatabaseIcon(f,t),lq.insertClockIcon(f,t),b&&(dq.bumpVerticalPos(uq.boxMargin),x&&dq.bumpVerticalPos(g[0].textMaxHeight)),uq.hideUnusedParticipants===!0){let e=new Set;v.forEach(t=>{e.add(t.from),e.add(t.to)}),_=_.filter(t=>e.has(t))}let C=new Map(_.map((e,t)=>[p.get(e)?.name??e,t]));Sxt(f,p,m,_,0,v,!1);let w=await Sq(v,p,S,r);lq.insertArrowHead(f,t),lq.insertArrowCrossHead(f,t),lq.insertArrowFilledHead(f,t),lq.insertSequenceNumber(f,t),lq.insertSolidTopArrowHead(f,t),lq.insertSolidBottomArrowHead(f,t),lq.insertStickTopArrowHead(f,t),lq.insertStickBottomArrowHead(f,t),o===`neo`&&lq.insertDropShadow(f,uq,t);function T(e,t){let n=dq.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),lq.drawActivation(f,n,t,uq,vq(e.from).length,r,C),dq.insert(n.startx,t-10,n.stopx,t)}N(T,`activeEnd`);let E=1,D=1,O=[],k=[],A=0;for(let e of v){let t,n,i;switch(e.type){case r.db.LINETYPE.NOTE:dq.resetVerticalPos(),n=e.noteModel,await fq(f,n,e.id);break;case r.db.LINETYPE.ACTIVE_START:dq.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION:dq.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:dq.newActivation(e,f,p);break;case r.db.LINETYPE.ACTIVE_END:T(e,dq.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:TK(w,e,uq.boxMargin,uq.boxMargin+uq.boxTextMargin,e=>dq.newLoop(e));break;case r.db.LINETYPE.LOOP_END:t=dq.endLoop(),await lq.drawLoop(f,t,`loop`,uq,e),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos()),dq.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:TK(w,e,uq.boxMargin,uq.boxMargin,e=>{let t=e.message;t||=s?.rectBkgColor||s?.actorBkg||`rgba(128, 128, 128, 0.5)`,dq.newLoop(void 0,t)});break;case r.db.LINETYPE.RECT_END:t=dq.endLoop(),k.push(t),dq.models.addLoop(t),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos());break;case r.db.LINETYPE.OPT_START:TK(w,e,uq.boxMargin,uq.boxMargin+uq.boxTextMargin,e=>dq.newLoop(e));break;case r.db.LINETYPE.OPT_END:t=dq.endLoop(),await lq.drawLoop(f,t,`opt`,uq,e),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos()),dq.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:TK(w,e,uq.boxMargin,uq.boxMargin+uq.boxTextMargin,e=>dq.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:TK(w,e,uq.boxMargin+uq.boxTextMargin,uq.boxMargin,e=>dq.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:t=dq.endLoop(),await lq.drawLoop(f,t,`alt`,uq,e),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos()),dq.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:TK(w,e,uq.boxMargin,uq.boxMargin+uq.boxTextMargin,e=>dq.newLoop(e)),dq.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:TK(w,e,uq.boxMargin+uq.boxTextMargin,uq.boxMargin,e=>dq.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:t=dq.endLoop(),await lq.drawLoop(f,t,`par`,uq,e),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos()),dq.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:E=e.message.start||E,D=e.message.step||D,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:TK(w,e,uq.boxMargin,uq.boxMargin+uq.boxTextMargin,e=>dq.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:TK(w,e,uq.boxMargin+uq.boxTextMargin,uq.boxMargin,e=>dq.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:t=dq.endLoop(),await lq.drawLoop(f,t,`critical`,uq,e),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos()),dq.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:TK(w,e,uq.boxMargin,uq.boxMargin+uq.boxTextMargin,e=>dq.newLoop(e));break;case r.db.LINETYPE.BREAK_END:t=dq.endLoop(),await lq.drawLoop(f,t,`break`,uq,e),dq.bumpVerticalPos(t.stopy-dq.getVerticalPos()),dq.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=dq.getVerticalPos(),i.sequenceIndex=E,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await wK(f,i);qbt(e,i,t,A,p,m,h),O.push({messageModel:i,lineStartY:t,msg:e}),dq.models.addMessage(i)}catch(e){P.error(`error while drawing message`,e)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(E=Math.round((E+D)*100)/100),A++}P.debug(`createdActors`,m),P.debug(`destroyedActors`,h),await _q(f,p,_,!1,t,r,C);for(let e of O)await xxt(f,e.messageModel,e.lineStartY,r,e.msg,t);uq.mirrorActors&&await _q(f,p,_,!0,t,r,C),k.forEach(e=>lq.drawBackgroundRect(f,e)),uxt(f,p,_,uq);for(let e of dq.models.boxes){e.height=dq.getVerticalPos()-e.y,dq.insert(e.x,e.y,e.x+e.width,e.height);let t=uq.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,lq.drawBox(f,e,uq)}b&&dq.bumpVerticalPos(uq.boxMargin);let j=Cxt(f,p,_,d),{bounds:M}=dq.getBounds();M.startx===void 0&&(M.startx=0),M.starty===void 0&&(M.starty=0),M.stopx===void 0&&(M.stopx=0),M.stopy===void 0&&(M.stopy=0);let ee=M.stopy-M.starty;ee2,p=N(e=>l?-e:e,`adjustValue`);e.from===e.to?d=u:(e.activate&&!f&&(d+=p(uq.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=p(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(u-=p(3)));let m=[i,a,o,s],h=Math.abs(u-d);e.wrap&&e.message&&(e.message=Wm.wrapLabel(e.message,cs.getMax(h+2*uq.wrapPadding,uq.width),mq(uq)));let g=Wm.calculateTextDimensions(e.message,mq(uq));return{width:cs.getMax(e.wrap?0:g.width+2*uq.wrapPadding,h+2*uq.wrapPadding,uq.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},`buildMessageModel`),Sq=N(async function(e,t,n,r){let i={},a=[],o,s,l;for(let n of e){switch(n.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:n.message&&(o=a.pop(),i[o.id]=o,i[n.id]=o,a.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=vq(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*uq.activationWidth/2,a={startx:i,stopx:i+uq.activationWidth,actor:n.from,enabled:!0};dq.activations.push(a)}break;case r.db.LINETYPE.ACTIVE_END:{let e=dq.activations.map(e=>e.actor).lastIndexOf(n.from);dq.activations.splice(e,1).splice(0,1)}}n.placement===void 0?(l=xq(n,t,r),n.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(e=>{if(o=e,l.startx===l.stopx){let e=t.get(n.from),r=t.get(n.to);o.from=cs.getMin(e.x-l.width/2,e.x-e.width/2,o.from),o.to=cs.getMax(r.x+l.width/2,r.x+e.width/2,o.to),o.width=cs.getMax(o.width,Math.abs(o.to-o.from))-uq.labelBoxWidth}else o.from=cs.getMin(l.startx,o.from),o.to=cs.getMax(l.stopx,o.to),o.width=cs.getMax(o.width,l.width)-uq.labelBoxWidth})):(s=await Oxt(n,t,r),n.noteModel=s,a.forEach(e=>{o=e,o.from=cs.getMin(o.from,s.startx),o.to=cs.getMax(o.to,s.startx+s.width),o.width=cs.getMax(o.width,Math.abs(o.from-o.to))-uq.labelBoxWidth}))}return dq.activations=[],P.debug(`Loop type widths:`,i),i},`calculateLoopBounds`),Nxt={parser:Zbt,get db(){return new ext},renderer:{bounds:dq,drawActors:_q,drawActorsPopup:Cxt,setConf:wxt,draw:Ext},styles:txt,init:N(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,xs({sequence:{wrap:e.wrap}}))},`init`)}})),Fxt=l({diagram:()=>kq}),Cq,Ixt,wq,Tq,Eq,Lxt,Dq,Rxt,Oq,kq,zxt=o((()=>{KN(),JN(),XN(),UM(),dN(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),Dp(),Wr(),Cq=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],ee=[1,62],te=[1,63],ne=[1,64],re=[1,8,9,41],ie=[1,77],ae=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],oe=[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],se=[13,60,86,100,102,103],ce=[13,60,73,74,86,100,102,103],le=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],de=[1,121],fe=[1,117],pe=[1,113],me=[1,119],he=[1,114],ge=[1,115],_e=[1,116],ve=[1,118],ye=[1,120],be=[22,50,60,61,82,86,87,88,89,90],xe=[1,128],Se=[12,39],Ce=[1,8,9,39,41,44,46],we=[1,8,9,22],Te=[1,153],Ee=[1,8,9,61],De=[1,8,9,22,50,60,61,82,86,87,88,89,90],Oe={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`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:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:ee,73:te,74:ne}),{39:[1,65]},e(re,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:ie,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(ae,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(ae,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(oe,[2,133]),e(oe,[2,134]),e(oe,[2,135]),e(oe,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[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:t,35:n,37:r,42:i,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{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:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:ee,73:te,74:ne},e(O,[2,64]),{67:93,73:te,74:ne},e(se,[2,83],{66:94,68:k,69:A,70:j,71:M,72:ee}),e(ce,[2,84]),e(ce,[2,85]),e(ce,[2,86]),e(ce,[2,87]),e(ce,[2,88]),e(le,[2,89]),e(le,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:ue},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:de,50:fe,59:110,60:pe,82:me,84:111,85:112,86:he,87:ge,88:_e,89:ve,90:ye},{60:[1,122]},{13:ie,55:123},e(re,[2,72]),e(re,[2,138]),{22:de,50:fe,59:124,60:pe,61:[1,125],82:me,84:111,85:112,86:he,87:ge,88:_e,89:ve,90:ye},e(be,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},e(ae,[2,16]),e(ae,[2,17]),e(ae,[2,18]),{11:127,12:xe,39:[2,36]},e(Se,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),e(Se,[2,10]),e(Ce,[2,55],{11:131,12:xe}),e(D,[2,7]),{9:[1,132]},e(we,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},e(se,[2,82],{66:136,68:k,69:A,70:j,71:M,72:ee}),e(se,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(re,[2,48],{39:[1,142]}),{41:[1,143]},e(re,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:Te}),e(Ee,[2,107],{85:154,22:de,50:fe,60:pe,82:me,86:he,87:ge,88:_e,89:ve,90:ye}),e(De,[2,109]),e(De,[2,111]),e(De,[2,112]),e(De,[2,113]),e(De,[2,114]),e(De,[2,115]),e(De,[2,116]),e(De,[2,117]),e(De,[2,118]),e(De,[2,119]),e(O,[2,106]),e(re,[2,71]),e(O,[2,73],{61:Te}),{60:[1,155]},e(ae,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},e(Se,[2,12]),e(Ce,[2,56]),{1:[2,4]},e(we,[2,69]),e(we,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},e(se,[2,80]),e(re,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:u,56:d},{45:163,51:ue},e(re,[2,49]),{41:[2,62]},e(re,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:de,50:fe,60:pe,82:me,84:169,85:112,86:he,87:ge,88:_e,89:ve,90:ye},e(De,[2,110]),e(be,[2,75]),{14:[1,170]},e(Se,[2,11]),e(we,[2,70]),e(re,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(Ee,[2,108],{85:154,22:de,50:fe,60:pe,82:me,86:he,87:ge,88:_e,89:ve,90:ye}),e(Ce,[2,8]),e(re,[2,51]),{41:[1,175]},e(re,[2,54]),e(O,[2,104]),e(re,[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:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Oe.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){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}}}})();function ke(){this.yy={}}return N(ke,`Parser`),ke.prototype=Oe,Oe.Parser=ke,new ke})(),gq.parser=gq,_q=gq,Rxt=[`#`,`+`,`~`,`-`,``],vq=class{static{N(this,`ClassMember`)}constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=ls(e,As());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+us(this.id);this.memberType===`method`&&(e+=`(${us(this.parameters.trim())})`,this.returnType&&(e+=` : `+us(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(Rxt.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);Rxt.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${us(this.id)}${this.memberType===`method`?`(${us(this.parameters)})${this.returnType?` : `+us(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``}}},yq=`classId-`,bq=0,xq=N(e=>gs.sanitizeText(e,As()),`sanitizeText`),Sq=class e{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=N(e=>{let t=X8e();Qc(e).select(`svg`).selectAll(`g`).filter(function(){return Qc(this).attr(`title`)!==null}).on(`mouseover`,e=>{let n=Qc(e.currentTarget),r=n.attr(`title`);if(!r)return;let i=e.currentTarget.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.html(Kr.sanitize(r)).style(`left`,`${window.scrollX+i.left+i.width/2}px`).style(`top`,`${window.scrollY+i.bottom+4}px`),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Qc(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=Cs,this.getAccTitle=ws,this.setAccDescription=Ts,this.getAccDescription=Es,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,this.getConfig=N(()=>As().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)}static{N(this,`ClassDB`)}splitClassNameAndType(e){let t=gs.sanitizeText(e,As()),n=``,r=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);r=xq(e[0]),n=xq(e[1])}return{className:r,type:n}}setClassLabel(e,t){let n=gs.sanitizeText(e,As());t&&=xq(t);let{className:r}=this.splitClassNameAndType(n);this.classes.get(r).label=t,this.classes.get(r).text=`${t}${this.classes.get(r).type?`<${this.classes.get(r).type}>`:``}`}addClass(e){let t=gs.sanitizeText(e,As()),{className:n,type:r}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let i=gs.sanitizeText(n,As());this.classes.set(i,{id:i,type:r,label:i,text:`${i}${r?`<${r}>`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:yq+i+`-`+bq}),bq++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=gs.sanitizeText(e,As());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}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`,Ss()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){P.debug(`Adding relation: `+JSON.stringify(e));let t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!t.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&&!t.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=gs.sanitizeText(e.relationTitle1.trim(),As()),e.relationTitle2=gs.sanitizeText(e.relationTitle2.trim(),As()),this.relations.push(e)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(xq(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new vq(e,`method`)):e&&r.members.push(new vq(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),xq(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=yq+n),n=this.splitClassNameAndType(n).className;let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{if(t!==void 0){let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);r&&(r.tooltip=xq(t))}})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let r=As();e.split(`,`).forEach(e=>{let i=e;/\d/.exec(e[0])&&(i=yq+i),i=this.splitClassNameAndType(i).className;let a=this.classes.get(i);a&&(a.link=Hm.formatUrl(t,r),a.linkTarget=r.securityLevel===`sandbox`?`_top`:typeof n==`string`?xq(n):`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n);let r=this.splitClassNameAndType(e).className,i=this.classes.get(r);i&&(i.haveCallback=!0)}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let r=gs.sanitizeText(e,As());if(As().securityLevel!==`loose`||t===void 0)return;let i=this.splitClassNameAndType(r).className;if(this.classes.has(i)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let n=this.lookUpDomId(i),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{Hm.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(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,t){let n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){let t=e.split(`.`),n=Array(t.length);n[0]=t[0];for(let e=1;e0?a[e-1]:void 0,o=e===a.length-1,s=o&&n?n:i[e];this.namespaces.has(t)?o&&(this.namespaces.get(t).explicit=!0):this.namespaces.set(t,this.createNamespaceNode(t,s,r,o)),r&&this.linkParentChild(r,t)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(t&&n)for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}resolveExplicitAncestor(e){let t=e;for(;t;){let e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){let e=[],t=[],n=As(),r=n.class?.hierarchicalNamespaces??!0;for(let t of this.namespaces.values()){if(!r&&!t.explicit)continue;let i={id:t.id,label:r?t.label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look,parentId:r?t.parent:void 0};e.push(i)}let i=0;for(let t of this.classes.values()){let a=r?t.parent:this.resolveExplicitAncestor(t.parent),o={...t,type:void 0,isGroup:!1,parentId:a,look:n.look,colorIndex:i++};e.push(o)}for(let i of this.notes.values()){let a=r?i.parent:this.resolveExplicitAncestor(i.parent),o={id:i.id,label:i.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:a,labelType:`markdown`};e.push(o);let s=this.classes.get(i.class)?.id;if(s){let e={id:`edgeNote${i.index}`,start:i.id,end:s,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let a=0;for(let e of this.relations){a++;let r={id:Wm(e.id1,e.id2,{prefix:`id`,counter:a}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},Cq=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=Mh(e.look),a=Ah(n),o=``;for(let t=0;t0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){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}}}})();function ke(){this.yy={}}return N(ke,`Parser`),ke.prototype=Oe,Oe.Parser=ke,new ke})(),Cq.parser=Cq,Ixt=Cq,wq=[`#`,`+`,`~`,`-`,``],Tq=class{static{N(this,`ClassMember`)}constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=ns(e,bs());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+rs(this.id);this.memberType===`method`&&(e+=`(${rs(this.parameters.trim())})`,this.returnType&&(e+=` : `+rs(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(wq.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);wq.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${rs(this.id)}${this.memberType===`method`?`(${rs(this.parameters)})${this.returnType?` : `+rs(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``}}},Eq=`classId-`,Lxt=0,Dq=N(e=>cs.sanitizeText(e,bs()),`sanitizeText`),Rxt=class e{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=N(e=>{let t=c5e();Bc(e).select(`svg`).selectAll(`g`).filter(function(){return Bc(this).attr(`title`)!==null}).on(`mouseover`,e=>{let n=Bc(e.currentTarget),r=n.attr(`title`);if(!r)return;let i=e.currentTarget.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.html(Ur.sanitize(r)).style(`left`,`${window.scrollX+i.left+i.width/2}px`).style(`top`,`${window.scrollY+i.bottom+4}px`),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Bc(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=ps,this.getAccTitle=ms,this.setAccDescription=hs,this.getAccDescription=gs,this.setDiagramTitle=_s,this.getDiagramTitle=vs,this.getConfig=N(()=>bs().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)}static{N(this,`ClassDB`)}splitClassNameAndType(e){let t=cs.sanitizeText(e,bs()),n=``,r=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);r=Dq(e[0]),n=Dq(e[1])}return{className:r,type:n}}setClassLabel(e,t){let n=cs.sanitizeText(e,bs());t&&=Dq(t);let{className:r}=this.splitClassNameAndType(n);this.classes.get(r).label=t,this.classes.get(r).text=`${t}${this.classes.get(r).type?`<${this.classes.get(r).type}>`:``}`}addClass(e){let t=cs.sanitizeText(e,bs()),{className:n,type:r}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let i=cs.sanitizeText(n,bs());this.classes.set(i,{id:i,type:r,label:i,text:`${i}${r?`<${r}>`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:Eq+i+`-`+Lxt}),Lxt++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=cs.sanitizeText(e,bs());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}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`,fs()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){P.debug(`Adding relation: `+JSON.stringify(e));let t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!t.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&&!t.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=cs.sanitizeText(e.relationTitle1.trim(),bs()),e.relationTitle2=cs.sanitizeText(e.relationTitle2.trim(),bs()),this.relations.push(e)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(Dq(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new Tq(e,`method`)):e&&r.members.push(new Tq(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),Dq(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=Eq+n),n=this.splitClassNameAndType(n).className;let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{if(t!==void 0){let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);r&&(r.tooltip=Dq(t))}})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let r=bs();e.split(`,`).forEach(e=>{let i=e;/\d/.exec(e[0])&&(i=Eq+i),i=this.splitClassNameAndType(i).className;let a=this.classes.get(i);a&&(a.link=Wm.formatUrl(t,r),a.linkTarget=r.securityLevel===`sandbox`?`_top`:typeof n==`string`?Dq(n):`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n);let r=this.splitClassNameAndType(e).className,i=this.classes.get(r);i&&(i.haveCallback=!0)}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let r=cs.sanitizeText(e,bs());if(bs().securityLevel!==`loose`||t===void 0)return;let i=this.splitClassNameAndType(r).className;if(this.classes.has(i)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let n=this.lookUpDomId(i),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{Wm.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(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,t){let n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){let t=e.split(`.`),n=Array(t.length);n[0]=t[0];for(let e=1;e0?a[e-1]:void 0,o=e===a.length-1,s=o&&n?n:i[e];this.namespaces.has(t)?o&&(this.namespaces.get(t).explicit=!0):this.namespaces.set(t,this.createNamespaceNode(t,s,r,o)),r&&this.linkParentChild(r,t)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(t&&n)for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}resolveExplicitAncestor(e){let t=e;for(;t;){let e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){let e=[],t=[],n=bs(),r=n.class?.hierarchicalNamespaces??!0;for(let t of this.namespaces.values()){if(!r&&!t.explicit)continue;let i={id:t.id,label:r?t.label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look,parentId:r?t.parent:void 0};e.push(i)}let i=0;for(let t of this.classes.values()){let a=r?t.parent:this.resolveExplicitAncestor(t.parent),o={...t,type:void 0,isGroup:!1,parentId:a,look:n.look,colorIndex:i++};e.push(o)}for(let i of this.notes.values()){let a=r?i.parent:this.resolveExplicitAncestor(i.parent),o={id:i.id,label:i.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:a,labelType:`markdown`};e.push(o);let s=this.classes.get(i.class)?.id;if(s){let e={id:`edgeNote${i.index}`,start:i.id,end:s,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let a=0;for(let e of this.relations){a++;let r={id:Km(e.id1,e.id2,{prefix:`id`,counter:a}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},Oq=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Uh(e.look),a=Vh(n),o=``;for(let t=0;t{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`)},styles:N(e=>`${Cq(e)} + `}return o},`genColor`),kq={parser:Ixt,get db(){return new Rxt},renderer:{getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing class diagram (v3)`,t);let{securityLevel:i,state:a,layout:o}=bs();r.db.setDiagramId(t);let s=r.db.getData(),l=qN(t,i);s.type=r.type,s.layoutAlgorithm=HM(o),s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`aggregation`,`extension`,`composition`,`dependency`,`lollipop`],s.diagramId=t,await VM(s,l),Wm.insertTitle(l,`classDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),YN(l,8,`classDiagram`,a?.useMaxWidth??!0)},`draw`),getDir:N((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`)},styles:N(e=>`${Oq(e)} g.classGroup text { fill: ${e.nodeBorder||e.classText}; stroke: none; @@ -2562,13 +2564,13 @@ g.classGroup line { } text-align: center; } - ${JN()} -`,`getStyles`),init:N(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),Tq=l({diagram:()=>vSt});function Eq(e=``,t=0,n=``,r=aSt){return`${iSt}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}function Dq(e,t,n){if(!t.id||t.id===``||t.id===``)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}function Oq(e){return e?.classes?.join(` `)??``}function kq(e){return e?.styles??[]}var Bxt,Vxt,Hxt,Aq,jq,Mq,Nq,Pq,Uxt,Fq,Wxt,Iq,Lq,Rq,Gxt,Kxt,qxt,Jxt,zq,Bq,Yxt,Xxt,Vq,Zxt,Qxt,$xt,Hq,eSt,tSt,Uq,Wq,nSt,Gq,rSt,Kq,qq,iSt,aSt,oSt,sSt,Jq,Yq,cSt,Xq,lSt,Zq,uSt,Qq,dSt,fSt,pSt,X,$q,mSt,hSt,gSt,_St,vSt,ySt=o((()=>{ZN(),$N(),YM(),vN(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),qr(),Bxt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[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],j=[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],M=[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],ee={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var l=a[s],u=a[s-2].trim();if(a[s].match(`:`)){var d=a[s].split(`:`);l=d[0],u=[u,d[1]]}this.$={stmt:`state`,id:l,type:`default`,description:u};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[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]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + ${GN()} +`,`getStyles`),init:N(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),Bxt=l({diagram:()=>CSt});function Vxt(e=``,t=0,n=``,r=Kq){return`${dSt}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}function Aq(e,t,n){if(!t.id||t.id===``||t.id===``)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}function jq(e){return e?.classes?.join(` `)??``}function Mq(e){return e?.styles??[]}var Hxt,Uxt,Wxt,Gxt,Nq,Pq,Fq,Iq,Kxt,qxt,Jxt,Lq,Yxt,Rq,Xxt,Zxt,Qxt,zq,$xt,eSt,tSt,nSt,rSt,iSt,Bq,Vq,Hq,Uq,Wq,aSt,oSt,sSt,cSt,lSt,uSt,Gq,dSt,Kq,qq,fSt,Jq,Yq,pSt,Xq,mSt,hSt,X,Zq,gSt,_St,vSt,Qq,ySt,bSt,$q,xSt,SSt,CSt,wSt=o((()=>{JN(),XN(),UM(),dN(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),Dp(),Wr(),Hxt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[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],j=[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],M=[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],ee={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var l=a[s],u=a[s-2].trim();if(a[s].match(`:`)){var d=a[s].split(`:`);l=d[0],u=[u,d[1]]}this.$={stmt:`state`,id:l,type:`default`,description:u};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[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]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};ee.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){function i(){let n=t.yytext.indexOf(`%%`);if(n===0)return!1;if(n>0){let r=t.yytext.slice(0,n),i=t.yytext.slice(n);i&&e.lexer.unput(i),t.yytext=r}return!0}switch(N(i,`processId`),n){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(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),t.yytext=t.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 i()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+t.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return i()?(this.popState(),`ID`):void 0;case 66:return i()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 68:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return t.yytext=t.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79: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,/^(?:\w+\s+\w+.*?\{)/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,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],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,55],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,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function te(){this.yy={}}return N(te,`Parser`),te.prototype=ee,ee.Parser=te,new te})(),Bxt.parser=Bxt,Vxt=Bxt,Hxt=`TB`,Aq=`TB`,jq=`dir`,Mq=`state`,Nq=`root`,Pq=`relation`,Uxt=`classDef`,Fq=`style`,Wxt=`applyClass`,Iq=`default`,Lq=`divider`,Rq=`fill:none`,Gxt=`fill: #333`,Kxt=`c`,qxt=`markdown`,Jxt=`normal`,zq=`rect`,Bq=`rectWithTitle`,Yxt=`stateStart`,Xxt=`stateEnd`,Vq=`divider`,Zxt=`roundedWithTitle`,Qxt=`note`,$xt=`noteGroup`,Hq=`statediagram`,eSt=`${Hq}-state`,tSt=`transition`,Uq=`note`,Wq=`${tSt} note-edge`,nSt=`${Hq}-${Uq}`,Gq=`${Hq}-cluster`,rSt=`${Hq}-cluster-alt`,Kq=`parent`,qq=`note`,iSt=`state`,aSt=`----`,oSt=`${aSt}${qq}`,sSt=`${aSt}${Kq}`,Jq=new Map,Yq=0,cSt=0,Xq=new Map,lSt=N((e,t,n,r)=>{if(e===Vq&&n?.id!==void 0&&Xq.has(n.id)){let e=Xq.get(n.id);return Xq.set(t,e),e}let i=cSt++,a=r?void 0:i;return Xq.set(t,a),a},`colorSlotFor`),N(Eq,`stateDomId`),Zq=N((e,t,n,r,i,a,o,s)=>{P.trace(`items`,t),t.forEach(t=>{switch(t.stmt){case Mq:Qq(e,t,n,r,i,a,o,s);break;case Iq:Qq(e,t,n,r,i,a,o,s);break;case Pq:{Qq(e,t.state1,n,r,i,a,o,s),Qq(e,t.state2,n,r,i,a,o,s);let l=o===`neo`,u={id:`edge`+Yq,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:l?`arrow_barb_neo`:`arrow_barb`,style:Rq,labelStyle:``,label:gs.sanitizeText(t.description??``,As()),arrowheadStyle:Gxt,labelpos:Kxt,labelType:qxt,thickness:Jxt,classes:tSt,look:o};i.push(u),Yq++}}})},`setupDoc`),uSt=N((e,t=Aq)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),N(Dq,`insertOrUpdateNode`),N(Oq,`getClassesFromDbInfo`),N(kq,`getStylesFromDbInfo`),Qq=N((e,t,n,r,i,a,o,s)=>{let l=t.id,u=n.get(l),d=Oq(u),f=kq(u),p=As(),m=d.trim()!==``||f.length>0;if(P.info(`dataFetcher parsedItem`,t,u,f),l!==`root`){let n=zq;t.start===!0?n=Yxt:t.start===!1&&(n=Xxt),t.type!==Iq&&(n=t.type),Jq.get(l)||Jq.set(l,{id:l,shape:n,description:gs.sanitizeText(l,p),cssClasses:`${d} ${eSt}`,cssStyles:f});let u=Jq.get(l);t.description&&(Array.isArray(u.description)?(u.shape=Bq,u.description.push(t.description)):u.description?.length&&u.description.length>0?(u.shape=Bq,u.description=u.description===l?[t.description]:[u.description,t.description]):(u.shape=zq,u.description=t.description),u.description=gs.sanitizeTextOrArray(u.description,p)),u.description?.length===1&&u.shape===Bq&&(u.shape=u.type===`group`?Zxt:zq),!u.type&&t.doc&&(P.info(`Setting cluster for XCX`,l,uSt(t)),u.type=`group`,u.isGroup=!0,u.dir=uSt(t),u.shape=t.type===Lq?Vq:Zxt,u.colorIndex=lSt(u.shape,l,e,m),u.cssClasses=`${u.cssClasses} ${Gq} ${a?rSt:``}`);let h={labelStyle:``,shape:u.shape,label:u.description,cssClasses:u.cssClasses,cssCompiledStyles:[],cssStyles:u.cssStyles,id:l,dir:u.dir,domId:Eq(l,Yq),type:u.type,isGroup:u.type===`group`,colorIndex:u.colorIndex,padding:8,rx:10,ry:10,look:o,labelType:`markdown`};if(h.shape===Vq&&(h.label=``),e&&e.id!==`root`&&(P.trace(`Setting node `,l,` to be child of its parent `,e.id),h.parentId=e.id),h.centerLabel=!0,t.note){let e={labelStyle:``,shape:Qxt,label:t.note.text,labelType:`markdown`,cssClasses:nSt,cssStyles:[],cssCompiledStyles:[],id:l+oSt+`-`+Yq,domId:Eq(l,Yq,qq),type:`node`,isGroup:!1,padding:p.flowchart?.padding,look:o,position:t.note.position},n=l+sSt,a={labelStyle:``,shape:$xt,label:t.note.text,cssClasses:u.cssClasses,cssStyles:[],id:l+sSt,domId:Eq(l,Yq,Kq),type:`group`,isGroup:!0,padding:16,look:o,position:t.note.position};Yq++,a.id=n,e.parentId=n,Dq(r,a,s),Dq(r,e,s),Dq(r,h,s);let d=l,f=e.id;t.note.position===`left of`&&(d=e.id,f=l),i.push({id:d+`-`+f,start:d,end:f,arrowhead:`none`,arrowTypeEnd:``,style:Rq,labelStyle:``,classes:Wq,pattern:`dashed`,arrowheadStyle:Gxt,labelpos:Kxt,labelType:qxt,thickness:Jxt,look:o})}else Dq(r,h,s)}t.doc&&(P.trace(`Adding nodes children `),Zq(t,t.doc,n,r,i,!a,o,s))},`dataFetcher`),dSt=N(()=>{Jq.clear(),Yq=0,cSt=0,Xq.clear()},`reset`),fSt=N((e,t=Aq)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),pSt={getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,state:a,layout:o}=As();r.db.extract(r.db.getRootDocV2());let s=r.db.getData(),l=XN(t,i);s.type=r.type,s.layoutAlgorithm=JM(o),s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=As().look===`neo`?[`barbNeo`]:[`barb`],s.diagramId=t,await KM(s,l);try{(typeof r.db.getLinks==`function`?r.db.getLinks():new Map).forEach((e,t)=>{let n=typeof t==`string`?t:typeof t?.id==`string`?t.id:``,r=s.nodes.find(e=>e.id===n);if(!n){P.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(t));return}let i=l.node()?.querySelectorAll(`g.node, g.rough-node`),a;if(i?.forEach(e=>{let t=e.textContent?.trim();(e.id===r?.domId||t===n)&&(a=e)}),!a){P.warn(`⚠️ Could not find node matching text:`,n);return}let o=a.parentNode;if(!o){P.warn(`⚠️ Node has no parent, cannot wrap:`,n);return}let u=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),d=e.url.replace(/^"+|"+$/g,``);if(u.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,d),u.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);u.setAttribute(`title`,t),a.setAttribute(`title`,t)}o.replaceChild(u,a),u.appendChild(a),P.info(`🔗 Wrapped node in tag for:`,n,e.url)})}catch(e){P.error(`❌ Error injecting clickable links:`,e)}Hm.insertTitle(l,`statediagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),QN(l,8,Hq,a?.useMaxWidth??!0)},`draw`),getDir:fSt},X={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},$q=N(()=>new Map,`newClassesList`),mSt=N(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),hSt=N(e=>JSON.parse(JSON.stringify(e)),`clone`),gSt=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=$q(),this.documents={root:mSt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=ws,this.setAccTitle=Cs,this.getAccDescription=Es,this.setAccDescription=Ts,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,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),this.bindFunctions=this.bindFunctions.bind(this)}static{N(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case Mq:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case Pq:this.addRelation(t.state1,t.state2,t.description);break;case Uxt:this.addStyleClass(t.id.trim(),t.classes);break;case Fq:this.handleStyleDef(t);break;case Wxt:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=As();dSt(),Qq(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){P.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===Pq){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===Mq&&(t.id===X.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==Nq&&t.stmt!==Mq||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===Lq){let t=hSt(e);t.doc=hSt(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:Mq,id:uOe(),type:`divider`,doc:hSt(i)};r.push(hSt(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:Nq,stmt:Nq},{id:Nq,stmt:Nq,doc:this.rootDoc},!0),{id:Nq,doc:this.rootDoc}}addState(e,t=Iq,n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0){let l=e?.trim();if(!this.currentDocument.states.has(l))P.info(`Adding state `,l,r),this.currentDocument.states.set(l,{stmt:Mq,id:l,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.doc||=n,e.type||=t}if(r&&(P.info(`Setting state description`,l,r),(Array.isArray(r)?r:[r]).forEach(e=>this.addDescription(l,e.trim()))),i){let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.note=i,e.note.text=gs.sanitizeText(e.note.text,As())}a&&(P.info(`Setting state classes`,l,a),(Array.isArray(a)?a:[a]).forEach(e=>this.setCssClass(l,e.trim()))),o&&(P.info(`Setting state styles`,l,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setStyle(l,e.trim()))),s&&(P.info(`Setting state styles`,l,o),(Array.isArray(s)?s:[s]).forEach(e=>this.setTextStyle(l,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:mSt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=$q(),e||(this.links=new Map,Ss())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){P.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,n){this.links.set(e,{url:t,tooltip:n}),P.warn(`Adding link`,e,t,n)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===X.START_NODE?(this.startEndCount++,`${X.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=Iq){return e===X.START_NODE?X.START_TYPE:t}endIdIfNeeded(e=``){return e===X.END_NODE?(this.startEndCount++,`${X.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=Iq){return e===X.END_NODE?X.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:gs.sanitizeText(n,As())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?gs.sanitizeText(n,As()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(gs.sanitizeText(r,As()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(X.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(X.COLOR_KEYWORD).exec(e)){let e=t.replace(X.FILL_KEYWORD,X.BG_FILL).replace(X.COLOR_KEYWORD,X.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let t=X8e();Qc(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let n=Qc(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Kr.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Qc(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===jq)}getDirection(){return this.getDirectionStatement()?.value??Hxt}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:jq,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=As();for(let t of this.nodes)t.wrappingWidth??=e.state?.wrappingWidth,t.isGroup||(t.minWidth??=e.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:fSt(this.getRootDocV2())}}getConfig(){return As().state}},_St=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=Mh(e.look),a=Ah(n),o=``;for(let e=0;e0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){function i(){let n=t.yytext.indexOf(`%%`);if(n===0)return!1;if(n>0){let r=t.yytext.slice(0,n),i=t.yytext.slice(n);i&&e.lexer.unput(i),t.yytext=r}return!0}switch(N(i,`processId`),n){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(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),t.yytext=t.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 i()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+t.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return i()?(this.popState(),`ID`):void 0;case 66:return i()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 68:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return t.yytext=t.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79: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,/^(?:\w+\s+\w+.*?\{)/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,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],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,55],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,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function te(){this.yy={}}return N(te,`Parser`),te.prototype=ee,ee.Parser=te,new te})(),Hxt.parser=Hxt,Uxt=Hxt,Wxt=`TB`,Gxt=`TB`,Nq=`dir`,Pq=`state`,Fq=`root`,Iq=`relation`,Kxt=`classDef`,qxt=`style`,Jxt=`applyClass`,Lq=`default`,Yxt=`divider`,Rq=`fill:none`,Xxt=`fill: #333`,Zxt=`c`,Qxt=`markdown`,zq=`normal`,$xt=`rect`,eSt=`rectWithTitle`,tSt=`stateStart`,nSt=`stateEnd`,rSt=`divider`,iSt=`roundedWithTitle`,Bq=`note`,Vq=`noteGroup`,Hq=`statediagram`,Uq=`${Hq}-state`,Wq=`transition`,aSt=`note`,oSt=`${Wq} note-edge`,sSt=`${Hq}-${aSt}`,cSt=`${Hq}-cluster`,lSt=`${Hq}-cluster-alt`,uSt=`parent`,Gq=`note`,dSt=`state`,Kq=`----`,qq=`${Kq}${Gq}`,fSt=`${Kq}${uSt}`,Jq=new Map,Yq=0,pSt=0,Xq=new Map,mSt=N((e,t,n,r)=>{if(e===rSt&&n?.id!==void 0&&Xq.has(n.id)){let e=Xq.get(n.id);return Xq.set(t,e),e}let i=pSt++,a=r?void 0:i;return Xq.set(t,a),a},`colorSlotFor`),N(Vxt,`stateDomId`),hSt=N((e,t,n,r,i,a,o,s)=>{P.trace(`items`,t),t.forEach(t=>{switch(t.stmt){case Pq:Zq(e,t,n,r,i,a,o,s);break;case Lq:Zq(e,t,n,r,i,a,o,s);break;case Iq:{Zq(e,t.state1,n,r,i,a,o,s),Zq(e,t.state2,n,r,i,a,o,s);let l=o===`neo`,u={id:`edge`+Yq,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:l?`arrow_barb_neo`:`arrow_barb`,style:Rq,labelStyle:``,label:cs.sanitizeText(t.description??``,bs()),arrowheadStyle:Xxt,labelpos:Zxt,labelType:Qxt,thickness:zq,classes:Wq,look:o};i.push(u),Yq++}}})},`setupDoc`),X=N((e,t=Gxt)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),N(Aq,`insertOrUpdateNode`),N(jq,`getClassesFromDbInfo`),N(Mq,`getStylesFromDbInfo`),Zq=N((e,t,n,r,i,a,o,s)=>{let l=t.id,u=n.get(l),d=jq(u),f=Mq(u),p=bs(),m=d.trim()!==``||f.length>0;if(P.info(`dataFetcher parsedItem`,t,u,f),l!==`root`){let n=$xt;t.start===!0?n=tSt:t.start===!1&&(n=nSt),t.type!==Lq&&(n=t.type),Jq.get(l)||Jq.set(l,{id:l,shape:n,description:cs.sanitizeText(l,p),cssClasses:`${d} ${Uq}`,cssStyles:f});let u=Jq.get(l);t.description&&(Array.isArray(u.description)?(u.shape=eSt,u.description.push(t.description)):u.description?.length&&u.description.length>0?(u.shape=eSt,u.description=u.description===l?[t.description]:[u.description,t.description]):(u.shape=$xt,u.description=t.description),u.description=cs.sanitizeTextOrArray(u.description,p)),u.description?.length===1&&u.shape===eSt&&(u.shape=u.type===`group`?iSt:$xt),!u.type&&t.doc&&(P.info(`Setting cluster for XCX`,l,X(t)),u.type=`group`,u.isGroup=!0,u.dir=X(t),u.shape=t.type===Yxt?rSt:iSt,u.colorIndex=mSt(u.shape,l,e,m),u.cssClasses=`${u.cssClasses} ${cSt} ${a?lSt:``}`);let h={labelStyle:``,shape:u.shape,label:u.description,cssClasses:u.cssClasses,cssCompiledStyles:[],cssStyles:u.cssStyles,id:l,dir:u.dir,domId:Vxt(l,Yq),type:u.type,isGroup:u.type===`group`,colorIndex:u.colorIndex,padding:8,rx:10,ry:10,look:o,labelType:`markdown`};if(h.shape===rSt&&(h.label=``),e&&e.id!==`root`&&(P.trace(`Setting node `,l,` to be child of its parent `,e.id),h.parentId=e.id),h.centerLabel=!0,t.note){let e={labelStyle:``,shape:Bq,label:t.note.text,labelType:`markdown`,cssClasses:sSt,cssStyles:[],cssCompiledStyles:[],id:l+qq+`-`+Yq,domId:Vxt(l,Yq,Gq),type:`node`,isGroup:!1,padding:p.flowchart?.padding,look:o,position:t.note.position},n=l+fSt,a={labelStyle:``,shape:Vq,label:t.note.text,cssClasses:u.cssClasses,cssStyles:[],id:l+fSt,domId:Vxt(l,Yq,uSt),type:`group`,isGroup:!0,padding:16,look:o,position:t.note.position};Yq++,a.id=n,e.parentId=n,Aq(r,a,s),Aq(r,e,s),Aq(r,h,s);let d=l,f=e.id;t.note.position===`left of`&&(d=e.id,f=l),i.push({id:d+`-`+f,start:d,end:f,arrowhead:`none`,arrowTypeEnd:``,style:Rq,labelStyle:``,classes:oSt,pattern:`dashed`,arrowheadStyle:Xxt,labelpos:Zxt,labelType:Qxt,thickness:zq,look:o})}else Aq(r,h,s)}t.doc&&(P.trace(`Adding nodes children `),hSt(t,t.doc,n,r,i,!a,o,s))},`dataFetcher`),gSt=N(()=>{Jq.clear(),Yq=0,pSt=0,Xq.clear()},`reset`),_St=N((e,t=Gxt)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),vSt={getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`),draw:N(async function(e,t,n,r){P.info(`REF0:`),P.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,state:a,layout:o}=bs();r.db.extract(r.db.getRootDocV2());let s=r.db.getData(),l=qN(t,i);s.type=r.type,s.layoutAlgorithm=HM(o),s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=bs().look===`neo`?[`barbNeo`]:[`barb`],s.diagramId=t,await VM(s,l);try{(typeof r.db.getLinks==`function`?r.db.getLinks():new Map).forEach((e,t)=>{let n=typeof t==`string`?t:typeof t?.id==`string`?t.id:``,r=s.nodes.find(e=>e.id===n);if(!n){P.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(t));return}let i=l.node()?.querySelectorAll(`g.node, g.rough-node`),a;if(i?.forEach(e=>{let t=e.textContent?.trim();(e.id===r?.domId||t===n)&&(a=e)}),!a){P.warn(`⚠️ Could not find node matching text:`,n);return}let o=a.parentNode;if(!o){P.warn(`⚠️ Node has no parent, cannot wrap:`,n);return}let u=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),d=e.url.replace(/^"+|"+$/g,``);if(u.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,d),u.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);u.setAttribute(`title`,t),a.setAttribute(`title`,t)}o.replaceChild(u,a),u.appendChild(a),P.info(`🔗 Wrapped node in tag for:`,n,e.url)})}catch(e){P.error(`❌ Error injecting clickable links:`,e)}Wm.insertTitle(l,`statediagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),YN(l,8,Hq,a?.useMaxWidth??!0)},`draw`),getDir:_St},Qq={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},ySt=N(()=>new Map,`newClassesList`),bSt=N(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$q=N(e=>JSON.parse(JSON.stringify(e)),`clone`),xSt=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=ySt(),this.documents={root:bSt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=ms,this.setAccTitle=ps,this.getAccDescription=gs,this.setAccDescription=hs,this.setDiagramTitle=_s,this.getDiagramTitle=vs,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),this.bindFunctions=this.bindFunctions.bind(this)}static{N(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case Pq:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case Iq:this.addRelation(t.state1,t.state2,t.description);break;case Kxt:this.addStyleClass(t.id.trim(),t.classes);break;case qxt:this.handleStyleDef(t);break;case Jxt:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=bs();gSt(),Zq(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){P.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===Iq){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===Pq&&(t.id===Qq.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==Fq&&t.stmt!==Pq||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===Yxt){let t=$q(e);t.doc=$q(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:Pq,id:pOe(),type:`divider`,doc:$q(i)};r.push($q(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:Fq,stmt:Fq},{id:Fq,stmt:Fq,doc:this.rootDoc},!0),{id:Fq,doc:this.rootDoc}}addState(e,t=Lq,n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0){let l=e?.trim();if(!this.currentDocument.states.has(l))P.info(`Adding state `,l,r),this.currentDocument.states.set(l,{stmt:Pq,id:l,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.doc||=n,e.type||=t}if(r&&(P.info(`Setting state description`,l,r),(Array.isArray(r)?r:[r]).forEach(e=>this.addDescription(l,e.trim()))),i){let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.note=i,e.note.text=cs.sanitizeText(e.note.text,bs())}a&&(P.info(`Setting state classes`,l,a),(Array.isArray(a)?a:[a]).forEach(e=>this.setCssClass(l,e.trim()))),o&&(P.info(`Setting state styles`,l,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setStyle(l,e.trim()))),s&&(P.info(`Setting state styles`,l,o),(Array.isArray(s)?s:[s]).forEach(e=>this.setTextStyle(l,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:bSt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=ySt(),e||(this.links=new Map,fs())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){P.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,n){this.links.set(e,{url:t,tooltip:n}),P.warn(`Adding link`,e,t,n)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Qq.START_NODE?(this.startEndCount++,`${Qq.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=Lq){return e===Qq.START_NODE?Qq.START_TYPE:t}endIdIfNeeded(e=``){return e===Qq.END_NODE?(this.startEndCount++,`${Qq.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=Lq){return e===Qq.END_NODE?Qq.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:cs.sanitizeText(n,bs())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?cs.sanitizeText(n,bs()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(cs.sanitizeText(r,bs()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Qq.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Qq.COLOR_KEYWORD).exec(e)){let e=t.replace(Qq.FILL_KEYWORD,Qq.BG_FILL).replace(Qq.COLOR_KEYWORD,Qq.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let t=c5e();Bc(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let n=Bc(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Ur.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),Bc(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===Nq)}getDirection(){return this.getDirectionStatement()?.value??Wxt}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:Nq,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=bs();for(let t of this.nodes)t.wrappingWidth??=e.state?.wrappingWidth,t.isGroup||(t.minWidth??=e.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:_St(this.getRootDocV2())}}getConfig(){return bs().state}},SSt=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Uh(e.look),a=Vh(n),o=``;for(let e=0;e` -${_St(e)} + `}return o},`genColor`),CSt={parser:Uxt,get db(){return new xSt(2)},renderer:vSt,styles:N(e=>` +${SSt(e)} defs [id$="-barbEnd"] { fill: ${e.transitionColor}; stroke: ${e.transitionColor}; @@ -2853,12 +2855,12 @@ g.stateGroup line { ry: ${e.radius}px; filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`} } -`,`getStyles`),init:N(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),eJ=l({diagram:()=>zSt});function bSt(e){let t=As().journey,n=t.maxLabelWidth;hJ=0;let r=60;Object.keys(mJ).forEach(i=>{let a=mJ[i].color,o={cx:20,cy:r,r:7,fill:a,stroke:`#000`,pos:mJ[i].position};pJ.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(i),l=s.node().getBoundingClientRect().width;s.remove();let u=[];if(l<=n)u=[i];else{let t=i.split(` `),r=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=r?`${r} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(r&&u.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(u.push(t.slice(0,-1)+`-`),t=r);r=t}}else r=t}),r&&u.push(r),s.remove()}u.forEach((n,i)=>{let a={x:40,y:r+7+i*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=pJ.drawText(e,a).node().getBoundingClientRect().width;o>hJ&&o>t.leftMargin-o&&(hJ=o)}),r+=Math.max(20,u.length*20)})}var tJ,xSt,nJ,rJ,iJ,aJ,oJ,SSt,CSt,wSt,TSt,ESt,DSt,sJ,cJ,OSt,kSt,ASt,jSt,lJ,MSt,NSt,uJ,dJ,PSt,fJ,pJ,FSt,mJ,hJ,gJ,_J,ISt,vJ,yJ,bJ,LSt,RSt,zSt,BSt=o((()=>{YN(),vN(),Ls(),ar(),tr(),Dp(),tJ=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,14],l={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`,`getStyles`),init:N(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),eJ=l({diagram:()=>BSt});function tJ(e){let t=bs().journey,n=t.maxLabelWidth;_J=0;let r=60;Object.keys(gJ).forEach(i=>{let a=gJ[i].color,o={cx:20,cy:r,r:7,fill:a,stroke:`#000`,pos:gJ[i].position};hJ.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(i),l=s.node().getBoundingClientRect().width;s.remove();let u=[];if(l<=n)u=[i];else{let t=i.split(` `),r=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=r?`${r} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(r&&u.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(u.push(t.slice(0,-1)+`-`),t=r);r=t}}else r=t}),r&&u.push(r),s.remove()}u.forEach((n,i)=>{let a={x:40,y:r+7+i*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=hJ.drawText(e,a).node().getBoundingClientRect().width;o>_J&&o>t.leftMargin-o&&(_J=o)}),r+=Math.max(20,u.length*20)})}var nJ,rJ,iJ,aJ,oJ,sJ,TSt,ESt,cJ,DSt,OSt,kSt,ASt,jSt,lJ,MSt,NSt,PSt,uJ,FSt,dJ,ISt,fJ,LSt,pJ,mJ,hJ,RSt,gJ,_J,vJ,yJ,zSt,bJ,xJ,SJ,CJ,wJ,BSt,TJ=o((()=>{KN(),dN(),Os(),er(),Zn(),Dp(),nJ=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,14],l={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function u(){this.yy={}}return N(u,`Parser`),u.prototype=l,l.Parser=u,new u})(),tJ.parser=tJ,xSt=tJ,nJ=``,rJ=[],iJ=[],aJ=[],oJ=N(function(){rJ.length=0,iJ.length=0,nJ=``,aJ.length=0,Ss()},`clear`),SSt=N(function(e){nJ=e,rJ.push(e)},`addSection`),CSt=N(function(){return rJ},`getSections`),wSt=N(function(){let e=sJ(),t=0;for(;!e&&t<100;)e=sJ(),t++;return iJ.push(...aJ),iJ},`getTasks`),TSt=N(function(){let e=[];return iJ.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),ESt=N(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:nJ,type:nJ,people:a,task:e,score:r};aJ.push(o)},`addTask`),DSt=N(function(e){let t={section:nJ,type:nJ,description:e,task:e,classes:[]};iJ.push(t)},`addTaskOrg`),sJ=N(function(){let e=N(function(e){return aJ[e].processed},`compileTask`),t=!0;for(let[n,r]of aJ.entries())e(n),t&&=r.processed;return t},`compileTasks`),cJ={getConfig:N(()=>As().journey,`getConfig`),clear:oJ,setDiagramTitle:Ds,getDiagramTitle:Os,setAccTitle:Cs,getAccTitle:ws,setAccDescription:Ts,getAccDescription:Es,addSection:SSt,getSections:CSt,getTasks:wSt,addTask:ESt,addTaskOrg:DSt,getActors:N(function(){return TSt()},`getActors`)},OSt=N(e=>`.label { +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function u(){this.yy={}}return N(u,`Parser`),u.prototype=l,l.Parser=u,new u})(),nJ.parser=nJ,rJ=nJ,iJ=``,aJ=[],oJ=[],sJ=[],TSt=N(function(){aJ.length=0,oJ.length=0,iJ=``,sJ.length=0,fs()},`clear`),ESt=N(function(e){iJ=e,aJ.push(e)},`addSection`),cJ=N(function(){return aJ},`getSections`),DSt=N(function(){let e=jSt(),t=0;for(;!e&&t<100;)e=jSt(),t++;return oJ.push(...sJ),oJ},`getTasks`),OSt=N(function(){let e=[];return oJ.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),kSt=N(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:iJ,type:iJ,people:a,task:e,score:r};sJ.push(o)},`addTask`),ASt=N(function(e){let t={section:iJ,type:iJ,description:e,task:e,classes:[]};oJ.push(t)},`addTaskOrg`),jSt=N(function(){let e=N(function(e){return sJ[e].processed},`compileTask`),t=!0;for(let[n,r]of sJ.entries())e(n),t&&=r.processed;return t},`compileTasks`),lJ={getConfig:N(()=>bs().journey,`getConfig`),clear:TSt,setDiagramTitle:_s,getDiagramTitle:vs,setAccTitle:ps,getAccTitle:ms,setAccDescription:hs,getAccDescription:gs,addSection:ESt,getSections:cJ,getTasks:DSt,addTask:kSt,addTaskOrg:ASt,getActors:N(function(){return OSt()},`getActors`)},MSt=N(e=>`.label { font-family: ${e.fontFamily}; color: ${e.textColor}; } @@ -2990,13 +2992,13 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l .actor-5 { ${e.actor5?`fill: ${e.actor5}`:``}; } - ${JN()} -`,`getStyles`),kSt=N(function(e,t){return mN(e,t)},`drawRect`),ASt=N(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=Qf().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}N(i,`smile`);function a(e){let n=Qf().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}N(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return N(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),jSt=N(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),lJ=N(function(e,t){return J8e(e,t)},`drawText`),MSt=N(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}N(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,lJ(e,t)},`drawLabel`),NSt=N(function(e,t,n){let r=e.append(`g`),i=gN();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,kSt(r,i),fJ(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),uJ=-1,dJ=N(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);uJ++,a.append(`line`).attr(`id`,r+`-task`+uJ).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),ASt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=gN();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,kSt(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position};jSt(a,r),s+=10}),fJ(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),PSt=N(function(e,t){q8e(e,t)},`drawBackgroundRect`),fJ=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e{mJ[e]={color:gJ.actorColours[g%gJ.actorColours.length],position:g},g++}),bSt(f),_J=gJ.leftMargin+hJ,vJ.insert(0,0,_J,Object.keys(mJ).length*50),LSt(f,p,0,t);let _=vJ.getBounds();m&&f.append(`text`).text(m).attr(`x`,_J).attr(`font-size`,o).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,a).attr(`font-family`,s);let v=_.stopy-_.starty+2*gJ.diagramMarginY,y=_J+_.stopx+2*gJ.diagramMarginX;_s(f,v,y,gJ.useMaxWidth),f.append(`line`).attr(`x1`,_J).attr(`y1`,gJ.height*4).attr(`x2`,y-_J-4).attr(`y2`,gJ.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+t+`-arrowhead)`);let b=m?70:0;f.attr(`viewBox`,`${_.startx} -25 ${y} ${v+b}`),f.attr(`preserveAspectRatio`,`xMinYMin meet`),f.attr(`height`,v+b+25)},`draw`),vJ={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:N(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:N(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:N(function(e,t,n,r){let i=As().journey,a=this,o=0;function s(s){return N(function(l){o++;let u=a.sequenceItems.length-o+1;a.updateVal(l,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(l,`stopy`,r+u*i.boxMargin,Math.max),a.updateVal(vJ.data,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(vJ.data,`stopx`,n+u*i.boxMargin,Math.max),s!==`activation`&&(a.updateVal(l,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(l,`stopx`,n+u*i.boxMargin,Math.max),a.updateVal(vJ.data,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(vJ.data,`stopy`,r+u*i.boxMargin,Math.max))},`updateItemBounds`)}N(s,`updateFn`),this.sequenceItems.forEach(s())},`updateBounds`),insert:N(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(vJ.data,`startx`,i,Math.min),this.updateVal(vJ.data,`starty`,o,Math.min),this.updateVal(vJ.data,`stopx`,a,Math.max),this.updateVal(vJ.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:N(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:N(function(){return this.verticalPos},`getVerticalPos`),getBounds:N(function(){return this.data},`getBounds`)},yJ=gJ.sectionFills,bJ=gJ.sectionColours,LSt=N(function(e,t,n,r){let i=As().journey,a=``,o=n+(i.height*2+i.diagramMarginY),s=0,l=`#CCC`,u=`black`,d=0;for(let[n,f]of t.entries()){if(a!==f.section){l=yJ[s%yJ.length],d=s%yJ.length,u=bJ[s%bJ.length];let r=0,o=f.section;for(let e=n;e(mJ[t]&&(e[t]=mJ[t]),e),{});f.x=n*i.taskMargin+n*i.width+_J,f.y=o,f.width=i.diagramMarginX,f.height=i.diagramMarginY,f.colour=u,f.fill=l,f.num=d,f.actors=p,pJ.drawTask(e,f,i,r),vJ.insert(f.x,f.y,f.x+f.width+i.taskMargin,450)}},`drawTasks`),RSt={setConf:FSt,draw:ISt},zSt={parser:xSt,db:cJ,renderer:RSt,styles:OSt,init:N(e=>{RSt.setConf(e.journey),cJ.clear()},`init`)}})),xJ=l({diagram:()=>SCt});function SJ(e,t){e.each(function(){var e=Qc(this),n=e.text().split(/(\s+|
    )/).reverse(),r,i=[],a=1.1,o=e.attr(`y`),s=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,s+`em`);for(let s=0;st||r===`
    `)&&(i.pop(),l.text(i.join(` `).trim()),i=r===`
    `?[``]:[r],l=e.append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,a+`em`).text(r))})}var CJ,VSt,wJ,TJ,HSt,EJ,DJ,OJ,kJ,AJ,USt,WSt,jJ,GSt,KSt,MJ,qSt,JSt,NJ,YSt,XSt,PJ,FJ,ZSt,IJ,QSt,$St,eCt,LJ,tCt,nCt,rCt,iCt,RJ,aCt,oCt,zJ,BJ,VJ,sCt,cCt,HJ,UJ,lCt,WJ,GJ,KJ,qJ,uCt,dCt,fCt,pCt,mCt,hCt,gCt,_Ct,vCt,yCt,bCt,xCt,SCt,CCt=o((()=>{kp(),Ih(),Gm(),Ls(),ar(),tr(),Dp(),Tr(),CJ=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],r=[1,13],i=[1,14],a=[1,15],o=[1,16],s=[1,19],l=[1,20],u={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + ${GN()} +`,`getStyles`),NSt=N(function(e,t){return r5e(e,t)},`drawRect`),PSt=N(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=Yf().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}N(i,`smile`);function a(e){let n=Yf().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}N(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return N(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),uJ=N(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),FSt=N(function(e,t){return a5e(e,t)},`drawText`),dJ=N(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}N(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,FSt(e,t)},`drawLabel`),ISt=N(function(e,t,n){let r=e.append(`g`),i=lN();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,NSt(r,i),mJ(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),fJ=-1,LSt=N(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);fJ++,a.append(`line`).attr(`id`,r+`-task`+fJ).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),PSt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=lN();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,NSt(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position};uJ(a,r),s+=10}),mJ(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),pJ=N(function(e,t){i5e(e,t)},`drawBackgroundRect`),mJ=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e{gJ[e]={color:vJ.actorColours[g%vJ.actorColours.length],position:g},g++}),tJ(f),yJ=vJ.leftMargin+_J,bJ.insert(0,0,yJ,Object.keys(gJ).length*50),CJ(f,p,0,t);let _=bJ.getBounds();m&&f.append(`text`).text(m).attr(`x`,yJ).attr(`font-size`,o).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,a).attr(`font-family`,s);let v=_.stopy-_.starty+2*vJ.diagramMarginY,y=yJ+_.stopx+2*vJ.diagramMarginX;ls(f,v,y,vJ.useMaxWidth),f.append(`line`).attr(`x1`,yJ).attr(`y1`,vJ.height*4).attr(`x2`,y-yJ-4).attr(`y2`,vJ.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+t+`-arrowhead)`);let b=m?70:0;f.attr(`viewBox`,`${_.startx} -25 ${y} ${v+b}`),f.attr(`preserveAspectRatio`,`xMinYMin meet`),f.attr(`height`,v+b+25)},`draw`),bJ={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:N(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:N(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:N(function(e,t,n,r){let i=bs().journey,a=this,o=0;function s(s){return N(function(l){o++;let u=a.sequenceItems.length-o+1;a.updateVal(l,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(l,`stopy`,r+u*i.boxMargin,Math.max),a.updateVal(bJ.data,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(bJ.data,`stopx`,n+u*i.boxMargin,Math.max),s!==`activation`&&(a.updateVal(l,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(l,`stopx`,n+u*i.boxMargin,Math.max),a.updateVal(bJ.data,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(bJ.data,`stopy`,r+u*i.boxMargin,Math.max))},`updateItemBounds`)}N(s,`updateFn`),this.sequenceItems.forEach(s())},`updateBounds`),insert:N(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(bJ.data,`startx`,i,Math.min),this.updateVal(bJ.data,`starty`,o,Math.min),this.updateVal(bJ.data,`stopx`,a,Math.max),this.updateVal(bJ.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:N(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:N(function(){return this.verticalPos},`getVerticalPos`),getBounds:N(function(){return this.data},`getBounds`)},xJ=vJ.sectionFills,SJ=vJ.sectionColours,CJ=N(function(e,t,n,r){let i=bs().journey,a=``,o=n+(i.height*2+i.diagramMarginY),s=0,l=`#CCC`,u=`black`,d=0;for(let[n,f]of t.entries()){if(a!==f.section){l=xJ[s%xJ.length],d=s%xJ.length,u=SJ[s%SJ.length];let r=0,o=f.section;for(let e=n;e(gJ[t]&&(e[t]=gJ[t]),e),{});f.x=n*i.taskMargin+n*i.width+yJ,f.y=o,f.width=i.diagramMarginX,f.height=i.diagramMarginY,f.colour=u,f.fill=l,f.num=d,f.actors=p,hJ.drawTask(e,f,i,r),bJ.insert(f.x,f.y,f.x+f.width+i.taskMargin,450)}},`drawTasks`),wJ={setConf:RSt,draw:zSt},BSt={parser:rJ,db:lJ,renderer:wJ,styles:MSt,init:N(e=>{wJ.setConf(e.journey),lJ.clear()},`init`)}})),VSt=l({diagram:()=>wCt});function HSt(e,t){e.each(function(){var e=Bc(this),n=e.text().split(/(\s+|
    )/).reverse(),r,i=[],a=1.1,o=e.attr(`y`),s=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,s+`em`);for(let s=0;st||r===`
    `)&&(i.pop(),l.text(i.join(` `).trim()),i=r===`
    `?[``]:[r],l=e.append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,a+`em`).text(r))})}var EJ,USt,DJ,OJ,kJ,AJ,WSt,jJ,MJ,GSt,NJ,KSt,qSt,PJ,JSt,YSt,FJ,XSt,ZSt,IJ,QSt,$St,LJ,eCt,tCt,nCt,rCt,iCt,RJ,aCt,oCt,zJ,BJ,VJ,sCt,cCt,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,lCt,uCt,dCt,fCt,pCt,mCt,hCt,gCt,_Ct,vCt,yCt,bCt,xCt,SCt,CCt,wCt,TCt=o((()=>{kp(),qh(),qm(),Os(),er(),Zn(),Dp(),br(),EJ=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],r=[1,13],i=[1,14],a=[1,15],o=[1,16],s=[1,19],l=[1,20],u={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function d(){this.yy={}}return N(d,`Parser`),d.prototype=u,u.Parser=d,new d})(),CJ.parser=CJ,VSt=CJ,wJ={},er(wJ,{addEvent:()=>JSt,addSection:()=>GSt,addTask:()=>qSt,addTaskOrg:()=>NJ,clear:()=>USt,default:()=>XSt,getCommonDb:()=>AJ,getDirection:()=>jJ,getSections:()=>KSt,getTasks:()=>MJ,setDirection:()=>WSt}),TJ=``,HSt=0,EJ=`LR`,DJ=[],OJ=[],kJ=[],AJ=N(()=>hme,`getCommonDb`),USt=N(function(){DJ.length=0,OJ.length=0,TJ=``,kJ.length=0,EJ=`LR`,Ss()},`clear`),WSt=N(function(e){EJ=e},`setDirection`),jJ=N(function(){return EJ},`getDirection`),GSt=N(function(e){TJ=e,DJ.push(e)},`addSection`),KSt=N(function(){return DJ},`getSections`),MJ=N(function(){let e=YSt(),t=0;for(;!e&&t<100;)e=YSt(),t++;return OJ.push(...kJ),OJ},`getTasks`),qSt=N(function(e,t,n){let r={id:HSt++,section:TJ,type:TJ,task:e,score:t||0,events:n?[n]:[]};kJ.push(r)},`addTask`),JSt=N(function(e){kJ.find(e=>e.id===HSt-1).events.push(e)},`addEvent`),NJ=N(function(e){let t={section:TJ,type:TJ,description:e,task:e,classes:[]};OJ.push(t)},`addTaskOrg`),YSt=N(function(){let e=N(function(e){return kJ[e].processed},`compileTask`),t=!0;for(let[n,r]of kJ.entries())e(n),t&&=r.processed;return t},`compileTasks`),XSt={clear:USt,getCommonDb:AJ,getDirection:jJ,setDirection:WSt,addSection:GSt,getSections:KSt,getTasks:MJ,addTask:qSt,addTaskOrg:NJ,addEvent:JSt},PJ=0,FJ=N(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),ZSt=N(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=Qf().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}N(i,`smile`);function a(e){let n=Qf().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}N(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return N(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),IJ=N(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),QSt=N(function(e,t){let n=t.text.replace(//gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),$St=N(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}N(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,QSt(e,t)},`drawLabel`),eCt=N(function(e,t,n){let r=e.append(`g`),i=iCt();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,FJ(r,i),RJ(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),LJ=-1,tCt=N(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);LJ++,a.append(`line`).attr(`id`,r+`-task`+LJ).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),ZSt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=iCt();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,FJ(a,o),RJ(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),nCt=N(function(e,t){FJ(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),rCt=N(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),iCt=N(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),RJ=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+PJ++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),VJ={drawRect:FJ,drawCircle:IJ,drawSection:eCt,drawText:QSt,drawLabel:$St,drawTask:tCt,drawBackgroundRect:nCt,getTextObj:rCt,getNoteRect:iCt,initGraphics:aCt,drawNode:oCt,getVirtualNodeHeight:zJ},sCt=N(function(e,t,n,r){let i=As(),{look:a,theme:o,themeVariables:s}=i,{useGradient:l,gradientStart:u,gradientStop:d}=s,f=i.timeline?.leftMargin??50;P.debug(`timeline`,r.db);let p=i.securityLevel,m;p===`sandbox`&&(m=Qc(`#i`+t));let h=Qc(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`#`+t);h.append(`g`);let g=r.db.getTasks(),_=r.db.getCommonDb().getDiagramTitle();P.debug(`task`,g),VJ.initGraphics(h,t);let v=r.db.getSections();P.debug(`sections`,v);let y=0,b=0,x=0,S=0,C=50+f,w=50;S=50;let T=0,E=!0;v.forEach(function(e){let t={number:T,descr:e,section:T,width:150,padding:20,maxHeight:y},n=VJ.getVirtualNodeHeight(h,t,i);P.debug(`sectionHeight before draw`,n),y=Math.max(y,n+20)});let D=0,O=0;P.debug(`tasks.length`,g.length);for(let[e,t]of g.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:b},r=VJ.getVirtualNodeHeight(h,n,i);P.debug(`taskHeight before draw`,r),b=Math.max(b,r+20),D=Math.max(D,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=VJ.getVirtualNodeHeight(h,n,i)}t.events.length>0&&(a+=(t.events.length-1)*10),O=Math.max(O,a)}P.debug(`maxSectionHeight before draw`,y),P.debug(`maxTaskHeight before draw`,b),v&&v.length>0?v.forEach(e=>{let n=g.filter(t=>t.section===e),r={number:T,descr:e,section:T,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:y};P.debug(`sectionNode`,r);let a=h.append(`g`),o=VJ.drawNode(a,r,T,i,t);P.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${C}, ${S})`),w+=y+50,n.length>0&&cCt(h,n,T,C,w,b,i,D,O,y,!1,t),C+=200*Math.max(n.length,1),w=S,T++}):(E=!1,cCt(h,g,T,C,w,b,i,D,O,y,!0,t));let k=h.node().getBBox();if(P.debug(`bounds`,k),_&&h.append(`text`).text(_).attr(`x`,a===`neo`?k.x*2+f:k.width/2-f).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),x=E?y+b+150:b+100,h.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,f).attr(`y1`,x).attr(`x2`,k.width+3*f).attr(`y2`,x).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),a===`neo`&&l&&o!==`neutral`){let e=h.select(`defs`),t=(e.empty()?h.append(`defs`):e).append(`linearGradient`).attr(`id`,h.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}vs(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),cCt=N(function(e,t,n,r,i,a,o,s,l,u,d,f){for(let s of t){let t={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};P.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=VJ.drawNode(u,t,n,o,f).height;if(P.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${r}, ${i})`),a=Math.max(a,p),s.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),u=a;i+=100,u+=HJ(e,s.events,n,r,i,o,f),i-=100,t.append(`line`).attr(`x1`,r+95).attr(`y1`,i+a).attr(`x2`,r+95).attr(`y2`,i+a+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}r+=200,d&&!o.timeline?.disableMulticolor&&n++}i-=10},`drawTasks`),HJ=N(function(e,t,n,r,i,a,o){let s=0,l=i;i+=100;for(let l of t){let t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};P.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=VJ.drawNode(u,t,n,a,o,!0).height;s+=d,u.attr(`transform`,`translate(${r}, ${i})`),i=i+10+d}return i=l,s},`drawEvents`),UJ={setConf:N(()=>{},`setConf`),draw:sCt},lCt=200,WJ=5,GJ=lCt+WJ*2,KJ=lCt+100,qJ=KJ+WJ*2,uCt=10,dCt=0,fCt=20,pCt=20,mCt=30,hCt=50,gCt=N(function(e,t,n,r){let i=As(),a=i.timeline?.leftMargin??50;P.debug(`timeline`,r.db);let o=Op(t);o.append(`g`);let s=r.db.getTasks(),l=r.db.getCommonDb().getDiagramTitle();P.debug(`task`,s),VJ.initGraphics(o);let u=r.db.getSections();P.debug(`sections`,u);let d=0,f=0,p=50+a,m=50,h=m,g=p,_=GJ+pCt,v=qJ+hCt,y=g+_,b=0,x=u&&u.length>0,S=x?y:p+_,C=Math.max(50,_+v-WJ*2);u.forEach(function(e){let t={number:b,descr:e,section:b,width:C,padding:WJ,maxHeight:d},n=VJ.getVirtualNodeHeight(o,t,i);P.debug(`sectionHeight before draw`,n),d=Math.max(d,n)});let w=0;P.debug(`tasks.length`,s.length);for(let[e,t]of s.entries()){let n={number:e,descr:t,section:t.section,width:lCt,padding:WJ,maxHeight:f},r=VJ.getVirtualNodeHeight(o,n,i);P.debug(`taskHeight before draw`,r),f=Math.max(f,r);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:KJ,padding:WJ,maxHeight:50};a+=VJ.getVirtualNodeHeight(o,n,i)}t.events.length>0&&(a+=(t.events.length-1)*uCt),w=Math.max(w,a)+dCt}P.debug(`maxSectionHeight before draw`,d),P.debug(`maxTaskHeight before draw`,f);let T=Math.max(f,w)+mCt;x?u.forEach(e=>{let t=s.filter(t=>t.section===e),n={number:b,descr:e,section:b,width:C,padding:WJ,maxHeight:d};P.debug(`sectionNode`,n);let r=o.append(`g`),a=VJ.drawNode(r,n,b,i);P.debug(`sectionNode output`,a);let l=S-_;r.attr(`transform`,`translate(${l}, ${m})`);let u=m+a.height+fCt;t.length>0&&_Ct(o,t,b,S,u,f,i,T,!1);let p=t.length,h=a.height+fCt+T*Math.max(p,1)-(p>0?mCt*2:0);m+=h,b++}):_Ct(o,s,b,S,m,f,i,T,!0);let E=o.node()?.getBBox();if(!E)throw Error(`bbox not found`);if(P.debug(`bounds`,E),l){if(o.append(`text`).text(l).attr(`x`,E.width/2-a).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),E=o.node()?.getBBox(),!E)throw Error(`bbox not found`);P.debug(`bounds after title`,E)}let[D]=Vm(i.fontSize),O=(D??16)*2,k=(D??16)*.5+20,A=o.append(`g`).attr(`class`,`lineWrapper`);A.append(`line`).attr(`x1`,S).attr(`y1`,h-O).attr(`x2`,S).attr(`y2`,E.y+E.height+k).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),A.lower(),vs(void 0,o,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),_Ct=N(function(e,t,n,r,i,a,o,s,l){for(let u of t){let t={descr:u.task,section:n,number:n,width:lCt,padding:WJ,maxHeight:a};P.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=VJ.drawNode(d,t,n,o),p=f.height;P.debug(`taskHeight after draw`,p);let m=r-pCt-f.width;if(d.attr(`transform`,`translate(${m}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){let t=i,a=r+hCt;vCt(e,u.events,n,r,a,t,o)}i+=s,l&&!o.timeline?.disableMulticolor&&n++}},`drawTasks`),vCt=N(function(e,t,n,r,i,a,o){let s=a;for(let a of t){let t={descr:a,section:n,number:n,width:KJ,padding:WJ,maxHeight:0};P.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=VJ.drawNode(l,t,n,o).height;l.attr(`transform`,`translate(${i}, ${s})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=s+u/2;d.append(`line`).attr(`x1`,r).attr(`y1`,f).attr(`x2`,i).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),s=s+u+uCt}return s-a},`drawEvents`),yCt={setConf:N(()=>{},`setConf`),draw:gCt},bCt=N(e=>{let{theme:t}=ns(),n=t?.includes(`dark`),r=jh(t,e.borderColorArray),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function d(){this.yy={}}return N(d,`Parser`),d.prototype=u,u.Parser=d,new d})(),EJ.parser=EJ,USt=EJ,DJ={},Xn(DJ,{addEvent:()=>XSt,addSection:()=>PJ,addTask:()=>FJ,addTaskOrg:()=>ZSt,clear:()=>NJ,default:()=>QSt,getCommonDb:()=>GSt,getDirection:()=>qSt,getSections:()=>JSt,getTasks:()=>YSt,setDirection:()=>KSt}),OJ=``,kJ=0,AJ=`LR`,WSt=[],jJ=[],MJ=[],GSt=N(()=>Ome,`getCommonDb`),NJ=N(function(){WSt.length=0,jJ.length=0,OJ=``,MJ.length=0,AJ=`LR`,fs()},`clear`),KSt=N(function(e){AJ=e},`setDirection`),qSt=N(function(){return AJ},`getDirection`),PJ=N(function(e){OJ=e,WSt.push(e)},`addSection`),JSt=N(function(){return WSt},`getSections`),YSt=N(function(){let e=IJ(),t=0;for(;!e&&t<100;)e=IJ(),t++;return jJ.push(...MJ),jJ},`getTasks`),FJ=N(function(e,t,n){let r={id:kJ++,section:OJ,type:OJ,task:e,score:t||0,events:n?[n]:[]};MJ.push(r)},`addTask`),XSt=N(function(e){MJ.find(e=>e.id===kJ-1).events.push(e)},`addEvent`),ZSt=N(function(e){let t={section:OJ,type:OJ,description:e,task:e,classes:[]};jJ.push(t)},`addTaskOrg`),IJ=N(function(){let e=N(function(e){return MJ[e].processed},`compileTask`),t=!0;for(let[n,r]of MJ.entries())e(n),t&&=r.processed;return t},`compileTasks`),QSt={clear:NJ,getCommonDb:GSt,getDirection:qSt,setDirection:KSt,addSection:PJ,getSections:JSt,getTasks:YSt,addTask:FJ,addTaskOrg:ZSt,addEvent:XSt},$St=0,LJ=N(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),eCt=N(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=Yf().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}N(i,`smile`);function a(e){let n=Yf().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}N(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return N(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),tCt=N(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),nCt=N(function(e,t){let n=t.text.replace(//gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),rCt=N(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}N(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,nCt(e,t)},`drawLabel`),iCt=N(function(e,t,n){let r=e.append(`g`),i=BJ();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,LJ(r,i),VJ(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),RJ=-1,aCt=N(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);RJ++,a.append(`line`).attr(`id`,r+`-task`+RJ).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),eCt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=BJ();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,LJ(a,o),VJ(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),oCt=N(function(e,t){LJ(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),zJ=N(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),BJ=N(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),VJ=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}N(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+$St++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),WJ={drawRect:LJ,drawCircle:tCt,drawSection:iCt,drawText:nCt,drawLabel:rCt,drawTask:aCt,drawBackgroundRect:oCt,getTextObj:zJ,getNoteRect:BJ,initGraphics:sCt,drawNode:cCt,getVirtualNodeHeight:HJ},GJ=N(function(e,t,n,r){let i=bs(),{look:a,theme:o,themeVariables:s}=i,{useGradient:l,gradientStart:u,gradientStop:d}=s,f=i.timeline?.leftMargin??50;P.debug(`timeline`,r.db);let p=i.securityLevel,m;p===`sandbox`&&(m=Bc(`#i`+t));let h=Bc(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`#`+t);h.append(`g`);let g=r.db.getTasks(),_=r.db.getCommonDb().getDiagramTitle();P.debug(`task`,g),WJ.initGraphics(h,t);let v=r.db.getSections();P.debug(`sections`,v);let y=0,b=0,x=0,S=0,C=50+f,w=50;S=50;let T=0,E=!0;v.forEach(function(e){let t={number:T,descr:e,section:T,width:150,padding:20,maxHeight:y},n=WJ.getVirtualNodeHeight(h,t,i);P.debug(`sectionHeight before draw`,n),y=Math.max(y,n+20)});let D=0,O=0;P.debug(`tasks.length`,g.length);for(let[e,t]of g.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:b},r=WJ.getVirtualNodeHeight(h,n,i);P.debug(`taskHeight before draw`,r),b=Math.max(b,r+20),D=Math.max(D,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=WJ.getVirtualNodeHeight(h,n,i)}t.events.length>0&&(a+=(t.events.length-1)*10),O=Math.max(O,a)}P.debug(`maxSectionHeight before draw`,y),P.debug(`maxTaskHeight before draw`,b),v&&v.length>0?v.forEach(e=>{let n=g.filter(t=>t.section===e),r={number:T,descr:e,section:T,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:y};P.debug(`sectionNode`,r);let a=h.append(`g`),o=WJ.drawNode(a,r,T,i,t);P.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${C}, ${S})`),w+=y+50,n.length>0&&KJ(h,n,T,C,w,b,i,D,O,y,!1,t),C+=200*Math.max(n.length,1),w=S,T++}):(E=!1,KJ(h,g,T,C,w,b,i,D,O,y,!0,t));let k=h.node().getBBox();if(P.debug(`bounds`,k),_&&h.append(`text`).text(_).attr(`x`,a===`neo`?k.x*2+f:k.width/2-f).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),x=E?y+b+150:b+100,h.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,f).attr(`y1`,x).attr(`x2`,k.width+3*f).attr(`y2`,x).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),a===`neo`&&l&&o!==`neutral`){let e=h.select(`defs`),t=(e.empty()?h.append(`defs`):e).append(`linearGradient`).attr(`id`,h.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}us(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),KJ=N(function(e,t,n,r,i,a,o,s,l,u,d,f){for(let s of t){let t={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};P.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=WJ.drawNode(u,t,n,o,f).height;if(P.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${r}, ${i})`),a=Math.max(a,p),s.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),u=a;i+=100,u+=qJ(e,s.events,n,r,i,o,f),i-=100,t.append(`line`).attr(`x1`,r+95).attr(`y1`,i+a).attr(`x2`,r+95).attr(`y2`,i+a+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}r+=200,d&&!o.timeline?.disableMulticolor&&n++}i-=10},`drawTasks`),qJ=N(function(e,t,n,r,i,a,o){let s=0,l=i;i+=100;for(let l of t){let t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};P.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=WJ.drawNode(u,t,n,a,o,!0).height;s+=d,u.attr(`transform`,`translate(${r}, ${i})`),i=i+10+d}return i=l,s},`drawEvents`),JJ={setConf:N(()=>{},`setConf`),draw:GJ},YJ=200,XJ=5,lCt=YJ+XJ*2,uCt=YJ+100,dCt=uCt+XJ*2,fCt=10,pCt=0,mCt=20,hCt=20,gCt=30,_Ct=50,vCt=N(function(e,t,n,r){let i=bs(),a=i.timeline?.leftMargin??50;P.debug(`timeline`,r.db);let o=Op(t);o.append(`g`);let s=r.db.getTasks(),l=r.db.getCommonDb().getDiagramTitle();P.debug(`task`,s),WJ.initGraphics(o);let u=r.db.getSections();P.debug(`sections`,u);let d=0,f=0,p=50+a,m=50,h=m,g=p,_=lCt+hCt,v=dCt+_Ct,y=g+_,b=0,x=u&&u.length>0,S=x?y:p+_,C=Math.max(50,_+v-XJ*2);u.forEach(function(e){let t={number:b,descr:e,section:b,width:C,padding:XJ,maxHeight:d},n=WJ.getVirtualNodeHeight(o,t,i);P.debug(`sectionHeight before draw`,n),d=Math.max(d,n)});let w=0;P.debug(`tasks.length`,s.length);for(let[e,t]of s.entries()){let n={number:e,descr:t,section:t.section,width:YJ,padding:XJ,maxHeight:f},r=WJ.getVirtualNodeHeight(o,n,i);P.debug(`taskHeight before draw`,r),f=Math.max(f,r);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:uCt,padding:XJ,maxHeight:50};a+=WJ.getVirtualNodeHeight(o,n,i)}t.events.length>0&&(a+=(t.events.length-1)*fCt),w=Math.max(w,a)+pCt}P.debug(`maxSectionHeight before draw`,d),P.debug(`maxTaskHeight before draw`,f);let T=Math.max(f,w)+gCt;x?u.forEach(e=>{let t=s.filter(t=>t.section===e),n={number:b,descr:e,section:b,width:C,padding:XJ,maxHeight:d};P.debug(`sectionNode`,n);let r=o.append(`g`),a=WJ.drawNode(r,n,b,i);P.debug(`sectionNode output`,a);let l=S-_;r.attr(`transform`,`translate(${l}, ${m})`);let u=m+a.height+mCt;t.length>0&&yCt(o,t,b,S,u,f,i,T,!1);let p=t.length,h=a.height+mCt+T*Math.max(p,1)-(p>0?gCt*2:0);m+=h,b++}):yCt(o,s,b,S,m,f,i,T,!0);let E=o.node()?.getBBox();if(!E)throw Error(`bbox not found`);if(P.debug(`bounds`,E),l){if(o.append(`text`).text(l).attr(`x`,E.width/2-a).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),E=o.node()?.getBBox(),!E)throw Error(`bbox not found`);P.debug(`bounds after title`,E)}let[D]=Um(i.fontSize),O=(D??16)*2,k=(D??16)*.5+20,A=o.append(`g`).attr(`class`,`lineWrapper`);A.append(`line`).attr(`x1`,S).attr(`y1`,h-O).attr(`x2`,S).attr(`y2`,E.y+E.height+k).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),A.lower(),us(void 0,o,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),yCt=N(function(e,t,n,r,i,a,o,s,l){for(let u of t){let t={descr:u.task,section:n,number:n,width:YJ,padding:XJ,maxHeight:a};P.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=WJ.drawNode(d,t,n,o),p=f.height;P.debug(`taskHeight after draw`,p);let m=r-hCt-f.width;if(d.attr(`transform`,`translate(${m}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){let t=i,a=r+_Ct;bCt(e,u.events,n,r,a,t,o)}i+=s,l&&!o.timeline?.disableMulticolor&&n++}},`drawTasks`),bCt=N(function(e,t,n,r,i,a,o){let s=a;for(let a of t){let t={descr:a,section:n,number:n,width:uCt,padding:XJ,maxHeight:0};P.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=WJ.drawNode(l,t,n,o).height;l.attr(`transform`,`translate(${i}, ${s})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=s+u/2;d.append(`line`).attr(`x1`,r).attr(`y1`,f).attr(`x2`,i).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),s=s+u+fCt}return s-a},`drawEvents`),xCt={setConf:N(()=>{},`setConf`),draw:vCt},SCt=N(e=>{let{theme:t}=Xo(),n=t?.includes(`dark`),r=Hh(t,e.borderColorArray),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t{let t=``,n=Ph(e.THEME_COLOR_LIMIT);for(let t=0;t{let t=``,n=Gh(e.THEME_COLOR_LIMIT);for(let t=0;t{},`setConf`),draw:N((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?yCt.draw(e,t,n,r):UJ.draw(e,t,n,r),`draw`)},parser:VSt,styles:N(e=>{let{theme:t}=ns(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r){let t=Ph(e.THEME_COLOR_LIMIT);for(let n=0;n{},`setConf`),draw:N((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?xCt.draw(e,t,n,r):JJ.draw(e,t,n,r),`draw`)},parser:USt,styles:N(e=>{let{theme:t}=Xo(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r){let t=Gh(e.THEME_COLOR_LIMIT);for(let n=0;n{JJ=[];for(let e=0;e<256;++e)JJ.push((e+256).toString(16).slice(1))}));function ECt(){return crypto.getRandomValues(DCt)}var DCt,OCt=o((()=>{DCt=new Uint8Array(16)}));function kCt(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():ACt(e,t,n)}function ACt(e,t,n){e||={};let r=e.random??e.rng?.()??ECt();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return wCt(r)}var jCt=o((()=>{OCt(),TCt()})),MCt=o((()=>{TCt(),OCt(),jCt()})),NCt=l({diagram:()=>BCt}),PCt,FCt,ICt,YJ,LCt,RCt,zCt,XJ,BCt,VCt=o((()=>{ZN(),$N(),YM(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),MCt(),Tr(),PCt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`},`getStyles`)}}));function ECt(e,t=0){return(ZJ[e[t+0]]+ZJ[e[t+1]]+ZJ[e[t+2]]+ZJ[e[t+3]]+`-`+ZJ[e[t+4]]+ZJ[e[t+5]]+`-`+ZJ[e[t+6]]+ZJ[e[t+7]]+`-`+ZJ[e[t+8]]+ZJ[e[t+9]]+`-`+ZJ[e[t+10]]+ZJ[e[t+11]]+ZJ[e[t+12]]+ZJ[e[t+13]]+ZJ[e[t+14]]+ZJ[e[t+15]]).toLowerCase()}var ZJ,DCt=o((()=>{ZJ=[];for(let e=0;e<256;++e)ZJ.push((e+256).toString(16).slice(1))}));function OCt(){return crypto.getRandomValues(kCt)}var kCt,QJ=o((()=>{kCt=new Uint8Array(16)}));function ACt(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():jCt(e,t,n)}function jCt(e,t,n){e||={};let r=e.random??e.rng?.()??OCt();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return ECt(r)}var MCt=o((()=>{QJ(),DCt()})),NCt=o((()=>{DCt(),QJ(),MCt()})),PCt=l({diagram:()=>rY}),FCt,ICt,$J,eY,LCt,RCt,tY,nY,rY,zCt=o((()=>{JN(),XN(),UM(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),NCt(),br(),FCt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return e.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:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.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:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.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}}}})();function y(){this.yy={}}return N(y,`Parser`),y.prototype=v,v.Parser=y,new y})(),PCt.parser=PCt,FCt=PCt,ICt=12,YJ={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},LCt=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=YJ,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)}static{N(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,t,n,r){P.info(`addNode`,e,t,n,r);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,i=!1);let a=As(),o=a.mindmap?.padding??Wo.mindmap.padding;switch(r){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2}let s={id:this.count++,nodeId:ls(t,a),level:e,descr:ls(n,a),type:r,children:[],width:a.mindmap?.maxNodeWidth??Wo.mindmap.maxNodeWidth,padding:o,isRoot:i},l=this.getParent(e);if(l)l.children.push(s),this.nodes.push(s);else if(i)this.nodes.push(s);else throw Error(`There can be only one root. No parent could be found for ("${s.descr}")`)}getType(e,t){switch(P.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?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,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=As(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=ls(e.icon,t)),e.class&&(n.class=ls(e.class,t))}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,t,n=0,r=!1){if(e.section=e.level===0?void 0:r?(n-1)%(ICt-1):t,e.children)for(let[i,a]of e.children.entries()){let o=e.level===0?i%(ICt-1):t;this.assignSections(a,o,n+1,r)}}flattenNodes(e,t){let n=As(),r=[`mindmap-node`];e.isRoot===!0?r.push(`section-root`,`section--1`):e.section!==void 0&&r.push(`section-${e.section}`),e.class&&r.push(e.class);let i=r.join(` `),a=N(e=>{let t=(n.theme?.toLowerCase()??``).includes(`redux`);switch(e){case YJ.CIRCLE:return`mindmapCircle`;case YJ.RECT:return`rect`;case YJ.ROUNDED_RECT:return`rounded`;case YJ.CLOUD:return`cloud`;case YJ.BANG:return`bang`;case YJ.HEXAGON:return`hexagon`;case YJ.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case YJ.NO_BORDER:default:return`rect`}},`getShapeFromType`),o={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:a(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],centerLabel:!0,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(t.push(o),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=As();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let e=this.getMindmap(),t=As(),n=qpe().layout!==void 0,r=t;if(n||(r.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:r};P.debug(`getData: mindmapRoot`,e,t),this.assignSections(e,void 0,0,t.mindmap?.colorBy===`depth`);let i=[],a=[];this.flattenNodes(e,i),this.generateEdges(e,a),P.debug(`getData: processed ${i.length} nodes and ${a.length} edges`);let o=new Map;for(let e of i)o.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:i,edges:a,config:r,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:`mindmap`,diagramId:`mindmap-`+kCt()}}getLogger(){return P}},RCt={draw:N(async(e,t,n,r)=>{P.debug(`Rendering mindmap diagram -`+e);let i=r.db,a=i.getData(),o=XN(t,a.config.securityLevel);if(a.type=r.type,a.layoutAlgorithm=JM(a.config.layout,{fallback:`cose-bilkent`}),a.diagramId=t,!i.getMindmap())return;a.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await KM(a,o);let{themeVariables:s}=ns(),{useGradient:l,gradientStart:u,gradientStop:d}=s;if(l&&u&&d){let e=o.attr(`id`),t=o.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}QN(o,a.config.mindmap?.padding??Wo.mindmap.padding,`mindmapDiagram`,a.config.mindmap?.useMaxWidth??Wo.mindmap.useMaxWidth)},`draw`)},zCt=N(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return e.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:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.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:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.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}}}})();function y(){this.yy={}}return N(y,`Parser`),y.prototype=v,v.Parser=y,new y})(),FCt.parser=FCt,ICt=FCt,$J=12,eY={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},LCt=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=eY,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)}static{N(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,t,n,r){P.info(`addNode`,e,t,n,r);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,i=!1);let a=bs(),o=a.mindmap?.padding??Fo.mindmap.padding;switch(r){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2}let s={id:this.count++,nodeId:ns(t,a),level:e,descr:ns(n,a),type:r,children:[],width:a.mindmap?.maxNodeWidth??Fo.mindmap.maxNodeWidth,padding:o,isRoot:i},l=this.getParent(e);if(l)l.children.push(s),this.nodes.push(s);else if(i)this.nodes.push(s);else throw Error(`There can be only one root. No parent could be found for ("${s.descr}")`)}getType(e,t){switch(P.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?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,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=bs(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=ns(e.icon,t)),e.class&&(n.class=ns(e.class,t))}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,t,n=0,r=!1){if(e.section=e.level===0?void 0:r?(n-1)%($J-1):t,e.children)for(let[i,a]of e.children.entries()){let o=e.level===0?i%($J-1):t;this.assignSections(a,o,n+1,r)}}flattenNodes(e,t){let n=bs(),r=[`mindmap-node`];e.isRoot===!0?r.push(`section-root`,`section--1`):e.section!==void 0&&r.push(`section-${e.section}`),e.class&&r.push(e.class);let i=r.join(` `),a=N(e=>{let t=(n.theme?.toLowerCase()??``).includes(`redux`);switch(e){case eY.CIRCLE:return`mindmapCircle`;case eY.RECT:return`rect`;case eY.ROUNDED_RECT:return`rounded`;case eY.CLOUD:return`cloud`;case eY.BANG:return`bang`;case eY.HEXAGON:return`hexagon`;case eY.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case eY.NO_BORDER:default:return`rect`}},`getShapeFromType`),o={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:a(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],centerLabel:!0,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(t.push(o),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=bs();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let e=this.getMindmap(),t=bs(),n=ime().layout!==void 0,r=t;if(n||(r.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:r};P.debug(`getData: mindmapRoot`,e,t),this.assignSections(e,void 0,0,t.mindmap?.colorBy===`depth`);let i=[],a=[];this.flattenNodes(e,i),this.generateEdges(e,a),P.debug(`getData: processed ${i.length} nodes and ${a.length} edges`);let o=new Map;for(let e of i)o.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:i,edges:a,config:r,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:`mindmap`,diagramId:`mindmap-`+ACt()}}getLogger(){return P}},RCt={draw:N(async(e,t,n,r)=>{P.debug(`Rendering mindmap diagram +`+e);let i=r.db,a=i.getData(),o=qN(t,a.config.securityLevel);if(a.type=r.type,a.layoutAlgorithm=HM(a.config.layout,{fallback:`cose-bilkent`}),a.diagramId=t,!i.getMindmap())return;a.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await VM(a,o);let{themeVariables:s}=Xo(),{useGradient:l,gradientStart:u,gradientStop:d}=s;if(l&&u&&d){let e=o.attr(`id`),t=o.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}YN(o,a.config.mindmap?.padding??Fo.mindmap.padding,`mindmapDiagram`,a.config.mindmap?.useMaxWidth??Fo.mindmap.useMaxWidth)},`draw`)},tY=N(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t{let r=``;for(let i=0;i{let r=``;for(let i=0;i{let{theme:t}=e,n=e.svgId,r=t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)],i=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return` + }`;return r},`genGradient`),rY={get db(){return new LCt},renderer:RCt,parser:ICt,styles:N(e=>{let{theme:t}=e,n=e.svgId,r=t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)],i=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return` .edge { stroke-width: 3; } - ${zCt(e)} + ${tY(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } @@ -3206,18 +3208,18 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l fill: ${r}; color: ${r}; } - ${e.useGradient&&n&&e.mainBkg?XJ(e.THEME_COLOR_LIMIT,n,e.mainBkg):``} -`},`getStyles`)}})),HCt=l({diagram:()=>QCt}),ZJ,QJ,$J,UCt,WCt,eY,GCt,KCt,qCt,tY,JCt,nY,YCt,XCt,ZCt,QCt,$Ct=o((()=>{kp(),YN(),rm(),Y_(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),Tr(),ZJ=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:n,9:22,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:s}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + ${e.useGradient&&n&&e.mainBkg?nY(e.THEME_COLOR_LIMIT,n,e.mainBkg):``} +`},`getStyles`)}})),BCt=l({diagram:()=>QCt}),iY,VCt,aY,HCt,oY,UCt,WCt,GCt,KCt,qCt,JCt,sY,YCt,XCt,ZCt,QCt,$Ct=o((()=>{kp(),KN(),om(),Q_(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),br(),iY=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:n,9:22,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:s}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.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:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.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:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.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}}}})();function S(){this.yy={}}return N(S,`Parser`),S.prototype=x,x.Parser=S,new S})(),ZJ.parser=ZJ,QJ=ZJ,$J=[],UCt=[],WCt=0,eY={},GCt=N(()=>{$J=[],UCt=[],WCt=0,eY={}},`clear`),KCt=N(e=>{if($J.length===0)return null;let t=$J[0].level,n=null;for(let e=$J.length-1;e>=0;e--)if($J[e].level===t&&!n&&(n=$J[e]),$J[e].levelt.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:ls(n.label??``,r),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:As()}},`getData`),JCt=N((e,t,n,r,i)=>{let a=As(),o=a.mindmap?.padding??Wo.mindmap.padding;switch(r){case nY.ROUNDED_RECT:case nY.RECT:case nY.HEXAGON:o*=2}let s={id:ls(t,a)||`kbn`+WCt++,level:e,label:ls(n,a),width:a.mindmap?.maxNodeWidth??Wo.mindmap.maxNodeWidth,padding:o,isGroup:!1};if(i!==void 0){let e;e=i.includes(` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.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:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.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:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.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}}}})();function S(){this.yy={}}return N(S,`Parser`),S.prototype=x,x.Parser=S,new S})(),iY.parser=iY,VCt=iY,aY=[],HCt=[],oY=0,UCt={},WCt=N(()=>{aY=[],HCt=[],oY=0,UCt={}},`clear`),GCt=N(e=>{if(aY.length===0)return null;let t=aY[0].level,n=null;for(let e=aY.length-1;e>=0;e--)if(aY[e].level===t&&!n&&(n=aY[e]),aY[e].levelt.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:ns(n.label??``,r),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:bs()}},`getData`),JCt=N((e,t,n,r,i)=>{let a=bs(),o=a.mindmap?.padding??Fo.mindmap.padding;switch(r){case sY.ROUNDED_RECT:case sY.RECT:case sY.HEXAGON:o*=2}let s={id:ns(t,a)||`kbn`+oY++,level:e,label:ns(n,a),width:a.mindmap?.maxNodeWidth??Fo.mindmap.maxNodeWidth,padding:o,isGroup:!1};if(i!==void 0){let e;e=i.includes(` `)?i+` `:`{ `+i+` -}`;let t=tm(e,{schema:Qp});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(s.shape=t?.shape),t?.label&&(s.label=t?.label),t?.icon&&(s.icon=t?.icon.toString()),t?.assigned&&(s.assigned=t?.assigned.toString()),t?.ticket&&(s.ticket=t?.ticket.toString()),t?.priority&&(s.priority=t?.priority)}let l=KCt(e);l?s.parentId=l.id||`kbn`+WCt++:UCt.push(s),$J.push(s)},`addNode`),nY={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},YCt={clear:GCt,addNode:JCt,getSections:qCt,getData:tY,nodeType:nY,getType:N((e,t)=>{switch(P.debug(`In get type`,e,t),e){case`[`:return nY.RECT;case`(`:return t===`)`?nY.ROUNDED_RECT:nY.CLOUD;case`((`:return nY.CIRCLE;case`)`:return nY.CLOUD;case`))`:return nY.BANG;case`{{`:return nY.HEXAGON;default:return nY.DEFAULT}},`getType`),setElementForId:N((e,t)=>{eY[e]=t},`setElementForId`),decorateNode:N(e=>{if(!e)return;let t=As(),n=$J[$J.length-1];e.icon&&(n.icon=ls(e.icon,t)),e.class&&(n.cssClasses=ls(e.class,t))},`decorateNode`),type2Str:N(e=>{switch(e){case nY.DEFAULT:return`no-border`;case nY.RECT:return`rect`;case nY.ROUNDED_RECT:return`rounded-rect`;case nY.CIRCLE:return`circle`;case nY.CLOUD:return`cloud`;case nY.BANG:return`bang`;case nY.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:N(()=>P,`getLogger`),getElementById:N(e=>eY[e],`getElementById`)},XCt={draw:N(async(e,t,n,r)=>{P.debug(`Rendering kanban diagram -`+e);let i=r.db.getData(),a=As();a.htmlLabels=!1;let o=Op(t);for(let e of i.nodes)e.domId=`${t}-${e.id}`;let s=o.append(`g`);s.attr(`class`,`sections`);let l=o.append(`g`);l.attr(`class`,`items`);let u=i.nodes.filter(e=>e.isGroup),d=0,f=[],p=25;for(let e of u){let t=a?.kanban?.sectionWidth||200;d+=1,e.x=t*d+(d-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+d;let n=await q_(s,e);p=Math.max(p,n?.labelBBox?.height),f.push(n)}let m=0;for(let e of u){let t=f[m];m+=1;let n=a?.kanban?.sectionWidth||200,r=-n*3/2+p,o=r,s=i.nodes.filter(t=>t.parentId===e.id);for(let t of s){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-15;let r=(await L_(l,t,{config:a})).node().getBBox();t.y=o+r.height/2,await B_(t),o=t.y+r.height/2+5}let u=t.cluster.select(`rect`),d=Math.max(o-r+30,50)+(p-25);u.attr(`height`,d)}vs(void 0,o,a.mindmap?.padding??Wo.kanban.padding,a.mindmap?.useMaxWidth??Wo.kanban.useMaxWidth)},`draw`)},ZCt=N(e=>{let t=``;for(let t=0;te.darkMode?Sr(t,n):xr(t,n),`adjuster`);for(let r=0;r{switch(P.debug(`In get type`,e,t),e){case`[`:return sY.RECT;case`(`:return t===`)`?sY.ROUNDED_RECT:sY.CLOUD;case`((`:return sY.CIRCLE;case`)`:return sY.CLOUD;case`))`:return sY.BANG;case`{{`:return sY.HEXAGON;default:return sY.DEFAULT}},`getType`),setElementForId:N((e,t)=>{UCt[e]=t},`setElementForId`),decorateNode:N(e=>{if(!e)return;let t=bs(),n=aY[aY.length-1];e.icon&&(n.icon=ns(e.icon,t)),e.class&&(n.cssClasses=ns(e.class,t))},`decorateNode`),type2Str:N(e=>{switch(e){case sY.DEFAULT:return`no-border`;case sY.RECT:return`rect`;case sY.ROUNDED_RECT:return`rounded-rect`;case sY.CIRCLE:return`circle`;case sY.CLOUD:return`cloud`;case sY.BANG:return`bang`;case sY.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:N(()=>P,`getLogger`),getElementById:N(e=>UCt[e],`getElementById`)},XCt={draw:N(async(e,t,n,r)=>{P.debug(`Rendering kanban diagram +`+e);let i=r.db.getData(),a=bs();a.htmlLabels=!1;let o=Op(t);for(let e of i.nodes)e.domId=`${t}-${e.id}`;let s=o.append(`g`);s.attr(`class`,`sections`);let l=o.append(`g`);l.attr(`class`,`items`);let u=i.nodes.filter(e=>e.isGroup),d=0,f=[],p=25;for(let e of u){let t=a?.kanban?.sectionWidth||200;d+=1,e.x=t*d+(d-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+d;let n=await Z_(s,e);p=Math.max(p,n?.labelBBox?.height),f.push(n)}let m=0;for(let e of u){let t=f[m];m+=1;let n=a?.kanban?.sectionWidth||200,r=-n*3/2+p,o=r,s=i.nodes.filter(t=>t.parentId===e.id);for(let t of s){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-15;let r=(await B_(l,t,{config:a})).node().getBBox();t.y=o+r.height/2,await W_(t),o=t.y+r.height/2+5}let u=t.cluster.select(`rect`),d=Math.max(o-r+30,50)+(p-25);u.attr(`height`,d)}us(void 0,o,a.mindmap?.padding??Fo.kanban.padding,a.mindmap?.useMaxWidth??Fo.kanban.useMaxWidth)},`draw`)},ZCt=N(e=>{let t=``;for(let t=0;te.darkMode?_r(t,n):gr(t,n),`adjuster`);for(let r=0;r` + `}return t},`genSections`),QCt={db:YCt,renderer:XCt,parser:VCt,styles:N(e=>` .edge { stroke-width: 3; } @@ -3294,15 +3296,15 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l dominant-baseline: middle; text-align: center; } - ${JN()} -`,`getStyles`)}}));function ewt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var twt=o((()=>{}));function nwt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var rwt=o((()=>{}));function iwt(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var awt=o((()=>{})),rY=o((()=>{twt(),rwt(),awt()}));function owt(e){return e.target.depth}function swt(e){return e.depth}function cwt(e,t){return t-1-e.height}function lwt(e,t){return e.sourceLinks.length?e.depth:t-1}function uwt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?nwt(e.sourceLinks,owt)-1:0}var dwt=o((()=>{rY()}));function iY(e){return function(){return e}}var fwt=o((()=>{}));function pwt(e,t){return aY(e.source,t.source)||e.index-t.index}function mwt(e,t){return aY(e.target,t.target)||e.index-t.index}function aY(e,t){return e.y0-t.y0}function hwt(e){return e.value}function gwt(e){return e.index}function _wt(e){return e.nodes}function vwt(e){return e.links}function ywt(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function bwt({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function xwt(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=gwt,l=lwt,u,d,f=_wt,p=vwt,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),bwt(e),e}h.update=function(e){return bwt(e),e},h.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:iY(e),h):s},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:iY(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(i=+e,h):i},h.nodePadding=function(e){return arguments.length?(a=o=+e,h):a},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:iY(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:iY(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],h):[n-e,r-t]},h.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],h):[[e,t],[n,r]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=ywt(n,t)),typeof i!=`object`&&(i=r.target=ywt(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(iwt(t.sourceLinks,hwt),iwt(t.targetLinks,hwt)):t.fixedValue}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function b({nodes:t}){let r=ewt(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(l.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(u)for(let e of o)e.sort(u);return o}function x(e){let n=nwt(e,e=>(r-t-(e.length-1)*o)/iwt(e,hwt));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;te.length)-1)),x(n);for(let e=0;e0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(aY),T(i,n)}}function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=j(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(aY),T(i,n)}}function T(e,n){let i=e.length>>1,a=e[i];D(e,a.y0-o,i-1,n),E(e,a.y1+o,i+1,n),D(e,r,e.length-1,n),E(e,t,0,n)}function E(e,t,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function D(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function O({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(mwt);for(let{target:{targetLinks:t}}of e)t.sort(pwt)}}function k(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(mwt),n.sort(pwt)}function A(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function j(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return h}var Swt=o((()=>{rY(),dwt(),fwt()}));function Cwt(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function wwt(){return new Cwt}var oY,sY,cY,lY,Twt=o((()=>{oY=Math.PI,sY=2*oY,cY=1e-6,lY=sY-cY,Cwt.prototype=wwt.prototype={constructor:Cwt,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(f>cY){if(!(Math.abs(d*s-l*u)>cY)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((oY-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>cY&&(this._+=`L`+(e+b*u)+`,`+(t+b*d)),this._+=`A`+i+`,`+i+`,0,0,`+ +(d*p>u*m)+`,`+(this._x1=e+x*s)+`,`+(this._y1=t+x*l)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+l+`,`+u:(Math.abs(this._x1-l)>cY||Math.abs(this._y1-u)>cY)&&(this._+=`L`+l+`,`+u),n&&(f<0&&(f=f%sY+sY),f>lY?this._+=`A`+n+`,`+n+`,0,1,`+d+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+d+`,`+(this._x1=l)+`,`+(this._y1=u):f>cY&&(this._+=`A`+n+`,`+n+`,0,`+ +(f>=oY)+`,`+d+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}}})),Ewt=o((()=>{Twt()}));function uY(e){return function(){return e}}var dY=o((()=>{}));function fY(e){return e[0]}function pY(e){return e[1]}var Dwt=o((()=>{})),Owt,kwt=o((()=>{Owt=Array.prototype.slice}));function mY(e){return e.source}function hY(e){return e.target}function gY(e){var t=mY,n=hY,r=fY,i=pY,a=null;function o(){var o,s=Owt.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||=o=wwt(),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:uY(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:uY(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function Awt(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function jwt(){return gY(Awt)}var Mwt=o((()=>{Ewt(),kwt(),dY(),Dwt()})),Nwt=o((()=>{Ewt(),dY(),Mwt(),kwt()}));function Pwt(e){return[e.source.x1,e.y0]}function Fwt(e){return[e.target.x0,e.y1]}function Iwt(){return jwt().source(Pwt).target(Fwt)}var Lwt=o((()=>{Nwt()})),Rwt=o((()=>{Swt(),dwt(),Lwt()})),zwt=l({diagram:()=>xY}),Bwt,_Y,vY,yY,bY,Vwt,Hwt,Uwt,Wwt,Gwt,Kwt,qwt,Jwt,Ywt,Xwt,Zwt,Qwt,xY,SY=o((()=>{Ls(),ar(),tr(),Dp(),Rwt(),Bwt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + ${GN()} +`,`getStyles`)}}));function ewt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var cY=o((()=>{}));function twt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var nwt=o((()=>{}));function rwt(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var iwt=o((()=>{})),awt=o((()=>{cY(),nwt(),iwt()}));function owt(e){return e.target.depth}function swt(e){return e.depth}function cwt(e,t){return t-1-e.height}function lwt(e,t){return e.sourceLinks.length?e.depth:t-1}function uwt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?twt(e.sourceLinks,owt)-1:0}var dwt=o((()=>{awt()}));function lY(e){return function(){return e}}var fwt=o((()=>{}));function pwt(e,t){return uY(e.source,t.source)||e.index-t.index}function mwt(e,t){return uY(e.target,t.target)||e.index-t.index}function uY(e,t){return e.y0-t.y0}function hwt(e){return e.value}function gwt(e){return e.index}function _wt(e){return e.nodes}function vwt(e){return e.links}function ywt(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function dY({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function fY(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=gwt,l=lwt,u,d,f=_wt,p=vwt,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),dY(e),e}h.update=function(e){return dY(e),e},h.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:lY(e),h):s},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:lY(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(i=+e,h):i},h.nodePadding=function(e){return arguments.length?(a=o=+e,h):a},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:lY(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:lY(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],h):[n-e,r-t]},h.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],h):[[e,t],[n,r]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=ywt(n,t)),typeof i!=`object`&&(i=r.target=ywt(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(rwt(t.sourceLinks,hwt),rwt(t.targetLinks,hwt)):t.fixedValue}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function b({nodes:t}){let r=ewt(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(l.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(u)for(let e of o)e.sort(u);return o}function x(e){let n=twt(e,e=>(r-t-(e.length-1)*o)/rwt(e,hwt));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;te.length)-1)),x(n);for(let e=0;e0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(uY),T(i,n)}}function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=j(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(uY),T(i,n)}}function T(e,n){let i=e.length>>1,a=e[i];D(e,a.y0-o,i-1,n),E(e,a.y1+o,i+1,n),D(e,r,e.length-1,n),E(e,t,0,n)}function E(e,t,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function D(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function O({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(mwt);for(let{target:{targetLinks:t}}of e)t.sort(pwt)}}function k(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(mwt),n.sort(pwt)}function A(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function j(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return h}var pY=o((()=>{awt(),dwt(),fwt()}));function mY(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function bwt(){return new mY}var hY,gY,_Y,vY,yY=o((()=>{hY=Math.PI,gY=2*hY,_Y=1e-6,vY=gY-_Y,mY.prototype=bwt.prototype={constructor:mY,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(f>_Y){if(!(Math.abs(d*s-l*u)>_Y)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((hY-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>_Y&&(this._+=`L`+(e+b*u)+`,`+(t+b*d)),this._+=`A`+i+`,`+i+`,0,0,`+ +(d*p>u*m)+`,`+(this._x1=e+x*s)+`,`+(this._y1=t+x*l)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+l+`,`+u:(Math.abs(this._x1-l)>_Y||Math.abs(this._y1-u)>_Y)&&(this._+=`L`+l+`,`+u),n&&(f<0&&(f=f%gY+gY),f>vY?this._+=`A`+n+`,`+n+`,0,1,`+d+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+d+`,`+(this._x1=l)+`,`+(this._y1=u):f>_Y&&(this._+=`A`+n+`,`+n+`,0,`+ +(f>=hY)+`,`+d+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}}})),xwt=o((()=>{yY()}));function Swt(e){return function(){return e}}var Cwt=o((()=>{}));function bY(e){return e[0]}function xY(e){return e[1]}var SY=o((()=>{})),wwt,Twt=o((()=>{wwt=Array.prototype.slice}));function Ewt(e){return e.source}function Dwt(e){return e.target}function Owt(e){var t=Ewt,n=Dwt,r=bY,i=xY,a=null;function o(){var o,s=wwt.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||=o=bwt(),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:Swt(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:Swt(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function kwt(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Awt(){return Owt(kwt)}var jwt=o((()=>{xwt(),Twt(),Cwt(),SY()})),Mwt=o((()=>{xwt(),Cwt(),jwt(),Twt()}));function Nwt(e){return[e.source.x1,e.y0]}function Pwt(e){return[e.target.x0,e.y1]}function Fwt(){return Awt().source(Nwt).target(Pwt)}var Iwt=o((()=>{Mwt()})),Lwt=o((()=>{pY(),dwt(),Iwt()})),Rwt=l({diagram:()=>Ywt}),zwt,CY,wY,TY,EY,Bwt,Vwt,Hwt,Uwt,Wwt,Gwt,Kwt,DY,OY,qwt,Jwt,kY,Ywt,Xwt=o((()=>{Os(),er(),Zn(),Dp(),Lwt(),zwt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};i.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function a(){this.yy={}}return N(a,`Parser`),a.prototype=i,i.Parser=a,new a})(),Bwt.parser=Bwt,_Y=Bwt,vY=[],yY=[],bY=new Map,Vwt=N(()=>{vY=[],yY=[],bY=new Map,Ss()},`clear`),Hwt=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static{N(this,`SankeyLink`)}},Uwt=N((e,t,n)=>{vY.push(new Hwt(e,t,n))},`addLink`),Wwt=class{constructor(e){this.ID=e}static{N(this,`SankeyNode`)}},Gwt={nodesMap:bY,getConfig:N(()=>As().sankey,`getConfig`),getNodes:N(()=>yY,`getNodes`),getLinks:N(()=>vY,`getLinks`),getGraph:N(()=>({nodes:yY.map(e=>({id:e.ID})),links:vY.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:Uwt,findOrCreateNode:N(e=>{e=gs.sanitizeText(e,As());let t=bY.get(e);return t===void 0&&(t=new Wwt(e),bY.set(e,t),yY.push(t)),t},`findOrCreateNode`),getAccTitle:ws,setAccTitle:Cs,getAccDescription:Es,setAccDescription:Ts,getDiagramTitle:Os,setDiagramTitle:Ds,clear:Vwt},Kwt=class e{static{N(this,`Uid`)}static{this.count=0}static next(t){return new e(t+ ++e.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},qwt={left:swt,right:cwt,center:uwt,justify:lwt},Jwt=N(e=>{let t=0,n=0;for(let r of e){let e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},`findCentralNodeLayer`),Ywt={draw:N(function(e,t,n,r){let{securityLevel:i,sankey:a}=As(),o=Ms.sankey,s;i===`sandbox`&&(s=Qc(`#i`+t));let l=Qc(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):Qc(`[id="${t}"]`),d=a?.width??o.width,f=a?.height??o.width,p=a?.useMaxWidth??o.useMaxWidth,m=a?.nodeAlignment??o.nodeAlignment,h=a?.prefix??o.prefix,g=a?.suffix??o.suffix,_=a?.showValues??o.showValues,v=a?.nodeWidth??o.nodeWidth??10,y=a?.nodePadding??o.nodePadding??12,b=a?.labelStyle??o.labelStyle??`legacy`,x=a?.nodeColors??{},S=r.db.getGraph(),C=qwt[m];xwt().nodeId(e=>e.id).nodeWidth(v).nodePadding(y+(_?15:0)).nodeAlign(C).extent([[0,0],[d,f]])(S);let w=Jwt(S.nodes),T=Od(dCe),E=N(e=>x[e]??T(e),`getNodeColor`);u.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(S.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=Kwt.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>E(e.id));let D=N(({id:e,value:t})=>_?`${e} -${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=N(e=>b===`outlined`?(e.layer??0)k.selectAll(e?`.${e}`:`text`).data(S.nodes).join(`text`).attr(`class`,e??null).attr(`x`,e=>O(e).x).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${_?`0`:`0.35`}em`).attr(`text-anchor`,e=>O(e).anchor).text(D),`appendLabel`);b===`outlined`?(A(`sankey-label-bg`),A(`sankey-label-fg`)):A();let j=u.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(S.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),M=a?.linkColor??`gradient`;if(M===`gradient`){let e=j.append(`linearGradient`).attr(`id`,e=>(e.uid=Kwt.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>E(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>E(e.target.id))}let ee;switch(M){case`gradient`:ee=N(e=>e.uid,`coloring`);break;case`source`:ee=N(e=>E(e.source.id),`coloring`);break;case`target`:ee=N(e=>E(e.target.id),`coloring`);break;default:ee=M}j.append(`path`).attr(`d`,Iwt()).attr(`stroke`,ee).attr(`stroke-width`,e=>Math.max(1,e.width)),vs(void 0,u,0,p)},`draw`)},Xwt=N(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,` -`).trim(),`prepareTextForParsing`),Zwt=N(e=>`.label { +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function a(){this.yy={}}return N(a,`Parser`),a.prototype=i,i.Parser=a,new a})(),zwt.parser=zwt,CY=zwt,wY=[],TY=[],EY=new Map,Bwt=N(()=>{wY=[],TY=[],EY=new Map,fs()},`clear`),Vwt=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static{N(this,`SankeyLink`)}},Hwt=N((e,t,n)=>{wY.push(new Vwt(e,t,n))},`addLink`),Uwt=class{constructor(e){this.ID=e}static{N(this,`SankeyNode`)}},Wwt={nodesMap:EY,getConfig:N(()=>bs().sankey,`getConfig`),getNodes:N(()=>TY,`getNodes`),getLinks:N(()=>wY,`getLinks`),getGraph:N(()=>({nodes:TY.map(e=>({id:e.ID})),links:wY.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:Hwt,findOrCreateNode:N(e=>{e=cs.sanitizeText(e,bs());let t=EY.get(e);return t===void 0&&(t=new Uwt(e),EY.set(e,t),TY.push(t)),t},`findOrCreateNode`),getAccTitle:ms,setAccTitle:ps,getAccDescription:gs,setAccDescription:hs,getDiagramTitle:vs,setDiagramTitle:_s,clear:Bwt},Gwt=class e{static{N(this,`Uid`)}static{this.count=0}static next(t){return new e(t+ ++e.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},Kwt={left:swt,right:cwt,center:uwt,justify:lwt},DY=N(e=>{let t=0,n=0;for(let r of e){let e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},`findCentralNodeLayer`),OY={draw:N(function(e,t,n,r){let{securityLevel:i,sankey:a}=bs(),o=Ss.sankey,s;i===`sandbox`&&(s=Bc(`#i`+t));let l=Bc(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):Bc(`[id="${t}"]`),d=a?.width??o.width,f=a?.height??o.width,p=a?.useMaxWidth??o.useMaxWidth,m=a?.nodeAlignment??o.nodeAlignment,h=a?.prefix??o.prefix,g=a?.suffix??o.suffix,_=a?.showValues??o.showValues,v=a?.nodeWidth??o.nodeWidth??10,y=a?.nodePadding??o.nodePadding??12,b=a?.labelStyle??o.labelStyle??`legacy`,x=a?.nodeColors??{},S=r.db.getGraph(),C=Kwt[m];fY().nodeId(e=>e.id).nodeWidth(v).nodePadding(y+(_?15:0)).nodeAlign(C).extent([[0,0],[d,f]])(S);let w=DY(S.nodes),T=yd(bCe),E=N(e=>x[e]??T(e),`getNodeColor`);u.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(S.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=Gwt.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>E(e.id));let D=N(({id:e,value:t})=>_?`${e} +${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=N(e=>b===`outlined`?(e.layer??0)k.selectAll(e?`.${e}`:`text`).data(S.nodes).join(`text`).attr(`class`,e??null).attr(`x`,e=>O(e).x).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${_?`0`:`0.35`}em`).attr(`text-anchor`,e=>O(e).anchor).text(D),`appendLabel`);b===`outlined`?(A(`sankey-label-bg`),A(`sankey-label-fg`)):A();let j=u.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(S.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),M=a?.linkColor??`gradient`;if(M===`gradient`){let e=j.append(`linearGradient`).attr(`id`,e=>(e.uid=Gwt.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>E(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>E(e.target.id))}let ee;switch(M){case`gradient`:ee=N(e=>e.uid,`coloring`);break;case`source`:ee=N(e=>E(e.source.id),`coloring`);break;case`target`:ee=N(e=>E(e.target.id),`coloring`);break;default:ee=M}j.append(`path`).attr(`d`,Fwt()).attr(`stroke`,ee).attr(`stroke-width`,e=>Math.max(1,e.width)),us(void 0,u,0,p)},`draw`)},qwt=N(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,` +`).trim(),`prepareTextForParsing`),Jwt=N(e=>`.label { font-family: ${e.fontFamily}; } @@ -3334,7 +3336,7 @@ ${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=N(e=>b===`outlined`?(e.layer??0 stroke-opacity: 0.5; mix-blend-mode: multiply; } -`,`getStyles`),Qwt=_Y.parse.bind(_Y),_Y.parse=e=>Qwt(Xwt(e)),xY={styles:Zwt,parser:_Y,db:Gwt,renderer:Ywt}})),$wt=l({diagram:()=>aTt}),eTt,CY,tTt,nTt,wY,TY,EY,DY,rTt,iTt,aTt,oTt=o((()=>{sP(),kp(),Gm(),Ls(),ar(),tr(),iW(),eTt=Wo.packet,CY=class{constructor(){this.packet=[],this.setAccTitle=Cs,this.getAccTitle=ws,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,this.getAccDescription=Es,this.setAccDescription=Ts}static{N(this,`PacketDB`)}getConfig(){let e=Rm({...eTt,...ns().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){Ss(),this.packet=[]}},tTt=1e4,nTt=N((e,t)=>{oP(e,t);let n=-1,r=[],i=1,{bitsPerRow:a}=t.getConfig();for(let{start:o,end:s,bits:l,label:u}of e.blocks){if(o!==void 0&&s!==void 0&&s{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),TY={parser:{yy:void 0},parse:N(async e=>{let t=await eW(`packet`,e),n=TY.parser?.yy;if(!(n instanceof CY))throw 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.`);P.debug(t),nTt(t,n)},`parse`)},EY=N((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),p=o+s,m=p*(d.length+1)-(f?0:o),h=l*u+2,g=Op(t);g.attr(`viewBox`,`0 0 ${h} ${m}`),_s(g,m,h,a.useMaxWidth);for(let[e,t]of d.entries())DY(g,t,e,a);g.append(`text`).text(f).attr(`x`,h/2).attr(`y`,m-p/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),DY=N((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:l,bitOrder:u})=>{let d=e.append(`g`),f=n*(r+a)+a,p=u===`descending`;for(let e of t){let t=e.end-e.start+1,n=e.start%s,a=(p?s-n-t:n)*o+1,u=t*o-i;if(d.append(`rect`).attr(`x`,a).attr(`y`,f).attr(`width`,u).attr(`height`,r).attr(`class`,`packetBlock`),d.append(`text`).attr(`x`,a+u/2).attr(`y`,f+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!l)continue;let[m,h]=p?[e.end,e.start]:[e.start,e.end],g=t===1,_=f-2;d.append(`text`).attr(`x`,a+(g?u/2:0)).attr(`y`,_).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,g?`middle`:`start`).text(m),g||d.append(`text`).attr(`x`,a+u).attr(`y`,_).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(h)}},`drawWord`),rTt={draw:EY},iTt={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},aTt={parser:TY,get db(){return new CY},renderer:rTt,styles:N(({packet:e}={})=>{let t=Rm(iTt,e);return` +`,`getStyles`),kY=CY.parse.bind(CY),CY.parse=e=>kY(qwt(e)),Ywt={styles:Jwt,parser:CY,db:Wwt,renderer:OY}})),AY=l({diagram:()=>nTt}),jY,MY,NY,Zwt,Qwt,$wt,eTt,PY,tTt,FY,nTt,rTt=o((()=>{sP(),kp(),qm(),Os(),er(),Zn(),nW(),jY=Fo.packet,MY=class{constructor(){this.packet=[],this.setAccTitle=ps,this.getAccTitle=ms,this.setDiagramTitle=_s,this.getDiagramTitle=vs,this.getAccDescription=gs,this.setAccDescription=hs}static{N(this,`PacketDB`)}getConfig(){let e=Bm({...jY,...Xo().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){fs(),this.packet=[]}},NY=1e4,Zwt=N((e,t)=>{oP(e,t);let n=-1,r=[],i=1,{bitsPerRow:a}=t.getConfig();for(let{start:o,end:s,bits:l,label:u}of e.blocks){if(o!==void 0&&s!==void 0&&s{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),$wt={parser:{yy:void 0},parse:N(async e=>{let t=await QU(`packet`,e),n=$wt.parser?.yy;if(!(n instanceof MY))throw 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.`);P.debug(t),Zwt(t,n)},`parse`)},eTt=N((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),p=o+s,m=p*(d.length+1)-(f?0:o),h=l*u+2,g=Op(t);g.attr(`viewBox`,`0 0 ${h} ${m}`),ls(g,m,h,a.useMaxWidth);for(let[e,t]of d.entries())PY(g,t,e,a);g.append(`text`).text(f).attr(`x`,h/2).attr(`y`,m-p/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),PY=N((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:l,bitOrder:u})=>{let d=e.append(`g`),f=n*(r+a)+a,p=u===`descending`;for(let e of t){let t=e.end-e.start+1,n=e.start%s,a=(p?s-n-t:n)*o+1,u=t*o-i;if(d.append(`rect`).attr(`x`,a).attr(`y`,f).attr(`width`,u).attr(`height`,r).attr(`class`,`packetBlock`),d.append(`text`).attr(`x`,a+u/2).attr(`y`,f+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!l)continue;let[m,h]=p?[e.end,e.start]:[e.start,e.end],g=t===1,_=f-2;d.append(`text`).attr(`x`,a+(g?u/2:0)).attr(`y`,_).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,g?`middle`:`start`).text(m),g||d.append(`text`).attr(`x`,a+u).attr(`y`,_).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(h)}},`drawWord`),tTt={draw:eTt},FY={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},nTt={parser:$wt,get db(){return new MY},renderer:tTt,styles:N(({packet:e}={})=>{let t=Bm(FY,e);return` .packetByte { font-size: ${t.byteFontSize}; } @@ -3357,7 +3359,7 @@ ${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=N(e=>b===`outlined`?(e.layer??0 stroke-width: ${t.blockStrokeWidth}; fill: ${t.blockFillColor}; } - `},`styles`)}})),OY=l({diagram:()=>TTt});function sTt(e,t,n,r,i,a,o){let s=t.length,l=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let u=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=kY(e,r,i,l);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,cTt(u,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,u.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}function kY(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}function cTt(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}var jY,MY,NY,PY,lTt,uTt,dTt,fTt,pTt,mTt,hTt,gTt,FY,_Tt,vTt,yTt,bTt,IY,xTt,STt,CTt,wTt,TTt,ETt=o((()=>{sP(),kp(),Gm(),Ls(),ar(),tr(),iW(),jY={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},MY=32,NY={axes:[],curves:[],options:jY},PY=structuredClone(NY),lTt=Wo.radar,uTt=N(()=>Rm({...lTt,...ns().radar}),`getConfig`),dTt=N(()=>PY.axes,`getAxes`),fTt=N(()=>PY.curves,`getCurves`),pTt=N(()=>PY.options,`getOptions`),mTt=N(e=>{PY.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),hTt=N(e=>{PY.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:gTt(e.entries)}))},`setCurves`),gTt=N(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=dTt();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),FY={getAxes:dTt,getCurves:fTt,getOptions:pTt,setAxes:mTt,setCurves:hTt,setOptions:N(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});PY.options={showLegend:t.showLegend?.value??jY.showLegend,ticks:t.ticks?.value??jY.ticks,max:t.max?.value??jY.max,min:t.min?.value??jY.min,graticule:t.graticule?.value??jY.graticule},PY.options.ticks>MY&&(P.warn(`Radar diagram ticks (${PY.options.ticks}) exceeds maximum allowed (${MY}). Using ${MY} instead.`),PY.options.ticks=MY)},`setOptions`),getConfig:uTt,clear:N(()=>{Ss(),PY=structuredClone(NY)},`clear`),setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,getAccDescription:Es,setAccDescription:Ts},_Tt=N(e=>{oP(e,FY);let{axes:t,curves:n,options:r}=e;FY.setAxes(t),FY.setCurves(n),FY.setOptions(r)},`populate`),vTt={parse:N(async e=>{let t=await eW(`radar`,e);P.debug(t),_Tt(t)},`parse`)},yTt=N((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=bTt(Op(t),l),f=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),p=s.min,m=Math.min(l.width,l.height)/2;IY(d,a,m,s.ticks,s.graticule),xTt(d,a,m,l),sTt(d,a,o,p,f,s.graticule,l),AY(d,o,s.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),bTt=N((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return _s(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`).attr(`overflow`,`visible`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),IY=N((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),xTt=N((e,t,n,r)=>{let i=t.length;for(let a=0;a.01?`start`:l<-.01?`end`:`middle`,f=u>.01?`hanging`:u<-.01?`auto`:`central`;e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*l+4*l).attr(`y`,n*r.axisLabelFactor*u+4*u).attr(`text-anchor`,d).attr(`dominant-baseline`,f).attr(`class`,`radarAxisLabel`)}},`drawAxes`),N(sTt,`drawCurves`),N(kY,`relativeRadius`),N(cTt,`closedRoundCurve`),N(AY,`drawLegend`),STt={draw:yTt},CTt=N((e,t)=>{let n=``;for(let r=0;rUY});function LY(e,t,n,r,i,a,o){let s=t.length,l=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let u=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=RY(e,r,i,l);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,iTt(u,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,u.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}function RY(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}function iTt(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}var zY,BY,oTt,VY,sTt,cTt,lTt,uTt,dTt,fTt,pTt,mTt,HY,hTt,gTt,_Tt,vTt,yTt,bTt,xTt,STt,CTt,UY,wTt=o((()=>{sP(),kp(),qm(),Os(),er(),Zn(),nW(),zY={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},BY=32,oTt={axes:[],curves:[],options:zY},VY=structuredClone(oTt),sTt=Fo.radar,cTt=N(()=>Bm({...sTt,...Xo().radar}),`getConfig`),lTt=N(()=>VY.axes,`getAxes`),uTt=N(()=>VY.curves,`getCurves`),dTt=N(()=>VY.options,`getOptions`),fTt=N(e=>{VY.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),pTt=N(e=>{VY.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:mTt(e.entries)}))},`setCurves`),mTt=N(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=lTt();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),HY={getAxes:lTt,getCurves:uTt,getOptions:dTt,setAxes:fTt,setCurves:pTt,setOptions:N(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});VY.options={showLegend:t.showLegend?.value??zY.showLegend,ticks:t.ticks?.value??zY.ticks,max:t.max?.value??zY.max,min:t.min?.value??zY.min,graticule:t.graticule?.value??zY.graticule},VY.options.ticks>BY&&(P.warn(`Radar diagram ticks (${VY.options.ticks}) exceeds maximum allowed (${BY}). Using ${BY} instead.`),VY.options.ticks=BY)},`setOptions`),getConfig:cTt,clear:N(()=>{fs(),VY=structuredClone(oTt)},`clear`),setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,getAccDescription:gs,setAccDescription:hs},hTt=N(e=>{oP(e,HY);let{axes:t,curves:n,options:r}=e;HY.setAxes(t),HY.setCurves(n),HY.setOptions(r)},`populate`),gTt={parse:N(async e=>{let t=await QU(`radar`,e);P.debug(t),hTt(t)},`parse`)},_Tt=N((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=vTt(Op(t),l),f=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),p=s.min,m=Math.min(l.width,l.height)/2;yTt(d,a,m,s.ticks,s.graticule),bTt(d,a,m,l),LY(d,a,o,p,f,s.graticule,l),aTt(d,o,s.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),vTt=N((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return ls(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`).attr(`overflow`,`visible`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),yTt=N((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),bTt=N((e,t,n,r)=>{let i=t.length;for(let a=0;a.01?`start`:l<-.01?`end`:`middle`,f=u>.01?`hanging`:u<-.01?`auto`:`central`;e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*l+4*l).attr(`y`,n*r.axisLabelFactor*u+4*u).attr(`text-anchor`,d).attr(`dominant-baseline`,f).attr(`class`,`radarAxisLabel`)}},`drawAxes`),N(LY,`drawCurves`),N(RY,`relativeRadius`),N(iTt,`closedRoundCurve`),N(aTt,`drawLegend`),xTt={draw:_Tt},STt=N((e,t)=>{let n=``;for(let r=0;rb===`outlined`?(e.layer??0 fill-opacity: ${t.curveOpacity}; stroke: ${i}; } - `}return n},`genIndexStyles`),wTt=N(e=>{let t=Rm(No(),ns().themeVariables);return{themeVariables:t,radarOptions:Rm(t.radar,e)}},`buildRadarStyleOptions`),TTt={parser:vTt,db:FY,renderer:STt,styles:N(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=wTt(e);return` + `}return n},`genIndexStyles`),CTt=N(e=>{let t=Bm(wo(),Xo().themeVariables);return{themeVariables:t,radarOptions:Bm(t.radar,e)}},`buildRadarStyleOptions`),UY={parser:gTt,db:HY,renderer:xTt,styles:N(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=CTt(e);return` .radarTitle { font-size: ${t.fontSize}; color: ${t.titleColor}; @@ -3396,19 +3398,19 @@ ${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=N(e=>b===`outlined`?(e.layer??0 font-size: ${n.legendFontSize}px; dominant-baseline: hanging; } - ${CTt(t,n)} - `},`styles`)}})),DTt=l({diagram:()=>YY});function OTt(e){switch(P.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return P.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`}}function kTt(e){switch(P.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}function LY(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}function ATt(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}function jTt(e){return e.includes(`==`)?`thick`:`normal`}function MTt(e){return e.includes(`.-`)?`dotted`:`solid`}function NTt(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function PTt(e,t,n=0,r=0,i=8){P.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,n),e?.size?.width||(e.size={width:n,height:r,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)PTt(n,t,0,0,i);let s=JY(e);a=s.width,o=s.height,P.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(P.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,P.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)PTt(n,t,a,o,i);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l0?Math.min(e.children.length,l):e.children.length;if(t>0){let n=(p-t*i-i)/t;P.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,n);for(let t of e.children)t.size&&(t.size.width=n)}}e.size={width:p,height:m,x:0,y:0}}P.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function FTt(e,t,n=8){P.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(P.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*n;P.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=NTt(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let r of t)s.set(r,e),e+=(o.get(r)??0)+n}let l=0;P.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,d=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:f,height:p}=i.size,{px:m,py:h}=NTt(r,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,P.debug(`New row in layout for block`,e.id,` and child `,i.id,d)),P.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${l} (px, py) ${m},${h} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${f}${n}`),a.size){let e=f/2;i.size.x=u+n+e,P.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${u} new startingPosX${i.size.x} ${e} padding=${n} width=${f} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(i?.widthInColumns??1)/2}`),u=i.size.x+e;let t=s.get(h)??0,r=o.get(h)??p;i.size.y=a.size.y-a.size.height/2+t+r/2+n,P.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${u}${n}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${f*(i?.widthInColumns??1)/2}`)}i.children&&FTt(i,t,n);let g=i?.widthInColumns??1;r>0&&(g=Math.min(g,r-l%r)),l+=g,P.debug(`abc88 columnsPos`,i,l)}}P.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function ITt(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:l}=e.size;a-s/2r&&(r=a+s/2),o+l/2>i&&(i=o+l/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=ITt(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}function LTt(e){let t=e.getBlock(`root`);if(!t)return;let n=As()?.block?.padding??8;PTt(t,e,0,0,n),FTt(t,e,n),P.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=ITt(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}function RTt(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=(r?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,s=`rect`,l;switch(r.type){case`round`:o=5,s=`rect`;break;case`composite`:o=0,s=`composite`,l=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`}let u=KDe(r?.styles??[]),d=r.label,f=r.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:u.labelStyle,shape:s,label:d,labelText:d,rx:o,ry:o,class:i,cssClasses:i,cssStyles:r?.styles??[],cssCompiledStyles:a,style:u.style,id:r.id,domId:p?`${p}-${r.id}`:r.id,isGroup:!1,directions:r.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||1/0,x:f.x,y:f.y,positioned:n,intersect:void 0,padding:l??ns()?.block?.padding??0,widthInColumns:r.widthInColumns??1,colorIndex:r.colorIndex,look:ns().look}}async function zTt(e,t,n){let r=RTt(t,n,!1);if(t.type===`group`)return;let i=await L_(e,r,{config:ns()}),a=i.node()?.getBBox()??{width:0,height:0},o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}async function RY(e,t,n){let r=RTt(t,n,!0);if(n.getBlock(r.id).type!==`space`){let n=ns(),i=await L_(e,r,{config:n});r.colorIndex!==void 0&&Fh(i,r.colorIndex,n.theme,n.themeVariables?.borderColorArray),t.intersect=r?.intersect,B_(r)}}async function zY(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await zY(e,i.children,n,r)}async function BTt(e,t,n){await zY(e,t,n,zTt)}async function VTt(e,t,n){await zY(e,t,n,RY)}async function HTt(e,t,n,r,i){let a=new wS({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,l=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],u=i?`${i}-${n.id}`:n.id,d=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;dv(e,{...n,id:u,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d},{},`block`,a.node(n.start),a.node(n.end),i),n.label&&(await ov(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d}),uNe({...n,x:l[1].x,y:l[1].y},{originalPath:l}))}}}var BY,VY,HY,UTt,WTt,GTt,KTt,qTt,JTt,UY,WY,YTt,GY,XTt,ZTt,QTt,$Tt,eEt,KY,tEt,nEt,rEt,iEt,qY,aEt,JY,YY,XY=o((()=>{YN(),LTe(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),zDe(),Tr(),Dp(),TS(),BY=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),l=r.edgeStrToThickness(a[s-1].edgeTypeStr),u=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:l,pattern:u,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let d=r.generateId();this.$={id:d,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + ${STt(t,n)} + `},`styles`)}})),TTt=l({diagram:()=>nEt});function ETt(e){switch(P.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return P.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`}}function DTt(e){switch(P.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}function OTt(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}function kTt(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}function ATt(e){return e.includes(`==`)?`thick`:`normal`}function jTt(e){return e.includes(`.-`)?`dotted`:`solid`}function MTt(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function WY(e,t,n=0,r=0,i=8){P.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,n),e?.size?.width||(e.size={width:n,height:r,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)WY(n,t,0,0,i);let s=tEt(e);a=s.width,o=s.height,P.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(P.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,P.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)WY(n,t,a,o,i);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l0?Math.min(e.children.length,l):e.children.length;if(t>0){let n=(p-t*i-i)/t;P.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,n);for(let t of e.children)t.size&&(t.size.width=n)}}e.size={width:p,height:m,x:0,y:0}}P.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function GY(e,t,n=8){P.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(P.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*n;P.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=MTt(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let r of t)s.set(r,e),e+=(o.get(r)??0)+n}let l=0;P.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,d=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:f,height:p}=i.size,{px:m,py:h}=MTt(r,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,P.debug(`New row in layout for block`,e.id,` and child `,i.id,d)),P.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${l} (px, py) ${m},${h} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${f}${n}`),a.size){let e=f/2;i.size.x=u+n+e,P.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${u} new startingPosX${i.size.x} ${e} padding=${n} width=${f} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(i?.widthInColumns??1)/2}`),u=i.size.x+e;let t=s.get(h)??0,r=o.get(h)??p;i.size.y=a.size.y-a.size.height/2+t+r/2+n,P.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${u}${n}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${f*(i?.widthInColumns??1)/2}`)}i.children&&GY(i,t,n);let g=i?.widthInColumns??1;r>0&&(g=Math.min(g,r-l%r)),l+=g,P.debug(`abc88 columnsPos`,i,l)}}P.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function NTt(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:l}=e.size;a-s/2r&&(r=a+s/2),o+l/2>i&&(i=o+l/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=NTt(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}function PTt(e){let t=e.getBlock(`root`);if(!t)return;let n=bs()?.block?.padding??8;WY(t,e,0,0,n),GY(t,e,n),P.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=NTt(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}function FTt(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=(r?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,s=`rect`,l;switch(r.type){case`round`:o=5,s=`rect`;break;case`composite`:o=0,s=`composite`,l=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`}let u=YDe(r?.styles??[]),d=r.label,f=r.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:u.labelStyle,shape:s,label:d,labelText:d,rx:o,ry:o,class:i,cssClasses:i,cssStyles:r?.styles??[],cssCompiledStyles:a,style:u.style,id:r.id,domId:p?`${p}-${r.id}`:r.id,isGroup:!1,directions:r.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||1/0,x:f.x,y:f.y,positioned:n,intersect:void 0,padding:l??Xo()?.block?.padding??0,widthInColumns:r.widthInColumns??1,colorIndex:r.colorIndex,look:Xo().look}}async function ITt(e,t,n){let r=FTt(t,n,!1);if(t.type===`group`)return;let i=await B_(e,r,{config:Xo()}),a=i.node()?.getBBox()??{width:0,height:0},o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}async function LTt(e,t,n){let r=FTt(t,n,!0);if(n.getBlock(r.id).type!==`space`){let n=Xo(),i=await B_(e,r,{config:n});r.colorIndex!==void 0&&Kh(i,r.colorIndex,n.theme,n.themeVariables?.borderColorArray),t.intersect=r?.intersect,W_(r)}}async function KY(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await KY(e,i.children,n,r)}async function RTt(e,t,n){await KY(e,t,n,ITt)}async function zTt(e,t,n){await KY(e,t,n,LTt)}async function BTt(e,t,n,r,i){let a=new bS({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,l=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],u=i?`${i}-${n.id}`:n.id,d=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;gv(e,{...n,id:u,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d},{},`block`,a.node(n.start),a.node(n.end),i),n.label&&(await dv(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d}),pv({...n,x:l[1].x,y:l[1].y},{originalPath:l}))}}}var VTt,HTt,qY,UTt,JY,WTt,GTt,YY,KTt,XY,ZY,qTt,JTt,QY,YTt,XTt,ZTt,QTt,$Y,$Tt,eX,tX,nX,rX,eEt,tEt,nEt,rEt=o((()=>{KN(),zTe(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),HDe(),br(),Dp(),xS(),VTt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),l=r.edgeStrToThickness(a[s-1].edgeTypeStr),u=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:l,pattern:u,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let d=r.generateId();this.$={id:d,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.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:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.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(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.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 e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.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:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.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}}}})();function v(){this.yy={}}return N(v,`Parser`),v.prototype=_,_.Parser=v,new v})(),BY.parser=BY,VY=BY,HY=new Map,UTt=[],WTt=new Map,GTt=`color`,KTt=`fill`,qTt=`bgFill`,JTt=`,`,UY=new Map,WY=``,YTt=N(e=>gs.sanitizeText(e,As()),`sanitizeText`),GY=N(function(e,t=``){let n=UY.get(e);n||(n={id:e,styles:[],textStyles:[]},UY.set(e,n)),t?.split(JTt).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(GTt).exec(e)){let e=t.replace(KTt,qTt).replace(GTt,KTt);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),XTt=N(function(e,t=``){let n=HY.get(e);t!=null&&(n.styles=t.split(JTt))},`addStyle2Node`),ZTt=N(function(e,t){e.split(`,`).forEach(function(e){let n=HY.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},HY.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),QTt=0,$Tt=N((e,t)=>{let n=e.flat(),r=[],i=n.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of n){if(typeof i==`number`&&i>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>i&&P.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${i}`),e.label&&=YTt(e.label),e.type===`classDef`){GY(e.id,e.css);continue}if(e.type===`applyClass`){ZTt(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&XTt(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(WTt.get(e.id)??0)+1;WTt.set(e.id,t),e.id=t+`-`+e.id,UTt.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=HY.get(e.id);if(t===void 0?(e.type===`composite`&&(e.colorIndex=QTt++),HY.set(e.id,e)):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&$Tt(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n{P.debug(`Clear called`),Ss(),KY={id:`root`,type:`composite`,children:[],columns:-1},HY=new Map([[`root`,KY]]),eEt=[],UY=new Map,UTt=[],WTt=new Map,WY=``,QTt=0},`clear`),N(OTt,`typeStr2Type`),N(kTt,`edgeTypeStr2Type`),N(LY,`edgeStrToEdgeData`),N(ATt,`edgeStrToEdgeStartData`),N(jTt,`edgeStrToThickness`),N(MTt,`edgeStrToPattern`),nEt=0,rEt={getConfig:N(()=>ns().block,`getConfig`),typeStr2Type:OTt,edgeTypeStr2Type:kTt,edgeStrToEdgeData:LY,edgeStrToEdgeStartData:ATt,edgeStrToThickness:jTt,edgeStrToPattern:MTt,getLogger:N(()=>P,`getLogger`),getBlocksFlat:N(()=>[...HY.values()],`getBlocksFlat`),getBlocks:N(()=>eEt||[],`getBlocks`),getEdges:N(()=>UTt,`getEdges`),setHierarchy:N(e=>{KY.children=e,$Tt(e,KY),eEt=KY.children},`setHierarchy`),getBlock:N(e=>HY.get(e),`getBlock`),setBlock:N(e=>{HY.set(e.id,e)},`setBlock`),getColumns:N(e=>{let t=HY.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:N(function(){return UY},`getClasses`),clear:tEt,generateId:N(()=>(nEt++,`id-`+Math.random().toString(36).substr(2,12)+`-`+nEt),`generateId`),setDiagramId:N(e=>{WY=e},`setDiagramId`),getDiagramId:N(()=>WY,`getDiagramId`)},iEt=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=Mh(e.look),a=Ah(n),o=``;for(let t=0;t0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:N(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.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:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.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(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.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 e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.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:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.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}}}})();function v(){this.yy={}}return N(v,`Parser`),v.prototype=_,_.Parser=v,new v})(),VTt.parser=VTt,HTt=VTt,qY=new Map,UTt=[],JY=new Map,WTt=`color`,GTt=`fill`,YY=`bgFill`,KTt=`,`,XY=new Map,ZY=``,qTt=N(e=>cs.sanitizeText(e,bs()),`sanitizeText`),JTt=N(function(e,t=``){let n=XY.get(e);n||(n={id:e,styles:[],textStyles:[]},XY.set(e,n)),t?.split(KTt).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(WTt).exec(e)){let e=t.replace(GTt,YY).replace(WTt,GTt);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),QY=N(function(e,t=``){let n=qY.get(e);t!=null&&(n.styles=t.split(KTt))},`addStyle2Node`),YTt=N(function(e,t){e.split(`,`).forEach(function(e){let n=qY.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},qY.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),XTt=0,ZTt=N((e,t)=>{let n=e.flat(),r=[],i=n.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of n){if(typeof i==`number`&&i>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>i&&P.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${i}`),e.label&&=qTt(e.label),e.type===`classDef`){JTt(e.id,e.css);continue}if(e.type===`applyClass`){YTt(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&QY(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(JY.get(e.id)??0)+1;JY.set(e.id,t),e.id=t+`-`+e.id,UTt.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=qY.get(e.id);if(t===void 0?(e.type===`composite`&&(e.colorIndex=XTt++),qY.set(e.id,e)):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&ZTt(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n{P.debug(`Clear called`),fs(),$Y={id:`root`,type:`composite`,children:[],columns:-1},qY=new Map([[`root`,$Y]]),QTt=[],XY=new Map,UTt=[],JY=new Map,ZY=``,XTt=0},`clear`),N(ETt,`typeStr2Type`),N(DTt,`edgeTypeStr2Type`),N(OTt,`edgeStrToEdgeData`),N(kTt,`edgeStrToEdgeStartData`),N(ATt,`edgeStrToThickness`),N(jTt,`edgeStrToPattern`),eX=0,tX={getConfig:N(()=>Xo().block,`getConfig`),typeStr2Type:ETt,edgeTypeStr2Type:DTt,edgeStrToEdgeData:OTt,edgeStrToEdgeStartData:kTt,edgeStrToThickness:ATt,edgeStrToPattern:jTt,getLogger:N(()=>P,`getLogger`),getBlocksFlat:N(()=>[...qY.values()],`getBlocksFlat`),getBlocks:N(()=>QTt||[],`getBlocks`),getEdges:N(()=>UTt,`getEdges`),setHierarchy:N(e=>{$Y.children=e,ZTt(e,$Y),QTt=$Y.children},`setHierarchy`),getBlock:N(e=>qY.get(e),`getBlock`),setBlock:N(e=>{qY.set(e.id,e)},`setBlock`),getColumns:N(e=>{let t=qY.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:N(function(){return XY},`getClasses`),clear:$Tt,generateId:N(()=>(eX++,`id-`+Math.random().toString(36).substr(2,12)+`-`+eX),`generateId`),setDiagramId:N(e=>{ZY=e},`setDiagramId`),getDiagramId:N(()=>ZY,`getDiagramId`)},nX=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Uh(e.look),a=Vh(n),o=``;for(let t=0;t{let n=yr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return vr(r,i,a,t)},`fade`),aEt=N(e=>`${iEt(e)} +`}return o},`genColor`),rX=N((e,t)=>{let n=mr,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return pr(r,i,a,t)},`fade`),eEt=N(e=>`${nX(e)} .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; @@ -3498,9 +3500,9 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l } .node .cluster { - // fill: ${qY(e.mainBkg,.5)}; - fill: ${qY(e.clusterBkg,.5)}; - stroke: ${qY(e.clusterBorder,.2)}; + // fill: ${rX(e.mainBkg,.5)}; + fill: ${rX(e.clusterBkg,.5)}; + stroke: ${rX(e.clusterBorder,.2)}; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; stroke-width: 1px; } @@ -3535,11 +3537,11 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l font-size: 18px; fill: ${e.textColor}; } - ${JN()} -`,`getStyles`),N(NTt,`calculateBlockPosition`),JY=N(e=>{let t=0,n=0;for(let r of e.children){let{width:e,height:i,x:a,y:o}=r.size??{width:0,height:0,x:0,y:0};if(P.debug(`getMaxChildSize abc95 child:`,r.id,`width:`,e,`height:`,i,`x:`,a,`y:`,o,r.type),r.type===`space`)continue;let s=e/(r.widthInColumns??1);s>t&&(t=s),i>n&&(n=i)}return{width:t,height:n}},`getMaxChildSize`),N(PTt,`setBlockSizes`),N(FTt,`layoutBlocks`),N(ITt,`findBounds`),N(LTt,`layout`),N(RTt,`getNodeFromBlock`),N(zTt,`calculateBlockSize`),N(RY,`insertBlockPositioned`),N(zY,`performOperations`),N(BTt,`calculateBlockSizes`),N(VTt,`insertBlocks`),N(HTt,`insertEdges`),YY={parser:VY,db:rEt,renderer:{draw:N(async function(e,t,n,r){let{securityLevel:i,block:a}=ns(),o=r.db;o.setDiagramId(t);let s;i===`sandbox`&&(s=Qc(`#i`+t));let l=Qc(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):Qc(`[id="${t}"]`);ITe(u,ns()),gNe(u,[`point`,`circle`,`cross`],r.type,t);let d=o.getBlocks(),f=o.getBlocksFlat(),p=o.getEdges(),m=u.insert(`g`).attr(`class`,`block`);await BTt(m,d,o);let h=LTt(o);await VTt(m,d,o),await HTt(m,p,f,o,t);let g=m.node()?.getBBox(),_=g&&Number.isFinite(g.width)&&Number.isFinite(g.height)?g:h;if(_){let e=Math.max(1,Math.round(.125*(_.width/_.height))),t=_.height+e+10,n=_.width+10,{useMaxWidth:r}=a;_s(u,t,n,!!r),P.debug(`Here Bounds`,h,_),u.attr(`viewBox`,`${_.x-5} ${_.y-5} ${_.width+10} ${_.height+10}`)}},`draw`),getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`)},styles:aEt}})),oEt=l({diagram:()=>AEt});function sEt(e){return e.some(e=>pEt.test(e))}function cEt(e){for(let t of e){let e=mEt.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function lEt(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}function uEt(e){let t=e.split(` -`),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}function fEt(e,t){return e.includes(`:`)?e:e in eX.icons||!t?`${eX.prefix}:${e}`:`${t}:${e}`}function ZY(e,t){if(e.icon!==`none`){if(e.icon)return fEt(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=dEt(e.name,t);if(n===`none`)return;if(n)return fEt(n,t.defaultIconPack)}return`${eX.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}var pEt,mEt,hEt,gEt,_Et,vEt,yEt,QY,bEt,xEt,SEt,CEt,$Y,wEt,TEt,eX,EEt,DEt,OEt,tX,nX,rX,iX,aX,kEt,AEt,jEt=o((()=>{u9e(),sP(),kp(),_m(),Gm(),Ls(),ar(),tr(),iW(),pEt=/[─━│┃└┗├┣]/,mEt=/[└┗├┣]/,hEt=/[─━]/,gEt=/^[\s│┃]+$/,_Et=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,vEt=/^\s*%%/,yEt=` `,N(sEt,`isBoxDrawingFormat`),N(cEt,`inferSegmentWidth`),N(lEt,`remapErrorLines`),N(uEt,`preprocessBoxDrawing`),QY=new l9e(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),bEt=N(()=>{QY.reset(),Ss()},`clear`),xEt=N(()=>QY.records.stack[0],`getRoot`),SEt=N(()=>QY.records.cnt,`getCount`),CEt=Wo.treeView,$Y={clear:bEt,addNode:N((e,t,n,r,i,a)=>{for(;e<=QY.records.stack[QY.records.stack.length-1].level;)QY.records.stack.pop();let o={id:QY.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};QY.records.stack[QY.records.stack.length-1].children.push(o),QY.records.stack.push(o)},`addNode`),getRoot:xEt,getCount:SEt,getConfig:N(()=>Rm(CEt,ns().treeView),`getConfig`),getAccTitle:ws,getAccDescription:Es,getDiagramTitle:Os,setAccDescription:Ts,setAccTitle:Cs,setDiagramTitle:Ds},wEt=N(e=>{oP(e,$Y);for(let t of e.nodes){let e=typeof t.indent==`number`?t.indent:0,n=t.name,r=n.endsWith(`/`);r&&(n=n.slice(0,-1));let i=r?`directory`:`file`,a=t.classAnnotation||void 0,o=t.iconAnnotation,s=o===void 0?void 0:o||`none`,l=t.descAnnotation||void 0,u=l?ls(l,ns()):void 0;$Y.addNode(e,n,i,a,s,u)}},`populate`),TEt={parse:N(async e=>{let{text:t,lineMap:n}=uEt(e);try{let e=await eW(`treeView`,t);P.debug(e),wEt(e)}catch(e){throw n.size>0&&e instanceof Error&&(e.message=lEt(e.message,n)),e}},`parse`)},eX={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:``},file:{body:``}}},N(dEt,`detectIcon`),N(fEt,`qualifyIcon`),N(ZY,`getNodeIcon`),CEe([{name:eX.prefix,icons:eX}]),EEt=14,DEt=4,OEt=16,tX=N(async(e,t)=>{let n=[],r=N(e=>{let i=ZY(e,t);i&&n.push({icon:i,node:e}),e.children.forEach(r)},`collect`);r(e);let i=await Promise.all(n.map(async({icon:e,node:t})=>({id:t.id,svg:await gm(e,{height:EEt,width:EEt})})));return new Map(i.map(({id:e,svg:t})=>[e,t]))},`resolveNodeIcons`),nX=N((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let l=EEt+DEt,u=ZY(n,i),d=u!==void 0;u&&o.append(`g`).attr(`class`,`treeView-node-icon`).attr(`transform`,`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(a.get(n.id)??``);let f=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:p,width:m}=f.node().getBBox(),h=p+i.paddingY*2,g=e+i.paddingX+(d?l:0);f.attr(`x`,g),f.attr(`y`,t+h/2);let _=g+m;return n.BBox={x:e,y:t,width:m+i.paddingX*2+(d?l:0),height:h},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,h-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:_,centerY:t+h/2}},`positionLabel`),rX=N((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),iX=N((e,t,n,r)=>{let i=0,a=0,o=[],s=N((e,t,n,s)=>{let l=s*(n.rowIndent+n.paddingX),u=nX(l,i,t,e,n,r);o.push(u);let{height:d,width:f}=t.BBox;rX(e,l-n.rowIndent,i+d/2,l,i+d/2,n.lineThickness),a=Math.max(a,l+f),i+=d},`drawNode`),l=N((t,r=0)=>{s(e,t,n,r),t.children.forEach(e=>{l(e,r+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:r,height:s}=t.children[t.children.length-1].BBox;rX(e,i+n.paddingX,a+o,i+n.paddingX,r+s/2+n.lineThickness/2,n.lineThickness)}},`processNode`);l(t);let u=o.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...o.map(e=>e.labelRightEdge))+OEt;for(let t of u){let r=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();a=Math.max(a,e+r.width+n.paddingX)}}for(let e of o)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=a-e.node.BBox.x+8;t.attr(`width`,n),a=Math.max(a,e.node.BBox.x+n+2)}}return{totalHeight:i,totalWidth:a}},`drawTree`),aX={draw:N(async(e,t,n,r)=>{P.debug(`Rendering treeView diagram -`+e);let i=r.db,a=i.getRoot(),o=i.getConfig(),s=Op(t),l=s.append(`g`);l.attr(`class`,`tree-view`);let{totalHeight:u,totalWidth:d}=iX(l,a,o,await tX(a,o));s.attr(`viewBox`,`-${o.lineThickness/2} 0 ${d} ${u}`),_s(s,u,d,o.useMaxWidth)},`draw`)},kEt={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},AEt={db:$Y,renderer:aX,parser:TEt,styles:N(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:o,highlightStroke:s}=Rm(kEt,e);return` + ${GN()} +`,`getStyles`),N(MTt,`calculateBlockPosition`),tEt=N(e=>{let t=0,n=0;for(let r of e.children){let{width:e,height:i,x:a,y:o}=r.size??{width:0,height:0,x:0,y:0};if(P.debug(`getMaxChildSize abc95 child:`,r.id,`width:`,e,`height:`,i,`x:`,a,`y:`,o,r.type),r.type===`space`)continue;let s=e/(r.widthInColumns??1);s>t&&(t=s),i>n&&(n=i)}return{width:t,height:n}},`getMaxChildSize`),N(WY,`setBlockSizes`),N(GY,`layoutBlocks`),N(NTt,`findBounds`),N(PTt,`layout`),N(FTt,`getNodeFromBlock`),N(ITt,`calculateBlockSize`),N(LTt,`insertBlockPositioned`),N(KY,`performOperations`),N(RTt,`calculateBlockSizes`),N(zTt,`insertBlocks`),N(BTt,`insertEdges`),nEt={parser:HTt,db:tX,renderer:{draw:N(async function(e,t,n,r){let{securityLevel:i,block:a}=Xo(),o=r.db;o.setDiagramId(t);let s;i===`sandbox`&&(s=Bc(`#i`+t));let l=Bc(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):Bc(`[id="${t}"]`);RTe(u,Xo()),_v(u,[`point`,`circle`,`cross`],r.type,t);let d=o.getBlocks(),f=o.getBlocksFlat(),p=o.getEdges(),m=u.insert(`g`).attr(`class`,`block`);await RTt(m,d,o);let h=PTt(o);await zTt(m,d,o),await BTt(m,p,f,o,t);let g=m.node()?.getBBox(),_=g&&Number.isFinite(g.width)&&Number.isFinite(g.height)?g:h;if(_){let e=Math.max(1,Math.round(.125*(_.width/_.height))),t=_.height+e+10,n=_.width+10,{useMaxWidth:r}=a;ls(u,t,n,!!r),P.debug(`Here Bounds`,h,_),u.attr(`viewBox`,`${_.x-5} ${_.y-5} ${_.width+10} ${_.height+10}`)}},`draw`),getClasses:N(function(e,t){return t.db.getClasses()},`getClasses`)},styles:eEt}})),iEt=l({diagram:()=>AEt});function aEt(e){return e.some(e=>dEt.test(e))}function iX(e){for(let t of e){let e=fEt.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function oEt(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}function sEt(e){let t=e.split(` +`),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}function lEt(e,t){return e.includes(`:`)?e:e in sX.icons||!t?`${sX.prefix}:${e}`:`${t}:${e}`}function uEt(e,t){if(e.icon!==`none`){if(e.icon)return lEt(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=cEt(e.name,t);if(n===`none`)return;if(n)return lEt(n,t.defaultIconPack)}return`${sX.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}var dEt,fEt,pEt,mEt,hEt,gEt,_Et,aX,vEt,yEt,bEt,xEt,SEt,CEt,oX,sX,cX,lX,uX,wEt,TEt,EEt,DEt,OEt,kEt,AEt,jEt=o((()=>{aP(),sP(),kp(),bm(),qm(),Os(),er(),Zn(),nW(),dEt=/[─━│┃└┗├┣]/,fEt=/[└┗├┣]/,pEt=/[─━]/,mEt=/^[\s│┃]+$/,hEt=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,gEt=/^\s*%%/,_Et=` `,N(aEt,`isBoxDrawingFormat`),N(iX,`inferSegmentWidth`),N(oEt,`remapErrorLines`),N(sEt,`preprocessBoxDrawing`),aX=new h9e(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),vEt=N(()=>{aX.reset(),fs()},`clear`),yEt=N(()=>aX.records.stack[0],`getRoot`),bEt=N(()=>aX.records.cnt,`getCount`),xEt=Fo.treeView,SEt={clear:vEt,addNode:N((e,t,n,r,i,a)=>{for(;e<=aX.records.stack[aX.records.stack.length-1].level;)aX.records.stack.pop();let o={id:aX.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};aX.records.stack[aX.records.stack.length-1].children.push(o),aX.records.stack.push(o)},`addNode`),getRoot:yEt,getCount:bEt,getConfig:N(()=>Bm(xEt,Xo().treeView),`getConfig`),getAccTitle:ms,getAccDescription:gs,getDiagramTitle:vs,setAccDescription:hs,setAccTitle:ps,setDiagramTitle:_s},CEt=N(e=>{oP(e,SEt);for(let t of e.nodes){let e=typeof t.indent==`number`?t.indent:0,n=t.name,r=n.endsWith(`/`);r&&(n=n.slice(0,-1));let i=r?`directory`:`file`,a=t.classAnnotation||void 0,o=t.iconAnnotation,s=o===void 0?void 0:o||`none`,l=t.descAnnotation||void 0,u=l?ns(l,Xo()):void 0;SEt.addNode(e,n,i,a,s,u)}},`populate`),oX={parse:N(async e=>{let{text:t,lineMap:n}=sEt(e);try{let e=await QU(`treeView`,t);P.debug(e),CEt(e)}catch(e){throw n.size>0&&e instanceof Error&&(e.message=oEt(e.message,n)),e}},`parse`)},sX={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:``},file:{body:``}}},N(cEt,`detectIcon`),N(lEt,`qualifyIcon`),N(uEt,`getNodeIcon`),vm([{name:sX.prefix,icons:sX}]),cX=14,lX=4,uX=16,wEt=N(async(e,t)=>{let n=[],r=N(e=>{let i=uEt(e,t);i&&n.push({icon:i,node:e}),e.children.forEach(r)},`collect`);r(e);let i=await Promise.all(n.map(async({icon:e,node:t})=>({id:t.id,svg:await ym(e,{height:cX,width:cX})})));return new Map(i.map(({id:e,svg:t})=>[e,t]))},`resolveNodeIcons`),TEt=N((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let l=cX+lX,u=uEt(n,i),d=u!==void 0;u&&o.append(`g`).attr(`class`,`treeView-node-icon`).attr(`transform`,`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(a.get(n.id)??``);let f=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:p,width:m}=f.node().getBBox(),h=p+i.paddingY*2,g=e+i.paddingX+(d?l:0);f.attr(`x`,g),f.attr(`y`,t+h/2);let _=g+m;return n.BBox={x:e,y:t,width:m+i.paddingX*2+(d?l:0),height:h},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,h-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:_,centerY:t+h/2}},`positionLabel`),EEt=N((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),DEt=N((e,t,n,r)=>{let i=0,a=0,o=[],s=N((e,t,n,s)=>{let l=s*(n.rowIndent+n.paddingX),u=TEt(l,i,t,e,n,r);o.push(u);let{height:d,width:f}=t.BBox;EEt(e,l-n.rowIndent,i+d/2,l,i+d/2,n.lineThickness),a=Math.max(a,l+f),i+=d},`drawNode`),l=N((t,r=0)=>{s(e,t,n,r),t.children.forEach(e=>{l(e,r+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:r,height:s}=t.children[t.children.length-1].BBox;EEt(e,i+n.paddingX,a+o,i+n.paddingX,r+s/2+n.lineThickness/2,n.lineThickness)}},`processNode`);l(t);let u=o.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...o.map(e=>e.labelRightEdge))+uX;for(let t of u){let r=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();a=Math.max(a,e+r.width+n.paddingX)}}for(let e of o)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=a-e.node.BBox.x+8;t.attr(`width`,n),a=Math.max(a,e.node.BBox.x+n+2)}}return{totalHeight:i,totalWidth:a}},`drawTree`),OEt={draw:N(async(e,t,n,r)=>{P.debug(`Rendering treeView diagram +`+e);let i=r.db,a=i.getRoot(),o=i.getConfig(),s=Op(t),l=s.append(`g`);l.attr(`class`,`tree-view`);let{totalHeight:u,totalWidth:d}=DEt(l,a,o,await wEt(a,o));s.attr(`viewBox`,`-${o.lineThickness/2} 0 ${d} ${u}`),ls(s,u,d,o.useMaxWidth)},`draw`)},kEt={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},AEt={db:SEt,renderer:OEt,parser:oX,styles:N(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:o,highlightStroke:s}=Bm(kEt,e);return` .treeView-node-label { font-size: ${t}; fill: ${n}; @@ -3565,7 +3567,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l stroke: ${s}; stroke-width: 1; } - `},`styles`)}})),MEt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=28)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(5);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal==`right`&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical==`top`?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):this.labelPosVertical==`center`&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):this.labelPosVertical==`bottom`&&this.setHeight(n+this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(7),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:te=_,ee=a+-C/O,n[2]=ee,n[3]=te;break;case 2:ee=x,te=o+S*O,n[2]=ee,n[3]=te;break;case 3:te=b,ee=a+C/O,n[2]=ee,n[3]=te;break;case 4:ee=y,te=o+-S*O,n[2]=ee,n[3]=te}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r=0){var d=(-l+Math.sqrt(l*l-4*s*u))/(2*s),f=(-l-Math.sqrt(l*l-4*s*u))/(2*s);return d>=0&&d<=1?[d]:f>=0&&f<=1?[f]:null}return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(5);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){function r(){}r.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t=Math.min(this.m,this.n);this.s=function(e){for(var t=[];e-->0;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=function(e){return function e(t){if(t.length==0)return 0;for(var n=[],r=0;r0;)t.push(0);return t}(this.n),i=function(e){for(var t=[];e-->0;)t.push(0);return t}(this.m),a=!0,o=!0,s=Math.min(this.m-1,this.n),l=Math.max(0,Math.min(this.n-2,this.m)),u=0;u=0;A--)if(this.s[A]!==0){for(var j=A+1;j=0;ae--){if(function(e,t){return e&&t}(ae0;){var he=void 0,ge=void 0;for(he=D-2;he>=-1&&he!==-1;he--)if(Math.abs(n[he])<=me+pe*(Math.abs(this.s[he])+Math.abs(this.s[he+1]))){n[he]=0;break}if(he===D-2)ge=4;else{var _e=void 0;for(_e=D-1;_e>=he&&_e!==he;_e--){var ve=(_e===D?0:Math.abs(n[_e]))+(_e===he+1?0:Math.abs(n[_e-1]));if(Math.abs(this.s[_e])<=me+pe*ve){this.s[_e]=0;break}}_e===he?ge=3:_e===D-1?ge=1:(ge=2,he=_e)}switch(he++,ge){case 1:var ye=n[D-2];n[D-2]=0;for(var be=D-2;be>=he;be--){var xe=r.hypot(this.s[be],ye),Se=this.s[be]/xe,Ce=ye/xe;if(this.s[be]=xe,be!==he&&(ye=-Ce*n[be-1],n[be-1]=Se*n[be-1]),o)for(var we=0;we=this.s[he+1]);){var Ye=this.s[he];if(this.s[he]=this.s[he+1],this.s[he+1]=Ye,o&&heMath.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):t==0?n=0:(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)),n},e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(MEt()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(MEt()):n.coseBase=r(n.layoutBase)})(e,function(e){return(()=>{var t={45:((e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r}),806:((e,t,n)=>{var r=n(551).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,e.exports=i}),767:((e,t,n)=>{var r=n(551).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),880:((e,t,n)=>{var r=n(551).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),578:((e,t,n)=>{var r=n(551).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),765:((e,t,n)=>{var r=n(551).FDLayout,i=n(578),a=n(880),o=n(991),s=n(767),l=n(806),u=n(902),d=n(551).FDLayoutConstants,f=n(551).LayoutConstants,p=n(551).Point,m=n(551).PointD,h=n(551).DimensionD,g=n(551).Layout,_=n(551).Integer,v=n(551).IGeometry,y=n(551).LGraph,b=n(551).Transform,x=n(551).LinkedList;function S(){r.call(this),this.toBeTiled={},this.constraints={}}for(var C in S.prototype=Object.create(r.prototype),r)S[C]=r[C];S.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},S.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},S.prototype.newNode=function(e){return new o(this.graphManager,e)},S.prototype.newEdge=function(e){return new s(null,null,e)},S.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH<10?10:l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},S.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},S.prototype.layout=function(){return f.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},S.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){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return Object.keys(this.constraints).length>0&&(u.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},S.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%d.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-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 e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:d.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=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},S.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n0&&this.updateDisplacements();for(var n=0;n0&&(r.fixedNodeWeight=a)}}if(this.constraints.relativePlacementConstraint){var o=new Map,s=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var u=this.constraints.alignmentConstraint.vertical,n=0;n=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},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(t){if(t.left){var n=o.has(t.left)?o.get(t.left):t.left,r=o.has(t.right)?o.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=s.has(t.top)?s.get(t.top):t.top,a=s.has(t.bottom)?s.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(a)||(e.nodesInRelativeVertical.push(a),e.nodeToRelativeConstraintMapVertical.set(a,[]),e.dummyToNodeForHorizontalAlignment.has(a)?e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(a)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(a).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:a,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(a).push({top:i,gap:t.gap})}});else{var f=new Map,p=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=o.has(e.left)?o.get(e.left):e.left,n=o.has(e.right)?o.get(e.right):e.right;f.has(t)?f.get(t).push(n):f.set(t,[n]),f.has(n)?f.get(n).push(t):f.set(n,[t])}else{var r=s.has(e.top)?s.get(e.top):e.top,i=s.has(e.bottom)?s.get(e.bottom):e.bottom;p.has(r)?p.get(r).push(i):p.set(r,[i]),p.has(i)?p.get(i).push(r):p.set(i,[r])}});var m=function(e,t){var n=[],r=[],i=new x,a=new Set,o=0;return e.forEach(function(s,l){if(!a.has(l)){n[o]=[],r[o]=!1;var u=l;for(i.push(u),a.add(u),n[o].push(u);i.length!=0;)u=i.shift(),t.has(u)&&(r[o]=!0),e.get(u).forEach(function(e){a.has(e)||(i.push(e),a.add(e),n[o].push(e))});o++}}),{components:n,isFixed:r}},h=m(f,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=h.components,this.fixedComponentsOnHorizontal=h.isFixed;var g=m(p,e.fixedNodesOnVertical);this.componentsOnVertical=g.components,this.fixedComponentsOnVertical=g.isFixed}}},S.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(f.WORLD_CENTER_X-o.x/2,f.WORLD_CENTER_Y-o.y/2))},S.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);S.branchRadialLayout(t,null,0,359,0,r);var i=y.calculateBounds(e),a=new b;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=g[0];g.splice(0,1);var y=d.indexOf(_);y>=0&&d.splice(y,1),m--,f--}h=t==null?0:(d.indexOf(g[0])+1)%m;for(var b=Math.abs(r-n)/f,x=h;p!=f;x=++x%m){var C=d[x].getOtherEnd(e);if(C!=t){var w=(n+p*b)%360,T=(w+b)%360;S.branchRadialLayout(C,e,w,T,i+a,a),p++}}},S.maxDiagonalInTree=function(e){for(var t=_.MIN_VALUE,n=0;nt&&(t=r)}return t},S.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},S.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;ui?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):r.labelPosHorizontal==`right`&&r.setWidth(i+r.labelWidth)),r.labelHeight&&(r.labelPosVertical==`top`?(r.rect.y-=r.labelHeight,r.setHeight(a+r.labelHeight),r.labelMarginTop=r.labelHeight):r.labelPosVertical==`center`&&r.labelHeight>a?(r.rect.y-=(r.labelHeight-a)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-a)/2):r.labelPosVertical==`bottom`&&r.setHeight(a+r.labelHeight))}})},S.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,a=t.labelMarginLeft,o=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,a,o)}},S.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop,o=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a,o,s)})},S.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},S.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rd&&(d=p.rect.height)}n+=d+e.verticalPadding}},S.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.rect.width,o=i.rect.height;i.labelWidth&&(i.labelPosHorizontal==`left`?(i.rect.x-=i.labelWidth,i.setWidth(a+i.labelWidth),i.labelMarginLeft=i.labelWidth):i.labelPosHorizontal==`center`&&i.labelWidth>a?(i.rect.x-=(i.labelWidth-a)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-a)/2):i.labelPosHorizontal==`right`&&i.setWidth(a+i.labelWidth)),i.labelHeight&&(i.labelPosVertical==`top`?(i.rect.y-=i.labelHeight,i.setHeight(o+i.labelHeight),i.labelMarginTop=i.labelHeight):i.labelPosVertical==`center`&&i.labelHeight>o?(i.rect.y-=(i.labelHeight-o)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-o)/2):i.labelPosVertical==`bottom`&&i.setHeight(o+i.labelHeight))}})},S.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)s&&(s=e.getWidth())});var u=a/i,d=o/i,f=(n-r)**2+4*(u+r)*(d+n)*i,p=(r-n+Math.sqrt(f))/(2*(u+r)),m;t?(m=Math.ceil(p),m==p&&m++):m=Math.floor(p);var h=m*(u+r)-r;return s>h&&(h=s),h+=r*2,h},S.prototype.tileNodesByFavoringDim=function(e,t,n){var r=l.TILING_PADDING_VERTICAL,i=l.TILING_PADDING_HORIZONTAL,a=l.TILING_COMPARE_BY,o={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:r,horizontalPadding:i,centerX:0,centerY:0};a&&(o.idealRowWidth=this.calcIdealRowWidth(e,n));var s=function(e){return e.rect.width*e.rect.height},u=function(e,t){return s(t)-s(e)};e.sort(function(e,t){var n=u;return o.idealRowWidth?(n=a,n(e.id,t.id)):n(e,t)});for(var d=0,f=0,p=0;p0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},S.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},S.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var a=e.rowWidth[i];if(a+e.horizontalPadding+t<=e.width)return!0;var o=0;e.rowHeight[i]0&&(o=n+e.verticalPadding-e.rowHeight[i]);var s=e.width-a>=t+e.horizontalPadding?(e.height+o)/(a+t+e.horizontalPadding):(e.height+o)/e.width;o=n+e.verticalPadding;var l=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var f=i;f<=a;f++)u[0]+=this.grid[f][o-1].length+this.grid[f][o].length-1;if(a0)for(var f=o;f<=s;f++)u[3]+=this.grid[i-1][f].length+this.grid[i][f].length-1;for(var p=_.MAX_VALUE,m,h,g=0;g{var r=n(551).FDLayoutNode,i=n(551).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i{function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){var a=0;r.forEach(function(e){t==`horizontal`?(p.set(e,l.has(e)?u[l.get(e)]:i.get(e)),a+=p.get(e)):(p.set(e,l.has(e)?d[l.get(e)]:i.get(e)),a+=p.get(e))}),a/=r.length,e.forEach(function(e){n.has(e)||p.set(e,a)})}else{var o=0;e.forEach(function(e){o+=t==`horizontal`?l.has(e)?u[l.get(e)]:i.get(e):l.has(e)?d[l.get(e)]:i.get(e)}),o/=e.length,e.forEach(function(e){p.set(e,o)})}});for(var g=function(){var r=h.shift();e.get(r).forEach(function(e){if(p.get(e.id)o&&(o=y),bs&&(s=b)}}catch(e){m=!0,h=e}finally{try{!f&&g.return&&g.return()}finally{if(m)throw h}}var x=(r+o)/2-(a+s)/2,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),E;!(S=(E=T.next()).done);S=!0){var D=E.value;p.set(D,p.get(D)+x)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}})}return p},y=function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?u[l.get(e.left)]-u[l.get(e.right)]>=0?t++:n++:d[l.get(e.top)]-d[l.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var a=0;an)for(var o=0;oi)for(var s=0;s1)t.fixedNodeConstraint.forEach(function(e,t){C[t]=[e.position.x,e.position.y],w[t]=[u[l.get(e.nodeId)],d[l.get(e.nodeId)]]}),T=!0;else if(t.alignmentConstraint)(function(){var e=0;if(t.alignmentConstraint.vertical){for(var n=t.alignmentConstraint.vertical,i=function(t){var i=new Set;n[t].forEach(function(e){i.add(e)});var a=new Set([].concat(r(i)).filter(function(e){return D.has(e)})),o=void 0;o=a.size>0?u[l.get(a.values().next().value)]:_(i).x,n[t].forEach(function(t){C[e]=[o,d[l.get(t)]],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},a=0;a0?u[l.get(i.values().next().value)]:_(n).y,o[t].forEach(function(t){C[e]=[u[l.get(t)],a],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},f=0;fj&&(j=A[ee].length,M=ee);if(j0){var ge={x:0,y:0};t.fixedNodeConstraint.forEach(function(e,t){var n={x:u[l.get(e.nodeId)],y:d[l.get(e.nodeId)]},r=e.position,i=g(r,n);ge.x+=i.x,ge.y+=i.y}),ge.x/=t.fixedNodeConstraint.length,ge.y/=t.fixedNodeConstraint.length,u.forEach(function(e,t){u[t]+=ge.x}),d.forEach(function(e,t){d[t]+=ge.y}),t.fixedNodeConstraint.forEach(function(e){u[l.get(e.nodeId)]=e.position.x,d[l.get(e.nodeId)]=e.position.y})}if(t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var _e=t.alignmentConstraint.vertical,ve=function(e){var t=new Set;_e[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return D.has(e)})),i=void 0;i=n.size>0?u[l.get(n.values().next().value)]:_(t).x,t.forEach(function(e){D.has(e)||(u[l.get(e)]=i)})},ye=0;ye<_e.length;ye++)ve(ye);if(t.alignmentConstraint.horizontal)for(var be=t.alignmentConstraint.horizontal,xe=function(e){var t=new Set;be[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return D.has(e)})),i=void 0;i=n.size>0?d[l.get(n.values().next().value)]:_(t).y,t.forEach(function(e){D.has(e)||(d[l.get(e)]=i)})},Se=0;Se{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(45)})()})})),PEt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(NEt()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeFcose=r(NEt()):n.cytoscapeFcose=r(n.coseBase)})(e,function(e){return(()=>{var t={658:(e=>{e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),548:((e,t,n)=>{var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=n(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(e){for(var t={},n=0;n0&&u.merge(e)});for(var d=0;d1){u=s[0],d=u.connectedEdges().length,s.forEach(function(e){e.connectedEdges().length0&&r.set(`dummy`+(r.size+1),m),h},a.relocateComponent=function(e,t,n){if(!n.fixedNodeConstraint){var i=1/0,a=-1/0,o=1/0,s=-1/0;if(n.quality==`draft`){var l=!0,u=!1,d=void 0;try{for(var f=t.nodeIndexes[Symbol.iterator](),p;!(l=(p=f.next()).done);l=!0){var m=p.value,h=r(m,2),g=h[0],_=h[1],v=n.cy.getElementById(g);if(v){var y=v.boundingBox(),b=t.xCoords[_]-y.w/2,x=t.xCoords[_]+y.w/2,S=t.yCoords[_]-y.h/2,C=t.yCoords[_]+y.h/2;ba&&(a=x),Ss&&(s=C)}}}catch(e){u=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(u)throw d}}var w=e.x-(a+i)/2,T=e.y-(s+o)/2;t.xCoords=t.xCoords.map(function(e){return e+w}),t.yCoords=t.yCoords.map(function(e){return e+T})}else{Object.keys(t).forEach(function(e){var n=t[e],r=n.getRect().x,l=n.getRect().x+n.getRect().width,u=n.getRect().y,d=n.getRect().y+n.getRect().height;ra&&(a=l),us&&(s=d)});var E=e.x-(a+i)/2,D=e.y-(s+o)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+E,n.getCenterY()+D)})}}},a.calcBoundingBox=function(e,t,n,r){for(var i=2**53-1,a=-(2**53-1),o=2**53-1,s=-(2**53-1),l=void 0,u=void 0,d=void 0,f=void 0,p=e.descendants().not(`:parent`),m=p.length,h=0;hl&&(i=l),ad&&(o=d),s{var r=n(548),i=n(140).CoSELayout,a=n(140).CoSENode,o=n(140).layoutBase.PointD,s=n(140).layoutBase.DimensionD,l=n(140).layoutBase.LayoutConstants,u=n(140).layoutBase.FDLayoutConstants,d=n(140).CoSEConstants;e.exports={coseLayout:function(e,t){var n=e.cy,f=e.eles,p=f.nodes(),m=f.edges(),h=void 0,g=void 0,_=void 0,v={};e.randomize&&(h=t.nodeIndexes,g=t.xCoords,_=t.yCoords);var y=function(e){return typeof e==`function`},b=function(e,t){return y(e)?e(t):e},x=r.calcParentsWithoutChildren(n,f),S=function e(t,n,i,l){for(var u=n.length,d=0;d0){var C=void 0;C=i.getGraphManager().add(i.newGraph(),m),e(C,p,i,l)}}},C=function(t,n,r){for(var i=0,a=0,o=0;o0?i/a:y(e.idealEdgeLength)?50:e.idealEdgeLength,d.MIN_REPULSION_DIST=u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH)},w=function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)};e.nestingFactor!=null&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(d.DEFAULT_GRAVITY_STRENGTH=u.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(d.MAX_ITERATIONS=u.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=u.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.tilingCompareBy!=null&&(d.TILING_COMPARE_BY=e.tilingCompareBy),l.QUALITY=e.quality==`proof`?2:0,d.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!e.randomize,d.ANIMATE=u.ANIMATE=l.ANIMATE=e.animate,d.TILE=e.tile,d.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!e.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,e.step==`transformed`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),e.step==`enforced`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),e.step==`cose`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),e.step==`all`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!!e.randomize,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),d.TREE_REDUCTION_ON_INCREMENTAL=!(e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint);var T=new i,E=T.newGraphManager();return S(E.addRoot(),r.getTopMostNodes(p),T,e),C(T,E,m),w(T,e),T.runLayout(),v}}}),212:((e,t,n)=>{var r=function(){function e(e,t){for(var n=0;n0){if(p){var m=o.getTopMostNodes(t.eles.nodes());if(u=o.connectComponents(n,t.eles,m),u.forEach(function(e){var t=e.boundingBox();d.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),t.randomize&&u.forEach(function(e){t.eles=e,i.push(s(t))}),t.quality=="default"||t.quality==`proof`){var h=n.collection();if(t.tile){var g=new Map,_=[],v=[],y=0,b={nodeIndexes:g,xCoords:_,yCoords:v},x=[];if(u.forEach(function(e,t){e.edges().length==0&&(e.nodes().forEach(function(t,n){h.merge(e.nodes()[n]),t.isParent()||(b.nodeIndexes.set(e.nodes()[n].id(),y++),b.xCoords.push(e.nodes()[0].position().x),b.yCoords.push(e.nodes()[0].position().y))}),x.push(t))}),h.length>1){var S=h.boundingBox();d.push({x:S.x1+S.w/2,y:S.y1+S.h/2}),u.push(h),i.push(b);for(var C=x.length-1;C>=0;C--)u.splice(x[C],1),i.splice(x[C],1),d.splice(x[C],1)}}u.forEach(function(e,n){t.eles=e,a.push(l(t,i[n])),o.relocateComponent(d[n],a[n],t)})}else u.forEach(function(e,n){o.relocateComponent(d[n],i[n],t)});var w=new Set;if(u.length>1){var T=[],E=r.filter(function(e){return e.css(`display`)==`none`});u.forEach(function(e,n){var r=void 0;if(t.quality==`draft`&&(r=i[n].nodeIndexes),e.nodes().not(E).length>0){var s={};s.edges=[],s.nodes=[];var l=void 0;e.nodes().not(E).forEach(function(e){if(t.quality==`draft`){if(!e.isParent())l=r.get(e.id()),s.nodes.push({x:i[n].xCoords[l]-e.boundingbox().w/2,y:i[n].yCoords[l]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else{var u=o.calcBoundingBox(e,i[n].xCoords,i[n].yCoords,r);s.nodes.push({x:u.topLeftX,y:u.topLeftY,width:u.width,height:u.height})}}else a[n][e.id()]&&s.nodes.push({x:a[n][e.id()].getLeft(),y:a[n][e.id()].getTop(),width:a[n][e.id()].getWidth(),height:a[n][e.id()].getHeight()})}),e.edges().forEach(function(e){var l=e.source(),u=e.target();if(l.css(`display`)!=`none`&&u.css(`display`)!=`none`){if(t.quality==`draft`){var d=r.get(l.id()),f=r.get(u.id()),p=[],m=[];if(l.isParent()){var h=o.calcBoundingBox(l,i[n].xCoords,i[n].yCoords,r);p.push(h.topLeftX+h.width/2),p.push(h.topLeftY+h.height/2)}else p.push(i[n].xCoords[d]),p.push(i[n].yCoords[d]);if(u.isParent()){var g=o.calcBoundingBox(u,i[n].xCoords,i[n].yCoords,r);m.push(g.topLeftX+g.width/2),m.push(g.topLeftY+g.height/2)}else m.push(i[n].xCoords[f]),m.push(i[n].yCoords[f]);s.edges.push({startX:p[0],startY:p[1],endX:m[0],endY:m[1]})}else a[n][l.id()]&&a[n][u.id()]&&s.edges.push({startX:a[n][l.id()].getCenterX(),startY:a[n][l.id()].getCenterY(),endX:a[n][u.id()].getCenterX(),endY:a[n][u.id()].getCenterY()})}}),s.nodes.length>0&&(T.push(s),w.add(n))}});var D=f.packComponents(T,t.randomize).shifts;if(t.quality==`draft`)i.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+D[t].dx}),r=e.yCoords.map(function(e){return e+D[t].dy});e.xCoords=n,e.yCoords=r});else{var O=0;w.forEach(function(e){Object.keys(a[e]).forEach(function(t){var n=a[e][t];n.setCenter(n.getCenterX()+D[O].dx,n.getCenterY()+D[O].dy)}),O++})}}}else{var k=t.eles.boundingBox();if(d.push({x:k.x1+k.w/2,y:k.y1+k.h/2}),t.randomize){var A=s(t);i.push(A)}t.quality=="default"||t.quality==`proof`?(a.push(l(t,i[0])),o.relocateComponent(d[0],a[0],t)):o.relocateComponent(d[0],i[0],t)}}var j=function(e,n){if(t.quality=="default"||t.quality==`proof`){typeof e==`number`&&(e=n);var r=void 0,o=void 0,s=e.data(`id`);return a.forEach(function(e){s in e&&(r={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},o=e[s])}),t.nodeDimensionsIncludeLabels&&(o.labelWidth&&(o.labelPosHorizontal==`left`?r.x+=o.labelWidth/2:o.labelPosHorizontal==`right`&&(r.x-=o.labelWidth/2)),o.labelHeight&&(o.labelPosVertical==`top`?r.y+=o.labelHeight/2:o.labelPosVertical==`bottom`&&(r.y-=o.labelHeight/2))),r??={x:e.position(`x`),y:e.position(`y`)},{x:r.x,y:r.y}}var l=void 0;return i.forEach(function(t){var n=t.nodeIndexes.get(e.id());n!=null&&(l={x:t.xCoords[n],y:t.yCoords[n]})}),l??={x:e.position(`x`),y:e.position(`y`)},{x:l.x,y:l.y}};if(t.quality=="default"||t.quality==`proof`||t.randomize){var M=o.calcParentsWithoutChildren(n,r),ee=r.filter(function(e){return e.css(`display`)==`none`});t.eles=r.not(ee),r.nodes().not(`:parent`).not(ee).layoutPositions(e,t,j),M.length>0&&M.forEach(function(e){e.position(j(e))})}else console.log(`If randomize option is set to false, then quality option must be 'default' or 'proof'.`)}}]),e}()}),657:((e,t,n)=>{var r=n(548),i=n(140).layoutBase.Matrix,a=n(140).layoutBase.SVD;e.exports={spectralLayout:function(e){var t=e.cy,n=e.eles,o=n.nodes(),s=n.nodes(`:parent`),l=new Map,u=new Map,d=new Map,f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=[],b=void 0,x=1e8,S=1e-9,C=e.piTol,w=e.samplingType,T=e.nodeSeparation,E=void 0,D=function(){for(var e=0,t=0,n=!1;t=i;){o=r[i++];for(var h=f[o],v=0;vd&&(d=g[S],p=S)}return p},k=function(e){var t=void 0;if(e){t=Math.floor(Math.random()*b);for(var n=0;n=1)break;d=u}for(var g=0;g=1)break;d=u}for(var x=0;x0&&(r.isParent()?f[t].push(d.get(r.id())):f[t].push(r.id()))})});var ce=function(e){var n=u.get(e),r=void 0;l.get(e).forEach(function(i){r=t.getElementById(i).isParent()?d.get(i):i,f[n].push(r),f[u.get(r)].push(e)})},le=!0,ue=!1,de=void 0;try{for(var fe=l.keys()[Symbol.iterator](),pe;!(le=(pe=fe.next()).done);le=!0){var me=pe.value;ce(me)}}catch(e){ue=!0,de=e}finally{try{!le&&fe.return&&fe.return()}finally{if(ue)throw de}}b=u.size;var he=void 0;if(b>2){E=b{var r=n(212),i=function(e){e&&e(`layout`,`fcose`,r)};typeof cytoscape<`u`&&i(cytoscape),e.exports=i}),140:(t=>{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(579)})()})})),FEt=l({diagram:()=>rDt});function IEt(e,t){if(e===0)return t();let n=Math.random,r=e>>>0;Math.random=function(){r=r+1831565813>>>0;let e=r;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296};try{return t()}finally{Math.random=n}}function LEt(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`service`,id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-service`})})}function oX(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`junction`,id:e.id,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-junction`})})}function REt(e,t){t.nodes().map(t=>{let n=_X(t);n.type!==`group`&&(n.x=t.position().x,n.y=t.position().y,e.getElementById(n.id).attr(`transform`,`translate(`+(n.x||0)+`,`+(n.y||0)+`)`))})}function sX(e,t){e.forEach(e=>{t.add({group:`nodes`,data:{type:`group`,id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:`node-group`})})}function cX(e,t){e.forEach(e=>{let{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:a,rhsInto:o,lhsDir:s,rhsDir:l,rhsGroup:u,title:d}=e,f=mX(e.lhsDir,e.rhsDir)?`segments`:`straight`,p={id:`${n}-${r}`,label:d,source:n,sourceDir:s,sourceArrow:i,sourceGroup:a,sourceEndpoint:s===`L`?`0 50%`:s===`R`?`100% 50%`:s===`T`?`50% 0`:`50% 100%`,target:r,targetDir:l,targetArrow:o,targetGroup:u,targetEndpoint:l===`L`?`0 50%`:l===`R`?`100% 50%`:l===`T`?`50% 0`:`50% 100%`};t.add({group:`edges`,data:p,classes:f})})}function lX(e,t,n,r=[]){let i=N((e,t)=>{let r=new Map;for(let[i,a]of e.entries()){let e=`${i}`,o=0,s=[...a.entries()];if(s.length===1){r.set(e,s[0][1]);continue}for(let i=0;i{let n=new Map,r=new Map;return t.forEach(([t,i],a)=>{let o=e.getNode(a)?.in??`default`,s=n.get(i)??new Map;n.has(i)||n.set(i,s);let l=r.get(t)??new Map;r.has(t)||r.set(t,l);for(let e of[s,l]){let t=e.get(o)??[];e.has(o)||e.set(o,t),t.push(a)}}),{horiz:[...i(n,`horizontal`).values()].filter(e=>e.length>1),vert:[...i(r,`vertical`).values()].filter(e=>e.length>1)}}).reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]),s=new Set;r.forEach(e=>e.members.forEach(e=>s.add(e)));let l=N(e=>e.filter(e=>!e.some(e=>s.has(e))),`dropOverlapping`),u=l(a),d=l(o);return r.forEach(e=>{e.members.length<2||(e.direction===`row`?u.push([...e.members]):d.push([...e.members]))}),{horizontal:u,vertical:d}}function uX(e,t,n=[]){let r=[],i=t.getConfigField(`iconSize`),a=t.getConfigField(`idealEdgeLengthMultiplier`),o=a*i,s=new Set;n.forEach(e=>{for(let t=0;t`${e[0]},${e[1]}`,`posToStr`),u=N(e=>e.split(`,`).map(e=>parseInt(e)),`strToPos`);return e.forEach(e=>{let t=new Map([...e.entries()].map(([e,t])=>[l(t),e])),n=[l([0,0])],o={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;n.length>0;){let e=n.shift();if(e){o[e]=1;let f=t.get(e);if(f){let p=u(e);Object.entries(d).forEach(([e,u])=>{let d=l([p[0]+u[0],p[1]+u[1]]),m=t.get(d);if(m&&!o[d]){if(n.push(d),s.has(`${f}|${m}`))return;r.push({[VEt[e]]:m,[VEt[UEt(e)]]:f,gap:a*i})}})}}}}),r}function zEt(e,t,n,r,i,{spatialMaps:a,groupAlignments:o}){return new Promise(s=>{let l=Qc(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),u=VM({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`straight`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`edge[label]`,style:{label:`data(label)`}},{selector:`edge.segments`,style:{"curve-style":`segments`,"segment-weights":`0`,"segment-distances":[.5],"edge-distances":`endpoints`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`node`,style:{"compound-sizing-wrt-labels":`include`}},{selector:`node[label]`,style:{"text-valign":`bottom`,"text-halign":`center`,"font-size":`${i.getConfigField(`fontSize`)}px`}},{selector:`.node-service`,style:{label:`data(label)`,width:`data(width)`,height:`data(height)`}},{selector:`.node-junction`,style:{width:`data(width)`,height:`data(height)`}},{selector:`.node-group`,style:{padding:`${i.getConfigField(`padding`)}px`}}],layout:{name:`grid`,boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),sX(n,u),LEt(e,u,i),oX(t,u,i),cX(r,u);let d=i.getLayoutHints(),f=lX(i,a,o,d),p=uX(a,i,d),m=i.getConfigField(`iconSize`),h=i.getConfigField(`idealEdgeLengthMultiplier`)*m,g=.5*m,_=i.getConfigField(`edgeElasticity`),v=i.getConfigField(`seed`),y=u.layout({name:`fcose`,quality:`proof`,randomize:i.getConfigField(`randomize`),nodeSeparation:i.getConfigField(`nodeSeparation`),numIter:i.getConfigField(`numIter`),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,n]=e.connectedNodes(),{parent:r}=_X(t),{parent:i}=_X(n);return r===i?h:g},edgeElasticity(e){let[t,n]=e.connectedNodes(),{parent:r}=_X(t),{parent:i}=_X(n);return r===i?_:.001},alignmentConstraint:f,relativePlacementConstraint:p});y.one(`layoutstop`,()=>{function e(e,t,n,r){let i,a,{x:o,y:s}=e,{x:l,y:u}=t;a=(r-s+(o-n)*(s-u)/(o-l))/Math.sqrt(1+((s-u)/(o-l))**2),i=Math.sqrt((r-s)**2+(n-o)**2-a**2);let d=Math.sqrt((l-o)**2+(u-s)**2);i/=d;let f=(l-o)*(r-s)-(u-s)*(n-o);switch(!0){case f>=0:f=1;break;case f<0:f=-1}let p=(l-o)*(n-o)+(u-s)*(r-s);switch(!0){case p>=0:p=1;break;case p<0:p=-1}return a=Math.abs(a)*f,i*=p,{distances:a,weights:i}}N(e,`getSegmentWeights`),u.startBatch();for(let t of Object.values(u.edges()))if(t.data?.()){let{x:n,y:r}=t.source().position(),{x:i,y:a}=t.target().position();if(n!==i&&r!==a){let n=t.sourceEndpoint(),r=t.targetEndpoint(),{sourceDir:i}=QEt(t),[a,o]=pX(i)?[n.x,r.y]:[r.x,n.y],{weights:s,distances:l}=e(n,r,a,o);t.style(`segment-distances`,l),t.style(`segment-weights`,s)}}u.endBatch(),IEt(v,()=>y.run())});try{IEt(v,()=>y.run())}catch(e){throw e instanceof RangeError&&e.message.includes(`Invalid array length`)?Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):e}u.ready(e=>{P.info(`Ready`,e),s(u)})})}var BEt,VEt,HEt,dX,UEt,WEt,fX,pX,mX,GEt,KEt,hX,qEt,JEt,gX,YEt,XEt,ZEt,QEt,_X,vX,yX,bX,xX,SX,CX,wX,$Et,eDt,tDt,nDt,rDt,iDt=o((()=>{sP(),kp(),Dh(),_m(),Gm(),Ls(),ar(),tr(),iW(),J6e(),BEt=d(PEt(),1),Dp(),VEt={L:`left`,R:`right`,T:`top`,B:`bottom`},HEt={L:N(e=>`${e},${e/2} 0,${e} 0,0`,`L`),R:N(e=>`0,${e/2} ${e},0 ${e},${e}`,`R`),T:N(e=>`0,0 ${e},0 ${e/2},${e}`,`T`),B:N(e=>`${e/2},0 ${e},${e} 0,${e}`,`B`)},dX={L:N((e,t)=>e-t+2,`L`),R:N((e,t)=>e-2,`R`),T:N((e,t)=>e-t+2,`T`),B:N((e,t)=>e-2,`B`)},UEt=N(function(e){return fX(e)?e===`L`?`R`:`L`:e===`T`?`B`:`T`},`getOppositeArchitectureDirection`),WEt=N(function(e){let t=e;return t===`L`||t===`R`||t===`T`||t===`B`},`isArchitectureDirection`),fX=N(function(e){let t=e;return t===`L`||t===`R`},`isArchitectureDirectionX`),pX=N(function(e){let t=e;return t===`T`||t===`B`},`isArchitectureDirectionY`),mX=N(function(e,t){let n=fX(e)&&pX(t),r=pX(e)&&fX(t);return n||r},`isArchitectureDirectionXY`),GEt=N(function(e){let t=e[0],n=e[1],r=fX(t)&&pX(n),i=pX(t)&&fX(n);return r||i},`isArchitecturePairXY`),KEt=N(function(e){return e!==`LL`&&e!==`RR`&&e!==`TT`&&e!==`BB`},`isValidArchitectureDirectionPair`),hX=N(function(e,t){let n=`${e}${t}`;return KEt(n)?n:void 0},`getArchitectureDirectionPair`),qEt=N(function([e,t],n){let r=n[0],i=n[1];return fX(r)?pX(i)?[e+(r===`L`?-1:1),t+(i===`T`?1:-1)]:[e+(r===`L`?-1:1),t]:fX(i)?[e+(i===`L`?1:-1),t+(r===`T`?1:-1)]:[e,t+(r===`T`?1:-1)]},`shiftPositionByArchitectureDirectionPair`),JEt=N(function(e){return e===`LT`||e===`TL`?[1,1]:e===`BL`||e===`LB`?[1,-1]:e===`BR`||e===`RB`?[-1,-1]:[-1,1]},`getArchitectureDirectionXYFactors`),gX=N(function(e,t){return mX(e,t)?`bend`:fX(e)?`horizontal`:`vertical`},`getArchitectureDirectionAlignment`),YEt=N(function(e){return e.type===`service`},`isArchitectureService`),XEt=N(function(e){return e.type===`junction`},`isArchitectureJunction`),ZEt=N((e,t)=>{let[n,r]=[e,t].sort();return`${JSON.stringify(n)}-${JSON.stringify(r)}`},`architectureGroupAlignmentKey`),QEt=N(e=>e.data(),`edgeData`),_X=N(e=>e.data(),`nodeData`),vX=Wo.architecture,yX=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId=``,this.setAccTitle=Cs,this.getAccTitle=ws,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,this.getAccDescription=Es,this.setAccDescription=Ts,this.clear()}static{N(this,`ArchitectureDB`)}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId=``,Ss()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(n)===`node`)throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`service`,icon:t,iconText:i,title:r,edges:[],in:n})}getServices(){return[...this.nodes.values()].filter(YEt)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)===`node`)throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`junction`,edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(XEt)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(n)===`node`)throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,`group`),this.groups.set(e,{id:e,icon:t,title:r,in:n})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:a,lhsGroup:o,rhsGroup:s,title:l}){if(!WEt(n))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!WEt(r))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let u=this.nodes.get(e).in,d=this.nodes.get(t).in;if(o&&u&&d&&u==d)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&u&&d&&u==d)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let f={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:o,rhsId:t,rhsDir:r,rhsInto:a,rhsGroup:s,title:l};this.edges.push(f);let p=this.nodes.get(e),m=this.nodes.get(t);p&&m&&(p.edges.push(this.edges[this.edges.length-1]),m.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let t=new Set;e.members.forEach(n=>{if(this.registeredIds.get(n)!==`node`)throw Error(`align ${e.direction} references [${n}], which is not a service or junction`);if(t.has(n))throw Error(`align ${e.direction} lists [${n}] more than once`);t.add(n)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,t=new Map;for(let[n,r]of this.nodes.entries()){let i=new Map;for(let t of r.edges){let r=this.getNode(t.lhsId)?.in,a=this.getNode(t.rhsId)?.in;if(r&&a&&r!==a){let n=gX(t.lhsDir,t.rhsDir);n!==`bend`&&e.set(ZEt(r,a),n)}if(t.lhsId===n){let e=hX(t.lhsDir,t.rhsDir);e&&i.set(e,t.rhsId)}else{let e=hX(t.rhsDir,t.lhsDir);e&&i.set(e,t.lhsId)}}t.set(n,i)}let n=new Set,r=new Set(t.keys()),i=N(e=>{let i=new Map([[e,[0,0]]]),a=[e];for(;a.length>0;){let e=a.shift();if(e){n.add(e),r.delete(e);let o=t.get(e);if(!o)throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);let s=i.get(e);if(!s)throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);let[l,u]=s;o.forEach((e,t)=>{n.has(e)||(i.set(e,qEt([l,u],t)),a.push(e))})}}return i},`BFS`),a=[];for(;r.size>0;){let e=r.values().next().value;a.push(i(e))}this.dataStructures={adjList:t,spatialMaps:a,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return Rm({...vX,...ns().architecture})}getConfigField(e){return this.getConfig()[e]}},bX=N((e,t)=>{oP(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:`service`})),e.junctions.map(e=>t.addJunction({...e,type:`junction`})),e.edges.map(e=>t.addEdge(e)),e.alignments?.map(e=>t.addLayoutHint({direction:e.direction,members:[...e.members]}))},`populateDb`),xX={parser:{yy:void 0},parse:N(async e=>{let t=await eW(`architecture`,e);P.debug(t);let n=xX.parser?.yy;if(!(n instanceof yX))throw 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.`);bX(t,n)},`parse`)},SX=N(e=>` + `},`styles`)}})),MEt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=28)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(5);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal==`right`&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical==`top`?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):this.labelPosVertical==`center`&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):this.labelPosVertical==`bottom`&&this.setHeight(n+this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(7),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:te=_,ee=a+-C/O,n[2]=ee,n[3]=te;break;case 2:ee=x,te=o+S*O,n[2]=ee,n[3]=te;break;case 3:te=b,ee=a+C/O,n[2]=ee,n[3]=te;break;case 4:ee=y,te=o+-S*O,n[2]=ee,n[3]=te}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r=0){var d=(-l+Math.sqrt(l*l-4*s*u))/(2*s),f=(-l-Math.sqrt(l*l-4*s*u))/(2*s);return d>=0&&d<=1?[d]:f>=0&&f<=1?[f]:null}return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(5);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){function r(){}r.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t=Math.min(this.m,this.n);this.s=function(e){for(var t=[];e-->0;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=function(e){return function e(t){if(t.length==0)return 0;for(var n=[],r=0;r0;)t.push(0);return t}(this.n),i=function(e){for(var t=[];e-->0;)t.push(0);return t}(this.m),a=!0,o=!0,s=Math.min(this.m-1,this.n),l=Math.max(0,Math.min(this.n-2,this.m)),u=0;u=0;A--)if(this.s[A]!==0){for(var j=A+1;j=0;ae--){if(function(e,t){return e&&t}(ae0;){var he=void 0,ge=void 0;for(he=D-2;he>=-1&&he!==-1;he--)if(Math.abs(n[he])<=me+pe*(Math.abs(this.s[he])+Math.abs(this.s[he+1]))){n[he]=0;break}if(he===D-2)ge=4;else{var _e=void 0;for(_e=D-1;_e>=he&&_e!==he;_e--){var ve=(_e===D?0:Math.abs(n[_e]))+(_e===he+1?0:Math.abs(n[_e-1]));if(Math.abs(this.s[_e])<=me+pe*ve){this.s[_e]=0;break}}_e===he?ge=3:_e===D-1?ge=1:(ge=2,he=_e)}switch(he++,ge){case 1:var ye=n[D-2];n[D-2]=0;for(var be=D-2;be>=he;be--){var xe=r.hypot(this.s[be],ye),Se=this.s[be]/xe,Ce=ye/xe;if(this.s[be]=xe,be!==he&&(ye=-Ce*n[be-1],n[be-1]=Se*n[be-1]),o)for(var we=0;we=this.s[he+1]);){var Ye=this.s[he];if(this.s[he]=this.s[he+1],this.s[he+1]=Ye,o&&heMath.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):t==0?n=0:(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)),n},e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(MEt()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(MEt()):n.coseBase=r(n.layoutBase)})(e,function(e){return(()=>{var t={45:((e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r}),806:((e,t,n)=>{var r=n(551).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,e.exports=i}),767:((e,t,n)=>{var r=n(551).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),880:((e,t,n)=>{var r=n(551).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),578:((e,t,n)=>{var r=n(551).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),765:((e,t,n)=>{var r=n(551).FDLayout,i=n(578),a=n(880),o=n(991),s=n(767),l=n(806),u=n(902),d=n(551).FDLayoutConstants,f=n(551).LayoutConstants,p=n(551).Point,m=n(551).PointD,h=n(551).DimensionD,g=n(551).Layout,_=n(551).Integer,v=n(551).IGeometry,y=n(551).LGraph,b=n(551).Transform,x=n(551).LinkedList;function S(){r.call(this),this.toBeTiled={},this.constraints={}}for(var C in S.prototype=Object.create(r.prototype),r)S[C]=r[C];S.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},S.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},S.prototype.newNode=function(e){return new o(this.graphManager,e)},S.prototype.newEdge=function(e){return new s(null,null,e)},S.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH<10?10:l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},S.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},S.prototype.layout=function(){return f.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},S.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){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return Object.keys(this.constraints).length>0&&(u.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},S.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%d.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-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 e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:d.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=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},S.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n0&&this.updateDisplacements();for(var n=0;n0&&(r.fixedNodeWeight=a)}}if(this.constraints.relativePlacementConstraint){var o=new Map,s=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var u=this.constraints.alignmentConstraint.vertical,n=0;n=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},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(t){if(t.left){var n=o.has(t.left)?o.get(t.left):t.left,r=o.has(t.right)?o.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=s.has(t.top)?s.get(t.top):t.top,a=s.has(t.bottom)?s.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(a)||(e.nodesInRelativeVertical.push(a),e.nodeToRelativeConstraintMapVertical.set(a,[]),e.dummyToNodeForHorizontalAlignment.has(a)?e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(a)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(a).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:a,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(a).push({top:i,gap:t.gap})}});else{var f=new Map,p=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=o.has(e.left)?o.get(e.left):e.left,n=o.has(e.right)?o.get(e.right):e.right;f.has(t)?f.get(t).push(n):f.set(t,[n]),f.has(n)?f.get(n).push(t):f.set(n,[t])}else{var r=s.has(e.top)?s.get(e.top):e.top,i=s.has(e.bottom)?s.get(e.bottom):e.bottom;p.has(r)?p.get(r).push(i):p.set(r,[i]),p.has(i)?p.get(i).push(r):p.set(i,[r])}});var m=function(e,t){var n=[],r=[],i=new x,a=new Set,o=0;return e.forEach(function(s,l){if(!a.has(l)){n[o]=[],r[o]=!1;var u=l;for(i.push(u),a.add(u),n[o].push(u);i.length!=0;)u=i.shift(),t.has(u)&&(r[o]=!0),e.get(u).forEach(function(e){a.has(e)||(i.push(e),a.add(e),n[o].push(e))});o++}}),{components:n,isFixed:r}},h=m(f,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=h.components,this.fixedComponentsOnHorizontal=h.isFixed;var g=m(p,e.fixedNodesOnVertical);this.componentsOnVertical=g.components,this.fixedComponentsOnVertical=g.isFixed}}},S.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(f.WORLD_CENTER_X-o.x/2,f.WORLD_CENTER_Y-o.y/2))},S.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);S.branchRadialLayout(t,null,0,359,0,r);var i=y.calculateBounds(e),a=new b;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=g[0];g.splice(0,1);var y=d.indexOf(_);y>=0&&d.splice(y,1),m--,f--}h=t==null?0:(d.indexOf(g[0])+1)%m;for(var b=Math.abs(r-n)/f,x=h;p!=f;x=++x%m){var C=d[x].getOtherEnd(e);if(C!=t){var w=(n+p*b)%360,T=(w+b)%360;S.branchRadialLayout(C,e,w,T,i+a,a),p++}}},S.maxDiagonalInTree=function(e){for(var t=_.MIN_VALUE,n=0;nt&&(t=r)}return t},S.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},S.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;ui?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):r.labelPosHorizontal==`right`&&r.setWidth(i+r.labelWidth)),r.labelHeight&&(r.labelPosVertical==`top`?(r.rect.y-=r.labelHeight,r.setHeight(a+r.labelHeight),r.labelMarginTop=r.labelHeight):r.labelPosVertical==`center`&&r.labelHeight>a?(r.rect.y-=(r.labelHeight-a)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-a)/2):r.labelPosVertical==`bottom`&&r.setHeight(a+r.labelHeight))}})},S.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,a=t.labelMarginLeft,o=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,a,o)}},S.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop,o=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a,o,s)})},S.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},S.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rd&&(d=p.rect.height)}n+=d+e.verticalPadding}},S.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.rect.width,o=i.rect.height;i.labelWidth&&(i.labelPosHorizontal==`left`?(i.rect.x-=i.labelWidth,i.setWidth(a+i.labelWidth),i.labelMarginLeft=i.labelWidth):i.labelPosHorizontal==`center`&&i.labelWidth>a?(i.rect.x-=(i.labelWidth-a)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-a)/2):i.labelPosHorizontal==`right`&&i.setWidth(a+i.labelWidth)),i.labelHeight&&(i.labelPosVertical==`top`?(i.rect.y-=i.labelHeight,i.setHeight(o+i.labelHeight),i.labelMarginTop=i.labelHeight):i.labelPosVertical==`center`&&i.labelHeight>o?(i.rect.y-=(i.labelHeight-o)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-o)/2):i.labelPosVertical==`bottom`&&i.setHeight(o+i.labelHeight))}})},S.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)s&&(s=e.getWidth())});var u=a/i,d=o/i,f=(n-r)**2+4*(u+r)*(d+n)*i,p=(r-n+Math.sqrt(f))/(2*(u+r)),m;t?(m=Math.ceil(p),m==p&&m++):m=Math.floor(p);var h=m*(u+r)-r;return s>h&&(h=s),h+=r*2,h},S.prototype.tileNodesByFavoringDim=function(e,t,n){var r=l.TILING_PADDING_VERTICAL,i=l.TILING_PADDING_HORIZONTAL,a=l.TILING_COMPARE_BY,o={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:r,horizontalPadding:i,centerX:0,centerY:0};a&&(o.idealRowWidth=this.calcIdealRowWidth(e,n));var s=function(e){return e.rect.width*e.rect.height},u=function(e,t){return s(t)-s(e)};e.sort(function(e,t){var n=u;return o.idealRowWidth?(n=a,n(e.id,t.id)):n(e,t)});for(var d=0,f=0,p=0;p0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},S.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},S.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var a=e.rowWidth[i];if(a+e.horizontalPadding+t<=e.width)return!0;var o=0;e.rowHeight[i]0&&(o=n+e.verticalPadding-e.rowHeight[i]);var s=e.width-a>=t+e.horizontalPadding?(e.height+o)/(a+t+e.horizontalPadding):(e.height+o)/e.width;o=n+e.verticalPadding;var l=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var f=i;f<=a;f++)u[0]+=this.grid[f][o-1].length+this.grid[f][o].length-1;if(a0)for(var f=o;f<=s;f++)u[3]+=this.grid[i-1][f].length+this.grid[i][f].length-1;for(var p=_.MAX_VALUE,m,h,g=0;g{var r=n(551).FDLayoutNode,i=n(551).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i{function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){var a=0;r.forEach(function(e){t==`horizontal`?(p.set(e,l.has(e)?u[l.get(e)]:i.get(e)),a+=p.get(e)):(p.set(e,l.has(e)?d[l.get(e)]:i.get(e)),a+=p.get(e))}),a/=r.length,e.forEach(function(e){n.has(e)||p.set(e,a)})}else{var o=0;e.forEach(function(e){o+=t==`horizontal`?l.has(e)?u[l.get(e)]:i.get(e):l.has(e)?d[l.get(e)]:i.get(e)}),o/=e.length,e.forEach(function(e){p.set(e,o)})}});for(var g=function(){var r=h.shift();e.get(r).forEach(function(e){if(p.get(e.id)o&&(o=y),bs&&(s=b)}}catch(e){m=!0,h=e}finally{try{!f&&g.return&&g.return()}finally{if(m)throw h}}var x=(r+o)/2-(a+s)/2,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),E;!(S=(E=T.next()).done);S=!0){var D=E.value;p.set(D,p.get(D)+x)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}})}return p},y=function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?u[l.get(e.left)]-u[l.get(e.right)]>=0?t++:n++:d[l.get(e.top)]-d[l.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var a=0;an)for(var o=0;oi)for(var s=0;s1)t.fixedNodeConstraint.forEach(function(e,t){C[t]=[e.position.x,e.position.y],w[t]=[u[l.get(e.nodeId)],d[l.get(e.nodeId)]]}),T=!0;else if(t.alignmentConstraint)(function(){var e=0;if(t.alignmentConstraint.vertical){for(var n=t.alignmentConstraint.vertical,i=function(t){var i=new Set;n[t].forEach(function(e){i.add(e)});var a=new Set([].concat(r(i)).filter(function(e){return D.has(e)})),o=void 0;o=a.size>0?u[l.get(a.values().next().value)]:_(i).x,n[t].forEach(function(t){C[e]=[o,d[l.get(t)]],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},a=0;a0?u[l.get(i.values().next().value)]:_(n).y,o[t].forEach(function(t){C[e]=[u[l.get(t)],a],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},f=0;fj&&(j=A[ee].length,M=ee);if(j0){var ge={x:0,y:0};t.fixedNodeConstraint.forEach(function(e,t){var n={x:u[l.get(e.nodeId)],y:d[l.get(e.nodeId)]},r=e.position,i=g(r,n);ge.x+=i.x,ge.y+=i.y}),ge.x/=t.fixedNodeConstraint.length,ge.y/=t.fixedNodeConstraint.length,u.forEach(function(e,t){u[t]+=ge.x}),d.forEach(function(e,t){d[t]+=ge.y}),t.fixedNodeConstraint.forEach(function(e){u[l.get(e.nodeId)]=e.position.x,d[l.get(e.nodeId)]=e.position.y})}if(t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var _e=t.alignmentConstraint.vertical,ve=function(e){var t=new Set;_e[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return D.has(e)})),i=void 0;i=n.size>0?u[l.get(n.values().next().value)]:_(t).x,t.forEach(function(e){D.has(e)||(u[l.get(e)]=i)})},ye=0;ye<_e.length;ye++)ve(ye);if(t.alignmentConstraint.horizontal)for(var be=t.alignmentConstraint.horizontal,xe=function(e){var t=new Set;be[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return D.has(e)})),i=void 0;i=n.size>0?d[l.get(n.values().next().value)]:_(t).y,t.forEach(function(e){D.has(e)||(d[l.get(e)]=i)})},Se=0;Se{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(45)})()})})),NEt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(dX()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeFcose=r(dX()):n.cytoscapeFcose=r(n.coseBase)})(e,function(e){return(()=>{var t={658:(e=>{e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),548:((e,t,n)=>{var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=n(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(e){for(var t={},n=0;n0&&u.merge(e)});for(var d=0;d1){u=s[0],d=u.connectedEdges().length,s.forEach(function(e){e.connectedEdges().length0&&r.set(`dummy`+(r.size+1),m),h},a.relocateComponent=function(e,t,n){if(!n.fixedNodeConstraint){var i=1/0,a=-1/0,o=1/0,s=-1/0;if(n.quality==`draft`){var l=!0,u=!1,d=void 0;try{for(var f=t.nodeIndexes[Symbol.iterator](),p;!(l=(p=f.next()).done);l=!0){var m=p.value,h=r(m,2),g=h[0],_=h[1],v=n.cy.getElementById(g);if(v){var y=v.boundingBox(),b=t.xCoords[_]-y.w/2,x=t.xCoords[_]+y.w/2,S=t.yCoords[_]-y.h/2,C=t.yCoords[_]+y.h/2;ba&&(a=x),Ss&&(s=C)}}}catch(e){u=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(u)throw d}}var w=e.x-(a+i)/2,T=e.y-(s+o)/2;t.xCoords=t.xCoords.map(function(e){return e+w}),t.yCoords=t.yCoords.map(function(e){return e+T})}else{Object.keys(t).forEach(function(e){var n=t[e],r=n.getRect().x,l=n.getRect().x+n.getRect().width,u=n.getRect().y,d=n.getRect().y+n.getRect().height;ra&&(a=l),us&&(s=d)});var E=e.x-(a+i)/2,D=e.y-(s+o)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+E,n.getCenterY()+D)})}}},a.calcBoundingBox=function(e,t,n,r){for(var i=2**53-1,a=-(2**53-1),o=2**53-1,s=-(2**53-1),l=void 0,u=void 0,d=void 0,f=void 0,p=e.descendants().not(`:parent`),m=p.length,h=0;hl&&(i=l),ad&&(o=d),s{var r=n(548),i=n(140).CoSELayout,a=n(140).CoSENode,o=n(140).layoutBase.PointD,s=n(140).layoutBase.DimensionD,l=n(140).layoutBase.LayoutConstants,u=n(140).layoutBase.FDLayoutConstants,d=n(140).CoSEConstants;e.exports={coseLayout:function(e,t){var n=e.cy,f=e.eles,p=f.nodes(),m=f.edges(),h=void 0,g=void 0,_=void 0,v={};e.randomize&&(h=t.nodeIndexes,g=t.xCoords,_=t.yCoords);var y=function(e){return typeof e==`function`},b=function(e,t){return y(e)?e(t):e},x=r.calcParentsWithoutChildren(n,f),S=function e(t,n,i,l){for(var u=n.length,d=0;d0){var C=void 0;C=i.getGraphManager().add(i.newGraph(),m),e(C,p,i,l)}}},C=function(t,n,r){for(var i=0,a=0,o=0;o0?i/a:y(e.idealEdgeLength)?50:e.idealEdgeLength,d.MIN_REPULSION_DIST=u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH)},w=function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)};e.nestingFactor!=null&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(d.DEFAULT_GRAVITY_STRENGTH=u.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(d.MAX_ITERATIONS=u.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=u.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.tilingCompareBy!=null&&(d.TILING_COMPARE_BY=e.tilingCompareBy),l.QUALITY=e.quality==`proof`?2:0,d.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!e.randomize,d.ANIMATE=u.ANIMATE=l.ANIMATE=e.animate,d.TILE=e.tile,d.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!e.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,e.step==`transformed`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),e.step==`enforced`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),e.step==`cose`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),e.step==`all`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!!e.randomize,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),d.TREE_REDUCTION_ON_INCREMENTAL=!(e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint);var T=new i,E=T.newGraphManager();return S(E.addRoot(),r.getTopMostNodes(p),T,e),C(T,E,m),w(T,e),T.runLayout(),v}}}),212:((e,t,n)=>{var r=function(){function e(e,t){for(var n=0;n0){if(p){var m=o.getTopMostNodes(t.eles.nodes());if(u=o.connectComponents(n,t.eles,m),u.forEach(function(e){var t=e.boundingBox();d.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),t.randomize&&u.forEach(function(e){t.eles=e,i.push(s(t))}),t.quality=="default"||t.quality==`proof`){var h=n.collection();if(t.tile){var g=new Map,_=[],v=[],y=0,b={nodeIndexes:g,xCoords:_,yCoords:v},x=[];if(u.forEach(function(e,t){e.edges().length==0&&(e.nodes().forEach(function(t,n){h.merge(e.nodes()[n]),t.isParent()||(b.nodeIndexes.set(e.nodes()[n].id(),y++),b.xCoords.push(e.nodes()[0].position().x),b.yCoords.push(e.nodes()[0].position().y))}),x.push(t))}),h.length>1){var S=h.boundingBox();d.push({x:S.x1+S.w/2,y:S.y1+S.h/2}),u.push(h),i.push(b);for(var C=x.length-1;C>=0;C--)u.splice(x[C],1),i.splice(x[C],1),d.splice(x[C],1)}}u.forEach(function(e,n){t.eles=e,a.push(l(t,i[n])),o.relocateComponent(d[n],a[n],t)})}else u.forEach(function(e,n){o.relocateComponent(d[n],i[n],t)});var w=new Set;if(u.length>1){var T=[],E=r.filter(function(e){return e.css(`display`)==`none`});u.forEach(function(e,n){var r=void 0;if(t.quality==`draft`&&(r=i[n].nodeIndexes),e.nodes().not(E).length>0){var s={};s.edges=[],s.nodes=[];var l=void 0;e.nodes().not(E).forEach(function(e){if(t.quality==`draft`){if(!e.isParent())l=r.get(e.id()),s.nodes.push({x:i[n].xCoords[l]-e.boundingbox().w/2,y:i[n].yCoords[l]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else{var u=o.calcBoundingBox(e,i[n].xCoords,i[n].yCoords,r);s.nodes.push({x:u.topLeftX,y:u.topLeftY,width:u.width,height:u.height})}}else a[n][e.id()]&&s.nodes.push({x:a[n][e.id()].getLeft(),y:a[n][e.id()].getTop(),width:a[n][e.id()].getWidth(),height:a[n][e.id()].getHeight()})}),e.edges().forEach(function(e){var l=e.source(),u=e.target();if(l.css(`display`)!=`none`&&u.css(`display`)!=`none`){if(t.quality==`draft`){var d=r.get(l.id()),f=r.get(u.id()),p=[],m=[];if(l.isParent()){var h=o.calcBoundingBox(l,i[n].xCoords,i[n].yCoords,r);p.push(h.topLeftX+h.width/2),p.push(h.topLeftY+h.height/2)}else p.push(i[n].xCoords[d]),p.push(i[n].yCoords[d]);if(u.isParent()){var g=o.calcBoundingBox(u,i[n].xCoords,i[n].yCoords,r);m.push(g.topLeftX+g.width/2),m.push(g.topLeftY+g.height/2)}else m.push(i[n].xCoords[f]),m.push(i[n].yCoords[f]);s.edges.push({startX:p[0],startY:p[1],endX:m[0],endY:m[1]})}else a[n][l.id()]&&a[n][u.id()]&&s.edges.push({startX:a[n][l.id()].getCenterX(),startY:a[n][l.id()].getCenterY(),endX:a[n][u.id()].getCenterX(),endY:a[n][u.id()].getCenterY()})}}),s.nodes.length>0&&(T.push(s),w.add(n))}});var D=f.packComponents(T,t.randomize).shifts;if(t.quality==`draft`)i.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+D[t].dx}),r=e.yCoords.map(function(e){return e+D[t].dy});e.xCoords=n,e.yCoords=r});else{var O=0;w.forEach(function(e){Object.keys(a[e]).forEach(function(t){var n=a[e][t];n.setCenter(n.getCenterX()+D[O].dx,n.getCenterY()+D[O].dy)}),O++})}}}else{var k=t.eles.boundingBox();if(d.push({x:k.x1+k.w/2,y:k.y1+k.h/2}),t.randomize){var A=s(t);i.push(A)}t.quality=="default"||t.quality==`proof`?(a.push(l(t,i[0])),o.relocateComponent(d[0],a[0],t)):o.relocateComponent(d[0],i[0],t)}}var j=function(e,n){if(t.quality=="default"||t.quality==`proof`){typeof e==`number`&&(e=n);var r=void 0,o=void 0,s=e.data(`id`);return a.forEach(function(e){s in e&&(r={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},o=e[s])}),t.nodeDimensionsIncludeLabels&&(o.labelWidth&&(o.labelPosHorizontal==`left`?r.x+=o.labelWidth/2:o.labelPosHorizontal==`right`&&(r.x-=o.labelWidth/2)),o.labelHeight&&(o.labelPosVertical==`top`?r.y+=o.labelHeight/2:o.labelPosVertical==`bottom`&&(r.y-=o.labelHeight/2))),r??={x:e.position(`x`),y:e.position(`y`)},{x:r.x,y:r.y}}var l=void 0;return i.forEach(function(t){var n=t.nodeIndexes.get(e.id());n!=null&&(l={x:t.xCoords[n],y:t.yCoords[n]})}),l??={x:e.position(`x`),y:e.position(`y`)},{x:l.x,y:l.y}};if(t.quality=="default"||t.quality==`proof`||t.randomize){var M=o.calcParentsWithoutChildren(n,r),ee=r.filter(function(e){return e.css(`display`)==`none`});t.eles=r.not(ee),r.nodes().not(`:parent`).not(ee).layoutPositions(e,t,j),M.length>0&&M.forEach(function(e){e.position(j(e))})}else console.log(`If randomize option is set to false, then quality option must be 'default' or 'proof'.`)}}]),e}()}),657:((e,t,n)=>{var r=n(548),i=n(140).layoutBase.Matrix,a=n(140).layoutBase.SVD;e.exports={spectralLayout:function(e){var t=e.cy,n=e.eles,o=n.nodes(),s=n.nodes(`:parent`),l=new Map,u=new Map,d=new Map,f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=[],b=void 0,x=1e8,S=1e-9,C=e.piTol,w=e.samplingType,T=e.nodeSeparation,E=void 0,D=function(){for(var e=0,t=0,n=!1;t=i;){o=r[i++];for(var h=f[o],v=0;vd&&(d=g[S],p=S)}return p},k=function(e){var t=void 0;if(e){t=Math.floor(Math.random()*b);for(var n=0;n=1)break;d=u}for(var g=0;g=1)break;d=u}for(var x=0;x0&&(r.isParent()?f[t].push(d.get(r.id())):f[t].push(r.id()))})});var ce=function(e){var n=u.get(e),r=void 0;l.get(e).forEach(function(i){r=t.getElementById(i).isParent()?d.get(i):i,f[n].push(r),f[u.get(r)].push(e)})},le=!0,ue=!1,de=void 0;try{for(var fe=l.keys()[Symbol.iterator](),pe;!(le=(pe=fe.next()).done);le=!0){var me=pe.value;ce(me)}}catch(e){ue=!0,de=e}finally{try{!le&&fe.return&&fe.return()}finally{if(ue)throw de}}b=u.size;var he=void 0;if(b>2){E=b{var r=n(212),i=function(e){e&&e(`layout`,`fcose`,r)};typeof cytoscape<`u`&&i(cytoscape),e.exports=i}),140:(t=>{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(579)})()})})),fX=l({diagram:()=>tDt});function pX(e,t){if(e===0)return t();let n=Math.random,r=e>>>0;Math.random=function(){r=r+1831565813>>>0;let e=r;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296};try{return t()}finally{Math.random=n}}function mX(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`service`,id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-service`})})}function hX(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`junction`,id:e.id,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-junction`})})}function PEt(e,t){t.nodes().map(t=>{let n=DX(t);n.type!==`group`&&(n.x=t.position().x,n.y=t.position().y,e.getElementById(n.id).attr(`transform`,`translate(`+(n.x||0)+`,`+(n.y||0)+`)`))})}function FEt(e,t){e.forEach(e=>{t.add({group:`nodes`,data:{type:`group`,id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:`node-group`})})}function IEt(e,t){e.forEach(e=>{let{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:a,rhsInto:o,lhsDir:s,rhsDir:l,rhsGroup:u,title:d}=e,f=UEt(e.lhsDir,e.rhsDir)?`segments`:`straight`,p={id:`${n}-${r}`,label:d,source:n,sourceDir:s,sourceArrow:i,sourceGroup:a,sourceEndpoint:s===`L`?`0 50%`:s===`R`?`100% 50%`:s===`T`?`50% 0`:`50% 100%`,target:r,targetDir:l,targetArrow:o,targetGroup:u,targetEndpoint:l===`L`?`0 50%`:l===`R`?`100% 50%`:l===`T`?`50% 0`:`50% 100%`};t.add({group:`edges`,data:p,classes:f})})}function LEt(e,t,n,r=[]){let i=N((e,t)=>{let r=new Map;for(let[i,a]of e.entries()){let e=`${i}`,o=0,s=[...a.entries()];if(s.length===1){r.set(e,s[0][1]);continue}for(let i=0;i{let n=new Map,r=new Map;return t.forEach(([t,i],a)=>{let o=e.getNode(a)?.in??`default`,s=n.get(i)??new Map;n.has(i)||n.set(i,s);let l=r.get(t)??new Map;r.has(t)||r.set(t,l);for(let e of[s,l]){let t=e.get(o)??[];e.has(o)||e.set(o,t),t.push(a)}}),{horiz:[...i(n,`horizontal`).values()].filter(e=>e.length>1),vert:[...i(r,`vertical`).values()].filter(e=>e.length>1)}}).reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]),s=new Set;r.forEach(e=>e.members.forEach(e=>s.add(e)));let l=N(e=>e.filter(e=>!e.some(e=>s.has(e))),`dropOverlapping`),u=l(a),d=l(o);return r.forEach(e=>{e.members.length<2||(e.direction===`row`?u.push([...e.members]):d.push([...e.members]))}),{horizontal:u,vertical:d}}function REt(e,t,n=[]){let r=[],i=t.getConfigField(`iconSize`),a=t.getConfigField(`idealEdgeLengthMultiplier`),o=a*i,s=new Set;n.forEach(e=>{for(let t=0;t`${e[0]},${e[1]}`,`posToStr`),u=N(e=>e.split(`,`).map(e=>parseInt(e)),`strToPos`);return e.forEach(e=>{let t=new Map([...e.entries()].map(([e,t])=>[l(t),e])),n=[l([0,0])],o={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;n.length>0;){let e=n.shift();if(e){o[e]=1;let f=t.get(e);if(f){let p=u(e);Object.entries(d).forEach(([e,u])=>{let d=l([p[0]+u[0],p[1]+u[1]]),m=t.get(d);if(m&&!o[d]){if(n.push(d),s.has(`${f}|${m}`))return;r.push({[VEt[e]]:m,[VEt[HEt(e)]]:f,gap:a*i})}})}}}}),r}function zEt(e,t,n,r,i,{spatialMaps:a,groupAlignments:o}){return new Promise(s=>{let l=Bc(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),u=LM({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`straight`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`edge[label]`,style:{label:`data(label)`}},{selector:`edge.segments`,style:{"curve-style":`segments`,"segment-weights":`0`,"segment-distances":[.5],"edge-distances":`endpoints`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`node`,style:{"compound-sizing-wrt-labels":`include`}},{selector:`node[label]`,style:{"text-valign":`bottom`,"text-halign":`center`,"font-size":`${i.getConfigField(`fontSize`)}px`}},{selector:`.node-service`,style:{label:`data(label)`,width:`data(width)`,height:`data(height)`}},{selector:`.node-junction`,style:{width:`data(width)`,height:`data(height)`}},{selector:`.node-group`,style:{padding:`${i.getConfigField(`padding`)}px`}}],layout:{name:`grid`,boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),FEt(n,u),mX(e,u,i),hX(t,u,i),IEt(r,u);let d=i.getLayoutHints(),f=LEt(i,a,o,d),p=REt(a,i,d),m=i.getConfigField(`iconSize`),h=i.getConfigField(`idealEdgeLengthMultiplier`)*m,g=.5*m,_=i.getConfigField(`edgeElasticity`),v=i.getConfigField(`seed`),y=u.layout({name:`fcose`,quality:`proof`,randomize:i.getConfigField(`randomize`),nodeSeparation:i.getConfigField(`nodeSeparation`),numIter:i.getConfigField(`numIter`),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,n]=e.connectedNodes(),{parent:r}=DX(t),{parent:i}=DX(n);return r===i?h:g},edgeElasticity(e){let[t,n]=e.connectedNodes(),{parent:r}=DX(t),{parent:i}=DX(n);return r===i?_:.001},alignmentConstraint:f,relativePlacementConstraint:p});y.one(`layoutstop`,()=>{function e(e,t,n,r){let i,a,{x:o,y:s}=e,{x:l,y:u}=t;a=(r-s+(o-n)*(s-u)/(o-l))/Math.sqrt(1+((s-u)/(o-l))**2),i=Math.sqrt((r-s)**2+(n-o)**2-a**2);let d=Math.sqrt((l-o)**2+(u-s)**2);i/=d;let f=(l-o)*(r-s)-(u-s)*(n-o);switch(!0){case f>=0:f=1;break;case f<0:f=-1}let p=(l-o)*(n-o)+(u-s)*(r-s);switch(!0){case p>=0:p=1;break;case p<0:p=-1}return a=Math.abs(a)*f,i*=p,{distances:a,weights:i}}N(e,`getSegmentWeights`),u.startBatch();for(let t of Object.values(u.edges()))if(t.data?.()){let{x:n,y:r}=t.source().position(),{x:i,y:a}=t.target().position();if(n!==i&&r!==a){let n=t.sourceEndpoint(),r=t.targetEndpoint(),{sourceDir:i}=EX(t),[a,o]=bX(i)?[n.x,r.y]:[r.x,n.y],{weights:s,distances:l}=e(n,r,a,o);t.style(`segment-distances`,l),t.style(`segment-weights`,s)}}u.endBatch(),pX(v,()=>y.run())});try{pX(v,()=>y.run())}catch(e){throw e instanceof RangeError&&e.message.includes(`Invalid array length`)?Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):e}u.ready(e=>{P.info(`Ready`,e),s(u)})})}var BEt,VEt,gX,_X,HEt,vX,yX,bX,UEt,xX,WEt,SX,GEt,KEt,qEt,CX,wX,TX,EX,DX,OX,kX,JEt,YEt,XEt,AX,jX,ZEt,QEt,$Et,eDt,tDt,nDt=o((()=>{sP(),kp(),Bh(),bm(),qm(),Os(),er(),Zn(),nW(),RM(),BEt=d(NEt(),1),Dp(),VEt={L:`left`,R:`right`,T:`top`,B:`bottom`},gX={L:N(e=>`${e},${e/2} 0,${e} 0,0`,`L`),R:N(e=>`0,${e/2} ${e},0 ${e},${e}`,`R`),T:N(e=>`0,0 ${e},0 ${e/2},${e}`,`T`),B:N(e=>`${e/2},0 ${e},${e} 0,${e}`,`B`)},_X={L:N((e,t)=>e-t+2,`L`),R:N((e,t)=>e-2,`R`),T:N((e,t)=>e-t+2,`T`),B:N((e,t)=>e-2,`B`)},HEt=N(function(e){return yX(e)?e===`L`?`R`:`L`:e===`T`?`B`:`T`},`getOppositeArchitectureDirection`),vX=N(function(e){let t=e;return t===`L`||t===`R`||t===`T`||t===`B`},`isArchitectureDirection`),yX=N(function(e){let t=e;return t===`L`||t===`R`},`isArchitectureDirectionX`),bX=N(function(e){let t=e;return t===`T`||t===`B`},`isArchitectureDirectionY`),UEt=N(function(e,t){let n=yX(e)&&bX(t),r=bX(e)&&yX(t);return n||r},`isArchitectureDirectionXY`),xX=N(function(e){let t=e[0],n=e[1],r=yX(t)&&bX(n),i=bX(t)&&yX(n);return r||i},`isArchitecturePairXY`),WEt=N(function(e){return e!==`LL`&&e!==`RR`&&e!==`TT`&&e!==`BB`},`isValidArchitectureDirectionPair`),SX=N(function(e,t){let n=`${e}${t}`;return WEt(n)?n:void 0},`getArchitectureDirectionPair`),GEt=N(function([e,t],n){let r=n[0],i=n[1];return yX(r)?bX(i)?[e+(r===`L`?-1:1),t+(i===`T`?1:-1)]:[e+(r===`L`?-1:1),t]:yX(i)?[e+(i===`L`?1:-1),t+(r===`T`?1:-1)]:[e,t+(r===`T`?1:-1)]},`shiftPositionByArchitectureDirectionPair`),KEt=N(function(e){return e===`LT`||e===`TL`?[1,1]:e===`BL`||e===`LB`?[1,-1]:e===`BR`||e===`RB`?[-1,-1]:[-1,1]},`getArchitectureDirectionXYFactors`),qEt=N(function(e,t){return UEt(e,t)?`bend`:yX(e)?`horizontal`:`vertical`},`getArchitectureDirectionAlignment`),CX=N(function(e){return e.type===`service`},`isArchitectureService`),wX=N(function(e){return e.type===`junction`},`isArchitectureJunction`),TX=N((e,t)=>{let[n,r]=[e,t].sort();return`${JSON.stringify(n)}-${JSON.stringify(r)}`},`architectureGroupAlignmentKey`),EX=N(e=>e.data(),`edgeData`),DX=N(e=>e.data(),`nodeData`),OX=Fo.architecture,kX=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId=``,this.setAccTitle=ps,this.getAccTitle=ms,this.setDiagramTitle=_s,this.getDiagramTitle=vs,this.getAccDescription=gs,this.setAccDescription=hs,this.clear()}static{N(this,`ArchitectureDB`)}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId=``,fs()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(n)===`node`)throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`service`,icon:t,iconText:i,title:r,edges:[],in:n})}getServices(){return[...this.nodes.values()].filter(CX)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)===`node`)throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`junction`,edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(wX)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(n)===`node`)throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,`group`),this.groups.set(e,{id:e,icon:t,title:r,in:n})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:a,lhsGroup:o,rhsGroup:s,title:l}){if(!vX(n))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!vX(r))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let u=this.nodes.get(e).in,d=this.nodes.get(t).in;if(o&&u&&d&&u==d)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&u&&d&&u==d)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let f={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:o,rhsId:t,rhsDir:r,rhsInto:a,rhsGroup:s,title:l};this.edges.push(f);let p=this.nodes.get(e),m=this.nodes.get(t);p&&m&&(p.edges.push(this.edges[this.edges.length-1]),m.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let t=new Set;e.members.forEach(n=>{if(this.registeredIds.get(n)!==`node`)throw Error(`align ${e.direction} references [${n}], which is not a service or junction`);if(t.has(n))throw Error(`align ${e.direction} lists [${n}] more than once`);t.add(n)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,t=new Map;for(let[n,r]of this.nodes.entries()){let i=new Map;for(let t of r.edges){let r=this.getNode(t.lhsId)?.in,a=this.getNode(t.rhsId)?.in;if(r&&a&&r!==a){let n=qEt(t.lhsDir,t.rhsDir);n!==`bend`&&e.set(TX(r,a),n)}if(t.lhsId===n){let e=SX(t.lhsDir,t.rhsDir);e&&i.set(e,t.rhsId)}else{let e=SX(t.rhsDir,t.lhsDir);e&&i.set(e,t.lhsId)}}t.set(n,i)}let n=new Set,r=new Set(t.keys()),i=N(e=>{let i=new Map([[e,[0,0]]]),a=[e];for(;a.length>0;){let e=a.shift();if(e){n.add(e),r.delete(e);let o=t.get(e);if(!o)throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);let s=i.get(e);if(!s)throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);let[l,u]=s;o.forEach((e,t)=>{n.has(e)||(i.set(e,GEt([l,u],t)),a.push(e))})}}return i},`BFS`),a=[];for(;r.size>0;){let e=r.values().next().value;a.push(i(e))}this.dataStructures={adjList:t,spatialMaps:a,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return Bm({...OX,...Xo().architecture})}getConfigField(e){return this.getConfig()[e]}},JEt=N((e,t)=>{oP(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:`service`})),e.junctions.map(e=>t.addJunction({...e,type:`junction`})),e.edges.map(e=>t.addEdge(e)),e.alignments?.map(e=>t.addLayoutHint({direction:e.direction,members:[...e.members]}))},`populateDb`),YEt={parser:{yy:void 0},parse:N(async e=>{let t=await QU(`architecture`,e);P.debug(t);let n=YEt.parser?.yy;if(!(n instanceof kX))throw 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.`);JEt(t,n)},`parse`)},XEt=N(e=>` .edge { stroke-width: ${e.archEdgeWidth}; stroke: ${e.archEdgeColor}; @@ -3596,19 +3598,19 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l display: -webkit-box; -webkit-box-orient: vertical; } -`,`getStyles`),N(IEt,`withSeededRandom`),CX=N(e=>`${e}`,`wrapIcon`),wX={prefix:`mermaid-architecture`,height:80,width:80,icons:{database:{body:CX(``)},server:{body:CX(``)},disk:{body:CX(``)},internet:{body:CX(``)},cloud:{body:CX(``)},unknown:bEe,blank:{body:CX(``)}}},$Et=N(async function(e,t,n,r){let i=n.getConfigField(`padding`),a=n.getConfigField(`iconSize`),o=a/2,s=a/6,l=s/2;await Promise.all(t.edges().map(async t=>{let{source:a,sourceDir:u,sourceArrow:d,sourceGroup:f,target:p,targetDir:m,targetArrow:h,targetGroup:g,label:_}=QEt(t),{x:v,y}=t[0].sourceEndpoint(),{x:b,y:x}=t[0].midpoint(),{x:S,y:C}=t[0].targetEndpoint(),w=i+4;if(f&&(fX(u)?v+=u===`L`?-w:w:y+=u===`T`?-w:w+18),g&&(fX(m)?S+=m===`L`?-w:w:C+=m===`T`?-w:w+18),!f&&n.getNode(a)?.type===`junction`&&(fX(u)?v+=u===`L`?o:-o:y+=u===`T`?o:-o),!g&&n.getNode(p)?.type===`junction`&&(fX(m)?S+=m===`L`?o:-o:C+=m===`T`?o:-o),t[0]._private.rscratch){let t=e.insert(`g`);if(t.insert(`path`).attr(`d`,`M ${v},${y} L ${b},${x} L${S},${C} `).attr(`class`,`edge`).attr(`id`,`${r}-${Wm(a,p,{prefix:`L`})}`),d){let e=fX(u)?dX[u](v,s):v-l,n=pX(u)?dX[u](y,s):y-l;t.insert(`polygon`).attr(`points`,HEt[u](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(h){let e=fX(m)?dX[m](S,s):S-l,n=pX(m)?dX[m](C,s):C-l;t.insert(`polygon`).attr(`points`,HEt[m](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(_){let e=mX(u,m)?`XY`:fX(u)?`X`:`Y`,n=0;n=e===`X`?Math.abs(v-S):e===`Y`?Math.abs(y-C)/1.5:Math.abs(v-S)/2;let r=t.append(`g`);if(await Eh(r,_,{useHtmlLabels:!1,width:n,classes:`architecture-service-label`},As()),r.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e===`X`)r.attr(`transform`,`translate(`+b+`, `+x+`)`);else if(e===`Y`)r.attr(`transform`,`translate(`+b+`, `+x+`) rotate(-90)`);else if(e===`XY`){let e=hX(u,m);if(e&&GEt(e)){let t=r.node().getBoundingClientRect(),[n,i]=JEt(e);r.attr(`dominant-baseline`,`auto`).attr(`transform`,`rotate(${-1*n*i*45})`);let a=r.node().getBoundingClientRect();r.attr(`transform`,` +`,`getStyles`),N(pX,`withSeededRandom`),AX=N(e=>`${e}`,`wrapIcon`),jX={prefix:`mermaid-architecture`,height:80,width:80,icons:{database:{body:AX(``)},server:{body:AX(``)},disk:{body:AX(``)},internet:{body:AX(``)},cloud:{body:AX(``)},unknown:CEe,blank:{body:AX(``)}}},ZEt=N(async function(e,t,n,r){let i=n.getConfigField(`padding`),a=n.getConfigField(`iconSize`),o=a/2,s=a/6,l=s/2;await Promise.all(t.edges().map(async t=>{let{source:a,sourceDir:u,sourceArrow:d,sourceGroup:f,target:p,targetDir:m,targetArrow:h,targetGroup:g,label:_}=EX(t),{x:v,y}=t[0].sourceEndpoint(),{x:b,y:x}=t[0].midpoint(),{x:S,y:C}=t[0].targetEndpoint(),w=i+4;if(f&&(yX(u)?v+=u===`L`?-w:w:y+=u===`T`?-w:w+18),g&&(yX(m)?S+=m===`L`?-w:w:C+=m===`T`?-w:w+18),!f&&n.getNode(a)?.type===`junction`&&(yX(u)?v+=u===`L`?o:-o:y+=u===`T`?o:-o),!g&&n.getNode(p)?.type===`junction`&&(yX(m)?S+=m===`L`?o:-o:C+=m===`T`?o:-o),t[0]._private.rscratch){let t=e.insert(`g`);if(t.insert(`path`).attr(`d`,`M ${v},${y} L ${b},${x} L${S},${C} `).attr(`class`,`edge`).attr(`id`,`${r}-${Km(a,p,{prefix:`L`})}`),d){let e=yX(u)?_X[u](v,s):v-l,n=bX(u)?_X[u](y,s):y-l;t.insert(`polygon`).attr(`points`,gX[u](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(h){let e=yX(m)?_X[m](S,s):S-l,n=bX(m)?_X[m](C,s):C-l;t.insert(`polygon`).attr(`points`,gX[m](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(_){let e=UEt(u,m)?`XY`:yX(u)?`X`:`Y`,n=0;n=e===`X`?Math.abs(v-S):e===`Y`?Math.abs(y-C)/1.5:Math.abs(v-S)/2;let r=t.append(`g`);if(await zh(r,_,{useHtmlLabels:!1,width:n,classes:`architecture-service-label`},bs()),r.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e===`X`)r.attr(`transform`,`translate(`+b+`, `+x+`)`);else if(e===`Y`)r.attr(`transform`,`translate(`+b+`, `+x+`) rotate(-90)`);else if(e===`XY`){let e=SX(u,m);if(e&&xX(e)){let t=r.node().getBoundingClientRect(),[n,i]=KEt(e);r.attr(`dominant-baseline`,`auto`).attr(`transform`,`rotate(${-1*n*i*45})`);let a=r.node().getBoundingClientRect();r.attr(`transform`,` translate(${b}, ${x-t.height/2}) translate(${n*a.width/2}, ${i*a.height/2}) rotate(${-1*n*i*45}, 0, ${t.height/2}) - `)}}}}}))},`drawEdges`),eDt=N(async function(e,t,n,r){let i=n.getConfigField(`padding`)*.75,a=n.getConfigField(`fontSize`),o=n.getConfigField(`iconSize`)/2;await Promise.all(t.nodes().map(async t=>{let s=_X(t);if(s.type===`group`){let{h:l,w:u,x1:d,y1:f}=t.boundingBox(),p=e.append(`rect`);p.attr(`id`,`${r}-group-${s.id}`).attr(`x`,d+o).attr(`y`,f+o).attr(`width`,u).attr(`height`,l).attr(`class`,`node-bkg`);let m=e.append(`g`),h=d,g=f;if(s.icon){let e=m.append(`g`);e.html(`${await gm(s.icon,{height:i,width:i,fallbackPrefix:wX.prefix})}`),e.attr(`transform`,`translate(`+(h+o+1)+`, `+(g+o+1)+`)`),h+=i,g+=a/2-1-2}if(s.label){let e=m.append(`g`);await Eh(e,s.label,{useHtmlLabels:!1,width:u,classes:`architecture-service-label`},As()),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`start`).attr(`text-anchor`,`start`),e.attr(`transform`,`translate(`+(h+o+4)+`, `+(g+o+2)+`)`)}n.setElementForId(s.id,p)}}))},`drawGroups`),tDt=N(async function(e,t,n,r){let i=As();for(let a of n){let n=t.append(`g`),o=e.getConfigField(`iconSize`);if(a.title){let e=n.append(`g`);await Eh(e,a.title,{useHtmlLabels:!1,width:o*1.5,classes:`architecture-service-label`},i),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e.attr(`transform`,`translate(`+o/2+`, `+o+`)`)}let s=n.append(`g`);if(a.icon)s.html(`${await gm(a.icon,{height:o,width:o,fallbackPrefix:wX.prefix})}`);else if(a.iconText){s.html(`${await gm(`blank`,{height:o,width:o,fallbackPrefix:wX.prefix})}`);let e=s.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(ls(a.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue(`font-size`).replace(/\D/g,``))??16;e.attr(`style`,`-webkit-line-clamp: ${Math.floor((o-2)/t)};`)}else s.append(`path`).attr(`class`,`node-bkg`).attr(`id`,`${r}-node-${a.id}`).attr(`d`,`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);n.attr(`id`,`${r}-service-${a.id}`).attr(`class`,`architecture-service`);let{width:l,height:u}=n.node().getBBox();a.width=l,a.height=u,e.setElementForId(a.id,n)}return 0},`drawServices`),nDt=N(function(e,t,n,r){n.forEach(n=>{let i=t.append(`g`),a=e.getConfigField(`iconSize`);i.append(`g`).append(`rect`).attr(`id`,`${r}-node-${n.id}`).attr(`fill-opacity`,`0`).attr(`width`,a).attr(`height`,a),i.attr(`class`,`architecture-junction`);let{width:o,height:s}=i._groups[0][0].getBBox();i.width=o,i.height=s,e.setElementForId(n.id,i)})},`drawJunctions`),CEe([{name:wX.prefix,icons:wX}]),VM.use(BEt.default),N(LEt,`addServices`),N(oX,`addJunctions`),N(REt,`positionNodes`),N(sX,`addGroups`),N(cX,`addEdges`),N(lX,`getAlignments`),N(uX,`getRelativeConstraints`),N(zEt,`layoutArchitecture`),rDt={parser:xX,get db(){return new yX},renderer:{draw:N(async(e,t,n,r)=>{let i=r.db;i.setDiagramId(t);let a=i.getServices(),o=i.getJunctions(),s=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=Op(t),f=d.append(`g`);f.attr(`class`,`architecture-edges`);let p=d.append(`g`);p.attr(`class`,`architecture-services`);let m=d.append(`g`);m.attr(`class`,`architecture-groups`),await tDt(i,p,a,t),nDt(i,p,o,t);let h=await zEt(a,o,s,l,i,u);await $Et(f,h,i,t),await eDt(m,h,i,t),REt(i,h),vs(void 0,d,i.getConfigField(`padding`),i.getConfigField(`useMaxWidth`))},`draw`)},styles:SX}})),aDt=l({diagram:()=>BX});function oDt(){NX={}}function sDt(){let e=FX,{ast:t}=NX,n=lDt();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((r,i)=>{let a=DX(r,t.dataEntities,n);e=AX(e,{$kind:kDt,index:i,frame:r,textProps:a});let o;bDt(r)?(P.debug(`source frame`,r.sourceFrames),o=t.frames.filter(e=>r.sourceFrames.some(t=>t.$refText===e.name)),o.forEach(t=>{e=AX(e,{$kind:jX,index:i,frame:r,sourceFrame:t})})):e=AX(e,{$kind:jX,index:i,frame:r})}),e={...e,sortedSwimlanesArray:_Dt(e.swimlanes)},e}function cDt(e){NX.ast=void 0;let t=new Set;for(let n of e.frames){if(t.has(n.name)){let e=n.$cstNode?.range.start.line,t=e===void 0?``:` on line ${e+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${t}`)}t.add(n.name)}NX.ast=e}function lDt(){return PX}function uDt(e){let t=e.split(`.`);if(t.length===2)return t[0]}function dDt(e){let t=e.split(`.`);return t.length===2?t[1]:e}function TX(e,t){if(t&&t.length!==0)return Object.values(e).find(e=>e.namespace===t)}function fDt(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&rNumber.parseInt(e)))+1}function pDt(e,t){let n=uDt(e.entityIdentifier),r=TX(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||PX.labelUiAutomation}:n?{index:fDt(t,0,100),label:PX.labelUiAutomationPrefix+n}:{index:0,label:PX.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||PX.labelCommandReadModel}:n?{index:fDt(t,100,200),label:PX.labelCommandReadModelPrefix+n}:{index:100,label:PX.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||PX.labelEvents}:n?{index:fDt(t,200,300),label:PX.labelEventsPrefix+n}:{index:200,label:PX.labelEvents}}}function EX(e){let{themeVariables:t}=ns();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}function DX(e,t,n){let r=ns(),i=ls(dDt(e.entityIdentifier)??``,r),a,o={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`
    `},s=`${Bm(i,n.textMaxWidth,o)}`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf(`{`)+1),a=a.substring(0,a.lastIndexOf(`}`)-1),a=ls(a,r),a=Bm(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `)),e.dataReference){let i=t.find(t=>t.name===e.dataReference?.$refText);i&&(a=i.dataBlockValue,a=a.substring(a.indexOf(`{ -`)+2),a=a.substring(0,a.lastIndexOf(`}`)-1),a=ls(a,r),a=Bm(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `),a+=`
    `)}let l=a!==void 0;l&&(s+=`

    ${a}`);let u={fontSize:o.fontSize,fontWeight:o.fontWeight,fontFamily:o.fontFamily},d=hOe(s,u),f=l?d.width/3:d.width,p={content:s,width:f,height:d.height};return P.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}function mDt(e,t){let n=t,r=EX(n.frame),i={width:n.textProps.width+2*PX.boxTextPadding,height:n.textProps.height+2*PX.boxTextPadding};return[{$kind:ADt,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}function hDt(e,t,n){return t===void 0?PX.contentStartX:t.index===e.index&&e.r?e.r+PX.boxPadding:n===void 0?PX.contentStartX:n.r-PX.boxOverlap+PX.boxPadding}function gDt(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}function _Dt(e){return Object.values(e).sort((e,t)=>e.index-t.index)}function vDt(e,t){let n=t,r=pDt(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*PX.swimlaneMinHeight+PX.swimlaneGap,height:PX.swimlaneMinHeight,maxHeight:PX.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(PX.boxMinWidth,Math.min(PX.boxMaxWidth,n.dimension.width))+2*PX.boxPadding,height:Math.max(PX.boxMinHeight,Math.min(PX.boxMaxHeight,n.dimension.height))+2*PX.boxPadding},l=hDt(i,o,a),u=l+s.width+PX.boxPadding,d=gDt(Object.values(e.swimlanes),u);i.r=l+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(PX.swimlaneMinHeight,i.maxHeight)+2*PX.swimlanePadding;let f={x:l,y:PX.swimlanePadding+i.y,r:u,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},p={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:d},m=_Dt(p.swimlanes);m.length>0&&(m[0].y=0);for(let e=1;e0}function xDt(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}function SDt(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}function CDt(e,t){let n=t;if(yDt(n.index,n.frame))return[];let r=xDt(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let i;if(n.sourceFrame)i=xDt(e.boxes,n.sourceFrame);else{if(hot(n.frame))return[];i=SDt(e.boxes,r.swimlane.index,n.index-1)}return i===void 0?[]:[{$kind:MX,frame:n.frame,index:n.index,sourceBox:i,targetBox:r}]}function wDt(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}function OX(e,t){let n=IDt[t.$kind];if(n==null)return[];let r=n(e,t);return P.debug(`decided events`,r),r}function kX(e,t){let n=t.reduce((e,t)=>{let n=IX[t.$kind];return n==null?e:n(e,t)},e);return P.debug(`evolve events`,{state:e,newState:n,events:t}),n}function AX(e,t){return kX(e,OX(e,t))}function TDt(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.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(n.text)}}function EDt(e,t){return e>t}function DDt(e,t,n,r){return i=>{let a=i.sourceBox.swimlane.y+t.swimlanePadding,o=i.targetBox.swimlane.y+t.swimlanePadding,s=EDt(a,o),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3,d,f;P.debug(`rendering relation up=${s} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),s?(d=a,f=o+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,f=o);let p=r.emRelationStroke??i.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,i.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${n})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}function ODt(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}var kDt,ADt,jX,MX,jDt,MDt,NDt,PDt,FDt,NX,PX,FX,IDt,IX,LX,RX,zX,BX,VX=o((()=>{sP(),Gm(),Ls(),ar(),tr(),iW(),Dp(),kDt=`position frame`,ADt=`frame positioned`,jX=`position relation`,MX=`relation positioned`,jDt=N(function(e){P.debug(`options str`,e)},`setOptions`),MDt=N(function(){return{}},`getOptions`),NDt=N(function(){oDt(),Ss()},`clear`),N(oDt,`reset`),PDt=Wo.eventmodeling,FDt=N(()=>Rm({...PDt,...ns().eventmodeling}),`getConfig`),NX={},N(sDt,`getState`),N(cDt,`setAst`),PX={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: `},N(lDt,`getDiagramProps`),FX={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]},N(uDt,`extractNamespace`),N(dDt,`extractName`),N(TX,`findSwimlaneByNamespace`),N(fDt,`findNextAvailableIndex`),N(pDt,`calculateSwimlaneProps`),N(EX,`calculateEntityVisualProps`),N(DX,`calculateTextProps`),N(mDt,`decidePositionFrame`),N(hDt,`calculateX`),N(gDt,`calculateMaxRight`),N(_Dt,`sortedSwimlanesArray`),N(vDt,`evolveFramePositioned`),N(yDt,`isFirstFrame`),N(bDt,`hasSourceFrame`),N(xDt,`findBoxByFrame`),N(SDt,`findBoxByLineIndex`),N(CDt,`decidePositionRelation`),N(wDt,`evolveRelationPositioned`),IDt={[kDt]:mDt,[jX]:CDt},IX={[ADt]:vDt,[MX]:wDt},N(OX,`decide`),N(kX,`evolve`),N(AX,`dispatch`),LX={getConfig:FDt,preserveCommentsWhenParsing:!0,setOptions:jDt,getOptions:MDt,clear:NDt,setAccTitle:Cs,getAccTitle:ws,getAccDescription:Es,setAccDescription:Ts,setDiagramTitle:Ds,getDiagramTitle:Os,setAst:cDt,getDiagramProps:lDt,getState:sDt},RX={parse:N(async e=>{let t=await eW(`eventmodeling`,e);P.debug(t),LX.setAst(t),oP(t,LX)},`parse`)},zX=As()?.eventmodeling,N(TDt,`renderD3Box`),N(EDt,`dirUpwards`),N(DDt,`renderD3Relation`),N(ODt,`renderD3Swimlane`),BX={parser:RX,db:LX,renderer:{draw:N(function(e,t,n,r){if(P.debug(`in eventmodeling renderer`,e+` -`,`id:`,t,n),!zX)throw Error(`EventModeling config not found`);let i=r.db,{themeVariables:a,eventmodeling:o}=As(),s=Qc(`[id="${t}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${t}`,f=a.emArrowhead??`#000000`;u.sortedSwimlanesArray.forEach(ODt(s,u.maxR,l,a)),u.boxes.forEach(TDt(s,l)),u.relations.forEach(DDt(s,l,d,a)),s.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`,f),yme(void 0,s,o?.padding??30,o?.useMaxWidth)},`draw`)},styles:N(e=>``,`getStyles`)}})),LDt=l({diagram:()=>JDt}),HX,UX,RDt,WX,GX,zDt,BDt,VDt,HDt,KX,qX,JX,YX,XX,ZX,QX,UDt,$X,WDt,GDt,KDt,eZ,qDt,tZ,JDt,nZ=o((()=>{kp(),Gm(),Ls(),ar(),tr(),og(),HX=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,14],r=[1,12],i=[1,13],a=[6,7,8],o=[1,20],s=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:o,7:s,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:o,7:s,10:22,11:l},{1:[2,7],6:n,12:15,13:r,14:i},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: + `)}}}}}))},`drawEdges`),QEt=N(async function(e,t,n,r){let i=n.getConfigField(`padding`)*.75,a=n.getConfigField(`fontSize`),o=n.getConfigField(`iconSize`)/2;await Promise.all(t.nodes().map(async t=>{let s=DX(t);if(s.type===`group`){let{h:l,w:u,x1:d,y1:f}=t.boundingBox(),p=e.append(`rect`);p.attr(`id`,`${r}-group-${s.id}`).attr(`x`,d+o).attr(`y`,f+o).attr(`width`,u).attr(`height`,l).attr(`class`,`node-bkg`);let m=e.append(`g`),h=d,g=f;if(s.icon){let e=m.append(`g`);e.html(`${await ym(s.icon,{height:i,width:i,fallbackPrefix:jX.prefix})}`),e.attr(`transform`,`translate(`+(h+o+1)+`, `+(g+o+1)+`)`),h+=i,g+=a/2-1-2}if(s.label){let e=m.append(`g`);await zh(e,s.label,{useHtmlLabels:!1,width:u,classes:`architecture-service-label`},bs()),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`start`).attr(`text-anchor`,`start`),e.attr(`transform`,`translate(`+(h+o+4)+`, `+(g+o+2)+`)`)}n.setElementForId(s.id,p)}}))},`drawGroups`),$Et=N(async function(e,t,n,r){let i=bs();for(let a of n){let n=t.append(`g`),o=e.getConfigField(`iconSize`);if(a.title){let e=n.append(`g`);await zh(e,a.title,{useHtmlLabels:!1,width:o*1.5,classes:`architecture-service-label`},i),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e.attr(`transform`,`translate(`+o/2+`, `+o+`)`)}let s=n.append(`g`);if(a.icon)s.html(`${await ym(a.icon,{height:o,width:o,fallbackPrefix:jX.prefix})}`);else if(a.iconText){s.html(`${await ym(`blank`,{height:o,width:o,fallbackPrefix:jX.prefix})}`);let e=s.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(ns(a.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue(`font-size`).replace(/\D/g,``))??16;e.attr(`style`,`-webkit-line-clamp: ${Math.floor((o-2)/t)};`)}else s.append(`path`).attr(`class`,`node-bkg`).attr(`id`,`${r}-node-${a.id}`).attr(`d`,`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);n.attr(`id`,`${r}-service-${a.id}`).attr(`class`,`architecture-service`);let{width:l,height:u}=n.node().getBBox();a.width=l,a.height=u,e.setElementForId(a.id,n)}return 0},`drawServices`),eDt=N(function(e,t,n,r){n.forEach(n=>{let i=t.append(`g`),a=e.getConfigField(`iconSize`);i.append(`g`).append(`rect`).attr(`id`,`${r}-node-${n.id}`).attr(`fill-opacity`,`0`).attr(`width`,a).attr(`height`,a),i.attr(`class`,`architecture-junction`);let{width:o,height:s}=i._groups[0][0].getBBox();i.width=o,i.height=s,e.setElementForId(n.id,i)})},`drawJunctions`),vm([{name:jX.prefix,icons:jX}]),LM.use(BEt.default),N(mX,`addServices`),N(hX,`addJunctions`),N(PEt,`positionNodes`),N(FEt,`addGroups`),N(IEt,`addEdges`),N(LEt,`getAlignments`),N(REt,`getRelativeConstraints`),N(zEt,`layoutArchitecture`),tDt={parser:YEt,get db(){return new kX},renderer:{draw:N(async(e,t,n,r)=>{let i=r.db;i.setDiagramId(t);let a=i.getServices(),o=i.getJunctions(),s=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=Op(t),f=d.append(`g`);f.attr(`class`,`architecture-edges`);let p=d.append(`g`);p.attr(`class`,`architecture-services`);let m=d.append(`g`);m.attr(`class`,`architecture-groups`),await $Et(i,p,a,t),eDt(i,p,o,t);let h=await zEt(a,o,s,l,i,u);await ZEt(f,h,i,t),await QEt(m,h,i,t),PEt(i,h),us(void 0,d,i.getConfigField(`padding`),i.getConfigField(`useMaxWidth`))},`draw`)},styles:XEt}})),rDt=l({diagram:()=>kDt});function iDt(){GX={}}function MX(){let e=qX,{ast:t}=GX,n=oDt();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((r,i)=>{let a=uDt(r,t.dataEntities,n);e=zX(e,{$kind:wDt,index:i,frame:r,textProps:a});let o;IX(r)?(P.debug(`source frame`,r.sourceFrames),o=t.frames.filter(e=>r.sourceFrames.some(t=>t.$refText===e.name)),o.forEach(t=>{e=zX(e,{$kind:VX,index:i,frame:r,sourceFrame:t})})):e=zX(e,{$kind:VX,index:i,frame:r})}),e={...e,sortedSwimlanesArray:mDt(e.swimlanes)},e}function aDt(e){GX.ast=void 0;let t=new Set;for(let n of e.frames){if(t.has(n.name)){let e=n.$cstNode?.range.start.line,t=e===void 0?``:` on line ${e+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${t}`)}t.add(n.name)}GX.ast=e}function oDt(){return KX}function NX(e){let t=e.split(`.`);if(t.length===2)return t[0]}function PX(e){let t=e.split(`.`);return t.length===2?t[1]:e}function sDt(e,t){if(t&&t.length!==0)return Object.values(e).find(e=>e.namespace===t)}function FX(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&rNumber.parseInt(e)))+1}function cDt(e,t){let n=NX(e.entityIdentifier),r=sDt(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||KX.labelUiAutomation}:n?{index:FX(t,0,100),label:KX.labelUiAutomationPrefix+n}:{index:0,label:KX.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||KX.labelCommandReadModel}:n?{index:FX(t,100,200),label:KX.labelCommandReadModelPrefix+n}:{index:100,label:KX.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||KX.labelEvents}:n?{index:FX(t,200,300),label:KX.labelEventsPrefix+n}:{index:200,label:KX.labelEvents}}}function lDt(e){let{themeVariables:t}=Xo();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}function uDt(e,t,n){let r=Xo(),i=ns(PX(e.entityIdentifier)??``,r),a,o={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`
    `},s=`${Hm(i,n.textMaxWidth,o)}`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf(`{`)+1),a=a.substring(0,a.lastIndexOf(`}`)-1),a=ns(a,r),a=Hm(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `)),e.dataReference){let i=t.find(t=>t.name===e.dataReference?.$refText);i&&(a=i.dataBlockValue,a=a.substring(a.indexOf(`{ +`)+2),a=a.substring(0,a.lastIndexOf(`}`)-1),a=ns(a,r),a=Hm(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `),a+=`
    `)}let l=a!==void 0;l&&(s+=`

    ${a}`);let u={fontSize:o.fontSize,fontWeight:o.fontWeight,fontFamily:o.fontFamily},d=vOe(s,u),f=l?d.width/3:d.width,p={content:s,width:f,height:d.height};return P.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}function dDt(e,t){let n=t,r=lDt(n.frame),i={width:n.textProps.width+2*KX.boxTextPadding,height:n.textProps.height+2*KX.boxTextPadding};return[{$kind:TDt,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}function fDt(e,t,n){return t===void 0?KX.contentStartX:t.index===e.index&&e.r?e.r+KX.boxPadding:n===void 0?KX.contentStartX:n.r-KX.boxOverlap+KX.boxPadding}function pDt(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}function mDt(e){return Object.values(e).sort((e,t)=>e.index-t.index)}function hDt(e,t){let n=t,r=cDt(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*KX.swimlaneMinHeight+KX.swimlaneGap,height:KX.swimlaneMinHeight,maxHeight:KX.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(KX.boxMinWidth,Math.min(KX.boxMaxWidth,n.dimension.width))+2*KX.boxPadding,height:Math.max(KX.boxMinHeight,Math.min(KX.boxMaxHeight,n.dimension.height))+2*KX.boxPadding},l=fDt(i,o,a),u=l+s.width+KX.boxPadding,d=pDt(Object.values(e.swimlanes),u);i.r=l+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(KX.swimlaneMinHeight,i.maxHeight)+2*KX.swimlanePadding;let f={x:l,y:KX.swimlanePadding+i.y,r:u,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},p={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:d},m=mDt(p.swimlanes);m.length>0&&(m[0].y=0);for(let e=1;e0}function LX(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}function RX(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}function _Dt(e,t){let n=t;if(gDt(n.index,n.frame))return[];let r=LX(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let i;if(n.sourceFrame)i=LX(e.boxes,n.sourceFrame);else{if(mot(n.frame))return[];i=RX(e.boxes,r.swimlane.index,n.index-1)}return i===void 0?[]:[{$kind:EDt,frame:n.frame,index:n.index,sourceBox:i,targetBox:r}]}function vDt(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}function yDt(e,t){let n=JX[t.$kind];if(n==null)return[];let r=n(e,t);return P.debug(`decided events`,r),r}function bDt(e,t){let n=t.reduce((e,t)=>{let n=YX[t.$kind];return n==null?e:n(e,t)},e);return P.debug(`evolve events`,{state:e,newState:n,events:t}),n}function zX(e,t){return bDt(e,yDt(e,t))}function xDt(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.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(n.text)}}function SDt(e,t){return e>t}function BX(e,t,n,r){return i=>{let a=i.sourceBox.swimlane.y+t.swimlanePadding,o=i.targetBox.swimlane.y+t.swimlanePadding,s=SDt(a,o),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3,d,f;P.debug(`rendering relation up=${s} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),s?(d=a,f=o+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,f=o);let p=r.emRelationStroke??i.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,i.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${n})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}function CDt(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}var wDt,TDt,VX,EDt,DDt,HX,UX,ODt,WX,GX,KX,qX,JX,YX,XX,ZX,QX,kDt,ADt=o((()=>{sP(),qm(),Os(),er(),Zn(),nW(),Dp(),wDt=`position frame`,TDt=`frame positioned`,VX=`position relation`,EDt=`relation positioned`,DDt=N(function(e){P.debug(`options str`,e)},`setOptions`),HX=N(function(){return{}},`getOptions`),UX=N(function(){iDt(),fs()},`clear`),N(iDt,`reset`),ODt=Fo.eventmodeling,WX=N(()=>Bm({...ODt,...Xo().eventmodeling}),`getConfig`),GX={},N(MX,`getState`),N(aDt,`setAst`),KX={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: `},N(oDt,`getDiagramProps`),qX={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]},N(NX,`extractNamespace`),N(PX,`extractName`),N(sDt,`findSwimlaneByNamespace`),N(FX,`findNextAvailableIndex`),N(cDt,`calculateSwimlaneProps`),N(lDt,`calculateEntityVisualProps`),N(uDt,`calculateTextProps`),N(dDt,`decidePositionFrame`),N(fDt,`calculateX`),N(pDt,`calculateMaxRight`),N(mDt,`sortedSwimlanesArray`),N(hDt,`evolveFramePositioned`),N(gDt,`isFirstFrame`),N(IX,`hasSourceFrame`),N(LX,`findBoxByFrame`),N(RX,`findBoxByLineIndex`),N(_Dt,`decidePositionRelation`),N(vDt,`evolveRelationPositioned`),JX={[wDt]:dDt,[VX]:_Dt},YX={[TDt]:hDt,[EDt]:vDt},N(yDt,`decide`),N(bDt,`evolve`),N(zX,`dispatch`),XX={getConfig:WX,preserveCommentsWhenParsing:!0,setOptions:DDt,getOptions:HX,clear:UX,setAccTitle:ps,getAccTitle:ms,getAccDescription:gs,setAccDescription:hs,setDiagramTitle:_s,getDiagramTitle:vs,setAst:aDt,getDiagramProps:oDt,getState:MX},ZX={parse:N(async e=>{let t=await QU(`eventmodeling`,e);P.debug(t),XX.setAst(t),oP(t,XX)},`parse`)},QX=bs()?.eventmodeling,N(xDt,`renderD3Box`),N(SDt,`dirUpwards`),N(BX,`renderD3Relation`),N(CDt,`renderD3Swimlane`),kDt={parser:ZX,db:XX,renderer:{draw:N(function(e,t,n,r){if(P.debug(`in eventmodeling renderer`,e+` +`,`id:`,t,n),!QX)throw Error(`EventModeling config not found`);let i=r.db,{themeVariables:a,eventmodeling:o}=bs(),s=Bc(`[id="${t}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${t}`,f=a.emArrowhead??`#000000`;u.sortedSwimlanesArray.forEach(CDt(s,u.maxR,l,a)),u.boxes.forEach(xDt(s,l)),u.relations.forEach(BX(s,l,d,a)),s.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`,f),Cs(void 0,s,o?.padding??30,o?.useMaxWidth)},`draw`)},styles:N(e=>``,`getStyles`)}})),jDt=l({diagram:()=>GDt}),$X,MDt,NDt,PDt,eZ,FDt,tZ,nZ,rZ,iZ,aZ,IDt,LDt,RDt,zDt,BDt,VDt,HDt,UDt,WDt,oZ,sZ,cZ,lZ,GDt,KDt=o((()=>{kp(),qm(),Os(),er(),Zn(),mg(),$X=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,14],r=[1,12],i=[1,13],a=[6,7,8],o=[1,20],s=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:o,7:s,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:o,7:s,10:22,11:l},{1:[2,7],6:n,12:15,13:r,14:i},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function g(){this.yy={}}return N(g,`Parser`),g.prototype=h,h.Parser=g,new g})(),HX.parser=HX,UX=HX,RDt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{N(this,`IshikawaDB`)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,Ss()}getRoot(){return this.root}addNode(e,t){let n=gs.sanitizeText(t,As());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],Ds(n);return}this.baseLevel??=e;let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let i=this.stack[this.stack.length-1].node,a={text:n,children:[]};i.children.push(a),this.stack.push({level:r,node:a})}getAccTitle(){return ws()}setAccTitle(e){Cs(e)}getAccDescription(){return Es()}setAccDescription(e){Ts(e)}getDiagramTitle(){return Os()}setDiagramTitle(e){Ds(e)}},WX=14,GX=250,zDt=30,BDt=60,VDt=5,HDt=82*Math.PI/180,KX=Math.cos(HDt),qX=Math.sin(HDt),JX=N((e,t,n)=>{let r=e.node().getBBox(),i=r.width+t*2,a=r.height+t*2;_s(e,a,i,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${i} ${a}`)},`applyPaddedViewBox`),YX=N((e,t,n,r)=>{let i=r.db.getRoot();if(!i)return;let a=As(),{look:o,handDrawnSeed:s,themeVariables:l}=a,u=Vm(a.fontSize)[0]??WX,d=o===`handDrawn`,f=i.children??[],p=a.ishikawa?.diagramPadding??20,m=a.ishikawa?.useMaxWidth??!1,h=Op(t),g=h.append(`g`).attr(`class`,`ishikawa`),_=d?ag.svg(h.node()):void 0,v=_?{roughSvg:_,seed:s??0,lineColor:l?.lineColor??`#333`,fillColor:l?.mainBkg??`#fff`}:void 0,y=`ishikawa-arrow-${t}`;d||g.append(`defs`).append(`marker`).attr(`id`,y).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 b=0,x=GX,S=d?void 0:tZ(g,b,x,b,x,`ishikawa-spine`);if(ZX(g,b,x,i.text,u,v),!f.length){d&&tZ(g,b,x,b,x,`ishikawa-spine`,v),JX(h,p,m);return}b-=20;let C=f.filter((e,t)=>t%2==0),w=f.filter((e,t)=>t%2==1),T=XX(C),E=XX(w),D=T.total+E.total,O=GX,k=GX;if(D>0){let e=GX*2,t=GX*.3;O=Math.max(t,e*(T.total/D)),k=Math.max(t,e*(E.total/D))}let A=u*2;O=Math.max(O,T.max*A),k=Math.max(k,E.max*A),x=Math.max(O,GX),S&&S.attr(`y1`,x).attr(`y2`,x),g.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${x})`);let j=Math.ceil(f.length/2);for(let e=0;eMath.min(e,t.getBBox().x),1/0)}if(d)tZ(g,b,x,0,x,`ishikawa-spine`,v);else{S.attr(`x1`,b);let e=`url(#${y})`;g.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}JX(h,p,m)},`draw`),XX=N(e=>{let t=N(e=>e.children.reduce((e,n)=>e+1+t(n),0),`countDescendants`);return e.reduce((e,n)=>{let r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),ZX=N((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),l=eZ(s,KDt(r,o),0,0,`ishikawa-head-label`,`start`,i),u=l.node().getBBox(),d=Math.max(60,u.width+6),f=Math.max(40,u.height*2+40),p=`M 0 ${-f/2} L 0 ${f/2} Q ${d*2.4} 0 0 ${-f/2} Z`;if(a){let e=a.roughSvg.path(p,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,p);l.attr(`transform`,`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},`drawHead`),QX=N((e,t)=>{let n=[],r=[],i=N((e,a,o)=>{let s=t===-1?[...e].reverse():e;for(let e of s){let t=n.length,s=e.children??[];n.push({depth:o,text:KDt(e.text,15),parentIndex:a,childCount:s.length}),o%2==0?(r.push(t),s.length&&i(s,t,o+1)):(s.length&&i(s,t,o+1),r.push(t))}},`walk`);return i(e,-1,2),{entries:n,yOrder:r}},`flattenTree`),UDt=N((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),l=eZ(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,l.x-20).attr(`y`,l.y-2).attr(`width`,l.width+40).attr(`height`,l.height+4)},`drawCauseLabel`),$X=N((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,l=i/o,u=-l*6,d=s*6,f=t,p=n,m=`M ${f} ${p} L ${f-s*6*2+u} ${p-l*6*2+d} L ${f-s*6*2-u} ${p-l*6*2-d} Z`,h=a.roughSvg.path(m,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>h)},`drawArrowMarker`),WDt=N((e,t,n,r,i,a,o,s)=>{let l=t.children??[],u=a*(l.length?1:.2),d=-KX*u,f=qX*u*i,p=n+d,m=r+f;if(tZ(e,n,r,p,m,`ishikawa-branch`,s),s&&$X(e,n,r,n-p,r-m,s),UDt(e,t.text,p,m,i,o,s),!l.length)return;let{entries:h,yOrder:g}=QX(l,i),_=h.length,v=Array(_);for(let[e,t]of g.entries())v[t]=r+f*((e+1)/(_+1));let y=new Map;y.set(-1,{x0:n,y0:r,x1:p,y1:m,childCount:l.length,childrenDrawn:0});let b=-KX,x=qX*i,S=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of h.entries()){let r=v[t],i=y.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),l=0,u=0,d=0;if(n.depth%2==0){let e=i.y1-i.y0;l=qDt(i.x0,i.x1,e?(r-i.y0)/e:.5),u=r,d=l-(n.childCount>0?BDt+n.childCount*VDt:zDt),tZ(a,l,r,d,r,`ishikawa-sub-branch`,s),s&&$X(a,l,r,1,0,s),eZ(a,n.text,d,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;l=qDt(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),u=i.y0,d=l+b*((r-u)/x),tZ(a,l,u,d,r,`ishikawa-sub-branch`,s),s&&$X(a,l,u,l-d,u-r,s),eZ(a,n.text,d,r,S,`end`,o)}n.childCount>0&&y.set(t,{x0:l,y0:u,x1:d,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),GDt=N(e=>e.split(/|\n/),`splitLines`),KDt=N((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(` -`)},`wrapText`),eZ=N((e,t,n,r,i,a,o)=>{let s=GDt(t),l=o*1.05,u=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*l/2);for(let[e,t]of s.entries())u.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:l).text(t);return u},`drawMultilineText`),qDt=N((e,t,n)=>e+(t-e)*n,`lerp`),tZ=N((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),JDt={parser:UX,get db(){return new RDt},renderer:{draw:YX},styles:N(e=>` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){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}}}})();function g(){this.yy={}}return N(g,`Parser`),g.prototype=h,h.Parser=g,new g})(),$X.parser=$X,MDt=$X,NDt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{N(this,`IshikawaDB`)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,fs()}getRoot(){return this.root}addNode(e,t){let n=cs.sanitizeText(t,bs());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],_s(n);return}this.baseLevel??=e;let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let i=this.stack[this.stack.length-1].node,a={text:n,children:[]};i.children.push(a),this.stack.push({level:r,node:a})}getAccTitle(){return ms()}setAccTitle(e){ps(e)}getAccDescription(){return gs()}setAccDescription(e){hs(e)}getDiagramTitle(){return vs()}setDiagramTitle(e){_s(e)}},PDt=14,eZ=250,FDt=30,tZ=60,nZ=5,rZ=82*Math.PI/180,iZ=Math.cos(rZ),aZ=Math.sin(rZ),IDt=N((e,t,n)=>{let r=e.node().getBBox(),i=r.width+t*2,a=r.height+t*2;ls(e,a,i,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${i} ${a}`)},`applyPaddedViewBox`),LDt=N((e,t,n,r)=>{let i=r.db.getRoot();if(!i)return;let a=bs(),{look:o,handDrawnSeed:s,themeVariables:l}=a,u=Um(a.fontSize)[0]??PDt,d=o===`handDrawn`,f=i.children??[],p=a.ishikawa?.diagramPadding??20,m=a.ishikawa?.useMaxWidth??!1,h=Op(t),g=h.append(`g`).attr(`class`,`ishikawa`),_=d?pg.svg(h.node()):void 0,v=_?{roughSvg:_,seed:s??0,lineColor:l?.lineColor??`#333`,fillColor:l?.mainBkg??`#fff`}:void 0,y=`ishikawa-arrow-${t}`;d||g.append(`defs`).append(`marker`).attr(`id`,y).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 b=0,x=eZ,S=d?void 0:lZ(g,b,x,b,x,`ishikawa-spine`);if(zDt(g,b,x,i.text,u,v),!f.length){d&&lZ(g,b,x,b,x,`ishikawa-spine`,v),IDt(h,p,m);return}b-=20;let C=f.filter((e,t)=>t%2==0),w=f.filter((e,t)=>t%2==1),T=RDt(C),E=RDt(w),D=T.total+E.total,O=eZ,k=eZ;if(D>0){let e=eZ*2,t=eZ*.3;O=Math.max(t,e*(T.total/D)),k=Math.max(t,e*(E.total/D))}let A=u*2;O=Math.max(O,T.max*A),k=Math.max(k,E.max*A),x=Math.max(O,eZ),S&&S.attr(`y1`,x).attr(`y2`,x),g.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${x})`);let j=Math.ceil(f.length/2);for(let e=0;eMath.min(e,t.getBBox().x),1/0)}if(d)lZ(g,b,x,0,x,`ishikawa-spine`,v);else{S.attr(`x1`,b);let e=`url(#${y})`;g.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}IDt(h,p,m)},`draw`),RDt=N(e=>{let t=N(e=>e.children.reduce((e,n)=>e+1+t(n),0),`countDescendants`);return e.reduce((e,n)=>{let r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),zDt=N((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),l=sZ(s,oZ(r,o),0,0,`ishikawa-head-label`,`start`,i),u=l.node().getBBox(),d=Math.max(60,u.width+6),f=Math.max(40,u.height*2+40),p=`M 0 ${-f/2} L 0 ${f/2} Q ${d*2.4} 0 0 ${-f/2} Z`;if(a){let e=a.roughSvg.path(p,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,p);l.attr(`transform`,`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},`drawHead`),BDt=N((e,t)=>{let n=[],r=[],i=N((e,a,o)=>{let s=t===-1?[...e].reverse():e;for(let e of s){let t=n.length,s=e.children??[];n.push({depth:o,text:oZ(e.text,15),parentIndex:a,childCount:s.length}),o%2==0?(r.push(t),s.length&&i(s,t,o+1)):(s.length&&i(s,t,o+1),r.push(t))}},`walk`);return i(e,-1,2),{entries:n,yOrder:r}},`flattenTree`),VDt=N((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),l=sZ(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,l.x-20).attr(`y`,l.y-2).attr(`width`,l.width+40).attr(`height`,l.height+4)},`drawCauseLabel`),HDt=N((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,l=i/o,u=-l*6,d=s*6,f=t,p=n,m=`M ${f} ${p} L ${f-s*6*2+u} ${p-l*6*2+d} L ${f-s*6*2-u} ${p-l*6*2-d} Z`,h=a.roughSvg.path(m,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>h)},`drawArrowMarker`),UDt=N((e,t,n,r,i,a,o,s)=>{let l=t.children??[],u=a*(l.length?1:.2),d=-iZ*u,f=aZ*u*i,p=n+d,m=r+f;if(lZ(e,n,r,p,m,`ishikawa-branch`,s),s&&HDt(e,n,r,n-p,r-m,s),VDt(e,t.text,p,m,i,o,s),!l.length)return;let{entries:h,yOrder:g}=BDt(l,i),_=h.length,v=Array(_);for(let[e,t]of g.entries())v[t]=r+f*((e+1)/(_+1));let y=new Map;y.set(-1,{x0:n,y0:r,x1:p,y1:m,childCount:l.length,childrenDrawn:0});let b=-iZ,x=aZ*i,S=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of h.entries()){let r=v[t],i=y.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),l=0,u=0,d=0;if(n.depth%2==0){let e=i.y1-i.y0;l=cZ(i.x0,i.x1,e?(r-i.y0)/e:.5),u=r,d=l-(n.childCount>0?tZ+n.childCount*nZ:FDt),lZ(a,l,r,d,r,`ishikawa-sub-branch`,s),s&&HDt(a,l,r,1,0,s),sZ(a,n.text,d,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;l=cZ(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),u=i.y0,d=l+b*((r-u)/x),lZ(a,l,u,d,r,`ishikawa-sub-branch`,s),s&&HDt(a,l,u,l-d,u-r,s),sZ(a,n.text,d,r,S,`end`,o)}n.childCount>0&&y.set(t,{x0:l,y0:u,x1:d,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),WDt=N(e=>e.split(/|\n/),`splitLines`),oZ=N((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(` +`)},`wrapText`),sZ=N((e,t,n,r,i,a,o)=>{let s=WDt(t),l=o*1.05,u=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*l/2);for(let[e,t]of s.entries())u.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:l).text(t);return u},`drawMultilineText`),cZ=N((e,t,n)=>e+(t-e)*n,`lerp`),lZ=N((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),GDt={parser:MDt,get db(){return new NDt},renderer:{draw:LDt},styles:N(e=>` .ishikawa .ishikawa-spine, .ishikawa .ishikawa-branch, .ishikawa .ishikawa-sub-branch { @@ -3671,18 +3673,18 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l .ishikawa .ishikawa-label.down { dominant-baseline: hanging; } -`,`getStyles`)}}));function rZ(e,t){let n=XDt(e),r=n.filter(t=>YDt(t,e)),i=0,a=0,o=[];if(r.length>1){let t=eOt(r);for(let e=0;et.angle-e.angle);let n=r[r.length-1];for(let t=0;tr.radius*2&&(f=r.radius*2),(u==null||u.width>f)&&(u={circle:r,width:f,p1:s,p2:n,large:f>r.radius,sweep:!0})}u!=null&&(o.push(u),i+=ZDt(u.circle.radius,u.width),n=s)}}else{let t=e[0];for(let n=1;nMath.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-OOt,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function YDt(e,t){return t.every(t=>iZ(e,t)=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return ZDt(e,r)+ZDt(t,i)}function $Dt(e,t){let n=iZ(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,l=e.y+a*(t.y-e.y)/n,u=-(t.y-e.y)*(o/n),d=-(t.x-e.x)*(o/n);return[{x:s+u,y:l-d},{x:s-u,y:l+d}]}function eOt(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function tOt(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),l=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n=0&&(t=n),Math.abs(l)nOt(t))}function aZ(e,t){let n=0;for(let r=0;re.fx-t.fx,v=t.slice(),y=t.slice(),b=t.slice(),x=t.slice();for(let t=0;t{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:h[0].slice(),fx:h[0].fx,simplex:e})}p=0;for(let e=0;e=h[m-1].fx){let n=!1;if(y.fx>t.fx?(oZ(b,1+d,v,-d,t),b.fx=e(b),b.fx=1)break;for(let t=1;ts+a*i*l||u>=m)p=i;else{if(Math.abs(f)<=-o*l)return i;f*(p-d)>=0&&(p=d),d=i,m=u}return 0}for(let h=0;h<10;++h){if(oZ(r.x,1,n.x,i,t),u=r.fx=e(r.x,r.fxprime),f=aZ(r.fxprime,t),u>s+a*i*l||h&&u>=d)return m(p,i,d);if(Math.abs(f)<=-o*l)return i;if(f>=0)return m(i,p,u);d=u,p=i,i*=2}return i}function sZ(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,l=1,u;n||={},u=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),aOt(o,r.fxprime,-1);for(let t=0;t{let t={};for(let n=0;nQDt(e,t,r)-n,0,e+t)}function cOt(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;ne===t?0:ee.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=lZ(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let l=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?l=1:e.size<=1e-10&&(l=-1),i[a][o]=i[o][a]=l}),{distances:r,constraints:i}}function uOt(e,t,n,r){for(let e=0;e0&&h<=f||p<0&&h>=f||(i+=2*g*g,t[2*a]+=4*g*(o-u),t[2*a+1]+=4*g*(s-d),t[2*l]+=4*g*(u-o),t[2*l+1]+=4*g*(d-s))}}return i}function dOt(e,t={}){let n=fOt(e,t),r=t.lossFunction||dZ;if(e.length>=8){let i=uZ(e,t),a=r(i,e),o=r(n,e);a+1e-8e.map(e=>e/s));let l=(e,t)=>uOt(e,t,a,o),u=null;for(let e=0;ee.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+kOt>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;ne[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function fZ(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=QDt(n.radius,i.radius,iZ(n,i))}else t=rZ(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function pOt(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&iZ(e[0],e[1])1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function mOt(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t{delete e.parent}),Array.from(r.values())}function hOt(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function gOt(e,t,n){t??=Math.PI/2;let r=pZ(e).map(e=>Object.assign({},e)),i=mOt(r);for(let e of i){pOt(e,t,n);let r=hOt(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,l;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)l=a.yRange.max-i.yRange.min+o;else{l=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(l+=e)}for(let t of e)t.x+=s,t.y+=l,r.push(t)}let l=1;for(;l({radius:d*e.radius,x:r+f+(e.x-o.min)*d,y:r+p+(e.y-s.min)*d,setid:e.setid})))}function vOt(e){let t={};for(let n of e)t[n.setid]=n;return t}function pZ(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function mZ(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,l=null,u=!0,d=!0,f=null,p=null,m=!1,h=null,g=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,_={},v=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],y=0,b=function(e){if(e in _)return _[e];var t=_[e]=v[y];return y+=1,y>=v.length&&(y=0),t},x=cZ,S=dZ;function C(_){let v=_.datum(),y=new Set;v.forEach(e=>{e.size==0&&e.sets.length==1&&y.add(e.sets[0])}),v=v.filter(e=>!e.sets.some(e=>y.has(e)));let C={},w={};if(v.length>0){let e=x(v,{lossFunction:S,distinct:m});s&&(e=gOt(e,o,p)),C=_Ot(e,n,r,i,l),w=xOt(C,v,g)}let T={};v.forEach(e=>{e.label&&(T[e.sets]=e.label)});function E(e){if(e.sets in T)return T[e.sets];if(e.sets.length==1)return``+e.sets[0]}_.selectAll(`svg`).data([C]).enter().append(`svg`);let D=_.select(`svg`);t?D.attr(`viewBox`,`0 0 ${n} ${r}`):D.attr(`width`,n).attr(`height`,r);let O={},k=!1;D.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!m&&(k=!0,O[e.sets[0]]=COt(t))});function A(e){return t=>EOt(e.sets.map(e=>{let i=O[e],a=C[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),h)}let j=D.selectAll(`.venn-area`).data(v,e=>e.sets),M=j.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),ee=M.append(`path`),te=M.append(`text`).attr(`class`,`label`).text(e=>E(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);d&&(ee.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:b(e.sets)).style(`fill-opacity`,`.25`),te.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?b(t.sets):`#444`));function ne(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let re=_;k&&typeof re.transition==`function`?(re=ne(_),re.selectAll(`path`).attrTween(`d`,A)):re.selectAll(`path`).attr(`d`,e=>EOt(e.sets.map(e=>C[e])),h);let ie=re.selectAll(`text`).filter(e=>e.sets in w).text(e=>E(e)).attr(`x`,e=>Math.floor(w[e.sets].x)).attr(`y`,e=>Math.floor(w[e.sets].y));u&&(k?`on`in ie?ie.on(`end`,hZ(C,E)):ie.each(`end`,hZ(C,E)):ie.each(hZ(C,E)));let ae=ne(j.exit()).remove();typeof j.transition==`function`&&ae.selectAll(`path`).attrTween(`d`,A);let oe=ae.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return f!==null&&(te.style(`font-size`,`0px`),ie.style(`font-size`,f),oe.style(`font-size`,`0px`)),{circles:C,textCentres:w,nodes:j,enter:M,update:re,exit:ae}}return C.wrap=function(e){return arguments.length?(u=e,C):u},C.useViewBox=function(){return t=!0,C},C.width=function(e){return arguments.length?(n=e,C):n},C.height=function(e){return arguments.length?(r=e,C):r},C.padding=function(e){return arguments.length?(i=e,C):i},C.distinct=function(e){return arguments.length?(m=e,C):m},C.colours=function(e){return arguments.length?(b=e,C):b},C.colors=function(e){return arguments.length?(b=e,C):b},C.fontSize=function(e){return arguments.length?(f=e,C):f},C.round=function(e){return arguments.length?(h=e,C):h},C.duration=function(e){return arguments.length?(a=e,C):a},C.layoutFunction=function(e){return arguments.length?(x=e,C):x},C.normalize=function(e){return arguments.length?(s=e,C):s},C.scaleToFit=function(e){return arguments.length?(l=e,C):l},C.styled=function(e){return arguments.length?(d=e,C):d},C.orientation=function(e){return arguments.length?(o=e,C):o},C.orientationOrder=function(e){return arguments.length?(p=e,C):p},C.lossFunction=function(e){return arguments.length?(S=e==="default"?dZ:e===`logRatio`?fZ:e,C):S},C}function hZ(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,l=o.pop(),u=[l],d=0,f=1.1;r.textContent=null;let p=[];function m(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,p.push(t),r.append(t),t}let h=m(l);for(;l=o.pop(),l;){u.push(l);let e=u.join(` `);h.textContent=e,e.length>s&&h.getComputedTextLength()>i&&(u.pop(),h.textContent=u.join(` `),u=[l],h=m(l),d++)}let g=.35-d*f/2,_=r.getAttribute(`x`),v=r.getAttribute(`y`);p.forEach((e,t)=>{e.setAttribute(`x`,_),e.setAttribute(`y`,v),e.setAttribute(`dy`,`${g+t*f}em`)})}}function gZ(e,t,n){let r=t[0].radius-iZ(t[0],e);for(let n=1;n=a&&(i=r[n],a=o)}let o=oOt(n=>-1*gZ({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},l=!0;for(let t of e)if(iZ(s,t)>t.radius){l=!1;break}for(let e of t)if(iZ(s,e)e.p1))}function bOt(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function SOt(e,t,n){let r=[];return r.push(` +`,`getStyles`)}}));function qDt(e,t){let n=YDt(e),r=n.filter(t=>JDt(t,e)),i=0,a=0,o=[];if(r.length>1){let t=$Dt(r);for(let e=0;et.angle-e.angle);let n=r[r.length-1];for(let t=0;tr.radius*2&&(f=r.radius*2),(u==null||u.width>f)&&(u={circle:r,width:f,p1:s,p2:n,large:f>r.radius,sweep:!0})}u!=null&&(o.push(u),i+=XDt(u.circle.radius,u.width),n=s)}}else{let t=e[0];for(let n=1;nMath.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-EZ,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function JDt(e,t){return t.every(t=>uZ(e,t)=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return XDt(e,r)+XDt(t,i)}function QDt(e,t){let n=uZ(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,l=e.y+a*(t.y-e.y)/n,u=-(t.y-e.y)*(o/n),d=-(t.x-e.x)*(o/n);return[{x:s+u,y:l-d},{x:s-u,y:l+d}]}function $Dt(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function eOt(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),l=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n=0&&(t=n),Math.abs(l)tOt(t))}function dZ(e,t){let n=0;for(let r=0;re.fx-t.fx,v=t.slice(),y=t.slice(),b=t.slice(),x=t.slice();for(let t=0;t{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:h[0].slice(),fx:h[0].fx,simplex:e})}p=0;for(let e=0;e=h[m-1].fx){let n=!1;if(y.fx>t.fx?(mZ(b,1+d,v,-d,t),b.fx=e(b),b.fx=1)break;for(let t=1;ts+a*i*l||u>=m)p=i;else{if(Math.abs(f)<=-o*l)return i;f*(p-d)>=0&&(p=d),d=i,m=u}return 0}for(let h=0;h<10;++h){if(mZ(r.x,1,n.x,i,t),u=r.fx=e(r.x,r.fxprime),f=dZ(r.fxprime,t),u>s+a*i*l||h&&u>=d)return m(p,i,d);if(Math.abs(f)<=-o*l)return i;if(f>=0)return m(i,p,u);d=u,p=i,i*=2}return i}function aOt(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,l=1,u;n||={},u=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),pZ(o,r.fxprime,-1);for(let t=0;t{let t={};for(let n=0;nZDt(e,t,r)-n,0,e+t)}function oOt(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;ne===t?0:ee.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=gZ(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let l=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?l=1:e.size<=1e-10&&(l=-1),i[a][o]=i[o][a]=l}),{distances:r,constraints:i}}function cOt(e,t,n,r){for(let e=0;e0&&h<=f||p<0&&h>=f||(i+=2*g*g,t[2*a]+=4*g*(o-u),t[2*a+1]+=4*g*(s-d),t[2*l]+=4*g*(u-o),t[2*l+1]+=4*g*(d-s))}}return i}function lOt(e,t={}){let n=dOt(e,t),r=t.lossFunction||_Z;if(e.length>=8){let i=uOt(e,t),a=r(i,e),o=r(n,e);a+1e-8e.map(e=>e/s));let l=(e,t)=>cOt(e,t,a,o),u=null;for(let e=0;ee.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+DZ>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;ne[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function fOt(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=ZDt(n.radius,i.radius,uZ(n,i))}else t=qDt(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function pOt(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&uZ(e[0],e[1])1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function vZ(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t{delete e.parent}),Array.from(r.values())}function yZ(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function bZ(e,t,n){t??=Math.PI/2;let r=gOt(e).map(e=>Object.assign({},e)),i=vZ(r);for(let e of i){pOt(e,t,n);let r=yZ(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,l;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)l=a.yRange.max-i.yRange.min+o;else{l=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(l+=e)}for(let t of e)t.x+=s,t.y+=l,r.push(t)}let l=1;for(;l({radius:d*e.radius,x:r+f+(e.x-o.min)*d,y:r+p+(e.y-s.min)*d,setid:e.setid})))}function hOt(e){let t={};for(let n of e)t[n.setid]=n;return t}function gOt(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function _Ot(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,l=null,u=!0,d=!0,f=null,p=null,m=!1,h=null,g=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,_={},v=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],y=0,b=function(e){if(e in _)return _[e];var t=_[e]=v[y];return y+=1,y>=v.length&&(y=0),t},x=hZ,S=_Z;function C(_){let v=_.datum(),y=new Set;v.forEach(e=>{e.size==0&&e.sets.length==1&&y.add(e.sets[0])}),v=v.filter(e=>!e.sets.some(e=>y.has(e)));let C={},w={};if(v.length>0){let e=x(v,{lossFunction:S,distinct:m});s&&(e=bZ(e,o,p)),C=mOt(e,n,r,i,l),w=bOt(C,v,g)}let T={};v.forEach(e=>{e.label&&(T[e.sets]=e.label)});function E(e){if(e.sets in T)return T[e.sets];if(e.sets.length==1)return``+e.sets[0]}_.selectAll(`svg`).data([C]).enter().append(`svg`);let D=_.select(`svg`);t?D.attr(`viewBox`,`0 0 ${n} ${r}`):D.attr(`width`,n).attr(`height`,r);let O={},k=!1;D.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!m&&(k=!0,O[e.sets[0]]=SOt(t))});function A(e){return t=>wZ(e.sets.map(e=>{let i=O[e],a=C[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),h)}let j=D.selectAll(`.venn-area`).data(v,e=>e.sets),M=j.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),ee=M.append(`path`),te=M.append(`text`).attr(`class`,`label`).text(e=>E(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);d&&(ee.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:b(e.sets)).style(`fill-opacity`,`.25`),te.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?b(t.sets):`#444`));function ne(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let re=_;k&&typeof re.transition==`function`?(re=ne(_),re.selectAll(`path`).attrTween(`d`,A)):re.selectAll(`path`).attr(`d`,e=>wZ(e.sets.map(e=>C[e])),h);let ie=re.selectAll(`text`).filter(e=>e.sets in w).text(e=>E(e)).attr(`x`,e=>Math.floor(w[e.sets].x)).attr(`y`,e=>Math.floor(w[e.sets].y));u&&(k?`on`in ie?ie.on(`end`,xZ(C,E)):ie.each(`end`,xZ(C,E)):ie.each(xZ(C,E)));let ae=ne(j.exit()).remove();typeof j.transition==`function`&&ae.selectAll(`path`).attrTween(`d`,A);let oe=ae.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return f!==null&&(te.style(`font-size`,`0px`),ie.style(`font-size`,f),oe.style(`font-size`,`0px`)),{circles:C,textCentres:w,nodes:j,enter:M,update:re,exit:ae}}return C.wrap=function(e){return arguments.length?(u=e,C):u},C.useViewBox=function(){return t=!0,C},C.width=function(e){return arguments.length?(n=e,C):n},C.height=function(e){return arguments.length?(r=e,C):r},C.padding=function(e){return arguments.length?(i=e,C):i},C.distinct=function(e){return arguments.length?(m=e,C):m},C.colours=function(e){return arguments.length?(b=e,C):b},C.colors=function(e){return arguments.length?(b=e,C):b},C.fontSize=function(e){return arguments.length?(f=e,C):f},C.round=function(e){return arguments.length?(h=e,C):h},C.duration=function(e){return arguments.length?(a=e,C):a},C.layoutFunction=function(e){return arguments.length?(x=e,C):x},C.normalize=function(e){return arguments.length?(s=e,C):s},C.scaleToFit=function(e){return arguments.length?(l=e,C):l},C.styled=function(e){return arguments.length?(d=e,C):d},C.orientation=function(e){return arguments.length?(o=e,C):o},C.orientationOrder=function(e){return arguments.length?(p=e,C):p},C.lossFunction=function(e){return arguments.length?(S=e==="default"?_Z:e===`logRatio`?fOt:e,C):S},C}function xZ(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,l=o.pop(),u=[l],d=0,f=1.1;r.textContent=null;let p=[];function m(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,p.push(t),r.append(t),t}let h=m(l);for(;l=o.pop(),l;){u.push(l);let e=u.join(` `);h.textContent=e,e.length>s&&h.getComputedTextLength()>i&&(u.pop(),h.textContent=u.join(` `),u=[l],h=m(l),d++)}let g=.35-d*f/2,_=r.getAttribute(`x`),v=r.getAttribute(`y`);p.forEach((e,t)=>{e.setAttribute(`x`,_),e.setAttribute(`y`,v),e.setAttribute(`dy`,`${g+t*f}em`)})}}function SZ(e,t,n){let r=t[0].radius-uZ(t[0],e);for(let n=1;n=a&&(i=r[n],a=o)}let o=rOt(n=>-1*SZ({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},l=!0;for(let t of e)if(uZ(s,t)>t.radius){l=!1;break}for(let e of t)if(uZ(s,e)e.p1))}function yOt(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function xOt(e,t,n){let r=[];return r.push(` M`,e,t),r.push(` m`,-n,0),r.push(` a`,n,n,0,1,0,n*2,0),r.push(` -a`,n,n,0,1,0,-n*2,0),r.join(` `)}function COt(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function wOt(e){if(e.length===0)return[];let t={};return rZ(e,t),t.arcs}function TOt(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return SOt(r(t.x),r(t.y),r(t.radius))}let i=[` +a`,n,n,0,1,0,-n*2,0),r.join(` `)}function SOt(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function COt(e){if(e.length===0)return[];let t={};return qDt(e,t),t.arcs}function CZ(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return xOt(r(t.x),r(t.y),r(t.radius))}let i=[` M`,r(e[0].p2.x),r(e[0].p2.y)];for(let t of e){let e=r(t.circle.radius);i.push(` -A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}function EOt(e,t){return TOt(wOt(e),t)}function DOt(e,t={}){let{lossFunction:n,layoutFunction:r=cZ,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:o,width:s=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:f=!1,distinct:p,round:m=2}=t,h=r(e,{lossFunction:n==="default"||!n?dZ:n===`logRatio`?fZ:n,distinct:p});i&&(h=gOt(h,a,o));let g=_Ot(h,s,l,u,d),_=xOt(g,e,f),v=new Map(Object.keys(g).map(e=>[e,{set:e,x:g[e].x,y:g[e].y,radius:g[e].radius}])),y=e.map(e=>{let t=e.sets.map(e=>v.get(e)),n=wOt(t);return{circles:t,arcs:n,path:TOt(n,m),area:e,has:new Set(e.sets)}});function b(e){let t=``;for(let n of y)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return y.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:_[r.sets],circles:e,arcs:t,path:n,distinctPath:n+b(r.sets)}))}var OOt,kOt,_Z=o((()=>{OOt=1e-10,kOt=1e-10})),vZ=l({diagram:()=>UOt});function yZ(){return Rm(BOt,ns().venn)}function bZ(e){let t=new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}function xZ(e){return e.join(`|`)}function SZ(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),l=new Map;for(let e of r){let t=xZ(e.sets),n=l.get(t);n?n.push(e):l.set(t,[e])}for(let[e,n]of l.entries()){let r=t.get(e);if(!r?.text)continue;let l=r.text.x,u=r.text.y,d=Math.min(...r.circles.map(e=>e.radius)),f=Math.min(...r.circles.map(e=>e.radius-Math.hypot(l-e.x,u-e.y))),p=Number.isFinite(f)?Math.max(0,f):0;p===0&&Number.isFinite(d)&&(p=d*.6);let m=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&m.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,l).attr(`cy`,u).attr(`r`,p).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let h=Math.max(80*i,p*2*.95),g=Math.max(60*i,p*2*.95),_=(r.data.label&&r.data.label.length>0?Math.min(32*i,p*.25):0)+(n.length<=2?30*i:0),v=l-h/2,y=u-g/2+_,b=Math.max(1,Math.ceil(Math.sqrt(n.length))),x=Math.max(1,Math.ceil(n.length/b)),S=h/b,C=g/x;for(let[e,t]of n.entries()){let n=e%b,r=Math.floor(e/b),s=v+S*(n+.5),l=y+C*(r+.5);o&&m.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,v+S*n).attr(`y`,y+C*r).attr(`width`,S).attr(`height`,C).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let u=S*.9,d=C*.9,f=m.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,u).attr(`height`,d).attr(`x`,s-u/2).attr(`y`,l-d/2).attr(`overflow`,`visible`),p=a.get(t.id)?.color,h=f.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(t.label??t.id);p&&h.style(`color`,p)}}}function CZ(e){let t=new Set(e.map(e=>[...e.sets].sort().join(`|`))),n=new Map(e.filter(e=>e.sets.length===1&&e.size!==void 0).map(e=>[e.sets[0],e.size])),r=[];for(let i of e){if(i.sets.length<3)continue;let e=[...i.sets].sort();for(let i=0;i0?[...e,...r]:e}var wZ,AOt,TZ,EZ,DZ,jOt,OZ,kZ,MOt,NOt,AZ,POt,FOt,jZ,IOt,MZ,LOt,ROt,NZ,zOt,PZ,BOt,VOt,FZ,HOt,UOt,WOt=o((()=>{kp(),Gm(),Ls(),ar(),tr(),Dp(),Tr(),_Z(),og(),wZ=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[5,8],n=[7,8,11,12,17,19,22,24],r=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],s=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s],void 0);break;case 27:case 28:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s]}},`anonymous`),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(n,[2,4],{6:5}),e(t,[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]},e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),{13:16,20:r,21:i},{13:20,18:19,20:r,21:i},{13:20,18:21,20:r,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:r,21:i},e(n,[2,9],{14:[1,27],15:[1,28]}),e(a,[2,43]),e(a,[2,44]),e(n,[2,13],{14:[1,29],15:[1,30],27:o}),e(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},e(n,[2,22]),e(n,[2,24],{14:[1,35]}),e(n,[2,25],{14:[1,36]}),e(n,[2,26]),{20:s,25:37,26:38,27:o},e(n,[2,10],{15:[1,40]}),{16:[1,41]},e(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:r,21:i},e(n,[2,17],{14:[1,45]}),e(n,[2,18],{14:[1,46]}),e(n,[2,19]),e(n,[2,27]),e(n,[2,28]),e(n,[2,23],{27:[1,47]}),e(l,[2,29]),{15:[1,48]},{16:[1,49]},e(n,[2,11]),{16:[1,50]},e(n,[2,15]),e(a,[2,42]),e(n,[2,20]),e(n,[2,21]),{20:s,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},e(n,[2,12]),e(n,[2,16]),e(l,[2,30]),e(l,[2,31]),e(l,[2,32]),e(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),e(h,[2,34]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),e(h,[2,39]),e(h,[2,40]),e(h,[2,35])],defaultActions:{6:[2,1]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}function wZ(e,t){return CZ(COt(e),t)}function TZ(e,t={}){let{lossFunction:n,layoutFunction:r=hZ,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:o,width:s=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:f=!1,distinct:p,round:m=2}=t,h=r(e,{lossFunction:n==="default"||!n?_Z:n===`logRatio`?fOt:n,distinct:p});i&&(h=bZ(h,a,o));let g=mOt(h,s,l,u,d),_=bOt(g,e,f),v=new Map(Object.keys(g).map(e=>[e,{set:e,x:g[e].x,y:g[e].y,radius:g[e].radius}])),y=e.map(e=>{let t=e.sets.map(e=>v.get(e)),n=COt(t);return{circles:t,arcs:n,path:CZ(n,m),area:e,has:new Set(e.sets)}});function b(e){let t=``;for(let n of y)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return y.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:_[r.sets],circles:e,arcs:t,path:n,distinctPath:n+b(r.sets)}))}var EZ,DZ,OZ=o((()=>{EZ=1e-10,DZ=1e-10})),kZ=l({diagram:()=>BOt});function AZ(){return Bm(ROt,Xo().venn)}function wOt(e){let t=new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}function jZ(e){return e.join(`|`)}function TOt(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),l=new Map;for(let e of r){let t=jZ(e.sets),n=l.get(t);n?n.push(e):l.set(t,[e])}for(let[e,n]of l.entries()){let r=t.get(e);if(!r?.text)continue;let l=r.text.x,u=r.text.y,d=Math.min(...r.circles.map(e=>e.radius)),f=Math.min(...r.circles.map(e=>e.radius-Math.hypot(l-e.x,u-e.y))),p=Number.isFinite(f)?Math.max(0,f):0;p===0&&Number.isFinite(d)&&(p=d*.6);let m=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&m.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,l).attr(`cy`,u).attr(`r`,p).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let h=Math.max(80*i,p*2*.95),g=Math.max(60*i,p*2*.95),_=(r.data.label&&r.data.label.length>0?Math.min(32*i,p*.25):0)+(n.length<=2?30*i:0),v=l-h/2,y=u-g/2+_,b=Math.max(1,Math.ceil(Math.sqrt(n.length))),x=Math.max(1,Math.ceil(n.length/b)),S=h/b,C=g/x;for(let[e,t]of n.entries()){let n=e%b,r=Math.floor(e/b),s=v+S*(n+.5),l=y+C*(r+.5);o&&m.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,v+S*n).attr(`y`,y+C*r).attr(`width`,S).attr(`height`,C).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let u=S*.9,d=C*.9,f=m.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,u).attr(`height`,d).attr(`x`,s-u/2).attr(`y`,l-d/2).attr(`overflow`,`visible`),p=a.get(t.id)?.color,h=f.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(t.label??t.id);p&&h.style(`color`,p)}}}function EOt(e){let t=new Set(e.map(e=>[...e.sets].sort().join(`|`))),n=new Map(e.filter(e=>e.sets.length===1&&e.size!==void 0).map(e=>[e.sets[0],e.size])),r=[];for(let i of e){if(i.sets.length<3)continue;let e=[...i.sets].sort();for(let i=0;i0?[...e,...r]:e}var DOt,MZ,NZ,PZ,FZ,OOt,kOt,IZ,LZ,AOt,RZ,jOt,MOt,zZ,NOt,BZ,POt,FOt,VZ,IOt,LOt,ROt,HZ,zOt,UZ,BOt,VOt=o((()=>{kp(),qm(),Os(),er(),Zn(),Dp(),br(),OZ(),mg(),DOt=(function(){var e=N(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[5,8],n=[7,8,11,12,17,19,22,24],r=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],s=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:N(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:N(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s],void 0);break;case 27:case 28:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s]}},`anonymous`),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(n,[2,4],{6:5}),e(t,[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]},e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),{13:16,20:r,21:i},{13:20,18:19,20:r,21:i},{13:20,18:21,20:r,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:r,21:i},e(n,[2,9],{14:[1,27],15:[1,28]}),e(a,[2,43]),e(a,[2,44]),e(n,[2,13],{14:[1,29],15:[1,30],27:o}),e(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},e(n,[2,22]),e(n,[2,24],{14:[1,35]}),e(n,[2,25],{14:[1,36]}),e(n,[2,26]),{20:s,25:37,26:38,27:o},e(n,[2,10],{15:[1,40]}),{16:[1,41]},e(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:r,21:i},e(n,[2,17],{14:[1,45]}),e(n,[2,18],{14:[1,46]}),e(n,[2,19]),e(n,[2,27]),e(n,[2,28]),e(n,[2,23],{27:[1,47]}),e(l,[2,29]),{15:[1,48]},{16:[1,49]},e(n,[2,11]),{16:[1,50]},e(n,[2,15]),e(a,[2,42]),e(n,[2,20]),e(n,[2,21]),{20:s,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},e(n,[2,12]),e(n,[2,16]),e(l,[2,30]),e(l,[2,31]),e(l,[2,32]),e(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),e(h,[2,34]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),e(h,[2,39]),e(h,[2,40]),e(h,[2,35])],defaultActions:{6:[2,1]},parseError:N(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:N(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}N(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}N(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};g.lexer=(function(){return{EOF:1,parseError:N(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:N(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:N(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:N(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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 i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:N(function(){return this._more=!0,this},`more`),reject:N(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:N(function(e){this.unput(this.match.slice(e))},`less`),pastInput:N(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:N(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:N(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` `+t+`^`},`showPosition`),test_match:N(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:N(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):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:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.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}}}})();function _(){this.yy={}}return N(_,`Parser`),_.prototype=g,g.Parser=_,new _})(),wZ.parser=wZ,AOt=wZ,TZ=[],EZ=[],DZ=[],jOt=new Set,kZ=!1,MOt=N((e,t,n)=>{let r=MZ(e).sort(),i=n??10/e.length**2;OZ=r,r.length===1&&jOt.add(r[0]),TZ.push({sets:r,size:i,label:t?AZ(t):void 0})},`addSubsetData`),NOt=N(()=>TZ,`getSubsetData`),AZ=N(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),POt=N(e=>e&&AZ(e),`normalizeStyleValue`),FOt=N((e,t,n)=>{let r=AZ(t);EZ.push({sets:MZ(e).sort(),id:r,label:n?AZ(n):void 0})},`addTextData`),jZ=N((e,t)=>{let n=MZ(e).sort(),r={};for(let[e,n]of t)r[e]=POt(n)??n;DZ.push({targets:n,styles:r})},`addStyleData`),IOt=N(()=>DZ,`getStyleData`),MZ=N(e=>e.map(e=>AZ(e)),`normalizeIdentifierList`),LOt=N(e=>{let t=MZ(e).filter(e=>!jOt.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),ROt=N(()=>EZ,`getTextData`),NZ=N(()=>OZ,`getCurrentSets`),zOt=N(()=>kZ,`getIndentMode`),PZ=N(e=>{kZ=e},`setIndentMode`),BOt=Wo.venn,N(yZ,`getConfig`),VOt={getConfig:yZ,clear:N(()=>{Ss(),TZ.length=0,EZ.length=0,DZ.length=0,jOt.clear(),OZ=void 0,kZ=!1},`customClear`),setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,getAccDescription:Es,setAccDescription:Ts,addSubsetData:MOt,getSubsetData:NOt,addTextData:FOt,addStyleData:jZ,validateUnionIdentifiers:LOt,getTextData:ROt,getStyleData:IOt,getCurrentSets:NZ,getIndentMode:zOt,setIndentMode:PZ},FZ=N(e=>` +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:N(function(){return this.next()||this.lex()},`lex`),begin:N(function(e){this.conditionStack.push(e)},`begin`),popState:N(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:N(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:N(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:N(function(e){this.begin(e)},`pushState`),stateStackSize:N(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:N(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.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}}}})();function _(){this.yy={}}return N(_,`Parser`),_.prototype=g,g.Parser=_,new _})(),DOt.parser=DOt,MZ=DOt,NZ=[],PZ=[],FZ=[],OOt=new Set,IZ=!1,LZ=N((e,t,n)=>{let r=BZ(e).sort(),i=n??10/e.length**2;kOt=r,r.length===1&&OOt.add(r[0]),NZ.push({sets:r,size:i,label:t?RZ(t):void 0})},`addSubsetData`),AOt=N(()=>NZ,`getSubsetData`),RZ=N(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),jOt=N(e=>e&&RZ(e),`normalizeStyleValue`),MOt=N((e,t,n)=>{let r=RZ(t);PZ.push({sets:BZ(e).sort(),id:r,label:n?RZ(n):void 0})},`addTextData`),zZ=N((e,t)=>{let n=BZ(e).sort(),r={};for(let[e,n]of t)r[e]=jOt(n)??n;FZ.push({targets:n,styles:r})},`addStyleData`),NOt=N(()=>FZ,`getStyleData`),BZ=N(e=>e.map(e=>RZ(e)),`normalizeIdentifierList`),POt=N(e=>{let t=BZ(e).filter(e=>!OOt.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),FOt=N(()=>PZ,`getTextData`),VZ=N(()=>kOt,`getCurrentSets`),IOt=N(()=>IZ,`getIndentMode`),LOt=N(e=>{IZ=e},`setIndentMode`),ROt=Fo.venn,N(AZ,`getConfig`),HZ={getConfig:AZ,clear:N(()=>{fs(),NZ.length=0,PZ.length=0,FZ.length=0,OOt.clear(),kOt=void 0,IZ=!1},`customClear`),setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,getAccDescription:gs,setAccDescription:hs,addSubsetData:LZ,getSubsetData:AOt,addTextData:MOt,addStyleData:zZ,validateUnionIdentifiers:POt,getTextData:FOt,getStyleData:NOt,getCurrentSets:VZ,getIndentMode:IOt,setIndentMode:LOt},zOt=N(e=>` .venn-title { font-size: 32px; fill: ${e.vennTitleTextColor}; @@ -3704,7 +3706,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l font-family: ${e.fontFamily}; color: ${e.vennSetTextColor}; } -`,`getStyles`),N(bZ,`buildStyleByKey`),HOt=N((e,t,n,r)=>{let i=r.db,a=i.getConfig?.(),{themeVariables:o,look:s,handDrawnSeed:l}=ns(),u=s===`handDrawn`,d=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),f=i.getDiagramTitle?.(),p=i.getSubsetData(),m=i.getTextData(),h=bZ(i.getStyleData()),g=CZ(p),_=a?.width??800,v=a?.height??450,y=_/1600,b=f?48*y:0,x=o.primaryTextColor??o.textColor,S=Op(t);S.attr(`viewBox`,`0 0 ${_} ${v}`),f&&S.append(`text`).text(f).attr(`class`,`venn-title`).attr(`font-size`,`${32*y}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*y).style(`fill`,o.vennTitleTextColor||o.titleColor);let C=Qc(document.createElement(`div`)),w=mZ().width(_).height(v-b);C.datum(g).call(w);let T=u?ag.svg(C.select(`svg`).node()):void 0,E=DOt(g,{width:_,height:v-b,padding:a?.padding??15}),D=new Map;for(let e of E){let t=xZ([...e.data.sets].sort());D.set(t,e)}m.length>0&&SZ(a,D,C,m,y,h);let O=br(o.background||`#f4f4f4`);C.selectAll(`.venn-circle`).each(function(e,t){let n=Qc(this),r=xZ([...e.sets].sort()),i=h.get(r),a=d.length>0?d[t%d.length]:void 0,s=i?.fill||a||o.primaryColor;n.classed(`venn-set-${t%8}`,!0);let f=i?.[`fill-opacity`]??.1,p=i?.stroke||s,m=i?.[`stroke-width`]||`${5*y}`;if(u&&T){let e=D.get(r);if(e&&e.circles.length>0){let r=e.circles[0],i=T.circle(r.x,r.y,r.radius*2,{roughness:.7,seed:l,fill:Mse(s,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+t*60,stroke:p,strokeWidth:parseFloat(String(m))});n.select(`path`).remove(),n.node()?.insertBefore(i,n.select(`text`).node())}}else n.select(`path`).style(`fill`,s).style(`fill-opacity`,f).style(`stroke`,p).style(`stroke-width`,m).style(`stroke-opacity`,.95);let g=i?.color||(O?xr(s,30):Sr(s,30));n.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,g)}),u&&T?C.selectAll(`.venn-intersection`).each(function(e){let t=Qc(this),n=xZ([...e.sets].sort()),r=h.get(n),i=r?.fill;if(i){let e=t.select(`path`),n=e.attr(`d`);if(n){let t=T.path(n,{roughness:.7,seed:l,fill:Mse(i,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(t,r),e.remove()}}else t.select(`path`).style(`fill-opacity`,0);t.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,r?.color??o.vennSetTextColor??x)}):(C.selectAll(`.venn-intersection text`).style(`font-size`,`${48*y}px`).style(`fill`,e=>{let t=xZ([...e.sets].sort());return h.get(t)?.color??o.vennSetTextColor??x}),C.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=xZ([...e.sets].sort());return+!!h.get(t)?.fill}).style(`fill`,e=>{let t=xZ([...e.sets].sort());return h.get(t)?.fill??`transparent`}));let k=S.append(`g`).attr(`transform`,`translate(0, ${b})`),A=C.select(`svg`).node();if(A&&`childNodes`in A)for(let e of[...A.childNodes])k.node()?.appendChild(e);_s(S,v,_,a?.useMaxWidth??!0)},`draw`),N(xZ,`stableSetsKey`),N(SZ,`renderTextNodes`),N(CZ,`ensurePairwiseSubsets`),UOt={parser:AOt,db:VOt,renderer:{draw:HOt},styles:FZ}})),IZ=l({diagram:()=>XOt});function GOt(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}var LZ,KOt,qOt,RZ,JOt,zZ,BZ,VZ,YOt,XOt,ZOt=o((()=>{sP(),kp(),$N(),sm(),Gm(),Ls(),ar(),tr(),iW(),Dp(),LZ=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Cs,this.getAccTitle=ws,this.setDiagramTitle=Ds,this.getDiagramTitle=Os,this.getAccDescription=Es,this.setAccDescription=Ts}static{N(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=Wo,t=ns();return Rm({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{VTe(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){Ss(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},N(GOt,`buildHierarchy`),KOt=N((e,t)=>{oP(e,t);let n=[];for(let n of e.TreemapRows??[])n.$type===`ClassDefStatement`&&t.addClass(n.className??``,n.styleText??``);for(let r of e.TreemapRows??[]){let e=r.item;if(!e)continue;let i=r.indent?parseInt(r.indent):0,a=qOt(e),o=e.classSelector?t.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,l={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};n.push(l)}let r=GOt(n),i=N((e,n)=>{for(let r of e)t.addNode(r,n),r.children&&r.children.length>0&&i(r.children,n+1)},`addNodesRecursively`);i(r,0)},`populate`),qOt=N(e=>e.name?String(e.name):``,`getItemName`),RZ={parser:{yy:void 0},parse:N(async e=>{try{let t=await eW(`treemap`,e);P.debug(`Treemap AST:`,t);let n=RZ.parser?.yy;if(!(n instanceof LZ))throw 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.`);KOt(t,n)}catch(e){throw P.error(`Error parsing treemap:`,e),e}},`parse`)},JOt=10,zZ=10,BZ=25,VZ={draw:N((e,t,n,r)=>{let i=r.db,a=i.getConfig(),o=a.padding??JOt,s=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=ns();if(!l)return;let d=s?30:0,f=Op(t),p=a.nodeWidth?a.nodeWidth*zZ:960,m=a.nodeHeight?a.nodeHeight*zZ:500,h=p,g=m+d;f.attr(`viewBox`,`0 0 ${h} ${g}`),_s(f,g,h,a.useMaxWidth);let _;try{let e=a.valueFormat||`,`;if(e===`$0,0`)_=N(e=>`$`+ad(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let t=/\.\d+/.exec(e),n=t?t[0]:``;_=N(e=>`$`+ad(`,`+n)(e),`valueFormat`)}else if(e.startsWith(`$`)){let t=e.substring(1);_=N(e=>`$`+ad(t||``)(e),`valueFormat`)}else _=ad(e)}catch(e){P.error(`Error creating format function:`,e),_=ad(`,`)}let v=Od().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]),y=Od().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]),b=Od().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]);s&&f.append(`text`).attr(`x`,h/2).attr(`y`,d/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s);let x=f.append(`g`).attr(`transform`,`translate(0, ${d})`).attr(`class`,`treemapContainer`),S=yd(l).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),C=axe().size([p,m]).paddingTop(e=>e.children&&e.children.length>0?BZ+zZ:0).paddingInner(o).paddingLeft(e=>e.children&&e.children.length>0?zZ:0).paddingRight(e=>e.children&&e.children.length>0?zZ:0).paddingBottom(e=>e.children&&e.children.length>0?zZ:0).round(!0)(S),w=C.descendants().filter(e=>e.children&&e.children.length>0),T=x.selectAll(`.treemapSection`).data(w).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,BZ).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),T.append(`clipPath`).attr(`id`,(e,n)=>`clip-section-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,BZ),T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>v(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>y(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=am({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),T.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,BZ/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,n)=>`url(#clip-section-${t}-${n})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+am({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=Qc(this),n=e.data.name;t.text(n);let r=e.x1-e.x0,i;i=a.showValues!==!1&&e.value?r-10-30-10-6:r-6-6;let o=Math.max(15,i),s=t.node();if(s.getComputedTextLength()>o){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),a.showValues!==!1&&T.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,BZ/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?_(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+am({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let E=C.leaves(),D=E.length>20,O=D?16:38,k=D?14:28,A=D?4:8,j=D?4:6,M=D?2:4,ee=D?8:10,te=D?1:2,ne=x.selectAll(`.treemapLeafGroup`).data(E).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);ne.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`style`,e=>am({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`stroke-width`,3),ne.append(`clipPath`).attr(`id`,(e,n)=>`clip-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),ne.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${O}px;fill:`+b(e.data.name)+`;`+am({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.data.name).each(function(e){let t=Qc(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),a=n-2*M,o=r-2*M;if(aa&&s>A;)s--,t.style(`font-size`,`${s}px`);let u=Math.max(j,Math.min(k,Math.round(s*l))),d=s+te+u;for(;d>o&&s>A&&(s--,u=Math.max(j,Math.min(k,Math.round(s*l))),!(ua||s(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${k}px;fill:`+b(e.data.name)+`;`+am({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.value?_(e.value):``).each(function(e){let t=Qc(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let r=Qc(n).select(`.treemapLabel`);if(r.empty()||r.style(`display`)===`none`){t.style(`display`,`none`);return}let i=parseFloat(r.style(`font-size`)),a=Math.max(j,Math.min(k,Math.round(i*.6)));t.style(`font-size`,`${a}px`);let o=(e.y1-e.y0)/2+i/2+te;t.attr(`y`,o);let s=e.x1-e.x0,l=e.y1-e.y0-4,u=s-2*M;t.node().getComputedTextLength()>u||o+a>l||a{let t=Rm(No(),ns().themeVariables),n=Rm(YOt,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,a=n.valueColor??t.textColor;return` +`,`getStyles`),N(wOt,`buildStyleByKey`),UZ=N((e,t,n,r)=>{let i=r.db,a=i.getConfig?.(),{themeVariables:o,look:s,handDrawnSeed:l}=Xo(),u=s===`handDrawn`,d=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),f=i.getDiagramTitle?.(),p=i.getSubsetData(),m=i.getTextData(),h=wOt(i.getStyleData()),g=EOt(p),_=a?.width??800,v=a?.height??450,y=_/1600,b=f?48*y:0,x=o.primaryTextColor??o.textColor,S=Op(t);S.attr(`viewBox`,`0 0 ${_} ${v}`),f&&S.append(`text`).text(f).attr(`class`,`venn-title`).attr(`font-size`,`${32*y}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*y).style(`fill`,o.vennTitleTextColor||o.titleColor);let C=Bc(document.createElement(`div`)),w=_Ot().width(_).height(v-b);C.datum(g).call(w);let T=u?pg.svg(C.select(`svg`).node()):void 0,E=TZ(g,{width:_,height:v-b,padding:a?.padding??15}),D=new Map;for(let e of E){let t=jZ([...e.data.sets].sort());D.set(t,e)}m.length>0&&TOt(a,D,C,m,y,h);let O=hr(o.background||`#f4f4f4`);C.selectAll(`.venn-circle`).each(function(e,t){let n=Bc(this),r=jZ([...e.sets].sort()),i=h.get(r),a=d.length>0?d[t%d.length]:void 0,s=i?.fill||a||o.primaryColor;n.classed(`venn-set-${t%8}`,!0);let f=i?.[`fill-opacity`]??.1,p=i?.stroke||s,m=i?.[`stroke-width`]||`${5*y}`;if(u&&T){let e=D.get(r);if(e&&e.circles.length>0){let r=e.circles[0],i=T.circle(r.x,r.y,r.radius*2,{roughness:.7,seed:l,fill:Hse(s,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+t*60,stroke:p,strokeWidth:parseFloat(String(m))});n.select(`path`).remove(),n.node()?.insertBefore(i,n.select(`text`).node())}}else n.select(`path`).style(`fill`,s).style(`fill-opacity`,f).style(`stroke`,p).style(`stroke-width`,m).style(`stroke-opacity`,.95);let g=i?.color||(O?gr(s,30):_r(s,30));n.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,g)}),u&&T?C.selectAll(`.venn-intersection`).each(function(e){let t=Bc(this),n=jZ([...e.sets].sort()),r=h.get(n),i=r?.fill;if(i){let e=t.select(`path`),n=e.attr(`d`);if(n){let t=T.path(n,{roughness:.7,seed:l,fill:Hse(i,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(t,r),e.remove()}}else t.select(`path`).style(`fill-opacity`,0);t.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,r?.color??o.vennSetTextColor??x)}):(C.selectAll(`.venn-intersection text`).style(`font-size`,`${48*y}px`).style(`fill`,e=>{let t=jZ([...e.sets].sort());return h.get(t)?.color??o.vennSetTextColor??x}),C.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=jZ([...e.sets].sort());return+!!h.get(t)?.fill}).style(`fill`,e=>{let t=jZ([...e.sets].sort());return h.get(t)?.fill??`transparent`}));let k=S.append(`g`).attr(`transform`,`translate(0, ${b})`),A=C.select(`svg`).node();if(A&&`childNodes`in A)for(let e of[...A.childNodes])k.node()?.appendChild(e);ls(S,v,_,a?.useMaxWidth??!0)},`draw`),N(jZ,`stableSetsKey`),N(TOt,`renderTextNodes`),N(EOt,`ensurePairwiseSubsets`),BOt={parser:MZ,db:HZ,renderer:{draw:UZ},styles:zOt}})),HOt=l({diagram:()=>JOt});function UOt(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}var WZ,WOt,GZ,KZ,GOt,qZ,JZ,KOt,qOt,JOt,YOt=o((()=>{sP(),kp(),XN(),dm(),qm(),Os(),er(),Zn(),nW(),Dp(),WZ=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ps,this.getAccTitle=ms,this.setDiagramTitle=_s,this.getDiagramTitle=vs,this.getAccDescription=gs,this.setAccDescription=hs}static{N(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=Fo,t=Xo();return Bm({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{UTe(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){fs(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},N(UOt,`buildHierarchy`),WOt=N((e,t)=>{oP(e,t);let n=[];for(let n of e.TreemapRows??[])n.$type===`ClassDefStatement`&&t.addClass(n.className??``,n.styleText??``);for(let r of e.TreemapRows??[]){let e=r.item;if(!e)continue;let i=r.indent?parseInt(r.indent):0,a=GZ(e),o=e.classSelector?t.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,l={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};n.push(l)}let r=UOt(n),i=N((e,n)=>{for(let r of e)t.addNode(r,n),r.children&&r.children.length>0&&i(r.children,n+1)},`addNodesRecursively`);i(r,0)},`populate`),GZ=N(e=>e.name?String(e.name):``,`getItemName`),KZ={parser:{yy:void 0},parse:N(async e=>{try{let t=await QU(`treemap`,e);P.debug(`Treemap AST:`,t);let n=KZ.parser?.yy;if(!(n instanceof WZ))throw 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.`);WOt(t,n)}catch(e){throw P.error(`Error parsing treemap:`,e),e}},`parse`)},GOt=10,qZ=10,JZ=25,KOt={draw:N((e,t,n,r)=>{let i=r.db,a=i.getConfig(),o=a.padding??GOt,s=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=Xo();if(!l)return;let d=s?30:0,f=Op(t),p=a.nodeWidth?a.nodeWidth*qZ:960,m=a.nodeHeight?a.nodeHeight*qZ:500,h=p,g=m+d;f.attr(`viewBox`,`0 0 ${h} ${g}`),ls(f,g,h,a.useMaxWidth);let _;try{let e=a.valueFormat||`,`;if(e===`$0,0`)_=N(e=>`$`+Yu(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let t=/\.\d+/.exec(e),n=t?t[0]:``;_=N(e=>`$`+Yu(`,`+n)(e),`valueFormat`)}else if(e.startsWith(`$`)){let t=e.substring(1);_=N(e=>`$`+Yu(t||``)(e),`valueFormat`)}else _=Yu(e)}catch(e){P.error(`Error creating format function:`,e),_=Yu(`,`)}let v=yd().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]),y=yd().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]),b=yd().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]);s&&f.append(`text`).attr(`x`,h/2).attr(`y`,d/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s);let x=f.append(`g`).attr(`transform`,`translate(0, ${d})`).attr(`class`,`treemapContainer`),S=ixe(l).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),C=yxe().size([p,m]).paddingTop(e=>e.children&&e.children.length>0?JZ+qZ:0).paddingInner(o).paddingLeft(e=>e.children&&e.children.length>0?qZ:0).paddingRight(e=>e.children&&e.children.length>0?qZ:0).paddingBottom(e=>e.children&&e.children.length>0?qZ:0).round(!0)(S),w=C.descendants().filter(e=>e.children&&e.children.length>0),T=x.selectAll(`.treemapSection`).data(w).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,JZ).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),T.append(`clipPath`).attr(`id`,(e,n)=>`clip-section-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,JZ),T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>v(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>y(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=cm({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),T.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,JZ/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,n)=>`url(#clip-section-${t}-${n})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+cm({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=Bc(this),n=e.data.name;t.text(n);let r=e.x1-e.x0,i;i=a.showValues!==!1&&e.value?r-10-30-10-6:r-6-6;let o=Math.max(15,i),s=t.node();if(s.getComputedTextLength()>o){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),a.showValues!==!1&&T.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,JZ/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?_(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+cm({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let E=C.leaves(),D=E.length>20,O=D?16:38,k=D?14:28,A=D?4:8,j=D?4:6,M=D?2:4,ee=D?8:10,te=D?1:2,ne=x.selectAll(`.treemapLeafGroup`).data(E).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);ne.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`style`,e=>cm({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`stroke-width`,3),ne.append(`clipPath`).attr(`id`,(e,n)=>`clip-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),ne.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${O}px;fill:`+b(e.data.name)+`;`+cm({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.data.name).each(function(e){let t=Bc(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),a=n-2*M,o=r-2*M;if(aa&&s>A;)s--,t.style(`font-size`,`${s}px`);let u=Math.max(j,Math.min(k,Math.round(s*l))),d=s+te+u;for(;d>o&&s>A&&(s--,u=Math.max(j,Math.min(k,Math.round(s*l))),!(ua||s(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${k}px;fill:`+b(e.data.name)+`;`+cm({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.value?_(e.value):``).each(function(e){let t=Bc(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let r=Bc(n).select(`.treemapLabel`);if(r.empty()||r.style(`display`)===`none`){t.style(`display`,`none`);return}let i=parseFloat(r.style(`font-size`)),a=Math.max(j,Math.min(k,Math.round(i*.6)));t.style(`font-size`,`${a}px`);let o=(e.y1-e.y0)/2+i/2+te;t.attr(`y`,o);let s=e.x1-e.x0,l=e.y1-e.y0-4,u=s-2*M;t.node().getComputedTextLength()>u||o+a>l||a{let t=Bm(wo(),Xo().themeVariables),n=Bm(qOt,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,a=n.valueColor??t.textColor;return` .treemapNode.section { stroke: ${n.sectionStrokeColor}; stroke-width: ${n.sectionStrokeWidth}; @@ -3727,82 +3729,82 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l fill: ${r}; font-size: ${n.titleFontSize}; } - `},`getStyles`)}}));function HZ(e){console&&console.error&&console.error(`Error: ${e}`)}function QOt(e){console&&console.warn&&console.warn(`Warning: ${e}`)}var $Ot=o((()=>{}));function ekt(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}var tkt=o((()=>{}));function nkt(e){function t(){}t.prototype=e;let n=new t;function r(){return typeof n.bar}return r(),r(),e}var rkt=o((()=>{})),UZ=o((()=>{$Ot(),tkt(),rkt()}));function ikt(e){return akt(e)?e.LABEL:e.name}function akt(e){return typeof e.LABEL==`string`&&e.LABEL!==``}function okt(e){return e.map(skt)}function skt(e){function t(e){return e.map(skt)}if(e instanceof KZ){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}if(e instanceof JZ)return{type:`Alternative`,definition:t(e.definition)};if(e instanceof YZ)return{type:`Option`,idx:e.idx,definition:t(e.definition)};if(e instanceof XZ)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};if(e instanceof ZZ)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:skt(new tQ({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof $Z)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:skt(new tQ({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof QZ)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};if(e instanceof eQ)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};if(e instanceof tQ){let t={type:`Terminal`,name:e.terminalType.name,label:ikt(e.terminalType),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}if(e instanceof qZ)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error(`non exhaustive match`)}function WZ(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var GZ,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,$Z,eQ,tQ,nQ=o((()=>{GZ=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},KZ=class extends GZ{constructor(e){super([]),this.idx=1,Object.assign(this,WZ(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},qZ=class extends GZ{constructor(e){super(e.definition),this.orgText=``,Object.assign(this,WZ(e))}},JZ=class extends GZ{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,WZ(e))}},YZ=class extends GZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,WZ(e))}},XZ=class extends GZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,WZ(e))}},ZZ=class extends GZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,WZ(e))}},QZ=class extends GZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,WZ(e))}},$Z=class extends GZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,WZ(e))}},eQ=class extends GZ{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,Object.assign(this,WZ(e))}},tQ=class{constructor(e){this.idx=1,Object.assign(this,WZ(e))}accept(e){e.visit(this)}}})),rQ,iQ=o((()=>{nQ(),rQ=class{visit(e){let t=e;switch(t.constructor){case KZ:return this.visitNonTerminal(t);case JZ:return this.visitAlternative(t);case YZ:return this.visitOption(t);case XZ:return this.visitRepetitionMandatory(t);case ZZ:return this.visitRepetitionMandatoryWithSeparator(t);case $Z:return this.visitRepetitionWithSeparator(t);case QZ:return this.visitRepetition(t);case eQ:return this.visitAlternation(t);case tQ:return this.visitTerminal(t);case qZ:return this.visitRule(t);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){}}}));function aQ(e){return e instanceof JZ||e instanceof YZ||e instanceof QZ||e instanceof XZ||e instanceof ZZ||e instanceof $Z||e instanceof tQ||e instanceof qZ}function oQ(e,t=[]){return e instanceof YZ||e instanceof QZ||e instanceof $Z?!0:e instanceof eQ?e.definition.some(e=>oQ(e,t)):e instanceof KZ&&t.includes(e)?!1:e instanceof GZ&&(e instanceof KZ&&t.push(e),e.definition.every(e=>oQ(e,t)))}function sQ(e){return e instanceof eQ}function cQ(e){if(e instanceof KZ)return`SUBRULE`;if(e instanceof YZ)return`OPTION`;if(e instanceof eQ)return`OR`;if(e instanceof XZ)return`AT_LEAST_ONE`;if(e instanceof ZZ)return`AT_LEAST_ONE_SEP`;if(e instanceof $Z)return`MANY_SEP`;if(e instanceof QZ)return`MANY`;if(e instanceof tQ)return`CONSUME`;throw Error(`non exhaustive match`)}var ckt=o((()=>{nQ()})),lQ=o((()=>{nQ(),iQ(),ckt()}));function lkt(e,t,n){return[new YZ({definition:[new tQ({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}var uQ,dQ=o((()=>{lQ(),uQ=class{walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof KZ)this.walkProdRef(n,i,t);else if(n instanceof tQ)this.walkTerminal(n,i,t);else if(n instanceof JZ)this.walkFlat(n,i,t);else if(n instanceof YZ)this.walkOption(n,i,t);else if(n instanceof XZ)this.walkAtLeastOne(n,i,t);else if(n instanceof ZZ)this.walkAtLeastOneSep(n,i,t);else if(n instanceof $Z)this.walkManySep(n,i,t);else if(n instanceof QZ)this.walkMany(n,i,t);else if(n instanceof eQ)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new YZ({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=lkt(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new YZ({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=lkt(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new JZ({definition:[e]});this.walk(t,r)})}}}));function fQ(e){if(e instanceof KZ)return fQ(e.referencedRule);if(e instanceof tQ)return hQ(e);if(aQ(e))return pQ(e);if(sQ(e))return mQ(e);throw Error(`non exhaustive match`)}function pQ(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=oQ(a),t=t.concat(fQ(a)),r+=1,i=n.length>r;return[...new Set(t)]}function mQ(e){let t=e.definition.map(e=>fQ(e));return[...new Set(t.flat())]}function hQ(e){return[e.terminalType]}var ukt=o((()=>{lQ()})),dkt,fkt=o((()=>{dkt=`_~IN~_`}));function pkt(e){let t={};return e.forEach(e=>{let n=new hkt(e).startWalking();Object.assign(t,n)}),t}function mkt(e,t){return e.name+t+dkt}var hkt,gkt=o((()=>{dQ(),ukt(),fkt(),lQ(),hkt=class extends uQ{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=mkt(e.referencedRule,e.idx)+this.topProd.name,i=t.concat(n),a=fQ(new JZ({definition:i}));this.follows[r]=a}}}));function gQ(e){return e.charCodeAt(0)}function _Q(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function vQ(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function yQ(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function bQ(){throw Error(`Internal Error - Should never get here!`)}function xQ(e){return e.type===`Character`}var _kt=o((()=>{})),SQ,CQ,wQ,TQ=o((()=>{_kt(),SQ=[];for(let e=gQ(`0`);e<=gQ(`9`);e++)SQ.push(e);CQ=[gQ(`_`)].concat(SQ);for(let e=gQ(`a`);e<=gQ(`z`);e++)CQ.push(e);for(let e=gQ(`A`);e<=gQ(`Z`);e++)CQ.push(e);wQ=[gQ(` `),gQ(`\f`),gQ(` -`),gQ(`\r`),gQ(` `),gQ(`\v`),gQ(` `),gQ(`\xA0`),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(` `),gQ(`\u2028`),gQ(`\u2029`),gQ(` `),gQ(` `),gQ(` `),gQ(``)]})),EQ,DQ,OQ,kQ,vkt=o((()=>{_kt(),TQ(),EQ=/[0-9a-fA-F]/,DQ=/[0-9]/,OQ=/[1-9]/,kQ=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(`/`);let t=this.disjunction();this.consumeChar(`/`);let 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`:vQ(n,`global`);break;case`i`:vQ(n,`ignoreCase`);break;case`m`:vQ(n,`multiLine`);break;case`u`:vQ(n,`unicode`);break;case`y`:vQ(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let 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 t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}yQ(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return bQ()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;yQ(t)}if((e!==!0||t!==void 0)&&yQ(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),yQ(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):bQ()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[gQ(` -`),gQ(`\r`),gQ(`\u2028`),gQ(`\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,t=!1;switch(this.popChar()){case`d`:e=SQ;break;case`D`:e=SQ,t=!0;break;case`s`:e=wQ;break;case`S`:e=wQ,t=!0;break;case`w`:e=CQ;break;case`W`:e=CQ,t=!0}return yQ(e)?{type:`Set`,value:e,complement:t}:bQ()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=gQ(`\f`);break;case`n`:e=gQ(` -`);break;case`r`:e=gQ(`\r`);break;case`t`:e=gQ(` `);break;case`v`:e=gQ(`\v`)}return yQ(e)?{type:`Character`,value:e}:bQ()}controlLetterEscapeAtom(){this.consumeChar(`c`);let 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:gQ(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:gQ(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` -`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:gQ(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,xQ(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,xQ(n)){if(n.value{}));function $Ot(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}var ekt=o((()=>{}));function tkt(e){function t(){}t.prototype=e;let n=new t;function r(){return typeof n.bar}return r(),r(),e}var nkt=o((()=>{})),YZ=o((()=>{QOt(),ekt(),nkt()}));function rkt(e){return ikt(e)?e.LABEL:e.name}function ikt(e){return typeof e.LABEL==`string`&&e.LABEL!==``}function akt(e){return e.map(XZ)}function XZ(e){function t(e){return e.map(XZ)}if(e instanceof $Z){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}if(e instanceof tQ)return{type:`Alternative`,definition:t(e.definition)};if(e instanceof nQ)return{type:`Option`,idx:e.idx,definition:t(e.definition)};if(e instanceof rQ)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};if(e instanceof iQ)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:XZ(new cQ({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof oQ)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:XZ(new cQ({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof aQ)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};if(e instanceof sQ)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};if(e instanceof cQ){let t={type:`Terminal`,name:e.terminalType.name,label:rkt(e.terminalType),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}if(e instanceof eQ)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error(`non exhaustive match`)}function ZZ(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ=o((()=>{QZ=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},$Z=class extends QZ{constructor(e){super([]),this.idx=1,Object.assign(this,ZZ(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},eQ=class extends QZ{constructor(e){super(e.definition),this.orgText=``,Object.assign(this,ZZ(e))}},tQ=class extends QZ{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ZZ(e))}},nQ=class extends QZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ZZ(e))}},rQ=class extends QZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ZZ(e))}},iQ=class extends QZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ZZ(e))}},aQ=class extends QZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ZZ(e))}},oQ=class extends QZ{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ZZ(e))}},sQ=class extends QZ{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,Object.assign(this,ZZ(e))}},cQ=class{constructor(e){this.idx=1,Object.assign(this,ZZ(e))}accept(e){e.visit(this)}}})),uQ,okt=o((()=>{lQ(),uQ=class{visit(e){let t=e;switch(t.constructor){case $Z:return this.visitNonTerminal(t);case tQ:return this.visitAlternative(t);case nQ:return this.visitOption(t);case rQ:return this.visitRepetitionMandatory(t);case iQ:return this.visitRepetitionMandatoryWithSeparator(t);case oQ:return this.visitRepetitionWithSeparator(t);case aQ:return this.visitRepetition(t);case sQ:return this.visitAlternation(t);case cQ:return this.visitTerminal(t);case eQ:return this.visitRule(t);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){}}}));function dQ(e){return e instanceof tQ||e instanceof nQ||e instanceof aQ||e instanceof rQ||e instanceof iQ||e instanceof oQ||e instanceof cQ||e instanceof eQ}function fQ(e,t=[]){return e instanceof nQ||e instanceof aQ||e instanceof oQ?!0:e instanceof sQ?e.definition.some(e=>fQ(e,t)):e instanceof $Z&&t.includes(e)?!1:e instanceof QZ&&(e instanceof $Z&&t.push(e),e.definition.every(e=>fQ(e,t)))}function skt(e){return e instanceof sQ}function pQ(e){if(e instanceof $Z)return`SUBRULE`;if(e instanceof nQ)return`OPTION`;if(e instanceof sQ)return`OR`;if(e instanceof rQ)return`AT_LEAST_ONE`;if(e instanceof iQ)return`AT_LEAST_ONE_SEP`;if(e instanceof oQ)return`MANY_SEP`;if(e instanceof aQ)return`MANY`;if(e instanceof cQ)return`CONSUME`;throw Error(`non exhaustive match`)}var ckt=o((()=>{lQ()})),mQ=o((()=>{lQ(),okt(),ckt()}));function hQ(e,t,n){return[new nQ({definition:[new cQ({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}var gQ,lkt=o((()=>{mQ(),gQ=class{walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof $Z)this.walkProdRef(n,i,t);else if(n instanceof cQ)this.walkTerminal(n,i,t);else if(n instanceof tQ)this.walkFlat(n,i,t);else if(n instanceof nQ)this.walkOption(n,i,t);else if(n instanceof rQ)this.walkAtLeastOne(n,i,t);else if(n instanceof iQ)this.walkAtLeastOneSep(n,i,t);else if(n instanceof oQ)this.walkManySep(n,i,t);else if(n instanceof aQ)this.walkMany(n,i,t);else if(n instanceof sQ)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new nQ({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=hQ(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new nQ({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=hQ(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new tQ({definition:[e]});this.walk(t,r)})}}}));function _Q(e){if(e instanceof $Z)return _Q(e.referencedRule);if(e instanceof cQ)return fkt(e);if(dQ(e))return ukt(e);if(skt(e))return dkt(e);throw Error(`non exhaustive match`)}function ukt(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=fQ(a),t=t.concat(_Q(a)),r+=1,i=n.length>r;return[...new Set(t)]}function dkt(e){let t=e.definition.map(e=>_Q(e));return[...new Set(t.flat())]}function fkt(e){return[e.terminalType]}var pkt=o((()=>{mQ()})),mkt,vQ=o((()=>{mkt=`_~IN~_`}));function yQ(e){let t={};return e.forEach(e=>{let n=new gkt(e).startWalking();Object.assign(t,n)}),t}function hkt(e,t){return e.name+t+mkt}var gkt,_kt=o((()=>{lkt(),pkt(),vQ(),mQ(),gkt=class extends gQ{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=hkt(e.referencedRule,e.idx)+this.topProd.name,i=t.concat(n),a=_Q(new tQ({definition:i}));this.follows[r]=a}}}));function bQ(e){return e.charCodeAt(0)}function vkt(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function xQ(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function SQ(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function CQ(){throw Error(`Internal Error - Should never get here!`)}function wQ(e){return e.type===`Character`}var TQ=o((()=>{})),EQ,DQ,OQ,ykt=o((()=>{TQ(),EQ=[];for(let e=bQ(`0`);e<=bQ(`9`);e++)EQ.push(e);DQ=[bQ(`_`)].concat(EQ);for(let e=bQ(`a`);e<=bQ(`z`);e++)DQ.push(e);for(let e=bQ(`A`);e<=bQ(`Z`);e++)DQ.push(e);OQ=[bQ(` `),bQ(`\f`),bQ(` +`),bQ(`\r`),bQ(` `),bQ(`\v`),bQ(` `),bQ(`\xA0`),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(` `),bQ(`\u2028`),bQ(`\u2029`),bQ(` `),bQ(` `),bQ(` `),bQ(``)]})),kQ,AQ,bkt,xkt,jQ=o((()=>{TQ(),ykt(),kQ=/[0-9a-fA-F]/,AQ=/[0-9]/,bkt=/[1-9]/,xkt=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(`/`);let t=this.disjunction();this.consumeChar(`/`);let 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`:xQ(n,`global`);break;case`i`:xQ(n,`ignoreCase`);break;case`m`:xQ(n,`multiLine`);break;case`u`:xQ(n,`unicode`);break;case`y`:xQ(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let 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 t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}SQ(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return CQ()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;SQ(t)}if((e!==!0||t!==void 0)&&SQ(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),SQ(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):CQ()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[bQ(` +`),bQ(`\r`),bQ(`\u2028`),bQ(`\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,t=!1;switch(this.popChar()){case`d`:e=EQ;break;case`D`:e=EQ,t=!0;break;case`s`:e=OQ;break;case`S`:e=OQ,t=!0;break;case`w`:e=DQ;break;case`W`:e=DQ,t=!0}return SQ(e)?{type:`Set`,value:e,complement:t}:CQ()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=bQ(`\f`);break;case`n`:e=bQ(` +`);break;case`r`:e=bQ(`\r`);break;case`t`:e=bQ(` `);break;case`v`:e=bQ(`\v`)}return SQ(e)?{type:`Character`,value:e}:CQ()}controlLetterEscapeAtom(){this.consumeChar(`c`);let 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:bQ(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:bQ(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:bQ(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,wQ(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,wQ(n)){if(n.value=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}}})),AQ,jQ=o((()=>{AQ=class{visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}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)}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){}}})),MQ=o((()=>{vkt(),jQ()}));function NQ(e){let t=e.toString();if(FQ.hasOwnProperty(t))return FQ[t];{let e=IQ.pattern(t);return FQ[t]=e,e}}function PQ(){FQ={}}var FQ,IQ,LQ=o((()=>{MQ(),FQ={},IQ=new kQ}));function ykt(e,t=!1){try{let t=NQ(e);return RQ(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===WQ)t&&QOt(`${GQ}\tUnable to optimize: < ${e.toString()} >\n Complement Sets cannot be automatically optimized. +`:case`\r`:case`\u2028`:case`\u2029`:return!1;default:return!0}}parseHexDigits(e){let t=``;for(let n=0;n=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}}})),MQ,NQ=o((()=>{MQ=class{visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}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)}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){}}})),PQ=o((()=>{jQ(),NQ()}));function FQ(e){let t=e.toString();if(LQ.hasOwnProperty(t))return LQ[t];{let e=RQ.pattern(t);return LQ[t]=e,e}}function IQ(){LQ={}}var LQ,RQ,zQ=o((()=>{PQ(),LQ={},RQ=new xkt}));function BQ(e,t=!1){try{let t=FQ(e);return VQ(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===wkt)t&&ZOt(`${GQ}\tUnable to optimize: < ${e.toString()} >\n Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=` This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),HZ(`${GQ}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function RQ(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)zQ(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)zQ(e,t,n);else{for(let e=r.from;e<=r.to&&e<256;e++)zQ(e,t,n);if(r.to>=256){let e=r.from>=256?r.from:256,n=r.to,i=l$(e),a=l$(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:RQ(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&HQ(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return Object.values(t)}function zQ(e,t,n){let r=l$(e);t[r]=r,n===!0&&BQ(e,t)}function BQ(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=l$(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=l$(e.charCodeAt(0));t[n]=n}}}function VQ(e,t){return e.value.find(e=>{if(typeof e==`number`)return t.includes(e);{let n=e;return t.find(e=>n.from<=e&&e<=n.to)!==void 0}})}function HQ(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Array.isArray(e.value)?e.value.every(HQ):HQ(e.value):!1}function UQ(e,t){if(t instanceof RegExp){let n=NQ(t),r=new KQ(e);return r.visit(n),r.found}for(let n of t){let t=n.charCodeAt(0);if(e.includes(t))return!0}return!1}var WQ,GQ,KQ,bkt=o((()=>{MQ(),UZ(),LQ(),Ikt(),WQ=`Complement Sets are not supported for first char optimization`,GQ=`Unable to use "first char" lexer optimizations: -`,KQ=class extends AQ{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){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?VQ(e,this.targetCharCodes)===void 0&&(this.found=!0):VQ(e,this.targetCharCodes)!==void 0&&(this.found=!0)}}}));function xkt(e,t){t=Object.assign({safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` -`],tracer:(e,t)=>t()},t);let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{jkt()});let r;n(`Reject Lexer.NA`,()=>{r=e.filter(e=>e[u$]!==v$.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=r.map(e=>{let t=e[u$];if(t instanceof RegExp){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&![`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`].includes(e[1])?e[1]:r$(t)}if(typeof t==`function`)return i=!0,{exec:t};if(typeof t==`object`)return i=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return r$(new RegExp(e))}}throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=r.map(e=>e.tokenTypeIdx),s=r.map(e=>{let t=e.GROUP;if(t!==v$.SKIPPED){if(typeof t==`string`)return t;if(t===void 0)return!1;throw Error(`non exhaustive match`)}}),l=r.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>r.indexOf(e)):[r.indexOf(t)]}),u=r.map(e=>e.PUSH_MODE),d=r.map(e=>Object.hasOwn(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=s$(t.lineTerminatorCharacters);f=r.map(e=>!1),t.positionTracking!==`onlyOffset`&&(f=r.map(t=>Object.hasOwn(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:a$(t,e)===!1&&UQ(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=r.map(Akt),m=a.map(i$),h=r.reduce((e,t)=>{let n=t.GROUP;return typeof n==`string`&&n!==v$.SKIPPED&&(e[n]=[]),e},{}),g=a.map((e,t)=>{let n=s[t]===void 0&&l[t]===void 0?Skt(r[t].PATTERN):void 0;return{pattern:a[t],asciiClass:n,longerAlt:l[t],canLineTerminator:f[t],matchType:n===void 0?m[t]===!1?p[t]?1:2:0:3,short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}})});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=r.reduce((e,n,r)=>{if(typeof n.PATTERN==`string`)c$(e,l$(n.PATTERN.charCodeAt(0)),g[r]);else if(Array.isArray(n.START_CHARS_HINT)){let t;n.START_CHARS_HINT.forEach(n=>{let i=l$(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,c$(e,i,g[r]))})}else if(n.PATTERN instanceof RegExp){if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&HZ(`${GQ}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n The regexp unicode flag is not currently supported by the regexp-to-ast library. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),XOt(`${GQ}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function VQ(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)HQ(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)HQ(e,t,n);else{for(let e=r.from;e<=r.to&&e<256;e++)HQ(e,t,n);if(r.to>=256){let e=r.from>=256?r.from:256,n=r.to,i=l$(e),a=l$(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:VQ(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&Skt(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return Object.values(t)}function HQ(e,t,n){let r=l$(e);t[r]=r,n===!0&&UQ(e,t)}function UQ(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=l$(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=l$(e.charCodeAt(0));t[n]=n}}}function WQ(e,t){return e.value.find(e=>{if(typeof e==`number`)return t.includes(e);{let n=e;return t.find(e=>n.from<=e&&e<=n.to)!==void 0}})}function Skt(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Array.isArray(e.value)?e.value.every(Skt):Skt(e.value):!1}function Ckt(e,t){if(t instanceof RegExp){let n=FQ(t),r=new Tkt(e);return r.visit(n),r.found}for(let n of t){let t=n.charCodeAt(0);if(e.includes(t))return!0}return!1}var wkt,GQ,Tkt,Ekt=o((()=>{PQ(),YZ(),zQ(),Hkt(),wkt=`Complement Sets are not supported for first char optimization`,GQ=`Unable to use "first char" lexer optimizations: +`,Tkt=class extends MQ{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){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?WQ(e,this.targetCharCodes)===void 0&&(this.found=!0):WQ(e,this.targetCharCodes)!==void 0&&(this.found=!0)}}}));function Dkt(e,t){t=Object.assign({safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` +`],tracer:(e,t)=>t()},t);let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{Ikt()});let r;n(`Reject Lexer.NA`,()=>{r=e.filter(e=>e[u$]!==g$.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=r.map(e=>{let t=e[u$];if(t instanceof RegExp){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&![`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`].includes(e[1])?e[1]:i$(t)}if(typeof t==`function`)return i=!0,{exec:t};if(typeof t==`object`)return i=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return i$(new RegExp(e))}}throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=r.map(e=>e.tokenTypeIdx),s=r.map(e=>{let t=e.GROUP;if(t!==g$.SKIPPED){if(typeof t==`string`)return t;if(t===void 0)return!1;throw Error(`non exhaustive match`)}}),l=r.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>r.indexOf(e)):[r.indexOf(t)]}),u=r.map(e=>e.PUSH_MODE),d=r.map(e=>Object.hasOwn(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=Pkt(t.lineTerminatorCharacters);f=r.map(e=>!1),t.positionTracking!==`onlyOffset`&&(f=r.map(t=>Object.hasOwn(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:Mkt(t,e)===!1&&Ckt(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=r.map(s$),m=a.map(c$),h=r.reduce((e,t)=>{let n=t.GROUP;return typeof n==`string`&&n!==g$.SKIPPED&&(e[n]=[]),e},{}),g=a.map((e,t)=>{let n=s[t]===void 0&&l[t]===void 0?KQ(r[t].PATTERN):void 0;return{pattern:a[t],asciiClass:n,longerAlt:l[t],canLineTerminator:f[t],matchType:n===void 0?m[t]===!1?p[t]?1:2:0:3,short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}})});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=r.reduce((e,n,r)=>{if(typeof n.PATTERN==`string`)Fkt(e,l$(n.PATTERN.charCodeAt(0)),g[r]);else if(Array.isArray(n.START_CHARS_HINT)){let t;n.START_CHARS_HINT.forEach(n=>{let i=l$(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,Fkt(e,i,g[r]))})}else if(n.PATTERN instanceof RegExp){if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&XOt(`${GQ}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n 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{let i=ykt(n.PATTERN,t.ensureOptimizations);i.length===0&&(_=!1),i.forEach(t=>{c$(e,t,g[r])})}}else t.ensureOptimizations&&HZ(`${GQ}\tTokenType: <${n.name}> is using a custom token pattern without providing parameter.\n This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}function Skt(e){if(!(e instanceof RegExp)||e.flags!==``)return;let t;try{t=NQ(e)}catch{return}if(t.value.value.length!==1||t.value.value[0].value.length!==1)return;let n=t.value.value[0].value[0],r;for(;n.type===`Group`;){if(n.capturing||n.quantifier!==void 0&&r!==void 0||n.value.value.length!==1||n.value.value[0].value.length!==1)return;r=n.quantifier??r,n=n.value.value[0].value[0]}if(n.type!==`Set`||n.complement||n.quantifier!==void 0&&r!==void 0||(r=n.quantifier??r,r?.atLeast!==1||r.atMost!==1/0||!r.greedy))return;let i=new Uint8Array(128);for(let e of n.value){let t=typeof e==`number`?e:e.from,n=typeof e==`number`?e:e.to;if(t<0||n>=i.length)return;i.fill(1,t,n+1)}return i}function Ckt(e,t){let n=[],r=Tkt(e);n=n.concat(r.errors);let i=Ekt(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(wkt(a)),n=n.concat(ZQ(a)),n=n.concat(QQ(a,t)),n=n.concat($Q(a)),n}function wkt(e){let t=[],n=e.filter(e=>e[u$]instanceof RegExp);return t=t.concat(qQ(n)),t=t.concat(Dkt(n)),t=t.concat(YQ(n)),t=t.concat(XQ(n)),t=t.concat(JQ(n)),t}function Tkt(e){let t=e.filter(e=>!Object.hasOwn(e,u$));return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:g$.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function Ekt(e){let t=e.filter(e=>{let t=e[u$];return!(t instanceof RegExp)&&typeof t!=`function`&&!Object.hasOwn(t,`exec`)&&typeof t!=`string`});return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:g$.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function qQ(e){class t extends AQ{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=NQ(n),r=new t;return r.visit(e),r.found}catch{return Nkt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=BQ(n.PATTERN,t.ensureOptimizations);i.length===0&&(_=!1),i.forEach(t=>{Fkt(e,t,g[r])})}}else t.ensureOptimizations&&XOt(`${GQ}\tTokenType: <${n.name}> is using a custom token pattern without providing parameter.\n This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}function KQ(e){if(!(e instanceof RegExp)||e.flags!==``)return;let t;try{t=FQ(e)}catch{return}if(t.value.value.length!==1||t.value.value[0].value.length!==1)return;let n=t.value.value[0].value[0],r;for(;n.type===`Group`;){if(n.capturing||n.quantifier!==void 0&&r!==void 0||n.value.value.length!==1||n.value.value[0].value.length!==1)return;r=n.quantifier??r,n=n.value.value[0].value[0]}if(n.type!==`Set`||n.complement||n.quantifier!==void 0&&r!==void 0||(r=n.quantifier??r,r?.atLeast!==1||r.atMost!==1/0||!r.greedy))return;let i=new Uint8Array(128);for(let e of n.value){let t=typeof e==`number`?e:e.from,n=typeof e==`number`?e:e.to;if(t<0||n>=i.length)return;i.fill(1,t,n+1)}return i}function qQ(e,t){let n=[],r=JQ(e);n=n.concat(r.errors);let i=YQ(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(Okt(a)),n=n.concat(t$(a)),n=n.concat(n$(a,t)),n=n.concat(kkt(a)),n}function Okt(e){let t=[],n=e.filter(e=>e[u$]instanceof RegExp);return t=t.concat(XQ(n)),t=t.concat(QQ(n)),t=t.concat($Q(n)),t=t.concat(e$(n)),t=t.concat(ZQ(n)),t}function JQ(e){let t=e.filter(e=>!Object.hasOwn(e,u$));return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:m$.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function YQ(e){let t=e.filter(e=>{let t=e[u$];return!(t instanceof RegExp)&&typeof t!=`function`&&!Object.hasOwn(t,`exec`)&&typeof t!=`string`});return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:m$.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function XQ(e){class t extends MQ{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=FQ(n),r=new t;return r.visit(e),r.found}catch{return Rkt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:g$.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function JQ(e){return e.filter(e=>e.PATTERN.test(``)).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:g$.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function Dkt(e){class t extends AQ{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=NQ(n),r=new t;return r.visit(e),r.found}catch{return Pkt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:m$.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ZQ(e){return e.filter(e=>e.PATTERN.test(``)).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:m$.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function QQ(e){class t extends MQ{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=FQ(n),r=new t;return r.visit(e),r.found}catch{return zkt.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:g$.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function YQ(e){return e.filter(e=>{let t=e[u$];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:g$.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function XQ(e){let t=[],n=e.map(n=>e.reduce((e,r)=>n.PATTERN.source===r.PATTERN.source&&!t.includes(r)&&r.PATTERN!==v$.NA?(t.push(r),e.push(r),e):e,[]));return n=n.filter(Boolean),n.filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name);return{message:`The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:g$.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function ZQ(e){return e.filter(e=>{if(!Object.hasOwn(e,`GROUP`))return!1;let t=e.GROUP;return t!==v$.SKIPPED&&t!==v$.NA&&typeof t!=`string`}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:g$.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function QQ(e,t){return e.filter(e=>e.PUSH_MODE!==void 0&&!t.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:g$.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function $Q(e){let t=[],n=e.reduce((e,t,n)=>{let r=t.PATTERN;return r===v$.NA||(typeof r==`string`?e.push({str:r,idx:n,tokenType:t}):r instanceof RegExp&&t$(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return e.forEach((e,r)=>{n.forEach(({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:g$.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function e$(e,t){if(t instanceof RegExp){if(n$(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(typeof t==`function`)return t(e,0,[],{});if(Object.hasOwn(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}function t$(e){return[`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`].find(t=>e.source.indexOf(t)!==-1)===void 0}function n$(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition -`,type:g$.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,`modes`)||r.push({message:`A MultiMode Lexer cannot be initialized without a property in its definition -`,type:g$.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,`modes`)&&Object.hasOwn(e,`defaultMode`)&&!Object.hasOwn(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${Mkt}: <${e.defaultMode}>which does not exist\n`,type:g$.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,`modes`)&&Object.keys(e.modes).forEach(t=>{let n=e.modes[t];n.forEach((e,i)=>{e===void 0?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>\n`,type:g$.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,`LONGER_ALT`)&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(i=>{i!==void 0&&!n.includes(i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${e.name}> outside of mode <${t}>\n`,type:g$.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function kkt(e,t,n){let r=[],i=!1,a=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[u$]!==v$.NA),o=s$(n);return t&&a.forEach(e=>{let t=a$(e,o);if(t!==!1){let n={message:o$(e,t),type:t.issue,tokenType:e};r.push(n)}else Object.hasOwn(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):UQ(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:m$.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function $Q(e){return e.filter(e=>{let t=e[u$];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:m$.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function e$(e){let t=[],n=e.map(n=>e.reduce((e,r)=>n.PATTERN.source===r.PATTERN.source&&!t.includes(r)&&r.PATTERN!==g$.NA?(t.push(r),e.push(r),e):e,[]));return n=n.filter(Boolean),n.filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name);return{message:`The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:m$.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function t$(e){return e.filter(e=>{if(!Object.hasOwn(e,`GROUP`))return!1;let t=e.GROUP;return t!==g$.SKIPPED&&t!==g$.NA&&typeof t!=`string`}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:m$.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function n$(e,t){return e.filter(e=>e.PUSH_MODE!==void 0&&!t.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:m$.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function kkt(e){let t=[],n=e.reduce((e,t,n)=>{let r=t.PATTERN;return r===g$.NA||(typeof r==`string`?e.push({str:r,idx:n,tokenType:t}):r instanceof RegExp&&jkt(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return e.forEach((e,r)=>{n.forEach(({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:m$.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function Akt(e,t){if(t instanceof RegExp){if(r$(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(typeof t==`function`)return t(e,0,[],{});if(Object.hasOwn(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}function jkt(e){return[`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`].find(t=>e.source.indexOf(t)!==-1)===void 0}function r$(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:m$.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,`modes`)||r.push({message:`A MultiMode Lexer cannot be initialized without a property in its definition +`,type:m$.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,`modes`)&&Object.hasOwn(e,`defaultMode`)&&!Object.hasOwn(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${Lkt}: <${e.defaultMode}>which does not exist\n`,type:m$.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,`modes`)&&Object.keys(e.modes).forEach(t=>{let n=e.modes[t];n.forEach((e,i)=>{e===void 0?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>\n`,type:m$.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,`LONGER_ALT`)&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(i=>{i!==void 0&&!n.includes(i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${e.name}> outside of mode <${t}>\n`,type:m$.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function o$(e,t,n){let r=[],i=!1,a=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[u$]!==g$.NA),o=Pkt(n);return t&&a.forEach(e=>{let t=Mkt(e,o);if(t!==!1){let n={message:Nkt(e,t),type:t.issue,tokenType:e};r.push(n)}else Object.hasOwn(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):Ckt(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. 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:g$.NO_LINE_BREAKS_FLAGS}),r}function Akt(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if(typeof t==`function`||Object.hasOwn(t,`exec`))return!0;if(typeof t==`string`)return!1;throw Error(`non exhaustive match`)}function i$(e){return typeof e==`string`&&e.length===1&&e.charCodeAt(0)}function a$(e,t){if(Object.hasOwn(e,`LINE_BREAKS`))return!1;if(e.PATTERN instanceof RegExp){try{UQ(t,e.PATTERN)}catch(e){return{issue:g$.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(typeof e.PATTERN==`string`)return!1;if(Akt(e))return{issue:g$.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function o$(e,t){if(t.issue===g$.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. -\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===g$.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. -\tThe problem is in the <${e.name}> Token Type\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function s$(e){return e.map(e=>typeof e==`string`?e.charCodeAt(0):e)}function c$(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function l$(e){return e<256?e:d$[e]}function jkt(){if(d$.length===0){d$=Array(65536);for(let e=0;e<65536;e++)d$[e]=e>255?255+~~(e/255):e}}var u$,Mkt,Nkt,Pkt,Fkt,d$,Ikt=o((()=>{MQ(),Zkt(),UZ(),bkt(),LQ(),u$=`PATTERN`,Mkt=`defaultMode`,Nkt=/[^\\][$]/,Pkt=/[^\\[][\^]|^\^/,Fkt={test:function(e){let t=e.length;for(let n=this.lastIndex;n{e.isParent=e.categoryMatches.length>0})}function Lkt(e){let t=[...e],n=e,r=!0;for(;r;){n=n.map(e=>e.CATEGORIES).flat().filter(Boolean);let e=n.filter(e=>!t.includes(e));t=t.concat(e),e.length===0?r=!1:n=e}return t}function Rkt(e){e.forEach(e=>{Hkt(e)||(Jkt[qkt]=e,e.tokenTypeIdx=qkt++),Ukt(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Ukt(e)||(e.CATEGORIES=[]),Wkt(e)||(e.categoryMatches=[]),Gkt(e)||(e.categoryMatchesMap={})})}function zkt(e){e.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(Jkt[t].tokenTypeIdx)})})}function Bkt(e){e.forEach(e=>{Vkt([],e)})}function Vkt(e,t){e.forEach(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(n=>{let r=e.concat(t);r.includes(n)||Vkt(r,n)})}function Hkt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function Ukt(e){return Object.hasOwn(e??{},`CATEGORIES`)}function Wkt(e){return Object.hasOwn(e??{},`categoryMatches`)}function Gkt(e){return Object.hasOwn(e??{},`categoryMatchesMap`)}function Kkt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}var qkt,Jkt,h$=o((()=>{qkt=1,Jkt={}})),Ykt,Xkt=o((()=>{Ykt={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}}})),g$,_$,v$,Zkt=o((()=>{Ikt(),UZ(),h$(),Xkt(),LQ(),(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(g$||={}),_$={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` -`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ykt,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(_$),v$=class{constructor(e,t=_$){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=ekt(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`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=Object.assign({},_$,t);let 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 n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===_$.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Fkt;else if(this.config.lineTerminatorCharacters===_$.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(t.safeMode&&t.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),Array.isArray(e)?n={modes:{defaultMode:[...e]},defaultMode:Mkt}:(r=!1,n=Object.assign({},e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Okt(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(kkt(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Object.entries(n.modes).forEach(([e,t])=>{n.modes[e]=t.filter(e=>e!==void 0)});let i=Object.keys(n.modes);if(Object.entries(n.modes).forEach(([e,n])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Ckt(n,i))}),this.lexerDefinitionErrors.length===0){m$(n);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=xkt(n,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=r.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- + for details.`,type:m$.NO_LINE_BREAKS_FLAGS}),r}function s$(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if(typeof t==`function`||Object.hasOwn(t,`exec`))return!0;if(typeof t==`string`)return!1;throw Error(`non exhaustive match`)}function c$(e){return typeof e==`string`&&e.length===1&&e.charCodeAt(0)}function Mkt(e,t){if(Object.hasOwn(e,`LINE_BREAKS`))return!1;if(e.PATTERN instanceof RegExp){try{Ckt(t,e.PATTERN)}catch(e){return{issue:m$.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(typeof e.PATTERN==`string`)return!1;if(s$(e))return{issue:m$.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function Nkt(e,t){if(t.issue===m$.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. +\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===m$.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. +\tThe problem is in the <${e.name}> Token Type\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function Pkt(e){return e.map(e=>typeof e==`string`?e.charCodeAt(0):e)}function Fkt(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function l$(e){return e<256?e:Vkt[e]}function Ikt(){if(Vkt.length===0){Vkt=Array(65536);for(let e=0;e<65536;e++)Vkt[e]=e>255?255+~~(e/255):e}}var u$,Lkt,Rkt,zkt,Bkt,Vkt,Hkt=o((()=>{PQ(),iAt(),YZ(),Ekt(),zQ(),u$=`PATTERN`,Lkt=`defaultMode`,Rkt=/[^\\][$]/,zkt=/[^\\[][\^]|^\^/,Bkt={test:function(e){let t=e.length;for(let n=this.lastIndex;n{e.isParent=e.categoryMatches.length>0})}function Wkt(e){let t=[...e],n=e,r=!0;for(;r;){n=n.map(e=>e.CATEGORIES).flat().filter(Boolean);let e=n.filter(e=>!t.includes(e));t=t.concat(e),e.length===0?r=!1:n=e}return t}function Gkt(e){e.forEach(e=>{Ykt(e)||(tAt[eAt]=e,e.tokenTypeIdx=eAt++),Xkt(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Xkt(e)||(e.CATEGORIES=[]),Zkt(e)||(e.categoryMatches=[]),Qkt(e)||(e.categoryMatchesMap={})})}function Kkt(e){e.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(tAt[t].tokenTypeIdx)})})}function qkt(e){e.forEach(e=>{Jkt([],e)})}function Jkt(e,t){e.forEach(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(n=>{let r=e.concat(t);r.includes(n)||Jkt(r,n)})}function Ykt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function Xkt(e){return Object.hasOwn(e??{},`CATEGORIES`)}function Zkt(e){return Object.hasOwn(e??{},`categoryMatches`)}function Qkt(e){return Object.hasOwn(e??{},`categoryMatchesMap`)}function $kt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}var eAt,tAt,p$=o((()=>{eAt=1,tAt={}})),nAt,rAt=o((()=>{nAt={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}}})),m$,h$,g$,iAt=o((()=>{Hkt(),YZ(),p$(),rAt(),zQ(),(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(m$||={}),h$={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:nAt,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(h$),g$=class{constructor(e,t=h$){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=$Ot(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`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=Object.assign({},h$,t);let 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 n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===h$.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Bkt;else if(this.config.lineTerminatorCharacters===h$.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(t.safeMode&&t.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),Array.isArray(e)?n={modes:{defaultMode:[...e]},defaultMode:Lkt}:(r=!1,n=Object.assign({},e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(a$(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(o$(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Object.entries(n.modes).forEach(([e,t])=>{n.modes[e]=t.filter(e=>e!==void 0)});let i=Object.keys(n.modes);if(Object.entries(n.modes).forEach(([e,n])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(qQ(n,i))}),this.lexerDefinitionErrors.length===0){f$(n);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=Dkt(n,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=r.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- `);throw Error(`Errors detected in definition of Lexer: -`+e)}this.lexerDefinitionWarning.forEach(e=>{QOt(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=e=>e),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/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`,()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,n])=>(n===!1&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized.\n 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`,()=>{PQ()}),this.TRACE_INIT(`toFastProperties`,()=>{nkt(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- +`+e)}this.lexerDefinitionWarning.forEach(e=>{ZOt(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=e=>e),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/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`,()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,n])=>(n===!1&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized.\n 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`,()=>{IQ()}),this.TRACE_INIT(`toFastProperties`,()=>{tkt(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- `);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v=e,y=v.length,b=0,x=0,S=this.hasCustom?0:Math.floor(e.length/10),C=Array(S),w=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,D={};for(let e=0;e{if(ee.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{ee.pop();let e=ee.at(-1);j=this.patternIdxToConfig[e],M=this.charCodeToPatternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}};function ie(e){ee.push(e),M=this.charCodeToPatternIdxToConfig[e],j=this.patternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}ie.call(this,t);let ae,oe=this.config.recoveryEnabled;for(;bs.length){s=a,d=a.length,l=u,ae=t;break}}}break}}if(d!==-1){if(f=ae.group,f!==void 0&&(s=s===null?e.substring(b,b+d):s,p=ae.tokenTypeIdx,m=this.createTokenInstance(s,b,p,ae.tokenType,T,E,d),this.handlePayload(m,l),f===!1?x=this.addToken(C,x,m):D[f].push(m)),O===!0&&ae.canLineTerminator===!0){let t=0,n,r;k.lastIndex=0;do s=s===null?e.substring(b,b+d):s,n=k.test(s),n===!0&&(r=k.lastIndex-1,t++);while(n===!0);t===0?E=this.computeNewColumn(E,d):(T+=t,E=d-r,this.updateTokenEndLineColumnLocation(m,f,r,t,T,E,d))}else E=this.computeNewColumn(E,d);b+=d,this.handleModes(ae,re,ie,m)}else{let t=b,n=T,i=E,a=oe===!1;for(;a===!1&&b{Zkt(),h$(),nAt=`parent`,rAt=`categories`,iAt=`label`,aAt=`group`,oAt=`push_mode`,sAt=`pop_mode`,cAt=`longer_alt`,lAt=`line_breaks`,uAt=`start_chars_hint`,x$=b$({name:`EOF`,pattern:v$.NA}),m$([x$])})),dAt,fAt,C$,w$=o((()=>{S$(),lQ(),dAt={buildMismatchTokenMessage({expected:e,actual:t,previous:n,ruleName:r}){return`Expecting ${Qkt(e)?`--> ${y$(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` -but found: '`+t[0].image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences:\n${e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>y$(e)).join(`, `)}]`).map((e,t)=>` ${t+1}. ${e}`).join(` +`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v=e,y=v.length,b=0,x=0,S=this.hasCustom?0:Math.floor(e.length/10),C=Array(S),w=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,D={};for(let e=0;e{if(ee.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{ee.pop();let e=ee.at(-1);j=this.patternIdxToConfig[e],M=this.charCodeToPatternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}};function ie(e){ee.push(e),M=this.charCodeToPatternIdxToConfig[e],j=this.patternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ne=!!(M&&t)}ie.call(this,t);let ae,oe=this.config.recoveryEnabled;for(;bs.length){s=a,d=a.length,l=u,ae=t;break}}}break}}if(d!==-1){if(f=ae.group,f!==void 0&&(s=s===null?e.substring(b,b+d):s,p=ae.tokenTypeIdx,m=this.createTokenInstance(s,b,p,ae.tokenType,T,E,d),this.handlePayload(m,l),f===!1?x=this.addToken(C,x,m):D[f].push(m)),O===!0&&ae.canLineTerminator===!0){let t=0,n,r;k.lastIndex=0;do s=s===null?e.substring(b,b+d):s,n=k.test(s),n===!0&&(r=k.lastIndex-1,t++);while(n===!0);t===0?E=this.computeNewColumn(E,d):(T+=t,E=d-r,this.updateTokenEndLineColumnLocation(m,f,r,t,T,E,d))}else E=this.computeNewColumn(E,d);b+=d,this.handleModes(ae,re,ie,m)}else{let t=b,n=T,i=E,a=oe===!1;for(;a===!1&&b{iAt(),p$(),lAt=`parent`,uAt=`categories`,dAt=`label`,fAt=`group`,pAt=`push_mode`,mAt=`pop_mode`,hAt=`longer_alt`,gAt=`line_breaks`,_At=`start_chars_hint`,y$=v$({name:`EOF`,pattern:g$.NA}),f$([y$])})),vAt,yAt,x$,S$=o((()=>{b$(),mQ(),vAt={buildMismatchTokenMessage({expected:e,actual:t,previous:n,ruleName:r}){return`Expecting ${aAt(e)?`--> ${_$(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` +but found: '`+t[0].image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences:\n${e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>_$(e)).join(`, `)}]`).map((e,t)=>` ${t+1}. ${e}`).join(` `)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=` -but found: '`+t[0].image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n <${e.map(e=>`[${e.map(e=>y$(e)).join(`,`)}]`).join(` ,`)}>`+i}},Object.freeze(dAt),fAt={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- -inside top level rule: ->`+e.name+`<-`}},C$={buildDuplicateFoundError(e,t){function n(e){return e instanceof tQ?e.terminalType.name:e instanceof KZ?e.nonTerminalName:``}let r=e.name,i=t[0],a=i.idx,o=cQ(i),s=n(i),l=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} +but found: '`+t[0].image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n <${e.map(e=>`[${e.map(e=>_$(e)).join(`,`)}]`).join(` ,`)}>`+i}},Object.freeze(vAt),yAt={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+`<-`}},x$={buildDuplicateFoundError(e,t){function n(e){return e instanceof cQ?e.terminalType.name:e instanceof $Z?e.nonTerminalName:``}let r=e.name,i=t[0],a=i.idx,o=pQ(i),s=n(i),l=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} appears more than once (${t.length} times) in the top level rule: ->${r}<-. For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES `;return l=l.replace(/[ \t]+/g,` `),l=l.replace(/\s\s+/g,` -`),l},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>y$(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix\nin inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule,\n`;if(n)r+=`These alternatives are all empty (match no tokens), making them indistinguishable. +`),l},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>_$(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix\nin inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule,\n`;if(n)r+=`These alternatives are all empty (match no tokens), making them indistinguishable. Only the last alternative may be empty. -`;else{let t=e.prefixPath.map(e=>y$(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives.\n`}return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,r},buildEmptyRepetitionError(e){let t=cQ(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:\n inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --> ${e.leftRecursionPath.map(e=>e.name).concat([t]).join(` --> `)}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof qZ?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}}}));function pAt(e,t){let n=new mAt(e,t);return n.resolveRefs(),n.errors}var mAt,hAt=o((()=>{t1(),lQ(),mAt=class extends rQ{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:$$.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}}));function gAt(e,t,n=[]){n=[...n];let r=[],i=0;function a(t){return t.concat(e.slice(i+1))}function o(e){let i=gAt(a(e),t,n);return r.concat(i)}for(;n.length{e.definition.length!==0&&(r=o(e.definition))}),r;else if(t instanceof tQ)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:e.slice(i)}),r}function _At(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,l=t.length,u=l-r-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});f.length!==0;){let e=f.pop();if(e===o){s&&f.at(-1).idx<=u&&f.pop();continue}let r=e.def,p=e.idx,m=e.ruleStack,h=e.occurrenceStack;if(r.length===0)continue;let g=r[0];if(g===i){let e={idx:p,def:r.slice(1),ruleStack:m.slice(0,-1),occurrenceStack:h.slice(0,-1)};f.push(e)}else if(g instanceof tQ){if(p=0;e--){let t={idx:p,def:g.definition[e].definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h};f.push(t),f.push(o)}else if(g instanceof JZ)f.push({idx:p,def:g.definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h});else if(g instanceof qZ)f.push(vAt(g,p,m,h));else throw Error(`non exhaustive match`)}return d}function vAt(e,t,n,r){let i=[...n];i.push(e.name);let a=[...r];return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}var yAt,bAt,T$,xAt,SAt,CAt,wAt,TAt=o((()=>{ukt(),dQ(),lQ(),yAt=class extends uQ{constructor(e,t){super(),this.topProd=e,this.path=t,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=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},bAt=class extends yAt{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=t.concat(n),r=new JZ({definition:e});this.possibleTokTypes=fQ(r),this.found=!0}}},T$=class extends uQ{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},xAt=class extends T${walkMany(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},SAt=class extends T${walkManySep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},CAt=class extends T${walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},wAt=class extends T${walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof tQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}}}));function EAt(e){if(e instanceof YZ||e===`Option`)return E$.OPTION;if(e instanceof QZ||e===`Repetition`)return E$.REPETITION;if(e instanceof XZ||e===`RepetitionMandatory`)return E$.REPETITION_MANDATORY;if(e instanceof ZZ||e===`RepetitionMandatoryWithSeparator`)return E$.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof $Z||e===`RepetitionWithSeparator`)return E$.REPETITION_WITH_SEPARATOR;if(e instanceof eQ||e===`Alternation`)return E$.ALTERNATION;throw Error(`non exhaustive match`)}function DAt(e,t,n,r,i,a){let o=FAt(e,t,n);return a(o,r,zAt(o)?p$:f$,i)}function OAt(e,t,n,r,i,a){let o=IAt(e,t,i,n),s=zAt(o)?p$:f$;return a(o[0],s,r)}function kAt(e,t,n,r){let i=e.length,a=e.every(e=>e.every(e=>e.length===1));if(t)return function(t){let r=t.map(e=>e.GATE);for(let t=0;te.flat()).reduce((e,t,n)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=n),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA_FAST(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=e.flat();if(t.length===1&&t[0].categoryMatches.length===0){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,n)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]===!0}}}return function(){nextPath:for(let n=0;ngAt([e],1)),r=jAt(n.length),i=n.map(e=>{let t={};return e.forEach(e=>{MAt(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=jAt(n.length);for(let o=0;o{MAt(e.partialPath).forEach(e=>{i[o][e]=!0})})}}}}return r}function FAt(e,t,n,r){let i=new VAt(e,E$.ALTERNATION,r);return t.accept(i),PAt(i.result,n)}function IAt(e,t,n,r){let i=new VAt(e,n);t.accept(i);let a=i.result,o=new BAt(t,e,n).startWalking();return PAt([new JZ({definition:a}),new JZ({definition:o})],r)}function LAt(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function zAt(e){return e.every(e=>e.every(e=>e.every(e=>e.categoryMatches.length===0)))}var E$,BAt,VAt,D$=o((()=>{TAt(),dQ(),h$(),lQ(),(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(E$||={}),BAt=class extends uQ{constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,E$.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,E$.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,E$.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,E$.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,E$.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},VAt=class extends rQ{constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,E$.OPTION)}visitRepetition(e){this.checkIsTarget(e,E$.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,E$.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,E$.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,E$.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,E$.ALTERNATION)}}}));function HAt(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:$$.CUSTOM_LOOKAHEAD_VALIDATION},e))}function UAt(e,t,n,r){let i=e.flatMap(e=>WAt(e,n)),a=rjt(e,t,n),o=e.flatMap(e=>$At(e,n)),s=e.flatMap(t=>qAt(t,e,r,n));return i.concat(a,o,s)}function WAt(e,t){let n=new ijt;e.accept(n);let r=n.allProductions,i=Object.groupBy(r,GAt),a=Object.fromEntries(Object.entries(i).filter(([e,t])=>t.length>1));return Object.values(a).map(n=>{let r=n[0],i=t.buildDuplicateFoundError(e,n),a=cQ(r),o={message:i,type:$$.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=KAt(r);return s&&(o.parameter=s),o})}function GAt(e){return`${cQ(e)}_#_${e.idx}_#_${KAt(e)}`}function KAt(e){return e instanceof tQ?e.terminalType.name:e instanceof KZ?e.nonTerminalName:``}function qAt(e,t,n,r){let i=[];if(t.reduce((t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:$$.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function JAt(e,t,n){let r=[],i;return t.includes(e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:$$.INVALID_RULE_OVERRIDE,ruleName:e})),r}function YAt(e,t,n,r=[]){let i=[],a=XAt(t.definition);if(a.length===0)return[];{let t=e.name;a.includes(e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:$$.LEFT_RECURSION,ruleName:t});let o=r.concat([e]),s=a.filter(e=>!o.includes(e)).flatMap(t=>{let i=[...r];return i.push(t),YAt(e,t,n,i)});return i.concat(s)}}function XAt(e){let t=[];if(e.length===0)return t;let n=e[0];if(n instanceof KZ)t.push(n.referencedRule);else if(n instanceof JZ||n instanceof YZ||n instanceof XZ||n instanceof ZZ||n instanceof $Z||n instanceof QZ)t=t.concat(XAt(n.definition));else if(n instanceof eQ)t=n.definition.map(e=>XAt(e.definition)).flat();else if(!(n instanceof tQ))throw Error(`non exhaustive match`);let r=oQ(n),i=e.length>1;if(r&&i){let n=e.slice(1);return t.concat(XAt(n))}return t}function ZAt(e,t){let n=new O$;return e.accept(n),n.alternations.flatMap(n=>n.definition.slice(0,-1).flatMap((r,i)=>_At([r],[],f$,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:$$.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function QAt(e,t,n){let r=new O$;e.accept(r);let i=r.alternations;return i=i.filter(e=>e.ignoreAmbiguities!==!0),i.flatMap(r=>{let i=r.idx,a=FAt(i,e,r.maxLookahead||t,r),o=tjt(a,r,e,n),s=njt(a,r,e,n);return o.concat(s)})}function $At(e,t){let n=new O$;return e.accept(n),n.alternations.flatMap(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:$$.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function ejt(e,t,n){let r=[];return e.forEach(e=>{let i=new ajt;e.accept(i),i.allProductions.forEach(i=>{let a=EAt(i),o=i.maxLookahead||t,s=i.idx;if(IAt(s,e,a,o)[0].flat().length===0){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:$$.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function tjt(e,t,n,r){let i=[];return e.reduce((n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||r.forEach(r=>{let o=[a];e.forEach((e,n)=>{a!==n&&LAt(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!LAt(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]).map(e=>{let i=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:$$.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function njt(e,t,n,r){let i=e.reduce((e,t,n)=>{let r=t.map(e=>({idx:n,path:e}));return e.concat(r)},[]);return i.flatMap(e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return i.filter(e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:$$.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})})}function rjt(e,t,n){let r=[],i=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(i.includes(t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:$$.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}var ijt,O$,ajt,k$=o((()=>{t1(),lQ(),D$(),TAt(),h$(),ijt=class extends rQ{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)}},O$=class extends rQ{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},ajt=class extends rQ{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)}}}));function ojt(e){let t=Object.assign({errMsgProvider:fAt},e),n={};return e.rules.forEach(e=>{n[e.name]=e}),pAt(n,t.errMsgProvider)}function sjt(e){let t=e.errMsgProvider??C$;return UAt(e.rules,e.tokenTypes,t,e.grammarName)}var cjt=o((()=>{hAt(),k$(),w$()}));function ljt(e){return mjt.includes(e.name)}var ujt,djt,fjt,pjt,mjt,A$,hjt,gjt,_jt,vjt,j$=o((()=>{ujt=`MismatchedTokenException`,djt=`NoViableAltException`,fjt=`EarlyExitException`,pjt=`NotAllInputParsedException`,mjt=[ujt,djt,fjt,pjt],Object.freeze(mjt),A$=class extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},hjt=class extends A${constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ujt}},gjt=class extends A${constructor(e,t,n){super(e,t),this.previousToken=n,this.name=djt}},_jt=class extends A${constructor(e,t){super(e,t),this.name=pjt}},vjt=class extends A${constructor(e,t,n){super(e,t),this.previousToken=n,this.name=fjt}}}));function yjt(e,t,n,r,i,a,o){var s,l;let u=r|i,d=(s=this.firstAfterRepMap)[l=this.currRuleShortName]??(s[l]=[]),f=d[u];if(f===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];f=new a(t,i).startWalking(),d[u]=f}let p=f.token,m=f.occurrence,h=f.isEndOfRule;this.RULE_STACK_IDX===0&&h&&p===void 0&&(p=x$,m=1),p!==void 0&&m!==void 0&&this.shouldInRepetitionRecoveryBeTried(p,m,o)&&this.tryInRepetitionRecovery(e,t,n,p)}var bjt,xjt,Sjt,Cjt,wjt=o((()=>{S$(),TAt(),j$(),fkt(),t1(),bjt={},xjt=`InRuleRecoveryException`,Sjt=class extends Error{constructor(e){super(e),this.name=xjt}},Cjt=class{initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,`recoveryEnabled`)?e.recoveryEnabled:Z$.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=yjt)}getTokenToInsert(e){let t=eAt(e,``,-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA_FAST(1),u=this.LA_FAST(1),d=()=>{let e=this.LA(0),t=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),n=new hjt(t,l,this.LA(0));n.resyncedTokens=o.slice(0,-1),this.SAVE_ERROR(n)};for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0],n=this.getGAstProductions()[t];return new bAt(n,e).startWalking()}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new Sjt(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||t.length===0)return!1;let n=this.LA_FAST(1);return t.find(e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),n=2;for(;;){let r=e.find(e=>tAt(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return bjt;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,n=this.RULE_STACK_IDX+1,r=Array(n);for(let i=0;ithis.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===bjt)return[x$];let t=e.ruleName+e.idxInCallingRule+dkt+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,x$)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA_FAST(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let n=0;n{M$=1024,Tjt=1280,N$=1536})),Djt,Ojt=o((()=>{w$(),t1(),k$(),D$(),Djt=class{constructor(e){this.maxLookahead=e?.maxLookahead??Z$.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(t.length===0){let n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return e.flatMap(e=>YAt(e,e,C$))}validateEmptyOrAlternatives(e){return e.flatMap(e=>ZAt(e,C$))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>QAt(e,t,C$))}validateSomeNonEmptyLookaheadPath(e,t){return ejt(e,t,C$)}buildLookaheadForAlternation(e){return DAt(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,kAt)}buildLookaheadForOptional(e){return OAt(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,EAt(e.prodType),AAt)}}}));function kjt(e){P$.reset(),e.accept(P$);let t=P$.dslMethods;return P$.reset(),t}var Ajt,jjt,P$,Mjt=o((()=>{t1(),Ejt(),lQ(),Ojt(),Ajt=class{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:Z$.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,`maxLookahead`)?e.maxLookahead:Z$.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,`lookaheadStrategy`)?e.lookaheadStrategy:new Djt({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=kjt(e);t.forEach(t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${cQ(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],256|t.idx,n)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,768,`Repetition`,t.maxLookahead,cQ(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,512,`Option`,t.maxLookahead,cQ(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,M$,`RepetitionMandatory`,t.maxLookahead,cQ(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,N$,`RepetitionMandatoryWithSeparator`,t.maxLookahead,cQ(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Tjt,`RepetitionWithSeparator`,t.maxLookahead,cQ(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r});this.setLaFuncCache(this.fullRuleNameToShort[e.name],n|t,a)})}setLaFuncCache(e,t,n){let r=this.lookAheadFuncsCache[e];r===void 0&&(r=[],this.lookAheadFuncsCache[e]=r),r[t]=n}},jjt=class extends rQ{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)}},P$=new jjt}));function Njt(e,t){e.startOffset===-1?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset{}));function Rjt(e,t){Object.defineProperty(e,zjt,{enumerable:!1,configurable:!0,writable:!1,value:t})}var zjt,F$=o((()=>{zjt=`name`}));function Bjt(e,t){let n=Object.keys(e),r=n.length;for(let i=0;ie.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join(` +`;else{let t=e.prefixPath.map(e=>_$(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives.\n`}return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r},buildEmptyRepetitionError(e){let t=pQ(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:\n inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --> ${e.leftRecursionPath.map(e=>e.name).concat([t]).join(` --> `)}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof eQ?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}}}));function bAt(e,t){let n=new xAt(e,t);return n.resolveRefs(),n.errors}var xAt,SAt=o((()=>{$$(),mQ(),xAt=class extends uQ{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:Z$.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}}));function CAt(e,t,n=[]){n=[...n];let r=[],i=0;function a(t){return t.concat(e.slice(i+1))}function o(e){let i=CAt(a(e),t,n);return r.concat(i)}for(;n.length{e.definition.length!==0&&(r=o(e.definition))}),r;else if(t instanceof cQ)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:e.slice(i)}),r}function wAt(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,l=t.length,u=l-r-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});f.length!==0;){let e=f.pop();if(e===o){s&&f.at(-1).idx<=u&&f.pop();continue}let r=e.def,p=e.idx,m=e.ruleStack,h=e.occurrenceStack;if(r.length===0)continue;let g=r[0];if(g===i){let e={idx:p,def:r.slice(1),ruleStack:m.slice(0,-1),occurrenceStack:h.slice(0,-1)};f.push(e)}else if(g instanceof cQ){if(p=0;e--){let t={idx:p,def:g.definition[e].definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h};f.push(t),f.push(o)}else if(g instanceof tQ)f.push({idx:p,def:g.definition.concat(r.slice(1)),ruleStack:m,occurrenceStack:h});else if(g instanceof eQ)f.push(TAt(g,p,m,h));else throw Error(`non exhaustive match`)}return d}function TAt(e,t,n,r){let i=[...n];i.push(e.name);let a=[...r];return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}var EAt,DAt,C$,OAt,kAt,AAt,jAt,MAt=o((()=>{pkt(),lkt(),mQ(),EAt=class extends gQ{constructor(e,t){super(),this.topProd=e,this.path=t,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=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},DAt=class extends EAt{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=t.concat(n),r=new tQ({definition:e});this.possibleTokTypes=_Q(r),this.found=!0}}},C$=class extends gQ{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},OAt=class extends C${walkMany(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof cQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},kAt=class extends C${walkManySep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof cQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},AAt=class extends C${walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof cQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},jAt=class extends C${walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof cQ&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}}}));function NAt(e){if(e instanceof nQ||e===`Option`)return w$.OPTION;if(e instanceof aQ||e===`Repetition`)return w$.REPETITION;if(e instanceof rQ||e===`RepetitionMandatory`)return w$.REPETITION_MANDATORY;if(e instanceof iQ||e===`RepetitionMandatoryWithSeparator`)return w$.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof oQ||e===`RepetitionWithSeparator`)return w$.REPETITION_WITH_SEPARATOR;if(e instanceof sQ||e===`Alternation`)return w$.ALTERNATION;throw Error(`non exhaustive match`)}function PAt(e,t,n,r,i,a){let o=HAt(e,t,n);return a(o,r,KAt(o)?Ukt:d$,i)}function FAt(e,t,n,r,i,a){let o=UAt(e,t,i,n),s=KAt(o)?Ukt:d$;return a(o[0],s,r)}function IAt(e,t,n,r){let i=e.length,a=e.every(e=>e.every(e=>e.length===1));if(t)return function(t){let r=t.map(e=>e.GATE);for(let t=0;te.flat()).reduce((e,t,n)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=n),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA_FAST(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=e.flat();if(t.length===1&&t[0].categoryMatches.length===0){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,n)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){let t=this.LA_FAST(1);return e[t.tokenTypeIdx]===!0}}}return function(){nextPath:for(let n=0;nCAt([e],1)),r=RAt(n.length),i=n.map(e=>{let t={};return e.forEach(e=>{zAt(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=RAt(n.length);for(let o=0;o{zAt(e.partialPath).forEach(e=>{i[o][e]=!0})})}}}}return r}function HAt(e,t,n,r){let i=new JAt(e,w$.ALTERNATION,r);return t.accept(i),VAt(i.result,n)}function UAt(e,t,n,r){let i=new JAt(e,n);t.accept(i);let a=i.result,o=new qAt(t,e,n).startWalking();return VAt([new tQ({definition:a}),new tQ({definition:o})],r)}function WAt(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function KAt(e){return e.every(e=>e.every(e=>e.every(e=>e.categoryMatches.length===0)))}var w$,qAt,JAt,T$=o((()=>{MAt(),lkt(),p$(),mQ(),(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(w$||={}),qAt=class extends gQ{constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,w$.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,w$.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,w$.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,w$.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,w$.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},JAt=class extends uQ{constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,w$.OPTION)}visitRepetition(e){this.checkIsTarget(e,w$.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,w$.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,w$.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,w$.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,w$.ALTERNATION)}}}));function YAt(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:Z$.CUSTOM_LOOKAHEAD_VALIDATION},e))}function XAt(e,t,n,r){let i=e.flatMap(e=>ZAt(e,n)),a=ljt(e,t,n),o=e.flatMap(e=>ajt(e,n)),s=e.flatMap(t=>ejt(t,e,r,n));return i.concat(a,o,s)}function ZAt(e,t){let n=new ujt;e.accept(n);let r=n.allProductions,i=Object.groupBy(r,QAt),a=Object.fromEntries(Object.entries(i).filter(([e,t])=>t.length>1));return Object.values(a).map(n=>{let r=n[0],i=t.buildDuplicateFoundError(e,n),a=pQ(r),o={message:i,type:Z$.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=$At(r);return s&&(o.parameter=s),o})}function QAt(e){return`${pQ(e)}_#_${e.idx}_#_${$At(e)}`}function $At(e){return e instanceof cQ?e.terminalType.name:e instanceof $Z?e.nonTerminalName:``}function ejt(e,t,n,r){let i=[];if(t.reduce((t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:Z$.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function tjt(e,t,n){let r=[],i;return t.includes(e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:Z$.INVALID_RULE_OVERRIDE,ruleName:e})),r}function njt(e,t,n,r=[]){let i=[],a=E$(t.definition);if(a.length===0)return[];{let t=e.name;a.includes(e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:Z$.LEFT_RECURSION,ruleName:t});let o=r.concat([e]),s=a.filter(e=>!o.includes(e)).flatMap(t=>{let i=[...r];return i.push(t),njt(e,t,n,i)});return i.concat(s)}}function E$(e){let t=[];if(e.length===0)return t;let n=e[0];if(n instanceof $Z)t.push(n.referencedRule);else if(n instanceof tQ||n instanceof nQ||n instanceof rQ||n instanceof iQ||n instanceof oQ||n instanceof aQ)t=t.concat(E$(n.definition));else if(n instanceof sQ)t=n.definition.map(e=>E$(e.definition)).flat();else if(!(n instanceof cQ))throw Error(`non exhaustive match`);let r=fQ(n),i=e.length>1;if(r&&i){let n=e.slice(1);return t.concat(E$(n))}return t}function rjt(e,t){let n=new djt;return e.accept(n),n.alternations.flatMap(n=>n.definition.slice(0,-1).flatMap((r,i)=>wAt([r],[],d$,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:Z$.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function ijt(e,t,n){let r=new djt;e.accept(r);let i=r.alternations;return i=i.filter(e=>e.ignoreAmbiguities!==!0),i.flatMap(r=>{let i=r.idx,a=HAt(i,e,r.maxLookahead||t,r),o=sjt(a,r,e,n),s=cjt(a,r,e,n);return o.concat(s)})}function ajt(e,t){let n=new djt;return e.accept(n),n.alternations.flatMap(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:Z$.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function ojt(e,t,n){let r=[];return e.forEach(e=>{let i=new fjt;e.accept(i),i.allProductions.forEach(i=>{let a=NAt(i),o=i.maxLookahead||t,s=i.idx;if(UAt(s,e,a,o)[0].flat().length===0){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:Z$.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function sjt(e,t,n,r){let i=[];return e.reduce((n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||r.forEach(r=>{let o=[a];e.forEach((e,n)=>{a!==n&&WAt(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!WAt(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]).map(e=>{let i=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:Z$.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function cjt(e,t,n,r){let i=e.reduce((e,t,n)=>{let r=t.map(e=>({idx:n,path:e}));return e.concat(r)},[]);return i.flatMap(e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return i.filter(e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:Z$.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})})}function ljt(e,t,n){let r=[],i=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(i.includes(t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:Z$.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}var ujt,djt,fjt,pjt=o((()=>{$$(),mQ(),T$(),MAt(),p$(),ujt=class extends uQ{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)}},djt=class extends uQ{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},fjt=class extends uQ{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)}}}));function mjt(e){let t=Object.assign({errMsgProvider:yAt},e),n={};return e.rules.forEach(e=>{n[e.name]=e}),bAt(n,t.errMsgProvider)}function hjt(e){let t=e.errMsgProvider??x$;return XAt(e.rules,e.tokenTypes,t,e.grammarName)}var gjt=o((()=>{SAt(),pjt(),S$()}));function _jt(e){return Sjt.includes(e.name)}var vjt,yjt,bjt,xjt,Sjt,D$,Cjt,wjt,Tjt,Ejt,O$=o((()=>{vjt=`MismatchedTokenException`,yjt=`NoViableAltException`,bjt=`EarlyExitException`,xjt=`NotAllInputParsedException`,Sjt=[vjt,yjt,bjt,xjt],Object.freeze(Sjt),D$=class extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Cjt=class extends D${constructor(e,t,n){super(e,t),this.previousToken=n,this.name=vjt}},wjt=class extends D${constructor(e,t,n){super(e,t),this.previousToken=n,this.name=yjt}},Tjt=class extends D${constructor(e,t){super(e,t),this.name=xjt}},Ejt=class extends D${constructor(e,t,n){super(e,t),this.previousToken=n,this.name=bjt}}}));function Djt(e,t,n,r,i,a,o){var s,l;let u=r|i,d=(s=this.firstAfterRepMap)[l=this.currRuleShortName]??(s[l]=[]),f=d[u];if(f===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];f=new a(t,i).startWalking(),d[u]=f}let p=f.token,m=f.occurrence,h=f.isEndOfRule;this.RULE_STACK_IDX===0&&h&&p===void 0&&(p=y$,m=1),p!==void 0&&m!==void 0&&this.shouldInRepetitionRecoveryBeTried(p,m,o)&&this.tryInRepetitionRecovery(e,t,n,p)}var k$,Ojt,kjt,Ajt,jjt=o((()=>{b$(),MAt(),O$(),vQ(),$$(),k$={},Ojt=`InRuleRecoveryException`,kjt=class extends Error{constructor(e){super(e),this.name=Ojt}},Ajt=class{initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,`recoveryEnabled`)?e.recoveryEnabled:Y$.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Djt)}getTokenToInsert(e){let t=sAt(e,``,-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA_FAST(1),u=this.LA_FAST(1),d=()=>{let e=this.LA(0),t=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),n=new Cjt(t,l,this.LA(0));n.resyncedTokens=o.slice(0,-1),this.SAVE_ERROR(n)};for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0],n=this.getGAstProductions()[t];return new DAt(n,e).startWalking()}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new kjt(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||t.length===0)return!1;let n=this.LA_FAST(1);return t.find(e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),n=2;for(;;){let r=e.find(e=>cAt(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return k$;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,n=this.RULE_STACK_IDX+1,r=Array(n);for(let i=0;ithis.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===k$)return[y$];let t=e.ruleName+e.idxInCallingRule+mkt+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,y$)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA_FAST(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let n=0;n{Mjt=1024,Njt=1280,A$=1536})),Fjt,Ijt=o((()=>{S$(),$$(),pjt(),T$(),Fjt=class{constructor(e){this.maxLookahead=e?.maxLookahead??Y$.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(t.length===0){let n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return e.flatMap(e=>njt(e,e,x$))}validateEmptyOrAlternatives(e){return e.flatMap(e=>rjt(e,x$))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>ijt(e,t,x$))}validateSomeNonEmptyLookaheadPath(e,t){return ojt(e,t,x$)}buildLookaheadForAlternation(e){return PAt(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,IAt)}buildLookaheadForOptional(e){return FAt(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,NAt(e.prodType),LAt)}}}));function Ljt(e){j$.reset(),e.accept(j$);let t=j$.dslMethods;return j$.reset(),t}var Rjt,zjt,j$,Bjt=o((()=>{$$(),Pjt(),mQ(),Ijt(),Rjt=class{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:Y$.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,`maxLookahead`)?e.maxLookahead:Y$.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,`lookaheadStrategy`)?e.lookaheadStrategy:new Fjt({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=Ljt(e);t.forEach(t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${pQ(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],256|t.idx,n)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,768,`Repetition`,t.maxLookahead,pQ(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,512,`Option`,t.maxLookahead,pQ(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Mjt,`RepetitionMandatory`,t.maxLookahead,pQ(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,A$,`RepetitionMandatoryWithSeparator`,t.maxLookahead,pQ(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Njt,`RepetitionWithSeparator`,t.maxLookahead,pQ(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r});this.setLaFuncCache(this.fullRuleNameToShort[e.name],n|t,a)})}setLaFuncCache(e,t,n){let r=this.lookAheadFuncsCache[e];r===void 0&&(r=[],this.lookAheadFuncsCache[e]=r),r[t]=n}},zjt=class extends uQ{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)}},j$=new zjt}));function Vjt(e,t){e.startOffset===-1?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset{}));function N$(e,t){Object.defineProperty(e,P$,{enumerable:!1,configurable:!0,writable:!1,value:t})}var P$,Gjt=o((()=>{P$=`name`}));function Kjt(e,t){let n=Object.keys(e),r=n.length;for(let i=0;ie.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join(` `).replace(/\n/g,` - `)}`)}}},n.prototype.constructor=n,n._RULE_NAMES=t,n}function I$(e,t,n){let r=function(){};Rjt(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return t.forEach(e=>{i[e]=Bjt}),r.prototype=i,r.prototype.constructor=r,r}function Hjt(e,t){return Ujt(e,t)}function Ujt(e,t){return t.filter(t=>typeof e[t]!=`function`).map(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:L$.MISSING_METHOD,methodName:t})).filter(Boolean)}var L$,R$=o((()=>{F$(),(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(L$||={})})),z$,Wjt=o((()=>{Ljt(),R$(),t1(),z$=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,`nodeLocationTracking`)?e.nodeLocationTracking:Z$.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Pjt,this.setNodeLocationFromNode=Pjt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Njt,this.setNodeLocationFromNode=Njt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=-1,n.startLine=-1,n.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=-1}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Fjt(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Ijt(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=Vjt(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=I$(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}}})),Gjt,Kjt=o((()=>{t1(),Gjt=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.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):X$}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?X$:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}}})),qjt,B$=o((()=>{j$(),t1(),w$(),k$(),lQ(),qjt=class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}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,t,n=Q$){if(this.definedRulesNames.includes(e)){let t={message:C$.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:$$.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=Q$){let r=JAt(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){let n=e.coreRule??e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return n.apply(this,t),!0}catch(e){if(ljt(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return okt(Object.values(this.gastProductionsCache))}}})),Jjt,V$=o((()=>{Ejt(),j$(),D$(),TAt(),t1(),wjt(),S$(),h$(),Jjt=class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=p$,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a property. + `)}`)}}},n.prototype.constructor=n,n._RULE_NAMES=t,n}function qjt(e,t,n){let r=function(){};N$(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return t.forEach(e=>{i[e]=Kjt}),r.prototype=i,r.prototype.constructor=r,r}function Jjt(e,t){return Yjt(e,t)}function Yjt(e,t){return t.filter(t=>typeof e[t]!=`function`).map(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:I$.MISSING_METHOD,methodName:t})).filter(Boolean)}var I$,Xjt=o((()=>{Gjt(),(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(I$||={})})),L$,Zjt=o((()=>{Wjt(),Xjt(),$$(),L$=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,`nodeLocationTracking`)?e.nodeLocationTracking:Y$.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Hjt,this.setNodeLocationFromNode=Hjt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vjt,this.setNodeLocationFromNode=Vjt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=-1,n.startLine=-1,n.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=-1}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];M$(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Ujt(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=F$(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=qjt(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}}})),R$,Qjt=o((()=>{$$(),R$=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.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):J$}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?J$:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}}})),z$,$jt=o((()=>{O$(),$$(),S$(),pjt(),mQ(),z$=class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}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,t,n=X$){if(this.definedRulesNames.includes(e)){let t={message:x$.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Z$.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=X$){let r=tjt(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){let n=e.coreRule??e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return n.apply(this,t),!0}catch(e){if(_jt(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return akt(Object.values(this.gastProductionsCache))}}})),eMt,tMt=o((()=>{Pjt(),O$(),T$(),MAt(),$$(),jjt(),b$(),p$(),eMt=class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=Ukt,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,`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(Array.isArray(e)){if(e.length===0)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(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,`modes`)&&Object.values(e.modes).flat().every(Kkt)){let t=Object.values(e.modes).flat(),n=[...new Set(t)];this.tokensMap=n.reduce((e,t)=>(e[t.name]=t,e),{})}else if(typeof e==`object`&&e)this.tokensMap=Object.assign({},e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=x$;let n=(Object.hasOwn(e,`modes`)?Object.values(e.modes).flat():Object.values(e)).every(e=>e.categoryMatches?.length==0);this.tokenMatcher=n?p$:f$,m$(Object.values(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=Object.hasOwn(n,`resyncEnabled`)?n.resyncEnabled:Q$.resyncEnabled,i=Object.hasOwn(n,`recoveryValueFunc`)?n.recoveryValueFunc:Q$.recoveryValueFunc,a=this.ruleShortNameIdx++;this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let o;return o=this.outputCst===!0?function(...n){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n);let r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}}:function(...n){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(function(...t){this.onBeforeParse(e);try{return o.apply(this,t)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:t,coreRule:o})}invokeRuleCatch(e,t,n){let r=this.RULE_STACK_IDX===0,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(ljt(e)){let t=e;if(i){let r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){let n=512|t;return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof e!=`function`){i=e.DEF;let t=e.GATE;if(t!==void 0){let e=r;r=()=>t.call(this)&&e.call(this)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=M$|e;return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=()=>e.call(this)&&t.call(this)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,E$.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,M$,e,CAt)}atLeastOneSepFirstInternal(e,t){let n=N$|e;this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,wAt],t,N$,e,wAt)}else throw this.raiseEarlyExitException(e,E$.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=768|e;return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=()=>e.call(this)&&t.call(this)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,768,e,xAt,a)}manySepFirstInternal(e,t){let n=Tjt|e;this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,SAt],t,Tjt,e,SAt)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,N$,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=256|t,r=Array.isArray(e)?e:e.DEF,i=this.currRuleLookaheadFuncs[n].call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.coreRule.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw ljt(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA_FAST(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new hjt(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===`InRuleRecoveryException`?n:e}}throw n}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=n,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),x$)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e{j$(),D$(),t1(),Yjt=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,`errorMessageProvider`)?e.errorMessageProvider:Z$.errorMessageProvider}SAVE_ERROR(e){if(ljt(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;throw Error(`Trying to save an Error which is not a RecognitionException`)}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){let r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],a=IAt(e,i,t,this.maxLookahead)[0],o=[];for(let e=1;e<=this.maxLookahead;e++)o.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new vjt(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let n=this.getCurrRuleFullName(),r=this.getGAstProductions()[n],i=FAt(e,r,this.maxLookahead),a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let o=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new gjt(s,this.LA(1),o))}}}));function U$(e,t,n,r=!1){Qjt(n);let i=this.recordingProdStack.at(-1),a=typeof t==`function`?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Object.hasOwn(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),W$}function Xjt(e,t){Qjt(t);let n=this.recordingProdStack.at(-1),r=Array.isArray(e)===!1,i=r===!1?e:e.DEF,a=new eQ({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return Object.hasOwn(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=i.some(e=>typeof e.GATE==`function`),n.definition.push(a),i.forEach(e=>{let t=new JZ({definition:[]});a.definition.push(t),Object.hasOwn(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),W$}function Zjt(e){return e===0?``:`${e}`}function Qjt(e){if(e<0||e>$jt){let t=Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than 256`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var W$,G$,$jt,K$,q$,eMt,J$,tMt=o((()=>{lQ(),Zkt(),h$(),S$(),t1(),W$={description:`This Object indicates the Parser is during Recording Phase`},Object.freeze(W$),G$=!0,$jt=255,K$=b$({name:`RECORDING_PHASE_TOKEN`,pattern:v$.NA}),m$([K$]),q$=eAt(K$,`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(q$),eMt={name:`This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},J$=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++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},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`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;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,t){return()=>!0}LA_RECORD(e){return X$}topLevelRuleRecord(e,t){try{let n=new qZ({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.message+=` + For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,`modes`)&&Object.values(e.modes).flat().every($kt)){let t=Object.values(e.modes).flat(),n=[...new Set(t)];this.tokensMap=n.reduce((e,t)=>(e[t.name]=t,e),{})}else if(typeof e==`object`&&e)this.tokensMap=Object.assign({},e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=y$;let n=(Object.hasOwn(e,`modes`)?Object.values(e.modes).flat():Object.values(e)).every(e=>e.categoryMatches?.length==0);this.tokenMatcher=n?Ukt:d$,f$(Object.values(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=Object.hasOwn(n,`resyncEnabled`)?n.resyncEnabled:X$.resyncEnabled,i=Object.hasOwn(n,`recoveryValueFunc`)?n.recoveryValueFunc:X$.recoveryValueFunc,a=this.ruleShortNameIdx++;this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let o;return o=this.outputCst===!0?function(...n){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n);let r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}}:function(...n){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(function(...t){this.onBeforeParse(e);try{return o.apply(this,t)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:t,coreRule:o})}invokeRuleCatch(e,t,n){let r=this.RULE_STACK_IDX===0,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(_jt(e)){let t=e;if(i){let r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){let n=512|t;return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof e!=`function`){i=e.DEF;let t=e.GATE;if(t!==void 0){let e=r;r=()=>t.call(this)&&e.call(this)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=Mjt|e;return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=()=>e.call(this)&&t.call(this)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,w$.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,Mjt,e,AAt)}atLeastOneSepFirstInternal(e,t){let n=A$|e;this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,jAt],t,A$,e,jAt)}else throw this.raiseEarlyExitException(e,w$.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=768|e;return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.currRuleLookaheadFuncs[n],i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=()=>e.call(this)&&t.call(this)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,768,e,OAt,a)}manySepFirstInternal(e,t){let n=Njt|e;this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.currRuleLookaheadFuncs[n].call(this)===!0){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,kAt],t,Njt,e,kAt)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,A$,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=256|t,r=Array.isArray(e)?e:e.DEF,i=this.currRuleLookaheadFuncs[n].call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.coreRule.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw _jt(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA_FAST(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Cjt(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===`InRuleRecoveryException`?n:e}}throw n}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=n,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),y$)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e{O$(),T$(),$$(),nMt=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,`errorMessageProvider`)?e.errorMessageProvider:Y$.errorMessageProvider}SAVE_ERROR(e){if(_jt(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;throw Error(`Trying to save an Error which is not a RecognitionException`)}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){let r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],a=UAt(e,i,t,this.maxLookahead)[0],o=[];for(let e=1;e<=this.maxLookahead;e++)o.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new Ejt(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let n=this.getCurrRuleFullName(),r=this.getGAstProductions()[n],i=HAt(e,r,this.maxLookahead),a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let o=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new wjt(s,this.LA(1),o))}}}));function B$(e,t,n,r=!1){H$(n);let i=this.recordingProdStack.at(-1),a=typeof t==`function`?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Object.hasOwn(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),U$}function iMt(e,t){H$(t);let n=this.recordingProdStack.at(-1),r=Array.isArray(e)===!1,i=r===!1?e:e.DEF,a=new sQ({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return Object.hasOwn(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=i.some(e=>typeof e.GATE==`function`),n.definition.push(a),i.forEach(e=>{let t=new tQ({definition:[]});a.definition.push(t),Object.hasOwn(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),U$}function V$(e){return e===0?``:`${e}`}function H$(e){if(e<0||e>aMt){let t=Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than 256`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var U$,W$,aMt,oMt,G$,sMt,K$,cMt=o((()=>{mQ(),iAt(),p$(),b$(),$$(),U$={description:`This Object indicates the Parser is during Recording Phase`},Object.freeze(U$),W$=!0,aMt=255,oMt=v$({name:`RECORDING_PHASE_TOKEN`,pattern:g$.NA}),f$([oMt]),G$=sAt(oMt,`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(G$),sMt={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},K$=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++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},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`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;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,t){return()=>!0}LA_RECORD(e){return J$}topLevelRuleRecord(e,t){try{let n=new eQ({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.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 e}throw e}}optionInternalRecord(e,t){return U$.call(this,YZ,e,t)}atLeastOneInternalRecord(e,t){U$.call(this,XZ,t,e)}atLeastOneSepFirstInternalRecord(e,t){U$.call(this,ZZ,t,e,G$)}manyInternalRecord(e,t){U$.call(this,QZ,t,e)}manySepFirstInternalRecord(e,t){U$.call(this,$Z,t,e,G$)}orInternalRecord(e,t){return Xjt.call(this,e,t)}subruleInternalRecord(e,t,n){if(Qjt(t),!e||!Object.hasOwn(e,`ruleName`)){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=e.ruleName,a=new KZ({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?eMt:W$}consumeInternalRecord(e,t,n){if(Qjt(t),!Hkt(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=new tQ({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),q$}}})),nMt,rMt=o((()=>{UZ(),t1(),nMt=class{initPerformanceTracer(e){if(Object.hasOwn(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Z$.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=ekt(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}}}));function iMt(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}var Y$=o((()=>{})),X$,Z$,Q$,$$,e1,aMt,t1=o((()=>{UZ(),gkt(),S$(),w$(),cjt(),wjt(),Mjt(),Wjt(),Kjt(),B$(),V$(),H$(),tMt(),rMt(),Y$(),k$(),X$=eAt(x$,``,-1,-1,-1,-1,-1,-1),Object.freeze(X$),Z$=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:dAt,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),Q$=Object.freeze({recoveryValueFunc:()=>void 0,resyncEnabled:!0}),(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})($$||={}),e1=class e{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 t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{nkt(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=ojt({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(r.length===0&&this.skipValidations===!1){let e=sjt({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:C$,grammarName:n}),t=HAt({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=pkt(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected:\n ${t.join(` + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return B$.call(this,nQ,e,t)}atLeastOneInternalRecord(e,t){B$.call(this,rQ,t,e)}atLeastOneSepFirstInternalRecord(e,t){B$.call(this,iQ,t,e,W$)}manyInternalRecord(e,t){B$.call(this,aQ,t,e)}manySepFirstInternalRecord(e,t){B$.call(this,oQ,t,e,W$)}orInternalRecord(e,t){return iMt.call(this,e,t)}subruleInternalRecord(e,t,n){if(H$(t),!e||!Object.hasOwn(e,`ruleName`)){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=e.ruleName,a=new $Z({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?sMt:U$}consumeInternalRecord(e,t,n){if(H$(t),!Ykt(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=new cQ({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),G$}}})),q$,lMt=o((()=>{YZ(),$$(),q$=class{initPerformanceTracer(e){if(Object.hasOwn(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Y$.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=$Ot(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}}}));function uMt(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}var dMt=o((()=>{})),J$,Y$,X$,Z$,Q$,fMt,$$=o((()=>{YZ(),_kt(),b$(),S$(),gjt(),jjt(),Bjt(),Zjt(),Qjt(),$jt(),tMt(),rMt(),cMt(),lMt(),dMt(),pjt(),J$=sAt(y$,``,-1,-1,-1,-1,-1,-1),Object.freeze(J$),Y$=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:vAt,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),X$=Object.freeze({recoveryValueFunc:()=>void 0,resyncEnabled:!0}),(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})(Z$||={}),Q$=class e{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 t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{tkt(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=mjt({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(r.length===0&&this.skipValidations===!1){let e=hjt({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:x$,grammarName:n}),t=YAt({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=yQ(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected:\n ${t.join(` ------------------------------- `)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initGastRecorder(t),n.initPerformanceTracer(t),Object.hasOwn(t,`ignoredIssues`))throw 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=Object.hasOwn(t,`skipValidations`)?t.skipValidations:Z$.skipValidations}},e1.DEFER_DEFINITION_ERRORS_HANDLING=!1,iMt(e1,[Cjt,Ajt,z$,Gjt,Jjt,qjt,Yjt,J$,nMt]),aMt=class extends e1{constructor(e,t=Z$){let n=Object.assign({},t);n.outputCst=!0,super(e,n)}}})),oMt=o((()=>{t1(),Zkt(),S$(),D$(),Ojt(),w$(),j$(),Xkt(),lQ()})),n1=l({diagram:()=>mNt});function sMt(e,t){let n=e.lexer.tokenize(t);if(n.errors.length>0){let r=n.errors[0],i=a1(r.offset)?r.offset:t.length,a=i+(a1(r.length)?r.length:0);throw Error(`Error lexing ${e.diagramType} diagram: ${r.message} at line ${r.line??1}, column ${r.column??1} [${i},${a})`)}e.parser.input=n.tokens;let r=e.entry();if(e.parser.errors.length>0)throw Error(`Error parsing ${e.diagramType} diagram: ${e.parser.errors[0].message}`);e.visit(r)}function r1(e,t,n){let r=[n];return r.index=t,r.input=e,r}function i1(e,t,n){let r;try{r=JSON.parse(e)}catch(r){let i=r instanceof Error?r.message:String(r),a=ZMt(i,e,t,n);if(!a){let r=0;try{new M0(e).collect()}catch(e){e instanceof j0&&(r=e.offset)}a=A0(e,r,t,n)}throw new XMt(`Invalid JSON: ${i}`,a.line,a.column)}if(typeof r!=`object`||!r||Array.isArray(r))throw new XMt(`JSON value must have an object root`,t,n);return{value:r,propertyOrder:new M0(e).collect()}}var a1,o1,cMt,s1,c1,l1,u1,lMt,d1,uMt,dMt,f1,p1,fMt,pMt,mMt,m1,h1,g1,hMt,gMt,_1,v1,_Mt,y1,b1,vMt,x1,S1,C1,w1,yMt,T1,E1,D1,O1,bMt,xMt,k1,SMt,CMt,wMt,TMt,A1,j1,M1,N1,P1,F1,I1,L1,R1,EMt,z1,DMt,B1,OMt,V1,kMt,AMt,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,jMt,MMt,NMt,PMt,FMt,c0,IMt,LMt,l0,RMt,u0,zMt,d0,BMt,f0,p0,m0,VMt,h0,g0,_0,v0,y0,b0,x0,HMt,S0,C0,UMt,WMt,GMt,w0,KMt,T0,qMt,JMt,E0,D0,O0,YMt,k0,XMt,A0,ZMt,j0,M0,QMt,$Mt,eNt,tNt,N0,P0,F0,I0,nNt,L0,R0,z0,B0,rNt,iNt,aNt,V0,H0,U0,oNt,W0,sNt,cNt,lNt,G0,K0,q0,J0,uNt,dNt,fNt,pNt,mNt,hNt=o((()=>{ZN(),$N(),YM(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Ih(),Gm(),Ls(),ar(),tr(),oMt(),Dp(),a1=N(e=>e!==void 0&&e>=0,`isKnownLocation`),N(sMt,`runChevrotainParse`),o1={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},cMt=`LR`,s1=Wo.usecase,c1=N(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:cMt,relationshipCounter:0,noteCounter:0,accTitle:``,accDescription:``,ast:void 0,config:structuredClone(s1)}),`createModel`),l1=N(e=>{if(!(e.actors instanceof Map)||!(e.useCases instanceof Map)||!(e.systemBoundaries instanceof Map)||!Array.isArray(e.relationships)||!(e.notes instanceof Map)||!(e.jsonNodes instanceof Map)||!(e.classDefs instanceof Map)||!(e.symbols instanceof Map)||![`TB`,`TD`,`BT`,`RL`,`LR`].includes(e.direction)||!Number.isSafeInteger(e.relationshipCounter)||e.relationshipCounter<0||!Number.isSafeInteger(e.noteCounter)||e.noteCounter<0||typeof e.accTitle!=`string`||typeof e.accDescription!=`string`||!e.config)throw Error(`Cannot commit an incomplete usecase model`)},`assertCompleteModel`),u1=c1(),lMt=N(()=>structuredClone(u1.config),`getConfig`),d1=N(()=>u1.ast,`getAST`),uMt=N(e=>{let t=structuredClone(e);l1(t);let n=ws(),r=Es();try{Cs(t.accTitle),Ts(t.accDescription),u1=t}catch(e){throw Cs(n),Ts(r),e}},`commit`),dMt=N(()=>{u1=c1(),Ss()},`clear`),f1=N(()=>u1.actors,`getActors`),p1=N(e=>u1.actors.get(e),`getActor`),fMt=N(()=>u1.useCases,`getUseCases`),pMt=N(e=>u1.useCases.get(e),`getUseCase`),mMt=N(()=>u1.systemBoundaries,`getSystemBoundaries`),m1=N(e=>u1.systemBoundaries.get(e),`getSystemBoundary`),h1=N(()=>u1.relationships,`getRelationships`),g1=N(()=>u1.notes,`getNotes`),hMt=N(e=>u1.notes.get(e),`getNote`),gMt=N(()=>u1.jsonNodes,`getJsonNodes`),_1=N(e=>u1.jsonNodes.get(e),`getJsonNode`),v1=N(()=>u1.classDefs,`getClassDefs`),_Mt=N(e=>u1.classDefs.get(e),`getClassDef`),y1=N(()=>u1.direction,`getDirection`),b1=N(e=>{let t=new Map;for(let n of[`default`,...e]){let e=u1.classDefs.get(n);if(e)for(let n of e.styles){let e=n.trim(),r=e.indexOf(`:`),i=(r===-1?e:e.slice(0,r)).trim();i&&t.set(i,e)}}return[...t.values()]},`getCompiledStyles`),vMt=N(e=>e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`),`escapeJsonPointerPart`),x1=N(e=>typeof e==`string`?e:e===null?`null`:String(e),`displayJsonScalar`),S1=N((e,t,n=e=>e)=>{let r=[],i=N((e,t,i)=>{r.push({key:n(e),accessibleKey:n(t),value:n(i)})},`append`),a=N((e,n,r)=>{if(Array.isArray(e)){if(e.length===0){i(n,n,`[]`);return}if(e.every(e=>e===null||[`string`,`number`,`boolean`].includes(typeof e))){for(let[t,r]of e.entries())i(t===0?n:``,n,x1(r));return}for(let[t,i]of e.entries())a(i,`${n}[${t}]`,`${r}/${t}`);return}if(typeof e==`object`&&e){let o=e,s=t[r]??Object.keys(o);if(s.length===0){i(n,n,`{}`);return}for(let e of s){let t=n?`${n}.${e}`:e;a(o[e],t,`${r}/${vMt(e)}`)}return}i(n,n,x1(e))},`visit`);return a(e,``,``),r},`flattenJsonRows`),C1=N(e=>{switch(e.type){case`hollow`:return`usecaseActorHollow`;case`awesome`:return`usecaseActorAwesome`;case`icon`:return`usecaseActorIcon`;case`normal`:return`usecaseActor`}},`actorShape`),w1=N(e=>e.shape===`ellipse`?e.business?`usecaseBusiness`:`usecaseEllipse`:e.shape,`useCaseShape`),yMt=N(e=>{switch(e){case o1.SOLID_ARROW:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_point`};case o1.BACK_ARROW:return{arrowTypeStart:`arrow_point`,arrowTypeEnd:`none`};case o1.CIRCLE_ARROW:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_circle`};case o1.CROSS_ARROW:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_cross`};case o1.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:`arrow_circle`,arrowTypeEnd:`none`};case o1.CROSS_ARROW_REVERSED:return{arrowTypeStart:`arrow_cross`,arrowTypeEnd:`none`};case o1.LINE_SOLID:return{arrowTypeStart:`none`,arrowTypeEnd:`none`}}},`associationMarkers`),T1=N(e=>{switch(e.type){case`include`:case`extend`:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_point`,pattern:`dotted`,label:e.type,labelType:`text`};case`generalization`:return{arrowTypeStart:`none`,arrowTypeEnd:`extension`,pattern:`solid`};case`association`:return{...yMt(e.arrowType),pattern:`solid`,...e.label?{label:e.label}:{},...e.labelType?{labelType:e.labelType}:{}}}},`relationshipVisuals`),E1=N(e=>e.animate||e.animation?[`edge-animation-${e.animation??`fast`}`]:[],`animationClasses`),D1=N((...e)=>e.filter(e=>!!e).join(` `),`classNames`),O1={getConfig:lMt,createModel:c1,commit:uMt,getAST:d1,clear:dMt,setDiagramTitle:Ds,getDiagramTitle:Os,setAccTitle:Cs,getAccTitle:ws,setAccDescription:Ts,getAccDescription:Es,getActors:f1,getActor:p1,getUseCases:fMt,getUseCase:pMt,getSystemBoundaries:mMt,getSystemBoundary:m1,getRelationships:h1,getNotes:g1,getNote:hMt,getJsonNodes:gMt,getJsonNode:_1,getClassDefs:v1,getClassDef:_Mt,getDirection:y1,getData:N(()=>{let e=As(),t={...u1.config,...e.usecase},n=N(t=>ls(t,e),`sanitize`),r=N(e=>n(u1.actors.get(e)?.label??u1.useCases.get(e)?.label??u1.jsonNodes.get(e)?.id??u1.notes.get(e)?.label??e),`endpointLabel`),i=[],a=[],o=0,s=0;for(let t of u1.actors.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:C1(t),isGroup:!1,padding:10,look:e.look,colorIndex:o++,cssClasses:D1(`default`,`usecase-actor`,`usecase-actor-${t.type}`,t.business&&`usecase-business`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:b1(t.classes),actorType:t.type,business:t.business,...t.icon?{icon:t.icon}:{},...t.stereotype?{stereotype:n(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of u1.useCases.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:w1(t),isGroup:!1,padding:t.shape===`ellipse`?20:10,look:e.look,colorIndex:o++,cssClasses:D1(`default`,`usecase-element`,`usecase-${t.shape}`,t.business&&`usecase-business`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:b1(t.classes),business:t.business,...t.stereotype?{stereotype:n(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of u1.notes.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:`note`,isGroup:!1,padding:10,look:e.look,cssClasses:`default usecase-note`,cssStyles:[],cssCompiledStyles:b1([]),noteTarget:t.target,noteTargetLabel:n(u1.actors.get(t.target)?.label??u1.useCases.get(t.target)?.label??u1.jsonNodes.get(t.target)?.id??t.target)});for(let t of u1.jsonNodes.values())i.push({id:t.id,label:n(t.id),labelType:`text`,shape:`usecaseJsonTable`,isGroup:!1,padding:10,look:e.look,cssClasses:D1(`default`,`usecase-json-table`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:b1(t.classes),jsonRows:S1(t.value,t.propertyOrder,n)});for(let t of u1.systemBoundaries.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:`usecaseSystemBoundary`,isGroup:!0,padding:20,look:e.look,colorIndex:s++,cssClasses:D1(`default`,`system-boundary`,`system-boundary-${t.type}`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:b1(t.classes),boundaryType:t.type});for(let t of u1.relationships){let{label:i,...o}=T1(t);a.push({id:t.id,start:t.source,end:t.target,source:t.source,target:t.target,sourceLabel:r(t.source),targetLabel:r(t.target),type:`edge`,relationshipType:t.type,internal:!1,...o,...i===void 0?{}:{label:n(i)},labelpos:`c`,classes:D1(`default`,`relationship`,`relationship-${t.type}`,...t.classes,...E1(t)),style:[...t.styles],cssCompiledStyles:b1(t.classes),animate:t.animate,...t.animation?{animation:t.animation}:{},look:e.look,thickness:`normal`,minlen:t.minlen,isUserDefinedId:t.explicitId})}for(let t of u1.notes.values())a.push({id:`${t.id}-edge`,start:t.id,end:t.target,source:t.id,target:t.target,type:`edge`,relationshipType:`note`,sourceLabel:r(t.id),targetLabel:r(t.target),internal:!0,pattern:`dotted`,arrowTypeStart:`none`,arrowTypeEnd:`none`,labelpos:`c`,classes:`default relationship relationship-note`,style:[],cssCompiledStyles:b1([]),animate:!1,look:e.look,thickness:`normal`,minlen:1,isUserDefinedId:!1});for(let e of i)e.wrappingWidth??=t.wrappingWidth,!e.isGroup&&!e.shape.startsWith(`usecaseActor`)&&(e.minWidth??=t.minNodeWidth),(e.shape===`usecaseEllipse`||e.shape===`usecaseBusiness`)&&(e.spreadPorts=!0);return{nodes:i,edges:a,config:e,type:`usecase`,layoutAlgorithm:`dagre`,direction:y1(),nodeSpacing:t.nodeSpacing,rankSpacing:t.rankSpacing,actorFontSize:t.actorFontSize,actorFontFamily:t.actorFontFamily,actorFontWeight:t.actorFontWeight,usecaseFontSize:t.usecaseFontSize,usecaseFontFamily:t.usecaseFontFamily,usecaseFontWeight:t.usecaseFontWeight,diagramPadding:t.diagramPadding,useMaxWidth:t.useMaxWidth,markers:[`point`,`circle`,`cross`,`extension`]}},`getData`)},N(r1,`customMatch`),bMt=N((e,t)=>{if(e[t]!==`"`||e[t+1]!=="`")return null;for(let n=t+2;n{if(e[t]!==`%`||e[t+1]!==`%`)return null;for(let n=t-1;n>=0;n--){let t=e[n];if(t===` + For further details.`);this.skipValidations=Object.hasOwn(t,`skipValidations`)?t.skipValidations:Y$.skipValidations}},Q$.DEFER_DEFINITION_ERRORS_HANDLING=!1,uMt(Q$,[Ajt,Rjt,L$,R$,eMt,z$,nMt,K$,q$]),fMt=class extends Q${constructor(e,t=Y$){let n=Object.assign({},t);n.outputCst=!0,super(e,n)}}})),pMt=o((()=>{$$(),iAt(),b$(),T$(),Ijt(),S$(),O$(),rAt(),mQ()})),mMt=l({diagram:()=>CNt});function hMt(e,t){let n=e.lexer.tokenize(t);if(n.errors.length>0){let r=n.errors[0],i=n1(r.offset)?r.offset:t.length,a=i+(n1(r.length)?r.length:0);throw Error(`Error lexing ${e.diagramType} diagram: ${r.message} at line ${r.line??1}, column ${r.column??1} [${i},${a})`)}e.parser.input=n.tokens;let r=e.entry();if(e.parser.errors.length>0)throw Error(`Error parsing ${e.diagramType} diagram: ${e.parser.errors[0].message}`);e.visit(r)}function e1(e,t,n){let r=[n];return r.index=t,r.input=e,r}function t1(e,t,n){let r;try{r=JSON.parse(e)}catch(r){let i=r instanceof Error?r.message:String(r),a=iNt(i,e,t,n);if(!a){let r=0;try{new A0(e).collect()}catch(e){e instanceof k0&&(r=e.offset)}a=O0(e,r,t,n)}throw new rNt(`Invalid JSON: ${i}`,a.line,a.column)}if(typeof r!=`object`||!r||Array.isArray(r))throw new rNt(`JSON value must have an object root`,t,n);return{value:r,propertyOrder:new A0(e).collect()}}var n1,r1,gMt,i1,a1,_Mt,o1,s1,vMt,yMt,bMt,c1,l1,u1,xMt,SMt,d1,f1,CMt,wMt,p1,TMt,m1,h1,g1,_1,EMt,v1,y1,b1,DMt,OMt,kMt,x1,S1,C1,AMt,jMt,MMt,w1,T1,E1,D1,O1,k1,A1,j1,NMt,M1,PMt,N1,P1,F1,FMt,IMt,I1,L1,LMt,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,RMt,zMt,BMt,VMt,HMt,t0,UMt,WMt,GMt,n0,r0,KMt,qMt,i0,JMt,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,YMt,b0,x0,S0,XMt,ZMt,C0,w0,T0,QMt,$Mt,eNt,E0,tNt,nNt,D0,rNt,O0,iNt,k0,A0,j0,M0,aNt,oNt,N0,sNt,P0,F0,cNt,I0,L0,R0,lNt,uNt,dNt,fNt,pNt,z0,mNt,hNt,B0,V0,H0,gNt,U0,_Nt,vNt,yNt,bNt,xNt,SNt,W0,CNt,wNt=o((()=>{JN(),XN(),UM(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qh(),qm(),Os(),er(),Zn(),pMt(),Dp(),n1=N(e=>e!==void 0&&e>=0,`isKnownLocation`),N(hMt,`runChevrotainParse`),r1={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},gMt=`LR`,i1=Fo.usecase,a1=N(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:gMt,relationshipCounter:0,noteCounter:0,accTitle:``,accDescription:``,ast:void 0,config:structuredClone(i1)}),`createModel`),_Mt=N(e=>{if(!(e.actors instanceof Map)||!(e.useCases instanceof Map)||!(e.systemBoundaries instanceof Map)||!Array.isArray(e.relationships)||!(e.notes instanceof Map)||!(e.jsonNodes instanceof Map)||!(e.classDefs instanceof Map)||!(e.symbols instanceof Map)||![`TB`,`TD`,`BT`,`RL`,`LR`].includes(e.direction)||!Number.isSafeInteger(e.relationshipCounter)||e.relationshipCounter<0||!Number.isSafeInteger(e.noteCounter)||e.noteCounter<0||typeof e.accTitle!=`string`||typeof e.accDescription!=`string`||!e.config)throw Error(`Cannot commit an incomplete usecase model`)},`assertCompleteModel`),o1=a1(),s1=N(()=>structuredClone(o1.config),`getConfig`),vMt=N(()=>o1.ast,`getAST`),yMt=N(e=>{let t=structuredClone(e);_Mt(t);let n=ms(),r=gs();try{ps(t.accTitle),hs(t.accDescription),o1=t}catch(e){throw ps(n),hs(r),e}},`commit`),bMt=N(()=>{o1=a1(),fs()},`clear`),c1=N(()=>o1.actors,`getActors`),l1=N(e=>o1.actors.get(e),`getActor`),u1=N(()=>o1.useCases,`getUseCases`),xMt=N(e=>o1.useCases.get(e),`getUseCase`),SMt=N(()=>o1.systemBoundaries,`getSystemBoundaries`),d1=N(e=>o1.systemBoundaries.get(e),`getSystemBoundary`),f1=N(()=>o1.relationships,`getRelationships`),CMt=N(()=>o1.notes,`getNotes`),wMt=N(e=>o1.notes.get(e),`getNote`),p1=N(()=>o1.jsonNodes,`getJsonNodes`),TMt=N(e=>o1.jsonNodes.get(e),`getJsonNode`),m1=N(()=>o1.classDefs,`getClassDefs`),h1=N(e=>o1.classDefs.get(e),`getClassDef`),g1=N(()=>o1.direction,`getDirection`),_1=N(e=>{let t=new Map;for(let n of[`default`,...e]){let e=o1.classDefs.get(n);if(e)for(let n of e.styles){let e=n.trim(),r=e.indexOf(`:`),i=(r===-1?e:e.slice(0,r)).trim();i&&t.set(i,e)}}return[...t.values()]},`getCompiledStyles`),EMt=N(e=>e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`),`escapeJsonPointerPart`),v1=N(e=>typeof e==`string`?e:e===null?`null`:String(e),`displayJsonScalar`),y1=N((e,t,n=e=>e)=>{let r=[],i=N((e,t,i)=>{r.push({key:n(e),accessibleKey:n(t),value:n(i)})},`append`),a=N((e,n,r)=>{if(Array.isArray(e)){if(e.length===0){i(n,n,`[]`);return}if(e.every(e=>e===null||[`string`,`number`,`boolean`].includes(typeof e))){for(let[t,r]of e.entries())i(t===0?n:``,n,v1(r));return}for(let[t,i]of e.entries())a(i,`${n}[${t}]`,`${r}/${t}`);return}if(typeof e==`object`&&e){let o=e,s=t[r]??Object.keys(o);if(s.length===0){i(n,n,`{}`);return}for(let e of s){let t=n?`${n}.${e}`:e;a(o[e],t,`${r}/${EMt(e)}`)}return}i(n,n,v1(e))},`visit`);return a(e,``,``),r},`flattenJsonRows`),b1=N(e=>{switch(e.type){case`hollow`:return`usecaseActorHollow`;case`awesome`:return`usecaseActorAwesome`;case`icon`:return`usecaseActorIcon`;case`normal`:return`usecaseActor`}},`actorShape`),DMt=N(e=>e.shape===`ellipse`?e.business?`usecaseBusiness`:`usecaseEllipse`:e.shape,`useCaseShape`),OMt=N(e=>{switch(e){case r1.SOLID_ARROW:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_point`};case r1.BACK_ARROW:return{arrowTypeStart:`arrow_point`,arrowTypeEnd:`none`};case r1.CIRCLE_ARROW:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_circle`};case r1.CROSS_ARROW:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_cross`};case r1.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:`arrow_circle`,arrowTypeEnd:`none`};case r1.CROSS_ARROW_REVERSED:return{arrowTypeStart:`arrow_cross`,arrowTypeEnd:`none`};case r1.LINE_SOLID:return{arrowTypeStart:`none`,arrowTypeEnd:`none`}}},`associationMarkers`),kMt=N(e=>{switch(e.type){case`include`:case`extend`:return{arrowTypeStart:`none`,arrowTypeEnd:`arrow_point`,pattern:`dotted`,label:e.type,labelType:`text`};case`generalization`:return{arrowTypeStart:`none`,arrowTypeEnd:`extension`,pattern:`solid`};case`association`:return{...OMt(e.arrowType),pattern:`solid`,...e.label?{label:e.label}:{},...e.labelType?{labelType:e.labelType}:{}}}},`relationshipVisuals`),x1=N(e=>e.animate||e.animation?[`edge-animation-${e.animation??`fast`}`]:[],`animationClasses`),S1=N((...e)=>e.filter(e=>!!e).join(` `),`classNames`),C1={getConfig:s1,createModel:a1,commit:yMt,getAST:vMt,clear:bMt,setDiagramTitle:_s,getDiagramTitle:vs,setAccTitle:ps,getAccTitle:ms,setAccDescription:hs,getAccDescription:gs,getActors:c1,getActor:l1,getUseCases:u1,getUseCase:xMt,getSystemBoundaries:SMt,getSystemBoundary:d1,getRelationships:f1,getNotes:CMt,getNote:wMt,getJsonNodes:p1,getJsonNode:TMt,getClassDefs:m1,getClassDef:h1,getDirection:g1,getData:N(()=>{let e=bs(),t={...o1.config,...e.usecase},n=N(t=>ns(t,e),`sanitize`),r=N(e=>n(o1.actors.get(e)?.label??o1.useCases.get(e)?.label??o1.jsonNodes.get(e)?.id??o1.notes.get(e)?.label??e),`endpointLabel`),i=[],a=[],o=0,s=0;for(let t of o1.actors.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:b1(t),isGroup:!1,padding:10,look:e.look,colorIndex:o++,cssClasses:S1(`default`,`usecase-actor`,`usecase-actor-${t.type}`,t.business&&`usecase-business`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:_1(t.classes),actorType:t.type,business:t.business,...t.icon?{icon:t.icon}:{},...t.stereotype?{stereotype:n(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of o1.useCases.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:DMt(t),isGroup:!1,padding:t.shape===`ellipse`?20:10,look:e.look,colorIndex:o++,cssClasses:S1(`default`,`usecase-element`,`usecase-${t.shape}`,t.business&&`usecase-business`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:_1(t.classes),business:t.business,...t.stereotype?{stereotype:n(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of o1.notes.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:`note`,isGroup:!1,padding:10,look:e.look,cssClasses:`default usecase-note`,cssStyles:[],cssCompiledStyles:_1([]),noteTarget:t.target,noteTargetLabel:n(o1.actors.get(t.target)?.label??o1.useCases.get(t.target)?.label??o1.jsonNodes.get(t.target)?.id??t.target)});for(let t of o1.jsonNodes.values())i.push({id:t.id,label:n(t.id),labelType:`text`,shape:`usecaseJsonTable`,isGroup:!1,padding:10,look:e.look,cssClasses:S1(`default`,`usecase-json-table`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:_1(t.classes),jsonRows:y1(t.value,t.propertyOrder,n)});for(let t of o1.systemBoundaries.values())i.push({id:t.id,label:n(t.label),labelType:t.labelType,shape:`usecaseSystemBoundary`,isGroup:!0,padding:20,look:e.look,colorIndex:s++,cssClasses:S1(`default`,`system-boundary`,`system-boundary-${t.type}`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:_1(t.classes),boundaryType:t.type});for(let t of o1.relationships){let{label:i,...o}=kMt(t);a.push({id:t.id,start:t.source,end:t.target,source:t.source,target:t.target,sourceLabel:r(t.source),targetLabel:r(t.target),type:`edge`,relationshipType:t.type,internal:!1,...o,...i===void 0?{}:{label:n(i)},labelpos:`c`,classes:S1(`default`,`relationship`,`relationship-${t.type}`,...t.classes,...x1(t)),style:[...t.styles],cssCompiledStyles:_1(t.classes),animate:t.animate,...t.animation?{animation:t.animation}:{},look:e.look,thickness:`normal`,minlen:t.minlen,isUserDefinedId:t.explicitId})}for(let t of o1.notes.values())a.push({id:`${t.id}-edge`,start:t.id,end:t.target,source:t.id,target:t.target,type:`edge`,relationshipType:`note`,sourceLabel:r(t.id),targetLabel:r(t.target),internal:!0,pattern:`dotted`,arrowTypeStart:`none`,arrowTypeEnd:`none`,labelpos:`c`,classes:`default relationship relationship-note`,style:[],cssCompiledStyles:_1([]),animate:!1,look:e.look,thickness:`normal`,minlen:1,isUserDefinedId:!1});for(let e of i)e.wrappingWidth??=t.wrappingWidth,!e.isGroup&&!e.shape.startsWith(`usecaseActor`)&&(e.minWidth??=t.minNodeWidth),(e.shape===`usecaseEllipse`||e.shape===`usecaseBusiness`)&&(e.spreadPorts=!0);return{nodes:i,edges:a,config:e,type:`usecase`,layoutAlgorithm:`dagre`,direction:g1(),nodeSpacing:t.nodeSpacing,rankSpacing:t.rankSpacing,actorFontSize:t.actorFontSize,actorFontFamily:t.actorFontFamily,actorFontWeight:t.actorFontWeight,usecaseFontSize:t.usecaseFontSize,usecaseFontFamily:t.usecaseFontFamily,usecaseFontWeight:t.usecaseFontWeight,diagramPadding:t.diagramPadding,useMaxWidth:t.useMaxWidth,markers:[`point`,`circle`,`cross`,`extension`]}},`getData`)},N(e1,`customMatch`),AMt=N((e,t)=>{if(e[t]!==`"`||e[t+1]!=="`")return null;for(let n=t+2;n{if(e[t]!==`%`||e[t+1]!==`%`)return null;for(let n=t-1;n>=0;n--){let t=e[n];if(t===` `||t===`\r`)break;if(t!==` `&&t!==` `)return null}let n=t+2;for(;n{for(let n=t-1;n>=0;n--){let t=e[n];if(t===` -`||t===`\r`)return!0;if(t!==` `&&t!==` `)return!1}return!0},`isIndentedLineStart`),SMt=N((e,t,n)=>{if(!k1(e,t))return null;let r=n.exec(e.slice(t));return r?r1(e,t,r[0]):null},`matchAccessibilityLine`),CMt=N((e,t)=>{if(!k1(e,t))return null;let n=/^accDescr[\t ]*{/.exec(e.slice(t));if(!n)return null;let r=e.indexOf(`}`,t+n[0].length);return r===-1?null:r1(e,t,e.slice(t,r+1))},`matchAccDescrBlock`),wMt=N((e,t)=>{if(e[t]!==`{`)return null;let n=0,r=!1,i=!1;for(let a=t;a{let n=e.indexOf(`>>`,t);if(n===-1||/[\n\r]/.test(e.slice(t,n)))return null;let r=e.slice(t,n);return r.trim()?r1(e,t,r):null},`matchStereotypeText`),A1=b$({name:`LABEL_TEXT`,pattern:v$.NA}),j1=b$({name:`WORD`,pattern:v$.NA,categories:A1}),M1=b$({name:`NUMBER`,pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:A1}),N1=b$({name:`IDENTIFIER`,pattern:/\w+/,longer_alt:M1,categories:j1}),P1=b$({name:`HWS`,pattern:/[\t ]+/,group:v$.SKIPPED}),F1=b$({name:`MARKDOWN_STRING`,pattern:bMt,start_chars_hint:[`"`],line_breaks:!0}),I1=b$({name:`UNCLOSED_MARKDOWN_STRING`,pattern:/"`[^]*/,line_breaks:!0}),L1=b$({name:`COMMENT`,pattern:xMt,start_chars_hint:[`%`],line_breaks:!1}),R1=b$({name:`NEWLINE`,pattern:/\r\n|\n|\r/,line_breaks:!0}),EMt=b$({name:`ACC_DESCR_BLOCK`,pattern:CMt,start_chars_hint:[`a`],line_breaks:!0}),z1=/^accTitle[\t ]*:[^\n\r]*/,DMt=/^accDescr[\t ]*:[^\n\r]*/,B1=b$({name:`ACC_TITLE_LINE`,pattern:N((e,t)=>SMt(e,t,z1),`pattern`),start_chars_hint:[`a`],line_breaks:!1}),OMt=b$({name:`ACC_DESCR_LINE`,pattern:N((e,t)=>SMt(e,t,DMt),`pattern`),start_chars_hint:[`a`],line_breaks:!1}),V1=b$({name:`JSON_DECLARATION_START`,pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:`jsonBody`}),kMt=b$({name:`JSON_OBJECT_LITERAL`,pattern:wMt,start_chars_hint:[`{`],line_breaks:!0,pop_mode:!0}),AMt=b$({name:`UNCLOSED_JSON_OBJECT_LITERAL`,pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),H1=N((e,t)=>b$({name:e,pattern:t,longer_alt:N1,categories:j1}),`keyword`),U1=H1(`USECASE`,/usecase-beta/),W1=H1(`ACTOR`,/actor/),G1=H1(`SYSTEM_BOUNDARY`,/systemBoundary/),K1=H1(`END`,/end/),q1=H1(`DIRECTION`,/direction/),J1=H1(`TD`,/TD/),Y1=H1(`TB`,/TB/),X1=H1(`BT`,/BT/),Z1=H1(`LR`,/LR/),Q1=H1(`RL`,/RL/),$1=H1(`NOTE`,/note/),e0=H1(`FOR`,/for/),t0=H1(`JSON`,/json/),n0=H1(`CLASS_DEF`,/classDef/),r0=H1(`CLASS`,/class/),i0=H1(`STYLE`,/style/),a0=H1(`INCLUDE`,/include/i),o0=H1(`EXTEND`,/extend/i),s0=H1(`TRUE`,/true/),jMt=H1(`FALSE`,/false/),MMt=b$({name:`GENERALIZATION`,pattern:/--\|>/}),NMt=b$({name:`DEPENDENCY_ARROW`,pattern:/\.\.>/}),PMt=b$({name:`STEREOTYPE_START`,pattern:/<>/,pop_mode:!0}),c0=b$({name:`STEREOTYPE_TEXT`,pattern:TMt,line_breaks:!1}),IMt=b$({name:`UNCLOSED_STEREOTYPE_TEXT`,pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),LMt=b$({name:`CLASS_SEPARATOR`,pattern:/:::/}),l0=b$({name:`FORWARD_SOLID`,pattern:/--+>/}),RMt=b$({name:`BACKWARD_SOLID`,pattern:/<--+/}),u0=b$({name:`FORWARD_CIRCLE`,pattern:/--o/}),zMt=b$({name:`BACKWARD_CIRCLE`,pattern:/o--/}),d0=b$({name:`FORWARD_CROSS`,pattern:/--x/}),BMt=b$({name:`BACKWARD_CROSS`,pattern:/x--/}),f0=b$({name:`MARKERLESS_SOLID`,pattern:/--+/}),p0=b$({name:`METADATA_START`,pattern:/@{/}),m0=b$({name:`AT`,pattern:/@/,categories:A1}),VMt=b$({name:`LBRACE`,pattern:/{/}),h0=b$({name:`RBRACE`,pattern:/}/}),g0=b$({name:`LBRACKET`,pattern:/\[/}),_0=b$({name:`RBRACKET`,pattern:/]/}),v0=b$({name:`LPAREN`,pattern:/\(/}),y0=b$({name:`RPAREN`,pattern:/\)/}),b0=b$({name:`COMMA`,pattern:/,/,categories:A1}),x0=b$({name:`COLON`,pattern:/:/,categories:A1}),HMt=b$({name:`HASH_COLOR`,pattern:/#[\dA-Fa-f]+/,categories:A1}),S0=b$({name:`PLAIN_STRING`,pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),C0=b$({name:`CSS_IDENTIFIER`,pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:A1}),UMt=b$({name:`CSS_ESCAPED_COMMA`,pattern:/\\,/,categories:A1}),WMt=b$({name:`DASH`,pattern:/-/,categories:A1}),GMt=b$({name:`DOT`,pattern:/\./,categories:A1}),w0=b$({name:`PERCENT`,pattern:/%/,categories:A1}),KMt=b$({name:`CSS_PUNCTUATION`,pattern:/[!#$&*+/=?^_|~]/,categories:A1}),T0=[A1,j1,P1,F1,I1,L1,R1,EMt,B1,OMt,V1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,jMt,MMt,NMt,PMt,LMt,l0,RMt,u0,zMt,d0,BMt,f0,p0,m0,VMt,h0,g0,_0,v0,y0,b0,x0,HMt,S0,C0,N1,M1,UMt,WMt,GMt,w0,KMt,b$({name:`LABEL_PUNCTUATION`,pattern:/[;<>\\`]/,categories:A1}),b$({name:`LABEL_SYMBOL`,pattern:/[^\t\n\r !-~]+/,categories:A1})],qMt={defaultMode:`defaultMode`,modes:{defaultMode:[...T0],jsonBody:[kMt,AMt],stereotype:[FMt,c0,IMt]}},JMt=[...T0,kMt,AMt,FMt,c0,IMt],E0=new v$(qMt),D0=N(e=>tAt(e,A1)||e.tokenType===S0||e.tokenType===F1,`isLabelToken`),O0={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},YMt=class extends aMt{static{N(this,`UsecaseParser`)}constructor(){super(JMt,{nodeLocationTracking:`full`}),this.RULE(`start`,()=>{this.CONSUME(U1),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE(`line`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.blankLine),`ALT`)},{ALT:N(()=>this.SUBRULE(this.commentLine),`ALT`)},{GATE:N(()=>this.isStatementStart(),`GATE`),ALT:N(()=>this.SUBRULE(this.statement),`ALT`)}])}),this.RULE(`statement`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.accTitleStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.accDescrStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.directionStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.actorStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.systemBoundaryStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.noteStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.jsonStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.classDefStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.classStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.styleStatement),`ALT`)},{GATE:N(()=>this.isMetadataAssignment(),`GATE`),ALT:N(()=>this.SUBRULE(this.metadataAssignmentStatement),`ALT`)},{GATE:N(()=>!this.isForbiddenPlantUmlStatement(),`GATE`),ALT:N(()=>this.SUBRULE(this.entityStatement),`ALT`)}])}),this.RULE(`lineEnd`,()=>{this.OR([{ALT:N(()=>this.CONSUME(R1),`ALT`)},{ALT:N(()=>this.CONSUME(x$),`ALT`)}])}),this.RULE(`blankLine`,()=>{this.CONSUME(R1)}),this.RULE(`commentLine`,()=>{this.CONSUME(L1),this.SUBRULE(this.lineEnd)}),this.RULE(`accTitleStatement`,()=>{this.CONSUME(B1),this.SUBRULE(this.lineEnd)}),this.RULE(`accDescrStatement`,()=>{this.OR([{ALT:N(()=>this.CONSUME(OMt),`ALT`)},{ALT:N(()=>this.CONSUME(EMt),`ALT`)}]),this.SUBRULE(this.lineEnd)}),this.RULE(`actorStatement`,()=>{this.CONSUME(W1),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:N(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(b0),this.SUBRULE2(this.actorItem)}),`ALT`)},{ALT:N(()=>this.SUBRULE(this.relationTail),`ALT`)}])}),this.SUBRULE(this.lineEnd)}),this.RULE(`actorItem`,()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE(`actorName`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(N1),this.OPTION(()=>{this.CONSUME(v0),this.SUBRULE(this.nodeLabel),this.CONSUME(y0)})},`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)}])}),this.RULE(`actorDeclarationOnly`,()=>{this.CONSUME(W1),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(b0),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE(`entityStatement`,()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE(`entityName`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(N1),this.OPTION(()=>{this.OR2([{ALT:N(()=>{this.CONSUME(v0),this.SUBRULE(this.nodeLabel),this.CONSUME(y0)},`ALT`)},{ALT:N(()=>{this.CONSUME(g0),this.SUBRULE2(this.nodeLabel),this.CONSUME(_0)},`ALT`)}])})},`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE(`nodeLabel`,()=>{this.OR([{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)},{ALT:N(()=>this.AT_LEAST_ONE(()=>this.CONSUME(A1)),`ALT`)}])}),this.RULE(`useCaseMetadata`,()=>{this.SUBRULE(this.metadata)}),this.RULE(`relationTail`,()=>{this.OPTION({GATE:N(()=>this.LA(1).tokenType===N1&&this.LA(2).tokenType===m0,`GATE`),DEF:N(()=>{this.CONSUME(N1),this.CONSUME(m0)},`DEF`)}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE(`arrow`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.semanticRelation),`ALT`)},{ALT:N(()=>this.SUBRULE(this.forwardSolidOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.backwardSolidOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.markerlessSolidOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.forwardCircleOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.backwardCircleOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.forwardCrossOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.backwardCrossOperator),`ALT`)}])}),this.RULE(`forwardSolidOperator`,()=>{this.CONSUME(l0)}),this.RULE(`backwardSolidOperator`,()=>{this.CONSUME(RMt),this.OPTION({GATE:N(()=>this.LA(0).image===`<--`&&this.hasLabeledRight([f0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(f0)},`DEF`)})}),this.RULE(`markerlessSolidOperator`,()=>{this.CONSUME(f0),this.OPTION({GATE:N(()=>this.LA(0).image===`--`&&this.hasLabeledRight([l0,f0,u0,d0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:N(()=>this.CONSUME(l0),`ALT`)},{ALT:N(()=>this.CONSUME2(f0),`ALT`)},{ALT:N(()=>this.CONSUME(u0),`ALT`)},{ALT:N(()=>this.CONSUME(d0),`ALT`)}])},`DEF`)})}),this.RULE(`forwardCircleOperator`,()=>{this.CONSUME(u0)}),this.RULE(`backwardCircleOperator`,()=>{this.CONSUME(zMt),this.OPTION({GATE:N(()=>this.hasLabeledRight([f0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(f0)},`DEF`)})}),this.RULE(`forwardCrossOperator`,()=>{this.CONSUME(d0)}),this.RULE(`backwardCrossOperator`,()=>{this.CONSUME(BMt),this.OPTION({GATE:N(()=>this.hasLabeledRight([f0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(f0)},`DEF`)})}),this.RULE(`edgeLabel`,()=>{this.OR([{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)},{ALT:N(()=>this.AT_LEAST_ONE(()=>this.CONSUME(A1)),`ALT`)}])}),this.RULE(`semanticRelation`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(NMt),this.CONSUME(x0),this.OR2([{ALT:N(()=>this.CONSUME(a0),`ALT`)},{ALT:N(()=>this.CONSUME(o0),`ALT`)}])},`ALT`)},{ALT:N(()=>this.CONSUME(MMt),`ALT`)}])}),this.RULE(`metadata`,()=>{this.CONSUME(p0),this.MANY(()=>this.CONSUME(R1)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(b0)),this.MANY3(()=>this.CONSUME2(R1))}),this.CONSUME(h0)}),this.RULE(`metadataProperty`,()=>{this.OR([{ALT:N(()=>this.CONSUME(N1),`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)}]),this.CONSUME(x0),this.OR2([{ALT:N(()=>this.CONSUME2(N1),`ALT`)},{ALT:N(()=>this.CONSUME2(S0),`ALT`)},{ALT:N(()=>this.CONSUME(s0),`ALT`)},{ALT:N(()=>this.CONSUME(jMt),`ALT`)}])}),this.RULE(`metadataSeparator`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(b0),this.MANY(()=>this.CONSUME(R1))},`ALT`)},{ALT:N(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(R1)),this.OPTION(()=>this.CONSUME2(b0)),this.MANY2(()=>this.CONSUME3(R1))},`ALT`)}])}),this.RULE(`systemBoundaryStatement`,()=>{this.CONSUME(G1),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(K1),this.SUBRULE2(this.lineEnd)}),this.RULE(`systemBoundaryName`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(N1),this.OPTION(()=>{this.OR2([{ALT:N(()=>{this.CONSUME(v0),this.SUBRULE(this.nodeLabel),this.CONSUME(y0)},`ALT`)},{ALT:N(()=>{this.CONSUME(g0),this.SUBRULE2(this.nodeLabel),this.CONSUME(_0)},`ALT`)}])})},`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)}])}),this.RULE(`systemBoundaryContent`,()=>{this.MANY(()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.blankLine),`ALT`)},{ALT:N(()=>this.SUBRULE(this.commentLine),`ALT`)},{ALT:N(()=>this.SUBRULE(this.boundaryElement),`ALT`)}])})}),this.RULE(`boundaryElement`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.actorDeclarationOnly),`ALT`)},{ALT:N(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},`ALT`)}])}),this.RULE(`metadataAssignmentStatement`,()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE(`metadataAssignmentTarget`,()=>{this.OR([{ALT:N(()=>this.CONSUME(N1),`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)}])}),this.RULE(`noteStatement`,()=>{this.CONSUME($1),this.CONSUME(e0),this.CONSUME(N1),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE(`stereotype`,()=>{this.CONSUME(PMt),this.CONSUME(c0),this.CONSUME(FMt)}),this.RULE(`classSuffix`,()=>{this.CONSUME(LMt),this.CONSUME(N1),this.MANY(()=>{this.CONSUME(b0),this.CONSUME2(N1)})}),this.RULE(`jsonStatement`,()=>{this.CONSUME(V1),this.CONSUME(kMt),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE(`directionStatement`,()=>{this.CONSUME(q1),this.OR([{ALT:N(()=>this.CONSUME(J1),`ALT`)},{ALT:N(()=>this.CONSUME(Y1),`ALT`)},{ALT:N(()=>this.CONSUME(X1),`ALT`)},{ALT:N(()=>this.CONSUME(Z1),`ALT`)},{ALT:N(()=>this.CONSUME(Q1),`ALT`)}]),this.SUBRULE(this.lineEnd)}),this.RULE(`classDefStatement`,()=>{this.CONSUME(n0),this.CONSUME(N1),this.MANY(()=>{this.CONSUME(b0),this.CONSUME2(N1)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE(`classStatement`,()=>{this.CONSUME(r0),this.CONSUME(N1),this.MANY(()=>{this.CONSUME(b0),this.CONSUME2(N1)}),this.CONSUME3(N1),this.MANY2(()=>{this.CONSUME2(b0),this.CONSUME4(N1)}),this.SUBRULE(this.lineEnd)}),this.RULE(`styleStatement`,()=>{this.CONSUME(i0),this.CONSUME(N1),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE(`styles`,()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(b0),this.SUBRULE2(this.styleValue)})}),this.RULE(`styleValue`,()=>{this.OR([{ALT:N(()=>this.CONSUME(j1),`ALT`)},{ALT:N(()=>this.CONSUME(C0),`ALT`)},{ALT:N(()=>{this.CONSUME(f0),this.CONSUME2(j1)},`ALT`)}]),this.CONSUME(x0),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE(`styleComponent`,()=>{this.OR([{ALT:N(()=>this.CONSUME(j1),`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)},{ALT:N(()=>this.CONSUME(HMt),`ALT`)},{ALT:N(()=>this.CONSUME(C0),`ALT`)},{ALT:N(()=>this.CONSUME(UMt),`ALT`)},{ALT:N(()=>this.CONSUME(WMt),`ALT`)},{ALT:N(()=>this.CONSUME(GMt),`ALT`)},{ALT:N(()=>this.CONSUME(w0),`ALT`)},{ALT:N(()=>this.CONSUME(KMt),`ALT`)},{ALT:N(()=>this.CONSUME(x0),`ALT`)},{ALT:N(()=>this.CONSUME(v0),`ALT`)},{ALT:N(()=>this.CONSUME(y0),`ALT`)},{ALT:N(()=>this.CONSUME(g0),`ALT`)},{ALT:N(()=>this.CONSUME(_0),`ALT`)},{ALT:N(()=>this.CONSUME(VMt),`ALT`)},{ALT:N(()=>this.CONSUME(h0),`ALT`)},{ALT:N(()=>this.CONSUME(m0),`ALT`)},{ALT:N(()=>this.CONSUME(f0),`ALT`)}])}),this.performSelfAnalysis()}isMetadataAssignment(){let e=this.LA(1).tokenType;return(e===N1||e===S0||e===F1)&&this.LA(2).tokenType===p0}isStatementStart(){let e=this.LA(1).tokenType;return e!==x$&&e!==R1&&e!==L1}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===N1&&O0[this.LA(1).image.toLowerCase()]===!0}hasLabeledRight(e){if(!D0(this.LA(1)))return!1;for(let t=2;;t++){let n=this.LA(t);if(e.includes(n.tokenType))return!0;if(!D0(n))return!1}}},k0=new YMt,XMt=class extends Error{constructor(e,t,n){super(`${e} (line ${t}, column ${n})`),this.line=t,this.column=n,this.name=`UsecaseJsonError`}static{N(this,`UsecaseJsonError`)}},A0=N((e,t,n,r)=>{let i=n,a=r,o=Math.min(Math.max(t,0),e.length);for(let t=0;t{let i=/\bposition (\d+)\b/u.exec(e);if(i)return A0(t,Number.parseInt(i[1],10),n,r);let a=/\bline (\d+) column (\d+)\b/u.exec(e);if(a){let e=Number.parseInt(a[1],10),t=Number.parseInt(a[2],10);return{line:n+e-1,column:e===1?r+t-1:t}}if(/unexpected end|end of json input/iu.test(e))return A0(t,t.length,n,r)},`locationFromErrorMessage`),j0=class extends Error{constructor(e){super(`Invalid JSON token`),this.offset=e}static{N(this,`JsonWalkError`)}},M0=class{constructor(e){this.text=e,this.offset=0,this.propertyOrder={}}static{N(this,`PropertyOrderCollector`)}collect(){if(this.skipWhitespace(),this.collectValue(``),this.skipWhitespace(),this.offset!==this.text.length)throw new j0(this.offset);return this.propertyOrder}collectValue(e){this.skipWhitespace();let t=this.text[this.offset];if(t===`{`)this.collectObject(e);else if(t===`[`)this.collectArray(e);else if(t===`"`)this.readString(!1);else if(t===`t`)this.consumeLiteral(`true`);else if(t===`f`)this.consumeLiteral(`false`);else if(t===`n`)this.consumeLiteral(`null`);else if(t===`-`||t>=`0`&&t<=`9`)this.consumeNumber();else throw new j0(this.offset)}collectObject(e){this.offset++;let t=[],n=new Set;if(this.propertyOrder[e]=t,this.skipWhitespace(),this.text[this.offset]===`}`){this.offset++;return}for(;this.offset=`1`&&this.text[this.offset]<=`9`)for(;this.text[this.offset]>=`0`&&this.text[this.offset]<=`9`;)this.offset++;else throw new j0(this.offset);if(this.text[this.offset]===`.`){if(this.offset++,this.text[this.offset]<`0`||this.text[this.offset]>`9`)throw new j0(this.offset);for(;this.text[this.offset]>=`0`&&this.text[this.offset]<=`9`;)this.offset++}if(this.text[this.offset]===`e`||this.text[this.offset]===`E`){if(this.offset++,(this.text[this.offset]===`+`||this.text[this.offset]===`-`)&&this.offset++,this.text[this.offset]<`0`||this.text[this.offset]>`9`)throw new j0(this.offset);for(;this.text[this.offset]>=`0`&&this.text[this.offset]<=`9`;)this.offset++}}skipWhitespace(){for(;this.offset({shape:e.type===`normal`?`actor`:e.type===`hollow`?`actor-hollow`:e.type===`awesome`?`actor-awesome`:`actor-icon`,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:`actor`,actorType:e.type,business:e.business,labelType:e.labelType,...e.icon?{icon:e.icon}:{},...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),`actorNode`),$Mt=N(e=>({shape:e.shape,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:`usecase`,useCaseShape:e.shape,business:e.business,labelType:e.labelType,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),`useCaseNode`),eNt=N(e=>({label:e.label,shape:`note`,attrs:{kind:`note`,target:e.target,labelType:e.labelType}}),`noteNode`),tNt=N(e=>({label:e.id,shape:`json-table`,...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:`json`,value:e.value,propertyOrder:e.propertyOrder,labelType:`text`}}),`jsonNode`),N0=N(e=>({id:e.id,source:e.source,target:e.target,...e.label?{label:e.label}:{},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{relationshipType:e.type,arrowType:e.arrowType,minlen:e.minlen,explicitId:e.explicitId,animate:e.animate,...e.animation?{animation:e.animation}:{},...e.labelType?{labelType:e.labelType}:{}}}),`relationshipEdge`),P0=N(e=>({id:`${e.id}-edge`,source:e.id,target:e.target,attrs:{relationshipType:`note`,arrowType:o1.LINE_SOLID,pattern:`dotted`,minlen:1,explicitId:!1,animate:!1,internal:!0}}),`noteEdge`),F0=N((e,t,n,r)=>{let i={};for(let t of e.getActors().values())i[t.id]=QMt(t);for(let t of e.getUseCases().values())i[t.id]=$Mt(t);for(let t of e.getNotes().values())i[t.id]=eNt(t);for(let t of e.getJsonNodes().values())i[t.id]=tNt(t);let a={};for(let t of e.getSystemBoundaries().values())a[t.id]={...t.label===t.id?{}:{title:t.label},nodes:[...t.members],...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:`systemBoundary`,boundaryType:t.type,labelType:t.labelType}};let o={};for(let t of e.getClassDefs().values())o[t.id]={styles:[...t.styles]};let s=e.getDirection();return{version:1,diagramType:`usecase`,source:t,header:{keyword:`usecase`,direction:s===`TD`?`TB`:s,span:n},...e.getAccTitle()?{accTitle:e.getAccTitle()}:{},...e.getAccDescription()?{accDescr:e.getAccDescription()}:{},nodes:i,edges:[...e.getRelationships().map(N0),...[...e.getNotes().values()].map(P0)],groups:a,classDefs:o,statements:r}},`buildUsecaseGraphAST`),I0=N(e=>`line ${e.line}, column ${e.column} [${e.span[0]},${e.span[1]})`,`locationText`),nNt=N(e=>e===void 0?``:` (label "${e}")`,`labelSuffix`),L0=N(e=>e.generated?e.label:void 0,`generatedFrom`),R0=N((e,t)=>{for(let n of t)e.includes(n)||e.push(n)},`pushUnique`),z0=class{constructor(e){this.db=e,this.source=``,this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=e.createModel()}static{N(this,`UsecaseModelBuilder`)}reset(e){this.model=this.db.createModel(),this.source=e,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(e){this.elements.push(e)}addBoundary(e){this.boundaries.push(e)}addJson(e){this.jsonDrafts.push(e)}addRelationship(e){this.relationshipDrafts.push(e)}addNote(e){this.noteDrafts.push(e)}addMetadataAssignment(e,t,n,r){this.metadataAssignments.push({target:e,targetLocation:t,metadata:n,statement:r})}addClassDef(e,t){this.classDefinitions.push({ids:e,styles:t})}addClassAssignment(e,t){this.classAssignments.push({targets:e,classes:t})}addStyleAssignment(e,t,n){this.styleAssignments.push({target:e,location:t,styles:n})}setDirection(e){this.directions.push(e===`TD`?`TB`:e)}setAccTitle(e){this.model.accTitle=e}setAccDescription(e){this.model.accDescription=e}setStatements(e){this.statements=e}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(e){let t=new Map,n=new Map,r=new Map,i=new Map;for(let e of this.relationshipDrafts)this.recordFirst(i,e.source.id,e.source.location.span[0]),this.recordFirst(i,e.target.id,e.target.location.span[0]);for(let e of this.elements)this.recordFirst(i,e.id,e.location.span[0]);for(let e of this.boundaries)this.recordFirst(i,e.id,e.location.span[0]);for(let e of this.jsonDrafts)this.recordFirst(i,e.id,e.location.span[0]);let a=[...this.elements.map(e=>({offset:e.location.span[0],type:`element`,value:e})),...this.boundaries.map(e=>({offset:e.location.span[0],type:`boundary`,value:e})),...this.jsonDrafts.map(e=>({offset:e.location.span[0],type:`json`,value:e})),...this.relationshipDrafts.filter(e=>e.explicitId).map(e=>({offset:e.explicitIdLocation.span[0],type:`edge`,value:e}))].sort((e,t)=>e.offset-t.offset);for(let e of a)e.type===`element`?this.collectElement(e.value,t,n):e.type===`boundary`?this.collectBoundary(e.value,t,r):e.type===`json`?this.registerUnique(t,e.value.id,`json`,e.value.location,!1):this.registerUnique(t,e.value.explicitId,`edge`,e.value.explicitIdLocation,!1);this.materializeElements(n,i),this.materializeBoundaries(r,i),this.materializeJson(i);let o=this.materializeRelationships(t,n,i);this.reorderElements(n,i),this.applyMetadataAssignments(t,n,r,o),this.validateAndRefreshElements(n),this.refreshBoundaries(r,n),this.materializeNotes(t),this.applyClassDefinitions(),this.applyClassesAndStyles(t,o),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...t].map(([e,t])=>[e,t.kind]));let s=F0(this,this.source,e,this.statements);return this.model.ast=s,this.db.commit(this.model),s}collectElement(e,t,n){let r=t.get(e.id),i=L0({generated:e.generated,label:e.label.text});r&&r.kind!==e.kind&&this.conflict(`ID '${e.id}' is declared as both ${r.kind} and ${e.kind}`,e.location,r.location,i,L0(r)),r&&(r.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,r.location,i,L0(r));let a=n.get(e.id);if(!a){let r={kind:e.kind,id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],...e.parentId?{parentId:e.parentId,parentLocation:e.parentLocation}:{},...e.shape?{shape:e.shape}:{},...e.stereotype?{stereotype:e.stereotype,stereotypeLocation:e.location}:{}};this.applyDeclarationMetadata(r,e.metadata),n.set(e.id,r),t.set(e.id,{kind:e.kind,location:e.location,generated:e.generated,label:e.label.text});return}(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`ID '${e.id}' has conflicting labels`,e.location,a.location),e.shape&&a.shape&&e.shape!==a.shape&&this.conflict(`Use case '${e.id}' has conflicting shapes`,e.location,a.location),e.parentId&&a.parentId&&e.parentId!==a.parentId&&this.conflict(`Element '${e.id}' belongs to more than one system boundary`,e.parentLocation??e.location,a.parentLocation??a.location),e.stereotype&&a.stereotype&&e.stereotype!==a.stereotype&&this.conflict(`Element '${e.id}' has conflicting stereotypes`,e.location,a.stereotypeLocation??a.location),a.shape??=e.shape,a.parentId??=e.parentId,a.parentLocation??=e.parentLocation,a.stereotype??=e.stereotype,a.stereotypeLocation??=e.stereotype?e.location:void 0,R0(a.classes,e.classes),this.applyDeclarationMetadata(a,e.metadata)}collectBoundary(e,t,n){let r=t.get(e.id),i=L0({generated:e.generated,label:e.label.text});r&&r.kind!==`boundary`&&this.conflict(`ID '${e.id}' is declared as both ${r.kind} and boundary`,e.location,r.location,i,L0(r)),r&&(r.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,r.location,i,L0(r));let a=n.get(e.id);if(a){(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`Boundary '${e.id}' has conflicting titles`,e.location,a.location),R0(a.classes,e.classes);return}n.set(e.id,{id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],styles:[],members:[]}),t.set(e.id,{kind:`boundary`,location:e.location,generated:e.generated,label:e.label.text})}materializeElements(e,t){for(let n of[...e.values()].sort((e,n)=>(t.get(e.id)??0)-(t.get(n.id)??0)))this.setElementModel(n)}materializeBoundaries(e,t){for(let n of[...e.values()].sort((e,n)=>(t.get(e.id)??0)-(t.get(n.id)??0)))this.model.systemBoundaries.set(n.id,{id:n.id,label:n.label.text,labelType:n.label.type,type:n.type??`rect`,members:[],classes:[...n.classes],styles:[...n.styles]})}materializeJson(e){for(let t of[...this.jsonDrafts].sort((t,n)=>(e.get(t.id)??0)-(e.get(n.id)??0)))this.model.jsonNodes.set(t.id,{id:t.id,value:t.value,propertyOrder:t.propertyOrder,classes:[...t.classes],styles:[]})}materializeRelationships(e,t,n){let r=new Map,i=0;for(let a of this.relationshipDrafts){let o=this.resolveEndpoint(a.source,e,t,n),s=this.resolveEndpoint(a.target,e,t,n);this.validateRelationship(a,o,s,e);let l=a.explicitId??`edge-${i++}`,u={id:l,explicitId:!!a.explicitId,source:a.source.id,target:a.target.id,type:a.type,arrowType:a.arrowType,...a.label?{label:a.label.text,labelType:a.label.type}:{},minlen:a.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(u),r.set(l,{draft:a,relationship:u})}return this.model.relationshipCounter=i,r}resolveEndpoint(e,t,n,r){if(e.classesOnReference&&!e.declaration)throw Error(`Relationship endpoint '${e.id}' uses ::: without declaring the node at ${I0(e.location)}`);let i=t.get(e.id);return i?i.kind:(n.set(e.id,{kind:`usecase`,id:e.id,label:e.label,location:e.location,generated:e.generated,shape:`ellipse`,classes:[]}),t.set(e.id,{kind:`usecase`,location:e.location,generated:e.generated,label:e.label.text}),this.recordFirst(r,e.id,e.location.span[0]),`usecase`)}reorderElements(e,t){let n=new Map(this.model.actors),r=new Map(this.model.useCases);this.model.actors.clear(),this.model.useCases.clear();for(let i of[...e.values()].sort((e,n)=>(t.get(e.id)??0)-(t.get(n.id)??0))){!n.has(i.id)&&!r.has(i.id)&&this.setElementModel(i);let e=n.get(i.id)??this.model.actors.get(i.id),t=r.get(i.id)??this.model.useCases.get(i.id);e?this.model.actors.set(i.id,e):t&&this.model.useCases.set(i.id,t)}}applyMetadataAssignments(e,t,n,r){for(let i of this.metadataAssignments){let a=e.get(i.target);if(!a){let e=this.inferMetadataKind(i.metadata);throw Error(`Metadata target '${i.target}' is unresolved${e?` (metadata implies ${e})`:``} at ${I0(i.targetLocation)}`)}if(a.kind===`actor`||a.kind===`usecase`)this.applyStandaloneElementMetadata(t.get(i.target),i.metadata);else if(a.kind===`boundary`){let e=n.get(i.target);for(let t of i.metadata.properties)(t.key!==`type`||t.value!==`rect`&&t.value!==`package`)&&this.invalidMetadata(i.target,a.kind,t),e.type=t.value}else if(a.kind===`edge`){let e=r.get(i.target);if(!e)throw Error(`Metadata target '${i.target}' is not an explicit edge at ${I0(i.targetLocation)}`);i.statement.kind=`edgeMetadata`,i.statement.edges=[{id:i.target,span:i.statement.span,idSpan:i.targetLocation.span,...i.statement.metadata?{metadata:i.statement.metadata}:{}}],delete i.statement.nodes;for(let t of i.metadata.properties)t.key===`animate`&&typeof t.value==`boolean`?e.relationship.animate=t.value:t.key===`animation`&&(t.value===`fast`||t.value===`slow`)?(e.relationship.animation=t.value,e.relationship.animate=!0):this.invalidMetadata(i.target,a.kind,t)}else for(let e of i.metadata.properties)this.invalidMetadata(i.target,a.kind,e)}for(let{relationship:e}of r.values())e.animation&&(e.animate=!0)}applyStandaloneElementMetadata(e,t){for(let n of t.properties)e.kind===`actor`?this.applyActorProperty(e,n,!0):n.key===`business`&&typeof n.value==`boolean`?e.business=n.value:this.invalidMetadata(e.id,e.kind,n)}applyDeclarationMetadata(e,t){if(t)for(let n of t.properties)e.kind===`actor`?this.applyActorProperty(e,n,!1):n.key===`business`&&typeof n.value==`boolean`?(e.business!==void 0&&e.business!==n.value&&this.conflict(`Use case '${e.id}' has conflicting business metadata`,n.location,e.location),e.business=n.value):this.invalidMetadata(e.id,e.kind,n)}applyActorProperty(e,t,n){t.key===`type`&&(t.value===`normal`||t.value===`hollow`||t.value===`awesome`)?(!n&&e.actorType!==void 0&&e.actorType!==t.value&&this.conflict(`Actor '${e.id}' has conflicting type metadata`,t.location,e.location),e.actorType=t.value):t.key===`icon`&&typeof t.value==`string`?(!n&&e.icon!==void 0&&e.icon!==t.value&&this.conflict(`Actor '${e.id}' has conflicting icon metadata`,t.location,e.location),e.icon=t.value):t.key===`business`&&typeof t.value==`boolean`?(!n&&e.business!==void 0&&e.business!==t.value&&this.conflict(`Actor '${e.id}' has conflicting business metadata`,t.location,e.location),e.business=t.value):this.invalidMetadata(e.id,e.kind,t)}validateAndRefreshElements(e){for(let t of e.values()){let e=t.icon?`icon`:t.actorType??`normal`;if(t.kind===`actor`){if(t.icon&&t.actorType&&t.actorType!==`normal`)throw Error(`Actor '${t.id}' cannot combine icon with type '${t.actorType}' at ${I0(t.location)}`);if(t.business&&(e===`icon`||e===`awesome`))throw Error(`Business actor '${t.id}' must use normal or hollow geometry at ${I0(t.location)}`)}else if((t.shape??`ellipse`)===`rect`&&t.business)throw Error(`Rectangular use case '${t.id}' cannot be a business use case at ${I0(t.location)}`);this.setElementModel(t)}}refreshBoundaries(e,t){for(let t of e.values())t.members.length=0;for(let t of[...this.elements].sort((e,t)=>e.location.span[0]-t.location.span[0])){if(!t.parentId)continue;let n=e.get(t.parentId);if(!n)throw Error(`Parent boundary '${t.parentId}' for '${t.id}' is unresolved at ${I0(t.parentLocation??t.location)}`);n.members.includes(t.id)||n.members.push(t.id)}for(let n of t.values())if(n.parentId&&!e.has(n.parentId))throw Error(`Parent boundary '${n.parentId}' for '${n.id}' is unresolved at ${I0(n.parentLocation??n.location)}`);for(let t of e.values()){let e=this.model.systemBoundaries.get(t.id);e.type=t.type??`rect`,e.members=[...t.members],e.classes=[...t.classes],e.styles=[...t.styles]}}materializeNotes(e){let t=0;for(let n of this.noteDrafts){let r=e.get(n.target);if(!r)throw Error(`Note target '${n.target}' is unresolved at ${I0(n.targetLocation)}`);r.kind!==`actor`&&r.kind!==`usecase`&&this.conflict(`Note target '${n.target}' must be an actor or use case, not ${r.kind}`,n.targetLocation,r.location);let i=`note-${t++}`;this.model.notes.set(i,{id:i,target:n.target,label:n.label.text,labelType:n.label.type})}this.model.noteCounter=t}applyClassDefinitions(){for(let e of this.classDefinitions)for(let t of e.ids)this.model.classDefs.set(t,{id:t,styles:[...e.styles]})}applyClassesAndStyles(e,t){for(let n of this.classAssignments)for(let r of n.targets)R0(this.getStylable(r.id,e,t,r.location).classes,n.classes);for(let n of this.styleAssignments)this.getStylable(n.target,e,t,n.location).styles.push(...n.styles)}getStylable(e,t,n,r){let i=t.get(e)?.kind,a=i===`actor`?this.model.actors.get(e):i===`usecase`?this.model.useCases.get(e):i===`boundary`?this.model.systemBoundaries.get(e):i===`json`?this.model.jsonNodes.get(e):i===`edge`?n.get(e)?.relationship:void 0;if(!a)throw Error(`Class/style target '${e}' is unresolved or anonymous at ${I0(r)}`);return a}validateRelationship(e,t,n,r){let i=N(e=>e===`actor`||e===`usecase`||e===`json`,`allowed`);if(i(t)||this.conflict(`Relationship source '${e.source.id}' cannot be ${t}`,e.source.location,r.get(e.source.id).location),i(n)||this.conflict(`Relationship target '${e.target.id}' cannot be ${n}`,e.target.location,r.get(e.target.id).location),(e.type===`include`||e.type===`extend`)&&(t!==`usecase`||n!==`usecase`))throw Error(`${e.type} relationship requires use-case endpoints at ${I0(e.location)}`);if(e.type===`generalization`&&(t!==`actor`&&t!==`usecase`||t!==n))throw Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${I0(e.location)}`);if(e.type===`association`&&(t===`json`||n===`json`)&&![0,1,2].includes(e.arrowType))throw Error(`JSON relationship '${e.source.id}' to '${e.target.id}' permits only point, reversed-point, or markerless solid association at ${I0(e.location)}`)}setElementModel(e){if(e.kind===`actor`){let t=e.icon?`icon`:e.actorType??`normal`;this.model.useCases.delete(e.id),this.model.actors.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,type:t,...e.icon?{icon:e.icon}:{},business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.actors.get(e.id)?.styles??[]})}else this.model.actors.delete(e.id),this.model.useCases.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,shape:e.shape??`ellipse`,business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.useCases.get(e.id)?.styles??[]})}inferMetadataKind(e){let t=new Set([`actor`,`usecase`,`boundary`,`edge`]);for(let n of e.properties)if(n.key===`icon`)t.clear(),t.add(`actor`);else if(n.key===`animate`||n.key===`animation`)t.clear(),t.add(`edge`);else if(n.key===`type`)t.clear(),n.value===`rect`||n.value===`package`?t.add(`boundary`):(n.value===`normal`||n.value===`hollow`||n.value===`awesome`)&&t.add(`actor`);else if(n.key===`business`)t.delete(`boundary`),t.delete(`edge`);else return;return t.size===1?[...t][0]:void 0}invalidMetadata(e,t,n){throw Error(`Metadata property '${n.key}' is invalid for ${t} '${e}' at ${I0(n.location)}`)}registerUnique(e,t,n,r,i){let a=e.get(t);a&&this.conflict(`ID '${t}' is declared more than once (${a.kind} and ${n})`,r,a.location,void 0,L0(a)),e.set(t,{kind:n,location:r,generated:i})}recordFirst(e,t,n){let r=e.get(t);(r===void 0||nthis.visit(e)),r=this.nodes(e,`relationTail`)[0],i=n.map((e,n)=>this.actorOccurrence(t[n],e,!0));for(let e of n)this.builder.addElement(this.actorDraft(e));if(!r)return{kind:`node`,span:[0,0],nodes:i};let a=this.visit(r);a.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(a.target));let o=this.relationshipDraft(n[0],a,this.nodeLocation(r));this.builder.addRelationship(o);let s=o.explicitId??`edge-${this.anonymousEdge++}`;return i.push(this.entityOccurrence(this.nodes(r.children,`entityName`)[0],a.target,a.target.explicitDeclaration)),{kind:`edge`,span:[0,0],nodes:i,edges:[{id:s,span:[0,0],...o.explicitIdLocation?{idSpan:o.explicitIdLocation.span}:{},...o.label?{labelSpan:o.label.span}:{}}]}}actorItem(e){let t=this.visit(this.nodes(e,`actorName`)[0]),n=this.nodes(e,`metadata`)[0],r=this.nodes(e,`stereotype`)[0],i=this.nodes(e,`classSuffix`)[0],a=i?this.visit(i):{classes:[],spans:[]};return{...t,...n?{metadata:this.visit(n)}:{},...r?{stereotype:this.visit(r)}:{},classes:a.classes,classSpans:a.spans}}actorName(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.tokens(e,`PLAIN_STRING`)[0]??this.tokens(e,`MARKDOWN_STRING`)[0];if(t){let n=this.nodes(e,`nodeLabel`)[0],r=n?this.visit(n):this.tokenLabel(t);return{id:t.image,label:r,location:this.tokenLocation(t),generated:!1,classes:[],classSpans:[]}}let r=this.tokenLabel(n);return{id:this.generateId(r.text),label:r,location:this.tokenLocation(n),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(e){let t=this.nodes(e,`actorItem`),n=t.map(e=>this.visit(e));for(let e of n)this.builder.addElement(this.actorDraft(e));return{kind:`node`,span:[0,0],nodes:n.map((e,n)=>this.actorOccurrence(t[n],e,!0))}}entityStatement(e){let t=this.nodes(e,`entityName`),n=this.visit(t[0]),r=this.nodes(e,`relationTail`)[0];if(!r)return n.explicitDeclaration=!0,n.shape??=`ellipse`,this.builder.addElement(this.entityDraft(n)),{kind:`node`,span:[0,0],nodes:[this.entityOccurrence(t[0],n,!0)]};n.explicitDeclaration&&this.builder.addElement(this.entityDraft(n));let i=this.visit(r);i.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(i.target));let a={source:this.endpoint(n),target:this.endpoint(i.target),location:this.nodeLocation(r),...i.explicitId?{explicitId:i.explicitId,explicitIdLocation:i.explicitIdLocation}:{},...i.arrow};this.builder.addRelationship(a);let o=a.explicitId??`edge-${this.anonymousEdge++}`;return{kind:`edge`,span:[0,0],nodes:[this.entityOccurrence(t[0],n,n.explicitDeclaration),this.entityOccurrence(this.nodes(r.children,`entityName`)[0],i.target,i.target.explicitDeclaration)],edges:[{id:o,span:[0,0],...a.explicitIdLocation?{idSpan:a.explicitIdLocation.span}:{},...a.label?{labelSpan:a.label.span}:{}}]}}entityName(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.tokens(e,`PLAIN_STRING`)[0]??this.tokens(e,`MARKDOWN_STRING`)[0],r=this.nodes(e,`nodeLabel`)[0],i=this.nodes(e,`useCaseMetadata`)[0],a=this.nodes(e,`stereotype`)[0],o=this.nodes(e,`classSuffix`)[0],s=o?this.visit(o):{classes:[],spans:[]};if(t){let n=r?this.visit(r):this.tokenLabel(t),o=r?this.tokens(e,`LBRACKET`).length?`rect`:`ellipse`:void 0;return{id:t.image,label:n,location:this.tokenLocation(t),generated:!1,...o?{shape:o}:{},...i?{metadata:this.visit(i)}:{},...a?{stereotype:this.visit(a)}:{},classes:s.classes,classSpans:s.spans,explicitDeclaration:!!(o||i||a)}}let l=this.tokenLabel(n);return{id:this.generateId(l.text),label:l,location:this.tokenLocation(n),generated:!0,...i?{metadata:this.visit(i)}:{},...a?{stereotype:this.visit(a)}:{},classes:s.classes,classSpans:s.spans,explicitDeclaration:!!(i||a)}}nodeLabel(e){let t=this.allTokens(e);if(t.length===1&&(t[0].tokenType.name===`PLAIN_STRING`||t[0].tokenType.name===`MARKDOWN_STRING`))return this.tokenLabel(t[0]);let n=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return{text:this.source.slice(n[0],n[1]),type:`text`,span:n}}useCaseMetadata(e){return this.visit(this.nodes(e,`metadata`)[0])}relationTail(e){let t=this.tokens(e,`IDENTIFIER`)[0];return{...t?{explicitId:t.image,explicitIdLocation:this.tokenLocation(t)}:{},arrow:this.visit(this.nodes(e,`arrow`)[0]),target:this.visit(this.nodes(e,`entityName`)[0])}}arrow(e){return this.visit(this.firstNode(e,`semanticRelation`,`forwardSolidOperator`,`backwardSolidOperator`,`markerlessSolidOperator`,`forwardCircleOperator`,`backwardCircleOperator`,`forwardCrossOperator`,`backwardCrossOperator`))}edgeLabel(e){return this.nodeLabel(e)}semanticRelation(e){if(this.tokens(e,`GENERALIZATION`).length)return{type:`generalization`,arrowType:o1.SOLID_ARROW,minlen:1};let t=this.tokens(e,`INCLUDE`).length?`include`:`extend`,n=this.tokens(e,t===`include`?`INCLUDE`:`EXTEND`)[0];return{type:t,arrowType:o1.SOLID_ARROW,label:{text:t,type:`text`,span:this.tokenSpan(n)},minlen:1}}metadata(e){return{properties:this.nodes(e,`metadataProperty`).map(e=>this.visit(e)),location:this.ctxLocation(e)}}metadataProperty(e){let t=this.allTokens(e).filter(e=>e.tokenType.name!==`COLON`),n=t[0],r=t[1],i=r.tokenType.name===`TRUE`||r.tokenType.name!==`FALSE`&&this.decodePlain(r),a=[n.startOffset,(r.endOffset??r.startOffset)+1];return{key:this.decodePlain(n),value:i,span:a,keySpan:this.contentSpan(n),valueSpan:this.contentSpan(r),location:this.tokenLocation(n)}}metadataSeparator(e){}systemBoundaryStatement(e){let t=this.visit(this.nodes(e,`systemBoundaryName`)[0]),n=this.nodes(e,`classSuffix`)[0],r=n?this.visit(n):{classes:[],spans:[]};t.classes=r.classes,this.builder.addBoundary(t);let i=this.parentBoundary;this.parentBoundary={id:t.id,location:t.location};let a=this.nodes(e,`systemBoundaryContent`)[0],o=a?this.visit(a):[];this.parentBoundary=i;let s=this.tokens(e,`END`)[0],l=this.nodes(e,`metadata`)[0],u=l?this.visit(l):void 0,d={kind:`group`,span:[0,0],group:t.id,idSpan:t.location.span,titleSpan:t.label.span,endSpan:this.tokenSpan(s),classSpans:r.spans,...u?{metadata:u.properties.map(({key:e,span:t,keySpan:n,valueSpan:r})=>({key:e,span:t,keySpan:n,valueSpan:r}))}:{},...o.length?{children:o}:{}};return u&&this.builder.addMetadataAssignment(t.id,t.location,u,d),d}systemBoundaryName(e){let t=this.tokens(e,`IDENTIFIER`)[0];if(t){let n=this.nodes(e,`nodeLabel`)[0];return{id:t.image,label:n?this.visit(n):this.tokenLabel(t),location:this.tokenLocation(t),generated:!1,classes:[]}}let n=this.tokens(e,`PLAIN_STRING`)[0]??this.tokens(e,`MARKDOWN_STRING`)[0],r=this.tokenLabel(n);return{id:this.generateId(r.text),label:r,location:this.tokenLocation(n),generated:!0,classes:[]}}systemBoundaryContent(e){return[...this.nodes(e,`blankLine`),...this.nodes(e,`commentLine`),...this.nodes(e,`boundaryElement`)].sort((e,t)=>(e.location?.startOffset??0)-(t.location?.startOffset??0)).map(e=>this.wrap(e,this.visit(e)))}boundaryElement(e){let t=this.nodes(e,`actorDeclarationOnly`)[0];if(t)return this.visit(t);let n=this.nodes(e,`entityName`)[0],r=this.visit(n);return r.explicitDeclaration=!0,r.shape??=`ellipse`,this.builder.addElement(this.entityDraft(r)),{kind:`node`,span:[0,0],nodes:[this.entityOccurrence(n,r,!0)]}}metadataAssignmentStatement(e){let t=this.visit(this.nodes(e,`metadataAssignmentTarget`)[0]),n=this.visit(this.nodes(e,`metadata`)[0]),r={kind:`metadata`,span:[0,0],nodes:[{id:t.id,span:t.location.span,idSpan:t.location.span}],metadata:n.properties.map(({key:e,span:t,keySpan:n,valueSpan:r})=>({key:e,span:t,keySpan:n,valueSpan:r}))};return this.builder.addMetadataAssignment(t.id,t.location,n,r),r}metadataAssignmentTarget(e){let t=this.allTokens(e)[0],n=this.tokenLabel(t);return{id:t.tokenType.name===`IDENTIFIER`?t.image:this.generateId(n.text),location:this.tokenLocation(t)}}noteStatement(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.visit(this.nodes(e,`nodeLabel`)[0]);return this.builder.addNote({target:t.image,targetLocation:this.tokenLocation(t),label:n,location:this.ctxLocation(e)}),{kind:`note`,span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:n.span,nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}stereotype(e){let t=this.tokens(e,`STEREOTYPE_TEXT`)[0];return{value:t.image.trim(),span:this.tokenSpan(t)}}classSuffix(e){let t=this.tokens(e,`IDENTIFIER`);return{classes:t.map(e=>e.image),spans:t.map(e=>this.tokenSpan(e))}}jsonStatement(e){let t=this.tokens(e,`JSON_DECLARATION_START`)[0],n=this.tokens(e,`JSON_OBJECT_LITERAL`)[0],r=/^json[\t ]+(\w+)/.exec(t.image),i=r[1],a=r[0].length-i.length,o={span:[t.startOffset+a,t.startOffset+a+i.length],line:t.startLine??1,column:(t.startColumn??1)+a},s=i1(n.image,n.startLine??1,n.startColumn??1),l=this.nodes(e,`classSuffix`)[0],u=l?this.visit(l):{classes:[],spans:[]},d={id:i,value:s.value,propertyOrder:s.propertyOrder,location:o,classes:u.classes};return this.builder.addJson(d),{kind:`json`,span:[0,0],nodes:[{id:i,span:o.span,idSpan:o.span,defines:!0,classSpans:u.spans}],classSpans:u.spans}}directionStatement(e){let t=this.allTokens(e).find(e=>[`TD`,`TB`,`BT`,`RL`,`LR`].includes(e.tokenType.name));return this.builder.setDirection(t.image),{kind:`direction`,span:[0,0]}}classDefStatement(e){let t=this.tokens(e,`IDENTIFIER`),n=this.visit(this.nodes(e,`styles`)[0]);return this.builder.addClassDef(t.map(e=>e.image),n),{kind:`classDef`,span:[0,0],ref:t[0].image,refSpan:this.tokenSpan(t[0])}}classStatement(e){let t=this.tokens(e,`IDENTIFIER`),n=1;for(;n({id:e.image,location:this.tokenLocation(e)})),i=t.slice(n).map(e=>e.image);return this.builder.addClassAssignment(r,i),{kind:`classAssign`,span:[0,0],ref:i[0],refSpan:this.tokenSpan(t[n]),nodes:r.map(({id:e,location:t})=>({id:e,span:t.span,idSpan:t.span}))}}styleStatement(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.visit(this.nodes(e,`styles`)[0]);return this.builder.addStyleAssignment(t.image,this.tokenLocation(t),n),{kind:`style`,span:[0,0],nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}styles(e){return this.nodes(e,`styleValue`).map(e=>this.visit(e))}styleValue(e){let t=this.allTokens(e),n=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return this.source.slice(n[0],n[1]).replaceAll(`\\,`,`,`)}styleComponent(e){return this.allTokens(e).map(e=>e.image).join(``)}forwardSolidOperator(e){let t=this.tokens(e,`FORWARD_SOLID`)[0];return{type:`association`,arrowType:o1.SOLID_ARROW,minlen:this.solidMinlen(t)}}backwardSolidOperator(e){let t=this.tokens(e,`BACKWARD_SOLID`)[0],n=this.nodes(e,`edgeLabel`)[0],r=n?this.tokens(e,`MARKERLESS_SOLID`).at(-1):t;return{type:`association`,arrowType:o1.BACK_ARROW,minlen:this.solidMinlen(r),...n?{label:this.visit(n)}:{}}}markerlessSolidOperator(e){let t=this.nodes(e,`edgeLabel`)[0],n=this.allTokens(e);if(!t)return{type:`association`,arrowType:o1.LINE_SOLID,minlen:this.solidMinlen(this.tokens(e,`MARKERLESS_SOLID`)[0])};let r=n.at(-1),i=r.tokenType.name===`FORWARD_SOLID`?o1.SOLID_ARROW:r.tokenType.name===`FORWARD_CIRCLE`?o1.CIRCLE_ARROW:r.tokenType.name===`FORWARD_CROSS`?o1.CROSS_ARROW:o1.LINE_SOLID;return{type:`association`,arrowType:i,label:this.visit(t),minlen:i===o1.SOLID_ARROW||i===o1.LINE_SOLID?this.solidMinlen(r):1}}forwardCircleOperator(e){return{type:`association`,arrowType:o1.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(e){let t=this.nodes(e,`edgeLabel`)[0];return{type:`association`,arrowType:o1.CIRCLE_ARROW_REVERSED,minlen:1,...t?{label:this.visit(t)}:{}}}forwardCrossOperator(e){return{type:`association`,arrowType:o1.CROSS_ARROW,minlen:1}}backwardCrossOperator(e){let t=this.nodes(e,`edgeLabel`)[0];return{type:`association`,arrowType:o1.CROSS_ARROW_REVERSED,minlen:1,...t?{label:this.visit(t)}:{}}}actorDraft(e){return{id:e.id,kind:`actor`,label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}entityDraft(e){return{id:e.id,kind:`usecase`,label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.shape?{shape:e.shape}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}endpoint(e,t=e.explicitDeclaration??!0){return{id:e.id,label:e.label,location:e.location,generated:e.generated,declaration:t,classesOnReference:e.classes.length>0}}relationshipDraft(e,t,n){return{source:this.endpoint(e,!0),target:this.endpoint(t.target),location:n,...t.explicitId?{explicitId:t.explicitId,explicitIdLocation:t.explicitIdLocation}:{},...t.arrow}}actorOccurrence(e,t,n){return{id:t.id,span:this.nodeSpan(e),idSpan:t.location.span,labelSpan:t.label.span,...n?{defines:!0}:{},...t.stereotype?{stereotypeSpan:t.stereotype.span}:{},...t.metadata?{metadata:t.metadata.properties.map(({key:e,span:t,keySpan:n,valueSpan:r})=>({key:e,span:t,keySpan:n,valueSpan:r}))}:{},...t.classSpans.length?{classSpans:t.classSpans}:{}}}entityOccurrence(e,t,n){return this.actorOccurrence(e,t,n)}wrap(e,t){if(t.kind===`blank`||t.kind===`comment`)return t;t.span=this.nodeSpan(e);for(let e of t.edges??[])e.span=t.span;return t}tokenLabel(e){let t=e.tokenType.name===`MARKDOWN_STRING`?`markdown`:`text`,n=t===`markdown`?2:+(e.tokenType.name===`PLAIN_STRING`),r=this.tokenSpan(e,n);return{text:this.source.slice(r[0],r[1]),type:t,span:r}}decodePlain(e){return e.tokenType.name===`PLAIN_STRING`?e.image.slice(1,-1):e.image}contentSpan(e){return this.tokenSpan(e,e.tokenType.name===`PLAIN_STRING`?1:e.tokenType.name===`MARKDOWN_STRING`?2:0)}generateId(e){return e.replace(/\W/g,`_`)}solidMinlen(e){return Math.max(1,(e.image.match(/-/g)?.length??2)-1)}nodeLocation(e){let t=this.allTokens(e.children)[0];return{span:this.nodeSpan(e),line:t.startLine??1,column:t.startColumn??1}}ctxLocation(e){let t=this.allTokens(e).filter(e=>e.tokenType.name!==`NEWLINE`&&e.tokenType.name!==`EOF`),n=t[0],r=t.at(-1);return{span:[n.startOffset,Math.min(this.source.length,(r.endOffset??r.startOffset+r.image.length-1)+1)],line:n.startLine??1,column:n.startColumn??1}}tokenLocation(e){let t=e.tokenType.name===`PLAIN_STRING`?1:e.tokenType.name===`MARKDOWN_STRING`?2:0;return{span:this.tokenSpan(e,t),line:e.startLine??1,column:(e.startColumn??1)+t}}nodeSpan(e){let t=this.allTokens(e.children).filter(e=>e.tokenType.name!==`NEWLINE`&&e.tokenType.name!==`EOF`),n=t[0],r=t.at(-1);if(!n||!r)throw Error(`Usecase CST node has no source token`);return[n.startOffset,Math.min(this.source.length,(r.endOffset??r.startOffset+r.image.length-1)+1)]}tokenSpan(e,t=0){return[e.startOffset+t,Math.min(this.source.length,(e.endOffset??e.startOffset+e.image.length-1)+1-t)]}nodes(e,t){return(e[t]??[]).filter(e=>`children`in e)}tokens(e,t){return(e[t]??[]).filter(e=>`tokenTypeIdx`in e)}firstNode(e,...t){for(let n of t){let t=this.nodes(e,n)[0];if(t)return t}throw Error(`Usecase CST is missing one of: ${t.join(`, `)}`)}allTokens(e){let t=[];for(let n of Object.values(e))for(let e of n)`tokenTypeIdx`in e?t.push(e):t.push(...this.allTokens(e.children));return t.sort((e,t)=>e.startOffset-t.startOffset)}},iNt=new rNt,aNt={parse:N(async e=>{O1.clear(),k0.input=[];try{sMt({diagramType:`usecase`,lexer:E0,parser:k0,entry:N(()=>k0.start(),`entry`),visit:N(t=>iNt.build(t,e),`visit`)},e)}catch(t){O1.clear();let n=k0.errors[0];if(n){let{token:r}=n,i=a1(r.startOffset)?r.startOffset:e.length,a=a1(r.endOffset)?r.endOffset+1:i,o=a1(r.startLine)?r.startLine:e.slice(0,i).split(/\r\n|\r|\n/).length,s=Math.max(e.lastIndexOf(` -`,i-1),e.lastIndexOf(`\r`,i-1)),l=a1(r.startColumn)?r.startColumn:i-s,u=t instanceof Error?t.message:String(t);throw Error(`${u} at line ${o}, column ${l} [${i},${a})`)}throw t}},`parse`)},V0=[`point`,`circle`,`cross`,`extension`],H0={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},U0=N((e,t)=>{let[n,r]=[e,t].map(e=>e.replace(/[^\w-]+/g,`_`).replace(/^_+|_+$/g,``)||`element`);return`usecase-${n}-${r}`},`usecaseDomId`),oNt=N(e=>`usecase-${e.replace(/[^\w-]+/g,`_`).replace(/^_+|_+$/g,``)||`element`}`,`usecaseNodeDomId`),W0=N((e,t)=>t===`markdown`?Dke(e).map(e=>e.map(e=>e.content).join(` `)).join(` -`):e,`getAccessibleLabel`),sNt=N(e=>{let t=W0(e.label??e.id,e.labelType);if(H0[e.shape]){let n=e.actorType&&e.actorType!==`normal`?`${e.actorType} `:``;return`${e.business?`business `:``}${n}actor ${t}${e.stereotype?`, stereotype ${e.stereotype}`:``}`}if(e.shape===`note`)return`Note for ${e.noteTargetLabel??e.noteTarget??``}: ${t}`;if(e.shape===`usecaseJsonTable`){let n=(e.jsonRows??[]).map(e=>`${e.accessibleKey}: ${e.value}`).join(`; `);return n?`${t}: ${n}`:t}let n=e.stereotype?`, stereotype ${e.stereotype}`:``;return`${e.business?`business `:``}use case ${t}${n}`},`getUsecaseNodeAccessibleName`),cNt=N(e=>`${e.boundaryType} system boundary ${W0(e.label??e.id,e.labelType)}`,`getUsecaseBoundaryAccessibleName`),lNt=N(e=>e.relationshipType===`note`?``:`${e.relationshipType===`association`&&e.label?`association ${W0(e.label,e.labelType)}`:e.relationshipType} from ${e.sourceLabel} to ${e.targetLabel}`,`getUsecaseEdgeAccessibleName`),G0=N(e=>e.replace(/&/g,`&`).replace(//g,`>`),`escapePlainLabel`),K0=N(e=>e.replace(/([*[\\\]_`])/g,`\\$1`),`escapeMarkdownMarkers`),q0=N((e,t)=>{e.diagramId=t,e.markers=[...V0];for(let t of e.nodes){let e=t;if(e.domId=oNt(t.id),t.label!==void 0&&t.labelType===`text`&&(t.label=G0(t.label)),t.stereotype&&=G0(t.stereotype),!t.isGroup&&t.shape===`usecaseJsonTable`&&(t.jsonRows=t.jsonRows?.map(e=>({...e,key:G0(e.key),value:G0(e.value)}))),!t.isGroup&&(t.shape===`usecaseEllipse`||t.shape===`rect`)&&t.stereotype){let n=t.label??G0(t.id);t.label=`\xAB${K0(t.stereotype)}\xBB
    ${t.labelType===`text`?K0(n):n}`,t.labelType=`markdown`,e.hasFoldedStereotype=!0,delete t.stereotype}}for(let t of e.edges)t.label!==void 0&&t.labelType===`text`&&(t.label=G0(t.label));return e},`prepareUsecaseLayoutData`),J0=N((e,t,n)=>{for(let r of t.nodes){let i=typeof r.domId==`string`?r.domId:U0(t.diagramId,r.id),a=e.select(`#${i}`),o=r.isGroup?`boundary`:H0[r.shape]?`actor`:r.shape===`note`?`note`:r.shape===`usecaseJsonTable`?`json`:`usecase`,s=n.nodes.get(r.id)??r.id;if(a.attr(`data-usecase-id`,r.id).attr(`data-usecase-kind`,o).attr(`role`,`img`).attr(`aria-label`,s),!r.isGroup&&(r.shape===`usecaseEllipse`||r.shape===`rect`)&&`hasFoldedStereotype`in r&&r.hasFoldedStereotype===!0){let e=a.node(),t=e?.querySelector(`.nodeLabel`),n=t?.querySelector(`p`)??t,r=n?.firstChild;if(n&&r?.nodeType===3){let e=n.ownerDocument.createElement(`span`);e.className=`usecase-stereotype`,n.insertBefore(e,r),e.appendChild(r)}else e?.querySelector(`.label tspan tspan, .label tspan`)?.classList.add(`usecase-stereotype`)}}let r=new Map(t.edges.map(e=>[e.id,e]));e.selectAll(`path[data-et="edge"]`).each(function(){let e=r.get(this.getAttribute(`data-id`)??``);if(!e)return;let i=Qc(this);i.attr(`id`,U0(t.diagramId,e.id)).attr(`data-usecase-id`,e.id).attr(`data-usecase-kind`,e.internal?`note-connector`:`relationship`),e.internal?i.attr(`aria-hidden`,`true`):i.attr(`role`,`img`).attr(`aria-label`,n.edges.get(e.id)??e.id)})},`annotateUsecaseElements`),uNt=N((e,t)=>{e.style(`--mermaid-usecase-actor-font-size`,`${t.actorFontSize}px`).style(`--mermaid-usecase-actor-font-family`,t.actorFontFamily).style(`--mermaid-usecase-actor-font-weight`,t.actorFontWeight).style(`--mermaid-usecase-font-size`,`${t.usecaseFontSize}px`).style(`--mermaid-usecase-font-family`,t.usecaseFontFamily).style(`--mermaid-usecase-font-weight`,t.usecaseFontWeight)},`applyUsecaseFonts`),dNt={draw:N(async(e,t,n,r)=>{P.info(`Drawing usecase diagram (unified)`,t);let{layout:i}=As(),a=r.db,o=a.getData(),s=new Map(o.nodes.map(e=>[e.id,W0(e.label??e.id,e.labelType)])),l={nodes:new Map(o.nodes.map(e=>[e.id,e.isGroup?cNt(e):sNt(e.shape===`note`?{...e,noteTargetLabel:s.get(e.noteTarget??``)}:e)])),edges:new Map(o.edges.map(e=>[e.id,lNt({...e,sourceLabel:s.get(e.source)??e.sourceLabel,targetLabel:s.get(e.target)??e.targetLabel})]))},u=XN(t,o.config.securityLevel);o.layoutAlgorithm=JM(i),q0(o,t),uNt(u,o),await KM(o,u),J0(u,o,l);let d=o.diagramPadding;Hm.insertTitle(u,`usecaseDiagramTitleText`,0,a.getDiagramTitle?.()??``),QN(u,d,`usecaseDiagram`,o.useMaxWidth),uNt(u,o)},`draw`)},fNt=N(e=>({actorBkg:e.usecaseActorBkg??e.actorBkg??e.mainBkg,actorBorder:e.usecaseActorBorder??e.actorBorder??e.primaryColor,bkg:e.usecaseBkg??e.mainBkg,border:e.usecaseBorder??e.nodeBorder??e.primaryColor,boundaryBkg:e.usecaseBoundaryBkg??e.clusterBkg,boundaryBorder:e.usecaseBoundaryBorder??e.clusterBorder,includeLine:e.usecaseIncludeLine??e.lineColor,extendLine:e.usecaseExtendLine??e.lineColor}),`roleColors`),pNt=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!jh(t,r))return``;let i=ns().usecase?.colorScheme===`rotate`,a=Mh(e.look),o=a===`handDrawn`,s=Ah(n),l=``;for(let e=0;e{for(let n=t-1;n>=0;n--){let t=e[n];if(t===` +`||t===`\r`)return!0;if(t!==` `&&t!==` `)return!1}return!0},`isIndentedLineStart`),w1=N((e,t,n)=>{if(!MMt(e,t))return null;let r=n.exec(e.slice(t));return r?e1(e,t,r[0]):null},`matchAccessibilityLine`),T1=N((e,t)=>{if(!MMt(e,t))return null;let n=/^accDescr[\t ]*{/.exec(e.slice(t));if(!n)return null;let r=e.indexOf(`}`,t+n[0].length);return r===-1?null:e1(e,t,e.slice(t,r+1))},`matchAccDescrBlock`),E1=N((e,t)=>{if(e[t]!==`{`)return null;let n=0,r=!1,i=!1;for(let a=t;a{let n=e.indexOf(`>>`,t);if(n===-1||/[\n\r]/.test(e.slice(t,n)))return null;let r=e.slice(t,n);return r.trim()?e1(e,t,r):null},`matchStereotypeText`),O1=v$({name:`LABEL_TEXT`,pattern:g$.NA}),k1=v$({name:`WORD`,pattern:g$.NA,categories:O1}),A1=v$({name:`NUMBER`,pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:O1}),j1=v$({name:`IDENTIFIER`,pattern:/\w+/,longer_alt:A1,categories:k1}),NMt=v$({name:`HWS`,pattern:/[\t ]+/,group:g$.SKIPPED}),M1=v$({name:`MARKDOWN_STRING`,pattern:AMt,start_chars_hint:[`"`],line_breaks:!0}),PMt=v$({name:`UNCLOSED_MARKDOWN_STRING`,pattern:/"`[^]*/,line_breaks:!0}),N1=v$({name:`COMMENT`,pattern:jMt,start_chars_hint:[`%`],line_breaks:!1}),P1=v$({name:`NEWLINE`,pattern:/\r\n|\n|\r/,line_breaks:!0}),F1=v$({name:`ACC_DESCR_BLOCK`,pattern:T1,start_chars_hint:[`a`],line_breaks:!0}),FMt=/^accTitle[\t ]*:[^\n\r]*/,IMt=/^accDescr[\t ]*:[^\n\r]*/,I1=v$({name:`ACC_TITLE_LINE`,pattern:N((e,t)=>w1(e,t,FMt),`pattern`),start_chars_hint:[`a`],line_breaks:!1}),L1=v$({name:`ACC_DESCR_LINE`,pattern:N((e,t)=>w1(e,t,IMt),`pattern`),start_chars_hint:[`a`],line_breaks:!1}),LMt=v$({name:`JSON_DECLARATION_START`,pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:`jsonBody`}),R1=v$({name:`JSON_OBJECT_LITERAL`,pattern:E1,start_chars_hint:[`{`],line_breaks:!0,pop_mode:!0}),z1=v$({name:`UNCLOSED_JSON_OBJECT_LITERAL`,pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),B1=N((e,t)=>v$({name:e,pattern:t,longer_alt:j1,categories:k1}),`keyword`),V1=B1(`USECASE`,/usecase-beta/),H1=B1(`ACTOR`,/actor/),U1=B1(`SYSTEM_BOUNDARY`,/systemBoundary/),W1=B1(`END`,/end/),G1=B1(`DIRECTION`,/direction/),K1=B1(`TD`,/TD/),q1=B1(`TB`,/TB/),J1=B1(`BT`,/BT/),Y1=B1(`LR`,/LR/),X1=B1(`RL`,/RL/),Z1=B1(`NOTE`,/note/),Q1=B1(`FOR`,/for/),$1=B1(`JSON`,/json/),e0=B1(`CLASS_DEF`,/classDef/),RMt=B1(`CLASS`,/class/),zMt=B1(`STYLE`,/style/),BMt=B1(`INCLUDE`,/include/i),VMt=B1(`EXTEND`,/extend/i),HMt=B1(`TRUE`,/true/),t0=B1(`FALSE`,/false/),UMt=v$({name:`GENERALIZATION`,pattern:/--\|>/}),WMt=v$({name:`DEPENDENCY_ARROW`,pattern:/\.\.>/}),GMt=v$({name:`STEREOTYPE_START`,pattern:/<>/,pop_mode:!0}),r0=v$({name:`STEREOTYPE_TEXT`,pattern:D1,line_breaks:!1}),KMt=v$({name:`UNCLOSED_STEREOTYPE_TEXT`,pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),qMt=v$({name:`CLASS_SEPARATOR`,pattern:/:::/}),i0=v$({name:`FORWARD_SOLID`,pattern:/--+>/}),JMt=v$({name:`BACKWARD_SOLID`,pattern:/<--+/}),a0=v$({name:`FORWARD_CIRCLE`,pattern:/--o/}),o0=v$({name:`BACKWARD_CIRCLE`,pattern:/o--/}),s0=v$({name:`FORWARD_CROSS`,pattern:/--x/}),c0=v$({name:`BACKWARD_CROSS`,pattern:/x--/}),l0=v$({name:`MARKERLESS_SOLID`,pattern:/--+/}),u0=v$({name:`METADATA_START`,pattern:/@{/}),d0=v$({name:`AT`,pattern:/@/,categories:O1}),f0=v$({name:`LBRACE`,pattern:/{/}),p0=v$({name:`RBRACE`,pattern:/}/}),m0=v$({name:`LBRACKET`,pattern:/\[/}),h0=v$({name:`RBRACKET`,pattern:/]/}),g0=v$({name:`LPAREN`,pattern:/\(/}),_0=v$({name:`RPAREN`,pattern:/\)/}),v0=v$({name:`COMMA`,pattern:/,/,categories:O1}),y0=v$({name:`COLON`,pattern:/:/,categories:O1}),YMt=v$({name:`HASH_COLOR`,pattern:/#[\dA-Fa-f]+/,categories:O1}),b0=v$({name:`PLAIN_STRING`,pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),x0=v$({name:`CSS_IDENTIFIER`,pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:O1}),S0=v$({name:`CSS_ESCAPED_COMMA`,pattern:/\\,/,categories:O1}),XMt=v$({name:`DASH`,pattern:/-/,categories:O1}),ZMt=v$({name:`DOT`,pattern:/\./,categories:O1}),C0=v$({name:`PERCENT`,pattern:/%/,categories:O1}),w0=v$({name:`CSS_PUNCTUATION`,pattern:/[!#$&*+/=?^_|~]/,categories:O1}),T0=[O1,k1,NMt,M1,PMt,N1,P1,F1,I1,L1,LMt,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,RMt,zMt,BMt,VMt,HMt,t0,UMt,WMt,GMt,qMt,i0,JMt,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,YMt,b0,x0,j1,A1,S0,XMt,ZMt,C0,w0,v$({name:`LABEL_PUNCTUATION`,pattern:/[;<>\\`]/,categories:O1}),v$({name:`LABEL_SYMBOL`,pattern:/[^\t\n\r !-~]+/,categories:O1})],QMt={defaultMode:`defaultMode`,modes:{defaultMode:[...T0],jsonBody:[R1,z1],stereotype:[n0,r0,KMt]}},$Mt=[...T0,R1,z1,n0,r0,KMt],eNt=new g$(QMt),E0=N(e=>cAt(e,O1)||e.tokenType===b0||e.tokenType===M1,`isLabelToken`),tNt={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},nNt=class extends fMt{static{N(this,`UsecaseParser`)}constructor(){super($Mt,{nodeLocationTracking:`full`}),this.RULE(`start`,()=>{this.CONSUME(V1),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE(`line`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.blankLine),`ALT`)},{ALT:N(()=>this.SUBRULE(this.commentLine),`ALT`)},{GATE:N(()=>this.isStatementStart(),`GATE`),ALT:N(()=>this.SUBRULE(this.statement),`ALT`)}])}),this.RULE(`statement`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.accTitleStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.accDescrStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.directionStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.actorStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.systemBoundaryStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.noteStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.jsonStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.classDefStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.classStatement),`ALT`)},{ALT:N(()=>this.SUBRULE(this.styleStatement),`ALT`)},{GATE:N(()=>this.isMetadataAssignment(),`GATE`),ALT:N(()=>this.SUBRULE(this.metadataAssignmentStatement),`ALT`)},{GATE:N(()=>!this.isForbiddenPlantUmlStatement(),`GATE`),ALT:N(()=>this.SUBRULE(this.entityStatement),`ALT`)}])}),this.RULE(`lineEnd`,()=>{this.OR([{ALT:N(()=>this.CONSUME(P1),`ALT`)},{ALT:N(()=>this.CONSUME(y$),`ALT`)}])}),this.RULE(`blankLine`,()=>{this.CONSUME(P1)}),this.RULE(`commentLine`,()=>{this.CONSUME(N1),this.SUBRULE(this.lineEnd)}),this.RULE(`accTitleStatement`,()=>{this.CONSUME(I1),this.SUBRULE(this.lineEnd)}),this.RULE(`accDescrStatement`,()=>{this.OR([{ALT:N(()=>this.CONSUME(L1),`ALT`)},{ALT:N(()=>this.CONSUME(F1),`ALT`)}]),this.SUBRULE(this.lineEnd)}),this.RULE(`actorStatement`,()=>{this.CONSUME(H1),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:N(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(v0),this.SUBRULE2(this.actorItem)}),`ALT`)},{ALT:N(()=>this.SUBRULE(this.relationTail),`ALT`)}])}),this.SUBRULE(this.lineEnd)}),this.RULE(`actorItem`,()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE(`actorName`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(j1),this.OPTION(()=>{this.CONSUME(g0),this.SUBRULE(this.nodeLabel),this.CONSUME(_0)})},`ALT`)},{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)}])}),this.RULE(`actorDeclarationOnly`,()=>{this.CONSUME(H1),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(v0),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE(`entityStatement`,()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE(`entityName`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(j1),this.OPTION(()=>{this.OR2([{ALT:N(()=>{this.CONSUME(g0),this.SUBRULE(this.nodeLabel),this.CONSUME(_0)},`ALT`)},{ALT:N(()=>{this.CONSUME(m0),this.SUBRULE2(this.nodeLabel),this.CONSUME(h0)},`ALT`)}])})},`ALT`)},{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE(`nodeLabel`,()=>{this.OR([{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)},{ALT:N(()=>this.AT_LEAST_ONE(()=>this.CONSUME(O1)),`ALT`)}])}),this.RULE(`useCaseMetadata`,()=>{this.SUBRULE(this.metadata)}),this.RULE(`relationTail`,()=>{this.OPTION({GATE:N(()=>this.LA(1).tokenType===j1&&this.LA(2).tokenType===d0,`GATE`),DEF:N(()=>{this.CONSUME(j1),this.CONSUME(d0)},`DEF`)}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE(`arrow`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.semanticRelation),`ALT`)},{ALT:N(()=>this.SUBRULE(this.forwardSolidOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.backwardSolidOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.markerlessSolidOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.forwardCircleOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.backwardCircleOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.forwardCrossOperator),`ALT`)},{ALT:N(()=>this.SUBRULE(this.backwardCrossOperator),`ALT`)}])}),this.RULE(`forwardSolidOperator`,()=>{this.CONSUME(i0)}),this.RULE(`backwardSolidOperator`,()=>{this.CONSUME(JMt),this.OPTION({GATE:N(()=>this.LA(0).image===`<--`&&this.hasLabeledRight([l0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(l0)},`DEF`)})}),this.RULE(`markerlessSolidOperator`,()=>{this.CONSUME(l0),this.OPTION({GATE:N(()=>this.LA(0).image===`--`&&this.hasLabeledRight([i0,l0,a0,s0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:N(()=>this.CONSUME(i0),`ALT`)},{ALT:N(()=>this.CONSUME2(l0),`ALT`)},{ALT:N(()=>this.CONSUME(a0),`ALT`)},{ALT:N(()=>this.CONSUME(s0),`ALT`)}])},`DEF`)})}),this.RULE(`forwardCircleOperator`,()=>{this.CONSUME(a0)}),this.RULE(`backwardCircleOperator`,()=>{this.CONSUME(o0),this.OPTION({GATE:N(()=>this.hasLabeledRight([l0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(l0)},`DEF`)})}),this.RULE(`forwardCrossOperator`,()=>{this.CONSUME(s0)}),this.RULE(`backwardCrossOperator`,()=>{this.CONSUME(c0),this.OPTION({GATE:N(()=>this.hasLabeledRight([l0]),`GATE`),DEF:N(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(l0)},`DEF`)})}),this.RULE(`edgeLabel`,()=>{this.OR([{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)},{ALT:N(()=>this.AT_LEAST_ONE(()=>this.CONSUME(O1)),`ALT`)}])}),this.RULE(`semanticRelation`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(WMt),this.CONSUME(y0),this.OR2([{ALT:N(()=>this.CONSUME(BMt),`ALT`)},{ALT:N(()=>this.CONSUME(VMt),`ALT`)}])},`ALT`)},{ALT:N(()=>this.CONSUME(UMt),`ALT`)}])}),this.RULE(`metadata`,()=>{this.CONSUME(u0),this.MANY(()=>this.CONSUME(P1)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(v0)),this.MANY3(()=>this.CONSUME2(P1))}),this.CONSUME(p0)}),this.RULE(`metadataProperty`,()=>{this.OR([{ALT:N(()=>this.CONSUME(j1),`ALT`)},{ALT:N(()=>this.CONSUME(b0),`ALT`)}]),this.CONSUME(y0),this.OR2([{ALT:N(()=>this.CONSUME2(j1),`ALT`)},{ALT:N(()=>this.CONSUME2(b0),`ALT`)},{ALT:N(()=>this.CONSUME(HMt),`ALT`)},{ALT:N(()=>this.CONSUME(t0),`ALT`)}])}),this.RULE(`metadataSeparator`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(v0),this.MANY(()=>this.CONSUME(P1))},`ALT`)},{ALT:N(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(P1)),this.OPTION(()=>this.CONSUME2(v0)),this.MANY2(()=>this.CONSUME3(P1))},`ALT`)}])}),this.RULE(`systemBoundaryStatement`,()=>{this.CONSUME(U1),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(W1),this.SUBRULE2(this.lineEnd)}),this.RULE(`systemBoundaryName`,()=>{this.OR([{ALT:N(()=>{this.CONSUME(j1),this.OPTION(()=>{this.OR2([{ALT:N(()=>{this.CONSUME(g0),this.SUBRULE(this.nodeLabel),this.CONSUME(_0)},`ALT`)},{ALT:N(()=>{this.CONSUME(m0),this.SUBRULE2(this.nodeLabel),this.CONSUME(h0)},`ALT`)}])})},`ALT`)},{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)}])}),this.RULE(`systemBoundaryContent`,()=>{this.MANY(()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.blankLine),`ALT`)},{ALT:N(()=>this.SUBRULE(this.commentLine),`ALT`)},{ALT:N(()=>this.SUBRULE(this.boundaryElement),`ALT`)}])})}),this.RULE(`boundaryElement`,()=>{this.OR([{ALT:N(()=>this.SUBRULE(this.actorDeclarationOnly),`ALT`)},{ALT:N(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},`ALT`)}])}),this.RULE(`metadataAssignmentStatement`,()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE(`metadataAssignmentTarget`,()=>{this.OR([{ALT:N(()=>this.CONSUME(j1),`ALT`)},{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(M1),`ALT`)}])}),this.RULE(`noteStatement`,()=>{this.CONSUME(Z1),this.CONSUME(Q1),this.CONSUME(j1),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE(`stereotype`,()=>{this.CONSUME(GMt),this.CONSUME(r0),this.CONSUME(n0)}),this.RULE(`classSuffix`,()=>{this.CONSUME(qMt),this.CONSUME(j1),this.MANY(()=>{this.CONSUME(v0),this.CONSUME2(j1)})}),this.RULE(`jsonStatement`,()=>{this.CONSUME(LMt),this.CONSUME(R1),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE(`directionStatement`,()=>{this.CONSUME(G1),this.OR([{ALT:N(()=>this.CONSUME(K1),`ALT`)},{ALT:N(()=>this.CONSUME(q1),`ALT`)},{ALT:N(()=>this.CONSUME(J1),`ALT`)},{ALT:N(()=>this.CONSUME(Y1),`ALT`)},{ALT:N(()=>this.CONSUME(X1),`ALT`)}]),this.SUBRULE(this.lineEnd)}),this.RULE(`classDefStatement`,()=>{this.CONSUME(e0),this.CONSUME(j1),this.MANY(()=>{this.CONSUME(v0),this.CONSUME2(j1)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE(`classStatement`,()=>{this.CONSUME(RMt),this.CONSUME(j1),this.MANY(()=>{this.CONSUME(v0),this.CONSUME2(j1)}),this.CONSUME3(j1),this.MANY2(()=>{this.CONSUME2(v0),this.CONSUME4(j1)}),this.SUBRULE(this.lineEnd)}),this.RULE(`styleStatement`,()=>{this.CONSUME(zMt),this.CONSUME(j1),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE(`styles`,()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(v0),this.SUBRULE2(this.styleValue)})}),this.RULE(`styleValue`,()=>{this.OR([{ALT:N(()=>this.CONSUME(k1),`ALT`)},{ALT:N(()=>this.CONSUME(x0),`ALT`)},{ALT:N(()=>{this.CONSUME(l0),this.CONSUME2(k1)},`ALT`)}]),this.CONSUME(y0),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE(`styleComponent`,()=>{this.OR([{ALT:N(()=>this.CONSUME(k1),`ALT`)},{ALT:N(()=>this.CONSUME(b0),`ALT`)},{ALT:N(()=>this.CONSUME(A1),`ALT`)},{ALT:N(()=>this.CONSUME(YMt),`ALT`)},{ALT:N(()=>this.CONSUME(x0),`ALT`)},{ALT:N(()=>this.CONSUME(S0),`ALT`)},{ALT:N(()=>this.CONSUME(XMt),`ALT`)},{ALT:N(()=>this.CONSUME(ZMt),`ALT`)},{ALT:N(()=>this.CONSUME(C0),`ALT`)},{ALT:N(()=>this.CONSUME(w0),`ALT`)},{ALT:N(()=>this.CONSUME(y0),`ALT`)},{ALT:N(()=>this.CONSUME(g0),`ALT`)},{ALT:N(()=>this.CONSUME(_0),`ALT`)},{ALT:N(()=>this.CONSUME(m0),`ALT`)},{ALT:N(()=>this.CONSUME(h0),`ALT`)},{ALT:N(()=>this.CONSUME(f0),`ALT`)},{ALT:N(()=>this.CONSUME(p0),`ALT`)},{ALT:N(()=>this.CONSUME(d0),`ALT`)},{ALT:N(()=>this.CONSUME(l0),`ALT`)}])}),this.performSelfAnalysis()}isMetadataAssignment(){let e=this.LA(1).tokenType;return(e===j1||e===b0||e===M1)&&this.LA(2).tokenType===u0}isStatementStart(){let e=this.LA(1).tokenType;return e!==y$&&e!==P1&&e!==N1}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===j1&&tNt[this.LA(1).image.toLowerCase()]===!0}hasLabeledRight(e){if(!E0(this.LA(1)))return!1;for(let t=2;;t++){let n=this.LA(t);if(e.includes(n.tokenType))return!0;if(!E0(n))return!1}}},D0=new nNt,rNt=class extends Error{constructor(e,t,n){super(`${e} (line ${t}, column ${n})`),this.line=t,this.column=n,this.name=`UsecaseJsonError`}static{N(this,`UsecaseJsonError`)}},O0=N((e,t,n,r)=>{let i=n,a=r,o=Math.min(Math.max(t,0),e.length);for(let t=0;t{let i=/\bposition (\d+)\b/u.exec(e);if(i)return O0(t,Number.parseInt(i[1],10),n,r);let a=/\bline (\d+) column (\d+)\b/u.exec(e);if(a){let e=Number.parseInt(a[1],10),t=Number.parseInt(a[2],10);return{line:n+e-1,column:e===1?r+t-1:t}}if(/unexpected end|end of json input/iu.test(e))return O0(t,t.length,n,r)},`locationFromErrorMessage`),k0=class extends Error{constructor(e){super(`Invalid JSON token`),this.offset=e}static{N(this,`JsonWalkError`)}},A0=class{constructor(e){this.text=e,this.offset=0,this.propertyOrder={}}static{N(this,`PropertyOrderCollector`)}collect(){if(this.skipWhitespace(),this.collectValue(``),this.skipWhitespace(),this.offset!==this.text.length)throw new k0(this.offset);return this.propertyOrder}collectValue(e){this.skipWhitespace();let t=this.text[this.offset];if(t===`{`)this.collectObject(e);else if(t===`[`)this.collectArray(e);else if(t===`"`)this.readString(!1);else if(t===`t`)this.consumeLiteral(`true`);else if(t===`f`)this.consumeLiteral(`false`);else if(t===`n`)this.consumeLiteral(`null`);else if(t===`-`||t>=`0`&&t<=`9`)this.consumeNumber();else throw new k0(this.offset)}collectObject(e){this.offset++;let t=[],n=new Set;if(this.propertyOrder[e]=t,this.skipWhitespace(),this.text[this.offset]===`}`){this.offset++;return}for(;this.offset=`1`&&this.text[this.offset]<=`9`)for(;this.text[this.offset]>=`0`&&this.text[this.offset]<=`9`;)this.offset++;else throw new k0(this.offset);if(this.text[this.offset]===`.`){if(this.offset++,this.text[this.offset]<`0`||this.text[this.offset]>`9`)throw new k0(this.offset);for(;this.text[this.offset]>=`0`&&this.text[this.offset]<=`9`;)this.offset++}if(this.text[this.offset]===`e`||this.text[this.offset]===`E`){if(this.offset++,(this.text[this.offset]===`+`||this.text[this.offset]===`-`)&&this.offset++,this.text[this.offset]<`0`||this.text[this.offset]>`9`)throw new k0(this.offset);for(;this.text[this.offset]>=`0`&&this.text[this.offset]<=`9`;)this.offset++}}skipWhitespace(){for(;this.offset({shape:e.type===`normal`?`actor`:e.type===`hollow`?`actor-hollow`:e.type===`awesome`?`actor-awesome`:`actor-icon`,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:`actor`,actorType:e.type,business:e.business,labelType:e.labelType,...e.icon?{icon:e.icon}:{},...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),`actorNode`),M0=N(e=>({shape:e.shape,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:`usecase`,useCaseShape:e.shape,business:e.business,labelType:e.labelType,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),`useCaseNode`),aNt=N(e=>({label:e.label,shape:`note`,attrs:{kind:`note`,target:e.target,labelType:e.labelType}}),`noteNode`),oNt=N(e=>({label:e.id,shape:`json-table`,...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:`json`,value:e.value,propertyOrder:e.propertyOrder,labelType:`text`}}),`jsonNode`),N0=N(e=>({id:e.id,source:e.source,target:e.target,...e.label?{label:e.label}:{},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{relationshipType:e.type,arrowType:e.arrowType,minlen:e.minlen,explicitId:e.explicitId,animate:e.animate,...e.animation?{animation:e.animation}:{},...e.labelType?{labelType:e.labelType}:{}}}),`relationshipEdge`),sNt=N(e=>({id:`${e.id}-edge`,source:e.id,target:e.target,attrs:{relationshipType:`note`,arrowType:r1.LINE_SOLID,pattern:`dotted`,minlen:1,explicitId:!1,animate:!1,internal:!0}}),`noteEdge`),P0=N((e,t,n,r)=>{let i={};for(let t of e.getActors().values())i[t.id]=j0(t);for(let t of e.getUseCases().values())i[t.id]=M0(t);for(let t of e.getNotes().values())i[t.id]=aNt(t);for(let t of e.getJsonNodes().values())i[t.id]=oNt(t);let a={};for(let t of e.getSystemBoundaries().values())a[t.id]={...t.label===t.id?{}:{title:t.label},nodes:[...t.members],...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:`systemBoundary`,boundaryType:t.type,labelType:t.labelType}};let o={};for(let t of e.getClassDefs().values())o[t.id]={styles:[...t.styles]};let s=e.getDirection();return{version:1,diagramType:`usecase`,source:t,header:{keyword:`usecase`,direction:s===`TD`?`TB`:s,span:n},...e.getAccTitle()?{accTitle:e.getAccTitle()}:{},...e.getAccDescription()?{accDescr:e.getAccDescription()}:{},nodes:i,edges:[...e.getRelationships().map(N0),...[...e.getNotes().values()].map(sNt)],groups:a,classDefs:o,statements:r}},`buildUsecaseGraphAST`),F0=N(e=>`line ${e.line}, column ${e.column} [${e.span[0]},${e.span[1]})`,`locationText`),cNt=N(e=>e===void 0?``:` (label "${e}")`,`labelSuffix`),I0=N(e=>e.generated?e.label:void 0,`generatedFrom`),L0=N((e,t)=>{for(let n of t)e.includes(n)||e.push(n)},`pushUnique`),R0=class{constructor(e){this.db=e,this.source=``,this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=e.createModel()}static{N(this,`UsecaseModelBuilder`)}reset(e){this.model=this.db.createModel(),this.source=e,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(e){this.elements.push(e)}addBoundary(e){this.boundaries.push(e)}addJson(e){this.jsonDrafts.push(e)}addRelationship(e){this.relationshipDrafts.push(e)}addNote(e){this.noteDrafts.push(e)}addMetadataAssignment(e,t,n,r){this.metadataAssignments.push({target:e,targetLocation:t,metadata:n,statement:r})}addClassDef(e,t){this.classDefinitions.push({ids:e,styles:t})}addClassAssignment(e,t){this.classAssignments.push({targets:e,classes:t})}addStyleAssignment(e,t,n){this.styleAssignments.push({target:e,location:t,styles:n})}setDirection(e){this.directions.push(e===`TD`?`TB`:e)}setAccTitle(e){this.model.accTitle=e}setAccDescription(e){this.model.accDescription=e}setStatements(e){this.statements=e}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(e){let t=new Map,n=new Map,r=new Map,i=new Map;for(let e of this.relationshipDrafts)this.recordFirst(i,e.source.id,e.source.location.span[0]),this.recordFirst(i,e.target.id,e.target.location.span[0]);for(let e of this.elements)this.recordFirst(i,e.id,e.location.span[0]);for(let e of this.boundaries)this.recordFirst(i,e.id,e.location.span[0]);for(let e of this.jsonDrafts)this.recordFirst(i,e.id,e.location.span[0]);let a=[...this.elements.map(e=>({offset:e.location.span[0],type:`element`,value:e})),...this.boundaries.map(e=>({offset:e.location.span[0],type:`boundary`,value:e})),...this.jsonDrafts.map(e=>({offset:e.location.span[0],type:`json`,value:e})),...this.relationshipDrafts.filter(e=>e.explicitId).map(e=>({offset:e.explicitIdLocation.span[0],type:`edge`,value:e}))].sort((e,t)=>e.offset-t.offset);for(let e of a)e.type===`element`?this.collectElement(e.value,t,n):e.type===`boundary`?this.collectBoundary(e.value,t,r):e.type===`json`?this.registerUnique(t,e.value.id,`json`,e.value.location,!1):this.registerUnique(t,e.value.explicitId,`edge`,e.value.explicitIdLocation,!1);this.materializeElements(n,i),this.materializeBoundaries(r,i),this.materializeJson(i);let o=this.materializeRelationships(t,n,i);this.reorderElements(n,i),this.applyMetadataAssignments(t,n,r,o),this.validateAndRefreshElements(n),this.refreshBoundaries(r,n),this.materializeNotes(t),this.applyClassDefinitions(),this.applyClassesAndStyles(t,o),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...t].map(([e,t])=>[e,t.kind]));let s=P0(this,this.source,e,this.statements);return this.model.ast=s,this.db.commit(this.model),s}collectElement(e,t,n){let r=t.get(e.id),i=I0({generated:e.generated,label:e.label.text});r&&r.kind!==e.kind&&this.conflict(`ID '${e.id}' is declared as both ${r.kind} and ${e.kind}`,e.location,r.location,i,I0(r)),r&&(r.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,r.location,i,I0(r));let a=n.get(e.id);if(!a){let r={kind:e.kind,id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],...e.parentId?{parentId:e.parentId,parentLocation:e.parentLocation}:{},...e.shape?{shape:e.shape}:{},...e.stereotype?{stereotype:e.stereotype,stereotypeLocation:e.location}:{}};this.applyDeclarationMetadata(r,e.metadata),n.set(e.id,r),t.set(e.id,{kind:e.kind,location:e.location,generated:e.generated,label:e.label.text});return}(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`ID '${e.id}' has conflicting labels`,e.location,a.location),e.shape&&a.shape&&e.shape!==a.shape&&this.conflict(`Use case '${e.id}' has conflicting shapes`,e.location,a.location),e.parentId&&a.parentId&&e.parentId!==a.parentId&&this.conflict(`Element '${e.id}' belongs to more than one system boundary`,e.parentLocation??e.location,a.parentLocation??a.location),e.stereotype&&a.stereotype&&e.stereotype!==a.stereotype&&this.conflict(`Element '${e.id}' has conflicting stereotypes`,e.location,a.stereotypeLocation??a.location),a.shape??=e.shape,a.parentId??=e.parentId,a.parentLocation??=e.parentLocation,a.stereotype??=e.stereotype,a.stereotypeLocation??=e.stereotype?e.location:void 0,L0(a.classes,e.classes),this.applyDeclarationMetadata(a,e.metadata)}collectBoundary(e,t,n){let r=t.get(e.id),i=I0({generated:e.generated,label:e.label.text});r&&r.kind!==`boundary`&&this.conflict(`ID '${e.id}' is declared as both ${r.kind} and boundary`,e.location,r.location,i,I0(r)),r&&(r.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,r.location,i,I0(r));let a=n.get(e.id);if(a){(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`Boundary '${e.id}' has conflicting titles`,e.location,a.location),L0(a.classes,e.classes);return}n.set(e.id,{id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],styles:[],members:[]}),t.set(e.id,{kind:`boundary`,location:e.location,generated:e.generated,label:e.label.text})}materializeElements(e,t){for(let n of[...e.values()].sort((e,n)=>(t.get(e.id)??0)-(t.get(n.id)??0)))this.setElementModel(n)}materializeBoundaries(e,t){for(let n of[...e.values()].sort((e,n)=>(t.get(e.id)??0)-(t.get(n.id)??0)))this.model.systemBoundaries.set(n.id,{id:n.id,label:n.label.text,labelType:n.label.type,type:n.type??`rect`,members:[],classes:[...n.classes],styles:[...n.styles]})}materializeJson(e){for(let t of[...this.jsonDrafts].sort((t,n)=>(e.get(t.id)??0)-(e.get(n.id)??0)))this.model.jsonNodes.set(t.id,{id:t.id,value:t.value,propertyOrder:t.propertyOrder,classes:[...t.classes],styles:[]})}materializeRelationships(e,t,n){let r=new Map,i=0;for(let a of this.relationshipDrafts){let o=this.resolveEndpoint(a.source,e,t,n),s=this.resolveEndpoint(a.target,e,t,n);this.validateRelationship(a,o,s,e);let l=a.explicitId??`edge-${i++}`,u={id:l,explicitId:!!a.explicitId,source:a.source.id,target:a.target.id,type:a.type,arrowType:a.arrowType,...a.label?{label:a.label.text,labelType:a.label.type}:{},minlen:a.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(u),r.set(l,{draft:a,relationship:u})}return this.model.relationshipCounter=i,r}resolveEndpoint(e,t,n,r){if(e.classesOnReference&&!e.declaration)throw Error(`Relationship endpoint '${e.id}' uses ::: without declaring the node at ${F0(e.location)}`);let i=t.get(e.id);return i?i.kind:(n.set(e.id,{kind:`usecase`,id:e.id,label:e.label,location:e.location,generated:e.generated,shape:`ellipse`,classes:[]}),t.set(e.id,{kind:`usecase`,location:e.location,generated:e.generated,label:e.label.text}),this.recordFirst(r,e.id,e.location.span[0]),`usecase`)}reorderElements(e,t){let n=new Map(this.model.actors),r=new Map(this.model.useCases);this.model.actors.clear(),this.model.useCases.clear();for(let i of[...e.values()].sort((e,n)=>(t.get(e.id)??0)-(t.get(n.id)??0))){!n.has(i.id)&&!r.has(i.id)&&this.setElementModel(i);let e=n.get(i.id)??this.model.actors.get(i.id),t=r.get(i.id)??this.model.useCases.get(i.id);e?this.model.actors.set(i.id,e):t&&this.model.useCases.set(i.id,t)}}applyMetadataAssignments(e,t,n,r){for(let i of this.metadataAssignments){let a=e.get(i.target);if(!a){let e=this.inferMetadataKind(i.metadata);throw Error(`Metadata target '${i.target}' is unresolved${e?` (metadata implies ${e})`:``} at ${F0(i.targetLocation)}`)}if(a.kind===`actor`||a.kind===`usecase`)this.applyStandaloneElementMetadata(t.get(i.target),i.metadata);else if(a.kind===`boundary`){let e=n.get(i.target);for(let t of i.metadata.properties)(t.key!==`type`||t.value!==`rect`&&t.value!==`package`)&&this.invalidMetadata(i.target,a.kind,t),e.type=t.value}else if(a.kind===`edge`){let e=r.get(i.target);if(!e)throw Error(`Metadata target '${i.target}' is not an explicit edge at ${F0(i.targetLocation)}`);i.statement.kind=`edgeMetadata`,i.statement.edges=[{id:i.target,span:i.statement.span,idSpan:i.targetLocation.span,...i.statement.metadata?{metadata:i.statement.metadata}:{}}],delete i.statement.nodes;for(let t of i.metadata.properties)t.key===`animate`&&typeof t.value==`boolean`?e.relationship.animate=t.value:t.key===`animation`&&(t.value===`fast`||t.value===`slow`)?(e.relationship.animation=t.value,e.relationship.animate=!0):this.invalidMetadata(i.target,a.kind,t)}else for(let e of i.metadata.properties)this.invalidMetadata(i.target,a.kind,e)}for(let{relationship:e}of r.values())e.animation&&(e.animate=!0)}applyStandaloneElementMetadata(e,t){for(let n of t.properties)e.kind===`actor`?this.applyActorProperty(e,n,!0):n.key===`business`&&typeof n.value==`boolean`?e.business=n.value:this.invalidMetadata(e.id,e.kind,n)}applyDeclarationMetadata(e,t){if(t)for(let n of t.properties)e.kind===`actor`?this.applyActorProperty(e,n,!1):n.key===`business`&&typeof n.value==`boolean`?(e.business!==void 0&&e.business!==n.value&&this.conflict(`Use case '${e.id}' has conflicting business metadata`,n.location,e.location),e.business=n.value):this.invalidMetadata(e.id,e.kind,n)}applyActorProperty(e,t,n){t.key===`type`&&(t.value===`normal`||t.value===`hollow`||t.value===`awesome`)?(!n&&e.actorType!==void 0&&e.actorType!==t.value&&this.conflict(`Actor '${e.id}' has conflicting type metadata`,t.location,e.location),e.actorType=t.value):t.key===`icon`&&typeof t.value==`string`?(!n&&e.icon!==void 0&&e.icon!==t.value&&this.conflict(`Actor '${e.id}' has conflicting icon metadata`,t.location,e.location),e.icon=t.value):t.key===`business`&&typeof t.value==`boolean`?(!n&&e.business!==void 0&&e.business!==t.value&&this.conflict(`Actor '${e.id}' has conflicting business metadata`,t.location,e.location),e.business=t.value):this.invalidMetadata(e.id,e.kind,t)}validateAndRefreshElements(e){for(let t of e.values()){let e=t.icon?`icon`:t.actorType??`normal`;if(t.kind===`actor`){if(t.icon&&t.actorType&&t.actorType!==`normal`)throw Error(`Actor '${t.id}' cannot combine icon with type '${t.actorType}' at ${F0(t.location)}`);if(t.business&&(e===`icon`||e===`awesome`))throw Error(`Business actor '${t.id}' must use normal or hollow geometry at ${F0(t.location)}`)}else if((t.shape??`ellipse`)===`rect`&&t.business)throw Error(`Rectangular use case '${t.id}' cannot be a business use case at ${F0(t.location)}`);this.setElementModel(t)}}refreshBoundaries(e,t){for(let t of e.values())t.members.length=0;for(let t of[...this.elements].sort((e,t)=>e.location.span[0]-t.location.span[0])){if(!t.parentId)continue;let n=e.get(t.parentId);if(!n)throw Error(`Parent boundary '${t.parentId}' for '${t.id}' is unresolved at ${F0(t.parentLocation??t.location)}`);n.members.includes(t.id)||n.members.push(t.id)}for(let n of t.values())if(n.parentId&&!e.has(n.parentId))throw Error(`Parent boundary '${n.parentId}' for '${n.id}' is unresolved at ${F0(n.parentLocation??n.location)}`);for(let t of e.values()){let e=this.model.systemBoundaries.get(t.id);e.type=t.type??`rect`,e.members=[...t.members],e.classes=[...t.classes],e.styles=[...t.styles]}}materializeNotes(e){let t=0;for(let n of this.noteDrafts){let r=e.get(n.target);if(!r)throw Error(`Note target '${n.target}' is unresolved at ${F0(n.targetLocation)}`);r.kind!==`actor`&&r.kind!==`usecase`&&this.conflict(`Note target '${n.target}' must be an actor or use case, not ${r.kind}`,n.targetLocation,r.location);let i=`note-${t++}`;this.model.notes.set(i,{id:i,target:n.target,label:n.label.text,labelType:n.label.type})}this.model.noteCounter=t}applyClassDefinitions(){for(let e of this.classDefinitions)for(let t of e.ids)this.model.classDefs.set(t,{id:t,styles:[...e.styles]})}applyClassesAndStyles(e,t){for(let n of this.classAssignments)for(let r of n.targets)L0(this.getStylable(r.id,e,t,r.location).classes,n.classes);for(let n of this.styleAssignments)this.getStylable(n.target,e,t,n.location).styles.push(...n.styles)}getStylable(e,t,n,r){let i=t.get(e)?.kind,a=i===`actor`?this.model.actors.get(e):i===`usecase`?this.model.useCases.get(e):i===`boundary`?this.model.systemBoundaries.get(e):i===`json`?this.model.jsonNodes.get(e):i===`edge`?n.get(e)?.relationship:void 0;if(!a)throw Error(`Class/style target '${e}' is unresolved or anonymous at ${F0(r)}`);return a}validateRelationship(e,t,n,r){let i=N(e=>e===`actor`||e===`usecase`||e===`json`,`allowed`);if(i(t)||this.conflict(`Relationship source '${e.source.id}' cannot be ${t}`,e.source.location,r.get(e.source.id).location),i(n)||this.conflict(`Relationship target '${e.target.id}' cannot be ${n}`,e.target.location,r.get(e.target.id).location),(e.type===`include`||e.type===`extend`)&&(t!==`usecase`||n!==`usecase`))throw Error(`${e.type} relationship requires use-case endpoints at ${F0(e.location)}`);if(e.type===`generalization`&&(t!==`actor`&&t!==`usecase`||t!==n))throw Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${F0(e.location)}`);if(e.type===`association`&&(t===`json`||n===`json`)&&![0,1,2].includes(e.arrowType))throw Error(`JSON relationship '${e.source.id}' to '${e.target.id}' permits only point, reversed-point, or markerless solid association at ${F0(e.location)}`)}setElementModel(e){if(e.kind===`actor`){let t=e.icon?`icon`:e.actorType??`normal`;this.model.useCases.delete(e.id),this.model.actors.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,type:t,...e.icon?{icon:e.icon}:{},business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.actors.get(e.id)?.styles??[]})}else this.model.actors.delete(e.id),this.model.useCases.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,shape:e.shape??`ellipse`,business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.useCases.get(e.id)?.styles??[]})}inferMetadataKind(e){let t=new Set([`actor`,`usecase`,`boundary`,`edge`]);for(let n of e.properties)if(n.key===`icon`)t.clear(),t.add(`actor`);else if(n.key===`animate`||n.key===`animation`)t.clear(),t.add(`edge`);else if(n.key===`type`)t.clear(),n.value===`rect`||n.value===`package`?t.add(`boundary`):(n.value===`normal`||n.value===`hollow`||n.value===`awesome`)&&t.add(`actor`);else if(n.key===`business`)t.delete(`boundary`),t.delete(`edge`);else return;return t.size===1?[...t][0]:void 0}invalidMetadata(e,t,n){throw Error(`Metadata property '${n.key}' is invalid for ${t} '${e}' at ${F0(n.location)}`)}registerUnique(e,t,n,r,i){let a=e.get(t);a&&this.conflict(`ID '${t}' is declared more than once (${a.kind} and ${n})`,r,a.location,void 0,I0(a)),e.set(t,{kind:n,location:r,generated:i})}recordFirst(e,t,n){let r=e.get(t);(r===void 0||nthis.visit(e)),r=this.nodes(e,`relationTail`)[0],i=n.map((e,n)=>this.actorOccurrence(t[n],e,!0));for(let e of n)this.builder.addElement(this.actorDraft(e));if(!r)return{kind:`node`,span:[0,0],nodes:i};let a=this.visit(r);a.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(a.target));let o=this.relationshipDraft(n[0],a,this.nodeLocation(r));this.builder.addRelationship(o);let s=o.explicitId??`edge-${this.anonymousEdge++}`;return i.push(this.entityOccurrence(this.nodes(r.children,`entityName`)[0],a.target,a.target.explicitDeclaration)),{kind:`edge`,span:[0,0],nodes:i,edges:[{id:s,span:[0,0],...o.explicitIdLocation?{idSpan:o.explicitIdLocation.span}:{},...o.label?{labelSpan:o.label.span}:{}}]}}actorItem(e){let t=this.visit(this.nodes(e,`actorName`)[0]),n=this.nodes(e,`metadata`)[0],r=this.nodes(e,`stereotype`)[0],i=this.nodes(e,`classSuffix`)[0],a=i?this.visit(i):{classes:[],spans:[]};return{...t,...n?{metadata:this.visit(n)}:{},...r?{stereotype:this.visit(r)}:{},classes:a.classes,classSpans:a.spans}}actorName(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.tokens(e,`PLAIN_STRING`)[0]??this.tokens(e,`MARKDOWN_STRING`)[0];if(t){let n=this.nodes(e,`nodeLabel`)[0],r=n?this.visit(n):this.tokenLabel(t);return{id:t.image,label:r,location:this.tokenLocation(t),generated:!1,classes:[],classSpans:[]}}let r=this.tokenLabel(n);return{id:this.generateId(r.text),label:r,location:this.tokenLocation(n),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(e){let t=this.nodes(e,`actorItem`),n=t.map(e=>this.visit(e));for(let e of n)this.builder.addElement(this.actorDraft(e));return{kind:`node`,span:[0,0],nodes:n.map((e,n)=>this.actorOccurrence(t[n],e,!0))}}entityStatement(e){let t=this.nodes(e,`entityName`),n=this.visit(t[0]),r=this.nodes(e,`relationTail`)[0];if(!r)return n.explicitDeclaration=!0,n.shape??=`ellipse`,this.builder.addElement(this.entityDraft(n)),{kind:`node`,span:[0,0],nodes:[this.entityOccurrence(t[0],n,!0)]};n.explicitDeclaration&&this.builder.addElement(this.entityDraft(n));let i=this.visit(r);i.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(i.target));let a={source:this.endpoint(n),target:this.endpoint(i.target),location:this.nodeLocation(r),...i.explicitId?{explicitId:i.explicitId,explicitIdLocation:i.explicitIdLocation}:{},...i.arrow};this.builder.addRelationship(a);let o=a.explicitId??`edge-${this.anonymousEdge++}`;return{kind:`edge`,span:[0,0],nodes:[this.entityOccurrence(t[0],n,n.explicitDeclaration),this.entityOccurrence(this.nodes(r.children,`entityName`)[0],i.target,i.target.explicitDeclaration)],edges:[{id:o,span:[0,0],...a.explicitIdLocation?{idSpan:a.explicitIdLocation.span}:{},...a.label?{labelSpan:a.label.span}:{}}]}}entityName(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.tokens(e,`PLAIN_STRING`)[0]??this.tokens(e,`MARKDOWN_STRING`)[0],r=this.nodes(e,`nodeLabel`)[0],i=this.nodes(e,`useCaseMetadata`)[0],a=this.nodes(e,`stereotype`)[0],o=this.nodes(e,`classSuffix`)[0],s=o?this.visit(o):{classes:[],spans:[]};if(t){let n=r?this.visit(r):this.tokenLabel(t),o=r?this.tokens(e,`LBRACKET`).length?`rect`:`ellipse`:void 0;return{id:t.image,label:n,location:this.tokenLocation(t),generated:!1,...o?{shape:o}:{},...i?{metadata:this.visit(i)}:{},...a?{stereotype:this.visit(a)}:{},classes:s.classes,classSpans:s.spans,explicitDeclaration:!!(o||i||a)}}let l=this.tokenLabel(n);return{id:this.generateId(l.text),label:l,location:this.tokenLocation(n),generated:!0,...i?{metadata:this.visit(i)}:{},...a?{stereotype:this.visit(a)}:{},classes:s.classes,classSpans:s.spans,explicitDeclaration:!!(i||a)}}nodeLabel(e){let t=this.allTokens(e);if(t.length===1&&(t[0].tokenType.name===`PLAIN_STRING`||t[0].tokenType.name===`MARKDOWN_STRING`))return this.tokenLabel(t[0]);let n=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return{text:this.source.slice(n[0],n[1]),type:`text`,span:n}}useCaseMetadata(e){return this.visit(this.nodes(e,`metadata`)[0])}relationTail(e){let t=this.tokens(e,`IDENTIFIER`)[0];return{...t?{explicitId:t.image,explicitIdLocation:this.tokenLocation(t)}:{},arrow:this.visit(this.nodes(e,`arrow`)[0]),target:this.visit(this.nodes(e,`entityName`)[0])}}arrow(e){return this.visit(this.firstNode(e,`semanticRelation`,`forwardSolidOperator`,`backwardSolidOperator`,`markerlessSolidOperator`,`forwardCircleOperator`,`backwardCircleOperator`,`forwardCrossOperator`,`backwardCrossOperator`))}edgeLabel(e){return this.nodeLabel(e)}semanticRelation(e){if(this.tokens(e,`GENERALIZATION`).length)return{type:`generalization`,arrowType:r1.SOLID_ARROW,minlen:1};let t=this.tokens(e,`INCLUDE`).length?`include`:`extend`,n=this.tokens(e,t===`include`?`INCLUDE`:`EXTEND`)[0];return{type:t,arrowType:r1.SOLID_ARROW,label:{text:t,type:`text`,span:this.tokenSpan(n)},minlen:1}}metadata(e){return{properties:this.nodes(e,`metadataProperty`).map(e=>this.visit(e)),location:this.ctxLocation(e)}}metadataProperty(e){let t=this.allTokens(e).filter(e=>e.tokenType.name!==`COLON`),n=t[0],r=t[1],i=r.tokenType.name===`TRUE`||r.tokenType.name!==`FALSE`&&this.decodePlain(r),a=[n.startOffset,(r.endOffset??r.startOffset)+1];return{key:this.decodePlain(n),value:i,span:a,keySpan:this.contentSpan(n),valueSpan:this.contentSpan(r),location:this.tokenLocation(n)}}metadataSeparator(e){}systemBoundaryStatement(e){let t=this.visit(this.nodes(e,`systemBoundaryName`)[0]),n=this.nodes(e,`classSuffix`)[0],r=n?this.visit(n):{classes:[],spans:[]};t.classes=r.classes,this.builder.addBoundary(t);let i=this.parentBoundary;this.parentBoundary={id:t.id,location:t.location};let a=this.nodes(e,`systemBoundaryContent`)[0],o=a?this.visit(a):[];this.parentBoundary=i;let s=this.tokens(e,`END`)[0],l=this.nodes(e,`metadata`)[0],u=l?this.visit(l):void 0,d={kind:`group`,span:[0,0],group:t.id,idSpan:t.location.span,titleSpan:t.label.span,endSpan:this.tokenSpan(s),classSpans:r.spans,...u?{metadata:u.properties.map(({key:e,span:t,keySpan:n,valueSpan:r})=>({key:e,span:t,keySpan:n,valueSpan:r}))}:{},...o.length?{children:o}:{}};return u&&this.builder.addMetadataAssignment(t.id,t.location,u,d),d}systemBoundaryName(e){let t=this.tokens(e,`IDENTIFIER`)[0];if(t){let n=this.nodes(e,`nodeLabel`)[0];return{id:t.image,label:n?this.visit(n):this.tokenLabel(t),location:this.tokenLocation(t),generated:!1,classes:[]}}let n=this.tokens(e,`PLAIN_STRING`)[0]??this.tokens(e,`MARKDOWN_STRING`)[0],r=this.tokenLabel(n);return{id:this.generateId(r.text),label:r,location:this.tokenLocation(n),generated:!0,classes:[]}}systemBoundaryContent(e){return[...this.nodes(e,`blankLine`),...this.nodes(e,`commentLine`),...this.nodes(e,`boundaryElement`)].sort((e,t)=>(e.location?.startOffset??0)-(t.location?.startOffset??0)).map(e=>this.wrap(e,this.visit(e)))}boundaryElement(e){let t=this.nodes(e,`actorDeclarationOnly`)[0];if(t)return this.visit(t);let n=this.nodes(e,`entityName`)[0],r=this.visit(n);return r.explicitDeclaration=!0,r.shape??=`ellipse`,this.builder.addElement(this.entityDraft(r)),{kind:`node`,span:[0,0],nodes:[this.entityOccurrence(n,r,!0)]}}metadataAssignmentStatement(e){let t=this.visit(this.nodes(e,`metadataAssignmentTarget`)[0]),n=this.visit(this.nodes(e,`metadata`)[0]),r={kind:`metadata`,span:[0,0],nodes:[{id:t.id,span:t.location.span,idSpan:t.location.span}],metadata:n.properties.map(({key:e,span:t,keySpan:n,valueSpan:r})=>({key:e,span:t,keySpan:n,valueSpan:r}))};return this.builder.addMetadataAssignment(t.id,t.location,n,r),r}metadataAssignmentTarget(e){let t=this.allTokens(e)[0],n=this.tokenLabel(t);return{id:t.tokenType.name===`IDENTIFIER`?t.image:this.generateId(n.text),location:this.tokenLocation(t)}}noteStatement(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.visit(this.nodes(e,`nodeLabel`)[0]);return this.builder.addNote({target:t.image,targetLocation:this.tokenLocation(t),label:n,location:this.ctxLocation(e)}),{kind:`note`,span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:n.span,nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}stereotype(e){let t=this.tokens(e,`STEREOTYPE_TEXT`)[0];return{value:t.image.trim(),span:this.tokenSpan(t)}}classSuffix(e){let t=this.tokens(e,`IDENTIFIER`);return{classes:t.map(e=>e.image),spans:t.map(e=>this.tokenSpan(e))}}jsonStatement(e){let t=this.tokens(e,`JSON_DECLARATION_START`)[0],n=this.tokens(e,`JSON_OBJECT_LITERAL`)[0],r=/^json[\t ]+(\w+)/.exec(t.image),i=r[1],a=r[0].length-i.length,o={span:[t.startOffset+a,t.startOffset+a+i.length],line:t.startLine??1,column:(t.startColumn??1)+a},s=t1(n.image,n.startLine??1,n.startColumn??1),l=this.nodes(e,`classSuffix`)[0],u=l?this.visit(l):{classes:[],spans:[]},d={id:i,value:s.value,propertyOrder:s.propertyOrder,location:o,classes:u.classes};return this.builder.addJson(d),{kind:`json`,span:[0,0],nodes:[{id:i,span:o.span,idSpan:o.span,defines:!0,classSpans:u.spans}],classSpans:u.spans}}directionStatement(e){let t=this.allTokens(e).find(e=>[`TD`,`TB`,`BT`,`RL`,`LR`].includes(e.tokenType.name));return this.builder.setDirection(t.image),{kind:`direction`,span:[0,0]}}classDefStatement(e){let t=this.tokens(e,`IDENTIFIER`),n=this.visit(this.nodes(e,`styles`)[0]);return this.builder.addClassDef(t.map(e=>e.image),n),{kind:`classDef`,span:[0,0],ref:t[0].image,refSpan:this.tokenSpan(t[0])}}classStatement(e){let t=this.tokens(e,`IDENTIFIER`),n=1;for(;n({id:e.image,location:this.tokenLocation(e)})),i=t.slice(n).map(e=>e.image);return this.builder.addClassAssignment(r,i),{kind:`classAssign`,span:[0,0],ref:i[0],refSpan:this.tokenSpan(t[n]),nodes:r.map(({id:e,location:t})=>({id:e,span:t.span,idSpan:t.span}))}}styleStatement(e){let t=this.tokens(e,`IDENTIFIER`)[0],n=this.visit(this.nodes(e,`styles`)[0]);return this.builder.addStyleAssignment(t.image,this.tokenLocation(t),n),{kind:`style`,span:[0,0],nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}styles(e){return this.nodes(e,`styleValue`).map(e=>this.visit(e))}styleValue(e){let t=this.allTokens(e),n=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return this.source.slice(n[0],n[1]).replaceAll(`\\,`,`,`)}styleComponent(e){return this.allTokens(e).map(e=>e.image).join(``)}forwardSolidOperator(e){let t=this.tokens(e,`FORWARD_SOLID`)[0];return{type:`association`,arrowType:r1.SOLID_ARROW,minlen:this.solidMinlen(t)}}backwardSolidOperator(e){let t=this.tokens(e,`BACKWARD_SOLID`)[0],n=this.nodes(e,`edgeLabel`)[0],r=n?this.tokens(e,`MARKERLESS_SOLID`).at(-1):t;return{type:`association`,arrowType:r1.BACK_ARROW,minlen:this.solidMinlen(r),...n?{label:this.visit(n)}:{}}}markerlessSolidOperator(e){let t=this.nodes(e,`edgeLabel`)[0],n=this.allTokens(e);if(!t)return{type:`association`,arrowType:r1.LINE_SOLID,minlen:this.solidMinlen(this.tokens(e,`MARKERLESS_SOLID`)[0])};let r=n.at(-1),i=r.tokenType.name===`FORWARD_SOLID`?r1.SOLID_ARROW:r.tokenType.name===`FORWARD_CIRCLE`?r1.CIRCLE_ARROW:r.tokenType.name===`FORWARD_CROSS`?r1.CROSS_ARROW:r1.LINE_SOLID;return{type:`association`,arrowType:i,label:this.visit(t),minlen:i===r1.SOLID_ARROW||i===r1.LINE_SOLID?this.solidMinlen(r):1}}forwardCircleOperator(e){return{type:`association`,arrowType:r1.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(e){let t=this.nodes(e,`edgeLabel`)[0];return{type:`association`,arrowType:r1.CIRCLE_ARROW_REVERSED,minlen:1,...t?{label:this.visit(t)}:{}}}forwardCrossOperator(e){return{type:`association`,arrowType:r1.CROSS_ARROW,minlen:1}}backwardCrossOperator(e){let t=this.nodes(e,`edgeLabel`)[0];return{type:`association`,arrowType:r1.CROSS_ARROW_REVERSED,minlen:1,...t?{label:this.visit(t)}:{}}}actorDraft(e){return{id:e.id,kind:`actor`,label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}entityDraft(e){return{id:e.id,kind:`usecase`,label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.shape?{shape:e.shape}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}endpoint(e,t=e.explicitDeclaration??!0){return{id:e.id,label:e.label,location:e.location,generated:e.generated,declaration:t,classesOnReference:e.classes.length>0}}relationshipDraft(e,t,n){return{source:this.endpoint(e,!0),target:this.endpoint(t.target),location:n,...t.explicitId?{explicitId:t.explicitId,explicitIdLocation:t.explicitIdLocation}:{},...t.arrow}}actorOccurrence(e,t,n){return{id:t.id,span:this.nodeSpan(e),idSpan:t.location.span,labelSpan:t.label.span,...n?{defines:!0}:{},...t.stereotype?{stereotypeSpan:t.stereotype.span}:{},...t.metadata?{metadata:t.metadata.properties.map(({key:e,span:t,keySpan:n,valueSpan:r})=>({key:e,span:t,keySpan:n,valueSpan:r}))}:{},...t.classSpans.length?{classSpans:t.classSpans}:{}}}entityOccurrence(e,t,n){return this.actorOccurrence(e,t,n)}wrap(e,t){if(t.kind===`blank`||t.kind===`comment`)return t;t.span=this.nodeSpan(e);for(let e of t.edges??[])e.span=t.span;return t}tokenLabel(e){let t=e.tokenType.name===`MARKDOWN_STRING`?`markdown`:`text`,n=t===`markdown`?2:+(e.tokenType.name===`PLAIN_STRING`),r=this.tokenSpan(e,n);return{text:this.source.slice(r[0],r[1]),type:t,span:r}}decodePlain(e){return e.tokenType.name===`PLAIN_STRING`?e.image.slice(1,-1):e.image}contentSpan(e){return this.tokenSpan(e,e.tokenType.name===`PLAIN_STRING`?1:e.tokenType.name===`MARKDOWN_STRING`?2:0)}generateId(e){return e.replace(/\W/g,`_`)}solidMinlen(e){return Math.max(1,(e.image.match(/-/g)?.length??2)-1)}nodeLocation(e){let t=this.allTokens(e.children)[0];return{span:this.nodeSpan(e),line:t.startLine??1,column:t.startColumn??1}}ctxLocation(e){let t=this.allTokens(e).filter(e=>e.tokenType.name!==`NEWLINE`&&e.tokenType.name!==`EOF`),n=t[0],r=t.at(-1);return{span:[n.startOffset,Math.min(this.source.length,(r.endOffset??r.startOffset+r.image.length-1)+1)],line:n.startLine??1,column:n.startColumn??1}}tokenLocation(e){let t=e.tokenType.name===`PLAIN_STRING`?1:e.tokenType.name===`MARKDOWN_STRING`?2:0;return{span:this.tokenSpan(e,t),line:e.startLine??1,column:(e.startColumn??1)+t}}nodeSpan(e){let t=this.allTokens(e.children).filter(e=>e.tokenType.name!==`NEWLINE`&&e.tokenType.name!==`EOF`),n=t[0],r=t.at(-1);if(!n||!r)throw Error(`Usecase CST node has no source token`);return[n.startOffset,Math.min(this.source.length,(r.endOffset??r.startOffset+r.image.length-1)+1)]}tokenSpan(e,t=0){return[e.startOffset+t,Math.min(this.source.length,(e.endOffset??e.startOffset+e.image.length-1)+1-t)]}nodes(e,t){return(e[t]??[]).filter(e=>`children`in e)}tokens(e,t){return(e[t]??[]).filter(e=>`tokenTypeIdx`in e)}firstNode(e,...t){for(let n of t){let t=this.nodes(e,n)[0];if(t)return t}throw Error(`Usecase CST is missing one of: ${t.join(`, `)}`)}allTokens(e){let t=[];for(let n of Object.values(e))for(let e of n)`tokenTypeIdx`in e?t.push(e):t.push(...this.allTokens(e.children));return t.sort((e,t)=>e.startOffset-t.startOffset)}},dNt=new uNt,fNt={parse:N(async e=>{C1.clear(),D0.input=[];try{hMt({diagramType:`usecase`,lexer:eNt,parser:D0,entry:N(()=>D0.start(),`entry`),visit:N(t=>dNt.build(t,e),`visit`)},e)}catch(t){C1.clear();let n=D0.errors[0];if(n){let{token:r}=n,i=n1(r.startOffset)?r.startOffset:e.length,a=n1(r.endOffset)?r.endOffset+1:i,o=n1(r.startLine)?r.startLine:e.slice(0,i).split(/\r\n|\r|\n/).length,s=Math.max(e.lastIndexOf(` +`,i-1),e.lastIndexOf(`\r`,i-1)),l=n1(r.startColumn)?r.startColumn:i-s,u=t instanceof Error?t.message:String(t);throw Error(`${u} at line ${o}, column ${l} [${i},${a})`)}throw t}},`parse`)},pNt=[`point`,`circle`,`cross`,`extension`],z0={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},mNt=N((e,t)=>{let[n,r]=[e,t].map(e=>e.replace(/[^\w-]+/g,`_`).replace(/^_+|_+$/g,``)||`element`);return`usecase-${n}-${r}`},`usecaseDomId`),hNt=N(e=>`usecase-${e.replace(/[^\w-]+/g,`_`).replace(/^_+|_+$/g,``)||`element`}`,`usecaseNodeDomId`),B0=N((e,t)=>t===`markdown`?Dh(e).map(e=>e.map(e=>e.content).join(` `)).join(` +`):e,`getAccessibleLabel`),V0=N(e=>{let t=B0(e.label??e.id,e.labelType);if(z0[e.shape]){let n=e.actorType&&e.actorType!==`normal`?`${e.actorType} `:``;return`${e.business?`business `:``}${n}actor ${t}${e.stereotype?`, stereotype ${e.stereotype}`:``}`}if(e.shape===`note`)return`Note for ${e.noteTargetLabel??e.noteTarget??``}: ${t}`;if(e.shape===`usecaseJsonTable`){let n=(e.jsonRows??[]).map(e=>`${e.accessibleKey}: ${e.value}`).join(`; `);return n?`${t}: ${n}`:t}let n=e.stereotype?`, stereotype ${e.stereotype}`:``;return`${e.business?`business `:``}use case ${t}${n}`},`getUsecaseNodeAccessibleName`),H0=N(e=>`${e.boundaryType} system boundary ${B0(e.label??e.id,e.labelType)}`,`getUsecaseBoundaryAccessibleName`),gNt=N(e=>e.relationshipType===`note`?``:`${e.relationshipType===`association`&&e.label?`association ${B0(e.label,e.labelType)}`:e.relationshipType} from ${e.sourceLabel} to ${e.targetLabel}`,`getUsecaseEdgeAccessibleName`),U0=N(e=>e.replace(/&/g,`&`).replace(//g,`>`),`escapePlainLabel`),_Nt=N(e=>e.replace(/([*[\\\]_`])/g,`\\$1`),`escapeMarkdownMarkers`),vNt=N((e,t)=>{e.diagramId=t,e.markers=[...pNt];for(let t of e.nodes){let e=t;if(e.domId=hNt(t.id),t.label!==void 0&&t.labelType===`text`&&(t.label=U0(t.label)),t.stereotype&&=U0(t.stereotype),!t.isGroup&&t.shape===`usecaseJsonTable`&&(t.jsonRows=t.jsonRows?.map(e=>({...e,key:U0(e.key),value:U0(e.value)}))),!t.isGroup&&(t.shape===`usecaseEllipse`||t.shape===`rect`)&&t.stereotype){let n=t.label??U0(t.id);t.label=`\xAB${_Nt(t.stereotype)}\xBB
    ${t.labelType===`text`?_Nt(n):n}`,t.labelType=`markdown`,e.hasFoldedStereotype=!0,delete t.stereotype}}for(let t of e.edges)t.label!==void 0&&t.labelType===`text`&&(t.label=U0(t.label));return e},`prepareUsecaseLayoutData`),yNt=N((e,t,n)=>{for(let r of t.nodes){let i=typeof r.domId==`string`?r.domId:mNt(t.diagramId,r.id),a=e.select(`#${i}`),o=r.isGroup?`boundary`:z0[r.shape]?`actor`:r.shape===`note`?`note`:r.shape===`usecaseJsonTable`?`json`:`usecase`,s=n.nodes.get(r.id)??r.id;if(a.attr(`data-usecase-id`,r.id).attr(`data-usecase-kind`,o).attr(`role`,`img`).attr(`aria-label`,s),!r.isGroup&&(r.shape===`usecaseEllipse`||r.shape===`rect`)&&`hasFoldedStereotype`in r&&r.hasFoldedStereotype===!0){let e=a.node(),t=e?.querySelector(`.nodeLabel`),n=t?.querySelector(`p`)??t,r=n?.firstChild;if(n&&r?.nodeType===3){let e=n.ownerDocument.createElement(`span`);e.className=`usecase-stereotype`,n.insertBefore(e,r),e.appendChild(r)}else e?.querySelector(`.label tspan tspan, .label tspan`)?.classList.add(`usecase-stereotype`)}}let r=new Map(t.edges.map(e=>[e.id,e]));e.selectAll(`path[data-et="edge"]`).each(function(){let e=r.get(this.getAttribute(`data-id`)??``);if(!e)return;let i=Bc(this);i.attr(`id`,mNt(t.diagramId,e.id)).attr(`data-usecase-id`,e.id).attr(`data-usecase-kind`,e.internal?`note-connector`:`relationship`),e.internal?i.attr(`aria-hidden`,`true`):i.attr(`role`,`img`).attr(`aria-label`,n.edges.get(e.id)??e.id)})},`annotateUsecaseElements`),bNt=N((e,t)=>{e.style(`--mermaid-usecase-actor-font-size`,`${t.actorFontSize}px`).style(`--mermaid-usecase-actor-font-family`,t.actorFontFamily).style(`--mermaid-usecase-actor-font-weight`,t.actorFontWeight).style(`--mermaid-usecase-font-size`,`${t.usecaseFontSize}px`).style(`--mermaid-usecase-font-family`,t.usecaseFontFamily).style(`--mermaid-usecase-font-weight`,t.usecaseFontWeight)},`applyUsecaseFonts`),xNt={draw:N(async(e,t,n,r)=>{P.info(`Drawing usecase diagram (unified)`,t);let{layout:i}=bs(),a=r.db,o=a.getData(),s=new Map(o.nodes.map(e=>[e.id,B0(e.label??e.id,e.labelType)])),l={nodes:new Map(o.nodes.map(e=>[e.id,e.isGroup?H0(e):V0(e.shape===`note`?{...e,noteTargetLabel:s.get(e.noteTarget??``)}:e)])),edges:new Map(o.edges.map(e=>[e.id,gNt({...e,sourceLabel:s.get(e.source)??e.sourceLabel,targetLabel:s.get(e.target)??e.targetLabel})]))},u=qN(t,o.config.securityLevel);o.layoutAlgorithm=HM(i),vNt(o,t),bNt(u,o),await VM(o,u),yNt(u,o,l);let d=o.diagramPadding;Wm.insertTitle(u,`usecaseDiagramTitleText`,0,a.getDiagramTitle?.()??``),YN(u,d,`usecaseDiagram`,o.useMaxWidth),bNt(u,o)},`draw`)},SNt=N(e=>({actorBkg:e.usecaseActorBkg??e.actorBkg??e.mainBkg,actorBorder:e.usecaseActorBorder??e.actorBorder??e.primaryColor,bkg:e.usecaseBkg??e.mainBkg,border:e.usecaseBorder??e.nodeBorder??e.primaryColor,boundaryBkg:e.usecaseBoundaryBkg??e.clusterBkg,boundaryBorder:e.usecaseBoundaryBorder??e.clusterBorder,includeLine:e.usecaseIncludeLine??e.lineColor,extendLine:e.usecaseExtendLine??e.lineColor}),`roleColors`),W0=N(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!Hh(t,r))return``;let i=Xo().usecase?.colorScheme===`rotate`,a=Uh(e.look),o=a===`handDrawn`,s=Vh(n),l=``;for(let e=0;e{let t=fNt(e),n=Mh(e.look)===`handDrawn`;return` - ${pNt(e)} + `)}return l},`genColor`),CNt={parser:fNt,db:C1,renderer:xNt,styles:N(e=>{let t=SNt(e),n=Uh(e.look)===`handDrawn`;return` + ${W0(e)} & .usecase-actor { color: ${e.actorTextColor??e.primaryTextColor}; } @@ -3922,15 +3924,15 @@ ${n?``:` tie with it -- on a tie the later stylesheet would win, which is how neo took this in the first place. Skipped under handDrawn, where roughjs draws paths and neither element exists. */ - & [data-look="${Mh(e.look)}"].node.usecase-element ellipse, - & [data-look="${Mh(e.look)}"].node.usecase-element rect { + & [data-look="${Uh(e.look)}"].node.usecase-element ellipse, + & [data-look="${Uh(e.look)}"].node.usecase-element rect { fill: ${t.bkg}; stroke: ${t.border}; } /* The business marker is a \`\`, so it loses to \`[data-look="neo"].node path\` the same way. No \`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */ - & [data-look="${Mh(e.look)}"].node.usecase-element .usecase-business-marker { + & [data-look="${Uh(e.look)}"].node.usecase-element .usecase-business-marker { stroke: ${t.border}; } `} @@ -4054,8 +4056,8 @@ ${n?``:` fill: ${e.mainBkg}; stroke: ${e.lineColor}; } -`},`getStyles`)}})),gNt=l({diagram:()=>BNt});function _Nt(){return As()[`wardley-beta`]}function Y0(e,t,n,r,i,a,o,s,l){e2.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:l})}function vNt(e,t,n=!1,r,i){e2.addLink({source:e,target:t,dashed:n,label:r,flow:i})}function yNt(e,t,n){e2.addTrend({nodeId:e,targetX:t,targetY:n})}function bNt(e,t,n){e2.addAnnotation({number:e,coordinates:t,text:n})}function xNt(e,t,n){e2.addNote({text:e,x:t,y:n})}function SNt(e,t,n){e2.addAccelerator({name:e,x:t,y:n})}function X0(e,t,n){e2.addDeaccelerator({name:e,x:t,y:n})}function CNt(e,t){e2.setAnnotationsBox(e,t)}function wNt(e,t){e2.setSize(e,t)}function TNt(e){e2.startPipeline(e)}function ENt(e,t){e2.addPipelineComponent(e,t)}function DNt(e){e2.setAxes(e)}function ONt(e){return e2.getNode(e)}function kNt(e){return e2.resolveNodeId(e)}function Z0(){return e2.build()}function ANt(){e2.clear(),Ss()}var Q0,$0,jNt,MNt,NNt,PNt,FNt,e2,INt,LNt,RNt,zNt,BNt,VNt=o((()=>{sP(),kp(),Gm(),Ls(),ar(),tr(),iW(),Q0=N((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),$0=N((e,t,n)=>({x:Q0(t,`${n} evolution`),y:Q0(e,`${n} visibility`)}),`toCoordinates`),jNt=N(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),MNt=N(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),NNt=N((e,t)=>{if(oP(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=$0(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=$0(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=$0(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=Q0(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=jNt(e.fromPort)??jNt(e.toPort),{flow:i,label:a}=MNt(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=Q0(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=$0(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=$0(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=$0(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=$0(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),PNt={parser:{yy:void 0},parse:N(async e=>{let t=await eW(`wardley`,e);P.debug(t);let n=PNt.parser?.yy;if(!n||typeof n.addNode!=`function`)throw 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.`);NNt(t,n)},`parse`)},FNt=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={}}static{N(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.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:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.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,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}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}},e2=new FNt,N(_Nt,`getConfig`),N(Y0,`addNode`),N(vNt,`addLink`),N(yNt,`addTrend`),N(bNt,`addAnnotation`),N(xNt,`addNote`),N(SNt,`addAccelerator`),N(X0,`addDeaccelerator`),N(CNt,`setAnnotationsBox`),N(wNt,`setSize`),N(TNt,`startPipeline`),N(ENt,`addPipelineComponent`),N(DNt,`updateAxes`),N(ONt,`getNode`),N(kNt,`resolveNodeId`),N(Z0,`getWardleyData`),N(ANt,`clear`),INt={getConfig:_Nt,addNode:Y0,addLink:vNt,addTrend:yNt,addAnnotation:bNt,addNote:xNt,addAccelerator:SNt,addDeaccelerator:X0,setAnnotationsBox:CNt,setSize:wNt,startPipeline:TNt,addPipelineComponent:ENt,updateAxes:DNt,getNode:ONt,resolveNodeId:kNt,getWardleyData:Z0,clear:ANt,setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,getAccDescription:Es,setAccDescription:Ts},LNt=[`Genesis`,`Custom Built`,`Product`,`Commodity`],RNt=N(()=>{let{themeVariables:e}=As();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),zNt=N(()=>{let e=As()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),BNt={parser:PNt,db:INt,renderer:{draw:N((e,t,n,r)=>{P.debug(`Rendering Wardley map -`+e);let i=zNt(),a=RNt(),o=i.nodeRadius*1.6,s=r.db,l=s.getWardleyData(),u=s.getDiagramTitle(),d=l.size?.width??i.width,f=l.size?.height??i.height,p=Op(t);p.selectAll(`*`).remove(),_s(p,f,d,i.useMaxWidth),p.attr(`viewBox`,`0 0 ${d} ${f}`);let m=p.append(`g`).attr(`class`,`wardley-map`),h=p.append(`defs`);h.append(`marker`).attr(`id`,`arrow-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.evolutionStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-end-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-start-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),m.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,d).attr(`height`,f).attr(`fill`,a.backgroundColor);let g=d-i.padding*2,_=f-i.padding*2;u&&m.append(`text`).attr(`class`,`wardley-title`).attr(`x`,d/2).attr(`y`,i.padding/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(u);let v=N(e=>i.padding+e/100*g,`projectX`),y=N(e=>f-i.padding-e/100*_,`projectY`),b=m.append(`g`).attr(`class`,`wardley-axes`);b.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1),b.append(`line`).attr(`x1`,i.padding).attr(`x2`,i.padding).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1);let x=l.axes.xLabel??`Evolution`,S=l.axes.yLabel??`Visibility`;b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,i.padding+g/2).attr(`y`,f-i.padding/4).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(x),b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,i.padding/3).attr(`y`,i.padding+_/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${i.padding/3} ${i.padding+_/2})`).text(S);let C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:LNt;if(C.length>0){let e=m.append(`g`).attr(`class`,`wardley-stages`),t=l.axes.stageBoundaries,n=[];if(t&&t.length===C.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/C.length;C.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}C.forEach((t,r)=>{let o=n[r],s=i.padding+o.start*g,l=(s+(i.padding+o.end*g))/2;r>0&&e.append(`line`).attr(`x1`,s).attr(`x2`,s).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,l).attr(`y`,f-i.padding/1.5).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(i.showGrid){let e=m.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=i.padding+g*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding-_*n).attr(`y2`,f-i.padding-_*n).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`)}}let w=new Map;if(l.nodes.forEach(e=>{w.set(e.id,{x:v(e.x),y:y(e.y),node:e})}),l.pipelines.length>0){let e=m.append(`g`).attr(`class`,`wardley-pipelines`),t=m.append(`g`).attr(`class`,`wardley-pipeline-links`);l.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:w.get(e),node:l.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e{let t=w.get(e);t&&(s=Math.min(s,t.x),u=Math.max(u,t.x),d=t.y)}),s!==1/0&&u!==-1/0){let t=i.nodeRadius*4,r=d-t/2,l=w.get(n.nodeId);l&&(l.x=(s+u)/2,l.y=r-o/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,s-15).attr(`y`,r).attr(`width`,u-s+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let T=m.append(`g`).attr(`class`,`wardley-links`),E=new Map;l.pipelines.forEach(e=>{E.set(e.nodeId,new Set(e.componentIds))});let D=l.links.filter(e=>!(!w.has(e.source)||!w.has(e.target)||E.get(e.target)?.has(e.source)));T.selectAll(`line`).data(D).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.x+a/u*r}).attr(`y1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.y+s/u*r}).attr(`x2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.x+a/u*r}).attr(`y2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.y+s/u*r}).attr(`stroke`,a.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${t})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${t})`:null),T.selectAll(`text`).data(D.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,a.axisTextColor).attr(`font-size`,i.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),l=o/s,u=-a/s,d=r+l*8,f=i+u*8,p=Math.atan2(o,a)*180/Math.PI;return(p>90||p<-90)&&(p+=180),`rotate(${p} ${d} ${f})`}).text(e=>e.label);let O=m.append(`g`).attr(`class`,`wardley-trends`),k=l.trends.map(e=>{let t=w.get(e.nodeId);if(!t)return null;let n=v(e.targetX),r=y(e.targetY),a=n-t.x,o=r-t.y,s=Math.sqrt(a*a+o*o),l=i.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>l?n-a/s*l:n,adjustedY2:s>l?r-o/s*l:r}}).filter(e=>e!==null);O.selectAll(`line`).data(k).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,a.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${t})`);let A=m.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(l.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));A.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let j=A.filter(e=>e.sourceStrategy===`market`);j.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1);let M=i.nodeRadius*.7,ee=i.nodeRadius*1.2;if(j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x).attr(`y1`,e=>w.get(e.id).y-ee).attr(`x2`,e=>w.get(e.id).x-ee*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x-ee*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x+ee*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x+ee*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x).attr(`y2`,e=>w.get(e.id).y-ee).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y-ee).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x-ee*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x+ee*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),A.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>w.get(e.id).x-o/2).attr(`y`,e=>w.get(e.id).y-o/2).attr(`width`,o).attr(`height`,o).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y+n/2}).attr(`stroke`,a.componentStroke).attr(`stroke-width`,6),A.append(`text`).attr(`x`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?a.evolutionStroke:e.className===`anchor`?`#000`:a.componentLabelColor).attr(`font-size`,i.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),l.annotations.length>0){let e=m.append(`g`).attr(`class`,`wardley-annotations`);if(l.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:v(e.x),y:y(e.y)}));if(n.length>1)for(let t=0;t{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),l.annotationsBox){let t=v(l.annotationsBox.x),n=y(l.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),o=[...l.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),s=[];if(o.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);s.push(o)}),s.length>0){let e=0,l=0;s.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();l=Math.max(l,i.height)});let u=e+20+105,p=o.length*16+20+l/2,m=i.padding,h=d-i.padding-u,g=i.padding,_=f-i.padding-p;t=Math.max(m,Math.min(t,h)),n=Math.max(g,Math.min(n,_)),s.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,u).attr(`height`,p).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(l.notes.length>0){let e=m.append(`g`).attr(`class`,`wardley-notes`);l.notes.forEach(t=>{let n=v(t.x),r=y(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(l.accelerators.length>0){let e=m.append(`g`).attr(`class`,`wardley-accelerators`);l.accelerators.forEach(t=>{let n=v(t.x),r=y(t.y),i=` +`},`getStyles`)}})),TNt=l({diagram:()=>YNt});function ENt(){return bs()[`wardley-beta`]}function DNt(e,t,n,r,i,a,o,s,l){X0.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:l})}function G0(e,t,n=!1,r,i){X0.addLink({source:e,target:t,dashed:n,label:r,flow:i})}function ONt(e,t,n){X0.addTrend({nodeId:e,targetX:t,targetY:n})}function kNt(e,t,n){X0.addAnnotation({number:e,coordinates:t,text:n})}function ANt(e,t,n){X0.addNote({text:e,x:t,y:n})}function jNt(e,t,n){X0.addAccelerator({name:e,x:t,y:n})}function MNt(e,t,n){X0.addDeaccelerator({name:e,x:t,y:n})}function NNt(e,t){X0.setAnnotationsBox(e,t)}function PNt(e,t){X0.setSize(e,t)}function K0(e){X0.startPipeline(e)}function FNt(e,t){X0.addPipelineComponent(e,t)}function q0(e){X0.setAxes(e)}function INt(e){return X0.getNode(e)}function LNt(e){return X0.resolveNodeId(e)}function RNt(){return X0.build()}function zNt(){X0.clear(),fs()}var J0,Y0,BNt,VNt,HNt,UNt,WNt,X0,GNt,KNt,qNt,JNt,YNt,XNt=o((()=>{sP(),kp(),qm(),Os(),er(),Zn(),nW(),J0=N((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),Y0=N((e,t,n)=>({x:J0(t,`${n} evolution`),y:J0(e,`${n} visibility`)}),`toCoordinates`),BNt=N(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),VNt=N(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),HNt=N((e,t)=>{if(oP(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=Y0(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=Y0(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=Y0(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=J0(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=BNt(e.fromPort)??BNt(e.toPort),{flow:i,label:a}=VNt(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=J0(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=Y0(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=Y0(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=Y0(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=Y0(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),UNt={parser:{yy:void 0},parse:N(async e=>{let t=await QU(`wardley`,e);P.debug(t);let n=UNt.parser?.yy;if(!n||typeof n.addNode!=`function`)throw 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.`);HNt(t,n)},`parse`)},WNt=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={}}static{N(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.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:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.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,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}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}},X0=new WNt,N(ENt,`getConfig`),N(DNt,`addNode`),N(G0,`addLink`),N(ONt,`addTrend`),N(kNt,`addAnnotation`),N(ANt,`addNote`),N(jNt,`addAccelerator`),N(MNt,`addDeaccelerator`),N(NNt,`setAnnotationsBox`),N(PNt,`setSize`),N(K0,`startPipeline`),N(FNt,`addPipelineComponent`),N(q0,`updateAxes`),N(INt,`getNode`),N(LNt,`resolveNodeId`),N(RNt,`getWardleyData`),N(zNt,`clear`),GNt={getConfig:ENt,addNode:DNt,addLink:G0,addTrend:ONt,addAnnotation:kNt,addNote:ANt,addAccelerator:jNt,addDeaccelerator:MNt,setAnnotationsBox:NNt,setSize:PNt,startPipeline:K0,addPipelineComponent:FNt,updateAxes:q0,getNode:INt,resolveNodeId:LNt,getWardleyData:RNt,clear:zNt,setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,getAccDescription:gs,setAccDescription:hs},KNt=[`Genesis`,`Custom Built`,`Product`,`Commodity`],qNt=N(()=>{let{themeVariables:e}=bs();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),JNt=N(()=>{let e=bs()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),YNt={parser:UNt,db:GNt,renderer:{draw:N((e,t,n,r)=>{P.debug(`Rendering Wardley map +`+e);let i=JNt(),a=qNt(),o=i.nodeRadius*1.6,s=r.db,l=s.getWardleyData(),u=s.getDiagramTitle(),d=l.size?.width??i.width,f=l.size?.height??i.height,p=Op(t);p.selectAll(`*`).remove(),ls(p,f,d,i.useMaxWidth),p.attr(`viewBox`,`0 0 ${d} ${f}`);let m=p.append(`g`).attr(`class`,`wardley-map`),h=p.append(`defs`);h.append(`marker`).attr(`id`,`arrow-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.evolutionStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-end-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-start-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),m.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,d).attr(`height`,f).attr(`fill`,a.backgroundColor);let g=d-i.padding*2,_=f-i.padding*2;u&&m.append(`text`).attr(`class`,`wardley-title`).attr(`x`,d/2).attr(`y`,i.padding/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(u);let v=N(e=>i.padding+e/100*g,`projectX`),y=N(e=>f-i.padding-e/100*_,`projectY`),b=m.append(`g`).attr(`class`,`wardley-axes`);b.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1),b.append(`line`).attr(`x1`,i.padding).attr(`x2`,i.padding).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1);let x=l.axes.xLabel??`Evolution`,S=l.axes.yLabel??`Visibility`;b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,i.padding+g/2).attr(`y`,f-i.padding/4).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(x),b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,i.padding/3).attr(`y`,i.padding+_/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${i.padding/3} ${i.padding+_/2})`).text(S);let C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:KNt;if(C.length>0){let e=m.append(`g`).attr(`class`,`wardley-stages`),t=l.axes.stageBoundaries,n=[];if(t&&t.length===C.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/C.length;C.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}C.forEach((t,r)=>{let o=n[r],s=i.padding+o.start*g,l=(s+(i.padding+o.end*g))/2;r>0&&e.append(`line`).attr(`x1`,s).attr(`x2`,s).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,l).attr(`y`,f-i.padding/1.5).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(i.showGrid){let e=m.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=i.padding+g*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding-_*n).attr(`y2`,f-i.padding-_*n).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`)}}let w=new Map;if(l.nodes.forEach(e=>{w.set(e.id,{x:v(e.x),y:y(e.y),node:e})}),l.pipelines.length>0){let e=m.append(`g`).attr(`class`,`wardley-pipelines`),t=m.append(`g`).attr(`class`,`wardley-pipeline-links`);l.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:w.get(e),node:l.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e{let t=w.get(e);t&&(s=Math.min(s,t.x),u=Math.max(u,t.x),d=t.y)}),s!==1/0&&u!==-1/0){let t=i.nodeRadius*4,r=d-t/2,l=w.get(n.nodeId);l&&(l.x=(s+u)/2,l.y=r-o/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,s-15).attr(`y`,r).attr(`width`,u-s+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let T=m.append(`g`).attr(`class`,`wardley-links`),E=new Map;l.pipelines.forEach(e=>{E.set(e.nodeId,new Set(e.componentIds))});let D=l.links.filter(e=>!(!w.has(e.source)||!w.has(e.target)||E.get(e.target)?.has(e.source)));T.selectAll(`line`).data(D).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.x+a/u*r}).attr(`y1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.y+s/u*r}).attr(`x2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.x+a/u*r}).attr(`y2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.y+s/u*r}).attr(`stroke`,a.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${t})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${t})`:null),T.selectAll(`text`).data(D.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,a.axisTextColor).attr(`font-size`,i.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),l=o/s,u=-a/s,d=r+l*8,f=i+u*8,p=Math.atan2(o,a)*180/Math.PI;return(p>90||p<-90)&&(p+=180),`rotate(${p} ${d} ${f})`}).text(e=>e.label);let O=m.append(`g`).attr(`class`,`wardley-trends`),k=l.trends.map(e=>{let t=w.get(e.nodeId);if(!t)return null;let n=v(e.targetX),r=y(e.targetY),a=n-t.x,o=r-t.y,s=Math.sqrt(a*a+o*o),l=i.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>l?n-a/s*l:n,adjustedY2:s>l?r-o/s*l:r}}).filter(e=>e!==null);O.selectAll(`line`).data(k).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,a.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${t})`);let A=m.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(l.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));A.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let j=A.filter(e=>e.sourceStrategy===`market`);j.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1);let M=i.nodeRadius*.7,ee=i.nodeRadius*1.2;if(j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x).attr(`y1`,e=>w.get(e.id).y-ee).attr(`x2`,e=>w.get(e.id).x-ee*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x-ee*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x+ee*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x+ee*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x).attr(`y2`,e=>w.get(e.id).y-ee).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y-ee).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x-ee*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x+ee*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+ee*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),A.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>w.get(e.id).x-o/2).attr(`y`,e=>w.get(e.id).y-o/2).attr(`width`,o).attr(`height`,o).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y+n/2}).attr(`stroke`,a.componentStroke).attr(`stroke-width`,6),A.append(`text`).attr(`x`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?a.evolutionStroke:e.className===`anchor`?`#000`:a.componentLabelColor).attr(`font-size`,i.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),l.annotations.length>0){let e=m.append(`g`).attr(`class`,`wardley-annotations`);if(l.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:v(e.x),y:y(e.y)}));if(n.length>1)for(let t=0;t{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),l.annotationsBox){let t=v(l.annotationsBox.x),n=y(l.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),o=[...l.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),s=[];if(o.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);s.push(o)}),s.length>0){let e=0,l=0;s.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();l=Math.max(l,i.height)});let u=e+20+105,p=o.length*16+20+l/2,m=i.padding,h=d-i.padding-u,g=i.padding,_=f-i.padding-p;t=Math.max(m,Math.min(t,h)),n=Math.max(g,Math.min(n,_)),s.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,u).attr(`height`,p).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(l.notes.length>0){let e=m.append(`g`).attr(`class`,`wardley-notes`);l.notes.forEach(t=>{let n=v(t.x),r=y(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(l.accelerators.length>0){let e=m.append(`g`).attr(`class`,`wardley-accelerators`);l.accelerators.forEach(t=>{let n=v(t.x),r=y(t.y),i=` M ${n} ${r-15} L ${n+60-20} ${r-15} L ${n+60-20} ${r-15-8} @@ -4073,7 +4075,7 @@ ${n?``:` L ${n+20} ${r+15} L ${n+60} ${r+15} Z - `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+30).attr(`y`,r+15+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}},`draw`)},styles:N(({wardley:e}={})=>{let t=Rm(Rm(No(),ns().themeVariables).wardley,e);return` + `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+30).attr(`y`,r+15+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}},`draw`)},styles:N(({wardley:e}={})=>{let t=Bm(Bm(wo(),Xo().themeVariables).wardley,e);return` .wardley-background { fill: ${t.backgroundColor}; } @@ -4131,7 +4133,7 @@ ${n?``:` .wardley-notes text { fill: ${t.axisTextColor}; } - `},`styles`)}})),HNt=l({diagram:()=>QNt});function t2(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function UNt(e){let t=0;for(let n=0;n{sP(),kp(),Gm(),Ls(),ar(),tr(),iW(),KNt=N(()=>({domains:new Map,transitions:[]}),`createDefaultData`),a2=KNt(),o2={getDomains:N(()=>a2.domains,`getDomains`),getTransitions:N(()=>a2.transitions,`getTransitions`),setDomains:N(e=>{if(e)for(let t of e){let e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));a2.domains.set(e,{name:e,items:n})}},`setDomains`),setTransitions:N(e=>{e&&(a2.transitions=e.filter(e=>e.from!==e.to||(P.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1)).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},`setTransitions`),getConfig:N(()=>Rm({...Wo.cynefin,...ns().cynefin}),`getConfig`),clear:N(()=>{Ss(),a2=KNt()},`clear`),setAccTitle:Cs,getAccTitle:ws,setDiagramTitle:Ds,getDiagramTitle:Os,getAccDescription:Es,setAccDescription:Ts},qNt=N(e=>{oP(e,o2),o2.setDomains(e.domains),o2.setTransitions(e.transitions)},`populate`),JNt={parse:N(async e=>{let t=await eW(`cynefin`,e);P.debug(t),qNt(t)},`parse`)},N(t2,`seededRandom`),N(UNt,`hashString`),N(WNt,`resolveSeed`),N(GNt,`generateFoldPath`),N(n2,`generateHorizontalBoundary`),N(r2,`generateCliffPath`),N(i2,`generateConfusionPath`),s2={complex:{model:`Probe → Sense → Respond`,practice:`Emergent Practices`},complicated:{model:`Sense → Analyse → Respond`,practice:`Good Practices`},clear:{model:`Sense → Categorise → Respond`,practice:`Best Practices`},chaotic:{model:`Act → Sense → Respond`,practice:`Novel Practices`},confusion:{model:``,practice:`Disorder`}},YNt=N((e,t)=>{let n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:n*.7,y:r*.7,w:n*.6,h:r*.6}}},`getDomainLayouts`),XNt=N(()=>Rm(No(),ns().themeVariables).cynefin,`getCynefinDomainColors`),c2=3,l2={draw:N((e,t,n,r)=>{let i=r.db,a=i.getDomains(),o=i.getTransitions(),s=i.getDiagramTitle(),l=i.getAccTitle(),u=i.getAccDescription(),d=i.getConfig(),f=XNt();P.debug(`Rendering Cynefin diagram`);let p=d.width,m=d.height,h=d.padding,g=d.showDomainDescriptions,_=d.boundaryAmplitude,v=p+h*2,y=m+h*2,b={complex:f.complexBg,complicated:f.complicatedBg,clear:f.clearBg,chaotic:f.chaoticBg,confusion:f.confusionBg},x=Op(t);_s(x,y,v,d.useMaxWidth??!0),x.attr(`viewBox`,`0 0 ${v} ${y}`),l&&x.append(`title`).text(l),u&&x.append(`desc`).text(u);let S=x.append(`g`).attr(`transform`,`translate(${h}, ${h})`),C=YNt(p,m),w=WNt(d.seed,t),T=S.append(`g`).attr(`class`,`cynefin-backgrounds`),E=[`complex`,`complicated`,`chaotic`,`clear`];for(let e of E){let t=C[e];T.append(`rect`).attr(`class`,`cynefinDomain`).attr(`x`,t.x).attr(`y`,t.y).attr(`width`,t.w).attr(`height`,t.h).attr(`fill`,b[e]).attr(`fill-opacity`,.4).attr(`stroke`,`none`)}let D=S.append(`g`).attr(`class`,`cynefin-boundaries`);D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,GNt(p,m,w,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,n2(p,m,w+100,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinCliff`).attr(`d`,r2(p,m)).attr(`fill`,`none`);let O=p*.15,k=m*.15;S.append(`path`).attr(`class`,`cynefinConfusion`).attr(`d`,i2(p/2,m/2,O,k)).attr(`fill`,b.confusion).attr(`fill-opacity`,.5);let A=S.append(`g`).attr(`class`,`cynefin-labels`);for(let e of E){let t=C[e];A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,t.cx).attr(`y`,g?t.cy-30:t.cy).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(e.charAt(0).toUpperCase()+e.slice(1))}if(A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,p/2).attr(`y`,g?m/2-10:m/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(`Confusion`),g){let e=S.append(`g`).attr(`class`,`cynefin-subtitles`);for(let t of E){let n=C[t],r=s2[t];e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy-10).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.model),e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy+5).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.practice)}e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,p/2).attr(`y`,m/2+8).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s2.confusion.practice)}let j=S.append(`g`).attr(`class`,`cynefin-items`);for(let e of[`complex`,`complicated`,`chaotic`,`clear`,`confusion`]){let t=a.get(e);if(!t||t.items.length===0)continue;let n=C[e],r=e===`confusion`,i=t.items,o=0;r&&t.items.length>c2&&(o=t.items.length-c2,i=t.items.slice(0,c2));let s;if(r){let e=g?22:14;s=n.cy+e}else s=n.cy+(g?25:15);if([...i].forEach((t,r)=>{let i=s+r*30,a=j.append(`g`),o=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(t.label),l=t.label.length*7,u=o.node();if(u&&typeof u.getBBox==`function`){let e=u.getBBox();e.width>0&&(l=e.width)}let d=l+20,f=n.cx-d/2;a.attr(`transform`,`translate(${f}, ${i})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItem`).attr(`x`,0).attr(`y`,0).attr(`width`,d).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.95),o.attr(`x`,d/2).attr(`y`,13)}),o>0){let t=s+i.length*30,r=`+${o} more`,a=j.append(`g`),l=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(r),u=r.length*7,d=l.node();if(d&&typeof d.getBBox==`function`){let e=d.getBBox();e.width>0&&(u=e.width)}let f=u+20,p=n.cx-f/2;a.attr(`transform`,`translate(${p}, ${t})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItemOverflow`).attr(`x`,0).attr(`y`,0).attr(`width`,f).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.6),l.attr(`x`,f/2).attr(`y`,13)}}if(o.length>0){let e=x.select(`defs`).empty()?x.append(`defs`):x.select(`defs`),n=`cynefin-arrow-${t}`;e.append(`marker`).attr(`id`,n).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(`class`,`cynefinArrowHead`);let r=S.append(`g`).attr(`class`,`cynefin-arrows`);o.forEach(e=>{let t=C[e.from],i=C[e.to];if(!t||!i)return;if(e.from===e.to){P.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);return}let a=t.cx,o=t.cy,s=i.cx,l=i.cy,u=(a+s)/2,d=(o+l)/2,f=s-a,p=l-o,m=Math.sqrt(f*f+p*p),h=m*.15,g=-p/m,_=f/m,v=u+g*h,y=d+_*h;r.append(`path`).attr(`class`,`cynefinArrowLine`).attr(`d`,`M${a},${o} Q${v},${y} ${s},${l}`).attr(`fill`,`none`).attr(`marker-end`,`url(#${n})`),e.label&&r.append(`text`).attr(`class`,`cynefinArrowLabel`).attr(`x`,v).attr(`y`,y-6).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`auto`).text(e.label)})}s&&S.append(`text`).attr(`class`,`cynefinTitle`).attr(`x`,p/2).attr(`y`,-h/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s)},`draw`)},ZNt=N(()=>Rm(No(),ns().themeVariables).cynefin,`getCynefinTheme`),QNt={parser:JNt,db:o2,renderer:l2,styles:N(()=>{let e=ZNt();return` + `},`styles`)}})),Z0=l({diagram:()=>oPt});function Q0(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function $0(e){let t=0;for(let n=0;n{sP(),kp(),qm(),Os(),er(),Zn(),nW(),e2=N(()=>({domains:new Map,transitions:[]}),`createDefaultData`),t2=e2(),n2={getDomains:N(()=>t2.domains,`getDomains`),getTransitions:N(()=>t2.transitions,`getTransitions`),setDomains:N(e=>{if(e)for(let t of e){let e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));t2.domains.set(e,{name:e,items:n})}},`setDomains`),setTransitions:N(e=>{e&&(t2.transitions=e.filter(e=>e.from!==e.to||(P.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1)).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},`setTransitions`),getConfig:N(()=>Bm({...Fo.cynefin,...Xo().cynefin}),`getConfig`),clear:N(()=>{fs(),t2=e2()},`clear`),setAccTitle:ps,getAccTitle:ms,setDiagramTitle:_s,getDiagramTitle:vs,getAccDescription:gs,setAccDescription:hs},r2=N(e=>{oP(e,n2),n2.setDomains(e.domains),n2.setTransitions(e.transitions)},`populate`),i2={parse:N(async e=>{let t=await QU(`cynefin`,e);P.debug(t),r2(t)},`parse`)},N(Q0,`seededRandom`),N($0,`hashString`),N(ZNt,`resolveSeed`),N(QNt,`generateFoldPath`),N($Nt,`generateHorizontalBoundary`),N(ePt,`generateCliffPath`),N(tPt,`generateConfusionPath`),nPt={complex:{model:`Probe → Sense → Respond`,practice:`Emergent Practices`},complicated:{model:`Sense → Analyse → Respond`,practice:`Good Practices`},clear:{model:`Sense → Categorise → Respond`,practice:`Best Practices`},chaotic:{model:`Act → Sense → Respond`,practice:`Novel Practices`},confusion:{model:``,practice:`Disorder`}},rPt=N((e,t)=>{let n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:n*.7,y:r*.7,w:n*.6,h:r*.6}}},`getDomainLayouts`),iPt=N(()=>Bm(wo(),Xo().themeVariables).cynefin,`getCynefinDomainColors`),aPt=3,a2={draw:N((e,t,n,r)=>{let i=r.db,a=i.getDomains(),o=i.getTransitions(),s=i.getDiagramTitle(),l=i.getAccTitle(),u=i.getAccDescription(),d=i.getConfig(),f=iPt();P.debug(`Rendering Cynefin diagram`);let p=d.width,m=d.height,h=d.padding,g=d.showDomainDescriptions,_=d.boundaryAmplitude,v=p+h*2,y=m+h*2,b={complex:f.complexBg,complicated:f.complicatedBg,clear:f.clearBg,chaotic:f.chaoticBg,confusion:f.confusionBg},x=Op(t);ls(x,y,v,d.useMaxWidth??!0),x.attr(`viewBox`,`0 0 ${v} ${y}`),l&&x.append(`title`).text(l),u&&x.append(`desc`).text(u);let S=x.append(`g`).attr(`transform`,`translate(${h}, ${h})`),C=rPt(p,m),w=ZNt(d.seed,t),T=S.append(`g`).attr(`class`,`cynefin-backgrounds`),E=[`complex`,`complicated`,`chaotic`,`clear`];for(let e of E){let t=C[e];T.append(`rect`).attr(`class`,`cynefinDomain`).attr(`x`,t.x).attr(`y`,t.y).attr(`width`,t.w).attr(`height`,t.h).attr(`fill`,b[e]).attr(`fill-opacity`,.4).attr(`stroke`,`none`)}let D=S.append(`g`).attr(`class`,`cynefin-boundaries`);D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,QNt(p,m,w,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,$Nt(p,m,w+100,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinCliff`).attr(`d`,ePt(p,m)).attr(`fill`,`none`);let O=p*.15,k=m*.15;S.append(`path`).attr(`class`,`cynefinConfusion`).attr(`d`,tPt(p/2,m/2,O,k)).attr(`fill`,b.confusion).attr(`fill-opacity`,.5);let A=S.append(`g`).attr(`class`,`cynefin-labels`);for(let e of E){let t=C[e];A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,t.cx).attr(`y`,g?t.cy-30:t.cy).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(e.charAt(0).toUpperCase()+e.slice(1))}if(A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,p/2).attr(`y`,g?m/2-10:m/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(`Confusion`),g){let e=S.append(`g`).attr(`class`,`cynefin-subtitles`);for(let t of E){let n=C[t],r=nPt[t];e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy-10).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.model),e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy+5).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.practice)}e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,p/2).attr(`y`,m/2+8).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(nPt.confusion.practice)}let j=S.append(`g`).attr(`class`,`cynefin-items`);for(let e of[`complex`,`complicated`,`chaotic`,`clear`,`confusion`]){let t=a.get(e);if(!t||t.items.length===0)continue;let n=C[e],r=e===`confusion`,i=t.items,o=0;r&&t.items.length>aPt&&(o=t.items.length-aPt,i=t.items.slice(0,aPt));let s;if(r){let e=g?22:14;s=n.cy+e}else s=n.cy+(g?25:15);if([...i].forEach((t,r)=>{let i=s+r*30,a=j.append(`g`),o=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(t.label),l=t.label.length*7,u=o.node();if(u&&typeof u.getBBox==`function`){let e=u.getBBox();e.width>0&&(l=e.width)}let d=l+20,f=n.cx-d/2;a.attr(`transform`,`translate(${f}, ${i})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItem`).attr(`x`,0).attr(`y`,0).attr(`width`,d).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.95),o.attr(`x`,d/2).attr(`y`,13)}),o>0){let t=s+i.length*30,r=`+${o} more`,a=j.append(`g`),l=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(r),u=r.length*7,d=l.node();if(d&&typeof d.getBBox==`function`){let e=d.getBBox();e.width>0&&(u=e.width)}let f=u+20,p=n.cx-f/2;a.attr(`transform`,`translate(${p}, ${t})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItemOverflow`).attr(`x`,0).attr(`y`,0).attr(`width`,f).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.6),l.attr(`x`,f/2).attr(`y`,13)}}if(o.length>0){let e=x.select(`defs`).empty()?x.append(`defs`):x.select(`defs`),n=`cynefin-arrow-${t}`;e.append(`marker`).attr(`id`,n).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(`class`,`cynefinArrowHead`);let r=S.append(`g`).attr(`class`,`cynefin-arrows`);o.forEach(e=>{let t=C[e.from],i=C[e.to];if(!t||!i)return;if(e.from===e.to){P.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);return}let a=t.cx,o=t.cy,s=i.cx,l=i.cy,u=(a+s)/2,d=(o+l)/2,f=s-a,p=l-o,m=Math.sqrt(f*f+p*p),h=m*.15,g=-p/m,_=f/m,v=u+g*h,y=d+_*h;r.append(`path`).attr(`class`,`cynefinArrowLine`).attr(`d`,`M${a},${o} Q${v},${y} ${s},${l}`).attr(`fill`,`none`).attr(`marker-end`,`url(#${n})`),e.label&&r.append(`text`).attr(`class`,`cynefinArrowLabel`).attr(`x`,v).attr(`y`,y-6).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`auto`).text(e.label)})}s&&S.append(`text`).attr(`class`,`cynefinTitle`).attr(`x`,p/2).attr(`y`,-h/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s)},`draw`)},o2=N(()=>Bm(wo(),Xo().themeVariables).cynefin,`getCynefinTheme`),oPt={parser:i2,db:n2,renderer:a2,styles:N(()=>{let e=o2();return` .cynefinDomain { stroke: none; } @@ -4192,8 +4194,8 @@ ${n?``:` font-weight: bold; fill: ${e.labelColor}; } - `},`styles`)}})),ePt,u2,d2,tPt,f2,p2,m2,nPt,h2,g2,_2,v2,y2,b2,rPt,iPt,aPt,oPt,x2,sPt,S2,cPt,lPt,C2,w2,T2,uPt,dPt,E2,fPt=o((()=>{kp(),Ls(),ar(),tr(),ePt=``,u2=``,d2=``,tPt=[],f2=new Map,p2=N(e=>ls(e,As()),`sanitizeText`),m2=N(e=>{switch(e.type){case`terminal`:return{...e,value:p2(e.value)};case`nonterminal`:return{...e,name:p2(e.name)};case`sequence`:return{...e,elements:e.elements.map(m2)};case`choice`:return{...e,alternatives:e.alternatives.map(m2)};case`optional`:return{...e,element:m2(e.element)};case`repetition`:return{...e,element:m2(e.element),separator:e.separator?m2(e.separator):void 0};case`special`:return{...e,text:p2(e.text)}}},`sanitizeAstNode`),nPt=N(()=>{ePt=``,u2=``,d2=``,tPt.length=0,f2.clear(),Ss(),P.debug(`[Railroad] Database cleared`)},`clear`),h2=N(e=>{ePt=p2(e),P.debug(`[Railroad] Title set:`,e)},`setTitle`),g2=N(()=>ePt,`getTitle`),_2={clear:nPt,setTitle:h2,getTitle:g2,addRule:N(e=>{let t={...e,name:p2(e.name),definition:m2(e.definition),comment:e.comment?p2(e.comment):void 0};P.debug(`[Railroad] Adding rule:`,t.name),f2.has(t.name)&&P.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),tPt.push(t),f2.set(t.name,t)},`addRule`),getRules:N(()=>tPt,`getRules`),getRule:N(e=>f2.get(e),`getRule`),setAccTitle:N(e=>{u2=p2(e).replace(/^\s+/g,``),P.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:N(()=>u2,`getAccTitle`),setAccDescription:N(e=>{d2=p2(e).replace(/\n\s+/g,` -`),P.debug(`[Railroad] Accessibility description set:`,e)},`setAccDescription`),getAccDescription:N(()=>d2,`getAccDescription`),setDiagramTitle:h2,getDiagramTitle:g2},v2={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:`monospace`,terminalFill:`#FFFFC0`,terminalStroke:`#000000`,terminalTextColor:`#000000`,nonTerminalFill:`#FFFFFF`,nonTerminalStroke:`#000000`,nonTerminalTextColor:`#000000`,lineColor:`#000000`,strokeWidth:2,markerFill:`#000000`,commentFill:`#E8E8E8`,commentStroke:`#888888`,commentTextColor:`#666666`,specialFill:`#F0E0FF`,specialStroke:`#8800CC`,ruleNameColor:`#000066`,showMarkers:!0,markerRadius:5},y2=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,b2=/^[\w "',.-]+$/,rPt=new Set([`compactMode`,`padding`,`verticalSeparation`,`horizontalSeparation`,`arcRadius`,`fontSize`,`fontFamily`,`terminalFill`,`terminalStroke`,`terminalTextColor`,`nonTerminalFill`,`nonTerminalStroke`,`nonTerminalTextColor`,`lineColor`,`strokeWidth`,`markerFill`,`commentFill`,`commentStroke`,`commentTextColor`,`specialFill`,`specialStroke`,`ruleNameColor`,`showMarkers`,`markerRadius`]),iPt=N(e=>e?Object.keys(e).every(e=>e===`railroad`||rPt.has(e)):!1,`isRailroadStyleOptions`),aPt=N(e=>e?`railroad`in e&&e.railroad?e.railroad:iPt(e)?e:{}:{},`extractRailroadOverrides`),oPt=N(e=>{if(!e||iPt(e))return{};let{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},`extractThemeOverrides`),x2=N((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return y2.test(n)?n:t},`sanitizeColorValue`),sPt=N((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return b2.test(n)?n:t},`sanitizeFontFamilyValue`),S2=N((e,t)=>{let n=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>=0?n:t},`sanitizeNumberValue`),cPt=N(e=>{let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},`parseThemeFontSize`),lPt=N(e=>{let t=sPt(e.fontFamily,v2.fontFamily),n=cPt(e.fontSize)??v2.fontSize;return{...v2,fontFamily:t,fontSize:n,terminalFill:x2(e.secondBkg??e.secondaryColor,v2.terminalFill),terminalStroke:x2(e.secondaryBorderColor??e.lineColor,v2.terminalStroke),terminalTextColor:x2(e.secondaryTextColor??e.textColor,v2.terminalTextColor),nonTerminalFill:x2(e.mainBkg??e.background,v2.nonTerminalFill),nonTerminalStroke:x2(e.primaryBorderColor??e.lineColor,v2.nonTerminalStroke),nonTerminalTextColor:x2(e.primaryTextColor??e.textColor,v2.nonTerminalTextColor),lineColor:x2(e.lineColor,v2.lineColor),markerFill:x2(e.lineColor,v2.markerFill),commentFill:x2(e.labelBackground??e.tertiaryColor,v2.commentFill),commentStroke:x2(e.tertiaryBorderColor??e.lineColor,v2.commentStroke),commentTextColor:x2(e.tertiaryTextColor??e.textColor,v2.commentTextColor),specialFill:x2(e.tertiaryColor??e.secondaryColor,v2.specialFill),specialStroke:x2(e.tertiaryBorderColor??e.secondaryBorderColor,v2.specialStroke),ruleNameColor:x2(e.titleColor??e.textColor,v2.ruleNameColor)}},`buildThemeDefaults`),C2=N(e=>{let t=ns(),n=lPt({...No(),...t.themeVariables??{},...oPt(e)}),r={...t.railroad??{},...aPt(e)};return{compactMode:r.compactMode??n.compactMode,padding:S2(r.padding,n.padding),verticalSeparation:S2(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:S2(r.horizontalSeparation,n.horizontalSeparation),arcRadius:S2(r.arcRadius,n.arcRadius),fontSize:S2(r.fontSize,n.fontSize),fontFamily:sPt(r.fontFamily,n.fontFamily),terminalFill:x2(r.terminalFill,n.terminalFill),terminalStroke:x2(r.terminalStroke,n.terminalStroke),terminalTextColor:x2(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:x2(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:x2(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:x2(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:x2(r.lineColor,n.lineColor),strokeWidth:S2(r.strokeWidth,n.strokeWidth),markerFill:x2(r.markerFill,n.markerFill),commentFill:x2(r.commentFill,n.commentFill),commentStroke:x2(r.commentStroke,n.commentStroke),commentTextColor:x2(r.commentTextColor,n.commentTextColor),specialFill:x2(r.specialFill,n.specialFill),specialStroke:x2(r.specialStroke,n.specialStroke),ruleNameColor:x2(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:S2(r.markerRadius,n.markerRadius)}},`buildRailroadStyleOptions`),w2=N(e=>{let{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:u,strokeWidth:d,markerFill:f,commentFill:p,commentStroke:m,commentTextColor:h,specialFill:g,specialStroke:_,ruleNameColor:v}=C2(e);return` + `},`styles`)}})),cPt,lPt,uPt,s2,c2,l2,u2,d2,f2,dPt,p2,m2,fPt,pPt,mPt,hPt,gPt,_Pt,h2,vPt,g2,yPt,bPt,xPt,_2,v2,SPt,y2,b2,CPt=o((()=>{kp(),Os(),er(),Zn(),cPt=``,lPt=``,uPt=``,s2=[],c2=new Map,l2=N(e=>ns(e,bs()),`sanitizeText`),u2=N(e=>{switch(e.type){case`terminal`:return{...e,value:l2(e.value)};case`nonterminal`:return{...e,name:l2(e.name)};case`sequence`:return{...e,elements:e.elements.map(u2)};case`choice`:return{...e,alternatives:e.alternatives.map(u2)};case`optional`:return{...e,element:u2(e.element)};case`repetition`:return{...e,element:u2(e.element),separator:e.separator?u2(e.separator):void 0};case`special`:return{...e,text:l2(e.text)}}},`sanitizeAstNode`),d2=N(()=>{cPt=``,lPt=``,uPt=``,s2.length=0,c2.clear(),fs(),P.debug(`[Railroad] Database cleared`)},`clear`),f2=N(e=>{cPt=l2(e),P.debug(`[Railroad] Title set:`,e)},`setTitle`),dPt=N(()=>cPt,`getTitle`),p2={clear:d2,setTitle:f2,getTitle:dPt,addRule:N(e=>{let t={...e,name:l2(e.name),definition:u2(e.definition),comment:e.comment?l2(e.comment):void 0};P.debug(`[Railroad] Adding rule:`,t.name),c2.has(t.name)&&P.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),s2.push(t),c2.set(t.name,t)},`addRule`),getRules:N(()=>s2,`getRules`),getRule:N(e=>c2.get(e),`getRule`),setAccTitle:N(e=>{lPt=l2(e).replace(/^\s+/g,``),P.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:N(()=>lPt,`getAccTitle`),setAccDescription:N(e=>{uPt=l2(e).replace(/\n\s+/g,` +`),P.debug(`[Railroad] Accessibility description set:`,e)},`setAccDescription`),getAccDescription:N(()=>uPt,`getAccDescription`),setDiagramTitle:f2,getDiagramTitle:dPt},m2={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:`monospace`,terminalFill:`#FFFFC0`,terminalStroke:`#000000`,terminalTextColor:`#000000`,nonTerminalFill:`#FFFFFF`,nonTerminalStroke:`#000000`,nonTerminalTextColor:`#000000`,lineColor:`#000000`,strokeWidth:2,markerFill:`#000000`,commentFill:`#E8E8E8`,commentStroke:`#888888`,commentTextColor:`#666666`,specialFill:`#F0E0FF`,specialStroke:`#8800CC`,ruleNameColor:`#000066`,showMarkers:!0,markerRadius:5},fPt=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,pPt=/^[\w "',.-]+$/,mPt=new Set([`compactMode`,`padding`,`verticalSeparation`,`horizontalSeparation`,`arcRadius`,`fontSize`,`fontFamily`,`terminalFill`,`terminalStroke`,`terminalTextColor`,`nonTerminalFill`,`nonTerminalStroke`,`nonTerminalTextColor`,`lineColor`,`strokeWidth`,`markerFill`,`commentFill`,`commentStroke`,`commentTextColor`,`specialFill`,`specialStroke`,`ruleNameColor`,`showMarkers`,`markerRadius`]),hPt=N(e=>e?Object.keys(e).every(e=>e===`railroad`||mPt.has(e)):!1,`isRailroadStyleOptions`),gPt=N(e=>e?`railroad`in e&&e.railroad?e.railroad:hPt(e)?e:{}:{},`extractRailroadOverrides`),_Pt=N(e=>{if(!e||hPt(e))return{};let{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},`extractThemeOverrides`),h2=N((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return fPt.test(n)?n:t},`sanitizeColorValue`),vPt=N((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return pPt.test(n)?n:t},`sanitizeFontFamilyValue`),g2=N((e,t)=>{let n=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>=0?n:t},`sanitizeNumberValue`),yPt=N(e=>{let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},`parseThemeFontSize`),bPt=N(e=>{let t=vPt(e.fontFamily,m2.fontFamily),n=yPt(e.fontSize)??m2.fontSize;return{...m2,fontFamily:t,fontSize:n,terminalFill:h2(e.secondBkg??e.secondaryColor,m2.terminalFill),terminalStroke:h2(e.secondaryBorderColor??e.lineColor,m2.terminalStroke),terminalTextColor:h2(e.secondaryTextColor??e.textColor,m2.terminalTextColor),nonTerminalFill:h2(e.mainBkg??e.background,m2.nonTerminalFill),nonTerminalStroke:h2(e.primaryBorderColor??e.lineColor,m2.nonTerminalStroke),nonTerminalTextColor:h2(e.primaryTextColor??e.textColor,m2.nonTerminalTextColor),lineColor:h2(e.lineColor,m2.lineColor),markerFill:h2(e.lineColor,m2.markerFill),commentFill:h2(e.labelBackground??e.tertiaryColor,m2.commentFill),commentStroke:h2(e.tertiaryBorderColor??e.lineColor,m2.commentStroke),commentTextColor:h2(e.tertiaryTextColor??e.textColor,m2.commentTextColor),specialFill:h2(e.tertiaryColor??e.secondaryColor,m2.specialFill),specialStroke:h2(e.tertiaryBorderColor??e.secondaryBorderColor,m2.specialStroke),ruleNameColor:h2(e.titleColor??e.textColor,m2.ruleNameColor)}},`buildThemeDefaults`),xPt=N(e=>{let t=Xo(),n=bPt({...wo(),...t.themeVariables??{},..._Pt(e)}),r={...t.railroad??{},...gPt(e)};return{compactMode:r.compactMode??n.compactMode,padding:g2(r.padding,n.padding),verticalSeparation:g2(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:g2(r.horizontalSeparation,n.horizontalSeparation),arcRadius:g2(r.arcRadius,n.arcRadius),fontSize:g2(r.fontSize,n.fontSize),fontFamily:vPt(r.fontFamily,n.fontFamily),terminalFill:h2(r.terminalFill,n.terminalFill),terminalStroke:h2(r.terminalStroke,n.terminalStroke),terminalTextColor:h2(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:h2(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:h2(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:h2(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:h2(r.lineColor,n.lineColor),strokeWidth:g2(r.strokeWidth,n.strokeWidth),markerFill:h2(r.markerFill,n.markerFill),commentFill:h2(r.commentFill,n.commentFill),commentStroke:h2(r.commentStroke,n.commentStroke),commentTextColor:h2(r.commentTextColor,n.commentTextColor),specialFill:h2(r.specialFill,n.specialFill),specialStroke:h2(r.specialStroke,n.specialStroke),ruleNameColor:h2(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:g2(r.markerRadius,n.markerRadius)}},`buildRailroadStyleOptions`),_2=N(e=>{let{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:u,strokeWidth:d,markerFill:f,commentFill:p,commentStroke:m,commentTextColor:h,specialFill:g,specialStroke:_,ruleNameColor:v}=xPt(e);return` .railroad-diagram { font-family: ${t}; font-size: ${n}px; @@ -4278,17 +4280,17 @@ ${n?``:` .railroad-group { /* Grouping container, no specific styles */ } -`},`getStyles`),T2=class{constructor(){this.d=``}static{N(this,`PathBuilder`)}moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,r,i,a,o){return this.d+=`A ${e} ${t} ${n} ${+!!r} ${+!!i} ${a} ${o} `,this}build(){return this.d.trim()}},uPt=class{constructor(e,t=C2()){this.textCache=new Map,this.svg=e,this.config=t}static{N(this,`RailroadRenderer`)}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append(`text`).attr(`font-family`,this.config.fontFamily).attr(`font-size`,this.config.fontSize).text(e),n=t.node().getBBox(),r={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,r),r}renderTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-terminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i).attr(`rx`,10).attr(`ry`,10),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-nonterminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderSequence(e,t){let n=t.map(t=>this.renderExpression(e,t)),r=0,i=0,a=0;for(let e of n)r+=e.dimensions.width,i=Math.max(i,e.dimensions.up),a=Math.max(a,e.dimensions.down);r+=(n.length-1)*this.config.horizontalSeparation;let o=e.append(`g`).attr(`class`,`railroad-sequence`),s=0;for(let e=0;ethis.renderExpression(e,t)),r=0,i=0;for(let e of n)r=Math.max(r,e.dimensions.width),i+=e.dimensions.height;i+=(n.length-1)*this.config.verticalSeparation;let a=this.config.arcRadius,o=a*4,s=r+o,l=e.append(`g`).attr(`class`,`railroad-choice`),u=0,d=i/2;for(let e of n){let t=u,n=t+e.dimensions.up,i=a*2+(r-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute(`transform`,`translate(${i}, ${t})`);let o=new T2,f=n>d;n===d?o.moveTo(0,d).lineTo(i,n):o.moveTo(0,d).arcTo(a,a,0,!1,f,a,d+(f?a:-a)).lineTo(a,n-(f?a:-a)).arcTo(a,a,0,!1,!f,a*2,n).lineTo(i,n),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,o.build());let p=new T2,m=i+e.dimensions.width,h=s-a*2;n===d?p.moveTo(m,n).lineTo(s,d):p.moveTo(m,n).lineTo(h,n).arcTo(a,a,0,!1,!f,s-a,n+(f?-a:a)).lineTo(s-a,d+(f?a:-a)).arcTo(a,a,0,!1,f,s,d),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build()),u+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:s,height:i,up:d,down:i-d}}}renderOptional(e,t){let n=this.renderExpression(e,t),r=this.config.arcRadius,i=r*2,a=n.dimensions.width+r*4,o=n.dimensions.height+i,s=e.append(`g`).attr(`class`,`railroad-optional`),l=r*2,u=i;s.node().appendChild(n.element).setAttribute(`transform`,`translate(${l}, ${u})`);let d=u+n.dimensions.up,f=new T2().moveTo(0,d).lineTo(r*2,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,f.build());let p=new T2().moveTo(l+n.dimensions.width,d).lineTo(a,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build());let m=new T2().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(a-r*2,0).arcTo(r,r,0,!1,!0,a-r,r).lineTo(a-r,d-r).arcTo(r,r,0,!1,!1,a,d);return s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,m.build()),{element:s.node(),dimensions:{width:a,height:o,up:d,down:o-d}}}renderRepetition(e,t,n){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=i*2,o=r.dimensions.width+i*4,s=n===0,l=r.dimensions.height+a+(s?a:0),u=e.append(`g`).attr(`class`,`railroad-repetition`),d=i*2,f=s?a:0;u.node().appendChild(r.element).setAttribute(`transform`,`translate(${d}, ${f})`);let p=f+r.dimensions.up;u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new T2().moveTo(0,p).lineTo(i*2,p).build()),u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new T2().moveTo(d+r.dimensions.width,p).lineTo(o,p).build());let m=f+r.dimensions.height+i,h=new T2().moveTo(d+r.dimensions.width,p).arcTo(i,i,0,!1,!0,d+r.dimensions.width+i,p+i).lineTo(d+r.dimensions.width+i,m).arcTo(i,i,0,!1,!0,d+r.dimensions.width,m+i).lineTo(i*2,m+i).arcTo(i,i,0,!1,!0,i,m).lineTo(i,p+i).arcTo(i,i,0,!1,!0,i*2,p);if(u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,h.build()),s){let e=new T2().moveTo(0,p).arcTo(i,i,0,!1,!1,i,p-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(o-i*2,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,p-i).arcTo(i,i,0,!1,!1,o,p);u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,e.build())}return{element:u.node(),dimensions:{width:o,height:l,up:p,down:l-p}}}renderSpecial(e,t){let n=this.measureText(`? `+t+` ?`),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-special`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(`? `+t+` ?`),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderExpression(e,t){switch(t.type){case`terminal`:return this.renderTerminal(e,t.value);case`nonterminal`:return this.renderNonTerminal(e,t.name);case`sequence`:return this.renderSequence(e,t.elements);case`choice`:return this.renderChoice(e,t.alternatives);case`optional`:return this.renderOptional(e,t.element);case`repetition`:return this.renderRepetition(e,t.element,t.min);case`special`:return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let n=this.svg.append(`g`).attr(`class`,`railroad-rule`).attr(`transform`,`translate(0, ${t})`),r=e.name+` =`,i=this.measureText(r).width+20,a=i+20,o=n.append(`g`),s=this.renderExpression(o,e.definition),l=Math.max(20,s.dimensions.up),u=l-s.dimensions.up;return o.attr(`transform`,`translate(${a}, ${u})`),n.append(`g`).attr(`class`,`railroad-rule-name-group`).append(`text`).attr(`class`,`railroad-rule-name`).attr(`x`,0).attr(`y`,l).text(r),n.append(`g`).attr(`class`,`railroad-start`).append(`circle`).attr(`cx`,i).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`g`).attr(`class`,`railroad-end`).append(`circle`).attr(`cx`,a+s.dimensions.width+10).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new T2().moveTo(i+this.config.markerRadius,l).lineTo(a,l).build()),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new T2().moveTo(a+s.dimensions.width,l).lineTo(a+s.dimensions.width+10-this.config.markerRadius,l).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:a+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(let r of e){let e=this.renderRule(r,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+this.config.padding*2,height:t+this.config.padding}}},dPt=N((e,t,n)=>{_s(e,t.height,t.width,n),e.attr(`viewBox`,`0 0 ${t.width} ${t.height}`)},`configureRailroadSvgSize`),E2={draw:N((e,t,n)=>{P.debug(`[Railroad] Rendering diagram -`+e);try{let e=Op(t);e.attr(`class`,`railroad-diagram`);let n=ns().railroad?.useMaxWidth??!0,r=_2.getRules();if(P.debug(`[Railroad] Rendering ${r.length} rules`),r.length===0){P.warn(`[Railroad] No rules to render`),dPt(e,{height:100,width:200},n);return}dPt(e,new uPt(e,C2()).renderDiagram(r),n),P.debug(`[Railroad] Render complete`)}catch(e){throw P.error(`[Railroad] Render error:`,e),e}},`draw`)}})),D2=l({default:()=>gPt,diagram:()=>hPt}),pPt,O2,k2,mPt,hPt,gPt,_Pt=o((()=>{fPt(),sP(),kp(),Ls(),ar(),tr(),iW(),pPt=mgt().Railroad.parser.LangiumParser,O2=N(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(O2);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(O2);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:O2(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:O2(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:O2(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),k2=N(e=>({name:e.name,definition:O2(e.definition)}),`transformRule`),mPt=N(e=>{oP(e,_2),e.title&&_2.setTitle(e.title),e.rules.map(e=>_2.addRule(k2(e)))},`populateDb`),hPt={parser:{parse:N(e=>{_2.clear(),P.debug(`[Railroad Parser] Starting Langium parse`);let t=pPt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new rW(t);let n=t.value;P.debug(`[Railroad Parser] Parsed rules:`,n.rules.length),mPt(n),P.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:_2}},db:_2,renderer:E2,styles:w2},gPt=hPt})),vPt=l({diagram:()=>F2}),yPt,A2,j2,M2,bPt,xPt,N2,P2,F2,I2=o((()=>{fPt(),sP(),kp(),Ls(),ar(),tr(),iW(),yPt=ygt().RailroadEbnf.parser.LangiumParser,A2=N(e=>{let t=e.alternatives.map(j2);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),j2=N(e=>{let t=e.elements.map(xPt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),M2=N(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return A2(e.element);case`EbnfOptional`:return{type:`optional`,element:A2(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:A2(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),bPt=N((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},M2(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),xPt=N(e=>e.postfixes.reduce((e,t)=>bPt(e,t),M2(e.base)),`transformTerm`),N2=N(e=>({name:e.name,definition:A2(e.definition)}),`transformRule`),P2=N(e=>{oP(e,_2),e.title&&_2.setTitle(e.title),e.rules.map(e=>_2.addRule(N2(e)))},`populateDb`),F2={parser:{parse:N(e=>{_2.clear(),P.debug(`[EBNF Parser] Starting Langium parse`);let t=yPt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new rW(t);let n=t.value;P.debug(`[EBNF Parser] Parsed rules:`,n.rules.length),P2(n),P.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:_2}},db:_2,renderer:E2,styles:w2}})),SPt=l({diagram:()=>APt}),CPt,wPt,L2,TPt,EPt,DPt,OPt,kPt,APt,jPt=o((()=>{fPt(),sP(),kp(),Ls(),ar(),tr(),iW(),CPt=DU().RailroadAbnf.parser.LangiumParser,wPt=N(e=>{let t=e.alternatives.map(L2);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),L2=N(e=>{let t=e.elements.map(EPt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),TPt=N(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),EPt=N(e=>{let t=DPt(e.primary);if(!e.repeat)return t;let{min:n,max:r}=TPt(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),DPt=N(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return wPt(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:wPt(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),OPt=N(e=>({name:e.name,definition:wPt(e.definition)}),`transformRule`),kPt=N(e=>{oP(e,_2),e.title&&_2.setTitle(e.title),e.rules.map(e=>_2.addRule(OPt(e)))},`populateDb`),APt={parser:{parse:N(e=>{_2.clear(),P.debug(`[ABNF Parser] Starting Langium parse`);let t=CPt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new rW(t);let n=t.value;P.debug(`[ABNF Parser] Parsed rules:`,n.rules.length),kPt(n),P.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:_2}},db:_2,renderer:E2,styles:w2}})),MPt=l({diagram:()=>VPt}),NPt,PPt,FPt,IPt,LPt,R2,RPt,zPt,BPt,VPt,z2=o((()=>{fPt(),sP(),kp(),Ls(),ar(),tr(),iW(),NPt=OU().RailroadPeg.parser.LangiumParser,PPt=N(e=>{let t=e.alternatives.map(FPt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),FPt=N(e=>{let t=e.elements.map(IPt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),IPt=N(e=>{let t=R2(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${LPt(t)}`:`!${LPt(t)}`}:t},`transformPrefix`),LPt=N(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),R2=N(e=>{let t=RPt(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),RPt=N(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return PPt(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),zPt=N(e=>({name:e.name,definition:PPt(e.definition)}),`transformRule`),BPt=N(e=>{oP(e,_2),e.title&&_2.setTitle(e.title),e.rules.map(e=>_2.addRule(zPt(e)))},`populateDb`),VPt={parser:{parse:N(e=>{_2.clear(),P.debug(`[PEG Parser] Starting Langium parse`);let t=NPt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new rW(t);let n=t.value;P.debug(`[PEG Parser] Parsed rules:`,n.rules.length),BPt(n),P.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:_2}},db:_2,renderer:E2,styles:w2}})),B2=l({default:()=>RIt});function HPt(e,t){e.attr(`role`,QFt),t!==``&&e.attr(`aria-roledescription`,t)}function UPt(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}function WPt(e){let t=So(e);if(!t)return{text:e,metadata:{}};let n=t.indent,r=n?t.body.split(` +`},`getStyles`),v2=class{constructor(){this.d=``}static{N(this,`PathBuilder`)}moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,r,i,a,o){return this.d+=`A ${e} ${t} ${n} ${+!!r} ${+!!i} ${a} ${o} `,this}build(){return this.d.trim()}},SPt=class{constructor(e,t=xPt()){this.textCache=new Map,this.svg=e,this.config=t}static{N(this,`RailroadRenderer`)}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append(`text`).attr(`font-family`,this.config.fontFamily).attr(`font-size`,this.config.fontSize).text(e),n=t.node().getBBox(),r={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,r),r}renderTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-terminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i).attr(`rx`,10).attr(`ry`,10),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-nonterminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderSequence(e,t){let n=t.map(t=>this.renderExpression(e,t)),r=0,i=0,a=0;for(let e of n)r+=e.dimensions.width,i=Math.max(i,e.dimensions.up),a=Math.max(a,e.dimensions.down);r+=(n.length-1)*this.config.horizontalSeparation;let o=e.append(`g`).attr(`class`,`railroad-sequence`),s=0;for(let e=0;ethis.renderExpression(e,t)),r=0,i=0;for(let e of n)r=Math.max(r,e.dimensions.width),i+=e.dimensions.height;i+=(n.length-1)*this.config.verticalSeparation;let a=this.config.arcRadius,o=a*4,s=r+o,l=e.append(`g`).attr(`class`,`railroad-choice`),u=0,d=i/2;for(let e of n){let t=u,n=t+e.dimensions.up,i=a*2+(r-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute(`transform`,`translate(${i}, ${t})`);let o=new v2,f=n>d;n===d?o.moveTo(0,d).lineTo(i,n):o.moveTo(0,d).arcTo(a,a,0,!1,f,a,d+(f?a:-a)).lineTo(a,n-(f?a:-a)).arcTo(a,a,0,!1,!f,a*2,n).lineTo(i,n),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,o.build());let p=new v2,m=i+e.dimensions.width,h=s-a*2;n===d?p.moveTo(m,n).lineTo(s,d):p.moveTo(m,n).lineTo(h,n).arcTo(a,a,0,!1,!f,s-a,n+(f?-a:a)).lineTo(s-a,d+(f?a:-a)).arcTo(a,a,0,!1,f,s,d),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build()),u+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:s,height:i,up:d,down:i-d}}}renderOptional(e,t){let n=this.renderExpression(e,t),r=this.config.arcRadius,i=r*2,a=n.dimensions.width+r*4,o=n.dimensions.height+i,s=e.append(`g`).attr(`class`,`railroad-optional`),l=r*2,u=i;s.node().appendChild(n.element).setAttribute(`transform`,`translate(${l}, ${u})`);let d=u+n.dimensions.up,f=new v2().moveTo(0,d).lineTo(r*2,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,f.build());let p=new v2().moveTo(l+n.dimensions.width,d).lineTo(a,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build());let m=new v2().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(a-r*2,0).arcTo(r,r,0,!1,!0,a-r,r).lineTo(a-r,d-r).arcTo(r,r,0,!1,!1,a,d);return s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,m.build()),{element:s.node(),dimensions:{width:a,height:o,up:d,down:o-d}}}renderRepetition(e,t,n){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=i*2,o=r.dimensions.width+i*4,s=n===0,l=r.dimensions.height+a+(s?a:0),u=e.append(`g`).attr(`class`,`railroad-repetition`),d=i*2,f=s?a:0;u.node().appendChild(r.element).setAttribute(`transform`,`translate(${d}, ${f})`);let p=f+r.dimensions.up;u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new v2().moveTo(0,p).lineTo(i*2,p).build()),u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new v2().moveTo(d+r.dimensions.width,p).lineTo(o,p).build());let m=f+r.dimensions.height+i,h=new v2().moveTo(d+r.dimensions.width,p).arcTo(i,i,0,!1,!0,d+r.dimensions.width+i,p+i).lineTo(d+r.dimensions.width+i,m).arcTo(i,i,0,!1,!0,d+r.dimensions.width,m+i).lineTo(i*2,m+i).arcTo(i,i,0,!1,!0,i,m).lineTo(i,p+i).arcTo(i,i,0,!1,!0,i*2,p);if(u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,h.build()),s){let e=new v2().moveTo(0,p).arcTo(i,i,0,!1,!1,i,p-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(o-i*2,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,p-i).arcTo(i,i,0,!1,!1,o,p);u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,e.build())}return{element:u.node(),dimensions:{width:o,height:l,up:p,down:l-p}}}renderSpecial(e,t){let n=this.measureText(`? `+t+` ?`),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-special`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(`? `+t+` ?`),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderExpression(e,t){switch(t.type){case`terminal`:return this.renderTerminal(e,t.value);case`nonterminal`:return this.renderNonTerminal(e,t.name);case`sequence`:return this.renderSequence(e,t.elements);case`choice`:return this.renderChoice(e,t.alternatives);case`optional`:return this.renderOptional(e,t.element);case`repetition`:return this.renderRepetition(e,t.element,t.min);case`special`:return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let n=this.svg.append(`g`).attr(`class`,`railroad-rule`).attr(`transform`,`translate(0, ${t})`),r=e.name+` =`,i=this.measureText(r).width+20,a=i+20,o=n.append(`g`),s=this.renderExpression(o,e.definition),l=Math.max(20,s.dimensions.up),u=l-s.dimensions.up;return o.attr(`transform`,`translate(${a}, ${u})`),n.append(`g`).attr(`class`,`railroad-rule-name-group`).append(`text`).attr(`class`,`railroad-rule-name`).attr(`x`,0).attr(`y`,l).text(r),n.append(`g`).attr(`class`,`railroad-start`).append(`circle`).attr(`cx`,i).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`g`).attr(`class`,`railroad-end`).append(`circle`).attr(`cx`,a+s.dimensions.width+10).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new v2().moveTo(i+this.config.markerRadius,l).lineTo(a,l).build()),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new v2().moveTo(a+s.dimensions.width,l).lineTo(a+s.dimensions.width+10-this.config.markerRadius,l).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:a+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(let r of e){let e=this.renderRule(r,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+this.config.padding*2,height:t+this.config.padding}}},y2=N((e,t,n)=>{ls(e,t.height,t.width,n),e.attr(`viewBox`,`0 0 ${t.width} ${t.height}`)},`configureRailroadSvgSize`),b2={draw:N((e,t,n)=>{P.debug(`[Railroad] Rendering diagram +`+e);try{let e=Op(t);e.attr(`class`,`railroad-diagram`);let n=Xo().railroad?.useMaxWidth??!0,r=p2.getRules();if(P.debug(`[Railroad] Rendering ${r.length} rules`),r.length===0){P.warn(`[Railroad] No rules to render`),y2(e,{height:100,width:200},n);return}y2(e,new SPt(e,xPt()).renderDiagram(r),n),P.debug(`[Railroad] Render complete`)}catch(e){throw P.error(`[Railroad] Render error:`,e),e}},`draw`)}})),wPt=l({default:()=>S2,diagram:()=>OPt}),TPt,x2,EPt,DPt,OPt,S2,C2=o((()=>{CPt(),sP(),kp(),Os(),er(),Zn(),nW(),TPt=wgt().Railroad.parser.LangiumParser,x2=N(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(x2);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(x2);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:x2(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:x2(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:x2(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),EPt=N(e=>({name:e.name,definition:x2(e.definition)}),`transformRule`),DPt=N(e=>{oP(e,p2),e.title&&p2.setTitle(e.title),e.rules.map(e=>p2.addRule(EPt(e)))},`populateDb`),OPt={parser:{parse:N(e=>{p2.clear(),P.debug(`[Railroad Parser] Starting Langium parse`);let t=TPt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new tW(t);let n=t.value;P.debug(`[Railroad Parser] Parsed rules:`,n.rules.length),DPt(n),P.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:p2}},db:p2,renderer:b2,styles:_2},S2=OPt})),kPt=l({diagram:()=>O2}),APt,w2,T2,E2,D2,jPt,MPt,NPt,O2,PPt=o((()=>{CPt(),sP(),kp(),Os(),er(),Zn(),nW(),APt=xU().RailroadEbnf.parser.LangiumParser,w2=N(e=>{let t=e.alternatives.map(T2);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),T2=N(e=>{let t=e.elements.map(jPt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),E2=N(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return w2(e.element);case`EbnfOptional`:return{type:`optional`,element:w2(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:w2(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),D2=N((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},E2(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),jPt=N(e=>e.postfixes.reduce((e,t)=>D2(e,t),E2(e.base)),`transformTerm`),MPt=N(e=>({name:e.name,definition:w2(e.definition)}),`transformRule`),NPt=N(e=>{oP(e,p2),e.title&&p2.setTitle(e.title),e.rules.map(e=>p2.addRule(MPt(e)))},`populateDb`),O2={parser:{parse:N(e=>{p2.clear(),P.debug(`[EBNF Parser] Starting Langium parse`);let t=APt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new tW(t);let n=t.value;P.debug(`[EBNF Parser] Parsed rules:`,n.rules.length),NPt(n),P.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:p2}},db:p2,renderer:b2,styles:_2}})),FPt=l({diagram:()=>UPt}),IPt,k2,LPt,RPt,zPt,BPt,VPt,HPt,UPt,WPt=o((()=>{CPt(),sP(),kp(),Os(),er(),Zn(),nW(),IPt=CU().RailroadAbnf.parser.LangiumParser,k2=N(e=>{let t=e.alternatives.map(LPt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),LPt=N(e=>{let t=e.elements.map(zPt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),RPt=N(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),zPt=N(e=>{let t=BPt(e.primary);if(!e.repeat)return t;let{min:n,max:r}=RPt(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),BPt=N(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return k2(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:k2(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),VPt=N(e=>({name:e.name,definition:k2(e.definition)}),`transformRule`),HPt=N(e=>{oP(e,p2),e.title&&p2.setTitle(e.title),e.rules.map(e=>p2.addRule(VPt(e)))},`populateDb`),UPt={parser:{parse:N(e=>{p2.clear(),P.debug(`[ABNF Parser] Starting Langium parse`);let t=IPt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new tW(t);let n=t.value;P.debug(`[ABNF Parser] Parsed rules:`,n.rules.length),HPt(n),P.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:p2}},db:p2,renderer:b2,styles:_2}})),GPt=l({diagram:()=>ZPt}),A2,j2,KPt,qPt,JPt,M2,N2,YPt,XPt,ZPt,QPt=o((()=>{CPt(),sP(),kp(),Os(),er(),Zn(),nW(),A2=Igt().RailroadPeg.parser.LangiumParser,j2=N(e=>{let t=e.alternatives.map(KPt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),KPt=N(e=>{let t=e.elements.map(qPt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),qPt=N(e=>{let t=M2(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${JPt(t)}`:`!${JPt(t)}`}:t},`transformPrefix`),JPt=N(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),M2=N(e=>{let t=N2(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),N2=N(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return j2(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),YPt=N(e=>({name:e.name,definition:j2(e.definition)}),`transformRule`),XPt=N(e=>{oP(e,p2),e.title&&p2.setTitle(e.title),e.rules.map(e=>p2.addRule(YPt(e)))},`populateDb`),ZPt={parser:{parse:N(e=>{p2.clear(),P.debug(`[PEG Parser] Starting Langium parse`);let t=A2.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new tW(t);let n=t.value;P.debug(`[PEG Parser] Parsed rules:`,n.rules.length),XPt(n),P.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:p2}},db:p2,renderer:b2,styles:_2}})),$Pt=l({default:()=>C4});function eFt(e,t){e.attr(`role`,sIt),t!==``&&e.attr(`aria-roledescription`,t)}function tFt(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}function nFt(e){let t=co(e);if(!t)return{text:e,metadata:{}};let n=t.indent,r=n?t.body.split(` `).map(e=>e.startsWith(n)?e.slice(n.length):e).join(` -`):t.body,i=tm(r,{schema:Qp})??{};i=typeof i==`object`&&!Array.isArray(i)?i:{};let a={};return i.displayMode&&(a.displayMode=i.displayMode.toString()),i.title&&(a.title=i.title.toString()),i.config&&(a.config=i.config),{text:e.slice(t.length),metadata:a}}function V2(e){let t=e,n=tIt(e),r=nIt(n),i=rIt(r.text),a=Rm(r.config,i.directive),o=i.text;return{code:{raw:t,cleaned:eIt(o),withComments:o,frontmatterLineOffset:n.length>r.text.length?(n.substring(0,n.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:a}}function GPt(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}function KPt(e){let t=V2(e);is();let n;try{n=dpe(t.code.cleaned,ns())}catch{n=void 0}return Lpe(n),rs(t.config??{}),t}async function qPt(e,t){g4();try{let{code:t,config:n}=KPt(e);return{diagramType:(await _4.fromText(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}finally{Lpe(void 0)}}function JPt(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}function YPt(e={}){let t=To({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),zpe(t);let n=Jo.theme;t?.theme&&Object.hasOwn(Vo,t.theme)?t.themeVariables=Vo[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!==`null`&&(t.theme=n),t.themeVariables=Vo[n].getThemeVariables(t.themeVariables));let r=typeof t==`object`?Rpe(t):Vpe();rse(r.logLevel),g4()}function H2(e,t,n,r){HPt(t,e),UPt(t,n,r,t.attr(`id`))}var U2,W2,G2,K2,q2,J2,Y2,X2,Z2,XPt,ZPt,QPt,Q2,$2,e4,$Pt,eFt,tFt,nFt,rFt,iFt,aFt,oFt,sFt,cFt,lFt,uFt,dFt,t4,fFt,pFt,mFt,n4,r4,hFt,gFt,_Ft,vFt,yFt,bFt,xFt,SFt,CFt,i4,a4,wFt,TFt,EFt,DFt,OFt,kFt,AFt,jFt,MFt,o4,NFt,PFt,s4,FFt,c4,IFt,LFt,RFt,l4,zFt,BFt,VFt,HFt,UFt,WFt,u4,d4,f4,GFt,KFt,p4,qFt,m4,JFt,h4,YFt,XFt,g4,ZFt,QFt,_4,v4,$Ft,eIt,tIt,nIt,rIt,iIt,aIt,oIt,sIt,cIt,lIt,uIt,dIt,fIt,pIt,mIt,hIt,gIt,_It,vIt,yIt,bIt,xIt,SIt,CIt,wIt,TIt,EIt,DIt,y4,OIt,b4,x4,kIt,AIt,jIt,MIt,S4,NIt,PIt,C4,w4,FIt,IIt,LIt,T4,RIt,zIt=o((()=>{kp(),rm(),YM(),Y_(),fv(),V_(),I_(),sm(),Dh(),_m(),Gm(),Ls(),ar(),tr(),wke(),Dp(),G8e(),qr(),zDe(),U2=`c4`,W2={id:U2,detector:N(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(qN(),Z8e));return{id:U2,diagram:e}},`loader`)},G2=`flowchart-v2`,K2={id:G2,detector:N(e=>/^\s*(graph|flowchart)/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(C7e(),S7e));return{id:G2,diagram:e}},`loader`)},q2=`agentflow`,J2={id:q2,detector:N(e=>/^\s*agentflow-beta\b/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(X7e(),w7e));return{id:q2,diagram:e}},`loader`)},Y2=`swimlane`,X2={id:Y2,detector:N(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($7e(),Z7e));return{id:Y2,diagram:e}},`loader`)},Z2=`er`,XPt={id:Z2,detector:N(e=>/^\s*erDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(c9e(),e9e));return{id:Z2,diagram:e}},`loader`)},ZPt=`gitGraph`,QPt={id:ZPt,detector:N(e=>/^\s*gitGraph/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Dvt(),aW));return{id:ZPt,diagram:e}},`loader`)},Q2=`gantt`,$2={id:Q2,detector:N(e=>/^\s*gantt/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Eyt(),jvt));return{id:Q2,diagram:e}},`loader`)},e4=`info`,$Pt={id:e4,detector:N(e=>/^\s*info/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jyt(),Dyt));return{id:e4,diagram:e}},`loader`)},eFt=`pie`,tFt={id:eFt,detector:N(e=>/^\s*pie/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(LG(),Myt));return{id:eFt,diagram:e}},`loader`)},nFt=`quadrantChart`,rFt={id:nFt,detector:N(e=>/^\s*quadrantChart/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ibt(),Byt));return{id:nFt,diagram:e}},`loader`)},iFt=`xychart`,aFt={id:iFt,detector:N(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Pbt(),qG));return{id:iFt,diagram:e}},`loader`)},oFt=`requirement`,sFt={id:oFt,detector:N(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Hbt(),Fbt));return{id:oFt,diagram:e}},`loader`)},cFt=`sequence`,lFt={id:cFt,detector:N(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ixt(),Ubt));return{id:cFt,diagram:e}},`loader`)},uFt=`classDiagram`,dFt={id:uFt,detector:N(e=>/^\s*classDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(zxt(),Lxt));return{id:uFt,diagram:e}},`loader`)},t4=`stateDiagram`,fFt={id:t4,detector:N(e=>/^\s*stateDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ySt(),Tq));return{id:t4,diagram:e}},`loader`)},pFt=`journey`,mFt={id:pFt,detector:N(e=>/^\s*journey/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(BSt(),eJ));return{id:pFt,diagram:e}},`loader`)},n4=4,r4=75,hFt=N(e=>{let t=[];for(let n of e.split(/\s+/)){let e=[...n];for(;e.length>r4;)t.push(e.slice(0,r4).join(``)),e=e.slice(r4);e.length>0&&t.push(e.join(``))}let n=[],r=``;for(let e of t){let t=r?`${r} ${e}`:e;[...t].length>r4?(n.push(r),r=e):r=t}if(r&&n.push(r),n.length>n4){n.length=n4;let e=n[n4-1]??``;n[n4-1]=`${[...e].slice(0,r4-3).join(``)}...`}return n},`wrapErrorMessage`),gFt={draw:N((e,t,n,r)=>{P.debug(`rendering svg for syntax error -`);let i=Op(t),a=i.append(`g`),o=hFt(r?.db.getErrorMessage?.()??``),s=o.length>0?500+o.length*56:512;i.attr(`viewBox`,`0 0 2412 ${s}`),_s(i,100,s,!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 ${n}`),o.forEach((e,t)=>{a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,510+t*56).attr(`font-size`,`42px`).style(`text-anchor`,`middle`).text(e)})},`draw`)},_Ft=gFt,yFt={db:{clear(){vFt=void 0},setErrorMessage(e){vFt=e},getErrorMessage(){return vFt}},renderer:gFt,parser:{parse:N(()=>{},`parse`)}},bFt=`flowchart-elk`,xFt={id:bFt,detector:N((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout=`elk`,!0):!1,`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(C7e(),S7e));return{id:bFt,diagram:e}},`loader`)},SFt=`timeline`,CFt={id:SFt,detector:N(e=>/^\s*timeline/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(CCt(),xJ));return{id:SFt,diagram:e}},`loader`)},i4=`mindmap`,a4={id:i4,detector:N(e=>/^\s*mindmap/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(VCt(),NCt));return{id:i4,diagram:e}},`loader`)},wFt=`kanban`,TFt={id:wFt,detector:N(e=>/^\s*kanban/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($Ct(),HCt));return{id:wFt,diagram:e}},`loader`)},EFt=`sankey`,DFt={id:EFt,detector:N(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(SY(),zwt));return{id:EFt,diagram:e}},`loader`)},OFt=`packet`,kFt={id:OFt,detector:N(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(oTt(),$wt));return{id:OFt,diagram:e}},`loader`)},AFt=`radar`,jFt={id:AFt,detector:N(e=>/^\s*radar-beta/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ETt(),OY));return{id:AFt,diagram:e}},`loader`)},MFt=`block`,o4={id:MFt,detector:N(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(XY(),DTt));return{id:MFt,diagram:e}},`loader`)},NFt=`treeView`,PFt={id:NFt,detector:N(e=>/^\s*treeView-beta/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jEt(),oEt));return{id:NFt,diagram:e}},`loader`)},s4=`architecture`,FFt={id:s4,detector:N(e=>/^\s*architecture/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(iDt(),FEt));return{id:s4,diagram:e}},`loader`)},c4=`eventmodeling`,IFt={id:c4,detector:N(e=>/^\s*eventmodeling/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(VX(),aDt));return{id:c4,diagram:e}},`loader`)},LFt=`ishikawa`,RFt={id:LFt,detector:N(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nZ(),LDt));return{id:LFt,diagram:e}},`loader`)},l4=`venn`,zFt={id:l4,detector:N(e=>/^\s*venn-beta/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(WOt(),vZ));return{id:l4,diagram:e}},`loader`)},BFt=`treemap`,VFt={id:BFt,detector:N(e=>/^\s*treemap/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ZOt(),IZ));return{id:BFt,diagram:e}},`loader`)},HFt=`usecase`,UFt={id:HFt,detector:N(e=>/^\s*usecase-beta(?:\s|$)/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(hNt(),n1));return{id:HFt,diagram:e}},`loader`)},WFt=`wardley`,u4={id:WFt,detector:N(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(VNt(),gNt));return{id:WFt,diagram:e}},`loader`)},d4=`cynefin`,f4={id:d4,detector:N(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($Nt(),HNt));return{id:d4,diagram:e}},`loader`)},GFt=`railroad`,KFt={id:GFt,detector:N(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(_Pt(),D2));return{id:GFt,diagram:e}},`loader`)},p4=`railroadEbnf`,qFt={id:p4,detector:N(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(I2(),vPt));return{id:p4,diagram:e}},`loader`)},m4=`railroadAbnf`,JFt={id:m4,detector:N(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jPt(),SPt));return{id:m4,diagram:e}},`loader`)},h4=`railroadPeg`,YFt={id:h4,detector:N(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(z2(),MPt));return{id:h4,diagram:e}},`loader`)},XFt=!1,g4=N(()=>{XFt||(XFt=!0,Is(`error`,yFt,e=>e.toLowerCase().trim()===`error`),Is(`---`,{db:{clear:N(()=>{},`clear`)},styles:{},renderer:{draw:N(()=>{},`draw`)},parser:{parse:N(()=>{throw 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:N(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),fpe(xFt,a4,FFt),fpe(J2,W2,TFt,dFt,XPt,$2,$Pt,tFt,sFt,lFt,X2,K2,CFt,QPt,fFt,mFt,rFt,DFt,kFt,aFt,o4,IFt,PFt,jFt,RFt,VFt,KFt,qFt,JFt,YFt,zFt,u4,f4,UFt))},`addDiagrams`),ZFt=N(async()=>{P.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(Co).map(async([e,{detector:t,loader:n}])=>{if(n)try{bme(e)}catch{try{let{diagram:e,id:r}=await n();Is(r,e,t)}catch(t){throw P.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete Co[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){P.error(`Failed to load ${e.length} external diagrams`);for(let t of e)P.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),QFt=`graphics-document document`,N(HPt,`setA11yDiagramInfo`),N(UPt,`addSVGa11yTitleDescription`),_4=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{N(this,`Diagram`)}static async fromText(t,n={}){let r=typeof t==`string`?{raw:t,cleaned:t}:t,i=ns(),a=dpe(r.cleaned,i);try{bme(a)}catch{let e=ppe(a);if(!e)throw new upe(`Diagram ${a} not found.`);let{id:t,diagram:n}=await e();Is(t,n)}let{db:o,parser:s,renderer:l,init:u}=bme(a);s.parser&&(s.parser.yy=o),o.clear?.(),u?.(i),n.title&&o.setDiagramTitle?.(n.title);let d=r.cleaned;if(o.preserveCommentsWhenParsing&&r.withComments){let e=i.maxTextSize??Wo.maxTextSize;r.withComments.length>e?P.warn(`Comment-preserving source exceeds maxTextSize (${r.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):d=r.withComments}let f=bOe(d)+` -`;return r.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(r.frontmatterLineOffset),await s.parse(f),new e(a,f,o,s,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},v4=[],$Ft=N(()=>{v4.forEach(e=>{e()}),v4=[]},`attachFunctions`),eIt=N(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`),N(WPt,`extractFrontMatter`),tIt=N(e=>e.replace(/\r\n?/g,` -`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),nIt=N(e=>{let{text:t,metadata:n}=WPt(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),rIt=N(e=>{let t=Hm.detectInit(e)??{},n=Hm.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:rOe(e),directive:t}},`processDirectives`),N(V2,`preprocessDiagram`),N(GPt,`toBase64`),iIt=5e4,aIt=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,oIt=`sandbox`,sIt=`loose`,cIt=`http://www.w3.org/2000/svg`,lIt=`http://www.w3.org/1999/xlink`,uIt=`http://www.w3.org/1999/xhtml`,dIt=`100%`,fIt=`100%`,pIt=`border:0;margin:0;`,mIt=`margin:0`,hIt=`allow-top-navigation-by-user-activation allow-popups`,gIt=`The "iframe" tag is not supported by your browser.`,_It=[`foreignobject`],vIt=[`dominant-baseline`],N(KPt,`processAndSetConfigs`),N(qPt,`parse`),yIt=N((e,t,n=[])=>`.${e} ${t} ${Ape(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),bIt=N((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=os(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{LDe(e.styles)||r.forEach(t=>{n.insertRule(yIt(e.id,t,e.styles),n.cssRules.length)}),LDe(e.textStyles)||n.insertRule(yIt(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0){if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=spe(t)+` +`):t.body,i=am(r,{schema:rm})??{};i=typeof i==`object`&&!Array.isArray(i)?i:{};let a={};return i.displayMode&&(a.displayMode=i.displayMode.toString()),i.title&&(a.title=i.title.toString()),i.config&&(a.config=i.config),{text:e.slice(t.length),metadata:a}}function P2(e){let t=e,n=dIt(e),r=fIt(n),i=pIt(r.text),a=Bm(r.config,i.directive),o=i.text;return{code:{raw:t,cleaned:uIt(o),withComments:o,frontmatterLineOffset:n.length>r.text.length?(n.substring(0,n.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:a}}function F2(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}function I2(e){let t=P2(e);Zo();let n;try{n=uo(t.code.cleaned,Xo())}catch{n=void 0}return Ko(n),tme(t.config??{}),t}async function L2(e,t){f4();try{let{code:t,config:n}=I2(e);return{diagramType:(await p4.fromText(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}finally{Ko(void 0)}}function R2(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}function z2(e={}){let t=mo({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),$pe(t);let n=Lo.theme;t?.theme&&Object.hasOwn(jo,t.theme)?t.themeVariables=jo[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!==`null`&&(t.theme=n),t.themeVariables=jo[n].getThemeVariables(t.themeVariables));let r=typeof t==`object`?Qpe(t):Jo();pse(r.logLevel),f4()}function B2(e,t,n,r){eFt(t,e),tFt(t,n,r,t.attr(`id`))}var V2,H2,U2,W2,rFt,iFt,G2,K2,q2,J2,aFt,oFt,sFt,cFt,lFt,uFt,dFt,fFt,pFt,mFt,hFt,gFt,_Ft,Y2,vFt,yFt,X2,bFt,xFt,SFt,CFt,wFt,Z2,Q2,TFt,EFt,DFt,OFt,$2,e4,kFt,AFt,jFt,t4,MFt,NFt,PFt,FFt,IFt,n4,LFt,r4,i4,a4,RFt,zFt,BFt,VFt,HFt,UFt,WFt,GFt,KFt,qFt,JFt,o4,s4,c4,YFt,XFt,ZFt,l4,QFt,u4,$Ft,eIt,tIt,nIt,rIt,iIt,aIt,d4,f4,oIt,sIt,p4,cIt,lIt,uIt,dIt,fIt,pIt,mIt,hIt,gIt,_It,vIt,yIt,bIt,xIt,SIt,CIt,wIt,TIt,EIt,DIt,OIt,kIt,AIt,jIt,MIt,m4,NIt,PIt,h4,FIt,IIt,LIt,g4,_4,RIt,zIt,BIt,VIt,HIt,v4,UIt,y4,b4,x4,WIt,GIt,S4,C4,KIt=o((()=>{kp(),om(),UM(),Q_(),vv(),G_(),z_(),dm(),Bh(),bm(),qm(),Os(),er(),Zn(),xke(),Dp(),t5e(),Wr(),HDe(),V2=`c4`,H2={id:V2,detector:N(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(m7e(),l5e));return{id:V2,diagram:e}},`loader`)},U2=`flowchart-v2`,W2={id:U2,detector:N(e=>/^\s*(graph|flowchart)/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(A7e(),ZN));return{id:U2,diagram:e}},`loader`)},rFt=`agentflow`,iFt={id:rFt,detector:N(e=>/^\s*agentflow-beta\b/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(r9e(),j7e));return{id:rFt,diagram:e}},`loader`)},G2=`swimlane`,K2={id:G2,detector:N(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(a9e(),i9e));return{id:G2,diagram:e}},`loader`)},q2=`er`,J2={id:q2,detector:N(e=>/^\s*erDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(m9e(),o9e));return{id:q2,diagram:e}},`loader`)},aFt=`gitGraph`,oFt={id:aFt,detector:N(e=>/^\s*gitGraph/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Lvt(),q_t));return{id:aFt,diagram:e}},`loader`)},sFt=`gantt`,cFt={id:sFt,detector:N(e=>/^\s*gantt/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Fyt(),Hvt));return{id:sFt,diagram:e}},`loader`)},lFt=`info`,uFt={id:lFt,detector:N(e=>/^\s*info/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Byt(),Iyt));return{id:lFt,diagram:e}},`loader`)},dFt=`pie`,fFt={id:dFt,detector:N(e=>/^\s*pie/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(IG(),Vyt));return{id:dFt,diagram:e}},`loader`)},pFt=`quadrantChart`,mFt={id:pFt,detector:N(e=>/^\s*quadrantChart/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(JG(),LG));return{id:pFt,diagram:e}},`loader`)},hFt=`xychart`,gFt={id:hFt,detector:N(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(CK(),cbt));return{id:hFt,diagram:e}},`loader`)},_Ft=`requirement`,Y2={id:_Ft,detector:N(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Gbt(),Ibt));return{id:_Ft,diagram:e}},`loader`)},vFt=`sequence`,yFt={id:vFt,detector:N(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Pxt(),Kbt));return{id:vFt,diagram:e}},`loader`)},X2=`classDiagram`,bFt={id:X2,detector:N(e=>/^\s*classDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(zxt(),Fxt));return{id:X2,diagram:e}},`loader`)},xFt=`stateDiagram`,SFt={id:xFt,detector:N(e=>/^\s*stateDiagram/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(wSt(),Bxt));return{id:xFt,diagram:e}},`loader`)},CFt=`journey`,wFt={id:CFt,detector:N(e=>/^\s*journey/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(TJ(),eJ));return{id:CFt,diagram:e}},`loader`)},Z2=4,Q2=75,TFt=N(e=>{let t=[];for(let n of e.split(/\s+/)){let e=[...n];for(;e.length>Q2;)t.push(e.slice(0,Q2).join(``)),e=e.slice(Q2);e.length>0&&t.push(e.join(``))}let n=[],r=``;for(let e of t){let t=r?`${r} ${e}`:e;[...t].length>Q2?(n.push(r),r=e):r=t}if(r&&n.push(r),n.length>Z2){n.length=Z2;let e=n[Z2-1]??``;n[Z2-1]=`${[...e].slice(0,Q2-3).join(``)}...`}return n},`wrapErrorMessage`),EFt={draw:N((e,t,n,r)=>{P.debug(`rendering svg for syntax error +`);let i=Op(t),a=i.append(`g`),o=TFt(r?.db.getErrorMessage?.()??``),s=o.length>0?500+o.length*56:512;i.attr(`viewBox`,`0 0 2412 ${s}`),ls(i,100,s,!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 ${n}`),o.forEach((e,t)=>{a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,510+t*56).attr(`font-size`,`42px`).style(`text-anchor`,`middle`).text(e)})},`draw`)},DFt=EFt,$2={db:{clear(){OFt=void 0},setErrorMessage(e){OFt=e},getErrorMessage(){return OFt}},renderer:EFt,parser:{parse:N(()=>{},`parse`)}},e4=`flowchart-elk`,kFt={id:e4,detector:N((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout=`elk`,!0):!1,`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(A7e(),ZN));return{id:e4,diagram:e}},`loader`)},AFt=`timeline`,jFt={id:AFt,detector:N(e=>/^\s*timeline/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(TCt(),VSt));return{id:AFt,diagram:e}},`loader`)},t4=`mindmap`,MFt={id:t4,detector:N(e=>/^\s*mindmap/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(zCt(),PCt));return{id:t4,diagram:e}},`loader`)},NFt=`kanban`,PFt={id:NFt,detector:N(e=>/^\s*kanban/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($Ct(),BCt));return{id:NFt,diagram:e}},`loader`)},FFt=`sankey`,IFt={id:FFt,detector:N(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Xwt(),Rwt));return{id:FFt,diagram:e}},`loader`)},n4=`packet`,LFt={id:n4,detector:N(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(rTt(),AY));return{id:n4,diagram:e}},`loader`)},r4=`radar`,i4={id:r4,detector:N(e=>/^\s*radar-beta/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(wTt(),IY));return{id:r4,diagram:e}},`loader`)},a4=`block`,RFt={id:a4,detector:N(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(rEt(),TTt));return{id:a4,diagram:e}},`loader`)},zFt=`treeView`,BFt={id:zFt,detector:N(e=>/^\s*treeView-beta/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jEt(),iEt));return{id:zFt,diagram:e}},`loader`)},VFt=`architecture`,HFt={id:VFt,detector:N(e=>/^\s*architecture/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nDt(),fX));return{id:VFt,diagram:e}},`loader`)},UFt=`eventmodeling`,WFt={id:UFt,detector:N(e=>/^\s*eventmodeling/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ADt(),rDt));return{id:UFt,diagram:e}},`loader`)},GFt=`ishikawa`,KFt={id:GFt,detector:N(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(KDt(),jDt));return{id:GFt,diagram:e}},`loader`)},qFt=`venn`,JFt={id:qFt,detector:N(e=>/^\s*venn-beta/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(VOt(),kZ));return{id:qFt,diagram:e}},`loader`)},o4=`treemap`,s4={id:o4,detector:N(e=>/^\s*treemap/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(YOt(),HOt));return{id:o4,diagram:e}},`loader`)},c4=`usecase`,YFt={id:c4,detector:N(e=>/^\s*usecase-beta(?:\s|$)/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(wNt(),mMt));return{id:c4,diagram:e}},`loader`)},XFt=`wardley`,ZFt={id:XFt,detector:N(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(XNt(),TNt));return{id:XFt,diagram:e}},`loader`)},l4=`cynefin`,QFt={id:l4,detector:N(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(sPt(),Z0));return{id:l4,diagram:e}},`loader`)},u4=`railroad`,$Ft={id:u4,detector:N(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(C2(),wPt));return{id:u4,diagram:e}},`loader`)},eIt=`railroadEbnf`,tIt={id:eIt,detector:N(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(PPt(),kPt));return{id:eIt,diagram:e}},`loader`)},nIt=`railroadAbnf`,rIt={id:nIt,detector:N(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(WPt(),FPt));return{id:nIt,diagram:e}},`loader`)},iIt=`railroadPeg`,aIt={id:iIt,detector:N(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:N(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(QPt(),GPt));return{id:iIt,diagram:e}},`loader`)},d4=!1,f4=N(()=>{d4||(d4=!0,Es(`error`,$2,e=>e.toLowerCase().trim()===`error`),Es(`---`,{db:{clear:N(()=>{},`clear`)},styles:{},renderer:{draw:N(()=>{},`draw`)},parser:{parse:N(()=>{throw 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:N(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),fo(kFt,MFt,HFt),fo(iFt,H2,PFt,bFt,J2,cFt,uFt,fFt,Y2,yFt,K2,W2,jFt,oFt,SFt,wFt,mFt,IFt,LFt,gFt,RFt,WFt,BFt,i4,KFt,s4,$Ft,tIt,rIt,aIt,JFt,ZFt,QFt,YFt))},`addDiagrams`),oIt=N(async()=>{P.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(lo).map(async([e,{detector:t,loader:n}])=>{if(n)try{Ds(e)}catch{try{let{diagram:e,id:r}=await n();Es(r,e,t)}catch(t){throw P.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete lo[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){P.error(`Failed to load ${e.length} external diagrams`);for(let t of e)P.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),sIt=`graphics-document document`,N(eFt,`setA11yDiagramInfo`),N(tFt,`addSVGa11yTitleDescription`),p4=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{N(this,`Diagram`)}static async fromText(t,n={}){let r=typeof t==`string`?{raw:t,cleaned:t}:t,i=Xo(),a=uo(r.cleaned,i);try{Ds(a)}catch{let e=Ape(a);if(!e)throw new Ope(`Diagram ${a} not found.`);let{id:t,diagram:n}=await e();Es(t,n)}let{db:o,parser:s,renderer:l,init:u}=Ds(a);s.parser&&(s.parser.yy=o),o.clear?.(),u?.(i),n.title&&o.setDiagramTitle?.(n.title);let d=r.cleaned;if(o.preserveCommentsWhenParsing&&r.withComments){let e=i.maxTextSize??Fo.maxTextSize;r.withComments.length>e?P.warn(`Comment-preserving source exceeds maxTextSize (${r.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):d=r.withComments}let f=COe(d)+` +`;return r.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(r.frontmatterLineOffset),await s.parse(f),new e(a,f,o,s,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},cIt=[],lIt=N(()=>{cIt.forEach(e=>{e()}),cIt=[]},`attachFunctions`),uIt=N(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`),N(nFt,`extractFrontMatter`),dIt=N(e=>e.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),fIt=N(e=>{let{text:t,metadata:n}=nFt(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),pIt=N(e=>{let t=Wm.detectInit(e)??{},n=Wm.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:oOe(e),directive:t}},`processDirectives`),N(P2,`preprocessDiagram`),N(F2,`toBase64`),mIt=5e4,hIt=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,gIt=`sandbox`,_It=`loose`,vIt=`http://www.w3.org/2000/svg`,yIt=`http://www.w3.org/1999/xlink`,bIt=`http://www.w3.org/1999/xhtml`,xIt=`100%`,SIt=`100%`,CIt=`border:0;margin:0;`,wIt=`margin:0`,TIt=`allow-top-navigation-by-user-activation allow-popups`,EIt=`The "iframe" tag is not supported by your browser.`,DIt=[`foreignobject`],OIt=[`dominant-baseline`],N(I2,`processAndSetConfigs`),N(L2,`parse`),kIt=N((e,t,n=[])=>`.${e} ${t} ${Kpe(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),AIt=N((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=es(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{BDe(e.styles)||r.forEach(t=>{n.insertRule(kIt(e.id,t,e.styles),n.cssRules.length)}),BDe(e.textStyles)||n.insertRule(kIt(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0){if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=ao(t)+` `}else r+=`${e.themeCSS} -`}return r+spe(n)},`createCssStyles`),xIt=N((e,t)=>V8e(I8e(`${e}{${t}}`),W8e([N(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))?n:!n.startsWith(`${e} `)&&!n.startsWith(`${e}>`)||n.startsWith(`${e} ||`)?`${e} ${n}`:n)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(P.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=u8e))},`addNamespace`),H8e])),`compileCSS`),SIt=N((e,t,n,r)=>{let i=bIt(e,n);return xIt(r,mme(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),CIt=N((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=Um(r),r=r.replace(/
    /g,`
    `),r},`cleanUpSvgCode`),wIt=N((e=``,t)=>``,`putIntoIFrame`),TIt=N((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,cIt);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`),N(JPt,`sandboxedIframe`),EIt=N((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),DIt=N(async function(e,t,n){g4();let r=KPt(t),i=r.code;t=i.cleaned;let a=ns();P.debug(a),t.length>(a?.maxTextSize??iIt)&&(t=aIt,i={raw:t,cleaned:t});let o=`#${e}`,s=`i`+e,l=`#`+s,u=`d`+e,d=`#`+u,f=N(()=>{let e=Qc(m?l:d).node();e&&`remove`in e&&e.remove()},`removeTempElements`),p=Qc(document.body),m=a.securityLevel===oIt,h=a.securityLevel===sIt,g=a.fontFamily;n===void 0?(EIt(document,e,u,s),m?(p=Qc(JPt(Qc(document.body),s).nodes()[0].contentDocument.body),p.node().style.margin=`0`):p=Qc(`body`),TIt(p,e,u)):(n&&(n.innerHTML=``),m?(p=Qc(JPt(Qc(n),s).nodes()[0].contentDocument.body),p.node().style.margin=`0`):p=Qc(n),TIt(p,e,u,`font-family: ${g}`,lIt));let _,v;try{_=await _4.fromText(i,{title:r.title})}catch(e){if(a.suppressErrorRendering)throw f(),e;_=await _4.fromText(`error`),v=e,_.db.setErrorMessage?.(XDe(e))}let y=p.select(d).node(),b=_.type,x=y.firstChild,S=x.firstChild,C=_.renderer.getClasses?.(t,_),w=SIt(a,b,C,o),T=document.createElement(`style`);T.innerHTML=w,x.insertBefore(T,S);try{await _.renderer.draw(t,e,`12.2.0`,_)}catch(n){throw a.suppressErrorRendering?f():_Ft.draw(t,e,`12.2.0`),n}let E=p.select(`${d} svg`),D=_.db.getAccTitle?.(),O=_.db.getAccDescription?.();H2(b,E,D,O);let k=N(()=>{p.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,uIt);let t=p.select(d).node().innerHTML;if(P.debug(`config.arrowMarkerAbsolute`,a.arrowMarkerAbsolute),t=CIt(t,m,Yo(a.arrowMarkerAbsolute)),m){let e=p.select(d+` svg`).node();t=wIt(t,e)}else h||(t=Kr.sanitize(t,{ADD_TAGS:_It,ADD_ATTR:vIt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return $Ft(),t},`serializeSvg`)();if(v)throw v;return f(),{diagramType:b,svg:k,bindFunctions:_.db.bindFunctions}},`renderDiagram`),y4=N(async function(e,t,n){try{return await DIt(e,t,n)}finally{Lpe(void 0)}},`render`),N(YPt,`initialize`),OIt=N((e,t={})=>{let{code:n}=V2(e);return _4.fromText(n,t)},`getDiagramFromText`),N(H2,`addA11yInfo`),b4=Object.freeze({render:y4,parse:qPt,getDiagramFromText:OIt,initialize:YPt,getConfig:ns,setConfig:Hpe,getSiteConfig:Vpe,updateSiteConfig:Bpe,reset:N(()=>{is()},`reset`),globalReset:N(()=>{is(Jo)},`globalReset`),defaultConfig:Jo}),rse(ns().logLevel),is(ns()),x4=N((e,t,n)=>{P.warn(e),YDe(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),kIt=N(async function(e={querySelector:`.mermaid`}){try{await AIt(e)}catch(t){if(YDe(t)&&P.error(t.str),T4.parseError&&T4.parseError(t),!e.suppressErrors)throw P.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),AIt=N(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=b4.getConfig();P.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);P.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(P.debug(`Start On Load: `+r?.startOnLoad),b4.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new Hm.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(P.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Cke(Hm.entityDecode(o)).trim().replace(//gi,`
    `);let r=Hm.detectInit(o);r&&P.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await LIt(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){x4(e,s,T4.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),jIt=N(function(e){b4.initialize(e)},`initialize`),MIt=N(async function(e,t,n){P.warn(`mermaid.init is deprecated. Please use run instead.`),e&&jIt(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await kIt(r)},`init`),S4=N(async(e,{lazyLoad:t=!0}={})=>{g4(),fpe(...e),t===!1&&await ZFt()},`registerExternalDiagrams`),NIt=N(function(){if(T4.startOnLoad){let{startOnLoad:e}=b4.getConfig();e&&T4.run().catch(e=>P.error(`Mermaid failed to initialize`,e))}},`contentLoaded`),typeof document<`u`&&window.addEventListener(`load`,NIt,!1),PIt=N(function(e){T4.parseError=e},`setParseErrorHandler`),C4=[],w4=!1,FIt=N(async()=>{if(!w4){for(w4=!0;C4.length>0;){let e=C4.shift();if(e)try{await e()}catch(e){P.error(`Error executing queue`,e)}}w4=!1}},`executeQueue`),IIt=N(async(e,t)=>new Promise((n,r)=>{let i=N(()=>new Promise((i,a)=>{b4.parse(e,t).then(e=>{i(e),n(e)},e=>{P.error(`Error parsing`,e),T4.parseError?.(e),a(e),r(e)})}),`performCall`);C4.push(i),FIt().catch(r)}),`parse`),LIt=N((e,t,n)=>new Promise((r,i)=>{let a=N(()=>new Promise((a,o)=>{b4.render(e,t,n).then(e=>{a(e),r(e)},e=>{P.error(`Error parsing`,e),T4.parseError?.(e),o(e),i(e)})}),`performCall`);C4.push(a),FIt().catch(i)}),`render`),T4={startOnLoad:!0,mermaidAPI:b4,parse:IIt,render:LIt,init:MIt,run:kIt,registerExternalDiagrams:S4,registerLayoutLoaders:c8e,initialize:jIt,parseError:void 0,contentLoaded:NIt,setParseErrorHandler:PIt,detectType:dpe,registerIconPacks:CEe,getRegisteredDiagramsMetadata:N(()=>Object.keys(Co).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},RIt=T4}));async function BIt(){let e=await(E4??=HIt()),t=matchMedia(`(prefers-color-scheme: dark)`).matches;return t!==D4&&(e.initialize({theme:t?ese:$oe}),D4=t),e}function VIt(e,t){let n=[...e.querySelectorAll(`.mermaid`)].filter(e=>!e.getAttribute(`data-processed`));if(n.length===0)return;let r=document.createElement(`div`);r.className=`markdown-body`,r.setAttribute(`aria-hidden`,`true`),r.style.cssText=`position: fixed; inset: 0 0 auto; visibility: hidden; pointer-events: none; display: block; padding: 0; margin: 0; zoom: 1;`;let i=n.map(e=>{let t=e.cloneNode(!0),n=document.createElement(`div`);return n.style.width=e.clientWidth>0?`${e.clientWidth}px`:`100%`,n.appendChild(t),r.appendChild(n),e.setAttribute(`data-processed`,`true`),t});document.body.appendChild(r),BIt().then(e=>e.run({nodes:i})).catch(e=>{console.error(e)}).finally(()=>{let a=!1;n.forEach((t,n)=>{e.isConnected&&e.contains(t)&&(t.replaceWith(i[n]),a=!0)}),r.remove(),a&&t()})}var HIt,E4,D4,UIt=o((()=>{$n(),HIt=()=>Promise.resolve().then(()=>(zIt(),B2)).then(e=>e.default)})),WIt,GIt=o((()=>{WIt=`.markdown-body { +`}return r+ao(n)},`createCssStyles`),jIt=N((e,t)=>X8e(G8e(`${e}{${t}}`),$8e([N(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))?n:!n.startsWith(`${e} `)&&!n.startsWith(`${e}>`)||n.startsWith(`${e} ||`)?`${e} ${n}`:n)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(P.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=x8e))},`addNamespace`),Z8e])),`compileCSS`),MIt=N((e,t,n,r)=>{let i=AIt(e,n);return jIt(r,Dme(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),m4=N((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=Gm(r),r=r.replace(/
    /g,`
    `),r},`cleanUpSvgCode`),NIt=N((e=``,t)=>``,`putIntoIFrame`),PIt=N((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,vIt);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`),N(R2,`sandboxedIframe`),h4=N((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),FIt=N(async function(e,t,n){f4();let r=I2(t),i=r.code;t=i.cleaned;let a=Xo();P.debug(a),t.length>(a?.maxTextSize??mIt)&&(t=hIt,i={raw:t,cleaned:t});let o=`#${e}`,s=`i`+e,l=`#`+s,u=`d`+e,d=`#`+u,f=N(()=>{let e=Bc(m?l:d).node();e&&`remove`in e&&e.remove()},`removeTempElements`),p=Bc(document.body),m=a.securityLevel===gIt,h=a.securityLevel===_It,g=a.fontFamily;n===void 0?(h4(document,e,u,s),m?(p=Bc(R2(Bc(document.body),s).nodes()[0].contentDocument.body),p.node().style.margin=`0`):p=Bc(`body`),PIt(p,e,u)):(n&&(n.innerHTML=``),m?(p=Bc(R2(Bc(n),s).nodes()[0].contentDocument.body),p.node().style.margin=`0`):p=Bc(n),PIt(p,e,u,`font-family: ${g}`,yIt));let _,v;try{_=await p4.fromText(i,{title:r.title})}catch(e){if(a.suppressErrorRendering)throw f(),e;_=await p4.fromText(`error`),v=e,_.db.setErrorMessage?.($De(e))}let y=p.select(d).node(),b=_.type,x=y.firstChild,S=x.firstChild,C=_.renderer.getClasses?.(t,_),w=MIt(a,b,C,o),T=document.createElement(`style`);T.innerHTML=w,x.insertBefore(T,S);try{await _.renderer.draw(t,e,`12.2.0`,_)}catch(n){throw a.suppressErrorRendering?f():DFt.draw(t,e,`12.2.0`),n}let E=p.select(`${d} svg`),D=_.db.getAccTitle?.(),O=_.db.getAccDescription?.();B2(b,E,D,O);let k=N(()=>{p.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,bIt);let t=p.select(d).node().innerHTML;if(P.debug(`config.arrowMarkerAbsolute`,a.arrowMarkerAbsolute),t=m4(t,m,Ro(a.arrowMarkerAbsolute)),m){let e=p.select(d+` svg`).node();t=NIt(t,e)}else h||(t=Ur.sanitize(t,{ADD_TAGS:DIt,ADD_ATTR:OIt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return lIt(),t},`serializeSvg`)();if(v)throw v;return f(),{diagramType:b,svg:k,bindFunctions:_.db.bindFunctions}},`renderDiagram`),IIt=N(async function(e,t,n){try{return await FIt(e,t,n)}finally{Ko(void 0)}},`render`),N(z2,`initialize`),LIt=N((e,t={})=>{let{code:n}=P2(e);return p4.fromText(n,t)},`getDiagramFromText`),N(B2,`addA11yInfo`),g4=Object.freeze({render:IIt,parse:L2,getDiagramFromText:LIt,initialize:z2,getConfig:Xo,setConfig:Yo,getSiteConfig:Jo,updateSiteConfig:qo,reset:N(()=>{Zo()},`reset`),globalReset:N(()=>{Zo(Lo)},`globalReset`),defaultConfig:Lo}),pse(Xo().logLevel),Zo(Xo()),_4=N((e,t,n)=>{P.warn(e),QDe(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),RIt=N(async function(e={querySelector:`.mermaid`}){try{await zIt(e)}catch(t){if(QDe(t)&&P.error(t.str),S4.parseError&&S4.parseError(t),!e.suppressErrors)throw P.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),zIt=N(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=g4.getConfig();P.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);P.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(P.debug(`Start On Load: `+r?.startOnLoad),g4.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new Wm.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(P.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=bke(Wm.entityDecode(o)).trim().replace(//gi,`
    `);let r=Wm.detectInit(o);r&&P.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await GIt(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){_4(e,s,S4.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),BIt=N(function(e){g4.initialize(e)},`initialize`),VIt=N(async function(e,t,n){P.warn(`mermaid.init is deprecated. Please use run instead.`),e&&BIt(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await RIt(r)},`init`),HIt=N(async(e,{lazyLoad:t=!0}={})=>{f4(),fo(...e),t===!1&&await oIt()},`registerExternalDiagrams`),v4=N(function(){if(S4.startOnLoad){let{startOnLoad:e}=g4.getConfig();e&&S4.run().catch(e=>P.error(`Mermaid failed to initialize`,e))}},`contentLoaded`),typeof document<`u`&&window.addEventListener(`load`,v4,!1),UIt=N(function(e){S4.parseError=e},`setParseErrorHandler`),y4=[],b4=!1,x4=N(async()=>{if(!b4){for(b4=!0;y4.length>0;){let e=y4.shift();if(e)try{await e()}catch(e){P.error(`Error executing queue`,e)}}b4=!1}},`executeQueue`),WIt=N(async(e,t)=>new Promise((n,r)=>{let i=N(()=>new Promise((i,a)=>{g4.parse(e,t).then(e=>{i(e),n(e)},e=>{P.error(`Error parsing`,e),S4.parseError?.(e),a(e),r(e)})}),`performCall`);y4.push(i),x4().catch(r)}),`parse`),GIt=N((e,t,n)=>new Promise((r,i)=>{let a=N(()=>new Promise((a,o)=>{g4.render(e,t,n).then(e=>{a(e),r(e)},e=>{P.error(`Error parsing`,e),S4.parseError?.(e),o(e),i(e)})}),`performCall`);y4.push(a),x4().catch(i)}),`render`),S4={startOnLoad:!0,mermaidAPI:g4,parse:WIt,render:GIt,init:VIt,run:RIt,registerExternalDiagrams:HIt,registerLayoutLoaders:v8e,initialize:BIt,parseError:void 0,contentLoaded:v4,setParseErrorHandler:UIt,detectType:uo,registerIconPacks:vm,getRegisteredDiagramsMetadata:N(()=>Object.keys(lo).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},C4=S4}));async function qIt(){let e=await(XIt??=YIt()),t=matchMedia(`(prefers-color-scheme: dark)`).matches;return t!==ZIt&&(e.initialize({theme:t?use:lse}),ZIt=t),e}function JIt(e,t){let n=[...e.querySelectorAll(`.mermaid`)].filter(e=>!e.getAttribute(`data-processed`));if(n.length===0)return;let r=document.createElement(`div`);r.className=`markdown-body`,r.setAttribute(`aria-hidden`,`true`),r.style.cssText=`position: fixed; inset: 0 0 auto; visibility: hidden; pointer-events: none; display: block; padding: 0; margin: 0; zoom: 1;`;let i=n.map(e=>{let t=e.cloneNode(!0),n=document.createElement(`div`);return n.style.width=e.clientWidth>0?`${e.clientWidth}px`:`100%`,n.appendChild(t),r.appendChild(n),e.setAttribute(`data-processed`,`true`),t});document.body.appendChild(r),qIt().then(e=>e.run({nodes:i})).catch(e=>{console.error(e)}).finally(()=>{let a=!1;n.forEach((t,n)=>{e.isConnected&&e.contains(t)&&(t.replaceWith(i[n]),a=!0)}),r.remove(),a&&t()})}var YIt,XIt,ZIt,QIt=o((()=>{Jn(),YIt=()=>Promise.resolve().then(()=>(KIt(),$Pt)).then(e=>e.default)})),$It,eLt=o((()=>{$It=`.markdown-body { --base-size-16: 1rem; --base-size-24: 1.5rem; --base-size-4: 0.25rem; @@ -5423,7 +5425,7 @@ ${n?``:` .markdown-body .highlight pre:has(+.zeroclipboard-container) { min-height: 52px; } -`})),KIt,qIt=o((()=>{KIt=`.markdown-body { +`})),w4,T4=o((()=>{w4=`.markdown-body { /* light */ color-scheme: light; --fgColor-danger: #d1242f; @@ -5477,7 +5479,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),JIt,YIt=o((()=>{JIt=`.markdown-body { +`})),E4,tLt=o((()=>{E4=`.markdown-body { /* dark */ color-scheme: dark; --fgColor-accent: #4493f8; @@ -5531,7 +5533,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),XIt,O4=o((()=>{XIt=`.markdown-body { +`})),nLt,rLt=o((()=>{nLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #ffc60015; @@ -5555,7 +5557,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),k4,A4=o((()=>{k4=`.markdown-body { +`})),iLt,aLt=o((()=>{iLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f1fa8c15; @@ -5579,7 +5581,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),ZIt,QIt=o((()=>{ZIt=`.markdown-body { +`})),D4,oLt=o((()=>{D4=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #fff8c5; @@ -5603,7 +5605,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),j4,$It=o((()=>{j4=`.markdown-body { +`})),O4,sLt=o((()=>{O4=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #bb800926; @@ -5627,7 +5629,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),eLt,M4=o((()=>{eLt=`.markdown-body { +`})),cLt,lLt=o((()=>{cLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #ecc48d1a; @@ -5651,7 +5653,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),N4,P4=o((()=>{N4=`.markdown-body { +`})),uLt,dLt=o((()=>{uLt=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #ea9d341a; @@ -5675,7 +5677,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),tLt,nLt=o((()=>{tLt=`.markdown-body { +`})),fLt,pLt=o((()=>{fLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f6c1771a; @@ -5699,7 +5701,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),rLt,iLt=o((()=>{rLt=`.markdown-body { +`})),mLt,hLt=o((()=>{mLt=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #b5890026; @@ -5723,7 +5725,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),aLt,oLt=o((()=>{aLt=`.markdown-body { +`})),gLt,_Lt=o((()=>{gLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #b5890026; @@ -5747,7 +5749,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),sLt,cLt=o((()=>{sLt=`.markdown-body { +`})),vLt,yLt=o((()=>{vLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f4eee41a; @@ -5771,7 +5773,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),lLt,uLt=o((()=>{lLt=`.markdown-body { +`})),bLt,xLt=o((()=>{bLt=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #df86181a; @@ -5795,7 +5797,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),dLt,fLt=o((()=>{dLt=`.markdown-body { +`})),SLt,CLt=o((()=>{SLt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #f7ecb51a; @@ -5819,7 +5821,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),pLt,mLt=o((()=>{pLt=`.markdown-body { +`})),wLt,TLt=o((()=>{wLt=`.markdown-body { /* light */ color-scheme: light; --bgColor-attention-muted: #fff8c5; @@ -5843,7 +5845,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),hLt,gLt=o((()=>{hLt=`.markdown-body { +`})),ELt,DLt=o((()=>{ELt=`.markdown-body { /* dark */ color-scheme: dark; --bgColor-attention-muted: #d0bf691a; @@ -5867,7 +5869,7 @@ ${n?``:` --focus-outlineColor: var(--borderColor-accent-emphasis); --borderColor-neutral-muted: var(--borderColor-muted); } -`})),_Lt,vLt=o((()=>{_Lt=`.markdown-alert { +`})),OLt,kLt=o((()=>{OLt=`.markdown-alert { padding: 0.5rem 1rem; margin-bottom: 16px; color: inherit; @@ -5936,7 +5938,7 @@ ${n?``:` .markdown-alert.markdown-alert-caution .markdown-alert-title { color: var(--color-caution); } -`})),yLt,bLt=o((()=>{yLt=`:root { +`})),k4,ALt=o((()=>{k4=`:root { --color-note: #0969da; --color-tip: #1a7f37; --color-warning: #9a6700; @@ -5944,7 +5946,7 @@ ${n?``:` --color-caution: #d1242f; --color-important: #8250df; } -`})),F4,xLt=o((()=>{F4=`:root { +`})),jLt,A4=o((()=>{jLt=`:root { --color-note: #2f81f7; --color-tip: #3fb950; --color-warning: #d29922; @@ -5952,7 +5954,7 @@ ${n?``:` --color-caution: #f85149; --color-important: #a371f7; } -`})),SLt,I4=o((()=>{SLt=`/*! +`})),MLt,NLt=o((()=>{MLt=`/*! Theme: GitHub Description: Light theme as seen on github.com Author: github.com @@ -6068,7 +6070,7 @@ ${n?``:` color: #b31d28; background-color: #ffeef0; } -`})),CLt,wLt=o((()=>{CLt=`/*! +`})),PLt,FLt=o((()=>{PLt=`/*! Theme: GitHub Dark Description: Dark theme as seen on github.com Author: github.com @@ -6184,7 +6186,7 @@ ${n?``:` color: #ffdcd7; background-color: #67060c; } -`})),L4,TLt=o((()=>{L4=`.code-copy-wrapper { +`})),ILt,LLt=o((()=>{ILt=`.code-copy-wrapper { position: relative; } @@ -6211,16 +6213,16 @@ ${n?``:` .code-copy-button:active { background: var(--borderColor-default, ButtonBorder); } -`}));function ELt(e=`auto`){if(qoe)return``;let t=z4[Zn]??z4.github,n=t.light??t.dark,r=t.dark??t.light,i=x(n)??`#ffffff`,a=x(r)??`#0d1117`;return[`.markdown-body { padding: 25px; }`,...R4(e,`body { background: ${i}; }`,`body { background: ${a}; }`)].join(` -`)}function DLt(e,t){let n=z4[e.replace(/-(light|dark|dawn)$/,``)]??z4.github,r=t?n.dark??n.light:n.light??n.dark;return`${WIt}\n${r}`}function OLt(e=`auto`){if(qoe)return[`:root { color-scheme: ${e===`auto`?`light dark`:e}; }`,`body, .markdown-body { background: Canvas; color: CanvasText; }`].join(` -`);let t=z4[Zn]??z4.github,n=t.light??t.dark,r=t.dark??t.light;return[WIt,...R4(e,n,r)].join(` -`)}function kLt(e=`auto`){return[_Lt,...R4(e,yLt,F4)].join(` -`)}function ALt(e=`auto`){return R4(e,SLt,CLt).join(` -`)}function jLt(){return L4}function R4(e,t,n){let r=[];switch(e){case`light`:r.push(t);break;case`dark`:r.push(n);break;case`auto`:r.push(` +`}));function RLt(e=`auto`){if(rse)return``;let t=N4[nse]??N4.github,n=t.light??t.dark,r=t.dark??t.light,i=x(n)??`#ffffff`,a=x(r)??`#0d1117`;return[`.markdown-body { padding: 25px; }`,...M4(e,`body { background: ${i}; }`,`body { background: ${a}; }`)].join(` +`)}function zLt(e,t){let n=N4[e.replace(/-(light|dark|dawn)$/,``)]??N4.github,r=t?n.dark??n.light:n.light??n.dark;return`${$It}\n${r}`}function BLt(e=`auto`){if(rse)return[`:root { color-scheme: ${e===`auto`?`light dark`:e}; }`,`body, .markdown-body { background: Canvas; color: CanvasText; }`].join(` +`);let t=N4[nse]??N4.github,n=t.light??t.dark,r=t.dark??t.light;return[$It,...M4(e,n,r)].join(` +`)}function j4(e=`auto`){return[OLt,...M4(e,k4,jLt)].join(` +`)}function VLt(e=`auto`){return M4(e,MLt,PLt).join(` +`)}function HLt(){return ILt}function M4(e,t,n){let r=[];switch(e){case`light`:r.push(t);break;case`dark`:r.push(n);break;case`auto`:r.push(` ${t} @media (prefers-color-scheme: dark) { ${n} - }`)}return r}var z4,B4=o((()=>{ne(),$n(),GIt(),qIt(),YIt(),O4(),A4(),QIt(),$It(),M4(),P4(),nLt(),iLt(),oLt(),cLt(),uLt(),fLt(),mLt(),gLt(),vLt(),bLt(),xLt(),I4(),wLt(),TLt(),z4={github:{light:KIt,dark:JIt},cobalt:{dark:XIt},dracula:{dark:k4},minimal:{light:ZIt,dark:j4},"night-owl":{dark:eLt},"rose-pine":{light:N4,dark:tLt},solarized:{light:rLt,dark:aLt},synthwave84:{dark:sLt},"winter-is-coming":{light:lLt,dark:dLt},xcode:{light:pLt,dark:hLt}}}));function V4(e){return NLt[e]}var MLt,H4,NLt,U4=o((()=>{MLt={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},H4=[`default`,`zh-CN`,`zh-TW`],NLt=MLt[(()=>{let e=navigator.language;return H4.includes(e)?e:`default`})()]}));function PLt(){return typeof p.MarkEdit.addExtension==`function`}var FLt=o((()=>{})),ILt=l({default:()=>LLt}),LLt,RLt=o((()=>{LLt=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ + }`)}return r}var N4,P4=o((()=>{ne(),Jn(),eLt(),T4(),tLt(),rLt(),aLt(),oLt(),sLt(),lLt(),dLt(),pLt(),hLt(),_Lt(),yLt(),xLt(),CLt(),TLt(),DLt(),kLt(),ALt(),A4(),NLt(),FLt(),LLt(),N4={github:{light:w4,dark:E4},cobalt:{dark:nLt},dracula:{dark:iLt},minimal:{light:D4,dark:O4},"night-owl":{dark:cLt},"rose-pine":{light:uLt,dark:fLt},solarized:{light:mLt,dark:gLt},synthwave84:{dark:vLt},"winter-is-coming":{light:bLt,dark:SLt},xcode:{light:wLt,dark:ELt}}}));function F4(e){return GLt[e]}var ULt,WLt,GLt,I4=o((()=>{ULt={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},WLt=[`default`,`zh-CN`,`zh-TW`],GLt=ULt[(()=>{let e=navigator.language;return WLt.includes(e)?e:`default`})()]}));function L4(){return typeof p.MarkEdit.addExtension==`function`}var KLt=o((()=>{})),qLt=l({default:()=>JLt}),JLt,R4=o((()=>{JLt=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ @font-face { font-family: "KaTeX_AMS"; src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.ttf) format("truetype"); @@ -7460,7 +7462,7 @@ ${n?``:` body { counter-reset: katexEqnNo mmlEqnNo; } -`})),zLt=l({ParseError:()=>i3,SETTINGS_SCHEMA:()=>c3,__defineFunction:()=>G4,__defineMacro:()=>t3,__defineSymbol:()=>Z,__domTree:()=>a7,__parse:()=>t7,__renderToDomTree:()=>r7,__renderToHTMLTree:()=>nBt,__setFontMetrics:()=>JLt,default:()=>o7,render:()=>$5,renderToString:()=>e7,version:()=>i7});function BLt(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function VLt(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:BLt(Array.isArray(e.type)?e.type[0]:e.type)}function HLt(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?VLt(r):a?a(i):i}function ULt(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function WLt(e){for(var t=0;t=x3[t]&&e<=x3[t+1])return!0;return!1}function GLt(e){return`toText`in e}function KLt(e){if(e instanceof R3)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function qLt(e){if(e instanceof P3)return e;throw Error(`Expected span but got `+String(e)+`.`)}function JLt(e,t){U3[e]=t}function YLt(e,t,n){if(!U3[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=U3[t][r];if(!i&&e[0]in G3&&(r=G3[e[0]].charCodeAt(0),i=U3[t][r]),!i&&n===`text`&&WLt(r)&&(i=U3[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function XLt(e){var t=e>=5?0:e>=3?1:2;if(!K3[t]){var n=K3[t]={cssEmPerMu:W3.quad[t]/18};for(var r of Object.keys(W3))n[r]=W3[r][t]}return K3[t]}function Z(e,t,n,r,i,a){q3[e][i]={font:t,group:n,replace:r},a&&r&&(q3[e][r]=q3[e][i])}function W4(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new i3(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}function G4(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a0&&(a.push(q4(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(q4(o,t));var u;n?(u=q4($6(n,t,!0),t),u.classes=[`katex-tag`],a.push(u)):i&&a.push(i);var d=N6([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=O3(d.height+d.depth),d.depth&&(f.style.verticalAlign=O3(-d.depth))}return d}function Y4(e){return new E3(e)}function ZLt(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof a8&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof a8&&n.text===`,`}return!1}function QLt(e,t,n,r,i){var a=d8(e,n),o=a.length===1&&a[0]instanceof i8&&s8.has(a[0].type)?a[0]:new i8(`mrow`,a),s=new i8(`annotation`,[new a8(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new i8(`semantics`,[o,s]),u=new i8(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),N6([i?`katex`:`katex-mathml`],[u])}function $Lt(e){return vzt.has(e)}function X4(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function Z4(e){var t=Q4(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Q4(e){return e.type===`atom`||yzt.has(e.type)?e:null}function eRt(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new i3(t,e);return r}function tRt(e,t){var n=$6(e.body,t,!0);return N6([e.mclass],n,t)}function nRt(e,t){var n,r=d8(e.body,t);return e.mclass===`minner`?n=new i8(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new i8(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new i8(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}function rRt(e,t,n){var r=T8[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function iRt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new i3(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[rRt(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=E8()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function aRt(e){return`isMiddle`in e}function oRt(e,t){var n=Q4(e);if(n&&Bzt.has(n.text))return n;throw n?new i3(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new i3(`Invalid delimiter type '`+e.type+`'`,e)}function $4(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function e3(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&!Array.isArray(y?.[y.length-1])&&!(l&&y?.[y.length-1]===!0)&&g.pop(),v.length{for(i3=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(dRt,`-$1`).toLowerCase(),pRt={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},mRt=/[&><"']/g,a3=e=>String(e).replace(mRt,e=>pRt[e]),o3=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?o3(e.body[0]):e:e.type===`font`?o3(e.body):e,hRt=new Set([`mathord`,`textord`,`atom`]),s3=e=>hRt.has(o3(e).type),gRt=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},c3={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:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},_Rt=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||={};for(var t of Object.keys(c3)){var n=c3[t];n&&HLt(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=gRt(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},l3=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return v3[vRt[this.id]]}sub(){return v3[yRt[this.id]]}fracNum(){return v3[bRt[this.id]]}fracDen(){return v3[xRt[this.id]]}cramp(){return v3[SRt[this.id]]}text(){return v3[CRt[this.id]]}isTight(){return this.size>=2}},u3=0,d3=1,f3=2,p3=3,m3=4,h3=5,g3=6,_3=7,v3=[new l3(u3,0,!1),new l3(d3,0,!0),new l3(f3,1,!1),new l3(p3,1,!0),new l3(m3,2,!1),new l3(h3,2,!0),new l3(g3,3,!1),new l3(_3,3,!0)],vRt=[m3,h3,m3,h3,g3,_3,g3,_3],yRt=[h3,h3,h3,h3,_3,_3,_3,_3],bRt=[f3,p3,m3,h3,g3,_3,g3,_3],xRt=[p3,p3,h3,h3,_3,_3,_3,_3],SRt=[d3,d3,p3,p3,h3,h3,_3,_3],CRt=[u3,d3,f3,p3,f3,p3,f3,p3],y3={DISPLAY:v3[u3],TEXT:v3[f3],SCRIPT:v3[m3],SCRIPTSCRIPT:v3[g3]},b3=[{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]]}],x3=[],b3.forEach(e=>e.blocks.forEach(e=>x3.push(...e))),S3=e=>e+` `+e,C3=80,wRt=function(e,t){return`M95,`+(622+e+t)+` +`})),YLt=l({ParseError:()=>t3,SETTINGS_SCHEMA:()=>i3,__defineFunction:()=>U4,__defineMacro:()=>$4,__defineSymbol:()=>Z,__domTree:()=>n7,__parse:()=>Z5,__renderToDomTree:()=>$5,__renderToHTMLTree:()=>e7,__setFontMetrics:()=>z4,default:()=>r7,render:()=>uBt,renderToString:()=>X5,version:()=>t7});function XLt(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function ZLt(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:XLt(Array.isArray(e.type)?e.type[0]:e.type)}function QLt(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?ZLt(r):a?a(i):i}function $Lt(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function eRt(e){for(var t=0;t=h3[t]&&e<=h3[t+1])return!0;return!1}function tRt(e){return`toText`in e}function nRt(e){if(e instanceof M3)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function rRt(e){if(e instanceof O3)return e;throw Error(`Expected span but got `+String(e)+`.`)}function z4(e,t){I3[e]=t}function B4(e,t,n){if(!I3[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=I3[t][r];if(!i&&e[0]in YRt&&(r=YRt[e[0]].charCodeAt(0),i=I3[t][r]),!i&&n===`text`&&eRt(r)&&(i=I3[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function V4(e){var t=e>=5?0:e>=3?1:2;if(!R3[t]){var n=R3[t]={cssEmPerMu:L3.quad[t]/18};for(var r of Object.keys(L3))n[r]=L3[r][t]}return R3[t]}function Z(e,t,n,r,i,a){z3[e][i]={font:t,group:n,replace:r},a&&r&&(z3[e][r]=z3[e][i])}function H4(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new t3(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}function U4(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a0&&(a.push(G4(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(G4(o,t));var u;n?(u=G4(J6(n,t,!0),t),u.classes=[`katex-tag`],a.push(u)):i&&a.push(i);var d=k6([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=S3(d.height+d.depth),d.depth&&(f.style.verticalAlign=S3(-d.depth))}return d}function q4(e){return new y3(e)}function J4(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof n8&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof n8&&n.text===`,`}return!1}function iRt(e,t,n,r,i){var a=c8(e,n),o=a.length===1&&a[0]instanceof t8&&gzt.has(a[0].type)?a[0]:new t8(`mrow`,a),s=new t8(`annotation`,[new n8(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new t8(`semantics`,[o,s]),u=new t8(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),k6([i?`katex`:`katex-mathml`],[u])}function aRt(e){return Ozt.has(e)}function Y4(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function oRt(e){var t=X4(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function X4(e){return e.type===`atom`||kzt.has(e.type)?e:null}function sRt(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new t3(t,e);return r}function cRt(e,t){var n=J6(e.body,t,!0);return k6([e.mclass],n,t)}function lRt(e,t){var n,r=c8(e.body,t);return e.mclass===`minner`?n=new t8(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new t8(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new t8(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}function uRt(e,t,n){var r=C8[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function dRt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new t3(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[uRt(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=Azt()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function fRt(e){return`isMiddle`in e}function Z4(e,t){var n=X4(e);if(n&&Jzt.has(n.text))return n;throw n?new t3(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new t3(`Invalid delimiter type '`+e.type+`'`,e)}function pRt(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function Q4(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&!Array.isArray(y?.[y.length-1])&&!(l&&y?.[y.length-1]===!0)&&g.pop(),v.length{for(t3=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(yRt,`-$1`).toLowerCase(),xRt={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},SRt=/[&><"']/g,n3=e=>String(e).replace(SRt,e=>xRt[e]),CRt=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?CRt(e.body[0]):e:e.type===`font`?CRt(e.body):e,wRt=new Set([`mathord`,`textord`,`atom`]),r3=e=>wRt.has(CRt(e).type),TRt=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},i3={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:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},ERt=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||={};for(var t of Object.keys(i3)){var n=i3[t];n&&QLt(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=TRt(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},a3=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return p3[ORt[this.id]]}sub(){return p3[kRt[this.id]]}fracNum(){return p3[ARt[this.id]]}fracDen(){return p3[jRt[this.id]]}cramp(){return p3[MRt[this.id]]}text(){return p3[NRt[this.id]]}isTight(){return this.size>=2}},DRt=0,o3=1,s3=2,c3=3,l3=4,u3=5,d3=6,f3=7,p3=[new a3(DRt,0,!1),new a3(o3,0,!0),new a3(s3,1,!1),new a3(c3,1,!0),new a3(l3,2,!1),new a3(u3,2,!0),new a3(d3,3,!1),new a3(f3,3,!0)],ORt=[l3,u3,l3,u3,d3,f3,d3,f3],kRt=[u3,u3,u3,u3,f3,f3,f3,f3],ARt=[s3,c3,l3,u3,d3,f3,d3,f3],jRt=[c3,c3,u3,u3,f3,f3,f3,f3],MRt=[o3,o3,c3,c3,u3,u3,f3,f3],NRt=[DRt,o3,s3,c3,s3,c3,s3,c3],m3={DISPLAY:p3[DRt],TEXT:p3[s3],SCRIPT:p3[l3],SCRIPTSCRIPT:p3[d3]},PRt=[{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]]}],h3=[],PRt.forEach(e=>e.blocks.forEach(e=>h3.push(...e))),g3=e=>e+` `+e,_3=80,FRt=function(e,t){return`M95,`+(622+e+t)+` 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 @@ -7471,7 +7473,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)+` `+t+`h400000v`+(40+e)+`h-400000z`},TRt=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},IRt=function(e,t){return`M263,`+(601+e+t)+`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+` @@ -7481,7 +7483,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)+` `+t+`h400000v`+(40+e)+`h-400000z`},ERt=function(e,t){return`M983 `+(10+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},v3=function(e,t){return`M983 `+(10+e+t)+` 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 @@ -7490,7 +7492,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)+` `+t+`h400000v`+(40+e)+`h-400000z`},w3=function(e,t){return`M424,`+(2398+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},LRt=function(e,t){return`M424,`+(2398+e+t)+` 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 @@ -7500,18 +7502,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)+` `+t+` -h400000v`+(40+e)+`h-400000z`},DRt=function(e,t){return`M473,`+(2713+e+t)+` +h400000v`+(40+e)+`h-400000z`},RRt=function(e,t){return`M473,`+(2713+e+t)+` 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)+` `+t+`h400000v`+(40+e)+`H1017.7z`},ORt=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},kRt=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},zRt=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},BRt=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` H742v`+r+`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 `+t+`H400000v`+(40+e)+`H742z`},T3=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=wRt(t,C3);break;case`sqrtSize1`:r=TRt(t,C3);break;case`sqrtSize2`:r=ERt(t,C3);break;case`sqrtSize3`:r=w3(t,C3);break;case`sqrtSize4`:r=DRt(t,C3);break;case`sqrtTall`:r=kRt(t,C3,n)}return r},ARt=function(e,t){switch(e){case`⎜`:return S3(`M291 0 H417 V`+t+` H291z`);case`∣`:return S3(`M145 0 H188 V`+t+` H145z`);case`∥`:return S3(`M145 0 H188 V`+t+` H145z`)+S3(`M367 0 H410 V`+t+` H367z`);case`⎟`:return S3(`M457 0 H583 V`+t+` H457z`);case`⎢`:return S3(`M319 0 H403 V`+t+` H319z`);case`⎥`:return S3(`M263 0 H347 V`+t+` H263z`);case`⎪`:return S3(`M384 0 H504 V`+t+` H384z`);case`⏐`:return S3(`M312 0 H355 V`+t+` H312z`);case`‖`:return S3(`M257 0 H300 V`+t+` H257z`)+S3(`M478 0 H521 V`+t+` H478z`);default:return``}},jRt={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},VRt=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=FRt(t,_3);break;case`sqrtSize1`:r=IRt(t,_3);break;case`sqrtSize2`:r=v3(t,_3);break;case`sqrtSize3`:r=LRt(t,_3);break;case`sqrtSize4`:r=RRt(t,_3);break;case`sqrtTall`:r=BRt(t,_3,n)}return r},HRt=function(e,t){switch(e){case`⎜`:return g3(`M291 0 H417 V`+t+` H291z`);case`∣`:return g3(`M145 0 H188 V`+t+` H145z`);case`∥`:return g3(`M145 0 H188 V`+t+` H145z`)+g3(`M367 0 H410 V`+t+` H367z`);case`⎟`:return g3(`M457 0 H583 V`+t+` H457z`);case`⎢`:return g3(`M319 0 H403 V`+t+` H319z`);case`⎥`:return g3(`M263 0 H347 V`+t+` H263z`);case`⎪`:return g3(`M384 0 H504 V`+t+` H384z`);case`⏐`:return g3(`M312 0 H355 V`+t+` H312z`);case`‖`:return g3(`M257 0 H300 V`+t+` H257z`)+g3(`M478 0 H521 V`+t+` H478z`);default:return``}},URt={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 @@ -7557,10 +7559,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:S3(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:S3(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:S3(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:S3(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:g3(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:g3(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:g3(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:g3(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:S3(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:g3(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 @@ -7609,7 +7611,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:S3(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:S3(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:S3(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:g3(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:g3(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:g3(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 @@ -7682,7 +7684,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`},MRt=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},WRt=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -7710,60 +7712,59 @@ 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,-`+(t+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 Error(`Unknown stretchy delimiter.`)}},E3=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(),t=0;t{if(GLt(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},NRt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},PRt={ex:!0,em:!0,mu:!0},FRt=function(e){return typeof e!=`string`&&(e=e.unit),e in NRt||e in PRt||e===`ex`},D3=function(e,t){var n;if(e.unit in NRt)n=NRt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new i3(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},O3=function(e){return+e.toFixed(4)+`em`},k3=function(e){return e.filter(e=>e).join(` `)},IRt=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=fRt(n)+`:`+r+`;`)}return t},A3=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},j3=function(e){var t=document.createElement(e);t.className=k3(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,N3=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+a3(k3(this.classes))+`"`);var n=IRt(this.style);n&&(t+=` style="`+a3(n)+`"`);for(var r of Object.keys(this.attributes)){if(M3.test(r))throw new i3(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+a3(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},P3=class{constructor(e,t,n,r){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,A3.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return j3.call(this,`span`)}toMarkup(){return N3.call(this,`span`)}},F3=class{constructor(e,t,n,r){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,A3.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return j3.call(this,`a`)}toMarkup(){return N3.call(this,`a`)}},I3=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.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=``+a3(this.alt)+``,e}},L3={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},R3=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=ULt(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=L3[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=O3(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=k3(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+O3(this.italic)+`;`),n+=IRt(this.style),n&&(e=!0,t+=` style="`+a3(n)+`"`);var r=a3(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},z3=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},B3=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,jRt[this.pathName]),e}toMarkup(){return this.alternate?``:``}},V3=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},H3=e=>e instanceof P3||e instanceof F3||e instanceof E3,U3={"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]}},W3={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]},G3={Å:`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`},K3={},q3={math:{},text:{}},Q=`math`,J3=`text`,Y3=`main`,X3=`ams`,Z3=`accent-token`,Q3=`bin`,$3=`close`,e6=`inner`,t6=`mathord`,n6=`op-token`,r6=`open`,i6=`punct`,a6=`rel`,o6=`spacing`,s6=`textord`,Z(Q,Y3,a6,`≡`,`\\equiv`,!0),Z(Q,Y3,a6,`≺`,`\\prec`,!0),Z(Q,Y3,a6,`≻`,`\\succ`,!0),Z(Q,Y3,a6,`∼`,`\\sim`,!0),Z(Q,Y3,a6,`⊥`,`\\perp`),Z(Q,Y3,a6,`⪯`,`\\preceq`,!0),Z(Q,Y3,a6,`⪰`,`\\succeq`,!0),Z(Q,Y3,a6,`≃`,`\\simeq`,!0),Z(Q,Y3,a6,`∣`,`\\mid`,!0),Z(Q,Y3,a6,`≪`,`\\ll`,!0),Z(Q,Y3,a6,`≫`,`\\gg`,!0),Z(Q,Y3,a6,`≍`,`\\asymp`,!0),Z(Q,Y3,a6,`∥`,`\\parallel`),Z(Q,Y3,a6,`⋈`,`\\bowtie`,!0),Z(Q,Y3,a6,`⌣`,`\\smile`,!0),Z(Q,Y3,a6,`⊑`,`\\sqsubseteq`,!0),Z(Q,Y3,a6,`⊒`,`\\sqsupseteq`,!0),Z(Q,Y3,a6,`≐`,`\\doteq`,!0),Z(Q,Y3,a6,`⌢`,`\\frown`,!0),Z(Q,Y3,a6,`∋`,`\\ni`,!0),Z(Q,Y3,a6,`∝`,`\\propto`,!0),Z(Q,Y3,a6,`⊢`,`\\vdash`,!0),Z(Q,Y3,a6,`⊣`,`\\dashv`,!0),Z(Q,Y3,a6,`∋`,`\\owns`),Z(Q,Y3,i6,`.`,`\\ldotp`),Z(Q,Y3,i6,`⋅`,`\\cdotp`),Z(Q,Y3,i6,`⋅`,`·`),Z(J3,Y3,s6,`⋅`,`·`),Z(Q,Y3,s6,`#`,`\\#`),Z(J3,Y3,s6,`#`,`\\#`),Z(Q,Y3,s6,`&`,`\\&`),Z(J3,Y3,s6,`&`,`\\&`),Z(Q,Y3,s6,`ℵ`,`\\aleph`,!0),Z(Q,Y3,s6,`∀`,`\\forall`,!0),Z(Q,Y3,s6,`ℏ`,`\\hbar`,!0),Z(Q,Y3,s6,`∃`,`\\exists`,!0),Z(Q,Y3,s6,`∇`,`\\nabla`,!0),Z(Q,Y3,s6,`♭`,`\\flat`,!0),Z(Q,Y3,s6,`ℓ`,`\\ell`,!0),Z(Q,Y3,s6,`♮`,`\\natural`,!0),Z(Q,Y3,s6,`♣`,`\\clubsuit`,!0),Z(Q,Y3,s6,`℘`,`\\wp`,!0),Z(Q,Y3,s6,`♯`,`\\sharp`,!0),Z(Q,Y3,s6,`♢`,`\\diamondsuit`,!0),Z(Q,Y3,s6,`ℜ`,`\\Re`,!0),Z(Q,Y3,s6,`♡`,`\\heartsuit`,!0),Z(Q,Y3,s6,`ℑ`,`\\Im`,!0),Z(Q,Y3,s6,`♠`,`\\spadesuit`,!0),Z(Q,Y3,s6,`§`,`\\S`,!0),Z(J3,Y3,s6,`§`,`\\S`),Z(Q,Y3,s6,`¶`,`\\P`,!0),Z(J3,Y3,s6,`¶`,`\\P`),Z(Q,Y3,s6,`†`,`\\dag`),Z(J3,Y3,s6,`†`,`\\dag`),Z(J3,Y3,s6,`†`,`\\textdagger`),Z(Q,Y3,s6,`‡`,`\\ddag`),Z(J3,Y3,s6,`‡`,`\\ddag`),Z(J3,Y3,s6,`‡`,`\\textdaggerdbl`),Z(Q,Y3,$3,`⎱`,`\\rmoustache`,!0),Z(Q,Y3,r6,`⎰`,`\\lmoustache`,!0),Z(Q,Y3,$3,`⟯`,`\\rgroup`,!0),Z(Q,Y3,r6,`⟮`,`\\lgroup`,!0),Z(Q,Y3,Q3,`∓`,`\\mp`,!0),Z(Q,Y3,Q3,`⊖`,`\\ominus`,!0),Z(Q,Y3,Q3,`⊎`,`\\uplus`,!0),Z(Q,Y3,Q3,`⊓`,`\\sqcap`,!0),Z(Q,Y3,Q3,`∗`,`\\ast`),Z(Q,Y3,Q3,`⊔`,`\\sqcup`,!0),Z(Q,Y3,Q3,`◯`,`\\bigcirc`,!0),Z(Q,Y3,Q3,`∙`,`\\bullet`,!0),Z(Q,Y3,Q3,`‡`,`\\ddagger`),Z(Q,Y3,Q3,`≀`,`\\wr`,!0),Z(Q,Y3,Q3,`⨿`,`\\amalg`),Z(Q,Y3,Q3,`&`,`\\And`),Z(Q,Y3,a6,`⟵`,`\\longleftarrow`,!0),Z(Q,Y3,a6,`⇐`,`\\Leftarrow`,!0),Z(Q,Y3,a6,`⟸`,`\\Longleftarrow`,!0),Z(Q,Y3,a6,`⟶`,`\\longrightarrow`,!0),Z(Q,Y3,a6,`⇒`,`\\Rightarrow`,!0),Z(Q,Y3,a6,`⟹`,`\\Longrightarrow`,!0),Z(Q,Y3,a6,`↔`,`\\leftrightarrow`,!0),Z(Q,Y3,a6,`⟷`,`\\longleftrightarrow`,!0),Z(Q,Y3,a6,`⇔`,`\\Leftrightarrow`,!0),Z(Q,Y3,a6,`⟺`,`\\Longleftrightarrow`,!0),Z(Q,Y3,a6,`↦`,`\\mapsto`,!0),Z(Q,Y3,a6,`⟼`,`\\longmapsto`,!0),Z(Q,Y3,a6,`↗`,`\\nearrow`,!0),Z(Q,Y3,a6,`↩`,`\\hookleftarrow`,!0),Z(Q,Y3,a6,`↪`,`\\hookrightarrow`,!0),Z(Q,Y3,a6,`↘`,`\\searrow`,!0),Z(Q,Y3,a6,`↼`,`\\leftharpoonup`,!0),Z(Q,Y3,a6,`⇀`,`\\rightharpoonup`,!0),Z(Q,Y3,a6,`↙`,`\\swarrow`,!0),Z(Q,Y3,a6,`↽`,`\\leftharpoondown`,!0),Z(Q,Y3,a6,`⇁`,`\\rightharpoondown`,!0),Z(Q,Y3,a6,`↖`,`\\nwarrow`,!0),Z(Q,Y3,a6,`⇌`,`\\rightleftharpoons`,!0),Z(Q,X3,a6,`≮`,`\\nless`,!0),Z(Q,X3,a6,``,`\\@nleqslant`),Z(Q,X3,a6,``,`\\@nleqq`),Z(Q,X3,a6,`⪇`,`\\lneq`,!0),Z(Q,X3,a6,`≨`,`\\lneqq`,!0),Z(Q,X3,a6,``,`\\@lvertneqq`),Z(Q,X3,a6,`⋦`,`\\lnsim`,!0),Z(Q,X3,a6,`⪉`,`\\lnapprox`,!0),Z(Q,X3,a6,`⊀`,`\\nprec`,!0),Z(Q,X3,a6,`⋠`,`\\npreceq`,!0),Z(Q,X3,a6,`⋨`,`\\precnsim`,!0),Z(Q,X3,a6,`⪹`,`\\precnapprox`,!0),Z(Q,X3,a6,`≁`,`\\nsim`,!0),Z(Q,X3,a6,``,`\\@nshortmid`),Z(Q,X3,a6,`∤`,`\\nmid`,!0),Z(Q,X3,a6,`⊬`,`\\nvdash`,!0),Z(Q,X3,a6,`⊭`,`\\nvDash`,!0),Z(Q,X3,a6,`⋪`,`\\ntriangleleft`),Z(Q,X3,a6,`⋬`,`\\ntrianglelefteq`,!0),Z(Q,X3,a6,`⊊`,`\\subsetneq`,!0),Z(Q,X3,a6,``,`\\@varsubsetneq`),Z(Q,X3,a6,`⫋`,`\\subsetneqq`,!0),Z(Q,X3,a6,``,`\\@varsubsetneqq`),Z(Q,X3,a6,`≯`,`\\ngtr`,!0),Z(Q,X3,a6,``,`\\@ngeqslant`),Z(Q,X3,a6,``,`\\@ngeqq`),Z(Q,X3,a6,`⪈`,`\\gneq`,!0),Z(Q,X3,a6,`≩`,`\\gneqq`,!0),Z(Q,X3,a6,``,`\\@gvertneqq`),Z(Q,X3,a6,`⋧`,`\\gnsim`,!0),Z(Q,X3,a6,`⪊`,`\\gnapprox`,!0),Z(Q,X3,a6,`⊁`,`\\nsucc`,!0),Z(Q,X3,a6,`⋡`,`\\nsucceq`,!0),Z(Q,X3,a6,`⋩`,`\\succnsim`,!0),Z(Q,X3,a6,`⪺`,`\\succnapprox`,!0),Z(Q,X3,a6,`≆`,`\\ncong`,!0),Z(Q,X3,a6,``,`\\@nshortparallel`),Z(Q,X3,a6,`∦`,`\\nparallel`,!0),Z(Q,X3,a6,`⊯`,`\\nVDash`,!0),Z(Q,X3,a6,`⋫`,`\\ntriangleright`),Z(Q,X3,a6,`⋭`,`\\ntrianglerighteq`,!0),Z(Q,X3,a6,``,`\\@nsupseteqq`),Z(Q,X3,a6,`⊋`,`\\supsetneq`,!0),Z(Q,X3,a6,``,`\\@varsupsetneq`),Z(Q,X3,a6,`⫌`,`\\supsetneqq`,!0),Z(Q,X3,a6,``,`\\@varsupsetneqq`),Z(Q,X3,a6,`⊮`,`\\nVdash`,!0),Z(Q,X3,a6,`⪵`,`\\precneqq`,!0),Z(Q,X3,a6,`⪶`,`\\succneqq`,!0),Z(Q,X3,a6,``,`\\@nsubseteqq`),Z(Q,X3,Q3,`⊴`,`\\unlhd`),Z(Q,X3,Q3,`⊵`,`\\unrhd`),Z(Q,X3,a6,`↚`,`\\nleftarrow`,!0),Z(Q,X3,a6,`↛`,`\\nrightarrow`,!0),Z(Q,X3,a6,`⇍`,`\\nLeftarrow`,!0),Z(Q,X3,a6,`⇏`,`\\nRightarrow`,!0),Z(Q,X3,a6,`↮`,`\\nleftrightarrow`,!0),Z(Q,X3,a6,`⇎`,`\\nLeftrightarrow`,!0),Z(Q,X3,a6,`△`,`\\vartriangle`),Z(Q,X3,s6,`ℏ`,`\\hslash`),Z(Q,X3,s6,`▽`,`\\triangledown`),Z(Q,X3,s6,`◊`,`\\lozenge`),Z(Q,X3,s6,`Ⓢ`,`\\circledS`),Z(Q,X3,s6,`®`,`\\circledR`),Z(J3,X3,s6,`®`,`\\circledR`),Z(Q,X3,s6,`∡`,`\\measuredangle`,!0),Z(Q,X3,s6,`∄`,`\\nexists`),Z(Q,X3,s6,`℧`,`\\mho`),Z(Q,X3,s6,`Ⅎ`,`\\Finv`,!0),Z(Q,X3,s6,`⅁`,`\\Game`,!0),Z(Q,X3,s6,`‵`,`\\backprime`),Z(Q,X3,s6,`▲`,`\\blacktriangle`),Z(Q,X3,s6,`▼`,`\\blacktriangledown`),Z(Q,X3,s6,`■`,`\\blacksquare`),Z(Q,X3,s6,`⧫`,`\\blacklozenge`),Z(Q,X3,s6,`★`,`\\bigstar`),Z(Q,X3,s6,`∢`,`\\sphericalangle`,!0),Z(Q,X3,s6,`∁`,`\\complement`,!0),Z(Q,X3,s6,`ð`,`\\eth`,!0),Z(J3,Y3,s6,`ð`,`ð`),Z(Q,X3,s6,`╱`,`\\diagup`),Z(Q,X3,s6,`╲`,`\\diagdown`),Z(Q,X3,s6,`□`,`\\square`),Z(Q,X3,s6,`□`,`\\Box`),Z(Q,X3,s6,`◊`,`\\Diamond`),Z(Q,X3,s6,`¥`,`\\yen`,!0),Z(J3,X3,s6,`¥`,`\\yen`,!0),Z(Q,X3,s6,`✓`,`\\checkmark`,!0),Z(J3,X3,s6,`✓`,`\\checkmark`),Z(Q,X3,s6,`ℶ`,`\\beth`,!0),Z(Q,X3,s6,`ℸ`,`\\daleth`,!0),Z(Q,X3,s6,`ℷ`,`\\gimel`,!0),Z(Q,X3,s6,`ϝ`,`\\digamma`,!0),Z(Q,X3,s6,`ϰ`,`\\varkappa`),Z(Q,X3,r6,`┌`,`\\@ulcorner`,!0),Z(Q,X3,$3,`┐`,`\\@urcorner`,!0),Z(Q,X3,r6,`└`,`\\@llcorner`,!0),Z(Q,X3,$3,`┘`,`\\@lrcorner`,!0),Z(Q,X3,a6,`≦`,`\\leqq`,!0),Z(Q,X3,a6,`⩽`,`\\leqslant`,!0),Z(Q,X3,a6,`⪕`,`\\eqslantless`,!0),Z(Q,X3,a6,`≲`,`\\lesssim`,!0),Z(Q,X3,a6,`⪅`,`\\lessapprox`,!0),Z(Q,X3,a6,`≊`,`\\approxeq`,!0),Z(Q,X3,Q3,`⋖`,`\\lessdot`),Z(Q,X3,a6,`⋘`,`\\lll`,!0),Z(Q,X3,a6,`≶`,`\\lessgtr`,!0),Z(Q,X3,a6,`⋚`,`\\lesseqgtr`,!0),Z(Q,X3,a6,`⪋`,`\\lesseqqgtr`,!0),Z(Q,X3,a6,`≑`,`\\doteqdot`),Z(Q,X3,a6,`≓`,`\\risingdotseq`,!0),Z(Q,X3,a6,`≒`,`\\fallingdotseq`,!0),Z(Q,X3,a6,`∽`,`\\backsim`,!0),Z(Q,X3,a6,`⋍`,`\\backsimeq`,!0),Z(Q,X3,a6,`⫅`,`\\subseteqq`,!0),Z(Q,X3,a6,`⋐`,`\\Subset`,!0),Z(Q,X3,a6,`⊏`,`\\sqsubset`,!0),Z(Q,X3,a6,`≼`,`\\preccurlyeq`,!0),Z(Q,X3,a6,`⋞`,`\\curlyeqprec`,!0),Z(Q,X3,a6,`≾`,`\\precsim`,!0),Z(Q,X3,a6,`⪷`,`\\precapprox`,!0),Z(Q,X3,a6,`⊲`,`\\vartriangleleft`),Z(Q,X3,a6,`⊴`,`\\trianglelefteq`),Z(Q,X3,a6,`⊨`,`\\vDash`,!0),Z(Q,X3,a6,`⊪`,`\\Vvdash`,!0),Z(Q,X3,a6,`⌣`,`\\smallsmile`),Z(Q,X3,a6,`⌢`,`\\smallfrown`),Z(Q,X3,a6,`≏`,`\\bumpeq`,!0),Z(Q,X3,a6,`≎`,`\\Bumpeq`,!0),Z(Q,X3,a6,`≧`,`\\geqq`,!0),Z(Q,X3,a6,`⩾`,`\\geqslant`,!0),Z(Q,X3,a6,`⪖`,`\\eqslantgtr`,!0),Z(Q,X3,a6,`≳`,`\\gtrsim`,!0),Z(Q,X3,a6,`⪆`,`\\gtrapprox`,!0),Z(Q,X3,Q3,`⋗`,`\\gtrdot`),Z(Q,X3,a6,`⋙`,`\\ggg`,!0),Z(Q,X3,a6,`≷`,`\\gtrless`,!0),Z(Q,X3,a6,`⋛`,`\\gtreqless`,!0),Z(Q,X3,a6,`⪌`,`\\gtreqqless`,!0),Z(Q,X3,a6,`≖`,`\\eqcirc`,!0),Z(Q,X3,a6,`≗`,`\\circeq`,!0),Z(Q,X3,a6,`≜`,`\\triangleq`,!0),Z(Q,X3,a6,`∼`,`\\thicksim`),Z(Q,X3,a6,`≈`,`\\thickapprox`),Z(Q,X3,a6,`⫆`,`\\supseteqq`,!0),Z(Q,X3,a6,`⋑`,`\\Supset`,!0),Z(Q,X3,a6,`⊐`,`\\sqsupset`,!0),Z(Q,X3,a6,`≽`,`\\succcurlyeq`,!0),Z(Q,X3,a6,`⋟`,`\\curlyeqsucc`,!0),Z(Q,X3,a6,`≿`,`\\succsim`,!0),Z(Q,X3,a6,`⪸`,`\\succapprox`,!0),Z(Q,X3,a6,`⊳`,`\\vartriangleright`),Z(Q,X3,a6,`⊵`,`\\trianglerighteq`),Z(Q,X3,a6,`⊩`,`\\Vdash`,!0),Z(Q,X3,a6,`∣`,`\\shortmid`),Z(Q,X3,a6,`∥`,`\\shortparallel`),Z(Q,X3,a6,`≬`,`\\between`,!0),Z(Q,X3,a6,`⋔`,`\\pitchfork`,!0),Z(Q,X3,a6,`∝`,`\\varpropto`),Z(Q,X3,a6,`◀`,`\\blacktriangleleft`),Z(Q,X3,a6,`∴`,`\\therefore`,!0),Z(Q,X3,a6,`∍`,`\\backepsilon`),Z(Q,X3,a6,`▶`,`\\blacktriangleright`),Z(Q,X3,a6,`∵`,`\\because`,!0),Z(Q,X3,a6,`⋘`,`\\llless`),Z(Q,X3,a6,`⋙`,`\\gggtr`),Z(Q,X3,Q3,`⊲`,`\\lhd`),Z(Q,X3,Q3,`⊳`,`\\rhd`),Z(Q,X3,a6,`≂`,`\\eqsim`,!0),Z(Q,Y3,a6,`⋈`,`\\Join`),Z(Q,X3,a6,`≑`,`\\Doteq`,!0),Z(Q,X3,Q3,`∔`,`\\dotplus`,!0),Z(Q,X3,Q3,`∖`,`\\smallsetminus`),Z(Q,X3,Q3,`⋒`,`\\Cap`,!0),Z(Q,X3,Q3,`⋓`,`\\Cup`,!0),Z(Q,X3,Q3,`⩞`,`\\doublebarwedge`,!0),Z(Q,X3,Q3,`⊟`,`\\boxminus`,!0),Z(Q,X3,Q3,`⊞`,`\\boxplus`,!0),Z(Q,X3,Q3,`⋇`,`\\divideontimes`,!0),Z(Q,X3,Q3,`⋉`,`\\ltimes`,!0),Z(Q,X3,Q3,`⋊`,`\\rtimes`,!0),Z(Q,X3,Q3,`⋋`,`\\leftthreetimes`,!0),Z(Q,X3,Q3,`⋌`,`\\rightthreetimes`,!0),Z(Q,X3,Q3,`⋏`,`\\curlywedge`,!0),Z(Q,X3,Q3,`⋎`,`\\curlyvee`,!0),Z(Q,X3,Q3,`⊝`,`\\circleddash`,!0),Z(Q,X3,Q3,`⊛`,`\\circledast`,!0),Z(Q,X3,Q3,`⋅`,`\\centerdot`),Z(Q,X3,Q3,`⊺`,`\\intercal`,!0),Z(Q,X3,Q3,`⋒`,`\\doublecap`),Z(Q,X3,Q3,`⋓`,`\\doublecup`),Z(Q,X3,Q3,`⊠`,`\\boxtimes`,!0),Z(Q,X3,a6,`⇢`,`\\dashrightarrow`,!0),Z(Q,X3,a6,`⇠`,`\\dashleftarrow`,!0),Z(Q,X3,a6,`⇇`,`\\leftleftarrows`,!0),Z(Q,X3,a6,`⇆`,`\\leftrightarrows`,!0),Z(Q,X3,a6,`⇚`,`\\Lleftarrow`,!0),Z(Q,X3,a6,`↞`,`\\twoheadleftarrow`,!0),Z(Q,X3,a6,`↢`,`\\leftarrowtail`,!0),Z(Q,X3,a6,`↫`,`\\looparrowleft`,!0),Z(Q,X3,a6,`⇋`,`\\leftrightharpoons`,!0),Z(Q,X3,a6,`↶`,`\\curvearrowleft`,!0),Z(Q,X3,a6,`↺`,`\\circlearrowleft`,!0),Z(Q,X3,a6,`↰`,`\\Lsh`,!0),Z(Q,X3,a6,`⇈`,`\\upuparrows`,!0),Z(Q,X3,a6,`↿`,`\\upharpoonleft`,!0),Z(Q,X3,a6,`⇃`,`\\downharpoonleft`,!0),Z(Q,Y3,a6,`⊶`,`\\origof`,!0),Z(Q,Y3,a6,`⊷`,`\\imageof`,!0),Z(Q,X3,a6,`⊸`,`\\multimap`,!0),Z(Q,X3,a6,`↭`,`\\leftrightsquigarrow`,!0),Z(Q,X3,a6,`⇉`,`\\rightrightarrows`,!0),Z(Q,X3,a6,`⇄`,`\\rightleftarrows`,!0),Z(Q,X3,a6,`↠`,`\\twoheadrightarrow`,!0),Z(Q,X3,a6,`↣`,`\\rightarrowtail`,!0),Z(Q,X3,a6,`↬`,`\\looparrowright`,!0),Z(Q,X3,a6,`↷`,`\\curvearrowright`,!0),Z(Q,X3,a6,`↻`,`\\circlearrowright`,!0),Z(Q,X3,a6,`↱`,`\\Rsh`,!0),Z(Q,X3,a6,`⇊`,`\\downdownarrows`,!0),Z(Q,X3,a6,`↾`,`\\upharpoonright`,!0),Z(Q,X3,a6,`⇂`,`\\downharpoonright`,!0),Z(Q,X3,a6,`⇝`,`\\rightsquigarrow`,!0),Z(Q,X3,a6,`⇝`,`\\leadsto`),Z(Q,X3,a6,`⇛`,`\\Rrightarrow`,!0),Z(Q,X3,a6,`↾`,`\\restriction`),Z(Q,Y3,s6,`‘`,"`"),Z(Q,Y3,s6,`$`,`\\$`),Z(J3,Y3,s6,`$`,`\\$`),Z(J3,Y3,s6,`$`,`\\textdollar`),Z(Q,Y3,s6,`%`,`\\%`),Z(J3,Y3,s6,`%`,`\\%`),Z(Q,Y3,s6,`_`,`\\_`),Z(J3,Y3,s6,`_`,`\\_`),Z(J3,Y3,s6,`_`,`\\textunderscore`),Z(Q,Y3,s6,`∠`,`\\angle`,!0),Z(Q,Y3,s6,`∞`,`\\infty`,!0),Z(Q,Y3,s6,`′`,`\\prime`),Z(Q,Y3,s6,`△`,`\\triangle`),Z(Q,Y3,s6,`Γ`,`\\Gamma`,!0),Z(Q,Y3,s6,`Δ`,`\\Delta`,!0),Z(Q,Y3,s6,`Θ`,`\\Theta`,!0),Z(Q,Y3,s6,`Λ`,`\\Lambda`,!0),Z(Q,Y3,s6,`Ξ`,`\\Xi`,!0),Z(Q,Y3,s6,`Π`,`\\Pi`,!0),Z(Q,Y3,s6,`Σ`,`\\Sigma`,!0),Z(Q,Y3,s6,`Υ`,`\\Upsilon`,!0),Z(Q,Y3,s6,`Φ`,`\\Phi`,!0),Z(Q,Y3,s6,`Ψ`,`\\Psi`,!0),Z(Q,Y3,s6,`Ω`,`\\Omega`,!0),Z(Q,Y3,s6,`A`,`Α`),Z(Q,Y3,s6,`B`,`Β`),Z(Q,Y3,s6,`E`,`Ε`),Z(Q,Y3,s6,`Z`,`Ζ`),Z(Q,Y3,s6,`H`,`Η`),Z(Q,Y3,s6,`I`,`Ι`),Z(Q,Y3,s6,`K`,`Κ`),Z(Q,Y3,s6,`M`,`Μ`),Z(Q,Y3,s6,`N`,`Ν`),Z(Q,Y3,s6,`O`,`Ο`),Z(Q,Y3,s6,`P`,`Ρ`),Z(Q,Y3,s6,`T`,`Τ`),Z(Q,Y3,s6,`X`,`Χ`),Z(Q,Y3,s6,`¬`,`\\neg`,!0),Z(Q,Y3,s6,`¬`,`\\lnot`),Z(Q,Y3,s6,`⊤`,`\\top`),Z(Q,Y3,s6,`⊥`,`\\bot`),Z(Q,Y3,s6,`∅`,`\\emptyset`),Z(Q,X3,s6,`∅`,`\\varnothing`),Z(Q,Y3,t6,`α`,`\\alpha`,!0),Z(Q,Y3,t6,`β`,`\\beta`,!0),Z(Q,Y3,t6,`γ`,`\\gamma`,!0),Z(Q,Y3,t6,`δ`,`\\delta`,!0),Z(Q,Y3,t6,`ϵ`,`\\epsilon`,!0),Z(Q,Y3,t6,`ζ`,`\\zeta`,!0),Z(Q,Y3,t6,`η`,`\\eta`,!0),Z(Q,Y3,t6,`θ`,`\\theta`,!0),Z(Q,Y3,t6,`ι`,`\\iota`,!0),Z(Q,Y3,t6,`κ`,`\\kappa`,!0),Z(Q,Y3,t6,`λ`,`\\lambda`,!0),Z(Q,Y3,t6,`μ`,`\\mu`,!0),Z(Q,Y3,t6,`ν`,`\\nu`,!0),Z(Q,Y3,t6,`ξ`,`\\xi`,!0),Z(Q,Y3,t6,`ο`,`\\omicron`,!0),Z(Q,Y3,t6,`π`,`\\pi`,!0),Z(Q,Y3,t6,`ρ`,`\\rho`,!0),Z(Q,Y3,t6,`σ`,`\\sigma`,!0),Z(Q,Y3,t6,`τ`,`\\tau`,!0),Z(Q,Y3,t6,`υ`,`\\upsilon`,!0),Z(Q,Y3,t6,`ϕ`,`\\phi`,!0),Z(Q,Y3,t6,`χ`,`\\chi`,!0),Z(Q,Y3,t6,`ψ`,`\\psi`,!0),Z(Q,Y3,t6,`ω`,`\\omega`,!0),Z(Q,Y3,t6,`ε`,`\\varepsilon`,!0),Z(Q,Y3,t6,`ϑ`,`\\vartheta`,!0),Z(Q,Y3,t6,`ϖ`,`\\varpi`,!0),Z(Q,Y3,t6,`ϱ`,`\\varrho`,!0),Z(Q,Y3,t6,`ς`,`\\varsigma`,!0),Z(Q,Y3,t6,`φ`,`\\varphi`,!0),Z(Q,Y3,Q3,`∗`,`*`,!0),Z(Q,Y3,Q3,`+`,`+`),Z(Q,Y3,Q3,`−`,`-`,!0),Z(Q,Y3,Q3,`⋅`,`\\cdot`,!0),Z(Q,Y3,Q3,`∘`,`\\circ`,!0),Z(Q,Y3,Q3,`÷`,`\\div`,!0),Z(Q,Y3,Q3,`±`,`\\pm`,!0),Z(Q,Y3,Q3,`×`,`\\times`,!0),Z(Q,Y3,Q3,`∩`,`\\cap`,!0),Z(Q,Y3,Q3,`∪`,`\\cup`,!0),Z(Q,Y3,Q3,`∖`,`\\setminus`,!0),Z(Q,Y3,Q3,`∧`,`\\land`),Z(Q,Y3,Q3,`∨`,`\\lor`),Z(Q,Y3,Q3,`∧`,`\\wedge`,!0),Z(Q,Y3,Q3,`∨`,`\\vee`,!0),Z(Q,Y3,s6,`√`,`\\surd`),Z(Q,Y3,r6,`⟨`,`\\langle`,!0),Z(Q,Y3,r6,`∣`,`\\lvert`),Z(Q,Y3,r6,`∥`,`\\lVert`),Z(Q,Y3,$3,`?`,`?`),Z(Q,Y3,$3,`!`,`!`),Z(Q,Y3,$3,`⟩`,`\\rangle`,!0),Z(Q,Y3,$3,`∣`,`\\rvert`),Z(Q,Y3,$3,`∥`,`\\rVert`),Z(Q,Y3,a6,`=`,`=`),Z(Q,Y3,a6,`:`,`:`),Z(Q,Y3,a6,`≈`,`\\approx`,!0),Z(Q,Y3,a6,`≅`,`\\cong`,!0),Z(Q,Y3,a6,`≥`,`\\ge`),Z(Q,Y3,a6,`≥`,`\\geq`,!0),Z(Q,Y3,a6,`←`,`\\gets`),Z(Q,Y3,a6,`>`,`\\gt`,!0),Z(Q,Y3,a6,`∈`,`\\in`,!0),Z(Q,Y3,a6,``,`\\@not`),Z(Q,Y3,a6,`⊂`,`\\subset`,!0),Z(Q,Y3,a6,`⊃`,`\\supset`,!0),Z(Q,Y3,a6,`⊆`,`\\subseteq`,!0),Z(Q,Y3,a6,`⊇`,`\\supseteq`,!0),Z(Q,X3,a6,`⊈`,`\\nsubseteq`,!0),Z(Q,X3,a6,`⊉`,`\\nsupseteq`,!0),Z(Q,Y3,a6,`⊨`,`\\models`),Z(Q,Y3,a6,`←`,`\\leftarrow`,!0),Z(Q,Y3,a6,`≤`,`\\le`),Z(Q,Y3,a6,`≤`,`\\leq`,!0),Z(Q,Y3,a6,`<`,`\\lt`,!0),Z(Q,Y3,a6,`→`,`\\rightarrow`,!0),Z(Q,Y3,a6,`→`,`\\to`),Z(Q,X3,a6,`≱`,`\\ngeq`,!0),Z(Q,X3,a6,`≰`,`\\nleq`,!0),Z(Q,Y3,o6,`\xA0`,`\\ `),Z(Q,Y3,o6,`\xA0`,`\\space`),Z(Q,Y3,o6,`\xA0`,`\\nobreakspace`),Z(J3,Y3,o6,`\xA0`,`\\ `),Z(J3,Y3,o6,`\xA0`,` `),Z(J3,Y3,o6,`\xA0`,`\\space`),Z(J3,Y3,o6,`\xA0`,`\\nobreakspace`),Z(Q,Y3,o6,``,`\\nobreak`),Z(Q,Y3,o6,``,`\\allowbreak`),Z(Q,Y3,i6,`,`,`,`),Z(Q,Y3,i6,`;`,`;`),Z(Q,X3,Q3,`⊼`,`\\barwedge`,!0),Z(Q,X3,Q3,`⊻`,`\\veebar`,!0),Z(Q,Y3,Q3,`⊙`,`\\odot`,!0),Z(Q,Y3,Q3,`⊕`,`\\oplus`,!0),Z(Q,Y3,Q3,`⊗`,`\\otimes`,!0),Z(Q,Y3,s6,`∂`,`\\partial`,!0),Z(Q,Y3,Q3,`⊘`,`\\oslash`,!0),Z(Q,X3,Q3,`⊚`,`\\circledcirc`,!0),Z(Q,X3,Q3,`⊡`,`\\boxdot`,!0),Z(Q,Y3,Q3,`△`,`\\bigtriangleup`),Z(Q,Y3,Q3,`▽`,`\\bigtriangledown`),Z(Q,Y3,Q3,`†`,`\\dagger`),Z(Q,Y3,Q3,`⋄`,`\\diamond`),Z(Q,Y3,Q3,`⋆`,`\\star`),Z(Q,Y3,Q3,`◃`,`\\triangleleft`),Z(Q,Y3,Q3,`▹`,`\\triangleright`),Z(Q,Y3,r6,`{`,`\\{`),Z(J3,Y3,s6,`{`,`\\{`),Z(J3,Y3,s6,`{`,`\\textbraceleft`),Z(Q,Y3,$3,`}`,`\\}`),Z(J3,Y3,s6,`}`,`\\}`),Z(J3,Y3,s6,`}`,`\\textbraceright`),Z(Q,Y3,r6,`{`,`\\lbrace`),Z(Q,Y3,$3,`}`,`\\rbrace`),Z(Q,Y3,r6,`[`,`\\lbrack`,!0),Z(J3,Y3,s6,`[`,`\\lbrack`,!0),Z(Q,Y3,$3,`]`,`\\rbrack`,!0),Z(J3,Y3,s6,`]`,`\\rbrack`,!0),Z(Q,Y3,r6,`(`,`\\lparen`,!0),Z(Q,Y3,$3,`)`,`\\rparen`,!0),Z(J3,Y3,s6,`<`,`\\textless`,!0),Z(J3,Y3,s6,`>`,`\\textgreater`,!0),Z(Q,Y3,r6,`⌊`,`\\lfloor`,!0),Z(Q,Y3,$3,`⌋`,`\\rfloor`,!0),Z(Q,Y3,r6,`⌈`,`\\lceil`,!0),Z(Q,Y3,$3,`⌉`,`\\rceil`,!0),Z(Q,Y3,s6,`\\`,`\\backslash`),Z(Q,Y3,s6,`∣`,`|`),Z(Q,Y3,s6,`∣`,`\\vert`),Z(J3,Y3,s6,`|`,`\\textbar`,!0),Z(Q,Y3,s6,`∥`,`\\|`),Z(Q,Y3,s6,`∥`,`\\Vert`),Z(J3,Y3,s6,`∥`,`\\textbardbl`),Z(J3,Y3,s6,`~`,`\\textasciitilde`),Z(J3,Y3,s6,`\\`,`\\textbackslash`),Z(J3,Y3,s6,`^`,`\\textasciicircum`),Z(Q,Y3,a6,`↑`,`\\uparrow`,!0),Z(Q,Y3,a6,`⇑`,`\\Uparrow`,!0),Z(Q,Y3,a6,`↓`,`\\downarrow`,!0),Z(Q,Y3,a6,`⇓`,`\\Downarrow`,!0),Z(Q,Y3,a6,`↕`,`\\updownarrow`,!0),Z(Q,Y3,a6,`⇕`,`\\Updownarrow`,!0),Z(Q,Y3,n6,`∐`,`\\coprod`),Z(Q,Y3,n6,`⋁`,`\\bigvee`),Z(Q,Y3,n6,`⋀`,`\\bigwedge`),Z(Q,Y3,n6,`⨄`,`\\biguplus`),Z(Q,Y3,n6,`⋂`,`\\bigcap`),Z(Q,Y3,n6,`⋃`,`\\bigcup`),Z(Q,Y3,n6,`∫`,`\\int`),Z(Q,Y3,n6,`∫`,`\\intop`),Z(Q,Y3,n6,`∬`,`\\iint`),Z(Q,Y3,n6,`∭`,`\\iiint`),Z(Q,Y3,n6,`∏`,`\\prod`),Z(Q,Y3,n6,`∑`,`\\sum`),Z(Q,Y3,n6,`⨂`,`\\bigotimes`),Z(Q,Y3,n6,`⨁`,`\\bigoplus`),Z(Q,Y3,n6,`⨀`,`\\bigodot`),Z(Q,Y3,n6,`∮`,`\\oint`),Z(Q,Y3,n6,`∯`,`\\oiint`),Z(Q,Y3,n6,`∰`,`\\oiiint`),Z(Q,Y3,n6,`⨆`,`\\bigsqcup`),Z(Q,Y3,n6,`∫`,`\\smallint`),Z(J3,Y3,e6,`…`,`\\textellipsis`),Z(Q,Y3,e6,`…`,`\\mathellipsis`),Z(J3,Y3,e6,`…`,`\\ldots`,!0),Z(Q,Y3,e6,`…`,`\\ldots`,!0),Z(Q,Y3,e6,`⋯`,`\\@cdots`,!0),Z(Q,Y3,e6,`⋱`,`\\ddots`,!0),Z(Q,Y3,s6,`⋮`,`\\varvdots`),Z(J3,Y3,s6,`⋮`,`\\varvdots`),Z(Q,Y3,Z3,`ˊ`,`\\acute`),Z(Q,Y3,Z3,`ˋ`,`\\grave`),Z(Q,Y3,Z3,`¨`,`\\ddot`),Z(Q,Y3,Z3,`~`,`\\tilde`),Z(Q,Y3,Z3,`ˉ`,`\\bar`),Z(Q,Y3,Z3,`˘`,`\\breve`),Z(Q,Y3,Z3,`ˇ`,`\\check`),Z(Q,Y3,Z3,`^`,`\\hat`),Z(Q,Y3,Z3,`⃗`,`\\vec`),Z(Q,Y3,Z3,`˙`,`\\dot`),Z(Q,Y3,Z3,`˚`,`\\mathring`),Z(Q,Y3,t6,``,`\\@imath`),Z(Q,Y3,t6,``,`\\@jmath`),Z(Q,Y3,s6,`ı`,`ı`),Z(Q,Y3,s6,`ȷ`,`ȷ`),Z(J3,Y3,s6,`ı`,`\\i`,!0),Z(J3,Y3,s6,`ȷ`,`\\j`,!0),Z(J3,Y3,s6,`ß`,`\\ss`,!0),Z(J3,Y3,s6,`æ`,`\\ae`,!0),Z(J3,Y3,s6,`œ`,`\\oe`,!0),Z(J3,Y3,s6,`ø`,`\\o`,!0),Z(J3,Y3,s6,`Æ`,`\\AE`,!0),Z(J3,Y3,s6,`Œ`,`\\OE`,!0),Z(J3,Y3,s6,`Ø`,`\\O`,!0),Z(J3,Y3,Z3,`ˊ`,`\\'`),Z(J3,Y3,Z3,`ˋ`,"\\`"),Z(J3,Y3,Z3,`ˆ`,`\\^`),Z(J3,Y3,Z3,`˜`,`\\~`),Z(J3,Y3,Z3,`ˉ`,`\\=`),Z(J3,Y3,Z3,`˘`,`\\u`),Z(J3,Y3,Z3,`˙`,`\\.`),Z(J3,Y3,Z3,`¸`,`\\c`),Z(J3,Y3,Z3,`˚`,`\\r`),Z(J3,Y3,Z3,`ˇ`,`\\v`),Z(J3,Y3,Z3,`¨`,`\\"`),Z(J3,Y3,Z3,`˝`,`\\H`),Z(J3,Y3,Z3,`◯`,`\\textcircled`),LRt={"--":!0,"---":!0,"``":!0,"''":!0},Z(J3,Y3,s6,`–`,`--`,!0),Z(J3,Y3,s6,`–`,`\\textendash`),Z(J3,Y3,s6,`—`,`---`,!0),Z(J3,Y3,s6,`—`,`\\textemdash`),Z(J3,Y3,s6,`‘`,"`",!0),Z(J3,Y3,s6,`‘`,`\\textquoteleft`),Z(J3,Y3,s6,`’`,`'`,!0),Z(J3,Y3,s6,`’`,`\\textquoteright`),Z(J3,Y3,s6,`“`,"``",!0),Z(J3,Y3,s6,`“`,`\\textquotedblleft`),Z(J3,Y3,s6,`”`,`''`,!0),Z(J3,Y3,s6,`”`,`\\textquotedblright`),Z(Q,Y3,s6,`°`,`\\degree`,!0),Z(J3,Y3,s6,`°`,`\\degree`),Z(J3,Y3,s6,`°`,`\\textdegree`,!0),Z(Q,Y3,s6,`£`,`\\pounds`),Z(Q,Y3,s6,`£`,`\\mathsterling`,!0),Z(J3,Y3,s6,`£`,`\\pounds`),Z(J3,Y3,s6,`£`,`\\textsterling`,!0),Z(Q,X3,s6,`✠`,`\\maltese`),Z(J3,X3,s6,`✠`,`\\maltese`),RRt=`0123456789/@."`,c6=0;c6{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return D6[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return O6[Math.floor((r-120782)/10)];if(r===120485||r===120486)return D6[0];if(120486{if(k3(e.classes)!==k3(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},ZRt=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},N6=function(e,t,n,r){var i=new P3(e,t,n,r);return QRt(i),i},P6=(e,t,n,r)=>new P3(e,t,n,r),F6=function(e,t,n){var r=N6([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=O3(r.height),r.maxFontSize=1,r},I6=function(e,t,n,r){var i=new F3(e,t,n,r);return QRt(i),i},L6=function(e){var t=new E3(e);return QRt(t),t},R6=function(e,t){return e instanceof E3?N6([],[e],t):e},$Rt=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=N6([`mspace`],[],t),r=D3(e,t);return n.style.marginRight=O3(r),n},B6=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},V6={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`}},tzt={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},nzt=function(e,t){var n=tzt[e],r=n[0],i=n[1],a=n[2],o=new B3(r),s=P6([`katex-overlay`],[new z3([o],{width:O3(i),height:O3(a),style:`width:`+O3(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return s.height=a,s.style.height=O3(a),s.style.width=O3(i),s},H6={number:3,unit:`mu`},U6={number:4,unit:`mu`},W6={number:5,unit:`mu`},rzt={mord:{mop:H6,mbin:U6,mrel:W6,minner:H6},mop:{mord:H6,mop:H6,mrel:W6,minner:H6},mbin:{mord:U6,mop:U6,mopen:U6,minner:U6},mrel:{mord:W6,mop:W6,mopen:W6,minner:W6},mopen:{},mclose:{mop:H6,mbin:U6,mrel:W6,minner:H6},mpunct:{mord:H6,mop:H6,mrel:W6,mopen:H6,mclose:H6,mpunct:H6,minner:H6},minner:{mord:H6,mop:H6,mbin:U6,mrel:W6,mopen:H6,mpunct:H6,minner:H6}},G6={mord:{mop:H6},mop:{mord:H6,mop:H6},mbin:{},mrel:{},mopen:{},mclose:{mop:H6},mpunct:{},minner:{mop:H6}},K6={},q6={},J6={},Y6=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},X6=function(e){return e.type===`ordgroup`?e.body:[e]},Z6=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Q6=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),izt={display:y3.DISPLAY,text:y3.TEXT,script:y3.SCRIPT,scriptscript:y3.SCRIPTSCRIPT},azt={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},$6=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Q6.has(r)?t.classes[0]=`mord`:r===`mbin`&&Z6.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),ozt(i,(e,t)=>{var n=t8(t),r=t8(e),i=n&&r?e.hasClass(`mtight`)?G6[n]?.[r]:rzt[n]?.[r]:null;if(i)return ezt(i,l)},{node:d},f,p),i},ozt=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},szt=function(e){return e instanceof E3||e instanceof F3||e instanceof P3&&e.hasClass(`enclosing`)?e:null},e8=function(e,t){var n=szt(e);if(n){var r=n.children;if(r.length){if(t===`right`)return e8(r[r.length-1],`right`);if(t===`left`)return e8(r[0],`left`)}}return e},t8=function(e,t){return e?(t&&(e=e8(e,t)),azt[e.classes[0]]||null):null},n8=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return N6(t.concat(n))},r8=function(e,t,n){if(!e)return N6();if(q6[e.type]){var r=q6[e.type](e,t);if(n&&t.size!==n.size){r=N6(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new i3(`Got group of unknown type: '`+e.type+`'`)},i8=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=k3(this.classes));for(var i=0;i0&&(e+=` class ="`+a3(k3(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},a8=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return a3(this.toText())}toText(){return this.text}},czt=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,O3(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},o8=new Set([`\\imath`,`\\jmath`]),s8=new Set([`mrow`,`mtable`]),c8=function(e,t,n){var r,i;return q3[t][e]&&q3[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(LRt,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=q3[t][e].replace),new a8(e)},l8=function(e){return e.length===1?e[0]:new i8(`mrow`,e)},lzt={mathit:`italic`,boldsymbol:e=>e.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`},u8=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=lzt[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(o8.has(a))return null;if(q3[r][a]){var o=q3[r][a].replace;o&&(a=o)}var s=V6[n].fontName;return YLt(a,s,r)?V6[n].variant:null},d8=function(e,t,n){if(e.length===1){var r=p8(e[0],t);return n&&r instanceof i8&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||ZLt(a))){var l=s.children[0];l instanceof i8&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof a8&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof a8&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},f8=function(e,t,n){return l8(d8(e,t,n))},p8=function(e,t){if(!e)return new i8(`mrow`);if(J6[e.type])return J6[e.type](e,t);throw new i3(`Got group of unknown type: '`+e.type+`'`)},uzt=[[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]],m8=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],h8=function(e,t){return t.size<2?e:uzt[e-1][t.size-1]},g8=class e{constructor(t){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.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=m8[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={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,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:h8(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:m8[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=h8(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=XLt(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},g8.BASESIZE=6,_8=e=>new g8({style:e.displayMode?y3.DISPLAY:y3.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),dzt=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=N6(n,[e])}return e},fzt=function(e,t,n){var r=_8(n),i;return n.output===`mathml`?QLt(e,t,r,n.displayMode,!0):(i=n.output===`html`?N6([`katex`],[J4(e,r)]):N6([`katex`],[QLt(e,t,r,n.displayMode,!1),J4(e,r)]),dzt(i,n))},pzt=function(e,t){return dzt(N6([`katex`],[J4(e,_8(t))]),t)},mzt={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":`=`},v8=function(e){var t=new i8(`mo`,[new a8(mzt[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},hzt={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]},gzt=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),y8=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(gzt.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new B3(o);return{span:P6([],[new z3([u],{width:`100%`,height:O3(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=hzt[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var p=f[0],m=f[1],h=f[2],g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support - `+_+` children.`);for(var b=0;b<_;b++){var x=new B3(p[b]),S=new z3([x],{width:`400em`,height:O3(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=P6([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=O3(g),d.push(C)}return{span:N6([`katex-stretchy`],d,t),minWidth:m,height:g}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=O3(o),a>0&&(i.style.minWidth=O3(a)),i},b8=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=N6([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new V3({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new V3({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=P6([],[new z3(l,{width:`100%`,height:O3(o)})],i)}return a.height=o,a.style.height=O3(o),a},_zt=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],x8=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],vzt=new Set(_zt),yzt=new Set(x8),S8=e=>{if(e instanceof R3)return e;if(H3(e)&&e.children.length===1)return S8(e.children[0])},bzt=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=X4(e.base,`accent`),n=r.base,e.base=n,i=qLt(r8(e,t)),e.base=r):(r=X4(e,`accent`),n=r.base);var a=r8(n,t.havingCrampedStyle()),o=r.isShifty&&s3(n),s=0;o&&(s=S8(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=y8(r,t),d=z6({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+O3(2*s)+`)`,marginLeft:O3(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=nzt(`vec`,t),p=tzt.vec[1]):(f=M6({type:`textord`,mode:r.mode,text:r.label},t),f=KLt(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=N6([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=O3(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=z6({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=N6([`mord`,`katex-accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},xzt=(e,t)=>{var n=e.isStretchy?v8(e.label):new i8(`mo`,[c8(e.label,e.mode)]),r=new i8(`mover`,[p8(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Szt=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),G4({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=Y6(t[0]),r=!Szt.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:bzt,mathmlBuilder:xzt}),G4({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(W4({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),G4({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=r8(e.base,t),r=y8(e,t),i=e.label===`\\utilde`?.12:0;return N6([`mord`,`accentunder`],[z6({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=v8(e.label),r=new i8(`munder`,[p8(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),C8=e=>{var t=new i8(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},G4({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=R6(r8(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=R6(r8(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=y8(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=z6({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=z6({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return N6([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=v8(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=C8(p8(e.body,t));if(e.below){var a=C8(p8(e.below,t));r=new i8(`munderover`,[n,a,i])}else r=new i8(`mover`,[n,i])}else if(e.below){var o=C8(p8(e.below,t));r=new i8(`munder`,[n,o])}else r=C8(),r=new i8(`mover`,[n,r]);return r}}),G4({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:X6(i),isCharacterBox:s3(i)}},htmlBuilder:tRt,mathmlBuilder:nRt}),w8=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},G4({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:w8(t[0]),body:X6(t[1]),isCharacterBox:s3(t[1])}}}),G4({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:w8(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:X6(i)},l=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:s3(l)}}}),G4({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:w8(t[0]),body:X6(t[0])}},htmlBuilder(e,t){var n=$6(e.body,t,!0),r=N6([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=d8(e.body,t),r=new i8(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),T8={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},E8=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),D8=e=>e.type===`textord`&&e.text===`@`,Czt=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,G4({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=R6(r8(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=O3(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new i8(`mrow`,[p8(e.label,t)]);return n=new i8(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new i8(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),G4({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=R6(r8(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new i8(`mrow`,[p8(e.fragment,t)])}}),G4({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=eRt(X4(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new i3(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new i3(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),wzt=(e,t)=>L6($6(e.body,t.withColor(e.color),!1)),O8=(e,t)=>{var n=d8(e.body,t.withColor(e.color)),r=new i8(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},G4({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=X4(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:X6(i)}},htmlBuilder:wzt,mathmlBuilder:O8}),G4({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=X4(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),G4({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!W4({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&X4(n,`size`).value}},htmlBuilder(e,t){var n=N6([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=O3(D3(e.size,t)))),n},mathmlBuilder(e,t){var n=new i8(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,O3(D3(e.size,t)))),n}}),Tzt={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Ezt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new i3(`Expected a control sequence`,e);return t},Dzt=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},k8=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},G4({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Tzt[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Tzt[r.text]),X4(t.parseFunction(),`internal`);throw new i3(`Invalid token after macro prefix`,r)}}),G4({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new i3(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new i3(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new i3(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new i3(`Expected a macro definition`);else s[a].push(r.text);var l=t.gullet.consumeArg().tokens;return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===Tzt[n]),{type:`internal`,mode:t.mode}}}),G4({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Ezt(t.gullet.popToken());return t.gullet.consumeSpaces(),k8(t,r,Dzt(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),G4({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Ezt(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return k8(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),A8=function(e,t,n){var r=YLt(q3.math[e]&&q3.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},j8=function(e,t,n,r){var i=n.havingBaseStyle(t),a=N6(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},M8=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=O3(i),e.height-=i,e.depth+=i},N8=function(e,t,n,r,i,a){var o=j8(A6(e,`Main-Regular`,i,r),t,r,a);return n&&M8(o,r,t),o},P8=function(e,t,n,r){return A6(e,`Size`+t+`-Regular`,n,r)},Ozt=function(e,t,n,r,i,a){var o=P8(e,t,i,r),s=j8(N6([`delimsizing`,`size`+t],[o],r),y3.TEXT,r,a);return n&&M8(s,r,y3.TEXT),s},F8=function(e,t,n,r){return{type:`elem`,elem:N6([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[N6([],[A6(e,t,n,r)])])}},I8=function(e,t,n){var r=U3[`Size4-Regular`][e.charCodeAt(0)]?U3[`Size4-Regular`][e.charCodeAt(0)][4]:U3[`Size1-Regular`][e.charCodeAt(0)][4],i=new B3(`inner`,ARt(e,Math.round(1e3*t))),a=P6([],[new z3([i],{width:O3(r),height:O3(t),style:`width:`+O3(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=O3(t),a.style.width=O3(r),{type:`elem`,elem:a}},L8=.008,R8={type:`kern`,size:-1*L8},kzt=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),z8=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),B8=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):kzt.has(e)?(l=`∣`,d=`vert`,f=333):z8.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=A8(o,p,i),h=m.height+m.depth,g=A8(l,p,i),_=g.height+g.depth,v=A8(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=A8(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=MRt(d,Math.round(O*1e3)),j=new B3(d,A),M=O3(f/1e3),ee=O3(k/1e3),te=P6([],[new z3([j],{width:M,height:ee,viewBox:`0 0 `+f+` `+k})],r);te.height=k/1e3,te.style.width=M,te.style.height=ee,D.push({type:`elem`,elem:te})}else{if(D.push(F8(u,p,i,r)),D.push(R8),s===null){var ne=w-h-y+2*L8;D.push(I8(l,ne,r))}else{var re=(w-h-y-b)/2+2*L8;D.push(I8(l,re,r)),D.push(R8),D.push(F8(s,p,i,r)),D.push(R8),D.push(I8(l,re,r))}D.push(R8),D.push(F8(o,p,i,r))}var ie=r.havingBaseStyle(y3.TEXT);return j8(N6([`delimsizing`,`mult`],[z6({positionType:`bottom`,positionData:E,children:D})],ie),y3.TEXT,r,a)},V8=80,H8=.08,U8=function(e,t,n,r,i){var a=T3(e,r,n),o=new B3(e,a);return P6([`hide-tail`],[new z3([o],{width:`400em`,height:O3(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Azt=function(e,t){var n=t.havingBaseSizing(),r=Rzt(`\\surd`,e*n.sizeMultiplier,Izt,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+V8,e<1?i=1:e<1.4&&(i=.7),s=(1+a+H8)/i,l=(1+a)/i,o=U8(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+V8)*W8[r.size],l=(W8[r.size]+a)/i,s=(W8[r.size]+a+H8)/i,o=U8(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+H8,l=e+a,u=Math.floor(1e3*e+a)+V8,o=U8(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=O3(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},jzt=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Mzt=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Nzt=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),W8=[0,1.2,1.8,2.4,3],G8=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),jzt.has(e)||Nzt.has(e))return Ozt(e,t,!1,n,r,i);if(Mzt.has(e))return B8(e,W8[t],!1,n,r,i);throw new i3(`Illegal delimiter: '`+e+`'`)},Pzt=[{type:`small`,style:y3.SCRIPTSCRIPT},{type:`small`,style:y3.SCRIPT},{type:`small`,style:y3.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Fzt=[{type:`small`,style:y3.SCRIPTSCRIPT},{type:`small`,style:y3.SCRIPT},{type:`small`,style:y3.TEXT},{type:`stack`}],Izt=[{type:`small`,style:y3.SCRIPTSCRIPT},{type:`small`,style:y3.SCRIPT},{type:`small`,style:y3.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Lzt=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 t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Rzt=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},K8=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Nzt.has(e)?Pzt:jzt.has(e)?Izt:Fzt,s=Rzt(e,t,o,r);return s.type===`small`?N8(e,s.style,n,r,i,a):s.type===`large`?Ozt(e,s.size,n,r,i,a):B8(e,t,n,r,i,a)},q8=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return K8(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},zzt={"\\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}},Bzt=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,.`.split(`,`)),G4({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=oRt(Y6(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:zzt[e.funcName].size,mclass:zzt[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?N6([e.mclass]):G8(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(c8(e.delim,e.mode));var n=new i8(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=O3(W8[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),G4({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new i3(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:oRt(t[0],e).text,color:n}}}),G4({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=oRt(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=X4(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{$4(e);for(var n=$6(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{$4(e);var n=d8(e.body,t);if(e.left!==`.`){var r=new i8(`mo`,[c8(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new i8(`mo`,[c8(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return l8(n)}}),G4({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=oRt(t[0],e);if(!e.parser.leftrightDepth)throw new i3(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=n8(t,[]):(n=G8(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?c8(`|`,`text`):c8(e.delim,e.mode),r=new i8(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),J8=(e,t)=>{var n=R6(r8(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=s3(e.body);if(r===`sout`)a=N6([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=D3({number:.6,unit:`pt`},t),u=D3({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=O3(f/2+l);var p=Math.floor(1e3*f*i),m=ORt(p);a=P6([`hide-tail`],[new z3([new B3(`phase`,m)],{width:`400em`,height:O3(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=O3(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=b8(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=O3(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=O3(_),a.style.borderRightWidth=O3(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=z6({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=z6({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?N6([`mord`,`cancel-lap`],[v],t):N6([`mord`],[v],t)},Y8=(e,t)=>{var n,r=new i8(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[p8(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+O3(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},G4({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=X4(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:J8,mathmlBuilder:Y8}),G4({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=X4(t[0],`color-token`).color,o=X4(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),G4({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),G4({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),G4({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&W4({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),G4({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}}),X8={},Z8={},Q8=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},$8=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Q8.range(this,t))}},e5=e=>{if(!e.parser.settings.displayMode)throw new i3(`{`+e.envName+`} can be used only in display mode.`)},t5=new Set([`gather`,`gather*`]),n5=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(y3.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?D3({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ue=void 0;(r>0||e.hskipBeforeAndAfter)&&(ue=ie?.pregap??f,ue!==0&&(A=N6([`arraycolsep`],[]),A.style.width=O3(ue),k.push(A)));var de=[];for(n=0;n0){for(var ve=F6(`katex-hline`,t,u),ye=F6(`katex-hdashline`,t,u),be=[{type:`elem`,elem:_e,shift:0}];l.length>0;){var xe=l.pop(),Se=xe.pos-D;xe.isDashed?be.push({type:`elem`,elem:ye,shift:Se}):be.push({type:`elem`,elem:ve,shift:Se})}_e=z6({positionType:`individualShift`,children:be})}if(M.length===0)return N6([`mord`],[_e],t);var Ce=N6([`katex-tag`],[z6({positionType:`individualShift`,children:M})],t);return L6([_e,Ce])},r5={c:`center `,l:`left `,r:`right `},i5=function(e,t){for(var n=[],r=new i8(`mtd`,[],[`mtr-glue`]),i=new i8(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&d&&(m=1),n[f]={type:`align`,align:p,pregap:m,postgap:0}}return i.colSeparationType=d?`align`:`alignat`,i},e3({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Q4(t[0])?[t[0]]:X4(t[0],`ordgroup`).body).map(function(e){var t=Z4(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new i3(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return n3(e.parser,r,r3(e.envName))},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new i3(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=n3(e.parser,r,r3(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=n3(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Q4(t[0])?[t[0]]:X4(t[0],`ordgroup`).body).map(function(e){var t=Z4(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new i3(`Unknown column alignment: `+t,e)});if(n.length>1)throw new i3(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=n3(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new i3(`{subarray} can contain only one column`);return i},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=n3(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},r3(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Vzt,htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){t5.has(e.envName)&&e5(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:cRt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return n3(e.parser,t,`display`)},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Vzt,htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){e5(e);var t={autoTag:cRt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return n3(e.parser,t,`display`)},htmlBuilder:n5,mathmlBuilder:i5}),e3({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return e5(e),iRt(e.parser)},htmlBuilder:n5,mathmlBuilder:i5}),t3(`\\nonumber`,`\\gdef\\@eqnsw{0}`),t3(`\\notag`,`\\nonumber`),G4({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new i3(e.funcName+` valid only within array environment`)}}),a5=X8,G4({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new i3(`Invalid environment name`,i);var a=eRt(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(a5,a))throw new i3(`No such environment: `+a,i);var o=a5[a],s=n.parseArguments(`\\begin{`+a+`}`,o),l=s.args,u=s.optArgs,d={mode:n.mode,envName:a,parser:n},f=o.handler(d,l,u);n.expect(`\\end`,!1);var p=n.nextToken,m=X4(n.parseFunction(),`environment`);if(m.name!==a)throw new i3(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}}),o5=(e,t)=>{var n=e.font,r=t.withFont(n);return r8(e.body,r)},s5=(e,t)=>{var n=e.font,r=t.withFont(n);return p8(e.body,r)},c5={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},G4({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=Y6(t[0]),a=r in c5?c5[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:o5,mathmlBuilder:s5}),G4({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:w8(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:s3(r)}}}),G4({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}}),l5=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=r8(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new i8(`mfrac`,[p8(e.numer,t),p8(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=D3(e.barSize,t);n.setAttribute(`linethickness`,O3(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new i8(`mo`,[new a8(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new i8(`mo`,[new a8(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return l8(i)}return n},d5=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,G4({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),d5({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:l5,mathmlBuilder:u5}),G4({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),f5=[`display`,`text`,`script`,`scriptscript`],p5=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},G4({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=Y6(t[0]),o=a.type===`atom`&&a.family===`open`?p5(a.text):null,s=Y6(t[1]),l=s.type===`atom`&&s.family===`close`?p5(s.text):null,u=X4(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=X4(m.body[0],`textord`);p=f5[Number(h.text)]}}else m=X4(m,`textord`),p=f5[Number(m.text)];return d5({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),G4({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:X4(t[0],`size`).value,token:r}}}),G4({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=X4(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}}),m5=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?r8(e.sup,t.havingStyle(n.sup()),t):r8(e.sub,t.havingStyle(n.sub()),t),i=X4(e.base,`horizBrace`)):i=X4(e,`horizBrace`);var a=r8(i.base,t.havingBaseStyle(y3.DISPLAY)),o=y8(i,t),s=i.isOver?z6({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):z6({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=N6([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?z6({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):z6({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return N6([`minner`,i.isOver?`mover`:`munder`],[s],t)},Hzt=(e,t)=>{var n=v8(e.label);return new i8(e.isOver?`mover`:`munder`,[p8(e.base,t),n])},G4({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:m5,mathmlBuilder:Hzt}),G4({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=X4(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:X6(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=$6(e.body,t,!1);return I6(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=f8(e.body,t);return n instanceof i8||(n=new i8(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),G4({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=X4(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=X4(t[0],`raw`).string,a=t[1];n.settings.strict&&W4({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var l=`{,}`,u=[],d=``,f=0;f{var n=$6(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=N6(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>f8(e.body,t)}),G4({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:X6(t[0]),mathml:X6(t[1])}),htmlBuilder:(e,t)=>L6($6(e.html,t,!1)),mathmlBuilder:(e,t)=>f8(e.mathml,t)}),Uzt=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new i3(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!FRt(n))throw new i3(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},G4({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=X4(n[0],`raw`).string.split(`,`),u=0;u{var n=D3(e.height,t),r=0;e.totalheight.number>0&&(r=D3(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=D3(e.width,t));var a={height:O3(n+r)};i>0&&(a.width=O3(i)),r>0&&(a.verticalAlign=O3(-r));var o=new I3(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new i8(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=D3(e.height,t),i=0;if(e.totalheight.number>0&&(i=D3(e.totalheight,t)-r,n.setAttribute(`valign`,O3(-i))),n.setAttribute(`height`,O3(r+i)),e.width.number>0){var a=D3(e.width,t);n.setAttribute(`width`,O3(a))}return n.setAttribute(`src`,e.src),n}}),G4({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=X4(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||W4({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&W4({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&W4({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return ezt(e.dimension,t)},mathmlBuilder(e,t){var n=D3(e.dimension,t);return new czt(n)}}),G4({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=N6([],[r8(e.body,t)]),n=N6([`katex-inner`],[n],t)):n=N6([`katex-inner`],[r8(e.body,t)]);var r=N6([`katex-fix`],[]),i=N6([e.alignment],[n,r],t),a=N6([`katex-strut`]);return a.style.height=O3(i.height+i.depth),i.depth&&(a.style.verticalAlign=O3(-i.depth)),i.children.unshift(a),i=N6([`katex-thinbox`],[i],t),N6([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new i8(`mpadded`,[p8(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),G4({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),G4({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new i3(`Mismatched `+e.funcName)}}),h5=(e,t)=>{switch(t.style.size){case y3.DISPLAY.size:return e.display;case y3.TEXT.size:return e.text;case y3.SCRIPT.size:return e.script;case y3.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},G4({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:X6(t[0]),text:X6(t[1]),script:X6(t[2]),scriptscript:X6(t[3])}),htmlBuilder:(e,t)=>L6($6(h5(e,t),t,!1)),mathmlBuilder:(e,t)=>f8(h5(e,t),t)}),g5=(e,t,n,r,i,a,o)=>{e=N6([],[e]);var s=n&&s3(n),l,u;if(t){var d=r8(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=r8(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=z6({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:O3(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:O3(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=z6({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:O3(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=z6({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:O3(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=N6([`mspace`],[],r);h.style.marginRight=O3(a),m.unshift(h)}return N6([`mop`,`op-limits`],m,r)},Wzt=new Set([`\\smallint`]),_5=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=X4(e.base,`op`),i=!0):a=X4(e,`op`);var o=t.style,s=!1;o.size===y3.DISPLAY.size&&a.symbol&&!Wzt.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=A6(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=nzt(f+`Size`+(s?`2`:`1`),t);l=z6({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=$6(a.body,t,!0);m.length===1&&m[0]instanceof R3?(l=m[0],l.classes[0]=`mop`):l=N6([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new i8(`mo`,[c8(e.name,e.mode)]),Wzt.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new i8(`mo`,d8(e.body,t));else{n=new i8(`mi`,[new a8(e.name.slice(1))]);var r=new i8(`mo`,[c8(`⁡`,`text`)]);n=e.parentIsSupSub?new i8(`mrow`,[n,r]):Y4([n,r])}return n},Gzt={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},G4({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=Gzt[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:_5,mathmlBuilder:v5}),G4({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:X6(r)}}}),y5={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},G4({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`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),G4({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),G4({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=y5[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}}),b5=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=X4(e.base,`operatorname`),i=!0):a=X4(e,`operatorname`);var o;if(a.body.length>0){for(var s=$6(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=d8(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new a8(s)]}var l=new i8(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new i8(`mo`,[c8(`⁡`,`text`)]);return e.parentIsSupSub?new i8(`mrow`,[l,u]):Y4([l,u])},G4({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:X6(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:b5,mathmlBuilder:x5}),t3(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),K4({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?L6($6(e.body,t,!1)):N6([`mord`],$6(e.body,t,!0),t)},mathmlBuilder(e,t){return f8(e.body,t,!0)}}),G4({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=r8(e.body,t.havingCrampedStyle()),r=F6(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return N6([`mord`,`katex-overline`],[z6({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new i8(`mo`,[new a8(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new i8(`mover`,[p8(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),G4({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:X6(r)}},htmlBuilder:(e,t)=>L6($6(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=d8(e.body,t);return new i8(`mphantom`,n)}}),t3(`\\hphantom`,`\\smash{\\phantom{#1}}`),G4({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>N6([`mord`,`rlap`],[N6([`katex-inner`],[r8(e.body,t.withPhantom())]),N6([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=d8(X6(e.body),t),r=new i8(`mphantom`,n),i=new i8(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),G4({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=X4(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=r8(e.body,t);return z6({positionType:`shift`,positionData:-D3(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new i8(`mpadded`,[p8(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),S5=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]}),G4({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:S5,htmlBuilder(e,t){return N6([`mord`,`reflectbox`],[r8(e.body,t)],t)},mathmlBuilder(e,t){return p8(e.body,t)}}),G4({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:S5}),G4({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),G4({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=X4(t[0],`size`),o=X4(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&X4(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=N6([`mord`,`katex-rule`],[],t),r=D3(e.width,t),i=D3(e.height,t),a=e.shift?D3(e.shift,t):0;return n.style.borderRightWidth=O3(r),n.style.borderTopWidth=O3(i),n.style.bottom=O3(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=D3(e.width,t),r=D3(e.height,t),i=e.shift?D3(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new i8(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,O3(n)),o.setAttribute(`height`,O3(r));var s=new i8(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,O3(i)):(s.setAttribute(`height`,O3(i)),s.setAttribute(`depth`,O3(-i))),s.setAttribute(`voffset`,O3(i)),s}}),C5=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],w5=(e,t)=>{var n=t.havingSize(e.size);return lRt(e.body,n,t)},G4({type:`sizing`,names:C5,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:C5.indexOf(r)+1,body:a}},htmlBuilder:w5,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=d8(e.body,n),i=new i8(`mstyle`,r);return i.setAttribute(`mathsize`,O3(n.sizeMultiplier)),i}}),G4({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&X4(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=N6([],[r8(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return N6([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new i8(`mpadded`,[p8(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),G4({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=r8(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=R6(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=s.height-n.height-a-l;n.style.paddingLeft=O3(u);var p=z6({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:s},{type:`kern`,size:l}]});if(e.index){var m=t.havingStyle(y3.SCRIPTSCRIPT),h=r8(e.index,m,t);return N6([`mord`,`sqrt`],[N6([`katex-root`],[z6({positionType:`shift`,positionData:-(.6*(p.height-p.depth)),children:[{type:`elem`,elem:h}]})]),p],t)}return N6([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new i8(`mroot`,[p8(n,t),p8(r,t)]):new i8(`msqrt`,[p8(n,t)])}}),Kzt={display:y3.DISPLAY,text:y3.TEXT,script:y3.SCRIPT,scriptscript:y3.SCRIPTSCRIPT},G4({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!uRt(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Kzt[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),lRt(e.body,r,t)},mathmlBuilder(e,t){var n=Kzt[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=d8(e.body,r),a=new i8(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),qzt=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===y3.DISPLAY.size||n.alwaysHandleSupSub)?_5:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===y3.DISPLAY.size||n.limits)?b5:null:n.type===`accent`?s3(n.base)?bzt:null:n.type===`horizBrace`&&!e.sub===n.isOver?m5:null:null},K4({type:`supsub`,htmlBuilder(e,t){var n=qzt(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=r8(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&s3(r);if(i){var m=t.havingStyle(t.style.sup());s=r8(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=r8(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===y3.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=O3(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof R3||b)&&(y=O3(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=z6({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=z6({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=z6({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return N6([t8(o,`right`)||`mord`],[o,N6([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[p8(e.base,t)];e.sub&&a.push(p8(e.sub,t)),e.sup&&a.push(p8(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===y3.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===y3.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===y3.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===y3.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===y3.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===y3.DISPLAY)?`munder`:`msub`}return new i8(o,a)}}),K4({type:`atom`,htmlBuilder(e,t){return j6(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new i8(`mo`,[c8(e.text,e.mode)]);if(e.family===`bin`){var r=u8(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),T5={mi:`italic`,mn:`normal`,mtext:`normal`},K4({type:`mathord`,htmlBuilder(e,t){return M6(e,t)},mathmlBuilder(e,t){var n=new i8(`mi`,[c8(e.text,e.mode,t)]),r=u8(e,t)||`italic`;return r!==T5[n.type]&&n.setAttribute(`mathvariant`,r),n}}),K4({type:`textord`,htmlBuilder(e,t){return M6(e,t)},mathmlBuilder(e,t){var n=c8(e.text,e.mode,t),r=u8(e,t)||`normal`,i=e.mode===`text`?new i8(`mtext`,[n]):/[0-9]/.test(e.text)?new i8(`mn`,[n]):e.text===`\\prime`?new i8(`mo`,[n]):new i8(`mi`,[n]);return r!==T5[i.type]&&i.setAttribute(`mathvariant`,r),i}}),E5=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),D5=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]),K4({type:`spacing`,htmlBuilder(e,t){var n=D5.get(e.text),r=E5.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=M6(e,t);return a.classes.push(i),a}return N6([`mspace`,i],[j6(e.text,e.mode,t)],t)}if(r)return N6([`mspace`,r],[],t);throw new i3(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(D5.has(e.text))n=new i8(`mtext`,[new a8(`\xA0`)]);else if(E5.has(e.text))return new i8(`mspace`);else throw new i3(`Unknown type of space "`+e.text+`"`);return n}}),O5=()=>{var e=new i8(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},K4({type:`tag`,mathmlBuilder(e,t){var n=new i8(`mtable`,[new i8(`mtr`,[O5(),new i8(`mtd`,[f8(e.body,t)]),O5(),new i8(`mtd`,[f8(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),k5={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},A5={"\\textbf":`textbf`,"\\textmd":`textmd`},Jzt={"\\textit":`textit`,"\\textup":`textup`},Yzt=(e,t)=>{var n=e.font;return n?k5[n]?t.withTextFontFamily(k5[n]):A5[n]?t.withTextFontWeight(A5[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Jzt[n]):t},G4({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:X6(i),font:r}},htmlBuilder(e,t){var n=Yzt(e,t);return N6([`mord`,`text`],$6(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Yzt(e,t);return f8(e.body,n)}}),G4({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=r8(e.body,t),r=F6(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return N6([`mord`,`katex-underline`],[z6({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new i8(`mo`,[new a8(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new i8(`munder`,[p8(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),G4({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=r8(e.body,t),r=t.fontMetrics().axisHeight;return z6({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new i8(`mpadded`,[p8(e.body,t)],[`vcenter`]);return new i8(`mrow`,[n])}}),G4({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new i3(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=j5(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),M5=K6,N5=`[ \r - ]`,P5=`\\\\[a-zA-Z@]+`,F5=`\\\\[^\ud800-\udfff]`,I5=`(`+P5+`)`+N5+`*`,L5=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},y3=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(),t=0;t{if(tRt(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},GRt={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},KRt={ex:!0,em:!0,mu:!0},b3=function(e){return typeof e!=`string`&&(e=e.unit),e in GRt||e in KRt||e===`ex`},x3=function(e,t){var n;if(e.unit in GRt)n=GRt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new t3(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},S3=function(e){return+e.toFixed(4)+`em`},C3=function(e){return e.filter(e=>e).join(` `)},w3=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=bRt(n)+`:`+r+`;`)}return t},T3=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},E3=function(e){var t=document.createElement(e);t.className=C3(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,qRt=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+n3(C3(this.classes))+`"`);var n=w3(this.style);n&&(t+=` style="`+n3(n)+`"`);for(var r of Object.keys(this.attributes)){if(D3.test(r))throw new t3(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+n3(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},O3=class{constructor(e,t,n,r){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,T3.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return E3.call(this,`span`)}toMarkup(){return qRt.call(this,`span`)}},k3=class{constructor(e,t,n,r){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,T3.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return E3.call(this,`a`)}toMarkup(){return qRt.call(this,`a`)}},A3=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.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=``+n3(this.alt)+``,e}},j3={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},M3=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=$Lt(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=j3[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=S3(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=C3(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+S3(this.italic)+`;`),n+=w3(this.style),n&&(e=!0,t+=` style="`+n3(n)+`"`);var r=n3(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},N3=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},P3=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,URt[this.pathName]),e}toMarkup(){return this.alternate?``:``}},F3=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},JRt=e=>e instanceof O3||e instanceof k3||e instanceof y3,I3={"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]}},L3={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]},YRt={Å:`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`},R3={},z3={math:{},text:{}},Q=`math`,B3=`text`,V3=`main`,H3=`ams`,U3=`accent-token`,W3=`bin`,G3=`close`,K3=`inner`,q3=`mathord`,J3=`op-token`,Y3=`open`,X3=`punct`,Z3=`rel`,Q3=`spacing`,$3=`textord`,Z(Q,V3,Z3,`≡`,`\\equiv`,!0),Z(Q,V3,Z3,`≺`,`\\prec`,!0),Z(Q,V3,Z3,`≻`,`\\succ`,!0),Z(Q,V3,Z3,`∼`,`\\sim`,!0),Z(Q,V3,Z3,`⊥`,`\\perp`),Z(Q,V3,Z3,`⪯`,`\\preceq`,!0),Z(Q,V3,Z3,`⪰`,`\\succeq`,!0),Z(Q,V3,Z3,`≃`,`\\simeq`,!0),Z(Q,V3,Z3,`∣`,`\\mid`,!0),Z(Q,V3,Z3,`≪`,`\\ll`,!0),Z(Q,V3,Z3,`≫`,`\\gg`,!0),Z(Q,V3,Z3,`≍`,`\\asymp`,!0),Z(Q,V3,Z3,`∥`,`\\parallel`),Z(Q,V3,Z3,`⋈`,`\\bowtie`,!0),Z(Q,V3,Z3,`⌣`,`\\smile`,!0),Z(Q,V3,Z3,`⊑`,`\\sqsubseteq`,!0),Z(Q,V3,Z3,`⊒`,`\\sqsupseteq`,!0),Z(Q,V3,Z3,`≐`,`\\doteq`,!0),Z(Q,V3,Z3,`⌢`,`\\frown`,!0),Z(Q,V3,Z3,`∋`,`\\ni`,!0),Z(Q,V3,Z3,`∝`,`\\propto`,!0),Z(Q,V3,Z3,`⊢`,`\\vdash`,!0),Z(Q,V3,Z3,`⊣`,`\\dashv`,!0),Z(Q,V3,Z3,`∋`,`\\owns`),Z(Q,V3,X3,`.`,`\\ldotp`),Z(Q,V3,X3,`⋅`,`\\cdotp`),Z(Q,V3,X3,`⋅`,`·`),Z(B3,V3,$3,`⋅`,`·`),Z(Q,V3,$3,`#`,`\\#`),Z(B3,V3,$3,`#`,`\\#`),Z(Q,V3,$3,`&`,`\\&`),Z(B3,V3,$3,`&`,`\\&`),Z(Q,V3,$3,`ℵ`,`\\aleph`,!0),Z(Q,V3,$3,`∀`,`\\forall`,!0),Z(Q,V3,$3,`ℏ`,`\\hbar`,!0),Z(Q,V3,$3,`∃`,`\\exists`,!0),Z(Q,V3,$3,`∇`,`\\nabla`,!0),Z(Q,V3,$3,`♭`,`\\flat`,!0),Z(Q,V3,$3,`ℓ`,`\\ell`,!0),Z(Q,V3,$3,`♮`,`\\natural`,!0),Z(Q,V3,$3,`♣`,`\\clubsuit`,!0),Z(Q,V3,$3,`℘`,`\\wp`,!0),Z(Q,V3,$3,`♯`,`\\sharp`,!0),Z(Q,V3,$3,`♢`,`\\diamondsuit`,!0),Z(Q,V3,$3,`ℜ`,`\\Re`,!0),Z(Q,V3,$3,`♡`,`\\heartsuit`,!0),Z(Q,V3,$3,`ℑ`,`\\Im`,!0),Z(Q,V3,$3,`♠`,`\\spadesuit`,!0),Z(Q,V3,$3,`§`,`\\S`,!0),Z(B3,V3,$3,`§`,`\\S`),Z(Q,V3,$3,`¶`,`\\P`,!0),Z(B3,V3,$3,`¶`,`\\P`),Z(Q,V3,$3,`†`,`\\dag`),Z(B3,V3,$3,`†`,`\\dag`),Z(B3,V3,$3,`†`,`\\textdagger`),Z(Q,V3,$3,`‡`,`\\ddag`),Z(B3,V3,$3,`‡`,`\\ddag`),Z(B3,V3,$3,`‡`,`\\textdaggerdbl`),Z(Q,V3,G3,`⎱`,`\\rmoustache`,!0),Z(Q,V3,Y3,`⎰`,`\\lmoustache`,!0),Z(Q,V3,G3,`⟯`,`\\rgroup`,!0),Z(Q,V3,Y3,`⟮`,`\\lgroup`,!0),Z(Q,V3,W3,`∓`,`\\mp`,!0),Z(Q,V3,W3,`⊖`,`\\ominus`,!0),Z(Q,V3,W3,`⊎`,`\\uplus`,!0),Z(Q,V3,W3,`⊓`,`\\sqcap`,!0),Z(Q,V3,W3,`∗`,`\\ast`),Z(Q,V3,W3,`⊔`,`\\sqcup`,!0),Z(Q,V3,W3,`◯`,`\\bigcirc`,!0),Z(Q,V3,W3,`∙`,`\\bullet`,!0),Z(Q,V3,W3,`‡`,`\\ddagger`),Z(Q,V3,W3,`≀`,`\\wr`,!0),Z(Q,V3,W3,`⨿`,`\\amalg`),Z(Q,V3,W3,`&`,`\\And`),Z(Q,V3,Z3,`⟵`,`\\longleftarrow`,!0),Z(Q,V3,Z3,`⇐`,`\\Leftarrow`,!0),Z(Q,V3,Z3,`⟸`,`\\Longleftarrow`,!0),Z(Q,V3,Z3,`⟶`,`\\longrightarrow`,!0),Z(Q,V3,Z3,`⇒`,`\\Rightarrow`,!0),Z(Q,V3,Z3,`⟹`,`\\Longrightarrow`,!0),Z(Q,V3,Z3,`↔`,`\\leftrightarrow`,!0),Z(Q,V3,Z3,`⟷`,`\\longleftrightarrow`,!0),Z(Q,V3,Z3,`⇔`,`\\Leftrightarrow`,!0),Z(Q,V3,Z3,`⟺`,`\\Longleftrightarrow`,!0),Z(Q,V3,Z3,`↦`,`\\mapsto`,!0),Z(Q,V3,Z3,`⟼`,`\\longmapsto`,!0),Z(Q,V3,Z3,`↗`,`\\nearrow`,!0),Z(Q,V3,Z3,`↩`,`\\hookleftarrow`,!0),Z(Q,V3,Z3,`↪`,`\\hookrightarrow`,!0),Z(Q,V3,Z3,`↘`,`\\searrow`,!0),Z(Q,V3,Z3,`↼`,`\\leftharpoonup`,!0),Z(Q,V3,Z3,`⇀`,`\\rightharpoonup`,!0),Z(Q,V3,Z3,`↙`,`\\swarrow`,!0),Z(Q,V3,Z3,`↽`,`\\leftharpoondown`,!0),Z(Q,V3,Z3,`⇁`,`\\rightharpoondown`,!0),Z(Q,V3,Z3,`↖`,`\\nwarrow`,!0),Z(Q,V3,Z3,`⇌`,`\\rightleftharpoons`,!0),Z(Q,H3,Z3,`≮`,`\\nless`,!0),Z(Q,H3,Z3,``,`\\@nleqslant`),Z(Q,H3,Z3,``,`\\@nleqq`),Z(Q,H3,Z3,`⪇`,`\\lneq`,!0),Z(Q,H3,Z3,`≨`,`\\lneqq`,!0),Z(Q,H3,Z3,``,`\\@lvertneqq`),Z(Q,H3,Z3,`⋦`,`\\lnsim`,!0),Z(Q,H3,Z3,`⪉`,`\\lnapprox`,!0),Z(Q,H3,Z3,`⊀`,`\\nprec`,!0),Z(Q,H3,Z3,`⋠`,`\\npreceq`,!0),Z(Q,H3,Z3,`⋨`,`\\precnsim`,!0),Z(Q,H3,Z3,`⪹`,`\\precnapprox`,!0),Z(Q,H3,Z3,`≁`,`\\nsim`,!0),Z(Q,H3,Z3,``,`\\@nshortmid`),Z(Q,H3,Z3,`∤`,`\\nmid`,!0),Z(Q,H3,Z3,`⊬`,`\\nvdash`,!0),Z(Q,H3,Z3,`⊭`,`\\nvDash`,!0),Z(Q,H3,Z3,`⋪`,`\\ntriangleleft`),Z(Q,H3,Z3,`⋬`,`\\ntrianglelefteq`,!0),Z(Q,H3,Z3,`⊊`,`\\subsetneq`,!0),Z(Q,H3,Z3,``,`\\@varsubsetneq`),Z(Q,H3,Z3,`⫋`,`\\subsetneqq`,!0),Z(Q,H3,Z3,``,`\\@varsubsetneqq`),Z(Q,H3,Z3,`≯`,`\\ngtr`,!0),Z(Q,H3,Z3,``,`\\@ngeqslant`),Z(Q,H3,Z3,``,`\\@ngeqq`),Z(Q,H3,Z3,`⪈`,`\\gneq`,!0),Z(Q,H3,Z3,`≩`,`\\gneqq`,!0),Z(Q,H3,Z3,``,`\\@gvertneqq`),Z(Q,H3,Z3,`⋧`,`\\gnsim`,!0),Z(Q,H3,Z3,`⪊`,`\\gnapprox`,!0),Z(Q,H3,Z3,`⊁`,`\\nsucc`,!0),Z(Q,H3,Z3,`⋡`,`\\nsucceq`,!0),Z(Q,H3,Z3,`⋩`,`\\succnsim`,!0),Z(Q,H3,Z3,`⪺`,`\\succnapprox`,!0),Z(Q,H3,Z3,`≆`,`\\ncong`,!0),Z(Q,H3,Z3,``,`\\@nshortparallel`),Z(Q,H3,Z3,`∦`,`\\nparallel`,!0),Z(Q,H3,Z3,`⊯`,`\\nVDash`,!0),Z(Q,H3,Z3,`⋫`,`\\ntriangleright`),Z(Q,H3,Z3,`⋭`,`\\ntrianglerighteq`,!0),Z(Q,H3,Z3,``,`\\@nsupseteqq`),Z(Q,H3,Z3,`⊋`,`\\supsetneq`,!0),Z(Q,H3,Z3,``,`\\@varsupsetneq`),Z(Q,H3,Z3,`⫌`,`\\supsetneqq`,!0),Z(Q,H3,Z3,``,`\\@varsupsetneqq`),Z(Q,H3,Z3,`⊮`,`\\nVdash`,!0),Z(Q,H3,Z3,`⪵`,`\\precneqq`,!0),Z(Q,H3,Z3,`⪶`,`\\succneqq`,!0),Z(Q,H3,Z3,``,`\\@nsubseteqq`),Z(Q,H3,W3,`⊴`,`\\unlhd`),Z(Q,H3,W3,`⊵`,`\\unrhd`),Z(Q,H3,Z3,`↚`,`\\nleftarrow`,!0),Z(Q,H3,Z3,`↛`,`\\nrightarrow`,!0),Z(Q,H3,Z3,`⇍`,`\\nLeftarrow`,!0),Z(Q,H3,Z3,`⇏`,`\\nRightarrow`,!0),Z(Q,H3,Z3,`↮`,`\\nleftrightarrow`,!0),Z(Q,H3,Z3,`⇎`,`\\nLeftrightarrow`,!0),Z(Q,H3,Z3,`△`,`\\vartriangle`),Z(Q,H3,$3,`ℏ`,`\\hslash`),Z(Q,H3,$3,`▽`,`\\triangledown`),Z(Q,H3,$3,`◊`,`\\lozenge`),Z(Q,H3,$3,`Ⓢ`,`\\circledS`),Z(Q,H3,$3,`®`,`\\circledR`),Z(B3,H3,$3,`®`,`\\circledR`),Z(Q,H3,$3,`∡`,`\\measuredangle`,!0),Z(Q,H3,$3,`∄`,`\\nexists`),Z(Q,H3,$3,`℧`,`\\mho`),Z(Q,H3,$3,`Ⅎ`,`\\Finv`,!0),Z(Q,H3,$3,`⅁`,`\\Game`,!0),Z(Q,H3,$3,`‵`,`\\backprime`),Z(Q,H3,$3,`▲`,`\\blacktriangle`),Z(Q,H3,$3,`▼`,`\\blacktriangledown`),Z(Q,H3,$3,`■`,`\\blacksquare`),Z(Q,H3,$3,`⧫`,`\\blacklozenge`),Z(Q,H3,$3,`★`,`\\bigstar`),Z(Q,H3,$3,`∢`,`\\sphericalangle`,!0),Z(Q,H3,$3,`∁`,`\\complement`,!0),Z(Q,H3,$3,`ð`,`\\eth`,!0),Z(B3,V3,$3,`ð`,`ð`),Z(Q,H3,$3,`╱`,`\\diagup`),Z(Q,H3,$3,`╲`,`\\diagdown`),Z(Q,H3,$3,`□`,`\\square`),Z(Q,H3,$3,`□`,`\\Box`),Z(Q,H3,$3,`◊`,`\\Diamond`),Z(Q,H3,$3,`¥`,`\\yen`,!0),Z(B3,H3,$3,`¥`,`\\yen`,!0),Z(Q,H3,$3,`✓`,`\\checkmark`,!0),Z(B3,H3,$3,`✓`,`\\checkmark`),Z(Q,H3,$3,`ℶ`,`\\beth`,!0),Z(Q,H3,$3,`ℸ`,`\\daleth`,!0),Z(Q,H3,$3,`ℷ`,`\\gimel`,!0),Z(Q,H3,$3,`ϝ`,`\\digamma`,!0),Z(Q,H3,$3,`ϰ`,`\\varkappa`),Z(Q,H3,Y3,`┌`,`\\@ulcorner`,!0),Z(Q,H3,G3,`┐`,`\\@urcorner`,!0),Z(Q,H3,Y3,`└`,`\\@llcorner`,!0),Z(Q,H3,G3,`┘`,`\\@lrcorner`,!0),Z(Q,H3,Z3,`≦`,`\\leqq`,!0),Z(Q,H3,Z3,`⩽`,`\\leqslant`,!0),Z(Q,H3,Z3,`⪕`,`\\eqslantless`,!0),Z(Q,H3,Z3,`≲`,`\\lesssim`,!0),Z(Q,H3,Z3,`⪅`,`\\lessapprox`,!0),Z(Q,H3,Z3,`≊`,`\\approxeq`,!0),Z(Q,H3,W3,`⋖`,`\\lessdot`),Z(Q,H3,Z3,`⋘`,`\\lll`,!0),Z(Q,H3,Z3,`≶`,`\\lessgtr`,!0),Z(Q,H3,Z3,`⋚`,`\\lesseqgtr`,!0),Z(Q,H3,Z3,`⪋`,`\\lesseqqgtr`,!0),Z(Q,H3,Z3,`≑`,`\\doteqdot`),Z(Q,H3,Z3,`≓`,`\\risingdotseq`,!0),Z(Q,H3,Z3,`≒`,`\\fallingdotseq`,!0),Z(Q,H3,Z3,`∽`,`\\backsim`,!0),Z(Q,H3,Z3,`⋍`,`\\backsimeq`,!0),Z(Q,H3,Z3,`⫅`,`\\subseteqq`,!0),Z(Q,H3,Z3,`⋐`,`\\Subset`,!0),Z(Q,H3,Z3,`⊏`,`\\sqsubset`,!0),Z(Q,H3,Z3,`≼`,`\\preccurlyeq`,!0),Z(Q,H3,Z3,`⋞`,`\\curlyeqprec`,!0),Z(Q,H3,Z3,`≾`,`\\precsim`,!0),Z(Q,H3,Z3,`⪷`,`\\precapprox`,!0),Z(Q,H3,Z3,`⊲`,`\\vartriangleleft`),Z(Q,H3,Z3,`⊴`,`\\trianglelefteq`),Z(Q,H3,Z3,`⊨`,`\\vDash`,!0),Z(Q,H3,Z3,`⊪`,`\\Vvdash`,!0),Z(Q,H3,Z3,`⌣`,`\\smallsmile`),Z(Q,H3,Z3,`⌢`,`\\smallfrown`),Z(Q,H3,Z3,`≏`,`\\bumpeq`,!0),Z(Q,H3,Z3,`≎`,`\\Bumpeq`,!0),Z(Q,H3,Z3,`≧`,`\\geqq`,!0),Z(Q,H3,Z3,`⩾`,`\\geqslant`,!0),Z(Q,H3,Z3,`⪖`,`\\eqslantgtr`,!0),Z(Q,H3,Z3,`≳`,`\\gtrsim`,!0),Z(Q,H3,Z3,`⪆`,`\\gtrapprox`,!0),Z(Q,H3,W3,`⋗`,`\\gtrdot`),Z(Q,H3,Z3,`⋙`,`\\ggg`,!0),Z(Q,H3,Z3,`≷`,`\\gtrless`,!0),Z(Q,H3,Z3,`⋛`,`\\gtreqless`,!0),Z(Q,H3,Z3,`⪌`,`\\gtreqqless`,!0),Z(Q,H3,Z3,`≖`,`\\eqcirc`,!0),Z(Q,H3,Z3,`≗`,`\\circeq`,!0),Z(Q,H3,Z3,`≜`,`\\triangleq`,!0),Z(Q,H3,Z3,`∼`,`\\thicksim`),Z(Q,H3,Z3,`≈`,`\\thickapprox`),Z(Q,H3,Z3,`⫆`,`\\supseteqq`,!0),Z(Q,H3,Z3,`⋑`,`\\Supset`,!0),Z(Q,H3,Z3,`⊐`,`\\sqsupset`,!0),Z(Q,H3,Z3,`≽`,`\\succcurlyeq`,!0),Z(Q,H3,Z3,`⋟`,`\\curlyeqsucc`,!0),Z(Q,H3,Z3,`≿`,`\\succsim`,!0),Z(Q,H3,Z3,`⪸`,`\\succapprox`,!0),Z(Q,H3,Z3,`⊳`,`\\vartriangleright`),Z(Q,H3,Z3,`⊵`,`\\trianglerighteq`),Z(Q,H3,Z3,`⊩`,`\\Vdash`,!0),Z(Q,H3,Z3,`∣`,`\\shortmid`),Z(Q,H3,Z3,`∥`,`\\shortparallel`),Z(Q,H3,Z3,`≬`,`\\between`,!0),Z(Q,H3,Z3,`⋔`,`\\pitchfork`,!0),Z(Q,H3,Z3,`∝`,`\\varpropto`),Z(Q,H3,Z3,`◀`,`\\blacktriangleleft`),Z(Q,H3,Z3,`∴`,`\\therefore`,!0),Z(Q,H3,Z3,`∍`,`\\backepsilon`),Z(Q,H3,Z3,`▶`,`\\blacktriangleright`),Z(Q,H3,Z3,`∵`,`\\because`,!0),Z(Q,H3,Z3,`⋘`,`\\llless`),Z(Q,H3,Z3,`⋙`,`\\gggtr`),Z(Q,H3,W3,`⊲`,`\\lhd`),Z(Q,H3,W3,`⊳`,`\\rhd`),Z(Q,H3,Z3,`≂`,`\\eqsim`,!0),Z(Q,V3,Z3,`⋈`,`\\Join`),Z(Q,H3,Z3,`≑`,`\\Doteq`,!0),Z(Q,H3,W3,`∔`,`\\dotplus`,!0),Z(Q,H3,W3,`∖`,`\\smallsetminus`),Z(Q,H3,W3,`⋒`,`\\Cap`,!0),Z(Q,H3,W3,`⋓`,`\\Cup`,!0),Z(Q,H3,W3,`⩞`,`\\doublebarwedge`,!0),Z(Q,H3,W3,`⊟`,`\\boxminus`,!0),Z(Q,H3,W3,`⊞`,`\\boxplus`,!0),Z(Q,H3,W3,`⋇`,`\\divideontimes`,!0),Z(Q,H3,W3,`⋉`,`\\ltimes`,!0),Z(Q,H3,W3,`⋊`,`\\rtimes`,!0),Z(Q,H3,W3,`⋋`,`\\leftthreetimes`,!0),Z(Q,H3,W3,`⋌`,`\\rightthreetimes`,!0),Z(Q,H3,W3,`⋏`,`\\curlywedge`,!0),Z(Q,H3,W3,`⋎`,`\\curlyvee`,!0),Z(Q,H3,W3,`⊝`,`\\circleddash`,!0),Z(Q,H3,W3,`⊛`,`\\circledast`,!0),Z(Q,H3,W3,`⋅`,`\\centerdot`),Z(Q,H3,W3,`⊺`,`\\intercal`,!0),Z(Q,H3,W3,`⋒`,`\\doublecap`),Z(Q,H3,W3,`⋓`,`\\doublecup`),Z(Q,H3,W3,`⊠`,`\\boxtimes`,!0),Z(Q,H3,Z3,`⇢`,`\\dashrightarrow`,!0),Z(Q,H3,Z3,`⇠`,`\\dashleftarrow`,!0),Z(Q,H3,Z3,`⇇`,`\\leftleftarrows`,!0),Z(Q,H3,Z3,`⇆`,`\\leftrightarrows`,!0),Z(Q,H3,Z3,`⇚`,`\\Lleftarrow`,!0),Z(Q,H3,Z3,`↞`,`\\twoheadleftarrow`,!0),Z(Q,H3,Z3,`↢`,`\\leftarrowtail`,!0),Z(Q,H3,Z3,`↫`,`\\looparrowleft`,!0),Z(Q,H3,Z3,`⇋`,`\\leftrightharpoons`,!0),Z(Q,H3,Z3,`↶`,`\\curvearrowleft`,!0),Z(Q,H3,Z3,`↺`,`\\circlearrowleft`,!0),Z(Q,H3,Z3,`↰`,`\\Lsh`,!0),Z(Q,H3,Z3,`⇈`,`\\upuparrows`,!0),Z(Q,H3,Z3,`↿`,`\\upharpoonleft`,!0),Z(Q,H3,Z3,`⇃`,`\\downharpoonleft`,!0),Z(Q,V3,Z3,`⊶`,`\\origof`,!0),Z(Q,V3,Z3,`⊷`,`\\imageof`,!0),Z(Q,H3,Z3,`⊸`,`\\multimap`,!0),Z(Q,H3,Z3,`↭`,`\\leftrightsquigarrow`,!0),Z(Q,H3,Z3,`⇉`,`\\rightrightarrows`,!0),Z(Q,H3,Z3,`⇄`,`\\rightleftarrows`,!0),Z(Q,H3,Z3,`↠`,`\\twoheadrightarrow`,!0),Z(Q,H3,Z3,`↣`,`\\rightarrowtail`,!0),Z(Q,H3,Z3,`↬`,`\\looparrowright`,!0),Z(Q,H3,Z3,`↷`,`\\curvearrowright`,!0),Z(Q,H3,Z3,`↻`,`\\circlearrowright`,!0),Z(Q,H3,Z3,`↱`,`\\Rsh`,!0),Z(Q,H3,Z3,`⇊`,`\\downdownarrows`,!0),Z(Q,H3,Z3,`↾`,`\\upharpoonright`,!0),Z(Q,H3,Z3,`⇂`,`\\downharpoonright`,!0),Z(Q,H3,Z3,`⇝`,`\\rightsquigarrow`,!0),Z(Q,H3,Z3,`⇝`,`\\leadsto`),Z(Q,H3,Z3,`⇛`,`\\Rrightarrow`,!0),Z(Q,H3,Z3,`↾`,`\\restriction`),Z(Q,V3,$3,`‘`,"`"),Z(Q,V3,$3,`$`,`\\$`),Z(B3,V3,$3,`$`,`\\$`),Z(B3,V3,$3,`$`,`\\textdollar`),Z(Q,V3,$3,`%`,`\\%`),Z(B3,V3,$3,`%`,`\\%`),Z(Q,V3,$3,`_`,`\\_`),Z(B3,V3,$3,`_`,`\\_`),Z(B3,V3,$3,`_`,`\\textunderscore`),Z(Q,V3,$3,`∠`,`\\angle`,!0),Z(Q,V3,$3,`∞`,`\\infty`,!0),Z(Q,V3,$3,`′`,`\\prime`),Z(Q,V3,$3,`△`,`\\triangle`),Z(Q,V3,$3,`Γ`,`\\Gamma`,!0),Z(Q,V3,$3,`Δ`,`\\Delta`,!0),Z(Q,V3,$3,`Θ`,`\\Theta`,!0),Z(Q,V3,$3,`Λ`,`\\Lambda`,!0),Z(Q,V3,$3,`Ξ`,`\\Xi`,!0),Z(Q,V3,$3,`Π`,`\\Pi`,!0),Z(Q,V3,$3,`Σ`,`\\Sigma`,!0),Z(Q,V3,$3,`Υ`,`\\Upsilon`,!0),Z(Q,V3,$3,`Φ`,`\\Phi`,!0),Z(Q,V3,$3,`Ψ`,`\\Psi`,!0),Z(Q,V3,$3,`Ω`,`\\Omega`,!0),Z(Q,V3,$3,`A`,`Α`),Z(Q,V3,$3,`B`,`Β`),Z(Q,V3,$3,`E`,`Ε`),Z(Q,V3,$3,`Z`,`Ζ`),Z(Q,V3,$3,`H`,`Η`),Z(Q,V3,$3,`I`,`Ι`),Z(Q,V3,$3,`K`,`Κ`),Z(Q,V3,$3,`M`,`Μ`),Z(Q,V3,$3,`N`,`Ν`),Z(Q,V3,$3,`O`,`Ο`),Z(Q,V3,$3,`P`,`Ρ`),Z(Q,V3,$3,`T`,`Τ`),Z(Q,V3,$3,`X`,`Χ`),Z(Q,V3,$3,`¬`,`\\neg`,!0),Z(Q,V3,$3,`¬`,`\\lnot`),Z(Q,V3,$3,`⊤`,`\\top`),Z(Q,V3,$3,`⊥`,`\\bot`),Z(Q,V3,$3,`∅`,`\\emptyset`),Z(Q,H3,$3,`∅`,`\\varnothing`),Z(Q,V3,q3,`α`,`\\alpha`,!0),Z(Q,V3,q3,`β`,`\\beta`,!0),Z(Q,V3,q3,`γ`,`\\gamma`,!0),Z(Q,V3,q3,`δ`,`\\delta`,!0),Z(Q,V3,q3,`ϵ`,`\\epsilon`,!0),Z(Q,V3,q3,`ζ`,`\\zeta`,!0),Z(Q,V3,q3,`η`,`\\eta`,!0),Z(Q,V3,q3,`θ`,`\\theta`,!0),Z(Q,V3,q3,`ι`,`\\iota`,!0),Z(Q,V3,q3,`κ`,`\\kappa`,!0),Z(Q,V3,q3,`λ`,`\\lambda`,!0),Z(Q,V3,q3,`μ`,`\\mu`,!0),Z(Q,V3,q3,`ν`,`\\nu`,!0),Z(Q,V3,q3,`ξ`,`\\xi`,!0),Z(Q,V3,q3,`ο`,`\\omicron`,!0),Z(Q,V3,q3,`π`,`\\pi`,!0),Z(Q,V3,q3,`ρ`,`\\rho`,!0),Z(Q,V3,q3,`σ`,`\\sigma`,!0),Z(Q,V3,q3,`τ`,`\\tau`,!0),Z(Q,V3,q3,`υ`,`\\upsilon`,!0),Z(Q,V3,q3,`ϕ`,`\\phi`,!0),Z(Q,V3,q3,`χ`,`\\chi`,!0),Z(Q,V3,q3,`ψ`,`\\psi`,!0),Z(Q,V3,q3,`ω`,`\\omega`,!0),Z(Q,V3,q3,`ε`,`\\varepsilon`,!0),Z(Q,V3,q3,`ϑ`,`\\vartheta`,!0),Z(Q,V3,q3,`ϖ`,`\\varpi`,!0),Z(Q,V3,q3,`ϱ`,`\\varrho`,!0),Z(Q,V3,q3,`ς`,`\\varsigma`,!0),Z(Q,V3,q3,`φ`,`\\varphi`,!0),Z(Q,V3,W3,`∗`,`*`,!0),Z(Q,V3,W3,`+`,`+`),Z(Q,V3,W3,`−`,`-`,!0),Z(Q,V3,W3,`⋅`,`\\cdot`,!0),Z(Q,V3,W3,`∘`,`\\circ`,!0),Z(Q,V3,W3,`÷`,`\\div`,!0),Z(Q,V3,W3,`±`,`\\pm`,!0),Z(Q,V3,W3,`×`,`\\times`,!0),Z(Q,V3,W3,`∩`,`\\cap`,!0),Z(Q,V3,W3,`∪`,`\\cup`,!0),Z(Q,V3,W3,`∖`,`\\setminus`,!0),Z(Q,V3,W3,`∧`,`\\land`),Z(Q,V3,W3,`∨`,`\\lor`),Z(Q,V3,W3,`∧`,`\\wedge`,!0),Z(Q,V3,W3,`∨`,`\\vee`,!0),Z(Q,V3,$3,`√`,`\\surd`),Z(Q,V3,Y3,`⟨`,`\\langle`,!0),Z(Q,V3,Y3,`∣`,`\\lvert`),Z(Q,V3,Y3,`∥`,`\\lVert`),Z(Q,V3,G3,`?`,`?`),Z(Q,V3,G3,`!`,`!`),Z(Q,V3,G3,`⟩`,`\\rangle`,!0),Z(Q,V3,G3,`∣`,`\\rvert`),Z(Q,V3,G3,`∥`,`\\rVert`),Z(Q,V3,Z3,`=`,`=`),Z(Q,V3,Z3,`:`,`:`),Z(Q,V3,Z3,`≈`,`\\approx`,!0),Z(Q,V3,Z3,`≅`,`\\cong`,!0),Z(Q,V3,Z3,`≥`,`\\ge`),Z(Q,V3,Z3,`≥`,`\\geq`,!0),Z(Q,V3,Z3,`←`,`\\gets`),Z(Q,V3,Z3,`>`,`\\gt`,!0),Z(Q,V3,Z3,`∈`,`\\in`,!0),Z(Q,V3,Z3,``,`\\@not`),Z(Q,V3,Z3,`⊂`,`\\subset`,!0),Z(Q,V3,Z3,`⊃`,`\\supset`,!0),Z(Q,V3,Z3,`⊆`,`\\subseteq`,!0),Z(Q,V3,Z3,`⊇`,`\\supseteq`,!0),Z(Q,H3,Z3,`⊈`,`\\nsubseteq`,!0),Z(Q,H3,Z3,`⊉`,`\\nsupseteq`,!0),Z(Q,V3,Z3,`⊨`,`\\models`),Z(Q,V3,Z3,`←`,`\\leftarrow`,!0),Z(Q,V3,Z3,`≤`,`\\le`),Z(Q,V3,Z3,`≤`,`\\leq`,!0),Z(Q,V3,Z3,`<`,`\\lt`,!0),Z(Q,V3,Z3,`→`,`\\rightarrow`,!0),Z(Q,V3,Z3,`→`,`\\to`),Z(Q,H3,Z3,`≱`,`\\ngeq`,!0),Z(Q,H3,Z3,`≰`,`\\nleq`,!0),Z(Q,V3,Q3,`\xA0`,`\\ `),Z(Q,V3,Q3,`\xA0`,`\\space`),Z(Q,V3,Q3,`\xA0`,`\\nobreakspace`),Z(B3,V3,Q3,`\xA0`,`\\ `),Z(B3,V3,Q3,`\xA0`,` `),Z(B3,V3,Q3,`\xA0`,`\\space`),Z(B3,V3,Q3,`\xA0`,`\\nobreakspace`),Z(Q,V3,Q3,``,`\\nobreak`),Z(Q,V3,Q3,``,`\\allowbreak`),Z(Q,V3,X3,`,`,`,`),Z(Q,V3,X3,`;`,`;`),Z(Q,H3,W3,`⊼`,`\\barwedge`,!0),Z(Q,H3,W3,`⊻`,`\\veebar`,!0),Z(Q,V3,W3,`⊙`,`\\odot`,!0),Z(Q,V3,W3,`⊕`,`\\oplus`,!0),Z(Q,V3,W3,`⊗`,`\\otimes`,!0),Z(Q,V3,$3,`∂`,`\\partial`,!0),Z(Q,V3,W3,`⊘`,`\\oslash`,!0),Z(Q,H3,W3,`⊚`,`\\circledcirc`,!0),Z(Q,H3,W3,`⊡`,`\\boxdot`,!0),Z(Q,V3,W3,`△`,`\\bigtriangleup`),Z(Q,V3,W3,`▽`,`\\bigtriangledown`),Z(Q,V3,W3,`†`,`\\dagger`),Z(Q,V3,W3,`⋄`,`\\diamond`),Z(Q,V3,W3,`⋆`,`\\star`),Z(Q,V3,W3,`◃`,`\\triangleleft`),Z(Q,V3,W3,`▹`,`\\triangleright`),Z(Q,V3,Y3,`{`,`\\{`),Z(B3,V3,$3,`{`,`\\{`),Z(B3,V3,$3,`{`,`\\textbraceleft`),Z(Q,V3,G3,`}`,`\\}`),Z(B3,V3,$3,`}`,`\\}`),Z(B3,V3,$3,`}`,`\\textbraceright`),Z(Q,V3,Y3,`{`,`\\lbrace`),Z(Q,V3,G3,`}`,`\\rbrace`),Z(Q,V3,Y3,`[`,`\\lbrack`,!0),Z(B3,V3,$3,`[`,`\\lbrack`,!0),Z(Q,V3,G3,`]`,`\\rbrack`,!0),Z(B3,V3,$3,`]`,`\\rbrack`,!0),Z(Q,V3,Y3,`(`,`\\lparen`,!0),Z(Q,V3,G3,`)`,`\\rparen`,!0),Z(B3,V3,$3,`<`,`\\textless`,!0),Z(B3,V3,$3,`>`,`\\textgreater`,!0),Z(Q,V3,Y3,`⌊`,`\\lfloor`,!0),Z(Q,V3,G3,`⌋`,`\\rfloor`,!0),Z(Q,V3,Y3,`⌈`,`\\lceil`,!0),Z(Q,V3,G3,`⌉`,`\\rceil`,!0),Z(Q,V3,$3,`\\`,`\\backslash`),Z(Q,V3,$3,`∣`,`|`),Z(Q,V3,$3,`∣`,`\\vert`),Z(B3,V3,$3,`|`,`\\textbar`,!0),Z(Q,V3,$3,`∥`,`\\|`),Z(Q,V3,$3,`∥`,`\\Vert`),Z(B3,V3,$3,`∥`,`\\textbardbl`),Z(B3,V3,$3,`~`,`\\textasciitilde`),Z(B3,V3,$3,`\\`,`\\textbackslash`),Z(B3,V3,$3,`^`,`\\textasciicircum`),Z(Q,V3,Z3,`↑`,`\\uparrow`,!0),Z(Q,V3,Z3,`⇑`,`\\Uparrow`,!0),Z(Q,V3,Z3,`↓`,`\\downarrow`,!0),Z(Q,V3,Z3,`⇓`,`\\Downarrow`,!0),Z(Q,V3,Z3,`↕`,`\\updownarrow`,!0),Z(Q,V3,Z3,`⇕`,`\\Updownarrow`,!0),Z(Q,V3,J3,`∐`,`\\coprod`),Z(Q,V3,J3,`⋁`,`\\bigvee`),Z(Q,V3,J3,`⋀`,`\\bigwedge`),Z(Q,V3,J3,`⨄`,`\\biguplus`),Z(Q,V3,J3,`⋂`,`\\bigcap`),Z(Q,V3,J3,`⋃`,`\\bigcup`),Z(Q,V3,J3,`∫`,`\\int`),Z(Q,V3,J3,`∫`,`\\intop`),Z(Q,V3,J3,`∬`,`\\iint`),Z(Q,V3,J3,`∭`,`\\iiint`),Z(Q,V3,J3,`∏`,`\\prod`),Z(Q,V3,J3,`∑`,`\\sum`),Z(Q,V3,J3,`⨂`,`\\bigotimes`),Z(Q,V3,J3,`⨁`,`\\bigoplus`),Z(Q,V3,J3,`⨀`,`\\bigodot`),Z(Q,V3,J3,`∮`,`\\oint`),Z(Q,V3,J3,`∯`,`\\oiint`),Z(Q,V3,J3,`∰`,`\\oiiint`),Z(Q,V3,J3,`⨆`,`\\bigsqcup`),Z(Q,V3,J3,`∫`,`\\smallint`),Z(B3,V3,K3,`…`,`\\textellipsis`),Z(Q,V3,K3,`…`,`\\mathellipsis`),Z(B3,V3,K3,`…`,`\\ldots`,!0),Z(Q,V3,K3,`…`,`\\ldots`,!0),Z(Q,V3,K3,`⋯`,`\\@cdots`,!0),Z(Q,V3,K3,`⋱`,`\\ddots`,!0),Z(Q,V3,$3,`⋮`,`\\varvdots`),Z(B3,V3,$3,`⋮`,`\\varvdots`),Z(Q,V3,U3,`ˊ`,`\\acute`),Z(Q,V3,U3,`ˋ`,`\\grave`),Z(Q,V3,U3,`¨`,`\\ddot`),Z(Q,V3,U3,`~`,`\\tilde`),Z(Q,V3,U3,`ˉ`,`\\bar`),Z(Q,V3,U3,`˘`,`\\breve`),Z(Q,V3,U3,`ˇ`,`\\check`),Z(Q,V3,U3,`^`,`\\hat`),Z(Q,V3,U3,`⃗`,`\\vec`),Z(Q,V3,U3,`˙`,`\\dot`),Z(Q,V3,U3,`˚`,`\\mathring`),Z(Q,V3,q3,``,`\\@imath`),Z(Q,V3,q3,``,`\\@jmath`),Z(Q,V3,$3,`ı`,`ı`),Z(Q,V3,$3,`ȷ`,`ȷ`),Z(B3,V3,$3,`ı`,`\\i`,!0),Z(B3,V3,$3,`ȷ`,`\\j`,!0),Z(B3,V3,$3,`ß`,`\\ss`,!0),Z(B3,V3,$3,`æ`,`\\ae`,!0),Z(B3,V3,$3,`œ`,`\\oe`,!0),Z(B3,V3,$3,`ø`,`\\o`,!0),Z(B3,V3,$3,`Æ`,`\\AE`,!0),Z(B3,V3,$3,`Œ`,`\\OE`,!0),Z(B3,V3,$3,`Ø`,`\\O`,!0),Z(B3,V3,U3,`ˊ`,`\\'`),Z(B3,V3,U3,`ˋ`,"\\`"),Z(B3,V3,U3,`ˆ`,`\\^`),Z(B3,V3,U3,`˜`,`\\~`),Z(B3,V3,U3,`ˉ`,`\\=`),Z(B3,V3,U3,`˘`,`\\u`),Z(B3,V3,U3,`˙`,`\\.`),Z(B3,V3,U3,`¸`,`\\c`),Z(B3,V3,U3,`˚`,`\\r`),Z(B3,V3,U3,`ˇ`,`\\v`),Z(B3,V3,U3,`¨`,`\\"`),Z(B3,V3,U3,`˝`,`\\H`),Z(B3,V3,U3,`◯`,`\\textcircled`),XRt={"--":!0,"---":!0,"``":!0,"''":!0},Z(B3,V3,$3,`–`,`--`,!0),Z(B3,V3,$3,`–`,`\\textendash`),Z(B3,V3,$3,`—`,`---`,!0),Z(B3,V3,$3,`—`,`\\textemdash`),Z(B3,V3,$3,`‘`,"`",!0),Z(B3,V3,$3,`‘`,`\\textquoteleft`),Z(B3,V3,$3,`’`,`'`,!0),Z(B3,V3,$3,`’`,`\\textquoteright`),Z(B3,V3,$3,`“`,"``",!0),Z(B3,V3,$3,`“`,`\\textquotedblleft`),Z(B3,V3,$3,`”`,`''`,!0),Z(B3,V3,$3,`”`,`\\textquotedblright`),Z(Q,V3,$3,`°`,`\\degree`,!0),Z(B3,V3,$3,`°`,`\\degree`),Z(B3,V3,$3,`°`,`\\textdegree`,!0),Z(Q,V3,$3,`£`,`\\pounds`),Z(Q,V3,$3,`£`,`\\mathsterling`,!0),Z(B3,V3,$3,`£`,`\\pounds`),Z(B3,V3,$3,`£`,`\\textsterling`,!0),Z(Q,H3,$3,`✠`,`\\maltese`),Z(B3,H3,$3,`✠`,`\\maltese`),ZRt=`0123456789/@."`,e6=0;e6{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return rzt[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return izt[Math.floor((r-120782)/10)];if(r===120485||r===120486)return rzt[0];if(120486{if(C3(e.classes)!==C3(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},D6=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},k6=function(e,t,n,r){var i=new O3(e,t,n,r);return O6(i),i},A6=(e,t,n,r)=>new O3(e,t,n,r),j6=function(e,t,n){var r=k6([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=S3(r.height),r.maxFontSize=1,r},czt=function(e,t,n,r){var i=new k3(e,t,n,r);return O6(i),i},M6=function(e){var t=new y3(e);return O6(t),t},N6=function(e,t){return e instanceof y3?k6([],[e],t):e},lzt=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=k6([`mspace`],[],t),r=x3(e,t);return n.style.marginRight=S3(r),n},I6=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},L6={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`}},uzt={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},R6=function(e,t){var n=uzt[e],r=n[0],i=n[1],a=n[2],o=new P3(r),s=A6([`katex-overlay`],[new N3([o],{width:S3(i),height:S3(a),style:`width:`+S3(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return s.height=a,s.style.height=S3(a),s.style.width=S3(i),s},z6={number:3,unit:`mu`},B6={number:4,unit:`mu`},V6={number:5,unit:`mu`},dzt={mord:{mop:z6,mbin:B6,mrel:V6,minner:z6},mop:{mord:z6,mop:z6,mrel:V6,minner:z6},mbin:{mord:B6,mop:B6,mopen:B6,minner:B6},mrel:{mord:V6,mop:V6,mopen:V6,minner:V6},mopen:{},mclose:{mop:z6,mbin:B6,mrel:V6,minner:z6},mpunct:{mord:z6,mop:z6,mrel:V6,mopen:z6,mclose:z6,mpunct:z6,minner:z6},minner:{mord:z6,mop:z6,mbin:B6,mrel:V6,mopen:z6,mpunct:z6,minner:z6}},H6={mord:{mop:z6},mop:{mord:z6,mop:z6},mbin:{},mrel:{},mopen:{},mclose:{mop:z6},mpunct:{},minner:{mop:z6}},U6={},W6={},G6={},K6=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},q6=function(e){return e.type===`ordgroup`?e.body:[e]},fzt=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),pzt=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),mzt={display:m3.DISPLAY,text:m3.TEXT,script:m3.SCRIPT,scriptscript:m3.SCRIPTSCRIPT},hzt={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},J6=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&pzt.has(r)?t.classes[0]=`mord`:r===`mbin`&&fzt.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),Y6(i,(e,t)=>{var n=Q6(t),r=Q6(e),i=n&&r?e.hasClass(`mtight`)?H6[n]?.[r]:dzt[n]?.[r]:null;if(i)return F6(i,l)},{node:d},f,p),i},Y6=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},X6=function(e){return e instanceof y3||e instanceof k3||e instanceof O3&&e.hasClass(`enclosing`)?e:null},Z6=function(e,t){var n=X6(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Z6(r[r.length-1],`right`);if(t===`left`)return Z6(r[0],`left`)}}return e},Q6=function(e,t){return e?(t&&(e=Z6(e,t)),hzt[e.classes[0]]||null):null},$6=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return k6(t.concat(n))},e8=function(e,t,n){if(!e)return k6();if(W6[e.type]){var r=W6[e.type](e,t);if(n&&t.size!==n.size){r=k6(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new t3(`Got group of unknown type: '`+e.type+`'`)},t8=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=C3(this.classes));for(var i=0;i0&&(e+=` class ="`+n3(C3(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},n8=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return n3(this.toText())}toText(){return this.text}},r8=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,S3(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},i8=new Set([`\\imath`,`\\jmath`]),gzt=new Set([`mrow`,`mtable`]),a8=function(e,t,n){var r,i;return z3[t][e]&&z3[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(XRt,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=z3[t][e].replace),new n8(e)},o8=function(e){return e.length===1?e[0]:new t8(`mrow`,e)},_zt={mathit:`italic`,boldsymbol:e=>e.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`},s8=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=_zt[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(i8.has(a))return null;if(z3[r][a]){var o=z3[r][a].replace;o&&(a=o)}var s=L6[n].fontName;return B4(a,s,r)?L6[n].variant:null},c8=function(e,t,n){if(e.length===1){var r=u8(e[0],t);return n&&r instanceof t8&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||J4(a))){var l=s.children[0];l instanceof t8&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof n8&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof n8&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},l8=function(e,t,n){return o8(c8(e,t,n))},u8=function(e,t){if(!e)return new t8(`mrow`);if(G6[e.type])return G6[e.type](e,t);throw new t3(`Got group of unknown type: '`+e.type+`'`)},vzt=[[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]],d8=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],yzt=function(e,t){return t.size<2?e:vzt[e-1][t.size-1]},bzt=class e{constructor(t){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.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=d8[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={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,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:yzt(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:d8[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=yzt(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=V4(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},bzt.BASESIZE=6,xzt=e=>new bzt({style:e.displayMode?m3.DISPLAY:m3.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Szt=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=k6(n,[e])}return e},Czt=function(e,t,n){var r=xzt(n),i;return n.output===`mathml`?iRt(e,t,r,n.displayMode,!0):(i=n.output===`html`?k6([`katex`],[K4(e,r)]):k6([`katex`],[iRt(e,t,r,n.displayMode,!1),K4(e,r)]),Szt(i,n))},wzt=function(e,t){return Szt(k6([`katex`],[K4(e,xzt(t))]),t)},f8={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":`=`},p8=function(e){var t=new t8(`mo`,[new n8(f8[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},m8={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]},Tzt=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),h8=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Tzt.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new P3(o);return{span:A6([],[new N3([u],{width:`100%`,height:S3(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=m8[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var p=f[0],m=f[1],h=f[2],g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+_+` children.`);for(var b=0;b<_;b++){var x=new P3(p[b]),S=new N3([x],{width:`400em`,height:S3(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=A6([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=S3(g),d.push(C)}return{span:k6([`katex-stretchy`],d,t),minWidth:m,height:g}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=S3(o),a>0&&(i.style.minWidth=S3(a)),i},g8=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=k6([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new F3({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new F3({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=A6([],[new N3(l,{width:`100%`,height:S3(o)})],i)}return a.height=o,a.style.height=S3(o),a},Ezt=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Dzt=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],Ozt=new Set(Ezt),kzt=new Set(Dzt),_8=e=>{if(e instanceof M3)return e;if(JRt(e)&&e.children.length===1)return _8(e.children[0])},v8=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Y4(e.base,`accent`),n=r.base,e.base=n,i=rRt(e8(e,t)),e.base=r):(r=Y4(e,`accent`),n=r.base);var a=e8(n,t.havingCrampedStyle()),o=r.isShifty&&r3(n),s=0;o&&(s=_8(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=h8(r,t),d=P6({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+S3(2*s)+`)`,marginLeft:S3(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=R6(`vec`,t),p=uzt.vec[1]):(f=E6({type:`textord`,mode:r.mode,text:r.label},t),f=nRt(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=k6([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=S3(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=P6({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=k6([`mord`,`katex-accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},y8=(e,t)=>{var n=e.isStretchy?p8(e.label):new t8(`mo`,[a8(e.label,e.mode)]),r=new t8(`mover`,[u8(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},b8=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),U4({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=K6(t[0]),r=!b8.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:v8,mathmlBuilder:y8}),U4({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(H4({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),U4({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=e8(e.base,t),r=h8(e,t),i=e.label===`\\utilde`?.12:0;return k6([`mord`,`accentunder`],[P6({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=p8(e.label),r=new t8(`munder`,[u8(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),x8=e=>{var t=new t8(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},U4({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=N6(e8(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=N6(e8(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=h8(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=P6({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=P6({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return k6([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=p8(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=x8(u8(e.body,t));if(e.below){var a=x8(u8(e.below,t));r=new t8(`munderover`,[n,a,i])}else r=new t8(`mover`,[n,i])}else if(e.below){var o=x8(u8(e.below,t));r=new t8(`munder`,[n,o])}else r=x8(),r=new t8(`mover`,[n,r]);return r}}),U4({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:q6(i),isCharacterBox:r3(i)}},htmlBuilder:cRt,mathmlBuilder:lRt}),S8=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},U4({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:S8(t[0]),body:q6(t[1]),isCharacterBox:r3(t[1])}}}),U4({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:S8(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:q6(i)},l=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:r3(l)}}}),U4({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:S8(t[0]),body:q6(t[0])}},htmlBuilder(e,t){var n=J6(e.body,t,!0),r=k6([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=c8(e.body,t),r=new t8(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),C8={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Azt=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),jzt=e=>e.type===`textord`&&e.text===`@`,Mzt=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,U4({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=N6(e8(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=S3(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new t8(`mrow`,[u8(e.label,t)]);return n=new t8(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new t8(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),U4({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=N6(e8(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new t8(`mrow`,[u8(e.fragment,t)])}}),U4({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=sRt(Y4(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new t3(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new t3(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),w8=(e,t)=>M6(J6(e.body,t.withColor(e.color),!1)),T8=(e,t)=>{var n=c8(e.body,t.withColor(e.color)),r=new t8(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},U4({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Y4(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:q6(i)}},htmlBuilder:w8,mathmlBuilder:T8}),U4({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Y4(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),U4({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!H4({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Y4(n,`size`).value}},htmlBuilder(e,t){var n=k6([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=S3(x3(e.size,t)))),n},mathmlBuilder(e,t){var n=new t8(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,S3(x3(e.size,t)))),n}}),E8={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},D8=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new t3(`Expected a control sequence`,e);return t},O8=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},k8=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},U4({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(E8[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=E8[r.text]),Y4(t.parseFunction(),`internal`);throw new t3(`Invalid token after macro prefix`,r)}}),U4({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new t3(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new t3(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new t3(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new t3(`Expected a macro definition`);else s[a].push(r.text);var l=t.gullet.consumeArg().tokens;return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===E8[n]),{type:`internal`,mode:t.mode}}}),U4({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=D8(t.gullet.popToken());return t.gullet.consumeSpaces(),k8(t,r,O8(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),U4({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=D8(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return k8(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),A8=function(e,t,n){var r=B4(z3.math[e]&&z3.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},j8=function(e,t,n,r){var i=n.havingBaseStyle(t),a=k6(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},M8=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=S3(i),e.height-=i,e.depth+=i},N8=function(e,t,n,r,i,a){var o=j8(w6(e,`Main-Regular`,i,r),t,r,a);return n&&M8(o,r,t),o},Nzt=function(e,t,n,r){return w6(e,`Size`+t+`-Regular`,n,r)},Pzt=function(e,t,n,r,i,a){var o=Nzt(e,t,i,r),s=j8(k6([`delimsizing`,`size`+t],[o],r),m3.TEXT,r,a);return n&&M8(s,r,m3.TEXT),s},P8=function(e,t,n,r){return{type:`elem`,elem:k6([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[k6([],[w6(e,t,n,r)])])}},F8=function(e,t,n){var r=I3[`Size4-Regular`][e.charCodeAt(0)]?I3[`Size4-Regular`][e.charCodeAt(0)][4]:I3[`Size1-Regular`][e.charCodeAt(0)][4],i=new P3(`inner`,HRt(e,Math.round(1e3*t))),a=A6([],[new N3([i],{width:S3(r),height:S3(t),style:`width:`+S3(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=S3(t),a.style.width=S3(r),{type:`elem`,elem:a}},I8=.008,L8={type:`kern`,size:-1*I8},Fzt=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Izt=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Lzt=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):Fzt.has(e)?(l=`∣`,d=`vert`,f=333):Izt.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=A8(o,p,i),h=m.height+m.depth,g=A8(l,p,i),_=g.height+g.depth,v=A8(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=A8(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=WRt(d,Math.round(O*1e3)),j=new P3(d,A),M=S3(f/1e3),ee=S3(k/1e3),te=A6([],[new N3([j],{width:M,height:ee,viewBox:`0 0 `+f+` `+k})],r);te.height=k/1e3,te.style.width=M,te.style.height=ee,D.push({type:`elem`,elem:te})}else{if(D.push(P8(u,p,i,r)),D.push(L8),s===null){var ne=w-h-y+2*I8;D.push(F8(l,ne,r))}else{var re=(w-h-y-b)/2+2*I8;D.push(F8(l,re,r)),D.push(L8),D.push(P8(s,p,i,r)),D.push(L8),D.push(F8(l,re,r))}D.push(L8),D.push(P8(o,p,i,r))}var ie=r.havingBaseStyle(m3.TEXT);return j8(k6([`delimsizing`,`mult`],[P6({positionType:`bottom`,positionData:E,children:D})],ie),m3.TEXT,r,a)},R8=80,z8=.08,Rzt=function(e,t,n,r,i){var a=VRt(e,r,n),o=new P3(e,a);return A6([`hide-tail`],[new N3([o],{width:`400em`,height:S3(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},zzt=function(e,t){var n=t.havingBaseSizing(),r=V8(`\\surd`,e*n.sizeMultiplier,Kzt,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+R8,e<1?i=1:e<1.4&&(i=.7),s=(1+a+z8)/i,l=(1+a)/i,o=Rzt(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+R8)*B8[r.size],l=(B8[r.size]+a)/i,s=(B8[r.size]+a+z8)/i,o=Rzt(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+z8,l=e+a,u=Math.floor(1e3*e+a)+R8,o=Rzt(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=S3(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Bzt=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Vzt=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Hzt=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),B8=[0,1.2,1.8,2.4,3],Uzt=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Bzt.has(e)||Hzt.has(e))return Pzt(e,t,!1,n,r,i);if(Vzt.has(e))return Lzt(e,B8[t],!1,n,r,i);throw new t3(`Illegal delimiter: '`+e+`'`)},Wzt=[{type:`small`,style:m3.SCRIPTSCRIPT},{type:`small`,style:m3.SCRIPT},{type:`small`,style:m3.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Gzt=[{type:`small`,style:m3.SCRIPTSCRIPT},{type:`small`,style:m3.SCRIPT},{type:`small`,style:m3.TEXT},{type:`stack`}],Kzt=[{type:`small`,style:m3.SCRIPTSCRIPT},{type:`small`,style:m3.SCRIPT},{type:`small`,style:m3.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],qzt=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 t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},V8=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},H8=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Hzt.has(e)?Wzt:Bzt.has(e)?Kzt:Gzt,s=V8(e,t,o,r);return s.type===`small`?N8(e,s.style,n,r,i,a):s.type===`large`?Pzt(e,s.size,n,r,i,a):Lzt(e,t,n,r,i,a)},U8=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return H8(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},W8={"\\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}},Jzt=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,.`.split(`,`)),U4({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=Z4(K6(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:W8[e.funcName].size,mclass:W8[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?k6([e.mclass]):Uzt(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(a8(e.delim,e.mode));var n=new t8(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=S3(B8[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),U4({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new t3(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Z4(t[0],e).text,color:n}}}),U4({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Z4(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Y4(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{pRt(e);for(var n=J6(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{pRt(e);var n=c8(e.body,t);if(e.left!==`.`){var r=new t8(`mo`,[a8(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new t8(`mo`,[a8(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return o8(n)}}),U4({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Z4(t[0],e);if(!e.parser.leftrightDepth)throw new t3(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=$6(t,[]):(n=Uzt(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?a8(`|`,`text`):a8(e.delim,e.mode),r=new t8(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),Yzt=(e,t)=>{var n=N6(e8(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=r3(e.body);if(r===`sout`)a=k6([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=x3({number:.6,unit:`pt`},t),u=x3({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=S3(f/2+l);var p=Math.floor(1e3*f*i),m=zRt(p);a=A6([`hide-tail`],[new N3([new P3(`phase`,m)],{width:`400em`,height:S3(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=S3(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=g8(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=S3(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=S3(_),a.style.borderRightWidth=S3(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=P6({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=P6({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?k6([`mord`,`cancel-lap`],[v],t):k6([`mord`],[v],t)},G8=(e,t)=>{var n,r=new t8(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[u8(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+S3(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},U4({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Y4(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Yzt,mathmlBuilder:G8}),U4({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Y4(t[0],`color-token`).color,o=Y4(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),U4({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),U4({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),U4({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&H4({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),U4({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}}),K8={},q8={},J8=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Y8=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,J8.range(this,t))}},Xzt=e=>{if(!e.parser.settings.displayMode)throw new t3(`{`+e.envName+`} can be used only in display mode.`)},X8=new Set([`gather`,`gather*`]),Z8=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(m3.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?x3({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ue=void 0;(r>0||e.hskipBeforeAndAfter)&&(ue=ie?.pregap??f,ue!==0&&(A=k6([`arraycolsep`],[]),A.style.width=S3(ue),k.push(A)));var de=[];for(n=0;n0){for(var ve=j6(`katex-hline`,t,u),ye=j6(`katex-hdashline`,t,u),be=[{type:`elem`,elem:_e,shift:0}];l.length>0;){var xe=l.pop(),Se=xe.pos-D;xe.isDashed?be.push({type:`elem`,elem:ye,shift:Se}):be.push({type:`elem`,elem:ve,shift:Se})}_e=P6({positionType:`individualShift`,children:be})}if(M.length===0)return k6([`mord`],[_e],t);var Ce=k6([`katex-tag`],[P6({positionType:`individualShift`,children:M})],t);return M6([_e,Ce])},Q8={c:`center `,l:`left `,r:`right `},$8=function(e,t){for(var n=[],r=new t8(`mtd`,[],[`mtr-glue`]),i=new t8(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&d&&(m=1),n[f]={type:`align`,align:p,pregap:m,postgap:0}}return i.colSeparationType=d?`align`:`alignat`,i},Q4({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(X4(t[0])?[t[0]]:Y4(t[0],`ordgroup`).body).map(function(e){var t=oRt(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new t3(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return e3(e.parser,r,gRt(e.envName))},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new t3(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=e3(e.parser,r,gRt(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=e3(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(X4(t[0])?[t[0]]:Y4(t[0],`ordgroup`).body).map(function(e){var t=oRt(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new t3(`Unknown column alignment: `+t,e)});if(n.length>1)throw new t3(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=e3(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new t3(`{subarray} can contain only one column`);return i},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=e3(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},gRt(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:e5,htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){X8.has(e.envName)&&Xzt(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:hRt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return e3(e.parser,t,`display`)},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:e5,htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Xzt(e);var t={autoTag:hRt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return e3(e.parser,t,`display`)},htmlBuilder:Z8,mathmlBuilder:$8}),Q4({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Xzt(e),dRt(e.parser)},htmlBuilder:Z8,mathmlBuilder:$8}),$4(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$4(`\\notag`,`\\nonumber`),U4({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new t3(e.funcName+` valid only within array environment`)}}),t5=K8,U4({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new t3(`Invalid environment name`,i);var a=sRt(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(t5,a))throw new t3(`No such environment: `+a,i);var o=t5[a],s=n.parseArguments(`\\begin{`+a+`}`,o),l=s.args,u=s.optArgs,d={mode:n.mode,envName:a,parser:n},f=o.handler(d,l,u);n.expect(`\\end`,!1);var p=n.nextToken,m=Y4(n.parseFunction(),`environment`);if(m.name!==a)throw new t3(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}}),n5=(e,t)=>{var n=e.font,r=t.withFont(n);return e8(e.body,r)},r5=(e,t)=>{var n=e.font,r=t.withFont(n);return u8(e.body,r)},i5={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},U4({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=K6(t[0]),a=r in i5?i5[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:n5,mathmlBuilder:r5}),U4({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:S8(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:r3(r)}}}),U4({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}}),a5=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=e8(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new t8(`mfrac`,[u8(e.numer,t),u8(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=x3(e.barSize,t);n.setAttribute(`linethickness`,S3(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new t8(`mo`,[new n8(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new t8(`mo`,[new n8(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return o8(i)}return n},Qzt=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,U4({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),Qzt({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:a5,mathmlBuilder:Zzt}),U4({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),o5=[`display`,`text`,`script`,`scriptscript`],s5=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},U4({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=K6(t[0]),o=a.type===`atom`&&a.family===`open`?s5(a.text):null,s=K6(t[1]),l=s.type===`atom`&&s.family===`close`?s5(s.text):null,u=Y4(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=Y4(m.body[0],`textord`);p=o5[Number(h.text)]}}else m=Y4(m,`textord`),p=o5[Number(m.text)];return Qzt({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),U4({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Y4(t[0],`size`).value,token:r}}}),U4({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Y4(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}}),$zt=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?e8(e.sup,t.havingStyle(n.sup()),t):e8(e.sub,t.havingStyle(n.sub()),t),i=Y4(e.base,`horizBrace`)):i=Y4(e,`horizBrace`);var a=e8(i.base,t.havingBaseStyle(m3.DISPLAY)),o=h8(i,t),s=i.isOver?P6({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):P6({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=k6([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?P6({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):P6({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return k6([`minner`,i.isOver?`mover`:`munder`],[s],t)},c5=(e,t)=>{var n=p8(e.label);return new t8(e.isOver?`mover`:`munder`,[u8(e.base,t),n])},U4({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:$zt,mathmlBuilder:c5}),U4({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Y4(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:q6(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=J6(e.body,t,!1);return czt(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=l8(e.body,t);return n instanceof t8||(n=new t8(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),U4({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Y4(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=Y4(t[0],`raw`).string,a=t[1];n.settings.strict&&H4({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var l=`{,}`,u=[],d=``,f=0;f{var n=J6(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=k6(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>l8(e.body,t)}),U4({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:q6(t[0]),mathml:q6(t[1])}),htmlBuilder:(e,t)=>M6(J6(e.html,t,!1)),mathmlBuilder:(e,t)=>l8(e.mathml,t)}),l5=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new t3(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!b3(n))throw new t3(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},U4({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=Y4(n[0],`raw`).string.split(`,`),u=0;u{var n=x3(e.height,t),r=0;e.totalheight.number>0&&(r=x3(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=x3(e.width,t));var a={height:S3(n+r)};i>0&&(a.width=S3(i)),r>0&&(a.verticalAlign=S3(-r));var o=new A3(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new t8(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=x3(e.height,t),i=0;if(e.totalheight.number>0&&(i=x3(e.totalheight,t)-r,n.setAttribute(`valign`,S3(-i))),n.setAttribute(`height`,S3(r+i)),e.width.number>0){var a=x3(e.width,t);n.setAttribute(`width`,S3(a))}return n.setAttribute(`src`,e.src),n}}),U4({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Y4(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||H4({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&H4({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&H4({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return F6(e.dimension,t)},mathmlBuilder(e,t){var n=x3(e.dimension,t);return new r8(n)}}),U4({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=k6([],[e8(e.body,t)]),n=k6([`katex-inner`],[n],t)):n=k6([`katex-inner`],[e8(e.body,t)]);var r=k6([`katex-fix`],[]),i=k6([e.alignment],[n,r],t),a=k6([`katex-strut`]);return a.style.height=S3(i.height+i.depth),i.depth&&(a.style.verticalAlign=S3(-i.depth)),i.children.unshift(a),i=k6([`katex-thinbox`],[i],t),k6([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new t8(`mpadded`,[u8(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),U4({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),U4({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new t3(`Mismatched `+e.funcName)}}),eBt=(e,t)=>{switch(t.style.size){case m3.DISPLAY.size:return e.display;case m3.TEXT.size:return e.text;case m3.SCRIPT.size:return e.script;case m3.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},U4({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:q6(t[0]),text:q6(t[1]),script:q6(t[2]),scriptscript:q6(t[3])}),htmlBuilder:(e,t)=>M6(J6(eBt(e,t),t,!1)),mathmlBuilder:(e,t)=>l8(eBt(e,t),t)}),u5=(e,t,n,r,i,a,o)=>{e=k6([],[e]);var s=n&&r3(n),l,u;if(t){var d=e8(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=e8(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=P6({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:S3(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:S3(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=P6({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:S3(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=P6({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:S3(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=k6([`mspace`],[],r);h.style.marginRight=S3(a),m.unshift(h)}return k6([`mop`,`op-limits`],m,r)},d5=new Set([`\\smallint`]),f5=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Y4(e.base,`op`),i=!0):a=Y4(e,`op`);var o=t.style,s=!1;o.size===m3.DISPLAY.size&&a.symbol&&!d5.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=w6(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=R6(f+`Size`+(s?`2`:`1`),t);l=P6({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=J6(a.body,t,!0);m.length===1&&m[0]instanceof M3?(l=m[0],l.classes[0]=`mop`):l=k6([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new t8(`mo`,[a8(e.name,e.mode)]),d5.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new t8(`mo`,c8(e.body,t));else{n=new t8(`mi`,[new n8(e.name.slice(1))]);var r=new t8(`mo`,[a8(`⁡`,`text`)]);n=e.parentIsSupSub?new t8(`mrow`,[n,r]):q4([n,r])}return n},m5={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},U4({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=m5[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:f5,mathmlBuilder:p5}),U4({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:q6(r)}}}),h5={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},U4({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`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),U4({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),U4({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=h5[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}}),tBt=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Y4(e.base,`operatorname`),i=!0):a=Y4(e,`operatorname`);var o;if(a.body.length>0){for(var s=J6(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=c8(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new n8(s)]}var l=new t8(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new t8(`mo`,[a8(`⁡`,`text`)]);return e.parentIsSupSub?new t8(`mrow`,[l,u]):q4([l,u])},U4({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:q6(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:tBt,mathmlBuilder:nBt}),$4(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),W4({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?M6(J6(e.body,t,!1)):k6([`mord`],J6(e.body,t,!0),t)},mathmlBuilder(e,t){return l8(e.body,t,!0)}}),U4({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=e8(e.body,t.havingCrampedStyle()),r=j6(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return k6([`mord`,`katex-overline`],[P6({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new t8(`mo`,[new n8(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new t8(`mover`,[u8(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),U4({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:q6(r)}},htmlBuilder:(e,t)=>M6(J6(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=c8(e.body,t);return new t8(`mphantom`,n)}}),$4(`\\hphantom`,`\\smash{\\phantom{#1}}`),U4({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>k6([`mord`,`rlap`],[k6([`katex-inner`],[e8(e.body,t.withPhantom())]),k6([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=c8(q6(e.body),t),r=new t8(`mphantom`,n),i=new t8(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),U4({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Y4(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=e8(e.body,t);return P6({positionType:`shift`,positionData:-x3(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new t8(`mpadded`,[u8(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),g5=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]}),U4({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:g5,htmlBuilder(e,t){return k6([`mord`,`reflectbox`],[e8(e.body,t)],t)},mathmlBuilder(e,t){return u8(e.body,t)}}),U4({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:g5}),U4({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),U4({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Y4(t[0],`size`),o=Y4(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Y4(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=k6([`mord`,`katex-rule`],[],t),r=x3(e.width,t),i=x3(e.height,t),a=e.shift?x3(e.shift,t):0;return n.style.borderRightWidth=S3(r),n.style.borderTopWidth=S3(i),n.style.bottom=S3(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=x3(e.width,t),r=x3(e.height,t),i=e.shift?x3(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new t8(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,S3(n)),o.setAttribute(`height`,S3(r));var s=new t8(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,S3(i)):(s.setAttribute(`height`,S3(i)),s.setAttribute(`depth`,S3(-i))),s.setAttribute(`voffset`,S3(i)),s}}),_5=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],v5=(e,t)=>{var n=t.havingSize(e.size);return _Rt(e.body,n,t)},U4({type:`sizing`,names:_5,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:_5.indexOf(r)+1,body:a}},htmlBuilder:v5,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=c8(e.body,n),i=new t8(`mstyle`,r);return i.setAttribute(`mathsize`,S3(n.sizeMultiplier)),i}}),U4({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Y4(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=k6([],[e8(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return k6([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new t8(`mpadded`,[u8(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),U4({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=e8(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=N6(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=s.height-n.height-a-l;n.style.paddingLeft=S3(u);var p=P6({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:s},{type:`kern`,size:l}]});if(e.index){var m=t.havingStyle(m3.SCRIPTSCRIPT),h=e8(e.index,m,t);return k6([`mord`,`sqrt`],[k6([`katex-root`],[P6({positionType:`shift`,positionData:-(.6*(p.height-p.depth)),children:[{type:`elem`,elem:h}]})]),p],t)}return k6([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new t8(`mroot`,[u8(n,t),u8(r,t)]):new t8(`msqrt`,[u8(n,t)])}}),y5={display:m3.DISPLAY,text:m3.TEXT,script:m3.SCRIPT,scriptscript:m3.SCRIPTSCRIPT},U4({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!vRt(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=y5[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),_Rt(e.body,r,t)},mathmlBuilder(e,t){var n=y5[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=c8(e.body,r),a=new t8(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),b5=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===m3.DISPLAY.size||n.alwaysHandleSupSub)?f5:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===m3.DISPLAY.size||n.limits)?tBt:null:n.type===`accent`?r3(n.base)?v8:null:n.type===`horizBrace`&&!e.sub===n.isOver?$zt:null:null},W4({type:`supsub`,htmlBuilder(e,t){var n=b5(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=e8(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&r3(r);if(i){var m=t.havingStyle(t.style.sup());s=e8(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=e8(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===m3.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=S3(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof M3||b)&&(y=S3(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=P6({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=P6({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=P6({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return k6([Q6(o,`right`)||`mord`],[o,k6([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[u8(e.base,t)];e.sub&&a.push(u8(e.sub,t)),e.sup&&a.push(u8(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===m3.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===m3.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===m3.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===m3.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===m3.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===m3.DISPLAY)?`munder`:`msub`}return new t8(o,a)}}),W4({type:`atom`,htmlBuilder(e,t){return ozt(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new t8(`mo`,[a8(e.text,e.mode)]);if(e.family===`bin`){var r=s8(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),x5={mi:`italic`,mn:`normal`,mtext:`normal`},W4({type:`mathord`,htmlBuilder(e,t){return E6(e,t)},mathmlBuilder(e,t){var n=new t8(`mi`,[a8(e.text,e.mode,t)]),r=s8(e,t)||`italic`;return r!==x5[n.type]&&n.setAttribute(`mathvariant`,r),n}}),W4({type:`textord`,htmlBuilder(e,t){return E6(e,t)},mathmlBuilder(e,t){var n=a8(e.text,e.mode,t),r=s8(e,t)||`normal`,i=e.mode===`text`?new t8(`mtext`,[n]):/[0-9]/.test(e.text)?new t8(`mn`,[n]):e.text===`\\prime`?new t8(`mo`,[n]):new t8(`mi`,[n]);return r!==x5[i.type]&&i.setAttribute(`mathvariant`,r),i}}),S5=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),rBt=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]),W4({type:`spacing`,htmlBuilder(e,t){var n=rBt.get(e.text),r=S5.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=E6(e,t);return a.classes.push(i),a}return k6([`mspace`,i],[ozt(e.text,e.mode,t)],t)}if(r)return k6([`mspace`,r],[],t);throw new t3(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(rBt.has(e.text))n=new t8(`mtext`,[new n8(`\xA0`)]);else if(S5.has(e.text))return new t8(`mspace`);else throw new t3(`Unknown type of space "`+e.text+`"`);return n}}),C5=()=>{var e=new t8(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},W4({type:`tag`,mathmlBuilder(e,t){var n=new t8(`mtable`,[new t8(`mtr`,[C5(),new t8(`mtd`,[l8(e.body,t)]),C5(),new t8(`mtd`,[l8(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),w5={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},T5={"\\textbf":`textbf`,"\\textmd":`textmd`},E5={"\\textit":`textit`,"\\textup":`textup`},D5=(e,t)=>{var n=e.font;return n?w5[n]?t.withTextFontFamily(w5[n]):T5[n]?t.withTextFontWeight(T5[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(E5[n]):t},U4({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:q6(i),font:r}},htmlBuilder(e,t){var n=D5(e,t);return k6([`mord`,`text`],J6(e.body,n,!0),n)},mathmlBuilder(e,t){var n=D5(e,t);return l8(e.body,n)}}),U4({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=e8(e.body,t),r=j6(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return k6([`mord`,`katex-underline`],[P6({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new t8(`mo`,[new n8(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new t8(`munder`,[u8(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),U4({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=e8(e.body,t),r=t.fontMetrics().axisHeight;return P6({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new t8(`mpadded`,[u8(e.body,t)],[`vcenter`]);return new t8(`mrow`,[n])}}),U4({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new t3(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=O5(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),k5=U6,A5=`[ \r + ]`,j5=`\\\\[a-zA-Z@]+`,M5=`\\\\[^\ud800-\udfff]`,N5=`(`+j5+`)`+A5+`*`,P5=`\\\\( |[ \r ]+ -?)[ \r ]*`,R5=`[̀-ͯ]`,z5=RegExp(R5+`+$`),B5=`(`+N5+`+)|`+(L5+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(R5+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(R5+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+I5)+(`|`+F5+`)`),V5=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(B5,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new $8(`EOF`,new Q8(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new i3(`Unexpected character: '`+e[t]+`'`,new $8(e[t],new Q8(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,W4({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new $8(r,new Q8(this,t,this.tokenRegex.lastIndex))}},H5=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new i3(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},U5=Z8,t3(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),t3(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),t3(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),t3(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),t3(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),t3(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),t3(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),W5={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},t3(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new i3("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=W5[t.text],r==null||r>=n)throw new i3(`Invalid base-`+n+` digit `+t.text);for(var i;(i=W5[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new i3(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new i3(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new i3(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new i3(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},t3(`\\newcommand`,e=>G5(e,!1,!0,!1)),t3(`\\renewcommand`,e=>G5(e,!0,!1,!1)),t3(`\\providecommand`,e=>G5(e,!0,!0,!0)),t3(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),t3(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),t3(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),M5[n],q3.math[n],q3.text[n]),``}),t3(`\\bgroup`,`{`),t3(`\\egroup`,`}`),t3(`~`,`\\nobreakspace`),t3(`\\lq`,"`"),t3(`\\rq`,`'`),t3(`\\aa`,`\\r a`),t3(`\\AA`,`\\r A`),t3(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),t3(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),t3(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),t3(`ℬ`,`\\mathscr{B}`),t3(`ℰ`,`\\mathscr{E}`),t3(`ℱ`,`\\mathscr{F}`),t3(`ℋ`,`\\mathscr{H}`),t3(`ℐ`,`\\mathscr{I}`),t3(`ℒ`,`\\mathscr{L}`),t3(`ℳ`,`\\mathscr{M}`),t3(`ℛ`,`\\mathscr{R}`),t3(`ℭ`,`\\mathfrak{C}`),t3(`ℌ`,`\\mathfrak{H}`),t3(`ℨ`,`\\mathfrak{Z}`),t3(`\\Bbbk`,`\\Bbb{k}`),t3(`\\llap`,`\\mathllap{\\textrm{#1}}`),t3(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),t3(`\\clap`,`\\mathclap{\\textrm{#1}}`),t3(`\\mathstrut`,`\\vphantom{(}`),t3(`\\underbar`,`\\underline{\\text{#1}}`),t3(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),t3(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),t3(`\\ne`,`\\neq`),t3(`≠`,`\\neq`),t3(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),t3(`∉`,`\\notin`),t3(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),t3(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),t3(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),t3(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),t3(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),t3(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),t3(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),t3(`⟂`,`\\perp`),t3(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),t3(`∌`,`\\notni`),t3(`⌜`,`\\ulcorner`),t3(`⌝`,`\\urcorner`),t3(`⌞`,`\\llcorner`),t3(`⌟`,`\\lrcorner`),t3(`©`,`\\copyright`),t3(`®`,`\\textregistered`),t3(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),t3(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),t3(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),t3(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),t3(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),t3(`⋮`,`\\vdots`),t3(`\\varGamma`,`\\mathit{\\Gamma}`),t3(`\\varDelta`,`\\mathit{\\Delta}`),t3(`\\varTheta`,`\\mathit{\\Theta}`),t3(`\\varLambda`,`\\mathit{\\Lambda}`),t3(`\\varXi`,`\\mathit{\\Xi}`),t3(`\\varPi`,`\\mathit{\\Pi}`),t3(`\\varSigma`,`\\mathit{\\Sigma}`),t3(`\\varUpsilon`,`\\mathit{\\Upsilon}`),t3(`\\varPhi`,`\\mathit{\\Phi}`),t3(`\\varPsi`,`\\mathit{\\Psi}`),t3(`\\varOmega`,`\\mathit{\\Omega}`),t3(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),t3(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),t3(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),t3(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),t3(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),t3(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),t3(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),t3(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),K5={",":`\\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`},q5=new Set([`bin`,`rel`]),t3(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in K5?t=K5[n]:(n.slice(0,4)===`\\not`||n in q3.math&&q5.has(q3.math[n].group))&&(t=`\\dotsb`),t}),J5={")":!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},t3(`\\dotso`,function(e){return e.future().text in J5?`\\ldots\\,`:`\\ldots`}),t3(`\\dotsc`,function(e){var t=e.future().text;return t in J5&&t!==`,`?`\\ldots\\,`:`\\ldots`}),t3(`\\cdots`,function(e){return e.future().text in J5?`\\@cdots\\,`:`\\@cdots`}),t3(`\\dotsb`,`\\cdots`),t3(`\\dotsm`,`\\cdots`),t3(`\\dotsi`,`\\!\\cdots`),t3(`\\dotsx`,`\\ldots\\,`),t3(`\\DOTSI`,`\\relax`),t3(`\\DOTSB`,`\\relax`),t3(`\\DOTSX`,`\\relax`),t3(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),t3(`\\,`,`\\tmspace+{3mu}{.1667em}`),t3(`\\thinspace`,`\\,`),t3(`\\>`,`\\mskip{4mu}`),t3(`\\:`,`\\tmspace+{4mu}{.2222em}`),t3(`\\medspace`,`\\:`),t3(`\\;`,`\\tmspace+{5mu}{.2777em}`),t3(`\\thickspace`,`\\;`),t3(`\\!`,`\\tmspace-{3mu}{.1667em}`),t3(`\\negthinspace`,`\\!`),t3(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),t3(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),t3(`\\enspace`,`\\kern.5em `),t3(`\\enskip`,`\\hskip.5em\\relax`),t3(`\\quad`,`\\hskip1em\\relax`),t3(`\\qquad`,`\\hskip2em\\relax`),t3(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),t3(`\\tag@paren`,`\\tag@literal{({#1})}`),t3(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new i3(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),t3(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),t3(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),t3(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),t3(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),t3(`\\newline`,`\\\\\\relax`),t3(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),Y5=O3(U3[`Main-Regular`][84][1]-.7*U3[`Main-Regular`][65][1]),t3(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Y5+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),t3(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Y5+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),t3(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),t3(`\\@hspace`,`\\hskip #1\\relax`),t3(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),t3(`\\ordinarycolon`,`:`),t3(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),t3(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),t3(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),t3(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),t3(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),t3(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),t3(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),t3(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),t3(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),t3(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),t3(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),t3(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),t3(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),t3(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),t3(`∷`,`\\dblcolon`),t3(`∹`,`\\eqcolon`),t3(`≔`,`\\coloneqq`),t3(`≕`,`\\eqqcolon`),t3(`⩴`,`\\Coloneqq`),t3(`\\ratio`,`\\vcentcolon`),t3(`\\coloncolon`,`\\dblcolon`),t3(`\\colonequals`,`\\coloneqq`),t3(`\\coloncolonequals`,`\\Coloneqq`),t3(`\\equalscolon`,`\\eqqcolon`),t3(`\\equalscoloncolon`,`\\Eqqcolon`),t3(`\\colonminus`,`\\coloneq`),t3(`\\coloncolonminus`,`\\Coloneq`),t3(`\\minuscolon`,`\\eqcolon`),t3(`\\minuscoloncolon`,`\\Eqcolon`),t3(`\\coloncolonapprox`,`\\Colonapprox`),t3(`\\coloncolonsim`,`\\Colonsim`),t3(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),t3(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),t3(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),t3(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),t3(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),t3(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),t3(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),t3(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),t3(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),t3(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),t3(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),t3(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),t3(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),t3(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),t3(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),t3(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),t3(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),t3(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),t3(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),t3(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),t3(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),t3(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),t3(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),t3(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),t3(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),t3(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),t3(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),t3(`\\imath`,`\\html@mathml{\\@imath}{ı}`),t3(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),t3(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),t3(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),t3(`⟦`,`\\llbracket`),t3(`⟧`,`\\rrbracket`),t3(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),t3(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),t3(`↤`,`\\mapsfrom`),t3(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),t3(`⦃`,`\\lBrace`),t3(`⦄`,`\\rBrace`),t3(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),t3(`⦵`,`\\minuso`),t3(`\\darr`,`\\downarrow`),t3(`\\dArr`,`\\Downarrow`),t3(`\\Darr`,`\\Downarrow`),t3(`\\lang`,`\\langle`),t3(`\\rang`,`\\rangle`),t3(`\\uarr`,`\\uparrow`),t3(`\\uArr`,`\\Uparrow`),t3(`\\Uarr`,`\\Uparrow`),t3(`\\N`,`\\mathbb{N}`),t3(`\\R`,`\\mathbb{R}`),t3(`\\Z`,`\\mathbb{Z}`),t3(`\\alef`,`\\aleph`),t3(`\\alefsym`,`\\aleph`),t3(`\\Alpha`,`\\mathrm{A}`),t3(`\\Beta`,`\\mathrm{B}`),t3(`\\bull`,`\\bullet`),t3(`\\Chi`,`\\mathrm{X}`),t3(`\\clubs`,`\\clubsuit`),t3(`\\cnums`,`\\mathbb{C}`),t3(`\\Complex`,`\\mathbb{C}`),t3(`\\Dagger`,`\\ddagger`),t3(`\\diamonds`,`\\diamondsuit`),t3(`\\empty`,`\\emptyset`),t3(`\\Epsilon`,`\\mathrm{E}`),t3(`\\Eta`,`\\mathrm{H}`),t3(`\\exist`,`\\exists`),t3(`\\harr`,`\\leftrightarrow`),t3(`\\hArr`,`\\Leftrightarrow`),t3(`\\Harr`,`\\Leftrightarrow`),t3(`\\hearts`,`\\heartsuit`),t3(`\\image`,`\\Im`),t3(`\\infin`,`\\infty`),t3(`\\Iota`,`\\mathrm{I}`),t3(`\\isin`,`\\in`),t3(`\\Kappa`,`\\mathrm{K}`),t3(`\\larr`,`\\leftarrow`),t3(`\\lArr`,`\\Leftarrow`),t3(`\\Larr`,`\\Leftarrow`),t3(`\\lrarr`,`\\leftrightarrow`),t3(`\\lrArr`,`\\Leftrightarrow`),t3(`\\Lrarr`,`\\Leftrightarrow`),t3(`\\Mu`,`\\mathrm{M}`),t3(`\\natnums`,`\\mathbb{N}`),t3(`\\Nu`,`\\mathrm{N}`),t3(`\\Omicron`,`\\mathrm{O}`),t3(`\\plusmn`,`\\pm`),t3(`\\rarr`,`\\rightarrow`),t3(`\\rArr`,`\\Rightarrow`),t3(`\\Rarr`,`\\Rightarrow`),t3(`\\real`,`\\Re`),t3(`\\reals`,`\\mathbb{R}`),t3(`\\Reals`,`\\mathbb{R}`),t3(`\\Rho`,`\\mathrm{P}`),t3(`\\sdot`,`\\cdot`),t3(`\\sect`,`\\S`),t3(`\\spades`,`\\spadesuit`),t3(`\\sub`,`\\subset`),t3(`\\sube`,`\\subseteq`),t3(`\\supe`,`\\supseteq`),t3(`\\Tau`,`\\mathrm{T}`),t3(`\\thetasym`,`\\vartheta`),t3(`\\weierp`,`\\wp`),t3(`\\Zeta`,`\\mathrm{Z}`),t3(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),t3(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),t3(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),t3(`\\bra`,`\\mathinner{\\langle{#1}|}`),t3(`\\ket`,`\\mathinner{|{#1}\\rangle}`),t3(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),t3(`\\Bra`,`\\left\\langle#1\\right|`),t3(`\\Ket`,`\\left|#1\\right\\rangle`),X5=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},t3(`\\bra@ket`,X5(!1)),t3(`\\bra@set`,X5(!0)),t3(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),t3(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),t3(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),t3(`\\angln`,`{\\angl n}`),t3(`\\blue`,`\\textcolor{##6495ed}{#1}`),t3(`\\orange`,`\\textcolor{##ffa500}{#1}`),t3(`\\pink`,`\\textcolor{##ff00af}{#1}`),t3(`\\red`,`\\textcolor{##df0030}{#1}`),t3(`\\green`,`\\textcolor{##28ae7b}{#1}`),t3(`\\gray`,`\\textcolor{gray}{#1}`),t3(`\\purple`,`\\textcolor{##9d38bd}{#1}`),t3(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),t3(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),t3(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),t3(`\\blueD`,`\\textcolor{##11accd}{#1}`),t3(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),t3(`\\tealA`,`\\textcolor{##94fff5}{#1}`),t3(`\\tealB`,`\\textcolor{##26edd5}{#1}`),t3(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),t3(`\\tealD`,`\\textcolor{##01a995}{#1}`),t3(`\\tealE`,`\\textcolor{##208170}{#1}`),t3(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),t3(`\\greenB`,`\\textcolor{##8af281}{#1}`),t3(`\\greenC`,`\\textcolor{##74cf70}{#1}`),t3(`\\greenD`,`\\textcolor{##1fab54}{#1}`),t3(`\\greenE`,`\\textcolor{##0d923f}{#1}`),t3(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),t3(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),t3(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),t3(`\\goldD`,`\\textcolor{##e07d10}{#1}`),t3(`\\goldE`,`\\textcolor{##a75a05}{#1}`),t3(`\\redA`,`\\textcolor{##fca9a9}{#1}`),t3(`\\redB`,`\\textcolor{##ff8482}{#1}`),t3(`\\redC`,`\\textcolor{##f9685d}{#1}`),t3(`\\redD`,`\\textcolor{##e84d39}{#1}`),t3(`\\redE`,`\\textcolor{##bc2612}{#1}`),t3(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),t3(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),t3(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),t3(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),t3(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),t3(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),t3(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),t3(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),t3(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),t3(`\\purpleE`,`\\textcolor{##543b78}{#1}`),t3(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),t3(`\\mintB`,`\\textcolor{##edf2df}{#1}`),t3(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),t3(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),t3(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),t3(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),t3(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),t3(`\\grayE`,`\\textcolor{##babec2}{#1}`),t3(`\\grayF`,`\\textcolor{##888d93}{#1}`),t3(`\\grayG`,`\\textcolor{##626569}{#1}`),t3(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),t3(`\\grayI`,`\\textcolor{##21242c}{#1}`),t3(`\\kaBlue`,`\\textcolor{##314453}{#1}`),t3(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),Z5={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Q5=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new H5(U5,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new V5(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 t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new $8(`EOF`,n.loc)),this.pushTokens(r),new $8(``,Q8.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new i3(`Extra }`,i)}else if(i.text===`EOF`)throw new i3(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new i3(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new i3(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new i3(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new i3(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new i3(`Not a valid argument number`,s)}}}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 $8(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new V5(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(M5,e)||Object.prototype.hasOwnProperty.call(q3.math,e)||Object.prototype.hasOwnProperty.call(q3.text,e)||Object.prototype.hasOwnProperty.call(Z5,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(M5,e)&&!M5[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Xzt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Zzt=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Qzt={"́":{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`}},$zt={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},eBt=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Q5(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new i3(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return 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 t=this.nextToken;this.consume(),this.gullet.pushToken(new $8(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&M5[i.text]&&M5[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(WLt(t.charCodeAt(0))?this.mode===`math`&&W4({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):W4({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:Q8.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=``,s=e=>!!e.scope,l=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},u=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=l(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=``}},d=(e={})=>{let t={children:[]};return Object.assign(t,e),t},f=class e{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=d({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},p=class extends f{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function m(e){return e?typeof e==`string`?e:e.source:null}function h(e){return v(`(?=`,e,`)`)}function g(e){return v(`(?:`,e,`)*`)}function _(e){return v(`(?:`,e,`)?`)}function v(...e){return e.map(e=>m(e)).join(``)}function y(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function b(...e){return`(`+(y(e).capture?``:`?:`)+e.map(e=>m(e)).join(`|`)+`)`}function x(e){return RegExp(e.toString()+`|`).exec(``).length-1}function S(e,t){let n=e&&e.exec(t);return n&&n.index===0}var C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function w(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=m(e),i=``;for(;r.length>0;){let e=C.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var T=/\b\B/,E=`[a-zA-Z]\\w*`,D=`[a-zA-Z_]\\w*`,O=`\\b\\d+(\\.\\d+)?`,k=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,A=`\\b(0b[01]+)`,j=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,M=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},ee={begin:`\\\\[\\s\\S]`,relevance:0},te={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[ee]},ne={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[ee]},re={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/},ie=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=b(`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 r.contains.push({begin:v(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ae=ie(`//`,`$`),oe=ie(`/\\*`,`\\*/`),se=ie(`#`,`$`),ce=Object.freeze({__proto__:null,APOS_STRING_MODE:te,BACKSLASH_ESCAPE:ee,BINARY_NUMBER_MODE:{scope:`number`,begin:A,relevance:0},BINARY_NUMBER_RE:A,COMMENT:ie,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:se,IDENT_RE:E,MATCH_NOTHING_RE:T,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:O,relevance:0},NUMBER_RE:O,PHRASAL_WORDS_MODE:re,QUOTE_STRING_MODE:ne,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]},RE_STARTERS_RE:j,SHEBANG:M,TITLE_MODE:{scope:`title`,begin:E,relevance:0},UNDERSCORE_IDENT_RE:D,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:D,relevance:0}});function le(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ue(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function de(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=le,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function fe(e,t){Array.isArray(e.illegal)&&(e.illegal=b(...e.illegal))}function pe(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function me(e,t){e.relevance===void 0&&(e.relevance=1)}var he=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=v(n.beforeMatch,h(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ge=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],_e=`keyword`;function ve(e,t,n=_e){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ve(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,ye(n[0],n[1])]})}}function ye(e,t){return t?Number(t):+!be(e)}function be(e){return ge.includes(e.toLowerCase())}var xe={},Se=e=>{console.error(e)},Ce=(e,...t)=>{console.log(`WARN: ${e}`,...t)},we=(e,t)=>{xe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),xe[`${e}/${t}`]=!0)},Te=Error();function Ee(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=x(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function De(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Se(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),Te;if(typeof e.beginScope!=`object`||e.beginScope===null)throw Se(`beginScope must be object`),Te;Ee(e,e.begin,{key:`beginScope`}),e.begin=w(e.begin,{joinWith:``})}}function Oe(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Se(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),Te;if(typeof e.endScope!=`object`||e.endScope===null)throw Se(`endScope must be object`),Te;Ee(e,e.end,{key:`endScope`}),e.end=w(e.end,{joinWith:``})}}function ke(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Ae(e){ke(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),De(e),Oe(e)}function je(e){function t(t,n){return new RegExp(m(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=x(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(w(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ue,pe,Ae,he].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[de,fe,me].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=ve(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=m(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Ne(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Me(e){return e?e.endsWithParent||Me(e.starts):!1}function Ne(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Me(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Pe=`11.11.1`,Fe=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Ie=i,Le=a,Re=Symbol(`nomatch`),ze=7,Be=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,l={disableAutodetect:!0,name:`Plain text`,contains:[]},u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:p};function d(e){return u.noHighlightRe.test(e)}function f(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=u.languageDetectRe.exec(t);if(n){let t=te(n[1]);return t||(Ce(s.replace(`{}`,n[1])),Ce(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>d(e)||te(e))}function m(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(we(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),we(`10.7.0`,`Please use highlight(code, options) instead. +?)[ \r ]*`,F5=`[̀-ͯ]`,I5=RegExp(F5+`+$`),L5=`(`+A5+`+)|`+(P5+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(F5+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(F5+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+N5)+(`|`+M5+`)`),R5=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(L5,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Y8(`EOF`,new J8(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new t3(`Unexpected character: '`+e[t]+`'`,new Y8(e[t],new J8(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,H4({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new Y8(r,new J8(this,t,this.tokenRegex.lastIndex))}},z5=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new t3(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},B5=q8,$4(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$4(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$4(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$4(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$4(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$4(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$4(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),V5={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},$4(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new t3("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=V5[t.text],r==null||r>=n)throw new t3(`Invalid base-`+n+` digit `+t.text);for(var i;(i=V5[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new t3(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new t3(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new t3(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new t3(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},$4(`\\newcommand`,e=>H5(e,!1,!0,!1)),$4(`\\renewcommand`,e=>H5(e,!0,!1,!1)),$4(`\\providecommand`,e=>H5(e,!0,!0,!0)),$4(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$4(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$4(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),k5[n],z3.math[n],z3.text[n]),``}),$4(`\\bgroup`,`{`),$4(`\\egroup`,`}`),$4(`~`,`\\nobreakspace`),$4(`\\lq`,"`"),$4(`\\rq`,`'`),$4(`\\aa`,`\\r a`),$4(`\\AA`,`\\r A`),$4(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$4(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$4(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$4(`ℬ`,`\\mathscr{B}`),$4(`ℰ`,`\\mathscr{E}`),$4(`ℱ`,`\\mathscr{F}`),$4(`ℋ`,`\\mathscr{H}`),$4(`ℐ`,`\\mathscr{I}`),$4(`ℒ`,`\\mathscr{L}`),$4(`ℳ`,`\\mathscr{M}`),$4(`ℛ`,`\\mathscr{R}`),$4(`ℭ`,`\\mathfrak{C}`),$4(`ℌ`,`\\mathfrak{H}`),$4(`ℨ`,`\\mathfrak{Z}`),$4(`\\Bbbk`,`\\Bbb{k}`),$4(`\\llap`,`\\mathllap{\\textrm{#1}}`),$4(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$4(`\\clap`,`\\mathclap{\\textrm{#1}}`),$4(`\\mathstrut`,`\\vphantom{(}`),$4(`\\underbar`,`\\underline{\\text{#1}}`),$4(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$4(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$4(`\\ne`,`\\neq`),$4(`≠`,`\\neq`),$4(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$4(`∉`,`\\notin`),$4(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$4(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$4(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$4(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$4(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$4(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$4(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$4(`⟂`,`\\perp`),$4(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$4(`∌`,`\\notni`),$4(`⌜`,`\\ulcorner`),$4(`⌝`,`\\urcorner`),$4(`⌞`,`\\llcorner`),$4(`⌟`,`\\lrcorner`),$4(`©`,`\\copyright`),$4(`®`,`\\textregistered`),$4(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$4(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$4(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$4(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$4(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$4(`⋮`,`\\vdots`),$4(`\\varGamma`,`\\mathit{\\Gamma}`),$4(`\\varDelta`,`\\mathit{\\Delta}`),$4(`\\varTheta`,`\\mathit{\\Theta}`),$4(`\\varLambda`,`\\mathit{\\Lambda}`),$4(`\\varXi`,`\\mathit{\\Xi}`),$4(`\\varPi`,`\\mathit{\\Pi}`),$4(`\\varSigma`,`\\mathit{\\Sigma}`),$4(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$4(`\\varPhi`,`\\mathit{\\Phi}`),$4(`\\varPsi`,`\\mathit{\\Psi}`),$4(`\\varOmega`,`\\mathit{\\Omega}`),$4(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$4(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$4(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$4(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$4(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$4(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$4(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$4(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),U5={",":`\\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`},W5=new Set([`bin`,`rel`]),$4(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in U5?t=U5[n]:(n.slice(0,4)===`\\not`||n in z3.math&&W5.has(z3.math[n].group))&&(t=`\\dotsb`),t}),iBt={")":!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},$4(`\\dotso`,function(e){return e.future().text in iBt?`\\ldots\\,`:`\\ldots`}),$4(`\\dotsc`,function(e){var t=e.future().text;return t in iBt&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$4(`\\cdots`,function(e){return e.future().text in iBt?`\\@cdots\\,`:`\\@cdots`}),$4(`\\dotsb`,`\\cdots`),$4(`\\dotsm`,`\\cdots`),$4(`\\dotsi`,`\\!\\cdots`),$4(`\\dotsx`,`\\ldots\\,`),$4(`\\DOTSI`,`\\relax`),$4(`\\DOTSB`,`\\relax`),$4(`\\DOTSX`,`\\relax`),$4(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$4(`\\,`,`\\tmspace+{3mu}{.1667em}`),$4(`\\thinspace`,`\\,`),$4(`\\>`,`\\mskip{4mu}`),$4(`\\:`,`\\tmspace+{4mu}{.2222em}`),$4(`\\medspace`,`\\:`),$4(`\\;`,`\\tmspace+{5mu}{.2777em}`),$4(`\\thickspace`,`\\;`),$4(`\\!`,`\\tmspace-{3mu}{.1667em}`),$4(`\\negthinspace`,`\\!`),$4(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$4(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$4(`\\enspace`,`\\kern.5em `),$4(`\\enskip`,`\\hskip.5em\\relax`),$4(`\\quad`,`\\hskip1em\\relax`),$4(`\\qquad`,`\\hskip2em\\relax`),$4(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$4(`\\tag@paren`,`\\tag@literal{({#1})}`),$4(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new t3(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$4(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$4(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$4(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$4(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$4(`\\newline`,`\\\\\\relax`),$4(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),aBt=S3(I3[`Main-Regular`][84][1]-.7*I3[`Main-Regular`][65][1]),$4(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+aBt+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$4(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+aBt+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$4(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$4(`\\@hspace`,`\\hskip #1\\relax`),$4(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$4(`\\ordinarycolon`,`:`),$4(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$4(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$4(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$4(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$4(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$4(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$4(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$4(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$4(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$4(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$4(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$4(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$4(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$4(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$4(`∷`,`\\dblcolon`),$4(`∹`,`\\eqcolon`),$4(`≔`,`\\coloneqq`),$4(`≕`,`\\eqqcolon`),$4(`⩴`,`\\Coloneqq`),$4(`\\ratio`,`\\vcentcolon`),$4(`\\coloncolon`,`\\dblcolon`),$4(`\\colonequals`,`\\coloneqq`),$4(`\\coloncolonequals`,`\\Coloneqq`),$4(`\\equalscolon`,`\\eqqcolon`),$4(`\\equalscoloncolon`,`\\Eqqcolon`),$4(`\\colonminus`,`\\coloneq`),$4(`\\coloncolonminus`,`\\Coloneq`),$4(`\\minuscolon`,`\\eqcolon`),$4(`\\minuscoloncolon`,`\\Eqcolon`),$4(`\\coloncolonapprox`,`\\Colonapprox`),$4(`\\coloncolonsim`,`\\Colonsim`),$4(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$4(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$4(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$4(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$4(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$4(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$4(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$4(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$4(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$4(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$4(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$4(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$4(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$4(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$4(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$4(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$4(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$4(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$4(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$4(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$4(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$4(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$4(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$4(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$4(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$4(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$4(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$4(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$4(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$4(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$4(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$4(`⟦`,`\\llbracket`),$4(`⟧`,`\\rrbracket`),$4(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$4(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$4(`↤`,`\\mapsfrom`),$4(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),$4(`⦃`,`\\lBrace`),$4(`⦄`,`\\rBrace`),$4(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$4(`⦵`,`\\minuso`),$4(`\\darr`,`\\downarrow`),$4(`\\dArr`,`\\Downarrow`),$4(`\\Darr`,`\\Downarrow`),$4(`\\lang`,`\\langle`),$4(`\\rang`,`\\rangle`),$4(`\\uarr`,`\\uparrow`),$4(`\\uArr`,`\\Uparrow`),$4(`\\Uarr`,`\\Uparrow`),$4(`\\N`,`\\mathbb{N}`),$4(`\\R`,`\\mathbb{R}`),$4(`\\Z`,`\\mathbb{Z}`),$4(`\\alef`,`\\aleph`),$4(`\\alefsym`,`\\aleph`),$4(`\\Alpha`,`\\mathrm{A}`),$4(`\\Beta`,`\\mathrm{B}`),$4(`\\bull`,`\\bullet`),$4(`\\Chi`,`\\mathrm{X}`),$4(`\\clubs`,`\\clubsuit`),$4(`\\cnums`,`\\mathbb{C}`),$4(`\\Complex`,`\\mathbb{C}`),$4(`\\Dagger`,`\\ddagger`),$4(`\\diamonds`,`\\diamondsuit`),$4(`\\empty`,`\\emptyset`),$4(`\\Epsilon`,`\\mathrm{E}`),$4(`\\Eta`,`\\mathrm{H}`),$4(`\\exist`,`\\exists`),$4(`\\harr`,`\\leftrightarrow`),$4(`\\hArr`,`\\Leftrightarrow`),$4(`\\Harr`,`\\Leftrightarrow`),$4(`\\hearts`,`\\heartsuit`),$4(`\\image`,`\\Im`),$4(`\\infin`,`\\infty`),$4(`\\Iota`,`\\mathrm{I}`),$4(`\\isin`,`\\in`),$4(`\\Kappa`,`\\mathrm{K}`),$4(`\\larr`,`\\leftarrow`),$4(`\\lArr`,`\\Leftarrow`),$4(`\\Larr`,`\\Leftarrow`),$4(`\\lrarr`,`\\leftrightarrow`),$4(`\\lrArr`,`\\Leftrightarrow`),$4(`\\Lrarr`,`\\Leftrightarrow`),$4(`\\Mu`,`\\mathrm{M}`),$4(`\\natnums`,`\\mathbb{N}`),$4(`\\Nu`,`\\mathrm{N}`),$4(`\\Omicron`,`\\mathrm{O}`),$4(`\\plusmn`,`\\pm`),$4(`\\rarr`,`\\rightarrow`),$4(`\\rArr`,`\\Rightarrow`),$4(`\\Rarr`,`\\Rightarrow`),$4(`\\real`,`\\Re`),$4(`\\reals`,`\\mathbb{R}`),$4(`\\Reals`,`\\mathbb{R}`),$4(`\\Rho`,`\\mathrm{P}`),$4(`\\sdot`,`\\cdot`),$4(`\\sect`,`\\S`),$4(`\\spades`,`\\spadesuit`),$4(`\\sub`,`\\subset`),$4(`\\sube`,`\\subseteq`),$4(`\\supe`,`\\supseteq`),$4(`\\Tau`,`\\mathrm{T}`),$4(`\\thetasym`,`\\vartheta`),$4(`\\weierp`,`\\wp`),$4(`\\Zeta`,`\\mathrm{Z}`),$4(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$4(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$4(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$4(`\\bra`,`\\mathinner{\\langle{#1}|}`),$4(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$4(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$4(`\\Bra`,`\\left\\langle#1\\right|`),$4(`\\Ket`,`\\left|#1\\right\\rangle`),oBt=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},$4(`\\bra@ket`,oBt(!1)),$4(`\\bra@set`,oBt(!0)),$4(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$4(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$4(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$4(`\\angln`,`{\\angl n}`),$4(`\\blue`,`\\textcolor{##6495ed}{#1}`),$4(`\\orange`,`\\textcolor{##ffa500}{#1}`),$4(`\\pink`,`\\textcolor{##ff00af}{#1}`),$4(`\\red`,`\\textcolor{##df0030}{#1}`),$4(`\\green`,`\\textcolor{##28ae7b}{#1}`),$4(`\\gray`,`\\textcolor{gray}{#1}`),$4(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$4(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$4(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$4(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$4(`\\blueD`,`\\textcolor{##11accd}{#1}`),$4(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$4(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$4(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$4(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$4(`\\tealD`,`\\textcolor{##01a995}{#1}`),$4(`\\tealE`,`\\textcolor{##208170}{#1}`),$4(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$4(`\\greenB`,`\\textcolor{##8af281}{#1}`),$4(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$4(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$4(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$4(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$4(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$4(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$4(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$4(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$4(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$4(`\\redB`,`\\textcolor{##ff8482}{#1}`),$4(`\\redC`,`\\textcolor{##f9685d}{#1}`),$4(`\\redD`,`\\textcolor{##e84d39}{#1}`),$4(`\\redE`,`\\textcolor{##bc2612}{#1}`),$4(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$4(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$4(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$4(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$4(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$4(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$4(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$4(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$4(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$4(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$4(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$4(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$4(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$4(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$4(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$4(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$4(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$4(`\\grayE`,`\\textcolor{##babec2}{#1}`),$4(`\\grayF`,`\\textcolor{##888d93}{#1}`),$4(`\\grayG`,`\\textcolor{##626569}{#1}`),$4(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$4(`\\grayI`,`\\textcolor{##21242c}{#1}`),$4(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$4(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),sBt={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},cBt=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new z5(B5,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new R5(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 t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new Y8(`EOF`,n.loc)),this.pushTokens(r),new Y8(``,J8.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new t3(`Extra }`,i)}else if(i.text===`EOF`)throw new t3(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new t3(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new t3(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new t3(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new t3(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new t3(`Not a valid argument number`,s)}}}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 Y8(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new R5(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(k5,e)||Object.prototype.hasOwnProperty.call(z3.math,e)||Object.prototype.hasOwnProperty.call(z3.text,e)||Object.prototype.hasOwnProperty.call(sBt,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(k5,e)&&!k5[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},lBt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,G5=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),K5={"́":{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`}},q5={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},J5=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new cBt(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new t3(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return 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 t=this.nextToken;this.consume(),this.gullet.pushToken(new Y8(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&k5[i.text]&&k5[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(eRt(t.charCodeAt(0))?this.mode===`math`&&H4({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):H4({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:J8.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=``,s=e=>!!e.scope,l=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},u=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=l(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=``}},d=(e={})=>{let t={children:[]};return Object.assign(t,e),t},f=class e{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=d({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},p=class extends f{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function m(e){return e?typeof e==`string`?e:e.source:null}function h(e){return v(`(?=`,e,`)`)}function g(e){return v(`(?:`,e,`)*`)}function _(e){return v(`(?:`,e,`)?`)}function v(...e){return e.map(e=>m(e)).join(``)}function y(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function b(...e){return`(`+(y(e).capture?``:`?:`)+e.map(e=>m(e)).join(`|`)+`)`}function x(e){return RegExp(e.toString()+`|`).exec(``).length-1}function S(e,t){let n=e&&e.exec(t);return n&&n.index===0}var C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function w(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=m(e),i=``;for(;r.length>0;){let e=C.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var T=/\b\B/,E=`[a-zA-Z]\\w*`,D=`[a-zA-Z_]\\w*`,O=`\\b\\d+(\\.\\d+)?`,k=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,A=`\\b(0b[01]+)`,j=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,M=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},ee={begin:`\\\\[\\s\\S]`,relevance:0},te={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[ee]},ne={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[ee]},re={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/},ie=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=b(`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 r.contains.push({begin:v(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ae=ie(`//`,`$`),oe=ie(`/\\*`,`\\*/`),se=ie(`#`,`$`),ce=Object.freeze({__proto__:null,APOS_STRING_MODE:te,BACKSLASH_ESCAPE:ee,BINARY_NUMBER_MODE:{scope:`number`,begin:A,relevance:0},BINARY_NUMBER_RE:A,COMMENT:ie,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:se,IDENT_RE:E,MATCH_NOTHING_RE:T,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:O,relevance:0},NUMBER_RE:O,PHRASAL_WORDS_MODE:re,QUOTE_STRING_MODE:ne,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]},RE_STARTERS_RE:j,SHEBANG:M,TITLE_MODE:{scope:`title`,begin:E,relevance:0},UNDERSCORE_IDENT_RE:D,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:D,relevance:0}});function le(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ue(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function de(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=le,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function fe(e,t){Array.isArray(e.illegal)&&(e.illegal=b(...e.illegal))}function pe(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function me(e,t){e.relevance===void 0&&(e.relevance=1)}var he=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=v(n.beforeMatch,h(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ge=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],_e=`keyword`;function ve(e,t,n=_e){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ve(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,ye(n[0],n[1])]})}}function ye(e,t){return t?Number(t):+!be(e)}function be(e){return ge.includes(e.toLowerCase())}var xe={},Se=e=>{console.error(e)},Ce=(e,...t)=>{console.log(`WARN: ${e}`,...t)},we=(e,t)=>{xe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),xe[`${e}/${t}`]=!0)},Te=Error();function Ee(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=x(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function De(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Se(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),Te;if(typeof e.beginScope!=`object`||e.beginScope===null)throw Se(`beginScope must be object`),Te;Ee(e,e.begin,{key:`beginScope`}),e.begin=w(e.begin,{joinWith:``})}}function Oe(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Se(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),Te;if(typeof e.endScope!=`object`||e.endScope===null)throw Se(`endScope must be object`),Te;Ee(e,e.end,{key:`endScope`}),e.end=w(e.end,{joinWith:``})}}function ke(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Ae(e){ke(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),De(e),Oe(e)}function je(e){function t(t,n){return new RegExp(m(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=x(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(w(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ue,pe,Ae,he].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[de,fe,me].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=ve(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=m(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Ne(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Me(e){return e?e.endsWithParent||Me(e.starts):!1}function Ne(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Me(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Pe=`11.11.1`,Fe=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Ie=i,Le=a,Re=Symbol(`nomatch`),ze=7,Be=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,l={disableAutodetect:!0,name:`Plain text`,contains:[]},u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:p};function d(e){return u.noHighlightRe.test(e)}function f(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=u.languageDetectRe.exec(t);if(n){let t=te(n[1]);return t||(Ce(s.replace(`{}`,n[1])),Ce(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>d(e)||te(e))}function m(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(we(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),we(`10.7.0`,`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};se(`before:highlight`,a);let o=a.result?a.result:y(a.language,a.code,n);return o.code=a.code,se(`after:highlight`,o),o}function y(e,n,i,a){let l=Object.create(null);function d(e,t){return e.keywords[t]}function f(){if(!j.keywords){ee.addText(ne);return}let e=0;j.keywordPatternRe.lastIndex=0;let t=j.keywordPatternRe.exec(ne),n=``;for(;t;){n+=ne.substring(e,t.index);let r=O.case_insensitive?t[0].toLowerCase():t[0],i=d(j,r);if(i){let[e,a]=i;if(ee.addText(n),n=``,l[r]=(l[r]||0)+1,l[r]<=ze&&(re+=a),e.startsWith(`_`))n+=t[0];else{let n=O.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0];e=j.keywordPatternRe.lastIndex,t=j.keywordPatternRe.exec(ne)}n+=ne.substring(e),ee.addText(n)}function p(){if(ne===``)return;let e=null;if(typeof j.subLanguage==`string`){if(!t[j.subLanguage]){ee.addText(ne);return}e=y(j.subLanguage,ne,!0,M[j.subLanguage]),M[j.subLanguage]=e._top}else e=C(ne,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(re+=e.relevance),ee.__addSublanguage(e._emitter,e.language)}function m(){j.subLanguage==null?f():p(),ne=``}function h(e,t){e!==``&&(ee.startScope(t),ee.addText(e),ee.endScope())}function g(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=O.classNameAliases[e[n]]||e[n],i=t[n];r?h(i,r):(ne=i,f(),ne=``),n++}}function _(e,t){return e.scope&&typeof e.scope==`string`&&ee.openNode(O.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(ne,O.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),ne=``):e.beginScope._multi&&(g(e.beginScope,t),ne=``)),j=Object.create(e,{parent:{value:j}}),j}function v(e,t,n){let i=S(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function b(e){return j.matcher.regexIndex===0?(ne+=e[0],1):(oe=!0,0)}function x(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return b(t);return n.skip?ne+=t:(n.excludeBegin&&(ne+=t),m(),!n.returnBegin&&!n.excludeBegin&&(ne=t)),_(n,e),n.returnBegin?0:t.length}function w(e){let t=e[0],r=n.substring(e.index),i=v(j,e,r);if(!i)return Re;let a=j;j.endScope&&j.endScope._wrap?(m(),h(t,j.endScope._wrap)):j.endScope&&j.endScope._multi?(m(),g(j.endScope,e)):a.skip?ne+=t:(a.returnEnd||a.excludeEnd||(ne+=t),m(),a.excludeEnd&&(ne=t));do j.scope&&ee.closeNode(),!j.skip&&!j.subLanguage&&(re+=j.relevance),j=j.parent;while(j!==i.parent);return i.starts&&_(i.starts,e),a.returnEnd?0:t.length}function T(){let e=[];for(let t=j;t!==O;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>ee.openNode(e))}let E={};function D(t,r){let a=r&&r[0];if(ne+=t,a==null)return m(),0;if(E.type===`begin`&&r.type===`end`&&E.index===r.index&&a===``){if(ne+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=E.rule,t}return 1}if(E=r,r.type===`begin`)return x(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(j.scope||``)+`"`);throw e.mode=j,e}if(r.type===`end`){let e=w(r);if(e!==Re)return e}if(r.type===`illegal`&&a===``)return ne+=` -`,1;if(ae>1e5&&ae>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return ne+=a,a.length}let O=te(e);if(!O)throw Se(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let k=je(O),A=``,j=a||k,M={},ee=new u.__emitter(u);T();let ne=``,re=0,ie=0,ae=0,oe=!1;try{if(O.__emitTokens)O.__emitTokens(n,ee);else{for(j.matcher.considerAll();;){ae++,oe?oe=!1:j.matcher.considerAll(),j.matcher.lastIndex=ie;let e=j.matcher.exec(n);if(!e)break;let t=D(n.substring(ie,e.index),e);ie=e.index+t}D(n.substring(ie))}return ee.finalize(),A=ee.toHTML(),{language:e,value:A,relevance:re,illegal:!1,_emitter:ee,_top:j}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Ie(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:ie,context:n.slice(ie-100,ie+100),mode:t.mode,resultSoFar:A},_emitter:ee};if(o)return{language:e,value:Ie(n),illegal:!1,relevance:0,errorRaised:t,_emitter:ee,_top:j};throw t}}function x(e){let t={value:Ie(e),illegal:!1,relevance:0,_top:l,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function C(e,n){n=n||u.languages||Object.keys(t);let r=x(e),i=n.filter(te).filter(re).map(t=>y(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(te(e.language).supersetOf===t.language)return 1;if(te(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function w(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function T(e){let t=null,n=f(e);if(d(n))return;if(se(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(u.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(e)),u.throwUnescapedHTML))throw new Fe(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?m(r,{language:n,ignoreIllegals:!0}):C(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,w(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),se(`after:highlightElement`,{el:e,result:i,text:r})}function E(e){u=Le(u,e)}let D=()=>{A(),we(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function O(){A(),we(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let k=!1;function A(){function e(){A()}if(document.readyState===`loading`){k||window.addEventListener(`DOMContentLoaded`,e,!1),k=!0;return}document.querySelectorAll(u.cssSelector).forEach(T)}function j(n,r){let i=null;try{i=r(e)}catch(e){if(Se(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)Se(e);else throw e;i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&ne(i.aliases,{languageName:n})}function M(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function ee(){return Object.keys(t)}function te(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function ne(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function re(e){let t=te(e);return t&&!t.disableAutodetect}function ie(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ae(e){ie(e),a.push(e)}function oe(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function se(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function le(e){return we(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),we(`10.7.0`,`Please use highlightElement now.`),T(e)}Object.assign(e,{highlight:m,highlightAuto:C,highlightAll:A,highlightElement:T,highlightBlock:le,configure:E,initHighlighting:D,initHighlightingOnLoad:O,registerLanguage:j,unregisterLanguage:M,listLanguages:ee,getLanguage:te,registerAliases:ne,autoDetection:re,inherit:Le,addPlugin:ae,removePlugin:oe}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Pe,e.regex={concat:v,lookahead:h,either:b,optional:_,anyNumberOfTimes:g};for(let e in ce)typeof ce[e]==`object`&&n(ce[e]);return Object.assign(e,ce),e},Ve=Be({});Ve.newInstance=()=>Be({}),t.exports=Ve,Ve.HighlightJS=Ve,Ve.default=Ve})),s7=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+`,n=`далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт `,r=`null истина ложь неопределено`,i=e.inherit(e.NUMBER_MODE),a={className:`string`,begin:`"|\\|`,end:`"|$`,contains:[{begin:`""`}]},o={begin:`'`,end:`'`,excludeBegin:!0,excludeEnd:!0,contains:[{className:`number`,begin:`\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}`}]},s={match:/[;()+\-:=,]/,className:`punctuation`,relevance:0},l=e.inherit(e.C_LINE_COMMENT_MODE),u={className:`meta`,begin:`#|&`,end:`$`,keywords:{$pattern:t,keyword:n+`загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент `},contains:[l]},d={className:`symbol`,begin:`~`,end:`;|:`,excludeEnd:!0},f={className:`function`,variants:[{begin:`процедура|функция`,end:`\\)`,keywords:`процедура функция`},{begin:`конецпроцедуры|конецфункции`,keywords:`конецпроцедуры конецфункции`}],contains:[{begin:`\\(`,end:`\\)`,endsParent:!0,contains:[{className:`params`,begin:t,end:`,`,excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:`знач`,literal:r},contains:[i,a,o]},l]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:`1C:Enterprise`,case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:`разделительстраниц разделительстрок символтабуляции 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 файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек `,class:`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 типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты`,type:`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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив `,literal:r},contains:[u,f,l,d,i,a,o,s]}}t.exports=n})),aBt=s(((e,t)=>{function n(e){let t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=[`ALPHA`,`BIT`,`CHAR`,`CR`,`CRLF`,`CTL`,`DIGIT`,`DQUOTE`,`HEXDIG`,`HTAB`,`LF`,`LWSP`,`OCTET`,`SP`,`VCHAR`,`WSP`],i=e.COMMENT(/;/,/$/);return{name:`Augmented Backus-Naur Form`,illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:`operator`,match:/=\/?/},{scope:`attribute`,match:t.concat(n,/(?=\s*=)/)},i,{scope:`symbol`,match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:`symbol`,match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:`symbol`,match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:`symbol`,match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),oBt=s(((e,t)=>{function n(e){let t=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:t.concat(/"/,t.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}]}}t.exports=n})),sBt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat(`(\\.`,n,`)*`)),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={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`.split(`.`),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+/,r],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,a]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}t.exports=n})),cBt=s(((e,t)=>{function n(e){let t=`[A-Za-z](_?[A-Za-z0-9.])*`,n=`[]\\{\\}%#'"`,r=e.COMMENT(`--`,`$`),i={begin:`\\s+:\\s+`,end:`\\s*(:=|;|\\)|=>|$)`,illegal:n,contains:[{beginKeywords:`loop for declare others`,endsParent:!0},{className:`keyword`,beginKeywords:`not null constant access function procedure in out aliased exception`},{className:`type`,begin:t,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`.split(`.`),literal:[`True`,`False`]},contains:[r,{className:`string`,begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:`string`,begin:/'.'/},{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`symbol`,begin:`'`+t},{className:`title`,begin:`(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?`,end:`(is|$)`,keywords:`package body`,excludeBegin:!0,excludeEnd:!0,illegal:n},{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:[r,{className:`title`,begin:`(\\bwith\\s+)?\\b(function|procedure)\\s+`,end:`(\\(|\\s+|$)`,excludeBegin:!0,excludeEnd:!0,illegal:n},i,{className:`type`,begin:`\\breturn\\s+`,end:`(\\s+|;|$)`,keywords:`return`,excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:`type`,begin:`\\b(sub)?type\\s+`,end:`\\s+`,keywords:`type`,excludeBegin:!0,illegal:n},i]}}t.exports=n})),lBt=s(((e,t)=>{function n(e){let t={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_]+@`},r={className:`keyword`,begin:`<`,end:`>`,contains:[t,n]};return t.contains=[r],n.contains=[r],{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`.split(`.`),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_]+`}]}]}]},t,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?)?)`}]}}t.exports=n})),c7=s(((e,t)=>{function n(e){let t={className:`number`,begin:/[$%]\d+/},n={className:`number`,begin:/\b\d+/},r={className:`number`,begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:`Apache config`,aliases:[`apacheconf`],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`section`,begin:/<\/?/,end:/>/,contains:[r,{className:`number`,begin:/:\d{1,5}/},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`,t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}t.exports=n})),uBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:`params`,begin:/\(/,end:/\)/,contains:[`self`,e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),a=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`,i]}),e.HASH_COMMENT_MODE];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:t.concat(/\b/,t.either(/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)/),/\b/)},{className:`built_in`,begin:/^\s*return\b/},{className:`literal`,begin:/\b(text item delimiters|current application|missing value)\b/},{className:`keyword`,begin:t.concat(/\b/,t.either(/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/),/\b/)},{beginKeywords:`on`,illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}t.exports=n})),dBt=s(((e,t)=>{function n(e){let t=e.regex,n=`[A-Za-z_][0-9A-Za-z_]*`,r={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`.split(`.`)},i={className:`symbol`,begin:`\\$`+t.either(...`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`.split(`.`))},a={className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},o={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:r,contains:[]},s={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,a,e.REGEXP_MODE];let l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:`ArcGIS Arcade`,case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,{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:r,contains:l}]}]}],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:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}t.exports=n})),fBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={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})"/})]},s={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},l={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(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`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`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`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`.split(`.`),h=`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`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function r(e){let t={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`.split(`.`),_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`.split(`.`),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`]},r=n(e),i=r.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,r.name=`Arduino`,r.aliases=[`ino`],r.supersetOf=`cpp`,r}t.exports=r})),pBt=s(((e,t)=>{function n(e){let t={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)`},t,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}]}}t.exports=n})),mBt=s(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),l=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),u={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:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`style`},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`script`},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:u}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),hBt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:`^'{3,}[ \\t]*$`,relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:`strong`,begin:/\*{2}([^\n]+?)\*{2}/},{className:`strong`,begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:`strong`,begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:`strong`,begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:`emphasis`,begin:/_{2}([^\n]+?)_{2}/},{className:`emphasis`,begin:t.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}];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},{className:`bullet`,begin:`^(\\*+|-+|\\.+|[^\\n]+?::)\\s+`},{className:`symbol`,begin:`^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+`,relevance:10},...r,...i,...a,{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}]}}t.exports=n})),gBt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=[`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(r),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:t.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:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),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:t.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]+/}]}}t.exports=n})),_Bt=s(((e,t)=>{function n(e){let t={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:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),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*,`}]}}t.exports=n})),vBt=s(((e,t)=>{function n(e){let t=[`EndRegion`,`forcedef`,`forceref`,`ignorefunc`,`include`,`include-once`,`NoTrayIcon`,`OnAutoItStartRegister`,`pragma`,`Region`,`RequireAdmin`,`Tidy_Off`,`Tidy_On`,`Tidy_Parameters`],n={variants:[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#cs`,`#ce`),e.COMMENT(`#comments-start`,`#comments-end`)]},r={begin:`\\$[A-z0-9_]+`},i={className:`string`,variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`AutoIt`,case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:`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`,built_in:`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`,literal:`True False And Null Not Or Default`},contains:[n,r,i,a,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:t},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,keywords:{keyword:`include`},end:`$`,contains:[i,{className:`string`,variants:[{begin:`<`,end:`>`},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,n]},{className:`symbol`,begin:`@[A-z0-9_]+`},{beginKeywords:`Func`,end:`$`,illegal:`\\$|\\[|%`,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,contains:[r,i,a]}]}]}}t.exports=n})),yBt=s(((e,t)=>{function n(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]+`}]}}t.exports=n})),bBt=s(((e,t)=>{function n(e){return{name:`Awk`,keywords:{keyword:`BEGIN END if else while do for in break continue delete next nextfile function func exit|10`},contains:[{className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{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]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}t.exports=n})),xBt=s(((e,t)=>{function n(e){let t=e.UNDERSCORE_IDENT_RE,n={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`.split(`.`),built_in:[`anytype`,`boolean`,`byte`,`char`,`container`,`date`,`double`,`enum`,`guid`,`int`,`int64`,`long`,`real`,`short`,`str`,`utcdatetime`,`var`],literal:[`default`,`false`,`null`,`true`]},r={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:n};return{name:`X++`,aliases:[`x++`],keywords:n,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:`$`},r]}}t.exports=n})),SBt=s(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=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`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let l={match:/\\"/},u={className:`string`,begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},p=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].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},h=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],g=[`true`,`false`],_={match:/(\/[a-z._-]+)+/},v=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],y=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],b=`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`.split(`.`),x=`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`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:g,built_in:[...v,...y,`set`,`shopt`,...b,...x]},contains:[p,e.SHEBANG(),m,f,a,o,_,s,l,u,d,n]}}t.exports=n})),CBt=s(((e,t)=>{function n(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`.split(`.`)},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})`}]}}t.exports=n})),wBt=s(((e,t)=>{function n(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]}]}}t.exports=n})),TBt=s(((e,t)=>{function n(e){let t={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:[t]},t]}}t.exports=n})),EBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:/\batomic_[a-z]{3,6}\b/}]},o={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})"/})]},s={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},l={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(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f={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`.split(`.`),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`.split(`.`),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`},p=[l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:f,contains:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.concat([`self`]),relevance:0}]),relevance:0},h={begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C`,aliases:[`h`],keywords:f,disableAutodetect:!0,illegal:`=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:o,keywords:f}}}t.exports=n})),DBt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`string`,begin:/(#\d+)+/},o={className:`number`,begin:`\\b\\d+(\\.\\d+)?(DT|D|T)`,relevance:0},s={className:`string`,begin:`"`,end:`"`},l={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:`keyword`,3:`title.function`},contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:n,contains:[i,a,e.NUMBER_MODE]},...r]},u={match:[/OBJECT/,/\s+/,t.either(`Table`,`Form`,`Report`,`Dataport`,`Codeunit`,`XMLport`,`MenuSuite`,`Page`,`Query`),/\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:`false true`},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:`attribute`,relevance:0},i,a,o,s,e.NUMBER_MODE,u,l]}}t.exports=n})),OBt=s(((e,t)=>{function n(e){let t=[`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`],r=[`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:t,type:n,literal:r},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]}}t.exports=n})),kBt=s(((e,t)=>{function n(e){let t=`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`.split(`.`),n=[`shared`,`abstract`,`formal`,`default`,`actual`,`variable`,`late`,`native`,`deprecated`,`final`,`sealed`,`annotation`,`suppressWarnings`,`small`],r=[`doc`,`by`,`license`,`see`,`throws`,`tagged`],i={className:`subst`,excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{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=a,{name:`Ceylon`,keywords:{keyword:t.concat(n),meta:r},illegal:`\\$[^01]|#[^0-9a-fA-F]`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),{className:`meta`,begin:`@[a-z]\\w*(?::"[^"]*")?`}].concat(a)}}t.exports=n})),ABt=s(((e,t)=>{function n(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`.split(`.`),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:`->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>`}]}}t.exports=n})),jBt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&'`,n=`[#]?[`+t+`][`+t+`0-9/;:$#]*`,r=`def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord`,i={$pattern:n,built_in:r+` `+`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`},a={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?/}]},s={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}]},l={scope:`regex`,begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:`punctuation`,match:/,/,relevance:0},f=e.COMMENT(`;`,`$`,{relevance:0}),p={className:`literal`,begin:/\b(true|false|nil)\b/},m={begin:`\\[|(#::?`+n+`)?\\{`,end:`[\\]\\}]`,relevance:0},h={className:`symbol`,begin:`[:]{1,2}`+n},g={begin:`\\(`,end:`\\)`},_={endsWithParent:!0,relevance:0},v={keywords:i,className:`name`,begin:n,relevance:0,starts:_},y=[d,g,s,l,u,f,h,m,o,p,a];return g.contains=[{beginKeywords:r,keywords:{$pattern:n,keyword:r},end:`(\\[|#|\\d|"|:|\\{|\\)|\\(|$)`,contains:[{className:`title`,begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)},v,_],_.contains=y,m.contains=y,{name:`Clojure`,aliases:[`clj`,`edn`],illegal:/\S/,contains:[d,g,s,l,u,f,h,m,o,p]}}t.exports=n})),MBt=s(((e,t)=>{function n(e){return{name:`Clojure REPL`,contains:[{className:`meta.prompt`,begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:`clojure`}}]}}t.exports=n})),l7=s(((e,t)=>{function n(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]}}t.exports=n})),u7=s(((e,t)=>{var n=`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`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`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`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat([`then`,`unless`,`until`,`loop`,`by`,`when`,`and`,`or`,`is`,`isnt`,`not`]).filter((e=>t=>!e.includes(t))([`var`,`const`,`let`,`function`,`static`])),literal:r.concat([`yes`,`no`,`on`,`off`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_][0-9A-Za-z$_]*`,o={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},s=[e.BINARY_NUMBER_MODE,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]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:`regexp`,variants:[{begin:`///`,end:`///`,contains:[o,e.HASH_COMMENT_MODE]},{begin:`//[gim]{0,3}(?=\\W)`,relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:`@`+a},{subLanguage:`javascript`,excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=s;let l=e.inherit(e.TITLE_MODE,{begin:a}),u=`(\\(.*\\)\\s*)?\\B[-=]>`,d={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(s)}]},f={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`CoffeeScript`,aliases:[`coffee`,`cson`,`iced`],keywords:t,illegal:/\/\*/,contains:[...s,e.COMMENT(`###`,`###`),e.HASH_COMMENT_MODE,{className:`function`,begin:`^\\s*`+a+`\\s*=\\s*`+u,end:`[-=]>`,returnBegin:!0,contains:[l,d]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:`function`,begin:u,end:`[-=]>`,returnBegin:!0,contains:[d]}]},f,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}]}}t.exports=a})),d7=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`)},contains:[e.QUOTE_STRING_MODE,e.COMMENT(`\\(\\*`,`\\*\\)`),e.C_NUMBER_MODE,{className:`type`,excludeBegin:!0,begin:`\\|\\s*`,end:`\\w+`},{begin:/[-=]>/}]}}t.exports=n})),NBt=s(((e,t)=>{function n(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`}]}}t.exports=n})),PBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={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})"/})]},s={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},l={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(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`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`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`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`.split(`.`),h=`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`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),f7=s(((e,t)=>{function n(e){let t=`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:`primitive rsc_template`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`,starts:{end:`\\s*@?[\\w_][\\w_\\.:-]*`}}},{begin:`\\b(`+t.split(` `).join(`|`)+`)\\s+`,keywords:t,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}]}}t.exports=n})),p7=s(((e,t)=>{function n(e){let t=`(_?[ui](8|16|32|64|128))?`,n=`[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?`,r=`[A-Za-z_]\\w*(::\\w+)*(\\?|!)?`,i={$pattern:`[a-zA-Z_]\\w*[!?=]?`,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`},a={className:`subst`,begin:/#\{/,end:/\}/,keywords:i},o={className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},s={className:`template-variable`,variants:[{begin:`\\{\\{`,end:`\\}\\}`},{begin:`\\{%`,end:`%\\}`}],keywords:i};function l(e,t){let n=[{begin:e,end:t}];return n[0].contains=n,n}let u={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:`%[Qwi]?\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%[Qwi]?\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%[Qwi]?\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%[Qwi]?<`,end:`>`,contains:l(`<`,`>`)},{begin:`%[Qwi]?\\|`,end:`\\|`},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:`string`,variants:[{begin:`%q\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%q\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%q\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%q<`,end:`>`,contains:l(`<`,`>`)},{begin:`%q\\|`,end:`\\|`},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={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,a],variants:[{begin:`//[a-z]*`,relevance:0},{begin:`/(?!\\/)`,end:`/[a-z]*`}]}],relevance:0},p=[s,u,d,{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`%r\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%r\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%r\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%r<`,end:`>`,contains:l(`<`,`>`)},{begin:`%r\\|`,end:`\\|`}],relevance:0},f,{className:`meta`,begin:`@\\[`,end:`\\]`,contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`})]},o,e.HASH_COMMENT_MODE,{className:`class`,beginKeywords:`class module struct`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r}),{begin:`<`}]},{className:`class`,beginKeywords:`lib enum union`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})]},{beginKeywords:`annotation`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})],relevance:2},{className:`function`,beginKeywords:`def`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:`function`,beginKeywords:`fun macro`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:`,contains:[u,{begin:n}],relevance:0},{className:`number`,variants:[{begin:`\\b0b([01_]+)`+t},{begin:`\\b0o([0-7_]+)`+t},{begin:`\\b0x([A-Fa-f0-9_]+)`+t},{begin:`\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)`},{begin:`\\b([1-9][0-9_]*|0)`+t}],relevance:0}];return a.contains=p,s.contains=p.slice(1),{name:`Crystal`,aliases:[`cr`],keywords:i,contains:p}}t.exports=n})),m7=s(((e,t)=>{function n(e){let t=[`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`],r={keyword:`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`.split(`.`).concat(`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`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a={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},o={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},s={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},l=e.inherit(s,{illegal:/\n/}),u={className:`subst`,begin:/\{/,end:/\}/,keywords:r},d=e.inherit(u,{illegal:/\n/}),f={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},p={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]},m=e.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},d]});u.contains=[p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],d.contains=[m,f,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[o,p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},_=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,v={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,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`}},h,a,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,g,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+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[h,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}t.exports=n})),FBt=s(((e,t)=>{function n(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}]}}t.exports=n})),h7=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse();function d(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},d=/@-?\w[\w]*(-\w+)*/,f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+l.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...f,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...f,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=d})),IBt=s(((e,t)=>{function n(e){let t={$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_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))`,r=`\\\\(['"\\?\\\\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,};`,i={className:`number`,begin:`\\b`+n+`(L|u|U|Lu|LU|uL|UL)?`,relevance:0},a={className:`number`,begin:`\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|`+n+`(i|[fF]i|Li)`+`)`,relevance:0},o={className:`string`,begin:`'(`+r+`|.)`,end:`'`,illegal:`.`},s={className:`string`,begin:`"`,contains:[{begin:r,relevance:0}],end:`"[cwd]?`},l={className:`string`,begin:`[rq]"`,end:`"[cwd]?`,relevance:5},u={className:`string`,begin:"`",end:"`[cwd]?"},d={className:`string`,begin:`x"[\\da-fA-F\\s\\n\\r]*"[cwd]?`,relevance:10},f={className:`string`,begin:`q"\\{`,end:`\\}"`},p={className:`meta`,begin:`^#!`,end:`$`,relevance:5},m={className:`meta`,begin:`#(line)`,end:`$`,relevance:5},h={className:`keyword`,begin:`@[a-zA-Z_][a-zA-Z_\\d]*`},g=e.COMMENT(`\\/\\+`,`\\+\\/`,{contains:[`self`],relevance:10});return{name:`D`,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,s,l,u,f,a,i,o,p,m,h]}}t.exports=n})),LBt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={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}]},a={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}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),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}]},l={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),f=e.inherit(u,{contains:[]});l.contains.push(f),u.contains.push(d);let p=[n,s];return[l,u,d,f].forEach(e=>{e.contains=e.contains.concat(p)}),p=p.concat(l,u),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:p},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:p}]}]},n,a,l,u,{className:`quote`,begin:`^>\\s+`,contains:p,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),g7=s(((e,t)=>{function n(e){let t={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`}]},n={className:`subst`,variants:[{begin:/\$\{/,end:/\}/}],keywords:`true false null this is new super`},r={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,t,n]},{begin:`"""`,end:`"""`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[r,i];let a=`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`.split(`.`),o=a.map(e=>`${e}?`);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`.split(`.`),built_in:a.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]},r,{className:`meta`,begin:`@[A-Za-z]+`},{begin:`=>`}]}}t.exports=n})),_7=s(((e,t)=>{function n(e){let t=`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`.split(`.`),n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:`meta`,variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={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_]*/}]};return{name:`Delphi`,aliases:[`dpr`,`dfm`,`pas`,`pascal`],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,a,{begin:e.IDENT_RE+`\\s*=\\s*class\\s*\\(`,returnBegin:!0,contains:[e.TITLE_MODE]},{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:t,contains:[i,o,r].concat(n)},r].concat(n)},r].concat(n)}}t.exports=n})),RBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}t.exports=n})),zBt=s(((e,t)=>{function n(e){let t={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:[t],relevance:0}}]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[t]}]}}t.exports=n})),BBt=s(((e,t)=>{function n(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`.split(`.`),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]?/})]}}t.exports=n})),VBt=s(((e,t)=>{function n(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:`{function n(e){let t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:`Batch file (DOS)`,aliases:[`bat`,`cmd`],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:[`if`,`else`,`goto`,`for`,`in`,`do`,`call`,`exit`,`not`,`exist`,`errorlevel`,`defined`,`equ`,`neq`,`lss`,`leq`,`gtr`,`geq`],built_in:`prn.nul.lpt3.lpt2.lpt1.con.com4.com3.com2.com1.aux.shift.cd.dir.echo.setlocal.endlocal.set.pause.copy.append.assoc.at.attrib.break.cacls.cd.chcp.chdir.chkdsk.chkntfs.cls.cmd.color.comp.compact.convert.date.dir.diskcomp.diskcopy.doskey.erase.fs.find.findstr.format.ftype.graftabl.help.keyb.label.md.mkdir.mode.more.move.path.pause.print.popd.pushd.promt.rd.recover.rem.rename.replace.restore.rmdir.shift.sort.start.subst.time.title.tree.type.ver.verify.vol.ping.net.ipconfig.taskkill.xcopy.ren.del`.split(`.`)},contains:[{className:`variable`,begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:`function`,begin:{className:`symbol`,begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`,relevance:0}.begin,end:`goto:eof`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),t]},{className:`number`,begin:`\\b\\d+`,relevance:0},t]}}t.exports=n})),UBt=s(((e,t)=>{function n(e){return{keywords:`dsconfig`,contains:[{className:`keyword`,begin:`^dsconfig`,end:/\s/,excludeEnd:!0,relevance:10},{className:`built_in`,begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:`!@#$%^&*()`,relevance:10},{className:`built_in`,begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:`string`,begin:/"/,end:/"/},{className:`string`,begin:/'/,end:/'/},{className:`string`,begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:`string`,begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}t.exports=n})),WBt=s(((e,t)=>{function n(e){let t={className:`string`,variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:`((u8?|U)|L)?"`}),{begin:`(u8?|U)?R"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{begin:`'\\\\?.`,end:`'`,illegal:`.`}]},n={className:`number`,variants:[{begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)`},{begin:e.C_NUMBER_RE}],relevance:0},r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef ifdef ifndef`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[e.inherit(t,{className:`string`}),{className:`string`,begin:`<`,end:`>`,illegal:`\\n`}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:`variable`,begin:/&[a-z\d_]*\b/};return{name:`Device Tree`,contains:[{className:`title.class`,begin:/^\/(?=\s*\{)/,relevance:10},i,{className:`keyword`,begin:`/[a-z][a-z\\d-]*/`},{className:`symbol`,begin:`^\\s*[a-zA-Z_][a-zA-Z\\d_]*:`},{className:`title.class`,begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:`attr`,3:`operator`}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:`attr`},{className:`params`,relevance:0,begin:`<`,end:`>`,contains:[n,i]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,{scope:`punctuation`,relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+`::`,keywords:``}]}}t.exports=n})),GBt=s(((e,t)=>{function n(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`}]}}t.exports=n})),v7=s(((e,t)=>{function n(e){let t=e.COMMENT(/\(\*/,/\*\)/);return{name:`Extended Backus-Naur Form`,illegal:/\S/,contains:[t,{className:`attribute`,begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:`meta`,begin:/\?.*\?/},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}t.exports=n})),KBt=s(((e,t)=>{function n(e){let t=e.regex,n=`[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?`,r={$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`.split(`.`),literal:[`false`,`nil`,`true`]},i={className:`subst`,begin:/#\{/,end:/\}/,keywords:r},a={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},o={match:/\\[\s\S]/,scope:`char.escape`,relevance:0},s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],l=e=>({scope:`char.escape`,begin:t.concat(/\\/,e),relevance:0}),u={className:`string`,begin:`~[a-z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end),o,i]}))},d={className:`string`,begin:`~[A-Z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end)]}))},f={className:`regex`,variants:[{begin:`~r(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),o,i]}))},{begin:`~R(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]}))}]},p={className:`string`,contains:[e.BACKSLASH_ESCAPE,i],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:/"/}]},m={className:`function`,beginKeywords:`def defp defmacro defmacrop`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},h=e.inherit(m,{className:`class`,beginKeywords:`defimpl defmodule defprotocol defrecord`,end:/\bdo\b|$|;/}),g=[p,f,d,u,e.HASH_COMMENT_MODE,h,m,{begin:`::`},{className:`symbol`,begin:`:(?![\\s:])`,contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:`symbol`,begin:n+`:(?!:)`,relevance:0},{className:`title.class`,begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},a,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))`}];return i.contains=g,{name:`Elixir`,aliases:[`ex`,`exs`],keywords:r,contains:g}}t.exports=n})),qBt=s(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`--`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},n={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},r={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},t]},i={begin:/\{/,end:/\}/,contains:r.contains};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:[r,t],illegal:`\\W\\.|;`},{begin:`import`,end:`$`,keywords:`import as exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`type`,end:`$`,keywords:`type alias`,contains:[n,r,i,t]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,t]},{begin:`port`,end:`$`,keywords:`port`,contains:[t]},{className:`string`,begin:`'\\\\?.`,end:`'`,illegal:`.`},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),t,{begin:`->|<-`}],illegal:/;/}}t.exports=n})),y7=s(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"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`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},l=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],u={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},d={className:`string`,contains:[e.BACKSLASH_ESCAPE,u],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:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f=`[0-9](_?[0-9])*`,p={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${f}))?([eE][+-]?(${f})|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`}]},m={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},h=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{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:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[d,{begin:n}],relevance:0},p,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,u],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(s,l),relevance:0}].concat(s,l);u.contains=h,m.contains=h;let g=[{begin:/^\s*=>/,starts:{end:`$`,contains:h}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:h}}];return l.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(g,l,h)}}t.exports=n})),b7=s(((e,t)=>{function n(e){return{name:`ERB`,subLanguage:`xml`,contains:[e.COMMENT(`<%#`,`%>`),{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),x7=s(((e,t)=>{function n(e){let t=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:t.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}]}}t.exports=n})),JBt=s(((e,t)=>{function n(e){let t=`[a-z'][a-zA-Z0-9_']*`,n=`(`+t+`:`+t+`|`+t+`)`,r={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(`%`,`$`),a={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+`+t+`/\\d+`},s={begin:n+`\\(`,end:`\\)`,returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:`\\(`,end:`\\)`,endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},u={begin:`\\b_([A-Z][A-Za-z0-9_]*)?`,relevance:0},d={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}|)|.)/},m={scope:`string`,match:/"""("*)(?!")[\s\S]*?"""\1/},h={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:/#/}]},g={beginKeywords:`fun receive if try case maybe`,end:`end`,keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:``}),g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];let _=[i,o,g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];s.contains[1].contains=_,l.contains=_,f.contains[1].contains=_;let v=[`-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`],y={className:`params`,begin:`\\(`,end:`\\)`,contains:_};return{name:`Erlang`,aliases:[`erl`],keywords:r,illegal:`(`,returnBegin:!0,illegal:`\\(|#|//|/\\*|\\\\|:|;`,contains:[y,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:`;|\\.`,keywords:r,contains:_}},i,{begin:`^-`,end:`\\.`,relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:`-`+e.IDENT_RE,keyword:v.map(e=>`${e}|1.5`).join(` `)},contains:[y,h,m,e.QUOTE_STRING_MODE]},a,h,m,e.QUOTE_STRING_MODE,f,u,d,l,p,{begin:/\.$/}]}}t.exports=n})),S7=s(((e,t)=>{function n(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`.split(`,`)},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/})]}}t.exports=n})),YBt=s(((e,t)=>{function n(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}}t.exports=n})),XBt=s(((e,t)=>{function n(e){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,{className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:`string`,variants:[{begin:`"`,end:`"`}]},{className:`function`,beginKeywords:`def`,end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:`title`,relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]},e.C_NUMBER_MODE]}}t.exports=n})),ZBt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r={variants:[e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`^C[ ]`,`$`,{relevance:0}),e.COMMENT(`^C$`,`$`,{relevance:0})]},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,o={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:t.concat(/\b\d+/,a,i)},{begin:t.concat(/\.\d+/,a,i)}],relevance:0},s={className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]};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`.split(`,`),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`.split(`.`)},illegal:/\/\*/,contains:[{className:`string`,relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}t.exports=n})),QBt=s(((e,t)=>{function n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function r(e){return e?typeof e==`string`?e:e.source:null}function i(e){return a(`(?=`,e,`)`)}function a(...e){return e.map(e=>r(e)).join(``)}function o(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s(...e){return`(`+(o(e).capture?``:`?:`)+e.map(e=>r(e)).join(`|`)+`)`}function l(e){let t=`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`.split(`.`),r={scope:`keyword`,match:/\b(yield|return|let|do|match|use)!/},o=[`if`,`else`,`endif`,`line`,`nowarn`,`light`,`r`,`i`,`I`,`load`,`time`,`help`,`quit`],l=[`true`,`false`,`null`,`Some`,`None`,`Ok`,`Error`,`infinity`,`infinityf`,`nan`,`nanf`],u=[`__LINE__`,`__SOURCE_DIRECTORY__`,`__SOURCE_FILE__`],d=`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`.split(`.`),f={keyword:t,literal:l,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`.split(`.`),"variable.constant":u},p={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:[`self`]}),e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,h={scope:`variable`,begin:/``/,end:/``/},g=/\B('|\^)/,_={scope:`symbol`,variants:[{match:a(g,/``.*?``/)},{match:a(g,e.UNDERSCORE_IDENT_RE)}],relevance:0},v=function({includeEqual:e}){let t;t=e?`!%&*+-/<=>@^|~?`:`!%&*+-/<>@^|~?`;let r=a(`[`,...Array.from(t).map(n),`]`),o=s(r,/\./);return{scope:`operator`,match:s(s(a(a(o,i(o)),o,`*`),a(r,`+`)),/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},y=v({includeEqual:!0}),b=v({includeEqual:!1}),x=function(t,n){return{begin:a(t,i(a(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:i(s(/\n/,/=/)),relevance:0,keywords:e.inherit(f,{type:d}),contains:[p,_,e.inherit(h,{scope:null}),b]}},S=x(/:/,`operator`),C=x(/\bof\b/,`keyword`),w={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:`keyword`,4:`title.class`},end:i(/\(|=|$/),keywords:f,contains:[p,e.inherit(h,{scope:null}),_,{scope:`operator`,match:/<|>/},S]},T={scope:`computation-expression`,match:/\b[_a-z]\w*(?=\s*\{)/},E={begin:[/^\s*/,a(/#/,s(...o)),/\b/],beginScope:{2:`meta`},end:i(/\s|$/)},D={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},O={scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},k={scope:`string`,begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},A={scope:`string`,begin:/"""/,end:/"""/,relevance:2},j={scope:`subst`,begin:/\{/,end:/\}/,keywords:f},M={scope:`string`,begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,j]},ee={scope:`string`,begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,j]},te={scope:`string`,begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},j],relevance:2},ne={scope:`string`,match:a(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return j.contains=[ee,M,k,O,ne,r,p,h,S,T,E,D,_,y],{name:`F#`,aliases:[`fs`,`f#`],keywords:f,illegal:/\/\*/,classNameAliases:{"computation-expression":`keyword`},contains:[r,{variants:[te,ee,M,A,k,O,ne]},p,h,w,{scope:`meta`,begin:/\[\]/,relevance:2,contains:[h,A,k,O,ne,D]},C,S,T,E,D,_,y]}}t.exports=l})),$Bt=s(((e,t)=>{function n(e){let t=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`},r={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:`symbol`,variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},a={className:`comment`,variants:[{begin:`'`,end:`'`},{begin:`"`,end:`"`}],illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},o={begin:`/`,end:`/`,keywords:n,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:`$`,endsWithParent:!0,contains:[a,o,{className:`comment`,begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),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,l]},{beginKeywords:`table`,end:`;`,returnBegin:!0,contains:[{beginKeywords:`table`,end:`$`,contains:[l]},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_]+/},r,i]},e.C_NUMBER_MODE,i]}}t.exports=n})),C7=s(((e,t)=>{function n(e){let t={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(`@`,`@`),r={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}]},a=[{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},s=function(t,r,i){let s=e.inherit({className:`function`,beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(a)},{});return s.contains.push(o),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:`built_in`,begin:`\\b(`+t.built_in.split(` `).join(`|`)+`)\\b`},u={className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:`built_in`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,d,u,`self`]};return d.contains.push(f),{name:`GAUSS`,aliases:[`gss`],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,u,r,{className:`keyword`,begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s(`proc keyword`,`;`),s(`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},d,i]}}t.exports=n})),eVt=s(((e,t)=>{function n(e){let t=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`]},r=/\b/;function i(e,t){if(e.index===0)return;let n=e.input[e.index-1];n>=`0`&&n<=`9`||n!==`_`&&t.ignoreMatch()}let a=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,l=/O\s*\d+/,u=/O<.+>/,d=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/;return{name:`G-code (ISO 6983)`,aliases:[`nc`],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:`title.function`,variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:`symbol`,variants:[{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:t.concat(r,u)},{begin:u,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:`operator`,match:/^N\s*\d+/},{scope:`variable`,match:/-?#\s*\d+/},{scope:`property`,variants:[{match:t.concat(r,d,a)},{begin:t.concat(d,a),"on:begin":i}]},{scope:`params`,variants:[{match:t.concat(r,f,a)},{begin:t.concat(f,a),"on:begin":i}]}]}}t.exports=n})),tVt=s(((e,t)=>{function n(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]}}t.exports=n})),nVt=s(((e,t)=>{function n(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:`$`}]}}t.exports=n})),rVt=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`),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`.split(`.`),"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`.split(`.`)},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),iVt=s(((e,t)=>{function n(e){let t={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:t,illegal:`{function n(e){return{name:`Golo`,keywords:{keyword:`println.readln.print.import.module.function.local.return.let.var.while.for.foreach.times.in.case.when.match.with.break.continue.augment.augmentation.each.find.filter.reduce.if.then.else.otherwise.try.catch.finally.raise.throw.orIfNull.DynamicObject|10.DynamicVariable.struct.Observable.map.set.vector.list.array`.split(`.`),literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`@[A-Za-z]+`}]}}t.exports=n})),oVt=s(((e,t)=>{function n(e){return{name:`Gradle`,case_insensitive:!0,keywords:`task.project.allprojects.subprojects.artifacts.buildscript.configurations.dependencies.repositories.sourceSets.description.delete.from.into.include.exclude.source.classpath.destinationDir.includes.options.sourceCompatibility.targetCompatibility.group.flatDir.doLast.doFirst.flatten.todir.fromdir.ant.def.abstract.break.case.catch.continue.default.do.else.extends.final.finally.for.if.implements.instanceof.native.new.private.protected.public.return.static.switch.synchronized.throw.throws.transient.try.volatile.while.strictfp.package.import.false.null.super.this.true.antlrtask.checkstyle.codenarc.copy.boolean.byte.char.class.double.float.int.interface.long.short.void.compile.runTime.file.fileTree.abs.any.append.asList.asWritable.call.collect.compareTo.count.div.dump.each.eachByte.eachFile.eachLine.every.find.findAll.flatten.getAt.getErr.getIn.getOut.getText.grep.immutable.inject.inspect.intersect.invokeMethods.isCase.join.leftShift.minus.multiply.newInputStream.newOutputStream.newPrintWriter.newReader.newWriter.next.plus.pop.power.previous.print.println.push.putAt.read.readBytes.readLines.reverse.reverseEach.round.size.sort.splitEachLine.step.subMap.times.toInteger.toList.tokenize.upto.waitForOrKill.withPrintWriter.withReader.withStream.withWriter.withWriterAppend.write.writeLine`.split(`.`),contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}t.exports=n})),sVt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),cVt=s(((e,t)=>{function n(e,t={}){return t.variants=e,t}function r(e){let t=e.regex,r=`[A-Za-z0-9_$]+`,i=n([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]})]),a={className:`regexp`,begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=n([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:`\\$/`,end:`/\\$`,relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:`string`}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`Groovy`,keywords:{"variable.language":`this super`,literal:`true false null`,type:[`byte`,`short`,`char`,`int`,`long`,`boolean`,`float`,`double`,`void`],keyword:`def.as.in.assert.trait.abstract.static.volatile.transient.public.private.protected.synchronized.final.class.interface.enum.if.else.for.while.switch.case.break.default.continue.throw.throws.try.catch.finally.implements.extends.new.import.package.return.instanceof.var`.split(`.`)},contains:[e.SHEBANG({binary:`groovy`,relevance:10}),i,s,a,o,l,{className:`meta`,begin:`@[A-Za-z]+`,relevance:0},{className:`attr`,begin:r+`[ ]*:`,relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,`self`]},{className:`symbol`,begin:`^[ ]*`+t.lookahead(r+`:`),excludeBegin:!0,end:r+`:`,relevance:0}],illegal:/#|<\//}}t.exports=r})),lVt=s(((e,t)=>{function n(e){return{name:`HAML`,case_insensitive:!0,contains:[{className:`meta`,begin:`^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$`,relevance:10},e.COMMENT(`^\\s*(!=#|=#|-#|/).*$`,null,{relevance:0}),{begin:`^\\s*(-|=|!=)(?!#)`,end:/$/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0},{className:`tag`,begin:`^\\s*%`,contains:[{className:`selector-tag`,begin:`\\w+`},{className:`selector-id`,begin:`#[\\w-]+`},{className:`selector-class`,begin:`\\.[\\w-]+`},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:`:\\w+\\s*=>`,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}]}}t.exports=n})),uVt=s(((e,t)=>{function n(e){let t=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`.split(`.`)},r={$pattern:/[\w.\/]+/,literal:[`true`,`false`,`undefined`,`null`]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,u=t.either(i,a,o,s),d=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(l,u))),f=t.concat(`(`,o,`|`,s,`)(?==)`),p={begin:d},m=e.inherit(p,{keywords:r}),h={begin:/\(/,end:/\)/},g={className:`attr`,begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,h]}}},_={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:`as`},end:/\|/,contains:[{begin:/\w+/}]},g,m,h],returnEnd:!0};h.contains=[e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{end:/\)/})})];let v=e.inherit(p,{keywords:n,className:`name`,starts:e.inherit(_,{end:/\}\}/})}),y=e.inherit(p,{keywords:n,className:`name`}),b=e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{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:[v],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:`xml`}},{className:`template-tag`,begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:`template-tag`,begin:/\{\{#/,end:/\}\}/,contains:[v]},{className:`template-tag`,begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:`else`},{className:`template-tag`,begin:/\{\{(?=else if)/,end:/\}\}/,keywords:`else if`},{className:`template-tag`,begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:`template-variable`,begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[b]}]}}t.exports=n})),dVt=s(((e,t)=>{function n(e){let t=`([0-9]_*)+`,n=`([0-9a-fA-F]_*)+`,r=`([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]\`|{}]|[_:"']))(\\p{S}|\\p{P}))`,i={variants:[e.COMMENT(`--+`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},a={className:`meta`,begin:/\{-#/,end:/#-\}/},o={className:`meta`,begin:`^#`,end:`$`},s={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},l={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[a,o,{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},e.inherit(e.TITLE_MODE,{begin:`[_a-z][\\w']*`}),i]},u={begin:/\{/,end:/\}/,contains:l.contains},d={className:`number`,relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](([0-7]_*)+)\\b`},{match:`\\b0[bB](([01]_*)+)\\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:[l,i],illegal:`\\W\\.|;`},{begin:`\\bimport\\b`,end:`$`,keywords:`import qualified as hiding`,contains:[l,i],illegal:`\\W\\.|;`},{className:`class`,begin:`^(\\s*)?(class|instance)\\b`,end:`where`,keywords:`class family instance where`,contains:[s,l,i]},{className:`class`,begin:`\\b(data|(new)?type)\\b`,end:`$`,keywords:`data family type newtype deriving`,contains:[a,s,l,u,i]},{beginKeywords:`default`,end:`$`,contains:[s,l,i]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,i]},{begin:`\\bforeign\\b`,end:`$`,keywords:`foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe`,contains:[s,e.QUOTE_STRING_MODE,i]},{className:`meta`,begin:`#!\\/usr\\/bin\\/env runhaskell`,end:`$`},a,o,{scope:`string`,begin:/'(?=\\?.')/,end:/'/,contains:[{scope:`char.escape`,match:/\\./}]},e.QUOTE_STRING_MODE,d,s,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),{begin:`(?!-)${r}--+|--+(?!-)${r}`},i,{begin:`->|<-`}]}}t.exports=n})),fVt=s(((e,t)=>{function n(e){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:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:`variable`,begin:`\\$[a-zA-Z_$][a-zA-Z0-9_$]*`},{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:/<\//}}t.exports=n})),pVt=s(((e,t)=>{function n(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]}}t.exports=n})),mVt=s(((e,t)=>{function n(e){let t=e.regex,n=`HTTP/([32]|1\\.[01])`,r={className:`attribute`,begin:t.concat(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[r,{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:i}},{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:i}},e.inherit(r,{relevance:0})]}}t.exports=n})),hVt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&#'`,n=`[`+t+`][`+t+`0-9/;:]*`,r={$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={begin:n,relevance:0},a={className:`number`,begin:`[-+]?\\d+(\\.\\d+)?`,relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={className:`literal`,begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:`[\\[\\{]`,end:`[\\]\\}]`,relevance:0},d={className:`comment`,begin:`\\^`+n},f=e.COMMENT(`\\^\\{`,`\\}`),p={className:`symbol`,begin:`[:]{1,2}`+n},m={begin:`\\(`,end:`\\)`},h={endsWithParent:!0,relevance:0},g={className:`name`,relevance:0,keywords:r,begin:n,starts:h},_=[m,o,d,f,s,p,u,a,l,i];return m.contains=[e.COMMENT(`comment`,``),g,h],h.contains=_,u.contains=_,{name:`Hy`,aliases:[`hylang`],illegal:/\S/,contains:[e.SHEBANG(),m,o,d,f,s,p,u,a,l]}}t.exports=n})),w7=s(((e,t)=>{function n(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`]}]}}t.exports=n})),gVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={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:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(l,`(\\s*\\.\\s*`,l,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),_Vt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],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}),a]}}t.exports=n})),vVt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*`,n={className:`number`,begin:e.NUMBER_RE,relevance:0},r={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},i={className:`doctag`,begin:`\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b`,relevance:0},a={variants:[{className:`comment`,begin:`//`,end:`$`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]},{className:`comment`,begin:`/\\*`,end:`\\*/`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]}]},o={$pattern:t,keyword:`and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока `,built_in:`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 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 `,class:`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 ВызовСпособ ИмяОтчета РеквЗнач `,literal:`null true false nil `},s={begin:`\\.\\s*`+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},l={className:`type`,begin:`:[ \\t]*(`+`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`.replace(/\s/g,`|`)+`)`,end:`[ \\t]*=`,excludeEnd:!0},u={className:`variable`,keywords:o,begin:t,relevance:0,contains:[l,s]},d=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(`;return{name:`ISBL`,case_insensitive:!0,keywords:o,illegal:`\\$|\\?|%|,|;$|~|#|@|{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=n+o(`(?:<`+n+`~~~(?:\\s*,\\s*`+n+`~~~)*>)?`,/~~~/g,2),i={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`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},s={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},l={className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:`type`,3:`variable`,5:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`new throw return else`,relevance:0},{begin:[`(?:`+r+`\\s+)`,e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:`title.function`},keywords:i,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,s]}}t.exports=s})),bVt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`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`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\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:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.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}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.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:{_:[...a,...o]}},ee={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function re(e){return t.concat(`(?!`,e.join(`|`),`)`)}let ie={match:t.concat(/\b/,re([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ae={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},oe={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},se=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,ce={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(se)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},ce,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:se,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},te,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ae,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},ie,ne,j,oe,{match:/\$[(.]/}]}}t.exports=d})),xVt=s(((e,t)=>{function n(e){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,{className:`params`,begin:/--[\w\-=\/]+/},{className:`function`,begin:/:[\w\-.]+/,relevance:0},{className:`string`,begin:/\B([\/.])[\w\-.\/=]+/},{className:`params`,begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:/[\w-]+/}]}],relevance:0}]}}t.exports=n})),SVt=s(((e,t)=>{function n(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=n})),CVt=s(((e,t)=>{function n(e){let t=`[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*`,n={$pattern:t,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`.split(`.`),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.π.ℯ`.split(`.`),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`.split(`.`)},r={keywords:n,illegal:/<\//},i={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},a={className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o={className:`subst`,begin:/\$\(/,end:/\)/,keywords:n},s={className:`variable`,begin:`\\$`+t},l={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],begin:"`",end:"`"},d={className:`meta`,begin:`@`+t};return r.name=`Julia`,r.contains=[i,a,l,u,d,{className:`comment`,variants:[{begin:`#=`,end:`=#`,relevance:10},{begin:`#`,end:`$`}]},e.HASH_COMMENT_MODE,{className:`keyword`,begin:`\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b`},{begin:/<:/}],o.contains=r.contains,r}t.exports=n})),wVt=s(((e,t)=>{function n(e){return{name:`Julia REPL`,contains:[{className:`meta.prompt`,begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:`julia`}}],aliases:[`jldoctest`]}}t.exports=n})),TVt=s(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let t={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`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let l={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},u={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},d=a,f=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=p;return m.variants[1].contains=[p],p.variants[1].contains=[m],{name:`Kotlin`,aliases:[`kt`,`kts`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,f,n,r,l,u,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin://,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,e.C_LINE_COMMENT_MODE,f],relevance:0},e.C_LINE_COMMENT_MODE,f,l,u,s,e.C_NUMBER_MODE]},f]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,u]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:` -`},d]}}t.exports=o})),EVt=s(((e,t)=>{function n(e){let t=`<\\?(lasso(script)?|=)`,n=`\\]|\\?>`,r={$pattern:`[a-zA-Z_][\\w.]*|&[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`},i=e.COMMENT(``,{relevance:0}),a={className:`meta`,begin:`\\[noprocess\\]`,starts:{end:`\\[/noprocess\\]`,returnEnd:!0,contains:[i]}},o={className:`meta`,begin:`\\[/noprocess|`+t},s=[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:`[#$][a-zA-Z_][\\w.]*`},{begin:`#`,end:`\\d+`,illegal:`\\W`}]},{className:`type`,begin:`::\\s*`,end:`[a-zA-Z_][\\w.]*`,illegal:`\\W`},{className:`params`,variants:[{begin:`-(?!infinity)[a-zA-Z_][\\w.]*`,relevance:0},{begin:`(\\.\\.\\.)`}]},{begin:/(->|\.)\s*/,relevance:0,contains:[{className:`symbol`,begin:`'[a-zA-Z_][\\w.]*'`}]},{className:`class`,beginKeywords:`define`,returnEnd:!0,end:`\\(|=>`,contains:[e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)`})]}];return{name:`Lasso`,aliases:[`ls`,`lassoscript`],case_insensitive:!0,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[|`+t,returnEnd:!0,relevance:0,contains:[i]}},a,o,{className:`meta`,begin:`\\[no_square_brackets`,starts:{end:`\\[/no_square_brackets\\]`,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[noprocess\\]|`+t,returnEnd:!0,contains:[i]}},a,o].concat(s)}},{className:`meta`,begin:`\\[`,relevance:0},{className:`meta`,begin:`^#!`,end:`lasso9$`,relevance:10}].concat(s)}}t.exports=n})),DVt=s(((e,t)=>{function n(e){let t=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(e=>e+`(?![a-zA-Z@:_])`)),n=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(e=>e+`(?![a-zA-Z:_])`).join(`|`)),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],i=[{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]/}],a=[{className:`keyword`,begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:n},{endsParent:!0,variants:i},{endsParent:!0,relevance:0,variants:r}]},{className:`params`,relevance:0,begin:/#+\d?/},{variants:i},{className:`built_in`,relevance:0,begin:/[$&^_]/},{className:`meta`,begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:`$`,relevance:10},e.COMMENT(`%`,`$`,{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:[`self`,...a]},s=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...a]}),l={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...a]},u={begin:/\s+/,relevance:0},d=[s],f=[l],p=function(e,t){return{contains:[u],starts:{relevance:0,contains:e,starts:t}}},m=function(e,t){return{begin:`\\\\`+e+`(?![a-zA-Z@:_])`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\`+e},relevance:0,contains:[u],starts:t}},h=function(t,n){return e.inherit({begin:`\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{`+t+`\\})`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\begin`},relevance:0},p(d,n))},g=(t=`string`)=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),_=function(e){return{className:`string`,end:`(?=\\\\end\\{`+e+`\\})`}},v=(e=`string`)=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:[`self`]}]}]}});return{name:`LaTeX`,aliases:[`tex`],contains:[...[`verb`,`lstinline`].map(e=>m(e,{contains:[g()]})),m(`mint`,p(d,{contains:[g()]})),m(`mintinline`,p(d,{contains:[v(),g()]})),m(`url`,{contains:[v(`link`),v(`link`)]}),m(`hyperref`,{contains:[v(`link`)]}),m(`href`,p(f,{contains:[v(`link`)]})),...[].concat(...[``,`\\*`].map(e=>[h(`verbatim`+e,_(`verbatim`+e)),h(`filecontents`+e,p(d,_(`filecontents`+e))),...[``,`B`,`L`].map(t=>h(t+`Verbatim`+e,p(f,_(t+`Verbatim`+e))))])),h(`minted`,p(f,p(d,_(`minted`)))),...a]}}t.exports=n})),OVt=s(((e,t)=>{function n(e){return{name:`LDIF`,contains:[{className:`attribute`,match:`^dn(?=:)`,relevance:10},{className:`attribute`,match:`^\\w+(?=:)`},{className:`literal`,match:`^-`},e.HASH_COMMENT_MODE]}}t.exports=n})),kVt=s(((e,t)=>{function n(e){let t=/([A-Za-z_][A-Za-z_0-9]*)?/,n={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:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:`keyword`},contains:[n]};return n.contains.unshift(r),{name:`Leaf`,contains:[{match:[/#+/,t,/(?=\()/],scope:{1:`punctuation`,2:`keyword`},starts:{contains:[{match:/\:/,scope:`punctuation`}]},contains:[n]},{match:[/#+/,t,/:?/],scope:{1:`punctuation`,2:`keyword`,3:`punctuation`}}]}}t.exports=n})),AVt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse(),d=s.concat(l).sort().reverse();function f(e){let t=n(e),r=d,i=`([\\w-]+|@\\{[\\w-]+\\})`,f=[],p=[],m=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},h=function(e,t,n){return{className:e,begin:t,relevance:n}},g={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},_={begin:`\\(`,end:`\\)`,contains:p,keywords:g,relevance:0};p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m(`'`),m(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.HEXCOLOR,_,h(`variable`,`@@?[\\w-]+`,10),h(`variable`,`@\\{[\\w-]+\\}`),h(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:`[\\w-]+\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let v=p.concat({begin:/\{/,end:/\}/,contains:f}),y={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(p)},b={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:p}}]},x={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:g,returnEnd:!0,contains:p,relevance:0}},S={className:`variable`,variants:[{begin:`@[\\w-]+\\s*:`,relevance:15},{begin:`@[\\w-]+`}],starts:{end:`[;}]`,returnEnd:!0,contains:v}},C={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h(`keyword`,`all\\b`),h(`variable`,`@\\{[\\w-]+\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,h(`selector-tag`,i,0),h(`selector-id`,`#`+i),h(`selector-class`,`\\.`+i,0),h(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+l.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:`!important`},t.FUNCTION_DISPATCH]},w={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[C]};return f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,S,w,b,C,y,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:f}}t.exports=f})),jVt=s(((e,t)=>{function n(e){let t=`[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*`,n=`\\|[^]*?\\|`,r=`(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?`,i={className:`literal`,begin:`\\b(t{1}|nil)\\b`},a={className:`number`,variants:[{begin:r,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)\\(`+r+` +`+r,end:`\\)`}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={begin:`\\*`,end:`\\*`},u={className:`symbol`,begin:`[:&]`+t},d={begin:t,relevance:0},f={begin:n},p={contains:[a,o,l,u,{begin:`\\(`,end:`\\)`,contains:[`self`,i,o,a,d]},d],variants:[{begin:"['`]\\(",end:`\\)`},{begin:`\\(quote `,end:`\\)`,keywords:{name:`quote`}},{begin:`'`+n}]},m={variants:[{begin:`'`+t},{begin:`#'`+t+`(::`+t+`)*`}]},h={begin:`\\(\\s*`,end:`\\)`},g={endsWithParent:!0,relevance:0};return h.contains=[{className:`name`,variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,m,h,i,a,o,s,l,u,f,d],{name:`Lisp`,illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,p,m,h,d]}}t.exports=n})),MVt=s(((e,t)=>{function n(e){let t={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(`[^:]//`,`$`)],r=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:[t,{className:`keyword`,begin:`\\bend\\sif\\b`},{className:`function`,beginKeywords:`function`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`function`,begin:`\\bend\\s+`,end:`$`,keywords:`end`,contains:[i,r],relevance:0},{beginKeywords:`command on`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{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,r].concat(n),illegal:`;$|^\\[|^=|&|\\{`}}t.exports=n})),T7=s(((e,t)=>{var n=`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`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`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`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat(`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`.split(`.`)),literal:r.concat([`yes`,`no`,`on`,`off`,`it`,`that`,`void`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*`,o=e.inherit(e.TITLE_MODE,{begin:a}),s={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},l={className:`subst`,begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},u=[e.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:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:`regexp`,variants:[{begin:`//`,end:`//[gim]*`,contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:`@`+a},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`}];s.contains=u;let d={className:`params`,begin:`\\(`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(u)}]},f={begin:`(#=>|=>|\\|>>|-?->|!->)`},p={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`LiveScript`,aliases:[`ls`],keywords:t,illegal:/\/\*/,contains:u.concat([e.COMMENT(`\\/\\*`,`\\*\\/`),e.HASH_COMMENT_MODE,f,{className:`function`,contains:[o,d],returnBegin:!0,variants:[{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?`,end:`->\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?`,end:`[-~]{1,2}>\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?`,end:`!?[-~]{1,2}>\\*?`}]},p,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=a})),E7=s(((e,t)=>{function n(e){let t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:`type`,begin:/\bi\d+(?=\s|\b)/},i={className:`operator`,relevance:0,begin:/=/},a={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},s={className:`symbol`,variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:`variable`,variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:`title`,variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.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:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:`string`,begin:/"/,end:/"/,contains:[{className:`char.escape`,match:/\\\d\d/}]},u,a,i,l,s,o]}}t.exports=n})),NVt=s(((e,t)=>{function n(e){let t={className:`string`,begin:`"`,end:`"`,contains:[{className:`subst`,begin:/\\[tn"\\]/}]},n={className:`number`,relevance:0,begin:e.C_NUMBER_RE};return{name:`LSL (Linden Scripting Language)`,illegal:`:`,contains:[t,{className:`comment`,variants:[e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`)],relevance:0},n,{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`}]},{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`},{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`}]},{className:`type`,begin:`\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b`}]}}t.exports=n})),PVt=s(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!\\[=*\\[)`,`$`),e.COMMENT(`--\\[=*\\[`,n,{contains:[r],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:t,end:n,contains:[r],relevance:5}])}}t.exports=n})),FVt=s(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{var n=`AASTriangle.AbelianGroup.Abort.AbortKernels.AbortProtect.AbortScheduledTask.Above.Abs.AbsArg.AbsArgPlot.Absolute.AbsoluteCorrelation.AbsoluteCorrelationFunction.AbsoluteCurrentValue.AbsoluteDashing.AbsoluteFileName.AbsoluteOptions.AbsolutePointSize.AbsoluteThickness.AbsoluteTime.AbsoluteTiming.AcceptanceThreshold.AccountingForm.Accumulate.Accuracy.AccuracyGoal.AcousticAbsorbingValue.AcousticImpedanceValue.AcousticNormalVelocityValue.AcousticPDEComponent.AcousticPressureCondition.AcousticRadiationValue.AcousticSoundHardValue.AcousticSoundSoftCondition.ActionDelay.ActionMenu.ActionMenuBox.ActionMenuBoxOptions.Activate.Active.ActiveClassification.ActiveClassificationObject.ActiveItem.ActivePrediction.ActivePredictionObject.ActiveStyle.AcyclicGraphQ.AddOnHelpPath.AddSides.AddTo.AddToSearchIndex.AddUsers.AdjacencyGraph.AdjacencyList.AdjacencyMatrix.AdjacentMeshCells.Adjugate.AdjustmentBox.AdjustmentBoxOptions.AdjustTimeSeriesForecast.AdministrativeDivisionData.AffineHalfSpace.AffineSpace.AffineStateSpaceModel.AffineTransform.After.AggregatedEntityClass.AggregationLayer.AircraftData.AirportData.AirPressureData.AirSoundAttenuation.AirTemperatureData.AiryAi.AiryAiPrime.AiryAiZero.AiryBi.AiryBiPrime.AiryBiZero.AlgebraicIntegerQ.AlgebraicNumber.AlgebraicNumberDenominator.AlgebraicNumberNorm.AlgebraicNumberPolynomial.AlgebraicNumberTrace.AlgebraicRules.AlgebraicRulesData.Algebraics.AlgebraicUnitQ.Alignment.AlignmentMarker.AlignmentPoint.All.AllowAdultContent.AllowChatServices.AllowedCloudExtraParameters.AllowedCloudParameterExtensions.AllowedDimensions.AllowedFrequencyRange.AllowedHeads.AllowGroupClose.AllowIncomplete.AllowInlineCells.AllowKernelInitialization.AllowLooseGrammar.AllowReverseGroupClose.AllowScriptLevelChange.AllowVersionUpdate.AllTrue.Alphabet.AlphabeticOrder.AlphabeticSort.AlphaChannel.AlternateImage.AlternatingFactorial.AlternatingGroup.AlternativeHypothesis.Alternatives.AltitudeMethod.AmbientLight.AmbiguityFunction.AmbiguityList.Analytic.AnatomyData.AnatomyForm.AnatomyPlot3D.AnatomySkinStyle.AnatomyStyling.AnchoredSearch.And.AndersonDarlingTest.AngerJ.AngleBisector.AngleBracket.AnglePath.AnglePath3D.AngleVector.AngularGauge.Animate.AnimatedImage.AnimationCycleOffset.AnimationCycleRepetitions.AnimationDirection.AnimationDisplayTime.AnimationRate.AnimationRepetitions.AnimationRunning.AnimationRunTime.AnimationTimeIndex.AnimationVideo.Animator.AnimatorBox.AnimatorBoxOptions.AnimatorElements.Annotate.Annotation.AnnotationDelete.AnnotationKeys.AnnotationRules.AnnotationValue.Annuity.AnnuityDue.Annulus.AnomalyDetection.AnomalyDetector.AnomalyDetectorFunction.Anonymous.Antialiasing.Antihermitian.AntihermitianMatrixQ.Antisymmetric.AntisymmetricMatrixQ.Antonyms.AnyOrder.AnySubset.AnyTrue.Apart.ApartSquareFree.APIFunction.Appearance.AppearanceElements.AppearanceRules.AppellF1.Append.AppendCheck.AppendLayer.AppendTo.Application.Apply.ApplyReaction.ApplySides.ApplyTo.ArcCos.ArcCosh.ArcCot.ArcCoth.ArcCsc.ArcCsch.ArcCurvature.ARCHProcess.ArcLength.ArcSec.ArcSech.ArcSin.ArcSinDistribution.ArcSinh.ArcTan.ArcTanh.Area.Arg.ArgMax.ArgMin.ArgumentCountQ.ArgumentsOptions.ARIMAProcess.ArithmeticGeometricMean.ARMAProcess.Around.AroundReplace.ARProcess.Array.ArrayComponents.ArrayDepth.ArrayFilter.ArrayFlatten.ArrayMesh.ArrayPad.ArrayPlot.ArrayPlot3D.ArrayQ.ArrayReduce.ArrayResample.ArrayReshape.ArrayRules.Arrays.Arrow.Arrow3DBox.ArrowBox.Arrowheads.ASATriangle.Ask.AskAppend.AskConfirm.AskDisplay.AskedQ.AskedValue.AskFunction.AskState.AskTemplateDisplay.AspectRatio.AspectRatioFixed.Assert.AssessmentFunction.AssessmentResultObject.AssociateTo.Association.AssociationFormat.AssociationMap.AssociationQ.AssociationThread.AssumeDeterministic.Assuming.Assumptions.AstroAngularSeparation.AstroBackground.AstroCenter.AstroDistance.AstroGraphics.AstroGridLines.AstroGridLinesStyle.AstronomicalData.AstroPosition.AstroProjection.AstroRange.AstroRangePadding.AstroReferenceFrame.AstroStyling.AstroZoomLevel.Asymptotic.AsymptoticDSolveValue.AsymptoticEqual.AsymptoticEquivalent.AsymptoticExpectation.AsymptoticGreater.AsymptoticGreaterEqual.AsymptoticIntegrate.AsymptoticLess.AsymptoticLessEqual.AsymptoticOutputTracker.AsymptoticProbability.AsymptoticProduct.AsymptoticRSolveValue.AsymptoticSolve.AsymptoticSum.Asynchronous.AsynchronousTaskObject.AsynchronousTasks.Atom.AtomCoordinates.AtomCount.AtomDiagramCoordinates.AtomLabels.AtomLabelStyle.AtomList.AtomQ.AttachCell.AttachedCell.AttentionLayer.Attributes.Audio.AudioAmplify.AudioAnnotate.AudioAnnotationLookup.AudioBlockMap.AudioCapture.AudioChannelAssignment.AudioChannelCombine.AudioChannelMix.AudioChannels.AudioChannelSeparate.AudioData.AudioDelay.AudioDelete.AudioDevice.AudioDistance.AudioEncoding.AudioFade.AudioFrequencyShift.AudioGenerator.AudioIdentify.AudioInputDevice.AudioInsert.AudioInstanceQ.AudioIntervals.AudioJoin.AudioLabel.AudioLength.AudioLocalMeasurements.AudioLooping.AudioLoudness.AudioMeasurements.AudioNormalize.AudioOutputDevice.AudioOverlay.AudioPad.AudioPan.AudioPartition.AudioPause.AudioPitchShift.AudioPlay.AudioPlot.AudioQ.AudioRecord.AudioReplace.AudioResample.AudioReverb.AudioReverse.AudioSampleRate.AudioSpectralMap.AudioSpectralTransformation.AudioSplit.AudioStop.AudioStream.AudioStreams.AudioTimeStretch.AudioTrackApply.AudioTrackSelection.AudioTrim.AudioType.AugmentedPolyhedron.AugmentedSymmetricPolynomial.Authenticate.Authentication.AuthenticationDialog.AutoAction.Autocomplete.AutocompletionFunction.AutoCopy.AutocorrelationTest.AutoDelete.AutoEvaluateEvents.AutoGeneratedPackage.AutoIndent.AutoIndentSpacings.AutoItalicWords.AutoloadPath.AutoMatch.Automatic.AutomaticImageSize.AutoMultiplicationSymbol.AutoNumberFormatting.AutoOpenNotebooks.AutoOpenPalettes.AutoOperatorRenderings.AutoQuoteCharacters.AutoRefreshed.AutoRemove.AutorunSequencing.AutoScaling.AutoScroll.AutoSpacing.AutoStyleOptions.AutoStyleWords.AutoSubmitting.Axes.AxesEdge.AxesLabel.AxesOrigin.AxesStyle.AxiomaticTheory.Axis.Axis3DBox.Axis3DBoxOptions.AxisBox.AxisBoxOptions.AxisLabel.AxisObject.AxisStyle.BabyMonsterGroupB.Back.BackFaceColor.BackFaceGlowColor.BackFaceOpacity.BackFaceSpecularColor.BackFaceSpecularExponent.BackFaceSurfaceAppearance.BackFaceTexture.Background.BackgroundAppearance.BackgroundTasksSettings.Backslash.Backsubstitution.Backward.Ball.Band.BandpassFilter.BandstopFilter.BarabasiAlbertGraphDistribution.BarChart.BarChart3D.BarcodeImage.BarcodeRecognize.BaringhausHenzeTest.BarLegend.BarlowProschanImportance.BarnesG.BarOrigin.BarSpacing.BartlettHannWindow.BartlettWindow.BaseDecode.BaseEncode.BaseForm.Baseline.BaselinePosition.BaseStyle.BasicRecurrentLayer.BatchNormalizationLayer.BatchSize.BatesDistribution.BattleLemarieWavelet.BayesianMaximization.BayesianMaximizationObject.BayesianMinimization.BayesianMinimizationObject.Because.BeckmannDistribution.Beep.Before.Begin.BeginDialogPacket.BeginPackage.BellB.BellY.Below.BenfordDistribution.BeniniDistribution.BenktanderGibratDistribution.BenktanderWeibullDistribution.BernoulliB.BernoulliDistribution.BernoulliGraphDistribution.BernoulliProcess.BernsteinBasis.BesagL.BesselFilterModel.BesselI.BesselJ.BesselJZero.BesselK.BesselY.BesselYZero.Beta.BetaBinomialDistribution.BetaDistribution.BetaNegativeBinomialDistribution.BetaPrimeDistribution.BetaRegularized.Between.BetweennessCentrality.Beveled.BeveledPolyhedron.BezierCurve.BezierCurve3DBox.BezierCurve3DBoxOptions.BezierCurveBox.BezierCurveBoxOptions.BezierFunction.BilateralFilter.BilateralLaplaceTransform.BilateralZTransform.Binarize.BinaryDeserialize.BinaryDistance.BinaryFormat.BinaryImageQ.BinaryRead.BinaryReadList.BinarySerialize.BinaryWrite.BinCounts.BinLists.BinnedVariogramList.Binomial.BinomialDistribution.BinomialPointProcess.BinomialProcess.BinormalDistribution.BiorthogonalSplineWavelet.BioSequence.BioSequenceBackTranslateList.BioSequenceComplement.BioSequenceInstances.BioSequenceModify.BioSequencePlot.BioSequenceQ.BioSequenceReverseComplement.BioSequenceTranscribe.BioSequenceTranslate.BipartiteGraphQ.BiquadraticFilterModel.BirnbaumImportance.BirnbaumSaundersDistribution.BitAnd.BitClear.BitGet.BitLength.BitNot.BitOr.BitRate.BitSet.BitShiftLeft.BitShiftRight.BitXor.BiweightLocation.BiweightMidvariance.Black.BlackmanHarrisWindow.BlackmanNuttallWindow.BlackmanWindow.Blank.BlankForm.BlankNullSequence.BlankSequence.Blend.Block.BlockchainAddressData.BlockchainBase.BlockchainBlockData.BlockchainContractValue.BlockchainData.BlockchainGet.BlockchainKeyEncode.BlockchainPut.BlockchainTokenData.BlockchainTransaction.BlockchainTransactionData.BlockchainTransactionSign.BlockchainTransactionSubmit.BlockDiagonalMatrix.BlockLowerTriangularMatrix.BlockMap.BlockRandom.BlockUpperTriangularMatrix.BlomqvistBeta.BlomqvistBetaTest.Blue.Blur.Blurring.BodePlot.BohmanWindow.Bold.Bond.BondCount.BondLabels.BondLabelStyle.BondList.BondQ.Bookmarks.Boole.BooleanConsecutiveFunction.BooleanConvert.BooleanCountingFunction.BooleanFunction.BooleanGraph.BooleanMaxterms.BooleanMinimize.BooleanMinterms.BooleanQ.BooleanRegion.Booleans.BooleanStrings.BooleanTable.BooleanVariables.BorderDimensions.BorelTannerDistribution.Bottom.BottomHatTransform.BoundaryDiscretizeGraphics.BoundaryDiscretizeRegion.BoundaryMesh.BoundaryMeshRegion.BoundaryMeshRegionQ.BoundaryStyle.BoundedRegionQ.BoundingRegion.Bounds.Box.BoxBaselineShift.BoxData.BoxDimensions.Boxed.Boxes.BoxForm.BoxFormFormatTypes.BoxFrame.BoxID.BoxMargins.BoxMatrix.BoxObject.BoxRatios.BoxRotation.BoxRotationPoint.BoxStyle.BoxWhiskerChart.Bra.BracketingBar.BraKet.BrayCurtisDistance.BreadthFirstScan.Break.BridgeData.BrightnessEqualize.BroadcastStationData.Brown.BrownForsytheTest.BrownianBridgeProcess.BrowserCategory.BSplineBasis.BSplineCurve.BSplineCurve3DBox.BSplineCurve3DBoxOptions.BSplineCurveBox.BSplineCurveBoxOptions.BSplineFunction.BSplineSurface.BSplineSurface3DBox.BSplineSurface3DBoxOptions.BubbleChart.BubbleChart3D.BubbleScale.BubbleSizes.BuckyballGraph.BuildCompiledComponent.BuildingData.BulletGauge.BusinessDayQ.ButterflyGraph.ButterworthFilterModel.Button.ButtonBar.ButtonBox.ButtonBoxOptions.ButtonCell.ButtonContents.ButtonData.ButtonEvaluator.ButtonExpandable.ButtonFrame.ButtonFunction.ButtonMargins.ButtonMinHeight.ButtonNote.ButtonNotebook.ButtonSource.ButtonStyle.ButtonStyleMenuListing.Byte.ByteArray.ByteArrayFormat.ByteArrayFormatQ.ByteArrayQ.ByteArrayToString.ByteCount.ByteOrdering.C.CachedValue.CacheGraphics.CachePersistence.CalendarConvert.CalendarData.CalendarType.Callout.CalloutMarker.CalloutStyle.CallPacket.CanberraDistance.Cancel.CancelButton.CandlestickChart.CanonicalGraph.CanonicalizePolygon.CanonicalizePolyhedron.CanonicalizeRegion.CanonicalName.CanonicalWarpingCorrespondence.CanonicalWarpingDistance.CantorMesh.CantorStaircase.Canvas.Cap.CapForm.CapitalDifferentialD.Capitalize.CapsuleShape.CaptureRunning.CaputoD.CardinalBSplineBasis.CarlemanLinearize.CarlsonRC.CarlsonRD.CarlsonRE.CarlsonRF.CarlsonRG.CarlsonRJ.CarlsonRK.CarlsonRM.CarmichaelLambda.CaseOrdering.Cases.CaseSensitive.Cashflow.Casoratian.Cast.Catalan.CatalanNumber.Catch.CategoricalDistribution.Catenate.CatenateLayer.CauchyDistribution.CauchyMatrix.CauchyPointProcess.CauchyWindow.CayleyGraph.CDF.CDFDeploy.CDFInformation.CDFWavelet.Ceiling.CelestialSystem.Cell.CellAutoOverwrite.CellBaseline.CellBoundingBox.CellBracketOptions.CellChangeTimes.CellContents.CellContext.CellDingbat.CellDingbatMargin.CellDynamicExpression.CellEditDuplicate.CellElementsBoundingBox.CellElementSpacings.CellEpilog.CellEvaluationDuplicate.CellEvaluationFunction.CellEvaluationLanguage.CellEventActions.CellFrame.CellFrameColor.CellFrameLabelMargins.CellFrameLabels.CellFrameMargins.CellFrameStyle.CellGroup.CellGroupData.CellGrouping.CellGroupingRules.CellHorizontalScrolling.CellID.CellInsertionPointCell.CellLabel.CellLabelAutoDelete.CellLabelMargins.CellLabelPositioning.CellLabelStyle.CellLabelTemplate.CellMargins.CellObject.CellOpen.CellPrint.CellProlog.Cells.CellSize.CellStyle.CellTags.CellTrayPosition.CellTrayWidgets.CellularAutomaton.CensoredDistribution.Censoring.Center.CenterArray.CenterDot.CenteredInterval.CentralFeature.CentralMoment.CentralMomentGeneratingFunction.Cepstrogram.CepstrogramArray.CepstrumArray.CForm.ChampernowneNumber.ChangeOptions.ChannelBase.ChannelBrokerAction.ChannelDatabin.ChannelHistoryLength.ChannelListen.ChannelListener.ChannelListeners.ChannelListenerWait.ChannelObject.ChannelPreSendFunction.ChannelReceiverFunction.ChannelSend.ChannelSubscribers.ChanVeseBinarize.Character.CharacterCounts.CharacterEncoding.CharacterEncodingsPath.CharacteristicFunction.CharacteristicPolynomial.CharacterName.CharacterNormalize.CharacterRange.Characters.ChartBaseStyle.ChartElementData.ChartElementDataFunction.ChartElementFunction.ChartElements.ChartLabels.ChartLayout.ChartLegends.ChartStyle.Chebyshev1FilterModel.Chebyshev2FilterModel.ChebyshevDistance.ChebyshevT.ChebyshevU.Check.CheckAbort.CheckAll.CheckArguments.Checkbox.CheckboxBar.CheckboxBox.CheckboxBoxOptions.ChemicalConvert.ChemicalData.ChemicalFormula.ChemicalInstance.ChemicalReaction.ChessboardDistance.ChiDistribution.ChineseRemainder.ChiSquareDistribution.ChoiceButtons.ChoiceDialog.CholeskyDecomposition.Chop.ChromaticityPlot.ChromaticityPlot3D.ChromaticPolynomial.Circle.CircleBox.CircleDot.CircleMinus.CirclePlus.CirclePoints.CircleThrough.CircleTimes.CirculantGraph.CircularArcThrough.CircularOrthogonalMatrixDistribution.CircularQuaternionMatrixDistribution.CircularRealMatrixDistribution.CircularSymplecticMatrixDistribution.CircularUnitaryMatrixDistribution.Circumsphere.CityData.ClassifierFunction.ClassifierInformation.ClassifierMeasurements.ClassifierMeasurementsObject.Classify.ClassPriors.Clear.ClearAll.ClearAttributes.ClearCookies.ClearPermissions.ClearSystemCache.ClebschGordan.ClickPane.ClickToCopy.ClickToCopyEnabled.Clip.ClipboardNotebook.ClipFill.ClippingStyle.ClipPlanes.ClipPlanesStyle.ClipRange.Clock.ClockGauge.ClockwiseContourIntegral.Close.Closed.CloseKernels.ClosenessCentrality.Closing.ClosingAutoSave.ClosingEvent.CloudAccountData.CloudBase.CloudConnect.CloudConnections.CloudDeploy.CloudDirectory.CloudDisconnect.CloudEvaluate.CloudExport.CloudExpression.CloudExpressions.CloudFunction.CloudGet.CloudImport.CloudLoggingData.CloudObject.CloudObjectInformation.CloudObjectInformationData.CloudObjectNameFormat.CloudObjects.CloudObjectURLType.CloudPublish.CloudPut.CloudRenderingMethod.CloudSave.CloudShare.CloudSubmit.CloudSymbol.CloudUnshare.CloudUserID.ClusterClassify.ClusterDissimilarityFunction.ClusteringComponents.ClusteringMeasurements.ClusteringTree.CMYKColor.Coarse.CodeAssistOptions.Coefficient.CoefficientArrays.CoefficientDomain.CoefficientList.CoefficientRules.CoifletWavelet.Collect.CollinearPoints.Colon.ColonForm.ColorBalance.ColorCombine.ColorConvert.ColorCoverage.ColorData.ColorDataFunction.ColorDetect.ColorDistance.ColorFunction.ColorFunctionBinning.ColorFunctionScaling.Colorize.ColorNegate.ColorOutput.ColorProfileData.ColorQ.ColorQuantize.ColorReplace.ColorRules.ColorSelectorSettings.ColorSeparate.ColorSetter.ColorSetterBox.ColorSetterBoxOptions.ColorSlider.ColorsNear.ColorSpace.ColorToneMapping.Column.ColumnAlignments.ColumnBackgrounds.ColumnForm.ColumnLines.ColumnsEqual.ColumnSpacings.ColumnWidths.CombinatorB.CombinatorC.CombinatorI.CombinatorK.CombinatorS.CombinatorW.CombinatorY.CombinedEntityClass.CombinerFunction.CometData.CommonDefaultFormatTypes.Commonest.CommonestFilter.CommonName.CommonUnits.CommunityBoundaryStyle.CommunityGraphPlot.CommunityLabels.CommunityRegionStyle.CompanyData.CompatibleUnitQ.CompilationOptions.CompilationTarget.Compile.Compiled.CompiledCodeFunction.CompiledComponent.CompiledExpressionDeclaration.CompiledFunction.CompiledLayer.CompilerCallback.CompilerEnvironment.CompilerEnvironmentAppend.CompilerEnvironmentAppendTo.CompilerEnvironmentObject.CompilerOptions.Complement.ComplementedEntityClass.CompleteGraph.CompleteGraphQ.CompleteIntegral.CompleteKaryTree.CompletionsListPacket.Complex.ComplexArrayPlot.ComplexContourPlot.Complexes.ComplexExpand.ComplexInfinity.ComplexityFunction.ComplexListPlot.ComplexPlot.ComplexPlot3D.ComplexRegionPlot.ComplexStreamPlot.ComplexVectorPlot.ComponentMeasurements.ComponentwiseContextMenu.Compose.ComposeList.ComposeSeries.CompositeQ.Composition.CompoundElement.CompoundExpression.CompoundPoissonDistribution.CompoundPoissonProcess.CompoundRenewalProcess.Compress.CompressedData.CompressionLevel.ComputeUncertainty.ConcaveHullMesh.Condition.ConditionalExpression.Conditioned.Cone.ConeBox.ConfidenceLevel.ConfidenceRange.ConfidenceTransform.ConfigurationPath.Confirm.ConfirmAssert.ConfirmBy.ConfirmMatch.ConfirmQuiet.ConformationMethod.ConformAudio.ConformImages.Congruent.ConicGradientFilling.ConicHullRegion.ConicHullRegion3DBox.ConicHullRegion3DBoxOptions.ConicHullRegionBox.ConicHullRegionBoxOptions.ConicOptimization.Conjugate.ConjugateTranspose.Conjunction.Connect.ConnectedComponents.ConnectedGraphComponents.ConnectedGraphQ.ConnectedMeshComponents.ConnectedMoleculeComponents.ConnectedMoleculeQ.ConnectionSettings.ConnectLibraryCallbackFunction.ConnectSystemModelComponents.ConnectSystemModelController.ConnesWindow.ConoverTest.ConservativeConvectionPDETerm.ConsoleMessage.Constant.ConstantArray.ConstantArrayLayer.ConstantImage.ConstantPlusLayer.ConstantRegionQ.Constants.ConstantTimesLayer.ConstellationData.ConstrainedMax.ConstrainedMin.Construct.Containing.ContainsAll.ContainsAny.ContainsExactly.ContainsNone.ContainsOnly.ContentDetectorFunction.ContentFieldOptions.ContentLocationFunction.ContentObject.ContentPadding.ContentsBoundingBox.ContentSelectable.ContentSize.Context.ContextMenu.Contexts.ContextToFileName.Continuation.Continue.ContinuedFraction.ContinuedFractionK.ContinuousAction.ContinuousMarkovProcess.ContinuousTask.ContinuousTimeModelQ.ContinuousWaveletData.ContinuousWaveletTransform.ContourDetect.ContourGraphics.ContourIntegral.ContourLabels.ContourLines.ContourPlot.ContourPlot3D.Contours.ContourShading.ContourSmoothing.ContourStyle.ContraharmonicMean.ContrastiveLossLayer.Control.ControlActive.ControlAlignment.ControlGroupContentsBox.ControllabilityGramian.ControllabilityMatrix.ControllableDecomposition.ControllableModelQ.ControllerDuration.ControllerInformation.ControllerInformationData.ControllerLinking.ControllerManipulate.ControllerMethod.ControllerPath.ControllerState.ControlPlacement.ControlsRendering.ControlType.ConvectionPDETerm.Convergents.ConversionOptions.ConversionRules.ConvertToPostScript.ConvertToPostScriptPacket.ConvexHullMesh.ConvexHullRegion.ConvexOptimization.ConvexPolygonQ.ConvexPolyhedronQ.ConvexRegionQ.ConvolutionLayer.Convolve.ConwayGroupCo1.ConwayGroupCo2.ConwayGroupCo3.CookieFunction.Cookies.CoordinateBoundingBox.CoordinateBoundingBoxArray.CoordinateBounds.CoordinateBoundsArray.CoordinateChartData.CoordinatesToolOptions.CoordinateTransform.CoordinateTransformData.CoplanarPoints.CoprimeQ.Coproduct.CopulaDistribution.Copyable.CopyDatabin.CopyDirectory.CopyFile.CopyFunction.CopyTag.CopyToClipboard.CoreNilpotentDecomposition.CornerFilter.CornerNeighbors.Correlation.CorrelationDistance.CorrelationFunction.CorrelationTest.Cos.Cosh.CoshIntegral.CosineDistance.CosineWindow.CosIntegral.Cot.Coth.CoulombF.CoulombG.CoulombH1.CoulombH2.Count.CountDistinct.CountDistinctBy.CounterAssignments.CounterBox.CounterBoxOptions.CounterClockwiseContourIntegral.CounterEvaluator.CounterFunction.CounterIncrements.CounterStyle.CounterStyleMenuListing.CountRoots.CountryData.Counts.CountsBy.Covariance.CovarianceEstimatorFunction.CovarianceFunction.CoxianDistribution.CoxIngersollRossProcess.CoxModel.CoxModelFit.CramerVonMisesTest.CreateArchive.CreateCellID.CreateChannel.CreateCloudExpression.CreateCompilerEnvironment.CreateDatabin.CreateDataStructure.CreateDataSystemModel.CreateDialog.CreateDirectory.CreateDocument.CreateFile.CreateIntermediateDirectories.CreateLicenseEntitlement.CreateManagedLibraryExpression.CreateNotebook.CreatePacletArchive.CreatePalette.CreatePermissionsGroup.CreateScheduledTask.CreateSearchIndex.CreateSystemModel.CreateTemporary.CreateTypeInstance.CreateUUID.CreateWindow.CriterionFunction.CriticalityFailureImportance.CriticalitySuccessImportance.CriticalSection.Cross.CrossEntropyLossLayer.CrossingCount.CrossingDetect.CrossingPolygon.CrossMatrix.Csc.Csch.CSGRegion.CSGRegionQ.CSGRegionTree.CTCLossLayer.Cube.CubeRoot.Cubics.Cuboid.CuboidBox.CuboidBoxOptions.Cumulant.CumulantGeneratingFunction.CumulativeFeatureImpactPlot.Cup.CupCap.Curl.CurlyDoubleQuote.CurlyQuote.CurrencyConvert.CurrentDate.CurrentImage.CurrentNotebookImage.CurrentScreenImage.CurrentValue.Curry.CurryApplied.CurvatureFlowFilter.CurveClosed.Cyan.CycleGraph.CycleIndexPolynomial.Cycles.CyclicGroup.Cyclotomic.Cylinder.CylinderBox.CylinderBoxOptions.CylindricalDecomposition.CylindricalDecompositionFunction.D.DagumDistribution.DamData.DamerauLevenshteinDistance.DampingFactor.Darker.Dashed.Dashing.DatabaseConnect.DatabaseDisconnect.DatabaseReference.Databin.DatabinAdd.DatabinRemove.Databins.DatabinSubmit.DatabinUpload.DataCompression.DataDistribution.DataRange.DataReversed.Dataset.DatasetDisplayPanel.DatasetTheme.DataStructure.DataStructureQ.Date.DateBounds.Dated.DateDelimiters.DateDifference.DatedUnit.DateFormat.DateFunction.DateGranularity.DateHistogram.DateInterval.DateList.DateListLogPlot.DateListPlot.DateListStepPlot.DateObject.DateObjectQ.DateOverlapsQ.DatePattern.DatePlus.DateRange.DateReduction.DateScale.DateSelect.DateString.DateTicksFormat.DateValue.DateWithinQ.DaubechiesWavelet.DavisDistribution.DawsonF.DayCount.DayCountConvention.DayHemisphere.DaylightQ.DayMatchQ.DayName.DayNightTerminator.DayPlus.DayRange.DayRound.DeBruijnGraph.DeBruijnSequence.Debug.DebugTag.Decapitalize.Decimal.DecimalForm.DeclareCompiledComponent.DeclareKnownSymbols.DeclarePackage.Decompose.DeconvolutionLayer.Decrement.Decrypt.DecryptFile.DedekindEta.DeepSpaceProbeData.Default.Default2DTool.Default3DTool.DefaultAttachedCellStyle.DefaultAxesStyle.DefaultBaseStyle.DefaultBoxStyle.DefaultButton.DefaultColor.DefaultControlPlacement.DefaultDockedCellStyle.DefaultDuplicateCellStyle.DefaultDuration.DefaultElement.DefaultFaceGridsStyle.DefaultFieldHintStyle.DefaultFont.DefaultFontProperties.DefaultFormatType.DefaultFrameStyle.DefaultFrameTicksStyle.DefaultGridLinesStyle.DefaultInlineFormatType.DefaultInputFormatType.DefaultLabelStyle.DefaultMenuStyle.DefaultNaturalLanguage.DefaultNewCellStyle.DefaultNewInlineCellStyle.DefaultNotebook.DefaultOptions.DefaultOutputFormatType.DefaultPrintPrecision.DefaultStyle.DefaultStyleDefinitions.DefaultTextFormatType.DefaultTextInlineFormatType.DefaultTicksStyle.DefaultTooltipStyle.DefaultValue.DefaultValues.Defer.DefineExternal.DefineInputStreamMethod.DefineOutputStreamMethod.DefineResourceFunction.Definition.Degree.DegreeCentrality.DegreeGraphDistribution.DegreeLexicographic.DegreeReverseLexicographic.DEigensystem.DEigenvalues.Deinitialization.Del.DelaunayMesh.Delayed.Deletable.Delete.DeleteAdjacentDuplicates.DeleteAnomalies.DeleteBorderComponents.DeleteCases.DeleteChannel.DeleteCloudExpression.DeleteContents.DeleteDirectory.DeleteDuplicates.DeleteDuplicatesBy.DeleteElements.DeleteFile.DeleteMissing.DeleteObject.DeletePermissionsKey.DeleteSearchIndex.DeleteSmallComponents.DeleteStopwords.DeleteWithContents.DeletionWarning.DelimitedArray.DelimitedSequence.Delimiter.DelimiterAutoMatching.DelimiterFlashTime.DelimiterMatching.Delimiters.DeliveryFunction.Dendrogram.Denominator.DensityGraphics.DensityHistogram.DensityPlot.DensityPlot3D.DependentVariables.Deploy.Deployed.Depth.DepthFirstScan.Derivative.DerivativeFilter.DerivativePDETerm.DerivedKey.DescriptorStateSpace.DesignMatrix.DestroyAfterEvaluation.Det.DeviceClose.DeviceConfigure.DeviceExecute.DeviceExecuteAsynchronous.DeviceObject.DeviceOpen.DeviceOpenQ.DeviceRead.DeviceReadBuffer.DeviceReadLatest.DeviceReadList.DeviceReadTimeSeries.Devices.DeviceStreams.DeviceWrite.DeviceWriteBuffer.DGaussianWavelet.DiacriticalPositioning.Diagonal.DiagonalizableMatrixQ.DiagonalMatrix.DiagonalMatrixQ.Dialog.DialogIndent.DialogInput.DialogLevel.DialogNotebook.DialogProlog.DialogReturn.DialogSymbols.Diamond.DiamondMatrix.DiceDissimilarity.DictionaryLookup.DictionaryWordQ.DifferenceDelta.DifferenceOrder.DifferenceQuotient.DifferenceRoot.DifferenceRootReduce.Differences.DifferentialD.DifferentialRoot.DifferentialRootReduce.DifferentiatorFilter.DiffusionPDETerm.DiggleGatesPointProcess.DiggleGrattonPointProcess.DigitalSignature.DigitBlock.DigitBlockMinimum.DigitCharacter.DigitCount.DigitQ.DihedralAngle.DihedralGroup.Dilation.DimensionalCombinations.DimensionalMeshComponents.DimensionReduce.DimensionReducerFunction.DimensionReduction.Dimensions.DiracComb.DiracDelta.DirectedEdge.DirectedEdges.DirectedGraph.DirectedGraphQ.DirectedInfinity.Direction.DirectionalLight.Directive.Directory.DirectoryName.DirectoryQ.DirectoryStack.DirichletBeta.DirichletCharacter.DirichletCondition.DirichletConvolve.DirichletDistribution.DirichletEta.DirichletL.DirichletLambda.DirichletTransform.DirichletWindow.DisableConsolePrintPacket.DisableFormatting.DiscreteAsymptotic.DiscreteChirpZTransform.DiscreteConvolve.DiscreteDelta.DiscreteHadamardTransform.DiscreteIndicator.DiscreteInputOutputModel.DiscreteLimit.DiscreteLQEstimatorGains.DiscreteLQRegulatorGains.DiscreteLyapunovSolve.DiscreteMarkovProcess.DiscreteMaxLimit.DiscreteMinLimit.DiscretePlot.DiscretePlot3D.DiscreteRatio.DiscreteRiccatiSolve.DiscreteShift.DiscreteTimeModelQ.DiscreteUniformDistribution.DiscreteVariables.DiscreteWaveletData.DiscreteWaveletPacketTransform.DiscreteWaveletTransform.DiscretizeGraphics.DiscretizeRegion.Discriminant.DisjointQ.Disjunction.Disk.DiskBox.DiskBoxOptions.DiskMatrix.DiskSegment.Dispatch.DispatchQ.DispersionEstimatorFunction.Display.DisplayAllSteps.DisplayEndPacket.DisplayForm.DisplayFunction.DisplayPacket.DisplayRules.DisplayString.DisplayTemporary.DisplayWith.DisplayWithRef.DisplayWithVariable.DistanceFunction.DistanceMatrix.DistanceTransform.Distribute.Distributed.DistributedContexts.DistributeDefinitions.DistributionChart.DistributionDomain.DistributionFitTest.DistributionParameterAssumptions.DistributionParameterQ.Dithering.Div.Divergence.Divide.DivideBy.Dividers.DivideSides.Divisible.Divisors.DivisorSigma.DivisorSum.DMSList.DMSString.Do.DockedCell.DockedCells.DocumentGenerator.DocumentGeneratorInformation.DocumentGeneratorInformationData.DocumentGenerators.DocumentNotebook.DocumentWeightingRules.Dodecahedron.DomainRegistrationInformation.DominantColors.DominatorTreeGraph.DominatorVertexList.DOSTextFormat.Dot.DotDashed.DotEqual.DotLayer.DotPlusLayer.Dotted.DoubleBracketingBar.DoubleContourIntegral.DoubleDownArrow.DoubleLeftArrow.DoubleLeftRightArrow.DoubleLeftTee.DoubleLongLeftArrow.DoubleLongLeftRightArrow.DoubleLongRightArrow.DoubleRightArrow.DoubleRightTee.DoubleUpArrow.DoubleUpDownArrow.DoubleVerticalBar.DoublyInfinite.Down.DownArrow.DownArrowBar.DownArrowUpArrow.DownLeftRightVector.DownLeftTeeVector.DownLeftVector.DownLeftVectorBar.DownRightTeeVector.DownRightVector.DownRightVectorBar.Downsample.DownTee.DownTeeArrow.DownValues.DownValuesFunction.DragAndDrop.DrawBackFaces.DrawEdges.DrawFrontFaces.DrawHighlighted.DrazinInverse.Drop.DropoutLayer.DropShadowing.DSolve.DSolveChangeVariables.DSolveValue.Dt.DualLinearProgramming.DualPlanarGraph.DualPolyhedron.DualSystemsModel.DumpGet.DumpSave.DuplicateFreeQ.Duration.Dynamic.DynamicBox.DynamicBoxOptions.DynamicEvaluationTimeout.DynamicGeoGraphics.DynamicImage.DynamicLocation.DynamicModule.DynamicModuleBox.DynamicModuleBoxOptions.DynamicModuleParent.DynamicModuleValues.DynamicName.DynamicNamespace.DynamicReference.DynamicSetting.DynamicUpdating.DynamicWrapper.DynamicWrapperBox.DynamicWrapperBoxOptions.E.EarthImpactData.EarthquakeData.EccentricityCentrality.Echo.EchoEvaluation.EchoFunction.EchoLabel.EchoTiming.EclipseType.EdgeAdd.EdgeBetweennessCentrality.EdgeCapacity.EdgeCapForm.EdgeChromaticNumber.EdgeColor.EdgeConnectivity.EdgeContract.EdgeCost.EdgeCount.EdgeCoverQ.EdgeCycleMatrix.EdgeDashing.EdgeDelete.EdgeDetect.EdgeForm.EdgeIndex.EdgeJoinForm.EdgeLabeling.EdgeLabels.EdgeLabelStyle.EdgeList.EdgeOpacity.EdgeQ.EdgeRenderingFunction.EdgeRules.EdgeShapeFunction.EdgeStyle.EdgeTaggedGraph.EdgeTaggedGraphQ.EdgeTags.EdgeThickness.EdgeTransitiveGraphQ.EdgeValueRange.EdgeValueSizes.EdgeWeight.EdgeWeightedGraphQ.Editable.EditButtonSettings.EditCellTagsSettings.EditDistance.EffectiveInterest.Eigensystem.Eigenvalues.EigenvectorCentrality.Eigenvectors.Element.ElementData.ElementwiseLayer.ElidedForms.Eliminate.EliminationOrder.Ellipsoid.EllipticE.EllipticExp.EllipticExpPrime.EllipticF.EllipticFilterModel.EllipticK.EllipticLog.EllipticNomeQ.EllipticPi.EllipticReducedHalfPeriods.EllipticTheta.EllipticThetaPrime.EmbedCode.EmbeddedHTML.EmbeddedService.EmbeddedSQLEntityClass.EmbeddedSQLExpression.EmbeddingLayer.EmbeddingObject.EmitSound.EmphasizeSyntaxErrors.EmpiricalDistribution.Empty.EmptyGraphQ.EmptyRegion.EmptySpaceF.EnableConsolePrintPacket.Enabled.Enclose.Encode.Encrypt.EncryptedObject.EncryptFile.End.EndAdd.EndDialogPacket.EndOfBuffer.EndOfFile.EndOfLine.EndOfString.EndPackage.EngineEnvironment.EngineeringForm.Enter.EnterExpressionPacket.EnterTextPacket.Entity.EntityClass.EntityClassList.EntityCopies.EntityFunction.EntityGroup.EntityInstance.EntityList.EntityPrefetch.EntityProperties.EntityProperty.EntityPropertyClass.EntityRegister.EntityStore.EntityStores.EntityTypeName.EntityUnregister.EntityValue.Entropy.EntropyFilter.Environment.Epilog.EpilogFunction.Equal.EqualColumns.EqualRows.EqualTilde.EqualTo.EquatedTo.Equilibrium.EquirippleFilterKernel.Equivalent.Erf.Erfc.Erfi.ErlangB.ErlangC.ErlangDistribution.Erosion.ErrorBox.ErrorBoxOptions.ErrorNorm.ErrorPacket.ErrorsDialogSettings.EscapeRadius.EstimatedBackground.EstimatedDistribution.EstimatedPointNormals.EstimatedPointProcess.EstimatedProcess.EstimatedVariogramModel.EstimatorGains.EstimatorRegulator.EuclideanDistance.EulerAngles.EulerCharacteristic.EulerE.EulerGamma.EulerianGraphQ.EulerMatrix.EulerPhi.Evaluatable.Evaluate.Evaluated.EvaluatePacket.EvaluateScheduledTask.EvaluationBox.EvaluationCell.EvaluationCompletionAction.EvaluationData.EvaluationElements.EvaluationEnvironment.EvaluationMode.EvaluationMonitor.EvaluationNotebook.EvaluationObject.EvaluationOrder.EvaluationPrivileges.EvaluationRateLimit.Evaluator.EvaluatorNames.EvenQ.EventData.EventEvaluator.EventHandler.EventHandlerTag.EventLabels.EventSeries.ExactBlackmanWindow.ExactNumberQ.ExactRootIsolation.ExampleData.Except.ExcludedContexts.ExcludedForms.ExcludedLines.ExcludedPhysicalQuantities.ExcludePods.Exclusions.ExclusionsStyle.Exists.Exit.ExitDialog.ExoplanetData.Exp.Expand.ExpandAll.ExpandDenominator.ExpandFileName.ExpandNumerator.Expectation.ExpectationE.ExpectedValue.ExpGammaDistribution.ExpIntegralE.ExpIntegralEi.ExpirationDate.Exponent.ExponentFunction.ExponentialDistribution.ExponentialFamily.ExponentialGeneratingFunction.ExponentialMovingAverage.ExponentialPowerDistribution.ExponentPosition.ExponentStep.Export.ExportAutoReplacements.ExportByteArray.ExportForm.ExportPacket.ExportString.Expression.ExpressionCell.ExpressionGraph.ExpressionPacket.ExpressionTree.ExpressionUUID.ExpToTrig.ExtendedEntityClass.ExtendedGCD.Extension.ExtentElementFunction.ExtentMarkers.ExtentSize.ExternalBundle.ExternalCall.ExternalDataCharacterEncoding.ExternalEvaluate.ExternalFunction.ExternalFunctionName.ExternalIdentifier.ExternalObject.ExternalOptions.ExternalSessionObject.ExternalSessions.ExternalStorageBase.ExternalStorageDownload.ExternalStorageGet.ExternalStorageObject.ExternalStoragePut.ExternalStorageUpload.ExternalTypeSignature.ExternalValue.Extract.ExtractArchive.ExtractLayer.ExtractPacletArchive.ExtremeValueDistribution.FaceAlign.FaceForm.FaceGrids.FaceGridsStyle.FaceRecognize.FacialFeatures.Factor.FactorComplete.Factorial.Factorial2.FactorialMoment.FactorialMomentGeneratingFunction.FactorialPower.FactorInteger.FactorList.FactorSquareFree.FactorSquareFreeList.FactorTerms.FactorTermsList.Fail.Failure.FailureAction.FailureDistribution.FailureQ.False.FareySequence.FARIMAProcess.FeatureDistance.FeatureExtract.FeatureExtraction.FeatureExtractor.FeatureExtractorFunction.FeatureImpactPlot.FeatureNames.FeatureNearest.FeatureSpacePlot.FeatureSpacePlot3D.FeatureTypes.FeatureValueDependencyPlot.FeatureValueImpactPlot.FEDisableConsolePrintPacket.FeedbackLinearize.FeedbackSector.FeedbackSectorStyle.FeedbackType.FEEnableConsolePrintPacket.FetalGrowthData.Fibonacci.Fibonorial.FieldCompletionFunction.FieldHint.FieldHintStyle.FieldMasked.FieldSize.File.FileBaseName.FileByteCount.FileConvert.FileDate.FileExistsQ.FileExtension.FileFormat.FileFormatProperties.FileFormatQ.FileHandler.FileHash.FileInformation.FileName.FileNameDepth.FileNameDialogSettings.FileNameDrop.FileNameForms.FileNameJoin.FileNames.FileNameSetter.FileNameSplit.FileNameTake.FileNameToFormatList.FilePrint.FileSize.FileSystemMap.FileSystemScan.FileSystemTree.FileTemplate.FileTemplateApply.FileType.FilledCurve.FilledCurveBox.FilledCurveBoxOptions.FilledTorus.FillForm.Filling.FillingStyle.FillingTransform.FilteredEntityClass.FilterRules.FinancialBond.FinancialData.FinancialDerivative.FinancialIndicator.Find.FindAnomalies.FindArgMax.FindArgMin.FindChannels.FindClique.FindClusters.FindCookies.FindCurvePath.FindCycle.FindDevices.FindDistribution.FindDistributionParameters.FindDivisions.FindEdgeColoring.FindEdgeCover.FindEdgeCut.FindEdgeIndependentPaths.FindEquationalProof.FindEulerianCycle.FindExternalEvaluators.FindFaces.FindFile.FindFit.FindFormula.FindFundamentalCycles.FindGeneratingFunction.FindGeoLocation.FindGeometricConjectures.FindGeometricTransform.FindGraphCommunities.FindGraphIsomorphism.FindGraphPartition.FindHamiltonianCycle.FindHamiltonianPath.FindHiddenMarkovStates.FindImageText.FindIndependentEdgeSet.FindIndependentVertexSet.FindInstance.FindIntegerNullVector.FindIsomers.FindIsomorphicSubgraph.FindKClan.FindKClique.FindKClub.FindKPlex.FindLibrary.FindLinearRecurrence.FindList.FindMatchingColor.FindMaximum.FindMaximumCut.FindMaximumFlow.FindMaxValue.FindMeshDefects.FindMinimum.FindMinimumCostFlow.FindMinimumCut.FindMinValue.FindMoleculeSubstructure.FindPath.FindPeaks.FindPermutation.FindPlanarColoring.FindPointProcessParameters.FindPostmanTour.FindProcessParameters.FindRegionTransform.FindRepeat.FindRoot.FindSequenceFunction.FindSettings.FindShortestPath.FindShortestTour.FindSpanningTree.FindSubgraphIsomorphism.FindSystemModelEquilibrium.FindTextualAnswer.FindThreshold.FindTransientRepeat.FindVertexColoring.FindVertexCover.FindVertexCut.FindVertexIndependentPaths.Fine.FinishDynamic.FiniteAbelianGroupCount.FiniteGroupCount.FiniteGroupData.First.FirstCase.FirstPassageTimeDistribution.FirstPosition.FischerGroupFi22.FischerGroupFi23.FischerGroupFi24Prime.FisherHypergeometricDistribution.FisherRatioTest.FisherZDistribution.Fit.FitAll.FitRegularization.FittedModel.FixedOrder.FixedPoint.FixedPointList.FlashSelection.Flat.FlatShading.Flatten.FlattenAt.FlattenLayer.FlatTopWindow.FlightData.FlipView.Floor.FlowPolynomial.Fold.FoldList.FoldPair.FoldPairList.FoldWhile.FoldWhileList.FollowRedirects.Font.FontColor.FontFamily.FontForm.FontName.FontOpacity.FontPostScriptName.FontProperties.FontReencoding.FontSize.FontSlant.FontSubstitutions.FontTracking.FontVariations.FontWeight.For.ForAll.ForAllType.ForceVersionInstall.Format.FormatRules.FormatType.FormatTypeAutoConvert.FormatValues.FormBox.FormBoxOptions.FormControl.FormFunction.FormLayoutFunction.FormObject.FormPage.FormProtectionMethod.FormTheme.FormulaData.FormulaLookup.FortranForm.Forward.ForwardBackward.ForwardCloudCredentials.Fourier.FourierCoefficient.FourierCosCoefficient.FourierCosSeries.FourierCosTransform.FourierDCT.FourierDCTFilter.FourierDCTMatrix.FourierDST.FourierDSTMatrix.FourierMatrix.FourierParameters.FourierSequenceTransform.FourierSeries.FourierSinCoefficient.FourierSinSeries.FourierSinTransform.FourierTransform.FourierTrigSeries.FoxH.FoxHReduce.FractionalBrownianMotionProcess.FractionalD.FractionalGaussianNoiseProcess.FractionalPart.FractionBox.FractionBoxOptions.FractionLine.Frame.FrameBox.FrameBoxOptions.Framed.FrameInset.FrameLabel.Frameless.FrameListVideo.FrameMargins.FrameRate.FrameStyle.FrameTicks.FrameTicksStyle.FRatioDistribution.FrechetDistribution.FreeQ.FrenetSerretSystem.FrequencySamplingFilterKernel.FresnelC.FresnelF.FresnelG.FresnelS.Friday.FrobeniusNumber.FrobeniusSolve.FromAbsoluteTime.FromCharacterCode.FromCoefficientRules.FromContinuedFraction.FromDate.FromDateString.FromDigits.FromDMS.FromEntity.FromJulianDate.FromLetterNumber.FromPolarCoordinates.FromRawPointer.FromRomanNumeral.FromSphericalCoordinates.FromUnixTime.Front.FrontEndDynamicExpression.FrontEndEventActions.FrontEndExecute.FrontEndObject.FrontEndResource.FrontEndResourceString.FrontEndStackSize.FrontEndToken.FrontEndTokenExecute.FrontEndValueCache.FrontEndVersion.FrontFaceColor.FrontFaceGlowColor.FrontFaceOpacity.FrontFaceSpecularColor.FrontFaceSpecularExponent.FrontFaceSurfaceAppearance.FrontFaceTexture.Full.FullAxes.FullDefinition.FullForm.FullGraphics.FullInformationOutputRegulator.FullOptions.FullRegion.FullSimplify.Function.FunctionAnalytic.FunctionBijective.FunctionCompile.FunctionCompileExport.FunctionCompileExportByteArray.FunctionCompileExportLibrary.FunctionCompileExportString.FunctionContinuous.FunctionConvexity.FunctionDeclaration.FunctionDiscontinuities.FunctionDomain.FunctionExpand.FunctionInjective.FunctionInterpolation.FunctionLayer.FunctionMeromorphic.FunctionMonotonicity.FunctionPeriod.FunctionPoles.FunctionRange.FunctionSign.FunctionSingularities.FunctionSpace.FunctionSurjective.FussellVeselyImportance.GaborFilter.GaborMatrix.GaborWavelet.GainMargins.GainPhaseMargins.GalaxyData.GalleryView.Gamma.GammaDistribution.GammaRegularized.GapPenalty.GARCHProcess.GatedRecurrentLayer.Gather.GatherBy.GaugeFaceElementFunction.GaugeFaceStyle.GaugeFrameElementFunction.GaugeFrameSize.GaugeFrameStyle.GaugeLabels.GaugeMarkers.GaugeStyle.GaussianFilter.GaussianIntegers.GaussianMatrix.GaussianOrthogonalMatrixDistribution.GaussianSymplecticMatrixDistribution.GaussianUnitaryMatrixDistribution.GaussianWindow.GCD.GegenbauerC.General.GeneralizedLinearModelFit.GenerateAsymmetricKeyPair.GenerateConditions.GeneratedAssetFormat.GeneratedAssetLocation.GeneratedCell.GeneratedCellStyles.GeneratedDocumentBinding.GenerateDerivedKey.GenerateDigitalSignature.GenerateDocument.GeneratedParameters.GeneratedQuantityMagnitudes.GenerateFileSignature.GenerateHTTPResponse.GenerateSecuredAuthenticationKey.GenerateSymmetricKey.GeneratingFunction.GeneratorDescription.GeneratorHistoryLength.GeneratorOutputType.Generic.GenericCylindricalDecomposition.GenomeData.GenomeLookup.GeoAntipode.GeoArea.GeoArraySize.GeoBackground.GeoBoundary.GeoBoundingBox.GeoBounds.GeoBoundsRegion.GeoBoundsRegionBoundary.GeoBubbleChart.GeoCenter.GeoCircle.GeoContourPlot.GeoDensityPlot.GeodesicClosing.GeodesicDilation.GeodesicErosion.GeodesicOpening.GeodesicPolyhedron.GeoDestination.GeodesyData.GeoDirection.GeoDisk.GeoDisplacement.GeoDistance.GeoDistanceList.GeoElevationData.GeoEntities.GeoGraphics.GeoGraphPlot.GeoGraphValuePlot.GeogravityModelData.GeoGridDirectionDifference.GeoGridLines.GeoGridLinesStyle.GeoGridPosition.GeoGridRange.GeoGridRangePadding.GeoGridUnitArea.GeoGridUnitDistance.GeoGridVector.GeoGroup.GeoHemisphere.GeoHemisphereBoundary.GeoHistogram.GeoIdentify.GeoImage.GeoLabels.GeoLength.GeoListPlot.GeoLocation.GeologicalPeriodData.GeomagneticModelData.GeoMarker.GeometricAssertion.GeometricBrownianMotionProcess.GeometricDistribution.GeometricMean.GeometricMeanFilter.GeometricOptimization.GeometricScene.GeometricStep.GeometricStylingRules.GeometricTest.GeometricTransformation.GeometricTransformation3DBox.GeometricTransformation3DBoxOptions.GeometricTransformationBox.GeometricTransformationBoxOptions.GeoModel.GeoNearest.GeoOrientationData.GeoPath.GeoPolygon.GeoPosition.GeoPositionENU.GeoPositionXYZ.GeoProjection.GeoProjectionData.GeoRange.GeoRangePadding.GeoRegionValuePlot.GeoResolution.GeoScaleBar.GeoServer.GeoSmoothHistogram.GeoStreamPlot.GeoStyling.GeoStylingImageFunction.GeoVariant.GeoVector.GeoVectorENU.GeoVectorPlot.GeoVectorXYZ.GeoVisibleRegion.GeoVisibleRegionBoundary.GeoWithinQ.GeoZoomLevel.GestureHandler.GestureHandlerTag.Get.GetContext.GetEnvironment.GetFileName.GetLinebreakInformationPacket.GibbsPointProcess.Glaisher.GlobalClusteringCoefficient.GlobalPreferences.GlobalSession.Glow.GoldenAngle.GoldenRatio.GompertzMakehamDistribution.GoochShading.GoodmanKruskalGamma.GoodmanKruskalGammaTest.Goto.GouraudShading.Grad.Gradient.GradientFilter.GradientFittedMesh.GradientOrientationFilter.GrammarApply.GrammarRules.GrammarToken.Graph.Graph3D.GraphAssortativity.GraphAutomorphismGroup.GraphCenter.GraphComplement.GraphData.GraphDensity.GraphDiameter.GraphDifference.GraphDisjointUnion.GraphDistance.GraphDistanceMatrix.GraphEmbedding.GraphHighlight.GraphHighlightStyle.GraphHub.Graphics.Graphics3D.Graphics3DBox.Graphics3DBoxOptions.GraphicsArray.GraphicsBaseline.GraphicsBox.GraphicsBoxOptions.GraphicsColor.GraphicsColumn.GraphicsComplex.GraphicsComplex3DBox.GraphicsComplex3DBoxOptions.GraphicsComplexBox.GraphicsComplexBoxOptions.GraphicsContents.GraphicsData.GraphicsGrid.GraphicsGridBox.GraphicsGroup.GraphicsGroup3DBox.GraphicsGroup3DBoxOptions.GraphicsGroupBox.GraphicsGroupBoxOptions.GraphicsGrouping.GraphicsHighlightColor.GraphicsRow.GraphicsSpacing.GraphicsStyle.GraphIntersection.GraphJoin.GraphLayerLabels.GraphLayers.GraphLayerStyle.GraphLayout.GraphLinkEfficiency.GraphPeriphery.GraphPlot.GraphPlot3D.GraphPower.GraphProduct.GraphPropertyDistribution.GraphQ.GraphRadius.GraphReciprocity.GraphRoot.GraphStyle.GraphSum.GraphTree.GraphUnion.Gray.GrayLevel.Greater.GreaterEqual.GreaterEqualLess.GreaterEqualThan.GreaterFullEqual.GreaterGreater.GreaterLess.GreaterSlantEqual.GreaterThan.GreaterTilde.GreekStyle.Green.GreenFunction.Grid.GridBaseline.GridBox.GridBoxAlignment.GridBoxBackground.GridBoxDividers.GridBoxFrame.GridBoxItemSize.GridBoxItemStyle.GridBoxOptions.GridBoxSpacings.GridCreationSettings.GridDefaultElement.GridElementStyleOptions.GridFrame.GridFrameMargins.GridGraph.GridLines.GridLinesStyle.GridVideo.GroebnerBasis.GroupActionBase.GroupBy.GroupCentralizer.GroupElementFromWord.GroupElementPosition.GroupElementQ.GroupElements.GroupElementToWord.GroupGenerators.Groupings.GroupMultiplicationTable.GroupOpenerColor.GroupOpenerInsideFrame.GroupOrbits.GroupOrder.GroupPageBreakWithin.GroupSetwiseStabilizer.GroupStabilizer.GroupStabilizerChain.GroupTogetherGrouping.GroupTogetherNestedGrouping.GrowCutComponents.Gudermannian.GuidedFilter.GumbelDistribution.HaarWavelet.HadamardMatrix.HalfLine.HalfNormalDistribution.HalfPlane.HalfSpace.HalftoneShading.HamiltonianGraphQ.HammingDistance.HammingWindow.HandlerFunctions.HandlerFunctionsKeys.HankelH1.HankelH2.HankelMatrix.HankelTransform.HannPoissonWindow.HannWindow.HaradaNortonGroupHN.HararyGraph.HardcorePointProcess.HarmonicMean.HarmonicMeanFilter.HarmonicNumber.Hash.HatchFilling.HatchShading.Haversine.HazardFunction.Head.HeadCompose.HeaderAlignment.HeaderBackground.HeaderDisplayFunction.HeaderLines.Headers.HeaderSize.HeaderStyle.Heads.HeatFluxValue.HeatInsulationValue.HeatOutflowValue.HeatRadiationValue.HeatSymmetryValue.HeatTemperatureCondition.HeatTransferPDEComponent.HeatTransferValue.HeavisideLambda.HeavisidePi.HeavisideTheta.HeldGroupHe.HeldPart.HelmholtzPDEComponent.HelpBrowserLookup.HelpBrowserNotebook.HelpBrowserSettings.HelpViewerSettings.Here.HermiteDecomposition.HermiteH.Hermitian.HermitianMatrixQ.HessenbergDecomposition.Hessian.HeunB.HeunBPrime.HeunC.HeunCPrime.HeunD.HeunDPrime.HeunG.HeunGPrime.HeunT.HeunTPrime.HexadecimalCharacter.Hexahedron.HexahedronBox.HexahedronBoxOptions.HiddenItems.HiddenMarkovProcess.HiddenSurface.Highlighted.HighlightGraph.HighlightImage.HighlightMesh.HighlightString.HighpassFilter.HigmanSimsGroupHS.HilbertCurve.HilbertFilter.HilbertMatrix.Histogram.Histogram3D.HistogramDistribution.HistogramList.HistogramPointDensity.HistogramTransform.HistogramTransformInterpolation.HistoricalPeriodData.HitMissTransform.HITSCentrality.HjorthDistribution.HodgeDual.HoeffdingD.HoeffdingDTest.Hold.HoldAll.HoldAllComplete.HoldComplete.HoldFirst.HoldForm.HoldPattern.HoldRest.HolidayCalendar.HomeDirectory.HomePage.Horizontal.HorizontalForm.HorizontalGauge.HorizontalScrollPosition.HornerForm.HostLookup.HotellingTSquareDistribution.HoytDistribution.HTMLSave.HTTPErrorResponse.HTTPRedirect.HTTPRequest.HTTPRequestData.HTTPResponse.Hue.HumanGrowthData.HumpDownHump.HumpEqual.HurwitzLerchPhi.HurwitzZeta.HyperbolicDistribution.HypercubeGraph.HyperexponentialDistribution.Hyperfactorial.Hypergeometric0F1.Hypergeometric0F1Regularized.Hypergeometric1F1.Hypergeometric1F1Regularized.Hypergeometric2F1.Hypergeometric2F1Regularized.HypergeometricDistribution.HypergeometricPFQ.HypergeometricPFQRegularized.HypergeometricU.Hyperlink.HyperlinkAction.HyperlinkCreationSettings.Hyperplane.Hyphenation.HyphenationOptions.HypoexponentialDistribution.HypothesisTestData.I.IconData.Iconize.IconizedObject.IconRules.Icosahedron.Identity.IdentityMatrix.If.IfCompiled.IgnoreCase.IgnoreDiacritics.IgnoreIsotopes.IgnorePunctuation.IgnoreSpellCheck.IgnoreStereochemistry.IgnoringInactive.Im.Image.Image3D.Image3DProjection.Image3DSlices.ImageAccumulate.ImageAdd.ImageAdjust.ImageAlign.ImageApply.ImageApplyIndexed.ImageAspectRatio.ImageAssemble.ImageAugmentationLayer.ImageBoundingBoxes.ImageCache.ImageCacheValid.ImageCapture.ImageCaptureFunction.ImageCases.ImageChannels.ImageClip.ImageCollage.ImageColorSpace.ImageCompose.ImageContainsQ.ImageContents.ImageConvolve.ImageCooccurrence.ImageCorners.ImageCorrelate.ImageCorrespondingPoints.ImageCrop.ImageData.ImageDeconvolve.ImageDemosaic.ImageDifference.ImageDimensions.ImageDisplacements.ImageDistance.ImageEditMode.ImageEffect.ImageExposureCombine.ImageFeatureTrack.ImageFileApply.ImageFileFilter.ImageFileScan.ImageFilter.ImageFocusCombine.ImageForestingComponents.ImageFormattingWidth.ImageForwardTransformation.ImageGraphics.ImageHistogram.ImageIdentify.ImageInstanceQ.ImageKeypoints.ImageLabels.ImageLegends.ImageLevels.ImageLines.ImageMargins.ImageMarker.ImageMarkers.ImageMeasurements.ImageMesh.ImageMultiply.ImageOffset.ImagePad.ImagePadding.ImagePartition.ImagePeriodogram.ImagePerspectiveTransformation.ImagePosition.ImagePreviewFunction.ImagePyramid.ImagePyramidApply.ImageQ.ImageRangeCache.ImageRecolor.ImageReflect.ImageRegion.ImageResize.ImageResolution.ImageRestyle.ImageRotate.ImageRotated.ImageSaliencyFilter.ImageScaled.ImageScan.ImageSize.ImageSizeAction.ImageSizeCache.ImageSizeMultipliers.ImageSizeRaw.ImageStitch.ImageSubtract.ImageTake.ImageTransformation.ImageTrim.ImageType.ImageValue.ImageValuePositions.ImageVectorscopePlot.ImageWaveformPlot.ImagingDevice.ImplicitD.ImplicitRegion.Implies.Import.ImportAutoReplacements.ImportByteArray.ImportedObject.ImportOptions.ImportString.ImprovementImportance.In.Inactivate.Inactive.InactiveStyle.IncidenceGraph.IncidenceList.IncidenceMatrix.IncludeAromaticBonds.IncludeConstantBasis.IncludedContexts.IncludeDefinitions.IncludeDirectories.IncludeFileExtension.IncludeGeneratorTasks.IncludeHydrogens.IncludeInflections.IncludeMetaInformation.IncludePods.IncludeQuantities.IncludeRelatedTables.IncludeSingularSolutions.IncludeSingularTerm.IncludeWindowTimes.Increment.IndefiniteMatrixQ.Indent.IndentingNewlineSpacings.IndentMaxFraction.IndependenceTest.IndependentEdgeSetQ.IndependentPhysicalQuantity.IndependentUnit.IndependentUnitDimension.IndependentVertexSetQ.Indeterminate.IndeterminateThreshold.IndexCreationOptions.Indexed.IndexEdgeTaggedGraph.IndexGraph.IndexTag.Inequality.InertEvaluate.InertExpression.InexactNumberQ.InexactNumbers.InfiniteFuture.InfiniteLine.InfiniteLineThrough.InfinitePast.InfinitePlane.Infinity.Infix.InflationAdjust.InflationMethod.Information.InformationData.InformationDataGrid.Inherited.InheritScope.InhomogeneousPoissonPointProcess.InhomogeneousPoissonProcess.InitialEvaluationHistory.Initialization.InitializationCell.InitializationCellEvaluation.InitializationCellWarning.InitializationObject.InitializationObjects.InitializationValue.Initialize.InitialSeeding.InlineCounterAssignments.InlineCounterIncrements.InlineRules.Inner.InnerPolygon.InnerPolyhedron.Inpaint.Input.InputAliases.InputAssumptions.InputAutoReplacements.InputField.InputFieldBox.InputFieldBoxOptions.InputForm.InputGrouping.InputNamePacket.InputNotebook.InputPacket.InputPorts.InputSettings.InputStream.InputString.InputStringPacket.InputToBoxFormPacket.Insert.InsertionFunction.InsertionPointObject.InsertLinebreaks.InsertResults.Inset.Inset3DBox.Inset3DBoxOptions.InsetBox.InsetBoxOptions.Insphere.Install.InstallService.InstanceNormalizationLayer.InString.Integer.IntegerDigits.IntegerExponent.IntegerLength.IntegerName.IntegerPart.IntegerPartitions.IntegerQ.IntegerReverse.Integers.IntegerString.Integral.Integrate.IntegrateChangeVariables.Interactive.InteractiveTradingChart.InterfaceSwitched.Interlaced.Interleaving.InternallyBalancedDecomposition.InterpolatingFunction.InterpolatingPolynomial.Interpolation.InterpolationOrder.InterpolationPoints.InterpolationPrecision.Interpretation.InterpretationBox.InterpretationBoxOptions.InterpretationFunction.Interpreter.InterpretTemplate.InterquartileRange.Interrupt.InterruptSettings.IntersectedEntityClass.IntersectingQ.Intersection.Interval.IntervalIntersection.IntervalMarkers.IntervalMarkersStyle.IntervalMemberQ.IntervalSlider.IntervalUnion.Into.Inverse.InverseBetaRegularized.InverseBilateralLaplaceTransform.InverseBilateralZTransform.InverseCDF.InverseChiSquareDistribution.InverseContinuousWaveletTransform.InverseDistanceTransform.InverseEllipticNomeQ.InverseErf.InverseErfc.InverseFourier.InverseFourierCosTransform.InverseFourierSequenceTransform.InverseFourierSinTransform.InverseFourierTransform.InverseFunction.InverseFunctions.InverseGammaDistribution.InverseGammaRegularized.InverseGaussianDistribution.InverseGudermannian.InverseHankelTransform.InverseHaversine.InverseImagePyramid.InverseJacobiCD.InverseJacobiCN.InverseJacobiCS.InverseJacobiDC.InverseJacobiDN.InverseJacobiDS.InverseJacobiNC.InverseJacobiND.InverseJacobiNS.InverseJacobiSC.InverseJacobiSD.InverseJacobiSN.InverseLaplaceTransform.InverseMellinTransform.InversePermutation.InverseRadon.InverseRadonTransform.InverseSeries.InverseShortTimeFourier.InverseSpectrogram.InverseSurvivalFunction.InverseTransformedRegion.InverseWaveletTransform.InverseWeierstrassP.InverseWishartMatrixDistribution.InverseZTransform.Invisible.InvisibleApplication.InvisibleTimes.IPAddress.IrreduciblePolynomialQ.IslandData.IsolatingInterval.IsomorphicGraphQ.IsomorphicSubgraphQ.IsotopeData.Italic.Item.ItemAspectRatio.ItemBox.ItemBoxOptions.ItemDisplayFunction.ItemSize.ItemStyle.ItoProcess.JaccardDissimilarity.JacobiAmplitude.Jacobian.JacobiCD.JacobiCN.JacobiCS.JacobiDC.JacobiDN.JacobiDS.JacobiEpsilon.JacobiNC.JacobiND.JacobiNS.JacobiP.JacobiSC.JacobiSD.JacobiSN.JacobiSymbol.JacobiZeta.JacobiZN.JankoGroupJ1.JankoGroupJ2.JankoGroupJ3.JankoGroupJ4.JarqueBeraALMTest.JohnsonDistribution.Join.JoinAcross.Joined.JoinedCurve.JoinedCurveBox.JoinedCurveBoxOptions.JoinForm.JordanDecomposition.JordanModelDecomposition.JulianDate.JuliaSetBoettcher.JuliaSetIterationCount.JuliaSetPlot.JuliaSetPoints.K.KagiChart.KaiserBesselWindow.KaiserWindow.KalmanEstimator.KalmanFilter.KarhunenLoeveDecomposition.KaryTree.KatzCentrality.KCoreComponents.KDistribution.KEdgeConnectedComponents.KEdgeConnectedGraphQ.KeepExistingVersion.KelvinBei.KelvinBer.KelvinKei.KelvinKer.KendallTau.KendallTauTest.KernelConfiguration.KernelExecute.KernelFunction.KernelMixtureDistribution.KernelObject.Kernels.Ket.Key.KeyCollisionFunction.KeyComplement.KeyDrop.KeyDropFrom.KeyExistsQ.KeyFreeQ.KeyIntersection.KeyMap.KeyMemberQ.KeypointStrength.Keys.KeySelect.KeySort.KeySortBy.KeyTake.KeyUnion.KeyValueMap.KeyValuePattern.Khinchin.KillProcess.KirchhoffGraph.KirchhoffMatrix.KleinInvariantJ.KnapsackSolve.KnightTourGraph.KnotData.KnownUnitQ.KochCurve.KolmogorovSmirnovTest.KroneckerDelta.KroneckerModelDecomposition.KroneckerProduct.KroneckerSymbol.KuiperTest.KumaraswamyDistribution.Kurtosis.KuwaharaFilter.KVertexConnectedComponents.KVertexConnectedGraphQ.LABColor.Label.Labeled.LabeledSlider.LabelingFunction.LabelingSize.LabelStyle.LabelVisibility.LaguerreL.LakeData.LambdaComponents.LambertW.LameC.LameCPrime.LameEigenvalueA.LameEigenvalueB.LameS.LameSPrime.LaminaData.LanczosWindow.LandauDistribution.Language.LanguageCategory.LanguageData.LanguageIdentify.LanguageOptions.LaplaceDistribution.LaplaceTransform.Laplacian.LaplacianFilter.LaplacianGaussianFilter.LaplacianPDETerm.Large.Larger.Last.Latitude.LatitudeLongitude.LatticeData.LatticeReduce.Launch.LaunchKernels.LayeredGraphPlot.LayeredGraphPlot3D.LayerSizeFunction.LayoutInformation.LCHColor.LCM.LeaderSize.LeafCount.LeapVariant.LeapYearQ.LearnDistribution.LearnedDistribution.LearningRate.LearningRateMultipliers.LeastSquares.LeastSquaresFilterKernel.Left.LeftArrow.LeftArrowBar.LeftArrowRightArrow.LeftDownTeeVector.LeftDownVector.LeftDownVectorBar.LeftRightArrow.LeftRightVector.LeftTee.LeftTeeArrow.LeftTeeVector.LeftTriangle.LeftTriangleBar.LeftTriangleEqual.LeftUpDownVector.LeftUpTeeVector.LeftUpVector.LeftUpVectorBar.LeftVector.LeftVectorBar.LegendAppearance.Legended.LegendFunction.LegendLabel.LegendLayout.LegendMargins.LegendMarkers.LegendMarkerSize.LegendreP.LegendreQ.LegendreType.Length.LengthWhile.LerchPhi.Less.LessEqual.LessEqualGreater.LessEqualThan.LessFullEqual.LessGreater.LessLess.LessSlantEqual.LessThan.LessTilde.LetterCharacter.LetterCounts.LetterNumber.LetterQ.Level.LeveneTest.LeviCivitaTensor.LevyDistribution.Lexicographic.LexicographicOrder.LexicographicSort.LibraryDataType.LibraryFunction.LibraryFunctionDeclaration.LibraryFunctionError.LibraryFunctionInformation.LibraryFunctionLoad.LibraryFunctionUnload.LibraryLoad.LibraryUnload.LicenseEntitlementObject.LicenseEntitlements.LicenseID.LicensingSettings.LiftingFilterData.LiftingWaveletTransform.LightBlue.LightBrown.LightCyan.Lighter.LightGray.LightGreen.Lighting.LightingAngle.LightMagenta.LightOrange.LightPink.LightPurple.LightRed.LightSources.LightYellow.Likelihood.Limit.LimitsPositioning.LimitsPositioningTokens.LindleyDistribution.Line.Line3DBox.Line3DBoxOptions.LinearFilter.LinearFractionalOptimization.LinearFractionalTransform.LinearGradientFilling.LinearGradientImage.LinearizingTransformationData.LinearLayer.LinearModelFit.LinearOffsetFunction.LinearOptimization.LinearProgramming.LinearRecurrence.LinearSolve.LinearSolveFunction.LineBox.LineBoxOptions.LineBreak.LinebreakAdjustments.LineBreakChart.LinebreakSemicolonWeighting.LineBreakWithin.LineColor.LineGraph.LineIndent.LineIndentMaxFraction.LineIntegralConvolutionPlot.LineIntegralConvolutionScale.LineLegend.LineOpacity.LineSpacing.LineWrapParts.LinkActivate.LinkClose.LinkConnect.LinkConnectedQ.LinkCreate.LinkError.LinkFlush.LinkFunction.LinkHost.LinkInterrupt.LinkLaunch.LinkMode.LinkObject.LinkOpen.LinkOptions.LinkPatterns.LinkProtocol.LinkRankCentrality.LinkRead.LinkReadHeld.LinkReadyQ.Links.LinkService.LinkWrite.LinkWriteHeld.LiouvilleLambda.List.Listable.ListAnimate.ListContourPlot.ListContourPlot3D.ListConvolve.ListCorrelate.ListCurvePathPlot.ListDeconvolve.ListDensityPlot.ListDensityPlot3D.Listen.ListFormat.ListFourierSequenceTransform.ListInterpolation.ListLineIntegralConvolutionPlot.ListLinePlot.ListLinePlot3D.ListLogLinearPlot.ListLogLogPlot.ListLogPlot.ListPicker.ListPickerBox.ListPickerBoxBackground.ListPickerBoxOptions.ListPlay.ListPlot.ListPlot3D.ListPointPlot3D.ListPolarPlot.ListQ.ListSliceContourPlot3D.ListSliceDensityPlot3D.ListSliceVectorPlot3D.ListStepPlot.ListStreamDensityPlot.ListStreamPlot.ListStreamPlot3D.ListSurfacePlot3D.ListVectorDensityPlot.ListVectorDisplacementPlot.ListVectorDisplacementPlot3D.ListVectorPlot.ListVectorPlot3D.ListZTransform.Literal.LiteralSearch.LiteralType.LoadCompiledComponent.LocalAdaptiveBinarize.LocalCache.LocalClusteringCoefficient.LocalEvaluate.LocalizeDefinitions.LocalizeVariables.LocalObject.LocalObjects.LocalResponseNormalizationLayer.LocalSubmit.LocalSymbol.LocalTime.LocalTimeZone.LocationEquivalenceTest.LocationTest.Locator.LocatorAutoCreate.LocatorBox.LocatorBoxOptions.LocatorCentering.LocatorPane.LocatorPaneBox.LocatorPaneBoxOptions.LocatorRegion.Locked.Log.Log10.Log2.LogBarnesG.LogGamma.LogGammaDistribution.LogicalExpand.LogIntegral.LogisticDistribution.LogisticSigmoid.LogitModelFit.LogLikelihood.LogLinearPlot.LogLogisticDistribution.LogLogPlot.LogMultinormalDistribution.LogNormalDistribution.LogPlot.LogRankTest.LogSeriesDistribution.LongEqual.Longest.LongestCommonSequence.LongestCommonSequencePositions.LongestCommonSubsequence.LongestCommonSubsequencePositions.LongestMatch.LongestOrderedSequence.LongForm.Longitude.LongLeftArrow.LongLeftRightArrow.LongRightArrow.LongShortTermMemoryLayer.Lookup.Loopback.LoopFreeGraphQ.Looping.LossFunction.LowerCaseQ.LowerLeftArrow.LowerRightArrow.LowerTriangularize.LowerTriangularMatrix.LowerTriangularMatrixQ.LowpassFilter.LQEstimatorGains.LQGRegulator.LQOutputRegulatorGains.LQRegulatorGains.LUBackSubstitution.LucasL.LuccioSamiComponents.LUDecomposition.LunarEclipse.LUVColor.LyapunovSolve.LyonsGroupLy.MachineID.MachineName.MachineNumberQ.MachinePrecision.MacintoshSystemPageSetup.Magenta.Magnification.Magnify.MailAddressValidation.MailExecute.MailFolder.MailItem.MailReceiverFunction.MailResponseFunction.MailSearch.MailServerConnect.MailServerConnection.MailSettings.MainSolve.MaintainDynamicCaches.Majority.MakeBoxes.MakeExpression.MakeRules.ManagedLibraryExpressionID.ManagedLibraryExpressionQ.MandelbrotSetBoettcher.MandelbrotSetDistance.MandelbrotSetIterationCount.MandelbrotSetMemberQ.MandelbrotSetPlot.MangoldtLambda.ManhattanDistance.Manipulate.Manipulator.MannedSpaceMissionData.MannWhitneyTest.MantissaExponent.Manual.Map.MapAll.MapApply.MapAt.MapIndexed.MAProcess.MapThread.MarchenkoPasturDistribution.MarcumQ.MardiaCombinedTest.MardiaKurtosisTest.MardiaSkewnessTest.MarginalDistribution.MarkovProcessProperties.Masking.MassConcentrationCondition.MassFluxValue.MassImpermeableBoundaryValue.MassOutflowValue.MassSymmetryValue.MassTransferValue.MassTransportPDEComponent.MatchingDissimilarity.MatchLocalNameQ.MatchLocalNames.MatchQ.Material.MaterialShading.MaternPointProcess.MathematicalFunctionData.MathematicaNotation.MathieuC.MathieuCharacteristicA.MathieuCharacteristicB.MathieuCharacteristicExponent.MathieuCPrime.MathieuGroupM11.MathieuGroupM12.MathieuGroupM22.MathieuGroupM23.MathieuGroupM24.MathieuS.MathieuSPrime.MathMLForm.MathMLText.Matrices.MatrixExp.MatrixForm.MatrixFunction.MatrixLog.MatrixNormalDistribution.MatrixPlot.MatrixPower.MatrixPropertyDistribution.MatrixQ.MatrixRank.MatrixTDistribution.Max.MaxBend.MaxCellMeasure.MaxColorDistance.MaxDate.MaxDetect.MaxDisplayedChildren.MaxDuration.MaxExtraBandwidths.MaxExtraConditions.MaxFeatureDisplacement.MaxFeatures.MaxFilter.MaximalBy.Maximize.MaxItems.MaxIterations.MaxLimit.MaxMemoryUsed.MaxMixtureKernels.MaxOverlapFraction.MaxPlotPoints.MaxPoints.MaxRecursion.MaxStableDistribution.MaxStepFraction.MaxSteps.MaxStepSize.MaxTrainingRounds.MaxValue.MaxwellDistribution.MaxWordGap.McLaughlinGroupMcL.Mean.MeanAbsoluteLossLayer.MeanAround.MeanClusteringCoefficient.MeanDegreeConnectivity.MeanDeviation.MeanFilter.MeanGraphDistance.MeanNeighborDegree.MeanPointDensity.MeanShift.MeanShiftFilter.MeanSquaredLossLayer.Median.MedianDeviation.MedianFilter.MedicalTestData.Medium.MeijerG.MeijerGReduce.MeixnerDistribution.MellinConvolve.MellinTransform.MemberQ.MemoryAvailable.MemoryConstrained.MemoryConstraint.MemoryInUse.MengerMesh.Menu.MenuAppearance.MenuCommandKey.MenuEvaluator.MenuItem.MenuList.MenuPacket.MenuSortingValue.MenuStyle.MenuView.Merge.MergeDifferences.MergingFunction.MersennePrimeExponent.MersennePrimeExponentQ.Mesh.MeshCellCentroid.MeshCellCount.MeshCellHighlight.MeshCellIndex.MeshCellLabel.MeshCellMarker.MeshCellMeasure.MeshCellQuality.MeshCells.MeshCellShapeFunction.MeshCellStyle.MeshConnectivityGraph.MeshCoordinates.MeshFunctions.MeshPrimitives.MeshQualityGoal.MeshRange.MeshRefinementFunction.MeshRegion.MeshRegionQ.MeshShading.MeshStyle.Message.MessageDialog.MessageList.MessageName.MessageObject.MessageOptions.MessagePacket.Messages.MessagesNotebook.MetaCharacters.MetaInformation.MeteorShowerData.Method.MethodOptions.MexicanHatWavelet.MeyerWavelet.Midpoint.MIMETypeToFormatList.Min.MinColorDistance.MinDate.MinDetect.MineralData.MinFilter.MinimalBy.MinimalPolynomial.MinimalStateSpaceModel.Minimize.MinimumTimeIncrement.MinIntervalSize.MinkowskiQuestionMark.MinLimit.MinMax.MinorPlanetData.Minors.MinPointSeparation.MinRecursion.MinSize.MinStableDistribution.Minus.MinusPlus.MinValue.Missing.MissingBehavior.MissingDataMethod.MissingDataRules.MissingQ.MissingString.MissingStyle.MissingValuePattern.MissingValueSynthesis.MittagLefflerE.MixedFractionParts.MixedGraphQ.MixedMagnitude.MixedRadix.MixedRadixQuantity.MixedUnit.MixtureDistribution.Mod.Modal.Mode.ModelPredictiveController.Modular.ModularInverse.ModularLambda.Module.Modulus.MoebiusMu.Molecule.MoleculeAlign.MoleculeContainsQ.MoleculeDraw.MoleculeEquivalentQ.MoleculeFreeQ.MoleculeGraph.MoleculeMatchQ.MoleculeMaximumCommonSubstructure.MoleculeModify.MoleculeName.MoleculePattern.MoleculePlot.MoleculePlot3D.MoleculeProperty.MoleculeQ.MoleculeRecognize.MoleculeSubstructureCount.MoleculeValue.Moment.MomentConvert.MomentEvaluate.MomentGeneratingFunction.MomentOfInertia.Monday.Monitor.MonomialList.MonomialOrder.MonsterGroupM.MoonPhase.MoonPosition.MorletWavelet.MorphologicalBinarize.MorphologicalBranchPoints.MorphologicalComponents.MorphologicalEulerNumber.MorphologicalGraph.MorphologicalPerimeter.MorphologicalTransform.MortalityData.Most.MountainData.MouseAnnotation.MouseAppearance.MouseAppearanceTag.MouseButtons.Mouseover.MousePointerNote.MousePosition.MovieData.MovingAverage.MovingMap.MovingMedian.MoyalDistribution.MultiaxisArrangement.Multicolumn.MultiedgeStyle.MultigraphQ.MultilaunchWarning.MultiLetterItalics.MultiLetterStyle.MultilineFunction.Multinomial.MultinomialDistribution.MultinormalDistribution.MultiplicativeOrder.Multiplicity.MultiplySides.MultiscriptBoxOptions.Multiselection.MultivariateHypergeometricDistribution.MultivariatePoissonDistribution.MultivariateTDistribution.N.NakagamiDistribution.NameQ.Names.NamespaceBox.NamespaceBoxOptions.Nand.NArgMax.NArgMin.NBernoulliB.NBodySimulation.NBodySimulationData.NCache.NCaputoD.NDEigensystem.NDEigenvalues.NDSolve.NDSolveValue.Nearest.NearestFunction.NearestMeshCells.NearestNeighborG.NearestNeighborGraph.NearestTo.NebulaData.NeedlemanWunschSimilarity.Needs.Negative.NegativeBinomialDistribution.NegativeDefiniteMatrixQ.NegativeIntegers.NegativelyOrientedPoints.NegativeMultinomialDistribution.NegativeRationals.NegativeReals.NegativeSemidefiniteMatrixQ.NeighborhoodData.NeighborhoodGraph.Nest.NestedGreaterGreater.NestedLessLess.NestedScriptRules.NestGraph.NestList.NestTree.NestWhile.NestWhileList.NetAppend.NetArray.NetArrayLayer.NetBidirectionalOperator.NetChain.NetDecoder.NetDelete.NetDrop.NetEncoder.NetEvaluationMode.NetExternalObject.NetExtract.NetFlatten.NetFoldOperator.NetGANOperator.NetGraph.NetInformation.NetInitialize.NetInsert.NetInsertSharedArrays.NetJoin.NetMapOperator.NetMapThreadOperator.NetMeasurements.NetModel.NetNestOperator.NetPairEmbeddingOperator.NetPort.NetPortGradient.NetPrepend.NetRename.NetReplace.NetReplacePart.NetSharedArray.NetStateObject.NetTake.NetTrain.NetTrainResultsObject.NetUnfold.NetworkPacketCapture.NetworkPacketRecording.NetworkPacketRecordingDuring.NetworkPacketTrace.NeumannValue.NevilleThetaC.NevilleThetaD.NevilleThetaN.NevilleThetaS.NewPrimitiveStyle.NExpectation.Next.NextCell.NextDate.NextPrime.NextScheduledTaskTime.NeymanScottPointProcess.NFractionalD.NHoldAll.NHoldFirst.NHoldRest.NicholsGridLines.NicholsPlot.NightHemisphere.NIntegrate.NMaximize.NMaxValue.NMinimize.NMinValue.NominalScale.NominalVariables.NonAssociative.NoncentralBetaDistribution.NoncentralChiSquareDistribution.NoncentralFRatioDistribution.NoncentralStudentTDistribution.NonCommutativeMultiply.NonConstants.NondimensionalizationTransform.None.NoneTrue.NonlinearModelFit.NonlinearStateSpaceModel.NonlocalMeansFilter.NonNegative.NonNegativeIntegers.NonNegativeRationals.NonNegativeReals.NonPositive.NonPositiveIntegers.NonPositiveRationals.NonPositiveReals.Nor.NorlundB.Norm.Normal.NormalDistribution.NormalGrouping.NormalizationLayer.Normalize.Normalized.NormalizedSquaredEuclideanDistance.NormalMatrixQ.NormalsFunction.NormFunction.Not.NotCongruent.NotCupCap.NotDoubleVerticalBar.Notebook.NotebookApply.NotebookAutoSave.NotebookBrowseDirectory.NotebookClose.NotebookConvertSettings.NotebookCreate.NotebookDefault.NotebookDelete.NotebookDirectory.NotebookDynamicExpression.NotebookEvaluate.NotebookEventActions.NotebookFileName.NotebookFind.NotebookGet.NotebookImport.NotebookInformation.NotebookInterfaceObject.NotebookLocate.NotebookObject.NotebookOpen.NotebookPath.NotebookPrint.NotebookPut.NotebookRead.Notebooks.NotebookSave.NotebookSelection.NotebooksMenu.NotebookTemplate.NotebookWrite.NotElement.NotEqualTilde.NotExists.NotGreater.NotGreaterEqual.NotGreaterFullEqual.NotGreaterGreater.NotGreaterLess.NotGreaterSlantEqual.NotGreaterTilde.Nothing.NotHumpDownHump.NotHumpEqual.NotificationFunction.NotLeftTriangle.NotLeftTriangleBar.NotLeftTriangleEqual.NotLess.NotLessEqual.NotLessFullEqual.NotLessGreater.NotLessLess.NotLessSlantEqual.NotLessTilde.NotNestedGreaterGreater.NotNestedLessLess.NotPrecedes.NotPrecedesEqual.NotPrecedesSlantEqual.NotPrecedesTilde.NotReverseElement.NotRightTriangle.NotRightTriangleBar.NotRightTriangleEqual.NotSquareSubset.NotSquareSubsetEqual.NotSquareSuperset.NotSquareSupersetEqual.NotSubset.NotSubsetEqual.NotSucceeds.NotSucceedsEqual.NotSucceedsSlantEqual.NotSucceedsTilde.NotSuperset.NotSupersetEqual.NotTilde.NotTildeEqual.NotTildeFullEqual.NotTildeTilde.NotVerticalBar.Now.NoWhitespace.NProbability.NProduct.NProductFactors.NRoots.NSolve.NSolveValues.NSum.NSumTerms.NuclearExplosionData.NuclearReactorData.Null.NullRecords.NullSpace.NullWords.Number.NumberCompose.NumberDecompose.NumberDigit.NumberExpand.NumberFieldClassNumber.NumberFieldDiscriminant.NumberFieldFundamentalUnits.NumberFieldIntegralBasis.NumberFieldNormRepresentatives.NumberFieldRegulator.NumberFieldRootsOfUnity.NumberFieldSignature.NumberForm.NumberFormat.NumberLinePlot.NumberMarks.NumberMultiplier.NumberPadding.NumberPoint.NumberQ.NumberSeparator.NumberSigns.NumberString.Numerator.NumeratorDenominator.NumericalOrder.NumericalSort.NumericArray.NumericArrayQ.NumericArrayType.NumericFunction.NumericQ.NuttallWindow.NValues.NyquistGridLines.NyquistPlot.O.ObjectExistsQ.ObservabilityGramian.ObservabilityMatrix.ObservableDecomposition.ObservableModelQ.OceanData.Octahedron.OddQ.Off.Offset.OLEData.On.ONanGroupON.Once.OneIdentity.Opacity.OpacityFunction.OpacityFunctionScaling.Open.OpenAppend.Opener.OpenerBox.OpenerBoxOptions.OpenerView.OpenFunctionInspectorPacket.Opening.OpenRead.OpenSpecialOptions.OpenTemporary.OpenWrite.Operate.OperatingSystem.OperatorApplied.OptimumFlowData.Optional.OptionalElement.OptionInspectorSettings.OptionQ.Options.OptionsPacket.OptionsPattern.OptionValue.OptionValueBox.OptionValueBoxOptions.Or.Orange.Order.OrderDistribution.OrderedQ.Ordering.OrderingBy.OrderingLayer.Orderless.OrderlessPatternSequence.OrdinalScale.OrnsteinUhlenbeckProcess.Orthogonalize.OrthogonalMatrixQ.Out.Outer.OuterPolygon.OuterPolyhedron.OutputAutoOverwrite.OutputControllabilityMatrix.OutputControllableModelQ.OutputForm.OutputFormData.OutputGrouping.OutputMathEditExpression.OutputNamePacket.OutputPorts.OutputResponse.OutputSizeLimit.OutputStream.Over.OverBar.OverDot.Overflow.OverHat.Overlaps.Overlay.OverlayBox.OverlayBoxOptions.OverlayVideo.Overscript.OverscriptBox.OverscriptBoxOptions.OverTilde.OverVector.OverwriteTarget.OwenT.OwnValues.Package.PackingMethod.PackPaclet.PacletDataRebuild.PacletDirectoryAdd.PacletDirectoryLoad.PacletDirectoryRemove.PacletDirectoryUnload.PacletDisable.PacletEnable.PacletFind.PacletFindRemote.PacletInformation.PacletInstall.PacletInstallSubmit.PacletNewerQ.PacletObject.PacletObjectQ.PacletSite.PacletSiteObject.PacletSiteRegister.PacletSites.PacletSiteUnregister.PacletSiteUpdate.PacletSymbol.PacletUninstall.PacletUpdate.PaddedForm.Padding.PaddingLayer.PaddingSize.PadeApproximant.PadLeft.PadRight.PageBreakAbove.PageBreakBelow.PageBreakWithin.PageFooterLines.PageFooters.PageHeaderLines.PageHeaders.PageHeight.PageRankCentrality.PageTheme.PageWidth.Pagination.PairCorrelationG.PairedBarChart.PairedHistogram.PairedSmoothHistogram.PairedTTest.PairedZTest.PaletteNotebook.PalettePath.PalettesMenuSettings.PalindromeQ.Pane.PaneBox.PaneBoxOptions.Panel.PanelBox.PanelBoxOptions.Paneled.PaneSelector.PaneSelectorBox.PaneSelectorBoxOptions.PaperWidth.ParabolicCylinderD.ParagraphIndent.ParagraphSpacing.ParallelArray.ParallelAxisPlot.ParallelCombine.ParallelDo.Parallelepiped.ParallelEvaluate.Parallelization.Parallelize.ParallelKernels.ParallelMap.ParallelNeeds.Parallelogram.ParallelProduct.ParallelSubmit.ParallelSum.ParallelTable.ParallelTry.Parameter.ParameterEstimator.ParameterMixtureDistribution.ParameterVariables.ParametricConvexOptimization.ParametricFunction.ParametricNDSolve.ParametricNDSolveValue.ParametricPlot.ParametricPlot3D.ParametricRampLayer.ParametricRegion.ParentBox.ParentCell.ParentConnect.ParentDirectory.ParentEdgeLabel.ParentEdgeLabelFunction.ParentEdgeLabelStyle.ParentEdgeShapeFunction.ParentEdgeStyle.ParentEdgeStyleFunction.ParentForm.Parenthesize.ParentList.ParentNotebook.ParetoDistribution.ParetoPickandsDistribution.ParkData.Part.PartBehavior.PartialCorrelationFunction.PartialD.ParticleAcceleratorData.ParticleData.Partition.PartitionGranularity.PartitionsP.PartitionsQ.PartLayer.PartOfSpeech.PartProtection.ParzenWindow.PascalDistribution.PassEventsDown.PassEventsUp.Paste.PasteAutoQuoteCharacters.PasteBoxFormInlineCells.PasteButton.Path.PathGraph.PathGraphQ.Pattern.PatternFilling.PatternReaction.PatternSequence.PatternTest.PauliMatrix.PaulWavelet.Pause.PausedTime.PDF.PeakDetect.PeanoCurve.PearsonChiSquareTest.PearsonCorrelationTest.PearsonDistribution.PenttinenPointProcess.PercentForm.PerfectNumber.PerfectNumberQ.PerformanceGoal.Perimeter.PeriodicBoundaryCondition.PeriodicInterpolation.Periodogram.PeriodogramArray.Permanent.Permissions.PermissionsGroup.PermissionsGroupMemberQ.PermissionsGroups.PermissionsKey.PermissionsKeys.PermutationCycles.PermutationCyclesQ.PermutationGroup.PermutationLength.PermutationList.PermutationListQ.PermutationMatrix.PermutationMax.PermutationMin.PermutationOrder.PermutationPower.PermutationProduct.PermutationReplace.Permutations.PermutationSupport.Permute.PeronaMalikFilter.Perpendicular.PerpendicularBisector.PersistenceLocation.PersistenceTime.PersistentObject.PersistentObjects.PersistentSymbol.PersistentValue.PersonData.PERTDistribution.PetersenGraph.PhaseMargins.PhaseRange.PhongShading.PhysicalSystemData.Pi.Pick.PickedElements.PickMode.PIDData.PIDDerivativeFilter.PIDFeedforward.PIDTune.Piecewise.PiecewiseExpand.PieChart.PieChart3D.PillaiTrace.PillaiTraceTest.PingTime.Pink.PitchRecognize.Pivoting.PixelConstrained.PixelValue.PixelValuePositions.Placed.Placeholder.PlaceholderLayer.PlaceholderReplace.Plain.PlanarAngle.PlanarFaceList.PlanarGraph.PlanarGraphQ.PlanckRadiationLaw.PlaneCurveData.PlanetaryMoonData.PlanetData.PlantData.Play.PlaybackSettings.PlayRange.Plot.Plot3D.Plot3Matrix.PlotDivision.PlotJoined.PlotLabel.PlotLabels.PlotLayout.PlotLegends.PlotMarkers.PlotPoints.PlotRange.PlotRangeClipping.PlotRangeClipPlanesStyle.PlotRangePadding.PlotRegion.PlotStyle.PlotTheme.Pluralize.Plus.PlusMinus.Pochhammer.PodStates.PodWidth.Point.Point3DBox.Point3DBoxOptions.PointBox.PointBoxOptions.PointCountDistribution.PointDensity.PointDensityFunction.PointFigureChart.PointLegend.PointLight.PointProcessEstimator.PointProcessFitTest.PointProcessParameterAssumptions.PointProcessParameterQ.PointSize.PointStatisticFunction.PointValuePlot.PoissonConsulDistribution.PoissonDistribution.PoissonPDEComponent.PoissonPointProcess.PoissonProcess.PoissonWindow.PolarAxes.PolarAxesOrigin.PolarGridLines.PolarPlot.PolarTicks.PoleZeroMarkers.PolyaAeppliDistribution.PolyGamma.Polygon.Polygon3DBox.Polygon3DBoxOptions.PolygonalNumber.PolygonAngle.PolygonBox.PolygonBoxOptions.PolygonCoordinates.PolygonDecomposition.PolygonHoleScale.PolygonIntersections.PolygonScale.Polyhedron.PolyhedronAngle.PolyhedronBox.PolyhedronBoxOptions.PolyhedronCoordinates.PolyhedronData.PolyhedronDecomposition.PolyhedronGenus.PolyLog.PolynomialExpressionQ.PolynomialExtendedGCD.PolynomialForm.PolynomialGCD.PolynomialLCM.PolynomialMod.PolynomialQ.PolynomialQuotient.PolynomialQuotientRemainder.PolynomialReduce.PolynomialRemainder.Polynomials.PolynomialSumOfSquaresList.PoolingLayer.PopupMenu.PopupMenuBox.PopupMenuBoxOptions.PopupView.PopupWindow.Position.PositionIndex.PositionLargest.PositionSmallest.Positive.PositiveDefiniteMatrixQ.PositiveIntegers.PositivelyOrientedPoints.PositiveRationals.PositiveReals.PositiveSemidefiniteMatrixQ.PossibleZeroQ.Postfix.PostScript.Power.PowerDistribution.PowerExpand.PowerMod.PowerModList.PowerRange.PowerSpectralDensity.PowersRepresentations.PowerSymmetricPolynomial.Precedence.PrecedenceForm.Precedes.PrecedesEqual.PrecedesSlantEqual.PrecedesTilde.Precision.PrecisionGoal.PreDecrement.Predict.PredictionRoot.PredictorFunction.PredictorInformation.PredictorMeasurements.PredictorMeasurementsObject.PreemptProtect.PreferencesPath.PreferencesSettings.Prefix.PreIncrement.Prepend.PrependLayer.PrependTo.PreprocessingRules.PreserveColor.PreserveImageOptions.Previous.PreviousCell.PreviousDate.PriceGraphDistribution.PrimaryPlaceholder.Prime.PrimeNu.PrimeOmega.PrimePi.PrimePowerQ.PrimeQ.Primes.PrimeZetaP.PrimitivePolynomialQ.PrimitiveRoot.PrimitiveRootList.PrincipalComponents.PrincipalValue.Print.PrintableASCIIQ.PrintAction.PrintForm.PrintingCopies.PrintingOptions.PrintingPageRange.PrintingStartingPageNumber.PrintingStyleEnvironment.Printout3D.Printout3DPreviewer.PrintPrecision.PrintTemporary.Prism.PrismBox.PrismBoxOptions.PrivateCellOptions.PrivateEvaluationOptions.PrivateFontOptions.PrivateFrontEndOptions.PrivateKey.PrivateNotebookOptions.PrivatePaths.Probability.ProbabilityDistribution.ProbabilityPlot.ProbabilityPr.ProbabilityScalePlot.ProbitModelFit.ProcessConnection.ProcessDirectory.ProcessEnvironment.Processes.ProcessEstimator.ProcessInformation.ProcessObject.ProcessParameterAssumptions.ProcessParameterQ.ProcessStateDomain.ProcessStatus.ProcessTimeDomain.Product.ProductDistribution.ProductLog.ProgressIndicator.ProgressIndicatorBox.ProgressIndicatorBoxOptions.ProgressReporting.Projection.Prolog.PromptForm.ProofObject.PropagateAborts.Properties.Property.PropertyList.PropertyValue.Proportion.Proportional.Protect.Protected.ProteinData.Pruning.PseudoInverse.PsychrometricPropertyData.PublicKey.PublisherID.PulsarData.PunctuationCharacter.Purple.Put.PutAppend.Pyramid.PyramidBox.PyramidBoxOptions.QBinomial.QFactorial.QGamma.QHypergeometricPFQ.QnDispersion.QPochhammer.QPolyGamma.QRDecomposition.QuadraticIrrationalQ.QuadraticOptimization.Quantile.QuantilePlot.Quantity.QuantityArray.QuantityDistribution.QuantityForm.QuantityMagnitude.QuantityQ.QuantityUnit.QuantityVariable.QuantityVariableCanonicalUnit.QuantityVariableDimensions.QuantityVariableIdentifier.QuantityVariablePhysicalQuantity.Quartics.QuartileDeviation.Quartiles.QuartileSkewness.Query.QuestionGenerator.QuestionInterface.QuestionObject.QuestionSelector.QueueingNetworkProcess.QueueingProcess.QueueProperties.Quiet.QuietEcho.Quit.Quotient.QuotientRemainder.RadialAxisPlot.RadialGradientFilling.RadialGradientImage.RadialityCentrality.RadicalBox.RadicalBoxOptions.RadioButton.RadioButtonBar.RadioButtonBox.RadioButtonBoxOptions.Radon.RadonTransform.RamanujanTau.RamanujanTauL.RamanujanTauTheta.RamanujanTauZ.Ramp.Random.RandomArrayLayer.RandomChoice.RandomColor.RandomComplex.RandomDate.RandomEntity.RandomFunction.RandomGeneratorState.RandomGeoPosition.RandomGraph.RandomImage.RandomInstance.RandomInteger.RandomPermutation.RandomPoint.RandomPointConfiguration.RandomPolygon.RandomPolyhedron.RandomPrime.RandomReal.RandomSample.RandomSeed.RandomSeeding.RandomTime.RandomTree.RandomVariate.RandomWalkProcess.RandomWord.Range.RangeFilter.RangeSpecification.RankedMax.RankedMin.RarerProbability.Raster.Raster3D.Raster3DBox.Raster3DBoxOptions.RasterArray.RasterBox.RasterBoxOptions.Rasterize.RasterSize.Rational.RationalExpressionQ.RationalFunctions.Rationalize.Rationals.Ratios.RawArray.RawBoxes.RawData.RawMedium.RayleighDistribution.Re.ReactionBalance.ReactionBalancedQ.ReactionPDETerm.Read.ReadByteArray.ReadLine.ReadList.ReadProtected.ReadString.Real.RealAbs.RealBlockDiagonalForm.RealDigits.RealExponent.Reals.RealSign.Reap.RebuildPacletData.RecalibrationFunction.RecognitionPrior.RecognitionThreshold.ReconstructionMesh.Record.RecordLists.RecordSeparators.Rectangle.RectangleBox.RectangleBoxOptions.RectangleChart.RectangleChart3D.RectangularRepeatingElement.RecurrenceFilter.RecurrenceTable.RecurringDigitsForm.Red.Reduce.RefBox.ReferenceLineStyle.ReferenceMarkers.ReferenceMarkerStyle.Refine.ReflectionMatrix.ReflectionTransform.Refresh.RefreshRate.Region.RegionBinarize.RegionBoundary.RegionBoundaryStyle.RegionBounds.RegionCentroid.RegionCongruent.RegionConvert.RegionDifference.RegionDilation.RegionDimension.RegionDisjoint.RegionDistance.RegionDistanceFunction.RegionEmbeddingDimension.RegionEqual.RegionErosion.RegionFillingStyle.RegionFit.RegionFunction.RegionImage.RegionIntersection.RegionMeasure.RegionMember.RegionMemberFunction.RegionMoment.RegionNearest.RegionNearestFunction.RegionPlot.RegionPlot3D.RegionProduct.RegionQ.RegionResize.RegionSimilar.RegionSize.RegionSymmetricDifference.RegionUnion.RegionWithin.RegisterExternalEvaluator.RegularExpression.Regularization.RegularlySampledQ.RegularPolygon.ReIm.ReImLabels.ReImPlot.ReImStyle.Reinstall.RelationalDatabase.RelationGraph.Release.ReleaseHold.ReliabilityDistribution.ReliefImage.ReliefPlot.RemoteAuthorizationCaching.RemoteBatchJobAbort.RemoteBatchJobObject.RemoteBatchJobs.RemoteBatchMapSubmit.RemoteBatchSubmissionEnvironment.RemoteBatchSubmit.RemoteConnect.RemoteConnectionObject.RemoteEvaluate.RemoteFile.RemoteInputFiles.RemoteKernelObject.RemoteProviderSettings.RemoteRun.RemoteRunProcess.RemovalConditions.Remove.RemoveAlphaChannel.RemoveAsynchronousTask.RemoveAudioStream.RemoveBackground.RemoveChannelListener.RemoveChannelSubscribers.Removed.RemoveDiacritics.RemoveInputStreamMethod.RemoveOutputStreamMethod.RemoveProperty.RemoveScheduledTask.RemoveUsers.RemoveVideoStream.RenameDirectory.RenameFile.RenderAll.RenderingOptions.RenewalProcess.RenkoChart.RepairMesh.Repeated.RepeatedNull.RepeatedString.RepeatedTiming.RepeatingElement.Replace.ReplaceAll.ReplaceAt.ReplaceHeldPart.ReplaceImageValue.ReplaceList.ReplacePart.ReplacePixelValue.ReplaceRepeated.ReplicateLayer.RequiredPhysicalQuantities.Resampling.ResamplingAlgorithmData.ResamplingMethod.Rescale.RescalingTransform.ResetDirectory.ResetScheduledTask.ReshapeLayer.Residue.ResidueSum.ResizeLayer.Resolve.ResolveContextAliases.ResourceAcquire.ResourceData.ResourceFunction.ResourceObject.ResourceRegister.ResourceRemove.ResourceSearch.ResourceSubmissionObject.ResourceSubmit.ResourceSystemBase.ResourceSystemPath.ResourceUpdate.ResourceVersion.ResponseForm.Rest.RestartInterval.Restricted.Resultant.ResumePacket.Return.ReturnCreatesNewCell.ReturnEntersInput.ReturnExpressionPacket.ReturnInputFormPacket.ReturnPacket.ReturnReceiptFunction.ReturnTextPacket.Reverse.ReverseApplied.ReverseBiorthogonalSplineWavelet.ReverseElement.ReverseEquilibrium.ReverseGraph.ReverseSort.ReverseSortBy.ReverseUpEquilibrium.RevolutionAxis.RevolutionPlot3D.RGBColor.RiccatiSolve.RiceDistribution.RidgeFilter.RiemannR.RiemannSiegelTheta.RiemannSiegelZ.RiemannXi.Riffle.Right.RightArrow.RightArrowBar.RightArrowLeftArrow.RightComposition.RightCosetRepresentative.RightDownTeeVector.RightDownVector.RightDownVectorBar.RightTee.RightTeeArrow.RightTeeVector.RightTriangle.RightTriangleBar.RightTriangleEqual.RightUpDownVector.RightUpTeeVector.RightUpVector.RightUpVectorBar.RightVector.RightVectorBar.RipleyK.RipleyRassonRegion.RiskAchievementImportance.RiskReductionImportance.RobustConvexOptimization.RogersTanimotoDissimilarity.RollPitchYawAngles.RollPitchYawMatrix.RomanNumeral.Root.RootApproximant.RootIntervals.RootLocusPlot.RootMeanSquare.RootOfUnityQ.RootReduce.Roots.RootSum.RootTree.Rotate.RotateLabel.RotateLeft.RotateRight.RotationAction.RotationBox.RotationBoxOptions.RotationMatrix.RotationTransform.Round.RoundImplies.RoundingRadius.Row.RowAlignments.RowBackgrounds.RowBox.RowHeights.RowLines.RowMinHeight.RowReduce.RowsEqual.RowSpacings.RSolve.RSolveValue.RudinShapiro.RudvalisGroupRu.Rule.RuleCondition.RuleDelayed.RuleForm.RulePlot.RulerUnits.RulesTree.Run.RunProcess.RunScheduledTask.RunThrough.RuntimeAttributes.RuntimeOptions.RussellRaoDissimilarity.SameAs.SameQ.SameTest.SameTestProperties.SampledEntityClass.SampleDepth.SampledSoundFunction.SampledSoundList.SampleRate.SamplingPeriod.SARIMAProcess.SARMAProcess.SASTriangle.SatelliteData.SatisfiabilityCount.SatisfiabilityInstances.SatisfiableQ.Saturday.Save.Saveable.SaveAutoDelete.SaveConnection.SaveDefinitions.SavitzkyGolayMatrix.SawtoothWave.Scale.Scaled.ScaleDivisions.ScaledMousePosition.ScaleOrigin.ScalePadding.ScaleRanges.ScaleRangeStyle.ScalingFunctions.ScalingMatrix.ScalingTransform.Scan.ScheduledTask.ScheduledTaskActiveQ.ScheduledTaskInformation.ScheduledTaskInformationData.ScheduledTaskObject.ScheduledTasks.SchurDecomposition.ScientificForm.ScientificNotationThreshold.ScorerGi.ScorerGiPrime.ScorerHi.ScorerHiPrime.ScreenRectangle.ScreenStyleEnvironment.ScriptBaselineShifts.ScriptForm.ScriptLevel.ScriptMinSize.ScriptRules.ScriptSizeMultipliers.Scrollbars.ScrollingOptions.ScrollPosition.SearchAdjustment.SearchIndexObject.SearchIndices.SearchQueryString.SearchResultObject.Sec.Sech.SechDistribution.SecondOrderConeOptimization.SectionGrouping.SectorChart.SectorChart3D.SectorOrigin.SectorSpacing.SecuredAuthenticationKey.SecuredAuthenticationKeys.SecurityCertificate.SeedRandom.Select.Selectable.SelectComponents.SelectedCells.SelectedNotebook.SelectFirst.Selection.SelectionAnimate.SelectionCell.SelectionCellCreateCell.SelectionCellDefaultStyle.SelectionCellParentStyle.SelectionCreateCell.SelectionDebuggerTag.SelectionEvaluate.SelectionEvaluateCreateCell.SelectionMove.SelectionPlaceholder.SelectWithContents.SelfLoops.SelfLoopStyle.SemanticImport.SemanticImportString.SemanticInterpretation.SemialgebraicComponentInstances.SemidefiniteOptimization.SendMail.SendMessage.Sequence.SequenceAlignment.SequenceAttentionLayer.SequenceCases.SequenceCount.SequenceFold.SequenceFoldList.SequenceForm.SequenceHold.SequenceIndicesLayer.SequenceLastLayer.SequenceMostLayer.SequencePosition.SequencePredict.SequencePredictorFunction.SequenceReplace.SequenceRestLayer.SequenceReverseLayer.SequenceSplit.Series.SeriesCoefficient.SeriesData.SeriesTermGoal.ServiceConnect.ServiceDisconnect.ServiceExecute.ServiceObject.ServiceRequest.ServiceResponse.ServiceSubmit.SessionSubmit.SessionTime.Set.SetAccuracy.SetAlphaChannel.SetAttributes.Setbacks.SetCloudDirectory.SetCookies.SetDelayed.SetDirectory.SetEnvironment.SetFileDate.SetFileFormatProperties.SetOptions.SetOptionsPacket.SetPermissions.SetPrecision.SetProperty.SetSecuredAuthenticationKey.SetSelectedNotebook.SetSharedFunction.SetSharedVariable.SetStreamPosition.SetSystemModel.SetSystemOptions.Setter.SetterBar.SetterBox.SetterBoxOptions.Setting.SetUsers.Shading.Shallow.ShannonWavelet.ShapiroWilkTest.Share.SharingList.Sharpen.ShearingMatrix.ShearingTransform.ShellRegion.ShenCastanMatrix.ShiftedGompertzDistribution.ShiftRegisterSequence.Short.ShortDownArrow.Shortest.ShortestMatch.ShortestPathFunction.ShortLeftArrow.ShortRightArrow.ShortTimeFourier.ShortTimeFourierData.ShortUpArrow.Show.ShowAutoConvert.ShowAutoSpellCheck.ShowAutoStyles.ShowCellBracket.ShowCellLabel.ShowCellTags.ShowClosedCellArea.ShowCodeAssist.ShowContents.ShowControls.ShowCursorTracker.ShowGroupOpenCloseIcon.ShowGroupOpener.ShowInvisibleCharacters.ShowPageBreaks.ShowPredictiveInterface.ShowSelection.ShowShortBoxForm.ShowSpecialCharacters.ShowStringCharacters.ShowSyntaxStyles.ShrinkingDelay.ShrinkWrapBoundingBox.SiderealTime.SiegelTheta.SiegelTukeyTest.SierpinskiCurve.SierpinskiMesh.Sign.Signature.SignedRankTest.SignedRegionDistance.SignificanceLevel.SignPadding.SignTest.SimilarityRules.SimpleGraph.SimpleGraphQ.SimplePolygonQ.SimplePolyhedronQ.Simplex.Simplify.Sin.Sinc.SinghMaddalaDistribution.SingleEvaluation.SingleLetterItalics.SingleLetterStyle.SingularValueDecomposition.SingularValueList.SingularValuePlot.SingularValues.Sinh.SinhIntegral.SinIntegral.SixJSymbol.Skeleton.SkeletonTransform.SkellamDistribution.Skewness.SkewNormalDistribution.SkinStyle.Skip.SliceContourPlot3D.SliceDensityPlot3D.SliceDistribution.SliceVectorPlot3D.Slider.Slider2D.Slider2DBox.Slider2DBoxOptions.SliderBox.SliderBoxOptions.SlideShowVideo.SlideView.Slot.SlotSequence.Small.SmallCircle.Smaller.SmithDecomposition.SmithDelayCompensator.SmithWatermanSimilarity.SmoothDensityHistogram.SmoothHistogram.SmoothHistogram3D.SmoothKernelDistribution.SmoothPointDensity.SnDispersion.Snippet.SnippetsVideo.SnubPolyhedron.SocialMediaData.Socket.SocketConnect.SocketListen.SocketListener.SocketObject.SocketOpen.SocketReadMessage.SocketReadyQ.Sockets.SocketWaitAll.SocketWaitNext.SoftmaxLayer.SokalSneathDissimilarity.SolarEclipse.SolarSystemFeatureData.SolarTime.SolidAngle.SolidBoundaryLoadValue.SolidData.SolidDisplacementCondition.SolidFixedCondition.SolidMechanicsPDEComponent.SolidMechanicsStrain.SolidMechanicsStress.SolidRegionQ.Solve.SolveAlways.SolveDelayed.SolveValues.Sort.SortBy.SortedBy.SortedEntityClass.Sound.SoundAndGraphics.SoundNote.SoundVolume.SourceLink.SourcePDETerm.Sow.Space.SpaceCurveData.SpaceForm.Spacer.Spacings.Span.SpanAdjustments.SpanCharacterRounding.SpanFromAbove.SpanFromBoth.SpanFromLeft.SpanLineThickness.SpanMaxSize.SpanMinSize.SpanningCharacters.SpanSymmetric.SparseArray.SparseArrayQ.SpatialBinnedPointData.SpatialBoundaryCorrection.SpatialEstimate.SpatialEstimatorFunction.SpatialGraphDistribution.SpatialJ.SpatialMedian.SpatialNoiseLevel.SpatialObservationRegionQ.SpatialPointData.SpatialPointSelect.SpatialRandomnessTest.SpatialTransformationLayer.SpatialTrendFunction.Speak.SpeakerMatchQ.SpearmanRankTest.SpearmanRho.SpeciesData.SpecificityGoal.SpectralLineData.Spectrogram.SpectrogramArray.Specularity.SpeechCases.SpeechInterpreter.SpeechRecognize.SpeechSynthesize.SpellingCorrection.SpellingCorrectionList.SpellingDictionaries.SpellingDictionariesPath.SpellingOptions.Sphere.SphereBox.SphereBoxOptions.SpherePoints.SphericalBesselJ.SphericalBesselY.SphericalHankelH1.SphericalHankelH2.SphericalHarmonicY.SphericalPlot3D.SphericalRegion.SphericalShell.SpheroidalEigenvalue.SpheroidalJoiningFactor.SpheroidalPS.SpheroidalPSPrime.SpheroidalQS.SpheroidalQSPrime.SpheroidalRadialFactor.SpheroidalS1.SpheroidalS1Prime.SpheroidalS2.SpheroidalS2Prime.Splice.SplicedDistribution.SplineClosed.SplineDegree.SplineKnots.SplineWeights.Split.SplitBy.SpokenString.SpotLight.Sqrt.SqrtBox.SqrtBoxOptions.Square.SquaredEuclideanDistance.SquareFreeQ.SquareIntersection.SquareMatrixQ.SquareRepeatingElement.SquaresR.SquareSubset.SquareSubsetEqual.SquareSuperset.SquareSupersetEqual.SquareUnion.SquareWave.SSSTriangle.StabilityMargins.StabilityMarginsStyle.StableDistribution.Stack.StackBegin.StackComplete.StackedDateListPlot.StackedListPlot.StackInhibit.StadiumShape.StandardAtmosphereData.StandardDeviation.StandardDeviationFilter.StandardForm.Standardize.Standardized.StandardOceanData.StandbyDistribution.Star.StarClusterData.StarData.StarGraph.StartAsynchronousTask.StartExternalSession.StartingStepSize.StartOfLine.StartOfString.StartProcess.StartScheduledTask.StartupSound.StartWebSession.StateDimensions.StateFeedbackGains.StateOutputEstimator.StateResponse.StateSpaceModel.StateSpaceRealization.StateSpaceTransform.StateTransformationLinearize.StationaryDistribution.StationaryWaveletPacketTransform.StationaryWaveletTransform.StatusArea.StatusCentrality.StepMonitor.StereochemistryElements.StieltjesGamma.StippleShading.StirlingS1.StirlingS2.StopAsynchronousTask.StoppingPowerData.StopScheduledTask.StrataVariables.StratonovichProcess.StraussHardcorePointProcess.StraussPointProcess.StreamColorFunction.StreamColorFunctionScaling.StreamDensityPlot.StreamMarkers.StreamPlot.StreamPlot3D.StreamPoints.StreamPosition.Streams.StreamScale.StreamStyle.StrictInequalities.String.StringBreak.StringByteCount.StringCases.StringContainsQ.StringCount.StringDelete.StringDrop.StringEndsQ.StringExpression.StringExtract.StringForm.StringFormat.StringFormatQ.StringFreeQ.StringInsert.StringJoin.StringLength.StringMatchQ.StringPadLeft.StringPadRight.StringPart.StringPartition.StringPosition.StringQ.StringRepeat.StringReplace.StringReplaceList.StringReplacePart.StringReverse.StringRiffle.StringRotateLeft.StringRotateRight.StringSkeleton.StringSplit.StringStartsQ.StringTake.StringTakeDrop.StringTemplate.StringToByteArray.StringToStream.StringTrim.StripBoxes.StripOnInput.StripStyleOnPaste.StripWrapperBoxes.StrokeForm.Struckthrough.StructuralImportance.StructuredArray.StructuredArrayHeadQ.StructuredSelection.StruveH.StruveL.Stub.StudentTDistribution.Style.StyleBox.StyleBoxAutoDelete.StyleData.StyleDefinitions.StyleForm.StyleHints.StyleKeyMapping.StyleMenuListing.StyleNameDialogSettings.StyleNames.StylePrint.StyleSheetPath.Subdivide.Subfactorial.Subgraph.SubMinus.SubPlus.SubresultantPolynomialRemainders.SubresultantPolynomials.Subresultants.Subscript.SubscriptBox.SubscriptBoxOptions.Subscripted.Subsequences.Subset.SubsetCases.SubsetCount.SubsetEqual.SubsetMap.SubsetPosition.SubsetQ.SubsetReplace.Subsets.SubStar.SubstitutionSystem.Subsuperscript.SubsuperscriptBox.SubsuperscriptBoxOptions.SubtitleEncoding.SubtitleTrackSelection.Subtract.SubtractFrom.SubtractSides.SubValues.Succeeds.SucceedsEqual.SucceedsSlantEqual.SucceedsTilde.Success.SuchThat.Sum.SumConvergence.SummationLayer.Sunday.SunPosition.Sunrise.Sunset.SuperDagger.SuperMinus.SupernovaData.SuperPlus.Superscript.SuperscriptBox.SuperscriptBoxOptions.Superset.SupersetEqual.SuperStar.Surd.SurdForm.SurfaceAppearance.SurfaceArea.SurfaceColor.SurfaceData.SurfaceGraphics.SurvivalDistribution.SurvivalFunction.SurvivalModel.SurvivalModelFit.SuspendPacket.SuzukiDistribution.SuzukiGroupSuz.SwatchLegend.Switch.Symbol.SymbolName.SymletWavelet.Symmetric.SymmetricDifference.SymmetricGroup.SymmetricKey.SymmetricMatrixQ.SymmetricPolynomial.SymmetricReduction.Symmetrize.SymmetrizedArray.SymmetrizedArrayRules.SymmetrizedDependentComponents.SymmetrizedIndependentComponents.SymmetrizedReplacePart.SynchronousInitialization.SynchronousUpdating.Synonyms.Syntax.SyntaxForm.SyntaxInformation.SyntaxLength.SyntaxPacket.SyntaxQ.SynthesizeMissingValues.SystemCredential.SystemCredentialData.SystemCredentialKey.SystemCredentialKeys.SystemCredentialStoreObject.SystemDialogInput.SystemException.SystemGet.SystemHelpPath.SystemInformation.SystemInformationData.SystemInstall.SystemModel.SystemModeler.SystemModelExamples.SystemModelLinearize.SystemModelMeasurements.SystemModelParametricSimulate.SystemModelPlot.SystemModelProgressReporting.SystemModelReliability.SystemModels.SystemModelSimulate.SystemModelSimulateSensitivity.SystemModelSimulationData.SystemOpen.SystemOptions.SystemProcessData.SystemProcesses.SystemsConnectionsModel.SystemsModelControllerData.SystemsModelDelay.SystemsModelDelayApproximate.SystemsModelDelete.SystemsModelDimensions.SystemsModelExtract.SystemsModelFeedbackConnect.SystemsModelLabels.SystemsModelLinearity.SystemsModelMerge.SystemsModelOrder.SystemsModelParallelConnect.SystemsModelSeriesConnect.SystemsModelStateFeedbackConnect.SystemsModelVectorRelativeOrders.SystemStub.SystemTest.Tab.TabFilling.Table.TableAlignments.TableDepth.TableDirections.TableForm.TableHeadings.TableSpacing.TableView.TableViewBox.TableViewBoxAlignment.TableViewBoxBackground.TableViewBoxHeaders.TableViewBoxItemSize.TableViewBoxItemStyle.TableViewBoxOptions.TabSpacings.TabView.TabViewBox.TabViewBoxOptions.TagBox.TagBoxNote.TagBoxOptions.TaggingRules.TagSet.TagSetDelayed.TagStyle.TagUnset.Take.TakeDrop.TakeLargest.TakeLargestBy.TakeList.TakeSmallest.TakeSmallestBy.TakeWhile.Tally.Tan.Tanh.TargetDevice.TargetFunctions.TargetSystem.TargetUnits.TaskAbort.TaskExecute.TaskObject.TaskRemove.TaskResume.Tasks.TaskSuspend.TaskWait.TautologyQ.TelegraphProcess.TemplateApply.TemplateArgBox.TemplateBox.TemplateBoxOptions.TemplateEvaluate.TemplateExpression.TemplateIf.TemplateObject.TemplateSequence.TemplateSlot.TemplateSlotSequence.TemplateUnevaluated.TemplateVerbatim.TemplateWith.TemporalData.TemporalRegularity.Temporary.TemporaryVariable.TensorContract.TensorDimensions.TensorExpand.TensorProduct.TensorQ.TensorRank.TensorReduce.TensorSymmetry.TensorTranspose.TensorWedge.TerminatedEvaluation.TernaryListPlot.TernaryPlotCorners.TestID.TestReport.TestReportObject.TestResultObject.Tetrahedron.TetrahedronBox.TetrahedronBoxOptions.TeXForm.TeXSave.Text.Text3DBox.Text3DBoxOptions.TextAlignment.TextBand.TextBoundingBox.TextBox.TextCases.TextCell.TextClipboardType.TextContents.TextData.TextElement.TextForm.TextGrid.TextJustification.TextLine.TextPacket.TextParagraph.TextPosition.TextRecognize.TextSearch.TextSearchReport.TextSentences.TextString.TextStructure.TextStyle.TextTranslation.Texture.TextureCoordinateFunction.TextureCoordinateScaling.TextWords.Therefore.ThermodynamicData.ThermometerGauge.Thick.Thickness.Thin.Thinning.ThisLink.ThomasPointProcess.ThompsonGroupTh.Thread.Threaded.ThreadingLayer.ThreeJSymbol.Threshold.Through.Throw.ThueMorse.Thumbnail.Thursday.TickDirection.TickLabelOrientation.TickLabelPositioning.TickLabels.TickLengths.TickPositions.Ticks.TicksStyle.TideData.Tilde.TildeEqual.TildeFullEqual.TildeTilde.TimeConstrained.TimeConstraint.TimeDirection.TimeFormat.TimeGoal.TimelinePlot.TimeObject.TimeObjectQ.TimeRemaining.Times.TimesBy.TimeSeries.TimeSeriesAggregate.TimeSeriesForecast.TimeSeriesInsert.TimeSeriesInvertibility.TimeSeriesMap.TimeSeriesMapThread.TimeSeriesModel.TimeSeriesModelFit.TimeSeriesResample.TimeSeriesRescale.TimeSeriesShift.TimeSeriesThread.TimeSeriesWindow.TimeSystem.TimeSystemConvert.TimeUsed.TimeValue.TimeWarpingCorrespondence.TimeWarpingDistance.TimeZone.TimeZoneConvert.TimeZoneOffset.Timing.Tiny.TitleGrouping.TitsGroupT.ToBoxes.ToCharacterCode.ToColor.ToContinuousTimeModel.ToDate.Today.ToDiscreteTimeModel.ToEntity.ToeplitzMatrix.ToExpression.ToFileName.Together.Toggle.ToggleFalse.Toggler.TogglerBar.TogglerBox.TogglerBoxOptions.ToHeldExpression.ToInvertibleTimeSeries.TokenWords.Tolerance.ToLowerCase.Tomorrow.ToNumberField.TooBig.Tooltip.TooltipBox.TooltipBoxOptions.TooltipDelay.TooltipStyle.ToonShading.Top.TopHatTransform.ToPolarCoordinates.TopologicalSort.ToRadicals.ToRawPointer.ToRules.Torus.TorusGraph.ToSphericalCoordinates.ToString.Total.TotalHeight.TotalLayer.TotalVariationFilter.TotalWidth.TouchPosition.TouchscreenAutoZoom.TouchscreenControlPlacement.ToUpperCase.TourVideo.Tr.Trace.TraceAbove.TraceAction.TraceBackward.TraceDepth.TraceDialog.TraceForward.TraceInternal.TraceLevel.TraceOff.TraceOn.TraceOriginal.TracePrint.TraceScan.TrackCellChangeTimes.TrackedSymbols.TrackingFunction.TracyWidomDistribution.TradingChart.TraditionalForm.TraditionalFunctionNotation.TraditionalNotation.TraditionalOrder.TrainImageContentDetector.TrainingProgressCheckpointing.TrainingProgressFunction.TrainingProgressMeasurements.TrainingProgressReporting.TrainingStoppingCriterion.TrainingUpdateSchedule.TrainTextContentDetector.TransferFunctionCancel.TransferFunctionExpand.TransferFunctionFactor.TransferFunctionModel.TransferFunctionPoles.TransferFunctionTransform.TransferFunctionZeros.TransformationClass.TransformationFunction.TransformationFunctions.TransformationMatrix.TransformedDistribution.TransformedField.TransformedProcess.TransformedRegion.TransitionDirection.TransitionDuration.TransitionEffect.TransitiveClosureGraph.TransitiveReductionGraph.Translate.TranslationOptions.TranslationTransform.Transliterate.Transparent.TransparentColor.Transpose.TransposeLayer.TrapEnterKey.TrapSelection.TravelDirections.TravelDirectionsData.TravelDistance.TravelDistanceList.TravelMethod.TravelTime.Tree.TreeCases.TreeChildren.TreeCount.TreeData.TreeDelete.TreeDepth.TreeElementCoordinates.TreeElementLabel.TreeElementLabelFunction.TreeElementLabelStyle.TreeElementShape.TreeElementShapeFunction.TreeElementSize.TreeElementSizeFunction.TreeElementStyle.TreeElementStyleFunction.TreeExpression.TreeExtract.TreeFold.TreeForm.TreeGraph.TreeGraphQ.TreeInsert.TreeLayout.TreeLeafCount.TreeLeafQ.TreeLeaves.TreeLevel.TreeMap.TreeMapAt.TreeOutline.TreePlot.TreePosition.TreeQ.TreeReplacePart.TreeRules.TreeScan.TreeSelect.TreeSize.TreeTraversalOrder.TrendStyle.Triangle.TriangleCenter.TriangleConstruct.TriangleMeasurement.TriangleWave.TriangularDistribution.TriangulateMesh.Trig.TrigExpand.TrigFactor.TrigFactorList.Trigger.TrigReduce.TrigToExp.TrimmedMean.TrimmedVariance.TropicalStormData.True.TrueQ.TruncatedDistribution.TruncatedPolyhedron.TsallisQExponentialDistribution.TsallisQGaussianDistribution.TTest.Tube.TubeBezierCurveBox.TubeBezierCurveBoxOptions.TubeBox.TubeBoxOptions.TubeBSplineCurveBox.TubeBSplineCurveBoxOptions.Tuesday.TukeyLambdaDistribution.TukeyWindow.TunnelData.Tuples.TuranGraph.TuringMachine.TuttePolynomial.TwoWayRule.Typed.TypeDeclaration.TypeEvaluate.TypeHint.TypeOf.TypeSpecifier.UnateQ.Uncompress.UnconstrainedParameters.Undefined.UnderBar.Underflow.Underlined.Underoverscript.UnderoverscriptBox.UnderoverscriptBoxOptions.Underscript.UnderscriptBox.UnderscriptBoxOptions.UnderseaFeatureData.UndirectedEdge.UndirectedGraph.UndirectedGraphQ.UndoOptions.UndoTrackedVariables.Unequal.UnequalTo.Unevaluated.UniformDistribution.UniformGraphDistribution.UniformPolyhedron.UniformSumDistribution.Uninstall.Union.UnionedEntityClass.UnionPlus.Unique.UniqueElements.UnitaryMatrixQ.UnitBox.UnitConvert.UnitDimensions.Unitize.UnitRootTest.UnitSimplify.UnitStep.UnitSystem.UnitTriangle.UnitVector.UnitVectorLayer.UnityDimensions.UniverseModelData.UniversityData.UnixTime.UnlabeledTree.UnmanageObject.Unprotect.UnregisterExternalEvaluator.UnsameQ.UnsavedVariables.Unset.UnsetShared.Until.UntrackedVariables.Up.UpArrow.UpArrowBar.UpArrowDownArrow.Update.UpdateDynamicObjects.UpdateDynamicObjectsSynchronous.UpdateInterval.UpdatePacletSites.UpdateSearchIndex.UpDownArrow.UpEquilibrium.UpperCaseQ.UpperLeftArrow.UpperRightArrow.UpperTriangularize.UpperTriangularMatrix.UpperTriangularMatrixQ.Upsample.UpSet.UpSetDelayed.UpTee.UpTeeArrow.UpTo.UpValues.URL.URLBuild.URLDecode.URLDispatcher.URLDownload.URLDownloadSubmit.URLEncode.URLExecute.URLExpand.URLFetch.URLFetchAsynchronous.URLParse.URLQueryDecode.URLQueryEncode.URLRead.URLResponseTime.URLSave.URLSaveAsynchronous.URLShorten.URLSubmit.UseEmbeddedLibrary.UseGraphicsRange.UserDefinedWavelet.Using.UsingFrontEnd.UtilityFunction.V2Get.ValenceErrorHandling.ValenceFilling.ValidationLength.ValidationSet.ValueBox.ValueBoxOptions.ValueDimensions.ValueForm.ValuePreprocessingFunction.ValueQ.Values.ValuesData.VandermondeMatrix.Variables.Variance.VarianceEquivalenceTest.VarianceEstimatorFunction.VarianceGammaDistribution.VarianceGammaPointProcess.VarianceTest.VariogramFunction.VariogramModel.VectorAngle.VectorAround.VectorAspectRatio.VectorColorFunction.VectorColorFunctionScaling.VectorDensityPlot.VectorDisplacementPlot.VectorDisplacementPlot3D.VectorGlyphData.VectorGreater.VectorGreaterEqual.VectorLess.VectorLessEqual.VectorMarkers.VectorPlot.VectorPlot3D.VectorPoints.VectorQ.VectorRange.Vectors.VectorScale.VectorScaling.VectorSizes.VectorStyle.Vee.Verbatim.Verbose.VerificationTest.VerifyConvergence.VerifyDerivedKey.VerifyDigitalSignature.VerifyFileSignature.VerifyInterpretation.VerifySecurityCertificates.VerifySolutions.VerifyTestAssumptions.VersionedPreferences.VertexAdd.VertexCapacity.VertexChromaticNumber.VertexColors.VertexComponent.VertexConnectivity.VertexContract.VertexCoordinateRules.VertexCoordinates.VertexCorrelationSimilarity.VertexCosineSimilarity.VertexCount.VertexCoverQ.VertexDataCoordinates.VertexDegree.VertexDelete.VertexDiceSimilarity.VertexEccentricity.VertexInComponent.VertexInComponentGraph.VertexInDegree.VertexIndex.VertexJaccardSimilarity.VertexLabeling.VertexLabels.VertexLabelStyle.VertexList.VertexNormals.VertexOutComponent.VertexOutComponentGraph.VertexOutDegree.VertexQ.VertexRenderingFunction.VertexReplace.VertexShape.VertexShapeFunction.VertexSize.VertexStyle.VertexTextureCoordinates.VertexTransitiveGraphQ.VertexWeight.VertexWeightedGraphQ.Vertical.VerticalBar.VerticalForm.VerticalGauge.VerticalSeparator.VerticalSlider.VerticalTilde.Video.VideoCapture.VideoCombine.VideoDelete.VideoEncoding.VideoExtractFrames.VideoFrameList.VideoFrameMap.VideoGenerator.VideoInsert.VideoIntervals.VideoJoin.VideoMap.VideoMapList.VideoMapTimeSeries.VideoPadding.VideoPause.VideoPlay.VideoQ.VideoRecord.VideoReplace.VideoScreenCapture.VideoSplit.VideoStop.VideoStream.VideoStreams.VideoTimeStretch.VideoTrackSelection.VideoTranscode.VideoTransparency.VideoTrim.ViewAngle.ViewCenter.ViewMatrix.ViewPoint.ViewPointSelectorSettings.ViewPort.ViewProjection.ViewRange.ViewVector.ViewVertical.VirtualGroupData.Visible.VisibleCell.VoiceStyleData.VoigtDistribution.VolcanoData.Volume.VonMisesDistribution.VoronoiMesh.WaitAll.WaitAsynchronousTask.WaitNext.WaitUntil.WakebyDistribution.WalleniusHypergeometricDistribution.WaringYuleDistribution.WarpingCorrespondence.WarpingDistance.WatershedComponents.WatsonUSquareTest.WattsStrogatzGraphDistribution.WaveletBestBasis.WaveletFilterCoefficients.WaveletImagePlot.WaveletListPlot.WaveletMapIndexed.WaveletMatrixPlot.WaveletPhi.WaveletPsi.WaveletScale.WaveletScalogram.WaveletThreshold.WavePDEComponent.WeaklyConnectedComponents.WeaklyConnectedGraphComponents.WeaklyConnectedGraphQ.WeakStationarity.WeatherData.WeatherForecastData.WebAudioSearch.WebColumn.WebElementObject.WeberE.WebExecute.WebImage.WebImageSearch.WebItem.WebPageMetaInformation.WebRow.WebSearch.WebSessionObject.WebSessions.WebWindowObject.Wedge.Wednesday.WeibullDistribution.WeierstrassE1.WeierstrassE2.WeierstrassE3.WeierstrassEta1.WeierstrassEta2.WeierstrassEta3.WeierstrassHalfPeriods.WeierstrassHalfPeriodW1.WeierstrassHalfPeriodW2.WeierstrassHalfPeriodW3.WeierstrassInvariantG2.WeierstrassInvariantG3.WeierstrassInvariants.WeierstrassP.WeierstrassPPrime.WeierstrassSigma.WeierstrassZeta.WeightedAdjacencyGraph.WeightedAdjacencyMatrix.WeightedData.WeightedGraphQ.Weights.WelchWindow.WheelGraph.WhenEvent.Which.While.White.WhiteNoiseProcess.WhitePoint.Whitespace.WhitespaceCharacter.WhittakerM.WhittakerW.WholeCellGroupOpener.WienerFilter.WienerProcess.WignerD.WignerSemicircleDistribution.WikidataData.WikidataSearch.WikipediaData.WikipediaSearch.WilksW.WilksWTest.WindDirectionData.WindingCount.WindingPolygon.WindowClickSelect.WindowElements.WindowFloating.WindowFrame.WindowFrameElements.WindowMargins.WindowMovable.WindowOpacity.WindowPersistentStyles.WindowSelected.WindowSize.WindowStatusArea.WindowTitle.WindowToolbars.WindowWidth.WindSpeedData.WindVectorData.WinsorizedMean.WinsorizedVariance.WishartMatrixDistribution.With.WithCleanup.WithLock.WolframAlpha.WolframAlphaDate.WolframAlphaQuantity.WolframAlphaResult.WolframCloudSettings.WolframLanguageData.Word.WordBoundary.WordCharacter.WordCloud.WordCount.WordCounts.WordData.WordDefinition.WordFrequency.WordFrequencyData.WordList.WordOrientation.WordSearch.WordSelectionFunction.WordSeparators.WordSpacings.WordStem.WordTranslation.WorkingPrecision.WrapAround.Write.WriteLine.WriteString.Wronskian.XMLElement.XMLObject.XMLTemplate.Xnor.Xor.XYZColor.Yellow.Yesterday.YuleDissimilarity.ZernikeR.ZeroSymmetric.ZeroTest.ZeroWidthTimes.Zeta.ZetaZero.ZIPCodeData.ZipfDistribution.ZoomCenter.ZoomFactor.ZTest.ZTransform.$Aborted.$ActivationGroupID.$ActivationKey.$ActivationUserRegistered.$AddOnsDirectory.$AllowDataUpdates.$AllowExternalChannelFunctions.$AllowInternet.$AssertFunction.$Assumptions.$AsynchronousTask.$AudioDecoders.$AudioEncoders.$AudioInputDevices.$AudioOutputDevices.$BaseDirectory.$BasePacletsDirectory.$BatchInput.$BatchOutput.$BlockchainBase.$BoxForms.$ByteOrdering.$CacheBaseDirectory.$Canceled.$ChannelBase.$CharacterEncoding.$CharacterEncodings.$CloudAccountName.$CloudBase.$CloudConnected.$CloudConnection.$CloudCreditsAvailable.$CloudEvaluation.$CloudExpressionBase.$CloudObjectNameFormat.$CloudObjectURLType.$CloudRootDirectory.$CloudSymbolBase.$CloudUserID.$CloudUserUUID.$CloudVersion.$CloudVersionNumber.$CloudWolframEngineVersionNumber.$CommandLine.$CompilationTarget.$CompilerEnvironment.$ConditionHold.$ConfiguredKernels.$Context.$ContextAliases.$ContextPath.$ControlActiveSetting.$Cookies.$CookieStore.$CreationDate.$CryptographicEllipticCurveNames.$CurrentLink.$CurrentTask.$CurrentWebSession.$DataStructures.$DateStringFormat.$DefaultAudioInputDevice.$DefaultAudioOutputDevice.$DefaultFont.$DefaultFrontEnd.$DefaultImagingDevice.$DefaultKernels.$DefaultLocalBase.$DefaultLocalKernel.$DefaultMailbox.$DefaultNetworkInterface.$DefaultPath.$DefaultProxyRules.$DefaultRemoteBatchSubmissionEnvironment.$DefaultRemoteKernel.$DefaultSystemCredentialStore.$Display.$DisplayFunction.$DistributedContexts.$DynamicEvaluation.$Echo.$EmbedCodeEnvironments.$EmbeddableServices.$EntityStores.$Epilog.$EvaluationCloudBase.$EvaluationCloudObject.$EvaluationEnvironment.$ExportFormats.$ExternalIdentifierTypes.$ExternalStorageBase.$Failed.$FinancialDataSource.$FontFamilies.$FormatType.$FrontEnd.$FrontEndSession.$GeneratedAssetLocation.$GeoEntityTypes.$GeoLocation.$GeoLocationCity.$GeoLocationCountry.$GeoLocationPrecision.$GeoLocationSource.$HistoryLength.$HomeDirectory.$HTMLExportRules.$HTTPCookies.$HTTPRequest.$IgnoreEOF.$ImageFormattingWidth.$ImageResolution.$ImagingDevice.$ImagingDevices.$ImportFormats.$IncomingMailSettings.$InitialDirectory.$Initialization.$InitializationContexts.$Input.$InputFileName.$InputStreamMethods.$Inspector.$InstallationDate.$InstallationDirectory.$InterfaceEnvironment.$InterpreterTypes.$IterationLimit.$KernelCount.$KernelID.$Language.$LaunchDirectory.$LibraryPath.$LicenseExpirationDate.$LicenseID.$LicenseProcesses.$LicenseServer.$LicenseSubprocesses.$LicenseType.$Line.$Linked.$LinkSupported.$LoadedFiles.$LocalBase.$LocalSymbolBase.$MachineAddresses.$MachineDomain.$MachineDomains.$MachineEpsilon.$MachineID.$MachineName.$MachinePrecision.$MachineType.$MaxDisplayedChildren.$MaxExtraPrecision.$MaxLicenseProcesses.$MaxLicenseSubprocesses.$MaxMachineNumber.$MaxNumber.$MaxPiecewiseCases.$MaxPrecision.$MaxRootDegree.$MessageGroups.$MessageList.$MessagePrePrint.$Messages.$MinMachineNumber.$MinNumber.$MinorReleaseNumber.$MinPrecision.$MobilePhone.$ModuleNumber.$NetworkConnected.$NetworkInterfaces.$NetworkLicense.$NewMessage.$NewSymbol.$NotebookInlineStorageLimit.$Notebooks.$NoValue.$NumberMarks.$Off.$OperatingSystem.$Output.$OutputForms.$OutputSizeLimit.$OutputStreamMethods.$Packages.$ParentLink.$ParentProcessID.$PasswordFile.$PatchLevelID.$Path.$PathnameSeparator.$PerformanceGoal.$Permissions.$PermissionsGroupBase.$PersistenceBase.$PersistencePath.$PipeSupported.$PlotTheme.$Post.$Pre.$PreferencesDirectory.$PreInitialization.$PrePrint.$PreRead.$PrintForms.$PrintLiteral.$Printout3DPreviewer.$ProcessID.$ProcessorCount.$ProcessorType.$ProductInformation.$ProgramName.$ProgressReporting.$PublisherID.$RandomGeneratorState.$RandomState.$RecursionLimit.$RegisteredDeviceClasses.$RegisteredUserName.$ReleaseNumber.$RequesterAddress.$RequesterCloudUserID.$RequesterCloudUserUUID.$RequesterWolframID.$RequesterWolframUUID.$ResourceSystemBase.$ResourceSystemPath.$RootDirectory.$ScheduledTask.$ScriptCommandLine.$ScriptInputString.$SecuredAuthenticationKeyTokens.$ServiceCreditsAvailable.$Services.$SessionID.$SetParentLink.$SharedFunctions.$SharedVariables.$SoundDisplay.$SoundDisplayFunction.$SourceLink.$SSHAuthentication.$SubtitleDecoders.$SubtitleEncoders.$SummaryBoxDataSizeLimit.$SuppressInputFormHeads.$SynchronousEvaluation.$SyntaxHandler.$System.$SystemCharacterEncoding.$SystemCredentialStore.$SystemID.$SystemMemory.$SystemShell.$SystemTimeZone.$SystemWordLength.$TargetSystems.$TemplatePath.$TemporaryDirectory.$TemporaryPrefix.$TestFileName.$TextStyle.$TimedOut.$TimeUnit.$TimeZone.$TimeZoneEntity.$TopDirectory.$TraceOff.$TraceOn.$TracePattern.$TracePostAction.$TracePreAction.$UnitSystem.$Urgent.$UserAddOnsDirectory.$UserAgentLanguages.$UserAgentMachine.$UserAgentName.$UserAgentOperatingSystem.$UserAgentString.$UserAgentVersion.$UserBaseDirectory.$UserBasePacletsDirectory.$UserDocumentsDirectory.$Username.$UserName.$UserURLBase.$Version.$VersionNumber.$VideoDecoders.$VideoEncoders.$VoiceStyles.$WolframDocumentsDirectory.$WolframID.$WolframUUID`.split(`.`);function r(e){let t=e.regex,r=t.either(t.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),i=t.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),a={className:`number`,relevance:0,begin:t.concat(r,t.optional(i),t.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,s=new Set(n),l={variants:[{className:`builtin-symbol`,begin:o,"on:begin":(e,t)=>{s.has(e[0])||t.ignoreMatch()}},{className:`symbol`,relevance:0,begin:o}]},u={className:`named-character`,begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},d={className:`operator`,relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:`pattern`,relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},p={className:`slot`,relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},m={className:`brace`,relevance:0,begin:/[[\](){}]/},h={className:`message-name`,relevance:0,begin:t.concat(`::`,o)};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:[e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`]}),f,p,h,l,u,e.QUOTE_STRING_MODE,a,d,m]}}t.exports=r})),D7=s(((e,t)=>{function n(e){let t={relevance:0,contains:[{begin:`('|\\.')+`}]};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:t},{begin:`[a-zA-Z][a-zA-Z_0-9]*('|\\.')+`,relevance:0},{className:`number`,begin:e.C_NUMBER_RE,relevance:0,starts:t},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:`string`,begin:`"`,end:`"`,contains:[{begin:`""`}],starts:t},e.COMMENT(`^\\s*%\\{\\s*$`,`^\\s*%\\}\\s*$`),e.COMMENT(`%`,`$`)]}}t.exports=n})),O7=s(((e,t)=>{function n(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:/@/}}t.exports=n})),k7=s(((e,t)=>{function n(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:`{function n(e){let t={keyword:`module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure`,meta:`inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing`,built_in:`some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure`},n=e.COMMENT(`%`,`$`),r={className:`number`,begin:`0'.\\|0[box][0-9a-fA-F]*`},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains=a.contains.slice(),a.contains.push({className:`subst`,begin:`\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]`,relevance:0}),{name:`Mercury`,aliases:[`m`,`moo`],keywords:t,contains:[{className:`built_in`,variants:[{begin:`<=>`},{begin:`<=`,relevance:0},{begin:`=>`,relevance:0},{begin:`/\\\\`},{begin:`\\\\/`}]},{className:`built_in`,variants:[{begin:`:-\\|-->`},{begin:`=`,relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}}t.exports=n})),j7=s(((e,t)=>{function n(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:/\//}}t.exports=n})),M7=s(((e,t)=>{function n(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(`::`,`$`)]}}t.exports=n})),LVt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},u={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},d=[e.BACKSLASH_ESCAPE,a,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},m=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),h=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:d,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}]},u,{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`,t.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:m(`(?:m|qr)?`,/\//,/\//)},{begin:m(`m|qr`,t.either(...f,{capture:!0}),/\1/)},{begin:m(`m|qr`,/\(/,/\)/)},{begin:m(`m|qr`,/\[/,/\]/)},{begin:m(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,u]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=h,o.contains=h,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:h}}t.exports=n})),RVt=s(((e,t)=>{function n(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}]}}t.exports=n})),zVt=s(((e,t)=>{function n(e){let t={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`}},r={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`.split(`.`),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`.split(`.`),literal:[`true`,`false`,`null`]},illegal:/\/\*/,contains:[e.COMMENT(`#rem`,`#end`),e.COMMENT(`'`,`$`,{relevance:0}),n,r,{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,t]}}t.exports=n})),N7=s(((e,t)=>{function n(e){let t={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$_]*`,r={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},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,r]}]},{className:`built_in`,begin:`@__`+e.IDENT_RE},{begin:`@`+e.IDENT_RE},{begin:e.IDENT_RE+`\\\\`+e.IDENT_RE}];r.contains=i;let a=e.inherit(e.TITLE_MODE,{begin:n}),o=`(\\(.*\\)\\s*)?\\B[-=]>`,s={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(i)}]};return{name:`MoonScript`,aliases:[`moon`],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT(`--`,`$`),{className:`function`,begin:`^\\s*`+n+`\\s*=\\s*`+o,end:`[-=]>`,returnBegin:!0,contains:[a,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:`function`,begin:o,end:`[-=]>`,returnBegin:!0,contains:[s]}]},{className:`class`,beginKeywords:`class`,end:`$`,illegal:/[:="\[\]]/,contains:[{beginKeywords:`extends`,endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:`name`,begin:n+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=n})),P7=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`)},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]}}t.exports=n})),F7=s(((e,t)=>{function n(e){return{name:`Nested Text`,aliases:[`nt`],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:`bullet`,4:`string`}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:`punctuation`,4:`string`}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:`attribute`,3:`punctuation`}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:`attribute`,3:`punctuation`,5:`string`}}]}}t.exports=n})),I7=s(((e,t)=>{function n(e){let t=e.regex,n={className:`variable`,variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={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:r.contains,keywords:{section:`upstream location`}},{className:`section`,begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+`\\s`),end:`;|\\{`,contains:[{className:`attribute`,begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:`[^\\s\\}\\{]`}}t.exports=n})),L7=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`),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]}}t.exports=n})),R7=s(((e,t)=>{function n(e){let t=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`]},r={scope:`built_in`,match:t.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`.split(`.`).map(e=>`builtins\\.${e}`)),relevance:10},i=`[A-Za-z_][A-Za-z0-9_'-]*`,a={scope:`symbol`,match:RegExp(`<${i}(/${i})*>`)},o=`[A-Za-z0-9_\\+\\.-]+`,s={scope:`symbol`,match:RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},l=t.either(`==`,`=`,`\\+\\+`,`\\+`,`<=`,`<\\|`,`<`,`>=`,`>`,`->`,`//`,`/`,`!=`,`!`,`\\|\\|`,`\\|>`,`\\?`,`\\*`,`&&`),u={scope:`operator`,match:t.concat(l,/(?!-)/),relevance:0},d={scope:`number`,match:RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:`operator`,beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:`number`,2:`operator`}},{begin:[l,/-/,/(?!>)/],beginScope:{1:`operator`,2:`operator`}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:`attr`,match:RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:`char.escape`,match:/\\\$/},h={scope:`char.escape`,match:/''\$/},g={scope:`subst`,begin:/\$\{/,end:/\}/,keywords:n},_={scope:`char.escape`,match:/'''/},v={scope:`char.escape`,match:/\\(?!\$)./},y={scope:`string`,variants:[{begin:`''`,end:`''`,contains:[h,g,_,v]},{begin:`"`,end:`"`,contains:[m,g,v]}]},b={scope:`params`,match:RegExp(`${i}\\s*:(?=\\s)`)},x=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),r,y,a,s,b,p,f,u];return g.contains=x,{name:`Nix`,aliases:[`nixos`],keywords:n,contains:x.concat([{scope:`meta.prompt`,match:/^nix-repl>(?=\s)/,relevance:10},{scope:`meta`,beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}}t.exports=n})),BVt=s(((e,t)=>{function n(e){return{name:`Node REPL`,contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`javascript`}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),z7=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=`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`.split(`.`),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`.split(`.`),a={className:`variable.constant`,begin:t.concat(/\$/,t.either(...n))},o={className:`variable`,begin:/\$+\{[\!\w.:-]+\}/},s={className:`variable`,begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:`variable`,begin:/\$+\([\w^.:!-]+\)/},u={className:`params`,begin:t.either(...r)},d={className:`keyword`,begin:t.concat(/!/,t.either(...i))},f={className:`char.escape`,begin:/\$(\\[nrt]|\$)/},p={className:`title.function`,begin:/\w+::\w+/},m={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,a,o,s,l]},h=`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`.split(`.`),g=`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`.split(`,`),_={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:`keyword`,3:`title.function`}};return{name:`NSIS`,case_insensitive:!0,keywords:{keyword:h,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),{match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:`keyword`,3:`params`,4:`variable`}},_,{beginKeywords:`Function PageEx Section SectionGroup FunctionEnd SectionEnd`},m,d,o,s,l,u,p,e.NUMBER_MODE]}}t.exports=n})),B7=s(((e,t)=>{function n(e){let t={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_]*/,r={"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`.split(`.`),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`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),VVt=s(((e,t)=>{function n(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:/->/}]}}t.exports=n})),HVt=s(((e,t)=>{function n(e){let t={className:`keyword`,begin:`\\$(f[asn]|t|vp[rtd]|children)`},n={className:`literal`,begin:`false|true|PI|undef`},r={className:`number`,begin:`\\b\\d+(\\.\\d+)?(e-?\\d+)?`,relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:`meta`,keywords:{keyword:`include use`},begin:`include|use <`,end:`>`},o={className:`params`,begin:`\\(`,end:`\\)`,contains:[`self`,r,i,t,n]},s={begin:`[*!#%]`,relevance:0},l={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,r,a,i,t,s,l]}}t.exports=n})),V7=s(((e,t)=>{function n(e){let t={$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}),r=e.COMMENT(`\\(\\*`,`\\*\\)`,{relevance:10}),i={className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},a={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:t,contains:[i,a]},n,r]};return{name:`Oxygene`,case_insensitive:!0,keywords:t,illegal:`("|\\$[G-Zg-z]|\\/\\*||->)`,contains:[n,r,e.C_LINE_COMMENT_MODE,i,a,e.NUMBER_MODE,o,{scope:`punctuation`,match:/;/,relevance:0}]}}t.exports=n})),H7=s(((e,t)=>{function n(e){let t=e.COMMENT(/\{/,/\}/,{contains:[`self`]});return{name:`Parser3`,subLanguage:`xml`,relevance:0,contains:[e.COMMENT(`^#`,`$`),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{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]}}t.exports=n})),U7=s(((e,t)=>{function n(e){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,{className:`variable`,begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:`variable`,begin:/<(?!\/)/,end:/>/}]}}t.exports=n})),W7=s(((e,t)=>{function n(e){let t=e.COMMENT(`--`,`$`),n=`\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$`,r=`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`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`),i=`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`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`);return{name:`PostgreSQL`,aliases:[`postgres`,`postgresql`],supersetOf:`sql`,case_insensitive:!0,keywords:{keyword:`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 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 SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS `,built_in:`CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC 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 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 `},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(`+i+`)\\s*\\(`},{begin:`\\.(`+r+`)\\b`},{begin:`\\b(`+r+`)\\s+PATH\\b`,keywords:{keyword:`PATH`,type:`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 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 `}},{className:`type`,begin:`\\b(`+r+`)\\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:n,end:n,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,t,{className:`meta`,variants:[{begin:`%(ROW)?TYPE`,relevance:10},{begin:`\\$\\d+`},{begin:`^#\\w`,end:`$`}]},{className:`symbol`,begin:`<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>`,relevance:10}]}}t.exports=n})),UVt=s(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ -]`,h={scope:`string`,variants:[d,u,f,p]},g={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},_=[`false`,`null`,`true`],v=`__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`.split(`.`),y=`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`.split(`.`),b={keyword:v,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(_),built_in:y},x=e=>e.map(e=>e.replace(/\|\d+$/,``)),S={variants:[{match:[/new/,t.concat(m,`+`),t.concat(`(?!`,x(y).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},C=t.concat(r,`\\b(?!\\()`),w={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},T={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},E={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[T,o,w,e.C_BLOCK_COMMENT_MODE,h,g,S]},D={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,x(v).join(`\\b|`),`|`,x(y).join(`\\b|`),`\\b)`),r,t.concat(m,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[E]};E.contains.push(D);let O=[T,w,e.C_BLOCK_COMMENT_MODE,h,g,S],k={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:_,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:[`new`,`array`]},contains:[`self`,...O]},...O,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:b,contains:[k,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}]}},s,{scope:`variable.language`,match:/\$this\b/},o,D,w,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},S,{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:b,contains:[`self`,k,o,w,e.C_BLOCK_COMMENT_MODE,h,g]}]},{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]},h,g]}}t.exports=n})),WVt=s(((e,t)=>{function n(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})]}]}}t.exports=n})),GVt=s(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),G7=s(((e,t)=>{function n(e){return{name:`Pony`,keywords:{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`},contains:[{className:`type`,begin:`\\b_?[A-Z][\\w]*`,relevance:0},{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+`'`,relevance:0},{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]}}t.exports=n})),K7=s(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$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`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},l={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},u=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),d={className:`built_in`,variants:[{begin:`(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)+(-)[\\w\\d]+`}]},f={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},p={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},m={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,l,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},h={variants:[{className:`operator`,begin:`(-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)\\b`},{className:`literal`,begin:/(-){1,2}[\w\d-]+/,relevance:0}]},g={className:`selector-tag`,begin:/@\B/,relevance:0},_={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},v=[_,u,i,e.NUMBER_MODE,s,l,d,a,o,g],y={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(v,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return _.contains.unshift(y),{name:`PowerShell`,aliases:[`pwsh`,`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:v.concat(f,p,m,h,y)}}t.exports=n})),q7=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:`built_in`},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:`title.function`}]},a={match:[/new\s+/,r],className:{1:`keyword`,2:`class.title`}},o={relevance:0,match:[/\./,r],className:{2:`property`}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},l=[`boolean`,`byte`,`char`,`color`,`double`,`float`,`int`,`long`,`short`],u=[`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`.split(`.`)],literal:`P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false`,title:`setup draw`,variable:`super this`,built_in:[...n,...u],type:l},contains:[s,a,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),J7=s(((e,t)=>{function n(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}]}}t.exports=n})),Y7=s(((e,t)=>{function n(e){let t={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},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:`comment`,begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:`string`,begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s=[t,n,r,{begin:/:-/},i,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,{className:`string`,begin:/0'(\\'|.)/},{className:`string`,begin:/0'\\s/},e.C_NUMBER_MODE];return r.contains=s,i.contains=s,{name:`Prolog`,contains:s.concat([{begin:/\.$/}])}}t.exports=n})),KVt=s(((e,t)=>{function n(e){let t=`([^\\\\:= \\t\\f\\n]|\\\\.)+`;return{name:`.properties`,disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(`^\\s*[!#]`,`$`),{returnBegin:!0,variants:[{begin:t+`[ \\t\\f]*[:=][ \\t\\f]*`},{begin:t+`[ \\t\\f]+`}],contains:[{className:`attr`,begin:t,endsParent:!0}],starts:{end:`([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)`,relevance:0,starts:{className:`string`,end:/$/,relevance:0,contains:[{begin:`\\\\\\\\`},{begin:`\\\\\\n`}]}}},{className:`attr`,begin:t+`[ \\t\\f]*`+`$`}]}}t.exports=n})),qVt=s(((e,t)=>{function n(e){let t=[`package`,`import`,`option`,`optional`,`required`,`repeated`,`group`,`oneof`],n=[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:`keyword`,2:`title.class`}};return{name:`Protocol Buffers`,aliases:[`proto`],keywords:{keyword:t,type:n,literal:[`true`,`false`]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:`function`,beginKeywords:`rpc`,end:/[{;]/,excludeEnd:!0,keywords:`rpc returns`},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}t.exports=n})),X7=s(((e,t)=>{function n(e){let t={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(`#`,`$`),r=`([A-Za-z_]|::)(\\w|::)*`,i=e.inherit(e.TITLE_MODE,{begin:r}),a={className:`variable`,begin:`\\$`+r},o={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:`Puppet`,aliases:[`pp`],contains:[n,a,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:t,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},a]}],relevance:0}]}}t.exports=n})),Z7=s(((e,t)=>{function n(e){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]},{className:`string`,begin:`(~)?"`,end:`"`,illegal:`\\n`},{className:`symbol`,begin:`#[a-zA-Z_]\\w*\\$?`}]}}t.exports=n})),JVt=s(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`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`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,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`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{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,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},u=`[0-9](_?[0-9])*`,d=`(\\b(${u}))?\\.(${u})|\\b(${u})\\.`,f=`\\b|${r.join(`|`)}`,p={className:`number`,relevance:0,variants:[{begin:`(\\b(${u})|(${d}))[eE][+-]?(${u})[jJ]?(?=${f})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${u})[jJ](?=${f})`}]},m={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,p,l,e.HASH_COMMENT_MODE]}]};return o.contains=[l,p,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,p,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},l,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[h]},{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:[p,h,l]}]}}t.exports=n})),Q7=s(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),$7=s(((e,t)=>{function n(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]}}t.exports=n})),e9=s(((e,t)=>{function n(e){let t=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`},r=`[a-zA-Z_][a-zA-Z0-9\\._]*`,i={className:`keyword`,begin:`\\bproperty\\b`,starts:{className:`string`,end:`(:|=|;|,|//|/\\*|$)`,returnEnd:!0}},a={className:`keyword`,begin:`\\bsignal\\b`,starts:{className:`string`,end:`(\\(|:|=|;|,|//|/\\*|$)`,returnEnd:!0}},o={className:`attribute`,begin:`\\bid\\s*:`,starts:{className:`string`,end:r,returnEnd:!1}},s={begin:r+`\\s*:`,returnBegin:!0,contains:[{className:`attribute`,begin:r,end:`\\s*:`,excludeEnd:!0,relevance:0}],relevance:0},l={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};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},a,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,s,l],illegal:/#/}}t.exports=n})),t9=s(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.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=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.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:t.lookahead(t.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,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),YVt=s(((e,t)=>{function n(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`.split(`.`),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}]}}t.exports=n})),XVt=s(((e,t)=>{function n(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:`{function n(e){let t=`[a-zA-Z-_][^\\n{]+\\{`,n={className:`attribute`,begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:`;`,relevance:0,contains:[{className:`variable`,begin:/\.[a-zA-Z-_]+/},{className:`keyword`,begin:/\(optional\)/}]}};return{name:`Roboconf`,aliases:[`graph`,`instances`],case_insensitive:!0,keywords:`import`,contains:[{begin:`^facet `+t,end:/\}/,keywords:`facet`,contains:[n,e.HASH_COMMENT_MODE]},{begin:`^\\s*instance of `+t,end:/\}/,keywords:`name count channels instance-data instance-state instance of`,illegal:/\S/,contains:[`self`,n,e.HASH_COMMENT_MODE]},{begin:`^`+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}t.exports=n})),ZVt=s(((e,t)=>{function n(e){let t=`foreach do while for if from to step else on-error and or not in`,n=`true false yes no nothing nil null`,r={className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,{className:`variable`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},a={className:`string`,begin:/'/,end:/'/};return{name:`MikroTik RouterOS script`,aliases:[`mikrotik`],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+` :`+t.split(` `).join(` :`)+` :`+`global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime`.split(` `).join(` :`)},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT(`^#`,`$`),i,a,r,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:`attribute`,begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[i,a,r,{className:`literal`,begin:`\\b(`+n.split(` `).join(`|`)+`)\\b`},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:`number`,begin:/\*[0-9a-fA-F]+/},{begin:`\\b(`+`add remove enable disable set get print export edit find run debug error info warning`.split(` `).join(`|`)+`)([\\s[(\\]|])`,returnBegin:!0,contains:[{className:`built_in`,begin:/\w+/}]},{className:`built_in`,variants:[{begin:`(\\.\\./|/|\\s)((`+`traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw`.split(` `).join(`|`)+`);?\\s)+`},{begin:/\.\./,relevance:0}]}]}}t.exports=n})),QVt=s(((e,t)=>{function n(e){let t=`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`.split(`.`),n=[`matrix`,`float`,`color`,`point`,`normal`,`vector`],r=[`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:r,built_in:t,type:n},illegal:`{function n(e){return{name:`Oracle Rules Language`,keywords:{keyword:`BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING`,built_in:`IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`literal`,variants:[{begin:`#\\s+`,relevance:0},{begin:`#[a-zA-Z .]+`}]}]}}t.exports=n})),r9=s(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(32|64))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),l=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],u=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),d=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f32`,`f64`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:d,keyword:s,literal:l,built_in:u},illegal:``},a]}}t.exports=n})),eHt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=`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`.split(`.`);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:`%`+t.either(...`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`.split(`.`))},{className:`title.function`,begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:`meta`,begin:t.either(...r)+`(?=\\()`},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT(`\\*`,`;`),e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),tHt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`meta`,begin:`@[A-Za-z]+`},r={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,r]},{className:`string`,begin:`[a-z]+"""`,end:`"""`,contains:[r],relevance:10}]},a={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},s={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:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},l={className:`function`,beginKeywords:`def`,end:t.lookahead(/[:={\[(\n;]/),contains:[o]},u={begin:[/^\s*/,`extension`,/\s+(?=[[(])/],beginScope:{2:`keyword`}},d={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,a,l,s,e.C_NUMBER_MODE,u,d,...f,p,n]}}t.exports=n})),nHt=s(((e,t)=>{function n(e){let t=`[^\\(\\)\\[\\]\\{\\}",'\`;#|\\\\\\s]+`,n={$pattern:t,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?"},r={className:`literal`,begin:`(#t|#f|#\\\\`+t+`|#\\\\.)`},i={className:`number`,variants:[{begin:`(-|\\+)?\\d+([./]\\d+)?`,relevance:0},{begin:`(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i`,relevance:0},{begin:`#b[0-1]+(/[0-1]+)?`},{begin:`#o[0-7]+(/[0-7]+)?`},{begin:`#x[0-9a-f]+(/[0-9a-f]+)?`}]},a=e.QUOTE_STRING_MODE,o=[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#\\|`,`\\|#`)],s={begin:t,relevance:0},l={className:`symbol`,begin:`'`+t},u={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:`\\(`,end:`\\)`,contains:[`self`,r,a,i,s,l]}]},f={className:`name`,relevance:0,begin:t,keywords:n},p={variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[s]}]},f,u]};return u.contains=[r,i,a,s,l,d,p].concat(o),{name:`Scheme`,aliases:[`scm`],illegal:/\S/,contains:[e.SHEBANG(),i,a,l,d,p].concat(o)}}t.exports=n})),rHt=s(((e,t)=>{function n(e){let t=[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:t},e.COMMENT(`//`,`$`)].concat(t)}}t.exports=n})),iHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse();function d(e){let t=n(e),r=l,i=s,d=`@[a-z-]+`,f={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},f,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.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:[t.BLOCK_COMMENT,f,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:d,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:d,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},f,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=d})),aHt=s(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),i9=s(((e,t)=>{function n(e){let t=`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`.split(`.`);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(`+[`transient`,`constructor`,`abstract`,`final`,`synthetic`,`public`,`private`,`protected`,`static`,`bridge`,`system`].join(`|`)+`)`}]},{className:`built_in`,variants:[{begin:`\\s(`+t.join(`|`)+`)\\s`},{begin:`\\s(`+t.join(`|`)+`)((-|/)[a-zA-Z0-9]+)+\\s`,relevance:10},{begin:`\\s(`+[`aget`,`aput`,`array`,`check`,`execute`,`fill`,`filled`,`goto/16`,`goto/32`,`iget`,`instance`,`invoke`,`iput`,`monitor`,`packed`,`sget`,`sparse`].join(`|`)+`)((-|/)[a-zA-Z0-9]+)*\\s`,relevance:10}]},{className:`class`,begin:`L[^(;: -]*;`,relevance:0},{begin:`[vp][0-9]+`}]}}t.exports=n})),oHt=s(((e,t)=>{function n(e){let t=`[a-z][a-zA-Z0-9_]*`,n={className:`string`,begin:`\\$.{1}`},r={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:t+`:`,relevance:0},e.C_NUMBER_MODE,r,n,{begin:`\\|[ ]*`+t+`([ ]+`+t+`)*[ ]*\\|`,returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:`(\\|[ ]*)?`+t}]},{begin:`#\\(`,end:`\\)`,contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}t.exports=n})),a9=s(((e,t)=>{function n(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:/[-=]>/}]}}t.exports=n})),sHt=s(((e,t)=>{function n(e){let t={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]+/},r={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`.split(`.`),a=`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`.split(`.`),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`.split(`.`),s={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:`define undef ifdef ifndef else endif include if`,contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{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:a},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}t.exports=n})),cHt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`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`.split(`.`),l=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],u=`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`.split(`.`),d=`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`.split(`.`),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`],m=d,h=[...u,...l].filter(e=>!d.includes(e)),g={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},_={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function y(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let b={scope:`keyword`,match:y(p),relevance:0};function x(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(h,{when:e=>e.length<3}),literal:a,type:s,built_in:f},contains:[{scope:`type`,match:y(o)},b,v,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,_]}}t.exports=n})),lHt=s(((e,t)=>{function n(e){let t=e.regex,n=[`functions`,`model`,`data`,`parameters`,`quantities`,`transformed`,`generated`],r=[`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`],a=`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`.split(`.`),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`.split(`.`),s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:`doctag`,match:/@(return|param)/}]}),l={scope:`meta`,begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:`string`},e.C_LINE_COMMENT_MODE]},u=[`lower`,`upper`,`offset`,`multiplier`];return{name:`Stan`,aliases:[`stanfuncs`],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:a},contains:[e.C_LINE_COMMENT_MODE,l,e.HASH_COMMENT_MODE,s,{scope:`built_in`,match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:`keyword`,match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:`built_in`,4:`keyword`}},{scope:`built_in`,keywords:o,begin:t.concat(/\w*/,t.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:`built_in`}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,`(?!.*/\b(`+t.either(...o)+`)\b)`],scope:{2:`title.function`}},{scope:`title.function`,begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:`number`,match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:`string`,begin:/"/,end:/"/}]}}t.exports=n})),uHt=s(((e,t)=>{function n(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(ae>1e5&&ae>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return ne+=a,a.length}let O=te(e);if(!O)throw Se(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let k=je(O),A=``,j=a||k,M={},ee=new u.__emitter(u);T();let ne=``,re=0,ie=0,ae=0,oe=!1;try{if(O.__emitTokens)O.__emitTokens(n,ee);else{for(j.matcher.considerAll();;){ae++,oe?oe=!1:j.matcher.considerAll(),j.matcher.lastIndex=ie;let e=j.matcher.exec(n);if(!e)break;let t=D(n.substring(ie,e.index),e);ie=e.index+t}D(n.substring(ie))}return ee.finalize(),A=ee.toHTML(),{language:e,value:A,relevance:re,illegal:!1,_emitter:ee,_top:j}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Ie(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:ie,context:n.slice(ie-100,ie+100),mode:t.mode,resultSoFar:A},_emitter:ee};if(o)return{language:e,value:Ie(n),illegal:!1,relevance:0,errorRaised:t,_emitter:ee,_top:j};throw t}}function x(e){let t={value:Ie(e),illegal:!1,relevance:0,_top:l,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function C(e,n){n=n||u.languages||Object.keys(t);let r=x(e),i=n.filter(te).filter(re).map(t=>y(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(te(e.language).supersetOf===t.language)return 1;if(te(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function w(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function T(e){let t=null,n=f(e);if(d(n))return;if(se(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(u.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(e)),u.throwUnescapedHTML))throw new Fe(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?m(r,{language:n,ignoreIllegals:!0}):C(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,w(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),se(`after:highlightElement`,{el:e,result:i,text:r})}function E(e){u=Le(u,e)}let D=()=>{A(),we(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function O(){A(),we(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let k=!1;function A(){function e(){A()}if(document.readyState===`loading`){k||window.addEventListener(`DOMContentLoaded`,e,!1),k=!0;return}document.querySelectorAll(u.cssSelector).forEach(T)}function j(n,r){let i=null;try{i=r(e)}catch(e){if(Se(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)Se(e);else throw e;i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&ne(i.aliases,{languageName:n})}function M(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function ee(){return Object.keys(t)}function te(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function ne(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function re(e){let t=te(e);return t&&!t.disableAutodetect}function ie(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ae(e){ie(e),a.push(e)}function oe(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function se(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function le(e){return we(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),we(`10.7.0`,`Please use highlightElement now.`),T(e)}Object.assign(e,{highlight:m,highlightAuto:C,highlightAll:A,highlightElement:T,highlightBlock:le,configure:E,initHighlighting:D,initHighlightingOnLoad:O,registerLanguage:j,unregisterLanguage:M,listLanguages:ee,getLanguage:te,registerAliases:ne,autoDetection:re,inherit:Le,addPlugin:ae,removePlugin:oe}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Pe,e.regex={concat:v,lookahead:h,either:b,optional:_,anyNumberOfTimes:g};for(let e in ce)typeof ce[e]==`object`&&n(ce[e]);return Object.assign(e,ce),e},Ve=Be({});Ve.newInstance=()=>Be({}),t.exports=Ve,Ve.HighlightJS=Ve,Ve.default=Ve})),fBt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+`,n=`далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт `,r=`null истина ложь неопределено`,i=e.inherit(e.NUMBER_MODE),a={className:`string`,begin:`"|\\|`,end:`"|$`,contains:[{begin:`""`}]},o={begin:`'`,end:`'`,excludeBegin:!0,excludeEnd:!0,contains:[{className:`number`,begin:`\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}`}]},s={match:/[;()+\-:=,]/,className:`punctuation`,relevance:0},l=e.inherit(e.C_LINE_COMMENT_MODE),u={className:`meta`,begin:`#|&`,end:`$`,keywords:{$pattern:t,keyword:n+`загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент `},contains:[l]},d={className:`symbol`,begin:`~`,end:`;|:`,excludeEnd:!0},f={className:`function`,variants:[{begin:`процедура|функция`,end:`\\)`,keywords:`процедура функция`},{begin:`конецпроцедуры|конецфункции`,keywords:`конецпроцедуры конецфункции`}],contains:[{begin:`\\(`,end:`\\)`,endsParent:!0,contains:[{className:`params`,begin:t,end:`,`,excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:`знач`,literal:r},contains:[i,a,o]},l]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:`1C:Enterprise`,case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:`разделительстраниц разделительстрок символтабуляции 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 файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек `,class:`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 типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты`,type:`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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив `,literal:r},contains:[u,f,l,d,i,a,o,s]}}t.exports=n})),a7=s(((e,t)=>{function n(e){let t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=[`ALPHA`,`BIT`,`CHAR`,`CR`,`CRLF`,`CTL`,`DIGIT`,`DQUOTE`,`HEXDIG`,`HTAB`,`LF`,`LWSP`,`OCTET`,`SP`,`VCHAR`,`WSP`],i=e.COMMENT(/;/,/$/);return{name:`Augmented Backus-Naur Form`,illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:`operator`,match:/=\/?/},{scope:`attribute`,match:t.concat(n,/(?=\s*=)/)},i,{scope:`symbol`,match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:`symbol`,match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:`symbol`,match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:`symbol`,match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),pBt=s(((e,t)=>{function n(e){let t=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:t.concat(/"/,t.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}]}}t.exports=n})),mBt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat(`(\\.`,n,`)*`)),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={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`.split(`.`),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+/,r],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,a]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}t.exports=n})),hBt=s(((e,t)=>{function n(e){let t=`[A-Za-z](_?[A-Za-z0-9.])*`,n=`[]\\{\\}%#'"`,r=e.COMMENT(`--`,`$`),i={begin:`\\s+:\\s+`,end:`\\s*(:=|;|\\)|=>|$)`,illegal:n,contains:[{beginKeywords:`loop for declare others`,endsParent:!0},{className:`keyword`,beginKeywords:`not null constant access function procedure in out aliased exception`},{className:`type`,begin:t,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`.split(`.`),literal:[`True`,`False`]},contains:[r,{className:`string`,begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:`string`,begin:/'.'/},{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`symbol`,begin:`'`+t},{className:`title`,begin:`(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?`,end:`(is|$)`,keywords:`package body`,excludeBegin:!0,excludeEnd:!0,illegal:n},{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:[r,{className:`title`,begin:`(\\bwith\\s+)?\\b(function|procedure)\\s+`,end:`(\\(|\\s+|$)`,excludeBegin:!0,excludeEnd:!0,illegal:n},i,{className:`type`,begin:`\\breturn\\s+`,end:`(\\s+|;|$)`,keywords:`return`,excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:`type`,begin:`\\b(sub)?type\\s+`,end:`\\s+`,keywords:`type`,excludeBegin:!0,illegal:n},i]}}t.exports=n})),gBt=s(((e,t)=>{function n(e){let t={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_]+@`},r={className:`keyword`,begin:`<`,end:`>`,contains:[t,n]};return t.contains=[r],n.contains=[r],{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`.split(`.`),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_]+`}]}]}]},t,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?)?)`}]}}t.exports=n})),_Bt=s(((e,t)=>{function n(e){let t={className:`number`,begin:/[$%]\d+/},n={className:`number`,begin:/\b\d+/},r={className:`number`,begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:`Apache config`,aliases:[`apacheconf`],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`section`,begin:/<\/?/,end:/>/,contains:[r,{className:`number`,begin:/:\d{1,5}/},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`,t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}t.exports=n})),vBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:`params`,begin:/\(/,end:/\)/,contains:[`self`,e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),a=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`,i]}),e.HASH_COMMENT_MODE];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:t.concat(/\b/,t.either(/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)/),/\b/)},{className:`built_in`,begin:/^\s*return\b/},{className:`literal`,begin:/\b(text item delimiters|current application|missing value)\b/},{className:`keyword`,begin:t.concat(/\b/,t.either(/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/),/\b/)},{beginKeywords:`on`,illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}t.exports=n})),yBt=s(((e,t)=>{function n(e){let t=e.regex,n=`[A-Za-z_][0-9A-Za-z_]*`,r={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`.split(`.`)},i={className:`symbol`,begin:`\\$`+t.either(...`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`.split(`.`))},a={className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},o={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:r,contains:[]},s={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,a,e.REGEXP_MODE];let l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:`ArcGIS Arcade`,case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,{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:r,contains:l}]}]}],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:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}t.exports=n})),bBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={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})"/})]},s={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},l={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(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`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`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`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`.split(`.`),h=`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`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function r(e){let t={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`.split(`.`),_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`.split(`.`),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`]},r=n(e),i=r.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,r.name=`Arduino`,r.aliases=[`ino`],r.supersetOf=`cpp`,r}t.exports=r})),xBt=s(((e,t)=>{function n(e){let t={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)`},t,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}]}}t.exports=n})),SBt=s(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),l=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),u={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:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`style`},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`script`},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:u}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),CBt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:`^'{3,}[ \\t]*$`,relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:`strong`,begin:/\*{2}([^\n]+?)\*{2}/},{className:`strong`,begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:`strong`,begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:`strong`,begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:`emphasis`,begin:/_{2}([^\n]+?)_{2}/},{className:`emphasis`,begin:t.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}];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},{className:`bullet`,begin:`^(\\*+|-+|\\.+|[^\\n]+?::)\\s+`},{className:`symbol`,begin:`^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+`,relevance:10},...r,...i,...a,{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}]}}t.exports=n})),wBt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=[`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(r),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:t.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:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),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:t.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]+/}]}}t.exports=n})),TBt=s(((e,t)=>{function n(e){let t={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:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),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*,`}]}}t.exports=n})),EBt=s(((e,t)=>{function n(e){let t=[`EndRegion`,`forcedef`,`forceref`,`ignorefunc`,`include`,`include-once`,`NoTrayIcon`,`OnAutoItStartRegister`,`pragma`,`Region`,`RequireAdmin`,`Tidy_Off`,`Tidy_On`,`Tidy_Parameters`],n={variants:[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#cs`,`#ce`),e.COMMENT(`#comments-start`,`#comments-end`)]},r={begin:`\\$[A-z0-9_]+`},i={className:`string`,variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`AutoIt`,case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:`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`,built_in:`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`,literal:`True False And Null Not Or Default`},contains:[n,r,i,a,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:t},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,keywords:{keyword:`include`},end:`$`,contains:[i,{className:`string`,variants:[{begin:`<`,end:`>`},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,n]},{className:`symbol`,begin:`@[A-z0-9_]+`},{beginKeywords:`Func`,end:`$`,illegal:`\\$|\\[|%`,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,contains:[r,i,a]}]}]}}t.exports=n})),DBt=s(((e,t)=>{function n(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]+`}]}}t.exports=n})),OBt=s(((e,t)=>{function n(e){return{name:`Awk`,keywords:{keyword:`BEGIN END if else while do for in break continue delete next nextfile function func exit|10`},contains:[{className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{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]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}t.exports=n})),kBt=s(((e,t)=>{function n(e){let t=e.UNDERSCORE_IDENT_RE,n={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`.split(`.`),built_in:[`anytype`,`boolean`,`byte`,`char`,`container`,`date`,`double`,`enum`,`guid`,`int`,`int64`,`long`,`real`,`short`,`str`,`utcdatetime`,`var`],literal:[`default`,`false`,`null`,`true`]},r={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:n};return{name:`X++`,aliases:[`x++`],keywords:n,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:`$`},r]}}t.exports=n})),ABt=s(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=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`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let l={match:/\\"/},u={className:`string`,begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},p=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].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},h=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],g=[`true`,`false`],_={match:/(\/[a-z._-]+)+/},v=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],y=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],b=`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`.split(`.`),x=`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`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:g,built_in:[...v,...y,`set`,`shopt`,...b,...x]},contains:[p,e.SHEBANG(),m,f,a,o,_,s,l,u,d,n]}}t.exports=n})),jBt=s(((e,t)=>{function n(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`.split(`.`)},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})`}]}}t.exports=n})),MBt=s(((e,t)=>{function n(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]}]}}t.exports=n})),NBt=s(((e,t)=>{function n(e){let t={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:[t]},t]}}t.exports=n})),PBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:/\batomic_[a-z]{3,6}\b/}]},o={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})"/})]},s={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},l={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(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f={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`.split(`.`),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`.split(`.`),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`},p=[l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:f,contains:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.concat([`self`]),relevance:0}]),relevance:0},h={begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C`,aliases:[`h`],keywords:f,disableAutodetect:!0,illegal:`=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:o,keywords:f}}}t.exports=n})),FBt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`string`,begin:/(#\d+)+/},o={className:`number`,begin:`\\b\\d+(\\.\\d+)?(DT|D|T)`,relevance:0},s={className:`string`,begin:`"`,end:`"`},l={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:`keyword`,3:`title.function`},contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:n,contains:[i,a,e.NUMBER_MODE]},...r]},u={match:[/OBJECT/,/\s+/,t.either(`Table`,`Form`,`Report`,`Dataport`,`Codeunit`,`XMLport`,`MenuSuite`,`Page`,`Query`),/\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:`false true`},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:`attribute`,relevance:0},i,a,o,s,e.NUMBER_MODE,u,l]}}t.exports=n})),o7=s(((e,t)=>{function n(e){let t=[`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`],r=[`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:t,type:n,literal:r},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]}}t.exports=n})),s7=s(((e,t)=>{function n(e){let t=`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`.split(`.`),n=[`shared`,`abstract`,`formal`,`default`,`actual`,`variable`,`late`,`native`,`deprecated`,`final`,`sealed`,`annotation`,`suppressWarnings`,`small`],r=[`doc`,`by`,`license`,`see`,`throws`,`tagged`],i={className:`subst`,excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{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=a,{name:`Ceylon`,keywords:{keyword:t.concat(n),meta:r},illegal:`\\$[^01]|#[^0-9a-fA-F]`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),{className:`meta`,begin:`@[a-z]\\w*(?::"[^"]*")?`}].concat(a)}}t.exports=n})),c7=s(((e,t)=>{function n(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`.split(`.`),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:`->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>`}]}}t.exports=n})),IBt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&'`,n=`[#]?[`+t+`][`+t+`0-9/;:$#]*`,r=`def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord`,i={$pattern:n,built_in:r+` `+`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`},a={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?/}]},s={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}]},l={scope:`regex`,begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:`punctuation`,match:/,/,relevance:0},f=e.COMMENT(`;`,`$`,{relevance:0}),p={className:`literal`,begin:/\b(true|false|nil)\b/},m={begin:`\\[|(#::?`+n+`)?\\{`,end:`[\\]\\}]`,relevance:0},h={className:`symbol`,begin:`[:]{1,2}`+n},g={begin:`\\(`,end:`\\)`},_={endsWithParent:!0,relevance:0},v={keywords:i,className:`name`,begin:n,relevance:0,starts:_},y=[d,g,s,l,u,f,h,m,o,p,a];return g.contains=[{beginKeywords:r,keywords:{$pattern:n,keyword:r},end:`(\\[|#|\\d|"|:|\\{|\\)|\\(|$)`,contains:[{className:`title`,begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)},v,_],_.contains=y,m.contains=y,{name:`Clojure`,aliases:[`clj`,`edn`],illegal:/\S/,contains:[d,g,s,l,u,f,h,m,o,p]}}t.exports=n})),LBt=s(((e,t)=>{function n(e){return{name:`Clojure REPL`,contains:[{className:`meta.prompt`,begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:`clojure`}}]}}t.exports=n})),l7=s(((e,t)=>{function n(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]}}t.exports=n})),u7=s(((e,t)=>{var n=`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`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`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`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat([`then`,`unless`,`until`,`loop`,`by`,`when`,`and`,`or`,`is`,`isnt`,`not`]).filter((e=>t=>!e.includes(t))([`var`,`const`,`let`,`function`,`static`])),literal:r.concat([`yes`,`no`,`on`,`off`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_][0-9A-Za-z$_]*`,o={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},s=[e.BINARY_NUMBER_MODE,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]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:`regexp`,variants:[{begin:`///`,end:`///`,contains:[o,e.HASH_COMMENT_MODE]},{begin:`//[gim]{0,3}(?=\\W)`,relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:`@`+a},{subLanguage:`javascript`,excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=s;let l=e.inherit(e.TITLE_MODE,{begin:a}),u=`(\\(.*\\)\\s*)?\\B[-=]>`,d={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(s)}]},f={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`CoffeeScript`,aliases:[`coffee`,`cson`,`iced`],keywords:t,illegal:/\/\*/,contains:[...s,e.COMMENT(`###`,`###`),e.HASH_COMMENT_MODE,{className:`function`,begin:`^\\s*`+a+`\\s*=\\s*`+u,end:`[-=]>`,returnBegin:!0,contains:[l,d]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:`function`,begin:u,end:`[-=]>`,returnBegin:!0,contains:[d]}]},f,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}]}}t.exports=a})),d7=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`)},contains:[e.QUOTE_STRING_MODE,e.COMMENT(`\\(\\*`,`\\*\\)`),e.C_NUMBER_MODE,{className:`type`,excludeBegin:!0,begin:`\\|\\s*`,end:`\\w+`},{begin:/[-=]>/}]}}t.exports=n})),RBt=s(((e,t)=>{function n(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`}]}}t.exports=n})),f7=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={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})"/})]},s={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},l={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(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`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`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`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`.split(`.`),h=`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`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),zBt=s(((e,t)=>{function n(e){let t=`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:`primitive rsc_template`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`,starts:{end:`\\s*@?[\\w_][\\w_\\.:-]*`}}},{begin:`\\b(`+t.split(` `).join(`|`)+`)\\s+`,keywords:t,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}]}}t.exports=n})),BBt=s(((e,t)=>{function n(e){let t=`(_?[ui](8|16|32|64|128))?`,n=`[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?`,r=`[A-Za-z_]\\w*(::\\w+)*(\\?|!)?`,i={$pattern:`[a-zA-Z_]\\w*[!?=]?`,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`},a={className:`subst`,begin:/#\{/,end:/\}/,keywords:i},o={className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},s={className:`template-variable`,variants:[{begin:`\\{\\{`,end:`\\}\\}`},{begin:`\\{%`,end:`%\\}`}],keywords:i};function l(e,t){let n=[{begin:e,end:t}];return n[0].contains=n,n}let u={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:`%[Qwi]?\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%[Qwi]?\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%[Qwi]?\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%[Qwi]?<`,end:`>`,contains:l(`<`,`>`)},{begin:`%[Qwi]?\\|`,end:`\\|`},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:`string`,variants:[{begin:`%q\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%q\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%q\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%q<`,end:`>`,contains:l(`<`,`>`)},{begin:`%q\\|`,end:`\\|`},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={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,a],variants:[{begin:`//[a-z]*`,relevance:0},{begin:`/(?!\\/)`,end:`/[a-z]*`}]}],relevance:0},p=[s,u,d,{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`%r\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%r\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%r\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%r<`,end:`>`,contains:l(`<`,`>`)},{begin:`%r\\|`,end:`\\|`}],relevance:0},f,{className:`meta`,begin:`@\\[`,end:`\\]`,contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`})]},o,e.HASH_COMMENT_MODE,{className:`class`,beginKeywords:`class module struct`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r}),{begin:`<`}]},{className:`class`,beginKeywords:`lib enum union`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})]},{beginKeywords:`annotation`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})],relevance:2},{className:`function`,beginKeywords:`def`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:`function`,beginKeywords:`fun macro`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:`,contains:[u,{begin:n}],relevance:0},{className:`number`,variants:[{begin:`\\b0b([01_]+)`+t},{begin:`\\b0o([0-7_]+)`+t},{begin:`\\b0x([A-Fa-f0-9_]+)`+t},{begin:`\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)`},{begin:`\\b([1-9][0-9_]*|0)`+t}],relevance:0}];return a.contains=p,s.contains=p.slice(1),{name:`Crystal`,aliases:[`cr`],keywords:i,contains:p}}t.exports=n})),p7=s(((e,t)=>{function n(e){let t=[`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`],r={keyword:`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`.split(`.`).concat(`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`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a={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},o={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},s={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},l=e.inherit(s,{illegal:/\n/}),u={className:`subst`,begin:/\{/,end:/\}/,keywords:r},d=e.inherit(u,{illegal:/\n/}),f={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},p={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]},m=e.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},d]});u.contains=[p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],d.contains=[m,f,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[o,p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},_=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,v={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,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`}},h,a,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,g,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+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[h,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}t.exports=n})),m7=s(((e,t)=>{function n(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}]}}t.exports=n})),VBt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse();function d(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},d=/@-?\w[\w]*(-\w+)*/,f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+l.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...f,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...f,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=d})),HBt=s(((e,t)=>{function n(e){let t={$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_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))`,r=`\\\\(['"\\?\\\\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,};`,i={className:`number`,begin:`\\b`+n+`(L|u|U|Lu|LU|uL|UL)?`,relevance:0},a={className:`number`,begin:`\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|`+n+`(i|[fF]i|Li)`+`)`,relevance:0},o={className:`string`,begin:`'(`+r+`|.)`,end:`'`,illegal:`.`},s={className:`string`,begin:`"`,contains:[{begin:r,relevance:0}],end:`"[cwd]?`},l={className:`string`,begin:`[rq]"`,end:`"[cwd]?`,relevance:5},u={className:`string`,begin:"`",end:"`[cwd]?"},d={className:`string`,begin:`x"[\\da-fA-F\\s\\n\\r]*"[cwd]?`,relevance:10},f={className:`string`,begin:`q"\\{`,end:`\\}"`},p={className:`meta`,begin:`^#!`,end:`$`,relevance:5},m={className:`meta`,begin:`#(line)`,end:`$`,relevance:5},h={className:`keyword`,begin:`@[a-zA-Z_][a-zA-Z_\\d]*`},g=e.COMMENT(`\\/\\+`,`\\+\\/`,{contains:[`self`],relevance:10});return{name:`D`,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,s,l,u,f,a,i,o,p,m,h]}}t.exports=n})),UBt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={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}]},a={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}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),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}]},l={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),f=e.inherit(u,{contains:[]});l.contains.push(f),u.contains.push(d);let p=[n,s];return[l,u,d,f].forEach(e=>{e.contains=e.contains.concat(p)}),p=p.concat(l,u),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:p},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:p}]}]},n,a,l,u,{className:`quote`,begin:`^>\\s+`,contains:p,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),WBt=s(((e,t)=>{function n(e){let t={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`}]},n={className:`subst`,variants:[{begin:/\$\{/,end:/\}/}],keywords:`true false null this is new super`},r={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,t,n]},{begin:`"""`,end:`"""`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[r,i];let a=`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`.split(`.`),o=a.map(e=>`${e}?`);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`.split(`.`),built_in:a.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]},r,{className:`meta`,begin:`@[A-Za-z]+`},{begin:`=>`}]}}t.exports=n})),GBt=s(((e,t)=>{function n(e){let t=`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`.split(`.`),n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:`meta`,variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={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_]*/}]};return{name:`Delphi`,aliases:[`dpr`,`dfm`,`pas`,`pascal`],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,a,{begin:e.IDENT_RE+`\\s*=\\s*class\\s*\\(`,returnBegin:!0,contains:[e.TITLE_MODE]},{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:t,contains:[i,o,r].concat(n)},r].concat(n)},r].concat(n)}}t.exports=n})),KBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}t.exports=n})),qBt=s(((e,t)=>{function n(e){let t={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:[t],relevance:0}}]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[t]}]}}t.exports=n})),JBt=s(((e,t)=>{function n(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`.split(`.`),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]?/})]}}t.exports=n})),h7=s(((e,t)=>{function n(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:`{function n(e){let t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:`Batch file (DOS)`,aliases:[`bat`,`cmd`],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:[`if`,`else`,`goto`,`for`,`in`,`do`,`call`,`exit`,`not`,`exist`,`errorlevel`,`defined`,`equ`,`neq`,`lss`,`leq`,`gtr`,`geq`],built_in:`prn.nul.lpt3.lpt2.lpt1.con.com4.com3.com2.com1.aux.shift.cd.dir.echo.setlocal.endlocal.set.pause.copy.append.assoc.at.attrib.break.cacls.cd.chcp.chdir.chkdsk.chkntfs.cls.cmd.color.comp.compact.convert.date.dir.diskcomp.diskcopy.doskey.erase.fs.find.findstr.format.ftype.graftabl.help.keyb.label.md.mkdir.mode.more.move.path.pause.print.popd.pushd.promt.rd.recover.rem.rename.replace.restore.rmdir.shift.sort.start.subst.time.title.tree.type.ver.verify.vol.ping.net.ipconfig.taskkill.xcopy.ren.del`.split(`.`)},contains:[{className:`variable`,begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:`function`,begin:{className:`symbol`,begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`,relevance:0}.begin,end:`goto:eof`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),t]},{className:`number`,begin:`\\b\\d+`,relevance:0},t]}}t.exports=n})),XBt=s(((e,t)=>{function n(e){return{keywords:`dsconfig`,contains:[{className:`keyword`,begin:`^dsconfig`,end:/\s/,excludeEnd:!0,relevance:10},{className:`built_in`,begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:`!@#$%^&*()`,relevance:10},{className:`built_in`,begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:`string`,begin:/"/,end:/"/},{className:`string`,begin:/'/,end:/'/},{className:`string`,begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:`string`,begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}t.exports=n})),g7=s(((e,t)=>{function n(e){let t={className:`string`,variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:`((u8?|U)|L)?"`}),{begin:`(u8?|U)?R"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{begin:`'\\\\?.`,end:`'`,illegal:`.`}]},n={className:`number`,variants:[{begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)`},{begin:e.C_NUMBER_RE}],relevance:0},r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef ifdef ifndef`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[e.inherit(t,{className:`string`}),{className:`string`,begin:`<`,end:`>`,illegal:`\\n`}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:`variable`,begin:/&[a-z\d_]*\b/};return{name:`Device Tree`,contains:[{className:`title.class`,begin:/^\/(?=\s*\{)/,relevance:10},i,{className:`keyword`,begin:`/[a-z][a-z\\d-]*/`},{className:`symbol`,begin:`^\\s*[a-zA-Z_][a-zA-Z\\d_]*:`},{className:`title.class`,begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:`attr`,3:`operator`}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:`attr`},{className:`params`,relevance:0,begin:`<`,end:`>`,contains:[n,i]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,{scope:`punctuation`,relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+`::`,keywords:``}]}}t.exports=n})),_7=s(((e,t)=>{function n(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`}]}}t.exports=n})),v7=s(((e,t)=>{function n(e){let t=e.COMMENT(/\(\*/,/\*\)/);return{name:`Extended Backus-Naur Form`,illegal:/\S/,contains:[t,{className:`attribute`,begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:`meta`,begin:/\?.*\?/},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}t.exports=n})),ZBt=s(((e,t)=>{function n(e){let t=e.regex,n=`[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?`,r={$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`.split(`.`),literal:[`false`,`nil`,`true`]},i={className:`subst`,begin:/#\{/,end:/\}/,keywords:r},a={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},o={match:/\\[\s\S]/,scope:`char.escape`,relevance:0},s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],l=e=>({scope:`char.escape`,begin:t.concat(/\\/,e),relevance:0}),u={className:`string`,begin:`~[a-z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end),o,i]}))},d={className:`string`,begin:`~[A-Z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end)]}))},f={className:`regex`,variants:[{begin:`~r(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),o,i]}))},{begin:`~R(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]}))}]},p={className:`string`,contains:[e.BACKSLASH_ESCAPE,i],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:/"/}]},m={className:`function`,beginKeywords:`def defp defmacro defmacrop`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},h=e.inherit(m,{className:`class`,beginKeywords:`defimpl defmodule defprotocol defrecord`,end:/\bdo\b|$|;/}),g=[p,f,d,u,e.HASH_COMMENT_MODE,h,m,{begin:`::`},{className:`symbol`,begin:`:(?![\\s:])`,contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:`symbol`,begin:n+`:(?!:)`,relevance:0},{className:`title.class`,begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},a,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))`}];return i.contains=g,{name:`Elixir`,aliases:[`ex`,`exs`],keywords:r,contains:g}}t.exports=n})),y7=s(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`--`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},n={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},r={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},t]},i={begin:/\{/,end:/\}/,contains:r.contains};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:[r,t],illegal:`\\W\\.|;`},{begin:`import`,end:`$`,keywords:`import as exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`type`,end:`$`,keywords:`type alias`,contains:[n,r,i,t]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,t]},{begin:`port`,end:`$`,keywords:`port`,contains:[t]},{className:`string`,begin:`'\\\\?.`,end:`'`,illegal:`.`},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),t,{begin:`->|<-`}],illegal:/;/}}t.exports=n})),QBt=s(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"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`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},l=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],u={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},d={className:`string`,contains:[e.BACKSLASH_ESCAPE,u],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:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f=`[0-9](_?[0-9])*`,p={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${f}))?([eE][+-]?(${f})|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`}]},m={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},h=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{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:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[d,{begin:n}],relevance:0},p,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,u],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(s,l),relevance:0}].concat(s,l);u.contains=h,m.contains=h;let g=[{begin:/^\s*=>/,starts:{end:`$`,contains:h}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:h}}];return l.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(g,l,h)}}t.exports=n})),$Bt=s(((e,t)=>{function n(e){return{name:`ERB`,subLanguage:`xml`,contains:[e.COMMENT(`<%#`,`%>`),{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),eVt=s(((e,t)=>{function n(e){let t=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:t.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}]}}t.exports=n})),tVt=s(((e,t)=>{function n(e){let t=`[a-z'][a-zA-Z0-9_']*`,n=`(`+t+`:`+t+`|`+t+`)`,r={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(`%`,`$`),a={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+`+t+`/\\d+`},s={begin:n+`\\(`,end:`\\)`,returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:`\\(`,end:`\\)`,endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},u={begin:`\\b_([A-Z][A-Za-z0-9_]*)?`,relevance:0},d={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}|)|.)/},m={scope:`string`,match:/"""("*)(?!")[\s\S]*?"""\1/},h={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:/#/}]},g={beginKeywords:`fun receive if try case maybe`,end:`end`,keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:``}),g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];let _=[i,o,g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];s.contains[1].contains=_,l.contains=_,f.contains[1].contains=_;let v=[`-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`],y={className:`params`,begin:`\\(`,end:`\\)`,contains:_};return{name:`Erlang`,aliases:[`erl`],keywords:r,illegal:`(`,returnBegin:!0,illegal:`\\(|#|//|/\\*|\\\\|:|;`,contains:[y,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:`;|\\.`,keywords:r,contains:_}},i,{begin:`^-`,end:`\\.`,relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:`-`+e.IDENT_RE,keyword:v.map(e=>`${e}|1.5`).join(` `)},contains:[y,h,m,e.QUOTE_STRING_MODE]},a,h,m,e.QUOTE_STRING_MODE,f,u,d,l,p,{begin:/\.$/}]}}t.exports=n})),nVt=s(((e,t)=>{function n(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`.split(`,`)},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/})]}}t.exports=n})),b7=s(((e,t)=>{function n(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}}t.exports=n})),rVt=s(((e,t)=>{function n(e){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,{className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:`string`,variants:[{begin:`"`,end:`"`}]},{className:`function`,beginKeywords:`def`,end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:`title`,relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]},e.C_NUMBER_MODE]}}t.exports=n})),iVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r={variants:[e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`^C[ ]`,`$`,{relevance:0}),e.COMMENT(`^C$`,`$`,{relevance:0})]},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,o={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:t.concat(/\b\d+/,a,i)},{begin:t.concat(/\.\d+/,a,i)}],relevance:0},s={className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]};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`.split(`,`),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`.split(`.`)},illegal:/\/\*/,contains:[{className:`string`,relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}t.exports=n})),aVt=s(((e,t)=>{function n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function r(e){return e?typeof e==`string`?e:e.source:null}function i(e){return a(`(?=`,e,`)`)}function a(...e){return e.map(e=>r(e)).join(``)}function o(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s(...e){return`(`+(o(e).capture?``:`?:`)+e.map(e=>r(e)).join(`|`)+`)`}function l(e){let t=`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`.split(`.`),r={scope:`keyword`,match:/\b(yield|return|let|do|match|use)!/},o=[`if`,`else`,`endif`,`line`,`nowarn`,`light`,`r`,`i`,`I`,`load`,`time`,`help`,`quit`],l=[`true`,`false`,`null`,`Some`,`None`,`Ok`,`Error`,`infinity`,`infinityf`,`nan`,`nanf`],u=[`__LINE__`,`__SOURCE_DIRECTORY__`,`__SOURCE_FILE__`],d=`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`.split(`.`),f={keyword:t,literal:l,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`.split(`.`),"variable.constant":u},p={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:[`self`]}),e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,h={scope:`variable`,begin:/``/,end:/``/},g=/\B('|\^)/,_={scope:`symbol`,variants:[{match:a(g,/``.*?``/)},{match:a(g,e.UNDERSCORE_IDENT_RE)}],relevance:0},v=function({includeEqual:e}){let t;t=e?`!%&*+-/<=>@^|~?`:`!%&*+-/<>@^|~?`;let r=a(`[`,...Array.from(t).map(n),`]`),o=s(r,/\./);return{scope:`operator`,match:s(s(a(a(o,i(o)),o,`*`),a(r,`+`)),/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},y=v({includeEqual:!0}),b=v({includeEqual:!1}),x=function(t,n){return{begin:a(t,i(a(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:i(s(/\n/,/=/)),relevance:0,keywords:e.inherit(f,{type:d}),contains:[p,_,e.inherit(h,{scope:null}),b]}},S=x(/:/,`operator`),C=x(/\bof\b/,`keyword`),w={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:`keyword`,4:`title.class`},end:i(/\(|=|$/),keywords:f,contains:[p,e.inherit(h,{scope:null}),_,{scope:`operator`,match:/<|>/},S]},T={scope:`computation-expression`,match:/\b[_a-z]\w*(?=\s*\{)/},E={begin:[/^\s*/,a(/#/,s(...o)),/\b/],beginScope:{2:`meta`},end:i(/\s|$/)},D={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},O={scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},k={scope:`string`,begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},A={scope:`string`,begin:/"""/,end:/"""/,relevance:2},j={scope:`subst`,begin:/\{/,end:/\}/,keywords:f},M={scope:`string`,begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,j]},ee={scope:`string`,begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,j]},te={scope:`string`,begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},j],relevance:2},ne={scope:`string`,match:a(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return j.contains=[ee,M,k,O,ne,r,p,h,S,T,E,D,_,y],{name:`F#`,aliases:[`fs`,`f#`],keywords:f,illegal:/\/\*/,classNameAliases:{"computation-expression":`keyword`},contains:[r,{variants:[te,ee,M,A,k,O,ne]},p,h,w,{scope:`meta`,begin:/\[\]/,relevance:2,contains:[h,A,k,O,ne,D]},C,S,T,E,D,_,y]}}t.exports=l})),oVt=s(((e,t)=>{function n(e){let t=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`},r={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:`symbol`,variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},a={className:`comment`,variants:[{begin:`'`,end:`'`},{begin:`"`,end:`"`}],illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},o={begin:`/`,end:`/`,keywords:n,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:`$`,endsWithParent:!0,contains:[a,o,{className:`comment`,begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),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,l]},{beginKeywords:`table`,end:`;`,returnBegin:!0,contains:[{beginKeywords:`table`,end:`$`,contains:[l]},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_]+/},r,i]},e.C_NUMBER_MODE,i]}}t.exports=n})),sVt=s(((e,t)=>{function n(e){let t={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(`@`,`@`),r={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}]},a=[{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},s=function(t,r,i){let s=e.inherit({className:`function`,beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(a)},{});return s.contains.push(o),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:`built_in`,begin:`\\b(`+t.built_in.split(` `).join(`|`)+`)\\b`},u={className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:`built_in`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,d,u,`self`]};return d.contains.push(f),{name:`GAUSS`,aliases:[`gss`],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,u,r,{className:`keyword`,begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s(`proc keyword`,`;`),s(`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},d,i]}}t.exports=n})),cVt=s(((e,t)=>{function n(e){let t=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`]},r=/\b/;function i(e,t){if(e.index===0)return;let n=e.input[e.index-1];n>=`0`&&n<=`9`||n!==`_`&&t.ignoreMatch()}let a=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,l=/O\s*\d+/,u=/O<.+>/,d=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/;return{name:`G-code (ISO 6983)`,aliases:[`nc`],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:`title.function`,variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:`symbol`,variants:[{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:t.concat(r,u)},{begin:u,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:`operator`,match:/^N\s*\d+/},{scope:`variable`,match:/-?#\s*\d+/},{scope:`property`,variants:[{match:t.concat(r,d,a)},{begin:t.concat(d,a),"on:begin":i}]},{scope:`params`,variants:[{match:t.concat(r,f,a)},{begin:t.concat(f,a),"on:begin":i}]}]}}t.exports=n})),lVt=s(((e,t)=>{function n(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]}}t.exports=n})),uVt=s(((e,t)=>{function n(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:`$`}]}}t.exports=n})),dVt=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`),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`.split(`.`),"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`.split(`.`)},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),fVt=s(((e,t)=>{function n(e){let t={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:t,illegal:`{function n(e){return{name:`Golo`,keywords:{keyword:`println.readln.print.import.module.function.local.return.let.var.while.for.foreach.times.in.case.when.match.with.break.continue.augment.augmentation.each.find.filter.reduce.if.then.else.otherwise.try.catch.finally.raise.throw.orIfNull.DynamicObject|10.DynamicVariable.struct.Observable.map.set.vector.list.array`.split(`.`),literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`@[A-Za-z]+`}]}}t.exports=n})),mVt=s(((e,t)=>{function n(e){return{name:`Gradle`,case_insensitive:!0,keywords:`task.project.allprojects.subprojects.artifacts.buildscript.configurations.dependencies.repositories.sourceSets.description.delete.from.into.include.exclude.source.classpath.destinationDir.includes.options.sourceCompatibility.targetCompatibility.group.flatDir.doLast.doFirst.flatten.todir.fromdir.ant.def.abstract.break.case.catch.continue.default.do.else.extends.final.finally.for.if.implements.instanceof.native.new.private.protected.public.return.static.switch.synchronized.throw.throws.transient.try.volatile.while.strictfp.package.import.false.null.super.this.true.antlrtask.checkstyle.codenarc.copy.boolean.byte.char.class.double.float.int.interface.long.short.void.compile.runTime.file.fileTree.abs.any.append.asList.asWritable.call.collect.compareTo.count.div.dump.each.eachByte.eachFile.eachLine.every.find.findAll.flatten.getAt.getErr.getIn.getOut.getText.grep.immutable.inject.inspect.intersect.invokeMethods.isCase.join.leftShift.minus.multiply.newInputStream.newOutputStream.newPrintWriter.newReader.newWriter.next.plus.pop.power.previous.print.println.push.putAt.read.readBytes.readLines.reverse.reverseEach.round.size.sort.splitEachLine.step.subMap.times.toInteger.toList.tokenize.upto.waitForOrKill.withPrintWriter.withReader.withStream.withWriter.withWriterAppend.write.writeLine`.split(`.`),contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}t.exports=n})),hVt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),gVt=s(((e,t)=>{function n(e,t={}){return t.variants=e,t}function r(e){let t=e.regex,r=`[A-Za-z0-9_$]+`,i=n([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]})]),a={className:`regexp`,begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=n([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:`\\$/`,end:`/\\$`,relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:`string`}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`Groovy`,keywords:{"variable.language":`this super`,literal:`true false null`,type:[`byte`,`short`,`char`,`int`,`long`,`boolean`,`float`,`double`,`void`],keyword:`def.as.in.assert.trait.abstract.static.volatile.transient.public.private.protected.synchronized.final.class.interface.enum.if.else.for.while.switch.case.break.default.continue.throw.throws.try.catch.finally.implements.extends.new.import.package.return.instanceof.var`.split(`.`)},contains:[e.SHEBANG({binary:`groovy`,relevance:10}),i,s,a,o,l,{className:`meta`,begin:`@[A-Za-z]+`,relevance:0},{className:`attr`,begin:r+`[ ]*:`,relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,`self`]},{className:`symbol`,begin:`^[ ]*`+t.lookahead(r+`:`),excludeBegin:!0,end:r+`:`,relevance:0}],illegal:/#|<\//}}t.exports=r})),_Vt=s(((e,t)=>{function n(e){return{name:`HAML`,case_insensitive:!0,contains:[{className:`meta`,begin:`^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$`,relevance:10},e.COMMENT(`^\\s*(!=#|=#|-#|/).*$`,null,{relevance:0}),{begin:`^\\s*(-|=|!=)(?!#)`,end:/$/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0},{className:`tag`,begin:`^\\s*%`,contains:[{className:`selector-tag`,begin:`\\w+`},{className:`selector-id`,begin:`#[\\w-]+`},{className:`selector-class`,begin:`\\.[\\w-]+`},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:`:\\w+\\s*=>`,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}]}}t.exports=n})),vVt=s(((e,t)=>{function n(e){let t=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`.split(`.`)},r={$pattern:/[\w.\/]+/,literal:[`true`,`false`,`undefined`,`null`]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,u=t.either(i,a,o,s),d=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(l,u))),f=t.concat(`(`,o,`|`,s,`)(?==)`),p={begin:d},m=e.inherit(p,{keywords:r}),h={begin:/\(/,end:/\)/},g={className:`attr`,begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,h]}}},_={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:`as`},end:/\|/,contains:[{begin:/\w+/}]},g,m,h],returnEnd:!0};h.contains=[e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{end:/\)/})})];let v=e.inherit(p,{keywords:n,className:`name`,starts:e.inherit(_,{end:/\}\}/})}),y=e.inherit(p,{keywords:n,className:`name`}),b=e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{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:[v],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:`xml`}},{className:`template-tag`,begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:`template-tag`,begin:/\{\{#/,end:/\}\}/,contains:[v]},{className:`template-tag`,begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:`else`},{className:`template-tag`,begin:/\{\{(?=else if)/,end:/\}\}/,keywords:`else if`},{className:`template-tag`,begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:`template-variable`,begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[b]}]}}t.exports=n})),x7=s(((e,t)=>{function n(e){let t=`([0-9]_*)+`,n=`([0-9a-fA-F]_*)+`,r=`([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]\`|{}]|[_:"']))(\\p{S}|\\p{P}))`,i={variants:[e.COMMENT(`--+`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},a={className:`meta`,begin:/\{-#/,end:/#-\}/},o={className:`meta`,begin:`^#`,end:`$`},s={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},l={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[a,o,{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},e.inherit(e.TITLE_MODE,{begin:`[_a-z][\\w']*`}),i]},u={begin:/\{/,end:/\}/,contains:l.contains},d={className:`number`,relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](([0-7]_*)+)\\b`},{match:`\\b0[bB](([01]_*)+)\\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:[l,i],illegal:`\\W\\.|;`},{begin:`\\bimport\\b`,end:`$`,keywords:`import qualified as hiding`,contains:[l,i],illegal:`\\W\\.|;`},{className:`class`,begin:`^(\\s*)?(class|instance)\\b`,end:`where`,keywords:`class family instance where`,contains:[s,l,i]},{className:`class`,begin:`\\b(data|(new)?type)\\b`,end:`$`,keywords:`data family type newtype deriving`,contains:[a,s,l,u,i]},{beginKeywords:`default`,end:`$`,contains:[s,l,i]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,i]},{begin:`\\bforeign\\b`,end:`$`,keywords:`foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe`,contains:[s,e.QUOTE_STRING_MODE,i]},{className:`meta`,begin:`#!\\/usr\\/bin\\/env runhaskell`,end:`$`},a,o,{scope:`string`,begin:/'(?=\\?.')/,end:/'/,contains:[{scope:`char.escape`,match:/\\./}]},e.QUOTE_STRING_MODE,d,s,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),{begin:`(?!-)${r}--+|--+(?!-)${r}`},i,{begin:`->|<-`}]}}t.exports=n})),yVt=s(((e,t)=>{function n(e){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:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:`variable`,begin:`\\$[a-zA-Z_$][a-zA-Z0-9_$]*`},{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:/<\//}}t.exports=n})),bVt=s(((e,t)=>{function n(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]}}t.exports=n})),xVt=s(((e,t)=>{function n(e){let t=e.regex,n=`HTTP/([32]|1\\.[01])`,r={className:`attribute`,begin:t.concat(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[r,{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:i}},{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:i}},e.inherit(r,{relevance:0})]}}t.exports=n})),SVt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&#'`,n=`[`+t+`][`+t+`0-9/;:]*`,r={$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={begin:n,relevance:0},a={className:`number`,begin:`[-+]?\\d+(\\.\\d+)?`,relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={className:`literal`,begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:`[\\[\\{]`,end:`[\\]\\}]`,relevance:0},d={className:`comment`,begin:`\\^`+n},f=e.COMMENT(`\\^\\{`,`\\}`),p={className:`symbol`,begin:`[:]{1,2}`+n},m={begin:`\\(`,end:`\\)`},h={endsWithParent:!0,relevance:0},g={className:`name`,relevance:0,keywords:r,begin:n,starts:h},_=[m,o,d,f,s,p,u,a,l,i];return m.contains=[e.COMMENT(`comment`,``),g,h],h.contains=_,u.contains=_,{name:`Hy`,aliases:[`hylang`],illegal:/\S/,contains:[e.SHEBANG(),m,o,d,f,s,p,u,a,l]}}t.exports=n})),CVt=s(((e,t)=>{function n(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`]}]}}t.exports=n})),wVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={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:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(l,`(\\s*\\.\\s*`,l,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),TVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],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}),a]}}t.exports=n})),EVt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*`,n={className:`number`,begin:e.NUMBER_RE,relevance:0},r={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},i={className:`doctag`,begin:`\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b`,relevance:0},a={variants:[{className:`comment`,begin:`//`,end:`$`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]},{className:`comment`,begin:`/\\*`,end:`\\*/`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]}]},o={$pattern:t,keyword:`and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока `,built_in:`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 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 `,class:`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 ВызовСпособ ИмяОтчета РеквЗнач `,literal:`null true false nil `},s={begin:`\\.\\s*`+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},l={className:`type`,begin:`:[ \\t]*(`+`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`.replace(/\s/g,`|`)+`)`,end:`[ \\t]*=`,excludeEnd:!0},u={className:`variable`,keywords:o,begin:t,relevance:0,contains:[l,s]},d=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(`;return{name:`ISBL`,case_insensitive:!0,keywords:o,illegal:`\\$|\\?|%|,|;$|~|#|@|{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=n+o(`(?:<`+n+`~~~(?:\\s*,\\s*`+n+`~~~)*>)?`,/~~~/g,2),i={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`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},s={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},l={className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:`type`,3:`variable`,5:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`new throw return else`,relevance:0},{begin:[`(?:`+r+`\\s+)`,e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:`title.function`},keywords:i,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,s]}}t.exports=s})),OVt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`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`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\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:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.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}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.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:{_:[...a,...o]}},ee={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function re(e){return t.concat(`(?!`,e.join(`|`),`)`)}let ie={match:t.concat(/\b/,re([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ae={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},oe={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},se=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,ce={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(se)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},ce,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:se,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},te,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ae,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},ie,ne,j,oe,{match:/\$[(.]/}]}}t.exports=d})),kVt=s(((e,t)=>{function n(e){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,{className:`params`,begin:/--[\w\-=\/]+/},{className:`function`,begin:/:[\w\-.]+/,relevance:0},{className:`string`,begin:/\B([\/.])[\w\-.\/=]+/},{className:`params`,begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:/[\w-]+/}]}],relevance:0}]}}t.exports=n})),AVt=s(((e,t)=>{function n(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=n})),jVt=s(((e,t)=>{function n(e){let t=`[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*`,n={$pattern:t,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`.split(`.`),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.π.ℯ`.split(`.`),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`.split(`.`)},r={keywords:n,illegal:/<\//},i={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},a={className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o={className:`subst`,begin:/\$\(/,end:/\)/,keywords:n},s={className:`variable`,begin:`\\$`+t},l={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],begin:"`",end:"`"},d={className:`meta`,begin:`@`+t};return r.name=`Julia`,r.contains=[i,a,l,u,d,{className:`comment`,variants:[{begin:`#=`,end:`=#`,relevance:10},{begin:`#`,end:`$`}]},e.HASH_COMMENT_MODE,{className:`keyword`,begin:`\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b`},{begin:/<:/}],o.contains=r.contains,r}t.exports=n})),MVt=s(((e,t)=>{function n(e){return{name:`Julia REPL`,contains:[{className:`meta.prompt`,begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:`julia`}}],aliases:[`jldoctest`]}}t.exports=n})),NVt=s(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let t={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`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let l={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},u={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},d=a,f=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=p;return m.variants[1].contains=[p],p.variants[1].contains=[m],{name:`Kotlin`,aliases:[`kt`,`kts`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,f,n,r,l,u,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin://,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,e.C_LINE_COMMENT_MODE,f],relevance:0},e.C_LINE_COMMENT_MODE,f,l,u,s,e.C_NUMBER_MODE]},f]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,u]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:` +`},d]}}t.exports=o})),PVt=s(((e,t)=>{function n(e){let t=`<\\?(lasso(script)?|=)`,n=`\\]|\\?>`,r={$pattern:`[a-zA-Z_][\\w.]*|&[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`},i=e.COMMENT(``,{relevance:0}),a={className:`meta`,begin:`\\[noprocess\\]`,starts:{end:`\\[/noprocess\\]`,returnEnd:!0,contains:[i]}},o={className:`meta`,begin:`\\[/noprocess|`+t},s=[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:`[#$][a-zA-Z_][\\w.]*`},{begin:`#`,end:`\\d+`,illegal:`\\W`}]},{className:`type`,begin:`::\\s*`,end:`[a-zA-Z_][\\w.]*`,illegal:`\\W`},{className:`params`,variants:[{begin:`-(?!infinity)[a-zA-Z_][\\w.]*`,relevance:0},{begin:`(\\.\\.\\.)`}]},{begin:/(->|\.)\s*/,relevance:0,contains:[{className:`symbol`,begin:`'[a-zA-Z_][\\w.]*'`}]},{className:`class`,beginKeywords:`define`,returnEnd:!0,end:`\\(|=>`,contains:[e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)`})]}];return{name:`Lasso`,aliases:[`ls`,`lassoscript`],case_insensitive:!0,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[|`+t,returnEnd:!0,relevance:0,contains:[i]}},a,o,{className:`meta`,begin:`\\[no_square_brackets`,starts:{end:`\\[/no_square_brackets\\]`,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[noprocess\\]|`+t,returnEnd:!0,contains:[i]}},a,o].concat(s)}},{className:`meta`,begin:`\\[`,relevance:0},{className:`meta`,begin:`^#!`,end:`lasso9$`,relevance:10}].concat(s)}}t.exports=n})),FVt=s(((e,t)=>{function n(e){let t=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(e=>e+`(?![a-zA-Z@:_])`)),n=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(e=>e+`(?![a-zA-Z:_])`).join(`|`)),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],i=[{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]/}],a=[{className:`keyword`,begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:n},{endsParent:!0,variants:i},{endsParent:!0,relevance:0,variants:r}]},{className:`params`,relevance:0,begin:/#+\d?/},{variants:i},{className:`built_in`,relevance:0,begin:/[$&^_]/},{className:`meta`,begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:`$`,relevance:10},e.COMMENT(`%`,`$`,{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:[`self`,...a]},s=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...a]}),l={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...a]},u={begin:/\s+/,relevance:0},d=[s],f=[l],p=function(e,t){return{contains:[u],starts:{relevance:0,contains:e,starts:t}}},m=function(e,t){return{begin:`\\\\`+e+`(?![a-zA-Z@:_])`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\`+e},relevance:0,contains:[u],starts:t}},h=function(t,n){return e.inherit({begin:`\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{`+t+`\\})`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\begin`},relevance:0},p(d,n))},g=(t=`string`)=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),_=function(e){return{className:`string`,end:`(?=\\\\end\\{`+e+`\\})`}},v=(e=`string`)=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:[`self`]}]}]}});return{name:`LaTeX`,aliases:[`tex`],contains:[...[`verb`,`lstinline`].map(e=>m(e,{contains:[g()]})),m(`mint`,p(d,{contains:[g()]})),m(`mintinline`,p(d,{contains:[v(),g()]})),m(`url`,{contains:[v(`link`),v(`link`)]}),m(`hyperref`,{contains:[v(`link`)]}),m(`href`,p(f,{contains:[v(`link`)]})),...[].concat(...[``,`\\*`].map(e=>[h(`verbatim`+e,_(`verbatim`+e)),h(`filecontents`+e,p(d,_(`filecontents`+e))),...[``,`B`,`L`].map(t=>h(t+`Verbatim`+e,p(f,_(t+`Verbatim`+e))))])),h(`minted`,p(f,p(d,_(`minted`)))),...a]}}t.exports=n})),S7=s(((e,t)=>{function n(e){return{name:`LDIF`,contains:[{className:`attribute`,match:`^dn(?=:)`,relevance:10},{className:`attribute`,match:`^\\w+(?=:)`},{className:`literal`,match:`^-`},e.HASH_COMMENT_MODE]}}t.exports=n})),C7=s(((e,t)=>{function n(e){let t=/([A-Za-z_][A-Za-z_0-9]*)?/,n={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:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:`keyword`},contains:[n]};return n.contains.unshift(r),{name:`Leaf`,contains:[{match:[/#+/,t,/(?=\()/],scope:{1:`punctuation`,2:`keyword`},starts:{contains:[{match:/\:/,scope:`punctuation`}]},contains:[n]},{match:[/#+/,t,/:?/],scope:{1:`punctuation`,2:`keyword`,3:`punctuation`}}]}}t.exports=n})),IVt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse(),d=s.concat(l).sort().reverse();function f(e){let t=n(e),r=d,i=`([\\w-]+|@\\{[\\w-]+\\})`,f=[],p=[],m=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},h=function(e,t,n){return{className:e,begin:t,relevance:n}},g={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},_={begin:`\\(`,end:`\\)`,contains:p,keywords:g,relevance:0};p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m(`'`),m(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.HEXCOLOR,_,h(`variable`,`@@?[\\w-]+`,10),h(`variable`,`@\\{[\\w-]+\\}`),h(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:`[\\w-]+\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let v=p.concat({begin:/\{/,end:/\}/,contains:f}),y={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(p)},b={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:p}}]},x={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:g,returnEnd:!0,contains:p,relevance:0}},S={className:`variable`,variants:[{begin:`@[\\w-]+\\s*:`,relevance:15},{begin:`@[\\w-]+`}],starts:{end:`[;}]`,returnEnd:!0,contains:v}},C={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h(`keyword`,`all\\b`),h(`variable`,`@\\{[\\w-]+\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,h(`selector-tag`,i,0),h(`selector-id`,`#`+i),h(`selector-class`,`\\.`+i,0),h(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+l.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:`!important`},t.FUNCTION_DISPATCH]},w={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[C]};return f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,S,w,b,C,y,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:f}}t.exports=f})),LVt=s(((e,t)=>{function n(e){let t=`[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*`,n=`\\|[^]*?\\|`,r=`(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?`,i={className:`literal`,begin:`\\b(t{1}|nil)\\b`},a={className:`number`,variants:[{begin:r,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)\\(`+r+` +`+r,end:`\\)`}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={begin:`\\*`,end:`\\*`},u={className:`symbol`,begin:`[:&]`+t},d={begin:t,relevance:0},f={begin:n},p={contains:[a,o,l,u,{begin:`\\(`,end:`\\)`,contains:[`self`,i,o,a,d]},d],variants:[{begin:"['`]\\(",end:`\\)`},{begin:`\\(quote `,end:`\\)`,keywords:{name:`quote`}},{begin:`'`+n}]},m={variants:[{begin:`'`+t},{begin:`#'`+t+`(::`+t+`)*`}]},h={begin:`\\(\\s*`,end:`\\)`},g={endsWithParent:!0,relevance:0};return h.contains=[{className:`name`,variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,m,h,i,a,o,s,l,u,f,d],{name:`Lisp`,illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,p,m,h,d]}}t.exports=n})),RVt=s(((e,t)=>{function n(e){let t={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(`[^:]//`,`$`)],r=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:[t,{className:`keyword`,begin:`\\bend\\sif\\b`},{className:`function`,beginKeywords:`function`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`function`,begin:`\\bend\\s+`,end:`$`,keywords:`end`,contains:[i,r],relevance:0},{beginKeywords:`command on`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{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,r].concat(n),illegal:`;$|^\\[|^=|&|\\{`}}t.exports=n})),zVt=s(((e,t)=>{var n=`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`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`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`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat(`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`.split(`.`)),literal:r.concat([`yes`,`no`,`on`,`off`,`it`,`that`,`void`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*`,o=e.inherit(e.TITLE_MODE,{begin:a}),s={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},l={className:`subst`,begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},u=[e.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:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:`regexp`,variants:[{begin:`//`,end:`//[gim]*`,contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:`@`+a},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`}];s.contains=u;let d={className:`params`,begin:`\\(`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(u)}]},f={begin:`(#=>|=>|\\|>>|-?->|!->)`},p={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`LiveScript`,aliases:[`ls`],keywords:t,illegal:/\/\*/,contains:u.concat([e.COMMENT(`\\/\\*`,`\\*\\/`),e.HASH_COMMENT_MODE,f,{className:`function`,contains:[o,d],returnBegin:!0,variants:[{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?`,end:`->\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?`,end:`[-~]{1,2}>\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?`,end:`!?[-~]{1,2}>\\*?`}]},p,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=a})),w7=s(((e,t)=>{function n(e){let t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:`type`,begin:/\bi\d+(?=\s|\b)/},i={className:`operator`,relevance:0,begin:/=/},a={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},s={className:`symbol`,variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:`variable`,variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:`title`,variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.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:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:`string`,begin:/"/,end:/"/,contains:[{className:`char.escape`,match:/\\\d\d/}]},u,a,i,l,s,o]}}t.exports=n})),T7=s(((e,t)=>{function n(e){let t={className:`string`,begin:`"`,end:`"`,contains:[{className:`subst`,begin:/\\[tn"\\]/}]},n={className:`number`,relevance:0,begin:e.C_NUMBER_RE};return{name:`LSL (Linden Scripting Language)`,illegal:`:`,contains:[t,{className:`comment`,variants:[e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`)],relevance:0},n,{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`}]},{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`},{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`}]},{className:`type`,begin:`\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b`}]}}t.exports=n})),E7=s(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!\\[=*\\[)`,`$`),e.COMMENT(`--\\[=*\\[`,n,{contains:[r],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:t,end:n,contains:[r],relevance:5}])}}t.exports=n})),D7=s(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{var n=`AASTriangle.AbelianGroup.Abort.AbortKernels.AbortProtect.AbortScheduledTask.Above.Abs.AbsArg.AbsArgPlot.Absolute.AbsoluteCorrelation.AbsoluteCorrelationFunction.AbsoluteCurrentValue.AbsoluteDashing.AbsoluteFileName.AbsoluteOptions.AbsolutePointSize.AbsoluteThickness.AbsoluteTime.AbsoluteTiming.AcceptanceThreshold.AccountingForm.Accumulate.Accuracy.AccuracyGoal.AcousticAbsorbingValue.AcousticImpedanceValue.AcousticNormalVelocityValue.AcousticPDEComponent.AcousticPressureCondition.AcousticRadiationValue.AcousticSoundHardValue.AcousticSoundSoftCondition.ActionDelay.ActionMenu.ActionMenuBox.ActionMenuBoxOptions.Activate.Active.ActiveClassification.ActiveClassificationObject.ActiveItem.ActivePrediction.ActivePredictionObject.ActiveStyle.AcyclicGraphQ.AddOnHelpPath.AddSides.AddTo.AddToSearchIndex.AddUsers.AdjacencyGraph.AdjacencyList.AdjacencyMatrix.AdjacentMeshCells.Adjugate.AdjustmentBox.AdjustmentBoxOptions.AdjustTimeSeriesForecast.AdministrativeDivisionData.AffineHalfSpace.AffineSpace.AffineStateSpaceModel.AffineTransform.After.AggregatedEntityClass.AggregationLayer.AircraftData.AirportData.AirPressureData.AirSoundAttenuation.AirTemperatureData.AiryAi.AiryAiPrime.AiryAiZero.AiryBi.AiryBiPrime.AiryBiZero.AlgebraicIntegerQ.AlgebraicNumber.AlgebraicNumberDenominator.AlgebraicNumberNorm.AlgebraicNumberPolynomial.AlgebraicNumberTrace.AlgebraicRules.AlgebraicRulesData.Algebraics.AlgebraicUnitQ.Alignment.AlignmentMarker.AlignmentPoint.All.AllowAdultContent.AllowChatServices.AllowedCloudExtraParameters.AllowedCloudParameterExtensions.AllowedDimensions.AllowedFrequencyRange.AllowedHeads.AllowGroupClose.AllowIncomplete.AllowInlineCells.AllowKernelInitialization.AllowLooseGrammar.AllowReverseGroupClose.AllowScriptLevelChange.AllowVersionUpdate.AllTrue.Alphabet.AlphabeticOrder.AlphabeticSort.AlphaChannel.AlternateImage.AlternatingFactorial.AlternatingGroup.AlternativeHypothesis.Alternatives.AltitudeMethod.AmbientLight.AmbiguityFunction.AmbiguityList.Analytic.AnatomyData.AnatomyForm.AnatomyPlot3D.AnatomySkinStyle.AnatomyStyling.AnchoredSearch.And.AndersonDarlingTest.AngerJ.AngleBisector.AngleBracket.AnglePath.AnglePath3D.AngleVector.AngularGauge.Animate.AnimatedImage.AnimationCycleOffset.AnimationCycleRepetitions.AnimationDirection.AnimationDisplayTime.AnimationRate.AnimationRepetitions.AnimationRunning.AnimationRunTime.AnimationTimeIndex.AnimationVideo.Animator.AnimatorBox.AnimatorBoxOptions.AnimatorElements.Annotate.Annotation.AnnotationDelete.AnnotationKeys.AnnotationRules.AnnotationValue.Annuity.AnnuityDue.Annulus.AnomalyDetection.AnomalyDetector.AnomalyDetectorFunction.Anonymous.Antialiasing.Antihermitian.AntihermitianMatrixQ.Antisymmetric.AntisymmetricMatrixQ.Antonyms.AnyOrder.AnySubset.AnyTrue.Apart.ApartSquareFree.APIFunction.Appearance.AppearanceElements.AppearanceRules.AppellF1.Append.AppendCheck.AppendLayer.AppendTo.Application.Apply.ApplyReaction.ApplySides.ApplyTo.ArcCos.ArcCosh.ArcCot.ArcCoth.ArcCsc.ArcCsch.ArcCurvature.ARCHProcess.ArcLength.ArcSec.ArcSech.ArcSin.ArcSinDistribution.ArcSinh.ArcTan.ArcTanh.Area.Arg.ArgMax.ArgMin.ArgumentCountQ.ArgumentsOptions.ARIMAProcess.ArithmeticGeometricMean.ARMAProcess.Around.AroundReplace.ARProcess.Array.ArrayComponents.ArrayDepth.ArrayFilter.ArrayFlatten.ArrayMesh.ArrayPad.ArrayPlot.ArrayPlot3D.ArrayQ.ArrayReduce.ArrayResample.ArrayReshape.ArrayRules.Arrays.Arrow.Arrow3DBox.ArrowBox.Arrowheads.ASATriangle.Ask.AskAppend.AskConfirm.AskDisplay.AskedQ.AskedValue.AskFunction.AskState.AskTemplateDisplay.AspectRatio.AspectRatioFixed.Assert.AssessmentFunction.AssessmentResultObject.AssociateTo.Association.AssociationFormat.AssociationMap.AssociationQ.AssociationThread.AssumeDeterministic.Assuming.Assumptions.AstroAngularSeparation.AstroBackground.AstroCenter.AstroDistance.AstroGraphics.AstroGridLines.AstroGridLinesStyle.AstronomicalData.AstroPosition.AstroProjection.AstroRange.AstroRangePadding.AstroReferenceFrame.AstroStyling.AstroZoomLevel.Asymptotic.AsymptoticDSolveValue.AsymptoticEqual.AsymptoticEquivalent.AsymptoticExpectation.AsymptoticGreater.AsymptoticGreaterEqual.AsymptoticIntegrate.AsymptoticLess.AsymptoticLessEqual.AsymptoticOutputTracker.AsymptoticProbability.AsymptoticProduct.AsymptoticRSolveValue.AsymptoticSolve.AsymptoticSum.Asynchronous.AsynchronousTaskObject.AsynchronousTasks.Atom.AtomCoordinates.AtomCount.AtomDiagramCoordinates.AtomLabels.AtomLabelStyle.AtomList.AtomQ.AttachCell.AttachedCell.AttentionLayer.Attributes.Audio.AudioAmplify.AudioAnnotate.AudioAnnotationLookup.AudioBlockMap.AudioCapture.AudioChannelAssignment.AudioChannelCombine.AudioChannelMix.AudioChannels.AudioChannelSeparate.AudioData.AudioDelay.AudioDelete.AudioDevice.AudioDistance.AudioEncoding.AudioFade.AudioFrequencyShift.AudioGenerator.AudioIdentify.AudioInputDevice.AudioInsert.AudioInstanceQ.AudioIntervals.AudioJoin.AudioLabel.AudioLength.AudioLocalMeasurements.AudioLooping.AudioLoudness.AudioMeasurements.AudioNormalize.AudioOutputDevice.AudioOverlay.AudioPad.AudioPan.AudioPartition.AudioPause.AudioPitchShift.AudioPlay.AudioPlot.AudioQ.AudioRecord.AudioReplace.AudioResample.AudioReverb.AudioReverse.AudioSampleRate.AudioSpectralMap.AudioSpectralTransformation.AudioSplit.AudioStop.AudioStream.AudioStreams.AudioTimeStretch.AudioTrackApply.AudioTrackSelection.AudioTrim.AudioType.AugmentedPolyhedron.AugmentedSymmetricPolynomial.Authenticate.Authentication.AuthenticationDialog.AutoAction.Autocomplete.AutocompletionFunction.AutoCopy.AutocorrelationTest.AutoDelete.AutoEvaluateEvents.AutoGeneratedPackage.AutoIndent.AutoIndentSpacings.AutoItalicWords.AutoloadPath.AutoMatch.Automatic.AutomaticImageSize.AutoMultiplicationSymbol.AutoNumberFormatting.AutoOpenNotebooks.AutoOpenPalettes.AutoOperatorRenderings.AutoQuoteCharacters.AutoRefreshed.AutoRemove.AutorunSequencing.AutoScaling.AutoScroll.AutoSpacing.AutoStyleOptions.AutoStyleWords.AutoSubmitting.Axes.AxesEdge.AxesLabel.AxesOrigin.AxesStyle.AxiomaticTheory.Axis.Axis3DBox.Axis3DBoxOptions.AxisBox.AxisBoxOptions.AxisLabel.AxisObject.AxisStyle.BabyMonsterGroupB.Back.BackFaceColor.BackFaceGlowColor.BackFaceOpacity.BackFaceSpecularColor.BackFaceSpecularExponent.BackFaceSurfaceAppearance.BackFaceTexture.Background.BackgroundAppearance.BackgroundTasksSettings.Backslash.Backsubstitution.Backward.Ball.Band.BandpassFilter.BandstopFilter.BarabasiAlbertGraphDistribution.BarChart.BarChart3D.BarcodeImage.BarcodeRecognize.BaringhausHenzeTest.BarLegend.BarlowProschanImportance.BarnesG.BarOrigin.BarSpacing.BartlettHannWindow.BartlettWindow.BaseDecode.BaseEncode.BaseForm.Baseline.BaselinePosition.BaseStyle.BasicRecurrentLayer.BatchNormalizationLayer.BatchSize.BatesDistribution.BattleLemarieWavelet.BayesianMaximization.BayesianMaximizationObject.BayesianMinimization.BayesianMinimizationObject.Because.BeckmannDistribution.Beep.Before.Begin.BeginDialogPacket.BeginPackage.BellB.BellY.Below.BenfordDistribution.BeniniDistribution.BenktanderGibratDistribution.BenktanderWeibullDistribution.BernoulliB.BernoulliDistribution.BernoulliGraphDistribution.BernoulliProcess.BernsteinBasis.BesagL.BesselFilterModel.BesselI.BesselJ.BesselJZero.BesselK.BesselY.BesselYZero.Beta.BetaBinomialDistribution.BetaDistribution.BetaNegativeBinomialDistribution.BetaPrimeDistribution.BetaRegularized.Between.BetweennessCentrality.Beveled.BeveledPolyhedron.BezierCurve.BezierCurve3DBox.BezierCurve3DBoxOptions.BezierCurveBox.BezierCurveBoxOptions.BezierFunction.BilateralFilter.BilateralLaplaceTransform.BilateralZTransform.Binarize.BinaryDeserialize.BinaryDistance.BinaryFormat.BinaryImageQ.BinaryRead.BinaryReadList.BinarySerialize.BinaryWrite.BinCounts.BinLists.BinnedVariogramList.Binomial.BinomialDistribution.BinomialPointProcess.BinomialProcess.BinormalDistribution.BiorthogonalSplineWavelet.BioSequence.BioSequenceBackTranslateList.BioSequenceComplement.BioSequenceInstances.BioSequenceModify.BioSequencePlot.BioSequenceQ.BioSequenceReverseComplement.BioSequenceTranscribe.BioSequenceTranslate.BipartiteGraphQ.BiquadraticFilterModel.BirnbaumImportance.BirnbaumSaundersDistribution.BitAnd.BitClear.BitGet.BitLength.BitNot.BitOr.BitRate.BitSet.BitShiftLeft.BitShiftRight.BitXor.BiweightLocation.BiweightMidvariance.Black.BlackmanHarrisWindow.BlackmanNuttallWindow.BlackmanWindow.Blank.BlankForm.BlankNullSequence.BlankSequence.Blend.Block.BlockchainAddressData.BlockchainBase.BlockchainBlockData.BlockchainContractValue.BlockchainData.BlockchainGet.BlockchainKeyEncode.BlockchainPut.BlockchainTokenData.BlockchainTransaction.BlockchainTransactionData.BlockchainTransactionSign.BlockchainTransactionSubmit.BlockDiagonalMatrix.BlockLowerTriangularMatrix.BlockMap.BlockRandom.BlockUpperTriangularMatrix.BlomqvistBeta.BlomqvistBetaTest.Blue.Blur.Blurring.BodePlot.BohmanWindow.Bold.Bond.BondCount.BondLabels.BondLabelStyle.BondList.BondQ.Bookmarks.Boole.BooleanConsecutiveFunction.BooleanConvert.BooleanCountingFunction.BooleanFunction.BooleanGraph.BooleanMaxterms.BooleanMinimize.BooleanMinterms.BooleanQ.BooleanRegion.Booleans.BooleanStrings.BooleanTable.BooleanVariables.BorderDimensions.BorelTannerDistribution.Bottom.BottomHatTransform.BoundaryDiscretizeGraphics.BoundaryDiscretizeRegion.BoundaryMesh.BoundaryMeshRegion.BoundaryMeshRegionQ.BoundaryStyle.BoundedRegionQ.BoundingRegion.Bounds.Box.BoxBaselineShift.BoxData.BoxDimensions.Boxed.Boxes.BoxForm.BoxFormFormatTypes.BoxFrame.BoxID.BoxMargins.BoxMatrix.BoxObject.BoxRatios.BoxRotation.BoxRotationPoint.BoxStyle.BoxWhiskerChart.Bra.BracketingBar.BraKet.BrayCurtisDistance.BreadthFirstScan.Break.BridgeData.BrightnessEqualize.BroadcastStationData.Brown.BrownForsytheTest.BrownianBridgeProcess.BrowserCategory.BSplineBasis.BSplineCurve.BSplineCurve3DBox.BSplineCurve3DBoxOptions.BSplineCurveBox.BSplineCurveBoxOptions.BSplineFunction.BSplineSurface.BSplineSurface3DBox.BSplineSurface3DBoxOptions.BubbleChart.BubbleChart3D.BubbleScale.BubbleSizes.BuckyballGraph.BuildCompiledComponent.BuildingData.BulletGauge.BusinessDayQ.ButterflyGraph.ButterworthFilterModel.Button.ButtonBar.ButtonBox.ButtonBoxOptions.ButtonCell.ButtonContents.ButtonData.ButtonEvaluator.ButtonExpandable.ButtonFrame.ButtonFunction.ButtonMargins.ButtonMinHeight.ButtonNote.ButtonNotebook.ButtonSource.ButtonStyle.ButtonStyleMenuListing.Byte.ByteArray.ByteArrayFormat.ByteArrayFormatQ.ByteArrayQ.ByteArrayToString.ByteCount.ByteOrdering.C.CachedValue.CacheGraphics.CachePersistence.CalendarConvert.CalendarData.CalendarType.Callout.CalloutMarker.CalloutStyle.CallPacket.CanberraDistance.Cancel.CancelButton.CandlestickChart.CanonicalGraph.CanonicalizePolygon.CanonicalizePolyhedron.CanonicalizeRegion.CanonicalName.CanonicalWarpingCorrespondence.CanonicalWarpingDistance.CantorMesh.CantorStaircase.Canvas.Cap.CapForm.CapitalDifferentialD.Capitalize.CapsuleShape.CaptureRunning.CaputoD.CardinalBSplineBasis.CarlemanLinearize.CarlsonRC.CarlsonRD.CarlsonRE.CarlsonRF.CarlsonRG.CarlsonRJ.CarlsonRK.CarlsonRM.CarmichaelLambda.CaseOrdering.Cases.CaseSensitive.Cashflow.Casoratian.Cast.Catalan.CatalanNumber.Catch.CategoricalDistribution.Catenate.CatenateLayer.CauchyDistribution.CauchyMatrix.CauchyPointProcess.CauchyWindow.CayleyGraph.CDF.CDFDeploy.CDFInformation.CDFWavelet.Ceiling.CelestialSystem.Cell.CellAutoOverwrite.CellBaseline.CellBoundingBox.CellBracketOptions.CellChangeTimes.CellContents.CellContext.CellDingbat.CellDingbatMargin.CellDynamicExpression.CellEditDuplicate.CellElementsBoundingBox.CellElementSpacings.CellEpilog.CellEvaluationDuplicate.CellEvaluationFunction.CellEvaluationLanguage.CellEventActions.CellFrame.CellFrameColor.CellFrameLabelMargins.CellFrameLabels.CellFrameMargins.CellFrameStyle.CellGroup.CellGroupData.CellGrouping.CellGroupingRules.CellHorizontalScrolling.CellID.CellInsertionPointCell.CellLabel.CellLabelAutoDelete.CellLabelMargins.CellLabelPositioning.CellLabelStyle.CellLabelTemplate.CellMargins.CellObject.CellOpen.CellPrint.CellProlog.Cells.CellSize.CellStyle.CellTags.CellTrayPosition.CellTrayWidgets.CellularAutomaton.CensoredDistribution.Censoring.Center.CenterArray.CenterDot.CenteredInterval.CentralFeature.CentralMoment.CentralMomentGeneratingFunction.Cepstrogram.CepstrogramArray.CepstrumArray.CForm.ChampernowneNumber.ChangeOptions.ChannelBase.ChannelBrokerAction.ChannelDatabin.ChannelHistoryLength.ChannelListen.ChannelListener.ChannelListeners.ChannelListenerWait.ChannelObject.ChannelPreSendFunction.ChannelReceiverFunction.ChannelSend.ChannelSubscribers.ChanVeseBinarize.Character.CharacterCounts.CharacterEncoding.CharacterEncodingsPath.CharacteristicFunction.CharacteristicPolynomial.CharacterName.CharacterNormalize.CharacterRange.Characters.ChartBaseStyle.ChartElementData.ChartElementDataFunction.ChartElementFunction.ChartElements.ChartLabels.ChartLayout.ChartLegends.ChartStyle.Chebyshev1FilterModel.Chebyshev2FilterModel.ChebyshevDistance.ChebyshevT.ChebyshevU.Check.CheckAbort.CheckAll.CheckArguments.Checkbox.CheckboxBar.CheckboxBox.CheckboxBoxOptions.ChemicalConvert.ChemicalData.ChemicalFormula.ChemicalInstance.ChemicalReaction.ChessboardDistance.ChiDistribution.ChineseRemainder.ChiSquareDistribution.ChoiceButtons.ChoiceDialog.CholeskyDecomposition.Chop.ChromaticityPlot.ChromaticityPlot3D.ChromaticPolynomial.Circle.CircleBox.CircleDot.CircleMinus.CirclePlus.CirclePoints.CircleThrough.CircleTimes.CirculantGraph.CircularArcThrough.CircularOrthogonalMatrixDistribution.CircularQuaternionMatrixDistribution.CircularRealMatrixDistribution.CircularSymplecticMatrixDistribution.CircularUnitaryMatrixDistribution.Circumsphere.CityData.ClassifierFunction.ClassifierInformation.ClassifierMeasurements.ClassifierMeasurementsObject.Classify.ClassPriors.Clear.ClearAll.ClearAttributes.ClearCookies.ClearPermissions.ClearSystemCache.ClebschGordan.ClickPane.ClickToCopy.ClickToCopyEnabled.Clip.ClipboardNotebook.ClipFill.ClippingStyle.ClipPlanes.ClipPlanesStyle.ClipRange.Clock.ClockGauge.ClockwiseContourIntegral.Close.Closed.CloseKernels.ClosenessCentrality.Closing.ClosingAutoSave.ClosingEvent.CloudAccountData.CloudBase.CloudConnect.CloudConnections.CloudDeploy.CloudDirectory.CloudDisconnect.CloudEvaluate.CloudExport.CloudExpression.CloudExpressions.CloudFunction.CloudGet.CloudImport.CloudLoggingData.CloudObject.CloudObjectInformation.CloudObjectInformationData.CloudObjectNameFormat.CloudObjects.CloudObjectURLType.CloudPublish.CloudPut.CloudRenderingMethod.CloudSave.CloudShare.CloudSubmit.CloudSymbol.CloudUnshare.CloudUserID.ClusterClassify.ClusterDissimilarityFunction.ClusteringComponents.ClusteringMeasurements.ClusteringTree.CMYKColor.Coarse.CodeAssistOptions.Coefficient.CoefficientArrays.CoefficientDomain.CoefficientList.CoefficientRules.CoifletWavelet.Collect.CollinearPoints.Colon.ColonForm.ColorBalance.ColorCombine.ColorConvert.ColorCoverage.ColorData.ColorDataFunction.ColorDetect.ColorDistance.ColorFunction.ColorFunctionBinning.ColorFunctionScaling.Colorize.ColorNegate.ColorOutput.ColorProfileData.ColorQ.ColorQuantize.ColorReplace.ColorRules.ColorSelectorSettings.ColorSeparate.ColorSetter.ColorSetterBox.ColorSetterBoxOptions.ColorSlider.ColorsNear.ColorSpace.ColorToneMapping.Column.ColumnAlignments.ColumnBackgrounds.ColumnForm.ColumnLines.ColumnsEqual.ColumnSpacings.ColumnWidths.CombinatorB.CombinatorC.CombinatorI.CombinatorK.CombinatorS.CombinatorW.CombinatorY.CombinedEntityClass.CombinerFunction.CometData.CommonDefaultFormatTypes.Commonest.CommonestFilter.CommonName.CommonUnits.CommunityBoundaryStyle.CommunityGraphPlot.CommunityLabels.CommunityRegionStyle.CompanyData.CompatibleUnitQ.CompilationOptions.CompilationTarget.Compile.Compiled.CompiledCodeFunction.CompiledComponent.CompiledExpressionDeclaration.CompiledFunction.CompiledLayer.CompilerCallback.CompilerEnvironment.CompilerEnvironmentAppend.CompilerEnvironmentAppendTo.CompilerEnvironmentObject.CompilerOptions.Complement.ComplementedEntityClass.CompleteGraph.CompleteGraphQ.CompleteIntegral.CompleteKaryTree.CompletionsListPacket.Complex.ComplexArrayPlot.ComplexContourPlot.Complexes.ComplexExpand.ComplexInfinity.ComplexityFunction.ComplexListPlot.ComplexPlot.ComplexPlot3D.ComplexRegionPlot.ComplexStreamPlot.ComplexVectorPlot.ComponentMeasurements.ComponentwiseContextMenu.Compose.ComposeList.ComposeSeries.CompositeQ.Composition.CompoundElement.CompoundExpression.CompoundPoissonDistribution.CompoundPoissonProcess.CompoundRenewalProcess.Compress.CompressedData.CompressionLevel.ComputeUncertainty.ConcaveHullMesh.Condition.ConditionalExpression.Conditioned.Cone.ConeBox.ConfidenceLevel.ConfidenceRange.ConfidenceTransform.ConfigurationPath.Confirm.ConfirmAssert.ConfirmBy.ConfirmMatch.ConfirmQuiet.ConformationMethod.ConformAudio.ConformImages.Congruent.ConicGradientFilling.ConicHullRegion.ConicHullRegion3DBox.ConicHullRegion3DBoxOptions.ConicHullRegionBox.ConicHullRegionBoxOptions.ConicOptimization.Conjugate.ConjugateTranspose.Conjunction.Connect.ConnectedComponents.ConnectedGraphComponents.ConnectedGraphQ.ConnectedMeshComponents.ConnectedMoleculeComponents.ConnectedMoleculeQ.ConnectionSettings.ConnectLibraryCallbackFunction.ConnectSystemModelComponents.ConnectSystemModelController.ConnesWindow.ConoverTest.ConservativeConvectionPDETerm.ConsoleMessage.Constant.ConstantArray.ConstantArrayLayer.ConstantImage.ConstantPlusLayer.ConstantRegionQ.Constants.ConstantTimesLayer.ConstellationData.ConstrainedMax.ConstrainedMin.Construct.Containing.ContainsAll.ContainsAny.ContainsExactly.ContainsNone.ContainsOnly.ContentDetectorFunction.ContentFieldOptions.ContentLocationFunction.ContentObject.ContentPadding.ContentsBoundingBox.ContentSelectable.ContentSize.Context.ContextMenu.Contexts.ContextToFileName.Continuation.Continue.ContinuedFraction.ContinuedFractionK.ContinuousAction.ContinuousMarkovProcess.ContinuousTask.ContinuousTimeModelQ.ContinuousWaveletData.ContinuousWaveletTransform.ContourDetect.ContourGraphics.ContourIntegral.ContourLabels.ContourLines.ContourPlot.ContourPlot3D.Contours.ContourShading.ContourSmoothing.ContourStyle.ContraharmonicMean.ContrastiveLossLayer.Control.ControlActive.ControlAlignment.ControlGroupContentsBox.ControllabilityGramian.ControllabilityMatrix.ControllableDecomposition.ControllableModelQ.ControllerDuration.ControllerInformation.ControllerInformationData.ControllerLinking.ControllerManipulate.ControllerMethod.ControllerPath.ControllerState.ControlPlacement.ControlsRendering.ControlType.ConvectionPDETerm.Convergents.ConversionOptions.ConversionRules.ConvertToPostScript.ConvertToPostScriptPacket.ConvexHullMesh.ConvexHullRegion.ConvexOptimization.ConvexPolygonQ.ConvexPolyhedronQ.ConvexRegionQ.ConvolutionLayer.Convolve.ConwayGroupCo1.ConwayGroupCo2.ConwayGroupCo3.CookieFunction.Cookies.CoordinateBoundingBox.CoordinateBoundingBoxArray.CoordinateBounds.CoordinateBoundsArray.CoordinateChartData.CoordinatesToolOptions.CoordinateTransform.CoordinateTransformData.CoplanarPoints.CoprimeQ.Coproduct.CopulaDistribution.Copyable.CopyDatabin.CopyDirectory.CopyFile.CopyFunction.CopyTag.CopyToClipboard.CoreNilpotentDecomposition.CornerFilter.CornerNeighbors.Correlation.CorrelationDistance.CorrelationFunction.CorrelationTest.Cos.Cosh.CoshIntegral.CosineDistance.CosineWindow.CosIntegral.Cot.Coth.CoulombF.CoulombG.CoulombH1.CoulombH2.Count.CountDistinct.CountDistinctBy.CounterAssignments.CounterBox.CounterBoxOptions.CounterClockwiseContourIntegral.CounterEvaluator.CounterFunction.CounterIncrements.CounterStyle.CounterStyleMenuListing.CountRoots.CountryData.Counts.CountsBy.Covariance.CovarianceEstimatorFunction.CovarianceFunction.CoxianDistribution.CoxIngersollRossProcess.CoxModel.CoxModelFit.CramerVonMisesTest.CreateArchive.CreateCellID.CreateChannel.CreateCloudExpression.CreateCompilerEnvironment.CreateDatabin.CreateDataStructure.CreateDataSystemModel.CreateDialog.CreateDirectory.CreateDocument.CreateFile.CreateIntermediateDirectories.CreateLicenseEntitlement.CreateManagedLibraryExpression.CreateNotebook.CreatePacletArchive.CreatePalette.CreatePermissionsGroup.CreateScheduledTask.CreateSearchIndex.CreateSystemModel.CreateTemporary.CreateTypeInstance.CreateUUID.CreateWindow.CriterionFunction.CriticalityFailureImportance.CriticalitySuccessImportance.CriticalSection.Cross.CrossEntropyLossLayer.CrossingCount.CrossingDetect.CrossingPolygon.CrossMatrix.Csc.Csch.CSGRegion.CSGRegionQ.CSGRegionTree.CTCLossLayer.Cube.CubeRoot.Cubics.Cuboid.CuboidBox.CuboidBoxOptions.Cumulant.CumulantGeneratingFunction.CumulativeFeatureImpactPlot.Cup.CupCap.Curl.CurlyDoubleQuote.CurlyQuote.CurrencyConvert.CurrentDate.CurrentImage.CurrentNotebookImage.CurrentScreenImage.CurrentValue.Curry.CurryApplied.CurvatureFlowFilter.CurveClosed.Cyan.CycleGraph.CycleIndexPolynomial.Cycles.CyclicGroup.Cyclotomic.Cylinder.CylinderBox.CylinderBoxOptions.CylindricalDecomposition.CylindricalDecompositionFunction.D.DagumDistribution.DamData.DamerauLevenshteinDistance.DampingFactor.Darker.Dashed.Dashing.DatabaseConnect.DatabaseDisconnect.DatabaseReference.Databin.DatabinAdd.DatabinRemove.Databins.DatabinSubmit.DatabinUpload.DataCompression.DataDistribution.DataRange.DataReversed.Dataset.DatasetDisplayPanel.DatasetTheme.DataStructure.DataStructureQ.Date.DateBounds.Dated.DateDelimiters.DateDifference.DatedUnit.DateFormat.DateFunction.DateGranularity.DateHistogram.DateInterval.DateList.DateListLogPlot.DateListPlot.DateListStepPlot.DateObject.DateObjectQ.DateOverlapsQ.DatePattern.DatePlus.DateRange.DateReduction.DateScale.DateSelect.DateString.DateTicksFormat.DateValue.DateWithinQ.DaubechiesWavelet.DavisDistribution.DawsonF.DayCount.DayCountConvention.DayHemisphere.DaylightQ.DayMatchQ.DayName.DayNightTerminator.DayPlus.DayRange.DayRound.DeBruijnGraph.DeBruijnSequence.Debug.DebugTag.Decapitalize.Decimal.DecimalForm.DeclareCompiledComponent.DeclareKnownSymbols.DeclarePackage.Decompose.DeconvolutionLayer.Decrement.Decrypt.DecryptFile.DedekindEta.DeepSpaceProbeData.Default.Default2DTool.Default3DTool.DefaultAttachedCellStyle.DefaultAxesStyle.DefaultBaseStyle.DefaultBoxStyle.DefaultButton.DefaultColor.DefaultControlPlacement.DefaultDockedCellStyle.DefaultDuplicateCellStyle.DefaultDuration.DefaultElement.DefaultFaceGridsStyle.DefaultFieldHintStyle.DefaultFont.DefaultFontProperties.DefaultFormatType.DefaultFrameStyle.DefaultFrameTicksStyle.DefaultGridLinesStyle.DefaultInlineFormatType.DefaultInputFormatType.DefaultLabelStyle.DefaultMenuStyle.DefaultNaturalLanguage.DefaultNewCellStyle.DefaultNewInlineCellStyle.DefaultNotebook.DefaultOptions.DefaultOutputFormatType.DefaultPrintPrecision.DefaultStyle.DefaultStyleDefinitions.DefaultTextFormatType.DefaultTextInlineFormatType.DefaultTicksStyle.DefaultTooltipStyle.DefaultValue.DefaultValues.Defer.DefineExternal.DefineInputStreamMethod.DefineOutputStreamMethod.DefineResourceFunction.Definition.Degree.DegreeCentrality.DegreeGraphDistribution.DegreeLexicographic.DegreeReverseLexicographic.DEigensystem.DEigenvalues.Deinitialization.Del.DelaunayMesh.Delayed.Deletable.Delete.DeleteAdjacentDuplicates.DeleteAnomalies.DeleteBorderComponents.DeleteCases.DeleteChannel.DeleteCloudExpression.DeleteContents.DeleteDirectory.DeleteDuplicates.DeleteDuplicatesBy.DeleteElements.DeleteFile.DeleteMissing.DeleteObject.DeletePermissionsKey.DeleteSearchIndex.DeleteSmallComponents.DeleteStopwords.DeleteWithContents.DeletionWarning.DelimitedArray.DelimitedSequence.Delimiter.DelimiterAutoMatching.DelimiterFlashTime.DelimiterMatching.Delimiters.DeliveryFunction.Dendrogram.Denominator.DensityGraphics.DensityHistogram.DensityPlot.DensityPlot3D.DependentVariables.Deploy.Deployed.Depth.DepthFirstScan.Derivative.DerivativeFilter.DerivativePDETerm.DerivedKey.DescriptorStateSpace.DesignMatrix.DestroyAfterEvaluation.Det.DeviceClose.DeviceConfigure.DeviceExecute.DeviceExecuteAsynchronous.DeviceObject.DeviceOpen.DeviceOpenQ.DeviceRead.DeviceReadBuffer.DeviceReadLatest.DeviceReadList.DeviceReadTimeSeries.Devices.DeviceStreams.DeviceWrite.DeviceWriteBuffer.DGaussianWavelet.DiacriticalPositioning.Diagonal.DiagonalizableMatrixQ.DiagonalMatrix.DiagonalMatrixQ.Dialog.DialogIndent.DialogInput.DialogLevel.DialogNotebook.DialogProlog.DialogReturn.DialogSymbols.Diamond.DiamondMatrix.DiceDissimilarity.DictionaryLookup.DictionaryWordQ.DifferenceDelta.DifferenceOrder.DifferenceQuotient.DifferenceRoot.DifferenceRootReduce.Differences.DifferentialD.DifferentialRoot.DifferentialRootReduce.DifferentiatorFilter.DiffusionPDETerm.DiggleGatesPointProcess.DiggleGrattonPointProcess.DigitalSignature.DigitBlock.DigitBlockMinimum.DigitCharacter.DigitCount.DigitQ.DihedralAngle.DihedralGroup.Dilation.DimensionalCombinations.DimensionalMeshComponents.DimensionReduce.DimensionReducerFunction.DimensionReduction.Dimensions.DiracComb.DiracDelta.DirectedEdge.DirectedEdges.DirectedGraph.DirectedGraphQ.DirectedInfinity.Direction.DirectionalLight.Directive.Directory.DirectoryName.DirectoryQ.DirectoryStack.DirichletBeta.DirichletCharacter.DirichletCondition.DirichletConvolve.DirichletDistribution.DirichletEta.DirichletL.DirichletLambda.DirichletTransform.DirichletWindow.DisableConsolePrintPacket.DisableFormatting.DiscreteAsymptotic.DiscreteChirpZTransform.DiscreteConvolve.DiscreteDelta.DiscreteHadamardTransform.DiscreteIndicator.DiscreteInputOutputModel.DiscreteLimit.DiscreteLQEstimatorGains.DiscreteLQRegulatorGains.DiscreteLyapunovSolve.DiscreteMarkovProcess.DiscreteMaxLimit.DiscreteMinLimit.DiscretePlot.DiscretePlot3D.DiscreteRatio.DiscreteRiccatiSolve.DiscreteShift.DiscreteTimeModelQ.DiscreteUniformDistribution.DiscreteVariables.DiscreteWaveletData.DiscreteWaveletPacketTransform.DiscreteWaveletTransform.DiscretizeGraphics.DiscretizeRegion.Discriminant.DisjointQ.Disjunction.Disk.DiskBox.DiskBoxOptions.DiskMatrix.DiskSegment.Dispatch.DispatchQ.DispersionEstimatorFunction.Display.DisplayAllSteps.DisplayEndPacket.DisplayForm.DisplayFunction.DisplayPacket.DisplayRules.DisplayString.DisplayTemporary.DisplayWith.DisplayWithRef.DisplayWithVariable.DistanceFunction.DistanceMatrix.DistanceTransform.Distribute.Distributed.DistributedContexts.DistributeDefinitions.DistributionChart.DistributionDomain.DistributionFitTest.DistributionParameterAssumptions.DistributionParameterQ.Dithering.Div.Divergence.Divide.DivideBy.Dividers.DivideSides.Divisible.Divisors.DivisorSigma.DivisorSum.DMSList.DMSString.Do.DockedCell.DockedCells.DocumentGenerator.DocumentGeneratorInformation.DocumentGeneratorInformationData.DocumentGenerators.DocumentNotebook.DocumentWeightingRules.Dodecahedron.DomainRegistrationInformation.DominantColors.DominatorTreeGraph.DominatorVertexList.DOSTextFormat.Dot.DotDashed.DotEqual.DotLayer.DotPlusLayer.Dotted.DoubleBracketingBar.DoubleContourIntegral.DoubleDownArrow.DoubleLeftArrow.DoubleLeftRightArrow.DoubleLeftTee.DoubleLongLeftArrow.DoubleLongLeftRightArrow.DoubleLongRightArrow.DoubleRightArrow.DoubleRightTee.DoubleUpArrow.DoubleUpDownArrow.DoubleVerticalBar.DoublyInfinite.Down.DownArrow.DownArrowBar.DownArrowUpArrow.DownLeftRightVector.DownLeftTeeVector.DownLeftVector.DownLeftVectorBar.DownRightTeeVector.DownRightVector.DownRightVectorBar.Downsample.DownTee.DownTeeArrow.DownValues.DownValuesFunction.DragAndDrop.DrawBackFaces.DrawEdges.DrawFrontFaces.DrawHighlighted.DrazinInverse.Drop.DropoutLayer.DropShadowing.DSolve.DSolveChangeVariables.DSolveValue.Dt.DualLinearProgramming.DualPlanarGraph.DualPolyhedron.DualSystemsModel.DumpGet.DumpSave.DuplicateFreeQ.Duration.Dynamic.DynamicBox.DynamicBoxOptions.DynamicEvaluationTimeout.DynamicGeoGraphics.DynamicImage.DynamicLocation.DynamicModule.DynamicModuleBox.DynamicModuleBoxOptions.DynamicModuleParent.DynamicModuleValues.DynamicName.DynamicNamespace.DynamicReference.DynamicSetting.DynamicUpdating.DynamicWrapper.DynamicWrapperBox.DynamicWrapperBoxOptions.E.EarthImpactData.EarthquakeData.EccentricityCentrality.Echo.EchoEvaluation.EchoFunction.EchoLabel.EchoTiming.EclipseType.EdgeAdd.EdgeBetweennessCentrality.EdgeCapacity.EdgeCapForm.EdgeChromaticNumber.EdgeColor.EdgeConnectivity.EdgeContract.EdgeCost.EdgeCount.EdgeCoverQ.EdgeCycleMatrix.EdgeDashing.EdgeDelete.EdgeDetect.EdgeForm.EdgeIndex.EdgeJoinForm.EdgeLabeling.EdgeLabels.EdgeLabelStyle.EdgeList.EdgeOpacity.EdgeQ.EdgeRenderingFunction.EdgeRules.EdgeShapeFunction.EdgeStyle.EdgeTaggedGraph.EdgeTaggedGraphQ.EdgeTags.EdgeThickness.EdgeTransitiveGraphQ.EdgeValueRange.EdgeValueSizes.EdgeWeight.EdgeWeightedGraphQ.Editable.EditButtonSettings.EditCellTagsSettings.EditDistance.EffectiveInterest.Eigensystem.Eigenvalues.EigenvectorCentrality.Eigenvectors.Element.ElementData.ElementwiseLayer.ElidedForms.Eliminate.EliminationOrder.Ellipsoid.EllipticE.EllipticExp.EllipticExpPrime.EllipticF.EllipticFilterModel.EllipticK.EllipticLog.EllipticNomeQ.EllipticPi.EllipticReducedHalfPeriods.EllipticTheta.EllipticThetaPrime.EmbedCode.EmbeddedHTML.EmbeddedService.EmbeddedSQLEntityClass.EmbeddedSQLExpression.EmbeddingLayer.EmbeddingObject.EmitSound.EmphasizeSyntaxErrors.EmpiricalDistribution.Empty.EmptyGraphQ.EmptyRegion.EmptySpaceF.EnableConsolePrintPacket.Enabled.Enclose.Encode.Encrypt.EncryptedObject.EncryptFile.End.EndAdd.EndDialogPacket.EndOfBuffer.EndOfFile.EndOfLine.EndOfString.EndPackage.EngineEnvironment.EngineeringForm.Enter.EnterExpressionPacket.EnterTextPacket.Entity.EntityClass.EntityClassList.EntityCopies.EntityFunction.EntityGroup.EntityInstance.EntityList.EntityPrefetch.EntityProperties.EntityProperty.EntityPropertyClass.EntityRegister.EntityStore.EntityStores.EntityTypeName.EntityUnregister.EntityValue.Entropy.EntropyFilter.Environment.Epilog.EpilogFunction.Equal.EqualColumns.EqualRows.EqualTilde.EqualTo.EquatedTo.Equilibrium.EquirippleFilterKernel.Equivalent.Erf.Erfc.Erfi.ErlangB.ErlangC.ErlangDistribution.Erosion.ErrorBox.ErrorBoxOptions.ErrorNorm.ErrorPacket.ErrorsDialogSettings.EscapeRadius.EstimatedBackground.EstimatedDistribution.EstimatedPointNormals.EstimatedPointProcess.EstimatedProcess.EstimatedVariogramModel.EstimatorGains.EstimatorRegulator.EuclideanDistance.EulerAngles.EulerCharacteristic.EulerE.EulerGamma.EulerianGraphQ.EulerMatrix.EulerPhi.Evaluatable.Evaluate.Evaluated.EvaluatePacket.EvaluateScheduledTask.EvaluationBox.EvaluationCell.EvaluationCompletionAction.EvaluationData.EvaluationElements.EvaluationEnvironment.EvaluationMode.EvaluationMonitor.EvaluationNotebook.EvaluationObject.EvaluationOrder.EvaluationPrivileges.EvaluationRateLimit.Evaluator.EvaluatorNames.EvenQ.EventData.EventEvaluator.EventHandler.EventHandlerTag.EventLabels.EventSeries.ExactBlackmanWindow.ExactNumberQ.ExactRootIsolation.ExampleData.Except.ExcludedContexts.ExcludedForms.ExcludedLines.ExcludedPhysicalQuantities.ExcludePods.Exclusions.ExclusionsStyle.Exists.Exit.ExitDialog.ExoplanetData.Exp.Expand.ExpandAll.ExpandDenominator.ExpandFileName.ExpandNumerator.Expectation.ExpectationE.ExpectedValue.ExpGammaDistribution.ExpIntegralE.ExpIntegralEi.ExpirationDate.Exponent.ExponentFunction.ExponentialDistribution.ExponentialFamily.ExponentialGeneratingFunction.ExponentialMovingAverage.ExponentialPowerDistribution.ExponentPosition.ExponentStep.Export.ExportAutoReplacements.ExportByteArray.ExportForm.ExportPacket.ExportString.Expression.ExpressionCell.ExpressionGraph.ExpressionPacket.ExpressionTree.ExpressionUUID.ExpToTrig.ExtendedEntityClass.ExtendedGCD.Extension.ExtentElementFunction.ExtentMarkers.ExtentSize.ExternalBundle.ExternalCall.ExternalDataCharacterEncoding.ExternalEvaluate.ExternalFunction.ExternalFunctionName.ExternalIdentifier.ExternalObject.ExternalOptions.ExternalSessionObject.ExternalSessions.ExternalStorageBase.ExternalStorageDownload.ExternalStorageGet.ExternalStorageObject.ExternalStoragePut.ExternalStorageUpload.ExternalTypeSignature.ExternalValue.Extract.ExtractArchive.ExtractLayer.ExtractPacletArchive.ExtremeValueDistribution.FaceAlign.FaceForm.FaceGrids.FaceGridsStyle.FaceRecognize.FacialFeatures.Factor.FactorComplete.Factorial.Factorial2.FactorialMoment.FactorialMomentGeneratingFunction.FactorialPower.FactorInteger.FactorList.FactorSquareFree.FactorSquareFreeList.FactorTerms.FactorTermsList.Fail.Failure.FailureAction.FailureDistribution.FailureQ.False.FareySequence.FARIMAProcess.FeatureDistance.FeatureExtract.FeatureExtraction.FeatureExtractor.FeatureExtractorFunction.FeatureImpactPlot.FeatureNames.FeatureNearest.FeatureSpacePlot.FeatureSpacePlot3D.FeatureTypes.FeatureValueDependencyPlot.FeatureValueImpactPlot.FEDisableConsolePrintPacket.FeedbackLinearize.FeedbackSector.FeedbackSectorStyle.FeedbackType.FEEnableConsolePrintPacket.FetalGrowthData.Fibonacci.Fibonorial.FieldCompletionFunction.FieldHint.FieldHintStyle.FieldMasked.FieldSize.File.FileBaseName.FileByteCount.FileConvert.FileDate.FileExistsQ.FileExtension.FileFormat.FileFormatProperties.FileFormatQ.FileHandler.FileHash.FileInformation.FileName.FileNameDepth.FileNameDialogSettings.FileNameDrop.FileNameForms.FileNameJoin.FileNames.FileNameSetter.FileNameSplit.FileNameTake.FileNameToFormatList.FilePrint.FileSize.FileSystemMap.FileSystemScan.FileSystemTree.FileTemplate.FileTemplateApply.FileType.FilledCurve.FilledCurveBox.FilledCurveBoxOptions.FilledTorus.FillForm.Filling.FillingStyle.FillingTransform.FilteredEntityClass.FilterRules.FinancialBond.FinancialData.FinancialDerivative.FinancialIndicator.Find.FindAnomalies.FindArgMax.FindArgMin.FindChannels.FindClique.FindClusters.FindCookies.FindCurvePath.FindCycle.FindDevices.FindDistribution.FindDistributionParameters.FindDivisions.FindEdgeColoring.FindEdgeCover.FindEdgeCut.FindEdgeIndependentPaths.FindEquationalProof.FindEulerianCycle.FindExternalEvaluators.FindFaces.FindFile.FindFit.FindFormula.FindFundamentalCycles.FindGeneratingFunction.FindGeoLocation.FindGeometricConjectures.FindGeometricTransform.FindGraphCommunities.FindGraphIsomorphism.FindGraphPartition.FindHamiltonianCycle.FindHamiltonianPath.FindHiddenMarkovStates.FindImageText.FindIndependentEdgeSet.FindIndependentVertexSet.FindInstance.FindIntegerNullVector.FindIsomers.FindIsomorphicSubgraph.FindKClan.FindKClique.FindKClub.FindKPlex.FindLibrary.FindLinearRecurrence.FindList.FindMatchingColor.FindMaximum.FindMaximumCut.FindMaximumFlow.FindMaxValue.FindMeshDefects.FindMinimum.FindMinimumCostFlow.FindMinimumCut.FindMinValue.FindMoleculeSubstructure.FindPath.FindPeaks.FindPermutation.FindPlanarColoring.FindPointProcessParameters.FindPostmanTour.FindProcessParameters.FindRegionTransform.FindRepeat.FindRoot.FindSequenceFunction.FindSettings.FindShortestPath.FindShortestTour.FindSpanningTree.FindSubgraphIsomorphism.FindSystemModelEquilibrium.FindTextualAnswer.FindThreshold.FindTransientRepeat.FindVertexColoring.FindVertexCover.FindVertexCut.FindVertexIndependentPaths.Fine.FinishDynamic.FiniteAbelianGroupCount.FiniteGroupCount.FiniteGroupData.First.FirstCase.FirstPassageTimeDistribution.FirstPosition.FischerGroupFi22.FischerGroupFi23.FischerGroupFi24Prime.FisherHypergeometricDistribution.FisherRatioTest.FisherZDistribution.Fit.FitAll.FitRegularization.FittedModel.FixedOrder.FixedPoint.FixedPointList.FlashSelection.Flat.FlatShading.Flatten.FlattenAt.FlattenLayer.FlatTopWindow.FlightData.FlipView.Floor.FlowPolynomial.Fold.FoldList.FoldPair.FoldPairList.FoldWhile.FoldWhileList.FollowRedirects.Font.FontColor.FontFamily.FontForm.FontName.FontOpacity.FontPostScriptName.FontProperties.FontReencoding.FontSize.FontSlant.FontSubstitutions.FontTracking.FontVariations.FontWeight.For.ForAll.ForAllType.ForceVersionInstall.Format.FormatRules.FormatType.FormatTypeAutoConvert.FormatValues.FormBox.FormBoxOptions.FormControl.FormFunction.FormLayoutFunction.FormObject.FormPage.FormProtectionMethod.FormTheme.FormulaData.FormulaLookup.FortranForm.Forward.ForwardBackward.ForwardCloudCredentials.Fourier.FourierCoefficient.FourierCosCoefficient.FourierCosSeries.FourierCosTransform.FourierDCT.FourierDCTFilter.FourierDCTMatrix.FourierDST.FourierDSTMatrix.FourierMatrix.FourierParameters.FourierSequenceTransform.FourierSeries.FourierSinCoefficient.FourierSinSeries.FourierSinTransform.FourierTransform.FourierTrigSeries.FoxH.FoxHReduce.FractionalBrownianMotionProcess.FractionalD.FractionalGaussianNoiseProcess.FractionalPart.FractionBox.FractionBoxOptions.FractionLine.Frame.FrameBox.FrameBoxOptions.Framed.FrameInset.FrameLabel.Frameless.FrameListVideo.FrameMargins.FrameRate.FrameStyle.FrameTicks.FrameTicksStyle.FRatioDistribution.FrechetDistribution.FreeQ.FrenetSerretSystem.FrequencySamplingFilterKernel.FresnelC.FresnelF.FresnelG.FresnelS.Friday.FrobeniusNumber.FrobeniusSolve.FromAbsoluteTime.FromCharacterCode.FromCoefficientRules.FromContinuedFraction.FromDate.FromDateString.FromDigits.FromDMS.FromEntity.FromJulianDate.FromLetterNumber.FromPolarCoordinates.FromRawPointer.FromRomanNumeral.FromSphericalCoordinates.FromUnixTime.Front.FrontEndDynamicExpression.FrontEndEventActions.FrontEndExecute.FrontEndObject.FrontEndResource.FrontEndResourceString.FrontEndStackSize.FrontEndToken.FrontEndTokenExecute.FrontEndValueCache.FrontEndVersion.FrontFaceColor.FrontFaceGlowColor.FrontFaceOpacity.FrontFaceSpecularColor.FrontFaceSpecularExponent.FrontFaceSurfaceAppearance.FrontFaceTexture.Full.FullAxes.FullDefinition.FullForm.FullGraphics.FullInformationOutputRegulator.FullOptions.FullRegion.FullSimplify.Function.FunctionAnalytic.FunctionBijective.FunctionCompile.FunctionCompileExport.FunctionCompileExportByteArray.FunctionCompileExportLibrary.FunctionCompileExportString.FunctionContinuous.FunctionConvexity.FunctionDeclaration.FunctionDiscontinuities.FunctionDomain.FunctionExpand.FunctionInjective.FunctionInterpolation.FunctionLayer.FunctionMeromorphic.FunctionMonotonicity.FunctionPeriod.FunctionPoles.FunctionRange.FunctionSign.FunctionSingularities.FunctionSpace.FunctionSurjective.FussellVeselyImportance.GaborFilter.GaborMatrix.GaborWavelet.GainMargins.GainPhaseMargins.GalaxyData.GalleryView.Gamma.GammaDistribution.GammaRegularized.GapPenalty.GARCHProcess.GatedRecurrentLayer.Gather.GatherBy.GaugeFaceElementFunction.GaugeFaceStyle.GaugeFrameElementFunction.GaugeFrameSize.GaugeFrameStyle.GaugeLabels.GaugeMarkers.GaugeStyle.GaussianFilter.GaussianIntegers.GaussianMatrix.GaussianOrthogonalMatrixDistribution.GaussianSymplecticMatrixDistribution.GaussianUnitaryMatrixDistribution.GaussianWindow.GCD.GegenbauerC.General.GeneralizedLinearModelFit.GenerateAsymmetricKeyPair.GenerateConditions.GeneratedAssetFormat.GeneratedAssetLocation.GeneratedCell.GeneratedCellStyles.GeneratedDocumentBinding.GenerateDerivedKey.GenerateDigitalSignature.GenerateDocument.GeneratedParameters.GeneratedQuantityMagnitudes.GenerateFileSignature.GenerateHTTPResponse.GenerateSecuredAuthenticationKey.GenerateSymmetricKey.GeneratingFunction.GeneratorDescription.GeneratorHistoryLength.GeneratorOutputType.Generic.GenericCylindricalDecomposition.GenomeData.GenomeLookup.GeoAntipode.GeoArea.GeoArraySize.GeoBackground.GeoBoundary.GeoBoundingBox.GeoBounds.GeoBoundsRegion.GeoBoundsRegionBoundary.GeoBubbleChart.GeoCenter.GeoCircle.GeoContourPlot.GeoDensityPlot.GeodesicClosing.GeodesicDilation.GeodesicErosion.GeodesicOpening.GeodesicPolyhedron.GeoDestination.GeodesyData.GeoDirection.GeoDisk.GeoDisplacement.GeoDistance.GeoDistanceList.GeoElevationData.GeoEntities.GeoGraphics.GeoGraphPlot.GeoGraphValuePlot.GeogravityModelData.GeoGridDirectionDifference.GeoGridLines.GeoGridLinesStyle.GeoGridPosition.GeoGridRange.GeoGridRangePadding.GeoGridUnitArea.GeoGridUnitDistance.GeoGridVector.GeoGroup.GeoHemisphere.GeoHemisphereBoundary.GeoHistogram.GeoIdentify.GeoImage.GeoLabels.GeoLength.GeoListPlot.GeoLocation.GeologicalPeriodData.GeomagneticModelData.GeoMarker.GeometricAssertion.GeometricBrownianMotionProcess.GeometricDistribution.GeometricMean.GeometricMeanFilter.GeometricOptimization.GeometricScene.GeometricStep.GeometricStylingRules.GeometricTest.GeometricTransformation.GeometricTransformation3DBox.GeometricTransformation3DBoxOptions.GeometricTransformationBox.GeometricTransformationBoxOptions.GeoModel.GeoNearest.GeoOrientationData.GeoPath.GeoPolygon.GeoPosition.GeoPositionENU.GeoPositionXYZ.GeoProjection.GeoProjectionData.GeoRange.GeoRangePadding.GeoRegionValuePlot.GeoResolution.GeoScaleBar.GeoServer.GeoSmoothHistogram.GeoStreamPlot.GeoStyling.GeoStylingImageFunction.GeoVariant.GeoVector.GeoVectorENU.GeoVectorPlot.GeoVectorXYZ.GeoVisibleRegion.GeoVisibleRegionBoundary.GeoWithinQ.GeoZoomLevel.GestureHandler.GestureHandlerTag.Get.GetContext.GetEnvironment.GetFileName.GetLinebreakInformationPacket.GibbsPointProcess.Glaisher.GlobalClusteringCoefficient.GlobalPreferences.GlobalSession.Glow.GoldenAngle.GoldenRatio.GompertzMakehamDistribution.GoochShading.GoodmanKruskalGamma.GoodmanKruskalGammaTest.Goto.GouraudShading.Grad.Gradient.GradientFilter.GradientFittedMesh.GradientOrientationFilter.GrammarApply.GrammarRules.GrammarToken.Graph.Graph3D.GraphAssortativity.GraphAutomorphismGroup.GraphCenter.GraphComplement.GraphData.GraphDensity.GraphDiameter.GraphDifference.GraphDisjointUnion.GraphDistance.GraphDistanceMatrix.GraphEmbedding.GraphHighlight.GraphHighlightStyle.GraphHub.Graphics.Graphics3D.Graphics3DBox.Graphics3DBoxOptions.GraphicsArray.GraphicsBaseline.GraphicsBox.GraphicsBoxOptions.GraphicsColor.GraphicsColumn.GraphicsComplex.GraphicsComplex3DBox.GraphicsComplex3DBoxOptions.GraphicsComplexBox.GraphicsComplexBoxOptions.GraphicsContents.GraphicsData.GraphicsGrid.GraphicsGridBox.GraphicsGroup.GraphicsGroup3DBox.GraphicsGroup3DBoxOptions.GraphicsGroupBox.GraphicsGroupBoxOptions.GraphicsGrouping.GraphicsHighlightColor.GraphicsRow.GraphicsSpacing.GraphicsStyle.GraphIntersection.GraphJoin.GraphLayerLabels.GraphLayers.GraphLayerStyle.GraphLayout.GraphLinkEfficiency.GraphPeriphery.GraphPlot.GraphPlot3D.GraphPower.GraphProduct.GraphPropertyDistribution.GraphQ.GraphRadius.GraphReciprocity.GraphRoot.GraphStyle.GraphSum.GraphTree.GraphUnion.Gray.GrayLevel.Greater.GreaterEqual.GreaterEqualLess.GreaterEqualThan.GreaterFullEqual.GreaterGreater.GreaterLess.GreaterSlantEqual.GreaterThan.GreaterTilde.GreekStyle.Green.GreenFunction.Grid.GridBaseline.GridBox.GridBoxAlignment.GridBoxBackground.GridBoxDividers.GridBoxFrame.GridBoxItemSize.GridBoxItemStyle.GridBoxOptions.GridBoxSpacings.GridCreationSettings.GridDefaultElement.GridElementStyleOptions.GridFrame.GridFrameMargins.GridGraph.GridLines.GridLinesStyle.GridVideo.GroebnerBasis.GroupActionBase.GroupBy.GroupCentralizer.GroupElementFromWord.GroupElementPosition.GroupElementQ.GroupElements.GroupElementToWord.GroupGenerators.Groupings.GroupMultiplicationTable.GroupOpenerColor.GroupOpenerInsideFrame.GroupOrbits.GroupOrder.GroupPageBreakWithin.GroupSetwiseStabilizer.GroupStabilizer.GroupStabilizerChain.GroupTogetherGrouping.GroupTogetherNestedGrouping.GrowCutComponents.Gudermannian.GuidedFilter.GumbelDistribution.HaarWavelet.HadamardMatrix.HalfLine.HalfNormalDistribution.HalfPlane.HalfSpace.HalftoneShading.HamiltonianGraphQ.HammingDistance.HammingWindow.HandlerFunctions.HandlerFunctionsKeys.HankelH1.HankelH2.HankelMatrix.HankelTransform.HannPoissonWindow.HannWindow.HaradaNortonGroupHN.HararyGraph.HardcorePointProcess.HarmonicMean.HarmonicMeanFilter.HarmonicNumber.Hash.HatchFilling.HatchShading.Haversine.HazardFunction.Head.HeadCompose.HeaderAlignment.HeaderBackground.HeaderDisplayFunction.HeaderLines.Headers.HeaderSize.HeaderStyle.Heads.HeatFluxValue.HeatInsulationValue.HeatOutflowValue.HeatRadiationValue.HeatSymmetryValue.HeatTemperatureCondition.HeatTransferPDEComponent.HeatTransferValue.HeavisideLambda.HeavisidePi.HeavisideTheta.HeldGroupHe.HeldPart.HelmholtzPDEComponent.HelpBrowserLookup.HelpBrowserNotebook.HelpBrowserSettings.HelpViewerSettings.Here.HermiteDecomposition.HermiteH.Hermitian.HermitianMatrixQ.HessenbergDecomposition.Hessian.HeunB.HeunBPrime.HeunC.HeunCPrime.HeunD.HeunDPrime.HeunG.HeunGPrime.HeunT.HeunTPrime.HexadecimalCharacter.Hexahedron.HexahedronBox.HexahedronBoxOptions.HiddenItems.HiddenMarkovProcess.HiddenSurface.Highlighted.HighlightGraph.HighlightImage.HighlightMesh.HighlightString.HighpassFilter.HigmanSimsGroupHS.HilbertCurve.HilbertFilter.HilbertMatrix.Histogram.Histogram3D.HistogramDistribution.HistogramList.HistogramPointDensity.HistogramTransform.HistogramTransformInterpolation.HistoricalPeriodData.HitMissTransform.HITSCentrality.HjorthDistribution.HodgeDual.HoeffdingD.HoeffdingDTest.Hold.HoldAll.HoldAllComplete.HoldComplete.HoldFirst.HoldForm.HoldPattern.HoldRest.HolidayCalendar.HomeDirectory.HomePage.Horizontal.HorizontalForm.HorizontalGauge.HorizontalScrollPosition.HornerForm.HostLookup.HotellingTSquareDistribution.HoytDistribution.HTMLSave.HTTPErrorResponse.HTTPRedirect.HTTPRequest.HTTPRequestData.HTTPResponse.Hue.HumanGrowthData.HumpDownHump.HumpEqual.HurwitzLerchPhi.HurwitzZeta.HyperbolicDistribution.HypercubeGraph.HyperexponentialDistribution.Hyperfactorial.Hypergeometric0F1.Hypergeometric0F1Regularized.Hypergeometric1F1.Hypergeometric1F1Regularized.Hypergeometric2F1.Hypergeometric2F1Regularized.HypergeometricDistribution.HypergeometricPFQ.HypergeometricPFQRegularized.HypergeometricU.Hyperlink.HyperlinkAction.HyperlinkCreationSettings.Hyperplane.Hyphenation.HyphenationOptions.HypoexponentialDistribution.HypothesisTestData.I.IconData.Iconize.IconizedObject.IconRules.Icosahedron.Identity.IdentityMatrix.If.IfCompiled.IgnoreCase.IgnoreDiacritics.IgnoreIsotopes.IgnorePunctuation.IgnoreSpellCheck.IgnoreStereochemistry.IgnoringInactive.Im.Image.Image3D.Image3DProjection.Image3DSlices.ImageAccumulate.ImageAdd.ImageAdjust.ImageAlign.ImageApply.ImageApplyIndexed.ImageAspectRatio.ImageAssemble.ImageAugmentationLayer.ImageBoundingBoxes.ImageCache.ImageCacheValid.ImageCapture.ImageCaptureFunction.ImageCases.ImageChannels.ImageClip.ImageCollage.ImageColorSpace.ImageCompose.ImageContainsQ.ImageContents.ImageConvolve.ImageCooccurrence.ImageCorners.ImageCorrelate.ImageCorrespondingPoints.ImageCrop.ImageData.ImageDeconvolve.ImageDemosaic.ImageDifference.ImageDimensions.ImageDisplacements.ImageDistance.ImageEditMode.ImageEffect.ImageExposureCombine.ImageFeatureTrack.ImageFileApply.ImageFileFilter.ImageFileScan.ImageFilter.ImageFocusCombine.ImageForestingComponents.ImageFormattingWidth.ImageForwardTransformation.ImageGraphics.ImageHistogram.ImageIdentify.ImageInstanceQ.ImageKeypoints.ImageLabels.ImageLegends.ImageLevels.ImageLines.ImageMargins.ImageMarker.ImageMarkers.ImageMeasurements.ImageMesh.ImageMultiply.ImageOffset.ImagePad.ImagePadding.ImagePartition.ImagePeriodogram.ImagePerspectiveTransformation.ImagePosition.ImagePreviewFunction.ImagePyramid.ImagePyramidApply.ImageQ.ImageRangeCache.ImageRecolor.ImageReflect.ImageRegion.ImageResize.ImageResolution.ImageRestyle.ImageRotate.ImageRotated.ImageSaliencyFilter.ImageScaled.ImageScan.ImageSize.ImageSizeAction.ImageSizeCache.ImageSizeMultipliers.ImageSizeRaw.ImageStitch.ImageSubtract.ImageTake.ImageTransformation.ImageTrim.ImageType.ImageValue.ImageValuePositions.ImageVectorscopePlot.ImageWaveformPlot.ImagingDevice.ImplicitD.ImplicitRegion.Implies.Import.ImportAutoReplacements.ImportByteArray.ImportedObject.ImportOptions.ImportString.ImprovementImportance.In.Inactivate.Inactive.InactiveStyle.IncidenceGraph.IncidenceList.IncidenceMatrix.IncludeAromaticBonds.IncludeConstantBasis.IncludedContexts.IncludeDefinitions.IncludeDirectories.IncludeFileExtension.IncludeGeneratorTasks.IncludeHydrogens.IncludeInflections.IncludeMetaInformation.IncludePods.IncludeQuantities.IncludeRelatedTables.IncludeSingularSolutions.IncludeSingularTerm.IncludeWindowTimes.Increment.IndefiniteMatrixQ.Indent.IndentingNewlineSpacings.IndentMaxFraction.IndependenceTest.IndependentEdgeSetQ.IndependentPhysicalQuantity.IndependentUnit.IndependentUnitDimension.IndependentVertexSetQ.Indeterminate.IndeterminateThreshold.IndexCreationOptions.Indexed.IndexEdgeTaggedGraph.IndexGraph.IndexTag.Inequality.InertEvaluate.InertExpression.InexactNumberQ.InexactNumbers.InfiniteFuture.InfiniteLine.InfiniteLineThrough.InfinitePast.InfinitePlane.Infinity.Infix.InflationAdjust.InflationMethod.Information.InformationData.InformationDataGrid.Inherited.InheritScope.InhomogeneousPoissonPointProcess.InhomogeneousPoissonProcess.InitialEvaluationHistory.Initialization.InitializationCell.InitializationCellEvaluation.InitializationCellWarning.InitializationObject.InitializationObjects.InitializationValue.Initialize.InitialSeeding.InlineCounterAssignments.InlineCounterIncrements.InlineRules.Inner.InnerPolygon.InnerPolyhedron.Inpaint.Input.InputAliases.InputAssumptions.InputAutoReplacements.InputField.InputFieldBox.InputFieldBoxOptions.InputForm.InputGrouping.InputNamePacket.InputNotebook.InputPacket.InputPorts.InputSettings.InputStream.InputString.InputStringPacket.InputToBoxFormPacket.Insert.InsertionFunction.InsertionPointObject.InsertLinebreaks.InsertResults.Inset.Inset3DBox.Inset3DBoxOptions.InsetBox.InsetBoxOptions.Insphere.Install.InstallService.InstanceNormalizationLayer.InString.Integer.IntegerDigits.IntegerExponent.IntegerLength.IntegerName.IntegerPart.IntegerPartitions.IntegerQ.IntegerReverse.Integers.IntegerString.Integral.Integrate.IntegrateChangeVariables.Interactive.InteractiveTradingChart.InterfaceSwitched.Interlaced.Interleaving.InternallyBalancedDecomposition.InterpolatingFunction.InterpolatingPolynomial.Interpolation.InterpolationOrder.InterpolationPoints.InterpolationPrecision.Interpretation.InterpretationBox.InterpretationBoxOptions.InterpretationFunction.Interpreter.InterpretTemplate.InterquartileRange.Interrupt.InterruptSettings.IntersectedEntityClass.IntersectingQ.Intersection.Interval.IntervalIntersection.IntervalMarkers.IntervalMarkersStyle.IntervalMemberQ.IntervalSlider.IntervalUnion.Into.Inverse.InverseBetaRegularized.InverseBilateralLaplaceTransform.InverseBilateralZTransform.InverseCDF.InverseChiSquareDistribution.InverseContinuousWaveletTransform.InverseDistanceTransform.InverseEllipticNomeQ.InverseErf.InverseErfc.InverseFourier.InverseFourierCosTransform.InverseFourierSequenceTransform.InverseFourierSinTransform.InverseFourierTransform.InverseFunction.InverseFunctions.InverseGammaDistribution.InverseGammaRegularized.InverseGaussianDistribution.InverseGudermannian.InverseHankelTransform.InverseHaversine.InverseImagePyramid.InverseJacobiCD.InverseJacobiCN.InverseJacobiCS.InverseJacobiDC.InverseJacobiDN.InverseJacobiDS.InverseJacobiNC.InverseJacobiND.InverseJacobiNS.InverseJacobiSC.InverseJacobiSD.InverseJacobiSN.InverseLaplaceTransform.InverseMellinTransform.InversePermutation.InverseRadon.InverseRadonTransform.InverseSeries.InverseShortTimeFourier.InverseSpectrogram.InverseSurvivalFunction.InverseTransformedRegion.InverseWaveletTransform.InverseWeierstrassP.InverseWishartMatrixDistribution.InverseZTransform.Invisible.InvisibleApplication.InvisibleTimes.IPAddress.IrreduciblePolynomialQ.IslandData.IsolatingInterval.IsomorphicGraphQ.IsomorphicSubgraphQ.IsotopeData.Italic.Item.ItemAspectRatio.ItemBox.ItemBoxOptions.ItemDisplayFunction.ItemSize.ItemStyle.ItoProcess.JaccardDissimilarity.JacobiAmplitude.Jacobian.JacobiCD.JacobiCN.JacobiCS.JacobiDC.JacobiDN.JacobiDS.JacobiEpsilon.JacobiNC.JacobiND.JacobiNS.JacobiP.JacobiSC.JacobiSD.JacobiSN.JacobiSymbol.JacobiZeta.JacobiZN.JankoGroupJ1.JankoGroupJ2.JankoGroupJ3.JankoGroupJ4.JarqueBeraALMTest.JohnsonDistribution.Join.JoinAcross.Joined.JoinedCurve.JoinedCurveBox.JoinedCurveBoxOptions.JoinForm.JordanDecomposition.JordanModelDecomposition.JulianDate.JuliaSetBoettcher.JuliaSetIterationCount.JuliaSetPlot.JuliaSetPoints.K.KagiChart.KaiserBesselWindow.KaiserWindow.KalmanEstimator.KalmanFilter.KarhunenLoeveDecomposition.KaryTree.KatzCentrality.KCoreComponents.KDistribution.KEdgeConnectedComponents.KEdgeConnectedGraphQ.KeepExistingVersion.KelvinBei.KelvinBer.KelvinKei.KelvinKer.KendallTau.KendallTauTest.KernelConfiguration.KernelExecute.KernelFunction.KernelMixtureDistribution.KernelObject.Kernels.Ket.Key.KeyCollisionFunction.KeyComplement.KeyDrop.KeyDropFrom.KeyExistsQ.KeyFreeQ.KeyIntersection.KeyMap.KeyMemberQ.KeypointStrength.Keys.KeySelect.KeySort.KeySortBy.KeyTake.KeyUnion.KeyValueMap.KeyValuePattern.Khinchin.KillProcess.KirchhoffGraph.KirchhoffMatrix.KleinInvariantJ.KnapsackSolve.KnightTourGraph.KnotData.KnownUnitQ.KochCurve.KolmogorovSmirnovTest.KroneckerDelta.KroneckerModelDecomposition.KroneckerProduct.KroneckerSymbol.KuiperTest.KumaraswamyDistribution.Kurtosis.KuwaharaFilter.KVertexConnectedComponents.KVertexConnectedGraphQ.LABColor.Label.Labeled.LabeledSlider.LabelingFunction.LabelingSize.LabelStyle.LabelVisibility.LaguerreL.LakeData.LambdaComponents.LambertW.LameC.LameCPrime.LameEigenvalueA.LameEigenvalueB.LameS.LameSPrime.LaminaData.LanczosWindow.LandauDistribution.Language.LanguageCategory.LanguageData.LanguageIdentify.LanguageOptions.LaplaceDistribution.LaplaceTransform.Laplacian.LaplacianFilter.LaplacianGaussianFilter.LaplacianPDETerm.Large.Larger.Last.Latitude.LatitudeLongitude.LatticeData.LatticeReduce.Launch.LaunchKernels.LayeredGraphPlot.LayeredGraphPlot3D.LayerSizeFunction.LayoutInformation.LCHColor.LCM.LeaderSize.LeafCount.LeapVariant.LeapYearQ.LearnDistribution.LearnedDistribution.LearningRate.LearningRateMultipliers.LeastSquares.LeastSquaresFilterKernel.Left.LeftArrow.LeftArrowBar.LeftArrowRightArrow.LeftDownTeeVector.LeftDownVector.LeftDownVectorBar.LeftRightArrow.LeftRightVector.LeftTee.LeftTeeArrow.LeftTeeVector.LeftTriangle.LeftTriangleBar.LeftTriangleEqual.LeftUpDownVector.LeftUpTeeVector.LeftUpVector.LeftUpVectorBar.LeftVector.LeftVectorBar.LegendAppearance.Legended.LegendFunction.LegendLabel.LegendLayout.LegendMargins.LegendMarkers.LegendMarkerSize.LegendreP.LegendreQ.LegendreType.Length.LengthWhile.LerchPhi.Less.LessEqual.LessEqualGreater.LessEqualThan.LessFullEqual.LessGreater.LessLess.LessSlantEqual.LessThan.LessTilde.LetterCharacter.LetterCounts.LetterNumber.LetterQ.Level.LeveneTest.LeviCivitaTensor.LevyDistribution.Lexicographic.LexicographicOrder.LexicographicSort.LibraryDataType.LibraryFunction.LibraryFunctionDeclaration.LibraryFunctionError.LibraryFunctionInformation.LibraryFunctionLoad.LibraryFunctionUnload.LibraryLoad.LibraryUnload.LicenseEntitlementObject.LicenseEntitlements.LicenseID.LicensingSettings.LiftingFilterData.LiftingWaveletTransform.LightBlue.LightBrown.LightCyan.Lighter.LightGray.LightGreen.Lighting.LightingAngle.LightMagenta.LightOrange.LightPink.LightPurple.LightRed.LightSources.LightYellow.Likelihood.Limit.LimitsPositioning.LimitsPositioningTokens.LindleyDistribution.Line.Line3DBox.Line3DBoxOptions.LinearFilter.LinearFractionalOptimization.LinearFractionalTransform.LinearGradientFilling.LinearGradientImage.LinearizingTransformationData.LinearLayer.LinearModelFit.LinearOffsetFunction.LinearOptimization.LinearProgramming.LinearRecurrence.LinearSolve.LinearSolveFunction.LineBox.LineBoxOptions.LineBreak.LinebreakAdjustments.LineBreakChart.LinebreakSemicolonWeighting.LineBreakWithin.LineColor.LineGraph.LineIndent.LineIndentMaxFraction.LineIntegralConvolutionPlot.LineIntegralConvolutionScale.LineLegend.LineOpacity.LineSpacing.LineWrapParts.LinkActivate.LinkClose.LinkConnect.LinkConnectedQ.LinkCreate.LinkError.LinkFlush.LinkFunction.LinkHost.LinkInterrupt.LinkLaunch.LinkMode.LinkObject.LinkOpen.LinkOptions.LinkPatterns.LinkProtocol.LinkRankCentrality.LinkRead.LinkReadHeld.LinkReadyQ.Links.LinkService.LinkWrite.LinkWriteHeld.LiouvilleLambda.List.Listable.ListAnimate.ListContourPlot.ListContourPlot3D.ListConvolve.ListCorrelate.ListCurvePathPlot.ListDeconvolve.ListDensityPlot.ListDensityPlot3D.Listen.ListFormat.ListFourierSequenceTransform.ListInterpolation.ListLineIntegralConvolutionPlot.ListLinePlot.ListLinePlot3D.ListLogLinearPlot.ListLogLogPlot.ListLogPlot.ListPicker.ListPickerBox.ListPickerBoxBackground.ListPickerBoxOptions.ListPlay.ListPlot.ListPlot3D.ListPointPlot3D.ListPolarPlot.ListQ.ListSliceContourPlot3D.ListSliceDensityPlot3D.ListSliceVectorPlot3D.ListStepPlot.ListStreamDensityPlot.ListStreamPlot.ListStreamPlot3D.ListSurfacePlot3D.ListVectorDensityPlot.ListVectorDisplacementPlot.ListVectorDisplacementPlot3D.ListVectorPlot.ListVectorPlot3D.ListZTransform.Literal.LiteralSearch.LiteralType.LoadCompiledComponent.LocalAdaptiveBinarize.LocalCache.LocalClusteringCoefficient.LocalEvaluate.LocalizeDefinitions.LocalizeVariables.LocalObject.LocalObjects.LocalResponseNormalizationLayer.LocalSubmit.LocalSymbol.LocalTime.LocalTimeZone.LocationEquivalenceTest.LocationTest.Locator.LocatorAutoCreate.LocatorBox.LocatorBoxOptions.LocatorCentering.LocatorPane.LocatorPaneBox.LocatorPaneBoxOptions.LocatorRegion.Locked.Log.Log10.Log2.LogBarnesG.LogGamma.LogGammaDistribution.LogicalExpand.LogIntegral.LogisticDistribution.LogisticSigmoid.LogitModelFit.LogLikelihood.LogLinearPlot.LogLogisticDistribution.LogLogPlot.LogMultinormalDistribution.LogNormalDistribution.LogPlot.LogRankTest.LogSeriesDistribution.LongEqual.Longest.LongestCommonSequence.LongestCommonSequencePositions.LongestCommonSubsequence.LongestCommonSubsequencePositions.LongestMatch.LongestOrderedSequence.LongForm.Longitude.LongLeftArrow.LongLeftRightArrow.LongRightArrow.LongShortTermMemoryLayer.Lookup.Loopback.LoopFreeGraphQ.Looping.LossFunction.LowerCaseQ.LowerLeftArrow.LowerRightArrow.LowerTriangularize.LowerTriangularMatrix.LowerTriangularMatrixQ.LowpassFilter.LQEstimatorGains.LQGRegulator.LQOutputRegulatorGains.LQRegulatorGains.LUBackSubstitution.LucasL.LuccioSamiComponents.LUDecomposition.LunarEclipse.LUVColor.LyapunovSolve.LyonsGroupLy.MachineID.MachineName.MachineNumberQ.MachinePrecision.MacintoshSystemPageSetup.Magenta.Magnification.Magnify.MailAddressValidation.MailExecute.MailFolder.MailItem.MailReceiverFunction.MailResponseFunction.MailSearch.MailServerConnect.MailServerConnection.MailSettings.MainSolve.MaintainDynamicCaches.Majority.MakeBoxes.MakeExpression.MakeRules.ManagedLibraryExpressionID.ManagedLibraryExpressionQ.MandelbrotSetBoettcher.MandelbrotSetDistance.MandelbrotSetIterationCount.MandelbrotSetMemberQ.MandelbrotSetPlot.MangoldtLambda.ManhattanDistance.Manipulate.Manipulator.MannedSpaceMissionData.MannWhitneyTest.MantissaExponent.Manual.Map.MapAll.MapApply.MapAt.MapIndexed.MAProcess.MapThread.MarchenkoPasturDistribution.MarcumQ.MardiaCombinedTest.MardiaKurtosisTest.MardiaSkewnessTest.MarginalDistribution.MarkovProcessProperties.Masking.MassConcentrationCondition.MassFluxValue.MassImpermeableBoundaryValue.MassOutflowValue.MassSymmetryValue.MassTransferValue.MassTransportPDEComponent.MatchingDissimilarity.MatchLocalNameQ.MatchLocalNames.MatchQ.Material.MaterialShading.MaternPointProcess.MathematicalFunctionData.MathematicaNotation.MathieuC.MathieuCharacteristicA.MathieuCharacteristicB.MathieuCharacteristicExponent.MathieuCPrime.MathieuGroupM11.MathieuGroupM12.MathieuGroupM22.MathieuGroupM23.MathieuGroupM24.MathieuS.MathieuSPrime.MathMLForm.MathMLText.Matrices.MatrixExp.MatrixForm.MatrixFunction.MatrixLog.MatrixNormalDistribution.MatrixPlot.MatrixPower.MatrixPropertyDistribution.MatrixQ.MatrixRank.MatrixTDistribution.Max.MaxBend.MaxCellMeasure.MaxColorDistance.MaxDate.MaxDetect.MaxDisplayedChildren.MaxDuration.MaxExtraBandwidths.MaxExtraConditions.MaxFeatureDisplacement.MaxFeatures.MaxFilter.MaximalBy.Maximize.MaxItems.MaxIterations.MaxLimit.MaxMemoryUsed.MaxMixtureKernels.MaxOverlapFraction.MaxPlotPoints.MaxPoints.MaxRecursion.MaxStableDistribution.MaxStepFraction.MaxSteps.MaxStepSize.MaxTrainingRounds.MaxValue.MaxwellDistribution.MaxWordGap.McLaughlinGroupMcL.Mean.MeanAbsoluteLossLayer.MeanAround.MeanClusteringCoefficient.MeanDegreeConnectivity.MeanDeviation.MeanFilter.MeanGraphDistance.MeanNeighborDegree.MeanPointDensity.MeanShift.MeanShiftFilter.MeanSquaredLossLayer.Median.MedianDeviation.MedianFilter.MedicalTestData.Medium.MeijerG.MeijerGReduce.MeixnerDistribution.MellinConvolve.MellinTransform.MemberQ.MemoryAvailable.MemoryConstrained.MemoryConstraint.MemoryInUse.MengerMesh.Menu.MenuAppearance.MenuCommandKey.MenuEvaluator.MenuItem.MenuList.MenuPacket.MenuSortingValue.MenuStyle.MenuView.Merge.MergeDifferences.MergingFunction.MersennePrimeExponent.MersennePrimeExponentQ.Mesh.MeshCellCentroid.MeshCellCount.MeshCellHighlight.MeshCellIndex.MeshCellLabel.MeshCellMarker.MeshCellMeasure.MeshCellQuality.MeshCells.MeshCellShapeFunction.MeshCellStyle.MeshConnectivityGraph.MeshCoordinates.MeshFunctions.MeshPrimitives.MeshQualityGoal.MeshRange.MeshRefinementFunction.MeshRegion.MeshRegionQ.MeshShading.MeshStyle.Message.MessageDialog.MessageList.MessageName.MessageObject.MessageOptions.MessagePacket.Messages.MessagesNotebook.MetaCharacters.MetaInformation.MeteorShowerData.Method.MethodOptions.MexicanHatWavelet.MeyerWavelet.Midpoint.MIMETypeToFormatList.Min.MinColorDistance.MinDate.MinDetect.MineralData.MinFilter.MinimalBy.MinimalPolynomial.MinimalStateSpaceModel.Minimize.MinimumTimeIncrement.MinIntervalSize.MinkowskiQuestionMark.MinLimit.MinMax.MinorPlanetData.Minors.MinPointSeparation.MinRecursion.MinSize.MinStableDistribution.Minus.MinusPlus.MinValue.Missing.MissingBehavior.MissingDataMethod.MissingDataRules.MissingQ.MissingString.MissingStyle.MissingValuePattern.MissingValueSynthesis.MittagLefflerE.MixedFractionParts.MixedGraphQ.MixedMagnitude.MixedRadix.MixedRadixQuantity.MixedUnit.MixtureDistribution.Mod.Modal.Mode.ModelPredictiveController.Modular.ModularInverse.ModularLambda.Module.Modulus.MoebiusMu.Molecule.MoleculeAlign.MoleculeContainsQ.MoleculeDraw.MoleculeEquivalentQ.MoleculeFreeQ.MoleculeGraph.MoleculeMatchQ.MoleculeMaximumCommonSubstructure.MoleculeModify.MoleculeName.MoleculePattern.MoleculePlot.MoleculePlot3D.MoleculeProperty.MoleculeQ.MoleculeRecognize.MoleculeSubstructureCount.MoleculeValue.Moment.MomentConvert.MomentEvaluate.MomentGeneratingFunction.MomentOfInertia.Monday.Monitor.MonomialList.MonomialOrder.MonsterGroupM.MoonPhase.MoonPosition.MorletWavelet.MorphologicalBinarize.MorphologicalBranchPoints.MorphologicalComponents.MorphologicalEulerNumber.MorphologicalGraph.MorphologicalPerimeter.MorphologicalTransform.MortalityData.Most.MountainData.MouseAnnotation.MouseAppearance.MouseAppearanceTag.MouseButtons.Mouseover.MousePointerNote.MousePosition.MovieData.MovingAverage.MovingMap.MovingMedian.MoyalDistribution.MultiaxisArrangement.Multicolumn.MultiedgeStyle.MultigraphQ.MultilaunchWarning.MultiLetterItalics.MultiLetterStyle.MultilineFunction.Multinomial.MultinomialDistribution.MultinormalDistribution.MultiplicativeOrder.Multiplicity.MultiplySides.MultiscriptBoxOptions.Multiselection.MultivariateHypergeometricDistribution.MultivariatePoissonDistribution.MultivariateTDistribution.N.NakagamiDistribution.NameQ.Names.NamespaceBox.NamespaceBoxOptions.Nand.NArgMax.NArgMin.NBernoulliB.NBodySimulation.NBodySimulationData.NCache.NCaputoD.NDEigensystem.NDEigenvalues.NDSolve.NDSolveValue.Nearest.NearestFunction.NearestMeshCells.NearestNeighborG.NearestNeighborGraph.NearestTo.NebulaData.NeedlemanWunschSimilarity.Needs.Negative.NegativeBinomialDistribution.NegativeDefiniteMatrixQ.NegativeIntegers.NegativelyOrientedPoints.NegativeMultinomialDistribution.NegativeRationals.NegativeReals.NegativeSemidefiniteMatrixQ.NeighborhoodData.NeighborhoodGraph.Nest.NestedGreaterGreater.NestedLessLess.NestedScriptRules.NestGraph.NestList.NestTree.NestWhile.NestWhileList.NetAppend.NetArray.NetArrayLayer.NetBidirectionalOperator.NetChain.NetDecoder.NetDelete.NetDrop.NetEncoder.NetEvaluationMode.NetExternalObject.NetExtract.NetFlatten.NetFoldOperator.NetGANOperator.NetGraph.NetInformation.NetInitialize.NetInsert.NetInsertSharedArrays.NetJoin.NetMapOperator.NetMapThreadOperator.NetMeasurements.NetModel.NetNestOperator.NetPairEmbeddingOperator.NetPort.NetPortGradient.NetPrepend.NetRename.NetReplace.NetReplacePart.NetSharedArray.NetStateObject.NetTake.NetTrain.NetTrainResultsObject.NetUnfold.NetworkPacketCapture.NetworkPacketRecording.NetworkPacketRecordingDuring.NetworkPacketTrace.NeumannValue.NevilleThetaC.NevilleThetaD.NevilleThetaN.NevilleThetaS.NewPrimitiveStyle.NExpectation.Next.NextCell.NextDate.NextPrime.NextScheduledTaskTime.NeymanScottPointProcess.NFractionalD.NHoldAll.NHoldFirst.NHoldRest.NicholsGridLines.NicholsPlot.NightHemisphere.NIntegrate.NMaximize.NMaxValue.NMinimize.NMinValue.NominalScale.NominalVariables.NonAssociative.NoncentralBetaDistribution.NoncentralChiSquareDistribution.NoncentralFRatioDistribution.NoncentralStudentTDistribution.NonCommutativeMultiply.NonConstants.NondimensionalizationTransform.None.NoneTrue.NonlinearModelFit.NonlinearStateSpaceModel.NonlocalMeansFilter.NonNegative.NonNegativeIntegers.NonNegativeRationals.NonNegativeReals.NonPositive.NonPositiveIntegers.NonPositiveRationals.NonPositiveReals.Nor.NorlundB.Norm.Normal.NormalDistribution.NormalGrouping.NormalizationLayer.Normalize.Normalized.NormalizedSquaredEuclideanDistance.NormalMatrixQ.NormalsFunction.NormFunction.Not.NotCongruent.NotCupCap.NotDoubleVerticalBar.Notebook.NotebookApply.NotebookAutoSave.NotebookBrowseDirectory.NotebookClose.NotebookConvertSettings.NotebookCreate.NotebookDefault.NotebookDelete.NotebookDirectory.NotebookDynamicExpression.NotebookEvaluate.NotebookEventActions.NotebookFileName.NotebookFind.NotebookGet.NotebookImport.NotebookInformation.NotebookInterfaceObject.NotebookLocate.NotebookObject.NotebookOpen.NotebookPath.NotebookPrint.NotebookPut.NotebookRead.Notebooks.NotebookSave.NotebookSelection.NotebooksMenu.NotebookTemplate.NotebookWrite.NotElement.NotEqualTilde.NotExists.NotGreater.NotGreaterEqual.NotGreaterFullEqual.NotGreaterGreater.NotGreaterLess.NotGreaterSlantEqual.NotGreaterTilde.Nothing.NotHumpDownHump.NotHumpEqual.NotificationFunction.NotLeftTriangle.NotLeftTriangleBar.NotLeftTriangleEqual.NotLess.NotLessEqual.NotLessFullEqual.NotLessGreater.NotLessLess.NotLessSlantEqual.NotLessTilde.NotNestedGreaterGreater.NotNestedLessLess.NotPrecedes.NotPrecedesEqual.NotPrecedesSlantEqual.NotPrecedesTilde.NotReverseElement.NotRightTriangle.NotRightTriangleBar.NotRightTriangleEqual.NotSquareSubset.NotSquareSubsetEqual.NotSquareSuperset.NotSquareSupersetEqual.NotSubset.NotSubsetEqual.NotSucceeds.NotSucceedsEqual.NotSucceedsSlantEqual.NotSucceedsTilde.NotSuperset.NotSupersetEqual.NotTilde.NotTildeEqual.NotTildeFullEqual.NotTildeTilde.NotVerticalBar.Now.NoWhitespace.NProbability.NProduct.NProductFactors.NRoots.NSolve.NSolveValues.NSum.NSumTerms.NuclearExplosionData.NuclearReactorData.Null.NullRecords.NullSpace.NullWords.Number.NumberCompose.NumberDecompose.NumberDigit.NumberExpand.NumberFieldClassNumber.NumberFieldDiscriminant.NumberFieldFundamentalUnits.NumberFieldIntegralBasis.NumberFieldNormRepresentatives.NumberFieldRegulator.NumberFieldRootsOfUnity.NumberFieldSignature.NumberForm.NumberFormat.NumberLinePlot.NumberMarks.NumberMultiplier.NumberPadding.NumberPoint.NumberQ.NumberSeparator.NumberSigns.NumberString.Numerator.NumeratorDenominator.NumericalOrder.NumericalSort.NumericArray.NumericArrayQ.NumericArrayType.NumericFunction.NumericQ.NuttallWindow.NValues.NyquistGridLines.NyquistPlot.O.ObjectExistsQ.ObservabilityGramian.ObservabilityMatrix.ObservableDecomposition.ObservableModelQ.OceanData.Octahedron.OddQ.Off.Offset.OLEData.On.ONanGroupON.Once.OneIdentity.Opacity.OpacityFunction.OpacityFunctionScaling.Open.OpenAppend.Opener.OpenerBox.OpenerBoxOptions.OpenerView.OpenFunctionInspectorPacket.Opening.OpenRead.OpenSpecialOptions.OpenTemporary.OpenWrite.Operate.OperatingSystem.OperatorApplied.OptimumFlowData.Optional.OptionalElement.OptionInspectorSettings.OptionQ.Options.OptionsPacket.OptionsPattern.OptionValue.OptionValueBox.OptionValueBoxOptions.Or.Orange.Order.OrderDistribution.OrderedQ.Ordering.OrderingBy.OrderingLayer.Orderless.OrderlessPatternSequence.OrdinalScale.OrnsteinUhlenbeckProcess.Orthogonalize.OrthogonalMatrixQ.Out.Outer.OuterPolygon.OuterPolyhedron.OutputAutoOverwrite.OutputControllabilityMatrix.OutputControllableModelQ.OutputForm.OutputFormData.OutputGrouping.OutputMathEditExpression.OutputNamePacket.OutputPorts.OutputResponse.OutputSizeLimit.OutputStream.Over.OverBar.OverDot.Overflow.OverHat.Overlaps.Overlay.OverlayBox.OverlayBoxOptions.OverlayVideo.Overscript.OverscriptBox.OverscriptBoxOptions.OverTilde.OverVector.OverwriteTarget.OwenT.OwnValues.Package.PackingMethod.PackPaclet.PacletDataRebuild.PacletDirectoryAdd.PacletDirectoryLoad.PacletDirectoryRemove.PacletDirectoryUnload.PacletDisable.PacletEnable.PacletFind.PacletFindRemote.PacletInformation.PacletInstall.PacletInstallSubmit.PacletNewerQ.PacletObject.PacletObjectQ.PacletSite.PacletSiteObject.PacletSiteRegister.PacletSites.PacletSiteUnregister.PacletSiteUpdate.PacletSymbol.PacletUninstall.PacletUpdate.PaddedForm.Padding.PaddingLayer.PaddingSize.PadeApproximant.PadLeft.PadRight.PageBreakAbove.PageBreakBelow.PageBreakWithin.PageFooterLines.PageFooters.PageHeaderLines.PageHeaders.PageHeight.PageRankCentrality.PageTheme.PageWidth.Pagination.PairCorrelationG.PairedBarChart.PairedHistogram.PairedSmoothHistogram.PairedTTest.PairedZTest.PaletteNotebook.PalettePath.PalettesMenuSettings.PalindromeQ.Pane.PaneBox.PaneBoxOptions.Panel.PanelBox.PanelBoxOptions.Paneled.PaneSelector.PaneSelectorBox.PaneSelectorBoxOptions.PaperWidth.ParabolicCylinderD.ParagraphIndent.ParagraphSpacing.ParallelArray.ParallelAxisPlot.ParallelCombine.ParallelDo.Parallelepiped.ParallelEvaluate.Parallelization.Parallelize.ParallelKernels.ParallelMap.ParallelNeeds.Parallelogram.ParallelProduct.ParallelSubmit.ParallelSum.ParallelTable.ParallelTry.Parameter.ParameterEstimator.ParameterMixtureDistribution.ParameterVariables.ParametricConvexOptimization.ParametricFunction.ParametricNDSolve.ParametricNDSolveValue.ParametricPlot.ParametricPlot3D.ParametricRampLayer.ParametricRegion.ParentBox.ParentCell.ParentConnect.ParentDirectory.ParentEdgeLabel.ParentEdgeLabelFunction.ParentEdgeLabelStyle.ParentEdgeShapeFunction.ParentEdgeStyle.ParentEdgeStyleFunction.ParentForm.Parenthesize.ParentList.ParentNotebook.ParetoDistribution.ParetoPickandsDistribution.ParkData.Part.PartBehavior.PartialCorrelationFunction.PartialD.ParticleAcceleratorData.ParticleData.Partition.PartitionGranularity.PartitionsP.PartitionsQ.PartLayer.PartOfSpeech.PartProtection.ParzenWindow.PascalDistribution.PassEventsDown.PassEventsUp.Paste.PasteAutoQuoteCharacters.PasteBoxFormInlineCells.PasteButton.Path.PathGraph.PathGraphQ.Pattern.PatternFilling.PatternReaction.PatternSequence.PatternTest.PauliMatrix.PaulWavelet.Pause.PausedTime.PDF.PeakDetect.PeanoCurve.PearsonChiSquareTest.PearsonCorrelationTest.PearsonDistribution.PenttinenPointProcess.PercentForm.PerfectNumber.PerfectNumberQ.PerformanceGoal.Perimeter.PeriodicBoundaryCondition.PeriodicInterpolation.Periodogram.PeriodogramArray.Permanent.Permissions.PermissionsGroup.PermissionsGroupMemberQ.PermissionsGroups.PermissionsKey.PermissionsKeys.PermutationCycles.PermutationCyclesQ.PermutationGroup.PermutationLength.PermutationList.PermutationListQ.PermutationMatrix.PermutationMax.PermutationMin.PermutationOrder.PermutationPower.PermutationProduct.PermutationReplace.Permutations.PermutationSupport.Permute.PeronaMalikFilter.Perpendicular.PerpendicularBisector.PersistenceLocation.PersistenceTime.PersistentObject.PersistentObjects.PersistentSymbol.PersistentValue.PersonData.PERTDistribution.PetersenGraph.PhaseMargins.PhaseRange.PhongShading.PhysicalSystemData.Pi.Pick.PickedElements.PickMode.PIDData.PIDDerivativeFilter.PIDFeedforward.PIDTune.Piecewise.PiecewiseExpand.PieChart.PieChart3D.PillaiTrace.PillaiTraceTest.PingTime.Pink.PitchRecognize.Pivoting.PixelConstrained.PixelValue.PixelValuePositions.Placed.Placeholder.PlaceholderLayer.PlaceholderReplace.Plain.PlanarAngle.PlanarFaceList.PlanarGraph.PlanarGraphQ.PlanckRadiationLaw.PlaneCurveData.PlanetaryMoonData.PlanetData.PlantData.Play.PlaybackSettings.PlayRange.Plot.Plot3D.Plot3Matrix.PlotDivision.PlotJoined.PlotLabel.PlotLabels.PlotLayout.PlotLegends.PlotMarkers.PlotPoints.PlotRange.PlotRangeClipping.PlotRangeClipPlanesStyle.PlotRangePadding.PlotRegion.PlotStyle.PlotTheme.Pluralize.Plus.PlusMinus.Pochhammer.PodStates.PodWidth.Point.Point3DBox.Point3DBoxOptions.PointBox.PointBoxOptions.PointCountDistribution.PointDensity.PointDensityFunction.PointFigureChart.PointLegend.PointLight.PointProcessEstimator.PointProcessFitTest.PointProcessParameterAssumptions.PointProcessParameterQ.PointSize.PointStatisticFunction.PointValuePlot.PoissonConsulDistribution.PoissonDistribution.PoissonPDEComponent.PoissonPointProcess.PoissonProcess.PoissonWindow.PolarAxes.PolarAxesOrigin.PolarGridLines.PolarPlot.PolarTicks.PoleZeroMarkers.PolyaAeppliDistribution.PolyGamma.Polygon.Polygon3DBox.Polygon3DBoxOptions.PolygonalNumber.PolygonAngle.PolygonBox.PolygonBoxOptions.PolygonCoordinates.PolygonDecomposition.PolygonHoleScale.PolygonIntersections.PolygonScale.Polyhedron.PolyhedronAngle.PolyhedronBox.PolyhedronBoxOptions.PolyhedronCoordinates.PolyhedronData.PolyhedronDecomposition.PolyhedronGenus.PolyLog.PolynomialExpressionQ.PolynomialExtendedGCD.PolynomialForm.PolynomialGCD.PolynomialLCM.PolynomialMod.PolynomialQ.PolynomialQuotient.PolynomialQuotientRemainder.PolynomialReduce.PolynomialRemainder.Polynomials.PolynomialSumOfSquaresList.PoolingLayer.PopupMenu.PopupMenuBox.PopupMenuBoxOptions.PopupView.PopupWindow.Position.PositionIndex.PositionLargest.PositionSmallest.Positive.PositiveDefiniteMatrixQ.PositiveIntegers.PositivelyOrientedPoints.PositiveRationals.PositiveReals.PositiveSemidefiniteMatrixQ.PossibleZeroQ.Postfix.PostScript.Power.PowerDistribution.PowerExpand.PowerMod.PowerModList.PowerRange.PowerSpectralDensity.PowersRepresentations.PowerSymmetricPolynomial.Precedence.PrecedenceForm.Precedes.PrecedesEqual.PrecedesSlantEqual.PrecedesTilde.Precision.PrecisionGoal.PreDecrement.Predict.PredictionRoot.PredictorFunction.PredictorInformation.PredictorMeasurements.PredictorMeasurementsObject.PreemptProtect.PreferencesPath.PreferencesSettings.Prefix.PreIncrement.Prepend.PrependLayer.PrependTo.PreprocessingRules.PreserveColor.PreserveImageOptions.Previous.PreviousCell.PreviousDate.PriceGraphDistribution.PrimaryPlaceholder.Prime.PrimeNu.PrimeOmega.PrimePi.PrimePowerQ.PrimeQ.Primes.PrimeZetaP.PrimitivePolynomialQ.PrimitiveRoot.PrimitiveRootList.PrincipalComponents.PrincipalValue.Print.PrintableASCIIQ.PrintAction.PrintForm.PrintingCopies.PrintingOptions.PrintingPageRange.PrintingStartingPageNumber.PrintingStyleEnvironment.Printout3D.Printout3DPreviewer.PrintPrecision.PrintTemporary.Prism.PrismBox.PrismBoxOptions.PrivateCellOptions.PrivateEvaluationOptions.PrivateFontOptions.PrivateFrontEndOptions.PrivateKey.PrivateNotebookOptions.PrivatePaths.Probability.ProbabilityDistribution.ProbabilityPlot.ProbabilityPr.ProbabilityScalePlot.ProbitModelFit.ProcessConnection.ProcessDirectory.ProcessEnvironment.Processes.ProcessEstimator.ProcessInformation.ProcessObject.ProcessParameterAssumptions.ProcessParameterQ.ProcessStateDomain.ProcessStatus.ProcessTimeDomain.Product.ProductDistribution.ProductLog.ProgressIndicator.ProgressIndicatorBox.ProgressIndicatorBoxOptions.ProgressReporting.Projection.Prolog.PromptForm.ProofObject.PropagateAborts.Properties.Property.PropertyList.PropertyValue.Proportion.Proportional.Protect.Protected.ProteinData.Pruning.PseudoInverse.PsychrometricPropertyData.PublicKey.PublisherID.PulsarData.PunctuationCharacter.Purple.Put.PutAppend.Pyramid.PyramidBox.PyramidBoxOptions.QBinomial.QFactorial.QGamma.QHypergeometricPFQ.QnDispersion.QPochhammer.QPolyGamma.QRDecomposition.QuadraticIrrationalQ.QuadraticOptimization.Quantile.QuantilePlot.Quantity.QuantityArray.QuantityDistribution.QuantityForm.QuantityMagnitude.QuantityQ.QuantityUnit.QuantityVariable.QuantityVariableCanonicalUnit.QuantityVariableDimensions.QuantityVariableIdentifier.QuantityVariablePhysicalQuantity.Quartics.QuartileDeviation.Quartiles.QuartileSkewness.Query.QuestionGenerator.QuestionInterface.QuestionObject.QuestionSelector.QueueingNetworkProcess.QueueingProcess.QueueProperties.Quiet.QuietEcho.Quit.Quotient.QuotientRemainder.RadialAxisPlot.RadialGradientFilling.RadialGradientImage.RadialityCentrality.RadicalBox.RadicalBoxOptions.RadioButton.RadioButtonBar.RadioButtonBox.RadioButtonBoxOptions.Radon.RadonTransform.RamanujanTau.RamanujanTauL.RamanujanTauTheta.RamanujanTauZ.Ramp.Random.RandomArrayLayer.RandomChoice.RandomColor.RandomComplex.RandomDate.RandomEntity.RandomFunction.RandomGeneratorState.RandomGeoPosition.RandomGraph.RandomImage.RandomInstance.RandomInteger.RandomPermutation.RandomPoint.RandomPointConfiguration.RandomPolygon.RandomPolyhedron.RandomPrime.RandomReal.RandomSample.RandomSeed.RandomSeeding.RandomTime.RandomTree.RandomVariate.RandomWalkProcess.RandomWord.Range.RangeFilter.RangeSpecification.RankedMax.RankedMin.RarerProbability.Raster.Raster3D.Raster3DBox.Raster3DBoxOptions.RasterArray.RasterBox.RasterBoxOptions.Rasterize.RasterSize.Rational.RationalExpressionQ.RationalFunctions.Rationalize.Rationals.Ratios.RawArray.RawBoxes.RawData.RawMedium.RayleighDistribution.Re.ReactionBalance.ReactionBalancedQ.ReactionPDETerm.Read.ReadByteArray.ReadLine.ReadList.ReadProtected.ReadString.Real.RealAbs.RealBlockDiagonalForm.RealDigits.RealExponent.Reals.RealSign.Reap.RebuildPacletData.RecalibrationFunction.RecognitionPrior.RecognitionThreshold.ReconstructionMesh.Record.RecordLists.RecordSeparators.Rectangle.RectangleBox.RectangleBoxOptions.RectangleChart.RectangleChart3D.RectangularRepeatingElement.RecurrenceFilter.RecurrenceTable.RecurringDigitsForm.Red.Reduce.RefBox.ReferenceLineStyle.ReferenceMarkers.ReferenceMarkerStyle.Refine.ReflectionMatrix.ReflectionTransform.Refresh.RefreshRate.Region.RegionBinarize.RegionBoundary.RegionBoundaryStyle.RegionBounds.RegionCentroid.RegionCongruent.RegionConvert.RegionDifference.RegionDilation.RegionDimension.RegionDisjoint.RegionDistance.RegionDistanceFunction.RegionEmbeddingDimension.RegionEqual.RegionErosion.RegionFillingStyle.RegionFit.RegionFunction.RegionImage.RegionIntersection.RegionMeasure.RegionMember.RegionMemberFunction.RegionMoment.RegionNearest.RegionNearestFunction.RegionPlot.RegionPlot3D.RegionProduct.RegionQ.RegionResize.RegionSimilar.RegionSize.RegionSymmetricDifference.RegionUnion.RegionWithin.RegisterExternalEvaluator.RegularExpression.Regularization.RegularlySampledQ.RegularPolygon.ReIm.ReImLabels.ReImPlot.ReImStyle.Reinstall.RelationalDatabase.RelationGraph.Release.ReleaseHold.ReliabilityDistribution.ReliefImage.ReliefPlot.RemoteAuthorizationCaching.RemoteBatchJobAbort.RemoteBatchJobObject.RemoteBatchJobs.RemoteBatchMapSubmit.RemoteBatchSubmissionEnvironment.RemoteBatchSubmit.RemoteConnect.RemoteConnectionObject.RemoteEvaluate.RemoteFile.RemoteInputFiles.RemoteKernelObject.RemoteProviderSettings.RemoteRun.RemoteRunProcess.RemovalConditions.Remove.RemoveAlphaChannel.RemoveAsynchronousTask.RemoveAudioStream.RemoveBackground.RemoveChannelListener.RemoveChannelSubscribers.Removed.RemoveDiacritics.RemoveInputStreamMethod.RemoveOutputStreamMethod.RemoveProperty.RemoveScheduledTask.RemoveUsers.RemoveVideoStream.RenameDirectory.RenameFile.RenderAll.RenderingOptions.RenewalProcess.RenkoChart.RepairMesh.Repeated.RepeatedNull.RepeatedString.RepeatedTiming.RepeatingElement.Replace.ReplaceAll.ReplaceAt.ReplaceHeldPart.ReplaceImageValue.ReplaceList.ReplacePart.ReplacePixelValue.ReplaceRepeated.ReplicateLayer.RequiredPhysicalQuantities.Resampling.ResamplingAlgorithmData.ResamplingMethod.Rescale.RescalingTransform.ResetDirectory.ResetScheduledTask.ReshapeLayer.Residue.ResidueSum.ResizeLayer.Resolve.ResolveContextAliases.ResourceAcquire.ResourceData.ResourceFunction.ResourceObject.ResourceRegister.ResourceRemove.ResourceSearch.ResourceSubmissionObject.ResourceSubmit.ResourceSystemBase.ResourceSystemPath.ResourceUpdate.ResourceVersion.ResponseForm.Rest.RestartInterval.Restricted.Resultant.ResumePacket.Return.ReturnCreatesNewCell.ReturnEntersInput.ReturnExpressionPacket.ReturnInputFormPacket.ReturnPacket.ReturnReceiptFunction.ReturnTextPacket.Reverse.ReverseApplied.ReverseBiorthogonalSplineWavelet.ReverseElement.ReverseEquilibrium.ReverseGraph.ReverseSort.ReverseSortBy.ReverseUpEquilibrium.RevolutionAxis.RevolutionPlot3D.RGBColor.RiccatiSolve.RiceDistribution.RidgeFilter.RiemannR.RiemannSiegelTheta.RiemannSiegelZ.RiemannXi.Riffle.Right.RightArrow.RightArrowBar.RightArrowLeftArrow.RightComposition.RightCosetRepresentative.RightDownTeeVector.RightDownVector.RightDownVectorBar.RightTee.RightTeeArrow.RightTeeVector.RightTriangle.RightTriangleBar.RightTriangleEqual.RightUpDownVector.RightUpTeeVector.RightUpVector.RightUpVectorBar.RightVector.RightVectorBar.RipleyK.RipleyRassonRegion.RiskAchievementImportance.RiskReductionImportance.RobustConvexOptimization.RogersTanimotoDissimilarity.RollPitchYawAngles.RollPitchYawMatrix.RomanNumeral.Root.RootApproximant.RootIntervals.RootLocusPlot.RootMeanSquare.RootOfUnityQ.RootReduce.Roots.RootSum.RootTree.Rotate.RotateLabel.RotateLeft.RotateRight.RotationAction.RotationBox.RotationBoxOptions.RotationMatrix.RotationTransform.Round.RoundImplies.RoundingRadius.Row.RowAlignments.RowBackgrounds.RowBox.RowHeights.RowLines.RowMinHeight.RowReduce.RowsEqual.RowSpacings.RSolve.RSolveValue.RudinShapiro.RudvalisGroupRu.Rule.RuleCondition.RuleDelayed.RuleForm.RulePlot.RulerUnits.RulesTree.Run.RunProcess.RunScheduledTask.RunThrough.RuntimeAttributes.RuntimeOptions.RussellRaoDissimilarity.SameAs.SameQ.SameTest.SameTestProperties.SampledEntityClass.SampleDepth.SampledSoundFunction.SampledSoundList.SampleRate.SamplingPeriod.SARIMAProcess.SARMAProcess.SASTriangle.SatelliteData.SatisfiabilityCount.SatisfiabilityInstances.SatisfiableQ.Saturday.Save.Saveable.SaveAutoDelete.SaveConnection.SaveDefinitions.SavitzkyGolayMatrix.SawtoothWave.Scale.Scaled.ScaleDivisions.ScaledMousePosition.ScaleOrigin.ScalePadding.ScaleRanges.ScaleRangeStyle.ScalingFunctions.ScalingMatrix.ScalingTransform.Scan.ScheduledTask.ScheduledTaskActiveQ.ScheduledTaskInformation.ScheduledTaskInformationData.ScheduledTaskObject.ScheduledTasks.SchurDecomposition.ScientificForm.ScientificNotationThreshold.ScorerGi.ScorerGiPrime.ScorerHi.ScorerHiPrime.ScreenRectangle.ScreenStyleEnvironment.ScriptBaselineShifts.ScriptForm.ScriptLevel.ScriptMinSize.ScriptRules.ScriptSizeMultipliers.Scrollbars.ScrollingOptions.ScrollPosition.SearchAdjustment.SearchIndexObject.SearchIndices.SearchQueryString.SearchResultObject.Sec.Sech.SechDistribution.SecondOrderConeOptimization.SectionGrouping.SectorChart.SectorChart3D.SectorOrigin.SectorSpacing.SecuredAuthenticationKey.SecuredAuthenticationKeys.SecurityCertificate.SeedRandom.Select.Selectable.SelectComponents.SelectedCells.SelectedNotebook.SelectFirst.Selection.SelectionAnimate.SelectionCell.SelectionCellCreateCell.SelectionCellDefaultStyle.SelectionCellParentStyle.SelectionCreateCell.SelectionDebuggerTag.SelectionEvaluate.SelectionEvaluateCreateCell.SelectionMove.SelectionPlaceholder.SelectWithContents.SelfLoops.SelfLoopStyle.SemanticImport.SemanticImportString.SemanticInterpretation.SemialgebraicComponentInstances.SemidefiniteOptimization.SendMail.SendMessage.Sequence.SequenceAlignment.SequenceAttentionLayer.SequenceCases.SequenceCount.SequenceFold.SequenceFoldList.SequenceForm.SequenceHold.SequenceIndicesLayer.SequenceLastLayer.SequenceMostLayer.SequencePosition.SequencePredict.SequencePredictorFunction.SequenceReplace.SequenceRestLayer.SequenceReverseLayer.SequenceSplit.Series.SeriesCoefficient.SeriesData.SeriesTermGoal.ServiceConnect.ServiceDisconnect.ServiceExecute.ServiceObject.ServiceRequest.ServiceResponse.ServiceSubmit.SessionSubmit.SessionTime.Set.SetAccuracy.SetAlphaChannel.SetAttributes.Setbacks.SetCloudDirectory.SetCookies.SetDelayed.SetDirectory.SetEnvironment.SetFileDate.SetFileFormatProperties.SetOptions.SetOptionsPacket.SetPermissions.SetPrecision.SetProperty.SetSecuredAuthenticationKey.SetSelectedNotebook.SetSharedFunction.SetSharedVariable.SetStreamPosition.SetSystemModel.SetSystemOptions.Setter.SetterBar.SetterBox.SetterBoxOptions.Setting.SetUsers.Shading.Shallow.ShannonWavelet.ShapiroWilkTest.Share.SharingList.Sharpen.ShearingMatrix.ShearingTransform.ShellRegion.ShenCastanMatrix.ShiftedGompertzDistribution.ShiftRegisterSequence.Short.ShortDownArrow.Shortest.ShortestMatch.ShortestPathFunction.ShortLeftArrow.ShortRightArrow.ShortTimeFourier.ShortTimeFourierData.ShortUpArrow.Show.ShowAutoConvert.ShowAutoSpellCheck.ShowAutoStyles.ShowCellBracket.ShowCellLabel.ShowCellTags.ShowClosedCellArea.ShowCodeAssist.ShowContents.ShowControls.ShowCursorTracker.ShowGroupOpenCloseIcon.ShowGroupOpener.ShowInvisibleCharacters.ShowPageBreaks.ShowPredictiveInterface.ShowSelection.ShowShortBoxForm.ShowSpecialCharacters.ShowStringCharacters.ShowSyntaxStyles.ShrinkingDelay.ShrinkWrapBoundingBox.SiderealTime.SiegelTheta.SiegelTukeyTest.SierpinskiCurve.SierpinskiMesh.Sign.Signature.SignedRankTest.SignedRegionDistance.SignificanceLevel.SignPadding.SignTest.SimilarityRules.SimpleGraph.SimpleGraphQ.SimplePolygonQ.SimplePolyhedronQ.Simplex.Simplify.Sin.Sinc.SinghMaddalaDistribution.SingleEvaluation.SingleLetterItalics.SingleLetterStyle.SingularValueDecomposition.SingularValueList.SingularValuePlot.SingularValues.Sinh.SinhIntegral.SinIntegral.SixJSymbol.Skeleton.SkeletonTransform.SkellamDistribution.Skewness.SkewNormalDistribution.SkinStyle.Skip.SliceContourPlot3D.SliceDensityPlot3D.SliceDistribution.SliceVectorPlot3D.Slider.Slider2D.Slider2DBox.Slider2DBoxOptions.SliderBox.SliderBoxOptions.SlideShowVideo.SlideView.Slot.SlotSequence.Small.SmallCircle.Smaller.SmithDecomposition.SmithDelayCompensator.SmithWatermanSimilarity.SmoothDensityHistogram.SmoothHistogram.SmoothHistogram3D.SmoothKernelDistribution.SmoothPointDensity.SnDispersion.Snippet.SnippetsVideo.SnubPolyhedron.SocialMediaData.Socket.SocketConnect.SocketListen.SocketListener.SocketObject.SocketOpen.SocketReadMessage.SocketReadyQ.Sockets.SocketWaitAll.SocketWaitNext.SoftmaxLayer.SokalSneathDissimilarity.SolarEclipse.SolarSystemFeatureData.SolarTime.SolidAngle.SolidBoundaryLoadValue.SolidData.SolidDisplacementCondition.SolidFixedCondition.SolidMechanicsPDEComponent.SolidMechanicsStrain.SolidMechanicsStress.SolidRegionQ.Solve.SolveAlways.SolveDelayed.SolveValues.Sort.SortBy.SortedBy.SortedEntityClass.Sound.SoundAndGraphics.SoundNote.SoundVolume.SourceLink.SourcePDETerm.Sow.Space.SpaceCurveData.SpaceForm.Spacer.Spacings.Span.SpanAdjustments.SpanCharacterRounding.SpanFromAbove.SpanFromBoth.SpanFromLeft.SpanLineThickness.SpanMaxSize.SpanMinSize.SpanningCharacters.SpanSymmetric.SparseArray.SparseArrayQ.SpatialBinnedPointData.SpatialBoundaryCorrection.SpatialEstimate.SpatialEstimatorFunction.SpatialGraphDistribution.SpatialJ.SpatialMedian.SpatialNoiseLevel.SpatialObservationRegionQ.SpatialPointData.SpatialPointSelect.SpatialRandomnessTest.SpatialTransformationLayer.SpatialTrendFunction.Speak.SpeakerMatchQ.SpearmanRankTest.SpearmanRho.SpeciesData.SpecificityGoal.SpectralLineData.Spectrogram.SpectrogramArray.Specularity.SpeechCases.SpeechInterpreter.SpeechRecognize.SpeechSynthesize.SpellingCorrection.SpellingCorrectionList.SpellingDictionaries.SpellingDictionariesPath.SpellingOptions.Sphere.SphereBox.SphereBoxOptions.SpherePoints.SphericalBesselJ.SphericalBesselY.SphericalHankelH1.SphericalHankelH2.SphericalHarmonicY.SphericalPlot3D.SphericalRegion.SphericalShell.SpheroidalEigenvalue.SpheroidalJoiningFactor.SpheroidalPS.SpheroidalPSPrime.SpheroidalQS.SpheroidalQSPrime.SpheroidalRadialFactor.SpheroidalS1.SpheroidalS1Prime.SpheroidalS2.SpheroidalS2Prime.Splice.SplicedDistribution.SplineClosed.SplineDegree.SplineKnots.SplineWeights.Split.SplitBy.SpokenString.SpotLight.Sqrt.SqrtBox.SqrtBoxOptions.Square.SquaredEuclideanDistance.SquareFreeQ.SquareIntersection.SquareMatrixQ.SquareRepeatingElement.SquaresR.SquareSubset.SquareSubsetEqual.SquareSuperset.SquareSupersetEqual.SquareUnion.SquareWave.SSSTriangle.StabilityMargins.StabilityMarginsStyle.StableDistribution.Stack.StackBegin.StackComplete.StackedDateListPlot.StackedListPlot.StackInhibit.StadiumShape.StandardAtmosphereData.StandardDeviation.StandardDeviationFilter.StandardForm.Standardize.Standardized.StandardOceanData.StandbyDistribution.Star.StarClusterData.StarData.StarGraph.StartAsynchronousTask.StartExternalSession.StartingStepSize.StartOfLine.StartOfString.StartProcess.StartScheduledTask.StartupSound.StartWebSession.StateDimensions.StateFeedbackGains.StateOutputEstimator.StateResponse.StateSpaceModel.StateSpaceRealization.StateSpaceTransform.StateTransformationLinearize.StationaryDistribution.StationaryWaveletPacketTransform.StationaryWaveletTransform.StatusArea.StatusCentrality.StepMonitor.StereochemistryElements.StieltjesGamma.StippleShading.StirlingS1.StirlingS2.StopAsynchronousTask.StoppingPowerData.StopScheduledTask.StrataVariables.StratonovichProcess.StraussHardcorePointProcess.StraussPointProcess.StreamColorFunction.StreamColorFunctionScaling.StreamDensityPlot.StreamMarkers.StreamPlot.StreamPlot3D.StreamPoints.StreamPosition.Streams.StreamScale.StreamStyle.StrictInequalities.String.StringBreak.StringByteCount.StringCases.StringContainsQ.StringCount.StringDelete.StringDrop.StringEndsQ.StringExpression.StringExtract.StringForm.StringFormat.StringFormatQ.StringFreeQ.StringInsert.StringJoin.StringLength.StringMatchQ.StringPadLeft.StringPadRight.StringPart.StringPartition.StringPosition.StringQ.StringRepeat.StringReplace.StringReplaceList.StringReplacePart.StringReverse.StringRiffle.StringRotateLeft.StringRotateRight.StringSkeleton.StringSplit.StringStartsQ.StringTake.StringTakeDrop.StringTemplate.StringToByteArray.StringToStream.StringTrim.StripBoxes.StripOnInput.StripStyleOnPaste.StripWrapperBoxes.StrokeForm.Struckthrough.StructuralImportance.StructuredArray.StructuredArrayHeadQ.StructuredSelection.StruveH.StruveL.Stub.StudentTDistribution.Style.StyleBox.StyleBoxAutoDelete.StyleData.StyleDefinitions.StyleForm.StyleHints.StyleKeyMapping.StyleMenuListing.StyleNameDialogSettings.StyleNames.StylePrint.StyleSheetPath.Subdivide.Subfactorial.Subgraph.SubMinus.SubPlus.SubresultantPolynomialRemainders.SubresultantPolynomials.Subresultants.Subscript.SubscriptBox.SubscriptBoxOptions.Subscripted.Subsequences.Subset.SubsetCases.SubsetCount.SubsetEqual.SubsetMap.SubsetPosition.SubsetQ.SubsetReplace.Subsets.SubStar.SubstitutionSystem.Subsuperscript.SubsuperscriptBox.SubsuperscriptBoxOptions.SubtitleEncoding.SubtitleTrackSelection.Subtract.SubtractFrom.SubtractSides.SubValues.Succeeds.SucceedsEqual.SucceedsSlantEqual.SucceedsTilde.Success.SuchThat.Sum.SumConvergence.SummationLayer.Sunday.SunPosition.Sunrise.Sunset.SuperDagger.SuperMinus.SupernovaData.SuperPlus.Superscript.SuperscriptBox.SuperscriptBoxOptions.Superset.SupersetEqual.SuperStar.Surd.SurdForm.SurfaceAppearance.SurfaceArea.SurfaceColor.SurfaceData.SurfaceGraphics.SurvivalDistribution.SurvivalFunction.SurvivalModel.SurvivalModelFit.SuspendPacket.SuzukiDistribution.SuzukiGroupSuz.SwatchLegend.Switch.Symbol.SymbolName.SymletWavelet.Symmetric.SymmetricDifference.SymmetricGroup.SymmetricKey.SymmetricMatrixQ.SymmetricPolynomial.SymmetricReduction.Symmetrize.SymmetrizedArray.SymmetrizedArrayRules.SymmetrizedDependentComponents.SymmetrizedIndependentComponents.SymmetrizedReplacePart.SynchronousInitialization.SynchronousUpdating.Synonyms.Syntax.SyntaxForm.SyntaxInformation.SyntaxLength.SyntaxPacket.SyntaxQ.SynthesizeMissingValues.SystemCredential.SystemCredentialData.SystemCredentialKey.SystemCredentialKeys.SystemCredentialStoreObject.SystemDialogInput.SystemException.SystemGet.SystemHelpPath.SystemInformation.SystemInformationData.SystemInstall.SystemModel.SystemModeler.SystemModelExamples.SystemModelLinearize.SystemModelMeasurements.SystemModelParametricSimulate.SystemModelPlot.SystemModelProgressReporting.SystemModelReliability.SystemModels.SystemModelSimulate.SystemModelSimulateSensitivity.SystemModelSimulationData.SystemOpen.SystemOptions.SystemProcessData.SystemProcesses.SystemsConnectionsModel.SystemsModelControllerData.SystemsModelDelay.SystemsModelDelayApproximate.SystemsModelDelete.SystemsModelDimensions.SystemsModelExtract.SystemsModelFeedbackConnect.SystemsModelLabels.SystemsModelLinearity.SystemsModelMerge.SystemsModelOrder.SystemsModelParallelConnect.SystemsModelSeriesConnect.SystemsModelStateFeedbackConnect.SystemsModelVectorRelativeOrders.SystemStub.SystemTest.Tab.TabFilling.Table.TableAlignments.TableDepth.TableDirections.TableForm.TableHeadings.TableSpacing.TableView.TableViewBox.TableViewBoxAlignment.TableViewBoxBackground.TableViewBoxHeaders.TableViewBoxItemSize.TableViewBoxItemStyle.TableViewBoxOptions.TabSpacings.TabView.TabViewBox.TabViewBoxOptions.TagBox.TagBoxNote.TagBoxOptions.TaggingRules.TagSet.TagSetDelayed.TagStyle.TagUnset.Take.TakeDrop.TakeLargest.TakeLargestBy.TakeList.TakeSmallest.TakeSmallestBy.TakeWhile.Tally.Tan.Tanh.TargetDevice.TargetFunctions.TargetSystem.TargetUnits.TaskAbort.TaskExecute.TaskObject.TaskRemove.TaskResume.Tasks.TaskSuspend.TaskWait.TautologyQ.TelegraphProcess.TemplateApply.TemplateArgBox.TemplateBox.TemplateBoxOptions.TemplateEvaluate.TemplateExpression.TemplateIf.TemplateObject.TemplateSequence.TemplateSlot.TemplateSlotSequence.TemplateUnevaluated.TemplateVerbatim.TemplateWith.TemporalData.TemporalRegularity.Temporary.TemporaryVariable.TensorContract.TensorDimensions.TensorExpand.TensorProduct.TensorQ.TensorRank.TensorReduce.TensorSymmetry.TensorTranspose.TensorWedge.TerminatedEvaluation.TernaryListPlot.TernaryPlotCorners.TestID.TestReport.TestReportObject.TestResultObject.Tetrahedron.TetrahedronBox.TetrahedronBoxOptions.TeXForm.TeXSave.Text.Text3DBox.Text3DBoxOptions.TextAlignment.TextBand.TextBoundingBox.TextBox.TextCases.TextCell.TextClipboardType.TextContents.TextData.TextElement.TextForm.TextGrid.TextJustification.TextLine.TextPacket.TextParagraph.TextPosition.TextRecognize.TextSearch.TextSearchReport.TextSentences.TextString.TextStructure.TextStyle.TextTranslation.Texture.TextureCoordinateFunction.TextureCoordinateScaling.TextWords.Therefore.ThermodynamicData.ThermometerGauge.Thick.Thickness.Thin.Thinning.ThisLink.ThomasPointProcess.ThompsonGroupTh.Thread.Threaded.ThreadingLayer.ThreeJSymbol.Threshold.Through.Throw.ThueMorse.Thumbnail.Thursday.TickDirection.TickLabelOrientation.TickLabelPositioning.TickLabels.TickLengths.TickPositions.Ticks.TicksStyle.TideData.Tilde.TildeEqual.TildeFullEqual.TildeTilde.TimeConstrained.TimeConstraint.TimeDirection.TimeFormat.TimeGoal.TimelinePlot.TimeObject.TimeObjectQ.TimeRemaining.Times.TimesBy.TimeSeries.TimeSeriesAggregate.TimeSeriesForecast.TimeSeriesInsert.TimeSeriesInvertibility.TimeSeriesMap.TimeSeriesMapThread.TimeSeriesModel.TimeSeriesModelFit.TimeSeriesResample.TimeSeriesRescale.TimeSeriesShift.TimeSeriesThread.TimeSeriesWindow.TimeSystem.TimeSystemConvert.TimeUsed.TimeValue.TimeWarpingCorrespondence.TimeWarpingDistance.TimeZone.TimeZoneConvert.TimeZoneOffset.Timing.Tiny.TitleGrouping.TitsGroupT.ToBoxes.ToCharacterCode.ToColor.ToContinuousTimeModel.ToDate.Today.ToDiscreteTimeModel.ToEntity.ToeplitzMatrix.ToExpression.ToFileName.Together.Toggle.ToggleFalse.Toggler.TogglerBar.TogglerBox.TogglerBoxOptions.ToHeldExpression.ToInvertibleTimeSeries.TokenWords.Tolerance.ToLowerCase.Tomorrow.ToNumberField.TooBig.Tooltip.TooltipBox.TooltipBoxOptions.TooltipDelay.TooltipStyle.ToonShading.Top.TopHatTransform.ToPolarCoordinates.TopologicalSort.ToRadicals.ToRawPointer.ToRules.Torus.TorusGraph.ToSphericalCoordinates.ToString.Total.TotalHeight.TotalLayer.TotalVariationFilter.TotalWidth.TouchPosition.TouchscreenAutoZoom.TouchscreenControlPlacement.ToUpperCase.TourVideo.Tr.Trace.TraceAbove.TraceAction.TraceBackward.TraceDepth.TraceDialog.TraceForward.TraceInternal.TraceLevel.TraceOff.TraceOn.TraceOriginal.TracePrint.TraceScan.TrackCellChangeTimes.TrackedSymbols.TrackingFunction.TracyWidomDistribution.TradingChart.TraditionalForm.TraditionalFunctionNotation.TraditionalNotation.TraditionalOrder.TrainImageContentDetector.TrainingProgressCheckpointing.TrainingProgressFunction.TrainingProgressMeasurements.TrainingProgressReporting.TrainingStoppingCriterion.TrainingUpdateSchedule.TrainTextContentDetector.TransferFunctionCancel.TransferFunctionExpand.TransferFunctionFactor.TransferFunctionModel.TransferFunctionPoles.TransferFunctionTransform.TransferFunctionZeros.TransformationClass.TransformationFunction.TransformationFunctions.TransformationMatrix.TransformedDistribution.TransformedField.TransformedProcess.TransformedRegion.TransitionDirection.TransitionDuration.TransitionEffect.TransitiveClosureGraph.TransitiveReductionGraph.Translate.TranslationOptions.TranslationTransform.Transliterate.Transparent.TransparentColor.Transpose.TransposeLayer.TrapEnterKey.TrapSelection.TravelDirections.TravelDirectionsData.TravelDistance.TravelDistanceList.TravelMethod.TravelTime.Tree.TreeCases.TreeChildren.TreeCount.TreeData.TreeDelete.TreeDepth.TreeElementCoordinates.TreeElementLabel.TreeElementLabelFunction.TreeElementLabelStyle.TreeElementShape.TreeElementShapeFunction.TreeElementSize.TreeElementSizeFunction.TreeElementStyle.TreeElementStyleFunction.TreeExpression.TreeExtract.TreeFold.TreeForm.TreeGraph.TreeGraphQ.TreeInsert.TreeLayout.TreeLeafCount.TreeLeafQ.TreeLeaves.TreeLevel.TreeMap.TreeMapAt.TreeOutline.TreePlot.TreePosition.TreeQ.TreeReplacePart.TreeRules.TreeScan.TreeSelect.TreeSize.TreeTraversalOrder.TrendStyle.Triangle.TriangleCenter.TriangleConstruct.TriangleMeasurement.TriangleWave.TriangularDistribution.TriangulateMesh.Trig.TrigExpand.TrigFactor.TrigFactorList.Trigger.TrigReduce.TrigToExp.TrimmedMean.TrimmedVariance.TropicalStormData.True.TrueQ.TruncatedDistribution.TruncatedPolyhedron.TsallisQExponentialDistribution.TsallisQGaussianDistribution.TTest.Tube.TubeBezierCurveBox.TubeBezierCurveBoxOptions.TubeBox.TubeBoxOptions.TubeBSplineCurveBox.TubeBSplineCurveBoxOptions.Tuesday.TukeyLambdaDistribution.TukeyWindow.TunnelData.Tuples.TuranGraph.TuringMachine.TuttePolynomial.TwoWayRule.Typed.TypeDeclaration.TypeEvaluate.TypeHint.TypeOf.TypeSpecifier.UnateQ.Uncompress.UnconstrainedParameters.Undefined.UnderBar.Underflow.Underlined.Underoverscript.UnderoverscriptBox.UnderoverscriptBoxOptions.Underscript.UnderscriptBox.UnderscriptBoxOptions.UnderseaFeatureData.UndirectedEdge.UndirectedGraph.UndirectedGraphQ.UndoOptions.UndoTrackedVariables.Unequal.UnequalTo.Unevaluated.UniformDistribution.UniformGraphDistribution.UniformPolyhedron.UniformSumDistribution.Uninstall.Union.UnionedEntityClass.UnionPlus.Unique.UniqueElements.UnitaryMatrixQ.UnitBox.UnitConvert.UnitDimensions.Unitize.UnitRootTest.UnitSimplify.UnitStep.UnitSystem.UnitTriangle.UnitVector.UnitVectorLayer.UnityDimensions.UniverseModelData.UniversityData.UnixTime.UnlabeledTree.UnmanageObject.Unprotect.UnregisterExternalEvaluator.UnsameQ.UnsavedVariables.Unset.UnsetShared.Until.UntrackedVariables.Up.UpArrow.UpArrowBar.UpArrowDownArrow.Update.UpdateDynamicObjects.UpdateDynamicObjectsSynchronous.UpdateInterval.UpdatePacletSites.UpdateSearchIndex.UpDownArrow.UpEquilibrium.UpperCaseQ.UpperLeftArrow.UpperRightArrow.UpperTriangularize.UpperTriangularMatrix.UpperTriangularMatrixQ.Upsample.UpSet.UpSetDelayed.UpTee.UpTeeArrow.UpTo.UpValues.URL.URLBuild.URLDecode.URLDispatcher.URLDownload.URLDownloadSubmit.URLEncode.URLExecute.URLExpand.URLFetch.URLFetchAsynchronous.URLParse.URLQueryDecode.URLQueryEncode.URLRead.URLResponseTime.URLSave.URLSaveAsynchronous.URLShorten.URLSubmit.UseEmbeddedLibrary.UseGraphicsRange.UserDefinedWavelet.Using.UsingFrontEnd.UtilityFunction.V2Get.ValenceErrorHandling.ValenceFilling.ValidationLength.ValidationSet.ValueBox.ValueBoxOptions.ValueDimensions.ValueForm.ValuePreprocessingFunction.ValueQ.Values.ValuesData.VandermondeMatrix.Variables.Variance.VarianceEquivalenceTest.VarianceEstimatorFunction.VarianceGammaDistribution.VarianceGammaPointProcess.VarianceTest.VariogramFunction.VariogramModel.VectorAngle.VectorAround.VectorAspectRatio.VectorColorFunction.VectorColorFunctionScaling.VectorDensityPlot.VectorDisplacementPlot.VectorDisplacementPlot3D.VectorGlyphData.VectorGreater.VectorGreaterEqual.VectorLess.VectorLessEqual.VectorMarkers.VectorPlot.VectorPlot3D.VectorPoints.VectorQ.VectorRange.Vectors.VectorScale.VectorScaling.VectorSizes.VectorStyle.Vee.Verbatim.Verbose.VerificationTest.VerifyConvergence.VerifyDerivedKey.VerifyDigitalSignature.VerifyFileSignature.VerifyInterpretation.VerifySecurityCertificates.VerifySolutions.VerifyTestAssumptions.VersionedPreferences.VertexAdd.VertexCapacity.VertexChromaticNumber.VertexColors.VertexComponent.VertexConnectivity.VertexContract.VertexCoordinateRules.VertexCoordinates.VertexCorrelationSimilarity.VertexCosineSimilarity.VertexCount.VertexCoverQ.VertexDataCoordinates.VertexDegree.VertexDelete.VertexDiceSimilarity.VertexEccentricity.VertexInComponent.VertexInComponentGraph.VertexInDegree.VertexIndex.VertexJaccardSimilarity.VertexLabeling.VertexLabels.VertexLabelStyle.VertexList.VertexNormals.VertexOutComponent.VertexOutComponentGraph.VertexOutDegree.VertexQ.VertexRenderingFunction.VertexReplace.VertexShape.VertexShapeFunction.VertexSize.VertexStyle.VertexTextureCoordinates.VertexTransitiveGraphQ.VertexWeight.VertexWeightedGraphQ.Vertical.VerticalBar.VerticalForm.VerticalGauge.VerticalSeparator.VerticalSlider.VerticalTilde.Video.VideoCapture.VideoCombine.VideoDelete.VideoEncoding.VideoExtractFrames.VideoFrameList.VideoFrameMap.VideoGenerator.VideoInsert.VideoIntervals.VideoJoin.VideoMap.VideoMapList.VideoMapTimeSeries.VideoPadding.VideoPause.VideoPlay.VideoQ.VideoRecord.VideoReplace.VideoScreenCapture.VideoSplit.VideoStop.VideoStream.VideoStreams.VideoTimeStretch.VideoTrackSelection.VideoTranscode.VideoTransparency.VideoTrim.ViewAngle.ViewCenter.ViewMatrix.ViewPoint.ViewPointSelectorSettings.ViewPort.ViewProjection.ViewRange.ViewVector.ViewVertical.VirtualGroupData.Visible.VisibleCell.VoiceStyleData.VoigtDistribution.VolcanoData.Volume.VonMisesDistribution.VoronoiMesh.WaitAll.WaitAsynchronousTask.WaitNext.WaitUntil.WakebyDistribution.WalleniusHypergeometricDistribution.WaringYuleDistribution.WarpingCorrespondence.WarpingDistance.WatershedComponents.WatsonUSquareTest.WattsStrogatzGraphDistribution.WaveletBestBasis.WaveletFilterCoefficients.WaveletImagePlot.WaveletListPlot.WaveletMapIndexed.WaveletMatrixPlot.WaveletPhi.WaveletPsi.WaveletScale.WaveletScalogram.WaveletThreshold.WavePDEComponent.WeaklyConnectedComponents.WeaklyConnectedGraphComponents.WeaklyConnectedGraphQ.WeakStationarity.WeatherData.WeatherForecastData.WebAudioSearch.WebColumn.WebElementObject.WeberE.WebExecute.WebImage.WebImageSearch.WebItem.WebPageMetaInformation.WebRow.WebSearch.WebSessionObject.WebSessions.WebWindowObject.Wedge.Wednesday.WeibullDistribution.WeierstrassE1.WeierstrassE2.WeierstrassE3.WeierstrassEta1.WeierstrassEta2.WeierstrassEta3.WeierstrassHalfPeriods.WeierstrassHalfPeriodW1.WeierstrassHalfPeriodW2.WeierstrassHalfPeriodW3.WeierstrassInvariantG2.WeierstrassInvariantG3.WeierstrassInvariants.WeierstrassP.WeierstrassPPrime.WeierstrassSigma.WeierstrassZeta.WeightedAdjacencyGraph.WeightedAdjacencyMatrix.WeightedData.WeightedGraphQ.Weights.WelchWindow.WheelGraph.WhenEvent.Which.While.White.WhiteNoiseProcess.WhitePoint.Whitespace.WhitespaceCharacter.WhittakerM.WhittakerW.WholeCellGroupOpener.WienerFilter.WienerProcess.WignerD.WignerSemicircleDistribution.WikidataData.WikidataSearch.WikipediaData.WikipediaSearch.WilksW.WilksWTest.WindDirectionData.WindingCount.WindingPolygon.WindowClickSelect.WindowElements.WindowFloating.WindowFrame.WindowFrameElements.WindowMargins.WindowMovable.WindowOpacity.WindowPersistentStyles.WindowSelected.WindowSize.WindowStatusArea.WindowTitle.WindowToolbars.WindowWidth.WindSpeedData.WindVectorData.WinsorizedMean.WinsorizedVariance.WishartMatrixDistribution.With.WithCleanup.WithLock.WolframAlpha.WolframAlphaDate.WolframAlphaQuantity.WolframAlphaResult.WolframCloudSettings.WolframLanguageData.Word.WordBoundary.WordCharacter.WordCloud.WordCount.WordCounts.WordData.WordDefinition.WordFrequency.WordFrequencyData.WordList.WordOrientation.WordSearch.WordSelectionFunction.WordSeparators.WordSpacings.WordStem.WordTranslation.WorkingPrecision.WrapAround.Write.WriteLine.WriteString.Wronskian.XMLElement.XMLObject.XMLTemplate.Xnor.Xor.XYZColor.Yellow.Yesterday.YuleDissimilarity.ZernikeR.ZeroSymmetric.ZeroTest.ZeroWidthTimes.Zeta.ZetaZero.ZIPCodeData.ZipfDistribution.ZoomCenter.ZoomFactor.ZTest.ZTransform.$Aborted.$ActivationGroupID.$ActivationKey.$ActivationUserRegistered.$AddOnsDirectory.$AllowDataUpdates.$AllowExternalChannelFunctions.$AllowInternet.$AssertFunction.$Assumptions.$AsynchronousTask.$AudioDecoders.$AudioEncoders.$AudioInputDevices.$AudioOutputDevices.$BaseDirectory.$BasePacletsDirectory.$BatchInput.$BatchOutput.$BlockchainBase.$BoxForms.$ByteOrdering.$CacheBaseDirectory.$Canceled.$ChannelBase.$CharacterEncoding.$CharacterEncodings.$CloudAccountName.$CloudBase.$CloudConnected.$CloudConnection.$CloudCreditsAvailable.$CloudEvaluation.$CloudExpressionBase.$CloudObjectNameFormat.$CloudObjectURLType.$CloudRootDirectory.$CloudSymbolBase.$CloudUserID.$CloudUserUUID.$CloudVersion.$CloudVersionNumber.$CloudWolframEngineVersionNumber.$CommandLine.$CompilationTarget.$CompilerEnvironment.$ConditionHold.$ConfiguredKernels.$Context.$ContextAliases.$ContextPath.$ControlActiveSetting.$Cookies.$CookieStore.$CreationDate.$CryptographicEllipticCurveNames.$CurrentLink.$CurrentTask.$CurrentWebSession.$DataStructures.$DateStringFormat.$DefaultAudioInputDevice.$DefaultAudioOutputDevice.$DefaultFont.$DefaultFrontEnd.$DefaultImagingDevice.$DefaultKernels.$DefaultLocalBase.$DefaultLocalKernel.$DefaultMailbox.$DefaultNetworkInterface.$DefaultPath.$DefaultProxyRules.$DefaultRemoteBatchSubmissionEnvironment.$DefaultRemoteKernel.$DefaultSystemCredentialStore.$Display.$DisplayFunction.$DistributedContexts.$DynamicEvaluation.$Echo.$EmbedCodeEnvironments.$EmbeddableServices.$EntityStores.$Epilog.$EvaluationCloudBase.$EvaluationCloudObject.$EvaluationEnvironment.$ExportFormats.$ExternalIdentifierTypes.$ExternalStorageBase.$Failed.$FinancialDataSource.$FontFamilies.$FormatType.$FrontEnd.$FrontEndSession.$GeneratedAssetLocation.$GeoEntityTypes.$GeoLocation.$GeoLocationCity.$GeoLocationCountry.$GeoLocationPrecision.$GeoLocationSource.$HistoryLength.$HomeDirectory.$HTMLExportRules.$HTTPCookies.$HTTPRequest.$IgnoreEOF.$ImageFormattingWidth.$ImageResolution.$ImagingDevice.$ImagingDevices.$ImportFormats.$IncomingMailSettings.$InitialDirectory.$Initialization.$InitializationContexts.$Input.$InputFileName.$InputStreamMethods.$Inspector.$InstallationDate.$InstallationDirectory.$InterfaceEnvironment.$InterpreterTypes.$IterationLimit.$KernelCount.$KernelID.$Language.$LaunchDirectory.$LibraryPath.$LicenseExpirationDate.$LicenseID.$LicenseProcesses.$LicenseServer.$LicenseSubprocesses.$LicenseType.$Line.$Linked.$LinkSupported.$LoadedFiles.$LocalBase.$LocalSymbolBase.$MachineAddresses.$MachineDomain.$MachineDomains.$MachineEpsilon.$MachineID.$MachineName.$MachinePrecision.$MachineType.$MaxDisplayedChildren.$MaxExtraPrecision.$MaxLicenseProcesses.$MaxLicenseSubprocesses.$MaxMachineNumber.$MaxNumber.$MaxPiecewiseCases.$MaxPrecision.$MaxRootDegree.$MessageGroups.$MessageList.$MessagePrePrint.$Messages.$MinMachineNumber.$MinNumber.$MinorReleaseNumber.$MinPrecision.$MobilePhone.$ModuleNumber.$NetworkConnected.$NetworkInterfaces.$NetworkLicense.$NewMessage.$NewSymbol.$NotebookInlineStorageLimit.$Notebooks.$NoValue.$NumberMarks.$Off.$OperatingSystem.$Output.$OutputForms.$OutputSizeLimit.$OutputStreamMethods.$Packages.$ParentLink.$ParentProcessID.$PasswordFile.$PatchLevelID.$Path.$PathnameSeparator.$PerformanceGoal.$Permissions.$PermissionsGroupBase.$PersistenceBase.$PersistencePath.$PipeSupported.$PlotTheme.$Post.$Pre.$PreferencesDirectory.$PreInitialization.$PrePrint.$PreRead.$PrintForms.$PrintLiteral.$Printout3DPreviewer.$ProcessID.$ProcessorCount.$ProcessorType.$ProductInformation.$ProgramName.$ProgressReporting.$PublisherID.$RandomGeneratorState.$RandomState.$RecursionLimit.$RegisteredDeviceClasses.$RegisteredUserName.$ReleaseNumber.$RequesterAddress.$RequesterCloudUserID.$RequesterCloudUserUUID.$RequesterWolframID.$RequesterWolframUUID.$ResourceSystemBase.$ResourceSystemPath.$RootDirectory.$ScheduledTask.$ScriptCommandLine.$ScriptInputString.$SecuredAuthenticationKeyTokens.$ServiceCreditsAvailable.$Services.$SessionID.$SetParentLink.$SharedFunctions.$SharedVariables.$SoundDisplay.$SoundDisplayFunction.$SourceLink.$SSHAuthentication.$SubtitleDecoders.$SubtitleEncoders.$SummaryBoxDataSizeLimit.$SuppressInputFormHeads.$SynchronousEvaluation.$SyntaxHandler.$System.$SystemCharacterEncoding.$SystemCredentialStore.$SystemID.$SystemMemory.$SystemShell.$SystemTimeZone.$SystemWordLength.$TargetSystems.$TemplatePath.$TemporaryDirectory.$TemporaryPrefix.$TestFileName.$TextStyle.$TimedOut.$TimeUnit.$TimeZone.$TimeZoneEntity.$TopDirectory.$TraceOff.$TraceOn.$TracePattern.$TracePostAction.$TracePreAction.$UnitSystem.$Urgent.$UserAddOnsDirectory.$UserAgentLanguages.$UserAgentMachine.$UserAgentName.$UserAgentOperatingSystem.$UserAgentString.$UserAgentVersion.$UserBaseDirectory.$UserBasePacletsDirectory.$UserDocumentsDirectory.$Username.$UserName.$UserURLBase.$Version.$VersionNumber.$VideoDecoders.$VideoEncoders.$VoiceStyles.$WolframDocumentsDirectory.$WolframID.$WolframUUID`.split(`.`);function r(e){let t=e.regex,r=t.either(t.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),i=t.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),a={className:`number`,relevance:0,begin:t.concat(r,t.optional(i),t.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,s=new Set(n),l={variants:[{className:`builtin-symbol`,begin:o,"on:begin":(e,t)=>{s.has(e[0])||t.ignoreMatch()}},{className:`symbol`,relevance:0,begin:o}]},u={className:`named-character`,begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},d={className:`operator`,relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:`pattern`,relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},p={className:`slot`,relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},m={className:`brace`,relevance:0,begin:/[[\](){}]/},h={className:`message-name`,relevance:0,begin:t.concat(`::`,o)};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:[e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`]}),f,p,h,l,u,e.QUOTE_STRING_MODE,a,d,m]}}t.exports=r})),k7=s(((e,t)=>{function n(e){let t={relevance:0,contains:[{begin:`('|\\.')+`}]};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:t},{begin:`[a-zA-Z][a-zA-Z_0-9]*('|\\.')+`,relevance:0},{className:`number`,begin:e.C_NUMBER_RE,relevance:0,starts:t},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:`string`,begin:`"`,end:`"`,contains:[{begin:`""`}],starts:t},e.COMMENT(`^\\s*%\\{\\s*$`,`^\\s*%\\}\\s*$`),e.COMMENT(`%`,`$`)]}}t.exports=n})),BVt=s(((e,t)=>{function n(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:/@/}}t.exports=n})),VVt=s(((e,t)=>{function n(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:`{function n(e){let t={keyword:`module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure`,meta:`inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing`,built_in:`some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure`},n=e.COMMENT(`%`,`$`),r={className:`number`,begin:`0'.\\|0[box][0-9a-fA-F]*`},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains=a.contains.slice(),a.contains.push({className:`subst`,begin:`\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]`,relevance:0}),{name:`Mercury`,aliases:[`m`,`moo`],keywords:t,contains:[{className:`built_in`,variants:[{begin:`<=>`},{begin:`<=`,relevance:0},{begin:`=>`,relevance:0},{begin:`/\\\\`},{begin:`\\\\/`}]},{className:`built_in`,variants:[{begin:`:-\\|-->`},{begin:`=`,relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}}t.exports=n})),A7=s(((e,t)=>{function n(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:/\//}}t.exports=n})),j7=s(((e,t)=>{function n(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(`::`,`$`)]}}t.exports=n})),M7=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},u={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},d=[e.BACKSLASH_ESCAPE,a,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},m=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),h=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:d,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}]},u,{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`,t.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:m(`(?:m|qr)?`,/\//,/\//)},{begin:m(`m|qr`,t.either(...f,{capture:!0}),/\1/)},{begin:m(`m|qr`,/\(/,/\)/)},{begin:m(`m|qr`,/\[/,/\]/)},{begin:m(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,u]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=h,o.contains=h,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:h}}t.exports=n})),N7=s(((e,t)=>{function n(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}]}}t.exports=n})),P7=s(((e,t)=>{function n(e){let t={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`}},r={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`.split(`.`),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`.split(`.`),literal:[`true`,`false`,`null`]},illegal:/\/\*/,contains:[e.COMMENT(`#rem`,`#end`),e.COMMENT(`'`,`$`,{relevance:0}),n,r,{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,t]}}t.exports=n})),F7=s(((e,t)=>{function n(e){let t={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$_]*`,r={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},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,r]}]},{className:`built_in`,begin:`@__`+e.IDENT_RE},{begin:`@`+e.IDENT_RE},{begin:e.IDENT_RE+`\\\\`+e.IDENT_RE}];r.contains=i;let a=e.inherit(e.TITLE_MODE,{begin:n}),o=`(\\(.*\\)\\s*)?\\B[-=]>`,s={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(i)}]};return{name:`MoonScript`,aliases:[`moon`],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT(`--`,`$`),{className:`function`,begin:`^\\s*`+n+`\\s*=\\s*`+o,end:`[-=]>`,returnBegin:!0,contains:[a,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:`function`,begin:o,end:`[-=]>`,returnBegin:!0,contains:[s]}]},{className:`class`,beginKeywords:`class`,end:`$`,illegal:/[:="\[\]]/,contains:[{beginKeywords:`extends`,endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:`name`,begin:n+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=n})),UVt=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`)},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]}}t.exports=n})),I7=s(((e,t)=>{function n(e){return{name:`Nested Text`,aliases:[`nt`],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:`bullet`,4:`string`}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:`punctuation`,4:`string`}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:`attribute`,3:`punctuation`}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:`attribute`,3:`punctuation`,5:`string`}}]}}t.exports=n})),L7=s(((e,t)=>{function n(e){let t=e.regex,n={className:`variable`,variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={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:r.contains,keywords:{section:`upstream location`}},{className:`section`,begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+`\\s`),end:`;|\\{`,contains:[{className:`attribute`,begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:`[^\\s\\}\\{]`}}t.exports=n})),WVt=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`),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]}}t.exports=n})),GVt=s(((e,t)=>{function n(e){let t=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`]},r={scope:`built_in`,match:t.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`.split(`.`).map(e=>`builtins\\.${e}`)),relevance:10},i=`[A-Za-z_][A-Za-z0-9_'-]*`,a={scope:`symbol`,match:RegExp(`<${i}(/${i})*>`)},o=`[A-Za-z0-9_\\+\\.-]+`,s={scope:`symbol`,match:RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},l=t.either(`==`,`=`,`\\+\\+`,`\\+`,`<=`,`<\\|`,`<`,`>=`,`>`,`->`,`//`,`/`,`!=`,`!`,`\\|\\|`,`\\|>`,`\\?`,`\\*`,`&&`),u={scope:`operator`,match:t.concat(l,/(?!-)/),relevance:0},d={scope:`number`,match:RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:`operator`,beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:`number`,2:`operator`}},{begin:[l,/-/,/(?!>)/],beginScope:{1:`operator`,2:`operator`}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:`attr`,match:RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:`char.escape`,match:/\\\$/},h={scope:`char.escape`,match:/''\$/},g={scope:`subst`,begin:/\$\{/,end:/\}/,keywords:n},_={scope:`char.escape`,match:/'''/},v={scope:`char.escape`,match:/\\(?!\$)./},y={scope:`string`,variants:[{begin:`''`,end:`''`,contains:[h,g,_,v]},{begin:`"`,end:`"`,contains:[m,g,v]}]},b={scope:`params`,match:RegExp(`${i}\\s*:(?=\\s)`)},x=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),r,y,a,s,b,p,f,u];return g.contains=x,{name:`Nix`,aliases:[`nixos`],keywords:n,contains:x.concat([{scope:`meta.prompt`,match:/^nix-repl>(?=\s)/,relevance:10},{scope:`meta`,beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}}t.exports=n})),R7=s(((e,t)=>{function n(e){return{name:`Node REPL`,contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`javascript`}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),z7=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=`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`.split(`.`),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`.split(`.`),a={className:`variable.constant`,begin:t.concat(/\$/,t.either(...n))},o={className:`variable`,begin:/\$+\{[\!\w.:-]+\}/},s={className:`variable`,begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:`variable`,begin:/\$+\([\w^.:!-]+\)/},u={className:`params`,begin:t.either(...r)},d={className:`keyword`,begin:t.concat(/!/,t.either(...i))},f={className:`char.escape`,begin:/\$(\\[nrt]|\$)/},p={className:`title.function`,begin:/\w+::\w+/},m={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,a,o,s,l]},h=`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`.split(`.`),g=`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`.split(`,`),_={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:`keyword`,3:`title.function`}};return{name:`NSIS`,case_insensitive:!0,keywords:{keyword:h,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),{match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:`keyword`,3:`params`,4:`variable`}},_,{beginKeywords:`Function PageEx Section SectionGroup FunctionEnd SectionEnd`},m,d,o,s,l,u,p,e.NUMBER_MODE]}}t.exports=n})),B7=s(((e,t)=>{function n(e){let t={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_]*/,r={"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`.split(`.`),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`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),V7=s(((e,t)=>{function n(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:/->/}]}}t.exports=n})),KVt=s(((e,t)=>{function n(e){let t={className:`keyword`,begin:`\\$(f[asn]|t|vp[rtd]|children)`},n={className:`literal`,begin:`false|true|PI|undef`},r={className:`number`,begin:`\\b\\d+(\\.\\d+)?(e-?\\d+)?`,relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:`meta`,keywords:{keyword:`include use`},begin:`include|use <`,end:`>`},o={className:`params`,begin:`\\(`,end:`\\)`,contains:[`self`,r,i,t,n]},s={begin:`[*!#%]`,relevance:0},l={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,r,a,i,t,s,l]}}t.exports=n})),qVt=s(((e,t)=>{function n(e){let t={$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}),r=e.COMMENT(`\\(\\*`,`\\*\\)`,{relevance:10}),i={className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},a={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:t,contains:[i,a]},n,r]};return{name:`Oxygene`,case_insensitive:!0,keywords:t,illegal:`("|\\$[G-Zg-z]|\\/\\*||->)`,contains:[n,r,e.C_LINE_COMMENT_MODE,i,a,e.NUMBER_MODE,o,{scope:`punctuation`,match:/;/,relevance:0}]}}t.exports=n})),JVt=s(((e,t)=>{function n(e){let t=e.COMMENT(/\{/,/\}/,{contains:[`self`]});return{name:`Parser3`,subLanguage:`xml`,relevance:0,contains:[e.COMMENT(`^#`,`$`),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{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]}}t.exports=n})),H7=s(((e,t)=>{function n(e){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,{className:`variable`,begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:`variable`,begin:/<(?!\/)/,end:/>/}]}}t.exports=n})),U7=s(((e,t)=>{function n(e){let t=e.COMMENT(`--`,`$`),n=`\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$`,r=`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`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`),i=`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`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`);return{name:`PostgreSQL`,aliases:[`postgres`,`postgresql`],supersetOf:`sql`,case_insensitive:!0,keywords:{keyword:`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 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 SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS `,built_in:`CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC 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 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 `},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(`+i+`)\\s*\\(`},{begin:`\\.(`+r+`)\\b`},{begin:`\\b(`+r+`)\\s+PATH\\b`,keywords:{keyword:`PATH`,type:`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 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 `}},{className:`type`,begin:`\\b(`+r+`)\\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:n,end:n,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,t,{className:`meta`,variants:[{begin:`%(ROW)?TYPE`,relevance:10},{begin:`\\$\\d+`},{begin:`^#\\w`,end:`$`}]},{className:`symbol`,begin:`<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>`,relevance:10}]}}t.exports=n})),W7=s(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ +]`,h={scope:`string`,variants:[d,u,f,p]},g={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},_=[`false`,`null`,`true`],v=`__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`.split(`.`),y=`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`.split(`.`),b={keyword:v,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(_),built_in:y},x=e=>e.map(e=>e.replace(/\|\d+$/,``)),S={variants:[{match:[/new/,t.concat(m,`+`),t.concat(`(?!`,x(y).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},C=t.concat(r,`\\b(?!\\()`),w={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},T={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},E={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[T,o,w,e.C_BLOCK_COMMENT_MODE,h,g,S]},D={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,x(v).join(`\\b|`),`|`,x(y).join(`\\b|`),`\\b)`),r,t.concat(m,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[E]};E.contains.push(D);let O=[T,w,e.C_BLOCK_COMMENT_MODE,h,g,S],k={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:_,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:[`new`,`array`]},contains:[`self`,...O]},...O,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:b,contains:[k,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}]}},s,{scope:`variable.language`,match:/\$this\b/},o,D,w,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},S,{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:b,contains:[`self`,k,o,w,e.C_BLOCK_COMMENT_MODE,h,g]}]},{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]},h,g]}}t.exports=n})),G7=s(((e,t)=>{function n(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})]}]}}t.exports=n})),K7=s(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),YVt=s(((e,t)=>{function n(e){return{name:`Pony`,keywords:{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`},contains:[{className:`type`,begin:`\\b_?[A-Z][\\w]*`,relevance:0},{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+`'`,relevance:0},{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]}}t.exports=n})),XVt=s(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$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`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},l={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},u=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),d={className:`built_in`,variants:[{begin:`(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)+(-)[\\w\\d]+`}]},f={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},p={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},m={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,l,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},h={variants:[{className:`operator`,begin:`(-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)\\b`},{className:`literal`,begin:/(-){1,2}[\w\d-]+/,relevance:0}]},g={className:`selector-tag`,begin:/@\B/,relevance:0},_={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},v=[_,u,i,e.NUMBER_MODE,s,l,d,a,o,g],y={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(v,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return _.contains.unshift(y),{name:`PowerShell`,aliases:[`pwsh`,`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:v.concat(f,p,m,h,y)}}t.exports=n})),q7=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:`built_in`},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:`title.function`}]},a={match:[/new\s+/,r],className:{1:`keyword`,2:`class.title`}},o={relevance:0,match:[/\./,r],className:{2:`property`}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},l=[`boolean`,`byte`,`char`,`color`,`double`,`float`,`int`,`long`,`short`],u=[`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`.split(`.`)],literal:`P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false`,title:`setup draw`,variable:`super this`,built_in:[...n,...u],type:l},contains:[s,a,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),J7=s(((e,t)=>{function n(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}]}}t.exports=n})),ZVt=s(((e,t)=>{function n(e){let t={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},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:`comment`,begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:`string`,begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s=[t,n,r,{begin:/:-/},i,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,{className:`string`,begin:/0'(\\'|.)/},{className:`string`,begin:/0'\\s/},e.C_NUMBER_MODE];return r.contains=s,i.contains=s,{name:`Prolog`,contains:s.concat([{begin:/\.$/}])}}t.exports=n})),Y7=s(((e,t)=>{function n(e){let t=`([^\\\\:= \\t\\f\\n]|\\\\.)+`;return{name:`.properties`,disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(`^\\s*[!#]`,`$`),{returnBegin:!0,variants:[{begin:t+`[ \\t\\f]*[:=][ \\t\\f]*`},{begin:t+`[ \\t\\f]+`}],contains:[{className:`attr`,begin:t,endsParent:!0}],starts:{end:`([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)`,relevance:0,starts:{className:`string`,end:/$/,relevance:0,contains:[{begin:`\\\\\\\\`},{begin:`\\\\\\n`}]}}},{className:`attr`,begin:t+`[ \\t\\f]*`+`$`}]}}t.exports=n})),X7=s(((e,t)=>{function n(e){let t=[`package`,`import`,`option`,`optional`,`required`,`repeated`,`group`,`oneof`],n=[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:`keyword`,2:`title.class`}};return{name:`Protocol Buffers`,aliases:[`proto`],keywords:{keyword:t,type:n,literal:[`true`,`false`]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:`function`,beginKeywords:`rpc`,end:/[{;]/,excludeEnd:!0,keywords:`rpc returns`},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}t.exports=n})),Z7=s(((e,t)=>{function n(e){let t={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(`#`,`$`),r=`([A-Za-z_]|::)(\\w|::)*`,i=e.inherit(e.TITLE_MODE,{begin:r}),a={className:`variable`,begin:`\\$`+r},o={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:`Puppet`,aliases:[`pp`],contains:[n,a,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:t,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},a]}],relevance:0}]}}t.exports=n})),Q7=s(((e,t)=>{function n(e){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]},{className:`string`,begin:`(~)?"`,end:`"`,illegal:`\\n`},{className:`symbol`,begin:`#[a-zA-Z_]\\w*\\$?`}]}}t.exports=n})),QVt=s(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`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`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,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`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{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,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},u=`[0-9](_?[0-9])*`,d=`(\\b(${u}))?\\.(${u})|\\b(${u})\\.`,f=`\\b|${r.join(`|`)}`,p={className:`number`,relevance:0,variants:[{begin:`(\\b(${u})|(${d}))[eE][+-]?(${u})[jJ]?(?=${f})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${u})[jJ](?=${f})`}]},m={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,p,l,e.HASH_COMMENT_MODE]}]};return o.contains=[l,p,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,p,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},l,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[h]},{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:[p,h,l]}]}}t.exports=n})),$Vt=s(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),$7=s(((e,t)=>{function n(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]}}t.exports=n})),eHt=s(((e,t)=>{function n(e){let t=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`},r=`[a-zA-Z_][a-zA-Z0-9\\._]*`,i={className:`keyword`,begin:`\\bproperty\\b`,starts:{className:`string`,end:`(:|=|;|,|//|/\\*|$)`,returnEnd:!0}},a={className:`keyword`,begin:`\\bsignal\\b`,starts:{className:`string`,end:`(\\(|:|=|;|,|//|/\\*|$)`,returnEnd:!0}},o={className:`attribute`,begin:`\\bid\\s*:`,starts:{className:`string`,end:r,returnEnd:!1}},s={begin:r+`\\s*:`,returnBegin:!0,contains:[{className:`attribute`,begin:r,end:`\\s*:`,excludeEnd:!0,relevance:0}],relevance:0},l={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};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},a,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,s,l],illegal:/#/}}t.exports=n})),tHt=s(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.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=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.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:t.lookahead(t.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,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),nHt=s(((e,t)=>{function n(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`.split(`.`),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}]}}t.exports=n})),e9=s(((e,t)=>{function n(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:`{function n(e){let t=`[a-zA-Z-_][^\\n{]+\\{`,n={className:`attribute`,begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:`;`,relevance:0,contains:[{className:`variable`,begin:/\.[a-zA-Z-_]+/},{className:`keyword`,begin:/\(optional\)/}]}};return{name:`Roboconf`,aliases:[`graph`,`instances`],case_insensitive:!0,keywords:`import`,contains:[{begin:`^facet `+t,end:/\}/,keywords:`facet`,contains:[n,e.HASH_COMMENT_MODE]},{begin:`^\\s*instance of `+t,end:/\}/,keywords:`name count channels instance-data instance-state instance of`,illegal:/\S/,contains:[`self`,n,e.HASH_COMMENT_MODE]},{begin:`^`+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}t.exports=n})),iHt=s(((e,t)=>{function n(e){let t=`foreach do while for if from to step else on-error and or not in`,n=`true false yes no nothing nil null`,r={className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,{className:`variable`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},a={className:`string`,begin:/'/,end:/'/};return{name:`MikroTik RouterOS script`,aliases:[`mikrotik`],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+` :`+t.split(` `).join(` :`)+` :`+`global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime`.split(` `).join(` :`)},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT(`^#`,`$`),i,a,r,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:`attribute`,begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[i,a,r,{className:`literal`,begin:`\\b(`+n.split(` `).join(`|`)+`)\\b`},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:`number`,begin:/\*[0-9a-fA-F]+/},{begin:`\\b(`+`add remove enable disable set get print export edit find run debug error info warning`.split(` `).join(`|`)+`)([\\s[(\\]|])`,returnBegin:!0,contains:[{className:`built_in`,begin:/\w+/}]},{className:`built_in`,variants:[{begin:`(\\.\\./|/|\\s)((`+`traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw`.split(` `).join(`|`)+`);?\\s)+`},{begin:/\.\./,relevance:0}]}]}}t.exports=n})),aHt=s(((e,t)=>{function n(e){let t=`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`.split(`.`),n=[`matrix`,`float`,`color`,`point`,`normal`,`vector`],r=[`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:r,built_in:t,type:n},illegal:`{function n(e){return{name:`Oracle Rules Language`,keywords:{keyword:`BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING`,built_in:`IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`literal`,variants:[{begin:`#\\s+`,relevance:0},{begin:`#[a-zA-Z .]+`}]}]}}t.exports=n})),sHt=s(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(32|64))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),l=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],u=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),d=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f32`,`f64`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:d,keyword:s,literal:l,built_in:u},illegal:``},a]}}t.exports=n})),cHt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=`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`.split(`.`);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:`%`+t.either(...`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`.split(`.`))},{className:`title.function`,begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:`meta`,begin:t.either(...r)+`(?=\\()`},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT(`\\*`,`;`),e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),t9=s(((e,t)=>{function n(e){let t=e.regex,n={className:`meta`,begin:`@[A-Za-z]+`},r={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,r]},{className:`string`,begin:`[a-z]+"""`,end:`"""`,contains:[r],relevance:10}]},a={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},s={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:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},l={className:`function`,beginKeywords:`def`,end:t.lookahead(/[:={\[(\n;]/),contains:[o]},u={begin:[/^\s*/,`extension`,/\s+(?=[[(])/],beginScope:{2:`keyword`}},d={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,a,l,s,e.C_NUMBER_MODE,u,d,...f,p,n]}}t.exports=n})),lHt=s(((e,t)=>{function n(e){let t=`[^\\(\\)\\[\\]\\{\\}",'\`;#|\\\\\\s]+`,n={$pattern:t,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?"},r={className:`literal`,begin:`(#t|#f|#\\\\`+t+`|#\\\\.)`},i={className:`number`,variants:[{begin:`(-|\\+)?\\d+([./]\\d+)?`,relevance:0},{begin:`(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i`,relevance:0},{begin:`#b[0-1]+(/[0-1]+)?`},{begin:`#o[0-7]+(/[0-7]+)?`},{begin:`#x[0-9a-f]+(/[0-9a-f]+)?`}]},a=e.QUOTE_STRING_MODE,o=[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#\\|`,`\\|#`)],s={begin:t,relevance:0},l={className:`symbol`,begin:`'`+t},u={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:`\\(`,end:`\\)`,contains:[`self`,r,a,i,s,l]}]},f={className:`name`,relevance:0,begin:t,keywords:n},p={variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[s]}]},f,u]};return u.contains=[r,i,a,s,l,d,p].concat(o),{name:`Scheme`,aliases:[`scm`],illegal:/\S/,contains:[e.SHEBANG(),i,a,l,d,p].concat(o)}}t.exports=n})),n9=s(((e,t)=>{function n(e){let t=[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:t},e.COMMENT(`//`,`$`)].concat(t)}}t.exports=n})),uHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse();function d(e){let t=n(e),r=l,i=s,d=`@[a-z-]+`,f={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},f,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.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:[t.BLOCK_COMMENT,f,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:d,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:d,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},f,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=d})),dHt=s(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),fHt=s(((e,t)=>{function n(e){let t=`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`.split(`.`);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(`+[`transient`,`constructor`,`abstract`,`final`,`synthetic`,`public`,`private`,`protected`,`static`,`bridge`,`system`].join(`|`)+`)`}]},{className:`built_in`,variants:[{begin:`\\s(`+t.join(`|`)+`)\\s`},{begin:`\\s(`+t.join(`|`)+`)((-|/)[a-zA-Z0-9]+)+\\s`,relevance:10},{begin:`\\s(`+[`aget`,`aput`,`array`,`check`,`execute`,`fill`,`filled`,`goto/16`,`goto/32`,`iget`,`instance`,`invoke`,`iput`,`monitor`,`packed`,`sget`,`sparse`].join(`|`)+`)((-|/)[a-zA-Z0-9]+)*\\s`,relevance:10}]},{className:`class`,begin:`L[^(;: +]*;`,relevance:0},{begin:`[vp][0-9]+`}]}}t.exports=n})),pHt=s(((e,t)=>{function n(e){let t=`[a-z][a-zA-Z0-9_]*`,n={className:`string`,begin:`\\$.{1}`},r={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:t+`:`,relevance:0},e.C_NUMBER_MODE,r,n,{begin:`\\|[ ]*`+t+`([ ]+`+t+`)*[ ]*\\|`,returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:`(\\|[ ]*)?`+t}]},{begin:`#\\(`,end:`\\)`,contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}t.exports=n})),mHt=s(((e,t)=>{function n(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:/[-=]>/}]}}t.exports=n})),hHt=s(((e,t)=>{function n(e){let t={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]+/},r={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`.split(`.`),a=`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`.split(`.`),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`.split(`.`),s={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:`define undef ifdef ifndef else endif include if`,contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{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:a},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}t.exports=n})),gHt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`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`.split(`.`),l=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],u=`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`.split(`.`),d=`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`.split(`.`),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`],m=d,h=[...u,...l].filter(e=>!d.includes(e)),g={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},_={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function y(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let b={scope:`keyword`,match:y(p),relevance:0};function x(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(h,{when:e=>e.length<3}),literal:a,type:s,built_in:f},contains:[{scope:`type`,match:y(o)},b,v,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,_]}}t.exports=n})),_Ht=s(((e,t)=>{function n(e){let t=e.regex,n=[`functions`,`model`,`data`,`parameters`,`quantities`,`transformed`,`generated`],r=[`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`],a=`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`.split(`.`),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`.split(`.`),s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:`doctag`,match:/@(return|param)/}]}),l={scope:`meta`,begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:`string`},e.C_LINE_COMMENT_MODE]},u=[`lower`,`upper`,`offset`,`multiplier`];return{name:`Stan`,aliases:[`stanfuncs`],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:a},contains:[e.C_LINE_COMMENT_MODE,l,e.HASH_COMMENT_MODE,s,{scope:`built_in`,match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:`keyword`,match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:`built_in`,4:`keyword`}},{scope:`built_in`,keywords:o,begin:t.concat(/\w*/,t.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:`built_in`}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,`(?!.*/\b(`+t.either(...o)+`)\b)`],scope:{2:`title.function`}},{scope:`title.function`,begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:`number`,match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:`string`,begin:/"/,end:/"/}]}}t.exports=n})),vHt=s(((e,t)=>{function n(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]}}t.exports=n})),dHt=s(((e,t)=>{function n(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`}]}]}}t.exports=n})),fHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse();function d(e){let t=n(e),r={className:`variable`,begin:`\\$`+e.IDENT_RE};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:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.HEXCOLOR,{begin:`\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-class`},{begin:`#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-id`},{begin:`\\b(`+a.join(`|`)+`)(?=[.\\s\\n[:,(])`,className:`selector-tag`},{className:`selector-pseudo`,begin:`&?:(`+s.join(`|`)+`)(?=[.\\s\\n[:,(])`},{className:`selector-pseudo`,begin:`&?:(:)?(`+l.join(`|`)+`)(?=[.\\s\\n[:,(])`},t.ATTRIBUTE_SELECTOR_MODE,{className:`keyword`,begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[t.CSS_NUMBER_MODE]}},{className:`keyword`,begin:`@((-(o|moz|ms|webkit)-)?(`+[`charset`,`css`,`debug`,`extend`,`font-face`,`for`,`import`,`include`,`keyframes`,`media`,`mixin`,`page`,`warn`,`while`].join(`|`)+`))\\b`},r,t.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:[t.HEXCOLOR,r,e.APOS_STRING_MODE,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,starts:{end:/;|$/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},t.FUNCTION_DISPATCH]}}t.exports=d})),pHt=s(((e,t)=>{function n(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]}}t.exports=n})),yHt=s(((e,t)=>{function n(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`}]}]}}t.exports=n})),bHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`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`.split(`.`).sort().reverse();function d(e){let t=n(e),r={className:`variable`,begin:`\\$`+e.IDENT_RE};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:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.HEXCOLOR,{begin:`\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-class`},{begin:`#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-id`},{begin:`\\b(`+a.join(`|`)+`)(?=[.\\s\\n[:,(])`,className:`selector-tag`},{className:`selector-pseudo`,begin:`&?:(`+s.join(`|`)+`)(?=[.\\s\\n[:,(])`},{className:`selector-pseudo`,begin:`&?:(:)?(`+l.join(`|`)+`)(?=[.\\s\\n[:,(])`},t.ATTRIBUTE_SELECTOR_MODE,{className:`keyword`,begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[t.CSS_NUMBER_MODE]}},{className:`keyword`,begin:`@((-(o|moz|ms|webkit)-)?(`+[`charset`,`css`,`debug`,`extend`,`font-face`,`for`,`import`,`include`,`keyframes`,`media`,`mixin`,`page`,`warn`,`while`].join(`|`)+`))\\b`},r,t.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:[t.HEXCOLOR,r,e.APOS_STRING_MODE,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,starts:{end:/;|$/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},t.FUNCTION_DISPATCH]}}t.exports=d})),xHt=s(((e,t)=>{function n(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:`}]}]}}t.exports=n})),mHt=s(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),l=[`Protocol`,`Type`].map(s),u=[`init`,`self`].map(s),d=[`Any`,`Self`],f=[`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`],p=[`false`,`nil`,`true`],m=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],h=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],g=`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`.split(`.`),_=o(/[/=\-+!*%<>&|^~?]/,/[\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]/),v=o(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=i(_,v,`*`),b=o(/[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]/),x=o(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),S=i(b,x,`*`),C=i(/[A-Z]/,x,`*`),w=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,S,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],T=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function E(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],_={match:[/\./,o(...l,...u)],className:{2:`keyword`}},b={match:i(/\./,o(...f)),relevance:0},E=f.filter(e=>typeof e==`string`).concat([`_|0`]),D={variants:[{className:`keyword`,match:o(...f.filter(e=>typeof e!=`string`).concat(d).map(s),...u)}]},O={$pattern:o(/\b\w+/,/#\w+/),keyword:E.concat(h),literal:p},k=[_,b,D],A=[{match:i(/\./,o(...g)),relevance:0},{className:`built_in`,match:i(/\b/,o(...g),/(?=\()/)}],j={match:/->/,relevance:0},M=[j,{className:`operator`,relevance:0,variants:[{match:y},{match:`\\.(\\.|${v})+`}]}],ee=`([0-9]_*)+`,te=`([0-9a-fA-F]_*)+`,ne={className:`number`,relevance:0,variants:[{match:`\\b(${ee})(\\.(${ee}))?([eE][+-]?(${ee}))?\\b`},{match:`\\b0x(${te})(\\.(${te}))?([pP][+-]?(${ee}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},re=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ie=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),ae=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),oe=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[re(e),ie(e),ae(e)]}),se=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[re(e),ae(e)]}),ce={className:`string`,variants:[oe(),oe(`#`),oe(`##`),oe(`###`),se(),se(`#`),se(`##`),se(`###`)]},le=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ue={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:le},de=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...le,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},fe={scope:`regexp`,variants:[de(`###`),de(`##`),de(`#`),ue]},pe={match:i(/`/,S,/`/)},me=[pe,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${x}+`}],he=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...M,ne,ce]}]}},{scope:`keyword`,match:i(/@/,o(...w),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,S)}],ge={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,`+`)},{className:`type`,match:C,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(C)),relevance:0}]},_e={begin://,keywords:O,contains:[...a,...k,...he,j,ge]};ge.contains.push(_e);let ve={begin:/\(/,end:/\)/,relevance:0,keywords:O,contains:[`self`,{match:i(S,/\s*:/),keywords:`_|0`,relevance:0},...a,fe,...k,...A,...M,ne,ce,...me,...he,ge]},ye={begin://,keywords:`repeat each`,contains:[...a,ge]},be={begin:/\(/,end:/\)/,keywords:O,contains:[{begin:o(r(i(S,/\s*:/)),r(i(S,/\s+/,S,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:S}]},...a,...k,...M,ne,ce,...he,ge,ve],endsParent:!0,illegal:/["']/},xe={match:[/(func|macro)/,/\s+/,o(pe.match,S,y)],className:{1:`keyword`,3:`title.function`},contains:[ye,be,t],illegal:[/\[/,/%/]},Se={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[ye,be,t],illegal:/\[|%/},Ce={match:[/operator/,/\s+/,y],className:{1:`keyword`,3:`title`}},we={begin:[/precedencegroup/,/\s+/,C],className:{1:`keyword`,3:`title`},contains:[ge],keywords:[...m,...p],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`}},Ee={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},De={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,S,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:O,contains:[ye,...k,{begin:/:/,end:/\{/,keywords:O,contains:[{scope:`title.class.inherited`,match:C},...k],relevance:0}]};for(let e of ce.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=O;let n=[...k,...A,...M,ne,ce,...me];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:O,contains:[...a,xe,Se,Te,Ee,De,Ce,we,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},fe,...k,...A,...M,ne,ce,...me,...he,ge,ve]}}t.exports=E})),hHt=s(((e,t)=>{function n(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}/}]}}t.exports=n})),gHt=s(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={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]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={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`},u={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},d={begin:/\{/,end:/\}/,contains:[u],illegal:`\\n`,relevance:0},f={begin:`\\[`,end:`\\]`,contains:[u],illegal:`\\n`,relevance:0},p=[r,{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:t,keywords:{literal:t}},l,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},d,f,a,o],m=[...p];return m.pop(),m.push(s),u.contains=m,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:p}}t.exports=n})),_Ht=s(((e,t)=>{function n(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`}]}]}}t.exports=n})),vHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={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`.split(`.`),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:t.concat(/\$/,t.optional(/::/),n,`(::`,n,`)*`)},{begin:`\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`\\}`,contains:[r]}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}t.exports=n})),yHt=s(((e,t)=>{function n(e){let t=[`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:t,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:[...t,`set`,`list`,`map`]},end:`>`,contains:[`self`]}]}}t.exports=n})),bHt=s(((e,t)=>{function n(e){let t={className:`number`,begin:`[1-9][0-9]*`,relevance:0},n={className:`symbol`,begin:`:[^\\]]+`};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`.split(`.`),literal:[`ON`,`OFF`,`max_speed`,`LPOS`,`JPOS`,`ENABLE`,`DISABLE`,`START`,`STOP`,`RESET`]},contains:[{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`,t,n]},{className:`built_in`,begin:`(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[`,end:`\\]`,contains:[`self`,t,e.QUOTE_STRING_MODE,n]},{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_]+`}]}}t.exports=n})),o9=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=`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`.split(`.`),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`.split(`.`);i=i.concat(i.map(e=>`end${e}`));let a={scope:`string`,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:`number`,match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a,o]},l={beginKeywords:n.join(` `),keywords:{name:n},relevance:0,contains:[s]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:`punctuation`,relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},d=(e,{relevance:n})=>({beginScope:{1:`template-tag`,3:`name`},relevance:n||2,endScope:`template-tag`,begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:`in`,contains:[u,l,a,o]}),f=/[a-z_]+/,p=d(i,{relevance:2}),m=d([f],{relevance:1});return{name:`Twig`,aliases:[`craftcms`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{#/,/#\}/),p,m,{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[`self`,u,l,a,o]}]}}t.exports=n})),xHt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`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`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\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:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.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}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.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:{_:[...a,...o]}},ee={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function re(e){return t.concat(`(?!`,e.join(`|`),`)`)}let ie={match:t.concat(/\b/,re([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ae={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},oe={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},se=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,ce={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(se)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},ce,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:se,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},te,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ae,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},ie,ne,j,oe,{match:/\$[(.]/}]}}function f(e){let t=e.regex,a=d(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],f={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},p={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},m={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},h={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:u.concat(s),"variable.language":l},g={className:`meta`,begin:`@`+o},_=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,h),a.exports.PARAMS_CONTAINS.push(g);let v=a.contains.find(e=>e.scope===`attr`),y=Object.assign({},v,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,v,y]),a.contains=a.contains.concat([g,f,p,y]),_(a,`shebang`,e.SHEBANG()),_(a,`use_strict`,m);let b=a.contains.find(e=>e.label===`func.def`);return b.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=f})),SHt=s(((e,t)=>{function n(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:`$`}]}}t.exports=n})),CHt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},u={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])|[%&])?/}]},d={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,r,l,u,d,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]}]}}t.exports=n})),wHt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=[`server`,`response`,`request`,`scriptengine`,`scriptenginebuildversion`,`scriptengineminorversion`,`scriptenginemajorversion`],i={begin:t.concat(t.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`.split(`.`),built_in:r,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]}}t.exports=n})),THt=s(((e,t)=>{function n(e){return{name:`VBScript in HTML`,subLanguage:`xml`,contains:[{begin:`<%`,end:`%>`,subLanguage:`vbscript`}]}}t.exports=n})),EHt=s(((e,t)=>{function n(e){let t=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`.split(`.`),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`.split(`.`)},r=[`__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`.split(`.`);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:t.concat(/`/,t.either(...r))},{scope:`meta`,begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}t.exports=n})),DHt=s(((e,t)=>{function n(e){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`.split(`.`),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`.split(`.`),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:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,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]}]}}t.exports=n})),OHt=s(((e,t)=>{function n(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-]+>/}]}}t.exports=n})),s9=s(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`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`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{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/},{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/}]}}t.exports=n})),kHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z]\w*/,r=[`as`,`break`,`class`,`construct`,`continue`,`else`,`for`,`foreign`,`if`,`import`,`in`,`is`,`return`,`static`,`var`,`while`],i=[`true`,`false`,`null`],a=[`this`,`super`],o=[`Bool`,`Class`,`Fiber`,`Fn`,`List`,`Map`,`Null`,`Num`,`Object`,`Range`,`Sequence`,`String`,`System`],s=[`-`,`~`,/\*/,`%`,/\.\.\./,/\.\./,/\+/,`<<`,`>>`,`>=`,`<=`,`<`,`>`,/\^/,/!=/,/!/,/\bis\b/,`==`,`&&`,`&`,/\|\|/,/\|/,/\?:/,`=`],l={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:`title.function`},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:`title.function`,starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:`params`,match:n}]}]}},d={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:r},f={relevance:0,match:t.either(...s),className:`operator`},p={className:`string`,begin:/"""/,end:/"""/},m={className:`property`,begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},h={relevance:0,match:t.concat(/\b_/,n),scope:`variable`},g={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:`title.class`,keywords:{_:o}},_=e.C_NUMBER_MODE,v={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:`title.function`,3:`operator`,6:`params`}},y=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:`doctag`},`self`]}),b={scope:`subst`,begin:/%\(/,end:/\)/,contains:[_,g,l,h,f]},x={scope:`string`,begin:/"/,end:/"/,contains:[b,{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}/}]}]};b.contains.push(x);let S=[...r,...a,...i],C={relevance:0,match:t.concat(`\\b(?!`,S.join(`|`),`\\b)`,/[a-zA-Z_]\w*(?:[?!]|\b)/),className:`variable`};return{name:`Wren`,keywords:{keyword:r,"variable.language":a,literal:i},contains:[{scope:`comment`,variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},_,x,p,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,v,u,l,f,h,m,C]}}t.exports=n})),AHt=s(((e,t)=>{function n(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_-]+/}]}}t.exports=n})),c9=s(((e,t)=>{function n(e){let t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:`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`.split(`.`),literal:[`true`,`false`,`nil`],built_in:`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`.split(`.`).concat([`ObjectLoader`,`Animate`,`MovieCredits`,`Slides`,`Filters`,`Shading`,`Materials`,`LensFlare`,`Mapping`,`VLCAudioVideo`,`StereoDecoder`,`PointCloud`,`NetworkAccess`,`RemoteControl`,`RegExp`,`ChromaKey`,`Snowfall`,`NodeJS`,`Speech`,`Charts`])},n={className:`string`,begin:`"`,end:`"`,illegal:`\\n`},r={className:`string`,begin:`'`,end:`'`,illegal:`\\n`},i={className:`string`,begin:`<<`,end:`>>`},a={className:`number`,begin:`[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?`},o={beginKeywords:`import`,end:`$`,keywords:t,contains:[n]},s={className:`function`,begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:`XL`,aliases:[`tao`],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,s,o,a,e.NUMBER_MODE]}}t.exports=n})),jHt=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`),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`]}]}}t.exports=n})),MHt=s(((e,t)=>{function n(e){let t={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,r={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,t,r]}]},{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:/=>/},t,r]}}t.exports=n})),NHt=s(((e,t)=>{var n=iBt();n.registerLanguage(`1c`,s7()),n.registerLanguage(`abnf`,aBt()),n.registerLanguage(`accesslog`,oBt()),n.registerLanguage(`actionscript`,sBt()),n.registerLanguage(`ada`,cBt()),n.registerLanguage(`angelscript`,lBt()),n.registerLanguage(`apache`,c7()),n.registerLanguage(`applescript`,uBt()),n.registerLanguage(`arcade`,dBt()),n.registerLanguage(`arduino`,fBt()),n.registerLanguage(`armasm`,pBt()),n.registerLanguage(`xml`,mBt()),n.registerLanguage(`asciidoc`,hBt()),n.registerLanguage(`aspectj`,gBt()),n.registerLanguage(`autohotkey`,_Bt()),n.registerLanguage(`autoit`,vBt()),n.registerLanguage(`avrasm`,yBt()),n.registerLanguage(`awk`,bBt()),n.registerLanguage(`axapta`,xBt()),n.registerLanguage(`bash`,SBt()),n.registerLanguage(`basic`,CBt()),n.registerLanguage(`bnf`,wBt()),n.registerLanguage(`brainfuck`,TBt()),n.registerLanguage(`c`,EBt()),n.registerLanguage(`cal`,DBt()),n.registerLanguage(`capnproto`,OBt()),n.registerLanguage(`ceylon`,kBt()),n.registerLanguage(`clean`,ABt()),n.registerLanguage(`clojure`,jBt()),n.registerLanguage(`clojure-repl`,MBt()),n.registerLanguage(`cmake`,l7()),n.registerLanguage(`coffeescript`,u7()),n.registerLanguage(`coq`,d7()),n.registerLanguage(`cos`,NBt()),n.registerLanguage(`cpp`,PBt()),n.registerLanguage(`crmsh`,f7()),n.registerLanguage(`crystal`,p7()),n.registerLanguage(`csharp`,m7()),n.registerLanguage(`csp`,FBt()),n.registerLanguage(`css`,h7()),n.registerLanguage(`d`,IBt()),n.registerLanguage(`markdown`,LBt()),n.registerLanguage(`dart`,g7()),n.registerLanguage(`delphi`,_7()),n.registerLanguage(`diff`,RBt()),n.registerLanguage(`django`,zBt()),n.registerLanguage(`dns`,BBt()),n.registerLanguage(`dockerfile`,VBt()),n.registerLanguage(`dos`,HBt()),n.registerLanguage(`dsconfig`,UBt()),n.registerLanguage(`dts`,WBt()),n.registerLanguage(`dust`,GBt()),n.registerLanguage(`ebnf`,v7()),n.registerLanguage(`elixir`,KBt()),n.registerLanguage(`elm`,qBt()),n.registerLanguage(`ruby`,y7()),n.registerLanguage(`erb`,b7()),n.registerLanguage(`erlang-repl`,x7()),n.registerLanguage(`erlang`,JBt()),n.registerLanguage(`excel`,S7()),n.registerLanguage(`fix`,YBt()),n.registerLanguage(`flix`,XBt()),n.registerLanguage(`fortran`,ZBt()),n.registerLanguage(`fsharp`,QBt()),n.registerLanguage(`gams`,$Bt()),n.registerLanguage(`gauss`,C7()),n.registerLanguage(`gcode`,eVt()),n.registerLanguage(`gherkin`,tVt()),n.registerLanguage(`glsl`,nVt()),n.registerLanguage(`gml`,rVt()),n.registerLanguage(`go`,iVt()),n.registerLanguage(`golo`,aVt()),n.registerLanguage(`gradle`,oVt()),n.registerLanguage(`graphql`,sVt()),n.registerLanguage(`groovy`,cVt()),n.registerLanguage(`haml`,lVt()),n.registerLanguage(`handlebars`,uVt()),n.registerLanguage(`haskell`,dVt()),n.registerLanguage(`haxe`,fVt()),n.registerLanguage(`hsp`,pVt()),n.registerLanguage(`http`,mVt()),n.registerLanguage(`hy`,hVt()),n.registerLanguage(`inform7`,w7()),n.registerLanguage(`ini`,gVt()),n.registerLanguage(`irpf90`,_Vt()),n.registerLanguage(`isbl`,vVt()),n.registerLanguage(`java`,yVt()),n.registerLanguage(`javascript`,bVt()),n.registerLanguage(`jboss-cli`,xVt()),n.registerLanguage(`json`,SVt()),n.registerLanguage(`julia`,CVt()),n.registerLanguage(`julia-repl`,wVt()),n.registerLanguage(`kotlin`,TVt()),n.registerLanguage(`lasso`,EVt()),n.registerLanguage(`latex`,DVt()),n.registerLanguage(`ldif`,OVt()),n.registerLanguage(`leaf`,kVt()),n.registerLanguage(`less`,AVt()),n.registerLanguage(`lisp`,jVt()),n.registerLanguage(`livecodeserver`,MVt()),n.registerLanguage(`livescript`,T7()),n.registerLanguage(`llvm`,E7()),n.registerLanguage(`lsl`,NVt()),n.registerLanguage(`lua`,PVt()),n.registerLanguage(`makefile`,FVt()),n.registerLanguage(`mathematica`,IVt()),n.registerLanguage(`matlab`,D7()),n.registerLanguage(`maxima`,O7()),n.registerLanguage(`mel`,k7()),n.registerLanguage(`mercury`,A7()),n.registerLanguage(`mipsasm`,j7()),n.registerLanguage(`mizar`,M7()),n.registerLanguage(`perl`,LVt()),n.registerLanguage(`mojolicious`,RVt()),n.registerLanguage(`monkey`,zVt()),n.registerLanguage(`moonscript`,N7()),n.registerLanguage(`n1ql`,P7()),n.registerLanguage(`nestedtext`,F7()),n.registerLanguage(`nginx`,I7()),n.registerLanguage(`nim`,L7()),n.registerLanguage(`nix`,R7()),n.registerLanguage(`node-repl`,BVt()),n.registerLanguage(`nsis`,z7()),n.registerLanguage(`objectivec`,B7()),n.registerLanguage(`ocaml`,VVt()),n.registerLanguage(`openscad`,HVt()),n.registerLanguage(`oxygene`,V7()),n.registerLanguage(`parser3`,H7()),n.registerLanguage(`pf`,U7()),n.registerLanguage(`pgsql`,W7()),n.registerLanguage(`php`,UVt()),n.registerLanguage(`php-template`,WVt()),n.registerLanguage(`plaintext`,GVt()),n.registerLanguage(`pony`,G7()),n.registerLanguage(`powershell`,K7()),n.registerLanguage(`processing`,q7()),n.registerLanguage(`profile`,J7()),n.registerLanguage(`prolog`,Y7()),n.registerLanguage(`properties`,KVt()),n.registerLanguage(`protobuf`,qVt()),n.registerLanguage(`puppet`,X7()),n.registerLanguage(`purebasic`,Z7()),n.registerLanguage(`python`,JVt()),n.registerLanguage(`python-repl`,Q7()),n.registerLanguage(`q`,$7()),n.registerLanguage(`qml`,e9()),n.registerLanguage(`r`,t9()),n.registerLanguage(`reasonml`,YVt()),n.registerLanguage(`rib`,XVt()),n.registerLanguage(`roboconf`,n9()),n.registerLanguage(`routeros`,ZVt()),n.registerLanguage(`rsl`,QVt()),n.registerLanguage(`ruleslanguage`,$Vt()),n.registerLanguage(`rust`,r9()),n.registerLanguage(`sas`,eHt()),n.registerLanguage(`scala`,tHt()),n.registerLanguage(`scheme`,nHt()),n.registerLanguage(`scilab`,rHt()),n.registerLanguage(`scss`,iHt()),n.registerLanguage(`shell`,aHt()),n.registerLanguage(`smali`,i9()),n.registerLanguage(`smalltalk`,oHt()),n.registerLanguage(`sml`,a9()),n.registerLanguage(`sqf`,sHt()),n.registerLanguage(`sql`,cHt()),n.registerLanguage(`stan`,lHt()),n.registerLanguage(`stata`,uHt()),n.registerLanguage(`step21`,dHt()),n.registerLanguage(`stylus`,fHt()),n.registerLanguage(`subunit`,pHt()),n.registerLanguage(`swift`,mHt()),n.registerLanguage(`taggerscript`,hHt()),n.registerLanguage(`yaml`,gHt()),n.registerLanguage(`tap`,_Ht()),n.registerLanguage(`tcl`,vHt()),n.registerLanguage(`thrift`,yHt()),n.registerLanguage(`tp`,bHt()),n.registerLanguage(`twig`,o9()),n.registerLanguage(`typescript`,xHt()),n.registerLanguage(`vala`,SHt()),n.registerLanguage(`vbnet`,CHt()),n.registerLanguage(`vbscript`,wHt()),n.registerLanguage(`vbscript-html`,THt()),n.registerLanguage(`verilog`,EHt()),n.registerLanguage(`vhdl`,DHt()),n.registerLanguage(`vim`,OHt()),n.registerLanguage(`wasm`,s9()),n.registerLanguage(`wren`,kHt()),n.registerLanguage(`x86asm`,AHt()),n.registerLanguage(`xl`,c9()),n.registerLanguage(`xquery`,jHt()),n.registerLanguage(`zephir`,MHt()),n.HighlightJS=n,n.default=n,t.exports=n})),PHt=s(((e,t)=>{var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>r(e,a(t)),m=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!l.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e},g=e=>h(n({},`__esModule`,{value:!0}),e),_={};m(_,{default:()=>T}),t.exports=g(_);function v(e,t){for(let[n,r]of Object.entries(t))e.registerLanguage(n,r)}function y(e,t){for(let[n,r]of Object.entries(t))e.registerAliases(r,{languageName:n})}function b(e,t,n,r,i){try{return t.highlight(r,{language:i===``?`plaintext`:i,ignoreIllegals:n}).value}catch{return e.utils.escapeHtml(r)}}function x(e,t,n,r,i){if(i!==``)return b(e,t,n,r,i);try{return t.highlightAuto(r).value}catch{return e.utils.escapeHtml(r)}}function S(e){return function(...t){return e(...t).replace(//g,``)}}function C(e){for(let t of e.tokens)if(t.type===`inline`&&t.children!=null)for(let[n,r]of t.children.entries()){if(r.type!==`code_inline`)continue;let i=t.children[n+1];if(i==null)continue;let a=/^{:?\.([^}]+)}/.exec(i.content);if(a==null)continue;let o=a[1];i.content=i.content.slice(a[0].length);let s=r.attrGet(`class`)??``;s+=`${e.md.options.langPrefix??`language-`}${o}`,r.attrSet(`class`,s),r.meta=p(f({},r.meta),{highlightLanguage:o})}}function w(e,t,n,r,i){let a=e[t];if(n.highlight==null)throw Error("`options.highlight` was null, this is not supposed to happen");let o=n.highlight(a.content,a.meta?.highlightLanguage??``,``);return`${o}`}function T(e,t){let n=f(f({},T.defaults),t);if(n.hljs==null)throw Error("Please pass a highlight.js instance for the required `hljs` option.");n.register!=null&&v(n.hljs,n.register),n.registerAliases!=null&&y(n.hljs,n.registerAliases),e.options.highlight=(n.auto?x:b).bind(null,e,n.hljs,n.ignoreIllegals),e.renderer.rules.fence!=null&&(e.renderer.rules.fence=S(e.renderer.rules.fence)),n.code&&e.renderer.rules.code_block!=null&&(e.renderer.rules.code_block=S(e.renderer.rules.code_block)),n.inline&&(e.core.ruler.before(`linkify`,`inline_code_language`,C),e.renderer.rules.code_inline=S(w))}T.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1}})),FHt=s(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(o)for(var n of o(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of a(t))!l.call(e,s)&&s!==n&&r(e,s,{get:()=>t[s],enumerable:!(o=i(t,s))||o.enumerable});return e},h=(e,t,i)=>(i=e==null?{}:n(s(e)),m(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),g=e=>m(r({},`__esModule`,{value:!0}),e),_={};p(_,{default:()=>b}),t.exports=g(_);var v=h(NHt()),y=h(PHt());function b(e,t){return t=f(f({},b.defaults),t),t.hljs??(t.hljs=v.default),(0,y.default)(e,t)}b.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0}})),IHt=s(((e,t)=>{t.exports=FHt().default})),l9=l({default:()=>YHt});function LHt(e,t){let n=e.src[t-1],r=e.src[t],i=e.src[t+1];if(r!==`$`)return{can_open:!1,can_close:!1};let a=!1,o=!1;return n!==`$`&&n!==`\\`&&(n===void 0||u9(n)||!RHt(n))&&(a=!0),i!==`$`&&(i==null||u9(i)||!RHt(i))&&(o=!0),{can_open:a,can_close:o}}function u9(e){return/^\s$/u.test(e)}function RHt(e){return/^[\w\d]$/u.test(e)}function zHt(e,t,n){let r=n,i=0,a=e.length;for(;r$/.test(a.content))return!1;let o=e.pos+n.length,s=zHt(r,e.src,o);if(s===-1||s===o)return!1;if(!t){let t=e.push(i?`math_block`:`math_inline`,`math`,0);t.markup=n,t.content=e.src.slice(o,s),i&&(t.block=!0)}return e.pos=s+r.length,!0}function HHt(e,t){if(e.src[e.pos]!==`$`)return!1;let n=e.tokens.at(-1);if(n?.type===`html_inline`&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r=LHt(e,e.pos);if(!r.can_open)return t||(e.pending+=`$`),e.pos+=1,!0;let i=e.pos+1,a=i,o;for(;(a=e.src.indexOf(`$`,a))!==-1;){for(o=a-1;e.src[o]===`\\`;)--o;if((a-o)%2==1)break;a+=1}if(a===-1)return t||(e.pending+=`$`),e.pos=i,!0;if(a-i===0)return t||(e.pending+=`$$`),e.pos=i+1,!0;if(r=LHt(e,a),!r.can_close)return t||(e.pending+=`$`),e.pos=i,!0;if(!t){let t=e.push(`math_inline`,`math`,0);t.markup=`$`,t.content=e.src.slice(i,a)}return e.pos=a+1,!0}function UHt(e,t,n,r,i,a){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+i.length>s||e.src.slice(o,o+i.length)!==i)return!1;o+=i.length;let l=e.src.slice(o,s);if(l.includes(a)){let n=l.indexOf(a),o=l.slice(n+a.length);if(/^\s*$/.test(o)){if(l=l.slice(0,n).replace(/^\s+/,``),r)return!0;let a=e.push(`math_block`,`math`,0);return a.block=!0,a.content=l+` +`},{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:`}]}]}}t.exports=n})),SHt=s(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),l=[`Protocol`,`Type`].map(s),u=[`init`,`self`].map(s),d=[`Any`,`Self`],f=[`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`],p=[`false`,`nil`,`true`],m=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],h=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],g=`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`.split(`.`),_=o(/[/=\-+!*%<>&|^~?]/,/[\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]/),v=o(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=i(_,v,`*`),b=o(/[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]/),x=o(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),S=i(b,x,`*`),C=i(/[A-Z]/,x,`*`),w=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,S,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],T=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function E(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],_={match:[/\./,o(...l,...u)],className:{2:`keyword`}},b={match:i(/\./,o(...f)),relevance:0},E=f.filter(e=>typeof e==`string`).concat([`_|0`]),D={variants:[{className:`keyword`,match:o(...f.filter(e=>typeof e!=`string`).concat(d).map(s),...u)}]},O={$pattern:o(/\b\w+/,/#\w+/),keyword:E.concat(h),literal:p},k=[_,b,D],A=[{match:i(/\./,o(...g)),relevance:0},{className:`built_in`,match:i(/\b/,o(...g),/(?=\()/)}],j={match:/->/,relevance:0},M=[j,{className:`operator`,relevance:0,variants:[{match:y},{match:`\\.(\\.|${v})+`}]}],ee=`([0-9]_*)+`,te=`([0-9a-fA-F]_*)+`,ne={className:`number`,relevance:0,variants:[{match:`\\b(${ee})(\\.(${ee}))?([eE][+-]?(${ee}))?\\b`},{match:`\\b0x(${te})(\\.(${te}))?([pP][+-]?(${ee}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},re=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ie=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),ae=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),oe=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[re(e),ie(e),ae(e)]}),se=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[re(e),ae(e)]}),ce={className:`string`,variants:[oe(),oe(`#`),oe(`##`),oe(`###`),se(),se(`#`),se(`##`),se(`###`)]},le=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ue={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:le},de=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...le,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},fe={scope:`regexp`,variants:[de(`###`),de(`##`),de(`#`),ue]},pe={match:i(/`/,S,/`/)},me=[pe,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${x}+`}],he=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...M,ne,ce]}]}},{scope:`keyword`,match:i(/@/,o(...w),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,S)}],ge={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,`+`)},{className:`type`,match:C,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(C)),relevance:0}]},_e={begin://,keywords:O,contains:[...a,...k,...he,j,ge]};ge.contains.push(_e);let ve={begin:/\(/,end:/\)/,relevance:0,keywords:O,contains:[`self`,{match:i(S,/\s*:/),keywords:`_|0`,relevance:0},...a,fe,...k,...A,...M,ne,ce,...me,...he,ge]},ye={begin://,keywords:`repeat each`,contains:[...a,ge]},be={begin:/\(/,end:/\)/,keywords:O,contains:[{begin:o(r(i(S,/\s*:/)),r(i(S,/\s+/,S,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:S}]},...a,...k,...M,ne,ce,...he,ge,ve],endsParent:!0,illegal:/["']/},xe={match:[/(func|macro)/,/\s+/,o(pe.match,S,y)],className:{1:`keyword`,3:`title.function`},contains:[ye,be,t],illegal:[/\[/,/%/]},Se={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[ye,be,t],illegal:/\[|%/},Ce={match:[/operator/,/\s+/,y],className:{1:`keyword`,3:`title`}},we={begin:[/precedencegroup/,/\s+/,C],className:{1:`keyword`,3:`title`},contains:[ge],keywords:[...m,...p],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`}},Ee={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},De={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,S,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:O,contains:[ye,...k,{begin:/:/,end:/\{/,keywords:O,contains:[{scope:`title.class.inherited`,match:C},...k],relevance:0}]};for(let e of ce.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=O;let n=[...k,...A,...M,ne,ce,...me];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:O,contains:[...a,xe,Se,Te,Ee,De,Ce,we,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},fe,...k,...A,...M,ne,ce,...me,...he,ge,ve]}}t.exports=E})),CHt=s(((e,t)=>{function n(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}/}]}}t.exports=n})),r9=s(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={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]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={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`},u={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},d={begin:/\{/,end:/\}/,contains:[u],illegal:`\\n`,relevance:0},f={begin:`\\[`,end:`\\]`,contains:[u],illegal:`\\n`,relevance:0},p=[r,{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:t,keywords:{literal:t}},l,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},d,f,a,o],m=[...p];return m.pop(),m.push(s),u.contains=m,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:p}}t.exports=n})),wHt=s(((e,t)=>{function n(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`}]}]}}t.exports=n})),THt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={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`.split(`.`),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:t.concat(/\$/,t.optional(/::/),n,`(::`,n,`)*`)},{begin:`\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`\\}`,contains:[r]}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}t.exports=n})),EHt=s(((e,t)=>{function n(e){let t=[`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:t,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:[...t,`set`,`list`,`map`]},end:`>`,contains:[`self`]}]}}t.exports=n})),DHt=s(((e,t)=>{function n(e){let t={className:`number`,begin:`[1-9][0-9]*`,relevance:0},n={className:`symbol`,begin:`:[^\\]]+`};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`.split(`.`),literal:[`ON`,`OFF`,`max_speed`,`LPOS`,`JPOS`,`ENABLE`,`DISABLE`,`START`,`STOP`,`RESET`]},contains:[{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`,t,n]},{className:`built_in`,begin:`(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[`,end:`\\]`,contains:[`self`,t,e.QUOTE_STRING_MODE,n]},{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_]+`}]}}t.exports=n})),OHt=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=`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`.split(`.`),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`.split(`.`);i=i.concat(i.map(e=>`end${e}`));let a={scope:`string`,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:`number`,match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a,o]},l={beginKeywords:n.join(` `),keywords:{name:n},relevance:0,contains:[s]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:`punctuation`,relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},d=(e,{relevance:n})=>({beginScope:{1:`template-tag`,3:`name`},relevance:n||2,endScope:`template-tag`,begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:`in`,contains:[u,l,a,o]}),f=/[a-z_]+/,p=d(i,{relevance:2}),m=d([f],{relevance:1});return{name:`Twig`,aliases:[`craftcms`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{#/,/#\}/),p,m,{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[`self`,u,l,a,o]}]}}t.exports=n})),kHt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`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`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\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:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.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}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.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:{_:[...a,...o]}},ee={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function re(e){return t.concat(`(?!`,e.join(`|`),`)`)}let ie={match:t.concat(/\b/,re([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ae={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},oe={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},se=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,ce={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(se)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},ce,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:se,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},te,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ae,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},ie,ne,j,oe,{match:/\$[(.]/}]}}function f(e){let t=e.regex,a=d(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],f={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},p={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},m={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},h={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:u.concat(s),"variable.language":l},g={className:`meta`,begin:`@`+o},_=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,h),a.exports.PARAMS_CONTAINS.push(g);let v=a.contains.find(e=>e.scope===`attr`),y=Object.assign({},v,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,v,y]),a.contains=a.contains.concat([g,f,p,y]),_(a,`shebang`,e.SHEBANG()),_(a,`use_strict`,m);let b=a.contains.find(e=>e.label===`func.def`);return b.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=f})),AHt=s(((e,t)=>{function n(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:`$`}]}}t.exports=n})),jHt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},u={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])|[%&])?/}]},d={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,r,l,u,d,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]}]}}t.exports=n})),i9=s(((e,t)=>{function n(e){let t=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`.split(`.`),r=[`server`,`response`,`request`,`scriptengine`,`scriptenginebuildversion`,`scriptengineminorversion`,`scriptenginemajorversion`],i={begin:t.concat(t.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`.split(`.`),built_in:r,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]}}t.exports=n})),MHt=s(((e,t)=>{function n(e){return{name:`VBScript in HTML`,subLanguage:`xml`,contains:[{begin:`<%`,end:`%>`,subLanguage:`vbscript`}]}}t.exports=n})),NHt=s(((e,t)=>{function n(e){let t=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`.split(`.`),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`.split(`.`)},r=[`__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`.split(`.`);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:t.concat(/`/,t.either(...r))},{scope:`meta`,begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}t.exports=n})),a9=s(((e,t)=>{function n(e){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`.split(`.`),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`.split(`.`),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:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,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]}]}}t.exports=n})),PHt=s(((e,t)=>{function n(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-]+>/}]}}t.exports=n})),FHt=s(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`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`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{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/},{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/}]}}t.exports=n})),IHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z]\w*/,r=[`as`,`break`,`class`,`construct`,`continue`,`else`,`for`,`foreign`,`if`,`import`,`in`,`is`,`return`,`static`,`var`,`while`],i=[`true`,`false`,`null`],a=[`this`,`super`],o=[`Bool`,`Class`,`Fiber`,`Fn`,`List`,`Map`,`Null`,`Num`,`Object`,`Range`,`Sequence`,`String`,`System`],s=[`-`,`~`,/\*/,`%`,/\.\.\./,/\.\./,/\+/,`<<`,`>>`,`>=`,`<=`,`<`,`>`,/\^/,/!=/,/!/,/\bis\b/,`==`,`&&`,`&`,/\|\|/,/\|/,/\?:/,`=`],l={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:`title.function`},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:`title.function`,starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:`params`,match:n}]}]}},d={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:r},f={relevance:0,match:t.either(...s),className:`operator`},p={className:`string`,begin:/"""/,end:/"""/},m={className:`property`,begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},h={relevance:0,match:t.concat(/\b_/,n),scope:`variable`},g={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:`title.class`,keywords:{_:o}},_=e.C_NUMBER_MODE,v={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:`title.function`,3:`operator`,6:`params`}},y=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:`doctag`},`self`]}),b={scope:`subst`,begin:/%\(/,end:/\)/,contains:[_,g,l,h,f]},x={scope:`string`,begin:/"/,end:/"/,contains:[b,{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}/}]}]};b.contains.push(x);let S=[...r,...a,...i],C={relevance:0,match:t.concat(`\\b(?!`,S.join(`|`),`\\b)`,/[a-zA-Z_]\w*(?:[?!]|\b)/),className:`variable`};return{name:`Wren`,keywords:{keyword:r,"variable.language":a,literal:i},contains:[{scope:`comment`,variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},_,x,p,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,v,u,l,f,h,m,C]}}t.exports=n})),LHt=s(((e,t)=>{function n(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_-]+/}]}}t.exports=n})),RHt=s(((e,t)=>{function n(e){let t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:`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`.split(`.`),literal:[`true`,`false`,`nil`],built_in:`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`.split(`.`).concat([`ObjectLoader`,`Animate`,`MovieCredits`,`Slides`,`Filters`,`Shading`,`Materials`,`LensFlare`,`Mapping`,`VLCAudioVideo`,`StereoDecoder`,`PointCloud`,`NetworkAccess`,`RemoteControl`,`RegExp`,`ChromaKey`,`Snowfall`,`NodeJS`,`Speech`,`Charts`])},n={className:`string`,begin:`"`,end:`"`,illegal:`\\n`},r={className:`string`,begin:`'`,end:`'`,illegal:`\\n`},i={className:`string`,begin:`<<`,end:`>>`},a={className:`number`,begin:`[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?`},o={beginKeywords:`import`,end:`$`,keywords:t,contains:[n]},s={className:`function`,begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:`XL`,aliases:[`tao`],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,s,o,a,e.NUMBER_MODE]}}t.exports=n})),zHt=s(((e,t)=>{function n(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`.split(`.`),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`.split(`.`),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`]}]}}t.exports=n})),o9=s(((e,t)=>{function n(e){let t={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,r={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,t,r]}]},{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:/=>/},t,r]}}t.exports=n})),BHt=s(((e,t)=>{var n=dBt();n.registerLanguage(`1c`,fBt()),n.registerLanguage(`abnf`,a7()),n.registerLanguage(`accesslog`,pBt()),n.registerLanguage(`actionscript`,mBt()),n.registerLanguage(`ada`,hBt()),n.registerLanguage(`angelscript`,gBt()),n.registerLanguage(`apache`,_Bt()),n.registerLanguage(`applescript`,vBt()),n.registerLanguage(`arcade`,yBt()),n.registerLanguage(`arduino`,bBt()),n.registerLanguage(`armasm`,xBt()),n.registerLanguage(`xml`,SBt()),n.registerLanguage(`asciidoc`,CBt()),n.registerLanguage(`aspectj`,wBt()),n.registerLanguage(`autohotkey`,TBt()),n.registerLanguage(`autoit`,EBt()),n.registerLanguage(`avrasm`,DBt()),n.registerLanguage(`awk`,OBt()),n.registerLanguage(`axapta`,kBt()),n.registerLanguage(`bash`,ABt()),n.registerLanguage(`basic`,jBt()),n.registerLanguage(`bnf`,MBt()),n.registerLanguage(`brainfuck`,NBt()),n.registerLanguage(`c`,PBt()),n.registerLanguage(`cal`,FBt()),n.registerLanguage(`capnproto`,o7()),n.registerLanguage(`ceylon`,s7()),n.registerLanguage(`clean`,c7()),n.registerLanguage(`clojure`,IBt()),n.registerLanguage(`clojure-repl`,LBt()),n.registerLanguage(`cmake`,l7()),n.registerLanguage(`coffeescript`,u7()),n.registerLanguage(`coq`,d7()),n.registerLanguage(`cos`,RBt()),n.registerLanguage(`cpp`,f7()),n.registerLanguage(`crmsh`,zBt()),n.registerLanguage(`crystal`,BBt()),n.registerLanguage(`csharp`,p7()),n.registerLanguage(`csp`,m7()),n.registerLanguage(`css`,VBt()),n.registerLanguage(`d`,HBt()),n.registerLanguage(`markdown`,UBt()),n.registerLanguage(`dart`,WBt()),n.registerLanguage(`delphi`,GBt()),n.registerLanguage(`diff`,KBt()),n.registerLanguage(`django`,qBt()),n.registerLanguage(`dns`,JBt()),n.registerLanguage(`dockerfile`,h7()),n.registerLanguage(`dos`,YBt()),n.registerLanguage(`dsconfig`,XBt()),n.registerLanguage(`dts`,g7()),n.registerLanguage(`dust`,_7()),n.registerLanguage(`ebnf`,v7()),n.registerLanguage(`elixir`,ZBt()),n.registerLanguage(`elm`,y7()),n.registerLanguage(`ruby`,QBt()),n.registerLanguage(`erb`,$Bt()),n.registerLanguage(`erlang-repl`,eVt()),n.registerLanguage(`erlang`,tVt()),n.registerLanguage(`excel`,nVt()),n.registerLanguage(`fix`,b7()),n.registerLanguage(`flix`,rVt()),n.registerLanguage(`fortran`,iVt()),n.registerLanguage(`fsharp`,aVt()),n.registerLanguage(`gams`,oVt()),n.registerLanguage(`gauss`,sVt()),n.registerLanguage(`gcode`,cVt()),n.registerLanguage(`gherkin`,lVt()),n.registerLanguage(`glsl`,uVt()),n.registerLanguage(`gml`,dVt()),n.registerLanguage(`go`,fVt()),n.registerLanguage(`golo`,pVt()),n.registerLanguage(`gradle`,mVt()),n.registerLanguage(`graphql`,hVt()),n.registerLanguage(`groovy`,gVt()),n.registerLanguage(`haml`,_Vt()),n.registerLanguage(`handlebars`,vVt()),n.registerLanguage(`haskell`,x7()),n.registerLanguage(`haxe`,yVt()),n.registerLanguage(`hsp`,bVt()),n.registerLanguage(`http`,xVt()),n.registerLanguage(`hy`,SVt()),n.registerLanguage(`inform7`,CVt()),n.registerLanguage(`ini`,wVt()),n.registerLanguage(`irpf90`,TVt()),n.registerLanguage(`isbl`,EVt()),n.registerLanguage(`java`,DVt()),n.registerLanguage(`javascript`,OVt()),n.registerLanguage(`jboss-cli`,kVt()),n.registerLanguage(`json`,AVt()),n.registerLanguage(`julia`,jVt()),n.registerLanguage(`julia-repl`,MVt()),n.registerLanguage(`kotlin`,NVt()),n.registerLanguage(`lasso`,PVt()),n.registerLanguage(`latex`,FVt()),n.registerLanguage(`ldif`,S7()),n.registerLanguage(`leaf`,C7()),n.registerLanguage(`less`,IVt()),n.registerLanguage(`lisp`,LVt()),n.registerLanguage(`livecodeserver`,RVt()),n.registerLanguage(`livescript`,zVt()),n.registerLanguage(`llvm`,w7()),n.registerLanguage(`lsl`,T7()),n.registerLanguage(`lua`,E7()),n.registerLanguage(`makefile`,D7()),n.registerLanguage(`mathematica`,O7()),n.registerLanguage(`matlab`,k7()),n.registerLanguage(`maxima`,BVt()),n.registerLanguage(`mel`,VVt()),n.registerLanguage(`mercury`,HVt()),n.registerLanguage(`mipsasm`,A7()),n.registerLanguage(`mizar`,j7()),n.registerLanguage(`perl`,M7()),n.registerLanguage(`mojolicious`,N7()),n.registerLanguage(`monkey`,P7()),n.registerLanguage(`moonscript`,F7()),n.registerLanguage(`n1ql`,UVt()),n.registerLanguage(`nestedtext`,I7()),n.registerLanguage(`nginx`,L7()),n.registerLanguage(`nim`,WVt()),n.registerLanguage(`nix`,GVt()),n.registerLanguage(`node-repl`,R7()),n.registerLanguage(`nsis`,z7()),n.registerLanguage(`objectivec`,B7()),n.registerLanguage(`ocaml`,V7()),n.registerLanguage(`openscad`,KVt()),n.registerLanguage(`oxygene`,qVt()),n.registerLanguage(`parser3`,JVt()),n.registerLanguage(`pf`,H7()),n.registerLanguage(`pgsql`,U7()),n.registerLanguage(`php`,W7()),n.registerLanguage(`php-template`,G7()),n.registerLanguage(`plaintext`,K7()),n.registerLanguage(`pony`,YVt()),n.registerLanguage(`powershell`,XVt()),n.registerLanguage(`processing`,q7()),n.registerLanguage(`profile`,J7()),n.registerLanguage(`prolog`,ZVt()),n.registerLanguage(`properties`,Y7()),n.registerLanguage(`protobuf`,X7()),n.registerLanguage(`puppet`,Z7()),n.registerLanguage(`purebasic`,Q7()),n.registerLanguage(`python`,QVt()),n.registerLanguage(`python-repl`,$Vt()),n.registerLanguage(`q`,$7()),n.registerLanguage(`qml`,eHt()),n.registerLanguage(`r`,tHt()),n.registerLanguage(`reasonml`,nHt()),n.registerLanguage(`rib`,e9()),n.registerLanguage(`roboconf`,rHt()),n.registerLanguage(`routeros`,iHt()),n.registerLanguage(`rsl`,aHt()),n.registerLanguage(`ruleslanguage`,oHt()),n.registerLanguage(`rust`,sHt()),n.registerLanguage(`sas`,cHt()),n.registerLanguage(`scala`,t9()),n.registerLanguage(`scheme`,lHt()),n.registerLanguage(`scilab`,n9()),n.registerLanguage(`scss`,uHt()),n.registerLanguage(`shell`,dHt()),n.registerLanguage(`smali`,fHt()),n.registerLanguage(`smalltalk`,pHt()),n.registerLanguage(`sml`,mHt()),n.registerLanguage(`sqf`,hHt()),n.registerLanguage(`sql`,gHt()),n.registerLanguage(`stan`,_Ht()),n.registerLanguage(`stata`,vHt()),n.registerLanguage(`step21`,yHt()),n.registerLanguage(`stylus`,bHt()),n.registerLanguage(`subunit`,xHt()),n.registerLanguage(`swift`,SHt()),n.registerLanguage(`taggerscript`,CHt()),n.registerLanguage(`yaml`,r9()),n.registerLanguage(`tap`,wHt()),n.registerLanguage(`tcl`,THt()),n.registerLanguage(`thrift`,EHt()),n.registerLanguage(`tp`,DHt()),n.registerLanguage(`twig`,OHt()),n.registerLanguage(`typescript`,kHt()),n.registerLanguage(`vala`,AHt()),n.registerLanguage(`vbnet`,jHt()),n.registerLanguage(`vbscript`,i9()),n.registerLanguage(`vbscript-html`,MHt()),n.registerLanguage(`verilog`,NHt()),n.registerLanguage(`vhdl`,a9()),n.registerLanguage(`vim`,PHt()),n.registerLanguage(`wasm`,FHt()),n.registerLanguage(`wren`,IHt()),n.registerLanguage(`x86asm`,LHt()),n.registerLanguage(`xl`,RHt()),n.registerLanguage(`xquery`,zHt()),n.registerLanguage(`zephir`,o9()),n.HighlightJS=n,n.default=n,t.exports=n})),s9=s(((e,t)=>{var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>r(e,a(t)),m=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!l.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e},g=e=>h(n({},`__esModule`,{value:!0}),e),_={};m(_,{default:()=>T}),t.exports=g(_);function v(e,t){for(let[n,r]of Object.entries(t))e.registerLanguage(n,r)}function y(e,t){for(let[n,r]of Object.entries(t))e.registerAliases(r,{languageName:n})}function b(e,t,n,r,i){try{return t.highlight(r,{language:i===``?`plaintext`:i,ignoreIllegals:n}).value}catch{return e.utils.escapeHtml(r)}}function x(e,t,n,r,i){if(i!==``)return b(e,t,n,r,i);try{return t.highlightAuto(r).value}catch{return e.utils.escapeHtml(r)}}function S(e){return function(...t){return e(...t).replace(//g,``)}}function C(e){for(let t of e.tokens)if(t.type===`inline`&&t.children!=null)for(let[n,r]of t.children.entries()){if(r.type!==`code_inline`)continue;let i=t.children[n+1];if(i==null)continue;let a=/^{:?\.([^}]+)}/.exec(i.content);if(a==null)continue;let o=a[1];i.content=i.content.slice(a[0].length);let s=r.attrGet(`class`)??``;s+=`${e.md.options.langPrefix??`language-`}${o}`,r.attrSet(`class`,s),r.meta=p(f({},r.meta),{highlightLanguage:o})}}function w(e,t,n,r,i){let a=e[t];if(n.highlight==null)throw Error("`options.highlight` was null, this is not supposed to happen");let o=n.highlight(a.content,a.meta?.highlightLanguage??``,``);return`${o}`}function T(e,t){let n=f(f({},T.defaults),t);if(n.hljs==null)throw Error("Please pass a highlight.js instance for the required `hljs` option.");n.register!=null&&v(n.hljs,n.register),n.registerAliases!=null&&y(n.hljs,n.registerAliases),e.options.highlight=(n.auto?x:b).bind(null,e,n.hljs,n.ignoreIllegals),e.renderer.rules.fence!=null&&(e.renderer.rules.fence=S(e.renderer.rules.fence)),n.code&&e.renderer.rules.code_block!=null&&(e.renderer.rules.code_block=S(e.renderer.rules.code_block)),n.inline&&(e.core.ruler.before(`linkify`,`inline_code_language`,C),e.renderer.rules.code_inline=S(w))}T.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1}})),VHt=s(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(o)for(var n of o(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of a(t))!l.call(e,s)&&s!==n&&r(e,s,{get:()=>t[s],enumerable:!(o=i(t,s))||o.enumerable});return e},h=(e,t,i)=>(i=e==null?{}:n(s(e)),m(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),g=e=>m(r({},`__esModule`,{value:!0}),e),_={};p(_,{default:()=>b}),t.exports=g(_);var v=h(BHt()),y=h(s9());function b(e,t){return t=f(f({},b.defaults),t),t.hljs??(t.hljs=v.default),(0,y.default)(e,t)}b.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0}})),HHt=s(((e,t)=>{t.exports=VHt().default})),UHt=l({default:()=>eUt});function WHt(e,t){let n=e.src[t-1],r=e.src[t],i=e.src[t+1];if(r!==`$`)return{can_open:!1,can_close:!1};let a=!1,o=!1;return n!==`$`&&n!==`\\`&&(n===void 0||GHt(n)||!KHt(n))&&(a=!0),i!==`$`&&(i==null||GHt(i)||!KHt(i))&&(o=!0),{can_open:a,can_close:o}}function GHt(e){return/^\s$/u.test(e)}function KHt(e){return/^[\w\d]$/u.test(e)}function qHt(e,t,n){let r=n,i=0,a=e.length;for(;r$/.test(a.content))return!1;let o=e.pos+n.length,s=qHt(r,e.src,o);if(s===-1||s===o)return!1;if(!t){let t=e.push(i?`math_block`:`math_inline`,`math`,0);t.markup=n,t.content=e.src.slice(o,s),i&&(t.block=!0)}return e.pos=s+r.length,!0}function XHt(e,t){if(e.src[e.pos]!==`$`)return!1;let n=e.tokens.at(-1);if(n?.type===`html_inline`&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r=WHt(e,e.pos);if(!r.can_open)return t||(e.pending+=`$`),e.pos+=1,!0;let i=e.pos+1,a=i,o;for(;(a=e.src.indexOf(`$`,a))!==-1;){for(o=a-1;e.src[o]===`\\`;)--o;if((a-o)%2==1)break;a+=1}if(a===-1)return t||(e.pending+=`$`),e.pos=i,!0;if(a-i===0)return t||(e.pending+=`$$`),e.pos=i+1,!0;if(r=WHt(e,a),!r.can_close)return t||(e.pending+=`$`),e.pos=i,!0;if(!t){let t=e.push(`math_inline`,`math`,0);t.markup=`$`,t.content=e.src.slice(i,a)}return e.pos=a+1,!0}function ZHt(e,t,n,r,i,a){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+i.length>s||e.src.slice(o,o+i.length)!==i)return!1;o+=i.length;let l=e.src.slice(o,s);if(l.includes(a)){let n=l.indexOf(a),o=l.slice(n+a.length);if(/^\s*$/.test(o)){if(l=l.slice(0,n).replace(/^\s+/,``),r)return!0;let a=e.push(`math_block`,`math`,0);return a.block=!0,a.content=l+` `,a.map=[t,t+1],a.markup=i,e.line=t+1,!0}return!1}if(r)return!0;let u=t,d,f=!1;for(u=t;!f&&(u++,!(u>=n||(o=e.bMarks[u]+e.tShift[u],s=e.eMarks[u],oo||e.src.slice(a,a+2)!==`$$`)return!1;a+=2;let s=e.src.slice(a,o),l=[...s.matchAll(/\$\$/g)],u=s.replace(/\s+$/,``).length;if(l.length===1&&l[0].index===u-2)s=s.trim().slice(0,-2),i=!0;else if(l.length>1)return!1;if(r)return!0;let d,f,p;for(f=t;!i&&(f++,!(f>=n||(a=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],a0){let n=e.bMarks[t-1]+e.tShift[t-1],r=e.eMarks[t-1],i=e.src.slice(n,r);if(!/^\s*$/.test(i))return!1}if(r)return!0;let o=[],s=t,l,u=!1;outer:for(;!u&&!(s>=n);s++){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(te+t.length,0)+i+1,l=e.push(`math_inline_bare_block`,`math`,0);return l.block=!0,l.markup=`$$`,l.content=n.slice(1,s),e.pos+=s,!0}function JHt(e,t,n,r){let i=e.tokens;for(let e=i.length-1;e>=0;e--){let a=i[e],o=[];if(a.type!==`html_block`)continue;let s=a.content;for(let e of s.matchAll(r)){if(!e.groups)continue;let r=e.groups.html_before_math,i=e.groups.math,s=e.groups.html_after_math;r&&o.push({...a,type:`html_block`,map:null,content:r}),i&&o.push({...a,type:t,map:null,content:i,markup:n,block:!0,tag:`math`}),s&&o.push({...a,type:`html_block`,map:null,content:s})}o.length>0&&i.splice(e,1,...o)}return!0}function d9(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function YHt(e,t){let n=t?.katex??o7,r=t?.enableBareBlocks,i=t?.enableMathBlockInHtml,a=t?.enableMathInlineInHtml,o=t?.enableFencedBlocks,s=[...t?.delimiters??f9].sort((e,t)=>t.left.length-e.left.length),l=s.some(e=>!e.display&&e.left===`$`),u=s.some(e=>e.display&&e.left===`$$`),d=0;for(let t of s)if(!(t.left===`$`&&!t.display||t.left===`$$`&&t.display)&&!t.display){let n=`math_inline_delim_${d++}`;e.inline.ruler.before(`escape`,n,(e,n)=>VHt(e,n,t.left,t.right,!1))}l&&e.inline.ruler.after(`escape`,`math_inline`,HHt),u&&e.inline.ruler.after(`escape`,`math_inline_block`,KHt),r&&e.inline.ruler.before(`text`,`math_inline_bare_block`,qHt),e.block.ruler.after(`blockquote`,`math_block`,(e,t,n,i)=>{if(r&&GHt(e,t,n,i))return!0;for(let r of s)if(!(r.left===`$$`&&r.display)&&r.display&&UHt(e,t,n,i,r.left,r.right))return!0;return u?WHt(e,t,n,i):!1},{alt:[`paragraph`,`reference`,`blockquote`,`list`]});let f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;i&&e.core.ruler.push(`math_block_in_html_block`,e=>JHt(e,`math_block`,`$$`,f)),a&&e.core.ruler.push(`math_inline_in_html_block`,e=>JHt(e,`math_inline`,`$`,p));let m=e=>{let r=/\\begin\{(align|equation|gather|cd|alignat)\}/gi.test(e);try{return n.renderToString(e,{...t,displayMode:r})}catch(n){return t?.throwOnError&&console.log(n),`${d9(n+``)}`}},h=(e,t)=>{let n=e[t].content,r=n.length>2&&n[0]==="`"&&n[n.length-1]==="`"?n.slice(1,-1):n;return m(r)},g=e=>{try{return`

    ${n.renderToString(e,{...t,displayMode:!0})}

    `}catch(n){return t?.throwOnError&&console.log(n),`

    ${d9(n+``)}

    `}},_=(e,t)=>g(e[t].content)+` +`),p.content=m+e.getLines(t+1,u,e.tShift[t],!0)+(d&&d.trim()?d:``),p.map=[t,e.line],p.markup=i,!0}function c9(e,t,n,r){let i=!1,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+2>o||e.src.slice(a,a+2)!==`$$`)return!1;a+=2;let s=e.src.slice(a,o),l=[...s.matchAll(/\$\$/g)],u=s.replace(/\s+$/,``).length;if(l.length===1&&l[0].index===u-2)s=s.trim().slice(0,-2),i=!0;else if(l.length>1)return!1;if(r)return!0;let d,f,p;for(f=t;!i&&(f++,!(f>=n||(a=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],a0){let n=e.bMarks[t-1]+e.tShift[t-1],r=e.eMarks[t-1],i=e.src.slice(n,r);if(!/^\s*$/.test(i))return!1}if(r)return!0;let o=[],s=t,l,u=!1;outer:for(;!u&&!(s>=n);s++){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(te+t.length,0)+i+1,l=e.push(`math_inline_bare_block`,`math`,0);return l.block=!0,l.markup=`$$`,l.content=n.slice(1,s),e.pos+=s,!0}function $Ht(e,t,n,r){let i=e.tokens;for(let e=i.length-1;e>=0;e--){let a=i[e],o=[];if(a.type!==`html_block`)continue;let s=a.content;for(let e of s.matchAll(r)){if(!e.groups)continue;let r=e.groups.html_before_math,i=e.groups.math,s=e.groups.html_after_math;r&&o.push({...a,type:`html_block`,map:null,content:r}),i&&o.push({...a,type:t,map:null,content:i,markup:n,block:!0,tag:`math`}),s&&o.push({...a,type:`html_block`,map:null,content:s})}o.length>0&&i.splice(e,1,...o)}return!0}function d9(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function eUt(e,t){let n=t?.katex??r7,r=t?.enableBareBlocks,i=t?.enableMathBlockInHtml,a=t?.enableMathInlineInHtml,o=t?.enableFencedBlocks,s=[...t?.delimiters??f9].sort((e,t)=>t.left.length-e.left.length),l=s.some(e=>!e.display&&e.left===`$`),u=s.some(e=>e.display&&e.left===`$$`),d=0;for(let t of s)if(!(t.left===`$`&&!t.display||t.left===`$$`&&t.display)&&!t.display){let n=`math_inline_delim_${d++}`;e.inline.ruler.before(`escape`,n,(e,n)=>YHt(e,n,t.left,t.right,!1))}l&&e.inline.ruler.after(`escape`,`math_inline`,XHt),u&&e.inline.ruler.after(`escape`,`math_inline_block`,l9),r&&e.inline.ruler.before(`text`,`math_inline_bare_block`,u9),e.block.ruler.after(`blockquote`,`math_block`,(e,t,n,i)=>{if(r&&QHt(e,t,n,i))return!0;for(let r of s)if(!(r.left===`$$`&&r.display)&&r.display&&ZHt(e,t,n,i,r.left,r.right))return!0;return u?c9(e,t,n,i):!1},{alt:[`paragraph`,`reference`,`blockquote`,`list`]});let f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;i&&e.core.ruler.push(`math_block_in_html_block`,e=>$Ht(e,`math_block`,`$$`,f)),a&&e.core.ruler.push(`math_inline_in_html_block`,e=>$Ht(e,`math_inline`,`$`,p));let m=e=>{let r=/\\begin\{(align|equation|gather|cd|alignat)\}/gi.test(e);try{return n.renderToString(e,{...t,displayMode:r})}catch(n){return t?.throwOnError&&console.log(n),`${d9(n+``)}`}},h=(e,t)=>{let n=e[t].content,r=n.length>2&&n[0]==="`"&&n[n.length-1]==="`"?n.slice(1,-1):n;return m(r)},g=e=>{try{return`

    ${n.renderToString(e,{...t,displayMode:!0})}

    `}catch(n){return t?.throwOnError&&console.log(n),`

    ${d9(n+``)}

    `}},_=(e,t)=>g(e[t].content)+` `;if(e.renderer.rules.math_inline=h,e.renderer.rules.math_inline_block=_,e.renderer.rules.math_inline_bare_block=_,e.renderer.rules.math_block=_,o){let t=e.renderer.rules.fence;e.renderer.rules.fence=function(e,n,r,i,a){let s=e[n];return s.info.trim().toLowerCase()===`math`&&o?g(s.content)+` -`:t?.call(this,e,n,r,i,a)||``}}}var f9,p9=o((()=>{rBt(),f9=[{left:`$$`,right:`$$`,display:!0},{left:`\\[`,right:`\\]`,display:!0},{left:`$`,right:`$`,display:!1},{left:`\\(`,right:`\\)`,display:!1}]}));async function XHt(e,t=!0){return await x9,y9.render(e,{lineInfo:t})}async function m9(e){await x9;let t={lineInfo:!1},n=y9.parse(e,t),r=[];for(let e=0;e{let n=i[t+1];if(e.type!==`heading_open`||n?.type!==`inline`||e.map===null)return!1;let o=a[e.map[0]],s=e.markup.startsWith(`#`)?o.slice(o.indexOf(e.markup)).replace(/ {0,3}#+ +/,``):n.content.split(` -`)[0].trim(),l=(s.length>64?s.substring(0,64)+`...`:s).normalize(`NFKD`).trim().toLowerCase().replace(/[^\p{Letter}\p{Number}\s\-_]/gu,``).replace(/\s+/g,`-`);return y9.normalizeLink(`#${l}`).substring(1).toLowerCase()===r})??i.find(e=>e.type===`heading_open`&&e.attrGet(`id`)===n))?.map?.[0]}async function QHt(e,t=!1){let n=y9.utils.escapeHtml(e.trim());return iUt(`mermaid`,n,t)}async function $Ht(e){return(await(await BIt()).render(`markedit-mermaid-${v9++}`,e.trim())).svg}async function h9(e,t=!1){let n=await g9(e);return iUt(`katex`,n,t)}async function g9(e){return(await _9()).renderToString(e.trim(),{displayMode:!0,throwOnError:!1})}function eUt(e,t){VIt(t,e)}async function tUt(e){let t=e=>``,n=[``,`
    \n${e}\n
    `,t(ELt(Qn)),t(OLt(Qn)),t(kLt(Qn)),t(jLt()),``];{n.push(t(ALt(Qn)));let{default:r}=await Promise.resolve().then(()=>(RLt(),ILt));n.push(t(r));let i=document.createElement(`template`);if(i.innerHTML=e,i.content.querySelector(`.mermaid`)!==null){let e=` +`:t?.call(this,e,n,r,i,a)||``}}}var f9,tUt=o((()=>{i7(),f9=[{left:`$$`,right:`$$`,display:!0},{left:`\\[`,right:`\\]`,display:!0},{left:`$`,right:`$`,display:!1},{left:`\\(`,right:`\\)`,display:!1}]}));async function p9(e,t=!0){return await cUt,b9.render(e,{lineInfo:t})}async function m9(e){await cUt;let t={lineInfo:!1},n=b9.parse(e,t),r=[];for(let e=0;ee.type===`heading_open`),t,(e,t)=>e.attrGet(t))?.map?.[0]):void 0}async function rUt(e,t=!1){let n=b9.utils.escapeHtml(e.trim());return $(`mermaid`,n,t)}async function iUt(e){return(await(await qIt()).render(`markedit-mermaid-${y9++}`,e.trim())).svg}async function aUt(e,t=!1){let n=await oUt(e);return $(`katex`,n,t)}async function oUt(e){return(await v9()).renderToString(e.trim(),{displayMode:!0,throwOnError:!1})}function h9(e,t){JIt(t,e)}async function g9(e){let t=e=>``,n=[``,`
    \n${e}\n
    `,t(RLt(qn)),t(BLt(qn)),t(j4(qn)),t(HLt()),``];{n.push(t(VLt(qn)));let{default:r}=await Promise.resolve().then(()=>(R4(),qLt));n.push(t(r));let i=document.createElement(`template`);if(i.innerHTML=e,i.content.querySelector(`.mermaid`)!==null){let e=`