@mindfusion/graphs 4.0.3 → 4.0.4
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/cjs/graphs.js +1 -1
- package/dist/esm/graphs.js +1 -1
- package/dist/umd/graphs.js +1 -1
- package/package.json +1 -1
package/dist/esm/graphs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x19e5=['edges','outEdges','weight','clone','layer','balance','owner','remove','origin','destination','incidentWith','includes','getCommonEdge','find','getOtherEnd','getCommonEdges','every','edgeTo','getNeighbors','inEdges','push','forEach','degree','length','inDegree','outDegree','index','toString','getCommonVertex','joins','adjacentTo','changeOrigin','changeDestination','changeVertex','directTo','reverse','createReverseEdge','reversed','consecutiveNodes','reinit','modifiedNodes','root','Node','reduction','reduce','bubble','enqueue','count','dequeue','queued','getBlockedSiblings','parent','markUnblocked','immediateSiblings','blocked','getMaximalConsecutiveBlockedSiblings','pertinentChildCount','setPseudoRoot','pertinentLeafCount','templateL1','templateP1','templateQ1','pertinentRoot','hasChildren','label','full','type','pNode','children','fullChildren','templateP2','partialChildren','emptyChildren','addChild','templateP3','qNode','partial','moveFullChildrenTo','getFirstFullChild','removeChild','replaceChild','getFirstEmptyChild','templateP4','getPartialChild','becomeChild','destroy','templateP5','templateP6','fullChildrenAreEndMost','endMostChildren','checkLabelDirected','empty','add','destroyed','pseudoRoot','childrenAreFull','templateQ2','fullChildrenAreAdjacent','endMostChildrenAreEmptyOrPartial','fullChildrenAreAdjacentTo','contains','partialChildrenAtEnds','absorbPartialChild','siblingOf','init','data','directionIndicator','NodePair','readInReverseDirection','_type','circularLink','childCount','fullLeft','partialChildrenList','partialRight','_label','right','fullRight','partialLeft','undefined','getNonDirectedSibling','get','getUnblockedSiblings','getEndMostDirectedSibling','getOther','markBlocked','markQueued','fullChildrenList','twoChildrenLeft','addChildToPNode','left','removeChildFromPNode','addChildToQNode','removeChildFromQNode','addChildToPseudoRoot','addToFullList','addToPartialList','removeFromPartialList','replace','getPertinentNeighbor','getEndMostChild','getEmptyNeighbor','replaceFullChildrenWith','getFullLeavesFrom','removeAt','getLeaf','getAllNodes','getQChildren','Type','getFullLeaves','direction','nextPSibling','unmarked','nodes','trackDirection','directedTowardsIndex','indexOf','slice','isCycle','edgeFromVertex','splice','_bigAngles','embedding','graph','set','entries','edgeCopyToOrigMap','has','delete','getNextRightFaceEdge','reverseEdges','createDirectedEdges','replaceEdges','addEdge','getNext','getPrevious','isVertexBimodal','isBimodal','keys','replaceEdge','quasiCapacity','externalFace','countSourceSwitches','enumerateFaces','_faces','faceOnRightMap','enumerateFaceEdges','faceOnLeftMap','prevInEmbedding','insertEdge','getReverse','min','max','overlaps','getLeaves','item','collectLeaves','insert','swim','getMin','exchange','sink','lower','less','kess','floor','parentNode','childNode','reversedLinks','childEdges','toReversed','points','vertices','cloneSubset','vertexCopyToOrigMap','createReverseMaps','vertexOrigToCopyMap','tree','level','pop','layoutTraits','treeLayoutAssistant','Left','assistantPosition','Right','Normal','reassignLevels','treeLevels','collectLevels','childrenOf','createEdge','createEdgeP','createVertex','width','height','addVertex','debugId','setItemIndices','splitEdge','removeEdge','temporary','findShortestPathVS','findShortestPathSS','findShortestPathBfs','findShortestWeightedPathVS','value','MAX_VALUE','findShortestWeightedPathSS','searchCounter','dfsConnectivity','getBiconnectedComponents','getBiconnectedComponentsOfConnectedGraph','visitedEdges','foundComponents','secondLevel','biconnectivityDfs','cutVertices','stackToComponent2','searchOrder','backMostEdges','last','processed','addVertexAndOutEdges','shift','findPendantCut','addAll','getOutsideVertex','father','stillPlanar','getCutvertex','mergeBlocks','setNewParent','removeCnode','removeBnode','isPlanar','getOutsideVertexCP','embedOnSameFace','DualGraph','faces','containsAll','getOutsideVertexCPN','getVertices','test3EdgeConnectivity','getCutPairs','cutEdge','treeEdge','edge','child','any','findBlockSeparationPairs','findBlockSeparationPairsB','spTreeEdge','sort','replacementFor','forReverse','getEnds','depthFirstSearch','searchComponent','searchParent','getStNumbering','stOrder','convertToStGraph','isCycleEdge','isPlanarSingleBicomponent','verticesInStOrder','savedPqTree','getPlanarEmbedding','getPlanarEmbeddingSingleBicomp','addBlockEmbedding','getUpwardEmbedding','entireEmbed','getFullLeavesTo','savePqTree','entireEmbedDfs','unshift','findPlanarSubgraphByBookEmbedding','edgeOrigToCopyMap','clear','findPlanarSubgraphBySimpleEdgeInsertion','minAdjacenciesNeighbor','OverlapGraph','maxIndependentSet','intervals','vertexIntervals','MAX_SAFE_INTEGER','countAdjacencies','minDegreeVertex','removeVertex','planarize','findPlanarSubgraph','size','getDualGraph','getIncidentFaces','getFaceVertices','vertexToFaceMap','getCommonEdgeMinWeight','addChildren','splitFace','getDualGraphE','topologicalSort','postCounter','topologicalSortDfs','getWeightedTopologicalNumbering','getWeightedTopologicalNumberingTS','splitToMaxDegree','splitToMaxDegreeV','reorderTopologically','This\x20method\x20can\x20be\x20applied\x20only\x20on\x20an\x20acyclic\x20graph.','maxWeightedCliqueOfTransitiveDAG','Not\x20a\x20transitive\x20graph.','blockToBnodeMap','blocks','onComponentBlocks','cutVerticesB','cutVerticesV','isPendant','adjacentBlocks','directFromRoot','directFrom','isCnode','getBlock','getOutsideVertexN','mapVertices','targetGraph','cutToCnodeMap','isBnode','BlockCutpointGraph','incidentFaces','edgeToFaceMap','dgCreateVertex','dgCreateEdge','splitExternalFace','leftExFace','faceToVertexMap','rightExFace','rightExVertex','leftExVertex','cacheIncidentFace','getOriginalEdge','setFaceIndices','intervalVertices','intersects','maxWeightedIndependentSet','inclusionLevels','levelVertices','setInclusionLevel','assignVertexToLevel','links','items','isNode','getWeight','isLink','_expandable','_autoRoute','findPaths','findShortestPath','findLongestPath','findCycle','enumAllCycles','enumAllCyclesDirected','mark','pointStack','toDelete','vertexIdx','markedStack','deleted','enumCircuitsTarjan','anchoring','Ignore','keepGroupLayout','multipleGraphsPlacement','Vertical','_anchoring','_keepGroupLayout','_multipleGraphsPlacement','margins','_margins','setsLinkEndPoints','setsLinkPoints','requiresConnectedGraph','routeRepeatingLinks','requiresCascadingLinks','requiresHierarchyInfo','isStatic','levelDistance','nodeDistance','keepRootPosition','TopToBottom','linkType','requiresSimpleGraph','arrange','parentEdges','rarrange','isStraight','isHorizontal','Default','Straight','assignPoints','RightToLeft','Cascading','BottomToTop','LeftToRight','fromVertex','bottom','getType','constructor','__typeName','_levelDistance','_nodeDistance','_direction','_linkType','_reversedLinks','call','getGraphBounds','union','boundingRect','GetLFarCenter','GetLNearCenter','top','GetBNearCenter','GetBFarCenter','center','SetLinkPoints','_fcl_processed','_fcl_multiMerge','prototype','SetLinkPointsA','GetLinkPoints','GetLength','GetLCenter','GetBNear','GetBNearRect','GetBFarRect','GetLNear','GetLNearRect','GetLFar','GetL','OffsetL','OffsetOutLinks','node','fromCenterAndSize','orientation','Horizontal','nodeOrder','progressCounter','visitedNodes','postOrder','topologicalOrder','flowchartNodes','_mf_mm','branchings','placedNodes','getStartNodes','makeAcyclic','deferredMerge','composeFlowChart','measure','branchPadding','linkPadding','layoutRect','findPath','composeBlocks','isVisited','getIncomingDownLinks','registerMerge','getOutgoingLoopLinks','currentLink','setIncomingLink','followedByMergeNode','nextNodes','getFlowchartNode','getSequence','parentBlock','getDownLinks','isStartNode','isDownLink','isBackLink','getIncomingLoopLinks','isEndNode','getSize','segmentsFromPoints','pullLinksApart','_mf_segments','splitPaths','horizontal','abs','_branchPadding','_linkPadding','dumpGraph','log','************************','\x20\x20\x20\x20','flowchartLayout','fullBreadth','loopDepth','maxLoopDepth','arranged','incomingLink','getInLinks','getBackLinks','contentBreadth','getFullBreadth','getLoopDepth','getIncomingLink','getNode','_fcl_arranged','MoveNode','furthestL','getOutLinks','sequence','getContentBreadth','getArranged','arrangeOverflow','disjoint','GetBreadth','GetBCenter','getLinkPadding','middleBlock','rootNode','branches','mergeMap','centeredBranching','mergeNodes','centerNonEmptyBranch','twoEmptyBranches','connectNodeBorderCenters','arrangedAsMerge','GetBFar','_fcl_center','rightBlock','leftBlock','GetB','getBNearest','getBFurthest','sortBranches','concat','containsPoint','polylineIntersectsRect','polylinesIntersect','calcAngle','xint','yint','isEmpty','vertex','isRoot','branchCircles','measureCircles','arrangeCircles','sqrt','radius','angle','sin','centerDelta','centerX','centerY','childCircles','cos','rotatePoint','_root','layerDistance','siftingRounds','initialMinimizeCrossingsDown','uBaryCenter','dBaryCenter','uLinkCount','dLinkCount','uPriority','dummy','dummificationLevel','layers','gridPosition','dummify','minimizeCrossings','swapPairs','layout','assignCoordinates','setMinDist','indexInLayer','getMinDist','computeLeftClasses','nodeLeftClass','computeRightClasses','computeClasses','nodeRightClass','nodesInLongLink','POSITIVE_INFINITY','rightSibling','upNodes','diff','dump','layer\x20','placeRightToLeft','placeRight','leftSibling','NEGATIVE_INFINITY','downNodes','minDistances','placeLeftToRight','placeSequence','adjustDirections','MIN_VALUE','getNeighborOnLayer','placeSingle','combineSequences','placeLeft','layoutLayer','dPriority','moveLeft','calcDownData','calcUpData','moveRight','mapVirtualNode','nodeToLinkMap','linkToNodeMap','minimizeCrossingsDir','countCrossings','_layerDistance','_siftingRounds','iterations','refineStage','initialTemperature','temperature','calcRepulsionForce','calcSpringForce','applyForce','moveToEpsilonCircle','random','attraction','pow','repulsion','_iterations','ceil','requiresBezierLinks','_bendAdjacentLinks','bendAdjacentLinks','enableAssistants','compactAssistants','assistantType','branchBounds','offsetBranch','hasAssistants','treeHelper','branchDistance','intDiv','_keepRootPosition','_enableAssistants','_compactAssistants','squarify','layoutArea','containerPadding','master','calcWeights','arrangeSquare','arrangeSiblings','weights','doSquarify','evalRatio','layoutRow','padding','inflate','minNodeSize','subordinates','subtractPadding','layOutArea','headerSize','_orientation','_squarify','_padding','_layoutArea','_containerPadding','vertexPoints','edgePoints','cells','PointMap','bounds','Rectangle','MIN_SAFE_INTEGER','updateBounds','normalizePath','updateBoundsFromPoints','equals','Bend','columnWidths','rowHeights','minWidth','maxWidth','minHeight','maxHeight','columnPositions','rowPositions','getEdgePointPosition','horizontalEdges','getPosition','getEdgeBend','maxVNeighbors','verticalLane','maxHNeighbors','horizontalLane','getEdgeLane','val','refine','refineCacheEdges','refineDegreeOneVertices','refineUTurns','removeRedundantBends','removeUnusedRows','removeUnusedColumns','setApartOverlappingEdges','refineSpace','getCell','removeFromCell','content','containsVertexOrBend','removeEdgeOrBend','manhDistance','removeSegmentsFromRange','EdgeSegment','setSegmentsInRange','edgeContainsRange','containsEdgeSegment','verticalEdges','setHorizontalEdgesInRange','countEdges','containsVertex','setVerticalEdgesInRange','getBendNeighborPoints','neighborPoints','bendsToTheLeft','lane','maxNeighbors','PermutationSet','list','countHorizontalEdgesCrossings','permuteHorizontalEdgeLanes','containsEdge','first','countVerticalEdgesCrossings','bendsToTheTop','permuteVerticalEdgeLanes','Cell','getEdgeSegment','permuteLanes','key','permutations','current','heapPermute','addItem','swap','stsort','leftV','rightV','orig','destF','leftMostOutgoing','rightMostOutgoing','getInEdges','getOutMedian','getOutEdges','newHSegment','newVSegment','source','removeAllEdges','edgeToPathMap','pathToVertexMap','hSegments','vSegments','dest','vertexSegments','edgeSegments','drawingGrid','applyGrid','planarMakeBiconnected','leftMostIncoming','getInMedian','mergePaths','mergePath','setCellDimensions','minLaneSize','reverseRange','_refine','rightBisectorData','stretchFactor','arrangeLevel','calcRadius','leftBisectorData','angleData','calcBounds','_stretchFactor'];var _0x425c=function(_0x1ffbeb,_0x57a492){_0x1ffbeb=_0x1ffbeb-0x0;var _0x2fd9fb=_0x19e5[_0x1ffbeb];return _0x2fd9fb;};import{Utils,Queue,Grid}from'@mindfusion/collections';import{Rect,Point,Geometry,Circle}from'@mindfusion/drawing';const AssistantPosition={'Left':0x1,'Right':0x2};const AssistantType={'Normal':0x1,'Left':0x2,'Right':0x3};const Anchoring={'Ignore':0x0,'Keep':0x1,'Reassign':0x2,'Custom':0x3};const LayoutDirection={'TopToBottom':0x0,'LeftToRight':0x1,'BottomToTop':0x2,'RightToLeft':0x3};const TreeLayoutLinkType={'Default':0x0,'Straight':0x1,'Cascading':0x2};const MultipleGraphsPlacement={'Vertical':0x0,'Horizontal':0x1};const Orientation={'Vertical':0x0,'Horizontal':0x1};class Vertex{constructor(){this[_0x425c('0x0')]=[];this[_0x425c('0x1')]=[];this['inEdges']=[];this[_0x425c('0x2')]=0x1;}[_0x425c('0x3')](){var copy=new Vertex();if(this[_0x425c('0x4')]!==undefined)copy[_0x425c('0x4')]=this[_0x425c('0x4')];if(this[_0x425c('0x2')]!==undefined)copy['weight']=this[_0x425c('0x2')];if(this[_0x425c('0x5')]!==undefined)copy[_0x425c('0x5')]=this[_0x425c('0x5')];if(this[_0x425c('0x6')]!==undefined)copy['owner']=this['owner'];return copy;}['removeEdge'](edge){if(edge['origin']==this){Utils[_0x425c('0x7')](this['edges'],edge);Utils['remove'](this[_0x425c('0x1')],edge);edge[_0x425c('0x8')]=null;}if(edge[_0x425c('0x9')]==this){Utils[_0x425c('0x7')](this[_0x425c('0x0')],edge);Utils[_0x425c('0x7')](this['inEdges'],edge);edge[_0x425c('0x9')]=null;}}[_0x425c('0xa')](edge){return this[_0x425c('0x0')][_0x425c('0xb')](edge);}['adjacentTo'](vertex){return this[_0x425c('0xc')](vertex)!=null;}[_0x425c('0xc')](vertex){return this['edges'][_0x425c('0xd')](edge=>edge[_0x425c('0xe')](this)===vertex);}[_0x425c('0xf')](vertex){return this[_0x425c('0x0')][_0x425c('0x10')](function(edge){return edge[_0x425c('0xe')](this)===vertex;},this);}[_0x425c('0x11')](vertex){return this[_0x425c('0x1')][_0x425c('0xd')](edge=>edge['destination']==vertex);}[_0x425c('0x12')](){var neighbors=[];this[_0x425c('0x13')]['forEach'](function(e){neighbors[_0x425c('0x14')](e[_0x425c('0xe')](this));},this);this[_0x425c('0x1')][_0x425c('0x15')](function(e){neighbors[_0x425c('0x14')](e['getOtherEnd'](this));},this);return neighbors;}[_0x425c('0x16')](){return this[_0x425c('0x0')][_0x425c('0x17')];}[_0x425c('0x18')](){return this[_0x425c('0x13')][_0x425c('0x17')];}[_0x425c('0x19')](){return this['outEdges'][_0x425c('0x17')];}['toString'](){return this[_0x425c('0x1a')][_0x425c('0x1b')]();}}class Edge{constructor(origin,destination,prototype){this[_0x425c('0x8')]=origin;this[_0x425c('0x9')]=destination;this[_0x425c('0x2')]=0x1;if(prototype){this['weight']=prototype['weight'];}}[_0x425c('0xe')](vertex){return this[_0x425c('0x8')]==vertex?this[_0x425c('0x9')]:this['origin'];}[_0x425c('0x1c')](edge){if(this['origin']==edge[_0x425c('0x8')]||this[_0x425c('0x8')]==edge[_0x425c('0x9')])return this['origin'];if(this[_0x425c('0x9')]==edge[_0x425c('0x8')]||this['destination']==edge[_0x425c('0x9')])return this[_0x425c('0x9')];return null;}[_0x425c('0x1d')](v1,v2){if(this['origin']==v1&&this[_0x425c('0x9')]==v2||this[_0x425c('0x8')]==v2&&this[_0x425c('0x9')]==v1)return!![];return![];}['getEnds'](){return[this[_0x425c('0x8')],this[_0x425c('0x9')]];}[_0x425c('0xa')](vertex){return this['origin']==vertex||this[_0x425c('0x9')]==vertex;}[_0x425c('0x1e')](edge){return this['origin'][_0x425c('0x0')][_0x425c('0xb')](edge)||this[_0x425c('0x9')][_0x425c('0x0')][_0x425c('0xb')](edge);}[_0x425c('0x1f')](v){Utils[_0x425c('0x7')](this['origin'][_0x425c('0x0')],this);Utils[_0x425c('0x7')](this['origin'][_0x425c('0x1')],this);v['edges'][_0x425c('0x14')](this);v[_0x425c('0x1')][_0x425c('0x14')](this);this[_0x425c('0x8')]=v;}[_0x425c('0x20')](v){Utils[_0x425c('0x7')](this[_0x425c('0x9')][_0x425c('0x0')],this);Utils[_0x425c('0x7')](this[_0x425c('0x9')][_0x425c('0x13')],this);v[_0x425c('0x0')]['push'](this);v[_0x425c('0x13')]['push'](this);this[_0x425c('0x9')]=v;}[_0x425c('0x21')](v,w){if(this[_0x425c('0x8')]==v)this[_0x425c('0x1f')](w);else if(this[_0x425c('0x9')]==v)this[_0x425c('0x20')](w);}['reverse'](){var oldOrigin=this[_0x425c('0x8')];var oldDest=this[_0x425c('0x9')];this['origin']=oldDest;Utils[_0x425c('0x7')](oldOrigin[_0x425c('0x1')],this);this['origin'][_0x425c('0x1')][_0x425c('0x14')](this);this[_0x425c('0x9')]=oldOrigin;Utils[_0x425c('0x7')](oldDest[_0x425c('0x13')],this);this[_0x425c('0x9')][_0x425c('0x13')][_0x425c('0x14')](this);}[_0x425c('0x22')](destination){if(this[_0x425c('0x9')]!=destination)this[_0x425c('0x23')]();}[_0x425c('0x24')](){var r=new Edge(this[_0x425c('0x9')],this[_0x425c('0x8')],this);r[_0x425c('0x25')]=!![];return r;}[_0x425c('0x1b')](){return this[_0x425c('0x8')][_0x425c('0x1a')]['toString']()+'-'+this[_0x425c('0x9')][_0x425c('0x1a')][_0x425c('0x1b')]();}}class PQTree{constructor(){this['init']();}['init'](){if(this[_0x425c('0x26')]!=null){this[_0x425c('0x27')]();this['consecutiveNodes']=null;}this[_0x425c('0x28')]=[];this[_0x425c('0x29')]=new PQTree[(_0x425c('0x2a'))]();}[_0x425c('0x27')](){for(let node of this[_0x425c('0x28')])node[_0x425c('0x27')]();if(this[_0x425c('0x26')]!=null){for(let node of this[_0x425c('0x26')])node[_0x425c('0x27')]();}}[_0x425c('0x2b')](s){this[_0x425c('0x26')]=s;this[_0x425c('0x27')]();let proot=null;if(this['bubble'](s))proot=this[_0x425c('0x2c')](s);if(proot==null)this['init']();return proot;}[_0x425c('0x2d')](s){let queue=new Queue();let blockCount=0x0;let blockedNodes=0x0;let offTheTop=0x0;for(let node of s)queue[_0x425c('0x2e')](node);let blockedList=[];while(queue[_0x425c('0x2f')]+blockCount+offTheTop>0x1){if(queue[_0x425c('0x2f')]==0x0)return![];let x=queue[_0x425c('0x30')]();if(!x[_0x425c('0x31')])x['pertinentLeafCount']=0x1;x['markBlocked']();let bs=x[_0x425c('0x32')]();let us=x['getUnblockedSiblings']();if(us['length']>0x0){let y=us[0x0];x[_0x425c('0x33')]=y[_0x425c('0x33')];x[_0x425c('0x34')]();}else if(x[_0x425c('0x35')]==null||x[_0x425c('0x35')]['count']<0x2){x[_0x425c('0x34')]();}if(!x[_0x425c('0x36')]){let y=x[_0x425c('0x33')];let list=[];if(bs[_0x425c('0x17')]>0x0){list=x[_0x425c('0x37')]();for(let z of list){z['markUnblocked']();z[_0x425c('0x33')]=y;y[_0x425c('0x38')]=y['pertinentChildCount']+0x1;}}if(y==null){offTheTop=0x1;}else{y[_0x425c('0x38')]=y[_0x425c('0x38')]+0x1;if(y['unmarked']){queue[_0x425c('0x2e')](y);y['markQueued']();}}blockCount-=bs[_0x425c('0x17')];blockedNodes-=list[_0x425c('0x17')];}else{blockedList[_0x425c('0x14')](x);blockCount=blockCount+0x1-bs['length'];blockedNodes++;}}if(blockCount>0x1)return![];if(blockCount==0x1&&blockedNodes>0x1){let z=new PQTree[(_0x425c('0x2a'))]();z[_0x425c('0x38')]=blockedNodes;z[_0x425c('0x39')](blockedList);}return!![];}['reduce'](s){let queue=new Queue();for(let x of s){queue[_0x425c('0x2e')](x);x['pertinentLeafCount']=0x1;}while(queue[_0x425c('0x2f')]>0x0){let x=queue[_0x425c('0x30')]();this[_0x425c('0x28')][_0x425c('0x14')](x);if(x['pertinentLeafCount']<s['length']&&s['length']!=0x1){let y=x[_0x425c('0x33')];y['pertinentLeafCount']=y[_0x425c('0x3a')]+x['pertinentLeafCount'];y['pertinentChildCount']=y[_0x425c('0x38')]-0x1;if(y[_0x425c('0x38')]==0x0)queue[_0x425c('0x2e')](y);if(!(this[_0x425c('0x3b')](x)||this[_0x425c('0x3c')](x)||this['templateP3'](x)||this['templateP5'](x)||this[_0x425c('0x3d')](x)||this['templateQ2'](x))){return null;}}else{this[_0x425c('0x3e')]=x;if(!(this[_0x425c('0x3b')](x)||this[_0x425c('0x3c')](x)||this['templateP2'](x)||this['templateP4'](x)||this['templateP6'](x)||this[_0x425c('0x3d')](x)||this['templateQ2'](x)||this['templateQ3'](x))){return null;}}}return this[_0x425c('0x3e')];}[_0x425c('0x3b')](lNode){if(lNode[_0x425c('0x3f')]())return![];lNode[_0x425c('0x40')]=NodeLabel[_0x425c('0x41')];return!![];}[_0x425c('0x3c')](pNode){if(pNode[_0x425c('0x42')]!=NodeType[_0x425c('0x43')])return![];if(pNode[_0x425c('0x44')]!=pNode[_0x425c('0x45')])return![];pNode[_0x425c('0x40')]=NodeLabel['full'];return!![];}[_0x425c('0x46')](pNode){if(pNode[_0x425c('0x42')]!=NodeType[_0x425c('0x43')])return![];if(pNode[_0x425c('0x47')]>0x0)return![];if(pNode[_0x425c('0x45')]==0x0)return![];if(pNode[_0x425c('0x45')]>0x1&&pNode[_0x425c('0x48')]>0x0){let fullSubTree=new PQTree[(_0x425c('0x2a'))]();fullSubTree[_0x425c('0x40')]=NodeLabel[_0x425c('0x41')];pNode['moveFullChildrenTo'](fullSubTree);pNode[_0x425c('0x49')](fullSubTree);this[_0x425c('0x3e')]=fullSubTree;}else{this[_0x425c('0x3e')]=pNode['getFirstFullChild']();}return!![];}[_0x425c('0x4a')](pNode){if(pNode[_0x425c('0x42')]!=NodeType[_0x425c('0x43')])return![];if(pNode['partialChildren']>0x0)return![];if(pNode[_0x425c('0x45')]==0x0)return![];let parent=pNode[_0x425c('0x33')];let qNode=new PQTree[(_0x425c('0x2a'))]();qNode[_0x425c('0x42')]=NodeType[_0x425c('0x4b')];qNode[_0x425c('0x40')]=NodeLabel[_0x425c('0x4c')];if(pNode[_0x425c('0x45')]>0x1){let fullSubTree=new PQTree[(_0x425c('0x2a'))]();fullSubTree[_0x425c('0x40')]=NodeLabel[_0x425c('0x41')];pNode[_0x425c('0x4d')](fullSubTree);qNode[_0x425c('0x49')](fullSubTree);}else{let fullChild=pNode[_0x425c('0x4e')]();pNode[_0x425c('0x4f')](fullChild);qNode[_0x425c('0x49')](fullChild);}parent[_0x425c('0x50')](pNode,qNode);if(pNode[_0x425c('0x48')]>0x1){let emptySubTree=pNode;pNode[_0x425c('0x27')](![]);qNode[_0x425c('0x49')](emptySubTree);}else{let emptyChild=pNode[_0x425c('0x51')]();pNode['removeChild'](emptyChild);qNode[_0x425c('0x49')](emptyChild);}return!![];}[_0x425c('0x52')](pNode){if(pNode['type']!=NodeType[_0x425c('0x43')])return![];if(pNode[_0x425c('0x47')]!=0x1)return![];let qNode=pNode[_0x425c('0x53')](0x0);if(pNode[_0x425c('0x45')]>0x0){if(pNode[_0x425c('0x45')]>0x1){let fullSubTree=new PQTree[(_0x425c('0x2a'))]();fullSubTree['label']=NodeLabel[_0x425c('0x41')];pNode[_0x425c('0x4d')](fullSubTree);qNode[_0x425c('0x49')](fullSubTree);}else{let fullChild=pNode['getFirstFullChild']();pNode[_0x425c('0x4f')](fullChild);qNode[_0x425c('0x49')](fullChild);}}if(pNode['children']==0x1){if(pNode[_0x425c('0x33')]!=null){if(pNode[_0x425c('0x33')]['destroyed']){pNode[_0x425c('0x54')](qNode);}else{pNode[_0x425c('0x33')][_0x425c('0x50')](pNode,qNode);pNode[_0x425c('0x55')]();this[_0x425c('0x3e')]=qNode;}}else{qNode['parent']=null;this[_0x425c('0x29')]=qNode;this['pertinentRoot']=qNode;}}else{this['pertinentRoot']=qNode;}return!![];}[_0x425c('0x56')](pNode){if(pNode['type']!=NodeType[_0x425c('0x43')])return![];if(pNode['partialChildren']!=0x1)return![];let parent=pNode[_0x425c('0x33')];let qNode=pNode[_0x425c('0x53')](0x0);pNode[_0x425c('0x4f')](qNode);if(pNode[_0x425c('0x45')]>0x0){if(pNode[_0x425c('0x45')]>0x1){let fullSubTree=new PQTree[(_0x425c('0x2a'))]();fullSubTree[_0x425c('0x40')]=NodeLabel[_0x425c('0x41')];pNode['moveFullChildrenTo'](fullSubTree);qNode['addChild'](fullSubTree);}else{let fullChild=pNode[_0x425c('0x4e')]();pNode['removeChild'](fullChild);qNode[_0x425c('0x49')](fullChild);}}parent[_0x425c('0x50')](pNode,qNode);switch(pNode[_0x425c('0x48')]){case 0x0:pNode[_0x425c('0x55')]();break;case 0x1:{let emptyChild=pNode[_0x425c('0x51')]();pNode[_0x425c('0x4f')](emptyChild);qNode[_0x425c('0x49')](emptyChild);pNode[_0x425c('0x55')]();}break;default:pNode['reinit'](![]);qNode[_0x425c('0x49')](pNode);break;}return!![];}[_0x425c('0x57')](pNode){if(pNode[_0x425c('0x42')]!=NodeType['pNode'])return![];if(pNode['partialChildren']!=0x2)return![];let qNode1=pNode[_0x425c('0x53')](0x0);let qNode2=pNode[_0x425c('0x53')](0x1);if(!qNode1[_0x425c('0x58')]()||!qNode2[_0x425c('0x58')]())return![];qNode1[_0x425c('0x3a')]=pNode['pertinentLeafCount'];if(pNode[_0x425c('0x45')]>0x0){if(pNode[_0x425c('0x45')]>0x1){let fullSubTree=new PQTree['Node']();fullSubTree[_0x425c('0x40')]=NodeLabel[_0x425c('0x41')];pNode['moveFullChildrenTo'](fullSubTree);qNode1[_0x425c('0x49')](fullSubTree);}else{let fullChild=pNode['getFirstFullChild']();pNode[_0x425c('0x4f')](fullChild);qNode1[_0x425c('0x49')](fullChild);}}if(qNode1['label']==NodeLabel['partial']&&qNode2['label']==NodeLabel[_0x425c('0x4c')]){let endMostChildren1=qNode2[_0x425c('0x59')];let endMostChildren2=qNode1[_0x425c('0x59')];if(endMostChildren1['count']==0x2&&endMostChildren2[_0x425c('0x2f')]==0x2){let tempNode=null;let fullEndMostNode1=null;let emptyEndMostNode1=null;for(let i=0x0;i<endMostChildren1['count'];i++){tempNode=endMostChildren1['get'](i);if(tempNode['checkLabelDirected'](null,NodeLabel['full']))fullEndMostNode1=tempNode;else if(tempNode[_0x425c('0x5a')](null,NodeLabel[_0x425c('0x5b')]))emptyEndMostNode1=tempNode;}let fullEndMostNode2=null;let emptyEndMostNode2=null;for(let i=0x0;i<endMostChildren2[_0x425c('0x2f')];i++){tempNode=endMostChildren2['get'](i);if(tempNode[_0x425c('0x5a')](null,NodeLabel['full']))fullEndMostNode2=tempNode;else if(tempNode[_0x425c('0x5a')](null,NodeLabel[_0x425c('0x5b')]))emptyEndMostNode2=tempNode;}if(fullEndMostNode1!=null&&emptyEndMostNode1!=null&&fullEndMostNode2!=null&&emptyEndMostNode2!=null){fullEndMostNode1['parent']=qNode1;emptyEndMostNode1[_0x425c('0x33')]=qNode1;fullEndMostNode1[_0x425c('0x35')][_0x425c('0x5c')](fullEndMostNode2);fullEndMostNode2['immediateSiblings'][_0x425c('0x5c')](fullEndMostNode1);endMostChildren2[_0x425c('0x7')](fullEndMostNode2);endMostChildren2[_0x425c('0x5c')](emptyEndMostNode1);endMostChildren1[_0x425c('0x7')](fullEndMostNode1);endMostChildren1['remove'](emptyEndMostNode1);qNode2[_0x425c('0x4d')](qNode1);pNode['removeChild'](qNode2);}}}qNode2[_0x425c('0x55')]();if(pNode[_0x425c('0x44')]==0x1){if(pNode[_0x425c('0x33')]!=null){if(pNode[_0x425c('0x33')][_0x425c('0x5d')]){pNode[_0x425c('0x54')](qNode1);}else{pNode['parent']['replaceChild'](pNode,qNode1);pNode[_0x425c('0x55')]();this[_0x425c('0x3e')]=qNode1;}}else{qNode1['parent']=null;this[_0x425c('0x29')]=qNode1;this[_0x425c('0x3e')]=qNode1;}}else{this['pertinentRoot']=qNode1;}return!![];}[_0x425c('0x3d')](qNode){if(qNode[_0x425c('0x42')]!=NodeType[_0x425c('0x4b')])return![];if(qNode[_0x425c('0x5e')])return![];if(!qNode[_0x425c('0x5f')]())return![];qNode['label']=NodeLabel[_0x425c('0x41')];return!![];}[_0x425c('0x60')](qNode){if(qNode[_0x425c('0x42')]!=NodeType[_0x425c('0x4b')])return![];if(qNode[_0x425c('0x5e')])return![];if(qNode[_0x425c('0x47')]>0x1)return![];if(!qNode[_0x425c('0x61')]())return![];if(qNode[_0x425c('0x62')]()&&qNode['fullChildren']!=0x0)return![];qNode[_0x425c('0x40')]=NodeLabel[_0x425c('0x4c')];if(qNode[_0x425c('0x47')]==0x1){let partialChild=qNode[_0x425c('0x53')](0x0);if(!qNode[_0x425c('0x63')](partialChild))return![];let endMostChildren=qNode[_0x425c('0x59')];if(qNode[_0x425c('0x45')]==0x0&&!endMostChildren[_0x425c('0x64')](partialChild))return![];if(!partialChild['fullChildrenAreEndMost']())return![];qNode['absorbPartialChild'](partialChild);}return!![];}['templateQ3'](qNode){if(qNode['type']!=NodeType[_0x425c('0x4b')])return![];if(qNode[_0x425c('0x47')]>0x2)return![];if(!qNode[_0x425c('0x5e')]&&!qNode[_0x425c('0x62')]())return![];qNode['label']=NodeLabel['partial'];if(qNode[_0x425c('0x47')]==0x1){let partialChild=qNode[_0x425c('0x53')](0x0);if(!qNode[_0x425c('0x63')](partialChild))return![];if(!partialChild[_0x425c('0x58')]())return![];if(qNode[_0x425c('0x5e')]&&!qNode[_0x425c('0x65')]())return![];qNode[_0x425c('0x66')](partialChild);}else if(qNode[_0x425c('0x47')]==0x2){let partialChild1=qNode['getPartialChild'](0x0);let partialChild2=qNode[_0x425c('0x53')](0x1);if(qNode['fullChildren']==0x0&&!partialChild1[_0x425c('0x67')](partialChild2))return![];if(!partialChild1[_0x425c('0x58')]()||!partialChild2[_0x425c('0x58')]())return![];if(!(qNode[_0x425c('0x63')](partialChild1)&&qNode['fullChildrenAreAdjacentTo'](partialChild2)))return![];if(qNode[_0x425c('0x5e')]&&!qNode['partialChildrenAtEnds']())return![];qNode[_0x425c('0x66')](partialChild1);qNode[_0x425c('0x66')](partialChild2);}if(qNode[_0x425c('0x5e')])qNode[_0x425c('0x55')]();return!![];}}PQTree[_0x425c('0x2a')]=class{constructor(type,data){if(type==null)type=NodeType[_0x425c('0x43')];this[_0x425c('0x68')](type);if(data)this[_0x425c('0x69')]=data;if(type==NodeType[_0x425c('0x6a')]){this[_0x425c('0x35')]=new PQTree[(_0x425c('0x6b'))](-0x1);this[_0x425c('0x6c')]=![];}}[_0x425c('0x68')](nodeType){this[_0x425c('0x6d')]=nodeType;this[_0x425c('0x69')]=null;this[_0x425c('0x33')]=null;this[_0x425c('0x35')]=null;this[_0x425c('0x59')]=null;this[_0x425c('0x6e')]=null;this['left']=null;this['right']=null;this[_0x425c('0x6f')]=0x0;this['fullChildrenList']=null;this[_0x425c('0x70')]=null;this['fullRight']=null;this['fullChildren']=0x0;this[_0x425c('0x71')]=null;this['partialLeft']=null;this[_0x425c('0x72')]=null;this[_0x425c('0x47')]=0x0;this[_0x425c('0x38')]=0x0;this[_0x425c('0x3a')]=0x0;this[_0x425c('0x73')]=NodeLabel['empty'];this[_0x425c('0x36')]=![];this[_0x425c('0x31')]=![];this['pseudoRoot']=![];this[_0x425c('0x5d')]=![];}[_0x425c('0x55')](){if(this[_0x425c('0x5e')]){this[_0x425c('0x33')]=null;this['immediateSiblings']=null;this['left']=null;this[_0x425c('0x74')]=null;this['fullLeft']=null;this[_0x425c('0x75')]=null;this[_0x425c('0x76')]=null;this[_0x425c('0x72')]=null;this['childCount']=0x0;this[_0x425c('0x47')]=0x0;this['pertinentChildCount']=0x0;this[_0x425c('0x3a')]=0x0;this[_0x425c('0x6e')]=null;this[_0x425c('0x71')]=null;this['queued']=![];}else{this[_0x425c('0x68')](NodeType[_0x425c('0x4b')]);}this[_0x425c('0x5d')]=!![];}[_0x425c('0x27')](reinitParent){if(typeof reinitParent==_0x425c('0x77'))reinitParent=!![];this[_0x425c('0x40')]=NodeLabel[_0x425c('0x5b')];this[_0x425c('0x31')]=![];this[_0x425c('0x36')]=![];this[_0x425c('0x38')]=0x0;this[_0x425c('0x3a')]=0x0;let parent=this[_0x425c('0x33')];if(reinitParent&&parent!=null&&(parent[_0x425c('0x40')]!=NodeLabel[_0x425c('0x5b')]||parent[_0x425c('0x31')]||parent['blocked']||parent[_0x425c('0x38')]!=0x0||parent[_0x425c('0x3a')]!=0x0||parent[_0x425c('0x45')]!=0x0||parent['partialChildren']!=0x0)){parent[_0x425c('0x27')]();}}[_0x425c('0x32')](){let blockedSiblings=[];if(this[_0x425c('0x35')]!=null){let node=this[_0x425c('0x78')](this['immediateSiblings'][_0x425c('0x79')](0x1));if(node!=null&&node[_0x425c('0x36')])blockedSiblings[_0x425c('0x14')](node);node=this[_0x425c('0x78')](this[_0x425c('0x35')][_0x425c('0x79')](0x0));if(node!=null&&node[_0x425c('0x36')])blockedSiblings['push'](node);}return blockedSiblings;}[_0x425c('0x7a')](){let unblockedSiblings=[];if(this[_0x425c('0x35')]!=null){let node=this[_0x425c('0x78')](this['immediateSiblings'][_0x425c('0x79')](0x1));if(node==null){node=this[_0x425c('0x7b')](this[_0x425c('0x35')][_0x425c('0x79')](0x1));if(node!=null)unblockedSiblings[_0x425c('0x14')](node);}else if(!node['blocked']&&node[_0x425c('0x33')]!=null&&!node['parent']['destroyed']){unblockedSiblings['push'](node);}node=this[_0x425c('0x78')](this[_0x425c('0x35')][_0x425c('0x79')](0x0));if(node==null){node=this[_0x425c('0x7b')](this['immediateSiblings'][_0x425c('0x79')](0x0));if(node!=null)unblockedSiblings[_0x425c('0x14')](node);}else if(!node['blocked']&&node[_0x425c('0x33')]!=null&&!node['parent']['destroyed']){unblockedSiblings[_0x425c('0x14')](node);}}return unblockedSiblings;}[_0x425c('0x7b')](otherSide){let endmost=null;if(this[_0x425c('0x35')][_0x425c('0x7c')](otherSide)!=null)endmost=this['immediateSiblings'][_0x425c('0x7c')](otherSide)['getEndMostDirectedSibling'](this);else if(this[_0x425c('0x42')]==NodeType['directionIndicator'])endmost=this;return endmost;}[_0x425c('0x78')](otherSide){let sibling=null;if(this[_0x425c('0x35')][_0x425c('0x7c')](otherSide)!=null){sibling=!(this[_0x425c('0x35')][_0x425c('0x7c')](otherSide)[_0x425c('0x42')]==NodeType['directionIndicator'])?this[_0x425c('0x35')][_0x425c('0x7c')](otherSide):this[_0x425c('0x35')][_0x425c('0x7c')](otherSide)['getNonDirectedSibling'](this);}return sibling;}['setPseudoRoot'](blockedList){this[_0x425c('0x42')]=NodeType[_0x425c('0x4b')];this['pseudoRoot']=!![];let endmostChildren=[];let prevNode=null;for(let node of blockedList){if(!node[_0x425c('0x36')])continue;node[_0x425c('0x33')]=this;for(let i=0x0;i<=0x1;++i){if(!node['getNonDirectedSibling'](node['immediateSiblings'][_0x425c('0x79')](i))[_0x425c('0x36')]){if(endmostChildren[_0x425c('0x17')]==0x0)prevNode=node[_0x425c('0x35')][_0x425c('0x79')](0x1-i);endmostChildren[_0x425c('0x14')](node);break;}}}let prchildren=[];let prchild=endmostChildren[0x0];prchildren[_0x425c('0x14')](prchild);prchild[_0x425c('0x33')]=this;while(prchild!=endmostChildren[0x1]){let swap=prchild;prchild=prchild['immediateSiblings'][_0x425c('0x7c')](prevNode);prevNode=swap;prchildren[_0x425c('0x14')](prchild);prchild[_0x425c('0x33')]=this;}for(let child of prchildren)this[_0x425c('0x49')](child,![]);this['endMostChildren'][_0x425c('0x5c')](prchildren[0x0]);this['endMostChildren']['add'](prchildren[prchildren[_0x425c('0x17')]-0x1]);}[_0x425c('0x37')](){let blockedSiblings=[];for(let i=0x0;i<this[_0x425c('0x35')][_0x425c('0x2f')];i++){let previousNode=this;let currentNode=this[_0x425c('0x35')]['get'](i);while(currentNode!=null&&(currentNode['blocked']||currentNode['type']==NodeType[_0x425c('0x6a')])){if(!(currentNode['type']==NodeType[_0x425c('0x6a')]))blockedSiblings['push'](currentNode);let nextNode=currentNode[_0x425c('0x35')][_0x425c('0x7c')](previousNode);previousNode=currentNode;currentNode=nextNode;}}return blockedSiblings;}[_0x425c('0x7d')](){this['blocked']=!![];}['markUnblocked'](){this[_0x425c('0x36')]=![];}[_0x425c('0x7e')](){this[_0x425c('0x31')]=!![];}[_0x425c('0x61')](){if(this[_0x425c('0x45')]==0x0)return!![];let currentChild=null;let fullCount=0x1;for(let i=0x0;i<this[_0x425c('0x7f')][_0x425c('0x35')][_0x425c('0x2f')];i++){currentChild=this[_0x425c('0x7f')]['immediateSiblings']['get'](i);let previousChild=this['fullChildrenList'];while(fullCount<this[_0x425c('0x45')]&¤tChild!=null&&(currentChild['label']==NodeLabel[_0x425c('0x41')]||currentChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')])){if(!(currentChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]))fullCount++;let nextChild=currentChild['immediateSiblings'][_0x425c('0x7c')](previousChild);previousChild=currentChild;currentChild=nextChild;}}return fullCount==this[_0x425c('0x45')];}[_0x425c('0x63')](node){if(this['fullChildren']==0x0)return!![];return this[_0x425c('0x61')]()&&(node[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&node[_0x425c('0x35')][_0x425c('0x79')](0x0)[_0x425c('0x5a')](node,NodeLabel[_0x425c('0x41')])||node[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&node[_0x425c('0x35')][_0x425c('0x79')](0x1)[_0x425c('0x5a')](node,NodeLabel[_0x425c('0x41')]));}['fullChildrenAreEndMost'](){if(this['fullChildren']==0x0)return!![];if(!this[_0x425c('0x61')]())return![];for(let i=0x0;i<this[_0x425c('0x59')][_0x425c('0x2f')];i++){if(this[_0x425c('0x5e')]){let endNode=this['endMostChildren'][_0x425c('0x79')](i);if(endNode[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&endNode[_0x425c('0x35')][_0x425c('0x79')](0x0)['parent']!=this){endNode=endNode[_0x425c('0x35')][_0x425c('0x79')](0x0);}else if(endNode[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&endNode[_0x425c('0x35')][_0x425c('0x79')](0x1)['parent']!=this){endNode=endNode[_0x425c('0x35')][_0x425c('0x79')](0x1);}if(this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x5a')](endNode,NodeLabel[_0x425c('0x41')]))return!![];}else{if(this[_0x425c('0x59')][_0x425c('0x79')](i)[_0x425c('0x5a')](null,NodeLabel['full']))return!![];}}return![];}['partialChildrenAtEnds'](){if(this[_0x425c('0x47')]==0x0)return!![];if(this[_0x425c('0x47')]==0x1){for(let i=0x0;i<this[_0x425c('0x59')][_0x425c('0x2f')];i++){if(this[_0x425c('0x5e')]){let endNode=this[_0x425c('0x59')]['get'](i);if(endNode[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&endNode['immediateSiblings'][_0x425c('0x79')](0x0)[_0x425c('0x33')]!=this){endNode=endNode[_0x425c('0x35')][_0x425c('0x79')](0x0);}else if(endNode[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&endNode['immediateSiblings']['get'](0x1)[_0x425c('0x33')]!=this){endNode=endNode[_0x425c('0x35')]['get'](0x1);}if(this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x5a')](endNode,NodeLabel[_0x425c('0x4c')]))return!![];}else{if(this[_0x425c('0x59')][_0x425c('0x79')](i)[_0x425c('0x5a')](null,NodeLabel['partial']))return!![];}}return![];}for(let i=0x0;i<this[_0x425c('0x59')]['count'];i++){if(this[_0x425c('0x5e')]){let endNode=this['endMostChildren'][_0x425c('0x79')](i);if(endNode[_0x425c('0x35')]['get'](0x0)!=null&&endNode['immediateSiblings']['get'](0x0)[_0x425c('0x33')]!=this){endNode=endNode[_0x425c('0x35')]['get'](0x0);}else if(endNode['immediateSiblings'][_0x425c('0x79')](0x1)!=null&&endNode['immediateSiblings'][_0x425c('0x79')](0x1)[_0x425c('0x33')]!=this){endNode=endNode[_0x425c('0x35')][_0x425c('0x79')](0x1);}if(!this[_0x425c('0x59')][_0x425c('0x79')](i)[_0x425c('0x5a')](endNode,NodeLabel[_0x425c('0x4c')]))return![];}else{if(!this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x5a')](null,NodeLabel[_0x425c('0x4c')]))return![];}}return!![];}['endMostChildrenAreEmptyOrPartial'](){for(let i=0x0;i<this[_0x425c('0x59')][_0x425c('0x2f')];i++){if(this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x5a')](null,NodeLabel[_0x425c('0x41')]))return![];}return!![];}[_0x425c('0x5f')](){if(this[_0x425c('0x42')]==NodeType['qNode']){let countFullEndMost=0x0;for(let i=0x0;i<this['endMostChildren'][_0x425c('0x2f')];i++){if(this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x5a')](null,NodeLabel[_0x425c('0x41')]))countFullEndMost++;}return countFullEndMost==this[_0x425c('0x59')]['count']&&this[_0x425c('0x61')]();}return this['fullChildren']==this[_0x425c('0x6f')];}[_0x425c('0x80')](){if(this[_0x425c('0x59')][_0x425c('0x2f')]==0x2)return this[_0x425c('0x59')][_0x425c('0x79')](0x0)['immediateSiblings']['get'](0x0)==this['endMostChildren'][_0x425c('0x79')](0x1);return![];}['getPartialChild'](index){if(index==0x0)return this[_0x425c('0x71')];if(index==0x1)return this[_0x425c('0x71')]['partialRight'];return null;}[_0x425c('0x4e')](){return this['fullChildrenList'];}['getFirstEmptyChild'](){let child=this[_0x425c('0x6e')];do{if(child[_0x425c('0x40')]==NodeLabel[_0x425c('0x5b')])break;child=child['right'];}while(child!=this['circularLink']);return child;}['addToFullList'](node){this['fullChildren']++;node[_0x425c('0x70')]=null;node[_0x425c('0x75')]=null;if(this[_0x425c('0x7f')]==null){this[_0x425c('0x7f')]=node;this[_0x425c('0x7f')][_0x425c('0x70')]=this['fullChildrenList'];this[_0x425c('0x7f')]['fullRight']=this[_0x425c('0x7f')];}else{node[_0x425c('0x70')]=this[_0x425c('0x7f')][_0x425c('0x70')];node['fullLeft'][_0x425c('0x75')]=node;this[_0x425c('0x7f')][_0x425c('0x70')]=node;node['fullRight']=this[_0x425c('0x7f')];this[_0x425c('0x7f')]=node;}}['removeFromFullList'](node){this[_0x425c('0x45')]--;if(node[_0x425c('0x75')]==node){node[_0x425c('0x75')]=null;node['fullLeft']=null;this[_0x425c('0x7f')]=null;}else{if(node==this[_0x425c('0x7f')]){this[_0x425c('0x7f')]=this[_0x425c('0x7f')][_0x425c('0x75')];}node[_0x425c('0x75')][_0x425c('0x70')]=node[_0x425c('0x70')];node[_0x425c('0x70')]['fullRight']=node[_0x425c('0x75')];node['fullLeft']=null;node[_0x425c('0x75')]=null;}}['addToPartialList'](node){this[_0x425c('0x47')]++;node['partialLeft']=null;node[_0x425c('0x72')]=null;if(this['partialChildrenList']==null){this[_0x425c('0x71')]=node;this[_0x425c('0x71')][_0x425c('0x76')]=this[_0x425c('0x71')];this['partialChildrenList'][_0x425c('0x72')]=this[_0x425c('0x71')];}else{node[_0x425c('0x76')]=this['partialChildrenList'][_0x425c('0x76')];node['partialLeft'][_0x425c('0x72')]=node;this[_0x425c('0x71')][_0x425c('0x76')]=node;node[_0x425c('0x72')]=this[_0x425c('0x71')];this['partialChildrenList']=node;}}['removeFromPartialList'](node){this[_0x425c('0x47')]--;if(node[_0x425c('0x72')]==node){node['partialRight']=null;node[_0x425c('0x76')]=null;this[_0x425c('0x71')]=null;}else{if(node==this[_0x425c('0x71')]){this['partialChildrenList']=this[_0x425c('0x71')][_0x425c('0x72')];}node[_0x425c('0x72')][_0x425c('0x76')]=node[_0x425c('0x76')];node[_0x425c('0x76')][_0x425c('0x72')]=node[_0x425c('0x72')];node[_0x425c('0x76')]=null;node[_0x425c('0x72')]=null;}}[_0x425c('0x81')](node){node[_0x425c('0x33')]=this;this[_0x425c('0x6f')]++;node['left']=null;node[_0x425c('0x74')]=null;node[_0x425c('0x35')]=null;if(this[_0x425c('0x6e')]==null){this[_0x425c('0x6e')]=node;this['circularLink']['left']=this[_0x425c('0x6e')];this[_0x425c('0x6e')][_0x425c('0x74')]=this['circularLink'];}else{node[_0x425c('0x82')]=this[_0x425c('0x6e')][_0x425c('0x82')];node[_0x425c('0x82')][_0x425c('0x74')]=node;this[_0x425c('0x6e')][_0x425c('0x82')]=node;node[_0x425c('0x74')]=this[_0x425c('0x6e')];this[_0x425c('0x6e')]=node;}}[_0x425c('0x83')](node){node[_0x425c('0x33')]=null;this[_0x425c('0x6f')]--;if(node==this[_0x425c('0x6e')]){if(node[_0x425c('0x74')]==node){node[_0x425c('0x74')]=null;node[_0x425c('0x82')]=null;this[_0x425c('0x6e')]=null;}else{this[_0x425c('0x6e')]=this[_0x425c('0x6e')][_0x425c('0x74')];node[_0x425c('0x74')][_0x425c('0x82')]=node['left'];node['left']['right']=node[_0x425c('0x74')];node[_0x425c('0x82')]=null;node[_0x425c('0x74')]=null;}}else{node[_0x425c('0x74')]['left']=node[_0x425c('0x82')];node['left'][_0x425c('0x74')]=node['right'];node[_0x425c('0x82')]=null;node['right']=null;}}[_0x425c('0x84')](node){node[_0x425c('0x33')]=this;let sibling=null;if(node['immediateSiblings']!=null){if(node[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&this[_0x425c('0x59')]['contains'](node[_0x425c('0x35')][_0x425c('0x79')](0x0))){sibling=node[_0x425c('0x35')]['get'](0x0);}else if(node[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&this[_0x425c('0x59')][_0x425c('0x64')](node[_0x425c('0x35')]['get'](0x1))){sibling=node[_0x425c('0x35')][_0x425c('0x79')](0x1);}}else{node[_0x425c('0x35')]=new PQTree[(_0x425c('0x6b'))]();}if(sibling==null){for(let i=0x0;i<this['endMostChildren'][_0x425c('0x2f')];i++){if(this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x40')]==node[_0x425c('0x40')]){sibling=this[_0x425c('0x59')]['get'](i);break;}if(this[_0x425c('0x59')][_0x425c('0x79')](i)['label']==NodeLabel[_0x425c('0x41')]&&node[_0x425c('0x40')]==NodeLabel['partial']){sibling=this[_0x425c('0x59')][_0x425c('0x79')](i);break;}if(this[_0x425c('0x59')]['get'](i)[_0x425c('0x40')]==NodeLabel[_0x425c('0x4c')]&&node[_0x425c('0x40')]==NodeLabel[_0x425c('0x41')]){sibling=this[_0x425c('0x59')][_0x425c('0x79')](i);break;}}}if(sibling==null&&this['endMostChildren'][_0x425c('0x2f')]>0x0){sibling=this[_0x425c('0x59')]['get'](0x0);}if(sibling!=null){if(this['endMostChildren'][_0x425c('0x2f')]>0x1){this[_0x425c('0x59')][_0x425c('0x7')](sibling);}this[_0x425c('0x59')]['add'](node);sibling[_0x425c('0x35')][_0x425c('0x5c')](node);node[_0x425c('0x35')][_0x425c('0x5c')](sibling);}else{this['endMostChildren'][_0x425c('0x5c')](node);}}[_0x425c('0x85')](node){node[_0x425c('0x33')]=null;if(node['immediateSiblings']['get'](0x1)==null){this[_0x425c('0x59')][_0x425c('0x7')](node);if(node[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null){if(!this[_0x425c('0x59')][_0x425c('0x64')](node[_0x425c('0x35')][_0x425c('0x79')](0x0))){this[_0x425c('0x59')][_0x425c('0x5c')](node['immediateSiblings'][_0x425c('0x79')](0x0));}node[_0x425c('0x35')][_0x425c('0x79')](0x0)[_0x425c('0x35')][_0x425c('0x7')](node);node[_0x425c('0x35')]=null;}}else{node['immediateSiblings'][_0x425c('0x79')](0x0)['immediateSiblings'][_0x425c('0x7')](node);node['immediateSiblings'][_0x425c('0x79')](0x1)[_0x425c('0x35')][_0x425c('0x7')](node);node[_0x425c('0x35')]=null;}}[_0x425c('0x86')](node){node[_0x425c('0x33')]=this;if(this['circularLink']==null){this['circularLink']=node;}if(node[_0x425c('0x35')]!=null&&node[_0x425c('0x35')][_0x425c('0x2f')]==0x2){if(!(node[_0x425c('0x35')][_0x425c('0x79')](0x0)['parent']==this&&node[_0x425c('0x35')][_0x425c('0x79')](0x1)[_0x425c('0x33')]==this)){this['endMostChildren'][_0x425c('0x5c')](node);}}}[_0x425c('0x49')](node,updateTree){if(typeof updateTree==_0x425c('0x77'))updateTree=!![];if(node[_0x425c('0x40')]==NodeLabel['full'])this[_0x425c('0x87')](node);else if(node['label']==NodeLabel[_0x425c('0x4c')])this[_0x425c('0x88')](node);if(!updateTree)return;if(this[_0x425c('0x42')]==NodeType[_0x425c('0x43')])this[_0x425c('0x81')](node);else if(this[_0x425c('0x42')]==NodeType[_0x425c('0x4b')]&&!this['pseudoRoot'])this['addChildToQNode'](node);else if(this['type']==NodeType[_0x425c('0x4b')]&&this[_0x425c('0x5e')])this['addChildToPseudoRoot'](node);}[_0x425c('0x4f')](node,updateTree){if(typeof updateTree==_0x425c('0x77'))updateTree=!![];if(node[_0x425c('0x40')]==NodeLabel[_0x425c('0x41')])this['removeFromFullList'](node);else if(node[_0x425c('0x40')]==NodeLabel[_0x425c('0x4c')])this[_0x425c('0x89')](node);if(!updateTree)return;if(this[_0x425c('0x42')]==NodeType[_0x425c('0x43')])this[_0x425c('0x83')](node);else if(this[_0x425c('0x42')]==NodeType[_0x425c('0x4b')])this['removeChildFromQNode'](node);}[_0x425c('0x50')](node,newNode){if(this[_0x425c('0x42')]==NodeType[_0x425c('0x4b')]){newNode[_0x425c('0x35')]=node['immediateSiblings'];if(node[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null)node[_0x425c('0x35')]['get'](0x0)[_0x425c('0x35')][_0x425c('0x8a')](node,newNode);if(node[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null)node[_0x425c('0x35')][_0x425c('0x79')](0x1)[_0x425c('0x35')][_0x425c('0x8a')](node,newNode);if(this[_0x425c('0x59')][_0x425c('0x7')](node))this[_0x425c('0x59')][_0x425c('0x5c')](newNode);}else{newNode[_0x425c('0x82')]=node[_0x425c('0x82')];if(node[_0x425c('0x82')]!=null)node[_0x425c('0x82')][_0x425c('0x74')]=newNode;newNode[_0x425c('0x74')]=node[_0x425c('0x74')];if(node[_0x425c('0x74')]!=null)node[_0x425c('0x74')][_0x425c('0x82')]=newNode;}newNode[_0x425c('0x33')]=this;this['removeChild'](node,![]);this[_0x425c('0x49')](newNode,![]);if(this[_0x425c('0x6e')]==node)this[_0x425c('0x6e')]=newNode;node[_0x425c('0x33')]=null;node[_0x425c('0x35')]=null;node[_0x425c('0x82')]=null;node[_0x425c('0x74')]=null;node[_0x425c('0x70')]=null;node['fullRight']=null;node[_0x425c('0x76')]=null;node['partialRight']=null;}[_0x425c('0x8b')](si){let node=this[_0x425c('0x35')][_0x425c('0x79')](si);if(node==null)return null;if(node[_0x425c('0x5a')](this,NodeLabel[_0x425c('0x41')])||node['checkLabelDirected'](this,NodeLabel['partial']))return node;return null;}['getEmptyNeighbor'](si){let node=this[_0x425c('0x35')][_0x425c('0x79')](si);if(node==null)return null;if(node['checkLabelDirected'](this,NodeLabel[_0x425c('0x5b')]))return node;return null;}[_0x425c('0x8c')](nodeLabel){let child=this[_0x425c('0x59')]['get'](0x0);if(child[_0x425c('0x5a')](null,nodeLabel))return child;if(this['endMostChildren'][_0x425c('0x2f')]>0x1){child=this[_0x425c('0x59')][_0x425c('0x79')](0x1);if(child[_0x425c('0x5a')](null,nodeLabel))return child;}return null;}[_0x425c('0x66')](qNode){if(qNode[_0x425c('0x42')]!=NodeType[_0x425c('0x4b')])return;if(qNode[_0x425c('0x40')]!=NodeLabel[_0x425c('0x4c')])return;let fullConnectChild=qNode['getPertinentNeighbor'](0x0)||qNode[_0x425c('0x8b')](0x1);let emptyConnectChild=qNode[_0x425c('0x8d')](0x0)||qNode['getEmptyNeighbor'](0x1);let fullJoinChild=qNode['getEndMostChild'](NodeLabel[_0x425c('0x41')]);let emptyJoinChild=qNode[_0x425c('0x8c')](NodeLabel[_0x425c('0x5b')]);if(fullConnectChild==null){this[_0x425c('0x59')][_0x425c('0x7')](qNode);fullJoinChild[_0x425c('0x33')]=this;this['endMostChildren'][_0x425c('0x5c')](fullJoinChild);}else{fullJoinChild['immediateSiblings'][_0x425c('0x5c')](fullConnectChild);fullConnectChild[_0x425c('0x35')][_0x425c('0x8a')](qNode,fullJoinChild);}if(emptyConnectChild==null){this['endMostChildren']['remove'](qNode);emptyJoinChild[_0x425c('0x33')]=this;this['endMostChildren'][_0x425c('0x5c')](emptyJoinChild);}else{emptyJoinChild[_0x425c('0x35')][_0x425c('0x5c')](emptyConnectChild);emptyConnectChild[_0x425c('0x35')]['replace'](qNode,emptyJoinChild);}if(qNode[_0x425c('0x45')]>0x0){let node=qNode[_0x425c('0x7f')];do{let nextFull=node['fullRight'];qNode[_0x425c('0x4f')](node,![]);this['addChild'](node,![]);node[_0x425c('0x33')]=this;if(nextFull==node)break;node=nextFull;}while(qNode['fullChildrenList']!=null);}this[_0x425c('0x4f')](qNode,![]);qNode[_0x425c('0x55')]();}[_0x425c('0x8e')](node){if(this[_0x425c('0x45')]==0x0)return;let newSiblings=[];let fullLeavesStart=this[_0x425c('0x8f')]();if(fullLeavesStart!=null)newSiblings['push'](fullLeavesStart);let fullLeavesEnd=this['getFullLeavesTo']();if(fullLeavesEnd!=null)newSiblings[_0x425c('0x14')](fullLeavesEnd);if(newSiblings[_0x425c('0x17')]==0x0){this[_0x425c('0x59')]=new PQTree[(_0x425c('0x6b'))]();this[_0x425c('0x59')][_0x425c('0x5c')](node);}else if(newSiblings['length']==0x1){for(let i=0x0;i<this['endMostChildren'][_0x425c('0x2f')];i++){let endNode=null;if(this[_0x425c('0x5e')]){endNode=this[_0x425c('0x59')]['get'](i);let siblings=endNode[_0x425c('0x35')];if(siblings[_0x425c('0x79')](0x0)!=null&&siblings[_0x425c('0x79')](0x0)['parent']!=this)endNode=siblings[_0x425c('0x79')](0x0);else if(siblings[_0x425c('0x79')](0x1)!=null&&siblings[_0x425c('0x79')](0x1)[_0x425c('0x33')]!=this)endNode=siblings[_0x425c('0x79')](0x1);}if(this[_0x425c('0x59')]['get'](i)[_0x425c('0x5a')](endNode,NodeLabel['full'])){this['endMostChildren'][_0x425c('0x90')](i);break;}}this[_0x425c('0x59')][_0x425c('0x5c')](node);}node['immediateSiblings']=newSiblings[_0x425c('0x17')]>0x0?new PQTree[(_0x425c('0x6b'))]():null;for(let i=0x0;i<newSiblings[_0x425c('0x17')];i++){let current=newSiblings[i];let siblings=current[_0x425c('0x35')];for(let j=0x0;j<=0x1;++j){if(siblings[_0x425c('0x79')](j)!=null&&siblings[_0x425c('0x79')](j)[_0x425c('0x5a')](current,NodeLabel[_0x425c('0x41')])){siblings[_0x425c('0x8a')](siblings[_0x425c('0x79')](j),node);node[_0x425c('0x35')]['add'](current);break;}}}node[_0x425c('0x33')]=this;while(this[_0x425c('0x7f')]!=null){let exFull=this[_0x425c('0x7f')];this['removeChild'](exFull,![]);exFull[_0x425c('0x73')]=NodeLabel['empty'];}}[_0x425c('0x54')](theChild){this['circularLink']=theChild[_0x425c('0x6e')];this[_0x425c('0x7f')]=theChild[_0x425c('0x7f')];this['partialChildrenList']=theChild['partialChildrenList'];this['endMostChildren']=theChild[_0x425c('0x59')];this[_0x425c('0x6f')]=theChild[_0x425c('0x6f')];this[_0x425c('0x45')]=theChild[_0x425c('0x45')];this[_0x425c('0x47')]=theChild[_0x425c('0x47')];this[_0x425c('0x38')]=theChild[_0x425c('0x38')];this['pertinentLeafCount']=theChild[_0x425c('0x3a')];this[_0x425c('0x6d')]=theChild[_0x425c('0x42')];this[_0x425c('0x69')]=theChild['data'];this['destroyed']=theChild[_0x425c('0x5d')];this['pseudoRoot']=theChild[_0x425c('0x5e')];if(this['type']==NodeType[_0x425c('0x4b')]){for(let i=0x0;i<this[_0x425c('0x59')][_0x425c('0x2f')];i++)this['endMostChildren'][_0x425c('0x79')](i)[_0x425c('0x33')]=this;if(this[_0x425c('0x45')]>0x0){let currentNode=this[_0x425c('0x7f')];do{let nextNode=currentNode[_0x425c('0x75')];currentNode[_0x425c('0x33')]=this;if(nextNode!=currentNode)currentNode=nextNode;else break;}while(currentNode!=this['fullChildrenList']);}}theChild[_0x425c('0x55')]();}[_0x425c('0x4d')](newParent){if(this[_0x425c('0x45')]>0x0){if(this[_0x425c('0x42')]==NodeType[_0x425c('0x43')]){let currentNode=this['fullChildrenList'];do{let nextNode=currentNode[_0x425c('0x75')];this[_0x425c('0x4f')](currentNode);newParent[_0x425c('0x49')](currentNode);currentNode=nextNode;}while(this[_0x425c('0x7f')]!=null);}if(this[_0x425c('0x42')]==NodeType[_0x425c('0x4b')]){let currentNode=this[_0x425c('0x7f')];do{let nextNode=currentNode['fullRight'];this[_0x425c('0x4f')](currentNode,![]);newParent[_0x425c('0x49')](currentNode,![]);currentNode[_0x425c('0x33')]=newParent;if(nextNode!=currentNode)currentNode=nextNode;else break;}while(this[_0x425c('0x7f')]!=null);}}}[_0x425c('0x5a')](node,nodeLabel){if(this[_0x425c('0x42')]!=NodeType[_0x425c('0x6a')])return this[_0x425c('0x40')]==nodeLabel;let sibling=this['immediateSiblings'][_0x425c('0x7c')](node);return sibling!=null&&sibling[_0x425c('0x5a')](this,nodeLabel);}[_0x425c('0x3f')](){if(this[_0x425c('0x42')]==NodeType['pNode'])return this[_0x425c('0x6f')]>0x0;if(this['type']==NodeType['qNode'])return this[_0x425c('0x59')][_0x425c('0x2f')]>0x0;return![];}['getEndmostLeaves'](){return[this[_0x425c('0x59')]['get'](0x0)[_0x425c('0x91')](),this[_0x425c('0x59')][_0x425c('0x79')](0x1)[_0x425c('0x91')]()];}[_0x425c('0x92')](list,nodeType){if(this['type']==nodeType)list['push'](this);if(this[_0x425c('0x42')]==NodeType[_0x425c('0x43')]){if(this[_0x425c('0x3f')]()){let child=this[_0x425c('0x6e')];do{child[_0x425c('0x92')](list,nodeType);child=child['right'];}while(child!=this[_0x425c('0x6e')]);}}if(this[_0x425c('0x42')]==NodeType[_0x425c('0x4b')]){for(let child of this[_0x425c('0x93')]())child[_0x425c('0x92')](list,nodeType);}}[_0x425c('0x93')](){let list=[];if(this['hasChildren']()){let previousNode=null;let child=this[_0x425c('0x59')][_0x425c('0x79')](0x0);let lastNode=null;if(this[_0x425c('0x5e')]){if(child[_0x425c('0x35')]['get'](0x0)!=null&&child[_0x425c('0x35')][_0x425c('0x79')](0x0)['parent']!=this){previousNode=child[_0x425c('0x35')][_0x425c('0x79')](0x0);}else if(child['immediateSiblings'][_0x425c('0x79')](0x1)!=null&&child[_0x425c('0x35')][_0x425c('0x79')](0x1)[_0x425c('0x33')]!=this){previousNode=child[_0x425c('0x35')][_0x425c('0x79')](0x1);}if(this[_0x425c('0x59')][_0x425c('0x2f')]>0x1){let tempNode=this[_0x425c('0x59')][_0x425c('0x79')](0x1);if(tempNode[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&tempNode[_0x425c('0x35')][_0x425c('0x79')](0x0)[_0x425c('0x33')]!=this){lastNode=tempNode[_0x425c('0x35')][_0x425c('0x79')](0x0);}else if(tempNode[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&tempNode['immediateSiblings'][_0x425c('0x79')](0x1)['parent']!=this){lastNode=tempNode[_0x425c('0x35')][_0x425c('0x79')](0x1);}}}do{list[_0x425c('0x14')](child);let nextNode=child[_0x425c('0x35')][_0x425c('0x7c')](previousNode);previousNode=child;child=nextNode;}while(child!=lastNode);}return list;}[_0x425c('0x91')](){if(this[_0x425c('0x44')]==0x0)return this;if(this[_0x425c('0x42')]==NodeType[_0x425c('0x43')])return this[_0x425c('0x6e')]['getLeaf']();if(this['type']==NodeType[_0x425c('0x4b')])return this[_0x425c('0x59')]['get'](0x0);return null;}[_0x425c('0x67')](node){if(this[_0x425c('0x35')][_0x425c('0x64')](node)&&node['immediateSiblings'][_0x425c('0x64')](this))return!![];if(this[_0x425c('0x35')]['get'](0x0)!=null&&this[_0x425c('0x35')][_0x425c('0x79')](0x0)['type']==NodeType[_0x425c('0x6a')]&&this[_0x425c('0x35')][_0x425c('0x79')](0x0)[_0x425c('0x35')][_0x425c('0x7c')](this)==node)return!![];if(this['immediateSiblings'][_0x425c('0x79')](0x1)!=null&&this[_0x425c('0x35')]['get'](0x1)[_0x425c('0x94')]==NodeType[_0x425c('0x6a')]&&this['immediateSiblings'][_0x425c('0x79')](0x1)[_0x425c('0x35')][_0x425c('0x7c')](this)==node)return!![];return![];}['getFullLeavesFrom'](){let fullChild=this[_0x425c('0x7f')];let prevFullChild=null;let firstFullChild=null;do{if(fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)==null||fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&!fullChild['immediateSiblings'][_0x425c('0x79')](0x0)[_0x425c('0x5a')](fullChild,NodeLabel['full'])){prevFullChild=fullChild[_0x425c('0x35')]['get'](0x0);firstFullChild=fullChild;break;}if(fullChild['immediateSiblings'][_0x425c('0x79')](0x1)==null||fullChild[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&!fullChild[_0x425c('0x35')][_0x425c('0x79')](0x1)['checkLabelDirected'](fullChild,NodeLabel[_0x425c('0x41')])){prevFullChild=fullChild[_0x425c('0x35')][_0x425c('0x79')](0x1);firstFullChild=fullChild;break;}fullChild=fullChild[_0x425c('0x75')];}while(fullChild!=this['fullChildrenList']);if(prevFullChild!=null&&prevFullChild[_0x425c('0x42')]==NodeType['directionIndicator']){let nextNode=prevFullChild;let prevNode=firstFullChild;while(nextNode!=null&&nextNode[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]){let tempNode=nextNode;nextNode=nextNode['immediateSiblings'][_0x425c('0x7c')](prevNode);prevNode=tempNode;}prevFullChild=nextNode;}return prevFullChild;}['getFullLeavesTo'](){let prevFullChild=this['getFullLeavesFrom']();let nextFullChild=null;let fullChild=null;let tempFullChild=null;if(prevFullChild!=null){if(prevFullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&prevFullChild['immediateSiblings'][_0x425c('0x79')](0x0)[_0x425c('0x5a')](prevFullChild,NodeLabel[_0x425c('0x41')])){fullChild=prevFullChild[_0x425c('0x35')][_0x425c('0x79')](0x0);}else if(prevFullChild[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&prevFullChild[_0x425c('0x35')]['get'](0x1)[_0x425c('0x5a')](prevFullChild,NodeLabel[_0x425c('0x41')])){fullChild=prevFullChild[_0x425c('0x35')][_0x425c('0x79')](0x1);}nextFullChild=fullChild;let aPrevFullChild=prevFullChild;do{tempFullChild=nextFullChild;nextFullChild=nextFullChild[_0x425c('0x35')][_0x425c('0x7c')](aPrevFullChild);aPrevFullChild=tempFullChild;}while(nextFullChild!=null&&(nextFullChild[_0x425c('0x5a')](aPrevFullChild,NodeLabel['full'])||nextFullChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]));}else{fullChild=this['fullChildrenList'];do{if(fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&!fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)['checkLabelDirected'](fullChild,NodeLabel['full'])){nextFullChild=fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0);prevFullChild=fullChild;break;}if(fullChild[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&!fullChild[_0x425c('0x35')]['get'](0x1)[_0x425c('0x5a')](fullChild,NodeLabel[_0x425c('0x41')])){nextFullChild=fullChild['immediateSiblings'][_0x425c('0x79')](0x1);prevFullChild=fullChild;break;}fullChild=fullChild['fullRight'];}while(fullChild!=this[_0x425c('0x7f')]);if(nextFullChild!=null&&nextFullChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]){do{tempFullChild=nextFullChild;nextFullChild=nextFullChild[_0x425c('0x35')][_0x425c('0x7c')](prevFullChild);prevFullChild=tempFullChild;}while(nextFullChild!=null&&nextFullChild['type']==NodeType[_0x425c('0x6a')]);}}return nextFullChild;}[_0x425c('0x95')](){let fullLeaves=[];let subLeaves=null;if(this['type']==NodeType[_0x425c('0x4b')]){if(this[_0x425c('0x3f')]()){let firstFullChild=null;let fullChild=this[_0x425c('0x7f')];let prevFullChild=null;do{if(fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)==null||fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)!=null&&!fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0)[_0x425c('0x5a')](fullChild,NodeLabel[_0x425c('0x41')])){prevFullChild=fullChild[_0x425c('0x35')][_0x425c('0x79')](0x0);firstFullChild=fullChild;break;}if(fullChild[_0x425c('0x35')]['get'](0x1)==null||fullChild[_0x425c('0x35')][_0x425c('0x79')](0x1)!=null&&!fullChild['immediateSiblings'][_0x425c('0x79')](0x1)['checkLabelDirected'](fullChild,NodeLabel[_0x425c('0x41')])){prevFullChild=fullChild['immediateSiblings'][_0x425c('0x79')](0x1);firstFullChild=fullChild;break;}fullChild=fullChild['fullRight'];}while(fullChild!=this[_0x425c('0x7f')]);if(prevFullChild!=null&&prevFullChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]){let directedNodes=[];let nextNode=prevFullChild;let prevNode=firstFullChild;while(nextNode!=null&&nextNode['type']==NodeType['directionIndicator']){if(prevNode==nextNode['direction'])nextNode[_0x425c('0x6c')]=![];else if(nextNode[_0x425c('0x35')][_0x425c('0x7c')](prevNode)==nextNode['direction'])nextNode['readInReverseDirection']=!![];directedNodes[_0x425c('0x14')](nextNode);let tempNode=nextNode;nextNode=nextNode[_0x425c('0x35')]['getOther'](prevNode);prevNode=tempNode;}for(let i=directedNodes[_0x425c('0x17')];i>0x0;i--){fullLeaves[_0x425c('0x14')](directedNodes[i-0x1]);}}fullChild=firstFullChild;do{if(fullChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]){if(prevFullChild==fullChild[_0x425c('0x96')])fullChild[_0x425c('0x6c')]=!![];else if(fullChild[_0x425c('0x35')][_0x425c('0x7c')](prevFullChild)==fullChild[_0x425c('0x96')])fullChild[_0x425c('0x6c')]=![];}subLeaves=fullChild[_0x425c('0x95')]();fullLeaves[_0x425c('0x14')](...subLeaves);let tempFullChild=fullChild;fullChild=fullChild[_0x425c('0x35')]['getOther'](prevFullChild);prevFullChild=tempFullChild;}while(fullChild!=null&&(fullChild[_0x425c('0x5a')](prevFullChild,NodeLabel['full'])||fullChild[_0x425c('0x42')]==NodeType[_0x425c('0x6a')]));}}else{if(this['hasChildren']()){let fullChild=this[_0x425c('0x7f')];do{subLeaves=fullChild[_0x425c('0x95')]();fullLeaves['push'](...subLeaves);fullChild=fullChild[_0x425c('0x75')];}while(fullChild!=this[_0x425c('0x7f')]);}else{fullLeaves['push'](this);}}return fullLeaves;}get[_0x425c('0x42')](){return this[_0x425c('0x6d')];}set['type'](value){if(this[_0x425c('0x6d')]!=value){if(value==NodeType[_0x425c('0x4b')]){this[_0x425c('0x59')]=new PQTree[(_0x425c('0x6b'))]();}if(value==NodeType[_0x425c('0x43')]){let endMost1=this[_0x425c('0x59')][_0x425c('0x79')](0x0);let endMost2=this['endMostChildren'][_0x425c('0x79')](0x1);this['_type']=NodeType[_0x425c('0x43')];this[_0x425c('0x6e')]=endMost1;this[_0x425c('0x6f')]=0x2;endMost1[_0x425c('0x35')]=null;endMost1[_0x425c('0x82')]=endMost2;endMost1[_0x425c('0x74')]=endMost2;endMost2['immediateSiblings']=null;endMost2[_0x425c('0x82')]=endMost1;endMost2[_0x425c('0x74')]=endMost1;this[_0x425c('0x59')]=null;}this['_type']=value;}}get[_0x425c('0x97')](){return this['right'];}get['childLink'](){return this[_0x425c('0x6e')];}get[_0x425c('0x44')](){return this[_0x425c('0x6f')];}get['emptyChildren'](){return this[_0x425c('0x6f')]-this[_0x425c('0x45')]-this[_0x425c('0x47')];}get['label'](){return this[_0x425c('0x73')];}set[_0x425c('0x40')](value){if(this['_label']!=value){if(this[_0x425c('0x33')]!=null)this['parent']['removeChild'](this,![]);this[_0x425c('0x73')]=value;if(this['parent']!=null)this['parent'][_0x425c('0x49')](this,![]);}}get[_0x425c('0x98')](){return!this[_0x425c('0x36')]&&!this[_0x425c('0x31')];}get[_0x425c('0x96')](){return this[_0x425c('0x35')]['direction'];}set[_0x425c('0x96')](value){if(this[_0x425c('0x35')][_0x425c('0x64')](value))this[_0x425c('0x35')]['direction']=value;}};PQTree['NodePair']=class{constructor(directionIndex){this[_0x425c('0x99')]=[];this[_0x425c('0x9a')]=![];if(typeof directionIndex!='undefined'){this[_0x425c('0x9a')]=!![];this[_0x425c('0x9b')]=directionIndex;}}[_0x425c('0x5c')](node){if(this[_0x425c('0x99')][_0x425c('0x17')]<0x2)this['nodes'][_0x425c('0x14')](node);if(this[_0x425c('0x9a')]&&this[_0x425c('0x9b')]==-0x1)this['directedTowardsIndex']=this['indexOf'](node);}['remove'](node){if(this[_0x425c('0x9a')]){if(this[_0x425c('0x9b')]==0x1&&this[_0x425c('0x9c')](node)==0x0)this['directedTowardsIndex']=0x0;else if(this['indexOf'](node)==this[_0x425c('0x9b')])this[_0x425c('0x9b')]=-0x1;}let index=this[_0x425c('0x99')][_0x425c('0x9c')](node);if(index>-0x1){this['nodes']['splice'](index,0x1);return!![];}else{return![];}}[_0x425c('0x90')](index){if(index>=this['nodes'][_0x425c('0x17')])return![];this[_0x425c('0x99')]['splice'](index,0x1);return!![];}[_0x425c('0x7c')](node){if(this[_0x425c('0x99')][_0x425c('0x17')]==0x1){if(node==null)return this['nodes'][0x0];if(node==this['nodes'][0x0])return null;}if(this['nodes'][_0x425c('0x17')]==0x2){if(node==this['nodes'][0x0])return this[_0x425c('0x99')][0x1];if(node==this[_0x425c('0x99')][0x1])return this[_0x425c('0x99')][0x0];}return null;}[_0x425c('0x8a')](oldNode,newNode){for(let i=0x0;i<this[_0x425c('0x99')][_0x425c('0x17')];++i){if(this[_0x425c('0x99')][i]==oldNode){this[_0x425c('0x99')][i]=newNode;break;}}}[_0x425c('0x9c')](node){return this[_0x425c('0x99')][_0x425c('0x9c')](node);}[_0x425c('0x64')](node){return this[_0x425c('0x99')]['includes'](node);}[_0x425c('0x79')](index){if(index<this[_0x425c('0x99')][_0x425c('0x17')])return this[_0x425c('0x99')][index];return null;}get[_0x425c('0x2f')](){return this[_0x425c('0x99')][_0x425c('0x17')];}get[_0x425c('0x96')](){if(this['directedTowardsIndex']==-0x1)return null;return this[_0x425c('0x79')](this[_0x425c('0x9b')]);}set[_0x425c('0x96')](value){if(value==null)this[_0x425c('0x9b')]=-0x1;else if(this[_0x425c('0x64')](value))this[_0x425c('0x9b')]=this[_0x425c('0x9c')](value);else this['directedTowardsIndex']=-0x1;}};const NodeType={'pNode':0x0,'qNode':0x1,'directionIndicator':0x2};const NodeLabel={'empty':0x0,'partial':0x1,'full':0x2};class Face{constructor(prototype){if(prototype==null)this[_0x425c('0x0')]=[];else this[_0x425c('0x0')]=prototype[_0x425c('0x0')][_0x425c('0x9d')]();}[_0x425c('0xa')](v){for(let e of this[_0x425c('0x0')])if(e[_0x425c('0xa')](v))return!![];return![];}[_0x425c('0x1e')](face){for(let e1 of this[_0x425c('0x0')])for(let e2 of face[_0x425c('0x0')])if(e1==e2)return!![];return![];}[_0x425c('0xc')](face){for(let e1 of this[_0x425c('0x0')])for(let e2 of face[_0x425c('0x0')])if(e1==e2)return e1;return null;}get[_0x425c('0x16')](){return this[_0x425c('0x0')][_0x425c('0x17')];}['getVertices'](){let vertices=new Set();for(let edge of this['edges']){vertices[_0x425c('0x5c')](edge[_0x425c('0x8')]);vertices[_0x425c('0x5c')](edge['destination']);}return vertices;}['enumVertices'](){let vertices=[];for(let i=0x0;i<this[_0x425c('0x0')]['length'];i++){let edge1=this[_0x425c('0x0')][i];let edge2=this[_0x425c('0x0')][(i+0x1)%this[_0x425c('0x0')][_0x425c('0x17')]];let v=edge1[_0x425c('0x1c')](edge2);vertices[_0x425c('0x14')](v);}return vertices;}[_0x425c('0x9e')](){for(let i=0x0;i<this[_0x425c('0x0')][_0x425c('0x17')];i++){let e1=this['edges'][i];let e2=this[_0x425c('0x0')][(i+0x1)%this['edges']['length']];if(e1[_0x425c('0x9')]==e2[_0x425c('0x9')]||e1[_0x425c('0x8')]==e2[_0x425c('0x8')])return![];}return!![];}[_0x425c('0x9f')](vertex){for(let i=0x0;i<this[_0x425c('0x0')][_0x425c('0x17')];i++){let e1=this[_0x425c('0x0')][i];let e2=this[_0x425c('0x0')][(i+0x1)%this[_0x425c('0x0')]['length']];if(e1[_0x425c('0xa')](vertex)&&e2[_0x425c('0xa')](vertex))return e2;}return null;}['replaceEdge'](edge,replacement){let edgeIndex=this['edges'][_0x425c('0x9c')](edge);if(edgeIndex==-0x1)return;let nextIndex=(edgeIndex+0x1)%this[_0x425c('0x0')]['length'];let reverse=replacement[0x0]['adjacentTo'](this[_0x425c('0x0')][nextIndex]);if(reverse){replacement=replacement['slice']();replacement['reverse']();}this[_0x425c('0x0')][_0x425c('0xa0')](edgeIndex,0x1,...replacement);}get['bigAngles'](){if(this['_bigAngles']==null)this['_bigAngles']=[];return this[_0x425c('0xa1')];}}class Embedding{constructor(graph,copy,vertexCopyToOrigMap,edgeCopyToOrigMap){if(graph){this['graph']=graph;this[_0x425c('0xa2')]=new Map();}if(copy){this[_0x425c('0xa3')]=copy['graph'];this[_0x425c('0xa2')]=copy[_0x425c('0xa2')];}if(vertexCopyToOrigMap){this[_0x425c('0xa2')]=new Map();for(const [vertex,edges]of copy[_0x425c('0xa2')]['entries']()){let originalEdges=[];for(let edge of edges)originalEdges['push'](edgeCopyToOrigMap['get'](edge));this[_0x425c('0xa2')][_0x425c('0xa4')](vertexCopyToOrigMap[_0x425c('0x79')](vertex),originalEdges);}}}['addBlockEmbedding'](block,blockEmbedding){for(const [vertex,edges]of blockEmbedding[_0x425c('0xa5')]()){let v=block['vertexCopyToOrigMap'][_0x425c('0x79')](vertex);this[_0x425c('0x5c')](v);for(let edgeCopy of edges){let e=block[_0x425c('0xa6')]['get'](edgeCopy);this[_0x425c('0xa2')][_0x425c('0x79')](v)[_0x425c('0x14')](e);}}}['add'](v){if(!this['embedding'][_0x425c('0xa7')](v))this[_0x425c('0xa2')][_0x425c('0xa4')](v,[]);}[_0x425c('0x7')](v){if(this[_0x425c('0xa2')][_0x425c('0xa7')](v)){for(let e of this['embedding'][_0x425c('0x79')](v)){let w=e[_0x425c('0xe')](v);Utils['remove'](this[_0x425c('0xa2')][_0x425c('0x79')](w),e);}this[_0x425c('0xa2')][_0x425c('0xa8')](v);}}[_0x425c('0xa9')](e){let r=this[_0x425c('0xaa')][_0x425c('0x79')](e);let adjacentEdges=this[_0x425c('0xa2')][_0x425c('0x79')](r['origin']);let position=adjacentEdges['indexOf'](r);return adjacentEdges[(position+0x1)%adjacentEdges[_0x425c('0x17')]];}[_0x425c('0xab')](){this['reverseEdges']=new Map();for(const [v,edges]of this['embedding'][_0x425c('0xa5')]()){for(let i=0x0;i<edges['length'];++i){let e=edges[i];if(e[_0x425c('0x8')]!=v){let r=e[_0x425c('0x24')]();this['reverseEdges'][_0x425c('0xa4')](e,r);this[_0x425c('0xaa')][_0x425c('0xa4')](r,e);edges[i]=r;}}}}[_0x425c('0xac')](e,e1,e2,r,r1,r2,newVertex){let originEm=this['embedding']['get'](e['origin']);let destEm=this[_0x425c('0xa2')][_0x425c('0x79')](e[_0x425c('0x9')]);let ei=originEm[_0x425c('0x9c')](e);let ri=destEm[_0x425c('0x9c')](r);originEm[ei]=e1;destEm[ri]=r1;this[_0x425c('0xaa')][_0x425c('0xa8')](e);this[_0x425c('0xaa')][_0x425c('0xa8')](r);this[_0x425c('0xaa')]['set'](e1,r2);this['reverseEdges'][_0x425c('0xa4')](e2,r1);this[_0x425c('0xaa')][_0x425c('0xa4')](r2,e1);this[_0x425c('0xaa')][_0x425c('0xa4')](r1,e2);this['embedding']['set'](newVertex,[e2,r2]);}[_0x425c('0xad')](e,r,fromEdge,toEdge){this[_0x425c('0xaa')]['set'](e,r);this[_0x425c('0xaa')][_0x425c('0xa4')](r,e);let v1=e['origin'];toEdge=this[_0x425c('0xaa')][_0x425c('0x79')](toEdge);let em1=this['embedding']['get'](v1);let pos1=em1['indexOf'](toEdge);em1[_0x425c('0xa0')](pos1+0x1,0x0,e);let v2=e[_0x425c('0x9')];let em2=this[_0x425c('0xa2')][_0x425c('0x79')](v2);let pos2=em2['indexOf'](fromEdge);em2[_0x425c('0xa0')](pos2,0x0,r);}[_0x425c('0xae')](v,e){let vem=this['embedding'][_0x425c('0x79')](v);let next=null;if(e['origin']==v){let i=vem[_0x425c('0x9c')](e);next=vem[(i+0x1)%vem[_0x425c('0x17')]];}if(e[_0x425c('0x9')]==v){let i=vem[_0x425c('0x9c')](this[_0x425c('0xaa')]['get'](e));next=vem[(i+0x1)%vem[_0x425c('0x17')]];}if(next!=null)return next[_0x425c('0x25')]?this[_0x425c('0xaa')]['get'](next):next;return null;}[_0x425c('0xaf')](v,e){let vem=this[_0x425c('0xa2')][_0x425c('0x79')](v);let prev=null;if(e[_0x425c('0x8')]==v){let i=vem[_0x425c('0x9c')](e);i--;if(i<0x0)i=vem[_0x425c('0x17')]-0x1;prev=vem[i];}if(e[_0x425c('0x9')]==v){let i=vem[_0x425c('0x9c')](this['reverseEdges'][_0x425c('0x79')](e));i--;if(i<0x0)i=vem[_0x425c('0x17')]-0x1;prev=vem[i];}if(prev!=null)return prev[_0x425c('0x25')]?this[_0x425c('0xaa')][_0x425c('0x79')](prev):prev;return null;}['setReverseEdges'](e,r){this[_0x425c('0xaa')][_0x425c('0xa4')](e,r);this[_0x425c('0xaa')][_0x425c('0xa4')](r,e);}[_0x425c('0xb0')](v){let edges=this[_0x425c('0xa2')]['get'](v);if(edges[_0x425c('0x17')]<0x4)return!![];let directionChanges=0x0;for(let i=0x0;i<edges[_0x425c('0x17')];i++){let e1=edges[i];let e2=edges[(i+0x1)%edges[_0x425c('0x17')]];if(e1[_0x425c('0x8')]==v&&e2['destination']==v||e1[_0x425c('0x9')]==v&&e2[_0x425c('0x8')]==v)directionChanges++;}return directionChanges<=0x2;}[_0x425c('0xb1')](){for(let v of this[_0x425c('0xa2')][_0x425c('0xb2')]()){if(!this['isVertexBimodal'](v))return![];}return!![];}['contractEdge'](edge,vertex){this[_0x425c('0x5c')](vertex);let oem=this[_0x425c('0x79')](edge['origin']);let oi=oem[_0x425c('0x9c')](edge);for(let i=0x0;i<oem[_0x425c('0x17')];i++){let ei=(i+oi)%oem[_0x425c('0x17')];let e=oem[ei];if(e!=edge)this[_0x425c('0x79')](vertex)[_0x425c('0x14')](e);}let dem=this['get'](edge[_0x425c('0x9')]);let di=dem[_0x425c('0x9c')](edge);for(let i=0x0;i<dem['length'];i++){let ei=(i+di)%dem[_0x425c('0x17')];let e=dem[ei];if(e!=edge)this[_0x425c('0x79')](vertex)['push'](e);}this[_0x425c('0xa2')][_0x425c('0xa8')](edge[_0x425c('0x8')]);this[_0x425c('0xa2')][_0x425c('0xa8')](edge[_0x425c('0x9')]);}[_0x425c('0xb3')](edge,vertex){this['add'](vertex);this['embedding'][_0x425c('0x79')](vertex)[_0x425c('0x14')](...vertex['edges']);let oem=this[_0x425c('0x79')](edge[_0x425c('0x8')]);let oi=oem[_0x425c('0x9c')](edge);oem[oi]=vertex[_0x425c('0x0')][0x0];let dem=this[_0x425c('0x79')](edge['destination']);let di=dem[_0x425c('0x9c')](edge);dem[di]=vertex[_0x425c('0x0')][0x1];}[_0x425c('0xb4')](face){return face!=this[_0x425c('0xb5')]?this[_0x425c('0xb6')](face)-0x1:this[_0x425c('0xb6')](face)+0x1;}['countSourceSwitches'](face){let count=0x0;for(let i=0x0;i<face[_0x425c('0x0')][_0x425c('0x17')];i++){let e1=face[_0x425c('0x0')][i];let e2=face[_0x425c('0x0')][(i+0x1)%face[_0x425c('0x0')][_0x425c('0x17')]];if(e1['origin']==e2[_0x425c('0x8')])count++;}return count;}[_0x425c('0xb7')](){this[_0x425c('0xb8')]=[];this['faceOnLeftMap']=new Map();this[_0x425c('0xb9')]=new Map();for(let edge of this[_0x425c('0xa3')][_0x425c('0x0')]){if(!this[_0x425c('0xb9')][_0x425c('0xa7')](edge))this['_faces'][_0x425c('0x14')](this[_0x425c('0xba')](edge,edge[_0x425c('0x8')]));if(!this[_0x425c('0xbb')][_0x425c('0xa7')](edge))this['_faces']['push'](this[_0x425c('0xba')](edge,edge[_0x425c('0x9')]));}if(this['_faces'][_0x425c('0x17')]>0x0)this['externalFace']=this[_0x425c('0xb8')][0x0];}['enumerateFaceEdges'](startEdge,startVertex){let face=new Face();let currentEdge=startEdge;let currentVertex=startVertex;do{face[_0x425c('0x0')][_0x425c('0x14')](currentEdge);if(currentVertex==currentEdge[_0x425c('0x8')])this[_0x425c('0xb9')][_0x425c('0xa4')](currentEdge,face);else this['faceOnLeftMap'][_0x425c('0xa4')](currentEdge,face);currentVertex=currentEdge[_0x425c('0xe')](currentVertex);currentEdge=this[_0x425c('0xbc')](currentEdge,currentVertex);}while(currentEdge!=startEdge);return face;}['prevInEmbedding'](edge,vertex){let vem=this['embedding'][_0x425c('0x79')](vertex);let index=vem[_0x425c('0x9c')](edge)-0x1;if(index<0x0)index=vem[_0x425c('0x17')]-0x1;return vem[index];}[_0x425c('0xbd')](edge,vertex,face){for(let i=0x0;i<face[_0x425c('0x0')][_0x425c('0x17')];i++){let e1=face[_0x425c('0x0')][i];let e2=face[_0x425c('0x0')][(i+0x1)%face[_0x425c('0x0')][_0x425c('0x17')]];let v=e1['getCommonVertex'](e2);if(v==vertex){let idx=this[_0x425c('0xa2')][_0x425c('0x79')](v)['indexOf'](e2);this[_0x425c('0xa2')][_0x425c('0x79')](v)['splice'](idx+0x1,0x0,edge);return;}}}['edgesBetween'](edge1,edge2,vertex){let edges=[];let vem=this[_0x425c('0x79')](vertex);let si=vem[_0x425c('0x9c')](edge1);let ei=vem['indexOf'](edge2);for(let i=0x1;i<vem['length'];i++){let ci=(i+si)%vem['length'];if(ci==ei)break;let e=vem[ci];edges[_0x425c('0x14')](e);}return edges;}[_0x425c('0xbe')](e){return this[_0x425c('0xaa')][_0x425c('0x79')](e);}[_0x425c('0x79')](v){return this[_0x425c('0xa2')]['get'](v);}get['vertices'](){return this['embedding'][_0x425c('0xb2')]();}get['faces'](){if(this[_0x425c('0xb8')]==null)this[_0x425c('0xb7')]();return this[_0x425c('0xb8')];}}class Interval{constructor(min,max){this[_0x425c('0xbf')]=min;this['max']=max;}[_0x425c('0x64')](interval){return this[_0x425c('0xbf')]<=interval[_0x425c('0xbf')]&&interval[_0x425c('0xc0')]<=this['max'];}['intersects'](interval){if(this[_0x425c('0xbf')]>=interval[_0x425c('0xc0')])return![];if(interval[_0x425c('0xbf')]>=this[_0x425c('0xc0')])return![];return!![];}[_0x425c('0xc1')](interval){if(interval[_0x425c('0x64')](this)||this[_0x425c('0x64')](interval))return![];return this['intersects'](interval);}}class BinaryTree{constructor(item){this[_0x425c('0x29')]=new BinaryTree[(_0x425c('0x2a'))](item);}[_0x425c('0xc2')](){return this['root']['getLeaves']();}}BinaryTree[_0x425c('0x2a')]=class{constructor(item){this[_0x425c('0xc3')]=item;}['addChildren'](left,right){this['left']=new BinaryTree[(_0x425c('0x2a'))](left);this[_0x425c('0x74')]=new BinaryTree['Node'](right);}[_0x425c('0xc2')](){let leaves=[];this[_0x425c('0xc4')](leaves);return leaves;}[_0x425c('0xc4')](leaves){if(this[_0x425c('0x82')]==null&&this[_0x425c('0x74')]==null)leaves[_0x425c('0x14')](this[_0x425c('0xc3')]);if(this[_0x425c('0x82')]!=null)this[_0x425c('0x82')][_0x425c('0xc4')](leaves);if(this[_0x425c('0x74')]!=null)this['right'][_0x425c('0xc4')](leaves);}};class PriorityQueue{constructor(maxN,array){this['a']=array;this['N']=0x0;this['d']=0x3;this['pq']=[];this['qp']=[];for(let i=0x0;i<=maxN;i++){this['pq'][i]=0x0;this['qp'][i]=0x0;}}['empty'](){return this['N']==0x0;}[_0x425c('0xc5')](v){this['pq'][++this['N']]=v;this['qp'][v]=this['N'];this[_0x425c('0xc6')](this['N']);}[_0x425c('0xc7')](){this[_0x425c('0xc8')](0x1,this['N']);this[_0x425c('0xc9')](0x1,this['N']-0x1);return this['pq'][this['N']--];}[_0x425c('0xca')](k){this[_0x425c('0xc6')](this['qp'][k]);}[_0x425c('0xcb')](i,j){return this['a'][this['pq'][i]]<this['a'][this['pq'][j]];}['exchange'](i,j){let t=this['pq'][i];this['pq'][i]=this['pq'][j];this['pq'][j]=t;this['qp'][this['pq'][i]]=i;this['qp'][this['pq'][j]]=j;}['swim'](k){while(k>0x1&&this[_0x425c('0xcc')](k,Math[_0x425c('0xcd')]((k+this['d']-0x2)/this['d']))){this[_0x425c('0xc8')](k,Math['floor']((k+this['d']-0x2)/this['d']));k=Math[_0x425c('0xcd')]((k+this['d']-0x2)/this['d']);}}[_0x425c('0xc9')](k,N){let j=0x0;while((j=this['d']*(k-0x1)+0x2)<=N){for(let i=j+0x1;i<j+this['d']&&i<=N;i++){if(this['less'](i,j))j=i;}if(!this['less'](j,k))break;this[_0x425c('0xc8')](k,j);k=j;}}}class Factory{}class TreeHelper{constructor(reversedLinks){this['reversedLinks']=reversedLinks;}[_0x425c('0xce')](edge){return this['reversedLinks']?edge['destination']:edge['origin'];}[_0x425c('0xcf')](edge){return this[_0x425c('0xd0')]?edge[_0x425c('0x8')]:edge['destination'];}['parentEdges'](vertex){return this[_0x425c('0xd0')]?vertex[_0x425c('0x1')]:vertex['inEdges'];}[_0x425c('0xd1')](vertex){return this['reversedLinks']?vertex['inEdges']:vertex[_0x425c('0x1')];}['assignPoints'](edge,points){if(this[_0x425c('0xd0')])points=points[_0x425c('0xd2')]();edge[_0x425c('0xd3')]=points;}}class Graph{constructor(){this[_0x425c('0xd4')]=[];this[_0x425c('0x0')]=[];}[_0x425c('0x3')](saveMapping){return this[_0x425c('0xd5')](this[_0x425c('0xd4')],saveMapping);}[_0x425c('0xd5')](vertexSubset,saveMapping){var copy=new Graph();if(saveMapping){copy[_0x425c('0xd6')]=new Map();copy[_0x425c('0xa6')]=new Map();}var map=new Map();for(let v of vertexSubset){var vcopy=v[_0x425c('0x3')]();map[_0x425c('0xa4')](v,vcopy);copy[_0x425c('0xd4')][_0x425c('0x14')](vcopy);if(saveMapping)copy['vertexCopyToOrigMap'][_0x425c('0xa4')](vcopy,v);}for(let e of this[_0x425c('0x0')]){if(map['has'](e['origin'])&&map[_0x425c('0xa7')](e[_0x425c('0x9')])){var ecopy=copy['createEdgeP'](map[_0x425c('0x79')](e[_0x425c('0x8')]),map[_0x425c('0x79')](e[_0x425c('0x9')]),e);if(saveMapping)copy[_0x425c('0xa6')][_0x425c('0xa4')](ecopy,e);}}return copy;}[_0x425c('0xd7')](){if(this[_0x425c('0xd6')]!=null){this['vertexOrigToCopyMap']=new Map();for(const [c,v]of this[_0x425c('0xd6')][_0x425c('0xa5')]())this[_0x425c('0xd8')][_0x425c('0xa4')](v,c);}if(this['edgeCopyToOrigMap']!=null){this['edgeOrigToCopyMap']=new Map();for(const [c,v]of this[_0x425c('0xa6')][_0x425c('0xa5')]())this['edgeOrigToCopyMap']['set'](v,c);}}[_0x425c('0xd9')](root,reversedLinks,enableAssistants,compactAssistants){var tree=new Graph();root[_0x425c('0xda')]=0x0;tree['root']=root;var visited=[];var remaining=[];tree[_0x425c('0xd4')]['push'](root);visited[_0x425c('0x14')](root);remaining[_0x425c('0x14')](root);var th=new TreeHelper(reversedLinks);var levelCount=0x1;while(remaining['length']>0x0){var next=remaining[_0x425c('0xdb')]();var childEdges=th['childEdges'](next);childEdges[_0x425c('0x15')](function(e){var childNode=th[_0x425c('0xcf')](e);if(visited[_0x425c('0xb')](childNode))return;var parentNode=th['parentNode'](e);childNode[_0x425c('0xda')]=parentNode[_0x425c('0xda')]+0x1;childNode[_0x425c('0x33')]=parentNode;if(levelCount<childNode[_0x425c('0xda')]+0x1)levelCount=childNode[_0x425c('0xda')]+0x1;remaining[_0x425c('0x14')](childNode);visited['push'](childNode);tree['vertices']['push'](childNode);tree[_0x425c('0x0')]['push'](e);});}if(enableAssistants){remaining[_0x425c('0x14')](root);visited=[];visited[_0x425c('0x14')](root);while(remaining[_0x425c('0x17')]>0x0){var next=remaining[_0x425c('0xdb')]();var lastPosition=AssistantPosition['Right'];var childEdges=th[_0x425c('0xd1')](next);for(var i=0x0;i<childEdges[_0x425c('0x17')];i++){var child=th['childNode'](childEdges[i]);if(visited[_0x425c('0xb')](child))continue;remaining[_0x425c('0x14')](child);visited[_0x425c('0x14')](child);switch(child[_0x425c('0x6')][_0x425c('0xdc')][_0x425c('0xdd')]){case AssistantType[_0x425c('0xde')]:child[_0x425c('0xdf')]=AssistantPosition[_0x425c('0xde')];break;case AssistantType[_0x425c('0xe0')]:child[_0x425c('0xdf')]=AssistantPosition[_0x425c('0xe0')];break;case AssistantType[_0x425c('0xe1')]:if(lastPosition===AssistantPosition[_0x425c('0xde')])child['assistantPosition']=AssistantPosition[_0x425c('0xe0')];else child[_0x425c('0xdf')]=AssistantPosition['Left'];break;default:continue;}lastPosition=child['assistantPosition'];}}visited=[];levelCount=this[_0x425c('0xe2')](visited,root,compactAssistants,th)+0x1;}var treeLevels=[];for(var i=0x0;i<levelCount;i++)treeLevels[_0x425c('0x14')]([]);tree[_0x425c('0xd0')]=reversedLinks;tree[_0x425c('0xe3')]=treeLevels;tree[_0x425c('0xe4')](tree[_0x425c('0x29')]);return tree;}[_0x425c('0xe4')](parent){this[_0x425c('0xe3')][parent[_0x425c('0xda')]][_0x425c('0x14')](parent);var children=this[_0x425c('0xe5')](parent);for(var child of children){this[_0x425c('0xe4')](child);}}[_0x425c('0xe5')](node){var children=[];if(this[_0x425c('0xd0')]){for(var e of node[_0x425c('0x13')]){if(this[_0x425c('0x0')]['includes'](e))children['push'](e['origin']);}}else{for(var e of node[_0x425c('0x1')]){if(this['edges'][_0x425c('0xb')](e))children[_0x425c('0x14')](e[_0x425c('0x9')]);}}return children;}[_0x425c('0xe2')](visited,parent,compactAssistants,treeHelper){var th=treeHelper;var maxLeftLevel=parent[_0x425c('0xda')];var maxRightLevel=parent[_0x425c('0xda')];var maxLevel=parent[_0x425c('0xda')];var bottomLevel=-0x1;var sorted=[];var childEdges=th[_0x425c('0xd1')](parent);for(var i=0x0;i<childEdges[_0x425c('0x17')];i++)sorted[_0x425c('0x14')](th[_0x425c('0xcf')](childEdges[i]));sorted['sort'](function(a,b){var aAssistantType=a[_0x425c('0x6')][_0x425c('0xdc')][_0x425c('0xdd')];var bAssistantType=b[_0x425c('0x6')][_0x425c('0xdc')][_0x425c('0xdd')];if(aAssistantType&&!bAssistantType)return-0x1;if(!aAssistantType&&bAssistantType)return 0x1;return a['index']-b['index'];});for(var i=0x0;i<sorted[_0x425c('0x17')];i++){var child=sorted[i];if(visited['includes'](child))continue;visited[_0x425c('0x14')](child);if(child['owner'][_0x425c('0xdc')][_0x425c('0xdd')]){if(child['assistantPosition']===AssistantPosition[_0x425c('0xde')]){if(compactAssistants)child['level']=maxLeftLevel+0x1;else child[_0x425c('0xda')]=Math[_0x425c('0xc0')](maxLeftLevel,maxRightLevel)+0x1;}else if(child['assistantPosition']===AssistantPosition[_0x425c('0xe0')]){if(compactAssistants)child['level']=maxRightLevel+0x1;else child[_0x425c('0xda')]=maxLevel+0x1;}}else{if(bottomLevel===-0x1)bottomLevel=Math[_0x425c('0xc0')](maxLeftLevel,maxRightLevel)+0x1;child[_0x425c('0xda')]=bottomLevel;}var newMaxLevel=this['reassignLevels'](visited,child,compactAssistants,th);if(child[_0x425c('0x6')]['layoutTraits'][_0x425c('0xdd')]){if(child[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')]){maxLeftLevel=Math[_0x425c('0xc0')](maxLeftLevel,newMaxLevel);}else{maxRightLevel=Math[_0x425c('0xc0')](maxRightLevel,newMaxLevel);maxLevel=Math[_0x425c('0xc0')](maxLeftLevel,maxRightLevel);}}else{maxLevel=Math[_0x425c('0xc0')](maxLevel,newMaxLevel);}}return Math['max'](maxLevel,maxLeftLevel);}[_0x425c('0xe6')](origin,destination,owner){var edge=this[_0x425c('0xe7')](origin,destination,null);if(owner)edge[_0x425c('0x6')]=owner;return edge;}['createEdgeP'](origin,destination,prototype){var edge=new Edge(origin,destination,prototype);this[_0x425c('0x0')]['push'](edge);edge[_0x425c('0x8')]['outEdges'][_0x425c('0x14')](edge);edge[_0x425c('0x8')]['edges'][_0x425c('0x14')](edge);edge[_0x425c('0x9')][_0x425c('0x13')]['push'](edge);edge[_0x425c('0x9')][_0x425c('0x0')][_0x425c('0x14')](edge);return edge;}[_0x425c('0xad')](edge){this[_0x425c('0x0')]['push'](edge);edge['origin'][_0x425c('0x1')][_0x425c('0x14')](edge);edge[_0x425c('0x8')][_0x425c('0x0')]['push'](edge);edge[_0x425c('0x9')][_0x425c('0x13')][_0x425c('0x14')](edge);edge[_0x425c('0x9')][_0x425c('0x0')]['push'](edge);}['removeEdge'](edge){Utils['remove'](this[_0x425c('0x0')],edge);Utils[_0x425c('0x7')](edge[_0x425c('0x8')][_0x425c('0x1')],edge);Utils[_0x425c('0x7')](edge[_0x425c('0x8')][_0x425c('0x0')],edge);Utils[_0x425c('0x7')](edge[_0x425c('0x9')][_0x425c('0x13')],edge);Utils[_0x425c('0x7')](edge['destination'][_0x425c('0x0')],edge);}['removeAllEdges'](){for(let v of this[_0x425c('0xd4')]){v[_0x425c('0x0')]['length']=0x0;v[_0x425c('0x13')][_0x425c('0x17')]=0x0;v['outEdges'][_0x425c('0x17')]=0x0;}this['edges'][_0x425c('0x17')]=0x0;}[_0x425c('0xe8')](layoutRect,owner){var vertex=new Vertex();this['vertices'][_0x425c('0x14')](vertex);if(layoutRect){vertex['x']=layoutRect['x'];vertex['y']=layoutRect['y'];vertex[_0x425c('0xe9')]=layoutRect['width'];vertex[_0x425c('0xea')]=layoutRect[_0x425c('0xea')];}if(owner)vertex[_0x425c('0x6')]=owner;return vertex;}['removeVertex'](vertex){let index=this[_0x425c('0xd4')][_0x425c('0x9c')](vertex);if(index>-0x1)this['vertices'][_0x425c('0xa0')](index,0x1);}['addVertexAndOutEdges'](vertex){this[_0x425c('0xd4')][_0x425c('0x14')](vertex);vertex[_0x425c('0x1')]['forEach'](function(edge){this[_0x425c('0x0')]['push'](edge);},this);}[_0x425c('0xeb')](debugId){let vertex=new Vertex();this[_0x425c('0xd4')]['push'](vertex);if(debugId)vertex[_0x425c('0xec')]=debugId;return vertex;}[_0x425c('0xed')](){for(var i=0x0;i<this['vertices'][_0x425c('0x17')];++i){var vertex=this[_0x425c('0xd4')][i];vertex[_0x425c('0x1a')]=i;}for(var i=0x0;i<this[_0x425c('0x0')][_0x425c('0x17')];++i){var edge=this[_0x425c('0x0')][i];edge[_0x425c('0x1a')]=i;}}[_0x425c('0xee')](e){let v1=e[_0x425c('0x8')];let v2=e[_0x425c('0x9')];this[_0x425c('0xef')](e);let v=new Vertex();this['vertices']['push'](v);let e1=this[_0x425c('0xe6')](v1,v);e1[_0x425c('0xf0')]=!![];let e2=this[_0x425c('0xe6')](v,v2);e2['temporary']=!![];v[_0x425c('0x1a')]=this[_0x425c('0xd4')][_0x425c('0x17')]-0x1;return v;}[_0x425c('0xf1')](v1,destSet){let path=[];let mark=createBoolArray(this[_0x425c('0xd4')]['length']);let searchTree=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],-0x1);this[_0x425c('0xed')]();for(let i=0x0;i<this['vertices'][_0x425c('0x17')];++i){if(!mark[i])this['findShortestPathBfs'](new Edge(v1,v1),destSet,mark,searchTree,path);}path[_0x425c('0x23')]();return path;}[_0x425c('0xf2')](originSet,destSet){let minPath=null;for(let v of originSet){let path=this['findShortestPathVS'](v,destSet);if(minPath==null)minPath=path;minPath=minPath['length']>path[_0x425c('0x17')]?path:minPath;}return minPath;}[_0x425c('0xf3')](e,destSet,mark,searchTree,path){let queue=new Queue();queue[_0x425c('0x2e')](e);mark[e[_0x425c('0x9')][_0x425c('0x1a')]]=!![];while(queue[_0x425c('0x2f')]>0x0){e=queue[_0x425c('0x30')]();let v=e[_0x425c('0x8')];let w=e[_0x425c('0x9')];searchTree[w[_0x425c('0x1a')]]=v['index'];if(destSet[_0x425c('0xa7')](w)){let t=w[_0x425c('0x1a')];while(!![]){path[_0x425c('0x14')](this['vertices'][t]);let p=searchTree[t];if(t==p)break;t=p;}return;}for(let edge of e['destination'][_0x425c('0x0')]){let t=edge[_0x425c('0xe')](w);if(!mark[t[_0x425c('0x1a')]]){queue[_0x425c('0x2e')](new Edge(w,t));mark[t['index']]=!![];}}}}[_0x425c('0xf4')](origin,destSet,outMinWeigth){this['setItemIndices']();let V=this['vertices'][_0x425c('0x17')];let weights=[];let shortestPaths=[];for(let v=0x0;v<V;v++)weights[v]=Number['MAX_VALUE'];let queue=new PriorityQueue(V,weights);for(let v=0x0;v<V;v++)queue[_0x425c('0xc5')](v);weights[origin['index']]=0x0;queue[_0x425c('0xca')](origin[_0x425c('0x1a')]);while(!queue[_0x425c('0x5b')]()){let v=queue[_0x425c('0xc7')]();if(v!=origin[_0x425c('0x1a')]&&shortestPaths[v]==null)break;for(let e of this['vertices'][v]['edges']){let w=e['getOtherEnd'](this[_0x425c('0xd4')][v])['index'];let P=weights[v]+e[_0x425c('0x2')];if(P<weights[w]){weights[w]=P;queue[_0x425c('0xca')](w);shortestPaths[w]=e;}}}outMinWeigth[_0x425c('0xf5')]=Number[_0x425c('0xf6')];let minDest=null;for(let vertex of destSet){if(weights[vertex[_0x425c('0x1a')]]<outMinWeigth[_0x425c('0xf5')]){minDest=vertex;outMinWeigth[_0x425c('0xf5')]=weights[vertex[_0x425c('0x1a')]];}}let shortestPath=[];shortestPath[_0x425c('0x14')](minDest);do{minDest=shortestPaths[minDest[_0x425c('0x1a')]][_0x425c('0xe')](minDest);shortestPath[_0x425c('0x14')](minDest);}while(minDest!=origin);shortestPath['reverse']();return shortestPath;}[_0x425c('0xf7')](originSet,destSet){let minPath=null;let minWeight=Number[_0x425c('0xf6')];for(let v of originSet){let weight={'value':0x0};let path=this[_0x425c('0xf4')](v,destSet,weight);if(weight['value']<minWeight){minPath=path;minWeight=weight;}}return minPath;}['getConnectedComponents'](){this[_0x425c('0xf8')]=0x0;this[_0x425c('0xed')]();var setIds=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],-0x1);for(var v=0x0;v<this[_0x425c('0xd4')][_0x425c('0x17')];v++){if(setIds[v]==-0x1){this[_0x425c('0xf9')](setIds,v);this[_0x425c('0xf8')]++;}}var components=[];for(var i=0x0;i<this['searchCounter'];++i)components[i]=new Graph();for(var i=0x0;i<setIds[_0x425c('0x17')];++i){var graph=components[setIds[i]];graph['addVertexAndOutEdges'](this[_0x425c('0xd4')][i]);}return components;}[_0x425c('0xf9')](setIds,vertexId){setIds[vertexId]=this[_0x425c('0xf8')];var vertex=this['vertices'][vertexId];vertex['edges'][_0x425c('0x15')](function(edge){var next=edge[_0x425c('0xe')](vertex);var nextId=next['index'];if(setIds[nextId]==-0x1)this[_0x425c('0xf9')](setIds,nextId);},this);}[_0x425c('0xfa')](saveMapping,blocksHandler){let allComponents=[];let connectedSubgraphs=this['getConnectedComponents']();for(let connectedSubgraph of connectedSubgraphs){let componentBlocks=null;if(blocksHandler!=null)componentBlocks=[];let biconnectedComponents=connectedSubgraph[_0x425c('0xfb')]();for(let biconnectedComponent of biconnectedComponents){let block=biconnectedComponent['clone'](saveMapping);allComponents[_0x425c('0x14')](block);if(componentBlocks!=null)componentBlocks['push'](block);}if(blocksHandler)blocksHandler(componentBlocks,connectedSubgraph['cutVertices']);}this[_0x425c('0xed')]();return allComponents;}[_0x425c('0xfb')](){if(this[_0x425c('0xd4')][_0x425c('0x17')]==0x1){let g=new Graph();g['vertices']['push'](this[_0x425c('0xd4')][0x0]);return[g];}this[_0x425c('0xed')]();this[_0x425c('0xf8')]=0x0;this[_0x425c('0xfc')]=[];this['cutVertices']=[];this[_0x425c('0xfd')]=[];this[_0x425c('0xfe')]=[];this['searchOrder']=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],-0x1);this['backMostEdges']=createIdArray(this[_0x425c('0xd4')]['length'],-0x1);for(let v=0x0;v<this[_0x425c('0xd4')][_0x425c('0x17')];v++){if(this['searchOrder'][v]==-0x1)this[_0x425c('0xff')](v,v);}if(this[_0x425c('0xfe')][_0x425c('0x17')]>=0x2&&!this[_0x425c('0x100')][_0x425c('0xb')](this['vertices'][0x0]))this['cutVertices'][_0x425c('0x14')](this['vertices'][0x0]);while(this[_0x425c('0xfe')][_0x425c('0x17')]>0x0)this[_0x425c('0x101')](this[_0x425c('0xfe')]['pop']());return this[_0x425c('0xfd')];}[_0x425c('0xff')](parent,vertexId){let destVertex=this[_0x425c('0xd4')][vertexId];this[_0x425c('0x102')][vertexId]=this['searchCounter']++;this[_0x425c('0x103')][vertexId]=this[_0x425c('0x102')][vertexId];for(let edge of destVertex[_0x425c('0x0')]){let child=edge[_0x425c('0xe')](destVertex)['index'];if(this[_0x425c('0x102')][child]<this['searchOrder'][vertexId]&&child!=parent){this[_0x425c('0xfc')][_0x425c('0x14')](child);this[_0x425c('0xfc')][_0x425c('0x14')](vertexId);}if(this['searchOrder'][child]==-0x1){if(vertexId==0x0)this[_0x425c('0xfe')]['push'](child);this[_0x425c('0xff')](vertexId,child);if(this[_0x425c('0x103')][vertexId]>this[_0x425c('0x103')][child])this['backMostEdges'][vertexId]=this[_0x425c('0x103')][child];if(vertexId!=parent&&child!=parent&&this['backMostEdges'][child]>=this['searchOrder'][vertexId]){if(!this['cutVertices']['includes'](this[_0x425c('0xd4')][vertexId]))this[_0x425c('0x100')][_0x425c('0x14')](this['vertices'][vertexId]);this[_0x425c('0x101')](child);}}else if(child!=parent){if(this[_0x425c('0x103')][vertexId]>this[_0x425c('0x102')][child])this[_0x425c('0x103')][vertexId]=this['searchOrder'][child];}}}[_0x425c('0x101')](child){let ids=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],0x0);let component=new Graph();while(this[_0x425c('0xfc')]['length']>0x0&&this['searchOrder'][Utils[_0x425c('0x104')](this[_0x425c('0xfc')])]>=this['searchOrder'][child]){let org=this[_0x425c('0xfc')][_0x425c('0xdb')]();let dest=this[_0x425c('0xfc')][_0x425c('0xdb')]();ids[org]=0x1;ids[dest]=0x1;}if(this[_0x425c('0xfc')][_0x425c('0x17')]>0x0){let org=this[_0x425c('0xfc')][_0x425c('0xdb')]();let dest=this['visitedEdges']['pop']();ids[org]=0x1;ids[dest]=0x1;}for(let i=0x0;i<ids[_0x425c('0x17')];++i)if(ids[i]>0x0)component['addVertexAndOutEdges'](this[_0x425c('0xd4')][i]);this['foundComponents'][_0x425c('0x14')](component);}['getBiconnectedComponents2'](){var blocks=[];this[_0x425c('0xed')]();this[_0x425c('0x0')][_0x425c('0x15')](function(edge){delete edge[_0x425c('0x105')];});var searchCounter=0x0;var searchOrder=[];var componentStack=[];var lowPoint=[];for(var v=0x0;v<this['vertices'][_0x425c('0x17')];v++){var vertex=this['vertices'][v];if(searchOrder[vertex[_0x425c('0x1a')]]!==undefined)continue;if(vertex[_0x425c('0x0')]['length']==0x0){var component=new Graph();component[_0x425c('0x106')](vertex);blocks[_0x425c('0x14')](component[_0x425c('0x3')](!![]));continue;}var vertexStack=[];var edgeStack=[];searchOrder[vertex[_0x425c('0x1a')]]=searchCounter++;lowPoint[vertex['index']]=searchOrder[vertex[_0x425c('0x1a')]];vertexStack[_0x425c('0x14')](vertex);edgeStack[_0x425c('0x14')](vertex[_0x425c('0x0')][_0x425c('0x9d')](0x0));while(!![]){while(edgeStack[edgeStack[_0x425c('0x17')]-0x1]['length']>0x0){var tail=vertexStack[vertexStack[_0x425c('0x17')]-0x1];var edge=edgeStack[edgeStack[_0x425c('0x17')]-0x1][_0x425c('0x107')]();var head=edge[_0x425c('0xe')](tail);if(edge[_0x425c('0x105')])continue;componentStack[_0x425c('0x14')](edge);edge[_0x425c('0x105')]=!![];if(searchOrder[head[_0x425c('0x1a')]]===undefined){searchOrder[head['index']]=searchCounter++;vertexStack[_0x425c('0x14')](head);edgeStack[_0x425c('0x14')](head['edges']['slice'](0x0));lowPoint[head[_0x425c('0x1a')]]=searchOrder[tail[_0x425c('0x1a')]];}else{if(searchOrder[head['index']]<lowPoint[tail['index']])lowPoint[tail[_0x425c('0x1a')]]=searchOrder[head[_0x425c('0x1a')]];}}if(vertexStack[_0x425c('0x17')]>0x1){var top=vertexStack[vertexStack[_0x425c('0x17')]-0x1];var next=vertexStack[vertexStack['length']-0x2];if(lowPoint[top[_0x425c('0x1a')]]==searchOrder[next[_0x425c('0x1a')]]){var component=new Graph();var topEdge=componentStack[componentStack[_0x425c('0x17')]-0x1];while(searchOrder[topEdge[_0x425c('0x8')]['index']]>=searchOrder[next[_0x425c('0x1a')]]&&searchOrder[topEdge[_0x425c('0x9')][_0x425c('0x1a')]]>=searchOrder[next[_0x425c('0x1a')]]){componentStack[_0x425c('0xdb')]();if(!component[_0x425c('0xd4')]['includes'](topEdge['origin']))component[_0x425c('0x106')](topEdge[_0x425c('0x8')]);if(!component[_0x425c('0xd4')]['includes'](topEdge[_0x425c('0x9')]))component['addVertexAndOutEdges'](topEdge[_0x425c('0x9')]);if(componentStack['length']==0x0)break;topEdge=componentStack[componentStack[_0x425c('0x17')]-0x1];}blocks[_0x425c('0x14')](component[_0x425c('0x3')](!![]));}else{if(lowPoint[next[_0x425c('0x1a')]]>lowPoint[top[_0x425c('0x1a')]])lowPoint[next['index']]=lowPoint[top[_0x425c('0x1a')]];}vertexStack[_0x425c('0xdb')]();edgeStack[_0x425c('0xdb')]();}else{break;}}}return blocks;}['planarMakeBiconnected'](){let augmentation=[];let bcGraph=new Factory['BlockCutpointGraph'](this);bcGraph['directFromRoot']();while(bcGraph[_0x425c('0xd4')][_0x425c('0x17')]>0x1){let c=bcGraph[_0x425c('0x108')]();let pendants=[];for(let edge of c[_0x425c('0x1')])pendants[_0x425c('0x14')](edge[_0x425c('0x9')]);let bnodesToMerge=new Set();Utils[_0x425c('0x109')](bnodesToMerge,pendants);let v=null,c1=c,c2=c;if(pendants['length']>0x1){for(let i=0x0;i<pendants[_0x425c('0x17')]-0x1;++i){let out1=bcGraph[_0x425c('0x10a')](pendants[i]);let out2=bcGraph[_0x425c('0x10a')](pendants[i+0x1]);let newEdge=this[_0x425c('0xe6')](out1,out2);augmentation[_0x425c('0x14')](newEdge);if(i==0x0)v=out1;}}else{v=bcGraph['getOutsideVertex'](pendants[0x0]);}let cnodesOnPath=new Set();while(bcGraph[_0x425c('0x10b')](c1)!=bcGraph[_0x425c('0x29')]&&this[_0x425c('0x10c')](v,bcGraph['getCutvertex'](c1))){c2=c1;let bNode=bcGraph[_0x425c('0x10b')](c2);bnodesToMerge['add'](bNode);c1=bcGraph['father'](bNode);cnodesOnPath[_0x425c('0x5c')](c2);}if(this[_0x425c('0x10c')](v,bcGraph[_0x425c('0x10d')](c1))){c2=c1;cnodesOnPath[_0x425c('0x5c')](c2);}let bx=bcGraph['father'](c2);bnodesToMerge['add'](bx);let newEdge2=this[_0x425c('0xe6')](v,bcGraph['getOutsideVertexN'](bx,c2));augmentation['push'](newEdge2);bcGraph[_0x425c('0x10e')](bnodesToMerge,bx);for(let cNode of cnodesOnPath){if(cNode!=c&&cNode[_0x425c('0x16')]()>0x2)bcGraph[_0x425c('0x10f')](cNode,bx);else bcGraph[_0x425c('0x110')](cNode);}for(let bNode of bnodesToMerge)if(bNode!=bx)bcGraph[_0x425c('0x111')](bNode);}return augmentation;}[_0x425c('0x10c')](v1,v2){let temp=this[_0x425c('0xe6')](v1,v2);let planar=this[_0x425c('0x112')]();this['removeEdge'](temp);return planar;}[_0x425c('0x10b')](vertex){return vertex[_0x425c('0x13')][0x0]['origin'];}[_0x425c('0x113')](cutpoints){let embedding=this[_0x425c('0x114')](cutpoints);let dualGraph=new Factory[(_0x425c('0x115'))](this,embedding);for(let face of dualGraph[_0x425c('0x116')]){let faceVertices=dualGraph['getVertices'](face);if(Utils[_0x425c('0x117')](faceVertices,cutpoints)){for(let vertex of faceVertices){if(!cutpoints[_0x425c('0xb')](vertex))return vertex;}return cutpoints[0x0];}}return null;}[_0x425c('0x118')](cutpoints,neighbor){let embedding=this[_0x425c('0x114')](cutpoints);let dualGraph=new Factory[(_0x425c('0x115'))](this,embedding);for(let face of dualGraph[_0x425c('0x116')]){let faceVertices=dualGraph[_0x425c('0x119')](face);if(Utils[_0x425c('0x117')](faceVertices,cutpoints)){for(let edge of face[_0x425c('0x0')]){if(edge['incidentWith'](neighbor))return edge[_0x425c('0xe')](neighbor);}return cutpoints[0x0];}}return null;}['get3EdgeConnectedComponents'](){return this[_0x425c('0x11a')](![]);}[_0x425c('0x11b')](){return this[_0x425c('0x11a')](!![]);}[_0x425c('0x11a')](returnPairs){if(this[_0x425c('0xd4')][_0x425c('0x17')]<0x2)return returnPairs?[]:[this];if(this[_0x425c('0xd4')][0x0][_0x425c('0x1a')]===undefined)this[_0x425c('0xed')]();this[_0x425c('0x0')][_0x425c('0x15')](function(e){delete e[_0x425c('0x11c')];delete e['treeEdge'];});var cutPairs=[];var dfs=0x0;var dfsNumber=[];var nd=[];var lowpt=[];var low=[];var lowpt2=[];var low2=[];var tolow=[];var stack=[];var newlink=[];var generatorBuckets=new Map();function findCutPairs(v,parentEdge){var vi=v[_0x425c('0x1a')];dfsNumber[vi]=dfs++;newlink[vi]=v;nd[vi]=0x1;lowpt[vi]=dfsNumber[vi];low[vi]=v;lowpt2[vi]=dfsNumber[vi];low2[vi]=v;if(stack[vi]===undefined)stack[vi]=[];v[_0x425c('0x0')][_0x425c('0x15')](function(e){if(e==parentEdge)return;var w=e[_0x425c('0xe')](v);var wi=w[_0x425c('0x1a')];if(dfsNumber[wi]===undefined){e[_0x425c('0x11d')]=!![];e['child']=w;findCutPairs(w,e);var s=stack[wi];var top=s[_0x425c('0x17')]>0x0?s[s['length']-0x1]:null;if(top!=null&&w==top['q']){s['pop']();cutPairs['push']([e,top[_0x425c('0x11e')]]);e[_0x425c('0x11c')]=!![];top[_0x425c('0x11e')][_0x425c('0x11c')]=!![];if(returnPairs){if(!generatorBuckets[_0x425c('0xa7')](top[_0x425c('0x11e')]))generatorBuckets[_0x425c('0xa4')](top[_0x425c('0x11e')],[]);generatorBuckets[_0x425c('0x79')](top[_0x425c('0x11e')])[_0x425c('0x14')](e);}if(v!=top['p'])s[_0x425c('0x14')]({'edge':top[_0x425c('0x11e')],'p':top['p'],'q':v});if(top[_0x425c('0x11e')][_0x425c('0x11d')]){var y=top[_0x425c('0x11e')][_0x425c('0x11f')][_0x425c('0x1a')];newlink[y]=v;}}nd[vi]=nd[vi]+nd[wi];if(lowpt[wi]<lowpt[vi]){lowpt2[vi]=lowpt[vi];lowpt[vi]=lowpt[wi];low2[vi]=low[vi];low[vi]=low[wi];stack[vi]=stack[wi][_0x425c('0x9d')](0x0);tolow[vi]=e;}else if(lowpt[wi]<lowpt2[vi]){lowpt2[vi]=lowpt[wi];low2[vi]=low[wi];stack[wi]=[];}}else if(dfsNumber[vi]>dfsNumber[wi]){if(dfsNumber[wi]<=lowpt[vi]){lowpt2[vi]=lowpt[vi];lowpt[vi]=dfsNumber[wi];low2[vi]=low[vi];low[vi]=w;stack[vi]=[];tolow[vi]=e;}else if(dfsNumber[wi]<lowpt2[vi]){lowpt2[vi]=dfsNumber[wi];low2[vi]=w;}}});var s=stack[vi];var top=s[_0x425c('0x17')]>0x0?s[s[_0x425c('0x17')]-0x1]:null;if(top==null){if(lowpt2[vi]>lowpt[vi]){s['push']({'edge':tolow[vi],'p':low[vi],'q':low2[vi]});}}else if(lowpt2[vi]>dfsNumber[top['q'][_0x425c('0x1a')]]){s[_0x425c('0x14')]({'edge':tolow[vi],'p':top['q'],'q':low2[vi]});}else{while(s[_0x425c('0x17')]>0x0&&lowpt2[vi]<=dfsNumber[s[s[_0x425c('0x17')]-0x1]['p']['index']])s[_0x425c('0xdb')]();if(s[_0x425c('0x17')]>0x0&&lowpt2[vi]<dfsNumber[s[s['length']-0x1]['q'][_0x425c('0x1a')]]){var se=s[_0x425c('0xdb')]();s[_0x425c('0x14')]({'edge':se['edge'],'p':se['p'],'q':low2[vi]});}}v['edges'][_0x425c('0x15')](function(e){var u=e[_0x425c('0xe')](v);var ui=u['index'];if(e[_0x425c('0x11d')]||dfsNumber[vi]>dfsNumber[ui])return;var top=s[_0x425c('0x17')]>0x0?s[s['length']-0x1]:null;var y=top==null?null:top[_0x425c('0x11e')][_0x425c('0x11f')];var yi=y?y[_0x425c('0x1a')]:0x0;while(top!=null&&top[_0x425c('0x11e')][_0x425c('0x11d')]&&dfsNumber[yi]<=dfsNumber[ui]&&dfsNumber[ui]<=dfsNumber[yi]+nd[yi]-0x1){s[_0x425c('0xdb')]();top=s['length']>0x0?s[s['length']-0x1]:null;y=top==null?null:top['edge'][_0x425c('0x11f')];yi=y?y[_0x425c('0x1a')]:0x0;}});}findCutPairs(this[_0x425c('0xd4')][0x0],null);if(returnPairs){generatorBuckets[_0x425c('0x15')](function(edges){for(var i=0x0;i<edges[_0x425c('0x17')];i++)for(var j=i+0x1;j<edges[_0x425c('0x17')];j++)if(!cutPairs[_0x425c('0x120')](function(p){return p[0x0]==edges[i]&&p[0x1]==edges[j];}))cutPairs[_0x425c('0x14')]([edges[i],edges[j]]);});return cutPairs;}var cutEdges=[];this[_0x425c('0x0')][_0x425c('0x15')](function(e){if(e[_0x425c('0x11c')])cutEdges[_0x425c('0x14')](e);});cutEdges[_0x425c('0x15')](function(e){this[_0x425c('0xef')](e);},this);var newEdges=[];this[_0x425c('0xd4')][_0x425c('0x15')](function(v){if(newlink[v[_0x425c('0x1a')]]!=v){var e=this['createEdge'](v,newlink[v[_0x425c('0x1a')]]);newEdges[_0x425c('0x14')](e);}},this);var comps=this['getConnectedComponents']();newEdges[_0x425c('0x15')](function(e){this['removeEdge'](e);},this);cutEdges['forEach'](function(e){this[_0x425c('0xad')](e);},this);return comps;}[_0x425c('0x121')](){var va=this[_0x425c('0xd4')];if(va[_0x425c('0x17')]<0x4)return[];function remainsConnectedWithout(v1,v2){var queue=[];var visited=[];var processed=0x1;va[_0x425c('0x15')](function(v){if(v!=v1&&v!=v2){queue['push'](v);visited[v[_0x425c('0x1a')]]=!![];return $break;}});while(queue[_0x425c('0x17')]>0x0){var v=queue[_0x425c('0x107')]();v[_0x425c('0x12')]()[_0x425c('0x15')](function(n){if(visited[n[_0x425c('0x1a')]]||v1==n||v2==n)return;queue[_0x425c('0x14')](n);visited[n['index']]=!![];processed++;});}return processed==va[_0x425c('0x17')]-0x2;}this[_0x425c('0xed')]();var separationPairs=[];for(var i=0x0;i<va[_0x425c('0x17')]-0x1;i++)for(var j=i+0x1;j<va[_0x425c('0x17')];j++)if(!remainsConnectedWithout(va[i],va[j]))separationPairs[_0x425c('0x14')]([va[i],va[j]]);return separationPairs;}[_0x425c('0x122')](){var dfsCounter=0x0;var dfsNumber=[];var dfsVertex=[];var low1=[];var low2=[];var parent=[];var children=[];var nd=[];var flag=[];var separationPairs=[];var removed=[];var This=this;var VLen=This['vertices'][_0x425c('0x17')];this['edges'][_0x425c('0x15')](function(e){delete e[_0x425c('0x123')];});function traverse(V,P){var v=V[_0x425c('0x1a')];children[v]=[];dfsNumber[v]=dfsCounter++;dfsVertex[dfsNumber[v]]=V;parent[v]=P;low1[v]=low2[v]=dfsNumber[v];nd[v]=0x1;V[_0x425c('0x0')][_0x425c('0x15')](function(e){var W=e['getOtherEnd'](V);var w=W[_0x425c('0x1a')];if(dfsNumber[w]===undefined){e[_0x425c('0x123')]=!![];children[v][_0x425c('0x14')](W);traverse(W,V);if(low1[w]<low1[v]){low2[v]=Math[_0x425c('0xbf')](low1[v],low2[w]);low1[v]=low1[w];}else if(low1[w]==low1[v]){low2[v]=Math['min'](low2[v],low2[w]);}else{low2[v]=Math['min'](low2[v],low1[w]);}nd[v]+=nd[w];}else if(dfsNumber[w]<dfsNumber[v]&&(w!=P[_0x425c('0x1a')]||flag[v])){if(dfsNumber[w]<low1[v]){low2[v]=low1[v];low1[v]=dfsNumber[w];}else if(dfsNumber[w]>low1[v]){low2[v]=Math[_0x425c('0xbf')](low2[v],dfsNumber[w]);}}if(W==P)flag[v]=!![];});if(P){var X=dfsVertex[low1[v]];var t3s=nd[v];if(X!=P&&low2[v]>=dfsNumber[P[_0x425c('0x1a')]]&&t3s<VLen-0x2)separationPairs['push']([X,P]);else if(dfsNumber[X['index']]>0x0&&intermLinksOnlyToSubtree(X,P,V))separationPairs['push']([X,P]);}var sameLow=![];getChildren(V)[_0x425c('0x15')](function(Q){if(low1[v]==low1[Q[_0x425c('0x1a')]]){sameLow=!![];return $break;}});if(nd[v]>0x1&&!sameLow){var vc=This[_0x425c('0xe8')]();vc[_0x425c('0x1a')]=This['vertices'][_0x425c('0x17')]-0x1;V[_0x425c('0x0')]['slice'](0x0)[_0x425c('0x15')](function(e){if(!e[_0x425c('0x123')]){var W=e[_0x425c('0xe')](V);if(dfsNumber[v]>dfsNumber[W[_0x425c('0x1a')]])e[_0x425c('0x21')](V,vc);}});var ce=This['createEdge'](V,vc);ce[_0x425c('0x1a')]=This[_0x425c('0x0')][_0x425c('0x17')]-0x1;ce['spTreeEdge']=!![];dfsNumber[vc[_0x425c('0x1a')]]=dfsNumber[v];low1[vc[_0x425c('0x1a')]]=low1[v];nd[vc[_0x425c('0x1a')]]=0x1;parent[vc[_0x425c('0x1a')]]=V;reduce(vc,V);removed[_0x425c('0x14')](vc);}var nontreeEdges=0x0;V[_0x425c('0x0')][_0x425c('0x15')](function(e){if(!e[_0x425c('0x123')])nontreeEdges++;});if(nontreeEdges>0x1){reduce(V,V);removed[_0x425c('0x14')](V);}}function pathNodesBetween(a,d){var nodes=[];while(parent[d[_0x425c('0x1a')]]!=a){nodes[_0x425c('0x14')](parent[d[_0x425c('0x1a')]]);d=parent[d[_0x425c('0x1a')]];}return nodes;}function intermLinksOnlyToSubtree(a,d,v){var intermNodes=pathNodesBetween(a,d);var onlyToSubtree=!![];intermNodes[_0x425c('0x15')](function(node){node[_0x425c('0x0')][_0x425c('0x15')](function(e){var w=e[_0x425c('0xe')](node);if(w==a||w==d)return;if(dfsNumber[w['index']]===undefined)onlyToSubtree=![];else if(dfsNumber[w[_0x425c('0x1a')]]<dfsNumber[a[_0x425c('0x1a')]])onlyToSubtree=![];else if(dfsNumber[w[_0x425c('0x1a')]]>dfsNumber[d[_0x425c('0x1a')]]&&dfsNumber[w[_0x425c('0x1a')]]<dfsNumber[v[_0x425c('0x1a')]])onlyToSubtree=![];else if(low1[w['index']]<dfsNumber[a[_0x425c('0x1a')]])onlyToSubtree=![];});if(!onlyToSubtree)return $break;});return onlyToSubtree;}function getChildren(V){var v=V[_0x425c('0x1a')];var children=[];V[_0x425c('0x0')]['forEach'](function(e){if(e[_0x425c('0x123')]){var W=e[_0x425c('0xe')](V);if(dfsNumber[v]<dfsNumber[W[_0x425c('0x1a')]])children[_0x425c('0x14')](W);}});return children;}function reduce(V,rep){var v=V[_0x425c('0x1a')];var outNodes=[];var inNodes=[];V['edges'][_0x425c('0x15')](function(e){if(e[_0x425c('0x123')])return;var W=e[_0x425c('0xe')](V);if(dfsNumber[v]>dfsNumber[W[_0x425c('0x1a')]]){if(!outNodes[_0x425c('0xb')](W))outNodes['push'](W);}else{if(!inNodes[_0x425c('0xb')](W))inNodes[_0x425c('0x14')](W);}});outNodes[_0x425c('0x124')](sortByDfsNumber);inNodes[_0x425c('0x124')](sortByDfsNumber);var outReplacement=[];outNodes['forEach'](function(n){var r=This[_0x425c('0xe8')]();r['replacementFor']=rep;r[_0x425c('0x1a')]=This[_0x425c('0xd4')][_0x425c('0x17')]-0x1;nd[r[_0x425c('0x1a')]]=nd[v];outReplacement[_0x425c('0x14')](r);});var inReplacement=[];inNodes[_0x425c('0x15')](function(n){var r=This[_0x425c('0xe8')]();r[_0x425c('0x125')]=rep;r[_0x425c('0x1a')]=This[_0x425c('0xd4')]['length']-0x1;nd[r[_0x425c('0x1a')]]=nd[v];inReplacement[_0x425c('0x14')](r);});var replacement=[];outReplacement[_0x425c('0x126')](function(v){replacement[_0x425c('0x14')](v);});inReplacement['forReverse'](function(v){replacement['push'](v);});for(var i=0x0;i<replacement[_0x425c('0x17')]-0x1;i++){var e=This[_0x425c('0xe6')](replacement[i],replacement[i+0x1]);e[_0x425c('0x1a')]=This[_0x425c('0x0')][_0x425c('0x17')]-0x1;e[_0x425c('0x125')]=rep;e['spTreeEdge']=!![];}var parentEdge=null;var childEdges=[];V[_0x425c('0x0')][_0x425c('0x15')](function(e){if(e[_0x425c('0x123')]){var W=e['getOtherEnd'](V);if(dfsNumber[v]<dfsNumber[W[_0x425c('0x1a')]])childEdges[_0x425c('0x14')](e);else if(dfsNumber[v]>=dfsNumber[W[_0x425c('0x1a')]])parentEdge=e;}});if(parentEdge){parentEdge['changeVertex'](V,replacement[0x0]);parentEdge[_0x425c('0x125')]=rep;}childEdges['forEach'](function(childEdge){childEdge[_0x425c('0x21')](V,replacement[replacement[_0x425c('0x17')]-0x1]);childEdge['replacementFor']=rep;});parent[replacement[0x0]['index']]=parent[v];for(var i=0x0;i<outNodes[_0x425c('0x17')];i++){var u=outNodes[i];var uiOut=V[_0x425c('0xf')](u);uiOut[_0x425c('0x15')](function(e){if(!e['spTreeEdge'])e['changeVertex'](V,outReplacement[i]);});low1[outReplacement[i]['index']]=low1[v];dfsNumber[outReplacement[i][_0x425c('0x1a')]]=dfsNumber[v];}for(var i=0x0;i<inNodes['length'];i++){var w=inNodes[i];var wiIn=V['getCommonEdges'](w);wiIn[_0x425c('0x15')](function(e){if(!e[_0x425c('0x123')])e[_0x425c('0x21')](V,inReplacement[i]);});low1[inReplacement[i][_0x425c('0x1a')]]=low1[v];dfsNumber[inReplacement[i][_0x425c('0x1a')]]=dfsNumber[v];}}function sortByDfsNumber(v1,v2){if(dfsNumber[v1[_0x425c('0x1a')]]<dfsNumber[v2[_0x425c('0x1a')]])return-0x1;if(dfsNumber[v1[_0x425c('0x1a')]]>dfsNumber[v2[_0x425c('0x1a')]])return 0x1;return 0x0;}function childOnPathTo(a,d){while(parent[d[_0x425c('0x1a')]]!=a)d=parent[d['index']];return d;}this['setItemIndices']();traverse(this['vertices'][0x0],null);removed[_0x425c('0x15')](function(V){Utils[_0x425c('0x7')](This[_0x425c('0xd4')],V);});var candidates=[];var cutPairs=this[_0x425c('0x11b')]();cutPairs[_0x425c('0x15')](function(pair){if(!(pair[0x0]['spTreeEdge']&&pair[0x1][_0x425c('0x123')]))return;var e1v=pair[0x0][_0x425c('0x127')]();var e2v=pair[0x1]['getEnds']();e1v[_0x425c('0x124')](sortByDfsNumber);e2v[_0x425c('0x124')](sortByDfsNumber);if(!parent[e1v[0x0][_0x425c('0x1a')]]&&nd[e2v[0x1]['index']]===0x1)return;if(!parent[e2v[0x0][_0x425c('0x1a')]]&&nd[e1v[0x1][_0x425c('0x1a')]]===0x1)return;var e1Vertices=[];e1Vertices[_0x425c('0x14')](pair[0x0][_0x425c('0x8')]);e1Vertices[_0x425c('0x14')](pair[0x0][_0x425c('0x9')]);var e2Vertices=[];e2Vertices[_0x425c('0x14')](pair[0x1]['origin']);e2Vertices[_0x425c('0x14')](pair[0x1][_0x425c('0x9')]);for(var i=0x0;i<e1Vertices['length'];i++)for(var j=0x0;j<e2Vertices[_0x425c('0x17')];j++)if(e1Vertices[i]!=e2Vertices[j])candidates['push']([e1Vertices[i],e2Vertices[j]]);});candidates[_0x425c('0x15')](function(pair){var a,d;if(dfsNumber[pair[0x0][_0x425c('0x1a')]]<dfsNumber[pair[0x1][_0x425c('0x1a')]]){a=pair[0x0];d=pair[0x1];}else{d=pair[0x0];a=pair[0x1];}if(a[_0x425c('0x125')])a=a[_0x425c('0x125')];if(d[_0x425c('0x125')])d=d[_0x425c('0x125')];if(a==d)return;var t3s=t3Sizes(a,d,children[d[_0x425c('0x1a')]][0x0],children[d[_0x425c('0x1a')]]);if(t3s[0x1]!=0x0&&t3s[0x0]+t3s[0x2]!=0x0&&!separationPairs[_0x425c('0x120')](function(e){return e[0x0]==a&&e[0x1]==d;}))separationPairs['push']([a,d]);});function t3Sizes(a,d,v,children){var sizeOfV3=children[_0x425c('0x17')]==0x0?0x0:nd[v[_0x425c('0x1a')]];var U=childOnPathTo(a,d);var sizeOfV2=nd[U[_0x425c('0x1a')]]-sizeOfV3-0x1;children[_0x425c('0x15')](function(W){if(W==v)return;if(low1[W['index']]<dfsNumber[a[_0x425c('0x1a')]])sizeOfV2-=nd[W['index']];});var sizeOfV1=VLen-sizeOfV2-sizeOfV3-0x2;return[sizeOfV1,sizeOfV2,sizeOfV3];}return separationPairs;}[_0x425c('0x128')](start){this[_0x425c('0xed')]();this[_0x425c('0xf8')]=0x0;this['searchOrder']=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],-0x1);this['searchParent']=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],-0x1);this[_0x425c('0x103')]=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],-0x1);if(start!=null)this[_0x425c('0x129')](start[_0x425c('0x1a')],start[_0x425c('0x1a')]);for(let v=0x0;v<this[_0x425c('0xd4')]['length'];v++)if(this[_0x425c('0x102')][v]==-0x1)this[_0x425c('0x129')](v,v);}[_0x425c('0x129')](origin,dest){let destVertex=this['vertices'][dest];this[_0x425c('0x102')][dest]=this[_0x425c('0xf8')]++;this[_0x425c('0x12a')][dest]=origin;this['backMostEdges'][dest]=this[_0x425c('0x102')][dest];for(let edge of destVertex[_0x425c('0x0')]){let test=edge['getOtherEnd'](destVertex)[_0x425c('0x1a')];if(this[_0x425c('0x102')][test]==-0x1){this[_0x425c('0x129')](dest,test);if(this[_0x425c('0x103')][dest]>this[_0x425c('0x103')][test])this[_0x425c('0x103')][dest]=this[_0x425c('0x103')][test];}else if(test!=origin){if(this[_0x425c('0x103')][dest]>this[_0x425c('0x102')][test])this[_0x425c('0x103')][dest]=this[_0x425c('0x102')][test];}}}[_0x425c('0x12b')](sink){let verticesInStOrder=[];this['stOrder']=createIdArray(this['vertices'][_0x425c('0x17')],-0x1);let oldVertices=createBoolArray(this[_0x425c('0xd4')][_0x425c('0x17')]);let oldEdges=createBoolArray(this['edges'][_0x425c('0x17')]);if(this['vertices'][_0x425c('0x17')]==0x1){verticesInStOrder[_0x425c('0x14')](this[_0x425c('0xd4')][0x0]);return verticesInStOrder;}this[_0x425c('0x128')](sink);let stack=[];let s=null,t=null;for(let vertex of this['vertices']){let n=vertex['index'];if(this[_0x425c('0x102')][n]==0x0){t=vertex;oldVertices[n]=!![];}else if(this['searchOrder'][n]==0x1){s=vertex;oldVertices[n]=!![];}else{oldVertices[n]=![];}}for(let edge of this[_0x425c('0x0')])oldEdges[edge[_0x425c('0x1a')]]=edge[_0x425c('0x1d')](s,t);stack[_0x425c('0x14')](t);stack[_0x425c('0x14')](s);let i=0x0;while(!![]){let v=stack[_0x425c('0xdb')]();if(v==t){this[_0x425c('0x12c')][v['index']]=i;verticesInStOrder[_0x425c('0x14')](v);break;}let path=this['findPath'](v,oldVertices,oldEdges);if(path[_0x425c('0x17')]>0x0){let vstack=[];for(let edge of path){vstack[_0x425c('0x14')](v);v=edge[_0x425c('0xe')](v);}while(vstack[_0x425c('0x17')]>0x0)stack[_0x425c('0x14')](vstack[_0x425c('0xdb')]());}else{this[_0x425c('0x12c')][v[_0x425c('0x1a')]]=i;verticesInStOrder['push'](v);i++;}}return verticesInStOrder;}[_0x425c('0x12d')](sink){let reversedEdges=[];this[_0x425c('0x12b')](sink);for(let e of this[_0x425c('0x0')]){if(this[_0x425c('0x12c')][e[_0x425c('0x8')][_0x425c('0x1a')]]>this[_0x425c('0x12c')][e[_0x425c('0x9')][_0x425c('0x1a')]]){e[_0x425c('0x23')]();reversedEdges[_0x425c('0x14')](e);}}return reversedEdges;}[_0x425c('0x12e')](edge){return!(this[_0x425c('0x12a')][edge[_0x425c('0x8')][_0x425c('0x1a')]]==edge[_0x425c('0x9')][_0x425c('0x1a')])&&!(this[_0x425c('0x12a')][edge[_0x425c('0x9')][_0x425c('0x1a')]]==edge[_0x425c('0x8')][_0x425c('0x1a')]);}['findPath'](v,oldVertices,oldEdges){let path=[];for(let edge of v[_0x425c('0x0')]){let w=edge[_0x425c('0xe')](v);if(!oldEdges[edge[_0x425c('0x1a')]]&&this[_0x425c('0x12e')](edge)&&this['searchOrder'][w[_0x425c('0x1a')]]<this[_0x425c('0x102')][v['index']]){oldEdges[edge[_0x425c('0x1a')]]=!![];path[_0x425c('0x14')](edge);return path;}}for(let edge of v[_0x425c('0x0')]){let w=edge[_0x425c('0xe')](v);if(!oldEdges[edge[_0x425c('0x1a')]]&&!this[_0x425c('0x12e')](edge)&&this[_0x425c('0x12a')][w['index']]==v['index']&&this[_0x425c('0x102')][w[_0x425c('0x1a')]]>this['searchOrder'][v[_0x425c('0x1a')]]){oldEdges[edge[_0x425c('0x1a')]]=!![];path[_0x425c('0x14')](edge);while(!oldVertices[w['index']]){let found=![];for(let testEdge of w['edges']){if(!oldEdges[testEdge['index']]&&this[_0x425c('0x102')][testEdge[_0x425c('0xe')](w)['index']]==this[_0x425c('0x103')][w['index']]){oldVertices[w[_0x425c('0x1a')]]=!![];oldEdges[testEdge['index']]=!![];path['push'](testEdge);found=!![];break;}}if(!found){for(let testEdge of w['edges']){if(!oldEdges[testEdge[_0x425c('0x1a')]]&&this['searchParent'][testEdge[_0x425c('0xe')](w)[_0x425c('0x1a')]]==w[_0x425c('0x1a')]&&this[_0x425c('0x103')][testEdge[_0x425c('0xe')](w)['index']]==this[_0x425c('0x103')][w[_0x425c('0x1a')]]){oldVertices[w[_0x425c('0x1a')]]=!![];oldEdges[testEdge['index']]=!![];path['push'](testEdge);w=testEdge[_0x425c('0xe')](w);break;}}}}return path;}}for(let edge of v[_0x425c('0x0')]){let w=edge[_0x425c('0xe')](v);if(!oldEdges[edge[_0x425c('0x1a')]]&&this[_0x425c('0x12e')](edge)&&this[_0x425c('0x102')][v[_0x425c('0x1a')]]<this[_0x425c('0x102')][w[_0x425c('0x1a')]]){oldEdges[edge['index']]=!![];path[_0x425c('0x14')](edge);while(!oldVertices[w[_0x425c('0x1a')]]){for(let testEdge of w[_0x425c('0x0')]){if(!oldEdges[testEdge['index']]&&testEdge['getOtherEnd'](w)[_0x425c('0x1a')]==this[_0x425c('0x12a')][w[_0x425c('0x1a')]]){oldVertices[w['index']]=!![];oldEdges[testEdge[_0x425c('0x1a')]]=!![];path[_0x425c('0x14')](testEdge);w=testEdge[_0x425c('0xe')](w);break;}}}return path;}}return path;}[_0x425c('0x112')](){let biconnectedComponents=this['getBiconnectedComponents']();for(let block of biconnectedComponents){if(!block[_0x425c('0x12f')]({}))return![];}return!![];}[_0x425c('0x12f')](embeddingInfo){let edgePermNodes=[];if(this[_0x425c('0xd4')]['length']<=0x2)return!![];let verticesInStOrder=embeddingInfo[_0x425c('0x130')];if(verticesInStOrder==null)verticesInStOrder=this[_0x425c('0x12b')]();let pqTree=new PQTree();for(let edge of this['edges'])edgePermNodes[edge['index']]=new PQTree[(_0x425c('0x2a'))](edge);let currentVertex=verticesInStOrder[0x0];for(let edge of currentVertex[_0x425c('0x0')])pqTree['root'][_0x425c('0x49')](edgePermNodes[edge[_0x425c('0x1a')]]);for(let j=0x1;j<verticesInStOrder[_0x425c('0x17')];j++){let edgeNodes=[];currentVertex=verticesInStOrder[j];for(let edge of currentVertex[_0x425c('0x0')]){if(this[_0x425c('0x12c')][edge[_0x425c('0xe')](currentVertex)['index']]<j)edgeNodes[_0x425c('0x14')](edgePermNodes[edge[_0x425c('0x1a')]]);}let pertRoot=pqTree['reduction'](edgeNodes);if(pertRoot==null)return![];if(j<verticesInStOrder['length']-0x1){let newRoot=new PQTree['Node']();edgeNodes=[];for(let edge of currentVertex['edges']){if(this['stOrder'][edge[_0x425c('0xe')](currentVertex)[_0x425c('0x1a')]]>j)edgeNodes[_0x425c('0x14')](edgePermNodes[edge[_0x425c('0x1a')]]);}if(edgeNodes['length']==0x1){newRoot=edgeNodes[0x0];}else{for(let pqNode of edgeNodes)newRoot[_0x425c('0x49')](pqNode);}let pertRootParent=pertRoot['parent'];if(pertRoot[_0x425c('0x42')]==NodeType['qNode']){pertRoot[_0x425c('0x8e')](newRoot);if(!pertRoot['pseudoRoot']){if(pertRoot[_0x425c('0x80')]()){pertRoot[_0x425c('0x42')]=NodeType[_0x425c('0x43')];}else if(pertRoot[_0x425c('0x59')][_0x425c('0x2f')]==0x1){if(pertRoot==pqTree[_0x425c('0x29')]){newRoot[_0x425c('0x33')]=null;pqTree[_0x425c('0x29')]=newRoot;}else{pertRoot['parent']['replaceChild'](pertRoot,newRoot);}}}}else{if(pertRoot==pqTree[_0x425c('0x29')]){pqTree['root']=newRoot;}else{pertRoot[_0x425c('0x33')][_0x425c('0x50')](pertRoot,newRoot);}}pertRoot['reinit'](![]);if(pertRootParent!=null)pertRootParent[_0x425c('0x27')](!![]);}}if(embeddingInfo['savePqTree'])embeddingInfo[_0x425c('0x131')]=pqTree;return!![];}[_0x425c('0x132')](){let entireEmbedding=new Embedding(this);let biconnectedComponents=this[_0x425c('0xfa')](!![]);for(let bic of biconnectedComponents){let bicompEmbedding=bic[_0x425c('0x133')]({});entireEmbedding[_0x425c('0x134')](bic,bicompEmbedding);}return entireEmbedding;}[_0x425c('0x133')](embeddingInfo){let embedding=new Map();if(this['vertices'][_0x425c('0x17')]>0x2){let tVertex=this[_0x425c('0x135')](embedding,embeddingInfo);if(tVertex!=null)embedding=this[_0x425c('0x136')](embedding,tVertex);}else{for(let vertex of this[_0x425c('0xd4')]){embedding['set'](vertex,[]);for(let edge of vertex[_0x425c('0x0')])embedding['get'](vertex)[_0x425c('0x14')](edge);}}return embedding;}[_0x425c('0x135')](embedding,embeddingInfo){this[_0x425c('0xed')]();let pqTree=new PQTree();let nodemap=new Map();let edgePQNodes=[];for(let edge of this['edges'])edgePQNodes[edge['index']]=new PQTree[(_0x425c('0x2a'))](null,edge);let upwardEdges=[];upwardEdges[_0x425c('0x14')]([]);let verticesInStOrder=embeddingInfo[_0x425c('0x130')];if(verticesInStOrder==null)verticesInStOrder=this[_0x425c('0x12b')]();let currentVertex=verticesInStOrder[0x0];for(let edge of currentVertex['edges'])pqTree[_0x425c('0x29')][_0x425c('0x49')](edgePQNodes[edge[_0x425c('0x1a')]]);for(let j=0x1;j<verticesInStOrder[_0x425c('0x17')];j++){let edgeNodes=[];currentVertex=verticesInStOrder[j];for(let edge of currentVertex['edges']){if(this[_0x425c('0x12c')][edge[_0x425c('0xe')](currentVertex)[_0x425c('0x1a')]]<j)edgeNodes[_0x425c('0x14')](edgePQNodes[edge['index']]);}let pertinentRoot=pqTree[_0x425c('0x2b')](edgeNodes);if(pertinentRoot==null)return null;let fullLeaves=pertinentRoot['getFullLeaves']();upwardEdges[_0x425c('0x14')](fullLeaves);if(j<verticesInStOrder['length']-0x1){edgeNodes=[];for(let edge of currentVertex[_0x425c('0x0')]){if(this[_0x425c('0x12c')][edge[_0x425c('0xe')](currentVertex)[_0x425c('0x1a')]]>j)edgeNodes[_0x425c('0x14')](edgePQNodes[edge['index']]);}let newRoot=edgeNodes[_0x425c('0x17')]==0x1?edgeNodes[0x0]:new PQTree[(_0x425c('0x2a'))]();if(edgeNodes[_0x425c('0x17')]>0x1){for(let pqNode of edgeNodes)newRoot[_0x425c('0x49')](pqNode);}let pertRootParent=pertinentRoot[_0x425c('0x33')];if(pertinentRoot['type']==NodeType[_0x425c('0x4b')]&&(pertinentRoot[_0x425c('0x40')]!=NodeLabel[_0x425c('0x41')]||pertinentRoot['pseudoRoot'])){let to=pertinentRoot[_0x425c('0x137')]();let from=pertinentRoot[_0x425c('0x8f')]();pertinentRoot[_0x425c('0x8e')](newRoot);let dNode=new PQTree['Node'](NodeType[_0x425c('0x6a')],null);nodemap['set'](dNode,currentVertex);dNode[_0x425c('0x33')]=newRoot[_0x425c('0x33')];if(from!=null){from[_0x425c('0x35')][_0x425c('0x8a')](newRoot,dNode);dNode[_0x425c('0x35')][_0x425c('0x5c')](from);newRoot[_0x425c('0x35')][_0x425c('0x8a')](from,dNode);dNode[_0x425c('0x35')][_0x425c('0x5c')](newRoot);dNode['direction']=newRoot;}else if(to!=null){to[_0x425c('0x35')]['replace'](newRoot,dNode);dNode[_0x425c('0x35')][_0x425c('0x5c')](to);newRoot[_0x425c('0x35')]['replace'](to,dNode);dNode[_0x425c('0x35')]['add'](newRoot);dNode['direction']=to;}if(!pertinentRoot[_0x425c('0x5e')]){if(pertinentRoot[_0x425c('0x80')]()){pertinentRoot[_0x425c('0x42')]=NodeType[_0x425c('0x43')];}else if(pertinentRoot[_0x425c('0x59')][_0x425c('0x2f')]==0x1){if(pertinentRoot==pqTree[_0x425c('0x29')]){newRoot[_0x425c('0x33')]=null;pqTree['root']=newRoot;}else{pertinentRoot['parent'][_0x425c('0x50')](pertinentRoot,newRoot);}}}}else{if(pertinentRoot==pqTree['root'])pqTree['root']=newRoot;else pertinentRoot[_0x425c('0x33')]['replaceChild'](pertinentRoot,newRoot);}pertinentRoot['reinit'](![]);if(pertRootParent!=null)pertRootParent[_0x425c('0x27')](!![]);}}let desiredOrder=embeddingInfo['tEdgeOrder'];if(desiredOrder!=null){let h=verticesInStOrder['length']-0x1;let currentOrder=[];for(let node of upwardEdges[h])currentOrder[_0x425c('0x14')](node[_0x425c('0x69')]);let qNodes=[];pqTree[_0x425c('0x29')][_0x425c('0x92')](qNodes,NodeType[_0x425c('0x4b')]);for(let qNode of qNodes){let leaves=qNode['getEndmostLeaves']();let dCurrent=currentOrder['indexOf'](leaves[0x0][_0x425c('0x69')])-currentOrder['indexOf'](leaves[0x1][_0x425c('0x69')]);let dDesired=desiredOrder[_0x425c('0x9c')](leaves[0x0][_0x425c('0x69')])-desiredOrder[_0x425c('0x9c')](leaves[0x1][_0x425c('0x69')]);if(dCurrent*dDesired<0x0){for(let child of qNode[_0x425c('0x93')]())if(child[_0x425c('0x94')]==NodeType['directionIndicator'])child[_0x425c('0x6c')]=!child[_0x425c('0x6c')];}}}for(let h=verticesInStOrder[_0x425c('0x17')]-0x1;h>=0x0;h--){let fullLeaves=upwardEdges[h];for(let k=0x0;k<fullLeaves['length'];k++){let pqNode=fullLeaves[k];if(pqNode['type']==NodeType[_0x425c('0x6a')]){if(pqNode[_0x425c('0x6c')]){let indexOfNodeToReverse=this['stOrder'][nodemap[_0x425c('0x79')](pqNode)['index']];let edgesOfNodeToReverse=upwardEdges[indexOfNodeToReverse];let edgesOfNodeReversed=[];for(let x=edgesOfNodeToReverse['length']-0x1;x>=0x0;x--){let node=edgesOfNodeToReverse[x];if(node[_0x425c('0x42')]==NodeType[_0x425c('0x6a')])node['readInReverseDirection']=!node[_0x425c('0x6c')];edgesOfNodeReversed[_0x425c('0x14')](node);}upwardEdges[indexOfNodeToReverse]=edgesOfNodeReversed;}}}}for(let h=0x0;h<verticesInStOrder[_0x425c('0x17')];h++){currentVertex=verticesInStOrder[h];let fullLeaves=upwardEdges[h];let orderedEdges=[];embedding[_0x425c('0xa4')](currentVertex,orderedEdges);for(let pqNode of fullLeaves){if(pqNode[_0x425c('0x42')]!=NodeType['directionIndicator'])orderedEdges[_0x425c('0x14')](pqNode[_0x425c('0x69')]);}}if(embeddingInfo[_0x425c('0x138')])embeddingInfo[_0x425c('0x131')]=pqTree;return verticesInStOrder[verticesInStOrder[_0x425c('0x17')]-0x1];}[_0x425c('0x136')](upEmbedding,tVertex){let entireEmbedding=new Map();for(const [vertex,edges]of upEmbedding['entries']())entireEmbedding[_0x425c('0xa4')](vertex,edges[_0x425c('0x9d')]());let oldVertices=createBoolArray(this[_0x425c('0xd4')][_0x425c('0x17')]);this['entireEmbedDfs'](upEmbedding,entireEmbedding,tVertex,oldVertices);return entireEmbedding;}[_0x425c('0x139')](upEmbedding,entireEmbedding,vertex,oldVertices){oldVertices[vertex['index']]=!![];for(let currentEdge of upEmbedding[_0x425c('0x79')](vertex)){let otherVertex=currentEdge[_0x425c('0xe')](vertex);entireEmbedding[_0x425c('0x79')](otherVertex)[_0x425c('0x13a')](currentEdge);if(!oldVertices[otherVertex[_0x425c('0x1a')]])this[_0x425c('0x139')](upEmbedding,entireEmbedding,otherVertex,oldVertices);}}['findPlanarSubgraph'](edgesToDelete,crossingConstrainedEdges){return this[_0x425c('0x13b')](edgesToDelete,crossingConstrainedEdges);}['findPlanarSubgraphBySimpleEdgeInsertion'](edgesToDelete,knownPlanarEdges,crossingConstrainedEdges){let planarSubgraph=new Graph();this[_0x425c('0xed')]();let vmap=new Map();let cvmap=new Map();for(let v of this['vertices']){let copy=new Vertex();copy[_0x425c('0xec')]=v[_0x425c('0xec')];vmap[_0x425c('0xa4')](v,copy);cvmap['set'](copy,v);planarSubgraph[_0x425c('0xd4')]['push'](copy);}let emap=new Map();let cemap=new Map();planarSubgraph[_0x425c('0xd8')]=vmap;planarSubgraph[_0x425c('0xd6')]=cvmap;planarSubgraph[_0x425c('0x13c')]=emap;planarSubgraph[_0x425c('0xa6')]=cemap;if(knownPlanarEdges!=null){for(let e of knownPlanarEdges){let copy=planarSubgraph['createEdge'](vmap[_0x425c('0x79')](e[_0x425c('0x8')]),vmap['get'](e[_0x425c('0x9')]));copy[_0x425c('0xec')]=e['debugId'];copy[_0x425c('0x2')]=e[_0x425c('0x2')];emap['set'](e,copy);cemap[_0x425c('0xa4')](copy,e);}if(knownPlanarEdges['size']==this[_0x425c('0x0')][_0x425c('0x17')])return planarSubgraph;}if(crossingConstrainedEdges!=null){if(knownPlanarEdges==null)knownPlanarEdges=new Set();for(let e of crossingConstrainedEdges){if(knownPlanarEdges[_0x425c('0xa7')](e))continue;let copy=planarSubgraph[_0x425c('0xe6')](vmap[_0x425c('0x79')](e[_0x425c('0x8')]),vmap['get'](e[_0x425c('0x9')]));copy[_0x425c('0xec')]=e['debugId'];if(!planarSubgraph[_0x425c('0x112')]()){edgesToDelete[_0x425c('0x13d')]();return this[_0x425c('0x13e')](edgesToDelete,null,crossingConstrainedEdges);}knownPlanarEdges[_0x425c('0x5c')](e);copy[_0x425c('0x2')]=e[_0x425c('0x2')];emap[_0x425c('0xa4')](e,copy);cemap['set'](copy,e);}}for(let e of this['edges']){if(knownPlanarEdges!=null&&knownPlanarEdges[_0x425c('0xa7')](e))continue;let copy=planarSubgraph[_0x425c('0xe6')](vmap[_0x425c('0x79')](e[_0x425c('0x8')]),vmap['get'](e['destination']));copy['debugId']=e['debugId'];if(!planarSubgraph[_0x425c('0x112')]()){planarSubgraph[_0x425c('0xef')](copy);edgesToDelete['add'](e);}copy[_0x425c('0x2')]=e[_0x425c('0x2')];emap[_0x425c('0xa4')](e,copy);cemap[_0x425c('0xa4')](copy,e);}return planarSubgraph;}[_0x425c('0x13b')](edgesToDelete,crossingConstrainedEdges){this['setItemIndices']();let order=createIdArray(this[_0x425c('0xd4')]['length'],-0x1);let remaining=new Set();for(let v of this[_0x425c('0xd4')])remaining[_0x425c('0x5c')](v);let last=null;for(let i=0x0;i<this[_0x425c('0xd4')][_0x425c('0x17')];++i){last=this[_0x425c('0x13f')](last,remaining);order[last[_0x425c('0x1a')]]=i;remaining['delete'](last);}let intervals=[];for(let e of this[_0x425c('0x0')]){let originPos=order[e[_0x425c('0x8')]['index']];let destPos=order[e[_0x425c('0x9')][_0x425c('0x1a')]];intervals[_0x425c('0x14')](new Interval(Math[_0x425c('0xbf')](originPos,destPos),Math['max'](originPos,destPos)));}let overlapGraph=new Factory[(_0x425c('0x140'))](intervals);let veMap=new Map();for(let i=0x0;i<this[_0x425c('0x0')][_0x425c('0x17')];++i)veMap['set'](overlapGraph[_0x425c('0xd4')][i],this['edges'][i]);let maxIndependentSet=overlapGraph[_0x425c('0x141')]();let planarEdges=new Set();for(let v of maxIndependentSet)planarEdges[_0x425c('0x5c')](veMap[_0x425c('0x79')](v));for(let v of maxIndependentSet){Utils[_0x425c('0x7')](overlapGraph[_0x425c('0x142')],overlapGraph[_0x425c('0x143')][_0x425c('0x79')](v));overlapGraph['removeVertex'](v);}maxIndependentSet=overlapGraph[_0x425c('0x141')]();for(let v of maxIndependentSet)planarEdges['add'](veMap[_0x425c('0x79')](v));return this['findPlanarSubgraphBySimpleEdgeInsertion'](edgesToDelete,planarEdges,crossingConstrainedEdges);}[_0x425c('0x13f')](vertex,vset){if(vertex==null)return this['minDegreeVertex'](vset);let minAdjNeighbor=null;let minAdj=Number[_0x425c('0x144')];for(let e of vertex[_0x425c('0x0')]){let neighbor=e['getOtherEnd'](vertex);if(!vset[_0x425c('0xa7')](neighbor))continue;let adj=this[_0x425c('0x145')](neighbor,vset);if(adj<minAdj){minAdj=adj;minAdjNeighbor=neighbor;}}return minAdjNeighbor||this[_0x425c('0x146')](vset);}[_0x425c('0x146')](vset){let minDegree=Number[_0x425c('0x144')];let minDegreeVertex=null;for(let v of vset){if(v['degree']()<minDegree){minDegreeVertex=v;minDegree=v['degree']();}}return minDegreeVertex;}[_0x425c('0x145')](vertex,vset){let count=0x0;for(let e of vertex[_0x425c('0x0')]){if(vset[_0x425c('0xa7')](e[_0x425c('0xe')](vertex)))count++;}return count;}['embedOnSameFace'](faceVertices){if(faceVertices['length']<0x2)return this[_0x425c('0x132')]();let virtualVertex=this[_0x425c('0xeb')]();let virtualEdges=[];for(let vertex of faceVertices){let virtualEdge=this[_0x425c('0xe6')](virtualVertex,vertex);virtualEdges['push'](virtualEdge);}let planarization=this['planarize'](null,virtualEdges);planarization[_0x425c('0xd7')]();let embedding=planarization[_0x425c('0x132')]();this[_0x425c('0x147')](virtualVertex);let virtualCopy=planarization[_0x425c('0xd8')][_0x425c('0x79')](virtualVertex);embedding[_0x425c('0x7')](virtualCopy);return new Embedding(null,embedding,planarization[_0x425c('0xd6')],planarization[_0x425c('0xa6')]);}[_0x425c('0x148')](edgeToDummyEdgesMap,crossingConstrainedEdges){if(crossingConstrainedEdges!=null){for(let e of this['edges'])e['weight']=0x1;for(let e of crossingConstrainedEdges)e[_0x425c('0x2')]=this['edges']['length']*0x3e8;}let splitMap=new Map();let splitTrees=new Map();let edgesToDelete=new Set();let planarSubgraph=this[_0x425c('0x149')](edgesToDelete,crossingConstrainedEdges);if(edgesToDelete[_0x425c('0x14a')]==0x0)return planarSubgraph;let dualGraph=planarSubgraph[_0x425c('0x14b')](!![]);for(let e of edgesToDelete){let v1=planarSubgraph[_0x425c('0xd8')][_0x425c('0x79')](e[_0x425c('0x8')]);let v2=planarSubgraph[_0x425c('0xd8')][_0x425c('0x79')](e[_0x425c('0x9')]);let oFaces=dualGraph[_0x425c('0x14c')](v1);let dFaces=dualGraph[_0x425c('0x14c')](v2);let oFaceVertices=dualGraph['getFaceVertices'](oFaces);let dFaceVertices=dualGraph[_0x425c('0x14d')](dFaces);let commonEdges=[];let dummyEdges=[];let dummyEdgePath=[];dummyEdgePath[_0x425c('0x14')](v1);let pathInDualGraph=crossingConstrainedEdges==null?dualGraph[_0x425c('0xf2')](oFaceVertices,dFaceVertices):dualGraph[_0x425c('0xf7')](oFaceVertices,dFaceVertices);for(let i=0x0;i<pathInDualGraph[_0x425c('0x17')]-0x1;++i){let f1=dualGraph[_0x425c('0x14e')][_0x425c('0x79')](pathInDualGraph[i]);let f2=dualGraph[_0x425c('0x14e')][_0x425c('0x79')](pathInDualGraph[i+0x1]);let commonEdge=crossingConstrainedEdges==null?dualGraph[_0x425c('0xc')](f1,f2):dualGraph[_0x425c('0x14f')](f1,f2);commonEdges[_0x425c('0x14')](commonEdge);let splitParent=null;if(splitMap[_0x425c('0xa7')](commonEdge)){splitParent=splitMap[_0x425c('0x79')](commonEdge);}else{let tree=new BinaryTree(commonEdge);splitParent=tree[_0x425c('0x29')];splitMap['set'](commonEdge,splitParent);if(!commonEdge[_0x425c('0xf0')])splitTrees[_0x425c('0xa4')](commonEdge,tree);}let dummy=planarSubgraph[_0x425c('0xee')](commonEdge);dummyEdgePath[_0x425c('0x14')](dummy);if(splitParent!=null){splitParent[_0x425c('0x150')](dummy[_0x425c('0x13')][0x0],dummy[_0x425c('0x1')][0x0]);splitMap['set'](dummy['inEdges'][0x0],splitParent['left']);splitMap['set'](dummy[_0x425c('0x1')][0x0],splitParent[_0x425c('0x74')]);}}dummyEdgePath[_0x425c('0x14')](v2);for(let i=0x0;i<dummyEdgePath['length']-0x1;++i){let dummy=planarSubgraph[_0x425c('0xe6')](dummyEdgePath[i],dummyEdgePath[i+0x1]);dummy[_0x425c('0xf0')]=!![];dummyEdges[_0x425c('0x14')](dummy);}for(let i=0x0;i<commonEdges[_0x425c('0x17')];++i){let replaceInFaces=commonEdges[i];let addedVertex=dummyEdgePath[i+0x1];dualGraph[_0x425c('0xb3')](replaceInFaces,addedVertex);}for(let i=0x0;i<dummyEdges['length'];++i){dualGraph[_0x425c('0x151')](dualGraph['vertexToFaceMap'][_0x425c('0x79')](pathInDualGraph[i]),dummyEdges[i]);}if(edgeToDummyEdgesMap!=null)edgeToDummyEdgesMap[_0x425c('0xa4')](e,dummyEdges);dualGraph['setItemIndices']();}if(edgeToDummyEdgesMap!=null){for(const [edge,tree]of splitTrees[_0x425c('0xa5')]()){edgeToDummyEdgesMap['set'](planarSubgraph[_0x425c('0xa6')][_0x425c('0x79')](edge),tree['getLeaves']());}for(let e of edgesToDelete){let dl=edgeToDummyEdgesMap[_0x425c('0x79')](e)['slice']();edgeToDummyEdgesMap[_0x425c('0xa4')](e,[]);for(let d of dl){if(splitMap[_0x425c('0xa7')](d))edgeToDummyEdgesMap[_0x425c('0x79')](e)[_0x425c('0x14')](...splitMap[_0x425c('0x79')](d)['getLeaves']());else edgeToDummyEdgesMap['get'](e)[_0x425c('0x14')](d);}}}return planarSubgraph;}['makeAcyclic'](){if(this[_0x425c('0xd4')][_0x425c('0x17')]<=0x1||this[_0x425c('0x0')][_0x425c('0x17')]<=0x1)return[];if(this[_0x425c('0xd4')][_0x425c('0x17')]==0x2){var result=[];var edge=this[_0x425c('0x0')][0x0];edge[_0x425c('0x23')]();result[_0x425c('0x14')](edge);return result;}var copy=this[_0x425c('0x3')](!![]);var n=this['vertices'][_0x425c('0x17')];var vertexBuckets=new Map();copy['vertices'][_0x425c('0x15')](function(v){addVertexToBucket(v,n,vertexBuckets);});var sl=[];var sr=[];while(copy[_0x425c('0xd4')]['length']>0x0){if(vertexBuckets[_0x425c('0xa7')](0x2-n)){var sinks=vertexBuckets[_0x425c('0x79')](0x2-n);while(sinks[_0x425c('0x17')]>0x0){var sink=sinks[_0x425c('0xdb')]();sink['edges']['forEach'](function(e){var neighbor=e[_0x425c('0xe')](sink);var bucket=getBucket(neighbor,n);Utils[_0x425c('0x7')](vertexBuckets[_0x425c('0x79')](bucket),neighbor);neighbor[_0x425c('0xef')](e);addVertexToBucket(neighbor,n,vertexBuckets);});Utils[_0x425c('0x7')](copy['vertices'],sink);sr['unshift'](sink);}}if(vertexBuckets[_0x425c('0xa7')](n-0x2)){var sources=vertexBuckets[_0x425c('0x79')](n-0x2);while(sources[_0x425c('0x17')]>0x0){var source=sources['pop']();source[_0x425c('0x0')][_0x425c('0x15')](function(e){var neighbor=e['getOtherEnd'](source);var bucket=getBucket(neighbor,n);Utils[_0x425c('0x7')](vertexBuckets[_0x425c('0x79')](bucket),neighbor);neighbor[_0x425c('0xef')](e);addVertexToBucket(neighbor,n,vertexBuckets);});Utils[_0x425c('0x7')](copy['vertices'],source);sl[_0x425c('0x14')](source);}}if(copy[_0x425c('0xd4')][_0x425c('0x17')]>0x0){for(var i=n-0x3;i>0x2-n;i--){if(vertexBuckets[_0x425c('0xa7')](i)&&vertexBuckets['get'](i)[_0x425c('0x17')]>0x0){var maxdiff=vertexBuckets['get'](i);var v=maxdiff['pop']();v[_0x425c('0x0')]['forEach'](function(e){var neighbor=e[_0x425c('0xe')](v);var bucket=getBucket(neighbor,n);Utils[_0x425c('0x7')](vertexBuckets['get'](bucket),neighbor);neighbor[_0x425c('0xef')](e);addVertexToBucket(neighbor,n,vertexBuckets);});Utils[_0x425c('0x7')](copy[_0x425c('0xd4')],v);sl[_0x425c('0x14')](v);break;}}}}sl[_0x425c('0x14')](...sr);var vertexOrder=new Map();for(var i=0x0;i<this[_0x425c('0xd4')][_0x425c('0x17')];i++)vertexOrder['set'](copy[_0x425c('0xd6')][_0x425c('0x79')](sl[i]),i);var reversedEdges=[];this[_0x425c('0x0')][_0x425c('0x15')](function(e){if(vertexOrder['get'](e['origin'])>vertexOrder['get'](e['destination'])){e['reverse']();reversedEdges['push'](e);}});return reversedEdges;}[_0x425c('0x14b')](cacheIncidentFaces){let embedding=this['getPlanarEmbedding']();return new Factory[(_0x425c('0x115'))](this,embedding,cacheIncidentFaces);}[_0x425c('0x152')](embedding,s,t){return new Factory[(_0x425c('0x115'))](this,embedding,!![],s,t);}[_0x425c('0x153')](){this[_0x425c('0xed')]();this[_0x425c('0xf8')]=0x0;this[_0x425c('0x154')]=0x0;var vertices=this[_0x425c('0xd4')];var postOrder=createIdArray(vertices[_0x425c('0x17')],-0x1);var topologicalOrder=createIdArray(vertices['length'],-0x1);this[_0x425c('0x102')]=createIdArray(vertices[_0x425c('0x17')],-0x1);for(var v=0x0;v<vertices[_0x425c('0x17')];v++){if(this[_0x425c('0x102')][v]==-0x1){var acyclic=this['topologicalSortDfs'](postOrder,topologicalOrder,v);if(!acyclic)return null;}}topologicalOrder[_0x425c('0x23')]();return topologicalOrder;}[_0x425c('0x155')](postOrder,topologicalOrder,dest){var destVertex=this[_0x425c('0xd4')][dest];this['searchOrder'][dest]=this['searchCounter']++;for(var e=0x0;e<destVertex[_0x425c('0x1')][_0x425c('0x17')];e++){var edge=destVertex[_0x425c('0x1')][e];var test=edge[_0x425c('0x9')][_0x425c('0x1a')];if(this[_0x425c('0x102')][test]==-0x1){var acyclic=this[_0x425c('0x155')](postOrder,topologicalOrder,test);if(!acyclic)return![];}else if(postOrder[test]==-0x1){return![];}}topologicalOrder[this[_0x425c('0x154')]]=dest;postOrder[dest]=this['postCounter']++;return!![];}[_0x425c('0x156')](minNumber){if(minNumber==null)minNumber=0x0;let tsort=this['topologicalSort']();return this[_0x425c('0x157')](tsort,minNumber);}['getWeightedTopologicalNumberingTS'](tsort,minNumber){if(tsort==null)return null;let wtn=createIdArray(this[_0x425c('0xd4')][_0x425c('0x17')],minNumber);for(let i=0x0;i<this[_0x425c('0xd4')][_0x425c('0x17')];++i){let v=this[_0x425c('0xd4')][tsort[i]];for(let e of v['outEdges'])if(wtn[v[_0x425c('0x1a')]]+e[_0x425c('0x2')]>wtn[e[_0x425c('0x9')][_0x425c('0x1a')]])wtn[e[_0x425c('0x9')][_0x425c('0x1a')]]=wtn[v[_0x425c('0x1a')]]+e[_0x425c('0x2')];}return wtn;}[_0x425c('0x158')](maxDegree,embedding){let toReplace=[];for(let v of this['vertices']){if(v['degree']()>maxDegree)toReplace['push'](v);}let replacementMap=new Map();for(let v of toReplace)replacementMap[_0x425c('0xa4')](v,this[_0x425c('0x159')](v,maxDegree,embedding));return replacementMap;}[_0x425c('0x159')](vertex,maxDegree,embedding){let rplcSize=Math['floor']((vertex[_0x425c('0x16')]()+0x1)/0x2);let dummyCycle=[];dummyCycle[0x0]=vertex;for(let i=0x1;i<rplcSize;++i){let dummy=new Vertex();dummyCycle[i]=dummy;this[_0x425c('0xd4')]['push'](dummy);}let ve=embedding['get'](vertex)[_0x425c('0x9d')]();for(let i=0x2;i<ve[_0x425c('0x17')];++i){let e=ve[i];if(e[_0x425c('0x8')]==vertex)e[_0x425c('0x1f')](dummyCycle[Math[_0x425c('0xcd')](i/0x2)]);else if(e['destination']==vertex)e[_0x425c('0x20')](dummyCycle[Math[_0x425c('0xcd')](i/0x2)]);}let replacement=new Graph();replacement[_0x425c('0xd4')][_0x425c('0x14')](...dummyCycle);for(let i=0x0;i<dummyCycle['length'];++i){let ce=this[_0x425c('0xe6')](dummyCycle[i],dummyCycle[(i+0x1)%dummyCycle[_0x425c('0x17')]]);ce[_0x425c('0xf0')]=!![];replacement[_0x425c('0x0')]['push'](ce);}return replacement;}[_0x425c('0x15a')](){let topologicalOrder=this[_0x425c('0x153')]();if(topologicalOrder==null)throw new Error(_0x425c('0x15b'));let sortedVertices=[];for(let i=0x0;i<this[_0x425c('0xd4')][_0x425c('0x17')];++i)sortedVertices['push'](this['vertices'][topologicalOrder[i]]);this['vertices']=sortedVertices;this['setItemIndices']();}[_0x425c('0x15c')](){let g=this['clone'](!![]);g[_0x425c('0x15a')]();let sectionMaxCliqueWeights=createIdArray(this['vertices'][_0x425c('0x17')],0x0);for(let i=0x0;i<this[_0x425c('0xd4')][_0x425c('0x17')];++i){let v=g[_0x425c('0xd4')][i];let maxCliqueWeight=v[_0x425c('0x2')];for(let e of v[_0x425c('0x13')])maxCliqueWeight=Math[_0x425c('0xc0')](maxCliqueWeight,sectionMaxCliqueWeights[e[_0x425c('0x8')]['index']]+v[_0x425c('0x2')]);sectionMaxCliqueWeights[i]=maxCliqueWeight;}let maxCliqueHighest=null;let sectionMaxCliqueWeight=-0x1;for(let i=0x0;i<this['vertices'][_0x425c('0x17')];++i){if(sectionMaxCliqueWeight<sectionMaxCliqueWeights[i]){maxCliqueHighest=g[_0x425c('0xd4')][i];sectionMaxCliqueWeight=sectionMaxCliqueWeights[i];}}if(maxCliqueHighest==null)throw Error(_0x425c('0x15d'));let maxClique=[];maxClique[_0x425c('0x14')](g[_0x425c('0xd6')]['get'](maxCliqueHighest));let sectionMaxCliqueHighest=maxCliqueHighest;while(sectionMaxCliqueHighest['inEdges'][_0x425c('0x17')]>0x0){sectionMaxCliqueWeight=-0x1;for(let e of sectionMaxCliqueHighest['inEdges']){let v=e['origin'];if(sectionMaxCliqueWeight<sectionMaxCliqueWeights[v['index']]){sectionMaxCliqueHighest=v;sectionMaxCliqueWeight=sectionMaxCliqueWeights[v['index']];}}maxClique[_0x425c('0x14')](g[_0x425c('0xd6')]['get'](sectionMaxCliqueHighest));}return maxClique;}}function getBucket(vertex,n){if(vertex[_0x425c('0x1')][_0x425c('0x17')]==0x0)return 0x2-n;else if(vertex[_0x425c('0x13')][_0x425c('0x17')]==0x0)return n-0x2;else return vertex[_0x425c('0x1')][_0x425c('0x17')]-vertex['inEdges'][_0x425c('0x17')];}function addVertexToBucket(vertex,n,vertexBuckets){var bucket=getBucket(vertex,n);if(!vertexBuckets['has'](bucket))vertexBuckets[_0x425c('0xa4')](bucket,[]);vertexBuckets['get'](bucket)[_0x425c('0x14')](vertex);}function createIdArray(size,value){var array=[];for(var i=0x0;i<size;++i)array[i]=value;return array;}function createBoolArray(size){let array=[];for(let i=0x0;i<size;++i)array[i]=![];return array;}class BlockCutpointGraph extends Graph{constructor(graph){super();this['targetGraph']=graph;this[_0x425c('0x15e')]=new Map();this['cutToCnodeMap']=new Map();this[_0x425c('0x15f')]=graph[_0x425c('0xfa')](!![],(b,c)=>this[_0x425c('0x160')](b,c));}[_0x425c('0x160')](componentBlocks,componentCuts){for(let block of componentBlocks){let bNode=this['addVertex']();bNode[_0x425c('0x69')]=block;block[_0x425c('0xd7')]();this[_0x425c('0x15e')]['set'](block,bNode);}if(componentCuts==null)return;for(let cut of componentCuts){let cNode=this[_0x425c('0xeb')](cut['debugId']);cNode[_0x425c('0x69')]=cut;this['cutToCnodeMap'][_0x425c('0xa4')](cut,cNode);for(let block of componentBlocks){if(block[_0x425c('0xd8')][_0x425c('0xa7')](cut))this[_0x425c('0xe6')](this[_0x425c('0x15e')][_0x425c('0x79')](block),cNode);}}}[_0x425c('0x161')](block){let cutVertices=[];let bNode=this[_0x425c('0x15e')][_0x425c('0x79')](block);for(let edge of bNode[_0x425c('0x0')]){let vertex=edge[_0x425c('0xe')](bNode);cutVertices[_0x425c('0x14')](vertex[_0x425c('0x69')]);}return cutVertices;}[_0x425c('0x162')](bNode){let cutVertices=[];for(let edge of bNode[_0x425c('0x0')]){let vertex=edge[_0x425c('0xe')](bNode);cutVertices['push'](vertex[_0x425c('0x69')]);}return cutVertices;}[_0x425c('0x163')](bNode){return bNode['edges'][_0x425c('0x17')]==0x1;}[_0x425c('0x164')](cutVertex){let adjacentBlocks=[];let cNode=this['cutToCnodeMap'][_0x425c('0x79')](cutVertex);for(let edge of cNode[_0x425c('0x0')]){let vertex=edge[_0x425c('0xe')](cNode);adjacentBlocks[_0x425c('0x14')](vertex[_0x425c('0x69')]);}return adjacentBlocks;}[_0x425c('0x165')](){this[_0x425c('0x29')]=null;let minDegree=Number['MAX_SAFE_INTEGER'];for(let vertex of this[_0x425c('0xd4')]){if(this['isBnode'](vertex)&&vertex[_0x425c('0x16')]()<minDegree){this[_0x425c('0x29')]=vertex;minDegree=this['root'][_0x425c('0x16')]();}}this[_0x425c('0x166')](null,this['root']);}[_0x425c('0x166')](parent,vertex){for(let edge of vertex[_0x425c('0x0')]){let otherEnd=edge[_0x425c('0xe')](vertex);if(otherEnd==parent){if(edge['destination']==parent)edge['reverse']();}else{this['directFrom'](vertex,otherEnd);}}}[_0x425c('0x108')](){if(this['vertices']['length']<0x2)return null;for(let vertex of this[_0x425c('0xd4')]){if(this[_0x425c('0x167')](vertex)){let pendantCut=!![];for(let edge of vertex[_0x425c('0x1')]){let child=edge[_0x425c('0x9')];if(!this[_0x425c('0x163')](child)){pendantCut=![];break;}}if(pendantCut)return vertex;}}return null;}['getOutsideVertex'](bNode){let block=this[_0x425c('0x168')](bNode);let cutpoints=this['mapVertices'](this[_0x425c('0x162')](bNode),block[_0x425c('0xd8')]);return block[_0x425c('0xd6')]['get'](block[_0x425c('0x113')](cutpoints));}[_0x425c('0x169')](bNode,neighborCnode){let block=this[_0x425c('0x168')](bNode);let neighborCutvertex=this['getCutvertex'](neighborCnode);let copy=block[_0x425c('0xd8')][_0x425c('0x79')](neighborCutvertex);let cutpoints=[];cutpoints[_0x425c('0x14')](copy);return block[_0x425c('0xd6')][_0x425c('0x79')](block[_0x425c('0x118')](cutpoints,copy));}[_0x425c('0x168')](bNode){return bNode[_0x425c('0x69')];}[_0x425c('0x10d')](cNode){return cNode[_0x425c('0x69')];}['getCnode'](cut){return this['cutToCnodeMap'][_0x425c('0x79')](cut);}[_0x425c('0x16a')](vertices,map){let mappedVertices=[];for(let vertex of vertices)mappedVertices[_0x425c('0x14')](map[_0x425c('0x79')](vertex));return mappedVertices;}['mergeBlocks'](bnodes,parent){let union=new Set();for(let bNode of bnodes){let block=this[_0x425c('0x168')](bNode);Utils[_0x425c('0x109')](union,this[_0x425c('0x16a')](block['vertices'],block[_0x425c('0xd6')]));}let mergedBlock=this[_0x425c('0x16b')][_0x425c('0xd5')](union[_0x425c('0xb2')](),!![]);mergedBlock[_0x425c('0xd7')]();parent[_0x425c('0x69')]=mergedBlock;this['blockToBnodeMap'][_0x425c('0xa4')](mergedBlock,parent);for(let bNode of bnodes){if(bNode==parent)continue;let edges=bNode[_0x425c('0x1')][_0x425c('0x9d')]();for(let edge of edges)edge[_0x425c('0x1f')](parent);}}[_0x425c('0x10f')](vertex,parent){vertex[_0x425c('0x13')][0x0][_0x425c('0x1f')](parent);}[_0x425c('0x110')](cNode){this[_0x425c('0x16c')][_0x425c('0xa8')](this[_0x425c('0x10d')](cNode));this['removeVertex'](cNode);}['removeBnode'](bNode){this[_0x425c('0x15e')][_0x425c('0xa8')](this[_0x425c('0x168')](bNode));this[_0x425c('0x147')](bNode);}[_0x425c('0x167')](vertex){return vertex['data']instanceof Vertex;}[_0x425c('0x16d')](vertex){return vertex[_0x425c('0x69')]instanceof Graph;}}Factory[_0x425c('0x16e')]=BlockCutpointGraph;class DualGraph extends Graph{constructor(graph,embedding,cacheIncidentFaces,s,t){super();this[_0x425c('0xa3')]=graph;this[_0x425c('0xa2')]=embedding;this['faces']=[];this['edgeToFaceMap']=new Map();if(cacheIncidentFaces)this[_0x425c('0x16f')]=new Map();embedding[_0x425c('0xab')]();for(let v of embedding[_0x425c('0xd4')]){for(let e of embedding[_0x425c('0x79')](v)){if(this[_0x425c('0x170')][_0x425c('0xa7')](e))continue;let f=new Face();this[_0x425c('0x116')][_0x425c('0x14')](f);let nextE=e;do{this[_0x425c('0x170')][_0x425c('0xa4')](nextE,f);f[_0x425c('0x0')][_0x425c('0x14')](nextE);nextE=embedding['getNextRightFaceEdge'](nextE);}while(nextE!=e);if(cacheIncidentFaces){for(let be of f[_0x425c('0x0')]){let o=be[_0x425c('0x8')];let ofaces=null;if(!this[_0x425c('0x16f')]['has'](o)){ofaces=[];this[_0x425c('0x16f')][_0x425c('0xa4')](o,ofaces);}else{ofaces=this[_0x425c('0x16f')]['get'](o);}if(ofaces[_0x425c('0x17')]==0x0||ofaces[0x0]!=f&&ofaces[ofaces['length']-0x1]!=f)ofaces[_0x425c('0x14')](f);}}}}this['faceToVertexMap']=new Map();this[_0x425c('0x14e')]=new Map();for(let f of this['faces'])this[_0x425c('0x171')](f);for(let e of graph[_0x425c('0x0')])this[_0x425c('0x172')](e);this[_0x425c('0xed')]();if(s)this[_0x425c('0x173')](s,t);}[_0x425c('0x173')](s,t){let sFaces=this[_0x425c('0x14c')](s);let externalFace=null;for(let f of sFaces){if(f[_0x425c('0xa')](t)){if(externalFace==null){externalFace=f;}else{if(f[_0x425c('0x0')][_0x425c('0x17')]>externalFace[_0x425c('0x0')]['length'])externalFace=f;}}}this[_0x425c('0x174')]=externalFace;this['leftExVertex']=this[_0x425c('0x175')][_0x425c('0x79')](this['leftExFace']);this[_0x425c('0x176')]=new Face();this[_0x425c('0x116')]['push'](this['rightExFace']);this[_0x425c('0x177')]=new Vertex();this[_0x425c('0xd4')][_0x425c('0x14')](this[_0x425c('0x177')]);this[_0x425c('0x175')][_0x425c('0xa4')](this['rightExFace'],this[_0x425c('0x177')]);this[_0x425c('0x14e')][_0x425c('0xa4')](this[_0x425c('0x177')],this[_0x425c('0x176')]);let inEdges=this[_0x425c('0x178')]['inEdges'][_0x425c('0x9d')]();for(let e of inEdges){this[_0x425c('0x178')]['removeEdge'](e);e[_0x425c('0x9')]=this['rightExVertex'];this['rightExVertex'][_0x425c('0x13')][_0x425c('0x14')](e);this[_0x425c('0x177')][_0x425c('0x0')][_0x425c('0x14')](e);}for(let e of externalFace[_0x425c('0x0')]){if(e[_0x425c('0x25')])this['edgeToFaceMap'][_0x425c('0xa4')](e,this['rightExFace']);}}[_0x425c('0x14c')](v){return this[_0x425c('0x16f')][_0x425c('0x79')](v);}[_0x425c('0x179')](v,f){if(!this['incidentFaces'][_0x425c('0xa7')](v))this[_0x425c('0x16f')][_0x425c('0xa4')](v,[]);this[_0x425c('0x16f')][_0x425c('0x79')](v)[_0x425c('0x14')](f);}[_0x425c('0x119')](face){let faceVertices=new Set();for(let edge of face['edges']){faceVertices[_0x425c('0x5c')](edge[_0x425c('0x8')]);faceVertices[_0x425c('0x5c')](edge[_0x425c('0x9')]);}return faceVertices;}[_0x425c('0x14d')](faceList){let faceVertices=new Set();for(let f of faceList)faceVertices[_0x425c('0x5c')](this[_0x425c('0x175')][_0x425c('0x79')](f));return faceVertices;}[_0x425c('0xc')](f1,f2){for(let e of f1[_0x425c('0x0')]){let r=this[_0x425c('0xa2')][_0x425c('0xbe')](e);if(this[_0x425c('0x170')][_0x425c('0x79')](r)==f2)return this[_0x425c('0x17a')](e);}return null;}[_0x425c('0x14f')](f1,f2){let minWeight=Number[_0x425c('0xf6')];let minWeightEdge=null;for(let e of f1[_0x425c('0x0')]){let r=this[_0x425c('0xa2')][_0x425c('0xbe')](e);if(this[_0x425c('0x170')][_0x425c('0x79')](r)==f2){let edge=this[_0x425c('0x17a')](e);if(edge[_0x425c('0x2')]<minWeight){minWeightEdge=edge;minWeight=edge[_0x425c('0x2')];}}}return minWeightEdge;}['getOriginalEdge'](e){for(let oe of e[_0x425c('0x8')][_0x425c('0x0')]){if(oe['joins'](e[_0x425c('0x8')],e[_0x425c('0x9')]))return oe;}return null;}[_0x425c('0xb3')](oldEdge,newVertex){let e1=newVertex[_0x425c('0x13')][0x0];let e2=newVertex['outEdges'][0x0];let r=this[_0x425c('0xa2')][_0x425c('0xbe')](oldEdge);let f1=this['edgeToFaceMap'][_0x425c('0x79')](oldEdge);let edgeIndex=f1[_0x425c('0x0')]['indexOf'](oldEdge);f1[_0x425c('0x0')][edgeIndex]=e1;f1[_0x425c('0x0')][_0x425c('0xa0')](edgeIndex+0x1,0x0,e2);let f2=this['edgeToFaceMap'][_0x425c('0x79')](r);let r1=e2['createReverseEdge']();let r2=e1[_0x425c('0x24')]();edgeIndex=f2[_0x425c('0x0')]['indexOf'](r);f2[_0x425c('0x0')][edgeIndex]=r1;f2['edges'][_0x425c('0xa0')](edgeIndex+0x1,0x0,r2);this[_0x425c('0x170')][_0x425c('0xa8')](oldEdge);this[_0x425c('0x170')][_0x425c('0xa4')](e1,f1);this[_0x425c('0x170')][_0x425c('0xa4')](e2,f1);this[_0x425c('0x170')][_0x425c('0xa8')](r);this[_0x425c('0x170')][_0x425c('0xa4')](r1,f2);this[_0x425c('0x170')][_0x425c('0xa4')](r2,f2);this['embedding'][_0x425c('0xac')](oldEdge,e1,e2,r,r1,r2,newVertex);if(this[_0x425c('0x16f')]!=null)this[_0x425c('0x16f')][_0x425c('0xa4')](newVertex,[f1,f2]);}[_0x425c('0x151')](f,newEdge){let fromEdge=null,toEdge=null;let from=-0x1;for(let i=0x0;i<f[_0x425c('0x0')][_0x425c('0x17')];++i){let e=f[_0x425c('0x0')][i];if(e['origin']==newEdge[_0x425c('0x9')]){from=i;fromEdge=e;}if(e[_0x425c('0x9')]==newEdge['origin']){toEdge=e;}}let f1=new Face();f1[_0x425c('0x0')][_0x425c('0x14')](newEdge);this[_0x425c('0x170')][_0x425c('0xa4')](newEdge,f1);let ei=from;do{let fe=f['edges'][ei];f1[_0x425c('0x0')][_0x425c('0x14')](fe);this['edgeToFaceMap'][_0x425c('0xa4')](fe,f1);ei=(ei+0x1)%f[_0x425c('0x0')][_0x425c('0x17')];}while(f1[_0x425c('0x0')][f1['edges'][_0x425c('0x17')]-0x1]!=toEdge);let r=new Edge(newEdge['destination'],newEdge[_0x425c('0x8')]);let f2=new Face();f2['edges'][_0x425c('0x14')](r);this[_0x425c('0x170')][_0x425c('0xa4')](r,f2);do{let fe=f['edges'][ei];f2[_0x425c('0x0')][_0x425c('0x14')](fe);this['edgeToFaceMap']['set'](fe,f2);ei=(ei+0x1)%f['edges'][_0x425c('0x17')];}while(ei!=from);this['embedding'][_0x425c('0xad')](newEdge,r,fromEdge,toEdge);let v=this[_0x425c('0x175')][_0x425c('0x79')](f);while(v['edges'][_0x425c('0x17')]>0x0)this[_0x425c('0xef')](v[_0x425c('0x0')][0x0]);this[_0x425c('0x175')]['delete'](f);this[_0x425c('0x14e')][_0x425c('0xa8')](v);Utils['remove'](this[_0x425c('0xd4')],v);this[_0x425c('0x171')](f1);this[_0x425c('0x171')](f2);for(let e of f1[_0x425c('0x0')])this[_0x425c('0x172')](e);for(let e of f2[_0x425c('0x0')])this[_0x425c('0x172')](e);if(this['incidentFaces']!=null){for(let e of f1[_0x425c('0x0')]){let o=e['origin'];let ofaces=this[_0x425c('0x16f')]['get'](o);let oi=ofaces[_0x425c('0x9c')](f);if(oi!=-0x1){ofaces[oi]=f1;if(o==newEdge[_0x425c('0x8')])ofaces[_0x425c('0xa0')](oi+0x1,0x0,f2);if(o==newEdge[_0x425c('0x9')])ofaces[_0x425c('0xa0')](oi,0x0,f2);}}for(let e of f2[_0x425c('0x0')]){let o=e['origin'];let ofaces=this[_0x425c('0x16f')][_0x425c('0x79')](o);let oi=ofaces[_0x425c('0x9c')](f);if(oi!=-0x1)ofaces[oi]=f2;}}Utils[_0x425c('0x7')](this[_0x425c('0x116')],f);this[_0x425c('0x116')][_0x425c('0x14')](f1);this[_0x425c('0x116')][_0x425c('0x14')](f2);for(let vertex of f1[_0x425c('0x119')]()){let vf=this['getIncidentFaces'](vertex);if(!vf[_0x425c('0xb')](f1)){vf['push'](f1);}}for(let vertex of f2['getVertices']()){let vf=this[_0x425c('0x14c')](vertex);if(!vf[_0x425c('0xb')](f2)){vf[_0x425c('0x14')](f2);}}}[_0x425c('0x171')](f){let v=new Vertex();this[_0x425c('0xd4')][_0x425c('0x14')](v);this['faceToVertexMap'][_0x425c('0xa4')](f,v);this[_0x425c('0x14e')]['set'](v,f);return v;}[_0x425c('0x172')](e){let r=this['embedding'][_0x425c('0xbe')](e);let f1=this[_0x425c('0x170')][_0x425c('0x79')](e);let f2=this['edgeToFaceMap'][_0x425c('0x79')](r);let d=this['createEdge'](this[_0x425c('0x175')][_0x425c('0x79')](f1),this[_0x425c('0x175')][_0x425c('0x79')](f2));d[_0x425c('0x2')]=e[_0x425c('0x2')];return d;}[_0x425c('0x17b')](){for(let i=0x0;i<this['faces'][_0x425c('0x17')];++i)this[_0x425c('0x116')][i][_0x425c('0x1a')]=i;}[_0x425c('0x82')](e){return e['reversed']?this[_0x425c('0x170')][_0x425c('0x79')](this[_0x425c('0xa2')][_0x425c('0xbe')](e)):this[_0x425c('0x170')][_0x425c('0x79')](e);}[_0x425c('0x74')](e){return e['reversed']?this[_0x425c('0x170')][_0x425c('0x79')](e):this['edgeToFaceMap'][_0x425c('0x79')](this[_0x425c('0xa2')][_0x425c('0xbe')](e));}}Factory[_0x425c('0x115')]=DualGraph;class IntervalGraph extends Graph{constructor(intervals){super();this[_0x425c('0x17c')]=new Map();for(let interval of intervals){let vertex=new Vertex();this[_0x425c('0xd4')][_0x425c('0x14')](vertex);this[_0x425c('0x17c')][_0x425c('0xa4')](interval,vertex);}for(let i=0x0;i<intervals['length']-0x1;++i){for(let j=i+0x1;j<intervals[_0x425c('0x17')];++j){let i1=intervals[i];let i2=intervals[j];if(i1[_0x425c('0x17d')](i2))this[_0x425c('0xe6')](this[_0x425c('0xd4')][i],this[_0x425c('0xd4')][j]);}}this[_0x425c('0x142')]=intervals['slice']();}[_0x425c('0x17e')](){let complement=new Graph();for(let vertex of this[_0x425c('0xd4')]){let copy=complement[_0x425c('0xeb')](vertex['debugId']);copy['weight']=vertex[_0x425c('0x2')];}for(let i=0x0;i<this[_0x425c('0xd4')]['length']-0x1;++i){for(let j=i+0x1;j<this['vertices'][_0x425c('0x17')];++j){if(!this[_0x425c('0xd4')][i][_0x425c('0x1e')](this[_0x425c('0xd4')][j]))complement[_0x425c('0xe6')](complement['vertices'][i],complement[_0x425c('0xd4')][j]);}}complement[_0x425c('0xed')]();for(let e of complement[_0x425c('0x0')]){let oi=e['origin'][_0x425c('0x1a')];let di=e[_0x425c('0x9')]['index'];if(this[_0x425c('0x142')][oi][_0x425c('0xbf')]>this[_0x425c('0x142')][di]['min'])e['reverse']();}let complementMaxClique=complement[_0x425c('0x15c')]();let maxIndependentSet=[];for(let v of complementMaxClique){let original=this[_0x425c('0xd4')][v[_0x425c('0x1a')]];maxIndependentSet[_0x425c('0x14')](original);}return maxIndependentSet;}}class OverlapGraph extends Graph{constructor(intervals){super();this[_0x425c('0x17c')]=new Map();this[_0x425c('0x143')]=new Map();for(let interval of intervals){let vertex=new Vertex();this[_0x425c('0xd4')][_0x425c('0x14')](vertex);this[_0x425c('0x17c')]['set'](interval,vertex);this[_0x425c('0x143')][_0x425c('0xa4')](vertex,interval);}for(let i=0x0;i<intervals['length']-0x1;++i){for(let j=i+0x1;j<intervals[_0x425c('0x17')];++j){let i1=intervals[i];let i2=intervals[j];if(i1[_0x425c('0xc1')](i2))this[_0x425c('0xe6')](this[_0x425c('0xd4')][i],this['vertices'][j]);}}this[_0x425c('0xed')]();this[_0x425c('0x142')]=intervals[_0x425c('0x9d')]();}['maxIndependentSet'](){if(this[_0x425c('0xd4')]['length']==0x0)return new Set();this['setItemIndices']();let inclusionGraph=new Graph();for(let interval of this[_0x425c('0x142')])inclusionGraph[_0x425c('0xeb')]();for(let i=0x0;i<this[_0x425c('0x142')]['length'];++i){for(let j=0x0;j<this[_0x425c('0x142')][_0x425c('0x17')];++j){let i1=this['intervals'][i];let i2=this['intervals'][j];if(i1!=i2&&i1[_0x425c('0x64')](i2))inclusionGraph[_0x425c('0xe6')](inclusionGraph[_0x425c('0xd4')][i],inclusionGraph[_0x425c('0xd4')][j]);}}let root=new Vertex();for(let vertex of inclusionGraph[_0x425c('0xd4')])inclusionGraph[_0x425c('0xe6')](root,vertex);inclusionGraph['vertices'][_0x425c('0x14')](root);inclusionGraph['setItemIndices']();this[_0x425c('0x17f')]=new Map();this[_0x425c('0x180')]=[];this['setInclusionLevel'](root);let vertexWeights=new Map();for(let vertex of this[_0x425c('0x180')][0x0])vertexWeights[_0x425c('0xa4')](vertex,0x1);let subgraphMaxSets=new Map();for(let vertex of this[_0x425c('0x180')][0x0])subgraphMaxSets['set'](vertex,new Set());for(let i=0x1;i<this[_0x425c('0x180')][_0x425c('0x17')];++i){for(let v of this['levelVertices'][i]){let subIntervals=[];for(let e of inclusionGraph[_0x425c('0xd4')][v[_0x425c('0x1a')]]['outEdges'])subIntervals[_0x425c('0x14')](this['intervals'][e['destination'][_0x425c('0x1a')]]);let subIntervalGraph=new IntervalGraph(subIntervals);subIntervalGraph['setItemIndices']();for(let il of subIntervals)subIntervalGraph[_0x425c('0x17c')][_0x425c('0x79')](il)[_0x425c('0x2')]=vertexWeights[_0x425c('0x79')](this[_0x425c('0x17c')][_0x425c('0x79')](il));let wSet=subIntervalGraph[_0x425c('0x17e')]();let vsubMaxIndependentSet=new Set();for(let u of wSet){let interval=subIntervalGraph[_0x425c('0x142')][u[_0x425c('0x1a')]];let overlapGraphVertex=this['intervalVertices']['get'](interval);vsubMaxIndependentSet[_0x425c('0x5c')](overlapGraphVertex);Utils[_0x425c('0x109')](vsubMaxIndependentSet,subgraphMaxSets[_0x425c('0x79')](overlapGraphVertex));}subgraphMaxSets[_0x425c('0xa4')](v,vsubMaxIndependentSet);vertexWeights['set'](v,vsubMaxIndependentSet['size']+0x1);}}let intervalGraph=new IntervalGraph(this['intervals']);intervalGraph[_0x425c('0xed')]();for(let il of this[_0x425c('0x142')])intervalGraph['intervalVertices'][_0x425c('0x79')](il)[_0x425c('0x2')]=vertexWeights[_0x425c('0x79')](this[_0x425c('0x17c')][_0x425c('0x79')](il));let wMaxIndependentSet=intervalGraph[_0x425c('0x17e')]();let maxIndependentSet=new Set();for(let u of wMaxIndependentSet){let overlapGraphVertex=this[_0x425c('0xd4')][u[_0x425c('0x1a')]];maxIndependentSet['add'](overlapGraphVertex);Utils[_0x425c('0x109')](maxIndependentSet,subgraphMaxSets[_0x425c('0x79')](overlapGraphVertex));}return maxIndependentSet;}[_0x425c('0x181')](vertex){if(this[_0x425c('0x17f')][_0x425c('0xa7')](vertex[_0x425c('0x1a')]))return this['inclusionLevels'][_0x425c('0x79')](vertex[_0x425c('0x1a')]);if(vertex[_0x425c('0x1')][_0x425c('0x17')]==0x0){this[_0x425c('0x182')](vertex,0x0);return 0x0;}let maxChildLevel=-0x1;for(let e of vertex[_0x425c('0x1')]){let child=e['destination'];maxChildLevel=Math[_0x425c('0xc0')](maxChildLevel,this[_0x425c('0x181')](child));}this['assignVertexToLevel'](vertex,maxChildLevel+0x1);return maxChildLevel+0x1;}[_0x425c('0x182')](vertex,level){this[_0x425c('0x17f')]['set'](vertex[_0x425c('0x1a')],level);if(this[_0x425c('0x180')]['length']<=level)this[_0x425c('0x180')][_0x425c('0x14')]([]);if(vertex[_0x425c('0x1a')]<this[_0x425c('0xd4')][_0x425c('0x17')])this[_0x425c('0x180')][level][_0x425c('0x14')](this['vertices'][vertex[_0x425c('0x1a')]]);}}Factory[_0x425c('0x140')]=OverlapGraph;class Path{constructor(path){if(path){this['nodes']=[...path[_0x425c('0x99')]];this[_0x425c('0x183')]=[...path[_0x425c('0x183')]];this[_0x425c('0x184')]=[...path[_0x425c('0x184')]];}else{this[_0x425c('0x99')]=[];this['links']=[];this[_0x425c('0x184')]=[];}}[_0x425c('0x64')](item){if(Path[_0x425c('0x185')](item)){if(this['nodes'][_0x425c('0xb')](item))return!![];return![];}else{if(this['links'][_0x425c('0xb')](item))return!![];return![];}}[_0x425c('0x186')](incNodes,incLinks){var weight=0x0;if(incNodes){this[_0x425c('0x99')][_0x425c('0x15')](function(node){weight+=node[_0x425c('0x2')];});}if(incLinks){this[_0x425c('0x183')][_0x425c('0x15')](function(link){weight+=link[_0x425c('0x2')];});}return weight;}['add'](link,node){if(link&&Path[_0x425c('0x187')](link[_0x425c('0x6')])){this[_0x425c('0x183')][_0x425c('0x14')](link);this[_0x425c('0x184')]['push'](link);}if(node&&Path[_0x425c('0x185')](node[_0x425c('0x6')])){this[_0x425c('0x99')][_0x425c('0x14')](node);this['items']['push'](node);}if(link&&Path['isNode'](link[_0x425c('0x6')])){this[_0x425c('0x99')][_0x425c('0x14')](link);this['items'][_0x425c('0x14')](link);}}static['isNode'](obj){return Object[_0x425c('0xb2')](obj)['indexOf'](_0x425c('0x188'))>-0x1;}static[_0x425c('0x187')](obj){return Object[_0x425c('0xb2')](obj)[_0x425c('0x9c')](_0x425c('0x189'))>-0x1;}}class PathFinder{constructor(){}static['findAllPaths'](graph,from,to){return PathFinder[_0x425c('0x18a')](graph,from,to,![],0x0);}static[_0x425c('0x18a')](graph,from,to,shortestOnly,maxPaths){var result=[];if(from==to&&shortestOnly){var path=new Path();path[_0x425c('0x5c')](from);result[_0x425c('0x14')](path);return result;}var tempCol=new Queue();var tempPath=new Path();tempPath[_0x425c('0x5c')](from);tempCol[_0x425c('0x2e')](tempPath);var pathFound=![];while(!![]){var size=tempCol['getSize']();if(size==0x0)break;if(pathFound&&shortestOnly)break;for(var i=0x0;i<size;i++){tempPath=tempCol[_0x425c('0x30')]();var lastNode=tempPath[_0x425c('0x99')][tempPath[_0x425c('0x99')][_0x425c('0x17')]-0x1];var links=lastNode[_0x425c('0x1')];for(var k=0x0;k<links[_0x425c('0x17')];k++){var link=links[k];var nextNode=link[_0x425c('0x9')];if(tempPath[_0x425c('0x64')](link))continue;if(nextNode==to){var newPath=new Path(tempPath);newPath[_0x425c('0x5c')](link,nextNode);result[_0x425c('0x14')](newPath);if(maxPaths!=0x0&&result[_0x425c('0x17')]>=maxPaths)return result;pathFound=!![];continue;}if(!tempPath[_0x425c('0x64')](nextNode)){var newPath=new Path(tempPath);newPath[_0x425c('0x5c')](link,nextNode);tempCol[_0x425c('0x2e')](newPath);}}}}return result;}static[_0x425c('0x18b')](graph,from,to,useNodeWeights,useLinkWeights){if(!useNodeWeights&&!useLinkWeights){var paths=PathFinder['findPaths'](graph,from,to,!![]);if(paths['length']>0x0)return paths[0x0];else return null;}var paths=PathFinder[_0x425c('0x18a')](graph,from,to,![]);if(paths[_0x425c('0x17')]==0x0)return null;var minWeight=Number[_0x425c('0xf6')];var minPath=null;for(var i=0x0;i<paths[_0x425c('0x17')];i++){var weight=paths[i]['getWeight'](useNodeWeights,useLinkWeights);if(weight<minWeight){minWeight=weight;minPath=paths[i];}}return minPath;}static[_0x425c('0x18c')](graph,from,to){var paths=PathFinder['findPaths'](graph,from,to,![]);if(paths[_0x425c('0x17')]>0x0)return paths[paths['length']-0x1];else return null;}static[_0x425c('0x18d')](graph,participant){if(participant){var cycles=PathFinder[_0x425c('0x18a')](graph,participant,participant,![]);if(cycles[_0x425c('0x17')]>0x0){var path=cycles[0x0];path[_0x425c('0x99')][_0x425c('0xa0')](path[_0x425c('0x99')][_0x425c('0x17')]-0x1,0x1);path['items'][_0x425c('0xa0')](path[_0x425c('0x184')]['length']-0x1,0x1);return path;}return null;}else{for(var i=0x0;i<graph['vertices'][_0x425c('0x17')];i++){var cycles=PathFinder[_0x425c('0x18a')](graph,graph[_0x425c('0xd4')][i],graph[_0x425c('0xd4')][i],![]);if(cycles[_0x425c('0x17')]>0x0){var path=cycles[0x0];path[_0x425c('0x99')][_0x425c('0xa0')](path[_0x425c('0x99')][_0x425c('0x17')]-0x1,0x1);path[_0x425c('0x184')][_0x425c('0xa0')](path['items'][_0x425c('0x17')]-0x1,0x1);return path;}}return null;}}static[_0x425c('0x18e')](graph){var result=[];var callback=function(c){result['push'](c);};PathFinder['enumAllCyclesDirected'](graph,callback);return result;}static[_0x425c('0x18f')](graph,callbackEnum){PathFinder[_0x425c('0x190')]=new Map();PathFinder['markedStack']=[];PathFinder[_0x425c('0x191')]=[];PathFinder['vertexIdx']=new Map();PathFinder[_0x425c('0x192')]=new Map();var index=0x0;var vs=graph[_0x425c('0xd4')];vs[_0x425c('0x15')](function(v){PathFinder[_0x425c('0x193')]['set'](v,index++);});var callback=function(c){while(PathFinder[_0x425c('0x194')][_0x425c('0x17')]!=0x0)PathFinder[_0x425c('0x190')][_0x425c('0xa8')](PathFinder[_0x425c('0x194')][_0x425c('0xdb')]());return callbackEnum(c);};vs[_0x425c('0x15')](function(v){enumCircuitsTarjan(v,v,callback);});}static['deleted'](v){var result=PathFinder[_0x425c('0x192')][_0x425c('0xa7')](v)?PathFinder[_0x425c('0x192')][_0x425c('0x79')](v):null;if(result==null){result=new Map();PathFinder[_0x425c('0x192')][_0x425c('0xa4')](v,result);}return result;}}function enumCircuitsTarjan(start,vertex,callback){var cycleFound=![];var callbackFound=function(c){cycleFound=!![];return callback(c);};PathFinder[_0x425c('0x191')][_0x425c('0x14')](vertex);PathFinder[_0x425c('0x190')][_0x425c('0xa4')](vertex,!![]);PathFinder['markedStack']['push'](vertex);var edges=vertex[_0x425c('0x1')];edges[_0x425c('0x15')](function(edge){var adjVertex=edge[_0x425c('0x9')];if(!PathFinder[_0x425c('0x195')](vertex)['has'](adjVertex)){var order=PathFinder['vertexIdx']['get'](adjVertex)-PathFinder[_0x425c('0x193')]['get'](start);if(order<0x0){PathFinder[_0x425c('0x195')](vertex)[_0x425c('0xa4')](adjVertex,!![]);}else if(order==0x0){cycleFound=!![];var path=new Path();var it=PathFinder[_0x425c('0x191')][_0x425c('0x9c')](start);for(var i=it;i<PathFinder['pointStack'][_0x425c('0x17')];i++)path['nodes'][_0x425c('0x14')](PathFinder['pointStack'][i]);for(var i=0x0;i<path['nodes'][_0x425c('0x17')];i++){var n1=path[_0x425c('0x99')][i];var n2=path['nodes'][(i+0x1)%path[_0x425c('0x99')][_0x425c('0x17')]];var l=null;var n1_edges=n1[_0x425c('0x1')];for(var k=0x0;k<n1_edges[_0x425c('0x17')];k++){if(n1_edges[k]['getOtherEnd'](n1)==n2){l=n1_edges[k];break;}}path['links'][_0x425c('0x14')](l);path['items'][_0x425c('0x14')](n1);path['items'][_0x425c('0x14')](l);}callbackFound(path);return $break;}else if(!PathFinder[_0x425c('0x190')][_0x425c('0xa7')](adjVertex)){PathFinder[_0x425c('0x196')](start,adjVertex,callback);}}});if(cycleFound){while(PathFinder[_0x425c('0x194')][_0x425c('0x17')]>0x0)PathFinder[_0x425c('0x190')]['delete'](PathFinder[_0x425c('0x194')][_0x425c('0xdb')]());}PathFinder['pointStack'][_0x425c('0xa0')](PathFinder['pointStack'][_0x425c('0x17')]-0x1,0x1);}class Layout{constructor(){this[_0x425c('0x197')]=Anchoring[_0x425c('0x198')];this[_0x425c('0x199')]=![];this[_0x425c('0x19a')]=MultipleGraphsPlacement[_0x425c('0x19b')];this['margins']=0xa;}get[_0x425c('0x197')](){return this[_0x425c('0x19c')];}set['anchoring'](value){this[_0x425c('0x19c')]=value;}get['keepGroupLayout'](){return this[_0x425c('0x19d')];}set[_0x425c('0x199')](value){this[_0x425c('0x19d')]=value;}get['multipleGraphsPlacement'](){return this['_multipleGraphsPlacement'];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}get[_0x425c('0x19f')](){return this['_margins'];}set[_0x425c('0x19f')](value){this[_0x425c('0x1a0')]=value;}get[_0x425c('0x1a1')](){return!![];}get[_0x425c('0x1a2')](){return!![];}get[_0x425c('0x1a3')](){return!![];}get['requiresSimpleGraph'](){return!![];}get[_0x425c('0x1a4')](){return![];}get['requiresBezierLinks'](){return![];}get[_0x425c('0x1a5')](){return![];}get[_0x425c('0x1a6')](){return![];}get[_0x425c('0x1a7')](){return![];}}class BorderedTreeLayout extends Layout{constructor(){super();this[_0x425c('0x1a8')]=0xa;this[_0x425c('0x1a9')]=0xa;this[_0x425c('0x1aa')]=![];this[_0x425c('0x96')]=LayoutDirection[_0x425c('0x1ab')];this[_0x425c('0x1ac')]=TreeLayoutLinkType['Default'];this['multipleGraphsPlacement']=MultipleGraphsPlacement['Horizontal'];this['reversedLinks']=![];}get[_0x425c('0x1ad')](){return![];}get[_0x425c('0x1a5')](){return this[_0x425c('0x1ac')]==TreeLayoutLinkType['Cascading'];}get['isStatic'](){return this[_0x425c('0x1aa')];}[_0x425c('0x1ae')](graph){var root;var th=new TreeHelper(this['reversedLinks']);this['treeHelper']=th;graph[_0x425c('0xd4')][_0x425c('0x15')](function(v){let parentEdges=th[_0x425c('0x1af')](v);if(parentEdges[_0x425c('0x17')]==0x0){root=v;return $break;}});if(!root)return $skipLayout;this[_0x425c('0xd9')]=graph[_0x425c('0xd9')](root,this[_0x425c('0xd0')]);if(!this[_0x425c('0xd9')])return $skipLayout;var rootX=root['x']+root[_0x425c('0xe9')]/0x2;var rootY=root['y']+root[_0x425c('0xea')]/0x2;this['x']=0x0;this['y']=0x0;this[_0x425c('0x1b0')](root);var levelSizes=[];for(var i=0x0;i<this[_0x425c('0xd9')]['treeLevels'][_0x425c('0x17')];i++){var treeLevel=this[_0x425c('0xd9')]['treeLevels'][i];var sz=0x0;for(var j=0x0;j<treeLevel[_0x425c('0x17')];j++){if(this['isHorizontal']())sz=Math[_0x425c('0xc0')](sz,treeLevel[j]['width']);else sz=Math[_0x425c('0xc0')](sz,treeLevel[j][_0x425c('0xea')]);}levelSizes[_0x425c('0x14')](sz);}var off=0x0;var size=0x0;for(var l=0x1;l<levelSizes[_0x425c('0x17')];l++){size+=levelSizes[l];size+=this[_0x425c('0x1a8')];}size+=this[_0x425c('0x19f')];if(!this[_0x425c('0x1b1')]())off=size;for(var i=0x0;i<this[_0x425c('0xd9')][_0x425c('0xe3')][_0x425c('0x17')];i++){var treeLevel=this['tree'][_0x425c('0xe3')][i];for(var j=0x0;j<treeLevel['length'];j++){var node=treeLevel[j];if(this[_0x425c('0x1b2')]())node['x']+=off;else node['y']+=off;}if(this[_0x425c('0x1b1')]())off+=this[_0x425c('0x1a8')]+levelSizes[i];else off+=-(this[_0x425c('0x1a8')]+levelSizes[i]);}if(this['keepRootPosition']){var newRootX=root['x'];var newRootY=root['y'];var xoff=rootX-newRootX;var yoff=rootY-newRootY;this['offsetBranch'](root,xoff,yoff);}if(this[_0x425c('0x1ac')]!=TreeLayoutLinkType[_0x425c('0x1b3')]){switch(this[_0x425c('0x1ac')]){case TreeLayoutLinkType[_0x425c('0x1b4')]:{switch(this[_0x425c('0x96')]){case LayoutDirection[_0x425c('0x1ab')]:{this[_0x425c('0xd9')][_0x425c('0x0')]['forEach'](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent['width']/0x2,'y':parent['y']},{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2}]);});}break;case LayoutDirection['BottomToTop']:{this[_0x425c('0xd9')][_0x425c('0x0')]['forEach'](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent['width']/0x2,'y':parent['y']},{'x':child['x'],'y':child['y']+child[_0x425c('0xea')]/0x2}]);});}break;case LayoutDirection['LeftToRight']:{this[_0x425c('0xd9')][_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x425c('0xea')]/0x2},{'x':child['x']-child[_0x425c('0xe9')]/0x2,'y':child['y']}]);});}break;case LayoutDirection[_0x425c('0x1b6')]:{this[_0x425c('0xd9')][_0x425c('0x0')]['forEach'](function(e){var parent=th[_0x425c('0xce')](e);var child=th['childNode'](e);th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']+parent['height']/0x2},{'x':child['x']+child[_0x425c('0xe9')]/0x2,'y':child['y']}]);});}break;}break;}case TreeLayoutLinkType[_0x425c('0x1b7')]:{switch(this[_0x425c('0x96')]){case LayoutDirection[_0x425c('0x1ab')]:{this[_0x425c('0xd9')][_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th['parentNode'](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent['width']/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2}]);});}break;case LayoutDirection[_0x425c('0x1b8')]:{this[_0x425c('0xd9')][_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th['childNode'](e);th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},{'x':child['x'],'y':child['y']+child[_0x425c('0xea')]/0x2}]);});}break;case LayoutDirection[_0x425c('0x1b9')]:{this[_0x425c('0xd9')][_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th['childNode'](e);th['assignPoints'](e,[{'x':parent['x'],'y':parent['y']+parent[_0x425c('0xea')]/0x2},{'x':parent['x'],'y':child['y']},{'x':child['x']-child[_0x425c('0xe9')]/0x2,'y':child['y']}]);});}break;case LayoutDirection[_0x425c('0x1b6')]:{this['tree'][_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x425c('0xea')]/0x2},{'x':parent['x'],'y':child['y']},{'x':child['x']+child['width']/0x2,'y':child['y']}]);});}break;}break;}}}}[_0x425c('0x1b0')](node){var rc=Rect['fromVertex'](node);rc['x']=this['x'];rc['y']=this['y'];if(this['direction']==LayoutDirection[_0x425c('0x1b6')]){var rcRoot=Rect[_0x425c('0x1ba')](this[_0x425c('0xd9')][_0x425c('0x29')]);var s=rc[_0x425c('0xe9')];rc=new Rect(rcRoot[_0x425c('0x74')]()-s,rc['top'](),rc[_0x425c('0xe9')],rc[_0x425c('0xea')]);}else if(this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1b8')]){var rcRoot=Rect[_0x425c('0x1ba')](this[_0x425c('0xd9')][_0x425c('0x29')]);var s=rc[_0x425c('0xea')];rc=new Rect(rc[_0x425c('0x82')](),rcRoot[_0x425c('0x1bb')]()-s,rc[_0x425c('0xe9')],rc[_0x425c('0xea')]);}node['x']=rc['x']+rc['width']/0x2;node['y']=rc['y']+rc[_0x425c('0xea')]/0x2;if(this[_0x425c('0x1b2')]())this['y']+=rc[_0x425c('0xea')]+this[_0x425c('0x1a9')];else this['x']+=rc['width']+this[_0x425c('0x1a9')];var self=this;var children=this[_0x425c('0xd9')][_0x425c('0xe5')](node);children['forEach'](function(child){self['rarrange'](child);});}['offsetBranch'](nodeFrom,xoff,yoff){var offsetFunc=function(node,params){node['x']+=params[0x0];node['y']+=params[0x1];};walk$1(this[_0x425c('0xd9')],nodeFrom,offsetFunc,[xoff,yoff]);}[_0x425c('0x1b2')](){return this['direction']==LayoutDirection[_0x425c('0x1b9')]||this[_0x425c('0x96')]==LayoutDirection['RightToLeft'];}[_0x425c('0x1b1')](){return this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1b9')]||this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1ab')];}[_0x425c('0x1bc')](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}get[_0x425c('0x1a8')](){return this[_0x425c('0x1bf')];}set[_0x425c('0x1a8')](value){this[_0x425c('0x1bf')]=value;}get[_0x425c('0x1a9')](){return this['_nodeDistance'];}set['nodeDistance'](value){this[_0x425c('0x1c0')]=value;}get[_0x425c('0x1aa')](){return this['_keepRootPosition'];}set[_0x425c('0x1aa')](value){this['_keepRootPosition']=value;}get[_0x425c('0x96')](){return this[_0x425c('0x1c1')];}set[_0x425c('0x96')](value){this['_direction']=value;}get[_0x425c('0x1ac')](){return this['_linkType'];}set[_0x425c('0x1ac')](value){this[_0x425c('0x1c2')]=value;}get[_0x425c('0x197')](){return this[_0x425c('0x19c')];}set['anchoring'](value){this[_0x425c('0x19c')]=value;}get[_0x425c('0x199')](){return this[_0x425c('0x19d')];}set['keepGroupLayout'](value){this[_0x425c('0x19d')]=value;}get[_0x425c('0x19a')](){return this[_0x425c('0x19e')];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}get[_0x425c('0xd0')](){return this['_reversedLinks'];}set[_0x425c('0xd0')](value){this[_0x425c('0x1c3')]=value;}}function walk$1(tree,node,func,params){func[_0x425c('0x1c4')](this,node,params);var children=tree[_0x425c('0xe5')](node);children['forEach'](function(child){walk$1(tree,child,func,params);});}class LayoutUtils{static[_0x425c('0x1c5')](graph,defaultBounds){if(graph['vertices'][_0x425c('0x17')]==0x0)return defaultBounds;var bounds=null;graph[_0x425c('0xd4')]['forEach'](function(v){bounds=Rect['fromVertex'](v)[_0x425c('0x1c6')](bounds);});graph[_0x425c('0x0')][_0x425c('0x15')](function(e){if(e[_0x425c('0xd3')])bounds=Rect[_0x425c('0x1c7')](e[_0x425c('0xd3')])[_0x425c('0x1c6')](bounds);});return bounds;}}class Tools{static[_0x425c('0x1c8')](node,o){var r=bounds(node);if(o==Orientation[_0x425c('0x19b')])return newPoint(r['x']+r['width']/0x2,r[_0x425c('0x1bb')]());else return newPoint(r[_0x425c('0x74')](),r['y']+r[_0x425c('0xea')]/0x2);}static[_0x425c('0x1c9')](node,o){var r=bounds(node);if(o==Orientation[_0x425c('0x19b')])return newPoint(r['x']+r[_0x425c('0xe9')]/0x2,r[_0x425c('0x1ca')]());else return newPoint(r[_0x425c('0x82')](),r['y']+r[_0x425c('0xea')]/0x2);}static[_0x425c('0x1cb')](node,o){var r=bounds(node);if(o==Orientation[_0x425c('0x19b')])return newPoint(r[_0x425c('0x82')](),r['y']+r[_0x425c('0xea')]/0x2);else return newPoint(r['x']+r[_0x425c('0xe9')]/0x2,r['top']());}static[_0x425c('0x1cc')](node,o){var r=bounds(node);if(o==Orientation[_0x425c('0x19b')])return newPoint(r[_0x425c('0x74')](),r['y']+r['height']/0x2);else return newPoint(r['x']+r[_0x425c('0xe9')]/0x2,r[_0x425c('0x1bb')]());}static['MoveNode'](node,x,y){var r=bounds(node);r['x']=x;r['y']=y;var c=r[_0x425c('0x1cd')]();node['x']=c['x'];node['y']=c['y'];}static[_0x425c('0x1ce')](link,points){if(link[_0x425c('0x1cf')])link[_0x425c('0x1d0')]=!![];link[_0x425c('0x1cf')]=!![];link[_0x425c('0xd3')]=Array[_0x425c('0x1d1')][_0x425c('0x9d')][_0x425c('0x1c4')](arguments,0x1);}static[_0x425c('0x1d2')](link,points){if(link[_0x425c('0x1cf')])link['_fcl_multiMerge']=!![];link[_0x425c('0x1cf')]=!![];link[_0x425c('0xd3')]=points;}static[_0x425c('0x1d3')](link){return link[_0x425c('0xd3')];}static['Mirror'](point,origin){return newPoint(origin['x']+point['y']-origin['y'],origin['y']+point['x']-origin['x']);}static['GetBreadth'](node,o){return o==Orientation[_0x425c('0x19b')]?node[_0x425c('0xe9')]:node[_0x425c('0xea')];}static['GetBCenter'](node,o){if(o==Orientation[_0x425c('0x19b')])return node['x'];else return node['y'];}static[_0x425c('0x1d4')](node,o){return o==Orientation[_0x425c('0x19b')]?node[_0x425c('0xea')]:node['width'];}static[_0x425c('0x1d5')](node,o){if(o==Orientation[_0x425c('0x19b')])return node['y'];else return node['x'];}static[_0x425c('0x1d6')](node,o){return Tools[_0x425c('0x1d7')](bounds(node),o);}static['GetBFar'](node,o){return Tools[_0x425c('0x1d8')](bounds(node),o);}static[_0x425c('0x1d9')](node,o){return Tools[_0x425c('0x1da')](bounds(node),o);}static[_0x425c('0x1db')](node,o){return Tools['GetLFarRect'](bounds(node),o);}static[_0x425c('0x1d7')](rect,o){if(o==Orientation[_0x425c('0x19b')])return rect[_0x425c('0x82')]();else return rect[_0x425c('0x1ca')]();}static[_0x425c('0x1d8')](rect,o){if(o==Orientation[_0x425c('0x19b')])return rect[_0x425c('0x74')]();else return rect[_0x425c('0x1bb')]();}static[_0x425c('0x1da')](rect,o){if(o==Orientation['Vertical'])return rect[_0x425c('0x1ca')]();else return rect[_0x425c('0x82')]();}static['GetLFarRect'](rect,o){if(o==Orientation[_0x425c('0x19b')])return rect[_0x425c('0x1bb')]();else return rect[_0x425c('0x74')]();}static['GetB'](point,o){if(o==Orientation[_0x425c('0x19b')])return point['x'];else return point['y'];}static[_0x425c('0x1dc')](point,o){if(o==Orientation[_0x425c('0x19b')])return point['y'];else return point['x'];}static[_0x425c('0x1dd')](node,offset,o){if(o==Orientation[_0x425c('0x19b')])node['y']=node['y']+offset;else node['x']=node['x']+offset;for(var l=0x0;l<node[_0x425c('0x13')]['length'];l++){var link=node[_0x425c('0x13')][l];var p=link[_0x425c('0xd3')];if(!p)continue;var li=p[_0x425c('0x17')]-0x1;if(o==Orientation[_0x425c('0x19b')]){var start=p[0x0]['y'];var oldEnd=p[li]['y'];var newEnd=p[li]['y']+offset;var flip=(start-oldEnd)*(start-newEnd)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['y']+=offset;}}else{for(var pi=0x1;pi<li;pi++){var dy=start-p[pi]['y'];p[pi]['y']+=dy;}}p[li]['y']+=offset;}else{var start=p[0x0]['x'];var oldEnd=p[li]['x'];var newEnd=p[li]['x']+offset;var flip=(start-oldEnd)*(start-newEnd)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['x']+=offset;}}else{for(var pi=0x1;pi<li;pi++){var dx=start-p[pi]['x'];p[pi]['x']+=dx;}}p[li]['x']+=offset;}}}static[_0x425c('0x1de')](links,offx,offy,o){for(var l=0x0;l<links[_0x425c('0x17')];l++){var link=links[l];var p=link[_0x425c('0xd3')];if(!p)continue;var li=p[_0x425c('0x17')]-0x1;if(o==Orientation[_0x425c('0x19b')]){var oldStart=p[0x0]['y'];var newStart=p[0x0]['y']+offy;var end=p[li]['y'];var flip=(oldStart-end)*(newStart-end)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['y']+=offy;}}else{for(var pi=0x1;pi<li;pi++){var dy=end-p[pi]['y'];p[pi]['y']+=dy;}}p[0x0]['x']+=offx;p[0x0]['y']+=offy;if(p['length']==0x2){var sp=p[0x0];var ep=p[0x1];p[0x1]=newPoint(sp['x'],(sp['y']+ep['y'])/0x2);p[0x2]=newPoint(ep['x'],(sp['y']+ep['y'])/0x2);p[0x3]=ep;}else{p[0x1]['x']+=offx;}link[_0x425c('0x1cf')]=!![];}else{var oldStart=p[0x0]['x'];var newStart=p[0x0]['x']+offx;var end=p[li]['x'];var flip=(oldStart-end)*(newStart-end)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['x']+=offx;}}else{for(var pi=0x1;pi<li;pi++){var dx=end-p[pi]['x'];p[pi]['x']+=dx;}}p[0x0]['x']+=offx;p[0x0]['y']+=offy;if(p[_0x425c('0x17')]==0x2){var sp=p[0x0];var ep=p[0x1];p[0x1]=newPoint((sp['x']+ep['x'])/0x2,sp['y']);p[0x2]=newPoint((sp['x']+ep['x'])/0x2,ep['y']);p[0x3]=ep;}else{p[0x1]['y']+=offy;}link[_0x425c('0x1cf')]=!![];}}}}function newPoint(x,y){return new Point(x,y);}function bounds(v){if(v[_0x425c('0x1df')])return Rect[_0x425c('0x1e0')](v[_0x425c('0x1df')],v[_0x425c('0x1df')]);else return Rect[_0x425c('0x1e0')](v,v);}class FlowchartLayout extends Layout{constructor(){super();this[_0x425c('0x1a9')]=0x14;this['branchPadding']=0xc;this['linkPadding']=0x4;this[_0x425c('0x1e1')]=Orientation[_0x425c('0x19b')];this['multipleGraphsPlacement']=MultipleGraphsPlacement[_0x425c('0x1e2')];this[_0x425c('0x1e3')]=new Map();this[_0x425c('0x1e4')]=0x0;this['branchings']=[];this[_0x425c('0x1e5')]=new Map();this[_0x425c('0x1e6')]=new Map();this[_0x425c('0x1e7')]=new Map();this[_0x425c('0xf8')]=0x0;this[_0x425c('0x1e8')]=new Map();this['mm']=0x1;}get[_0x425c('0x1a4')](){return!![];}get[_0x425c('0x1a5')](){return!![];}[_0x425c('0x1ae')](graph){this['mm']=graph[_0x425c('0x1e9')];if(graph[_0x425c('0xd4')][_0x425c('0x17')]==0x0)return![];graph[_0x425c('0xed')]();this[_0x425c('0xa3')]=graph;var orientation=this[_0x425c('0x1e1')];this[_0x425c('0x1e3')]=new Map();this[_0x425c('0x1ea')]=[];this[_0x425c('0x1eb')]=[];this['furthestL']=0x0;this[_0x425c('0x1e4')]=0x0;this['flowchartNodes']=new Map();var startNodes=this[_0x425c('0x1ec')]();var startNode=null;var virtualStart=null;var virtualStartLinks=[];if(startNodes[_0x425c('0x17')]==0x0)startNode=graph[_0x425c('0xd4')][0x0];if(startNodes[_0x425c('0x17')]==0x1)startNode=startNodes[0x0];if(startNodes[_0x425c('0x17')]>0x1){virtualStart=startNode=new Vertex();startNode['x']=startNode['y']=0x0;startNode[_0x425c('0xe9')]=startNode[_0x425c('0xea')]=0x14;for(var n=0x0;n<startNodes[_0x425c('0x17')];n++){var node=startNodes[n];virtualStartLinks[_0x425c('0x14')](new Edge(virtualStart,node));}graph[_0x425c('0xd4')][_0x425c('0x14')](virtualStart);for(var l=0x0;l<virtualStartLinks[_0x425c('0x17')];l++){var virtualStartLink=virtualStartLinks[l];graph['addEdge'](virtualStartLink);}}var to=graph[_0x425c('0x153')]();if(!to){var reversed=graph[_0x425c('0x1ed')]();to=graph[_0x425c('0x153')]();}if(to){var orderMap=this['topologicalOrder']=this[_0x425c('0x153')](startNode,to);for(var n=0x0;n<graph[_0x425c('0xd4')][_0x425c('0x17')];n++){var node=graph[_0x425c('0xd4')][n];node[_0x425c('0x1')]['sort'](function(e1,e2){return orderMap['get'](e1['destination'])-orderMap['get'](e2[_0x425c('0x9')]);});}}if(reversed){reversed[_0x425c('0x15')](function(e){e[_0x425c('0x23')]();});}this['visitedNodes']=new Map();this[_0x425c('0x1e6')]=new Map();this['searchCounter']=0x0;this[_0x425c('0x128')](startNode);if(this[_0x425c('0x1e6')][_0x425c('0x14a')]<graph[_0x425c('0xd4')][_0x425c('0x17')])return![];for(var n=0x0;n<graph[_0x425c('0xd4')][_0x425c('0x17')];n++){var node=graph['vertices'][n];node['x']=node['y']=0x0;}for(var l=0x0;l<graph[_0x425c('0x0')][_0x425c('0x17')];l++){var link=graph['edges'][l];link['_fcl_processed']=![];}if(!to)this[_0x425c('0x1e7')]=this[_0x425c('0x153')](startNode);FlowchartBranching[_0x425c('0x1ee')]=[];var flowchart=this[_0x425c('0x1ef')](startNode);var breadth=flowchart[_0x425c('0x1f0')](this[_0x425c('0x1f1')],this[_0x425c('0x1f2')],orientation);flowchart[_0x425c('0x1ae')](breadth/0x2,0x0,this['nodeDistance'],orientation);if(virtualStart!=null)Utils[_0x425c('0x7')](graph['vertices'],virtualStart);for(var l=0x0;l<virtualStartLinks[_0x425c('0x17')];l++){var virtualStartLink=virtualStartLinks[l];graph[_0x425c('0xef')](virtualStartLink);}var defer=FlowchartBranching[_0x425c('0x1ee')];for(var dn=0x0;dn<defer['length'];dn++){var node=defer[dn];var inLinks=this['getDownLinks'](node[_0x425c('0x13')]);var far=farOfOriginNodes(inLinks,orientation);var nodeL=Tools[_0x425c('0x1d9')](node,orientation);if(far>=nodeL){var offset=far-nodeL+this[_0x425c('0x1a9')];Tools['OffsetL'](node,offset,orientation);}}this[_0x425c('0x1f3')]=LayoutUtils['getGraphBounds'](graph);for(var l=0x0;l<graph[_0x425c('0x0')][_0x425c('0x17')];l++){var link=graph['edges'][l];if(!processed(link)||badPath(link,this)){var points=this['findPath'](link,orientation);if(!points)points=this[_0x425c('0x1f4')](link,orientation,!![]);Tools[_0x425c('0x1d2')](link,points);}}var link=longestLink(graph);if(link){var crossings=countCrossings(graph,link[_0x425c('0xd3')],link);var pt=newPoint;if(crossings>0x0){var lp=this[_0x425c('0x1f1')];var lr=LayoutUtils[_0x425c('0x1c5')](graph);var orect=bounds(link[_0x425c('0x8')]);var drect=bounds(link[_0x425c('0x9')]);var ocenter=orect[_0x425c('0x1cd')]();var dcenter=drect[_0x425c('0x1cd')]();if(orientation==Orientation['Vertical']){var ox=ocenter['x'];var oy=orect[_0x425c('0x1bb')]();var lx1=orect[_0x425c('0x82')]();var lx2=drect[_0x425c('0x82')]();var dx=dcenter['x'];var dy=drect['top']();oy+this['nodeDistance']/0x2;dy-this[_0x425c('0x1a9')]/0x2;var candidates=[link['points']];candidates['push']([pt(lx1,ocenter['y']),pt(lr['left']()-lp,ocenter['y']),pt(lr[_0x425c('0x82')]()-lp,dcenter['y']),pt(lx2,dcenter['y'])]);}else{var ox=orect[_0x425c('0x74')]();var oy=ocenter['y'];var ty1=orect[_0x425c('0x1ca')]();var ty2=drect[_0x425c('0x1ca')]();var dx=drect[_0x425c('0x82')]();var dy=dcenter['y'];ox+this[_0x425c('0x1a9')]/0x2;dx-this[_0x425c('0x1a9')]/0x2;var candidates=[link[_0x425c('0xd3')]];candidates[_0x425c('0x14')]([pt(ocenter['x'],ty1),pt(ocenter['x'],lr[_0x425c('0x1ca')]()-lp),pt(dcenter['x'],lr['top']()-lp),pt(dcenter['x'],ty2)]);}var best=null;var bestCount=crossings;for(var c=0x0;c<candidates[_0x425c('0x17')];c++){var points=candidates[c];if(acceptPath(points,link[_0x425c('0x8')],link[_0x425c('0x9')],graph[_0x425c('0xd4')])){crossings=countCrossings(graph,points,link);if(crossings<bestCount){bestCount=crossings;best=points;}if(crossings==0x0)break;}}if(best)Tools[_0x425c('0x1d2')](link,best);}}for(var n=0x0;n<graph[_0x425c('0xd4')][_0x425c('0x17')];n++){var node=graph['vertices'][n];var topIn=nearIncomingLinks(node,orientation);if(topIn[_0x425c('0x17')]>0x1&&endPointsCoincide(topIn,orientation)){pullNearInPointsApart(topIn,orientation);}var bottomOut=farOutgoingLinks(node,orientation);if(bottomOut['length']>0x1&&startPointsCoincide(bottomOut,orientation)){pullFarOutPointsApart(bottomOut,orientation);}var sideIn=sideIncomingLinks(node,orientation);if(sideIn[_0x425c('0x17')]>0x1&&endPointsCoincide(sideIn,0x1-orientation)){pullSideInPointsApart(sideIn,orientation);}}this['pullLinksApart'](graph[_0x425c('0x0')]);}[_0x425c('0x1ef')](startNode){return this[_0x425c('0x1f5')](startNode,null,0x0,![],![]);}['composeBlocks'](node,parentBlock,loopDepth,onlyNotVisited,ignoreMerge){var graph=this[_0x425c('0xa3')];var children=[];var currentBlock=null;if(parentBlock==null){currentBlock=new FlowchartSequence(this);children[_0x425c('0x14')](this[_0x425c('0x1f5')](node,currentBlock,0x0,![],![]));}else{var fcNode=this['getFlowchartNode'](node);currentBlock=fcNode;var visited=this[_0x425c('0x1f6')](node);if(!visited)this[_0x425c('0x1e3')][_0x425c('0xa4')](node,this['progressCounter']++);var inDownLinks=this[_0x425c('0x1f7')](node);if(inDownLinks>0x1&&this[_0x425c('0x1ea')][_0x425c('0x17')]>0x0&&!ignoreMerge){peek(this[_0x425c('0x1ea')])[_0x425c('0x1f8')](fcNode);return currentBlock;}if(visited&&onlyNotVisited)return null;loopDepth+=this['getIncomingLoopLinks'](node);currentBlock['setLoopDepth'](loopDepth);loopDepth-=this[_0x425c('0x1f9')](node);var outDownLinks=this['getOutgoingDownLinks'](node);if(outDownLinks==0x1)currentBlock=new FlowchartSequence(this,fcNode);if(outDownLinks>0x1){var branching=new FlowchartBranching(this,fcNode);this[_0x425c('0x1ea')][_0x425c('0x14')](branching);currentBlock=branching;loopDepth=0x0;}for(var l=0x0;l<node[_0x425c('0x1')]['length'];++l){var branchLink=node[_0x425c('0x1')][l];currentBlock[_0x425c('0x1fa')]=branchLink;var child=this[_0x425c('0x1f5')](branchLink[_0x425c('0x9')],currentBlock,loopDepth,!![],![]);if(child!=null){if(child['getIncomingLink']()==null)child[_0x425c('0x1fb')](branchLink);children[_0x425c('0x14')](child);}}if(currentBlock['branches']&&branching['branches']['length']==0x0){this[_0x425c('0x1ea')][_0x425c('0xdb')]();return null;}if(outDownLinks>0x1&&this[_0x425c('0x1ea')][_0x425c('0x17')]>0x0)this[_0x425c('0x1ea')]['pop']();if(parentBlock instanceof FlowchartBranching&¤tBlock instanceof FlowchartBranching&&!this[_0x425c('0x1fc')](currentBlock)){var replacement=new FlowchartSequence(this);replacement['add'](currentBlock);children['length']=0x0;children[_0x425c('0x14')](currentBlock);currentBlock=replacement;}}if(currentBlock instanceof FlowchartSequence){for(var c=0x0;c<children[_0x425c('0x17')];++c){var child=children[c];var next=child[_0x425c('0x1fd')]();if(next!=null){for(var n=0x0;n<next[_0x425c('0x17')];++n){var nextNode=next[n];this[_0x425c('0x1f5')](nextNode,currentBlock,loopDepth,![],!![]);}}}}if(parentBlock!=null){parentBlock['add'](currentBlock);}else{var unprocessedNodes=new Queue();for(var n=0x0;n<graph['vertices'][_0x425c('0x17')];n++){var nnode=graph[_0x425c('0xd4')][n];if(!this[_0x425c('0x1e8')][_0x425c('0xa7')](nnode))unprocessedNodes[_0x425c('0x2e')](nnode);}while(unprocessedNodes['getSize']()>0x0){var n=unprocessedNodes['dequeue']();if(n['inEdges'][_0x425c('0x17')]==0x0||this[_0x425c('0x1e8')][_0x425c('0xa7')](n))continue;var parent=n[_0x425c('0x13')][0x0][_0x425c('0x8')];if(!this[_0x425c('0x1e8')][_0x425c('0xa7')](parent))unprocessedNodes[_0x425c('0x2e')](n);else this['composeBlocks'](n,this['getSequence'](this[_0x425c('0x1fe')](parent)),0x0,!![],!![]);}}return currentBlock;}[_0x425c('0x1ff')](block){if(block==null)return null;if(block instanceof FlowchartSequence)return block;return this[_0x425c('0x1ff')](block[_0x425c('0x200')]);}[_0x425c('0x1fc')](block){var next=block[_0x425c('0x1fd')]();if(next!=null&&next[_0x425c('0x17')]==0x1){var links=this[_0x425c('0x201')](next[0x0][_0x425c('0x1')]);if(links[_0x425c('0x17')]!=0x1)return![];var inDownLinks=this[_0x425c('0x1f7')](links[0x0][_0x425c('0x9')]);if(inDownLinks>0x1&&this[_0x425c('0x1ea')][_0x425c('0x17')]>0x0)return!![];}return![];}[_0x425c('0x1fe')](node){if(this[_0x425c('0x1e8')]['has'](node))return this['flowchartNodes']['get'](node);var flowchartNode=new FlowchartNode(this,node);this[_0x425c('0x1e8')]['set'](node,flowchartNode);return flowchartNode;}['getStartNodes'](){var graph=this['graph'];var startNodes=[];for(var n=0x0;n<graph[_0x425c('0xd4')]['length'];n++){var node=graph['vertices'][n];if(this[_0x425c('0x202')](node))startNodes['push'](node);}return startNodes;}['getOutgoingDownLinks'](node){var n=0x0;for(var l=0x0;l<node['outEdges'][_0x425c('0x17')];++l){var link=node[_0x425c('0x1')][l];if(this[_0x425c('0x203')](link))n++;}return n;}[_0x425c('0x1f7')](node){var n=0x0;for(var l=0x0;l<node[_0x425c('0x13')]['length'];++l){var link=node[_0x425c('0x13')][l];if(this[_0x425c('0x203')](link))n++;}return n;}[_0x425c('0x1bc')](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}['getOutgoingLoopLinks'](node){var n=0x0;for(var l=0x0;l<node[_0x425c('0x1')][_0x425c('0x17')];++l){var link=node['outEdges'][l];if(this[_0x425c('0x204')](link))n++;}return n;}[_0x425c('0x205')](node){var n=0x0;for(var l=0x0;l<node[_0x425c('0x13')][_0x425c('0x17')];++l){var link=node[_0x425c('0x13')][l];if(this[_0x425c('0x204')](link))n++;}return n;}[_0x425c('0x1f6')](node){return this['nodeOrder'][_0x425c('0xa7')](node);}['isStartNode'](node){return this[_0x425c('0x18')](node)==0x0;}[_0x425c('0x206')](node){return this[_0x425c('0x19')](node)==0x0;}[_0x425c('0x18')](node){return node[_0x425c('0x13')]['length'];}[_0x425c('0x19')](node){return node[_0x425c('0x1')][_0x425c('0x17')];}[_0x425c('0x204')](link){return!this[_0x425c('0x203')](link);}[_0x425c('0x203')](link){var o=link[_0x425c('0x8')];var d=link['destination'];return this[_0x425c('0x1e6')]['get'](d)<this['postOrder'][_0x425c('0x79')](o);}[_0x425c('0x128')](node){if(this['visitedNodes'][_0x425c('0xa7')](node))return;this[_0x425c('0x1e5')][_0x425c('0xa4')](node,!![]);for(var l=0x0;l<node[_0x425c('0x1')][_0x425c('0x17')];++l){var link=node[_0x425c('0x1')][l];this['depthFirstSearch'](link[_0x425c('0x9')]);}this[_0x425c('0x1e6')][_0x425c('0xa4')](node,this[_0x425c('0xf8')]++);}[_0x425c('0x153')](startNode,graphOrder){var order=new Map();if(graphOrder){for(var n=0x0;n<graphOrder[_0x425c('0x17')];n++){var node=this['graph']['vertices'][graphOrder[n]];order['set'](node,n);}return order;}var queue=new Queue();var counter=0x0;queue[_0x425c('0x2e')](startNode);order['set'](startNode,counter++);while(queue[_0x425c('0x207')]()>0x0){var node=queue[_0x425c('0x30')]();var downLinks=this['getDownLinks'](node[_0x425c('0x1')]);for(var l=0x0;l<downLinks[_0x425c('0x17')];++l){var link=downLinks[l];var child=link[_0x425c('0x9')];if(order[_0x425c('0xa7')](child))continue;queue['enqueue'](child);order['set'](child,counter++);}}return order;}[_0x425c('0x201')](links){var downLinks=[];for(var l=0x0;l<links[_0x425c('0x17')];++l){var link=links[l];if(this[_0x425c('0x203')](link))downLinks['push'](link);}return downLinks;}['getTopologicalOrder'](){return this[_0x425c('0x1e7')];}['findPath'](link,o,relaxed){var g=this[_0x425c('0xa3')];var pt=newPoint;var orect=bounds(link[_0x425c('0x8')]);var drect=bounds(link[_0x425c('0x9')]);var candidates=[];var ocenter=orect[_0x425c('0x1cd')]();var dcenter=drect['center']();if(o==Orientation[_0x425c('0x19b')]){var ox=ocenter['x'];var oy=orect['bottom']();var lx=orect[_0x425c('0x82')]();var rx=orect[_0x425c('0x74')]();var dx=dcenter['x'];var dy=drect[_0x425c('0x1ca')]();var mx=(ox+dx)/0x2;var my=(oy+dy)/0x2;var nd=this[_0x425c('0x1a9')];var hd=nd/0x2;var o1y=oy+hd;var o2y=dy-hd;var lp=this[_0x425c('0x1f2')];var llr=this[_0x425c('0x1f3')][_0x425c('0x74')]();var llb=this[_0x425c('0x1f3')][_0x425c('0x1bb')]();if(orect[_0x425c('0x1bb')]()<drect[_0x425c('0x1ca')]()){candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,my),pt(dx,my),pt(dx,dy)]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,o1y),pt(dx,o1y),pt(dx,dy)]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,o2y),pt(dx,o2y),pt(dx,dy)]);for(var ci=0x1;ci<=0x5;ci++){candidates['push']([pt(rx,ocenter['y']),pt(rx+ci*hd,ocenter['y']),pt(rx+ci*hd,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(lx,ocenter['y']),pt(lx-ci*hd,ocenter['y']),pt(lx-ci*hd,dcenter['y']),pt(drect['left'](),dcenter['y'])]);}candidates[_0x425c('0x14')]([pt(rx,ocenter['y']),pt(llr,ocenter['y']),pt(llr,dcenter['y']),pt(drect['right'](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,o1y),pt(lx,o1y),pt(lx,o2y),pt(dx,o2y),pt(dx,dy)]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,o1y),pt(mx,o1y),pt(mx,o2y),pt(dx,o2y),pt(dx,dy)]);}else{candidates['push']([pt(ox,oy),pt(ox,o1y),pt(mx,o1y),pt(mx,o2y),pt(dx,o2y),pt(dx,dy)]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,o1y),pt(orect[_0x425c('0x82')]()-lp,o1y),pt(orect[_0x425c('0x82')]()-lp,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);for(var ci=0x1;ci<=0x5;ci++){candidates['push']([pt(lx,ocenter['y']),pt(lx-ci*hd,ocenter['y']),pt(lx-ci*hd,dcenter['y']),pt(drect[_0x425c('0x82')](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(rx,ocenter['y']),pt(rx+ci*hd,ocenter['y']),pt(rx+ci*hd,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);}candidates['push']([pt(rx,ocenter['y']),pt(llr,ocenter['y']),pt(llr,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);}candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,llb),pt(drect[_0x425c('0x74')]()+0x2*hd,llb),pt(drect[_0x425c('0x74')]()+0x2*hd,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,llb),pt(drect[_0x425c('0x74')]()+hd,llb),pt(drect[_0x425c('0x74')]()+hd,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,llb),pt(drect[_0x425c('0x74')]()+nd,llb),pt(drect[_0x425c('0x74')]()+nd,dcenter['y']),pt(drect[_0x425c('0x74')](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,llb),pt(drect['left']()-hd,llb),pt(drect[_0x425c('0x82')]()-hd,dcenter['y']),pt(drect['left'](),dcenter['y'])]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(ox,llb),pt(drect[_0x425c('0x82')]()-nd,llb),pt(drect[_0x425c('0x82')]()-nd,dcenter['y']),pt(drect['left'](),dcenter['y'])]);}else{var ox=orect[_0x425c('0x74')]();var oy=ocenter['y'];var ty=orect[_0x425c('0x1ca')]();var by=orect[_0x425c('0x1bb')]();var dx=drect[_0x425c('0x82')]();var dy=dcenter['y'];var mx=(ox+dx)/0x2;var my=(oy+dy)/0x2;var nd=this['nodeDistance'];var hd=nd/0x2;var o1x=ox+hd;var o2x=dx-hd;var lp=this[_0x425c('0x1f2')];if(orect[_0x425c('0x74')]()<drect[_0x425c('0x82')]()){candidates[_0x425c('0x14')]([pt(ox,oy),pt(mx,oy),pt(mx,dy),pt(dx,dy)]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(o1x,oy),pt(o1x,dy),pt(dx,dy)]);candidates['push']([pt(ox,oy),pt(o2x,oy),pt(o2x,dy),pt(dx,dy)]);for(var ci=0x1;ci<=0x5;ci++){candidates[_0x425c('0x14')]([pt(ocenter['x'],by),pt(ocenter['x'],by+hd),pt(dcenter['x'],by+hd),pt(dcenter['x'],drect[_0x425c('0x1bb')]())]);candidates[_0x425c('0x14')]([pt(ocenter['x'],ty),pt(ocenter['x'],ty-hd),pt(dcenter['x'],ty-hd),pt(dcenter['x'],drect['top']())]);}candidates['push']([pt(ox,oy),pt(o1x,oy),pt(o1x,ty),pt(o2x,ty),pt(o2x,dy),pt(dx,dy)]);candidates[_0x425c('0x14')]([pt(ox,oy),pt(o1x,oy),pt(o1x,my),pt(o2x,my),pt(o2x,dy),pt(dx,dy)]);}else{candidates[_0x425c('0x14')]([pt(ox,oy),pt(o1x,oy),pt(o1x,my),pt(o2x,my),pt(o2x,dy),pt(dx,dy)]);candidates['push']([pt(ox,oy),pt(o1x,oy),pt(o1x,orect[_0x425c('0x1ca')]()-lp),pt(dcenter['x'],orect[_0x425c('0x1ca')]()-lp),pt(dcenter['x'],drect[_0x425c('0x1bb')]())]);}}if(relaxed){var bestEval=Number[_0x425c('0xf6')];var bestPoints;for(var c=0x0;c<candidates['length'];c++){var points=candidates[c];var currEval=evalPath(points,link[_0x425c('0x8')],link[_0x425c('0x9')],g['vertices']);if(currEval<bestEval){bestEval=currEval;bestPoints=points;}}return bestPoints;}else{for(var c=0x0;c<candidates[_0x425c('0x17')];c++){var points=candidates[c];if(acceptPath(points,link[_0x425c('0x8')],link[_0x425c('0x9')],g['vertices'])){return points;}}}return null;}[_0x425c('0x208')](points){var segments=[];for(var i=0x0;i<points['length']-0x1;i++){var segment={'index':i,'points':points,'horizontal'(){return this['points'][this[_0x425c('0x1a')]]['y']==this[_0x425c('0xd3')][this[_0x425c('0x1a')]+0x1]['y'];},'xint'(){var prev=this[_0x425c('0xd3')][this[_0x425c('0x1a')]]['x'];var next=this[_0x425c('0xd3')][this[_0x425c('0x1a')]+0x1]['x'];return prev<next?[prev,next]:[next,prev];},'yint'(){var prev=this['points'][this[_0x425c('0x1a')]]['y'];var next=this[_0x425c('0xd3')][this[_0x425c('0x1a')]+0x1]['y'];return prev<next?[prev,next]:[next,prev];}};segments[_0x425c('0x14')](segment);}return segments;}[_0x425c('0x209')](links){for(var i=0x0;i<links[_0x425c('0x17')];i++){var link=links[i];link[_0x425c('0x20a')]=this[_0x425c('0x208')](link['points']);}this[_0x425c('0x20b')](links,!![]);this[_0x425c('0x20b')](links,![]);}['splitPaths'](links,horizontal){var segments=[];for(var i=0x0;i<links[_0x425c('0x17')];i++){var link=links[i];var path=link[_0x425c('0x20a')];for(var j=0x0;j<path['length'];j++){var segment=path[j];if(segment[_0x425c('0x20c')]()==horizontal)segments[_0x425c('0x14')](segment);}}segments[_0x425c('0x124')](horizontal?compareY:compareX);var currentPos=-(Number['MAX_VALUE']-0x1);var bucket=[];var count=segments[_0x425c('0x17')];for(var i=0x0;i<=count;++i){var segment=i<count?segments[i]:null;var firstPos=currentPos;if(bucket[_0x425c('0x17')]>0x0)firstPos=coord(bucket[0x0],horizontal);if(segment==null||Math[_0x425c('0x20d')](coord(segment,horizontal)-firstPos)>this['mm']*0x2){if(bucket[_0x425c('0x17')]>0x1){var splitGroups=getSplitGroups(bucket,horizontal);for(var g=0x0;g<splitGroups[_0x425c('0x17')];g++){var group=splitGroups[g];if(group[_0x425c('0x17')]<0x2)continue;var sharedPos=coord(group[0x0],horizontal);group[_0x425c('0x124')](horizontal?compareH:compareV);var lp=this[_0x425c('0x1f2')]/0x2;var min=sharedPos-lp*0x2;var max=sharedPos+lp*0x2;var m=(min+max)/0x2;var d=Math[_0x425c('0xbf')]((max-min)/0x2,(group[_0x425c('0x17')]-0x1)*0x3*lp);var step=d/(group[_0x425c('0x17')]-0x1);var pos=sharedPos-d/0x2>=min+step?sharedPos-d/0x2:m-d/0x2;for(var si=0x0;si<group[_0x425c('0x17')];si++){var s=group[si];pos-coord(s,horizontal);if(horizontal){s[_0x425c('0xd3')][s[_0x425c('0x1a')]]['y']=pos;s['points'][s[_0x425c('0x1a')]+0x1]['y']=pos;}else{s['points'][s[_0x425c('0x1a')]]['x']=pos;s[_0x425c('0xd3')][s['index']+0x1]['x']=pos;}pos+=step;}}}bucket[_0x425c('0x17')]=0x0;}if(segment!=null){currentPos=coord(segment,horizontal);if(segment[_0x425c('0x1a')]>=0x0&&segment[_0x425c('0x1a')]<=segment[_0x425c('0xd3')][_0x425c('0x17')]-0x1)bucket[_0x425c('0x14')](segment);}}}get[_0x425c('0x1f1')](){return this[_0x425c('0x20e')];}set[_0x425c('0x1f1')](value){this['_branchPadding']=value;}get[_0x425c('0x1f2')](){return this[_0x425c('0x20f')];}set[_0x425c('0x1f2')](value){this[_0x425c('0x20f')]=value;}get['nodeDistance'](){return this[_0x425c('0x1c0')];}set[_0x425c('0x1a9')](value){this[_0x425c('0x1c0')]=value;}get[_0x425c('0x1e1')](){return this['_orientation'];}set[_0x425c('0x1e1')](value){this['_orientation']=value;}get[_0x425c('0x197')](){return this['_anchoring'];}set[_0x425c('0x197')](value){this[_0x425c('0x19c')]=value;}get[_0x425c('0x199')](){return this[_0x425c('0x19d')];}set[_0x425c('0x199')](value){this['_keepGroupLayout']=value;}get[_0x425c('0x19a')](){return this['_multipleGraphsPlacement'];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}[_0x425c('0x210')](){for(var v=0x0;v<this[_0x425c('0xa3')][_0x425c('0xd4')][_0x425c('0x17')];v++){var vertex=this[_0x425c('0xa3')][_0x425c('0xd4')][v];console[_0x425c('0x211')](_0x425c('0x212'));console[_0x425c('0x211')](vertex[_0x425c('0xec')]);for(var e=0x0;e<vertex['outEdges'][_0x425c('0x17')];e++){var edge=vertex[_0x425c('0x1')][e];console[_0x425c('0x211')](_0x425c('0x213')+edge[_0x425c('0xec')]);}}}}class FlowchartBlock{constructor(flowchartLayout){this[_0x425c('0x214')]=flowchartLayout;this['contentBreadth']=0x0;this[_0x425c('0x215')]=0x0;this[_0x425c('0x216')]=0x0;this[_0x425c('0x217')]=0x0;this[_0x425c('0x218')]=![];this[_0x425c('0x219')]=null;this[_0x425c('0x1fa')]=null;this[_0x425c('0x200')]=null;}[_0x425c('0x5c')](block){block[_0x425c('0x200')]=this;}['measure'](branchPadding,linkPadding,o){}[_0x425c('0x1ae')](b,l,offset,o){}['getOutLinks'](){}[_0x425c('0x21a')](){}[_0x425c('0x21b')](links){var backLinks=[];for(var l=0x0;l<links[_0x425c('0x17')];++l){var link=links[l];if(this['flowchartLayout'][_0x425c('0x204')](link))backLinks[_0x425c('0x14')](link);}return backLinks;}[_0x425c('0x1fd')](){return null;}['disjoint'](block){return!![];}['getContentBreadth'](){return this[_0x425c('0x21c')];}[_0x425c('0x21d')](){return this['fullBreadth'];}[_0x425c('0x21e')](){return this[_0x425c('0x216')];}['setLoopDepth'](value){this[_0x425c('0x216')]=value;}['getArranged'](){return this['arranged'];}[_0x425c('0x21f')](){return this[_0x425c('0x219')];}[_0x425c('0x1fb')](value){this[_0x425c('0x219')]=value;}}function LOriginComparer(orientation){return function(a,b){var la=0x0;if(orientation==Orientation[_0x425c('0x19b')])la=a[_0x425c('0x8')]['y'];else la=a['origin']['x'];var lb=0x0;if(orientation==Orientation[_0x425c('0x19b')])lb=b['origin']['y'];else lb=b['origin']['x'];if(la<lb)return-0x1;if(la>lb)return 0x1;return 0x0;};}function BOriginComparer(orientation){return function Compare(a,b){var la=0x0;if(orientation==Orientation[_0x425c('0x19b')])la=a[_0x425c('0x8')]['x'];else la=a[_0x425c('0x8')]['y'];var lb=0x0;if(orientation==Orientation[_0x425c('0x19b')])lb=b['origin']['x'];else lb=b[_0x425c('0x8')]['y'];if(la<lb)return-0x1;if(la>lb)return 0x1;return 0x0;};}function CompareTopologicalOrder(flowchartLayout){return function(n1,n2){var to=flowchartLayout['getTopologicalOrder']();if(to['has'](n1[_0x425c('0x220')]())&&to[_0x425c('0xa7')](n2[_0x425c('0x220')]())){var o1=to[_0x425c('0x79')](n1[_0x425c('0x220')]());var o2=to[_0x425c('0x79')](n2[_0x425c('0x220')]());if(o1<o2)return-0x1;if(o1>o2)return 0x1;}return 0x0;};}class FlowchartNode extends FlowchartBlock{constructor(flowchartLayout,node){super(flowchartLayout);this[_0x425c('0x1df')]=node;}[_0x425c('0x1f0')](branchPadding,linkPadding,o){this['maxLoopDepth']=this[_0x425c('0x216')];if(o==Orientation[_0x425c('0x19b')])this[_0x425c('0x21c')]=this['fullBreadth']=this[_0x425c('0x1df')][_0x425c('0xe9')];else this['contentBreadth']=this[_0x425c('0x215')]=this[_0x425c('0x1df')][_0x425c('0xea')];return this[_0x425c('0x21c')];}[_0x425c('0x1ae')](b,l,offset,o){var node=this[_0x425c('0x1df')];this[_0x425c('0x218')]=!![];node[_0x425c('0x221')]=!![];this['flowchartLayout'][_0x425c('0x1eb')][_0x425c('0x14')](node);if(o==Orientation[_0x425c('0x19b')]){Tools[_0x425c('0x222')](node,b-node['width']/0x2,l);var ll=bounds(node)[_0x425c('0x1bb')]();}else{Tools['MoveNode'](node,l,b-node[_0x425c('0xea')]/0x2);var ll=bounds(node)[_0x425c('0x74')]();}this[_0x425c('0x214')][_0x425c('0x223')]=Math[_0x425c('0xc0')](ll,this[_0x425c('0x214')][_0x425c('0x223')]);this[_0x425c('0x223')]=ll;return ll;}[_0x425c('0x224')](){return this[_0x425c('0x1df')][_0x425c('0x1')];}[_0x425c('0x21a')](){return this[_0x425c('0x1df')][_0x425c('0x13')];}[_0x425c('0x220')](){return this[_0x425c('0x1df')];}}class FlowchartSequence extends FlowchartBlock{constructor(flowchartLayout,startNode){super(flowchartLayout);this['sequence']=[];if(startNode)this[_0x425c('0x225')][_0x425c('0x14')](startNode);}[_0x425c('0x1f0')](branchPadding,linkPadding,o){this['maxLoopDepth']=this[_0x425c('0x21e')]();this[_0x425c('0x21c')]=0x0;for(var b=0x0;b<this[_0x425c('0x225')][_0x425c('0x17')];++b){var block=this[_0x425c('0x225')][b];block['measure'](branchPadding,linkPadding,o);this[_0x425c('0x21c')]=Math[_0x425c('0xc0')](this[_0x425c('0x21c')],block[_0x425c('0x226')]());this[_0x425c('0x217')]=Math[_0x425c('0xc0')](this[_0x425c('0x217')],block[_0x425c('0x217')]);}this[_0x425c('0x215')]=this['contentBreadth']+this[_0x425c('0x217')]*linkPadding;return this[_0x425c('0x215')];}[_0x425c('0x1ae')](b,l,offset,o){var prevBlock=null;var offsetNext=0x0;var overflow=0x0;for(var bc=0x0;bc<this[_0x425c('0x225')][_0x425c('0x17')];++bc){var block=this['sequence'][bc];if(block[_0x425c('0x227')]()){prevBlock=block;l=Math[_0x425c('0xc0')](l,prevBlock['furthestL']+offset);continue;}if(block[_0x425c('0x21f')]()!=null){var bottomCenter=Tools[_0x425c('0x1c8')](block['getIncomingLink']()['origin'],o);b=o==Orientation[_0x425c('0x19b')]?bottomCenter['x']:bottomCenter['y'];}l+=offsetNext;l=block[_0x425c('0x1ae')](b,l,offset,o);if(block[_0x425c('0x228')])overflow=Math[_0x425c('0xc0')](block[_0x425c('0x228')],overflow);offsetNext=offset;if(prevBlock!=null&&prevBlock[_0x425c('0x229')](block)){var links=prevBlock['getOutLinks']();if(links!=null){var seqLinks=this[_0x425c('0x214')][_0x425c('0x201')](links);if(seqLinks[_0x425c('0x17')]>0x0){var origin=seqLinks[0x0][_0x425c('0x8')];var destination=seqLinks[0x0]['destination'];var bb=Math[_0x425c('0xbf')](Tools[_0x425c('0x22a')](origin,o),Tools[_0x425c('0x22a')](destination,o));var ll=Tools[_0x425c('0x22b')](origin,o)-bb/0x2;for(var i=0x0;i<seqLinks['length'];++i){var link=seqLinks[i];if(o==Orientation[_0x425c('0x19b')]){var lx=ll+(i+0x1)*bb/(seqLinks[_0x425c('0x17')]+0x1);if(!link[_0x425c('0x1cf')])Tools[_0x425c('0x1ce')](link,newPoint(lx,bounds(origin)[_0x425c('0x1bb')]()),newPoint(lx,bounds(destination)[_0x425c('0x1ca')]()));}else{var ly=ll+(i+0x1)*bb/(seqLinks[_0x425c('0x17')]+0x1);if(!link['_fcl_processed'])Tools[_0x425c('0x1ce')](link,newPoint(bounds(origin)['right'](),ly),newPoint(bounds(destination)[_0x425c('0x82')](),ly));}}}}}prevBlock=block;}for(var bc=0x0;bc<this[_0x425c('0x225')][_0x425c('0x17')];++bc){var block=this[_0x425c('0x225')][bc];if(block instanceof FlowchartNode){var backLinks=this[_0x425c('0x21b')](block['getInLinks']());backLinks['sort'](LOriginComparer(o));for(var i=0x0;i<backLinks[_0x425c('0x17')];++i){var link=backLinks[i];var orect=bounds(link[_0x425c('0x8')]);var drect=bounds(link['destination']);var startL=Tools[_0x425c('0x1d5')](link[_0x425c('0x8')],o);var endL=Tools[_0x425c('0x1d5')](link[_0x425c('0x9')],o);var vSegmentB=b-this['getContentBreadth']()/0x2+this['getFullBreadth']()-(block[_0x425c('0x21e')]()-0x1-i)*this['flowchartLayout'][_0x425c('0x22c')]();if(o==Orientation[_0x425c('0x19b')]){Tools[_0x425c('0x1ce')](link,new Point(orect[_0x425c('0x74')](),startL),new Point(vSegmentB,startL),new Point(vSegmentB,endL),new Point(drect[_0x425c('0x74')](),endL));}else{Tools['SetLinkPoints'](link,new Point(startL,orect[_0x425c('0x1bb')]()),new Point(startL,vSegmentB),new Point(endL,vSegmentB),new Point(endL,drect[_0x425c('0x1bb')]()));}}}}if(overflow)this[_0x425c('0x228')]=overflow;this['furthestL']=l;return l;}['getOutLinks'](){return this[_0x425c('0x225')][this[_0x425c('0x225')][_0x425c('0x17')]-0x1][_0x425c('0x224')]();}[_0x425c('0x21a')](){return this[_0x425c('0x225')][0x0]['getInLinks']();}[_0x425c('0x5c')](block){this[_0x425c('0x225')][_0x425c('0x14')](block);super[_0x425c('0x5c')](block);}}class CenteredBranchingDescriptor{constructor(){this[_0x425c('0x22d')]=null;this['leftBlock']=null;this['rightBlock']=null;}}class FlowchartBranching extends FlowchartBlock{constructor(flowchartLayout,rootNode){super(flowchartLayout);this[_0x425c('0x22e')]=rootNode;this[_0x425c('0x22f')]=[];this[_0x425c('0x230')]=new Map();this['mergeNodes']=[];this['branchPadding']=0x0;this[_0x425c('0x231')]=null;}[_0x425c('0x1f0')](branchPadding,linkPadding,o){this['branchPadding']=branchPadding;this[_0x425c('0x22e')][_0x425c('0x1f0')](branchPadding,linkPadding,o);for(var m=0x0;m<this[_0x425c('0x232')][_0x425c('0x17')];++m){var mergeNode=this[_0x425c('0x232')][m];mergeNode[_0x425c('0x1f0')](branchPadding,linkPadding,o);}var centeredBranching=this[_0x425c('0x231')]=this[_0x425c('0x233')]();if(centeredBranching!=null){this[_0x425c('0x21c')]=centeredBranching[_0x425c('0x22d')]['measure'](branchPadding,linkPadding,o);this['contentBreadth']=Math['max'](this['contentBreadth'],this[_0x425c('0x22e')][_0x425c('0x226')]());this['contentBreadth']=Math[_0x425c('0xc0')](this[_0x425c('0x21c')],this[_0x425c('0x232')][0x0][_0x425c('0x226')]());this[_0x425c('0x21c')]+=0x2*branchPadding;}else if(this[_0x425c('0x234')]()){this[_0x425c('0x21c')]=0x2*linkPadding+Math[_0x425c('0xc0')](this['rootNode'][_0x425c('0x226')](),this[_0x425c('0x232')][0x0]['getContentBreadth']());}else{this['contentBreadth']=branchPadding*(this[_0x425c('0x22f')][_0x425c('0x17')]-0x1);for(var b=0x0;b<this[_0x425c('0x22f')][_0x425c('0x17')];++b){var block=this[_0x425c('0x22f')][b];this['contentBreadth']+=block[_0x425c('0x1f0')](branchPadding,linkPadding,o);}this['contentBreadth']=Math['max'](this[_0x425c('0x21c')],this[_0x425c('0x22e')][_0x425c('0x226')]());}this[_0x425c('0x215')]=this[_0x425c('0x21c')];return this[_0x425c('0x215')];}[_0x425c('0x235')](link,o){var orgEndPoint=Tools['GetLFarCenter'](link[_0x425c('0x8')],o);var destEndPoint=Tools[_0x425c('0x1c9')](link[_0x425c('0x9')],o);Tools[_0x425c('0x1ce')](link,orgEndPoint,destEndPoint);}[_0x425c('0x1ae')](b,l,offset,o){var flowchartLayout=this[_0x425c('0x214')];var rootNode=this[_0x425c('0x22e')];if(!rootNode[_0x425c('0x227')]())l=rootNode[_0x425c('0x1ae')](b,l,offset,o)+offset;var maxL=l;var sortedBranches=this['sortBranches'](this['branches']);var mergeAdjusted=![];var overflow=0x0;if(this[_0x425c('0x231')]==null){var currentB=b-this[_0x425c('0x226')]()/0x2;for(var sb=0x0;sb<sortedBranches['length'];++sb){var branch=sortedBranches[sb];currentB+=branch[_0x425c('0x226')]()/0x2;maxL=Math[_0x425c('0xc0')](maxL,branch[_0x425c('0x1ae')](currentB,l,offset,o));if(branch[_0x425c('0x228')])overflow+=branch[_0x425c('0x228')];currentB+=branch[_0x425c('0x21d')]()-branch['getContentBreadth']()/0x2+this[_0x425c('0x1f1')];if(branch[_0x425c('0x228')])currentB+=branch[_0x425c('0x228')];}}else{var branch=this[_0x425c('0x231')][_0x425c('0x22d')];maxL=branch[_0x425c('0x1ae')](b,l,offset,o);if(branch[_0x425c('0x228')])overflow+=branch[_0x425c('0x228')];}if(this[_0x425c('0x232')][_0x425c('0x17')]==0x1){var mergeNode=this[_0x425c('0x232')][0x0];if(!mergeNode[_0x425c('0x218')])maxL=mergeNode[_0x425c('0x1ae')](b,maxL+offset,offset,o);else maxL=Math[_0x425c('0xc0')](maxL,Tools[_0x425c('0x1db')](mergeNode[_0x425c('0x220')](),o));mergeNode[_0x425c('0x236')]=!![];}else{this['mergeNodes'][_0x425c('0x124')](CompareTopologicalOrder(flowchartLayout));var prevMergeNode=null;var defer=FlowchartBranching['deferredMerge'];for(var m=0x0;m<this[_0x425c('0x232')][_0x425c('0x17')];++m){var mergeNode=this['mergeNodes'][m];var originsArranged=originNodesArranged(mergeNode[_0x425c('0x21a')]());if(!originsArranged)continue;if(mergeNode[_0x425c('0x220')]()[_0x425c('0x19')]()==0x0&&!originsArranged&&!defer['includes'](mergeNode)){defer[_0x425c('0x14')](mergeNode[_0x425c('0x220')]());}var inLinks=flowchartLayout['getDownLinks'](mergeNode['getInLinks']());var center=centerOfOriginNodes(inLinks,o);var far=farOfOriginNodes(inLinks,o);var fixedInFlow=mergeNode[_0x425c('0x218')]&&mergeNode['getNode']()[_0x425c('0x221')]&&mergeNode[_0x425c('0x220')]()[_0x425c('0x19')]()>0x0;if(fixedInFlow){var mlinks=mergeNode['getNode']()[_0x425c('0x0')];for(var mli=0x0;mli<mlinks[_0x425c('0x17')];mli++)mlinks[mli]['_fcl_multiMerge']=!![];continue;}var wasArranged=mergeNode['arranged'];if(wasArranged){var oldX=mergeNode[_0x425c('0x220')]()['x'];var oldY=mergeNode[_0x425c('0x220')]()['y'];}var currentL=far+offset;var checkIntersections=currentL<this[_0x425c('0x214')][_0x425c('0x223')];var nextL=mergeNode[_0x425c('0x1ae')](center,currentL,offset,o);maxL=Math['max'](maxL,nextL);var mergeRect=bounds(mergeNode);if(prevMergeNode){if(bounds(prevMergeNode)['intersectsWith'](mergeRect))maxL=mergeNode[_0x425c('0x1ae')](center,Tools[_0x425c('0x1db')](prevMergeNode[_0x425c('0x220')](),o)+offset,offset,o);}else if(checkIntersections){var placed=this[_0x425c('0x214')][_0x425c('0x1eb')];for(var p=0x0;p<placed[_0x425c('0x17')];p++){var testNode=placed[p];if(mergeNode['node']!=testNode&&bounds(testNode)['intersectsWith'](mergeRect)){maxL=mergeNode[_0x425c('0x1ae')](Tools[_0x425c('0x237')](testNode,o)+offset+mergeRect[_0x425c('0xe9')]/0x2,currentL,offset,o);mergeAdjusted=!![];break;}}}mergeNode[_0x425c('0x236')]=!![];if(wasArranged){var dx=mergeNode[_0x425c('0x220')]()['x']-oldX;var dy=mergeNode[_0x425c('0x220')]()['y']-oldY;Tools['OffsetOutLinks'](mergeNode['getNode']()[_0x425c('0x1')],dx,dy,o);}var mlinks=mergeNode[_0x425c('0x220')]()[_0x425c('0x0')];for(var mli=0x0;mli<mlinks[_0x425c('0x17')];mli++)mlinks[mli][_0x425c('0x1d0')]=!![];prevMergeNode=mergeNode;prevMergeNode[_0x425c('0x238')]=center;}}var centeredBranching=this[_0x425c('0x231')];if(centeredBranching!=null){if(centeredBranching[_0x425c('0x239')]!=null){var rightLink=centeredBranching[_0x425c('0x239')][_0x425c('0x21f')]();var rightOrg=rightLink[_0x425c('0x8')];var rightDest=rightLink['destination'];var orgEndPoint=Tools[_0x425c('0x1cc')](rightOrg,o);var destEndPoint=Tools[_0x425c('0x1cc')](rightDest,o);var midSegmentCoord=b+this[_0x425c('0x21c')]/0x2;var b1,b2;if(o==Orientation[_0x425c('0x19b')]){b1=new Point(midSegmentCoord,orgEndPoint['y']);b2=new Point(midSegmentCoord,destEndPoint['y']);}else{b1=new Point(orgEndPoint['x'],midSegmentCoord);b2=new Point(destEndPoint['x'],midSegmentCoord);}Tools[_0x425c('0x1ce')](rightLink,orgEndPoint,b1,b2,destEndPoint);}if(centeredBranching['leftBlock']!=null){var leftLink=centeredBranching[_0x425c('0x23a')]['getIncomingLink']();var leftOrg=leftLink[_0x425c('0x8')];var leftDest=leftLink['destination'];var orgEndPoint=Tools[_0x425c('0x1cb')](leftOrg,o);var destEndPoint=Tools['GetBNearCenter'](leftDest,o);var midSegmentCoord=b-this[_0x425c('0x21c')]/0x2;var b1,b2;if(o==Orientation[_0x425c('0x19b')]){b1=new Point(midSegmentCoord,orgEndPoint['y']);b2=new Point(midSegmentCoord,destEndPoint['y']);}else{b1=new Point(orgEndPoint['x'],midSegmentCoord);b2=new Point(destEndPoint['x'],midSegmentCoord);}Tools[_0x425c('0x1ce')](leftLink,orgEndPoint,b1,b2,destEndPoint);}}else if(sortedBranches[_0x425c('0x17')]==0x2){var leftLink=sortedBranches[0x0]['getIncomingLink']();var rightLink=sortedBranches[0x1][_0x425c('0x21f')]();var leftDest=leftLink[_0x425c('0x9')];var rightDest=rightLink[_0x425c('0x9')];var leftTopCenter=Tools['GetLNearCenter'](leftDest,o);var rightTopCenter=Tools['GetLNearCenter'](rightDest,o);var root=rootNode[_0x425c('0x220')]();var leftDestMerge=this[_0x425c('0x232')]['includes'](flowchartLayout[_0x425c('0x1fe')](leftLink[_0x425c('0x9')]));if(Tools[_0x425c('0x23b')](leftTopCenter,o)<Tools[_0x425c('0x1d6')](root,o)){var leftStart=Tools['GetBNearCenter'](root,o);var leftMiddle=new Point();if(o==Orientation[_0x425c('0x19b')])leftMiddle=new Point(leftTopCenter['x'],leftStart['y']);else leftMiddle=new Point(leftStart['x'],leftTopCenter['y']);Tools[_0x425c('0x1ce')](leftLink,leftStart,leftMiddle,leftTopCenter);}else if(!leftDestMerge){var leftStart=Tools[_0x425c('0x1c8')](root,o);var ll=(Tools[_0x425c('0x1dc')](leftStart,o)+Tools[_0x425c('0x1dc')](leftTopCenter,o))/0x2;if(o==Orientation['Vertical']){Tools[_0x425c('0x1ce')](leftLink,leftStart,new Point(leftStart['x'],ll),new Point(leftTopCenter['x'],ll),leftTopCenter);}else{Tools['SetLinkPoints'](leftLink,leftStart,new Point(ll,leftStart['y']),new Point(ll,leftTopCenter['y']),leftTopCenter);}}else if(leftDestMerge){var points=Tools['GetLinkPoints'](leftLink);points[0x0]=Tools[_0x425c('0x1cb')](root,o);}var rightDestMerge=this[_0x425c('0x232')][_0x425c('0xb')](flowchartLayout['getFlowchartNode'](rightLink['destination']));if(Tools['GetB'](rightTopCenter,o)>Tools[_0x425c('0x237')](root,o)){var rightStart=Tools[_0x425c('0x1cc')](root,o);var rightMiddle=new Point();if(o==Orientation['Vertical'])rightMiddle=new Point(rightTopCenter['x'],rightStart['y']);else rightMiddle=new Point(rightStart['x'],rightTopCenter['y']);Tools[_0x425c('0x1ce')](rightLink,rightStart,rightMiddle,rightTopCenter);}else if(!rightDestMerge){var rightStart=Tools[_0x425c('0x1c8')](root,o);var ll=(Tools[_0x425c('0x1dc')](rightStart,o)+Tools[_0x425c('0x1dc')](rightTopCenter,o))/0x2;if(o==Orientation[_0x425c('0x19b')]){Tools[_0x425c('0x1ce')](rightLink,rightStart,new Point(rightStart['x'],ll),new Point(rightTopCenter['x'],ll),rightTopCenter);}else{Tools[_0x425c('0x1ce')](rightLink,rightStart,new Point(ll,rightStart['y']),new Point(ll,rightTopCenter['y']),rightTopCenter);}}else if(rightDestMerge){var points=Tools['GetLinkPoints'](rightLink);points[0x0]=Tools[_0x425c('0x1cc')](root,o);}}else{var midIndex=intDiv$1(sortedBranches[_0x425c('0x17')],0x2);var midLink=sortedBranches[midIndex][_0x425c('0x21f')]();var midStraight=sortedBranches[_0x425c('0x17')]%0x2==0x0||bounds(midLink[_0x425c('0x8')])['center']()['x']==bounds(midLink['destination'])[_0x425c('0x1cd')]()['x'];for(var i=0x0;i<sortedBranches[_0x425c('0x17')];++i){var link=sortedBranches[i][_0x425c('0x21f')]();var origin=link[_0x425c('0x8')];var destination=link['destination'];var startB=(i+0x1)*Tools[_0x425c('0x22a')](origin,o)/(sortedBranches[_0x425c('0x17')]+0x1)+Tools['GetBNear'](origin,o);var f=i<intDiv$1(sortedBranches[_0x425c('0x17')],0x2)?i+0x1:sortedBranches[_0x425c('0x17')]-i;var hrzSegmentL=Tools[_0x425c('0x1db')](origin,o)+f*offset/(midIndex+(midStraight?0x1:0x2));var endPoint=Tools[_0x425c('0x1c9')](destination,o);if(o==Orientation['Vertical']){Tools['SetLinkPoints'](link,new Point(startB,bounds(origin)[_0x425c('0x1bb')]()),new Point(startB,hrzSegmentL),new Point(endPoint['x'],hrzSegmentL),endPoint);}else{Tools[_0x425c('0x1ce')](link,new Point(bounds(origin)[_0x425c('0x74')](),startB),new Point(hrzSegmentL,startB),new Point(hrzSegmentL,endPoint['y']),endPoint);}}}if(centeredBranching!=null){this['connectNodeBorderCenters'](centeredBranching['middleBlock'][_0x425c('0x21f')](),o);var inLinks=flowchartLayout[_0x425c('0x201')](this[_0x425c('0x232')][0x0][_0x425c('0x21a')]());for(var l1=0x0;l1<inLinks[_0x425c('0x17')];++l1){var link=inLinks[l1];if(link[_0x425c('0x8')]!=rootNode[_0x425c('0x220')]())this[_0x425c('0x235')](link,o);}}else for(var m=0x0;m<this[_0x425c('0x232')]['length'];++m){var mergeNode=this[_0x425c('0x232')][m];var inLinks=flowchartLayout[_0x425c('0x201')](mergeNode['getInLinks']());inLinks[_0x425c('0x124')](BOriginComparer(o));if(inLinks[_0x425c('0x17')]==0x2){var leftLink=inLinks[0x0];var rightLink=inLinks[0x1];if(this[_0x425c('0x234')]()){var left=this[_0x425c('0x23c')](rootNode,this[_0x425c('0x232')][0x0],o)-flowchartLayout[_0x425c('0x22c')]();var right=this[_0x425c('0x23d')](rootNode,this[_0x425c('0x232')][0x0],o)+flowchartLayout[_0x425c('0x22c')]();var rootLeft=Tools[_0x425c('0x1cb')](rootNode[_0x425c('0x220')](),o);var rootRight=Tools[_0x425c('0x1cc')](rootNode['getNode'](),o);var mergeLeft=Tools[_0x425c('0x1cb')](this[_0x425c('0x232')][0x0][_0x425c('0x220')](),o);var mergeRight=Tools[_0x425c('0x1cc')](this['mergeNodes'][0x0]['getNode'](),o);if(o==Orientation[_0x425c('0x19b')]){Tools[_0x425c('0x1ce')](leftLink,rootLeft,new Point(left,rootLeft['y']),new Point(left,mergeLeft['y']),mergeLeft);Tools['SetLinkPoints'](rightLink,rootRight,new Point(right,rootRight['y']),new Point(right,mergeRight['y']),mergeRight);}else{Tools['SetLinkPoints'](leftLink,rootLeft,new Point(rootLeft['x'],left),new Point(mergeLeft['x'],left),mergeLeft);Tools[_0x425c('0x1ce')](rightLink,rootRight,new Point(rootRight['x'],right),new Point(mergeRight['x'],right),mergeRight);}}else{var leftOrigin=leftLink[_0x425c('0x8')];var rightOrigin=rightLink['origin'];var leftLfarCenter=Tools[_0x425c('0x1c8')](leftOrigin,o);var rightLfarCenter=Tools[_0x425c('0x1c8')](rightOrigin,o);var root=rootNode[_0x425c('0x220')]();if(Tools['GetB'](leftLfarCenter,o)<Tools['GetBNear'](mergeNode['getNode'](),o)){var leftEnd=Tools[_0x425c('0x1cb')](mergeNode[_0x425c('0x220')](),o);var leftMiddle=new Point();if(o==Orientation[_0x425c('0x19b')])leftMiddle=new Point(leftLfarCenter['x'],leftEnd['y']);else leftMiddle=new Point(leftEnd['x'],leftLfarCenter['y']);Tools[_0x425c('0x1ce')](leftLink,leftLfarCenter,leftMiddle,leftEnd);}else if(leftLink[_0x425c('0x8')]==root){var leftEnd=Tools[_0x425c('0x1cb')](mergeNode['getNode'](),o);var linkPoints=Tools[_0x425c('0x1d3')](leftLink);var nextToLast=linkPoints[linkPoints[_0x425c('0x17')]-0x2];if(o==Orientation[_0x425c('0x19b')])nextToLast['y']=leftEnd['y'];else nextToLast['x']=leftEnd['x'];linkPoints[linkPoints['length']-0x2]=nextToLast;linkPoints[linkPoints[_0x425c('0x17')]-0x1]=leftEnd;}else if(leftLink[_0x425c('0x8')]!=root){var leftEnd=Tools['GetLNearCenter'](mergeNode[_0x425c('0x220')](),o);var h=0x0;if(o==Orientation[_0x425c('0x19b')])h=(leftEnd['y']+leftLfarCenter['y'])/0x2;else h=(leftEnd['x']+leftLfarCenter['x'])/0x2;if(o==Orientation['Vertical']){Tools['SetLinkPoints'](leftLink,leftLfarCenter,new Point(leftLfarCenter['x'],h),new Point(leftEnd['x'],h),leftEnd);}else{Tools[_0x425c('0x1ce')](leftLink,leftLfarCenter,new Point(h,leftLfarCenter['y']),new Point(h,leftEnd['y']),leftEnd);}}if(Tools[_0x425c('0x23b')](rightLfarCenter,o)>Tools[_0x425c('0x237')](mergeNode['getNode'](),o)){var rightEnd=Tools[_0x425c('0x1cc')](mergeNode['getNode'](),o);var rightMiddle=new Point();if(o==Orientation[_0x425c('0x19b')])rightMiddle=new Point(rightLfarCenter['x'],rightEnd['y']);else rightMiddle=new Point(rightEnd['x'],rightLfarCenter['y']);Tools[_0x425c('0x1ce')](rightLink,rightLfarCenter,rightMiddle,rightEnd);}else if(rightLink[_0x425c('0x8')]==root){var linkPoints=Tools[_0x425c('0x1d3')](rightLink);var nextToLast=linkPoints[linkPoints['length']-0x2];var rightEnd=Tools[_0x425c('0x23b')](nextToLast,o)<Tools[_0x425c('0x1d6')](mergeNode['getNode'](),o)?Tools[_0x425c('0x1cb')](mergeNode[_0x425c('0x220')](),o):Tools[_0x425c('0x1cc')](mergeNode['getNode'](),o);if(o==Orientation[_0x425c('0x19b')])nextToLast['y']=rightEnd['y'];else nextToLast['x']=rightEnd['x'];linkPoints[linkPoints[_0x425c('0x17')]-0x2]=nextToLast;linkPoints[linkPoints['length']-0x1]=rightEnd;}else if(rightLink[_0x425c('0x8')]!=root){var rightEnd=Tools[_0x425c('0x1c9')](mergeNode['getNode'](),o);var h=0x0;if(o==Orientation[_0x425c('0x19b')])h=(rightEnd['y']+rightLfarCenter['y'])/0x2;else h=(rightEnd['x']+rightLfarCenter['x'])/0x2;if(o==Orientation[_0x425c('0x19b')]){Tools['SetLinkPoints'](rightLink,rightLfarCenter,new Point(rightLfarCenter['x'],h),new Point(rightEnd['x'],h),rightEnd);}else{Tools[_0x425c('0x1ce')](rightLink,rightLfarCenter,new Point(h,rightLfarCenter['y']),new Point(h,rightEnd['y']),rightEnd);}}}}else{for(var i=0x0;i<inLinks[_0x425c('0x17')];++i){var link=inLinks[i];var origin=link['origin'];var destination=link[_0x425c('0x9')];var endB=(i+0x1)*Tools[_0x425c('0x22a')](destination,o)/(inLinks['length']+0x1)+Tools[_0x425c('0x1d6')](destination,o);var f=i<intDiv$1(inLinks[_0x425c('0x17')],0x2)?i+0x1:inLinks['length']-i;var hrzSegmentL=Tools['GetLNear'](destination,o)-f*offset/(inLinks[_0x425c('0x17')]/0x2+0x1);var startPoint=Tools[_0x425c('0x1c8')](origin,o);if(o==Orientation['Vertical']){Tools['SetLinkPoints'](link,startPoint,new Point(startPoint['x'],hrzSegmentL),new Point(endB,hrzSegmentL),new Point(endB,bounds(destination)[_0x425c('0x1ca')]()));}else{Tools[_0x425c('0x1ce')](link,startPoint,new Point(hrzSegmentL,startPoint['y']),new Point(hrzSegmentL,endB),new Point(bounds(destination)[_0x425c('0x82')](),endB));}}}}var backLinks=this['getBackLinks'](rootNode[_0x425c('0x21a')]());backLinks['sort'](LOriginComparer(o));for(var i=0x0;i<backLinks[_0x425c('0x17')];++i){var link=backLinks[i];var orect=bounds(link['origin']);var drect=bounds(link[_0x425c('0x9')]);var startB=Tools[_0x425c('0x22b')](link[_0x425c('0x8')],o);Tools['GetLCenter'](link[_0x425c('0x8')],o);var endL=Tools['GetLCenter'](link[_0x425c('0x9')],o);var vSegmentB=b-this[_0x425c('0x226')]()/0x2+this[_0x425c('0x21d')]()+(rootNode['getLoopDepth']()-0x1+i)*flowchartLayout[_0x425c('0x22c')]();if(o==Orientation[_0x425c('0x19b')]){Tools[_0x425c('0x1ce')](link,new Point(startB,orect[_0x425c('0x1bb')]()),new Point(startB,orect['bottom']()+offset/0x2),new Point(vSegmentB,orect[_0x425c('0x1bb')]()+offset/0x2),new Point(vSegmentB,endL),new Point(drect['right'](),endL));}else{Tools[_0x425c('0x1ce')](link,new Point(orect[_0x425c('0x74')](),startB),new Point(orect[_0x425c('0x74')]()+offset/0x2,startB),new Point(orect[_0x425c('0x74')]()+offset/0x2,vSegmentB),new Point(endL,vSegmentB),new Point(endL,drect[_0x425c('0x1bb')]()));}}if(mergeAdjusted){var maxB;for(var mi=0x0;mi<this[_0x425c('0x232')][_0x425c('0x17')];mi++){var fcn=this[_0x425c('0x232')][mi];var bf=Tools[_0x425c('0x237')](fcn,o);if(mi==0x0)maxB=bf;else maxB=Math[_0x425c('0xc0')](maxB,bf);}var expB=b+this[_0x425c('0x21c')]/0x2;if(expB<maxB)overflow=Math[_0x425c('0xc0')](overflow,maxB-expB);}if(overflow)this['arrangeOverflow']=overflow;this[_0x425c('0x223')]=maxL;return maxL;}[_0x425c('0x23e')](branches){var sortBuckets=new Map();for(var b=0x0;b<branches[_0x425c('0x17')];++b){var branch=branches[b];if(!this[_0x425c('0x230')][_0x425c('0xa7')](branch[_0x425c('0x21f')]()))continue;var merge=this[_0x425c('0x230')][_0x425c('0x79')](branch[_0x425c('0x21f')]());if(!sortBuckets[_0x425c('0xa7')](merge))sortBuckets[_0x425c('0xa4')](merge,[]);sortBuckets[_0x425c('0x79')](merge)[_0x425c('0x14')](branch);}var result=[];sortBuckets[_0x425c('0x15')](function(value){result=result[_0x425c('0x23f')](value);});for(var b=0x0;b<branches['length'];++b){var branch=branches[b];if(!this[_0x425c('0x230')]['has'](branch[_0x425c('0x21f')]()))result[_0x425c('0x14')](branch);}return result;}[_0x425c('0x224')](){if(this[_0x425c('0x232')]['length']>0x0)return this['mergeNodes'][0x0][_0x425c('0x224')]();return null;}[_0x425c('0x21a')](){return this[_0x425c('0x22e')][_0x425c('0x21a')]();}['add'](block){this['branches'][_0x425c('0x14')](block);super[_0x425c('0x5c')](block);}[_0x425c('0x1fd')](){var nodes=[];for(var m=0x0;m<this['mergeNodes'][_0x425c('0x17')];++m){var node=this[_0x425c('0x232')][m];nodes[_0x425c('0x14')](node['getNode']());}return nodes;}[_0x425c('0x229')](block){var branching=block instanceof FlowchartBranching?block:null;if(branching!=null&&this[_0x425c('0x232')][_0x425c('0xb')](branching[_0x425c('0x22e')]))return![];return!![];}[_0x425c('0x1f8')](mergeNode){if(!this[_0x425c('0x232')][_0x425c('0xb')](mergeNode))this[_0x425c('0x232')][_0x425c('0x14')](mergeNode);this[_0x425c('0x230')][_0x425c('0xa4')](this[_0x425c('0x1fa')],mergeNode);if(mergeNode['parentBlock']==null)mergeNode[_0x425c('0x200')]=this;if(this[_0x425c('0x1fa')]['destination']==mergeNode[_0x425c('0x220')]())this[_0x425c('0x22f')][_0x425c('0x14')](new EmptyBranch(this[_0x425c('0x214')],this['currentLink']));}['twoEmptyBranches'](){return this['branches'][_0x425c('0x17')]==0x2&&this[_0x425c('0x22f')][0x0]instanceof EmptyBranch&&this[_0x425c('0x22f')][0x1]instanceof EmptyBranch&&this['mergeNodes'][_0x425c('0x17')]==0x1;}[_0x425c('0x233')](){if(this[_0x425c('0x232')]['length']!=0x1)return null;var emptyBranches=0x0;var occupiedBranches=0x0;for(var b=0x0;b<this[_0x425c('0x22f')][_0x425c('0x17')];++b){var branch=this[_0x425c('0x22f')][b];if(branch instanceof EmptyBranch)emptyBranches++;else occupiedBranches++;}if(occupiedBranches!=0x1||emptyBranches>0x2||emptyBranches<0x1)return null;var desc=new CenteredBranchingDescriptor();for(var b=0x0;b<this[_0x425c('0x22f')][_0x425c('0x17')];++b){var branch=this['branches'][b];if(branch instanceof EmptyBranch){if(desc[_0x425c('0x239')]==null)desc[_0x425c('0x239')]=branch;else desc[_0x425c('0x23a')]=branch;}else{desc[_0x425c('0x22d')]=branch;}}return desc;}[_0x425c('0x23c')](node1,node2,o){if(o==Orientation[_0x425c('0x19b')]){return Math[_0x425c('0xbf')](bounds(node1[_0x425c('0x220')]())['left'](),bounds(node2[_0x425c('0x220')]())[_0x425c('0x82')]());}else{return Math[_0x425c('0xbf')](bounds(node1['getNode']())[_0x425c('0x1ca')](),bounds(node2[_0x425c('0x220')]())[_0x425c('0x1ca')]());}}[_0x425c('0x23d')](node1,node2,o){if(o==Orientation[_0x425c('0x19b')]){return Math[_0x425c('0xc0')](bounds(node1[_0x425c('0x220')]())[_0x425c('0x74')](),bounds(node2[_0x425c('0x220')]())[_0x425c('0x74')]());}else{return Math[_0x425c('0xc0')](bounds(node1['getNode']())[_0x425c('0x1bb')](),bounds(node2[_0x425c('0x220')]())[_0x425c('0x1bb')]());}}['getMergeNodes'](){return this['mergeNodes'];}}FlowchartBranching[_0x425c('0x1ee')]=[];class EmptyBranch extends FlowchartBlock{constructor(layout,link){super(layout);this[_0x425c('0x1fb')](link);}[_0x425c('0x1f0')](branchPadding,linkPadding,o){return 0x0;}[_0x425c('0x1ae')](b,l,offset,o){var oc=Tools[_0x425c('0x1cb')](this[_0x425c('0x21f')]()['origin'],o);var dc=Tools[_0x425c('0x1cb')](this[_0x425c('0x21f')]()['destination'],o);if(o==Orientation[_0x425c('0x19b')]){Tools[_0x425c('0x1ce')](this[_0x425c('0x21f')](),oc,newPoint(b,oc['y']),newPoint(b,dc['y']),dc);}else{Tools[_0x425c('0x1ce')](this[_0x425c('0x21f')](),oc,newPoint(oc['x'],b),newPoint(dc['x'],b),dc);}this[_0x425c('0x223')]=Tools[_0x425c('0x1db')](this[_0x425c('0x21f')]()[_0x425c('0x8')],o);return this[_0x425c('0x223')];}['getOutLinks'](){return null;}[_0x425c('0x21a')](){return null;}}function peek(stack){return stack[stack[_0x425c('0x17')]-0x1];}function intDiv$1(numerator,denominator){return(numerator-numerator%denominator)/denominator;}function acceptPath(points,o,d,nodes){var br=bounds(o);var dr=bounds(d);for(var p=0x1;p<points[_0x425c('0x17')]-0x1;p++){var point=points[p];if(br[_0x425c('0x240')](point))return![];if(dr['containsPoint'](point))return![];}for(var n=0x0;n<nodes[_0x425c('0x17')];n++){var node=nodes[n];if(node==o||node==d)continue;var rect=bounds(node);if(Geometry[_0x425c('0x241')](points,rect))return![];}return!![];}function evalPath(points,o,d,nodes){var penalty=0x0;var br=bounds(o);var dr=bounds(d);for(var p=0x1;p<points['length']-0x1;p++){var point=points[p];if(br[_0x425c('0x240')](point))penalty+=0x2;if(dr[_0x425c('0x240')](point))penalty+=0x2;}for(var n=0x0;n<nodes[_0x425c('0x17')];n++){var node=nodes[n];if(node==o||node==d)continue;var rect=bounds(node);if(Geometry[_0x425c('0x241')](points,rect))penalty+=0x1;}return penalty;}function badPath(link,layout){var p=link[_0x425c('0xd3')];if(p[_0x425c('0x17')]==0x2&&pathLen(p)>0x2*layout[_0x425c('0x1a9')]){if(!acceptPath(p,link[_0x425c('0x8')],link[_0x425c('0x9')],layout[_0x425c('0xa3')]['vertices']))return!![];}if(link['_fcl_multiMerge']&&pathLen(p)>3.3*layout[_0x425c('0x1a9')]){if(!acceptPath(p,link[_0x425c('0x8')],link[_0x425c('0x9')],layout[_0x425c('0xa3')][_0x425c('0xd4')]))return!![];}if(link['_fcl_multiMerge']&&p[_0x425c('0x17')]==0x3){if(!acceptPath(p,link[_0x425c('0x8')],link[_0x425c('0x9')],layout[_0x425c('0xa3')][_0x425c('0xd4')]))return!![];}return![];}function processed(link){if(!link[_0x425c('0x1cf')])return![];if(link[_0x425c('0xd3')]['length']==0x2){var ps=link[_0x425c('0xd3')][0x0];var pe=link['points'][0x1];if(ps['x']!=pe['x']&&ps['y']!=pe['y'])return![];}return!![];}function pathLen(points){var l=0x0;for(var p=0x0;p<points[_0x425c('0x17')]-0x1;p++){var p1=points[p];var p2=points[p+0x1];var dx=Math[_0x425c('0x20d')](p1['x']-p2['x']);var dy=Math[_0x425c('0x20d')](p1['y']-p2['y']);l+=dx+dy;}return l;}function longestLink(graph){var maxLen=0x0;var longest=null;for(var l=0x0;l<graph[_0x425c('0x0')]['length'];l++){var link=graph['edges'][l];var len=pathLen(link[_0x425c('0xd3')]);if(len>maxLen){maxLen=len;longest=link;}}return longest;}function countCrossings(graph,points,skip){var crossings=0x0;for(var l=0x0;l<graph['edges'][_0x425c('0x17')];l++){var link=graph['edges'][l];if(link==skip)continue;if(Geometry[_0x425c('0x242')](points,link[_0x425c('0xd3')]))crossings++;}return crossings;}function nearIncomingLinks(node,o){var rect=bounds(node);var topIn=[];for(var l=0x0;l<node[_0x425c('0x13')]['length'];l++){var link=node['inEdges'][l];var li=link[_0x425c('0xd3')][_0x425c('0x17')]-0x1;if(o==Orientation[_0x425c('0x19b')]){if(link[_0x425c('0xd3')][li]['y']==rect['y'])topIn['push'](link);}else{if(link[_0x425c('0xd3')][li]['x']==rect['x'])topIn[_0x425c('0x14')](link);}}return topIn;}function farOutgoingLinks(node,o){var rect=bounds(node);var bottomOut=[];for(var l=0x0;l<node[_0x425c('0x1')]['length'];l++){var link=node['outEdges'][l];var li=0x0;if(o==Orientation[_0x425c('0x19b')]){if(link[_0x425c('0xd3')][li]['y']==rect[_0x425c('0x1bb')]())bottomOut['push'](link);}else{if(link['points'][li]['x']==rect[_0x425c('0x74')]())bottomOut[_0x425c('0x14')](link);}}return bottomOut;}function sideIncomingLinks(node,o){var rect=bounds(node);var sideIn=[];for(var l=0x0;l<node['inEdges'][_0x425c('0x17')];l++){var link=node[_0x425c('0x13')][l];var li=link['points'][_0x425c('0x17')]-0x1;if(o==Orientation[_0x425c('0x19b')]){if(link[_0x425c('0xd3')][li]['x']==rect['right']())sideIn[_0x425c('0x14')](link);}else{if(link[_0x425c('0xd3')][li]['y']==rect[_0x425c('0x1bb')]())sideIn['push'](link);}}return sideIn;}function startPointsCoincide(links,o){for(var l=0x0;l<links[_0x425c('0x17')];l++){var link=links[l];for(var l2=l+0x1;l2<links[_0x425c('0x17')];l2++){var link2=links[l2];if(o==Orientation['Vertical']){if(link[_0x425c('0xd3')][0x0]['x']==link2[_0x425c('0xd3')][0x0]['x'])return!![];}else{if(link['points'][0x0]['y']==link2[_0x425c('0xd3')][0x0]['y'])return!![];}}}return![];}function endPointsCoincide(links,o){for(var l=0x0;l<links[_0x425c('0x17')];l++){var link=links[l];var li=link[_0x425c('0xd3')][_0x425c('0x17')]-0x1;for(var l2=l+0x1;l2<links[_0x425c('0x17')];l2++){var link2=links[l2];var l2i=link2[_0x425c('0xd3')][_0x425c('0x17')]-0x1;if(o==Orientation[_0x425c('0x19b')]){if(link[_0x425c('0xd3')][li]['x']==link2[_0x425c('0xd3')][l2i]['x'])return!![];}else{if(link[_0x425c('0xd3')][li]['y']==link2['points'][l2i]['y'])return!![];}}}return![];}function pullNearInPointsApart(links,o){var n=links[0x0][_0x425c('0x9')];var r=bounds(n);var c=r[_0x425c('0x1cd')]();var vert=o==Orientation[_0x425c('0x19b')];var sv=vert?{'x':c['x'],'y':c['y']-0x14}:{'x':c['x']-0x14,'y':c['y']};var ev={'x':c['x'],'y':c['y']};links['sort'](function(l1,l2){var s1=bounds(l1[_0x425c('0x8')])[_0x425c('0x1cd')]();var e1=bounds(l1[_0x425c('0x9')])[_0x425c('0x1cd')]();var s2=bounds(l2[_0x425c('0x8')])[_0x425c('0x1cd')]();var e2=bounds(l2[_0x425c('0x9')])[_0x425c('0x1cd')]();var a=Geometry[_0x425c('0x243')];var a1=a(sv,ev,s1,e1);var a2=a(sv,ev,s2,e2);return vert?a2-a1:a1-a2;});for(var i=0x0;i<links[_0x425c('0x17')];++i){var link=links[i];link[_0x425c('0x8')];var dest=link[_0x425c('0x9')];var endB=(i+0x1)*Tools[_0x425c('0x22a')](dest,o)/(links[_0x425c('0x17')]+0x1)+Tools[_0x425c('0x1d6')](dest,o);i<intDiv$1(links[_0x425c('0x17')],0x2)?i+0x1:links['length']-i;var li=link[_0x425c('0xd3')][_0x425c('0x17')]-0x1;var ni=li-0x1;if(vert)link[_0x425c('0xd3')][li]['x']=link[_0x425c('0xd3')][ni]['x']=endB;else link['points'][li]['y']=link['points'][ni]['y']=endB;}}function pullFarOutPointsApart(links,o){var n=links[0x0]['origin'];var r=bounds(n);var c=r[_0x425c('0x1cd')]();var vert=o==Orientation[_0x425c('0x19b')];var sv={'x':c['x'],'y':c['y']};var ev=vert?{'x':c['x'],'y':c['y']+0x14}:{'x':c['x']+0x14,'y':c['y']};links[_0x425c('0x124')](function(l1,l2){var s1=bounds(l1['origin'])[_0x425c('0x1cd')]();var e1=bounds(l1[_0x425c('0x9')])[_0x425c('0x1cd')]();var s2=bounds(l2['origin'])[_0x425c('0x1cd')]();var e2=bounds(l2[_0x425c('0x9')])['center']();var a=Geometry[_0x425c('0x243')];var a1=a(sv,ev,s1,e1);var a2=a(sv,ev,s2,e2);return vert?a1-a2:a2-a1;});for(var i=0x0;i<links['length'];++i){var link=links[i];var origin=link[_0x425c('0x8')];link[_0x425c('0x9')];var endB=(i+0x1)*Tools[_0x425c('0x22a')](origin,o)/(links[_0x425c('0x17')]+0x1)+Tools['GetBNear'](origin,o);i<intDiv$1(links[_0x425c('0x17')],0x2)?i+0x1:links[_0x425c('0x17')]-i;var li=0x0;var ni=0x1;if(vert)link['points'][li]['x']=link['points'][ni]['x']=endB;else link[_0x425c('0xd3')][li]['y']=link[_0x425c('0xd3')][ni]['y']=endB;}}function pullSideInPointsApart(links,o){var n=links[0x0][_0x425c('0x9')];var r=bounds(n);var c=r[_0x425c('0x1cd')]();var vert=o==Orientation['Vertical'];var sv=vert?{'x':c['x']-0x14,'y':c['y']}:{'x':c['x'],'y':c['y']-0x14};var ev={'x':c['x'],'y':c['y']};links[_0x425c('0x124')](function(l1,l2){var s1=bounds(l1['origin'])[_0x425c('0x1cd')]();var e1=l1['points'][l1[_0x425c('0xd3')][_0x425c('0x17')]-0x1];var s2=bounds(l2[_0x425c('0x8')])[_0x425c('0x1cd')]();var e2=l2['points'][l2[_0x425c('0xd3')]['length']-0x1];var a=Geometry[_0x425c('0x243')];var a1=a(sv,ev,s1,e1);var a2=a(sv,ev,s2,e2);return vert?a2-a1:a1-a2;});for(var i=0x0;i<links['length'];++i){var link=links[i];link[_0x425c('0x8')];var dest=link[_0x425c('0x9')];var endL=(i+0x1)*Tools['GetLength'](dest,o)/(links[_0x425c('0x17')]+0x1)+Tools[_0x425c('0x1d9')](dest,o);i<intDiv$1(links['length'],0x2)?i+0x1:links[_0x425c('0x17')]-i;var li=link['points'][_0x425c('0x17')]-0x1;var ni=li-0x1;if(vert)link['points'][li]['y']=link[_0x425c('0xd3')][ni]['y']=endL;else link['points'][li]['x']=link['points'][ni]['x']=endL;}}function compareX(s1,s2){var p1=s1[_0x425c('0xd3')][s1[_0x425c('0x1a')]];var p2=s2['points'][s2[_0x425c('0x1a')]];if(p1['x']<p2['x'])return-0x1;if(p1['x']>p2['x'])return 0x1;return 0x0;}function compareY(s1,s2){var p1=s1['points'][s1[_0x425c('0x1a')]];var p2=s2[_0x425c('0xd3')][s2['index']];if(p1['y']<p2['y'])return-0x1;if(p1['y']>p2['y'])return 0x1;return 0x0;}function compareV(s1,s2){var l1=s1[_0x425c('0xd3')][_0x425c('0x17')]-0x1;var l2=s2[_0x425c('0xd3')]['length']-0x1;var p1=s1[_0x425c('0x1a')]>0x0?s1[_0x425c('0xd3')][s1['index']-0x1]:s1[_0x425c('0xd3')][0x0];var p2=s2[_0x425c('0x1a')]>0x0?s2[_0x425c('0xd3')][s2[_0x425c('0x1a')]-0x1]:s2[_0x425c('0xd3')][0x0];var q1=s1[_0x425c('0xd3')][s1[_0x425c('0x1a')]];var q2=s2[_0x425c('0xd3')][s2[_0x425c('0x1a')]];var r1=s1[_0x425c('0x1a')]<l1?s1[_0x425c('0xd3')][s1[_0x425c('0x1a')]+0x1]:s1[_0x425c('0xd3')][l1];var r2=s2['index']<l2?s2[_0x425c('0xd3')][s2[_0x425c('0x1a')]+0x1]:s2[_0x425c('0xd3')][l2];var up1=q1['y']>r1['y'];var up2=q2['y']>r2['y'];var leftIn1=p1['x']>q1['x'];var leftIn2=p2['x']>q2['x'];if(leftIn1&&leftIn2){if(up1&&up2){if(q1['y']<q2['y'])return 0x1;if(q1['y']>q2['y'])return-0x1;}if(!up1&&!up2){if(q1['y']<q2['y'])return-0x1;if(q1['y']>q2['y'])return 0x1;}}if(up1&&up2){if(q1['y']<q2['y'])return-0x1;if(q1['y']>q2['y'])return 0x1;}if(!up1&&!up2){if(q1['y']<q2['y'])return 0x1;if(q1['y']>q2['y'])return-0x1;}if(up1&&!up2)return-0x1;if(!up1&&up2)return 0x1;if(p1['x']<p2['x'])return-0x1;if(p1['x']>p2['x'])return 0x1;return 0x0;}function compareH(s1,s2){var p1=s1[_0x425c('0xd3')][0x0];var p2=s2[_0x425c('0xd3')][0x0];if(p1['y']<p2['y'])return-0x1;if(p1['y']>p2['y'])return 0x1;return 0x0;}function coord(segment,horizontal){var point=segment[_0x425c('0xd3')][segment[_0x425c('0x1a')]];return horizontal?point['y']:point['x'];}function getSplitGroups(segments,horizontal){var graph=new Graph();var vertices=[];for(var i=0x0;i<segments[_0x425c('0x17')];i++){var segment=segments[i];var vertex=graph[_0x425c('0xe8')](null,segment);vertices[_0x425c('0x14')](vertex);}for(var i=0x0;i<segments[_0x425c('0x17')]-0x1;i++){for(var j=i+0x1;j<segments[_0x425c('0x17')];j++){var i1=horizontal?segments[i][_0x425c('0x244')]():segments[i][_0x425c('0x245')]();var i2=horizontal?segments[j]['xint']():segments[j][_0x425c('0x245')]();if(intervalsIntersect(i1,i2))graph[_0x425c('0xe6')](vertices[i],vertices[j]);}}var components=graph['getConnectedComponents']();var splitGroups=[];for(var i=0x0;i<components[_0x425c('0x17')];i++){var component=components[i];var group=[];for(var v=0x0;v<component[_0x425c('0xd4')][_0x425c('0x17')];v++){var vertex=component[_0x425c('0xd4')][v];group[_0x425c('0x14')](vertex['owner']);}splitGroups[_0x425c('0x14')](group);}return splitGroups;}function intervalsIntersect(i1,i2){if(i1[0x0]>=i2[0x1])return![];if(i2[0x0]>=i1[0x1])return![];return!![];}function originNodesArranged(links){for(var l=0x0;l<links['length'];++l){var link=links[l];if(!link[_0x425c('0x8')][_0x425c('0x221')])return![];}return!![];}function centerOfOriginNodes(links,o){var rect=Rect[_0x425c('0x5b')];for(var l=0x0;l<links[_0x425c('0x17')];++l){var link=links[l];var or=bounds(link[_0x425c('0x8')]);rect=rect[_0x425c('0x246')]()?or:or['union'](rect);}return o==Orientation[_0x425c('0x19b')]?rect['x']+rect[_0x425c('0xe9')]/0x2:rect['y']+rect[_0x425c('0xea')]/0x2;}function farOfOriginNodes(links,orientataion){var rect=Rect[_0x425c('0x5b')];for(var l=0x0;l<links[_0x425c('0x17')];++l){var link=links[l];var or=bounds(link[_0x425c('0x8')]);rect=rect[_0x425c('0x246')]()?or:or['union'](rect);}return orientataion==Orientation['Vertical']?rect[_0x425c('0x1bb')]():rect[_0x425c('0x74')]();}class FractalLayout extends Layout{constructor(){super();this[_0x425c('0x29')]=null;this[_0x425c('0x19a')]=MultipleGraphsPlacement['Horizontal'];}get[_0x425c('0x1a1')](){return![];}get[_0x425c('0x1a2')](){return![];}[_0x425c('0x1ae')](graph){var root=this[_0x425c('0x29')]&&this[_0x425c('0x29')][_0x425c('0x247')]&&graph[_0x425c('0xd4')][_0x425c('0xb')](this[_0x425c('0x29')]['vertex'])?this[_0x425c('0x29')]['vertex']:graph[_0x425c('0xd4')][0x0];root[_0x425c('0x248')]=!![];this[_0x425c('0x249')]=new Map();this[_0x425c('0x24a')](root);var rootCircle=this[_0x425c('0x249')][_0x425c('0x79')](root);this[_0x425c('0x24b')](rootCircle,{'x':0x0,'y':0x0},0x0);}[_0x425c('0x24a')](node){var w=node['width'];var h=node[_0x425c('0xea')];var branchCircle={};var radius=Math[_0x425c('0x24c')](w*w+h*h)/0x2;branchCircle[_0x425c('0x1df')]=node;this[_0x425c('0x249')][_0x425c('0xa4')](node,branchCircle);var childCircles=[];var radTotal=0x0;node[_0x425c('0x12')]()[_0x425c('0x15')](function(child){if(this['branchCircles']['has'](child))return;var childCircle=this[_0x425c('0x24a')](child);childCircles[_0x425c('0x14')](childCircle);radTotal+=childCircle[_0x425c('0x24d')];},this);childCircles[_0x425c('0x124')](compareRadius);if(!node[_0x425c('0x248')])radTotal=radTotal*0x48/0x47;var pointsInCircle=[{'x':-w/0x2,'y':-h/0x2},{'x':w/0x2,'y':-h/0x2},{'x':w/0x2,'y':h/0x2},{'x':-w/0x2,'y':h/0x2}];var currentAngle=0x0;if(!node[_0x425c('0x248')])currentAngle+=Math['PI']/0x48;var totalSweep=0x2*Math['PI'];for(var i=0x0;i<childCircles[_0x425c('0x17')];++i){var childCircle=childCircles[i];var sweepAngle=totalSweep*childCircle[_0x425c('0x24d')]/radTotal;if(sweepAngle>Math['PI']){sweepAngle=Math['PI'];totalSweep=Math['PI'];radTotal-=childCircle[_0x425c('0x24d')];}childCircle['sweepAngle']=sweepAngle;}for(var i=0x0;i<childCircles[_0x425c('0x17')];++i){var childCircle=childCircles[i];var halfSectorAngle=childCircle['sweepAngle']/0x2;currentAngle+=halfSectorAngle;childCircle[_0x425c('0x24e')]=currentAngle;currentAngle+=halfSectorAngle;var centerDelta=Math[_0x425c('0xc0')](radius+childCircle[_0x425c('0x24d')],childCircle[_0x425c('0x24d')]/Math[_0x425c('0x24f')](halfSectorAngle));childCircle[_0x425c('0x250')]=centerDelta;var farPointDelta=Math[_0x425c('0xc0')](radius+0x2*childCircle[_0x425c('0x24d')],childCircle['radius']+childCircle['radius']/Math[_0x425c('0x24f')](halfSectorAngle));var farPoint={'x':farPointDelta*Math['cos'](childCircle[_0x425c('0x24e')]),'y':farPointDelta*Math[_0x425c('0x24f')](childCircle[_0x425c('0x24e')])};pointsInCircle[_0x425c('0x14')](farPoint);}if(childCircles[_0x425c('0x17')]>0x0){var minCircle=Circle['fromPoints'](pointsInCircle);branchCircle[_0x425c('0x24d')]=minCircle['r'];branchCircle[_0x425c('0x251')]=minCircle['x'];branchCircle['centerY']=minCircle['y'];}else{branchCircle[_0x425c('0x24d')]=radius;branchCircle[_0x425c('0x251')]=branchCircle[_0x425c('0x252')]=0x0;}branchCircle['childCircles']=childCircles;return branchCircle;}[_0x425c('0x24b')](circle,center,angle){var parentLinkAngle=angle;if(!circle[_0x425c('0x1df')][_0x425c('0x248')])parentLinkAngle+=Math['PI']-circle['angle'];var nodePos={'x':center['x']-circle['centerX'],'y':center['y']-circle[_0x425c('0x252')]};circle[_0x425c('0x253')][_0x425c('0x15')](function(childCircle){var childCirclePos={'x':nodePos['x']+childCircle[_0x425c('0x250')]*Math[_0x425c('0x254')](childCircle['angle']),'y':nodePos['y']+childCircle[_0x425c('0x250')]*Math['sin'](childCircle['angle'])};childCirclePos=Geometry[_0x425c('0x255')](childCirclePos,center,parentLinkAngle);this['arrangeCircles'](childCircle,childCirclePos,parentLinkAngle);},this);nodePos=Geometry[_0x425c('0x255')](nodePos,center,parentLinkAngle);circle[_0x425c('0x1df')]['x']=nodePos['x'];circle[_0x425c('0x1df')]['y']=nodePos['y'];}[_0x425c('0x1bc')](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}get[_0x425c('0x197')](){return this[_0x425c('0x19c')];}set[_0x425c('0x197')](value){this[_0x425c('0x19c')]=value;}get[_0x425c('0x199')](){return this[_0x425c('0x19d')];}set[_0x425c('0x199')](value){this['_keepGroupLayout']=value;}get[_0x425c('0x29')](){return this[_0x425c('0x256')];}set[_0x425c('0x29')](value){this['_root']=value;}get[_0x425c('0x19a')](){return this['_multipleGraphsPlacement'];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}}function compareRadius(e1,e2){var r1=e1[_0x425c('0x24d')];var r2=e2[_0x425c('0x24d')];if(r1<r2)return 0x1;if(r1>r2)return-0x1;return 0x0;}class LayeredLayout extends Layout{constructor(){super();this[_0x425c('0x1a9')]=0x14;this[_0x425c('0x257')]=0x19;this[_0x425c('0x96')]=LayoutDirection['TopToBottom'];this[_0x425c('0x258')]=0x1;this[_0x425c('0x19a')]=MultipleGraphsPlacement[_0x425c('0x1e2')];this[_0x425c('0x259')]=![];}get[_0x425c('0x1a1')](){return![];}[_0x425c('0x1ae')](graph){graph[_0x425c('0xed')]();this[_0x425c('0xa3')]=graph;var reversedEdges=graph[_0x425c('0x1ed')]();for(var n=0x0;n<graph[_0x425c('0xd4')][_0x425c('0x17')];n++){var node=graph['vertices'][n];node[_0x425c('0x4')]=-0x1;node[_0x425c('0x25a')]=0x0;node[_0x425c('0x25b')]=0x0;node[_0x425c('0x25c')]=0x0;node[_0x425c('0x25d')]=0x0;node[_0x425c('0x25e')]=0x0;node['dPriority']=0x0;node['gridPosition']=0x0;node[_0x425c('0x25f')]=![];}for(var l=0x0;l<graph['edges'][_0x425c('0x17')];l++){var link=graph[_0x425c('0x0')][l];link[_0x425c('0x260')]=0x0;}var current=[];var layering=new Map();graph[_0x425c('0xd4')][_0x425c('0x15')](function(node){if(node[_0x425c('0x13')][_0x425c('0x17')]==0x0){layering[_0x425c('0xa4')](node,0x0);current['push'](node);}});while(current[_0x425c('0x17')]>0x0){var next=current[_0x425c('0x107')]();next[_0x425c('0x1')][_0x425c('0x15')](function(link){var dest=link[_0x425c('0x9')];if(!layering[_0x425c('0xa7')](dest))layering['set'](dest,layering[_0x425c('0x79')](next)+0x1);else layering[_0x425c('0xa4')](dest,Math['max'](layering[_0x425c('0x79')](dest),layering['get'](next)+0x1));if(!current[_0x425c('0xb')](dest))current[_0x425c('0x14')](dest);});}var layerCount=0x0;layering['forEach'](function(nodeLayer){layerCount=Math[_0x425c('0xc0')](layerCount,nodeLayer);});var sortedNodes=[];sortedNodes['push'](...layering[_0x425c('0xb2')]());sortedNodes[_0x425c('0x124')](function(o1,o2){var o1layer=layering[_0x425c('0x79')](o1);var o2layer=layering[_0x425c('0x79')](o2);if(o1layer<o2layer)return 0x1;if(o1layer>o2layer)return-0x1;return o1[_0x425c('0x1a')]-o2['index'];});for(var n=0x0;n<sortedNodes[_0x425c('0x17')];++n){var node=sortedNodes[n];var minLayer=Number[_0x425c('0xf6')];if(node[_0x425c('0x1')][_0x425c('0x17')]==0x0)continue;for(var l=0x0;l<node['outEdges'][_0x425c('0x17')];++l){var link=node[_0x425c('0x1')][l];minLayer=Math['min'](minLayer,layering[_0x425c('0x79')](link[_0x425c('0x9')]));}if(minLayer>0x1)layering[_0x425c('0xa4')](node,minLayer-0x1);}this[_0x425c('0x261')]=[];for(var i=0x0;i<layerCount+0x1;i++)this[_0x425c('0x261')]['push']([]);layering[_0x425c('0x15')](function(layer,node){node[_0x425c('0x4')]=layer;this[_0x425c('0x261')][layer][_0x425c('0x14')](node);},this);for(var l=0x0;l<this['layers'][_0x425c('0x17')];l++){var layer=this[_0x425c('0x261')][l];layer[_0x425c('0x124')](compareByIndex);for(var i=0x0;i<layer[_0x425c('0x17')];i++)layer[i][_0x425c('0x262')]=i;}this[_0x425c('0x263')]();this[_0x425c('0x264')]();this[_0x425c('0x265')]();this[_0x425c('0x266')]();this[_0x425c('0x267')]();this['dedummify']();reversedEdges['forEach'](function(e){if(e[_0x425c('0xd3')])e[_0x425c('0xd3')][_0x425c('0x23')]();});}[_0x425c('0x268')](m,n,minDist){var l=m['layer'];var i=m[_0x425c('0x269')];this['minDistances'][l][i]=minDist;}[_0x425c('0x26a')](m,n){var l=m[_0x425c('0x4')];var i1=m['indexInLayer'];var i2=n[_0x425c('0x269')];var min=Math[_0x425c('0xbf')](i1,i2);var max=Math['max'](i1,i2);var dist=0x0;for(var i=min;i<max;++i)dist+=this['minDistances'][l][i];return dist;}[_0x425c('0x26b')](){var nodeLeftClassRef={'value':null};var result=this['computeClasses'](nodeLeftClassRef,0x1);this[_0x425c('0x26c')]=nodeLeftClassRef[_0x425c('0xf5')];return result;}[_0x425c('0x26d')](){var nodeRightClassRef={'value':null};var result=this[_0x425c('0x26e')](nodeRightClassRef,-0x1);this[_0x425c('0x26f')]=nodeRightClassRef['value'];return result;}[_0x425c('0x26e')](nodeClassRef,d){var nodeClass=nodeClassRef[_0x425c('0xf5')]=new Map();var currentClass=0x0;for(var l=0x0;l<this[_0x425c('0x261')][_0x425c('0x17')];++l){currentClass=l;var layer=this[_0x425c('0x261')][l];for(var n=d==0x1?0x0:layer['length']-0x1;0x0<=n&&n<layer[_0x425c('0x17')];n+=d){var node=layer[n];if(!nodeClass[_0x425c('0xa7')](node)){nodeClass[_0x425c('0xa4')](node,currentClass);if(node[_0x425c('0x25f')]){this[_0x425c('0x270')](node)[_0x425c('0x15')](function(vnode){nodeClass[_0x425c('0xa4')](vnode,currentClass);});}}else{currentClass=nodeClass[_0x425c('0x79')](node);}}}var classes=[];for(var i=0x0;i<this['layers'][_0x425c('0x17')];i++)classes[_0x425c('0x14')](null);nodeClass[_0x425c('0x15')](function(classIndex,node){if(classes[classIndex]===null)classes[classIndex]=[];classes[classIndex][_0x425c('0x14')](node);});return classes;}['placeLeftToRight'](leftClasses){var leftPos=new Map();for(var c=0x0;c<this[_0x425c('0x261')][_0x425c('0x17')];++c){var classNodes=leftClasses[c];if(classNodes==null)continue;for(var n=0x0;n<classNodes['length'];n++){var node=classNodes[n];if(!leftPos[_0x425c('0xa7')](node))this['placeLeft'](node,leftPos,c);}var d=Number[_0x425c('0x271')];for(var n=0x0;n<classNodes['length'];n++){var node=classNodes[n];var rightSibling=this[_0x425c('0x272')](node);if(rightSibling!=null&&this[_0x425c('0x26c')][_0x425c('0x79')](rightSibling)!=c)d=Math[_0x425c('0xbf')](d,leftPos[_0x425c('0x79')](rightSibling)-leftPos[_0x425c('0x79')](node)-this[_0x425c('0x26a')](node,rightSibling));}if(d==Number[_0x425c('0x271')]){var D=[];for(var n=0x0;n<classNodes['length'];n++){var node=classNodes[n];var neighbors=[];neighbors[_0x425c('0x14')](...this[_0x425c('0x273')][_0x425c('0x79')](node));neighbors[_0x425c('0x14')](...this['downNodes'][_0x425c('0x79')](node));for(var e=0x0;e<neighbors[_0x425c('0x17')];e++){var neighbor=neighbors[e];if(this[_0x425c('0x26c')][_0x425c('0x79')](neighbor)<c)D[_0x425c('0x14')]({'diff':leftPos[_0x425c('0x79')](neighbor)-leftPos['get'](node),'n':neighbor});}}D[_0x425c('0x124')](function(a,b){var s=a['diff']-b[_0x425c('0x274')];if(s==0x0)s=compareByIndex(a['n'],b['n']);return s;});if(D['length']==0x0)d=0x0;else if(D[_0x425c('0x17')]%0x2==0x1)d=D[intDiv(D['length'],0x2)][_0x425c('0x274')];else d=(D[intDiv(D[_0x425c('0x17')],0x2)-0x1][_0x425c('0x274')]+D[intDiv(D['length'],0x2)][_0x425c('0x274')])/0x2;}for(var n=0x0;n<classNodes[_0x425c('0x17')];n++){var node=classNodes[n];leftPos[_0x425c('0xa4')](node,leftPos[_0x425c('0x79')](node)+d);}}return leftPos;}[_0x425c('0x275')](pos){for(var l=0x0;l<this['layers'][_0x425c('0x17')];++l){var s='';s+=_0x425c('0x276')+l+':\x20';var layer=this[_0x425c('0x261')][l];for(var n=0x0;n<layer[_0x425c('0x17')];++n)s+=pos[_0x425c('0x79')](layer[n])+'\x20';console['log'](s);}}[_0x425c('0x277')](rightClasses){var rightPos=new Map();for(var c=0x0;c<this[_0x425c('0x261')][_0x425c('0x17')];++c){var classNodes=rightClasses[c];if(classNodes==null)continue;for(var n=0x0;n<classNodes[_0x425c('0x17')];n++){var node=classNodes[n];if(!rightPos['has'](node))this[_0x425c('0x278')](node,rightPos,c);}var d=Number['NEGATIVE_INFINITY'];for(var n=0x0;n<classNodes['length'];n++){var node=classNodes[n];var leftSibling=this[_0x425c('0x279')](node);if(leftSibling!=null&&this['nodeRightClass'][_0x425c('0x79')](leftSibling)!=c)d=Math[_0x425c('0xc0')](d,rightPos[_0x425c('0x79')](leftSibling)-rightPos[_0x425c('0x79')](node)+this[_0x425c('0x26a')](leftSibling,node));}if(d==Number[_0x425c('0x27a')]){var D=[];for(var n=0x0;n<classNodes[_0x425c('0x17')];n++){var node=classNodes[n];var neighbors=[];neighbors['push'](...this[_0x425c('0x273')]['get'](node));neighbors['push'](...this[_0x425c('0x27b')][_0x425c('0x79')](node));for(var e=0x0;e<neighbors[_0x425c('0x17')];e++){var neighbor=neighbors[e];if(this[_0x425c('0x26f')]['get'](neighbor)<c)D[_0x425c('0x14')]({'diff':rightPos['get'](node)-rightPos[_0x425c('0x79')](neighbor),'n':neighbor});}}D[_0x425c('0x124')](function(a,b){var s=a[_0x425c('0x274')]-b[_0x425c('0x274')];if(s==0x0)s=compareByIndex(a['n'],b['n']);return s;});if(D[_0x425c('0x17')]==0x0)d=0x0;else if(D[_0x425c('0x17')]%0x2==0x1)d=D[intDiv(D[_0x425c('0x17')],0x2)][_0x425c('0x274')];else d=(D[intDiv(D['length'],0x2)-0x1][_0x425c('0x274')]+D[intDiv(D[_0x425c('0x17')],0x2)][_0x425c('0x274')])/0x2;}for(var n=0x0;n<classNodes[_0x425c('0x17')];n++){var node=classNodes[n];rightPos[_0x425c('0xa4')](node,rightPos[_0x425c('0x79')](node)+d);}}return rightPos;}[_0x425c('0x267')](){for(var l=0x0;l<this[_0x425c('0x261')][_0x425c('0x17')];++l){var layer=this[_0x425c('0x261')][l];layer[_0x425c('0x124')](compareByGridPos);}this[_0x425c('0x27c')]=[];for(var l=0x0;l<this['layers'][_0x425c('0x17')];++l){var layer=this[_0x425c('0x261')][l];this[_0x425c('0x27c')][l]=[];for(var n=0x0;n<layer['length'];++n){var node=layer[n];node[_0x425c('0x269')]=n;this[_0x425c('0x27c')][l][n]=this[_0x425c('0x1a9')];if(n<layer['length']-0x1){if(this[_0x425c('0x96')]%0x2==0x0)this[_0x425c('0x27c')][l][n]+=(node['width']+layer[n+0x1][_0x425c('0xe9')])/0x2;else this[_0x425c('0x27c')][l][n]+=(node['height']+layer[n+0x1][_0x425c('0xea')])/0x2;}}}this[_0x425c('0x27b')]=new Map();this['upNodes']=new Map();this[_0x425c('0xa3')][_0x425c('0xd4')][_0x425c('0x15')](function(node){this[_0x425c('0x27b')]['set'](node,[]);this['upNodes'][_0x425c('0xa4')](node,[]);},this);this[_0x425c('0xa3')][_0x425c('0x0')][_0x425c('0x15')](function(link){var origin=link['origin'];var dest=link['destination'];var down=null,up=null;if(origin['layer']>dest[_0x425c('0x4')]){down=link['origin'];up=link['destination'];}else{up=link[_0x425c('0x8')];down=link['destination'];}this[_0x425c('0x27b')][_0x425c('0x79')](up)[_0x425c('0x14')](down);this[_0x425c('0x273')][_0x425c('0x79')](down)[_0x425c('0x14')](up);},this);this['downNodes'][_0x425c('0x15')](function(list){list['sort'](compareByGridPos);});this[_0x425c('0x273')]['forEach'](function(list){list[_0x425c('0x124')](compareByGridPos);});for(var l=0x0;l<this[_0x425c('0x261')][_0x425c('0x17')]-0x1;++l){var layer=this['layers'][l];for(var u=0x0;u<layer[_0x425c('0x17')]-0x1;u++){var currNode=layer[u];if(!currNode[_0x425c('0x25f')])continue;var currDown=this['downNodes'][_0x425c('0x79')](currNode)[0x0];if(!currDown[_0x425c('0x25f')])continue;for(var n=u+0x1;n<layer[_0x425c('0x17')];++n){var node=layer[n];if(!node[_0x425c('0x25f')])continue;var downNode=this['downNodes'][_0x425c('0x79')](node)[0x0];if(!downNode['dummy'])continue;if(currDown[_0x425c('0x262')]>downNode['gridPosition']){var pos=currDown['gridPosition'];currDown['gridPosition']=downNode['gridPosition'];downNode['gridPosition']=pos;var i1=currDown[_0x425c('0x269')];var i2=downNode[_0x425c('0x269')];this['layers'][l+0x1][i1]=downNode;this[_0x425c('0x261')][l+0x1][i2]=currDown;currDown[_0x425c('0x269')]=i2;downNode[_0x425c('0x269')]=i1;}}}}var leftClasses=this[_0x425c('0x26b')]();var rightClasses=this[_0x425c('0x26d')]();var leftPos=this[_0x425c('0x27d')](leftClasses);var rightPos=this[_0x425c('0x277')](rightClasses);var x=new Map();this[_0x425c('0xa3')][_0x425c('0xd4')][_0x425c('0x15')](function(node){x[_0x425c('0xa4')](node,(leftPos[_0x425c('0x79')](node)+rightPos[_0x425c('0x79')](node))/0x2);});var order=new Map();var placed=new Map();for(var l=0x0;l<this[_0x425c('0x261')][_0x425c('0x17')];++l){var layer=this[_0x425c('0x261')][l];var sequenceStart=-0x1;for(var n=0x0;n<layer['length'];++n){var node=layer[n];order[_0x425c('0xa4')](node,0x0);placed[_0x425c('0xa4')](node,![]);if(node['dummy']){if(sequenceStart==-0x1)sequenceStart=n;else if(sequenceStart==n-0x1)sequenceStart=n;else{order[_0x425c('0xa4')](layer[sequenceStart],0x0);var sdx=x[_0x425c('0x79')](node)-x[_0x425c('0x79')](layer[sequenceStart]);if(Math[_0x425c('0x20d')](sdx-this[_0x425c('0x26a')](layer[sequenceStart],node))<0.0001)placed[_0x425c('0xa4')](layer[sequenceStart],!![]);else placed[_0x425c('0xa4')](layer[sequenceStart],![]);sequenceStart=n;}}}}var directions=[0x1,-0x1];directions[_0x425c('0x15')](function(d){var start=d==0x1?0x0:this[_0x425c('0x261')][_0x425c('0x17')]-0x1;d==0x1?this[_0x425c('0x261')][_0x425c('0x17')]-0x1:0x0;for(var l=start;0x0<=l&&l<this[_0x425c('0x261')]['length'];l+=d){var layer=this[_0x425c('0x261')][l];var virtualStartIndex=leftMostVirtualNode(layer);var virtualStart=null;var sequence=null;if(virtualStartIndex!=-0x1){virtualStart=layer[virtualStartIndex];sequence=[];for(var i=0x0;i<virtualStartIndex;i++)sequence[_0x425c('0x14')](layer[i]);}else{virtualStart=null;sequence=layer;}if(sequence[_0x425c('0x17')]>0x0){this['placeSequence'](x,null,virtualStart,d,sequence);for(var i=0x0;i<sequence[_0x425c('0x17')]-0x1;++i)this[_0x425c('0x268')](sequence[i],sequence[i+0x1],x[_0x425c('0x79')](sequence[i+0x1])-x[_0x425c('0x79')](sequence[i]));if(virtualStart!=null)this[_0x425c('0x268')](sequence[sequence[_0x425c('0x17')]-0x1],virtualStart,x['get'](virtualStart)-x[_0x425c('0x79')](sequence[sequence['length']-0x1]));}while(virtualStart!=null){var virtualEnd=nextVirtualNode(layer,virtualStart);if(virtualEnd==null){virtualStartIndex=virtualStart[_0x425c('0x269')];sequence=[];for(var i=virtualStartIndex+0x1;i<layer[_0x425c('0x17')];i++)sequence[_0x425c('0x14')](layer[i]);if(sequence[_0x425c('0x17')]>0x0){this[_0x425c('0x27e')](x,virtualStart,null,d,sequence);for(var i=0x0;i<sequence[_0x425c('0x17')]-0x1;++i)this['setMinDist'](sequence[i],sequence[i+0x1],x[_0x425c('0x79')](sequence[i+0x1])-x['get'](sequence[i]));this[_0x425c('0x268')](virtualStart,sequence[0x0],x[_0x425c('0x79')](sequence[0x0])-x['get'](virtualStart));}}else if(order[_0x425c('0x79')](virtualStart)==d){virtualStartIndex=virtualStart[_0x425c('0x269')];var virtualEndIndex=virtualEnd[_0x425c('0x269')];sequence=[];for(var i=virtualStartIndex+0x1;i<virtualEndIndex;i++)sequence['push'](layer[i]);if(sequence[_0x425c('0x17')]>0x0)this[_0x425c('0x27e')](x,virtualStart,virtualEnd,d,sequence);placed[_0x425c('0xa4')](virtualStart,!![]);}virtualStart=virtualEnd;}this[_0x425c('0x27f')](l,d,order,placed);}},this);var depth=this[_0x425c('0x19f')];for(var i=this['direction']<0x2?0x0:this[_0x425c('0x261')]['length']-0x1;this[_0x425c('0x96')]<0x2?i<this[_0x425c('0x261')]['length']:i>=0x0;i+=this[_0x425c('0x96')]<0x2?0x1:-0x1){var layer=this[_0x425c('0x261')][i];var height=Number[_0x425c('0x280')];for(var n=0x0;n<layer[_0x425c('0x17')];++n){var node=layer[n];if(this[_0x425c('0x96')]%0x2==0x0)height=Math[_0x425c('0xc0')](height,node[_0x425c('0xea')]);else height=Math[_0x425c('0xc0')](height,node[_0x425c('0xe9')]);}for(var n=0x0;n<layer[_0x425c('0x17')];++n){var node=layer[n];node[_0x425c('0x262')];if(this[_0x425c('0x96')]%0x2==0x0){node['x']=x[_0x425c('0x79')](node);node['y']=depth+height/0x2;}else{node['x']=depth+height/0x2;node['y']=x[_0x425c('0x79')](node);}}depth+=this[_0x425c('0x257')]+height;}}[_0x425c('0x27f')](l,d,order,placed){if(l+d<0x0||l+d>=this['layers']['length'])return;var prevBridge=null,prevBridgeTarget=null;var layer=this[_0x425c('0x261')][l+d];for(var n=0x0;n<layer[_0x425c('0x17')];++n){var nextBridge=layer[n];if(nextBridge['dummy']){var nextBridgeTarget=this[_0x425c('0x281')](nextBridge,l);if(nextBridgeTarget[_0x425c('0x25f')]){if(prevBridge!=null){var p=placed[_0x425c('0x79')](prevBridgeTarget);var clayer=this[_0x425c('0x261')][l];var i1=prevBridgeTarget[_0x425c('0x269')];var i2=nextBridgeTarget[_0x425c('0x269')];for(var i=i1+0x1;i<i2;++i){if(clayer[i][_0x425c('0x25f')])p=p&&placed[_0x425c('0x79')](clayer[i]);}if(p){order[_0x425c('0xa4')](prevBridge,d);var j1=prevBridge[_0x425c('0x269')];var j2=nextBridge[_0x425c('0x269')];for(var j=j1+0x1;j<j2;++j){if(layer[j][_0x425c('0x25f')])order[_0x425c('0xa4')](layer[j],d);}}}prevBridge=nextBridge;prevBridgeTarget=nextBridgeTarget;}}}}[_0x425c('0x281')](node,l){var neighbor=this[_0x425c('0x273')][_0x425c('0x79')](node)[0x0];if(neighbor[_0x425c('0x4')]==l)return neighbor;neighbor=this[_0x425c('0x27b')][_0x425c('0x79')](node)[0x0];if(neighbor[_0x425c('0x4')]==l)return neighbor;return null;}[_0x425c('0x27e')](x,virtualStart,virtualEnd,dir,sequence){if(sequence[_0x425c('0x17')]==0x1)this[_0x425c('0x282')](x,virtualStart,virtualEnd,dir,sequence[0x0]);if(sequence[_0x425c('0x17')]>0x1){var r=sequence[_0x425c('0x17')],t=intDiv(r,0x2);this[_0x425c('0x27e')](x,virtualStart,virtualEnd,dir,sequence[_0x425c('0x9d')](0x0,t));this[_0x425c('0x27e')](x,virtualStart,virtualEnd,dir,sequence[_0x425c('0x9d')](t));this['combineSequences'](x,virtualStart,virtualEnd,dir,sequence);}}['placeSingle'](x,virtualStart,virtualEnd,dir,node){var neighbors=dir==-0x1?this[_0x425c('0x27b')][_0x425c('0x79')](node):this[_0x425c('0x273')][_0x425c('0x79')](node);var n=neighbors['length'];if(n!=0x0){if(n%0x2==0x1)x[_0x425c('0xa4')](node,x[_0x425c('0x79')](neighbors[intDiv(n,0x2)]));else x[_0x425c('0xa4')](node,(x[_0x425c('0x79')](neighbors[intDiv(n,0x2)-0x1])+x[_0x425c('0x79')](neighbors[intDiv(n,0x2)]))/0x2);if(virtualStart!=null)x[_0x425c('0xa4')](node,Math['max'](x['get'](node),x[_0x425c('0x79')](virtualStart)+this[_0x425c('0x26a')](virtualStart,node)));if(virtualEnd!=null)x[_0x425c('0xa4')](node,Math[_0x425c('0xbf')](x['get'](node),x[_0x425c('0x79')](virtualEnd)-this[_0x425c('0x26a')](node,virtualEnd)));}}[_0x425c('0x283')](x,virtualStart,virtualEnd,dir,sequence){var r=sequence['length'],t=intDiv(r,0x2);var leftHeap=[];for(var i=0x0;i<t;++i){var c=0x0;var neighbors=dir==-0x1?this['downNodes']['get'](sequence[i]):this['upNodes'][_0x425c('0x79')](sequence[i]);for(var n=0x0;n<neighbors['length'];++n){var neighbor=neighbors[n];if(x[_0x425c('0x79')](neighbor)>=x['get'](sequence[i])){c++;}else{c--;leftHeap['push']({'k':x['get'](neighbor)+this[_0x425c('0x26a')](sequence[i],sequence[t-0x1]),'v':0x2});}}leftHeap['push']({'k':x[_0x425c('0x79')](sequence[i])+this['getMinDist'](sequence[i],sequence[t-0x1]),'v':c});}if(virtualStart!=null)leftHeap[_0x425c('0x14')]({'k':x[_0x425c('0x79')](virtualStart)+this['getMinDist'](virtualStart,sequence[t-0x1]),'v':Number[_0x425c('0xf6')]});leftHeap[_0x425c('0x124')](compareByPosDecreasing);var rightHeap=[];for(var i=t;i<r;++i){var c=0x0;var neighbors=dir==-0x1?this['downNodes'][_0x425c('0x79')](sequence[i]):this[_0x425c('0x273')][_0x425c('0x79')](sequence[i]);for(var n=0x0;n<neighbors['length'];++n){var neighbor=neighbors[n];if(x[_0x425c('0x79')](neighbor)<=x[_0x425c('0x79')](sequence[i])){c++;}else{c--;rightHeap[_0x425c('0x14')]({'k':x[_0x425c('0x79')](neighbor)-this[_0x425c('0x26a')](sequence[i],sequence[t]),'v':0x2});}}rightHeap[_0x425c('0x14')]({'k':x[_0x425c('0x79')](sequence[i])-this[_0x425c('0x26a')](sequence[i],sequence[t]),'v':c});}if(virtualEnd!=null)rightHeap[_0x425c('0x14')]({'k':x[_0x425c('0x79')](virtualEnd)-this[_0x425c('0x26a')](virtualEnd,sequence[t]),'v':Number['MAX_VALUE']});rightHeap[_0x425c('0x124')](compareByPosIncreasing);var leftRes=0x0,rightRes=0x0;var m=this['getMinDist'](sequence[t-0x1],sequence[t]);while(x[_0x425c('0x79')](sequence[t])-x['get'](sequence[t-0x1])<m){if(leftRes<rightRes){if(leftHeap[_0x425c('0x17')]==0x0){x[_0x425c('0xa4')](sequence[t-0x1],x[_0x425c('0x79')](sequence[t])-m);break;}else{var pair=leftHeap[_0x425c('0x107')]();leftRes=leftRes+pair['v'];x[_0x425c('0xa4')](sequence[t-0x1],pair['k']);x[_0x425c('0xa4')](sequence[t-0x1],Math[_0x425c('0xc0')](x[_0x425c('0x79')](sequence[t-0x1]),x[_0x425c('0x79')](sequence[t])-m));}}else{if(rightHeap[_0x425c('0x17')]==0x0){x['set'](sequence[t],x[_0x425c('0x79')](sequence[t-0x1])+m);break;}else{var pair=rightHeap[_0x425c('0x107')]();rightRes=rightRes+pair['v'];x['set'](sequence[t],pair['k']);x[_0x425c('0xa4')](sequence[t],Math[_0x425c('0xbf')](x[_0x425c('0x79')](sequence[t]),x[_0x425c('0x79')](sequence[t-0x1])+m));}}}for(var i=t-0x2;i>=0x0;i--)x[_0x425c('0xa4')](sequence[i],Math[_0x425c('0xbf')](x[_0x425c('0x79')](sequence[i]),x['get'](sequence[t-0x1])-this[_0x425c('0x26a')](sequence[i],sequence[t-0x1])));for(var i=t+0x1;i<r;i++)x[_0x425c('0xa4')](sequence[i],Math[_0x425c('0xc0')](x[_0x425c('0x79')](sequence[i]),x['get'](sequence[t])+this[_0x425c('0x26a')](sequence[i],sequence[t])));}[_0x425c('0x284')](node,leftPos,leftClass){var pos=Number[_0x425c('0x27a')];this['L'](node)[_0x425c('0x15')](function(v){var leftSibling=this[_0x425c('0x279')](v);if(leftSibling!=null&&this['nodeLeftClass'][_0x425c('0x79')](leftSibling)==this[_0x425c('0x26c')]['get'](v)){if(!leftPos['has'](leftSibling))this[_0x425c('0x284')](leftSibling,leftPos,leftClass);pos=Math[_0x425c('0xc0')](pos,leftPos['get'](leftSibling)+this[_0x425c('0x26a')](leftSibling,v));}},this);if(pos==Number[_0x425c('0x27a')])pos=0x0;this['L'](node)['forEach'](function(v){leftPos[_0x425c('0xa4')](v,pos);});}['placeRight'](node,rightPos,rightClass){var pos=Number[_0x425c('0x271')];this['L'](node)['forEach'](function(v){var rightSibling=this[_0x425c('0x272')](v);if(rightSibling!=null&&this[_0x425c('0x26f')][_0x425c('0x79')](rightSibling)==this['nodeRightClass'][_0x425c('0x79')](v)){if(!rightPos['has'](rightSibling))this['placeRight'](rightSibling,rightPos,rightClass);pos=Math[_0x425c('0xbf')](pos,rightPos[_0x425c('0x79')](rightSibling)-this[_0x425c('0x26a')](v,rightSibling));}},this);if(pos==Number[_0x425c('0x271')])pos=0x0;this['L'](node)['forEach'](function(v){rightPos[_0x425c('0xa4')](v,pos);});}[_0x425c('0x279')](node){var layer=this[_0x425c('0x261')][node[_0x425c('0x4')]];var i=node['indexInLayer'];if(i==0x0)return null;return layer[i-0x1];}[_0x425c('0x272')](node){var layer=this[_0x425c('0x261')][node[_0x425c('0x4')]];var i=node[_0x425c('0x269')];if(i==layer['length']-0x1)return null;return layer[i+0x1];}['L'](node){if(node[_0x425c('0x25f')])return this[_0x425c('0x270')](node);var list=[];list[_0x425c('0x14')](node);return list;}['layout'](){for(var l=0x0;l<this[_0x425c('0x261')]['length'];l++){var layer=this[_0x425c('0x261')][l];for(var ni=0x0;ni<layer[_0x425c('0x17')];ni++){var node=layer[ni];node[_0x425c('0x25e')]=node[_0x425c('0x25c')];node['dPriority']=node['dLinkCount'];}}var maxLayoutIterations=0x2;for(var it=0x0;it<maxLayoutIterations;it++){for(var i=this['layers'][_0x425c('0x17')]-0x1;i>=0x1;i--)this[_0x425c('0x285')](![],i);for(var i=0x0;i<this['layers'][_0x425c('0x17')]-0x1;i++)this[_0x425c('0x285')](!![],i);}var gridPos=Number['MAX_VALUE'];for(var l=0x0;l<this[_0x425c('0x261')]['length'];l++){var layer=this[_0x425c('0x261')][l];for(var ni=0x0;ni<layer['length'];ni++){var node=layer[ni];gridPos=Math[_0x425c('0xbf')](gridPos,node['gridPosition']);}}if(gridPos<0x0){for(var l=0x0;l<this[_0x425c('0x261')][_0x425c('0x17')];l++){var layer=this[_0x425c('0x261')][l];for(var ni=0x0;ni<layer[_0x425c('0x17')];ni++){var node=layer[ni];node['gridPosition']=node[_0x425c('0x262')]-gridPos;}}}}['layoutLayer'](down,layer){var iconsidered;var considered;if(down)considered=this[_0x425c('0x261')][iconsidered=layer+0x1];else considered=this[_0x425c('0x261')][iconsidered=layer-0x1];var sorted=[];for(var n=0x0;n<considered['length'];n++)sorted[_0x425c('0x14')](considered[n]);sorted[_0x425c('0x124')](function(n1,n2){var n1Priority=(n1[_0x425c('0x25e')]+n1[_0x425c('0x286')])/0x2;var n2Priority=(n2['uPriority']+n2['dPriority'])/0x2;if(Math[_0x425c('0x20d')](n1Priority-n2Priority)<0.0001)return compareByIndex(n1,n2);if(n1Priority<n2Priority)return 0x1;return-0x1;});sorted[_0x425c('0x15')](function(node){var nodeGridPos=node[_0x425c('0x262')];var nodeBaryCenter=calcBaryCenter(node);var nodePriority=(node['uPriority']+node['dPriority'])/0x2;if(Math['abs'](nodeGridPos-nodeBaryCenter)<0.0001){return;}if(Math[_0x425c('0x20d')](nodeGridPos-nodeBaryCenter)<0.25+0.0001){return;}if(nodeGridPos<nodeBaryCenter){while(nodeGridPos<nodeBaryCenter){if(!this['moveRight'](node,considered,nodePriority))break;nodeGridPos=node[_0x425c('0x262')];}}else{while(nodeGridPos>nodeBaryCenter){if(!this[_0x425c('0x287')](node,considered,nodePriority))break;nodeGridPos=node[_0x425c('0x262')];}}},this);if(iconsidered>0x0)this[_0x425c('0x288')](iconsidered-0x1);if(iconsidered<this[_0x425c('0x261')][_0x425c('0x17')]-0x1)this[_0x425c('0x289')](iconsidered+0x1);}[_0x425c('0x28a')](node,layer,priority){var index=layer[_0x425c('0x9c')](node);if(index==layer[_0x425c('0x17')]-0x1){node['gridPosition']=node[_0x425c('0x262')]+0.5;return!![];}var rightNode=layer[index+0x1];var rightNodePriority=(rightNode[_0x425c('0x25e')]+rightNode[_0x425c('0x286')])/0x2;if(rightNode['gridPosition']>node['gridPosition']+0x1){node[_0x425c('0x262')]=node[_0x425c('0x262')]+0.5;return!![];}if(rightNodePriority>priority||Math['abs'](rightNodePriority-priority)<0.0001)return![];if(this[_0x425c('0x28a')](rightNode,layer,priority)){node['gridPosition']=node[_0x425c('0x262')]+0.5;return!![];}return![];}['moveLeft'](node,layer,priority){var index=layer[_0x425c('0x9c')](node);if(index==0x0){node['gridPosition']=node[_0x425c('0x262')]-0.5;return!![];}var leftNode=layer[index-0x1];var leftNodePriority=(leftNode[_0x425c('0x25e')]+leftNode['dPriority'])/0x2;if(leftNode['gridPosition']<node['gridPosition']-0x1){node[_0x425c('0x262')]=node[_0x425c('0x262')]-0.5;return!![];}if(leftNodePriority>priority||Math[_0x425c('0x20d')](leftNodePriority-priority)<0.0001)return![];if(this[_0x425c('0x287')](leftNode,layer,priority)){node[_0x425c('0x262')]=node[_0x425c('0x262')]-0.5;return!![];}return![];}[_0x425c('0x28b')](node,link){this[_0x425c('0x28c')][_0x425c('0xa4')](node,link);if(!this[_0x425c('0x28d')][_0x425c('0xa7')](link))this['linkToNodeMap'][_0x425c('0xa4')](link,[]);this[_0x425c('0x28d')][_0x425c('0x79')](link)['push'](node);}[_0x425c('0x270')](node){return this[_0x425c('0x28d')][_0x425c('0x79')](this['nodeToLinkMap']['get'](node));}[_0x425c('0x263')](){this[_0x425c('0x28d')]=new Map();this[_0x425c('0x28c')]=new Map();var links=this[_0x425c('0xa3')][_0x425c('0x0')][_0x425c('0x9d')](0x0);for(var l=0x0;l<links[_0x425c('0x17')];l++){var link=links[l];var o=link[_0x425c('0x8')];var d=link['destination'];var oLayer=o[_0x425c('0x4')];var dLayer=d[_0x425c('0x4')];var oPos=o[_0x425c('0x262')];var dPos=d[_0x425c('0x262')];var step=(dPos-oPos)/Math['abs'](dLayer-oLayer);var p=o;if(oLayer-dLayer>0x1){for(var i=oLayer-0x1;i>dLayer;i--){var newNode=new Vertex();newNode['x']=o['x'];newNode['y']=o['y'];newNode[_0x425c('0xe9')]=o[_0x425c('0xe9')]/0x64;newNode['height']=o[_0x425c('0xea')]/0x64;var layer=this[_0x425c('0x261')][i];var pos=(i-dLayer)*step+oPos;if(pos>layer[_0x425c('0x17')])pos=layer['length'];if(oPos>=this['layers'][oLayer]['length']-0x1&&dPos>=this['layers'][dLayer]['length']-0x1)pos=layer[_0x425c('0x17')];else if(oPos==0x0&&dPos==0x0)pos=0x0;newNode['layer']=i;newNode[_0x425c('0x25a')]=0x0;newNode[_0x425c('0x25b')]=0x0;newNode[_0x425c('0x25c')]=0x0;newNode[_0x425c('0x25d')]=0x0;newNode[_0x425c('0x262')]=pos;newNode['dummy']=!![];layer['splice'](pos,0x0,newNode);for(var r=pos+0x1;r<layer[_0x425c('0x17')];r++){var node=layer[r];node[_0x425c('0x262')]=node[_0x425c('0x262')]+0x1;}var newLink=new Edge(p,newNode);newLink['dummificationLevel']=0x0;p=newNode;this['graph']['vertices'][_0x425c('0x14')](newNode);this[_0x425c('0xa3')][_0x425c('0xad')](newLink);newNode[_0x425c('0x1a')]=this['graph'][_0x425c('0xd4')][_0x425c('0x17')]-0x1;this['mapVirtualNode'](newNode,link);}link[_0x425c('0x1f')](p);link[_0x425c('0x260')]=oLayer-dLayer-0x1;}if(oLayer-dLayer<-0x1){for(var i=oLayer+0x1;i<dLayer;i++){var newNode=new Vertex();newNode['x']=o['x'];newNode['y']=o['y'];newNode[_0x425c('0xe9')]=o[_0x425c('0xe9')]/0x64;newNode[_0x425c('0xea')]=o[_0x425c('0xea')]/0x64;var layer=this[_0x425c('0x261')][i];var pos=(i-oLayer)*step+oPos;if(pos>layer[_0x425c('0x17')])pos=layer['length'];if(oPos>=this['layers'][oLayer][_0x425c('0x17')]-0x1&&dPos>=this[_0x425c('0x261')][dLayer][_0x425c('0x17')]-0x1)pos=layer['length'];else if(oPos==0x0&&dPos==0x0)pos=0x0;newNode['layer']=i;newNode[_0x425c('0x25a')]=0x0;newNode[_0x425c('0x25b')]=0x0;newNode['uLinkCount']=0x0;newNode[_0x425c('0x25d')]=0x0;newNode['gridPosition']=pos;newNode[_0x425c('0x25f')]=!![];pos=pos&pos;layer[_0x425c('0xa0')](pos,0x0,newNode);for(var r=pos+0x1;r<layer[_0x425c('0x17')];r++){var node=layer[r];node[_0x425c('0x262')]=node[_0x425c('0x262')]+0x1;}var newLink=new Edge(p,newNode);newLink['dummificationLevel']=0x0;p=newNode;this[_0x425c('0xa3')][_0x425c('0xd4')]['push'](newNode);this[_0x425c('0xa3')]['addEdge'](newLink);newNode[_0x425c('0x1a')]=this[_0x425c('0xa3')][_0x425c('0xd4')][_0x425c('0x17')]-0x1;this[_0x425c('0x28b')](newNode,link);}link['changeOrigin'](p);link[_0x425c('0x260')]=dLayer-oLayer-0x1;}}}['dedummify'](){var dedum=!![];while(dedum){dedum=![];for(var l=0x0;l<this[_0x425c('0xa3')][_0x425c('0x0')][_0x425c('0x17')];l++){var link=this['graph'][_0x425c('0x0')][l];if(link[_0x425c('0x260')]==0x0)continue;var points=[];points[_0x425c('0xa0')](0x0,0x0,{'x':link[_0x425c('0x9')]['x'],'y':link[_0x425c('0x9')]['y']});points[_0x425c('0xa0')](0x0,0x0,{'x':link[_0x425c('0x8')]['x'],'y':link['origin']['y']});var temp=link;var dummificationLevel=link[_0x425c('0x260')];for(var d=0x0;d<dummificationLevel;d++){var node=temp[_0x425c('0x8')];var prevLink=node[_0x425c('0x13')][0x0];points['splice'](0x0,0x0,{'x':prevLink[_0x425c('0x8')]['x'],'y':prevLink[_0x425c('0x8')]['y']});temp=prevLink;}link[_0x425c('0x1f')](temp[_0x425c('0x8')]);link[_0x425c('0x260')]=0x0;link[_0x425c('0xd3')]=points;dedum=!![];break;}}}[_0x425c('0x264')](){var moves=-0x1;var maxIterations=0x3;var iter=0x0;while(moves!=0x0){if(iter++>maxIterations)break;moves=0x0;var down=this[_0x425c('0x259')];for(var i=this[_0x425c('0x261')][_0x425c('0x17')]-0x1;i>=0x1;i--)moves+=this['minimizeCrossingsDir'](down,i);for(var i=0x0;i<this[_0x425c('0x261')][_0x425c('0x17')]-0x1;i++)moves+=this[_0x425c('0x28e')](!down,i);}}['calcUpData'](layer){if(layer==0x0)return;var considered=this[_0x425c('0x261')][layer];var upLayer=new Set();var temp=this[_0x425c('0x261')][layer-0x1];for(var i=0x0;i<temp[_0x425c('0x17')];i++)upLayer['add'](temp[i]);for(var i=0x0;i<considered['length'];i++){var node=considered[i];var sum=0x0;var total=0x0;for(var l=0x0;l<node[_0x425c('0x13')][_0x425c('0x17')];l++){var link=node[_0x425c('0x13')][l];if(upLayer[_0x425c('0xa7')](link['origin'])){total++;sum+=link['origin']['gridPosition'];}}for(var l=0x0;l<node['outEdges'][_0x425c('0x17')];l++){var link=node[_0x425c('0x1')][l];if(upLayer[_0x425c('0xa7')](link[_0x425c('0x9')])){total++;sum+=link[_0x425c('0x9')][_0x425c('0x262')];}}if(total>0x0){node['uBaryCenter']=sum/total;node['uLinkCount']=total;}else{node[_0x425c('0x25a')]=i;node[_0x425c('0x25c')]=0x0;}}}[_0x425c('0x288')](layer){if(layer==this[_0x425c('0x261')][_0x425c('0x17')]-0x1)return;var considered=this[_0x425c('0x261')][layer];var downLayer=new Set();var temp=this[_0x425c('0x261')][layer+0x1];for(var i=0x0;i<temp['length'];i++)downLayer[_0x425c('0x5c')](temp[i]);for(var i=0x0;i<considered[_0x425c('0x17')];i++){var node=considered[i];var sum=0x0;var total=0x0;for(var l=0x0;l<node[_0x425c('0x13')]['length'];l++){var link=node[_0x425c('0x13')][l];if(downLayer['has'](link['origin'])){total++;sum+=link[_0x425c('0x8')][_0x425c('0x262')];}}for(var l=0x0;l<node[_0x425c('0x1')]['length'];l++){var link=node[_0x425c('0x1')][l];if(downLayer[_0x425c('0xa7')](link[_0x425c('0x9')])){total++;sum+=link[_0x425c('0x9')][_0x425c('0x262')];}}if(total>0x0){node[_0x425c('0x25b')]=sum/total;node[_0x425c('0x25d')]=total;}else{node['dBaryCenter']=i;node[_0x425c('0x25d')]=0x0;}}}[_0x425c('0x28e')](down,layer){var iconsidered;var considered;if(down)considered=this[_0x425c('0x261')][iconsidered=layer+0x1];else considered=this[_0x425c('0x261')][iconsidered=layer-0x1];var presorted=considered[_0x425c('0x9d')](0x0);if(down)this[_0x425c('0x289')](iconsidered);else this[_0x425c('0x288')](iconsidered);considered[_0x425c('0x124')](function(n1,n2){var n1BaryCenter=calcBaryCenter(n1);var n2BaryCenter=calcBaryCenter(n2);if(Math['abs'](n1BaryCenter-n2BaryCenter)<0.0001){if(n1[_0x425c('0x16')]()==n2[_0x425c('0x16')]())return compareByIndex(n1,n2);else if(n1[_0x425c('0x16')]()<n2[_0x425c('0x16')]())return 0x1;return-0x1;}var compareValue=(n2BaryCenter-n1BaryCenter)*0x3e8;if(compareValue>0x0)return-0x1;else if(compareValue<0x0)return 0x1;return compareByIndex(n1,n2);});var moves=0x0;for(var i=0x0;i<considered[_0x425c('0x17')];i++)if(considered[i]!=presorted[i])moves++;if(moves>0x0){var inode=0x0;for(var i=0x0;i<considered[_0x425c('0x17')];i++){var node=considered[i];node[_0x425c('0x262')]=inode++;}}return moves;}[_0x425c('0x265')](){var maxIterations=this[_0x425c('0x258')];var iter=0x0;while(!![]){if(iter++>maxIterations)break;var downwards=iter%0x4<=0x1;var secondPass=iter%0x4==0x1;for(var l=downwards?0x0:this['layers'][_0x425c('0x17')]-0x1;downwards?l<=this[_0x425c('0x261')][_0x425c('0x17')]-0x1:l>=0x0;l+=downwards?0x1:-0x1){var layer=this[_0x425c('0x261')][l];var hasSwapped=![];var calcCrossings=!![];var memCrossings=0x0;for(var n=0x0;n<layer[_0x425c('0x17')]-0x1;n++){var up=0x0;var down=0x0;var crossBefore=0x0;if(calcCrossings){if(l!=0x0)up=this['countCrossings'](l-0x1,l);if(l!=this[_0x425c('0x261')][_0x425c('0x17')]-0x1)down=this[_0x425c('0x28f')](l,l+0x1);if(downwards)up*=0x2;else down*=0x2;crossBefore=up+down;}else{crossBefore=memCrossings;}if(crossBefore==0x0)continue;var node1=layer[n];var node2=layer[n+0x1];var node1GridPos=node1[_0x425c('0x262')];var node2GridPos=node2[_0x425c('0x262')];layer[n]=node2;layer[n+0x1]=node1;node1[_0x425c('0x262')]=node2GridPos;node2[_0x425c('0x262')]=node1GridPos;up=0x0;if(l!=0x0)up=this[_0x425c('0x28f')](l-0x1,l);down=0x0;if(l!=this[_0x425c('0x261')]['length']-0x1)down=this[_0x425c('0x28f')](l,l+0x1);if(downwards)up*=0x2;else down*=0x2;var crossAfter=up+down;var revert=![];if(secondPass)revert=crossAfter>=crossBefore;else revert=crossAfter>crossBefore;if(revert){node1=layer[n];node2=layer[n+0x1];node1GridPos=node1['gridPosition'];node2GridPos=node2[_0x425c('0x262')];layer[n]=node2;layer[n+0x1]=node1;node1[_0x425c('0x262')]=node2GridPos;node2[_0x425c('0x262')]=node1GridPos;memCrossings=crossBefore;calcCrossings=![];}else{hasSwapped=!![];calcCrossings=!![];}}if(hasSwapped){if(l!=this[_0x425c('0x261')][_0x425c('0x17')]-0x1)this[_0x425c('0x289')](l+0x1);if(l!=0x0)this[_0x425c('0x288')](l-0x1);}}}}[_0x425c('0x28f')](ulayer,dlayer){var crossings=0x0;var uLayer=new Set();var temp1=this[_0x425c('0x261')][ulayer];for(var i=0x0;i<temp1[_0x425c('0x17')];i++)uLayer[_0x425c('0x5c')](temp1[i]);var dLayer=new Set();var temp2=this[_0x425c('0x261')][dlayer];for(var i=0x0;i<temp2[_0x425c('0x17')];i++)dLayer['add'](temp2[i]);var dlinks=new Set();var links=[];var temp=[];uLayer[_0x425c('0x15')](function(node){temp['push'](...node[_0x425c('0x13')]);temp[_0x425c('0x14')](...node[_0x425c('0x1')]);});for(var ti=0x0;ti<temp['length'];ti++){var link=temp[ti];if(uLayer[_0x425c('0xa7')](link[_0x425c('0x8')])&&dLayer[_0x425c('0xa7')](link['destination'])){dlinks['add'](link);links['push'](link);}else if(dLayer[_0x425c('0xa7')](link[_0x425c('0x8')])&&uLayer[_0x425c('0xa7')](link[_0x425c('0x9')])){links[_0x425c('0x14')](link);}}for(var l1=0x0;l1<links[_0x425c('0x17')];l1++){var link1=links[l1];for(var l2=0x0;l2<links[_0x425c('0x17')];l2++){if(l1==l2)continue;var link2=links[l2];var n11,n12;var n21,n22;if(dlinks[_0x425c('0xa7')](link1)){n11=link1[_0x425c('0x8')];n12=link1[_0x425c('0x9')];}else{n11=link1[_0x425c('0x9')];n12=link1[_0x425c('0x8')];}if(dlinks[_0x425c('0xa7')](link2)){n21=link2['origin'];n22=link2[_0x425c('0x9')];}else{n21=link2[_0x425c('0x9')];n22=link2[_0x425c('0x8')];}var n11gp=n11[_0x425c('0x262')];var n12gp=n12[_0x425c('0x262')];var n21gp=n21[_0x425c('0x262')];var n22gp=n22[_0x425c('0x262')];if((n11gp-n21gp)*(n12gp-n22gp)<0x0)crossings++;}}return crossings/0x2;}['getType'](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}get[_0x425c('0x1a9')](){return this['_nodeDistance'];}set[_0x425c('0x1a9')](value){this[_0x425c('0x1c0')]=value;}get['layerDistance'](){return this[_0x425c('0x290')];}set[_0x425c('0x257')](value){this[_0x425c('0x290')]=value;}get[_0x425c('0x96')](){return this['_direction'];}set[_0x425c('0x96')](value){this[_0x425c('0x1c1')]=value;}get[_0x425c('0x258')](){return this[_0x425c('0x291')];}set[_0x425c('0x258')](value){this[_0x425c('0x291')]=value;}get[_0x425c('0x197')](){return this[_0x425c('0x19c')];}set[_0x425c('0x197')](value){this['_anchoring']=value;}get[_0x425c('0x199')](){return this[_0x425c('0x19d')];}set['keepGroupLayout'](value){this[_0x425c('0x19d')]=value;}get[_0x425c('0x19a')](){return this[_0x425c('0x19e')];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}}function nextVirtualNode(layer,node){var nodeIndex=node[_0x425c('0x269')];for(var i=nodeIndex+0x1;i<layer[_0x425c('0x17')];++i)if(layer[i][_0x425c('0x25f')])return layer[i];return null;}function calcBaryCenter(node){var uLinkCount=node[_0x425c('0x25c')];var dLinkCount=node[_0x425c('0x25d')];var uBaryCenter=node[_0x425c('0x25a')];var dBaryCenter=node[_0x425c('0x25b')];if(uLinkCount>0x0&&dLinkCount>0x0)return(uBaryCenter+dBaryCenter)/0x2;if(uLinkCount>0x0)return uBaryCenter;if(dLinkCount>0x0)return dBaryCenter;return 0x0;}function compareByGridPos(x,y){if(x[_0x425c('0x262')]<y[_0x425c('0x262')])return-0x1;if(x[_0x425c('0x262')]>y[_0x425c('0x262')])return 0x1;return compareByIndex(x,y);}function compareByPosIncreasing(x,y){if(x['k']<y['k'])return-0x1;if(x['k']>y['k'])return 0x1;return 0x0;}function compareByPosDecreasing(x,y){if(x['k']<y['k'])return 0x1;if(x['k']>y['k'])return-0x1;return 0x0;}function leftMostVirtualNode(layer){for(var c=0x0;c<layer[_0x425c('0x17')];c++){if(layer[c][_0x425c('0x25f')])return c;}return-0x1;}function compareByIndex(o1,o2){var i1=o1[_0x425c('0x1a')];var i2=o2[_0x425c('0x1a')];if(i1<i2)return-0x1;if(i1>i2)return 0x1;return 0x0;}function intDiv(numerator,denominator){return(numerator-numerator%denominator)/denominator;}class SpringLayout extends Layout{constructor(){super();this[_0x425c('0x1a9')]=0x1e;this[_0x425c('0x292')]=0x12c;this[_0x425c('0x293')]=![];this[_0x425c('0x294')]=0x0;this[_0x425c('0x295')]=0x0;this['multipleGraphsPlacement']=MultipleGraphsPlacement[_0x425c('0x1e2')];}get['setsLinkEndPoints'](){return![];}get[_0x425c('0x1a3')](){return![];}[_0x425c('0x1ae')](graph){this[_0x425c('0x294')]=this[_0x425c('0x1a9')]*0x9;this[_0x425c('0x295')]=this[_0x425c('0x294')];this['graph']=graph;var autoSize=calcAutoFrame(graph,averageNodeSize(graph),0x1,0x4);this[_0x425c('0xe9')]=autoSize[_0x425c('0xe9')];this[_0x425c('0xea')]=autoSize[_0x425c('0xea')];for(var step=0x0;step<this[_0x425c('0x292')];step++){this[_0x425c('0x293')]=step>=this['iterations']*0x3/0x4;graph[_0x425c('0xd4')][_0x425c('0x15')](function(v){this[_0x425c('0x296')](v);},this);graph[_0x425c('0x0')][_0x425c('0x15')](function(e){this[_0x425c('0x297')](e);},this);graph['vertices'][_0x425c('0x15')](function(v){this[_0x425c('0x298')](v);},this);this[_0x425c('0x295')]=this[_0x425c('0x293')]?this[_0x425c('0x294')]/0x1e:this['initialTemperature']*(0x1-step/this[_0x425c('0x292')]/0x2);}}[_0x425c('0x299')](v,radius){var a=Math[_0x425c('0x29a')]()*0x2*Math['PI'];var l=radius*Math[_0x425c('0x29a')]();if(l==0x0)l=radius/0x2;v['x']+=l*Math[_0x425c('0x254')](a);v['y']-=l*Math[_0x425c('0x24f')](a);}[_0x425c('0x29b')](distance,desiredDistance,v1,v2){var a=0x0;if(this[_0x425c('0x293')]){var vx=v1['x']-v2['x'];var vy=v1['y']-v2['y'];var r1x=v1[_0x425c('0xe9')]/0x2;var r1y=v1[_0x425c('0xea')]/0x2;var r2x=v2['width']/0x2;var r2y=v2[_0x425c('0xea')]/0x2;a=vx*vx/Math[_0x425c('0x29c')](r1x+r2x+desiredDistance,0x2)+vy*vy/Math[_0x425c('0x29c')](r1y+r2y+desiredDistance,0x2);}else{a=distance*distance/desiredDistance/desiredDistance;}return a*0x4/0x3;}['repulsion'](distance,desiredDistance,v1,v2){return 0x1/this['attraction'](distance,desiredDistance,v1,v2);}[_0x425c('0x296')](v){v['dx']=0x0;v['dy']=0x0;var desiredDist=this['nodeDistance'];this['graph']['vertices'][_0x425c('0x15')](function(v2){if(v2==v)return;while(v['x']==v2['x']&&v['y']==v2['y'])this[_0x425c('0x299')](v2,desiredDist/0x4);var vx=v['x']-v2['x'];var vy=v['y']-v2['y'];var distance=Math[_0x425c('0x24c')](vx*vx+vy*vy);var r=this[_0x425c('0x29d')](distance,desiredDist,v,v2);v['dx']+=vx/distance*r;v['dy']+=vy/distance*r;},this);}['calcSpringForce'](e){var v1=e[_0x425c('0x8')];var v2=e[_0x425c('0x9')];var desiredDist=this[_0x425c('0x1a9')];while(v1['x']==v2['x']&&v1['y']==v2['y'])this[_0x425c('0x299')](v2,desiredDist/0x4);var vx=v1['x']-v2['x'];var vy=v1['y']-v2['y'];var distance=Math[_0x425c('0x24c')](vx*vx+vy*vy);var a=this[_0x425c('0x29b')](distance,desiredDist,v1,v2);var dx=vx/distance*a;var dy=vy/distance*a;v1['dx']-=dx;v1['dy']-=dy;v2['dx']+=dx;v2['dy']+=dy;}[_0x425c('0x298')](v){var offset=Math[_0x425c('0x24c')](v['dx']*v['dx']+v['dy']*v['dy']);if(offset==0x0)return;v['x']+=Math[_0x425c('0xbf')](offset,this[_0x425c('0x295')])*v['dx']/offset;v['y']+=Math[_0x425c('0xbf')](offset,this[_0x425c('0x295')])*v['dy']/offset;v['x']=Math[_0x425c('0xbf')](this['width'],Math['max'](v[_0x425c('0xe9')]/0x2,v['x']));v['y']=Math['min'](this[_0x425c('0xea')],Math[_0x425c('0xc0')](v[_0x425c('0xea')]/0x2,v['y']));}['getType'](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}get['nodeDistance'](){return this[_0x425c('0x1c0')];}set['nodeDistance'](value){this[_0x425c('0x1c0')]=value;}get[_0x425c('0x292')](){return this[_0x425c('0x29e')];}set[_0x425c('0x292')](value){this[_0x425c('0x29e')]=value;}get[_0x425c('0x197')](){return this[_0x425c('0x19c')];}set[_0x425c('0x197')](value){this[_0x425c('0x19c')]=value;}get[_0x425c('0x199')](){return this['_keepGroupLayout'];}set[_0x425c('0x199')](value){this[_0x425c('0x19d')]=value;}get[_0x425c('0x19a')](){return this[_0x425c('0x19e')];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}}function averageNodeSize(graph){var size=0x0;if(graph[_0x425c('0xd4')][_0x425c('0x17')]==0x0)return size;graph['vertices']['forEach'](function(v){var area=v[_0x425c('0xe9')]*v['height'];if(area>0x0)size+=Math[_0x425c('0x24c')](area);});return size/graph['vertices'][_0x425c('0x17')];}function calcAutoFrame(graph,averageNodeSize,widthHeightRatio,multiplier){var squareSize=averageNodeSize*Math[_0x425c('0x29f')](Math[_0x425c('0x24c')](graph[_0x425c('0xd4')][_0x425c('0x17')]));var width=squareSize*Math[_0x425c('0x24c')](widthHeightRatio);var height=squareSize/Math[_0x425c('0x24c')](widthHeightRatio);return{'width':width*multiplier,'height':height*multiplier};}class TopologicalLayout extends Layout{constructor(){super();this[_0x425c('0x1a9')]=0x14;this[_0x425c('0x96')]=LayoutDirection[_0x425c('0x1b9')];this['bendAdjacentLinks']=![];this['mm']=0x1;}get[_0x425c('0x2a0')](){return!![];}[_0x425c('0x1ae')](graph){if(graph[_0x425c('0xd4')][_0x425c('0x17')]==0x0)return![];graph[_0x425c('0xed')]();this[_0x425c('0xa3')]=graph;var orientation=Orientation[_0x425c('0x1e2')];if(this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1ab')]||this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1b8')]){orientation=Orientation[_0x425c('0x19b')];}var reverseDirection=![];if(this['direction']==LayoutDirection['RightToLeft']||this['direction']==LayoutDirection[_0x425c('0x1b8')]){reverseDirection=!![];}var sort=graph[_0x425c('0x153')]();if(!sort){var reversed=graph[_0x425c('0x1ed')]();sort=graph[_0x425c('0x153')]();}var reversedMap=new Map();if(reversed){for(let edge of reversed){reversedMap[_0x425c('0xa4')](edge,!![]);edge[_0x425c('0x23')]();}}var indexMap=new Map();var position=0x0;sort[_0x425c('0x15')](function(index){indexMap[_0x425c('0xa4')](graph[_0x425c('0xd4')][index],position++);});var maxSize=0x0;graph['vertices']['forEach'](function(vertex){if(orientation==Orientation[_0x425c('0x1e2')])maxSize=Math[_0x425c('0xc0')](maxSize,vertex[_0x425c('0xea')]);else maxSize=Math[_0x425c('0xc0')](maxSize,vertex['width']);});if(reverseDirection)sort[_0x425c('0x23')]();var thisObj=this;var offset=this['margins'];sort[_0x425c('0x15')](function(index){var vertex=graph['vertices'][index];if(orientation==Orientation[_0x425c('0x1e2')]){vertex['x']=offset+vertex['width']/0x2;vertex['y']=thisObj[_0x425c('0x19f')]+maxSize/0x2;offset+=vertex[_0x425c('0xe9')]+thisObj[_0x425c('0x1a9')];}else{vertex['x']=thisObj['margins']+maxSize/0x2;vertex['y']=offset+vertex[_0x425c('0xea')]/0x2;offset+=vertex[_0x425c('0xea')]+thisObj['nodeDistance'];}});var sign=0x1;if(reverseDirection)sign=-0x1;var or=orientation;var straight=!reverseDirection;graph['edges']['forEach'](function(edge){var p=[];var o=edge[_0x425c('0x8')];var d=edge['destination'];if(!reversedMap[_0x425c('0xa7')](edge)){var originIndex=indexMap['get'](o);var destIndex=indexMap['get'](d);if(!thisObj['bendAdjacentLinks']&&Math[_0x425c('0x20d')](originIndex-destIndex)==0x1){p[0x0]=PointFromBL(straight?Tools[_0x425c('0x1db')](o,or):Tools[_0x425c('0x1d9')](o,or),Tools['GetBCenter'](o,or),or);p[0x3]=PointFromBL(straight?Tools['GetLNear'](d,or):Tools[_0x425c('0x1db')](d,or),Tools['GetBCenter'](d,or),or);var h=Math[_0x425c('0x20d')](Tools[_0x425c('0x1dc')](p[0x3],or)-Tools[_0x425c('0x1dc')](p[0x0],or));p[0x1]=PointFromBL(Tools[_0x425c('0x1dc')](p[0x0],or)+sign*h/0x4,Tools[_0x425c('0x23b')](p[0x0],or),or);p[0x2]=PointFromBL(Tools['GetL'](p[0x3],or)-sign*h/0x4,Tools[_0x425c('0x23b')](p[0x3],or),or);}else{p[0x0]=PointFromBL(Tools[_0x425c('0x1d5')](o,or),Tools[_0x425c('0x1d6')](o,or),or);p[0x3]=PointFromBL(Tools[_0x425c('0x1d5')](d,or),Tools[_0x425c('0x1d6')](d,or),or);var h=Math[_0x425c('0x20d')](Tools['GetL'](p[0x3],or)-Tools[_0x425c('0x1dc')](p[0x0],or));p[0x1]=PointFromBL(Tools['GetL'](p[0x0],or)+sign*h/0x4,Tools['GetB'](p[0x0],or)-h/0x3,or);p[0x2]=PointFromBL(Tools[_0x425c('0x1dc')](p[0x3],or)-sign*h/0x4,Tools['GetB'](p[0x3],or)-h/0x3,or);}}else{p[0x0]=PointFromBL(Tools[_0x425c('0x1d5')](o,or),Tools[_0x425c('0x237')](o,or),or);p[0x3]=PointFromBL(Tools[_0x425c('0x1d5')](d,or),Tools['GetBFar'](d,or),or);var h=Math['abs'](Tools[_0x425c('0x1dc')](p[0x3],or)-Tools[_0x425c('0x1dc')](p[0x0],or));p[0x1]=PointFromBL(Tools[_0x425c('0x1dc')](p[0x0],or)-sign*h/0x4,Tools['GetB'](p[0x0],or)+h/0x3,or);p[0x2]=PointFromBL(Tools['GetL'](p[0x3],or)+sign*h/0x4,Tools[_0x425c('0x23b')](p[0x3],or)+h/0x3,or);}edge[_0x425c('0xd3')]=p;});}[_0x425c('0x1bc')](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}get[_0x425c('0x1a9')](){return this[_0x425c('0x1c0')];}set[_0x425c('0x1a9')](value){this[_0x425c('0x1c0')]=value;}get[_0x425c('0x96')](){return this['_direction'];}set['direction'](value){this[_0x425c('0x1c1')]=value;}get['bendAdjacentLinks'](){return this[_0x425c('0x2a1')];}set[_0x425c('0x2a2')](value){this[_0x425c('0x2a1')]=value;}}function PointFromBL(l,b,or){if(or==Orientation[_0x425c('0x1e2')])return new Point(l,b);else return new Point(b,l);}class TreeLayout extends Layout{constructor(){super();this['levelDistance']=0xa;this['nodeDistance']=0xa;this[_0x425c('0x1aa')]=![];this['direction']=LayoutDirection[_0x425c('0x1ab')];this[_0x425c('0x1ac')]=TreeLayoutLinkType['Default'];this[_0x425c('0x2a3')]=![];this[_0x425c('0x2a4')]=![];this['multipleGraphsPlacement']=MultipleGraphsPlacement['Horizontal'];this[_0x425c('0xd0')]=![];}get['requiresSimpleGraph'](){return![];}get[_0x425c('0x1a5')](){return this['linkType']==TreeLayoutLinkType[_0x425c('0x1b7')];}get['isStatic'](){return this[_0x425c('0x1aa')];}[_0x425c('0x1ae')](graph){var root;var th=new TreeHelper(this[_0x425c('0xd0')]);this['treeHelper']=th;graph[_0x425c('0xd4')][_0x425c('0x15')](function(v){let parentEdges=th[_0x425c('0x1af')](v);if(parentEdges[_0x425c('0x17')]==0x0){root=v;return $break;}});if(!root)return $skipLayout;var tree=graph[_0x425c('0xd9')](root,this[_0x425c('0xd0')],this[_0x425c('0x2a3')],this[_0x425c('0x2a4')]);if(!tree)return $skipLayout;tree[_0x425c('0xd4')][_0x425c('0x15')](function(v){v[_0x425c('0x2a5')]=v[_0x425c('0x6')][_0x425c('0xdc')][_0x425c('0xdd')];});var rootX=root['x']+root[_0x425c('0xe9')]/0x2;var rootY=root['y']+root['height']/0x2;walk(tree,root,function(node,params){node['x']=node['width']/0x2;node['y']=node[_0x425c('0xea')]/0x2;},null);var levelSizes=[];for(var i=0x0;i<tree[_0x425c('0xe3')][_0x425c('0x17')];i++){var treeLevel=tree['treeLevels'][i];var sz=0x0;for(var j=0x0;j<treeLevel[_0x425c('0x17')];j++){if(this[_0x425c('0x1b2')]())sz=Math[_0x425c('0xc0')](sz,treeLevel[j][_0x425c('0xe9')]);else sz=Math['max'](sz,treeLevel[j][_0x425c('0xea')]);}levelSizes[_0x425c('0x14')](sz);}var lastLevel=tree['treeLevels'][tree[_0x425c('0xe3')]['length']-0x1];var s=0x0;for(var i=0x0;i<lastLevel[_0x425c('0x17')];i++){var node=lastLevel[i];if(this[_0x425c('0x1b2')]()){node['y']=s+node[_0x425c('0xea')]/0x2;s+=node[_0x425c('0xea')]+this['nodeDistance'];}else{node['x']=s+node['width']/0x2;s+=node[_0x425c('0xe9')]+this[_0x425c('0x1a9')];}}var previousLefts=new Map();var previousRights=new Map();for(var i=tree[_0x425c('0xe3')][_0x425c('0x17')]-0x1;i>=0x0;i--){var treeLevel=tree[_0x425c('0xe3')][i];for(var j=0x0;j<treeLevel[_0x425c('0x17')];j++){var node=treeLevel[j];var children=tree[_0x425c('0xe5')](node);if(children[_0x425c('0x17')]>0x0){if(this['hasAssistants'](node,th)&&this[_0x425c('0x2a3')]){var firstLeftAssistant=undefined;var firstRightAssistant=undefined;children[_0x425c('0x15')](function(child){if(child[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')])firstLeftAssistant=child;else if(child[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xe0')])firstRightAssistant=child;});if(firstLeftAssistant&&firstRightAssistant){var leftBounds=this['branchBounds'](firstLeftAssistant);var rightBounds=this[_0x425c('0x2a6')](firstRightAssistant);if(this[_0x425c('0x1b2')]())node['y']+=leftBounds[_0x425c('0x1bb')]()+(rightBounds[_0x425c('0x1ca')]()-leftBounds[_0x425c('0x1bb')]())/0x2-node[_0x425c('0xea')]/0x2;else node['x']+=leftBounds[_0x425c('0x74')]()+(rightBounds[_0x425c('0x82')]()-leftBounds[_0x425c('0x74')]())/0x2-node[_0x425c('0xe9')]/0x2;}else{if(firstLeftAssistant){var assistantBounds=this[_0x425c('0x2a6')](firstLeftAssistant);if(this[_0x425c('0x1b2')]())node['y']=assistantBounds[_0x425c('0x1bb')]()+this[_0x425c('0x1a9')]/0x2;else node['x']=assistantBounds[_0x425c('0x74')]()+this[_0x425c('0x1a9')]/0x2;}else{var assistantBounds=this[_0x425c('0x2a6')](firstRightAssistant);if(this[_0x425c('0x1b2')]())node['y']=assistantBounds[_0x425c('0x1ca')]()-this[_0x425c('0x1a9')]/0x2;else node['x']=assistantBounds['left']()-this['nodeDistance']/0x2;}}}else{var rcTotal=Rect['fromVertex'](children[0x0]);for(var c=0x1;c<children[_0x425c('0x17')];c++)rcTotal=rcTotal[_0x425c('0x1c6')](Rect[_0x425c('0x1ba')](children[c]));if(this['isHorizontal']())node['y']+=(rcTotal[_0x425c('0x1ca')]()+rcTotal['bottom']())/0x2-node[_0x425c('0xea')]/0x2;else node['x']+=(rcTotal[_0x425c('0x82')]()+rcTotal[_0x425c('0x74')]())/0x2-node['width']/0x2;}}if(node['assistantType']&&this[_0x425c('0x2a3')]){var subordinates=[];if(node[_0x425c('0x33')]){var childEdges=th[_0x425c('0xd1')](node[_0x425c('0x33')]);for(var c=0x0;c<childEdges[_0x425c('0x17')];c++){var child=th['childNode'](childEdges[c]);if(child[_0x425c('0x2a5')])continue;subordinates[_0x425c('0x14')](child);}}if(subordinates[_0x425c('0x17')]>0x0){var rcTotal=Rect[_0x425c('0x1ba')](subordinates[0x0]);for(var c=0x1;c<subordinates[_0x425c('0x17')];c++)rcTotal=rcTotal[_0x425c('0x1c6')](Rect[_0x425c('0x1ba')](subordinates[c]));var rc=this[_0x425c('0x2a6')](node);if(this['isHorizontal']()){var offset=0x0;if(node[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')]){offset=rcTotal['y']+rcTotal[_0x425c('0xea')]/0x2-rc[_0x425c('0x1bb')]()-this[_0x425c('0x1a9')]/0x2;}else{offset=rcTotal['y']+rcTotal[_0x425c('0xea')]/0x2-rc[_0x425c('0x1ca')]()+this[_0x425c('0x1a9')]/0x2;}this[_0x425c('0x2a7')](tree,node,0x0,offset);}else{var offset=0x0;if(node['assistantPosition']===AssistantPosition[_0x425c('0xde')]){offset=rcTotal['x']+rcTotal[_0x425c('0xe9')]/0x2-rc['right']()-this[_0x425c('0x1a9')]/0x2;}else{offset=rcTotal['x']+rcTotal[_0x425c('0xe9')]/0x2-rc[_0x425c('0x82')]()+this[_0x425c('0x1a9')]/0x2;}this[_0x425c('0x2a7')](tree,node,offset,0x0);}}else{if(node[_0x425c('0x33')]){var previousLeft=undefined;if(previousLefts[_0x425c('0xa7')](node[_0x425c('0x33')]))previousLeft=previousLefts[_0x425c('0x79')](node['parent']);var previousRight=undefined;if(previousRights[_0x425c('0xa7')](node[_0x425c('0x33')]))previousRight=previousRights[_0x425c('0x79')](node[_0x425c('0x33')]);if(previousLeft||previousRight){var nodeBounds=this[_0x425c('0x2a6')](node);if(node['assistantPosition']===AssistantPosition[_0x425c('0xe0')]){if(previousRight){var previousBounds=this[_0x425c('0x2a6')](previousRight);if(this[_0x425c('0x1b2')]()){var offset=previousBounds[_0x425c('0x1ca')]()-nodeBounds[_0x425c('0x1ca')]();this[_0x425c('0x2a7')](tree,node,0x0,offset);}else{var offset=previousBounds['left']()-nodeBounds[_0x425c('0x82')]();this[_0x425c('0x2a7')](tree,node,offset,0x0);}}else if(previousLeft){var previousBounds=this[_0x425c('0x2a6')](previousLeft);if(this['isHorizontal']()){var offset=previousBounds[_0x425c('0x1bb')]()+this[_0x425c('0x1a9')]-nodeBounds['top']();this['offsetBranch'](tree,node,0x0,offset);}else{var offset=previousBounds[_0x425c('0x74')]()+this[_0x425c('0x1a9')]-nodeBounds['left']();this[_0x425c('0x2a7')](tree,node,offset,0x0);}}}else{if(previousLeft){var previousBounds=this[_0x425c('0x2a6')](previousLeft);if(this[_0x425c('0x1b2')]()){var offset=previousBounds['bottom']()-nodeBounds[_0x425c('0x1bb')]();this['offsetBranch'](tree,node,0x0,offset);}else{var offset=previousBounds[_0x425c('0x74')]()-nodeBounds[_0x425c('0x74')]();this[_0x425c('0x2a7')](tree,node,offset,0x0);}}else if(previousRight){var previousBounds=this[_0x425c('0x2a6')](previousRight);if(this[_0x425c('0x1b2')]()){var offset=previousBounds[_0x425c('0x1ca')]()-this[_0x425c('0x1a9')]-nodeBounds['bottom']();this[_0x425c('0x2a7')](tree,node,0x0,offset);}else{var offset=previousBounds[_0x425c('0x82')]()-this['nodeDistance']-nodeBounds[_0x425c('0x74')]();this['offsetBranch'](tree,node,offset,0x0);}}}}}}}if(node[_0x425c('0x2a5')]&&this[_0x425c('0x2a3')]){if(node[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')])previousLefts[_0x425c('0xa4')](node[_0x425c('0x33')],node);else if(node[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xe0')])previousRights['set'](node[_0x425c('0x33')],node);}}for(var j=0x0;j<treeLevel[_0x425c('0x17')]-0x1;j++){for(var k=j;k>=0x0;k--){if(treeLevel[k][_0x425c('0x2a5')]||treeLevel[j+0x1][_0x425c('0x2a5')])continue;var dist=this['branchDistance'](tree,treeLevel[k],treeLevel[j+0x1]);var checkDistance=k!=j;if(checkDistance?dist<this[_0x425c('0x1a9')]:!![]){if(this[_0x425c('0x1b2')]())this[_0x425c('0x2a7')](tree,treeLevel[j+0x1],0x0,this['nodeDistance']-dist);else this['offsetBranch'](tree,treeLevel[j+0x1],this[_0x425c('0x1a9')]-dist,0x0);}}}}var iStart;var iEnd;var iGrow;if(this[_0x425c('0x1b1')]()){iStart=0x0;iEnd=tree[_0x425c('0xe3')]['length'];iGrow=+0x1;}else{iStart=tree['treeLevels'][_0x425c('0x17')]-0x1;iEnd=-0x1;iGrow=-0x1;}var currentPos=0x0;for(var i=iStart;this[_0x425c('0x1b1')]()?i<iEnd:i>iEnd;i+=iGrow){var maxSize=0x0;var treeLevel=tree[_0x425c('0xe3')][i];for(var j=0x0;j<treeLevel[_0x425c('0x17')];j++){var node=treeLevel[j];var size=0x0;if(this[_0x425c('0x1b2')]()){size=node['width'];var xoff=0x0;if(this[_0x425c('0x96')]==LayoutDirection['RightToLeft'])xoff=levelSizes[i]-size;node['x']=currentPos+xoff+this[_0x425c('0x19f')]+node[_0x425c('0xe9')]/0x2;node['y']=node['y']+this['margins'];}else{size=node['height'];var yoff=0x0;if(this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1b8')])yoff=levelSizes[i]-size;node['x']=node['x']+this[_0x425c('0x19f')];node['y']=currentPos+yoff+this[_0x425c('0x19f')]+node[_0x425c('0xea')]/0x2;}maxSize=Math[_0x425c('0xc0')](maxSize,size);}currentPos+=maxSize+this[_0x425c('0x1a8')];}if(this[_0x425c('0x1aa')]){var newRootX=root['x'];var newRootY=root['y'];var xoff=rootX-newRootX;var yoff=rootY-newRootY;this[_0x425c('0x2a7')](tree,root,xoff,yoff);}if(this[_0x425c('0x1ac')]!=TreeLayoutLinkType[_0x425c('0x1b3')]){switch(this[_0x425c('0x1ac')]){case TreeLayoutLinkType[_0x425c('0x1b4')]:{switch(this[_0x425c('0x96')]){case LayoutDirection[_0x425c('0x1ab')]:{tree[_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th['childNode'](e);th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']+parent['height']/0x2},{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2}]);});break;}case LayoutDirection[_0x425c('0x1b8')]:{tree[_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']-parent[_0x425c('0xea')]/0x2},{'x':child['x'],'y':child['y']+child[_0x425c('0xea')]/0x2}]);});break;}case LayoutDirection[_0x425c('0x1b9')]:{tree[_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x']-child[_0x425c('0xe9')]/0x2,'y':child['y']}]);});break;}case LayoutDirection[_0x425c('0x1b6')]:{tree[_0x425c('0x0')]['forEach'](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);th[_0x425c('0x1b5')](e,[{'x':parent['x']-parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x']+child[_0x425c('0xe9')]/0x2,'y':child['y']}]);});break;}}break;}case TreeLayoutLinkType[_0x425c('0x1b7')]:{var enableAssistants=this[_0x425c('0x2a3')];var halfDistance=this[_0x425c('0x1a8')]/0x2;switch(this[_0x425c('0x96')]){case LayoutDirection[_0x425c('0x1ab')]:{tree['edges'][_0x425c('0x15')](function(e){var parent=th['parentNode'](e);var child=th['childNode'](e);if(enableAssistants&&child[_0x425c('0x2a5')]){th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']+parent['height']/0x2},{'x':parent['x'],'y':child['y']},child[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')]?{'x':child['x']+child[_0x425c('0xe9')]/0x2,'y':child['y']}:{'x':child['x']-child['width']/0x2,'y':child['y']}]);}else{th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x425c('0xea')]/0x2},{'x':parent['x'],'y':child['y']-child['height']/0x2-halfDistance},{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2-halfDistance},{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2}]);}});break;}case LayoutDirection[_0x425c('0x1b8')]:{tree['edges'][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);if(enableAssistants&&child[_0x425c('0x2a5')]){th['assignPoints'](e,[{'x':parent['x'],'y':parent['y']-parent[_0x425c('0xea')]/0x2},{'x':parent['x'],'y':child['y']},child[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')]?{'x':child['x']+child[_0x425c('0xe9')]/0x2,'y':child['y']}:{'x':child['x']-child[_0x425c('0xe9')]/0x2,'y':child['y']}]);}else{th[_0x425c('0x1b5')](e,[{'x':parent['x'],'y':parent['y']-parent['height']/0x2},{'x':parent['x'],'y':child['y']+child[_0x425c('0xea')]/0x2+halfDistance},{'x':child['x'],'y':child['y']+child['height']/0x2+halfDistance},{'x':child['x'],'y':child['y']+child[_0x425c('0xea')]/0x2}]);}});break;}case LayoutDirection[_0x425c('0x1b9')]:{tree[_0x425c('0x0')][_0x425c('0x15')](function(e){var parent=th[_0x425c('0xce')](e);var child=th['childNode'](e);if(enableAssistants&&child[_0x425c('0x2a5')]){th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},child[_0x425c('0xdf')]===AssistantPosition['Left']?{'x':child['x'],'y':child['y']+child[_0x425c('0xea')]/0x2}:{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2}]);}else{th[_0x425c('0x1b5')](e,[{'x':parent['x']+parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x']-child[_0x425c('0xe9')]/0x2-halfDistance,'y':parent['y']},{'x':child['x']-child[_0x425c('0xe9')]/0x2-halfDistance,'y':child['y']},{'x':child['x']-child[_0x425c('0xe9')]/0x2,'y':child['y']}]);}});break;}case LayoutDirection['RightToLeft']:{tree[_0x425c('0x0')]['forEach'](function(e){var parent=th[_0x425c('0xce')](e);var child=th[_0x425c('0xcf')](e);if(enableAssistants&&child[_0x425c('0x2a5')]){th['assignPoints'](e,[{'x':parent['x']-parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},child[_0x425c('0xdf')]===AssistantPosition[_0x425c('0xde')]?{'x':child['x'],'y':child['y']+child['height']/0x2}:{'x':child['x'],'y':child['y']-child[_0x425c('0xea')]/0x2}]);}else{th['assignPoints'](e,[{'x':parent['x']-parent[_0x425c('0xe9')]/0x2,'y':parent['y']},{'x':child['x']+child[_0x425c('0xe9')]/0x2+halfDistance,'y':parent['y']},{'x':child['x']+child['width']/0x2+halfDistance,'y':child['y']},{'x':child['x']+child[_0x425c('0xe9')]/0x2,'y':child['y']}]);}});break;}}}}}}[_0x425c('0x2a8')](node,treeHelper){var childEdges=treeHelper['childEdges'](node);for(var i=0x0;i<childEdges[_0x425c('0x17')];i++){if(treeHelper['childNode'](childEdges[i])['assistantType'])return!![];}return![];}[_0x425c('0x2a6')](root){var th=this[_0x425c('0x2a9')];var temp=[];temp[_0x425c('0x14')](root);var visited=[];var result;while(temp[_0x425c('0x17')]>0x0){var node=temp[0x0];temp['splice'](0x0,0x1);visited[_0x425c('0x14')](node);if(!result)result=Rect[_0x425c('0x1ba')](node);else result=result['union'](Rect[_0x425c('0x1ba')](node));var childEdges=th['childEdges'](node);for(var i=0x0;i<childEdges[_0x425c('0x17')];i++){var child=th[_0x425c('0xcf')](childEdges[i]);if(!visited[_0x425c('0xb')](child))temp[_0x425c('0x14')](child);}}return result;}[_0x425c('0x2aa')](tree,node1,node2){var dist=this[_0x425c('0x82')](node2)-this['right'](node1);var levels1=new Map();var levels2=new Map();enumerateLevels(tree,node1,levels1);enumerateLevels(tree,node2,levels2);var keys=[...levels1[_0x425c('0xb2')]()];for(var i=0x0;i<keys['length'];i++){var levelIndex=keys[i];if(!levels2[_0x425c('0xa7')](levelIndex))continue;var level1=levels1['get'](levelIndex);var level2=levels2[_0x425c('0x79')](levelIndex);var r=0x0;for(var j=0x0;j<level1[_0x425c('0x17')];j++)r=Math['max'](r,this['right'](level1[j]));var l=Number[_0x425c('0xf6')];for(var j=0x0;j<level2[_0x425c('0x17')];j++)l=Math[_0x425c('0xbf')](l,this[_0x425c('0x82')](level2[j]));if(l-r<dist&&(level1[_0x425c('0x17')]>0x0&&level2[_0x425c('0x17')]>0x0))dist=l-r;}return dist;}[_0x425c('0x74')](vertex){if(this[_0x425c('0x1b2')]())return vertex['y']+vertex['height']/0x2;else return vertex['x']+vertex[_0x425c('0xe9')]/0x2;}[_0x425c('0x82')](vertex){if(this[_0x425c('0x1b2')]())return vertex['y']-vertex['height']/0x2;else return vertex['x']-vertex[_0x425c('0xe9')]/0x2;}[_0x425c('0x2a7')](tree,nodeFrom,xoff,yoff){if(!xoff&&!yoff)return;var offsetFunc=function(node,params){node['x']+=params[0x0];node['y']+=params[0x1];};walk(tree,nodeFrom,offsetFunc,[xoff,yoff]);}[_0x425c('0x1b2')](){return this['direction']==LayoutDirection['LeftToRight']||this['direction']==LayoutDirection['RightToLeft'];}[_0x425c('0x1b1')](){return this[_0x425c('0x96')]==LayoutDirection['LeftToRight']||this[_0x425c('0x96')]==LayoutDirection[_0x425c('0x1ab')];}[_0x425c('0x2ab')](numerator,denominator){return(numerator-numerator%denominator)/denominator;}[_0x425c('0x1bc')](){return this['constructor']['__typeName'];}get['levelDistance'](){return this[_0x425c('0x1bf')];}set[_0x425c('0x1a8')](value){this['_levelDistance']=value;}get[_0x425c('0x1a9')](){return this[_0x425c('0x1c0')];}set['nodeDistance'](value){this['_nodeDistance']=value;}get[_0x425c('0x1aa')](){return this[_0x425c('0x2ac')];}set[_0x425c('0x1aa')](value){this[_0x425c('0x2ac')]=value;}get['direction'](){return this['_direction'];}set[_0x425c('0x96')](value){this['_direction']=value;}get[_0x425c('0x1ac')](){return this['_linkType'];}set['linkType'](value){this[_0x425c('0x1c2')]=value;}get['anchoring'](){return this[_0x425c('0x19c')];}set[_0x425c('0x197')](value){this[_0x425c('0x19c')]=value;}get[_0x425c('0x199')](){return this[_0x425c('0x19d')];}set['keepGroupLayout'](value){this[_0x425c('0x19d')]=value;}get[_0x425c('0x2a3')](){return this['_enableAssistants'];}set[_0x425c('0x2a3')](value){this[_0x425c('0x2ad')]=value;}get[_0x425c('0x2a4')](){return this['_compactAssistants'];}set[_0x425c('0x2a4')](value){this[_0x425c('0x2ae')]=value;}get['multipleGraphsPlacement'](){return this[_0x425c('0x19e')];}set[_0x425c('0x19a')](value){this[_0x425c('0x19e')]=value;}get[_0x425c('0xd0')](){return this[_0x425c('0x1c3')];}set[_0x425c('0xd0')](value){this['_reversedLinks']=value;}}function enumerateLevels(tree,node,levels){var levelIndex=node[_0x425c('0xda')];var level=null;if(levels[_0x425c('0xa7')](levelIndex)){level=levels[_0x425c('0x79')](levelIndex);}else{level=[];levels['set'](levelIndex,level);}level[_0x425c('0x14')](node);tree[_0x425c('0xe5')](node)['forEach'](function(child){enumerateLevels(tree,child,levels);});}function walk(tree,node,func,params){func[_0x425c('0x1c4')](this,node,params);var children=tree[_0x425c('0xe5')](node);children[_0x425c('0x15')](function(child){walk(tree,child,func,params);});}class TreeMapLayout extends Layout{constructor(){super();this[_0x425c('0x1e1')]=Orientation[_0x425c('0x19b')];this[_0x425c('0x2af')]=!![];this['padding']=0x1;this[_0x425c('0x2b0')]=null;this[_0x425c('0x2b1')]=0x0;this['minNodeSize']=0x1;}get['setsLinkEndPoints'](){return![];}get[_0x425c('0x1a2')](){return![];}get[_0x425c('0x1a3')](){return![];}get[_0x425c('0x1ad')](){return![];}get[_0x425c('0x1a6')](){return!![];}[_0x425c('0x1ae')](graph){if(this[_0x425c('0x2b0')]==null)this['layoutArea']=graph[_0x425c('0x2b0')];var roots=[];this['weights']=new Map();var totalWeight=0x0;graph[_0x425c('0xd4')][_0x425c('0x15')](function(vertex){if(vertex[_0x425c('0x2b2')]==null){totalWeight+=this[_0x425c('0x2b3')](vertex);roots['push'](vertex);}},this);if(this[_0x425c('0x2af')])this[_0x425c('0x2b4')](roots,this['layoutArea'],[],totalWeight);else this[_0x425c('0x2b5')](roots,this[_0x425c('0x2b0')],this[_0x425c('0x1e1')]==Orientation[_0x425c('0x1e2')],totalWeight);}[_0x425c('0x2b4')](nodes,layoutArea,row,parentWeight){var children=nodes[_0x425c('0x9d')]();var weights=this[_0x425c('0x2b6')];children['sort'](function(n1,n2){return weights[_0x425c('0x79')](n2)-weights[_0x425c('0x79')](n1);});this[_0x425c('0x2b7')](children,layoutArea,row,parentWeight);}['doSquarify'](children,layoutArea,row,parentWeight){var horizontal=layoutArea[_0x425c('0xe9')]>layoutArea[_0x425c('0xea')];var sideLen=Math[_0x425c('0xbf')](layoutArea[_0x425c('0xe9')],layoutArea[_0x425c('0xea')]);var ratio1=0x0,ratio2=0x0;var row2=row[_0x425c('0x9d')]();if(children[_0x425c('0x17')]>0x0){var node=children[0x0];row2['push'](node);var area=layoutArea[_0x425c('0xe9')]*layoutArea[_0x425c('0xea')];ratio1=this['evalRatio'](row,sideLen,area*this[_0x425c('0x2')](row)/parentWeight);ratio2=this[_0x425c('0x2b8')](row2,sideLen,area*this[_0x425c('0x2')](row2)/parentWeight);}if(children[_0x425c('0x17')]>0x0&&(ratio1==0x0||ratio1>=ratio2)){children[_0x425c('0x107')]();this[_0x425c('0x2b7')](children,layoutArea,row2,parentWeight);}else{var len=this[_0x425c('0x2b9')](layoutArea,row,!horizontal,parentWeight);parentWeight-=this[_0x425c('0x2')](row);if(horizontal){layoutArea['x']+=len;layoutArea[_0x425c('0xe9')]-=len;}else{layoutArea['y']+=len;layoutArea['height']-=len;}if(children['length']>0x0)this[_0x425c('0x2b7')](children,layoutArea,[],parentWeight);}}[_0x425c('0x2')](row){var total=0x0;row[_0x425c('0x15')](function(node){total+=this[_0x425c('0x2b6')][_0x425c('0x79')](node);},this);return total;}['subtractPadding'](rect){var hp=-this[_0x425c('0x2ba')]/0x2;rect=rect[_0x425c('0x2bb')](hp);var mm=this[_0x425c('0x2bc')];if(rect[_0x425c('0xe9')]<mm)rect['width']=mm;if(rect[_0x425c('0xea')]<mm)rect[_0x425c('0xea')]=mm;}[_0x425c('0x2b9')](layoutArea,row,horizontal,parentWeight){var parentArea=layoutArea[_0x425c('0xe9')]*layoutArea[_0x425c('0xea')];var sideLen=horizontal?layoutArea['width']:layoutArea[_0x425c('0xea')];var total=0x0;row[_0x425c('0x15')](function(node){total+=this[_0x425c('0x2b6')][_0x425c('0x79')](node);},this);var rowArea=parentArea*total/parentWeight;var len=rowArea/sideLen;var pos=horizontal?layoutArea['x']:layoutArea['y'];row[_0x425c('0x15')](function(node){var weight=this['weights'][_0x425c('0x79')](node);var bounds=horizontal?new Rect(pos,layoutArea['y'],rowArea*weight/total/len,len):new Rect(layoutArea['x'],pos,len,rowArea*weight/total/len);this['subtractPadding'](bounds);setBounds(node,bounds);pos+=rowArea*weight/total/len;if(node['subordinates']!=null){var children=node[_0x425c('0x2bd')][_0x425c('0x9d')]();var childArea=this['layOutArea'](node);this[_0x425c('0x2be')](childArea);this[_0x425c('0x2b4')](children,childArea,[],weight);}},this);return len;}['arrangeSiblings'](nodes,layoutArea,horizontal,totalWeight){var pos=horizontal?layoutArea['x']:layoutArea['y'];var length=horizontal?layoutArea['width']:layoutArea[_0x425c('0xea')];nodes[_0x425c('0x15')](function(node){var nodeSize=length*this['weights'][_0x425c('0x79')](node)/totalWeight;var bounds=horizontal?new Rect(pos,layoutArea['y'],nodeSize,layoutArea[_0x425c('0xea')]):new Rect(layoutArea['x'],pos,layoutArea[_0x425c('0xe9')],nodeSize);this['subtractPadding'](bounds);setBounds(node,bounds);if(node[_0x425c('0x2bd')]!=null){var children=node[_0x425c('0x2bd')][_0x425c('0x9d')]();var childArea=this[_0x425c('0x2bf')](node);this[_0x425c('0x2be')](childArea);this[_0x425c('0x2b5')](children,childArea,!horizontal,this['weights'][_0x425c('0x79')](node));}pos+=nodeSize;},this);}[_0x425c('0x2b8')](row,sideLen,rowArea){var worst=0x0;var total=0x0;row[_0x425c('0x15')](function(node){var weight=this[_0x425c('0x2b6')][_0x425c('0x79')](node);total+=weight;},this);row[_0x425c('0x15')](function(node){var weight=this[_0x425c('0x2b6')][_0x425c('0x79')](node);var area=rowArea*weight/total;worst=Math['max'](worst,Math[_0x425c('0xc0')](sideLen*sideLen*area/(rowArea*rowArea),rowArea*rowArea/(sideLen*sideLen*area)));},this);return worst;}['calcWeights'](root){if(this[_0x425c('0x2b6')][_0x425c('0xa7')](root))return this['weights'][_0x425c('0x79')](root);if(root['subordinates']==null){this['weights']['set'](root,root['weight']);return root[_0x425c('0x2')];}var weight=0x0;root[_0x425c('0x2bd')][_0x425c('0x15')](function(child){weight+=this[_0x425c('0x2b3')](child);},this);this[_0x425c('0x2b6')]['set'](root,weight);return weight;}[_0x425c('0x2bf')](node){var la=Rect[_0x425c('0x1ba')](node);if(node[_0x425c('0x2c0')]){var headerSize=node[_0x425c('0x2c0')];if(headerSize<la[_0x425c('0xea')]){la['y']+=headerSize;la[_0x425c('0xea')]-=headerSize;}else{la['y']+=la[_0x425c('0xea')]/0x2;la[_0x425c('0xea')]/=0x2;}}if(node[_0x425c('0x2bd')]!=null)return la[_0x425c('0x2bb')](-this[_0x425c('0x2b1')]);return la;}[_0x425c('0x1bc')](){return this[_0x425c('0x1bd')]['__typeName'];}get['orientation'](){return this[_0x425c('0x2c1')];}set['orientation'](value){this[_0x425c('0x2c1')]=value;}get[_0x425c('0x2af')](){return this[_0x425c('0x2c2')];}set['squarify'](value){this[_0x425c('0x2c2')]=value;}get['padding'](){return this[_0x425c('0x2c3')];}set[_0x425c('0x2ba')](value){this[_0x425c('0x2c3')]=value;}get[_0x425c('0x2b0')](){return this[_0x425c('0x2c4')];}set[_0x425c('0x2b0')](value){this[_0x425c('0x2c4')]=value;}get[_0x425c('0x2b1')](){return this[_0x425c('0x2c5')];}set[_0x425c('0x2b1')](value){this[_0x425c('0x2c5')]=value;}}function setBounds(vertex,rect){var c=rect[_0x425c('0x1cd')]();vertex['x']=c['x'];vertex['y']=c['y'];vertex[_0x425c('0xe9')]=rect[_0x425c('0xe9')];vertex[_0x425c('0xea')]=rect['height'];}class DrawingGrid{constructor(graph,vertexPoints,edgePoints){this[_0x425c('0xa3')]=graph;this[_0x425c('0x2c6')]=vertexPoints;this[_0x425c('0x2c7')]=edgePoints;this[_0x425c('0x2c8')]=new DrawingGrid[(_0x425c('0x2c9'))]();this[_0x425c('0x2ca')]=new DrawingGrid[(_0x425c('0x2cb'))](Number[_0x425c('0x144')],Number[_0x425c('0x144')],Number[_0x425c('0x2cc')],Number['MIN_SAFE_INTEGER']);for(let v of graph[_0x425c('0xd4')]){let p=vertexPoints[_0x425c('0x79')](v);this[_0x425c('0x2cd')](p);this['getCell'](p['x'],p['y'])[_0x425c('0x5c')](v);}for(let e of graph[_0x425c('0x0')]){let points=edgePoints['get'](e);this[_0x425c('0x2ce')](points,e,![]);this[_0x425c('0x2cf')](points);let prevPoint=points[0x0];for(let i=0x1;i<points['length']-0x1;++i){let point=points[i];if(point[_0x425c('0x2d0')](prevPoint))continue;this['getCell'](point['x'],point['y'])['add'](new DrawingGrid[(_0x425c('0x2d1'))](e));prevPoint=point;}}this[_0x425c('0x2d2')]=new Map();for(let c=this[_0x425c('0x2ca')]['left'];c<=this[_0x425c('0x2ca')]['right'];++c)this[_0x425c('0x2d2')][_0x425c('0xa4')](c,0x1);this[_0x425c('0x2d3')]=new Map();for(let r=this[_0x425c('0x2ca')][_0x425c('0x1ca')];r<=this[_0x425c('0x2ca')][_0x425c('0x1bb')];++r)this[_0x425c('0x2d3')][_0x425c('0xa4')](r,0x1);}['setCellDimensions'](vertexSize,padding,edgeCellSize){this[_0x425c('0x2d4')]=new Map();this[_0x425c('0x2d5')]=new Map();this[_0x425c('0x2d6')]=new Map();this[_0x425c('0x2d7')]=new Map();for(let v of this['graph']['vertices']){let vs=vertexSize(v);let cp=this[_0x425c('0x2c6')][_0x425c('0x79')](v);this[_0x425c('0x2d4')][_0x425c('0xa4')](cp['x'],this[_0x425c('0x2d4')][_0x425c('0xa7')](cp['x'])?Math['min'](this[_0x425c('0x2d4')]['get'](cp['x']),vs[_0x425c('0xe9')]):vs['width']);this['maxWidth'][_0x425c('0xa4')](cp['x'],this[_0x425c('0x2d5')][_0x425c('0xa7')](cp['x'])?Math[_0x425c('0xc0')](this[_0x425c('0x2d5')][_0x425c('0x79')](cp['x']),vs[_0x425c('0xe9')]):vs[_0x425c('0xe9')]);this[_0x425c('0x2d6')][_0x425c('0xa4')](cp['y'],this[_0x425c('0x2d6')][_0x425c('0xa7')](cp['y'])?Math[_0x425c('0xbf')](this[_0x425c('0x2d6')][_0x425c('0x79')](cp['y']),vs[_0x425c('0xea')]):vs[_0x425c('0xea')]);this['maxHeight'][_0x425c('0xa4')](cp['y'],this[_0x425c('0x2d7')]['has'](cp['y'])?Math['max'](this[_0x425c('0x2d7')]['get'](cp['y']),vs['height']):vs[_0x425c('0xea')]);}this[_0x425c('0x2d8')]=new Map();this[_0x425c('0x2d9')]=new Map();let x=0x0;for(let c=this['bounds'][_0x425c('0x82')];c<=this[_0x425c('0x2ca')]['right'];++c){let w=this['maxWidth'][_0x425c('0xa7')](c)?this['maxWidth']['get'](c)+padding:this['columnWidths'][_0x425c('0x79')](c)*edgeCellSize;x+=w;this['columnPositions']['set'](c,x-w/0x2);}let y=0x0;for(let r=this['bounds'][_0x425c('0x1ca')];r<=this[_0x425c('0x2ca')][_0x425c('0x1bb')];++r){let h=this['maxHeight'][_0x425c('0xa7')](r)?this[_0x425c('0x2d7')][_0x425c('0x79')](r)+padding:this[_0x425c('0x2d3')][_0x425c('0x79')](r)*edgeCellSize;y+=h;this[_0x425c('0x2d9')][_0x425c('0xa4')](r,y-h/0x2);}}['getPosition'](point){return new Point(this[_0x425c('0x2d8')]['get'](point['x']),this[_0x425c('0x2d9')][_0x425c('0x79')](point['y']));}[_0x425c('0x2da')](point,edge,width,height){if(this[_0x425c('0x2db')]==null)return this[_0x425c('0x2dc')](point);let result=new Point(this[_0x425c('0x2d8')][_0x425c('0x79')](point['x']),this[_0x425c('0x2d9')][_0x425c('0x79')](point['y']));let bend=null;if(this[_0x425c('0x2c8')][_0x425c('0xa7')](point)){let cell=this['cells']['get'](point);bend=cell[_0x425c('0x2dd')](edge);}if(this[_0x425c('0x2d4')][_0x425c('0xa7')](point['x']))width=this['minWidth'][_0x425c('0x79')](point['x']);if(this[_0x425c('0x2d6')]['has'](point['y']))height=this['minHeight'][_0x425c('0x79')](point['y']);if(bend!=null){let laneWidth=width/bend[_0x425c('0x2de')];result['x']=result['x']-width/0x2+(0.5+bend[_0x425c('0x2df')])*laneWidth;let laneHeight=height/bend[_0x425c('0x2e0')];result['y']=result['y']-height/0x2+(0.5+bend[_0x425c('0x2e1')])*laneHeight;}else{let hlane=-0x1,vlane=-0x1;let hneighbors={'val':-0x1},vneighbors={'val':-0x1};let np=new Point(point['x']-0x1,point['y']);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](np)){let cell=this[_0x425c('0x2c8')][_0x425c('0x79')](np);hlane=cell['getEdgeLane'](edge,!![],hneighbors);}if(hlane==-0x1){np=new Point(point['x']+0x1,point['y']);if(this[_0x425c('0x2c8')]['has'](np)){let cell=this[_0x425c('0x2c8')][_0x425c('0x79')](np);hlane=cell[_0x425c('0x2e2')](edge,!![],hneighbors);}}np=new Point(point['x'],point['y']-0x1);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](np)){let cell=this['cells'][_0x425c('0x79')](np);vlane=cell[_0x425c('0x2e2')](edge,![],vneighbors);}if(vlane==-0x1){np=new Point(point['x'],point['y']+0x1);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](np)){let cell=this['cells'][_0x425c('0x79')](np);vlane=cell[_0x425c('0x2e2')](edge,![],vneighbors);}}if(vlane!=-0x1){let laneWidth=width/vneighbors['val'];result['x']=result['x']-width/0x2+(0.5+vlane)*laneWidth;}if(hlane!=-0x1){let laneHeight=height/hneighbors[_0x425c('0x2e3')];result['y']=result['y']-height/0x2+(0.5+hlane)*laneHeight;}}return result;}[_0x425c('0x2cd')](point){this[_0x425c('0x2ca')][_0x425c('0x82')]=Math[_0x425c('0xbf')](this[_0x425c('0x2ca')][_0x425c('0x82')],point['x']);this[_0x425c('0x2ca')][_0x425c('0x1ca')]=Math['min'](this['bounds'][_0x425c('0x1ca')],point['y']);this[_0x425c('0x2ca')][_0x425c('0x74')]=Math[_0x425c('0xc0')](this[_0x425c('0x2ca')][_0x425c('0x74')],point['x']);this[_0x425c('0x2ca')][_0x425c('0x1bb')]=Math[_0x425c('0xc0')](this[_0x425c('0x2ca')][_0x425c('0x1bb')],point['y']);}[_0x425c('0x2cf')](points){for(let point of points)this[_0x425c('0x2cd')](point);}[_0x425c('0x2e4')](iterations){this[_0x425c('0x2e5')]();for(let i=0x0;i<iterations;i++){this[_0x425c('0x2e6')]();this[_0x425c('0x2e7')]();this[_0x425c('0x2e8')]();}this[_0x425c('0x2e9')]();this[_0x425c('0x2ea')]();this[_0x425c('0x2eb')]();}[_0x425c('0x2ec')](){this[_0x425c('0x2e9')]();this[_0x425c('0x2ea')]();}[_0x425c('0x2e5')](){for(let e of this[_0x425c('0xa3')][_0x425c('0x0')]){let points=this['edgePoints'][_0x425c('0x79')](e);for(let i=0x0;i<points[_0x425c('0x17')]-0x1;i++){let ss=points[i];let se=points[i+0x1];let dx=se['x']-ss['x'];if(dx!=0x0)dx/=Math[_0x425c('0x20d')](dx);let dy=se['y']-ss['y'];if(dy!=0x0)dy/=Math[_0x425c('0x20d')](dy);let segment=new DrawingGrid['EdgeSegment'](e,dx,dy);for(let p=ss;!p[_0x425c('0x2d0')](se);p=new Point(p['x']+dx,p['y']+dy)){if(!p['equals'](ss)&&!p[_0x425c('0x2d0')](se))this[_0x425c('0x2ed')](p['x'],p['y'])['add'](segment);}}}}['refineDegreeOneVertices'](){for(let v of this[_0x425c('0xa3')][_0x425c('0xd4')]){if(v[_0x425c('0x16')]()==0x1){let vPoint=this[_0x425c('0x2c6')][_0x425c('0x79')](v);let vCell=this['cells'][_0x425c('0x79')](vPoint);let e=v[_0x425c('0x0')][0x0];let o=e[_0x425c('0xe')](v);let oPoint=this[_0x425c('0x2c6')]['get'](o);let points=this['edgePoints'][_0x425c('0x79')](e);let start=e[_0x425c('0x8')]==o?0x0:points[_0x425c('0x17')]-0x1;let end=e[_0x425c('0x8')]==o?points[_0x425c('0x17')]-0x1:0x0;let step=e[_0x425c('0x8')]==o?+0x1:-0x1;let removeStart=-0x1,removeCount=-0x1,replaceIndex=-0x1;let replacePoint=new Point(0x0,0x0);for(let i=start;i!=end;i+=step){let ss=points[i];let se=points[i+step];let dx=se['x']-ss['x'];if(dx!=0x0)dx/=Math[_0x425c('0x20d')](dx);let dy=se['y']-ss['y'];if(dy!=0x0)dy/=Math[_0x425c('0x20d')](dy);for(let p=ss;!p[_0x425c('0x2d0')](se);p=new Point(p['x']+dx,p['y']+dy)){if(p[_0x425c('0x2d0')](vPoint)||p[_0x425c('0x2d0')](oPoint))continue;if(!this[_0x425c('0x2c8')][_0x425c('0xa7')](p))continue;let cell=this[_0x425c('0x2c8')][_0x425c('0x79')](p);if(vCell==null){this[_0x425c('0x2ee')](cell,p,e,dy==0x0);}else{if(cell['content'][_0x425c('0x17')]==0x1){Utils[_0x425c('0x7')](vCell[_0x425c('0x2ef')],v);if(vCell[_0x425c('0x2ef')]['length']==0x0)this[_0x425c('0x2c8')][_0x425c('0xa8')](vPoint);vCell=null;cell[_0x425c('0x2ef')][_0x425c('0x17')]=0x0;cell[_0x425c('0x5c')](v);this[_0x425c('0x2c6')][_0x425c('0xa4')](v,p);replaceIndex=i+step;replacePoint=p;if(step==+0x1){removeStart=i+0x2;removeCount=points[_0x425c('0x17')]-i-0x2;}else if(step==-0x1){removeStart=0x0;removeCount=i-0x1;}}}}}if(removeStart!=-0x1){points[replaceIndex]=replacePoint;points['splice'](removeStart,removeCount);}}}}['removeUnusedRows'](){for(let r=this[_0x425c('0x2ca')][_0x425c('0x1ca')];r<=this[_0x425c('0x2ca')]['bottom'];++r){let unused=!![];for(let c=this[_0x425c('0x2ca')][_0x425c('0x82')];c<=this[_0x425c('0x2ca')][_0x425c('0x74')];++c){let p=new Point(c,r);if(this['cells'][_0x425c('0xa7')](p)){let cell=this['cells']['get'](p);if(cell[_0x425c('0x2f0')]()){unused=![];break;}}}if(unused)this[_0x425c('0x2d3')][_0x425c('0xa4')](r,0x0);}}[_0x425c('0x2ea')](){for(let c=this[_0x425c('0x2ca')]['left'];c<=this['bounds']['right'];++c){let unused=!![];for(let r=this[_0x425c('0x2ca')][_0x425c('0x1ca')];r<=this[_0x425c('0x2ca')][_0x425c('0x1bb')];++r){let p=new Point(c,r);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](p)){let cell=this['cells'][_0x425c('0x79')](p);if(cell[_0x425c('0x2f0')]()){unused=![];break;}}}if(unused)this['columnWidths'][_0x425c('0xa4')](c,0x0);}}[_0x425c('0x2ee')](cell,p,edge,horizontal){cell[_0x425c('0x2f1')](edge,horizontal);if(cell['content'][_0x425c('0x17')]==0x0)this[_0x425c('0x2c8')][_0x425c('0xa8')](p);}['refineUTurns'](){for(let e of this[_0x425c('0xa3')][_0x425c('0x0')]){let path=this[_0x425c('0x2c7')]['get'](e);if(path[_0x425c('0x17')]<0x4)continue;for(let i=0x0;i<=path[_0x425c('0x17')]-0x4;++i){let p1=path[i];let p2=path[i+0x1];let p3=path[i+0x2];let p4=path[i+0x3];let dx1=p1['x']-p2['x'];let dx2=p2['x']-p3['x'];let dx3=p3['x']-p4['x'];let dy1=p1['y']-p2['y'];let dy3=p3['y']-p4['y'];if(dx1*dx3<0x0||dy1*dy3<0x0){let armDist1=p1['manhDistance'](p2);let armDist2=p4[_0x425c('0x2f2')](p3);let ss=armDist1<armDist2?p1:p4;let ls=armDist1<armDist2?p4:p1;let se=armDist1<armDist2?p2:p3;let cd=armDist1<armDist2?p3:p2;let sai=armDist1<armDist2?i+0x1:i+0x2;let lai=armDist1<armDist2?i+0x2:i+0x1;let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x425c('0x20d')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math['abs'](dy);let cx=cd['x']-se['x'];if(cx!=0x0)cx/=Math[_0x425c('0x20d')](cx);let cy=cd['y']-se['y'];if(cy!=0x0)cy/=Math[_0x425c('0x20d')](cy);let cl=se[_0x425c('0x2f2')](cd);let css=cx==0x0?new Point(ss['x'],ls['y']):new Point(ls['x'],ss['y']);if(this['edgeContainsRange'](e,ss,![],css,!![])){this['removeSegmentsFromRange'](e,css,!![],cd,![]);this[_0x425c('0x2f3')](e,cd,!![],se,![]);this[_0x425c('0x2f3')](e,se,!![],ss,![]);this[_0x425c('0x2f3')](e,ss,!![],css,!![]);this[_0x425c('0x2ed')](css['x'],css['y'])[_0x425c('0x5c')](new DrawingGrid['Bend'](e));path[_0x425c('0xa0')](i+0x1,0x2);if(sai<lai)path[i]=css;else path[i+0x1]=css;i--;continue;}for(let p=ss;!p[_0x425c('0x2d0')](se);p=new Point(p['x']+dx,p['y']+dy)){let cr=p;let unused=!![];for(let j=0x1;j<cl;++j){cr=new Point(cr['x']+cx,cr['y']+cy);if(this['cells'][_0x425c('0xa7')](cr)){let cell=this[_0x425c('0x2c8')][_0x425c('0x79')](cr);if(cell[_0x425c('0x2f0')]()){unused=![];break;}}}if(unused){let toRemove=se;for(let j=0x0;j<=cl;++j){if(this[_0x425c('0x2c8')][_0x425c('0xa7')](toRemove))this[_0x425c('0x2ee')](this[_0x425c('0x2c8')][_0x425c('0x79')](toRemove),toRemove,e,cy==0x0);toRemove=new Point(toRemove['x']+cx,toRemove['y']+cy);}for(let ap=p;!ap[_0x425c('0x2d0')](se);ap=new Point(ap['x']+dx,ap['y']+dy)){let sp=dx2==0x0?new Point(ap['x'],cd['y']):new Point(cd['x'],ap['y']);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](ap))this[_0x425c('0x2ee')](this[_0x425c('0x2c8')][_0x425c('0x79')](ap),ap,e,dy==0x0);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](sp))this['removeFromCell'](this[_0x425c('0x2c8')][_0x425c('0x79')](sp),sp,e,dy==0x0);}let removes=!![];if(!p[_0x425c('0x2d0')](ss)){this[_0x425c('0x2ed')](p['x'],p['y'])[_0x425c('0x5c')](new DrawingGrid[(_0x425c('0x2d1'))](e));path[sai]=p;removes=![];}let sp2=dx2==0x0?new Point(p['x'],cd['y']):new Point(cd['x'],p['y']);let removel=!![];if(!sp2[_0x425c('0x2d0')](ls)){this[_0x425c('0x2ed')](sp2['x'],sp2['y'])[_0x425c('0x5c')](new DrawingGrid[(_0x425c('0x2d1'))](e));path[lai]=sp2;removel=![];}if(lai>sai){if(removel)path['splice'](lai,0x1);if(removes)path[_0x425c('0xa0')](sai,0x1);}else{if(removes)path[_0x425c('0xa0')](sai,0x1);if(removel)path[_0x425c('0xa0')](lai,0x1);}let ep=p;let segment=new DrawingGrid[(_0x425c('0x2f4'))](e,cx,cy);for(let j=0x1;j<cl;++j){ep=new Point(ep['x']+cx,ep['y']+cy);this[_0x425c('0x2ed')](ep['x'],ep['y'])[_0x425c('0x5c')](segment);}if(removes||removel){i=-0x1;this['normalizePath'](path,e,!![]);}break;}}}}}}[_0x425c('0x2e8')](){for(let e of this[_0x425c('0xa3')][_0x425c('0x0')]){let path=this[_0x425c('0x2c7')]['get'](e);if(path[_0x425c('0x17')]<0x4)continue;for(let i=0x0;i<=path[_0x425c('0x17')]-0x4;++i){let p1=path[i];let p2=path[i+0x1];let p3=path[i+0x2];let p4=path[i+0x3];let dx1=p1['x']-p2['x'];let dx3=p3['x']-p4['x'];let dy1=p1['y']-p2['y'];let dy3=p3['y']-p4['y'];if(dx1*dx3>0x0||dy1*dy3>0x0){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x425c('0x20d')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math['abs'](dy);let newBend=dx!=0x0?new Point(p4['x'],p1['y']):new Point(p1['x'],p4['y']);let cx=p4['x']-newBend['x'];if(cx!=0x0)cx/=Math['abs'](cx);let cy=p4['y']-newBend['y'];if(cy!=0x0)cy/=Math[_0x425c('0x20d')](cy);let unused=!![];for(let p=new Point(p2['x']+dx,p2['y']+dy);!p[_0x425c('0x2d0')](newBend);p=new Point(p['x']+dx,p['y']+dy)){if(this[_0x425c('0x2c8')]['has'](p)){let cell=this['cells']['get'](p);if(cell[_0x425c('0x2f0')]()){unused=![];break;}}}if(unused){for(let p=newBend;!p['equals'](p4);p=new Point(p['x']+cx,p['y']+cy)){if(this['cells']['has'](p)){let cell=this['cells']['get'](p);if(cell[_0x425c('0x2f0')]()){unused=![];break;}}}}if(unused){for(let toRemove=new Point(p1['x']+dx,p1['y']+dy);!toRemove['equals'](p2);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this['cells'][_0x425c('0xa7')](toRemove))this[_0x425c('0x2ee')](this['cells'][_0x425c('0x79')](toRemove),toRemove,e,dy==0x0);}for(let toRemove=p2;!toRemove[_0x425c('0x2d0')](p3);toRemove=new Point(toRemove['x']+cx,toRemove['y']+cy)){if(this['cells'][_0x425c('0xa7')](toRemove))this[_0x425c('0x2ee')](this[_0x425c('0x2c8')][_0x425c('0x79')](toRemove),toRemove,e,cy==0x0);}for(let toRemove=p3;!toRemove[_0x425c('0x2d0')](p4);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this[_0x425c('0x2c8')][_0x425c('0xa7')](toRemove))this['removeFromCell'](this[_0x425c('0x2c8')][_0x425c('0x79')](toRemove),toRemove,e,dy==0x0);}if(this[_0x425c('0x2c8')][_0x425c('0xa7')](p4))this[_0x425c('0x2ee')](this[_0x425c('0x2c8')][_0x425c('0x79')](p4),p4,e,!![]);this[_0x425c('0x2ed')](newBend['x'],newBend['y'])[_0x425c('0x5c')](new DrawingGrid[(_0x425c('0x2d1'))](e));let segment=new DrawingGrid[(_0x425c('0x2f4'))](e,dx,dy);for(let p=new Point(p1['x']+dx,p1['y']+dy);!p[_0x425c('0x2d0')](newBend);p=new Point(p['x']+dx,p['y']+dy)){this[_0x425c('0x2ed')](p['x'],p['y'])[_0x425c('0x5c')](segment);}segment=new DrawingGrid[(_0x425c('0x2f4'))](e,cx,cy);for(let p=new Point(newBend['x']+cx,newBend['y']+cy);!p[_0x425c('0x2d0')](p4);p=new Point(p['x']+cx,p['y']+cy)){this['getCell'](p['x'],p['y'])[_0x425c('0x5c')](segment);}path[_0x425c('0xa0')](i+0x2,0x1);path[i+0x1]=newBend;i=-0x1;this[_0x425c('0x2ce')](path,e,!![]);}}}}}[_0x425c('0x2f5')](e,p1,includeP1,p2,includeP2){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x425c('0x20d')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x425c('0x20d')](dy);let segment=new DrawingGrid[(_0x425c('0x2f4'))](e,dx,dy);let start=includeP1?p1:new Point(p1['x']+dx,p1['y']+dy);for(let p=start;!p[_0x425c('0x2d0')](p2);p=new Point(p['x']+dx,p['y']+dy))this['getCell'](p['x'],p['y'])[_0x425c('0x5c')](segment);if(includeP2)this[_0x425c('0x2ed')](p2['x'],p2['y'])[_0x425c('0x5c')](segment);}[_0x425c('0x2f3')](e,p1,removeP1,p2,removeP2){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x425c('0x20d')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x425c('0x20d')](dy);let start=removeP1?p1:new Point(p1['x']+dx,p1['y']+dy);for(let toRemove=start;!toRemove['equals'](p2);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this[_0x425c('0x2c8')][_0x425c('0xa7')](toRemove))this[_0x425c('0x2ee')](this['cells'][_0x425c('0x79')](toRemove),toRemove,e,dy==0x0);}if(removeP2&&this[_0x425c('0x2c8')][_0x425c('0xa7')](p2))this['removeFromCell'](this['cells'][_0x425c('0x79')](p2),p2,e,dy==0x0);}[_0x425c('0x2f6')](e,p1,includeP1,p2,includeP2){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math['abs'](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x425c('0x20d')](dy);let start=includeP1?p1:new Point(p1['x']+dx,p1['y']+dy);for(let toRemove=start;!toRemove[_0x425c('0x2d0')](p2);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this[_0x425c('0x2c8')]['has'](toRemove)){if(!this[_0x425c('0x2c8')][_0x425c('0x79')](toRemove)[_0x425c('0x2f7')](e,dy==0x0))return![];}}if(includeP2&&this[_0x425c('0x2c8')][_0x425c('0xa7')](p2)){if(!this[_0x425c('0x2c8')][_0x425c('0x79')](p2)[_0x425c('0x2f7')](e,dy==0x0))return![];}return!![];}[_0x425c('0x2ce')](path,e,setSegments){let points=path[_0x425c('0x9d')]();path['length']=0x0;for(let p of points){if(path['length']==0x0||!path[path['length']-0x1][_0x425c('0x2d0')](p)){let l=path[_0x425c('0x17')]-0x1;let threeAligned=l>0x0&&(path[l-0x1]['x']==path[l]['x']&&path[l]['x']==p['x']||path[l-0x1]['y']==path[l]['y']&&path[l]['y']==p['y']);if(threeAligned){if(setSegments){this[_0x425c('0x2f3')](e,path[l-0x1],![],p,![]);this[_0x425c('0x2f5')](e,path[l-0x1],![],p,![]);}path[l]=p;}else{path[_0x425c('0x14')](p);}}}}['setApartOverlappingEdges'](){let bounds=this[_0x425c('0x2ca')];this[_0x425c('0x2db')]=new Grid(bounds[_0x425c('0x74')]-bounds[_0x425c('0x82')]+0x1,bounds[_0x425c('0x1bb')]-bounds[_0x425c('0x1ca')]+0x1);this[_0x425c('0x2f8')]=new Grid(bounds[_0x425c('0x74')]-bounds[_0x425c('0x82')]+0x1,bounds[_0x425c('0x1bb')]-bounds[_0x425c('0x1ca')]+0x1);for(let r=bounds[_0x425c('0x1ca')];r<=bounds[_0x425c('0x1bb')];r++){if(this[_0x425c('0x2d3')][_0x425c('0x79')](r)==0x0)continue;let lastVertex=bounds[_0x425c('0x82')];let maxEdges=0x0;for(let c=bounds['left'];c<=bounds['right'];c++){let p=new Point(c,r);if(this[_0x425c('0x2c8')][_0x425c('0xa7')](p)){let cell=this[_0x425c('0x2c8')][_0x425c('0x79')](p);maxEdges=Math[_0x425c('0xc0')](maxEdges,cell['countEdges'](!![]));if(cell['containsVertex']()||c==bounds[_0x425c('0x74')]){this['setHorizontalEdgesInRange'](maxEdges,r,lastVertex,c);lastVertex=c;maxEdges=0x0;}}else if(c==bounds['right']){this[_0x425c('0x2f9')](maxEdges,r,lastVertex,c);}}}for(let c=bounds[_0x425c('0x82')];c<=bounds[_0x425c('0x74')];c++){if(this[_0x425c('0x2d2')][_0x425c('0x79')](c)==0x0)continue;let lastVertex=bounds[_0x425c('0x1ca')];let maxEdges=0x0;for(let r=bounds[_0x425c('0x1ca')];r<=bounds[_0x425c('0x1bb')];r++){let p=new Point(c,r);if(this['cells'][_0x425c('0xa7')](p)){let cell=this[_0x425c('0x2c8')]['get'](p);maxEdges=Math[_0x425c('0xc0')](maxEdges,cell[_0x425c('0x2fa')](![]));if(cell[_0x425c('0x2fb')]()||r==bounds[_0x425c('0x1bb')]){this['setVerticalEdgesInRange'](maxEdges,c,lastVertex,r);lastVertex=r;maxEdges=0x0;}}else if(r==bounds[_0x425c('0x1bb')]){this[_0x425c('0x2fc')](maxEdges,c,lastVertex,r);}}}}[_0x425c('0x2fd')](bend,column,row){if(bend[_0x425c('0x2fe')]!=null)return bend[_0x425c('0x2fe')];let path=this[_0x425c('0x2c7')][_0x425c('0x79')](bend[_0x425c('0x11e')]);for(let i=0x1;i<path[_0x425c('0x17')]-0x1;++i){let point=path[i];if(point['x']==column&&point['y']==row){bend[_0x425c('0x2fe')]=[path[i-0x1],path[i+0x1]];return bend[_0x425c('0x2fe')];}}return null;}[_0x425c('0x2ff')](bend,column,row){let neighborPoints=this[_0x425c('0x2fd')](bend,column,row);if(neighborPoints==null)return![];let nx=neighborPoints[0x0]['x']==column?neighborPoints[0x1]['x']:neighborPoints[0x0]['x'];return nx<column;}['bendsToTheTop'](bend,column,row){let neighborPoints=this[_0x425c('0x2fd')](bend,column,row);if(neighborPoints==null)return![];let ny=neighborPoints[0x0]['y']==row?neighborPoints[0x1]['y']:neighborPoints[0x0]['y'];return ny<row;}['setHorizontalEdgesInRange'](edges,row,c1,c2){let occupiedLanes=[];let edgeLanes=new Map();let freeLanes=new Set();for(let i=0x0;i<edges;++i)freeLanes[_0x425c('0x5c')](i);for(let i=c1;i<=c2;i++){this[_0x425c('0x2db')][_0x425c('0xa4')](i-this[_0x425c('0x2ca')][_0x425c('0x82')],row-this[_0x425c('0x2ca')][_0x425c('0x1ca')],edges);let p=new Point(i,row);let cell=this[_0x425c('0x2c8')][_0x425c('0xa7')](p)?this['cells']['get'](p):null;for(let e=0x0;e<edges;e++){let edge=occupiedLanes[e];if(edge!=null&&(cell==null||!cell['containsEdge'](edge))){occupiedLanes[e]=null;edgeLanes['delete'](edge);freeLanes[_0x425c('0x5c')](e);}}if(cell!=null){for(let item of cell[_0x425c('0x2ef')]){let segment=item instanceof DrawingGrid['EdgeSegment']?item:null;if(segment!=null&&segment['lane']==-0x1&&segment[_0x425c('0x20c')]){if(!edgeLanes[_0x425c('0xa7')](segment[_0x425c('0x11e')])){let freeLane=Utils['first'](freeLanes);segment[_0x425c('0x300')]=freeLane;segment[_0x425c('0x301')]=edges;occupiedLanes[freeLane]=segment['edge'];edgeLanes[_0x425c('0xa4')](segment[_0x425c('0x11e')],segment[_0x425c('0x300')]);freeLanes[_0x425c('0xa8')](freeLane);}else{segment[_0x425c('0x300')]=edgeLanes[_0x425c('0x79')](segment[_0x425c('0x11e')]);segment['maxNeighbors']=edges;}}let bend=item instanceof DrawingGrid['Bend']?item:null;if(bend!=null&&bend[_0x425c('0x2e1')]==-0x1){if(!edgeLanes[_0x425c('0xa7')](bend['edge'])){let freeLane=Utils['first'](freeLanes);bend['horizontalLane']=freeLane;bend[_0x425c('0x2e0')]=edges;occupiedLanes[freeLane]=bend[_0x425c('0x11e')];edgeLanes['set'](bend[_0x425c('0x11e')],bend[_0x425c('0x2e1')]);freeLanes[_0x425c('0xa8')](freeLane);}else{bend[_0x425c('0x2e1')]=edgeLanes['get'](bend[_0x425c('0x11e')]);bend['maxHNeighbors']=edges;}}}}}if(edges>0x1&&edges<0x7){let permutations=new DrawingGrid[(_0x425c('0x302'))](edges);let minCrossingsPerm=permutations['get'](0x0);let minCrossings=Number['MAX_SAFE_INTEGER'];for(let permutation of permutations[_0x425c('0x303')]()){let crossings=this[_0x425c('0x304')](edges,row,c1,c2,permutation);if(crossings<minCrossings){minCrossings=crossings;minCrossingsPerm=permutation;}if(crossings==0x0)break;}if(minCrossingsPerm!=permutations['get'](0x0))this[_0x425c('0x305')](row,c1,c2,minCrossingsPerm);}}[_0x425c('0x2fc')](edges,column,r1,r2){let occupiedLanes=[];let edgeLanes=new Map();let freeLanes=new Set();for(let i=0x0;i<edges;++i)freeLanes[_0x425c('0x5c')](i);for(let i=r1;i<=r2;i++){this[_0x425c('0x2f8')][_0x425c('0xa4')](column-this['bounds']['left'],i-this['bounds'][_0x425c('0x1ca')],edges);let p=new Point(column,i);let cell=this[_0x425c('0x2c8')]['has'](p)?this['cells'][_0x425c('0x79')](p):null;for(let e=0x0;e<edges;e++){let edge=occupiedLanes[e];if(edge!=null&&(cell==null||!cell[_0x425c('0x306')](edge))){occupiedLanes[e]=null;edgeLanes['delete'](edge);freeLanes[_0x425c('0x5c')](e);}}if(cell!=null){for(let item of cell[_0x425c('0x2ef')]){let segment=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(segment!=null&&segment[_0x425c('0x300')]==-0x1&&!segment[_0x425c('0x20c')]){if(!edgeLanes[_0x425c('0xa7')](segment[_0x425c('0x11e')])){let freeLane=Utils[_0x425c('0x307')](freeLanes);segment[_0x425c('0x300')]=freeLane;segment['maxNeighbors']=edges;occupiedLanes[freeLane]=segment['edge'];edgeLanes['set'](segment[_0x425c('0x11e')],segment['lane']);freeLanes['delete'](freeLane);}else{segment['lane']=edgeLanes['get'](segment[_0x425c('0x11e')]);segment[_0x425c('0x301')]=edges;}}let bend=item instanceof DrawingGrid[_0x425c('0x2d1')]?item:null;if(bend!=null&&bend[_0x425c('0x2df')]==-0x1){if(!edgeLanes[_0x425c('0xa7')](bend[_0x425c('0x11e')])){let freeLane=Utils[_0x425c('0x307')](freeLanes);bend[_0x425c('0x2df')]=freeLane;bend['maxVNeighbors']=edges;occupiedLanes[freeLane]=bend[_0x425c('0x11e')];edgeLanes[_0x425c('0xa4')](bend['edge'],bend[_0x425c('0x2df')]);freeLanes['delete'](freeLane);}else{bend[_0x425c('0x2df')]=edgeLanes['get'](bend[_0x425c('0x11e')]);bend['maxVNeighbors']=edges;}}}}}if(edges>0x1&&edges<0x7){let permutations=new DrawingGrid['PermutationSet'](edges);let minCrossingsPerm=permutations['get'](0x0);let minCrossings=Number[_0x425c('0x144')];for(let permutation of permutations[_0x425c('0x303')]()){let crossings=this[_0x425c('0x308')](edges,column,r1,r2,permutation);if(crossings<minCrossings){minCrossings=crossings;minCrossingsPerm=permutation;}if(crossings==0x0)break;}if(minCrossingsPerm!=permutations[_0x425c('0x79')](0x0))this['permuteVerticalEdgeLanes'](column,r1,r2,minCrossingsPerm);}}['countHorizontalEdgesCrossings'](edges,row,c1,c2,permutation){let totalCrossings=0x0;for(let i=c1;i<=c2;i++){let p=new Point(i,row);let cell=this[_0x425c('0x2c8')][_0x425c('0xa7')](p)?this[_0x425c('0x2c8')][_0x425c('0x79')](p):null;if(cell!=null){let cellCrossings=0x0;let sortedLane=[];for(let o of cell['content']){let edgeSegment=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(edgeSegment!=null&&edgeSegment['horizontal'])sortedLane[permutation[edgeSegment[_0x425c('0x300')]]]=edgeSegment;let bend=o instanceof DrawingGrid[_0x425c('0x2d1')]?o:null;if(bend!=null)sortedLane[permutation[bend[_0x425c('0x2e1')]]]=bend;}let edgesToTheTop=0x0;let downBendsToTheTop=0x0;for(let j=0x0;j<edges;++j){let o=sortedLane[j];let edgeSegment=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(edgeSegment!=null&&edgeSegment[_0x425c('0x20c')]){edgesToTheTop++;cellCrossings+=downBendsToTheTop;}let bend=o instanceof DrawingGrid[_0x425c('0x2d1')]?o:null;if(bend!=null){if(this[_0x425c('0x309')](bend,i,row))cellCrossings+=edgesToTheTop;else downBendsToTheTop++;}}totalCrossings+=cellCrossings;}}return totalCrossings;}[_0x425c('0x308')](edges,column,r1,r2,permutation){let totalCrossings=0x0;for(let i=r1;i<=r2;i++){let p=new Point(column,i);let cell=this[_0x425c('0x2c8')]['has'](p)?this[_0x425c('0x2c8')][_0x425c('0x79')](p):null;if(cell!=null){let cellCrossings=0x0;let sortedLane=[];for(let o of cell['content']){let edgeSegment=o instanceof DrawingGrid['EdgeSegment']?o:null;if(edgeSegment!=null&&!edgeSegment[_0x425c('0x20c')])sortedLane[permutation[edgeSegment[_0x425c('0x300')]]]=edgeSegment;let bend=o instanceof DrawingGrid[_0x425c('0x2d1')]?o:null;if(bend!=null)sortedLane[permutation[bend[_0x425c('0x2df')]]]=bend;}let edgesToTheLeft=0x0;let rightBendsToTheLeft=0x0;for(let j=0x0;j<edges;++j){let o=sortedLane[j];let edgeSegment=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(edgeSegment!=null&&!edgeSegment[_0x425c('0x20c')]){edgesToTheLeft++;cellCrossings+=rightBendsToTheLeft;}let bend=o instanceof DrawingGrid['Bend']?o:null;if(bend!=null){if(this['bendsToTheLeft'](bend,column,i))cellCrossings+=edgesToTheLeft;else rightBendsToTheLeft++;}}totalCrossings+=cellCrossings;}}return totalCrossings;}[_0x425c('0x305')](row,c1,c2,permutation){let laneObjects=new Set();for(let i=c1;i<=c2;i++){let p=new Point(i,row);let cell=this[_0x425c('0x2c8')][_0x425c('0xa7')](p)?this['cells'][_0x425c('0x79')](p):null;if(cell!=null){for(let o of cell[_0x425c('0x2ef')]){let s=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(s!=null&&s['horizontal']&&!laneObjects[_0x425c('0xa7')](s))laneObjects['add'](s);let b=o instanceof DrawingGrid['Bend']?o:null;if(b!=null&&!laneObjects['has'](b))laneObjects['add'](b);}}}for(let o of laneObjects){let s=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(s!=null)s[_0x425c('0x300')]=permutation[s['lane']];let b=o instanceof DrawingGrid[_0x425c('0x2d1')]?o:null;if(b!=null)b[_0x425c('0x2e1')]=permutation[b[_0x425c('0x2e1')]];}}[_0x425c('0x30a')](column,r1,r2,permutation){let laneObjects=new Set();for(let i=r1;i<=r2;i++){let p=new Point(column,i);let cell=this[_0x425c('0x2c8')][_0x425c('0xa7')](p)?this[_0x425c('0x2c8')][_0x425c('0x79')](p):null;if(cell!=null){for(let o of cell[_0x425c('0x2ef')]){let s=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(s!=null&&!s[_0x425c('0x20c')]&&!laneObjects[_0x425c('0xa7')](s))laneObjects[_0x425c('0x5c')](s);let b=o instanceof DrawingGrid[_0x425c('0x2d1')]?o:null;if(b!=null&&!laneObjects[_0x425c('0xa7')](b))laneObjects[_0x425c('0x5c')](b);}}}for(let o of laneObjects){let s=o instanceof DrawingGrid[_0x425c('0x2f4')]?o:null;if(s!=null)s[_0x425c('0x300')]=permutation[s[_0x425c('0x300')]];let b=o instanceof DrawingGrid['Bend']?o:null;if(b!=null)b['verticalLane']=permutation[b[_0x425c('0x2df')]];}}[_0x425c('0x2ed')](column,row){let i=new Point(column,row);if(!this[_0x425c('0x2c8')][_0x425c('0xa7')](i))this[_0x425c('0x2c8')][_0x425c('0xa4')](i,new DrawingGrid['Cell']());return this[_0x425c('0x2c8')]['get'](i);}}DrawingGrid[_0x425c('0x30b')]=class{constructor(){this[_0x425c('0x2ef')]=[];}['add'](item){this[_0x425c('0x2ef')][_0x425c('0x14')](item);}['removeEdgeOrBend'](e,horizontal){for(let i=0x0;i<this[_0x425c('0x2ef')][_0x425c('0x17')];i++){let item=this[_0x425c('0x2ef')][i];let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s['edge']==e&&s[_0x425c('0x20c')]==horizontal){this[_0x425c('0x2ef')]['splice'](i,0x1);break;}let b=item instanceof DrawingGrid['Bend']?item:null;if(b!=null&&b[_0x425c('0x11e')]==e){this[_0x425c('0x2ef')][_0x425c('0xa0')](i,0x1);break;}}}['countEdges'](horizontal){let count=0x0;for(let item of this[_0x425c('0x2ef')]){let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s[_0x425c('0x20c')]==horizontal)count++;let b=item instanceof DrawingGrid[_0x425c('0x2d1')]?item:null;if(b!=null)count++;}return count;}[_0x425c('0x2fb')](){for(let item of this[_0x425c('0x2ef')]){if(item instanceof Vertex)return!![];}return![];}[_0x425c('0x2f0')](){for(let item of this[_0x425c('0x2ef')]){if(item instanceof Vertex||item instanceof DrawingGrid[_0x425c('0x2d1')])return!![];}return![];}['containsEdge'](edge){for(let item of this[_0x425c('0x2ef')]){let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s[_0x425c('0x11e')]==edge)return!![];let b=item instanceof DrawingGrid['Bend']?item:null;if(b!=null&&b['edge']==edge)return!![];}return![];}[_0x425c('0x2f7')](edge,horizontal){for(let item of this['content']){let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s['edge']==edge&&s[_0x425c('0x20c')]==horizontal)return!![];}return![];}[_0x425c('0x30c')](edge,horizontal){for(let item of this[_0x425c('0x2ef')]){let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s['edge']==edge&&s['horizontal']==horizontal)return s;}return null;}[_0x425c('0x2dd')](edge){for(let item of this['content']){let b=item instanceof DrawingGrid['Bend']?item:null;if(b!=null&&b[_0x425c('0x11e')]==edge)return b;}return null;}['getEdgeLane'](edge,horizontal,neighbors){for(let item of this[_0x425c('0x2ef')]){let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s[_0x425c('0x11e')]==edge&&s[_0x425c('0x20c')]==horizontal){neighbors[_0x425c('0x2e3')]=s[_0x425c('0x301')];return s[_0x425c('0x300')];}let b=item instanceof DrawingGrid['Bend']?item:null;if(b!=null&&b[_0x425c('0x11e')]==edge){neighbors['val']=horizontal?b[_0x425c('0x2e0')]:b[_0x425c('0x2de')];return horizontal?b[_0x425c('0x2e1')]:b[_0x425c('0x2df')];}}return-0x1;}[_0x425c('0x30d')](permutation,horizontal){for(let item of this[_0x425c('0x2ef')]){let s=item instanceof DrawingGrid[_0x425c('0x2f4')]?item:null;if(s!=null&&s[_0x425c('0x20c')]==horizontal)s[_0x425c('0x300')]=permutation[s[_0x425c('0x300')]];let b=item instanceof DrawingGrid[_0x425c('0x2d1')]?item:null;if(b!=null){if(horizontal)b[_0x425c('0x2e1')]=permutation[b[_0x425c('0x2e1')]];else b[_0x425c('0x2df')]=permutation[b[_0x425c('0x2df')]];}}}};DrawingGrid['Rectangle']=class{constructor(left,top,right,bottom){this[_0x425c('0x82')]=left;this[_0x425c('0x1ca')]=top;this[_0x425c('0x74')]=right;this[_0x425c('0x1bb')]=bottom;}};DrawingGrid['Size']=class{constructor(width,height){this[_0x425c('0xe9')]=width;this['height']=height;}};DrawingGrid[_0x425c('0x2f4')]=class{constructor(edge,dx,dy){this[_0x425c('0x11e')]=edge;this['dx']=dx;this['dy']=dy;this['lane']=-0x1;this[_0x425c('0x301')]=0x1;}get[_0x425c('0x20c')](){return this['dy']==0x0;}};DrawingGrid[_0x425c('0x2d1')]=class{constructor(edge){this[_0x425c('0x11e')]=edge;this[_0x425c('0x2e1')]=-0x1;this[_0x425c('0x2e0')]=0x1;this[_0x425c('0x2df')]=-0x1;this['maxVNeighbors']=0x1;this[_0x425c('0x2fe')]=null;}};DrawingGrid[_0x425c('0x2c9')]=class extends Map{[_0x425c('0xa7')](point){let key=this[_0x425c('0x30e')](point);return super[_0x425c('0xa7')](key);}['get'](point){let key=this[_0x425c('0x30e')](point);return super[_0x425c('0x79')](key);}[_0x425c('0xa4')](point,value){let key=this['key'](point);super[_0x425c('0xa4')](key,value);}[_0x425c('0xa8')](point){let key=this[_0x425c('0x30e')](point);return super['delete'](key);}[_0x425c('0x30e')](point){return String(point['x'])+':'+String(point['y']);}};DrawingGrid[_0x425c('0x302')]=class{constructor(n){this[_0x425c('0x30f')]=[];this[_0x425c('0x310')]=[];for(let i=0x0;i<n;++i)this['current'][i]=i;this['heapPermute'](n);}[_0x425c('0x311')](n){if(n==0x1){this[_0x425c('0x312')]();}else{for(let i=0x0;i<n;i++){this[_0x425c('0x311')](n-0x1);if(n%0x2==0x1)this[_0x425c('0x313')](0x0,n-0x1);else this[_0x425c('0x313')](i,n-0x1);}}}[_0x425c('0x312')](){this[_0x425c('0x30f')]['push'](this[_0x425c('0x310')][_0x425c('0x9d')]());}[_0x425c('0x313')](i,j){let t=this[_0x425c('0x310')][i];this[_0x425c('0x310')][i]=this[_0x425c('0x310')][j];this['current'][j]=t;}['get'](i){return this['permutations'][i];}[_0x425c('0x303')](){return this[_0x425c('0x30f')];}};class Representation{constructor(stGraph,weighted,xOrdering,stEmbedding){this[_0x425c('0x314')]=stGraph[_0x425c('0x153')]();if(weighted)this['Y']=stGraph[_0x425c('0x157')](this[_0x425c('0x314')],0x0);else{this['Y']=[];for(let i=0x0;i<stGraph[_0x425c('0xd4')][_0x425c('0x17')];++i)this['Y'][this['stsort'][i]]=i;}if(stEmbedding==null){this['s']=stGraph['vertices'][this[_0x425c('0x314')][0x0]];this['t']=stGraph['vertices'][this['stsort'][this['stsort'][_0x425c('0x17')]-0x1]];this['d']=stGraph['getDualGraph'](!![]);this['d'][_0x425c('0x173')](this['s'],this['t']);}else{this['s']=stEmbedding['s'];this['t']=stEmbedding['t'];this['d']=stGraph[_0x425c('0x152')](stEmbedding[_0x425c('0xa2')],this['s'],this['t']);}if(xOrdering){if(weighted)this['X']=this['d']['getWeightedTopologicalNumbering']();else{let dsort=this['d'][_0x425c('0x153')]();this['X']=[];for(let i=0x0;i<this['d'][_0x425c('0xd4')][_0x425c('0x17')];++i)this['X'][dsort[i]]=i;}}}[_0x425c('0x82')](e){return e[_0x425c('0x25')]?this['d'][_0x425c('0x170')]['get'](this['d'][_0x425c('0xa2')][_0x425c('0xbe')](e)):this['d'][_0x425c('0x170')][_0x425c('0x79')](e);}[_0x425c('0x74')](e){return e[_0x425c('0x25')]?this['d'][_0x425c('0x170')][_0x425c('0x79')](e):this['d'][_0x425c('0x170')]['get'](this['d']['embedding'][_0x425c('0xbe')](e));}[_0x425c('0x315')](v){if(v==this['s']||v==this['t'])return this['d'][_0x425c('0x176')];let edges=this['d']['embedding'][_0x425c('0x79')](v);for(let i=0x0;i<edges[_0x425c('0x17')];++i){let e=edges[i];let n=edges[(i+0x1)%edges['length']];if(this['Y'][v[_0x425c('0x1a')]]>this['Y'][e[_0x425c('0xe')](v)[_0x425c('0x1a')]]&&this['Y'][v[_0x425c('0x1a')]]<this['Y'][n[_0x425c('0xe')](v)[_0x425c('0x1a')]])return this[_0x425c('0x82')](n);}return null;}[_0x425c('0x316')](v){if(v==this['s']||v==this['t'])return this['d'][_0x425c('0x174')];let edges=this['d'][_0x425c('0xa2')][_0x425c('0x79')](v);for(let i=0x0;i<edges['length'];++i){let e=edges[i];let n=edges[(i+0x1)%edges['length']];if(this['Y'][v['index']]<this['Y'][e[_0x425c('0xe')](v)['index']]&&this['Y'][v['index']]>this['Y'][n['getOtherEnd'](v)[_0x425c('0x1a')]])return this[_0x425c('0x74')](e);}return null;}[_0x425c('0x317')](e){return e[_0x425c('0x8')];}['dest'](e){return e[_0x425c('0x9')];}['origF'](f){if(f==this['d'][_0x425c('0x174')]||f==this['d']['rightExFace'])return this['s'];let min=f[_0x425c('0x0')][0x0]['origin'];for(let e of f['edges']){if(this['Y'][min['index']]>this['Y'][e[_0x425c('0x8')]['index']])min=e[_0x425c('0x8')];}return min;}[_0x425c('0x318')](f){if(f==this['d']['leftExFace']||f==this['d'][_0x425c('0x176')])return this['t'];let max=f[_0x425c('0x0')][0x0]['origin'];for(let e of f[_0x425c('0x0')]){if(this['Y'][max['index']]<this['Y'][e['origin'][_0x425c('0x1a')]])max=e[_0x425c('0x8')];}return max;}['leftMostIncoming'](v){if(v==this['t']){for(let e of this['t'][_0x425c('0x13')])if(this['d'][_0x425c('0x170')][_0x425c('0x79')](e)==this['d'][_0x425c('0x174')])return e;}let edges=this['d']['embedding']['get'](v);for(let i=0x0;i<edges[_0x425c('0x17')];++i){let e=edges[i];let n=edges[(i+0x1)%edges[_0x425c('0x17')]];if(this['Y'][v[_0x425c('0x1a')]]>this['Y'][e[_0x425c('0xe')](v)[_0x425c('0x1a')]]&&this['Y'][v[_0x425c('0x1a')]]<this['Y'][n[_0x425c('0xe')](v)[_0x425c('0x1a')]])return this['d'][_0x425c('0xa2')][_0x425c('0xbe')](e);}return null;}[_0x425c('0x319')](v){if(v==this['s']){for(let e of this['s'][_0x425c('0x1')])if(this['d'][_0x425c('0x170')]['get'](e)==this['d']['leftExFace'])return e;}let edges=this['d'][_0x425c('0xa2')]['get'](v);for(let i=0x0;i<edges[_0x425c('0x17')];++i){let e=edges[i];let n=edges[(i+0x1)%edges[_0x425c('0x17')]];if(this['Y'][v[_0x425c('0x1a')]]>this['Y'][e[_0x425c('0xe')](v)[_0x425c('0x1a')]]&&this['Y'][v['index']]<this['Y'][n['getOtherEnd'](v)['index']])return n;}return null;}[_0x425c('0x31a')](v){let edges=this['d'][_0x425c('0xa2')][_0x425c('0x79')](v);for(let i=0x0;i<edges[_0x425c('0x17')];++i){let e=edges[i];let n=edges[(i+0x1)%edges[_0x425c('0x17')]];if(this['Y'][v[_0x425c('0x1a')]]<this['Y'][e[_0x425c('0xe')](v)['index']]&&this['Y'][v[_0x425c('0x1a')]]>this['Y'][n[_0x425c('0xe')](v)[_0x425c('0x1a')]])return e;}return null;}['getOutEdges'](v){let outEdges=[];let e=this[_0x425c('0x319')](v);if(e!=null){do{outEdges[_0x425c('0x14')](e);e=this['d'][_0x425c('0xa2')][_0x425c('0xae')](v,e);}while(e[_0x425c('0x8')]==v&&outEdges[_0x425c('0x17')]<v['outEdges'][_0x425c('0x17')]);}return outEdges;}[_0x425c('0x31b')](v){let inEdges=[];let e=this['leftMostIncoming'](v);if(e!=null){do{inEdges[_0x425c('0x14')](e);e=this['d'][_0x425c('0xa2')][_0x425c('0xaf')](v,e);}while(e['destination']==v&&inEdges['length']<v[_0x425c('0x13')][_0x425c('0x17')]);}return inEdges;}[_0x425c('0x31c')](v){let edges=this[_0x425c('0x31d')](v);return edges[Math['floor'](edges[_0x425c('0x17')]/0x2)];}['getInMedian'](v){let edges=this[_0x425c('0x31b')](v);return edges[Math[_0x425c('0xcd')](edges[_0x425c('0x17')]/0x2)];}[_0x425c('0x31e')](){return{'y':0x0,'x1':0x0,'x2':0x0};}[_0x425c('0x31f')](){return{'x':0x0,'y1':0x0,'y2':0x0};}get['dualGraph'](){return this['d'];}get[_0x425c('0x320')](){return this['s'];}get['sink'](){return this['t'];}get[_0x425c('0x153')](){return this[_0x425c('0x314')];}}class ConstrainedVisibility extends Representation{constructor(stGraph,vpaths){super(stGraph,!![],![],null);this['d'][_0x425c('0x321')]();this[_0x425c('0x322')]=new Map();this[_0x425c('0x323')]=new Map();for(let p of vpaths){let v=new Vertex();this['d'][_0x425c('0xd4')][_0x425c('0x14')](v);this[_0x425c('0x323')][_0x425c('0xa4')](p,v);for(let e of p)this[_0x425c('0x322')][_0x425c('0xa4')](e,p);}for(let e of stGraph[_0x425c('0x0')]){if(!this[_0x425c('0x322')][_0x425c('0xa7')](e)){let p=[];p[_0x425c('0x14')](e);this['edgeToPathMap'][_0x425c('0xa4')](e,p);vpaths[_0x425c('0x14')](p);let v=new Vertex();this['d'][_0x425c('0xd4')][_0x425c('0x14')](v);this[_0x425c('0x323')][_0x425c('0xa4')](p,v);}}for(const [e,p]of this[_0x425c('0x322')][_0x425c('0xa5')]()){let pv=this[_0x425c('0x323')][_0x425c('0x79')](p);let l=this[_0x425c('0x82')](e);let r=this[_0x425c('0x74')](e);let lv=this['d']['faceToVertexMap']['get'](l);let rv=this['d'][_0x425c('0x175')][_0x425c('0x79')](r);if(!lv['adjacentTo'](pv))this['d'][_0x425c('0xe6')](lv,pv)['weight']=0.5;if(!pv[_0x425c('0x1e')](rv))this['d'][_0x425c('0xe6')](pv,rv)[_0x425c('0x2')]=0.5;}this[_0x425c('0x324')]=new Map();this[_0x425c('0x325')]=new Map();this['X']=this['d'][_0x425c('0x156')](-0.5);for(let p of vpaths){for(let e of p){let vs=this[_0x425c('0x31f')]();vs['x']=this['X'][this[_0x425c('0x323')][_0x425c('0x79')](p)['index']];vs['y2']=this['Y'][this[_0x425c('0x317')](e)[_0x425c('0x1a')]];vs['y1']=this['Y'][this[_0x425c('0x326')](e)['index']];this[_0x425c('0x325')][_0x425c('0xa4')](e,vs);}}for(let v of stGraph['vertices']){let hs=this[_0x425c('0x31e')]();hs['y']=this['Y'][v[_0x425c('0x1a')]];let x1=Number[_0x425c('0x271')];let x2=Number[_0x425c('0x27a')];for(let e of v[_0x425c('0x0')]){let p=this[_0x425c('0x322')][_0x425c('0x79')](e);x1=Math[_0x425c('0xbf')](x1,this['X'][this[_0x425c('0x323')][_0x425c('0x79')](p)[_0x425c('0x1a')]]);x2=Math['max'](x2,this['X'][this[_0x425c('0x323')][_0x425c('0x79')](p)['index']]);}hs['x1']=x1;hs['x2']=x2;this[_0x425c('0x324')][_0x425c('0xa4')](v,hs);}}get[_0x425c('0x327')](){return this[_0x425c('0x324')];}get[_0x425c('0x328')](){return this[_0x425c('0x325')];}}class OrthogonalLayout extends Layout{constructor(){super();this[_0x425c('0x2e4')]=!![];this[_0x425c('0x2ba')]=0xf;this['minLaneSize']=0xa;this['mm']=0x1;}get[_0x425c('0x1a5')](){return!![];}[_0x425c('0x1ae')](graph){graph[_0x425c('0xed')]();this[_0x425c('0xa3')]=graph;for(let edge of graph[_0x425c('0x0')])edge[_0x425c('0x2')]=0x1;if(graph['vertices'][_0x425c('0x17')]==0x0||graph[_0x425c('0x0')][_0x425c('0x17')]==0x0){this[_0x425c('0x2c6')]=new Map();for(let v of graph[_0x425c('0xd4')])this[_0x425c('0x2c6')][_0x425c('0xa4')](v,new Point(0x0,0x0));this[_0x425c('0x2c7')]=new Map();this[_0x425c('0x329')]=new DrawingGrid(graph,this[_0x425c('0x2c6')],this[_0x425c('0x2c7')]);return this[_0x425c('0x32a')](this[_0x425c('0x329')]);}let nonplanarReplacement=new Map();let stGraph=graph[_0x425c('0x148')](nonplanarReplacement);for(let edge of stGraph['edges'])edge['temporary']=![];let biconnectionEdges=stGraph[_0x425c('0x32b')]();let maxDegreeeReplacement=stGraph[_0x425c('0x158')](0x4,stGraph[_0x425c('0x132')]());stGraph[_0x425c('0xed')]();let reversedEdges=stGraph[_0x425c('0x12d')]();let r=new Representation(stGraph,!![]);let vertexToPathMap=new Map();let startEdges=new Map();let endEdges=new Map();for(let i=0x1;i<stGraph[_0x425c('0xd4')]['length']-0x1;++i){let ts=r[_0x425c('0x153')][i];let v=stGraph[_0x425c('0xd4')][ts];let path=[];switch(v['inEdges'][_0x425c('0x17')]){case 0x1:path[_0x425c('0x14')](v[_0x425c('0x13')][0x0]);path['push'](r[_0x425c('0x31c')](v));break;case 0x2:path[_0x425c('0x14')](r[_0x425c('0x32c')](v));path[_0x425c('0x14')](r[_0x425c('0x31a')](v));break;case 0x3:path[_0x425c('0x14')](r[_0x425c('0x32d')](v));path['push'](v[_0x425c('0x1')][0x0]);break;}vertexToPathMap[_0x425c('0xa4')](v,path[_0x425c('0x9d')]());startEdges[_0x425c('0xa4')](path[0x0],path);endEdges['set'](path[0x1],path);}for(let e of stGraph[_0x425c('0x0')]){if(endEdges[_0x425c('0xa7')](e)&&startEdges[_0x425c('0xa7')](e)){let p1=endEdges[_0x425c('0x79')](e);let p2=startEdges[_0x425c('0x79')](e);p1[_0x425c('0xa0')](p1['length']-0x1,0x1);p1[_0x425c('0x14')](...p2);startEdges[_0x425c('0xa4')](p1[0x0],p1);endEdges['set'](p1[p1[_0x425c('0x17')]-0x1],p1);}}let unifiedPaths=[];for(const [edge,path]of endEdges['entries']()){if(edge==path[path[_0x425c('0x17')]-0x1])unifiedPaths[_0x425c('0x14')](path);}let cv=new ConstrainedVisibility(stGraph,unifiedPaths);this[_0x425c('0x2c6')]=new Map();for(let v of stGraph['vertices']){if(v==r[_0x425c('0xc9')]||v==r[_0x425c('0x320')])continue;let vertexSegment=cv[_0x425c('0x327')][_0x425c('0x79')](v);let e=vertexToPathMap[_0x425c('0x79')](v)[0x0];let edgeSegment=cv[_0x425c('0x328')][_0x425c('0x79')](e);let vPoint=new Point(Math[_0x425c('0xcd')](edgeSegment['x']),Math[_0x425c('0xcd')](vertexSegment['y']));this[_0x425c('0x2c6')]['set'](v,vPoint);}let s=r[_0x425c('0x320')];let sSegment=cv['vertexSegments'][_0x425c('0x79')](s);let sem=r[_0x425c('0x31d')](s);let sMedian=sem[Math['floor'](sem['length']/0x2)];let sMedianSegment=cv[_0x425c('0x328')][_0x425c('0x79')](sMedian);let sPoint=new Point(Math[_0x425c('0xcd')](sMedianSegment['x']),Math['floor'](sSegment['y']));this[_0x425c('0x2c6')]['set'](s,sPoint);let t=r[_0x425c('0xc9')];let tSegment=cv[_0x425c('0x327')][_0x425c('0x79')](t);let tem=r['getInEdges'](t);let tMedian=tem[Math[_0x425c('0xcd')](tem[_0x425c('0x17')]/0x2)];let tMedianSegment=cv[_0x425c('0x328')][_0x425c('0x79')](tMedian);let tPoint=new Point(Math[_0x425c('0xcd')](tMedianSegment['x']),Math[_0x425c('0xcd')](tSegment['y']));this[_0x425c('0x2c6')][_0x425c('0xa4')](t,tPoint);this[_0x425c('0x2c7')]=new Map();for(let e of stGraph[_0x425c('0x0')]){let points=[];let eSegment=cv['edgeSegments'][_0x425c('0x79')](e);if(e['origin']==s&&s[_0x425c('0x1')]['length']==0x4&&e==sem[0x0]){points['push'](this['vertexPoints'][_0x425c('0x79')](s));points[_0x425c('0x14')](new Point(points[0x0]['x'],points[0x0]['y']-0x1));points['push'](new Point(Math[_0x425c('0xcd')](eSegment['x']),points[0x0]['y']-0x1));if(e['destination']==t&&t[_0x425c('0x13')][_0x425c('0x17')]==0x4&&e==tem[0x0]){points[_0x425c('0x14')](new Point(Math['floor'](eSegment['x']),this['vertexPoints'][_0x425c('0x79')](e[_0x425c('0x9')])['y']+0x1));points['push'](new Point(this[_0x425c('0x2c6')][_0x425c('0x79')](e[_0x425c('0x9')])['x'],this['vertexPoints']['get'](e[_0x425c('0x9')])['y']+0x1));}else{points[_0x425c('0x14')](new Point(Math[_0x425c('0xcd')](eSegment['x']),this['vertexPoints'][_0x425c('0x79')](e[_0x425c('0x9')])['y']));}points[_0x425c('0x14')](this['vertexPoints']['get'](e['destination']));this[_0x425c('0x2c7')][_0x425c('0xa4')](e,points);continue;}if(e[_0x425c('0x9')]==t&&t['inEdges'][_0x425c('0x17')]==0x4&&e==tem[0x0]){points[_0x425c('0x14')](this[_0x425c('0x2c6')][_0x425c('0x79')](e['origin']));points[_0x425c('0x14')](new Point(Math[_0x425c('0xcd')](eSegment['x']),points[0x0]['y']));points[_0x425c('0x14')](new Point(Math[_0x425c('0xcd')](eSegment['x']),this[_0x425c('0x2c6')][_0x425c('0x79')](t)['y']+0x1));points['push'](new Point(this['vertexPoints'][_0x425c('0x79')](t)['x'],this[_0x425c('0x2c6')][_0x425c('0x79')](t)['y']+0x1));points[_0x425c('0x14')](this[_0x425c('0x2c6')]['get'](t));this[_0x425c('0x2c7')][_0x425c('0xa4')](e,points);continue;}let u=e['origin'];let uSegment=cv['vertexSegments'][_0x425c('0x79')](u);let v=e[_0x425c('0x9')];let vSegment=cv[_0x425c('0x327')][_0x425c('0x79')](v);points[_0x425c('0x14')](this['vertexPoints']['get'](u));points[_0x425c('0x14')](new Point(Math[_0x425c('0xcd')](eSegment['x']),Math[_0x425c('0xcd')](uSegment['y'])));points[_0x425c('0x14')](new Point(Math[_0x425c('0xcd')](eSegment['x']),Math[_0x425c('0xcd')](vSegment['y'])));points[_0x425c('0x14')](this[_0x425c('0x2c6')][_0x425c('0x79')](v));this[_0x425c('0x2c7')]['set'](e,points);}for(let e of reversedEdges){e[_0x425c('0x23')]();this[_0x425c('0x2c7')][_0x425c('0x79')](e)[_0x425c('0x23')]();}for(const [v,c]of maxDegreeeReplacement[_0x425c('0xa5')]()){let m=Math['floor'](c[_0x425c('0xd4')][_0x425c('0x17')]/0x2);this[_0x425c('0x32e')](v,c,0x1,m+0x1,+0x1);this[_0x425c('0x32e')](v,c,c['vertices'][_0x425c('0x17')]-0x1,m,-0x1);}for(const [v,c]of maxDegreeeReplacement[_0x425c('0xa5')]()){for(let e of c[_0x425c('0x0')])stGraph[_0x425c('0xef')](e);for(let i=0x1;i<c['vertices'][_0x425c('0x17')];i++)stGraph['removeVertex'](c[_0x425c('0xd4')][i]);}for(let e of biconnectionEdges)stGraph[_0x425c('0xef')](e);let stgVertexPoints=this['vertexPoints'];this[_0x425c('0x2c6')]=new Map();for(let v of graph[_0x425c('0xd4')]){this[_0x425c('0x2c6')][_0x425c('0xa4')](v,stgVertexPoints[_0x425c('0x79')](stGraph[_0x425c('0xd8')][_0x425c('0x79')](v)));}let stgEdgePoints=this[_0x425c('0x2c7')];this[_0x425c('0x2c7')]=new Map();for(let e of graph['edges']){if(stgEdgePoints[_0x425c('0xa7')](stGraph[_0x425c('0x13c')]['get'](e))){this[_0x425c('0x2c7')][_0x425c('0xa4')](e,stgEdgePoints[_0x425c('0x79')](stGraph['edgeOrigToCopyMap'][_0x425c('0x79')](e)));}}for(const [edge,path]of nonplanarReplacement['entries']())this['edgePoints'][_0x425c('0xa4')](edge,this[_0x425c('0x32f')](path,stgEdgePoints));this[_0x425c('0x329')]=new DrawingGrid(graph,this['vertexPoints'],this['edgePoints']);return this[_0x425c('0x32a')](this[_0x425c('0x329')]);}['applyGrid'](grid){let graph=this[_0x425c('0xa3')];if(this['refine'])grid[_0x425c('0x2e4')](0x1);grid[_0x425c('0x330')](v=>({'width':v[_0x425c('0xe9')],'height':v[_0x425c('0xea')]}),this[_0x425c('0x2ba')],this[_0x425c('0x2ba')]+this[_0x425c('0x331')]);for(let v of graph[_0x425c('0xd4')]){let gp=grid[_0x425c('0x2c6')][_0x425c('0x79')](v);let p=grid[_0x425c('0x2dc')](gp);v['x']=p['x'];v['y']=p['y'];}for(let edge of graph[_0x425c('0x0')]){var points=[];let gp=grid[_0x425c('0x2c7')]['get'](edge);for(let i=0x0;i<gp[_0x425c('0x17')];++i){let p=grid[_0x425c('0x2da')](gp[i],edge,this['minLaneSize'],this[_0x425c('0x331')]);if(i==0x0||!gp[i][_0x425c('0x2d0')](gp[i-0x1]))points['push'](new Point(p['x'],p['y']));}edge[_0x425c('0xd3')]=points;this['alignEndsToNode'](edge);}return!![];}['alignEndsToNode'](edge){let p=edge[_0x425c('0xd3')];let e=p['length']-0x1;let x=p[0x0]['x'];let y=p[0x0]['y'];let orect=Rect[_0x425c('0x1ba')](edge[_0x425c('0x8')]);if(p[0x0]['x']<p[0x1]['x'])x=orect[_0x425c('0x74')]();else if(p[0x0]['x']>p[0x1]['x'])x=orect[_0x425c('0x82')]();else if(p[0x0]['y']<p[0x1]['y'])y=orect[_0x425c('0x1bb')]();else if(p[0x0]['y']>p[0x1]['y'])y=orect[_0x425c('0x1ca')]();p[0x0]=new Point(x,y);x=p[e]['x'];y=p[e]['y'];let drect=Rect['fromVertex'](edge[_0x425c('0x9')]);if(p[e]['x']<p[e-0x1]['x'])x=drect['right']();else if(p[e]['x']>p[e-0x1]['x'])x=drect['left']();else if(p[e]['y']<p[e-0x1]['y'])y=drect[_0x425c('0x1bb')]();else if(p[e]['y']>p[e-0x1]['y'])y=drect[_0x425c('0x1ca')]();p[e]=new Point(x,y);}['getType'](){return this['constructor'][_0x425c('0x1be')];}[_0x425c('0x332')](array,l,r){let d=Math['floor']((r-l+0x1)/0x2);for(let i=0x0;i<d;i++){let t=array[l+i];array[l+i]=array[r-i];array[r-i]=t;}}[_0x425c('0x32e')](v,c,rs,re,step){let dummyPath=[];let p=v;for(let i=rs;i!=re;i+=step){let d=c[_0x425c('0xd4')][i];for(let e of d[_0x425c('0x0')]){if(e[_0x425c('0x8')]==p){dummyPath[_0x425c('0x14')](...this[_0x425c('0x2c7')]['get'](e));break;}if(e[_0x425c('0x9')]==p){let destPoints=this[_0x425c('0x2c7')]['get'](e);destPoints[_0x425c('0x23')]();dummyPath['push'](...destPoints);break;}}let realEdges=[];for(let e of d[_0x425c('0x0')])if(!e[_0x425c('0xf0')])realEdges['push'](e);for(let e of realEdges){if(e[_0x425c('0x8')]==d){e[_0x425c('0x1f')](v);let path=dummyPath[_0x425c('0x9d')]();path['push'](...this['edgePoints'][_0x425c('0x79')](e));this['edgePoints']['set'](e,path);}else if(e['destination']==d){e[_0x425c('0x20')](v);let path=this[_0x425c('0x2c7')][_0x425c('0x79')](e);let destPoints=dummyPath['slice']();destPoints[_0x425c('0x23')]();path[_0x425c('0x14')](...destPoints);}}p=d;}}[_0x425c('0x32f')](edges,stgEdgePoints){let path=[];for(let e of edges)path[_0x425c('0x14')](...stgEdgePoints['get'](e));return path;}get[_0x425c('0x2e4')](){return this[_0x425c('0x333')];}set['refine'](value){this[_0x425c('0x333')]=value;}get[_0x425c('0x2ba')](){return this['_padding'];}set['padding'](value){this[_0x425c('0x2c3')]=value;}get[_0x425c('0x331')](){return this['_minLaneSize'];}set[_0x425c('0x331')](value){this['_minLaneSize']=value;}}class RadialTreeLayout extends Layout{constructor(){super();this['levelDistance']=0xa;this[_0x425c('0x1aa')]=![];this['direction']=LayoutDirection[_0x425c('0x1ab')];this['stretchFactor']=0x1;this['reversedLinks']=![];}[_0x425c('0x1ae')](graph){var root;var th=new TreeHelper(this[_0x425c('0xd0')]);this[_0x425c('0x2a9')]=th;graph['vertices'][_0x425c('0x15')](function(v){let parentEdges=th[_0x425c('0x1af')](v);if(parentEdges[_0x425c('0x17')]==0x0){root=v;return $break;}});if(!root)return $skipLayout;this[_0x425c('0xd9')]=graph['tree'](root,this[_0x425c('0xd0')]);if(!this['tree'])return $skipLayout;var rootX=root['x'];var rootY=root['y'];root['x']=0x0;root['y']=0x0;var deg=0x0;switch(this['direction']){case LayoutDirection[_0x425c('0x1ab')]:deg=0x10e;break;case LayoutDirection[_0x425c('0x1b8')]:deg=0x5a;break;case LayoutDirection[_0x425c('0x1b9')]:deg=0xb4;break;case LayoutDirection[_0x425c('0x1b6')]:deg=0x0;break;}root['leftBisectorData']=deg;root[_0x425c('0x334')]=deg+0x168;for(var l=0x0;l<this['tree'][_0x425c('0xe3')][_0x425c('0x17')]-0x1;l++){this['arrangeLevel'](l);}var xoff=0x0;var yoff=0x0;if(this['keepRootPosition']){var newRootX=root['x'];var newRootY=root['y'];xoff=rootX-newRootX;yoff=rootY-newRootY;}else{var rc=this['calcBounds']();xoff=-rc['x']+this[_0x425c('0x19f')];yoff=-rc['y']+this['margins'];}for(var i=0x0;i<this[_0x425c('0xd9')]['treeLevels'][_0x425c('0x17')];i++){var treeLevel=this[_0x425c('0xd9')][_0x425c('0xe3')][i];for(var j=0x0;j<treeLevel[_0x425c('0x17')];j++){var node=treeLevel[j];node['x']+=xoff;node['y']+=yoff;var soff=(node['x']-this[_0x425c('0xd9')][_0x425c('0x29')]['x'])*this[_0x425c('0x335')];node['x']=this[_0x425c('0xd9')][_0x425c('0x29')]['x']+soff;}}return!![];}[_0x425c('0x336')](parentLevel){var rad=this[_0x425c('0x337')](parentLevel+0x1);var nrad=this[_0x425c('0x337')](parentLevel+0x2);var angle=0x5a-Math['asin'](rad/nrad)*0xb4/Math['PI'];var parents=this[_0x425c('0xd9')][_0x425c('0xe3')][parentLevel];for(var i=0x0;i<parents[_0x425c('0x17')];i++){var parent=parents[i];var children=this[_0x425c('0xd9')][_0x425c('0xe5')](parent);if(children[_0x425c('0x17')]==0x0)continue;var lbis=parent[_0x425c('0x338')];var rbis=parent[_0x425c('0x334')];var dist;var deg;if(parentLevel!=0x0){if(children['length']==0x1){dist=0x0;deg=parent['angleData'];}else{dist=(rbis-lbis)/children['length'];deg=lbis+dist/0x2;}}else{dist=(rbis-lbis)/children[_0x425c('0x17')];deg=lbis;}children[_0x425c('0x15')](child=>{var x=rad*Math[_0x425c('0x254')](Math['PI']*deg/0xb4);var y=-rad*Math[_0x425c('0x24f')](Math['PI']*deg/0xb4);child['x']=x;child['y']=y;child[_0x425c('0x339')]=deg;deg+=dist;});}if(parentLevel==this[_0x425c('0xd9')][_0x425c('0xe3')][_0x425c('0x17')]-0x1)return $skipLayout;for(var p=0x0;p<parents[_0x425c('0x17')];p++){var parent=parents[p];var children=this[_0x425c('0xd9')][_0x425c('0xe5')](parent);for(var i=0x0;i<children[_0x425c('0x17')];i++){var n1=null,n3=null;var n2=children[i];var level=this[_0x425c('0xd9')][_0x425c('0xe3')][parentLevel+0x1];var i2=level[_0x425c('0x9c')](n2);var i1=i2-0x1;var i3=i2+0x1;if(this[_0x425c('0xd9')]['childrenOf'](n2)[_0x425c('0x17')]==0x0)continue;var turned1=![],turned2=![];while(!![]){if(i1<0x0){i1=level[_0x425c('0x17')]-0x1;turned1=!![];}n1=level[i1--];if(this[_0x425c('0xd9')][_0x425c('0xe5')](n1)[_0x425c('0x17')]==0x0)continue;break;}while(!![]){if(i3>=level[_0x425c('0x17')]){i3=0x0;turned2=!![];}n3=level[i3++];if(this[_0x425c('0xd9')][_0x425c('0xe5')](n3)[_0x425c('0x17')]==0x0)continue;break;}var a1,a2,a3;var b1,b2;var t1,t2;a1=n1[_0x425c('0x339')];a2=n2[_0x425c('0x339')];a3=n3[_0x425c('0x339')];if(turned1)a1-=0x168;if(turned2)a3+=0x168;b1=(a1+a2)/0x2;b2=(a2+a3)/0x2;if(nrad>0x0){t1=a2-angle;t2=a2+angle;if(this['tree'][_0x425c('0xe5')](parent)[_0x425c('0x17')]==0x1&&parentLevel==0x0){b1=t1;b2=t2;}else{b1=Math[_0x425c('0xc0')](b1,t1);b2=Math[_0x425c('0xbf')](b2,t2);}if(n1==n2&&i!=0x0)b1=t1;if(n2==n3)b2=t2;b1+=0.001;b2-=0.001;}n2[_0x425c('0x338')]=Math[_0x425c('0xbf')](b1,b2);n2[_0x425c('0x334')]=Math['max'](b1,b2);}}}[_0x425c('0x33a')](){var rect;for(var i=0x0;i<this[_0x425c('0xd9')][_0x425c('0xe3')][_0x425c('0x17')];i++){var treeLevel=this[_0x425c('0xd9')]['treeLevels'][i];for(var j=0x0;j<treeLevel[_0x425c('0x17')];j++){var node=treeLevel[j];var nodeRect=Rect['fromVertex'](node);if(!rect)rect=nodeRect;else rect=rect[_0x425c('0x1c6')](nodeRect);}}return rect;}['calcRadius'](level){if(level>=this[_0x425c('0xd9')][_0x425c('0xe3')][_0x425c('0x17')])return this[_0x425c('0x1a8')];if(level-0x1<0x0)return 0x0;var maxRad1=0x0,maxRad2=0x0;this[_0x425c('0xd9')][_0x425c('0xe3')][level-0x1][_0x425c('0x15')](node=>{var maxSide=Math[_0x425c('0xc0')](node[_0x425c('0xe9')],node[_0x425c('0xea')]);var radius=maxSide/0x2;maxRad1=Math[_0x425c('0xc0')](maxRad1,radius);});this[_0x425c('0xd9')][_0x425c('0xe3')][level][_0x425c('0x15')](node=>{var maxSide=Math['max'](node['width'],node[_0x425c('0xea')]);var radius=maxSide/0x2;maxRad2=Math['max'](maxRad2,radius);});return maxRad1+maxRad2+this[_0x425c('0x1a8')]+this[_0x425c('0x337')](level-0x1);}['getType'](){return this[_0x425c('0x1bd')][_0x425c('0x1be')];}get[_0x425c('0x1a8')](){return this[_0x425c('0x1bf')];}set[_0x425c('0x1a8')](value){this['_levelDistance']=value;}get[_0x425c('0x1aa')](){return this['_keepRootPosition'];}set[_0x425c('0x1aa')](value){this[_0x425c('0x2ac')]=value;}get[_0x425c('0x96')](){return this[_0x425c('0x1c1')];}set[_0x425c('0x96')](value){this[_0x425c('0x1c1')]=value;}get['stretchFactor'](){return this[_0x425c('0x33b')];}set[_0x425c('0x335')](value){this[_0x425c('0x33b')]=value;}get[_0x425c('0xd0')](){return this[_0x425c('0x1c3')];}set['reversedLinks'](value){this['_reversedLinks']=value;}}export{Anchoring,AssistantPosition,AssistantType,BorderedTreeLayout,FlowchartLayout,FractalLayout,Graph,LayeredLayout,LayoutDirection,MultipleGraphsPlacement,Orientation,OrthogonalLayout,PathFinder,RadialTreeLayout,SpringLayout,TopologicalLayout,TreeLayout,TreeLayoutLinkType,TreeMapLayout};
|
|
1
|
+
var _0x5538=['edges','outEdges','inEdges','weight','layer','balance','owner','removeEdge','remove','origin','destination','incidentWith','includes','adjacentTo','getCommonEdge','getOtherEnd','edgeTo','find','forEach','push','degree','length','outDegree','toString','index','getEnds','changeOrigin','changeDestination','changeVertex','reverse','init','consecutiveNodes','reinit','modifiedNodes','bubble','reduce','enqueue','count','getBlockedSiblings','getUnblockedSiblings','parent','immediateSiblings','markUnblocked','getMaximalConsecutiveBlockedSiblings','pertinentChildCount','markQueued','setPseudoRoot','pertinentLeafCount','templateP1','templateP3','templateQ1','templateQ2','templateP6','pertinentRoot','hasChildren','type','pNode','children','fullChildren','full','templateP2','Node','label','moveFullChildrenTo','addChild','getFirstFullChild','partialChildren','qNode','partial','emptyChildren','getFirstEmptyChild','removeChild','templateP4','getPartialChild','destroyed','becomeChild','replaceChild','templateP5','destroy','fullChildrenAreEndMost','endMostChildren','get','checkLabelDirected','empty','add','root','pseudoRoot','childrenAreFull','endMostChildrenAreEmptyOrPartial','absorbPartialChild','templateQ3','fullChildrenAreAdjacentTo','partialChildrenAtEnds','siblingOf','data','NodePair','readInReverseDirection','_type','circularLink','left','right','fullChildrenList','fullLeft','fullRight','partialRight','_label','blocked','queued','partialLeft','partialChildrenList','getNonDirectedSibling','getEndMostDirectedSibling','getOther','directionIndicator','markBlocked','fullChildrenAreAdjacent','childCount','addToFullList','removeFromFullList','addToPartialList','removeFromPartialList','addChildToPNode','removeChildFromPNode','addChildToQNode','contains','undefined','replace','getPertinentNeighbor','getEmptyNeighbor','getEndMostChild','replaceFullChildrenWith','getFullLeavesFrom','getFullLeavesTo','removeAt','getEndmostLeaves','getLeaf','getAllNodes','getQChildren','Type','getFullLeaves','direction','nextPSibling','childLink','unmarked','nodes','trackDirection','directedTowardsIndex','indexOf','splice','slice','getVertices','enumVertices','getCommonVertex','isCycle','edgeFromVertex','bigAngles','_bigAngles','graph','embedding','entries','set','addBlockEmbedding','vertexCopyToOrigMap','edgeCopyToOrigMap','has','delete','getNextRightFaceEdge','reverseEdges','replaceEdges','addEdge','getPrevious','reversed','setReverseEdges','isVertexBimodal','keys','replaceEdge','externalFace','countSourceSwitches','enumerateFaces','_faces','faceOnRightMap','enumerateFaceEdges','faceOnLeftMap','prevInEmbedding','insertEdge','edgesBetween','getReverse','vertices','faces','min','max','intersects','overlaps','getLeaves','item','addChildren','collectLeaves','insert','swim','getMin','exchange','sink','less','kess','floor','reversedLinks','parentNode','childNode','parentEdges','assignPoints','points','cloneSubset','vertexOrigToCopyMap','edgeOrigToCopyMap','tree','pop','level','Right','childEdges','layoutTraits','treeLayoutAssistant','Left','assistantPosition','Normal','reassignLevels','treeLevels','collectLevels','childrenOf','createEdge','createEdgeP','removeAllEdges','createVertex','width','height','removeVertex','addVertexAndOutEdges','addVertex','debugId','setItemIndices','splitEdge','temporary','findShortestPathVS','findShortestPathSS','dequeue','findShortestWeightedPathVS','MAX_VALUE','lower','value','getConnectedComponents','searchCounter','dfsConnectivity','clone','cutVertices','visitedEdges','foundComponents','secondLevel','searchOrder','biconnectivityDfs','stackToComponent2','backMostEdges','last','getBiconnectedComponents2','processed','planarMakeBiconnected','BlockCutpointGraph','directFromRoot','findPendantCut','addAll','getOutsideVertex','stillPlanar','getCutvertex','father','getOutsideVertexN','mergeBlocks','setNewParent','removeCnode','isPlanar','getOutsideVertexCP','embedOnSameFace','containsAll','get3EdgeConnectedComponents','test3EdgeConnectivity','getCutPairs','treeEdge','cutEdge','edge','child','any','findBlockSeparationPairs','getNeighbors','findBlockSeparationPairsB','spTreeEdge','sort','replacementFor','forReverse','getCommonEdges','depthFirstSearch','searchParent','searchComponent','getStNumbering','stOrder','findPath','convertToStGraph','isCycleEdge','getBiconnectedComponents','isPlanarSingleBicomponent','verticesInStOrder','reduction','twoChildrenLeft','savedPqTree','getPlanarEmbedding','getPlanarEmbeddingSingleBicomp','getUpwardEmbedding','entireEmbed','tEdgeOrder','savePqTree','entireEmbedDfs','unshift','findPlanarSubgraph','findPlanarSubgraphBySimpleEdgeInsertion','clear','findPlanarSubgraphByBookEmbedding','minAdjacenciesNeighbor','maxIndependentSet','intervals','minDegreeVertex','MAX_SAFE_INTEGER','countAdjacencies','createReverseMaps','planarize','size','getIncidentFaces','getFaceVertices','findShortestWeightedPathSS','vertexToFaceMap','getCommonEdgeMinWeight','splitFace','getDualGraph','DualGraph','getDualGraphE','topologicalSort','postCounter','topologicalSortDfs','getWeightedTopologicalNumberingTS','splitToMaxDegree','splitToMaxDegreeV','This\x20method\x20can\x20be\x20applied\x20only\x20on\x20an\x20acyclic\x20graph.','Not\x20a\x20transitive\x20graph.','blockToBnodeMap','cutToCnodeMap','blocks','onComponentBlocks','cutVerticesB','cutVerticesV','isPendant','isBnode','directFrom','isCnode','getBlock','mapVertices','getOutsideVertexCPN','getCnode','targetGraph','incidentFaces','edgeToFaceMap','dgCreateVertex','splitExternalFace','leftExVertex','faceToVertexMap','rightExFace','rightExVertex','cacheIncidentFace','getOriginalEdge','joins','createReverseEdge','dgCreateEdge','intervalVertices','maxWeightedCliqueOfTransitiveDAG','vertexIntervals','inclusionLevels','levelVertices','maxWeightedIndependentSet','setInclusionLevel','assignVertexToLevel','links','items','isNode','isLink','_autoRoute','findPaths','getSize','findShortestPath','getWeight','findLongestPath','findCycle','enumAllCycles','enumAllCyclesDirected','markedStack','vertexIdx','toDelete','deleted','pointStack','mark','enumCircuitsTarjan','Ignore','keepGroupLayout','multipleGraphsPlacement','Vertical','anchoring','_anchoring','_keepGroupLayout','_multipleGraphsPlacement','_margins','margins','setsLinkPoints','requiresConnectedGraph','requiresSimpleGraph','routeRepeatingLinks','requiresHierarchyInfo','isStatic','levelDistance','keepRootPosition','linkType','Default','Horizontal','requiresCascadingLinks','Cascading','arrange','isStraight','Straight','TopToBottom','RightToLeft','BottomToTop','rarrange','fromVertex','top','bottom','isHorizontal','nodeDistance','LeftToRight','_levelDistance','_nodeDistance','_keepRootPosition','_direction','_linkType','_reversedLinks','getGraphBounds','union','boundingRect','GetLFarCenter','GetLNearCenter','GetBNearCenter','GetBFarCenter','MoveNode','center','SetLinkPoints','_fcl_multiMerge','_fcl_processed','prototype','call','GetBreadth','GetLength','GetLCenter','GetBNear','GetBNearRect','GetBFar','GetLNearRect','GetLFar','GetLFarRect','GetBFarRect','GetB','GetL','OffsetL','OffsetOutLinks','node','fromCenterAndSize','branchPadding','linkPadding','orientation','nodeOrder','progressCounter','branchings','visitedNodes','postOrder','topologicalOrder','_mf_mm','furthestL','flowchartNodes','deferredMerge','composeFlowChart','GetLNear','SetLinkPointsA','pullLinksApart','composeBlocks','getFlowchartNode','isVisited','getIncomingDownLinks','registerMerge','getIncomingLoopLinks','setLoopDepth','getOutgoingLoopLinks','getOutgoingDownLinks','currentLink','setIncomingLink','branches','followedByMergeNode','nextNodes','getSequence','parentBlock','getDownLinks','isDownLink','getType','constructor','__typeName','isBackLink','isStartNode','inDegree','isEndNode','getTopologicalOrder','layoutRect','segmentsFromPoints','_mf_segments','splitPaths','abs','_branchPadding','_linkPadding','_orientation','dumpGraph','************************','log','\x20\x20\x20\x20','flowchartLayout','contentBreadth','maxLoopDepth','arranged','measure','getOutLinks','getInLinks','getBackLinks','disjoint','getFullBreadth','fullBreadth','getLoopDepth','loopDepth','getArranged','getIncomingLink','incomingLink','getNode','_fcl_arranged','placedNodes','sequence','arrangeOverflow','GetBCenter','getLinkPadding','middleBlock','leftBlock','rootNode','mergeMap','mergeNodes','centeredBranching','centerNonEmptyBranch','getContentBreadth','twoEmptyBranches','connectNodeBorderCenters','intersectsWith','arrangedAsMerge','_fcl_center','rightBlock','GetLinkPoints','getBFurthest','getBNearest','getMergeNodes','containsPoint','polylineIntersectsRect','polylinesIntersect','calcAngle','xint','yint','isEmpty','setsLinkEndPoints','vertex','branchCircles','arrangeCircles','measureCircles','sqrt','radius','isRoot','sweepAngle','angle','sin','centerDelta','cos','fromPoints','centerX','centerY','childCircles','rotatePoint','_root','layerDistance','siftingRounds','uBaryCenter','uLinkCount','uPriority','dPriority','dummy','dummificationLevel','shift','layers','dummify','minimizeCrossings','swapPairs','layout','assignCoordinates','indexInLayer','minDistances','getMinDist','computeLeftClasses','computeClasses','nodeLeftClass','computeRightClasses','nodeRightClass','nodesInLongLink','placeLeft','POSITIVE_INFINITY','rightSibling','upNodes','downNodes','diff','placeRightToLeft','placeRight','leftSibling','NEGATIVE_INFINITY','gridPosition','placeLeftToRight','placeSequence','setMinDist','adjustDirections','getNeighborOnLayer','placeSingle','combineSequences','dLinkCount','layoutLayer','moveLeft','calcDownData','calcUpData','moveRight','mapVirtualNode','nodeToLinkMap','linkToNodeMap','dBaryCenter','dedummify','initialMinimizeCrossingsDown','minimizeCrossingsDir','countCrossings','_layerDistance','_siftingRounds','iterations','refineStage','initialTemperature','temperature','random','attraction','pow','calcRepulsionForce','moveToEpsilonCircle','repulsion','calcSpringForce','applyForce','_iterations','ceil','requiresBezierLinks','makeAcyclic','bendAdjacentLinks','_bendAdjacentLinks','enableAssistants','compactAssistants','treeHelper','assistantType','branchBounds','offsetBranch','hasAssistants','branchDistance','_enableAssistants','_compactAssistants','squarify','padding','containerPadding','minNodeSize','layoutArea','weights','master','calcWeights','arrangeSquare','arrangeSiblings','doSquarify','evalRatio','layoutRow','subtractPadding','subordinates','layOutArea','headerSize','inflate','_squarify','_padding','_layoutArea','_containerPadding','vertexPoints','cells','PointMap','bounds','MIN_SAFE_INTEGER','updateBounds','getCell','normalizePath','updateBoundsFromPoints','equals','columnWidths','rowHeights','minWidth','maxWidth','minHeight','maxHeight','columnPositions','rowPositions','getPosition','horizontalEdges','getEdgeBend','maxVNeighbors','verticalLane','maxHNeighbors','horizontalLane','getEdgeLane','val','refine','refineCacheEdges','refineDegreeOneVertices','removeUnusedRows','refineSpace','removeUnusedColumns','EdgeSegment','edgePoints','content','containsVertexOrBend','removeFromCell','removeEdgeOrBend','manhDistance','edgeContainsRange','removeSegmentsFromRange','Bend','removeRedundantBends','setSegmentsInRange','containsEdgeSegment','setApartOverlappingEdges','countEdges','containsVertex','setHorizontalEdgesInRange','setVerticalEdgesInRange','getBendNeighborPoints','neighborPoints','bendsToTheLeft','containsEdge','lane','horizontal','first','maxNeighbors','PermutationSet','list','countHorizontalEdgesCrossings','permuteHorizontalEdgeLanes','verticalEdges','countVerticalEdgesCrossings','permuteVerticalEdgeLanes','bendsToTheTop','Cell','getEdgeSegment','permuteLanes','Rectangle','key','permutations','current','heapPermute','addItem','swap','stsort','getWeightedTopologicalNumbering','leftV','rightV','leftExFace','orig','dest','origF','destF','leftMostIncoming','leftMostOutgoing','getOutEdges','getNext','getInEdges','getOutMedian','getInMedian','newHSegment','newVSegment','dualGraph','pathToVertexMap','edgeToPathMap','hSegments','vSegments','minLaneSize','drawingGrid','applyGrid','source','vertexSegments','edgeSegments','mergePaths','mergePath','setCellDimensions','getEdgePointPosition','alignEndsToNode','reverseRange','_refine','_minLaneSize','stretchFactor','rightBisectorData','arrangeLevel','calcBounds','calcRadius','leftBisectorData','angleData','_stretchFactor'];var _0x5dbf=function(_0x2612f7,_0x1a8678){_0x2612f7=_0x2612f7-0x0;var _0x282793=_0x5538[_0x2612f7];return _0x282793;};import{Utils,Queue,Grid}from'@mindfusion/collections';import{Rect,Point,Geometry,Circle}from'@mindfusion/drawing';const AssistantPosition={'Left':0x1,'Right':0x2};const AssistantType={'Normal':0x1,'Left':0x2,'Right':0x3};const Anchoring={'Ignore':0x0,'Keep':0x1,'Reassign':0x2,'Custom':0x3};const LayoutDirection={'TopToBottom':0x0,'LeftToRight':0x1,'BottomToTop':0x2,'RightToLeft':0x3};const TreeLayoutLinkType={'Default':0x0,'Straight':0x1,'Cascading':0x2};const MultipleGraphsPlacement={'Vertical':0x0,'Horizontal':0x1};const Orientation={'Vertical':0x0,'Horizontal':0x1};class Vertex{constructor(){this[_0x5dbf('0x0')]=[];this[_0x5dbf('0x1')]=[];this[_0x5dbf('0x2')]=[];this[_0x5dbf('0x3')]=0x1;}['clone'](){var copy=new Vertex();if(this[_0x5dbf('0x4')]!==undefined)copy[_0x5dbf('0x4')]=this[_0x5dbf('0x4')];if(this['weight']!==undefined)copy[_0x5dbf('0x3')]=this['weight'];if(this['balance']!==undefined)copy['balance']=this[_0x5dbf('0x5')];if(this[_0x5dbf('0x6')]!==undefined)copy[_0x5dbf('0x6')]=this[_0x5dbf('0x6')];return copy;}[_0x5dbf('0x7')](edge){if(edge['origin']==this){Utils[_0x5dbf('0x8')](this[_0x5dbf('0x0')],edge);Utils['remove'](this[_0x5dbf('0x1')],edge);edge[_0x5dbf('0x9')]=null;}if(edge[_0x5dbf('0xa')]==this){Utils['remove'](this[_0x5dbf('0x0')],edge);Utils[_0x5dbf('0x8')](this[_0x5dbf('0x2')],edge);edge[_0x5dbf('0xa')]=null;}}[_0x5dbf('0xb')](edge){return this[_0x5dbf('0x0')][_0x5dbf('0xc')](edge);}[_0x5dbf('0xd')](vertex){return this[_0x5dbf('0xe')](vertex)!=null;}['getCommonEdge'](vertex){return this[_0x5dbf('0x0')]['find'](edge=>edge[_0x5dbf('0xf')](this)===vertex);}['getCommonEdges'](vertex){return this[_0x5dbf('0x0')]['every'](function(edge){return edge[_0x5dbf('0xf')](this)===vertex;},this);}[_0x5dbf('0x10')](vertex){return this[_0x5dbf('0x1')][_0x5dbf('0x11')](edge=>edge[_0x5dbf('0xa')]==vertex);}['getNeighbors'](){var neighbors=[];this[_0x5dbf('0x2')][_0x5dbf('0x12')](function(e){neighbors['push'](e[_0x5dbf('0xf')](this));},this);this[_0x5dbf('0x1')][_0x5dbf('0x12')](function(e){neighbors[_0x5dbf('0x13')](e[_0x5dbf('0xf')](this));},this);return neighbors;}[_0x5dbf('0x14')](){return this[_0x5dbf('0x0')][_0x5dbf('0x15')];}['inDegree'](){return this[_0x5dbf('0x2')][_0x5dbf('0x15')];}[_0x5dbf('0x16')](){return this[_0x5dbf('0x1')][_0x5dbf('0x15')];}[_0x5dbf('0x17')](){return this[_0x5dbf('0x18')][_0x5dbf('0x17')]();}}class Edge{constructor(origin,destination,prototype){this[_0x5dbf('0x9')]=origin;this[_0x5dbf('0xa')]=destination;this[_0x5dbf('0x3')]=0x1;if(prototype){this[_0x5dbf('0x3')]=prototype[_0x5dbf('0x3')];}}[_0x5dbf('0xf')](vertex){return this[_0x5dbf('0x9')]==vertex?this[_0x5dbf('0xa')]:this['origin'];}['getCommonVertex'](edge){if(this[_0x5dbf('0x9')]==edge[_0x5dbf('0x9')]||this['origin']==edge[_0x5dbf('0xa')])return this['origin'];if(this[_0x5dbf('0xa')]==edge[_0x5dbf('0x9')]||this[_0x5dbf('0xa')]==edge[_0x5dbf('0xa')])return this[_0x5dbf('0xa')];return null;}['joins'](v1,v2){if(this[_0x5dbf('0x9')]==v1&&this[_0x5dbf('0xa')]==v2||this[_0x5dbf('0x9')]==v2&&this[_0x5dbf('0xa')]==v1)return!![];return![];}[_0x5dbf('0x19')](){return[this[_0x5dbf('0x9')],this[_0x5dbf('0xa')]];}[_0x5dbf('0xb')](vertex){return this[_0x5dbf('0x9')]==vertex||this[_0x5dbf('0xa')]==vertex;}[_0x5dbf('0xd')](edge){return this['origin'][_0x5dbf('0x0')][_0x5dbf('0xc')](edge)||this[_0x5dbf('0xa')]['edges'][_0x5dbf('0xc')](edge);}[_0x5dbf('0x1a')](v){Utils['remove'](this[_0x5dbf('0x9')][_0x5dbf('0x0')],this);Utils['remove'](this['origin'][_0x5dbf('0x1')],this);v[_0x5dbf('0x0')]['push'](this);v['outEdges'][_0x5dbf('0x13')](this);this[_0x5dbf('0x9')]=v;}[_0x5dbf('0x1b')](v){Utils[_0x5dbf('0x8')](this['destination'][_0x5dbf('0x0')],this);Utils[_0x5dbf('0x8')](this['destination'][_0x5dbf('0x2')],this);v['edges']['push'](this);v[_0x5dbf('0x2')]['push'](this);this[_0x5dbf('0xa')]=v;}[_0x5dbf('0x1c')](v,w){if(this['origin']==v)this['changeOrigin'](w);else if(this[_0x5dbf('0xa')]==v)this[_0x5dbf('0x1b')](w);}['reverse'](){var oldOrigin=this[_0x5dbf('0x9')];var oldDest=this[_0x5dbf('0xa')];this['origin']=oldDest;Utils[_0x5dbf('0x8')](oldOrigin[_0x5dbf('0x1')],this);this['origin']['outEdges']['push'](this);this[_0x5dbf('0xa')]=oldOrigin;Utils['remove'](oldDest[_0x5dbf('0x2')],this);this['destination'][_0x5dbf('0x2')][_0x5dbf('0x13')](this);}['directTo'](destination){if(this[_0x5dbf('0xa')]!=destination)this[_0x5dbf('0x1d')]();}['createReverseEdge'](){var r=new Edge(this['destination'],this[_0x5dbf('0x9')],this);r['reversed']=!![];return r;}[_0x5dbf('0x17')](){return this[_0x5dbf('0x9')]['index'][_0x5dbf('0x17')]()+'-'+this[_0x5dbf('0xa')][_0x5dbf('0x18')]['toString']();}}class PQTree{constructor(){this[_0x5dbf('0x1e')]();}[_0x5dbf('0x1e')](){if(this[_0x5dbf('0x1f')]!=null){this['reinit']();this[_0x5dbf('0x1f')]=null;}this['modifiedNodes']=[];this['root']=new PQTree['Node']();}[_0x5dbf('0x20')](){for(let node of this[_0x5dbf('0x21')])node[_0x5dbf('0x20')]();if(this[_0x5dbf('0x1f')]!=null){for(let node of this[_0x5dbf('0x1f')])node[_0x5dbf('0x20')]();}}['reduction'](s){this[_0x5dbf('0x1f')]=s;this['reinit']();let proot=null;if(this[_0x5dbf('0x22')](s))proot=this[_0x5dbf('0x23')](s);if(proot==null)this[_0x5dbf('0x1e')]();return proot;}[_0x5dbf('0x22')](s){let queue=new Queue();let blockCount=0x0;let blockedNodes=0x0;let offTheTop=0x0;for(let node of s)queue[_0x5dbf('0x24')](node);let blockedList=[];while(queue['count']+blockCount+offTheTop>0x1){if(queue[_0x5dbf('0x25')]==0x0)return![];let x=queue['dequeue']();if(!x['queued'])x['pertinentLeafCount']=0x1;x['markBlocked']();let bs=x[_0x5dbf('0x26')]();let us=x[_0x5dbf('0x27')]();if(us[_0x5dbf('0x15')]>0x0){let y=us[0x0];x[_0x5dbf('0x28')]=y[_0x5dbf('0x28')];x['markUnblocked']();}else if(x[_0x5dbf('0x29')]==null||x[_0x5dbf('0x29')][_0x5dbf('0x25')]<0x2){x[_0x5dbf('0x2a')]();}if(!x['blocked']){let y=x['parent'];let list=[];if(bs[_0x5dbf('0x15')]>0x0){list=x[_0x5dbf('0x2b')]();for(let z of list){z['markUnblocked']();z[_0x5dbf('0x28')]=y;y[_0x5dbf('0x2c')]=y[_0x5dbf('0x2c')]+0x1;}}if(y==null){offTheTop=0x1;}else{y[_0x5dbf('0x2c')]=y[_0x5dbf('0x2c')]+0x1;if(y['unmarked']){queue[_0x5dbf('0x24')](y);y[_0x5dbf('0x2d')]();}}blockCount-=bs[_0x5dbf('0x15')];blockedNodes-=list[_0x5dbf('0x15')];}else{blockedList[_0x5dbf('0x13')](x);blockCount=blockCount+0x1-bs[_0x5dbf('0x15')];blockedNodes++;}}if(blockCount>0x1)return![];if(blockCount==0x1&&blockedNodes>0x1){let z=new PQTree['Node']();z[_0x5dbf('0x2c')]=blockedNodes;z[_0x5dbf('0x2e')](blockedList);}return!![];}[_0x5dbf('0x23')](s){let queue=new Queue();for(let x of s){queue['enqueue'](x);x[_0x5dbf('0x2f')]=0x1;}while(queue[_0x5dbf('0x25')]>0x0){let x=queue['dequeue']();this['modifiedNodes'][_0x5dbf('0x13')](x);if(x[_0x5dbf('0x2f')]<s[_0x5dbf('0x15')]&&s['length']!=0x1){let y=x[_0x5dbf('0x28')];y[_0x5dbf('0x2f')]=y['pertinentLeafCount']+x[_0x5dbf('0x2f')];y[_0x5dbf('0x2c')]=y[_0x5dbf('0x2c')]-0x1;if(y[_0x5dbf('0x2c')]==0x0)queue[_0x5dbf('0x24')](y);if(!(this['templateL1'](x)||this[_0x5dbf('0x30')](x)||this[_0x5dbf('0x31')](x)||this['templateP5'](x)||this[_0x5dbf('0x32')](x)||this[_0x5dbf('0x33')](x))){return null;}}else{this['pertinentRoot']=x;if(!(this['templateL1'](x)||this[_0x5dbf('0x30')](x)||this['templateP2'](x)||this['templateP4'](x)||this[_0x5dbf('0x34')](x)||this[_0x5dbf('0x32')](x)||this['templateQ2'](x)||this['templateQ3'](x))){return null;}}}return this[_0x5dbf('0x35')];}['templateL1'](lNode){if(lNode[_0x5dbf('0x36')]())return![];lNode['label']=NodeLabel['full'];return!![];}['templateP1'](pNode){if(pNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x38')])return![];if(pNode[_0x5dbf('0x39')]!=pNode[_0x5dbf('0x3a')])return![];pNode['label']=NodeLabel[_0x5dbf('0x3b')];return!![];}[_0x5dbf('0x3c')](pNode){if(pNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x38')])return![];if(pNode['partialChildren']>0x0)return![];if(pNode[_0x5dbf('0x3a')]==0x0)return![];if(pNode[_0x5dbf('0x3a')]>0x1&&pNode['emptyChildren']>0x0){let fullSubTree=new PQTree[(_0x5dbf('0x3d'))]();fullSubTree[_0x5dbf('0x3e')]=NodeLabel['full'];pNode[_0x5dbf('0x3f')](fullSubTree);pNode[_0x5dbf('0x40')](fullSubTree);this['pertinentRoot']=fullSubTree;}else{this['pertinentRoot']=pNode[_0x5dbf('0x41')]();}return!![];}[_0x5dbf('0x31')](pNode){if(pNode['type']!=NodeType[_0x5dbf('0x38')])return![];if(pNode[_0x5dbf('0x42')]>0x0)return![];if(pNode[_0x5dbf('0x3a')]==0x0)return![];let parent=pNode[_0x5dbf('0x28')];let qNode=new PQTree[(_0x5dbf('0x3d'))]();qNode['type']=NodeType[_0x5dbf('0x43')];qNode[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x44')];if(pNode[_0x5dbf('0x3a')]>0x1){let fullSubTree=new PQTree[(_0x5dbf('0x3d'))]();fullSubTree[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x3b')];pNode[_0x5dbf('0x3f')](fullSubTree);qNode[_0x5dbf('0x40')](fullSubTree);}else{let fullChild=pNode[_0x5dbf('0x41')]();pNode['removeChild'](fullChild);qNode[_0x5dbf('0x40')](fullChild);}parent['replaceChild'](pNode,qNode);if(pNode[_0x5dbf('0x45')]>0x1){let emptySubTree=pNode;pNode[_0x5dbf('0x20')](![]);qNode[_0x5dbf('0x40')](emptySubTree);}else{let emptyChild=pNode[_0x5dbf('0x46')]();pNode[_0x5dbf('0x47')](emptyChild);qNode[_0x5dbf('0x40')](emptyChild);}return!![];}[_0x5dbf('0x48')](pNode){if(pNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x38')])return![];if(pNode[_0x5dbf('0x42')]!=0x1)return![];let qNode=pNode[_0x5dbf('0x49')](0x0);if(pNode[_0x5dbf('0x3a')]>0x0){if(pNode['fullChildren']>0x1){let fullSubTree=new PQTree[(_0x5dbf('0x3d'))]();fullSubTree[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x3b')];pNode[_0x5dbf('0x3f')](fullSubTree);qNode[_0x5dbf('0x40')](fullSubTree);}else{let fullChild=pNode[_0x5dbf('0x41')]();pNode['removeChild'](fullChild);qNode[_0x5dbf('0x40')](fullChild);}}if(pNode[_0x5dbf('0x39')]==0x1){if(pNode[_0x5dbf('0x28')]!=null){if(pNode[_0x5dbf('0x28')][_0x5dbf('0x4a')]){pNode[_0x5dbf('0x4b')](qNode);}else{pNode[_0x5dbf('0x28')][_0x5dbf('0x4c')](pNode,qNode);pNode['destroy']();this[_0x5dbf('0x35')]=qNode;}}else{qNode[_0x5dbf('0x28')]=null;this['root']=qNode;this[_0x5dbf('0x35')]=qNode;}}else{this[_0x5dbf('0x35')]=qNode;}return!![];}[_0x5dbf('0x4d')](pNode){if(pNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x38')])return![];if(pNode[_0x5dbf('0x42')]!=0x1)return![];let parent=pNode['parent'];let qNode=pNode['getPartialChild'](0x0);pNode[_0x5dbf('0x47')](qNode);if(pNode[_0x5dbf('0x3a')]>0x0){if(pNode['fullChildren']>0x1){let fullSubTree=new PQTree['Node']();fullSubTree[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x3b')];pNode[_0x5dbf('0x3f')](fullSubTree);qNode[_0x5dbf('0x40')](fullSubTree);}else{let fullChild=pNode[_0x5dbf('0x41')]();pNode[_0x5dbf('0x47')](fullChild);qNode[_0x5dbf('0x40')](fullChild);}}parent[_0x5dbf('0x4c')](pNode,qNode);switch(pNode[_0x5dbf('0x45')]){case 0x0:pNode[_0x5dbf('0x4e')]();break;case 0x1:{let emptyChild=pNode[_0x5dbf('0x46')]();pNode['removeChild'](emptyChild);qNode[_0x5dbf('0x40')](emptyChild);pNode['destroy']();}break;default:pNode[_0x5dbf('0x20')](![]);qNode[_0x5dbf('0x40')](pNode);break;}return!![];}[_0x5dbf('0x34')](pNode){if(pNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x38')])return![];if(pNode['partialChildren']!=0x2)return![];let qNode1=pNode['getPartialChild'](0x0);let qNode2=pNode[_0x5dbf('0x49')](0x1);if(!qNode1[_0x5dbf('0x4f')]()||!qNode2[_0x5dbf('0x4f')]())return![];qNode1['pertinentLeafCount']=pNode[_0x5dbf('0x2f')];if(pNode['fullChildren']>0x0){if(pNode[_0x5dbf('0x3a')]>0x1){let fullSubTree=new PQTree[(_0x5dbf('0x3d'))]();fullSubTree[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x3b')];pNode[_0x5dbf('0x3f')](fullSubTree);qNode1[_0x5dbf('0x40')](fullSubTree);}else{let fullChild=pNode[_0x5dbf('0x41')]();pNode['removeChild'](fullChild);qNode1['addChild'](fullChild);}}if(qNode1[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x44')]&&qNode2[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x44')]){let endMostChildren1=qNode2[_0x5dbf('0x50')];let endMostChildren2=qNode1[_0x5dbf('0x50')];if(endMostChildren1[_0x5dbf('0x25')]==0x2&&endMostChildren2['count']==0x2){let tempNode=null;let fullEndMostNode1=null;let emptyEndMostNode1=null;for(let i=0x0;i<endMostChildren1[_0x5dbf('0x25')];i++){tempNode=endMostChildren1[_0x5dbf('0x51')](i);if(tempNode[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x3b')]))fullEndMostNode1=tempNode;else if(tempNode[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x53')]))emptyEndMostNode1=tempNode;}let fullEndMostNode2=null;let emptyEndMostNode2=null;for(let i=0x0;i<endMostChildren2['count'];i++){tempNode=endMostChildren2[_0x5dbf('0x51')](i);if(tempNode[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x3b')]))fullEndMostNode2=tempNode;else if(tempNode[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x53')]))emptyEndMostNode2=tempNode;}if(fullEndMostNode1!=null&&emptyEndMostNode1!=null&&fullEndMostNode2!=null&&emptyEndMostNode2!=null){fullEndMostNode1['parent']=qNode1;emptyEndMostNode1[_0x5dbf('0x28')]=qNode1;fullEndMostNode1[_0x5dbf('0x29')][_0x5dbf('0x54')](fullEndMostNode2);fullEndMostNode2['immediateSiblings'][_0x5dbf('0x54')](fullEndMostNode1);endMostChildren2[_0x5dbf('0x8')](fullEndMostNode2);endMostChildren2[_0x5dbf('0x54')](emptyEndMostNode1);endMostChildren1[_0x5dbf('0x8')](fullEndMostNode1);endMostChildren1['remove'](emptyEndMostNode1);qNode2[_0x5dbf('0x3f')](qNode1);pNode[_0x5dbf('0x47')](qNode2);}}}qNode2[_0x5dbf('0x4e')]();if(pNode[_0x5dbf('0x39')]==0x1){if(pNode['parent']!=null){if(pNode['parent'][_0x5dbf('0x4a')]){pNode['becomeChild'](qNode1);}else{pNode['parent'][_0x5dbf('0x4c')](pNode,qNode1);pNode[_0x5dbf('0x4e')]();this[_0x5dbf('0x35')]=qNode1;}}else{qNode1[_0x5dbf('0x28')]=null;this[_0x5dbf('0x55')]=qNode1;this[_0x5dbf('0x35')]=qNode1;}}else{this[_0x5dbf('0x35')]=qNode1;}return!![];}[_0x5dbf('0x32')](qNode){if(qNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x43')])return![];if(qNode[_0x5dbf('0x56')])return![];if(!qNode[_0x5dbf('0x57')]())return![];qNode[_0x5dbf('0x3e')]=NodeLabel['full'];return!![];}[_0x5dbf('0x33')](qNode){if(qNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x43')])return![];if(qNode[_0x5dbf('0x56')])return![];if(qNode[_0x5dbf('0x42')]>0x1)return![];if(!qNode['fullChildrenAreAdjacent']())return![];if(qNode[_0x5dbf('0x58')]()&&qNode[_0x5dbf('0x3a')]!=0x0)return![];qNode['label']=NodeLabel['partial'];if(qNode[_0x5dbf('0x42')]==0x1){let partialChild=qNode[_0x5dbf('0x49')](0x0);if(!qNode['fullChildrenAreAdjacentTo'](partialChild))return![];let endMostChildren=qNode[_0x5dbf('0x50')];if(qNode['fullChildren']==0x0&&!endMostChildren['contains'](partialChild))return![];if(!partialChild[_0x5dbf('0x4f')]())return![];qNode[_0x5dbf('0x59')](partialChild);}return!![];}[_0x5dbf('0x5a')](qNode){if(qNode[_0x5dbf('0x37')]!=NodeType['qNode'])return![];if(qNode[_0x5dbf('0x42')]>0x2)return![];if(!qNode['pseudoRoot']&&!qNode[_0x5dbf('0x58')]())return![];qNode[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x44')];if(qNode['partialChildren']==0x1){let partialChild=qNode[_0x5dbf('0x49')](0x0);if(!qNode[_0x5dbf('0x5b')](partialChild))return![];if(!partialChild['fullChildrenAreEndMost']())return![];if(qNode[_0x5dbf('0x56')]&&!qNode[_0x5dbf('0x5c')]())return![];qNode[_0x5dbf('0x59')](partialChild);}else if(qNode[_0x5dbf('0x42')]==0x2){let partialChild1=qNode['getPartialChild'](0x0);let partialChild2=qNode['getPartialChild'](0x1);if(qNode[_0x5dbf('0x3a')]==0x0&&!partialChild1[_0x5dbf('0x5d')](partialChild2))return![];if(!partialChild1[_0x5dbf('0x4f')]()||!partialChild2['fullChildrenAreEndMost']())return![];if(!(qNode[_0x5dbf('0x5b')](partialChild1)&&qNode[_0x5dbf('0x5b')](partialChild2)))return![];if(qNode[_0x5dbf('0x56')]&&!qNode[_0x5dbf('0x5c')]())return![];qNode['absorbPartialChild'](partialChild1);qNode[_0x5dbf('0x59')](partialChild2);}if(qNode['pseudoRoot'])qNode[_0x5dbf('0x4e')]();return!![];}}PQTree['Node']=class{constructor(type,data){if(type==null)type=NodeType[_0x5dbf('0x38')];this[_0x5dbf('0x1e')](type);if(data)this[_0x5dbf('0x5e')]=data;if(type==NodeType['directionIndicator']){this[_0x5dbf('0x29')]=new PQTree[(_0x5dbf('0x5f'))](-0x1);this[_0x5dbf('0x60')]=![];}}[_0x5dbf('0x1e')](nodeType){this[_0x5dbf('0x61')]=nodeType;this[_0x5dbf('0x5e')]=null;this['parent']=null;this['immediateSiblings']=null;this[_0x5dbf('0x50')]=null;this[_0x5dbf('0x62')]=null;this[_0x5dbf('0x63')]=null;this[_0x5dbf('0x64')]=null;this['childCount']=0x0;this[_0x5dbf('0x65')]=null;this[_0x5dbf('0x66')]=null;this[_0x5dbf('0x67')]=null;this[_0x5dbf('0x3a')]=0x0;this['partialChildrenList']=null;this['partialLeft']=null;this[_0x5dbf('0x68')]=null;this[_0x5dbf('0x42')]=0x0;this[_0x5dbf('0x2c')]=0x0;this[_0x5dbf('0x2f')]=0x0;this[_0x5dbf('0x69')]=NodeLabel['empty'];this[_0x5dbf('0x6a')]=![];this[_0x5dbf('0x6b')]=![];this[_0x5dbf('0x56')]=![];this[_0x5dbf('0x4a')]=![];}[_0x5dbf('0x4e')](){if(this[_0x5dbf('0x56')]){this[_0x5dbf('0x28')]=null;this[_0x5dbf('0x29')]=null;this[_0x5dbf('0x63')]=null;this['right']=null;this[_0x5dbf('0x66')]=null;this['fullRight']=null;this[_0x5dbf('0x6c')]=null;this[_0x5dbf('0x68')]=null;this['childCount']=0x0;this[_0x5dbf('0x42')]=0x0;this[_0x5dbf('0x2c')]=0x0;this[_0x5dbf('0x2f')]=0x0;this[_0x5dbf('0x62')]=null;this[_0x5dbf('0x6d')]=null;this[_0x5dbf('0x6b')]=![];}else{this[_0x5dbf('0x1e')](NodeType[_0x5dbf('0x43')]);}this[_0x5dbf('0x4a')]=!![];}[_0x5dbf('0x20')](reinitParent){if(typeof reinitParent=='undefined')reinitParent=!![];this[_0x5dbf('0x3e')]=NodeLabel[_0x5dbf('0x53')];this[_0x5dbf('0x6b')]=![];this[_0x5dbf('0x6a')]=![];this[_0x5dbf('0x2c')]=0x0;this['pertinentLeafCount']=0x0;let parent=this[_0x5dbf('0x28')];if(reinitParent&&parent!=null&&(parent[_0x5dbf('0x3e')]!=NodeLabel[_0x5dbf('0x53')]||parent['queued']||parent[_0x5dbf('0x6a')]||parent[_0x5dbf('0x2c')]!=0x0||parent['pertinentLeafCount']!=0x0||parent[_0x5dbf('0x3a')]!=0x0||parent['partialChildren']!=0x0)){parent[_0x5dbf('0x20')]();}}[_0x5dbf('0x26')](){let blockedSiblings=[];if(this[_0x5dbf('0x29')]!=null){let node=this['getNonDirectedSibling'](this[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1));if(node!=null&&node[_0x5dbf('0x6a')])blockedSiblings[_0x5dbf('0x13')](node);node=this[_0x5dbf('0x6e')](this[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0));if(node!=null&&node[_0x5dbf('0x6a')])blockedSiblings[_0x5dbf('0x13')](node);}return blockedSiblings;}[_0x5dbf('0x27')](){let unblockedSiblings=[];if(this[_0x5dbf('0x29')]!=null){let node=this[_0x5dbf('0x6e')](this[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1));if(node==null){node=this[_0x5dbf('0x6f')](this[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1));if(node!=null)unblockedSiblings[_0x5dbf('0x13')](node);}else if(!node[_0x5dbf('0x6a')]&&node[_0x5dbf('0x28')]!=null&&!node[_0x5dbf('0x28')][_0x5dbf('0x4a')]){unblockedSiblings[_0x5dbf('0x13')](node);}node=this['getNonDirectedSibling'](this['immediateSiblings'][_0x5dbf('0x51')](0x0));if(node==null){node=this[_0x5dbf('0x6f')](this['immediateSiblings'][_0x5dbf('0x51')](0x0));if(node!=null)unblockedSiblings[_0x5dbf('0x13')](node);}else if(!node[_0x5dbf('0x6a')]&&node[_0x5dbf('0x28')]!=null&&!node[_0x5dbf('0x28')][_0x5dbf('0x4a')]){unblockedSiblings[_0x5dbf('0x13')](node);}}return unblockedSiblings;}[_0x5dbf('0x6f')](otherSide){let endmost=null;if(this[_0x5dbf('0x29')][_0x5dbf('0x70')](otherSide)!=null)endmost=this[_0x5dbf('0x29')][_0x5dbf('0x70')](otherSide)[_0x5dbf('0x6f')](this);else if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')])endmost=this;return endmost;}['getNonDirectedSibling'](otherSide){let sibling=null;if(this['immediateSiblings'][_0x5dbf('0x70')](otherSide)!=null){sibling=!(this[_0x5dbf('0x29')]['getOther'](otherSide)[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')])?this[_0x5dbf('0x29')]['getOther'](otherSide):this[_0x5dbf('0x29')][_0x5dbf('0x70')](otherSide)['getNonDirectedSibling'](this);}return sibling;}['setPseudoRoot'](blockedList){this[_0x5dbf('0x37')]=NodeType[_0x5dbf('0x43')];this[_0x5dbf('0x56')]=!![];let endmostChildren=[];let prevNode=null;for(let node of blockedList){if(!node[_0x5dbf('0x6a')])continue;node[_0x5dbf('0x28')]=this;for(let i=0x0;i<=0x1;++i){if(!node[_0x5dbf('0x6e')](node[_0x5dbf('0x29')][_0x5dbf('0x51')](i))[_0x5dbf('0x6a')]){if(endmostChildren['length']==0x0)prevNode=node[_0x5dbf('0x29')]['get'](0x1-i);endmostChildren[_0x5dbf('0x13')](node);break;}}}let prchildren=[];let prchild=endmostChildren[0x0];prchildren['push'](prchild);prchild[_0x5dbf('0x28')]=this;while(prchild!=endmostChildren[0x1]){let swap=prchild;prchild=prchild[_0x5dbf('0x29')][_0x5dbf('0x70')](prevNode);prevNode=swap;prchildren[_0x5dbf('0x13')](prchild);prchild['parent']=this;}for(let child of prchildren)this[_0x5dbf('0x40')](child,![]);this['endMostChildren'][_0x5dbf('0x54')](prchildren[0x0]);this[_0x5dbf('0x50')][_0x5dbf('0x54')](prchildren[prchildren[_0x5dbf('0x15')]-0x1]);}[_0x5dbf('0x2b')](){let blockedSiblings=[];for(let i=0x0;i<this[_0x5dbf('0x29')][_0x5dbf('0x25')];i++){let previousNode=this;let currentNode=this[_0x5dbf('0x29')][_0x5dbf('0x51')](i);while(currentNode!=null&&(currentNode[_0x5dbf('0x6a')]||currentNode[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')])){if(!(currentNode[_0x5dbf('0x37')]==NodeType['directionIndicator']))blockedSiblings['push'](currentNode);let nextNode=currentNode[_0x5dbf('0x29')][_0x5dbf('0x70')](previousNode);previousNode=currentNode;currentNode=nextNode;}}return blockedSiblings;}[_0x5dbf('0x72')](){this['blocked']=!![];}[_0x5dbf('0x2a')](){this[_0x5dbf('0x6a')]=![];}[_0x5dbf('0x2d')](){this[_0x5dbf('0x6b')]=!![];}[_0x5dbf('0x73')](){if(this[_0x5dbf('0x3a')]==0x0)return!![];let currentChild=null;let fullCount=0x1;for(let i=0x0;i<this[_0x5dbf('0x65')][_0x5dbf('0x29')][_0x5dbf('0x25')];i++){currentChild=this['fullChildrenList'][_0x5dbf('0x29')]['get'](i);let previousChild=this[_0x5dbf('0x65')];while(fullCount<this[_0x5dbf('0x3a')]&¤tChild!=null&&(currentChild[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x3b')]||currentChild['type']==NodeType[_0x5dbf('0x71')])){if(!(currentChild[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]))fullCount++;let nextChild=currentChild[_0x5dbf('0x29')]['getOther'](previousChild);previousChild=currentChild;currentChild=nextChild;}}return fullCount==this[_0x5dbf('0x3a')];}[_0x5dbf('0x5b')](node){if(this[_0x5dbf('0x3a')]==0x0)return!![];return this[_0x5dbf('0x73')]()&&(node['immediateSiblings'][_0x5dbf('0x51')](0x0)!=null&&node['immediateSiblings']['get'](0x0)[_0x5dbf('0x52')](node,NodeLabel[_0x5dbf('0x3b')])||node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&node[_0x5dbf('0x29')]['get'](0x1)[_0x5dbf('0x52')](node,NodeLabel[_0x5dbf('0x3b')]));}[_0x5dbf('0x4f')](){if(this[_0x5dbf('0x3a')]==0x0)return!![];if(!this[_0x5dbf('0x73')]())return![];for(let i=0x0;i<this[_0x5dbf('0x50')][_0x5dbf('0x25')];i++){if(this[_0x5dbf('0x56')]){let endNode=this['endMostChildren'][_0x5dbf('0x51')](i);if(endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)['parent']!=this){endNode=endNode[_0x5dbf('0x29')]['get'](0x0);}else if(endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&endNode['immediateSiblings'][_0x5dbf('0x51')](0x1)[_0x5dbf('0x28')]!=this){endNode=endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1);}if(this[_0x5dbf('0x50')][_0x5dbf('0x51')](i)[_0x5dbf('0x52')](endNode,NodeLabel[_0x5dbf('0x3b')]))return!![];}else{if(this['endMostChildren'][_0x5dbf('0x51')](i)[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x3b')]))return!![];}}return![];}[_0x5dbf('0x5c')](){if(this[_0x5dbf('0x42')]==0x0)return!![];if(this[_0x5dbf('0x42')]==0x1){for(let i=0x0;i<this[_0x5dbf('0x50')]['count'];i++){if(this[_0x5dbf('0x56')]){let endNode=this[_0x5dbf('0x50')][_0x5dbf('0x51')](i);if(endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)['parent']!=this){endNode=endNode[_0x5dbf('0x29')]['get'](0x0);}else if(endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)[_0x5dbf('0x28')]!=this){endNode=endNode['immediateSiblings'][_0x5dbf('0x51')](0x1);}if(this[_0x5dbf('0x50')][_0x5dbf('0x51')](i)['checkLabelDirected'](endNode,NodeLabel[_0x5dbf('0x44')]))return!![];}else{if(this[_0x5dbf('0x50')][_0x5dbf('0x51')](i)[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x44')]))return!![];}}return![];}for(let i=0x0;i<this[_0x5dbf('0x50')][_0x5dbf('0x25')];i++){if(this[_0x5dbf('0x56')]){let endNode=this[_0x5dbf('0x50')]['get'](i);if(endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)[_0x5dbf('0x28')]!=this){endNode=endNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0);}else if(endNode['immediateSiblings'][_0x5dbf('0x51')](0x1)!=null&&endNode['immediateSiblings'][_0x5dbf('0x51')](0x1)[_0x5dbf('0x28')]!=this){endNode=endNode['immediateSiblings']['get'](0x1);}if(!this[_0x5dbf('0x50')]['get'](i)[_0x5dbf('0x52')](endNode,NodeLabel['partial']))return![];}else{if(!this[_0x5dbf('0x50')][_0x5dbf('0x51')](i)[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x44')]))return![];}}return!![];}[_0x5dbf('0x58')](){for(let i=0x0;i<this[_0x5dbf('0x50')][_0x5dbf('0x25')];i++){if(this[_0x5dbf('0x50')][_0x5dbf('0x51')](i)['checkLabelDirected'](null,NodeLabel['full']))return![];}return!![];}[_0x5dbf('0x57')](){if(this[_0x5dbf('0x37')]==NodeType['qNode']){let countFullEndMost=0x0;for(let i=0x0;i<this[_0x5dbf('0x50')][_0x5dbf('0x25')];i++){if(this['endMostChildren']['get'](i)[_0x5dbf('0x52')](null,NodeLabel[_0x5dbf('0x3b')]))countFullEndMost++;}return countFullEndMost==this['endMostChildren']['count']&&this['fullChildrenAreAdjacent']();}return this['fullChildren']==this[_0x5dbf('0x74')];}['twoChildrenLeft'](){if(this[_0x5dbf('0x50')][_0x5dbf('0x25')]==0x2)return this[_0x5dbf('0x50')]['get'](0x0)[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)==this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x1);return![];}[_0x5dbf('0x49')](index){if(index==0x0)return this[_0x5dbf('0x6d')];if(index==0x1)return this['partialChildrenList'][_0x5dbf('0x68')];return null;}[_0x5dbf('0x41')](){return this['fullChildrenList'];}[_0x5dbf('0x46')](){let child=this[_0x5dbf('0x62')];do{if(child['label']==NodeLabel[_0x5dbf('0x53')])break;child=child[_0x5dbf('0x64')];}while(child!=this[_0x5dbf('0x62')]);return child;}[_0x5dbf('0x75')](node){this[_0x5dbf('0x3a')]++;node[_0x5dbf('0x66')]=null;node[_0x5dbf('0x67')]=null;if(this[_0x5dbf('0x65')]==null){this['fullChildrenList']=node;this['fullChildrenList']['fullLeft']=this[_0x5dbf('0x65')];this[_0x5dbf('0x65')]['fullRight']=this[_0x5dbf('0x65')];}else{node[_0x5dbf('0x66')]=this[_0x5dbf('0x65')]['fullLeft'];node[_0x5dbf('0x66')][_0x5dbf('0x67')]=node;this['fullChildrenList']['fullLeft']=node;node['fullRight']=this['fullChildrenList'];this[_0x5dbf('0x65')]=node;}}[_0x5dbf('0x76')](node){this[_0x5dbf('0x3a')]--;if(node[_0x5dbf('0x67')]==node){node[_0x5dbf('0x67')]=null;node['fullLeft']=null;this[_0x5dbf('0x65')]=null;}else{if(node==this[_0x5dbf('0x65')]){this[_0x5dbf('0x65')]=this[_0x5dbf('0x65')][_0x5dbf('0x67')];}node[_0x5dbf('0x67')][_0x5dbf('0x66')]=node['fullLeft'];node[_0x5dbf('0x66')]['fullRight']=node[_0x5dbf('0x67')];node[_0x5dbf('0x66')]=null;node[_0x5dbf('0x67')]=null;}}[_0x5dbf('0x77')](node){this['partialChildren']++;node['partialLeft']=null;node['partialRight']=null;if(this[_0x5dbf('0x6d')]==null){this['partialChildrenList']=node;this[_0x5dbf('0x6d')]['partialLeft']=this[_0x5dbf('0x6d')];this['partialChildrenList'][_0x5dbf('0x68')]=this[_0x5dbf('0x6d')];}else{node['partialLeft']=this[_0x5dbf('0x6d')]['partialLeft'];node[_0x5dbf('0x6c')]['partialRight']=node;this[_0x5dbf('0x6d')]['partialLeft']=node;node[_0x5dbf('0x68')]=this[_0x5dbf('0x6d')];this[_0x5dbf('0x6d')]=node;}}[_0x5dbf('0x78')](node){this['partialChildren']--;if(node[_0x5dbf('0x68')]==node){node['partialRight']=null;node['partialLeft']=null;this[_0x5dbf('0x6d')]=null;}else{if(node==this['partialChildrenList']){this[_0x5dbf('0x6d')]=this[_0x5dbf('0x6d')][_0x5dbf('0x68')];}node[_0x5dbf('0x68')][_0x5dbf('0x6c')]=node[_0x5dbf('0x6c')];node[_0x5dbf('0x6c')][_0x5dbf('0x68')]=node[_0x5dbf('0x68')];node[_0x5dbf('0x6c')]=null;node[_0x5dbf('0x68')]=null;}}[_0x5dbf('0x79')](node){node['parent']=this;this['childCount']++;node['left']=null;node['right']=null;node['immediateSiblings']=null;if(this['circularLink']==null){this[_0x5dbf('0x62')]=node;this[_0x5dbf('0x62')][_0x5dbf('0x63')]=this[_0x5dbf('0x62')];this[_0x5dbf('0x62')][_0x5dbf('0x64')]=this['circularLink'];}else{node[_0x5dbf('0x63')]=this['circularLink'][_0x5dbf('0x63')];node[_0x5dbf('0x63')][_0x5dbf('0x64')]=node;this[_0x5dbf('0x62')][_0x5dbf('0x63')]=node;node[_0x5dbf('0x64')]=this[_0x5dbf('0x62')];this[_0x5dbf('0x62')]=node;}}[_0x5dbf('0x7a')](node){node[_0x5dbf('0x28')]=null;this['childCount']--;if(node==this[_0x5dbf('0x62')]){if(node['right']==node){node[_0x5dbf('0x64')]=null;node[_0x5dbf('0x63')]=null;this['circularLink']=null;}else{this[_0x5dbf('0x62')]=this[_0x5dbf('0x62')][_0x5dbf('0x64')];node[_0x5dbf('0x64')][_0x5dbf('0x63')]=node[_0x5dbf('0x63')];node[_0x5dbf('0x63')][_0x5dbf('0x64')]=node[_0x5dbf('0x64')];node[_0x5dbf('0x63')]=null;node[_0x5dbf('0x64')]=null;}}else{node['right'][_0x5dbf('0x63')]=node[_0x5dbf('0x63')];node[_0x5dbf('0x63')][_0x5dbf('0x64')]=node[_0x5dbf('0x64')];node[_0x5dbf('0x63')]=null;node[_0x5dbf('0x64')]=null;}}[_0x5dbf('0x7b')](node){node['parent']=this;let sibling=null;if(node[_0x5dbf('0x29')]!=null){if(node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&this[_0x5dbf('0x50')][_0x5dbf('0x7c')](node[_0x5dbf('0x29')]['get'](0x0))){sibling=node['immediateSiblings'][_0x5dbf('0x51')](0x0);}else if(node['immediateSiblings'][_0x5dbf('0x51')](0x1)!=null&&this[_0x5dbf('0x50')][_0x5dbf('0x7c')](node['immediateSiblings'][_0x5dbf('0x51')](0x1))){sibling=node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1);}}else{node[_0x5dbf('0x29')]=new PQTree[(_0x5dbf('0x5f'))]();}if(sibling==null){for(let i=0x0;i<this['endMostChildren']['count'];i++){if(this['endMostChildren'][_0x5dbf('0x51')](i)[_0x5dbf('0x3e')]==node[_0x5dbf('0x3e')]){sibling=this['endMostChildren'][_0x5dbf('0x51')](i);break;}if(this[_0x5dbf('0x50')]['get'](i)[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x3b')]&&node[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x44')]){sibling=this[_0x5dbf('0x50')]['get'](i);break;}if(this[_0x5dbf('0x50')]['get'](i)[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x44')]&&node[_0x5dbf('0x3e')]==NodeLabel['full']){sibling=this[_0x5dbf('0x50')][_0x5dbf('0x51')](i);break;}}}if(sibling==null&&this[_0x5dbf('0x50')][_0x5dbf('0x25')]>0x0){sibling=this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x0);}if(sibling!=null){if(this[_0x5dbf('0x50')][_0x5dbf('0x25')]>0x1){this[_0x5dbf('0x50')][_0x5dbf('0x8')](sibling);}this[_0x5dbf('0x50')][_0x5dbf('0x54')](node);sibling['immediateSiblings'][_0x5dbf('0x54')](node);node[_0x5dbf('0x29')][_0x5dbf('0x54')](sibling);}else{this[_0x5dbf('0x50')][_0x5dbf('0x54')](node);}}['removeChildFromQNode'](node){node[_0x5dbf('0x28')]=null;if(node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)==null){this['endMostChildren'][_0x5dbf('0x8')](node);if(node[_0x5dbf('0x29')]['get'](0x0)!=null){if(!this[_0x5dbf('0x50')][_0x5dbf('0x7c')](node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0))){this[_0x5dbf('0x50')][_0x5dbf('0x54')](node[_0x5dbf('0x29')]['get'](0x0));}node[_0x5dbf('0x29')]['get'](0x0)[_0x5dbf('0x29')]['remove'](node);node[_0x5dbf('0x29')]=null;}}else{node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)[_0x5dbf('0x29')]['remove'](node);node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)[_0x5dbf('0x29')][_0x5dbf('0x8')](node);node[_0x5dbf('0x29')]=null;}}['addChildToPseudoRoot'](node){node[_0x5dbf('0x28')]=this;if(this[_0x5dbf('0x62')]==null){this['circularLink']=node;}if(node[_0x5dbf('0x29')]!=null&&node[_0x5dbf('0x29')]['count']==0x2){if(!(node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)['parent']==this&&node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)['parent']==this)){this[_0x5dbf('0x50')]['add'](node);}}}['addChild'](node,updateTree){if(typeof updateTree==_0x5dbf('0x7d'))updateTree=!![];if(node['label']==NodeLabel[_0x5dbf('0x3b')])this[_0x5dbf('0x75')](node);else if(node['label']==NodeLabel[_0x5dbf('0x44')])this[_0x5dbf('0x77')](node);if(!updateTree)return;if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x38')])this[_0x5dbf('0x79')](node);else if(this['type']==NodeType[_0x5dbf('0x43')]&&!this['pseudoRoot'])this[_0x5dbf('0x7b')](node);else if(this[_0x5dbf('0x37')]==NodeType['qNode']&&this[_0x5dbf('0x56')])this['addChildToPseudoRoot'](node);}[_0x5dbf('0x47')](node,updateTree){if(typeof updateTree==_0x5dbf('0x7d'))updateTree=!![];if(node[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x3b')])this[_0x5dbf('0x76')](node);else if(node[_0x5dbf('0x3e')]==NodeLabel[_0x5dbf('0x44')])this['removeFromPartialList'](node);if(!updateTree)return;if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x38')])this[_0x5dbf('0x7a')](node);else if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')])this['removeChildFromQNode'](node);}['replaceChild'](node,newNode){if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')]){newNode[_0x5dbf('0x29')]=node[_0x5dbf('0x29')];if(node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null)node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)[_0x5dbf('0x29')][_0x5dbf('0x7e')](node,newNode);if(node[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null)node[_0x5dbf('0x29')]['get'](0x1)[_0x5dbf('0x29')][_0x5dbf('0x7e')](node,newNode);if(this[_0x5dbf('0x50')][_0x5dbf('0x8')](node))this[_0x5dbf('0x50')][_0x5dbf('0x54')](newNode);}else{newNode[_0x5dbf('0x63')]=node['left'];if(node['left']!=null)node['left']['right']=newNode;newNode[_0x5dbf('0x64')]=node['right'];if(node[_0x5dbf('0x64')]!=null)node[_0x5dbf('0x64')]['left']=newNode;}newNode[_0x5dbf('0x28')]=this;this['removeChild'](node,![]);this[_0x5dbf('0x40')](newNode,![]);if(this[_0x5dbf('0x62')]==node)this[_0x5dbf('0x62')]=newNode;node[_0x5dbf('0x28')]=null;node[_0x5dbf('0x29')]=null;node[_0x5dbf('0x63')]=null;node['right']=null;node[_0x5dbf('0x66')]=null;node[_0x5dbf('0x67')]=null;node['partialLeft']=null;node[_0x5dbf('0x68')]=null;}[_0x5dbf('0x7f')](si){let node=this[_0x5dbf('0x29')][_0x5dbf('0x51')](si);if(node==null)return null;if(node['checkLabelDirected'](this,NodeLabel[_0x5dbf('0x3b')])||node[_0x5dbf('0x52')](this,NodeLabel[_0x5dbf('0x44')]))return node;return null;}[_0x5dbf('0x80')](si){let node=this[_0x5dbf('0x29')][_0x5dbf('0x51')](si);if(node==null)return null;if(node[_0x5dbf('0x52')](this,NodeLabel[_0x5dbf('0x53')]))return node;return null;}[_0x5dbf('0x81')](nodeLabel){let child=this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x0);if(child[_0x5dbf('0x52')](null,nodeLabel))return child;if(this[_0x5dbf('0x50')][_0x5dbf('0x25')]>0x1){child=this[_0x5dbf('0x50')]['get'](0x1);if(child[_0x5dbf('0x52')](null,nodeLabel))return child;}return null;}['absorbPartialChild'](qNode){if(qNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x43')])return;if(qNode[_0x5dbf('0x3e')]!=NodeLabel['partial'])return;let fullConnectChild=qNode[_0x5dbf('0x7f')](0x0)||qNode['getPertinentNeighbor'](0x1);let emptyConnectChild=qNode['getEmptyNeighbor'](0x0)||qNode[_0x5dbf('0x80')](0x1);let fullJoinChild=qNode[_0x5dbf('0x81')](NodeLabel['full']);let emptyJoinChild=qNode[_0x5dbf('0x81')](NodeLabel[_0x5dbf('0x53')]);if(fullConnectChild==null){this[_0x5dbf('0x50')][_0x5dbf('0x8')](qNode);fullJoinChild['parent']=this;this[_0x5dbf('0x50')]['add'](fullJoinChild);}else{fullJoinChild[_0x5dbf('0x29')][_0x5dbf('0x54')](fullConnectChild);fullConnectChild[_0x5dbf('0x29')][_0x5dbf('0x7e')](qNode,fullJoinChild);}if(emptyConnectChild==null){this[_0x5dbf('0x50')][_0x5dbf('0x8')](qNode);emptyJoinChild[_0x5dbf('0x28')]=this;this[_0x5dbf('0x50')][_0x5dbf('0x54')](emptyJoinChild);}else{emptyJoinChild[_0x5dbf('0x29')][_0x5dbf('0x54')](emptyConnectChild);emptyConnectChild[_0x5dbf('0x29')]['replace'](qNode,emptyJoinChild);}if(qNode[_0x5dbf('0x3a')]>0x0){let node=qNode['fullChildrenList'];do{let nextFull=node[_0x5dbf('0x67')];qNode[_0x5dbf('0x47')](node,![]);this[_0x5dbf('0x40')](node,![]);node['parent']=this;if(nextFull==node)break;node=nextFull;}while(qNode['fullChildrenList']!=null);}this['removeChild'](qNode,![]);qNode['destroy']();}[_0x5dbf('0x82')](node){if(this[_0x5dbf('0x3a')]==0x0)return;let newSiblings=[];let fullLeavesStart=this[_0x5dbf('0x83')]();if(fullLeavesStart!=null)newSiblings[_0x5dbf('0x13')](fullLeavesStart);let fullLeavesEnd=this[_0x5dbf('0x84')]();if(fullLeavesEnd!=null)newSiblings[_0x5dbf('0x13')](fullLeavesEnd);if(newSiblings['length']==0x0){this[_0x5dbf('0x50')]=new PQTree[(_0x5dbf('0x5f'))]();this['endMostChildren'][_0x5dbf('0x54')](node);}else if(newSiblings[_0x5dbf('0x15')]==0x1){for(let i=0x0;i<this[_0x5dbf('0x50')][_0x5dbf('0x25')];i++){let endNode=null;if(this[_0x5dbf('0x56')]){endNode=this[_0x5dbf('0x50')][_0x5dbf('0x51')](i);let siblings=endNode[_0x5dbf('0x29')];if(siblings[_0x5dbf('0x51')](0x0)!=null&&siblings[_0x5dbf('0x51')](0x0)['parent']!=this)endNode=siblings[_0x5dbf('0x51')](0x0);else if(siblings[_0x5dbf('0x51')](0x1)!=null&&siblings[_0x5dbf('0x51')](0x1)[_0x5dbf('0x28')]!=this)endNode=siblings[_0x5dbf('0x51')](0x1);}if(this[_0x5dbf('0x50')]['get'](i)[_0x5dbf('0x52')](endNode,NodeLabel['full'])){this['endMostChildren'][_0x5dbf('0x85')](i);break;}}this[_0x5dbf('0x50')]['add'](node);}node[_0x5dbf('0x29')]=newSiblings[_0x5dbf('0x15')]>0x0?new PQTree[(_0x5dbf('0x5f'))]():null;for(let i=0x0;i<newSiblings[_0x5dbf('0x15')];i++){let current=newSiblings[i];let siblings=current[_0x5dbf('0x29')];for(let j=0x0;j<=0x1;++j){if(siblings['get'](j)!=null&&siblings[_0x5dbf('0x51')](j)[_0x5dbf('0x52')](current,NodeLabel[_0x5dbf('0x3b')])){siblings[_0x5dbf('0x7e')](siblings[_0x5dbf('0x51')](j),node);node[_0x5dbf('0x29')][_0x5dbf('0x54')](current);break;}}}node[_0x5dbf('0x28')]=this;while(this['fullChildrenList']!=null){let exFull=this[_0x5dbf('0x65')];this[_0x5dbf('0x47')](exFull,![]);exFull[_0x5dbf('0x69')]=NodeLabel[_0x5dbf('0x53')];}}['becomeChild'](theChild){this[_0x5dbf('0x62')]=theChild[_0x5dbf('0x62')];this['fullChildrenList']=theChild['fullChildrenList'];this['partialChildrenList']=theChild['partialChildrenList'];this[_0x5dbf('0x50')]=theChild[_0x5dbf('0x50')];this[_0x5dbf('0x74')]=theChild['childCount'];this[_0x5dbf('0x3a')]=theChild[_0x5dbf('0x3a')];this[_0x5dbf('0x42')]=theChild[_0x5dbf('0x42')];this[_0x5dbf('0x2c')]=theChild[_0x5dbf('0x2c')];this[_0x5dbf('0x2f')]=theChild[_0x5dbf('0x2f')];this[_0x5dbf('0x61')]=theChild[_0x5dbf('0x37')];this[_0x5dbf('0x5e')]=theChild[_0x5dbf('0x5e')];this[_0x5dbf('0x4a')]=theChild[_0x5dbf('0x4a')];this['pseudoRoot']=theChild['pseudoRoot'];if(this['type']==NodeType[_0x5dbf('0x43')]){for(let i=0x0;i<this['endMostChildren'][_0x5dbf('0x25')];i++)this[_0x5dbf('0x50')]['get'](i)[_0x5dbf('0x28')]=this;if(this[_0x5dbf('0x3a')]>0x0){let currentNode=this[_0x5dbf('0x65')];do{let nextNode=currentNode[_0x5dbf('0x67')];currentNode[_0x5dbf('0x28')]=this;if(nextNode!=currentNode)currentNode=nextNode;else break;}while(currentNode!=this[_0x5dbf('0x65')]);}}theChild[_0x5dbf('0x4e')]();}[_0x5dbf('0x3f')](newParent){if(this[_0x5dbf('0x3a')]>0x0){if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x38')]){let currentNode=this['fullChildrenList'];do{let nextNode=currentNode[_0x5dbf('0x67')];this[_0x5dbf('0x47')](currentNode);newParent[_0x5dbf('0x40')](currentNode);currentNode=nextNode;}while(this['fullChildrenList']!=null);}if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')]){let currentNode=this[_0x5dbf('0x65')];do{let nextNode=currentNode['fullRight'];this[_0x5dbf('0x47')](currentNode,![]);newParent[_0x5dbf('0x40')](currentNode,![]);currentNode[_0x5dbf('0x28')]=newParent;if(nextNode!=currentNode)currentNode=nextNode;else break;}while(this[_0x5dbf('0x65')]!=null);}}}[_0x5dbf('0x52')](node,nodeLabel){if(this['type']!=NodeType['directionIndicator'])return this[_0x5dbf('0x3e')]==nodeLabel;let sibling=this[_0x5dbf('0x29')][_0x5dbf('0x70')](node);return sibling!=null&&sibling[_0x5dbf('0x52')](this,nodeLabel);}[_0x5dbf('0x36')](){if(this['type']==NodeType['pNode'])return this[_0x5dbf('0x74')]>0x0;if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')])return this['endMostChildren'][_0x5dbf('0x25')]>0x0;return![];}[_0x5dbf('0x86')](){return[this[_0x5dbf('0x50')]['get'](0x0)[_0x5dbf('0x87')](),this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x1)['getLeaf']()];}[_0x5dbf('0x88')](list,nodeType){if(this[_0x5dbf('0x37')]==nodeType)list[_0x5dbf('0x13')](this);if(this['type']==NodeType[_0x5dbf('0x38')]){if(this[_0x5dbf('0x36')]()){let child=this[_0x5dbf('0x62')];do{child[_0x5dbf('0x88')](list,nodeType);child=child[_0x5dbf('0x64')];}while(child!=this[_0x5dbf('0x62')]);}}if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')]){for(let child of this[_0x5dbf('0x89')]())child[_0x5dbf('0x88')](list,nodeType);}}['getQChildren'](){let list=[];if(this[_0x5dbf('0x36')]()){let previousNode=null;let child=this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x0);let lastNode=null;if(this[_0x5dbf('0x56')]){if(child['immediateSiblings'][_0x5dbf('0x51')](0x0)!=null&&child[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)[_0x5dbf('0x28')]!=this){previousNode=child[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0);}else if(child[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&child[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)['parent']!=this){previousNode=child[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1);}if(this[_0x5dbf('0x50')][_0x5dbf('0x25')]>0x1){let tempNode=this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x1);if(tempNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&tempNode['immediateSiblings'][_0x5dbf('0x51')](0x0)[_0x5dbf('0x28')]!=this){lastNode=tempNode['immediateSiblings'][_0x5dbf('0x51')](0x0);}else if(tempNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&tempNode[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)[_0x5dbf('0x28')]!=this){lastNode=tempNode[_0x5dbf('0x29')]['get'](0x1);}}}do{list[_0x5dbf('0x13')](child);let nextNode=child['immediateSiblings'][_0x5dbf('0x70')](previousNode);previousNode=child;child=nextNode;}while(child!=lastNode);}return list;}[_0x5dbf('0x87')](){if(this[_0x5dbf('0x39')]==0x0)return this;if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x38')])return this[_0x5dbf('0x62')]['getLeaf']();if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')])return this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x0);return null;}[_0x5dbf('0x5d')](node){if(this['immediateSiblings'][_0x5dbf('0x7c')](node)&&node['immediateSiblings'][_0x5dbf('0x7c')](this))return!![];if(this['immediateSiblings']['get'](0x0)!=null&&this[_0x5dbf('0x29')]['get'](0x0)[_0x5dbf('0x37')]==NodeType['directionIndicator']&&this['immediateSiblings'][_0x5dbf('0x51')](0x0)['immediateSiblings'][_0x5dbf('0x70')](this)==node)return!![];if(this[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&this[_0x5dbf('0x29')]['get'](0x1)[_0x5dbf('0x8a')]==NodeType[_0x5dbf('0x71')]&&this[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)[_0x5dbf('0x29')][_0x5dbf('0x70')](this)==node)return!![];return![];}[_0x5dbf('0x83')](){let fullChild=this[_0x5dbf('0x65')];let prevFullChild=null;let firstFullChild=null;do{if(fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)==null||fullChild[_0x5dbf('0x29')]['get'](0x0)!=null&&!fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)[_0x5dbf('0x52')](fullChild,NodeLabel[_0x5dbf('0x3b')])){prevFullChild=fullChild['immediateSiblings']['get'](0x0);firstFullChild=fullChild;break;}if(fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)==null||fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)!=null&&!fullChild['immediateSiblings'][_0x5dbf('0x51')](0x1)[_0x5dbf('0x52')](fullChild,NodeLabel[_0x5dbf('0x3b')])){prevFullChild=fullChild['immediateSiblings'][_0x5dbf('0x51')](0x1);firstFullChild=fullChild;break;}fullChild=fullChild[_0x5dbf('0x67')];}while(fullChild!=this[_0x5dbf('0x65')]);if(prevFullChild!=null&&prevFullChild[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]){let nextNode=prevFullChild;let prevNode=firstFullChild;while(nextNode!=null&&nextNode['type']==NodeType['directionIndicator']){let tempNode=nextNode;nextNode=nextNode['immediateSiblings']['getOther'](prevNode);prevNode=tempNode;}prevFullChild=nextNode;}return prevFullChild;}[_0x5dbf('0x84')](){let prevFullChild=this[_0x5dbf('0x83')]();let nextFullChild=null;let fullChild=null;let tempFullChild=null;if(prevFullChild!=null){if(prevFullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&prevFullChild[_0x5dbf('0x29')]['get'](0x0)[_0x5dbf('0x52')](prevFullChild,NodeLabel[_0x5dbf('0x3b')])){fullChild=prevFullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0);}else if(prevFullChild['immediateSiblings']['get'](0x1)!=null&&prevFullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)[_0x5dbf('0x52')](prevFullChild,NodeLabel[_0x5dbf('0x3b')])){fullChild=prevFullChild[_0x5dbf('0x29')]['get'](0x1);}nextFullChild=fullChild;let aPrevFullChild=prevFullChild;do{tempFullChild=nextFullChild;nextFullChild=nextFullChild[_0x5dbf('0x29')][_0x5dbf('0x70')](aPrevFullChild);aPrevFullChild=tempFullChild;}while(nextFullChild!=null&&(nextFullChild['checkLabelDirected'](aPrevFullChild,NodeLabel[_0x5dbf('0x3b')])||nextFullChild['type']==NodeType[_0x5dbf('0x71')]));}else{fullChild=this['fullChildrenList'];do{if(fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&!fullChild['immediateSiblings'][_0x5dbf('0x51')](0x0)['checkLabelDirected'](fullChild,NodeLabel['full'])){nextFullChild=fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0);prevFullChild=fullChild;break;}if(fullChild[_0x5dbf('0x29')]['get'](0x1)!=null&&!fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1)[_0x5dbf('0x52')](fullChild,NodeLabel[_0x5dbf('0x3b')])){nextFullChild=fullChild['immediateSiblings']['get'](0x1);prevFullChild=fullChild;break;}fullChild=fullChild[_0x5dbf('0x67')];}while(fullChild!=this[_0x5dbf('0x65')]);if(nextFullChild!=null&&nextFullChild['type']==NodeType[_0x5dbf('0x71')]){do{tempFullChild=nextFullChild;nextFullChild=nextFullChild[_0x5dbf('0x29')][_0x5dbf('0x70')](prevFullChild);prevFullChild=tempFullChild;}while(nextFullChild!=null&&nextFullChild[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]);}}return nextFullChild;}[_0x5dbf('0x8b')](){let fullLeaves=[];let subLeaves=null;if(this[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')]){if(this['hasChildren']()){let firstFullChild=null;let fullChild=this[_0x5dbf('0x65')];let prevFullChild=null;do{if(fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)==null||fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)!=null&&!fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x0)[_0x5dbf('0x52')](fullChild,NodeLabel['full'])){prevFullChild=fullChild[_0x5dbf('0x29')]['get'](0x0);firstFullChild=fullChild;break;}if(fullChild[_0x5dbf('0x29')]['get'](0x1)==null||fullChild['immediateSiblings'][_0x5dbf('0x51')](0x1)!=null&&!fullChild[_0x5dbf('0x29')]['get'](0x1)['checkLabelDirected'](fullChild,NodeLabel['full'])){prevFullChild=fullChild[_0x5dbf('0x29')][_0x5dbf('0x51')](0x1);firstFullChild=fullChild;break;}fullChild=fullChild[_0x5dbf('0x67')];}while(fullChild!=this[_0x5dbf('0x65')]);if(prevFullChild!=null&&prevFullChild[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]){let directedNodes=[];let nextNode=prevFullChild;let prevNode=firstFullChild;while(nextNode!=null&&nextNode['type']==NodeType['directionIndicator']){if(prevNode==nextNode[_0x5dbf('0x8c')])nextNode[_0x5dbf('0x60')]=![];else if(nextNode['immediateSiblings'][_0x5dbf('0x70')](prevNode)==nextNode[_0x5dbf('0x8c')])nextNode['readInReverseDirection']=!![];directedNodes[_0x5dbf('0x13')](nextNode);let tempNode=nextNode;nextNode=nextNode[_0x5dbf('0x29')][_0x5dbf('0x70')](prevNode);prevNode=tempNode;}for(let i=directedNodes['length'];i>0x0;i--){fullLeaves[_0x5dbf('0x13')](directedNodes[i-0x1]);}}fullChild=firstFullChild;do{if(fullChild[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]){if(prevFullChild==fullChild[_0x5dbf('0x8c')])fullChild[_0x5dbf('0x60')]=!![];else if(fullChild[_0x5dbf('0x29')][_0x5dbf('0x70')](prevFullChild)==fullChild[_0x5dbf('0x8c')])fullChild[_0x5dbf('0x60')]=![];}subLeaves=fullChild[_0x5dbf('0x8b')]();fullLeaves[_0x5dbf('0x13')](...subLeaves);let tempFullChild=fullChild;fullChild=fullChild[_0x5dbf('0x29')][_0x5dbf('0x70')](prevFullChild);prevFullChild=tempFullChild;}while(fullChild!=null&&(fullChild[_0x5dbf('0x52')](prevFullChild,NodeLabel[_0x5dbf('0x3b')])||fullChild[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]));}}else{if(this[_0x5dbf('0x36')]()){let fullChild=this['fullChildrenList'];do{subLeaves=fullChild[_0x5dbf('0x8b')]();fullLeaves[_0x5dbf('0x13')](...subLeaves);fullChild=fullChild[_0x5dbf('0x67')];}while(fullChild!=this['fullChildrenList']);}else{fullLeaves[_0x5dbf('0x13')](this);}}return fullLeaves;}get[_0x5dbf('0x37')](){return this[_0x5dbf('0x61')];}set[_0x5dbf('0x37')](value){if(this[_0x5dbf('0x61')]!=value){if(value==NodeType[_0x5dbf('0x43')]){this[_0x5dbf('0x50')]=new PQTree['NodePair']();}if(value==NodeType['pNode']){let endMost1=this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x0);let endMost2=this[_0x5dbf('0x50')][_0x5dbf('0x51')](0x1);this[_0x5dbf('0x61')]=NodeType['pNode'];this[_0x5dbf('0x62')]=endMost1;this[_0x5dbf('0x74')]=0x2;endMost1[_0x5dbf('0x29')]=null;endMost1[_0x5dbf('0x63')]=endMost2;endMost1[_0x5dbf('0x64')]=endMost2;endMost2[_0x5dbf('0x29')]=null;endMost2[_0x5dbf('0x63')]=endMost1;endMost2[_0x5dbf('0x64')]=endMost1;this['endMostChildren']=null;}this[_0x5dbf('0x61')]=value;}}get[_0x5dbf('0x8d')](){return this['right'];}get[_0x5dbf('0x8e')](){return this[_0x5dbf('0x62')];}get[_0x5dbf('0x39')](){return this[_0x5dbf('0x74')];}get[_0x5dbf('0x45')](){return this[_0x5dbf('0x74')]-this[_0x5dbf('0x3a')]-this[_0x5dbf('0x42')];}get['label'](){return this[_0x5dbf('0x69')];}set[_0x5dbf('0x3e')](value){if(this[_0x5dbf('0x69')]!=value){if(this[_0x5dbf('0x28')]!=null)this[_0x5dbf('0x28')][_0x5dbf('0x47')](this,![]);this['_label']=value;if(this[_0x5dbf('0x28')]!=null)this[_0x5dbf('0x28')][_0x5dbf('0x40')](this,![]);}}get[_0x5dbf('0x8f')](){return!this['blocked']&&!this[_0x5dbf('0x6b')];}get['direction'](){return this[_0x5dbf('0x29')][_0x5dbf('0x8c')];}set['direction'](value){if(this['immediateSiblings'][_0x5dbf('0x7c')](value))this[_0x5dbf('0x29')]['direction']=value;}};PQTree[_0x5dbf('0x5f')]=class{constructor(directionIndex){this[_0x5dbf('0x90')]=[];this[_0x5dbf('0x91')]=![];if(typeof directionIndex!=_0x5dbf('0x7d')){this['trackDirection']=!![];this['directedTowardsIndex']=directionIndex;}}['add'](node){if(this[_0x5dbf('0x90')][_0x5dbf('0x15')]<0x2)this[_0x5dbf('0x90')][_0x5dbf('0x13')](node);if(this[_0x5dbf('0x91')]&&this[_0x5dbf('0x92')]==-0x1)this['directedTowardsIndex']=this[_0x5dbf('0x93')](node);}['remove'](node){if(this[_0x5dbf('0x91')]){if(this[_0x5dbf('0x92')]==0x1&&this['indexOf'](node)==0x0)this[_0x5dbf('0x92')]=0x0;else if(this[_0x5dbf('0x93')](node)==this[_0x5dbf('0x92')])this['directedTowardsIndex']=-0x1;}let index=this['nodes']['indexOf'](node);if(index>-0x1){this[_0x5dbf('0x90')][_0x5dbf('0x94')](index,0x1);return!![];}else{return![];}}[_0x5dbf('0x85')](index){if(index>=this[_0x5dbf('0x90')][_0x5dbf('0x15')])return![];this[_0x5dbf('0x90')]['splice'](index,0x1);return!![];}[_0x5dbf('0x70')](node){if(this[_0x5dbf('0x90')]['length']==0x1){if(node==null)return this[_0x5dbf('0x90')][0x0];if(node==this['nodes'][0x0])return null;}if(this['nodes'][_0x5dbf('0x15')]==0x2){if(node==this['nodes'][0x0])return this[_0x5dbf('0x90')][0x1];if(node==this['nodes'][0x1])return this[_0x5dbf('0x90')][0x0];}return null;}[_0x5dbf('0x7e')](oldNode,newNode){for(let i=0x0;i<this[_0x5dbf('0x90')][_0x5dbf('0x15')];++i){if(this[_0x5dbf('0x90')][i]==oldNode){this[_0x5dbf('0x90')][i]=newNode;break;}}}['indexOf'](node){return this['nodes'][_0x5dbf('0x93')](node);}[_0x5dbf('0x7c')](node){return this[_0x5dbf('0x90')][_0x5dbf('0xc')](node);}[_0x5dbf('0x51')](index){if(index<this[_0x5dbf('0x90')][_0x5dbf('0x15')])return this[_0x5dbf('0x90')][index];return null;}get['count'](){return this[_0x5dbf('0x90')]['length'];}get[_0x5dbf('0x8c')](){if(this[_0x5dbf('0x92')]==-0x1)return null;return this[_0x5dbf('0x51')](this[_0x5dbf('0x92')]);}set[_0x5dbf('0x8c')](value){if(value==null)this[_0x5dbf('0x92')]=-0x1;else if(this[_0x5dbf('0x7c')](value))this[_0x5dbf('0x92')]=this[_0x5dbf('0x93')](value);else this['directedTowardsIndex']=-0x1;}};const NodeType={'pNode':0x0,'qNode':0x1,'directionIndicator':0x2};const NodeLabel={'empty':0x0,'partial':0x1,'full':0x2};class Face{constructor(prototype){if(prototype==null)this[_0x5dbf('0x0')]=[];else this[_0x5dbf('0x0')]=prototype[_0x5dbf('0x0')][_0x5dbf('0x95')]();}[_0x5dbf('0xb')](v){for(let e of this[_0x5dbf('0x0')])if(e['incidentWith'](v))return!![];return![];}[_0x5dbf('0xd')](face){for(let e1 of this['edges'])for(let e2 of face[_0x5dbf('0x0')])if(e1==e2)return!![];return![];}[_0x5dbf('0xe')](face){for(let e1 of this['edges'])for(let e2 of face[_0x5dbf('0x0')])if(e1==e2)return e1;return null;}get[_0x5dbf('0x14')](){return this[_0x5dbf('0x0')]['length'];}[_0x5dbf('0x96')](){let vertices=new Set();for(let edge of this[_0x5dbf('0x0')]){vertices[_0x5dbf('0x54')](edge[_0x5dbf('0x9')]);vertices[_0x5dbf('0x54')](edge[_0x5dbf('0xa')]);}return vertices;}[_0x5dbf('0x97')](){let vertices=[];for(let i=0x0;i<this[_0x5dbf('0x0')][_0x5dbf('0x15')];i++){let edge1=this[_0x5dbf('0x0')][i];let edge2=this[_0x5dbf('0x0')][(i+0x1)%this['edges'][_0x5dbf('0x15')]];let v=edge1[_0x5dbf('0x98')](edge2);vertices[_0x5dbf('0x13')](v);}return vertices;}[_0x5dbf('0x99')](){for(let i=0x0;i<this['edges']['length'];i++){let e1=this[_0x5dbf('0x0')][i];let e2=this[_0x5dbf('0x0')][(i+0x1)%this[_0x5dbf('0x0')]['length']];if(e1[_0x5dbf('0xa')]==e2[_0x5dbf('0xa')]||e1['origin']==e2[_0x5dbf('0x9')])return![];}return!![];}[_0x5dbf('0x9a')](vertex){for(let i=0x0;i<this[_0x5dbf('0x0')][_0x5dbf('0x15')];i++){let e1=this[_0x5dbf('0x0')][i];let e2=this[_0x5dbf('0x0')][(i+0x1)%this['edges']['length']];if(e1['incidentWith'](vertex)&&e2[_0x5dbf('0xb')](vertex))return e2;}return null;}['replaceEdge'](edge,replacement){let edgeIndex=this['edges']['indexOf'](edge);if(edgeIndex==-0x1)return;let nextIndex=(edgeIndex+0x1)%this[_0x5dbf('0x0')][_0x5dbf('0x15')];let reverse=replacement[0x0][_0x5dbf('0xd')](this[_0x5dbf('0x0')][nextIndex]);if(reverse){replacement=replacement[_0x5dbf('0x95')]();replacement[_0x5dbf('0x1d')]();}this[_0x5dbf('0x0')][_0x5dbf('0x94')](edgeIndex,0x1,...replacement);}get[_0x5dbf('0x9b')](){if(this[_0x5dbf('0x9c')]==null)this[_0x5dbf('0x9c')]=[];return this[_0x5dbf('0x9c')];}}class Embedding{constructor(graph,copy,vertexCopyToOrigMap,edgeCopyToOrigMap){if(graph){this[_0x5dbf('0x9d')]=graph;this['embedding']=new Map();}if(copy){this[_0x5dbf('0x9d')]=copy['graph'];this[_0x5dbf('0x9e')]=copy[_0x5dbf('0x9e')];}if(vertexCopyToOrigMap){this[_0x5dbf('0x9e')]=new Map();for(const [vertex,edges]of copy[_0x5dbf('0x9e')][_0x5dbf('0x9f')]()){let originalEdges=[];for(let edge of edges)originalEdges[_0x5dbf('0x13')](edgeCopyToOrigMap['get'](edge));this[_0x5dbf('0x9e')][_0x5dbf('0xa0')](vertexCopyToOrigMap[_0x5dbf('0x51')](vertex),originalEdges);}}}[_0x5dbf('0xa1')](block,blockEmbedding){for(const [vertex,edges]of blockEmbedding[_0x5dbf('0x9f')]()){let v=block[_0x5dbf('0xa2')][_0x5dbf('0x51')](vertex);this[_0x5dbf('0x54')](v);for(let edgeCopy of edges){let e=block[_0x5dbf('0xa3')][_0x5dbf('0x51')](edgeCopy);this[_0x5dbf('0x9e')][_0x5dbf('0x51')](v)[_0x5dbf('0x13')](e);}}}[_0x5dbf('0x54')](v){if(!this[_0x5dbf('0x9e')][_0x5dbf('0xa4')](v))this[_0x5dbf('0x9e')][_0x5dbf('0xa0')](v,[]);}['remove'](v){if(this[_0x5dbf('0x9e')][_0x5dbf('0xa4')](v)){for(let e of this[_0x5dbf('0x9e')]['get'](v)){let w=e[_0x5dbf('0xf')](v);Utils['remove'](this[_0x5dbf('0x9e')][_0x5dbf('0x51')](w),e);}this[_0x5dbf('0x9e')][_0x5dbf('0xa5')](v);}}[_0x5dbf('0xa6')](e){let r=this[_0x5dbf('0xa7')]['get'](e);let adjacentEdges=this[_0x5dbf('0x9e')][_0x5dbf('0x51')](r[_0x5dbf('0x9')]);let position=adjacentEdges[_0x5dbf('0x93')](r);return adjacentEdges[(position+0x1)%adjacentEdges['length']];}['createDirectedEdges'](){this[_0x5dbf('0xa7')]=new Map();for(const [v,edges]of this[_0x5dbf('0x9e')][_0x5dbf('0x9f')]()){for(let i=0x0;i<edges[_0x5dbf('0x15')];++i){let e=edges[i];if(e[_0x5dbf('0x9')]!=v){let r=e['createReverseEdge']();this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](e,r);this['reverseEdges'][_0x5dbf('0xa0')](r,e);edges[i]=r;}}}}[_0x5dbf('0xa8')](e,e1,e2,r,r1,r2,newVertex){let originEm=this[_0x5dbf('0x9e')]['get'](e['origin']);let destEm=this['embedding'][_0x5dbf('0x51')](e[_0x5dbf('0xa')]);let ei=originEm[_0x5dbf('0x93')](e);let ri=destEm[_0x5dbf('0x93')](r);originEm[ei]=e1;destEm[ri]=r1;this[_0x5dbf('0xa7')][_0x5dbf('0xa5')](e);this[_0x5dbf('0xa7')]['delete'](r);this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](e1,r2);this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](e2,r1);this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](r2,e1);this[_0x5dbf('0xa7')]['set'](r1,e2);this['embedding'][_0x5dbf('0xa0')](newVertex,[e2,r2]);}[_0x5dbf('0xa9')](e,r,fromEdge,toEdge){this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](e,r);this['reverseEdges'][_0x5dbf('0xa0')](r,e);let v1=e['origin'];toEdge=this[_0x5dbf('0xa7')]['get'](toEdge);let em1=this[_0x5dbf('0x9e')][_0x5dbf('0x51')](v1);let pos1=em1['indexOf'](toEdge);em1[_0x5dbf('0x94')](pos1+0x1,0x0,e);let v2=e[_0x5dbf('0xa')];let em2=this[_0x5dbf('0x9e')][_0x5dbf('0x51')](v2);let pos2=em2[_0x5dbf('0x93')](fromEdge);em2[_0x5dbf('0x94')](pos2,0x0,r);}['getNext'](v,e){let vem=this[_0x5dbf('0x9e')][_0x5dbf('0x51')](v);let next=null;if(e[_0x5dbf('0x9')]==v){let i=vem[_0x5dbf('0x93')](e);next=vem[(i+0x1)%vem[_0x5dbf('0x15')]];}if(e[_0x5dbf('0xa')]==v){let i=vem[_0x5dbf('0x93')](this[_0x5dbf('0xa7')]['get'](e));next=vem[(i+0x1)%vem['length']];}if(next!=null)return next['reversed']?this[_0x5dbf('0xa7')]['get'](next):next;return null;}[_0x5dbf('0xaa')](v,e){let vem=this['embedding']['get'](v);let prev=null;if(e[_0x5dbf('0x9')]==v){let i=vem[_0x5dbf('0x93')](e);i--;if(i<0x0)i=vem['length']-0x1;prev=vem[i];}if(e[_0x5dbf('0xa')]==v){let i=vem[_0x5dbf('0x93')](this[_0x5dbf('0xa7')]['get'](e));i--;if(i<0x0)i=vem[_0x5dbf('0x15')]-0x1;prev=vem[i];}if(prev!=null)return prev[_0x5dbf('0xab')]?this['reverseEdges'][_0x5dbf('0x51')](prev):prev;return null;}[_0x5dbf('0xac')](e,r){this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](e,r);this[_0x5dbf('0xa7')][_0x5dbf('0xa0')](r,e);}[_0x5dbf('0xad')](v){let edges=this[_0x5dbf('0x9e')]['get'](v);if(edges[_0x5dbf('0x15')]<0x4)return!![];let directionChanges=0x0;for(let i=0x0;i<edges[_0x5dbf('0x15')];i++){let e1=edges[i];let e2=edges[(i+0x1)%edges[_0x5dbf('0x15')]];if(e1[_0x5dbf('0x9')]==v&&e2[_0x5dbf('0xa')]==v||e1['destination']==v&&e2[_0x5dbf('0x9')]==v)directionChanges++;}return directionChanges<=0x2;}['isBimodal'](){for(let v of this[_0x5dbf('0x9e')][_0x5dbf('0xae')]()){if(!this[_0x5dbf('0xad')](v))return![];}return!![];}['contractEdge'](edge,vertex){this['add'](vertex);let oem=this[_0x5dbf('0x51')](edge[_0x5dbf('0x9')]);let oi=oem[_0x5dbf('0x93')](edge);for(let i=0x0;i<oem['length'];i++){let ei=(i+oi)%oem[_0x5dbf('0x15')];let e=oem[ei];if(e!=edge)this['get'](vertex)['push'](e);}let dem=this[_0x5dbf('0x51')](edge[_0x5dbf('0xa')]);let di=dem[_0x5dbf('0x93')](edge);for(let i=0x0;i<dem['length'];i++){let ei=(i+di)%dem['length'];let e=dem[ei];if(e!=edge)this['get'](vertex)[_0x5dbf('0x13')](e);}this[_0x5dbf('0x9e')][_0x5dbf('0xa5')](edge[_0x5dbf('0x9')]);this[_0x5dbf('0x9e')][_0x5dbf('0xa5')](edge[_0x5dbf('0xa')]);}[_0x5dbf('0xaf')](edge,vertex){this[_0x5dbf('0x54')](vertex);this['embedding'][_0x5dbf('0x51')](vertex)[_0x5dbf('0x13')](...vertex[_0x5dbf('0x0')]);let oem=this[_0x5dbf('0x51')](edge['origin']);let oi=oem[_0x5dbf('0x93')](edge);oem[oi]=vertex[_0x5dbf('0x0')][0x0];let dem=this['get'](edge['destination']);let di=dem[_0x5dbf('0x93')](edge);dem[di]=vertex['edges'][0x1];}['quasiCapacity'](face){return face!=this[_0x5dbf('0xb0')]?this[_0x5dbf('0xb1')](face)-0x1:this[_0x5dbf('0xb1')](face)+0x1;}[_0x5dbf('0xb1')](face){let count=0x0;for(let i=0x0;i<face[_0x5dbf('0x0')]['length'];i++){let e1=face[_0x5dbf('0x0')][i];let e2=face['edges'][(i+0x1)%face[_0x5dbf('0x0')][_0x5dbf('0x15')]];if(e1[_0x5dbf('0x9')]==e2[_0x5dbf('0x9')])count++;}return count;}[_0x5dbf('0xb2')](){this[_0x5dbf('0xb3')]=[];this['faceOnLeftMap']=new Map();this[_0x5dbf('0xb4')]=new Map();for(let edge of this[_0x5dbf('0x9d')][_0x5dbf('0x0')]){if(!this['faceOnRightMap'][_0x5dbf('0xa4')](edge))this['_faces']['push'](this[_0x5dbf('0xb5')](edge,edge[_0x5dbf('0x9')]));if(!this[_0x5dbf('0xb6')][_0x5dbf('0xa4')](edge))this[_0x5dbf('0xb3')][_0x5dbf('0x13')](this['enumerateFaceEdges'](edge,edge['destination']));}if(this[_0x5dbf('0xb3')][_0x5dbf('0x15')]>0x0)this[_0x5dbf('0xb0')]=this[_0x5dbf('0xb3')][0x0];}[_0x5dbf('0xb5')](startEdge,startVertex){let face=new Face();let currentEdge=startEdge;let currentVertex=startVertex;do{face[_0x5dbf('0x0')][_0x5dbf('0x13')](currentEdge);if(currentVertex==currentEdge[_0x5dbf('0x9')])this[_0x5dbf('0xb4')][_0x5dbf('0xa0')](currentEdge,face);else this[_0x5dbf('0xb6')][_0x5dbf('0xa0')](currentEdge,face);currentVertex=currentEdge[_0x5dbf('0xf')](currentVertex);currentEdge=this[_0x5dbf('0xb7')](currentEdge,currentVertex);}while(currentEdge!=startEdge);return face;}[_0x5dbf('0xb7')](edge,vertex){let vem=this['embedding'][_0x5dbf('0x51')](vertex);let index=vem[_0x5dbf('0x93')](edge)-0x1;if(index<0x0)index=vem['length']-0x1;return vem[index];}[_0x5dbf('0xb8')](edge,vertex,face){for(let i=0x0;i<face[_0x5dbf('0x0')]['length'];i++){let e1=face[_0x5dbf('0x0')][i];let e2=face['edges'][(i+0x1)%face['edges']['length']];let v=e1[_0x5dbf('0x98')](e2);if(v==vertex){let idx=this[_0x5dbf('0x9e')][_0x5dbf('0x51')](v)[_0x5dbf('0x93')](e2);this['embedding']['get'](v)['splice'](idx+0x1,0x0,edge);return;}}}[_0x5dbf('0xb9')](edge1,edge2,vertex){let edges=[];let vem=this[_0x5dbf('0x51')](vertex);let si=vem['indexOf'](edge1);let ei=vem[_0x5dbf('0x93')](edge2);for(let i=0x1;i<vem[_0x5dbf('0x15')];i++){let ci=(i+si)%vem['length'];if(ci==ei)break;let e=vem[ci];edges['push'](e);}return edges;}[_0x5dbf('0xba')](e){return this[_0x5dbf('0xa7')][_0x5dbf('0x51')](e);}[_0x5dbf('0x51')](v){return this[_0x5dbf('0x9e')]['get'](v);}get[_0x5dbf('0xbb')](){return this[_0x5dbf('0x9e')][_0x5dbf('0xae')]();}get[_0x5dbf('0xbc')](){if(this[_0x5dbf('0xb3')]==null)this[_0x5dbf('0xb2')]();return this[_0x5dbf('0xb3')];}}class Interval{constructor(min,max){this['min']=min;this['max']=max;}[_0x5dbf('0x7c')](interval){return this[_0x5dbf('0xbd')]<=interval[_0x5dbf('0xbd')]&&interval[_0x5dbf('0xbe')]<=this[_0x5dbf('0xbe')];}[_0x5dbf('0xbf')](interval){if(this[_0x5dbf('0xbd')]>=interval[_0x5dbf('0xbe')])return![];if(interval[_0x5dbf('0xbd')]>=this[_0x5dbf('0xbe')])return![];return!![];}[_0x5dbf('0xc0')](interval){if(interval['contains'](this)||this[_0x5dbf('0x7c')](interval))return![];return this[_0x5dbf('0xbf')](interval);}}class BinaryTree{constructor(item){this[_0x5dbf('0x55')]=new BinaryTree[(_0x5dbf('0x3d'))](item);}['getLeaves'](){return this[_0x5dbf('0x55')][_0x5dbf('0xc1')]();}}BinaryTree[_0x5dbf('0x3d')]=class{constructor(item){this[_0x5dbf('0xc2')]=item;}[_0x5dbf('0xc3')](left,right){this[_0x5dbf('0x63')]=new BinaryTree[(_0x5dbf('0x3d'))](left);this['right']=new BinaryTree[(_0x5dbf('0x3d'))](right);}[_0x5dbf('0xc1')](){let leaves=[];this['collectLeaves'](leaves);return leaves;}[_0x5dbf('0xc4')](leaves){if(this[_0x5dbf('0x63')]==null&&this[_0x5dbf('0x64')]==null)leaves['push'](this[_0x5dbf('0xc2')]);if(this[_0x5dbf('0x63')]!=null)this[_0x5dbf('0x63')]['collectLeaves'](leaves);if(this['right']!=null)this[_0x5dbf('0x64')][_0x5dbf('0xc4')](leaves);}};class PriorityQueue{constructor(maxN,array){this['a']=array;this['N']=0x0;this['d']=0x3;this['pq']=[];this['qp']=[];for(let i=0x0;i<=maxN;i++){this['pq'][i]=0x0;this['qp'][i]=0x0;}}['empty'](){return this['N']==0x0;}[_0x5dbf('0xc5')](v){this['pq'][++this['N']]=v;this['qp'][v]=this['N'];this[_0x5dbf('0xc6')](this['N']);}[_0x5dbf('0xc7')](){this[_0x5dbf('0xc8')](0x1,this['N']);this[_0x5dbf('0xc9')](0x1,this['N']-0x1);return this['pq'][this['N']--];}['lower'](k){this[_0x5dbf('0xc6')](this['qp'][k]);}[_0x5dbf('0xca')](i,j){return this['a'][this['pq'][i]]<this['a'][this['pq'][j]];}['exchange'](i,j){let t=this['pq'][i];this['pq'][i]=this['pq'][j];this['pq'][j]=t;this['qp'][this['pq'][i]]=i;this['qp'][this['pq'][j]]=j;}[_0x5dbf('0xc6')](k){while(k>0x1&&this[_0x5dbf('0xcb')](k,Math[_0x5dbf('0xcc')]((k+this['d']-0x2)/this['d']))){this[_0x5dbf('0xc8')](k,Math[_0x5dbf('0xcc')]((k+this['d']-0x2)/this['d']));k=Math['floor']((k+this['d']-0x2)/this['d']);}}[_0x5dbf('0xc9')](k,N){let j=0x0;while((j=this['d']*(k-0x1)+0x2)<=N){for(let i=j+0x1;i<j+this['d']&&i<=N;i++){if(this[_0x5dbf('0xca')](i,j))j=i;}if(!this[_0x5dbf('0xca')](j,k))break;this[_0x5dbf('0xc8')](k,j);k=j;}}}class Factory{}class TreeHelper{constructor(reversedLinks){this[_0x5dbf('0xcd')]=reversedLinks;}[_0x5dbf('0xce')](edge){return this[_0x5dbf('0xcd')]?edge[_0x5dbf('0xa')]:edge[_0x5dbf('0x9')];}[_0x5dbf('0xcf')](edge){return this['reversedLinks']?edge[_0x5dbf('0x9')]:edge['destination'];}[_0x5dbf('0xd0')](vertex){return this[_0x5dbf('0xcd')]?vertex[_0x5dbf('0x1')]:vertex['inEdges'];}['childEdges'](vertex){return this[_0x5dbf('0xcd')]?vertex[_0x5dbf('0x2')]:vertex[_0x5dbf('0x1')];}[_0x5dbf('0xd1')](edge,points){if(this['reversedLinks'])points=points['toReversed']();edge[_0x5dbf('0xd2')]=points;}}class Graph{constructor(){this[_0x5dbf('0xbb')]=[];this[_0x5dbf('0x0')]=[];}['clone'](saveMapping){return this[_0x5dbf('0xd3')](this[_0x5dbf('0xbb')],saveMapping);}['cloneSubset'](vertexSubset,saveMapping){var copy=new Graph();if(saveMapping){copy[_0x5dbf('0xa2')]=new Map();copy[_0x5dbf('0xa3')]=new Map();}var map=new Map();for(let v of vertexSubset){var vcopy=v['clone']();map[_0x5dbf('0xa0')](v,vcopy);copy['vertices']['push'](vcopy);if(saveMapping)copy['vertexCopyToOrigMap'][_0x5dbf('0xa0')](vcopy,v);}for(let e of this[_0x5dbf('0x0')]){if(map[_0x5dbf('0xa4')](e[_0x5dbf('0x9')])&&map['has'](e['destination'])){var ecopy=copy['createEdgeP'](map[_0x5dbf('0x51')](e['origin']),map[_0x5dbf('0x51')](e[_0x5dbf('0xa')]),e);if(saveMapping)copy['edgeCopyToOrigMap'][_0x5dbf('0xa0')](ecopy,e);}}return copy;}['createReverseMaps'](){if(this[_0x5dbf('0xa2')]!=null){this[_0x5dbf('0xd4')]=new Map();for(const [c,v]of this[_0x5dbf('0xa2')][_0x5dbf('0x9f')]())this['vertexOrigToCopyMap']['set'](v,c);}if(this[_0x5dbf('0xa3')]!=null){this[_0x5dbf('0xd5')]=new Map();for(const [c,v]of this[_0x5dbf('0xa3')][_0x5dbf('0x9f')]())this[_0x5dbf('0xd5')][_0x5dbf('0xa0')](v,c);}}[_0x5dbf('0xd6')](root,reversedLinks,enableAssistants,compactAssistants){var tree=new Graph();root['level']=0x0;tree[_0x5dbf('0x55')]=root;var visited=[];var remaining=[];tree[_0x5dbf('0xbb')]['push'](root);visited[_0x5dbf('0x13')](root);remaining[_0x5dbf('0x13')](root);var th=new TreeHelper(reversedLinks);var levelCount=0x1;while(remaining[_0x5dbf('0x15')]>0x0){var next=remaining[_0x5dbf('0xd7')]();var childEdges=th['childEdges'](next);childEdges['forEach'](function(e){var childNode=th['childNode'](e);if(visited['includes'](childNode))return;var parentNode=th['parentNode'](e);childNode[_0x5dbf('0xd8')]=parentNode['level']+0x1;childNode[_0x5dbf('0x28')]=parentNode;if(levelCount<childNode[_0x5dbf('0xd8')]+0x1)levelCount=childNode[_0x5dbf('0xd8')]+0x1;remaining[_0x5dbf('0x13')](childNode);visited[_0x5dbf('0x13')](childNode);tree[_0x5dbf('0xbb')][_0x5dbf('0x13')](childNode);tree[_0x5dbf('0x0')][_0x5dbf('0x13')](e);});}if(enableAssistants){remaining[_0x5dbf('0x13')](root);visited=[];visited[_0x5dbf('0x13')](root);while(remaining[_0x5dbf('0x15')]>0x0){var next=remaining[_0x5dbf('0xd7')]();var lastPosition=AssistantPosition[_0x5dbf('0xd9')];var childEdges=th[_0x5dbf('0xda')](next);for(var i=0x0;i<childEdges[_0x5dbf('0x15')];i++){var child=th[_0x5dbf('0xcf')](childEdges[i]);if(visited[_0x5dbf('0xc')](child))continue;remaining[_0x5dbf('0x13')](child);visited['push'](child);switch(child[_0x5dbf('0x6')][_0x5dbf('0xdb')][_0x5dbf('0xdc')]){case AssistantType[_0x5dbf('0xdd')]:child[_0x5dbf('0xde')]=AssistantPosition[_0x5dbf('0xdd')];break;case AssistantType[_0x5dbf('0xd9')]:child[_0x5dbf('0xde')]=AssistantPosition['Right'];break;case AssistantType[_0x5dbf('0xdf')]:if(lastPosition===AssistantPosition['Left'])child['assistantPosition']=AssistantPosition[_0x5dbf('0xd9')];else child[_0x5dbf('0xde')]=AssistantPosition[_0x5dbf('0xdd')];break;default:continue;}lastPosition=child['assistantPosition'];}}visited=[];levelCount=this[_0x5dbf('0xe0')](visited,root,compactAssistants,th)+0x1;}var treeLevels=[];for(var i=0x0;i<levelCount;i++)treeLevels[_0x5dbf('0x13')]([]);tree[_0x5dbf('0xcd')]=reversedLinks;tree[_0x5dbf('0xe1')]=treeLevels;tree[_0x5dbf('0xe2')](tree[_0x5dbf('0x55')]);return tree;}[_0x5dbf('0xe2')](parent){this[_0x5dbf('0xe1')][parent[_0x5dbf('0xd8')]][_0x5dbf('0x13')](parent);var children=this[_0x5dbf('0xe3')](parent);for(var child of children){this[_0x5dbf('0xe2')](child);}}[_0x5dbf('0xe3')](node){var children=[];if(this[_0x5dbf('0xcd')]){for(var e of node[_0x5dbf('0x2')]){if(this['edges'][_0x5dbf('0xc')](e))children[_0x5dbf('0x13')](e[_0x5dbf('0x9')]);}}else{for(var e of node['outEdges']){if(this['edges'][_0x5dbf('0xc')](e))children['push'](e[_0x5dbf('0xa')]);}}return children;}['reassignLevels'](visited,parent,compactAssistants,treeHelper){var th=treeHelper;var maxLeftLevel=parent[_0x5dbf('0xd8')];var maxRightLevel=parent[_0x5dbf('0xd8')];var maxLevel=parent['level'];var bottomLevel=-0x1;var sorted=[];var childEdges=th[_0x5dbf('0xda')](parent);for(var i=0x0;i<childEdges['length'];i++)sorted[_0x5dbf('0x13')](th[_0x5dbf('0xcf')](childEdges[i]));sorted['sort'](function(a,b){var aAssistantType=a[_0x5dbf('0x6')][_0x5dbf('0xdb')][_0x5dbf('0xdc')];var bAssistantType=b['owner']['layoutTraits']['treeLayoutAssistant'];if(aAssistantType&&!bAssistantType)return-0x1;if(!aAssistantType&&bAssistantType)return 0x1;return a[_0x5dbf('0x18')]-b[_0x5dbf('0x18')];});for(var i=0x0;i<sorted[_0x5dbf('0x15')];i++){var child=sorted[i];if(visited['includes'](child))continue;visited[_0x5dbf('0x13')](child);if(child['owner'][_0x5dbf('0xdb')][_0x5dbf('0xdc')]){if(child['assistantPosition']===AssistantPosition[_0x5dbf('0xdd')]){if(compactAssistants)child[_0x5dbf('0xd8')]=maxLeftLevel+0x1;else child['level']=Math[_0x5dbf('0xbe')](maxLeftLevel,maxRightLevel)+0x1;}else if(child['assistantPosition']===AssistantPosition['Right']){if(compactAssistants)child[_0x5dbf('0xd8')]=maxRightLevel+0x1;else child['level']=maxLevel+0x1;}}else{if(bottomLevel===-0x1)bottomLevel=Math[_0x5dbf('0xbe')](maxLeftLevel,maxRightLevel)+0x1;child[_0x5dbf('0xd8')]=bottomLevel;}var newMaxLevel=this[_0x5dbf('0xe0')](visited,child,compactAssistants,th);if(child[_0x5dbf('0x6')][_0x5dbf('0xdb')][_0x5dbf('0xdc')]){if(child[_0x5dbf('0xde')]===AssistantPosition[_0x5dbf('0xdd')]){maxLeftLevel=Math[_0x5dbf('0xbe')](maxLeftLevel,newMaxLevel);}else{maxRightLevel=Math[_0x5dbf('0xbe')](maxRightLevel,newMaxLevel);maxLevel=Math['max'](maxLeftLevel,maxRightLevel);}}else{maxLevel=Math['max'](maxLevel,newMaxLevel);}}return Math[_0x5dbf('0xbe')](maxLevel,maxLeftLevel);}[_0x5dbf('0xe4')](origin,destination,owner){var edge=this[_0x5dbf('0xe5')](origin,destination,null);if(owner)edge['owner']=owner;return edge;}['createEdgeP'](origin,destination,prototype){var edge=new Edge(origin,destination,prototype);this[_0x5dbf('0x0')][_0x5dbf('0x13')](edge);edge[_0x5dbf('0x9')][_0x5dbf('0x1')][_0x5dbf('0x13')](edge);edge[_0x5dbf('0x9')]['edges'][_0x5dbf('0x13')](edge);edge[_0x5dbf('0xa')]['inEdges']['push'](edge);edge[_0x5dbf('0xa')][_0x5dbf('0x0')][_0x5dbf('0x13')](edge);return edge;}[_0x5dbf('0xa9')](edge){this[_0x5dbf('0x0')]['push'](edge);edge[_0x5dbf('0x9')][_0x5dbf('0x1')][_0x5dbf('0x13')](edge);edge[_0x5dbf('0x9')][_0x5dbf('0x0')][_0x5dbf('0x13')](edge);edge[_0x5dbf('0xa')]['inEdges'][_0x5dbf('0x13')](edge);edge[_0x5dbf('0xa')][_0x5dbf('0x0')][_0x5dbf('0x13')](edge);}[_0x5dbf('0x7')](edge){Utils[_0x5dbf('0x8')](this[_0x5dbf('0x0')],edge);Utils[_0x5dbf('0x8')](edge[_0x5dbf('0x9')]['outEdges'],edge);Utils['remove'](edge['origin'][_0x5dbf('0x0')],edge);Utils[_0x5dbf('0x8')](edge[_0x5dbf('0xa')][_0x5dbf('0x2')],edge);Utils[_0x5dbf('0x8')](edge[_0x5dbf('0xa')][_0x5dbf('0x0')],edge);}[_0x5dbf('0xe6')](){for(let v of this['vertices']){v[_0x5dbf('0x0')]['length']=0x0;v['inEdges']['length']=0x0;v[_0x5dbf('0x1')][_0x5dbf('0x15')]=0x0;}this[_0x5dbf('0x0')][_0x5dbf('0x15')]=0x0;}[_0x5dbf('0xe7')](layoutRect,owner){var vertex=new Vertex();this[_0x5dbf('0xbb')][_0x5dbf('0x13')](vertex);if(layoutRect){vertex['x']=layoutRect['x'];vertex['y']=layoutRect['y'];vertex['width']=layoutRect[_0x5dbf('0xe8')];vertex[_0x5dbf('0xe9')]=layoutRect[_0x5dbf('0xe9')];}if(owner)vertex[_0x5dbf('0x6')]=owner;return vertex;}[_0x5dbf('0xea')](vertex){let index=this[_0x5dbf('0xbb')][_0x5dbf('0x93')](vertex);if(index>-0x1)this['vertices'][_0x5dbf('0x94')](index,0x1);}[_0x5dbf('0xeb')](vertex){this['vertices'][_0x5dbf('0x13')](vertex);vertex[_0x5dbf('0x1')]['forEach'](function(edge){this[_0x5dbf('0x0')][_0x5dbf('0x13')](edge);},this);}[_0x5dbf('0xec')](debugId){let vertex=new Vertex();this[_0x5dbf('0xbb')]['push'](vertex);if(debugId)vertex[_0x5dbf('0xed')]=debugId;return vertex;}[_0x5dbf('0xee')](){for(var i=0x0;i<this['vertices'][_0x5dbf('0x15')];++i){var vertex=this['vertices'][i];vertex['index']=i;}for(var i=0x0;i<this['edges']['length'];++i){var edge=this[_0x5dbf('0x0')][i];edge[_0x5dbf('0x18')]=i;}}[_0x5dbf('0xef')](e){let v1=e[_0x5dbf('0x9')];let v2=e[_0x5dbf('0xa')];this['removeEdge'](e);let v=new Vertex();this['vertices'][_0x5dbf('0x13')](v);let e1=this[_0x5dbf('0xe4')](v1,v);e1[_0x5dbf('0xf0')]=!![];let e2=this[_0x5dbf('0xe4')](v,v2);e2[_0x5dbf('0xf0')]=!![];v[_0x5dbf('0x18')]=this[_0x5dbf('0xbb')]['length']-0x1;return v;}[_0x5dbf('0xf1')](v1,destSet){let path=[];let mark=createBoolArray(this['vertices'][_0x5dbf('0x15')]);let searchTree=createIdArray(this['vertices'][_0x5dbf('0x15')],-0x1);this['setItemIndices']();for(let i=0x0;i<this[_0x5dbf('0xbb')]['length'];++i){if(!mark[i])this['findShortestPathBfs'](new Edge(v1,v1),destSet,mark,searchTree,path);}path[_0x5dbf('0x1d')]();return path;}[_0x5dbf('0xf2')](originSet,destSet){let minPath=null;for(let v of originSet){let path=this[_0x5dbf('0xf1')](v,destSet);if(minPath==null)minPath=path;minPath=minPath[_0x5dbf('0x15')]>path[_0x5dbf('0x15')]?path:minPath;}return minPath;}['findShortestPathBfs'](e,destSet,mark,searchTree,path){let queue=new Queue();queue[_0x5dbf('0x24')](e);mark[e['destination'][_0x5dbf('0x18')]]=!![];while(queue[_0x5dbf('0x25')]>0x0){e=queue[_0x5dbf('0xf3')]();let v=e[_0x5dbf('0x9')];let w=e[_0x5dbf('0xa')];searchTree[w[_0x5dbf('0x18')]]=v[_0x5dbf('0x18')];if(destSet[_0x5dbf('0xa4')](w)){let t=w[_0x5dbf('0x18')];while(!![]){path['push'](this[_0x5dbf('0xbb')][t]);let p=searchTree[t];if(t==p)break;t=p;}return;}for(let edge of e[_0x5dbf('0xa')][_0x5dbf('0x0')]){let t=edge[_0x5dbf('0xf')](w);if(!mark[t[_0x5dbf('0x18')]]){queue[_0x5dbf('0x24')](new Edge(w,t));mark[t['index']]=!![];}}}}[_0x5dbf('0xf4')](origin,destSet,outMinWeigth){this[_0x5dbf('0xee')]();let V=this['vertices']['length'];let weights=[];let shortestPaths=[];for(let v=0x0;v<V;v++)weights[v]=Number[_0x5dbf('0xf5')];let queue=new PriorityQueue(V,weights);for(let v=0x0;v<V;v++)queue[_0x5dbf('0xc5')](v);weights[origin[_0x5dbf('0x18')]]=0x0;queue['lower'](origin['index']);while(!queue['empty']()){let v=queue[_0x5dbf('0xc7')]();if(v!=origin[_0x5dbf('0x18')]&&shortestPaths[v]==null)break;for(let e of this[_0x5dbf('0xbb')][v][_0x5dbf('0x0')]){let w=e[_0x5dbf('0xf')](this[_0x5dbf('0xbb')][v])[_0x5dbf('0x18')];let P=weights[v]+e['weight'];if(P<weights[w]){weights[w]=P;queue[_0x5dbf('0xf6')](w);shortestPaths[w]=e;}}}outMinWeigth[_0x5dbf('0xf7')]=Number[_0x5dbf('0xf5')];let minDest=null;for(let vertex of destSet){if(weights[vertex[_0x5dbf('0x18')]]<outMinWeigth[_0x5dbf('0xf7')]){minDest=vertex;outMinWeigth[_0x5dbf('0xf7')]=weights[vertex[_0x5dbf('0x18')]];}}let shortestPath=[];shortestPath[_0x5dbf('0x13')](minDest);do{minDest=shortestPaths[minDest[_0x5dbf('0x18')]][_0x5dbf('0xf')](minDest);shortestPath[_0x5dbf('0x13')](minDest);}while(minDest!=origin);shortestPath[_0x5dbf('0x1d')]();return shortestPath;}['findShortestWeightedPathSS'](originSet,destSet){let minPath=null;let minWeight=Number[_0x5dbf('0xf5')];for(let v of originSet){let weight={'value':0x0};let path=this[_0x5dbf('0xf4')](v,destSet,weight);if(weight['value']<minWeight){minPath=path;minWeight=weight;}}return minPath;}[_0x5dbf('0xf8')](){this['searchCounter']=0x0;this['setItemIndices']();var setIds=createIdArray(this[_0x5dbf('0xbb')][_0x5dbf('0x15')],-0x1);for(var v=0x0;v<this[_0x5dbf('0xbb')][_0x5dbf('0x15')];v++){if(setIds[v]==-0x1){this['dfsConnectivity'](setIds,v);this['searchCounter']++;}}var components=[];for(var i=0x0;i<this[_0x5dbf('0xf9')];++i)components[i]=new Graph();for(var i=0x0;i<setIds[_0x5dbf('0x15')];++i){var graph=components[setIds[i]];graph[_0x5dbf('0xeb')](this[_0x5dbf('0xbb')][i]);}return components;}[_0x5dbf('0xfa')](setIds,vertexId){setIds[vertexId]=this[_0x5dbf('0xf9')];var vertex=this[_0x5dbf('0xbb')][vertexId];vertex[_0x5dbf('0x0')][_0x5dbf('0x12')](function(edge){var next=edge['getOtherEnd'](vertex);var nextId=next[_0x5dbf('0x18')];if(setIds[nextId]==-0x1)this[_0x5dbf('0xfa')](setIds,nextId);},this);}['getBiconnectedComponents'](saveMapping,blocksHandler){let allComponents=[];let connectedSubgraphs=this[_0x5dbf('0xf8')]();for(let connectedSubgraph of connectedSubgraphs){let componentBlocks=null;if(blocksHandler!=null)componentBlocks=[];let biconnectedComponents=connectedSubgraph['getBiconnectedComponentsOfConnectedGraph']();for(let biconnectedComponent of biconnectedComponents){let block=biconnectedComponent[_0x5dbf('0xfb')](saveMapping);allComponents[_0x5dbf('0x13')](block);if(componentBlocks!=null)componentBlocks[_0x5dbf('0x13')](block);}if(blocksHandler)blocksHandler(componentBlocks,connectedSubgraph[_0x5dbf('0xfc')]);}this[_0x5dbf('0xee')]();return allComponents;}['getBiconnectedComponentsOfConnectedGraph'](){if(this['vertices'][_0x5dbf('0x15')]==0x1){let g=new Graph();g['vertices'][_0x5dbf('0x13')](this[_0x5dbf('0xbb')][0x0]);return[g];}this[_0x5dbf('0xee')]();this['searchCounter']=0x0;this[_0x5dbf('0xfd')]=[];this[_0x5dbf('0xfc')]=[];this[_0x5dbf('0xfe')]=[];this[_0x5dbf('0xff')]=[];this[_0x5dbf('0x100')]=createIdArray(this['vertices'][_0x5dbf('0x15')],-0x1);this['backMostEdges']=createIdArray(this[_0x5dbf('0xbb')]['length'],-0x1);for(let v=0x0;v<this[_0x5dbf('0xbb')]['length'];v++){if(this[_0x5dbf('0x100')][v]==-0x1)this[_0x5dbf('0x101')](v,v);}if(this[_0x5dbf('0xff')]['length']>=0x2&&!this['cutVertices']['includes'](this[_0x5dbf('0xbb')][0x0]))this['cutVertices']['push'](this[_0x5dbf('0xbb')][0x0]);while(this[_0x5dbf('0xff')]['length']>0x0)this[_0x5dbf('0x102')](this['secondLevel'][_0x5dbf('0xd7')]());return this[_0x5dbf('0xfe')];}['biconnectivityDfs'](parent,vertexId){let destVertex=this[_0x5dbf('0xbb')][vertexId];this[_0x5dbf('0x100')][vertexId]=this['searchCounter']++;this[_0x5dbf('0x103')][vertexId]=this[_0x5dbf('0x100')][vertexId];for(let edge of destVertex[_0x5dbf('0x0')]){let child=edge['getOtherEnd'](destVertex)[_0x5dbf('0x18')];if(this[_0x5dbf('0x100')][child]<this[_0x5dbf('0x100')][vertexId]&&child!=parent){this['visitedEdges'][_0x5dbf('0x13')](child);this[_0x5dbf('0xfd')][_0x5dbf('0x13')](vertexId);}if(this[_0x5dbf('0x100')][child]==-0x1){if(vertexId==0x0)this[_0x5dbf('0xff')][_0x5dbf('0x13')](child);this[_0x5dbf('0x101')](vertexId,child);if(this[_0x5dbf('0x103')][vertexId]>this['backMostEdges'][child])this[_0x5dbf('0x103')][vertexId]=this[_0x5dbf('0x103')][child];if(vertexId!=parent&&child!=parent&&this[_0x5dbf('0x103')][child]>=this['searchOrder'][vertexId]){if(!this[_0x5dbf('0xfc')]['includes'](this[_0x5dbf('0xbb')][vertexId]))this['cutVertices']['push'](this[_0x5dbf('0xbb')][vertexId]);this[_0x5dbf('0x102')](child);}}else if(child!=parent){if(this['backMostEdges'][vertexId]>this[_0x5dbf('0x100')][child])this['backMostEdges'][vertexId]=this[_0x5dbf('0x100')][child];}}}['stackToComponent2'](child){let ids=createIdArray(this[_0x5dbf('0xbb')][_0x5dbf('0x15')],0x0);let component=new Graph();while(this[_0x5dbf('0xfd')][_0x5dbf('0x15')]>0x0&&this[_0x5dbf('0x100')][Utils[_0x5dbf('0x104')](this[_0x5dbf('0xfd')])]>=this['searchOrder'][child]){let org=this[_0x5dbf('0xfd')][_0x5dbf('0xd7')]();let dest=this[_0x5dbf('0xfd')][_0x5dbf('0xd7')]();ids[org]=0x1;ids[dest]=0x1;}if(this[_0x5dbf('0xfd')][_0x5dbf('0x15')]>0x0){let org=this['visitedEdges'][_0x5dbf('0xd7')]();let dest=this[_0x5dbf('0xfd')][_0x5dbf('0xd7')]();ids[org]=0x1;ids[dest]=0x1;}for(let i=0x0;i<ids[_0x5dbf('0x15')];++i)if(ids[i]>0x0)component[_0x5dbf('0xeb')](this[_0x5dbf('0xbb')][i]);this[_0x5dbf('0xfe')][_0x5dbf('0x13')](component);}[_0x5dbf('0x105')](){var blocks=[];this[_0x5dbf('0xee')]();this[_0x5dbf('0x0')]['forEach'](function(edge){delete edge['processed'];});var searchCounter=0x0;var searchOrder=[];var componentStack=[];var lowPoint=[];for(var v=0x0;v<this[_0x5dbf('0xbb')]['length'];v++){var vertex=this[_0x5dbf('0xbb')][v];if(searchOrder[vertex[_0x5dbf('0x18')]]!==undefined)continue;if(vertex[_0x5dbf('0x0')][_0x5dbf('0x15')]==0x0){var component=new Graph();component[_0x5dbf('0xeb')](vertex);blocks['push'](component[_0x5dbf('0xfb')](!![]));continue;}var vertexStack=[];var edgeStack=[];searchOrder[vertex[_0x5dbf('0x18')]]=searchCounter++;lowPoint[vertex[_0x5dbf('0x18')]]=searchOrder[vertex[_0x5dbf('0x18')]];vertexStack[_0x5dbf('0x13')](vertex);edgeStack[_0x5dbf('0x13')](vertex[_0x5dbf('0x0')]['slice'](0x0));while(!![]){while(edgeStack[edgeStack[_0x5dbf('0x15')]-0x1][_0x5dbf('0x15')]>0x0){var tail=vertexStack[vertexStack[_0x5dbf('0x15')]-0x1];var edge=edgeStack[edgeStack[_0x5dbf('0x15')]-0x1]['shift']();var head=edge['getOtherEnd'](tail);if(edge[_0x5dbf('0x106')])continue;componentStack[_0x5dbf('0x13')](edge);edge[_0x5dbf('0x106')]=!![];if(searchOrder[head[_0x5dbf('0x18')]]===undefined){searchOrder[head[_0x5dbf('0x18')]]=searchCounter++;vertexStack[_0x5dbf('0x13')](head);edgeStack[_0x5dbf('0x13')](head[_0x5dbf('0x0')][_0x5dbf('0x95')](0x0));lowPoint[head[_0x5dbf('0x18')]]=searchOrder[tail['index']];}else{if(searchOrder[head[_0x5dbf('0x18')]]<lowPoint[tail[_0x5dbf('0x18')]])lowPoint[tail[_0x5dbf('0x18')]]=searchOrder[head['index']];}}if(vertexStack[_0x5dbf('0x15')]>0x1){var top=vertexStack[vertexStack[_0x5dbf('0x15')]-0x1];var next=vertexStack[vertexStack['length']-0x2];if(lowPoint[top[_0x5dbf('0x18')]]==searchOrder[next[_0x5dbf('0x18')]]){var component=new Graph();var topEdge=componentStack[componentStack[_0x5dbf('0x15')]-0x1];while(searchOrder[topEdge[_0x5dbf('0x9')][_0x5dbf('0x18')]]>=searchOrder[next['index']]&&searchOrder[topEdge['destination'][_0x5dbf('0x18')]]>=searchOrder[next[_0x5dbf('0x18')]]){componentStack['pop']();if(!component[_0x5dbf('0xbb')]['includes'](topEdge[_0x5dbf('0x9')]))component['addVertexAndOutEdges'](topEdge['origin']);if(!component[_0x5dbf('0xbb')][_0x5dbf('0xc')](topEdge[_0x5dbf('0xa')]))component[_0x5dbf('0xeb')](topEdge[_0x5dbf('0xa')]);if(componentStack[_0x5dbf('0x15')]==0x0)break;topEdge=componentStack[componentStack[_0x5dbf('0x15')]-0x1];}blocks[_0x5dbf('0x13')](component[_0x5dbf('0xfb')](!![]));}else{if(lowPoint[next[_0x5dbf('0x18')]]>lowPoint[top['index']])lowPoint[next[_0x5dbf('0x18')]]=lowPoint[top[_0x5dbf('0x18')]];}vertexStack[_0x5dbf('0xd7')]();edgeStack[_0x5dbf('0xd7')]();}else{break;}}}return blocks;}[_0x5dbf('0x107')](){let augmentation=[];let bcGraph=new Factory[(_0x5dbf('0x108'))](this);bcGraph[_0x5dbf('0x109')]();while(bcGraph['vertices'][_0x5dbf('0x15')]>0x1){let c=bcGraph[_0x5dbf('0x10a')]();let pendants=[];for(let edge of c[_0x5dbf('0x1')])pendants['push'](edge[_0x5dbf('0xa')]);let bnodesToMerge=new Set();Utils[_0x5dbf('0x10b')](bnodesToMerge,pendants);let v=null,c1=c,c2=c;if(pendants[_0x5dbf('0x15')]>0x1){for(let i=0x0;i<pendants['length']-0x1;++i){let out1=bcGraph[_0x5dbf('0x10c')](pendants[i]);let out2=bcGraph[_0x5dbf('0x10c')](pendants[i+0x1]);let newEdge=this[_0x5dbf('0xe4')](out1,out2);augmentation[_0x5dbf('0x13')](newEdge);if(i==0x0)v=out1;}}else{v=bcGraph[_0x5dbf('0x10c')](pendants[0x0]);}let cnodesOnPath=new Set();while(bcGraph['father'](c1)!=bcGraph[_0x5dbf('0x55')]&&this[_0x5dbf('0x10d')](v,bcGraph[_0x5dbf('0x10e')](c1))){c2=c1;let bNode=bcGraph[_0x5dbf('0x10f')](c2);bnodesToMerge[_0x5dbf('0x54')](bNode);c1=bcGraph[_0x5dbf('0x10f')](bNode);cnodesOnPath[_0x5dbf('0x54')](c2);}if(this[_0x5dbf('0x10d')](v,bcGraph['getCutvertex'](c1))){c2=c1;cnodesOnPath[_0x5dbf('0x54')](c2);}let bx=bcGraph[_0x5dbf('0x10f')](c2);bnodesToMerge[_0x5dbf('0x54')](bx);let newEdge2=this[_0x5dbf('0xe4')](v,bcGraph[_0x5dbf('0x110')](bx,c2));augmentation[_0x5dbf('0x13')](newEdge2);bcGraph[_0x5dbf('0x111')](bnodesToMerge,bx);for(let cNode of cnodesOnPath){if(cNode!=c&&cNode[_0x5dbf('0x14')]()>0x2)bcGraph[_0x5dbf('0x112')](cNode,bx);else bcGraph[_0x5dbf('0x113')](cNode);}for(let bNode of bnodesToMerge)if(bNode!=bx)bcGraph['removeBnode'](bNode);}return augmentation;}[_0x5dbf('0x10d')](v1,v2){let temp=this[_0x5dbf('0xe4')](v1,v2);let planar=this[_0x5dbf('0x114')]();this[_0x5dbf('0x7')](temp);return planar;}[_0x5dbf('0x10f')](vertex){return vertex['inEdges'][0x0][_0x5dbf('0x9')];}[_0x5dbf('0x115')](cutpoints){let embedding=this[_0x5dbf('0x116')](cutpoints);let dualGraph=new Factory['DualGraph'](this,embedding);for(let face of dualGraph[_0x5dbf('0xbc')]){let faceVertices=dualGraph[_0x5dbf('0x96')](face);if(Utils['containsAll'](faceVertices,cutpoints)){for(let vertex of faceVertices){if(!cutpoints[_0x5dbf('0xc')](vertex))return vertex;}return cutpoints[0x0];}}return null;}['getOutsideVertexCPN'](cutpoints,neighbor){let embedding=this['embedOnSameFace'](cutpoints);let dualGraph=new Factory['DualGraph'](this,embedding);for(let face of dualGraph['faces']){let faceVertices=dualGraph[_0x5dbf('0x96')](face);if(Utils[_0x5dbf('0x117')](faceVertices,cutpoints)){for(let edge of face[_0x5dbf('0x0')]){if(edge['incidentWith'](neighbor))return edge[_0x5dbf('0xf')](neighbor);}return cutpoints[0x0];}}return null;}[_0x5dbf('0x118')](){return this[_0x5dbf('0x119')](![]);}[_0x5dbf('0x11a')](){return this[_0x5dbf('0x119')](!![]);}[_0x5dbf('0x119')](returnPairs){if(this[_0x5dbf('0xbb')][_0x5dbf('0x15')]<0x2)return returnPairs?[]:[this];if(this[_0x5dbf('0xbb')][0x0]['index']===undefined)this['setItemIndices']();this['edges']['forEach'](function(e){delete e['cutEdge'];delete e[_0x5dbf('0x11b')];});var cutPairs=[];var dfs=0x0;var dfsNumber=[];var nd=[];var lowpt=[];var low=[];var lowpt2=[];var low2=[];var tolow=[];var stack=[];var newlink=[];var generatorBuckets=new Map();function findCutPairs(v,parentEdge){var vi=v[_0x5dbf('0x18')];dfsNumber[vi]=dfs++;newlink[vi]=v;nd[vi]=0x1;lowpt[vi]=dfsNumber[vi];low[vi]=v;lowpt2[vi]=dfsNumber[vi];low2[vi]=v;if(stack[vi]===undefined)stack[vi]=[];v[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){if(e==parentEdge)return;var w=e['getOtherEnd'](v);var wi=w['index'];if(dfsNumber[wi]===undefined){e[_0x5dbf('0x11b')]=!![];e['child']=w;findCutPairs(w,e);var s=stack[wi];var top=s['length']>0x0?s[s[_0x5dbf('0x15')]-0x1]:null;if(top!=null&&w==top['q']){s[_0x5dbf('0xd7')]();cutPairs[_0x5dbf('0x13')]([e,top['edge']]);e[_0x5dbf('0x11c')]=!![];top[_0x5dbf('0x11d')][_0x5dbf('0x11c')]=!![];if(returnPairs){if(!generatorBuckets[_0x5dbf('0xa4')](top['edge']))generatorBuckets[_0x5dbf('0xa0')](top[_0x5dbf('0x11d')],[]);generatorBuckets[_0x5dbf('0x51')](top[_0x5dbf('0x11d')])[_0x5dbf('0x13')](e);}if(v!=top['p'])s[_0x5dbf('0x13')]({'edge':top[_0x5dbf('0x11d')],'p':top['p'],'q':v});if(top['edge'][_0x5dbf('0x11b')]){var y=top[_0x5dbf('0x11d')][_0x5dbf('0x11e')]['index'];newlink[y]=v;}}nd[vi]=nd[vi]+nd[wi];if(lowpt[wi]<lowpt[vi]){lowpt2[vi]=lowpt[vi];lowpt[vi]=lowpt[wi];low2[vi]=low[vi];low[vi]=low[wi];stack[vi]=stack[wi][_0x5dbf('0x95')](0x0);tolow[vi]=e;}else if(lowpt[wi]<lowpt2[vi]){lowpt2[vi]=lowpt[wi];low2[vi]=low[wi];stack[wi]=[];}}else if(dfsNumber[vi]>dfsNumber[wi]){if(dfsNumber[wi]<=lowpt[vi]){lowpt2[vi]=lowpt[vi];lowpt[vi]=dfsNumber[wi];low2[vi]=low[vi];low[vi]=w;stack[vi]=[];tolow[vi]=e;}else if(dfsNumber[wi]<lowpt2[vi]){lowpt2[vi]=dfsNumber[wi];low2[vi]=w;}}});var s=stack[vi];var top=s[_0x5dbf('0x15')]>0x0?s[s[_0x5dbf('0x15')]-0x1]:null;if(top==null){if(lowpt2[vi]>lowpt[vi]){s[_0x5dbf('0x13')]({'edge':tolow[vi],'p':low[vi],'q':low2[vi]});}}else if(lowpt2[vi]>dfsNumber[top['q']['index']]){s[_0x5dbf('0x13')]({'edge':tolow[vi],'p':top['q'],'q':low2[vi]});}else{while(s[_0x5dbf('0x15')]>0x0&&lowpt2[vi]<=dfsNumber[s[s[_0x5dbf('0x15')]-0x1]['p'][_0x5dbf('0x18')]])s['pop']();if(s['length']>0x0&&lowpt2[vi]<dfsNumber[s[s['length']-0x1]['q'][_0x5dbf('0x18')]]){var se=s[_0x5dbf('0xd7')]();s[_0x5dbf('0x13')]({'edge':se[_0x5dbf('0x11d')],'p':se['p'],'q':low2[vi]});}}v['edges'][_0x5dbf('0x12')](function(e){var u=e[_0x5dbf('0xf')](v);var ui=u[_0x5dbf('0x18')];if(e[_0x5dbf('0x11b')]||dfsNumber[vi]>dfsNumber[ui])return;var top=s[_0x5dbf('0x15')]>0x0?s[s[_0x5dbf('0x15')]-0x1]:null;var y=top==null?null:top['edge']['child'];var yi=y?y[_0x5dbf('0x18')]:0x0;while(top!=null&&top[_0x5dbf('0x11d')]['treeEdge']&&dfsNumber[yi]<=dfsNumber[ui]&&dfsNumber[ui]<=dfsNumber[yi]+nd[yi]-0x1){s[_0x5dbf('0xd7')]();top=s[_0x5dbf('0x15')]>0x0?s[s['length']-0x1]:null;y=top==null?null:top['edge'][_0x5dbf('0x11e')];yi=y?y[_0x5dbf('0x18')]:0x0;}});}findCutPairs(this['vertices'][0x0],null);if(returnPairs){generatorBuckets['forEach'](function(edges){for(var i=0x0;i<edges[_0x5dbf('0x15')];i++)for(var j=i+0x1;j<edges[_0x5dbf('0x15')];j++)if(!cutPairs[_0x5dbf('0x11f')](function(p){return p[0x0]==edges[i]&&p[0x1]==edges[j];}))cutPairs[_0x5dbf('0x13')]([edges[i],edges[j]]);});return cutPairs;}var cutEdges=[];this[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){if(e[_0x5dbf('0x11c')])cutEdges[_0x5dbf('0x13')](e);});cutEdges['forEach'](function(e){this[_0x5dbf('0x7')](e);},this);var newEdges=[];this[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(v){if(newlink[v[_0x5dbf('0x18')]]!=v){var e=this[_0x5dbf('0xe4')](v,newlink[v[_0x5dbf('0x18')]]);newEdges[_0x5dbf('0x13')](e);}},this);var comps=this[_0x5dbf('0xf8')]();newEdges['forEach'](function(e){this[_0x5dbf('0x7')](e);},this);cutEdges[_0x5dbf('0x12')](function(e){this[_0x5dbf('0xa9')](e);},this);return comps;}[_0x5dbf('0x120')](){var va=this[_0x5dbf('0xbb')];if(va[_0x5dbf('0x15')]<0x4)return[];function remainsConnectedWithout(v1,v2){var queue=[];var visited=[];var processed=0x1;va[_0x5dbf('0x12')](function(v){if(v!=v1&&v!=v2){queue[_0x5dbf('0x13')](v);visited[v[_0x5dbf('0x18')]]=!![];return $break;}});while(queue[_0x5dbf('0x15')]>0x0){var v=queue['shift']();v[_0x5dbf('0x121')]()[_0x5dbf('0x12')](function(n){if(visited[n[_0x5dbf('0x18')]]||v1==n||v2==n)return;queue[_0x5dbf('0x13')](n);visited[n['index']]=!![];processed++;});}return processed==va[_0x5dbf('0x15')]-0x2;}this['setItemIndices']();var separationPairs=[];for(var i=0x0;i<va[_0x5dbf('0x15')]-0x1;i++)for(var j=i+0x1;j<va[_0x5dbf('0x15')];j++)if(!remainsConnectedWithout(va[i],va[j]))separationPairs[_0x5dbf('0x13')]([va[i],va[j]]);return separationPairs;}[_0x5dbf('0x122')](){var dfsCounter=0x0;var dfsNumber=[];var dfsVertex=[];var low1=[];var low2=[];var parent=[];var children=[];var nd=[];var flag=[];var separationPairs=[];var removed=[];var This=this;var VLen=This[_0x5dbf('0xbb')][_0x5dbf('0x15')];this[_0x5dbf('0x0')]['forEach'](function(e){delete e['spTreeEdge'];});function traverse(V,P){var v=V['index'];children[v]=[];dfsNumber[v]=dfsCounter++;dfsVertex[dfsNumber[v]]=V;parent[v]=P;low1[v]=low2[v]=dfsNumber[v];nd[v]=0x1;V['edges'][_0x5dbf('0x12')](function(e){var W=e[_0x5dbf('0xf')](V);var w=W[_0x5dbf('0x18')];if(dfsNumber[w]===undefined){e[_0x5dbf('0x123')]=!![];children[v][_0x5dbf('0x13')](W);traverse(W,V);if(low1[w]<low1[v]){low2[v]=Math[_0x5dbf('0xbd')](low1[v],low2[w]);low1[v]=low1[w];}else if(low1[w]==low1[v]){low2[v]=Math['min'](low2[v],low2[w]);}else{low2[v]=Math[_0x5dbf('0xbd')](low2[v],low1[w]);}nd[v]+=nd[w];}else if(dfsNumber[w]<dfsNumber[v]&&(w!=P['index']||flag[v])){if(dfsNumber[w]<low1[v]){low2[v]=low1[v];low1[v]=dfsNumber[w];}else if(dfsNumber[w]>low1[v]){low2[v]=Math[_0x5dbf('0xbd')](low2[v],dfsNumber[w]);}}if(W==P)flag[v]=!![];});if(P){var X=dfsVertex[low1[v]];var t3s=nd[v];if(X!=P&&low2[v]>=dfsNumber[P[_0x5dbf('0x18')]]&&t3s<VLen-0x2)separationPairs['push']([X,P]);else if(dfsNumber[X[_0x5dbf('0x18')]]>0x0&&intermLinksOnlyToSubtree(X,P,V))separationPairs[_0x5dbf('0x13')]([X,P]);}var sameLow=![];getChildren(V)['forEach'](function(Q){if(low1[v]==low1[Q[_0x5dbf('0x18')]]){sameLow=!![];return $break;}});if(nd[v]>0x1&&!sameLow){var vc=This[_0x5dbf('0xe7')]();vc['index']=This['vertices'][_0x5dbf('0x15')]-0x1;V['edges']['slice'](0x0)[_0x5dbf('0x12')](function(e){if(!e[_0x5dbf('0x123')]){var W=e[_0x5dbf('0xf')](V);if(dfsNumber[v]>dfsNumber[W[_0x5dbf('0x18')]])e[_0x5dbf('0x1c')](V,vc);}});var ce=This[_0x5dbf('0xe4')](V,vc);ce[_0x5dbf('0x18')]=This[_0x5dbf('0x0')][_0x5dbf('0x15')]-0x1;ce[_0x5dbf('0x123')]=!![];dfsNumber[vc['index']]=dfsNumber[v];low1[vc['index']]=low1[v];nd[vc[_0x5dbf('0x18')]]=0x1;parent[vc['index']]=V;reduce(vc,V);removed[_0x5dbf('0x13')](vc);}var nontreeEdges=0x0;V['edges'][_0x5dbf('0x12')](function(e){if(!e['spTreeEdge'])nontreeEdges++;});if(nontreeEdges>0x1){reduce(V,V);removed[_0x5dbf('0x13')](V);}}function pathNodesBetween(a,d){var nodes=[];while(parent[d['index']]!=a){nodes[_0x5dbf('0x13')](parent[d[_0x5dbf('0x18')]]);d=parent[d[_0x5dbf('0x18')]];}return nodes;}function intermLinksOnlyToSubtree(a,d,v){var intermNodes=pathNodesBetween(a,d);var onlyToSubtree=!![];intermNodes[_0x5dbf('0x12')](function(node){node[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var w=e[_0x5dbf('0xf')](node);if(w==a||w==d)return;if(dfsNumber[w['index']]===undefined)onlyToSubtree=![];else if(dfsNumber[w[_0x5dbf('0x18')]]<dfsNumber[a['index']])onlyToSubtree=![];else if(dfsNumber[w[_0x5dbf('0x18')]]>dfsNumber[d[_0x5dbf('0x18')]]&&dfsNumber[w[_0x5dbf('0x18')]]<dfsNumber[v['index']])onlyToSubtree=![];else if(low1[w['index']]<dfsNumber[a[_0x5dbf('0x18')]])onlyToSubtree=![];});if(!onlyToSubtree)return $break;});return onlyToSubtree;}function getChildren(V){var v=V[_0x5dbf('0x18')];var children=[];V[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){if(e[_0x5dbf('0x123')]){var W=e[_0x5dbf('0xf')](V);if(dfsNumber[v]<dfsNumber[W[_0x5dbf('0x18')]])children[_0x5dbf('0x13')](W);}});return children;}function reduce(V,rep){var v=V[_0x5dbf('0x18')];var outNodes=[];var inNodes=[];V['edges'][_0x5dbf('0x12')](function(e){if(e['spTreeEdge'])return;var W=e['getOtherEnd'](V);if(dfsNumber[v]>dfsNumber[W[_0x5dbf('0x18')]]){if(!outNodes[_0x5dbf('0xc')](W))outNodes[_0x5dbf('0x13')](W);}else{if(!inNodes[_0x5dbf('0xc')](W))inNodes[_0x5dbf('0x13')](W);}});outNodes[_0x5dbf('0x124')](sortByDfsNumber);inNodes['sort'](sortByDfsNumber);var outReplacement=[];outNodes[_0x5dbf('0x12')](function(n){var r=This[_0x5dbf('0xe7')]();r[_0x5dbf('0x125')]=rep;r['index']=This[_0x5dbf('0xbb')][_0x5dbf('0x15')]-0x1;nd[r[_0x5dbf('0x18')]]=nd[v];outReplacement[_0x5dbf('0x13')](r);});var inReplacement=[];inNodes[_0x5dbf('0x12')](function(n){var r=This['createVertex']();r[_0x5dbf('0x125')]=rep;r[_0x5dbf('0x18')]=This[_0x5dbf('0xbb')][_0x5dbf('0x15')]-0x1;nd[r['index']]=nd[v];inReplacement[_0x5dbf('0x13')](r);});var replacement=[];outReplacement['forReverse'](function(v){replacement[_0x5dbf('0x13')](v);});inReplacement[_0x5dbf('0x126')](function(v){replacement['push'](v);});for(var i=0x0;i<replacement['length']-0x1;i++){var e=This[_0x5dbf('0xe4')](replacement[i],replacement[i+0x1]);e[_0x5dbf('0x18')]=This[_0x5dbf('0x0')]['length']-0x1;e[_0x5dbf('0x125')]=rep;e[_0x5dbf('0x123')]=!![];}var parentEdge=null;var childEdges=[];V[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){if(e['spTreeEdge']){var W=e[_0x5dbf('0xf')](V);if(dfsNumber[v]<dfsNumber[W[_0x5dbf('0x18')]])childEdges[_0x5dbf('0x13')](e);else if(dfsNumber[v]>=dfsNumber[W[_0x5dbf('0x18')]])parentEdge=e;}});if(parentEdge){parentEdge[_0x5dbf('0x1c')](V,replacement[0x0]);parentEdge[_0x5dbf('0x125')]=rep;}childEdges[_0x5dbf('0x12')](function(childEdge){childEdge[_0x5dbf('0x1c')](V,replacement[replacement[_0x5dbf('0x15')]-0x1]);childEdge['replacementFor']=rep;});parent[replacement[0x0][_0x5dbf('0x18')]]=parent[v];for(var i=0x0;i<outNodes['length'];i++){var u=outNodes[i];var uiOut=V[_0x5dbf('0x127')](u);uiOut[_0x5dbf('0x12')](function(e){if(!e[_0x5dbf('0x123')])e['changeVertex'](V,outReplacement[i]);});low1[outReplacement[i][_0x5dbf('0x18')]]=low1[v];dfsNumber[outReplacement[i][_0x5dbf('0x18')]]=dfsNumber[v];}for(var i=0x0;i<inNodes[_0x5dbf('0x15')];i++){var w=inNodes[i];var wiIn=V[_0x5dbf('0x127')](w);wiIn[_0x5dbf('0x12')](function(e){if(!e[_0x5dbf('0x123')])e[_0x5dbf('0x1c')](V,inReplacement[i]);});low1[inReplacement[i][_0x5dbf('0x18')]]=low1[v];dfsNumber[inReplacement[i]['index']]=dfsNumber[v];}}function sortByDfsNumber(v1,v2){if(dfsNumber[v1[_0x5dbf('0x18')]]<dfsNumber[v2[_0x5dbf('0x18')]])return-0x1;if(dfsNumber[v1[_0x5dbf('0x18')]]>dfsNumber[v2[_0x5dbf('0x18')]])return 0x1;return 0x0;}function childOnPathTo(a,d){while(parent[d[_0x5dbf('0x18')]]!=a)d=parent[d[_0x5dbf('0x18')]];return d;}this[_0x5dbf('0xee')]();traverse(this[_0x5dbf('0xbb')][0x0],null);removed['forEach'](function(V){Utils[_0x5dbf('0x8')](This[_0x5dbf('0xbb')],V);});var candidates=[];var cutPairs=this[_0x5dbf('0x11a')]();cutPairs[_0x5dbf('0x12')](function(pair){if(!(pair[0x0][_0x5dbf('0x123')]&&pair[0x1][_0x5dbf('0x123')]))return;var e1v=pair[0x0]['getEnds']();var e2v=pair[0x1][_0x5dbf('0x19')]();e1v[_0x5dbf('0x124')](sortByDfsNumber);e2v[_0x5dbf('0x124')](sortByDfsNumber);if(!parent[e1v[0x0][_0x5dbf('0x18')]]&&nd[e2v[0x1][_0x5dbf('0x18')]]===0x1)return;if(!parent[e2v[0x0][_0x5dbf('0x18')]]&&nd[e1v[0x1][_0x5dbf('0x18')]]===0x1)return;var e1Vertices=[];e1Vertices[_0x5dbf('0x13')](pair[0x0][_0x5dbf('0x9')]);e1Vertices[_0x5dbf('0x13')](pair[0x0][_0x5dbf('0xa')]);var e2Vertices=[];e2Vertices['push'](pair[0x1][_0x5dbf('0x9')]);e2Vertices[_0x5dbf('0x13')](pair[0x1][_0x5dbf('0xa')]);for(var i=0x0;i<e1Vertices[_0x5dbf('0x15')];i++)for(var j=0x0;j<e2Vertices[_0x5dbf('0x15')];j++)if(e1Vertices[i]!=e2Vertices[j])candidates[_0x5dbf('0x13')]([e1Vertices[i],e2Vertices[j]]);});candidates[_0x5dbf('0x12')](function(pair){var a,d;if(dfsNumber[pair[0x0][_0x5dbf('0x18')]]<dfsNumber[pair[0x1]['index']]){a=pair[0x0];d=pair[0x1];}else{d=pair[0x0];a=pair[0x1];}if(a[_0x5dbf('0x125')])a=a[_0x5dbf('0x125')];if(d[_0x5dbf('0x125')])d=d[_0x5dbf('0x125')];if(a==d)return;var t3s=t3Sizes(a,d,children[d[_0x5dbf('0x18')]][0x0],children[d['index']]);if(t3s[0x1]!=0x0&&t3s[0x0]+t3s[0x2]!=0x0&&!separationPairs[_0x5dbf('0x11f')](function(e){return e[0x0]==a&&e[0x1]==d;}))separationPairs[_0x5dbf('0x13')]([a,d]);});function t3Sizes(a,d,v,children){var sizeOfV3=children[_0x5dbf('0x15')]==0x0?0x0:nd[v[_0x5dbf('0x18')]];var U=childOnPathTo(a,d);var sizeOfV2=nd[U['index']]-sizeOfV3-0x1;children[_0x5dbf('0x12')](function(W){if(W==v)return;if(low1[W['index']]<dfsNumber[a['index']])sizeOfV2-=nd[W['index']];});var sizeOfV1=VLen-sizeOfV2-sizeOfV3-0x2;return[sizeOfV1,sizeOfV2,sizeOfV3];}return separationPairs;}[_0x5dbf('0x128')](start){this['setItemIndices']();this['searchCounter']=0x0;this[_0x5dbf('0x100')]=createIdArray(this['vertices'][_0x5dbf('0x15')],-0x1);this[_0x5dbf('0x129')]=createIdArray(this['vertices'][_0x5dbf('0x15')],-0x1);this[_0x5dbf('0x103')]=createIdArray(this['vertices'][_0x5dbf('0x15')],-0x1);if(start!=null)this[_0x5dbf('0x12a')](start[_0x5dbf('0x18')],start[_0x5dbf('0x18')]);for(let v=0x0;v<this['vertices']['length'];v++)if(this[_0x5dbf('0x100')][v]==-0x1)this[_0x5dbf('0x12a')](v,v);}[_0x5dbf('0x12a')](origin,dest){let destVertex=this[_0x5dbf('0xbb')][dest];this[_0x5dbf('0x100')][dest]=this['searchCounter']++;this[_0x5dbf('0x129')][dest]=origin;this[_0x5dbf('0x103')][dest]=this['searchOrder'][dest];for(let edge of destVertex[_0x5dbf('0x0')]){let test=edge['getOtherEnd'](destVertex)[_0x5dbf('0x18')];if(this[_0x5dbf('0x100')][test]==-0x1){this[_0x5dbf('0x12a')](dest,test);if(this[_0x5dbf('0x103')][dest]>this[_0x5dbf('0x103')][test])this['backMostEdges'][dest]=this[_0x5dbf('0x103')][test];}else if(test!=origin){if(this['backMostEdges'][dest]>this[_0x5dbf('0x100')][test])this['backMostEdges'][dest]=this[_0x5dbf('0x100')][test];}}}[_0x5dbf('0x12b')](sink){let verticesInStOrder=[];this['stOrder']=createIdArray(this['vertices'][_0x5dbf('0x15')],-0x1);let oldVertices=createBoolArray(this[_0x5dbf('0xbb')]['length']);let oldEdges=createBoolArray(this['edges'][_0x5dbf('0x15')]);if(this[_0x5dbf('0xbb')]['length']==0x1){verticesInStOrder[_0x5dbf('0x13')](this['vertices'][0x0]);return verticesInStOrder;}this[_0x5dbf('0x128')](sink);let stack=[];let s=null,t=null;for(let vertex of this[_0x5dbf('0xbb')]){let n=vertex[_0x5dbf('0x18')];if(this['searchOrder'][n]==0x0){t=vertex;oldVertices[n]=!![];}else if(this['searchOrder'][n]==0x1){s=vertex;oldVertices[n]=!![];}else{oldVertices[n]=![];}}for(let edge of this[_0x5dbf('0x0')])oldEdges[edge[_0x5dbf('0x18')]]=edge['joins'](s,t);stack['push'](t);stack[_0x5dbf('0x13')](s);let i=0x0;while(!![]){let v=stack[_0x5dbf('0xd7')]();if(v==t){this[_0x5dbf('0x12c')][v[_0x5dbf('0x18')]]=i;verticesInStOrder[_0x5dbf('0x13')](v);break;}let path=this[_0x5dbf('0x12d')](v,oldVertices,oldEdges);if(path[_0x5dbf('0x15')]>0x0){let vstack=[];for(let edge of path){vstack[_0x5dbf('0x13')](v);v=edge['getOtherEnd'](v);}while(vstack[_0x5dbf('0x15')]>0x0)stack[_0x5dbf('0x13')](vstack[_0x5dbf('0xd7')]());}else{this[_0x5dbf('0x12c')][v['index']]=i;verticesInStOrder[_0x5dbf('0x13')](v);i++;}}return verticesInStOrder;}[_0x5dbf('0x12e')](sink){let reversedEdges=[];this[_0x5dbf('0x12b')](sink);for(let e of this[_0x5dbf('0x0')]){if(this[_0x5dbf('0x12c')][e[_0x5dbf('0x9')]['index']]>this['stOrder'][e['destination']['index']]){e[_0x5dbf('0x1d')]();reversedEdges[_0x5dbf('0x13')](e);}}return reversedEdges;}[_0x5dbf('0x12f')](edge){return!(this[_0x5dbf('0x129')][edge[_0x5dbf('0x9')]['index']]==edge[_0x5dbf('0xa')][_0x5dbf('0x18')])&&!(this[_0x5dbf('0x129')][edge['destination']['index']]==edge['origin'][_0x5dbf('0x18')]);}[_0x5dbf('0x12d')](v,oldVertices,oldEdges){let path=[];for(let edge of v[_0x5dbf('0x0')]){let w=edge[_0x5dbf('0xf')](v);if(!oldEdges[edge[_0x5dbf('0x18')]]&&this[_0x5dbf('0x12f')](edge)&&this[_0x5dbf('0x100')][w['index']]<this[_0x5dbf('0x100')][v[_0x5dbf('0x18')]]){oldEdges[edge['index']]=!![];path[_0x5dbf('0x13')](edge);return path;}}for(let edge of v[_0x5dbf('0x0')]){let w=edge[_0x5dbf('0xf')](v);if(!oldEdges[edge[_0x5dbf('0x18')]]&&!this[_0x5dbf('0x12f')](edge)&&this['searchParent'][w[_0x5dbf('0x18')]]==v['index']&&this[_0x5dbf('0x100')][w[_0x5dbf('0x18')]]>this[_0x5dbf('0x100')][v['index']]){oldEdges[edge['index']]=!![];path[_0x5dbf('0x13')](edge);while(!oldVertices[w[_0x5dbf('0x18')]]){let found=![];for(let testEdge of w[_0x5dbf('0x0')]){if(!oldEdges[testEdge[_0x5dbf('0x18')]]&&this[_0x5dbf('0x100')][testEdge[_0x5dbf('0xf')](w)[_0x5dbf('0x18')]]==this[_0x5dbf('0x103')][w[_0x5dbf('0x18')]]){oldVertices[w[_0x5dbf('0x18')]]=!![];oldEdges[testEdge[_0x5dbf('0x18')]]=!![];path[_0x5dbf('0x13')](testEdge);found=!![];break;}}if(!found){for(let testEdge of w['edges']){if(!oldEdges[testEdge[_0x5dbf('0x18')]]&&this['searchParent'][testEdge[_0x5dbf('0xf')](w)[_0x5dbf('0x18')]]==w[_0x5dbf('0x18')]&&this[_0x5dbf('0x103')][testEdge[_0x5dbf('0xf')](w)[_0x5dbf('0x18')]]==this[_0x5dbf('0x103')][w[_0x5dbf('0x18')]]){oldVertices[w[_0x5dbf('0x18')]]=!![];oldEdges[testEdge[_0x5dbf('0x18')]]=!![];path[_0x5dbf('0x13')](testEdge);w=testEdge[_0x5dbf('0xf')](w);break;}}}}return path;}}for(let edge of v['edges']){let w=edge['getOtherEnd'](v);if(!oldEdges[edge[_0x5dbf('0x18')]]&&this[_0x5dbf('0x12f')](edge)&&this[_0x5dbf('0x100')][v[_0x5dbf('0x18')]]<this['searchOrder'][w[_0x5dbf('0x18')]]){oldEdges[edge[_0x5dbf('0x18')]]=!![];path[_0x5dbf('0x13')](edge);while(!oldVertices[w['index']]){for(let testEdge of w[_0x5dbf('0x0')]){if(!oldEdges[testEdge['index']]&&testEdge[_0x5dbf('0xf')](w)[_0x5dbf('0x18')]==this['searchParent'][w[_0x5dbf('0x18')]]){oldVertices[w[_0x5dbf('0x18')]]=!![];oldEdges[testEdge[_0x5dbf('0x18')]]=!![];path[_0x5dbf('0x13')](testEdge);w=testEdge[_0x5dbf('0xf')](w);break;}}}return path;}}return path;}[_0x5dbf('0x114')](){let biconnectedComponents=this[_0x5dbf('0x130')]();for(let block of biconnectedComponents){if(!block[_0x5dbf('0x131')]({}))return![];}return!![];}[_0x5dbf('0x131')](embeddingInfo){let edgePermNodes=[];if(this[_0x5dbf('0xbb')][_0x5dbf('0x15')]<=0x2)return!![];let verticesInStOrder=embeddingInfo[_0x5dbf('0x132')];if(verticesInStOrder==null)verticesInStOrder=this[_0x5dbf('0x12b')]();let pqTree=new PQTree();for(let edge of this[_0x5dbf('0x0')])edgePermNodes[edge[_0x5dbf('0x18')]]=new PQTree[(_0x5dbf('0x3d'))](edge);let currentVertex=verticesInStOrder[0x0];for(let edge of currentVertex[_0x5dbf('0x0')])pqTree['root'][_0x5dbf('0x40')](edgePermNodes[edge['index']]);for(let j=0x1;j<verticesInStOrder[_0x5dbf('0x15')];j++){let edgeNodes=[];currentVertex=verticesInStOrder[j];for(let edge of currentVertex['edges']){if(this['stOrder'][edge['getOtherEnd'](currentVertex)[_0x5dbf('0x18')]]<j)edgeNodes[_0x5dbf('0x13')](edgePermNodes[edge[_0x5dbf('0x18')]]);}let pertRoot=pqTree[_0x5dbf('0x133')](edgeNodes);if(pertRoot==null)return![];if(j<verticesInStOrder[_0x5dbf('0x15')]-0x1){let newRoot=new PQTree[(_0x5dbf('0x3d'))]();edgeNodes=[];for(let edge of currentVertex[_0x5dbf('0x0')]){if(this['stOrder'][edge[_0x5dbf('0xf')](currentVertex)['index']]>j)edgeNodes[_0x5dbf('0x13')](edgePermNodes[edge['index']]);}if(edgeNodes[_0x5dbf('0x15')]==0x1){newRoot=edgeNodes[0x0];}else{for(let pqNode of edgeNodes)newRoot[_0x5dbf('0x40')](pqNode);}let pertRootParent=pertRoot[_0x5dbf('0x28')];if(pertRoot[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')]){pertRoot[_0x5dbf('0x82')](newRoot);if(!pertRoot['pseudoRoot']){if(pertRoot[_0x5dbf('0x134')]()){pertRoot[_0x5dbf('0x37')]=NodeType[_0x5dbf('0x38')];}else if(pertRoot[_0x5dbf('0x50')][_0x5dbf('0x25')]==0x1){if(pertRoot==pqTree[_0x5dbf('0x55')]){newRoot[_0x5dbf('0x28')]=null;pqTree[_0x5dbf('0x55')]=newRoot;}else{pertRoot[_0x5dbf('0x28')][_0x5dbf('0x4c')](pertRoot,newRoot);}}}}else{if(pertRoot==pqTree[_0x5dbf('0x55')]){pqTree[_0x5dbf('0x55')]=newRoot;}else{pertRoot[_0x5dbf('0x28')][_0x5dbf('0x4c')](pertRoot,newRoot);}}pertRoot[_0x5dbf('0x20')](![]);if(pertRootParent!=null)pertRootParent['reinit'](!![]);}}if(embeddingInfo['savePqTree'])embeddingInfo[_0x5dbf('0x135')]=pqTree;return!![];}[_0x5dbf('0x136')](){let entireEmbedding=new Embedding(this);let biconnectedComponents=this[_0x5dbf('0x130')](!![]);for(let bic of biconnectedComponents){let bicompEmbedding=bic[_0x5dbf('0x137')]({});entireEmbedding[_0x5dbf('0xa1')](bic,bicompEmbedding);}return entireEmbedding;}[_0x5dbf('0x137')](embeddingInfo){let embedding=new Map();if(this[_0x5dbf('0xbb')][_0x5dbf('0x15')]>0x2){let tVertex=this[_0x5dbf('0x138')](embedding,embeddingInfo);if(tVertex!=null)embedding=this[_0x5dbf('0x139')](embedding,tVertex);}else{for(let vertex of this['vertices']){embedding[_0x5dbf('0xa0')](vertex,[]);for(let edge of vertex['edges'])embedding[_0x5dbf('0x51')](vertex)[_0x5dbf('0x13')](edge);}}return embedding;}[_0x5dbf('0x138')](embedding,embeddingInfo){this[_0x5dbf('0xee')]();let pqTree=new PQTree();let nodemap=new Map();let edgePQNodes=[];for(let edge of this['edges'])edgePQNodes[edge[_0x5dbf('0x18')]]=new PQTree['Node'](null,edge);let upwardEdges=[];upwardEdges['push']([]);let verticesInStOrder=embeddingInfo['verticesInStOrder'];if(verticesInStOrder==null)verticesInStOrder=this['getStNumbering']();let currentVertex=verticesInStOrder[0x0];for(let edge of currentVertex['edges'])pqTree[_0x5dbf('0x55')]['addChild'](edgePQNodes[edge['index']]);for(let j=0x1;j<verticesInStOrder[_0x5dbf('0x15')];j++){let edgeNodes=[];currentVertex=verticesInStOrder[j];for(let edge of currentVertex[_0x5dbf('0x0')]){if(this[_0x5dbf('0x12c')][edge['getOtherEnd'](currentVertex)[_0x5dbf('0x18')]]<j)edgeNodes[_0x5dbf('0x13')](edgePQNodes[edge['index']]);}let pertinentRoot=pqTree[_0x5dbf('0x133')](edgeNodes);if(pertinentRoot==null)return null;let fullLeaves=pertinentRoot[_0x5dbf('0x8b')]();upwardEdges[_0x5dbf('0x13')](fullLeaves);if(j<verticesInStOrder[_0x5dbf('0x15')]-0x1){edgeNodes=[];for(let edge of currentVertex[_0x5dbf('0x0')]){if(this[_0x5dbf('0x12c')][edge[_0x5dbf('0xf')](currentVertex)[_0x5dbf('0x18')]]>j)edgeNodes['push'](edgePQNodes[edge['index']]);}let newRoot=edgeNodes[_0x5dbf('0x15')]==0x1?edgeNodes[0x0]:new PQTree['Node']();if(edgeNodes[_0x5dbf('0x15')]>0x1){for(let pqNode of edgeNodes)newRoot[_0x5dbf('0x40')](pqNode);}let pertRootParent=pertinentRoot[_0x5dbf('0x28')];if(pertinentRoot[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x43')]&&(pertinentRoot[_0x5dbf('0x3e')]!=NodeLabel[_0x5dbf('0x3b')]||pertinentRoot[_0x5dbf('0x56')])){let to=pertinentRoot[_0x5dbf('0x84')]();let from=pertinentRoot[_0x5dbf('0x83')]();pertinentRoot[_0x5dbf('0x82')](newRoot);let dNode=new PQTree[(_0x5dbf('0x3d'))](NodeType['directionIndicator'],null);nodemap[_0x5dbf('0xa0')](dNode,currentVertex);dNode['parent']=newRoot[_0x5dbf('0x28')];if(from!=null){from[_0x5dbf('0x29')][_0x5dbf('0x7e')](newRoot,dNode);dNode[_0x5dbf('0x29')][_0x5dbf('0x54')](from);newRoot[_0x5dbf('0x29')]['replace'](from,dNode);dNode[_0x5dbf('0x29')][_0x5dbf('0x54')](newRoot);dNode[_0x5dbf('0x8c')]=newRoot;}else if(to!=null){to[_0x5dbf('0x29')][_0x5dbf('0x7e')](newRoot,dNode);dNode['immediateSiblings'][_0x5dbf('0x54')](to);newRoot['immediateSiblings']['replace'](to,dNode);dNode[_0x5dbf('0x29')]['add'](newRoot);dNode['direction']=to;}if(!pertinentRoot[_0x5dbf('0x56')]){if(pertinentRoot[_0x5dbf('0x134')]()){pertinentRoot['type']=NodeType[_0x5dbf('0x38')];}else if(pertinentRoot[_0x5dbf('0x50')][_0x5dbf('0x25')]==0x1){if(pertinentRoot==pqTree[_0x5dbf('0x55')]){newRoot['parent']=null;pqTree[_0x5dbf('0x55')]=newRoot;}else{pertinentRoot['parent'][_0x5dbf('0x4c')](pertinentRoot,newRoot);}}}}else{if(pertinentRoot==pqTree[_0x5dbf('0x55')])pqTree[_0x5dbf('0x55')]=newRoot;else pertinentRoot[_0x5dbf('0x28')]['replaceChild'](pertinentRoot,newRoot);}pertinentRoot[_0x5dbf('0x20')](![]);if(pertRootParent!=null)pertRootParent[_0x5dbf('0x20')](!![]);}}let desiredOrder=embeddingInfo[_0x5dbf('0x13a')];if(desiredOrder!=null){let h=verticesInStOrder[_0x5dbf('0x15')]-0x1;let currentOrder=[];for(let node of upwardEdges[h])currentOrder['push'](node[_0x5dbf('0x5e')]);let qNodes=[];pqTree[_0x5dbf('0x55')][_0x5dbf('0x88')](qNodes,NodeType['qNode']);for(let qNode of qNodes){let leaves=qNode[_0x5dbf('0x86')]();let dCurrent=currentOrder['indexOf'](leaves[0x0][_0x5dbf('0x5e')])-currentOrder[_0x5dbf('0x93')](leaves[0x1]['data']);let dDesired=desiredOrder[_0x5dbf('0x93')](leaves[0x0][_0x5dbf('0x5e')])-desiredOrder[_0x5dbf('0x93')](leaves[0x1][_0x5dbf('0x5e')]);if(dCurrent*dDesired<0x0){for(let child of qNode[_0x5dbf('0x89')]())if(child[_0x5dbf('0x8a')]==NodeType[_0x5dbf('0x71')])child[_0x5dbf('0x60')]=!child['readInReverseDirection'];}}}for(let h=verticesInStOrder['length']-0x1;h>=0x0;h--){let fullLeaves=upwardEdges[h];for(let k=0x0;k<fullLeaves[_0x5dbf('0x15')];k++){let pqNode=fullLeaves[k];if(pqNode[_0x5dbf('0x37')]==NodeType[_0x5dbf('0x71')]){if(pqNode[_0x5dbf('0x60')]){let indexOfNodeToReverse=this['stOrder'][nodemap[_0x5dbf('0x51')](pqNode)[_0x5dbf('0x18')]];let edgesOfNodeToReverse=upwardEdges[indexOfNodeToReverse];let edgesOfNodeReversed=[];for(let x=edgesOfNodeToReverse[_0x5dbf('0x15')]-0x1;x>=0x0;x--){let node=edgesOfNodeToReverse[x];if(node['type']==NodeType[_0x5dbf('0x71')])node[_0x5dbf('0x60')]=!node[_0x5dbf('0x60')];edgesOfNodeReversed[_0x5dbf('0x13')](node);}upwardEdges[indexOfNodeToReverse]=edgesOfNodeReversed;}}}}for(let h=0x0;h<verticesInStOrder[_0x5dbf('0x15')];h++){currentVertex=verticesInStOrder[h];let fullLeaves=upwardEdges[h];let orderedEdges=[];embedding['set'](currentVertex,orderedEdges);for(let pqNode of fullLeaves){if(pqNode[_0x5dbf('0x37')]!=NodeType[_0x5dbf('0x71')])orderedEdges[_0x5dbf('0x13')](pqNode['data']);}}if(embeddingInfo[_0x5dbf('0x13b')])embeddingInfo[_0x5dbf('0x135')]=pqTree;return verticesInStOrder[verticesInStOrder[_0x5dbf('0x15')]-0x1];}[_0x5dbf('0x139')](upEmbedding,tVertex){let entireEmbedding=new Map();for(const [vertex,edges]of upEmbedding[_0x5dbf('0x9f')]())entireEmbedding[_0x5dbf('0xa0')](vertex,edges[_0x5dbf('0x95')]());let oldVertices=createBoolArray(this['vertices'][_0x5dbf('0x15')]);this[_0x5dbf('0x13c')](upEmbedding,entireEmbedding,tVertex,oldVertices);return entireEmbedding;}[_0x5dbf('0x13c')](upEmbedding,entireEmbedding,vertex,oldVertices){oldVertices[vertex[_0x5dbf('0x18')]]=!![];for(let currentEdge of upEmbedding[_0x5dbf('0x51')](vertex)){let otherVertex=currentEdge[_0x5dbf('0xf')](vertex);entireEmbedding[_0x5dbf('0x51')](otherVertex)[_0x5dbf('0x13d')](currentEdge);if(!oldVertices[otherVertex[_0x5dbf('0x18')]])this[_0x5dbf('0x13c')](upEmbedding,entireEmbedding,otherVertex,oldVertices);}}[_0x5dbf('0x13e')](edgesToDelete,crossingConstrainedEdges){return this['findPlanarSubgraphByBookEmbedding'](edgesToDelete,crossingConstrainedEdges);}[_0x5dbf('0x13f')](edgesToDelete,knownPlanarEdges,crossingConstrainedEdges){let planarSubgraph=new Graph();this[_0x5dbf('0xee')]();let vmap=new Map();let cvmap=new Map();for(let v of this[_0x5dbf('0xbb')]){let copy=new Vertex();copy['debugId']=v[_0x5dbf('0xed')];vmap[_0x5dbf('0xa0')](v,copy);cvmap[_0x5dbf('0xa0')](copy,v);planarSubgraph[_0x5dbf('0xbb')][_0x5dbf('0x13')](copy);}let emap=new Map();let cemap=new Map();planarSubgraph['vertexOrigToCopyMap']=vmap;planarSubgraph[_0x5dbf('0xa2')]=cvmap;planarSubgraph[_0x5dbf('0xd5')]=emap;planarSubgraph[_0x5dbf('0xa3')]=cemap;if(knownPlanarEdges!=null){for(let e of knownPlanarEdges){let copy=planarSubgraph[_0x5dbf('0xe4')](vmap['get'](e[_0x5dbf('0x9')]),vmap[_0x5dbf('0x51')](e[_0x5dbf('0xa')]));copy[_0x5dbf('0xed')]=e[_0x5dbf('0xed')];copy['weight']=e[_0x5dbf('0x3')];emap['set'](e,copy);cemap[_0x5dbf('0xa0')](copy,e);}if(knownPlanarEdges['size']==this['edges'][_0x5dbf('0x15')])return planarSubgraph;}if(crossingConstrainedEdges!=null){if(knownPlanarEdges==null)knownPlanarEdges=new Set();for(let e of crossingConstrainedEdges){if(knownPlanarEdges[_0x5dbf('0xa4')](e))continue;let copy=planarSubgraph['createEdge'](vmap[_0x5dbf('0x51')](e[_0x5dbf('0x9')]),vmap[_0x5dbf('0x51')](e[_0x5dbf('0xa')]));copy[_0x5dbf('0xed')]=e[_0x5dbf('0xed')];if(!planarSubgraph[_0x5dbf('0x114')]()){edgesToDelete[_0x5dbf('0x140')]();return this[_0x5dbf('0x13f')](edgesToDelete,null,crossingConstrainedEdges);}knownPlanarEdges[_0x5dbf('0x54')](e);copy[_0x5dbf('0x3')]=e[_0x5dbf('0x3')];emap['set'](e,copy);cemap[_0x5dbf('0xa0')](copy,e);}}for(let e of this[_0x5dbf('0x0')]){if(knownPlanarEdges!=null&&knownPlanarEdges[_0x5dbf('0xa4')](e))continue;let copy=planarSubgraph[_0x5dbf('0xe4')](vmap[_0x5dbf('0x51')](e['origin']),vmap[_0x5dbf('0x51')](e[_0x5dbf('0xa')]));copy[_0x5dbf('0xed')]=e[_0x5dbf('0xed')];if(!planarSubgraph[_0x5dbf('0x114')]()){planarSubgraph['removeEdge'](copy);edgesToDelete['add'](e);}copy[_0x5dbf('0x3')]=e[_0x5dbf('0x3')];emap['set'](e,copy);cemap[_0x5dbf('0xa0')](copy,e);}return planarSubgraph;}[_0x5dbf('0x141')](edgesToDelete,crossingConstrainedEdges){this['setItemIndices']();let order=createIdArray(this[_0x5dbf('0xbb')][_0x5dbf('0x15')],-0x1);let remaining=new Set();for(let v of this['vertices'])remaining[_0x5dbf('0x54')](v);let last=null;for(let i=0x0;i<this[_0x5dbf('0xbb')][_0x5dbf('0x15')];++i){last=this[_0x5dbf('0x142')](last,remaining);order[last[_0x5dbf('0x18')]]=i;remaining[_0x5dbf('0xa5')](last);}let intervals=[];for(let e of this['edges']){let originPos=order[e[_0x5dbf('0x9')][_0x5dbf('0x18')]];let destPos=order[e[_0x5dbf('0xa')][_0x5dbf('0x18')]];intervals[_0x5dbf('0x13')](new Interval(Math['min'](originPos,destPos),Math[_0x5dbf('0xbe')](originPos,destPos)));}let overlapGraph=new Factory['OverlapGraph'](intervals);let veMap=new Map();for(let i=0x0;i<this[_0x5dbf('0x0')][_0x5dbf('0x15')];++i)veMap[_0x5dbf('0xa0')](overlapGraph[_0x5dbf('0xbb')][i],this[_0x5dbf('0x0')][i]);let maxIndependentSet=overlapGraph[_0x5dbf('0x143')]();let planarEdges=new Set();for(let v of maxIndependentSet)planarEdges[_0x5dbf('0x54')](veMap[_0x5dbf('0x51')](v));for(let v of maxIndependentSet){Utils[_0x5dbf('0x8')](overlapGraph[_0x5dbf('0x144')],overlapGraph['vertexIntervals'][_0x5dbf('0x51')](v));overlapGraph[_0x5dbf('0xea')](v);}maxIndependentSet=overlapGraph[_0x5dbf('0x143')]();for(let v of maxIndependentSet)planarEdges[_0x5dbf('0x54')](veMap[_0x5dbf('0x51')](v));return this[_0x5dbf('0x13f')](edgesToDelete,planarEdges,crossingConstrainedEdges);}[_0x5dbf('0x142')](vertex,vset){if(vertex==null)return this[_0x5dbf('0x145')](vset);let minAdjNeighbor=null;let minAdj=Number[_0x5dbf('0x146')];for(let e of vertex[_0x5dbf('0x0')]){let neighbor=e[_0x5dbf('0xf')](vertex);if(!vset[_0x5dbf('0xa4')](neighbor))continue;let adj=this[_0x5dbf('0x147')](neighbor,vset);if(adj<minAdj){minAdj=adj;minAdjNeighbor=neighbor;}}return minAdjNeighbor||this[_0x5dbf('0x145')](vset);}[_0x5dbf('0x145')](vset){let minDegree=Number['MAX_SAFE_INTEGER'];let minDegreeVertex=null;for(let v of vset){if(v[_0x5dbf('0x14')]()<minDegree){minDegreeVertex=v;minDegree=v['degree']();}}return minDegreeVertex;}['countAdjacencies'](vertex,vset){let count=0x0;for(let e of vertex[_0x5dbf('0x0')]){if(vset[_0x5dbf('0xa4')](e['getOtherEnd'](vertex)))count++;}return count;}[_0x5dbf('0x116')](faceVertices){if(faceVertices[_0x5dbf('0x15')]<0x2)return this[_0x5dbf('0x136')]();let virtualVertex=this[_0x5dbf('0xec')]();let virtualEdges=[];for(let vertex of faceVertices){let virtualEdge=this[_0x5dbf('0xe4')](virtualVertex,vertex);virtualEdges['push'](virtualEdge);}let planarization=this['planarize'](null,virtualEdges);planarization[_0x5dbf('0x148')]();let embedding=planarization[_0x5dbf('0x136')]();this[_0x5dbf('0xea')](virtualVertex);let virtualCopy=planarization[_0x5dbf('0xd4')][_0x5dbf('0x51')](virtualVertex);embedding[_0x5dbf('0x8')](virtualCopy);return new Embedding(null,embedding,planarization[_0x5dbf('0xa2')],planarization[_0x5dbf('0xa3')]);}[_0x5dbf('0x149')](edgeToDummyEdgesMap,crossingConstrainedEdges){if(crossingConstrainedEdges!=null){for(let e of this[_0x5dbf('0x0')])e['weight']=0x1;for(let e of crossingConstrainedEdges)e['weight']=this['edges'][_0x5dbf('0x15')]*0x3e8;}let splitMap=new Map();let splitTrees=new Map();let edgesToDelete=new Set();let planarSubgraph=this['findPlanarSubgraph'](edgesToDelete,crossingConstrainedEdges);if(edgesToDelete[_0x5dbf('0x14a')]==0x0)return planarSubgraph;let dualGraph=planarSubgraph['getDualGraph'](!![]);for(let e of edgesToDelete){let v1=planarSubgraph[_0x5dbf('0xd4')][_0x5dbf('0x51')](e[_0x5dbf('0x9')]);let v2=planarSubgraph[_0x5dbf('0xd4')][_0x5dbf('0x51')](e[_0x5dbf('0xa')]);let oFaces=dualGraph[_0x5dbf('0x14b')](v1);let dFaces=dualGraph['getIncidentFaces'](v2);let oFaceVertices=dualGraph[_0x5dbf('0x14c')](oFaces);let dFaceVertices=dualGraph[_0x5dbf('0x14c')](dFaces);let commonEdges=[];let dummyEdges=[];let dummyEdgePath=[];dummyEdgePath[_0x5dbf('0x13')](v1);let pathInDualGraph=crossingConstrainedEdges==null?dualGraph[_0x5dbf('0xf2')](oFaceVertices,dFaceVertices):dualGraph[_0x5dbf('0x14d')](oFaceVertices,dFaceVertices);for(let i=0x0;i<pathInDualGraph[_0x5dbf('0x15')]-0x1;++i){let f1=dualGraph['vertexToFaceMap'][_0x5dbf('0x51')](pathInDualGraph[i]);let f2=dualGraph[_0x5dbf('0x14e')][_0x5dbf('0x51')](pathInDualGraph[i+0x1]);let commonEdge=crossingConstrainedEdges==null?dualGraph[_0x5dbf('0xe')](f1,f2):dualGraph[_0x5dbf('0x14f')](f1,f2);commonEdges[_0x5dbf('0x13')](commonEdge);let splitParent=null;if(splitMap[_0x5dbf('0xa4')](commonEdge)){splitParent=splitMap[_0x5dbf('0x51')](commonEdge);}else{let tree=new BinaryTree(commonEdge);splitParent=tree[_0x5dbf('0x55')];splitMap[_0x5dbf('0xa0')](commonEdge,splitParent);if(!commonEdge['temporary'])splitTrees[_0x5dbf('0xa0')](commonEdge,tree);}let dummy=planarSubgraph[_0x5dbf('0xef')](commonEdge);dummyEdgePath[_0x5dbf('0x13')](dummy);if(splitParent!=null){splitParent[_0x5dbf('0xc3')](dummy['inEdges'][0x0],dummy[_0x5dbf('0x1')][0x0]);splitMap[_0x5dbf('0xa0')](dummy[_0x5dbf('0x2')][0x0],splitParent['left']);splitMap['set'](dummy[_0x5dbf('0x1')][0x0],splitParent['right']);}}dummyEdgePath[_0x5dbf('0x13')](v2);for(let i=0x0;i<dummyEdgePath[_0x5dbf('0x15')]-0x1;++i){let dummy=planarSubgraph[_0x5dbf('0xe4')](dummyEdgePath[i],dummyEdgePath[i+0x1]);dummy[_0x5dbf('0xf0')]=!![];dummyEdges[_0x5dbf('0x13')](dummy);}for(let i=0x0;i<commonEdges['length'];++i){let replaceInFaces=commonEdges[i];let addedVertex=dummyEdgePath[i+0x1];dualGraph[_0x5dbf('0xaf')](replaceInFaces,addedVertex);}for(let i=0x0;i<dummyEdges[_0x5dbf('0x15')];++i){dualGraph[_0x5dbf('0x150')](dualGraph[_0x5dbf('0x14e')]['get'](pathInDualGraph[i]),dummyEdges[i]);}if(edgeToDummyEdgesMap!=null)edgeToDummyEdgesMap[_0x5dbf('0xa0')](e,dummyEdges);dualGraph['setItemIndices']();}if(edgeToDummyEdgesMap!=null){for(const [edge,tree]of splitTrees[_0x5dbf('0x9f')]()){edgeToDummyEdgesMap[_0x5dbf('0xa0')](planarSubgraph['edgeCopyToOrigMap'][_0x5dbf('0x51')](edge),tree['getLeaves']());}for(let e of edgesToDelete){let dl=edgeToDummyEdgesMap[_0x5dbf('0x51')](e)[_0x5dbf('0x95')]();edgeToDummyEdgesMap[_0x5dbf('0xa0')](e,[]);for(let d of dl){if(splitMap[_0x5dbf('0xa4')](d))edgeToDummyEdgesMap[_0x5dbf('0x51')](e)[_0x5dbf('0x13')](...splitMap[_0x5dbf('0x51')](d)[_0x5dbf('0xc1')]());else edgeToDummyEdgesMap[_0x5dbf('0x51')](e)[_0x5dbf('0x13')](d);}}}return planarSubgraph;}['makeAcyclic'](){if(this['vertices'][_0x5dbf('0x15')]<=0x1||this[_0x5dbf('0x0')]['length']<=0x1)return[];if(this[_0x5dbf('0xbb')][_0x5dbf('0x15')]==0x2){var result=[];var edge=this[_0x5dbf('0x0')][0x0];edge['reverse']();result[_0x5dbf('0x13')](edge);return result;}var copy=this[_0x5dbf('0xfb')](!![]);var n=this['vertices']['length'];var vertexBuckets=new Map();copy[_0x5dbf('0xbb')]['forEach'](function(v){addVertexToBucket(v,n,vertexBuckets);});var sl=[];var sr=[];while(copy[_0x5dbf('0xbb')][_0x5dbf('0x15')]>0x0){if(vertexBuckets['has'](0x2-n)){var sinks=vertexBuckets[_0x5dbf('0x51')](0x2-n);while(sinks['length']>0x0){var sink=sinks[_0x5dbf('0xd7')]();sink[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var neighbor=e[_0x5dbf('0xf')](sink);var bucket=getBucket(neighbor,n);Utils[_0x5dbf('0x8')](vertexBuckets[_0x5dbf('0x51')](bucket),neighbor);neighbor['removeEdge'](e);addVertexToBucket(neighbor,n,vertexBuckets);});Utils[_0x5dbf('0x8')](copy[_0x5dbf('0xbb')],sink);sr['unshift'](sink);}}if(vertexBuckets[_0x5dbf('0xa4')](n-0x2)){var sources=vertexBuckets['get'](n-0x2);while(sources['length']>0x0){var source=sources[_0x5dbf('0xd7')]();source[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var neighbor=e[_0x5dbf('0xf')](source);var bucket=getBucket(neighbor,n);Utils[_0x5dbf('0x8')](vertexBuckets['get'](bucket),neighbor);neighbor[_0x5dbf('0x7')](e);addVertexToBucket(neighbor,n,vertexBuckets);});Utils[_0x5dbf('0x8')](copy['vertices'],source);sl[_0x5dbf('0x13')](source);}}if(copy[_0x5dbf('0xbb')][_0x5dbf('0x15')]>0x0){for(var i=n-0x3;i>0x2-n;i--){if(vertexBuckets[_0x5dbf('0xa4')](i)&&vertexBuckets['get'](i)[_0x5dbf('0x15')]>0x0){var maxdiff=vertexBuckets[_0x5dbf('0x51')](i);var v=maxdiff[_0x5dbf('0xd7')]();v['edges']['forEach'](function(e){var neighbor=e[_0x5dbf('0xf')](v);var bucket=getBucket(neighbor,n);Utils[_0x5dbf('0x8')](vertexBuckets[_0x5dbf('0x51')](bucket),neighbor);neighbor[_0x5dbf('0x7')](e);addVertexToBucket(neighbor,n,vertexBuckets);});Utils[_0x5dbf('0x8')](copy[_0x5dbf('0xbb')],v);sl[_0x5dbf('0x13')](v);break;}}}}sl[_0x5dbf('0x13')](...sr);var vertexOrder=new Map();for(var i=0x0;i<this[_0x5dbf('0xbb')][_0x5dbf('0x15')];i++)vertexOrder[_0x5dbf('0xa0')](copy[_0x5dbf('0xa2')]['get'](sl[i]),i);var reversedEdges=[];this['edges'][_0x5dbf('0x12')](function(e){if(vertexOrder[_0x5dbf('0x51')](e[_0x5dbf('0x9')])>vertexOrder[_0x5dbf('0x51')](e[_0x5dbf('0xa')])){e[_0x5dbf('0x1d')]();reversedEdges[_0x5dbf('0x13')](e);}});return reversedEdges;}[_0x5dbf('0x151')](cacheIncidentFaces){let embedding=this[_0x5dbf('0x136')]();return new Factory[(_0x5dbf('0x152'))](this,embedding,cacheIncidentFaces);}[_0x5dbf('0x153')](embedding,s,t){return new Factory['DualGraph'](this,embedding,!![],s,t);}[_0x5dbf('0x154')](){this[_0x5dbf('0xee')]();this[_0x5dbf('0xf9')]=0x0;this[_0x5dbf('0x155')]=0x0;var vertices=this[_0x5dbf('0xbb')];var postOrder=createIdArray(vertices['length'],-0x1);var topologicalOrder=createIdArray(vertices[_0x5dbf('0x15')],-0x1);this[_0x5dbf('0x100')]=createIdArray(vertices[_0x5dbf('0x15')],-0x1);for(var v=0x0;v<vertices[_0x5dbf('0x15')];v++){if(this[_0x5dbf('0x100')][v]==-0x1){var acyclic=this[_0x5dbf('0x156')](postOrder,topologicalOrder,v);if(!acyclic)return null;}}topologicalOrder[_0x5dbf('0x1d')]();return topologicalOrder;}[_0x5dbf('0x156')](postOrder,topologicalOrder,dest){var destVertex=this[_0x5dbf('0xbb')][dest];this['searchOrder'][dest]=this[_0x5dbf('0xf9')]++;for(var e=0x0;e<destVertex['outEdges']['length'];e++){var edge=destVertex[_0x5dbf('0x1')][e];var test=edge[_0x5dbf('0xa')][_0x5dbf('0x18')];if(this[_0x5dbf('0x100')][test]==-0x1){var acyclic=this[_0x5dbf('0x156')](postOrder,topologicalOrder,test);if(!acyclic)return![];}else if(postOrder[test]==-0x1){return![];}}topologicalOrder[this[_0x5dbf('0x155')]]=dest;postOrder[dest]=this[_0x5dbf('0x155')]++;return!![];}['getWeightedTopologicalNumbering'](minNumber){if(minNumber==null)minNumber=0x0;let tsort=this[_0x5dbf('0x154')]();return this[_0x5dbf('0x157')](tsort,minNumber);}[_0x5dbf('0x157')](tsort,minNumber){if(tsort==null)return null;let wtn=createIdArray(this['vertices'][_0x5dbf('0x15')],minNumber);for(let i=0x0;i<this[_0x5dbf('0xbb')]['length'];++i){let v=this[_0x5dbf('0xbb')][tsort[i]];for(let e of v[_0x5dbf('0x1')])if(wtn[v[_0x5dbf('0x18')]]+e[_0x5dbf('0x3')]>wtn[e[_0x5dbf('0xa')]['index']])wtn[e[_0x5dbf('0xa')][_0x5dbf('0x18')]]=wtn[v['index']]+e['weight'];}return wtn;}[_0x5dbf('0x158')](maxDegree,embedding){let toReplace=[];for(let v of this[_0x5dbf('0xbb')]){if(v[_0x5dbf('0x14')]()>maxDegree)toReplace[_0x5dbf('0x13')](v);}let replacementMap=new Map();for(let v of toReplace)replacementMap[_0x5dbf('0xa0')](v,this[_0x5dbf('0x159')](v,maxDegree,embedding));return replacementMap;}[_0x5dbf('0x159')](vertex,maxDegree,embedding){let rplcSize=Math[_0x5dbf('0xcc')]((vertex[_0x5dbf('0x14')]()+0x1)/0x2);let dummyCycle=[];dummyCycle[0x0]=vertex;for(let i=0x1;i<rplcSize;++i){let dummy=new Vertex();dummyCycle[i]=dummy;this['vertices']['push'](dummy);}let ve=embedding[_0x5dbf('0x51')](vertex)[_0x5dbf('0x95')]();for(let i=0x2;i<ve[_0x5dbf('0x15')];++i){let e=ve[i];if(e[_0x5dbf('0x9')]==vertex)e[_0x5dbf('0x1a')](dummyCycle[Math[_0x5dbf('0xcc')](i/0x2)]);else if(e[_0x5dbf('0xa')]==vertex)e['changeDestination'](dummyCycle[Math[_0x5dbf('0xcc')](i/0x2)]);}let replacement=new Graph();replacement[_0x5dbf('0xbb')][_0x5dbf('0x13')](...dummyCycle);for(let i=0x0;i<dummyCycle[_0x5dbf('0x15')];++i){let ce=this[_0x5dbf('0xe4')](dummyCycle[i],dummyCycle[(i+0x1)%dummyCycle[_0x5dbf('0x15')]]);ce['temporary']=!![];replacement[_0x5dbf('0x0')][_0x5dbf('0x13')](ce);}return replacement;}['reorderTopologically'](){let topologicalOrder=this['topologicalSort']();if(topologicalOrder==null)throw new Error(_0x5dbf('0x15a'));let sortedVertices=[];for(let i=0x0;i<this[_0x5dbf('0xbb')]['length'];++i)sortedVertices[_0x5dbf('0x13')](this['vertices'][topologicalOrder[i]]);this['vertices']=sortedVertices;this[_0x5dbf('0xee')]();}['maxWeightedCliqueOfTransitiveDAG'](){let g=this[_0x5dbf('0xfb')](!![]);g['reorderTopologically']();let sectionMaxCliqueWeights=createIdArray(this['vertices'][_0x5dbf('0x15')],0x0);for(let i=0x0;i<this[_0x5dbf('0xbb')][_0x5dbf('0x15')];++i){let v=g['vertices'][i];let maxCliqueWeight=v['weight'];for(let e of v[_0x5dbf('0x2')])maxCliqueWeight=Math[_0x5dbf('0xbe')](maxCliqueWeight,sectionMaxCliqueWeights[e['origin'][_0x5dbf('0x18')]]+v['weight']);sectionMaxCliqueWeights[i]=maxCliqueWeight;}let maxCliqueHighest=null;let sectionMaxCliqueWeight=-0x1;for(let i=0x0;i<this[_0x5dbf('0xbb')][_0x5dbf('0x15')];++i){if(sectionMaxCliqueWeight<sectionMaxCliqueWeights[i]){maxCliqueHighest=g[_0x5dbf('0xbb')][i];sectionMaxCliqueWeight=sectionMaxCliqueWeights[i];}}if(maxCliqueHighest==null)throw Error(_0x5dbf('0x15b'));let maxClique=[];maxClique[_0x5dbf('0x13')](g[_0x5dbf('0xa2')][_0x5dbf('0x51')](maxCliqueHighest));let sectionMaxCliqueHighest=maxCliqueHighest;while(sectionMaxCliqueHighest[_0x5dbf('0x2')][_0x5dbf('0x15')]>0x0){sectionMaxCliqueWeight=-0x1;for(let e of sectionMaxCliqueHighest[_0x5dbf('0x2')]){let v=e['origin'];if(sectionMaxCliqueWeight<sectionMaxCliqueWeights[v[_0x5dbf('0x18')]]){sectionMaxCliqueHighest=v;sectionMaxCliqueWeight=sectionMaxCliqueWeights[v[_0x5dbf('0x18')]];}}maxClique[_0x5dbf('0x13')](g[_0x5dbf('0xa2')][_0x5dbf('0x51')](sectionMaxCliqueHighest));}return maxClique;}}function getBucket(vertex,n){if(vertex[_0x5dbf('0x1')][_0x5dbf('0x15')]==0x0)return 0x2-n;else if(vertex['inEdges'][_0x5dbf('0x15')]==0x0)return n-0x2;else return vertex[_0x5dbf('0x1')][_0x5dbf('0x15')]-vertex[_0x5dbf('0x2')]['length'];}function addVertexToBucket(vertex,n,vertexBuckets){var bucket=getBucket(vertex,n);if(!vertexBuckets[_0x5dbf('0xa4')](bucket))vertexBuckets[_0x5dbf('0xa0')](bucket,[]);vertexBuckets['get'](bucket)['push'](vertex);}function createIdArray(size,value){var array=[];for(var i=0x0;i<size;++i)array[i]=value;return array;}function createBoolArray(size){let array=[];for(let i=0x0;i<size;++i)array[i]=![];return array;}class BlockCutpointGraph extends Graph{constructor(graph){super();this['targetGraph']=graph;this[_0x5dbf('0x15c')]=new Map();this[_0x5dbf('0x15d')]=new Map();this[_0x5dbf('0x15e')]=graph[_0x5dbf('0x130')](!![],(b,c)=>this[_0x5dbf('0x15f')](b,c));}[_0x5dbf('0x15f')](componentBlocks,componentCuts){for(let block of componentBlocks){let bNode=this['addVertex']();bNode['data']=block;block[_0x5dbf('0x148')]();this[_0x5dbf('0x15c')][_0x5dbf('0xa0')](block,bNode);}if(componentCuts==null)return;for(let cut of componentCuts){let cNode=this[_0x5dbf('0xec')](cut[_0x5dbf('0xed')]);cNode[_0x5dbf('0x5e')]=cut;this[_0x5dbf('0x15d')][_0x5dbf('0xa0')](cut,cNode);for(let block of componentBlocks){if(block['vertexOrigToCopyMap'][_0x5dbf('0xa4')](cut))this[_0x5dbf('0xe4')](this['blockToBnodeMap']['get'](block),cNode);}}}[_0x5dbf('0x160')](block){let cutVertices=[];let bNode=this['blockToBnodeMap'][_0x5dbf('0x51')](block);for(let edge of bNode['edges']){let vertex=edge[_0x5dbf('0xf')](bNode);cutVertices[_0x5dbf('0x13')](vertex['data']);}return cutVertices;}[_0x5dbf('0x161')](bNode){let cutVertices=[];for(let edge of bNode[_0x5dbf('0x0')]){let vertex=edge[_0x5dbf('0xf')](bNode);cutVertices[_0x5dbf('0x13')](vertex['data']);}return cutVertices;}[_0x5dbf('0x162')](bNode){return bNode[_0x5dbf('0x0')]['length']==0x1;}['adjacentBlocks'](cutVertex){let adjacentBlocks=[];let cNode=this[_0x5dbf('0x15d')][_0x5dbf('0x51')](cutVertex);for(let edge of cNode[_0x5dbf('0x0')]){let vertex=edge[_0x5dbf('0xf')](cNode);adjacentBlocks[_0x5dbf('0x13')](vertex[_0x5dbf('0x5e')]);}return adjacentBlocks;}['directFromRoot'](){this[_0x5dbf('0x55')]=null;let minDegree=Number['MAX_SAFE_INTEGER'];for(let vertex of this[_0x5dbf('0xbb')]){if(this[_0x5dbf('0x163')](vertex)&&vertex[_0x5dbf('0x14')]()<minDegree){this['root']=vertex;minDegree=this[_0x5dbf('0x55')]['degree']();}}this[_0x5dbf('0x164')](null,this['root']);}['directFrom'](parent,vertex){for(let edge of vertex['edges']){let otherEnd=edge[_0x5dbf('0xf')](vertex);if(otherEnd==parent){if(edge[_0x5dbf('0xa')]==parent)edge[_0x5dbf('0x1d')]();}else{this[_0x5dbf('0x164')](vertex,otherEnd);}}}[_0x5dbf('0x10a')](){if(this[_0x5dbf('0xbb')][_0x5dbf('0x15')]<0x2)return null;for(let vertex of this[_0x5dbf('0xbb')]){if(this[_0x5dbf('0x165')](vertex)){let pendantCut=!![];for(let edge of vertex['outEdges']){let child=edge['destination'];if(!this[_0x5dbf('0x162')](child)){pendantCut=![];break;}}if(pendantCut)return vertex;}}return null;}[_0x5dbf('0x10c')](bNode){let block=this[_0x5dbf('0x166')](bNode);let cutpoints=this[_0x5dbf('0x167')](this[_0x5dbf('0x161')](bNode),block[_0x5dbf('0xd4')]);return block[_0x5dbf('0xa2')][_0x5dbf('0x51')](block[_0x5dbf('0x115')](cutpoints));}['getOutsideVertexN'](bNode,neighborCnode){let block=this[_0x5dbf('0x166')](bNode);let neighborCutvertex=this[_0x5dbf('0x10e')](neighborCnode);let copy=block[_0x5dbf('0xd4')][_0x5dbf('0x51')](neighborCutvertex);let cutpoints=[];cutpoints[_0x5dbf('0x13')](copy);return block[_0x5dbf('0xa2')][_0x5dbf('0x51')](block[_0x5dbf('0x168')](cutpoints,copy));}[_0x5dbf('0x166')](bNode){return bNode[_0x5dbf('0x5e')];}['getCutvertex'](cNode){return cNode[_0x5dbf('0x5e')];}[_0x5dbf('0x169')](cut){return this[_0x5dbf('0x15d')]['get'](cut);}['mapVertices'](vertices,map){let mappedVertices=[];for(let vertex of vertices)mappedVertices[_0x5dbf('0x13')](map[_0x5dbf('0x51')](vertex));return mappedVertices;}[_0x5dbf('0x111')](bnodes,parent){let union=new Set();for(let bNode of bnodes){let block=this[_0x5dbf('0x166')](bNode);Utils['addAll'](union,this[_0x5dbf('0x167')](block[_0x5dbf('0xbb')],block[_0x5dbf('0xa2')]));}let mergedBlock=this[_0x5dbf('0x16a')][_0x5dbf('0xd3')](union['keys'](),!![]);mergedBlock[_0x5dbf('0x148')]();parent['data']=mergedBlock;this['blockToBnodeMap'][_0x5dbf('0xa0')](mergedBlock,parent);for(let bNode of bnodes){if(bNode==parent)continue;let edges=bNode[_0x5dbf('0x1')][_0x5dbf('0x95')]();for(let edge of edges)edge['changeOrigin'](parent);}}[_0x5dbf('0x112')](vertex,parent){vertex[_0x5dbf('0x2')][0x0][_0x5dbf('0x1a')](parent);}['removeCnode'](cNode){this['cutToCnodeMap'][_0x5dbf('0xa5')](this[_0x5dbf('0x10e')](cNode));this['removeVertex'](cNode);}['removeBnode'](bNode){this[_0x5dbf('0x15c')][_0x5dbf('0xa5')](this[_0x5dbf('0x166')](bNode));this[_0x5dbf('0xea')](bNode);}[_0x5dbf('0x165')](vertex){return vertex['data']instanceof Vertex;}[_0x5dbf('0x163')](vertex){return vertex[_0x5dbf('0x5e')]instanceof Graph;}}Factory['BlockCutpointGraph']=BlockCutpointGraph;class DualGraph extends Graph{constructor(graph,embedding,cacheIncidentFaces,s,t){super();this['graph']=graph;this['embedding']=embedding;this[_0x5dbf('0xbc')]=[];this['edgeToFaceMap']=new Map();if(cacheIncidentFaces)this[_0x5dbf('0x16b')]=new Map();embedding['createDirectedEdges']();for(let v of embedding['vertices']){for(let e of embedding[_0x5dbf('0x51')](v)){if(this[_0x5dbf('0x16c')][_0x5dbf('0xa4')](e))continue;let f=new Face();this[_0x5dbf('0xbc')][_0x5dbf('0x13')](f);let nextE=e;do{this[_0x5dbf('0x16c')]['set'](nextE,f);f[_0x5dbf('0x0')]['push'](nextE);nextE=embedding['getNextRightFaceEdge'](nextE);}while(nextE!=e);if(cacheIncidentFaces){for(let be of f['edges']){let o=be[_0x5dbf('0x9')];let ofaces=null;if(!this[_0x5dbf('0x16b')]['has'](o)){ofaces=[];this[_0x5dbf('0x16b')][_0x5dbf('0xa0')](o,ofaces);}else{ofaces=this[_0x5dbf('0x16b')][_0x5dbf('0x51')](o);}if(ofaces['length']==0x0||ofaces[0x0]!=f&&ofaces[ofaces[_0x5dbf('0x15')]-0x1]!=f)ofaces[_0x5dbf('0x13')](f);}}}}this['faceToVertexMap']=new Map();this['vertexToFaceMap']=new Map();for(let f of this[_0x5dbf('0xbc')])this[_0x5dbf('0x16d')](f);for(let e of graph[_0x5dbf('0x0')])this['dgCreateEdge'](e);this[_0x5dbf('0xee')]();if(s)this[_0x5dbf('0x16e')](s,t);}[_0x5dbf('0x16e')](s,t){let sFaces=this[_0x5dbf('0x14b')](s);let externalFace=null;for(let f of sFaces){if(f[_0x5dbf('0xb')](t)){if(externalFace==null){externalFace=f;}else{if(f[_0x5dbf('0x0')][_0x5dbf('0x15')]>externalFace[_0x5dbf('0x0')]['length'])externalFace=f;}}}this['leftExFace']=externalFace;this[_0x5dbf('0x16f')]=this[_0x5dbf('0x170')][_0x5dbf('0x51')](this['leftExFace']);this[_0x5dbf('0x171')]=new Face();this[_0x5dbf('0xbc')][_0x5dbf('0x13')](this[_0x5dbf('0x171')]);this[_0x5dbf('0x172')]=new Vertex();this[_0x5dbf('0xbb')][_0x5dbf('0x13')](this['rightExVertex']);this[_0x5dbf('0x170')][_0x5dbf('0xa0')](this[_0x5dbf('0x171')],this[_0x5dbf('0x172')]);this['vertexToFaceMap'][_0x5dbf('0xa0')](this[_0x5dbf('0x172')],this[_0x5dbf('0x171')]);let inEdges=this[_0x5dbf('0x16f')][_0x5dbf('0x2')][_0x5dbf('0x95')]();for(let e of inEdges){this[_0x5dbf('0x16f')][_0x5dbf('0x7')](e);e['destination']=this[_0x5dbf('0x172')];this['rightExVertex'][_0x5dbf('0x2')][_0x5dbf('0x13')](e);this[_0x5dbf('0x172')]['edges'][_0x5dbf('0x13')](e);}for(let e of externalFace[_0x5dbf('0x0')]){if(e[_0x5dbf('0xab')])this[_0x5dbf('0x16c')][_0x5dbf('0xa0')](e,this[_0x5dbf('0x171')]);}}[_0x5dbf('0x14b')](v){return this[_0x5dbf('0x16b')][_0x5dbf('0x51')](v);}[_0x5dbf('0x173')](v,f){if(!this['incidentFaces'][_0x5dbf('0xa4')](v))this[_0x5dbf('0x16b')][_0x5dbf('0xa0')](v,[]);this[_0x5dbf('0x16b')][_0x5dbf('0x51')](v)[_0x5dbf('0x13')](f);}[_0x5dbf('0x96')](face){let faceVertices=new Set();for(let edge of face[_0x5dbf('0x0')]){faceVertices[_0x5dbf('0x54')](edge[_0x5dbf('0x9')]);faceVertices['add'](edge[_0x5dbf('0xa')]);}return faceVertices;}[_0x5dbf('0x14c')](faceList){let faceVertices=new Set();for(let f of faceList)faceVertices[_0x5dbf('0x54')](this[_0x5dbf('0x170')][_0x5dbf('0x51')](f));return faceVertices;}['getCommonEdge'](f1,f2){for(let e of f1[_0x5dbf('0x0')]){let r=this['embedding'][_0x5dbf('0xba')](e);if(this[_0x5dbf('0x16c')][_0x5dbf('0x51')](r)==f2)return this['getOriginalEdge'](e);}return null;}[_0x5dbf('0x14f')](f1,f2){let minWeight=Number[_0x5dbf('0xf5')];let minWeightEdge=null;for(let e of f1[_0x5dbf('0x0')]){let r=this['embedding'][_0x5dbf('0xba')](e);if(this['edgeToFaceMap'][_0x5dbf('0x51')](r)==f2){let edge=this['getOriginalEdge'](e);if(edge[_0x5dbf('0x3')]<minWeight){minWeightEdge=edge;minWeight=edge['weight'];}}}return minWeightEdge;}[_0x5dbf('0x174')](e){for(let oe of e[_0x5dbf('0x9')][_0x5dbf('0x0')]){if(oe[_0x5dbf('0x175')](e[_0x5dbf('0x9')],e['destination']))return oe;}return null;}[_0x5dbf('0xaf')](oldEdge,newVertex){let e1=newVertex[_0x5dbf('0x2')][0x0];let e2=newVertex['outEdges'][0x0];let r=this['embedding'][_0x5dbf('0xba')](oldEdge);let f1=this[_0x5dbf('0x16c')][_0x5dbf('0x51')](oldEdge);let edgeIndex=f1[_0x5dbf('0x0')][_0x5dbf('0x93')](oldEdge);f1['edges'][edgeIndex]=e1;f1[_0x5dbf('0x0')]['splice'](edgeIndex+0x1,0x0,e2);let f2=this['edgeToFaceMap'][_0x5dbf('0x51')](r);let r1=e2['createReverseEdge']();let r2=e1[_0x5dbf('0x176')]();edgeIndex=f2[_0x5dbf('0x0')][_0x5dbf('0x93')](r);f2['edges'][edgeIndex]=r1;f2['edges'][_0x5dbf('0x94')](edgeIndex+0x1,0x0,r2);this['edgeToFaceMap'][_0x5dbf('0xa5')](oldEdge);this[_0x5dbf('0x16c')][_0x5dbf('0xa0')](e1,f1);this[_0x5dbf('0x16c')][_0x5dbf('0xa0')](e2,f1);this[_0x5dbf('0x16c')]['delete'](r);this[_0x5dbf('0x16c')]['set'](r1,f2);this[_0x5dbf('0x16c')][_0x5dbf('0xa0')](r2,f2);this[_0x5dbf('0x9e')][_0x5dbf('0xa8')](oldEdge,e1,e2,r,r1,r2,newVertex);if(this['incidentFaces']!=null)this[_0x5dbf('0x16b')][_0x5dbf('0xa0')](newVertex,[f1,f2]);}[_0x5dbf('0x150')](f,newEdge){let fromEdge=null,toEdge=null;let from=-0x1;for(let i=0x0;i<f[_0x5dbf('0x0')]['length'];++i){let e=f[_0x5dbf('0x0')][i];if(e[_0x5dbf('0x9')]==newEdge[_0x5dbf('0xa')]){from=i;fromEdge=e;}if(e[_0x5dbf('0xa')]==newEdge[_0x5dbf('0x9')]){toEdge=e;}}let f1=new Face();f1[_0x5dbf('0x0')][_0x5dbf('0x13')](newEdge);this['edgeToFaceMap'][_0x5dbf('0xa0')](newEdge,f1);let ei=from;do{let fe=f[_0x5dbf('0x0')][ei];f1[_0x5dbf('0x0')][_0x5dbf('0x13')](fe);this[_0x5dbf('0x16c')][_0x5dbf('0xa0')](fe,f1);ei=(ei+0x1)%f['edges']['length'];}while(f1[_0x5dbf('0x0')][f1['edges'][_0x5dbf('0x15')]-0x1]!=toEdge);let r=new Edge(newEdge[_0x5dbf('0xa')],newEdge['origin']);let f2=new Face();f2[_0x5dbf('0x0')][_0x5dbf('0x13')](r);this[_0x5dbf('0x16c')][_0x5dbf('0xa0')](r,f2);do{let fe=f['edges'][ei];f2[_0x5dbf('0x0')][_0x5dbf('0x13')](fe);this[_0x5dbf('0x16c')]['set'](fe,f2);ei=(ei+0x1)%f[_0x5dbf('0x0')][_0x5dbf('0x15')];}while(ei!=from);this['embedding'][_0x5dbf('0xa9')](newEdge,r,fromEdge,toEdge);let v=this[_0x5dbf('0x170')][_0x5dbf('0x51')](f);while(v[_0x5dbf('0x0')]['length']>0x0)this[_0x5dbf('0x7')](v['edges'][0x0]);this['faceToVertexMap'][_0x5dbf('0xa5')](f);this[_0x5dbf('0x14e')]['delete'](v);Utils[_0x5dbf('0x8')](this[_0x5dbf('0xbb')],v);this[_0x5dbf('0x16d')](f1);this['dgCreateVertex'](f2);for(let e of f1['edges'])this[_0x5dbf('0x177')](e);for(let e of f2[_0x5dbf('0x0')])this[_0x5dbf('0x177')](e);if(this[_0x5dbf('0x16b')]!=null){for(let e of f1['edges']){let o=e['origin'];let ofaces=this[_0x5dbf('0x16b')][_0x5dbf('0x51')](o);let oi=ofaces[_0x5dbf('0x93')](f);if(oi!=-0x1){ofaces[oi]=f1;if(o==newEdge[_0x5dbf('0x9')])ofaces[_0x5dbf('0x94')](oi+0x1,0x0,f2);if(o==newEdge[_0x5dbf('0xa')])ofaces['splice'](oi,0x0,f2);}}for(let e of f2[_0x5dbf('0x0')]){let o=e[_0x5dbf('0x9')];let ofaces=this[_0x5dbf('0x16b')][_0x5dbf('0x51')](o);let oi=ofaces['indexOf'](f);if(oi!=-0x1)ofaces[oi]=f2;}}Utils[_0x5dbf('0x8')](this[_0x5dbf('0xbc')],f);this[_0x5dbf('0xbc')][_0x5dbf('0x13')](f1);this[_0x5dbf('0xbc')][_0x5dbf('0x13')](f2);for(let vertex of f1[_0x5dbf('0x96')]()){let vf=this[_0x5dbf('0x14b')](vertex);if(!vf[_0x5dbf('0xc')](f1)){vf[_0x5dbf('0x13')](f1);}}for(let vertex of f2['getVertices']()){let vf=this[_0x5dbf('0x14b')](vertex);if(!vf['includes'](f2)){vf[_0x5dbf('0x13')](f2);}}}[_0x5dbf('0x16d')](f){let v=new Vertex();this[_0x5dbf('0xbb')][_0x5dbf('0x13')](v);this[_0x5dbf('0x170')][_0x5dbf('0xa0')](f,v);this['vertexToFaceMap'][_0x5dbf('0xa0')](v,f);return v;}[_0x5dbf('0x177')](e){let r=this[_0x5dbf('0x9e')]['getReverse'](e);let f1=this[_0x5dbf('0x16c')][_0x5dbf('0x51')](e);let f2=this['edgeToFaceMap'][_0x5dbf('0x51')](r);let d=this[_0x5dbf('0xe4')](this['faceToVertexMap'][_0x5dbf('0x51')](f1),this['faceToVertexMap'][_0x5dbf('0x51')](f2));d[_0x5dbf('0x3')]=e[_0x5dbf('0x3')];return d;}['setFaceIndices'](){for(let i=0x0;i<this[_0x5dbf('0xbc')][_0x5dbf('0x15')];++i)this['faces'][i][_0x5dbf('0x18')]=i;}[_0x5dbf('0x63')](e){return e[_0x5dbf('0xab')]?this[_0x5dbf('0x16c')][_0x5dbf('0x51')](this[_0x5dbf('0x9e')][_0x5dbf('0xba')](e)):this[_0x5dbf('0x16c')][_0x5dbf('0x51')](e);}[_0x5dbf('0x64')](e){return e[_0x5dbf('0xab')]?this['edgeToFaceMap']['get'](e):this[_0x5dbf('0x16c')]['get'](this[_0x5dbf('0x9e')][_0x5dbf('0xba')](e));}}Factory[_0x5dbf('0x152')]=DualGraph;class IntervalGraph extends Graph{constructor(intervals){super();this[_0x5dbf('0x178')]=new Map();for(let interval of intervals){let vertex=new Vertex();this[_0x5dbf('0xbb')][_0x5dbf('0x13')](vertex);this[_0x5dbf('0x178')][_0x5dbf('0xa0')](interval,vertex);}for(let i=0x0;i<intervals[_0x5dbf('0x15')]-0x1;++i){for(let j=i+0x1;j<intervals['length'];++j){let i1=intervals[i];let i2=intervals[j];if(i1['intersects'](i2))this[_0x5dbf('0xe4')](this[_0x5dbf('0xbb')][i],this[_0x5dbf('0xbb')][j]);}}this[_0x5dbf('0x144')]=intervals[_0x5dbf('0x95')]();}['maxWeightedIndependentSet'](){let complement=new Graph();for(let vertex of this[_0x5dbf('0xbb')]){let copy=complement[_0x5dbf('0xec')](vertex[_0x5dbf('0xed')]);copy[_0x5dbf('0x3')]=vertex[_0x5dbf('0x3')];}for(let i=0x0;i<this[_0x5dbf('0xbb')][_0x5dbf('0x15')]-0x1;++i){for(let j=i+0x1;j<this[_0x5dbf('0xbb')][_0x5dbf('0x15')];++j){if(!this[_0x5dbf('0xbb')][i]['adjacentTo'](this[_0x5dbf('0xbb')][j]))complement[_0x5dbf('0xe4')](complement['vertices'][i],complement[_0x5dbf('0xbb')][j]);}}complement[_0x5dbf('0xee')]();for(let e of complement[_0x5dbf('0x0')]){let oi=e['origin'][_0x5dbf('0x18')];let di=e[_0x5dbf('0xa')][_0x5dbf('0x18')];if(this['intervals'][oi][_0x5dbf('0xbd')]>this[_0x5dbf('0x144')][di][_0x5dbf('0xbd')])e[_0x5dbf('0x1d')]();}let complementMaxClique=complement[_0x5dbf('0x179')]();let maxIndependentSet=[];for(let v of complementMaxClique){let original=this[_0x5dbf('0xbb')][v[_0x5dbf('0x18')]];maxIndependentSet[_0x5dbf('0x13')](original);}return maxIndependentSet;}}class OverlapGraph extends Graph{constructor(intervals){super();this[_0x5dbf('0x178')]=new Map();this[_0x5dbf('0x17a')]=new Map();for(let interval of intervals){let vertex=new Vertex();this[_0x5dbf('0xbb')][_0x5dbf('0x13')](vertex);this[_0x5dbf('0x178')][_0x5dbf('0xa0')](interval,vertex);this[_0x5dbf('0x17a')][_0x5dbf('0xa0')](vertex,interval);}for(let i=0x0;i<intervals[_0x5dbf('0x15')]-0x1;++i){for(let j=i+0x1;j<intervals['length'];++j){let i1=intervals[i];let i2=intervals[j];if(i1['overlaps'](i2))this[_0x5dbf('0xe4')](this['vertices'][i],this[_0x5dbf('0xbb')][j]);}}this[_0x5dbf('0xee')]();this[_0x5dbf('0x144')]=intervals[_0x5dbf('0x95')]();}['maxIndependentSet'](){if(this['vertices'][_0x5dbf('0x15')]==0x0)return new Set();this['setItemIndices']();let inclusionGraph=new Graph();for(let interval of this[_0x5dbf('0x144')])inclusionGraph[_0x5dbf('0xec')]();for(let i=0x0;i<this[_0x5dbf('0x144')][_0x5dbf('0x15')];++i){for(let j=0x0;j<this[_0x5dbf('0x144')][_0x5dbf('0x15')];++j){let i1=this['intervals'][i];let i2=this[_0x5dbf('0x144')][j];if(i1!=i2&&i1[_0x5dbf('0x7c')](i2))inclusionGraph[_0x5dbf('0xe4')](inclusionGraph['vertices'][i],inclusionGraph[_0x5dbf('0xbb')][j]);}}let root=new Vertex();for(let vertex of inclusionGraph[_0x5dbf('0xbb')])inclusionGraph[_0x5dbf('0xe4')](root,vertex);inclusionGraph[_0x5dbf('0xbb')][_0x5dbf('0x13')](root);inclusionGraph[_0x5dbf('0xee')]();this[_0x5dbf('0x17b')]=new Map();this[_0x5dbf('0x17c')]=[];this['setInclusionLevel'](root);let vertexWeights=new Map();for(let vertex of this['levelVertices'][0x0])vertexWeights[_0x5dbf('0xa0')](vertex,0x1);let subgraphMaxSets=new Map();for(let vertex of this[_0x5dbf('0x17c')][0x0])subgraphMaxSets['set'](vertex,new Set());for(let i=0x1;i<this[_0x5dbf('0x17c')][_0x5dbf('0x15')];++i){for(let v of this[_0x5dbf('0x17c')][i]){let subIntervals=[];for(let e of inclusionGraph['vertices'][v[_0x5dbf('0x18')]]['outEdges'])subIntervals['push'](this[_0x5dbf('0x144')][e[_0x5dbf('0xa')][_0x5dbf('0x18')]]);let subIntervalGraph=new IntervalGraph(subIntervals);subIntervalGraph[_0x5dbf('0xee')]();for(let il of subIntervals)subIntervalGraph[_0x5dbf('0x178')]['get'](il)[_0x5dbf('0x3')]=vertexWeights[_0x5dbf('0x51')](this[_0x5dbf('0x178')]['get'](il));let wSet=subIntervalGraph[_0x5dbf('0x17d')]();let vsubMaxIndependentSet=new Set();for(let u of wSet){let interval=subIntervalGraph[_0x5dbf('0x144')][u[_0x5dbf('0x18')]];let overlapGraphVertex=this[_0x5dbf('0x178')][_0x5dbf('0x51')](interval);vsubMaxIndependentSet[_0x5dbf('0x54')](overlapGraphVertex);Utils['addAll'](vsubMaxIndependentSet,subgraphMaxSets[_0x5dbf('0x51')](overlapGraphVertex));}subgraphMaxSets[_0x5dbf('0xa0')](v,vsubMaxIndependentSet);vertexWeights[_0x5dbf('0xa0')](v,vsubMaxIndependentSet[_0x5dbf('0x14a')]+0x1);}}let intervalGraph=new IntervalGraph(this['intervals']);intervalGraph[_0x5dbf('0xee')]();for(let il of this[_0x5dbf('0x144')])intervalGraph[_0x5dbf('0x178')][_0x5dbf('0x51')](il)[_0x5dbf('0x3')]=vertexWeights[_0x5dbf('0x51')](this[_0x5dbf('0x178')]['get'](il));let wMaxIndependentSet=intervalGraph[_0x5dbf('0x17d')]();let maxIndependentSet=new Set();for(let u of wMaxIndependentSet){let overlapGraphVertex=this[_0x5dbf('0xbb')][u[_0x5dbf('0x18')]];maxIndependentSet[_0x5dbf('0x54')](overlapGraphVertex);Utils[_0x5dbf('0x10b')](maxIndependentSet,subgraphMaxSets[_0x5dbf('0x51')](overlapGraphVertex));}return maxIndependentSet;}[_0x5dbf('0x17e')](vertex){if(this[_0x5dbf('0x17b')][_0x5dbf('0xa4')](vertex[_0x5dbf('0x18')]))return this[_0x5dbf('0x17b')][_0x5dbf('0x51')](vertex[_0x5dbf('0x18')]);if(vertex[_0x5dbf('0x1')]['length']==0x0){this[_0x5dbf('0x17f')](vertex,0x0);return 0x0;}let maxChildLevel=-0x1;for(let e of vertex[_0x5dbf('0x1')]){let child=e['destination'];maxChildLevel=Math[_0x5dbf('0xbe')](maxChildLevel,this[_0x5dbf('0x17e')](child));}this[_0x5dbf('0x17f')](vertex,maxChildLevel+0x1);return maxChildLevel+0x1;}[_0x5dbf('0x17f')](vertex,level){this[_0x5dbf('0x17b')][_0x5dbf('0xa0')](vertex[_0x5dbf('0x18')],level);if(this[_0x5dbf('0x17c')][_0x5dbf('0x15')]<=level)this[_0x5dbf('0x17c')][_0x5dbf('0x13')]([]);if(vertex[_0x5dbf('0x18')]<this[_0x5dbf('0xbb')][_0x5dbf('0x15')])this['levelVertices'][level][_0x5dbf('0x13')](this['vertices'][vertex['index']]);}}Factory['OverlapGraph']=OverlapGraph;class Path{constructor(path){if(path){this[_0x5dbf('0x90')]=[...path[_0x5dbf('0x90')]];this['links']=[...path[_0x5dbf('0x180')]];this[_0x5dbf('0x181')]=[...path[_0x5dbf('0x181')]];}else{this['nodes']=[];this[_0x5dbf('0x180')]=[];this[_0x5dbf('0x181')]=[];}}[_0x5dbf('0x7c')](item){if(Path[_0x5dbf('0x182')](item)){if(this[_0x5dbf('0x90')][_0x5dbf('0xc')](item))return!![];return![];}else{if(this[_0x5dbf('0x180')]['includes'](item))return!![];return![];}}['getWeight'](incNodes,incLinks){var weight=0x0;if(incNodes){this['nodes']['forEach'](function(node){weight+=node[_0x5dbf('0x3')];});}if(incLinks){this[_0x5dbf('0x180')][_0x5dbf('0x12')](function(link){weight+=link[_0x5dbf('0x3')];});}return weight;}[_0x5dbf('0x54')](link,node){if(link&&Path[_0x5dbf('0x183')](link[_0x5dbf('0x6')])){this['links']['push'](link);this['items'][_0x5dbf('0x13')](link);}if(node&&Path['isNode'](node['owner'])){this[_0x5dbf('0x90')][_0x5dbf('0x13')](node);this[_0x5dbf('0x181')][_0x5dbf('0x13')](node);}if(link&&Path[_0x5dbf('0x182')](link[_0x5dbf('0x6')])){this[_0x5dbf('0x90')][_0x5dbf('0x13')](link);this[_0x5dbf('0x181')][_0x5dbf('0x13')](link);}}static[_0x5dbf('0x182')](obj){return Object[_0x5dbf('0xae')](obj)[_0x5dbf('0x93')]('_expandable')>-0x1;}static[_0x5dbf('0x183')](obj){return Object[_0x5dbf('0xae')](obj)[_0x5dbf('0x93')](_0x5dbf('0x184'))>-0x1;}}class PathFinder{constructor(){}static['findAllPaths'](graph,from,to){return PathFinder[_0x5dbf('0x185')](graph,from,to,![],0x0);}static[_0x5dbf('0x185')](graph,from,to,shortestOnly,maxPaths){var result=[];if(from==to&&shortestOnly){var path=new Path();path[_0x5dbf('0x54')](from);result[_0x5dbf('0x13')](path);return result;}var tempCol=new Queue();var tempPath=new Path();tempPath[_0x5dbf('0x54')](from);tempCol[_0x5dbf('0x24')](tempPath);var pathFound=![];while(!![]){var size=tempCol[_0x5dbf('0x186')]();if(size==0x0)break;if(pathFound&&shortestOnly)break;for(var i=0x0;i<size;i++){tempPath=tempCol['dequeue']();var lastNode=tempPath[_0x5dbf('0x90')][tempPath[_0x5dbf('0x90')][_0x5dbf('0x15')]-0x1];var links=lastNode[_0x5dbf('0x1')];for(var k=0x0;k<links[_0x5dbf('0x15')];k++){var link=links[k];var nextNode=link['destination'];if(tempPath[_0x5dbf('0x7c')](link))continue;if(nextNode==to){var newPath=new Path(tempPath);newPath[_0x5dbf('0x54')](link,nextNode);result[_0x5dbf('0x13')](newPath);if(maxPaths!=0x0&&result['length']>=maxPaths)return result;pathFound=!![];continue;}if(!tempPath[_0x5dbf('0x7c')](nextNode)){var newPath=new Path(tempPath);newPath['add'](link,nextNode);tempCol[_0x5dbf('0x24')](newPath);}}}}return result;}static[_0x5dbf('0x187')](graph,from,to,useNodeWeights,useLinkWeights){if(!useNodeWeights&&!useLinkWeights){var paths=PathFinder[_0x5dbf('0x185')](graph,from,to,!![]);if(paths[_0x5dbf('0x15')]>0x0)return paths[0x0];else return null;}var paths=PathFinder['findPaths'](graph,from,to,![]);if(paths[_0x5dbf('0x15')]==0x0)return null;var minWeight=Number[_0x5dbf('0xf5')];var minPath=null;for(var i=0x0;i<paths[_0x5dbf('0x15')];i++){var weight=paths[i][_0x5dbf('0x188')](useNodeWeights,useLinkWeights);if(weight<minWeight){minWeight=weight;minPath=paths[i];}}return minPath;}static[_0x5dbf('0x189')](graph,from,to){var paths=PathFinder[_0x5dbf('0x185')](graph,from,to,![]);if(paths[_0x5dbf('0x15')]>0x0)return paths[paths[_0x5dbf('0x15')]-0x1];else return null;}static[_0x5dbf('0x18a')](graph,participant){if(participant){var cycles=PathFinder[_0x5dbf('0x185')](graph,participant,participant,![]);if(cycles[_0x5dbf('0x15')]>0x0){var path=cycles[0x0];path[_0x5dbf('0x90')]['splice'](path[_0x5dbf('0x90')][_0x5dbf('0x15')]-0x1,0x1);path[_0x5dbf('0x181')][_0x5dbf('0x94')](path[_0x5dbf('0x181')][_0x5dbf('0x15')]-0x1,0x1);return path;}return null;}else{for(var i=0x0;i<graph[_0x5dbf('0xbb')]['length'];i++){var cycles=PathFinder['findPaths'](graph,graph['vertices'][i],graph['vertices'][i],![]);if(cycles[_0x5dbf('0x15')]>0x0){var path=cycles[0x0];path['nodes'][_0x5dbf('0x94')](path[_0x5dbf('0x90')][_0x5dbf('0x15')]-0x1,0x1);path[_0x5dbf('0x181')][_0x5dbf('0x94')](path[_0x5dbf('0x181')][_0x5dbf('0x15')]-0x1,0x1);return path;}}return null;}}static[_0x5dbf('0x18b')](graph){var result=[];var callback=function(c){result[_0x5dbf('0x13')](c);};PathFinder[_0x5dbf('0x18c')](graph,callback);return result;}static[_0x5dbf('0x18c')](graph,callbackEnum){PathFinder['mark']=new Map();PathFinder[_0x5dbf('0x18d')]=[];PathFinder['pointStack']=[];PathFinder[_0x5dbf('0x18e')]=new Map();PathFinder[_0x5dbf('0x18f')]=new Map();var index=0x0;var vs=graph[_0x5dbf('0xbb')];vs[_0x5dbf('0x12')](function(v){PathFinder[_0x5dbf('0x18e')][_0x5dbf('0xa0')](v,index++);});var callback=function(c){while(PathFinder[_0x5dbf('0x18d')][_0x5dbf('0x15')]!=0x0)PathFinder['mark'][_0x5dbf('0xa5')](PathFinder[_0x5dbf('0x18d')]['pop']());return callbackEnum(c);};vs[_0x5dbf('0x12')](function(v){enumCircuitsTarjan(v,v,callback);});}static[_0x5dbf('0x190')](v){var result=PathFinder[_0x5dbf('0x18f')][_0x5dbf('0xa4')](v)?PathFinder['toDelete']['get'](v):null;if(result==null){result=new Map();PathFinder[_0x5dbf('0x18f')][_0x5dbf('0xa0')](v,result);}return result;}}function enumCircuitsTarjan(start,vertex,callback){var cycleFound=![];var callbackFound=function(c){cycleFound=!![];return callback(c);};PathFinder[_0x5dbf('0x191')][_0x5dbf('0x13')](vertex);PathFinder[_0x5dbf('0x192')][_0x5dbf('0xa0')](vertex,!![]);PathFinder['markedStack'][_0x5dbf('0x13')](vertex);var edges=vertex[_0x5dbf('0x1')];edges[_0x5dbf('0x12')](function(edge){var adjVertex=edge['destination'];if(!PathFinder[_0x5dbf('0x190')](vertex)[_0x5dbf('0xa4')](adjVertex)){var order=PathFinder[_0x5dbf('0x18e')]['get'](adjVertex)-PathFinder[_0x5dbf('0x18e')][_0x5dbf('0x51')](start);if(order<0x0){PathFinder[_0x5dbf('0x190')](vertex)[_0x5dbf('0xa0')](adjVertex,!![]);}else if(order==0x0){cycleFound=!![];var path=new Path();var it=PathFinder['pointStack'][_0x5dbf('0x93')](start);for(var i=it;i<PathFinder[_0x5dbf('0x191')][_0x5dbf('0x15')];i++)path['nodes'][_0x5dbf('0x13')](PathFinder[_0x5dbf('0x191')][i]);for(var i=0x0;i<path[_0x5dbf('0x90')][_0x5dbf('0x15')];i++){var n1=path[_0x5dbf('0x90')][i];var n2=path[_0x5dbf('0x90')][(i+0x1)%path['nodes'][_0x5dbf('0x15')]];var l=null;var n1_edges=n1[_0x5dbf('0x1')];for(var k=0x0;k<n1_edges[_0x5dbf('0x15')];k++){if(n1_edges[k][_0x5dbf('0xf')](n1)==n2){l=n1_edges[k];break;}}path[_0x5dbf('0x180')][_0x5dbf('0x13')](l);path[_0x5dbf('0x181')]['push'](n1);path['items']['push'](l);}callbackFound(path);return $break;}else if(!PathFinder['mark'][_0x5dbf('0xa4')](adjVertex)){PathFinder[_0x5dbf('0x193')](start,adjVertex,callback);}}});if(cycleFound){while(PathFinder[_0x5dbf('0x18d')][_0x5dbf('0x15')]>0x0)PathFinder[_0x5dbf('0x192')][_0x5dbf('0xa5')](PathFinder['markedStack'][_0x5dbf('0xd7')]());}PathFinder[_0x5dbf('0x191')][_0x5dbf('0x94')](PathFinder[_0x5dbf('0x191')][_0x5dbf('0x15')]-0x1,0x1);}class Layout{constructor(){this['anchoring']=Anchoring[_0x5dbf('0x194')];this[_0x5dbf('0x195')]=![];this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x197')];this['margins']=0xa;}get[_0x5dbf('0x198')](){return this[_0x5dbf('0x199')];}set['anchoring'](value){this['_anchoring']=value;}get[_0x5dbf('0x195')](){return this[_0x5dbf('0x19a')];}set[_0x5dbf('0x195')](value){this[_0x5dbf('0x19a')]=value;}get['multipleGraphsPlacement'](){return this[_0x5dbf('0x19b')];}set[_0x5dbf('0x196')](value){this[_0x5dbf('0x19b')]=value;}get['margins'](){return this[_0x5dbf('0x19c')];}set[_0x5dbf('0x19d')](value){this[_0x5dbf('0x19c')]=value;}get['setsLinkEndPoints'](){return!![];}get[_0x5dbf('0x19e')](){return!![];}get[_0x5dbf('0x19f')](){return!![];}get[_0x5dbf('0x1a0')](){return!![];}get[_0x5dbf('0x1a1')](){return![];}get['requiresBezierLinks'](){return![];}get['requiresCascadingLinks'](){return![];}get[_0x5dbf('0x1a2')](){return![];}get[_0x5dbf('0x1a3')](){return![];}}class BorderedTreeLayout extends Layout{constructor(){super();this[_0x5dbf('0x1a4')]=0xa;this['nodeDistance']=0xa;this[_0x5dbf('0x1a5')]=![];this['direction']=LayoutDirection['TopToBottom'];this[_0x5dbf('0x1a6')]=TreeLayoutLinkType[_0x5dbf('0x1a7')];this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x1a8')];this[_0x5dbf('0xcd')]=![];}get[_0x5dbf('0x1a0')](){return![];}get[_0x5dbf('0x1a9')](){return this['linkType']==TreeLayoutLinkType[_0x5dbf('0x1aa')];}get['isStatic'](){return this[_0x5dbf('0x1a5')];}[_0x5dbf('0x1ab')](graph){var root;var th=new TreeHelper(this[_0x5dbf('0xcd')]);this['treeHelper']=th;graph[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(v){let parentEdges=th[_0x5dbf('0xd0')](v);if(parentEdges[_0x5dbf('0x15')]==0x0){root=v;return $break;}});if(!root)return $skipLayout;this['tree']=graph[_0x5dbf('0xd6')](root,this[_0x5dbf('0xcd')]);if(!this[_0x5dbf('0xd6')])return $skipLayout;var rootX=root['x']+root[_0x5dbf('0xe8')]/0x2;var rootY=root['y']+root[_0x5dbf('0xe9')]/0x2;this['x']=0x0;this['y']=0x0;this['rarrange'](root);var levelSizes=[];for(var i=0x0;i<this[_0x5dbf('0xd6')]['treeLevels'][_0x5dbf('0x15')];i++){var treeLevel=this[_0x5dbf('0xd6')]['treeLevels'][i];var sz=0x0;for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){if(this['isHorizontal']())sz=Math['max'](sz,treeLevel[j][_0x5dbf('0xe8')]);else sz=Math[_0x5dbf('0xbe')](sz,treeLevel[j]['height']);}levelSizes[_0x5dbf('0x13')](sz);}var off=0x0;var size=0x0;for(var l=0x1;l<levelSizes['length'];l++){size+=levelSizes[l];size+=this[_0x5dbf('0x1a4')];}size+=this[_0x5dbf('0x19d')];if(!this[_0x5dbf('0x1ac')]())off=size;for(var i=0x0;i<this[_0x5dbf('0xd6')]['treeLevels'][_0x5dbf('0x15')];i++){var treeLevel=this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][i];for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){var node=treeLevel[j];if(this['isHorizontal']())node['x']+=off;else node['y']+=off;}if(this[_0x5dbf('0x1ac')]())off+=this[_0x5dbf('0x1a4')]+levelSizes[i];else off+=-(this[_0x5dbf('0x1a4')]+levelSizes[i]);}if(this[_0x5dbf('0x1a5')]){var newRootX=root['x'];var newRootY=root['y'];var xoff=rootX-newRootX;var yoff=rootY-newRootY;this['offsetBranch'](root,xoff,yoff);}if(this[_0x5dbf('0x1a6')]!=TreeLayoutLinkType['Default']){switch(this[_0x5dbf('0x1a6')]){case TreeLayoutLinkType[_0x5dbf('0x1ad')]:{switch(this[_0x5dbf('0x8c')]){case LayoutDirection[_0x5dbf('0x1ae')]:{this[_0x5dbf('0xd6')]['edges'][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);th['assignPoints'](e,[{'x':parent['x']+parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x'],'y':child['y']-child['height']/0x2}]);});}break;case LayoutDirection['BottomToTop']:{this[_0x5dbf('0xd6')][_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th['childNode'](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x']+parent['width']/0x2,'y':parent['y']},{'x':child['x'],'y':child['y']+child[_0x5dbf('0xe9')]/0x2}]);});}break;case LayoutDirection['LeftToRight']:{this[_0x5dbf('0xd6')][_0x5dbf('0x0')]['forEach'](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x5dbf('0xe9')]/0x2},{'x':child['x']-child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);});}break;case LayoutDirection[_0x5dbf('0x1af')]:{this[_0x5dbf('0xd6')][_0x5dbf('0x0')]['forEach'](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x5dbf('0xe9')]/0x2},{'x':child['x']+child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);});}break;}break;}case TreeLayoutLinkType[_0x5dbf('0x1aa')]:{switch(this[_0x5dbf('0x8c')]){case LayoutDirection[_0x5dbf('0x1ae')]:{this[_0x5dbf('0xd6')][_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x']+parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},{'x':child['x'],'y':child['y']-child[_0x5dbf('0xe9')]/0x2}]);});}break;case LayoutDirection[_0x5dbf('0x1b0')]:{this['tree'][_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th['childNode'](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x']+parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},{'x':child['x'],'y':child['y']+child['height']/0x2}]);});}break;case LayoutDirection['LeftToRight']:{this[_0x5dbf('0xd6')][_0x5dbf('0x0')]['forEach'](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent['height']/0x2},{'x':parent['x'],'y':child['y']},{'x':child['x']-child['width']/0x2,'y':child['y']}]);});}break;case LayoutDirection['RightToLeft']:{this[_0x5dbf('0xd6')][_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th['parentNode'](e);var child=th[_0x5dbf('0xcf')](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x5dbf('0xe9')]/0x2},{'x':parent['x'],'y':child['y']},{'x':child['x']+child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);});}break;}break;}}}}[_0x5dbf('0x1b1')](node){var rc=Rect[_0x5dbf('0x1b2')](node);rc['x']=this['x'];rc['y']=this['y'];if(this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1af')]){var rcRoot=Rect[_0x5dbf('0x1b2')](this[_0x5dbf('0xd6')][_0x5dbf('0x55')]);var s=rc[_0x5dbf('0xe8')];rc=new Rect(rcRoot[_0x5dbf('0x64')]()-s,rc[_0x5dbf('0x1b3')](),rc[_0x5dbf('0xe8')],rc[_0x5dbf('0xe9')]);}else if(this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b0')]){var rcRoot=Rect[_0x5dbf('0x1b2')](this[_0x5dbf('0xd6')][_0x5dbf('0x55')]);var s=rc[_0x5dbf('0xe9')];rc=new Rect(rc['left'](),rcRoot[_0x5dbf('0x1b4')]()-s,rc[_0x5dbf('0xe8')],rc[_0x5dbf('0xe9')]);}node['x']=rc['x']+rc['width']/0x2;node['y']=rc['y']+rc[_0x5dbf('0xe9')]/0x2;if(this[_0x5dbf('0x1b5')]())this['y']+=rc['height']+this['nodeDistance'];else this['x']+=rc[_0x5dbf('0xe8')]+this[_0x5dbf('0x1b6')];var self=this;var children=this[_0x5dbf('0xd6')]['childrenOf'](node);children[_0x5dbf('0x12')](function(child){self['rarrange'](child);});}['offsetBranch'](nodeFrom,xoff,yoff){var offsetFunc=function(node,params){node['x']+=params[0x0];node['y']+=params[0x1];};walk$1(this['tree'],nodeFrom,offsetFunc,[xoff,yoff]);}['isHorizontal'](){return this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b7')]||this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1af')];}[_0x5dbf('0x1ac')](){return this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b7')]||this[_0x5dbf('0x8c')]==LayoutDirection['TopToBottom'];}['getType'](){return this['constructor']['__typeName'];}get['levelDistance'](){return this[_0x5dbf('0x1b8')];}set[_0x5dbf('0x1a4')](value){this['_levelDistance']=value;}get[_0x5dbf('0x1b6')](){return this[_0x5dbf('0x1b9')];}set['nodeDistance'](value){this[_0x5dbf('0x1b9')]=value;}get['keepRootPosition'](){return this[_0x5dbf('0x1ba')];}set[_0x5dbf('0x1a5')](value){this[_0x5dbf('0x1ba')]=value;}get[_0x5dbf('0x8c')](){return this[_0x5dbf('0x1bb')];}set[_0x5dbf('0x8c')](value){this['_direction']=value;}get[_0x5dbf('0x1a6')](){return this['_linkType'];}set['linkType'](value){this[_0x5dbf('0x1bc')]=value;}get[_0x5dbf('0x198')](){return this[_0x5dbf('0x199')];}set[_0x5dbf('0x198')](value){this[_0x5dbf('0x199')]=value;}get['keepGroupLayout'](){return this[_0x5dbf('0x19a')];}set[_0x5dbf('0x195')](value){this[_0x5dbf('0x19a')]=value;}get['multipleGraphsPlacement'](){return this['_multipleGraphsPlacement'];}set[_0x5dbf('0x196')](value){this[_0x5dbf('0x19b')]=value;}get[_0x5dbf('0xcd')](){return this[_0x5dbf('0x1bd')];}set[_0x5dbf('0xcd')](value){this[_0x5dbf('0x1bd')]=value;}}function walk$1(tree,node,func,params){func['call'](this,node,params);var children=tree[_0x5dbf('0xe3')](node);children[_0x5dbf('0x12')](function(child){walk$1(tree,child,func,params);});}class LayoutUtils{static[_0x5dbf('0x1be')](graph,defaultBounds){if(graph[_0x5dbf('0xbb')]['length']==0x0)return defaultBounds;var bounds=null;graph[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(v){bounds=Rect[_0x5dbf('0x1b2')](v)[_0x5dbf('0x1bf')](bounds);});graph[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){if(e[_0x5dbf('0xd2')])bounds=Rect[_0x5dbf('0x1c0')](e[_0x5dbf('0xd2')])[_0x5dbf('0x1bf')](bounds);});return bounds;}}class Tools{static[_0x5dbf('0x1c1')](node,o){var r=bounds(node);if(o==Orientation[_0x5dbf('0x197')])return newPoint(r['x']+r['width']/0x2,r['bottom']());else return newPoint(r[_0x5dbf('0x64')](),r['y']+r[_0x5dbf('0xe9')]/0x2);}static[_0x5dbf('0x1c2')](node,o){var r=bounds(node);if(o==Orientation[_0x5dbf('0x197')])return newPoint(r['x']+r[_0x5dbf('0xe8')]/0x2,r['top']());else return newPoint(r[_0x5dbf('0x63')](),r['y']+r[_0x5dbf('0xe9')]/0x2);}static[_0x5dbf('0x1c3')](node,o){var r=bounds(node);if(o==Orientation[_0x5dbf('0x197')])return newPoint(r[_0x5dbf('0x63')](),r['y']+r['height']/0x2);else return newPoint(r['x']+r[_0x5dbf('0xe8')]/0x2,r[_0x5dbf('0x1b3')]());}static[_0x5dbf('0x1c4')](node,o){var r=bounds(node);if(o==Orientation[_0x5dbf('0x197')])return newPoint(r[_0x5dbf('0x64')](),r['y']+r[_0x5dbf('0xe9')]/0x2);else return newPoint(r['x']+r[_0x5dbf('0xe8')]/0x2,r[_0x5dbf('0x1b4')]());}static[_0x5dbf('0x1c5')](node,x,y){var r=bounds(node);r['x']=x;r['y']=y;var c=r[_0x5dbf('0x1c6')]();node['x']=c['x'];node['y']=c['y'];}static[_0x5dbf('0x1c7')](link,points){if(link['_fcl_processed'])link[_0x5dbf('0x1c8')]=!![];link[_0x5dbf('0x1c9')]=!![];link[_0x5dbf('0xd2')]=Array[_0x5dbf('0x1ca')]['slice'][_0x5dbf('0x1cb')](arguments,0x1);}static['SetLinkPointsA'](link,points){if(link[_0x5dbf('0x1c9')])link[_0x5dbf('0x1c8')]=!![];link[_0x5dbf('0x1c9')]=!![];link[_0x5dbf('0xd2')]=points;}static['GetLinkPoints'](link){return link[_0x5dbf('0xd2')];}static['Mirror'](point,origin){return newPoint(origin['x']+point['y']-origin['y'],origin['y']+point['x']-origin['x']);}static[_0x5dbf('0x1cc')](node,o){return o==Orientation[_0x5dbf('0x197')]?node[_0x5dbf('0xe8')]:node[_0x5dbf('0xe9')];}static['GetBCenter'](node,o){if(o==Orientation[_0x5dbf('0x197')])return node['x'];else return node['y'];}static[_0x5dbf('0x1cd')](node,o){return o==Orientation[_0x5dbf('0x197')]?node[_0x5dbf('0xe9')]:node[_0x5dbf('0xe8')];}static[_0x5dbf('0x1ce')](node,o){if(o==Orientation['Vertical'])return node['y'];else return node['x'];}static[_0x5dbf('0x1cf')](node,o){return Tools[_0x5dbf('0x1d0')](bounds(node),o);}static[_0x5dbf('0x1d1')](node,o){return Tools['GetBFarRect'](bounds(node),o);}static['GetLNear'](node,o){return Tools[_0x5dbf('0x1d2')](bounds(node),o);}static[_0x5dbf('0x1d3')](node,o){return Tools[_0x5dbf('0x1d4')](bounds(node),o);}static['GetBNearRect'](rect,o){if(o==Orientation[_0x5dbf('0x197')])return rect[_0x5dbf('0x63')]();else return rect['top']();}static[_0x5dbf('0x1d5')](rect,o){if(o==Orientation['Vertical'])return rect[_0x5dbf('0x64')]();else return rect['bottom']();}static[_0x5dbf('0x1d2')](rect,o){if(o==Orientation['Vertical'])return rect[_0x5dbf('0x1b3')]();else return rect[_0x5dbf('0x63')]();}static[_0x5dbf('0x1d4')](rect,o){if(o==Orientation[_0x5dbf('0x197')])return rect[_0x5dbf('0x1b4')]();else return rect[_0x5dbf('0x64')]();}static[_0x5dbf('0x1d6')](point,o){if(o==Orientation[_0x5dbf('0x197')])return point['x'];else return point['y'];}static[_0x5dbf('0x1d7')](point,o){if(o==Orientation[_0x5dbf('0x197')])return point['y'];else return point['x'];}static[_0x5dbf('0x1d8')](node,offset,o){if(o==Orientation[_0x5dbf('0x197')])node['y']=node['y']+offset;else node['x']=node['x']+offset;for(var l=0x0;l<node['inEdges'][_0x5dbf('0x15')];l++){var link=node[_0x5dbf('0x2')][l];var p=link[_0x5dbf('0xd2')];if(!p)continue;var li=p[_0x5dbf('0x15')]-0x1;if(o==Orientation[_0x5dbf('0x197')]){var start=p[0x0]['y'];var oldEnd=p[li]['y'];var newEnd=p[li]['y']+offset;var flip=(start-oldEnd)*(start-newEnd)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['y']+=offset;}}else{for(var pi=0x1;pi<li;pi++){var dy=start-p[pi]['y'];p[pi]['y']+=dy;}}p[li]['y']+=offset;}else{var start=p[0x0]['x'];var oldEnd=p[li]['x'];var newEnd=p[li]['x']+offset;var flip=(start-oldEnd)*(start-newEnd)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['x']+=offset;}}else{for(var pi=0x1;pi<li;pi++){var dx=start-p[pi]['x'];p[pi]['x']+=dx;}}p[li]['x']+=offset;}}}static[_0x5dbf('0x1d9')](links,offx,offy,o){for(var l=0x0;l<links[_0x5dbf('0x15')];l++){var link=links[l];var p=link['points'];if(!p)continue;var li=p[_0x5dbf('0x15')]-0x1;if(o==Orientation[_0x5dbf('0x197')]){var oldStart=p[0x0]['y'];var newStart=p[0x0]['y']+offy;var end=p[li]['y'];var flip=(oldStart-end)*(newStart-end)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['y']+=offy;}}else{for(var pi=0x1;pi<li;pi++){var dy=end-p[pi]['y'];p[pi]['y']+=dy;}}p[0x0]['x']+=offx;p[0x0]['y']+=offy;if(p[_0x5dbf('0x15')]==0x2){var sp=p[0x0];var ep=p[0x1];p[0x1]=newPoint(sp['x'],(sp['y']+ep['y'])/0x2);p[0x2]=newPoint(ep['x'],(sp['y']+ep['y'])/0x2);p[0x3]=ep;}else{p[0x1]['x']+=offx;}link[_0x5dbf('0x1c9')]=!![];}else{var oldStart=p[0x0]['x'];var newStart=p[0x0]['x']+offx;var end=p[li]['x'];var flip=(oldStart-end)*(newStart-end)<0x0;if(!flip){for(var pi=0x1;pi<li;pi++){p[pi]['x']+=offx;}}else{for(var pi=0x1;pi<li;pi++){var dx=end-p[pi]['x'];p[pi]['x']+=dx;}}p[0x0]['x']+=offx;p[0x0]['y']+=offy;if(p[_0x5dbf('0x15')]==0x2){var sp=p[0x0];var ep=p[0x1];p[0x1]=newPoint((sp['x']+ep['x'])/0x2,sp['y']);p[0x2]=newPoint((sp['x']+ep['x'])/0x2,ep['y']);p[0x3]=ep;}else{p[0x1]['y']+=offy;}link[_0x5dbf('0x1c9')]=!![];}}}}function newPoint(x,y){return new Point(x,y);}function bounds(v){if(v[_0x5dbf('0x1da')])return Rect[_0x5dbf('0x1db')](v['node'],v[_0x5dbf('0x1da')]);else return Rect[_0x5dbf('0x1db')](v,v);}class FlowchartLayout extends Layout{constructor(){super();this[_0x5dbf('0x1b6')]=0x14;this[_0x5dbf('0x1dc')]=0xc;this[_0x5dbf('0x1dd')]=0x4;this[_0x5dbf('0x1de')]=Orientation[_0x5dbf('0x197')];this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x1a8')];this[_0x5dbf('0x1df')]=new Map();this[_0x5dbf('0x1e0')]=0x0;this[_0x5dbf('0x1e1')]=[];this[_0x5dbf('0x1e2')]=new Map();this[_0x5dbf('0x1e3')]=new Map();this[_0x5dbf('0x1e4')]=new Map();this[_0x5dbf('0xf9')]=0x0;this['flowchartNodes']=new Map();this['mm']=0x1;}get[_0x5dbf('0x1a1')](){return!![];}get[_0x5dbf('0x1a9')](){return!![];}[_0x5dbf('0x1ab')](graph){this['mm']=graph[_0x5dbf('0x1e5')];if(graph['vertices'][_0x5dbf('0x15')]==0x0)return![];graph[_0x5dbf('0xee')]();this[_0x5dbf('0x9d')]=graph;var orientation=this['orientation'];this[_0x5dbf('0x1df')]=new Map();this[_0x5dbf('0x1e1')]=[];this['placedNodes']=[];this[_0x5dbf('0x1e6')]=0x0;this[_0x5dbf('0x1e0')]=0x0;this[_0x5dbf('0x1e7')]=new Map();var startNodes=this['getStartNodes']();var startNode=null;var virtualStart=null;var virtualStartLinks=[];if(startNodes[_0x5dbf('0x15')]==0x0)startNode=graph['vertices'][0x0];if(startNodes[_0x5dbf('0x15')]==0x1)startNode=startNodes[0x0];if(startNodes[_0x5dbf('0x15')]>0x1){virtualStart=startNode=new Vertex();startNode['x']=startNode['y']=0x0;startNode['width']=startNode[_0x5dbf('0xe9')]=0x14;for(var n=0x0;n<startNodes['length'];n++){var node=startNodes[n];virtualStartLinks[_0x5dbf('0x13')](new Edge(virtualStart,node));}graph[_0x5dbf('0xbb')][_0x5dbf('0x13')](virtualStart);for(var l=0x0;l<virtualStartLinks[_0x5dbf('0x15')];l++){var virtualStartLink=virtualStartLinks[l];graph[_0x5dbf('0xa9')](virtualStartLink);}}var to=graph[_0x5dbf('0x154')]();if(!to){var reversed=graph['makeAcyclic']();to=graph[_0x5dbf('0x154')]();}if(to){var orderMap=this[_0x5dbf('0x1e4')]=this[_0x5dbf('0x154')](startNode,to);for(var n=0x0;n<graph['vertices']['length'];n++){var node=graph[_0x5dbf('0xbb')][n];node[_0x5dbf('0x1')][_0x5dbf('0x124')](function(e1,e2){return orderMap[_0x5dbf('0x51')](e1[_0x5dbf('0xa')])-orderMap[_0x5dbf('0x51')](e2[_0x5dbf('0xa')]);});}}if(reversed){reversed['forEach'](function(e){e[_0x5dbf('0x1d')]();});}this[_0x5dbf('0x1e2')]=new Map();this[_0x5dbf('0x1e3')]=new Map();this[_0x5dbf('0xf9')]=0x0;this[_0x5dbf('0x128')](startNode);if(this[_0x5dbf('0x1e3')]['size']<graph[_0x5dbf('0xbb')][_0x5dbf('0x15')])return![];for(var n=0x0;n<graph[_0x5dbf('0xbb')][_0x5dbf('0x15')];n++){var node=graph[_0x5dbf('0xbb')][n];node['x']=node['y']=0x0;}for(var l=0x0;l<graph[_0x5dbf('0x0')]['length'];l++){var link=graph[_0x5dbf('0x0')][l];link['_fcl_processed']=![];}if(!to)this[_0x5dbf('0x1e4')]=this[_0x5dbf('0x154')](startNode);FlowchartBranching[_0x5dbf('0x1e8')]=[];var flowchart=this[_0x5dbf('0x1e9')](startNode);var breadth=flowchart['measure'](this[_0x5dbf('0x1dc')],this[_0x5dbf('0x1dd')],orientation);flowchart['arrange'](breadth/0x2,0x0,this[_0x5dbf('0x1b6')],orientation);if(virtualStart!=null)Utils[_0x5dbf('0x8')](graph[_0x5dbf('0xbb')],virtualStart);for(var l=0x0;l<virtualStartLinks['length'];l++){var virtualStartLink=virtualStartLinks[l];graph[_0x5dbf('0x7')](virtualStartLink);}var defer=FlowchartBranching[_0x5dbf('0x1e8')];for(var dn=0x0;dn<defer[_0x5dbf('0x15')];dn++){var node=defer[dn];var inLinks=this['getDownLinks'](node[_0x5dbf('0x2')]);var far=farOfOriginNodes(inLinks,orientation);var nodeL=Tools[_0x5dbf('0x1ea')](node,orientation);if(far>=nodeL){var offset=far-nodeL+this[_0x5dbf('0x1b6')];Tools[_0x5dbf('0x1d8')](node,offset,orientation);}}this['layoutRect']=LayoutUtils[_0x5dbf('0x1be')](graph);for(var l=0x0;l<graph['edges'][_0x5dbf('0x15')];l++){var link=graph[_0x5dbf('0x0')][l];if(!processed(link)||badPath(link,this)){var points=this[_0x5dbf('0x12d')](link,orientation);if(!points)points=this['findPath'](link,orientation,!![]);Tools[_0x5dbf('0x1eb')](link,points);}}var link=longestLink(graph);if(link){var crossings=countCrossings(graph,link['points'],link);var pt=newPoint;if(crossings>0x0){var lp=this[_0x5dbf('0x1dc')];var lr=LayoutUtils['getGraphBounds'](graph);var orect=bounds(link[_0x5dbf('0x9')]);var drect=bounds(link['destination']);var ocenter=orect[_0x5dbf('0x1c6')]();var dcenter=drect[_0x5dbf('0x1c6')]();if(orientation==Orientation[_0x5dbf('0x197')]){var ox=ocenter['x'];var oy=orect[_0x5dbf('0x1b4')]();var lx1=orect[_0x5dbf('0x63')]();var lx2=drect[_0x5dbf('0x63')]();var dx=dcenter['x'];var dy=drect[_0x5dbf('0x1b3')]();oy+this[_0x5dbf('0x1b6')]/0x2;dy-this[_0x5dbf('0x1b6')]/0x2;var candidates=[link['points']];candidates['push']([pt(lx1,ocenter['y']),pt(lr[_0x5dbf('0x63')]()-lp,ocenter['y']),pt(lr[_0x5dbf('0x63')]()-lp,dcenter['y']),pt(lx2,dcenter['y'])]);}else{var ox=orect[_0x5dbf('0x64')]();var oy=ocenter['y'];var ty1=orect[_0x5dbf('0x1b3')]();var ty2=drect['top']();var dx=drect[_0x5dbf('0x63')]();var dy=dcenter['y'];ox+this[_0x5dbf('0x1b6')]/0x2;dx-this[_0x5dbf('0x1b6')]/0x2;var candidates=[link[_0x5dbf('0xd2')]];candidates[_0x5dbf('0x13')]([pt(ocenter['x'],ty1),pt(ocenter['x'],lr[_0x5dbf('0x1b3')]()-lp),pt(dcenter['x'],lr[_0x5dbf('0x1b3')]()-lp),pt(dcenter['x'],ty2)]);}var best=null;var bestCount=crossings;for(var c=0x0;c<candidates[_0x5dbf('0x15')];c++){var points=candidates[c];if(acceptPath(points,link[_0x5dbf('0x9')],link[_0x5dbf('0xa')],graph['vertices'])){crossings=countCrossings(graph,points,link);if(crossings<bestCount){bestCount=crossings;best=points;}if(crossings==0x0)break;}}if(best)Tools[_0x5dbf('0x1eb')](link,best);}}for(var n=0x0;n<graph[_0x5dbf('0xbb')][_0x5dbf('0x15')];n++){var node=graph['vertices'][n];var topIn=nearIncomingLinks(node,orientation);if(topIn[_0x5dbf('0x15')]>0x1&&endPointsCoincide(topIn,orientation)){pullNearInPointsApart(topIn,orientation);}var bottomOut=farOutgoingLinks(node,orientation);if(bottomOut['length']>0x1&&startPointsCoincide(bottomOut,orientation)){pullFarOutPointsApart(bottomOut,orientation);}var sideIn=sideIncomingLinks(node,orientation);if(sideIn[_0x5dbf('0x15')]>0x1&&endPointsCoincide(sideIn,0x1-orientation)){pullSideInPointsApart(sideIn,orientation);}}this[_0x5dbf('0x1ec')](graph[_0x5dbf('0x0')]);}[_0x5dbf('0x1e9')](startNode){return this[_0x5dbf('0x1ed')](startNode,null,0x0,![],![]);}[_0x5dbf('0x1ed')](node,parentBlock,loopDepth,onlyNotVisited,ignoreMerge){var graph=this[_0x5dbf('0x9d')];var children=[];var currentBlock=null;if(parentBlock==null){currentBlock=new FlowchartSequence(this);children[_0x5dbf('0x13')](this['composeBlocks'](node,currentBlock,0x0,![],![]));}else{var fcNode=this[_0x5dbf('0x1ee')](node);currentBlock=fcNode;var visited=this[_0x5dbf('0x1ef')](node);if(!visited)this['nodeOrder']['set'](node,this[_0x5dbf('0x1e0')]++);var inDownLinks=this[_0x5dbf('0x1f0')](node);if(inDownLinks>0x1&&this[_0x5dbf('0x1e1')][_0x5dbf('0x15')]>0x0&&!ignoreMerge){peek(this[_0x5dbf('0x1e1')])[_0x5dbf('0x1f1')](fcNode);return currentBlock;}if(visited&&onlyNotVisited)return null;loopDepth+=this[_0x5dbf('0x1f2')](node);currentBlock[_0x5dbf('0x1f3')](loopDepth);loopDepth-=this[_0x5dbf('0x1f4')](node);var outDownLinks=this[_0x5dbf('0x1f5')](node);if(outDownLinks==0x1)currentBlock=new FlowchartSequence(this,fcNode);if(outDownLinks>0x1){var branching=new FlowchartBranching(this,fcNode);this[_0x5dbf('0x1e1')]['push'](branching);currentBlock=branching;loopDepth=0x0;}for(var l=0x0;l<node['outEdges'][_0x5dbf('0x15')];++l){var branchLink=node[_0x5dbf('0x1')][l];currentBlock[_0x5dbf('0x1f6')]=branchLink;var child=this[_0x5dbf('0x1ed')](branchLink['destination'],currentBlock,loopDepth,!![],![]);if(child!=null){if(child['getIncomingLink']()==null)child[_0x5dbf('0x1f7')](branchLink);children[_0x5dbf('0x13')](child);}}if(currentBlock[_0x5dbf('0x1f8')]&&branching['branches'][_0x5dbf('0x15')]==0x0){this[_0x5dbf('0x1e1')]['pop']();return null;}if(outDownLinks>0x1&&this['branchings'][_0x5dbf('0x15')]>0x0)this[_0x5dbf('0x1e1')][_0x5dbf('0xd7')]();if(parentBlock instanceof FlowchartBranching&¤tBlock instanceof FlowchartBranching&&!this[_0x5dbf('0x1f9')](currentBlock)){var replacement=new FlowchartSequence(this);replacement['add'](currentBlock);children[_0x5dbf('0x15')]=0x0;children['push'](currentBlock);currentBlock=replacement;}}if(currentBlock instanceof FlowchartSequence){for(var c=0x0;c<children[_0x5dbf('0x15')];++c){var child=children[c];var next=child[_0x5dbf('0x1fa')]();if(next!=null){for(var n=0x0;n<next[_0x5dbf('0x15')];++n){var nextNode=next[n];this[_0x5dbf('0x1ed')](nextNode,currentBlock,loopDepth,![],!![]);}}}}if(parentBlock!=null){parentBlock[_0x5dbf('0x54')](currentBlock);}else{var unprocessedNodes=new Queue();for(var n=0x0;n<graph[_0x5dbf('0xbb')][_0x5dbf('0x15')];n++){var nnode=graph[_0x5dbf('0xbb')][n];if(!this[_0x5dbf('0x1e7')][_0x5dbf('0xa4')](nnode))unprocessedNodes[_0x5dbf('0x24')](nnode);}while(unprocessedNodes[_0x5dbf('0x186')]()>0x0){var n=unprocessedNodes[_0x5dbf('0xf3')]();if(n[_0x5dbf('0x2')][_0x5dbf('0x15')]==0x0||this[_0x5dbf('0x1e7')][_0x5dbf('0xa4')](n))continue;var parent=n[_0x5dbf('0x2')][0x0][_0x5dbf('0x9')];if(!this[_0x5dbf('0x1e7')][_0x5dbf('0xa4')](parent))unprocessedNodes[_0x5dbf('0x24')](n);else this[_0x5dbf('0x1ed')](n,this[_0x5dbf('0x1fb')](this['getFlowchartNode'](parent)),0x0,!![],!![]);}}return currentBlock;}[_0x5dbf('0x1fb')](block){if(block==null)return null;if(block instanceof FlowchartSequence)return block;return this[_0x5dbf('0x1fb')](block[_0x5dbf('0x1fc')]);}[_0x5dbf('0x1f9')](block){var next=block[_0x5dbf('0x1fa')]();if(next!=null&&next[_0x5dbf('0x15')]==0x1){var links=this[_0x5dbf('0x1fd')](next[0x0]['outEdges']);if(links[_0x5dbf('0x15')]!=0x1)return![];var inDownLinks=this[_0x5dbf('0x1f0')](links[0x0][_0x5dbf('0xa')]);if(inDownLinks>0x1&&this[_0x5dbf('0x1e1')][_0x5dbf('0x15')]>0x0)return!![];}return![];}[_0x5dbf('0x1ee')](node){if(this[_0x5dbf('0x1e7')][_0x5dbf('0xa4')](node))return this[_0x5dbf('0x1e7')][_0x5dbf('0x51')](node);var flowchartNode=new FlowchartNode(this,node);this['flowchartNodes'][_0x5dbf('0xa0')](node,flowchartNode);return flowchartNode;}['getStartNodes'](){var graph=this[_0x5dbf('0x9d')];var startNodes=[];for(var n=0x0;n<graph[_0x5dbf('0xbb')][_0x5dbf('0x15')];n++){var node=graph[_0x5dbf('0xbb')][n];if(this['isStartNode'](node))startNodes[_0x5dbf('0x13')](node);}return startNodes;}['getOutgoingDownLinks'](node){var n=0x0;for(var l=0x0;l<node['outEdges'][_0x5dbf('0x15')];++l){var link=node[_0x5dbf('0x1')][l];if(this[_0x5dbf('0x1fe')](link))n++;}return n;}[_0x5dbf('0x1f0')](node){var n=0x0;for(var l=0x0;l<node[_0x5dbf('0x2')][_0x5dbf('0x15')];++l){var link=node['inEdges'][l];if(this[_0x5dbf('0x1fe')](link))n++;}return n;}[_0x5dbf('0x1ff')](){return this[_0x5dbf('0x200')][_0x5dbf('0x201')];}[_0x5dbf('0x1f4')](node){var n=0x0;for(var l=0x0;l<node['outEdges'][_0x5dbf('0x15')];++l){var link=node[_0x5dbf('0x1')][l];if(this[_0x5dbf('0x202')](link))n++;}return n;}[_0x5dbf('0x1f2')](node){var n=0x0;for(var l=0x0;l<node['inEdges']['length'];++l){var link=node[_0x5dbf('0x2')][l];if(this[_0x5dbf('0x202')](link))n++;}return n;}['isVisited'](node){return this['nodeOrder'][_0x5dbf('0xa4')](node);}[_0x5dbf('0x203')](node){return this[_0x5dbf('0x204')](node)==0x0;}[_0x5dbf('0x205')](node){return this[_0x5dbf('0x16')](node)==0x0;}[_0x5dbf('0x204')](node){return node[_0x5dbf('0x2')][_0x5dbf('0x15')];}[_0x5dbf('0x16')](node){return node[_0x5dbf('0x1')][_0x5dbf('0x15')];}['isBackLink'](link){return!this[_0x5dbf('0x1fe')](link);}['isDownLink'](link){var o=link[_0x5dbf('0x9')];var d=link[_0x5dbf('0xa')];return this[_0x5dbf('0x1e3')][_0x5dbf('0x51')](d)<this[_0x5dbf('0x1e3')]['get'](o);}[_0x5dbf('0x128')](node){if(this[_0x5dbf('0x1e2')][_0x5dbf('0xa4')](node))return;this[_0x5dbf('0x1e2')][_0x5dbf('0xa0')](node,!![]);for(var l=0x0;l<node[_0x5dbf('0x1')][_0x5dbf('0x15')];++l){var link=node[_0x5dbf('0x1')][l];this[_0x5dbf('0x128')](link[_0x5dbf('0xa')]);}this[_0x5dbf('0x1e3')][_0x5dbf('0xa0')](node,this[_0x5dbf('0xf9')]++);}['topologicalSort'](startNode,graphOrder){var order=new Map();if(graphOrder){for(var n=0x0;n<graphOrder[_0x5dbf('0x15')];n++){var node=this[_0x5dbf('0x9d')]['vertices'][graphOrder[n]];order['set'](node,n);}return order;}var queue=new Queue();var counter=0x0;queue[_0x5dbf('0x24')](startNode);order[_0x5dbf('0xa0')](startNode,counter++);while(queue['getSize']()>0x0){var node=queue['dequeue']();var downLinks=this[_0x5dbf('0x1fd')](node['outEdges']);for(var l=0x0;l<downLinks[_0x5dbf('0x15')];++l){var link=downLinks[l];var child=link[_0x5dbf('0xa')];if(order[_0x5dbf('0xa4')](child))continue;queue[_0x5dbf('0x24')](child);order['set'](child,counter++);}}return order;}['getDownLinks'](links){var downLinks=[];for(var l=0x0;l<links['length'];++l){var link=links[l];if(this[_0x5dbf('0x1fe')](link))downLinks[_0x5dbf('0x13')](link);}return downLinks;}[_0x5dbf('0x206')](){return this[_0x5dbf('0x1e4')];}[_0x5dbf('0x12d')](link,o,relaxed){var g=this[_0x5dbf('0x9d')];var pt=newPoint;var orect=bounds(link[_0x5dbf('0x9')]);var drect=bounds(link[_0x5dbf('0xa')]);var candidates=[];var ocenter=orect[_0x5dbf('0x1c6')]();var dcenter=drect['center']();if(o==Orientation[_0x5dbf('0x197')]){var ox=ocenter['x'];var oy=orect['bottom']();var lx=orect[_0x5dbf('0x63')]();var rx=orect['right']();var dx=dcenter['x'];var dy=drect['top']();var mx=(ox+dx)/0x2;var my=(oy+dy)/0x2;var nd=this[_0x5dbf('0x1b6')];var hd=nd/0x2;var o1y=oy+hd;var o2y=dy-hd;var lp=this[_0x5dbf('0x1dd')];var llr=this['layoutRect']['right']();var llb=this[_0x5dbf('0x207')][_0x5dbf('0x1b4')]();if(orect[_0x5dbf('0x1b4')]()<drect[_0x5dbf('0x1b3')]()){candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,my),pt(dx,my),pt(dx,dy)]);candidates['push']([pt(ox,oy),pt(ox,o1y),pt(dx,o1y),pt(dx,dy)]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,o2y),pt(dx,o2y),pt(dx,dy)]);for(var ci=0x1;ci<=0x5;ci++){candidates[_0x5dbf('0x13')]([pt(rx,ocenter['y']),pt(rx+ci*hd,ocenter['y']),pt(rx+ci*hd,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);candidates['push']([pt(lx,ocenter['y']),pt(lx-ci*hd,ocenter['y']),pt(lx-ci*hd,dcenter['y']),pt(drect[_0x5dbf('0x63')](),dcenter['y'])]);}candidates[_0x5dbf('0x13')]([pt(rx,ocenter['y']),pt(llr,ocenter['y']),pt(llr,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,o1y),pt(lx,o1y),pt(lx,o2y),pt(dx,o2y),pt(dx,dy)]);candidates['push']([pt(ox,oy),pt(ox,o1y),pt(mx,o1y),pt(mx,o2y),pt(dx,o2y),pt(dx,dy)]);}else{candidates['push']([pt(ox,oy),pt(ox,o1y),pt(mx,o1y),pt(mx,o2y),pt(dx,o2y),pt(dx,dy)]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,o1y),pt(orect[_0x5dbf('0x63')]()-lp,o1y),pt(orect[_0x5dbf('0x63')]()-lp,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);for(var ci=0x1;ci<=0x5;ci++){candidates[_0x5dbf('0x13')]([pt(lx,ocenter['y']),pt(lx-ci*hd,ocenter['y']),pt(lx-ci*hd,dcenter['y']),pt(drect['left'](),dcenter['y'])]);candidates[_0x5dbf('0x13')]([pt(rx,ocenter['y']),pt(rx+ci*hd,ocenter['y']),pt(rx+ci*hd,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);}candidates[_0x5dbf('0x13')]([pt(rx,ocenter['y']),pt(llr,ocenter['y']),pt(llr,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);}candidates['push']([pt(ox,oy),pt(ox,llb),pt(drect[_0x5dbf('0x64')]()+0x2*hd,llb),pt(drect[_0x5dbf('0x64')]()+0x2*hd,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);candidates['push']([pt(ox,oy),pt(ox,llb),pt(drect['right']()+hd,llb),pt(drect['right']()+hd,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,llb),pt(drect['right']()+nd,llb),pt(drect['right']()+nd,dcenter['y']),pt(drect[_0x5dbf('0x64')](),dcenter['y'])]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,llb),pt(drect[_0x5dbf('0x63')]()-hd,llb),pt(drect[_0x5dbf('0x63')]()-hd,dcenter['y']),pt(drect[_0x5dbf('0x63')](),dcenter['y'])]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(ox,llb),pt(drect[_0x5dbf('0x63')]()-nd,llb),pt(drect[_0x5dbf('0x63')]()-nd,dcenter['y']),pt(drect['left'](),dcenter['y'])]);}else{var ox=orect[_0x5dbf('0x64')]();var oy=ocenter['y'];var ty=orect[_0x5dbf('0x1b3')]();var by=orect['bottom']();var dx=drect[_0x5dbf('0x63')]();var dy=dcenter['y'];var mx=(ox+dx)/0x2;var my=(oy+dy)/0x2;var nd=this[_0x5dbf('0x1b6')];var hd=nd/0x2;var o1x=ox+hd;var o2x=dx-hd;var lp=this[_0x5dbf('0x1dd')];if(orect[_0x5dbf('0x64')]()<drect[_0x5dbf('0x63')]()){candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(mx,oy),pt(mx,dy),pt(dx,dy)]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(o1x,oy),pt(o1x,dy),pt(dx,dy)]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(o2x,oy),pt(o2x,dy),pt(dx,dy)]);for(var ci=0x1;ci<=0x5;ci++){candidates[_0x5dbf('0x13')]([pt(ocenter['x'],by),pt(ocenter['x'],by+hd),pt(dcenter['x'],by+hd),pt(dcenter['x'],drect[_0x5dbf('0x1b4')]())]);candidates[_0x5dbf('0x13')]([pt(ocenter['x'],ty),pt(ocenter['x'],ty-hd),pt(dcenter['x'],ty-hd),pt(dcenter['x'],drect[_0x5dbf('0x1b3')]())]);}candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(o1x,oy),pt(o1x,ty),pt(o2x,ty),pt(o2x,dy),pt(dx,dy)]);candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(o1x,oy),pt(o1x,my),pt(o2x,my),pt(o2x,dy),pt(dx,dy)]);}else{candidates[_0x5dbf('0x13')]([pt(ox,oy),pt(o1x,oy),pt(o1x,my),pt(o2x,my),pt(o2x,dy),pt(dx,dy)]);candidates['push']([pt(ox,oy),pt(o1x,oy),pt(o1x,orect[_0x5dbf('0x1b3')]()-lp),pt(dcenter['x'],orect['top']()-lp),pt(dcenter['x'],drect[_0x5dbf('0x1b4')]())]);}}if(relaxed){var bestEval=Number['MAX_VALUE'];var bestPoints;for(var c=0x0;c<candidates['length'];c++){var points=candidates[c];var currEval=evalPath(points,link[_0x5dbf('0x9')],link[_0x5dbf('0xa')],g[_0x5dbf('0xbb')]);if(currEval<bestEval){bestEval=currEval;bestPoints=points;}}return bestPoints;}else{for(var c=0x0;c<candidates[_0x5dbf('0x15')];c++){var points=candidates[c];if(acceptPath(points,link['origin'],link[_0x5dbf('0xa')],g[_0x5dbf('0xbb')])){return points;}}}return null;}[_0x5dbf('0x208')](points){var segments=[];for(var i=0x0;i<points[_0x5dbf('0x15')]-0x1;i++){var segment={'index':i,'points':points,'horizontal'(){return this[_0x5dbf('0xd2')][this[_0x5dbf('0x18')]]['y']==this['points'][this['index']+0x1]['y'];},'xint'(){var prev=this['points'][this[_0x5dbf('0x18')]]['x'];var next=this['points'][this['index']+0x1]['x'];return prev<next?[prev,next]:[next,prev];},'yint'(){var prev=this[_0x5dbf('0xd2')][this[_0x5dbf('0x18')]]['y'];var next=this[_0x5dbf('0xd2')][this[_0x5dbf('0x18')]+0x1]['y'];return prev<next?[prev,next]:[next,prev];}};segments[_0x5dbf('0x13')](segment);}return segments;}[_0x5dbf('0x1ec')](links){for(var i=0x0;i<links[_0x5dbf('0x15')];i++){var link=links[i];link[_0x5dbf('0x209')]=this[_0x5dbf('0x208')](link[_0x5dbf('0xd2')]);}this[_0x5dbf('0x20a')](links,!![]);this[_0x5dbf('0x20a')](links,![]);}[_0x5dbf('0x20a')](links,horizontal){var segments=[];for(var i=0x0;i<links['length'];i++){var link=links[i];var path=link[_0x5dbf('0x209')];for(var j=0x0;j<path['length'];j++){var segment=path[j];if(segment['horizontal']()==horizontal)segments['push'](segment);}}segments[_0x5dbf('0x124')](horizontal?compareY:compareX);var currentPos=-(Number[_0x5dbf('0xf5')]-0x1);var bucket=[];var count=segments[_0x5dbf('0x15')];for(var i=0x0;i<=count;++i){var segment=i<count?segments[i]:null;var firstPos=currentPos;if(bucket['length']>0x0)firstPos=coord(bucket[0x0],horizontal);if(segment==null||Math[_0x5dbf('0x20b')](coord(segment,horizontal)-firstPos)>this['mm']*0x2){if(bucket[_0x5dbf('0x15')]>0x1){var splitGroups=getSplitGroups(bucket,horizontal);for(var g=0x0;g<splitGroups['length'];g++){var group=splitGroups[g];if(group[_0x5dbf('0x15')]<0x2)continue;var sharedPos=coord(group[0x0],horizontal);group[_0x5dbf('0x124')](horizontal?compareH:compareV);var lp=this[_0x5dbf('0x1dd')]/0x2;var min=sharedPos-lp*0x2;var max=sharedPos+lp*0x2;var m=(min+max)/0x2;var d=Math['min']((max-min)/0x2,(group[_0x5dbf('0x15')]-0x1)*0x3*lp);var step=d/(group['length']-0x1);var pos=sharedPos-d/0x2>=min+step?sharedPos-d/0x2:m-d/0x2;for(var si=0x0;si<group['length'];si++){var s=group[si];pos-coord(s,horizontal);if(horizontal){s[_0x5dbf('0xd2')][s['index']]['y']=pos;s[_0x5dbf('0xd2')][s['index']+0x1]['y']=pos;}else{s[_0x5dbf('0xd2')][s[_0x5dbf('0x18')]]['x']=pos;s[_0x5dbf('0xd2')][s[_0x5dbf('0x18')]+0x1]['x']=pos;}pos+=step;}}}bucket['length']=0x0;}if(segment!=null){currentPos=coord(segment,horizontal);if(segment[_0x5dbf('0x18')]>=0x0&&segment['index']<=segment[_0x5dbf('0xd2')][_0x5dbf('0x15')]-0x1)bucket[_0x5dbf('0x13')](segment);}}}get[_0x5dbf('0x1dc')](){return this[_0x5dbf('0x20c')];}set[_0x5dbf('0x1dc')](value){this['_branchPadding']=value;}get[_0x5dbf('0x1dd')](){return this[_0x5dbf('0x20d')];}set['linkPadding'](value){this[_0x5dbf('0x20d')]=value;}get[_0x5dbf('0x1b6')](){return this['_nodeDistance'];}set[_0x5dbf('0x1b6')](value){this[_0x5dbf('0x1b9')]=value;}get[_0x5dbf('0x1de')](){return this[_0x5dbf('0x20e')];}set[_0x5dbf('0x1de')](value){this[_0x5dbf('0x20e')]=value;}get[_0x5dbf('0x198')](){return this[_0x5dbf('0x199')];}set[_0x5dbf('0x198')](value){this[_0x5dbf('0x199')]=value;}get[_0x5dbf('0x195')](){return this[_0x5dbf('0x19a')];}set[_0x5dbf('0x195')](value){this[_0x5dbf('0x19a')]=value;}get['multipleGraphsPlacement'](){return this['_multipleGraphsPlacement'];}set[_0x5dbf('0x196')](value){this['_multipleGraphsPlacement']=value;}[_0x5dbf('0x20f')](){for(var v=0x0;v<this[_0x5dbf('0x9d')][_0x5dbf('0xbb')]['length'];v++){var vertex=this[_0x5dbf('0x9d')][_0x5dbf('0xbb')][v];console['log'](_0x5dbf('0x210'));console[_0x5dbf('0x211')](vertex[_0x5dbf('0xed')]);for(var e=0x0;e<vertex[_0x5dbf('0x1')][_0x5dbf('0x15')];e++){var edge=vertex['outEdges'][e];console['log'](_0x5dbf('0x212')+edge[_0x5dbf('0xed')]);}}}}class FlowchartBlock{constructor(flowchartLayout){this[_0x5dbf('0x213')]=flowchartLayout;this[_0x5dbf('0x214')]=0x0;this['fullBreadth']=0x0;this['loopDepth']=0x0;this[_0x5dbf('0x215')]=0x0;this[_0x5dbf('0x216')]=![];this['incomingLink']=null;this['currentLink']=null;this[_0x5dbf('0x1fc')]=null;}[_0x5dbf('0x54')](block){block[_0x5dbf('0x1fc')]=this;}[_0x5dbf('0x217')](branchPadding,linkPadding,o){}[_0x5dbf('0x1ab')](b,l,offset,o){}[_0x5dbf('0x218')](){}[_0x5dbf('0x219')](){}[_0x5dbf('0x21a')](links){var backLinks=[];for(var l=0x0;l<links[_0x5dbf('0x15')];++l){var link=links[l];if(this[_0x5dbf('0x213')][_0x5dbf('0x202')](link))backLinks[_0x5dbf('0x13')](link);}return backLinks;}['nextNodes'](){return null;}[_0x5dbf('0x21b')](block){return!![];}['getContentBreadth'](){return this[_0x5dbf('0x214')];}[_0x5dbf('0x21c')](){return this[_0x5dbf('0x21d')];}[_0x5dbf('0x21e')](){return this[_0x5dbf('0x21f')];}[_0x5dbf('0x1f3')](value){this[_0x5dbf('0x21f')]=value;}[_0x5dbf('0x220')](){return this[_0x5dbf('0x216')];}[_0x5dbf('0x221')](){return this[_0x5dbf('0x222')];}['setIncomingLink'](value){this[_0x5dbf('0x222')]=value;}}function LOriginComparer(orientation){return function(a,b){var la=0x0;if(orientation==Orientation[_0x5dbf('0x197')])la=a['origin']['y'];else la=a[_0x5dbf('0x9')]['x'];var lb=0x0;if(orientation==Orientation['Vertical'])lb=b[_0x5dbf('0x9')]['y'];else lb=b['origin']['x'];if(la<lb)return-0x1;if(la>lb)return 0x1;return 0x0;};}function BOriginComparer(orientation){return function Compare(a,b){var la=0x0;if(orientation==Orientation[_0x5dbf('0x197')])la=a['origin']['x'];else la=a[_0x5dbf('0x9')]['y'];var lb=0x0;if(orientation==Orientation[_0x5dbf('0x197')])lb=b[_0x5dbf('0x9')]['x'];else lb=b[_0x5dbf('0x9')]['y'];if(la<lb)return-0x1;if(la>lb)return 0x1;return 0x0;};}function CompareTopologicalOrder(flowchartLayout){return function(n1,n2){var to=flowchartLayout[_0x5dbf('0x206')]();if(to['has'](n1[_0x5dbf('0x223')]())&&to[_0x5dbf('0xa4')](n2[_0x5dbf('0x223')]())){var o1=to[_0x5dbf('0x51')](n1[_0x5dbf('0x223')]());var o2=to[_0x5dbf('0x51')](n2['getNode']());if(o1<o2)return-0x1;if(o1>o2)return 0x1;}return 0x0;};}class FlowchartNode extends FlowchartBlock{constructor(flowchartLayout,node){super(flowchartLayout);this['node']=node;}[_0x5dbf('0x217')](branchPadding,linkPadding,o){this[_0x5dbf('0x215')]=this[_0x5dbf('0x21f')];if(o==Orientation['Vertical'])this[_0x5dbf('0x214')]=this[_0x5dbf('0x21d')]=this[_0x5dbf('0x1da')]['width'];else this['contentBreadth']=this['fullBreadth']=this[_0x5dbf('0x1da')][_0x5dbf('0xe9')];return this[_0x5dbf('0x214')];}[_0x5dbf('0x1ab')](b,l,offset,o){var node=this['node'];this[_0x5dbf('0x216')]=!![];node[_0x5dbf('0x224')]=!![];this[_0x5dbf('0x213')][_0x5dbf('0x225')][_0x5dbf('0x13')](node);if(o==Orientation[_0x5dbf('0x197')]){Tools[_0x5dbf('0x1c5')](node,b-node['width']/0x2,l);var ll=bounds(node)['bottom']();}else{Tools['MoveNode'](node,l,b-node[_0x5dbf('0xe9')]/0x2);var ll=bounds(node)['right']();}this['flowchartLayout']['furthestL']=Math['max'](ll,this['flowchartLayout'][_0x5dbf('0x1e6')]);this[_0x5dbf('0x1e6')]=ll;return ll;}[_0x5dbf('0x218')](){return this['node'][_0x5dbf('0x1')];}['getInLinks'](){return this['node'][_0x5dbf('0x2')];}[_0x5dbf('0x223')](){return this[_0x5dbf('0x1da')];}}class FlowchartSequence extends FlowchartBlock{constructor(flowchartLayout,startNode){super(flowchartLayout);this['sequence']=[];if(startNode)this[_0x5dbf('0x226')][_0x5dbf('0x13')](startNode);}['measure'](branchPadding,linkPadding,o){this[_0x5dbf('0x215')]=this[_0x5dbf('0x21e')]();this[_0x5dbf('0x214')]=0x0;for(var b=0x0;b<this['sequence'][_0x5dbf('0x15')];++b){var block=this[_0x5dbf('0x226')][b];block[_0x5dbf('0x217')](branchPadding,linkPadding,o);this[_0x5dbf('0x214')]=Math[_0x5dbf('0xbe')](this[_0x5dbf('0x214')],block['getContentBreadth']());this[_0x5dbf('0x215')]=Math[_0x5dbf('0xbe')](this['maxLoopDepth'],block[_0x5dbf('0x215')]);}this['fullBreadth']=this['contentBreadth']+this['maxLoopDepth']*linkPadding;return this[_0x5dbf('0x21d')];}[_0x5dbf('0x1ab')](b,l,offset,o){var prevBlock=null;var offsetNext=0x0;var overflow=0x0;for(var bc=0x0;bc<this[_0x5dbf('0x226')][_0x5dbf('0x15')];++bc){var block=this[_0x5dbf('0x226')][bc];if(block[_0x5dbf('0x220')]()){prevBlock=block;l=Math[_0x5dbf('0xbe')](l,prevBlock[_0x5dbf('0x1e6')]+offset);continue;}if(block[_0x5dbf('0x221')]()!=null){var bottomCenter=Tools[_0x5dbf('0x1c1')](block[_0x5dbf('0x221')]()[_0x5dbf('0x9')],o);b=o==Orientation[_0x5dbf('0x197')]?bottomCenter['x']:bottomCenter['y'];}l+=offsetNext;l=block[_0x5dbf('0x1ab')](b,l,offset,o);if(block[_0x5dbf('0x227')])overflow=Math[_0x5dbf('0xbe')](block[_0x5dbf('0x227')],overflow);offsetNext=offset;if(prevBlock!=null&&prevBlock[_0x5dbf('0x21b')](block)){var links=prevBlock[_0x5dbf('0x218')]();if(links!=null){var seqLinks=this[_0x5dbf('0x213')]['getDownLinks'](links);if(seqLinks[_0x5dbf('0x15')]>0x0){var origin=seqLinks[0x0][_0x5dbf('0x9')];var destination=seqLinks[0x0]['destination'];var bb=Math[_0x5dbf('0xbd')](Tools[_0x5dbf('0x1cc')](origin,o),Tools[_0x5dbf('0x1cc')](destination,o));var ll=Tools[_0x5dbf('0x228')](origin,o)-bb/0x2;for(var i=0x0;i<seqLinks[_0x5dbf('0x15')];++i){var link=seqLinks[i];if(o==Orientation['Vertical']){var lx=ll+(i+0x1)*bb/(seqLinks[_0x5dbf('0x15')]+0x1);if(!link[_0x5dbf('0x1c9')])Tools[_0x5dbf('0x1c7')](link,newPoint(lx,bounds(origin)[_0x5dbf('0x1b4')]()),newPoint(lx,bounds(destination)['top']()));}else{var ly=ll+(i+0x1)*bb/(seqLinks[_0x5dbf('0x15')]+0x1);if(!link['_fcl_processed'])Tools[_0x5dbf('0x1c7')](link,newPoint(bounds(origin)[_0x5dbf('0x64')](),ly),newPoint(bounds(destination)[_0x5dbf('0x63')](),ly));}}}}}prevBlock=block;}for(var bc=0x0;bc<this[_0x5dbf('0x226')][_0x5dbf('0x15')];++bc){var block=this['sequence'][bc];if(block instanceof FlowchartNode){var backLinks=this['getBackLinks'](block[_0x5dbf('0x219')]());backLinks[_0x5dbf('0x124')](LOriginComparer(o));for(var i=0x0;i<backLinks[_0x5dbf('0x15')];++i){var link=backLinks[i];var orect=bounds(link[_0x5dbf('0x9')]);var drect=bounds(link[_0x5dbf('0xa')]);var startL=Tools[_0x5dbf('0x1ce')](link['origin'],o);var endL=Tools['GetLCenter'](link[_0x5dbf('0xa')],o);var vSegmentB=b-this['getContentBreadth']()/0x2+this[_0x5dbf('0x21c')]()-(block[_0x5dbf('0x21e')]()-0x1-i)*this[_0x5dbf('0x213')][_0x5dbf('0x229')]();if(o==Orientation['Vertical']){Tools['SetLinkPoints'](link,new Point(orect[_0x5dbf('0x64')](),startL),new Point(vSegmentB,startL),new Point(vSegmentB,endL),new Point(drect[_0x5dbf('0x64')](),endL));}else{Tools[_0x5dbf('0x1c7')](link,new Point(startL,orect[_0x5dbf('0x1b4')]()),new Point(startL,vSegmentB),new Point(endL,vSegmentB),new Point(endL,drect[_0x5dbf('0x1b4')]()));}}}}if(overflow)this[_0x5dbf('0x227')]=overflow;this[_0x5dbf('0x1e6')]=l;return l;}['getOutLinks'](){return this[_0x5dbf('0x226')][this[_0x5dbf('0x226')][_0x5dbf('0x15')]-0x1][_0x5dbf('0x218')]();}[_0x5dbf('0x219')](){return this[_0x5dbf('0x226')][0x0]['getInLinks']();}['add'](block){this[_0x5dbf('0x226')]['push'](block);super[_0x5dbf('0x54')](block);}}class CenteredBranchingDescriptor{constructor(){this[_0x5dbf('0x22a')]=null;this[_0x5dbf('0x22b')]=null;this['rightBlock']=null;}}class FlowchartBranching extends FlowchartBlock{constructor(flowchartLayout,rootNode){super(flowchartLayout);this[_0x5dbf('0x22c')]=rootNode;this[_0x5dbf('0x1f8')]=[];this[_0x5dbf('0x22d')]=new Map();this[_0x5dbf('0x22e')]=[];this[_0x5dbf('0x1dc')]=0x0;this[_0x5dbf('0x22f')]=null;}[_0x5dbf('0x217')](branchPadding,linkPadding,o){this[_0x5dbf('0x1dc')]=branchPadding;this[_0x5dbf('0x22c')][_0x5dbf('0x217')](branchPadding,linkPadding,o);for(var m=0x0;m<this[_0x5dbf('0x22e')][_0x5dbf('0x15')];++m){var mergeNode=this[_0x5dbf('0x22e')][m];mergeNode[_0x5dbf('0x217')](branchPadding,linkPadding,o);}var centeredBranching=this['centeredBranching']=this[_0x5dbf('0x230')]();if(centeredBranching!=null){this[_0x5dbf('0x214')]=centeredBranching['middleBlock'][_0x5dbf('0x217')](branchPadding,linkPadding,o);this[_0x5dbf('0x214')]=Math[_0x5dbf('0xbe')](this[_0x5dbf('0x214')],this[_0x5dbf('0x22c')][_0x5dbf('0x231')]());this[_0x5dbf('0x214')]=Math[_0x5dbf('0xbe')](this['contentBreadth'],this[_0x5dbf('0x22e')][0x0]['getContentBreadth']());this[_0x5dbf('0x214')]+=0x2*branchPadding;}else if(this[_0x5dbf('0x232')]()){this[_0x5dbf('0x214')]=0x2*linkPadding+Math[_0x5dbf('0xbe')](this[_0x5dbf('0x22c')][_0x5dbf('0x231')](),this['mergeNodes'][0x0]['getContentBreadth']());}else{this[_0x5dbf('0x214')]=branchPadding*(this[_0x5dbf('0x1f8')][_0x5dbf('0x15')]-0x1);for(var b=0x0;b<this[_0x5dbf('0x1f8')][_0x5dbf('0x15')];++b){var block=this[_0x5dbf('0x1f8')][b];this[_0x5dbf('0x214')]+=block[_0x5dbf('0x217')](branchPadding,linkPadding,o);}this[_0x5dbf('0x214')]=Math[_0x5dbf('0xbe')](this['contentBreadth'],this[_0x5dbf('0x22c')][_0x5dbf('0x231')]());}this[_0x5dbf('0x21d')]=this[_0x5dbf('0x214')];return this[_0x5dbf('0x21d')];}[_0x5dbf('0x233')](link,o){var orgEndPoint=Tools[_0x5dbf('0x1c1')](link[_0x5dbf('0x9')],o);var destEndPoint=Tools['GetLNearCenter'](link['destination'],o);Tools['SetLinkPoints'](link,orgEndPoint,destEndPoint);}['arrange'](b,l,offset,o){var flowchartLayout=this[_0x5dbf('0x213')];var rootNode=this[_0x5dbf('0x22c')];if(!rootNode[_0x5dbf('0x220')]())l=rootNode['arrange'](b,l,offset,o)+offset;var maxL=l;var sortedBranches=this['sortBranches'](this[_0x5dbf('0x1f8')]);var mergeAdjusted=![];var overflow=0x0;if(this['centeredBranching']==null){var currentB=b-this[_0x5dbf('0x231')]()/0x2;for(var sb=0x0;sb<sortedBranches[_0x5dbf('0x15')];++sb){var branch=sortedBranches[sb];currentB+=branch[_0x5dbf('0x231')]()/0x2;maxL=Math[_0x5dbf('0xbe')](maxL,branch['arrange'](currentB,l,offset,o));if(branch[_0x5dbf('0x227')])overflow+=branch[_0x5dbf('0x227')];currentB+=branch[_0x5dbf('0x21c')]()-branch[_0x5dbf('0x231')]()/0x2+this[_0x5dbf('0x1dc')];if(branch[_0x5dbf('0x227')])currentB+=branch[_0x5dbf('0x227')];}}else{var branch=this[_0x5dbf('0x22f')][_0x5dbf('0x22a')];maxL=branch[_0x5dbf('0x1ab')](b,l,offset,o);if(branch['arrangeOverflow'])overflow+=branch[_0x5dbf('0x227')];}if(this[_0x5dbf('0x22e')][_0x5dbf('0x15')]==0x1){var mergeNode=this[_0x5dbf('0x22e')][0x0];if(!mergeNode[_0x5dbf('0x216')])maxL=mergeNode[_0x5dbf('0x1ab')](b,maxL+offset,offset,o);else maxL=Math['max'](maxL,Tools['GetLFar'](mergeNode[_0x5dbf('0x223')](),o));mergeNode['arrangedAsMerge']=!![];}else{this['mergeNodes'][_0x5dbf('0x124')](CompareTopologicalOrder(flowchartLayout));var prevMergeNode=null;var defer=FlowchartBranching['deferredMerge'];for(var m=0x0;m<this[_0x5dbf('0x22e')][_0x5dbf('0x15')];++m){var mergeNode=this['mergeNodes'][m];var originsArranged=originNodesArranged(mergeNode[_0x5dbf('0x219')]());if(!originsArranged)continue;if(mergeNode[_0x5dbf('0x223')]()['outDegree']()==0x0&&!originsArranged&&!defer[_0x5dbf('0xc')](mergeNode)){defer[_0x5dbf('0x13')](mergeNode[_0x5dbf('0x223')]());}var inLinks=flowchartLayout['getDownLinks'](mergeNode[_0x5dbf('0x219')]());var center=centerOfOriginNodes(inLinks,o);var far=farOfOriginNodes(inLinks,o);var fixedInFlow=mergeNode['arranged']&&mergeNode[_0x5dbf('0x223')]()['_fcl_arranged']&&mergeNode[_0x5dbf('0x223')]()['outDegree']()>0x0;if(fixedInFlow){var mlinks=mergeNode[_0x5dbf('0x223')]()[_0x5dbf('0x0')];for(var mli=0x0;mli<mlinks['length'];mli++)mlinks[mli][_0x5dbf('0x1c8')]=!![];continue;}var wasArranged=mergeNode[_0x5dbf('0x216')];if(wasArranged){var oldX=mergeNode[_0x5dbf('0x223')]()['x'];var oldY=mergeNode['getNode']()['y'];}var currentL=far+offset;var checkIntersections=currentL<this[_0x5dbf('0x213')][_0x5dbf('0x1e6')];var nextL=mergeNode[_0x5dbf('0x1ab')](center,currentL,offset,o);maxL=Math[_0x5dbf('0xbe')](maxL,nextL);var mergeRect=bounds(mergeNode);if(prevMergeNode){if(bounds(prevMergeNode)['intersectsWith'](mergeRect))maxL=mergeNode[_0x5dbf('0x1ab')](center,Tools[_0x5dbf('0x1d3')](prevMergeNode['getNode'](),o)+offset,offset,o);}else if(checkIntersections){var placed=this['flowchartLayout']['placedNodes'];for(var p=0x0;p<placed[_0x5dbf('0x15')];p++){var testNode=placed[p];if(mergeNode[_0x5dbf('0x1da')]!=testNode&&bounds(testNode)[_0x5dbf('0x234')](mergeRect)){maxL=mergeNode[_0x5dbf('0x1ab')](Tools['GetBFar'](testNode,o)+offset+mergeRect[_0x5dbf('0xe8')]/0x2,currentL,offset,o);mergeAdjusted=!![];break;}}}mergeNode[_0x5dbf('0x235')]=!![];if(wasArranged){var dx=mergeNode['getNode']()['x']-oldX;var dy=mergeNode['getNode']()['y']-oldY;Tools[_0x5dbf('0x1d9')](mergeNode['getNode']()['outEdges'],dx,dy,o);}var mlinks=mergeNode['getNode']()[_0x5dbf('0x0')];for(var mli=0x0;mli<mlinks[_0x5dbf('0x15')];mli++)mlinks[mli]['_fcl_multiMerge']=!![];prevMergeNode=mergeNode;prevMergeNode[_0x5dbf('0x236')]=center;}}var centeredBranching=this[_0x5dbf('0x22f')];if(centeredBranching!=null){if(centeredBranching[_0x5dbf('0x237')]!=null){var rightLink=centeredBranching[_0x5dbf('0x237')]['getIncomingLink']();var rightOrg=rightLink['origin'];var rightDest=rightLink[_0x5dbf('0xa')];var orgEndPoint=Tools[_0x5dbf('0x1c4')](rightOrg,o);var destEndPoint=Tools[_0x5dbf('0x1c4')](rightDest,o);var midSegmentCoord=b+this[_0x5dbf('0x214')]/0x2;var b1,b2;if(o==Orientation[_0x5dbf('0x197')]){b1=new Point(midSegmentCoord,orgEndPoint['y']);b2=new Point(midSegmentCoord,destEndPoint['y']);}else{b1=new Point(orgEndPoint['x'],midSegmentCoord);b2=new Point(destEndPoint['x'],midSegmentCoord);}Tools[_0x5dbf('0x1c7')](rightLink,orgEndPoint,b1,b2,destEndPoint);}if(centeredBranching[_0x5dbf('0x22b')]!=null){var leftLink=centeredBranching['leftBlock'][_0x5dbf('0x221')]();var leftOrg=leftLink['origin'];var leftDest=leftLink[_0x5dbf('0xa')];var orgEndPoint=Tools['GetBNearCenter'](leftOrg,o);var destEndPoint=Tools[_0x5dbf('0x1c3')](leftDest,o);var midSegmentCoord=b-this[_0x5dbf('0x214')]/0x2;var b1,b2;if(o==Orientation[_0x5dbf('0x197')]){b1=new Point(midSegmentCoord,orgEndPoint['y']);b2=new Point(midSegmentCoord,destEndPoint['y']);}else{b1=new Point(orgEndPoint['x'],midSegmentCoord);b2=new Point(destEndPoint['x'],midSegmentCoord);}Tools[_0x5dbf('0x1c7')](leftLink,orgEndPoint,b1,b2,destEndPoint);}}else if(sortedBranches[_0x5dbf('0x15')]==0x2){var leftLink=sortedBranches[0x0][_0x5dbf('0x221')]();var rightLink=sortedBranches[0x1][_0x5dbf('0x221')]();var leftDest=leftLink[_0x5dbf('0xa')];var rightDest=rightLink[_0x5dbf('0xa')];var leftTopCenter=Tools['GetLNearCenter'](leftDest,o);var rightTopCenter=Tools[_0x5dbf('0x1c2')](rightDest,o);var root=rootNode[_0x5dbf('0x223')]();var leftDestMerge=this[_0x5dbf('0x22e')]['includes'](flowchartLayout[_0x5dbf('0x1ee')](leftLink[_0x5dbf('0xa')]));if(Tools[_0x5dbf('0x1d6')](leftTopCenter,o)<Tools[_0x5dbf('0x1cf')](root,o)){var leftStart=Tools[_0x5dbf('0x1c3')](root,o);var leftMiddle=new Point();if(o==Orientation['Vertical'])leftMiddle=new Point(leftTopCenter['x'],leftStart['y']);else leftMiddle=new Point(leftStart['x'],leftTopCenter['y']);Tools['SetLinkPoints'](leftLink,leftStart,leftMiddle,leftTopCenter);}else if(!leftDestMerge){var leftStart=Tools[_0x5dbf('0x1c1')](root,o);var ll=(Tools['GetL'](leftStart,o)+Tools['GetL'](leftTopCenter,o))/0x2;if(o==Orientation[_0x5dbf('0x197')]){Tools[_0x5dbf('0x1c7')](leftLink,leftStart,new Point(leftStart['x'],ll),new Point(leftTopCenter['x'],ll),leftTopCenter);}else{Tools['SetLinkPoints'](leftLink,leftStart,new Point(ll,leftStart['y']),new Point(ll,leftTopCenter['y']),leftTopCenter);}}else if(leftDestMerge){var points=Tools[_0x5dbf('0x238')](leftLink);points[0x0]=Tools[_0x5dbf('0x1c3')](root,o);}var rightDestMerge=this[_0x5dbf('0x22e')][_0x5dbf('0xc')](flowchartLayout[_0x5dbf('0x1ee')](rightLink[_0x5dbf('0xa')]));if(Tools[_0x5dbf('0x1d6')](rightTopCenter,o)>Tools[_0x5dbf('0x1d1')](root,o)){var rightStart=Tools[_0x5dbf('0x1c4')](root,o);var rightMiddle=new Point();if(o==Orientation['Vertical'])rightMiddle=new Point(rightTopCenter['x'],rightStart['y']);else rightMiddle=new Point(rightStart['x'],rightTopCenter['y']);Tools[_0x5dbf('0x1c7')](rightLink,rightStart,rightMiddle,rightTopCenter);}else if(!rightDestMerge){var rightStart=Tools[_0x5dbf('0x1c1')](root,o);var ll=(Tools['GetL'](rightStart,o)+Tools[_0x5dbf('0x1d7')](rightTopCenter,o))/0x2;if(o==Orientation[_0x5dbf('0x197')]){Tools[_0x5dbf('0x1c7')](rightLink,rightStart,new Point(rightStart['x'],ll),new Point(rightTopCenter['x'],ll),rightTopCenter);}else{Tools[_0x5dbf('0x1c7')](rightLink,rightStart,new Point(ll,rightStart['y']),new Point(ll,rightTopCenter['y']),rightTopCenter);}}else if(rightDestMerge){var points=Tools[_0x5dbf('0x238')](rightLink);points[0x0]=Tools[_0x5dbf('0x1c4')](root,o);}}else{var midIndex=intDiv$1(sortedBranches[_0x5dbf('0x15')],0x2);var midLink=sortedBranches[midIndex][_0x5dbf('0x221')]();var midStraight=sortedBranches['length']%0x2==0x0||bounds(midLink[_0x5dbf('0x9')])[_0x5dbf('0x1c6')]()['x']==bounds(midLink[_0x5dbf('0xa')])[_0x5dbf('0x1c6')]()['x'];for(var i=0x0;i<sortedBranches['length'];++i){var link=sortedBranches[i][_0x5dbf('0x221')]();var origin=link[_0x5dbf('0x9')];var destination=link[_0x5dbf('0xa')];var startB=(i+0x1)*Tools[_0x5dbf('0x1cc')](origin,o)/(sortedBranches['length']+0x1)+Tools['GetBNear'](origin,o);var f=i<intDiv$1(sortedBranches[_0x5dbf('0x15')],0x2)?i+0x1:sortedBranches[_0x5dbf('0x15')]-i;var hrzSegmentL=Tools[_0x5dbf('0x1d3')](origin,o)+f*offset/(midIndex+(midStraight?0x1:0x2));var endPoint=Tools[_0x5dbf('0x1c2')](destination,o);if(o==Orientation[_0x5dbf('0x197')]){Tools[_0x5dbf('0x1c7')](link,new Point(startB,bounds(origin)[_0x5dbf('0x1b4')]()),new Point(startB,hrzSegmentL),new Point(endPoint['x'],hrzSegmentL),endPoint);}else{Tools[_0x5dbf('0x1c7')](link,new Point(bounds(origin)[_0x5dbf('0x64')](),startB),new Point(hrzSegmentL,startB),new Point(hrzSegmentL,endPoint['y']),endPoint);}}}if(centeredBranching!=null){this[_0x5dbf('0x233')](centeredBranching['middleBlock'][_0x5dbf('0x221')](),o);var inLinks=flowchartLayout[_0x5dbf('0x1fd')](this[_0x5dbf('0x22e')][0x0][_0x5dbf('0x219')]());for(var l1=0x0;l1<inLinks[_0x5dbf('0x15')];++l1){var link=inLinks[l1];if(link[_0x5dbf('0x9')]!=rootNode['getNode']())this[_0x5dbf('0x233')](link,o);}}else for(var m=0x0;m<this[_0x5dbf('0x22e')][_0x5dbf('0x15')];++m){var mergeNode=this[_0x5dbf('0x22e')][m];var inLinks=flowchartLayout[_0x5dbf('0x1fd')](mergeNode[_0x5dbf('0x219')]());inLinks[_0x5dbf('0x124')](BOriginComparer(o));if(inLinks[_0x5dbf('0x15')]==0x2){var leftLink=inLinks[0x0];var rightLink=inLinks[0x1];if(this[_0x5dbf('0x232')]()){var left=this['getBNearest'](rootNode,this[_0x5dbf('0x22e')][0x0],o)-flowchartLayout[_0x5dbf('0x229')]();var right=this[_0x5dbf('0x239')](rootNode,this[_0x5dbf('0x22e')][0x0],o)+flowchartLayout[_0x5dbf('0x229')]();var rootLeft=Tools[_0x5dbf('0x1c3')](rootNode['getNode'](),o);var rootRight=Tools[_0x5dbf('0x1c4')](rootNode[_0x5dbf('0x223')](),o);var mergeLeft=Tools[_0x5dbf('0x1c3')](this[_0x5dbf('0x22e')][0x0][_0x5dbf('0x223')](),o);var mergeRight=Tools[_0x5dbf('0x1c4')](this['mergeNodes'][0x0]['getNode'](),o);if(o==Orientation['Vertical']){Tools[_0x5dbf('0x1c7')](leftLink,rootLeft,new Point(left,rootLeft['y']),new Point(left,mergeLeft['y']),mergeLeft);Tools[_0x5dbf('0x1c7')](rightLink,rootRight,new Point(right,rootRight['y']),new Point(right,mergeRight['y']),mergeRight);}else{Tools[_0x5dbf('0x1c7')](leftLink,rootLeft,new Point(rootLeft['x'],left),new Point(mergeLeft['x'],left),mergeLeft);Tools[_0x5dbf('0x1c7')](rightLink,rootRight,new Point(rootRight['x'],right),new Point(mergeRight['x'],right),mergeRight);}}else{var leftOrigin=leftLink[_0x5dbf('0x9')];var rightOrigin=rightLink[_0x5dbf('0x9')];var leftLfarCenter=Tools[_0x5dbf('0x1c1')](leftOrigin,o);var rightLfarCenter=Tools['GetLFarCenter'](rightOrigin,o);var root=rootNode[_0x5dbf('0x223')]();if(Tools[_0x5dbf('0x1d6')](leftLfarCenter,o)<Tools[_0x5dbf('0x1cf')](mergeNode[_0x5dbf('0x223')](),o)){var leftEnd=Tools['GetBNearCenter'](mergeNode[_0x5dbf('0x223')](),o);var leftMiddle=new Point();if(o==Orientation['Vertical'])leftMiddle=new Point(leftLfarCenter['x'],leftEnd['y']);else leftMiddle=new Point(leftEnd['x'],leftLfarCenter['y']);Tools['SetLinkPoints'](leftLink,leftLfarCenter,leftMiddle,leftEnd);}else if(leftLink['origin']==root){var leftEnd=Tools[_0x5dbf('0x1c3')](mergeNode[_0x5dbf('0x223')](),o);var linkPoints=Tools[_0x5dbf('0x238')](leftLink);var nextToLast=linkPoints[linkPoints[_0x5dbf('0x15')]-0x2];if(o==Orientation[_0x5dbf('0x197')])nextToLast['y']=leftEnd['y'];else nextToLast['x']=leftEnd['x'];linkPoints[linkPoints['length']-0x2]=nextToLast;linkPoints[linkPoints[_0x5dbf('0x15')]-0x1]=leftEnd;}else if(leftLink[_0x5dbf('0x9')]!=root){var leftEnd=Tools[_0x5dbf('0x1c2')](mergeNode[_0x5dbf('0x223')](),o);var h=0x0;if(o==Orientation['Vertical'])h=(leftEnd['y']+leftLfarCenter['y'])/0x2;else h=(leftEnd['x']+leftLfarCenter['x'])/0x2;if(o==Orientation[_0x5dbf('0x197')]){Tools[_0x5dbf('0x1c7')](leftLink,leftLfarCenter,new Point(leftLfarCenter['x'],h),new Point(leftEnd['x'],h),leftEnd);}else{Tools[_0x5dbf('0x1c7')](leftLink,leftLfarCenter,new Point(h,leftLfarCenter['y']),new Point(h,leftEnd['y']),leftEnd);}}if(Tools[_0x5dbf('0x1d6')](rightLfarCenter,o)>Tools['GetBFar'](mergeNode[_0x5dbf('0x223')](),o)){var rightEnd=Tools[_0x5dbf('0x1c4')](mergeNode['getNode'](),o);var rightMiddle=new Point();if(o==Orientation[_0x5dbf('0x197')])rightMiddle=new Point(rightLfarCenter['x'],rightEnd['y']);else rightMiddle=new Point(rightEnd['x'],rightLfarCenter['y']);Tools['SetLinkPoints'](rightLink,rightLfarCenter,rightMiddle,rightEnd);}else if(rightLink[_0x5dbf('0x9')]==root){var linkPoints=Tools['GetLinkPoints'](rightLink);var nextToLast=linkPoints[linkPoints[_0x5dbf('0x15')]-0x2];var rightEnd=Tools[_0x5dbf('0x1d6')](nextToLast,o)<Tools[_0x5dbf('0x1cf')](mergeNode[_0x5dbf('0x223')](),o)?Tools[_0x5dbf('0x1c3')](mergeNode['getNode'](),o):Tools[_0x5dbf('0x1c4')](mergeNode[_0x5dbf('0x223')](),o);if(o==Orientation[_0x5dbf('0x197')])nextToLast['y']=rightEnd['y'];else nextToLast['x']=rightEnd['x'];linkPoints[linkPoints[_0x5dbf('0x15')]-0x2]=nextToLast;linkPoints[linkPoints[_0x5dbf('0x15')]-0x1]=rightEnd;}else if(rightLink[_0x5dbf('0x9')]!=root){var rightEnd=Tools[_0x5dbf('0x1c2')](mergeNode[_0x5dbf('0x223')](),o);var h=0x0;if(o==Orientation[_0x5dbf('0x197')])h=(rightEnd['y']+rightLfarCenter['y'])/0x2;else h=(rightEnd['x']+rightLfarCenter['x'])/0x2;if(o==Orientation[_0x5dbf('0x197')]){Tools[_0x5dbf('0x1c7')](rightLink,rightLfarCenter,new Point(rightLfarCenter['x'],h),new Point(rightEnd['x'],h),rightEnd);}else{Tools[_0x5dbf('0x1c7')](rightLink,rightLfarCenter,new Point(h,rightLfarCenter['y']),new Point(h,rightEnd['y']),rightEnd);}}}}else{for(var i=0x0;i<inLinks['length'];++i){var link=inLinks[i];var origin=link[_0x5dbf('0x9')];var destination=link[_0x5dbf('0xa')];var endB=(i+0x1)*Tools[_0x5dbf('0x1cc')](destination,o)/(inLinks['length']+0x1)+Tools[_0x5dbf('0x1cf')](destination,o);var f=i<intDiv$1(inLinks[_0x5dbf('0x15')],0x2)?i+0x1:inLinks[_0x5dbf('0x15')]-i;var hrzSegmentL=Tools['GetLNear'](destination,o)-f*offset/(inLinks[_0x5dbf('0x15')]/0x2+0x1);var startPoint=Tools['GetLFarCenter'](origin,o);if(o==Orientation[_0x5dbf('0x197')]){Tools['SetLinkPoints'](link,startPoint,new Point(startPoint['x'],hrzSegmentL),new Point(endB,hrzSegmentL),new Point(endB,bounds(destination)[_0x5dbf('0x1b3')]()));}else{Tools['SetLinkPoints'](link,startPoint,new Point(hrzSegmentL,startPoint['y']),new Point(hrzSegmentL,endB),new Point(bounds(destination)[_0x5dbf('0x63')](),endB));}}}}var backLinks=this[_0x5dbf('0x21a')](rootNode[_0x5dbf('0x219')]());backLinks[_0x5dbf('0x124')](LOriginComparer(o));for(var i=0x0;i<backLinks[_0x5dbf('0x15')];++i){var link=backLinks[i];var orect=bounds(link[_0x5dbf('0x9')]);var drect=bounds(link['destination']);var startB=Tools['GetBCenter'](link[_0x5dbf('0x9')],o);Tools[_0x5dbf('0x1ce')](link[_0x5dbf('0x9')],o);var endL=Tools[_0x5dbf('0x1ce')](link[_0x5dbf('0xa')],o);var vSegmentB=b-this[_0x5dbf('0x231')]()/0x2+this[_0x5dbf('0x21c')]()+(rootNode[_0x5dbf('0x21e')]()-0x1+i)*flowchartLayout[_0x5dbf('0x229')]();if(o==Orientation['Vertical']){Tools['SetLinkPoints'](link,new Point(startB,orect[_0x5dbf('0x1b4')]()),new Point(startB,orect[_0x5dbf('0x1b4')]()+offset/0x2),new Point(vSegmentB,orect[_0x5dbf('0x1b4')]()+offset/0x2),new Point(vSegmentB,endL),new Point(drect[_0x5dbf('0x64')](),endL));}else{Tools[_0x5dbf('0x1c7')](link,new Point(orect[_0x5dbf('0x64')](),startB),new Point(orect[_0x5dbf('0x64')]()+offset/0x2,startB),new Point(orect['right']()+offset/0x2,vSegmentB),new Point(endL,vSegmentB),new Point(endL,drect[_0x5dbf('0x1b4')]()));}}if(mergeAdjusted){var maxB;for(var mi=0x0;mi<this[_0x5dbf('0x22e')][_0x5dbf('0x15')];mi++){var fcn=this[_0x5dbf('0x22e')][mi];var bf=Tools[_0x5dbf('0x1d1')](fcn,o);if(mi==0x0)maxB=bf;else maxB=Math['max'](maxB,bf);}var expB=b+this[_0x5dbf('0x214')]/0x2;if(expB<maxB)overflow=Math[_0x5dbf('0xbe')](overflow,maxB-expB);}if(overflow)this[_0x5dbf('0x227')]=overflow;this[_0x5dbf('0x1e6')]=maxL;return maxL;}['sortBranches'](branches){var sortBuckets=new Map();for(var b=0x0;b<branches[_0x5dbf('0x15')];++b){var branch=branches[b];if(!this[_0x5dbf('0x22d')][_0x5dbf('0xa4')](branch[_0x5dbf('0x221')]()))continue;var merge=this['mergeMap'][_0x5dbf('0x51')](branch['getIncomingLink']());if(!sortBuckets[_0x5dbf('0xa4')](merge))sortBuckets[_0x5dbf('0xa0')](merge,[]);sortBuckets['get'](merge)[_0x5dbf('0x13')](branch);}var result=[];sortBuckets[_0x5dbf('0x12')](function(value){result=result['concat'](value);});for(var b=0x0;b<branches[_0x5dbf('0x15')];++b){var branch=branches[b];if(!this[_0x5dbf('0x22d')][_0x5dbf('0xa4')](branch['getIncomingLink']()))result[_0x5dbf('0x13')](branch);}return result;}['getOutLinks'](){if(this[_0x5dbf('0x22e')][_0x5dbf('0x15')]>0x0)return this[_0x5dbf('0x22e')][0x0][_0x5dbf('0x218')]();return null;}[_0x5dbf('0x219')](){return this[_0x5dbf('0x22c')][_0x5dbf('0x219')]();}['add'](block){this[_0x5dbf('0x1f8')]['push'](block);super['add'](block);}[_0x5dbf('0x1fa')](){var nodes=[];for(var m=0x0;m<this['mergeNodes'][_0x5dbf('0x15')];++m){var node=this[_0x5dbf('0x22e')][m];nodes[_0x5dbf('0x13')](node[_0x5dbf('0x223')]());}return nodes;}['disjoint'](block){var branching=block instanceof FlowchartBranching?block:null;if(branching!=null&&this[_0x5dbf('0x22e')]['includes'](branching[_0x5dbf('0x22c')]))return![];return!![];}[_0x5dbf('0x1f1')](mergeNode){if(!this[_0x5dbf('0x22e')][_0x5dbf('0xc')](mergeNode))this['mergeNodes'][_0x5dbf('0x13')](mergeNode);this[_0x5dbf('0x22d')][_0x5dbf('0xa0')](this['currentLink'],mergeNode);if(mergeNode['parentBlock']==null)mergeNode[_0x5dbf('0x1fc')]=this;if(this[_0x5dbf('0x1f6')][_0x5dbf('0xa')]==mergeNode[_0x5dbf('0x223')]())this['branches'][_0x5dbf('0x13')](new EmptyBranch(this[_0x5dbf('0x213')],this['currentLink']));}[_0x5dbf('0x232')](){return this[_0x5dbf('0x1f8')][_0x5dbf('0x15')]==0x2&&this[_0x5dbf('0x1f8')][0x0]instanceof EmptyBranch&&this[_0x5dbf('0x1f8')][0x1]instanceof EmptyBranch&&this[_0x5dbf('0x22e')][_0x5dbf('0x15')]==0x1;}[_0x5dbf('0x230')](){if(this['mergeNodes'][_0x5dbf('0x15')]!=0x1)return null;var emptyBranches=0x0;var occupiedBranches=0x0;for(var b=0x0;b<this[_0x5dbf('0x1f8')][_0x5dbf('0x15')];++b){var branch=this[_0x5dbf('0x1f8')][b];if(branch instanceof EmptyBranch)emptyBranches++;else occupiedBranches++;}if(occupiedBranches!=0x1||emptyBranches>0x2||emptyBranches<0x1)return null;var desc=new CenteredBranchingDescriptor();for(var b=0x0;b<this[_0x5dbf('0x1f8')]['length'];++b){var branch=this[_0x5dbf('0x1f8')][b];if(branch instanceof EmptyBranch){if(desc[_0x5dbf('0x237')]==null)desc['rightBlock']=branch;else desc[_0x5dbf('0x22b')]=branch;}else{desc[_0x5dbf('0x22a')]=branch;}}return desc;}[_0x5dbf('0x23a')](node1,node2,o){if(o==Orientation['Vertical']){return Math[_0x5dbf('0xbd')](bounds(node1[_0x5dbf('0x223')]())[_0x5dbf('0x63')](),bounds(node2[_0x5dbf('0x223')]())[_0x5dbf('0x63')]());}else{return Math['min'](bounds(node1[_0x5dbf('0x223')]())[_0x5dbf('0x1b3')](),bounds(node2['getNode']())['top']());}}['getBFurthest'](node1,node2,o){if(o==Orientation[_0x5dbf('0x197')]){return Math[_0x5dbf('0xbe')](bounds(node1[_0x5dbf('0x223')]())[_0x5dbf('0x64')](),bounds(node2[_0x5dbf('0x223')]())['right']());}else{return Math['max'](bounds(node1[_0x5dbf('0x223')]())[_0x5dbf('0x1b4')](),bounds(node2[_0x5dbf('0x223')]())[_0x5dbf('0x1b4')]());}}[_0x5dbf('0x23b')](){return this[_0x5dbf('0x22e')];}}FlowchartBranching[_0x5dbf('0x1e8')]=[];class EmptyBranch extends FlowchartBlock{constructor(layout,link){super(layout);this[_0x5dbf('0x1f7')](link);}[_0x5dbf('0x217')](branchPadding,linkPadding,o){return 0x0;}['arrange'](b,l,offset,o){var oc=Tools[_0x5dbf('0x1c3')](this[_0x5dbf('0x221')]()[_0x5dbf('0x9')],o);var dc=Tools['GetBNearCenter'](this[_0x5dbf('0x221')]()[_0x5dbf('0xa')],o);if(o==Orientation[_0x5dbf('0x197')]){Tools['SetLinkPoints'](this[_0x5dbf('0x221')](),oc,newPoint(b,oc['y']),newPoint(b,dc['y']),dc);}else{Tools['SetLinkPoints'](this['getIncomingLink'](),oc,newPoint(oc['x'],b),newPoint(dc['x'],b),dc);}this[_0x5dbf('0x1e6')]=Tools['GetLFar'](this[_0x5dbf('0x221')]()[_0x5dbf('0x9')],o);return this[_0x5dbf('0x1e6')];}['getOutLinks'](){return null;}[_0x5dbf('0x219')](){return null;}}function peek(stack){return stack[stack[_0x5dbf('0x15')]-0x1];}function intDiv$1(numerator,denominator){return(numerator-numerator%denominator)/denominator;}function acceptPath(points,o,d,nodes){var br=bounds(o);var dr=bounds(d);for(var p=0x1;p<points['length']-0x1;p++){var point=points[p];if(br[_0x5dbf('0x23c')](point))return![];if(dr[_0x5dbf('0x23c')](point))return![];}for(var n=0x0;n<nodes[_0x5dbf('0x15')];n++){var node=nodes[n];if(node==o||node==d)continue;var rect=bounds(node);if(Geometry[_0x5dbf('0x23d')](points,rect))return![];}return!![];}function evalPath(points,o,d,nodes){var penalty=0x0;var br=bounds(o);var dr=bounds(d);for(var p=0x1;p<points[_0x5dbf('0x15')]-0x1;p++){var point=points[p];if(br[_0x5dbf('0x23c')](point))penalty+=0x2;if(dr['containsPoint'](point))penalty+=0x2;}for(var n=0x0;n<nodes[_0x5dbf('0x15')];n++){var node=nodes[n];if(node==o||node==d)continue;var rect=bounds(node);if(Geometry[_0x5dbf('0x23d')](points,rect))penalty+=0x1;}return penalty;}function badPath(link,layout){var p=link[_0x5dbf('0xd2')];if(p[_0x5dbf('0x15')]==0x2&&pathLen(p)>0x2*layout['nodeDistance']){if(!acceptPath(p,link[_0x5dbf('0x9')],link[_0x5dbf('0xa')],layout[_0x5dbf('0x9d')][_0x5dbf('0xbb')]))return!![];}if(link[_0x5dbf('0x1c8')]&&pathLen(p)>3.3*layout[_0x5dbf('0x1b6')]){if(!acceptPath(p,link['origin'],link['destination'],layout[_0x5dbf('0x9d')][_0x5dbf('0xbb')]))return!![];}if(link[_0x5dbf('0x1c8')]&&p[_0x5dbf('0x15')]==0x3){if(!acceptPath(p,link['origin'],link[_0x5dbf('0xa')],layout[_0x5dbf('0x9d')][_0x5dbf('0xbb')]))return!![];}return![];}function processed(link){if(!link[_0x5dbf('0x1c9')])return![];if(link[_0x5dbf('0xd2')][_0x5dbf('0x15')]==0x2){var ps=link[_0x5dbf('0xd2')][0x0];var pe=link[_0x5dbf('0xd2')][0x1];if(ps['x']!=pe['x']&&ps['y']!=pe['y'])return![];}return!![];}function pathLen(points){var l=0x0;for(var p=0x0;p<points[_0x5dbf('0x15')]-0x1;p++){var p1=points[p];var p2=points[p+0x1];var dx=Math['abs'](p1['x']-p2['x']);var dy=Math[_0x5dbf('0x20b')](p1['y']-p2['y']);l+=dx+dy;}return l;}function longestLink(graph){var maxLen=0x0;var longest=null;for(var l=0x0;l<graph[_0x5dbf('0x0')]['length'];l++){var link=graph[_0x5dbf('0x0')][l];var len=pathLen(link[_0x5dbf('0xd2')]);if(len>maxLen){maxLen=len;longest=link;}}return longest;}function countCrossings(graph,points,skip){var crossings=0x0;for(var l=0x0;l<graph['edges'][_0x5dbf('0x15')];l++){var link=graph[_0x5dbf('0x0')][l];if(link==skip)continue;if(Geometry[_0x5dbf('0x23e')](points,link['points']))crossings++;}return crossings;}function nearIncomingLinks(node,o){var rect=bounds(node);var topIn=[];for(var l=0x0;l<node['inEdges']['length'];l++){var link=node[_0x5dbf('0x2')][l];var li=link[_0x5dbf('0xd2')]['length']-0x1;if(o==Orientation[_0x5dbf('0x197')]){if(link[_0x5dbf('0xd2')][li]['y']==rect['y'])topIn[_0x5dbf('0x13')](link);}else{if(link[_0x5dbf('0xd2')][li]['x']==rect['x'])topIn[_0x5dbf('0x13')](link);}}return topIn;}function farOutgoingLinks(node,o){var rect=bounds(node);var bottomOut=[];for(var l=0x0;l<node[_0x5dbf('0x1')][_0x5dbf('0x15')];l++){var link=node[_0x5dbf('0x1')][l];var li=0x0;if(o==Orientation[_0x5dbf('0x197')]){if(link[_0x5dbf('0xd2')][li]['y']==rect['bottom']())bottomOut['push'](link);}else{if(link[_0x5dbf('0xd2')][li]['x']==rect[_0x5dbf('0x64')]())bottomOut[_0x5dbf('0x13')](link);}}return bottomOut;}function sideIncomingLinks(node,o){var rect=bounds(node);var sideIn=[];for(var l=0x0;l<node[_0x5dbf('0x2')][_0x5dbf('0x15')];l++){var link=node['inEdges'][l];var li=link[_0x5dbf('0xd2')][_0x5dbf('0x15')]-0x1;if(o==Orientation['Vertical']){if(link[_0x5dbf('0xd2')][li]['x']==rect['right']())sideIn['push'](link);}else{if(link[_0x5dbf('0xd2')][li]['y']==rect['bottom']())sideIn['push'](link);}}return sideIn;}function startPointsCoincide(links,o){for(var l=0x0;l<links[_0x5dbf('0x15')];l++){var link=links[l];for(var l2=l+0x1;l2<links[_0x5dbf('0x15')];l2++){var link2=links[l2];if(o==Orientation[_0x5dbf('0x197')]){if(link['points'][0x0]['x']==link2[_0x5dbf('0xd2')][0x0]['x'])return!![];}else{if(link['points'][0x0]['y']==link2[_0x5dbf('0xd2')][0x0]['y'])return!![];}}}return![];}function endPointsCoincide(links,o){for(var l=0x0;l<links['length'];l++){var link=links[l];var li=link[_0x5dbf('0xd2')]['length']-0x1;for(var l2=l+0x1;l2<links[_0x5dbf('0x15')];l2++){var link2=links[l2];var l2i=link2[_0x5dbf('0xd2')]['length']-0x1;if(o==Orientation[_0x5dbf('0x197')]){if(link[_0x5dbf('0xd2')][li]['x']==link2['points'][l2i]['x'])return!![];}else{if(link['points'][li]['y']==link2[_0x5dbf('0xd2')][l2i]['y'])return!![];}}}return![];}function pullNearInPointsApart(links,o){var n=links[0x0]['destination'];var r=bounds(n);var c=r[_0x5dbf('0x1c6')]();var vert=o==Orientation[_0x5dbf('0x197')];var sv=vert?{'x':c['x'],'y':c['y']-0x14}:{'x':c['x']-0x14,'y':c['y']};var ev={'x':c['x'],'y':c['y']};links[_0x5dbf('0x124')](function(l1,l2){var s1=bounds(l1['origin'])[_0x5dbf('0x1c6')]();var e1=bounds(l1[_0x5dbf('0xa')])[_0x5dbf('0x1c6')]();var s2=bounds(l2[_0x5dbf('0x9')])['center']();var e2=bounds(l2[_0x5dbf('0xa')])[_0x5dbf('0x1c6')]();var a=Geometry[_0x5dbf('0x23f')];var a1=a(sv,ev,s1,e1);var a2=a(sv,ev,s2,e2);return vert?a2-a1:a1-a2;});for(var i=0x0;i<links[_0x5dbf('0x15')];++i){var link=links[i];link[_0x5dbf('0x9')];var dest=link[_0x5dbf('0xa')];var endB=(i+0x1)*Tools[_0x5dbf('0x1cc')](dest,o)/(links['length']+0x1)+Tools['GetBNear'](dest,o);i<intDiv$1(links[_0x5dbf('0x15')],0x2)?i+0x1:links['length']-i;var li=link['points'][_0x5dbf('0x15')]-0x1;var ni=li-0x1;if(vert)link[_0x5dbf('0xd2')][li]['x']=link[_0x5dbf('0xd2')][ni]['x']=endB;else link[_0x5dbf('0xd2')][li]['y']=link[_0x5dbf('0xd2')][ni]['y']=endB;}}function pullFarOutPointsApart(links,o){var n=links[0x0]['origin'];var r=bounds(n);var c=r['center']();var vert=o==Orientation[_0x5dbf('0x197')];var sv={'x':c['x'],'y':c['y']};var ev=vert?{'x':c['x'],'y':c['y']+0x14}:{'x':c['x']+0x14,'y':c['y']};links['sort'](function(l1,l2){var s1=bounds(l1[_0x5dbf('0x9')])[_0x5dbf('0x1c6')]();var e1=bounds(l1[_0x5dbf('0xa')])[_0x5dbf('0x1c6')]();var s2=bounds(l2[_0x5dbf('0x9')])[_0x5dbf('0x1c6')]();var e2=bounds(l2[_0x5dbf('0xa')])[_0x5dbf('0x1c6')]();var a=Geometry[_0x5dbf('0x23f')];var a1=a(sv,ev,s1,e1);var a2=a(sv,ev,s2,e2);return vert?a1-a2:a2-a1;});for(var i=0x0;i<links[_0x5dbf('0x15')];++i){var link=links[i];var origin=link[_0x5dbf('0x9')];link['destination'];var endB=(i+0x1)*Tools['GetBreadth'](origin,o)/(links[_0x5dbf('0x15')]+0x1)+Tools[_0x5dbf('0x1cf')](origin,o);i<intDiv$1(links['length'],0x2)?i+0x1:links[_0x5dbf('0x15')]-i;var li=0x0;var ni=0x1;if(vert)link['points'][li]['x']=link['points'][ni]['x']=endB;else link[_0x5dbf('0xd2')][li]['y']=link[_0x5dbf('0xd2')][ni]['y']=endB;}}function pullSideInPointsApart(links,o){var n=links[0x0]['destination'];var r=bounds(n);var c=r[_0x5dbf('0x1c6')]();var vert=o==Orientation[_0x5dbf('0x197')];var sv=vert?{'x':c['x']-0x14,'y':c['y']}:{'x':c['x'],'y':c['y']-0x14};var ev={'x':c['x'],'y':c['y']};links['sort'](function(l1,l2){var s1=bounds(l1[_0x5dbf('0x9')])[_0x5dbf('0x1c6')]();var e1=l1[_0x5dbf('0xd2')][l1[_0x5dbf('0xd2')][_0x5dbf('0x15')]-0x1];var s2=bounds(l2[_0x5dbf('0x9')])[_0x5dbf('0x1c6')]();var e2=l2[_0x5dbf('0xd2')][l2[_0x5dbf('0xd2')][_0x5dbf('0x15')]-0x1];var a=Geometry[_0x5dbf('0x23f')];var a1=a(sv,ev,s1,e1);var a2=a(sv,ev,s2,e2);return vert?a2-a1:a1-a2;});for(var i=0x0;i<links['length'];++i){var link=links[i];link['origin'];var dest=link[_0x5dbf('0xa')];var endL=(i+0x1)*Tools['GetLength'](dest,o)/(links[_0x5dbf('0x15')]+0x1)+Tools['GetLNear'](dest,o);i<intDiv$1(links[_0x5dbf('0x15')],0x2)?i+0x1:links[_0x5dbf('0x15')]-i;var li=link[_0x5dbf('0xd2')]['length']-0x1;var ni=li-0x1;if(vert)link[_0x5dbf('0xd2')][li]['y']=link[_0x5dbf('0xd2')][ni]['y']=endL;else link[_0x5dbf('0xd2')][li]['x']=link['points'][ni]['x']=endL;}}function compareX(s1,s2){var p1=s1['points'][s1[_0x5dbf('0x18')]];var p2=s2[_0x5dbf('0xd2')][s2['index']];if(p1['x']<p2['x'])return-0x1;if(p1['x']>p2['x'])return 0x1;return 0x0;}function compareY(s1,s2){var p1=s1['points'][s1[_0x5dbf('0x18')]];var p2=s2[_0x5dbf('0xd2')][s2[_0x5dbf('0x18')]];if(p1['y']<p2['y'])return-0x1;if(p1['y']>p2['y'])return 0x1;return 0x0;}function compareV(s1,s2){var l1=s1[_0x5dbf('0xd2')][_0x5dbf('0x15')]-0x1;var l2=s2[_0x5dbf('0xd2')][_0x5dbf('0x15')]-0x1;var p1=s1[_0x5dbf('0x18')]>0x0?s1[_0x5dbf('0xd2')][s1[_0x5dbf('0x18')]-0x1]:s1[_0x5dbf('0xd2')][0x0];var p2=s2[_0x5dbf('0x18')]>0x0?s2[_0x5dbf('0xd2')][s2[_0x5dbf('0x18')]-0x1]:s2[_0x5dbf('0xd2')][0x0];var q1=s1[_0x5dbf('0xd2')][s1[_0x5dbf('0x18')]];var q2=s2[_0x5dbf('0xd2')][s2[_0x5dbf('0x18')]];var r1=s1['index']<l1?s1[_0x5dbf('0xd2')][s1[_0x5dbf('0x18')]+0x1]:s1[_0x5dbf('0xd2')][l1];var r2=s2['index']<l2?s2[_0x5dbf('0xd2')][s2[_0x5dbf('0x18')]+0x1]:s2[_0x5dbf('0xd2')][l2];var up1=q1['y']>r1['y'];var up2=q2['y']>r2['y'];var leftIn1=p1['x']>q1['x'];var leftIn2=p2['x']>q2['x'];if(leftIn1&&leftIn2){if(up1&&up2){if(q1['y']<q2['y'])return 0x1;if(q1['y']>q2['y'])return-0x1;}if(!up1&&!up2){if(q1['y']<q2['y'])return-0x1;if(q1['y']>q2['y'])return 0x1;}}if(up1&&up2){if(q1['y']<q2['y'])return-0x1;if(q1['y']>q2['y'])return 0x1;}if(!up1&&!up2){if(q1['y']<q2['y'])return 0x1;if(q1['y']>q2['y'])return-0x1;}if(up1&&!up2)return-0x1;if(!up1&&up2)return 0x1;if(p1['x']<p2['x'])return-0x1;if(p1['x']>p2['x'])return 0x1;return 0x0;}function compareH(s1,s2){var p1=s1[_0x5dbf('0xd2')][0x0];var p2=s2['points'][0x0];if(p1['y']<p2['y'])return-0x1;if(p1['y']>p2['y'])return 0x1;return 0x0;}function coord(segment,horizontal){var point=segment[_0x5dbf('0xd2')][segment[_0x5dbf('0x18')]];return horizontal?point['y']:point['x'];}function getSplitGroups(segments,horizontal){var graph=new Graph();var vertices=[];for(var i=0x0;i<segments['length'];i++){var segment=segments[i];var vertex=graph[_0x5dbf('0xe7')](null,segment);vertices[_0x5dbf('0x13')](vertex);}for(var i=0x0;i<segments[_0x5dbf('0x15')]-0x1;i++){for(var j=i+0x1;j<segments[_0x5dbf('0x15')];j++){var i1=horizontal?segments[i][_0x5dbf('0x240')]():segments[i][_0x5dbf('0x241')]();var i2=horizontal?segments[j][_0x5dbf('0x240')]():segments[j][_0x5dbf('0x241')]();if(intervalsIntersect(i1,i2))graph[_0x5dbf('0xe4')](vertices[i],vertices[j]);}}var components=graph[_0x5dbf('0xf8')]();var splitGroups=[];for(var i=0x0;i<components[_0x5dbf('0x15')];i++){var component=components[i];var group=[];for(var v=0x0;v<component[_0x5dbf('0xbb')]['length'];v++){var vertex=component[_0x5dbf('0xbb')][v];group[_0x5dbf('0x13')](vertex[_0x5dbf('0x6')]);}splitGroups[_0x5dbf('0x13')](group);}return splitGroups;}function intervalsIntersect(i1,i2){if(i1[0x0]>=i2[0x1])return![];if(i2[0x0]>=i1[0x1])return![];return!![];}function originNodesArranged(links){for(var l=0x0;l<links[_0x5dbf('0x15')];++l){var link=links[l];if(!link[_0x5dbf('0x9')][_0x5dbf('0x224')])return![];}return!![];}function centerOfOriginNodes(links,o){var rect=Rect['empty'];for(var l=0x0;l<links[_0x5dbf('0x15')];++l){var link=links[l];var or=bounds(link[_0x5dbf('0x9')]);rect=rect[_0x5dbf('0x242')]()?or:or['union'](rect);}return o==Orientation[_0x5dbf('0x197')]?rect['x']+rect['width']/0x2:rect['y']+rect[_0x5dbf('0xe9')]/0x2;}function farOfOriginNodes(links,orientataion){var rect=Rect[_0x5dbf('0x53')];for(var l=0x0;l<links[_0x5dbf('0x15')];++l){var link=links[l];var or=bounds(link['origin']);rect=rect[_0x5dbf('0x242')]()?or:or[_0x5dbf('0x1bf')](rect);}return orientataion==Orientation[_0x5dbf('0x197')]?rect[_0x5dbf('0x1b4')]():rect[_0x5dbf('0x64')]();}class FractalLayout extends Layout{constructor(){super();this[_0x5dbf('0x55')]=null;this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x1a8')];}get[_0x5dbf('0x243')](){return![];}get[_0x5dbf('0x19e')](){return![];}['arrange'](graph){var root=this[_0x5dbf('0x55')]&&this['root'][_0x5dbf('0x244')]&&graph[_0x5dbf('0xbb')][_0x5dbf('0xc')](this[_0x5dbf('0x55')]['vertex'])?this[_0x5dbf('0x55')]['vertex']:graph[_0x5dbf('0xbb')][0x0];root['isRoot']=!![];this[_0x5dbf('0x245')]=new Map();this['measureCircles'](root);var rootCircle=this[_0x5dbf('0x245')][_0x5dbf('0x51')](root);this[_0x5dbf('0x246')](rootCircle,{'x':0x0,'y':0x0},0x0);}[_0x5dbf('0x247')](node){var w=node['width'];var h=node['height'];var branchCircle={};var radius=Math[_0x5dbf('0x248')](w*w+h*h)/0x2;branchCircle[_0x5dbf('0x1da')]=node;this['branchCircles'][_0x5dbf('0xa0')](node,branchCircle);var childCircles=[];var radTotal=0x0;node[_0x5dbf('0x121')]()[_0x5dbf('0x12')](function(child){if(this['branchCircles']['has'](child))return;var childCircle=this[_0x5dbf('0x247')](child);childCircles[_0x5dbf('0x13')](childCircle);radTotal+=childCircle[_0x5dbf('0x249')];},this);childCircles[_0x5dbf('0x124')](compareRadius);if(!node[_0x5dbf('0x24a')])radTotal=radTotal*0x48/0x47;var pointsInCircle=[{'x':-w/0x2,'y':-h/0x2},{'x':w/0x2,'y':-h/0x2},{'x':w/0x2,'y':h/0x2},{'x':-w/0x2,'y':h/0x2}];var currentAngle=0x0;if(!node[_0x5dbf('0x24a')])currentAngle+=Math['PI']/0x48;var totalSweep=0x2*Math['PI'];for(var i=0x0;i<childCircles[_0x5dbf('0x15')];++i){var childCircle=childCircles[i];var sweepAngle=totalSweep*childCircle[_0x5dbf('0x249')]/radTotal;if(sweepAngle>Math['PI']){sweepAngle=Math['PI'];totalSweep=Math['PI'];radTotal-=childCircle['radius'];}childCircle[_0x5dbf('0x24b')]=sweepAngle;}for(var i=0x0;i<childCircles[_0x5dbf('0x15')];++i){var childCircle=childCircles[i];var halfSectorAngle=childCircle[_0x5dbf('0x24b')]/0x2;currentAngle+=halfSectorAngle;childCircle[_0x5dbf('0x24c')]=currentAngle;currentAngle+=halfSectorAngle;var centerDelta=Math['max'](radius+childCircle[_0x5dbf('0x249')],childCircle['radius']/Math[_0x5dbf('0x24d')](halfSectorAngle));childCircle[_0x5dbf('0x24e')]=centerDelta;var farPointDelta=Math['max'](radius+0x2*childCircle[_0x5dbf('0x249')],childCircle['radius']+childCircle[_0x5dbf('0x249')]/Math[_0x5dbf('0x24d')](halfSectorAngle));var farPoint={'x':farPointDelta*Math[_0x5dbf('0x24f')](childCircle[_0x5dbf('0x24c')]),'y':farPointDelta*Math[_0x5dbf('0x24d')](childCircle[_0x5dbf('0x24c')])};pointsInCircle[_0x5dbf('0x13')](farPoint);}if(childCircles[_0x5dbf('0x15')]>0x0){var minCircle=Circle[_0x5dbf('0x250')](pointsInCircle);branchCircle[_0x5dbf('0x249')]=minCircle['r'];branchCircle[_0x5dbf('0x251')]=minCircle['x'];branchCircle[_0x5dbf('0x252')]=minCircle['y'];}else{branchCircle['radius']=radius;branchCircle['centerX']=branchCircle[_0x5dbf('0x252')]=0x0;}branchCircle[_0x5dbf('0x253')]=childCircles;return branchCircle;}[_0x5dbf('0x246')](circle,center,angle){var parentLinkAngle=angle;if(!circle[_0x5dbf('0x1da')]['isRoot'])parentLinkAngle+=Math['PI']-circle[_0x5dbf('0x24c')];var nodePos={'x':center['x']-circle[_0x5dbf('0x251')],'y':center['y']-circle[_0x5dbf('0x252')]};circle[_0x5dbf('0x253')][_0x5dbf('0x12')](function(childCircle){var childCirclePos={'x':nodePos['x']+childCircle['centerDelta']*Math[_0x5dbf('0x24f')](childCircle['angle']),'y':nodePos['y']+childCircle[_0x5dbf('0x24e')]*Math[_0x5dbf('0x24d')](childCircle[_0x5dbf('0x24c')])};childCirclePos=Geometry[_0x5dbf('0x254')](childCirclePos,center,parentLinkAngle);this[_0x5dbf('0x246')](childCircle,childCirclePos,parentLinkAngle);},this);nodePos=Geometry[_0x5dbf('0x254')](nodePos,center,parentLinkAngle);circle['node']['x']=nodePos['x'];circle['node']['y']=nodePos['y'];}[_0x5dbf('0x1ff')](){return this['constructor'][_0x5dbf('0x201')];}get['anchoring'](){return this['_anchoring'];}set[_0x5dbf('0x198')](value){this[_0x5dbf('0x199')]=value;}get['keepGroupLayout'](){return this['_keepGroupLayout'];}set[_0x5dbf('0x195')](value){this[_0x5dbf('0x19a')]=value;}get[_0x5dbf('0x55')](){return this[_0x5dbf('0x255')];}set[_0x5dbf('0x55')](value){this[_0x5dbf('0x255')]=value;}get['multipleGraphsPlacement'](){return this[_0x5dbf('0x19b')];}set['multipleGraphsPlacement'](value){this[_0x5dbf('0x19b')]=value;}}function compareRadius(e1,e2){var r1=e1[_0x5dbf('0x249')];var r2=e2[_0x5dbf('0x249')];if(r1<r2)return 0x1;if(r1>r2)return-0x1;return 0x0;}class LayeredLayout extends Layout{constructor(){super();this['nodeDistance']=0x14;this[_0x5dbf('0x256')]=0x19;this[_0x5dbf('0x8c')]=LayoutDirection[_0x5dbf('0x1ae')];this[_0x5dbf('0x257')]=0x1;this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x1a8')];this['initialMinimizeCrossingsDown']=![];}get[_0x5dbf('0x243')](){return![];}['arrange'](graph){graph[_0x5dbf('0xee')]();this[_0x5dbf('0x9d')]=graph;var reversedEdges=graph['makeAcyclic']();for(var n=0x0;n<graph['vertices'][_0x5dbf('0x15')];n++){var node=graph['vertices'][n];node[_0x5dbf('0x4')]=-0x1;node[_0x5dbf('0x258')]=0x0;node['dBaryCenter']=0x0;node[_0x5dbf('0x259')]=0x0;node['dLinkCount']=0x0;node[_0x5dbf('0x25a')]=0x0;node[_0x5dbf('0x25b')]=0x0;node['gridPosition']=0x0;node[_0x5dbf('0x25c')]=![];}for(var l=0x0;l<graph[_0x5dbf('0x0')][_0x5dbf('0x15')];l++){var link=graph[_0x5dbf('0x0')][l];link[_0x5dbf('0x25d')]=0x0;}var current=[];var layering=new Map();graph[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(node){if(node['inEdges'][_0x5dbf('0x15')]==0x0){layering[_0x5dbf('0xa0')](node,0x0);current[_0x5dbf('0x13')](node);}});while(current[_0x5dbf('0x15')]>0x0){var next=current[_0x5dbf('0x25e')]();next['outEdges']['forEach'](function(link){var dest=link[_0x5dbf('0xa')];if(!layering[_0x5dbf('0xa4')](dest))layering[_0x5dbf('0xa0')](dest,layering[_0x5dbf('0x51')](next)+0x1);else layering['set'](dest,Math['max'](layering[_0x5dbf('0x51')](dest),layering[_0x5dbf('0x51')](next)+0x1));if(!current[_0x5dbf('0xc')](dest))current['push'](dest);});}var layerCount=0x0;layering['forEach'](function(nodeLayer){layerCount=Math[_0x5dbf('0xbe')](layerCount,nodeLayer);});var sortedNodes=[];sortedNodes[_0x5dbf('0x13')](...layering['keys']());sortedNodes[_0x5dbf('0x124')](function(o1,o2){var o1layer=layering['get'](o1);var o2layer=layering[_0x5dbf('0x51')](o2);if(o1layer<o2layer)return 0x1;if(o1layer>o2layer)return-0x1;return o1[_0x5dbf('0x18')]-o2[_0x5dbf('0x18')];});for(var n=0x0;n<sortedNodes['length'];++n){var node=sortedNodes[n];var minLayer=Number[_0x5dbf('0xf5')];if(node[_0x5dbf('0x1')][_0x5dbf('0x15')]==0x0)continue;for(var l=0x0;l<node[_0x5dbf('0x1')]['length'];++l){var link=node[_0x5dbf('0x1')][l];minLayer=Math[_0x5dbf('0xbd')](minLayer,layering[_0x5dbf('0x51')](link[_0x5dbf('0xa')]));}if(minLayer>0x1)layering[_0x5dbf('0xa0')](node,minLayer-0x1);}this[_0x5dbf('0x25f')]=[];for(var i=0x0;i<layerCount+0x1;i++)this['layers']['push']([]);layering[_0x5dbf('0x12')](function(layer,node){node[_0x5dbf('0x4')]=layer;this['layers'][layer][_0x5dbf('0x13')](node);},this);for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];l++){var layer=this['layers'][l];layer[_0x5dbf('0x124')](compareByIndex);for(var i=0x0;i<layer[_0x5dbf('0x15')];i++)layer[i]['gridPosition']=i;}this[_0x5dbf('0x260')]();this[_0x5dbf('0x261')]();this[_0x5dbf('0x262')]();this[_0x5dbf('0x263')]();this[_0x5dbf('0x264')]();this['dedummify']();reversedEdges[_0x5dbf('0x12')](function(e){if(e[_0x5dbf('0xd2')])e['points']['reverse']();});}['setMinDist'](m,n,minDist){var l=m[_0x5dbf('0x4')];var i=m[_0x5dbf('0x265')];this[_0x5dbf('0x266')][l][i]=minDist;}[_0x5dbf('0x267')](m,n){var l=m[_0x5dbf('0x4')];var i1=m['indexInLayer'];var i2=n[_0x5dbf('0x265')];var min=Math[_0x5dbf('0xbd')](i1,i2);var max=Math[_0x5dbf('0xbe')](i1,i2);var dist=0x0;for(var i=min;i<max;++i)dist+=this['minDistances'][l][i];return dist;}[_0x5dbf('0x268')](){var nodeLeftClassRef={'value':null};var result=this[_0x5dbf('0x269')](nodeLeftClassRef,0x1);this[_0x5dbf('0x26a')]=nodeLeftClassRef[_0x5dbf('0xf7')];return result;}[_0x5dbf('0x26b')](){var nodeRightClassRef={'value':null};var result=this[_0x5dbf('0x269')](nodeRightClassRef,-0x1);this[_0x5dbf('0x26c')]=nodeRightClassRef[_0x5dbf('0xf7')];return result;}[_0x5dbf('0x269')](nodeClassRef,d){var nodeClass=nodeClassRef[_0x5dbf('0xf7')]=new Map();var currentClass=0x0;for(var l=0x0;l<this['layers'][_0x5dbf('0x15')];++l){currentClass=l;var layer=this[_0x5dbf('0x25f')][l];for(var n=d==0x1?0x0:layer[_0x5dbf('0x15')]-0x1;0x0<=n&&n<layer[_0x5dbf('0x15')];n+=d){var node=layer[n];if(!nodeClass[_0x5dbf('0xa4')](node)){nodeClass[_0x5dbf('0xa0')](node,currentClass);if(node[_0x5dbf('0x25c')]){this[_0x5dbf('0x26d')](node)['forEach'](function(vnode){nodeClass[_0x5dbf('0xa0')](vnode,currentClass);});}}else{currentClass=nodeClass[_0x5dbf('0x51')](node);}}}var classes=[];for(var i=0x0;i<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];i++)classes['push'](null);nodeClass[_0x5dbf('0x12')](function(classIndex,node){if(classes[classIndex]===null)classes[classIndex]=[];classes[classIndex]['push'](node);});return classes;}['placeLeftToRight'](leftClasses){var leftPos=new Map();for(var c=0x0;c<this['layers']['length'];++c){var classNodes=leftClasses[c];if(classNodes==null)continue;for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];if(!leftPos[_0x5dbf('0xa4')](node))this[_0x5dbf('0x26e')](node,leftPos,c);}var d=Number[_0x5dbf('0x26f')];for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];var rightSibling=this[_0x5dbf('0x270')](node);if(rightSibling!=null&&this['nodeLeftClass'][_0x5dbf('0x51')](rightSibling)!=c)d=Math[_0x5dbf('0xbd')](d,leftPos[_0x5dbf('0x51')](rightSibling)-leftPos[_0x5dbf('0x51')](node)-this[_0x5dbf('0x267')](node,rightSibling));}if(d==Number[_0x5dbf('0x26f')]){var D=[];for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];var neighbors=[];neighbors[_0x5dbf('0x13')](...this[_0x5dbf('0x271')][_0x5dbf('0x51')](node));neighbors['push'](...this[_0x5dbf('0x272')]['get'](node));for(var e=0x0;e<neighbors[_0x5dbf('0x15')];e++){var neighbor=neighbors[e];if(this[_0x5dbf('0x26a')]['get'](neighbor)<c)D[_0x5dbf('0x13')]({'diff':leftPos[_0x5dbf('0x51')](neighbor)-leftPos[_0x5dbf('0x51')](node),'n':neighbor});}}D['sort'](function(a,b){var s=a[_0x5dbf('0x273')]-b[_0x5dbf('0x273')];if(s==0x0)s=compareByIndex(a['n'],b['n']);return s;});if(D[_0x5dbf('0x15')]==0x0)d=0x0;else if(D[_0x5dbf('0x15')]%0x2==0x1)d=D[intDiv(D[_0x5dbf('0x15')],0x2)][_0x5dbf('0x273')];else d=(D[intDiv(D['length'],0x2)-0x1][_0x5dbf('0x273')]+D[intDiv(D[_0x5dbf('0x15')],0x2)][_0x5dbf('0x273')])/0x2;}for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];leftPos['set'](node,leftPos[_0x5dbf('0x51')](node)+d);}}return leftPos;}['dump'](pos){for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];++l){var s='';s+='layer\x20'+l+':\x20';var layer=this[_0x5dbf('0x25f')][l];for(var n=0x0;n<layer[_0x5dbf('0x15')];++n)s+=pos[_0x5dbf('0x51')](layer[n])+'\x20';console[_0x5dbf('0x211')](s);}}[_0x5dbf('0x274')](rightClasses){var rightPos=new Map();for(var c=0x0;c<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];++c){var classNodes=rightClasses[c];if(classNodes==null)continue;for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];if(!rightPos[_0x5dbf('0xa4')](node))this[_0x5dbf('0x275')](node,rightPos,c);}var d=Number['NEGATIVE_INFINITY'];for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];var leftSibling=this[_0x5dbf('0x276')](node);if(leftSibling!=null&&this[_0x5dbf('0x26c')][_0x5dbf('0x51')](leftSibling)!=c)d=Math[_0x5dbf('0xbe')](d,rightPos['get'](leftSibling)-rightPos[_0x5dbf('0x51')](node)+this[_0x5dbf('0x267')](leftSibling,node));}if(d==Number[_0x5dbf('0x277')]){var D=[];for(var n=0x0;n<classNodes[_0x5dbf('0x15')];n++){var node=classNodes[n];var neighbors=[];neighbors[_0x5dbf('0x13')](...this[_0x5dbf('0x271')][_0x5dbf('0x51')](node));neighbors[_0x5dbf('0x13')](...this[_0x5dbf('0x272')][_0x5dbf('0x51')](node));for(var e=0x0;e<neighbors[_0x5dbf('0x15')];e++){var neighbor=neighbors[e];if(this[_0x5dbf('0x26c')]['get'](neighbor)<c)D[_0x5dbf('0x13')]({'diff':rightPos[_0x5dbf('0x51')](node)-rightPos[_0x5dbf('0x51')](neighbor),'n':neighbor});}}D[_0x5dbf('0x124')](function(a,b){var s=a[_0x5dbf('0x273')]-b['diff'];if(s==0x0)s=compareByIndex(a['n'],b['n']);return s;});if(D[_0x5dbf('0x15')]==0x0)d=0x0;else if(D['length']%0x2==0x1)d=D[intDiv(D['length'],0x2)][_0x5dbf('0x273')];else d=(D[intDiv(D['length'],0x2)-0x1][_0x5dbf('0x273')]+D[intDiv(D[_0x5dbf('0x15')],0x2)]['diff'])/0x2;}for(var n=0x0;n<classNodes['length'];n++){var node=classNodes[n];rightPos[_0x5dbf('0xa0')](node,rightPos[_0x5dbf('0x51')](node)+d);}}return rightPos;}[_0x5dbf('0x264')](){for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];++l){var layer=this[_0x5dbf('0x25f')][l];layer[_0x5dbf('0x124')](compareByGridPos);}this[_0x5dbf('0x266')]=[];for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];++l){var layer=this['layers'][l];this[_0x5dbf('0x266')][l]=[];for(var n=0x0;n<layer[_0x5dbf('0x15')];++n){var node=layer[n];node[_0x5dbf('0x265')]=n;this[_0x5dbf('0x266')][l][n]=this[_0x5dbf('0x1b6')];if(n<layer[_0x5dbf('0x15')]-0x1){if(this[_0x5dbf('0x8c')]%0x2==0x0)this[_0x5dbf('0x266')][l][n]+=(node[_0x5dbf('0xe8')]+layer[n+0x1][_0x5dbf('0xe8')])/0x2;else this[_0x5dbf('0x266')][l][n]+=(node[_0x5dbf('0xe9')]+layer[n+0x1][_0x5dbf('0xe9')])/0x2;}}}this['downNodes']=new Map();this[_0x5dbf('0x271')]=new Map();this[_0x5dbf('0x9d')][_0x5dbf('0xbb')][_0x5dbf('0x12')](function(node){this['downNodes']['set'](node,[]);this[_0x5dbf('0x271')][_0x5dbf('0xa0')](node,[]);},this);this['graph'][_0x5dbf('0x0')][_0x5dbf('0x12')](function(link){var origin=link[_0x5dbf('0x9')];var dest=link[_0x5dbf('0xa')];var down=null,up=null;if(origin['layer']>dest[_0x5dbf('0x4')]){down=link[_0x5dbf('0x9')];up=link[_0x5dbf('0xa')];}else{up=link[_0x5dbf('0x9')];down=link[_0x5dbf('0xa')];}this['downNodes'][_0x5dbf('0x51')](up)[_0x5dbf('0x13')](down);this[_0x5dbf('0x271')][_0x5dbf('0x51')](down)[_0x5dbf('0x13')](up);},this);this['downNodes'][_0x5dbf('0x12')](function(list){list['sort'](compareByGridPos);});this[_0x5dbf('0x271')][_0x5dbf('0x12')](function(list){list['sort'](compareByGridPos);});for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;++l){var layer=this[_0x5dbf('0x25f')][l];for(var u=0x0;u<layer[_0x5dbf('0x15')]-0x1;u++){var currNode=layer[u];if(!currNode['dummy'])continue;var currDown=this[_0x5dbf('0x272')][_0x5dbf('0x51')](currNode)[0x0];if(!currDown[_0x5dbf('0x25c')])continue;for(var n=u+0x1;n<layer[_0x5dbf('0x15')];++n){var node=layer[n];if(!node[_0x5dbf('0x25c')])continue;var downNode=this[_0x5dbf('0x272')]['get'](node)[0x0];if(!downNode[_0x5dbf('0x25c')])continue;if(currDown[_0x5dbf('0x278')]>downNode['gridPosition']){var pos=currDown[_0x5dbf('0x278')];currDown['gridPosition']=downNode['gridPosition'];downNode[_0x5dbf('0x278')]=pos;var i1=currDown[_0x5dbf('0x265')];var i2=downNode[_0x5dbf('0x265')];this[_0x5dbf('0x25f')][l+0x1][i1]=downNode;this[_0x5dbf('0x25f')][l+0x1][i2]=currDown;currDown[_0x5dbf('0x265')]=i2;downNode[_0x5dbf('0x265')]=i1;}}}}var leftClasses=this[_0x5dbf('0x268')]();var rightClasses=this['computeRightClasses']();var leftPos=this[_0x5dbf('0x279')](leftClasses);var rightPos=this[_0x5dbf('0x274')](rightClasses);var x=new Map();this[_0x5dbf('0x9d')][_0x5dbf('0xbb')][_0x5dbf('0x12')](function(node){x[_0x5dbf('0xa0')](node,(leftPos['get'](node)+rightPos[_0x5dbf('0x51')](node))/0x2);});var order=new Map();var placed=new Map();for(var l=0x0;l<this[_0x5dbf('0x25f')]['length'];++l){var layer=this[_0x5dbf('0x25f')][l];var sequenceStart=-0x1;for(var n=0x0;n<layer['length'];++n){var node=layer[n];order['set'](node,0x0);placed[_0x5dbf('0xa0')](node,![]);if(node[_0x5dbf('0x25c')]){if(sequenceStart==-0x1)sequenceStart=n;else if(sequenceStart==n-0x1)sequenceStart=n;else{order[_0x5dbf('0xa0')](layer[sequenceStart],0x0);var sdx=x[_0x5dbf('0x51')](node)-x[_0x5dbf('0x51')](layer[sequenceStart]);if(Math[_0x5dbf('0x20b')](sdx-this[_0x5dbf('0x267')](layer[sequenceStart],node))<0.0001)placed['set'](layer[sequenceStart],!![]);else placed[_0x5dbf('0xa0')](layer[sequenceStart],![]);sequenceStart=n;}}}}var directions=[0x1,-0x1];directions[_0x5dbf('0x12')](function(d){var start=d==0x1?0x0:this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;d==0x1?this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1:0x0;for(var l=start;0x0<=l&&l<this[_0x5dbf('0x25f')]['length'];l+=d){var layer=this['layers'][l];var virtualStartIndex=leftMostVirtualNode(layer);var virtualStart=null;var sequence=null;if(virtualStartIndex!=-0x1){virtualStart=layer[virtualStartIndex];sequence=[];for(var i=0x0;i<virtualStartIndex;i++)sequence[_0x5dbf('0x13')](layer[i]);}else{virtualStart=null;sequence=layer;}if(sequence['length']>0x0){this[_0x5dbf('0x27a')](x,null,virtualStart,d,sequence);for(var i=0x0;i<sequence[_0x5dbf('0x15')]-0x1;++i)this['setMinDist'](sequence[i],sequence[i+0x1],x['get'](sequence[i+0x1])-x[_0x5dbf('0x51')](sequence[i]));if(virtualStart!=null)this[_0x5dbf('0x27b')](sequence[sequence[_0x5dbf('0x15')]-0x1],virtualStart,x[_0x5dbf('0x51')](virtualStart)-x[_0x5dbf('0x51')](sequence[sequence[_0x5dbf('0x15')]-0x1]));}while(virtualStart!=null){var virtualEnd=nextVirtualNode(layer,virtualStart);if(virtualEnd==null){virtualStartIndex=virtualStart['indexInLayer'];sequence=[];for(var i=virtualStartIndex+0x1;i<layer[_0x5dbf('0x15')];i++)sequence[_0x5dbf('0x13')](layer[i]);if(sequence['length']>0x0){this[_0x5dbf('0x27a')](x,virtualStart,null,d,sequence);for(var i=0x0;i<sequence['length']-0x1;++i)this[_0x5dbf('0x27b')](sequence[i],sequence[i+0x1],x[_0x5dbf('0x51')](sequence[i+0x1])-x[_0x5dbf('0x51')](sequence[i]));this[_0x5dbf('0x27b')](virtualStart,sequence[0x0],x[_0x5dbf('0x51')](sequence[0x0])-x[_0x5dbf('0x51')](virtualStart));}}else if(order[_0x5dbf('0x51')](virtualStart)==d){virtualStartIndex=virtualStart[_0x5dbf('0x265')];var virtualEndIndex=virtualEnd[_0x5dbf('0x265')];sequence=[];for(var i=virtualStartIndex+0x1;i<virtualEndIndex;i++)sequence[_0x5dbf('0x13')](layer[i]);if(sequence['length']>0x0)this[_0x5dbf('0x27a')](x,virtualStart,virtualEnd,d,sequence);placed[_0x5dbf('0xa0')](virtualStart,!![]);}virtualStart=virtualEnd;}this[_0x5dbf('0x27c')](l,d,order,placed);}},this);var depth=this[_0x5dbf('0x19d')];for(var i=this[_0x5dbf('0x8c')]<0x2?0x0:this[_0x5dbf('0x25f')]['length']-0x1;this[_0x5dbf('0x8c')]<0x2?i<this[_0x5dbf('0x25f')][_0x5dbf('0x15')]:i>=0x0;i+=this[_0x5dbf('0x8c')]<0x2?0x1:-0x1){var layer=this['layers'][i];var height=Number['MIN_VALUE'];for(var n=0x0;n<layer['length'];++n){var node=layer[n];if(this[_0x5dbf('0x8c')]%0x2==0x0)height=Math[_0x5dbf('0xbe')](height,node['height']);else height=Math['max'](height,node[_0x5dbf('0xe8')]);}for(var n=0x0;n<layer[_0x5dbf('0x15')];++n){var node=layer[n];node[_0x5dbf('0x278')];if(this[_0x5dbf('0x8c')]%0x2==0x0){node['x']=x[_0x5dbf('0x51')](node);node['y']=depth+height/0x2;}else{node['x']=depth+height/0x2;node['y']=x[_0x5dbf('0x51')](node);}}depth+=this[_0x5dbf('0x256')]+height;}}['adjustDirections'](l,d,order,placed){if(l+d<0x0||l+d>=this[_0x5dbf('0x25f')][_0x5dbf('0x15')])return;var prevBridge=null,prevBridgeTarget=null;var layer=this[_0x5dbf('0x25f')][l+d];for(var n=0x0;n<layer[_0x5dbf('0x15')];++n){var nextBridge=layer[n];if(nextBridge['dummy']){var nextBridgeTarget=this[_0x5dbf('0x27d')](nextBridge,l);if(nextBridgeTarget[_0x5dbf('0x25c')]){if(prevBridge!=null){var p=placed[_0x5dbf('0x51')](prevBridgeTarget);var clayer=this[_0x5dbf('0x25f')][l];var i1=prevBridgeTarget[_0x5dbf('0x265')];var i2=nextBridgeTarget[_0x5dbf('0x265')];for(var i=i1+0x1;i<i2;++i){if(clayer[i][_0x5dbf('0x25c')])p=p&&placed[_0x5dbf('0x51')](clayer[i]);}if(p){order[_0x5dbf('0xa0')](prevBridge,d);var j1=prevBridge[_0x5dbf('0x265')];var j2=nextBridge[_0x5dbf('0x265')];for(var j=j1+0x1;j<j2;++j){if(layer[j]['dummy'])order[_0x5dbf('0xa0')](layer[j],d);}}}prevBridge=nextBridge;prevBridgeTarget=nextBridgeTarget;}}}}[_0x5dbf('0x27d')](node,l){var neighbor=this['upNodes'][_0x5dbf('0x51')](node)[0x0];if(neighbor['layer']==l)return neighbor;neighbor=this[_0x5dbf('0x272')][_0x5dbf('0x51')](node)[0x0];if(neighbor[_0x5dbf('0x4')]==l)return neighbor;return null;}[_0x5dbf('0x27a')](x,virtualStart,virtualEnd,dir,sequence){if(sequence[_0x5dbf('0x15')]==0x1)this[_0x5dbf('0x27e')](x,virtualStart,virtualEnd,dir,sequence[0x0]);if(sequence['length']>0x1){var r=sequence[_0x5dbf('0x15')],t=intDiv(r,0x2);this[_0x5dbf('0x27a')](x,virtualStart,virtualEnd,dir,sequence[_0x5dbf('0x95')](0x0,t));this[_0x5dbf('0x27a')](x,virtualStart,virtualEnd,dir,sequence[_0x5dbf('0x95')](t));this[_0x5dbf('0x27f')](x,virtualStart,virtualEnd,dir,sequence);}}[_0x5dbf('0x27e')](x,virtualStart,virtualEnd,dir,node){var neighbors=dir==-0x1?this[_0x5dbf('0x272')][_0x5dbf('0x51')](node):this[_0x5dbf('0x271')]['get'](node);var n=neighbors[_0x5dbf('0x15')];if(n!=0x0){if(n%0x2==0x1)x[_0x5dbf('0xa0')](node,x[_0x5dbf('0x51')](neighbors[intDiv(n,0x2)]));else x[_0x5dbf('0xa0')](node,(x[_0x5dbf('0x51')](neighbors[intDiv(n,0x2)-0x1])+x['get'](neighbors[intDiv(n,0x2)]))/0x2);if(virtualStart!=null)x[_0x5dbf('0xa0')](node,Math[_0x5dbf('0xbe')](x['get'](node),x[_0x5dbf('0x51')](virtualStart)+this[_0x5dbf('0x267')](virtualStart,node)));if(virtualEnd!=null)x['set'](node,Math[_0x5dbf('0xbd')](x['get'](node),x[_0x5dbf('0x51')](virtualEnd)-this[_0x5dbf('0x267')](node,virtualEnd)));}}['combineSequences'](x,virtualStart,virtualEnd,dir,sequence){var r=sequence[_0x5dbf('0x15')],t=intDiv(r,0x2);var leftHeap=[];for(var i=0x0;i<t;++i){var c=0x0;var neighbors=dir==-0x1?this[_0x5dbf('0x272')]['get'](sequence[i]):this[_0x5dbf('0x271')]['get'](sequence[i]);for(var n=0x0;n<neighbors['length'];++n){var neighbor=neighbors[n];if(x[_0x5dbf('0x51')](neighbor)>=x[_0x5dbf('0x51')](sequence[i])){c++;}else{c--;leftHeap['push']({'k':x[_0x5dbf('0x51')](neighbor)+this[_0x5dbf('0x267')](sequence[i],sequence[t-0x1]),'v':0x2});}}leftHeap[_0x5dbf('0x13')]({'k':x[_0x5dbf('0x51')](sequence[i])+this[_0x5dbf('0x267')](sequence[i],sequence[t-0x1]),'v':c});}if(virtualStart!=null)leftHeap['push']({'k':x[_0x5dbf('0x51')](virtualStart)+this[_0x5dbf('0x267')](virtualStart,sequence[t-0x1]),'v':Number['MAX_VALUE']});leftHeap['sort'](compareByPosDecreasing);var rightHeap=[];for(var i=t;i<r;++i){var c=0x0;var neighbors=dir==-0x1?this[_0x5dbf('0x272')][_0x5dbf('0x51')](sequence[i]):this[_0x5dbf('0x271')][_0x5dbf('0x51')](sequence[i]);for(var n=0x0;n<neighbors['length'];++n){var neighbor=neighbors[n];if(x[_0x5dbf('0x51')](neighbor)<=x[_0x5dbf('0x51')](sequence[i])){c++;}else{c--;rightHeap['push']({'k':x[_0x5dbf('0x51')](neighbor)-this[_0x5dbf('0x267')](sequence[i],sequence[t]),'v':0x2});}}rightHeap['push']({'k':x['get'](sequence[i])-this['getMinDist'](sequence[i],sequence[t]),'v':c});}if(virtualEnd!=null)rightHeap[_0x5dbf('0x13')]({'k':x['get'](virtualEnd)-this[_0x5dbf('0x267')](virtualEnd,sequence[t]),'v':Number[_0x5dbf('0xf5')]});rightHeap[_0x5dbf('0x124')](compareByPosIncreasing);var leftRes=0x0,rightRes=0x0;var m=this[_0x5dbf('0x267')](sequence[t-0x1],sequence[t]);while(x[_0x5dbf('0x51')](sequence[t])-x[_0x5dbf('0x51')](sequence[t-0x1])<m){if(leftRes<rightRes){if(leftHeap[_0x5dbf('0x15')]==0x0){x[_0x5dbf('0xa0')](sequence[t-0x1],x[_0x5dbf('0x51')](sequence[t])-m);break;}else{var pair=leftHeap[_0x5dbf('0x25e')]();leftRes=leftRes+pair['v'];x[_0x5dbf('0xa0')](sequence[t-0x1],pair['k']);x['set'](sequence[t-0x1],Math[_0x5dbf('0xbe')](x[_0x5dbf('0x51')](sequence[t-0x1]),x[_0x5dbf('0x51')](sequence[t])-m));}}else{if(rightHeap[_0x5dbf('0x15')]==0x0){x['set'](sequence[t],x[_0x5dbf('0x51')](sequence[t-0x1])+m);break;}else{var pair=rightHeap[_0x5dbf('0x25e')]();rightRes=rightRes+pair['v'];x[_0x5dbf('0xa0')](sequence[t],pair['k']);x[_0x5dbf('0xa0')](sequence[t],Math[_0x5dbf('0xbd')](x['get'](sequence[t]),x['get'](sequence[t-0x1])+m));}}}for(var i=t-0x2;i>=0x0;i--)x['set'](sequence[i],Math[_0x5dbf('0xbd')](x[_0x5dbf('0x51')](sequence[i]),x[_0x5dbf('0x51')](sequence[t-0x1])-this[_0x5dbf('0x267')](sequence[i],sequence[t-0x1])));for(var i=t+0x1;i<r;i++)x[_0x5dbf('0xa0')](sequence[i],Math[_0x5dbf('0xbe')](x['get'](sequence[i]),x[_0x5dbf('0x51')](sequence[t])+this[_0x5dbf('0x267')](sequence[i],sequence[t])));}[_0x5dbf('0x26e')](node,leftPos,leftClass){var pos=Number[_0x5dbf('0x277')];this['L'](node)[_0x5dbf('0x12')](function(v){var leftSibling=this[_0x5dbf('0x276')](v);if(leftSibling!=null&&this[_0x5dbf('0x26a')][_0x5dbf('0x51')](leftSibling)==this[_0x5dbf('0x26a')][_0x5dbf('0x51')](v)){if(!leftPos[_0x5dbf('0xa4')](leftSibling))this['placeLeft'](leftSibling,leftPos,leftClass);pos=Math[_0x5dbf('0xbe')](pos,leftPos[_0x5dbf('0x51')](leftSibling)+this[_0x5dbf('0x267')](leftSibling,v));}},this);if(pos==Number[_0x5dbf('0x277')])pos=0x0;this['L'](node)[_0x5dbf('0x12')](function(v){leftPos['set'](v,pos);});}[_0x5dbf('0x275')](node,rightPos,rightClass){var pos=Number['POSITIVE_INFINITY'];this['L'](node)['forEach'](function(v){var rightSibling=this[_0x5dbf('0x270')](v);if(rightSibling!=null&&this[_0x5dbf('0x26c')][_0x5dbf('0x51')](rightSibling)==this['nodeRightClass']['get'](v)){if(!rightPos[_0x5dbf('0xa4')](rightSibling))this['placeRight'](rightSibling,rightPos,rightClass);pos=Math[_0x5dbf('0xbd')](pos,rightPos[_0x5dbf('0x51')](rightSibling)-this[_0x5dbf('0x267')](v,rightSibling));}},this);if(pos==Number[_0x5dbf('0x26f')])pos=0x0;this['L'](node)['forEach'](function(v){rightPos['set'](v,pos);});}[_0x5dbf('0x276')](node){var layer=this[_0x5dbf('0x25f')][node[_0x5dbf('0x4')]];var i=node['indexInLayer'];if(i==0x0)return null;return layer[i-0x1];}[_0x5dbf('0x270')](node){var layer=this[_0x5dbf('0x25f')][node['layer']];var i=node[_0x5dbf('0x265')];if(i==layer['length']-0x1)return null;return layer[i+0x1];}['L'](node){if(node['dummy'])return this[_0x5dbf('0x26d')](node);var list=[];list[_0x5dbf('0x13')](node);return list;}['layout'](){for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];l++){var layer=this[_0x5dbf('0x25f')][l];for(var ni=0x0;ni<layer[_0x5dbf('0x15')];ni++){var node=layer[ni];node[_0x5dbf('0x25a')]=node['uLinkCount'];node[_0x5dbf('0x25b')]=node[_0x5dbf('0x280')];}}var maxLayoutIterations=0x2;for(var it=0x0;it<maxLayoutIterations;it++){for(var i=this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;i>=0x1;i--)this[_0x5dbf('0x281')](![],i);for(var i=0x0;i<this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;i++)this[_0x5dbf('0x281')](!![],i);}var gridPos=Number[_0x5dbf('0xf5')];for(var l=0x0;l<this['layers'][_0x5dbf('0x15')];l++){var layer=this[_0x5dbf('0x25f')][l];for(var ni=0x0;ni<layer[_0x5dbf('0x15')];ni++){var node=layer[ni];gridPos=Math[_0x5dbf('0xbd')](gridPos,node[_0x5dbf('0x278')]);}}if(gridPos<0x0){for(var l=0x0;l<this[_0x5dbf('0x25f')][_0x5dbf('0x15')];l++){var layer=this[_0x5dbf('0x25f')][l];for(var ni=0x0;ni<layer['length'];ni++){var node=layer[ni];node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]-gridPos;}}}}[_0x5dbf('0x281')](down,layer){var iconsidered;var considered;if(down)considered=this['layers'][iconsidered=layer+0x1];else considered=this['layers'][iconsidered=layer-0x1];var sorted=[];for(var n=0x0;n<considered[_0x5dbf('0x15')];n++)sorted['push'](considered[n]);sorted[_0x5dbf('0x124')](function(n1,n2){var n1Priority=(n1[_0x5dbf('0x25a')]+n1[_0x5dbf('0x25b')])/0x2;var n2Priority=(n2[_0x5dbf('0x25a')]+n2[_0x5dbf('0x25b')])/0x2;if(Math[_0x5dbf('0x20b')](n1Priority-n2Priority)<0.0001)return compareByIndex(n1,n2);if(n1Priority<n2Priority)return 0x1;return-0x1;});sorted[_0x5dbf('0x12')](function(node){var nodeGridPos=node['gridPosition'];var nodeBaryCenter=calcBaryCenter(node);var nodePriority=(node['uPriority']+node[_0x5dbf('0x25b')])/0x2;if(Math['abs'](nodeGridPos-nodeBaryCenter)<0.0001){return;}if(Math[_0x5dbf('0x20b')](nodeGridPos-nodeBaryCenter)<0.25+0.0001){return;}if(nodeGridPos<nodeBaryCenter){while(nodeGridPos<nodeBaryCenter){if(!this['moveRight'](node,considered,nodePriority))break;nodeGridPos=node[_0x5dbf('0x278')];}}else{while(nodeGridPos>nodeBaryCenter){if(!this[_0x5dbf('0x282')](node,considered,nodePriority))break;nodeGridPos=node[_0x5dbf('0x278')];}}},this);if(iconsidered>0x0)this[_0x5dbf('0x283')](iconsidered-0x1);if(iconsidered<this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1)this[_0x5dbf('0x284')](iconsidered+0x1);}[_0x5dbf('0x285')](node,layer,priority){var index=layer[_0x5dbf('0x93')](node);if(index==layer[_0x5dbf('0x15')]-0x1){node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]+0.5;return!![];}var rightNode=layer[index+0x1];var rightNodePriority=(rightNode['uPriority']+rightNode[_0x5dbf('0x25b')])/0x2;if(rightNode[_0x5dbf('0x278')]>node[_0x5dbf('0x278')]+0x1){node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]+0.5;return!![];}if(rightNodePriority>priority||Math['abs'](rightNodePriority-priority)<0.0001)return![];if(this[_0x5dbf('0x285')](rightNode,layer,priority)){node['gridPosition']=node[_0x5dbf('0x278')]+0.5;return!![];}return![];}[_0x5dbf('0x282')](node,layer,priority){var index=layer[_0x5dbf('0x93')](node);if(index==0x0){node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]-0.5;return!![];}var leftNode=layer[index-0x1];var leftNodePriority=(leftNode[_0x5dbf('0x25a')]+leftNode['dPriority'])/0x2;if(leftNode[_0x5dbf('0x278')]<node['gridPosition']-0x1){node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]-0.5;return!![];}if(leftNodePriority>priority||Math[_0x5dbf('0x20b')](leftNodePriority-priority)<0.0001)return![];if(this[_0x5dbf('0x282')](leftNode,layer,priority)){node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]-0.5;return!![];}return![];}[_0x5dbf('0x286')](node,link){this[_0x5dbf('0x287')][_0x5dbf('0xa0')](node,link);if(!this[_0x5dbf('0x288')][_0x5dbf('0xa4')](link))this[_0x5dbf('0x288')][_0x5dbf('0xa0')](link,[]);this[_0x5dbf('0x288')]['get'](link)[_0x5dbf('0x13')](node);}[_0x5dbf('0x26d')](node){return this[_0x5dbf('0x288')][_0x5dbf('0x51')](this[_0x5dbf('0x287')]['get'](node));}[_0x5dbf('0x260')](){this['linkToNodeMap']=new Map();this[_0x5dbf('0x287')]=new Map();var links=this['graph'][_0x5dbf('0x0')]['slice'](0x0);for(var l=0x0;l<links[_0x5dbf('0x15')];l++){var link=links[l];var o=link[_0x5dbf('0x9')];var d=link[_0x5dbf('0xa')];var oLayer=o['layer'];var dLayer=d[_0x5dbf('0x4')];var oPos=o['gridPosition'];var dPos=d['gridPosition'];var step=(dPos-oPos)/Math[_0x5dbf('0x20b')](dLayer-oLayer);var p=o;if(oLayer-dLayer>0x1){for(var i=oLayer-0x1;i>dLayer;i--){var newNode=new Vertex();newNode['x']=o['x'];newNode['y']=o['y'];newNode[_0x5dbf('0xe8')]=o[_0x5dbf('0xe8')]/0x64;newNode[_0x5dbf('0xe9')]=o[_0x5dbf('0xe9')]/0x64;var layer=this[_0x5dbf('0x25f')][i];var pos=(i-dLayer)*step+oPos;if(pos>layer['length'])pos=layer[_0x5dbf('0x15')];if(oPos>=this[_0x5dbf('0x25f')][oLayer]['length']-0x1&&dPos>=this[_0x5dbf('0x25f')][dLayer][_0x5dbf('0x15')]-0x1)pos=layer[_0x5dbf('0x15')];else if(oPos==0x0&&dPos==0x0)pos=0x0;newNode['layer']=i;newNode['uBaryCenter']=0x0;newNode['dBaryCenter']=0x0;newNode[_0x5dbf('0x259')]=0x0;newNode[_0x5dbf('0x280')]=0x0;newNode[_0x5dbf('0x278')]=pos;newNode[_0x5dbf('0x25c')]=!![];layer[_0x5dbf('0x94')](pos,0x0,newNode);for(var r=pos+0x1;r<layer[_0x5dbf('0x15')];r++){var node=layer[r];node[_0x5dbf('0x278')]=node['gridPosition']+0x1;}var newLink=new Edge(p,newNode);newLink[_0x5dbf('0x25d')]=0x0;p=newNode;this[_0x5dbf('0x9d')][_0x5dbf('0xbb')][_0x5dbf('0x13')](newNode);this[_0x5dbf('0x9d')][_0x5dbf('0xa9')](newLink);newNode[_0x5dbf('0x18')]=this['graph'][_0x5dbf('0xbb')]['length']-0x1;this[_0x5dbf('0x286')](newNode,link);}link[_0x5dbf('0x1a')](p);link[_0x5dbf('0x25d')]=oLayer-dLayer-0x1;}if(oLayer-dLayer<-0x1){for(var i=oLayer+0x1;i<dLayer;i++){var newNode=new Vertex();newNode['x']=o['x'];newNode['y']=o['y'];newNode['width']=o[_0x5dbf('0xe8')]/0x64;newNode[_0x5dbf('0xe9')]=o[_0x5dbf('0xe9')]/0x64;var layer=this[_0x5dbf('0x25f')][i];var pos=(i-oLayer)*step+oPos;if(pos>layer['length'])pos=layer[_0x5dbf('0x15')];if(oPos>=this['layers'][oLayer][_0x5dbf('0x15')]-0x1&&dPos>=this[_0x5dbf('0x25f')][dLayer]['length']-0x1)pos=layer[_0x5dbf('0x15')];else if(oPos==0x0&&dPos==0x0)pos=0x0;newNode['layer']=i;newNode[_0x5dbf('0x258')]=0x0;newNode[_0x5dbf('0x289')]=0x0;newNode['uLinkCount']=0x0;newNode[_0x5dbf('0x280')]=0x0;newNode[_0x5dbf('0x278')]=pos;newNode['dummy']=!![];pos=pos&pos;layer[_0x5dbf('0x94')](pos,0x0,newNode);for(var r=pos+0x1;r<layer[_0x5dbf('0x15')];r++){var node=layer[r];node[_0x5dbf('0x278')]=node[_0x5dbf('0x278')]+0x1;}var newLink=new Edge(p,newNode);newLink['dummificationLevel']=0x0;p=newNode;this[_0x5dbf('0x9d')][_0x5dbf('0xbb')][_0x5dbf('0x13')](newNode);this[_0x5dbf('0x9d')][_0x5dbf('0xa9')](newLink);newNode[_0x5dbf('0x18')]=this[_0x5dbf('0x9d')][_0x5dbf('0xbb')][_0x5dbf('0x15')]-0x1;this[_0x5dbf('0x286')](newNode,link);}link[_0x5dbf('0x1a')](p);link[_0x5dbf('0x25d')]=dLayer-oLayer-0x1;}}}[_0x5dbf('0x28a')](){var dedum=!![];while(dedum){dedum=![];for(var l=0x0;l<this[_0x5dbf('0x9d')][_0x5dbf('0x0')][_0x5dbf('0x15')];l++){var link=this[_0x5dbf('0x9d')][_0x5dbf('0x0')][l];if(link[_0x5dbf('0x25d')]==0x0)continue;var points=[];points[_0x5dbf('0x94')](0x0,0x0,{'x':link[_0x5dbf('0xa')]['x'],'y':link['destination']['y']});points[_0x5dbf('0x94')](0x0,0x0,{'x':link[_0x5dbf('0x9')]['x'],'y':link[_0x5dbf('0x9')]['y']});var temp=link;var dummificationLevel=link['dummificationLevel'];for(var d=0x0;d<dummificationLevel;d++){var node=temp[_0x5dbf('0x9')];var prevLink=node['inEdges'][0x0];points['splice'](0x0,0x0,{'x':prevLink['origin']['x'],'y':prevLink['origin']['y']});temp=prevLink;}link['changeOrigin'](temp[_0x5dbf('0x9')]);link[_0x5dbf('0x25d')]=0x0;link['points']=points;dedum=!![];break;}}}[_0x5dbf('0x261')](){var moves=-0x1;var maxIterations=0x3;var iter=0x0;while(moves!=0x0){if(iter++>maxIterations)break;moves=0x0;var down=this[_0x5dbf('0x28b')];for(var i=this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;i>=0x1;i--)moves+=this[_0x5dbf('0x28c')](down,i);for(var i=0x0;i<this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;i++)moves+=this['minimizeCrossingsDir'](!down,i);}}[_0x5dbf('0x284')](layer){if(layer==0x0)return;var considered=this['layers'][layer];var upLayer=new Set();var temp=this[_0x5dbf('0x25f')][layer-0x1];for(var i=0x0;i<temp['length'];i++)upLayer['add'](temp[i]);for(var i=0x0;i<considered['length'];i++){var node=considered[i];var sum=0x0;var total=0x0;for(var l=0x0;l<node[_0x5dbf('0x2')][_0x5dbf('0x15')];l++){var link=node['inEdges'][l];if(upLayer[_0x5dbf('0xa4')](link[_0x5dbf('0x9')])){total++;sum+=link[_0x5dbf('0x9')][_0x5dbf('0x278')];}}for(var l=0x0;l<node[_0x5dbf('0x1')]['length'];l++){var link=node[_0x5dbf('0x1')][l];if(upLayer[_0x5dbf('0xa4')](link[_0x5dbf('0xa')])){total++;sum+=link[_0x5dbf('0xa')][_0x5dbf('0x278')];}}if(total>0x0){node[_0x5dbf('0x258')]=sum/total;node['uLinkCount']=total;}else{node[_0x5dbf('0x258')]=i;node[_0x5dbf('0x259')]=0x0;}}}[_0x5dbf('0x283')](layer){if(layer==this[_0x5dbf('0x25f')]['length']-0x1)return;var considered=this['layers'][layer];var downLayer=new Set();var temp=this['layers'][layer+0x1];for(var i=0x0;i<temp[_0x5dbf('0x15')];i++)downLayer[_0x5dbf('0x54')](temp[i]);for(var i=0x0;i<considered[_0x5dbf('0x15')];i++){var node=considered[i];var sum=0x0;var total=0x0;for(var l=0x0;l<node['inEdges'][_0x5dbf('0x15')];l++){var link=node['inEdges'][l];if(downLayer[_0x5dbf('0xa4')](link[_0x5dbf('0x9')])){total++;sum+=link[_0x5dbf('0x9')]['gridPosition'];}}for(var l=0x0;l<node[_0x5dbf('0x1')][_0x5dbf('0x15')];l++){var link=node['outEdges'][l];if(downLayer[_0x5dbf('0xa4')](link['destination'])){total++;sum+=link[_0x5dbf('0xa')][_0x5dbf('0x278')];}}if(total>0x0){node['dBaryCenter']=sum/total;node[_0x5dbf('0x280')]=total;}else{node[_0x5dbf('0x289')]=i;node[_0x5dbf('0x280')]=0x0;}}}['minimizeCrossingsDir'](down,layer){var iconsidered;var considered;if(down)considered=this['layers'][iconsidered=layer+0x1];else considered=this[_0x5dbf('0x25f')][iconsidered=layer-0x1];var presorted=considered['slice'](0x0);if(down)this['calcUpData'](iconsidered);else this['calcDownData'](iconsidered);considered[_0x5dbf('0x124')](function(n1,n2){var n1BaryCenter=calcBaryCenter(n1);var n2BaryCenter=calcBaryCenter(n2);if(Math['abs'](n1BaryCenter-n2BaryCenter)<0.0001){if(n1['degree']()==n2[_0x5dbf('0x14')]())return compareByIndex(n1,n2);else if(n1[_0x5dbf('0x14')]()<n2['degree']())return 0x1;return-0x1;}var compareValue=(n2BaryCenter-n1BaryCenter)*0x3e8;if(compareValue>0x0)return-0x1;else if(compareValue<0x0)return 0x1;return compareByIndex(n1,n2);});var moves=0x0;for(var i=0x0;i<considered[_0x5dbf('0x15')];i++)if(considered[i]!=presorted[i])moves++;if(moves>0x0){var inode=0x0;for(var i=0x0;i<considered[_0x5dbf('0x15')];i++){var node=considered[i];node['gridPosition']=inode++;}}return moves;}['swapPairs'](){var maxIterations=this['siftingRounds'];var iter=0x0;while(!![]){if(iter++>maxIterations)break;var downwards=iter%0x4<=0x1;var secondPass=iter%0x4==0x1;for(var l=downwards?0x0:this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1;downwards?l<=this['layers']['length']-0x1:l>=0x0;l+=downwards?0x1:-0x1){var layer=this[_0x5dbf('0x25f')][l];var hasSwapped=![];var calcCrossings=!![];var memCrossings=0x0;for(var n=0x0;n<layer[_0x5dbf('0x15')]-0x1;n++){var up=0x0;var down=0x0;var crossBefore=0x0;if(calcCrossings){if(l!=0x0)up=this[_0x5dbf('0x28d')](l-0x1,l);if(l!=this['layers'][_0x5dbf('0x15')]-0x1)down=this[_0x5dbf('0x28d')](l,l+0x1);if(downwards)up*=0x2;else down*=0x2;crossBefore=up+down;}else{crossBefore=memCrossings;}if(crossBefore==0x0)continue;var node1=layer[n];var node2=layer[n+0x1];var node1GridPos=node1['gridPosition'];var node2GridPos=node2[_0x5dbf('0x278')];layer[n]=node2;layer[n+0x1]=node1;node1[_0x5dbf('0x278')]=node2GridPos;node2[_0x5dbf('0x278')]=node1GridPos;up=0x0;if(l!=0x0)up=this[_0x5dbf('0x28d')](l-0x1,l);down=0x0;if(l!=this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1)down=this[_0x5dbf('0x28d')](l,l+0x1);if(downwards)up*=0x2;else down*=0x2;var crossAfter=up+down;var revert=![];if(secondPass)revert=crossAfter>=crossBefore;else revert=crossAfter>crossBefore;if(revert){node1=layer[n];node2=layer[n+0x1];node1GridPos=node1[_0x5dbf('0x278')];node2GridPos=node2[_0x5dbf('0x278')];layer[n]=node2;layer[n+0x1]=node1;node1[_0x5dbf('0x278')]=node2GridPos;node2[_0x5dbf('0x278')]=node1GridPos;memCrossings=crossBefore;calcCrossings=![];}else{hasSwapped=!![];calcCrossings=!![];}}if(hasSwapped){if(l!=this[_0x5dbf('0x25f')][_0x5dbf('0x15')]-0x1)this[_0x5dbf('0x284')](l+0x1);if(l!=0x0)this[_0x5dbf('0x283')](l-0x1);}}}}[_0x5dbf('0x28d')](ulayer,dlayer){var crossings=0x0;var uLayer=new Set();var temp1=this[_0x5dbf('0x25f')][ulayer];for(var i=0x0;i<temp1[_0x5dbf('0x15')];i++)uLayer[_0x5dbf('0x54')](temp1[i]);var dLayer=new Set();var temp2=this[_0x5dbf('0x25f')][dlayer];for(var i=0x0;i<temp2[_0x5dbf('0x15')];i++)dLayer['add'](temp2[i]);var dlinks=new Set();var links=[];var temp=[];uLayer[_0x5dbf('0x12')](function(node){temp[_0x5dbf('0x13')](...node[_0x5dbf('0x2')]);temp[_0x5dbf('0x13')](...node[_0x5dbf('0x1')]);});for(var ti=0x0;ti<temp['length'];ti++){var link=temp[ti];if(uLayer[_0x5dbf('0xa4')](link[_0x5dbf('0x9')])&&dLayer[_0x5dbf('0xa4')](link[_0x5dbf('0xa')])){dlinks[_0x5dbf('0x54')](link);links[_0x5dbf('0x13')](link);}else if(dLayer[_0x5dbf('0xa4')](link['origin'])&&uLayer[_0x5dbf('0xa4')](link[_0x5dbf('0xa')])){links[_0x5dbf('0x13')](link);}}for(var l1=0x0;l1<links['length'];l1++){var link1=links[l1];for(var l2=0x0;l2<links[_0x5dbf('0x15')];l2++){if(l1==l2)continue;var link2=links[l2];var n11,n12;var n21,n22;if(dlinks[_0x5dbf('0xa4')](link1)){n11=link1['origin'];n12=link1['destination'];}else{n11=link1[_0x5dbf('0xa')];n12=link1[_0x5dbf('0x9')];}if(dlinks[_0x5dbf('0xa4')](link2)){n21=link2['origin'];n22=link2[_0x5dbf('0xa')];}else{n21=link2[_0x5dbf('0xa')];n22=link2['origin'];}var n11gp=n11['gridPosition'];var n12gp=n12[_0x5dbf('0x278')];var n21gp=n21[_0x5dbf('0x278')];var n22gp=n22['gridPosition'];if((n11gp-n21gp)*(n12gp-n22gp)<0x0)crossings++;}}return crossings/0x2;}[_0x5dbf('0x1ff')](){return this['constructor']['__typeName'];}get[_0x5dbf('0x1b6')](){return this['_nodeDistance'];}set[_0x5dbf('0x1b6')](value){this['_nodeDistance']=value;}get[_0x5dbf('0x256')](){return this[_0x5dbf('0x28e')];}set['layerDistance'](value){this['_layerDistance']=value;}get[_0x5dbf('0x8c')](){return this[_0x5dbf('0x1bb')];}set[_0x5dbf('0x8c')](value){this['_direction']=value;}get[_0x5dbf('0x257')](){return this['_siftingRounds'];}set['siftingRounds'](value){this[_0x5dbf('0x28f')]=value;}get[_0x5dbf('0x198')](){return this['_anchoring'];}set[_0x5dbf('0x198')](value){this[_0x5dbf('0x199')]=value;}get[_0x5dbf('0x195')](){return this[_0x5dbf('0x19a')];}set[_0x5dbf('0x195')](value){this[_0x5dbf('0x19a')]=value;}get[_0x5dbf('0x196')](){return this[_0x5dbf('0x19b')];}set['multipleGraphsPlacement'](value){this[_0x5dbf('0x19b')]=value;}}function nextVirtualNode(layer,node){var nodeIndex=node[_0x5dbf('0x265')];for(var i=nodeIndex+0x1;i<layer[_0x5dbf('0x15')];++i)if(layer[i]['dummy'])return layer[i];return null;}function calcBaryCenter(node){var uLinkCount=node[_0x5dbf('0x259')];var dLinkCount=node[_0x5dbf('0x280')];var uBaryCenter=node['uBaryCenter'];var dBaryCenter=node[_0x5dbf('0x289')];if(uLinkCount>0x0&&dLinkCount>0x0)return(uBaryCenter+dBaryCenter)/0x2;if(uLinkCount>0x0)return uBaryCenter;if(dLinkCount>0x0)return dBaryCenter;return 0x0;}function compareByGridPos(x,y){if(x['gridPosition']<y[_0x5dbf('0x278')])return-0x1;if(x[_0x5dbf('0x278')]>y[_0x5dbf('0x278')])return 0x1;return compareByIndex(x,y);}function compareByPosIncreasing(x,y){if(x['k']<y['k'])return-0x1;if(x['k']>y['k'])return 0x1;return 0x0;}function compareByPosDecreasing(x,y){if(x['k']<y['k'])return 0x1;if(x['k']>y['k'])return-0x1;return 0x0;}function leftMostVirtualNode(layer){for(var c=0x0;c<layer[_0x5dbf('0x15')];c++){if(layer[c][_0x5dbf('0x25c')])return c;}return-0x1;}function compareByIndex(o1,o2){var i1=o1[_0x5dbf('0x18')];var i2=o2[_0x5dbf('0x18')];if(i1<i2)return-0x1;if(i1>i2)return 0x1;return 0x0;}function intDiv(numerator,denominator){return(numerator-numerator%denominator)/denominator;}class SpringLayout extends Layout{constructor(){super();this[_0x5dbf('0x1b6')]=0x1e;this[_0x5dbf('0x290')]=0x12c;this[_0x5dbf('0x291')]=![];this[_0x5dbf('0x292')]=0x0;this[_0x5dbf('0x293')]=0x0;this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x1a8')];}get['setsLinkEndPoints'](){return![];}get[_0x5dbf('0x19f')](){return![];}['arrange'](graph){this[_0x5dbf('0x292')]=this[_0x5dbf('0x1b6')]*0x9;this[_0x5dbf('0x293')]=this[_0x5dbf('0x292')];this[_0x5dbf('0x9d')]=graph;var autoSize=calcAutoFrame(graph,averageNodeSize(graph),0x1,0x4);this['width']=autoSize[_0x5dbf('0xe8')];this[_0x5dbf('0xe9')]=autoSize[_0x5dbf('0xe9')];for(var step=0x0;step<this['iterations'];step++){this[_0x5dbf('0x291')]=step>=this[_0x5dbf('0x290')]*0x3/0x4;graph[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(v){this['calcRepulsionForce'](v);},this);graph[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){this['calcSpringForce'](e);},this);graph['vertices'][_0x5dbf('0x12')](function(v){this['applyForce'](v);},this);this[_0x5dbf('0x293')]=this[_0x5dbf('0x291')]?this[_0x5dbf('0x292')]/0x1e:this['initialTemperature']*(0x1-step/this[_0x5dbf('0x290')]/0x2);}}['moveToEpsilonCircle'](v,radius){var a=Math[_0x5dbf('0x294')]()*0x2*Math['PI'];var l=radius*Math['random']();if(l==0x0)l=radius/0x2;v['x']+=l*Math['cos'](a);v['y']-=l*Math[_0x5dbf('0x24d')](a);}[_0x5dbf('0x295')](distance,desiredDistance,v1,v2){var a=0x0;if(this[_0x5dbf('0x291')]){var vx=v1['x']-v2['x'];var vy=v1['y']-v2['y'];var r1x=v1[_0x5dbf('0xe8')]/0x2;var r1y=v1['height']/0x2;var r2x=v2[_0x5dbf('0xe8')]/0x2;var r2y=v2[_0x5dbf('0xe9')]/0x2;a=vx*vx/Math['pow'](r1x+r2x+desiredDistance,0x2)+vy*vy/Math[_0x5dbf('0x296')](r1y+r2y+desiredDistance,0x2);}else{a=distance*distance/desiredDistance/desiredDistance;}return a*0x4/0x3;}['repulsion'](distance,desiredDistance,v1,v2){return 0x1/this['attraction'](distance,desiredDistance,v1,v2);}[_0x5dbf('0x297')](v){v['dx']=0x0;v['dy']=0x0;var desiredDist=this[_0x5dbf('0x1b6')];this['graph'][_0x5dbf('0xbb')]['forEach'](function(v2){if(v2==v)return;while(v['x']==v2['x']&&v['y']==v2['y'])this[_0x5dbf('0x298')](v2,desiredDist/0x4);var vx=v['x']-v2['x'];var vy=v['y']-v2['y'];var distance=Math[_0x5dbf('0x248')](vx*vx+vy*vy);var r=this[_0x5dbf('0x299')](distance,desiredDist,v,v2);v['dx']+=vx/distance*r;v['dy']+=vy/distance*r;},this);}[_0x5dbf('0x29a')](e){var v1=e[_0x5dbf('0x9')];var v2=e[_0x5dbf('0xa')];var desiredDist=this['nodeDistance'];while(v1['x']==v2['x']&&v1['y']==v2['y'])this[_0x5dbf('0x298')](v2,desiredDist/0x4);var vx=v1['x']-v2['x'];var vy=v1['y']-v2['y'];var distance=Math[_0x5dbf('0x248')](vx*vx+vy*vy);var a=this[_0x5dbf('0x295')](distance,desiredDist,v1,v2);var dx=vx/distance*a;var dy=vy/distance*a;v1['dx']-=dx;v1['dy']-=dy;v2['dx']+=dx;v2['dy']+=dy;}[_0x5dbf('0x29b')](v){var offset=Math[_0x5dbf('0x248')](v['dx']*v['dx']+v['dy']*v['dy']);if(offset==0x0)return;v['x']+=Math[_0x5dbf('0xbd')](offset,this[_0x5dbf('0x293')])*v['dx']/offset;v['y']+=Math['min'](offset,this[_0x5dbf('0x293')])*v['dy']/offset;v['x']=Math[_0x5dbf('0xbd')](this['width'],Math[_0x5dbf('0xbe')](v['width']/0x2,v['x']));v['y']=Math[_0x5dbf('0xbd')](this[_0x5dbf('0xe9')],Math[_0x5dbf('0xbe')](v[_0x5dbf('0xe9')]/0x2,v['y']));}['getType'](){return this[_0x5dbf('0x200')]['__typeName'];}get[_0x5dbf('0x1b6')](){return this['_nodeDistance'];}set[_0x5dbf('0x1b6')](value){this[_0x5dbf('0x1b9')]=value;}get['iterations'](){return this[_0x5dbf('0x29c')];}set['iterations'](value){this[_0x5dbf('0x29c')]=value;}get[_0x5dbf('0x198')](){return this[_0x5dbf('0x199')];}set[_0x5dbf('0x198')](value){this[_0x5dbf('0x199')]=value;}get['keepGroupLayout'](){return this[_0x5dbf('0x19a')];}set[_0x5dbf('0x195')](value){this['_keepGroupLayout']=value;}get[_0x5dbf('0x196')](){return this[_0x5dbf('0x19b')];}set['multipleGraphsPlacement'](value){this['_multipleGraphsPlacement']=value;}}function averageNodeSize(graph){var size=0x0;if(graph[_0x5dbf('0xbb')][_0x5dbf('0x15')]==0x0)return size;graph['vertices'][_0x5dbf('0x12')](function(v){var area=v[_0x5dbf('0xe8')]*v[_0x5dbf('0xe9')];if(area>0x0)size+=Math[_0x5dbf('0x248')](area);});return size/graph[_0x5dbf('0xbb')]['length'];}function calcAutoFrame(graph,averageNodeSize,widthHeightRatio,multiplier){var squareSize=averageNodeSize*Math[_0x5dbf('0x29d')](Math[_0x5dbf('0x248')](graph[_0x5dbf('0xbb')][_0x5dbf('0x15')]));var width=squareSize*Math[_0x5dbf('0x248')](widthHeightRatio);var height=squareSize/Math[_0x5dbf('0x248')](widthHeightRatio);return{'width':width*multiplier,'height':height*multiplier};}class TopologicalLayout extends Layout{constructor(){super();this[_0x5dbf('0x1b6')]=0x14;this[_0x5dbf('0x8c')]=LayoutDirection[_0x5dbf('0x1b7')];this['bendAdjacentLinks']=![];this['mm']=0x1;}get[_0x5dbf('0x29e')](){return!![];}[_0x5dbf('0x1ab')](graph){if(graph[_0x5dbf('0xbb')][_0x5dbf('0x15')]==0x0)return![];graph['setItemIndices']();this['graph']=graph;var orientation=Orientation[_0x5dbf('0x1a8')];if(this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1ae')]||this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b0')]){orientation=Orientation['Vertical'];}var reverseDirection=![];if(this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1af')]||this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b0')]){reverseDirection=!![];}var sort=graph[_0x5dbf('0x154')]();if(!sort){var reversed=graph[_0x5dbf('0x29f')]();sort=graph[_0x5dbf('0x154')]();}var reversedMap=new Map();if(reversed){for(let edge of reversed){reversedMap['set'](edge,!![]);edge[_0x5dbf('0x1d')]();}}var indexMap=new Map();var position=0x0;sort[_0x5dbf('0x12')](function(index){indexMap[_0x5dbf('0xa0')](graph[_0x5dbf('0xbb')][index],position++);});var maxSize=0x0;graph['vertices'][_0x5dbf('0x12')](function(vertex){if(orientation==Orientation[_0x5dbf('0x1a8')])maxSize=Math['max'](maxSize,vertex['height']);else maxSize=Math[_0x5dbf('0xbe')](maxSize,vertex[_0x5dbf('0xe8')]);});if(reverseDirection)sort['reverse']();var thisObj=this;var offset=this[_0x5dbf('0x19d')];sort[_0x5dbf('0x12')](function(index){var vertex=graph[_0x5dbf('0xbb')][index];if(orientation==Orientation[_0x5dbf('0x1a8')]){vertex['x']=offset+vertex[_0x5dbf('0xe8')]/0x2;vertex['y']=thisObj[_0x5dbf('0x19d')]+maxSize/0x2;offset+=vertex['width']+thisObj['nodeDistance'];}else{vertex['x']=thisObj[_0x5dbf('0x19d')]+maxSize/0x2;vertex['y']=offset+vertex['height']/0x2;offset+=vertex[_0x5dbf('0xe9')]+thisObj[_0x5dbf('0x1b6')];}});var sign=0x1;if(reverseDirection)sign=-0x1;var or=orientation;var straight=!reverseDirection;graph[_0x5dbf('0x0')][_0x5dbf('0x12')](function(edge){var p=[];var o=edge[_0x5dbf('0x9')];var d=edge['destination'];if(!reversedMap['has'](edge)){var originIndex=indexMap[_0x5dbf('0x51')](o);var destIndex=indexMap['get'](d);if(!thisObj[_0x5dbf('0x2a0')]&&Math[_0x5dbf('0x20b')](originIndex-destIndex)==0x1){p[0x0]=PointFromBL(straight?Tools[_0x5dbf('0x1d3')](o,or):Tools[_0x5dbf('0x1ea')](o,or),Tools['GetBCenter'](o,or),or);p[0x3]=PointFromBL(straight?Tools[_0x5dbf('0x1ea')](d,or):Tools['GetLFar'](d,or),Tools[_0x5dbf('0x228')](d,or),or);var h=Math[_0x5dbf('0x20b')](Tools[_0x5dbf('0x1d7')](p[0x3],or)-Tools[_0x5dbf('0x1d7')](p[0x0],or));p[0x1]=PointFromBL(Tools[_0x5dbf('0x1d7')](p[0x0],or)+sign*h/0x4,Tools[_0x5dbf('0x1d6')](p[0x0],or),or);p[0x2]=PointFromBL(Tools[_0x5dbf('0x1d7')](p[0x3],or)-sign*h/0x4,Tools[_0x5dbf('0x1d6')](p[0x3],or),or);}else{p[0x0]=PointFromBL(Tools[_0x5dbf('0x1ce')](o,or),Tools[_0x5dbf('0x1cf')](o,or),or);p[0x3]=PointFromBL(Tools[_0x5dbf('0x1ce')](d,or),Tools[_0x5dbf('0x1cf')](d,or),or);var h=Math[_0x5dbf('0x20b')](Tools[_0x5dbf('0x1d7')](p[0x3],or)-Tools[_0x5dbf('0x1d7')](p[0x0],or));p[0x1]=PointFromBL(Tools[_0x5dbf('0x1d7')](p[0x0],or)+sign*h/0x4,Tools['GetB'](p[0x0],or)-h/0x3,or);p[0x2]=PointFromBL(Tools[_0x5dbf('0x1d7')](p[0x3],or)-sign*h/0x4,Tools[_0x5dbf('0x1d6')](p[0x3],or)-h/0x3,or);}}else{p[0x0]=PointFromBL(Tools[_0x5dbf('0x1ce')](o,or),Tools[_0x5dbf('0x1d1')](o,or),or);p[0x3]=PointFromBL(Tools[_0x5dbf('0x1ce')](d,or),Tools[_0x5dbf('0x1d1')](d,or),or);var h=Math[_0x5dbf('0x20b')](Tools['GetL'](p[0x3],or)-Tools[_0x5dbf('0x1d7')](p[0x0],or));p[0x1]=PointFromBL(Tools[_0x5dbf('0x1d7')](p[0x0],or)-sign*h/0x4,Tools[_0x5dbf('0x1d6')](p[0x0],or)+h/0x3,or);p[0x2]=PointFromBL(Tools[_0x5dbf('0x1d7')](p[0x3],or)+sign*h/0x4,Tools[_0x5dbf('0x1d6')](p[0x3],or)+h/0x3,or);}edge[_0x5dbf('0xd2')]=p;});}[_0x5dbf('0x1ff')](){return this['constructor'][_0x5dbf('0x201')];}get[_0x5dbf('0x1b6')](){return this[_0x5dbf('0x1b9')];}set[_0x5dbf('0x1b6')](value){this[_0x5dbf('0x1b9')]=value;}get['direction'](){return this[_0x5dbf('0x1bb')];}set[_0x5dbf('0x8c')](value){this[_0x5dbf('0x1bb')]=value;}get[_0x5dbf('0x2a0')](){return this['_bendAdjacentLinks'];}set['bendAdjacentLinks'](value){this[_0x5dbf('0x2a1')]=value;}}function PointFromBL(l,b,or){if(or==Orientation[_0x5dbf('0x1a8')])return new Point(l,b);else return new Point(b,l);}class TreeLayout extends Layout{constructor(){super();this['levelDistance']=0xa;this[_0x5dbf('0x1b6')]=0xa;this['keepRootPosition']=![];this['direction']=LayoutDirection['TopToBottom'];this[_0x5dbf('0x1a6')]=TreeLayoutLinkType[_0x5dbf('0x1a7')];this[_0x5dbf('0x2a2')]=![];this[_0x5dbf('0x2a3')]=![];this[_0x5dbf('0x196')]=MultipleGraphsPlacement[_0x5dbf('0x1a8')];this[_0x5dbf('0xcd')]=![];}get[_0x5dbf('0x1a0')](){return![];}get['requiresCascadingLinks'](){return this[_0x5dbf('0x1a6')]==TreeLayoutLinkType[_0x5dbf('0x1aa')];}get[_0x5dbf('0x1a3')](){return this[_0x5dbf('0x1a5')];}['arrange'](graph){var root;var th=new TreeHelper(this[_0x5dbf('0xcd')]);this[_0x5dbf('0x2a4')]=th;graph[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(v){let parentEdges=th[_0x5dbf('0xd0')](v);if(parentEdges['length']==0x0){root=v;return $break;}});if(!root)return $skipLayout;var tree=graph[_0x5dbf('0xd6')](root,this[_0x5dbf('0xcd')],this[_0x5dbf('0x2a2')],this['compactAssistants']);if(!tree)return $skipLayout;tree[_0x5dbf('0xbb')][_0x5dbf('0x12')](function(v){v[_0x5dbf('0x2a5')]=v[_0x5dbf('0x6')]['layoutTraits'][_0x5dbf('0xdc')];});var rootX=root['x']+root['width']/0x2;var rootY=root['y']+root[_0x5dbf('0xe9')]/0x2;walk(tree,root,function(node,params){node['x']=node['width']/0x2;node['y']=node[_0x5dbf('0xe9')]/0x2;},null);var levelSizes=[];for(var i=0x0;i<tree[_0x5dbf('0xe1')][_0x5dbf('0x15')];i++){var treeLevel=tree[_0x5dbf('0xe1')][i];var sz=0x0;for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){if(this[_0x5dbf('0x1b5')]())sz=Math['max'](sz,treeLevel[j][_0x5dbf('0xe8')]);else sz=Math['max'](sz,treeLevel[j]['height']);}levelSizes[_0x5dbf('0x13')](sz);}var lastLevel=tree['treeLevels'][tree[_0x5dbf('0xe1')][_0x5dbf('0x15')]-0x1];var s=0x0;for(var i=0x0;i<lastLevel['length'];i++){var node=lastLevel[i];if(this['isHorizontal']()){node['y']=s+node[_0x5dbf('0xe9')]/0x2;s+=node[_0x5dbf('0xe9')]+this[_0x5dbf('0x1b6')];}else{node['x']=s+node[_0x5dbf('0xe8')]/0x2;s+=node[_0x5dbf('0xe8')]+this[_0x5dbf('0x1b6')];}}var previousLefts=new Map();var previousRights=new Map();for(var i=tree[_0x5dbf('0xe1')][_0x5dbf('0x15')]-0x1;i>=0x0;i--){var treeLevel=tree['treeLevels'][i];for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){var node=treeLevel[j];var children=tree[_0x5dbf('0xe3')](node);if(children[_0x5dbf('0x15')]>0x0){if(this['hasAssistants'](node,th)&&this['enableAssistants']){var firstLeftAssistant=undefined;var firstRightAssistant=undefined;children[_0x5dbf('0x12')](function(child){if(child[_0x5dbf('0xde')]===AssistantPosition[_0x5dbf('0xdd')])firstLeftAssistant=child;else if(child[_0x5dbf('0xde')]===AssistantPosition['Right'])firstRightAssistant=child;});if(firstLeftAssistant&&firstRightAssistant){var leftBounds=this[_0x5dbf('0x2a6')](firstLeftAssistant);var rightBounds=this['branchBounds'](firstRightAssistant);if(this[_0x5dbf('0x1b5')]())node['y']+=leftBounds[_0x5dbf('0x1b4')]()+(rightBounds[_0x5dbf('0x1b3')]()-leftBounds['bottom']())/0x2-node[_0x5dbf('0xe9')]/0x2;else node['x']+=leftBounds[_0x5dbf('0x64')]()+(rightBounds[_0x5dbf('0x63')]()-leftBounds[_0x5dbf('0x64')]())/0x2-node['width']/0x2;}else{if(firstLeftAssistant){var assistantBounds=this[_0x5dbf('0x2a6')](firstLeftAssistant);if(this[_0x5dbf('0x1b5')]())node['y']=assistantBounds['bottom']()+this[_0x5dbf('0x1b6')]/0x2;else node['x']=assistantBounds['right']()+this[_0x5dbf('0x1b6')]/0x2;}else{var assistantBounds=this['branchBounds'](firstRightAssistant);if(this['isHorizontal']())node['y']=assistantBounds['top']()-this[_0x5dbf('0x1b6')]/0x2;else node['x']=assistantBounds[_0x5dbf('0x63')]()-this[_0x5dbf('0x1b6')]/0x2;}}}else{var rcTotal=Rect[_0x5dbf('0x1b2')](children[0x0]);for(var c=0x1;c<children[_0x5dbf('0x15')];c++)rcTotal=rcTotal[_0x5dbf('0x1bf')](Rect[_0x5dbf('0x1b2')](children[c]));if(this['isHorizontal']())node['y']+=(rcTotal[_0x5dbf('0x1b3')]()+rcTotal[_0x5dbf('0x1b4')]())/0x2-node[_0x5dbf('0xe9')]/0x2;else node['x']+=(rcTotal[_0x5dbf('0x63')]()+rcTotal[_0x5dbf('0x64')]())/0x2-node[_0x5dbf('0xe8')]/0x2;}}if(node[_0x5dbf('0x2a5')]&&this[_0x5dbf('0x2a2')]){var subordinates=[];if(node[_0x5dbf('0x28')]){var childEdges=th[_0x5dbf('0xda')](node['parent']);for(var c=0x0;c<childEdges[_0x5dbf('0x15')];c++){var child=th[_0x5dbf('0xcf')](childEdges[c]);if(child[_0x5dbf('0x2a5')])continue;subordinates[_0x5dbf('0x13')](child);}}if(subordinates[_0x5dbf('0x15')]>0x0){var rcTotal=Rect[_0x5dbf('0x1b2')](subordinates[0x0]);for(var c=0x1;c<subordinates[_0x5dbf('0x15')];c++)rcTotal=rcTotal['union'](Rect[_0x5dbf('0x1b2')](subordinates[c]));var rc=this['branchBounds'](node);if(this[_0x5dbf('0x1b5')]()){var offset=0x0;if(node[_0x5dbf('0xde')]===AssistantPosition['Left']){offset=rcTotal['y']+rcTotal[_0x5dbf('0xe9')]/0x2-rc[_0x5dbf('0x1b4')]()-this[_0x5dbf('0x1b6')]/0x2;}else{offset=rcTotal['y']+rcTotal[_0x5dbf('0xe9')]/0x2-rc['top']()+this[_0x5dbf('0x1b6')]/0x2;}this[_0x5dbf('0x2a7')](tree,node,0x0,offset);}else{var offset=0x0;if(node[_0x5dbf('0xde')]===AssistantPosition[_0x5dbf('0xdd')]){offset=rcTotal['x']+rcTotal['width']/0x2-rc[_0x5dbf('0x64')]()-this[_0x5dbf('0x1b6')]/0x2;}else{offset=rcTotal['x']+rcTotal[_0x5dbf('0xe8')]/0x2-rc[_0x5dbf('0x63')]()+this[_0x5dbf('0x1b6')]/0x2;}this[_0x5dbf('0x2a7')](tree,node,offset,0x0);}}else{if(node[_0x5dbf('0x28')]){var previousLeft=undefined;if(previousLefts['has'](node[_0x5dbf('0x28')]))previousLeft=previousLefts[_0x5dbf('0x51')](node['parent']);var previousRight=undefined;if(previousRights['has'](node[_0x5dbf('0x28')]))previousRight=previousRights[_0x5dbf('0x51')](node[_0x5dbf('0x28')]);if(previousLeft||previousRight){var nodeBounds=this[_0x5dbf('0x2a6')](node);if(node[_0x5dbf('0xde')]===AssistantPosition[_0x5dbf('0xd9')]){if(previousRight){var previousBounds=this[_0x5dbf('0x2a6')](previousRight);if(this['isHorizontal']()){var offset=previousBounds['top']()-nodeBounds[_0x5dbf('0x1b3')]();this['offsetBranch'](tree,node,0x0,offset);}else{var offset=previousBounds['left']()-nodeBounds[_0x5dbf('0x63')]();this[_0x5dbf('0x2a7')](tree,node,offset,0x0);}}else if(previousLeft){var previousBounds=this[_0x5dbf('0x2a6')](previousLeft);if(this[_0x5dbf('0x1b5')]()){var offset=previousBounds[_0x5dbf('0x1b4')]()+this[_0x5dbf('0x1b6')]-nodeBounds[_0x5dbf('0x1b3')]();this[_0x5dbf('0x2a7')](tree,node,0x0,offset);}else{var offset=previousBounds[_0x5dbf('0x64')]()+this[_0x5dbf('0x1b6')]-nodeBounds['left']();this[_0x5dbf('0x2a7')](tree,node,offset,0x0);}}}else{if(previousLeft){var previousBounds=this[_0x5dbf('0x2a6')](previousLeft);if(this['isHorizontal']()){var offset=previousBounds[_0x5dbf('0x1b4')]()-nodeBounds['bottom']();this[_0x5dbf('0x2a7')](tree,node,0x0,offset);}else{var offset=previousBounds[_0x5dbf('0x64')]()-nodeBounds[_0x5dbf('0x64')]();this[_0x5dbf('0x2a7')](tree,node,offset,0x0);}}else if(previousRight){var previousBounds=this[_0x5dbf('0x2a6')](previousRight);if(this['isHorizontal']()){var offset=previousBounds['top']()-this[_0x5dbf('0x1b6')]-nodeBounds[_0x5dbf('0x1b4')]();this[_0x5dbf('0x2a7')](tree,node,0x0,offset);}else{var offset=previousBounds[_0x5dbf('0x63')]()-this[_0x5dbf('0x1b6')]-nodeBounds[_0x5dbf('0x64')]();this['offsetBranch'](tree,node,offset,0x0);}}}}}}}if(node[_0x5dbf('0x2a5')]&&this[_0x5dbf('0x2a2')]){if(node[_0x5dbf('0xde')]===AssistantPosition[_0x5dbf('0xdd')])previousLefts[_0x5dbf('0xa0')](node[_0x5dbf('0x28')],node);else if(node['assistantPosition']===AssistantPosition[_0x5dbf('0xd9')])previousRights[_0x5dbf('0xa0')](node[_0x5dbf('0x28')],node);}}for(var j=0x0;j<treeLevel[_0x5dbf('0x15')]-0x1;j++){for(var k=j;k>=0x0;k--){if(treeLevel[k]['assistantType']||treeLevel[j+0x1]['assistantType'])continue;var dist=this['branchDistance'](tree,treeLevel[k],treeLevel[j+0x1]);var checkDistance=k!=j;if(checkDistance?dist<this[_0x5dbf('0x1b6')]:!![]){if(this[_0x5dbf('0x1b5')]())this[_0x5dbf('0x2a7')](tree,treeLevel[j+0x1],0x0,this[_0x5dbf('0x1b6')]-dist);else this['offsetBranch'](tree,treeLevel[j+0x1],this['nodeDistance']-dist,0x0);}}}}var iStart;var iEnd;var iGrow;if(this['isStraight']()){iStart=0x0;iEnd=tree[_0x5dbf('0xe1')][_0x5dbf('0x15')];iGrow=+0x1;}else{iStart=tree[_0x5dbf('0xe1')][_0x5dbf('0x15')]-0x1;iEnd=-0x1;iGrow=-0x1;}var currentPos=0x0;for(var i=iStart;this[_0x5dbf('0x1ac')]()?i<iEnd:i>iEnd;i+=iGrow){var maxSize=0x0;var treeLevel=tree[_0x5dbf('0xe1')][i];for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){var node=treeLevel[j];var size=0x0;if(this[_0x5dbf('0x1b5')]()){size=node[_0x5dbf('0xe8')];var xoff=0x0;if(this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1af')])xoff=levelSizes[i]-size;node['x']=currentPos+xoff+this['margins']+node[_0x5dbf('0xe8')]/0x2;node['y']=node['y']+this[_0x5dbf('0x19d')];}else{size=node[_0x5dbf('0xe9')];var yoff=0x0;if(this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b0')])yoff=levelSizes[i]-size;node['x']=node['x']+this[_0x5dbf('0x19d')];node['y']=currentPos+yoff+this[_0x5dbf('0x19d')]+node[_0x5dbf('0xe9')]/0x2;}maxSize=Math[_0x5dbf('0xbe')](maxSize,size);}currentPos+=maxSize+this[_0x5dbf('0x1a4')];}if(this[_0x5dbf('0x1a5')]){var newRootX=root['x'];var newRootY=root['y'];var xoff=rootX-newRootX;var yoff=rootY-newRootY;this[_0x5dbf('0x2a7')](tree,root,xoff,yoff);}if(this['linkType']!=TreeLayoutLinkType['Default']){switch(this[_0x5dbf('0x1a6')]){case TreeLayoutLinkType[_0x5dbf('0x1ad')]:{switch(this[_0x5dbf('0x8c')]){case LayoutDirection[_0x5dbf('0x1ae')]:{tree[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th['childNode'](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x5dbf('0xe9')]/0x2},{'x':child['x'],'y':child['y']-child['height']/0x2}]);});break;}case LayoutDirection[_0x5dbf('0x1b0')]:{tree['edges'][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);th['assignPoints'](e,[{'x':parent['x'],'y':parent['y']-parent[_0x5dbf('0xe9')]/0x2},{'x':child['x'],'y':child['y']+child[_0x5dbf('0xe9')]/0x2}]);});break;}case LayoutDirection[_0x5dbf('0x1b7')]:{tree[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th['childNode'](e);th['assignPoints'](e,[{'x':parent['x']+parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x']-child['width']/0x2,'y':child['y']}]);});break;}case LayoutDirection[_0x5dbf('0x1af')]:{tree[_0x5dbf('0x0')]['forEach'](function(e){var parent=th['parentNode'](e);var child=th[_0x5dbf('0xcf')](e);th[_0x5dbf('0xd1')](e,[{'x':parent['x']-parent['width']/0x2,'y':parent['y']},{'x':child['x']+child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);});break;}}break;}case TreeLayoutLinkType[_0x5dbf('0x1aa')]:{var enableAssistants=this[_0x5dbf('0x2a2')];var halfDistance=this[_0x5dbf('0x1a4')]/0x2;switch(this[_0x5dbf('0x8c')]){case LayoutDirection[_0x5dbf('0x1ae')]:{tree[_0x5dbf('0x0')]['forEach'](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);if(enableAssistants&&child['assistantType']){th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x5dbf('0xe9')]/0x2},{'x':parent['x'],'y':child['y']},child[_0x5dbf('0xde')]===AssistantPosition['Left']?{'x':child['x']+child[_0x5dbf('0xe8')]/0x2,'y':child['y']}:{'x':child['x']-child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);}else{th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']+parent[_0x5dbf('0xe9')]/0x2},{'x':parent['x'],'y':child['y']-child[_0x5dbf('0xe9')]/0x2-halfDistance},{'x':child['x'],'y':child['y']-child[_0x5dbf('0xe9')]/0x2-halfDistance},{'x':child['x'],'y':child['y']-child[_0x5dbf('0xe9')]/0x2}]);}});break;}case LayoutDirection[_0x5dbf('0x1b0')]:{tree['edges']['forEach'](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);if(enableAssistants&&child[_0x5dbf('0x2a5')]){th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']-parent[_0x5dbf('0xe9')]/0x2},{'x':parent['x'],'y':child['y']},child[_0x5dbf('0xde')]===AssistantPosition['Left']?{'x':child['x']+child[_0x5dbf('0xe8')]/0x2,'y':child['y']}:{'x':child['x']-child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);}else{th[_0x5dbf('0xd1')](e,[{'x':parent['x'],'y':parent['y']-parent[_0x5dbf('0xe9')]/0x2},{'x':parent['x'],'y':child['y']+child[_0x5dbf('0xe9')]/0x2+halfDistance},{'x':child['x'],'y':child['y']+child[_0x5dbf('0xe9')]/0x2+halfDistance},{'x':child['x'],'y':child['y']+child['height']/0x2}]);}});break;}case LayoutDirection['LeftToRight']:{tree[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th[_0x5dbf('0xce')](e);var child=th[_0x5dbf('0xcf')](e);if(enableAssistants&&child[_0x5dbf('0x2a5')]){th['assignPoints'](e,[{'x':parent['x']+parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},child[_0x5dbf('0xde')]===AssistantPosition[_0x5dbf('0xdd')]?{'x':child['x'],'y':child['y']+child[_0x5dbf('0xe9')]/0x2}:{'x':child['x'],'y':child['y']-child[_0x5dbf('0xe9')]/0x2}]);}else{th[_0x5dbf('0xd1')](e,[{'x':parent['x']+parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x']-child['width']/0x2-halfDistance,'y':parent['y']},{'x':child['x']-child['width']/0x2-halfDistance,'y':child['y']},{'x':child['x']-child[_0x5dbf('0xe8')]/0x2,'y':child['y']}]);}});break;}case LayoutDirection[_0x5dbf('0x1af')]:{tree[_0x5dbf('0x0')][_0x5dbf('0x12')](function(e){var parent=th['parentNode'](e);var child=th[_0x5dbf('0xcf')](e);if(enableAssistants&&child[_0x5dbf('0x2a5')]){th[_0x5dbf('0xd1')](e,[{'x':parent['x']-parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x'],'y':parent['y']},child['assistantPosition']===AssistantPosition['Left']?{'x':child['x'],'y':child['y']+child[_0x5dbf('0xe9')]/0x2}:{'x':child['x'],'y':child['y']-child[_0x5dbf('0xe9')]/0x2}]);}else{th['assignPoints'](e,[{'x':parent['x']-parent[_0x5dbf('0xe8')]/0x2,'y':parent['y']},{'x':child['x']+child['width']/0x2+halfDistance,'y':parent['y']},{'x':child['x']+child[_0x5dbf('0xe8')]/0x2+halfDistance,'y':child['y']},{'x':child['x']+child['width']/0x2,'y':child['y']}]);}});break;}}}}}}[_0x5dbf('0x2a8')](node,treeHelper){var childEdges=treeHelper['childEdges'](node);for(var i=0x0;i<childEdges[_0x5dbf('0x15')];i++){if(treeHelper['childNode'](childEdges[i])[_0x5dbf('0x2a5')])return!![];}return![];}[_0x5dbf('0x2a6')](root){var th=this[_0x5dbf('0x2a4')];var temp=[];temp[_0x5dbf('0x13')](root);var visited=[];var result;while(temp[_0x5dbf('0x15')]>0x0){var node=temp[0x0];temp[_0x5dbf('0x94')](0x0,0x1);visited[_0x5dbf('0x13')](node);if(!result)result=Rect[_0x5dbf('0x1b2')](node);else result=result[_0x5dbf('0x1bf')](Rect[_0x5dbf('0x1b2')](node));var childEdges=th['childEdges'](node);for(var i=0x0;i<childEdges['length'];i++){var child=th[_0x5dbf('0xcf')](childEdges[i]);if(!visited[_0x5dbf('0xc')](child))temp[_0x5dbf('0x13')](child);}}return result;}[_0x5dbf('0x2a9')](tree,node1,node2){var dist=this['left'](node2)-this[_0x5dbf('0x64')](node1);var levels1=new Map();var levels2=new Map();enumerateLevels(tree,node1,levels1);enumerateLevels(tree,node2,levels2);var keys=[...levels1['keys']()];for(var i=0x0;i<keys[_0x5dbf('0x15')];i++){var levelIndex=keys[i];if(!levels2[_0x5dbf('0xa4')](levelIndex))continue;var level1=levels1[_0x5dbf('0x51')](levelIndex);var level2=levels2[_0x5dbf('0x51')](levelIndex);var r=0x0;for(var j=0x0;j<level1[_0x5dbf('0x15')];j++)r=Math[_0x5dbf('0xbe')](r,this[_0x5dbf('0x64')](level1[j]));var l=Number[_0x5dbf('0xf5')];for(var j=0x0;j<level2[_0x5dbf('0x15')];j++)l=Math[_0x5dbf('0xbd')](l,this['left'](level2[j]));if(l-r<dist&&(level1[_0x5dbf('0x15')]>0x0&&level2[_0x5dbf('0x15')]>0x0))dist=l-r;}return dist;}[_0x5dbf('0x64')](vertex){if(this[_0x5dbf('0x1b5')]())return vertex['y']+vertex[_0x5dbf('0xe9')]/0x2;else return vertex['x']+vertex[_0x5dbf('0xe8')]/0x2;}['left'](vertex){if(this[_0x5dbf('0x1b5')]())return vertex['y']-vertex['height']/0x2;else return vertex['x']-vertex[_0x5dbf('0xe8')]/0x2;}[_0x5dbf('0x2a7')](tree,nodeFrom,xoff,yoff){if(!xoff&&!yoff)return;var offsetFunc=function(node,params){node['x']+=params[0x0];node['y']+=params[0x1];};walk(tree,nodeFrom,offsetFunc,[xoff,yoff]);}[_0x5dbf('0x1b5')](){return this[_0x5dbf('0x8c')]==LayoutDirection['LeftToRight']||this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1af')];}[_0x5dbf('0x1ac')](){return this[_0x5dbf('0x8c')]==LayoutDirection[_0x5dbf('0x1b7')]||this['direction']==LayoutDirection['TopToBottom'];}['intDiv'](numerator,denominator){return(numerator-numerator%denominator)/denominator;}[_0x5dbf('0x1ff')](){return this[_0x5dbf('0x200')][_0x5dbf('0x201')];}get[_0x5dbf('0x1a4')](){return this[_0x5dbf('0x1b8')];}set[_0x5dbf('0x1a4')](value){this['_levelDistance']=value;}get[_0x5dbf('0x1b6')](){return this[_0x5dbf('0x1b9')];}set['nodeDistance'](value){this[_0x5dbf('0x1b9')]=value;}get[_0x5dbf('0x1a5')](){return this['_keepRootPosition'];}set['keepRootPosition'](value){this['_keepRootPosition']=value;}get['direction'](){return this[_0x5dbf('0x1bb')];}set[_0x5dbf('0x8c')](value){this[_0x5dbf('0x1bb')]=value;}get['linkType'](){return this[_0x5dbf('0x1bc')];}set['linkType'](value){this['_linkType']=value;}get[_0x5dbf('0x198')](){return this[_0x5dbf('0x199')];}set[_0x5dbf('0x198')](value){this[_0x5dbf('0x199')]=value;}get[_0x5dbf('0x195')](){return this[_0x5dbf('0x19a')];}set['keepGroupLayout'](value){this['_keepGroupLayout']=value;}get[_0x5dbf('0x2a2')](){return this[_0x5dbf('0x2aa')];}set[_0x5dbf('0x2a2')](value){this['_enableAssistants']=value;}get[_0x5dbf('0x2a3')](){return this[_0x5dbf('0x2ab')];}set[_0x5dbf('0x2a3')](value){this[_0x5dbf('0x2ab')]=value;}get['multipleGraphsPlacement'](){return this[_0x5dbf('0x19b')];}set[_0x5dbf('0x196')](value){this[_0x5dbf('0x19b')]=value;}get[_0x5dbf('0xcd')](){return this[_0x5dbf('0x1bd')];}set[_0x5dbf('0xcd')](value){this[_0x5dbf('0x1bd')]=value;}}function enumerateLevels(tree,node,levels){var levelIndex=node[_0x5dbf('0xd8')];var level=null;if(levels[_0x5dbf('0xa4')](levelIndex)){level=levels[_0x5dbf('0x51')](levelIndex);}else{level=[];levels['set'](levelIndex,level);}level['push'](node);tree[_0x5dbf('0xe3')](node)['forEach'](function(child){enumerateLevels(tree,child,levels);});}function walk(tree,node,func,params){func[_0x5dbf('0x1cb')](this,node,params);var children=tree['childrenOf'](node);children['forEach'](function(child){walk(tree,child,func,params);});}class TreeMapLayout extends Layout{constructor(){super();this[_0x5dbf('0x1de')]=Orientation['Vertical'];this[_0x5dbf('0x2ac')]=!![];this[_0x5dbf('0x2ad')]=0x1;this['layoutArea']=null;this[_0x5dbf('0x2ae')]=0x0;this[_0x5dbf('0x2af')]=0x1;}get['setsLinkEndPoints'](){return![];}get[_0x5dbf('0x19e')](){return![];}get[_0x5dbf('0x19f')](){return![];}get['requiresSimpleGraph'](){return![];}get[_0x5dbf('0x1a2')](){return!![];}[_0x5dbf('0x1ab')](graph){if(this[_0x5dbf('0x2b0')]==null)this[_0x5dbf('0x2b0')]=graph[_0x5dbf('0x2b0')];var roots=[];this[_0x5dbf('0x2b1')]=new Map();var totalWeight=0x0;graph['vertices'][_0x5dbf('0x12')](function(vertex){if(vertex[_0x5dbf('0x2b2')]==null){totalWeight+=this[_0x5dbf('0x2b3')](vertex);roots['push'](vertex);}},this);if(this[_0x5dbf('0x2ac')])this[_0x5dbf('0x2b4')](roots,this[_0x5dbf('0x2b0')],[],totalWeight);else this[_0x5dbf('0x2b5')](roots,this[_0x5dbf('0x2b0')],this['orientation']==Orientation[_0x5dbf('0x1a8')],totalWeight);}[_0x5dbf('0x2b4')](nodes,layoutArea,row,parentWeight){var children=nodes['slice']();var weights=this[_0x5dbf('0x2b1')];children[_0x5dbf('0x124')](function(n1,n2){return weights[_0x5dbf('0x51')](n2)-weights[_0x5dbf('0x51')](n1);});this[_0x5dbf('0x2b6')](children,layoutArea,row,parentWeight);}[_0x5dbf('0x2b6')](children,layoutArea,row,parentWeight){var horizontal=layoutArea['width']>layoutArea['height'];var sideLen=Math[_0x5dbf('0xbd')](layoutArea[_0x5dbf('0xe8')],layoutArea['height']);var ratio1=0x0,ratio2=0x0;var row2=row[_0x5dbf('0x95')]();if(children[_0x5dbf('0x15')]>0x0){var node=children[0x0];row2['push'](node);var area=layoutArea[_0x5dbf('0xe8')]*layoutArea[_0x5dbf('0xe9')];ratio1=this['evalRatio'](row,sideLen,area*this[_0x5dbf('0x3')](row)/parentWeight);ratio2=this[_0x5dbf('0x2b7')](row2,sideLen,area*this['weight'](row2)/parentWeight);}if(children[_0x5dbf('0x15')]>0x0&&(ratio1==0x0||ratio1>=ratio2)){children[_0x5dbf('0x25e')]();this[_0x5dbf('0x2b6')](children,layoutArea,row2,parentWeight);}else{var len=this[_0x5dbf('0x2b8')](layoutArea,row,!horizontal,parentWeight);parentWeight-=this['weight'](row);if(horizontal){layoutArea['x']+=len;layoutArea[_0x5dbf('0xe8')]-=len;}else{layoutArea['y']+=len;layoutArea['height']-=len;}if(children['length']>0x0)this[_0x5dbf('0x2b6')](children,layoutArea,[],parentWeight);}}[_0x5dbf('0x3')](row){var total=0x0;row['forEach'](function(node){total+=this[_0x5dbf('0x2b1')][_0x5dbf('0x51')](node);},this);return total;}[_0x5dbf('0x2b9')](rect){var hp=-this['padding']/0x2;rect=rect['inflate'](hp);var mm=this[_0x5dbf('0x2af')];if(rect[_0x5dbf('0xe8')]<mm)rect[_0x5dbf('0xe8')]=mm;if(rect[_0x5dbf('0xe9')]<mm)rect[_0x5dbf('0xe9')]=mm;}['layoutRow'](layoutArea,row,horizontal,parentWeight){var parentArea=layoutArea[_0x5dbf('0xe8')]*layoutArea['height'];var sideLen=horizontal?layoutArea[_0x5dbf('0xe8')]:layoutArea[_0x5dbf('0xe9')];var total=0x0;row[_0x5dbf('0x12')](function(node){total+=this[_0x5dbf('0x2b1')][_0x5dbf('0x51')](node);},this);var rowArea=parentArea*total/parentWeight;var len=rowArea/sideLen;var pos=horizontal?layoutArea['x']:layoutArea['y'];row[_0x5dbf('0x12')](function(node){var weight=this[_0x5dbf('0x2b1')][_0x5dbf('0x51')](node);var bounds=horizontal?new Rect(pos,layoutArea['y'],rowArea*weight/total/len,len):new Rect(layoutArea['x'],pos,len,rowArea*weight/total/len);this['subtractPadding'](bounds);setBounds(node,bounds);pos+=rowArea*weight/total/len;if(node[_0x5dbf('0x2ba')]!=null){var children=node[_0x5dbf('0x2ba')]['slice']();var childArea=this[_0x5dbf('0x2bb')](node);this[_0x5dbf('0x2b9')](childArea);this[_0x5dbf('0x2b4')](children,childArea,[],weight);}},this);return len;}['arrangeSiblings'](nodes,layoutArea,horizontal,totalWeight){var pos=horizontal?layoutArea['x']:layoutArea['y'];var length=horizontal?layoutArea[_0x5dbf('0xe8')]:layoutArea[_0x5dbf('0xe9')];nodes[_0x5dbf('0x12')](function(node){var nodeSize=length*this[_0x5dbf('0x2b1')]['get'](node)/totalWeight;var bounds=horizontal?new Rect(pos,layoutArea['y'],nodeSize,layoutArea[_0x5dbf('0xe9')]):new Rect(layoutArea['x'],pos,layoutArea[_0x5dbf('0xe8')],nodeSize);this[_0x5dbf('0x2b9')](bounds);setBounds(node,bounds);if(node[_0x5dbf('0x2ba')]!=null){var children=node[_0x5dbf('0x2ba')][_0x5dbf('0x95')]();var childArea=this[_0x5dbf('0x2bb')](node);this[_0x5dbf('0x2b9')](childArea);this[_0x5dbf('0x2b5')](children,childArea,!horizontal,this[_0x5dbf('0x2b1')][_0x5dbf('0x51')](node));}pos+=nodeSize;},this);}[_0x5dbf('0x2b7')](row,sideLen,rowArea){var worst=0x0;var total=0x0;row[_0x5dbf('0x12')](function(node){var weight=this[_0x5dbf('0x2b1')]['get'](node);total+=weight;},this);row[_0x5dbf('0x12')](function(node){var weight=this[_0x5dbf('0x2b1')][_0x5dbf('0x51')](node);var area=rowArea*weight/total;worst=Math[_0x5dbf('0xbe')](worst,Math[_0x5dbf('0xbe')](sideLen*sideLen*area/(rowArea*rowArea),rowArea*rowArea/(sideLen*sideLen*area)));},this);return worst;}[_0x5dbf('0x2b3')](root){if(this[_0x5dbf('0x2b1')][_0x5dbf('0xa4')](root))return this[_0x5dbf('0x2b1')][_0x5dbf('0x51')](root);if(root[_0x5dbf('0x2ba')]==null){this[_0x5dbf('0x2b1')]['set'](root,root['weight']);return root['weight'];}var weight=0x0;root[_0x5dbf('0x2ba')]['forEach'](function(child){weight+=this[_0x5dbf('0x2b3')](child);},this);this[_0x5dbf('0x2b1')][_0x5dbf('0xa0')](root,weight);return weight;}['layOutArea'](node){var la=Rect[_0x5dbf('0x1b2')](node);if(node[_0x5dbf('0x2bc')]){var headerSize=node['headerSize'];if(headerSize<la[_0x5dbf('0xe9')]){la['y']+=headerSize;la[_0x5dbf('0xe9')]-=headerSize;}else{la['y']+=la[_0x5dbf('0xe9')]/0x2;la[_0x5dbf('0xe9')]/=0x2;}}if(node[_0x5dbf('0x2ba')]!=null)return la[_0x5dbf('0x2bd')](-this[_0x5dbf('0x2ae')]);return la;}[_0x5dbf('0x1ff')](){return this[_0x5dbf('0x200')][_0x5dbf('0x201')];}get[_0x5dbf('0x1de')](){return this[_0x5dbf('0x20e')];}set[_0x5dbf('0x1de')](value){this[_0x5dbf('0x20e')]=value;}get['squarify'](){return this[_0x5dbf('0x2be')];}set[_0x5dbf('0x2ac')](value){this[_0x5dbf('0x2be')]=value;}get[_0x5dbf('0x2ad')](){return this[_0x5dbf('0x2bf')];}set['padding'](value){this[_0x5dbf('0x2bf')]=value;}get[_0x5dbf('0x2b0')](){return this['_layoutArea'];}set['layoutArea'](value){this[_0x5dbf('0x2c0')]=value;}get['containerPadding'](){return this[_0x5dbf('0x2c1')];}set[_0x5dbf('0x2ae')](value){this[_0x5dbf('0x2c1')]=value;}}function setBounds(vertex,rect){var c=rect[_0x5dbf('0x1c6')]();vertex['x']=c['x'];vertex['y']=c['y'];vertex[_0x5dbf('0xe8')]=rect[_0x5dbf('0xe8')];vertex['height']=rect[_0x5dbf('0xe9')];}class DrawingGrid{constructor(graph,vertexPoints,edgePoints){this['graph']=graph;this[_0x5dbf('0x2c2')]=vertexPoints;this['edgePoints']=edgePoints;this[_0x5dbf('0x2c3')]=new DrawingGrid[(_0x5dbf('0x2c4'))]();this[_0x5dbf('0x2c5')]=new DrawingGrid['Rectangle'](Number[_0x5dbf('0x146')],Number[_0x5dbf('0x146')],Number[_0x5dbf('0x2c6')],Number[_0x5dbf('0x2c6')]);for(let v of graph['vertices']){let p=vertexPoints[_0x5dbf('0x51')](v);this[_0x5dbf('0x2c7')](p);this[_0x5dbf('0x2c8')](p['x'],p['y'])[_0x5dbf('0x54')](v);}for(let e of graph[_0x5dbf('0x0')]){let points=edgePoints[_0x5dbf('0x51')](e);this[_0x5dbf('0x2c9')](points,e,![]);this[_0x5dbf('0x2ca')](points);let prevPoint=points[0x0];for(let i=0x1;i<points[_0x5dbf('0x15')]-0x1;++i){let point=points[i];if(point[_0x5dbf('0x2cb')](prevPoint))continue;this[_0x5dbf('0x2c8')](point['x'],point['y'])[_0x5dbf('0x54')](new DrawingGrid['Bend'](e));prevPoint=point;}}this[_0x5dbf('0x2cc')]=new Map();for(let c=this[_0x5dbf('0x2c5')][_0x5dbf('0x63')];c<=this[_0x5dbf('0x2c5')][_0x5dbf('0x64')];++c)this['columnWidths']['set'](c,0x1);this[_0x5dbf('0x2cd')]=new Map();for(let r=this['bounds']['top'];r<=this[_0x5dbf('0x2c5')]['bottom'];++r)this[_0x5dbf('0x2cd')][_0x5dbf('0xa0')](r,0x1);}['setCellDimensions'](vertexSize,padding,edgeCellSize){this[_0x5dbf('0x2ce')]=new Map();this[_0x5dbf('0x2cf')]=new Map();this[_0x5dbf('0x2d0')]=new Map();this['maxHeight']=new Map();for(let v of this['graph'][_0x5dbf('0xbb')]){let vs=vertexSize(v);let cp=this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](v);this[_0x5dbf('0x2ce')][_0x5dbf('0xa0')](cp['x'],this[_0x5dbf('0x2ce')]['has'](cp['x'])?Math[_0x5dbf('0xbd')](this[_0x5dbf('0x2ce')][_0x5dbf('0x51')](cp['x']),vs[_0x5dbf('0xe8')]):vs[_0x5dbf('0xe8')]);this[_0x5dbf('0x2cf')]['set'](cp['x'],this[_0x5dbf('0x2cf')][_0x5dbf('0xa4')](cp['x'])?Math[_0x5dbf('0xbe')](this[_0x5dbf('0x2cf')][_0x5dbf('0x51')](cp['x']),vs[_0x5dbf('0xe8')]):vs[_0x5dbf('0xe8')]);this[_0x5dbf('0x2d0')][_0x5dbf('0xa0')](cp['y'],this[_0x5dbf('0x2d0')][_0x5dbf('0xa4')](cp['y'])?Math['min'](this[_0x5dbf('0x2d0')]['get'](cp['y']),vs[_0x5dbf('0xe9')]):vs['height']);this[_0x5dbf('0x2d1')]['set'](cp['y'],this[_0x5dbf('0x2d1')]['has'](cp['y'])?Math[_0x5dbf('0xbe')](this[_0x5dbf('0x2d1')][_0x5dbf('0x51')](cp['y']),vs['height']):vs['height']);}this[_0x5dbf('0x2d2')]=new Map();this[_0x5dbf('0x2d3')]=new Map();let x=0x0;for(let c=this['bounds']['left'];c<=this[_0x5dbf('0x2c5')][_0x5dbf('0x64')];++c){let w=this[_0x5dbf('0x2cf')][_0x5dbf('0xa4')](c)?this['maxWidth']['get'](c)+padding:this['columnWidths'][_0x5dbf('0x51')](c)*edgeCellSize;x+=w;this[_0x5dbf('0x2d2')][_0x5dbf('0xa0')](c,x-w/0x2);}let y=0x0;for(let r=this[_0x5dbf('0x2c5')]['top'];r<=this[_0x5dbf('0x2c5')][_0x5dbf('0x1b4')];++r){let h=this['maxHeight'][_0x5dbf('0xa4')](r)?this[_0x5dbf('0x2d1')][_0x5dbf('0x51')](r)+padding:this[_0x5dbf('0x2cd')][_0x5dbf('0x51')](r)*edgeCellSize;y+=h;this['rowPositions']['set'](r,y-h/0x2);}}[_0x5dbf('0x2d4')](point){return new Point(this[_0x5dbf('0x2d2')]['get'](point['x']),this['rowPositions']['get'](point['y']));}['getEdgePointPosition'](point,edge,width,height){if(this[_0x5dbf('0x2d5')]==null)return this[_0x5dbf('0x2d4')](point);let result=new Point(this[_0x5dbf('0x2d2')][_0x5dbf('0x51')](point['x']),this[_0x5dbf('0x2d3')][_0x5dbf('0x51')](point['y']));let bend=null;if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](point)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](point);bend=cell[_0x5dbf('0x2d6')](edge);}if(this['minWidth'][_0x5dbf('0xa4')](point['x']))width=this['minWidth']['get'](point['x']);if(this[_0x5dbf('0x2d0')][_0x5dbf('0xa4')](point['y']))height=this[_0x5dbf('0x2d0')]['get'](point['y']);if(bend!=null){let laneWidth=width/bend[_0x5dbf('0x2d7')];result['x']=result['x']-width/0x2+(0.5+bend[_0x5dbf('0x2d8')])*laneWidth;let laneHeight=height/bend[_0x5dbf('0x2d9')];result['y']=result['y']-height/0x2+(0.5+bend[_0x5dbf('0x2da')])*laneHeight;}else{let hlane=-0x1,vlane=-0x1;let hneighbors={'val':-0x1},vneighbors={'val':-0x1};let np=new Point(point['x']-0x1,point['y']);if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](np)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](np);hlane=cell[_0x5dbf('0x2db')](edge,!![],hneighbors);}if(hlane==-0x1){np=new Point(point['x']+0x1,point['y']);if(this[_0x5dbf('0x2c3')]['has'](np)){let cell=this['cells'][_0x5dbf('0x51')](np);hlane=cell[_0x5dbf('0x2db')](edge,!![],hneighbors);}}np=new Point(point['x'],point['y']-0x1);if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](np)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](np);vlane=cell['getEdgeLane'](edge,![],vneighbors);}if(vlane==-0x1){np=new Point(point['x'],point['y']+0x1);if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](np)){let cell=this['cells'][_0x5dbf('0x51')](np);vlane=cell[_0x5dbf('0x2db')](edge,![],vneighbors);}}if(vlane!=-0x1){let laneWidth=width/vneighbors[_0x5dbf('0x2dc')];result['x']=result['x']-width/0x2+(0.5+vlane)*laneWidth;}if(hlane!=-0x1){let laneHeight=height/hneighbors[_0x5dbf('0x2dc')];result['y']=result['y']-height/0x2+(0.5+hlane)*laneHeight;}}return result;}[_0x5dbf('0x2c7')](point){this[_0x5dbf('0x2c5')][_0x5dbf('0x63')]=Math[_0x5dbf('0xbd')](this['bounds']['left'],point['x']);this[_0x5dbf('0x2c5')][_0x5dbf('0x1b3')]=Math[_0x5dbf('0xbd')](this[_0x5dbf('0x2c5')][_0x5dbf('0x1b3')],point['y']);this[_0x5dbf('0x2c5')][_0x5dbf('0x64')]=Math['max'](this[_0x5dbf('0x2c5')]['right'],point['x']);this[_0x5dbf('0x2c5')][_0x5dbf('0x1b4')]=Math['max'](this[_0x5dbf('0x2c5')][_0x5dbf('0x1b4')],point['y']);}[_0x5dbf('0x2ca')](points){for(let point of points)this['updateBounds'](point);}[_0x5dbf('0x2dd')](iterations){this[_0x5dbf('0x2de')]();for(let i=0x0;i<iterations;i++){this[_0x5dbf('0x2df')]();this['refineUTurns']();this['removeRedundantBends']();}this[_0x5dbf('0x2e0')]();this['removeUnusedColumns']();this['setApartOverlappingEdges']();}[_0x5dbf('0x2e1')](){this['removeUnusedRows']();this[_0x5dbf('0x2e2')]();}['refineCacheEdges'](){for(let e of this[_0x5dbf('0x9d')][_0x5dbf('0x0')]){let points=this['edgePoints'][_0x5dbf('0x51')](e);for(let i=0x0;i<points[_0x5dbf('0x15')]-0x1;i++){let ss=points[i];let se=points[i+0x1];let dx=se['x']-ss['x'];if(dx!=0x0)dx/=Math[_0x5dbf('0x20b')](dx);let dy=se['y']-ss['y'];if(dy!=0x0)dy/=Math[_0x5dbf('0x20b')](dy);let segment=new DrawingGrid[(_0x5dbf('0x2e3'))](e,dx,dy);for(let p=ss;!p[_0x5dbf('0x2cb')](se);p=new Point(p['x']+dx,p['y']+dy)){if(!p['equals'](ss)&&!p[_0x5dbf('0x2cb')](se))this[_0x5dbf('0x2c8')](p['x'],p['y'])['add'](segment);}}}}['refineDegreeOneVertices'](){for(let v of this[_0x5dbf('0x9d')][_0x5dbf('0xbb')]){if(v['degree']()==0x1){let vPoint=this[_0x5dbf('0x2c2')]['get'](v);let vCell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](vPoint);let e=v[_0x5dbf('0x0')][0x0];let o=e[_0x5dbf('0xf')](v);let oPoint=this['vertexPoints'][_0x5dbf('0x51')](o);let points=this[_0x5dbf('0x2e4')]['get'](e);let start=e[_0x5dbf('0x9')]==o?0x0:points[_0x5dbf('0x15')]-0x1;let end=e[_0x5dbf('0x9')]==o?points['length']-0x1:0x0;let step=e[_0x5dbf('0x9')]==o?+0x1:-0x1;let removeStart=-0x1,removeCount=-0x1,replaceIndex=-0x1;let replacePoint=new Point(0x0,0x0);for(let i=start;i!=end;i+=step){let ss=points[i];let se=points[i+step];let dx=se['x']-ss['x'];if(dx!=0x0)dx/=Math['abs'](dx);let dy=se['y']-ss['y'];if(dy!=0x0)dy/=Math['abs'](dy);for(let p=ss;!p[_0x5dbf('0x2cb')](se);p=new Point(p['x']+dx,p['y']+dy)){if(p[_0x5dbf('0x2cb')](vPoint)||p[_0x5dbf('0x2cb')](oPoint))continue;if(!this[_0x5dbf('0x2c3')]['has'](p))continue;let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);if(vCell==null){this['removeFromCell'](cell,p,e,dy==0x0);}else{if(cell['content'][_0x5dbf('0x15')]==0x1){Utils[_0x5dbf('0x8')](vCell[_0x5dbf('0x2e5')],v);if(vCell[_0x5dbf('0x2e5')][_0x5dbf('0x15')]==0x0)this[_0x5dbf('0x2c3')]['delete'](vPoint);vCell=null;cell['content'][_0x5dbf('0x15')]=0x0;cell['add'](v);this[_0x5dbf('0x2c2')][_0x5dbf('0xa0')](v,p);replaceIndex=i+step;replacePoint=p;if(step==+0x1){removeStart=i+0x2;removeCount=points[_0x5dbf('0x15')]-i-0x2;}else if(step==-0x1){removeStart=0x0;removeCount=i-0x1;}}}}}if(removeStart!=-0x1){points[replaceIndex]=replacePoint;points[_0x5dbf('0x94')](removeStart,removeCount);}}}}[_0x5dbf('0x2e0')](){for(let r=this[_0x5dbf('0x2c5')]['top'];r<=this[_0x5dbf('0x2c5')][_0x5dbf('0x1b4')];++r){let unused=!![];for(let c=this['bounds'][_0x5dbf('0x63')];c<=this[_0x5dbf('0x2c5')][_0x5dbf('0x64')];++c){let p=new Point(c,r);if(this['cells'][_0x5dbf('0xa4')](p)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);if(cell[_0x5dbf('0x2e6')]()){unused=![];break;}}}if(unused)this[_0x5dbf('0x2cd')][_0x5dbf('0xa0')](r,0x0);}}['removeUnusedColumns'](){for(let c=this[_0x5dbf('0x2c5')]['left'];c<=this[_0x5dbf('0x2c5')][_0x5dbf('0x64')];++c){let unused=!![];for(let r=this[_0x5dbf('0x2c5')][_0x5dbf('0x1b3')];r<=this[_0x5dbf('0x2c5')][_0x5dbf('0x1b4')];++r){let p=new Point(c,r);if(this[_0x5dbf('0x2c3')]['has'](p)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);if(cell[_0x5dbf('0x2e6')]()){unused=![];break;}}}if(unused)this[_0x5dbf('0x2cc')][_0x5dbf('0xa0')](c,0x0);}}[_0x5dbf('0x2e7')](cell,p,edge,horizontal){cell[_0x5dbf('0x2e8')](edge,horizontal);if(cell['content'][_0x5dbf('0x15')]==0x0)this[_0x5dbf('0x2c3')][_0x5dbf('0xa5')](p);}['refineUTurns'](){for(let e of this['graph']['edges']){let path=this['edgePoints']['get'](e);if(path[_0x5dbf('0x15')]<0x4)continue;for(let i=0x0;i<=path[_0x5dbf('0x15')]-0x4;++i){let p1=path[i];let p2=path[i+0x1];let p3=path[i+0x2];let p4=path[i+0x3];let dx1=p1['x']-p2['x'];let dx2=p2['x']-p3['x'];let dx3=p3['x']-p4['x'];let dy1=p1['y']-p2['y'];let dy3=p3['y']-p4['y'];if(dx1*dx3<0x0||dy1*dy3<0x0){let armDist1=p1[_0x5dbf('0x2e9')](p2);let armDist2=p4[_0x5dbf('0x2e9')](p3);let ss=armDist1<armDist2?p1:p4;let ls=armDist1<armDist2?p4:p1;let se=armDist1<armDist2?p2:p3;let cd=armDist1<armDist2?p3:p2;let sai=armDist1<armDist2?i+0x1:i+0x2;let lai=armDist1<armDist2?i+0x2:i+0x1;let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x5dbf('0x20b')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x5dbf('0x20b')](dy);let cx=cd['x']-se['x'];if(cx!=0x0)cx/=Math['abs'](cx);let cy=cd['y']-se['y'];if(cy!=0x0)cy/=Math[_0x5dbf('0x20b')](cy);let cl=se['manhDistance'](cd);let css=cx==0x0?new Point(ss['x'],ls['y']):new Point(ls['x'],ss['y']);if(this[_0x5dbf('0x2ea')](e,ss,![],css,!![])){this[_0x5dbf('0x2eb')](e,css,!![],cd,![]);this[_0x5dbf('0x2eb')](e,cd,!![],se,![]);this[_0x5dbf('0x2eb')](e,se,!![],ss,![]);this['removeSegmentsFromRange'](e,ss,!![],css,!![]);this[_0x5dbf('0x2c8')](css['x'],css['y'])[_0x5dbf('0x54')](new DrawingGrid['Bend'](e));path[_0x5dbf('0x94')](i+0x1,0x2);if(sai<lai)path[i]=css;else path[i+0x1]=css;i--;continue;}for(let p=ss;!p['equals'](se);p=new Point(p['x']+dx,p['y']+dy)){let cr=p;let unused=!![];for(let j=0x1;j<cl;++j){cr=new Point(cr['x']+cx,cr['y']+cy);if(this['cells'][_0x5dbf('0xa4')](cr)){let cell=this['cells']['get'](cr);if(cell['containsVertexOrBend']()){unused=![];break;}}}if(unused){let toRemove=se;for(let j=0x0;j<=cl;++j){if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](toRemove))this['removeFromCell'](this['cells'][_0x5dbf('0x51')](toRemove),toRemove,e,cy==0x0);toRemove=new Point(toRemove['x']+cx,toRemove['y']+cy);}for(let ap=p;!ap[_0x5dbf('0x2cb')](se);ap=new Point(ap['x']+dx,ap['y']+dy)){let sp=dx2==0x0?new Point(ap['x'],cd['y']):new Point(cd['x'],ap['y']);if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](ap))this[_0x5dbf('0x2e7')](this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](ap),ap,e,dy==0x0);if(this[_0x5dbf('0x2c3')]['has'](sp))this[_0x5dbf('0x2e7')](this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](sp),sp,e,dy==0x0);}let removes=!![];if(!p[_0x5dbf('0x2cb')](ss)){this['getCell'](p['x'],p['y'])[_0x5dbf('0x54')](new DrawingGrid[(_0x5dbf('0x2ec'))](e));path[sai]=p;removes=![];}let sp2=dx2==0x0?new Point(p['x'],cd['y']):new Point(cd['x'],p['y']);let removel=!![];if(!sp2['equals'](ls)){this[_0x5dbf('0x2c8')](sp2['x'],sp2['y'])[_0x5dbf('0x54')](new DrawingGrid[(_0x5dbf('0x2ec'))](e));path[lai]=sp2;removel=![];}if(lai>sai){if(removel)path[_0x5dbf('0x94')](lai,0x1);if(removes)path[_0x5dbf('0x94')](sai,0x1);}else{if(removes)path[_0x5dbf('0x94')](sai,0x1);if(removel)path[_0x5dbf('0x94')](lai,0x1);}let ep=p;let segment=new DrawingGrid['EdgeSegment'](e,cx,cy);for(let j=0x1;j<cl;++j){ep=new Point(ep['x']+cx,ep['y']+cy);this['getCell'](ep['x'],ep['y'])[_0x5dbf('0x54')](segment);}if(removes||removel){i=-0x1;this[_0x5dbf('0x2c9')](path,e,!![]);}break;}}}}}}[_0x5dbf('0x2ed')](){for(let e of this[_0x5dbf('0x9d')][_0x5dbf('0x0')]){let path=this[_0x5dbf('0x2e4')][_0x5dbf('0x51')](e);if(path['length']<0x4)continue;for(let i=0x0;i<=path[_0x5dbf('0x15')]-0x4;++i){let p1=path[i];let p2=path[i+0x1];let p3=path[i+0x2];let p4=path[i+0x3];let dx1=p1['x']-p2['x'];let dx3=p3['x']-p4['x'];let dy1=p1['y']-p2['y'];let dy3=p3['y']-p4['y'];if(dx1*dx3>0x0||dy1*dy3>0x0){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x5dbf('0x20b')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x5dbf('0x20b')](dy);let newBend=dx!=0x0?new Point(p4['x'],p1['y']):new Point(p1['x'],p4['y']);let cx=p4['x']-newBend['x'];if(cx!=0x0)cx/=Math['abs'](cx);let cy=p4['y']-newBend['y'];if(cy!=0x0)cy/=Math[_0x5dbf('0x20b')](cy);let unused=!![];for(let p=new Point(p2['x']+dx,p2['y']+dy);!p[_0x5dbf('0x2cb')](newBend);p=new Point(p['x']+dx,p['y']+dy)){if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);if(cell[_0x5dbf('0x2e6')]()){unused=![];break;}}}if(unused){for(let p=newBend;!p['equals'](p4);p=new Point(p['x']+cx,p['y']+cy)){if(this['cells'][_0x5dbf('0xa4')](p)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);if(cell[_0x5dbf('0x2e6')]()){unused=![];break;}}}}if(unused){for(let toRemove=new Point(p1['x']+dx,p1['y']+dy);!toRemove[_0x5dbf('0x2cb')](p2);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this['cells'][_0x5dbf('0xa4')](toRemove))this['removeFromCell'](this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](toRemove),toRemove,e,dy==0x0);}for(let toRemove=p2;!toRemove[_0x5dbf('0x2cb')](p3);toRemove=new Point(toRemove['x']+cx,toRemove['y']+cy)){if(this[_0x5dbf('0x2c3')]['has'](toRemove))this['removeFromCell'](this['cells']['get'](toRemove),toRemove,e,cy==0x0);}for(let toRemove=p3;!toRemove[_0x5dbf('0x2cb')](p4);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this['cells'][_0x5dbf('0xa4')](toRemove))this[_0x5dbf('0x2e7')](this['cells'][_0x5dbf('0x51')](toRemove),toRemove,e,dy==0x0);}if(this[_0x5dbf('0x2c3')]['has'](p4))this[_0x5dbf('0x2e7')](this['cells'][_0x5dbf('0x51')](p4),p4,e,!![]);this['getCell'](newBend['x'],newBend['y'])[_0x5dbf('0x54')](new DrawingGrid[(_0x5dbf('0x2ec'))](e));let segment=new DrawingGrid[(_0x5dbf('0x2e3'))](e,dx,dy);for(let p=new Point(p1['x']+dx,p1['y']+dy);!p[_0x5dbf('0x2cb')](newBend);p=new Point(p['x']+dx,p['y']+dy)){this[_0x5dbf('0x2c8')](p['x'],p['y'])[_0x5dbf('0x54')](segment);}segment=new DrawingGrid[(_0x5dbf('0x2e3'))](e,cx,cy);for(let p=new Point(newBend['x']+cx,newBend['y']+cy);!p[_0x5dbf('0x2cb')](p4);p=new Point(p['x']+cx,p['y']+cy)){this[_0x5dbf('0x2c8')](p['x'],p['y'])[_0x5dbf('0x54')](segment);}path['splice'](i+0x2,0x1);path[i+0x1]=newBend;i=-0x1;this[_0x5dbf('0x2c9')](path,e,!![]);}}}}}[_0x5dbf('0x2ee')](e,p1,includeP1,p2,includeP2){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x5dbf('0x20b')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x5dbf('0x20b')](dy);let segment=new DrawingGrid[(_0x5dbf('0x2e3'))](e,dx,dy);let start=includeP1?p1:new Point(p1['x']+dx,p1['y']+dy);for(let p=start;!p[_0x5dbf('0x2cb')](p2);p=new Point(p['x']+dx,p['y']+dy))this[_0x5dbf('0x2c8')](p['x'],p['y'])[_0x5dbf('0x54')](segment);if(includeP2)this[_0x5dbf('0x2c8')](p2['x'],p2['y'])[_0x5dbf('0x54')](segment);}[_0x5dbf('0x2eb')](e,p1,removeP1,p2,removeP2){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x5dbf('0x20b')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math[_0x5dbf('0x20b')](dy);let start=removeP1?p1:new Point(p1['x']+dx,p1['y']+dy);for(let toRemove=start;!toRemove[_0x5dbf('0x2cb')](p2);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](toRemove))this[_0x5dbf('0x2e7')](this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](toRemove),toRemove,e,dy==0x0);}if(removeP2&&this['cells']['has'](p2))this[_0x5dbf('0x2e7')](this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p2),p2,e,dy==0x0);}['edgeContainsRange'](e,p1,includeP1,p2,includeP2){let dx=p2['x']-p1['x'];if(dx!=0x0)dx/=Math[_0x5dbf('0x20b')](dx);let dy=p2['y']-p1['y'];if(dy!=0x0)dy/=Math['abs'](dy);let start=includeP1?p1:new Point(p1['x']+dx,p1['y']+dy);for(let toRemove=start;!toRemove[_0x5dbf('0x2cb')](p2);toRemove=new Point(toRemove['x']+dx,toRemove['y']+dy)){if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](toRemove)){if(!this['cells']['get'](toRemove)[_0x5dbf('0x2ef')](e,dy==0x0))return![];}}if(includeP2&&this[_0x5dbf('0x2c3')]['has'](p2)){if(!this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p2)[_0x5dbf('0x2ef')](e,dy==0x0))return![];}return!![];}[_0x5dbf('0x2c9')](path,e,setSegments){let points=path[_0x5dbf('0x95')]();path[_0x5dbf('0x15')]=0x0;for(let p of points){if(path[_0x5dbf('0x15')]==0x0||!path[path[_0x5dbf('0x15')]-0x1]['equals'](p)){let l=path[_0x5dbf('0x15')]-0x1;let threeAligned=l>0x0&&(path[l-0x1]['x']==path[l]['x']&&path[l]['x']==p['x']||path[l-0x1]['y']==path[l]['y']&&path[l]['y']==p['y']);if(threeAligned){if(setSegments){this[_0x5dbf('0x2eb')](e,path[l-0x1],![],p,![]);this[_0x5dbf('0x2ee')](e,path[l-0x1],![],p,![]);}path[l]=p;}else{path['push'](p);}}}}[_0x5dbf('0x2f0')](){let bounds=this[_0x5dbf('0x2c5')];this[_0x5dbf('0x2d5')]=new Grid(bounds[_0x5dbf('0x64')]-bounds['left']+0x1,bounds[_0x5dbf('0x1b4')]-bounds['top']+0x1);this['verticalEdges']=new Grid(bounds['right']-bounds[_0x5dbf('0x63')]+0x1,bounds['bottom']-bounds[_0x5dbf('0x1b3')]+0x1);for(let r=bounds['top'];r<=bounds[_0x5dbf('0x1b4')];r++){if(this[_0x5dbf('0x2cd')][_0x5dbf('0x51')](r)==0x0)continue;let lastVertex=bounds[_0x5dbf('0x63')];let maxEdges=0x0;for(let c=bounds['left'];c<=bounds[_0x5dbf('0x64')];c++){let p=new Point(c,r);if(this[_0x5dbf('0x2c3')]['has'](p)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);maxEdges=Math[_0x5dbf('0xbe')](maxEdges,cell[_0x5dbf('0x2f1')](!![]));if(cell[_0x5dbf('0x2f2')]()||c==bounds[_0x5dbf('0x64')]){this[_0x5dbf('0x2f3')](maxEdges,r,lastVertex,c);lastVertex=c;maxEdges=0x0;}}else if(c==bounds['right']){this[_0x5dbf('0x2f3')](maxEdges,r,lastVertex,c);}}}for(let c=bounds[_0x5dbf('0x63')];c<=bounds[_0x5dbf('0x64')];c++){if(this[_0x5dbf('0x2cc')][_0x5dbf('0x51')](c)==0x0)continue;let lastVertex=bounds[_0x5dbf('0x1b3')];let maxEdges=0x0;for(let r=bounds[_0x5dbf('0x1b3')];r<=bounds[_0x5dbf('0x1b4')];r++){let p=new Point(c,r);if(this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)){let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p);maxEdges=Math[_0x5dbf('0xbe')](maxEdges,cell['countEdges'](![]));if(cell['containsVertex']()||r==bounds[_0x5dbf('0x1b4')]){this[_0x5dbf('0x2f4')](maxEdges,c,lastVertex,r);lastVertex=r;maxEdges=0x0;}}else if(r==bounds[_0x5dbf('0x1b4')]){this[_0x5dbf('0x2f4')](maxEdges,c,lastVertex,r);}}}}[_0x5dbf('0x2f5')](bend,column,row){if(bend[_0x5dbf('0x2f6')]!=null)return bend[_0x5dbf('0x2f6')];let path=this['edgePoints'][_0x5dbf('0x51')](bend[_0x5dbf('0x11d')]);for(let i=0x1;i<path[_0x5dbf('0x15')]-0x1;++i){let point=path[i];if(point['x']==column&&point['y']==row){bend[_0x5dbf('0x2f6')]=[path[i-0x1],path[i+0x1]];return bend['neighborPoints'];}}return null;}[_0x5dbf('0x2f7')](bend,column,row){let neighborPoints=this[_0x5dbf('0x2f5')](bend,column,row);if(neighborPoints==null)return![];let nx=neighborPoints[0x0]['x']==column?neighborPoints[0x1]['x']:neighborPoints[0x0]['x'];return nx<column;}['bendsToTheTop'](bend,column,row){let neighborPoints=this[_0x5dbf('0x2f5')](bend,column,row);if(neighborPoints==null)return![];let ny=neighborPoints[0x0]['y']==row?neighborPoints[0x1]['y']:neighborPoints[0x0]['y'];return ny<row;}['setHorizontalEdgesInRange'](edges,row,c1,c2){let occupiedLanes=[];let edgeLanes=new Map();let freeLanes=new Set();for(let i=0x0;i<edges;++i)freeLanes['add'](i);for(let i=c1;i<=c2;i++){this[_0x5dbf('0x2d5')][_0x5dbf('0xa0')](i-this[_0x5dbf('0x2c5')][_0x5dbf('0x63')],row-this[_0x5dbf('0x2c5')][_0x5dbf('0x1b3')],edges);let p=new Point(i,row);let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)?this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p):null;for(let e=0x0;e<edges;e++){let edge=occupiedLanes[e];if(edge!=null&&(cell==null||!cell[_0x5dbf('0x2f8')](edge))){occupiedLanes[e]=null;edgeLanes['delete'](edge);freeLanes['add'](e);}}if(cell!=null){for(let item of cell[_0x5dbf('0x2e5')]){let segment=item instanceof DrawingGrid[_0x5dbf('0x2e3')]?item:null;if(segment!=null&&segment[_0x5dbf('0x2f9')]==-0x1&&segment[_0x5dbf('0x2fa')]){if(!edgeLanes['has'](segment[_0x5dbf('0x11d')])){let freeLane=Utils[_0x5dbf('0x2fb')](freeLanes);segment[_0x5dbf('0x2f9')]=freeLane;segment[_0x5dbf('0x2fc')]=edges;occupiedLanes[freeLane]=segment['edge'];edgeLanes[_0x5dbf('0xa0')](segment['edge'],segment[_0x5dbf('0x2f9')]);freeLanes[_0x5dbf('0xa5')](freeLane);}else{segment['lane']=edgeLanes['get'](segment[_0x5dbf('0x11d')]);segment[_0x5dbf('0x2fc')]=edges;}}let bend=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(bend!=null&&bend['horizontalLane']==-0x1){if(!edgeLanes[_0x5dbf('0xa4')](bend['edge'])){let freeLane=Utils[_0x5dbf('0x2fb')](freeLanes);bend[_0x5dbf('0x2da')]=freeLane;bend[_0x5dbf('0x2d9')]=edges;occupiedLanes[freeLane]=bend[_0x5dbf('0x11d')];edgeLanes[_0x5dbf('0xa0')](bend['edge'],bend['horizontalLane']);freeLanes[_0x5dbf('0xa5')](freeLane);}else{bend[_0x5dbf('0x2da')]=edgeLanes['get'](bend[_0x5dbf('0x11d')]);bend[_0x5dbf('0x2d9')]=edges;}}}}}if(edges>0x1&&edges<0x7){let permutations=new DrawingGrid[(_0x5dbf('0x2fd'))](edges);let minCrossingsPerm=permutations[_0x5dbf('0x51')](0x0);let minCrossings=Number['MAX_SAFE_INTEGER'];for(let permutation of permutations[_0x5dbf('0x2fe')]()){let crossings=this[_0x5dbf('0x2ff')](edges,row,c1,c2,permutation);if(crossings<minCrossings){minCrossings=crossings;minCrossingsPerm=permutation;}if(crossings==0x0)break;}if(minCrossingsPerm!=permutations['get'](0x0))this[_0x5dbf('0x300')](row,c1,c2,minCrossingsPerm);}}['setVerticalEdgesInRange'](edges,column,r1,r2){let occupiedLanes=[];let edgeLanes=new Map();let freeLanes=new Set();for(let i=0x0;i<edges;++i)freeLanes['add'](i);for(let i=r1;i<=r2;i++){this[_0x5dbf('0x301')][_0x5dbf('0xa0')](column-this[_0x5dbf('0x2c5')]['left'],i-this[_0x5dbf('0x2c5')]['top'],edges);let p=new Point(column,i);let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)?this[_0x5dbf('0x2c3')]['get'](p):null;for(let e=0x0;e<edges;e++){let edge=occupiedLanes[e];if(edge!=null&&(cell==null||!cell[_0x5dbf('0x2f8')](edge))){occupiedLanes[e]=null;edgeLanes[_0x5dbf('0xa5')](edge);freeLanes[_0x5dbf('0x54')](e);}}if(cell!=null){for(let item of cell[_0x5dbf('0x2e5')]){let segment=item instanceof DrawingGrid['EdgeSegment']?item:null;if(segment!=null&&segment['lane']==-0x1&&!segment[_0x5dbf('0x2fa')]){if(!edgeLanes['has'](segment[_0x5dbf('0x11d')])){let freeLane=Utils[_0x5dbf('0x2fb')](freeLanes);segment['lane']=freeLane;segment[_0x5dbf('0x2fc')]=edges;occupiedLanes[freeLane]=segment[_0x5dbf('0x11d')];edgeLanes[_0x5dbf('0xa0')](segment[_0x5dbf('0x11d')],segment['lane']);freeLanes['delete'](freeLane);}else{segment[_0x5dbf('0x2f9')]=edgeLanes[_0x5dbf('0x51')](segment['edge']);segment[_0x5dbf('0x2fc')]=edges;}}let bend=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(bend!=null&&bend[_0x5dbf('0x2d8')]==-0x1){if(!edgeLanes[_0x5dbf('0xa4')](bend[_0x5dbf('0x11d')])){let freeLane=Utils['first'](freeLanes);bend[_0x5dbf('0x2d8')]=freeLane;bend[_0x5dbf('0x2d7')]=edges;occupiedLanes[freeLane]=bend[_0x5dbf('0x11d')];edgeLanes[_0x5dbf('0xa0')](bend[_0x5dbf('0x11d')],bend['verticalLane']);freeLanes[_0x5dbf('0xa5')](freeLane);}else{bend['verticalLane']=edgeLanes[_0x5dbf('0x51')](bend[_0x5dbf('0x11d')]);bend[_0x5dbf('0x2d7')]=edges;}}}}}if(edges>0x1&&edges<0x7){let permutations=new DrawingGrid[(_0x5dbf('0x2fd'))](edges);let minCrossingsPerm=permutations[_0x5dbf('0x51')](0x0);let minCrossings=Number[_0x5dbf('0x146')];for(let permutation of permutations[_0x5dbf('0x2fe')]()){let crossings=this[_0x5dbf('0x302')](edges,column,r1,r2,permutation);if(crossings<minCrossings){minCrossings=crossings;minCrossingsPerm=permutation;}if(crossings==0x0)break;}if(minCrossingsPerm!=permutations['get'](0x0))this[_0x5dbf('0x303')](column,r1,r2,minCrossingsPerm);}}['countHorizontalEdgesCrossings'](edges,row,c1,c2,permutation){let totalCrossings=0x0;for(let i=c1;i<=c2;i++){let p=new Point(i,row);let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)?this['cells'][_0x5dbf('0x51')](p):null;if(cell!=null){let cellCrossings=0x0;let sortedLane=[];for(let o of cell['content']){let edgeSegment=o instanceof DrawingGrid[_0x5dbf('0x2e3')]?o:null;if(edgeSegment!=null&&edgeSegment[_0x5dbf('0x2fa')])sortedLane[permutation[edgeSegment[_0x5dbf('0x2f9')]]]=edgeSegment;let bend=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(bend!=null)sortedLane[permutation[bend[_0x5dbf('0x2da')]]]=bend;}let edgesToTheTop=0x0;let downBendsToTheTop=0x0;for(let j=0x0;j<edges;++j){let o=sortedLane[j];let edgeSegment=o instanceof DrawingGrid[_0x5dbf('0x2e3')]?o:null;if(edgeSegment!=null&&edgeSegment[_0x5dbf('0x2fa')]){edgesToTheTop++;cellCrossings+=downBendsToTheTop;}let bend=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(bend!=null){if(this[_0x5dbf('0x304')](bend,i,row))cellCrossings+=edgesToTheTop;else downBendsToTheTop++;}}totalCrossings+=cellCrossings;}}return totalCrossings;}['countVerticalEdgesCrossings'](edges,column,r1,r2,permutation){let totalCrossings=0x0;for(let i=r1;i<=r2;i++){let p=new Point(column,i);let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)?this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p):null;if(cell!=null){let cellCrossings=0x0;let sortedLane=[];for(let o of cell[_0x5dbf('0x2e5')]){let edgeSegment=o instanceof DrawingGrid[_0x5dbf('0x2e3')]?o:null;if(edgeSegment!=null&&!edgeSegment['horizontal'])sortedLane[permutation[edgeSegment[_0x5dbf('0x2f9')]]]=edgeSegment;let bend=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(bend!=null)sortedLane[permutation[bend[_0x5dbf('0x2d8')]]]=bend;}let edgesToTheLeft=0x0;let rightBendsToTheLeft=0x0;for(let j=0x0;j<edges;++j){let o=sortedLane[j];let edgeSegment=o instanceof DrawingGrid['EdgeSegment']?o:null;if(edgeSegment!=null&&!edgeSegment[_0x5dbf('0x2fa')]){edgesToTheLeft++;cellCrossings+=rightBendsToTheLeft;}let bend=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(bend!=null){if(this[_0x5dbf('0x2f7')](bend,column,i))cellCrossings+=edgesToTheLeft;else rightBendsToTheLeft++;}}totalCrossings+=cellCrossings;}}return totalCrossings;}[_0x5dbf('0x300')](row,c1,c2,permutation){let laneObjects=new Set();for(let i=c1;i<=c2;i++){let p=new Point(i,row);let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)?this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](p):null;if(cell!=null){for(let o of cell['content']){let s=o instanceof DrawingGrid['EdgeSegment']?o:null;if(s!=null&&s[_0x5dbf('0x2fa')]&&!laneObjects[_0x5dbf('0xa4')](s))laneObjects[_0x5dbf('0x54')](s);let b=o instanceof DrawingGrid['Bend']?o:null;if(b!=null&&!laneObjects[_0x5dbf('0xa4')](b))laneObjects[_0x5dbf('0x54')](b);}}}for(let o of laneObjects){let s=o instanceof DrawingGrid['EdgeSegment']?o:null;if(s!=null)s[_0x5dbf('0x2f9')]=permutation[s[_0x5dbf('0x2f9')]];let b=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(b!=null)b['horizontalLane']=permutation[b['horizontalLane']];}}[_0x5dbf('0x303')](column,r1,r2,permutation){let laneObjects=new Set();for(let i=r1;i<=r2;i++){let p=new Point(column,i);let cell=this[_0x5dbf('0x2c3')][_0x5dbf('0xa4')](p)?this['cells'][_0x5dbf('0x51')](p):null;if(cell!=null){for(let o of cell[_0x5dbf('0x2e5')]){let s=o instanceof DrawingGrid[_0x5dbf('0x2e3')]?o:null;if(s!=null&&!s[_0x5dbf('0x2fa')]&&!laneObjects[_0x5dbf('0xa4')](s))laneObjects['add'](s);let b=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(b!=null&&!laneObjects[_0x5dbf('0xa4')](b))laneObjects[_0x5dbf('0x54')](b);}}}for(let o of laneObjects){let s=o instanceof DrawingGrid[_0x5dbf('0x2e3')]?o:null;if(s!=null)s[_0x5dbf('0x2f9')]=permutation[s['lane']];let b=o instanceof DrawingGrid[_0x5dbf('0x2ec')]?o:null;if(b!=null)b[_0x5dbf('0x2d8')]=permutation[b[_0x5dbf('0x2d8')]];}}[_0x5dbf('0x2c8')](column,row){let i=new Point(column,row);if(!this['cells']['has'](i))this[_0x5dbf('0x2c3')][_0x5dbf('0xa0')](i,new DrawingGrid[(_0x5dbf('0x305'))]());return this[_0x5dbf('0x2c3')][_0x5dbf('0x51')](i);}}DrawingGrid[_0x5dbf('0x305')]=class{constructor(){this['content']=[];}[_0x5dbf('0x54')](item){this[_0x5dbf('0x2e5')]['push'](item);}[_0x5dbf('0x2e8')](e,horizontal){for(let i=0x0;i<this['content'][_0x5dbf('0x15')];i++){let item=this['content'][i];let s=item instanceof DrawingGrid['EdgeSegment']?item:null;if(s!=null&&s[_0x5dbf('0x11d')]==e&&s[_0x5dbf('0x2fa')]==horizontal){this[_0x5dbf('0x2e5')][_0x5dbf('0x94')](i,0x1);break;}let b=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(b!=null&&b[_0x5dbf('0x11d')]==e){this[_0x5dbf('0x2e5')][_0x5dbf('0x94')](i,0x1);break;}}}[_0x5dbf('0x2f1')](horizontal){let count=0x0;for(let item of this[_0x5dbf('0x2e5')]){let s=item instanceof DrawingGrid[_0x5dbf('0x2e3')]?item:null;if(s!=null&&s[_0x5dbf('0x2fa')]==horizontal)count++;let b=item instanceof DrawingGrid['Bend']?item:null;if(b!=null)count++;}return count;}['containsVertex'](){for(let item of this[_0x5dbf('0x2e5')]){if(item instanceof Vertex)return!![];}return![];}[_0x5dbf('0x2e6')](){for(let item of this['content']){if(item instanceof Vertex||item instanceof DrawingGrid[_0x5dbf('0x2ec')])return!![];}return![];}[_0x5dbf('0x2f8')](edge){for(let item of this[_0x5dbf('0x2e5')]){let s=item instanceof DrawingGrid['EdgeSegment']?item:null;if(s!=null&&s['edge']==edge)return!![];let b=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(b!=null&&b['edge']==edge)return!![];}return![];}[_0x5dbf('0x2ef')](edge,horizontal){for(let item of this[_0x5dbf('0x2e5')]){let s=item instanceof DrawingGrid[_0x5dbf('0x2e3')]?item:null;if(s!=null&&s[_0x5dbf('0x11d')]==edge&&s[_0x5dbf('0x2fa')]==horizontal)return!![];}return![];}[_0x5dbf('0x306')](edge,horizontal){for(let item of this[_0x5dbf('0x2e5')]){let s=item instanceof DrawingGrid[_0x5dbf('0x2e3')]?item:null;if(s!=null&&s[_0x5dbf('0x11d')]==edge&&s['horizontal']==horizontal)return s;}return null;}['getEdgeBend'](edge){for(let item of this[_0x5dbf('0x2e5')]){let b=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(b!=null&&b[_0x5dbf('0x11d')]==edge)return b;}return null;}[_0x5dbf('0x2db')](edge,horizontal,neighbors){for(let item of this['content']){let s=item instanceof DrawingGrid['EdgeSegment']?item:null;if(s!=null&&s['edge']==edge&&s['horizontal']==horizontal){neighbors[_0x5dbf('0x2dc')]=s['maxNeighbors'];return s[_0x5dbf('0x2f9')];}let b=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(b!=null&&b[_0x5dbf('0x11d')]==edge){neighbors[_0x5dbf('0x2dc')]=horizontal?b[_0x5dbf('0x2d9')]:b[_0x5dbf('0x2d7')];return horizontal?b[_0x5dbf('0x2da')]:b[_0x5dbf('0x2d8')];}}return-0x1;}[_0x5dbf('0x307')](permutation,horizontal){for(let item of this[_0x5dbf('0x2e5')]){let s=item instanceof DrawingGrid[_0x5dbf('0x2e3')]?item:null;if(s!=null&&s[_0x5dbf('0x2fa')]==horizontal)s['lane']=permutation[s[_0x5dbf('0x2f9')]];let b=item instanceof DrawingGrid[_0x5dbf('0x2ec')]?item:null;if(b!=null){if(horizontal)b[_0x5dbf('0x2da')]=permutation[b[_0x5dbf('0x2da')]];else b['verticalLane']=permutation[b[_0x5dbf('0x2d8')]];}}}};DrawingGrid[_0x5dbf('0x308')]=class{constructor(left,top,right,bottom){this[_0x5dbf('0x63')]=left;this[_0x5dbf('0x1b3')]=top;this[_0x5dbf('0x64')]=right;this[_0x5dbf('0x1b4')]=bottom;}};DrawingGrid['Size']=class{constructor(width,height){this[_0x5dbf('0xe8')]=width;this[_0x5dbf('0xe9')]=height;}};DrawingGrid['EdgeSegment']=class{constructor(edge,dx,dy){this[_0x5dbf('0x11d')]=edge;this['dx']=dx;this['dy']=dy;this[_0x5dbf('0x2f9')]=-0x1;this['maxNeighbors']=0x1;}get[_0x5dbf('0x2fa')](){return this['dy']==0x0;}};DrawingGrid['Bend']=class{constructor(edge){this[_0x5dbf('0x11d')]=edge;this[_0x5dbf('0x2da')]=-0x1;this[_0x5dbf('0x2d9')]=0x1;this[_0x5dbf('0x2d8')]=-0x1;this['maxVNeighbors']=0x1;this[_0x5dbf('0x2f6')]=null;}};DrawingGrid[_0x5dbf('0x2c4')]=class extends Map{['has'](point){let key=this[_0x5dbf('0x309')](point);return super[_0x5dbf('0xa4')](key);}[_0x5dbf('0x51')](point){let key=this['key'](point);return super[_0x5dbf('0x51')](key);}[_0x5dbf('0xa0')](point,value){let key=this[_0x5dbf('0x309')](point);super[_0x5dbf('0xa0')](key,value);}[_0x5dbf('0xa5')](point){let key=this[_0x5dbf('0x309')](point);return super[_0x5dbf('0xa5')](key);}[_0x5dbf('0x309')](point){return String(point['x'])+':'+String(point['y']);}};DrawingGrid['PermutationSet']=class{constructor(n){this[_0x5dbf('0x30a')]=[];this[_0x5dbf('0x30b')]=[];for(let i=0x0;i<n;++i)this[_0x5dbf('0x30b')][i]=i;this[_0x5dbf('0x30c')](n);}[_0x5dbf('0x30c')](n){if(n==0x1){this[_0x5dbf('0x30d')]();}else{for(let i=0x0;i<n;i++){this['heapPermute'](n-0x1);if(n%0x2==0x1)this[_0x5dbf('0x30e')](0x0,n-0x1);else this[_0x5dbf('0x30e')](i,n-0x1);}}}[_0x5dbf('0x30d')](){this[_0x5dbf('0x30a')][_0x5dbf('0x13')](this['current'][_0x5dbf('0x95')]());}['swap'](i,j){let t=this[_0x5dbf('0x30b')][i];this[_0x5dbf('0x30b')][i]=this[_0x5dbf('0x30b')][j];this[_0x5dbf('0x30b')][j]=t;}[_0x5dbf('0x51')](i){return this[_0x5dbf('0x30a')][i];}[_0x5dbf('0x2fe')](){return this['permutations'];}};class Representation{constructor(stGraph,weighted,xOrdering,stEmbedding){this['stsort']=stGraph[_0x5dbf('0x154')]();if(weighted)this['Y']=stGraph[_0x5dbf('0x157')](this[_0x5dbf('0x30f')],0x0);else{this['Y']=[];for(let i=0x0;i<stGraph[_0x5dbf('0xbb')][_0x5dbf('0x15')];++i)this['Y'][this[_0x5dbf('0x30f')][i]]=i;}if(stEmbedding==null){this['s']=stGraph['vertices'][this[_0x5dbf('0x30f')][0x0]];this['t']=stGraph[_0x5dbf('0xbb')][this[_0x5dbf('0x30f')][this[_0x5dbf('0x30f')]['length']-0x1]];this['d']=stGraph[_0x5dbf('0x151')](!![]);this['d'][_0x5dbf('0x16e')](this['s'],this['t']);}else{this['s']=stEmbedding['s'];this['t']=stEmbedding['t'];this['d']=stGraph[_0x5dbf('0x153')](stEmbedding['embedding'],this['s'],this['t']);}if(xOrdering){if(weighted)this['X']=this['d'][_0x5dbf('0x310')]();else{let dsort=this['d']['topologicalSort']();this['X']=[];for(let i=0x0;i<this['d'][_0x5dbf('0xbb')][_0x5dbf('0x15')];++i)this['X'][dsort[i]]=i;}}}[_0x5dbf('0x63')](e){return e['reversed']?this['d']['edgeToFaceMap'][_0x5dbf('0x51')](this['d']['embedding'][_0x5dbf('0xba')](e)):this['d'][_0x5dbf('0x16c')]['get'](e);}[_0x5dbf('0x64')](e){return e['reversed']?this['d'][_0x5dbf('0x16c')]['get'](e):this['d'][_0x5dbf('0x16c')][_0x5dbf('0x51')](this['d'][_0x5dbf('0x9e')][_0x5dbf('0xba')](e));}[_0x5dbf('0x311')](v){if(v==this['s']||v==this['t'])return this['d'][_0x5dbf('0x171')];let edges=this['d'][_0x5dbf('0x9e')][_0x5dbf('0x51')](v);for(let i=0x0;i<edges[_0x5dbf('0x15')];++i){let e=edges[i];let n=edges[(i+0x1)%edges[_0x5dbf('0x15')]];if(this['Y'][v['index']]>this['Y'][e[_0x5dbf('0xf')](v)[_0x5dbf('0x18')]]&&this['Y'][v[_0x5dbf('0x18')]]<this['Y'][n[_0x5dbf('0xf')](v)['index']])return this[_0x5dbf('0x63')](n);}return null;}[_0x5dbf('0x312')](v){if(v==this['s']||v==this['t'])return this['d'][_0x5dbf('0x313')];let edges=this['d'][_0x5dbf('0x9e')][_0x5dbf('0x51')](v);for(let i=0x0;i<edges[_0x5dbf('0x15')];++i){let e=edges[i];let n=edges[(i+0x1)%edges[_0x5dbf('0x15')]];if(this['Y'][v[_0x5dbf('0x18')]]<this['Y'][e[_0x5dbf('0xf')](v)['index']]&&this['Y'][v[_0x5dbf('0x18')]]>this['Y'][n['getOtherEnd'](v)[_0x5dbf('0x18')]])return this['right'](e);}return null;}[_0x5dbf('0x314')](e){return e[_0x5dbf('0x9')];}[_0x5dbf('0x315')](e){return e['destination'];}[_0x5dbf('0x316')](f){if(f==this['d'][_0x5dbf('0x313')]||f==this['d'][_0x5dbf('0x171')])return this['s'];let min=f[_0x5dbf('0x0')][0x0]['origin'];for(let e of f['edges']){if(this['Y'][min[_0x5dbf('0x18')]]>this['Y'][e['origin'][_0x5dbf('0x18')]])min=e['origin'];}return min;}[_0x5dbf('0x317')](f){if(f==this['d'][_0x5dbf('0x313')]||f==this['d'][_0x5dbf('0x171')])return this['t'];let max=f[_0x5dbf('0x0')][0x0]['origin'];for(let e of f[_0x5dbf('0x0')]){if(this['Y'][max[_0x5dbf('0x18')]]<this['Y'][e[_0x5dbf('0x9')][_0x5dbf('0x18')]])max=e[_0x5dbf('0x9')];}return max;}[_0x5dbf('0x318')](v){if(v==this['t']){for(let e of this['t'][_0x5dbf('0x2')])if(this['d'][_0x5dbf('0x16c')][_0x5dbf('0x51')](e)==this['d'][_0x5dbf('0x313')])return e;}let edges=this['d'][_0x5dbf('0x9e')][_0x5dbf('0x51')](v);for(let i=0x0;i<edges[_0x5dbf('0x15')];++i){let e=edges[i];let n=edges[(i+0x1)%edges['length']];if(this['Y'][v['index']]>this['Y'][e[_0x5dbf('0xf')](v)[_0x5dbf('0x18')]]&&this['Y'][v[_0x5dbf('0x18')]]<this['Y'][n[_0x5dbf('0xf')](v)[_0x5dbf('0x18')]])return this['d'][_0x5dbf('0x9e')]['getReverse'](e);}return null;}[_0x5dbf('0x319')](v){if(v==this['s']){for(let e of this['s'][_0x5dbf('0x1')])if(this['d'][_0x5dbf('0x16c')]['get'](e)==this['d'][_0x5dbf('0x313')])return e;}let edges=this['d'][_0x5dbf('0x9e')]['get'](v);for(let i=0x0;i<edges[_0x5dbf('0x15')];++i){let e=edges[i];let n=edges[(i+0x1)%edges['length']];if(this['Y'][v['index']]>this['Y'][e['getOtherEnd'](v)['index']]&&this['Y'][v['index']]<this['Y'][n[_0x5dbf('0xf')](v)['index']])return n;}return null;}['rightMostOutgoing'](v){let edges=this['d'][_0x5dbf('0x9e')][_0x5dbf('0x51')](v);for(let i=0x0;i<edges['length'];++i){let e=edges[i];let n=edges[(i+0x1)%edges['length']];if(this['Y'][v[_0x5dbf('0x18')]]<this['Y'][e[_0x5dbf('0xf')](v)[_0x5dbf('0x18')]]&&this['Y'][v['index']]>this['Y'][n['getOtherEnd'](v)[_0x5dbf('0x18')]])return e;}return null;}[_0x5dbf('0x31a')](v){let outEdges=[];let e=this[_0x5dbf('0x319')](v);if(e!=null){do{outEdges['push'](e);e=this['d'][_0x5dbf('0x9e')][_0x5dbf('0x31b')](v,e);}while(e[_0x5dbf('0x9')]==v&&outEdges[_0x5dbf('0x15')]<v[_0x5dbf('0x1')][_0x5dbf('0x15')]);}return outEdges;}[_0x5dbf('0x31c')](v){let inEdges=[];let e=this[_0x5dbf('0x318')](v);if(e!=null){do{inEdges[_0x5dbf('0x13')](e);e=this['d'][_0x5dbf('0x9e')]['getPrevious'](v,e);}while(e[_0x5dbf('0xa')]==v&&inEdges[_0x5dbf('0x15')]<v[_0x5dbf('0x2')]['length']);}return inEdges;}[_0x5dbf('0x31d')](v){let edges=this['getOutEdges'](v);return edges[Math['floor'](edges[_0x5dbf('0x15')]/0x2)];}[_0x5dbf('0x31e')](v){let edges=this[_0x5dbf('0x31c')](v);return edges[Math[_0x5dbf('0xcc')](edges[_0x5dbf('0x15')]/0x2)];}[_0x5dbf('0x31f')](){return{'y':0x0,'x1':0x0,'x2':0x0};}[_0x5dbf('0x320')](){return{'x':0x0,'y1':0x0,'y2':0x0};}get[_0x5dbf('0x321')](){return this['d'];}get['source'](){return this['s'];}get[_0x5dbf('0xc9')](){return this['t'];}get[_0x5dbf('0x154')](){return this['stsort'];}}class ConstrainedVisibility extends Representation{constructor(stGraph,vpaths){super(stGraph,!![],![],null);this['d'][_0x5dbf('0xe6')]();this['edgeToPathMap']=new Map();this['pathToVertexMap']=new Map();for(let p of vpaths){let v=new Vertex();this['d'][_0x5dbf('0xbb')][_0x5dbf('0x13')](v);this[_0x5dbf('0x322')]['set'](p,v);for(let e of p)this['edgeToPathMap']['set'](e,p);}for(let e of stGraph[_0x5dbf('0x0')]){if(!this['edgeToPathMap'][_0x5dbf('0xa4')](e)){let p=[];p[_0x5dbf('0x13')](e);this[_0x5dbf('0x323')]['set'](e,p);vpaths[_0x5dbf('0x13')](p);let v=new Vertex();this['d'][_0x5dbf('0xbb')]['push'](v);this[_0x5dbf('0x322')][_0x5dbf('0xa0')](p,v);}}for(const [e,p]of this[_0x5dbf('0x323')][_0x5dbf('0x9f')]()){let pv=this[_0x5dbf('0x322')][_0x5dbf('0x51')](p);let l=this['left'](e);let r=this[_0x5dbf('0x64')](e);let lv=this['d'][_0x5dbf('0x170')]['get'](l);let rv=this['d'][_0x5dbf('0x170')][_0x5dbf('0x51')](r);if(!lv['adjacentTo'](pv))this['d'][_0x5dbf('0xe4')](lv,pv)['weight']=0.5;if(!pv[_0x5dbf('0xd')](rv))this['d']['createEdge'](pv,rv)[_0x5dbf('0x3')]=0.5;}this[_0x5dbf('0x324')]=new Map();this[_0x5dbf('0x325')]=new Map();this['X']=this['d'][_0x5dbf('0x310')](-0.5);for(let p of vpaths){for(let e of p){let vs=this[_0x5dbf('0x320')]();vs['x']=this['X'][this[_0x5dbf('0x322')][_0x5dbf('0x51')](p)['index']];vs['y2']=this['Y'][this[_0x5dbf('0x314')](e)[_0x5dbf('0x18')]];vs['y1']=this['Y'][this['dest'](e)[_0x5dbf('0x18')]];this['vSegments']['set'](e,vs);}}for(let v of stGraph[_0x5dbf('0xbb')]){let hs=this[_0x5dbf('0x31f')]();hs['y']=this['Y'][v[_0x5dbf('0x18')]];let x1=Number[_0x5dbf('0x26f')];let x2=Number[_0x5dbf('0x277')];for(let e of v[_0x5dbf('0x0')]){let p=this[_0x5dbf('0x323')][_0x5dbf('0x51')](e);x1=Math[_0x5dbf('0xbd')](x1,this['X'][this[_0x5dbf('0x322')][_0x5dbf('0x51')](p)[_0x5dbf('0x18')]]);x2=Math[_0x5dbf('0xbe')](x2,this['X'][this[_0x5dbf('0x322')][_0x5dbf('0x51')](p)['index']]);}hs['x1']=x1;hs['x2']=x2;this[_0x5dbf('0x324')][_0x5dbf('0xa0')](v,hs);}}get['vertexSegments'](){return this[_0x5dbf('0x324')];}get['edgeSegments'](){return this[_0x5dbf('0x325')];}}class OrthogonalLayout extends Layout{constructor(){super();this[_0x5dbf('0x2dd')]=!![];this[_0x5dbf('0x2ad')]=0xf;this[_0x5dbf('0x326')]=0xa;this['mm']=0x1;}get[_0x5dbf('0x1a9')](){return!![];}[_0x5dbf('0x1ab')](graph){graph[_0x5dbf('0xee')]();this[_0x5dbf('0x9d')]=graph;for(let edge of graph[_0x5dbf('0x0')])edge[_0x5dbf('0x3')]=0x1;if(graph[_0x5dbf('0xbb')]['length']==0x0||graph[_0x5dbf('0x0')][_0x5dbf('0x15')]==0x0){this['vertexPoints']=new Map();for(let v of graph[_0x5dbf('0xbb')])this[_0x5dbf('0x2c2')][_0x5dbf('0xa0')](v,new Point(0x0,0x0));this[_0x5dbf('0x2e4')]=new Map();this[_0x5dbf('0x327')]=new DrawingGrid(graph,this[_0x5dbf('0x2c2')],this[_0x5dbf('0x2e4')]);return this[_0x5dbf('0x328')](this[_0x5dbf('0x327')]);}let nonplanarReplacement=new Map();let stGraph=graph[_0x5dbf('0x149')](nonplanarReplacement);for(let edge of stGraph['edges'])edge[_0x5dbf('0xf0')]=![];let biconnectionEdges=stGraph['planarMakeBiconnected']();let maxDegreeeReplacement=stGraph[_0x5dbf('0x158')](0x4,stGraph[_0x5dbf('0x136')]());stGraph[_0x5dbf('0xee')]();let reversedEdges=stGraph[_0x5dbf('0x12e')]();let r=new Representation(stGraph,!![]);let vertexToPathMap=new Map();let startEdges=new Map();let endEdges=new Map();for(let i=0x1;i<stGraph['vertices'][_0x5dbf('0x15')]-0x1;++i){let ts=r['topologicalSort'][i];let v=stGraph[_0x5dbf('0xbb')][ts];let path=[];switch(v['inEdges'][_0x5dbf('0x15')]){case 0x1:path['push'](v[_0x5dbf('0x2')][0x0]);path[_0x5dbf('0x13')](r['getOutMedian'](v));break;case 0x2:path[_0x5dbf('0x13')](r['leftMostIncoming'](v));path[_0x5dbf('0x13')](r['rightMostOutgoing'](v));break;case 0x3:path[_0x5dbf('0x13')](r['getInMedian'](v));path[_0x5dbf('0x13')](v['outEdges'][0x0]);break;}vertexToPathMap[_0x5dbf('0xa0')](v,path['slice']());startEdges['set'](path[0x0],path);endEdges[_0x5dbf('0xa0')](path[0x1],path);}for(let e of stGraph[_0x5dbf('0x0')]){if(endEdges['has'](e)&&startEdges[_0x5dbf('0xa4')](e)){let p1=endEdges[_0x5dbf('0x51')](e);let p2=startEdges['get'](e);p1[_0x5dbf('0x94')](p1[_0x5dbf('0x15')]-0x1,0x1);p1['push'](...p2);startEdges['set'](p1[0x0],p1);endEdges[_0x5dbf('0xa0')](p1[p1['length']-0x1],p1);}}let unifiedPaths=[];for(const [edge,path]of endEdges[_0x5dbf('0x9f')]()){if(edge==path[path['length']-0x1])unifiedPaths[_0x5dbf('0x13')](path);}let cv=new ConstrainedVisibility(stGraph,unifiedPaths);this[_0x5dbf('0x2c2')]=new Map();for(let v of stGraph[_0x5dbf('0xbb')]){if(v==r[_0x5dbf('0xc9')]||v==r[_0x5dbf('0x329')])continue;let vertexSegment=cv[_0x5dbf('0x32a')][_0x5dbf('0x51')](v);let e=vertexToPathMap[_0x5dbf('0x51')](v)[0x0];let edgeSegment=cv[_0x5dbf('0x32b')][_0x5dbf('0x51')](e);let vPoint=new Point(Math['floor'](edgeSegment['x']),Math[_0x5dbf('0xcc')](vertexSegment['y']));this['vertexPoints'][_0x5dbf('0xa0')](v,vPoint);}let s=r[_0x5dbf('0x329')];let sSegment=cv[_0x5dbf('0x32a')][_0x5dbf('0x51')](s);let sem=r[_0x5dbf('0x31a')](s);let sMedian=sem[Math['floor'](sem[_0x5dbf('0x15')]/0x2)];let sMedianSegment=cv[_0x5dbf('0x32b')][_0x5dbf('0x51')](sMedian);let sPoint=new Point(Math[_0x5dbf('0xcc')](sMedianSegment['x']),Math[_0x5dbf('0xcc')](sSegment['y']));this[_0x5dbf('0x2c2')][_0x5dbf('0xa0')](s,sPoint);let t=r[_0x5dbf('0xc9')];let tSegment=cv[_0x5dbf('0x32a')]['get'](t);let tem=r[_0x5dbf('0x31c')](t);let tMedian=tem[Math[_0x5dbf('0xcc')](tem[_0x5dbf('0x15')]/0x2)];let tMedianSegment=cv[_0x5dbf('0x32b')][_0x5dbf('0x51')](tMedian);let tPoint=new Point(Math[_0x5dbf('0xcc')](tMedianSegment['x']),Math[_0x5dbf('0xcc')](tSegment['y']));this[_0x5dbf('0x2c2')][_0x5dbf('0xa0')](t,tPoint);this[_0x5dbf('0x2e4')]=new Map();for(let e of stGraph[_0x5dbf('0x0')]){let points=[];let eSegment=cv[_0x5dbf('0x32b')][_0x5dbf('0x51')](e);if(e['origin']==s&&s['outEdges'][_0x5dbf('0x15')]==0x4&&e==sem[0x0]){points[_0x5dbf('0x13')](this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](s));points['push'](new Point(points[0x0]['x'],points[0x0]['y']-0x1));points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),points[0x0]['y']-0x1));if(e[_0x5dbf('0xa')]==t&&t[_0x5dbf('0x2')][_0x5dbf('0x15')]==0x4&&e==tem[0x0]){points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),this['vertexPoints'][_0x5dbf('0x51')](e[_0x5dbf('0xa')])['y']+0x1));points[_0x5dbf('0x13')](new Point(this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](e['destination'])['x'],this['vertexPoints']['get'](e[_0x5dbf('0xa')])['y']+0x1));}else{points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),this[_0x5dbf('0x2c2')]['get'](e['destination'])['y']));}points[_0x5dbf('0x13')](this['vertexPoints']['get'](e[_0x5dbf('0xa')]));this[_0x5dbf('0x2e4')][_0x5dbf('0xa0')](e,points);continue;}if(e['destination']==t&&t['inEdges'][_0x5dbf('0x15')]==0x4&&e==tem[0x0]){points[_0x5dbf('0x13')](this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](e['origin']));points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),points[0x0]['y']));points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](t)['y']+0x1));points[_0x5dbf('0x13')](new Point(this['vertexPoints'][_0x5dbf('0x51')](t)['x'],this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](t)['y']+0x1));points[_0x5dbf('0x13')](this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](t));this[_0x5dbf('0x2e4')]['set'](e,points);continue;}let u=e['origin'];let uSegment=cv[_0x5dbf('0x32a')][_0x5dbf('0x51')](u);let v=e[_0x5dbf('0xa')];let vSegment=cv['vertexSegments'][_0x5dbf('0x51')](v);points['push'](this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](u));points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),Math['floor'](uSegment['y'])));points[_0x5dbf('0x13')](new Point(Math[_0x5dbf('0xcc')](eSegment['x']),Math['floor'](vSegment['y'])));points['push'](this[_0x5dbf('0x2c2')][_0x5dbf('0x51')](v));this[_0x5dbf('0x2e4')]['set'](e,points);}for(let e of reversedEdges){e[_0x5dbf('0x1d')]();this['edgePoints'][_0x5dbf('0x51')](e)[_0x5dbf('0x1d')]();}for(const [v,c]of maxDegreeeReplacement[_0x5dbf('0x9f')]()){let m=Math[_0x5dbf('0xcc')](c['vertices'][_0x5dbf('0x15')]/0x2);this['mergePaths'](v,c,0x1,m+0x1,+0x1);this[_0x5dbf('0x32c')](v,c,c['vertices']['length']-0x1,m,-0x1);}for(const [v,c]of maxDegreeeReplacement[_0x5dbf('0x9f')]()){for(let e of c[_0x5dbf('0x0')])stGraph[_0x5dbf('0x7')](e);for(let i=0x1;i<c[_0x5dbf('0xbb')][_0x5dbf('0x15')];i++)stGraph[_0x5dbf('0xea')](c[_0x5dbf('0xbb')][i]);}for(let e of biconnectionEdges)stGraph[_0x5dbf('0x7')](e);let stgVertexPoints=this['vertexPoints'];this[_0x5dbf('0x2c2')]=new Map();for(let v of graph[_0x5dbf('0xbb')]){this[_0x5dbf('0x2c2')][_0x5dbf('0xa0')](v,stgVertexPoints[_0x5dbf('0x51')](stGraph['vertexOrigToCopyMap'][_0x5dbf('0x51')](v)));}let stgEdgePoints=this[_0x5dbf('0x2e4')];this[_0x5dbf('0x2e4')]=new Map();for(let e of graph[_0x5dbf('0x0')]){if(stgEdgePoints[_0x5dbf('0xa4')](stGraph['edgeOrigToCopyMap'][_0x5dbf('0x51')](e))){this['edgePoints'][_0x5dbf('0xa0')](e,stgEdgePoints[_0x5dbf('0x51')](stGraph['edgeOrigToCopyMap']['get'](e)));}}for(const [edge,path]of nonplanarReplacement[_0x5dbf('0x9f')]())this['edgePoints'][_0x5dbf('0xa0')](edge,this[_0x5dbf('0x32d')](path,stgEdgePoints));this[_0x5dbf('0x327')]=new DrawingGrid(graph,this[_0x5dbf('0x2c2')],this[_0x5dbf('0x2e4')]);return this[_0x5dbf('0x328')](this['drawingGrid']);}[_0x5dbf('0x328')](grid){let graph=this['graph'];if(this[_0x5dbf('0x2dd')])grid['refine'](0x1);grid[_0x5dbf('0x32e')](v=>({'width':v[_0x5dbf('0xe8')],'height':v[_0x5dbf('0xe9')]}),this[_0x5dbf('0x2ad')],this['padding']+this[_0x5dbf('0x326')]);for(let v of graph[_0x5dbf('0xbb')]){let gp=grid[_0x5dbf('0x2c2')][_0x5dbf('0x51')](v);let p=grid['getPosition'](gp);v['x']=p['x'];v['y']=p['y'];}for(let edge of graph['edges']){var points=[];let gp=grid[_0x5dbf('0x2e4')][_0x5dbf('0x51')](edge);for(let i=0x0;i<gp[_0x5dbf('0x15')];++i){let p=grid[_0x5dbf('0x32f')](gp[i],edge,this[_0x5dbf('0x326')],this[_0x5dbf('0x326')]);if(i==0x0||!gp[i][_0x5dbf('0x2cb')](gp[i-0x1]))points[_0x5dbf('0x13')](new Point(p['x'],p['y']));}edge['points']=points;this['alignEndsToNode'](edge);}return!![];}[_0x5dbf('0x330')](edge){let p=edge['points'];let e=p[_0x5dbf('0x15')]-0x1;let x=p[0x0]['x'];let y=p[0x0]['y'];let orect=Rect[_0x5dbf('0x1b2')](edge[_0x5dbf('0x9')]);if(p[0x0]['x']<p[0x1]['x'])x=orect['right']();else if(p[0x0]['x']>p[0x1]['x'])x=orect[_0x5dbf('0x63')]();else if(p[0x0]['y']<p[0x1]['y'])y=orect[_0x5dbf('0x1b4')]();else if(p[0x0]['y']>p[0x1]['y'])y=orect[_0x5dbf('0x1b3')]();p[0x0]=new Point(x,y);x=p[e]['x'];y=p[e]['y'];let drect=Rect['fromVertex'](edge[_0x5dbf('0xa')]);if(p[e]['x']<p[e-0x1]['x'])x=drect[_0x5dbf('0x64')]();else if(p[e]['x']>p[e-0x1]['x'])x=drect[_0x5dbf('0x63')]();else if(p[e]['y']<p[e-0x1]['y'])y=drect[_0x5dbf('0x1b4')]();else if(p[e]['y']>p[e-0x1]['y'])y=drect[_0x5dbf('0x1b3')]();p[e]=new Point(x,y);}[_0x5dbf('0x1ff')](){return this['constructor'][_0x5dbf('0x201')];}[_0x5dbf('0x331')](array,l,r){let d=Math[_0x5dbf('0xcc')]((r-l+0x1)/0x2);for(let i=0x0;i<d;i++){let t=array[l+i];array[l+i]=array[r-i];array[r-i]=t;}}[_0x5dbf('0x32c')](v,c,rs,re,step){let dummyPath=[];let p=v;for(let i=rs;i!=re;i+=step){let d=c[_0x5dbf('0xbb')][i];for(let e of d[_0x5dbf('0x0')]){if(e['origin']==p){dummyPath[_0x5dbf('0x13')](...this[_0x5dbf('0x2e4')][_0x5dbf('0x51')](e));break;}if(e[_0x5dbf('0xa')]==p){let destPoints=this[_0x5dbf('0x2e4')]['get'](e);destPoints[_0x5dbf('0x1d')]();dummyPath[_0x5dbf('0x13')](...destPoints);break;}}let realEdges=[];for(let e of d[_0x5dbf('0x0')])if(!e[_0x5dbf('0xf0')])realEdges[_0x5dbf('0x13')](e);for(let e of realEdges){if(e[_0x5dbf('0x9')]==d){e[_0x5dbf('0x1a')](v);let path=dummyPath[_0x5dbf('0x95')]();path[_0x5dbf('0x13')](...this[_0x5dbf('0x2e4')][_0x5dbf('0x51')](e));this[_0x5dbf('0x2e4')][_0x5dbf('0xa0')](e,path);}else if(e[_0x5dbf('0xa')]==d){e[_0x5dbf('0x1b')](v);let path=this['edgePoints'][_0x5dbf('0x51')](e);let destPoints=dummyPath[_0x5dbf('0x95')]();destPoints[_0x5dbf('0x1d')]();path[_0x5dbf('0x13')](...destPoints);}}p=d;}}[_0x5dbf('0x32d')](edges,stgEdgePoints){let path=[];for(let e of edges)path[_0x5dbf('0x13')](...stgEdgePoints[_0x5dbf('0x51')](e));return path;}get[_0x5dbf('0x2dd')](){return this[_0x5dbf('0x332')];}set[_0x5dbf('0x2dd')](value){this[_0x5dbf('0x332')]=value;}get['padding'](){return this[_0x5dbf('0x2bf')];}set[_0x5dbf('0x2ad')](value){this[_0x5dbf('0x2bf')]=value;}get[_0x5dbf('0x326')](){return this[_0x5dbf('0x333')];}set[_0x5dbf('0x326')](value){this['_minLaneSize']=value;}}class RadialTreeLayout extends Layout{constructor(){super();this[_0x5dbf('0x1a4')]=0xa;this['keepRootPosition']=![];this[_0x5dbf('0x8c')]=LayoutDirection[_0x5dbf('0x1ae')];this[_0x5dbf('0x334')]=0x1;this[_0x5dbf('0xcd')]=![];}[_0x5dbf('0x1ab')](graph){var root;var th=new TreeHelper(this[_0x5dbf('0xcd')]);this['treeHelper']=th;graph[_0x5dbf('0xbb')]['forEach'](function(v){let parentEdges=th['parentEdges'](v);if(parentEdges['length']==0x0){root=v;return $break;}});if(!root)return $skipLayout;this[_0x5dbf('0xd6')]=graph[_0x5dbf('0xd6')](root,this[_0x5dbf('0xcd')]);if(!this[_0x5dbf('0xd6')])return $skipLayout;var rootX=root['x'];var rootY=root['y'];root['x']=0x0;root['y']=0x0;var deg=0x0;switch(this[_0x5dbf('0x8c')]){case LayoutDirection[_0x5dbf('0x1ae')]:deg=0x10e;break;case LayoutDirection[_0x5dbf('0x1b0')]:deg=0x5a;break;case LayoutDirection['LeftToRight']:deg=0xb4;break;case LayoutDirection[_0x5dbf('0x1af')]:deg=0x0;break;}root['leftBisectorData']=deg;root[_0x5dbf('0x335')]=deg+0x168;for(var l=0x0;l<this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][_0x5dbf('0x15')]-0x1;l++){this[_0x5dbf('0x336')](l);}var xoff=0x0;var yoff=0x0;if(this[_0x5dbf('0x1a5')]){var newRootX=root['x'];var newRootY=root['y'];xoff=rootX-newRootX;yoff=rootY-newRootY;}else{var rc=this[_0x5dbf('0x337')]();xoff=-rc['x']+this['margins'];yoff=-rc['y']+this[_0x5dbf('0x19d')];}for(var i=0x0;i<this['tree'][_0x5dbf('0xe1')][_0x5dbf('0x15')];i++){var treeLevel=this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][i];for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){var node=treeLevel[j];node['x']+=xoff;node['y']+=yoff;var soff=(node['x']-this[_0x5dbf('0xd6')][_0x5dbf('0x55')]['x'])*this['stretchFactor'];node['x']=this[_0x5dbf('0xd6')]['root']['x']+soff;}}return!![];}['arrangeLevel'](parentLevel){var rad=this['calcRadius'](parentLevel+0x1);var nrad=this[_0x5dbf('0x338')](parentLevel+0x2);var angle=0x5a-Math['asin'](rad/nrad)*0xb4/Math['PI'];var parents=this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][parentLevel];for(var i=0x0;i<parents['length'];i++){var parent=parents[i];var children=this[_0x5dbf('0xd6')][_0x5dbf('0xe3')](parent);if(children[_0x5dbf('0x15')]==0x0)continue;var lbis=parent[_0x5dbf('0x339')];var rbis=parent[_0x5dbf('0x335')];var dist;var deg;if(parentLevel!=0x0){if(children['length']==0x1){dist=0x0;deg=parent[_0x5dbf('0x33a')];}else{dist=(rbis-lbis)/children[_0x5dbf('0x15')];deg=lbis+dist/0x2;}}else{dist=(rbis-lbis)/children[_0x5dbf('0x15')];deg=lbis;}children['forEach'](child=>{var x=rad*Math['cos'](Math['PI']*deg/0xb4);var y=-rad*Math[_0x5dbf('0x24d')](Math['PI']*deg/0xb4);child['x']=x;child['y']=y;child[_0x5dbf('0x33a')]=deg;deg+=dist;});}if(parentLevel==this['tree'][_0x5dbf('0xe1')][_0x5dbf('0x15')]-0x1)return $skipLayout;for(var p=0x0;p<parents[_0x5dbf('0x15')];p++){var parent=parents[p];var children=this[_0x5dbf('0xd6')][_0x5dbf('0xe3')](parent);for(var i=0x0;i<children['length'];i++){var n1=null,n3=null;var n2=children[i];var level=this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][parentLevel+0x1];var i2=level[_0x5dbf('0x93')](n2);var i1=i2-0x1;var i3=i2+0x1;if(this['tree']['childrenOf'](n2)['length']==0x0)continue;var turned1=![],turned2=![];while(!![]){if(i1<0x0){i1=level['length']-0x1;turned1=!![];}n1=level[i1--];if(this[_0x5dbf('0xd6')][_0x5dbf('0xe3')](n1)['length']==0x0)continue;break;}while(!![]){if(i3>=level[_0x5dbf('0x15')]){i3=0x0;turned2=!![];}n3=level[i3++];if(this[_0x5dbf('0xd6')][_0x5dbf('0xe3')](n3)[_0x5dbf('0x15')]==0x0)continue;break;}var a1,a2,a3;var b1,b2;var t1,t2;a1=n1['angleData'];a2=n2[_0x5dbf('0x33a')];a3=n3[_0x5dbf('0x33a')];if(turned1)a1-=0x168;if(turned2)a3+=0x168;b1=(a1+a2)/0x2;b2=(a2+a3)/0x2;if(nrad>0x0){t1=a2-angle;t2=a2+angle;if(this[_0x5dbf('0xd6')][_0x5dbf('0xe3')](parent)[_0x5dbf('0x15')]==0x1&&parentLevel==0x0){b1=t1;b2=t2;}else{b1=Math[_0x5dbf('0xbe')](b1,t1);b2=Math['min'](b2,t2);}if(n1==n2&&i!=0x0)b1=t1;if(n2==n3)b2=t2;b1+=0.001;b2-=0.001;}n2[_0x5dbf('0x339')]=Math[_0x5dbf('0xbd')](b1,b2);n2[_0x5dbf('0x335')]=Math[_0x5dbf('0xbe')](b1,b2);}}}[_0x5dbf('0x337')](){var rect;for(var i=0x0;i<this[_0x5dbf('0xd6')]['treeLevels'][_0x5dbf('0x15')];i++){var treeLevel=this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][i];for(var j=0x0;j<treeLevel[_0x5dbf('0x15')];j++){var node=treeLevel[j];var nodeRect=Rect[_0x5dbf('0x1b2')](node);if(!rect)rect=nodeRect;else rect=rect[_0x5dbf('0x1bf')](nodeRect);}}return rect;}['calcRadius'](level){if(level>=this[_0x5dbf('0xd6')][_0x5dbf('0xe1')]['length'])return this[_0x5dbf('0x1a4')];if(level-0x1<0x0)return 0x0;var maxRad1=0x0,maxRad2=0x0;this[_0x5dbf('0xd6')][_0x5dbf('0xe1')][level-0x1]['forEach'](node=>{var maxSide=Math['max'](node[_0x5dbf('0xe8')],node['height']);var radius=maxSide/0x2;maxRad1=Math['max'](maxRad1,radius);});this[_0x5dbf('0xd6')]['treeLevels'][level][_0x5dbf('0x12')](node=>{var maxSide=Math['max'](node[_0x5dbf('0xe8')],node[_0x5dbf('0xe9')]);var radius=maxSide/0x2;maxRad2=Math[_0x5dbf('0xbe')](maxRad2,radius);});return maxRad1+maxRad2+this[_0x5dbf('0x1a4')]+this[_0x5dbf('0x338')](level-0x1);}[_0x5dbf('0x1ff')](){return this['constructor'][_0x5dbf('0x201')];}get['levelDistance'](){return this[_0x5dbf('0x1b8')];}set[_0x5dbf('0x1a4')](value){this[_0x5dbf('0x1b8')]=value;}get[_0x5dbf('0x1a5')](){return this[_0x5dbf('0x1ba')];}set[_0x5dbf('0x1a5')](value){this[_0x5dbf('0x1ba')]=value;}get[_0x5dbf('0x8c')](){return this[_0x5dbf('0x1bb')];}set['direction'](value){this[_0x5dbf('0x1bb')]=value;}get[_0x5dbf('0x334')](){return this[_0x5dbf('0x33b')];}set[_0x5dbf('0x334')](value){this['_stretchFactor']=value;}get[_0x5dbf('0xcd')](){return this[_0x5dbf('0x1bd')];}set['reversedLinks'](value){this[_0x5dbf('0x1bd')]=value;}}export{Anchoring,AssistantPosition,AssistantType,BorderedTreeLayout,FlowchartLayout,FractalLayout,Graph,LayeredLayout,LayoutDirection,MultipleGraphsPlacement,Orientation,OrthogonalLayout,PathFinder,RadialTreeLayout,SpringLayout,TopologicalLayout,TreeLayout,TreeLayoutLinkType,TreeMapLayout};
|