{"version":3,"sources":["build/dist/dagre-d3.core.js"],"names":["f","exports","module","define","amd","g","window","global","self","this","dagreD3","r","e","n","t","o","i","c","require","u","a","Error","code","p","call","length","1","graphlib","dagre","intersect","render","util","version","./lib/dagre","./lib/graphlib","./lib/intersect","./lib/render","./lib/util","./lib/version","2","default","normal","vee","undirected","parent","id","edge","type","marker","append","attr","path","style","applyStyle","./util","3","d3","addLabel","createClusters","selection","clusters","nodes","filter","v","isSubgraph","svgClusters","selectAll","data","remove","enter","node","applyTransition","each","thisGroup","select","labelGroup","clusterLabelPos","domCluster","exitSelection","exit","./d3","./label/add-label","4","_","createEdgeLabels","svgEdgeLabels","edges","edgeToId","classed","root","label","bbox","getBBox","labelId","has","width","height","./lodash","5","intersectNode","createEdgePaths","arrows","previousPaths","newPaths","svgPaths","merge","undefined","domEdge","elem","applyClass","arrowheadId","uniqueId","makeFragmentRef","location","href","calcPoints","arrowhead","url","fragmentId","baseUrl","split","tail","head","w","points","slice","unshift","push","createLine","line","svg","x","d","y","curve","interpolate","getCoords","matrix","ownerSVGElement","getScreenCTM","inverse","multiply","translate","svgPathsEnter","sourceElem","range","map","svgPathExit","./intersect/intersect-node","6","createNodes","shapes","simpleNodes","svgNodes","labelDom","shape","pick","paddingLeft","paddingRight","paddingTop","paddingBottom","shapeSvg","shapeBBox","7","8","9","10","circle","ellipse","polygon","rect","./intersect-circle","./intersect-ellipse","./intersect-node","./intersect-polygon","./intersect-rect","11","intersectEllipse","intersectCircle","rx","point","12","ry","cx","cy","px","py","det","Math","sqrt","dx","abs","dy","13","intersectLine","p1","p2","q1","q2","a1","a2","b1","b2","c1","c2","r1","r2","r3","r4","denom","offset","num","sameSign","14","15","intersectPolygon","polyPoints","x1","y1","intersections","minX","Number","POSITIVE_INFINITY","minY","forEach","entry","min","left","top","console","log","sort","q","pdx","pdy","distp","qdx","qdy","distq","./intersect-line","16","intersectRect","h","sx","sy","17","addHtmlLabel","fo","div","insert","html","labelStyle","client","getBoundingClientRect","../util","18","addTextLabel","addSVGLabel","labelSvg","labelType","labelBBox","./add-html-label","./add-svg-label","./add-text-label","19","domNode","appendChild","20","lines","processEscapeSequences","text","newText","escaped","ch","21","lodash","defaults","isFunction","isPlainObject","lodash/defaults","lodash/each","lodash/has","lodash/isFunction","lodash/isPlainObject","lodash/pick","lodash/range","lodash/uniqueId","22","positionClusters","created","23","positionEdgeLabels","24","positionNodes","25","layout","fn","preProcessGraph","outputGroup","createOrSelectGroup","clustersGroup","edgePathsGroup","edgeLabels","postProcessGraph","value","arguments","NODE_DEFAULT_ATTRS","EDGE_DEFAULT_ATTRS","curveLinear","children","paddingX","paddingY","padding","k","_prevWidth","_prevHeight","name","empty","./arrows","./create-clusters","./create-edge-labels","./create-edge-paths","./create-nodes","./dagre","./position-clusters","./position-edge-labels","./position-nodes","./shapes","26","diamond","max","SQRT2","join","./intersect/intersect-circle","./intersect/intersect-ellipse","./intersect/intersect-polygon","./intersect/intersect-rect","27","escapeId","ID_DELIM","str","String","replace","dom","styleFn","classFn","otherClasses","graph","transition","28"],"mappings":"CAAA,SAAUA,GAAG,UAAUC,UAAU,iBAAiBC,SAAS,YAAY,CAACA,OAAOD,QAAQD,SAAS,UAAUG,SAAS,YAAYA,OAAOC,IAAI,CAACD,OAAO,GAAGH,OAAO,CAAC,IAAIK,EAAE,UAAUC,SAAS,YAAY,CAACD,EAAEC,YAAY,UAAUC,SAAS,YAAY,CAACF,EAAEE,YAAY,UAAUC,OAAO,YAAY,CAACH,EAAEG,SAAS,CAACH,EAAEI,KAAKJ,EAAEK,QAAUV,MAA5T,CAAmU,WAAW,IAAIG,OAAOD,OAAOD,QAAQ,OAAO,WAAY,SAASU,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAAEC,EAAEhB,GAAG,IAAIa,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,IAAIC,EAAE,mBAAmBC,SAASA,QAAQ,IAAIlB,GAAGiB,EAAE,OAAOA,EAAED,GAAG,GAAG,GAAGG,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