You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
10 KiB
JavaScript

9 months ago
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1360],{42098:function(e,t,n){n.d(t,{a:function(){return l}});var r=n(89929);function l(e,t){var n=e.append("foreignObject").attr("width","100000"),l=n.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":l.insert(o);break;case"object":l.insert(function(){return o});break;default:l.html(o)}r.bg(l,t.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var a=l.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}},89929:function(e,t,n){n.d(t,{$p:function(){return d},O1:function(){return a},WR:function(){return p},bF:function(){return o},bg:function(){return s}});var r=n(6843),l=n(82610);function o(e,t){return!!e.children(t).length}function a(e){return c(e.v)+":"+c(e.w)+":"+c(e.name)}var i=/:/g;function c(e){return e?String(e).replace(i,"\\:"):""}function s(e,t){t&&e.attr("style",t)}function d(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))}function p(e,t){var n=t.graph();if(r.Z(n)){var o=n.transition;if(l.Z(o))return o(e)}return e}},21360:function(e,t,n){n.d(t,{diagram:function(){return a}});var r=n(9490),l=n(92829),o=n(51893);n(36783),n(77832),n(91605),n(23780),n(89539),n(99824),n(68985);let a={parser:r.p,db:r.f,renderer:l.f,styles:l.a,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,o.p)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),l.f.setConf(e.flowchart),r.f.clear(),r.f.setGen("gen-2")}}},92829:function(e,t,n){n.d(t,{a:function(){return y},f:function(){return h}});var r=n(77832),l=n(36783),o=n(51893),a=n(15883),i=n(42098),c=n(15926),s=n(34728),d=(e,t)=>c.Z.lang.round(s.Z.parse(e)[t]),p=n(5712);let b={},u=function(e,t,n,r,l,a){let c=r.select('[id="'.concat(n,'"]'));Object.keys(e).forEach(function(n){let r;let s=e[n],d="default";s.classes.length>0&&(d=s.classes.join(" ")),d+=" flowchart-label";let p=(0,o.k)(s.styles),b=void 0!==s.text?s.text:s.id;if(o.l.info("vertex",s,s.labelType),"markdown"===s.labelType)o.l.info("vertex",s,s.labelType);else if((0,o.m)((0,o.c)().flowchart.htmlLabels)){let e={label:b.replace(/fa[blrs]?:fa-[\w-]+/g,e=>"<i class='".concat(e.replace(":"," "),"'></i>"))};(r=(0,i.a)(c,e).node()).parentNode.removeChild(r)}else{let e=l.createElementNS("http://www.w3.org/2000/svg","text");for(let t of(e.setAttribute("style",p.labelStyle.replace("color:","fill:")),b.split(o.e.lineBreakRegex))){let n=l.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","1"),n.textContent=t,e.appendChild(n)}r=e}let u=0,f="";switch(s.type){case"round":u=5,f="rect";break;case"square":case"group":default:f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":case"odd_right":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"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"doublecircle":f="doublecircle"}t.setNode(s.id,{labelStyle:p.labelStyle,shape:f,labelText:b,labelType:s.labelType,rx:u,ry:u,class:d,style:p.style,id:s.id,link:s.link,linkTarget:s.linkTarget,tooltip:a.db.getTooltip(s.id)||"",domId:a.db.lookUpDomId(s.id),haveCallback:s.haveCallback,width:"group"===s.type?500:void 0,dir:s.dir,type:s.type,props:s.props,padding:(0,o.c)().flowchart.padding}),o.l.info("setNode",{labelStyle:p.labelStyle,labelType:s.labelType,shape:f,labelText:b,rx:u,ry:u,class:d,style:p.style,id:s.id,domId:a.db.lookUpDomId(s.id),width:"group"===s.type?500:void 0,type:s.type,dir:s.dir,props:s.props,padding:(0,o.c)().flowchart.padding})})},f=function(e,t,n){let r,a;o.l.info("abc78 edges = ",e);let i=0,c={};if(void 0!==e.defaultStyle){let t=(0,o.k)(e.defaultStyle);r=t.style,a=t.labelStyle}e