PageSourceSearch

https://chirocoach.ai/_next/static/chunks/e5f61069-8e845454aead51f0.js

js chirocoach.ai collected 2026-10-05 13:42:50 UTC 102,233 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[386],{8973:function(t,e,l){l.d(e,{C1:function(){return d},Fh:function(){return D},Lf:function(){return eh},XO:function(){return w},Yn:function(){return eg},ZH:function(){return T},aH:function(){return ey},dW:function(){return ec},gU:function(){return eu},jr:function(){return g},us:function(){return Z}});var a,n=l(66119),i=l(99410),r=l(80424),s=l(52016),o=l(27123),c=l(5402),d=(0,s.eW)(async(t,e,l)=>{var a,n,o;let d,h;let g=e.useHtmlLabels||(0,s.ku)(null===(a=(0,s.nV)())||void 0===a?void 0:a.htmlLabels);d=l||"node default";let u=t.insert("g").attr("class",d).attr("id",e.domId||e.id),y=u.insert("g").attr("class","label").attr("style",(0,r.R7)(e.labelStyle));h=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let p=await (0,i.rw)(y,(0,s.oO)((0,r.SH)(h),(0,s.nV)()),{useHtmlLabels:g,width:e.width||(null===(n=(0,s.nV)().flowchart)||void 0===n?void 0:n.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),f=p.getBBox(),x=(null!==(o=null==e?void 0:e.padding)&&void 0!==o?o:0)/2;if(g){let t=p.children[0],e=(0,c.Z)(p),l=t.getElementsByTagName("img");if(l){let t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...l].map(e=>new Promise(l=>{function a(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=(0,s.nV)().fontSize?(0,s.nV)().fontSize:window.getComputedStyle(document.body).fontSize,[l=s.vZ.fontSize]=(0,r.VG)(t),a=5*l+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";l(e)}(0,s.eW)(a,"setupImage"),setTimeout(()=>{e.complete&&a()}),e.addEventListener("error",a),e.addEventListener("load",a)})))}f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return g?y.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):y.attr("transform","translate(0, "+-f.height/2+")"),e.centerLabel&&y.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:u,bbox:f,halfPadding:x,label:y}},"labelHelper"),h=(0,s.eW)(async(t,e,l)=>{var a,n,o,d,h,g;let u=l.useHtmlLabels||(0,s.ku)(null===(n=(0,s.nV)())||void 0===n?void 0:null===(a=n.flowchart)||void 0===a?void 0:a.htmlLabels),y=t.insert("g").attr("class","label").attr("style",l.labelStyle||""),p=await (0,i.rw)(y,(0,s.oO)((0,r.SH)(e),(0,s.nV)()),{useHtmlLabels:u,width:l.width||(null===(d=(0,s.nV)())||void 0===d?void 0:null===(o=d.flowchart)||void 0===o?void 0:o.wrappingWidth),style:l.labelStyle,addSvgBackground:!!l.icon||!!l.img}),f=p.getBBox(),x=l.padding/2;if((0,s.ku)(null===(g=(0,s.nV)())||void 0===g?void 0:null===(h=g.flowchart)||void 0===h?void 0:h.htmlLabels)){let t=p.children[0],e=(0,c.Z)(p);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return u?y.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):y.attr("transform","translate(0, "+-f.height/2+")"),l.centerLabel&&y.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:t,bbox:f,halfPadding:x,label:y}},"insertLabel"),g=(0,s.eW)((t,e)=>{let l=e.node().getBBox();t.width=l.width,t.height=l.height},"updateNodeBounds"),u=(0,s.eW)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function y(t){let e=t.map((t,e)=>"".concat(0===e?"M":"L").concat(t.x,",").concat(t.y));return e.push("Z"),e.join(" ")}function p(t,e,l,a,n,i){let r=[],s=l-t,o=2*Math.PI/(s/i),c=e+(a-e)/2;for(let e=0;e<=50;e++){let l=t+e/50*s,a=c+n*Math.sin(o*(l-t));r.push({x:l,y:a})}return r}function f(t,e,l,a,n,i){let r=[],s=n*Math.PI/180,o=(i*Math.PI/180-s)/(a-1);for(let n=0;n<a;n++){let a=s+n*o,i=t+l*Math.cos(a),c=e+l*Math.sin(a);r.push({x:-i,y:-c})}return r}(0,s.eW)(y,"createPathFromPoints"),(0,s.eW)(p,"generateFullSineWavePoints"),(0,s.eW)(f,"generateCirclePoints");var x=(0,s.eW)((t,e)=>{var l,a,n=t.x,i=t.y,r=e.x-n,s=e.y-i,o=t.width/2,c=t.height/2;return Math.abs(s)*o>Math.abs(r)*c?(s<0&&(c=-c),l=0===s?0:c*r/s,a=c):(r<0&&(o=-o),l=o,a=0===r?0:o*s/r),{x:n+l,y:i+a}},"intersectRect");function m(t,e){e&&t.attr("style",e)}async function v(t){let e=(0,c.Z)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),l=e.append("xhtml:div"),a=t.label;t.label&&(0,s.l0)(t.label)&&(a=await (0,s.uT)(t.label.replace(s.SY.lineBreakRegex,"\n"),(0,s.nV)()));let n=t.isNode?"nodeLabel":"edgeLabel";return l.html('<span class="'+n+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+a+"</span>"),m(l,t.labelStyle),l.style("display","inline-block"),l.style("padding-right","1px"),l.style("white-space","nowrap"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,s.eW)(m,"applyStyle"),(0,s.eW)(v,"addHtmlLabel");var w=(0,s.eW)(async(t,e,l,a)=>{let n=t||"";if("object"==typeof n&&(n=n[0]),(0,s.ku)((0,s.nV)().flowchart.htmlLabels)
1){n=n.replace(/\\n|\n/g,"<br />"),s.cM.info("vertexText"+n);let t={isNode:a,label:(0,r.SH)(n).replace(/fa[blrs]?:fa-[\w-]+/g,t=>"<i class='".concat(t.replace(":"," "),"'></i>")),labelStyle:e?e.replace("fill:","color:"):e};return await v(t)}{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));for(let e of"string"==typeof n?n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?n:[]){let a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),l?a.setAttribute("class","title-row"):a.setAttribute("class","row"),a.textContent=e.trim(),t.appendChild(a)}return t}},"createLabel"),b=(0,s.eW)((t,e,l,a,n)=>["M",t+n,e,"H",t+l-n,"A",n,n,0,0,1,t+l,e+n,"V",e+a-n,"A",n,n,0,0,1,t+l-n,e+a,"H",t+n,"A",n,n,0,0,1,t,e+a-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" "),"createRoundedRectPathD"),S=(0,s.eW)(t=>{let{handDrawnSeed:e}=(0,s.nV)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),k=(0,s.eW)(t=>{let e=M([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),M=(0,s.eW)(t=>{let e=new Map;return t.forEach(t=>{let[l,a]=t.split(":");e.set(l.trim(),null==a?void 0:a.trim())}),e},"styles2Map"),D=(0,s.eW)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),W=(0,s.eW)(t=>{let{stylesArray:e}=k(t),l=[],a=[],n=[],i=[];return e.forEach(t=>{let e=t[0];D(e)?l.push(t.join(":")+" !important"):(a.push(t.join(":")+" !important"),e.includes("stroke")&&n.push(t.join(":")+" !important"),"fill"===e&&i.push(t.join(":")+" !important"))}),{labelStyles:l.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:i}},"styles2String"),B=(0,s.eW)((t,e)=>{var l;let{themeVariables:a,handDrawnSeed:n}=(0,s.nV)(),{nodeBorder:i,mainBkg:r}=a,{stylesMap:o}=k(t);return Object.assign({roughness:.7,fill:o.get("fill")||r,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:n,strokeWidth:(null===(l=o.get("stroke-width"))||void 0===l?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0]},e)},"userNodeOverrides"),C=(0,s.eW)(async(t,e)=>{let l;s.cM.info("Creating subgraph rect for ",e.id,e);let a=(0,s.nV)(),{themeVariables:r,handDrawnSeed:d}=a,{clusterBkg:h,clusterBorder:g}=r,{labelStyles:u,nodeStyles:y,borderStyles:p,backgroundStyles:f}=W(e),m=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),v=(0,s.ku)(a.flowchart.htmlLabels),w=m.insert("g").attr("class","cluster-label "),S=await (0,i.rw)(w,e.label,{style:e.labelStyle,useHtmlLabels:v,isNode:!0}),k=S.getBBox();if((0,s.ku)(a.flowchart.htmlLabels)){let t=S.children[0],e=(0,c.Z)(S);k=t.getBoundingClientRect(),e.attr("width",k.width),e.attr("height",k.height)}let M=e.width<=k.width+e.padding?k.width+e.padding:e.width;e.width<=k.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let D=e.height,C=e.x-M/2,N=e.y-D/2;if(s.cM.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=o.Z.svg(m),a=B(e,{roughness:.7,fill:h,stroke:g,fillWeight:3,seed:d}),n=t.path(b(C,N,M,D,0),a);(l=m.insert(()=>(s.cM.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),l.select("path").attr("style",f.join(";").replace("fill","stroke"))}else(l=m.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",C).attr("y",N).attr("width",M).attr("height",D);let{subGraphTitleTopMargin:A}=(0,n.L)(a);if(w.attr("transform","translate(".concat(e.x-k.width/2,", ").concat(e.y-e.height/2+A,")")),u){let t=w.select("span");t&&t.attr("style",u)}let L=l.node().getBBox();return e.offsetX=0,e.width=L.width,e.height=L.height,e.offsetY=k.height-e.padding/2,e.intersect=function(t){return x(e,t)},{cluster:m,labelBBox:k}},"rect"),N=(0,s.eW)((t,e)=>{let l=t.insert("g").attr("class","note-cluster").attr("id",e.id),a=l.insert("rect",":first-child"),n=0*e.padding,i=n/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-i).attr("y",e.y-e.he
1ight/2-i).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");let r=a.node().getBBox();return e.width=r.width,e.height=r.height,e.intersect=function(t){return x(e,t)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),A=(0,s.eW)(async(t,e)=>{let l;let a=(0,s.nV)(),{themeVariables:n,handDrawnSeed:i}=a,{altBackground:r,compositeBackground:d,compositeTitleBackground:h,nodeBorder:g}=n,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),y=u.insert("g",":first-child"),p=u.insert("g").attr("class","cluster-label"),f=u.append("rect"),m=p.node().appendChild(await w(e.label,e.labelStyle,void 0,!0)),v=m.getBBox();if((0,s.ku)(a.flowchart.htmlLabels)){let t=m.children[0],e=(0,c.Z)(m);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}let S=0*e.padding,k=(e.width<=v.width+e.padding?v.width+e.padding:e.width)+S;e.width<=v.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let M=e.height+S,D=e.height+S-v.height-6,W=e.x-k/2,B=e.y-M/2;e.width=k;let C=e.y-e.height/2-S/2+v.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),a=o.Z.svg(u),n=e.rx||e.ry?a.path(b(W,B,k,M,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:g,seed:i}):a.rectangle(W,B,k,M,{seed:i});l=u.insert(()=>n,":first-child");let s=a.rectangle(W,C,k,D,{fill:t?r:d,fillStyle:t?"hachure":"solid",stroke:g,seed:i});l=u.insert(()=>n,":first-child"),f=u.insert(()=>s)}else(l=y.insert("rect",":first-child")).attr("class","outer").attr("x",W).attr("y",B).attr("width",k).attr("height",M).attr("data-look",e.look),f.attr("class","inner").attr("x",W).attr("y",C).attr("width",k).attr("height",D);p.attr("transform","translate(".concat(e.x-v.width/2,", ").concat(B+1-((0,s.ku)(a.flowchart.htmlLabels)?0:3),")"));let N=l.node().getBBox();return e.height=N.height,e.offsetX=0,e.offsetY=v.height-e.padding/2,e.labelBBox=v,e.intersect=function(t){return x(e,t)},{cluster:u,labelBBox:v}},"roundedWithTitle"),L=(0,s.eW)(async(t,e)=>{let l;s.cM.info("Creating subgraph rect for ",e.id,e);let a=(0,s.nV)(),{themeVariables:r,handDrawnSeed:d}=a,{clusterBkg:h,clusterBorder:g}=r,{labelStyles:u,nodeStyles:y,borderStyles:p,backgroundStyles:f}=W(e),m=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),v=(0,s.ku)(a.flowchart.htmlLabels),w=m.insert("g").attr("class","cluster-label "),S=await (0,i.rw)(w,e.label,{style:e.labelStyle,useHtmlLabels:v,isNode:!0,width:e.width}),k=S.getBBox();if((0,s.ku)(a.flowchart.htmlLabels)){let t=S.children[0],e=(0,c.Z)(S);k=t.getBoundingClientRect(),e.attr("width",k.width),e.attr("height",k.height)}let M=e.width<=k.width+e.padding?k.width+e.padding:e.width;e.width<=k.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let D=e.height,C=e.x-M/2,N=e.y-D/2;if(s.cM.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=o.Z.svg(m),a=B(e,{roughness:.7,fill:h,stroke:g,fillWeight:4,seed:d}),n=t.path(b(C,N,M,D,e.rx),a);(l=m.insert(()=>(s.cM.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),l.select("path").attr("style",f.join(";").replace("fill","stroke"))}else(l=m.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",C).attr("y",N).attr("width",M).attr("height",D);let{subGraphTitleTopMargin:A}=(0,n.L)(a);if(w.attr("transform","translate(".concat(e.x-k.width/2,", ").concat(e.y-e.height/2+A,")")),u){let t=w.select("span");t&&t.attr("style",u)}let L=l.node().getBBox();return e.offsetX=0,e.width=L.width,e.height=L.height,e.offsetY=k.height-e.padding/2,e.intersect=function(t){return x(e,t)},{cluster:m,labelBBox:k}},"kanbanSection"),R={rect:C,squareRect:C,roundedWithTitle:A,noteGroup:N,divider:(0,s.eW)((t,e)=>{let l;let{themeVariables:a,handDrawnSeed:n}=(0,s.nV)(),{nodeBorder:i}=a,r=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),c=r.insert("g",":first-child"),d=0*e.padding,h=e.width+d;e.diff=-e.padding;let g=e.height+d,u=e.x-h/2,y=e.y-g/2;
1if(e.width=h,"handDrawn"===e.look){let t=o.Z.svg(r).rectangle(u,y,h,g,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:i,seed:n});l=r.insert(()=>t,":first-child")}else(l=c.insert("rect",":first-child")).attr("class","divider").attr("x",u).attr("y",y).attr("width",h).attr("height",g).attr("data-look",e.look);let p=l.node().getBBox();return e.height=p.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return x(e,t)},{cluster:r,labelBBox:{}}},"divider"),kanbanSection:L},P=new Map,Z=(0,s.eW)(async(t,e)=>{let l=e.shape||"rect",a=await R[l](t,e);return P.set(e.id,a),a},"insertCluster"),T=(0,s.eW)(()=>{P=new Map},"clear");function I(t,e,l,a){var n=t.x,i=t.y,r=n-a.x,s=i-a.y,o=Math.sqrt(e*e*s*s+l*l*r*r),c=Math.abs(e*l*r/o);a.x<n&&(c=-c);var d=Math.abs(e*l*s/o);return a.y<i&&(d=-d),{x:n+c,y:i+d}}function H(t,e,l){return I(t,e,e,l)}function E(t,e,l,a){var n,i,r,s,o,c,d,h,g,u,y,p,f;if(n=e.y-t.y,r=t.x-e.x,o=e.x*t.y-t.x*e.y,g=n*l.x+r*l.y+o,u=n*a.x+r*a.y+o,!(0!==g&&0!==u&&V(g,u)||(i=a.y-l.y,s=l.x-a.x,c=a.x*l.y-l.x*a.y,d=i*t.x+s*t.y+c,h=i*e.x+s*e.y+c,0!==d&&0!==h&&V(d,h)||0==(y=n*s-i*r))))return p=Math.abs(y/2),{x:(f=r*c-s*o)<0?(f-p)/y:(f+p)/y,y:(f=i*o-n*c)<0?(f-p)/y:(f+p)/y}}function V(t,e){return t*e>0}function j(t,e,l){let a=t.x,n=t.y,i=[],r=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){r=Math.min(r,t.x),s=Math.min(s,t.y)}):(r=Math.min(r,e.x),s=Math.min(s,e.y));let o=a-t.width/2-r,c=n-t.height/2-s;for(let a=0;a<e.length;a++){let n=e[a],r=e[a<e.length-1?a+1:0],s=E(t,l,{x:o+n.x,y:c+n.y},{x:o+r.x,y:c+r.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let a=t.x-l.x,n=t.y-l.y,i=Math.sqrt(a*a+n*n),r=e.x-l.x,s=e.y-l.y,o=Math.sqrt(r*r+s*s);return i<o?-1:i===o?0:1}),i[0]):t}(0,s.eW)(function(t,e){return t.intersect(e)},"intersectNode"),(0,s.eW)(I,"intersectEllipse"),(0,s.eW)(H,"intersectCircle"),(0,s.eW)(E,"intersectLine"),(0,s.eW)(V,"sameSign"),(0,s.eW)(j,"intersectPolygon");var q={circle:H,polygon:j,rect:x};function O(t,e){let{labelStyles:l}=W(e);e.labelStyle=l;let a=u(e),n=a;a||(n="anchor");let i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),{cssStyles:c}=e,d=o.Z.svg(i),h=B(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(h.roughness=0);let y=d.circle(0,0,2,h),p=i.insert(()=>y,":first-child");return p.attr("class","anchor").attr("style",(0,r.R7)(c)),g(e,p),e.intersect=function(t){return s.cM.info("Circle intersect",e,1,t),q.circle(e,1,t)},i}function _(t,e,l,a,n,i,r){let s=Math.atan2(a-e,l-t),o=Math.sqrt(((l-t)/2/n)**2+((a-e)/2/i)**2);if(o>1)throw Error("The given radii are too small to create an arc between the points.");let c=Math.sqrt(1-o**2),d=(t+l)/2+c*i*Math.sin(s)*(r?-1:1),h=(e+a)/2-c*n*Math.cos(s)*(r?-1:1),g=Math.atan2((e-h)/i,(t-d)/n),u=Math.atan2((a-h)/i,(l-d)/n)-g;r&&u<0&&(u+=2*Math.PI),!r&&u>0&&(u-=2*Math.PI);let y=[];for(let t=0;t<20;t++){let e=g+t/19*u,l=d+n*Math.cos(e),a=h+i*Math.sin(e);y.push({x:l,y:a})}return y}async function z(t,e){let{labelStyles:l,nodeStyles:a}=W(e);e.labelStyle=l;let{shapeSvg:n,bbox:i}=await d(t,e,u(e)),r=i.width+e.padding+20,s=i.height+e.padding,c=s/2,h=c/(2.5+s/50),{cssStyles:p}=e,f=[{x:r/2,y:-s/2},{x:-r/2,y:-s/2},..._(-r/2,-s/2,-r/2,s/2,h,c,!1),{x:r/2,y:s/2},..._(r/2,s/2,r/2,-s/2,h,c,!0)],x=o.Z.svg(n),m=B(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let v=y(f),w=x.path(v,m),b=n.insert(()=>w,":first-child");return b.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",p),a&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",a),b.attr("transform","translate(".concat(h/2,", 0)")),g(e,b),e.intersect=function(t){return q.polygon(e,f,t)},n}function F(t,e,l,a){return t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+l/2+")")}async function X(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:r}=await d(t,e,u(e)),s=r.height+e.padding,c=r.width+e.padding+12,h=-s,p=[{x:12,y:h},{x:c,y:h},{x:c,y:0},{x:0,y:0},{x:0,y:h+12},{x:12,y:h}],{cssStyles:f}=e;
1if("handDrawn"===e.look){let t=o.Z.svg(i),a=B(e,{}),n=y(p),r=t.path(n,a);l=i.insert(()=>r,":first-child").attr("transform","translate(".concat(-c/2,", ").concat(s/2,")")),f&&l.attr("style",f)}else l=F(i,c,s,p);return n&&l.attr("style",n),g(e,l),e.intersect=function(t){return q.polygon(e,p,t)},i}function Y(t,e){var l,a;let{nodeStyles:n}=W(e);e.label="";let i=t.insert("g").attr("class",u(e)).attr("id",null!==(l=e.domId)&&void 0!==l?l:e.id),{cssStyles:r}=e,s=Math.max(28,null!==(a=e.width)&&void 0!==a?a:0),c=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],d=o.Z.svg(i),h=B(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let g=y(c),p=d.path(g,h),f=i.insert(()=>p,":first-child");return r&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",r),n&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",n),e.width=28,e.height=28,e.intersect=function(t){return q.polygon(e,c,t)},i}async function G(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:c,halfPadding:h}=await d(t,e,u(e)),y=c.width/2+h,{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),a=B(e,{}),n=t.circle(0,0,2*y,a);(l=i.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.R7)(p))}else l=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",y).attr("cx",0).attr("cy",0);return g(e,l),e.intersect=function(t){return s.cM.info("Circle intersect",e,y,t),q.circle(e,y,t)},i}function J(t){let e=Math.cos(Math.PI/4),l=Math.sin(Math.PI/4),a=2*t;return"M ".concat(-a/2*e,",").concat(a/2*l," L ").concat(a/2*e,",").concat(-a/2*l,"\n                   M ").concat(a/2*e,",").concat(a/2*l," L ").concat(-a/2*e,",").concat(-a/2*l)}function U(t,e){var l,a;let{labelStyles:n,nodeStyles:i}=W(e);e.labelStyle=n,e.label="";let r=t.insert("g").attr("class",u(e)).attr("id",null!==(l=e.domId)&&void 0!==l?l:e.id),c=Math.max(30,null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),{cssStyles:d}=e,h=o.Z.svg(r),y=B(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let p=h.circle(0,0,2*c,y),f=J(c),x=h.path(f,y),m=r.insert(()=>p,":first-child");return m.insert(()=>x),d&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),g(e,m),e.intersect=function(t){return s.cM.info("crossedCircle intersect",e,{radius:c,point:t}),q.circle(e,c,t)},r}function K(t,e,l){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:180,r=[],s=n*Math.PI/180,o=(i*Math.PI/180-s)/(a-1);for(let n=0;n<a;n++){let a=s+n*o,i=t+l*Math.cos(a),c=e+l*Math.sin(a);r.push({x:-i,y:-c})}return r}async function Q(t,e){var l,a,n,i,r;let{labelStyles:s,nodeStyles:c}=W(e);e.labelStyle=s;let{shapeSvg:h,bbox:p,label:f}=await d(t,e,u(e)),x=p.width+(null!==(l=e.padding)&&void 0!==l?l:0),m=p.height+(null!==(a=e.padding)&&void 0!==a?a:0),v=Math.max(5,.1*m),{cssStyles:w}=e,b=[...K(x/2,-m/2,v,30,-90,0),{x:-x/2-v,y:v},...K(x/2+2*v,-v,v,20,-180,-270),...K(x/2+2*v,v,v,20,-90,-180),{x:-x/2-v,y:-m/2},...K(x/2,m/2,v,20,0,90)],S=[{x:x/2,y:-m/2-v},{x:-x/2,y:-m/2-v},...K(x/2,-m/2,v,20,-90,0),{x:-x/2-v,y:-v},...K(x/2+.1*x,-v,v,20,-180,-270),...K(x/2+.1*x,v,v,20,-90,-180),{x:-x/2-v,y:m/2},...K(x/2,m/2,v,20,0,90),{x:-x/2,y:m/2+v},{x:x/2,y:m/2+v}],k=o.Z.svg(h),M=B(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=y(b).replace("Z",""),C=k.path(D,M),N=y(S),A=k.path(N,{...M}),L=h.insert("g",":first-child");return L.insert(()=>A,":first-child").attr("stroke-opacity",0),L.insert(()=>C,":first-child"),L.attr("class","text"),w&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",w),c&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",c),L.attr("transform","translate(".concat(v,", 0)")),f.attr("transform","translate(".concat(-x/2+v-(p.x-(null!==(n=p.left)&&void 0!==n?n:0)),",").concat(-m/2+(null!==(i=e.padding)&&void 0!==i?i:0)/2-(p.y-(null!==(r=p.top)&&void 0!==r?r:0)),")")),g(e,L),e.intersect=function(t){return q.polygon(e,S,t)},h}function $(t,e,l){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:180,r=[],s=n*Math.PI/180,o=(i*Math.PI/180-s)/(a-1);for(let n=0;n<a;n++){let a=s+n*o,i=t+l*Math.cos(a),c=e+l*Math.sin(a);r.push({x:i,y:c})}return r}async function tt(t,e){var l,a,n,i,r,s;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:p,bbox:f,label:x}=await d(t,e,u(e)),m=f.width+(null!==(l=e.padding)&&void 0!==l?l:0),v=f.height+(null!==(a=e.padding)&&void 0!==a?a:0),w=Math.max(5,.1*v),{cssStyles:b}
1=e,S=[...$(m/2,-v/2,w,20,-90,0),{x:m/2+w,y:-w},...$(m/2+2*w,-w,w,20,-180,-270),...$(m/2+2*w,w,w,20,-90,-180),{x:m/2+w,y:v/2},...$(m/2,v/2,w,20,0,90)],k=[{x:-m/2,y:-v/2-w},{x:m/2,y:-v/2-w},...$(m/2,-v/2,w,20,-90,0),{x:m/2+w,y:-w},...$(m/2+2*w,-w,w,20,-180,-270),...$(m/2+2*w,w,w,20,-90,-180),{x:m/2+w,y:v/2},...$(m/2,v/2,w,20,0,90),{x:m/2,y:v/2+w},{x:-m/2,y:v/2+w}],M=o.Z.svg(p),D=B(e,{fill:"none"});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let C=y(S).replace("Z",""),N=M.path(C,D),A=y(k),L=M.path(A,{...D}),R=p.insert("g",":first-child");return R.insert(()=>L,":first-child").attr("stroke-opacity",0),R.insert(()=>N,":first-child"),R.attr("class","text"),b&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",b),h&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",h),R.attr("transform","translate(".concat(-w,", 0)")),x.attr("transform","translate(".concat(-m/2+(null!==(n=e.padding)&&void 0!==n?n:0)/2-(f.x-(null!==(i=f.left)&&void 0!==i?i:0)),",").concat(-v/2+(null!==(r=e.padding)&&void 0!==r?r:0)/2-(f.y-(null!==(s=f.top)&&void 0!==s?s:0)),")")),g(e,R),e.intersect=function(t){return q.polygon(e,k,t)},p}function te(t,e,l){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:180,r=[],s=n*Math.PI/180,o=(i*Math.PI/180-s)/(a-1);for(let n=0;n<a;n++){let a=s+n*o,i=t+l*Math.cos(a),c=e+l*Math.sin(a);r.push({x:-i,y:-c})}return r}async function tl(t,e){var l,a,n,i,r,s;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:p,bbox:f,label:x}=await d(t,e,u(e)),m=f.width+(null!==(l=e.padding)&&void 0!==l?l:0),v=f.height+(null!==(a=e.padding)&&void 0!==a?a:0),w=Math.max(5,.1*v),{cssStyles:b}=e,S=[...te(m/2,-v/2,w,30,-90,0),{x:-m/2-w,y:w},...te(m/2+2*w,-w,w,20,-180,-270),...te(m/2+2*w,w,w,20,-90,-180),{x:-m/2-w,y:-v/2},...te(m/2,v/2,w,20,0,90)],k=[...te(-m/2+w+w/2,-v/2,w,20,-90,-180),{x:m/2-w/2,y:w},...te(-m/2-w/2,-w,w,20,0,90),...te(-m/2-w/2,w,w,20,-90,0),{x:m/2-w/2,y:-w},...te(-m/2+w+w/2,v/2,w,30,-180,-270)],M=[{x:m/2,y:-v/2-w},{x:-m/2,y:-v/2-w},...te(m/2,-v/2,w,20,-90,0),{x:-m/2-w,y:-w},...te(m/2+2*w,-w,w,20,-180,-270),...te(m/2+2*w,w,w,20,-90,-180),{x:-m/2-w,y:v/2},...te(m/2,v/2,w,20,0,90),{x:-m/2,y:v/2+w},{x:m/2-w-w/2,y:v/2+w},...te(-m/2+w+w/2,-v/2,w,20,-90,-180),{x:m/2-w/2,y:w},...te(-m/2-w/2,-w,w,20,0,90),...te(-m/2-w/2,w,w,20,-90,0),{x:m/2-w/2,y:-w},...te(-m/2+w+w/2,v/2,w,30,-180,-270)],D=o.Z.svg(p),C=B(e,{fill:"none"});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let N=y(S).replace("Z",""),A=D.path(N,C),L=y(k).replace("Z",""),R=D.path(L,C),P=y(M),Z=D.path(P,{...C}),T=p.insert("g",":first-child");return T.insert(()=>Z,":first-child").attr("stroke-opacity",0),T.insert(()=>A,":first-child"),T.insert(()=>R,":first-child"),T.attr("class","text"),b&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",b),h&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",h),T.attr("transform","translate(".concat(w-w/4,", 0)")),x.attr("transform","translate(".concat(-m/2+(null!==(n=e.padding)&&void 0!==n?n:0)/2-(f.x-(null!==(i=f.left)&&void 0!==i?i:0)),",").concat(-v/2+(null!==(r=e.padding)&&void 0!==r?r:0)/2-(f.y-(null!==(s=f.top)&&void 0!==s?s:0)),")")),g(e,T),e.intersect=function(t){return q.polygon(e,M,t)},p}async function ta(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:s}=W(e);e.labelStyle=r;let{shapeSvg:c,bbox:h}=await d(t,e,u(e)),p=Math.max(80,1.25*(h.width+2*(null!==(l=e.padding)&&void 0!==l?l:0)),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),x=Math.max(20,h.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),m=x/2,{cssStyles:v}=e,w=o.Z.svg(c),b=B(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let S=p-m,k=x/4,M=[{x:S,y:0},{x:k,y:0},{x:0,y:x/2},{x:k,y:x},{x:S,y:x},...f(-S,-x/2,m,50,270,90)],D=y(M),C=w.path(D,b),N=c.insert(()=>C,":first-child");return N.attr("class","basic label-container"),v&&"handDrawn"!==e.look&&N.selectChildren("path").attr("style",v),s&&"handDrawn"!==e.look&&N.selectChildren("path").attr("style",s),N.attr("transform","translate(".concat(-p/2,", ").concat(-x/2,")")),g(e,N),e.intersect=function(t){return q.polygon(e,M,t)},c}(0,s.eW)(O,"anchor"),(0,s.eW)(_,"generateArcPoints"),(0,s.eW)(z,"bowTieRect"),(0,s.eW)(F,"insertPolygonShape"),(0,s.eW)(X,"card"),(0,s.eW)(Y,"choice"),(0,s.eW)(G,"circle"),(0,s.eW)(J,"createLine"),(0,s.eW)(U,"crossedCircle"),(0,s.eW)(K,"generateCirclePoints"),(0,s.eW)(Q,"curlyBraceLeft"),(0,s.eW)($,"generateCirclePoints"),(0,s.eW)(tt,"curlyBraceRight"),(0,s.eW)(te,"generateCirclePoints"),(0,s.eW)(tl,"curlyBraces"),(0,s.eW)(ta,"curvedTrapezoid");var tn=(0,s.eW)((t,e,l,a,n,i)=>["M".concat(t,",").concat(e+i),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0"),"a".concat(n,",").concat(i," 0,0,0 ").concat(-l,",0"),"l0,".concat(a),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0"),"l0,"+-a].join(" "),"createCylinderPathD"),ti=(0,s.eW)((t,e,l,a,n,i)=>["M".concat(t,",").concat(e+i),"M".concat(t+l,",").concat(e+i),"a".concat(n,",").concat(i," 0,0,0 ").concat(-l,",0"),"l0,".concat(a),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0"),"l0,"+-a].join(" "),"createOuterCylinderPathD"),tr=(0,s.eW)((t,e,l,a,n,i)=>["M".concat(t-l/2,",").concat(-a/2),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0")].join(" "),"createInnerCylinderPathD");async function ts(t,e){var l,a,n,i,s;let c;let{labelStyles:h,nodeStyles:y}=W(e);e.labelStyle=h;let{shapeSvg:p,bbox:f,label:x}=await d(t,e,u(e)),m=Math.max(f.width+e.padding,null!==(l=e.width)&&void 0!==l?l:0),v=m/2,w=v/(2.5+m/50),b=Math.max(f.height+w+e.padding,null!==(a=e.he
1ight)&&void 0!==a?a:0),{cssStyles:S}=e;if("handDrawn"===e.look){let t=o.Z.svg(p),l=ti(0,0,m,b,v,w),a=tr(0,w,m,b,v,w),n=t.path(l,B(e,{})),i=t.path(a,B(e,{fill:"none"}));c=p.insert(()=>i,":first-child"),(c=p.insert(()=>n,":first-child")).attr("class","basic label-container"),S&&c.attr("style",S)}else{let t=tn(0,0,m,b,v,w);c=p.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,r.R7)(S)).attr("style",y)}return c.attr("label-offset-y",w),c.attr("transform","translate(".concat(-m/2,", ").concat(-(b/2+w),")")),g(e,c),x.attr("transform","translate(".concat(-f.width/2-(f.x-(null!==(n=f.left)&&void 0!==n?n:0)),", ").concat(-f.height/2+(null!==(i=e.padding)&&void 0!==i?i:0)/1.5-(f.y-(null!==(s=f.top)&&void 0!==s?s:0)),")")),e.intersect=function(t){var l,a,n,i,r,s;let o=q.rect(e,t),c=o.x-(null!==(l=e.x)&&void 0!==l?l:0);if(0!=v&&(Math.abs(c)<(null!==(a=e.width)&&void 0!==a?a:0)/2||Math.abs(c)==(null!==(n=e.width)&&void 0!==n?n:0)/2&&Math.abs(o.y-(null!==(i=e.y)&&void 0!==i?i:0))>(null!==(r=e.height)&&void 0!==r?r:0)/2-w)){let l=w*w*(1-c*c/(v*v));l>0&&(l=Math.sqrt(l)),l=w-l,t.y-(null!==(s=e.y)&&void 0!==s?s:0)>0&&(l=-l),o.y+=l}return o},p}async function to(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:s}=W(e);e.labelStyle=r;let{shapeSvg:c,bbox:h,label:y}=await d(t,e,u(e)),p=h.width+e.padding,f=h.height+e.padding,x=.2*f,m=-p/2,v=-f/2-x/2,{cssStyles:w}=e,b=o.Z.svg(c),S=B(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let k=b.polygon([{x:m,y:v+x},{x:-m,y:v+x},{x:-m,y:-v},{x:m,y:-v},{x:m,y:v},{x:-m,y:v},{x:-m,y:v+x}].map(t=>[t.x,t.y]),S),M=c.insert(()=>k,":first-child");return M.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",w),s&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",s),y.attr("transform","translate(".concat(m+(null!==(l=e.padding)&&void 0!==l?l:0)/2-(h.x-(null!==(a=h.left)&&void 0!==a?a:0)),", ").concat(v+x+(null!==(n=e.padding)&&void 0!==n?n:0)/2-(h.y-(null!==(i=h.top)&&void 0!==i?i:0)),")")),g(e,M),e.intersect=function(t){return q.rect(e,t)},c}async function tc(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:c,halfPadding:h}=await d(t,e,u(e)),y=c.width/2+h+5,p=c.width/2+h,{cssStyles:f}=e;
1if("handDrawn"===e.look){var x,m;let t=o.Z.svg(i),a=B(e,{roughness:.2,strokeWidth:2.5}),n=B(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*y,a),c=t.circle(0,0,2*p,n);(l=i.insert("g",":first-child")).attr("class",(0,r.R7)(e.cssClasses)).attr("style",(0,r.R7)(f)),null===(x=l.node())||void 0===x||x.appendChild(s),null===(m=l.node())||void 0===m||m.appendChild(c)}else{let t=(l=i.insert("g",":first-child")).insert("circle",":first-child"),e=l.insert("circle");l.attr("class","basic label-container").attr("style",n),t.attr("class","outer-circle").attr("style",n).attr("r",y).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0)}return g(e,l),e.intersect=function(t){return s.cM.info("DoubleCircle intersect",e,y,t),q.circle(e,y,t)},i}function td(t,e,l){var a;let{config:{themeVariables:n}}=l,{labelStyles:i,nodeStyles:r}=W(e);e.label="",e.labelStyle=i;let c=t.insert("g").attr("class",u(e)).attr("id",null!==(a=e.domId)&&void 0!==a?a:e.id),{cssStyles:d}=e,h=o.Z.svg(c),{nodeBorder:y}=n,p=B(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(p.roughness=0);let f=h.circle(0,0,14,p),x=c.insert(()=>f,":first-child");return x.selectAll("path").attr("style","fill: ".concat(y," !important;")),d&&d.length>0&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",d),r&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",r),g(e,x),e.intersect=function(t){return s.cM.info("filledCircle intersect",e,{radius:7,point:t}),q.circle(e,7,t)},c}async function th(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:c}=W(e);e.labelStyle=r;let{shapeSvg:h,bbox:p,label:f}=await d(t,e,u(e)),x=p.width+(null!==(l=e.padding)&&void 0!==l?l:0),m=x+p.height,v=x+p.height,w=[{x:0,y:-m},{x:v,y:-m},{x:v/2,y:0}],{cssStyles:b}=e,S=o.Z.svg(h),k=B(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=y(w),D=S.path(M,k),C=h.insert(()=>D,":first-child").attr("transform","translate(".concat(-m/2,", ").concat(m/2,")"));return b&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",b),c&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",c),e.width=x,e.height=m,g(e,C),f.attr("transform","translate(".concat(-p.width/2-(p.x-(null!==(a=p.left)&&void 0!==a?a:0)),", ").concat(-m/2+(null!==(n=e.padding)&&void 0!==n?n:0)/2+(p.y-(null!==(i=p.top)&&void 0!==i?i:0)),")")),e.intersect=function(t){return s.cM.info("Triangle intersect",e,w,t),q.polygon(e,w,t)},h}function tg(t,e,l){var a,n,i,r,s,c;let{dir:d,config:{state:h,themeVariables:y}}=l,{nodeStyles:p}=W(e);e.label="";let f=t.insert("g").attr("class",u(e)).attr("id",null!==(a=e.domId)&&void 0!==a?a:e.id),{cssStyles:x}=e,m=Math.max(70,null!==(n=null==e?void 0:e.width)&&void 0!==n?n:0),v=Math.max(10,null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0);"LR"===d&&(m=Math.max(10,null!==(r=null==e?void 0:e.width)&&void 0!==r?r:0),v=Math.max(70,null!==(s=null==e?void 0:e.height)&&void 0!==s?s:0));let w=-1*m/2,b=-1*v/2,S=o.Z.svg(f),k=B(e,{stroke:y.lineColor,fill:y.lineColor});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=S.rectangle(w,b,m,v,k),D=f.insert(()=>M,":first-child");x&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",x),p&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",p),g(e,D);let C=null!==(c=null==h?void 0:h.padding)&&void 0!==c?c:0;return e.width&&e.height&&(e.width+=C/2||0,e.height+=C/2||0),e.intersect=function(t){return q.rect(e,t)},f}async function tu(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:c}=W(e);e.labelStyle=r;let{shapeSvg:h,bbox:p}=await d(t,e,u(e)),x=Math.max(80,p.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),m=Math.max(50,p.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),v=m/2,{cssStyles:w}=e,b=o.Z.svg(h),S=B(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let k=[{x:-x/2,y:-m/2},{x:x/2-v,y:-m/2},...f(-x/2+v,0,v,50,90,270),{x:x/2-v,y:m/2},{x:-x/2,y:m/2}],M=y(k),D=b.path(M,S),C=h.insert(()=>D,":first-child");return C.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",w),c&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",c),g(e,C),e.intersect=function(t){return s.cM.info("Pill intersect",e,{radius:v,point:t}),q.polygon(e,k,t)},h}(0,s.eW)(ts,"cylinder"),(0,s.eW)(to,"dividedRectangle"),(0,s.eW)(tc,"doublecircle"),(0,s.eW)(td,"filledCircle"),(0,s.eW)(th,"flippedTriangle"),(0,s.eW)(tg,"forkJoin"),(0,s.eW)(tu,"halfRoundedRectangle");var ty=(0,s.eW)((t,e,l,a,n)=>["M".concat(t+n,",").concat(e),"L".concat(t+l-n,",").concat(e),"L".concat(t+l,",").concat(e-a/2),"L".concat(t+l-n,",").concat(e-a),"L".concat(t+n,",").concat(e-a),"L".concat(t,",").concat(e-a/2),"Z"].join(" "),"createHexagonPathD");async function tp(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:r}=await d(t,e,u(e)),s=r.height+e.padding,c=s/4,h=r.width+2*c+e.padding,y=[{x:c,y:0},{x:h-c,y:0},{x:h,y:-s/2},{x:h-c,y:-s},{x:c,y:-s},{x:0,y:-s/2}],{cssStyles:p}=e;
1if("handDrawn"===e.look){let t=o.Z.svg(i),a=B(e,{}),n=ty(0,0,h,s,c),r=t.path(n,a);l=i.insert(()=>r,":first-child").attr("transform","translate(".concat(-h/2,", ").concat(s/2,")")),p&&l.attr("style",p)}else l=F(i,h,s,y);return n&&l.attr("style",n),e.width=h,e.height=s,g(e,l),e.intersect=function(t){return q.polygon(e,y,t)},i}async function tf(t,e){var l,a;let{labelStyles:n,nodeStyles:i}=W(e);e.label="",e.labelStyle=n;let{shapeSvg:r}=await d(t,e,u(e)),c=Math.max(30,null!==(l=null==e?void 0:e.width)&&void 0!==l?l:0),h=Math.max(30,null!==(a=null==e?void 0:e.height)&&void 0!==a?a:0),{cssStyles:p}=e,f=o.Z.svg(r),x=B(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let m=[{x:0,y:0},{x:c,y:0},{x:0,y:h},{x:c,y:h}],v=y(m),w=f.path(v,x),b=r.insert(()=>w,":first-child");return b.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",p),i&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",i),b.attr("transform","translate(".concat(-c/2,", ").concat(-h/2,")")),g(e,b),e.intersect=function(t){return s.cM.info("Pill intersect",e,{points:m}),q.polygon(e,m,t)},r}async function tx(t,e,l){var a,n,r,c;let{config:{themeVariables:h,flowchart:u}}=l,{labelStyles:y}=W(e);e.labelStyle=y;let p=Math.max(null!==(a=e.assetHeight)&&void 0!==a?a:48,null!==(n=e.assetWidth)&&void 0!==n?n:48),f=null==u?void 0:u.wrappingWidth;e.width=Math.max(p,null!=f?f:0);let{shapeSvg:x,bbox:m,label:v}=await d(t,e,"icon-shape default"),w="t"===e.pos,{nodeBorder:b}=h,{stylesMap:S}=k(e),M=-p/2,D=-p/2,C=e.label?8:0,N=o.Z.svg(x),A=B(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let L=N.rectangle(M,D,p,p,A),R=Math.max(p,m.width),P=p+m.height+C,Z=N.rectangle(-R/2,-P/2,R,P,{...A,fill:"transparent",stroke:"none"}),T=x.insert(()=>L,":first-child"),I=x.insert(()=>Z);if(e.icon){let t=x.append("g");t.html("<g>".concat(await (0,i.s4)(e.icon,{height:p,width:p,fallbackPrefix:""}),"</g>"));let l=t.node().getBBox(),a=l.width,n=l.height,s=l.x,o=l.y;t.attr("transform","translate(".concat(-a/2-s,",").concat(w?m.height/2+C/2-n/2-o:-m.height/2-C/2-n/2-o,")")),t.attr("style","color: ".concat(null!==(r=S.get("stroke"))&&void 0!==r?r:b,";"))}return v.attr("transform","translate(".concat(-m.width/2-(m.x-(null!==(c=m.left)&&void 0!==c?c:0)),",").concat(w?-P/2:P/2-m.height,")")),T.attr("transform","translate(0,".concat(w?m.height/2+C/2:-m.height/2-C/2,")")),g(e,I),e.intersect=function(t){var l,a,n;if(s.cM.info("iconSquare intersect",e,t),!e.label)return q.rect(e,t);let i=null!==(l=e.x)&&void 0!==l?l:0,r=null!==(a=e.y)&&void 0!==a?a:0,o=null!==(n=e.height)&&void 0!==n?n:0,c=[];return c=w?[{x:i-m.width/2,y:r-o/2},{x:i+m.width/2,y:r-o/2},{x:i+m.width/2,y:r-o/2+m.height+C},{x:i+p/2,y:r-o/2+m.height+C},{x:i+p/2,y:r+o/2},{x:i-p/2,y:r+o/2},{x:i-p/2,y:r-o/2+m.height+C},{x:i-m.width/2,y:r-o/2+m.height+C}]:[{x:i-p/2,y:r-o/2},{x:i+p/2,y:r-o/2},{x:i+p/2,y:r-o/2+p},{x:i+m.width/2,y:r-o/2+p},{x:i+m.width/2/2,y:r+o/2},{x:i-m.width/2,y:r+o/2},{x:i-m.width/2,y:r-o/2+p},{x:i-p/2,y:r-o/2+p}],q.polygon(e,c,t)},x}async function tm(t,e,l){var a,n,r,c;let{config:{themeVariables:h,flowchart:u}}=l,{labelStyles:y}=W(e);e.labelStyle=y;let p=Math.max(null!==(a=e.assetHeight)&&void 0!==a?a:48,null!==(n=e.assetWidth)&&void 0!==n?n:48),f=null==u?void 0:u.wrappingWidth;e.width=Math.max(p,null!=f?f:0);let{shapeSvg:x,bbox:m,label:v}=await d(t,e,"icon-shape default"),w=e.label?8:0,b="t"===e.pos,{nodeBorder:S,mainBkg:M}=h,{stylesMap:D}=k(e),C=o.Z.svg(x),N=B(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let A=D.get("fill");N.stroke=null!=A?A:M;let L=x.append("g");e.icon&&L.html("<g>".concat(await (0,i.s4)(e.icon,{height:p,width:p,fallbackPrefix:""}),"</g>"));let R=L.node().getBBox(),P=R.width,Z=R.height,T=R.x,I=R.y,H=Math.max(P,Z)*Math.SQRT2+40,E=C.circle(0,0,H,N),V=Math.max(H,m.width),j=H+m.height+w,O=C.rectangle(-V/2,-j/2,V,j,{...N,fill:"transparent",stroke:"none"}),_=x.insert(()=>E,":first-child"),z=x.insert(()=>O);return L.attr("transform","translate(".concat(-P/2-T,",").concat(b?m.height/2+w/2-Z/2-I:-m.he
1ight/2-w/2-Z/2-I,")")),L.attr("style","color: ".concat(null!==(r=D.get("stroke"))&&void 0!==r?r:S,";")),v.attr("transform","translate(".concat(-m.width/2-(m.x-(null!==(c=m.left)&&void 0!==c?c:0)),",").concat(b?-j/2:j/2-m.height,")")),_.attr("transform","translate(0,".concat(b?m.height/2+w/2:-m.height/2-w/2,")")),g(e,z),e.intersect=function(t){return s.cM.info("iconSquare intersect",e,t),q.rect(e,t)},x}async function tv(t,e,l){var a,n,r,c;let{config:{themeVariables:h,flowchart:u}}=l,{labelStyles:y}=W(e);e.labelStyle=y;let p=Math.max(null!==(a=e.assetHeight)&&void 0!==a?a:48,null!==(n=e.assetWidth)&&void 0!==n?n:48),f=null==u?void 0:u.wrappingWidth;e.width=Math.max(p,null!=f?f:0);let{shapeSvg:x,bbox:m,halfPadding:v,label:w}=await d(t,e,"icon-shape default"),S="t"===e.pos,M=p+2*v,D=p+2*v,{nodeBorder:C,mainBkg:N}=h,{stylesMap:A}=k(e),L=e.label?8:0,R=o.Z.svg(x),P=B(e,{});"handDrawn"!==e.look&&(P.roughness=0,P.fillStyle="solid");let Z=A.get("fill");P.stroke=null!=Z?Z:N;let T=R.path(b(-D/2,-M/2,D,M,5),P),I=Math.max(D,m.width),H=M+m.height+L,E=R.rectangle(-I/2,-H/2,I,H,{...P,fill:"transparent",stroke:"none"}),V=x.insert(()=>T,":first-child").attr("class","icon-shape2"),j=x.insert(()=>E);if(e.icon){let t=x.append("g");t.html("<g>".concat(await (0,i.s4)(e.icon,{height:p,width:p,fallbackPrefix:""}),"</g>"));let l=t.node().getBBox(),a=l.width,n=l.height,s=l.x,o=l.y;t.attr("transform","translate(".concat(-a/2-s,",").concat(S?m.height/2+L/2-n/2-o:-m.height/2-L/2-n/2-o,")")),t.attr("style","color: ".concat(null!==(r=A.get("stroke"))&&void 0!==r?r:C,";"))}return w.attr("transform","translate(".concat(-m.width/2-(m.x-(null!==(c=m.left)&&void 0!==c?c:0)),",").concat(S?-H/2:H/2-m.height,")")),V.attr("transform","translate(0,".concat(S?m.height/2+L/2:-m.height/2-L/2,")")),g(e,j),e.intersect=function(t){var l,a,n;if(s.cM.info("iconSquare intersect",e,t),!e.label)return q.rect(e,t);let i=null!==(l=e.x)&&void 0!==l?l:0,r=null!==(a=e.y)&&void 0!==a?a:0,o=null!==(n=e.height)&&void 0!==n?n:0,c=[];return c=S?[{x:i-m.width/2,y:r-o/2},{x:i+m.width/2,y:r-o/2},{x:i+m.width/2,y:r-o/2+m.height+L},{x:i+D/2,y:r-o/2+m.height+L},{x:i+D/2,y:r+o/2},{x:i-D/2,y:r+o/2},{x:i-D/2,y:r-o/2+m.height+L},{x:i-m.width/2,y:r-o/2+m.height+L}]:[{x:i-D/2,y:r-o/2},{x:i+D/2,y:r-o/2},{x:i+D/2,y:r-o/2+M},{x:i+m.width/2,y:r-o/2+M},{x:i+m.width/2/2,y:r+o/2},{x:i-m.width/2,y:r+o/2},{x:i-m.width/2,y:r-o/2+M},{x:i-D/2,y:r-o/2+M}],q.polygon(e,c,t)},x}async function tw(t,e,l){var a,n,r,c;let{config:{themeVariables:h,flowchart:u}}=l,{labelStyles:y}=W(e);e.labelStyle=y;let p=Math.max(null!==(a=e.assetHeight)&&void 0!==a?a:48,null!==(n=e.assetWidth)&&void 0!==n?n:48),f=null==u?void 0:u.wrappingWidth;e.width=Math.max(p,null!=f?f:0);let{shapeSvg:x,bbox:m,halfPadding:v,label:w}=await d(t,e,"icon-shape default"),S="t"===e.pos,M=p+2*v,D=p+2*v,{nodeBorder:C,mainBkg:N}=h,{stylesMap:A}=k(e),L=e.label?8:0,R=o.Z.svg(x),P=B(e,{});"handDrawn"!==e.look&&(P.roughness=0,P.fillStyle="solid");let Z=A.get("fill");P.stroke=null!=Z?Z:N;let T=R.path(b(-D/2,-M/2,D,M,.1),P),I=Math.max(D,m.width),H=M+m.height+L,E=R.rectangle(-I/2,-H/2,I,H,{...P,fill:"transparent",stroke:"none"}),V=x.insert(()=>T,":first-child"),j=x.insert(()=>E);if(e.icon){let t=x.append("g");t.html("<g>".concat(await (0,i.s4)(e.icon,{height:p,width:p,fallbackPrefix:""}),"</g>"));let l=t.node().getBBox(),a=l.width,n=l.height,s=l.x,o=l.y;t.attr("transform","translate(".concat(-a/2-s,",").concat(S?m.height/2+L/2-n/2-o:-m.height/2-L/2-n/2-o,")")),t.attr("style","color: ".concat(null!==(r=A.get("stroke"))&&void 0!==r?r:C,";"))}return w.attr("transform","translate(".concat(-m.width/2-(m.x-(null!==(c=m.left)&&void 0!==c?c:0)),",").concat(S?-H/2:H/2-m.height,")")),V.attr("transform","translate(0,".concat(S?m.height/2+L/2:-m.height/2-L/2,")")),g(e,j),e.intersect=function(t){var l,a,n;if(s.cM.info("iconSquare intersect",e,t),!e.label)return q.rect(e,t);let i=null!==(l=e.x)&&void 0!==l?l:0,r=null!==(a=e.y)&&void 0!==a?a:0,o=null!==(n=e.height)&&void 0!==n?n:0,c=[];return c=S?[{x:i-m.width/2,y:r-o/2},{x:i+m.width/2,y:r-o/2},{x:i+m.width/2,y:r-o/2+m.height+L},{x:i+D/2,y:r-o/2+m.height+L},{x:i+D/2,y:r+o/2},{x:i-D/2,y:r+o/2},{x:i-D/2,y:r-o/2+m.height+L},{x:i-m.width/2,y:r-o/2+m.height+L}]:[{x:i-D/2,y:r-o/2},{x:i+D/2,y:r-o/2},{x:i+D/2,y:r-o/2+M},{x:i+m.width/2,y:r-o/2+M},{x:i+m.width/2/2,y:r+o/2},{x:i-m.width/2,y:r+o/2},{x:i-m.width/2,y:r-o/2+M},{x:i-D/2,y:r-o/2+M}],q.polygon(e,c,t)},x}async function tb(t,e,l){var a,n,i,r;let{config:{flowchart:c}}=l,h=new Image;h.src=null!==(a=null==e?void 0:e.img)&&void 0!==a?a:"",await h.decode();
1let u=Number(h.naturalWidth.toString().replace("px","")),y=Number(h.naturalHeight.toString().replace("px",""));e.imageAspectRatio=u/y;let{labelStyles:p}=W(e);e.labelStyle=p;let f=null==c?void 0:c.wrappingWidth;e.defaultWidth=null==c?void 0:c.wrappingWidth;let x=Math.max(e.label&&null!=f?f:0,null!==(n=null==e?void 0:e.assetWidth)&&void 0!==n?n:u),m="on"===e.constraint&&(null==e?void 0:e.assetHeight)?e.assetHeight*e.imageAspectRatio:x,v="on"===e.constraint?m/e.imageAspectRatio:null!==(i=null==e?void 0:e.assetHeight)&&void 0!==i?i:y;e.width=Math.max(m,null!=f?f:0);let{shapeSvg:w,bbox:b,label:S}=await d(t,e,"image-shape default"),k="t"===e.pos,M=-m/2,D=e.label?8:0,C=o.Z.svg(w),N=B(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let A=C.rectangle(M,-v/2,m,v,N),L=Math.max(m,b.width),R=v+b.height+D,P=C.rectangle(-L/2,-R/2,L,R,{...N,fill:"none",stroke:"none"}),Z=w.insert(()=>A,":first-child"),T=w.insert(()=>P);if(e.img){let t=w.append("image");t.attr("href",e.img),t.attr("width",m),t.attr("height",v),t.attr("preserveAspectRatio","none"),t.attr("transform","translate(".concat(-m/2,",").concat(k?R/2-v:-R/2,")"))}return S.attr("transform","translate(".concat(-b.width/2-(b.x-(null!==(r=b.left)&&void 0!==r?r:0)),",").concat(k?-v/2-b.height/2-D/2:v/2-b.height/2+D/2,")")),Z.attr("transform","translate(0,".concat(k?b.height/2+D/2:-b.height/2-D/2,")")),g(e,T),e.intersect=function(t){var l,a,n;if(s.cM.info("iconSquare intersect",e,t),!e.label)return q.rect(e,t);let i=null!==(l=e.x)&&void 0!==l?l:0,r=null!==(a=e.y)&&void 0!==a?a:0,o=null!==(n=e.height)&&void 0!==n?n:0,c=[];return c=k?[{x:i-b.width/2,y:r-o/2},{x:i+b.width/2,y:r-o/2},{x:i+b.width/2,y:r-o/2+b.height+D},{x:i+m/2,y:r-o/2+b.height+D},{x:i+m/2,y:r+o/2},{x:i-m/2,y:r+o/2},{x:i-m/2,y:r-o/2+b.height+D},{x:i-b.width/2,y:r-o/2+b.height+D}]:[{x:i-m/2,y:r-o/2},{x:i+m/2,y:r-o/2},{x:i+m/2,y:r-o/2+v},{x:i+b.width/2,y:r-o/2+v},{x:i+b.width/2/2,y:r+o/2},{x:i-b.width/2,y:r+o/2},{x:i-b.width/2,y:r-o/2+v},{x:i-m/2,y:r-o/2+v}],q.polygon(e,c,t)},w}async function tS(t,e){var l,a,n,i;let r;let{labelStyles:s,nodeStyles:c}=W(e);e.labelStyle=s;let{shapeSvg:h,bbox:p}=await d(t,e,u(e)),f=Math.max(p.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),x=Math.max(p.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),m=[{x:0,y:0},{x:f,y:0},{x:f+3*x/6,y:-x},{x:-3*x/6,y:-x}],{cssStyles:v}=e;
1if("handDrawn"===e.look){let t=o.Z.svg(h),l=B(e,{}),a=y(m),n=t.path(a,l);r=h.insert(()=>n,":first-child").attr("transform","translate(".concat(-f/2,", ").concat(x/2,")")),v&&r.attr("style",v)}else r=F(h,f,x,m);return c&&r.attr("style",c),e.width=f,e.height=x,g(e,r),e.intersect=function(t){return q.polygon(e,m,t)},h}async function tk(t,e,l){let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:s}=await d(t,e,u(e)),c=Math.max(s.width+2*l.labelPaddingX,(null==e?void 0:e.width)||0),h=Math.max(s.height+2*l.labelPaddingY,(null==e?void 0:e.height)||0),y=-c/2,p=-h/2,f,{rx:x,ry:m}=e,{cssStyles:v}=e;if((null==l?void 0:l.rx)&&l.ry&&(x=l.rx,m=l.ry),"handDrawn"===e.look){let t=o.Z.svg(i),l=B(e,{}),a=x||m?t.path(b(y,p,c,h,x||0),l):t.rectangle(y,p,c,h,l);(f=i.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",(0,r.R7)(v))}else(f=i.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",(0,r.R7)(x)).attr("ry",(0,r.R7)(m)).attr("x",y).attr("y",p).attr("width",c).attr("height",h);return g(e,f),e.intersect=function(t){return q.rect(e,t)},i}async function tM(t,e){var l,a;let{shapeSvg:n,bbox:i,label:r}=await d(t,e,"label"),s=n.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),r.attr("transform","translate(".concat(-i.width/2-(i.x-(null!==(l=i.left)&&void 0!==l?l:0)),", ").concat(-i.height/2-(i.y-(null!==(a=i.top)&&void 0!==a?a:0)),")")),g(e,s),e.intersect=function(t){return q.rect(e,t)},n}async function tD(t,e){var l,a,n,i;let r;let{labelStyles:s,nodeStyles:c}=W(e);e.labelStyle=s;let{shapeSvg:h,bbox:p}=await d(t,e,u(e)),f=Math.max(p.width+(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),x=Math.max(p.height+(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),m=[{x:0,y:0},{x:f+3*x/6,y:0},{x:f,y:-x},{x:-3*x/6,y:-x}],{cssStyles:v}=e;
1if("handDrawn"===e.look){let t=o.Z.svg(h),l=B(e,{}),a=y(m),n=t.path(a,l);r=h.insert(()=>n,":first-child").attr("transform","translate(".concat(-f/2,", ").concat(x/2,")")),v&&r.attr("style",v)}else r=F(h,f,x,m);return c&&r.attr("style",c),e.width=f,e.height=x,g(e,r),e.intersect=function(t){return q.polygon(e,m,t)},h}async function tW(t,e){var l,a,n,i;let r;let{labelStyles:s,nodeStyles:c}=W(e);e.labelStyle=s;let{shapeSvg:h,bbox:p}=await d(t,e,u(e)),f=Math.max(p.width+(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),x=Math.max(p.height+(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),m=[{x:-3*x/6,y:0},{x:f,y:0},{x:f+3*x/6,y:-x},{x:0,y:-x}],{cssStyles:v}=e;if("handDrawn"===e.look){let t=o.Z.svg(h),l=B(e,{}),a=y(m),n=t.path(a,l);r=h.insert(()=>n,":first-child").attr("transform","translate(".concat(-f/2,", ").concat(x/2,")")),v&&r.attr("style",v)}else r=F(h,f,x,m);return c&&r.attr("style",c),e.width=f,e.height=x,g(e,r),e.intersect=function(t){return q.polygon(e,m,t)},h}function tB(t,e){var l,a,n;let{labelStyles:i,nodeStyles:r}=W(e);e.label="",e.labelStyle=i;let c=t.insert("g").attr("class",u(e)).attr("id",null!==(l=e.domId)&&void 0!==l?l:e.id),{cssStyles:d}=e,h=Math.max(35,null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),p=Math.max(35,null!==(n=null==e?void 0:e.height)&&void 0!==n?n:0),f=[{x:h,y:0},{x:0,y:p+3.5},{x:h-14,y:p+3.5},{x:0,y:2*p},{x:h,y:p-3.5},{x:14,y:p-3.5}],x=o.Z.svg(c),m=B(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let v=y(f),w=x.path(v,m),b=c.insert(()=>w,":first-child");return d&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",d),r&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",r),b.attr("transform","translate(-".concat(h/2,",").concat(-p,")")),g(e,b),e.intersect=function(t){return s.cM.info("lightningBolt intersect",e,t),q.polygon(e,f,t)},c}(0,s.eW)(tp,"hexagon"),(0,s.eW)(tf,"hourglass"),(0,s.eW)(tx,"icon"),(0,s.eW)(tm,"iconCircle"),(0,s.eW)(tv,"iconRounded"),(0,s.eW)(tw,"iconSquare"),(0,s.eW)(tb,"imageSquare"),(0,s.eW)(tS,"inv_trapezoid"),(0,s.eW)(tk,"drawRect"),(0,s.eW)(tM,"labelRect"),(0,s.eW)(tD,"lean_left"),(0,s.eW)(tW,"lean_right"),(0,s.eW)(tB,"lightningBolt");var tC=(0,s.eW)((t,e,l,a,n,i,r)=>["M".concat(t,",").concat(e+i),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0"),"a".concat(n,",").concat(i," 0,0,0 ").concat(-l,",0"),"l0,".concat(a),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0"),"l0,"+-a,"M".concat(t,",").concat(e+i+r),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0")].join(" "),"createCylinderPathD"),tN=(0,s.eW)((t,e,l,a,n,i,r)=>["M".concat(t,",").concat(e+i),"M".concat(t+l,",").concat(e+i),"a".concat(n,",").concat(i," 0,0,0 ").concat(-l,",0"),"l0,".concat(a),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0"),"l0,"+-a,"M".concat(t,",").concat(e+i+r),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0")].join(" "),"createOuterCylinderPathD"),tA=(0,s.eW)((t,e,l,a,n,i)=>["M".concat(t-l/2,",").concat(-a/2),"a".concat(n,",").concat(i," 0,0,0 ").concat(l,",0")].join(" "),"createInnerCylinderPathD");async function tL(t,e){var l,a,n,i,s,c;let h;let{labelStyles:y,nodeStyles:p}=W(e);e.labelStyle=y;let{shapeSvg:f,bbox:x,label:m}=await d(t,e,u(e)),v=Math.max(x.width+(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=e.width)&&void 0!==a?a:0),w=v/2,b=w/(2.5+v/50),S=Math.max(x.height+b+(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=e.height)&&void 0!==i?i:0),k=.1*S,{cssStyles:M}=e;if("handDrawn"===e.look){let t=o.Z.svg(f),l=tN(0,0,v,S,w,b,k),a=tA(0,b,v,S,w,b),n=B(e,{}),i=t.path(l,n),r=t.path(a,n);f.insert(()=>r,":first-child").attr("class","line"),(h=f.insert(()=>i,":first-child")).attr("class","basic label-container"),M&&h.attr("style",M)}else{let t=tC(0,0,v,S,w,b,k);h=f.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,r.R7)(M)).attr("style",p)}return h.attr("label-offset-y",b),h.attr("transform","translate(".concat(-v/2,", ").concat(-(S/2+b),")")),g(e,h),m.attr("transform","translate(".concat(-x.width/2-(x.x-(null!==(s=x.left)&&void 0!==s?s:0)),", ").concat(-x.height/2+b-(x.y-(null!==(c=x.top)&&void 0!==c?c:0)),")")),e.intersect=function(t){var l,a,n,i,r,s;let o=q.rect(e,t),c=o.x-(null!==(l=e.x)&&void 0!==l?l:0);if(0!=w&&(Math.abs(c)<(null!==(a=e.width)&&void 0!==a?a:0)/2||Math.abs(c)==(null!==(n=e.width)&&void 0!==n?n:0)/2&&Math.abs(o.y-(null!==(i=e.y)&&void 0!==i?i:0))>(null!==(r=e.height)&&void 0!==r?r:0)/2-b)){let l=b*b*(1-c*c/(w*w));l>0&&(l=Math.sqrt(l)),l=b-l,t.y-(null!==(s=e.y)&&void 0!==s?s:0)>0&&(l=-l),o.y+=l}return o},f}async function tR(t,e){var l,a,n,i,r,s,c,h;let{labelStyles:y,nodeStyles:f}=W(e);e.labelStyle=y;let{shapeSvg:x,bbox:m,label:v}=await d(t,e,u(e)),w=Math.max(m.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),b=Math.max(m.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.he
1ight)&&void 0!==i?i:0),S=b/4,k=b+S,{cssStyles:M}=e,D=o.Z.svg(x),C=B(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let N=[{x:-w/2-w/2*.1,y:-k/2},{x:-w/2-w/2*.1,y:k/2},...p(-w/2-w/2*.1,k/2,w/2+w/2*.1,k/2,S,.8),{x:w/2+w/2*.1,y:-k/2},{x:-w/2-w/2*.1,y:-k/2},{x:-w/2,y:-k/2},{x:-w/2,y:k/2*1.1},{x:-w/2,y:-k/2}],A=D.polygon(N.map(t=>[t.x,t.y]),C),L=x.insert(()=>A,":first-child");return L.attr("class","basic label-container"),M&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",M),f&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",f),L.attr("transform","translate(0,".concat(-S/2,")")),v.attr("transform","translate(".concat(-w/2+(null!==(r=e.padding)&&void 0!==r?r:0)+w/2*.1/2-(m.x-(null!==(s=m.left)&&void 0!==s?s:0)),",").concat(-b/2+(null!==(c=e.padding)&&void 0!==c?c:0)-S/2-(m.y-(null!==(h=m.top)&&void 0!==h?h:0)),")")),g(e,L),e.intersect=function(t){return q.polygon(e,N,t)},x}async function tP(t,e){var l,a,n,i,r,s;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:p,bbox:f,label:x}=await d(t,e,u(e)),m=Math.max(f.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),v=Math.max(f.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),w=-m/2,b=-v/2,{cssStyles:S}=e,k=o.Z.svg(p),M=B(e,{}),D=[{x:w-5,y:b+5},{x:w-5,y:b+v+5},{x:w+m-5,y:b+v+5},{x:w+m-5,y:b+v},{x:w+m,y:b+v},{x:w+m,y:b+v-5},{x:w+m+5,y:b+v-5},{x:w+m+5,y:b-5},{x:w+5,y:b-5},{x:w+5,y:b},{x:w,y:b},{x:w,y:b+5}],C=[{x:w,y:b+5},{x:w+m-5,y:b+5},{x:w+m-5,y:b+v},{x:w+m,y:b+v},{x:w+m,y:b},{x:w,y:b}];"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let N=y(D),A=k.path(N,M),L=y(C),R=k.path(L,{...M,fill:"none"}),P=p.insert(()=>R,":first-child");return P.insert(()=>A,":first-child"),P.attr("class","basic label-container"),S&&"handDrawn"!==e.look&&P.selectAll("path").attr("style",S),h&&"handDrawn"!==e.look&&P.selectAll("path").attr("style",h),x.attr("transform","translate(".concat(-f.width/2-5-(f.x-(null!==(r=f.left)&&void 0!==r?r:0)),", ").concat(-f.height/2+5-(f.y-(null!==(s=f.top)&&void 0!==s?s:0)),")")),g(e,P),e.intersect=function(t){return q.polygon(e,D,t)},p}async function tZ(t,e){var l,a,n,i,r,s;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:f,bbox:x,label:m}=await d(t,e,u(e)),v=Math.max(x.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),w=Math.max(x.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),b=w/4,S=w+b,k=-v/2,M=-S/2,{cssStyles:D}=e,C=p(k-5,M+S+5,k+v-5,M+S+5,b,.8),N=null==C?void 0:C[C.length-1],A=[{x:k-5,y:M+5},{x:k-5,y:M+S+5},...C,{x:k+v-5,y:N.y-5},{x:k+v,y:N.y-5},{x:k+v,y:N.y-10},{x:k+v+5,y:N.y-10},{x:k+v+5,y:M-5},{x:k+5,y:M-5},{x:k+5,y:M},{x:k,y:M},{x:k,y:M+5}],L=[{x:k,y:M+5},{x:k+v-5,y:M+5},{x:k+v-5,y:N.y-5},{x:k+v,y:N.y-5},{x:k+v,y:M},{x:k,y:M}],R=o.Z.svg(f),P=B(e,{});"handDrawn"!==e.look&&(P.roughness=0,P.fillStyle="solid");let Z=y(A),T=R.path(Z,P),I=y(L),H=R.path(I,P),E=f.insert(()=>T,":first-child");return E.insert(()=>H),E.attr("class","basic label-container"),D&&"handDrawn"!==e.look&&E.selectAll("path").attr("style",D),h&&"handDrawn"!==e.look&&E.selectAll("path").attr("style",h),E.attr("transform","translate(0,".concat(-b/2,")")),m.attr("transform","translate(".concat(-x.width/2-5-(x.x-(null!==(r=x.left)&&void 0!==r?r:0)),", ").concat(-x.height/2+5-b/2-(x.y-(null!==(s=x.top)&&void 0!==s?s:0)),")")),g(e,E),e.intersect=function(t){return q.polygon(e,A,t)},f}async function tT(t,e,l){var a,n,i,r,c;let{config:{themeVariables:h}}=l,{labelStyles:y,nodeStyles:p}=W(e);e.labelStyle=y,e.useHtmlLabels||!1!==(null===(a=(0,s.iE)().flowchart)||void 0===a?void 0:a.htmlLabels)||(e.centerLabel=!0);let{shapeSvg:f,bbox:x}=await d(t,e,u(e)),m=Math.max(x.width+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.width)&&void 0!==i?i:0),v=Math.max(x.height+2*(null!==(r=e.padding)&&void 0!==r?r:0),null!==(c=null==e?void 0:e.height)&&void 0!==c?c:0),{cssStyles:w}=e,b=o.Z.svg(f),S=B(e,{fill:h.noteBkgColor,stroke:h.noteBorderColor});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let k=b.rectangle(-m/2,-v/2,m,v,S),M=f.insert(()=>k,":first-child");return M.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",w),p&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",p),g(e,M),e.intersect=function(t){return q.rect(e,t)},f}(0,s.eW)(tL,"linedCylinder"),(0,s.eW)(tR,"linedWaveEdgedRect"),(0,s.eW)(tP,"multiRect"),(0,s.eW)(tZ,"multiWaveEdgedRectangle"),(0,s.eW)(tT,"note");var tI=(0,s.eW)((t,e,l)=>["M".concat(t+l/2,",").concat(e),"L".concat(t+l,",").concat(e-l/2),"L".concat(t+l/2,",").concat(e-l),"L".concat(t,",").concat(e-l/2),"Z"].join(" "),"createDecisionBoxPathD");async function tH(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:r}=await d(t,e,u(e)),c=r.width+e.padding+(r.height+e.padding),h=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],{cssStyles:y}=e;
1if("handDrawn"===e.look){let t=o.Z.svg(i),a=B(e,{}),n=tI(0,0,c),r=t.path(n,a);l=i.insert(()=>r,":first-child").attr("transform","translate(".concat(-c/2,", ").concat(c/2,")")),y&&l.attr("style",y)}else l=F(i,c,c,h);return n&&l.attr("style",n),g(e,l),e.intersect=function(t){return s.cM.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",q.polygon(e,h,t)),q.polygon(e,h,t)},i}async function tE(t,e){var l,a,n,i,r,s;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:p,bbox:f,label:x}=await d(t,e,u(e)),m=-Math.max(f.width+(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0)/2,v=-Math.max(f.height+(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0)/2,w=v/2,b=[{x:m+w,y:v},{x:m,y:0},{x:m+w,y:-v},{x:-m,y:-v},{x:-m,y:v}],{cssStyles:S}=e,k=o.Z.svg(p),M=B(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=y(b),C=k.path(D,M),N=p.insert(()=>C,":first-child");return N.attr("class","basic label-container"),S&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",S),h&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",h),N.attr("transform","translate(".concat(-w/2,",0)")),x.attr("transform","translate(".concat(-w/2-f.width/2-(f.x-(null!==(r=f.left)&&void 0!==r?r:0)),", ").concat(-f.height/2-(f.y-(null!==(s=f.top)&&void 0!==s?s:0)),")")),g(e,N),e.intersect=function(t){return q.polygon(e,b,t)},p}async function tV(t,e){var l,a;let n,i,r;let{labelStyles:d,nodeStyles:h}=W(e);e.labelStyle=d,n=e.cssClasses?"node "+e.cssClasses:"node default";let u=t.insert("g").attr("class",n).attr("id",e.domId||e.id),y=u.insert("g"),p=u.insert("g").attr("class","label").attr("style",h),f=e.description,x=e.label,m=p.node().appendChild(await w(x,e.labelStyle,!0,!0)),v={width:0,height:0};if((0,s.ku)(null===(a=(0,s.nV)())||void 0===a?void 0:null===(l=a.flowchart)||void 0===l?void 0:l.htmlLabels)){let t=m.children[0],e=(0,c.Z)(m);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}s.cM.info("Text 2",f);let S=f||[],k=m.getBBox(),M=p.node().appendChild(await w(S.join?S.join("<br/>"):S,e.labelStyle,!0,!0)),D=M.children[0],C=(0,c.Z)(M);v=D.getBoundingClientRect(),C.attr("width",v.width),C.attr("height",v.height);let N=(e.padding||0)/2;(0,c.Z)(M).attr("transform","translate( "+(v.width>k.width?0:(k.width-v.width)/2)+", "+(k.height+N+5)+")"),(0,c.Z)(m).attr("transform","translate( "+(v.width<k.width?0:-(k.width-v.width)/2)+", 0)"),v=p.node().getBBox(),p.attr("transform","translate("+-v.width/2+", "+(-v.height/2-N+3)+")");let A=v.width+(e.padding||0),L=v.height+(e.padding||0),R=-v.width/2-N,P=-v.height/2-N;if("handDrawn"===e.look){let t=o.Z.svg(u),l=B(e,{}),a=t.path(b(R,P,A,L,e.rx||0),l),n=t.line(-v.width/2-N,-v.height/2-N+k.height+N,v.width/2+N,-v.height/2-N+k.height+N,l);r=u.insert(()=>(s.cM.debug("Rough node insert CXC",a),n),":first-child"),i=u.insert(()=>(s.cM.debug("Rough node insert CXC",a),a),":first-child")}else i=y.insert("rect",":first-child"),r=y.insert("line"),i.attr("class","outer title-state").attr("style",h).attr("x",-v.width/2-N).attr("y",-v.height/2-N).attr("width",v.width+(e.padding||0)).attr("height",v.height+(e.padding||0)),r.attr("class","divider").attr("x1",-v.width/2-N).attr("x2",v.width/2+N).attr("y1",-v.height/2-N+k.height+N).attr("y2",-v.height/2-N+k.height+N);return g(e,i),e.intersect=function(t){return q.rect(e,t)},u}async function tj(t,e){return tk(t,e,{rx:5,ry:5,classes:"",labelPaddingX:1*((null==e?void 0:e.padding)||0),labelPaddingY:1*((null==e?void 0:e.padding)||0)})}async function tq(t,e){var l,a,n,i,s,c,h,y,p;let{labelStyles:f,nodeStyles:x}=W(e);e.labelStyle=f;let{shapeSvg:m,bbox:v,label:w}=await d(t,e,u(e)),b=null!==(l=null==e?void 0:e.padding)&&void 0!==l?l:0,S=Math.max(v.width+2*(null!==(a=e.padding)&&void 0!==a?a:0),null!==(n=null==e?void 0:e.width)&&void 0!==n?n:0),k=Math.max(v.height+2*(null!==(i=e.padding)&&void 0!==i?i:0),null!==(s=null==e?void 0:e.height)&&void 0!==s?s:0),M=-v.width/2-b,D=-v.height/2-b,{cssStyles:C}=e,N=o.Z.svg(m),A=B(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let L=N.polygon([{x:M,y:D},{x:M+S+8,y:D},{x:M+S+8,y:D+k},{x:M-8,y:D+k},{x:M-8,y:D},{x:M,y:D},{x:M,y:D+k}
1].map(t=>[t.x,t.y]),A),R=m.insert(()=>L,":first-child");return R.attr("class","basic label-container").attr("style",(0,r.R7)(C)),x&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",x),C&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",x),w.attr("transform","translate(".concat(-S/2+4+(null!==(c=e.padding)&&void 0!==c?c:0)-(v.x-(null!==(h=v.left)&&void 0!==h?h:0)),",").concat(-k/2+(null!==(y=e.padding)&&void 0!==y?y:0)-(v.y-(null!==(p=v.top)&&void 0!==p?p:0)),")")),g(e,R),e.intersect=function(t){return q.rect(e,t)},m}async function tO(t,e){var l,a,n,i,r,s,c,h;let{labelStyles:p,nodeStyles:f}=W(e);e.labelStyle=p;let{shapeSvg:x,bbox:m,label:v}=await d(t,e,u(e)),w=Math.max(m.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),b=Math.max(m.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),S=-w/2,k=-b/2,{cssStyles:M}=e,D=o.Z.svg(x),C=B(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let N=[{x:S,y:k},{x:S,y:k+b},{x:S+w,y:k+b},{x:S+w,y:k-b/2}],A=y(N),L=D.path(A,C),R=x.insert(()=>L,":first-child");return R.attr("class","basic label-container"),M&&"handDrawn"!==e.look&&R.selectChildren("path").attr("style",M),f&&"handDrawn"!==e.look&&R.selectChildren("path").attr("style",f),R.attr("transform","translate(0, ".concat(b/4,")")),v.attr("transform","translate(".concat(-w/2+(null!==(r=e.padding)&&void 0!==r?r:0)-(m.x-(null!==(s=m.left)&&void 0!==s?s:0)),", ").concat(-b/4+(null!==(c=e.padding)&&void 0!==c?c:0)-(m.y-(null!==(h=m.top)&&void 0!==h?h:0)),")")),g(e,R),e.intersect=function(t){return q.polygon(e,N,t)},x}async function t_(t,e){return tk(t,e,{rx:0,ry:0,classes:"",labelPaddingX:2*((null==e?void 0:e.padding)||0),labelPaddingY:1*((null==e?void 0:e.padding)||0)})}async function tz(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:s}=await d(t,e,u(e)),c=s.height+e.padding,h=s.width+c/4+e.padding,{cssStyles:y}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),a=B(e,{}),n=b(-h/2,-c/2,h,c,c/2),s=t.path(n,a);(l=i.insert(()=>s,":first-child")).attr("class","basic label-container").attr("style",(0,r.R7)(y))}else(l=i.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",c/2).attr("ry",c/2).attr("x",-h/2).attr("y",-c/2).attr("width",h).attr("height",c);return g(e,l),e.intersect=function(t){return q.rect(e,t)},i}async function tF(t,e){return tk(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function tX(t,e,l){let{config:{themeVariables:a}}=l,{labelStyles:n,nodeStyles:i}=W(e);e.labelStyle=n;let{cssStyles:r}=e,{lineColor:s,stateBorder:c,nodeBorder:d}=a,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=o.Z.svg(h),y=B(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let p=u.circle(0,0,14,{...y,stroke:s,strokeWidth:2}),f=null!=c?c:d,x=u.circle(0,0,5,{...y,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),m=h.insert(()=>p,":first-child");return m.insert(()=>x),r&&m.selectAll("path").attr("style",r),i&&m.selectAll("path").attr("style",i),g(e,m),e.intersect=function(t){return q.circle(e,7,t)},h}function tY(t,e,l){let a,{config:{themeVariables:n}}=l,{lineColor:i}=n,r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=o.Z.svg(r).circle(0,0,14,S(i));(a=r.insert(()=>t)).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else(a=r.insert("circle",":first-child")).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return g(e,a),e.intersect=function(t){return q.circle(e,7,t)},r}async function tG(t,e){let{labelStyles:l,nodeStyles:a}=W(e);e.labelStyle=l;let{shapeSvg:n,bbox:i}=await d(t,e,u(e)),s=((null==e?void 0:e.padding)||0)/2,c=i.width+e.padding,h=i.height+e.padding,y=-i.width/2-s,p=-i.height/2-s,f=[{x:0,y:0},{x:c,y:0},{x:c,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-h},{x:-8,y:-h},{x:-8,y:0}];if("handDrawn"===e.look){let t=o.Z.svg(n),l=B(e,{}),a=t.rectangle(y-8,p,c+16,h,l),i=t.line(y,p,y,p+h,l),s=t.line(y+c,p,y+c,p+h,l);n.insert(()=>i,":first-child"),n.insert(()=>s,":first-child");let d=n.insert(()=>a,":first-child"),{cssStyles:u}=e;d.attr("class","basic label-container").attr("style",(0,r.R7)(u)),g(e,d)}else{let t=F(n,c,h,f);a&&t.attr("style",a),g(e,t)}return e.intersect=function(t){return q.polygon(e,f,t)},n}async function tJ(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:s}=W(e);e.labelStyle=r;let{shapeSvg:c,bbox:h}=await d(t,e,u(e)),p=Math.max(h.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),f=Math.max(h.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.he
1ight)&&void 0!==i?i:0),x=-p/2,m=-f/2,v=.2*f,{cssStyles:w}=e,b=o.Z.svg(c),S=B(e,{}),k=[{x:x-v/2,y:m},{x:x+p+v/2,y:m},{x:x+p+v/2,y:m+f},{x:x-v/2,y:m+f}];"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let M=y(k),D=b.path(M,S),C=y([{x:x+p-v/2,y:m+f},{x:x+p+v/2,y:m+f},{x:x+p+v/2,y:m+f-.2*f}]),N=b.path(C,{...S,fillStyle:"solid"}),A=c.insert(()=>N,":first-child");return A.insert(()=>D,":first-child"),A.attr("class","basic label-container"),w&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",w),s&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",s),g(e,A),e.intersect=function(t){return q.polygon(e,k,t)},c}async function tU(t,e){var l,a,n,i,r,s,c,h;let{labelStyles:f,nodeStyles:x}=W(e);e.labelStyle=f;let{shapeSvg:m,bbox:v,label:w}=await d(t,e,u(e)),b=Math.max(v.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),S=Math.max(v.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),k=S/4,M=.2*b,D=.2*S,C=S+k,{cssStyles:N}=e,A=o.Z.svg(m),L=B(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");let R=[{x:-b/2-b/2*.1,y:C/2},...p(-b/2-b/2*.1,C/2,b/2+b/2*.1,C/2,k,.8),{x:b/2+b/2*.1,y:-C/2},{x:-b/2-b/2*.1,y:-C/2}],P=-b/2+b/2*.1,Z=-C/2-.4*D,T=[{x:P+b-M,y:1.4*(Z+S)},{x:P+b,y:Z+S-D},{x:P+b,y:.9*(Z+S)},...p(P+b,1.3*(Z+S),P+b-M,1.5*(Z+S),-(.03*S),.5)],I=y(R),H=A.path(I,L),E=y(T),V=A.path(E,{...L,fillStyle:"solid"}),j=m.insert(()=>V,":first-child");return j.insert(()=>H,":first-child"),j.attr("class","basic label-container"),N&&"handDrawn"!==e.look&&j.selectAll("path").attr("style",N),x&&"handDrawn"!==e.look&&j.selectAll("path").attr("style",x),j.attr("transform","translate(0,".concat(-k/2,")")),w.attr("transform","translate(".concat(-b/2+(null!==(r=e.padding)&&void 0!==r?r:0)-(v.x-(null!==(s=v.left)&&void 0!==s?s:0)),",").concat(-S/2+(null!==(c=e.padding)&&void 0!==c?c:0)-k/2-(v.y-(null!==(h=v.top)&&void 0!==h?h:0)),")")),g(e,j),e.intersect=function(t){return q.polygon(e,R,t)},m}async function tK(t,e){let{labelStyles:l,nodeStyles:a}=W(e);e.labelStyle=l;let{shapeSvg:n,bbox:i}=await d(t,e,u(e)),r=Math.max(i.width+e.padding,(null==e?void 0:e.width)||0),s=Math.max(i.height+e.padding,(null==e?void 0:e.height)||0),o=n.insert("rect",":first-child");return o.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",-r/2).attr("y",-s/2).attr("width",r).attr("height",s),g(e,o),e.intersect=function(t){return q.rect(e,t)},n}(0,s.eW)(tH,"question"),(0,s.eW)(tE,"rect_left_inv_arrow"),(0,s.eW)(tV,"rectWithTitle"),(0,s.eW)(tj,"roundedRect"),(0,s.eW)(tq,"shadedProcess"),(0,s.eW)(tO,"slopedRect"),(0,s.eW)(t_,"squareRect"),(0,s.eW)(tz,"stadium"),(0,s.eW)(tF,"state"),(0,s.eW)(tX,"stateEnd"),(0,s.eW)(tY,"stateStart"),(0,s.eW)(tG,"subroutine"),(0,s.eW)(tJ,"taggedRect"),(0,s.eW)(tU,"taggedWaveEdgedRectangle"),(0,s.eW)(tK,"text");var tQ=(0,s.eW)((t,e,l,a,n,i)=>"M".concat(t,",").concat(e,"\n    a").concat(n,",").concat(i," 0,0,1 0,").concat(-a,"\n    l").concat(l,",0\n    a").concat(n,",").concat(i," 0,0,1 0,").concat(a,"\n    M").concat(l,",").concat(-a,"\n    a").concat(n,",").concat(i," 0,0,0 0,").concat(a,"\n    l").concat(-l,",0"),"createCylinderPathD"),t$=(0,s.eW)((t,e,l,a,n,i)=>["M".concat(t,",").concat(e),"M".concat(t+l,",").concat(e),"a".concat(n,",").concat(i," 0,0,0 0,").concat(-a),"l".concat(-l,",0"),"a".concat(n,",").concat(i," 0,0,0 0,").concat(a),"l".concat(l,",0")].join(" "),"createOuterCylinderPathD"),t0=(0,s.eW)((t,e,l,a,n,i)=>["M".concat(t+l/2,",").concat(-a/2),"a".concat(n,",").concat(i," 0,0,0 0,").concat(a)].join(" "),"createInnerCylinderPathD");async function t2(t,e){var l,a;let n;let{labelStyles:i,nodeStyles:s}=W(e);e.labelStyle=i;let{shapeSvg:c,bbox:h,label:y,halfPadding:p}=await d(t,e,u(e)),f="neo"===e.look?2*p:p,x=h.height+f,m=x/2,v=m/(2.5+x/50),w=h.width+v+f,{cssStyles:b}=e;
1if("handDrawn"===e.look){let t=o.Z.svg(c),l=t$(0,0,w,x,v,m),a=t0(0,0,w,x,v,m),i=t.path(l,B(e,{})),r=t.path(a,B(e,{fill:"none"}));n=c.insert(()=>r,":first-child"),(n=c.insert(()=>i,":first-child")).attr("class","basic label-container"),b&&n.attr("style",b)}else{let t=tQ(0,0,w,x,v,m);(n=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,r.R7)(b)).attr("style",s)).attr("class","basic label-container"),b&&n.selectAll("path").attr("style",b),s&&n.selectAll("path").attr("style",s)}return n.attr("label-offset-x",v),n.attr("transform","translate(".concat(-w/2,", ").concat(x/2," )")),y.attr("transform","translate(".concat(-h.width/2-v-(h.x-(null!==(l=h.left)&&void 0!==l?l:0)),", ").concat(-h.height/2-(h.y-(null!==(a=h.top)&&void 0!==a?a:0)),")")),g(e,n),e.intersect=function(t){var l,a,n,i,r,s;let o=q.rect(e,t),c=o.y-(null!==(l=e.y)&&void 0!==l?l:0);if(0!=m&&(Math.abs(c)<(null!==(a=e.height)&&void 0!==a?a:0)/2||Math.abs(c)==(null!==(n=e.height)&&void 0!==n?n:0)/2&&Math.abs(o.x-(null!==(i=e.x)&&void 0!==i?i:0))>(null!==(r=e.width)&&void 0!==r?r:0)/2-v)){let l=v*v*(1-c*c/(m*m));0!=l&&(l=Math.sqrt(Math.abs(l))),l=v-l,t.x-(null!==(s=e.x)&&void 0!==s?s:0)>0&&(l=-l),o.x+=l}return o},c}async function t1(t,e){let l;let{labelStyles:a,nodeStyles:n}=W(e);e.labelStyle=a;let{shapeSvg:i,bbox:r}=await d(t,e,u(e)),s=r.width+e.padding,c=r.height+e.padding,h=[{x:-3*c/6,y:0},{x:s+3*c/6,y:0},{x:s,y:-c},{x:0,y:-c}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=o.Z.svg(i),a=B(e,{}),n=y(h),r=t.path(n,a);l=i.insert(()=>r,":first-child").attr("transform","translate(".concat(-s/2,", ").concat(c/2,")")),p&&l.attr("style",p)}else l=F(i,s,c,h);return n&&l.attr("style",n),e.width=s,e.height=c,g(e,l),e.intersect=function(t){return q.polygon(e,h,t)},i}async function t5(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:s}=W(e);e.labelStyle=r;let{shapeSvg:c,bbox:h}=await d(t,e,u(e)),p=Math.max(60,h.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),f=Math.max(20,h.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),{cssStyles:x}=e,m=o.Z.svg(c),v=B(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let w=[{x:-p/2*.8,y:-f/2},{x:p/2*.8,y:-f/2},{x:p/2,y:-f/2*.6},{x:p/2,y:f/2},{x:-p/2,y:f/2},{x:-p/2,y:-f/2*.6}],b=y(w),S=m.path(b,v),k=c.insert(()=>S,":first-child");return k.attr("class","basic label-container"),x&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",x),s&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",s),g(e,k),e.intersect=function(t){return q.polygon(e,w,t)},c}async function t8(t,e){var l,a,n,i,r;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:p,bbox:f,label:x}=await d(t,e,u(e)),m=(0,s.ku)(null===(l=(0,s.nV)().flowchart)||void 0===l?void 0:l.htmlLabels),v=f.width+(null!==(a=e.padding)&&void 0!==a?a:0),w=v+f.height,b=v+f.height,S=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-w}],{cssStyles:k}=e,M=o.Z.svg(p),D=B(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let C=y(S),N=M.path(C,D),A=p.insert(()=>N,":first-child").attr("transform","translate(".concat(-w/2,", ").concat(w/2,")"));return k&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",k),h&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",h),e.width=v,e.height=w,g(e,A),x.attr("transform","translate(".concat(-f.width/2-(f.x-(null!==(n=f.left)&&void 0!==n?n:0)),", ").concat(w/2-(f.height+(null!==(i=e.padding)&&void 0!==i?i:0)/(m?2:1)-(f.y-(null!==(r=f.top)&&void 0!==r?r:0))),")")),e.intersect=function(t){return s.cM.info("Triangle intersect",e,S,t),q.polygon(e,S,t)},p}async function t4(t,e){var l,a,n,i,r,s,c,h;let{labelStyles:f,nodeStyles:x}=W(e);e.labelStyle=f;let{shapeSvg:m,bbox:v,label:w}=await d(t,e,u(e)),b=Math.max(v.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),S=Math.max(v.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),k=S/8,M=S+k,{cssStyles:D}=e,C=70-b,N=C>0?C/2:0,A=o.Z.svg(m),L=B(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");let R=[{x:-b/2-N,y:M/2},...p(-b/2-N,M/2,b/2+N,M/2,k,.8),{x:b/2+N,y:-M/2},{x:-b/2-N,y:-M/2}],P=y(R),Z=A.path(P,L),T=m.insert(()=>Z,":first-child");return T.attr("class","basic label-container"),D&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",D),x&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",x),T.attr("transform","translate(0,".concat(-k/2,")")),w.attr("transform","translate(".concat(-b/2+(null!==(r=e.padding)&&void 0!==r?r:0)-(v.x-(null!==(s=v.left)&&void 0!==s?s:0)),",").concat(-S/2+(null!==(c=e.padding)&&void 0!==c?c:0)-k-(v.y-(null!==(h=v.top)&&void 0!==h?h:0)),")")),g(e,T),e.intersect=function(t){return q.polygon(e,R,t)},m}async function t3(t,e){var l,a,n,i;let{labelStyles:r,nodeStyles:s}=W(e);e.labelStyle=r;let{shapeSvg:c,bbox:h}=await d(t,e,u(e)),f=Math.max(h.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),x=Math.max(h.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.he
1ight)&&void 0!==i?i:0),m=f/x,v=f,w=x;v>w*m?w=v/m:v=w*m,v=Math.max(v,100);let b=Math.min(.2*(w=Math.max(w,50)),w/4),S=w+2*b,{cssStyles:k}=e,M=o.Z.svg(c),D=B(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let C=[{x:-v/2,y:S/2},...p(-v/2,S/2,v/2,S/2,b,1),{x:v/2,y:-S/2},...p(v/2,-S/2,-v/2,-S/2,b,-1)],N=y(C),A=M.path(N,D),L=c.insert(()=>A,":first-child");return L.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",k),s&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",s),g(e,L),e.intersect=function(t){return q.polygon(e,C,t)},c}async function t7(t,e){var l,a,n,i,r,s;let{labelStyles:c,nodeStyles:h}=W(e);e.labelStyle=c;let{shapeSvg:y,bbox:p,label:f}=await d(t,e,u(e)),x=Math.max(p.width+2*(null!==(l=e.padding)&&void 0!==l?l:0),null!==(a=null==e?void 0:e.width)&&void 0!==a?a:0),m=Math.max(p.height+2*(null!==(n=e.padding)&&void 0!==n?n:0),null!==(i=null==e?void 0:e.height)&&void 0!==i?i:0),v=-x/2,w=-m/2,{cssStyles:b}=e,S=o.Z.svg(y),k=B(e,{}),M=[{x:v-5,y:w-5},{x:v-5,y:w+m},{x:v+x,y:w+m},{x:v+x,y:w-5}],D="M".concat(v-5,",").concat(w-5," L").concat(v+x,",").concat(w-5," L").concat(v+x,",").concat(w+m," L").concat(v-5,",").concat(w+m," L").concat(v-5,",").concat(w-5,"\n                M").concat(v-5,",").concat(w," L").concat(v+x,",").concat(w,"\n                M").concat(v,",").concat(w-5," L").concat(v,",").concat(w+m);"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=S.path(D,k),N=y.insert(()=>C,":first-child");return N.attr("transform","translate(2.5, 2.5)"),N.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",b),h&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",h),f.attr("transform","translate(".concat(-p.width/2+2.5-(p.x-(null!==(r=p.left)&&void 0!==r?r:0)),", ").concat(-p.height/2+2.5-(p.y-(null!==(s=p.top)&&void 0!==s?s:0)),")")),g(e,N),e.intersect=function(t){return q.polygon(e,M,t)},y}async function t9(t,e){var l,a,n,i,d,h,y;if(e.alias&&(e.label=e.alias),"handDrawn"===e.look){let{themeVariables:l}=(0,s.iE)(),{background:a}=l,n={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none","fill: ".concat(a)]};await t9(t,n)}let p=(0,s.iE)();e.useHtmlLabels=p.htmlLabels;let f=null!==(n=null===(l=p.er)||void 0===l?void 0:l.diagramPadding)&&void 0!==n?n:10,x=null!==(i=null===(a=p.er)||void 0===a?void 0:a.entityPadding)&&void 0!==i?i:6,{cssStyles:m}=e,{labelStyles:v,nodeStyles:w}=W(e);if(0===e.attributes.length&&e.label){let l={rx:0,ry:0,labelPaddingX:f,labelPaddingY:1.5*f,classes:""};(0,r.Cq)(e.label,p)+2*l.labelPaddingX<p.er.minEntityWidth&&(e.width=p.er.minEntityWidth);let a=await tk(t,e,l);if(!(0,s.ku)(p.htmlLabels)){let t=a.select("text"),e=null===(d=t.node())||void 0===d?void 0:d.getBBox();t.attr("transform","translate(".concat(-e.width/2,", 0)"))}return a}p.htmlLabels||(f*=1.25,x*=1.25);let b=u(e);b||(b="node default");let S=t.insert("g").attr("class",b).attr("id",e.domId||e.id),k=await t6(S,null!==(h=e.label)&&void 0!==h?h:"",p,0,0,["name"],v);k.height+=x;let M=0,D=[],C=[],N=0,A=0,L=0,R=0,P=!0,Z=!0;for(let t of e.attributes){let e=await t6(S,t.type,p,0,M,["attribute-type"],v);N=Math.max(N,e.width+f);let l=await t6(S,t.name,p,0,M,["attribute-name"],v);A=Math.max(A,l.width+f);let a=await t6(S,t.keys.join(),p,0,M,["attribute-keys"],v);L=Math.max(L,a.width+f);let n=await t6(S,t.comment,p,0,M,["attribute-comment"],v);R=Math.max(R,n.width+f);let i=Math.max(e.height,l.height,a.height,n.height)+x;C.push({yOffset:M,rowHeight:i}),M+=i}let T=4;L<=f&&(P=!1,L=0,T--),R<=f&&(Z=!1,R=0,T--);let I=S.node().getBBox();if(k.width+2*f-(N+A+L+R)>0){let t=k.width+2*f-(N+A+L+R);N+=t/T,A+=t/T,L>0&&(L+=t/T),R>0&&(R+=t/T)}let H=N+A+L+R,E=o.Z.svg(S),V=B(e,{});"handDrawn"!==e.look&&(V.roughness=0,V.fillStyle="solid");let j=0;C.length>0&&(j=C.reduce((t,e)=>{var l;return t+(null!==(l=null==e?void 0:e.rowHeight)&&void 0!==l?l:0)},0));let O=Math.max(I.width+2*f,(null==e?void 0:e.width)||0,H),_=Math.max((null!=j?j:0)+k.height,(null==e?void 0:e.height)||0),z=-O/2,F=-_/2;S.selectAll("g:not(:first-child)").each((t,e,l)=>{let a=(0,c.Z)(l[e]),n=a.attr("transform"),i=0,r=0;
1if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(i=parseFloat(t[1]),r=parseFloat(t[2]),a.attr("class").includes("attribute-name")?i+=N:a.attr("class").includes("attribute-keys")?i+=N+A:a.attr("class").includes("attribute-comment")&&(i+=N+A+L))}a.attr("transform","translate(".concat(z+f/2+i,", ").concat(r+F+k.height+x/2,")"))}),S.select(".name").attr("transform","translate("+-k.width/2+", "+(F+x/2)+")");let X=E.rectangle(z,F,O,_,V),Y=S.insert(()=>X,":first-child").attr("style",m.join("")),{themeVariables:G}=(0,s.iE)(),{rowEven:J,rowOdd:U,nodeBorder:K}=G;for(let[t,e]of(D.push(0),C.entries())){let l=(t+1)%2==0&&0!==e.yOffset,a=E.rectangle(z,k.height+F+(null==e?void 0:e.yOffset),O,null==e?void 0:e.rowHeight,{...V,fill:l?J:U,stroke:K});S.insert(()=>a,"g.label").attr("style",m.join("")).attr("class","row-rect-"+(l?"even":"odd"))}let Q=E.line(z,k.height+F,O+z,k.height+F,V);for(let t of(S.insert(()=>Q).attr("class","divider"),Q=E.line(N+z,k.height+F,N+z,_+F,V),S.insert(()=>Q).attr("class","divider"),P&&(Q=E.line(N+A+z,k.height+F,N+A+z,_+F,V),S.insert(()=>Q).attr("class","divider")),Z&&(Q=E.line(N+A+L+z,k.height+F,N+A+L+z,_+F,V),S.insert(()=>Q).attr("class","divider")),D))Q=E.line(z,k.height+F+t,O+z,k.height+F+t,V),S.insert(()=>Q).attr("class","divider");if(g(e,Y),w&&"handDrawn"!==e.look){let t=w.split(";"),e=null==t?void 0:null===(y=t.filter(t=>t.includes("stroke")))||void 0===y?void 0:y.map(t=>"".concat(t)).join("; ");S.selectAll("path").attr("style",null!=e?e:""),S.selectAll(".row-rect-even path").attr("style",w)}return e.intersect=function(t){return q.rect(e,t)},S}async function t6(t,e,l){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",h=t.insert("g").attr("class","label ".concat(o.join(" "))).attr("transform","translate(".concat(a,", ").concat(n,")")).attr("style",d);e!==(0,s.UO)(e)&&(e=(e=(0,s.UO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));let g=h.node().appendChild(await (0,i.rw)(h,e,{width:(0,r.Cq)(e,l)+100,style:d,useHtmlLabels:l.htmlLabels},l));if(e.includes("&lt;")||e.includes("&gt;")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let u=g.getBBox();if((0,s.ku)(l.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,c.Z)(g);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}return u}async function et(t,e,l,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null!==(a=l.class.padding)&&void 0!==a?a:12,r=n?0:3,s=t.insert("g").attr("class",u(e)).attr("id",e.domId||e.id),o=null,c=null,d=null,h=null,g=0,y=0,p=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await ee(o,{text:"\xab".concat(t,"\xbb")},0),g=o.node().getBBox().height}c=s.insert("g").attr("class","label-group text"),await ee(c,e,0,["font-weight: bolder"]);let f=c.node().getBBox();y=f.height,d=s.insert("g").attr("class","members-group text");let x=0;for(let t of e.members)x+=await ee(d,t,x,[t.parseClassifier()])+r;(p=d.node().getBBox().height)<=0&&(p=i/2),h=s.insert("g").attr("class","methods-group text");let m=0;for(let t of e.methods)m+=await ee(h,t,m,[t.parseClassifier()])+r;let v=s.node().getBBox();if(null!==o){let t=o.node().getBBox();o.attr("transform","translate(".concat(-t.width/2,")"))}return c.attr("transform","translate(".concat(-f.width/2,", ").concat(g,")")),v=s.node().getBBox(),d.attr("transform","translate(0, ".concat(g+y+2*i,")")),v=s.node().getBBox(),h.attr("transform","translate(0, ".concat(g+y+(p?p+4*i:2*i),")")),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}async function ee(t,e,l){var a;let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=t.insert("g").attr("class","label").attr("style",n.join("; ")),d=(0,s.iE)(),h="useHtmlLabels"in e?e.useHtmlLabels:null===(a=(0,s.ku)(d.htmlLabels)
1)||void 0===a||a,g="";g="text"in e?e.text:e.label,!h&&g.startsWith("\\")&&(g=g.substring(1)),(0,s.l0)(g)&&(h=!0);let u=await (0,i.rw)(o,(0,s.uX)((0,r.SH)(g)),{width:(0,r.Cq)(g,d)+50,classes:"markdown-node-label",useHtmlLabels:h},d),y,p=1;if(h){let t=u.children[0],e=(0,c.Z)(u);p=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(p+=t.innerHTML.split("<mrow>").length-1);let l=t.getElementsByTagName("img");if(l){let t=""===g.replace(/<img[^>]*>/g,"").trim();await Promise.all([...l].map(e=>new Promise(l=>{function a(){if(e.style.display="flex",e.style.flexDirection="column",t){var a,n;let t=5*parseInt(null!==(n=null===(a=d.fontSize)||void 0===a?void 0:a.toString())&&void 0!==n?n:window.getComputedStyle(document.body).fontSize,10)+"px";e.style.minWidth=t,e.style.maxWidth=t}else e.style.width="100%";l(e)}(0,s.eW)(a,"setupImage"),setTimeout(()=>{e.complete&&a()}),e.addEventListener("error",a),e.addEventListener("load",a)})))}y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}else{n.includes("font-weight: bolder")&&(0,c.Z)(u).selectAll("tspan").attr("font-weight",""),p=u.children.length;let t=u.children[0];(""===u.textContent||u.textContent.includes("&gt"))&&(t.textContent=g[0]+g.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===g[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),y=u.getBBox()}return o.attr("transform","translate(0,"+(-y.height/(2*p)+l)+")"),y.height}async function el(t,e){var l,a,n,i,r,d,h,u;let y=(0,s.nV)(),p=null!==(n=y.class.padding)&&void 0!==n?n:12,f=null===(r=null!==(i=e.useHtmlLabels)&&void 0!==i?i:(0,s.ku)(y.htmlLabels))||void 0===r||r;e.annotations=null!==(d=e.annotations)&&void 0!==d?d:[],e.members=null!==(h=e.members)&&void 0!==h?h:[],e.methods=null!==(u=e.methods)&&void 0!==u?u:[];let{shapeSvg:x,bbox:m}=await et(t,e,y,f,p),{labelStyles:v,nodeStyles:w}=W(e);e.labelStyle=v,e.cssStyles=e.styles||"";let b=(null===(l=e.styles)||void 0===l?void 0:l.join(";"))||w||"";e.cssStyles||(e.cssStyles=b.replaceAll("!important","").split(";"));let S=0===e.members.length&&0===e.methods.length&&!(null===(a=y.class)||void 0===a?void 0:a.hideEmptyMembersBox),k=o.Z.svg(x),M=B(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=m.width,C=m.height;0===e.members.length&&0===e.methods.length?C+=p:e.members.length>0&&0===e.methods.length&&(C+=2*p);let N=-D/2,A=-C/2,L=k.rectangle(N-p,A-p-(S?p:0===e.members.length&&0===e.methods.length?-p/2:0),D+2*p,C+2*p+(S?2*p:0===e.members.length&&0===e.methods.length?-p:0),M),R=x.insert(()=>L,":first-child");R.attr("class","basic label-container");let P=R.node().getBBox();x.selectAll(".text").each((t,l,a)=>{var n;let i=(0,c.Z)(a[l]),r=i.attr("transform"),s=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(s=parseFloat(t[2]))}let o=s+A+p-(S?p:0===e.members.length&&0===e.methods.length?-p/2:0);f||(o-=4);let d=N;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(d=-(null===(n=i.node())||void 0===n?void 0:n.getBBox().width)/2||0,x.selectAll("text").each(function(t,e,l){"middle"===window.getComputedStyle(l[e]).textAnchor&&(d=0)})),i.attr("transform","translate(".concat(d,", ").concat(o,")"))});let Z=x.select(".annotation-group").node().getBBox().height-(S?p/2:0)||0,T=x.select(".label-group").node().getBBox().height-(S?p/2:0)||0,I=x.select(".members-group").node().getBBox().height-(S?p/2:0)||0;if(e.members.length>0||e.methods.length>0||S){let t=k.line(P.x,Z+T+A+p,P.x+P.width,Z+T+A+p,M);x.insert(()=>t).attr("class","divider").attr("style",b)}if(S||e.members.length>0||e.methods.length>0){let t=k.line(P.x,Z+T+I+A+2*p+p,P.x+P.width,Z+T+I+A+p+2*p,M);x.insert(()=>t).attr("class","divider").attr("style",b)}if("handDrawn"!==e.look&&x.selectAll("path").attr("style",b),R.select(":nth-child(2)").attr("style",b),x.selectAll(".divider").select("path").attr("style",b),e.labelStyle?x.selectAll("span").attr("style",e.labelStyle):x.selectAll("span").attr("style",b),!f){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(b);if(e){let t=e[0].replace("color","fill");x.selectAll("tspan").attr("style",t)}else if(v){let e=t.exec(v);if(e){let t=e[0].replace("color","fill");x.selectAll("tspan").attr("style",t)}}}return g(e,R),e.intersect=function(t){return q.rect(e,t)},x}async function ea(t,e){var l,a,n,i,r;let s;let{labelStyles:d,nodeStyles:h}=W(e);e.labelStyle=d;let y="verifyMethod"in e,p=u(e),f=t.insert("g").attr("class",p).attr("id",null!==(n=e.domId)&&void 0!==n?n:e.id),x=s=y?await en(f,"&lt;&lt;".concat(e.type,"&gt;&gt;"),0,e.labelStyle):await en(f,"&lt;&lt;Element&gt;&gt;
1",0,e.labelStyle),m=await en(f,e.name,x,e.labelStyle+"; font-weight: bold;");(x+=m+20,y)?(x+=await en(f,""+(e.requirementId?"id: ".concat(e.requirementId):""),x,e.labelStyle),x+=await en(f,""+(e.text?"Text: ".concat(e.text):""),x,e.labelStyle),x+=await en(f,""+(e.risk?"Risk: ".concat(e.risk):""),x,e.labelStyle),await en(f,""+(e.verifyMethod?"Verification: ".concat(e.verifyMethod):""),x,e.labelStyle)):(x+=await en(f,""+(e.type?"Type: ".concat(e.type):""),x,e.labelStyle),await en(f,""+(e.docRef?"Doc Ref: ".concat(e.docRef):""),x,e.labelStyle));let v=(null!==(i=null===(l=f.node())||void 0===l?void 0:l.getBBox().width)&&void 0!==i?i:200)+20,w=(null!==(r=null===(a=f.node())||void 0===a?void 0:a.getBBox().height)&&void 0!==r?r:200)+20,b=-v/2,S=-w/2,k=o.Z.svg(f),M=B(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k.rectangle(b,S,v,w,M),C=f.insert(()=>D,":first-child");if(C.attr("class","basic label-container").attr("style",h),f.selectAll(".label").each((t,e,l)=>{let a=(0,c.Z)(l[e]),n=a.attr("transform"),i=0,r=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(i=parseFloat(t[1]),r=parseFloat(t[2]))}let s=r-w/2,o=b+10;0!==e&&1!==e||(o=i),a.attr("transform","translate(".concat(o,", ").concat(s+20,")"))}),x>s+m+20){let t=k.line(b,S+s+m+20,b+v,S+s+m+20,M);f.insert(()=>t).attr("style",h)}return g(e,C),e.intersect=function(t){return q.rect(e,t)},f}async function en(t,e,l){var a;let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(""===e)return 0;let d=t.insert("g").attr("class","label").attr("style",o),h=(0,s.nV)(),g=null===(a=h.htmlLabels)||void 0===a||a,u=await (0,i.rw)(d,(0,s.uX)((0,r.SH)(e)),{width:(0,r.Cq)(e,h)+50,classes:"markdown-node-label",useHtmlLabels:g,style:o},h);if(g){let t=u.children[0],e=(0,c.Z)(u);n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}else{for(let t of u.children[0].children)t.textContent=t.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),o&&t.setAttribute("style",o);n=u.getBBox(),n.height+=6}return d.attr("transform","translate(".concat(-n.width/2,",").concat(-n.height/2+l,")")),n.height}(0,s.eW)(t2,"tiltedCylinder"),(0,s.eW)(t1,"trapezoid"),(0,s.eW)(t5,"trapezoidalPentagon"),(0,s.eW)(t8,"triangle"),(0,s.eW)(t4,"waveEdgedRectangle"),(0,s.eW)(t3,"waveRectangle"),(0,s.eW)(t7,"windowPane"),(0,s.eW)(t9,"erBox"),(0,s.eW)(t6,"addText"),(0,s.eW)(et,"textHelper"),(0,s.eW)(ee,"addText"),(0,s.eW)(el,"classBox"),(0,s.eW)(ea,"requirementBox"),(0,s.eW)(en,"addText");var ei=(0,s.eW)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function er(t,e,l){var a,n,i;let r,s,c,{config:y}=l,{labelStyles:p,nodeStyles:f}=W(e);e.labelStyle=p||"";let x=e.width;e.width=(null!==(i=e.width)&&void 0!==i?i:200)-10;let{shapeSvg:m,bbox:v,label:w}=await d(t,e,u(e)),S=e.padding||10,k,M="";"ticket"in e&&e.ticket&&(null==y?void 0:null===(a=y.kanban)||void 0===a?void 0:a.ticketBaseUrl)&&(M=null==y?void 0:null===(n=y.kanban)||void 0===n?void 0:n.ticketBaseUrl.replace("#TICKET#",e.ticket),k=m.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",M).attr("target","_blank"));let D={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};({label:r,bbox:s}=k?await h(k,"ticket"in e&&e.ticket||"",D):await h(m,"ticket"in e&&e.ticket||"",D));let{label:C,bbox:N}=await h(m,"assigned"in e&&e.assigned||"",D);e.width=x;let A=(null==e?void 0:e.width)||0,L=Math.max(s.height,N.height)/2,R=Math.max(v.height+20,(null==e?void 0:e.height)||0)+L,P=-A/2,Z=-R/2;w.attr("transform","translate("+(S-A/2)+", "+(-L-v.height/2)+")"),r.attr("transform","translate("+(S-A/2)+", "+(-L+v.height/2)+")"),C.attr("transform","translate("+(S+A/2-N.width-20)+", "+(-L+v.height/2)+")");let{rx:T,ry:I}=e,{cssStyles:H}=e;if("handDrawn"===e.look){let t=o.Z.svg(m),l=B(e,{}),a=T||I?t.path(b(P,Z,A,R,T||0),l):t.rectangle(P,Z,A,R,l);(c=m.insert(()=>a,":first-child")).attr("class","basic label-container").attr("style",H||null)}else{(c=m.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",f).attr("rx",null!=T?T:5).attr("ry",null!=I?I:5).attr("x",P).attr("y",Z).attr("width",A).attr("height",R);let t="priority"in e&&e.priority;if(t){let e=m.append("line"),l=P+2,a=Z+Math.floor((null!=T?T:0)/2),n=Z+R-Math.floor((null!=T?T:0)/2);e.attr("x1",l).attr("y1",a).attr("x2",l).attr("y2",n).attr("stroke-width","4").attr("stroke",ei(t))}}return g(e,c),e.height=R,e.intersect=function(t){return q.rect(e,t)},m}(0,s.eW)(er,"kanbanItem");var es=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:t_},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tj},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tz},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
1subproc","framed-rectangle","subroutine"],handler:tG},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ts},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:G},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tH},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tp},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tW},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tD},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t1},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tS},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tc},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tK}
1,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:X},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tq},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tY},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tX},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tg},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tf},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Q},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:tl},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tB}
1,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t4},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tu},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t2},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tL},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ta},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:to},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t8},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t7},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:td},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t5},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:th},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tO},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tZ},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tP},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:z},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:U},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tU},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tJ},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t3},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tE},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tR}],eo=(0,s.eW)(()=>Object.fromEntries([...Object.entries({state:tF,choice:Y,note:tT,rectWithTitle:tV,labelRect:tM,iconSquare:tw,iconCircle:tm,icon:tx,iconRounded:tv,imageSquare:tb,anchor:O,kanbanItem:er,classBox:el,erBox:t9,requirementBox:ea}),...es.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ec(t){return t in eo}(0,s.eW)(ec,"isValidShape");var ed=new Map;async function eh(t,e,l){let a,n;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let i=e.shape?eo[e.shape]:void 0;if(!i)throw Error("No such shape: ".concat(e.shape,". Please check your syntax."));if(e.link){let r;"sandbox"===l.config.securityLevel?r="_top":e.linkTarget&&(r=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",null!=r?r:null),n=await i(a,e,l)}else a=n=await i(t,e,l);return e.tooltip&&n.attr("title",e.tooltip),ed.set(e.id,a),e.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}
1(0,s.eW)(eh,"insertNode");var eg=(0,s.eW)((t,e)=>{ed.set(e.id,t)},"setNodeElem"),eu=(0,s.eW)(()=>{ed.clear()},"clear"),ey=(0,s.eW)(t=>{let e=ed.get(t.id);s.cM.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let l=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+l-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),l},"positionNode")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.