gitea_hat/public/assets/js/-.c4df7970.js

490 lines
297 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";var Ln=(be,xt,c)=>new Promise((l,O)=>{var R=tt=>{try{mt(c.next(tt))}catch(bt){O(bt)}},L=tt=>{try{mt(c.throw(tt))}catch(bt){O(bt)}},mt=tt=>tt.done?l(tt.value):Promise.resolve(tt.value).then(R,L);mt((c=c.apply(be,xt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([["-"],{"./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js":function(be,xt,c){c.r(xt),c.d(xt,{conf:function(){return ct},language:function(){return kt}});var l=c("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var O=Object.defineProperty,R=Object.getOwnPropertyDescriptor,L=Object.getOwnPropertyNames,mt=Object.prototype.hasOwnProperty,tt=(Nt,lt,Ft,At)=>{if(lt&&typeof lt=="object"||typeof lt=="function")for(let $t of L(lt))!mt.call(Nt,$t)&&$t!==Ft&&O(Nt,$t,{get:()=>lt[$t],enumerable:!(At=R(lt,$t))||At.enumerable});return Nt},bt=(Nt,lt,Ft)=>(tt(Nt,lt,"default"),Ft&&tt(Ft,lt,"default")),U={};bt(U,l);var ct={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:U.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:U.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:U.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:U.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},kt={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},"./node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js":function(be,xt,c){c.d(xt,{a:function(){return O}});var l=c("./node_modules/dagre-d3-es/src/dagre-js/util.js");function O(R,L){var mt=R.append("foreignObject").attr("width","100000"),tt=mt.append("xhtml:div");tt.attr("xmlns","http://www.w3.org/1999/xhtml");var bt=L.label;switch(typeof bt){case"function":tt.insert(bt);break;case"object":tt.insert(function(){return bt});break;default:tt.html(bt)}l.bg(tt,L.labelStyle),tt.style("display","inline-block"),tt.style("white-space","nowrap");var U=tt.node().getBoundingClientRect();return mt.attr("width",U.width).attr("height",U.height),mt}},"./node_modules/dagre-d3-es/src/dagre-js/util.js":function(be,xt,c){c.d(xt,{$p:function(){return U},O1:function(){return L},WR:function(){return ct},bF:function(){return R},bg:function(){return bt}});var l=c("./node_modules/lodash-es/isPlainObject.js"),O=c("./node_modules/lodash-es/isFunction.js");function R(kt,Nt){return!!kt.children(Nt).length}function L(kt){return tt(kt.v)+":"+tt(kt.w)+":"+tt(kt.name)}var mt=/:/g;function tt(kt){return kt?String(kt).replace(mt,"\\:"):""}function bt(kt,Nt){Nt&&kt.attr("style",Nt)}function U(kt,Nt,lt){Nt&&kt.attr("class",Nt).attr("class",lt+" "+kt.attr("class"))}function ct(kt,Nt){var lt=Nt.graph();if(l.Z(lt)){var Ft=lt.transition;if(O.Z(Ft))return Ft(kt)}return kt}},"./node_modules/dagre-d3-es/src/dagre/index.js":function(be,xt,c){c.d(xt,{bK:function(){return Gr}});var l=c("./node_modules/lodash-es/forEach.js"),O=c("./node_modules/lodash-es/uniqueId.js"),R=c("./node_modules/lodash-es/has.js"),L=c("./node_modules/lodash-es/constant.js"),mt=c("./node_modules/lodash-es/flatten.js"),tt=c("./node_modules/lodash-es/map.js"),bt=c("./node_modules/lodash-es/range.js"),U=c("./node_modules/dagre-d3-es/src/graphlib/index.js");class ct{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,i=n._prev;if(i!==n)return kt(i),i}enqueue(n){var i=this._sentinel;n._prev&&n._next&&kt(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i}toString(){for(var n=[],i=this._sentinel,u=i._prev;u!==i;)n.push(JSON.stringify(u,Nt)),u=u._prev;return"["+n.join(", ")+"]"}}function kt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Nt(e,n){if(e!=="_next"&&e!=="_prev")return n}var lt=L.Z(1);function Ft(e,n){if(e.nodeCount()<=1)return[];var i=ue(e,n||lt),u=At(i.graph,i.buckets,i.zeroIdx);return mt.Z(tt.Z(u,function(d){return e.outEdges(d.v,d.w)}))}function At(e,n,i){for(var u=[],d=n[n.length-1],g=n[0],x;e.nodeCount();){for(;x=g.dequeue();)$t(e,n,i,x);for(;x=d.dequeue();)$t(e,n,i,x);if(e.nodeCount()){for(var z=n.length-2;z>0;--z)if(x=n[z].dequeue(),x){u=u.concat($t(e,n,i,x,!0));break}}}return u}function $t(e,n,i,u,d){var g=d?[]:void 0;return l.Z(e.inEdges(u.v),function(x){var z=e.edge(x),$=e.node(x.v);d&&g.push({v:x.v,w:x.w}),$.out-=z,ce(n,i,$)}),l.Z(e.outEdges(u.v),function(x){var z=e.edge(x),$=x.w,st=e.node($);st.in-=z,ce(n,i,st)}),e.removeNode(u.v),g}function ue(e,n){var i=new U.k,u=0,d=0;l.Z(e.nodes(),function(z){i.setNode(z,{v:z,in:0,out:0})}),l.Z(e.edges(),function(z){var $=i.edge(z.v,z.w)||0,st=n(z),Et=$+st;i.setEdge(z.v,z.w,Et),d=Math.max(d,i.node(z.v).out+=st),u=Math.max(u,i.node(z.w).in+=st)});var g=bt.Z(d+u+3).map(function(){return new ct}),x=u+1;return l.Z(i.nodes(),function(z){ce(g,x,i.node(z))}),{graph:i,buckets:g,zeroIdx:x}}function ce(e,n,i){i.out?i.in?e[i.out-i.in+n].enqueue(i):e[e.length-1].enqueue(i):e[0].enqueue(i)}function Le(e){var n=e.graph().acyclicer==="greedy"?Ft(e,i(e)):Ze(e);l.Z(n,function(u){var d=e.edge(u);e.removeEdge(u),d.forwardName=u.name,d.reversed=!0,e.setEdge(u.w,u.v,d,O.Z("rev"))});function i(u){return function(d){return u.edge(d).weight}}}function Ze(e){var n=[],i={},u={};function d(g){R.Z(u,g)||(u[g]=!0,i[g]=!0,l.Z(e.outEdges(g),function(x){R.Z(i,x.w)?n.push(x):d(x.w)}),delete i[g])}return l.Z(e.nodes(),d),n}function Vt(e){l.Z(e.edges(),function(n){var i=e.edge(n);if(i.reversed){e.removeEdge(n);var u=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(n.w,n.v,i,u)}})}var ht=c("./node_modules/lodash-es/merge.js"),re=c("./node_modules/lodash-es/pick.js"),ze=c("./node_modules/lodash-es/defaults.js"),Bt=c("./node_modules/lodash-es/isSymbol.js");function me(e,n,i){for(var u=-1,d=e.length;++u<d;){var g=e[u],x=n(g);if(x!=null&&(z===void 0?x===x&&!(0,Bt.Z)(x):i(x,z)))var z=x,$=g}return $}var Rt=me;function Te(e,n){return e>n}var he=Te,Ae=c("./node_modules/lodash-es/identity.js");function jt(e){return e&&e.length?Rt(e,Ae.Z,he):void 0}var ie=jt;function et(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var m=et,K=c("./node_modules/lodash-es/_baseAssignValue.js"),Ct=c("./node_modules/lodash-es/_baseForOwn.js"),ut=c("./node_modules/lodash-es/_baseIteratee.js");function Ot(e,n){var i={};return n=(0,ut.Z)(n,3),(0,Ct.Z)(e,function(u,d,g){(0,K.Z)(i,d,n(u,d,g))}),i}var ae=Ot,Xt=c("./node_modules/lodash-es/isUndefined.js");function se(e,n){return e<n}var We=se;function De(e){return e&&e.length?Rt(e,Ae.Z,We):void 0}var je=De,Gt=c("./node_modules/lodash-es/_root.js"),Pt=function(){return Gt.Z.Date.now()},tn=Pt;function nn(e,n,i,u){var d;do d=O.Z(u);while(e.hasNode(d));return i.dummy=n,e.setNode(d,i),d}function fe(e){var n=new U.k().setGraph(e.graph());return l.Z(e.nodes(),function(i){n.setNode(i,e.node(i))}),l.Z(e.edges(),function(i){var u=n.edge(i.v,i.w)||{weight:0,minlen:1},d=e.edge(i);n.setEdge(i.v,i.w,{weight:u.weight+d.weight,minlen:Math.max(u.minlen,d.minlen)})}),n}function X(e){var n=new U.k({multigraph:e.isMultigraph()}).setGraph(e.graph());return l.Z(e.nodes(),function(i){e.children(i).length||n.setNode(i,e.node(i))}),l.Z(e.edges(),function(i){n.setEdge(i,e.edge(i))}),n}function yt(e){var n=_.map(e.nodes(),function(i){var u={};return _.forEach(e.outEdges(i),function(d){u[d.w]=(u[d.w]||0)+e.edge(d).weight}),u});return _.zipObject(e.nodes(),n)}function v(e){var n=_.map(e.nodes(),function(i){var u={};return _.forEach(e.inEdges(i),function(d){u[d.v]=(u[d.v]||0)+e.edge(d).weight}),u});return _.zipObject(e.nodes(),n)}function rt(e,n){var i=e.x,u=e.y,d=n.x-i,g=n.y-u,x=e.width/2,z=e.height/2;if(!d&&!g)throw new Error("Not possible to find intersection inside of the rectangle");var $,st;return Math.abs(g)*x>Math.abs(d)*z?(g<0&&(z=-z),$=z*d/g,st=z):(d<0&&(x=-x),$=x,st=x*g/d),{x:i+$,y:u+st}}function Tt(e){var n=tt.Z(bt.Z(sn(e)+1),function(){return[]});return l.Z(e.nodes(),function(i){var u=e.node(i),d=u.rank;Xt.Z(d)||(n[d][u.order]=i)}),n}function zt(e){var n=je(tt.Z(e.nodes(),function(i){return e.node(i).rank}));l.Z(e.nodes(),function(i){var u=e.node(i);R.Z(u,"rank")&&(u.rank-=n)})}function Ut(e){var n=je(tt.Z(e.nodes(),function(g){return e.node(g).rank})),i=[];l.Z(e.nodes(),function(g){var x=e.node(g).rank-n;i[x]||(i[x]=[]),i[x].push(g)});var u=0,d=e.graph().nodeRankFactor;l.Z(i,function(g,x){Xt.Z(g)&&x%d!==0?--u:u&&l.Z(g,function(z){e.node(z).rank+=u})})}function xe(e,n,i,u){var d={width:0,height:0};return arguments.length>=4&&(d.rank=i,d.order=u),nn(e,"border",d,n)}function sn(e){return ie(tt.Z(e.nodes(),function(n){var i=e.node(n).rank;if(!Xt.Z(i))return i}))}function Ke(e,n){var i={lhs:[],rhs:[]};return l.Z(e,function(u){n(u)?i.lhs.push(u):i.rhs.push(u)}),i}function Ye(e,n){var i=tn();try{return n()}finally{console.log(e+" time: "+(tn()-i)+"ms")}}function Ne(e,n){return n()}function y(e){function n(i){var u=e.children(i),d=e.node(i);if(u.length&&l.Z(u,n),R.Z(d,"minRank")){d.borderLeft=[],d.borderRight=[];for(var g=d.minRank,x=d.maxRank+1;g<x;++g)wt(e,"borderLeft","_bl",i,d,g),wt(e,"borderRight","_br",i,d,g)}}l.Z(e.children(),n)}function wt(e,n,i,u,d,g){var x={width:0,height:0,rank:g,borderType:n},z=d[n][g-1],$=nn(e,"border",x,i);d[n][g]=$,e.setParent($,u),z&&e.setEdge(z,$,{weight:1})}function b(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&gt(e)}function Y(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Qt(e),(n==="lr"||n==="rl")&&(Jt(e),gt(e))}function gt(e){l.Z(e.nodes(),function(n){Mt(e.node(n))}),l.Z(e.edges(),function(n){Mt(e.edge(n))})}function Mt(e){var n=e.width;e.width=e.height,e.height=n}function Qt(e){l.Z(e.nodes(),function(n){pe(e.node(n))}),l.Z(e.edges(),function(n){var i=e.edge(n);l.Z(i.points,pe),R.Z(i,"y")&&pe(i)})}function pe(e){e.y=-e.y}function Jt(e){l.Z(e.nodes(),function(n){ge(e.node(n))}),l.Z(e.edges(),function(n){var i=e.edge(n);l.Z(i.points,ge),R.Z(i,"x")&&ge(i)})}function ge(e){var n=e.x;e.x=e.y,e.y=n}function oe(e){e.graph().dummyChains=[],l.Z(e.edges(),function(n){ke(e,n)})}function ke(e,n){var i=n.v,u=e.node(i).rank,d=n.w,g=e.node(d).rank,x=n.name,z=e.edge(n),$=z.labelRank;if(g!==u+1){e.removeEdge(n);var st,Et,qt;for(qt=0,++u;u<g;++qt,++u)z.points=[],Et={width:0,height:0,edgeLabel:z,edgeObj:n,rank:u},st=nn(e,"edge",Et,"_d"),u===$&&(Et.width=z.width,Et.height=z.height,Et.dummy="edge-label",Et.labelpos=z.labelpos),e.setEdge(i,st,{weight:z.weight},x),qt===0&&e.graph().dummyChains.push(st),i=st;e.setEdge(i,d,{weight:z.weight},x)}}function we(e){l.Z(e.graph().dummyChains,function(n){var i=e.node(n),u=i.edgeLabel,d;for(e.setEdge(i.edgeObj,u);i.dummy;)d=e.successors(n)[0],e.removeNode(n),u.points.push({x:i.x,y:i.y}),i.dummy==="edge-label"&&(u.x=i.x,u.y=i.y,u.width=i.width,u.height=i.height),n=d,i=e.node(n)})}function Pe(e,n){return e&&e.length?Rt(e,(0,ut.Z)(n,2),We):void 0}var Be=Pe;function Zt(e){var n={};function i(u){var d=e.node(u);if(R.Z(n,u))return d.rank;n[u]=!0;var g=je(tt.Z(e.outEdges(u),function(x){return i(x.w)-e.edge(x).minlen}));return(g===Number.POSITIVE_INFINITY||g===void 0||g===null)&&(g=0),d.rank=g}l.Z(e.sources(),i)}function rn(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function w(e){var n=new U.k({directed:!1}),i=e.nodes()[0],u=e.nodeCount();n.setNode(i,{});for(var d,g;r(n,e)<u;)d=k(n,e),g=n.hasNode(d.v)?rn(e,d):-rn(e,d),Z(n,e,g);return n}function r(e,n){function i(u){l.Z(n.nodeEdges(u),function(d){var g=d.v,x=u===g?d.w:g;!e.hasNode(x)&&!rn(n,d)&&(e.setNode(x,{}),e.setEdge(u,x,{}),i(x))})}return l.Z(e.nodes(),i),e.nodeCount()}function k(e,n){return Be(n.edges(),function(i){if(e.hasNode(i.v)!==e.hasNode(i.w))return rn(n,i)})}function Z(e,n,i){l.Z(e.nodes(),function(u){n.node(u).rank+=i})}var C=c("./node_modules/lodash-es/isArrayLike.js"),F=c("./node_modules/lodash-es/keys.js");function T(e){return function(n,i,u){var d=Object(n);if(!(0,C.Z)(n)){var g=(0,ut.Z)(i,3);n=(0,F.Z)(n),i=function(z){return g(d[z],z,d)}}var x=e(n,i,u);return x>-1?d[g?n[x]:x]:void 0}}var G=T,S=c("./node_modules/lodash-es/_baseFindIndex.js"),M=c("./node_modules/lodash-es/toFinite.js");function W(e){var n=(0,M.Z)(e),i=n%1;return n===n?i?n-i:n:0}var nt=W,dt=Math.max;function St(e,n,i){var u=e==null?0:e.length;if(!u)return-1;var d=i==null?0:nt(i);return d<0&&(d=dt(u+d,0)),(0,S.Z)(e,(0,ut.Z)(n,3),d)}var ne=St,le=G(ne),te=le,Ht=c("./node_modules/lodash-es/filter.js"),It=L.Z(1);function _t(e,n,i,u){return Q(e,String(n),i||It,u||function(d){return e.outEdges(d)})}function Q(e,n,i,u){var d={},g=new PriorityQueue,x,z,$=function(st){var Et=st.v!==x?st.v:st.w,qt=d[Et],Oe=i(st),He=z.distance+Oe;if(Oe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+st+" Weight: "+Oe);He<qt.distance&&(qt.distance=He,qt.predecessor=x,g.decrease(Et,He))};for(e.nodes().forEach(function(st){var Et=st===n?0:Number.POSITIVE_INFINITY;d[st]={distance:Et},g.add(st,Et)});g.size()>0&&(x=g.removeMin(),z=d[x],z.distance!==Number.POSITIVE_INFINITY);)u(x).forEach($);return d}function it(e,n,i){return _.transform(e.nodes(),function(u,d){u[d]=dijkstra(e,d,n,i)},{})}var Dt=L.Z(1);function ft(e,n,i){return at(e,n||Dt,i||function(u){return e.outEdges(u)})}function at(e,n,i){var u={},d=e.nodes();return d.forEach(function(g){u[g]={},u[g][g]={distance:0},d.forEach(function(x){g!==x&&(u[g][x]={distance:Number.POSITIVE_INFINITY})}),i(g).forEach(function(x){var z=x.v===g?x.w:x.v,$=n(x);u[g][z]={distance:$,predecessor:g}})}),d.forEach(function(g){var x=u[g];d.forEach(function(z){var $=u[z];d.forEach(function(st){var Et=$[g],qt=x[st],Oe=$[st],He=Et.distance+qt.distance;He<Oe.distance&&(Oe.distance=He,Oe.predecessor=qt.predecessor)})})}),u}var I=c("./node_modules/lodash-es/_baseKeys.js"),Wt=c("./node_modules/lodash-es/_getTag.js"),H=c("./node_modules/lodash-es/_baseGetTag.js"),Fe=c("./node_modules/lodash-es/isArray.js"),fn=c("./node_modules/lodash-es/isObjectLike.js"),bn="[object String]";function zn(e){return typeof e=="string"||!(0,Fe.Z)(e)&&(0,fn.Z)(e)&&(0,H.Z)(e)==bn}var $e=zn,Ue=c("./node_modules/lodash-es/_baseProperty.js"),kn=(0,Ue.Z)("length"),an=kn,Se="\\ud800-\\udfff",Qn="\\u0300-\\u036f",mn="\\ufe20-\\ufe2f",vt="\\u20d0-\\u20ff",ye=Qn+mn+vt,Ge="\\ufe0e\\ufe0f",An="\\u200d",Cn=RegExp("["+An+Se+ye+Ge+"]");function cn(e){return Cn.test(e)}var en=cn,Nn="\\ud800-\\udfff",Bn="\\u0300-\\u036f",In="\\ufe20-\\ufe2f",Un="\\u20d0-\\u20ff",rr=Bn+In+Un,wr="\\ufe0e\\ufe0f",Sr="["+Nn+"]",vr="["+rr+"]",gr="\\ud83c[\\udffb-\\udfff]",Jn="(?:"+vr+"|"+gr+")",qn="[^"+Nn+"]",Zr="(?:\\ud83c[\\udde6-\\uddff]){2}",jr="[\\ud800-\\udbff][\\udc00-\\udfff]",Wr="\\u200d",Nr=Jn+"?",Pr="["+wr+"]?",Rr="(?:"+Wr+"(?:"+[qn,Zr,jr].join("|")+")"+Pr+Nr+")*",Kr=Pr+Nr+Rr,yn="(?:"+[qn+vr+"?",vr,Zr,jr,Sr].join("|")+")",Kn=RegExp(gr+"(?="+gr+")|"+yn+Kr,"g");function Xe(e){for(var n=Kn.lastIndex=0;Kn.test(e);)++n;return n}var Rn=Xe;function Mn(e){return en(e)?Rn(e):an(e)}var Qe=Mn,Je="[object Map]",qe="[object Set]";function Er(e){if(e==null)return 0;if((0,C.Z)(e))return $e(e)?Qe(e):e.length;var n=(0,Wt.Z)(e);return n==Je||n==qe?e.size:(0,I.Z)(e).length}var on=Er;Yr.CycleException=$n;function Yr(e){var n={},i={},u=[];function d(g){if(R.Z(i,g))throw new $n;R.Z(n,g)||(i[g]=!0,n[g]=!0,l.Z(e.predecessors(g),d),delete i[g],u.push(g))}if(l.Z(e.sinks(),d),on(n)!==e.nodeCount())throw new $n;return u}function $n(){}$n.prototype=new Error;function lr(e){try{topsort(e)}catch(n){if(n instanceof CycleException)return!1;throw n}return!0}function ir(e,n,i){Fe.Z(n)||(n=[n]);var u=(e.isDirected()?e.successors:e.neighbors).bind(e),d=[],g={};return l.Z(n,function(x){if(!e.hasNode(x))throw new Error("Graph does not have node: "+x);sr(e,x,i==="post",g,u,d)}),d}function sr(e,n,i,u,d,g){R.Z(u,n)||(u[n]=!0,i||g.push(n),l.Z(d(n),function(x){sr(e,x,i,u,d,g)}),i&&g.push(n))}function ur(e,n){return ir(e,n,"post")}function Hn(e,n){return ir(e,n,"pre")}var ar=c("./node_modules/dagre-d3-es/src/graphlib/graph.js");function cr(e,n){var i=new Graph,u={},d=new PriorityQueue,g;function x($){var st=$.v===g?$.w:$.v,Et=d.priority(st);if(Et!==void 0){var qt=n($);qt<Et&&(u[st]=g,d.decrease(st,qt))}}if(e.nodeCount()===0)return i;_.each(e.nodes(),function($){d.add($,Number.POSITIVE_INFINITY),i.setNode($)}),d.decrease(e.nodes()[0],0);for(var z=!1;d.size()>0;){if(g=d.removeMin(),_.has(u,g))i.setEdge(g,u[g]);else{if(z)throw new Error("Input graph is not connected: "+e);z=!0}e.nodeEdges(g).forEach(x)}return i}Vn.initLowLimValues=Xn,Vn.initCutValues=dr,Vn.calcCutValue=tr,Vn.leaveEdge=Dr,Vn.enterEdge=or,Vn.exchangeEdges=de;function Vn(e){e=fe(e),Zt(e);var n=w(e);Xn(n),dr(n,e);for(var i,u;i=Dr(n);)u=or(n,e,i),de(n,e,i,u)}function dr(e,n){var i=ur(e,e.nodes());i=i.slice(0,i.length-1),l.Z(i,function(u){Mr(e,n,u)})}function Mr(e,n,i){var u=e.node(i),d=u.parent;e.edge(i,d).cutvalue=tr(e,n,i)}function tr(e,n,i){var u=e.node(i),d=u.parent,g=!0,x=n.edge(i,d),z=0;return x||(g=!1,x=n.edge(d,i)),z=x.weight,l.Z(n.nodeEdges(i),function($){var st=$.v===i,Et=st?$.w:$.v;if(Et!==d){var qt=st===g,Oe=n.edge($).weight;if(z+=qt?Oe:-Oe,Ie(e,i,Et)){var He=e.edge(i,Et).cutvalue;z+=qt?-He:He}}}),z}function Xn(e,n){arguments.length<2&&(n=e.nodes()[0]),Vr(e,{},1,n)}function Vr(e,n,i,u,d){var g=i,x=e.node(u);return n[u]=!0,l.Z(e.neighbors(u),function(z){R.Z(n,z)||(i=Vr(e,n,i,z,u))}),x.low=g,x.lim=i++,d?x.parent=d:delete x.parent,i}function Dr(e){return te(e.edges(),function(n){return e.edge(n).cutvalue<0})}function or(e,n,i){var u=i.v,d=i.w;n.hasEdge(u,d)||(u=i.w,d=i.v);var g=e.node(u),x=e.node(d),z=g,$=!1;g.lim>x.lim&&(z=x,$=!0);var st=Ht.Z(n.edges(),function(Et){return $===Kt(e,e.node(Et.v),z)&&$!==Kt(e,e.node(Et.w),z)});return Be(st,function(Et){return rn(n,Et)})}function de(e,n,i,u){var d=i.v,g=i.w;e.removeEdge(d,g),e.setEdge(u.v,u.w,{}),Xn(e),dr(e,n),ve(e,n)}function ve(e,n){var i=te(e.nodes(),function(d){return!n.node(d).parent}),u=Hn(e,i);u=u.slice(1),l.Z(u,function(d){var g=e.node(d).parent,x=n.edge(d,g),z=!1;x||(x=n.edge(g,d),z=!0),n.node(d).rank=n.node(g).rank+(z?x.minlen:-x.minlen)})}function Ie(e,n,i){return e.hasEdge(n,i)}function Kt(e,n,i){return i.low<=n.lim&&n.lim<=i.lim}function _n(e){switch(e.graph().ranker){case"network-simplex":D(e);break;case"tight-tree":kr(e);break;case"longest-path":E(e);break;default:D(e)}}var E=Zt;function kr(e){Zt(e),w(e)}function D(e){Vn(e)}var Tn=c("./node_modules/lodash-es/values.js"),Cr=c("./node_modules/lodash-es/reduce.js");function Xr(e){var n=nn(e,"root",{},"_root"),i=Qr(e),u=ie(Tn.Z(i))-1,d=2*u+1;e.graph().nestingRoot=n,l.Z(e.edges(),function(x){e.edge(x).minlen*=d});var g=On(e)+1;l.Z(e.children(),function(x){Fr(e,n,d,g,u,i,x)}),e.graph().nodeRankFactor=d}function Fr(e,n,i,u,d,g,x){var z=e.children(x);if(!z.length){x!==n&&e.setEdge(n,x,{weight:0,minlen:i});return}var $=xe(e,"_bt"),st=xe(e,"_bb"),Et=e.node(x);e.setParent($,x),Et.borderTop=$,e.setParent(st,x),Et.borderBottom=st,l.Z(z,function(qt){Fr(e,n,i,u,d,g,qt);var Oe=e.node(qt),He=Oe.borderTop?Oe.borderTop:qt,hn=Oe.borderBottom?Oe.borderBottom:qt,Yn=Oe.borderTop?u:2*u,$r=He!==hn?1:d-g[x]+1;e.setEdge($,He,{weight:Yn,minlen:$r,nestingEdge:!0}),e.setEdge(hn,st,{weight:Yn,minlen:$r,nestingEdge:!0})}),e.parent(x)||e.setEdge(n,$,{weight:0,minlen:d+g[x]})}function Qr(e){var n={};function i(u,d){var g=e.children(u);g&&g.length&&l.Z(g,function(x){i(x,d+1)}),n[u]=d}return l.Z(e.children(),function(u){i(u,1)}),n}function On(e){return Cr.Z(e.edges(),function(n,i){return n+e.edge(i).weight},0)}function pr(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,l.Z(e.edges(),function(i){var u=e.edge(i);u.nestingEdge&&e.removeEdge(i)})}var zr=c("./node_modules/lodash-es/_baseClone.js"),t=1,o=4;function s(e){return(0,zr.Z)(e,t|o)}var a=s;function f(e,n,i){var u={},d;l.Z(i,function(g){for(var x=e.parent(g),z,$;x;){if(z=e.parent(x),z?($=u[z],u[z]=x):($=d,d=x),$&&$!==x){n.setEdge($,x);return}x=z}})}function h(e,n,i){var u=p(e),d=new U.k({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(function(g){return e.node(g)});return l.Z(e.nodes(),function(g){var x=e.node(g),z=e.parent(g);(x.rank===n||x.minRank<=n&&n<=x.maxRank)&&(d.setNode(g),d.setParent(g,z||u),l.Z(e[i](g),function($){var st=$.v===g?$.w:$.v,Et=d.edge(st,g),qt=Xt.Z(Et)?0:Et.weight;d.setEdge(st,g,{weight:e.edge($).weight+qt})}),R.Z(x,"minRank")&&d.setNode(g,{borderLeft:x.borderLeft[n],borderRight:x.borderRight[n]}))}),d}function p(e){for(var n;e.hasNode(n=O.Z("_root")););return n}var A=c("./node_modules/lodash-es/_assignValue.js");function q(e,n,i){for(var u=-1,d=e.length,g=n.length,x={};++u<d;){var z=u<g?n[u]:void 0;i(x,e[u],z)}return x}var V=q;function P(e,n){return V(e||[],n||[],A.Z)}var ot=P,J=c("./node_modules/lodash-es/_baseFlatten.js"),N=c("./node_modules/lodash-es/_arrayMap.js"),ln=c("./node_modules/lodash-es/_baseGet.js"),un=c("./node_modules/lodash-es/_baseMap.js");function xn(e,n){var i=e.length;for(e.sort(n);i--;)e[i]=e[i].value;return e}var ee=xn,wn=c("./node_modules/lodash-es/_baseUnary.js");function _e(e,n){if(e!==n){var i=e!==void 0,u=e===null,d=e===e,g=(0,Bt.Z)(e),x=n!==void 0,z=n===null,$=n===n,st=(0,Bt.Z)(n);if(!z&&!st&&!g&&e>n||g&&x&&$&&!z&&!st||u&&x&&$||!i&&$||!d)return 1;if(!u&&!g&&!st&&e<n||st&&i&&d&&!u&&!g||z&&i&&d||!x&&d||!$)return-1}return 0}var vn=_e;function En(e,n,i){for(var u=-1,d=e.criteria,g=n.criteria,x=d.length,z=i.length;++u<x;){var $=vn(d[u],g[u]);if($){if(u>=z)return $;var st=i[u];return $*(st=="desc"?-1:1)}}return e.index-n.index}var Lt=En;function gn(e,n,i){n.length?n=(0,N.Z)(n,function(g){return(0,Fe.Z)(g)?function(x){return(0,ln.Z)(x,g.length===1?g[0]:g)}:g}):n=[Ae.Z];var u=-1;n=(0,N.Z)(n,(0,wn.Z)(ut.Z));var d=(0,un.Z)(e,function(g,x,z){var $=(0,N.Z)(n,function(st){return st(g)});return{criteria:$,index:++u,value:g}});return ee(d,function(g,x){return Lt(g,x,i)})}var Zn=gn,jn=c("./node_modules/lodash-es/_baseRest.js"),Gn=c("./node_modules/lodash-es/_isIterateeCall.js"),Dn=(0,jn.Z)(function(e,n){if(e==null)return[];var i=n.length;return i>1&&(0,Gn.Z)(e,n[0],n[1])?n=[]:i>2&&(0,Gn.Z)(n[0],n[1],n[2])&&(n=[n[0]]),Zn(e,(0,J.Z)(n,1),[])}),Me=Dn;function Ee(e,n){for(var i=0,u=1;u<n.length;++u)i+=Ve(e,n[u-1],n[u]);return i}function Ve(e,n,i){for(var u=ot(i,tt.Z(i,function(st,Et){return Et})),d=mt.Z(tt.Z(n,function(st){return Me(tt.Z(e.outEdges(st),function(Et){return{pos:u[Et.w],weight:e.edge(Et).weight}}),"pos")})),g=1;g<i.length;)g<<=1;var x=2*g-1;g-=1;var z=tt.Z(new Array(x),function(){return 0}),$=0;return l.Z(d.forEach(function(st){var Et=st.pos+g;z[Et]+=st.weight;for(var qt=0;Et>0;)Et%2&&(qt+=z[Et+1]),Et=Et-1>>1,z[Et]+=st.weight;$+=st.weight*qt})),$}function Re(e){var n={},i=Ht.Z(e.nodes(),function(z){return!e.children(z).length}),u=ie(tt.Z(i,function(z){return e.node(z).rank})),d=tt.Z(bt.Z(u+1),function(){return[]});function g(z){if(!R.Z(n,z)){n[z]=!0;var $=e.node(z);d[$.rank].push(z),l.Z(e.successors(z),g)}}var x=Me(i,function(z){return e.node(z).rank});return l.Z(x,g),d}function Sn(e,n){return tt.Z(n,function(i){var u=e.inEdges(i);if(u.length){var d=Cr.Z(u,function(g,x){var z=e.edge(x),$=e.node(x.v);return{sum:g.sum+z.weight*$.order,weight:g.weight+z.weight}},{sum:0,weight:0});return{v:i,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:i}})}function Pn(e,n){var i={};l.Z(e,function(d,g){var x=i[d.v]={indegree:0,in:[],out:[],vs:[d.v],i:g};Xt.Z(d.barycenter)||(x.barycenter=d.barycenter,x.weight=d.weight)}),l.Z(n.edges(),function(d){var g=i[d.v],x=i[d.w];!Xt.Z(g)&&!Xt.Z(x)&&(x.indegree++,g.out.push(i[d.w]))});var u=Ht.Z(i,function(d){return!d.indegree});return hr(u)}function hr(e){var n=[];function i(g){return function(x){x.merged||(Xt.Z(x.barycenter)||Xt.Z(g.barycenter)||x.barycenter>=g.barycenter)&&mr(g,x)}}function u(g){return function(x){x.in.push(g),--x.indegree===0&&e.push(x)}}for(;e.length;){var d=e.pop();n.push(d),l.Z(d.in.reverse(),i(d)),l.Z(d.out,u(d))}return tt.Z(Ht.Z(n,function(g){return!g.merged}),function(g){return re.Z(g,["vs","i","barycenter","weight"])})}function mr(e,n){var i=0,u=0;e.weight&&(i+=e.barycenter*e.weight,u+=e.weight),n.weight&&(i+=n.barycenter*n.weight,u+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=i/u,e.weight=u,e.i=Math.min(n.i,e.i),n.merged=!0}function B(e,n){var i=Ke(e,function(Et){return R.Z(Et,"barycenter")}),u=i.lhs,d=Me(i.rhs,function(Et){return-Et.i}),g=[],x=0,z=0,$=0;u.sort(br(!!n)),$=er(g,d,$),l.Z(u,function(Et){$+=Et.vs.length,g.push(Et.vs),x+=Et.barycenter*Et.weight,z+=Et.weight,$=er(g,d,$)});var st={vs:mt.Z(g)};return z&&(st.barycenter=x/z,st.weight=z),st}function er(e,n,i){for(var u;n.length&&(u=m(n)).i<=i;)n.pop(),e.push(u.vs),i++;return i}function br(e){return function(n,i){return n.barycenter<i.barycenter?-1:n.barycenter>i.barycenter?1:e?i.i-n.i:n.i-i.i}}function j(e,n,i,u){var d=e.children(n),g=e.node(n),x=g?g.borderLeft:void 0,z=g?g.borderRight:void 0,$={};x&&(d=Ht.Z(d,function(hn){return hn!==x&&hn!==z}));var st=Sn(e,d);l.Z(st,function(hn){if(e.children(hn.v).length){var Yn=j(e,hn.v,i,u);$[hn.v]=Yn,R.Z(Yn,"barycenter")&&Lr(hn,Yn)}});var Et=Pn(st,i);nr(Et,$);var qt=B(Et,u);if(x&&(qt.vs=mt.Z([x,qt.vs,z]),e.predecessors(x).length)){var Oe=e.node(e.predecessors(x)[0]),He=e.node(e.predecessors(z)[0]);R.Z(qt,"barycenter")||(qt.barycenter=0,qt.weight=0),qt.barycenter=(qt.barycenter*qt.weight+Oe.order+He.order)/(qt.weight+2),qt.weight+=2}return qt}function nr(e,n){l.Z(e,function(i){i.vs=mt.Z(i.vs.map(function(u){return n[u]?n[u].vs:u}))})}function Lr(e,n){Xt.Z(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Jr(e){var n=sn(e),i=Br(e,bt.Z(1,n+1),"inEdges"),u=Br(e,bt.Z(n-1,-1,-1),"outEdges"),d=Re(e);Ir(e,d);for(var g=Number.POSITIVE_INFINITY,x,z=0,$=0;$<4;++z,++$){Wn(z%2?i:u,z%4>=2),d=Tt(e);var st=Ee(e,d);st<g&&($=0,x=a(d),g=st)}Ir(e,x)}function Br(e,n,i){return tt.Z(n,function(u){return h(e,u,i)})}function Wn(e,n){var i=new U.k;l.Z(e,function(u){var d=u.graph().root,g=j(u,d,i,n);l.Z(g.vs,function(x,z){u.node(x).order=z}),f(u,i,g.vs)})}function Ir(e,n){l.Z(n,function(i){l.Z(i,function(u,d){e.node(u).order=d})})}function yr(e){var n=Tr(e);l.Z(e.graph().dummyChains,function(i){for(var u=e.node(i),d=u.edgeObj,g=Or(e,n,d.v,d.w),x=g.path,z=g.lca,$=0,st=x[$],Et=!0;i!==d.w;){if(u=e.node(i),Et){for(;(st=x[$])!==z&&e.node(st).maxRank<u.rank;)$++;st===z&&(Et=!1)}if(!Et){for(;$<x.length-1&&e.node(st=x[$+1]).minRank<=u.rank;)$++;st=x[$]}e.setParent(i,st),i=e.successors(i)[0]}})}function Or(e,n,i,u){var d=[],g=[],x=Math.min(n[i].low,n[u].low),z=Math.max(n[i].lim,n[u].lim),$,st;$=i;do $=e.parent($),d.push($);while($&&(n[$].low>x||z>n[$].lim));for(st=$,$=u;($=e.parent($))!==st;)g.push($);return{path:d.concat(g.reverse()),lca:st}}function Tr(e){var n={},i=0;function u(d){var g=i;l.Z(e.children(d),u),n[d]={low:g,lim:i++}}return l.Z(e.children(),u),n}var Hr=c("./node_modules/lodash-es/_castFunction.js");function ai(e,n){return e&&(0,Ct.Z)(e,(0,Hr.Z)(n))}var oi=ai,ti=c("./node_modules/lodash-es/_baseFor.js"),ei=c("./node_modules/lodash-es/keysIn.js");function ni(e,n){return e==null?e:(0,ti.Z)(e,(0,Hr.Z)(n),ei.Z)}var li=ni;function ri(e,n){var i={};function u(d,g){var x=0,z=0,$=d.length,st=m(g);return l.Z(g,function(Et,qt){var Oe=ui(e,Et),He=Oe?e.node(Oe).order:$;(Oe||Et===st)&&(l.Z(g.slice(z,qt+1),function(hn){l.Z(e.predecessors(hn),function(Yn){var $r=e.node(Yn),mi=$r.order;(mi<x||He<mi)&&!($r.dummy&&e.node(hn).dummy)&&si(i,Yn,hn)})}),z=qt+1,x=He)}),g}return Cr.Z(n,u),i}function ii(e,n){var i={};function u(g,x,z,$,st){var Et;l.Z(bt.Z(x,z),function(qt){Et=g[qt],e.node(Et).dummy&&l.Z(e.predecessors(Et),function(Oe){var He=e.node(Oe);He.dummy&&(He.order<$||He.order>st)&&si(i,Oe,Et)})})}function d(g,x){var z=-1,$,st=0;return l.Z(x,function(Et,qt){if(e.node(Et).dummy==="border"){var Oe=e.predecessors(Et);Oe.length&&($=e.node(Oe[0]).order,u(x,st,qt,z,$),st=qt,z=$)}u(x,st,x.length,$,g.length)}),x}return Cr.Z(n,d),i}function ui(e,n){if(e.node(n).dummy)return te(e.predecessors(n),function(i){return e.node(i).dummy})}function si(e,n,i){if(n>i){var u=n;n=i,i=u}var d=e[n];d||(e[n]=d={}),d[i]=!0}function ci(e,n,i){if(n>i){var u=n;n=i,i=u}return R.Z(e[n],i)}function di(e,n,i,u){var d={},g={},x={};return l.Z(n,function(z){l.Z(z,function($,st){d[$]=$,g[$]=$,x[$]=st})}),l.Z(n,function(z){var $=-1;l.Z(z,function(st){var Et=u(st);if(Et.length){Et=Me(Et,function(Yn){return x[Yn]});for(var qt=(Et.length-1)/2,Oe=Math.floor(qt),He=Math.ceil(qt);Oe<=He;++Oe){var hn=Et[Oe];g[st]===st&&$<x[hn]&&!ci(i,st,hn)&&(g[hn]=st,g[st]=d[st]=d[hn],$=x[hn])}}})}),{root:d,align:g}}function hi(e,n,i,u,d){var g={},x=pt(e,n,i,d),z=d?"borderLeft":"borderRight";function $(qt,Oe){for(var He=x.nodes(),hn=He.pop(),Yn={};hn;)Yn[hn]?qt(hn):(Yn[hn]=!0,He.push(hn),He=He.concat(Oe(hn))),hn=He.pop()}function st(qt){g[qt]=x.inEdges(qt).reduce(function(Oe,He){return Math.max(Oe,g[He.v]+x.edge(He))},0)}function Et(qt){var Oe=x.outEdges(qt).reduce(function(hn,Yn){return Math.min(hn,g[Yn.w]-x.edge(Yn))},Number.POSITIVE_INFINITY),He=e.node(qt);Oe!==Number.POSITIVE_INFINITY&&He.borderType!==z&&(g[qt]=Math.max(g[qt],Oe))}return $(st,x.predecessors.bind(x)),$(Et,x.successors.bind(x)),l.Z(u,function(qt){g[qt]=g[i[qt]]}),g}function pt(e,n,i,u){var d=new U.k,g=e.graph(),x=fr(g.nodesep,g.edgesep,u);return l.Z(n,function(z){var $;l.Z(z,function(st){var Et=i[st];if(d.setNode(Et),$){var qt=i[$],Oe=d.edge(qt,Et);d.setEdge(qt,Et,Math.max(x(e,st,$),Oe||0))}$=st})}),d}function Yt(e,n){return Be(Tn.Z(n),function(i){var u=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;return li(i,function(g,x){var z=Ar(e,x)/2;u=Math.max(g+z,u),d=Math.min(g-z,d)}),u-d})}function Ce(e,n){var i=Tn.Z(n),u=je(i),d=ie(i);l.Z(["u","d"],function(g){l.Z(["l","r"],function(x){var z=g+x,$=e[z],st;if($!==n){var Et=Tn.Z($);st=x==="l"?u-je(Et):d-ie(Et),st&&(e[z]=ae($,function(qt){return qt+st}))}})})}function dn(e,n){return ae(e.ul,function(i,u){if(n)return e[n.toLowerCase()][u];var d=Me(tt.Z(e,u));return(d[1]+d[2])/2})}function pn(e){var n=Tt(e),i=ht.Z(ri(e,n),ii(e,n)),u={},d;l.Z(["u","d"],function(x){d=x==="u"?n:Tn.Z(n).reverse(),l.Z(["l","r"],function(z){z==="r"&&(d=tt.Z(d,function(qt){return Tn.Z(qt).reverse()}));var $=(x==="u"?e.predecessors:e.successors).bind(e),st=di(e,d,i,$),Et=hi(e,d,st.root,st.align,z==="r");z==="r"&&(Et=ae(Et,function(qt){return-qt})),u[x+z]=Et})});var g=Yt(e,u);return Ce(u,g),dn(u,e.graph().align)}function fr(e,n,i){return function(u,d,g){var x=u.node(d),z=u.node(g),$=0,st;if($+=x.width/2,R.Z(x,"labelpos"))switch(x.labelpos.toLowerCase()){case"l":st=-x.width/2;break;case"r":st=x.width/2;break}if(st&&($+=i?st:-st),st=0,$+=(x.dummy?n:e)/2,$+=(z.dummy?n:e)/2,$+=z.width/2,R.Z(z,"labelpos"))switch(z.labelpos.toLowerCase()){case"l":st=z.width/2;break;case"r":st=-z.width/2;break}return st&&($+=i?st:-st),st=0,$}}function Ar(e,n){return e.node(n).width}function _r(e){e=X(e),Ur(e),oi(pn(e),function(n,i){e.node(i).x=n})}function Ur(e){var n=Tt(e),i=e.graph().ranksep,u=0;l.Z(n,function(d){var g=ie(tt.Z(d,function(x){return e.node(x).height}));l.Z(d,function(x){e.node(x).y=u+g/2}),u+=g+i})}function Gr(e,n){var i=n&&n.debugTiming?Ye:Ne;i("layout",function(){var u=i(" buildLayoutGraph",function(){return ki(e)});i(" runLayout",function(){Fn(u,i)}),i(" updateInputGraph",function(){qr(e,u)})})}function Fn(e,n){n(" makeSpaceForEdgeLabels",function(){Ai(e)}),n(" removeSelfEdges",function(){Ii(e)}),n(" acyclic",function(){Le(e)}),n(" nestingGraph.run",function(){Xr(e)}),n(" rank",function(){_n(X(e))}),n(" injectEdgeLabelProxies",function(){wi(e)}),n(" removeEmptyRanks",function(){Ut(e)}),n(" nestingGraph.cleanup",function(){pr(e)}),n(" normalizeRanks",function(){zt(e)}),n(" assignRankMinMax",function(){Si(e)}),n(" removeEdgeLabelProxies",function(){Ci(e)}),n(" normalize.run",function(){oe(e)}),n(" parentDummyChains",function(){yr(e)}),n(" addBorderSegments",function(){y(e)}),n(" order",function(){Jr(e)}),n(" insertSelfEdges",function(){Oi(e)}),n(" adjustCoordinateSystem",function(){b(e)}),n(" position",function(){_r(e)}),n(" positionSelfEdges",function(){Zi(e)}),n(" removeBorderNodes",function(){Bi(e)}),n(" normalize.undo",function(){we(e)}),n(" fixupEdgeLabelCoords",function(){Fi(e)}),n(" undoCoordinateSystem",function(){Y(e)}),n(" translateGraph",function(){Ti(e)}),n(" assignNodeIntersects",function(){Di(e)}),n(" reversePoints",function(){Li(e)}),n(" acyclic.undo",function(){Vt(e)})}function qr(e,n){l.Z(e.nodes(),function(i){var u=e.node(i),d=n.node(i);u&&(u.x=d.x,u.y=d.y,n.children(i).length&&(u.width=d.width,u.height=d.height))}),l.Z(e.edges(),function(i){var u=e.edge(i),d=n.edge(i);u.points=d.points,R.Z(d,"x")&&(u.x=d.x,u.y=d.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var xr=["nodesep","edgesep","ranksep","marginx","marginy"],gi={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},bi=["acyclicer","ranker","rankdir","align"],yi=["width","height"],_i={width:0,height:0},xi=["minlen","weight","width","height","labeloffset"],vi={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ei=["labelpos"];function ki(e){var n=new U.k({multigraph:!0,compound:!0}),i=pi(e.graph());return n.setGraph(ht.Z({},gi,fi(i,xr),re.Z(i,bi))),l.Z(e.nodes(),function(u){var d=pi(e.node(u));n.setNode(u,ze.Z(fi(d,yi),_i)),n.setParent(u,e.parent(u))}),l.Z(e.edges(),function(u){var d=pi(e.edge(u));n.setEdge(u,ht.Z({},vi,fi(d,xi),re.Z(d,Ei)))}),n}function Ai(e){var n=e.graph();n.ranksep/=2,l.Z(e.edges(),function(i){var u=e.edge(i);u.minlen*=2,u.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?u.width+=u.labeloffset:u.height+=u.labeloffset)})}function wi(e){l.Z(e.edges(),function(n){var i=e.edge(n);if(i.width&&i.height){var u=e.node(n.v),d=e.node(n.w),g={rank:(d.rank-u.rank)/2+u.rank,e:n};nn(e,"edge-proxy",g,"_ep")}})}function Si(e){var n=0;l.Z(e.nodes(),function(i){var u=e.node(i);u.borderTop&&(u.minRank=e.node(u.borderTop).rank,u.maxRank=e.node(u.borderBottom).rank,n=ie(n,u.maxRank))}),e.graph().maxRank=n}function Ci(e){l.Z(e.nodes(),function(n){var i=e.node(n);i.dummy==="edge-proxy"&&(e.edge(i.e).labelRank=i.rank,e.removeNode(n))})}function Ti(e){var n=Number.POSITIVE_INFINITY,i=0,u=Number.POSITIVE_INFINITY,d=0,g=e.graph(),x=g.marginx||0,z=g.marginy||0;function $(st){var Et=st.x,qt=st.y,Oe=st.width,He=st.height;n=Math.min(n,Et-Oe/2),i=Math.max(i,Et+Oe/2),u=Math.min(u,qt-He/2),d=Math.max(d,qt+He/2)}l.Z(e.nodes(),function(st){$(e.node(st))}),l.Z(e.edges(),function(st){var Et=e.edge(st);R.Z(Et,"x")&&$(Et)}),n-=x,u-=z,l.Z(e.nodes(),function(st){var Et=e.node(st);Et.x-=n,Et.y-=u}),l.Z(e.edges(),function(st){var Et=e.edge(st);l.Z(Et.points,function(qt){qt.x-=n,qt.y-=u}),R.Z(Et,"x")&&(Et.x-=n),R.Z(Et,"y")&&(Et.y-=u)}),g.width=i-n+x,g.height=d-u+z}function Di(e){l.Z(e.edges(),function(n){var i=e.edge(n),u=e.node(n.v),d=e.node(n.w),g,x;i.points?(g=i.points[0],x=i.points[i.points.length-1]):(i.points=[],g=d,x=u),i.points.unshift(rt(u,g)),i.points.push(rt(d,x))})}function Fi(e){l.Z(e.edges(),function(n){var i=e.edge(n);if(R.Z(i,"x"))switch((i.labelpos==="l"||i.labelpos==="r")&&(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}})}function Li(e){l.Z(e.edges(),function(n){var i=e.edge(n);i.reversed&&i.points.reverse()})}function Bi(e){l.Z(e.nodes(),function(n){if(e.children(n).length){var i=e.node(n),u=e.node(i.borderTop),d=e.node(i.borderBottom),g=e.node(m(i.borderLeft)),x=e.node(m(i.borderRight));i.width=Math.abs(x.x-g.x),i.height=Math.abs(d.y-u.y),i.x=g.x+i.width/2,i.y=u.y+i.height/2}}),l.Z(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Ii(e){l.Z(e.edges(),function(n){if(n.v===n.w){var i=e.node(n.v);i.selfEdges||(i.selfEdges=[]),i.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Oi(e){var n=Tt(e);l.Z(n,function(i){var u=0;l.Z(i,function(d,g){var x=e.node(d);x.order=g+u,l.Z(x.selfEdges,function(z){nn(e,"selfedge",{width:z.label.width,height:z.label.height,rank:x.rank,order:g+ ++u,e:z.e,label:z.label},"_se")}),delete x.selfEdges})})}function Zi(e){l.Z(e.nodes(),function(n){var i=e.node(n);if(i.dummy==="selfedge"){var u=e.node(i.e.v),d=u.x+u.width/2,g=u.y,x=i.x-d,z=u.height/2;e.setEdge(i.e,i.label),e.removeNode(n),i.label.points=[{x:d+2*x/3,y:g-z},{x:d+5*x/6,y:g-z},{x:d+x,y:g},{x:d+5*x/6,y:g+z},{x:d+2*x/3,y:g+z}],i.label.x=i.x,i.label.y=i.y}})}function fi(e,n){return ae(re.Z(e,n),Number)}function pi(e){var n={};return l.Z(e,function(i,u){n[u.toLowerCase()]=i}),n}},"./node_modules/dagre-d3-es/src/graphlib/graph.js":function(be,xt,c){c.d(xt,{k:function(){return De}});var l=c("./node_modules/lodash-es/has.js"),O=c("./node_modules/lodash-es/constant.js"),R=c("./node_modules/lodash-es/isFunction.js"),L=c("./node_modules/lodash-es/keys.js"),mt=c("./node_modules/lodash-es/filter.js"),tt=c("./node_modules/lodash-es/isEmpty.js"),bt=c("./node_modules/lodash-es/forEach.js"),U=c("./node_modules/lodash-es/isUndefined.js"),ct=c("./node_modules/lodash-es/_baseFlatten.js"),kt=c("./node_modules/lodash-es/_baseRest.js"),Nt=c("./node_modules/lodash-es/_SetCache.js"),lt=c("./node_modules/lodash-es/_baseFindIndex.js");function Ft(fe){return fe!==fe}var At=Ft;function $t(fe,X,yt){for(var v=yt-1,rt=fe.length;++v<rt;)if(fe[v]===X)return v;return-1}var ue=$t;function ce(fe,X,yt){return X===X?ue(fe,X,yt):(0,lt.Z)(fe,At,yt)}var Le=ce;function Ze(fe,X){var yt=fe==null?0:fe.length;return!!yt&&Le(fe,X,0)>-1}var Vt=Ze;function ht(fe,X,yt){for(var v=-1,rt=fe==null?0:fe.length;++v<rt;)if(yt(X,fe[v]))return!0;return!1}var re=ht,ze=c("./node_modules/lodash-es/_cacheHas.js"),Bt=c("./node_modules/lodash-es/_Set.js");function me(){}var Rt=me,Te=c("./node_modules/lodash-es/_setToArray.js"),he=1/0,Ae=Bt.Z&&1/(0,Te.Z)(new Bt.Z([,-0]))[1]==he?function(fe){return new Bt.Z(fe)}:Rt,jt=Ae,ie=200;function et(fe,X,yt){var v=-1,rt=Vt,Tt=fe.length,zt=!0,Ut=[],xe=Ut;if(yt)zt=!1,rt=re;else if(Tt>=ie){var sn=X?null:jt(fe);if(sn)return(0,Te.Z)(sn);zt=!1,rt=ze.Z,xe=new Nt.Z}else xe=X?[]:Ut;t:for(;++v<Tt;){var Ke=fe[v],Ye=X?X(Ke):Ke;if(Ke=yt||Ke!==0?Ke:0,zt&&Ye===Ye){for(var Ne=xe.length;Ne--;)if(xe[Ne]===Ye)continue t;X&&xe.push(Ye),Ut.push(Ke)}else rt(xe,Ye,yt)||(xe!==Ut&&xe.push(Ye),Ut.push(Ke))}return Ut}var m=et,K=c("./node_modules/lodash-es/isArrayLikeObject.js"),Ct=(0,kt.Z)(function(fe){return m((0,ct.Z)(fe,1,K.Z,!0))}),ut=Ct,Ot=c("./node_modules/lodash-es/values.js"),ae=c("./node_modules/lodash-es/reduce.js"),Xt="\0",se="\0",We="";class De{constructor(X={}){this._isDirected=l.Z(X,"directed")?X.directed:!0,this._isMultigraph=l.Z(X,"multigraph")?X.multigraph:!1,this._isCompound=l.Z(X,"compound")?X.compound:!1,this._label=void 0,this._defaultNodeLabelFn=O.Z(void 0),this._defaultEdgeLabelFn=O.Z(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[se]={}),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(X){return this._label=X,this}graph(){return this._label}setDefaultNodeLabel(X){return R.Z(X)||(X=O.Z(X)),this._defaultNodeLabelFn=X,this}nodeCount(){return this._nodeCount}nodes(){return L.Z(this._nodes)}sources(){var X=this;return mt.Z(this.nodes(),function(yt){return tt.Z(X._in[yt])})}sinks(){var X=this;return mt.Z(this.nodes(),function(yt){return tt.Z(X._out[yt])})}setNodes(X,yt){var v=arguments,rt=this;return bt.Z(X,function(Tt){v.length>1?rt.setNode(Tt,yt):rt.setNode(Tt)}),this}setNode(X,yt){return l.Z(this._nodes,X)?(arguments.length>1&&(this._nodes[X]=yt),this):(this._nodes[X]=arguments.length>1?yt:this._defaultNodeLabelFn(X),this._isCompound&&(this._parent[X]=se,this._children[X]={},this._children[se][X]=!0),this._in[X]={},this._preds[X]={},this._out[X]={},this._sucs[X]={},++this._nodeCount,this)}node(X){return this._nodes[X]}hasNode(X){return l.Z(this._nodes,X)}removeNode(X){var yt=this;if(l.Z(this._nodes,X)){var v=function(rt){yt.removeEdge(yt._edgeObjs[rt])};delete this._nodes[X],this._isCompound&&(this._removeFromParentsChildList(X),delete this._parent[X],bt.Z(this.children(X),function(rt){yt.setParent(rt)}),delete this._children[X]),bt.Z(L.Z(this._in[X]),v),delete this._in[X],delete this._preds[X],bt.Z(L.Z(this._out[X]),v),delete this._out[X],delete this._sucs[X],--this._nodeCount}return this}setParent(X,yt){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(U.Z(yt))yt=se;else{yt+="";for(var v=yt;!U.Z(v);v=this.parent(v))if(v===X)throw new Error("Setting "+yt+" as parent of "+X+" would create a cycle");this.setNode(yt)}return this.setNode(X),this._removeFromParentsChildList(X),this._parent[X]=yt,this._children[yt][X]=!0,this}_removeFromParentsChildList(X){delete this._children[this._parent[X]][X]}parent(X){if(this._isCompound){var yt=this._parent[X];if(yt!==se)return yt}}children(X){if(U.Z(X)&&(X=se),this._isCompound){var yt=this._children[X];if(yt)return L.Z(yt)}else{if(X===se)return this.nodes();if(this.hasNode(X))return[]}}predecessors(X){var yt=this._preds[X];if(yt)return L.Z(yt)}successors(X){var yt=this._sucs[X];if(yt)return L.Z(yt)}neighbors(X){var yt=this.predecessors(X);if(yt)return ut(yt,this.successors(X))}isLeaf(X){var yt;return this.isDirected()?yt=this.successors(X):yt=this.neighbors(X),yt.length===0}filterNodes(X){var yt=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});yt.setGraph(this.graph());var v=this;bt.Z(this._nodes,function(zt,Ut){X(Ut)&&yt.setNode(Ut,zt)}),bt.Z(this._edgeObjs,function(zt){yt.hasNode(zt.v)&&yt.hasNode(zt.w)&&yt.setEdge(zt,v.edge(zt))});var rt={};function Tt(zt){var Ut=v.parent(zt);return Ut===void 0||yt.hasNode(Ut)?(rt[zt]=Ut,Ut):Ut in rt?rt[Ut]:Tt(Ut)}return this._isCompound&&bt.Z(yt.nodes(),function(zt){yt.setParent(zt,Tt(zt))}),yt}setDefaultEdgeLabel(X){return R.Z(X)||(X=O.Z(X)),this._defaultEdgeLabelFn=X,this}edgeCount(){return this._edgeCount}edges(){return Ot.Z(this._edgeObjs)}setPath(X,yt){var v=this,rt=arguments;return ae.Z(X,function(Tt,zt){return rt.length>1?v.setEdge(Tt,zt,yt):v.setEdge(Tt,zt),zt}),this}setEdge(){var X,yt,v,rt,Tt=!1,zt=arguments[0];typeof zt=="object"&&zt!==null&&"v"in zt?(X=zt.v,yt=zt.w,v=zt.name,arguments.length===2&&(rt=arguments[1],Tt=!0)):(X=zt,yt=arguments[1],v=arguments[3],arguments.length>2&&(rt=arguments[2],Tt=!0)),X=""+X,yt=""+yt,U.Z(v)||(v=""+v);var Ut=Pt(this._isDirected,X,yt,v);if(l.Z(this._edgeLabels,Ut))return Tt&&(this._edgeLabels[Ut]=rt),this;if(!U.Z(v)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(X),this.setNode(yt),this._edgeLabels[Ut]=Tt?rt:this._defaultEdgeLabelFn(X,yt,v);var xe=tn(this._isDirected,X,yt,v);return X=xe.v,yt=xe.w,Object.freeze(xe),this._edgeObjs[Ut]=xe,je(this._preds[yt],X),je(this._sucs[X],yt),this._in[yt][Ut]=xe,this._out[X][Ut]=xe,this._edgeCount++,this}edge(X,yt,v){var rt=arguments.length===1?nn(this._isDirected,arguments[0]):Pt(this._isDirected,X,yt,v);return this._edgeLabels[rt]}hasEdge(X,yt,v){var rt=arguments.length===1?nn(this._isDirected,arguments[0]):Pt(this._isDirected,X,yt,v);return l.Z(this._edgeLabels,rt)}removeEdge(X,yt,v){var rt=arguments.length===1?nn(this._isDirected,arguments[0]):Pt(this._isDirected,X,yt,v),Tt=this._edgeObjs[rt];return Tt&&(X=Tt.v,yt=Tt.w,delete this._edgeLabels[rt],delete this._edgeObjs[rt],Gt(this._preds[yt],X),Gt(this._sucs[X],yt),delete this._in[yt][rt],delete this._out[X][rt],this._edgeCount--),this}inEdges(X,yt){var v=this._in[X];if(v){var rt=Ot.Z(v);return yt?mt.Z(rt,function(Tt){return Tt.v===yt}):rt}}outEdges(X,yt){var v=this._out[X];if(v){var rt=Ot.Z(v);return yt?mt.Z(rt,function(Tt){return Tt.w===yt}):rt}}nodeEdges(X,yt){var v=this.inEdges(X,yt);if(v)return v.concat(this.outEdges(X,yt))}}De.prototype._nodeCount=0,De.prototype._edgeCount=0;function je(fe,X){fe[X]?fe[X]++:fe[X]=1}function Gt(fe,X){--fe[X]||delete fe[X]}function Pt(fe,X,yt,v){var rt=""+X,Tt=""+yt;if(!fe&&rt>Tt){var zt=rt;rt=Tt,Tt=zt}return rt+We+Tt+We+(U.Z(v)?Xt:v)}function tn(fe,X,yt,v){var rt=""+X,Tt=""+yt;if(!fe&&rt>Tt){var zt=rt;rt=Tt,Tt=zt}var Ut={v:rt,w:Tt};return v&&(Ut.name=v),Ut}function nn(fe,X){return Pt(fe,X.v,X.w,X.name)}},"./node_modules/dagre-d3-es/src/graphlib/index.js":function(be,xt,c){c.d(xt,{k:function(){return l.k}});var l=c("./node_modules/dagre-d3-es/src/graphlib/graph.js");const O="2.1.9-pre"},"./node_modules/dagre-d3-es/src/graphlib/json.js":function(be,xt,c){c.d(xt,{c:function(){return U}});var l=c("./node_modules/lodash-es/isUndefined.js"),O=c("./node_modules/lodash-es/_baseClone.js"),R=4;function L(lt){return(0,O.Z)(lt,R)}var mt=L,tt=c("./node_modules/lodash-es/map.js"),bt=c("./node_modules/dagre-d3-es/src/graphlib/graph.js");function U(lt){var Ft={options:{directed:lt.isDirected(),multigraph:lt.isMultigraph(),compound:lt.isCompound()},nodes:ct(lt),edges:kt(lt)};return l.Z(lt.graph())||(Ft.value=mt(lt.graph())),Ft}function ct(lt){return tt.Z(lt.nodes(),function(Ft){var At=lt.node(Ft),$t=lt.parent(Ft),ue={v:Ft};return l.Z(At)||(ue.value=At),l.Z($t)||(ue.parent=$t),ue})}function kt(lt){return tt.Z(lt.edges(),function(Ft){var At=lt.edge(Ft),$t={v:Ft.v,w:Ft.w};return l.Z(Ft.name)||($t.name=Ft.name),l.Z(At)||($t.value=At),$t})}function Nt(lt){var Ft=new Graph(lt.options).setGraph(lt.value);return _.each(lt.nodes,function(At){Ft.setNode(At.v,At.value),At.parent&&Ft.setParent(At.v,At.parent)}),_.each(lt.edges,function(At){Ft.setEdge({v:At.v,w:At.w,name:At.name},At.value)}),Ft}},"./node_modules/lodash-es/_SetCache.js":function(be,xt,c){c.d(xt,{Z:function(){return U}});var l=c("./node_modules/lodash-es/_MapCache.js"),O="__lodash_hash_undefined__";function R(ct){return this.__data__.set(ct,O),this}var L=R;function mt(ct){return this.__data__.has(ct)}var tt=mt;function bt(ct){var kt=-1,Nt=ct==null?0:ct.length;for(this.__data__=new l.Z;++kt<Nt;)this.add(ct[kt])}bt.prototype.add=bt.prototype.push=L,bt.prototype.has=tt;var U=bt},"./node_modules/lodash-es/_arrayEach.js":function(be,xt){function c(l,O){for(var R=-1,L=l==null?0:l.length;++R<L&&O(l[R],R,l)!==!1;);return l}xt.Z=c},"./node_modules/lodash-es/_arrayFilter.js":function(be,xt){function c(l,O){for(var R=-1,L=l==null?0:l.length,mt=0,tt=[];++R<L;){var bt=l[R];O(bt,R,l)&&(tt[mt++]=bt)}return tt}xt.Z=c},"./node_modules/lodash-es/_arrayMap.js":function(be,xt){function c(l,O){for(var R=-1,L=l==null?0:l.length,mt=Array(L);++R<L;)mt[R]=O(l[R],R,l);return mt}xt.Z=c},"./node_modules/lodash-es/_arrayPush.js":function(be,xt){function c(l,O){for(var R=-1,L=O.length,mt=l.length;++R<L;)l[mt+R]=O[R];return l}xt.Z=c},"./node_modules/lodash-es/_baseClone.js":function(be,xt,c){c.d(xt,{Z:function(){return mn}});var l=c("./node_modules/lodash-es/_Stack.js"),O=c("./node_modules/lodash-es/_arrayEach.js"),R=c("./node_modules/lodash-es/_assignValue.js"),L=c("./node_modules/lodash-es/_copyObject.js"),mt=c("./node_modules/lodash-es/keys.js");function tt(vt,ye){return vt&&(0,L.Z)(ye,(0,mt.Z)(ye),vt)}var bt=tt,U=c("./node_modules/lodash-es/keysIn.js");function ct(vt,ye){return vt&&(0,L.Z)(ye,(0,U.Z)(ye),vt)}var kt=ct,Nt=c("./node_modules/lodash-es/_cloneBuffer.js"),lt=c("./node_modules/lodash-es/_copyArray.js"),Ft=c("./node_modules/lodash-es/_getSymbols.js");function At(vt,ye){return(0,L.Z)(vt,(0,Ft.Z)(vt),ye)}var $t=At,ue=c("./node_modules/lodash-es/_arrayPush.js"),ce=c("./node_modules/lodash-es/_getPrototype.js"),Le=c("./node_modules/lodash-es/stubArray.js"),Ze=Object.getOwnPropertySymbols,Vt=Ze?function(vt){for(var ye=[];vt;)(0,ue.Z)(ye,(0,Ft.Z)(vt)),vt=(0,ce.Z)(vt);return ye}:Le.Z,ht=Vt;function re(vt,ye){return(0,L.Z)(vt,ht(vt),ye)}var ze=re,Bt=c("./node_modules/lodash-es/_getAllKeys.js"),me=c("./node_modules/lodash-es/_baseGetAllKeys.js");function Rt(vt){return(0,me.Z)(vt,U.Z,ht)}var Te=Rt,he=c("./node_modules/lodash-es/_getTag.js"),Ae=Object.prototype,jt=Ae.hasOwnProperty;function ie(vt){var ye=vt.length,Ge=new vt.constructor(ye);return ye&&typeof vt[0]=="string"&&jt.call(vt,"index")&&(Ge.index=vt.index,Ge.input=vt.input),Ge}var et=ie,m=c("./node_modules/lodash-es/_cloneArrayBuffer.js");function K(vt,ye){var Ge=ye?(0,m.Z)(vt.buffer):vt.buffer;return new vt.constructor(Ge,vt.byteOffset,vt.byteLength)}var Ct=K,ut=/\w*$/;function Ot(vt){var ye=new vt.constructor(vt.source,ut.exec(vt));return ye.lastIndex=vt.lastIndex,ye}var ae=Ot,Xt=c("./node_modules/lodash-es/_Symbol.js"),se=Xt.Z?Xt.Z.prototype:void 0,We=se?se.valueOf:void 0;function De(vt){return We?Object(We.call(vt)):{}}var je=De,Gt=c("./node_modules/lodash-es/_cloneTypedArray.js"),Pt="[object Boolean]",tn="[object Date]",nn="[object Map]",fe="[object Number]",X="[object RegExp]",yt="[object Set]",v="[object String]",rt="[object Symbol]",Tt="[object ArrayBuffer]",zt="[object DataView]",Ut="[object Float32Array]",xe="[object Float64Array]",sn="[object Int8Array]",Ke="[object Int16Array]",Ye="[object Int32Array]",Ne="[object Uint8Array]",y="[object Uint8ClampedArray]",wt="[object Uint16Array]",b="[object Uint32Array]";function Y(vt,ye,Ge){var An=vt.constructor;switch(ye){case Tt:return(0,m.Z)(vt);case Pt:case tn:return new An(+vt);case zt:return Ct(vt,Ge);case Ut:case xe:case sn:case Ke:case Ye:case Ne:case y:case wt:case b:return(0,Gt.Z)(vt,Ge);case nn:return new An;case fe:case v:return new An(vt);case X:return ae(vt);case yt:return new An;case rt:return je(vt)}}var gt=Y,Mt=c("./node_modules/lodash-es/_initCloneObject.js"),Qt=c("./node_modules/lodash-es/isArray.js"),pe=c("./node_modules/lodash-es/isBuffer.js"),Jt=c("./node_modules/lodash-es/isObjectLike.js"),ge="[object Map]";function oe(vt){return(0,Jt.Z)(vt)&&(0,he.Z)(vt)==ge}var ke=oe,we=c("./node_modules/lodash-es/_baseUnary.js"),Pe=c("./node_modules/lodash-es/_nodeUtil.js"),Be=Pe.Z&&Pe.Z.isMap,Zt=Be?(0,we.Z)(Be):ke,rn=Zt,w=c("./node_modules/lodash-es/isObject.js"),r="[object Set]";function k(vt){return(0,Jt.Z)(vt)&&(0,he.Z)(vt)==r}var Z=k,C=Pe.Z&&Pe.Z.isSet,F=C?(0,we.Z)(C):Z,T=F,G=1,S=2,M=4,W="[object Arguments]",nt="[object Array]",dt="[object Boolean]",St="[object Date]",ne="[object Error]",le="[object Function]",te="[object GeneratorFunction]",Ht="[object Map]",It="[object Number]",_t="[object Object]",Q="[object RegExp]",it="[object Set]",Dt="[object String]",ft="[object Symbol]",at="[object WeakMap]",I="[object ArrayBuffer]",Wt="[object DataView]",H="[object Float32Array]",Fe="[object Float64Array]",fn="[object Int8Array]",bn="[object Int16Array]",zn="[object Int32Array]",$e="[object Uint8Array]",Ue="[object Uint8ClampedArray]",kn="[object Uint16Array]",an="[object Uint32Array]",Se={};Se[W]=Se[nt]=Se[I]=Se[Wt]=Se[dt]=Se[St]=Se[H]=Se[Fe]=Se[fn]=Se[bn]=Se[zn]=Se[Ht]=Se[It]=Se[_t]=Se[Q]=Se[it]=Se[Dt]=Se[ft]=Se[$e]=Se[Ue]=Se[kn]=Se[an]=!0,Se[ne]=Se[le]=Se[at]=!1;function Qn(vt,ye,Ge,An,Cn,cn){var en,Nn=ye&G,Bn=ye&S,In=ye&M;if(Ge&&(en=Cn?Ge(vt,An,Cn,cn):Ge(vt)),en!==void 0)return en;if(!(0,w.Z)(vt))return vt;var Un=(0,Qt.Z)(vt);if(Un){if(en=et(vt),!Nn)return(0,lt.Z)(vt,en)}else{var rr=(0,he.Z)(vt),wr=rr==le||rr==te;if((0,pe.Z)(vt))return(0,Nt.Z)(vt,Nn);if(rr==_t||rr==W||wr&&!Cn){if(en=Bn||wr?{}:(0,Mt.Z)(vt),!Nn)return Bn?ze(vt,kt(en,vt)):$t(vt,bt(en,vt))}else{if(!Se[rr])return Cn?vt:{};en=gt(vt,rr,Nn)}}cn||(cn=new l.Z);var Sr=cn.get(vt);if(Sr)return Sr;cn.set(vt,en),T(vt)?vt.forEach(function(Jn){en.add(Qn(Jn,ye,Ge,Jn,vt,cn))}):rn(vt)&&vt.forEach(function(Jn,qn){en.set(qn,Qn(Jn,ye,Ge,qn,vt,cn))});var vr=In?Bn?Te:Bt.Z:Bn?U.Z:mt.Z,gr=Un?void 0:vr(vt);return(0,O.Z)(gr||vt,function(Jn,qn){gr&&(qn=Jn,Jn=vt[qn]),(0,R.Z)(en,qn,Qn(Jn,ye,Ge,qn,vt,cn))}),en}var mn=Qn},"./node_modules/lodash-es/_baseEach.js":function(be,xt,c){c.d(xt,{Z:function(){return tt}});var l=c("./node_modules/lodash-es/_baseForOwn.js"),O=c("./node_modules/lodash-es/isArrayLike.js");function R(bt,U){return function(ct,kt){if(ct==null)return ct;if(!(0,O.Z)(ct))return bt(ct,kt);for(var Nt=ct.length,lt=U?Nt:-1,Ft=Object(ct);(U?lt--:++lt<Nt)&&kt(Ft[lt],lt,Ft)!==!1;);return ct}}var L=R,mt=L(l.Z),tt=mt},"./node_modules/lodash-es/_baseFindIndex.js":function(be,xt){function c(l,O,R,L){for(var mt=l.length,tt=R+(L?1:-1);L?tt--:++tt<mt;)if(O(l[tt],tt,l))return tt;return-1}xt.Z=c},"./node_modules/lodash-es/_baseFlatten.js":function(be,xt,c){c.d(xt,{Z:function(){return ct}});var l=c("./node_modules/lodash-es/_arrayPush.js"),O=c("./node_modules/lodash-es/_Symbol.js"),R=c("./node_modules/lodash-es/isArguments.js"),L=c("./node_modules/lodash-es/isArray.js"),mt=O.Z?O.Z.isConcatSpreadable:void 0;function tt(kt){return(0,L.Z)(kt)||(0,R.Z)(kt)||!!(mt&&kt&&kt[mt])}var bt=tt;function U(kt,Nt,lt,Ft,At){var $t=-1,ue=kt.length;for(lt||(lt=bt),At||(At=[]);++$t<ue;){var ce=kt[$t];Nt>0&&lt(ce)?Nt>1?U(ce,Nt-1,lt,Ft,At):(0,l.Z)(At,ce):Ft||(At[At.length]=ce)}return At}var ct=U},"./node_modules/lodash-es/_baseForOwn.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_baseFor.js"),O=c("./node_modules/lodash-es/keys.js");function R(L,mt){return L&&(0,l.Z)(L,mt,O.Z)}xt.Z=R},"./node_modules/lodash-es/_baseGet.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_castPath.js"),O=c("./node_modules/lodash-es/_toKey.js");function R(L,mt){mt=(0,l.Z)(mt,L);for(var tt=0,bt=mt.length;L!=null&&tt<bt;)L=L[(0,O.Z)(mt[tt++])];return tt&&tt==bt?L:void 0}xt.Z=R},"./node_modules/lodash-es/_baseGetAllKeys.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_arrayPush.js"),O=c("./node_modules/lodash-es/isArray.js");function R(L,mt,tt){var bt=mt(L);return(0,O.Z)(L)?bt:(0,l.Z)(bt,tt(L))}xt.Z=R},"./node_modules/lodash-es/_baseIteratee.js":function(be,xt,c){c.d(xt,{Z:function(){return G}});var l=c("./node_modules/lodash-es/_Stack.js"),O=c("./node_modules/lodash-es/_SetCache.js");function R(S,M){for(var W=-1,nt=S==null?0:S.length;++W<nt;)if(M(S[W],W,S))return!0;return!1}var L=R,mt=c("./node_modules/lodash-es/_cacheHas.js"),tt=1,bt=2;function U(S,M,W,nt,dt,St){var ne=W&tt,le=S.length,te=M.length;if(le!=te&&!(ne&&te>le))return!1;var Ht=St.get(S),It=St.get(M);if(Ht&&It)return Ht==M&&It==S;var _t=-1,Q=!0,it=W&bt?new O.Z:void 0;for(St.set(S,M),St.set(M,S);++_t<le;){var Dt=S[_t],ft=M[_t];if(nt)var at=ne?nt(ft,Dt,_t,M,S,St):nt(Dt,ft,_t,S,M,St);if(at!==void 0){if(at)continue;Q=!1;break}if(it){if(!L(M,function(I,Wt){if(!(0,mt.Z)(it,Wt)&&(Dt===I||dt(Dt,I,W,nt,St)))return it.push(Wt)})){Q=!1;break}}else if(!(Dt===ft||dt(Dt,ft,W,nt,St))){Q=!1;break}}return St.delete(S),St.delete(M),Q}var ct=U,kt=c("./node_modules/lodash-es/_Symbol.js"),Nt=c("./node_modules/lodash-es/_Uint8Array.js"),lt=c("./node_modules/lodash-es/eq.js");function Ft(S){var M=-1,W=Array(S.size);return S.forEach(function(nt,dt){W[++M]=[dt,nt]}),W}var At=Ft,$t=c("./node_modules/lodash-es/_setToArray.js"),ue=1,ce=2,Le="[object Boolean]",Ze="[object Date]",Vt="[object Error]",ht="[object Map]",re="[object Number]",ze="[object RegExp]",Bt="[object Set]",me="[object String]",Rt="[object Symbol]",Te="[object ArrayBuffer]",he="[object DataView]",Ae=kt.Z?kt.Z.prototype:void 0,jt=Ae?Ae.valueOf:void 0;function ie(S,M,W,nt,dt,St,ne){switch(W){case he:if(S.byteLength!=M.byteLength||S.byteOffset!=M.byteOffset)return!1;S=S.buffer,M=M.buffer;case Te:return!(S.byteLength!=M.byteLength||!St(new Nt.Z(S),new Nt.Z(M)));case Le:case Ze:case re:return(0,lt.Z)(+S,+M);case Vt:return S.name==M.name&&S.message==M.message;case ze:case me:return S==M+"";case ht:var le=At;case Bt:var te=nt&ue;if(le||(le=$t.Z),S.size!=M.size&&!te)return!1;var Ht=ne.get(S);if(Ht)return Ht==M;nt|=ce,ne.set(S,M);var It=ct(le(S),le(M),nt,dt,St,ne);return ne.delete(S),It;case Rt:if(jt)return jt.call(S)==jt.call(M)}return!1}var et=ie,m=c("./node_modules/lodash-es/_getAllKeys.js"),K=1,Ct=Object.prototype,ut=Ct.hasOwnProperty;function Ot(S,M,W,nt,dt,St){var ne=W&K,le=(0,m.Z)(S),te=le.length,Ht=(0,m.Z)(M),It=Ht.length;if(te!=It&&!ne)return!1;for(var _t=te;_t--;){var Q=le[_t];if(!(ne?Q in M:ut.call(M,Q)))return!1}var it=St.get(S),Dt=St.get(M);if(it&&Dt)return it==M&&Dt==S;var ft=!0;St.set(S,M),St.set(M,S);for(var at=ne;++_t<te;){Q=le[_t];var I=S[Q],Wt=M[Q];if(nt)var H=ne?nt(Wt,I,Q,M,S,St):nt(I,Wt,Q,S,M,St);if(!(H===void 0?I===Wt||dt(I,Wt,W,nt,St):H)){ft=!1;break}at||(at=Q=="constructor")}if(ft&&!at){var Fe=S.constructor,fn=M.constructor;Fe!=fn&&"constructor"in S&&"constructor"in M&&!(typeof Fe=="function"&&Fe instanceof Fe&&typeof fn=="function"&&fn instanceof fn)&&(ft=!1)}return St.delete(S),St.delete(M),ft}var ae=Ot,Xt=c("./node_modules/lodash-es/_getTag.js"),se=c("./node_modules/lodash-es/isArray.js"),We=c("./node_modules/lodash-es/isBuffer.js"),De=c("./node_modules/lodash-es/isTypedArray.js"),je=1,Gt="[object Arguments]",Pt="[object Array]",tn="[object Object]",nn=Object.prototype,fe=nn.hasOwnProperty;function X(S,M,W,nt,dt,St){var ne=(0,se.Z)(S),le=(0,se.Z)(M),te=ne?Pt:(0,Xt.Z)(S),Ht=le?Pt:(0,Xt.Z)(M);te=te==Gt?tn:te,Ht=Ht==Gt?tn:Ht;var It=te==tn,_t=Ht==tn,Q=te==Ht;if(Q&&(0,We.Z)(S)){if(!(0,We.Z)(M))return!1;ne=!0,It=!1}if(Q&&!It)return St||(St=new l.Z),ne||(0,De.Z)(S)?ct(S,M,W,nt,dt,St):et(S,M,te,W,nt,dt,St);if(!(W&je)){var it=It&&fe.call(S,"__wrapped__"),Dt=_t&&fe.call(M,"__wrapped__");if(it||Dt){var ft=it?S.value():S,at=Dt?M.value():M;return St||(St=new l.Z),dt(ft,at,W,nt,St)}}return Q?(St||(St=new l.Z),ae(S,M,W,nt,dt,St)):!1}var yt=X,v=c("./node_modules/lodash-es/isObjectLike.js");function rt(S,M,W,nt,dt){return S===M?!0:S==null||M==null||!(0,v.Z)(S)&&!(0,v.Z)(M)?S!==S&&M!==M:yt(S,M,W,nt,rt,dt)}var Tt=rt,zt=1,Ut=2;function xe(S,M,W,nt){var dt=W.length,St=dt,ne=!nt;if(S==null)return!St;for(S=Object(S);dt--;){var le=W[dt];if(ne&&le[2]?le[1]!==S[le[0]]:!(le[0]in S))return!1}for(;++dt<St;){le=W[dt];var te=le[0],Ht=S[te],It=le[1];if(ne&&le[2]){if(Ht===void 0&&!(te in S))return!1}else{var _t=new l.Z;if(nt)var Q=nt(Ht,It,te,S,M,_t);if(!(Q===void 0?Tt(It,Ht,zt|Ut,nt,_t):Q))return!1}}return!0}var sn=xe,Ke=c("./node_modules/lodash-es/isObject.js");function Ye(S){return S===S&&!(0,Ke.Z)(S)}var Ne=Ye,y=c("./node_modules/lodash-es/keys.js");function wt(S){for(var M=(0,y.Z)(S),W=M.length;W--;){var nt=M[W],dt=S[nt];M[W]=[nt,dt,Ne(dt)]}return M}var b=wt;function Y(S,M){return function(W){return W==null?!1:W[S]===M&&(M!==void 0||S in Object(W))}}var gt=Y;function Mt(S){var M=b(S);return M.length==1&&M[0][2]?gt(M[0][0],M[0][1]):function(W){return W===S||sn(W,S,M)}}var Qt=Mt,pe=c("./node_modules/lodash-es/_baseGet.js");function Jt(S,M,W){var nt=S==null?void 0:(0,pe.Z)(S,M);return nt===void 0?W:nt}var ge=Jt,oe=c("./node_modules/lodash-es/hasIn.js"),ke=c("./node_modules/lodash-es/_isKey.js"),we=c("./node_modules/lodash-es/_toKey.js"),Pe=1,Be=2;function Zt(S,M){return(0,ke.Z)(S)&&Ne(M)?gt((0,we.Z)(S),M):function(W){var nt=ge(W,S);return nt===void 0&&nt===M?(0,oe.Z)(W,S):Tt(M,nt,Pe|Be)}}var rn=Zt,w=c("./node_modules/lodash-es/identity.js"),r=c("./node_modules/lodash-es/_baseProperty.js");function k(S){return function(M){return(0,pe.Z)(M,S)}}var Z=k;function C(S){return(0,ke.Z)(S)?(0,r.Z)((0,we.Z)(S)):Z(S)}var F=C;function T(S){return typeof S=="function"?S:S==null?w.Z:typeof S=="object"?(0,se.Z)(S)?rn(S[0],S[1]):Qt(S):F(S)}var G=T},"./node_modules/lodash-es/_baseMap.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_baseEach.js"),O=c("./node_modules/lodash-es/isArrayLike.js");function R(L,mt){var tt=-1,bt=(0,O.Z)(L)?Array(L.length):[];return(0,l.Z)(L,function(U,ct,kt){bt[++tt]=mt(U,ct,kt)}),bt}xt.Z=R},"./node_modules/lodash-es/_baseProperty.js":function(be,xt){function c(l){return function(O){return O==null?void 0:O[l]}}xt.Z=c},"./node_modules/lodash-es/_cacheHas.js":function(be,xt){function c(l,O){return l.has(O)}xt.Z=c},"./node_modules/lodash-es/_castFunction.js":function(be,xt,c){var l=c("./node_modules/lodash-es/identity.js");function O(R){return typeof R=="function"?R:l.Z}xt.Z=O},"./node_modules/lodash-es/_castPath.js":function(be,xt,c){c.d(xt,{Z:function(){return Ft}});var l=c("./node_modules/lodash-es/isArray.js"),O=c("./node_modules/lodash-es/_isKey.js"),R=c("./node_modules/lodash-es/memoize.js"),L=500;function mt(At){var $t=(0,R.Z)(At,function(ce){return ue.size===L&&ue.clear(),ce}),ue=$t.cache;return $t}var tt=mt,bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U=/\\(\\)?/g,ct=tt(function(At){var $t=[];return At.charCodeAt(0)===46&&$t.push(""),At.replace(bt,function(ue,ce,Le,Ze){$t.push(Le?Ze.replace(U,"$1"):ce||ue)}),$t}),kt=ct,Nt=c("./node_modules/lodash-es/toString.js");function lt(At,$t){return(0,l.Z)(At)?At:(0,O.Z)(At,$t)?[At]:kt((0,Nt.Z)(At))}var Ft=lt},"./node_modules/lodash-es/_getAllKeys.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_baseGetAllKeys.js"),O=c("./node_modules/lodash-es/_getSymbols.js"),R=c("./node_modules/lodash-es/keys.js");function L(mt){return(0,l.Z)(mt,R.Z,O.Z)}xt.Z=L},"./node_modules/lodash-es/_getSymbols.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_arrayFilter.js"),O=c("./node_modules/lodash-es/stubArray.js"),R=Object.prototype,L=R.propertyIsEnumerable,mt=Object.getOwnPropertySymbols,tt=mt?function(bt){return bt==null?[]:(bt=Object(bt),(0,l.Z)(mt(bt),function(U){return L.call(bt,U)}))}:O.Z;xt.Z=tt},"./node_modules/lodash-es/_hasPath.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_castPath.js"),O=c("./node_modules/lodash-es/isArguments.js"),R=c("./node_modules/lodash-es/isArray.js"),L=c("./node_modules/lodash-es/_isIndex.js"),mt=c("./node_modules/lodash-es/isLength.js"),tt=c("./node_modules/lodash-es/_toKey.js");function bt(U,ct,kt){ct=(0,l.Z)(ct,U);for(var Nt=-1,lt=ct.length,Ft=!1;++Nt<lt;){var At=(0,tt.Z)(ct[Nt]);if(!(Ft=U!=null&&kt(U,At)))break;U=U[At]}return Ft||++Nt!=lt?Ft:(lt=U==null?0:U.length,!!lt&&(0,mt.Z)(lt)&&(0,L.Z)(At,lt)&&((0,R.Z)(U)||(0,O.Z)(U)))}xt.Z=bt},"./node_modules/lodash-es/_isKey.js":function(be,xt,c){var l=c("./node_modules/lodash-es/isArray.js"),O=c("./node_modules/lodash-es/isSymbol.js"),R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;function mt(tt,bt){if((0,l.Z)(tt))return!1;var U=typeof tt;return U=="number"||U=="symbol"||U=="boolean"||tt==null||(0,O.Z)(tt)?!0:L.test(tt)||!R.test(tt)||bt!=null&&tt in Object(bt)}xt.Z=mt},"./node_modules/lodash-es/_setToArray.js":function(be,xt){function c(l){var O=-1,R=Array(l.size);return l.forEach(function(L){R[++O]=L}),R}xt.Z=c},"./node_modules/lodash-es/_toKey.js":function(be,xt,c){var l=c("./node_modules/lodash-es/isSymbol.js"),O=1/0;function R(L){if(typeof L=="string"||(0,l.Z)(L))return L;var mt=L+"";return mt=="0"&&1/L==-O?"-0":mt}xt.Z=R},"./node_modules/lodash-es/defaults.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_baseRest.js"),O=c("./node_modules/lodash-es/eq.js"),R=c("./node_modules/lodash-es/_isIterateeCall.js"),L=c("./node_modules/lodash-es/keysIn.js"),mt=Object.prototype,tt=mt.hasOwnProperty,bt=(0,l.Z)(function(U,ct){U=Object(U);var kt=-1,Nt=ct.length,lt=Nt>2?ct[2]:void 0;for(lt&&(0,R.Z)(ct[0],ct[1],lt)&&(Nt=1);++kt<Nt;)for(var Ft=ct[kt],At=(0,L.Z)(Ft),$t=-1,ue=At.length;++$t<ue;){var ce=At[$t],Le=U[ce];(Le===void 0||(0,O.Z)(Le,mt[ce])&&!tt.call(U,ce))&&(U[ce]=Ft[ce])}return U});xt.Z=bt},"./node_modules/lodash-es/filter.js":function(be,xt,c){c.d(xt,{Z:function(){return U}});var l=c("./node_modules/lodash-es/_arrayFilter.js"),O=c("./node_modules/lodash-es/_baseEach.js");function R(ct,kt){var Nt=[];return(0,O.Z)(ct,function(lt,Ft,At){kt(lt,Ft,At)&&Nt.push(lt)}),Nt}var L=R,mt=c("./node_modules/lodash-es/_baseIteratee.js"),tt=c("./node_modules/lodash-es/isArray.js");function bt(ct,kt){var Nt=(0,tt.Z)(ct)?l.Z:L;return Nt(ct,(0,mt.Z)(kt,3))}var U=bt},"./node_modules/lodash-es/flatten.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_baseFlatten.js");function O(R){var L=R==null?0:R.length;return L?(0,l.Z)(R,1):[]}xt.Z=O},"./node_modules/lodash-es/forEach.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_arrayEach.js"),O=c("./node_modules/lodash-es/_baseEach.js"),R=c("./node_modules/lodash-es/_castFunction.js"),L=c("./node_modules/lodash-es/isArray.js");function mt(tt,bt){var U=(0,L.Z)(tt)?l.Z:O.Z;return U(tt,(0,R.Z)(bt))}xt.Z=mt},"./node_modules/lodash-es/has.js":function(be,xt,c){c.d(xt,{Z:function(){return bt}});var l=Object.prototype,O=l.hasOwnProperty;function R(U,ct){return U!=null&&O.call(U,ct)}var L=R,mt=c("./node_modules/lodash-es/_hasPath.js");function tt(U,ct){return U!=null&&(0,mt.Z)(U,ct,L)}var bt=tt},"./node_modules/lodash-es/hasIn.js":function(be,xt,c){c.d(xt,{Z:function(){return mt}});function l(tt,bt){return tt!=null&&bt in Object(tt)}var O=l,R=c("./node_modules/lodash-es/_hasPath.js");function L(tt,bt){return tt!=null&&(0,R.Z)(tt,bt,O)}var mt=L},"./node_modules/lodash-es/isSymbol.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_baseGetTag.js"),O=c("./node_modules/lodash-es/isObjectLike.js"),R="[object Symbol]";function L(mt){return typeof mt=="symbol"||(0,O.Z)(mt)&&(0,l.Z)(mt)==R}xt.Z=L},"./node_modules/lodash-es/isUndefined.js":function(be,xt){function c(l){return l===void 0}xt.Z=c},"./node_modules/lodash-es/keys.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_arrayLikeKeys.js"),O=c("./node_modules/lodash-es/_baseKeys.js"),R=c("./node_modules/lodash-es/isArrayLike.js");function L(mt){return(0,R.Z)(mt)?(0,l.Z)(mt):(0,O.Z)(mt)}xt.Z=L},"./node_modules/lodash-es/map.js":function(be,xt,c){var l=c("./node_modules/lodash-es/_arrayMap.js"),O=c("./node_modules/lodash-es/_baseIteratee.js"),R=c("./node_modules/lodash-es/_baseMap.js"),L=c("./node_modules/lodash-es/isArray.js");function mt(tt,bt){var U=(0,L.Z)(tt)?l.Z:R.Z;return U(tt,(0,O.Z)(bt,3))}xt.Z=mt},"./node_modules/lodash-es/pick.js":function(be,xt,c){c.d(xt,{Z:function(){return Vt}});var l=c("./node_modules/lodash-es/_baseGet.js"),O=c("./node_modules/lodash-es/_assignValue.js"),R=c("./node_modules/lodash-es/_castPath.js"),L=c("./node_modules/lodash-es/_isIndex.js"),mt=c("./node_modules/lodash-es/isObject.js"),tt=c("./node_modules/lodash-es/_toKey.js");function bt(ht,re,ze,Bt){if(!(0,mt.Z)(ht))return ht;re=(0,R.Z)(re,ht);for(var me=-1,Rt=re.length,Te=Rt-1,he=ht;he!=null&&++me<Rt;){var Ae=(0,tt.Z)(re[me]),jt=ze;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return ht;if(me!=Te){var ie=he[Ae];jt=Bt?Bt(ie,Ae,he):void 0,jt===void 0&&(jt=(0,mt.Z)(ie)?ie:(0,L.Z)(re[me+1])?[]:{})}(0,O.Z)(he,Ae,jt),he=he[Ae]}return ht}var U=bt;function ct(ht,re,ze){for(var Bt=-1,me=re.length,Rt={};++Bt<me;){var Te=re[Bt],he=(0,l.Z)(ht,Te);ze(he,Te)&&U(Rt,(0,R.Z)(Te,ht),he)}return Rt}var kt=ct,Nt=c("./node_modules/lodash-es/hasIn.js");function lt(ht,re){return kt(ht,re,function(ze,Bt){return(0,Nt.Z)(ht,Bt)})}var Ft=lt,At=c("./node_modules/lodash-es/flatten.js"),$t=c("./node_modules/lodash-es/_overRest.js"),ue=c("./node_modules/lodash-es/_setToString.js");function ce(ht){return(0,ue.Z)((0,$t.Z)(ht,void 0,At.Z),ht+"")}var Le=ce,Ze=Le(function(ht,re){return ht==null?{}:Ft(ht,re)}),Vt=Ze},"./node_modules/lodash-es/range.js":function(be,xt,c){c.d(xt,{Z:function(){return kt}});var l=Math.ceil,O=Math.max;function R(Nt,lt,Ft,At){for(var $t=-1,ue=O(l((lt-Nt)/(Ft||1)),0),ce=Array(ue);ue--;)ce[At?ue:++$t]=Nt,Nt+=Ft;return ce}var L=R,mt=c("./node_modules/lodash-es/_isIterateeCall.js"),tt=c("./node_modules/lodash-es/toFinite.js");function bt(Nt){return function(lt,Ft,At){return At&&typeof At!="number"&&(0,mt.Z)(lt,Ft,At)&&(Ft=At=void 0),lt=(0,tt.Z)(lt),Ft===void 0?(Ft=lt,lt=0):Ft=(0,tt.Z)(Ft),At=At===void 0?lt<Ft?1:-1:(0,tt.Z)(At),L(lt,Ft,At,Nt)}}var U=bt,ct=U(),kt=ct},"./node_modules/lodash-es/reduce.js":function(be,xt,c){c.d(xt,{Z:function(){return ct}});function l(kt,Nt,lt,Ft){var At=-1,$t=kt==null?0:kt.length;for(Ft&&$t&&(lt=kt[++At]);++At<$t;)lt=Nt(lt,kt[At],At,kt);return lt}var O=l,R=c("./node_modules/lodash-es/_baseEach.js"),L=c("./node_modules/lodash-es/_baseIteratee.js");function mt(kt,Nt,lt,Ft,At){return At(kt,function($t,ue,ce){lt=Ft?(Ft=!1,$t):Nt(lt,$t,ue,ce)}),lt}var tt=mt,bt=c("./node_modules/lodash-es/isArray.js");function U(kt,Nt,lt){var Ft=(0,bt.Z)(kt)?O:tt,At=arguments.length<3;return Ft(kt,(0,L.Z)(Nt,4),lt,At,R.Z)}var ct=U},"./node_modules/lodash-es/stubArray.js":function(be,xt){function c(){return[]}xt.Z=c},"./node_modules/lodash-es/toFinite.js":function(be,xt,c){c.d(xt,{Z:function(){return Ze}});var l=/\s/;function O(Vt){for(var ht=Vt.length;ht--&&l.test(Vt.charAt(ht)););return ht}var R=O,L=/^\s+/;function mt(Vt){return Vt&&Vt.slice(0,R(Vt)+1).replace(L,"")}var tt=mt,bt=c("./node_modules/lodash-es/isObject.js"),U=c("./node_modules/lodash-es/isSymbol.js"),ct=0/0,kt=/^[-+]0x[0-9a-f]+$/i,Nt=/^0b[01]+$/i,lt=/^0o[0-7]+$/i,Ft=parseInt;function At(Vt){if(typeof Vt=="number")return Vt;if((0,U.Z)(Vt))return ct;if((0,bt.Z)(Vt)){var ht=typeof Vt.valueOf=="function"?Vt.valueOf():Vt;Vt=(0,bt.Z)(ht)?ht+"":ht}if(typeof Vt!="string")return Vt===0?Vt:+Vt;Vt=tt(Vt);var re=Nt.test(Vt);return re||lt.test(Vt)?Ft(Vt.slice(2),re?2:8):kt.test(Vt)?ct:+Vt}var $t=At,ue=1/0,ce=17976931348623157e292;function Le(Vt){if(!Vt)return Vt===0?Vt:0;if(Vt=$t(Vt),Vt===ue||Vt===-ue){var ht=Vt<0?-1:1;return ht*ce}return Vt===Vt?Vt:0}var Ze=Le},"./node_modules/lodash-es/toString.js":function(be,xt,c){c.d(xt,{Z:function(){return Nt}});var l=c("./node_modules/lodash-es/_Symbol.js"),O=c("./node_modules/lodash-es/_arrayMap.js"),R=c("./node_modules/lodash-es/isArray.js"),L=c("./node_modules/lodash-es/isSymbol.js"),mt=1/0,tt=l.Z?l.Z.prototype:void 0,bt=tt?tt.toString:void 0;function U(lt){if(typeof lt=="string")return lt;if((0,R.Z)(lt))return(0,O.Z)(lt,U)+"";if((0,L.Z)(lt))return bt?bt.call(lt):"";var Ft=lt+"";return Ft=="0"&&1/lt==-mt?"-0":Ft}var ct=U;function kt(lt){return lt==null?"":ct(lt)}var Nt=kt},"./node_modules/lodash-es/uniqueId.js":function(be,xt,c){var l=c("./node_modules/lodash-es/toString.js"),O=0;function R(L){var mt=++O;return(0,l.Z)(L)+mt}xt.Z=R},"./node_modules/lodash-es/values.js":function(be,xt,c){c.d(xt,{Z:function(){return tt}});var l=c("./node_modules/lodash-es/_arrayMap.js");function O(bt,U){return(0,l.Z)(U,function(ct){return bt[ct]})}var R=O,L=c("./node_modules/lodash-es/keys.js");function mt(bt){return bt==null?[]:R(bt,(0,L.Z)(bt))}var tt=mt},"./node_modules/mermaid/dist/createText-80c3befb.js":function(be,xt,c){c.d(xt,{c:function(){return zr}});var l={};c.r(l),c.d(l,{attentionMarkers:function(){return Je},contentInitial:function(){return yn},disable:function(){return qe},document:function(){return Kr},flow:function(){return Xe},flowInitial:function(){return Kn},insideSpan:function(){return Qe},string:function(){return Rn},text:function(){return Mn}});var O=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js");const R={};function L(t,o){const s=o||R,a=typeof s.includeImageAlt=="boolean"?s.includeImageAlt:!0,f=typeof s.includeHtml=="boolean"?s.includeHtml:!0;return mt(t,a,f)}function mt(t,o,s){if(bt(t)){if("value"in t)return t.type==="html"&&!s?"":t.value;if(o&&"alt"in t&&t.alt)return t.alt;if("children"in t)return tt(t.children,o,s)}return Array.isArray(t)?tt(t,o,s):""}function tt(t,o,s){const a=[];let f=-1;for(;++f<t.length;)a[f]=mt(t[f],o,s);return a.join("")}function bt(t){return!!(t&&typeof t=="object")}function U(t,o,s,a){const f=t.length;let h=0,p;if(o<0?o=-o>f?0:f+o:o=o>f?f:o,s=s>0?s:0,a.length<1e4)p=Array.from(a),p.unshift(o,s),t.splice(...p);else for(s&&t.splice(o,s);h<a.length;)p=a.slice(h,h+1e4),p.unshift(o,0),t.splice(...p),h+=1e4,o+=1e4}function ct(t,o){return t.length>0?(U(t,t.length,0,o),t):o}const kt={}.hasOwnProperty;function Nt(t){const o={};let s=-1;for(;++s<t.length;)lt(o,t[s]);return o}function lt(t,o){let s;for(s in o){const f=(kt.call(t,s)?t[s]:void 0)||(t[s]={}),h=o[s];let p;if(h)for(p in h){kt.call(f,p)||(f[p]=[]);const A=h[p];Ft(f[p],Array.isArray(A)?A:A?[A]:[])}}}function Ft(t,o){let s=-1;const a=[];for(;++s<o.length;)(o[s].add==="after"?t:a).push(o[s]);U(t,0,0,a)}function At(t){const o={};let s=-1;for(;++s<t.length;)$t(o,t[s]);return o}function $t(t,o){let s;for(s in o){const f=(kt.call(t,s)?t[s]:void 0)||(t[s]={}),h=o[s];let p;if(h)for(p in h)f[p]=h[p]}}const ue=/[!-\/:-@\[-`\{-~\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\u1B5A-\u1B60\u1B7D\u1B7E\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]/,ce=Ae(/[A-Za-z]/),Le=Ae(/[\dA-Za-z]/),Ze=Ae(/[#-'*+\--9=?A-Z^-~]/);function Vt(t){return t!==null&&(t<32||t===127)}const ht=Ae(/\d/),re=Ae(/[\dA-Fa-f]/),ze=Ae(/[!-/:-@[-`{-~]/);function Bt(t){return t!==null&&t<-2}function me(t){return t!==null&&(t<0||t===32)}function Rt(t){return t===-2||t===-1||t===32}const Te=Ae(ue),he=Ae(/\s/);function Ae(t){return o;function o(s){return s!==null&&t.test(String.fromCharCode(s))}}function jt(t,o,s,a){const f=a?a-1:Number.POSITIVE_INFINITY;let h=0;return p;function p(q){return Rt(q)?(t.enter(s),A(q)):o(q)}function A(q){return Rt(q)&&h++<f?(t.consume(q),A):(t.exit(s),o(q))}}const ie={tokenize:et};function et(t){const o=t.attempt(this.parser.constructs.contentInitial,a,f);let s;return o;function a(A){if(A===null){t.consume(A);return}return t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),jt(t,o,"linePrefix")}function f(A){return t.enter("paragraph"),h(A)}function h(A){const q=t.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=q),s=q,p(A)}function p(A){if(A===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(A);return}return Bt(A)?(t.consume(A),t.exit("chunkText"),h):(t.consume(A),p)}}const m={tokenize:Ct},K={tokenize:ut};function Ct(t){const o=this,s=[];let a=0,f,h,p;return A;function A(_e){if(a<s.length){const vn=s[a];return o.containerState=vn[1],t.attempt(vn[0].continuation,q,V)(_e)}return V(_e)}function q(_e){if(a++,o.containerState._closeFlow){o.containerState._closeFlow=void 0,f&&wn();const vn=o.events.length;let En=vn,Lt;for(;En--;)if(o.events[En][0]==="exit"&&o.events[En][1].type==="chunkFlow"){Lt=o.events[En][1].end;break}ee(a);let gn=vn;for(;gn<o.events.length;)o.events[gn][1].end=Object.assign({},Lt),gn++;return U(o.events,En+1,0,o.events.slice(vn)),o.events.length=gn,V(_e)}return A(_e)}function V(_e){if(a===s.length){if(!f)return J(_e);if(f.currentConstruct&&f.currentConstruct.concrete)return ln(_e);o.interrupt=!!(f.currentConstruct&&!f._gfmTableDynamicInterruptHack)}return o.containerState={},t.check(K,P,ot)(_e)}function P(_e){return f&&wn(),ee(a),J(_e)}function ot(_e){return o.parser.lazy[o.now().line]=a!==s.length,p=o.now().offset,ln(_e)}function J(_e){return o.containerState={},t.attempt(K,N,ln)(_e)}function N(_e){return a++,s.push([o.currentConstruct,o.containerState]),J(_e)}function ln(_e){if(_e===null){f&&wn(),ee(0),t.consume(_e);return}return f=f||o.parser.flow(o.now()),t.enter("chunkFlow",{contentType:"flow",previous:h,_tokenizer:f}),un(_e)}function un(_e){if(_e===null){xn(t.exit("chunkFlow"),!0),ee(0),t.consume(_e);return}return Bt(_e)?(t.consume(_e),xn(t.exit("chunkFlow")),a=0,o.interrupt=void 0,A):(t.consume(_e),un)}function xn(_e,vn){const En=o.sliceStream(_e);if(vn&&En.push(null),_e.previous=h,h&&(h.next=_e),h=_e,f.defineSkip(_e.start),f.write(En),o.parser.lazy[_e.start.line]){let Lt=f.events.length;for(;Lt--;)if(f.events[Lt][1].start.offset<p&&(!f.events[Lt][1].end||f.events[Lt][1].end.offset>p))return;const gn=o.events.length;let Zn=gn,jn,Gn;for(;Zn--;)if(o.events[Zn][0]==="exit"&&o.events[Zn][1].type==="chunkFlow"){if(jn){Gn=o.events[Zn][1].end;break}jn=!0}for(ee(a),Lt=gn;Lt<o.events.length;)o.events[Lt][1].end=Object.assign({},Gn),Lt++;U(o.events,Zn+1,0,o.events.slice(gn)),o.events.length=Lt}}function ee(_e){let vn=s.length;for(;vn-- >_e;){const En=s[vn];o.containerState=En[1],En[0].exit.call(o,t)}s.length=_e}function wn(){f.write([null]),h=void 0,f=void 0,o.containerState._closeFlow=void 0}}function ut(t,o,s){return jt(t,t.attempt(this.parser.constructs.document,o,s),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Ot={tokenize:ae,partial:!0};function ae(t,o,s){return a;function a(h){return Rt(h)?jt(t,f,"linePrefix")(h):f(h)}function f(h){return h===null||Bt(h)?o(h):s(h)}}function Xt(t){const o={};let s=-1,a,f,h,p,A,q,V;for(;++s<t.length;){for(;s in o;)s=o[s];if(a=t[s],s&&a[1].type==="chunkFlow"&&t[s-1][1].type==="listItemPrefix"&&(q=a[1]._tokenizer.events,h=0,h<q.length&&q[h][1].type==="lineEndingBlank"&&(h+=2),h<q.length&&q[h][1].type==="content"))for(;++h<q.length&&q[h][1].type!=="content";)q[h][1].type==="chunkText"&&(q[h][1]._isInFirstContentOfListItem=!0,h++);if(a[0]==="enter")a[1].contentType&&(Object.assign(o,se(t,s)),s=o[s],V=!0);else if(a[1]._container){for(h=s,f=void 0;h--&&(p=t[h],p[1].type==="lineEnding"||p[1].type==="lineEndingBlank");)p[0]==="enter"&&(f&&(t[f][1].type="lineEndingBlank"),p[1].type="lineEnding",f=h);f&&(a[1].end=Object.assign({},t[f][1].start),A=t.slice(f,s),A.unshift(a),U(t,f,s-f+1,A))}}return!V}function se(t,o){const s=t[o][1],a=t[o][2];let f=o-1;const h=[],p=s._tokenizer||a.parser[s.contentType](s.start),A=p.events,q=[],V={};let P,ot,J=-1,N=s,ln=0,un=0;const xn=[un];for(;N;){for(;t[++f][1]!==N;);h.push(f),N._tokenizer||(P=a.sliceStream(N),N.next||P.push(null),ot&&p.defineSkip(N.start),N._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(P),N._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),ot=N,N=N.next}for(N=s;++J<A.length;)A[J][0]==="exit"&&A[J-1][0]==="enter"&&A[J][1].type===A[J-1][1].type&&A[J][1].start.line!==A[J][1].end.line&&(un=J+1,xn.push(un),N._tokenizer=void 0,N.previous=void 0,N=N.next);for(p.events=[],N?(N._tokenizer=void 0,N.previous=void 0):xn.pop(),J=xn.length;J--;){const ee=A.slice(xn[J],xn[J+1]),wn=h.pop();q.unshift([wn,wn+ee.length-1]),U(t,wn,2,ee)}for(J=-1;++J<q.length;)V[ln+q[J][0]]=ln+q[J][1],ln+=q[J][1]-q[J][0]-1;return V}const We={tokenize:Gt,resolve:je},De={tokenize:Pt,partial:!0};function je(t){return Xt(t),t}function Gt(t,o){let s;return a;function a(A){return t.enter("content"),s=t.enter("chunkContent",{contentType:"content"}),f(A)}function f(A){return A===null?h(A):Bt(A)?t.check(De,p,h)(A):(t.consume(A),f)}function h(A){return t.exit("chunkContent"),t.exit("content"),o(A)}function p(A){return t.consume(A),t.exit("chunkContent"),s.next=t.enter("chunkContent",{contentType:"content",previous:s}),s=s.next,f}}function Pt(t,o,s){const a=this;return f;function f(p){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),jt(t,h,"linePrefix")}function h(p){if(p===null||Bt(p))return s(p);const A=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?o(p):t.interrupt(a.parser.constructs.flow,s,o)(p)}}const tn={tokenize:nn};function nn(t){const o=this,s=t.attempt(Ot,a,t.attempt(this.parser.constructs.flowInitial,f,jt(t,t.attempt(this.parser.constructs.flow,f,t.attempt(We,f)),"linePrefix")));return s;function a(h){if(h===null){t.consume(h);return}return t.enter("lineEndingBlank"),t.consume(h),t.exit("lineEndingBlank"),o.currentConstruct=void 0,s}function f(h){if(h===null){t.consume(h);return}return t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),o.currentConstruct=void 0,s}}const fe={resolveAll:rt()},X=v("string"),yt=v("text");function v(t){return{tokenize:o,resolveAll:rt(t==="text"?Tt:void 0)};function o(s){const a=this,f=this.parser.constructs[t],h=s.attempt(f,p,A);return p;function p(P){return V(P)?h(P):A(P)}function A(P){if(P===null){s.consume(P);return}return s.enter("data"),s.consume(P),q}function q(P){return V(P)?(s.exit("data"),h(P)):(s.consume(P),q)}function V(P){if(P===null)return!0;const ot=f[P];let J=-1;if(ot)for(;++J<ot.length;){const N=ot[J];if(!N.previous||N.previous.call(a,a.previous))return!0}return!1}}}function rt(t){return o;function o(s,a){let f=-1,h;for(;++f<=s.length;)h===void 0?s[f]&&s[f][1].type==="data"&&(h=f,f++):(!s[f]||s[f][1].type!=="data")&&(f!==h+2&&(s[h][1].end=s[f-1][1].end,s.splice(h+2,f-h-2),f=h+2),h=void 0);return t?t(s,a):s}}function Tt(t,o){let s=0;for(;++s<=t.length;)if((s===t.length||t[s][1].type==="lineEnding")&&t[s-1][1].type==="data"){const a=t[s-1][1],f=o.sliceStream(a);let h=f.length,p=-1,A=0,q;for(;h--;){const V=f[h];if(typeof V=="string"){for(p=V.length;V.charCodeAt(p-1)===32;)A++,p--;if(p)break;p=-1}else if(V===-2)q=!0,A++;else if(V!==-1){h++;break}}if(A){const V={type:s===t.length||q||A<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-A,offset:a.end.offset-A,_index:a.start._index+h,_bufferIndex:h?p:a.start._bufferIndex+p},end:Object.assign({},a.end)};a.end=Object.assign({},V.start),a.start.offset===a.end.offset?Object.assign(a,V):(t.splice(s,0,["enter",V,o],["exit",V,o]),s+=2)}s++}return t}function zt(t,o,s){const a=[];let f=-1;for(;++f<t.length;){const h=t[f].resolveAll;h&&!a.includes(h)&&(o=h(o,s),a.push(h))}return o}function Ut(t,o,s){let a=Object.assign(s?Object.assign({},s):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const f={},h=[];let p=[],A=[],q=!0;const V={consume:vn,enter:En,exit:Lt,attempt:jn(gn),check:jn(Zn),interrupt:jn(Zn,{interrupt:!0})},P={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:un,sliceSerialize:ln,now:xn,defineSkip:ee,write:N};let ot=o.tokenize.call(P,V),J;return o.resolveAll&&h.push(o),P;function N(Ee){return p=ct(p,Ee),wn(),p[p.length-1]!==null?[]:(Gn(o,0),P.events=zt(h,P.events,P),P.events)}function ln(Ee,Ve){return sn(un(Ee),Ve)}function un(Ee){return xe(p,Ee)}function xn(){const{line:Ee,column:Ve,offset:Re,_index:Sn,_bufferIndex:Pn}=a;return{line:Ee,column:Ve,offset:Re,_index:Sn,_bufferIndex:Pn}}function ee(Ee){f[Ee.line]=Ee.column,Me()}function wn(){let Ee;for(;a._index<p.length;){const Ve=p[a._index];if(typeof Ve=="string")for(Ee=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===Ee&&a._bufferIndex<Ve.length;)_e(Ve.charCodeAt(a._bufferIndex));else _e(Ve)}}function _e(Ee){q=void 0,J=Ee,ot=ot(Ee)}function vn(Ee){Bt(Ee)?(a.line++,a.column=1,a.offset+=Ee===-3?2:1,Me()):Ee!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===p[a._index].length&&(a._bufferIndex=-1,a._index++)),P.previous=Ee,q=!0}function En(Ee,Ve){const Re=Ve||{};return Re.type=Ee,Re.start=xn(),P.events.push(["enter",Re,P]),A.push(Re),Re}function Lt(Ee){const Ve=A.pop();return Ve.end=xn(),P.events.push(["exit",Ve,P]),Ve}function gn(Ee,Ve){Gn(Ee,Ve.from)}function Zn(Ee,Ve){Ve.restore()}function jn(Ee,Ve){return Re;function Re(Sn,Pn,hr){let mr,B,er,br;return Array.isArray(Sn)?nr(Sn):"tokenize"in Sn?nr([Sn]):j(Sn);function j(Wn){return Ir;function Ir(yr){const Or=yr!==null&&Wn[yr],Tr=yr!==null&&Wn.null,Hr=[...Array.isArray(Or)?Or:Or?[Or]:[],...Array.isArray(Tr)?Tr:Tr?[Tr]:[]];return nr(Hr)(yr)}}function nr(Wn){return mr=Wn,B=0,Wn.length===0?hr:Lr(Wn[B])}function Lr(Wn){return Ir;function Ir(yr){return br=Dn(),er=Wn,Wn.partial||(P.currentConstruct=Wn),Wn.name&&P.parser.constructs.disable.null.includes(Wn.name)?Br(yr):Wn.tokenize.call(Ve?Object.assign(Object.create(P),Ve):P,V,Jr,Br)(yr)}}function Jr(Wn){return q=!0,Ee(er,br),Pn}function Br(Wn){return q=!0,br.restore(),++B<mr.length?Lr(mr[B]):hr}}}function Gn(Ee,Ve){Ee.resolveAll&&!h.includes(Ee)&&h.push(Ee),Ee.resolve&&U(P.events,Ve,P.events.length-Ve,Ee.resolve(P.events.slice(Ve),P)),Ee.resolveTo&&(P.events=Ee.resolveTo(P.events,P))}function Dn(){const Ee=xn(),Ve=P.previous,Re=P.currentConstruct,Sn=P.events.length,Pn=Array.from(A);return{restore:hr,from:Sn};function hr(){a=Ee,P.previous=Ve,P.currentConstruct=Re,P.events.length=Sn,A=Pn,Me()}}function Me(){a.line in f&&a.column<2&&(a.column=f[a.line],a.offset+=f[a.line]-1)}}function xe(t,o){const s=o.start._index,a=o.start._bufferIndex,f=o.end._index,h=o.end._bufferIndex;let p;if(s===f)p=[t[s].slice(a,h)];else{if(p=t.slice(s,f),a>-1){const A=p[0];typeof A=="string"?p[0]=A.slice(a):p.shift()}h>0&&p.push(t[f].slice(0,h))}return p}function sn(t,o){let s=-1;const a=[];let f;for(;++s<t.length;){const h=t[s];let p;if(typeof h=="string")p=h;else switch(h){case-5:{p="\r";break}case-4:{p=`
`;break}case-3:{p=`\r
`;break}case-2:{p=o?" ":" ";break}case-1:{if(!o&&f)continue;p=" ";break}default:p=String.fromCharCode(h)}f=h===-2,a.push(p)}return a.join("")}const Ke={name:"thematicBreak",tokenize:Ye};function Ye(t,o,s){let a=0,f;return h;function h(V){return t.enter("thematicBreak"),p(V)}function p(V){return f=V,A(V)}function A(V){return V===f?(t.enter("thematicBreakSequence"),q(V)):a>=3&&(V===null||Bt(V))?(t.exit("thematicBreak"),o(V)):s(V)}function q(V){return V===f?(t.consume(V),a++,q):(t.exit("thematicBreakSequence"),Rt(V)?jt(t,A,"whitespace")(V):A(V))}}const Ne={name:"list",tokenize:b,continuation:{tokenize:Y},exit:Mt},y={tokenize:Qt,partial:!0},wt={tokenize:gt,partial:!0};function b(t,o,s){const a=this,f=a.events[a.events.length-1];let h=f&&f[1].type==="linePrefix"?f[2].sliceSerialize(f[1],!0).length:0,p=0;return A;function A(N){const ln=a.containerState.type||(N===42||N===43||N===45?"listUnordered":"listOrdered");if(ln==="listUnordered"?!a.containerState.marker||N===a.containerState.marker:ht(N)){if(a.containerState.type||(a.containerState.type=ln,t.enter(ln,{_container:!0})),ln==="listUnordered")return t.enter("listItemPrefix"),N===42||N===45?t.check(Ke,s,V)(N):V(N);if(!a.interrupt||N===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),q(N)}return s(N)}function q(N){return ht(N)&&++p<10?(t.consume(N),q):(!a.interrupt||p<2)&&(a.containerState.marker?N===a.containerState.marker:N===41||N===46)?(t.exit("listItemValue"),V(N)):s(N)}function V(N){return t.enter("listItemMarker"),t.consume(N),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||N,t.check(Ot,a.interrupt?s:P,t.attempt(y,J,ot))}function P(N){return a.containerState.initialBlankLine=!0,h++,J(N)}function ot(N){return Rt(N)?(t.enter("listItemPrefixWhitespace"),t.consume(N),t.exit("listItemPrefixWhitespace"),J):s(N)}function J(N){return a.containerState.size=h+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,o(N)}}function Y(t,o,s){const a=this;return a.containerState._closeFlow=void 0,t.check(Ot,f,h);function f(A){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,jt(t,o,"listItemIndent",a.containerState.size+1)(A)}function h(A){return a.containerState.furtherBlankLines||!Rt(A)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,p(A)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(wt,o,p)(A))}function p(A){return a.containerState._closeFlow=!0,a.interrupt=void 0,jt(t,t.attempt(Ne,o,s),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A)}}function gt(t,o,s){const a=this;return jt(t,f,"listItemIndent",a.containerState.size+1);function f(h){const p=a.events[a.events.length-1];return p&&p[1].type==="listItemIndent"&&p[2].sliceSerialize(p[1],!0).length===a.containerState.size?o(h):s(h)}}function Mt(t){t.exit(this.containerState.type)}function Qt(t,o,s){const a=this;return jt(t,f,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function f(h){const p=a.events[a.events.length-1];return!Rt(h)&&p&&p[1].type==="listItemPrefixWhitespace"?o(h):s(h)}}const pe={name:"blockQuote",tokenize:Jt,continuation:{tokenize:ge},exit:oe};function Jt(t,o,s){const a=this;return f;function f(p){if(p===62){const A=a.containerState;return A.open||(t.enter("blockQuote",{_container:!0}),A.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(p),t.exit("blockQuoteMarker"),h}return s(p)}function h(p){return Rt(p)?(t.enter("blockQuotePrefixWhitespace"),t.consume(p),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),o):(t.exit("blockQuotePrefix"),o(p))}}function ge(t,o,s){const a=this;return f;function f(p){return Rt(p)?jt(t,h,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):h(p)}function h(p){return t.attempt(pe,o,s)(p)}}function oe(t){t.exit("blockQuote")}function ke(t,o,s,a,f,h,p,A,q){const V=q||Number.POSITIVE_INFINITY;let P=0;return ot;function ot(ee){return ee===60?(t.enter(a),t.enter(f),t.enter(h),t.consume(ee),t.exit(h),J):ee===null||ee===32||ee===41||Vt(ee)?s(ee):(t.enter(a),t.enter(p),t.enter(A),t.enter("chunkString",{contentType:"string"}),un(ee))}function J(ee){return ee===62?(t.enter(h),t.consume(ee),t.exit(h),t.exit(f),t.exit(a),o):(t.enter(A),t.enter("chunkString",{contentType:"string"}),N(ee))}function N(ee){return ee===62?(t.exit("chunkString"),t.exit(A),J(ee)):ee===null||ee===60||Bt(ee)?s(ee):(t.consume(ee),ee===92?ln:N)}function ln(ee){return ee===60||ee===62||ee===92?(t.consume(ee),N):N(ee)}function un(ee){return!P&&(ee===null||ee===41||me(ee))?(t.exit("chunkString"),t.exit(A),t.exit(p),t.exit(a),o(ee)):P<V&&ee===40?(t.consume(ee),P++,un):ee===41?(t.consume(ee),P--,un):ee===null||ee===32||ee===40||Vt(ee)?s(ee):(t.consume(ee),ee===92?xn:un)}function xn(ee){return ee===40||ee===41||ee===92?(t.consume(ee),un):un(ee)}}function we(t,o,s,a,f,h){const p=this;let A=0,q;return V;function V(N){return t.enter(a),t.enter(f),t.consume(N),t.exit(f),t.enter(h),P}function P(N){return A>999||N===null||N===91||N===93&&!q||N===94&&!A&&"_hiddenFootnoteSupport"in p.parser.constructs?s(N):N===93?(t.exit(h),t.enter(f),t.consume(N),t.exit(f),t.exit(a),o):Bt(N)?(t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),P):(t.enter("chunkString",{contentType:"string"}),ot(N))}function ot(N){return N===null||N===91||N===93||Bt(N)||A++>999?(t.exit("chunkString"),P(N)):(t.consume(N),q||(q=!Rt(N)),N===92?J:ot)}function J(N){return N===91||N===92||N===93?(t.consume(N),A++,ot):ot(N)}}function Pe(t,o,s,a,f,h){let p;return A;function A(J){return J===34||J===39||J===40?(t.enter(a),t.enter(f),t.consume(J),t.exit(f),p=J===40?41:J,q):s(J)}function q(J){return J===p?(t.enter(f),t.consume(J),t.exit(f),t.exit(a),o):(t.enter(h),V(J))}function V(J){return J===p?(t.exit(h),q(p)):J===null?s(J):Bt(J)?(t.enter("lineEnding"),t.consume(J),t.exit("lineEnding"),jt(t,V,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),P(J))}function P(J){return J===p||J===null||Bt(J)?(t.exit("chunkString"),V(J)):(t.consume(J),J===92?ot:P)}function ot(J){return J===p||J===92?(t.consume(J),P):P(J)}}function Be(t,o){let s;return a;function a(f){return Bt(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),s=!0,a):Rt(f)?jt(t,a,s?"linePrefix":"lineSuffix")(f):o(f)}}function Zt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const rn={name:"definition",tokenize:r},w={tokenize:k,partial:!0};function r(t,o,s){const a=this;let f;return h;function h(N){return t.enter("definition"),p(N)}function p(N){return we.call(a,t,A,s,"definitionLabel","definitionLabelMarker","definitionLabelString")(N)}function A(N){return f=Zt(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),N===58?(t.enter("definitionMarker"),t.consume(N),t.exit("definitionMarker"),q):s(N)}function q(N){return me(N)?Be(t,V)(N):V(N)}function V(N){return ke(t,P,s,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(N)}function P(N){return t.attempt(w,ot,ot)(N)}function ot(N){return Rt(N)?jt(t,J,"whitespace")(N):J(N)}function J(N){return N===null||Bt(N)?(t.exit("definition"),a.parser.defined.push(f),o(N)):s(N)}}function k(t,o,s){return a;function a(A){return me(A)?Be(t,f)(A):s(A)}function f(A){return Pe(t,h,s,"definitionTitle","definitionTitleMarker","definitionTitleString")(A)}function h(A){return Rt(A)?jt(t,p,"whitespace")(A):p(A)}function p(A){return A===null||Bt(A)?o(A):s(A)}}const Z={name:"codeIndented",tokenize:F},C={tokenize:T,partial:!0};function F(t,o,s){const a=this;return f;function f(V){return t.enter("codeIndented"),jt(t,h,"linePrefix",4+1)(V)}function h(V){const P=a.events[a.events.length-1];return P&&P[1].type==="linePrefix"&&P[2].sliceSerialize(P[1],!0).length>=4?p(V):s(V)}function p(V){return V===null?q(V):Bt(V)?t.attempt(C,p,q)(V):(t.enter("codeFlowValue"),A(V))}function A(V){return V===null||Bt(V)?(t.exit("codeFlowValue"),p(V)):(t.consume(V),A)}function q(V){return t.exit("codeIndented"),o(V)}}function T(t,o,s){const a=this;return f;function f(p){return a.parser.lazy[a.now().line]?s(p):Bt(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),f):jt(t,h,"linePrefix",4+1)(p)}function h(p){const A=a.events[a.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?o(p):Bt(p)?f(p):s(p)}}const G={name:"headingAtx",tokenize:M,resolve:S};function S(t,o){let s=t.length-2,a=3,f,h;return t[a][1].type==="whitespace"&&(a+=2),s-2>a&&t[s][1].type==="whitespace"&&(s-=2),t[s][1].type==="atxHeadingSequence"&&(a===s-1||s-4>a&&t[s-2][1].type==="whitespace")&&(s-=a+1===s?2:4),s>a&&(f={type:"atxHeadingText",start:t[a][1].start,end:t[s][1].end},h={type:"chunkText",start:t[a][1].start,end:t[s][1].end,contentType:"text"},U(t,a,s-a+1,[["enter",f,o],["enter",h,o],["exit",h,o],["exit",f,o]])),t}function M(t,o,s){let a=0;return f;function f(P){return t.enter("atxHeading"),h(P)}function h(P){return t.enter("atxHeadingSequence"),p(P)}function p(P){return P===35&&a++<6?(t.consume(P),p):P===null||me(P)?(t.exit("atxHeadingSequence"),A(P)):s(P)}function A(P){return P===35?(t.enter("atxHeadingSequence"),q(P)):P===null||Bt(P)?(t.exit("atxHeading"),o(P)):Rt(P)?jt(t,A,"whitespace")(P):(t.enter("atxHeadingText"),V(P))}function q(P){return P===35?(t.consume(P),q):(t.exit("atxHeadingSequence"),A(P))}function V(P){return P===null||P===35||me(P)?(t.exit("atxHeadingText"),A(P)):(t.consume(P),V)}}const W={name:"setextUnderline",tokenize:dt,resolveTo:nt};function nt(t,o){let s=t.length,a,f,h;for(;s--;)if(t[s][0]==="enter"){if(t[s][1].type==="content"){a=s;break}t[s][1].type==="paragraph"&&(f=s)}else t[s][1].type==="content"&&t.splice(s,1),!h&&t[s][1].type==="definition"&&(h=s);const p={type:"setextHeading",start:Object.assign({},t[f][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[f][1].type="setextHeadingText",h?(t.splice(f,0,["enter",p,o]),t.splice(h+1,0,["exit",t[a][1],o]),t[a][1].end=Object.assign({},t[h][1].end)):t[a][1]=p,t.push(["exit",p,o]),t}function dt(t,o,s){const a=this;let f;return h;function h(V){let P=a.events.length,ot;for(;P--;)if(a.events[P][1].type!=="lineEnding"&&a.events[P][1].type!=="linePrefix"&&a.events[P][1].type!=="content"){ot=a.events[P][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||ot)?(t.enter("setextHeadingLine"),f=V,p(V)):s(V)}function p(V){return t.enter("setextHeadingLineSequence"),A(V)}function A(V){return V===f?(t.consume(V),A):(t.exit("setextHeadingLineSequence"),Rt(V)?jt(t,q,"lineSuffix")(V):q(V))}function q(V){return V===null||Bt(V)?(t.exit("setextHeadingLine"),o(V)):s(V)}}const St=["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"],ne=["pre","script","style","textarea"],le={name:"htmlFlow",tokenize:_t,resolveTo:It,concrete:!0},te={tokenize:it,partial:!0},Ht={tokenize:Q,partial:!0};function It(t){let o=t.length;for(;o--&&!(t[o][0]==="enter"&&t[o][1].type==="htmlFlow"););return o>1&&t[o-2][1].type==="linePrefix"&&(t[o][1].start=t[o-2][1].start,t[o+1][1].start=t[o-2][1].start,t.splice(o-2,2)),t}function _t(t,o,s){const a=this;let f,h,p,A,q;return V;function V(j){return P(j)}function P(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),ot}function ot(j){return j===33?(t.consume(j),J):j===47?(t.consume(j),h=!0,un):j===63?(t.consume(j),f=3,a.interrupt?o:B):ce(j)?(t.consume(j),p=String.fromCharCode(j),xn):s(j)}function J(j){return j===45?(t.consume(j),f=2,N):j===91?(t.consume(j),f=5,A=0,ln):ce(j)?(t.consume(j),f=4,a.interrupt?o:B):s(j)}function N(j){return j===45?(t.consume(j),a.interrupt?o:B):s(j)}function ln(j){const nr="CDATA[";return j===nr.charCodeAt(A++)?(t.consume(j),A===nr.length?a.interrupt?o:Me:ln):s(j)}function un(j){return ce(j)?(t.consume(j),p=String.fromCharCode(j),xn):s(j)}function xn(j){if(j===null||j===47||j===62||me(j)){const nr=j===47,Lr=p.toLowerCase();return!nr&&!h&&ne.includes(Lr)?(f=1,a.interrupt?o(j):Me(j)):St.includes(p.toLowerCase())?(f=6,nr?(t.consume(j),ee):a.interrupt?o(j):Me(j)):(f=7,a.interrupt&&!a.parser.lazy[a.now().line]?s(j):h?wn(j):_e(j))}return j===45||Le(j)?(t.consume(j),p+=String.fromCharCode(j),xn):s(j)}function ee(j){return j===62?(t.consume(j),a.interrupt?o:Me):s(j)}function wn(j){return Rt(j)?(t.consume(j),wn):Gn(j)}function _e(j){return j===47?(t.consume(j),Gn):j===58||j===95||ce(j)?(t.consume(j),vn):Rt(j)?(t.consume(j),_e):Gn(j)}function vn(j){return j===45||j===46||j===58||j===95||Le(j)?(t.consume(j),vn):En(j)}function En(j){return j===61?(t.consume(j),Lt):Rt(j)?(t.consume(j),En):_e(j)}function Lt(j){return j===null||j===60||j===61||j===62||j===96?s(j):j===34||j===39?(t.consume(j),q=j,gn):Rt(j)?(t.consume(j),Lt):Zn(j)}function gn(j){return j===q?(t.consume(j),q=null,jn):j===null||Bt(j)?s(j):(t.consume(j),gn)}function Zn(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||me(j)?En(j):(t.consume(j),Zn)}function jn(j){return j===47||j===62||Rt(j)?_e(j):s(j)}function Gn(j){return j===62?(t.consume(j),Dn):s(j)}function Dn(j){return j===null||Bt(j)?Me(j):Rt(j)?(t.consume(j),Dn):s(j)}function Me(j){return j===45&&f===2?(t.consume(j),Sn):j===60&&f===1?(t.consume(j),Pn):j===62&&f===4?(t.consume(j),er):j===63&&f===3?(t.consume(j),B):j===93&&f===5?(t.consume(j),mr):Bt(j)&&(f===6||f===7)?(t.exit("htmlFlowData"),t.check(te,br,Ee)(j)):j===null||Bt(j)?(t.exit("htmlFlowData"),Ee(j)):(t.consume(j),Me)}function Ee(j){return t.check(Ht,Ve,br)(j)}function Ve(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),Re}function Re(j){return j===null||Bt(j)?Ee(j):(t.enter("htmlFlowData"),Me(j))}function Sn(j){return j===45?(t.consume(j),B):Me(j)}function Pn(j){return j===47?(t.consume(j),p="",hr):Me(j)}function hr(j){if(j===62){const nr=p.toLowerCase();return ne.includes(nr)?(t.consume(j),er):Me(j)}return ce(j)&&p.length<8?(t.consume(j),p+=String.fromCharCode(j),hr):Me(j)}function mr(j){return j===93?(t.consume(j),B):Me(j)}function B(j){return j===62?(t.consume(j),er):j===45&&f===2?(t.consume(j),B):Me(j)}function er(j){return j===null||Bt(j)?(t.exit("htmlFlowData"),br(j)):(t.consume(j),er)}function br(j){return t.exit("htmlFlow"),o(j)}}function Q(t,o,s){const a=this;return f;function f(p){return Bt(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),h):s(p)}function h(p){return a.parser.lazy[a.now().line]?s(p):o(p)}}function it(t,o,s){return a;function a(f){return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),t.attempt(Ot,o,s)}}const Dt={tokenize:I,partial:!0},ft={name:"codeFenced",tokenize:at,concrete:!0};function at(t,o,s){const a=this,f={tokenize:En,partial:!0};let h=0,p=0,A;return q;function q(Lt){return V(Lt)}function V(Lt){const gn=a.events[a.events.length-1];return h=gn&&gn[1].type==="linePrefix"?gn[2].sliceSerialize(gn[1],!0).length:0,A=Lt,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),P(Lt)}function P(Lt){return Lt===A?(p++,t.consume(Lt),P):p<3?s(Lt):(t.exit("codeFencedFenceSequence"),Rt(Lt)?jt(t,ot,"whitespace")(Lt):ot(Lt))}function ot(Lt){return Lt===null||Bt(Lt)?(t.exit("codeFencedFence"),a.interrupt?o(Lt):t.check(Dt,un,vn)(Lt)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),J(Lt))}function J(Lt){return Lt===null||Bt(Lt)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ot(Lt)):Rt(Lt)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),jt(t,N,"whitespace")(Lt)):Lt===96&&Lt===A?s(Lt):(t.consume(Lt),J)}function N(Lt){return Lt===null||Bt(Lt)?ot(Lt):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),ln(Lt))}function ln(Lt){return Lt===null||Bt(Lt)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),ot(Lt)):Lt===96&&Lt===A?s(Lt):(t.consume(Lt),ln)}function un(Lt){return t.attempt(f,vn,xn)(Lt)}function xn(Lt){return t.enter("lineEnding"),t.consume(Lt),t.exit("lineEnding"),ee}function ee(Lt){return h>0&&Rt(Lt)?jt(t,wn,"linePrefix",h+1)(Lt):wn(Lt)}function wn(Lt){return Lt===null||Bt(Lt)?t.check(Dt,un,vn)(Lt):(t.enter("codeFlowValue"),_e(Lt))}function _e(Lt){return Lt===null||Bt(Lt)?(t.exit("codeFlowValue"),wn(Lt)):(t.consume(Lt),_e)}function vn(Lt){return t.exit("codeFenced"),o(Lt)}function En(Lt,gn,Zn){let jn=0;return Gn;function Gn(Re){return Lt.enter("lineEnding"),Lt.consume(Re),Lt.exit("lineEnding"),Dn}function Dn(Re){return Lt.enter("codeFencedFence"),Rt(Re)?jt(Lt,Me,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Re):Me(Re)}function Me(Re){return Re===A?(Lt.enter("codeFencedFenceSequence"),Ee(Re)):Zn(Re)}function Ee(Re){return Re===A?(jn++,Lt.consume(Re),Ee):jn>=p?(Lt.exit("codeFencedFenceSequence"),Rt(Re)?jt(Lt,Ve,"whitespace")(Re):Ve(Re)):Zn(Re)}function Ve(Re){return Re===null||Bt(Re)?(Lt.exit("codeFencedFence"),gn(Re)):Zn(Re)}}}function I(t,o,s){const a=this;return f;function f(p){return p===null?s(p):(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),h)}function h(p){return a.parser.lazy[a.now().line]?s(p):o(p)}}const Wt=document.createElement("i");function H(t){const o="&"+t+";";Wt.innerHTML=o;const s=Wt.textContent;return s.charCodeAt(s.length-1)===59&&t!=="semi"||s===o?!1:s}const Fe={name:"characterReference",tokenize:fn};function fn(t,o,s){const a=this;let f=0,h,p;return A;function A(ot){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(ot),t.exit("characterReferenceMarker"),q}function q(ot){return ot===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(ot),t.exit("characterReferenceMarkerNumeric"),V):(t.enter("characterReferenceValue"),h=31,p=Le,P(ot))}function V(ot){return ot===88||ot===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(ot),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),h=6,p=re,P):(t.enter("characterReferenceValue"),h=7,p=ht,P(ot))}function P(ot){if(ot===59&&f){const J=t.exit("characterReferenceValue");return p===Le&&!H(a.sliceSerialize(J))?s(ot):(t.enter("characterReferenceMarker"),t.consume(ot),t.exit("characterReferenceMarker"),t.exit("characterReference"),o)}return p(ot)&&f++<h?(t.consume(ot),P):s(ot)}}const bn={name:"characterEscape",tokenize:zn};function zn(t,o,s){return a;function a(h){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(h),t.exit("escapeMarker"),f}function f(h){return ze(h)?(t.enter("characterEscapeValue"),t.consume(h),t.exit("characterEscapeValue"),t.exit("characterEscape"),o):s(h)}}const $e={name:"lineEnding",tokenize:Ue};function Ue(t,o){return s;function s(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),jt(t,o,"linePrefix")}}const kn={name:"labelEnd",tokenize:ye,resolveTo:vt,resolveAll:mn},an={tokenize:Ge},Se={tokenize:An},Qn={tokenize:Cn};function mn(t){let o=-1;for(;++o<t.length;){const s=t[o][1];(s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd")&&(t.splice(o+1,s.type==="labelImage"?4:2),s.type="data",o++)}return t}function vt(t,o){let s=t.length,a=0,f,h,p,A;for(;s--;)if(f=t[s][1],h){if(f.type==="link"||f.type==="labelLink"&&f._inactive)break;t[s][0]==="enter"&&f.type==="labelLink"&&(f._inactive=!0)}else if(p){if(t[s][0]==="enter"&&(f.type==="labelImage"||f.type==="labelLink")&&!f._balanced&&(h=s,f.type!=="labelLink")){a=2;break}}else f.type==="labelEnd"&&(p=s);const q={type:t[h][1].type==="labelLink"?"link":"image",start:Object.assign({},t[h][1].start),end:Object.assign({},t[t.length-1][1].end)},V={type:"label",start:Object.assign({},t[h][1].start),end:Object.assign({},t[p][1].end)},P={type:"labelText",start:Object.assign({},t[h+a+2][1].end),end:Object.assign({},t[p-2][1].start)};return A=[["enter",q,o],["enter",V,o]],A=ct(A,t.slice(h+1,h+a+3)),A=ct(A,[["enter",P,o]]),A=ct(A,zt(o.parser.constructs.insideSpan.null,t.slice(h+a+4,p-3),o)),A=ct(A,[["exit",P,o],t[p-2],t[p-1],["exit",V,o]]),A=ct(A,t.slice(p+1)),A=ct(A,[["exit",q,o]]),U(t,h,t.length,A),t}function ye(t,o,s){const a=this;let f=a.events.length,h,p;for(;f--;)if((a.events[f][1].type==="labelImage"||a.events[f][1].type==="labelLink")&&!a.events[f][1]._balanced){h=a.events[f][1];break}return A;function A(J){return h?h._inactive?ot(J):(p=a.parser.defined.includes(Zt(a.sliceSerialize({start:h.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(J),t.exit("labelMarker"),t.exit("labelEnd"),q):s(J)}function q(J){return J===40?t.attempt(an,P,p?P:ot)(J):J===91?t.attempt(Se,P,p?V:ot)(J):p?P(J):ot(J)}function V(J){return t.attempt(Qn,P,ot)(J)}function P(J){return o(J)}function ot(J){return h._balanced=!0,s(J)}}function Ge(t,o,s){return a;function a(ot){return t.enter("resource"),t.enter("resourceMarker"),t.consume(ot),t.exit("resourceMarker"),f}function f(ot){return me(ot)?Be(t,h)(ot):h(ot)}function h(ot){return ot===41?P(ot):ke(t,p,A,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ot)}function p(ot){return me(ot)?Be(t,q)(ot):P(ot)}function A(ot){return s(ot)}function q(ot){return ot===34||ot===39||ot===40?Pe(t,V,s,"resourceTitle","resourceTitleMarker","resourceTitleString")(ot):P(ot)}function V(ot){return me(ot)?Be(t,P)(ot):P(ot)}function P(ot){return ot===41?(t.enter("resourceMarker"),t.consume(ot),t.exit("resourceMarker"),t.exit("resource"),o):s(ot)}}function An(t,o,s){const a=this;return f;function f(A){return we.call(a,t,h,p,"reference","referenceMarker","referenceString")(A)}function h(A){return a.parser.defined.includes(Zt(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?o(A):s(A)}function p(A){return s(A)}}function Cn(t,o,s){return a;function a(h){return t.enter("reference"),t.enter("referenceMarker"),t.consume(h),t.exit("referenceMarker"),f}function f(h){return h===93?(t.enter("referenceMarker"),t.consume(h),t.exit("referenceMarker"),t.exit("reference"),o):s(h)}}const cn={name:"labelStartImage",tokenize:en,resolveAll:kn.resolveAll};function en(t,o,s){const a=this;return f;function f(A){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(A),t.exit("labelImageMarker"),h}function h(A){return A===91?(t.enter("labelMarker"),t.consume(A),t.exit("labelMarker"),t.exit("labelImage"),p):s(A)}function p(A){return A===94&&"_hiddenFootnoteSupport"in a.parser.constructs?s(A):o(A)}}function Nn(t){if(t===null||me(t)||he(t))return 1;if(Te(t))return 2}const Bn={name:"attention",tokenize:Un,resolveAll:In};function In(t,o){let s=-1,a,f,h,p,A,q,V,P;for(;++s<t.length;)if(t[s][0]==="enter"&&t[s][1].type==="attentionSequence"&&t[s][1]._close){for(a=s;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&o.sliceSerialize(t[a][1]).charCodeAt(0)===o.sliceSerialize(t[s][1]).charCodeAt(0)){if((t[a][1]._close||t[s][1]._open)&&(t[s][1].end.offset-t[s][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[s][1].end.offset-t[s][1].start.offset)%3))continue;q=t[a][1].end.offset-t[a][1].start.offset>1&&t[s][1].end.offset-t[s][1].start.offset>1?2:1;const ot=Object.assign({},t[a][1].end),J=Object.assign({},t[s][1].start);rr(ot,-q),rr(J,q),p={type:q>1?"strongSequence":"emphasisSequence",start:ot,end:Object.assign({},t[a][1].end)},A={type:q>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[s][1].start),end:J},h={type:q>1?"strongText":"emphasisText",start:Object.assign({},t[a][1].end),end:Object.assign({},t[s][1].start)},f={type:q>1?"strong":"emphasis",start:Object.assign({},p.start),end:Object.assign({},A.end)},t[a][1].end=Object.assign({},p.start),t[s][1].start=Object.assign({},A.end),V=[],t[a][1].end.offset-t[a][1].start.offset&&(V=ct(V,[["enter",t[a][1],o],["exit",t[a][1],o]])),V=ct(V,[["enter",f,o],["enter",p,o],["exit",p,o],["enter",h,o]]),V=ct(V,zt(o.parser.constructs.insideSpan.null,t.slice(a+1,s),o)),V=ct(V,[["exit",h,o],["enter",A,o],["exit",A,o],["exit",f,o]]),t[s][1].end.offset-t[s][1].start.offset?(P=2,V=ct(V,[["enter",t[s][1],o],["exit",t[s][1],o]])):P=0,U(t,a-1,s-a+3,V),s=a+V.length-P-2;break}}for(s=-1;++s<t.length;)t[s][1].type==="attentionSequence"&&(t[s][1].type="data");return t}function Un(t,o){const s=this.parser.constructs.attentionMarkers.null,a=this.previous,f=Nn(a);let h;return p;function p(q){return h=q,t.enter("attentionSequence"),A(q)}function A(q){if(q===h)return t.consume(q),A;const V=t.exit("attentionSequence"),P=Nn(q),ot=!P||P===2&&f||s.includes(q),J=!f||f===2&&P||s.includes(a);return V._open=!!(h===42?ot:ot&&(f||!J)),V._close=!!(h===42?J:J&&(P||!ot)),o(q)}}function rr(t,o){t.column+=o,t.offset+=o,t._bufferIndex+=o}const wr={name:"autolink",tokenize:Sr};function Sr(t,o,s){let a=0;return f;function f(N){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(N),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),h}function h(N){return ce(N)?(t.consume(N),p):V(N)}function p(N){return N===43||N===45||N===46||Le(N)?(a=1,A(N)):V(N)}function A(N){return N===58?(t.consume(N),a=0,q):(N===43||N===45||N===46||Le(N))&&a++<32?(t.consume(N),A):(a=0,V(N))}function q(N){return N===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(N),t.exit("autolinkMarker"),t.exit("autolink"),o):N===null||N===32||N===60||Vt(N)?s(N):(t.consume(N),q)}function V(N){return N===64?(t.consume(N),P):Ze(N)?(t.consume(N),V):s(N)}function P(N){return Le(N)?ot(N):s(N)}function ot(N){return N===46?(t.consume(N),a=0,P):N===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(N),t.exit("autolinkMarker"),t.exit("autolink"),o):J(N)}function J(N){if((N===45||Le(N))&&a++<63){const ln=N===45?J:ot;return t.consume(N),ln}return s(N)}}const vr={name:"htmlText",tokenize:gr};function gr(t,o,s){const a=this;let f,h,p;return A;function A(B){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(B),q}function q(B){return B===33?(t.consume(B),V):B===47?(t.consume(B),En):B===63?(t.consume(B),_e):ce(B)?(t.consume(B),Zn):s(B)}function V(B){return B===45?(t.consume(B),P):B===91?(t.consume(B),h=0,ln):ce(B)?(t.consume(B),wn):s(B)}function P(B){return B===45?(t.consume(B),N):s(B)}function ot(B){return B===null?s(B):B===45?(t.consume(B),J):Bt(B)?(p=ot,Pn(B)):(t.consume(B),ot)}function J(B){return B===45?(t.consume(B),N):ot(B)}function N(B){return B===62?Sn(B):B===45?J(B):ot(B)}function ln(B){const er="CDATA[";return B===er.charCodeAt(h++)?(t.consume(B),h===er.length?un:ln):s(B)}function un(B){return B===null?s(B):B===93?(t.consume(B),xn):Bt(B)?(p=un,Pn(B)):(t.consume(B),un)}function xn(B){return B===93?(t.consume(B),ee):un(B)}function ee(B){return B===62?Sn(B):B===93?(t.consume(B),ee):un(B)}function wn(B){return B===null||B===62?Sn(B):Bt(B)?(p=wn,Pn(B)):(t.consume(B),wn)}function _e(B){return B===null?s(B):B===63?(t.consume(B),vn):Bt(B)?(p=_e,Pn(B)):(t.consume(B),_e)}function vn(B){return B===62?Sn(B):_e(B)}function En(B){return ce(B)?(t.consume(B),Lt):s(B)}function Lt(B){return B===45||Le(B)?(t.consume(B),Lt):gn(B)}function gn(B){return Bt(B)?(p=gn,Pn(B)):Rt(B)?(t.consume(B),gn):Sn(B)}function Zn(B){return B===45||Le(B)?(t.consume(B),Zn):B===47||B===62||me(B)?jn(B):s(B)}function jn(B){return B===47?(t.consume(B),Sn):B===58||B===95||ce(B)?(t.consume(B),Gn):Bt(B)?(p=jn,Pn(B)):Rt(B)?(t.consume(B),jn):Sn(B)}function Gn(B){return B===45||B===46||B===58||B===95||Le(B)?(t.consume(B),Gn):Dn(B)}function Dn(B){return B===61?(t.consume(B),Me):Bt(B)?(p=Dn,Pn(B)):Rt(B)?(t.consume(B),Dn):jn(B)}function Me(B){return B===null||B===60||B===61||B===62||B===96?s(B):B===34||B===39?(t.consume(B),f=B,Ee):Bt(B)?(p=Me,Pn(B)):Rt(B)?(t.consume(B),Me):(t.consume(B),Ve)}function Ee(B){return B===f?(t.consume(B),f=void 0,Re):B===null?s(B):Bt(B)?(p=Ee,Pn(B)):(t.consume(B),Ee)}function Ve(B){return B===null||B===34||B===39||B===60||B===61||B===96?s(B):B===47||B===62||me(B)?jn(B):(t.consume(B),Ve)}function Re(B){return B===47||B===62||me(B)?jn(B):s(B)}function Sn(B){return B===62?(t.consume(B),t.exit("htmlTextData"),t.exit("htmlText"),o):s(B)}function Pn(B){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),hr}function hr(B){return Rt(B)?jt(t,mr,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):mr(B)}function mr(B){return t.enter("htmlTextData"),p(B)}}const Jn={name:"labelStartLink",tokenize:qn,resolveAll:kn.resolveAll};function qn(t,o,s){const a=this;return f;function f(p){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelLink"),h}function h(p){return p===94&&"_hiddenFootnoteSupport"in a.parser.constructs?s(p):o(p)}}const Zr={name:"hardBreakEscape",tokenize:jr};function jr(t,o,s){return a;function a(h){return t.enter("hardBreakEscape"),t.consume(h),f}function f(h){return Bt(h)?(t.exit("hardBreakEscape"),o(h)):s(h)}}const Wr={name:"codeText",tokenize:Rr,resolve:Nr,previous:Pr};function Nr(t){let o=t.length-4,s=3,a,f;if((t[s][1].type==="lineEnding"||t[s][1].type==="space")&&(t[o][1].type==="lineEnding"||t[o][1].type==="space")){for(a=s;++a<o;)if(t[a][1].type==="codeTextData"){t[s][1].type="codeTextPadding",t[o][1].type="codeTextPadding",s+=2,o-=2;break}}for(a=s-1,o++;++a<=o;)f===void 0?a!==o&&t[a][1].type!=="lineEnding"&&(f=a):(a===o||t[a][1].type==="lineEnding")&&(t[f][1].type="codeTextData",a!==f+2&&(t[f][1].end=t[a-1][1].end,t.splice(f+2,a-f-2),o-=a-f-2,a=f+2),f=void 0);return t}function Pr(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Rr(t,o,s){const a=this;let f=0,h,p;return A;function A(J){return t.enter("codeText"),t.enter("codeTextSequence"),q(J)}function q(J){return J===96?(t.consume(J),f++,q):(t.exit("codeTextSequence"),V(J))}function V(J){return J===null?s(J):J===32?(t.enter("space"),t.consume(J),t.exit("space"),V):J===96?(p=t.enter("codeTextSequence"),h=0,ot(J)):Bt(J)?(t.enter("lineEnding"),t.consume(J),t.exit("lineEnding"),V):(t.enter("codeTextData"),P(J))}function P(J){return J===null||J===32||J===96||Bt(J)?(t.exit("codeTextData"),V(J)):(t.consume(J),P)}function ot(J){return J===96?(t.consume(J),h++,ot):h===f?(t.exit("codeTextSequence"),t.exit("codeText"),o(J)):(p.type="codeTextData",P(J))}}const Kr={42:Ne,43:Ne,45:Ne,48:Ne,49:Ne,50:Ne,51:Ne,52:Ne,53:Ne,54:Ne,55:Ne,56:Ne,57:Ne,62:pe},yn={91:rn},Kn={[-2]:Z,[-1]:Z,32:Z},Xe={35:G,42:Ke,45:[W,Ke],60:le,61:W,95:Ke,96:ft,126:ft},Rn={38:Fe,92:bn},Mn={[-5]:$e,[-4]:$e,[-3]:$e,33:cn,38:Fe,42:Bn,60:[wr,vr],91:Jn,92:[Zr,bn],93:kn,95:Bn,96:Wr},Qe={null:[Bn,fe]},Je={null:[42,95]},qe={null:[]};function Er(t){const s=Nt([l,...(t||{}).extensions||[]]),a={defined:[],lazy:{},constructs:s,content:f(ie),document:f(m),flow:f(tn),string:f(X),text:f(yt)};return a;function f(h){return p;function p(A){return Ut(a,h,A)}}}const on=/[\0\t\n\r]/g;function Yr(){let t=1,o="",s=!0,a;return f;function f(h,p,A){const q=[];let V,P,ot,J,N;for(h=o+h.toString(p),ot=0,o="",s&&(h.charCodeAt(0)===65279&&ot++,s=void 0);ot<h.length;){if(on.lastIndex=ot,V=on.exec(h),J=V&&V.index!==void 0?V.index:h.length,N=h.charCodeAt(J),!V){o=h.slice(ot);break}if(N===10&&ot===J&&a)q.push(-3),a=void 0;else switch(a&&(q.push(-5),a=void 0),ot<J&&(q.push(h.slice(ot,J)),t+=J-ot),N){case 0:{q.push(65533),t++;break}case 9:{for(P=Math.ceil(t/4)*4,q.push(-2);t++<P;)q.push(-1);break}case 10:{q.push(-4),t=1;break}default:a=!0,t=1}ot=J+1}return A&&(a&&q.push(-5),o&&q.push(o),q.push(null)),q}}function $n(t){for(;!Xt(t););return t}function lr(t,o){const s=Number.parseInt(t,o);return s<9||s===11||s>13&&s<32||s>126&&s<160||s>55295&&s<57344||s>64975&&s<65008||(s&65535)===65535||(s&65535)===65534||s>1114111?"\uFFFD":String.fromCharCode(s)}const ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sr(t){return t.replace(ir,ur)}function ur(t,o,s){if(o)return o;if(s.charCodeAt(0)===35){const f=s.charCodeAt(1),h=f===120||f===88;return lr(s.slice(h?2:1),h?16:10)}return H(s)||t}function Hn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?cr(t.position):"start"in t||"end"in t?cr(t):"line"in t||"column"in t?ar(t):""}function ar(t){return Vn(t&&t.line)+":"+Vn(t&&t.column)}function cr(t){return ar(t&&t.start)+"-"+ar(t&&t.end)}function Vn(t){return t&&typeof t=="number"?t:1}const dr={}.hasOwnProperty,Mr=function(t,o,s){return typeof o!="string"&&(s=o,o=void 0),tr(s)($n(Er(s).document().write(Yr()(t,o,!0))))};function tr(t){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:A(ri),autolinkProtocol:Dn,autolinkEmail:Dn,atxHeading:A(ti),blockQuote:A(Or),characterEscape:Dn,characterReference:Dn,codeFenced:A(Tr),codeFencedFenceInfo:q,codeFencedFenceMeta:q,codeIndented:A(Tr,q),codeText:A(Hr,q),codeTextData:Dn,data:Dn,codeFlowValue:Dn,definition:A(ai),definitionDestinationString:q,definitionLabelString:q,definitionTitleString:q,emphasis:A(oi),hardBreakEscape:A(ei),hardBreakTrailing:A(ei),htmlFlow:A(ni,q),htmlFlowData:Dn,htmlText:A(ni,q),htmlTextData:Dn,image:A(li),label:q,link:A(ri),listItem:A(ui),listItemValue:ln,listOrdered:A(ii,N),listUnordered:A(ii),paragraph:A(si),reference:Lr,referenceString:q,resourceDestinationString:q,resourceTitleString:q,setextHeading:A(ti),strong:A(ci),thematicBreak:A(hi)},exit:{atxHeading:P(),atxHeadingSequence:gn,autolink:P(),autolinkEmail:yr,autolinkProtocol:Ir,blockQuote:P(),characterEscapeValue:Me,characterReferenceMarkerHexadecimal:Br,characterReferenceMarkerNumeric:Br,characterReferenceValue:Wn,codeFenced:P(wn),codeFencedFence:ee,codeFencedFenceInfo:un,codeFencedFenceMeta:xn,codeFlowValue:Me,codeIndented:P(_e),codeText:P(Pn),codeTextData:Me,data:Me,definition:P(),definitionDestinationString:Lt,definitionLabelString:vn,definitionTitleString:En,emphasis:P(),hardBreakEscape:P(Ve),hardBreakTrailing:P(Ve),htmlFlow:P(Re),htmlFlowData:Me,htmlText:P(Sn),htmlTextData:Me,image:P(mr),label:er,labelText:B,lineEnding:Ee,link:P(hr),listItem:P(),listOrdered:P(),listUnordered:P(),paragraph:P(),referenceString:Jr,resourceDestinationString:br,resourceTitleString:j,resource:nr,setextHeading:P(Gn),setextHeadingLineSequence:jn,setextHeadingText:Zn,strong:P(),thematicBreak:P()}};Vr(o,(t||{}).mdastExtensions||[]);const s={};return a;function a(pt){let Yt={type:"root",children:[]};const Ce={stack:[Yt],tokenStack:[],config:o,enter:V,exit:ot,buffer:q,resume:J,setData:h,getData:p},dn=[];let pn=-1;for(;++pn<pt.length;)if(pt[pn][1].type==="listOrdered"||pt[pn][1].type==="listUnordered")if(pt[pn][0]==="enter")dn.push(pn);else{const fr=dn.pop();pn=f(pt,fr,pn)}for(pn=-1;++pn<pt.length;){const fr=o[pt[pn][0]];dr.call(fr,pt[pn][1].type)&&fr[pt[pn][1].type].call(Object.assign({sliceSerialize:pt[pn][2].sliceSerialize},Ce),pt[pn][1])}if(Ce.tokenStack.length>0){const fr=Ce.tokenStack[Ce.tokenStack.length-1];(fr[1]||or).call(Ce,void 0,fr[0])}for(Yt.position={start:Xn(pt.length>0?pt[0][1].start:{line:1,column:1,offset:0}),end:Xn(pt.length>0?pt[pt.length-2][1].end:{line:1,column:1,offset:0})},pn=-1;++pn<o.transforms.length;)Yt=o.transforms[pn](Yt)||Yt;return Yt}function f(pt,Yt,Ce){let dn=Yt-1,pn=-1,fr=!1,Ar,_r,Ur,Gr;for(;++dn<=Ce;){const Fn=pt[dn];if(Fn[1].type==="listUnordered"||Fn[1].type==="listOrdered"||Fn[1].type==="blockQuote"?(Fn[0]==="enter"?pn++:pn--,Gr=void 0):Fn[1].type==="lineEndingBlank"?Fn[0]==="enter"&&(Ar&&!Gr&&!pn&&!Ur&&(Ur=dn),Gr=void 0):Fn[1].type==="linePrefix"||Fn[1].type==="listItemValue"||Fn[1].type==="listItemMarker"||Fn[1].type==="listItemPrefix"||Fn[1].type==="listItemPrefixWhitespace"||(Gr=void 0),!pn&&Fn[0]==="enter"&&Fn[1].type==="listItemPrefix"||pn===-1&&Fn[0]==="exit"&&(Fn[1].type==="listUnordered"||Fn[1].type==="listOrdered")){if(Ar){let qr=dn;for(_r=void 0;qr--;){const xr=pt[qr];if(xr[1].type==="lineEnding"||xr[1].type==="lineEndingBlank"){if(xr[0]==="exit")continue;_r&&(pt[_r][1].type="lineEndingBlank",fr=!0),xr[1].type="lineEnding",_r=qr}else if(!(xr[1].type==="linePrefix"||xr[1].type==="blockQuotePrefix"||xr[1].type==="blockQuotePrefixWhitespace"||xr[1].type==="blockQuoteMarker"||xr[1].type==="listItemIndent"))break}Ur&&(!_r||Ur<_r)&&(Ar._spread=!0),Ar.end=Object.assign({},_r?pt[_r][1].start:Fn[1].end),pt.splice(_r||dn,0,["exit",Ar,Fn[2]]),dn++,Ce++}Fn[1].type==="listItemPrefix"&&(Ar={type:"listItem",_spread:!1,start:Object.assign({},Fn[1].start),end:void 0},pt.splice(dn,0,["enter",Ar,Fn[2]]),dn++,Ce++,Ur=void 0,Gr=!0)}}return pt[Yt][1]._spread=fr,Ce}function h(pt,Yt){s[pt]=Yt}function p(pt){return s[pt]}function A(pt,Yt){return Ce;function Ce(dn){V.call(this,pt(dn),dn),Yt&&Yt.call(this,dn)}}function q(){this.stack.push({type:"fragment",children:[]})}function V(pt,Yt,Ce){return this.stack[this.stack.length-1].children.push(pt),this.stack.push(pt),this.tokenStack.push([Yt,Ce]),pt.position={start:Xn(Yt.start)},pt}function P(pt){return Yt;function Yt(Ce){pt&&pt.call(this,Ce),ot.call(this,Ce)}}function ot(pt,Yt){const Ce=this.stack.pop(),dn=this.tokenStack.pop();if(dn)dn[0].type!==pt.type&&(Yt?Yt.call(this,pt,dn[0]):(dn[1]||or).call(this,pt,dn[0]));else throw new Error("Cannot close `"+pt.type+"` ("+Hn({start:pt.start,end:pt.end})+"): it\u2019s not open");return Ce.position.end=Xn(pt.end),Ce}function J(){return L(this.stack.pop())}function N(){h("expectingFirstListItemValue",!0)}function ln(pt){if(p("expectingFirstListItemValue")){const Yt=this.stack[this.stack.length-2];Yt.start=Number.parseInt(this.sliceSerialize(pt),10),h("expectingFirstListItemValue")}}function un(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.lang=pt}function xn(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.meta=pt}function ee(){p("flowCodeInside")||(this.buffer(),h("flowCodeInside",!0))}function wn(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.value=pt.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h("flowCodeInside")}function _e(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.value=pt.replace(/(\r?\n|\r)$/g,"")}function vn(pt){const Yt=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=Yt,Ce.identifier=Zt(this.sliceSerialize(pt)).toLowerCase()}function En(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.title=pt}function Lt(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.url=pt}function gn(pt){const Yt=this.stack[this.stack.length-1];if(!Yt.depth){const Ce=this.sliceSerialize(pt).length;Yt.depth=Ce}}function Zn(){h("setextHeadingSlurpLineEnding",!0)}function jn(pt){const Yt=this.stack[this.stack.length-1];Yt.depth=this.sliceSerialize(pt).charCodeAt(0)===61?1:2}function Gn(){h("setextHeadingSlurpLineEnding")}function Dn(pt){const Yt=this.stack[this.stack.length-1];let Ce=Yt.children[Yt.children.length-1];(!Ce||Ce.type!=="text")&&(Ce=di(),Ce.position={start:Xn(pt.start)},Yt.children.push(Ce)),this.stack.push(Ce)}function Me(pt){const Yt=this.stack.pop();Yt.value+=this.sliceSerialize(pt),Yt.position.end=Xn(pt.end)}function Ee(pt){const Yt=this.stack[this.stack.length-1];if(p("atHardBreak")){const Ce=Yt.children[Yt.children.length-1];Ce.position.end=Xn(pt.end),h("atHardBreak");return}!p("setextHeadingSlurpLineEnding")&&o.canContainEols.includes(Yt.type)&&(Dn.call(this,pt),Me.call(this,pt))}function Ve(){h("atHardBreak",!0)}function Re(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.value=pt}function Sn(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.value=pt}function Pn(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.value=pt}function hr(){const pt=this.stack[this.stack.length-1];if(p("inReference")){const Yt=p("referenceType")||"shortcut";pt.type+="Reference",pt.referenceType=Yt,delete pt.url,delete pt.title}else delete pt.identifier,delete pt.label;h("referenceType")}function mr(){const pt=this.stack[this.stack.length-1];if(p("inReference")){const Yt=p("referenceType")||"shortcut";pt.type+="Reference",pt.referenceType=Yt,delete pt.url,delete pt.title}else delete pt.identifier,delete pt.label;h("referenceType")}function B(pt){const Yt=this.sliceSerialize(pt),Ce=this.stack[this.stack.length-2];Ce.label=sr(Yt),Ce.identifier=Zt(Yt).toLowerCase()}function er(){const pt=this.stack[this.stack.length-1],Yt=this.resume(),Ce=this.stack[this.stack.length-1];if(h("inReference",!0),Ce.type==="link"){const dn=pt.children;Ce.children=dn}else Ce.alt=Yt}function br(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.url=pt}function j(){const pt=this.resume(),Yt=this.stack[this.stack.length-1];Yt.title=pt}function nr(){h("inReference")}function Lr(){h("referenceType","collapsed")}function Jr(pt){const Yt=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=Yt,Ce.identifier=Zt(this.sliceSerialize(pt)).toLowerCase(),h("referenceType","full")}function Br(pt){h("characterReferenceType",pt.type)}function Wn(pt){const Yt=this.sliceSerialize(pt),Ce=p("characterReferenceType");let dn;Ce?(dn=lr(Yt,Ce==="characterReferenceMarkerNumeric"?10:16),h("characterReferenceType")):dn=H(Yt);const pn=this.stack.pop();pn.value+=dn,pn.position.end=Xn(pt.end)}function Ir(pt){Me.call(this,pt);const Yt=this.stack[this.stack.length-1];Yt.url=this.sliceSerialize(pt)}function yr(pt){Me.call(this,pt);const Yt=this.stack[this.stack.length-1];Yt.url="mailto:"+this.sliceSerialize(pt)}function Or(){return{type:"blockquote",children:[]}}function Tr(){return{type:"code",lang:null,meta:null,value:""}}function Hr(){return{type:"inlineCode",value:""}}function ai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oi(){return{type:"emphasis",children:[]}}function ti(){return{type:"heading",depth:void 0,children:[]}}function ei(){return{type:"break"}}function ni(){return{type:"html",value:""}}function li(){return{type:"image",title:null,url:"",alt:null}}function ri(){return{type:"link",title:null,url:"",children:[]}}function ii(pt){return{type:"list",ordered:pt.type==="listOrdered",start:null,spread:pt._spread,children:[]}}function ui(pt){return{type:"listItem",spread:pt._spread,checked:null,children:[]}}function si(){return{type:"paragraph",children:[]}}function ci(){return{type:"strong",children:[]}}function di(){return{type:"text",value:""}}function hi(){return{type:"thematicBreak"}}}function Xn(t){return{line:t.line,column:t.column,offset:t.offset}}function Vr(t,o){let s=-1;for(;++s<o.length;){const a=o[s];Array.isArray(a)?Vr(t,a):Dr(t,a)}}function Dr(t,o){let s;for(s in o)if(dr.call(o,s)){if(s==="canContainEols"){const a=o[s];a&&t[s].push(...a)}else if(s==="transforms"){const a=o[s];a&&t[s].push(...a)}else if(s==="enter"||s==="exit"){const a=o[s];a&&Object.assign(t[s],a)}}}function or(t,o){throw t?new Error("Cannot close `"+t.type+"` ("+Hn({start:t.start,end:t.end})+"): a different token (`"+o.type+"`, "+Hn({start:o.start,end:o.end})+") is open"):new Error("Cannot close document, a token (`"+o.type+"`, "+Hn({start:o.start,end:o.end})+") is still open")}var de=c("./node_modules/ts-dedent/esm/index.js");function ve(t){const o=t.replace(/\n{2,}/g,`
`);return(0,de.Z)(o)}function Ie(t){const o=ve(t),{children:s}=Mr(o),a=[[]];let f=0;function h(p,A="normal"){p.type==="text"?p.value.split(`
`).forEach((V,P)=>{P!==0&&(f++,a.push([])),V.split(" ").forEach(ot=>{ot&&a[f].push({content:ot,type:A})})}):(p.type==="strong"||p.type==="emphasis")&&p.children.forEach(q=>{h(q,p.type)})}return s.forEach(p=>{p.type==="paragraph"&&p.children.forEach(A=>{h(A)})}),a}function Kt(t){const{children:o}=Mr(t);function s(a){return a.type==="text"?a.value.replace(/\n/g,"<br/>"):a.type==="strong"?`<strong>${a.children.map(s).join("")}</strong>`:a.type==="emphasis"?`<em>${a.children.map(s).join("")}</em>`:a.type==="paragraph"?`<p>${a.children.map(s).join("")}</p>`:`Unsupported markdown: ${a.type}`}return o.map(s).join("")}function _n(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(o=>o.segment):[...t]}function E(t,o){const s=_n(o.content);return kr(t,[],s,o.type)}function kr(t,o,s,a){if(s.length===0)return[{content:o.join(""),type:a},{content:"",type:a}];const[f,...h]=s,p=[...o,f];return t([{content:p.join(""),type:a}])?kr(t,p,h,a):(o.length===0&&f&&(o.push(f),s.shift()),[{content:o.join(""),type:a},{content:s.join(""),type:a}])}function D(t,o){if(t.some(({content:s})=>s.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Tn(t,o)}function Tn(t,o,s=[],a=[]){var A;if(t.length===0)return a.length>0&&s.push(a),s.length>0?s:[];let f="";t[0].content===" "&&(f=" ",t.shift());const h=(A=t.shift())!=null?A:{content:" ",type:"normal"},p=[...a];if(f!==""&&p.push({content:f,type:"normal"}),p.push(h),o(p))return Tn(t,o,s,p);if(a.length>0)s.push(a),t.unshift(h);else if(h.content){const[q,V]=E(o,h);s.push([q]),V.content&&t.unshift(V)}return Tn(t,o,s)}function Cr(t,o){o&&t.attr("style",o)}function Xr(t,o,s,a,f=!1){const h=t.append("foreignObject"),p=h.append("xhtml:div"),A=o.label,q=o.isNode?"nodeLabel":"edgeLabel";p.html(`
<span class="${q} ${a}" `+(o.labelStyle?'style="'+o.labelStyle+'"':"")+">"+A+"</span>"),Cr(p,o.labelStyle),p.style("display","table-cell"),p.style("white-space","nowrap"),p.style("max-width",s+"px"),p.attr("xmlns","http://www.w3.org/1999/xhtml"),f&&p.attr("class","labelBkg");let V=p.node().getBoundingClientRect();return V.width===s&&(p.style("display","table"),p.style("white-space","break-spaces"),p.style("width",s+"px"),V=p.node().getBoundingClientRect()),h.style("width",V.width),h.style("height",V.height),h.node()}function Fr(t,o,s){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",o*s-.1+"em").attr("dy",s+"em")}function Qr(t,o,s){const a=t.append("text"),f=Fr(a,1,o);pr(f,s);const h=f.node().getComputedTextLength();return a.remove(),h}function On(t,o,s,a=!1){const h=o.append("g"),p=h.insert("rect").attr("class","background"),A=h.append("text").attr("y","-10.1");let q=0;for(const V of s){const P=J=>Qr(h,1.1,J)<=t,ot=P(V)?[V]:D(V,P);for(const J of ot){const N=Fr(A,q,1.1);pr(N,J),q++}}if(a){const V=A.node().getBBox(),P=2;return p.attr("x",-P).attr("y",-P).attr("width",V.width+2*P).attr("height",V.height+2*P),h.node()}else return A.node()}function pr(t,o){t.text(""),o.forEach((s,a)=>{const f=t.append("tspan").attr("font-style",s.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",s.type==="strong"?"bold":"normal");a===0?f.text(s.content):f.text(" "+s.content)})}const zr=(t,o="",{style:s="",isTitle:a=!1,classes:f="",useHtmlLabels:h=!0,isNode:p=!0,width:A=200,addSvgBackground:q=!1}={})=>{if(O.l.info("createText",o,s,a,f,h,p,q),h){const V=Kt(o),P={isNode:p,label:(0,O.J)(V).replace(/fa[blrs]?:fa-[\w-]+/g,J=>`<i class='${J.replace(":"," ")}'></i>`),labelStyle:s.replace("fill:","color:")};return Xr(t,P,A,f,q)}else{const V=Ie(o);return On(A,t,V,q)}}},"./node_modules/mermaid/dist/edges-f15a7e05.js":function(be,xt,c){c.d(xt,{a:function(){return $t},b:function(){return wt},c:function(){return Ze},d:function(){return ge},e:function(){return Ne},f:function(){return oe},g:function(){return rn},h:function(){return we},i:function(){return jt},j:function(){return Qt},l:function(){return Vt},p:function(){return b},s:function(){return y},u:function(){return ht}});var l=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js"),O=c("./node_modules/d3/src/index.js"),R=c("./node_modules/mermaid/dist/createText-80c3befb.js");const L=(w,r,k,Z)=>{r.forEach(C=>{At[C](w,k,Z)})},At={extension:(w,r,k)=>{l.l.trace("Making markers for ",k),w.append("defs").append("marker").attr("id",k+"_"+r+"-extensionStart").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),w.append("defs").append("marker").attr("id",k+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(w,r,k)=>{w.append("defs").append("marker").attr("id",k+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),w.append("defs").append("marker").attr("id",k+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(w,r,k)=>{w.append("defs").append("marker").attr("id",k+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),w.append("defs").append("marker").attr("id",k+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(w,r,k)=>{w.append("defs").append("marker").attr("id",k+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),w.append("defs").append("marker").attr("id",k+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(w,r,k)=>{w.append("defs").append("marker").attr("id",k+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),w.append("defs").append("marker").attr("id",k+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(w,r,k)=>{w.append("marker").attr("id",k+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),w.append("marker").attr("id",k+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(w,r,k)=>{w.append("marker").attr("id",k+"_"+r+"-circleEnd").attr("class","marker "+r).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"),w.append("marker").attr("id",k+"_"+r+"-circleStart").attr("class","marker "+r).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")},cross:(w,r,k)=>{w.append("marker").attr("id",k+"_"+r+"-crossEnd").attr("class","marker cross "+r).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"),w.append("marker").attr("id",k+"_"+r+"-crossStart").attr("class","marker cross "+r).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")},barb:(w,r,k)=>{w.append("defs").append("marker").attr("id",k+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},$t=L;function ue(w,r){r&&w.attr("style",r)}function ce(w){const r=(0,O.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),k=r.append("xhtml:div"),Z=w.label,C=w.isNode?"nodeLabel":"edgeLabel";return k.html('<span class="'+C+'" '+(w.labelStyle?'style="'+w.labelStyle+'"':"")+">"+Z+"</span>"),ue(k,w.labelStyle),k.style("display","inline-block"),k.style("white-space","nowrap"),k.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}const Ze=(w,r,k,Z)=>{let C=w||"";if(typeof C=="object"&&(C=C[0]),(0,l.m)((0,l.c)().flowchart.htmlLabels)){C=C.replace(/\\n|\n/g,"<br />"),l.l.info("vertexText"+C);const F={isNode:Z,label:(0,l.J)(C).replace(/fa[blrs]?:fa-[\w-]+/g,G=>`<i class='${G.replace(":"," ")}'></i>`),labelStyle:r.replace("fill:","color:")};return ce(F)}else{const F=document.createElementNS("http://www.w3.org/2000/svg","text");F.setAttribute("style",r.replace("color:","fill:"));let T=[];typeof C=="string"?T=C.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(C)?T=C:T=[];for(const G of T){const S=document.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),S.setAttribute("dy","1em"),S.setAttribute("x","0"),k?S.setAttribute("class","title-row"):S.setAttribute("class","row"),S.textContent=G.trim(),F.appendChild(S)}return F}},Vt=(w,r,k,Z)=>Ln(this,null,function*(){let C;const F=r.useHtmlLabels||(0,l.m)((0,l.c)().flowchart.htmlLabels);k?C=k:C="node default";const T=w.insert("g").attr("class",C).attr("id",r.domId||r.id),G=T.insert("g").attr("class","label").attr("style",r.labelStyle);let S;r.labelText===void 0?S="":S=typeof r.labelText=="string"?r.labelText:r.labelText[0];const M=G.node();let W;r.labelType==="markdown"?W=(0,R.c)(G,(0,l.d)((0,l.J)(S),(0,l.c)()),{useHtmlLabels:F,width:r.width||(0,l.c)().flowchart.wrappingWidth,classes:"markdown-node-label"}):W=M.appendChild(Ze((0,l.d)((0,l.J)(S),(0,l.c)()),r.labelStyle,!1,Z));let nt=W.getBBox();const dt=r.padding/2;if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const St=W.children[0],ne=(0,O.Ys)(W),le=St.getElementsByTagName("img");if(le){const te=S.replace(/<img[^>]*>/g,"").trim()==="";yield Promise.all([...le].map(Ht=>new Promise(It=>{function _t(){if(Ht.style.display="flex",Ht.style.flexDirection="column",te){const Q=(0,l.c)().fontSize?(0,l.c)().fontSize:window.getComputedStyle(document.body).fontSize,it=5;Ht.style.width=parseInt(Q,10)*it+"px"}else Ht.style.width="100%";It(Ht)}setTimeout(()=>{Ht.complete&&_t()}),Ht.addEventListener("error",_t),Ht.addEventListener("load",_t)})))}nt=St.getBoundingClientRect(),ne.attr("width",nt.width),ne.attr("height",nt.height)}return F?G.attr("transform","translate("+-nt.width/2+", "+-nt.height/2+")"):G.attr("transform","translate(0, "+-nt.height/2+")"),r.centerLabel&&G.attr("transform","translate("+-nt.width/2+", "+-nt.height/2+")"),G.insert("rect",":first-child"),{shapeSvg:T,bbox:nt,halfPadding:dt,label:G}}),ht=(w,r)=>{const k=r.node().getBBox();w.width=k.width,w.height=k.height};function re(w,r,k,Z){return w.insert("polygon",":first-child").attr("points",Z.map(function(C){return C.x+","+C.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-r/2+","+k/2+")")}function ze(w,r){return w.intersect(r)}function Bt(w,r,k,Z){var C=w.x,F=w.y,T=C-Z.x,G=F-Z.y,S=Math.sqrt(r*r*G*G+k*k*T*T),M=Math.abs(r*k*T/S);Z.x<C&&(M=-M);var W=Math.abs(r*k*G/S);return Z.y<F&&(W=-W),{x:C+M,y:F+W}}function me(w,r,k){return Bt(w,r,r,k)}function Rt(w,r,k,Z){var C,F,T,G,S,M,W,nt,dt,St,ne,le,te,Ht,It;if(C=r.y-w.y,T=w.x-r.x,S=r.x*w.y-w.x*r.y,dt=C*k.x+T*k.y+S,St=C*Z.x+T*Z.y+S,!(dt!==0&&St!==0&&Te(dt,St))&&(F=Z.y-k.y,G=k.x-Z.x,M=Z.x*k.y-k.x*Z.y,W=F*w.x+G*w.y+M,nt=F*r.x+G*r.y+M,!(W!==0&&nt!==0&&Te(W,nt))&&(ne=C*G-F*T,ne!==0)))return le=Math.abs(ne/2),te=T*M-G*S,Ht=te<0?(te-le)/ne:(te+le)/ne,te=F*S-C*M,It=te<0?(te-le)/ne:(te+le)/ne,{x:Ht,y:It}}function Te(w,r){return w*r>0}function he(w,r,k){var Z=w.x,C=w.y,F=[],T=Number.POSITIVE_INFINITY,G=Number.POSITIVE_INFINITY;typeof r.forEach=="function"?r.forEach(function(ne){T=Math.min(T,ne.x),G=Math.min(G,ne.y)}):(T=Math.min(T,r.x),G=Math.min(G,r.y));for(var S=Z-w.width/2-T,M=C-w.height/2-G,W=0;W<r.length;W++){var nt=r[W],dt=r[W<r.length-1?W+1:0],St=Rt(w,k,{x:S+nt.x,y:M+nt.y},{x:S+dt.x,y:M+dt.y});St&&F.push(St)}return F.length?(F.length>1&&F.sort(function(ne,le){var te=ne.x-k.x,Ht=ne.y-k.y,It=Math.sqrt(te*te+Ht*Ht),_t=le.x-k.x,Q=le.y-k.y,it=Math.sqrt(_t*_t+Q*Q);return It<it?-1:It===it?0:1}),F[0]):w}const jt=(w,r)=>{var k=w.x,Z=w.y,C=r.x-k,F=r.y-Z,T=w.width/2,G=w.height/2,S,M;return Math.abs(F)*T>Math.abs(C)*G?(F<0&&(G=-G),S=F===0?0:G*C/F,M=G):(C<0&&(T=-T),S=T,M=C===0?0:T*F/C),{x:k+S,y:Z+M}},ie={node:ze,circle:me,ellipse:Bt,polygon:he,rect:jt},m=(w,r)=>Ln(this,null,function*(){r.useHtmlLabels||(0,l.c)().flowchart.htmlLabels||(r.centerLabel=!0);const{shapeSvg:Z,bbox:C,halfPadding:F}=yield Vt(w,r,"node "+r.classes,!0);l.l.info("Classes = ",r.classes);const T=Z.insert("rect",":first-child");return T.attr("rx",r.rx).attr("ry",r.ry).attr("x",-C.width/2-F).attr("y",-C.height/2-F).attr("width",C.width+r.padding).attr("height",C.height+r.padding),ht(r,T),r.intersect=function(G){return ie.rect(r,G)},Z}),K=w=>w?" "+w:"",Ct=(w,r)=>`${r||"node default"}${K(w.classes)} ${K(w.class)}`,ut=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=C+F,G=[{x:T/2,y:0},{x:T,y:-T/2},{x:T/2,y:-T},{x:0,y:-T/2}];l.l.info("Question main (Circle)");const S=re(k,T,T,G);return S.attr("style",r.style),ht(r,S),r.intersect=function(M){return l.l.warn("Intersect called"),ie.polygon(r,G,M)},k}),Ot=(w,r)=>{const k=w.insert("g").attr("class","node default").attr("id",r.domId||r.id),Z=28,C=[{x:0,y:Z/2},{x:Z/2,y:0},{x:0,y:-Z/2},{x:-Z/2,y:0}];return k.insert("polygon",":first-child").attr("points",C.map(function(T){return T.x+","+T.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),r.width=28,r.height=28,r.intersect=function(T){return ie.circle(r,14,T)},k},ae=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=4,F=Z.height+r.padding,T=F/C,G=Z.width+2*T+r.padding,S=[{x:T,y:0},{x:G-T,y:0},{x:G,y:-F/2},{x:G-T,y:-F},{x:T,y:-F},{x:0,y:-F/2}],M=re(k,G,F,S);return M.attr("style",r.style),ht(r,M),r.intersect=function(W){return ie.polygon(r,S,W)},k}),Xt=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:-F/2,y:0},{x:C,y:0},{x:C,y:-F},{x:-F/2,y:-F},{x:0,y:-F/2}];return re(k,C,F,T).attr("style",r.style),r.width=C+F,r.height=F,r.intersect=function(S){return ie.polygon(r,T,S)},k}),se=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:-2*F/6,y:0},{x:C-F/6,y:0},{x:C+2*F/6,y:-F},{x:F/6,y:-F}],G=re(k,C,F,T);return G.attr("style",r.style),ht(r,G),r.intersect=function(S){return ie.polygon(r,T,S)},k}),We=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:2*F/6,y:0},{x:C+F/6,y:0},{x:C-2*F/6,y:-F},{x:-F/6,y:-F}],G=re(k,C,F,T);return G.attr("style",r.style),ht(r,G),r.intersect=function(S){return ie.polygon(r,T,S)},k}),De=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:-2*F/6,y:0},{x:C+2*F/6,y:0},{x:C-F/6,y:-F},{x:F/6,y:-F}],G=re(k,C,F,T);return G.attr("style",r.style),ht(r,G),r.intersect=function(S){return ie.polygon(r,T,S)},k}),je=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:F/6,y:0},{x:C-F/6,y:0},{x:C+2*F/6,y:-F},{x:-2*F/6,y:-F}],G=re(k,C,F,T);return G.attr("style",r.style),ht(r,G),r.intersect=function(S){return ie.polygon(r,T,S)},k}),Gt=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:0,y:0},{x:C+F/2,y:0},{x:C,y:-F/2},{x:C+F/2,y:-F},{x:0,y:-F}],G=re(k,C,F,T);return G.attr("style",r.style),ht(r,G),r.intersect=function(S){return ie.polygon(r,T,S)},k}),Pt=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=C/2,T=F/(2.5+C/50),G=Z.height+T+r.padding,S="M 0,"+T+" a "+F+","+T+" 0,0,0 "+C+" 0 a "+F+","+T+" 0,0,0 "+-C+" 0 l 0,"+G+" a "+F+","+T+" 0,0,0 "+C+" 0 l 0,"+-G,M=k.attr("label-offset-y",T).insert("path",":first-child").attr("style",r.style).attr("d",S).attr("transform","translate("+-C/2+","+-(G/2+T)+")");return ht(r,M),r.intersect=function(W){const nt=ie.rect(r,W),dt=nt.x-r.x;if(F!=0&&(Math.abs(dt)<r.width/2||Math.abs(dt)==r.width/2&&Math.abs(nt.y-r.y)>r.height/2-T)){let St=T*T*(1-dt*dt/(F*F));St!=0&&(St=Math.sqrt(St)),St=T-St,W.y-r.y>0&&(St=-St),nt.y+=St}return nt},k}),tn=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z,halfPadding:C}=yield Vt(w,r,"node "+r.classes+" "+r.class,!0),F=k.insert("rect",":first-child"),T=Z.width+r.padding,G=Z.height+r.padding;if(F.attr("class","basic label-container").attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("x",-Z.width/2-C).attr("y",-Z.height/2-C).attr("width",T).attr("height",G),r.props){const S=new Set(Object.keys(r.props));r.props.borders&&(fe(F,r.props.borders,T,G),S.delete("borders")),S.forEach(M=>{l.l.warn(`Unknown node property ${M}`)})}return ht(r,F),r.intersect=function(S){return ie.rect(r,S)},k}),nn=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k}=yield Vt(w,r,"label",!0);l.l.trace("Classes = ",r.class);const Z=k.insert("rect",":first-child"),C=0,F=0;if(Z.attr("width",C).attr("height",F),k.attr("class","label edgeLabel"),r.props){const T=new Set(Object.keys(r.props));r.props.borders&&(fe(Z,r.props.borders,C,F),T.delete("borders")),T.forEach(G=>{l.l.warn(`Unknown node property ${G}`)})}return ht(r,Z),r.intersect=function(T){return ie.rect(r,T)},k});function fe(w,r,k,Z){const C=[],F=G=>{C.push(G,0)},T=G=>{C.push(0,G)};r.includes("t")?(l.l.debug("add top border"),F(k)):T(k),r.includes("r")?(l.l.debug("add right border"),F(Z)):T(Z),r.includes("b")?(l.l.debug("add bottom border"),F(k)):T(k),r.includes("l")?(l.l.debug("add left border"),F(Z)):T(Z),w.attr("stroke-dasharray",C.join(" "))}const X=(w,r)=>{let k;r.classes?k="node "+r.classes:k="node default";const Z=w.insert("g").attr("class",k).attr("id",r.domId||r.id),C=Z.insert("rect",":first-child"),F=Z.insert("line"),T=Z.insert("g").attr("class","label"),G=r.labelText.flat?r.labelText.flat():r.labelText;let S="";typeof G=="object"?S=G[0]:S=G,l.l.info("Label text abc79",S,G,typeof G=="object");const M=T.node().appendChild(Ze(S,r.labelStyle,!0,!0));let W={width:0,height:0};if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const le=M.children[0],te=(0,O.Ys)(M);W=le.getBoundingClientRect(),te.attr("width",W.width),te.attr("height",W.height)}l.l.info("Text 2",G);const nt=G.slice(1,G.length);let dt=M.getBBox();const St=T.node().appendChild(Ze(nt.join?nt.join("<br/>"):nt,r.labelStyle,!0,!0));if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const le=St.children[0],te=(0,O.Ys)(St);W=le.getBoundingClientRect(),te.attr("width",W.width),te.attr("height",W.height)}const ne=r.padding/2;return(0,O.Ys)(St).attr("transform","translate( "+(W.width>dt.width?0:(dt.width-W.width)/2)+", "+(dt.height+ne+5)+")"),(0,O.Ys)(M).attr("transform","translate( "+(W.width<dt.width?0:-(dt.width-W.width)/2)+", 0)"),W=T.node().getBBox(),T.attr("transform","translate("+-W.width/2+", "+(-W.height/2-ne+3)+")"),C.attr("class","outer title-state").attr("x",-W.width/2-ne).attr("y",-W.height/2-ne).attr("width",W.width+r.padding).attr("height",W.height+r.padding),F.attr("class","divider").attr("x1",-W.width/2-ne).attr("x2",W.width/2+ne).attr("y1",-W.height/2-ne+dt.height+ne).attr("y2",-W.height/2-ne+dt.height+ne),ht(r,C),r.intersect=function(le){return ie.rect(r,le)},Z},yt=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.height+r.padding,F=Z.width+C/4+r.padding,T=k.insert("rect",":first-child").attr("style",r.style).attr("rx",C/2).attr("ry",C/2).attr("x",-F/2).attr("y",-C/2).attr("width",F).attr("height",C);return ht(r,T),r.intersect=function(G){return ie.rect(r,G)},k}),v=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z,halfPadding:C}=yield Vt(w,r,Ct(r,void 0),!0),F=k.insert("circle",":first-child");return F.attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("r",Z.width/2+C).attr("width",Z.width+r.padding).attr("height",Z.height+r.padding),l.l.info("Circle main"),ht(r,F),r.intersect=function(T){return l.l.info("Circle intersect",r,Z.width/2+C,T),ie.circle(r,Z.width/2+C,T)},k}),rt=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z,halfPadding:C}=yield Vt(w,r,Ct(r,void 0),!0),F=5,T=k.insert("g",":first-child"),G=T.insert("circle"),S=T.insert("circle");return T.attr("class",r.class),G.attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("r",Z.width/2+C+F).attr("width",Z.width+r.padding+F*2).attr("height",Z.height+r.padding+F*2),S.attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("r",Z.width/2+C).attr("width",Z.width+r.padding).attr("height",Z.height+r.padding),l.l.info("DoubleCircle main"),ht(r,G),r.intersect=function(M){return l.l.info("DoubleCircle intersect",r,Z.width/2+C+F,M),ie.circle(r,Z.width/2+C+F,M)},k}),Tt=(w,r)=>Ln(this,null,function*(){const{shapeSvg:k,bbox:Z}=yield Vt(w,r,Ct(r,void 0),!0),C=Z.width+r.padding,F=Z.height+r.padding,T=[{x:0,y:0},{x:C,y:0},{x:C,y:-F},{x:0,y:-F},{x:0,y:0},{x:-8,y:0},{x:C+8,y:0},{x:C+8,y:-F},{x:-8,y:-F},{x:-8,y:0}],G=re(k,C,F,T);return G.attr("style",r.style),ht(r,G),r.intersect=function(S){return ie.polygon(r,T,S)},k}),zt=(w,r)=>{const k=w.insert("g").attr("class","node default").attr("id",r.domId||r.id),Z=k.insert("circle",":first-child");return Z.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ht(r,Z),r.intersect=function(C){return ie.circle(r,7,C)},k},Ut=(w,r,k)=>{const Z=w.insert("g").attr("class","node default").attr("id",r.domId||r.id);let C=70,F=10;k==="LR"&&(C=10,F=70);const T=Z.append("rect").attr("x",-1*C/2).attr("y",-1*F/2).attr("width",C).attr("height",F).attr("class","fork-join");return ht(r,T),r.height=r.height+r.padding/2,r.width=r.width+r.padding/2,r.intersect=function(G){return ie.rect(r,G)},Z},Ke={rhombus:ut,question:ut,rect:tn,labelRect:nn,rectWithTitle:X,choice:Ot,circle:v,doublecircle:rt,stadium:yt,hexagon:ae,rect_left_inv_arrow:Xt,lean_right:se,lean_left:We,trapezoid:De,inv_trapezoid:je,rect_right_inv_arrow:Gt,cylinder:Pt,start:zt,end:(w,r)=>{const k=w.insert("g").attr("class","node default").attr("id",r.domId||r.id),Z=k.insert("circle",":first-child"),C=k.insert("circle",":first-child");return C.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Z.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ht(r,C),r.intersect=function(F){return ie.circle(r,7,F)},k},note:m,subroutine:Tt,fork:Ut,join:Ut,class_box:(w,r)=>{const k=r.padding/2,Z=4,C=8;let F;r.classes?F="node "+r.classes:F="node default";const T=w.insert("g").attr("class",F).attr("id",r.domId||r.id),G=T.insert("rect",":first-child"),S=T.insert("line"),M=T.insert("line");let W=0,nt=Z;const dt=T.insert("g").attr("class","label");let St=0;const ne=r.classData.annotations&&r.classData.annotations[0],le=r.classData.annotations[0]?"\xAB"+r.classData.annotations[0]+"\xBB":"",te=dt.node().appendChild(Ze(le,r.labelStyle,!0,!0));let Ht=te.getBBox();if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const at=te.children[0],I=(0,O.Ys)(te);Ht=at.getBoundingClientRect(),I.attr("width",Ht.width),I.attr("height",Ht.height)}r.classData.annotations[0]&&(nt+=Ht.height+Z,W+=Ht.width);let It=r.classData.label;r.classData.type!==void 0&&r.classData.type!==""&&((0,l.c)().flowchart.htmlLabels?It+="&lt;"+r.classData.type+"&gt;":It+="<"+r.classData.type+">");const _t=dt.node().appendChild(Ze(It,r.labelStyle,!0,!0));(0,O.Ys)(_t).attr("class","classTitle");let Q=_t.getBBox();if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const at=_t.children[0],I=(0,O.Ys)(_t);Q=at.getBoundingClientRect(),I.attr("width",Q.width),I.attr("height",Q.height)}nt+=Q.height+Z,Q.width>W&&(W=Q.width);const it=[];r.classData.members.forEach(at=>{const I=at.getDisplayDetails();let Wt=I.displayText;(0,l.c)().flowchart.htmlLabels&&(Wt=Wt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const H=dt.node().appendChild(Ze(Wt,I.cssStyle?I.cssStyle:r.labelStyle,!0,!0));let Fe=H.getBBox();if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const fn=H.children[0],bn=(0,O.Ys)(H);Fe=fn.getBoundingClientRect(),bn.attr("width",Fe.width),bn.attr("height",Fe.height)}Fe.width>W&&(W=Fe.width),nt+=Fe.height+Z,it.push(H)}),nt+=C;const Dt=[];if(r.classData.methods.forEach(at=>{const I=at.getDisplayDetails();let Wt=I.displayText;(0,l.c)().flowchart.htmlLabels&&(Wt=Wt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const H=dt.node().appendChild(Ze(Wt,I.cssStyle?I.cssStyle:r.labelStyle,!0,!0));let Fe=H.getBBox();if((0,l.m)((0,l.c)().flowchart.htmlLabels)){const fn=H.children[0],bn=(0,O.Ys)(H);Fe=fn.getBoundingClientRect(),bn.attr("width",Fe.width),bn.attr("height",Fe.height)}Fe.width>W&&(W=Fe.width),nt+=Fe.height+Z,Dt.push(H)}),nt+=C,ne){let at=(W-Ht.width)/2;(0,O.Ys)(te).attr("transform","translate( "+(-1*W/2+at)+", "+-1*nt/2+")"),St=Ht.height+Z}let ft=(W-Q.width)/2;return(0,O.Ys)(_t).attr("transform","translate( "+(-1*W/2+ft)+", "+(-1*nt/2+St)+")"),St+=Q.height+Z,S.attr("class","divider").attr("x1",-W/2-k).attr("x2",W/2+k).attr("y1",-nt/2-k+C+St).attr("y2",-nt/2-k+C+St),St+=C,it.forEach(at=>{var Wt;(0,O.Ys)(at).attr("transform","translate( "+-W/2+", "+(-1*nt/2+St+C/2)+")");const I=at==null?void 0:at.getBBox();St+=((Wt=I==null?void 0:I.height)!=null?Wt:0)+Z}),St+=C,M.attr("class","divider").attr("x1",-W/2-k).attr("x2",W/2+k).attr("y1",-nt/2-k+C+St).attr("y2",-nt/2-k+C+St),St+=C,Dt.forEach(at=>{var Wt;(0,O.Ys)(at).attr("transform","translate( "+-W/2+", "+(-1*nt/2+St)+")");const I=at==null?void 0:at.getBBox();St+=((Wt=I==null?void 0:I.height)!=null?Wt:0)+Z}),G.attr("class","outer title-state").attr("x",-W/2-k).attr("y",-(nt/2)-k).attr("width",W+r.padding).attr("height",nt+r.padding),ht(r,G),r.intersect=function(at){return ie.rect(r,at)},T}};let Ye={};const Ne=(w,r,k)=>Ln(this,null,function*(){let Z,C;if(r.link){let F;(0,l.c)().securityLevel==="sandbox"?F="_top":r.linkTarget&&(F=r.linkTarget||"_blank"),Z=w.insert("svg:a").attr("xlink:href",r.link).attr("target",F),C=yield Ke[r.shape](Z,r,k)}else C=yield Ke[r.shape](w,r,k),Z=C;return r.tooltip&&C.attr("title",r.tooltip),r.class&&C.attr("class","node default "+r.class),Ye[r.id]=Z,r.haveCallback&&Ye[r.id].attr("class",Ye[r.id].attr("class")+" clickable"),Z}),y=(w,r)=>{Ye[r.id]=w},wt=()=>{Ye={}},b=w=>{const r=Ye[w.id];l.l.trace("Transforming node",w.diff,w,"translate("+(w.x-w.width/2-5)+", "+w.width/2+")");const k=8,Z=w.diff||0;return w.clusterNode?r.attr("transform","translate("+(w.x+Z-w.width/2)+", "+(w.y-w.height/2-k)+")"):r.attr("transform","translate("+w.x+", "+w.y+")"),Z},Y={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function gt(w,r){w=Mt(w),r=Mt(r);const[k,Z]=[w.x,w.y],[C,F]=[r.x,r.y],T=C-k,G=F-Z;return{angle:Math.atan(G/T),deltaX:T,deltaY:G}}const Mt=w=>Array.isArray(w)?{x:w[0],y:w[1]}:w,Qt=w=>({x:function(r,k,Z){let C=0;if(k===0&&Object.hasOwn(Y,w.arrowTypeStart)){const{angle:F,deltaX:T}=gt(Z[0],Z[1]);C=Y[w.arrowTypeStart]*Math.cos(F)*(T>=0?1:-1)}else if(k===Z.length-1&&Object.hasOwn(Y,w.arrowTypeEnd)){const{angle:F,deltaX:T}=gt(Z[Z.length-1],Z[Z.length-2]);C=Y[w.arrowTypeEnd]*Math.cos(F)*(T>=0?1:-1)}return Mt(r).x+C},y:function(r,k,Z){let C=0;if(k===0&&Object.hasOwn(Y,w.arrowTypeStart)){const{angle:F,deltaY:T}=gt(Z[0],Z[1]);C=Y[w.arrowTypeStart]*Math.abs(Math.sin(F))*(T>=0?1:-1)}else if(k===Z.length-1&&Object.hasOwn(Y,w.arrowTypeEnd)){const{angle:F,deltaY:T}=gt(Z[Z.length-1],Z[Z.length-2]);C=Y[w.arrowTypeEnd]*Math.abs(Math.sin(F))*(T>=0?1:-1)}return Mt(r).y+C}});let pe={},Jt={};const ge=()=>{pe={},Jt={}},oe=(w,r)=>{const k=(0,l.m)((0,l.c)().flowchart.htmlLabels),Z=r.labelType==="markdown"?(0,R.c)(w,r.label,{style:r.labelStyle,useHtmlLabels:k,addSvgBackground:!0}):Ze(r.label,r.labelStyle);l.l.info("abc82",r,r.labelType);const C=w.insert("g").attr("class","edgeLabel"),F=C.insert("g").attr("class","label");F.node().appendChild(Z);let T=Z.getBBox();if(k){const S=Z.children[0],M=(0,O.Ys)(Z);T=S.getBoundingClientRect(),M.attr("width",T.width),M.attr("height",T.height)}F.attr("transform","translate("+-T.width/2+", "+-T.height/2+")"),pe[r.id]=C,r.width=T.width,r.height=T.height;let G;if(r.startLabelLeft){const S=Ze(r.startLabelLeft,r.labelStyle),M=w.insert("g").attr("class","edgeTerminals"),W=M.insert("g").attr("class","inner");G=W.node().appendChild(S);const nt=S.getBBox();W.attr("transform","translate("+-nt.width/2+", "+-nt.height/2+")"),Jt[r.id]||(Jt[r.id]={}),Jt[r.id].startLeft=M,ke(G,r.startLabelLeft)}if(r.startLabelRight){const S=Ze(r.startLabelRight,r.labelStyle),M=w.insert("g").attr("class","edgeTerminals"),W=M.insert("g").attr("class","inner");G=M.node().appendChild(S),W.node().appendChild(S);const nt=S.getBBox();W.attr("transform","translate("+-nt.width/2+", "+-nt.height/2+")"),Jt[r.id]||(Jt[r.id]={}),Jt[r.id].startRight=M,ke(G,r.startLabelRight)}if(r.endLabelLeft){const S=Ze(r.endLabelLeft,r.labelStyle),M=w.insert("g").attr("class","edgeTerminals"),W=M.insert("g").attr("class","inner");G=W.node().appendChild(S);const nt=S.getBBox();W.attr("transform","translate("+-nt.width/2+", "+-nt.height/2+")"),M.node().appendChild(S),Jt[r.id]||(Jt[r.id]={}),Jt[r.id].endLeft=M,ke(G,r.endLabelLeft)}if(r.endLabelRight){const S=Ze(r.endLabelRight,r.labelStyle),M=w.insert("g").attr("class","edgeTerminals"),W=M.insert("g").attr("class","inner");G=W.node().appendChild(S);const nt=S.getBBox();W.attr("transform","translate("+-nt.width/2+", "+-nt.height/2+")"),M.node().appendChild(S),Jt[r.id]||(Jt[r.id]={}),Jt[r.id].endRight=M,ke(G,r.endLabelRight)}return Z};function ke(w,r){(0,l.c)().flowchart.htmlLabels&&w&&(w.style.width=r.length*9+"px",w.style.height="12px")}const we=(w,r)=>{l.l.info("Moving label abc78 ",w.id,w.label,pe[w.id]);let k=r.updatedPath?r.updatedPath:r.originalPath;if(w.label){const Z=pe[w.id];let C=w.x,F=w.y;if(k){const T=l.u.calcLabelPosition(k);l.l.info("Moving label "+w.label+" from (",C,",",F,") to (",T.x,",",T.y,") abc78"),r.updatedPath&&(C=T.x,F=T.y)}Z.attr("transform","translate("+C+", "+F+")")}if(w.startLabelLeft){const Z=Jt[w.id].startLeft;let C=w.x,F=w.y;if(k){const T=l.u.calcTerminalLabelPosition(w.arrowTypeStart?10:0,"start_left",k);C=T.x,F=T.y}Z.attr("transform","translate("+C+", "+F+")")}if(w.startLabelRight){const Z=Jt[w.id].startRight;let C=w.x,F=w.y;if(k){const T=l.u.calcTerminalLabelPosition(w.arrowTypeStart?10:0,"start_right",k);C=T.x,F=T.y}Z.attr("transform","translate("+C+", "+F+")")}if(w.endLabelLeft){const Z=Jt[w.id].endLeft;let C=w.x,F=w.y;if(k){const T=l.u.calcTerminalLabelPosition(w.arrowTypeEnd?10:0,"end_left",k);C=T.x,F=T.y}Z.attr("transform","translate("+C+", "+F+")")}if(w.endLabelRight){const Z=Jt[w.id].endRight;let C=w.x,F=w.y;if(k){const T=l.u.calcTerminalLabelPosition(w.arrowTypeEnd?10:0,"end_right",k);C=T.x,F=T.y}Z.attr("transform","translate("+C+", "+F+")")}},Pe=(w,r)=>{const k=w.x,Z=w.y,C=Math.abs(r.x-k),F=Math.abs(r.y-Z),T=w.width/2,G=w.height/2;return C>=T||F>=G},Be=(w,r,k)=>{l.l.warn(`intersection calc abc89:
outsidePoint: ${JSON.stringify(r)}
insidePoint : ${JSON.stringify(k)}
node : x:${w.x} y:${w.y} w:${w.width} h:${w.height}`);const Z=w.x,C=w.y,F=Math.abs(Z-k.x),T=w.width/2;let G=k.x<r.x?T-F:T+F;const S=w.height/2,M=Math.abs(r.y-k.y),W=Math.abs(r.x-k.x);if(Math.abs(C-r.y)*T>Math.abs(Z-r.x)*S){let nt=k.y<r.y?r.y-S-C:C-S-r.y;G=W*nt/M;const dt={x:k.x<r.x?k.x+G:k.x-W+G,y:k.y<r.y?k.y+M-nt:k.y-M+nt};return G===0&&(dt.x=r.x,dt.y=r.y),W===0&&(dt.x=r.x),M===0&&(dt.y=r.y),l.l.warn(`abc89 topp/bott calc, Q ${M}, q ${nt}, R ${W}, r ${G}`,dt),dt}else{k.x<r.x?G=r.x-T-Z:G=Z-T-r.x;let nt=M*G/W,dt=k.x<r.x?k.x+W-G:k.x-W+G,St=k.y<r.y?k.y+nt:k.y-nt;return l.l.warn(`sides calc abc89, Q ${M}, q ${nt}, R ${W}, r ${G}`,{_x:dt,_y:St}),G===0&&(dt=r.x,St=r.y),W===0&&(dt=r.x),M===0&&(St=r.y),{x:dt,y:St}}},Zt=(w,r)=>{l.l.warn("abc88 cutPathAtIntersect",w,r);let k=[],Z=w[0],C=!1;return w.forEach(F=>{if(l.l.info("abc88 checking point",F,r),!Pe(r,F)&&!C){const T=Be(r,Z,F);l.l.warn("abc88 inside",F,Z,T),l.l.warn("abc88 intersection",T);let G=!1;k.forEach(S=>{G=G||S.x===T.x&&S.y===T.y}),k.some(S=>S.x===T.x&&S.y===T.y)?l.l.warn("abc88 no intersect",T,k):k.push(T),C=!0}else l.l.warn("abc88 outside",F,Z),Z=F,C||k.push(F)}),l.l.warn("abc88 returning points",k),k},rn=function(w,r,k,Z,C,F,T){let G=k.points,S=!1;const M=F.node(r.v);var W=F.node(r.w);l.l.info("abc88 InsertEdge: ",k),W.intersect&&M.intersect&&(G=G.slice(1,k.points.length-1),G.unshift(M.intersect(G[0])),l.l.info("Last point",G[G.length-1],W,W.intersect(G[G.length-1])),G.push(W.intersect(G[G.length-1]))),k.toCluster&&(l.l.info("to cluster abc88",Z[k.toCluster]),G=Zt(k.points,Z[k.toCluster].node),S=!0),k.fromCluster&&(l.l.info("from cluster abc88",Z[k.fromCluster]),G=Zt(G.reverse(),Z[k.fromCluster].node).reverse(),S=!0);const nt=G.filter(Q=>!Number.isNaN(Q.y));let dt=O.$0Z;k.curve&&(C==="graph"||C==="flowchart")&&(dt=k.curve);const{x:St,y:ne}=Qt(k),le=(0,O.jvg)().x(St).y(ne).curve(dt);let te;switch(k.thickness){case"normal":te="edge-thickness-normal";break;case"thick":te="edge-thickness-thick";break;case"invisible":te="edge-thickness-thick";break;default:te=""}switch(k.pattern){case"solid":te+=" edge-pattern-solid";break;case"dotted":te+=" edge-pattern-dotted";break;case"dashed":te+=" edge-pattern-dashed";break}const Ht=w.append("path").attr("d",le(nt)).attr("id",k.id).attr("class"," "+te+(k.classes?" "+k.classes:"")).attr("style",k.style);let It="";switch(((0,l.c)().flowchart.arrowMarkerAbsolute||(0,l.c)().state.arrowMarkerAbsolute)&&(It=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,It=It.replace(/\(/g,"\\("),It=It.replace(/\)/g,"\\)")),l.l.info("arrowTypeStart",k.arrowTypeStart),l.l.info("arrowTypeEnd",k.arrowTypeEnd),k.arrowTypeStart){case"arrow_cross":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-crossStart)");break;case"arrow_point":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-pointStart)");break;case"arrow_barb":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-barbStart)");break;case"arrow_circle":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-circleStart)");break;case"aggregation":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-aggregationStart)");break;case"extension":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-extensionStart)");break;case"composition":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-compositionStart)");break;case"dependency":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-dependencyStart)");break;case"lollipop":Ht.attr("marker-start","url("+It+"#"+T+"_"+C+"-lollipopStart)");break}switch(k.arrowTypeEnd){case"arrow_cross":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-crossEnd)");break;case"arrow_point":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-pointEnd)");break;case"arrow_barb":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-barbEnd)");break;case"arrow_circle":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-circleEnd)");break;case"aggregation":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-aggregationEnd)");break;case"extension":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-extensionEnd)");break;case"composition":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-compositionEnd)");break;case"dependency":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-dependencyEnd)");break;case"lollipop":Ht.attr("marker-end","url("+It+"#"+T+"_"+C+"-lollipopEnd)");break}let _t={};return S&&(_t.updatedPath=G),_t.originalPath=k.points,_t}},"./node_modules/mermaid/dist/flowDb-fa1288b0.js":function(be,xt,c){c.d(xt,{d:function(){return Ne},f:function(){return Ye},p:function(){return L}});var l=c("./node_modules/d3/src/index.js"),O=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js"),R=function(){var y=function(or,de,ve,Ie){for(ve=ve||{},Ie=or.length;Ie--;ve[or[Ie]]=de);return ve},wt=[1,4],b=[1,3],Y=[1,5],gt=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Mt=[2,2],Qt=[1,13],pe=[1,14],Jt=[1,15],ge=[1,16],oe=[1,23],ke=[1,25],we=[1,26],Pe=[1,27],Be=[1,49],Zt=[1,48],rn=[1,29],w=[1,30],r=[1,31],k=[1,32],Z=[1,33],C=[1,44],F=[1,46],T=[1,42],G=[1,47],S=[1,43],M=[1,50],W=[1,45],nt=[1,51],dt=[1,52],St=[1,34],ne=[1,35],le=[1,36],te=[1,37],Ht=[1,57],It=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],_t=[1,61],Q=[1,60],it=[1,62],Dt=[8,9,11,73,75],ft=[1,88],at=[1,93],I=[1,92],Wt=[1,89],H=[1,85],Fe=[1,91],fn=[1,87],bn=[1,94],zn=[1,90],$e=[1,95],Ue=[1,86],kn=[8,9,10,11,73,75],an=[8,9,10,11,44,73,75],Se=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Qn=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],mn=[42,58,86,99,102,103,106,108,111,112,113],vt=[1,121],ye=[1,120],Ge=[1,128],An=[1,142],Cn=[1,143],cn=[1,144],en=[1,145],Nn=[1,130],Bn=[1,132],In=[1,136],Un=[1,137],rr=[1,138],wr=[1,139],Sr=[1,140],vr=[1,141],gr=[1,146],Jn=[1,147],qn=[1,126],Zr=[1,127],jr=[1,134],Wr=[1,129],Nr=[1,133],Pr=[1,131],Rr=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Kr=[1,149],yn=[8,9,11],Kn=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],Xe=[1,169],Rn=[1,165],Mn=[1,166],Qe=[1,170],Je=[1,167],qe=[1,168],Er=[75,113,116],on=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Yr=[10,103],$n=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],lr=[1,235],ir=[1,233],sr=[1,237],ur=[1,231],Hn=[1,232],ar=[1,234],cr=[1,236],Vn=[1,238],dr=[1,255],Mr=[8,9,11,103],tr=[8,9,10,11,58,81,102,103,106,107,108,109],Xn={trace:function(){},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,FirstStmtSeperator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,verticeStatement: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,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$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",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},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],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,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],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(de,ve,Ie,Kt,_n,E,kr){var D=E.length-1;switch(_n){case 2:this.$=[];break;case 3:(!Array.isArray(E[D])||E[D].length>0)&&E[D-1].push(E[D]),this.$=E[D-1];break;case 4:case 176:this.$=E[D];break;case 11:Kt.setDirection("TB"),this.$="TB";break;case 12:Kt.setDirection(E[D-1]),this.$=E[D-1];break;case 27:this.$=E[D-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Kt.addSubGraph(E[D-6],E[D-1],E[D-4]);break;case 34:this.$=Kt.addSubGraph(E[D-3],E[D-1],E[D-3]);break;case 35:this.$=Kt.addSubGraph(void 0,E[D-1],void 0);break;case 37:this.$=E[D].trim(),Kt.setAccTitle(this.$);break;case 38:case 39:this.$=E[D].trim(),Kt.setAccDescription(this.$);break;case 43:Kt.addLink(E[D-2].stmt,E[D],E[D-1]),this.$={stmt:E[D],nodes:E[D].concat(E[D-2].nodes)};break;case 44:Kt.addLink(E[D-3].stmt,E[D-1],E[D-2]),this.$={stmt:E[D-1],nodes:E[D-1].concat(E[D-3].nodes)};break;case 45:this.$={stmt:E[D-1],nodes:E[D-1]};break;case 46:this.$={stmt:E[D],nodes:E[D]};break;case 47:this.$=[E[D]];break;case 48:this.$=E[D-4].concat(E[D]);break;case 49:this.$=E[D];break;case 50:this.$=E[D-2],Kt.setClass(E[D-2],E[D]);break;case 51:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"square");break;case 52:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"doublecircle");break;case 53:this.$=E[D-5],Kt.addVertex(E[D-5],E[D-2],"circle");break;case 54:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"ellipse");break;case 55:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"stadium");break;case 56:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"subroutine");break;case 57:this.$=E[D-7],Kt.addVertex(E[D-7],E[D-1],"rect",void 0,void 0,void 0,Object.fromEntries([[E[D-5],E[D-3]]]));break;case 58:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"cylinder");break;case 59:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"round");break;case 60:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"diamond");break;case 61:this.$=E[D-5],Kt.addVertex(E[D-5],E[D-2],"hexagon");break;case 62:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"odd");break;case 63:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"trapezoid");break;case 64:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"inv_trapezoid");break;case 65:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"lean_right");break;case 66:this.$=E[D-3],Kt.addVertex(E[D-3],E[D-1],"lean_left");break;case 67:this.$=E[D],Kt.addVertex(E[D]);break;case 68:E[D-1].text=E[D],this.$=E[D-1];break;case 69:case 70:E[D-2].text=E[D-1],this.$=E[D-2];break;case 71:this.$=E[D];break;case 72:var Tn=Kt.destructLink(E[D],E[D-2]);this.$={type:Tn.type,stroke:Tn.stroke,length:Tn.length,text:E[D-1]};break;case 73:this.$={text:E[D],type:"text"};break;case 74:this.$={text:E[D-1].text+""+E[D],type:E[D-1].type};break;case 75:this.$={text:E[D],type:"string"};break;case 76:this.$={text:E[D],type:"markdown"};break;case 77:var Tn=Kt.destructLink(E[D]);this.$={type:Tn.type,stroke:Tn.stroke,length:Tn.length};break;case 78:this.$=E[D-1];break;case 79:this.$={text:E[D],type:"text"};break;case 80:this.$={text:E[D-1].text+""+E[D],type:E[D-1].type};break;case 81:this.$={text:E[D],type:"string"};break;case 82:case 97:this.$={text:E[D],type:"markdown"};break;case 94:this.$={text:E[D],type:"text"};break;case 95:this.$={text:E[D-1].text+""+E[D],type:E[D-1].type};break;case 96:this.$={text:E[D],type:"text"};break;case 98:this.$=E[D-4],Kt.addClass(E[D-2],E[D]);break;case 99:this.$=E[D-4],Kt.setClass(E[D-2],E[D]);break;case 100:case 108:this.$=E[D-1],Kt.setClickEvent(E[D-1],E[D]);break;case 101:case 109:this.$=E[D-3],Kt.setClickEvent(E[D-3],E[D-2]),Kt.setTooltip(E[D-3],E[D]);break;case 102:this.$=E[D-2],Kt.setClickEvent(E[D-2],E[D-1],E[D]);break;case 103:this.$=E[D-4],Kt.setClickEvent(E[D-4],E[D-3],E[D-2]),Kt.setTooltip(E[D-4],E[D]);break;case 104:this.$=E[D-2],Kt.setLink(E[D-2],E[D]);break;case 105:this.$=E[D-4],Kt.setLink(E[D-4],E[D-2]),Kt.setTooltip(E[D-4],E[D]);break;case 106:this.$=E[D-4],Kt.setLink(E[D-4],E[D-2],E[D]);break;case 107:this.$=E[D-6],Kt.setLink(E[D-6],E[D-4],E[D]),Kt.setTooltip(E[D-6],E[D-2]);break;case 110:this.$=E[D-1],Kt.setLink(E[D-1],E[D]);break;case 111:this.$=E[D-3],Kt.setLink(E[D-3],E[D-2]),Kt.setTooltip(E[D-3],E[D]);break;case 112:this.$=E[D-3],Kt.setLink(E[D-3],E[D-2],E[D]);break;case 113:this.$=E[D-5],Kt.setLink(E[D-5],E[D-4],E[D]),Kt.setTooltip(E[D-5],E[D-2]);break;case 114:this.$=E[D-4],Kt.addVertex(E[D-2],void 0,void 0,E[D]);break;case 115:this.$=E[D-4],Kt.updateLink([E[D-2]],E[D]);break;case 116:this.$=E[D-4],Kt.updateLink(E[D-2],E[D]);break;case 117:this.$=E[D-8],Kt.updateLinkInterpolate([E[D-6]],E[D-2]),Kt.updateLink([E[D-6]],E[D]);break;case 118:this.$=E[D-8],Kt.updateLinkInterpolate(E[D-6],E[D-2]),Kt.updateLink(E[D-6],E[D]);break;case 119:this.$=E[D-6],Kt.updateLinkInterpolate([E[D-4]],E[D]);break;case 120:this.$=E[D-6],Kt.updateLinkInterpolate(E[D-4],E[D]);break;case 121:case 123:this.$=[E[D]];break;case 122:case 124:E[D-2].push(E[D]),this.$=E[D-2];break;case 126:this.$=E[D-1]+E[D];break;case 174:this.$=E[D];break;case 175:this.$=E[D-1]+""+E[D];break;case 177:this.$=E[D-1]+""+E[D];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:wt,10:b,12:Y},{1:[3]},y(gt,Mt,{5:6}),{4:7,9:wt,10:b,12:Y},{4:8,9:wt,10:b,12:Y},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:Qt,9:pe,10:Jt,11:ge,20:17,22:18,23:19,24:20,25:21,26:22,27:oe,33:24,34:ke,36:we,38:Pe,40:28,41:38,42:Be,43:39,45:40,58:Zt,81:rn,82:w,83:r,84:k,85:Z,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt,118:St,119:ne,120:le,121:te},y(gt,[2,9]),y(gt,[2,10]),y(gt,[2,11]),{8:[1,54],9:[1,55],10:Ht,15:53,18:56},y(It,[2,3]),y(It,[2,4]),y(It,[2,5]),y(It,[2,6]),y(It,[2,7]),y(It,[2,8]),{8:_t,9:Q,11:it,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:_t,9:Q,11:it,21:66},{8:_t,9:Q,11:it,21:67},{8:_t,9:Q,11:it,21:68},{8:_t,9:Q,11:it,21:69},{8:_t,9:Q,11:it,21:70},{8:_t,9:Q,10:[1,71],11:it,21:72},y(It,[2,36]),{35:[1,73]},{37:[1,74]},y(It,[2,39]),y(Dt,[2,46],{18:75,10:Ht}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:ft,42:at,58:I,77:[1,83],86:Wt,92:[1,80],94:[1,81],98:82,102:H,103:Fe,106:fn,108:bn,111:zn,112:$e,113:Ue,117:84},y(It,[2,178]),y(It,[2,179]),y(It,[2,180]),y(It,[2,181]),y(kn,[2,47]),y(kn,[2,49],{44:[1,96]}),y(an,[2,67],{110:109,29:[1,97],42:Be,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:Zt,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:F,102:T,103:G,106:S,108:M,111:W,112:nt,113:dt}),y(Se,[2,174]),y(Se,[2,135]),y(Se,[2,136]),y(Se,[2,137]),y(Se,[2,138]),y(Se,[2,139]),y(Se,[2,140]),y(Se,[2,141]),y(Se,[2,142]),y(Se,[2,143]),y(Se,[2,144]),y(Se,[2,145]),y(gt,[2,12]),y(gt,[2,18]),y(gt,[2,19]),{9:[1,110]},y(Qn,[2,26],{18:111,10:Ht}),y(It,[2,27]),{40:112,41:38,42:Be,43:39,45:40,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},y(It,[2,40]),y(It,[2,41]),y(It,[2,42]),y(mn,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:vt,116:ye},y([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),y(It,[2,28]),y(It,[2,29]),y(It,[2,30]),y(It,[2,31]),y(It,[2,32]),{10:Ge,12:An,14:Cn,27:cn,28:122,32:en,42:Nn,58:Bn,73:In,77:[1,124],78:[1,125],80:135,81:Un,82:rr,83:wr,84:Sr,85:vr,86:gr,87:Jn,88:123,102:qn,106:Zr,108:jr,111:Wr,112:Nr,113:Pr},y(Rr,Mt,{5:148}),y(It,[2,37]),y(It,[2,38]),y(Dt,[2,45],{42:Kr}),{42:Be,45:150,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},{99:[1,151],100:152,102:[1,153]},{42:Be,45:154,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},{42:Be,45:155,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},y(yn,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},y(yn,[2,108],{117:160,10:[1,159],14:ft,42:at,58:I,86:Wt,102:H,103:Fe,106:fn,108:bn,111:zn,112:$e,113:Ue}),y(yn,[2,110],{10:[1,161]}),y(Kn,[2,176]),y(Kn,[2,163]),y(Kn,[2,164]),y(Kn,[2,165]),y(Kn,[2,166]),y(Kn,[2,167]),y(Kn,[2,168]),y(Kn,[2,169]),y(Kn,[2,170]),y(Kn,[2,171]),y(Kn,[2,172]),y(Kn,[2,173]),{42:Be,45:162,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},{30:163,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:171,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:173,48:[1,172],65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:174,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:175,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:176,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{106:[1,177]},{30:178,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:179,63:[1,180],65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:181,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:182,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{30:183,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},y(Se,[2,175]),y(gt,[2,20]),y(Qn,[2,25]),y(Dt,[2,43],{18:184,10:Ht}),y(mn,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{75:[1,188],76:189,113:vt,116:ye},y(Er,[2,73]),y(Er,[2,75]),y(Er,[2,76]),y(Er,[2,161]),y(Er,[2,162]),{8:_t,9:Q,10:Ge,11:it,12:An,14:Cn,21:191,27:cn,29:[1,190],32:en,42:Nn,58:Bn,73:In,80:135,81:Un,82:rr,83:wr,84:Sr,85:vr,86:gr,87:Jn,88:192,102:qn,106:Zr,108:jr,111:Wr,112:Nr,113:Pr},y(on,[2,94]),y(on,[2,96]),y(on,[2,97]),y(on,[2,150]),y(on,[2,151]),y(on,[2,152]),y(on,[2,153]),y(on,[2,154]),y(on,[2,155]),y(on,[2,156]),y(on,[2,157]),y(on,[2,158]),y(on,[2,159]),y(on,[2,160]),y(on,[2,83]),y(on,[2,84]),y(on,[2,85]),y(on,[2,86]),y(on,[2,87]),y(on,[2,88]),y(on,[2,89]),y(on,[2,90]),y(on,[2,91]),y(on,[2,92]),y(on,[2,93]),{6:11,7:12,8:Qt,9:pe,10:Jt,11:ge,20:17,22:18,23:19,24:20,25:21,26:22,27:oe,32:[1,193],33:24,34:ke,36:we,38:Pe,40:28,41:38,42:Be,43:39,45:40,58:Zt,81:rn,82:w,83:r,84:k,85:Z,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt,118:St,119:ne,120:le,121:te},{10:Ht,18:194},{10:[1,195],42:Be,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:109,111:W,112:nt,113:dt},{10:[1,196]},{10:[1,197],103:[1,198]},y(Yr,[2,121]),{10:[1,199],42:Be,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:109,111:W,112:nt,113:dt},{10:[1,200],42:Be,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:109,111:W,112:nt,113:dt},{77:[1,201]},y(yn,[2,102],{10:[1,202]}),y(yn,[2,104],{10:[1,203]}),{77:[1,204]},y(Kn,[2,177]),{77:[1,205],95:[1,206]},y(kn,[2,50],{110:109,42:Be,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,111:W,112:nt,113:dt}),{31:[1,207],65:Xe,79:208,113:Qe,114:Je,115:qe},y($n,[2,79]),y($n,[2,81]),y($n,[2,82]),y($n,[2,146]),y($n,[2,147]),y($n,[2,148]),y($n,[2,149]),{47:[1,209],65:Xe,79:208,113:Qe,114:Je,115:qe},{30:210,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{49:[1,211],65:Xe,79:208,113:Qe,114:Je,115:qe},{51:[1,212],65:Xe,79:208,113:Qe,114:Je,115:qe},{53:[1,213],65:Xe,79:208,113:Qe,114:Je,115:qe},{55:[1,214],65:Xe,79:208,113:Qe,114:Je,115:qe},{58:[1,215]},{62:[1,216],65:Xe,79:208,113:Qe,114:Je,115:qe},{64:[1,217],65:Xe,79:208,113:Qe,114:Je,115:qe},{30:218,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},{31:[1,219],65:Xe,79:208,113:Qe,114:Je,115:qe},{65:Xe,67:[1,220],69:[1,221],79:208,113:Qe,114:Je,115:qe},{65:Xe,67:[1,223],69:[1,222],79:208,113:Qe,114:Je,115:qe},y(Dt,[2,44],{42:Kr}),y(mn,[2,70]),y(mn,[2,69]),{60:[1,224],65:Xe,79:208,113:Qe,114:Je,115:qe},y(mn,[2,72]),y(Er,[2,74]),{30:225,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},y(Rr,Mt,{5:226}),y(on,[2,95]),y(It,[2,35]),{41:227,42:Be,43:39,45:40,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},{10:lr,58:ir,81:sr,89:228,102:ur,104:229,105:230,106:Hn,107:ar,108:cr,109:Vn},{10:lr,58:ir,81:sr,89:239,101:[1,240],102:ur,104:229,105:230,106:Hn,107:ar,108:cr,109:Vn},{10:lr,58:ir,81:sr,89:241,101:[1,242],102:ur,104:229,105:230,106:Hn,107:ar,108:cr,109:Vn},{102:[1,243]},{10:lr,58:ir,81:sr,89:244,102:ur,104:229,105:230,106:Hn,107:ar,108:cr,109:Vn},{42:Be,45:245,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt},y(yn,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},y(yn,[2,109]),y(yn,[2,111],{10:[1,249]}),y(yn,[2,112]),y(an,[2,51]),y($n,[2,80]),y(an,[2,52]),{49:[1,250],65:Xe,79:208,113:Qe,114:Je,115:qe},y(an,[2,59]),y(an,[2,54]),y(an,[2,55]),y(an,[2,56]),{106:[1,251]},y(an,[2,58]),y(an,[2,60]),{64:[1,252],65:Xe,79:208,113:Qe,114:Je,115:qe},y(an,[2,62]),y(an,[2,63]),y(an,[2,65]),y(an,[2,64]),y(an,[2,66]),y([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:Xe,79:208,113:Qe,114:Je,115:qe},{6:11,7:12,8:Qt,9:pe,10:Jt,11:ge,20:17,22:18,23:19,24:20,25:21,26:22,27:oe,32:[1,254],33:24,34:ke,36:we,38:Pe,40:28,41:38,42:Be,43:39,45:40,58:Zt,81:rn,82:w,83:r,84:k,85:Z,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt,118:St,119:ne,120:le,121:te},y(kn,[2,48]),y(yn,[2,114],{103:dr}),y(Mr,[2,123],{105:256,10:lr,58:ir,81:sr,102:ur,106:Hn,107:ar,108:cr,109:Vn}),y(tr,[2,125]),y(tr,[2,127]),y(tr,[2,128]),y(tr,[2,129]),y(tr,[2,130]),y(tr,[2,131]),y(tr,[2,132]),y(tr,[2,133]),y(tr,[2,134]),y(yn,[2,115],{103:dr}),{10:[1,257]},y(yn,[2,116],{103:dr}),{10:[1,258]},y(Yr,[2,122]),y(yn,[2,98],{103:dr}),y(yn,[2,99],{110:109,42:Be,58:Zt,86:C,99:F,102:T,103:G,106:S,108:M,111:W,112:nt,113:dt}),y(yn,[2,103]),y(yn,[2,105],{10:[1,259]}),y(yn,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:_t,9:Q,11:it,21:264},y(It,[2,34]),{10:lr,58:ir,81:sr,102:ur,104:265,105:230,106:Hn,107:ar,108:cr,109:Vn},y(tr,[2,126]),{14:ft,42:at,58:I,86:Wt,98:266,102:H,103:Fe,106:fn,108:bn,111:zn,112:$e,113:Ue,117:84},{14:ft,42:at,58:I,86:Wt,98:267,102:H,103:Fe,106:fn,108:bn,111:zn,112:$e,113:Ue,117:84},{95:[1,268]},y(yn,[2,113]),y(an,[2,53]),{30:269,65:Xe,77:Rn,78:Mn,79:164,113:Qe,114:Je,115:qe},y(an,[2,61]),y(Rr,Mt,{5:270}),y(Mr,[2,124],{105:256,10:lr,58:ir,81:sr,102:ur,106:Hn,107:ar,108:cr,109:Vn}),y(yn,[2,119],{117:160,10:[1,271],14:ft,42:at,58:I,86:Wt,102:H,103:Fe,106:fn,108:bn,111:zn,112:$e,113:Ue}),y(yn,[2,120],{117:160,10:[1,272],14:ft,42:at,58:I,86:Wt,102:H,103:Fe,106:fn,108:bn,111:zn,112:$e,113:Ue}),y(yn,[2,107]),{31:[1,273],65:Xe,79:208,113:Qe,114:Je,115:qe},{6:11,7:12,8:Qt,9:pe,10:Jt,11:ge,20:17,22:18,23:19,24:20,25:21,26:22,27:oe,32:[1,274],33:24,34:ke,36:we,38:Pe,40:28,41:38,42:Be,43:39,45:40,58:Zt,81:rn,82:w,83:r,84:k,85:Z,86:C,99:F,102:T,103:G,106:S,108:M,110:41,111:W,112:nt,113:dt,118:St,119:ne,120:le,121:te},{10:lr,58:ir,81:sr,89:275,102:ur,104:229,105:230,106:Hn,107:ar,108:cr,109:Vn},{10:lr,58:ir,81:sr,89:276,102:ur,104:229,105:230,106:Hn,107:ar,108:cr,109:Vn},y(an,[2,57]),y(It,[2,33]),y(yn,[2,117],{103:dr}),y(yn,[2,118],{103:dr})],defaultActions:{},parseError:function(de,ve){if(ve.recoverable)this.trace(de);else{var Ie=new Error(de);throw Ie.hash=ve,Ie}},parse:function(de){var ve=this,Ie=[0],Kt=[],_n=[null],E=[],kr=this.table,D="",Tn=0,Cr=0,Xr=2,Fr=1,Qr=E.slice.call(arguments,1),On=Object.create(this.lexer),pr={yy:{}};for(var zr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zr)&&(pr.yy[zr]=this.yy[zr]);On.setInput(de,pr.yy),pr.yy.lexer=On,pr.yy.parser=this,typeof On.yylloc=="undefined"&&(On.yylloc={});var t=On.yylloc;E.push(t);var o=On.options&&On.options.ranges;typeof pr.yy.parseError=="function"?this.parseError=pr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function s(){var N;return N=Kt.pop()||On.lex()||Fr,typeof N!="number"&&(N instanceof Array&&(Kt=N,N=Kt.pop()),N=ve.symbols_[N]||N),N}for(var a,f,h,p,A={},q,V,P,ot;;){if(f=Ie[Ie.length-1],this.defaultActions[f]?h=this.defaultActions[f]:((a===null||typeof a=="undefined")&&(a=s()),h=kr[f]&&kr[f][a]),typeof h=="undefined"||!h.length||!h[0]){var J="";ot=[];for(q in kr[f])this.terminals_[q]&&q>Xr&&ot.push("'"+this.terminals_[q]+"'");On.showPosition?J="Parse error on line "+(Tn+1)+`:
`+On.showPosition()+`
Expecting `+ot.join(", ")+", got '"+(this.terminals_[a]||a)+"'":J="Parse error on line "+(Tn+1)+": Unexpected "+(a==Fr?"end of input":"'"+(this.terminals_[a]||a)+"'"),this.parseError(J,{text:On.match,token:this.terminals_[a]||a,line:On.yylineno,loc:t,expected:ot})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+a);switch(h[0]){case 1:Ie.push(a),_n.push(On.yytext),E.push(On.yylloc),Ie.push(h[1]),a=null,Cr=On.yyleng,D=On.yytext,Tn=On.yylineno,t=On.yylloc;break;case 2:if(V=this.productions_[h[1]][1],A.$=_n[_n.length-V],A._$={first_line:E[E.length-(V||1)].first_line,last_line:E[E.length-1].last_line,first_column:E[E.length-(V||1)].first_column,last_column:E[E.length-1].last_column},o&&(A._$.range=[E[E.length-(V||1)].range[0],E[E.length-1].range[1]]),p=this.performAction.apply(A,[D,Cr,Tn,pr.yy,h[1],_n,E].concat(Qr)),typeof p!="undefined")return p;V&&(Ie=Ie.slice(0,-1*V*2),_n=_n.slice(0,-1*V),E=E.slice(0,-1*V)),Ie.push(this.productions_[h[1]][0]),_n.push(A.$),E.push(A._$),P=kr[Ie[Ie.length-2]][Ie[Ie.length-1]],Ie.push(P);break;case 3:return!0}}return!0}},Vr=function(){var or={EOF:1,parseError:function(ve,Ie){if(this.yy.parser)this.yy.parser.parseError(ve,Ie);else throw new Error(ve)},setInput:function(de,ve){return this.yy=ve||this.yy||{},this._input=de,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},input:function(){var de=this._input[0];this.yytext+=de,this.yyleng++,this.offset++,this.match+=de,this.matched+=de;var ve=de.match(/(?:\r\n?|\n).*/g);return ve?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),de},unput:function(de){var ve=de.length,Ie=de.split(/(?:\r\n?|\n)/g);this._input=de+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ve),this.offset-=ve;var Kt=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),Ie.length-1&&(this.yylineno-=Ie.length-1);var _n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ie?(Ie.length===Kt.length?this.yylloc.first_column:0)+Kt[Kt.length-Ie.length].length-Ie[0].length:this.yylloc.first_column-ve},this.options.ranges&&(this.yylloc.range=[_n[0],_n[0]+this.yyleng-ve]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(de){this.unput(this.match.slice(de))},pastInput:function(){var de=this.matched.substr(0,this.matched.length-this.match.length);return(de.length>20?"...":"")+de.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var de=this.match;return de.length<20&&(de+=this._input.substr(0,20-de.length)),(de.substr(0,20)+(de.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var de=this.pastInput(),ve=new Array(de.length+1).join("-");return de+this.upcomingInput()+`
`+ve+"^"},test_match:function(de,ve){var Ie,Kt,_n;if(this.options.backtrack_lexer&&(_n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_n.yylloc.range=this.yylloc.range.slice(0))),Kt=de[0].match(/(?:\r\n?|\n).*/g),Kt&&(this.yylineno+=Kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Kt?Kt[Kt.length-1].length-Kt[Kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+de[0].length},this.yytext+=de[0],this.match+=de[0],this.matches=de,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(de[0].length),this.matched+=de[0],Ie=this.performAction.call(this,this.yy,this,ve,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ie)return Ie;if(this._backtrack){for(var E in _n)this[E]=_n[E];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var de,ve,Ie,Kt;this._more||(this.yytext="",this.match="");for(var _n=this._currentRules(),E=0;E<_n.length;E++)if(Ie=this._input.match(this.rules[_n[E]]),Ie&&(!ve||Ie[0].length>ve[0].length)){if(ve=Ie,Kt=E,this.options.backtrack_lexer){if(de=this.test_match(Ie,_n[E]),de!==!1)return de;if(this._backtrack){ve=!1;continue}else return!1}else if(!this.options.flex)break}return ve?(de=this.test_match(ve,_n[Kt]),de!==!1?de:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ve=this.next();return ve||this.lex()},begin:function(ve){this.conditionStack.push(ve)},popState:function(){var ve=this.conditionStack.length-1;return ve>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ve){return ve=this.conditionStack.length-1-Math.abs(ve||0),ve>=0?this.conditionStack[ve]:"INITIAL"},pushState:function(ve){this.begin(ve)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ve,Ie,Kt,_n){switch(Kt){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:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return ve.lex.firstGraph()&&this.begin("dir"),12;case 30:return ve.lex.firstGraph()&&this.begin("dir"),12;case 31:return ve.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|(?!\)+))/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return or}();Xn.lexer=Vr;function Dr(){this.yy={}}return Dr.prototype=Xn,Xn.Parser=Dr,new Dr}();R.parser=R;const L=R,mt="flowchart-";let tt=0,bt=(0,O.c)(),U={},ct=[],kt={},Nt=[],lt={},Ft={},At=0,$t=!0,ue,ce,Le=[];const Ze=y=>O.e.sanitizeText(y,bt),Vt=function(y){const wt=Object.keys(U);for(const b of wt)if(U[b].id===y)return U[b].domId;return y},ht=function(y,wt,b,Y,gt,Mt,Qt={}){let pe,Jt=y;Jt!==void 0&&Jt.trim().length!==0&&(U[Jt]===void 0&&(U[Jt]={id:Jt,labelType:"text",domId:mt+Jt+"-"+tt,styles:[],classes:[]}),tt++,wt!==void 0?(bt=(0,O.c)(),pe=Ze(wt.text.trim()),U[Jt].labelType=wt.type,pe[0]==='"'&&pe[pe.length-1]==='"'&&(pe=pe.substring(1,pe.length-1)),U[Jt].text=pe):U[Jt].text===void 0&&(U[Jt].text=y),b!==void 0&&(U[Jt].type=b),Y!=null&&Y.forEach(function(ge){U[Jt].styles.push(ge)}),gt!=null&&gt.forEach(function(ge){U[Jt].classes.push(ge)}),Mt!==void 0&&(U[Jt].dir=Mt),U[Jt].props===void 0?U[Jt].props=Qt:Qt!==void 0&&Object.assign(U[Jt].props,Qt))},re=function(y,wt,b){const Mt={start:y,end:wt,type:void 0,text:"",labelType:"text"};O.l.info("abc78 Got edge...",Mt);const Qt=b.text;Qt!==void 0&&(Mt.text=Ze(Qt.text.trim()),Mt.text[0]==='"'&&Mt.text[Mt.text.length-1]==='"'&&(Mt.text=Mt.text.substring(1,Mt.text.length-1)),Mt.labelType=Qt.type),b!==void 0&&(Mt.type=b.type,Mt.stroke=b.stroke,Mt.length=b.length),ct.push(Mt)},ze=function(y,wt,b){O.l.info("addLink (abc78)",y,wt,b);let Y,gt;for(Y=0;Y<y.length;Y++)for(gt=0;gt<wt.length;gt++)re(y[Y],wt[gt],b)},Bt=function(y,wt){y.forEach(function(b){b==="default"?ct.defaultInterpolate=wt:ct[b].interpolate=wt})},me=function(y,wt){y.forEach(function(b){b==="default"?ct.defaultStyle=wt:(O.u.isSubstringInArray("fill",wt)===-1&&wt.push("fill:none"),ct[b].style=wt)})},Rt=function(y,wt){y.split(",").forEach(function(b){kt[b]===void 0&&(kt[b]={id:b,styles:[],textStyles:[]}),wt!=null&&wt.forEach(function(Y){if(Y.match("color")){const gt=Y.replace("fill","bgFill").replace("color","fill");kt[b].textStyles.push(gt)}kt[b].styles.push(Y)})})},Te=function(y){ue=y,ue.match(/.*</)&&(ue="RL"),ue.match(/.*\^/)&&(ue="BT"),ue.match(/.*>/)&&(ue="LR"),ue.match(/.*v/)&&(ue="TB"),ue==="TD"&&(ue="TB")},he=function(y,wt){y.split(",").forEach(function(b){let Y=b;U[Y]!==void 0&&U[Y].classes.push(wt),lt[Y]!==void 0&&lt[Y].classes.push(wt)})},Ae=function(y,wt){y.split(",").forEach(function(b){wt!==void 0&&(Ft[ce==="gen-1"?Vt(b):b]=Ze(wt))})},jt=function(y,wt,b){let Y=Vt(y);if((0,O.c)().securityLevel!=="loose"||wt===void 0)return;let gt=[];if(typeof b=="string"){gt=b.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let Mt=0;Mt<gt.length;Mt++){let Qt=gt[Mt].trim();Qt.charAt(0)==='"'&&Qt.charAt(Qt.length-1)==='"'&&(Qt=Qt.substr(1,Qt.length-2)),gt[Mt]=Qt}}gt.length===0&&gt.push(y),U[y]!==void 0&&(U[y].haveCallback=!0,Le.push(function(){const Mt=document.querySelector(`[id="${Y}"]`);Mt!==null&&Mt.addEventListener("click",function(){O.u.runFunc(wt,...gt)},!1)}))},ie=function(y,wt,b){y.split(",").forEach(function(Y){U[Y]!==void 0&&(U[Y].link=O.u.formatUrl(wt,bt),U[Y].linkTarget=b)}),he(y,"clickable")},et=function(y){if(Ft.hasOwnProperty(y))return Ft[y]},m=function(y,wt,b){y.split(",").forEach(function(Y){jt(Y,wt,b)}),he(y,"clickable")},K=function(y){Le.forEach(function(wt){wt(y)})},Ct=function(){return ue.trim()},ut=function(){return U},Ot=function(){return ct},ae=function(){return kt},Xt=function(y){let wt=(0,l.Ys)(".mermaidTooltip");(wt._groups||wt)[0][0]===null&&(wt=(0,l.Ys)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,l.Ys)(y).select("svg").selectAll("g.node").on("mouseover",function(){const gt=(0,l.Ys)(this);if(gt.attr("title")===null)return;const Qt=this.getBoundingClientRect();wt.transition().duration(200).style("opacity",".9"),wt.text(gt.attr("title")).style("left",window.scrollX+Qt.left+(Qt.right-Qt.left)/2+"px").style("top",window.scrollY+Qt.top-14+document.body.scrollTop+"px"),wt.html(wt.html().replace(/&lt;br\/&gt;/g,"<br/>")),gt.classed("hover",!0)}).on("mouseout",function(){wt.transition().duration(500).style("opacity",0),(0,l.Ys)(this).classed("hover",!1)})};Le.push(Xt);const se=function(y="gen-1"){U={},kt={},ct=[],Le=[Xt],Nt=[],lt={},At=0,Ft={},$t=!0,ce=y,(0,O.t)()},We=y=>{ce=y||"gen-2"},De=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},je=function(y,wt,b){let Y=y.text.trim(),gt=b.text;y===b&&b.text.match(/\s/)&&(Y=void 0);function Mt(oe){const ke={boolean:{},number:{},string:{}},we=[];let Pe;return{nodeList:oe.filter(function(Zt){const rn=typeof Zt;return Zt.stmt&&Zt.stmt==="dir"?(Pe=Zt.value,!1):Zt.trim()===""?!1:rn in ke?ke[rn].hasOwnProperty(Zt)?!1:ke[rn][Zt]=!0:we.includes(Zt)?!1:we.push(Zt)}),dir:Pe}}let Qt=[];const{nodeList:pe,dir:Jt}=Mt(Qt.concat.apply(Qt,wt));if(Qt=pe,ce==="gen-1")for(let oe=0;oe<Qt.length;oe++)Qt[oe]=Vt(Qt[oe]);Y=Y||"subGraph"+At,gt=gt||"",gt=Ze(gt),At=At+1;const ge={id:Y,nodes:Qt,title:gt.trim(),classes:[],dir:Jt,labelType:b.type};return O.l.info("Adding",ge.id,ge.nodes,ge.dir),ge.nodes=sn(ge,Nt).nodes,Nt.push(ge),lt[Y]=ge,Y},Gt=function(y){for(const[wt,b]of Nt.entries())if(b.id===y)return wt;return-1};let Pt=-1;const tn=[],nn=function(y,wt){const b=Nt[wt].nodes;if(Pt=Pt+1,Pt>2e3)return;if(tn[Pt]=wt,Nt[wt].id===y)return{result:!0,count:0};let Y=0,gt=1;for(;Y<b.length;){const Mt=Gt(b[Y]);if(Mt>=0){const Qt=nn(y,Mt);if(Qt.result)return{result:!0,count:gt+Qt.count};gt=gt+Qt.count}Y=Y+1}return{result:!1,count:gt}},fe=function(y){return tn[y]},X=function(){Pt=-1,Nt.length>0&&nn("none",Nt.length-1)},yt=function(){return Nt},v=()=>$t?($t=!1,!0):!1,rt=y=>{let wt=y.trim(),b="arrow_open";switch(wt[0]){case"<":b="arrow_point",wt=wt.slice(1);break;case"x":b="arrow_cross",wt=wt.slice(1);break;case"o":b="arrow_circle",wt=wt.slice(1);break}let Y="normal";return wt.includes("=")&&(Y="thick"),wt.includes(".")&&(Y="dotted"),{type:b,stroke:Y}},Tt=(y,wt)=>{const b=wt.length;let Y=0;for(let gt=0;gt<b;++gt)wt[gt]===y&&++Y;return Y},zt=y=>{const wt=y.trim();let b=wt.slice(0,-1),Y="arrow_open";switch(wt.slice(-1)){case"x":Y="arrow_cross",wt[0]==="x"&&(Y="double_"+Y,b=b.slice(1));break;case">":Y="arrow_point",wt[0]==="<"&&(Y="double_"+Y,b=b.slice(1));break;case"o":Y="arrow_circle",wt[0]==="o"&&(Y="double_"+Y,b=b.slice(1));break}let gt="normal",Mt=b.length-1;b[0]==="="&&(gt="thick"),b[0]==="~"&&(gt="invisible");let Qt=Tt(".",b);return Qt&&(gt="dotted",Mt=Qt),{type:Y,stroke:gt,length:Mt}},Ut=(y,wt)=>{const b=zt(y);let Y;if(wt){if(Y=rt(wt),Y.stroke!==b.stroke)return{type:"INVALID",stroke:"INVALID"};if(Y.type==="arrow_open")Y.type=b.type;else{if(Y.type!==b.type)return{type:"INVALID",stroke:"INVALID"};Y.type="double_"+Y.type}return Y.type==="double_arrow"&&(Y.type="double_arrow_point"),Y.length=b.length,Y}return b},xe=(y,wt)=>{let b=!1;return y.forEach(Y=>{Y.nodes.indexOf(wt)>=0&&(b=!0)}),b},sn=(y,wt)=>{const b=[];return y.nodes.forEach((Y,gt)=>{xe(wt,Y)||b.push(y.nodes[gt])}),{nodes:b}},Ke={firstGraph:v},Ye={defaultConfig:()=>O.I.flowchart,setAccTitle:O.s,getAccTitle:O.g,getAccDescription:O.a,setAccDescription:O.b,addVertex:ht,lookUpDomId:Vt,addLink:ze,updateLinkInterpolate:Bt,updateLink:me,addClass:Rt,setDirection:Te,setClass:he,setTooltip:Ae,getTooltip:et,setClickEvent:m,setLink:ie,bindFunctions:K,getDirection:Ct,getVertices:ut,getEdges:Ot,getClasses:ae,clear:se,setGen:We,defaultStyle:De,addSubGraph:je,getDepthFirstPos:fe,indexNodes:X,getSubGraphs:yt,destructLink:Ut,lex:Ke,exists:xe,makeUniq:sn,setDiagramTitle:O.q,getDiagramTitle:O.r},Ne=Object.freeze(Object.defineProperty({__proto__:null,addClass:Rt,addLink:ze,addSingleLink:re,addSubGraph:je,addVertex:ht,bindFunctions:K,clear:se,default:Ye,defaultStyle:De,destructLink:Ut,firstGraph:v,getClasses:ae,getDepthFirstPos:fe,getDirection:Ct,getEdges:Ot,getSubGraphs:yt,getTooltip:et,getVertices:ut,indexNodes:X,lex:Ke,lookUpDomId:Vt,setClass:he,setClickEvent:m,setDirection:Te,setGen:We,setLink:ie,updateLink:me,updateLinkInterpolate:Bt},Symbol.toStringTag,{value:"Module"}))},"./node_modules/mermaid/dist/index-f9462f3f.js":function(be,xt,c){c.d(xt,{r:function(){return ie}});var l=c("./node_modules/dagre-d3-es/src/dagre/index.js"),O=c("./node_modules/dagre-d3-es/src/graphlib/json.js"),R=c("./node_modules/mermaid/dist/edges-f15a7e05.js"),L=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js"),mt=c("./node_modules/dagre-d3-es/src/graphlib/index.js"),tt=c("./node_modules/mermaid/dist/createText-80c3befb.js"),bt=c("./node_modules/d3/src/index.js");let U={},ct={},kt={};const Nt=()=>{ct={},kt={},U={}},lt=(et,m)=>(L.l.trace("In isDecendant",m," ",et," = ",ct[m].includes(et)),!!ct[m].includes(et)),Ft=(et,m)=>(L.l.info("Decendants of ",m," is ",ct[m]),L.l.info("Edge is ",et),et.v===m||et.w===m?!1:ct[m]?ct[m].includes(et.v)||lt(et.v,m)||lt(et.w,m)||ct[m].includes(et.w):(L.l.debug("Tilt, ",m,",not in decendants"),!1)),At=(et,m,K,Ct)=>{L.l.warn("Copying children of ",et,"root",Ct,"data",m.node(et),Ct);const ut=m.children(et)||[];et!==Ct&&ut.push(et),L.l.warn("Copying (nodes) clusterId",et,"nodes",ut),ut.forEach(Ot=>{if(m.children(Ot).length>0)At(Ot,m,K,Ct);else{const ae=m.node(Ot);L.l.info("cp ",Ot," to ",Ct," with parent ",et),K.setNode(Ot,ae),Ct!==m.parent(Ot)&&(L.l.warn("Setting parent",Ot,m.parent(Ot)),K.setParent(Ot,m.parent(Ot))),et!==Ct&&Ot!==et?(L.l.debug("Setting parent",Ot,et),K.setParent(Ot,et)):(L.l.info("In copy ",et,"root",Ct,"data",m.node(et),Ct),L.l.debug("Not Setting parent for node=",Ot,"cluster!==rootId",et!==Ct,"node!==clusterId",Ot!==et));const Xt=m.edges(Ot);L.l.debug("Copying Edges",Xt),Xt.forEach(se=>{L.l.info("Edge",se);const We=m.edge(se.v,se.w,se.name);L.l.info("Edge data",We,Ct);try{Ft(se,Ct)?(L.l.info("Copying as ",se.v,se.w,We,se.name),K.setEdge(se.v,se.w,We,se.name),L.l.info("newGraph edges ",K.edges(),K.edge(K.edges()[0]))):L.l.info("Skipping copy of edge ",se.v,"-->",se.w," rootId: ",Ct," clusterId:",et)}catch(De){L.l.error(De)}})}L.l.debug("Removing node",Ot),m.removeNode(Ot)})},$t=(et,m)=>{const K=m.children(et);let Ct=[...K];for(const ut of K)kt[ut]=et,Ct=[...Ct,...$t(ut,m)];return Ct},ue=(et,m)=>{L.l.trace("Searching",et);const K=m.children(et);if(L.l.trace("Searching children of id ",et,K),K.length<1)return L.l.trace("This is a valid node",et),et;for(const Ct of K){const ut=ue(Ct,m);if(ut)return L.l.trace("Found replacement for",et," => ",ut),ut}},ce=et=>!U[et]||!U[et].externalConnections?et:U[et]?U[et].id:et,Le=(et,m)=>{if(!et||m>10){L.l.debug("Opting out, no graph ");return}else L.l.debug("Opting in, graph ");et.nodes().forEach(function(K){et.children(K).length>0&&(L.l.warn("Cluster identified",K," Replacement id in edges: ",ue(K,et)),ct[K]=$t(K,et),U[K]={id:ue(K,et),clusterData:et.node(K)})}),et.nodes().forEach(function(K){const Ct=et.children(K),ut=et.edges();Ct.length>0?(L.l.debug("Cluster identified",K,ct),ut.forEach(Ot=>{if(Ot.v!==K&&Ot.w!==K){const ae=lt(Ot.v,K),Xt=lt(Ot.w,K);ae^Xt&&(L.l.warn("Edge: ",Ot," leaves cluster ",K),L.l.warn("Decendants of XXX ",K,": ",ct[K]),U[K].externalConnections=!0)}})):L.l.debug("Not a cluster ",K,ct)}),et.edges().forEach(function(K){const Ct=et.edge(K);L.l.warn("Edge "+K.v+" -> "+K.w+": "+JSON.stringify(K)),L.l.warn("Edge "+K.v+" -> "+K.w+": "+JSON.stringify(et.edge(K)));let ut=K.v,Ot=K.w;if(L.l.warn("Fix XXX",U,"ids:",K.v,K.w,"Translating: ",U[K.v]," --- ",U[K.w]),U[K.v]&&U[K.w]&&U[K.v]===U[K.w]){L.l.warn("Fixing and trixing link to self - removing XXX",K.v,K.w,K.name),L.l.warn("Fixing and trixing - removing XXX",K.v,K.w,K.name),ut=ce(K.v),Ot=ce(K.w),et.removeEdge(K.v,K.w,K.name);const ae=K.w+"---"+K.v;et.setNode(ae,{domId:ae,id:ae,labelStyle:"",labelText:Ct.label,padding:0,shape:"labelRect",style:""});const Xt=structuredClone(Ct),se=structuredClone(Ct);Xt.label="",Xt.arrowTypeEnd="none",se.label="",Xt.fromCluster=K.v,se.toCluster=K.v,et.setEdge(ut,ae,Xt,K.name+"-cyclic-special"),et.setEdge(ae,Ot,se,K.name+"-cyclic-special")}else(U[K.v]||U[K.w])&&(L.l.warn("Fixing and trixing - removing XXX",K.v,K.w,K.name),ut=ce(K.v),Ot=ce(K.w),et.removeEdge(K.v,K.w,K.name),ut!==K.v&&(Ct.fromCluster=K.v),Ot!==K.w&&(Ct.toCluster=K.w),L.l.warn("Fix Replacing with XXX",ut,Ot,K.name),et.setEdge(ut,Ot,Ct,K.name))}),L.l.warn("Adjusted Graph",O.c(et)),Ze(et,0),L.l.trace(U)},Ze=(et,m)=>{if(L.l.warn("extractor - ",m,O.c(et),et.children("D")),m>10){L.l.error("Bailing out");return}let K=et.nodes(),Ct=!1;for(const ut of K){const Ot=et.children(ut);Ct=Ct||Ot.length>0}if(!Ct){L.l.debug("Done, no node has children",et.nodes());return}L.l.debug("Nodes = ",K,m);for(const ut of K)if(L.l.debug("Extracting node",ut,U,U[ut]&&!U[ut].externalConnections,!et.parent(ut),et.node(ut),et.children("D")," Depth ",m),!U[ut])L.l.debug("Not a cluster",ut,m);else if(!U[ut].externalConnections&&et.children(ut)&&et.children(ut).length>0){L.l.warn("Cluster without external connections, without a parent and with children",ut,m);let ae=et.graph().rankdir==="TB"?"LR":"TB";U[ut]&&U[ut].clusterData&&U[ut].clusterData.dir&&(ae=U[ut].clusterData.dir,L.l.warn("Fixing dir",U[ut].clusterData.dir,ae));const Xt=new mt.k({multigraph:!0,compound:!0}).setGraph({rankdir:ae,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});L.l.warn("Old graph before copy",O.c(et)),At(ut,et,Xt,ut),et.setNode(ut,{clusterNode:!0,id:ut,clusterData:U[ut].clusterData,labelText:U[ut].labelText,graph:Xt}),L.l.warn("New graph after copy node: (",ut,")",O.c(Xt)),L.l.debug("Old graph after copy",O.c(et))}else L.l.warn("Cluster ** ",ut," **not meeting the criteria !externalConnections:",!U[ut].externalConnections," no parent: ",!et.parent(ut)," children ",et.children(ut)&&et.children(ut).length>0,et.children("D"),m),L.l.debug(U);K=et.nodes(),L.l.warn("New list of nodes",K);for(const ut of K){const Ot=et.node(ut);L.l.warn(" Now next level",ut,Ot),Ot.clusterNode&&Ze(Ot.graph,m+1)}},Vt=(et,m)=>{if(m.length===0)return[];let K=Object.assign(m);return m.forEach(Ct=>{const ut=et.children(Ct),Ot=Vt(et,ut);K=[...K,...Ot]}),K},ht=et=>Vt(et,et.children()),Rt={rect:(et,m)=>{L.l.info("Creating subgraph rect for ",m.id,m);const K=et.insert("g").attr("class","cluster"+(m.class?" "+m.class:"")).attr("id",m.id),Ct=K.insert("rect",":first-child"),ut=(0,L.m)((0,L.c)().flowchart.htmlLabels),Ot=K.insert("g").attr("class","cluster-label"),ae=m.labelType==="markdown"?(0,tt.c)(Ot,m.labelText,{style:m.labelStyle,useHtmlLabels:ut}):Ot.node().appendChild((0,R.c)(m.labelText,m.labelStyle,void 0,!0));let Xt=ae.getBBox();if((0,L.m)((0,L.c)().flowchart.htmlLabels)){const Gt=ae.children[0],Pt=(0,bt.Ys)(ae);Xt=Gt.getBoundingClientRect(),Pt.attr("width",Xt.width),Pt.attr("height",Xt.height)}const se=0*m.padding,We=se/2,De=m.width<=Xt.width+se?Xt.width+se:m.width;m.width<=Xt.width+se?m.diff=(Xt.width-m.width)/2-m.padding/2:m.diff=-m.padding/2,L.l.trace("Data ",m,JSON.stringify(m)),Ct.attr("style",m.style).attr("rx",m.rx).attr("ry",m.ry).attr("x",m.x-De/2).attr("y",m.y-m.height/2-We).attr("width",De).attr("height",m.height+se),ut?Ot.attr("transform","translate("+(m.x-Xt.width/2)+", "+(m.y-m.height/2)+")"):Ot.attr("transform","translate("+m.x+", "+(m.y-m.height/2)+")");const je=Ct.node().getBBox();return m.width=je.width,m.height=je.height,m.intersect=function(Gt){return(0,R.i)(m,Gt)},K},roundedWithTitle:(et,m)=>{const K=et.insert("g").attr("class",m.classes).attr("id",m.id),Ct=K.insert("rect",":first-child"),ut=K.insert("g").attr("class","cluster-label"),Ot=K.append("rect"),ae=ut.node().appendChild((0,R.c)(m.labelText,m.labelStyle,void 0,!0));let Xt=ae.getBBox();if((0,L.m)((0,L.c)().flowchart.htmlLabels)){const Gt=ae.children[0],Pt=(0,bt.Ys)(ae);Xt=Gt.getBoundingClientRect(),Pt.attr("width",Xt.width),Pt.attr("height",Xt.height)}Xt=ae.getBBox();const se=0*m.padding,We=se/2,De=m.width<=Xt.width+m.padding?Xt.width+m.padding:m.width;m.width<=Xt.width+m.padding?m.diff=(Xt.width+m.padding*0-m.width)/2:m.diff=-m.padding/2,Ct.attr("class","outer").attr("x",m.x-De/2-We).attr("y",m.y-m.height/2-We).attr("width",De+se).attr("height",m.height+se),Ot.attr("class","inner").attr("x",m.x-De/2-We).attr("y",m.y-m.height/2-We+Xt.height-1).attr("width",De+se).attr("height",m.height+se-Xt.height-3),ut.attr("transform","translate("+(m.x-Xt.width/2)+", "+(m.y-m.height/2-m.padding/3+((0,L.m)((0,L.c)().flowchart.htmlLabels)?5:3))+")");const je=Ct.node().getBBox();return m.height=je.height,m.intersect=function(Gt){return(0,R.i)(m,Gt)},K},noteGroup:(et,m)=>{const K=et.insert("g").attr("class","note-cluster").attr("id",m.id),Ct=K.insert("rect",":first-child"),ut=0*m.padding,Ot=ut/2;Ct.attr("rx",m.rx).attr("ry",m.ry).attr("x",m.x-m.width/2-Ot).attr("y",m.y-m.height/2-Ot).attr("width",m.width+ut).attr("height",m.height+ut).attr("fill","none");const ae=Ct.node().getBBox();return m.width=ae.width,m.height=ae.height,m.intersect=function(Xt){return(0,R.i)(m,Xt)},K},divider:(et,m)=>{const K=et.insert("g").attr("class",m.classes).attr("id",m.id),Ct=K.insert("rect",":first-child"),ut=0*m.padding,Ot=ut/2;Ct.attr("class","divider").attr("x",m.x-m.width/2-Ot).attr("y",m.y-m.height/2).attr("width",m.width+ut).attr("height",m.height+ut);const ae=Ct.node().getBBox();return m.width=ae.width,m.height=ae.height,m.diff=-m.padding/2,m.intersect=function(Xt){return(0,R.i)(m,Xt)},K}};let Te={};const he=(et,m)=>{L.l.trace("Inserting cluster");const K=m.shape||"rect";Te[m.id]=Rt[K](et,m)},Ae=()=>{Te={}},jt=(et,m,K,Ct,ut)=>Ln(this,null,function*(){L.l.info("Graph in recursive render: XXX",O.c(m),ut);const Ot=m.graph().rankdir;L.l.trace("Dir in recursive render - dir:",Ot);const ae=et.insert("g").attr("class","root");m.nodes()?L.l.info("Recursive render XXX",m.nodes()):L.l.info("No nodes found for",m),m.edges().length>0&&L.l.trace("Recursive edges",m.edge(m.edges()[0]));const Xt=ae.insert("g").attr("class","clusters"),se=ae.insert("g").attr("class","edgePaths"),We=ae.insert("g").attr("class","edgeLabels"),De=ae.insert("g").attr("class","nodes");yield Promise.all(m.nodes().map(function(Gt){return Ln(this,null,function*(){const Pt=m.node(Gt);if(ut!==void 0){const tn=JSON.parse(JSON.stringify(ut.clusterData));L.l.info("Setting data for cluster XXX (",Gt,") ",tn,ut),m.setNode(ut.id,tn),m.parent(Gt)||(L.l.trace("Setting parent",Gt,ut.id),m.setParent(Gt,ut.id,tn))}if(L.l.info("(Insert) Node XXX"+Gt+": "+JSON.stringify(m.node(Gt))),Pt&&Pt.clusterNode){L.l.info("Cluster identified",Gt,Pt.width,m.node(Gt));const tn=yield jt(De,Pt.graph,K,Ct,m.node(Gt)),nn=tn.elem;(0,R.u)(Pt,nn),Pt.diff=tn.diff||0,L.l.info("Node bounds (abc123)",Gt,Pt,Pt.width,Pt.x,Pt.y),(0,R.s)(nn,Pt),L.l.warn("Recursive render complete ",nn,Pt)}else m.children(Gt).length>0?(L.l.info("Cluster - the non recursive path XXX",Gt,Pt.id,Pt,m),L.l.info(ue(Pt.id,m)),U[Pt.id]={id:ue(Pt.id,m),node:Pt}):(L.l.info("Node - the non recursive path",Gt,Pt.id,Pt),yield(0,R.e)(De,m.node(Gt),Ot))})})),m.edges().forEach(function(Gt){const Pt=m.edge(Gt.v,Gt.w,Gt.name);L.l.info("Edge "+Gt.v+" -> "+Gt.w+": "+JSON.stringify(Gt)),L.l.info("Edge "+Gt.v+" -> "+Gt.w+": ",Gt," ",JSON.stringify(m.edge(Gt))),L.l.info("Fix",U,"ids:",Gt.v,Gt.w,"Translateing: ",U[Gt.v],U[Gt.w]),(0,R.f)(We,Pt)}),m.edges().forEach(function(Gt){L.l.info("Edge "+Gt.v+" -> "+Gt.w+": "+JSON.stringify(Gt))}),L.l.info("#############################################"),L.l.info("### Layout ###"),L.l.info("#############################################"),L.l.info(m),(0,l.bK)(m),L.l.info("Graph after layout:",O.c(m));let je=0;return ht(m).forEach(function(Gt){const Pt=m.node(Gt);L.l.info("Position "+Gt+": "+JSON.stringify(m.node(Gt))),L.l.info("Position "+Gt+": ("+Pt.x,","+Pt.y,") width: ",Pt.width," height: ",Pt.height),Pt&&Pt.clusterNode?(0,R.p)(Pt):m.children(Gt).length>0?(he(Xt,Pt),U[Pt.id].node=Pt):(0,R.p)(Pt)}),m.edges().forEach(function(Gt){const Pt=m.edge(Gt);L.l.info("Edge "+Gt.v+" -> "+Gt.w+": "+JSON.stringify(Pt),Pt);const tn=(0,R.g)(se,Gt,Pt,U,K,m,Ct);(0,R.h)(Pt,tn)}),m.nodes().forEach(function(Gt){const Pt=m.node(Gt);L.l.info(Gt,Pt.type,Pt.diff),Pt.type==="group"&&(je=Pt.diff)}),{elem:ae,diff:je}}),ie=(et,m,K,Ct,ut)=>Ln(this,null,function*(){(0,R.a)(et,K,Ct,ut),(0,R.b)(),(0,R.d)(),Ae(),Nt(),L.l.warn("Graph at first:",JSON.stringify(O.c(m))),Le(m),L.l.warn("Graph after:",JSON.stringify(O.c(m))),yield jt(et,m,Ct,ut)})},"./node_modules/mermaid/dist/styles-0671a096.js":function(be,xt,c){c.d(xt,{a:function(){return Vt},f:function(){return ce}});var l=c("./node_modules/dagre-d3-es/src/graphlib/index.js"),O=c("./node_modules/d3/src/index.js"),R=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js"),L=c("./node_modules/mermaid/dist/index-f9462f3f.js"),mt=c("./node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js"),tt=c("./node_modules/khroma/dist/utils/index.js"),bt=c("./node_modules/khroma/dist/color/index.js"),ct=(ht,re)=>tt.Z.lang.round(bt.Z.parse(ht)[re]),kt=c("./node_modules/khroma/dist/methods/rgba.js");const Nt={},lt=function(ht){const re=Object.keys(ht);for(const ze of re)Nt[ze]=ht[ze]},Ft=function(ht,re,ze,Bt,me,Rt){const Te=Bt.select(`[id="${ze}"]`);Object.keys(ht).forEach(function(Ae){const jt=ht[Ae];let ie="default";jt.classes.length>0&&(ie=jt.classes.join(" ")),ie=ie+" flowchart-label";const et=(0,R.k)(jt.styles);let m=jt.text!==void 0?jt.text:jt.id,K;if(R.l.info("vertex",jt,jt.labelType),jt.labelType==="markdown")R.l.info("vertex",jt,jt.labelType);else if((0,R.m)((0,R.c)().flowchart.htmlLabels)){const Ot={label:m.replace(/fa[blrs]?:fa-[\w-]+/g,ae=>`<i class='${ae.replace(":"," ")}'></i>`)};K=(0,mt.a)(Te,Ot).node(),K.parentNode.removeChild(K)}else{const Ot=me.createElementNS("http://www.w3.org/2000/svg","text");Ot.setAttribute("style",et.labelStyle.replace("color:","fill:"));const ae=m.split(R.e.lineBreakRegex);for(const Xt of ae){const se=me.createElementNS("http://www.w3.org/2000/svg","tspan");se.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),se.setAttribute("dy","1em"),se.setAttribute("x","1"),se.textContent=Xt,Ot.appendChild(se)}K=Ot}let Ct=0,ut="";switch(jt.type){case"round":Ct=5,ut="rect";break;case"square":ut="rect";break;case"diamond":ut="question";break;case"hexagon":ut="hexagon";break;case"odd":ut="rect_left_inv_arrow";break;case"lean_right":ut="lean_right";break;case"lean_left":ut="lean_left";break;case"trapezoid":ut="trapezoid";break;case"inv_trapezoid":ut="inv_trapezoid";break;case"odd_right":ut="rect_left_inv_arrow";break;case"circle":ut="circle";break;case"ellipse":ut="ellipse";break;case"stadium":ut="stadium";break;case"subroutine":ut="subroutine";break;case"cylinder":ut="cylinder";break;case"group":ut="rect";break;case"doublecircle":ut="doublecircle";break;default:ut="rect"}re.setNode(jt.id,{labelStyle:et.labelStyle,shape:ut,labelText:m,labelType:jt.labelType,rx:Ct,ry:Ct,class:ie,style:et.style,id:jt.id,link:jt.link,linkTarget:jt.linkTarget,tooltip:Rt.db.getTooltip(jt.id)||"",domId:Rt.db.lookUpDomId(jt.id),haveCallback:jt.haveCallback,width:jt.type==="group"?500:void 0,dir:jt.dir,type:jt.type,props:jt.props,padding:(0,R.c)().flowchart.padding}),R.l.info("setNode",{labelStyle:et.labelStyle,labelType:jt.labelType,shape:ut,labelText:m,rx:Ct,ry:Ct,class:ie,style:et.style,id:jt.id,domId:Rt.db.lookUpDomId(jt.id),width:jt.type==="group"?500:void 0,type:jt.type,dir:jt.dir,props:jt.props,padding:(0,R.c)().flowchart.padding})})},At=function(ht,re,ze){R.l.info("abc78 edges = ",ht);let Bt=0,me={},Rt,Te;if(ht.defaultStyle!==void 0){const he=(0,R.k)(ht.defaultStyle);Rt=he.style,Te=he.labelStyle}ht.forEach(function(he){Bt++;const Ae="L-"+he.start+"-"+he.end;me[Ae]===void 0?(me[Ae]=0,R.l.info("abc78 new entry",Ae,me[Ae])):(me[Ae]++,R.l.info("abc78 new entry",Ae,me[Ae]));let jt=Ae+"-"+me[Ae];R.l.info("abc78 new link id to be used is",Ae,jt,me[Ae]);const ie="LS-"+he.start,et="LE-"+he.end,m={style:"",labelStyle:""};switch(m.minlen=he.length||1,he.type==="arrow_open"?m.arrowhead="none":m.arrowhead="normal",m.arrowTypeStart="arrow_open",m.arrowTypeEnd="arrow_open",he.type){case"double_arrow_cross":m.arrowTypeStart="arrow_cross";case"arrow_cross":m.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":m.arrowTypeStart="arrow_point";case"arrow_point":m.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":m.arrowTypeStart="arrow_circle";case"arrow_circle":m.arrowTypeEnd="arrow_circle";break}let K="",Ct="";switch(he.stroke){case"normal":K="fill:none;",Rt!==void 0&&(K=Rt),Te!==void 0&&(Ct=Te),m.thickness="normal",m.pattern="solid";break;case"dotted":m.thickness="normal",m.pattern="dotted",m.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":m.thickness="thick",m.pattern="solid",m.style="stroke-width: 3.5px;fill:none;";break;case"invisible":m.thickness="invisible",m.pattern="solid",m.style="stroke-width: 0;fill:none;";break}if(he.style!==void 0){const ut=(0,R.k)(he.style);K=ut.style,Ct=ut.labelStyle}m.style=m.style+=K,m.labelStyle=m.labelStyle+=Ct,he.interpolate!==void 0?m.curve=(0,R.n)(he.interpolate,O.c_6):ht.defaultInterpolate!==void 0?m.curve=(0,R.n)(ht.defaultInterpolate,O.c_6):m.curve=(0,R.n)(Nt.curve,O.c_6),he.text===void 0?he.style!==void 0&&(m.arrowheadStyle="fill: #333"):(m.arrowheadStyle="fill: #333",m.labelpos="c"),m.labelType=he.labelType,m.label=he.text.replace(R.e.lineBreakRegex,`
`),he.style===void 0&&(m.style=m.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),m.labelStyle=m.labelStyle.replace("color:","fill:"),m.id=jt,m.classes="flowchart-link "+ie+" "+et,re.setEdge(he.start,he.end,m,Bt)})},ce={setConf:lt,addVertices:Ft,addEdges:At,getClasses:function(ht,re){return re.db.getClasses()},draw:function(ht,re,ze,Bt){return Ln(this,null,function*(){R.l.info("Drawing flowchart");let me=Bt.db.getDirection();me===void 0&&(me="TD");const{securityLevel:Rt,flowchart:Te}=(0,R.c)(),he=Te.nodeSpacing||50,Ae=Te.rankSpacing||50;let jt;Rt==="sandbox"&&(jt=(0,O.Ys)("#i"+re));const ie=Rt==="sandbox"?(0,O.Ys)(jt.nodes()[0].contentDocument.body):(0,O.Ys)("body"),et=Rt==="sandbox"?jt.nodes()[0].contentDocument:document,m=new l.k({multigraph:!0,compound:!0}).setGraph({rankdir:me,nodesep:he,ranksep:Ae,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let K;const Ct=Bt.db.getSubGraphs();R.l.info("Subgraphs - ",Ct);for(let De=Ct.length-1;De>=0;De--)K=Ct[De],R.l.info("Subgraph - ",K),Bt.db.addVertex(K.id,{text:K.title,type:K.labelType},"group",void 0,K.classes,K.dir);const ut=Bt.db.getVertices(),Ot=Bt.db.getEdges();R.l.info("Edges",Ot);let ae=0;for(ae=Ct.length-1;ae>=0;ae--){K=Ct[ae],(0,O.td_)("cluster").append("text");for(let De=0;De<K.nodes.length;De++)R.l.info("Setting up subgraphs",K.nodes[De],K.id),m.setParent(K.nodes[De],K.id)}Ft(ut,m,re,ie,et,Bt),At(Ot,m);const Xt=ie.select(`[id="${re}"]`),se=ie.select("#"+re+" g");if(yield(0,L.r)(se,m,["point","circle","cross"],"flowchart",re),R.u.insertTitle(Xt,"flowchartTitleText",Te.titleTopMargin,Bt.db.getDiagramTitle()),(0,R.o)(m,Xt,Te.diagramPadding,Te.useMaxWidth),Bt.db.indexNodes("subGraph"+ae),!Te.htmlLabels){const De=et.querySelectorAll('[id="'+re+'"] .edgeLabel .label');for(const je of De){const Gt=je.getBBox(),Pt=et.createElementNS("http://www.w3.org/2000/svg","rect");Pt.setAttribute("rx",0),Pt.setAttribute("ry",0),Pt.setAttribute("width",Gt.width),Pt.setAttribute("height",Gt.height),je.insertBefore(Pt,je.firstChild)}}Object.keys(ut).forEach(function(De){const je=ut[De];if(je.link){const Gt=(0,O.Ys)("#"+re+' [id="'+De+'"]');if(Gt){const Pt=et.createElementNS("http://www.w3.org/2000/svg","a");Pt.setAttributeNS("http://www.w3.org/2000/svg","class",je.classes.join(" ")),Pt.setAttributeNS("http://www.w3.org/2000/svg","href",je.link),Pt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),Rt==="sandbox"?Pt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):je.linkTarget&&Pt.setAttributeNS("http://www.w3.org/2000/svg","target",je.linkTarget);const tn=Gt.insert(function(){return Pt},":first-child"),nn=Gt.select(".label-container");nn&&tn.append(function(){return nn.node()});const fe=Gt.select(".label");fe&&tn.append(function(){return fe.node()})}}})})}},Le=(ht,re)=>{const ze=ct,Bt=ze(ht,"r"),me=ze(ht,"g"),Rt=ze(ht,"b");return kt.Z(Bt,me,Rt,re)},Vt=ht=>`.label {
font-family: ${ht.fontFamily};
color: ${ht.nodeTextColor||ht.textColor};
}
.cluster-label text {
fill: ${ht.titleColor};
}
.cluster-label span,p {
color: ${ht.titleColor};
}
.label text,span,p {
fill: ${ht.nodeTextColor||ht.textColor};
color: ${ht.nodeTextColor||ht.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${ht.mainBkg};
stroke: ${ht.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${ht.arrowheadColor};
}
.edgePath .path {
stroke: ${ht.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${ht.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${ht.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${ht.edgeLabelBackground};
fill: ${ht.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${Le(ht.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${ht.clusterBkg};
stroke: ${ht.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${ht.titleColor};
}
.cluster span,p {
color: ${ht.titleColor};
}
/* .cluster div {
color: ${ht.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${ht.fontFamily};
font-size: 12px;
background: ${ht.tertiaryColor};
border: 1px solid ${ht.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${ht.textColor};
}
`},"./node_modules/mermaid/dist/styles-24dfea38.js":function(be,xt,c){c.d(xt,{D:function(){return kt},S:function(){return bt},a:function(){return Nt},b:function(){return tt},c:function(){return mt},d:function(){return Ne},p:function(){return R},s:function(){return wt}});var l=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js"),O=function(){var b=function(It,_t,Q,it){for(Q=Q||{},it=It.length;it--;Q[It[it]]=_t);return Q},Y=[1,2],gt=[1,3],Mt=[1,4],Qt=[2,4],pe=[1,9],Jt=[1,11],ge=[1,15],oe=[1,16],ke=[1,17],we=[1,18],Pe=[1,30],Be=[1,19],Zt=[1,20],rn=[1,21],w=[1,22],r=[1,23],k=[1,25],Z=[1,26],C=[1,27],F=[1,28],T=[1,29],G=[1,32],S=[1,33],M=[1,34],W=[1,35],nt=[1,31],dt=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],St=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ne=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],le={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",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",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"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,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],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(_t,Q,it,Dt,ft,at,I){var Wt=at.length-1;switch(ft){case 3:return Dt.setRootDoc(at[Wt]),at[Wt];case 4:this.$=[];break;case 5:at[Wt]!="nl"&&(at[Wt-1].push(at[Wt]),this.$=at[Wt-1]);break;case 6:case 7:this.$=at[Wt];break;case 8:this.$="nl";break;case 11:this.$=at[Wt];break;case 12:const bn=at[Wt-1];bn.description=Dt.trimColon(at[Wt]),this.$=bn;break;case 13:this.$={stmt:"relation",state1:at[Wt-2],state2:at[Wt]};break;case 14:const zn=Dt.trimColon(at[Wt]);this.$={stmt:"relation",state1:at[Wt-3],state2:at[Wt-1],description:zn};break;case 18:this.$={stmt:"state",id:at[Wt-3],type:"default",description:"",doc:at[Wt-1]};break;case 19:var H=at[Wt],Fe=at[Wt-2].trim();if(at[Wt].match(":")){var fn=at[Wt].split(":");H=fn[0],Fe=[Fe,fn[1]]}this.$={stmt:"state",id:H,type:"default",description:Fe};break;case 20:this.$={stmt:"state",id:at[Wt-3],type:"default",description:at[Wt-5],doc:at[Wt-1]};break;case 21:this.$={stmt:"state",id:at[Wt],type:"fork"};break;case 22:this.$={stmt:"state",id:at[Wt],type:"join"};break;case 23:this.$={stmt:"state",id:at[Wt],type:"choice"};break;case 24:this.$={stmt:"state",id:Dt.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:at[Wt-1].trim(),note:{position:at[Wt-2].trim(),text:at[Wt].trim()}};break;case 28:this.$=at[Wt].trim(),Dt.setAccTitle(this.$);break;case 29:case 30:this.$=at[Wt].trim(),Dt.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:at[Wt-1].trim(),classes:at[Wt].trim()};break;case 33:this.$={stmt:"applyClass",id:at[Wt-1].trim(),styleClass:at[Wt].trim()};break;case 34:Dt.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:Dt.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:Dt.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:Dt.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:at[Wt].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:at[Wt-2].trim(),classes:[at[Wt].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:at[Wt-2].trim(),classes:[at[Wt].trim()],type:"default",description:""};break}},table:[{3:1,4:Y,5:gt,6:Mt},{1:[3]},{3:5,4:Y,5:gt,6:Mt},{3:6,4:Y,5:gt,6:Mt},b([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Qt,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:pe,5:Jt,8:8,9:10,10:12,11:13,12:14,15:ge,16:oe,18:ke,21:we,23:Pe,24:Be,25:Zt,26:rn,27:w,28:r,31:24,32:k,34:Z,36:C,37:F,41:T,44:G,45:S,46:M,47:W,50:nt},b(dt,[2,5]),{9:36,10:12,11:13,12:14,15:ge,16:oe,18:ke,21:we,23:Pe,24:Be,25:Zt,26:rn,27:w,28:r,31:24,32:k,34:Z,36:C,37:F,41:T,44:G,45:S,46:M,47:W,50:nt},b(dt,[2,7]),b(dt,[2,8]),b(dt,[2,9]),b(dt,[2,10]),b(dt,[2,11],{13:[1,37],14:[1,38]}),b(dt,[2,15]),{17:[1,39]},b(dt,[2,17],{19:[1,40]}),{22:[1,41]},b(dt,[2,21]),b(dt,[2,22]),b(dt,[2,23]),b(dt,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},b(dt,[2,27]),{33:[1,46]},{35:[1,47]},b(dt,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},b(St,[2,40],{51:[1,51]}),b(St,[2,41],{51:[1,52]}),b(dt,[2,34]),b(dt,[2,35]),b(dt,[2,36]),b(dt,[2,37]),b(dt,[2,6]),b(dt,[2,12]),{12:53,23:Pe,50:nt},b(dt,[2,16]),b(ne,Qt,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},b(dt,[2,28]),b(dt,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},b(dt,[2,13],{13:[1,63]}),{4:pe,5:Jt,8:8,9:10,10:12,11:13,12:14,15:ge,16:oe,18:ke,20:[1,64],21:we,23:Pe,24:Be,25:Zt,26:rn,27:w,28:r,31:24,32:k,34:Z,36:C,37:F,41:T,44:G,45:S,46:M,47:W,50:nt},b(dt,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},b(dt,[2,31]),b(dt,[2,32]),b(dt,[2,33]),b(St,[2,42]),b(St,[2,43]),b(dt,[2,14]),b(dt,[2,18]),b(ne,Qt,{7:68}),b(dt,[2,25]),b(dt,[2,26]),{4:pe,5:Jt,8:8,9:10,10:12,11:13,12:14,15:ge,16:oe,18:ke,20:[1,69],21:we,23:Pe,24:Be,25:Zt,26:rn,27:w,28:r,31:24,32:k,34:Z,36:C,37:F,41:T,44:G,45:S,46:M,47:W,50:nt},b(dt,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(_t,Q){if(Q.recoverable)this.trace(_t);else{var it=new Error(_t);throw it.hash=Q,it}},parse:function(_t){var Q=this,it=[0],Dt=[],ft=[null],at=[],I=this.table,Wt="",H=0,Fe=0,fn=2,bn=1,zn=at.slice.call(arguments,1),$e=Object.create(this.lexer),Ue={yy:{}};for(var kn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kn)&&(Ue.yy[kn]=this.yy[kn]);$e.setInput(_t,Ue.yy),Ue.yy.lexer=$e,Ue.yy.parser=this,typeof $e.yylloc=="undefined"&&($e.yylloc={});var an=$e.yylloc;at.push(an);var Se=$e.options&&$e.options.ranges;typeof Ue.yy.parseError=="function"?this.parseError=Ue.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qn(){var In;return In=Dt.pop()||$e.lex()||bn,typeof In!="number"&&(In instanceof Array&&(Dt=In,In=Dt.pop()),In=Q.symbols_[In]||In),In}for(var mn,vt,ye,Ge,An={},Cn,cn,en,Nn;;){if(vt=it[it.length-1],this.defaultActions[vt]?ye=this.defaultActions[vt]:((mn===null||typeof mn=="undefined")&&(mn=Qn()),ye=I[vt]&&I[vt][mn]),typeof ye=="undefined"||!ye.length||!ye[0]){var Bn="";Nn=[];for(Cn in I[vt])this.terminals_[Cn]&&Cn>fn&&Nn.push("'"+this.terminals_[Cn]+"'");$e.showPosition?Bn="Parse error on line "+(H+1)+`:
`+$e.showPosition()+`
Expecting `+Nn.join(", ")+", got '"+(this.terminals_[mn]||mn)+"'":Bn="Parse error on line "+(H+1)+": Unexpected "+(mn==bn?"end of input":"'"+(this.terminals_[mn]||mn)+"'"),this.parseError(Bn,{text:$e.match,token:this.terminals_[mn]||mn,line:$e.yylineno,loc:an,expected:Nn})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+vt+", token: "+mn);switch(ye[0]){case 1:it.push(mn),ft.push($e.yytext),at.push($e.yylloc),it.push(ye[1]),mn=null,Fe=$e.yyleng,Wt=$e.yytext,H=$e.yylineno,an=$e.yylloc;break;case 2:if(cn=this.productions_[ye[1]][1],An.$=ft[ft.length-cn],An._$={first_line:at[at.length-(cn||1)].first_line,last_line:at[at.length-1].last_line,first_column:at[at.length-(cn||1)].first_column,last_column:at[at.length-1].last_column},Se&&(An._$.range=[at[at.length-(cn||1)].range[0],at[at.length-1].range[1]]),Ge=this.performAction.apply(An,[Wt,Fe,H,Ue.yy,ye[1],ft,at].concat(zn)),typeof Ge!="undefined")return Ge;cn&&(it=it.slice(0,-1*cn*2),ft=ft.slice(0,-1*cn),at=at.slice(0,-1*cn)),it.push(this.productions_[ye[1]][0]),ft.push(An.$),at.push(An._$),en=I[it[it.length-2]][it[it.length-1]],it.push(en);break;case 3:return!0}}return!0}},te=function(){var It={EOF:1,parseError:function(Q,it){if(this.yy.parser)this.yy.parser.parseError(Q,it);else throw new Error(Q)},setInput:function(_t,Q){return this.yy=Q||this.yy||{},this._input=_t,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},input:function(){var _t=this._input[0];this.yytext+=_t,this.yyleng++,this.offset++,this.match+=_t,this.matched+=_t;var Q=_t.match(/(?:\r\n?|\n).*/g);return Q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_t},unput:function(_t){var Q=_t.length,it=_t.split(/(?:\r\n?|\n)/g);this._input=_t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var Dt=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),it.length-1&&(this.yylineno-=it.length-1);var ft=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:it?(it.length===Dt.length?this.yylloc.first_column:0)+Dt[Dt.length-it.length].length-it[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-Q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(_t){this.unput(this.match.slice(_t))},pastInput:function(){var _t=this.matched.substr(0,this.matched.length-this.match.length);return(_t.length>20?"...":"")+_t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _t=this.match;return _t.length<20&&(_t+=this._input.substr(0,20-_t.length)),(_t.substr(0,20)+(_t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _t=this.pastInput(),Q=new Array(_t.length+1).join("-");return _t+this.upcomingInput()+`
`+Q+"^"},test_match:function(_t,Q){var it,Dt,ft;if(this.options.backtrack_lexer&&(ft={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&&(ft.yylloc.range=this.yylloc.range.slice(0))),Dt=_t[0].match(/(?:\r\n?|\n).*/g),Dt&&(this.yylineno+=Dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Dt?Dt[Dt.length-1].length-Dt[Dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_t[0].length},this.yytext+=_t[0],this.match+=_t[0],this.matches=_t,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(_t[0].length),this.matched+=_t[0],it=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),it)return it;if(this._backtrack){for(var at in ft)this[at]=ft[at];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _t,Q,it,Dt;this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),at=0;at<ft.length;at++)if(it=this._input.match(this.rules[ft[at]]),it&&(!Q||it[0].length>Q[0].length)){if(Q=it,Dt=at,this.options.backtrack_lexer){if(_t=this.test_match(it,ft[at]),_t!==!1)return _t;if(this._backtrack){Q=!1;continue}else return!1}else if(!this.options.flex)break}return Q?(_t=this.test_match(Q,ft[Dt]),_t!==!1?_t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Q=this.next();return Q||this.lex()},begin:function(Q){this.conditionStack.push(Q)},popState:function(){var Q=this.conditionStack.length-1;return Q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Q){return Q=this.conditionStack.length-1-Math.abs(Q||0),Q>=0?this.conditionStack[Q]:"INITIAL"},pushState:function(Q){this.begin(Q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Q,it,Dt,ft){switch(Dt){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),it.yytext=it.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),it.yytext=it.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),it.yytext=it.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),it.yytext=it.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),it.yytext=it.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),it.yytext=it.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),it.yytext=it.yytext.substr(2).trim(),30;case 64:return this.popState(),it.yytext=it.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return it.yytext=it.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?: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,/^(?:[^\}]%%[^\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,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/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]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return It}();le.lexer=te;function Ht(){this.yy={}}return Ht.prototype=le,le.Parser=Ht,new Ht}();O.parser=O;const R=O,L="LR",mt="TB",tt="state",bt="relation",U="classDef",ct="applyClass",kt="default",Nt="divider",lt="[*]",Ft="start",At=lt,$t="end",ue="color",ce="fill",Le="bgFill",Ze=",";function Vt(){return{}}let ht=L,re=[],ze=Vt();const Bt=()=>({relations:[],states:{},documents:{}});let me={root:Bt()},Rt=me.root,Te=0,he=0;const Ae={LINE:0,DOTTED_LINE:1},jt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},ie=b=>JSON.parse(JSON.stringify(b)),et=b=>{l.l.info("Setting root doc",b),re=b},m=()=>re,K=(b,Y,gt)=>{if(Y.stmt===bt)K(b,Y.state1,!0),K(b,Y.state2,!1);else if(Y.stmt===tt&&(Y.id==="[*]"?(Y.id=gt?b.id+"_start":b.id+"_end",Y.start=gt):Y.id=Y.id.trim()),Y.doc){const Mt=[];let Qt=[],pe;for(pe=0;pe<Y.doc.length;pe++)if(Y.doc[pe].type===Nt){const Jt=ie(Y.doc[pe]);Jt.doc=ie(Qt),Mt.push(Jt),Qt=[]}else Qt.push(Y.doc[pe]);if(Mt.length>0&&Qt.length>0){const Jt={stmt:tt,id:(0,l.G)(),type:"divider",doc:ie(Qt)};Mt.push(ie(Jt)),Y.doc=Mt}Y.doc.forEach(Jt=>K(Y,Jt,!0))}},Ct=()=>(K({id:"root"},{id:"root",doc:re},!0),{id:"root",doc:re}),ut=b=>{let Y;b.doc?Y=b.doc:Y=b,l.l.info(Y),ae(!0),l.l.info("Extract",Y),Y.forEach(gt=>{switch(gt.stmt){case tt:Ot(gt.id.trim(),gt.type,gt.doc,gt.description,gt.note,gt.classes,gt.styles,gt.textStyles);break;case bt:fe(gt.state1,gt.state2,gt.description);break;case U:rt(gt.id.trim(),gt.classes);break;case ct:zt(gt.id.trim(),gt.styleClass);break}})},Ot=function(b,Y=kt,gt=null,Mt=null,Qt=null,pe=null,Jt=null,ge=null){const oe=b==null?void 0:b.trim();Rt.states[oe]===void 0?(l.l.info("Adding state ",oe,Mt),Rt.states[oe]={id:oe,descriptions:[],type:Y,doc:gt,note:Qt,classes:[],styles:[],textStyles:[]}):(Rt.states[oe].doc||(Rt.states[oe].doc=gt),Rt.states[oe].type||(Rt.states[oe].type=Y)),Mt&&(l.l.info("Setting state description",oe,Mt),typeof Mt=="string"&&X(oe,Mt.trim()),typeof Mt=="object"&&Mt.forEach(ke=>X(oe,ke.trim()))),Qt&&(Rt.states[oe].note=Qt,Rt.states[oe].note.text=l.e.sanitizeText(Rt.states[oe].note.text,(0,l.c)())),pe&&(l.l.info("Setting state classes",oe,pe),(typeof pe=="string"?[pe]:pe).forEach(we=>zt(oe,we.trim()))),Jt&&(l.l.info("Setting state styles",oe,Jt),(typeof Jt=="string"?[Jt]:Jt).forEach(we=>Ut(oe,we.trim()))),ge&&(l.l.info("Setting state styles",oe,Jt),(typeof ge=="string"?[ge]:ge).forEach(we=>xe(oe,we.trim())))},ae=function(b){me={root:Bt()},Rt=me.root,Te=0,ze=Vt(),b||(0,l.t)()},Xt=function(b){return Rt.states[b]},se=function(){return Rt.states},We=function(){l.l.info("Documents = ",me)},De=function(){return Rt.relations};function je(b=""){let Y=b;return b===lt&&(Te++,Y=`${Ft}${Te}`),Y}function Gt(b="",Y=kt){return b===lt?Ft:Y}function Pt(b=""){let Y=b;return b===At&&(Te++,Y=`${$t}${Te}`),Y}function tn(b="",Y=kt){return b===At?$t:Y}function nn(b,Y,gt){let Mt=je(b.id.trim()),Qt=Gt(b.id.trim(),b.type),pe=je(Y.id.trim()),Jt=Gt(Y.id.trim(),Y.type);Ot(Mt,Qt,b.doc,b.description,b.note,b.classes,b.styles,b.textStyles),Ot(pe,Jt,Y.doc,Y.description,Y.note,Y.classes,Y.styles,Y.textStyles),Rt.relations.push({id1:Mt,id2:pe,relationTitle:l.e.sanitizeText(gt,(0,l.c)())})}const fe=function(b,Y,gt){if(typeof b=="object")nn(b,Y,gt);else{const Mt=je(b.trim()),Qt=Gt(b),pe=Pt(Y.trim()),Jt=tn(Y);Ot(Mt,Qt),Ot(pe,Jt),Rt.relations.push({id1:Mt,id2:pe,title:l.e.sanitizeText(gt,(0,l.c)())})}},X=function(b,Y){const gt=Rt.states[b],Mt=Y.startsWith(":")?Y.replace(":","").trim():Y;gt.descriptions.push(l.e.sanitizeText(Mt,(0,l.c)()))},yt=function(b){return b.substring(0,1)===":"?b.substr(2).trim():b.trim()},v=()=>(he++,"divider-id-"+he),rt=function(b,Y=""){ze[b]===void 0&&(ze[b]={id:b,styles:[],textStyles:[]});const gt=ze[b];Y!=null&&Y.split(Ze).forEach(Mt=>{const Qt=Mt.replace(/([^;]*);/,"$1").trim();if(Mt.match(ue)){const Jt=Qt.replace(ce,Le).replace(ue,ce);gt.textStyles.push(Jt)}gt.styles.push(Qt)})},Tt=function(){return ze},zt=function(b,Y){b.split(",").forEach(function(gt){let Mt=Xt(gt);if(Mt===void 0){const Qt=gt.trim();Ot(Qt),Mt=Xt(Qt)}Mt.classes.push(Y)})},Ut=function(b,Y){const gt=Xt(b);gt!==void 0&&gt.textStyles.push(Y)},xe=function(b,Y){const gt=Xt(b);gt!==void 0&&gt.textStyles.push(Y)},Ne={getConfig:()=>(0,l.c)().state,addState:Ot,clear:ae,getState:Xt,getStates:se,getRelations:De,getClasses:Tt,getDirection:()=>ht,addRelation:fe,getDividerId:v,setDirection:b=>{ht=b},cleanupLabel:yt,lineType:Ae,relationType:jt,logDocuments:We,getRootDoc:m,setRootDoc:et,getRootDocV2:Ct,extract:ut,trimColon:b=>b&&b[0]===":"?b.substr(1).trim():b.trim(),getAccTitle:l.g,setAccTitle:l.s,getAccDescription:l.a,setAccDescription:l.b,addStyleClass:rt,setCssClass:zt,addDescription:X,setDiagramTitle:l.q,getDiagramTitle:l.r},wt=b=>`
defs #statediagram-barbEnd {
fill: ${b.transitionColor};
stroke: ${b.transitionColor};
}
g.stateGroup text {
fill: ${b.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${b.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${b.stateLabelColor};
}
g.stateGroup rect {
fill: ${b.mainBkg};
stroke: ${b.nodeBorder};
}
g.stateGroup line {
stroke: ${b.lineColor};
stroke-width: 1;
}
.transition {
stroke: ${b.transitionColor};
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: ${b.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${b.noteBorderColor};
fill: ${b.noteBkgColor};
text {
fill: ${b.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${b.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${b.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel .label text {
fill: ${b.transitionLabelColor||b.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${b.transitionLabelColor||b.tertiaryTextColor};
}
.stateLabel text {
fill: ${b.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${b.specialStateColor};
stroke: ${b.specialStateColor};
}
.node .fork-join {
fill: ${b.specialStateColor};
stroke: ${b.specialStateColor};
}
.node circle.state-end {
fill: ${b.innerEndBackground};
stroke: ${b.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${b.compositeBackground||b.background};
// stroke: ${b.background};
stroke-width: 1.5
}
.node rect {
fill: ${b.stateBkg||b.mainBkg};
stroke: ${b.stateBorder||b.nodeBorder};
stroke-width: 1px;
}
.node polygon {
fill: ${b.mainBkg};
stroke: ${b.stateBorder||b.nodeBorder};;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: ${b.lineColor};
}
.statediagram-cluster rect {
fill: ${b.compositeTitleBackground};
stroke: ${b.stateBorder||b.nodeBorder};
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: ${b.stateLabelColor};
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${b.stateBorder||b.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${b.compositeBackground||b.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${b.altBackground?b.altBackground:"#efefef"};
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: ${b.altBackground?b.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${b.noteBkgColor};
stroke: ${b.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${b.noteBkgColor};
stroke: ${b.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${b.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${b.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${b.noteTextColor};
}
#dependencyStart, #dependencyEnd {
fill: ${b.lineColor};
stroke: ${b.lineColor};
stroke-width: 1;
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${b.textColor};
}
`},"./node_modules/mermaid/dist/styles-8b67d7cb.js":function(be,xt,c){c.d(xt,{d:function(){return fe},p:function(){return L},s:function(){return yt}});var l=c("./node_modules/d3/src/index.js"),O=c("./node_modules/mermaid/dist/mermaid-0d192ec3.js"),R=function(){var v=function(_t,Q,it,Dt){for(it=it||{},Dt=_t.length;Dt--;it[_t[Dt]]=Q);return it},rt=[1,16],Tt=[1,17],zt=[1,18],Ut=[1,37],xe=[1,38],sn=[1,24],Ke=[1,22],Ye=[1,23],Ne=[1,29],y=[1,30],wt=[1,31],b=[1,32],Y=[1,33],gt=[1,34],Mt=[1,25],Qt=[1,26],pe=[1,27],Jt=[1,28],ge=[1,42],oe=[1,39],ke=[1,40],we=[1,41],Pe=[1,43],Be=[1,9],Zt=[1,8,9],rn=[1,54],w=[1,55],r=[1,56],k=[1,57],Z=[1,58],C=[1,59],F=[1,60],T=[1,8,9,38],G=[1,71],S=[1,8,9,12,13,21,36,38,41,58,59,60,61,62,63,64,69,71],M=[1,8,9,12,13,19,21,36,38,41,45,58,59,60,61,62,63,64,69,71,84,86,87,88,89],W=[13,84,86,87,88,89],nt=[13,63,64,84,86,87,88,89],dt=[13,58,59,60,61,62,84,86,87,88,89],St=[1,90],ne=[1,8,9,36,38,41],le=[1,8,9,21],te={trace:function(){},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,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,cssClassStatement:27,noteStatement:28,direction:29,acc_title:30,acc_title_value:31,acc_descr:32,acc_descr_value:33,acc_descr_multiline_value:34,namespaceIdentifier:35,STRUCT_START:36,classStatements:37,STRUCT_STOP:38,NAMESPACE:39,classIdentifier:40,STYLE_SEPARATOR:41,members:42,CLASS:43,ANNOTATION_START:44,ANNOTATION_END:45,MEMBER:46,SEPARATOR:47,relation:48,NOTE_FOR:49,noteText:50,NOTE:51,direction_tb:52,direction_bt:53,direction_rl:54,direction_lr:55,relationType:56,lineType:57,AGGREGATION:58,EXTENSION:59,COMPOSITION:60,DEPENDENCY:61,LOLLIPOP:62,LINE:63,DOTTED_LINE:64,CALLBACK:65,LINK:66,LINK_TARGET:67,CLICK:68,CALLBACK_NAME:69,CALLBACK_ARGS:70,HREF:71,CSSCLASS:72,commentToken:73,textToken:74,graphCodeTokens:75,textNoTagsToken:76,TAGSTART:77,TAGEND:78,"==":79,"--":80,PCT:81,DEFAULT:82,SPACE:83,MINUS:84,keywords:85,UNICODE_TEXT:86,NUM:87,ALPHA:88,BQUOTE_STR:89,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",30:"acc_title",31:"acc_title_value",32:"acc_descr",33:"acc_descr_value",34:"acc_descr_multiline_value",36:"STRUCT_START",38:"STRUCT_STOP",39:"NAMESPACE",41:"STYLE_SEPARATOR",43:"CLASS",44:"ANNOTATION_START",45:"ANNOTATION_END",46:"MEMBER",47:"SEPARATOR",49:"NOTE_FOR",51:"NOTE",52:"direction_tb",53:"direction_bt",54:"direction_rl",55:"direction_lr",58:"AGGREGATION",59:"EXTENSION",60:"COMPOSITION",61:"DEPENDENCY",62:"LOLLIPOP",63:"LINE",64:"DOTTED_LINE",65:"CALLBACK",66:"LINK",67:"LINK_TARGET",68:"CLICK",69:"CALLBACK_NAME",70:"CALLBACK_ARGS",71:"HREF",72:"CSSCLASS",75:"graphCodeTokens",77:"TAGSTART",78:"TAGEND",79:"==",80:"--",81:"PCT",82:"DEFAULT",83:"SPACE",84:"MINUS",85:"keywords",86:"UNICODE_TEXT",87:"NUM",88:"ALPHA",89:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[35,2],[37,1],[37,2],[37,3],[23,1],[23,3],[23,4],[23,6],[40,2],[40,3],[25,4],[42,1],[42,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[28,3],[28,2],[29,1],[29,1],[29,1],[29,1],[48,3],[48,2],[48,2],[48,1],[56,1],[56,1],[56,1],[56,1],[56,1],[57,1],[57,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[73,1],[73,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[76,1],[76,1],[76,1],[76,1],[16,1],[16,1],[16,1],[16,1],[18,1],[50,1]],performAction:function(Q,it,Dt,ft,at,I,Wt){var H=I.length-1;switch(at){case 8:this.$=I[H-1];break;case 9:case 11:case 12:this.$=I[H];break;case 10:case 13:this.$=I[H-1]+I[H];break;case 14:case 15:this.$=I[H-1]+"~"+I[H]+"~";break;case 16:ft.addRelation(I[H]);break;case 17:I[H-1].title=ft.cleanupLabel(I[H]),ft.addRelation(I[H-1]);break;case 26:this.$=I[H].trim(),ft.setAccTitle(this.$);break;case 27:case 28:this.$=I[H].trim(),ft.setAccDescription(this.$);break;case 29:ft.addClassesToNamespace(I[H-3],I[H-1]);break;case 30:ft.addClassesToNamespace(I[H-4],I[H-1]);break;case 31:this.$=I[H],ft.addNamespace(I[H]);break;case 32:this.$=[I[H]];break;case 33:this.$=[I[H-1]];break;case 34:I[H].unshift(I[H-2]),this.$=I[H];break;case 36:ft.setCssClass(I[H-2],I[H]);break;case 37:ft.addMembers(I[H-3],I[H-1]);break;case 38:ft.setCssClass(I[H-5],I[H-3]),ft.addMembers(I[H-5],I[H-1]);break;case 39:this.$=I[H],ft.addClass(I[H]);break;case 40:this.$=I[H-1],ft.addClass(I[H-1]),ft.setClassLabel(I[H-1],I[H]);break;case 41:ft.addAnnotation(I[H],I[H-2]);break;case 42:this.$=[I[H]];break;case 43:I[H].push(I[H-1]),this.$=I[H];break;case 44:break;case 45:ft.addMember(I[H-1],ft.cleanupLabel(I[H]));break;case 46:break;case 47:break;case 48:this.$={id1:I[H-2],id2:I[H],relation:I[H-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:I[H-3],id2:I[H],relation:I[H-1],relationTitle1:I[H-2],relationTitle2:"none"};break;case 50:this.$={id1:I[H-3],id2:I[H],relation:I[H-2],relationTitle1:"none",relationTitle2:I[H-1]};break;case 51:this.$={id1:I[H-4],id2:I[H],relation:I[H-2],relationTitle1:I[H-3],relationTitle2:I[H-1]};break;case 52:ft.addNote(I[H],I[H-1]);break;case 53:ft.addNote(I[H]);break;case 54:ft.setDirection("TB");break;case 55:ft.setDirection("BT");break;case 56:ft.setDirection("RL");break;case 57:ft.setDirection("LR");break;case 58:this.$={type1:I[H-2],type2:I[H],lineType:I[H-1]};break;case 59:this.$={type1:"none",type2:I[H],lineType:I[H-1]};break;case 60:this.$={type1:I[H-1],type2:"none",lineType:I[H]};break;case 61:this.$={type1:"none",type2:"none",lineType:I[H]};break;case 62:this.$=ft.relationType.AGGREGATION;break;case 63:this.$=ft.relationType.EXTENSION;break;case 64:this.$=ft.relationType.COMPOSITION;break;case 65:this.$=ft.relationType.DEPENDENCY;break;case 66:this.$=ft.relationType.LOLLIPOP;break;case 67:this.$=ft.lineType.LINE;break;case 68:this.$=ft.lineType.DOTTED_LINE;break;case 69:case 75:this.$=I[H-2],ft.setClickEvent(I[H-1],I[H]);break;case 70:case 76:this.$=I[H-3],ft.setClickEvent(I[H-2],I[H-1]),ft.setTooltip(I[H-2],I[H]);break;case 71:this.$=I[H-2],ft.setLink(I[H-1],I[H]);break;case 72:this.$=I[H-3],ft.setLink(I[H-2],I[H-1],I[H]);break;case 73:this.$=I[H-3],ft.setLink(I[H-2],I[H-1]),ft.setTooltip(I[H-2],I[H]);break;case 74:this.$=I[H-4],ft.setLink(I[H-3],I[H-2],I[H]),ft.setTooltip(I[H-3],I[H-1]);break;case 77:this.$=I[H-3],ft.setClickEvent(I[H-2],I[H-1],I[H]);break;case 78:this.$=I[H-4],ft.setClickEvent(I[H-3],I[H-2],I[H-1]),ft.setTooltip(I[H-3],I[H]);break;case 79:this.$=I[H-3],ft.setLink(I[H-2],I[H]);break;case 80:this.$=I[H-4],ft.setLink(I[H-3],I[H-1],I[H]);break;case 81:this.$=I[H-4],ft.setLink(I[H-3],I[H-1]),ft.setTooltip(I[H-3],I[H]);break;case 82:this.$=I[H-5],ft.setLink(I[H-4],I[H-2],I[H]),ft.setTooltip(I[H-4],I[H-1]);break;case 83:ft.setCssClass(I[H-1],I[H]);break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:rt,32:Tt,34:zt,35:20,39:Ut,40:21,43:xe,44:sn,46:Ke,47:Ye,49:Ne,51:y,52:wt,53:b,54:Y,55:gt,65:Mt,66:Qt,68:pe,72:Jt,84:ge,86:oe,87:ke,88:we,89:Pe},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},v(Be,[2,5],{8:[1,44]}),{8:[1,45]},v(Zt,[2,16],{21:[1,46]}),v(Zt,[2,18]),v(Zt,[2,19]),v(Zt,[2,20]),v(Zt,[2,21]),v(Zt,[2,22]),v(Zt,[2,23]),v(Zt,[2,24]),v(Zt,[2,25]),{31:[1,47]},{33:[1,48]},v(Zt,[2,28]),v(Zt,[2,44],{48:49,56:52,57:53,13:[1,50],21:[1,51],58:rn,59:w,60:r,61:k,62:Z,63:C,64:F}),{36:[1,61]},v(T,[2,35],{36:[1,63],41:[1,62]}),v(Zt,[2,46]),v(Zt,[2,47]),{16:64,84:ge,86:oe,87:ke,88:we},{16:35,17:65,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},{16:35,17:66,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},{16:35,17:67,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},{13:[1,68]},{16:35,17:69,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},{13:G,50:70},v(Zt,[2,54]),v(Zt,[2,55]),v(Zt,[2,56]),v(Zt,[2,57]),v(S,[2,11],{16:35,18:36,17:72,19:[1,73],84:ge,86:oe,87:ke,88:we,89:Pe}),v(S,[2,12],{19:[1,74]}),{15:75,16:76,84:ge,86:oe,87:ke,88:we},{16:35,17:77,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},v(M,[2,97]),v(M,[2,98]),v(M,[2,99]),v(M,[2,100]),v([1,8,9,12,13,19,21,36,38,41,58,59,60,61,62,63,64,69,71],[2,101]),v(Be,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,17:19,35:20,40:21,16:35,18:36,5:78,30:rt,32:Tt,34:zt,39:Ut,43:xe,44:sn,46:Ke,47:Ye,49:Ne,51:y,52:wt,53:b,54:Y,55:gt,65:Mt,66:Qt,68:pe,72:Jt,84:ge,86:oe,87:ke,88:we,89:Pe}),{5:79,10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:rt,32:Tt,34:zt,35:20,39:Ut,40:21,43:xe,44:sn,46:Ke,47:Ye,49:Ne,51:y,52:wt,53:b,54:Y,55:gt,65:Mt,66:Qt,68:pe,72:Jt,84:ge,86:oe,87:ke,88:we,89:Pe},v(Zt,[2,17]),v(Zt,[2,26]),v(Zt,[2,27]),{13:[1,81],16:35,17:80,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},{48:82,56:52,57:53,58:rn,59:w,60:r,61:k,62:Z,63:C,64:F},v(Zt,[2,45]),{57:83,63:C,64:F},v(W,[2,61],{56:84,58:rn,59:w,60:r,61:k,62:Z}),v(nt,[2,62]),v(nt,[2,63]),v(nt,[2,64]),v(nt,[2,65]),v(nt,[2,66]),v(dt,[2,67]),v(dt,[2,68]),{8:[1,86],23:87,37:85,40:21,43:xe},{16:88,84:ge,86:oe,87:ke,88:we},{42:89,46:St},{45:[1,91]},{13:[1,92]},{13:[1,93]},{69:[1,94],71:[1,95]},{16:96,84:ge,86:oe,87:ke,88:we},{13:G,50:97},v(Zt,[2,53]),v(Zt,[2,102]),v(S,[2,13]),v(S,[2,14]),v(S,[2,15]),{36:[2,31]},{15:98,16:76,36:[2,9],84:ge,86:oe,87:ke,88:we},v(ne,[2,39],{11:99,12:[1,100]}),v(Be,[2,7]),{9:[1,101]},v(le,[2,48]),{16:35,17:102,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},{13:[1,104],16:35,17:103,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},v(W,[2,60],{56:105,58:rn,59:w,60:r,61:k,62:Z}),v(W,[2,59]),{38:[1,106]},{23:87,37:107,40:21,43:xe},{8:[1,108],38:[2,32]},v(T,[2,36],{36:[1,109]}),{38:[1,110]},{38:[2,42],42:111,46:St},{16:35,17:112,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},v(Zt,[2,69],{13:[1,113]}),v(Zt,[2,71],{13:[1,115],67:[1,114]}),v(Zt,[2,75],{13:[1,116],70:[1,117]}),{13:[1,118]},v(Zt,[2,83]),v(Zt,[2,52]),{36:[2,10]},v(ne,[2,40]),{13:[1,119]},{1:[2,4]},v(le,[2,50]),v(le,[2,49]),{16:35,17:120,18:36,84:ge,86:oe,87:ke,88:we,89:Pe},v(W,[2,58]),v(Zt,[2,29]),{38:[1,121]},{23:87,37:122,38:[2,33],40:21,43:xe},{42:123,46:St},v(T,[2,37]),{38:[2,43]},v(Zt,[2,41]),v(Zt,[2,70]),v(Zt,[2,72]),v(Zt,[2,73],{67:[1,124]}),v(Zt,[2,76]),v(Zt,[2,77],{13:[1,125]}),v(Zt,[2,79],{13:[1,127],67:[1,126]}),{14:[1,128]},v(le,[2,51]),v(Zt,[2,30]),{38:[2,34]},{38:[1,129]},v(Zt,[2,74]),v(Zt,[2,78]),v(Zt,[2,80]),v(Zt,[2,81],{67:[1,130]}),v(ne,[2,8]),v(T,[2,38]),v(Zt,[2,82])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],75:[2,31],98:[2,10],101:[2,4],111:[2,43],122:[2,34]},parseError:function(Q,it){if(it.recoverable)this.trace(Q);else{var Dt=new Error(Q);throw Dt.hash=it,Dt}},parse:function(Q){var it=this,Dt=[0],ft=[],at=[null],I=[],Wt=this.table,H="",Fe=0,fn=0,bn=2,zn=1,$e=I.slice.call(arguments,1),Ue=Object.create(this.lexer),kn={yy:{}};for(var an in this.yy)Object.prototype.hasOwnProperty.call(this.yy,an)&&(kn.yy[an]=this.yy[an]);Ue.setInput(Q,kn.yy),kn.yy.lexer=Ue,kn.yy.parser=this,typeof Ue.yylloc=="undefined"&&(Ue.yylloc={});var Se=Ue.yylloc;I.push(Se);var Qn=Ue.options&&Ue.options.ranges;typeof kn.yy.parseError=="function"?this.parseError=kn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mn(){var Un;return Un=ft.pop()||Ue.lex()||zn,typeof Un!="number"&&(Un instanceof Array&&(ft=Un,Un=ft.pop()),Un=it.symbols_[Un]||Un),Un}for(var vt,ye,Ge,An,Cn={},cn,en,Nn,Bn;;){if(ye=Dt[Dt.length-1],this.defaultActions[ye]?Ge=this.defaultActions[ye]:((vt===null||typeof vt=="undefined")&&(vt=mn()),Ge=Wt[ye]&&Wt[ye][vt]),typeof Ge=="undefined"||!Ge.length||!Ge[0]){var In="";Bn=[];for(cn in Wt[ye])this.terminals_[cn]&&cn>bn&&Bn.push("'"+this.terminals_[cn]+"'");Ue.showPosition?In="Parse error on line "+(Fe+1)+`:
`+Ue.showPosition()+`
Expecting `+Bn.join(", ")+", got '"+(this.terminals_[vt]||vt)+"'":In="Parse error on line "+(Fe+1)+": Unexpected "+(vt==zn?"end of input":"'"+(this.terminals_[vt]||vt)+"'"),this.parseError(In,{text:Ue.match,token:this.terminals_[vt]||vt,line:Ue.yylineno,loc:Se,expected:Bn})}if(Ge[0]instanceof Array&&Ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+vt);switch(Ge[0]){case 1:Dt.push(vt),at.push(Ue.yytext),I.push(Ue.yylloc),Dt.push(Ge[1]),vt=null,fn=Ue.yyleng,H=Ue.yytext,Fe=Ue.yylineno,Se=Ue.yylloc;break;case 2:if(en=this.productions_[Ge[1]][1],Cn.$=at[at.length-en],Cn._$={first_line:I[I.length-(en||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(en||1)].first_column,last_column:I[I.length-1].last_column},Qn&&(Cn._$.range=[I[I.length-(en||1)].range[0],I[I.length-1].range[1]]),An=this.performAction.apply(Cn,[H,fn,Fe,kn.yy,Ge[1],at,I].concat($e)),typeof An!="undefined")return An;en&&(Dt=Dt.slice(0,-1*en*2),at=at.slice(0,-1*en),I=I.slice(0,-1*en)),Dt.push(this.productions_[Ge[1]][0]),at.push(Cn.$),I.push(Cn._$),Nn=Wt[Dt[Dt.length-2]][Dt[Dt.length-1]],Dt.push(Nn);break;case 3:return!0}}return!0}},Ht=function(){var _t={EOF:1,parseError:function(it,Dt){if(this.yy.parser)this.yy.parser.parseError(it,Dt);else throw new Error(it)},setInput:function(Q,it){return this.yy=it||this.yy||{},this._input=Q,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},input:function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var it=Q.match(/(?:\r\n?|\n).*/g);return it?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},unput:function(Q){var it=Q.length,Dt=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-it),this.offset-=it;var ft=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),Dt.length-1&&(this.yylineno-=Dt.length-1);var at=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:Dt?(Dt.length===ft.length?this.yylloc.first_column:0)+ft[ft.length-Dt.length].length-Dt[0].length:this.yylloc.first_column-it},this.options.ranges&&(this.yylloc.range=[at[0],at[0]+this.yyleng-it]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),it=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+`
`+it+"^"},test_match:function(Q,it){var Dt,ft,at;if(this.options.backtrack_lexer&&(at={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&&(at.yylloc.range=this.yylloc.range.slice(0))),ft=Q[0].match(/(?:\r\n?|\n).*/g),ft&&(this.yylineno+=ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ft?ft[ft.length-1].length-ft[ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,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(Q[0].length),this.matched+=Q[0],Dt=this.performAction.call(this,this.yy,this,it,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Dt)return Dt;if(this._backtrack){for(var I in at)this[I]=at[I];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,it,Dt,ft;this._more||(this.yytext="",this.match="");for(var at=this._currentRules(),I=0;I<at.length;I++)if(Dt=this._input.match(this.rules[at[I]]),Dt&&(!it||Dt[0].length>it[0].length)){if(it=Dt,ft=I,this.options.backtrack_lexer){if(Q=this.test_match(Dt,at[I]),Q!==!1)return Q;if(this._backtrack){it=!1;continue}else return!1}else if(!this.options.flex)break}return it?(Q=this.test_match(it,at[ft]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var it=this.next();return it||this.lex()},begin:function(it){this.conditionStack.push(it)},popState:function(){var it=this.conditionStack.length-1;return it>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(it){return it=this.conditionStack.length-1-Math.abs(it||0),it>=0?this.conditionStack[it]:"INITIAL"},pushState:function(it){this.begin(it)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(it,Dt,ft,at){switch(ft){case 0:return 52;case 1:return 53;case 2:return 54;case 3:return 55;case 4:break;case 5:break;case 6:return this.begin("acc_title"),30;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),32;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 69;case 22:this.popState();break;case 23:return 70;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return this.begin("namespace"),39;case 28:return this.popState(),8;case 29:break;case 30:return this.begin("namespace-body"),36;case 31:return this.popState(),38;case 32:return"EOF_IN_STRUCT";case 33:return 8;case 34:break;case 35:return"EDGE_STATE";case 36:return this.begin("class"),43;case 37:return this.popState(),8;case 38:break;case 39:return this.popState(),this.popState(),38;case 40:return this.begin("class-body"),36;case 41:return this.popState(),38;case 42:return"EOF_IN_STRUCT";case 43:return"EDGE_STATE";case 44:return"OPEN_IN_STRUCT";case 45:break;case 46:return"MEMBER";case 47:return 72;case 48:return 65;case 49:return 66;case 50:return 68;case 51:return 49;case 52:return 51;case 53:return 44;case 54:return 45;case 55:return 71;case 56:this.popState();break;case 57:return"GENERICTYPE";case 58:this.begin("generic");break;case 59:this.popState();break;case 60:return"BQUOTE_STR";case 61:this.begin("bqstring");break;case 62:return 67;case 63:return 67;case 64:return 67;case 65:return 67;case 66:return 59;case 67:return 59;case 68:return 61;case 69:return 61;case 70:return 60;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 64;case 75:return 21;case 76:return 41;case 77:return 84;case 78:return"DOT";case 79:return"PLUS";case 80:return 81;case 81:return"EQUALS";case 82:return"EQUALS";case 83:return 88;case 84:return 12;case 85:return 14;case 86:return"PUNCTUATION";case 87:return 87;case 88:return 86;case 89:return 83;case 90:return 9}},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]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?: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)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,31,32,33,34,35,36,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},namespace:{rules:[26,27,28,29,30,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},"class-body":{rules:[26,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},class:{rules:[26,37,38,39,40,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},acc_descr:{rules:[9,26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},acc_title:{rules:[7,26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},callback_args:{rules:[22,23,26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},callback_name:{rules:[19,20,21,26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},href:{rules:[26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},struct:{rules:[26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},generic:{rules:[26,47,48,49,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,83,84,85,86,87,88,89,90],inclusive:!1},bqstring:{rules:[26,47,48,49,50,51,52,53,54,55,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],inclusive:!1},string:{rules:[24,25,26,47,48,49,50,51,52,53,54,55,58,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],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,36,47,48,49,50,51,52,53,54,55,58,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],inclusive:!0}}};return _t}();te.lexer=Ht;function It(){this.yy={}}return It.prototype=te,te.Parser=It,new It}();R.parser=R;const L=R,mt=["#","+","~","-",""];class tt{constructor(rt,Tt){this.memberType=Tt,this.visibility="",this.classifier="";const zt=(0,O.d)(rt,(0,O.c)());this.parseMember(zt)}getDisplayDetails(){let rt=this.visibility+(0,O.v)(this.id);this.memberType==="method"&&(rt+=`(${(0,O.v)(this.parameters.trim())})`,this.returnType&&(rt+=" : "+(0,O.v)(this.returnType))),rt=rt.trim();const Tt=this.parseClassifier();return{displayText:rt,cssStyle:Tt}}parseMember(rt){let Tt="";if(this.memberType==="method"){const zt=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,Ut=rt.match(zt);if(Ut){const xe=Ut[1]?Ut[1].trim():"";if(mt.includes(xe)&&(this.visibility=xe),this.id=Ut[2].trim(),this.parameters=Ut[3]?Ut[3].trim():"",Tt=Ut[4]?Ut[4].trim():"",this.returnType=Ut[5]?Ut[5].trim():"",Tt===""){const sn=this.returnType.substring(this.returnType.length-1);sn.match(/[$*]/)&&(Tt=sn,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const zt=rt.length,Ut=rt.substring(0,1),xe=rt.substring(zt-1);mt.includes(Ut)&&(this.visibility=Ut),xe.match(/[*?]/)&&(Tt=xe),this.id=rt.substring(this.visibility===""?0:1,Tt===""?zt:zt-1)}this.classifier=Tt}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const bt="classId-";let U=[],ct={},kt=[],Nt=0,lt={},Ft=0,At=[];const $t=v=>O.e.sanitizeText(v,(0,O.c)()),ue=function(v){const rt=O.e.sanitizeText(v,(0,O.c)());let Tt="",zt=rt;if(rt.indexOf("~")>0){const Ut=rt.split("~");zt=$t(Ut[0]),Tt=$t(Ut[1])}return{className:zt,type:Tt}},ce=function(v,rt){const Tt=O.e.sanitizeText(v,(0,O.c)());rt&&(rt=$t(rt));const{className:zt}=ue(Tt);ct[zt].label=rt},Le=function(v){const rt=O.e.sanitizeText(v,(0,O.c)()),{className:Tt,type:zt}=ue(rt);if(Object.hasOwn(ct,Tt))return;const Ut=O.e.sanitizeText(Tt,(0,O.c)());ct[Ut]={id:Ut,type:zt,label:Ut,cssClasses:[],methods:[],members:[],annotations:[],domId:bt+Ut+"-"+Nt},Nt++},Ze=function(v){const rt=O.e.sanitizeText(v,(0,O.c)());if(rt in ct)return ct[rt].domId;throw new Error("Class not found: "+rt)},Vt=function(){U=[],ct={},kt=[],At=[],At.push(se),lt={},Ft=0,(0,O.t)()},ht=function(v){return ct[v]},re=function(){return ct},ze=function(){return U},Bt=function(){return kt},me=function(v){O.l.debug("Adding relation: "+JSON.stringify(v)),Le(v.id1),Le(v.id2),v.id1=ue(v.id1).className,v.id2=ue(v.id2).className,v.relationTitle1=O.e.sanitizeText(v.relationTitle1.trim(),(0,O.c)()),v.relationTitle2=O.e.sanitizeText(v.relationTitle2.trim(),(0,O.c)()),U.push(v)},Rt=function(v,rt){const Tt=ue(v).className;ct[Tt].annotations.push(rt)},Te=function(v,rt){Le(v);const Tt=ue(v).className,zt=ct[Tt];if(typeof rt=="string"){const Ut=rt.trim();Ut.startsWith("<<")&&Ut.endsWith(">>")?zt.annotations.push($t(Ut.substring(2,Ut.length-2))):Ut.indexOf(")")>0?zt.methods.push(new tt(Ut,"method")):Ut&&zt.members.push(new tt(Ut,"attribute"))}},he=function(v,rt){Array.isArray(rt)&&(rt.reverse(),rt.forEach(Tt=>Te(v,Tt)))},Ae=function(v,rt){const Tt={id:`note${kt.length}`,class:rt,text:v};kt.push(Tt)},jt=function(v){return v.startsWith(":")&&(v=v.substring(1)),$t(v.trim())},ie=function(v,rt){v.split(",").forEach(function(Tt){let zt=Tt;Tt[0].match(/\d/)&&(zt=bt+zt),ct[zt]!==void 0&&ct[zt].cssClasses.push(rt)})},et=function(v,rt){v.split(",").forEach(function(Tt){rt!==void 0&&(ct[Tt].tooltip=$t(rt))})},m=function(v,rt){return rt?lt[rt].classes[v].tooltip:ct[v].tooltip},K=function(v,rt,Tt){const zt=(0,O.c)();v.split(",").forEach(function(Ut){let xe=Ut;Ut[0].match(/\d/)&&(xe=bt+xe),ct[xe]!==void 0&&(ct[xe].link=O.u.formatUrl(rt,zt),zt.securityLevel==="sandbox"?ct[xe].linkTarget="_top":typeof Tt=="string"?ct[xe].linkTarget=$t(Tt):ct[xe].linkTarget="_blank")}),ie(v,"clickable")},Ct=function(v,rt,Tt){v.split(",").forEach(function(zt){ut(zt,rt,Tt),ct[zt].haveCallback=!0}),ie(v,"clickable")},ut=function(v,rt,Tt){const zt=O.e.sanitizeText(v,(0,O.c)());if((0,O.c)().securityLevel!=="loose"||rt===void 0)return;const xe=zt;if(ct[xe]!==void 0){const sn=Ze(xe);let Ke=[];if(typeof Tt=="string"){Ke=Tt.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let Ye=0;Ye<Ke.length;Ye++){let Ne=Ke[Ye].trim();Ne.charAt(0)==='"'&&Ne.charAt(Ne.length-1)==='"'&&(Ne=Ne.substr(1,Ne.length-2)),Ke[Ye]=Ne}}Ke.length===0&&Ke.push(sn),At.push(function(){const Ye=document.querySelector(`[id="${sn}"]`);Ye!==null&&Ye.addEventListener("click",function(){O.u.runFunc(rt,...Ke)},!1)})}},Ot=function(v){At.forEach(function(rt){rt(v)})},ae={LINE:0,DOTTED_LINE:1},Xt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},se=function(v){let rt=(0,l.Ys)(".mermaidTooltip");(rt._groups||rt)[0][0]===null&&(rt=(0,l.Ys)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,l.Ys)(v).select("svg").selectAll("g.node").on("mouseover",function(){const Ut=(0,l.Ys)(this);if(Ut.attr("title")===null)return;const sn=this.getBoundingClientRect();rt.transition().duration(200).style("opacity",".9"),rt.text(Ut.attr("title")).style("left",window.scrollX+sn.left+(sn.right-sn.left)/2+"px").style("top",window.scrollY+sn.top-14+document.body.scrollTop+"px"),rt.html(rt.html().replace(/&lt;br\/&gt;/g,"<br/>")),Ut.classed("hover",!0)}).on("mouseout",function(){rt.transition().duration(500).style("opacity",0),(0,l.Ys)(this).classed("hover",!1)})};At.push(se);let We="TB";const De=()=>We,je=v=>{We=v},Gt=function(v){lt[v]===void 0&&(lt[v]={id:v,classes:{},children:{},domId:bt+v+"-"+Ft},Ft++)},Pt=function(v){return lt[v]},tn=function(){return lt},nn=function(v,rt){lt[v]!==void 0&&rt.map(Tt=>{ct[Tt].parent=v,lt[v].classes[Tt]=ct[Tt]})},fe={setAccTitle:O.s,getAccTitle:O.g,getAccDescription:O.a,setAccDescription:O.b,getConfig:()=>(0,O.c)().class,addClass:Le,bindFunctions:Ot,clear:Vt,getClass:ht,getClasses:re,getNotes:Bt,addAnnotation:Rt,addNote:Ae,getRelations:ze,addRelation:me,getDirection:De,setDirection:je,addMember:Te,addMembers:he,cleanupLabel:jt,lineType:ae,relationType:Xt,setClickEvent:Ct,setCssClass:ie,setLink:K,getTooltip:m,setTooltip:et,lookUpDomId:Ze,setDiagramTitle:O.q,getDiagramTitle:O.r,setClassLabel:ce,addNamespace:Gt,addClassesToNamespace:nn,getNamespace:Pt,getNamespaces:tn},yt=v=>`g.classGroup text {
fill: ${v.nodeBorder};
fill: ${v.classText};
stroke: none;
font-family: ${v.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: ${v.classText};
}
.edgeLabel .label rect {
fill: ${v.mainBkg};
}
.label text {
fill: ${v.classText};
}
.edgeLabel .label span {
background: ${v.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${v.mainBkg};
stroke: ${v.nodeBorder};
stroke-width: 1px;
}
.divider {
stroke: ${v.nodeBorder};
stroke-width: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${v.mainBkg};
stroke: ${v.nodeBorder};
}
g.classGroup line {
stroke: ${v.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${v.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${v.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${v.lineColor};
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
#compositionStart, .composition {
fill: ${v.lineColor} !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${v.lineColor} !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${v.lineColor} !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${v.lineColor} !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: transparent !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: transparent !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: transparent !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: transparent !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: ${v.mainBkg} !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
fill: ${v.mainBkg} !important;
stroke: ${v.lineColor} !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
.classTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${v.textColor};
}
`}}]);