"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7403],{81809:(t,e,r)=>{r.d(e,{H:()=>a});var n=r(62322);function a(t,e){var r=t.append("foreignObject").attr("width","100000");var a=r.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var o=e.label;switch(typeof o){case"function":a.insert(o);break;case"object":a.insert((function(){return o}));break;default:a.html(o)}n.AV(a,e.labelStyle);a.style("display","inline-block");a.style("white-space","nowrap");var i=a.node().getBoundingClientRect();r.attr("width",i.width).attr("height",i.height);return r}},62322:(t,e,r)=>{r.d(e,{AV:()=>c,De:()=>o,c$:()=>h,gh:()=>i,nh:()=>d});var n=r(78696);var a=r(58807);function o(t,e){return!!t.children(e).length}function i(t){return s(t.v)+":"+s(t.w)+":"+s(t.name)}var l=/:/g;function s(t){return t?String(t).replace(l,"\\:"):""}function c(t,e){if(e){t.attr("style",e)}}function d(t,e,r){if(e){t.attr("class",e).attr("class",r+" "+t.attr("class"))}}function h(t,e){var r=e.graph();if(n.A(r)){var o=r.transition;if(a.A(o)){return o(t)}}return t}},87403:(t,e,r)=>{r.d(e,{diagram:()=>Mt});var n=r(34050);var a=r(84416);var o=r(92935);var i=r(76235);var l=r(2850);var s=r(38693);var c=r(69769);var d=r(29);var h=r(62322);var u={normal:p,vee:g,undirected:v};function f(t){u=t}function p(t,e,r,n){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto");var o=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.AV(o,r[n+"Style"]);if(r[n+"Class"]){o.attr("class",r[n+"Class"])}}function g(t,e,r,n){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto");var o=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.AV(o,r[n+"Style"]);if(r[n+"Class"]){o.attr("class",r[n+"Class"])}}function v(t,e,r,n){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto");var o=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");h.AV(o,r[n+"Style"]);if(r[n+"Class"]){o.attr("class",r[n+"Class"])}}var y=r(81809);function b(t,e){var r=t;r.node().appendChild(e.label);h.AV(r,e.labelStyle);return r}function w(t,e){var r=t.append("text");var n=x(e.label).split("\n");for(var a=0;a0}function Y(t,e,r){var n=t.x;var a=t.y;var o=[];var i=Number.POSITIVE_INFINITY;var l=Number.POSITIVE_INFINITY;e.forEach((function(t){i=Math.min(i,t.x);l=Math.min(l,t.y)}));var s=n-t.width/2-i;var c=a-t.height/2-l;for(var d=0;d1){o.sort((function(t,e){var n=t.x-r.x;var a=t.y-r.y;var o=Math.sqrt(n*n+a*a);var i=e.x-r.x;var l=e.y-r.y;var s=Math.sqrt(i*i+l*l);return oMath.abs(a)*l){if(o<0){l=-l}s=o===0?0:l*a/o;c=l}else{if(a<0){i=-i}s=i;c=a===0?0:i*o/a}return{x:r+s,y:n+c}}var F={rect:J,ellipse:Z,circle:K,diamond:tt};function Q(t){F=t}function J(t,e,r){var n=t.insert("rect",":first-child").attr("rx",r.rx).attr("ry",r.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);r.intersect=function(t){return G(r,t)};return n}function Z(t,e,r){var n=e.width/2;var a=e.height/2;var o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);r.intersect=function(t){return q(r,n,a,t)};return o}function K(t,e,r){var n=Math.max(e.width,e.height)/2;var a=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);r.intersect=function(t){return H(r,n,t)};return a}function tt(t,e,r){var n=e.width*Math.SQRT2/2;var a=e.height*Math.SQRT2/2;var o=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}];var i=t.insert("polygon",":first-child").attr("points",o.map((function(t){return t.x+","+t.y})).join(" "));r.intersect=function(t){return Y(r,o,t)};return i}function et(){var t=function(t,e){at(e);var r=it(t,"output");var n=it(r,"clusters");var a=it(r,"edgePaths");var o=S(it(r,"edgeLabels"),e);var i=R(it(r,"nodes"),e,F);(0,d.Zp)(e);P(i,e);W(o,e);B(a,e,u);var l=m(n,e);j(l,e);ot(e)};t.createNodes=function(e){if(!arguments.length)return R;z(e);return t};t.createClusters=function(e){if(!arguments.length)return m;A(e);return t};t.createEdgeLabels=function(e){if(!arguments.length)return S;_(e);return t};t.createEdgePaths=function(e){if(!arguments.length)return B;C(e);return t};t.shapes=function(e){if(!arguments.length)return F;Q(e);return t};t.arrows=function(e){if(!arguments.length)return u;f(e);return t};return t}var rt={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"};var nt={arrowhead:"normal",curve:o.lUB};function at(t){t.nodes().forEach((function(e){var r=t.node(e);if(!l.A(r,"label")&&!t.children(e).length){r.label=e}if(l.A(r,"paddingX")){s.A(r,{paddingLeft:r.paddingX,paddingRight:r.paddingX})}if(l.A(r,"paddingY")){s.A(r,{paddingTop:r.paddingY,paddingBottom:r.paddingY})}if(l.A(r,"padding")){s.A(r,{paddingLeft:r.padding,paddingRight:r.padding,paddingTop:r.padding,paddingBottom:r.padding})}s.A(r,rt);c.A(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){r[t]=Number(r[t])}));if(l.A(r,"width")){r._prevWidth=r.width}if(l.A(r,"height")){r._prevHeight=r.height}}));t.edges().forEach((function(e){var r=t.edge(e);if(!l.A(r,"label")){r.label=""}s.A(r,nt)}))}function ot(t){c.A(t.nodes(),(function(e){var r=t.node(e);if(l.A(r,"_prevWidth")){r.width=r._prevWidth}else{delete r.width}if(l.A(r,"_prevHeight")){r.height=r._prevHeight}else{delete r.height}delete r._prevWidth;delete r._prevHeight}))}function it(t,e){var r=t.select("g."+e);if(r.empty()){r=t.append("g").attr("class",e)}return r}var lt=r(76706);var st=r(74353);var ct=r(16750);var dt=r(42838);var ht=r(93498);function ut(t,e,r){const n=e.width;const a=e.height;const o=(n+a)*.9;const i=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];const l=_t(t,o,o,i);r.intersect=function(t){return Y(r,i,t)};return l}function ft(t,e,r){const n=4;const a=e.height;const o=a/n;const i=e.width+2*o;const l=[{x:o,y:0},{x:i-o,y:0},{x:i,y:-a/2},{x:i-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}];const s=_t(t,i,a,l);r.intersect=function(t){return Y(r,l,t)};return s}function pt(t,e,r){const n=e.width;const a=e.height;const o=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function gt(t,e,r){const n=e.width;const a=e.height;const o=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function vt(t,e,r){const n=e.width;const a=e.height;const o=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function yt(t,e,r){const n=e.width;const a=e.height;const o=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function bt(t,e,r){const n=e.width;const a=e.height;const o=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function wt(t,e,r){const n=e.width;const a=e.height;const o=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function xt(t,e,r){const n=e.height;const a=e.width+n/4;const o=t.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);r.intersect=function(t){return G(r,t)};return o}function kt(t,e,r){const n=e.width;const a=e.height;const o=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}];const i=_t(t,n,a,o);r.intersect=function(t){return Y(r,o,t)};return i}function mt(t,e,r){const n=e.width;const a=n/2;const o=a/(2.5+n/50);const i=e.height+o;const l="M 0,"+o+" a "+a+","+o+" 0,0,0 "+n+" 0 a "+a+","+o+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+o+" 0,0,0 "+n+" 0 l 0,"+-i;const s=t.attr("label-offset-y",o).insert("path",":first-child").attr("d",l).attr("transform","translate("+-n/2+","+-(i/2+o)+")");r.intersect=function(t){const e=G(r,t);const n=e.x-r.x;if(a!=0&&(Math.abs(n)r.height/2-o)){let i=o*o*(1-n*n/(a*a));if(i!=0){i=Math.sqrt(i)}i=o-i;if(t.y-r.y>0){i=-i}e.y+=i}return e};return s}function At(t){t.shapes().question=ut;t.shapes().hexagon=ft;t.shapes().stadium=xt;t.shapes().subroutine=kt;t.shapes().cylinder=mt;t.shapes().rect_left_inv_arrow=pt;t.shapes().lean_right=gt;t.shapes().lean_left=vt;t.shapes().trapezoid=yt;t.shapes().inv_trapezoid=bt;t.shapes().rect_right_inv_arrow=wt}function St(t){t({question:ut});t({hexagon:ft});t({stadium:xt});t({subroutine:kt});t({cylinder:mt});t({rect_left_inv_arrow:pt});t({lean_right:gt});t({lean_left:vt});t({trapezoid:yt});t({inv_trapezoid:bt});t({rect_right_inv_arrow:wt})}function _t(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const Lt={addToRender:At,addToRenderV2:St};const Tt={};const $t=function(t){const e=Object.keys(t);for(const r of e){Tt[r]=t[r]}};const Bt=function(t,e,r,n,a,l){const s=!n?(0,o.Ltv)(`[id="${r}"]`):n.select(`[id="${r}"]`);const c=!a?document:a;const d=Object.keys(t);d.forEach((function(r){const n=t[r];let a="default";if(n.classes.length>0){a=n.classes.join(" ")}const o=(0,i.k)(n.styles);let d=n.text!==void 0?n.text:n.id;let h;if((0,i.m)((0,i.c)().flowchart.htmlLabels)){const t={label:d.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``))};h=(0,y.H)(s,t).node();h.parentNode.removeChild(h)}else{const t=c.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",o.labelStyle.replace("color:","fill:"));const e=d.split(i.e.lineBreakRegex);for(const r of e){const e=c.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");e.setAttribute("dy","1em");e.setAttribute("x","1");e.textContent=r;t.appendChild(e)}h=t}let u=0;let f="";switch(n.type){case"round":u=5;f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}i.l.warn("Adding node",n.id,n.domId);e.setNode(l.db.lookUpDomId(n.id),{labelType:"svg",labelStyle:o.labelStyle,shape:f,label:h,rx:u,ry:u,class:a,style:o.style,id:l.db.lookUpDomId(n.id)})}))};const Ct=function(t,e,r){let n=0;let a;let l;if(t.defaultStyle!==void 0){const e=(0,i.k)(t.defaultStyle);a=e.style;l=e.labelStyle}t.forEach((function(s){n++;const c="L-"+s.start+"-"+s.end;const d="LS-"+s.start;const h="LE-"+s.end;const u={};if(s.type==="arrow_open"){u.arrowhead="none"}else{u.arrowhead="normal"}let f="";let p="";if(s.style!==void 0){const t=(0,i.k)(s.style);f=t.style;p=t.labelStyle}else{switch(s.stroke){case"normal":f="fill:none";if(a!==void 0){f=a}if(l!==void 0){p=l}break;case"dotted":f="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f=" stroke-width: 3.5px;fill:none";break}}u.style=f;u.labelStyle=p;if(s.interpolate!==void 0){u.curve=(0,i.n)(s.interpolate,o.lUB)}else if(t.defaultInterpolate!==void 0){u.curve=(0,i.n)(t.defaultInterpolate,o.lUB)}else{u.curve=(0,i.n)(Tt.curve,o.lUB)}if(s.text===void 0){if(s.style!==void 0){u.arrowheadStyle="fill: #333"}}else{u.arrowheadStyle="fill: #333";u.labelpos="c";if((0,i.m)((0,i.c)().flowchart.htmlLabels)){u.labelType="html";u.label=`${s.text.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``))}`}else{u.labelType="text";u.label=s.text.replace(i.e.lineBreakRegex,"\n");if(s.style===void 0){u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none"}u.labelStyle=u.labelStyle.replace("color:","fill:")}}u.id=c;u.class=d+" "+h;u.minlen=s.length||1;e.setEdge(r.db.lookUpDomId(s.start),r.db.lookUpDomId(s.end),u,n)}))};const Et=function(t,e){i.l.info("Extracting classes");return e.db.getClasses()};const Nt=function(t,e,r,n){i.l.info("Drawing flowchart");const{securityLevel:l,flowchart:s}=(0,i.c)();let c;if(l==="sandbox"){c=(0,o.Ltv)("#i"+e)}const d=l==="sandbox"?(0,o.Ltv)(c.nodes()[0].contentDocument.body):(0,o.Ltv)("body");const u=l==="sandbox"?c.nodes()[0].contentDocument:document;let f=n.db.getDirection();if(f===void 0){f="TD"}const p=s.nodeSpacing||50;const g=s.rankSpacing||50;const v=new a.T({multigraph:true,compound:true}).setGraph({rankdir:f,nodesep:p,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let y;const b=n.db.getSubGraphs();for(let a=b.length-1;a>=0;a--){y=b[a];n.db.addVertex(y.id,y.title,"group",void 0,y.classes)}const w=n.db.getVertices();i.l.warn("Get vertices",w);const x=n.db.getEdges();let k=0;for(k=b.length-1;k>=0;k--){y=b[k];(0,o.Ubm)("cluster").append("text");for(let t=0;t{if(!t.flowchart){t.flowchart={}}t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute;It.setConf(t.flowchart);n.f.clear();n.f.setGen("gen-1")}}},76706:(t,e,r)=>{r.d(e,{a:()=>m,f:()=>w});var n=r(84416);var a=r(92935);var o=r(76235);var i=r(71017);var l=r(81809);var s=r(57991);var c=r(63221);const d=(t,e)=>s.A.lang.round(c.A.parse(t)[e]);const h=d;var u=r(3635);const f={};const p=function(t){const e=Object.keys(t);for(const r of e){f[r]=t[r]}};const g=function(t,e,r,n,a,i){const s=n.select(`[id="${r}"]`);const c=Object.keys(t);c.forEach((function(r){const n=t[r];let c="default";if(n.classes.length>0){c=n.classes.join(" ")}c=c+" flowchart-label";const d=(0,o.k)(n.styles);let h=n.text!==void 0?n.text:n.id;let u;o.l.info("vertex",n,n.labelType);if(n.labelType==="markdown"){o.l.info("vertex",n,n.labelType)}else{if((0,o.m)((0,o.c)().flowchart.htmlLabels)){const t={label:h.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``))};u=(0,l.H)(s,t).node();u.parentNode.removeChild(u)}else{const t=a.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",d.labelStyle.replace("color:","fill:"));const e=h.split(o.e.lineBreakRegex);for(const r of e){const e=a.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");e.setAttribute("dy","1em");e.setAttribute("x","1");e.textContent=r;t.appendChild(e)}u=t}}let f=0;let p="";switch(n.type){case"round":f=5;p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}e.setNode(n.id,{labelStyle:d.labelStyle,shape:p,labelText:h,labelType:n.labelType,rx:f,ry:f,class:c,style:d.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:i.db.getTooltip(n.id)||"",domId:i.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:n.type==="group"?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:(0,o.c)().flowchart.padding});o.l.info("setNode",{labelStyle:d.labelStyle,labelType:n.labelType,shape:p,labelText:h,rx:f,ry:f,class:c,style:d.style,id:n.id,domId:i.db.lookUpDomId(n.id),width:n.type==="group"?500:void 0,type:n.type,dir:n.dir,props:n.props,padding:(0,o.c)().flowchart.padding})}))};const v=function(t,e,r){o.l.info("abc78 edges = ",t);let n=0;let i={};let l;let s;if(t.defaultStyle!==void 0){const e=(0,o.k)(t.defaultStyle);l=e.style;s=e.labelStyle}t.forEach((function(r){n++;const c="L-"+r.start+"-"+r.end;if(i[c]===void 0){i[c]=0;o.l.info("abc78 new entry",c,i[c])}else{i[c]++;o.l.info("abc78 new entry",c,i[c])}let d=c+"-"+i[c];o.l.info("abc78 new link id to be used is",c,d,i[c]);const h="LS-"+r.start;const u="LE-"+r.end;const p={style:"",labelStyle:""};p.minlen=r.length||1;if(r.type==="arrow_open"){p.arrowhead="none"}else{p.arrowhead="normal"}p.arrowTypeStart="arrow_open";p.arrowTypeEnd="arrow_open";switch(r.type){case"double_arrow_cross":p.arrowTypeStart="arrow_cross";case"arrow_cross":p.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":p.arrowTypeStart="arrow_point";case"arrow_point":p.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":p.arrowTypeStart="arrow_circle";case"arrow_circle":p.arrowTypeEnd="arrow_circle";break}let g="";let v="";switch(r.stroke){case"normal":g="fill:none;";if(l!==void 0){g=l}if(s!==void 0){v=s}p.thickness="normal";p.pattern="solid";break;case"dotted":p.thickness="normal";p.pattern="dotted";p.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":p.thickness="thick";p.pattern="solid";p.style="stroke-width: 3.5px;fill:none;";break;case"invisible":p.thickness="invisible";p.pattern="solid";p.style="stroke-width: 0;fill:none;";break}if(r.style!==void 0){const t=(0,o.k)(r.style);g=t.style;v=t.labelStyle}p.style=p.style+=g;p.labelStyle=p.labelStyle+=v;if(r.interpolate!==void 0){p.curve=(0,o.n)(r.interpolate,a.lUB)}else if(t.defaultInterpolate!==void 0){p.curve=(0,o.n)(t.defaultInterpolate,a.lUB)}else{p.curve=(0,o.n)(f.curve,a.lUB)}if(r.text===void 0){if(r.style!==void 0){p.arrowheadStyle="fill: #333"}}else{p.arrowheadStyle="fill: #333";p.labelpos="c"}p.labelType=r.labelType;p.label=r.text.replace(o.e.lineBreakRegex,"\n");if(r.style===void 0){p.style=p.style||"stroke: #333; stroke-width: 1.5px;fill:none;"}p.labelStyle=p.labelStyle.replace("color:","fill:");p.id=d;p.classes="flowchart-link "+h+" "+u;e.setEdge(r.start,r.end,p,n)}))};const y=function(t,e){return e.db.getClasses()};const b=async function(t,e,r,l){o.l.info("Drawing flowchart");let s=l.db.getDirection();if(s===void 0){s="TD"}const{securityLevel:c,flowchart:d}=(0,o.c)();const h=d.nodeSpacing||50;const u=d.rankSpacing||50;let f;if(c==="sandbox"){f=(0,a.Ltv)("#i"+e)}const p=c==="sandbox"?(0,a.Ltv)(f.nodes()[0].contentDocument.body):(0,a.Ltv)("body");const y=c==="sandbox"?f.nodes()[0].contentDocument:document;const b=new n.T({multigraph:true,compound:true}).setGraph({rankdir:s,nodesep:h,ranksep:u,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let w;const x=l.db.getSubGraphs();o.l.info("Subgraphs - ",x);for(let n=x.length-1;n>=0;n--){w=x[n];o.l.info("Subgraph - ",w);l.db.addVertex(w.id,{text:w.title,type:w.labelType},"group",void 0,w.classes,w.dir)}const k=l.db.getVertices();const m=l.db.getEdges();o.l.info("Edges",m);let A=0;for(A=x.length-1;A>=0;A--){w=x[A];(0,a.Ubm)("cluster").append("text");for(let t=0;t{const r=h;const n=r(t,"r");const a=r(t,"g");const o=r(t,"b");return u.A(n,a,o,e)};const k=t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${x(t.edgeLabelBackground,.5)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`;const m=k}}]);