@mermaid-js/tiny 11.12.0 → 11.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mermaid.tiny.js +2 -2
- package/package.json +1 -1
package/dist/mermaid.tiny.js
CHANGED
|
@@ -254,7 +254,7 @@ You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t==
|
|
|
254
254
|
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,i=e.y,s=Math.abs(n-r.x),o=e.width/2,l=r.x<t.x?o-s:o+s,u=e.height/2,h=Math.abs(t.y-r.y),f=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*o>Math.abs(n-t.x)*u){let d=r.y<t.y?t.y-u-i:i-u-t.y;l=f*d/h;let p={x:r.x<t.x?r.x+l:r.x-f+l,y:r.y<t.y?r.y+h-d:r.y-h+d};return l===0&&(p.x=t.x,p.y=t.y),f===0&&(p.x=t.x),h===0&&(p.y=t.y),B.debug(`abc89 top/bottom calc, Q ${h}, q ${d}, R ${f}, r ${l}`,p),p}else{r.x<t.x?l=t.x-o-n:l=n-o-t.x;let d=h*l/f,p=r.x<t.x?r.x+f-l:r.x-f+l,m=r.y<t.y?r.y+d:r.y-d;return B.debug(`sides calc abc89, Q ${h}, q ${d}, R ${f}, r ${l}`,{_x:p,_y:m}),l===0&&(p=t.x,m=t.y),f===0&&(p=t.x),h===0&&(m=t.y),{x:p,y:m}}},"intersection"),fU=a((e,t)=>{B.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(s=>{if(B.info("abc88 checking point",s,t),!Qbt(t,s)&&!i){let o=Zbt(t,n,s);B.debug("abc88 inside",s,n,o),B.debug("abc88 intersection",o,t);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?B.warn("abc88 no intersect",o,r):r.push(o),i=!0}else B.warn("abc88 outside",s,n),n=s,i||r.push(s)}),B.debug("returning points",r),r},"cutPathAtIntersect");a(Jbt,"extractCornerPoints");dU=a(function(e,t,r){let n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i),o=r/s;return{x:t.x-o*n,y:t.y-o*i}},"findAdjacentPoint"),tkt=a(function(e){let{cornerPointPositions:t}=Jbt(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){let i=e[n-1],s=e[n+1],o=e[n],l=dU(i,o,5),u=dU(s,o,5),h=u.x-l.x,f=u.y-l.y;r.push(l);let d=Math.sqrt(2)*2,p={x:o.x,y:o.y};if(Math.abs(s.x-i.x)>10&&Math.abs(s.y-i.y)>=10){B.debug("Corner point fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));let m=5;o.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else B.debug("Corner point skipping fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));r.push(p,u)}else r.push(e[n]);return r},"fixCorners"),ekt=a((e,t,r)=>{let n=e-t-r,i=2,s=2,o=i+s,l=Math.floor(n/o),u=Array(l).fill(`${i} ${s}`).join(" ");return`0 ${t} ${u} ${r}`},"generateDashArray"),ek=a(function(e,t,r,n,i,s,o,l=!1){let{handDrawnSeed:u}=K(),h=t.points,f=!1,d=i;var p=s;let m=[];for(let _ in t.cssCompiledStyles)N0(_)||m.push(t.cssCompiledStyles[_]);B.debug("UIO intersect check",t.points,p.x,d.x),p.intersect&&d.intersect&&!l&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),B.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],p,p.intersect(h[h.length-1])),h.push(p.intersect(h[h.length-1])));let g=btoa(JSON.stringify(h));t.toCluster&&(B.info("to cluster abc88",r.get(t.toCluster)),h=fU(t.points,r.get(t.toCluster).node),f=!0),t.fromCluster&&(B.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=fU(h.reverse(),r.get(t.fromCluster).node).reverse(),f=!0);let y=h.filter(_=>!Number.isNaN(_.y));y=tkt(y);let b=Xs;switch(b=ul,t.curve){case"linear":b=ul;break;case"basis":b=Xs;break;case"cardinal":b=Qg;break;case"bumpX":b=qg;break;case"bumpY":b=Hg;break;case"catmullRom":b=t0;break;case"monotoneX":b=e0;break;case"monotoneY":b=r0;break;case"natural":b=$f;break;case"step":b=Gf;break;case"stepAfter":b=i0;break;case"stepBefore":b=n0;break;default:b=Xs}let{x:k,y:T}=Xb(t),C=Ma().x(k).y(T).curve(b),A;switch(t.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-invisible";break;default:A="edge-thickness-normal"}switch(t.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break;default:A+=" edge-pattern-solid"}let w,D=t.curve==="rounded"?rkt(nkt(y,t),5):C(y),G=Array.isArray(t.style)?t.style:[t.style],v=G.find(_=>_?.startsWith("stroke:")),R=!1;if(t.look==="handDrawn"){let _=wt.svg(e);Object.assign([],y);let L=_.path(D,{roughness:.3,seed:u});A+=" transition",w=xt(L).select("path").attr("id",t.id).attr("class"," "+A+(t.classes?" "+t.classes:"")).attr("style",G?G.reduce((P,I)=>P+";"+I,""):"");let N=w.attr("d");w.attr("d",N),e.node().appendChild(w.node())}else{let _=m.join(";"),L=G?G.reduce((q,tt)=>q+tt+";",""):"",N="";t.animate&&(N=" edge-animation-fast"),t.animation&&(N=" edge-animation-"+t.animation);let P=(_?_+";"+L+";":L)+";"+(G?G.reduce((q,tt)=>q+";"+tt,""):"");w=e.append("path").attr("d",D).attr("id",t.id).attr("class"," "+A+(t.classes?" "+t.classes:"")+(N??"")).attr("style",P),v=P.match(/stroke:([^;]+)/)?.[1],R=t.animate===!0||!!t.animation||_.includes("animation");let I=w.node(),M=typeof I.getTotalLength=="function"?I.getTotalLength():0,V=IA[t.arrowTypeStart]||0,$=IA[t.arrowTypeEnd]||0;if(t.look==="neo"&&!R){let tt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?ekt(M,V,$):`0 ${V} ${M-V-$} ${$}`}; stroke-dashoffset: 0;`;w.attr("style",tt+w.attr("style"))}}w.attr("data-edge",!0),w.attr("data-et","edge"),w.attr("data-id",t.id),w.attr("data-points",g),t.showPoints&&y.forEach(_=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",_.x).attr("cy",_.y)});let F="";(K().flowchart.arrowMarkerAbsolute||K().state.arrowMarkerAbsolute)&&(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),B.info("arrowTypeStart",t.arrowTypeStart),B.info("arrowTypeEnd",t.arrowTypeEnd),uU(w,t,F,o,n,v);let S=Math.floor(h.length/2),O=h[S];le.isLabelCoordinateInPath(O,w.attr("d"))||(f=!0);let E={};return f&&(E.updatedPath=h),E.originalPath=t.points,E},"insertEdge");a(rkt,"generateRoundedPath");a(pU,"calculateDeltaAndAngle");a(nkt,"applyMarkerOffsetsToPoints")});var ikt,skt,akt,okt,lkt,ckt,ukt,hkt,fkt,dkt,pkt,mkt,gkt,ykt,xkt,bkt,kkt,rk,PA=x(()=>{"use strict";Vt();ikt=a((e,t,r,n)=>{t.forEach(i=>{kkt[i](e,r,n)})},"insertMarkers"),skt=a((e,t,r)=>{B.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),akt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),okt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),lkt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),ckt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),ukt=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),hkt=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),fkt=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),dkt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),pkt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),mkt=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),gkt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ykt=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),xkt=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
255
255
|
L20,10
|
|
256
256
|
M20,10
|
|
257
|
-
L0,20`)},"requirement_arrow"),bkt=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),kkt={extension:skt,composition:akt,aggregation:okt,dependency:lkt,lollipop:ckt,point:ukt,circle:hkt,cross:fkt,barb:dkt,only_one:pkt,zero_or_one:mkt,one_or_more:gkt,zero_or_more:ykt,requirement_arrow:xkt,requirement_contains:bkt},rk=ikt});async function dd(e,t,r){let n,i;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let s=t.shape?DA[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),i=await s(n,t,r)}else i=await s(e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),nk.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}var nk,gU,yU,G0,ik=x(()=>{"use strict";Vt();NA();nk=new Map;a(dd,"insertNode");gU=a((e,t)=>{nk.set(t.id,e)},"setNodeElem"),yU=a(()=>{nk.clear()},"clear"),G0=a(e=>{let t=nk.get(e.id);B.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode")});var xU,bU=x(()=>{"use strict";fn();Be();Vt();Hb();OA();PA();ik();Qt();Ce();xU={common:Rt,getConfig:Te,insertCluster:fd,insertEdge:ek,insertEdgeLabel:Jb,insertMarkers:rk,insertNode:dd,interpolateToCurve:C4,labelHelper:Bt,log:B,positionEdgeLabel:tk}});function Skt(e){return typeof e=="symbol"||on(e)&&ni(e)==Tkt}var Tkt,Ds,nh=x(()=>{"use strict";fl();Zs();Tkt="[object Symbol]";a(Skt,"isSymbol");Ds=Skt});function _kt(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var hs,ih=x(()=>{"use strict";a(_kt,"arrayMap");hs=_kt});function SU(e){if(typeof e=="string")return e;if(Jt(e))return hs(e,SU)+"";if(Ds(e))return TU?TU.call(e):"";var t=e+"";return t=="0"&&1/e==-Ckt?"-0":t}var Ckt,kU,TU,_U,CU=x(()=>{"use strict";zu();ih();Qr();nh();Ckt=1/0,kU=qn?qn.prototype:void 0,TU=kU?kU.toString:void 0;a(SU,"baseToString");_U=SU});function Ekt(e){for(var t=e.length;t--&&wkt.test(e.charAt(t)););return t}var wkt,wU,EU=x(()=>{"use strict";wkt=/\s/;a(Ekt,"trimmedEndIndex");wU=Ekt});function Akt(e){return e&&e.slice(0,wU(e)+1).replace(vkt,"")}var vkt,vU,AU=x(()=>{"use strict";EU();vkt=/^\s+/;a(Akt,"baseTrim");vU=Akt});function Ikt(e){if(typeof e=="number")return e;if(Ds(e))return LU;if(Nr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vU(e);var r=Rkt.test(e);return r||Dkt.test(e)?Nkt(e.slice(2),r?2:8):Lkt.test(e)?LU:+e}var LU,Lkt,Rkt,Dkt,Nkt,RU,DU=x(()=>{"use strict";AU();As();nh();LU=NaN,Lkt=/^[-+]0x[0-9a-f]+$/i,Rkt=/^0b[01]+$/i,Dkt=/^0o[0-7]+$/i,Nkt=parseInt;a(Ikt,"toNumber");RU=Ikt});function Okt(e){if(!e)return e===0?e:0;if(e=RU(e),e===NU||e===-NU){var t=e<0?-1:1;return t*Mkt}return e===e?e:0}var NU,Mkt,pd,BA=x(()=>{"use strict";DU();NU=1/0,Mkt=17976931348623157e292;a(Okt,"toFinite");pd=Okt});function Pkt(e){var t=pd(e),r=t%1;return t===t?r?t-r:t:0}var _o,md=x(()=>{"use strict";BA();a(Pkt,"toInteger");_o=Pkt});var Bkt,sk,IU=x(()=>{"use strict";hc();Ks();Bkt=rs(pn,"WeakMap"),sk=Bkt});function Fkt(){}var cn,FA=x(()=>{"use strict";a(Fkt,"noop");cn=Fkt});function $kt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var ak,$A=x(()=>{"use strict";a($kt,"arrayEach");ak=$kt});function Gkt(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return-1}var ok,GA=x(()=>{"use strict";a(Gkt,"baseFindIndex");ok=Gkt});function Vkt(e){return e!==e}var MU,OU=x(()=>{"use strict";a(Vkt,"baseIsNaN");MU=Vkt});function zkt(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var PU,BU=x(()=>{"use strict";a(zkt,"strictIndexOf");PU=zkt});function Wkt(e,t,r){return t===t?PU(e,t,r):ok(e,MU,r)}var gd,lk=x(()=>{"use strict";GA();OU();BU();a(Wkt,"baseIndexOf");gd=Wkt});function Ukt(e,t){var r=e==null?0:e.length;return!!r&&gd(e,t,0)>-1}var ck,VA=x(()=>{"use strict";lk();a(Ukt,"arrayIncludes");ck=Ukt});var jkt,FU,$U=x(()=>{"use strict";h4();jkt=nb(Object.keys,Object),FU=jkt});function Ykt(e){if(!po(e))return FU(e);var t=[];for(var r in Object(e))Hkt.call(e,r)&&r!="constructor"&&t.push(r);return t}var qkt,Hkt,yd,uk=x(()=>{"use strict";Jf();$U();qkt=Object.prototype,Hkt=qkt.hasOwnProperty;a(Ykt,"baseKeys");yd=Ykt});function Xkt(e){return mn(e)?lb(e):yd(e)}var cr,Co=x(()=>{"use strict";g4();uk();Js();a(Xkt,"keys");cr=Xkt});var Kkt,Qkt,Zkt,ai,GU=x(()=>{"use strict";nd();Hu();k4();Js();Jf();Co();Kkt=Object.prototype,Qkt=Kkt.hasOwnProperty,Zkt=hb(function(e,t){if(po(t)||mn(t)){ra(t,cr(t),e);return}for(var r in t)Qkt.call(t,r)&&mo(e,r,t[r])}),ai=Zkt});function eTt(e,t){if(Jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ds(e)?!0:tTt.test(e)||!Jkt.test(e)||t!=null&&e in Object(t)}var Jkt,tTt,xd,hk=x(()=>{"use strict";Qr();nh();Jkt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tTt=/^\w*$/;a(eTt,"isKey");xd=eTt});function nTt(e){var t=jf(e,function(n){return r.size===rTt&&r.clear(),n}),r=t.cache;return t}var rTt,VU,zU=x(()=>{"use strict";i4();rTt=500;a(nTt,"memoizeCapped");VU=nTt});var iTt,sTt,aTt,WU,UU=x(()=>{"use strict";zU();iTt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sTt=/\\(\\)?/g,aTt=VU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iTt,function(r,n,i,s){t.push(i?s.replace(sTt,"$1"):n||r)}),t}),WU=aTt});function oTt(e){return e==null?"":_U(e)}var fk,zA=x(()=>{"use strict";CU();a(oTt,"toString");fk=oTt});function lTt(e,t){return Jt(e)?e:xd(e,t)?[e]:WU(fk(e))}var Rc,V0=x(()=>{"use strict";Qr();hk();UU();zA();a(lTt,"castPath");Rc=lTt});function uTt(e){if(typeof e=="string"||Ds(e))return e;var t=e+"";return t=="0"&&1/e==-cTt?"-0":t}var cTt,wo,bd=x(()=>{"use strict";nh();cTt=1/0;a(uTt,"toKey");wo=uTt});function hTt(e,t){t=Rc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[wo(t[r++])];return r&&r==n?e:void 0}var Dc,z0=x(()=>{"use strict";V0();bd();a(hTt,"baseGet");Dc=hTt});function fTt(e,t,r){var n=e==null?void 0:Dc(e,t);return n===void 0?r:n}var jU,qU=x(()=>{"use strict";z0();a(fTt,"get");jU=fTt});function dTt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var kd,dk=x(()=>{"use strict";a(dTt,"arrayPush");kd=dTt});function pTt(e){return Jt(e)||Pa(e)||!!(HU&&e&&e[HU])}var HU,YU,XU=x(()=>{"use strict";zu();td();Qr();HU=qn?qn.isConcatSpreadable:void 0;a(pTt,"isFlattenable");YU=pTt});function KU(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=YU),i||(i=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?KU(l,t-1,r,n,i):kd(i,l):n||(i[i.length]=l)}return i}var Eo,Td=x(()=>{"use strict";dk();XU();a(KU,"baseFlatten");Eo=KU});function mTt(e){var t=e==null?0:e.length;return t?Eo(e,1):[]}var dr,pk=x(()=>{"use strict";Td();a(mTt,"flatten");dr=mTt});function gTt(e){return ub(cb(e,void 0,dr),e+"")}var QU,ZU=x(()=>{"use strict";pk();y4();b4();a(gTt,"flatRest");QU=gTt});function yTt(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}var mk,WA=x(()=>{"use strict";a(yTt,"baseSlice");mk=yTt});function ETt(e){return wTt.test(e)}var xTt,bTt,kTt,TTt,STt,_Tt,CTt,wTt,JU,tj=x(()=>{"use strict";xTt="\\ud800-\\udfff",bTt="\\u0300-\\u036f",kTt="\\ufe20-\\ufe2f",TTt="\\u20d0-\\u20ff",STt=bTt+kTt+TTt,_Tt="\\ufe0e\\ufe0f",CTt="\\u200d",wTt=RegExp("["+CTt+xTt+STt+_Tt+"]");a(ETt,"hasUnicode");JU=ETt});function vTt(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}var ej,rj=x(()=>{"use strict";a(vTt,"arrayReduce");ej=vTt});function ATt(e,t){return e&&ra(t,cr(t),e)}var nj,ij=x(()=>{"use strict";Hu();Co();a(ATt,"baseAssign");nj=ATt});function LTt(e,t){return e&&ra(t,ns(t),e)}var sj,aj=x(()=>{"use strict";Hu();xc();a(LTt,"baseAssignIn");sj=LTt});function RTt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}var Sd,gk=x(()=>{"use strict";a(RTt,"arrayFilter");Sd=RTt});function DTt(){return[]}var yk,UA=x(()=>{"use strict";a(DTt,"stubArray");yk=DTt});var NTt,ITt,oj,MTt,_d,xk=x(()=>{"use strict";gk();UA();NTt=Object.prototype,ITt=NTt.propertyIsEnumerable,oj=Object.getOwnPropertySymbols,MTt=oj?function(e){return e==null?[]:(e=Object(e),Sd(oj(e),function(t){return ITt.call(e,t)}))}:yk,_d=MTt});function OTt(e,t){return ra(e,_d(e),t)}var lj,cj=x(()=>{"use strict";Hu();xk();a(OTt,"copySymbols");lj=OTt});var PTt,BTt,bk,jA=x(()=>{"use strict";dk();ib();xk();UA();PTt=Object.getOwnPropertySymbols,BTt=PTt?function(e){for(var t=[];e;)kd(t,_d(e)),e=Zf(e);return t}:yk,bk=BTt});function FTt(e,t){return ra(e,bk(e),t)}var uj,hj=x(()=>{"use strict";Hu();jA();a(FTt,"copySymbolsIn");uj=FTt});function $Tt(e,t,r){var n=t(e);return Jt(e)?n:kd(n,r(e))}var kk,qA=x(()=>{"use strict";dk();Qr();a($Tt,"baseGetAllKeys");kk=$Tt});function GTt(e){return kk(e,cr,_d)}var W0,HA=x(()=>{"use strict";qA();xk();Co();a(GTt,"getAllKeys");W0=GTt});function VTt(e){return kk(e,ns,bk)}var Tk,YA=x(()=>{"use strict";qA();jA();xc();a(VTt,"getAllKeysIn");Tk=VTt});var zTt,Sk,fj=x(()=>{"use strict";hc();Ks();zTt=rs(pn,"DataView"),Sk=zTt});var WTt,_k,dj=x(()=>{"use strict";hc();Ks();WTt=rs(pn,"Promise"),_k=WTt});var UTt,Nc,XA=x(()=>{"use strict";hc();Ks();UTt=rs(pn,"Set"),Nc=UTt});var pj,jTt,mj,gj,yj,xj,qTt,HTt,YTt,XTt,KTt,sh,Ns,ah=x(()=>{"use strict";fj();K2();dj();XA();IU();fl();e4();pj="[object Map]",jTt="[object Object]",mj="[object Promise]",gj="[object Set]",yj="[object WeakMap]",xj="[object DataView]",qTt=dl(Sk),HTt=dl(pc),YTt=dl(_k),XTt=dl(Nc),KTt=dl(sk),sh=ni;(Sk&&sh(new Sk(new ArrayBuffer(1)))!=xj||pc&&sh(new pc)!=pj||_k&&sh(_k.resolve())!=mj||Nc&&sh(new Nc)!=gj||sk&&sh(new sk)!=yj)&&(sh=a(function(e){var t=ni(e),r=t==jTt?e.constructor:void 0,n=r?dl(r):"";if(n)switch(n){case qTt:return xj;case HTt:return pj;case YTt:return mj;case XTt:return gj;case KTt:return yj}return t},"getTag"));Ns=sh});function JTt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ZTt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var QTt,ZTt,bj,kj=x(()=>{"use strict";QTt=Object.prototype,ZTt=QTt.hasOwnProperty;a(JTt,"initCloneArray");bj=JTt});function tSt(e,t){var r=t?Qf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Tj,Sj=x(()=>{"use strict";tb();a(tSt,"cloneDataView");Tj=tSt});function rSt(e){var t=new e.constructor(e.source,eSt.exec(e));return t.lastIndex=e.lastIndex,t}var eSt,_j,Cj=x(()=>{"use strict";eSt=/\w*$/;a(rSt,"cloneRegExp");_j=rSt});function nSt(e){return Ej?Object(Ej.call(e)):{}}var wj,Ej,vj,Aj=x(()=>{"use strict";zu();wj=qn?qn.prototype:void 0,Ej=wj?wj.valueOf:void 0;a(nSt,"cloneSymbol");vj=nSt});function _St(e,t,r){var n=e.constructor;switch(t){case fSt:return Qf(e);case iSt:case sSt:return new n(+e);case dSt:return Tj(e,r);case pSt:case mSt:case gSt:case ySt:case xSt:case bSt:case kSt:case TSt:case SSt:return eb(e,r);case aSt:return new n;case oSt:case uSt:return new n(e);case lSt:return _j(e);case cSt:return new n;case hSt:return vj(e)}}var iSt,sSt,aSt,oSt,lSt,cSt,uSt,hSt,fSt,dSt,pSt,mSt,gSt,ySt,xSt,bSt,kSt,TSt,SSt,Lj,Rj=x(()=>{"use strict";tb();Sj();Cj();Aj();c4();iSt="[object Boolean]",sSt="[object Date]",aSt="[object Map]",oSt="[object Number]",lSt="[object RegExp]",cSt="[object Set]",uSt="[object String]",hSt="[object Symbol]",fSt="[object ArrayBuffer]",dSt="[object DataView]",pSt="[object Float32Array]",mSt="[object Float64Array]",gSt="[object Int8Array]",ySt="[object Int16Array]",xSt="[object Int32Array]",bSt="[object Uint8Array]",kSt="[object Uint8ClampedArray]",TSt="[object Uint16Array]",SSt="[object Uint32Array]";a(_St,"initCloneByTag");Lj=_St});function wSt(e){return on(e)&&Ns(e)==CSt}var CSt,Dj,Nj=x(()=>{"use strict";ah();Zs();CSt="[object Map]";a(wSt,"baseIsMap");Dj=wSt});var Ij,ESt,Mj,Oj=x(()=>{"use strict";Nj();qu();g0();Ij=ea&&ea.isMap,ESt=Ij?ta(Ij):Dj,Mj=ESt});function ASt(e){return on(e)&&Ns(e)==vSt}var vSt,Pj,Bj=x(()=>{"use strict";ah();Zs();vSt="[object Set]";a(ASt,"baseIsSet");Pj=ASt});var Fj,LSt,$j,Gj=x(()=>{"use strict";Bj();qu();g0();Fj=ea&&ea.isSet,LSt=Fj?ta(Fj):Pj,$j=LSt});function Ck(e,t,r,n,i,s){var o,l=t&RSt,u=t&DSt,h=t&NSt;if(r&&(o=i?r(e,n,i,s):r(e)),o!==void 0)return o;if(!Nr(e))return e;var f=Jt(e);if(f){if(o=bj(e),!l)return rb(e,o)}else{var d=Ns(e),p=d==zj||d==BSt;if(Ba(e))return J2(e,l);if(d==Wj||d==Vj||p&&!i){if(o=u||p?{}:sb(e),!l)return u?uj(e,sj(o,e)):lj(e,nj(o,e))}else{if(!Gr[d])return i?e:{};o=Lj(e,d,l)}}s||(s=new ho);var m=s.get(e);if(m)return m;s.set(e,o),$j(e)?e.forEach(function(b){o.add(Ck(b,t,r,b,e,s))}):Mj(e)&&e.forEach(function(b,k){o.set(k,Ck(b,t,r,k,e,s))});var g=h?u?Tk:W0:u?ns:cr,y=f?void 0:g(e);return ak(y||e,function(b,k){y&&(k=b,b=e[k]),mo(o,k,Ck(b,t,r,k,e,s))}),o}var RSt,DSt,NSt,Vj,ISt,MSt,OSt,PSt,zj,BSt,FSt,$St,Wj,GSt,VSt,zSt,WSt,USt,jSt,qSt,HSt,YSt,XSt,KSt,QSt,ZSt,JSt,t_t,e_t,Gr,wk,KA=x(()=>{"use strict";d0();$A();nd();ij();aj();o4();u4();cj();hj();HA();YA();ah();kj();Rj();f4();Qr();rd();Oj();As();Gj();Co();xc();RSt=1,DSt=2,NSt=4,Vj="[object Arguments]",ISt="[object Array]",MSt="[object Boolean]",OSt="[object Date]",PSt="[object Error]",zj="[object Function]",BSt="[object GeneratorFunction]",FSt="[object Map]",$St="[object Number]",Wj="[object Object]",GSt="[object RegExp]",VSt="[object Set]",zSt="[object String]",WSt="[object Symbol]",USt="[object WeakMap]",jSt="[object ArrayBuffer]",qSt="[object DataView]",HSt="[object Float32Array]",YSt="[object Float64Array]",XSt="[object Int8Array]",KSt="[object Int16Array]",QSt="[object Int32Array]",ZSt="[object Uint8Array]",JSt="[object Uint8ClampedArray]",t_t="[object Uint16Array]",e_t="[object Uint32Array]",Gr={};Gr[Vj]=Gr[ISt]=Gr[jSt]=Gr[qSt]=Gr[MSt]=Gr[OSt]=Gr[HSt]=Gr[YSt]=Gr[XSt]=Gr[KSt]=Gr[QSt]=Gr[FSt]=Gr[$St]=Gr[Wj]=Gr[GSt]=Gr[VSt]=Gr[zSt]=Gr[WSt]=Gr[ZSt]=Gr[JSt]=Gr[t_t]=Gr[e_t]=!0;Gr[PSt]=Gr[zj]=Gr[USt]=!1;a(Ck,"baseClone");wk=Ck});function n_t(e){return wk(e,r_t)}var r_t,Sr,QA=x(()=>{"use strict";KA();r_t=4;a(n_t,"clone");Sr=n_t});function a_t(e){return wk(e,i_t|s_t)}var i_t,s_t,ZA,Uj=x(()=>{"use strict";KA();i_t=1,s_t=4;a(a_t,"cloneDeep");ZA=a_t});function o_t(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t<r;){var s=e[t];s&&(i[n++]=s)}return i}var vo,jj=x(()=>{"use strict";a(o_t,"compact");vo=o_t});function c_t(e){return this.__data__.set(e,l_t),this}var l_t,qj,Hj=x(()=>{"use strict";l_t="__lodash_hash_undefined__";a(c_t,"setCacheAdd");qj=c_t});function u_t(e){return this.__data__.has(e)}var Yj,Xj=x(()=>{"use strict";a(u_t,"setCacheHas");Yj=u_t});function Ek(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Uu;++t<r;)this.add(e[t])}var Cd,vk=x(()=>{"use strict";Q2();Hj();Xj();a(Ek,"SetCache");Ek.prototype.add=Ek.prototype.push=qj;Ek.prototype.has=Yj;Cd=Ek});function h_t(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Ak,JA=x(()=>{"use strict";a(h_t,"arraySome");Ak=h_t});function f_t(e,t){return e.has(t)}var wd,Lk=x(()=>{"use strict";a(f_t,"cacheHas");wd=f_t});function m_t(e,t,r,n,i,s){var o=r&d_t,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var d=-1,p=!0,m=r&p_t?new Cd:void 0;for(s.set(e,t),s.set(t,e);++d<l;){var g=e[d],y=t[d];if(n)var b=o?n(y,g,d,t,e,s):n(g,y,d,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!Ak(t,function(k,T){if(!wd(m,T)&&(g===k||i(g,k,r,n,s)))return m.push(T)})){p=!1;break}}else if(!(g===y||i(g,y,r,n,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var d_t,p_t,Rk,t5=x(()=>{"use strict";vk();JA();Lk();d_t=1,p_t=2;a(m_t,"equalArrays");Rk=m_t});function g_t(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Kj,Qj=x(()=>{"use strict";a(g_t,"mapToArray");Kj=g_t});function y_t(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ed,Dk=x(()=>{"use strict";a(y_t,"setToArray");Ed=y_t});function D_t(e,t,r,n,i,s,o){switch(r){case R_t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L_t:return!(e.byteLength!=t.byteLength||!s(new Kf(e),new Kf(t)));case k_t:case T_t:case C_t:return Qs(+e,+t);case S_t:return e.name==t.name&&e.message==t.message;case w_t:case v_t:return e==t+"";case __t:var l=Kj;case E_t:var u=n&x_t;if(l||(l=Ed),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;n|=b_t,o.set(e,t);var f=Rk(l(e),l(t),n,i,s,o);return o.delete(e),f;case A_t:if(e5)return e5.call(e)==e5.call(t)}return!1}var x_t,b_t,k_t,T_t,S_t,__t,C_t,w_t,E_t,v_t,A_t,L_t,R_t,Zj,e5,Jj,tq=x(()=>{"use strict";zu();l4();Wu();t5();Qj();Dk();x_t=1,b_t=2,k_t="[object Boolean]",T_t="[object Date]",S_t="[object Error]",__t="[object Map]",C_t="[object Number]",w_t="[object RegExp]",E_t="[object Set]",v_t="[object String]",A_t="[object Symbol]",L_t="[object ArrayBuffer]",R_t="[object DataView]",Zj=qn?qn.prototype:void 0,e5=Zj?Zj.valueOf:void 0;a(D_t,"equalByTag");Jj=D_t});function O_t(e,t,r,n,i,s){var o=r&N_t,l=W0(e),u=l.length,h=W0(t),f=h.length;if(u!=f&&!o)return!1;for(var d=u;d--;){var p=l[d];if(!(o?p in t:M_t.call(t,p)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);for(var b=o;++d<u;){p=l[d];var k=e[p],T=t[p];if(n)var C=o?n(T,k,p,t,e,s):n(k,T,p,e,t,s);if(!(C===void 0?k===T||i(k,T,r,n,s):C)){y=!1;break}b||(b=p=="constructor")}if(y&&!b){var A=e.constructor,w=t.constructor;A!=w&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof w=="function"&&w instanceof w)&&(y=!1)}return s.delete(e),s.delete(t),y}var N_t,I_t,M_t,eq,rq=x(()=>{"use strict";HA();N_t=1,I_t=Object.prototype,M_t=I_t.hasOwnProperty;a(O_t,"equalObjects");eq=O_t});function F_t(e,t,r,n,i,s){var o=Jt(e),l=Jt(t),u=o?iq:Ns(e),h=l?iq:Ns(t);u=u==nq?Nk:u,h=h==nq?Nk:h;var f=u==Nk,d=h==Nk,p=u==h;if(p&&Ba(e)){if(!Ba(t))return!1;o=!0,f=!1}if(p&&!f)return s||(s=new ho),o||gc(e)?Rk(e,t,r,n,i,s):Jj(e,t,u,r,n,i,s);if(!(r&P_t)){var m=f&&sq.call(e,"__wrapped__"),g=d&&sq.call(t,"__wrapped__");if(m||g){var y=m?e.value():e,b=g?t.value():t;return s||(s=new ho),i(y,b,r,n,s)}}return p?(s||(s=new ho),eq(e,t,r,n,i,s)):!1}var P_t,nq,iq,Nk,B_t,sq,aq,oq=x(()=>{"use strict";d0();t5();tq();rq();ah();Qr();rd();y0();P_t=1,nq="[object Arguments]",iq="[object Array]",Nk="[object Object]",B_t=Object.prototype,sq=B_t.hasOwnProperty;a(F_t,"baseIsEqualDeep");aq=F_t});function lq(e,t,r,n,i){return e===t?!0:e==null||t==null||!on(e)&&!on(t)?e!==e&&t!==t:aq(e,t,r,n,lq,i)}var Ik,r5=x(()=>{"use strict";oq();Zs();a(lq,"baseIsEqual");Ik=lq});function V_t(e,t,r,n){var i=r.length,s=i,o=!n;if(e==null)return!s;for(e=Object(e);i--;){var l=r[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=r[i];var u=l[0],h=e[u],f=l[1];if(o&&l[2]){if(h===void 0&&!(u in e))return!1}else{var d=new ho;if(n)var p=n(h,f,u,e,t,d);if(!(p===void 0?Ik(f,h,$_t|G_t,n,d):p))return!1}}return!0}var $_t,G_t,cq,uq=x(()=>{"use strict";d0();r5();$_t=1,G_t=2;a(V_t,"baseIsMatch");cq=V_t});function z_t(e){return e===e&&!Nr(e)}var Mk,n5=x(()=>{"use strict";As();a(z_t,"isStrictComparable");Mk=z_t});function W_t(e){for(var t=cr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Mk(i)]}return t}var hq,fq=x(()=>{"use strict";n5();Co();a(W_t,"getMatchData");hq=W_t});function U_t(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ok,i5=x(()=>{"use strict";a(U_t,"matchesStrictComparable");Ok=U_t});function j_t(e){var t=hq(e);return t.length==1&&t[0][2]?Ok(t[0][0],t[0][1]):function(r){return r===e||cq(r,e,t)}}var dq,pq=x(()=>{"use strict";uq();fq();i5();a(j_t,"baseMatches");dq=j_t});function q_t(e,t){return e!=null&&t in Object(e)}var mq,gq=x(()=>{"use strict";a(q_t,"baseHasIn");mq=q_t});function H_t(e,t,r){t=Rc(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=wo(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&ed(i)&&yc(o,i)&&(Jt(e)||Pa(e)))}var Pk,s5=x(()=>{"use strict";V0();td();Qr();b0();ab();bd();a(H_t,"hasPath");Pk=H_t});function Y_t(e,t){return e!=null&&Pk(e,t,mq)}var Bk,a5=x(()=>{"use strict";gq();s5();a(Y_t,"hasIn");Bk=Y_t});function Q_t(e,t){return xd(e)&&Mk(t)?Ok(wo(e),t):function(r){var n=jU(r,e);return n===void 0&&n===t?Bk(r,e):Ik(t,n,X_t|K_t)}}var X_t,K_t,yq,xq=x(()=>{"use strict";r5();qU();a5();hk();n5();i5();bd();X_t=1,K_t=2;a(Q_t,"baseMatchesProperty");yq=Q_t});function Z_t(e){return function(t){return t?.[e]}}var Fk,o5=x(()=>{"use strict";a(Z_t,"baseProperty");Fk=Z_t});function J_t(e){return function(t){return Dc(t,e)}}var bq,kq=x(()=>{"use strict";z0();a(J_t,"basePropertyDeep");bq=J_t});function tCt(e){return xd(e)?Fk(wo(e)):bq(e)}var Tq,Sq=x(()=>{"use strict";o5();kq();hk();bd();a(tCt,"property");Tq=tCt});function eCt(e){return typeof e=="function"?e:e==null?Hn:typeof e=="object"?Jt(e)?yq(e[0],e[1]):dq(e):Tq(e)}var Rr,Gi=x(()=>{"use strict";pq();xq();ml();Qr();Sq();a(eCt,"baseIteratee");Rr=eCt});function rCt(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}var _q,Cq=x(()=>{"use strict";a(rCt,"arrayAggregator");_q=rCt});function nCt(e,t){return e&&Xf(e,t,cr)}var vd,$k=x(()=>{"use strict";Z2();Co();a(nCt,"baseForOwn");vd=nCt});function iCt(e,t){return function(r,n){if(r==null)return r;if(!mn(r))return e(r,n);for(var i=r.length,s=t?i:-1,o=Object(r);(t?s--:++s<i)&&n(o[s],s,o)!==!1;);return r}}var wq,Eq=x(()=>{"use strict";Js();a(iCt,"createBaseEach");wq=iCt});var sCt,fs,Ic=x(()=>{"use strict";$k();Eq();sCt=wq(vd),fs=sCt});function aCt(e,t,r,n){return fs(e,function(i,s,o){t(n,i,r(i),o)}),n}var vq,Aq=x(()=>{"use strict";Ic();a(aCt,"baseAggregator");vq=aCt});function oCt(e,t){return function(r,n){var i=Jt(r)?_q:vq,s=t?t():{};return i(r,e,Rr(n,2),s)}}var Lq,Rq=x(()=>{"use strict";Cq();Aq();Gi();Qr();a(oCt,"createAggregator");Lq=oCt});var lCt,Gk,Dq=x(()=>{"use strict";Ks();lCt=a(function(){return pn.Date.now()},"now"),Gk=lCt});var Nq,cCt,uCt,Mc,Iq=x(()=>{"use strict";id();Wu();Yu();xc();Nq=Object.prototype,cCt=Nq.hasOwnProperty,uCt=go(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&Ls(t[0],t[1],i)&&(n=1);++r<n;)for(var s=t[r],o=ns(s),l=-1,u=o.length;++l<u;){var h=o[l],f=e[h];(f===void 0||Qs(f,Nq[h])&&!cCt.call(e,h))&&(e[h]=s[h])}return e}),Mc=uCt});function hCt(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var Vk,l5=x(()=>{"use strict";a(hCt,"arrayIncludesWith");Vk=hCt});function dCt(e,t,r,n){var i=-1,s=ck,o=!0,l=e.length,u=[],h=t.length;if(!l)return u;r&&(t=hs(t,ta(r))),n?(s=Vk,o=!1):t.length>=fCt&&(s=wd,o=!1,t=new Cd(t));t:for(;++i<l;){var f=e[i],d=r==null?f:r(f);if(f=n||f!==0?f:0,o&&d===d){for(var p=h;p--;)if(t[p]===d)continue t;u.push(f)}else s(t,d,n)||u.push(f)}return u}var fCt,Mq,Oq=x(()=>{"use strict";vk();VA();l5();ih();qu();Lk();fCt=200;a(dCt,"baseDifference");Mq=dCt});var pCt,Oc,Pq=x(()=>{"use strict";Oq();Td();id();ob();pCt=go(function(e,t){return ju(e)?Mq(e,Eo(t,1,ju,!0)):[]}),Oc=pCt});function mCt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var oi,Bq=x(()=>{"use strict";a(mCt,"last");oi=mCt});function gCt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:_o(t),mk(e,t<0?0:t,n)):[]}var kn,Fq=x(()=>{"use strict";WA();md();a(gCt,"drop");kn=gCt});function yCt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:_o(t),t=n-t,mk(e,0,t<0?0:t)):[]}var Tl,$q=x(()=>{"use strict";WA();md();a(yCt,"dropRight");Tl=yCt});function xCt(e){return typeof e=="function"?e:Hn}var Ad,zk=x(()=>{"use strict";ml();a(xCt,"castFunction");Ad=xCt});function bCt(e,t){var r=Jt(e)?ak:fs;return r(e,Ad(t))}var rt,Wk=x(()=>{"use strict";$A();Ic();zk();Qr();a(bCt,"forEach");rt=bCt});var Gq=x(()=>{"use strict";Wk()});function kCt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Vq,zq=x(()=>{"use strict";a(kCt,"arrayEvery");Vq=kCt});function TCt(e,t){var r=!0;return fs(e,function(n,i,s){return r=!!t(n,i,s),r}),r}var Wq,Uq=x(()=>{"use strict";Ic();a(TCt,"baseEvery");Wq=TCt});function SCt(e,t,r){var n=Jt(e)?Vq:Wq;return r&&Ls(e,t,r)&&(t=void 0),n(e,Rr(t,3))}var ki,jq=x(()=>{"use strict";zq();Uq();Gi();Qr();Yu();a(SCt,"every");ki=SCt});function _Ct(e,t){var r=[];return fs(e,function(n,i,s){t(n,i,s)&&r.push(n)}),r}var Uk,c5=x(()=>{"use strict";Ic();a(_Ct,"baseFilter");Uk=_Ct});function CCt(e,t){var r=Jt(e)?Sd:Uk;return r(e,Rr(t,3))}var pr,u5=x(()=>{"use strict";gk();c5();Gi();Qr();a(CCt,"filter");pr=CCt});function wCt(e){return function(t,r,n){var i=Object(t);if(!mn(t)){var s=Rr(r,3);t=cr(t),r=a(function(l){return s(i[l],l,i)},"predicate")}var o=e(t,r,n);return o>-1?i[s?t[o]:o]:void 0}}var qq,Hq=x(()=>{"use strict";Gi();Js();Co();a(wCt,"createFind");qq=wCt});function vCt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:_o(r);return i<0&&(i=ECt(n+i,0)),ok(e,Rr(t,3),i)}var ECt,Yq,Xq=x(()=>{"use strict";GA();Gi();md();ECt=Math.max;a(vCt,"findIndex");Yq=vCt});var ACt,Vi,Kq=x(()=>{"use strict";Hq();Xq();ACt=qq(Yq),Vi=ACt});function LCt(e){return e&&e.length?e[0]:void 0}var Qn,Qq=x(()=>{"use strict";a(LCt,"head");Qn=LCt});var Zq=x(()=>{"use strict";Qq()});function RCt(e,t){var r=-1,n=mn(e)?Array(e.length):[];return fs(e,function(i,s,o){n[++r]=t(i,s,o)}),n}var jk,h5=x(()=>{"use strict";Ic();Js();a(RCt,"baseMap");jk=RCt});function DCt(e,t){var r=Jt(e)?hs:jk;return r(e,Rr(t,3))}var Dt,Ld=x(()=>{"use strict";ih();Gi();h5();Qr();a(DCt,"map");Dt=DCt});function NCt(e,t){return Eo(Dt(e,t),1)}var li,f5=x(()=>{"use strict";Td();Ld();a(NCt,"flatMap");li=NCt});function ICt(e,t){return e==null?e:Xf(e,Ad(t),ns)}var d5,Jq=x(()=>{"use strict";Z2();zk();xc();a(ICt,"forIn");d5=ICt});function MCt(e,t){return e&&vd(e,Ad(t))}var p5,tH=x(()=>{"use strict";$k();zk();a(MCt,"forOwn");p5=MCt});var OCt,PCt,BCt,m5,eH=x(()=>{"use strict";Yf();Rq();OCt=Object.prototype,PCt=OCt.hasOwnProperty,BCt=Lq(function(e,t,r){PCt.call(e,r)?e[r].push(t):fo(e,r,[t])}),m5=BCt});function FCt(e,t){return e>t}var rH,nH=x(()=>{"use strict";a(FCt,"baseGt");rH=FCt});function VCt(e,t){return e!=null&&GCt.call(e,t)}var $Ct,GCt,iH,sH=x(()=>{"use strict";$Ct=Object.prototype,GCt=$Ct.hasOwnProperty;a(VCt,"baseHas");iH=VCt});function zCt(e,t){return e!=null&&Pk(e,t,iH)}var te,aH=x(()=>{"use strict";sH();s5();a(zCt,"has");te=zCt});function UCt(e){return typeof e=="string"||!Jt(e)&&on(e)&&ni(e)==WCt}var WCt,Tn,qk=x(()=>{"use strict";fl();Qr();Zs();WCt="[object String]";a(UCt,"isString");Tn=UCt});function jCt(e,t){return hs(t,function(r){return e[r]})}var oH,lH=x(()=>{"use strict";ih();a(jCt,"baseValues");oH=jCt});function qCt(e){return e==null?[]:oH(e,cr(e))}var We,g5=x(()=>{"use strict";lH();Co();a(qCt,"values");We=qCt});function YCt(e,t,r,n){e=mn(e)?e:We(e),r=r&&!n?_o(r):0;var i=e.length;return r<0&&(r=HCt(i+r,0)),Tn(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&gd(e,t,r)>-1}var HCt,Jr,cH=x(()=>{"use strict";lk();Js();qk();md();g5();HCt=Math.max;a(YCt,"includes");Jr=YCt});function KCt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:_o(r);return i<0&&(i=XCt(n+i,0)),gd(e,t,i)}var XCt,Hk,uH=x(()=>{"use strict";lk();md();XCt=Math.max;a(KCt,"indexOf");Hk=KCt});function ewt(e){if(e==null)return!0;if(mn(e)&&(Jt(e)||typeof e=="string"||typeof e.splice=="function"||Ba(e)||gc(e)||Pa(e)))return!e.length;var t=Ns(e);if(t==QCt||t==ZCt)return!e.size;if(po(e))return!yd(e).length;for(var r in e)if(twt.call(e,r))return!1;return!0}var QCt,ZCt,JCt,twt,De,Yk=x(()=>{"use strict";uk();ah();td();Qr();Js();rd();Jf();y0();QCt="[object Map]",ZCt="[object Set]",JCt=Object.prototype,twt=JCt.hasOwnProperty;a(ewt,"isEmpty");De=ewt});function nwt(e){return on(e)&&ni(e)==rwt}var rwt,hH,fH=x(()=>{"use strict";fl();Zs();rwt="[object RegExp]";a(nwt,"baseIsRegExp");hH=nwt});var dH,iwt,ia,pH=x(()=>{"use strict";fH();qu();g0();dH=ea&&ea.isRegExp,iwt=dH?ta(dH):hH,ia=iwt});function swt(e){return e===void 0}var Fe,mH=x(()=>{"use strict";a(swt,"isUndefined");Fe=swt});function awt(e,t){return e<t}var Xk,y5=x(()=>{"use strict";a(awt,"baseLt");Xk=awt});function owt(e,t){var r={};return t=Rr(t,3),vd(e,function(n,i,s){fo(r,i,t(n,i,s))}),r}var oh,gH=x(()=>{"use strict";Yf();$k();Gi();a(owt,"mapValues");oh=owt});function lwt(e,t,r){for(var n=-1,i=e.length;++n<i;){var s=e[n],o=t(s);if(o!=null&&(l===void 0?o===o&&!Ds(o):r(o,l)))var l=o,u=s}return u}var Rd,Kk=x(()=>{"use strict";nh();a(lwt,"baseExtremum");Rd=lwt});function cwt(e){return e&&e.length?Rd(e,Hn,rH):void 0}var ds,yH=x(()=>{"use strict";Kk();nH();ml();a(cwt,"max");ds=cwt});function uwt(e){return e&&e.length?Rd(e,Hn,Xk):void 0}var Ga,x5=x(()=>{"use strict";Kk();y5();ml();a(uwt,"min");Ga=uwt});function hwt(e,t){return e&&e.length?Rd(e,Rr(t,2),Xk):void 0}var lh,xH=x(()=>{"use strict";Kk();Gi();y5();a(hwt,"minBy");lh=hwt});function dwt(e){if(typeof e!="function")throw new TypeError(fwt);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var fwt,bH,kH=x(()=>{"use strict";fwt="Expected a function";a(dwt,"negate");bH=dwt});function pwt(e,t,r,n){if(!Nr(e))return e;t=Rc(t,e);for(var i=-1,s=t.length,o=s-1,l=e;l!=null&&++i<s;){var u=wo(t[i]),h=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var f=l[u];h=n?n(f,u,l):void 0,h===void 0&&(h=Nr(f)?f:yc(t[i+1])?[]:{})}mo(l,u,h),l=l[u]}return e}var TH,SH=x(()=>{"use strict";nd();V0();b0();As();bd();a(pwt,"baseSet");TH=pwt});function mwt(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var o=t[n],l=Dc(e,o);r(l,o)&&TH(s,Rc(o,e),l)}return s}var Qk,b5=x(()=>{"use strict";z0();SH();V0();a(mwt,"basePickBy");Qk=mwt});function gwt(e,t){if(e==null)return{};var r=hs(Tk(e),function(n){return[n]});return t=Rr(t),Qk(e,r,function(n,i){return t(n,i[0])})}var ps,_H=x(()=>{"use strict";ih();Gi();b5();YA();a(gwt,"pickBy");ps=gwt});function ywt(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var CH,wH=x(()=>{"use strict";a(ywt,"baseSortBy");CH=ywt});function xwt(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,s=Ds(e),o=t!==void 0,l=t===null,u=t===t,h=Ds(t);if(!l&&!h&&!s&&e>t||s&&o&&u&&!l&&!h||n&&o&&u||!r&&u||!i)return 1;if(!n&&!s&&!h&&e<t||h&&r&&i&&!n&&!s||l&&r&&i||!o&&i||!u)return-1}return 0}var EH,vH=x(()=>{"use strict";nh();a(xwt,"compareAscending");EH=xwt});function bwt(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,o=i.length,l=r.length;++n<o;){var u=EH(i[n],s[n]);if(u){if(n>=l)return u;var h=r[n];return u*(h=="desc"?-1:1)}}return e.index-t.index}var AH,LH=x(()=>{"use strict";vH();a(bwt,"compareMultiple");AH=bwt});function kwt(e,t,r){t.length?t=hs(t,function(s){return Jt(s)?function(o){return Dc(o,s.length===1?s[0]:s)}:s}):t=[Hn];var n=-1;t=hs(t,ta(Rr));var i=jk(e,function(s,o,l){var u=hs(t,function(h){return h(s)});return{criteria:u,index:++n,value:s}});return CH(i,function(s,o){return AH(s,o,r)})}var RH,DH=x(()=>{"use strict";ih();z0();Gi();h5();wH();qu();LH();ml();Qr();a(kwt,"baseOrderBy");RH=kwt});var Twt,NH,IH=x(()=>{"use strict";o5();Twt=Fk("length"),NH=Twt});function Iwt(e){for(var t=MH.lastIndex=0;MH.test(e);)++t;return t}var OH,Swt,_wt,Cwt,wwt,Ewt,vwt,k5,T5,Awt,PH,BH,FH,Lwt,$H,GH,Rwt,Dwt,Nwt,MH,VH,zH=x(()=>{"use strict";OH="\\ud800-\\udfff",Swt="\\u0300-\\u036f",_wt="\\ufe20-\\ufe2f",Cwt="\\u20d0-\\u20ff",wwt=Swt+_wt+Cwt,Ewt="\\ufe0e\\ufe0f",vwt="["+OH+"]",k5="["+wwt+"]",T5="\\ud83c[\\udffb-\\udfff]",Awt="(?:"+k5+"|"+T5+")",PH="[^"+OH+"]",BH="(?:\\ud83c[\\udde6-\\uddff]){2}",FH="[\\ud800-\\udbff][\\udc00-\\udfff]",Lwt="\\u200d",$H=Awt+"?",GH="["+Ewt+"]?",Rwt="(?:"+Lwt+"(?:"+[PH,BH,FH].join("|")+")"+GH+$H+")*",Dwt=GH+$H+Rwt,Nwt="(?:"+[PH+k5+"?",k5,BH,FH,vwt].join("|")+")",MH=RegExp(T5+"(?="+T5+")|"+Nwt+Dwt,"g");a(Iwt,"unicodeSize");VH=Iwt});function Mwt(e){return JU(e)?VH(e):NH(e)}var WH,UH=x(()=>{"use strict";IH();tj();zH();a(Mwt,"stringSize");WH=Mwt});function Owt(e,t){return Qk(e,t,function(r,n){return Bk(e,n)})}var jH,qH=x(()=>{"use strict";b5();a5();a(Owt,"basePick");jH=Owt});var Pwt,ch,HH=x(()=>{"use strict";qH();ZU();Pwt=QU(function(e,t){return e==null?{}:jH(e,t)}),ch=Pwt});function $wt(e,t,r,n){for(var i=-1,s=Fwt(Bwt((t-e)/(r||1)),0),o=Array(s);s--;)o[n?s:++i]=e,e+=r;return o}var Bwt,Fwt,YH,XH=x(()=>{"use strict";Bwt=Math.ceil,Fwt=Math.max;a($wt,"baseRange");YH=$wt});function Gwt(e){return function(t,r,n){return n&&typeof n!="number"&&Ls(t,r,n)&&(r=n=void 0),t=pd(t),r===void 0?(r=t,t=0):r=pd(r),n=n===void 0?t<r?1:-1:pd(n),YH(t,r,n,e)}}var KH,QH=x(()=>{"use strict";XH();Yu();BA();a(Gwt,"createRange");KH=Gwt});var Vwt,sa,ZH=x(()=>{"use strict";QH();Vwt=KH(),sa=Vwt});function zwt(e,t,r,n,i){return i(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}var JH,tY=x(()=>{"use strict";a(zwt,"baseReduce");JH=zwt});function Wwt(e,t,r){var n=Jt(e)?ej:JH,i=arguments.length<3;return n(e,Rr(t,4),r,i,fs)}var mr,S5=x(()=>{"use strict";rj();Ic();Gi();tY();Qr();a(Wwt,"reduce");mr=Wwt});function Uwt(e,t){var r=Jt(e)?Sd:Uk;return r(e,bH(Rr(t,3)))}var Pc,eY=x(()=>{"use strict";gk();c5();Gi();Qr();kH();a(Uwt,"reject");Pc=Uwt});function Hwt(e){if(e==null)return 0;if(mn(e))return Tn(e)?WH(e):e.length;var t=Ns(e);return t==jwt||t==qwt?e.size:yd(e).length}var jwt,qwt,_5,rY=x(()=>{"use strict";uk();ah();Js();qk();UH();jwt="[object Map]",qwt="[object Set]";a(Hwt,"size");_5=Hwt});function Ywt(e,t){var r;return fs(e,function(n,i,s){return r=t(n,i,s),!r}),!!r}var nY,iY=x(()=>{"use strict";Ic();a(Ywt,"baseSome");nY=Ywt});function Xwt(e,t,r){var n=Jt(e)?Ak:nY;return r&&Ls(e,t,r)&&(t=void 0),n(e,Rr(t,3))}var U0,sY=x(()=>{"use strict";JA();Gi();iY();Qr();Yu();a(Xwt,"some");U0=Xwt});var Kwt,Ao,aY=x(()=>{"use strict";Td();DH();id();Yu();Kwt=go(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ls(e,t[0],t[1])?t=[]:r>2&&Ls(t[0],t[1],t[2])&&(t=[t[0]]),RH(e,Eo(t,1),[])}),Ao=Kwt});var Qwt,Zwt,oY,lY=x(()=>{"use strict";XA();FA();Dk();Qwt=1/0,Zwt=Nc&&1/Ed(new Nc([,-0]))[1]==Qwt?function(e){return new Nc(e)}:cn,oY=Zwt});function tEt(e,t,r){var n=-1,i=ck,s=e.length,o=!0,l=[],u=l;if(r)o=!1,i=Vk;else if(s>=Jwt){var h=t?null:oY(e);if(h)return Ed(h);o=!1,i=wd,u=new Cd}else u=t?[]:l;t:for(;++n<s;){var f=e[n],d=t?t(f):f;if(f=r||f!==0?f:0,o&&d===d){for(var p=u.length;p--;)if(u[p]===d)continue t;t&&u.push(d),l.push(f)}else i(u,d,r)||(u!==l&&u.push(d),l.push(f))}return l}var Jwt,Dd,Zk=x(()=>{"use strict";vk();VA();l5();Lk();lY();Dk();Jwt=200;a(tEt,"baseUniq");Dd=tEt});var eEt,C5,cY=x(()=>{"use strict";Td();id();Zk();ob();eEt=go(function(e){return Dd(Eo(e,1,ju,!0))}),C5=eEt});function rEt(e){return e&&e.length?Dd(e):[]}var Nd,uY=x(()=>{"use strict";Zk();a(rEt,"uniq");Nd=rEt});function nEt(e,t){return e&&e.length?Dd(e,Rr(t,2)):[]}var hY,fY=x(()=>{"use strict";Gi();Zk();a(nEt,"uniqBy");hY=nEt});function sEt(e){var t=++iEt;return fk(e)+t}var iEt,uh,dY=x(()=>{"use strict";zA();iEt=0;a(sEt,"uniqueId");uh=sEt});function aEt(e,t,r){for(var n=-1,i=e.length,s=t.length,o={};++n<i;){var l=n<s?t[n]:void 0;r(o,e[n],l)}return o}var pY,mY=x(()=>{"use strict";a(aEt,"baseZipObject");pY=aEt});function oEt(e,t){return pY(e||[],t||[],mo)}var Jk,gY=x(()=>{"use strict";nd();mY();a(oEt,"zipObject");Jk=oEt});var fe=x(()=>{"use strict";GU();QA();Uj();jj();x4();Iq();Pq();Fq();$q();Gq();jq();u5();Kq();Zq();f5();pk();Wk();Jq();tH();eH();aH();ml();cH();uH();Qr();Yk();l0();As();pH();qk();mH();Co();Bq();Ld();gH();yH();T4();x5();xH();FA();Dq();HH();_H();ZH();S5();eY();rY();sY();aY();cY();uY();dY();g5();gY();});function xY(e,t){e[t]?e[t]++:e[t]=1}function bY(e,t){--e[t]||delete e[t]}function j0(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var o=i;i=s,s=o}return i+yY+s+yY+(Fe(n)?lEt:n)}function cEt(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var o=i;i=s,s=o}var l={v:i,w:s};return n&&(l.name=n),l}function w5(e,t){return j0(e,t.v,t.w,t.name)}var lEt,hh,yY,_r,tT=x(()=>{"use strict";fe();lEt="\0",hh="\0",yY="",_r=class{static{a(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=is(void 0),this._defaultEdgeLabelFn=is(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[hh]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return vn(t)||(t=is(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return cr(this._nodes)}sources(){var t=this;return pr(this.nodes(),function(r){return De(t._in[r])})}sinks(){var t=this;return pr(this.nodes(),function(r){return De(t._out[r])})}setNodes(t,r){var n=arguments,i=this;return rt(t,function(s){n.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=hh,this._children[t]={},this._children[hh][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],rt(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),rt(cr(this._in[t]),r),delete this._in[t],delete this._preds[t],rt(cr(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Fe(r))r=hh;else{r+="";for(var n=r;!Fe(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==hh)return r}}children(t){if(Fe(t)&&(t=hh),this._isCompound){var r=this._children[t];if(r)return cr(r)}else{if(t===hh)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return cr(r)}successors(t){var r=this._sucs[t];if(r)return cr(r)}neighbors(t){var r=this.predecessors(t);if(r)return C5(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;rt(this._nodes,function(o,l){t(l)&&r.setNode(l,o)}),rt(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var i={};function s(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(i[o]=l,l):l in i?i[l]:s(l)}return a(s,"findParent"),this._isCompound&&rt(r.nodes(),function(o){r.setParent(o,s(o))}),r}setDefaultEdgeLabel(t){return vn(t)||(t=is(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return We(this._edgeObjs)}setPath(t,r){var n=this,i=arguments;return mr(t,function(s,o){return i.length>1?n.setEdge(s,o,r):n.setEdge(s,o),o}),this}setEdge(){var t,r,n,i,s=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,n=o.name,arguments.length===2&&(i=arguments[1],s=!0)):(t=o,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,r=""+r,Fe(n)||(n=""+n);var l=j0(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,l))return s&&(this._edgeLabels[l]=i),this;if(!Fe(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=s?i:this._defaultEdgeLabelFn(t,r,n);var u=cEt(this._isDirected,t,r,n);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,xY(this._preds[r],t),xY(this._sucs[t],r),this._in[r][l]=u,this._out[t][l]=u,this._edgeCount++,this}edge(t,r,n){var i=arguments.length===1?w5(this._isDirected,arguments[0]):j0(this._isDirected,t,r,n);return this._edgeLabels[i]}hasEdge(t,r,n){var i=arguments.length===1?w5(this._isDirected,arguments[0]):j0(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(t,r,n){var i=arguments.length===1?w5(this._isDirected,arguments[0]):j0(this._isDirected,t,r,n),s=this._edgeObjs[i];return s&&(t=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],bY(this._preds[r],t),bY(this._sucs[t],r),delete this._in[r][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var i=We(n);return r?pr(i,function(s){return s.v===r}):i}}outEdges(t,r){var n=this._out[t];if(n){var i=We(n);return r?pr(i,function(s){return s.w===r}):i}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};_r.prototype._nodeCount=0;_r.prototype._edgeCount=0;a(xY,"incrementOrInitEntry");a(bY,"decrementOrRemoveEntry");a(j0,"edgeArgsToId");a(cEt,"edgeArgsToObj");a(w5,"edgeObjToId")});var aa=x(()=>{"use strict";tT()});function kY(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function uEt(e,t){if(e!=="_next"&&e!=="_prev")return t}var rT,TY=x(()=>{"use strict";rT=class{static{a(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return kY(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&kY(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,n=r._prev;n!==r;)t.push(JSON.stringify(n,uEt)),n=n._prev;return"["+t.join(", ")+"]"}};a(kY,"unlink");a(uEt,"filterOutLinks")});function SY(e,t){if(e.nodeCount()<=1)return[];var r=dEt(e,t||hEt),n=fEt(r.graph,r.buckets,r.zeroIdx);return dr(Dt(n,function(i){return e.outEdges(i.v,i.w)}))}function fEt(e,t,r){for(var n=[],i=t[t.length-1],s=t[0],o;e.nodeCount();){for(;o=s.dequeue();)E5(e,t,r,o);for(;o=i.dequeue();)E5(e,t,r,o);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){n=n.concat(E5(e,t,r,o,!0));break}}}return n}function E5(e,t,r,n,i){var s=i?[]:void 0;return rt(e.inEdges(n.v),function(o){var l=e.edge(o),u=e.node(o.v);i&&s.push({v:o.v,w:o.w}),u.out-=l,v5(t,r,u)}),rt(e.outEdges(n.v),function(o){var l=e.edge(o),u=o.w,h=e.node(u);h.in-=l,v5(t,r,h)}),e.removeNode(n.v),s}function dEt(e,t){var r=new _r,n=0,i=0;rt(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),rt(e.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=t(l),f=u+h;r.setEdge(l.v,l.w,f),i=Math.max(i,r.node(l.v).out+=h),n=Math.max(n,r.node(l.w).in+=h)});var s=sa(i+n+3).map(function(){return new rT}),o=n+1;return rt(r.nodes(),function(l){v5(s,o,r.node(l))}),{graph:r,buckets:s,zeroIdx:o}}function v5(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var hEt,_Y=x(()=>{"use strict";fe();aa();TY();hEt=is(1);a(SY,"greedyFAS");a(fEt,"doGreedyFAS");a(E5,"removeNode");a(dEt,"buildState");a(v5,"assignBucket")});function CY(e){var t=e.graph().acyclicer==="greedy"?SY(e,r(e)):pEt(e);rt(t,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,uh("rev"))});function r(n){return function(i){return n.edge(i).weight}}a(r,"weightFn")}function pEt(e){var t=[],r={},n={};function i(s){Object.prototype.hasOwnProperty.call(n,s)||(n[s]=!0,r[s]=!0,rt(e.outEdges(s),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?t.push(o):i(o.w)}),delete r[s])}return a(i,"dfs"),rt(e.nodes(),i),t}function wY(e){rt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var A5=x(()=>{"use strict";fe();_Y();a(CY,"run");a(pEt,"dfsFAS");a(wY,"undo")});function Lo(e,t,r,n){var i;do i=uh(n);while(e.hasNode(i));return r.dummy=t,e.setNode(i,r),i}function vY(e){var t=new _r().setGraph(e.graph());return rt(e.nodes(),function(r){t.setNode(r,e.node(r))}),rt(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),t}function nT(e){var t=new _r({multigraph:e.isMultigraph()}).setGraph(e.graph());return rt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),rt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function L5(e,t){var r=e.x,n=e.y,i=t.x-r,s=t.y-n,o=e.width/2,l=e.height/2;if(!i&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(s)*o>Math.abs(i)*l?(s<0&&(l=-l),u=l*i/s,h=l):(i<0&&(o=-o),u=o,h=o*s/i),{x:r+u,y:n+h}}function Bc(e){var t=Dt(sa(D5(e)+1),function(){return[]});return rt(e.nodes(),function(r){var n=e.node(r),i=n.rank;Fe(i)||(t[i][n.order]=r)}),t}function AY(e){var t=Ga(Dt(e.nodes(),function(r){return e.node(r).rank}));rt(e.nodes(),function(r){var n=e.node(r);te(n,"rank")&&(n.rank-=t)})}function LY(e){var t=Ga(Dt(e.nodes(),function(s){return e.node(s).rank})),r=[];rt(e.nodes(),function(s){var o=e.node(s).rank-t;r[o]||(r[o]=[]),r[o].push(s)});var n=0,i=e.graph().nodeRankFactor;rt(r,function(s,o){Fe(s)&&o%i!==0?--n:n&&rt(s,function(l){e.node(l).rank+=n})})}function R5(e,t,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),Lo(e,"border",i,t)}function D5(e){return ds(Dt(e.nodes(),function(t){var r=e.node(t).rank;if(!Fe(r))return r}))}function RY(e,t){var r={lhs:[],rhs:[]};return rt(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function DY(e,t){var r=Gk();try{return t()}finally{console.log(e+" time: "+(Gk()-r)+"ms")}}function NY(e,t){return t()}var Ro=x(()=>{"use strict";fe();aa();a(Lo,"addDummyNode");a(vY,"simplify");a(nT,"asNonCompoundGraph");a(L5,"intersectRect");a(Bc,"buildLayerMatrix");a(AY,"normalizeRanks");a(LY,"removeEmptyRanks");a(R5,"addBorderNode");a(D5,"maxRank");a(RY,"partition");a(DY,"time");a(NY,"notime")});function MY(e){function t(r){var n=e.children(r),i=e.node(r);if(n.length&&rt(n,t),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,o=i.maxRank+1;s<o;++s)IY(e,"borderLeft","_bl",r,i,s),IY(e,"borderRight","_br",r,i,s)}}a(t,"dfs"),rt(e.children(),t)}function IY(e,t,r,n,i,s){var o={width:0,height:0,rank:s,borderType:t},l=i[t][s-1],u=Lo(e,"border",o,r);i[t][s]=u,e.setParent(u,n),l&&e.setEdge(l,u,{weight:1})}var OY=x(()=>{"use strict";fe();Ro();a(MY,"addBorderSegments");a(IY,"addBorderNode")});function BY(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&$Y(e)}function FY(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&mEt(e),(t==="lr"||t==="rl")&&(gEt(e),$Y(e))}function $Y(e){rt(e.nodes(),function(t){PY(e.node(t))}),rt(e.edges(),function(t){PY(e.edge(t))})}function PY(e){var t=e.width;e.width=e.height,e.height=t}function mEt(e){rt(e.nodes(),function(t){N5(e.node(t))}),rt(e.edges(),function(t){var r=e.edge(t);rt(r.points,N5),Object.prototype.hasOwnProperty.call(r,"y")&&N5(r)})}function N5(e){e.y=-e.y}function gEt(e){rt(e.nodes(),function(t){I5(e.node(t))}),rt(e.edges(),function(t){var r=e.edge(t);rt(r.points,I5),Object.prototype.hasOwnProperty.call(r,"x")&&I5(r)})}function I5(e){var t=e.x;e.x=e.y,e.y=t}var GY=x(()=>{"use strict";fe();a(BY,"adjust");a(FY,"undo");a($Y,"swapWidthHeight");a(PY,"swapWidthHeightOne");a(mEt,"reverseY");a(N5,"reverseYOne");a(gEt,"swapXY");a(I5,"swapXYOne")});function VY(e){e.graph().dummyChains=[],rt(e.edges(),function(t){xEt(e,t)})}function xEt(e,t){var r=t.v,n=e.node(r).rank,i=t.w,s=e.node(i).rank,o=t.name,l=e.edge(t),u=l.labelRank;if(s!==n+1){e.removeEdge(t);var h=void 0,f,d;for(d=0,++n;n<s;++d,++n)l.points=[],h={width:0,height:0,edgeLabel:l,edgeObj:t,rank:n},f=Lo(e,"edge",h,"_d"),n===u&&(h.width=l.width,h.height=l.height,h.dummy="edge-label",h.labelpos=l.labelpos),e.setEdge(r,f,{weight:l.weight},o),d===0&&e.graph().dummyChains.push(f),r=f;e.setEdge(r,i,{weight:l.weight},o)}}function zY(e){rt(e.graph().dummyChains,function(t){var r=e.node(t),n=r.edgeLabel,i;for(e.setEdge(r.edgeObj,n);r.dummy;)i=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=i,r=e.node(t)})}var M5=x(()=>{"use strict";fe();Ro();a(VY,"run");a(xEt,"normalizeEdge");a(zY,"undo")});function q0(e){var t={};function r(n){var i=e.node(n);if(Object.prototype.hasOwnProperty.call(t,n))return i.rank;t[n]=!0;var s=Ga(Dt(e.outEdges(n),function(o){return r(o.w)-e.edge(o).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),i.rank=s}a(r,"dfs"),rt(e.sources(),r)}function fh(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var iT=x(()=>{"use strict";fe();a(q0,"longestPath");a(fh,"slack")});function sT(e){var t=new _r({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var i,s;bEt(t,e)<n;)i=kEt(t,e),s=t.hasNode(i.v)?fh(e,i):-fh(e,i),TEt(t,e,s);return t}function bEt(e,t){function r(n){rt(t.nodeEdges(n),function(i){var s=i.v,o=n===s?i.w:s;!e.hasNode(o)&&!fh(t,i)&&(e.setNode(o,{}),e.setEdge(n,o,{}),r(o))})}return a(r,"dfs"),rt(e.nodes(),r),e.nodeCount()}function kEt(e,t){return lh(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return fh(t,r)})}function TEt(e,t,r){rt(e.nodes(),function(n){t.node(n).rank+=r})}var O5=x(()=>{"use strict";fe();aa();iT();a(sT,"feasibleTree");a(bEt,"tightTree");a(kEt,"findMinSlackEdge");a(TEt,"shiftRanks")});var UY=x(()=>{"use strict"});var P5=x(()=>{"use strict"});var dAe,B5=x(()=>{"use strict";fe();P5();dAe=is(1)});var jY=x(()=>{"use strict";B5()});var F5=x(()=>{"use strict"});var qY=x(()=>{"use strict";F5()});var CAe,HY=x(()=>{"use strict";fe();CAe=is(1)});function $5(e){var t={},r={},n=[];function i(s){if(Object.prototype.hasOwnProperty.call(r,s))throw new H0;Object.prototype.hasOwnProperty.call(t,s)||(r[s]=!0,t[s]=!0,rt(e.predecessors(s),i),delete r[s],n.push(s))}if(a(i,"visit"),rt(e.sinks(),i),_5(t)!==e.nodeCount())throw new H0;return n}function H0(){}var G5=x(()=>{"use strict";fe();$5.CycleException=H0;a($5,"topsort");a(H0,"CycleException");H0.prototype=new Error});var YY=x(()=>{"use strict";G5()});function aT(e,t,r){Jt(t)||(t=[t]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],s={};return rt(t,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);XY(e,o,r==="post",s,n,i)}),i}function XY(e,t,r,n,i,s){Object.prototype.hasOwnProperty.call(n,t)||(n[t]=!0,r||s.push(t),rt(i(t),function(o){XY(e,o,r,n,i,s)}),r&&s.push(t))}var V5=x(()=>{"use strict";fe();a(aT,"dfs");a(XY,"doDfs")});function z5(e,t){return aT(e,t,"post")}var KY=x(()=>{"use strict";V5();a(z5,"postorder")});function W5(e,t){return aT(e,t,"pre")}var QY=x(()=>{"use strict";V5();a(W5,"preorder")});var ZY=x(()=>{"use strict";P5();tT()});var JY=x(()=>{"use strict";UY();B5();jY();qY();HY();YY();KY();QY();ZY();F5();G5()});function $c(e){e=vY(e),q0(e);var t=sT(e);j5(t),U5(t,e);for(var r,n;r=nX(t);)n=iX(t,e,r),sX(t,e,r,n)}function U5(e,t){var r=z5(e,e.nodes());r=r.slice(0,r.length-1),rt(r,function(n){EEt(e,t,n)})}function EEt(e,t,r){var n=e.node(r),i=n.parent;e.edge(r,i).cutvalue=eX(e,t,r)}function eX(e,t,r){var n=e.node(r),i=n.parent,s=!0,o=t.edge(r,i),l=0;return o||(s=!1,o=t.edge(i,r)),l=o.weight,rt(t.nodeEdges(r),function(u){var h=u.v===r,f=h?u.w:u.v;if(f!==i){var d=h===s,p=t.edge(u).weight;if(l+=d?p:-p,AEt(e,r,f)){var m=e.edge(r,f).cutvalue;l+=d?-m:m}}}),l}function j5(e,t){arguments.length<2&&(t=e.nodes()[0]),rX(e,{},1,t)}function rX(e,t,r,n,i){var s=r,o=e.node(n);return t[n]=!0,rt(e.neighbors(n),function(l){Object.prototype.hasOwnProperty.call(t,l)||(r=rX(e,t,r,l,n))}),o.low=s,o.lim=r++,i?o.parent=i:delete o.parent,r}function nX(e){return Vi(e.edges(),function(t){return e.edge(t).cutvalue<0})}function iX(e,t,r){var n=r.v,i=r.w;t.hasEdge(n,i)||(n=r.w,i=r.v);var s=e.node(n),o=e.node(i),l=s,u=!1;s.lim>o.lim&&(l=o,u=!0);var h=pr(t.edges(),function(f){return u===tX(e,e.node(f.v),l)&&u!==tX(e,e.node(f.w),l)});return lh(h,function(f){return fh(t,f)})}function sX(e,t,r,n){var i=r.v,s=r.w;e.removeEdge(i,s),e.setEdge(n.v,n.w,{}),j5(e),U5(e,t),vEt(e,t)}function vEt(e,t){var r=Vi(e.nodes(),function(i){return!t.node(i).parent}),n=W5(e,r);n=n.slice(1),rt(n,function(i){var s=e.node(i).parent,o=t.edge(i,s),l=!1;o||(o=t.edge(s,i),l=!0),t.node(i).rank=t.node(s).rank+(l?o.minlen:-o.minlen)})}function AEt(e,t,r){return e.hasEdge(t,r)}function tX(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var aX=x(()=>{"use strict";fe();JY();Ro();O5();iT();$c.initLowLimValues=j5;$c.initCutValues=U5;$c.calcCutValue=eX;$c.leaveEdge=nX;$c.enterEdge=iX;$c.exchangeEdges=sX;a($c,"networkSimplex");a(U5,"initCutValues");a(EEt,"assignCutValue");a(eX,"calcCutValue");a(j5,"initLowLimValues");a(rX,"dfsAssignLowLim");a(nX,"leaveEdge");a(iX,"enterEdge");a(sX,"exchangeEdges");a(vEt,"updateRanks");a(AEt,"isTreeEdge");a(tX,"isDescendant")});function q5(e){switch(e.graph().ranker){case"network-simplex":oX(e);break;case"tight-tree":REt(e);break;case"longest-path":LEt(e);break;default:oX(e)}}function REt(e){q0(e),sT(e)}function oX(e){$c(e)}var LEt,H5=x(()=>{"use strict";O5();aX();iT();a(q5,"rank");LEt=q0;a(REt,"tightTreeRanker");a(oX,"networkSimplexRanker")});function lX(e){var t=Lo(e,"root",{},"_root"),r=DEt(e),n=ds(We(r))-1,i=2*n+1;e.graph().nestingRoot=t,rt(e.edges(),function(o){e.edge(o).minlen*=i});var s=NEt(e)+1;rt(e.children(),function(o){cX(e,t,i,s,n,r,o)}),e.graph().nodeRankFactor=i}function cX(e,t,r,n,i,s,o){var l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}var u=R5(e,"_bt"),h=R5(e,"_bb"),f=e.node(o);e.setParent(u,o),f.borderTop=u,e.setParent(h,o),f.borderBottom=h,rt(l,function(d){cX(e,t,r,n,i,s,d);var p=e.node(d),m=p.borderTop?p.borderTop:d,g=p.borderBottom?p.borderBottom:d,y=p.borderTop?n:2*n,b=m!==g?1:i-s[o]+1;e.setEdge(u,m,{weight:y,minlen:b,nestingEdge:!0}),e.setEdge(g,h,{weight:y,minlen:b,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,u,{weight:0,minlen:i+s[o]})}function DEt(e){var t={};function r(n,i){var s=e.children(n);s&&s.length&&rt(s,function(o){r(o,i+1)}),t[n]=i}return a(r,"dfs"),rt(e.children(),function(n){r(n,1)}),t}function NEt(e){return mr(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function uX(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,rt(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var hX=x(()=>{"use strict";fe();Ro();a(lX,"run");a(cX,"dfs");a(DEt,"treeDepths");a(NEt,"sumWeights");a(uX,"cleanup")});function fX(e,t,r){var n={},i;rt(r,function(s){for(var o=e.parent(s),l,u;o;){if(l=e.parent(o),l?(u=n[l],n[l]=o):(u=i,i=o),u&&u!==o){t.setEdge(u,o);return}o=l}})}var dX=x(()=>{"use strict";fe();a(fX,"addSubgraphConstraints")});function pX(e,t,r){var n=MEt(e),i=new _r({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(s){return e.node(s)});return rt(e.nodes(),function(s){var o=e.node(s),l=e.parent(s);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(s),i.setParent(s,l||n),rt(e[r](s),function(u){var h=u.v===s?u.w:u.v,f=i.edge(h,s),d=Fe(f)?0:f.weight;i.setEdge(h,s,{weight:e.edge(u).weight+d})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&i.setNode(s,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function MEt(e){for(var t;e.hasNode(t=uh("_root")););return t}var mX=x(()=>{"use strict";fe();aa();a(pX,"buildLayerGraph");a(MEt,"createRootNode")});function gX(e,t){for(var r=0,n=1;n<t.length;++n)r+=OEt(e,t[n-1],t[n]);return r}function OEt(e,t,r){for(var n=Jk(r,Dt(r,function(h,f){return f})),i=dr(Dt(t,function(h){return Ao(Dt(e.outEdges(h),function(f){return{pos:n[f.w],weight:e.edge(f).weight}}),"pos")})),s=1;s<r.length;)s<<=1;var o=2*s-1;s-=1;var l=Dt(new Array(o),function(){return 0}),u=0;return rt(i.forEach(function(h){var f=h.pos+s;l[f]+=h.weight;for(var d=0;f>0;)f%2&&(d+=l[f+1]),f=f-1>>1,l[f]+=h.weight;u+=h.weight*d})),u}var yX=x(()=>{"use strict";fe();a(gX,"crossCount");a(OEt,"twoLayerCrossCount")});function xX(e){var t={},r=pr(e.nodes(),function(l){return!e.children(l).length}),n=ds(Dt(r,function(l){return e.node(l).rank})),i=Dt(sa(n+1),function(){return[]});function s(l){if(!te(t,l)){t[l]=!0;var u=e.node(l);i[u.rank].push(l),rt(e.successors(l),s)}}a(s,"dfs");var o=Ao(r,function(l){return e.node(l).rank});return rt(o,s),i}var bX=x(()=>{"use strict";fe();a(xX,"initOrder")});function kX(e,t){return Dt(t,function(r){var n=e.inEdges(r);if(n.length){var i=mr(n,function(s,o){var l=e.edge(o),u=e.node(o.v);return{sum:s.sum+l.weight*u.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var TX=x(()=>{"use strict";fe();a(kX,"barycenter")});function SX(e,t){var r={};rt(e,function(i,s){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:s};Fe(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),rt(t.edges(),function(i){var s=r[i.v],o=r[i.w];!Fe(s)&&!Fe(o)&&(o.indegree++,s.out.push(r[i.w]))});var n=pr(r,function(i){return!i.indegree});return PEt(n)}function PEt(e){var t=[];function r(s){return function(o){o.merged||(Fe(o.barycenter)||Fe(s.barycenter)||o.barycenter>=s.barycenter)&&BEt(s,o)}}a(r,"handleIn");function n(s){return function(o){o.in.push(s),--o.indegree===0&&e.push(o)}}for(a(n,"handleOut");e.length;){var i=e.pop();t.push(i),rt(i.in.reverse(),r(i)),rt(i.out,n(i))}return Dt(pr(t,function(s){return!s.merged}),function(s){return ch(s,["vs","i","barycenter","weight"])})}function BEt(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var _X=x(()=>{"use strict";fe();a(SX,"resolveConflicts");a(PEt,"doResolveConflicts");a(BEt,"mergeEntries")});function wX(e,t){var r=RY(e,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),n=r.lhs,i=Ao(r.rhs,function(f){return-f.i}),s=[],o=0,l=0,u=0;n.sort(FEt(!!t)),u=CX(s,i,u),rt(n,function(f){u+=f.vs.length,s.push(f.vs),o+=f.barycenter*f.weight,l+=f.weight,u=CX(s,i,u)});var h={vs:dr(s)};return l&&(h.barycenter=o/l,h.weight=l),h}function CX(e,t,r){for(var n;t.length&&(n=oi(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function FEt(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}var EX=x(()=>{"use strict";fe();Ro();a(wX,"sort");a(CX,"consumeUnsortable");a(FEt,"compareWithBias")});function Y5(e,t,r,n){var i=e.children(t),s=e.node(t),o=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,u={};o&&(i=pr(i,function(g){return g!==o&&g!==l}));var h=kX(e,i);rt(h,function(g){if(e.children(g.v).length){var y=Y5(e,g.v,r,n);u[g.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter")&&GEt(g,y)}});var f=SX(h,r);$Et(f,u);var d=wX(f,n);if(o&&(d.vs=dr([o,d.vs,l]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+p.order+m.order)/(d.weight+2),d.weight+=2}return d}function $Et(e,t){rt(e,function(r){r.vs=dr(r.vs.map(function(n){return t[n]?t[n].vs:n}))})}function GEt(e,t){Fe(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var vX=x(()=>{"use strict";fe();TX();_X();EX();a(Y5,"sortSubgraph");a($Et,"expandSubgraphs");a(GEt,"mergeBarycenters")});function RX(e){var t=D5(e),r=AX(e,sa(1,t+1),"inEdges"),n=AX(e,sa(t-1,-1,-1),"outEdges"),i=xX(e);LX(e,i);for(var s=Number.POSITIVE_INFINITY,o,l=0,u=0;u<4;++l,++u){VEt(l%2?r:n,l%4>=2),i=Bc(e);var h=gX(e,i);h<s&&(u=0,o=ZA(i),s=h)}LX(e,o)}function AX(e,t,r){return Dt(t,function(n){return pX(e,n,r)})}function VEt(e,t){var r=new _r;rt(e,function(n){var i=n.graph().root,s=Y5(n,i,r,t);rt(s.vs,function(o,l){n.node(o).order=l}),fX(n,r,s.vs)})}function LX(e,t){rt(t,function(r){rt(r,function(n,i){e.node(n).order=i})})}var DX=x(()=>{"use strict";fe();aa();Ro();dX();mX();yX();bX();vX();a(RX,"order");a(AX,"buildLayerGraphs");a(VEt,"sweepLayerGraphs");a(LX,"assignOrder")});function NX(e){var t=WEt(e);rt(e.graph().dummyChains,function(r){for(var n=e.node(r),i=n.edgeObj,s=zEt(e,t,i.v,i.w),o=s.path,l=s.lca,u=0,h=o[u],f=!0;r!==i.w;){if(n=e.node(r),f){for(;(h=o[u])!==l&&e.node(h).maxRank<n.rank;)u++;h===l&&(f=!1)}if(!f){for(;u<o.length-1&&e.node(h=o[u+1]).minRank<=n.rank;)u++;h=o[u]}e.setParent(r,h),r=e.successors(r)[0]}})}function zEt(e,t,r,n){var i=[],s=[],o=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim),u,h;u=r;do u=e.parent(u),i.push(u);while(u&&(t[u].low>o||l>t[u].lim));for(h=u,u=n;(u=e.parent(u))!==h;)s.push(u);return{path:i.concat(s.reverse()),lca:h}}function WEt(e){var t={},r=0;function n(i){var s=r;rt(e.children(i),n),t[i]={low:s,lim:r++}}return a(n,"dfs"),rt(e.children(),n),t}var IX=x(()=>{"use strict";fe();a(NX,"parentDummyChains");a(zEt,"findPath");a(WEt,"postorder")});function UEt(e,t){var r={};function n(i,s){var o=0,l=0,u=i.length,h=oi(s);return rt(s,function(f,d){var p=qEt(e,f),m=p?e.node(p).order:u;(p||f===h)&&(rt(s.slice(l,d+1),function(g){rt(e.predecessors(g),function(y){var b=e.node(y),k=b.order;(k<o||m<k)&&!(b.dummy&&e.node(g).dummy)&&MX(r,y,g)})}),l=d+1,o=m)}),s}return a(n,"visitLayer"),mr(t,n),r}function jEt(e,t){var r={};function n(s,o,l,u,h){var f;rt(sa(o,l),function(d){f=s[d],e.node(f).dummy&&rt(e.predecessors(f),function(p){var m=e.node(p);m.dummy&&(m.order<u||m.order>h)&&MX(r,p,f)})})}a(n,"scan");function i(s,o){var l=-1,u,h=0;return rt(o,function(f,d){if(e.node(f).dummy==="border"){var p=e.predecessors(f);p.length&&(u=e.node(p[0]).order,n(o,h,d,l,u),h=d,l=u)}n(o,h,o.length,u,s.length)}),o}return a(i,"visitLayer"),mr(t,i),r}function qEt(e,t){if(e.node(t).dummy)return Vi(e.predecessors(t),function(r){return e.node(r).dummy})}function MX(e,t,r){if(t>r){var n=t;t=r,r=n}var i=e[t];i||(e[t]=i={}),i[r]=!0}function HEt(e,t,r){if(t>r){var n=t;t=r,r=n}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}function YEt(e,t,r,n){var i={},s={},o={};return rt(t,function(l){rt(l,function(u,h){i[u]=u,s[u]=u,o[u]=h})}),rt(t,function(l){var u=-1;rt(l,function(h){var f=n(h);if(f.length){f=Ao(f,function(y){return o[y]});for(var d=(f.length-1)/2,p=Math.floor(d),m=Math.ceil(d);p<=m;++p){var g=f[p];s[h]===h&&u<o[g]&&!HEt(r,h,g)&&(s[g]=h,s[h]=i[h]=i[g],u=o[g])}}})}),{root:i,align:s}}function XEt(e,t,r,n,i){var s={},o=KEt(e,t,r,i),l=i?"borderLeft":"borderRight";function u(d,p){for(var m=o.nodes(),g=m.pop(),y={};g;)y[g]?d(g):(y[g]=!0,m.push(g),m=m.concat(p(g))),g=m.pop()}a(u,"iterate");function h(d){s[d]=o.inEdges(d).reduce(function(p,m){return Math.max(p,s[m.v]+o.edge(m))},0)}a(h,"pass1");function f(d){var p=o.outEdges(d).reduce(function(g,y){return Math.min(g,s[y.w]-o.edge(y))},Number.POSITIVE_INFINITY),m=e.node(d);p!==Number.POSITIVE_INFINITY&&m.borderType!==l&&(s[d]=Math.max(s[d],p))}return a(f,"pass2"),u(h,o.predecessors.bind(o)),u(f,o.successors.bind(o)),rt(n,function(d){s[d]=s[r[d]]}),s}function KEt(e,t,r,n){var i=new _r,s=e.graph(),o=tvt(s.nodesep,s.edgesep,n);return rt(t,function(l){var u;rt(l,function(h){var f=r[h];if(i.setNode(f),u){var d=r[u],p=i.edge(d,f);i.setEdge(d,f,Math.max(o(e,h,u),p||0))}u=h})}),i}function QEt(e,t){return lh(We(t),function(r){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return d5(r,function(s,o){var l=evt(e,o)/2;n=Math.max(s+l,n),i=Math.min(s-l,i)}),n-i})}function ZEt(e,t){var r=We(t),n=Ga(r),i=ds(r);rt(["u","d"],function(s){rt(["l","r"],function(o){var l=s+o,u=e[l],h;if(u!==t){var f=We(u);h=o==="l"?n-Ga(f):i-ds(f),h&&(e[l]=oh(u,function(d){return d+h}))}})})}function JEt(e,t){return oh(e.ul,function(r,n){if(t)return e[t.toLowerCase()][n];var i=Ao(Dt(e,n));return(i[1]+i[2])/2})}function OX(e){var t=Bc(e),r=bc(UEt(e,t),jEt(e,t)),n={},i;rt(["u","d"],function(o){i=o==="u"?t:We(t).reverse(),rt(["l","r"],function(l){l==="r"&&(i=Dt(i,function(d){return We(d).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),h=YEt(e,i,r,u),f=XEt(e,i,h.root,h.align,l==="r");l==="r"&&(f=oh(f,function(d){return-d})),n[o+l]=f})});var s=QEt(e,n);return ZEt(n,s),JEt(n,e.graph().align)}function tvt(e,t,r){return function(n,i,s){var o=n.node(i),l=n.node(s),u=0,h;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":h=-o.width/2;break;case"r":h=o.width/2;break}if(h&&(u+=r?h:-h),h=0,u+=(o.dummy?t:e)/2,u+=(l.dummy?t:e)/2,u+=l.width/2,Object.prototype.hasOwnProperty.call(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":h=l.width/2;break;case"r":h=-l.width/2;break}return h&&(u+=r?h:-h),h=0,u}}function evt(e,t){return e.node(t).width}var PX=x(()=>{"use strict";fe();aa();Ro();a(UEt,"findType1Conflicts");a(jEt,"findType2Conflicts");a(qEt,"findOtherInnerSegmentNode");a(MX,"addConflict");a(HEt,"hasConflict");a(YEt,"verticalAlignment");a(XEt,"horizontalCompaction");a(KEt,"buildBlockGraph");a(QEt,"findSmallestWidthAlignment");a(ZEt,"alignCoordinates");a(JEt,"balance");a(OX,"positionX");a(tvt,"sep");a(evt,"width")});function BX(e){e=nT(e),rvt(e),p5(OX(e),function(t,r){e.node(r).x=t})}function rvt(e){var t=Bc(e),r=e.graph().ranksep,n=0;rt(t,function(i){var s=ds(Dt(i,function(o){return e.node(o).height}));rt(i,function(o){e.node(o).y=n+s/2}),n+=s+r})}var FX=x(()=>{"use strict";fe();Ro();PX();a(BX,"position");a(rvt,"positionY")});function Y0(e,t){var r=t&&t.debugTiming?DY:NY;r("layout",()=>{var n=r(" buildLayoutGraph",()=>dvt(e));r(" runLayout",()=>nvt(n,r)),r(" updateInputGraph",()=>ivt(e,n))})}function nvt(e,t){t(" makeSpaceForEdgeLabels",()=>pvt(e)),t(" removeSelfEdges",()=>_vt(e)),t(" acyclic",()=>CY(e)),t(" nestingGraph.run",()=>lX(e)),t(" rank",()=>q5(nT(e))),t(" injectEdgeLabelProxies",()=>mvt(e)),t(" removeEmptyRanks",()=>LY(e)),t(" nestingGraph.cleanup",()=>uX(e)),t(" normalizeRanks",()=>AY(e)),t(" assignRankMinMax",()=>gvt(e)),t(" removeEdgeLabelProxies",()=>yvt(e)),t(" normalize.run",()=>VY(e)),t(" parentDummyChains",()=>NX(e)),t(" addBorderSegments",()=>MY(e)),t(" order",()=>RX(e)),t(" insertSelfEdges",()=>Cvt(e)),t(" adjustCoordinateSystem",()=>BY(e)),t(" position",()=>BX(e)),t(" positionSelfEdges",()=>wvt(e)),t(" removeBorderNodes",()=>Svt(e)),t(" normalize.undo",()=>zY(e)),t(" fixupEdgeLabelCoords",()=>kvt(e)),t(" undoCoordinateSystem",()=>FY(e)),t(" translateGraph",()=>xvt(e)),t(" assignNodeIntersects",()=>bvt(e)),t(" reversePoints",()=>Tvt(e)),t(" acyclic.undo",()=>wY(e))}function ivt(e,t){rt(e.nodes(),function(r){var n=e.node(r),i=t.node(r);n&&(n.x=i.x,n.y=i.y,t.children(r).length&&(n.width=i.width,n.height=i.height))}),rt(e.edges(),function(r){var n=e.edge(r),i=t.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function dvt(e){var t=new _r({multigraph:!0,compound:!0}),r=K5(e.graph());return t.setGraph(bc({},avt,X5(r,svt),ch(r,ovt))),rt(e.nodes(),function(n){var i=K5(e.node(n));t.setNode(n,Mc(X5(i,lvt),cvt)),t.setParent(n,e.parent(n))}),rt(e.edges(),function(n){var i=K5(e.edge(n));t.setEdge(n,bc({},hvt,X5(i,uvt),ch(i,fvt)))}),t}function pvt(e){var t=e.graph();t.ranksep/=2,rt(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function mvt(e){rt(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i=e.node(t.w),s={rank:(i.rank-n.rank)/2+n.rank,e:t};Lo(e,"edge-proxy",s,"_ep")}})}function gvt(e){var t=0;rt(e.nodes(),function(r){var n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=ds(t,n.maxRank))}),e.graph().maxRank=t}function yvt(e){rt(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function xvt(e){var t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,s=e.graph(),o=s.marginx||0,l=s.marginy||0;function u(h){var f=h.x,d=h.y,p=h.width,m=h.height;t=Math.min(t,f-p/2),r=Math.max(r,f+p/2),n=Math.min(n,d-m/2),i=Math.max(i,d+m/2)}a(u,"getExtremes"),rt(e.nodes(),function(h){u(e.node(h))}),rt(e.edges(),function(h){var f=e.edge(h);Object.prototype.hasOwnProperty.call(f,"x")&&u(f)}),t-=o,n-=l,rt(e.nodes(),function(h){var f=e.node(h);f.x-=t,f.y-=n}),rt(e.edges(),function(h){var f=e.edge(h);rt(f.points,function(d){d.x-=t,d.y-=n}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=t),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=n)}),s.width=r-t+o,s.height=i-n+l}function bvt(e){rt(e.edges(),function(t){var r=e.edge(t),n=e.node(t.v),i=e.node(t.w),s,o;r.points?(s=r.points[0],o=r.points[r.points.length-1]):(r.points=[],s=i,o=n),r.points.unshift(L5(n,s)),r.points.push(L5(i,o))})}function kvt(e){rt(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Tvt(e){rt(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function Svt(e){rt(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),n=e.node(r.borderTop),i=e.node(r.borderBottom),s=e.node(oi(r.borderLeft)),o=e.node(oi(r.borderRight));r.width=Math.abs(o.x-s.x),r.height=Math.abs(i.y-n.y),r.x=s.x+r.width/2,r.y=n.y+r.height/2}}),rt(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function _vt(e){rt(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Cvt(e){var t=Bc(e);rt(t,function(r){var n=0;rt(r,function(i,s){var o=e.node(i);o.order=s+n,rt(o.selfEdges,function(l){Lo(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:s+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function wvt(e){rt(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),i=n.x+n.width/2,s=n.y,o=r.x-i,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*o/3,y:s-l},{x:i+5*o/6,y:s-l},{x:i+o,y:s},{x:i+5*o/6,y:s+l},{x:i+2*o/3,y:s+l}],r.label.x=r.x,r.label.y=r.y}})}function X5(e,t){return oh(ch(e,t),Number)}function K5(e){var t={};return rt(e,function(r,n){t[n.toLowerCase()]=r}),t}var svt,avt,ovt,lvt,cvt,uvt,hvt,fvt,$X=x(()=>{"use strict";fe();aa();OY();GY();A5();M5();H5();hX();DX();IX();FX();Ro();a(Y0,"layout");a(nvt,"runLayout");a(ivt,"updateInputGraph");svt=["nodesep","edgesep","ranksep","marginx","marginy"],avt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ovt=["acyclicer","ranker","rankdir","align"],lvt=["width","height"],cvt={width:0,height:0},uvt=["minlen","weight","width","height","labeloffset"],hvt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},fvt=["labelpos"];a(dvt,"buildLayoutGraph");a(pvt,"makeSpaceForEdgeLabels");a(mvt,"injectEdgeLabelProxies");a(gvt,"assignRankMinMax");a(yvt,"removeEdgeLabelProxies");a(xvt,"translateGraph");a(bvt,"assignNodeIntersects");a(kvt,"fixupEdgeLabelCoords");a(Tvt,"reversePointsForReversedEdges");a(Svt,"removeBorderNodes");a(_vt,"removeSelfEdges");a(Cvt,"insertSelfEdges");a(wvt,"positionSelfEdges");a(X5,"selectNumberAttrs");a(K5,"canonicalize")});var Q5=x(()=>{"use strict";A5();$X();M5();H5()});function oa(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Evt(e),edges:vvt(e)};return Fe(e.graph())||(t.value=Sr(e.graph())),t}function Evt(e){return Dt(e.nodes(),function(t){var r=e.node(t),n=e.parent(t),i={v:t};return Fe(r)||(i.value=r),Fe(n)||(i.parent=n),i})}function vvt(e){return Dt(e.edges(),function(t){var r=e.edge(t),n={v:t.v,w:t.w};return Fe(t.name)||(n.name=t.name),Fe(r)||(n.value=r),n})}var Z5=x(()=>{"use strict";fe();tT();a(oa,"write");a(Evt,"writeNodes");a(vvt,"writeEdges")});var Ue,dh,zX,WX,oT,Avt,UX,jX,Lvt,Id,VX,qX,HX,YX,XX,KX=x(()=>{"use strict";Vt();aa();Z5();Ue=new Map,dh=new Map,zX=new Map,WX=a(()=>{dh.clear(),zX.clear(),Ue.clear()},"clear"),oT=a((e,t)=>{let r=dh.get(t)||[];return B.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),Avt=a((e,t)=>{let r=dh.get(t)||[];return B.info("Descendants of ",t," is ",r),B.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||oT(e.v,t)||oT(e.w,t)||r.includes(e.w):(B.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),UX=a((e,t,r,n)=>{B.warn("Copying children of ",e,"root",n,"data",t.node(e),n);let i=t.children(e)||[];e!==n&&i.push(e),B.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(s=>{if(t.children(s).length>0)UX(s,t,r,n);else{let o=t.node(s);B.info("cp ",s," to ",n," with parent ",e),r.setNode(s,o),n!==t.parent(s)&&(B.warn("Setting parent",s,t.parent(s)),r.setParent(s,t.parent(s))),e!==n&&s!==e?(B.debug("Setting parent",s,e),r.setParent(s,e)):(B.info("In copy ",e,"root",n,"data",t.node(e),n),B.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==n,"node!==clusterId",s!==e));let l=t.edges(s);B.debug("Copying Edges",l),l.forEach(u=>{B.info("Edge",u);let h=t.edge(u.v,u.w,u.name);B.info("Edge data",h,n);try{Avt(u,n)?(B.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),B.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):B.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",e)}catch(f){B.error(f)}})}B.debug("Removing node",s),t.removeNode(s)})},"copy"),jX=a((e,t)=>{let r=t.children(e),n=[...r];for(let i of r)zX.set(i,e),n=[...n,...jX(i,t)];return n},"extractDescendants"),Lvt=a((e,t,r)=>{let n=e.edges().filter(u=>u.v===t||u.w===t),i=e.edges().filter(u=>u.v===r||u.w===r),s=n.map(u=>({v:u.v===t?r:u.v,w:u.w===t?t:u.w})),o=i.map(u=>({v:u.v,w:u.w}));return s.filter(u=>o.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),Id=a((e,t,r)=>{let n=t.children(e);if(B.trace("Searching children of id ",e,n),n.length<1)return e;let i;for(let s of n){let o=Id(s,t,r),l=Lvt(t,r,o);if(o)if(l.length>0)i=o;else return o}return i},"findNonClusterChild"),VX=a(e=>!Ue.has(e)||!Ue.get(e).externalConnections?e:Ue.has(e)?Ue.get(e).id:e,"getAnchorId"),qX=a((e,t)=>{if(!e||t>10){B.debug("Opting out, no graph ");return}else B.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(B.warn("Cluster identified",r," Replacement id in edges: ",Id(r,e,r)),dh.set(r,jX(r,e)),Ue.set(r,{id:Id(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let n=e.children(r),i=e.edges();n.length>0?(B.debug("Cluster identified",r,dh),i.forEach(s=>{let o=oT(s.v,r),l=oT(s.w,r);o^l&&(B.warn("Edge: ",s," leaves cluster ",r),B.warn("Descendants of XXX ",r,": ",dh.get(r)),Ue.get(r).externalConnections=!0)})):B.debug("Not a cluster ",r,dh)});for(let r of Ue.keys()){let n=Ue.get(r).id,i=e.parent(n);i!==r&&Ue.has(i)&&!Ue.get(i).externalConnections&&(Ue.get(r).id=i)}e.edges().forEach(function(r){let n=e.edge(r);B.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),B.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let i=r.v,s=r.w;if(B.warn("Fix XXX",Ue,"ids:",r.v,r.w,"Translating: ",Ue.get(r.v)," --- ",Ue.get(r.w)),Ue.get(r.v)||Ue.get(r.w)){if(B.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=VX(r.v),s=VX(r.w),e.removeEdge(r.v,r.w,r.name),i!==r.v){let o=e.parent(i);Ue.get(o).externalConnections=!0,n.fromCluster=r.v}if(s!==r.w){let o=e.parent(s);Ue.get(o).externalConnections=!0,n.toCluster=r.w}B.warn("Fix Replacing with XXX",i,s,r.name),e.setEdge(i,s,n,r.name)}}),B.warn("Adjusted Graph",oa(e)),HX(e,0),B.trace(Ue)},"adjustClustersAndEdges"),HX=a((e,t)=>{if(B.warn("extractor - ",t,oa(e),e.children("D")),t>10){B.error("Bailing out");return}let r=e.nodes(),n=!1;for(let i of r){let s=e.children(i);n=n||s.length>0}if(!n){B.debug("Done, no node has children",e.nodes());return}B.debug("Nodes = ",r,t);for(let i of r)if(B.debug("Extracting node",i,Ue,Ue.has(i)&&!Ue.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!Ue.has(i))B.debug("Not a cluster",i,t);else if(!Ue.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){B.warn("Cluster without external connections, without a parent and with children",i,t);let o=e.graph().rankdir==="TB"?"LR":"TB";Ue.get(i)?.clusterData?.dir&&(o=Ue.get(i).clusterData.dir,B.warn("Fixing dir",Ue.get(i).clusterData.dir,o));let l=new _r({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});B.warn("Old graph before copy",oa(e)),UX(i,e,l,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:Ue.get(i).clusterData,label:Ue.get(i).label,graph:l}),B.warn("New graph after copy node: (",i,")",oa(l)),B.debug("Old graph after copy",oa(e))}else B.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Ue.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),B.debug(Ue);r=e.nodes(),B.warn("New list of nodes",r);for(let i of r){let s=e.node(i);B.warn(" Now next level",i,s),s?.clusterNode&&HX(s.graph,t+1)}},"extractor"),YX=a((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(n=>{let i=e.children(n),s=YX(e,i);r=[...r,...s]}),r},"sorter"),XX=a(e=>YX(e,e.children()),"sortNodesByHierarchy")});var ZX={};Oe(ZX,{render:()=>Rvt});var QX,Rvt,JX=x(()=>{"use strict";Q5();Z5();aa();PA();Qt();KX();ik();Hb();OA();Vt();$0();pe();QX=a(async(e,t,r,n,i,s)=>{B.warn("Graph in recursive render:XAX",oa(t),i);let o=t.graph().rankdir;B.trace("Dir in recursive render - dir:",o);let l=e.insert("g").attr("class","root");t.nodes()?B.info("Recursive render XXX",t.nodes()):B.info("No nodes found for",t),t.edges().length>0&&B.info("Recursive edges",t.edge(t.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(y){let b=t.node(y);if(i!==void 0){let k=JSON.parse(JSON.stringify(i.clusterData));B.trace(`Setting data for parent cluster XXX
|
|
257
|
+
L0,20`)},"requirement_arrow"),bkt=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),kkt={extension:skt,composition:akt,aggregation:okt,dependency:lkt,lollipop:ckt,point:ukt,circle:hkt,cross:fkt,barb:dkt,only_one:pkt,zero_or_one:mkt,one_or_more:gkt,zero_or_more:ykt,requirement_arrow:xkt,requirement_contains:bkt},rk=ikt});async function dd(e,t,r){let n,i;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let s=t.shape?DA[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),i=await s(n,t,r)}else i=await s(e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),nk.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}var nk,gU,yU,G0,ik=x(()=>{"use strict";Vt();NA();nk=new Map;a(dd,"insertNode");gU=a((e,t)=>{nk.set(t.id,e)},"setNodeElem"),yU=a(()=>{nk.clear()},"clear"),G0=a(e=>{let t=nk.get(e.id);B.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode")});var xU,bU=x(()=>{"use strict";fn();Be();Vt();Hb();OA();PA();ik();Qt();Ce();xU={common:Rt,getConfig:Te,insertCluster:fd,insertEdge:ek,insertEdgeLabel:Jb,insertMarkers:rk,insertNode:dd,interpolateToCurve:C4,labelHelper:Bt,log:B,positionEdgeLabel:tk}});function Skt(e){return typeof e=="symbol"||on(e)&&ni(e)==Tkt}var Tkt,Ds,nh=x(()=>{"use strict";fl();Zs();Tkt="[object Symbol]";a(Skt,"isSymbol");Ds=Skt});function _kt(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var hs,ih=x(()=>{"use strict";a(_kt,"arrayMap");hs=_kt});function SU(e){if(typeof e=="string")return e;if(Jt(e))return hs(e,SU)+"";if(Ds(e))return TU?TU.call(e):"";var t=e+"";return t=="0"&&1/e==-Ckt?"-0":t}var Ckt,kU,TU,_U,CU=x(()=>{"use strict";zu();ih();Qr();nh();Ckt=1/0,kU=qn?qn.prototype:void 0,TU=kU?kU.toString:void 0;a(SU,"baseToString");_U=SU});function Ekt(e){for(var t=e.length;t--&&wkt.test(e.charAt(t)););return t}var wkt,wU,EU=x(()=>{"use strict";wkt=/\s/;a(Ekt,"trimmedEndIndex");wU=Ekt});function Akt(e){return e&&e.slice(0,wU(e)+1).replace(vkt,"")}var vkt,vU,AU=x(()=>{"use strict";EU();vkt=/^\s+/;a(Akt,"baseTrim");vU=Akt});function Ikt(e){if(typeof e=="number")return e;if(Ds(e))return LU;if(Nr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vU(e);var r=Rkt.test(e);return r||Dkt.test(e)?Nkt(e.slice(2),r?2:8):Lkt.test(e)?LU:+e}var LU,Lkt,Rkt,Dkt,Nkt,RU,DU=x(()=>{"use strict";AU();As();nh();LU=NaN,Lkt=/^[-+]0x[0-9a-f]+$/i,Rkt=/^0b[01]+$/i,Dkt=/^0o[0-7]+$/i,Nkt=parseInt;a(Ikt,"toNumber");RU=Ikt});function Okt(e){if(!e)return e===0?e:0;if(e=RU(e),e===NU||e===-NU){var t=e<0?-1:1;return t*Mkt}return e===e?e:0}var NU,Mkt,pd,BA=x(()=>{"use strict";DU();NU=1/0,Mkt=17976931348623157e292;a(Okt,"toFinite");pd=Okt});function Pkt(e){var t=pd(e),r=t%1;return t===t?r?t-r:t:0}var _o,md=x(()=>{"use strict";BA();a(Pkt,"toInteger");_o=Pkt});var Bkt,sk,IU=x(()=>{"use strict";hc();Ks();Bkt=rs(pn,"WeakMap"),sk=Bkt});function Fkt(){}var cn,FA=x(()=>{"use strict";a(Fkt,"noop");cn=Fkt});function $kt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var ak,$A=x(()=>{"use strict";a($kt,"arrayEach");ak=$kt});function Gkt(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return-1}var ok,GA=x(()=>{"use strict";a(Gkt,"baseFindIndex");ok=Gkt});function Vkt(e){return e!==e}var MU,OU=x(()=>{"use strict";a(Vkt,"baseIsNaN");MU=Vkt});function zkt(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var PU,BU=x(()=>{"use strict";a(zkt,"strictIndexOf");PU=zkt});function Wkt(e,t,r){return t===t?PU(e,t,r):ok(e,MU,r)}var gd,lk=x(()=>{"use strict";GA();OU();BU();a(Wkt,"baseIndexOf");gd=Wkt});function Ukt(e,t){var r=e==null?0:e.length;return!!r&&gd(e,t,0)>-1}var ck,VA=x(()=>{"use strict";lk();a(Ukt,"arrayIncludes");ck=Ukt});var jkt,FU,$U=x(()=>{"use strict";h4();jkt=nb(Object.keys,Object),FU=jkt});function Ykt(e){if(!po(e))return FU(e);var t=[];for(var r in Object(e))Hkt.call(e,r)&&r!="constructor"&&t.push(r);return t}var qkt,Hkt,yd,uk=x(()=>{"use strict";Jf();$U();qkt=Object.prototype,Hkt=qkt.hasOwnProperty;a(Ykt,"baseKeys");yd=Ykt});function Xkt(e){return mn(e)?lb(e):yd(e)}var cr,Co=x(()=>{"use strict";g4();uk();Js();a(Xkt,"keys");cr=Xkt});var Kkt,Qkt,Zkt,ai,GU=x(()=>{"use strict";nd();Hu();k4();Js();Jf();Co();Kkt=Object.prototype,Qkt=Kkt.hasOwnProperty,Zkt=hb(function(e,t){if(po(t)||mn(t)){ra(t,cr(t),e);return}for(var r in t)Qkt.call(t,r)&&mo(e,r,t[r])}),ai=Zkt});function eTt(e,t){if(Jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ds(e)?!0:tTt.test(e)||!Jkt.test(e)||t!=null&&e in Object(t)}var Jkt,tTt,xd,hk=x(()=>{"use strict";Qr();nh();Jkt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tTt=/^\w*$/;a(eTt,"isKey");xd=eTt});function nTt(e){var t=jf(e,function(n){return r.size===rTt&&r.clear(),n}),r=t.cache;return t}var rTt,VU,zU=x(()=>{"use strict";i4();rTt=500;a(nTt,"memoizeCapped");VU=nTt});var iTt,sTt,aTt,WU,UU=x(()=>{"use strict";zU();iTt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sTt=/\\(\\)?/g,aTt=VU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iTt,function(r,n,i,s){t.push(i?s.replace(sTt,"$1"):n||r)}),t}),WU=aTt});function oTt(e){return e==null?"":_U(e)}var fk,zA=x(()=>{"use strict";CU();a(oTt,"toString");fk=oTt});function lTt(e,t){return Jt(e)?e:xd(e,t)?[e]:WU(fk(e))}var Rc,V0=x(()=>{"use strict";Qr();hk();UU();zA();a(lTt,"castPath");Rc=lTt});function uTt(e){if(typeof e=="string"||Ds(e))return e;var t=e+"";return t=="0"&&1/e==-cTt?"-0":t}var cTt,wo,bd=x(()=>{"use strict";nh();cTt=1/0;a(uTt,"toKey");wo=uTt});function hTt(e,t){t=Rc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[wo(t[r++])];return r&&r==n?e:void 0}var Dc,z0=x(()=>{"use strict";V0();bd();a(hTt,"baseGet");Dc=hTt});function fTt(e,t,r){var n=e==null?void 0:Dc(e,t);return n===void 0?r:n}var jU,qU=x(()=>{"use strict";z0();a(fTt,"get");jU=fTt});function dTt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var kd,dk=x(()=>{"use strict";a(dTt,"arrayPush");kd=dTt});function pTt(e){return Jt(e)||Pa(e)||!!(HU&&e&&e[HU])}var HU,YU,XU=x(()=>{"use strict";zu();td();Qr();HU=qn?qn.isConcatSpreadable:void 0;a(pTt,"isFlattenable");YU=pTt});function KU(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=YU),i||(i=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?KU(l,t-1,r,n,i):kd(i,l):n||(i[i.length]=l)}return i}var Eo,Td=x(()=>{"use strict";dk();XU();a(KU,"baseFlatten");Eo=KU});function mTt(e){var t=e==null?0:e.length;return t?Eo(e,1):[]}var dr,pk=x(()=>{"use strict";Td();a(mTt,"flatten");dr=mTt});function gTt(e){return ub(cb(e,void 0,dr),e+"")}var QU,ZU=x(()=>{"use strict";pk();y4();b4();a(gTt,"flatRest");QU=gTt});function yTt(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}var mk,WA=x(()=>{"use strict";a(yTt,"baseSlice");mk=yTt});function ETt(e){return wTt.test(e)}var xTt,bTt,kTt,TTt,STt,_Tt,CTt,wTt,JU,tj=x(()=>{"use strict";xTt="\\ud800-\\udfff",bTt="\\u0300-\\u036f",kTt="\\ufe20-\\ufe2f",TTt="\\u20d0-\\u20ff",STt=bTt+kTt+TTt,_Tt="\\ufe0e\\ufe0f",CTt="\\u200d",wTt=RegExp("["+CTt+xTt+STt+_Tt+"]");a(ETt,"hasUnicode");JU=ETt});function vTt(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}var ej,rj=x(()=>{"use strict";a(vTt,"arrayReduce");ej=vTt});function ATt(e,t){return e&&ra(t,cr(t),e)}var nj,ij=x(()=>{"use strict";Hu();Co();a(ATt,"baseAssign");nj=ATt});function LTt(e,t){return e&&ra(t,ns(t),e)}var sj,aj=x(()=>{"use strict";Hu();xc();a(LTt,"baseAssignIn");sj=LTt});function RTt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}var Sd,gk=x(()=>{"use strict";a(RTt,"arrayFilter");Sd=RTt});function DTt(){return[]}var yk,UA=x(()=>{"use strict";a(DTt,"stubArray");yk=DTt});var NTt,ITt,oj,MTt,_d,xk=x(()=>{"use strict";gk();UA();NTt=Object.prototype,ITt=NTt.propertyIsEnumerable,oj=Object.getOwnPropertySymbols,MTt=oj?function(e){return e==null?[]:(e=Object(e),Sd(oj(e),function(t){return ITt.call(e,t)}))}:yk,_d=MTt});function OTt(e,t){return ra(e,_d(e),t)}var lj,cj=x(()=>{"use strict";Hu();xk();a(OTt,"copySymbols");lj=OTt});var PTt,BTt,bk,jA=x(()=>{"use strict";dk();ib();xk();UA();PTt=Object.getOwnPropertySymbols,BTt=PTt?function(e){for(var t=[];e;)kd(t,_d(e)),e=Zf(e);return t}:yk,bk=BTt});function FTt(e,t){return ra(e,bk(e),t)}var uj,hj=x(()=>{"use strict";Hu();jA();a(FTt,"copySymbolsIn");uj=FTt});function $Tt(e,t,r){var n=t(e);return Jt(e)?n:kd(n,r(e))}var kk,qA=x(()=>{"use strict";dk();Qr();a($Tt,"baseGetAllKeys");kk=$Tt});function GTt(e){return kk(e,cr,_d)}var W0,HA=x(()=>{"use strict";qA();xk();Co();a(GTt,"getAllKeys");W0=GTt});function VTt(e){return kk(e,ns,bk)}var Tk,YA=x(()=>{"use strict";qA();jA();xc();a(VTt,"getAllKeysIn");Tk=VTt});var zTt,Sk,fj=x(()=>{"use strict";hc();Ks();zTt=rs(pn,"DataView"),Sk=zTt});var WTt,_k,dj=x(()=>{"use strict";hc();Ks();WTt=rs(pn,"Promise"),_k=WTt});var UTt,Nc,XA=x(()=>{"use strict";hc();Ks();UTt=rs(pn,"Set"),Nc=UTt});var pj,jTt,mj,gj,yj,xj,qTt,HTt,YTt,XTt,KTt,sh,Ns,ah=x(()=>{"use strict";fj();K2();dj();XA();IU();fl();e4();pj="[object Map]",jTt="[object Object]",mj="[object Promise]",gj="[object Set]",yj="[object WeakMap]",xj="[object DataView]",qTt=dl(Sk),HTt=dl(pc),YTt=dl(_k),XTt=dl(Nc),KTt=dl(sk),sh=ni;(Sk&&sh(new Sk(new ArrayBuffer(1)))!=xj||pc&&sh(new pc)!=pj||_k&&sh(_k.resolve())!=mj||Nc&&sh(new Nc)!=gj||sk&&sh(new sk)!=yj)&&(sh=a(function(e){var t=ni(e),r=t==jTt?e.constructor:void 0,n=r?dl(r):"";if(n)switch(n){case qTt:return xj;case HTt:return pj;case YTt:return mj;case XTt:return gj;case KTt:return yj}return t},"getTag"));Ns=sh});function JTt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ZTt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var QTt,ZTt,bj,kj=x(()=>{"use strict";QTt=Object.prototype,ZTt=QTt.hasOwnProperty;a(JTt,"initCloneArray");bj=JTt});function tSt(e,t){var r=t?Qf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Tj,Sj=x(()=>{"use strict";tb();a(tSt,"cloneDataView");Tj=tSt});function rSt(e){var t=new e.constructor(e.source,eSt.exec(e));return t.lastIndex=e.lastIndex,t}var eSt,_j,Cj=x(()=>{"use strict";eSt=/\w*$/;a(rSt,"cloneRegExp");_j=rSt});function nSt(e){return Ej?Object(Ej.call(e)):{}}var wj,Ej,vj,Aj=x(()=>{"use strict";zu();wj=qn?qn.prototype:void 0,Ej=wj?wj.valueOf:void 0;a(nSt,"cloneSymbol");vj=nSt});function _St(e,t,r){var n=e.constructor;switch(t){case fSt:return Qf(e);case iSt:case sSt:return new n(+e);case dSt:return Tj(e,r);case pSt:case mSt:case gSt:case ySt:case xSt:case bSt:case kSt:case TSt:case SSt:return eb(e,r);case aSt:return new n;case oSt:case uSt:return new n(e);case lSt:return _j(e);case cSt:return new n;case hSt:return vj(e)}}var iSt,sSt,aSt,oSt,lSt,cSt,uSt,hSt,fSt,dSt,pSt,mSt,gSt,ySt,xSt,bSt,kSt,TSt,SSt,Lj,Rj=x(()=>{"use strict";tb();Sj();Cj();Aj();c4();iSt="[object Boolean]",sSt="[object Date]",aSt="[object Map]",oSt="[object Number]",lSt="[object RegExp]",cSt="[object Set]",uSt="[object String]",hSt="[object Symbol]",fSt="[object ArrayBuffer]",dSt="[object DataView]",pSt="[object Float32Array]",mSt="[object Float64Array]",gSt="[object Int8Array]",ySt="[object Int16Array]",xSt="[object Int32Array]",bSt="[object Uint8Array]",kSt="[object Uint8ClampedArray]",TSt="[object Uint16Array]",SSt="[object Uint32Array]";a(_St,"initCloneByTag");Lj=_St});function wSt(e){return on(e)&&Ns(e)==CSt}var CSt,Dj,Nj=x(()=>{"use strict";ah();Zs();CSt="[object Map]";a(wSt,"baseIsMap");Dj=wSt});var Ij,ESt,Mj,Oj=x(()=>{"use strict";Nj();qu();g0();Ij=ea&&ea.isMap,ESt=Ij?ta(Ij):Dj,Mj=ESt});function ASt(e){return on(e)&&Ns(e)==vSt}var vSt,Pj,Bj=x(()=>{"use strict";ah();Zs();vSt="[object Set]";a(ASt,"baseIsSet");Pj=ASt});var Fj,LSt,$j,Gj=x(()=>{"use strict";Bj();qu();g0();Fj=ea&&ea.isSet,LSt=Fj?ta(Fj):Pj,$j=LSt});function Ck(e,t,r,n,i,s){var o,l=t&RSt,u=t&DSt,h=t&NSt;if(r&&(o=i?r(e,n,i,s):r(e)),o!==void 0)return o;if(!Nr(e))return e;var f=Jt(e);if(f){if(o=bj(e),!l)return rb(e,o)}else{var d=Ns(e),p=d==zj||d==BSt;if(Ba(e))return J2(e,l);if(d==Wj||d==Vj||p&&!i){if(o=u||p?{}:sb(e),!l)return u?uj(e,sj(o,e)):lj(e,nj(o,e))}else{if(!Gr[d])return i?e:{};o=Lj(e,d,l)}}s||(s=new ho);var m=s.get(e);if(m)return m;s.set(e,o),$j(e)?e.forEach(function(b){o.add(Ck(b,t,r,b,e,s))}):Mj(e)&&e.forEach(function(b,k){o.set(k,Ck(b,t,r,k,e,s))});var g=h?u?Tk:W0:u?ns:cr,y=f?void 0:g(e);return ak(y||e,function(b,k){y&&(k=b,b=e[k]),mo(o,k,Ck(b,t,r,k,e,s))}),o}var RSt,DSt,NSt,Vj,ISt,MSt,OSt,PSt,zj,BSt,FSt,$St,Wj,GSt,VSt,zSt,WSt,USt,jSt,qSt,HSt,YSt,XSt,KSt,QSt,ZSt,JSt,t_t,e_t,Gr,wk,KA=x(()=>{"use strict";d0();$A();nd();ij();aj();o4();u4();cj();hj();HA();YA();ah();kj();Rj();f4();Qr();rd();Oj();As();Gj();Co();xc();RSt=1,DSt=2,NSt=4,Vj="[object Arguments]",ISt="[object Array]",MSt="[object Boolean]",OSt="[object Date]",PSt="[object Error]",zj="[object Function]",BSt="[object GeneratorFunction]",FSt="[object Map]",$St="[object Number]",Wj="[object Object]",GSt="[object RegExp]",VSt="[object Set]",zSt="[object String]",WSt="[object Symbol]",USt="[object WeakMap]",jSt="[object ArrayBuffer]",qSt="[object DataView]",HSt="[object Float32Array]",YSt="[object Float64Array]",XSt="[object Int8Array]",KSt="[object Int16Array]",QSt="[object Int32Array]",ZSt="[object Uint8Array]",JSt="[object Uint8ClampedArray]",t_t="[object Uint16Array]",e_t="[object Uint32Array]",Gr={};Gr[Vj]=Gr[ISt]=Gr[jSt]=Gr[qSt]=Gr[MSt]=Gr[OSt]=Gr[HSt]=Gr[YSt]=Gr[XSt]=Gr[KSt]=Gr[QSt]=Gr[FSt]=Gr[$St]=Gr[Wj]=Gr[GSt]=Gr[VSt]=Gr[zSt]=Gr[WSt]=Gr[ZSt]=Gr[JSt]=Gr[t_t]=Gr[e_t]=!0;Gr[PSt]=Gr[zj]=Gr[USt]=!1;a(Ck,"baseClone");wk=Ck});function n_t(e){return wk(e,r_t)}var r_t,Sr,QA=x(()=>{"use strict";KA();r_t=4;a(n_t,"clone");Sr=n_t});function a_t(e){return wk(e,i_t|s_t)}var i_t,s_t,ZA,Uj=x(()=>{"use strict";KA();i_t=1,s_t=4;a(a_t,"cloneDeep");ZA=a_t});function o_t(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t<r;){var s=e[t];s&&(i[n++]=s)}return i}var vo,jj=x(()=>{"use strict";a(o_t,"compact");vo=o_t});function c_t(e){return this.__data__.set(e,l_t),this}var l_t,qj,Hj=x(()=>{"use strict";l_t="__lodash_hash_undefined__";a(c_t,"setCacheAdd");qj=c_t});function u_t(e){return this.__data__.has(e)}var Yj,Xj=x(()=>{"use strict";a(u_t,"setCacheHas");Yj=u_t});function Ek(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Uu;++t<r;)this.add(e[t])}var Cd,vk=x(()=>{"use strict";Q2();Hj();Xj();a(Ek,"SetCache");Ek.prototype.add=Ek.prototype.push=qj;Ek.prototype.has=Yj;Cd=Ek});function h_t(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Ak,JA=x(()=>{"use strict";a(h_t,"arraySome");Ak=h_t});function f_t(e,t){return e.has(t)}var wd,Lk=x(()=>{"use strict";a(f_t,"cacheHas");wd=f_t});function m_t(e,t,r,n,i,s){var o=r&d_t,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var d=-1,p=!0,m=r&p_t?new Cd:void 0;for(s.set(e,t),s.set(t,e);++d<l;){var g=e[d],y=t[d];if(n)var b=o?n(y,g,d,t,e,s):n(g,y,d,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!Ak(t,function(k,T){if(!wd(m,T)&&(g===k||i(g,k,r,n,s)))return m.push(T)})){p=!1;break}}else if(!(g===y||i(g,y,r,n,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var d_t,p_t,Rk,t5=x(()=>{"use strict";vk();JA();Lk();d_t=1,p_t=2;a(m_t,"equalArrays");Rk=m_t});function g_t(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Kj,Qj=x(()=>{"use strict";a(g_t,"mapToArray");Kj=g_t});function y_t(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ed,Dk=x(()=>{"use strict";a(y_t,"setToArray");Ed=y_t});function D_t(e,t,r,n,i,s,o){switch(r){case R_t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L_t:return!(e.byteLength!=t.byteLength||!s(new Kf(e),new Kf(t)));case k_t:case T_t:case C_t:return Qs(+e,+t);case S_t:return e.name==t.name&&e.message==t.message;case w_t:case v_t:return e==t+"";case __t:var l=Kj;case E_t:var u=n&x_t;if(l||(l=Ed),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;n|=b_t,o.set(e,t);var f=Rk(l(e),l(t),n,i,s,o);return o.delete(e),f;case A_t:if(e5)return e5.call(e)==e5.call(t)}return!1}var x_t,b_t,k_t,T_t,S_t,__t,C_t,w_t,E_t,v_t,A_t,L_t,R_t,Zj,e5,Jj,tq=x(()=>{"use strict";zu();l4();Wu();t5();Qj();Dk();x_t=1,b_t=2,k_t="[object Boolean]",T_t="[object Date]",S_t="[object Error]",__t="[object Map]",C_t="[object Number]",w_t="[object RegExp]",E_t="[object Set]",v_t="[object String]",A_t="[object Symbol]",L_t="[object ArrayBuffer]",R_t="[object DataView]",Zj=qn?qn.prototype:void 0,e5=Zj?Zj.valueOf:void 0;a(D_t,"equalByTag");Jj=D_t});function O_t(e,t,r,n,i,s){var o=r&N_t,l=W0(e),u=l.length,h=W0(t),f=h.length;if(u!=f&&!o)return!1;for(var d=u;d--;){var p=l[d];if(!(o?p in t:M_t.call(t,p)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);for(var b=o;++d<u;){p=l[d];var k=e[p],T=t[p];if(n)var C=o?n(T,k,p,t,e,s):n(k,T,p,e,t,s);if(!(C===void 0?k===T||i(k,T,r,n,s):C)){y=!1;break}b||(b=p=="constructor")}if(y&&!b){var A=e.constructor,w=t.constructor;A!=w&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof w=="function"&&w instanceof w)&&(y=!1)}return s.delete(e),s.delete(t),y}var N_t,I_t,M_t,eq,rq=x(()=>{"use strict";HA();N_t=1,I_t=Object.prototype,M_t=I_t.hasOwnProperty;a(O_t,"equalObjects");eq=O_t});function F_t(e,t,r,n,i,s){var o=Jt(e),l=Jt(t),u=o?iq:Ns(e),h=l?iq:Ns(t);u=u==nq?Nk:u,h=h==nq?Nk:h;var f=u==Nk,d=h==Nk,p=u==h;if(p&&Ba(e)){if(!Ba(t))return!1;o=!0,f=!1}if(p&&!f)return s||(s=new ho),o||gc(e)?Rk(e,t,r,n,i,s):Jj(e,t,u,r,n,i,s);if(!(r&P_t)){var m=f&&sq.call(e,"__wrapped__"),g=d&&sq.call(t,"__wrapped__");if(m||g){var y=m?e.value():e,b=g?t.value():t;return s||(s=new ho),i(y,b,r,n,s)}}return p?(s||(s=new ho),eq(e,t,r,n,i,s)):!1}var P_t,nq,iq,Nk,B_t,sq,aq,oq=x(()=>{"use strict";d0();t5();tq();rq();ah();Qr();rd();y0();P_t=1,nq="[object Arguments]",iq="[object Array]",Nk="[object Object]",B_t=Object.prototype,sq=B_t.hasOwnProperty;a(F_t,"baseIsEqualDeep");aq=F_t});function lq(e,t,r,n,i){return e===t?!0:e==null||t==null||!on(e)&&!on(t)?e!==e&&t!==t:aq(e,t,r,n,lq,i)}var Ik,r5=x(()=>{"use strict";oq();Zs();a(lq,"baseIsEqual");Ik=lq});function V_t(e,t,r,n){var i=r.length,s=i,o=!n;if(e==null)return!s;for(e=Object(e);i--;){var l=r[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=r[i];var u=l[0],h=e[u],f=l[1];if(o&&l[2]){if(h===void 0&&!(u in e))return!1}else{var d=new ho;if(n)var p=n(h,f,u,e,t,d);if(!(p===void 0?Ik(f,h,$_t|G_t,n,d):p))return!1}}return!0}var $_t,G_t,cq,uq=x(()=>{"use strict";d0();r5();$_t=1,G_t=2;a(V_t,"baseIsMatch");cq=V_t});function z_t(e){return e===e&&!Nr(e)}var Mk,n5=x(()=>{"use strict";As();a(z_t,"isStrictComparable");Mk=z_t});function W_t(e){for(var t=cr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Mk(i)]}return t}var hq,fq=x(()=>{"use strict";n5();Co();a(W_t,"getMatchData");hq=W_t});function U_t(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ok,i5=x(()=>{"use strict";a(U_t,"matchesStrictComparable");Ok=U_t});function j_t(e){var t=hq(e);return t.length==1&&t[0][2]?Ok(t[0][0],t[0][1]):function(r){return r===e||cq(r,e,t)}}var dq,pq=x(()=>{"use strict";uq();fq();i5();a(j_t,"baseMatches");dq=j_t});function q_t(e,t){return e!=null&&t in Object(e)}var mq,gq=x(()=>{"use strict";a(q_t,"baseHasIn");mq=q_t});function H_t(e,t,r){t=Rc(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=wo(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&ed(i)&&yc(o,i)&&(Jt(e)||Pa(e)))}var Pk,s5=x(()=>{"use strict";V0();td();Qr();b0();ab();bd();a(H_t,"hasPath");Pk=H_t});function Y_t(e,t){return e!=null&&Pk(e,t,mq)}var Bk,a5=x(()=>{"use strict";gq();s5();a(Y_t,"hasIn");Bk=Y_t});function Q_t(e,t){return xd(e)&&Mk(t)?Ok(wo(e),t):function(r){var n=jU(r,e);return n===void 0&&n===t?Bk(r,e):Ik(t,n,X_t|K_t)}}var X_t,K_t,yq,xq=x(()=>{"use strict";r5();qU();a5();hk();n5();i5();bd();X_t=1,K_t=2;a(Q_t,"baseMatchesProperty");yq=Q_t});function Z_t(e){return function(t){return t?.[e]}}var Fk,o5=x(()=>{"use strict";a(Z_t,"baseProperty");Fk=Z_t});function J_t(e){return function(t){return Dc(t,e)}}var bq,kq=x(()=>{"use strict";z0();a(J_t,"basePropertyDeep");bq=J_t});function tCt(e){return xd(e)?Fk(wo(e)):bq(e)}var Tq,Sq=x(()=>{"use strict";o5();kq();hk();bd();a(tCt,"property");Tq=tCt});function eCt(e){return typeof e=="function"?e:e==null?Hn:typeof e=="object"?Jt(e)?yq(e[0],e[1]):dq(e):Tq(e)}var Rr,Gi=x(()=>{"use strict";pq();xq();ml();Qr();Sq();a(eCt,"baseIteratee");Rr=eCt});function rCt(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}var _q,Cq=x(()=>{"use strict";a(rCt,"arrayAggregator");_q=rCt});function nCt(e,t){return e&&Xf(e,t,cr)}var vd,$k=x(()=>{"use strict";Z2();Co();a(nCt,"baseForOwn");vd=nCt});function iCt(e,t){return function(r,n){if(r==null)return r;if(!mn(r))return e(r,n);for(var i=r.length,s=t?i:-1,o=Object(r);(t?s--:++s<i)&&n(o[s],s,o)!==!1;);return r}}var wq,Eq=x(()=>{"use strict";Js();a(iCt,"createBaseEach");wq=iCt});var sCt,fs,Ic=x(()=>{"use strict";$k();Eq();sCt=wq(vd),fs=sCt});function aCt(e,t,r,n){return fs(e,function(i,s,o){t(n,i,r(i),o)}),n}var vq,Aq=x(()=>{"use strict";Ic();a(aCt,"baseAggregator");vq=aCt});function oCt(e,t){return function(r,n){var i=Jt(r)?_q:vq,s=t?t():{};return i(r,e,Rr(n,2),s)}}var Lq,Rq=x(()=>{"use strict";Cq();Aq();Gi();Qr();a(oCt,"createAggregator");Lq=oCt});var lCt,Gk,Dq=x(()=>{"use strict";Ks();lCt=a(function(){return pn.Date.now()},"now"),Gk=lCt});var Nq,cCt,uCt,Mc,Iq=x(()=>{"use strict";id();Wu();Yu();xc();Nq=Object.prototype,cCt=Nq.hasOwnProperty,uCt=go(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&Ls(t[0],t[1],i)&&(n=1);++r<n;)for(var s=t[r],o=ns(s),l=-1,u=o.length;++l<u;){var h=o[l],f=e[h];(f===void 0||Qs(f,Nq[h])&&!cCt.call(e,h))&&(e[h]=s[h])}return e}),Mc=uCt});function hCt(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var Vk,l5=x(()=>{"use strict";a(hCt,"arrayIncludesWith");Vk=hCt});function dCt(e,t,r,n){var i=-1,s=ck,o=!0,l=e.length,u=[],h=t.length;if(!l)return u;r&&(t=hs(t,ta(r))),n?(s=Vk,o=!1):t.length>=fCt&&(s=wd,o=!1,t=new Cd(t));t:for(;++i<l;){var f=e[i],d=r==null?f:r(f);if(f=n||f!==0?f:0,o&&d===d){for(var p=h;p--;)if(t[p]===d)continue t;u.push(f)}else s(t,d,n)||u.push(f)}return u}var fCt,Mq,Oq=x(()=>{"use strict";vk();VA();l5();ih();qu();Lk();fCt=200;a(dCt,"baseDifference");Mq=dCt});var pCt,Oc,Pq=x(()=>{"use strict";Oq();Td();id();ob();pCt=go(function(e,t){return ju(e)?Mq(e,Eo(t,1,ju,!0)):[]}),Oc=pCt});function mCt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var oi,Bq=x(()=>{"use strict";a(mCt,"last");oi=mCt});function gCt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:_o(t),mk(e,t<0?0:t,n)):[]}var kn,Fq=x(()=>{"use strict";WA();md();a(gCt,"drop");kn=gCt});function yCt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:_o(t),t=n-t,mk(e,0,t<0?0:t)):[]}var Tl,$q=x(()=>{"use strict";WA();md();a(yCt,"dropRight");Tl=yCt});function xCt(e){return typeof e=="function"?e:Hn}var Ad,zk=x(()=>{"use strict";ml();a(xCt,"castFunction");Ad=xCt});function bCt(e,t){var r=Jt(e)?ak:fs;return r(e,Ad(t))}var rt,Wk=x(()=>{"use strict";$A();Ic();zk();Qr();a(bCt,"forEach");rt=bCt});var Gq=x(()=>{"use strict";Wk()});function kCt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Vq,zq=x(()=>{"use strict";a(kCt,"arrayEvery");Vq=kCt});function TCt(e,t){var r=!0;return fs(e,function(n,i,s){return r=!!t(n,i,s),r}),r}var Wq,Uq=x(()=>{"use strict";Ic();a(TCt,"baseEvery");Wq=TCt});function SCt(e,t,r){var n=Jt(e)?Vq:Wq;return r&&Ls(e,t,r)&&(t=void 0),n(e,Rr(t,3))}var ki,jq=x(()=>{"use strict";zq();Uq();Gi();Qr();Yu();a(SCt,"every");ki=SCt});function _Ct(e,t){var r=[];return fs(e,function(n,i,s){t(n,i,s)&&r.push(n)}),r}var Uk,c5=x(()=>{"use strict";Ic();a(_Ct,"baseFilter");Uk=_Ct});function CCt(e,t){var r=Jt(e)?Sd:Uk;return r(e,Rr(t,3))}var pr,u5=x(()=>{"use strict";gk();c5();Gi();Qr();a(CCt,"filter");pr=CCt});function wCt(e){return function(t,r,n){var i=Object(t);if(!mn(t)){var s=Rr(r,3);t=cr(t),r=a(function(l){return s(i[l],l,i)},"predicate")}var o=e(t,r,n);return o>-1?i[s?t[o]:o]:void 0}}var qq,Hq=x(()=>{"use strict";Gi();Js();Co();a(wCt,"createFind");qq=wCt});function vCt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:_o(r);return i<0&&(i=ECt(n+i,0)),ok(e,Rr(t,3),i)}var ECt,Yq,Xq=x(()=>{"use strict";GA();Gi();md();ECt=Math.max;a(vCt,"findIndex");Yq=vCt});var ACt,Vi,Kq=x(()=>{"use strict";Hq();Xq();ACt=qq(Yq),Vi=ACt});function LCt(e){return e&&e.length?e[0]:void 0}var Qn,Qq=x(()=>{"use strict";a(LCt,"head");Qn=LCt});var Zq=x(()=>{"use strict";Qq()});function RCt(e,t){var r=-1,n=mn(e)?Array(e.length):[];return fs(e,function(i,s,o){n[++r]=t(i,s,o)}),n}var jk,h5=x(()=>{"use strict";Ic();Js();a(RCt,"baseMap");jk=RCt});function DCt(e,t){var r=Jt(e)?hs:jk;return r(e,Rr(t,3))}var Dt,Ld=x(()=>{"use strict";ih();Gi();h5();Qr();a(DCt,"map");Dt=DCt});function NCt(e,t){return Eo(Dt(e,t),1)}var li,f5=x(()=>{"use strict";Td();Ld();a(NCt,"flatMap");li=NCt});function ICt(e,t){return e==null?e:Xf(e,Ad(t),ns)}var d5,Jq=x(()=>{"use strict";Z2();zk();xc();a(ICt,"forIn");d5=ICt});function MCt(e,t){return e&&vd(e,Ad(t))}var p5,tH=x(()=>{"use strict";$k();zk();a(MCt,"forOwn");p5=MCt});var OCt,PCt,BCt,m5,eH=x(()=>{"use strict";Yf();Rq();OCt=Object.prototype,PCt=OCt.hasOwnProperty,BCt=Lq(function(e,t,r){PCt.call(e,r)?e[r].push(t):fo(e,r,[t])}),m5=BCt});function FCt(e,t){return e>t}var rH,nH=x(()=>{"use strict";a(FCt,"baseGt");rH=FCt});function VCt(e,t){return e!=null&&GCt.call(e,t)}var $Ct,GCt,iH,sH=x(()=>{"use strict";$Ct=Object.prototype,GCt=$Ct.hasOwnProperty;a(VCt,"baseHas");iH=VCt});function zCt(e,t){return e!=null&&Pk(e,t,iH)}var te,aH=x(()=>{"use strict";sH();s5();a(zCt,"has");te=zCt});function UCt(e){return typeof e=="string"||!Jt(e)&&on(e)&&ni(e)==WCt}var WCt,Tn,qk=x(()=>{"use strict";fl();Qr();Zs();WCt="[object String]";a(UCt,"isString");Tn=UCt});function jCt(e,t){return hs(t,function(r){return e[r]})}var oH,lH=x(()=>{"use strict";ih();a(jCt,"baseValues");oH=jCt});function qCt(e){return e==null?[]:oH(e,cr(e))}var We,g5=x(()=>{"use strict";lH();Co();a(qCt,"values");We=qCt});function YCt(e,t,r,n){e=mn(e)?e:We(e),r=r&&!n?_o(r):0;var i=e.length;return r<0&&(r=HCt(i+r,0)),Tn(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&gd(e,t,r)>-1}var HCt,Jr,cH=x(()=>{"use strict";lk();Js();qk();md();g5();HCt=Math.max;a(YCt,"includes");Jr=YCt});function KCt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:_o(r);return i<0&&(i=XCt(n+i,0)),gd(e,t,i)}var XCt,Hk,uH=x(()=>{"use strict";lk();md();XCt=Math.max;a(KCt,"indexOf");Hk=KCt});function ewt(e){if(e==null)return!0;if(mn(e)&&(Jt(e)||typeof e=="string"||typeof e.splice=="function"||Ba(e)||gc(e)||Pa(e)))return!e.length;var t=Ns(e);if(t==QCt||t==ZCt)return!e.size;if(po(e))return!yd(e).length;for(var r in e)if(twt.call(e,r))return!1;return!0}var QCt,ZCt,JCt,twt,De,Yk=x(()=>{"use strict";uk();ah();td();Qr();Js();rd();Jf();y0();QCt="[object Map]",ZCt="[object Set]",JCt=Object.prototype,twt=JCt.hasOwnProperty;a(ewt,"isEmpty");De=ewt});function nwt(e){return on(e)&&ni(e)==rwt}var rwt,hH,fH=x(()=>{"use strict";fl();Zs();rwt="[object RegExp]";a(nwt,"baseIsRegExp");hH=nwt});var dH,iwt,ia,pH=x(()=>{"use strict";fH();qu();g0();dH=ea&&ea.isRegExp,iwt=dH?ta(dH):hH,ia=iwt});function swt(e){return e===void 0}var Fe,mH=x(()=>{"use strict";a(swt,"isUndefined");Fe=swt});function awt(e,t){return e<t}var Xk,y5=x(()=>{"use strict";a(awt,"baseLt");Xk=awt});function owt(e,t){var r={};return t=Rr(t,3),vd(e,function(n,i,s){fo(r,i,t(n,i,s))}),r}var oh,gH=x(()=>{"use strict";Yf();$k();Gi();a(owt,"mapValues");oh=owt});function lwt(e,t,r){for(var n=-1,i=e.length;++n<i;){var s=e[n],o=t(s);if(o!=null&&(l===void 0?o===o&&!Ds(o):r(o,l)))var l=o,u=s}return u}var Rd,Kk=x(()=>{"use strict";nh();a(lwt,"baseExtremum");Rd=lwt});function cwt(e){return e&&e.length?Rd(e,Hn,rH):void 0}var ds,yH=x(()=>{"use strict";Kk();nH();ml();a(cwt,"max");ds=cwt});function uwt(e){return e&&e.length?Rd(e,Hn,Xk):void 0}var Ga,x5=x(()=>{"use strict";Kk();y5();ml();a(uwt,"min");Ga=uwt});function hwt(e,t){return e&&e.length?Rd(e,Rr(t,2),Xk):void 0}var lh,xH=x(()=>{"use strict";Kk();Gi();y5();a(hwt,"minBy");lh=hwt});function dwt(e){if(typeof e!="function")throw new TypeError(fwt);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var fwt,bH,kH=x(()=>{"use strict";fwt="Expected a function";a(dwt,"negate");bH=dwt});function pwt(e,t,r,n){if(!Nr(e))return e;t=Rc(t,e);for(var i=-1,s=t.length,o=s-1,l=e;l!=null&&++i<s;){var u=wo(t[i]),h=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var f=l[u];h=n?n(f,u,l):void 0,h===void 0&&(h=Nr(f)?f:yc(t[i+1])?[]:{})}mo(l,u,h),l=l[u]}return e}var TH,SH=x(()=>{"use strict";nd();V0();b0();As();bd();a(pwt,"baseSet");TH=pwt});function mwt(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var o=t[n],l=Dc(e,o);r(l,o)&&TH(s,Rc(o,e),l)}return s}var Qk,b5=x(()=>{"use strict";z0();SH();V0();a(mwt,"basePickBy");Qk=mwt});function gwt(e,t){if(e==null)return{};var r=hs(Tk(e),function(n){return[n]});return t=Rr(t),Qk(e,r,function(n,i){return t(n,i[0])})}var ps,_H=x(()=>{"use strict";ih();Gi();b5();YA();a(gwt,"pickBy");ps=gwt});function ywt(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var CH,wH=x(()=>{"use strict";a(ywt,"baseSortBy");CH=ywt});function xwt(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,s=Ds(e),o=t!==void 0,l=t===null,u=t===t,h=Ds(t);if(!l&&!h&&!s&&e>t||s&&o&&u&&!l&&!h||n&&o&&u||!r&&u||!i)return 1;if(!n&&!s&&!h&&e<t||h&&r&&i&&!n&&!s||l&&r&&i||!o&&i||!u)return-1}return 0}var EH,vH=x(()=>{"use strict";nh();a(xwt,"compareAscending");EH=xwt});function bwt(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,o=i.length,l=r.length;++n<o;){var u=EH(i[n],s[n]);if(u){if(n>=l)return u;var h=r[n];return u*(h=="desc"?-1:1)}}return e.index-t.index}var AH,LH=x(()=>{"use strict";vH();a(bwt,"compareMultiple");AH=bwt});function kwt(e,t,r){t.length?t=hs(t,function(s){return Jt(s)?function(o){return Dc(o,s.length===1?s[0]:s)}:s}):t=[Hn];var n=-1;t=hs(t,ta(Rr));var i=jk(e,function(s,o,l){var u=hs(t,function(h){return h(s)});return{criteria:u,index:++n,value:s}});return CH(i,function(s,o){return AH(s,o,r)})}var RH,DH=x(()=>{"use strict";ih();z0();Gi();h5();wH();qu();LH();ml();Qr();a(kwt,"baseOrderBy");RH=kwt});var Twt,NH,IH=x(()=>{"use strict";o5();Twt=Fk("length"),NH=Twt});function Iwt(e){for(var t=MH.lastIndex=0;MH.test(e);)++t;return t}var OH,Swt,_wt,Cwt,wwt,Ewt,vwt,k5,T5,Awt,PH,BH,FH,Lwt,$H,GH,Rwt,Dwt,Nwt,MH,VH,zH=x(()=>{"use strict";OH="\\ud800-\\udfff",Swt="\\u0300-\\u036f",_wt="\\ufe20-\\ufe2f",Cwt="\\u20d0-\\u20ff",wwt=Swt+_wt+Cwt,Ewt="\\ufe0e\\ufe0f",vwt="["+OH+"]",k5="["+wwt+"]",T5="\\ud83c[\\udffb-\\udfff]",Awt="(?:"+k5+"|"+T5+")",PH="[^"+OH+"]",BH="(?:\\ud83c[\\udde6-\\uddff]){2}",FH="[\\ud800-\\udbff][\\udc00-\\udfff]",Lwt="\\u200d",$H=Awt+"?",GH="["+Ewt+"]?",Rwt="(?:"+Lwt+"(?:"+[PH,BH,FH].join("|")+")"+GH+$H+")*",Dwt=GH+$H+Rwt,Nwt="(?:"+[PH+k5+"?",k5,BH,FH,vwt].join("|")+")",MH=RegExp(T5+"(?="+T5+")|"+Nwt+Dwt,"g");a(Iwt,"unicodeSize");VH=Iwt});function Mwt(e){return JU(e)?VH(e):NH(e)}var WH,UH=x(()=>{"use strict";IH();tj();zH();a(Mwt,"stringSize");WH=Mwt});function Owt(e,t){return Qk(e,t,function(r,n){return Bk(e,n)})}var jH,qH=x(()=>{"use strict";b5();a5();a(Owt,"basePick");jH=Owt});var Pwt,ch,HH=x(()=>{"use strict";qH();ZU();Pwt=QU(function(e,t){return e==null?{}:jH(e,t)}),ch=Pwt});function $wt(e,t,r,n){for(var i=-1,s=Fwt(Bwt((t-e)/(r||1)),0),o=Array(s);s--;)o[n?s:++i]=e,e+=r;return o}var Bwt,Fwt,YH,XH=x(()=>{"use strict";Bwt=Math.ceil,Fwt=Math.max;a($wt,"baseRange");YH=$wt});function Gwt(e){return function(t,r,n){return n&&typeof n!="number"&&Ls(t,r,n)&&(r=n=void 0),t=pd(t),r===void 0?(r=t,t=0):r=pd(r),n=n===void 0?t<r?1:-1:pd(n),YH(t,r,n,e)}}var KH,QH=x(()=>{"use strict";XH();Yu();BA();a(Gwt,"createRange");KH=Gwt});var Vwt,sa,ZH=x(()=>{"use strict";QH();Vwt=KH(),sa=Vwt});function zwt(e,t,r,n,i){return i(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}var JH,tY=x(()=>{"use strict";a(zwt,"baseReduce");JH=zwt});function Wwt(e,t,r){var n=Jt(e)?ej:JH,i=arguments.length<3;return n(e,Rr(t,4),r,i,fs)}var mr,S5=x(()=>{"use strict";rj();Ic();Gi();tY();Qr();a(Wwt,"reduce");mr=Wwt});function Uwt(e,t){var r=Jt(e)?Sd:Uk;return r(e,bH(Rr(t,3)))}var Pc,eY=x(()=>{"use strict";gk();c5();Gi();Qr();kH();a(Uwt,"reject");Pc=Uwt});function Hwt(e){if(e==null)return 0;if(mn(e))return Tn(e)?WH(e):e.length;var t=Ns(e);return t==jwt||t==qwt?e.size:yd(e).length}var jwt,qwt,_5,rY=x(()=>{"use strict";uk();ah();Js();qk();UH();jwt="[object Map]",qwt="[object Set]";a(Hwt,"size");_5=Hwt});function Ywt(e,t){var r;return fs(e,function(n,i,s){return r=t(n,i,s),!r}),!!r}var nY,iY=x(()=>{"use strict";Ic();a(Ywt,"baseSome");nY=Ywt});function Xwt(e,t,r){var n=Jt(e)?Ak:nY;return r&&Ls(e,t,r)&&(t=void 0),n(e,Rr(t,3))}var U0,sY=x(()=>{"use strict";JA();Gi();iY();Qr();Yu();a(Xwt,"some");U0=Xwt});var Kwt,Ao,aY=x(()=>{"use strict";Td();DH();id();Yu();Kwt=go(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ls(e,t[0],t[1])?t=[]:r>2&&Ls(t[0],t[1],t[2])&&(t=[t[0]]),RH(e,Eo(t,1),[])}),Ao=Kwt});var Qwt,Zwt,oY,lY=x(()=>{"use strict";XA();FA();Dk();Qwt=1/0,Zwt=Nc&&1/Ed(new Nc([,-0]))[1]==Qwt?function(e){return new Nc(e)}:cn,oY=Zwt});function tEt(e,t,r){var n=-1,i=ck,s=e.length,o=!0,l=[],u=l;if(r)o=!1,i=Vk;else if(s>=Jwt){var h=t?null:oY(e);if(h)return Ed(h);o=!1,i=wd,u=new Cd}else u=t?[]:l;t:for(;++n<s;){var f=e[n],d=t?t(f):f;if(f=r||f!==0?f:0,o&&d===d){for(var p=u.length;p--;)if(u[p]===d)continue t;t&&u.push(d),l.push(f)}else i(u,d,r)||(u!==l&&u.push(d),l.push(f))}return l}var Jwt,Dd,Zk=x(()=>{"use strict";vk();VA();l5();Lk();lY();Dk();Jwt=200;a(tEt,"baseUniq");Dd=tEt});var eEt,C5,cY=x(()=>{"use strict";Td();id();Zk();ob();eEt=go(function(e){return Dd(Eo(e,1,ju,!0))}),C5=eEt});function rEt(e){return e&&e.length?Dd(e):[]}var Nd,uY=x(()=>{"use strict";Zk();a(rEt,"uniq");Nd=rEt});function nEt(e,t){return e&&e.length?Dd(e,Rr(t,2)):[]}var hY,fY=x(()=>{"use strict";Gi();Zk();a(nEt,"uniqBy");hY=nEt});function sEt(e){var t=++iEt;return fk(e)+t}var iEt,uh,dY=x(()=>{"use strict";zA();iEt=0;a(sEt,"uniqueId");uh=sEt});function aEt(e,t,r){for(var n=-1,i=e.length,s=t.length,o={};++n<i;){var l=n<s?t[n]:void 0;r(o,e[n],l)}return o}var pY,mY=x(()=>{"use strict";a(aEt,"baseZipObject");pY=aEt});function oEt(e,t){return pY(e||[],t||[],mo)}var Jk,gY=x(()=>{"use strict";nd();mY();a(oEt,"zipObject");Jk=oEt});var fe=x(()=>{"use strict";GU();QA();Uj();jj();x4();Iq();Pq();Fq();$q();Gq();jq();u5();Kq();Zq();f5();pk();Wk();Jq();tH();eH();aH();ml();cH();uH();Qr();Yk();l0();As();pH();qk();mH();Co();Bq();Ld();gH();yH();T4();x5();xH();FA();Dq();HH();_H();ZH();S5();eY();rY();sY();aY();cY();uY();dY();g5();gY();});function xY(e,t){e[t]?e[t]++:e[t]=1}function bY(e,t){--e[t]||delete e[t]}function j0(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var o=i;i=s,s=o}return i+yY+s+yY+(Fe(n)?lEt:n)}function cEt(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var o=i;i=s,s=o}var l={v:i,w:s};return n&&(l.name=n),l}function w5(e,t){return j0(e,t.v,t.w,t.name)}var lEt,hh,yY,_r,tT=x(()=>{"use strict";fe();lEt="\0",hh="\0",yY="",_r=class{static{a(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=is(void 0),this._defaultEdgeLabelFn=is(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[hh]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return vn(t)||(t=is(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return cr(this._nodes)}sources(){var t=this;return pr(this.nodes(),function(r){return De(t._in[r])})}sinks(){var t=this;return pr(this.nodes(),function(r){return De(t._out[r])})}setNodes(t,r){var n=arguments,i=this;return rt(t,function(s){n.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=hh,this._children[t]={},this._children[hh][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],rt(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),rt(cr(this._in[t]),r),delete this._in[t],delete this._preds[t],rt(cr(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Fe(r))r=hh;else{r+="";for(var n=r;!Fe(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==hh)return r}}children(t){if(Fe(t)&&(t=hh),this._isCompound){var r=this._children[t];if(r)return cr(r)}else{if(t===hh)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return cr(r)}successors(t){var r=this._sucs[t];if(r)return cr(r)}neighbors(t){var r=this.predecessors(t);if(r)return C5(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;rt(this._nodes,function(o,l){t(l)&&r.setNode(l,o)}),rt(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var i={};function s(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(i[o]=l,l):l in i?i[l]:s(l)}return a(s,"findParent"),this._isCompound&&rt(r.nodes(),function(o){r.setParent(o,s(o))}),r}setDefaultEdgeLabel(t){return vn(t)||(t=is(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return We(this._edgeObjs)}setPath(t,r){var n=this,i=arguments;return mr(t,function(s,o){return i.length>1?n.setEdge(s,o,r):n.setEdge(s,o),o}),this}setEdge(){var t,r,n,i,s=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,n=o.name,arguments.length===2&&(i=arguments[1],s=!0)):(t=o,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,r=""+r,Fe(n)||(n=""+n);var l=j0(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,l))return s&&(this._edgeLabels[l]=i),this;if(!Fe(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=s?i:this._defaultEdgeLabelFn(t,r,n);var u=cEt(this._isDirected,t,r,n);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,xY(this._preds[r],t),xY(this._sucs[t],r),this._in[r][l]=u,this._out[t][l]=u,this._edgeCount++,this}edge(t,r,n){var i=arguments.length===1?w5(this._isDirected,arguments[0]):j0(this._isDirected,t,r,n);return this._edgeLabels[i]}hasEdge(t,r,n){var i=arguments.length===1?w5(this._isDirected,arguments[0]):j0(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(t,r,n){var i=arguments.length===1?w5(this._isDirected,arguments[0]):j0(this._isDirected,t,r,n),s=this._edgeObjs[i];return s&&(t=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],bY(this._preds[r],t),bY(this._sucs[t],r),delete this._in[r][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var i=We(n);return r?pr(i,function(s){return s.v===r}):i}}outEdges(t,r){var n=this._out[t];if(n){var i=We(n);return r?pr(i,function(s){return s.w===r}):i}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};_r.prototype._nodeCount=0;_r.prototype._edgeCount=0;a(xY,"incrementOrInitEntry");a(bY,"decrementOrRemoveEntry");a(j0,"edgeArgsToId");a(cEt,"edgeArgsToObj");a(w5,"edgeObjToId")});var aa=x(()=>{"use strict";tT()});function kY(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function uEt(e,t){if(e!=="_next"&&e!=="_prev")return t}var rT,TY=x(()=>{"use strict";rT=class{static{a(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return kY(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&kY(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,n=r._prev;n!==r;)t.push(JSON.stringify(n,uEt)),n=n._prev;return"["+t.join(", ")+"]"}};a(kY,"unlink");a(uEt,"filterOutLinks")});function SY(e,t){if(e.nodeCount()<=1)return[];var r=dEt(e,t||hEt),n=fEt(r.graph,r.buckets,r.zeroIdx);return dr(Dt(n,function(i){return e.outEdges(i.v,i.w)}))}function fEt(e,t,r){for(var n=[],i=t[t.length-1],s=t[0],o;e.nodeCount();){for(;o=s.dequeue();)E5(e,t,r,o);for(;o=i.dequeue();)E5(e,t,r,o);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){n=n.concat(E5(e,t,r,o,!0));break}}}return n}function E5(e,t,r,n,i){var s=i?[]:void 0;return rt(e.inEdges(n.v),function(o){var l=e.edge(o),u=e.node(o.v);i&&s.push({v:o.v,w:o.w}),u.out-=l,v5(t,r,u)}),rt(e.outEdges(n.v),function(o){var l=e.edge(o),u=o.w,h=e.node(u);h.in-=l,v5(t,r,h)}),e.removeNode(n.v),s}function dEt(e,t){var r=new _r,n=0,i=0;rt(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),rt(e.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=t(l),f=u+h;r.setEdge(l.v,l.w,f),i=Math.max(i,r.node(l.v).out+=h),n=Math.max(n,r.node(l.w).in+=h)});var s=sa(i+n+3).map(function(){return new rT}),o=n+1;return rt(r.nodes(),function(l){v5(s,o,r.node(l))}),{graph:r,buckets:s,zeroIdx:o}}function v5(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var hEt,_Y=x(()=>{"use strict";fe();aa();TY();hEt=is(1);a(SY,"greedyFAS");a(fEt,"doGreedyFAS");a(E5,"removeNode");a(dEt,"buildState");a(v5,"assignBucket")});function CY(e){var t=e.graph().acyclicer==="greedy"?SY(e,r(e)):pEt(e);rt(t,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,uh("rev"))});function r(n){return function(i){return n.edge(i).weight}}a(r,"weightFn")}function pEt(e){var t=[],r={},n={};function i(s){Object.prototype.hasOwnProperty.call(n,s)||(n[s]=!0,r[s]=!0,rt(e.outEdges(s),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?t.push(o):i(o.w)}),delete r[s])}return a(i,"dfs"),rt(e.nodes(),i),t}function wY(e){rt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var A5=x(()=>{"use strict";fe();_Y();a(CY,"run");a(pEt,"dfsFAS");a(wY,"undo")});function Lo(e,t,r,n){var i;do i=uh(n);while(e.hasNode(i));return r.dummy=t,e.setNode(i,r),i}function vY(e){var t=new _r().setGraph(e.graph());return rt(e.nodes(),function(r){t.setNode(r,e.node(r))}),rt(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),t}function nT(e){var t=new _r({multigraph:e.isMultigraph()}).setGraph(e.graph());return rt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),rt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function L5(e,t){var r=e.x,n=e.y,i=t.x-r,s=t.y-n,o=e.width/2,l=e.height/2;if(!i&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(s)*o>Math.abs(i)*l?(s<0&&(l=-l),u=l*i/s,h=l):(i<0&&(o=-o),u=o,h=o*s/i),{x:r+u,y:n+h}}function Bc(e){var t=Dt(sa(D5(e)+1),function(){return[]});return rt(e.nodes(),function(r){var n=e.node(r),i=n.rank;Fe(i)||(t[i][n.order]=r)}),t}function AY(e){var t=Ga(Dt(e.nodes(),function(r){return e.node(r).rank}));rt(e.nodes(),function(r){var n=e.node(r);te(n,"rank")&&(n.rank-=t)})}function LY(e){var t=Ga(Dt(e.nodes(),function(s){return e.node(s).rank})),r=[];rt(e.nodes(),function(s){var o=e.node(s).rank-t;r[o]||(r[o]=[]),r[o].push(s)});var n=0,i=e.graph().nodeRankFactor;rt(r,function(s,o){Fe(s)&&o%i!==0?--n:n&&rt(s,function(l){e.node(l).rank+=n})})}function R5(e,t,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),Lo(e,"border",i,t)}function D5(e){return ds(Dt(e.nodes(),function(t){var r=e.node(t).rank;if(!Fe(r))return r}))}function RY(e,t){var r={lhs:[],rhs:[]};return rt(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function DY(e,t){var r=Gk();try{return t()}finally{console.log(e+" time: "+(Gk()-r)+"ms")}}function NY(e,t){return t()}var Ro=x(()=>{"use strict";fe();aa();a(Lo,"addDummyNode");a(vY,"simplify");a(nT,"asNonCompoundGraph");a(L5,"intersectRect");a(Bc,"buildLayerMatrix");a(AY,"normalizeRanks");a(LY,"removeEmptyRanks");a(R5,"addBorderNode");a(D5,"maxRank");a(RY,"partition");a(DY,"time");a(NY,"notime")});function MY(e){function t(r){var n=e.children(r),i=e.node(r);if(n.length&&rt(n,t),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,o=i.maxRank+1;s<o;++s)IY(e,"borderLeft","_bl",r,i,s),IY(e,"borderRight","_br",r,i,s)}}a(t,"dfs"),rt(e.children(),t)}function IY(e,t,r,n,i,s){var o={width:0,height:0,rank:s,borderType:t},l=i[t][s-1],u=Lo(e,"border",o,r);i[t][s]=u,e.setParent(u,n),l&&e.setEdge(l,u,{weight:1})}var OY=x(()=>{"use strict";fe();Ro();a(MY,"addBorderSegments");a(IY,"addBorderNode")});function BY(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&$Y(e)}function FY(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&mEt(e),(t==="lr"||t==="rl")&&(gEt(e),$Y(e))}function $Y(e){rt(e.nodes(),function(t){PY(e.node(t))}),rt(e.edges(),function(t){PY(e.edge(t))})}function PY(e){var t=e.width;e.width=e.height,e.height=t}function mEt(e){rt(e.nodes(),function(t){N5(e.node(t))}),rt(e.edges(),function(t){var r=e.edge(t);rt(r.points,N5),Object.prototype.hasOwnProperty.call(r,"y")&&N5(r)})}function N5(e){e.y=-e.y}function gEt(e){rt(e.nodes(),function(t){I5(e.node(t))}),rt(e.edges(),function(t){var r=e.edge(t);rt(r.points,I5),Object.prototype.hasOwnProperty.call(r,"x")&&I5(r)})}function I5(e){var t=e.x;e.x=e.y,e.y=t}var GY=x(()=>{"use strict";fe();a(BY,"adjust");a(FY,"undo");a($Y,"swapWidthHeight");a(PY,"swapWidthHeightOne");a(mEt,"reverseY");a(N5,"reverseYOne");a(gEt,"swapXY");a(I5,"swapXYOne")});function VY(e){e.graph().dummyChains=[],rt(e.edges(),function(t){xEt(e,t)})}function xEt(e,t){var r=t.v,n=e.node(r).rank,i=t.w,s=e.node(i).rank,o=t.name,l=e.edge(t),u=l.labelRank;if(s!==n+1){e.removeEdge(t);var h=void 0,f,d;for(d=0,++n;n<s;++d,++n)l.points=[],h={width:0,height:0,edgeLabel:l,edgeObj:t,rank:n},f=Lo(e,"edge",h,"_d"),n===u&&(h.width=l.width,h.height=l.height,h.dummy="edge-label",h.labelpos=l.labelpos),e.setEdge(r,f,{weight:l.weight},o),d===0&&e.graph().dummyChains.push(f),r=f;e.setEdge(r,i,{weight:l.weight},o)}}function zY(e){rt(e.graph().dummyChains,function(t){var r=e.node(t),n=r.edgeLabel,i;for(e.setEdge(r.edgeObj,n);r.dummy;)i=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=i,r=e.node(t)})}var M5=x(()=>{"use strict";fe();Ro();a(VY,"run");a(xEt,"normalizeEdge");a(zY,"undo")});function q0(e){var t={};function r(n){var i=e.node(n);if(Object.prototype.hasOwnProperty.call(t,n))return i.rank;t[n]=!0;var s=Ga(Dt(e.outEdges(n),function(o){return r(o.w)-e.edge(o).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),i.rank=s}a(r,"dfs"),rt(e.sources(),r)}function fh(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var iT=x(()=>{"use strict";fe();a(q0,"longestPath");a(fh,"slack")});function sT(e){var t=new _r({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var i,s;bEt(t,e)<n;)i=kEt(t,e),s=t.hasNode(i.v)?fh(e,i):-fh(e,i),TEt(t,e,s);return t}function bEt(e,t){function r(n){rt(t.nodeEdges(n),function(i){var s=i.v,o=n===s?i.w:s;!e.hasNode(o)&&!fh(t,i)&&(e.setNode(o,{}),e.setEdge(n,o,{}),r(o))})}return a(r,"dfs"),rt(e.nodes(),r),e.nodeCount()}function kEt(e,t){return lh(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return fh(t,r)})}function TEt(e,t,r){rt(e.nodes(),function(n){t.node(n).rank+=r})}var O5=x(()=>{"use strict";fe();aa();iT();a(sT,"feasibleTree");a(bEt,"tightTree");a(kEt,"findMinSlackEdge");a(TEt,"shiftRanks")});var UY=x(()=>{"use strict"});var P5=x(()=>{"use strict"});var dAe,B5=x(()=>{"use strict";fe();P5();dAe=is(1)});var jY=x(()=>{"use strict";B5()});var F5=x(()=>{"use strict"});var qY=x(()=>{"use strict";F5()});var CAe,HY=x(()=>{"use strict";fe();CAe=is(1)});function $5(e){var t={},r={},n=[];function i(s){if(Object.prototype.hasOwnProperty.call(r,s))throw new H0;Object.prototype.hasOwnProperty.call(t,s)||(r[s]=!0,t[s]=!0,rt(e.predecessors(s),i),delete r[s],n.push(s))}if(a(i,"visit"),rt(e.sinks(),i),_5(t)!==e.nodeCount())throw new H0;return n}function H0(){}var G5=x(()=>{"use strict";fe();$5.CycleException=H0;a($5,"topsort");a(H0,"CycleException");H0.prototype=new Error});var YY=x(()=>{"use strict";G5()});function aT(e,t,r){Jt(t)||(t=[t]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],s={};return rt(t,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);XY(e,o,r==="post",s,n,i)}),i}function XY(e,t,r,n,i,s){Object.prototype.hasOwnProperty.call(n,t)||(n[t]=!0,r||s.push(t),rt(i(t),function(o){XY(e,o,r,n,i,s)}),r&&s.push(t))}var V5=x(()=>{"use strict";fe();a(aT,"dfs");a(XY,"doDfs")});function z5(e,t){return aT(e,t,"post")}var KY=x(()=>{"use strict";V5();a(z5,"postorder")});function W5(e,t){return aT(e,t,"pre")}var QY=x(()=>{"use strict";V5();a(W5,"preorder")});var ZY=x(()=>{"use strict";P5();tT()});var JY=x(()=>{"use strict";UY();B5();jY();qY();HY();YY();KY();QY();ZY();F5();G5()});function $c(e){e=vY(e),q0(e);var t=sT(e);j5(t),U5(t,e);for(var r,n;r=nX(t);)n=iX(t,e,r),sX(t,e,r,n)}function U5(e,t){var r=z5(e,e.nodes());r=r.slice(0,r.length-1),rt(r,function(n){EEt(e,t,n)})}function EEt(e,t,r){var n=e.node(r),i=n.parent;e.edge(r,i).cutvalue=eX(e,t,r)}function eX(e,t,r){var n=e.node(r),i=n.parent,s=!0,o=t.edge(r,i),l=0;return o||(s=!1,o=t.edge(i,r)),l=o.weight,rt(t.nodeEdges(r),function(u){var h=u.v===r,f=h?u.w:u.v;if(f!==i){var d=h===s,p=t.edge(u).weight;if(l+=d?p:-p,AEt(e,r,f)){var m=e.edge(r,f).cutvalue;l+=d?-m:m}}}),l}function j5(e,t){arguments.length<2&&(t=e.nodes()[0]),rX(e,{},1,t)}function rX(e,t,r,n,i){var s=r,o=e.node(n);return t[n]=!0,rt(e.neighbors(n),function(l){Object.prototype.hasOwnProperty.call(t,l)||(r=rX(e,t,r,l,n))}),o.low=s,o.lim=r++,i?o.parent=i:delete o.parent,r}function nX(e){return Vi(e.edges(),function(t){return e.edge(t).cutvalue<0})}function iX(e,t,r){var n=r.v,i=r.w;t.hasEdge(n,i)||(n=r.w,i=r.v);var s=e.node(n),o=e.node(i),l=s,u=!1;s.lim>o.lim&&(l=o,u=!0);var h=pr(t.edges(),function(f){return u===tX(e,e.node(f.v),l)&&u!==tX(e,e.node(f.w),l)});return lh(h,function(f){return fh(t,f)})}function sX(e,t,r,n){var i=r.v,s=r.w;e.removeEdge(i,s),e.setEdge(n.v,n.w,{}),j5(e),U5(e,t),vEt(e,t)}function vEt(e,t){var r=Vi(e.nodes(),function(i){return!t.node(i).parent}),n=W5(e,r);n=n.slice(1),rt(n,function(i){var s=e.node(i).parent,o=t.edge(i,s),l=!1;o||(o=t.edge(s,i),l=!0),t.node(i).rank=t.node(s).rank+(l?o.minlen:-o.minlen)})}function AEt(e,t,r){return e.hasEdge(t,r)}function tX(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var aX=x(()=>{"use strict";fe();JY();Ro();O5();iT();$c.initLowLimValues=j5;$c.initCutValues=U5;$c.calcCutValue=eX;$c.leaveEdge=nX;$c.enterEdge=iX;$c.exchangeEdges=sX;a($c,"networkSimplex");a(U5,"initCutValues");a(EEt,"assignCutValue");a(eX,"calcCutValue");a(j5,"initLowLimValues");a(rX,"dfsAssignLowLim");a(nX,"leaveEdge");a(iX,"enterEdge");a(sX,"exchangeEdges");a(vEt,"updateRanks");a(AEt,"isTreeEdge");a(tX,"isDescendant")});function q5(e){switch(e.graph().ranker){case"network-simplex":oX(e);break;case"tight-tree":REt(e);break;case"longest-path":LEt(e);break;default:oX(e)}}function REt(e){q0(e),sT(e)}function oX(e){$c(e)}var LEt,H5=x(()=>{"use strict";O5();aX();iT();a(q5,"rank");LEt=q0;a(REt,"tightTreeRanker");a(oX,"networkSimplexRanker")});function lX(e){var t=Lo(e,"root",{},"_root"),r=DEt(e),n=ds(We(r))-1,i=2*n+1;e.graph().nestingRoot=t,rt(e.edges(),function(o){e.edge(o).minlen*=i});var s=NEt(e)+1;rt(e.children(),function(o){cX(e,t,i,s,n,r,o)}),e.graph().nodeRankFactor=i}function cX(e,t,r,n,i,s,o){var l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}var u=R5(e,"_bt"),h=R5(e,"_bb"),f=e.node(o);e.setParent(u,o),f.borderTop=u,e.setParent(h,o),f.borderBottom=h,rt(l,function(d){cX(e,t,r,n,i,s,d);var p=e.node(d),m=p.borderTop?p.borderTop:d,g=p.borderBottom?p.borderBottom:d,y=p.borderTop?n:2*n,b=m!==g?1:i-s[o]+1;e.setEdge(u,m,{weight:y,minlen:b,nestingEdge:!0}),e.setEdge(g,h,{weight:y,minlen:b,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,u,{weight:0,minlen:i+s[o]})}function DEt(e){var t={};function r(n,i){var s=e.children(n);s&&s.length&&rt(s,function(o){r(o,i+1)}),t[n]=i}return a(r,"dfs"),rt(e.children(),function(n){r(n,1)}),t}function NEt(e){return mr(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function uX(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,rt(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var hX=x(()=>{"use strict";fe();Ro();a(lX,"run");a(cX,"dfs");a(DEt,"treeDepths");a(NEt,"sumWeights");a(uX,"cleanup")});function fX(e,t,r){var n={},i;rt(r,function(s){for(var o=e.parent(s),l,u;o;){if(l=e.parent(o),l?(u=n[l],n[l]=o):(u=i,i=o),u&&u!==o){t.setEdge(u,o);return}o=l}})}var dX=x(()=>{"use strict";fe();a(fX,"addSubgraphConstraints")});function pX(e,t,r){var n=MEt(e),i=new _r({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(s){return e.node(s)});return rt(e.nodes(),function(s){var o=e.node(s),l=e.parent(s);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(s),i.setParent(s,l||n),rt(e[r](s),function(u){var h=u.v===s?u.w:u.v,f=i.edge(h,s),d=Fe(f)?0:f.weight;i.setEdge(h,s,{weight:e.edge(u).weight+d})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&i.setNode(s,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function MEt(e){for(var t;e.hasNode(t=uh("_root")););return t}var mX=x(()=>{"use strict";fe();aa();a(pX,"buildLayerGraph");a(MEt,"createRootNode")});function gX(e,t){for(var r=0,n=1;n<t.length;++n)r+=OEt(e,t[n-1],t[n]);return r}function OEt(e,t,r){for(var n=Jk(r,Dt(r,function(h,f){return f})),i=dr(Dt(t,function(h){return Ao(Dt(e.outEdges(h),function(f){return{pos:n[f.w],weight:e.edge(f).weight}}),"pos")})),s=1;s<r.length;)s<<=1;var o=2*s-1;s-=1;var l=Dt(new Array(o),function(){return 0}),u=0;return rt(i.forEach(function(h){var f=h.pos+s;l[f]+=h.weight;for(var d=0;f>0;)f%2&&(d+=l[f+1]),f=f-1>>1,l[f]+=h.weight;u+=h.weight*d})),u}var yX=x(()=>{"use strict";fe();a(gX,"crossCount");a(OEt,"twoLayerCrossCount")});function xX(e){var t={},r=pr(e.nodes(),function(l){return!e.children(l).length}),n=ds(Dt(r,function(l){return e.node(l).rank})),i=Dt(sa(n+1),function(){return[]});function s(l){if(!te(t,l)){t[l]=!0;var u=e.node(l);i[u.rank].push(l),rt(e.successors(l),s)}}a(s,"dfs");var o=Ao(r,function(l){return e.node(l).rank});return rt(o,s),i}var bX=x(()=>{"use strict";fe();a(xX,"initOrder")});function kX(e,t){return Dt(t,function(r){var n=e.inEdges(r);if(n.length){var i=mr(n,function(s,o){var l=e.edge(o),u=e.node(o.v);return{sum:s.sum+l.weight*u.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var TX=x(()=>{"use strict";fe();a(kX,"barycenter")});function SX(e,t){var r={};rt(e,function(i,s){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:s};Fe(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),rt(t.edges(),function(i){var s=r[i.v],o=r[i.w];!Fe(s)&&!Fe(o)&&(o.indegree++,s.out.push(r[i.w]))});var n=pr(r,function(i){return!i.indegree});return PEt(n)}function PEt(e){var t=[];function r(s){return function(o){o.merged||(Fe(o.barycenter)||Fe(s.barycenter)||o.barycenter>=s.barycenter)&&BEt(s,o)}}a(r,"handleIn");function n(s){return function(o){o.in.push(s),--o.indegree===0&&e.push(o)}}for(a(n,"handleOut");e.length;){var i=e.pop();t.push(i),rt(i.in.reverse(),r(i)),rt(i.out,n(i))}return Dt(pr(t,function(s){return!s.merged}),function(s){return ch(s,["vs","i","barycenter","weight"])})}function BEt(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var _X=x(()=>{"use strict";fe();a(SX,"resolveConflicts");a(PEt,"doResolveConflicts");a(BEt,"mergeEntries")});function wX(e,t){var r=RY(e,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),n=r.lhs,i=Ao(r.rhs,function(f){return-f.i}),s=[],o=0,l=0,u=0;n.sort(FEt(!!t)),u=CX(s,i,u),rt(n,function(f){u+=f.vs.length,s.push(f.vs),o+=f.barycenter*f.weight,l+=f.weight,u=CX(s,i,u)});var h={vs:dr(s)};return l&&(h.barycenter=o/l,h.weight=l),h}function CX(e,t,r){for(var n;t.length&&(n=oi(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function FEt(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}var EX=x(()=>{"use strict";fe();Ro();a(wX,"sort");a(CX,"consumeUnsortable");a(FEt,"compareWithBias")});function Y5(e,t,r,n){var i=e.children(t),s=e.node(t),o=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,u={};o&&(i=pr(i,function(g){return g!==o&&g!==l}));var h=kX(e,i);rt(h,function(g){if(e.children(g.v).length){var y=Y5(e,g.v,r,n);u[g.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter")&&GEt(g,y)}});var f=SX(h,r);$Et(f,u);var d=wX(f,n);if(o&&(d.vs=dr([o,d.vs,l]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+p.order+m.order)/(d.weight+2),d.weight+=2}return d}function $Et(e,t){rt(e,function(r){r.vs=dr(r.vs.map(function(n){return t[n]?t[n].vs:n}))})}function GEt(e,t){Fe(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var vX=x(()=>{"use strict";fe();TX();_X();EX();a(Y5,"sortSubgraph");a($Et,"expandSubgraphs");a(GEt,"mergeBarycenters")});function RX(e){var t=D5(e),r=AX(e,sa(1,t+1),"inEdges"),n=AX(e,sa(t-1,-1,-1),"outEdges"),i=xX(e);LX(e,i);for(var s=Number.POSITIVE_INFINITY,o,l=0,u=0;u<4;++l,++u){VEt(l%2?r:n,l%4>=2),i=Bc(e);var h=gX(e,i);h<s&&(u=0,o=ZA(i),s=h)}LX(e,o)}function AX(e,t,r){return Dt(t,function(n){return pX(e,n,r)})}function VEt(e,t){var r=new _r;rt(e,function(n){var i=n.graph().root,s=Y5(n,i,r,t);rt(s.vs,function(o,l){n.node(o).order=l}),fX(n,r,s.vs)})}function LX(e,t){rt(t,function(r){rt(r,function(n,i){e.node(n).order=i})})}var DX=x(()=>{"use strict";fe();aa();Ro();dX();mX();yX();bX();vX();a(RX,"order");a(AX,"buildLayerGraphs");a(VEt,"sweepLayerGraphs");a(LX,"assignOrder")});function NX(e){var t=WEt(e);rt(e.graph().dummyChains,function(r){for(var n=e.node(r),i=n.edgeObj,s=zEt(e,t,i.v,i.w),o=s.path,l=s.lca,u=0,h=o[u],f=!0;r!==i.w;){if(n=e.node(r),f){for(;(h=o[u])!==l&&e.node(h).maxRank<n.rank;)u++;h===l&&(f=!1)}if(!f){for(;u<o.length-1&&e.node(h=o[u+1]).minRank<=n.rank;)u++;h=o[u]}e.setParent(r,h),r=e.successors(r)[0]}})}function zEt(e,t,r,n){var i=[],s=[],o=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim),u,h;u=r;do u=e.parent(u),i.push(u);while(u&&(t[u].low>o||l>t[u].lim));for(h=u,u=n;(u=e.parent(u))!==h;)s.push(u);return{path:i.concat(s.reverse()),lca:h}}function WEt(e){var t={},r=0;function n(i){var s=r;rt(e.children(i),n),t[i]={low:s,lim:r++}}return a(n,"dfs"),rt(e.children(),n),t}var IX=x(()=>{"use strict";fe();a(NX,"parentDummyChains");a(zEt,"findPath");a(WEt,"postorder")});function UEt(e,t){var r={};function n(i,s){var o=0,l=0,u=i.length,h=oi(s);return rt(s,function(f,d){var p=qEt(e,f),m=p?e.node(p).order:u;(p||f===h)&&(rt(s.slice(l,d+1),function(g){rt(e.predecessors(g),function(y){var b=e.node(y),k=b.order;(k<o||m<k)&&!(b.dummy&&e.node(g).dummy)&&MX(r,y,g)})}),l=d+1,o=m)}),s}return a(n,"visitLayer"),mr(t,n),r}function jEt(e,t){var r={};function n(s,o,l,u,h){var f;rt(sa(o,l),function(d){f=s[d],e.node(f).dummy&&rt(e.predecessors(f),function(p){var m=e.node(p);m.dummy&&(m.order<u||m.order>h)&&MX(r,p,f)})})}a(n,"scan");function i(s,o){var l=-1,u,h=0;return rt(o,function(f,d){if(e.node(f).dummy==="border"){var p=e.predecessors(f);p.length&&(u=e.node(p[0]).order,n(o,h,d,l,u),h=d,l=u)}n(o,h,o.length,u,s.length)}),o}return a(i,"visitLayer"),mr(t,i),r}function qEt(e,t){if(e.node(t).dummy)return Vi(e.predecessors(t),function(r){return e.node(r).dummy})}function MX(e,t,r){if(t>r){var n=t;t=r,r=n}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function HEt(e,t,r){if(t>r){var n=t;t=r,r=n}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}function YEt(e,t,r,n){var i={},s={},o={};return rt(t,function(l){rt(l,function(u,h){i[u]=u,s[u]=u,o[u]=h})}),rt(t,function(l){var u=-1;rt(l,function(h){var f=n(h);if(f.length){f=Ao(f,function(y){return o[y]});for(var d=(f.length-1)/2,p=Math.floor(d),m=Math.ceil(d);p<=m;++p){var g=f[p];s[h]===h&&u<o[g]&&!HEt(r,h,g)&&(s[g]=h,s[h]=i[h]=i[g],u=o[g])}}})}),{root:i,align:s}}function XEt(e,t,r,n,i){var s={},o=KEt(e,t,r,i),l=i?"borderLeft":"borderRight";function u(d,p){for(var m=o.nodes(),g=m.pop(),y={};g;)y[g]?d(g):(y[g]=!0,m.push(g),m=m.concat(p(g))),g=m.pop()}a(u,"iterate");function h(d){s[d]=o.inEdges(d).reduce(function(p,m){return Math.max(p,s[m.v]+o.edge(m))},0)}a(h,"pass1");function f(d){var p=o.outEdges(d).reduce(function(g,y){return Math.min(g,s[y.w]-o.edge(y))},Number.POSITIVE_INFINITY),m=e.node(d);p!==Number.POSITIVE_INFINITY&&m.borderType!==l&&(s[d]=Math.max(s[d],p))}return a(f,"pass2"),u(h,o.predecessors.bind(o)),u(f,o.successors.bind(o)),rt(n,function(d){s[d]=s[r[d]]}),s}function KEt(e,t,r,n){var i=new _r,s=e.graph(),o=tvt(s.nodesep,s.edgesep,n);return rt(t,function(l){var u;rt(l,function(h){var f=r[h];if(i.setNode(f),u){var d=r[u],p=i.edge(d,f);i.setEdge(d,f,Math.max(o(e,h,u),p||0))}u=h})}),i}function QEt(e,t){return lh(We(t),function(r){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return d5(r,function(s,o){var l=evt(e,o)/2;n=Math.max(s+l,n),i=Math.min(s-l,i)}),n-i})}function ZEt(e,t){var r=We(t),n=Ga(r),i=ds(r);rt(["u","d"],function(s){rt(["l","r"],function(o){var l=s+o,u=e[l],h;if(u!==t){var f=We(u);h=o==="l"?n-Ga(f):i-ds(f),h&&(e[l]=oh(u,function(d){return d+h}))}})})}function JEt(e,t){return oh(e.ul,function(r,n){if(t)return e[t.toLowerCase()][n];var i=Ao(Dt(e,n));return(i[1]+i[2])/2})}function OX(e){var t=Bc(e),r=bc(UEt(e,t),jEt(e,t)),n={},i;rt(["u","d"],function(o){i=o==="u"?t:We(t).reverse(),rt(["l","r"],function(l){l==="r"&&(i=Dt(i,function(d){return We(d).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),h=YEt(e,i,r,u),f=XEt(e,i,h.root,h.align,l==="r");l==="r"&&(f=oh(f,function(d){return-d})),n[o+l]=f})});var s=QEt(e,n);return ZEt(n,s),JEt(n,e.graph().align)}function tvt(e,t,r){return function(n,i,s){var o=n.node(i),l=n.node(s),u=0,h;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":h=-o.width/2;break;case"r":h=o.width/2;break}if(h&&(u+=r?h:-h),h=0,u+=(o.dummy?t:e)/2,u+=(l.dummy?t:e)/2,u+=l.width/2,Object.prototype.hasOwnProperty.call(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":h=l.width/2;break;case"r":h=-l.width/2;break}return h&&(u+=r?h:-h),h=0,u}}function evt(e,t){return e.node(t).width}var PX=x(()=>{"use strict";fe();aa();Ro();a(UEt,"findType1Conflicts");a(jEt,"findType2Conflicts");a(qEt,"findOtherInnerSegmentNode");a(MX,"addConflict");a(HEt,"hasConflict");a(YEt,"verticalAlignment");a(XEt,"horizontalCompaction");a(KEt,"buildBlockGraph");a(QEt,"findSmallestWidthAlignment");a(ZEt,"alignCoordinates");a(JEt,"balance");a(OX,"positionX");a(tvt,"sep");a(evt,"width")});function BX(e){e=nT(e),rvt(e),p5(OX(e),function(t,r){e.node(r).x=t})}function rvt(e){var t=Bc(e),r=e.graph().ranksep,n=0;rt(t,function(i){var s=ds(Dt(i,function(o){return e.node(o).height}));rt(i,function(o){e.node(o).y=n+s/2}),n+=s+r})}var FX=x(()=>{"use strict";fe();Ro();PX();a(BX,"position");a(rvt,"positionY")});function Y0(e,t){var r=t&&t.debugTiming?DY:NY;r("layout",()=>{var n=r(" buildLayoutGraph",()=>dvt(e));r(" runLayout",()=>nvt(n,r)),r(" updateInputGraph",()=>ivt(e,n))})}function nvt(e,t){t(" makeSpaceForEdgeLabels",()=>pvt(e)),t(" removeSelfEdges",()=>_vt(e)),t(" acyclic",()=>CY(e)),t(" nestingGraph.run",()=>lX(e)),t(" rank",()=>q5(nT(e))),t(" injectEdgeLabelProxies",()=>mvt(e)),t(" removeEmptyRanks",()=>LY(e)),t(" nestingGraph.cleanup",()=>uX(e)),t(" normalizeRanks",()=>AY(e)),t(" assignRankMinMax",()=>gvt(e)),t(" removeEdgeLabelProxies",()=>yvt(e)),t(" normalize.run",()=>VY(e)),t(" parentDummyChains",()=>NX(e)),t(" addBorderSegments",()=>MY(e)),t(" order",()=>RX(e)),t(" insertSelfEdges",()=>Cvt(e)),t(" adjustCoordinateSystem",()=>BY(e)),t(" position",()=>BX(e)),t(" positionSelfEdges",()=>wvt(e)),t(" removeBorderNodes",()=>Svt(e)),t(" normalize.undo",()=>zY(e)),t(" fixupEdgeLabelCoords",()=>kvt(e)),t(" undoCoordinateSystem",()=>FY(e)),t(" translateGraph",()=>xvt(e)),t(" assignNodeIntersects",()=>bvt(e)),t(" reversePoints",()=>Tvt(e)),t(" acyclic.undo",()=>wY(e))}function ivt(e,t){rt(e.nodes(),function(r){var n=e.node(r),i=t.node(r);n&&(n.x=i.x,n.y=i.y,t.children(r).length&&(n.width=i.width,n.height=i.height))}),rt(e.edges(),function(r){var n=e.edge(r),i=t.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function dvt(e){var t=new _r({multigraph:!0,compound:!0}),r=K5(e.graph());return t.setGraph(bc({},avt,X5(r,svt),ch(r,ovt))),rt(e.nodes(),function(n){var i=K5(e.node(n));t.setNode(n,Mc(X5(i,lvt),cvt)),t.setParent(n,e.parent(n))}),rt(e.edges(),function(n){var i=K5(e.edge(n));t.setEdge(n,bc({},hvt,X5(i,uvt),ch(i,fvt)))}),t}function pvt(e){var t=e.graph();t.ranksep/=2,rt(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function mvt(e){rt(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i=e.node(t.w),s={rank:(i.rank-n.rank)/2+n.rank,e:t};Lo(e,"edge-proxy",s,"_ep")}})}function gvt(e){var t=0;rt(e.nodes(),function(r){var n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=ds(t,n.maxRank))}),e.graph().maxRank=t}function yvt(e){rt(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function xvt(e){var t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,s=e.graph(),o=s.marginx||0,l=s.marginy||0;function u(h){var f=h.x,d=h.y,p=h.width,m=h.height;t=Math.min(t,f-p/2),r=Math.max(r,f+p/2),n=Math.min(n,d-m/2),i=Math.max(i,d+m/2)}a(u,"getExtremes"),rt(e.nodes(),function(h){u(e.node(h))}),rt(e.edges(),function(h){var f=e.edge(h);Object.prototype.hasOwnProperty.call(f,"x")&&u(f)}),t-=o,n-=l,rt(e.nodes(),function(h){var f=e.node(h);f.x-=t,f.y-=n}),rt(e.edges(),function(h){var f=e.edge(h);rt(f.points,function(d){d.x-=t,d.y-=n}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=t),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=n)}),s.width=r-t+o,s.height=i-n+l}function bvt(e){rt(e.edges(),function(t){var r=e.edge(t),n=e.node(t.v),i=e.node(t.w),s,o;r.points?(s=r.points[0],o=r.points[r.points.length-1]):(r.points=[],s=i,o=n),r.points.unshift(L5(n,s)),r.points.push(L5(i,o))})}function kvt(e){rt(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Tvt(e){rt(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function Svt(e){rt(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),n=e.node(r.borderTop),i=e.node(r.borderBottom),s=e.node(oi(r.borderLeft)),o=e.node(oi(r.borderRight));r.width=Math.abs(o.x-s.x),r.height=Math.abs(i.y-n.y),r.x=s.x+r.width/2,r.y=n.y+r.height/2}}),rt(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function _vt(e){rt(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Cvt(e){var t=Bc(e);rt(t,function(r){var n=0;rt(r,function(i,s){var o=e.node(i);o.order=s+n,rt(o.selfEdges,function(l){Lo(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:s+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function wvt(e){rt(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),i=n.x+n.width/2,s=n.y,o=r.x-i,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*o/3,y:s-l},{x:i+5*o/6,y:s-l},{x:i+o,y:s},{x:i+5*o/6,y:s+l},{x:i+2*o/3,y:s+l}],r.label.x=r.x,r.label.y=r.y}})}function X5(e,t){return oh(ch(e,t),Number)}function K5(e){var t={};return rt(e,function(r,n){t[n.toLowerCase()]=r}),t}var svt,avt,ovt,lvt,cvt,uvt,hvt,fvt,$X=x(()=>{"use strict";fe();aa();OY();GY();A5();M5();H5();hX();DX();IX();FX();Ro();a(Y0,"layout");a(nvt,"runLayout");a(ivt,"updateInputGraph");svt=["nodesep","edgesep","ranksep","marginx","marginy"],avt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ovt=["acyclicer","ranker","rankdir","align"],lvt=["width","height"],cvt={width:0,height:0},uvt=["minlen","weight","width","height","labeloffset"],hvt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},fvt=["labelpos"];a(dvt,"buildLayoutGraph");a(pvt,"makeSpaceForEdgeLabels");a(mvt,"injectEdgeLabelProxies");a(gvt,"assignRankMinMax");a(yvt,"removeEdgeLabelProxies");a(xvt,"translateGraph");a(bvt,"assignNodeIntersects");a(kvt,"fixupEdgeLabelCoords");a(Tvt,"reversePointsForReversedEdges");a(Svt,"removeBorderNodes");a(_vt,"removeSelfEdges");a(Cvt,"insertSelfEdges");a(wvt,"positionSelfEdges");a(X5,"selectNumberAttrs");a(K5,"canonicalize")});var Q5=x(()=>{"use strict";A5();$X();M5();H5()});function oa(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Evt(e),edges:vvt(e)};return Fe(e.graph())||(t.value=Sr(e.graph())),t}function Evt(e){return Dt(e.nodes(),function(t){var r=e.node(t),n=e.parent(t),i={v:t};return Fe(r)||(i.value=r),Fe(n)||(i.parent=n),i})}function vvt(e){return Dt(e.edges(),function(t){var r=e.edge(t),n={v:t.v,w:t.w};return Fe(t.name)||(n.name=t.name),Fe(r)||(n.value=r),n})}var Z5=x(()=>{"use strict";fe();tT();a(oa,"write");a(Evt,"writeNodes");a(vvt,"writeEdges")});var Ue,dh,zX,WX,oT,Avt,UX,jX,Lvt,Id,VX,qX,HX,YX,XX,KX=x(()=>{"use strict";Vt();aa();Z5();Ue=new Map,dh=new Map,zX=new Map,WX=a(()=>{dh.clear(),zX.clear(),Ue.clear()},"clear"),oT=a((e,t)=>{let r=dh.get(t)||[];return B.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),Avt=a((e,t)=>{let r=dh.get(t)||[];return B.info("Descendants of ",t," is ",r),B.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||oT(e.v,t)||oT(e.w,t)||r.includes(e.w):(B.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),UX=a((e,t,r,n)=>{B.warn("Copying children of ",e,"root",n,"data",t.node(e),n);let i=t.children(e)||[];e!==n&&i.push(e),B.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(s=>{if(t.children(s).length>0)UX(s,t,r,n);else{let o=t.node(s);B.info("cp ",s," to ",n," with parent ",e),r.setNode(s,o),n!==t.parent(s)&&(B.warn("Setting parent",s,t.parent(s)),r.setParent(s,t.parent(s))),e!==n&&s!==e?(B.debug("Setting parent",s,e),r.setParent(s,e)):(B.info("In copy ",e,"root",n,"data",t.node(e),n),B.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==n,"node!==clusterId",s!==e));let l=t.edges(s);B.debug("Copying Edges",l),l.forEach(u=>{B.info("Edge",u);let h=t.edge(u.v,u.w,u.name);B.info("Edge data",h,n);try{Avt(u,n)?(B.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),B.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):B.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",e)}catch(f){B.error(f)}})}B.debug("Removing node",s),t.removeNode(s)})},"copy"),jX=a((e,t)=>{let r=t.children(e),n=[...r];for(let i of r)zX.set(i,e),n=[...n,...jX(i,t)];return n},"extractDescendants"),Lvt=a((e,t,r)=>{let n=e.edges().filter(u=>u.v===t||u.w===t),i=e.edges().filter(u=>u.v===r||u.w===r),s=n.map(u=>({v:u.v===t?r:u.v,w:u.w===t?t:u.w})),o=i.map(u=>({v:u.v,w:u.w}));return s.filter(u=>o.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),Id=a((e,t,r)=>{let n=t.children(e);if(B.trace("Searching children of id ",e,n),n.length<1)return e;let i;for(let s of n){let o=Id(s,t,r),l=Lvt(t,r,o);if(o)if(l.length>0)i=o;else return o}return i},"findNonClusterChild"),VX=a(e=>!Ue.has(e)||!Ue.get(e).externalConnections?e:Ue.has(e)?Ue.get(e).id:e,"getAnchorId"),qX=a((e,t)=>{if(!e||t>10){B.debug("Opting out, no graph ");return}else B.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(B.warn("Cluster identified",r," Replacement id in edges: ",Id(r,e,r)),dh.set(r,jX(r,e)),Ue.set(r,{id:Id(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let n=e.children(r),i=e.edges();n.length>0?(B.debug("Cluster identified",r,dh),i.forEach(s=>{let o=oT(s.v,r),l=oT(s.w,r);o^l&&(B.warn("Edge: ",s," leaves cluster ",r),B.warn("Descendants of XXX ",r,": ",dh.get(r)),Ue.get(r).externalConnections=!0)})):B.debug("Not a cluster ",r,dh)});for(let r of Ue.keys()){let n=Ue.get(r).id,i=e.parent(n);i!==r&&Ue.has(i)&&!Ue.get(i).externalConnections&&(Ue.get(r).id=i)}e.edges().forEach(function(r){let n=e.edge(r);B.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),B.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let i=r.v,s=r.w;if(B.warn("Fix XXX",Ue,"ids:",r.v,r.w,"Translating: ",Ue.get(r.v)," --- ",Ue.get(r.w)),Ue.get(r.v)||Ue.get(r.w)){if(B.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=VX(r.v),s=VX(r.w),e.removeEdge(r.v,r.w,r.name),i!==r.v){let o=e.parent(i);Ue.get(o).externalConnections=!0,n.fromCluster=r.v}if(s!==r.w){let o=e.parent(s);Ue.get(o).externalConnections=!0,n.toCluster=r.w}B.warn("Fix Replacing with XXX",i,s,r.name),e.setEdge(i,s,n,r.name)}}),B.warn("Adjusted Graph",oa(e)),HX(e,0),B.trace(Ue)},"adjustClustersAndEdges"),HX=a((e,t)=>{if(B.warn("extractor - ",t,oa(e),e.children("D")),t>10){B.error("Bailing out");return}let r=e.nodes(),n=!1;for(let i of r){let s=e.children(i);n=n||s.length>0}if(!n){B.debug("Done, no node has children",e.nodes());return}B.debug("Nodes = ",r,t);for(let i of r)if(B.debug("Extracting node",i,Ue,Ue.has(i)&&!Ue.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!Ue.has(i))B.debug("Not a cluster",i,t);else if(!Ue.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){B.warn("Cluster without external connections, without a parent and with children",i,t);let o=e.graph().rankdir==="TB"?"LR":"TB";Ue.get(i)?.clusterData?.dir&&(o=Ue.get(i).clusterData.dir,B.warn("Fixing dir",Ue.get(i).clusterData.dir,o));let l=new _r({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});B.warn("Old graph before copy",oa(e)),UX(i,e,l,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:Ue.get(i).clusterData,label:Ue.get(i).label,graph:l}),B.warn("New graph after copy node: (",i,")",oa(l)),B.debug("Old graph after copy",oa(e))}else B.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Ue.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),B.debug(Ue);r=e.nodes(),B.warn("New list of nodes",r);for(let i of r){let s=e.node(i);B.warn(" Now next level",i,s),s?.clusterNode&&HX(s.graph,t+1)}},"extractor"),YX=a((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(n=>{let i=e.children(n),s=YX(e,i);r=[...r,...s]}),r},"sorter"),XX=a(e=>YX(e,e.children()),"sortNodesByHierarchy")});var ZX={};Oe(ZX,{render:()=>Rvt});var QX,Rvt,JX=x(()=>{"use strict";Q5();Z5();aa();PA();Qt();KX();ik();Hb();OA();Vt();$0();pe();QX=a(async(e,t,r,n,i,s)=>{B.warn("Graph in recursive render:XAX",oa(t),i);let o=t.graph().rankdir;B.trace("Dir in recursive render - dir:",o);let l=e.insert("g").attr("class","root");t.nodes()?B.info("Recursive render XXX",t.nodes()):B.info("No nodes found for",t),t.edges().length>0&&B.info("Recursive edges",t.edge(t.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(y){let b=t.node(y);if(i!==void 0){let k=JSON.parse(JSON.stringify(i.clusterData));B.trace(`Setting data for parent cluster XXX
|
|
258
258
|
Node.id = `,y,`
|
|
259
259
|
data=`,k.height,`
|
|
260
260
|
Parent cluster`,i.height),t.setNode(i.id,k),t.parent(y)||(B.trace("Setting parent",y,i.id),t.setParent(y,i.id,k))}if(B.info("(Insert) Node XXX"+y+": "+JSON.stringify(t.node(y))),b?.clusterNode){B.info("Cluster identified XBX",y,b.width,t.node(y));let{ranksep:k,nodesep:T}=t.graph();b.graph.setGraph({...b.graph.graph(),ranksep:k+25,nodesep:T});let C=await QX(d,b.graph,r,n,t.node(y),s),A=C.elem;Ct(b,A),b.diff=C.diff||0,B.info("New compound node after recursive render XAX",y,"width",b.width,"height",b.height),gU(A,b)}else t.children(y).length>0?(B.trace("Cluster - the non recursive path XBX",y,b.id,b,b.width,"Graph:",t),B.trace(Id(b.id,t)),Ue.set(b.id,{id:Id(b.id,t),node:b})):(B.trace("Node - the non recursive path XAX",y,d,t.node(y),o),await dd(d,t.node(y),{config:s,dir:o}))})),await a(async()=>{let y=t.edges().map(async function(b){let k=t.edge(b.v,b.w,b.name);B.info("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(b)),B.info("Edge "+b.v+" -> "+b.w+": ",b," ",JSON.stringify(t.edge(b))),B.info("Fix",Ue,"ids:",b.v,b.w,"Translating: ",Ue.get(b.v),Ue.get(b.w)),await Jb(f,k)});await Promise.all(y)},"processEdges")(),B.info("Graph before layout:",JSON.stringify(oa(t))),B.info("############################################# XXX"),B.info("### Layout ### XXX"),B.info("############################################# XXX"),Y0(t),B.info("Graph after layout:",JSON.stringify(oa(t)));let m=0,{subGraphTitleTotalMargin:g}=kl(s);return await Promise.all(XX(t).map(async function(y){let b=t.node(y);if(B.info("Position XBX => "+y+": ("+b.x,","+b.y,") width: ",b.width," height: ",b.height),b?.clusterNode)b.y+=g,B.info("A tainted cluster node XBX1",y,b.id,b.width,b.height,b.x,b.y,t.parent(y)),Ue.get(b.id).node=b,G0(b);else if(t.children(y).length>0){B.info("A pure cluster node XBX1",y,b.id,b.x,b.y,b.width,b.height,t.parent(y)),b.height+=g,t.node(b.parentId);let k=b?.padding/2||0,T=b?.labelBBox?.height||0,C=T-k||0;B.debug("OffsetY",C,"labelHeight",T,"halfPadding",k),await fd(u,b),Ue.get(b.id).node=b}else{let k=t.node(b.parentId);b.y+=g/2,B.info("A regular node XBX1 - using the padding",b.id,"parent",b.parentId,b.width,b.height,b.x,b.y,"offsetY",b.offsetY,"parent",k,k?.offsetY,b),G0(b)}})),t.edges().forEach(function(y){let b=t.edge(y);B.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(b),b),b.points.forEach(A=>A.y+=g/2);let k=t.node(y.v);var T=t.node(y.w);let C=ek(h,b,Ue,r,k,T,n);tk(b,C)}),t.nodes().forEach(function(y){let b=t.node(y);B.info(y,b.type,b.diff),b.isGroup&&(m=b.diff)}),B.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),Rvt=a(async(e,t)=>{let r=new _r({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=t.select("g");rk(n,e.markers,e.type,e.diagramId),yU(),mU(),lU(),WX(),e.nodes.forEach(s=>{r.setNode(s.id,{...s}),s.parentId&&r.setParent(s.id,s.parentId)}),B.debug("Edges:",e.edges),e.edges.forEach(s=>{if(s.start===s.end){let o=s.start,l=o+"---"+o+"---1",u=o+"---"+o+"---2",h=r.node(o);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let f=structuredClone(s),d=structuredClone(s),p=structuredClone(s);f.label="",f.arrowTypeEnd="none",f.id=o+"-cyclic-special-1",d.arrowTypeStart="none",d.arrowTypeEnd="none",d.id=o+"-cyclic-special-mid",p.label="",h.isGroup&&(f.fromCluster=o,p.toCluster=o),p.id=o+"-cyclic-special-2",p.arrowTypeStart="none",r.setEdge(o,l,f,o+"-cyclic-special-0"),r.setEdge(l,u,d,o+"-cyclic-special-1"),r.setEdge(u,o,p,o+"-cyc<lic-special-2")}else r.setEdge(s.start,s.end,{...s},s.id)}),B.warn("Graph at first:",JSON.stringify(oa(r))),qX(r),B.warn("Graph after XAX:",JSON.stringify(oa(r)));let i=K();await QX(n,r,e.type,e.diagramId,void 0,i)},"render")});var X0,J5,Dvt,Do,Gc,ph=x(()=>{"use strict";bU();Vt();X0={},J5=a(e=>{for(let t of e)X0[t.name]=t},"registerLayoutLoaders"),Dvt=a(()=>{J5([{name:"dagre",loader:a(async()=>await Promise.resolve().then(()=>(JX(),ZX)),"loader")}])},"registerDefaultLayoutLoaders");Dvt();Do=a(async(e,t)=>{if(!(e.layoutAlgorithm in X0))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let r=X0[e.layoutAlgorithm];return(await r.loader()).render(e,t,xU,{algorithm:r.algorithm})},"render"),Gc=a((e="",{fallback:t="dagre"}={})=>{if(e in X0)return e;if(t in X0)return B.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")});var la,Nvt,Ivt,mh=x(()=>{"use strict";On();Vt();la=a((e,t,r,n)=>{e.attr("class",r);let{width:i,height:s,x:o,y:l}=Nvt(e,t);Ar(e,s,i,n);let u=Ivt(o,l,i,s,t);e.attr("viewBox",u),B.debug(`viewBox configured: ${u} with padding: ${t}`)},"setupViewPortForSVG"),Nvt=a((e,t)=>{let r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),Ivt=a((e,t,r,n,i)=>`${e-i} ${t-i} ${r} ${n}`,"createViewBox")});var Mvt,Ovt,tK,eK=x(()=>{"use strict";Ge();pe();Vt();hd();ph();mh();Ce();Mvt=a(function(e,t){return t.db.getClasses()},"getClasses"),Ovt=a(async function(e,t,r,n){B.info("REF0:"),B.info("Drawing state diagram (v2)",t);let{securityLevel:i,flowchart:s,layout:o}=K(),l;i==="sandbox"&&(l=xt("#i"+t));let u=i==="sandbox"?l.nodes()[0].contentDocument:document;B.debug("Before getData: ");let h=n.db.getData();B.debug("Data: ",h);let f=So(t,i),d=n.db.getDirection();h.type=n.type,h.layoutAlgorithm=Gc(o),h.layoutAlgorithm==="dagre"&&o==="elk"&&B.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),h.direction=d,h.nodeSpacing=s?.nodeSpacing||50,h.rankSpacing=s?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=t,B.debug("REF1:",h),await Do(h,f);let p=h.config.flowchart?.diagramPadding??8;le.insertTitle(f,"flowchartTitleText",s?.titleTopMargin||0,n.db.getDiagramTitle()),la(f,p,"flowchart",s?.useMaxWidth||!1);for(let m of h.nodes){let g=xt(`#${t} [id="${m.id}"]`);if(!g||!m.link)continue;let y=u.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),i==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);let b=g.insert(function(){return y},":first-child"),k=g.select(".label-container");k&&b.append(function(){return k.node()});let T=g.select(".label");T&&b.append(function(){return T.node()})}},"draw"),tK={getClasses:Mvt,draw:Ovt}});var t6,e6,rK=x(()=>{"use strict";t6=(function(){var e=a(function(qr,ue,ke,Ne){for(ke=ke||{},Ne=qr.length;Ne--;ke[qr[Ne]]=ue);return ke},"o"),t=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],s=[2,2],o=[1,13],l=[1,14],u=[1,15],h=[1,16],f=[1,23],d=[1,25],p=[1,26],m=[1,27],g=[1,49],y=[1,48],b=[1,29],k=[1,30],T=[1,31],C=[1,32],A=[1,33],w=[1,44],D=[1,46],G=[1,42],v=[1,47],R=[1,43],F=[1,50],S=[1,45],O=[1,51],E=[1,52],_=[1,34],L=[1,35],N=[1,36],P=[1,37],I=[1,57],M=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],V=[1,61],$=[1,60],q=[1,62],tt=[8,9,11,75,77,78],ft=[1,78],H=[1,91],kt=[1,96],ht=[1,95],yt=[1,92],ot=[1,88],dt=[1,94],it=[1,90],Q=[1,97],et=[1,93],X=[1,98],st=[1,89],U=[8,9,10,11,40,75,77,78],gt=[8,9,10,11,40,46,75,77,78],z=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ge=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],lt=[44,60,89,102,105,106,109,111,114,115,116],jt=[1,121],Me=[1,122],se=[1,124],Nt=[1,123],At=[44,60,62,74,89,102,105,106,109,111,114,115,116],bt=[1,133],ct=[1,147],Lt=[1,148],Z=[1,149],Mt=[1,150],W=[1,135],Gt=[1,137],j=[1,141],vt=[1,142],mt=[1,143],Xt=[1,144],Ft=[1,145],_t=[1,146],Qe=[1,151],It=[1,152],xr=[1,131],Ze=[1,132],yn=[1,139],Ae=[1,134],Se=[1,138],Je=[1,136],_e=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],hr=[1,154],Cn=[1,156],ve=[8,9,11],$e=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Le=[1,176],xe=[1,172],ce=[1,173],ye=[1,177],be=[1,174],Ht=[1,175],Nn=[77,116,119],ne=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ri=[10,106],xn=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Br=[1,247],vr=[1,245],mi=[1,249],Zt=[1,243],nt=[1,244],$t=[1,246],Kt=[1,248],or=[1,250],an=[1,268],hn=[8,9,11,106],jr=[8,9,10,11,60,84,105,106,109,110,111,112],ks={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:a(function(ue,ke,Ne,Wt,Fr,Y,fu){var J=Y.length-1;switch(Fr){case 2:this.$=[];break;case 3:(!Array.isArray(Y[J])||Y[J].length>0)&&Y[J-1].push(Y[J]),this.$=Y[J-1];break;case 4:case 183:this.$=Y[J];break;case 11:Wt.setDirection("TB"),this.$="TB";break;case 12:Wt.setDirection(Y[J-1]),this.$=Y[J-1];break;case 27:this.$=Y[J-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Wt.addSubGraph(Y[J-6],Y[J-1],Y[J-4]);break;case 34:this.$=Wt.addSubGraph(Y[J-3],Y[J-1],Y[J-3]);break;case 35:this.$=Wt.addSubGraph(void 0,Y[J-1],void 0);break;case 37:this.$=Y[J].trim(),Wt.setAccTitle(this.$);break;case 38:case 39:this.$=Y[J].trim(),Wt.setAccDescription(this.$);break;case 43:this.$=Y[J-1]+Y[J];break;case 44:this.$=Y[J];break;case 45:Wt.addVertex(Y[J-1][Y[J-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Y[J]),Wt.addLink(Y[J-3].stmt,Y[J-1],Y[J-2]),this.$={stmt:Y[J-1],nodes:Y[J-1].concat(Y[J-3].nodes)};break;case 46:Wt.addLink(Y[J-2].stmt,Y[J],Y[J-1]),this.$={stmt:Y[J],nodes:Y[J].concat(Y[J-2].nodes)};break;case 47:Wt.addLink(Y[J-3].stmt,Y[J-1],Y[J-2]),this.$={stmt:Y[J-1],nodes:Y[J-1].concat(Y[J-3].nodes)};break;case 48:this.$={stmt:Y[J-1],nodes:Y[J-1]};break;case 49:Wt.addVertex(Y[J-1][Y[J-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Y[J]),this.$={stmt:Y[J-1],nodes:Y[J-1],shapeData:Y[J]};break;case 50:this.$={stmt:Y[J],nodes:Y[J]};break;case 51:this.$=[Y[J]];break;case 52:Wt.addVertex(Y[J-5][Y[J-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Y[J-4]),this.$=Y[J-5].concat(Y[J]);break;case 53:this.$=Y[J-4].concat(Y[J]);break;case 54:this.$=Y[J];break;case 55:this.$=Y[J-2],Wt.setClass(Y[J-2],Y[J]);break;case 56:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"square");break;case 57:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"doublecircle");break;case 58:this.$=Y[J-5],Wt.addVertex(Y[J-5],Y[J-2],"circle");break;case 59:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"ellipse");break;case 60:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"stadium");break;case 61:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"subroutine");break;case 62:this.$=Y[J-7],Wt.addVertex(Y[J-7],Y[J-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Y[J-5],Y[J-3]]]));break;case 63:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"cylinder");break;case 64:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"round");break;case 65:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"diamond");break;case 66:this.$=Y[J-5],Wt.addVertex(Y[J-5],Y[J-2],"hexagon");break;case 67:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"odd");break;case 68:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"trapezoid");break;case 69:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"inv_trapezoid");break;case 70:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"lean_right");break;case 71:this.$=Y[J-3],Wt.addVertex(Y[J-3],Y[J-1],"lean_left");break;case 72:this.$=Y[J],Wt.addVertex(Y[J]);break;case 73:Y[J-1].text=Y[J],this.$=Y[J-1];break;case 74:case 75:Y[J-2].text=Y[J-1],this.$=Y[J-2];break;case 76:this.$=Y[J];break;case 77:var wn=Wt.destructLink(Y[J],Y[J-2]);this.$={type:wn.type,stroke:wn.stroke,length:wn.length,text:Y[J-1]};break;case 78:var wn=Wt.destructLink(Y[J],Y[J-2]);this.$={type:wn.type,stroke:wn.stroke,length:wn.length,text:Y[J-1],id:Y[J-3]};break;case 79:this.$={text:Y[J],type:"text"};break;case 80:this.$={text:Y[J-1].text+""+Y[J],type:Y[J-1].type};break;case 81:this.$={text:Y[J],type:"string"};break;case 82:this.$={text:Y[J],type:"markdown"};break;case 83:var wn=Wt.destructLink(Y[J]);this.$={type:wn.type,stroke:wn.stroke,length:wn.length};break;case 84:var wn=Wt.destructLink(Y[J]);this.$={type:wn.type,stroke:wn.stroke,length:wn.length,id:Y[J-1]};break;case 85:this.$=Y[J-1];break;case 86:this.$={text:Y[J],type:"text"};break;case 87:this.$={text:Y[J-1].text+""+Y[J],type:Y[J-1].type};break;case 88:this.$={text:Y[J],type:"string"};break;case 89:case 104:this.$={text:Y[J],type:"markdown"};break;case 101:this.$={text:Y[J],type:"text"};break;case 102:this.$={text:Y[J-1].text+""+Y[J],type:Y[J-1].type};break;case 103:this.$={text:Y[J],type:"text"};break;case 105:this.$=Y[J-4],Wt.addClass(Y[J-2],Y[J]);break;case 106:this.$=Y[J-4],Wt.setClass(Y[J-2],Y[J]);break;case 107:case 115:this.$=Y[J-1],Wt.setClickEvent(Y[J-1],Y[J]);break;case 108:case 116:this.$=Y[J-3],Wt.setClickEvent(Y[J-3],Y[J-2]),Wt.setTooltip(Y[J-3],Y[J]);break;case 109:this.$=Y[J-2],Wt.setClickEvent(Y[J-2],Y[J-1],Y[J]);break;case 110:this.$=Y[J-4],Wt.setClickEvent(Y[J-4],Y[J-3],Y[J-2]),Wt.setTooltip(Y[J-4],Y[J]);break;case 111:this.$=Y[J-2],Wt.setLink(Y[J-2],Y[J]);break;case 112:this.$=Y[J-4],Wt.setLink(Y[J-4],Y[J-2]),Wt.setTooltip(Y[J-4],Y[J]);break;case 113:this.$=Y[J-4],Wt.setLink(Y[J-4],Y[J-2],Y[J]);break;case 114:this.$=Y[J-6],Wt.setLink(Y[J-6],Y[J-4],Y[J]),Wt.setTooltip(Y[J-6],Y[J-2]);break;case 117:this.$=Y[J-1],Wt.setLink(Y[J-1],Y[J]);break;case 118:this.$=Y[J-3],Wt.setLink(Y[J-3],Y[J-2]),Wt.setTooltip(Y[J-3],Y[J]);break;case 119:this.$=Y[J-3],Wt.setLink(Y[J-3],Y[J-2],Y[J]);break;case 120:this.$=Y[J-5],Wt.setLink(Y[J-5],Y[J-4],Y[J]),Wt.setTooltip(Y[J-5],Y[J-2]);break;case 121:this.$=Y[J-4],Wt.addVertex(Y[J-2],void 0,void 0,Y[J]);break;case 122:this.$=Y[J-4],Wt.updateLink([Y[J-2]],Y[J]);break;case 123:this.$=Y[J-4],Wt.updateLink(Y[J-2],Y[J]);break;case 124:this.$=Y[J-8],Wt.updateLinkInterpolate([Y[J-6]],Y[J-2]),Wt.updateLink([Y[J-6]],Y[J]);break;case 125:this.$=Y[J-8],Wt.updateLinkInterpolate(Y[J-6],Y[J-2]),Wt.updateLink(Y[J-6],Y[J]);break;case 126:this.$=Y[J-6],Wt.updateLinkInterpolate([Y[J-4]],Y[J]);break;case 127:this.$=Y[J-6],Wt.updateLinkInterpolate(Y[J-4],Y[J]);break;case 128:case 130:this.$=[Y[J]];break;case 129:case 131:Y[J-2].push(Y[J]),this.$=Y[J-2];break;case 133:this.$=Y[J-1]+Y[J];break;case 181:this.$=Y[J];break;case 182:this.$=Y[J-1]+""+Y[J];break;case 184:this.$=Y[J-1]+""+Y[J];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:n},{1:[3]},e(i,s,{5:6}),{4:7,9:t,10:r,12:n},{4:8,9:t,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:C,88:A,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E,121:_,122:L,123:N,124:P},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,54],9:[1,55],10:I,15:53,18:56},e(M,[2,3]),e(M,[2,4]),e(M,[2,5]),e(M,[2,6]),e(M,[2,7]),e(M,[2,8]),{8:V,9:$,11:q,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:V,9:$,11:q,21:67},{8:V,9:$,11:q,21:68},{8:V,9:$,11:q,21:69},{8:V,9:$,11:q,21:70},{8:V,9:$,11:q,21:71},{8:V,9:$,10:[1,72],11:q,21:73},e(M,[2,36]),{35:[1,74]},{37:[1,75]},e(M,[2,39]),e(tt,[2,50],{18:76,39:77,10:I,40:ft}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:H,44:kt,60:ht,80:[1,86],89:yt,95:[1,83],97:[1,84],101:85,105:ot,106:dt,109:it,111:Q,114:et,115:X,116:st,120:87},e(M,[2,185]),e(M,[2,186]),e(M,[2,187]),e(M,[2,188]),e(U,[2,51]),e(U,[2,54],{46:[1,99]}),e(gt,[2,72],{113:112,29:[1,100],44:g,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:y,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:w,102:D,105:G,106:v,109:R,111:F,114:S,115:O,116:E}),e(z,[2,181]),e(z,[2,142]),e(z,[2,143]),e(z,[2,144]),e(z,[2,145]),e(z,[2,146]),e(z,[2,147]),e(z,[2,148]),e(z,[2,149]),e(z,[2,150]),e(z,[2,151]),e(z,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,113]},e(ge,[2,26],{18:114,10:I}),e(M,[2,27]),{42:115,43:38,44:g,45:39,47:40,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},e(M,[2,40]),e(M,[2,41]),e(M,[2,42]),e(lt,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:jt,81:Me,116:se,119:Nt},{75:[1,125],77:[1,126]},e(At,[2,83]),e(M,[2,28]),e(M,[2,29]),e(M,[2,30]),e(M,[2,31]),e(M,[2,32]),{10:bt,12:ct,14:Lt,27:Z,28:127,32:Mt,44:W,60:Gt,75:j,80:[1,129],81:[1,130],83:140,84:vt,85:mt,86:Xt,87:Ft,88:_t,89:Qe,90:It,91:128,105:xr,109:Ze,111:yn,114:Ae,115:Se,116:Je},e(_e,s,{5:153}),e(M,[2,37]),e(M,[2,38]),e(tt,[2,48],{44:hr}),e(tt,[2,49],{18:155,10:I,40:Cn}),e(U,[2,44]),{44:g,47:157,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},{102:[1,158],103:159,105:[1,160]},{44:g,47:161,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},{44:g,47:162,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},e(ve,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e(ve,[2,115],{120:167,10:[1,166],14:H,44:kt,60:ht,89:yt,105:ot,106:dt,109:it,111:Q,114:et,115:X,116:st}),e(ve,[2,117],{10:[1,168]}),e($e,[2,183]),e($e,[2,170]),e($e,[2,171]),e($e,[2,172]),e($e,[2,173]),e($e,[2,174]),e($e,[2,175]),e($e,[2,176]),e($e,[2,177]),e($e,[2,178]),e($e,[2,179]),e($e,[2,180]),{44:g,47:169,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},{30:170,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:178,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:180,50:[1,179],67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:181,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:182,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:183,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{109:[1,184]},{30:185,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:186,65:[1,187],67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:188,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:189,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{30:190,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},e(z,[2,182]),e(i,[2,20]),e(ge,[2,25]),e(tt,[2,46],{39:191,18:192,10:I,40:ft}),e(lt,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{77:[1,196],79:197,116:se,119:Nt},e(Nn,[2,79]),e(Nn,[2,81]),e(Nn,[2,82]),e(Nn,[2,168]),e(Nn,[2,169]),{76:198,79:120,80:jt,81:Me,116:se,119:Nt},e(At,[2,84]),{8:V,9:$,10:bt,11:q,12:ct,14:Lt,21:200,27:Z,29:[1,199],32:Mt,44:W,60:Gt,75:j,83:140,84:vt,85:mt,86:Xt,87:Ft,88:_t,89:Qe,90:It,91:201,105:xr,109:Ze,111:yn,114:Ae,115:Se,116:Je},e(ne,[2,101]),e(ne,[2,103]),e(ne,[2,104]),e(ne,[2,157]),e(ne,[2,158]),e(ne,[2,159]),e(ne,[2,160]),e(ne,[2,161]),e(ne,[2,162]),e(ne,[2,163]),e(ne,[2,164]),e(ne,[2,165]),e(ne,[2,166]),e(ne,[2,167]),e(ne,[2,90]),e(ne,[2,91]),e(ne,[2,92]),e(ne,[2,93]),e(ne,[2,94]),e(ne,[2,95]),e(ne,[2,96]),e(ne,[2,97]),e(ne,[2,98]),e(ne,[2,99]),e(ne,[2,100]),{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,202],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:C,88:A,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E,121:_,122:L,123:N,124:P},{10:I,18:203},{44:[1,204]},e(U,[2,43]),{10:[1,205],44:g,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:112,114:S,115:O,116:E},{10:[1,206]},{10:[1,207],106:[1,208]},e(Ri,[2,128]),{10:[1,209],44:g,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:112,114:S,115:O,116:E},{10:[1,210],44:g,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:112,114:S,115:O,116:E},{80:[1,211]},e(ve,[2,109],{10:[1,212]}),e(ve,[2,111],{10:[1,213]}),{80:[1,214]},e($e,[2,184]),{80:[1,215],98:[1,216]},e(U,[2,55],{113:112,44:g,60:y,89:w,102:D,105:G,106:v,109:R,111:F,114:S,115:O,116:E}),{31:[1,217],67:Le,82:218,116:ye,117:be,118:Ht},e(xn,[2,86]),e(xn,[2,88]),e(xn,[2,89]),e(xn,[2,153]),e(xn,[2,154]),e(xn,[2,155]),e(xn,[2,156]),{49:[1,219],67:Le,82:218,116:ye,117:be,118:Ht},{30:220,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{51:[1,221],67:Le,82:218,116:ye,117:be,118:Ht},{53:[1,222],67:Le,82:218,116:ye,117:be,118:Ht},{55:[1,223],67:Le,82:218,116:ye,117:be,118:Ht},{57:[1,224],67:Le,82:218,116:ye,117:be,118:Ht},{60:[1,225]},{64:[1,226],67:Le,82:218,116:ye,117:be,118:Ht},{66:[1,227],67:Le,82:218,116:ye,117:be,118:Ht},{30:228,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},{31:[1,229],67:Le,82:218,116:ye,117:be,118:Ht},{67:Le,69:[1,230],71:[1,231],82:218,116:ye,117:be,118:Ht},{67:Le,69:[1,233],71:[1,232],82:218,116:ye,117:be,118:Ht},e(tt,[2,45],{18:155,10:I,40:Cn}),e(tt,[2,47],{44:hr}),e(lt,[2,75]),e(lt,[2,74]),{62:[1,234],67:Le,82:218,116:ye,117:be,118:Ht},e(lt,[2,77]),e(Nn,[2,80]),{77:[1,235],79:197,116:se,119:Nt},{30:236,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},e(_e,s,{5:237}),e(ne,[2,102]),e(M,[2,35]),{43:238,44:g,45:39,47:40,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},{10:I,18:239},{10:Br,60:vr,84:mi,92:240,105:Zt,107:241,108:242,109:nt,110:$t,111:Kt,112:or},{10:Br,60:vr,84:mi,92:251,104:[1,252],105:Zt,107:241,108:242,109:nt,110:$t,111:Kt,112:or},{10:Br,60:vr,84:mi,92:253,104:[1,254],105:Zt,107:241,108:242,109:nt,110:$t,111:Kt,112:or},{105:[1,255]},{10:Br,60:vr,84:mi,92:256,105:Zt,107:241,108:242,109:nt,110:$t,111:Kt,112:or},{44:g,47:257,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},e(ve,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e(ve,[2,116]),e(ve,[2,118],{10:[1,261]}),e(ve,[2,119]),e(gt,[2,56]),e(xn,[2,87]),e(gt,[2,57]),{51:[1,262],67:Le,82:218,116:ye,117:be,118:Ht},e(gt,[2,64]),e(gt,[2,59]),e(gt,[2,60]),e(gt,[2,61]),{109:[1,263]},e(gt,[2,63]),e(gt,[2,65]),{66:[1,264],67:Le,82:218,116:ye,117:be,118:Ht},e(gt,[2,67]),e(gt,[2,68]),e(gt,[2,70]),e(gt,[2,69]),e(gt,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(lt,[2,78]),{31:[1,265],67:Le,82:218,116:ye,117:be,118:Ht},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,266],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:C,88:A,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E,121:_,122:L,123:N,124:P},e(U,[2,53]),{43:267,44:g,45:39,47:40,60:y,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E},e(ve,[2,121],{106:an}),e(hn,[2,130],{108:269,10:Br,60:vr,84:mi,105:Zt,109:nt,110:$t,111:Kt,112:or}),e(jr,[2,132]),e(jr,[2,134]),e(jr,[2,135]),e(jr,[2,136]),e(jr,[2,137]),e(jr,[2,138]),e(jr,[2,139]),e(jr,[2,140]),e(jr,[2,141]),e(ve,[2,122],{106:an}),{10:[1,270]},e(ve,[2,123],{106:an}),{10:[1,271]},e(Ri,[2,129]),e(ve,[2,105],{106:an}),e(ve,[2,106],{113:112,44:g,60:y,89:w,102:D,105:G,106:v,109:R,111:F,114:S,115:O,116:E}),e(ve,[2,110]),e(ve,[2,112],{10:[1,272]}),e(ve,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:V,9:$,11:q,21:277},e(M,[2,34]),e(U,[2,52]),{10:Br,60:vr,84:mi,105:Zt,107:278,108:242,109:nt,110:$t,111:Kt,112:or},e(jr,[2,133]),{14:H,44:kt,60:ht,89:yt,101:279,105:ot,106:dt,109:it,111:Q,114:et,115:X,116:st,120:87},{14:H,44:kt,60:ht,89:yt,101:280,105:ot,106:dt,109:it,111:Q,114:et,115:X,116:st,120:87},{98:[1,281]},e(ve,[2,120]),e(gt,[2,58]),{30:282,67:Le,80:xe,81:ce,82:171,116:ye,117:be,118:Ht},e(gt,[2,66]),e(_e,s,{5:283}),e(hn,[2,131],{108:269,10:Br,60:vr,84:mi,105:Zt,109:nt,110:$t,111:Kt,112:or}),e(ve,[2,126],{120:167,10:[1,284],14:H,44:kt,60:ht,89:yt,105:ot,106:dt,109:it,111:Q,114:et,115:X,116:st}),e(ve,[2,127],{120:167,10:[1,285],14:H,44:kt,60:ht,89:yt,105:ot,106:dt,109:it,111:Q,114:et,115:X,116:st}),e(ve,[2,114]),{31:[1,286],67:Le,82:218,116:ye,117:be,118:Ht},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,287],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:C,88:A,89:w,102:D,105:G,106:v,109:R,111:F,113:41,114:S,115:O,116:E,121:_,122:L,123:N,124:P},{10:Br,60:vr,84:mi,92:288,105:Zt,107:241,108:242,109:nt,110:$t,111:Kt,112:or},{10:Br,60:vr,84:mi,92:289,105:Zt,107:241,108:242,109:nt,110:$t,111:Kt,112:or},e(gt,[2,62]),e(M,[2,33]),e(ve,[2,124],{106:an}),e(ve,[2,125],{106:an})],defaultActions:{},parseError:a(function(ue,ke){if(ke.recoverable)this.trace(ue);else{var Ne=new Error(ue);throw Ne.hash=ke,Ne}},"parseError"),parse:a(function(ue){var ke=this,Ne=[0],Wt=[],Fr=[null],Y=[],fu=this.table,J="",wn=0,G8=0,V8=0,Ult=2,z8=1,jlt=Y.slice.call(arguments,1),Vn=Object.create(this.lexer),du={yy:{}};for(var wC in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wC)&&(du.yy[wC]=this.yy[wC]);Vn.setInput(ue,du.yy),du.yy.lexer=Vn,du.yy.parser=this,typeof Vn.yylloc>"u"&&(Vn.yylloc={});var EC=Vn.yylloc;Y.push(EC);var qlt=Vn.options&&Vn.options.ranges;typeof du.yy.parseError=="function"?this.parseError=du.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function VMt(Ts){Ne.length=Ne.length-2*Ts,Fr.length=Fr.length-Ts,Y.length=Y.length-Ts}a(VMt,"popStack");function Hlt(){var Ts;return Ts=Wt.pop()||Vn.lex()||z8,typeof Ts!="number"&&(Ts instanceof Array&&(Wt=Ts,Ts=Wt.pop()),Ts=ke.symbols_[Ts]||Ts),Ts}a(Hlt,"lex");for(var Di,vC,pu,Ws,zMt,AC,sf={},rx,Xo,W8,nx;;){if(pu=Ne[Ne.length-1],this.defaultActions[pu]?Ws=this.defaultActions[pu]:((Di===null||typeof Di>"u")&&(Di=Hlt()),Ws=fu[pu]&&fu[pu][Di]),typeof Ws>"u"||!Ws.length||!Ws[0]){var LC="";nx=[];for(rx in fu[pu])this.terminals_[rx]&&rx>Ult&&nx.push("'"+this.terminals_[rx]+"'");Vn.showPosition?LC="Parse error on line "+(wn+1)+`:
|
|
@@ -941,7 +941,7 @@ Expecting `+At.join(", ")+", got '"+(this.terminals_[st]||st)+"'":bt="Parse erro
|
|
|
941
941
|
fill: ${e.titleColor||e.textColor};
|
|
942
942
|
font-family: ${e.fontFamily};
|
|
943
943
|
}
|
|
944
|
-
`,"getStyles"),rrt=pLt});var irt={};Oe(irt,{diagram:()=>mLt});var mLt,srt=x(()=>{"use strict";Net();Zet();ert();nrt();mLt={parser:Det,db:Ket,renderer:trt,styles:rrt}});var lrt,crt=x(()=>{"use strict";jh();Vt();lrt={parse:a(async e=>{let t=await Fs("info",e);B.debug(t)},"parse")}});var Py,XD=x(()=>{Py={name:"mermaid",version:"11.12.
|
|
944
|
+
`,"getStyles"),rrt=pLt});var irt={};Oe(irt,{diagram:()=>mLt});var mLt,srt=x(()=>{"use strict";Net();Zet();ert();nrt();mLt={parser:Det,db:Ket,renderer:trt,styles:rrt}});var lrt,crt=x(()=>{"use strict";jh();Vt();lrt={parse:a(async e=>{let t=await Fs("info",e);B.debug(t)},"parse")}});var Py,XD=x(()=>{Py={name:"mermaid",version:"11.12.1",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}});var kLt,TLt,urt,hrt=x(()=>{"use strict";XD();kLt={version:Py.version+"-tiny"},TLt=a(()=>kLt.version,"getVersion"),urt={getVersion:TLt}});var Ai,Bl=x(()=>{"use strict";Ge();pe();Ai=a(e=>{let{securityLevel:t}=K(),r=xt("body");if(t==="sandbox"){let s=xt(`#i${e}`).node()?.contentDocument??document;r=xt(s.body)}return r.select(`#${e}`)},"selectSvgElement")});var SLt,frt,drt=x(()=>{"use strict";Vt();Bl();On();SLt=a((e,t,r)=>{B.debug(`rendering info diagram
|
|
945
945
|
`+e);let n=Ai(t);Ar(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),frt={draw:SLt}});var prt={};Oe(prt,{diagram:()=>_Lt});var _Lt,mrt=x(()=>{"use strict";crt();hrt();drt();_Lt={parser:lrt,db:urt,renderer:frt}});var xrt,KD,k_,QD,ELt,vLt,ALt,LLt,RLt,DLt,NLt,T_,ZD=x(()=>{"use strict";Vt();bn();_s();xrt=ze.pie,KD={sections:new Map,showData:!1,config:xrt},k_=KD.sections,QD=KD.showData,ELt=structuredClone(xrt),vLt=a(()=>structuredClone(ELt),"getConfig"),ALt=a(()=>{k_=new Map,QD=KD.showData,Ye()},"clear"),LLt=a(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);k_.has(e)||(k_.set(e,t),B.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),RLt=a(()=>k_,"getSections"),DLt=a(e=>{QD=e},"setShowData"),NLt=a(()=>QD,"getShowData"),T_={getConfig:vLt,clear:ALt,setDiagramTitle:lr,getDiagramTitle:nr,setAccTitle:Xe,getAccTitle:tr,setAccDescription:er,getAccDescription:rr,addSection:LLt,getSections:RLt,setShowData:DLt,getShowData:NLt}});var ILt,brt,krt=x(()=>{"use strict";jh();Vt();gm();ZD();ILt=a((e,t)=>{jo(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),brt={parse:a(async e=>{let t=await Fs("pie",e);B.debug(t),ILt(t,T_)},"parse")}});var MLt,Trt,Srt=x(()=>{"use strict";MLt=a(e=>`
|
|
946
946
|
.pieCircle{
|
|
947
947
|
stroke: ${e.pieStrokeColor};
|