(function($dvt$$4$$) {
  function $DvtDiagramLinkUnderlay$$($dvt$$4$$, $points$$24$$, $stroke$$27$$, $styleClass$$5$$) {
    $DvtDiagramLinkUnderlay$$.$superclass$.Init.call(this, $dvt$$4$$);
    this.Init($dvt$$4$$, $points$$24$$, $stroke$$27$$, $styleClass$$5$$);
  }
  function $DvtDiagramRectangle$$($dvt$$4$$, $y$$71$$, $w$$16$$, $h$$12$$) {
    this.Init($dvt$$4$$, $y$$71$$, $w$$16$$, $h$$12$$);
  }
  function $DvtDiagramPoint$$($dvt$$4$$, $y$$69$$) {
    this.Init($dvt$$4$$, $y$$69$$);
  }
  function $DvtDiagramLayoutContextNode$$($dvt$$4$$) {
    this.Init($dvt$$4$$);
  }
  function $DvtDiagramLayoutContextLink$$($dvt$$4$$) {
    this.Init($dvt$$4$$);
  }
  function $DvtDiagramLayoutContext$$($dvt$$4$$) {
    this.Init($dvt$$4$$);
  }
  $dvt$$4$$.$Obj$.$createSubclass$($DvtDiagramLayoutContext$$, $dvt$$4$$.$Obj$, "DvtDiagramLayoutContext");
  $DvtDiagramLayoutContext$$.prototype.Init = function $$DvtDiagramLayoutContext$$$$Init$($dvt$$4$$) {
    this.$_layout$ = $dvt$$4$$ ? $dvt$$4$$.$_layout$ : null;
    this.$_layoutAttrs$ = $dvt$$4$$ ? $dvt$$4$$.$_layoutAttrs$ : null;
    this.$_nodeCount$ = $dvt$$4$$ ? $dvt$$4$$.$_nodeCount$ : 0;
    this.$_linkCount$ = $dvt$$4$$ ? $dvt$$4$$.$_linkCount$ : 0;
    this.$_bLocaleR2L$ = $dvt$$4$$ ? $dvt$$4$$.$_bLocaleR2L$ : !1;
    this.$_componentSize$ = $dvt$$4$$ ? $dvt$$4$$.$_componentSize$ : null;
    this.$_viewport$ = $dvt$$4$$ ? $dvt$$4$$.$_viewport$ : null;
    this.$_containerId$ = $dvt$$4$$ ? $dvt$$4$$.$_containerId$ : null;
    this.$_containerPadding$ = $dvt$$4$$ ? $dvt$$4$$.$_containerPadding$ : null;
    this.$_nodes$ = {};
    this.$_links$ = {};
    this.$_arNodes$ = [];
    this.$_arLinks$ = [];
    if ($dvt$$4$$) {
      for (var $i$$236$$ = 0;$i$$236$$ < this.$_nodeCount$;$i$$236$$++) {
        var $linkCopy_nodeCopy$$ = new $DvtDiagramLayoutContextNode$$($dvt$$4$$.$_arNodes$[$i$$236$$]);
        this.$_arNodes$.push($linkCopy_nodeCopy$$);
        this.$_nodes$[$linkCopy_nodeCopy$$.getId()] = $linkCopy_nodeCopy$$;
      }
      for (var $nodeId$$79$$ in $dvt$$4$$.$_nodes$) {
        this.$_nodes$[$nodeId$$79$$] || (this.$_nodes$[$nodeId$$79$$] = new $DvtDiagramLayoutContextNode$$($dvt$$4$$.$_nodes$[$nodeId$$79$$]));
      }
      for ($i$$236$$ = 0;$i$$236$$ < this.$_linkCount$;$i$$236$$++) {
        $linkCopy_nodeCopy$$ = new $DvtDiagramLayoutContextLink$$($dvt$$4$$.$_arLinks$[$i$$236$$]), this.$_arLinks$.push($linkCopy_nodeCopy$$), this.$_links$[$linkCopy_nodeCopy$$.getId()] = $linkCopy_nodeCopy$$;
      }
      for (var $DvtDiagramLayoutContext$$ in $dvt$$4$$.$_links$) {
        this.$_links$[$DvtDiagramLayoutContext$$] || (this.$_links$[$DvtDiagramLayoutContext$$] = new $DvtDiagramLayoutContextLink$$($dvt$$4$$.$_links$[$DvtDiagramLayoutContext$$]));
      }
    }
  };
  $DvtDiagramLayoutContext$$.prototype.$setLayout$ = function $$DvtDiagramLayoutContext$$$$$setLayout$$($dvt$$4$$) {
    this.$_layout$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getLayout$ = function $$DvtDiagramLayoutContext$$$$$getLayout$$() {
    return this.$_layout$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setLayoutAttributes$ = function $$DvtDiagramLayoutContext$$$$$setLayoutAttributes$$($dvt$$4$$) {
    this.$_layoutAttrs$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getLayoutAttributes$ = function $$DvtDiagramLayoutContext$$$$$getLayoutAttributes$$() {
    return this.$_layoutAttrs$;
  };
  $DvtDiagramLayoutContext$$.prototype.$addNode$ = function $$DvtDiagramLayoutContext$$$$$addNode$$($dvt$$4$$) {
    this.$getNodeById$($dvt$$4$$.getId()) || (this.$_nodeCount$++, this.$_arNodes$.push($dvt$$4$$));
    this.$_nodes$[$dvt$$4$$.getId()] = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$addNodeToMap$ = function $$DvtDiagramLayoutContext$$$$$addNodeToMap$$($dvt$$4$$) {
    this.$_nodes$[$dvt$$4$$.getId()] = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getNodeById$ = function $$DvtDiagramLayoutContext$$$$$getNodeById$$($dvt$$4$$) {
    return this.$_nodes$[$dvt$$4$$];
  };
  $DvtDiagramLayoutContext$$.prototype.$getNodeByIndex$ = function $$DvtDiagramLayoutContext$$$$$getNodeByIndex$$($dvt$$4$$) {
    return this.$_arNodes$[$dvt$$4$$];
  };
  $DvtDiagramLayoutContext$$.prototype.$getNodeCount$ = function $$DvtDiagramLayoutContext$$$$$getNodeCount$$() {
    return this.$_nodeCount$;
  };
  $DvtDiagramLayoutContext$$.prototype.$addLink$ = function $$DvtDiagramLayoutContext$$$$$addLink$$($dvt$$4$$) {
    this.$getLinkById$($dvt$$4$$.getId()) || (this.$_linkCount$++, this.$_arLinks$.push($dvt$$4$$));
    this.$_links$[$dvt$$4$$.getId()] = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getLinkById$ = function $$DvtDiagramLayoutContext$$$$$getLinkById$$($dvt$$4$$) {
    return this.$_links$[$dvt$$4$$];
  };
  $DvtDiagramLayoutContext$$.prototype.$getLinkByIndex$ = function $$DvtDiagramLayoutContext$$$$$getLinkByIndex$$($dvt$$4$$) {
    return this.$_arLinks$[$dvt$$4$$];
  };
  $DvtDiagramLayoutContext$$.prototype.$getLinkCount$ = function $$DvtDiagramLayoutContext$$$$$getLinkCount$$() {
    return this.$_linkCount$;
  };
  $DvtDiagramLayoutContext$$.prototype.$localToGlobal$ = function $$DvtDiagramLayoutContext$$$$$localToGlobal$$($point$$30$$, $node$$157$$) {
    var $offset$$19$$ = this.$GetGlobalOffset$($node$$157$$);
    return new $dvt$$4$$.$DiagramPoint$($point$$30$$.x + $offset$$19$$.x, $point$$30$$.y + $offset$$19$$.y);
  };
  $DvtDiagramLayoutContext$$.prototype.$GetGlobalOffset$ = function $$DvtDiagramLayoutContext$$$$$GetGlobalOffset$$($containerId$$2_node$$158$$) {
    for (var $offset$$20$$ = new $dvt$$4$$.$DiagramPoint$(0, 0);$containerId$$2_node$$158$$;) {
      if ($offset$$20$$.x += $containerId$$2_node$$158$$.$ContentOffset$.x + $containerId$$2_node$$158$$.$getPosition$().x, $offset$$20$$.y += $containerId$$2_node$$158$$.$ContentOffset$.y + $containerId$$2_node$$158$$.$getPosition$().y, $containerId$$2_node$$158$$ = $containerId$$2_node$$158$$.$_containerId$) {
        if (($containerId$$2_node$$158$$ = this.$getNodeById$($containerId$$2_node$$158$$)) && $containerId$$2_node$$158$$.$isDisclosed$()) {
          var $containerPadding$$4$$ = $containerId$$2_node$$158$$.$getContainerPadding$();
          $containerPadding$$4$$ && ($offset$$20$$.x += $containerPadding$$4$$.left, $offset$$20$$.y += $containerPadding$$4$$.top);
        }
      } else {
        $containerId$$2_node$$158$$ = null;
      }
    }
    return $offset$$20$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setLocaleR2L$ = function $$DvtDiagramLayoutContext$$$$$setLocaleR2L$$($dvt$$4$$) {
    this.$_bLocaleR2L$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$isLocaleR2L$ = function $$DvtDiagramLayoutContext$$$$$isLocaleR2L$$() {
    return this.$_bLocaleR2L$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setComponentSize$ = function $$DvtDiagramLayoutContext$$$$$setComponentSize$$($dvt$$4$$) {
    this.$_componentSize$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getComponentSize$ = function $$DvtDiagramLayoutContext$$$$$getComponentSize$$() {
    return this.$_componentSize$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setViewport$ = function $$DvtDiagramLayoutContext$$$$$setViewport$$($dvt$$4$$) {
    this.$_viewport$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getViewport$ = function $$DvtDiagramLayoutContext$$$$$getViewport$$() {
    return this.$_viewport$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setContainerId$ = function $$DvtDiagramLayoutContext$$$$$setContainerId$$($dvt$$4$$) {
    this.$_containerId$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getContainerId$ = function $$DvtDiagramLayoutContext$$$$$getContainerId$$() {
    return this.$_containerId$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setContainerPadding$ = function $$DvtDiagramLayoutContext$$$$$setContainerPadding$$($dvt$$4$$, $right$$6$$, $bottom$$4$$, $left$$6$$) {
    this.$_containerId$ && (this.$_containerPadding$ = {}, "number" !== typeof $dvt$$4$$ && "string" !== typeof $dvt$$4$$ && ($left$$6$$ = $dvt$$4$$.left, $right$$6$$ = $dvt$$4$$.right, $bottom$$4$$ = $dvt$$4$$.bottom, $dvt$$4$$ = $dvt$$4$$.top), this.$_containerPadding$.top = $dvt$$4$$, this.$_containerPadding$.right = $right$$6$$, this.$_containerPadding$.bottom = $bottom$$4$$, this.$_containerPadding$.left = $left$$6$$);
  };
  $DvtDiagramLayoutContext$$.prototype.$getContainerPadding$ = function $$DvtDiagramLayoutContext$$$$$getContainerPadding$$() {
    return this.$_containerPadding$;
  };
  $DvtDiagramLayoutContext$$.prototype.$setCurrentViewport$ = function $$DvtDiagramLayoutContext$$$$$setCurrentViewport$$($dvt$$4$$) {
    this.$_currentViewport$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getCurrentViewport$ = function $$DvtDiagramLayoutContext$$$$$getCurrentViewport$$() {
    return this.$_currentViewport$;
  };
  $DvtDiagramLayoutContext$$.prototype.$getCommonContainer$ = function $$DvtDiagramLayoutContext$$$$$getCommonContainer$$($dvt$$4$$, $nodeId2$$) {
    function $getAllAncestorIds$$($dvt$$4$$, $nodeId1$$) {
      for (var $getAllAncestorIds$$ = [], $startPath$$ = $nodeId1$$.$getNodeById$($dvt$$4$$) ? $nodeId1$$.$getNodeById$($dvt$$4$$).$_containerId$ : null;$startPath$$;) {
        $getAllAncestorIds$$.push($startPath$$), $startPath$$ = $nodeId1$$.$getNodeById$($startPath$$) ? $nodeId1$$.$getNodeById$($startPath$$).$_containerId$ : null;
      }
      $getAllAncestorIds$$.reverse();
      return $getAllAncestorIds$$;
    }
    for (var $startPath$$ = $getAllAncestorIds$$($dvt$$4$$, this), $DvtDiagramLayoutContext$$ = $getAllAncestorIds$$($nodeId2$$, this), $DvtDiagramLayoutContextNode$$ = null, $DvtDiagramLayoutContextLink$$ = 0;$DvtDiagramLayoutContextLink$$ < $startPath$$.length && $DvtDiagramLayoutContextLink$$ < $DvtDiagramLayoutContext$$.length && $startPath$$[$DvtDiagramLayoutContextLink$$] == $DvtDiagramLayoutContext$$[$DvtDiagramLayoutContextLink$$];$DvtDiagramLayoutContextLink$$++) {
      $DvtDiagramLayoutContextNode$$ = $startPath$$[$DvtDiagramLayoutContextLink$$];
    }
    return $DvtDiagramLayoutContextNode$$;
  };
  $dvt$$4$$.$Obj$.$createSubclass$($DvtDiagramLayoutContextLink$$, $dvt$$4$$.$Obj$, "DvtDiagramLayoutContextLink");
  $DvtDiagramLayoutContextLink$$.prototype.Init = function $$DvtDiagramLayoutContextLink$$$$Init$($dvt$$4$$) {
    this.$_id$ = $dvt$$4$$ ? $dvt$$4$$.$_id$ : null;
    this.$_startId$ = $dvt$$4$$ ? $dvt$$4$$.$_startId$ : null;
    this.$_endId$ = $dvt$$4$$ ? $dvt$$4$$.$_endId$ : null;
    this.$_points$ = $dvt$$4$$ ? $dvt$$4$$.$_points$ : null;
    this.$_labelPosition$ = $dvt$$4$$ ? $dvt$$4$$.$_labelPosition$ : null;
    this.$_labelValign$ = $dvt$$4$$ ? $dvt$$4$$.$_labelValign$ : null;
    this.$_labelHalign$ = $dvt$$4$$ ? $dvt$$4$$.$_labelHalign$ : null;
    this.$_labelBounds$ = $dvt$$4$$ ? $dvt$$4$$.$_labelBounds$ : null;
    this.$_layoutAttrs$ = $dvt$$4$$ ? $dvt$$4$$.$_layoutAttrs$ : null;
    this.$_startConnectorOffset$ = $dvt$$4$$ ? $dvt$$4$$.$_startConnectorOffset$ : 0;
    this.$_endConnectorOffset$ = $dvt$$4$$ ? $dvt$$4$$.$_endConnectorOffset$ : 0;
    this.$_linkWidth$ = $dvt$$4$$ ? $dvt$$4$$.$_linkWidth$ : 1;
    this.$_selected$ = $dvt$$4$$ ? $dvt$$4$$.$_selected$ : !1;
    this.$_labelRotAngle$ = $dvt$$4$$ ? $dvt$$4$$.$_labelRotAngle$ : null;
    this.$_labelRotPoint$ = $dvt$$4$$ ? $dvt$$4$$.$_labelRotPoint$ : null;
    this.$_bPromoted$ = $dvt$$4$$ ? $dvt$$4$$.$_bPromoted$ : !1;
    this.$_containerId$ = $dvt$$4$$ ? $dvt$$4$$.$_containerId$ : null;
  };
  $DvtDiagramLayoutContextLink$$.prototype.setId = function $$DvtDiagramLayoutContextLink$$$$setId$($dvt$$4$$) {
    this.$_id$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.getId = function $$DvtDiagramLayoutContextLink$$$$getId$() {
    return this.$_id$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setStartId$ = function $$DvtDiagramLayoutContextLink$$$$$setStartId$$($dvt$$4$$) {
    this.$_startId$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getStartId$ = function $$DvtDiagramLayoutContextLink$$$$$getStartId$$() {
    return this.$_startId$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setEndId$ = function $$DvtDiagramLayoutContextLink$$$$$setEndId$$($dvt$$4$$) {
    this.$_endId$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getEndId$ = function $$DvtDiagramLayoutContextLink$$$$$getEndId$$() {
    return this.$_endId$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setPoints$ = function $$DvtDiagramLayoutContextLink$$$$$setPoints$$($points$$6$$) {
    this.$_points$ = "string" == typeof $points$$6$$ ? $dvt$$4$$.$PathUtils$.$createPathArray$($points$$6$$) : $points$$6$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getPoints$ = function $$DvtDiagramLayoutContextLink$$$$$getPoints$$() {
    return this.$_points$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLabelPosition$ = function $$DvtDiagramLayoutContextLink$$$$$setLabelPosition$$($dvt$$4$$) {
    this.$_labelPosition$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLabelPosition$ = function $$DvtDiagramLayoutContextLink$$$$$getLabelPosition$$() {
    return this.$_labelPosition$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLabelBounds$ = function $$DvtDiagramLayoutContextLink$$$$$setLabelBounds$$($dvt$$4$$) {
    this.$_labelBounds$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLabelBounds$ = function $$DvtDiagramLayoutContextLink$$$$$getLabelBounds$$() {
    return this.$_labelBounds$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setStartConnectorOffset$ = function $$DvtDiagramLayoutContextLink$$$$$setStartConnectorOffset$$($dvt$$4$$) {
    this.$_startConnectorOffset$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getStartConnectorOffset$ = function $$DvtDiagramLayoutContextLink$$$$$getStartConnectorOffset$$() {
    return this.$_startConnectorOffset$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setEndConnectorOffset$ = function $$DvtDiagramLayoutContextLink$$$$$setEndConnectorOffset$$($dvt$$4$$) {
    this.$_endConnectorOffset$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getEndConnectorOffset$ = function $$DvtDiagramLayoutContextLink$$$$$getEndConnectorOffset$$() {
    return this.$_endConnectorOffset$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLinkWidth$ = function $$DvtDiagramLayoutContextLink$$$$$setLinkWidth$$($dvt$$4$$) {
    this.$_linkWidth$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLinkWidth$ = function $$DvtDiagramLayoutContextLink$$$$$getLinkWidth$$() {
    return this.$_linkWidth$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLayoutAttributes$ = function $$DvtDiagramLayoutContextLink$$$$$setLayoutAttributes$$($dvt$$4$$) {
    this.$_layoutAttrs$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLayoutAttributes$ = function $$DvtDiagramLayoutContextLink$$$$$getLayoutAttributes$$() {
    return this.$_layoutAttrs$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setSelected$ = function $$DvtDiagramLayoutContextLink$$$$$setSelected$$($dvt$$4$$) {
    this.$_selected$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getSelected$ = function $$DvtDiagramLayoutContextLink$$$$$getSelected$$() {
    return this.$_selected$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLabelRotationAngle$ = function $$DvtDiagramLayoutContextLink$$$$$setLabelRotationAngle$$($dvt$$4$$) {
    this.$_labelRotAngle$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLabelRotationAngle$ = function $$DvtDiagramLayoutContextLink$$$$$getLabelRotationAngle$$() {
    return this.$_labelRotAngle$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLabelRotationPoint$ = function $$DvtDiagramLayoutContextLink$$$$$setLabelRotationPoint$$($dvt$$4$$) {
    this.$_labelRotPoint$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLabelRotationPoint$ = function $$DvtDiagramLayoutContextLink$$$$$getLabelRotationPoint$$() {
    return this.$_labelRotPoint$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setPromoted$ = function $$DvtDiagramLayoutContextLink$$$$$setPromoted$$($dvt$$4$$) {
    this.$_bPromoted$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$isPromoted$ = function $$DvtDiagramLayoutContextLink$$$$$isPromoted$$() {
    return this.$_bPromoted$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLabelValign$ = function $$DvtDiagramLayoutContextLink$$$$$setLabelValign$$($dvt$$4$$) {
    this.$_labelValign$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setLabelHalign$ = function $$DvtDiagramLayoutContextLink$$$$$setLabelHalign$$($dvt$$4$$) {
    this.$_labelHalign$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLabelValign$ = function $$DvtDiagramLayoutContextLink$$$$$getLabelValign$$() {
    return this.$_labelValign$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getLabelHalign$ = function $$DvtDiagramLayoutContextLink$$$$$getLabelHalign$$() {
    return this.$_labelHalign$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$setCoordinateSpace$ = function $$DvtDiagramLayoutContextLink$$$$$setCoordinateSpace$$($dvt$$4$$) {
    this.$_coordinateContainerId$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.$getCoordinateSpace$ = function $$DvtDiagramLayoutContextLink$$$$$getCoordinateSpace$$() {
    return this.$_coordinateContainerId$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.setData = function $$DvtDiagramLayoutContextLink$$$$setData$($dvt$$4$$) {
    this.$_data$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextLink$$.prototype.getData = function $$DvtDiagramLayoutContextLink$$$$getData$() {
    return this.$_data$;
  };
  $dvt$$4$$.$Obj$.$createSubclass$($DvtDiagramLayoutContextNode$$, $dvt$$4$$.$Obj$, "DvtDiagramLayoutContextNode");
  $DvtDiagramLayoutContextNode$$.prototype.Init = function $$DvtDiagramLayoutContextNode$$$$Init$($node$$160$$) {
    this.$_id$ = $node$$160$$ ? $node$$160$$.$_id$ : null;
    this.$_bounds$ = $node$$160$$ ? $node$$160$$.$_bounds$ : null;
    this.$_contentBounds$ = $node$$160$$ ? $node$$160$$.$_contentBounds$ : null;
    this.$_position$ = $node$$160$$ ? $node$$160$$.$_position$ : null;
    this.$_labelPosition$ = $node$$160$$ ? $node$$160$$.$_labelPosition$ : null;
    this.$_labelBounds$ = $node$$160$$ ? $node$$160$$.$_labelBounds$ : null;
    this.$_labelValign$ = $node$$160$$ ? $node$$160$$.$_labelValign$ : null;
    this.$_labelHalign$ = $node$$160$$ ? $node$$160$$.$_labelHalign$ : null;
    this.$_layoutAttrs$ = $node$$160$$ ? $node$$160$$.$_layoutAttrs$ : null;
    this.$_bReadOnly$ = $node$$160$$ ? $node$$160$$.$_bReadOnly$ : !1;
    this.$_containerId$ = $node$$160$$ ? $node$$160$$.$_containerId$ : null;
    this.$_selected$ = $node$$160$$ ? $node$$160$$.$_selected$ : !1;
    this.$_labelRotAngle$ = $node$$160$$ ? $node$$160$$.$_labelRotAngle$ : null;
    this.$_labelRotPoint$ = $node$$160$$ ? $node$$160$$.$_labelRotPoint$ : null;
    this.$_containerPadding$ = $node$$160$$ ? $node$$160$$.$_containerPadding$ : null;
    this.$_origBounds$ = $node$$160$$ ? $node$$160$$.$_origBounds$ : null;
    this.$_origContentBounds$ = $node$$160$$ ? $node$$160$$.$_origContentBounds$ : null;
    this.$_bDisclosed$ = $node$$160$$ ? $node$$160$$.$_bDisclosed$ : !1;
    this.$Component$ = $node$$160$$ ? $node$$160$$.$GetDiagram$() : null;
    this.$IsRendered$ = !0;
    this.$ContentOffset$ = new $dvt$$4$$.$DiagramPoint$(0, 0);
  };
  $DvtDiagramLayoutContextNode$$.prototype.setId = function $$DvtDiagramLayoutContextNode$$$$setId$($dvt$$4$$) {
    this.$_id$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.getId = function $$DvtDiagramLayoutContextNode$$$$getId$() {
    return this.$_id$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setBounds$ = function $$DvtDiagramLayoutContextNode$$$$$setBounds$$($dvt$$4$$) {
    this.$_origBounds$ = this.$_bounds$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getBounds$ = function $$DvtDiagramLayoutContextNode$$$$$getBounds$$() {
    !this.$IsRendered$ && this.$Component$ && this.$Component$.$renderNodeFromContext$(this);
    return this.$_bounds$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setContentBounds$ = function $$DvtDiagramLayoutContextNode$$$$$setContentBounds$$($dvt$$4$$) {
    this.$_origContentBounds$ = this.$_contentBounds$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getContentBounds$ = function $$DvtDiagramLayoutContextNode$$$$$getContentBounds$$() {
    !this.$IsRendered$ && this.$Component$ && this.$Component$.$renderNodeFromContext$(this);
    return this.$_contentBounds$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.setPosition = function $$DvtDiagramLayoutContextNode$$$$setPosition$($dvt$$4$$) {
    this.$_position$ = $dvt$$4$$;
    this.$_updateParentNodes$(this);
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getPosition$ = function $$DvtDiagramLayoutContextNode$$$$$getPosition$$() {
    return this.$_position$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getRelativePosition$ = function $$DvtDiagramLayoutContextNode$$$$$getRelativePosition$$($containerId$$5$$) {
    var $layoutContext$$12$$ = this.$LayoutContext$;
    if ($layoutContext$$12$$) {
      for (var $position$$12$$ = new $dvt$$4$$.$DiagramPoint$(0, 0), $node$$161$$ = this, $DvtDiagramLayoutContext$$ = !1;$node$$161$$;) {
        var $DvtDiagramLayoutContextNode$$ = $node$$161$$.$_containerId$;
        if ($DvtDiagramLayoutContextNode$$) {
          var $DvtDiagramLayoutContextLink$$ = $layoutContext$$12$$.$getNodeById$($DvtDiagramLayoutContextNode$$);
          $DvtDiagramLayoutContextLink$$ && this.$Component$ && !$DvtDiagramLayoutContextLink$$.$IsRendered$ && this.$Component$.$renderNodeFromContext$($DvtDiagramLayoutContextLink$$);
        }
        $position$$12$$.x += $node$$161$$.$ContentOffset$.x + $node$$161$$.$getPosition$().x;
        $position$$12$$.y += $node$$161$$.$ContentOffset$.y + $node$$161$$.$getPosition$().y;
        if ($DvtDiagramLayoutContextNode$$ != $containerId$$5$$) {
          if (($node$$161$$ = $layoutContext$$12$$.$getNodeById$($DvtDiagramLayoutContextNode$$)) && $node$$161$$.$isDisclosed$()) {
            if ($DvtDiagramLayoutContextNode$$ = $node$$161$$.$getContainerPadding$()) {
              $position$$12$$.x += $DvtDiagramLayoutContextNode$$.left, $position$$12$$.y += $DvtDiagramLayoutContextNode$$.top;
            }
          } else {
            $node$$161$$ = null;
          }
        } else {
          $DvtDiagramLayoutContext$$ = !0, $node$$161$$ = null;
        }
      }
      $DvtDiagramLayoutContext$$ || ($position$$12$$ = null);
      return $position$$12$$;
    }
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLabelPosition$ = function $$DvtDiagramLayoutContextNode$$$$$setLabelPosition$$($dvt$$4$$) {
    this.$_labelPosition$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLabelPosition$ = function $$DvtDiagramLayoutContextNode$$$$$getLabelPosition$$() {
    return this.$_labelPosition$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLabelBounds$ = function $$DvtDiagramLayoutContextNode$$$$$setLabelBounds$$($dvt$$4$$) {
    this.$_labelBounds$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLabelBounds$ = function $$DvtDiagramLayoutContextNode$$$$$getLabelBounds$$() {
    return this.$_labelBounds$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLayoutAttributes$ = function $$DvtDiagramLayoutContextNode$$$$$setLayoutAttributes$$($dvt$$4$$) {
    this.$_layoutAttrs$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLayoutAttributes$ = function $$DvtDiagramLayoutContextNode$$$$$getLayoutAttributes$$() {
    return this.$_layoutAttrs$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setReadOnly$ = function $$DvtDiagramLayoutContextNode$$$$$setReadOnly$$($dvt$$4$$) {
    this.$_bReadOnly$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$isReadOnly$ = function $$DvtDiagramLayoutContextNode$$$$$isReadOnly$$() {
    return this.$_bReadOnly$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setContainerId$ = function $$DvtDiagramLayoutContextNode$$$$$setContainerId$$($dvt$$4$$) {
    this.$_containerId$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getContainerId$ = function $$DvtDiagramLayoutContextNode$$$$$getContainerId$$() {
    return this.$_containerId$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setSelected$ = function $$DvtDiagramLayoutContextNode$$$$$setSelected$$($dvt$$4$$) {
    this.$_selected$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getSelected$ = function $$DvtDiagramLayoutContextNode$$$$$getSelected$$() {
    return this.$_selected$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLabelRotationAngle$ = function $$DvtDiagramLayoutContextNode$$$$$setLabelRotationAngle$$($dvt$$4$$) {
    this.$_labelRotAngle$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLabelRotationAngle$ = function $$DvtDiagramLayoutContextNode$$$$$getLabelRotationAngle$$() {
    return this.$_labelRotAngle$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLabelRotationPoint$ = function $$DvtDiagramLayoutContextNode$$$$$setLabelRotationPoint$$($dvt$$4$$) {
    this.$_labelRotPoint$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLabelRotationPoint$ = function $$DvtDiagramLayoutContextNode$$$$$getLabelRotationPoint$$() {
    return this.$_labelRotPoint$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$SetContainerPaddingObj$ = function $$DvtDiagramLayoutContextNode$$$$$SetContainerPaddingObj$$($obj$$112$$) {
    this.$isDisclosed$() && (this.$_containerPadding$ = $obj$$112$$) && (this.$_origBounds$ && (this.$_origBounds$ = new $dvt$$4$$.$DiagramRectangle$(this.$_origBounds$.x, this.$_origBounds$.y, this.$_origBounds$.w - ($obj$$112$$.left + $obj$$112$$.right), this.$_origBounds$.h - ($obj$$112$$.top + $obj$$112$$.bottom))), this.$_origContentBounds$ && (this.$_origContentBounds$ = new $dvt$$4$$.$DiagramRectangle$(this.$_origContentBounds$.x, this.$_origContentBounds$.y, this.$_origContentBounds$.w - 
    ($obj$$112$$.left + $obj$$112$$.right), this.$_origContentBounds$.h - ($obj$$112$$.top + $obj$$112$$.bottom))));
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setContainerPadding$ = function $$DvtDiagramLayoutContextNode$$$$$setContainerPadding$$($top$$6$$, $right$$7$$, $bottom$$5$$, $left$$7$$) {
    this.$isDisclosed$() && (this.$_containerPadding$ = {}, "number" !== typeof $top$$6$$ && "string" !== typeof $top$$6$$ && ($left$$7$$ = $top$$6$$.left, $right$$7$$ = $top$$6$$.right, $bottom$$5$$ = $top$$6$$.bottom, $top$$6$$ = $top$$6$$.top), this.$_containerPadding$.top = $top$$6$$, this.$_containerPadding$.right = $right$$7$$, this.$_containerPadding$.bottom = $bottom$$5$$, this.$_containerPadding$.left = $left$$7$$, this.$_origBounds$ && (this.$_bounds$ = new $dvt$$4$$.$DiagramRectangle$(this.$_origBounds$.x, 
    this.$_origBounds$.y, this.$_origBounds$.w + $left$$7$$ + $right$$7$$, this.$_origBounds$.h + $top$$6$$ + $bottom$$5$$)), this.$_origContentBounds$ && (this.$_contentBounds$ = new $dvt$$4$$.$DiagramRectangle$(this.$_origContentBounds$.x, this.$_origContentBounds$.y, this.$_origContentBounds$.w + $left$$7$$ + $right$$7$$, this.$_origContentBounds$.h + $top$$6$$ + $bottom$$5$$)));
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getContainerPadding$ = function $$DvtDiagramLayoutContextNode$$$$$getContainerPadding$$() {
    return this.$_containerPadding$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setDisclosed$ = function $$DvtDiagramLayoutContextNode$$$$$setDisclosed$$($dvt$$4$$) {
    this.$_bDisclosed$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$isDisclosed$ = function $$DvtDiagramLayoutContextNode$$$$$isDisclosed$$() {
    return this.$_bDisclosed$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setChildNodes$ = function $$DvtDiagramLayoutContextNode$$$$$setChildNodes$$($dvt$$4$$) {
    this.$_childNodes$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getChildNodes$ = function $$DvtDiagramLayoutContextNode$$$$$getChildNodes$$() {
    return this.$_childNodes$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setParentNode$ = function $$DvtDiagramLayoutContextNode$$$$$setParentNode$$($dvt$$4$$) {
    this.$_parentNode$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getParentNode$ = function $$DvtDiagramLayoutContextNode$$$$$getParentNode$$() {
    return this.$_parentNode$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$_updateParentNodes$ = function $$DvtDiagramLayoutContextNode$$$$$_updateParentNodes$$($dvt$$4$$) {
    ($dvt$$4$$ = $dvt$$4$$.$getParentNode$()) && $dvt$$4$$.$IsRendered$ && ($dvt$$4$$.$IsRendered$ = !1, this.$_updateParentNodes$($dvt$$4$$));
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLabelValign$ = function $$DvtDiagramLayoutContextNode$$$$$setLabelValign$$($dvt$$4$$) {
    this.$_labelValign$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$setLabelHalign$ = function $$DvtDiagramLayoutContextNode$$$$$setLabelHalign$$($dvt$$4$$) {
    this.$_labelHalign$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLabelValign$ = function $$DvtDiagramLayoutContextNode$$$$$getLabelValign$$() {
    return this.$_labelValign$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.$getLabelHalign$ = function $$DvtDiagramLayoutContextNode$$$$$getLabelHalign$$() {
    return this.$_labelHalign$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.setData = function $$DvtDiagramLayoutContextNode$$$$setData$($dvt$$4$$) {
    this.$_data$ = $dvt$$4$$;
  };
  $DvtDiagramLayoutContextNode$$.prototype.getData = function $$DvtDiagramLayoutContextNode$$$$getData$() {
    return this.$_data$;
  };
  $dvt$$4$$.$Obj$.$createSubclass$($DvtDiagramPoint$$, $dvt$$4$$.$Obj$, "DvtDiagramPoint");
  $DvtDiagramPoint$$.prototype.Init = function $$DvtDiagramPoint$$$$Init$($dvt$$4$$, $y$$70$$) {
    this.x = null === $dvt$$4$$ || isNaN($dvt$$4$$) ? 0 : $dvt$$4$$;
    this.y = null === $y$$70$$ || isNaN($y$$70$$) ? 0 : $y$$70$$;
  };
  $dvt$$4$$.$Obj$.$createSubclass$($DvtDiagramRectangle$$, $dvt$$4$$.$Obj$, "DvtDiagramRectangle");
  $DvtDiagramRectangle$$.prototype.Init = function $$DvtDiagramRectangle$$$$Init$($dvt$$4$$, $y$$72$$, $w$$17$$, $h$$13$$) {
    this.x = null === $dvt$$4$$ || isNaN($dvt$$4$$) ? 0 : $dvt$$4$$;
    this.y = null === $y$$72$$ || isNaN($y$$72$$) ? 0 : $y$$72$$;
    this.w = null === $w$$17$$ || isNaN($w$$17$$) ? 0 : $w$$17$$;
    this.h = null === $h$$13$$ || isNaN($h$$13$$) ? 0 : $h$$13$$;
  };
  $dvt$$4$$.$DiagramPoint$ = $DvtDiagramPoint$$;
  $dvt$$4$$.$DiagramRectangle$ = $DvtDiagramRectangle$$;
  $dvt$$4$$.$ShapeAnimationUtils$ = {};
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$ShapeAnimationUtils$, $dvt$$4$$.$Obj$);
  $dvt$$4$$.$ShapeAnimationUtils$.$transitionShapes$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$transitionShapes$$($oldShape$$, $newShape$$, $anim$$11$$) {
    $oldShape$$ && $newShape$$ && $oldShape$$ instanceof $dvt$$4$$.Text && $newShape$$ instanceof $dvt$$4$$.Text ? $dvt$$4$$.$ShapeAnimationUtils$.$TransitionTextToText$($oldShape$$, $newShape$$, $anim$$11$$) : $oldShape$$ && $newShape$$ && $oldShape$$ instanceof $dvt$$4$$.$Shape$ && $newShape$$ instanceof $dvt$$4$$.$Shape$ ? $dvt$$4$$.$ShapeAnimationUtils$.$TransitionShapeToShapeUsingPaths$($oldShape$$, $newShape$$, $anim$$11$$) : $oldShape$$ && $newShape$$ && $dvt$$4$$.$ShapeAnimationUtils$.$TransitionShapeToShape$($oldShape$$, 
    $newShape$$, $anim$$11$$);
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$TransitionTextToText$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$TransitionTextToText$$($oldShape$$1$$, $newShape$$1$$, $anim$$12$$) {
    $dvt$$4$$.$ShapeAnimationUtils$.$_transitionMatrix$($oldShape$$1$$, $newShape$$1$$, $anim$$12$$);
    var $oldFill$$1$$ = $oldShape$$1$$.$getFill$ ? $oldShape$$1$$.$getFill$() : null, $DvtDiagramLayoutContext$$ = $newShape$$1$$.$getFill$ ? $newShape$$1$$.$getFill$() : null;
    $anim$$12$$ && ($oldShape$$1$$.$getX$() != $newShape$$1$$.$getX$() && $anim$$12$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_NUMBER$, $oldShape$$1$$, $oldShape$$1$$.$getX$, $oldShape$$1$$.$setX$, $newShape$$1$$.$getX$()), $oldShape$$1$$.$getY$() != $newShape$$1$$.$getY$() && $anim$$12$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_NUMBER$, $oldShape$$1$$, $oldShape$$1$$.$getY$, $oldShape$$1$$.$setY$, $newShape$$1$$.$getY$()), $oldFill$$1$$ && $DvtDiagramLayoutContext$$ && $oldFill$$1$$ instanceof $dvt$$4$$.$SolidFill$ && 
    $DvtDiagramLayoutContext$$ instanceof $dvt$$4$$.$SolidFill$ && $oldFill$$1$$.$getColor$() != $DvtDiagramLayoutContext$$.$getColor$() && $anim$$12$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_FILL$, $oldShape$$1$$, $oldShape$$1$$.$getFill$, $oldShape$$1$$.$setFill$, $DvtDiagramLayoutContext$$));
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$TransitionShapeToShape$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$TransitionShapeToShape$$($oldShape$$2$$, $deltaSx_newShape$$2$$, $anim$$13$$) {
    var $newMat$$4_oldStageDims$$ = $oldShape$$2$$.$getDimensions$($oldShape$$2$$.$getCtx$().$_stage$), $DvtDiagramLayoutContext$$ = $deltaSx_newShape$$2$$.$getDimensions$($deltaSx_newShape$$2$$.$getCtx$().$_stage$), $DvtDiagramLayoutContextNode$$ = $oldShape$$2$$.$getFill$ ? $oldShape$$2$$.$getFill$() : null, $DvtDiagramLayoutContextLink$$ = $deltaSx_newShape$$2$$.$getFill$ ? $deltaSx_newShape$$2$$.$getFill$() : null, $oldStroke$$3$$ = $oldShape$$2$$.$getStroke$ ? $oldShape$$2$$.$getStroke$() : 
    null, $newStroke$$3$$ = $deltaSx_newShape$$2$$.$getStroke$ ? $deltaSx_newShape$$2$$.$getStroke$() : null;
    if ($anim$$13$$) {
      var $deltaSy$$ = $deltaSx_newShape$$2$$ = 1;
      $newMat$$4_oldStageDims$$.$w$ != $DvtDiagramLayoutContext$$.$w$ && ($deltaSx_newShape$$2$$ = $DvtDiagramLayoutContext$$.$w$ / $newMat$$4_oldStageDims$$.$w$);
      $newMat$$4_oldStageDims$$.$h$ != $DvtDiagramLayoutContext$$.$h$ && ($deltaSy$$ = $DvtDiagramLayoutContext$$.$h$ / $newMat$$4_oldStageDims$$.$h$);
      var $deltaTx$$ = 0, $deltaTy$$ = 0;
      $newMat$$4_oldStageDims$$.x != $DvtDiagramLayoutContext$$.x && ($deltaTx$$ = $DvtDiagramLayoutContext$$.x - $newMat$$4_oldStageDims$$.x);
      $newMat$$4_oldStageDims$$.y != $DvtDiagramLayoutContext$$.y && ($deltaTy$$ = $DvtDiagramLayoutContext$$.y - $newMat$$4_oldStageDims$$.y);
      $DvtDiagramLayoutContextNode$$ && $DvtDiagramLayoutContextLink$$ && $DvtDiagramLayoutContextNode$$ instanceof $dvt$$4$$.$SolidFill$ && $DvtDiagramLayoutContextLink$$ instanceof $dvt$$4$$.$SolidFill$ && $DvtDiagramLayoutContextNode$$.$getColor$() != $DvtDiagramLayoutContextLink$$.$getColor$() && $anim$$13$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_FILL$, $oldShape$$2$$, $oldShape$$2$$.$getFill$, $oldShape$$2$$.$setFill$, $DvtDiagramLayoutContextLink$$);
      $oldStroke$$3$$ && $newStroke$$3$$ && $oldStroke$$3$$ instanceof $dvt$$4$$.$SolidStroke$ && $newStroke$$3$$ instanceof $dvt$$4$$.$SolidStroke$ && $oldStroke$$3$$.$getColor$() != $newStroke$$3$$.$getColor$() && $anim$$13$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_STROKE$, $oldShape$$2$$, $oldShape$$2$$.$getStroke$, $oldShape$$2$$.$setStroke$, $newStroke$$3$$);
      if (0 != $deltaTx$$ || 0 != $deltaTy$$ || 1 != $deltaSx_newShape$$2$$ || 1 != $deltaSy$$) {
        $DvtDiagramLayoutContext$$ = new $dvt$$4$$.$Matrix$, $DvtDiagramLayoutContext$$.translate(-$newMat$$4_oldStageDims$$.x, -$newMat$$4_oldStageDims$$.y), $DvtDiagramLayoutContext$$.scale($deltaSx_newShape$$2$$, $deltaSy$$), $DvtDiagramLayoutContext$$.translate($newMat$$4_oldStageDims$$.x, $newMat$$4_oldStageDims$$.y), $DvtDiagramLayoutContext$$.translate($deltaTx$$, $deltaTy$$), $newMat$$4_oldStageDims$$ = $oldShape$$2$$.$getMatrix$().clone(), $newMat$$4_oldStageDims$$.concat($DvtDiagramLayoutContext$$), 
        $anim$$13$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_MATRIX$, $oldShape$$2$$, $oldShape$$2$$.$getMatrix$, $oldShape$$2$$.$setMatrix$, $newMat$$4_oldStageDims$$);
      }
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_transitionMatrix$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_transitionMatrix$$($oldShape$$3$$, $newMatrix_newShape$$3$$, $anim$$14$$) {
    if ($anim$$14$$) {
      var $oldMatrix_parentMat$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getCurrentTransformationMatrix$($oldShape$$3$$);
      $newMatrix_newShape$$3$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getCurrentTransformationMatrix$($newMatrix_newShape$$3$$);
      $oldMatrix_parentMat$$.$equals$($newMatrix_newShape$$3$$) || ($oldMatrix_parentMat$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getCurrentTransformationMatrix$($oldShape$$3$$.getParent()), $oldMatrix_parentMat$$.$invert$(), $newMatrix_newShape$$3$$.concat($oldMatrix_parentMat$$), $anim$$14$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_MATRIX$, $oldShape$$3$$, $oldShape$$3$$.$getMatrix$, $oldShape$$3$$.$setMatrix$, $newMatrix_newShape$$3$$));
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_getCurrentTransformationMatrix$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_getCurrentTransformationMatrix$$($ctm_displayable$$15_parent$$52$$) {
    var $arDisp$$ = [$ctm_displayable$$15_parent$$52$$];
    for ($ctm_displayable$$15_parent$$52$$ = $ctm_displayable$$15_parent$$52$$.getParent();$ctm_displayable$$15_parent$$52$$;) {
      $arDisp$$.push($ctm_displayable$$15_parent$$52$$), $ctm_displayable$$15_parent$$52$$ = $ctm_displayable$$15_parent$$52$$.getParent();
    }
    $ctm_displayable$$15_parent$$52$$ = new $dvt$$4$$.$Matrix$;
    for (var $i$$238$$ = 0;$i$$238$$ < $arDisp$$.length;$i$$238$$++) {
      $ctm_displayable$$15_parent$$52$$.concat($arDisp$$[$i$$238$$].$getMatrix$());
    }
    return $ctm_displayable$$15_parent$$52$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$TransitionShapeToShapeUsingPaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$TransitionShapeToShapeUsingPaths$$($oldShape$$4$$, $newCTM_newShape$$4$$, $anim$$15$$) {
    var $oldFill$$3_oldPath$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_convertShapeToPath$($oldShape$$4$$), $DvtDiagramLayoutContext$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_convertShapeToPath$($newCTM_newShape$$4$$);
    if ($oldFill$$3_oldPath$$ && $DvtDiagramLayoutContext$$) {
      $oldShape$$4$$ != $oldFill$$3_oldPath$$ && ($dvt$$4$$.$ShapeAnimationUtils$.$_replaceShape$($oldShape$$4$$, $oldFill$$3_oldPath$$), $oldShape$$4$$ = $oldFill$$3_oldPath$$);
      var $oldFill$$3_oldPath$$ = $oldShape$$4$$.$getFill$ ? $oldShape$$4$$.$getFill$() : null, $DvtDiagramLayoutContextNode$$ = $newCTM_newShape$$4$$.$getFill$ ? $newCTM_newShape$$4$$.$getFill$() : null;
      $anim$$15$$ && ($oldFill$$3_oldPath$$ && $DvtDiagramLayoutContextNode$$ && $oldFill$$3_oldPath$$ instanceof $dvt$$4$$.$SolidFill$ && $DvtDiagramLayoutContextNode$$ instanceof $dvt$$4$$.$SolidFill$ && $oldFill$$3_oldPath$$.$getColor$() != $DvtDiagramLayoutContextNode$$.$getColor$() && $anim$$15$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_FILL$, $oldShape$$4$$, $oldShape$$4$$.$getFill$, $oldShape$$4$$.$setFill$, $DvtDiagramLayoutContextNode$$), $newCTM_newShape$$4$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getCurrentTransformationMatrix$($newCTM_newShape$$4$$), 
      $dvt$$4$$.$ShapeAnimationUtils$.$_assimilatePaths$($oldShape$$4$$, $DvtDiagramLayoutContext$$, $anim$$15$$, $newCTM_newShape$$4$$));
    } else {
      $dvt$$4$$.$ShapeAnimationUtils$.$TransitionShapeToShape$($oldShape$$4$$, $newCTM_newShape$$4$$, $anim$$15$$);
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_convertShapeToPath$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_convertShapeToPath$$($shape$$31$$) {
    if ($shape$$31$$ instanceof $dvt$$4$$.$Path$) {
      return $shape$$31$$;
    }
    var $points$$7$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPathPoints$($shape$$31$$);
    return $points$$7$$ ? new $dvt$$4$$.$Path$($shape$$31$$.$getCtx$(), $points$$7$$) : null;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_replaceShape$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_replaceShape$$($dvt$$4$$, $newShape$$5$$) {
    var $fill$$19_numChildren$$12$$ = $dvt$$4$$.$getFill$(), $i$$239_stroke$$22$$ = $dvt$$4$$.$getStroke$(), $DvtDiagramLayoutContext$$ = $dvt$$4$$.$getMatrix$(), $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.getParent().$getChildIndex$($dvt$$4$$);
    $dvt$$4$$.getParent().$addChildAt$($newShape$$5$$, $DvtDiagramLayoutContextNode$$);
    $dvt$$4$$.$setFill$(null);
    $dvt$$4$$.$setStroke$(null);
    $dvt$$4$$.$setMatrix$(null);
    $newShape$$5$$.$setFill$($fill$$19_numChildren$$12$$);
    $newShape$$5$$.$setStroke$($i$$239_stroke$$22$$);
    $newShape$$5$$.$setMatrix$($DvtDiagramLayoutContext$$);
    $fill$$19_numChildren$$12$$ = $dvt$$4$$.$getNumChildren$();
    for ($i$$239_stroke$$22$$ = 0;$i$$239_stroke$$22$$ < $fill$$19_numChildren$$12$$;$i$$239_stroke$$22$$++) {
      $newShape$$5$$.$addChild$($dvt$$4$$.$getChildAt$(0));
    }
    $dvt$$4$$.getParent().removeChild($dvt$$4$$);
    $dvt$$4$$.$destroy$ && $dvt$$4$$.$destroy$();
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_getPathPoints$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_getPathPoints$$($angleExtent_cpa_shape$$32$$) {
    var $arPoints$$2_cbx$$;
    if ($angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.Rect) {
      var $points$$8_rx$$5_sa$$1$$ = $angleExtent_cpa_shape$$32$$.$getRx$(), $ae_ry$$1$$ = $angleExtent_cpa_shape$$32$$.$getRy$(), $DvtDiagramLayoutContext$$ = $angleExtent_cpa_shape$$32$$.$getX$(), $DvtDiagramLayoutContextNode$$ = $angleExtent_cpa_shape$$32$$.$getY$(), $DvtDiagramLayoutContextLink$$ = $angleExtent_cpa_shape$$32$$.getWidth(), $controlPoint2_h$$14$$ = $angleExtent_cpa_shape$$32$$.getHeight();
      if ($points$$8_rx$$5_sa$$1$$ && $ae_ry$$1$$) {
        $angleExtent_cpa_shape$$32$$ = .5 * Math.PI;
        var $ax_cpb_pointA$$ = Math.cos(.5 * $angleExtent_cpa_shape$$32$$), $ay$$ = Math.sin(.5 * $angleExtent_cpa_shape$$32$$), $bx_pointB$$ = $ax_cpb_pointA$$, $by$$ = -$ay$$, $cax_pointCA$$ = (4 - $ax_cpb_pointA$$) / 3, $cay_endPoint_mat$$7$$ = (1 - $ax_cpb_pointA$$) * (3 - $ax_cpb_pointA$$) / (3 * $ay$$);
        $arPoints$$2_cbx$$ = $cax_pointCA$$;
        var $cby_pointCB$$ = -$cay_endPoint_mat$$7$$, $ax_cpb_pointA$$ = new $dvt$$4$$.$Point$($ax_cpb_pointA$$, $ay$$), $bx_pointB$$ = new $dvt$$4$$.$Point$($bx_pointB$$, $by$$), $cax_pointCA$$ = new $dvt$$4$$.$Point$($cax_pointCA$$, $cay_endPoint_mat$$7$$), $cby_pointCB$$ = new $dvt$$4$$.$Point$($arPoints$$2_cbx$$, $cby_pointCB$$), $cay_endPoint_mat$$7$$ = new $dvt$$4$$.$Matrix$;
        $cay_endPoint_mat$$7$$.rotate(.5 * $angleExtent_cpa_shape$$32$$);
        $cay_endPoint_mat$$7$$.scale($points$$8_rx$$5_sa$$1$$, $ae_ry$$1$$);
        $angleExtent_cpa_shape$$32$$ = $cay_endPoint_mat$$7$$.$transformPoint$($cax_pointCA$$);
        var $ax_cpb_pointA$$ = $cay_endPoint_mat$$7$$.$transformPoint$($cby_pointCB$$), $cx$$4$$ = $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$ - $points$$8_rx$$5_sa$$1$$, $cy$$5$$ = $DvtDiagramLayoutContextNode$$ + $ae_ry$$1$$;
        $arPoints$$2_cbx$$ = ["M", $DvtDiagramLayoutContext$$ + $points$$8_rx$$5_sa$$1$$, $DvtDiagramLayoutContextNode$$, "L", $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$ - $points$$8_rx$$5_sa$$1$$, $DvtDiagramLayoutContextNode$$, "C", $cx$$4$$ + $angleExtent_cpa_shape$$32$$.x, $cy$$5$$ - $angleExtent_cpa_shape$$32$$.y, $cx$$4$$ + $ax_cpb_pointA$$.x, $cy$$5$$ - $ax_cpb_pointA$$.y, $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$, $DvtDiagramLayoutContextNode$$ + $ae_ry$$1$$];
        $cy$$5$$ = $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$ - $ae_ry$$1$$;
        $arPoints$$2_cbx$$.push("L", $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$, $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$ - $ae_ry$$1$$, "C", $cx$$4$$ + $ax_cpb_pointA$$.x, $cy$$5$$ + $ax_cpb_pointA$$.y, $cx$$4$$ + $angleExtent_cpa_shape$$32$$.x, $cy$$5$$ + $angleExtent_cpa_shape$$32$$.y, $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$ - $points$$8_rx$$5_sa$$1$$, $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$);
        $cx$$4$$ = $DvtDiagramLayoutContext$$ + $points$$8_rx$$5_sa$$1$$;
        $arPoints$$2_cbx$$.push("L", $DvtDiagramLayoutContext$$ + $points$$8_rx$$5_sa$$1$$, $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$, "C", $cx$$4$$ - $angleExtent_cpa_shape$$32$$.x, $cy$$5$$ + $angleExtent_cpa_shape$$32$$.y, $cx$$4$$ - $ax_cpb_pointA$$.x, $cy$$5$$ + $ax_cpb_pointA$$.y, $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$ - $ae_ry$$1$$);
        $cy$$5$$ = $DvtDiagramLayoutContextNode$$ + $ae_ry$$1$$;
        $arPoints$$2_cbx$$.push("L", $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$ + $ae_ry$$1$$, "C", $cx$$4$$ - $ax_cpb_pointA$$.x, $cy$$5$$ - $ax_cpb_pointA$$.y, $cx$$4$$ - $angleExtent_cpa_shape$$32$$.x, $cy$$5$$ - $angleExtent_cpa_shape$$32$$.y, $DvtDiagramLayoutContext$$ + $points$$8_rx$$5_sa$$1$$, $DvtDiagramLayoutContextNode$$, "Z");
      } else {
        $arPoints$$2_cbx$$ = ["M", $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$, "L", $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$, $DvtDiagramLayoutContextNode$$, "L", $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextLink$$, $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$, "L", $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$ + $controlPoint2_h$$14$$, "Z"];
      }
    } else {
      if ($angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Polyline$ || $angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Polygon$) {
        if ($points$$8_rx$$5_sa$$1$$ = $angleExtent_cpa_shape$$32$$.$getPoints$()) {
          $arPoints$$2_cbx$$ = [];
          for ($DvtDiagramLayoutContextNode$$ = 0;$DvtDiagramLayoutContextNode$$ < $points$$8_rx$$5_sa$$1$$.length;$DvtDiagramLayoutContextNode$$ += 2) {
            0 == $DvtDiagramLayoutContextNode$$ ? $arPoints$$2_cbx$$.push("M", $points$$8_rx$$5_sa$$1$$[$DvtDiagramLayoutContextNode$$], $points$$8_rx$$5_sa$$1$$[$DvtDiagramLayoutContextNode$$ + 1]) : $arPoints$$2_cbx$$.push("L", $points$$8_rx$$5_sa$$1$$[$DvtDiagramLayoutContextNode$$], $points$$8_rx$$5_sa$$1$$[$DvtDiagramLayoutContextNode$$ + 1]);
          }
          $angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Polygon$ && $arPoints$$2_cbx$$.push("Z");
        }
      } else {
        if ($angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Line$) {
          $arPoints$$2_cbx$$ = ["M", $angleExtent_cpa_shape$$32$$.$getX1$(), $angleExtent_cpa_shape$$32$$.$getY1$(), "L", $angleExtent_cpa_shape$$32$$.$getX2$(), $angleExtent_cpa_shape$$32$$.$getY2$()];
        } else {
          if ($angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Circle$) {
            $cx$$4$$ = $angleExtent_cpa_shape$$32$$.$getCx$();
            $cy$$5$$ = $angleExtent_cpa_shape$$32$$.$getCy$();
            $angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Oval$ ? ($points$$8_rx$$5_sa$$1$$ = $angleExtent_cpa_shape$$32$$.$getRx$(), $ae_ry$$1$$ = $angleExtent_cpa_shape$$32$$.$getRy$()) : $ae_ry$$1$$ = $points$$8_rx$$5_sa$$1$$ = $angleExtent_cpa_shape$$32$$.$getRadius$();
            $DvtDiagramLayoutContext$$ = -.5 * Math.PI;
            $angleExtent_cpa_shape$$32$$ = 2 * Math.PI / 4;
            $ax_cpb_pointA$$ = Math.cos(.5 * $angleExtent_cpa_shape$$32$$);
            $ay$$ = Math.sin(.5 * $angleExtent_cpa_shape$$32$$);
            $bx_pointB$$ = $ax_cpb_pointA$$;
            $by$$ = -$ay$$;
            $cax_pointCA$$ = (4 - $ax_cpb_pointA$$) / 3;
            $cay_endPoint_mat$$7$$ = (1 - $ax_cpb_pointA$$) * (3 - $ax_cpb_pointA$$) / (3 * $ay$$);
            $arPoints$$2_cbx$$ = $cax_pointCA$$;
            $cby_pointCB$$ = -$cay_endPoint_mat$$7$$;
            $ax_cpb_pointA$$ = new $dvt$$4$$.$Point$($ax_cpb_pointA$$, $ay$$);
            $bx_pointB$$ = new $dvt$$4$$.$Point$($bx_pointB$$, $by$$);
            $cax_pointCA$$ = new $dvt$$4$$.$Point$($cax_pointCA$$, $cay_endPoint_mat$$7$$);
            $cby_pointCB$$ = new $dvt$$4$$.$Point$($arPoints$$2_cbx$$, $cby_pointCB$$);
            $arPoints$$2_cbx$$ = [];
            for ($DvtDiagramLayoutContextNode$$ = 0;4 > $DvtDiagramLayoutContextNode$$;$DvtDiagramLayoutContextNode$$++) {
              $cay_endPoint_mat$$7$$ = new $dvt$$4$$.$Matrix$, $cay_endPoint_mat$$7$$.rotate($DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextNode$$ * $angleExtent_cpa_shape$$32$$), $cay_endPoint_mat$$7$$.scale($points$$8_rx$$5_sa$$1$$, $ae_ry$$1$$), 0 == $DvtDiagramLayoutContextNode$$ && ($DvtDiagramLayoutContextLink$$ = $cay_endPoint_mat$$7$$.$transformPoint$($bx_pointB$$), $arPoints$$2_cbx$$.push("M", $cx$$4$$ + $DvtDiagramLayoutContextLink$$.x, $cy$$5$$ + $DvtDiagramLayoutContextLink$$.y)), 
              $DvtDiagramLayoutContextLink$$ = $cay_endPoint_mat$$7$$.$transformPoint$($cby_pointCB$$), $controlPoint2_h$$14$$ = $cay_endPoint_mat$$7$$.$transformPoint$($cax_pointCA$$), $cay_endPoint_mat$$7$$ = $cay_endPoint_mat$$7$$.$transformPoint$($ax_cpb_pointA$$), $arPoints$$2_cbx$$.push("C", $cx$$4$$ + $DvtDiagramLayoutContextLink$$.x, $cy$$5$$ + $DvtDiagramLayoutContextLink$$.y, $cx$$4$$ + $controlPoint2_h$$14$$.x, $cy$$5$$ + $controlPoint2_h$$14$$.y, $cx$$4$$ + $cay_endPoint_mat$$7$$.x, $cy$$5$$ + 
              $cay_endPoint_mat$$7$$.y);
            }
            $arPoints$$2_cbx$$.push("Z");
          } else {
            $angleExtent_cpa_shape$$32$$ instanceof $dvt$$4$$.$Arc$ && ($points$$8_rx$$5_sa$$1$$ = $angleExtent_cpa_shape$$32$$.$getAngleStart$() * $dvt$$4$$.Math.$RADS_PER_DEGREE$, $ae_ry$$1$$ = $angleExtent_cpa_shape$$32$$.$getAngleExtent$() * $dvt$$4$$.Math.$RADS_PER_DEGREE$, $arPoints$$2_cbx$$ = ["M", $angleExtent_cpa_shape$$32$$.$getCx$() + $angleExtent_cpa_shape$$32$$.$getRx$() * Math.cos($points$$8_rx$$5_sa$$1$$), $angleExtent_cpa_shape$$32$$.$getCy$() - $angleExtent_cpa_shape$$32$$.$getRy$() * 
            Math.sin($points$$8_rx$$5_sa$$1$$), "A", $angleExtent_cpa_shape$$32$$.$getRx$(), $angleExtent_cpa_shape$$32$$.$getRy$(), "0", 180 < Math.abs($angleExtent_cpa_shape$$32$$.$getAngleExtent$()) ? "1" : "0", 0 < $angleExtent_cpa_shape$$32$$.$getAngleExtent$() ? "0" : "1", $angleExtent_cpa_shape$$32$$.$getCx$() + $angleExtent_cpa_shape$$32$$.$getRx$() * Math.cos($points$$8_rx$$5_sa$$1$$ + $ae_ry$$1$$), $angleExtent_cpa_shape$$32$$.$getCy$() - $angleExtent_cpa_shape$$32$$.$getRy$() * Math.sin($points$$8_rx$$5_sa$$1$$ + 
            $ae_ry$$1$$)], $angleExtent_cpa_shape$$32$$.$_ct$ === $dvt$$4$$.$Arc$.$CHORD$ ? $arPoints$$2_cbx$$.push("Z") : $angleExtent_cpa_shape$$32$$.$_ct$ === $dvt$$4$$.$Arc$.$PIE$ && $arPoints$$2_cbx$$.push("L", $angleExtent_cpa_shape$$32$$.$getCx$(), $angleExtent_cpa_shape$$32$$.$getCy$(), "Z"));
          }
        }
      }
    }
    return $arPoints$$2_cbx$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_getNextCommandIndex$$($dvt$$4$$, $index$$124$$) {
    for (;$index$$124$$ < $dvt$$4$$.length && !isNaN($dvt$$4$$[$index$$124$$]);) {
      $index$$124$$++;
    }
    return $index$$124$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_getPrevCommandIndex$$($dvt$$4$$, $index$$125$$) {
    for (;-1 < $index$$125$$ && !isNaN($dvt$$4$$[$index$$125$$]);) {
      $index$$125$$--;
    }
    return $index$$125$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_countCommands$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_countCommands$$($dvt$$4$$) {
    for (var $count$$16$$ = 0, $i$$241$$ = 0;$i$$241$$ < $dvt$$4$$.length;$i$$241$$++) {
      isNaN($dvt$$4$$[$i$$241$$]) && $count$$16$$++;
    }
    return $count$$16$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makePathsSameLength$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makePathsSameLength$$($oldPoints$$2$$, $newPoints$$1$$) {
    var $oldCommandCount_shortPathPoints$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_countCommands$($oldPoints$$2$$), $insertInterval_newCommandCount$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_countCommands$($newPoints$$1$$);
    if ($oldCommandCount_shortPathPoints$$ != $insertInterval_newCommandCount$$) {
      var $DvtDiagramLayoutContext$$ = 0, $DvtDiagramLayoutContextNode$$ = 0;
      $oldCommandCount_shortPathPoints$$ > $insertInterval_newCommandCount$$ ? ($DvtDiagramLayoutContext$$ = $oldCommandCount_shortPathPoints$$ - $insertInterval_newCommandCount$$, $DvtDiagramLayoutContextNode$$ = $insertInterval_newCommandCount$$, $oldCommandCount_shortPathPoints$$ = $newPoints$$1$$) : ($DvtDiagramLayoutContext$$ = $insertInterval_newCommandCount$$ - $oldCommandCount_shortPathPoints$$, $DvtDiagramLayoutContextNode$$ = $oldCommandCount_shortPathPoints$$, $oldCommandCount_shortPathPoints$$ = 
      $oldPoints$$2$$);
      $insertInterval_newCommandCount$$ = Math.floor($DvtDiagramLayoutContextNode$$ / $DvtDiagramLayoutContext$$);
      1 > $insertInterval_newCommandCount$$ && ($insertInterval_newCommandCount$$ = 1);
      $DvtDiagramLayoutContextNode$$ = Math.floor($DvtDiagramLayoutContext$$ / $DvtDiagramLayoutContextNode$$);
      1 > $DvtDiagramLayoutContextNode$$ && ($DvtDiagramLayoutContextNode$$ = 1);
      for (var $DvtDiagramLayoutContextLink$$ = -1, $i$$242$$ = 0;$i$$242$$ < $oldCommandCount_shortPathPoints$$.length;$i$$242$$++) {
        if (isNaN($oldCommandCount_shortPathPoints$$[$i$$242$$])) {
          if ($DvtDiagramLayoutContextLink$$ == $insertInterval_newCommandCount$$) {
            for (var $j$$34$$ = $DvtDiagramLayoutContextLink$$ = 0;$j$$34$$ < $DvtDiagramLayoutContextNode$$;$j$$34$$++) {
              $oldCommandCount_shortPathPoints$$.splice($i$$242$$++, 0, "tmp"), $DvtDiagramLayoutContext$$--;
            }
          }
          $DvtDiagramLayoutContextLink$$++;
        }
      }
      for ($i$$242$$ = 0;$i$$242$$ < $DvtDiagramLayoutContext$$;$i$$242$$++) {
        "Z" == $oldCommandCount_shortPathPoints$$[$oldCommandCount_shortPathPoints$$.length - 1] ? $oldCommandCount_shortPathPoints$$.splice($oldCommandCount_shortPathPoints$$.length - 1, 0, "tmp") : $oldCommandCount_shortPathPoints$$.push("tmp");
      }
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_modifyClosePath$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_modifyClosePath$$($dvt$$4$$) {
    return 2 < $dvt$$4$$.length && "Z" == $dvt$$4$$[$dvt$$4$$.length - 1] ? ($dvt$$4$$.splice($dvt$$4$$.length - 1, 1), $dvt$$4$$.push("L", $dvt$$4$$[1], $dvt$$4$$[2]), !0) : !1;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_assimilatePaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_assimilatePaths$$($oldShape$$6$$, $newShape$$6_obj$$113$$, $anim$$16$$, $newCTM$$1$$) {
    $newShape$$6_obj$$113$$ = $dvt$$4$$.$ShapeAnimationUtils$.$getAssimilatedPaths$($oldShape$$6$$.$getCommands$(), $newShape$$6_obj$$113$$.$getCommands$());
    var $DvtDiagramLayoutContext$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getCurrentTransformationMatrix$($oldShape$$6$$);
    $DvtDiagramLayoutContext$$ && $dvt$$4$$.$ShapeAnimationUtils$.$_transformPathCoords$($newShape$$6_obj$$113$$.$updatedOldPath$, $DvtDiagramLayoutContext$$);
    $oldShape$$6$$.$setMatrix$(null);
    $newCTM$$1$$ && $dvt$$4$$.$ShapeAnimationUtils$.$_transformPathCoords$($newShape$$6_obj$$113$$.$updatedNewPath$, $newCTM$$1$$);
    $oldShape$$6$$.$setCommands$($newShape$$6_obj$$113$$.$updatedOldPath$);
    $anim$$16$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_PATH$, $oldShape$$6$$, $oldShape$$6$$.$getCommands$, $oldShape$$6$$.$setCommands$, $newShape$$6_obj$$113$$.$updatedNewPath$);
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$getAssimilatedPaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$getAssimilatedPaths$$($oldPathCommands$$, $newPathCommands$$) {
    var $oldPoints$$3$$ = $dvt$$4$$.$ArrayUtils$.copy($oldPathCommands$$), $newPoints$$2$$ = $dvt$$4$$.$ArrayUtils$.copy($newPathCommands$$), $DvtDiagramLayoutContext$$ = [], $DvtDiagramLayoutContextNode$$ = [];
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeImplicitCommandsExplicit$($oldPoints$$3$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeImplicitCommandsExplicit$($newPoints$$2$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeRelativeCommandsAbsolute$($oldPoints$$3$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeRelativeCommandsAbsolute$($newPoints$$2$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeShorthandCommandsVerbose$($oldPoints$$3$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeShorthandCommandsVerbose$($newPoints$$2$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeSubpathsExplicit$($oldPoints$$3$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_makeSubpathsExplicit$($newPoints$$2$$);
    var $DvtDiagramLayoutContextLink$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_breakIntoSubpaths$($oldPoints$$3$$), $newSubpaths$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_breakIntoSubpaths$($newPoints$$2$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_sortSubpaths$($DvtDiagramLayoutContextLink$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_sortSubpaths$($newSubpaths$$);
    for (var $i$$243$$ = 0;$i$$243$$ < Math.max($DvtDiagramLayoutContextLink$$.length, $newSubpaths$$.length);$i$$243$$++) {
      var $subpathUpdatedOldPoints$$ = [], $subpathUpdatedNewPoints$$ = [], $subpathOldPoints$$ = null, $subpathNewPoints$$ = null;
      $i$$243$$ < $DvtDiagramLayoutContextLink$$.length ? $subpathOldPoints$$ = $DvtDiagramLayoutContextLink$$[$i$$243$$] : ($subpathOldPoints$$ = ["M", $oldPoints$$3$$[1], $oldPoints$$3$$[2]], "Z" == $newSubpaths$$[$i$$243$$][$newSubpaths$$[$i$$243$$].length - 1] && $subpathOldPoints$$.push("Z"));
      $i$$243$$ < $newSubpaths$$.length ? $subpathNewPoints$$ = $newSubpaths$$[$i$$243$$] : ($subpathNewPoints$$ = ["M", $newPoints$$2$$[1], $newPoints$$2$$[2]], "Z" == $DvtDiagramLayoutContextLink$$[$i$$243$$][$DvtDiagramLayoutContextLink$$[$i$$243$$].length - 1] && $subpathNewPoints$$.push("Z"));
      $dvt$$4$$.$ShapeAnimationUtils$.$_assimilateSubpaths$($subpathOldPoints$$, $subpathNewPoints$$, $subpathUpdatedOldPoints$$, $subpathUpdatedNewPoints$$);
      $DvtDiagramLayoutContextNode$$ = $DvtDiagramLayoutContextNode$$.concat($subpathUpdatedOldPoints$$);
      $DvtDiagramLayoutContext$$ = $DvtDiagramLayoutContext$$.concat($subpathUpdatedNewPoints$$);
    }
    return {$updatedOldPath$:$DvtDiagramLayoutContextNode$$, $updatedNewPath$:$DvtDiagramLayoutContext$$};
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_breakIntoSubpaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_breakIntoSubpaths$$($dvt$$4$$) {
    for (var $ar$$3$$ = [], $startIndex$$6$$ = 0, $i$$244$$ = 1;$i$$244$$ < $dvt$$4$$.length;$i$$244$$++) {
      if ("M" == $dvt$$4$$[$i$$244$$] || "m" == $dvt$$4$$[$i$$244$$]) {
        $ar$$3$$.push($dvt$$4$$.slice($startIndex$$6$$, $i$$244$$)), $startIndex$$6$$ = $i$$244$$;
      }
    }
    1 > $ar$$3$$.length ? $ar$$3$$.push($dvt$$4$$) : $startIndex$$6$$ < $dvt$$4$$.length && $ar$$3$$.push($dvt$$4$$.slice($startIndex$$6$$));
    return $ar$$3$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_sortSubpaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_sortSubpaths$$($arSubpaths$$) {
    $arSubpaths$$.sort($dvt$$4$$.$ShapeAnimationUtils$.$_compareSubpaths$);
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_compareSubpaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_compareSubpaths$$($subpath1$$, $subpath2$$) {
    var $length1$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_calcSubpathLength$($subpath1$$), $length2$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_calcSubpathLength$($subpath2$$);
    return $length1$$ > $length2$$ ? -1 : $length2$$ > $length1$$ ? 1 : 0;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_calcSubpathLength$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_calcSubpathLength$$($points$$11$$) {
    for (var $currX$$5$$ = 0, $currY$$5$$ = 0, $prevX$$ = 0, $DvtDiagramLayoutContext$$ = 0, $DvtDiagramLayoutContextNode$$ = 0, $DvtDiagramLayoutContextLink$$ = 0, $totalLength$$ = 0, $i$$245$$ = 0;$i$$245$$ < $points$$11$$.length;) {
      switch($points$$11$$[$i$$245$$]) {
        case "M":
          $DvtDiagramLayoutContextNode$$ = $points$$11$$[$i$$245$$ + 1];
          $DvtDiagramLayoutContextLink$$ = $points$$11$$[$i$$245$$ + 2];
          break;
        case "L":
          $currX$$5$$ = $points$$11$$[$i$$245$$ + 1];
          $currY$$5$$ = $points$$11$$[$i$$245$$ + 2];
          break;
        case "C":
          $currX$$5$$ = $points$$11$$[$i$$245$$ + 5];
          $currY$$5$$ = $points$$11$$[$i$$245$$ + 6];
          break;
        case "Q":
          $currX$$5$$ = $points$$11$$[$i$$245$$ + 3];
          $currY$$5$$ = $points$$11$$[$i$$245$$ + 4];
          break;
        case "A":
          $currX$$5$$ = $points$$11$$[$i$$245$$ + 6];
          $currY$$5$$ = $points$$11$$[$i$$245$$ + 7];
          break;
        case "Z":
          $currX$$5$$ = $DvtDiagramLayoutContextNode$$, $currY$$5$$ = $DvtDiagramLayoutContextLink$$;
      }
      $totalLength$$ += Math.sqrt(($currX$$5$$ - $prevX$$) * ($currX$$5$$ - $prevX$$) + ($currY$$5$$ - $DvtDiagramLayoutContext$$) * ($currY$$5$$ - $DvtDiagramLayoutContext$$));
      $i$$245$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$11$$, $i$$245$$ + 1);
      $prevX$$ = $currX$$5$$;
      $DvtDiagramLayoutContext$$ = $currY$$5$$;
    }
    return $totalLength$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_assimilateSubpaths$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_assimilateSubpaths$$($oldPoints$$4$$, $newPoints$$3$$, $updatedOldPoints$$1$$, $updatedNewPoints$$1$$) {
    var $DvtDiagramLayoutContext$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_modifyClosePath$($oldPoints$$4$$), $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_modifyClosePath$($newPoints$$3$$);
    if ($DvtDiagramLayoutContext$$ || $oldPoints$$4$$[$oldPoints$$4$$.length - 2] == $oldPoints$$4$$[1] && $oldPoints$$4$$[$oldPoints$$4$$.length - 1] == $oldPoints$$4$$[2]) {
      $oldPoints$$4$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_makePathStartAtTopLeft$($oldPoints$$4$$), $oldPoints$$4$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_makePathClockwise$($oldPoints$$4$$);
    }
    if ($DvtDiagramLayoutContextNode$$ || $newPoints$$3$$[$newPoints$$3$$.length - 2] == $newPoints$$3$$[1] && $newPoints$$3$$[$newPoints$$3$$.length - 1] == $newPoints$$3$$[2]) {
      $newPoints$$3$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_makePathStartAtTopLeft$($newPoints$$3$$), $newPoints$$3$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_makePathClockwise$($newPoints$$3$$);
    }
    $dvt$$4$$.$ShapeAnimationUtils$.$_makePathsSameLength$($oldPoints$$4$$, $newPoints$$3$$);
    $dvt$$4$$.$ShapeAnimationUtils$.$_assimilatePathCommands$($oldPoints$$4$$, $newPoints$$3$$, $updatedOldPoints$$1$$, $updatedNewPoints$$1$$);
    $DvtDiagramLayoutContext$$ && $oldPoints$$4$$.push("Z");
    $DvtDiagramLayoutContextNode$$ && $newPoints$$3$$.push("Z");
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_assimilatePathCommands$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_assimilatePathCommands$$($oldPoints$$5$$, $newPoints$$4$$, $updatedOldPoints$$2$$, $updatedNewPoints$$2$$) {
    for (var $DvtDiagramLayoutContext$$ = 0, $DvtDiagramLayoutContextNode$$ = 0, $DvtDiagramLayoutContextLink$$ = 0, $prevOldY$$ = 0, $prevNewX$$ = 0, $prevNewY$$ = 0, $bCloseNew$$ = !1, $bCloseOld$$ = !1;-1 < $DvtDiagramLayoutContext$$ || -1 < $DvtDiagramLayoutContextNode$$;) {
      var $oldCommand$$ = -1 < $DvtDiagramLayoutContext$$ ? $oldPoints$$5$$[$DvtDiagramLayoutContext$$] : null, $newCommand$$ = -1 < $DvtDiagramLayoutContextNode$$ ? $newPoints$$4$$[$DvtDiagramLayoutContextNode$$] : null, $iNextOld$$ = -1 < $DvtDiagramLayoutContext$$ ? $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($oldPoints$$5$$, $DvtDiagramLayoutContext$$ + 1) : -1, $iNextNew$$ = -1 < $DvtDiagramLayoutContextNode$$ ? $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($newPoints$$4$$, 
      $DvtDiagramLayoutContextNode$$ + 1) : -1;
      if ($oldCommand$$ == $newCommand$$) {
        for (;$DvtDiagramLayoutContextNode$$ < $iNextNew$$;$DvtDiagramLayoutContextNode$$++) {
          $updatedNewPoints$$2$$.push($newPoints$$4$$[$DvtDiagramLayoutContextNode$$]);
        }
        for ($DvtDiagramLayoutContextNode$$ = $DvtDiagramLayoutContext$$;$DvtDiagramLayoutContextNode$$ < $iNextOld$$;$DvtDiagramLayoutContextNode$$++) {
          $updatedOldPoints$$2$$.push($oldPoints$$5$$[$DvtDiagramLayoutContextNode$$]);
        }
      } else {
        $oldCommand$$ && "tmp" != $oldCommand$$ ? $newCommand$$ && "tmp" != $newCommand$$ ? "L" == $oldCommand$$ ? "Q" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4]), $updatedOldPoints$$2$$.push("Q", $DvtDiagramLayoutContextLink$$ + .5 * ($oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        1] - $DvtDiagramLayoutContextLink$$), $prevOldY$$ + .5 * ($oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2] - $prevOldY$$), $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2])) : "C" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6]), $updatedOldPoints$$2$$.push("C", $DvtDiagramLayoutContextLink$$ + .5 * ($oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1] - $DvtDiagramLayoutContextLink$$), $prevOldY$$ + .5 * ($oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2] - $prevOldY$$), $DvtDiagramLayoutContextLink$$ + .5 * ($oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1] - $DvtDiagramLayoutContextLink$$), $prevOldY$$ + .5 * ($oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2] - $prevOldY$$), 
        $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2])) : "A" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("L", $prevNewX$$, $prevNewY$$, "A", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        6], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 7]), $updatedOldPoints$$2$$.push("L", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], "A", 0, 0, $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2])) : "Z" == $newCommand$$ && ($bCloseNew$$ = 
        !0, $updatedNewPoints$$2$$.push("L", $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("L", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2])) : "Q" == $oldCommand$$ ? "L" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $prevNewX$$ + .5 * ($newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1] - $prevNewX$$), $prevNewY$$ + .5 * ($newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2] - $prevNewY$$), $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2]), $updatedOldPoints$$2$$.push("Q", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4])) : "C" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6]), $updatedOldPoints$$2$$.push("C", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4])) : 
        "A" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$, "A", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 7]), $updatedOldPoints$$2$$.push("Q", 
        $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], "A", 0, 0, $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4])) : "Z" == $newCommand$$ && ($bCloseNew$$ = 
        !0, $updatedNewPoints$$2$$.push("Q", $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("Q", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4])) : "C" == $oldCommand$$ ? "L" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $prevNewX$$ + .5 * ($newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1] - $prevNewX$$), $prevNewY$$ + 
        .5 * ($newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2] - $prevNewY$$), $prevNewX$$ + .5 * ($newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1] - $prevNewX$$), $prevNewY$$ + .5 * ($newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2] - $prevNewY$$), $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2]), $updatedOldPoints$$2$$.push("C", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6])) : "Q" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        4]), $updatedOldPoints$$2$$.push("C", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6])) : "A" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$, "A", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 7]), $updatedOldPoints$$2$$.push("C", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6], "A", 0, 0, $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6])) : "Z" == $newCommand$$ && ($bCloseNew$$ = !0, $updatedNewPoints$$2$$.push("C", 
        $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("C", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6])) : "A" == $oldCommand$$ ? "L" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("L", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], "A", 0, 0, $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2]), $updatedOldPoints$$2$$.push("L", $DvtDiagramLayoutContextLink$$, $prevOldY$$, "A", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 7])) : "Q" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        4], "A", 0, 0, $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4]), $updatedOldPoints$$2$$.push("Q", $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$, "A", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], 
        $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 7])) : "C" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6], "A", 0, 0, $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6]), $updatedOldPoints$$2$$.push("C", $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$, 
        $DvtDiagramLayoutContextLink$$, $prevOldY$$, "A", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 7])) : "Z" == $newCommand$$ && ($bCloseNew$$ = !0, $updatedNewPoints$$2$$.push("A", 0, 0, $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("A", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        7])) : "Z" == $oldCommand$$ && ($bCloseOld$$ = !0, "L" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("L", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2]), $updatedOldPoints$$2$$.push("L", $DvtDiagramLayoutContextLink$$, $prevOldY$$)) : "Q" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4]), $updatedOldPoints$$2$$.push("Q", $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$)) : "C" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6]), $updatedOldPoints$$2$$.push("C", $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$)) : "A" == $newCommand$$ && ($updatedNewPoints$$2$$.push("A", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 7]), $updatedOldPoints$$2$$.push("A", 0, 0, $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $DvtDiagramLayoutContextLink$$, $prevOldY$$))) : "L" == $oldCommand$$ ? ($updatedNewPoints$$2$$.push("L", $prevNewX$$, $prevNewY$$), 
        $updatedOldPoints$$2$$.push("L", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2])) : "Q" == $oldCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("Q", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4])) : "C" == $oldCommand$$ ? 
        ($updatedNewPoints$$2$$.push("C", $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$, $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("C", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 6])) : "A" == $oldCommand$$ ? ($updatedNewPoints$$2$$.push("A", 
        0, 0, $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $prevNewX$$, $prevNewY$$), $updatedOldPoints$$2$$.push("A", $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 1], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 2], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 3], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 4], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 5], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 
        6], $oldPoints$$5$$[$DvtDiagramLayoutContext$$ + 7])) : "Z" == $oldCommand$$ && ($updatedNewPoints$$2$$.push("Z"), $updatedOldPoints$$2$$.push("Z")) : "L" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("L", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2]), $updatedOldPoints$$2$$.push("L", $DvtDiagramLayoutContextLink$$, $prevOldY$$)) : "Q" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("Q", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4]), $updatedOldPoints$$2$$.push("Q", $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$)) : "C" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("C", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6]), $updatedOldPoints$$2$$.push("C", $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$, $DvtDiagramLayoutContextLink$$, $prevOldY$$)) : "A" == $newCommand$$ ? ($updatedNewPoints$$2$$.push("A", $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 1], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 
        2], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 6], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 7]), $updatedOldPoints$$2$$.push("A", 0, 0, $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 3], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 4], $newPoints$$4$$[$DvtDiagramLayoutContextNode$$ + 5], $DvtDiagramLayoutContextLink$$, 
        $prevOldY$$)) : "Z" == $newCommand$$ && ($updatedNewPoints$$2$$.push("Z"), $updatedOldPoints$$2$$.push("Z"));
      }
      -1 < $iNextOld$$ && "Z" != $oldCommand$$ && "tmp" != $oldCommand$$ && ($DvtDiagramLayoutContextLink$$ = $oldPoints$$5$$[$iNextOld$$ - 2], $prevOldY$$ = $oldPoints$$5$$[$iNextOld$$ - 1]);
      -1 < $iNextNew$$ && "Z" != $newCommand$$ && "tmp" != $newCommand$$ && ($prevNewX$$ = $newPoints$$4$$[$iNextNew$$ - 2], $prevNewY$$ = $newPoints$$4$$[$iNextNew$$ - 1]);
      $DvtDiagramLayoutContext$$ = $iNextOld$$;
      $DvtDiagramLayoutContextNode$$ = $iNextNew$$;
      if ($DvtDiagramLayoutContext$$ >= $oldPoints$$5$$.length || 0 > $DvtDiagramLayoutContext$$) {
        $DvtDiagramLayoutContext$$ = -1;
      }
      if ($DvtDiagramLayoutContextNode$$ >= $newPoints$$4$$.length || 0 > $DvtDiagramLayoutContextNode$$) {
        $DvtDiagramLayoutContextNode$$ = -1;
      }
    }
    if ($bCloseOld$$ || $bCloseNew$$) {
      $updatedNewPoints$$2$$.push("Z"), $updatedOldPoints$$2$$.push("Z");
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makePathClockwise$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makePathClockwise$$($points$$12$$) {
    if (!$dvt$$4$$.$ShapeAnimationUtils$.$_isPathClockwise$($points$$12$$)) {
      for (var $newPoints$$5$$ = ["M"], $i$$247$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$($points$$12$$, $points$$12$$.length - 1);-1 < $i$$247$$;) {
        var $command$$1$$ = $points$$12$$[$i$$247$$];
        switch($command$$1$$) {
          case "M":
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 1], $points$$12$$[$i$$247$$ + 2]);
            break;
          case "L":
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 1], $points$$12$$[$i$$247$$ + 2]);
            $newPoints$$5$$.push($command$$1$$);
            break;
          case "Q":
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 3], $points$$12$$[$i$$247$$ + 4]);
            $newPoints$$5$$.push($command$$1$$);
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 1], $points$$12$$[$i$$247$$ + 2]);
            break;
          case "C":
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 5], $points$$12$$[$i$$247$$ + 6]);
            $newPoints$$5$$.push($command$$1$$);
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 3], $points$$12$$[$i$$247$$ + 4]);
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 1], $points$$12$$[$i$$247$$ + 2]);
            break;
          case "A":
            $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 6], $points$$12$$[$i$$247$$ + 7]), $newPoints$$5$$.push($command$$1$$), $newPoints$$5$$.push($points$$12$$[$i$$247$$ + 1], $points$$12$$[$i$$247$$ + 2], $points$$12$$[$i$$247$$ + 3], $points$$12$$[$i$$247$$ + 4]), $newPoints$$5$$.push(0 == $points$$12$$[$i$$247$$ + 5] ? 1 : 0);
        }
        $i$$247$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$($points$$12$$, $i$$247$$ - 1);
      }
      return $newPoints$$5$$;
    }
    return $points$$12$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_isPathClockwise$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_isPathClockwise$$($points$$13_xa$$) {
    for (var $polygon$$ = [], $topLeftIndex$$ = 0, $minX$$5_xb$$ = Number.MAX_VALUE, $DvtDiagramLayoutContext$$ = Number.MAX_VALUE, $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$($points$$13_xa$$, $points$$13_xa$$.length - 1), $DvtDiagramLayoutContextLink$$ = 1;$DvtDiagramLayoutContextLink$$ < $DvtDiagramLayoutContextNode$$;) {
      $DvtDiagramLayoutContextLink$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$13_xa$$, $DvtDiagramLayoutContextLink$$);
      if (0 < $DvtDiagramLayoutContextLink$$ - 2 && "Z" != $points$$13_xa$$[$DvtDiagramLayoutContextLink$$ - 1]) {
        var $xx$$24_yc$$ = $points$$13_xa$$[$DvtDiagramLayoutContextLink$$ - 2], $yy$$24$$ = $points$$13_xa$$[$DvtDiagramLayoutContextLink$$ - 1];
        $polygon$$.push($xx$$24_yc$$, $yy$$24$$);
        if ($yy$$24$$ < $DvtDiagramLayoutContext$$ || $yy$$24$$ == $DvtDiagramLayoutContext$$ && $xx$$24_yc$$ < $minX$$5_xb$$) {
          $minX$$5_xb$$ = $xx$$24_yc$$, $DvtDiagramLayoutContext$$ = $yy$$24$$, $topLeftIndex$$ = $polygon$$.length - 2;
        }
      }
      $DvtDiagramLayoutContextLink$$ += 1;
    }
    $xx$$24_yc$$ = $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextNode$$ = $points$$13_xa$$ = 0;
    0 < $topLeftIndex$$ ? ($points$$13_xa$$ = $polygon$$[$topLeftIndex$$ - 2], $DvtDiagramLayoutContextNode$$ = $polygon$$[$topLeftIndex$$ - 1]) : ($points$$13_xa$$ = $polygon$$[$polygon$$.length - 2], $DvtDiagramLayoutContextNode$$ = $polygon$$[$polygon$$.length - 1]);
    $topLeftIndex$$ < $polygon$$.length - 2 ? ($DvtDiagramLayoutContextLink$$ = $polygon$$[$topLeftIndex$$ + 2], $xx$$24_yc$$ = $polygon$$[$topLeftIndex$$ + 3]) : ($DvtDiagramLayoutContextLink$$ = $polygon$$[0], $xx$$24_yc$$ = $polygon$$[1]);
    return 0 > $minX$$5_xb$$ * $xx$$24_yc$$ + $points$$13_xa$$ * $DvtDiagramLayoutContext$$ + $DvtDiagramLayoutContextNode$$ * $DvtDiagramLayoutContextLink$$ - ($DvtDiagramLayoutContextNode$$ * $minX$$5_xb$$ + $DvtDiagramLayoutContext$$ * $DvtDiagramLayoutContextLink$$ + $points$$13_xa$$ * $xx$$24_yc$$) ? !1 : !0;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makePathStartAtTopLeft$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makePathStartAtTopLeft$$($points$$14$$) {
    for (var $newPoints$$6_topLeftIndex$$1$$ = 0, $arSlice_minX$$6$$ = Number.MAX_VALUE, $minY$$6$$ = Number.MAX_VALUE, $DvtDiagramLayoutContext$$ = 0, $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$($points$$14$$, $points$$14$$.length - 1), $DvtDiagramLayoutContextLink$$ = 1;$DvtDiagramLayoutContextLink$$ < $DvtDiagramLayoutContextNode$$;) {
      var $iNext$$1$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$14$$, $DvtDiagramLayoutContextLink$$);
      if (0 < $iNext$$1$$ - 2 && "Z" != $points$$14$$[$iNext$$1$$ - 1]) {
        var $DvtDiagramLayoutContextLink$$ = $points$$14$$[$iNext$$1$$ - 2], $yy$$25$$ = $points$$14$$[$iNext$$1$$ - 1];
        if ($yy$$25$$ < $minY$$6$$ || $yy$$25$$ == $minY$$6$$ && $DvtDiagramLayoutContextLink$$ < $arSlice_minX$$6$$) {
          $arSlice_minX$$6$$ = $DvtDiagramLayoutContextLink$$, $minY$$6$$ = $yy$$25$$, $newPoints$$6_topLeftIndex$$1$$ = $DvtDiagramLayoutContext$$;
        }
      }
      $DvtDiagramLayoutContextLink$$ = $iNext$$1$$ + 1;
      $DvtDiagramLayoutContext$$ = $iNext$$1$$;
    }
    return 0 < $newPoints$$6_topLeftIndex$$1$$ ? ($iNext$$1$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$14$$, $newPoints$$6_topLeftIndex$$1$$ + 1), $newPoints$$6_topLeftIndex$$1$$ = ["M"], $arSlice_minX$$6$$ = $points$$14$$.slice($iNext$$1$$ - 2, $points$$14$$.length), $newPoints$$6_topLeftIndex$$1$$ = $newPoints$$6_topLeftIndex$$1$$.concat($arSlice_minX$$6$$), $arSlice_minX$$6$$ = $points$$14$$.slice(3, $iNext$$1$$), $newPoints$$6_topLeftIndex$$1$$ = $newPoints$$6_topLeftIndex$$1$$.concat($arSlice_minX$$6$$)) : 
    $points$$14$$;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_getNumParamsForCommand$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_getNumParamsForCommand$$($dvt$$4$$) {
    switch($dvt$$4$$) {
      case "H":
      ;
      case "h":
      ;
      case "V":
      ;
      case "v":
        return 1;
      case "M":
      ;
      case "m":
      ;
      case "L":
      ;
      case "l":
      ;
      case "T":
      ;
      case "t":
        return 2;
      case "Q":
      ;
      case "q":
      ;
      case "S":
      ;
      case "s":
        return 4;
      case "C":
      ;
      case "c":
        return 6;
      case "A":
      ;
      case "a":
        return 7;
    }
    return 0;
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makeImplicitCommandsExplicit$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makeImplicitCommandsExplicit$$($points$$15$$) {
    for (var $i$$250$$ = 0;$i$$250$$ < $points$$15$$.length;) {
      var $command$$3$$ = $points$$15$$[$i$$250$$], $numParams$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNumParamsForCommand$($command$$3$$);
      switch($command$$3$$) {
        case "M":
          $i$$250$$ + $numParams$$ + 1 < $points$$15$$.length && !isNaN($points$$15$$[$i$$250$$ + $numParams$$ + 1]) && $points$$15$$.splice($i$$250$$ + $numParams$$ + 1, 0, "L");
          break;
        case "m":
          $i$$250$$ + $numParams$$ + 1 < $points$$15$$.length && !isNaN($points$$15$$[$i$$250$$ + $numParams$$ + 1]) && $points$$15$$.splice($i$$250$$ + $numParams$$ + 1, 0, "l");
          break;
        case "Z":
        ;
        case "z":
          break;
        default:
          $i$$250$$ + $numParams$$ + 1 < $points$$15$$.length && !isNaN($points$$15$$[$i$$250$$ + $numParams$$ + 1]) && $points$$15$$.splice($i$$250$$ + $numParams$$ + 1, 0, $command$$3$$);
      }
      $i$$250$$ += $numParams$$ + 1;
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makeRelativeCommandsAbsolute$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makeRelativeCommandsAbsolute$$($points$$16$$) {
    for (var $currX$$6$$ = 0, $currY$$6$$ = 0, $startX$$1$$ = 0, $DvtDiagramLayoutContext$$ = 0, $DvtDiagramLayoutContextNode$$ = 0;$DvtDiagramLayoutContextNode$$ < $points$$16$$.length;) {
      switch($points$$16$$[$DvtDiagramLayoutContextNode$$]) {
        case "m":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "M";
          0 < $DvtDiagramLayoutContextNode$$ && ($points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1], $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2]);
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $startX$$1$$ = $currX$$6$$;
          $DvtDiagramLayoutContext$$ = $currY$$6$$;
          break;
        case "l":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "L";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          break;
        case "h":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "H";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          break;
        case "v":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "V";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          break;
        case "c":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "C";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 5] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 5];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 5];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6];
          break;
        case "s":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "S";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          break;
        case "q":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "Q";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          break;
        case "t":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "T";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          break;
        case "a":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "A";
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6] = $currX$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6];
          $points$$16$$[$DvtDiagramLayoutContextNode$$ + 7] = $currY$$6$$ + $points$$16$$[$DvtDiagramLayoutContextNode$$ + 7];
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 7];
          break;
        case "z":
          $points$$16$$[$DvtDiagramLayoutContextNode$$] = "Z";
          $currX$$6$$ = $startX$$1$$;
          $currY$$6$$ = $DvtDiagramLayoutContext$$;
          break;
        case "M":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          $startX$$1$$ = $currX$$6$$;
          $DvtDiagramLayoutContext$$ = $currY$$6$$;
          break;
        case "L":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          break;
        case "H":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          break;
        case "V":
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          break;
        case "C":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 5];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6];
          break;
        case "S":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          break;
        case "Q":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 3];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 4];
          break;
        case "T":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 2];
          break;
        case "A":
          $currX$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 6];
          $currY$$6$$ = $points$$16$$[$DvtDiagramLayoutContextNode$$ + 7];
          break;
        case "Z":
          $currX$$6$$ = $startX$$1$$, $currY$$6$$ = $DvtDiagramLayoutContext$$;
      }
      $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$16$$, $DvtDiagramLayoutContextNode$$ + 1);
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makeShorthandCommandsVerbose$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makeShorthandCommandsVerbose$$($points$$17$$) {
    for (var $currX$$7$$ = 0, $currY$$7$$ = 0, $startX$$2$$ = 0, $DvtDiagramLayoutContext$$ = 0, $DvtDiagramLayoutContextNode$$ = 0;$DvtDiagramLayoutContextNode$$ < $points$$17$$.length;) {
      switch($points$$17$$[$DvtDiagramLayoutContextNode$$]) {
        case "M":
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 2];
          $startX$$2$$ = $currX$$7$$;
          $DvtDiagramLayoutContext$$ = $currY$$7$$;
          break;
        case "L":
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 1];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 2];
          break;
        case "H":
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$17$$[$DvtDiagramLayoutContextNode$$] = "L";
          $points$$17$$.splice($DvtDiagramLayoutContextNode$$ + 2, 0, $currY$$7$$);
          break;
        case "V":
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 1];
          $points$$17$$[$DvtDiagramLayoutContextNode$$] = "L";
          $points$$17$$.splice($DvtDiagramLayoutContextNode$$ + 1, 0, $currX$$7$$);
          break;
        case "C":
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 5];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 6];
          break;
        case "S":
          var $DvtDiagramLayoutContextLink$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$($points$$17$$, $DvtDiagramLayoutContextNode$$ - 1), $newCp1x_newCpx$$ = $currX$$7$$, $cp2y$$1_cpy$$1_newCp1y_newCpy$$ = $currY$$7$$;
          "C" == $points$$17$$[$DvtDiagramLayoutContextLink$$] && ($cp2y$$1_cpy$$1_newCp1y_newCpy$$ = $points$$17$$[$DvtDiagramLayoutContextLink$$ + 4], $newCp1x_newCpx$$ = $currX$$7$$ + ($currX$$7$$ - $points$$17$$[$DvtDiagramLayoutContextLink$$ + 3]), $cp2y$$1_cpy$$1_newCp1y_newCpy$$ = $currY$$7$$ + ($currY$$7$$ - $cp2y$$1_cpy$$1_newCp1y_newCpy$$));
          $points$$17$$[$DvtDiagramLayoutContextNode$$] = "C";
          $points$$17$$.splice($DvtDiagramLayoutContextNode$$ + 1, 0, $newCp1x_newCpx$$, $cp2y$$1_cpy$$1_newCp1y_newCpy$$);
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 5];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 6];
          break;
        case "Q":
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 3];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 4];
          break;
        case "T":
          $DvtDiagramLayoutContextLink$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getPrevCommandIndex$($points$$17$$, $DvtDiagramLayoutContextNode$$ - 1);
          $newCp1x_newCpx$$ = $currX$$7$$;
          $cp2y$$1_cpy$$1_newCp1y_newCpy$$ = $currY$$7$$;
          "Q" == $points$$17$$[$DvtDiagramLayoutContextLink$$] && ($cp2y$$1_cpy$$1_newCp1y_newCpy$$ = $points$$17$$[$DvtDiagramLayoutContextLink$$ + 2], $newCp1x_newCpx$$ = $currX$$7$$ + ($currX$$7$$ - $points$$17$$[$DvtDiagramLayoutContextLink$$ + 1]), $cp2y$$1_cpy$$1_newCp1y_newCpy$$ = $currY$$7$$ + ($currY$$7$$ - $cp2y$$1_cpy$$1_newCp1y_newCpy$$));
          $points$$17$$[$DvtDiagramLayoutContextNode$$] = "Q";
          $points$$17$$.splice($DvtDiagramLayoutContextNode$$ + 1, 0, $newCp1x_newCpx$$, $cp2y$$1_cpy$$1_newCp1y_newCpy$$);
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 3];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 4];
          break;
        case "A":
          $currX$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 6];
          $currY$$7$$ = $points$$17$$[$DvtDiagramLayoutContextNode$$ + 7];
          break;
        case "Z":
          $currX$$7$$ = $startX$$2$$, $currY$$7$$ = $DvtDiagramLayoutContext$$;
      }
      $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$17$$, $DvtDiagramLayoutContextNode$$ + 1);
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_makeSubpathsExplicit$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_makeSubpathsExplicit$$($dvt$$4$$) {
    for (var $startX$$3$$ = 0, $startY$$3$$ = 0, $i$$253$$ = 0;$i$$253$$ < $dvt$$4$$.length;$i$$253$$++) {
      "Z" == $dvt$$4$$[$i$$253$$] ? $i$$253$$ + 1 < $dvt$$4$$.length && "M" != $dvt$$4$$[$i$$253$$ + 1] && "m" != $dvt$$4$$[$i$$253$$ + 1] && $dvt$$4$$.splice($i$$253$$ + 1, 0, "M", $startX$$3$$, $startY$$3$$) : "M" == $dvt$$4$$[$i$$253$$] && ($startX$$3$$ = $dvt$$4$$[$i$$253$$ + 1], $startY$$3$$ = $dvt$$4$$[$i$$253$$ + 2]);
    }
  };
  $dvt$$4$$.$ShapeAnimationUtils$.$_transformPathCoords$ = function $$dvt$$4$$$$ShapeAnimationUtils$$$_transformPathCoords$$($points$$19$$, $mat$$8$$) {
    for (var $p$$2_pOrig$$ = null, $i$$254$$ = 0;$i$$254$$ < $points$$19$$.length;) {
      switch($points$$19$$[$i$$254$$]) {
        case "M":
        ;
        case "L":
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 1], $points$$19$$[$i$$254$$ + 2]));
          $points$$19$$[$i$$254$$ + 1] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 2] = $p$$2_pOrig$$.y;
          break;
        case "Q":
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 1], $points$$19$$[$i$$254$$ + 2]));
          $points$$19$$[$i$$254$$ + 1] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 2] = $p$$2_pOrig$$.y;
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 3], $points$$19$$[$i$$254$$ + 4]));
          $points$$19$$[$i$$254$$ + 3] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 4] = $p$$2_pOrig$$.y;
          break;
        case "C":
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 1], $points$$19$$[$i$$254$$ + 2]));
          $points$$19$$[$i$$254$$ + 1] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 2] = $p$$2_pOrig$$.y;
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 3], $points$$19$$[$i$$254$$ + 4]));
          $points$$19$$[$i$$254$$ + 3] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 4] = $p$$2_pOrig$$.y;
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 5], $points$$19$$[$i$$254$$ + 6]));
          $points$$19$$[$i$$254$$ + 5] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 6] = $p$$2_pOrig$$.y;
          break;
        case "A":
          var $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$(0, 0)), $DvtDiagramLayoutContext$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 1], 0)), $DvtDiagramLayoutContextNode$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$(0, $points$$19$$[$i$$254$$ + 2])), $DvtDiagramLayoutContextNode$$ = Math.sqrt(($DvtDiagramLayoutContextNode$$.x - $p$$2_pOrig$$.x) * ($DvtDiagramLayoutContextNode$$.x - $p$$2_pOrig$$.x) + ($DvtDiagramLayoutContextNode$$.y - 
          $p$$2_pOrig$$.y) * ($DvtDiagramLayoutContextNode$$.y - $p$$2_pOrig$$.y));
          $points$$19$$[$i$$254$$ + 1] = Math.sqrt(($DvtDiagramLayoutContext$$.x - $p$$2_pOrig$$.x) * ($DvtDiagramLayoutContext$$.x - $p$$2_pOrig$$.x) + ($DvtDiagramLayoutContext$$.y - $p$$2_pOrig$$.y) * ($DvtDiagramLayoutContext$$.y - $p$$2_pOrig$$.y));
          $points$$19$$[$i$$254$$ + 2] = $DvtDiagramLayoutContextNode$$;
          $p$$2_pOrig$$ = $mat$$8$$.$transformPoint$(new $dvt$$4$$.$Point$($points$$19$$[$i$$254$$ + 6], $points$$19$$[$i$$254$$ + 7]));
          $points$$19$$[$i$$254$$ + 6] = $p$$2_pOrig$$.x;
          $points$$19$$[$i$$254$$ + 7] = $p$$2_pOrig$$.y;
      }
      $i$$254$$ = $dvt$$4$$.$ShapeAnimationUtils$.$_getNextCommandIndex$($points$$19$$, $i$$254$$ + 1);
    }
  };
  $dvt$$4$$.$BaseDiagram$ = function $$dvt$$4$$$$BaseDiagram$$($dvt$$4$$, $callback$$92$$, $callbackObj$$23$$) {
    this.Init($dvt$$4$$, $callback$$92$$, $callbackObj$$23$$);
  };
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$BaseDiagram$, $dvt$$4$$.$PanZoomComponent$, "dvt.BaseDiagram");
  $dvt$$4$$.$BaseDiagram$.prototype.Init = function $$dvt$$4$$$$BaseDiagram$$$Init$($context$$110$$, $callback$$93$$, $callbackObj$$24$$) {
    $dvt$$4$$.$BaseDiagram$.$superclass$.Init.call(this, $context$$110$$, $callback$$93$$, $callbackObj$$24$$);
    this.$getCtx$().$_stage$.$getElem$().setAttributeNS(null, "text-rendering", "geometricPrecision");
    this.$_layoutOffset$;
    this.$_layoutViewportContainerId$ = this.$_layoutViewport$ = null;
    this.$_initAnim$;
    this.$_bInitAnimEnabled$ = !0;
    this.$_linksPane$ = new $dvt$$4$$.$Container$($context$$110$$);
    this.$_nodesPane$ = new $dvt$$4$$.$Container$($context$$110$$);
    this.$_topPane$ = new $dvt$$4$$.$Container$($context$$110$$);
    this.$_animationDuration$ = $dvt$$4$$.$PanZoomCanvas$.$DEFAULT_ANIMATION_DURATION$;
    this.$InitializeZoomLimits$();
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$InitComponentInternal$ = function $$dvt$$4$$$$BaseDiagram$$$$InitComponentInternal$$() {
    var $dvt$$4$$ = this.$_panZoomCanvas$;
    $dvt$$4$$.$setMinZoom$(this.$getMinZoom$());
    $dvt$$4$$.$setMaxZoom$(this.$getMaxZoom$());
    $dvt$$4$$.$setAnimationDuration$(this.$getAnimationDuration$());
    $dvt$$4$$.$_contentPane$.$addChild$(this.$_linksPane$);
    $dvt$$4$$.$_contentPane$.$addChild$(this.$_nodesPane$);
    $dvt$$4$$.$_contentPane$.$addChild$(this.$_topPane$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setAnimationDuration$ = function $$dvt$$4$$$$BaseDiagram$$$$setAnimationDuration$$($dvt$$4$$) {
    this.$_animationDuration$ = $dvt$$4$$;
    this.$_panZoomCanvas$ && this.$_panZoomCanvas$.$setAnimationDuration$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getAnimationDuration$ = function $$dvt$$4$$$$BaseDiagram$$$$getAnimationDuration$$() {
    return this.$_animationDuration$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setMaxZoom$ = function $$dvt$$4$$$$BaseDiagram$$$$setMaxZoom$$($dvt$$4$$) {
    this.$_maxZoom$ = $dvt$$4$$;
    this.$_panZoomCanvas$ && this.$_panZoomCanvas$.$setMaxZoom$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getMaxZoom$ = function $$dvt$$4$$$$BaseDiagram$$$$getMaxZoom$$() {
    return this.$_maxZoom$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setMinZoom$ = function $$dvt$$4$$$$BaseDiagram$$$$setMinZoom$$($dvt$$4$$) {
    this.$_minZoom$ = $dvt$$4$$;
    this.$_panZoomCanvas$ && this.$_panZoomCanvas$.$setMinZoom$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getMinZoom$ = function $$dvt$$4$$$$BaseDiagram$$$$getMinZoom$$() {
    return this.$_minZoom$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$InitializeZoomLimits$ = function $$dvt$$4$$$$BaseDiagram$$$$InitializeZoomLimits$$() {
    this.$setMaxZoom$(2);
    this.$setMinZoom$(0);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getNodeById$ = function $$dvt$$4$$$$BaseDiagram$$$$getNodeById$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getLinkById$ = function $$dvt$$4$$$$BaseDiagram$$$$getLinkById$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$GetAllLinks$ = function $$dvt$$4$$$$BaseDiagram$$$$GetAllLinks$$() {
    return [];
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$GetAllNodes$ = function $$dvt$$4$$$$BaseDiagram$$$$GetAllNodes$$() {
    return [];
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getNodeCount$ = function $$dvt$$4$$$$BaseDiagram$$$$getNodeCount$$() {
    return this.$GetAllNodes$().length;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getLinkCount$ = function $$dvt$$4$$$$BaseDiagram$$$$getLinkCount$$() {
    return this.$GetAllLinks$().length;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$RefreshEmptyText$ = function $$dvt$$4$$$$BaseDiagram$$$$RefreshEmptyText$$($emptyDiagram$$1_parent$$53$$) {
    $emptyDiagram$$1_parent$$53$$ && this.$_emptyText$ ? this.$_emptyTextDisplay$ ? (this.$_emptyTextDisplay$.$setX$(this.$Width$ / 2), this.$_emptyTextDisplay$.$setY$(this.$Height$ / 2), $dvt$$4$$.$TextUtils$.$fitText$(this.$_emptyTextDisplay$, this.getWidth() - 2 * $dvt$$4$$.$TextUtils$.$EMPTY_TEXT_BUFFER$, Infinity, this)) : this.$_emptyTextDisplay$ = this.$CreateEmptyText$(this.$_emptyText$) : this.$_emptyTextDisplay$ && (($emptyDiagram$$1_parent$$53$$ = this.$_emptyTextDisplay$.getParent()) && 
    $emptyDiagram$$1_parent$$53$$.removeChild(this.$_emptyTextDisplay$), this.$_emptyTextDisplay$ = null);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CreateEmptyText$ = function $$dvt$$4$$$$BaseDiagram$$$$CreateEmptyText$$($text$$50$$) {
    var $options$$33$$ = this.$getOptions$();
    return $dvt$$4$$.$TextUtils$.$renderEmptyText$(this, $text$$50$$, new $dvt$$4$$.$Rectangle$(0, 0, this.getWidth(), this.getHeight()), this.$getEventManager$(), $options$$33$$._statusMessageStyle);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setEmptyText$ = function $$dvt$$4$$$$BaseDiagram$$$$setEmptyText$$($dvt$$4$$) {
    this.$_emptyText$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$SetPanningEnabled$ = function $$dvt$$4$$$$BaseDiagram$$$$SetPanningEnabled$$($dvt$$4$$) {
    this.$_panningEnabled$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setPanDirection$ = function $$dvt$$4$$$$BaseDiagram$$$$setPanDirection$$($dvt$$4$$) {
    this.$_panDirection$ = $dvt$$4$$;
    this.$_panZoomCanvas$ && this.$_panZoomCanvas$.$setPanDirection$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getPanDirection$ = function $$dvt$$4$$$$BaseDiagram$$$$getPanDirection$$() {
    return this.$_panDirection$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$SetZoomingEnabled$ = function $$dvt$$4$$$$BaseDiagram$$$$SetZoomingEnabled$$($dvt$$4$$) {
    this.$_zoomingEnabled$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setInitAnim$ = function $$dvt$$4$$$$BaseDiagram$$$$setInitAnim$$($dvt$$4$$) {
    this.$_initAnim$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setInitAnimEnabled$ = function $$dvt$$4$$$$BaseDiagram$$$$setInitAnimEnabled$$() {
    this.$_bInitAnimEnabled$ = !0;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setDataChangeAnim$ = function $$dvt$$4$$$$BaseDiagram$$$$setDataChangeAnim$$($dvt$$4$$) {
    this.$_dataChangeAnim$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getSelectionHandler$ = function $$dvt$$4$$$$BaseDiagram$$$$getSelectionHandler$$() {
    return this.$_selectionHandler$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setSelectionMode$ = function $$dvt$$4$$$$BaseDiagram$$$$setSelectionMode$$($selectionMode$$1$$) {
    this.$_selectionHandler$ = "single" == $selectionMode$$1$$ ? new $dvt$$4$$.$SelectionHandler$($dvt$$4$$.$SelectionHandler$.$TYPE_SINGLE$) : "multiple" == $selectionMode$$1$$ ? new $dvt$$4$$.$SelectionHandler$($dvt$$4$$.$SelectionHandler$.$TYPE_MULTIPLE$) : null;
    this.$getEventManager$().$setSelectionHandler$(this.$_selectionHandler$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getSelectionMode$ = function $$dvt$$4$$$$BaseDiagram$$$$getSelectionMode$$() {
    return this.$_selectionHandler$ ? this.$_selectionHandler$.$getType$() : null;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$isSelectionSupported$ = function $$dvt$$4$$$$BaseDiagram$$$$isSelectionSupported$$() {
    return this.$_selectionHandler$ ? !0 : !1;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setNodesPane$ = function $$dvt$$4$$$$BaseDiagram$$$$setNodesPane$$($dvt$$4$$) {
    this.$_nodesPane$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setLinksPane$ = function $$dvt$$4$$$$BaseDiagram$$$$setLinksPane$$($dvt$$4$$) {
    this.$_linksPane$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$setTopPane$ = function $$dvt$$4$$$$BaseDiagram$$$$setTopPane$$($dvt$$4$$) {
    this.$_topPane$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CreateEmptyLayoutContext$ = function $$dvt$$4$$$$BaseDiagram$$$$CreateEmptyLayoutContext$$() {
    var $layoutContext$$13$$ = new $DvtDiagramLayoutContext$$;
    $layoutContext$$13$$.$setLocaleR2L$($dvt$$4$$.$Agent$.$isRightToLeft$(this.$getCtx$()));
    $layoutContext$$13$$.$setComponentSize$(new $dvt$$4$$.$DiagramRectangle$(0, 0, this.getWidth(), this.getHeight()));
    return $layoutContext$$13$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CreateLayoutContextNode$ = function $$dvt$$4$$$$BaseDiagram$$$$CreateLayoutContextNode$$($node$$163$$, $layout$$19_nodeData$$20$$, $bRenderAfter$$, $layoutContext$$14$$) {
    var $DvtDiagramLayoutContext$$ = new $DvtDiagramLayoutContextNode$$;
    $DvtDiagramLayoutContext$$.setId($node$$163$$.getId ? $node$$163$$.getId() : $node$$163$$.getData().getId());
    $DvtDiagramLayoutContext$$.$setBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($node$$163$$.$getLayoutBounds$()));
    $DvtDiagramLayoutContext$$.$setContentBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($node$$163$$.$getContentBounds$()));
    $layout$$19_nodeData$$20$$ = $node$$163$$.$getLayoutAttributes$ ? $node$$163$$.$getLayoutAttributes$($layout$$19_nodeData$$20$$) : $node$$163$$.getData()._origData;
    $DvtDiagramLayoutContext$$.$setLayoutAttributes$($layout$$19_nodeData$$20$$);
    $DvtDiagramLayoutContext$$.setData($layout$$19_nodeData$$20$$);
    $DvtDiagramLayoutContext$$.$setLabelBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($node$$163$$.$getLabelBounds$()));
    $DvtDiagramLayoutContext$$.$setLabelPosition$($dvt$$4$$.$DiagramLayoutUtils$.$convertPointToDiagramPoint$($node$$163$$.$getLabelPosition$()));
    $DvtDiagramLayoutContext$$.$setSelected$(1 == $node$$163$$.$isSelected$());
    $node$$163$$.$isDisclosed$() && ($DvtDiagramLayoutContext$$.$setDisclosed$(!0), $DvtDiagramLayoutContext$$.$SetContainerPaddingObj$($dvt$$4$$.$BaseDiagram$.$getLayoutContainerPadding$($node$$163$$.$getContainerPadding$())));
    $DvtDiagramLayoutContext$$.$setContainerId$($node$$163$$.$getGroupId$());
    $DvtDiagramLayoutContext$$.$Component$ = this;
    $DvtDiagramLayoutContext$$.$IsRendered$ = !$bRenderAfter$$;
    $DvtDiagramLayoutContext$$.$LayoutContext$ = $layoutContext$$14$$;
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CreateLayoutContextLink$ = function $$dvt$$4$$$$BaseDiagram$$$$CreateLayoutContextLink$$($link$$48$$, $linkData$$15_startId$$5$$, $endId$$5$$, $layout$$20$$, $DvtDiagramLayoutContext$$) {
    var $DvtDiagramLayoutContextNode$$ = new $DvtDiagramLayoutContextLink$$;
    $DvtDiagramLayoutContextNode$$.setId($link$$48$$.getId ? $link$$48$$.getId() : $link$$48$$.getData().getId());
    $DvtDiagramLayoutContextNode$$.$setStartId$($linkData$$15_startId$$5$$ ? $linkData$$15_startId$$5$$ : $link$$48$$.getData().$getStartId$());
    $DvtDiagramLayoutContextNode$$.$setEndId$($endId$$5$$ ? $endId$$5$$ : $link$$48$$.getData().$getEndId$());
    $linkData$$15_startId$$5$$ = $link$$48$$.$getLayoutAttributes$ ? $link$$48$$.$getLayoutAttributes$($layout$$20$$) : $link$$48$$.$_bPromoted$ ? $link$$48$$.getData()._links : $link$$48$$.getData()._origData;
    $DvtDiagramLayoutContextNode$$.$setLayoutAttributes$($linkData$$15_startId$$5$$);
    $DvtDiagramLayoutContextNode$$.setData($linkData$$15_startId$$5$$);
    $DvtDiagramLayoutContextNode$$.$setLabelBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($link$$48$$.$getLabelBounds$()));
    $DvtDiagramLayoutContextNode$$.$setLabelPosition$($dvt$$4$$.$DiagramLayoutUtils$.$convertPointToDiagramPoint$($link$$48$$.$getLabelPosition$()));
    $DvtDiagramLayoutContextNode$$.$setStartConnectorOffset$($link$$48$$.$getStartConnectorOffset$());
    $DvtDiagramLayoutContextNode$$.$setEndConnectorOffset$($link$$48$$.$getEndConnectorOffset$());
    $DvtDiagramLayoutContextNode$$.$setLinkWidth$($link$$48$$.$getLinkWidth$());
    $DvtDiagramLayoutContextNode$$.$setSelected$(1 == $link$$48$$.$isSelected$());
    $DvtDiagramLayoutContextNode$$.$setPromoted$(1 == $link$$48$$.$_bPromoted$);
    $DvtDiagramLayoutContextNode$$.$LayoutContext$ = $DvtDiagramLayoutContext$$;
    return $DvtDiagramLayoutContextNode$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$ApplyLayoutContext$ = function $$dvt$$4$$$$BaseDiagram$$$$ApplyLayoutContext$$($layoutContext$$16$$, $animator$$52_layoutViewport$$1$$, $bSaveOffset$$1$$) {
    var $li$$1_ni$$1_topContainerPadding$$ = $layoutContext$$16$$.$getContainerPadding$();
    if ($li$$1_ni$$1_topContainerPadding$$) {
      var $DvtDiagramLayoutContext$$ = $layoutContext$$16$$.$_containerId$;
      $DvtDiagramLayoutContext$$ && ($DvtDiagramLayoutContext$$ = this.$getNodeById$($DvtDiagramLayoutContext$$)) && $DvtDiagramLayoutContext$$.$setContainerPadding$($dvt$$4$$.$BaseDiagram$.$getContainerPadding$($li$$1_ni$$1_topContainerPadding$$), $animator$$52_layoutViewport$$1$$);
    }
    for (var $DvtDiagramLayoutContextNode$$ = $DvtDiagramLayoutContext$$ = Number.MAX_VALUE, $li$$1_ni$$1_topContainerPadding$$ = 0;$li$$1_ni$$1_topContainerPadding$$ < $layoutContext$$16$$.$getNodeCount$();$li$$1_ni$$1_topContainerPadding$$++) {
      var $DvtDiagramLayoutContextLink$$ = $layoutContext$$16$$.$getNodeByIndex$($li$$1_ni$$1_topContainerPadding$$), $i$$255_linkOffset_node$$164_obj$$114$$ = this.$getNodeById$($DvtDiagramLayoutContextLink$$.getId()), $controlPoint_points$$20_pos$$25$$ = $DvtDiagramLayoutContextLink$$.$getPosition$();
      $controlPoint_points$$20_pos$$25$$ && ($DvtDiagramLayoutContext$$ = Math.min($DvtDiagramLayoutContext$$, $controlPoint_points$$20_pos$$25$$.x), $DvtDiagramLayoutContextNode$$ = Math.min($DvtDiagramLayoutContextNode$$, $controlPoint_points$$20_pos$$25$$.y));
      var $controlPoints_labelBounds$$3_lopt$$1$$ = $DvtDiagramLayoutContextLink$$.$getLabelBounds$(), $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextLink$$.$getLabelPosition$();
      $controlPoints_labelBounds$$3_lopt$$1$$ && $DvtDiagramLayoutContextLink$$ && ($DvtDiagramLayoutContext$$ = Math.min($DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextLink$$.x + $controlPoints_labelBounds$$3_lopt$$1$$.x), $DvtDiagramLayoutContextNode$$ = Math.min($DvtDiagramLayoutContextNode$$, $DvtDiagramLayoutContextLink$$.y + $controlPoints_labelBounds$$3_lopt$$1$$.y));
    }
    for ($li$$1_ni$$1_topContainerPadding$$ = 0;$li$$1_ni$$1_topContainerPadding$$ < $layoutContext$$16$$.$getLinkCount$();$li$$1_ni$$1_topContainerPadding$$++) {
      var $DvtDiagramLayoutContextLink$$ = $layoutContext$$16$$.$getLinkByIndex$($li$$1_ni$$1_topContainerPadding$$), $link$$49$$ = this.$getLinkById$($DvtDiagramLayoutContextLink$$.getId());
      if ($controlPoint_points$$20_pos$$25$$ = $DvtDiagramLayoutContextLink$$.$getPoints$()) {
        for ($controlPoints_labelBounds$$3_lopt$$1$$ = $dvt$$4$$.$DiagramLinkUtils$.$GetControlPoints$($controlPoint_points$$20_pos$$25$$), $i$$255_linkOffset_node$$164_obj$$114$$ = 0;$i$$255_linkOffset_node$$164_obj$$114$$ < $controlPoints_labelBounds$$3_lopt$$1$$.length;$i$$255_linkOffset_node$$164_obj$$114$$++) {
          $controlPoint_points$$20_pos$$25$$ = $controlPoints_labelBounds$$3_lopt$$1$$[$i$$255_linkOffset_node$$164_obj$$114$$], $DvtDiagramLayoutContext$$ = Math.min($DvtDiagramLayoutContext$$, $controlPoint_points$$20_pos$$25$$.x), $DvtDiagramLayoutContextNode$$ = Math.min($DvtDiagramLayoutContextNode$$, $controlPoint_points$$20_pos$$25$$.y);
        }
      }
      $controlPoints_labelBounds$$3_lopt$$1$$ = $DvtDiagramLayoutContextLink$$.$getLabelBounds$();
      $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextLink$$.$getLabelPosition$();
      $controlPoints_labelBounds$$3_lopt$$1$$ && $DvtDiagramLayoutContextLink$$ && ($DvtDiagramLayoutContext$$ = Math.min($DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextLink$$.x + $controlPoints_labelBounds$$3_lopt$$1$$.x), $DvtDiagramLayoutContextNode$$ = Math.min($DvtDiagramLayoutContextNode$$, $DvtDiagramLayoutContextLink$$.y + $controlPoints_labelBounds$$3_lopt$$1$$.y));
    }
    $controlPoints_labelBounds$$3_lopt$$1$$ = this.$CalcLayoutOffset$(-$DvtDiagramLayoutContext$$, -$DvtDiagramLayoutContextNode$$);
    $DvtDiagramLayoutContext$$ = $controlPoints_labelBounds$$3_lopt$$1$$.x;
    $DvtDiagramLayoutContextNode$$ = $controlPoints_labelBounds$$3_lopt$$1$$.y;
    for ($li$$1_ni$$1_topContainerPadding$$ = 0;$li$$1_ni$$1_topContainerPadding$$ < $layoutContext$$16$$.$getNodeCount$();$li$$1_ni$$1_topContainerPadding$$++) {
      $DvtDiagramLayoutContextLink$$ = $layoutContext$$16$$.$getNodeByIndex$($li$$1_ni$$1_topContainerPadding$$), $DvtDiagramLayoutContextLink$$.$ContentOffset$ = new $dvt$$4$$.$DiagramPoint$($controlPoints_labelBounds$$3_lopt$$1$$.x, $controlPoints_labelBounds$$3_lopt$$1$$.y), $i$$255_linkOffset_node$$164_obj$$114$$ = this.$getNodeById$($DvtDiagramLayoutContextLink$$.getId()), ($controlPoint_points$$20_pos$$25$$ = $DvtDiagramLayoutContextLink$$.$getPosition$()) && $i$$255_linkOffset_node$$164_obj$$114$$.$SetPosition$($controlPoint_points$$20_pos$$25$$.x + 
      $DvtDiagramLayoutContext$$, $controlPoint_points$$20_pos$$25$$.y + $DvtDiagramLayoutContextNode$$, $animator$$52_layoutViewport$$1$$), this.$ApplyLabelPosition$($DvtDiagramLayoutContextLink$$, $i$$255_linkOffset_node$$164_obj$$114$$, $dvt$$4$$.$DiagramLayoutUtils$.$convertDiagramPointToPoint$($controlPoint_points$$20_pos$$25$$), $animator$$52_layoutViewport$$1$$), $i$$255_linkOffset_node$$164_obj$$114$$.$isDisclosed$() && ($DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextLink$$.$getContainerPadding$()) && 
      $i$$255_linkOffset_node$$164_obj$$114$$.$setContainerPadding$($dvt$$4$$.$BaseDiagram$.$getContainerPadding$($DvtDiagramLayoutContextLink$$), $animator$$52_layoutViewport$$1$$);
    }
    if (!this.$_bCrossedZoomThreshold$) {
      for ($li$$1_ni$$1_topContainerPadding$$ = 0;$li$$1_ni$$1_topContainerPadding$$ < $layoutContext$$16$$.$getLinkCount$();$li$$1_ni$$1_topContainerPadding$$++) {
        var $DvtDiagramLayoutContextLink$$ = $layoutContext$$16$$.$getLinkByIndex$($li$$1_ni$$1_topContainerPadding$$), $link$$49$$ = this.$getLinkById$($DvtDiagramLayoutContextLink$$.getId()), $i$$255_linkOffset_node$$164_obj$$114$$ = this.$GetLinkTranslationOffset$($link$$49$$, $DvtDiagramLayoutContextLink$$, $controlPoints_labelBounds$$3_lopt$$1$$, $animator$$52_layoutViewport$$1$$), $linkOffsetX$$ = $i$$255_linkOffset_node$$164_obj$$114$$.x, $linkOffsetY$$ = $i$$255_linkOffset_node$$164_obj$$114$$.y;
        if ($controlPoint_points$$20_pos$$25$$ = $DvtDiagramLayoutContextLink$$.$getPoints$()) {
          0 < $controlPoint_points$$20_pos$$25$$.length && !isNaN($controlPoint_points$$20_pos$$25$$[0]) && ($controlPoint_points$$20_pos$$25$$ = $dvt$$4$$.$DiagramLinkUtils$.$ConvertToPath$($controlPoint_points$$20_pos$$25$$));
          for (var $translatedPoints$$ = [], $i$$255_linkOffset_node$$164_obj$$114$$ = 0;$i$$255_linkOffset_node$$164_obj$$114$$ < $controlPoint_points$$20_pos$$25$$.length;) {
            isNaN($controlPoint_points$$20_pos$$25$$[$i$$255_linkOffset_node$$164_obj$$114$$]) ? ($translatedPoints$$.push($controlPoint_points$$20_pos$$25$$[$i$$255_linkOffset_node$$164_obj$$114$$]), $i$$255_linkOffset_node$$164_obj$$114$$++) : ($translatedPoints$$.push($controlPoint_points$$20_pos$$25$$[$i$$255_linkOffset_node$$164_obj$$114$$] + $linkOffsetX$$), $translatedPoints$$.push($controlPoint_points$$20_pos$$25$$[$i$$255_linkOffset_node$$164_obj$$114$$ + 1] + $linkOffsetY$$), $i$$255_linkOffset_node$$164_obj$$114$$ += 
            2);
          }
          $animator$$52_layoutViewport$$1$$ && $link$$49$$.$getPoints$() ? 0 < $translatedPoints$$.length && isNaN($translatedPoints$$[0]) ? ($i$$255_linkOffset_node$$164_obj$$114$$ = $dvt$$4$$.$ShapeAnimationUtils$.$getAssimilatedPaths$($link$$49$$.$getPoints$(), $translatedPoints$$), $link$$49$$.$setPoints$($i$$255_linkOffset_node$$164_obj$$114$$.$updatedOldPath$), $animator$$52_layoutViewport$$1$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_PATH$, $link$$49$$, $link$$49$$.$getPoints$, $link$$49$$.$setPoints$, 
          $i$$255_linkOffset_node$$164_obj$$114$$.$updatedNewPath$), $dvt$$4$$.$Playable$.$appendOnEnd$($animator$$52_layoutViewport$$1$$, function() {
            $link$$49$$.$setPoints$($translatedPoints$$);
          })) : $animator$$52_layoutViewport$$1$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_POLYLINE$, $link$$49$$, $link$$49$$.$getPoints$, $link$$49$$.$setPoints$, $translatedPoints$$) : $link$$49$$.$setPoints$($translatedPoints$$);
        }
        this.$ApplyLabelPosition$($DvtDiagramLayoutContextLink$$, $link$$49$$, new $dvt$$4$$.$Point$(-$linkOffsetX$$, -$linkOffsetY$$), $animator$$52_layoutViewport$$1$$);
      }
    }
    if ($animator$$52_layoutViewport$$1$$ = $layoutContext$$16$$.$getViewport$()) {
      this.$_layoutViewport$ = new $dvt$$4$$.$Rectangle$($animator$$52_layoutViewport$$1$$.x + $DvtDiagramLayoutContext$$, $animator$$52_layoutViewport$$1$$.y + $DvtDiagramLayoutContextNode$$, $animator$$52_layoutViewport$$1$$.w, $animator$$52_layoutViewport$$1$$.h), this.$_layoutViewportContainerId$ = $layoutContext$$16$$.$_containerId$;
    }
    $bSaveOffset$$1$$ && (this.$_layoutOffset$ = new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$));
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$GetLinkTranslationOffset$ = function $$dvt$$4$$$$BaseDiagram$$$$GetLinkTranslationOffset$$($containerId$$7_link$$50_node$$165$$, $ancestorId$$3_lc$$9$$, $lopt$$2$$, $animator$$53$$) {
    var $DvtDiagramLayoutContext$$ = new $dvt$$4$$.$Point$(0, 0);
    if (!$containerId$$7_link$$50_node$$165$$.$getGroupId$()) {
      $DvtDiagramLayoutContext$$ = $lopt$$2$$;
    } else {
      if ($containerId$$7_link$$50_node$$165$$.$getGroupId$() != $ancestorId$$3_lc$$9$$.$_coordinateContainerId$) {
        $ancestorId$$3_lc$$9$$ = $ancestorId$$3_lc$$9$$.$_coordinateContainerId$;
        for ($containerId$$7_link$$50_node$$165$$ = this.$getNodeById$($containerId$$7_link$$50_node$$165$$.$getGroupId$());$containerId$$7_link$$50_node$$165$$;) {
          var $DvtDiagramLayoutContextNode$$ = $containerId$$7_link$$50_node$$165$$.$getContainerPadding$();
          $DvtDiagramLayoutContext$$.x -= $DvtDiagramLayoutContextNode$$.left - $containerId$$7_link$$50_node$$165$$.$GetPosition$($animator$$53$$).x;
          $DvtDiagramLayoutContext$$.y -= $DvtDiagramLayoutContextNode$$.top - $containerId$$7_link$$50_node$$165$$.$GetPosition$($animator$$53$$).y;
          $containerId$$7_link$$50_node$$165$$ = $containerId$$7_link$$50_node$$165$$.$getGroupId$();
          $containerId$$7_link$$50_node$$165$$ = $containerId$$7_link$$50_node$$165$$ != $ancestorId$$3_lc$$9$$ ? this.$getNodeById$($containerId$$7_link$$50_node$$165$$) : null;
        }
        $ancestorId$$3_lc$$9$$ || ($DvtDiagramLayoutContext$$.x += $lopt$$2$$.x, $DvtDiagramLayoutContext$$.y += $lopt$$2$$.y);
      }
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$GetLayoutViewport$ = function $$dvt$$4$$$$BaseDiagram$$$$GetLayoutViewport$$($animator$$54$$) {
    var $viewport$$6$$;
    if (this.$_layoutViewport$ && ($viewport$$6$$ = new $dvt$$4$$.$Rectangle$(this.$_layoutViewport$.x, this.$_layoutViewport$.y, this.$_layoutViewport$.$w$, this.$_layoutViewport$.$h$), this.$_layoutViewportContainerId$)) {
      for (var $containerId$$8_node$$166$$ = this.$getNodeById$(this.$_layoutViewportContainerId$);$containerId$$8_node$$166$$;) {
        var $tx$$9$$ = $containerId$$8_node$$166$$.$getTranslateX$(), $DvtDiagramLayoutContext$$ = $containerId$$8_node$$166$$.$getTranslateY$();
        if ($animator$$54$$) {
          var $DvtDiagramLayoutContextNode$$ = $animator$$54$$.$getDestVal$($containerId$$8_node$$166$$, $containerId$$8_node$$166$$.$getTranslateX$), $DvtDiagramLayoutContextLink$$ = $animator$$54$$.$getDestVal$($containerId$$8_node$$166$$, $containerId$$8_node$$166$$.$getTranslateY$);
          if ($DvtDiagramLayoutContextNode$$ || 0 == $DvtDiagramLayoutContextNode$$) {
            $tx$$9$$ = $DvtDiagramLayoutContextNode$$;
          }
          if ($DvtDiagramLayoutContextLink$$ || 0 == $DvtDiagramLayoutContextLink$$) {
            $DvtDiagramLayoutContext$$ = $DvtDiagramLayoutContextLink$$;
          }
        }
        $viewport$$6$$.x += $tx$$9$$;
        $viewport$$6$$.y += $DvtDiagramLayoutContext$$;
        $containerId$$8_node$$166$$ = ($containerId$$8_node$$166$$ = $containerId$$8_node$$166$$.$getGroupId$()) ? this.$getNodeById$($containerId$$8_node$$166$$) : null;
      }
    }
    return $viewport$$6$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$IsLayoutViewport$ = function $$dvt$$4$$$$BaseDiagram$$$$IsLayoutViewport$$() {
    return this.$_layoutViewport$ ? !0 : !1;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$ClearLayoutViewport$ = function $$dvt$$4$$$$BaseDiagram$$$$ClearLayoutViewport$$() {
    this.$_layoutViewportContainerId$ = this.$_layoutViewport$ = null;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CalcLayoutOffset$ = function $$dvt$$4$$$$BaseDiagram$$$$CalcLayoutOffset$$($x$$94$$, $y$$74$$) {
    return new $dvt$$4$$.$Point$($x$$94$$, $y$$74$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$AdjustMinZoom$ = function $$dvt$$4$$$$BaseDiagram$$$$AdjustMinZoom$$($dvt$$4$$, $fitBounds$$5$$) {
    if (0 == this.$getMinZoom$()) {
      var $panZoomCanvas$$1$$ = this.$_panZoomCanvas$, $minZoomFitBounds$$1$$ = $fitBounds$$5$$ ? $fitBounds$$5$$ : this.$GetViewBounds$($dvt$$4$$);
      $panZoomCanvas$$1$$.$setMinZoom$(this.$GetMinZoomFactor$() * Math.min(this.$CalculateMinimumScale$($minZoomFitBounds$$1$$), $panZoomCanvas$$1$$.$getMaxZoom$()));
      return $minZoomFitBounds$$1$$;
    }
    return null;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$GetMinZoomFactor$ = function $$dvt$$4$$$$BaseDiagram$$$$GetMinZoomFactor$$() {
    return 1;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CalculateMinimumScale$ = function $$dvt$$4$$$$BaseDiagram$$$$CalculateMinimumScale$$($dvt$$4$$) {
    if (!$dvt$$4$$) {
      return 0;
    }
    var $panZoomCanvas$$2$$ = this.$_panZoomCanvas$;
    return Math.min((this.$Width$ - 2 * $panZoomCanvas$$2$$.$_zoomToFitPadding$) / $dvt$$4$$.$w$, (this.$Height$ - 2 * $panZoomCanvas$$2$$.$_zoomToFitPadding$) / $dvt$$4$$.$h$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$GetViewBounds$ = function $$dvt$$4$$$$BaseDiagram$$$$GetViewBounds$$($dvt$$4$$, $arNodeIds$$3$$, $arLinkIds$$1$$) {
    return this.$CalcViewBounds$($dvt$$4$$, $arNodeIds$$3$$, $arLinkIds$$1$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$CalcViewBounds$ = function $$dvt$$4$$$$BaseDiagram$$$$CalcViewBounds$$($animator$$57$$, $arNodeIds$$4_link$$51_linkParent$$1$$, $arLinkIds$$2$$) {
    var $bounds$$23$$ = null, $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$, $DvtDiagramLayoutContextLink$$, $bx$$1_localPoint1_node$$167_stagePoint1$$, $contentPane$$ = this.$_panZoomCanvas$.$_contentPane$;
    $arNodeIds$$4_link$$51_linkParent$$1$$ || ($arNodeIds$$4_link$$51_linkParent$$1$$ = this.$GetAllNodes$());
    for (var $i$$256$$ = 0;$i$$256$$ < $arNodeIds$$4_link$$51_linkParent$$1$$.length;$i$$256$$++) {
      if ($DvtDiagramLayoutContext$$ = $arNodeIds$$4_link$$51_linkParent$$1$$[$i$$256$$], ($bx$$1_localPoint1_node$$167_stagePoint1$$ = this.$getNodeById$($DvtDiagramLayoutContext$$)) && $bx$$1_localPoint1_node$$167_stagePoint1$$.$_bVisible$ && !$bx$$1_localPoint1_node$$167_stagePoint1$$.$_bHiddenAncestor$) {
        $DvtDiagramLayoutContext$$ = $bx$$1_localPoint1_node$$167_stagePoint1$$.$GetNodeBounds$($animator$$57$$);
        $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextNode$$ = null;
        $animator$$57$$ && ($DvtDiagramLayoutContextNode$$ = $animator$$57$$.$getDestVal$($bx$$1_localPoint1_node$$167_stagePoint1$$, $bx$$1_localPoint1_node$$167_stagePoint1$$.$getTranslateX$), $DvtDiagramLayoutContextLink$$ = $animator$$57$$.$getDestVal$($bx$$1_localPoint1_node$$167_stagePoint1$$, $bx$$1_localPoint1_node$$167_stagePoint1$$.$getTranslateY$));
        null == $DvtDiagramLayoutContextNode$$ && ($DvtDiagramLayoutContextNode$$ = $bx$$1_localPoint1_node$$167_stagePoint1$$.$getTranslateX$());
        null == $DvtDiagramLayoutContextLink$$ && ($DvtDiagramLayoutContextLink$$ = $bx$$1_localPoint1_node$$167_stagePoint1$$.$getTranslateY$());
        $DvtDiagramLayoutContext$$.x += $DvtDiagramLayoutContextNode$$;
        $DvtDiagramLayoutContext$$.y += $DvtDiagramLayoutContextLink$$;
        if ($DvtDiagramLayoutContextNode$$ = $bx$$1_localPoint1_node$$167_stagePoint1$$.$getGroupId$()) {
          $DvtDiagramLayoutContextNode$$ = $bx$$1_localPoint1_node$$167_stagePoint1$$.getParent(), $bx$$1_localPoint1_node$$167_stagePoint1$$ = this.$LocalToStage$(new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$.x, $DvtDiagramLayoutContext$$.y), $DvtDiagramLayoutContextNode$$, $animator$$57$$), $bx$$1_localPoint1_node$$167_stagePoint1$$ = this.$StageToLocal$($bx$$1_localPoint1_node$$167_stagePoint1$$, $contentPane$$, $animator$$57$$), $DvtDiagramLayoutContextNode$$ = this.$LocalToStage$(new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$.x + 
          $DvtDiagramLayoutContext$$.$w$, $DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$), $DvtDiagramLayoutContextNode$$, $animator$$57$$), $DvtDiagramLayoutContextNode$$ = this.$StageToLocal$($DvtDiagramLayoutContextNode$$, $contentPane$$, $animator$$57$$), $DvtDiagramLayoutContext$$.x = $bx$$1_localPoint1_node$$167_stagePoint1$$.x, $DvtDiagramLayoutContext$$.y = $bx$$1_localPoint1_node$$167_stagePoint1$$.y, $DvtDiagramLayoutContext$$.$w$ = $DvtDiagramLayoutContextNode$$.x - $bx$$1_localPoint1_node$$167_stagePoint1$$.x, 
          $DvtDiagramLayoutContext$$.$h$ = $DvtDiagramLayoutContextNode$$.y - $bx$$1_localPoint1_node$$167_stagePoint1$$.y;
        }
        $bounds$$23$$ ? ($bx$$1_localPoint1_node$$167_stagePoint1$$ = $bounds$$23$$.x, $DvtDiagramLayoutContextNode$$ = $bounds$$23$$.y, $bounds$$23$$.x = Math.min($bounds$$23$$.x, $DvtDiagramLayoutContext$$.x), $bounds$$23$$.y = Math.min($bounds$$23$$.y, $DvtDiagramLayoutContext$$.y), $bounds$$23$$.$w$ = Math.max($bx$$1_localPoint1_node$$167_stagePoint1$$ + $bounds$$23$$.$w$, $DvtDiagramLayoutContext$$.x + $DvtDiagramLayoutContext$$.$w$) - $bounds$$23$$.x, $bounds$$23$$.$h$ = Math.max($DvtDiagramLayoutContextNode$$ + 
        $bounds$$23$$.$h$, $DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$) - $bounds$$23$$.y) : $bounds$$23$$ = $DvtDiagramLayoutContext$$;
      }
    }
    $arLinkIds$$2$$ || ($arLinkIds$$2$$ = this.$GetAllLinks$());
    for ($i$$256$$ = 0;$i$$256$$ < $arLinkIds$$2$$.length;$i$$256$$++) {
      if ($DvtDiagramLayoutContext$$ = $arLinkIds$$2$$[$i$$256$$], ($arNodeIds$$4_link$$51_linkParent$$1$$ = this.$getLinkById$($DvtDiagramLayoutContext$$)) && $arNodeIds$$4_link$$51_linkParent$$1$$.$_bVisible$) {
        $DvtDiagramLayoutContext$$ = $arNodeIds$$4_link$$51_linkParent$$1$$.$GetLinkBounds$($animator$$57$$);
        if ($DvtDiagramLayoutContextNode$$ = $arNodeIds$$4_link$$51_linkParent$$1$$.$getGroupId$()) {
          $arNodeIds$$4_link$$51_linkParent$$1$$ = $arNodeIds$$4_link$$51_linkParent$$1$$.getParent(), $bx$$1_localPoint1_node$$167_stagePoint1$$ = this.$LocalToStage$(new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$.x, $DvtDiagramLayoutContext$$.y), $arNodeIds$$4_link$$51_linkParent$$1$$, $animator$$57$$), $bx$$1_localPoint1_node$$167_stagePoint1$$ = this.$StageToLocal$($bx$$1_localPoint1_node$$167_stagePoint1$$, $contentPane$$, $animator$$57$$), $DvtDiagramLayoutContextNode$$ = this.$LocalToStage$(new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$.x + 
          $DvtDiagramLayoutContext$$.$w$, $DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$), $arNodeIds$$4_link$$51_linkParent$$1$$, $animator$$57$$), $DvtDiagramLayoutContextNode$$ = this.$StageToLocal$($DvtDiagramLayoutContextNode$$, $contentPane$$, $animator$$57$$), $DvtDiagramLayoutContext$$.x = $bx$$1_localPoint1_node$$167_stagePoint1$$.x, $DvtDiagramLayoutContext$$.y = $bx$$1_localPoint1_node$$167_stagePoint1$$.y, $DvtDiagramLayoutContext$$.$w$ = $DvtDiagramLayoutContextNode$$.x - 
          $bx$$1_localPoint1_node$$167_stagePoint1$$.x, $DvtDiagramLayoutContext$$.$h$ = $DvtDiagramLayoutContextNode$$.y - $bx$$1_localPoint1_node$$167_stagePoint1$$.y;
        }
        $bounds$$23$$ ? ($bx$$1_localPoint1_node$$167_stagePoint1$$ = $bounds$$23$$.x, $DvtDiagramLayoutContextNode$$ = $bounds$$23$$.y, $bounds$$23$$.x = Math.min($bounds$$23$$.x, $DvtDiagramLayoutContext$$.x), $bounds$$23$$.y = Math.min($bounds$$23$$.y, $DvtDiagramLayoutContext$$.y), $bounds$$23$$.$w$ = Math.max($bx$$1_localPoint1_node$$167_stagePoint1$$ + $bounds$$23$$.$w$, $DvtDiagramLayoutContext$$.x + $DvtDiagramLayoutContext$$.$w$) - $bounds$$23$$.x, $bounds$$23$$.$h$ = Math.max($DvtDiagramLayoutContextNode$$ + 
        $bounds$$23$$.$h$, $DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$) - $bounds$$23$$.y) : $bounds$$23$$ = $DvtDiagramLayoutContext$$;
      }
    }
    return $bounds$$23$$;
  };
  $dvt$$4$$.$BaseDiagram$.$RotateBounds$ = function $$dvt$$4$$$$BaseDiagram$$$RotateBounds$$($bottomRight$$3_bounds$$24_br$$1$$, $rotAngle$$2_tl$$, $minY$$7_rotPoint$$2$$) {
    if (null == $rotAngle$$2_tl$$ && !$minY$$7_rotPoint$$2$$) {
      return $bottomRight$$3_bounds$$24_br$$1$$;
    }
    var $topLeft$$3$$ = new $dvt$$4$$.$Point$($bottomRight$$3_bounds$$24_br$$1$$.x, $bottomRight$$3_bounds$$24_br$$1$$.y), $DvtDiagramLayoutContext$$ = new $dvt$$4$$.$Point$($bottomRight$$3_bounds$$24_br$$1$$.x + $bottomRight$$3_bounds$$24_br$$1$$.$w$, $bottomRight$$3_bounds$$24_br$$1$$.y), $DvtDiagramLayoutContextNode$$ = new $dvt$$4$$.$Point$($bottomRight$$3_bounds$$24_br$$1$$.x, $bottomRight$$3_bounds$$24_br$$1$$.y + $bottomRight$$3_bounds$$24_br$$1$$.$h$);
    $bottomRight$$3_bounds$$24_br$$1$$ = new $dvt$$4$$.$Point$($bottomRight$$3_bounds$$24_br$$1$$.x + $bottomRight$$3_bounds$$24_br$$1$$.$w$, $bottomRight$$3_bounds$$24_br$$1$$.y + $bottomRight$$3_bounds$$24_br$$1$$.$h$);
    var $DvtDiagramLayoutContextLink$$ = new $dvt$$4$$.$Matrix$;
    null != $rotAngle$$2_tl$$ && ($minY$$7_rotPoint$$2$$ && $DvtDiagramLayoutContextLink$$.translate(-$minY$$7_rotPoint$$2$$.x, -$minY$$7_rotPoint$$2$$.y), $DvtDiagramLayoutContextLink$$.rotate($rotAngle$$2_tl$$), $minY$$7_rotPoint$$2$$ && $DvtDiagramLayoutContextLink$$.translate($minY$$7_rotPoint$$2$$.x, $minY$$7_rotPoint$$2$$.y));
    $rotAngle$$2_tl$$ = $DvtDiagramLayoutContextLink$$.$transformPoint$($topLeft$$3$$);
    $DvtDiagramLayoutContext$$ = $DvtDiagramLayoutContextLink$$.$transformPoint$($DvtDiagramLayoutContext$$);
    $DvtDiagramLayoutContextNode$$ = $DvtDiagramLayoutContextLink$$.$transformPoint$($DvtDiagramLayoutContextNode$$);
    $bottomRight$$3_bounds$$24_br$$1$$ = $DvtDiagramLayoutContextLink$$.$transformPoint$($bottomRight$$3_bounds$$24_br$$1$$);
    $DvtDiagramLayoutContextLink$$ = Math.min(Math.min($rotAngle$$2_tl$$.x, $DvtDiagramLayoutContext$$.x), Math.min($DvtDiagramLayoutContextNode$$.x, $bottomRight$$3_bounds$$24_br$$1$$.x));
    $minY$$7_rotPoint$$2$$ = Math.min(Math.min($rotAngle$$2_tl$$.y, $DvtDiagramLayoutContext$$.y), Math.min($DvtDiagramLayoutContextNode$$.y, $bottomRight$$3_bounds$$24_br$$1$$.y));
    return new $dvt$$4$$.$Rectangle$($DvtDiagramLayoutContextLink$$, $minY$$7_rotPoint$$2$$, Math.max(Math.max($rotAngle$$2_tl$$.x, $DvtDiagramLayoutContext$$.x), Math.max($DvtDiagramLayoutContextNode$$.x, $bottomRight$$3_bounds$$24_br$$1$$.x)) - $DvtDiagramLayoutContextLink$$, Math.max(Math.max($rotAngle$$2_tl$$.y, $DvtDiagramLayoutContext$$.y), Math.max($DvtDiagramLayoutContextNode$$.y, $bottomRight$$3_bounds$$24_br$$1$$.y)) - $minY$$7_rotPoint$$2$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$StageToLocal$ = function $$dvt$$4$$$$BaseDiagram$$$$StageToLocal$$($dvt$$4$$, $displayable$$16$$, $animator$$58$$) {
    for (var $pathToStage$$ = $displayable$$16$$.$getPathToStage$(), $DvtDiagramLayoutContext$$ = $dvt$$4$$, $DvtDiagramLayoutContextNode$$ = $pathToStage$$.length - 1;0 <= $DvtDiagramLayoutContextNode$$;$DvtDiagramLayoutContextNode$$--) {
      $displayable$$16$$ = $pathToStage$$[$DvtDiagramLayoutContextNode$$];
      $dvt$$4$$ = $displayable$$16$$.$getMatrix$().clone();
      var $DvtDiagramLayoutContextLink$$ = null, $ty$$12$$ = null;
      $animator$$58$$ && ($DvtDiagramLayoutContextLink$$ = $animator$$58$$.$getDestVal$($displayable$$16$$, $displayable$$16$$.$getTranslateX$), $ty$$12$$ = $animator$$58$$.$getDestVal$($displayable$$16$$, $displayable$$16$$.$getTranslateY$));
      null != $DvtDiagramLayoutContextLink$$ && ($dvt$$4$$.$_tx$ = $DvtDiagramLayoutContextLink$$);
      null != $ty$$12$$ && ($dvt$$4$$.$_ty$ = $ty$$12$$);
      $dvt$$4$$.$invert$();
      $DvtDiagramLayoutContext$$ = $dvt$$4$$.$transformPoint$($DvtDiagramLayoutContext$$);
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$LocalToStage$ = function $$dvt$$4$$$$BaseDiagram$$$$LocalToStage$$($dvt$$4$$, $displayable$$17$$, $animator$$59$$) {
    for (var $pathToStage$$1$$ = $displayable$$17$$.$getPathToStage$(), $DvtDiagramLayoutContext$$ = $dvt$$4$$, $DvtDiagramLayoutContextNode$$ = 0;$DvtDiagramLayoutContextNode$$ < $pathToStage$$1$$.length;$DvtDiagramLayoutContextNode$$++) {
      $displayable$$17$$ = $pathToStage$$1$$[$DvtDiagramLayoutContextNode$$];
      $dvt$$4$$ = $displayable$$17$$.$getMatrix$().clone();
      var $DvtDiagramLayoutContextLink$$ = null, $ty$$13$$ = null;
      $animator$$59$$ && ($DvtDiagramLayoutContextLink$$ = $animator$$59$$.$getDestVal$($displayable$$17$$, $displayable$$17$$.$getTranslateX$), $ty$$13$$ = $animator$$59$$.$getDestVal$($displayable$$17$$, $displayable$$17$$.$getTranslateY$));
      null != $DvtDiagramLayoutContextLink$$ && ($dvt$$4$$.$_tx$ = $DvtDiagramLayoutContextLink$$);
      null != $ty$$13$$ && ($dvt$$4$$.$_ty$ = $ty$$13$$);
      $DvtDiagramLayoutContext$$ = $dvt$$4$$.$transformPoint$($DvtDiagramLayoutContext$$);
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$ConstrainPanning$ = function $$dvt$$4$$$$BaseDiagram$$$$ConstrainPanning$$($dvt$$4$$, $maxPanY_y$$75$$, $minPanX_w$$19$$, $h$$15_minPanY$$, $DvtDiagramLayoutContext$$) {
    var $DvtDiagramLayoutContextNode$$ = this.$_panZoomCanvas$, $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextNode$$.$getSize$().$w$ / 2, $halfViewportH_viewportBounds$$1$$ = $DvtDiagramLayoutContextNode$$.$getSize$().$h$ / 2;
    $minPanX_w$$19$$ = $DvtDiagramLayoutContextLink$$ - ($minPanX_w$$19$$ + $dvt$$4$$) * $DvtDiagramLayoutContext$$;
    $h$$15_minPanY$$ = $halfViewportH_viewportBounds$$1$$ - ($h$$15_minPanY$$ + $maxPanY_y$$75$$) * $DvtDiagramLayoutContext$$;
    $dvt$$4$$ = $DvtDiagramLayoutContextLink$$ - $dvt$$4$$ * $DvtDiagramLayoutContext$$;
    $maxPanY_y$$75$$ = $halfViewportH_viewportBounds$$1$$ - $maxPanY_y$$75$$ * $DvtDiagramLayoutContext$$;
    this.$IsLayoutViewport$() && ($halfViewportH_viewportBounds$$1$$ = this.$GetLayoutViewport$(), -$halfViewportH_viewportBounds$$1$$.x * $DvtDiagramLayoutContext$$ < $minPanX_w$$19$$ ? ($DvtDiagramLayoutContextLink$$ = $minPanX_w$$19$$ + $halfViewportH_viewportBounds$$1$$.x * $DvtDiagramLayoutContext$$, $minPanX_w$$19$$ -= $DvtDiagramLayoutContextLink$$, $dvt$$4$$ += $DvtDiagramLayoutContextLink$$) : -$halfViewportH_viewportBounds$$1$$.x * $DvtDiagramLayoutContext$$ > $dvt$$4$$ && ($DvtDiagramLayoutContextLink$$ = 
    -$halfViewportH_viewportBounds$$1$$.x * $DvtDiagramLayoutContext$$ - $dvt$$4$$, $minPanX_w$$19$$ -= $DvtDiagramLayoutContextLink$$, $dvt$$4$$ += $DvtDiagramLayoutContextLink$$), -$halfViewportH_viewportBounds$$1$$.y * $DvtDiagramLayoutContext$$ < $h$$15_minPanY$$ ? ($DvtDiagramLayoutContext$$ = $h$$15_minPanY$$ + $halfViewportH_viewportBounds$$1$$.y * $DvtDiagramLayoutContext$$, $h$$15_minPanY$$ -= $DvtDiagramLayoutContext$$, $maxPanY_y$$75$$ += $DvtDiagramLayoutContext$$) : -$halfViewportH_viewportBounds$$1$$.y * 
    $DvtDiagramLayoutContext$$ > $maxPanY_y$$75$$ && ($DvtDiagramLayoutContext$$ = -$halfViewportH_viewportBounds$$1$$.y * $DvtDiagramLayoutContext$$ - $maxPanY_y$$75$$, $h$$15_minPanY$$ -= $DvtDiagramLayoutContext$$, $maxPanY_y$$75$$ += $DvtDiagramLayoutContext$$));
    $DvtDiagramLayoutContextNode$$.$setMinPanX$($minPanX_w$$19$$);
    $DvtDiagramLayoutContextNode$$.$setMinPanY$($h$$15_minPanY$$);
    $DvtDiagramLayoutContextNode$$.$setMaxPanX$($dvt$$4$$);
    $DvtDiagramLayoutContextNode$$.$setMaxPanY$($maxPanY_y$$75$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$moveToDiagramFront$ = function $$dvt$$4$$$$BaseDiagram$$$$moveToDiagramFront$$($dvt$$4$$) {
    this.$_topPane$.$addChild$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$moveToLinks$ = function $$dvt$$4$$$$BaseDiagram$$$$moveToLinks$$($dvt$$4$$) {
    this.$_linksPane$.$addChild$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$moveToNodes$ = function $$dvt$$4$$$$BaseDiagram$$$$moveToNodes$$($dvt$$4$$) {
    this.$_nodesPane$.$addChild$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagram$.$getContainerPadding$ = function $$dvt$$4$$$$BaseDiagram$$$getContainerPadding$$($dvt$$4$$) {
    var $containerPadding$$7$$ = {};
    $containerPadding$$7$$.top = $dvt$$4$$.top;
    $containerPadding$$7$$.right = $dvt$$4$$.right;
    $containerPadding$$7$$.bottom = $dvt$$4$$.bottom;
    $containerPadding$$7$$.left = $dvt$$4$$.left;
    return $containerPadding$$7$$;
  };
  $dvt$$4$$.$BaseDiagram$.$getLayoutContainerPadding$ = function $$dvt$$4$$$$BaseDiagram$$$getLayoutContainerPadding$$($dvt$$4$$) {
    var $layoutContainerPadding$$1$$ = {};
    $layoutContainerPadding$$1$$.top = $dvt$$4$$.top;
    $layoutContainerPadding$$1$$.right = $dvt$$4$$.right;
    $layoutContainerPadding$$1$$.bottom = $dvt$$4$$.bottom;
    $layoutContainerPadding$$1$$.left = $dvt$$4$$.left;
    return $layoutContainerPadding$$1$$;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$renderNodeFromContext$ = function $$dvt$$4$$$$BaseDiagram$$$$renderNodeFromContext$$() {
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$UpdateNodeLayoutContext$ = function $$dvt$$4$$$$BaseDiagram$$$$UpdateNodeLayoutContext$$($nodeContext$$3$$, $node$$168$$) {
    var $padding$$14$$ = $node$$168$$.$isDisclosed$() ? $node$$168$$.$getContainerPadding$() : null;
    $padding$$14$$ && $nodeContext$$3$$.$setContainerPadding$($padding$$14$$.top, $padding$$14$$.right, $padding$$14$$.bottom, $padding$$14$$.left);
    $nodeContext$$3$$.$setBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($node$$168$$.$getLayoutBounds$()));
    $nodeContext$$3$$.$setContentBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($node$$168$$.$getContentBounds$()));
    $nodeContext$$3$$.$setLabelBounds$($dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$($node$$168$$.$getLabelBounds$()));
    $nodeContext$$3$$.$IsRendered$ = !0;
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$ApplyLabelPosition$ = function $$dvt$$4$$$$BaseDiagram$$$$ApplyLabelPosition$$($objc$$, $obj$$118$$, $pos$$26_translatedPos$$, $animator$$60$$) {
    var $DvtDiagramLayoutContext$$ = $objc$$.$getLabelBounds$(), $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLayoutUtils$.$convertDiagramRectToRect$($DvtDiagramLayoutContext$$), $DvtDiagramLayoutContextNode$$ = $objc$$.$getLabelPosition$();
    if ($DvtDiagramLayoutContext$$ && $DvtDiagramLayoutContextNode$$) {
      $pos$$26_translatedPos$$ = new $dvt$$4$$.$Point$($DvtDiagramLayoutContextNode$$.x - $pos$$26_translatedPos$$.x, $DvtDiagramLayoutContextNode$$.y - $pos$$26_translatedPos$$.y);
      var $DvtDiagramLayoutContextNode$$ = $objc$$.$_labelRotAngle$, $DvtDiagramLayoutContextLink$$ = $dvt$$4$$.$DiagramLayoutUtils$.$convertDiagramPointToPoint$($objc$$.$_labelRotPoint$);
      $animator$$60$$ ? ($animator$$60$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_RECTANGLE$, $obj$$118$$, $obj$$118$$.$getLabelBounds$, $obj$$118$$.$setLabelBounds$, $DvtDiagramLayoutContext$$), $obj$$118$$.$getLabelPosition$() ? $animator$$60$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_POINT$, $obj$$118$$, $obj$$118$$.$getLabelPosition$, $obj$$118$$.$setLabelPosition$, $pos$$26_translatedPos$$) : $obj$$118$$.$setLabelPosition$($pos$$26_translatedPos$$), null != $DvtDiagramLayoutContextNode$$ && $animator$$60$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_NUMBER$, 
      $obj$$118$$, $obj$$118$$.$getLabelRotationAngle$, $obj$$118$$.$setLabelRotationAngle$, $DvtDiagramLayoutContextNode$$), $DvtDiagramLayoutContextLink$$ && ($obj$$118$$.$_labelRotPoint$ ? $animator$$60$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_POINT$, $obj$$118$$, $obj$$118$$.$getLabelRotationPoint$, $obj$$118$$.$setLabelRotationPoint$, $DvtDiagramLayoutContextLink$$) : $obj$$118$$.$setLabelRotationPoint$($DvtDiagramLayoutContextLink$$))) : ($obj$$118$$.$setLabelBounds$($DvtDiagramLayoutContext$$), 
      $obj$$118$$.$setLabelPosition$($pos$$26_translatedPos$$), $obj$$118$$.$setLabelAlignments$($objc$$.$getLabelHalign$(), $objc$$.$_labelValign$), null != $DvtDiagramLayoutContextNode$$ && $obj$$118$$.$setLabelRotationAngle$($DvtDiagramLayoutContextNode$$), $DvtDiagramLayoutContextLink$$ && $obj$$118$$.$setLabelRotationPoint$($DvtDiagramLayoutContextLink$$));
    }
  };
  $dvt$$4$$.$BaseDiagram$.prototype.$getLayoutOffset$ = function $$dvt$$4$$$$BaseDiagram$$$$getLayoutOffset$$() {
    return this.$_layoutOffset$ ? this.$_layoutOffset$ : new $dvt$$4$$.$Point$(0, 0);
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$($dvt$$4$$, $manager$$6$$) {
    this.Init($dvt$$4$$, $manager$$6$$);
  };
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$BaseDiagramKeyboardHandler$, $dvt$$4$$.$PanZoomCanvasKeyboardHandler$, "dvt.BaseDiagramKeyboardHandler");
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.$_OUTGOING$ = 0;
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.$_INGOING$ = 1;
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.Init = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$Init$($diagram$$77$$, $manager$$7$$) {
    $dvt$$4$$.$BaseDiagramKeyboardHandler$.$superclass$.Init.call(this, $diagram$$77$$, $manager$$7$$);
    this.$_diagram$ = $diagram$$77$$;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$GetDiagram$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$GetDiagram$$() {
    return this.$_diagram$;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$isSelectionEvent$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$isSelectionEvent$$($event$$184$$) {
    return $event$$184$$.keyCode == $dvt$$4$$.KeyboardEvent.$TAB$ ? !1 : this.$isNavigationEvent$($event$$184$$) && !$event$$184$$.ctrlKey;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$isMultiSelectEvent$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$isMultiSelectEvent$$($event$$185$$) {
    return $event$$185$$.keyCode == $dvt$$4$$.KeyboardEvent.$SPACE$ && $event$$185$$.ctrlKey;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$getFirstNavigableLink$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$getFirstNavigableLink$$($node$$169_nodeBB_nodeCenterX$$, $direction$$7_event$$186$$, $listOfLinks$$) {
    $direction$$7_event$$186$$ = $direction$$7_event$$186$$.keyCode;
    if (!$listOfLinks$$ || 1 > $listOfLinks$$.length || !$node$$169_nodeBB_nodeCenterX$$) {
      return null;
    }
    var $link$$52$$ = $listOfLinks$$[0];
    $node$$169_nodeBB_nodeCenterX$$ = $node$$169_nodeBB_nodeCenterX$$.$getKeyboardBoundingBox$();
    $node$$169_nodeBB_nodeCenterX$$ = $node$$169_nodeBB_nodeCenterX$$.x + $node$$169_nodeBB_nodeCenterX$$.$w$ / 2;
    for (var $DvtDiagramLayoutContext$$ = 0;$DvtDiagramLayoutContext$$ < $listOfLinks$$.length;$DvtDiagramLayoutContext$$++) {
      var $DvtDiagramLayoutContextNode$$ = $listOfLinks$$[$DvtDiagramLayoutContext$$], $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextNode$$.$getKeyboardBoundingBox$(), $DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextLink$$.x + $DvtDiagramLayoutContextLink$$.$w$ / 2;
      if ($direction$$7_event$$186$$ == $dvt$$4$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$ && $DvtDiagramLayoutContextLink$$ <= $node$$169_nodeBB_nodeCenterX$$ || $direction$$7_event$$186$$ == $dvt$$4$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$ && $DvtDiagramLayoutContextLink$$ >= $node$$169_nodeBB_nodeCenterX$$) {
        $link$$52$$ = $DvtDiagramLayoutContextNode$$;
        break;
      }
    }
    return $link$$52$$;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$getNextNavigableLink$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$getNextNavigableLink$$($bForward$$8_node$$170$$, $currentLink$$, $event$$187_index$$126$$, $listOfLinks$$1$$) {
    if (!$listOfLinks$$1$$) {
      return null;
    }
    if (!$currentLink$$) {
      return $listOfLinks$$1$$[0];
    }
    if (!$bForward$$8_node$$170$$) {
      return $currentLink$$;
    }
    this.$_addSortingAttributes$($bForward$$8_node$$170$$, $listOfLinks$$1$$);
    $listOfLinks$$1$$.sort(this.$_getLinkComparator$());
    this.$_removeSortingAttributes$($listOfLinks$$1$$);
    $bForward$$8_node$$170$$ = $event$$187_index$$126$$.keyCode == $dvt$$4$$.KeyboardEvent.$DOWN_ARROW$ ? !0 : !1;
    for (var $DvtDiagramLayoutContext$$ = $event$$187_index$$126$$ = 0;$DvtDiagramLayoutContext$$ < $listOfLinks$$1$$.length;$DvtDiagramLayoutContext$$++) {
      if ($listOfLinks$$1$$[$DvtDiagramLayoutContext$$] === $currentLink$$) {
        $event$$187_index$$126$$ = $bForward$$8_node$$170$$ ? $DvtDiagramLayoutContext$$ == $listOfLinks$$1$$.length - 1 ? 0 : $DvtDiagramLayoutContext$$ + 1 : 0 == $DvtDiagramLayoutContext$$ ? $listOfLinks$$1$$.length - 1 : $DvtDiagramLayoutContext$$ - 1;
        break;
      }
    }
    return $listOfLinks$$1$$[$event$$187_index$$126$$];
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$GetVisibleNode$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$GetVisibleNode$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_getClockwiseAngle$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_getClockwiseAngle$$($dvt$$4$$, $link$$54$$) {
    var $angle$$8_p1_startNode$$ = this.$GetVisibleNode$($link$$54$$.$getStartId$ ? $link$$54$$.$getStartId$() : $link$$54$$.getData().$getStartId$()), $endNode_oppositeNode_p2$$ = this.$GetVisibleNode$($link$$54$$.$getEndId$ ? $link$$54$$.$getEndId$() : $link$$54$$.getData().$getEndId$()), $endNode_oppositeNode_p2$$ = $dvt$$4$$ == $angle$$8_p1_startNode$$ ? $endNode_oppositeNode_p2$$ : $angle$$8_p1_startNode$$, $angle$$8_p1_startNode$$ = this.$_getNodeCenter$($dvt$$4$$), $endNode_oppositeNode_p2$$ = 
    this.$_getNodeCenter$($endNode_oppositeNode_p2$$), $angle$$8_p1_startNode$$ = Math.atan2($endNode_oppositeNode_p2$$.y - $angle$$8_p1_startNode$$.y, $endNode_oppositeNode_p2$$.x - $angle$$8_p1_startNode$$.x);
    return $angle$$8_p1_startNode$$ = 0 > $angle$$8_p1_startNode$$ ? $angle$$8_p1_startNode$$ + 2 * Math.PI : $angle$$8_p1_startNode$$;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_getNodeCenter$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_getNodeCenter$$($node$$172_nodeBB$$1$$) {
    $node$$172_nodeBB$$1$$ = $node$$172_nodeBB$$1$$.$getKeyboardBoundingBox$();
    return new $dvt$$4$$.$Point$($node$$172_nodeBB$$1$$.x + $node$$172_nodeBB$$1$$.$w$ / 2, $node$$172_nodeBB$$1$$.y + $node$$172_nodeBB$$1$$.$h$ / 2);
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_getNodesDistance$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_getNodesDistance$$($dvt$$4$$) {
    var $p1$$1_startNode$$1$$ = this.$GetVisibleNode$($dvt$$4$$.$getStartId$ ? $dvt$$4$$.$getStartId$() : $dvt$$4$$.getData().$getStartId$());
    $dvt$$4$$ = this.$GetVisibleNode$($dvt$$4$$.$getEndId$ ? $dvt$$4$$.$getEndId$() : $dvt$$4$$.getData().$getEndId$());
    $p1$$1_startNode$$1$$ = this.$_getNodeCenter$($p1$$1_startNode$$1$$);
    $dvt$$4$$ = this.$_getNodeCenter$($dvt$$4$$);
    return Math.sqrt(Math.pow($dvt$$4$$.x - $p1$$1_startNode$$1$$.x, 2) + Math.pow($dvt$$4$$.y - $p1$$1_startNode$$1$$.y, 2));
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_getLinkDirection$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_getLinkDirection$$($node$$173$$, $link$$56$$) {
    return $node$$173$$ == this.$GetVisibleNode$($link$$56$$.$getEndId$ ? $link$$56$$.$getEndId$() : $link$$56$$.getData().$getEndId$()) ? $dvt$$4$$.$BaseDiagramKeyboardHandler$.$_INGOING$ : $dvt$$4$$.$BaseDiagramKeyboardHandler$.$_OUTGOING$;
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_getLinkComparator$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_getLinkComparator$$() {
    return function($link1$$, $link2$$) {
      var $linkAngle1$$ = $link1$$.$__angle$, $linkAngle2$$ = $link2$$.$__angle$, $DvtDiagramLayoutContext$$ = -1;
      !$dvt$$4$$.$BaseDiagramKeyboardHandler$.$_anglesAreEqualWithinTolerance$($linkAngle1$$, $linkAngle2$$) && $linkAngle1$$ > $linkAngle2$$ ? $DvtDiagramLayoutContext$$ = 1 : $dvt$$4$$.$BaseDiagramKeyboardHandler$.$_anglesAreEqualWithinTolerance$($linkAngle1$$, $linkAngle2$$) && ($link1$$.$__distance$ > $link2$$.$__distance$ ? $DvtDiagramLayoutContext$$ = 1 : $link2$$.$__distance$ == $link1$$.$__distance$ && $link1$$.$__direction$ > $link2$$.$__direction$ ? $DvtDiagramLayoutContext$$ = 1 : $link2$$.$__distance$ == 
      $link1$$.$__distance$ && $link1$$.$__direction$ == $link2$$.$__direction$ && ($DvtDiagramLayoutContext$$ = 0));
      return $DvtDiagramLayoutContext$$;
    };
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_removeSortingAttributes$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_removeSortingAttributes$$($dvt$$4$$) {
    for (var $i$$261$$ = 0;$i$$261$$ < $dvt$$4$$.length;$i$$261$$++) {
      var $link$$57$$ = $dvt$$4$$[$i$$261$$];
      $link$$57$$.$__angle$ = void 0;
      $link$$57$$.$__distance$ = void 0;
      $link$$57$$.$__direction$ = void 0;
    }
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.prototype.$_addSortingAttributes$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$$_addSortingAttributes$$($dvt$$4$$, $listOfLinks$$3$$) {
    for (var $i$$262$$ = 0;$i$$262$$ < $listOfLinks$$3$$.length;$i$$262$$++) {
      var $link$$58$$ = $listOfLinks$$3$$[$i$$262$$];
      $link$$58$$.$__angle$ = this.$_getClockwiseAngle$($dvt$$4$$, $link$$58$$);
      $link$$58$$.$__distance$ = this.$_getNodesDistance$($link$$58$$);
      $link$$58$$.$__direction$ = this.$_getLinkDirection$($dvt$$4$$, $link$$58$$);
    }
  };
  $dvt$$4$$.$BaseDiagramKeyboardHandler$.$_anglesAreEqualWithinTolerance$ = function $$dvt$$4$$$$BaseDiagramKeyboardHandler$$$_anglesAreEqualWithinTolerance$$($dvt$$4$$, $a2$$) {
    var $res$$2$$ = 1E-7 >= Math.abs($dvt$$4$$ - $a2$$);
    $res$$2$$ || ($res$$2$$ = 1E-7 >= Math.abs(2 * Math.PI + Math.min($dvt$$4$$, $a2$$) - Math.max($dvt$$4$$, $a2$$)));
    return $res$$2$$;
  };
  $dvt$$4$$.$BaseDiagramNode$ = function $$dvt$$4$$$$BaseDiagramNode$$($dvt$$4$$, $nodeId$$82$$, $diagram$$78$$) {
    this.Init($dvt$$4$$, $nodeId$$82$$, $diagram$$78$$);
  };
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$BaseDiagramNode$, $dvt$$4$$.$Container$, "dvt.BaseDiagramNode");
  $dvt$$4$$.$BaseDiagramNode$.prototype.Init = function $$dvt$$4$$$$BaseDiagramNode$$$Init$($context$$112$$, $nodeId$$83$$, $diagram$$79$$) {
    $dvt$$4$$.$BaseDiagramNode$.$superclass$.Init.call(this, $context$$112$$, null, $nodeId$$83$$);
    this.$_diagram$ = $diagram$$79$$;
    this.$_selected$ = this.$_bDisclosed$ = !1;
    this.$_selectable$ = !0;
    this.$_labelObj$;
    this.$_labelPos$;
    this.$_labelRotAngle$;
    this.$_labelRotPoint$;
    this.$_outLinkIds$;
    this.$_inLinkIds$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$GetDiagram$ = function $$dvt$$4$$$$BaseDiagramNode$$$$GetDiagram$$() {
    return this.$_diagram$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.getData = function $$dvt$$4$$$$BaseDiagramNode$$$getData$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getLayoutBounds$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getLayoutBounds$$() {
    return this.$getContentBounds$();
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getContentBounds$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getContentBounds$$() {
    return new $dvt$$4$$.$Rectangle$(0, 0, this.getWidth(), this.getHeight());
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setLabelPosition$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setLabelPosition$$($pos$$27$$) {
    $pos$$27$$ && (this.$_labelPos$ = $pos$$27$$, $dvt$$4$$.$BaseDiagramNode$.$PositionLabel$(this.$_labelObj$, $pos$$27$$, this.$getLabelBounds$(), this.$_labelRotAngle$, this.$_labelRotPoint$));
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getLabelPosition$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getLabelPosition$$() {
    return this.$_labelPos$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getLabelBounds$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getLabelBounds$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setLabelBounds$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setLabelBounds$$() {
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getContainerPadding$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getContainerPadding$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setContainerPadding$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setContainerPadding$$() {
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$isDisclosed$ = function $$dvt$$4$$$$BaseDiagramNode$$$$isDisclosed$$() {
    return this.$_bDisclosed$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setDisclosed$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setDisclosed$$($dvt$$4$$) {
    this.$_bDisclosed$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$isSelected$ = function $$dvt$$4$$$$BaseDiagramNode$$$$isSelected$$() {
    return this.$_selected$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setSelected$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setSelected$$($dvt$$4$$) {
    this.$_selected$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setSelectable$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setSelectable$$($dvt$$4$$) {
    this.$_selectable$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$isSelectable$ = function $$dvt$$4$$$$BaseDiagramNode$$$$isSelectable$$() {
    return this.$GetDiagram$().$isSelectionSupported$() && this.$_selectable$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setHiddenAncestor$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setHiddenAncestor$$($dvt$$4$$) {
    this.$_bHiddenAncestor$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$isHiddenAncestor$ = function $$dvt$$4$$$$BaseDiagramNode$$$$isHiddenAncestor$$() {
    return this.$_bHiddenAncestor$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setLabelRotationAngle$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setLabelRotationAngle$$($angle$$9$$) {
    this.$_labelRotAngle$ = $angle$$9$$;
    $dvt$$4$$.$BaseDiagramNode$.$PositionLabel$(this.$_labelObj$, this.$getLabelPosition$(), this.$getLabelBounds$(), $angle$$9$$, this.$_labelRotPoint$);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getLabelRotationAngle$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getLabelRotationAngle$$() {
    return this.$_labelRotAngle$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setLabelRotationPoint$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setLabelRotationPoint$$($point$$35$$) {
    this.$_labelRotPoint$ = $point$$35$$;
    $dvt$$4$$.$BaseDiagramNode$.$PositionLabel$(this.$_labelObj$, this.$getLabelPosition$(), this.$getLabelBounds$(), this.$_labelRotAngle$, $point$$35$$);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getLabelRotationPoint$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getLabelRotationPoint$$() {
    return this.$_labelRotPoint$;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$GetNodeBounds$ = function $$dvt$$4$$$$BaseDiagramNode$$$$GetNodeBounds$$($animator$$63_labelBounds$$5$$) {
    var $nodeBounds$$6$$ = this.$getLayoutBounds$(), $bounds$$26$$ = new $dvt$$4$$.$Rectangle$($nodeBounds$$6$$.x, $nodeBounds$$6$$.y, $nodeBounds$$6$$.$w$, $nodeBounds$$6$$.$h$), $labelPos$$5$$ = null;
    $animator$$63_labelBounds$$5$$ && ($labelPos$$5$$ = $animator$$63_labelBounds$$5$$.$getDestVal$(this, this.$getLabelPosition$));
    $labelPos$$5$$ || ($labelPos$$5$$ = this.$getLabelPosition$());
    var $DvtDiagramLayoutContext$$ = null, $DvtDiagramLayoutContextNode$$ = null;
    $animator$$63_labelBounds$$5$$ && ($DvtDiagramLayoutContext$$ = $animator$$63_labelBounds$$5$$.$getDestVal$(this, this.$getLabelRotationAngle$), $DvtDiagramLayoutContextNode$$ = $animator$$63_labelBounds$$5$$.$getDestVal$(this, this.$getLabelRotationPoint$));
    null == $DvtDiagramLayoutContext$$ && ($DvtDiagramLayoutContext$$ = this.$_labelRotAngle$);
    $DvtDiagramLayoutContextNode$$ || ($DvtDiagramLayoutContextNode$$ = this.$_labelRotPoint$);
    $animator$$63_labelBounds$$5$$ = this.$getLabelBounds$();
    $labelPos$$5$$ && $animator$$63_labelBounds$$5$$ && (null != $DvtDiagramLayoutContext$$ && ($animator$$63_labelBounds$$5$$ = $dvt$$4$$.$BaseDiagram$.$RotateBounds$($animator$$63_labelBounds$$5$$, $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$)), $bounds$$26$$.x = Math.min($nodeBounds$$6$$.x, $animator$$63_labelBounds$$5$$.x + $labelPos$$5$$.x), $bounds$$26$$.y = Math.min($nodeBounds$$6$$.y, $animator$$63_labelBounds$$5$$.y + $labelPos$$5$$.y), $bounds$$26$$.$w$ = Math.max($nodeBounds$$6$$.x + 
    $nodeBounds$$6$$.$w$, $animator$$63_labelBounds$$5$$.x + $labelPos$$5$$.x + $animator$$63_labelBounds$$5$$.$w$) - $bounds$$26$$.x, $bounds$$26$$.$h$ = Math.max($nodeBounds$$6$$.y + $nodeBounds$$6$$.$h$, $animator$$63_labelBounds$$5$$.y + $labelPos$$5$$.y + $animator$$63_labelBounds$$5$$.$h$) - $bounds$$26$$.y);
    return $bounds$$26$$;
  };
  $dvt$$4$$.$BaseDiagramNode$.$CalcLabelMatrix$ = function $$dvt$$4$$$$BaseDiagramNode$$$CalcLabelMatrix$$($pos$$28$$, $bounds$$27_mat$$12$$, $rotAngle$$3$$, $rotPoint$$3$$) {
    $bounds$$27_mat$$12$$ = new $dvt$$4$$.$Matrix$;
    null != $rotAngle$$3$$ && ($rotPoint$$3$$ && $bounds$$27_mat$$12$$.translate(-$rotPoint$$3$$.x, -$rotPoint$$3$$.y), $bounds$$27_mat$$12$$.rotate($rotAngle$$3$$), $rotPoint$$3$$ && $bounds$$27_mat$$12$$.translate($rotPoint$$3$$.x, $rotPoint$$3$$.y));
    $pos$$28$$ && $bounds$$27_mat$$12$$.translate($pos$$28$$.x, $pos$$28$$.y);
    return $bounds$$27_mat$$12$$;
  };
  $dvt$$4$$.$BaseDiagramNode$.$PositionLabel$ = function $$dvt$$4$$$$BaseDiagramNode$$$PositionLabel$$($label$$41$$, $mat$$13_pos$$29$$, $bounds$$28$$, $rotAngle$$4$$, $DvtDiagramLayoutContext$$) {
    $label$$41$$ && ($mat$$13_pos$$29$$ = $dvt$$4$$.$BaseDiagramNode$.$CalcLabelMatrix$($mat$$13_pos$$29$$, $bounds$$28$$, $rotAngle$$4$$, $DvtDiagramLayoutContext$$), $label$$41$$.$setMatrix$($mat$$13_pos$$29$$));
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$SetPosition$ = function $$dvt$$4$$$$BaseDiagramNode$$$$SetPosition$$($xx$$26$$, $DvtDiagramLayoutContext$$, $animator$$64$$) {
    $animator$$64$$ ? ($animator$$64$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateX$, this.$setTranslateX$, $xx$$26$$), $animator$$64$$.$addProp$($dvt$$4$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateY$, this.$setTranslateY$, $DvtDiagramLayoutContext$$)) : this.$setTranslate$($xx$$26$$, $DvtDiagramLayoutContext$$);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$GetPosition$ = function $$dvt$$4$$$$BaseDiagramNode$$$$GetPosition$$($animator$$65$$) {
    var $DvtDiagramLayoutContext$$, $yy$$27$$;
    $animator$$65$$ && ($DvtDiagramLayoutContext$$ = $animator$$65$$.$getDestVal$(this, this.$getTranslateX$), $yy$$27$$ = $animator$$65$$.$getDestVal$(this, this.$getTranslateY$));
    null == $DvtDiagramLayoutContext$$ && ($DvtDiagramLayoutContext$$ = this.$getTranslateX$());
    null == $yy$$27$$ && ($yy$$27$$ = this.$getTranslateY$());
    return new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$, $yy$$27$$);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getNextNavigable$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getNextNavigable$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getKeyboardBoundingBox$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getKeyboardBoundingBox$$($stageP1$$2_targetCoordinateSpace$$13$$) {
    var $DvtDiagramLayoutContext$$ = this.$getContentBounds$($stageP1$$2_targetCoordinateSpace$$13$$);
    $stageP1$$2_targetCoordinateSpace$$13$$ = this.$localToStage$(new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$.x, $DvtDiagramLayoutContext$$.y));
    $DvtDiagramLayoutContext$$ = this.$localToStage$(new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$.x + $DvtDiagramLayoutContext$$.$w$, $DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$));
    return new $dvt$$4$$.$Rectangle$($stageP1$$2_targetCoordinateSpace$$13$$.x, $stageP1$$2_targetCoordinateSpace$$13$$.y, $DvtDiagramLayoutContext$$.x - $stageP1$$2_targetCoordinateSpace$$13$$.x, $DvtDiagramLayoutContext$$.y - $stageP1$$2_targetCoordinateSpace$$13$$.y);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getTargetElem$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getTargetElem$$() {
    return this.$getElem$();
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$showKeyboardFocusEffect$ = function $$dvt$$4$$$$BaseDiagramNode$$$$showKeyboardFocusEffect$$() {
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$hideKeyboardFocusEffect$ = function $$dvt$$4$$$$BaseDiagramNode$$$$hideKeyboardFocusEffect$$() {
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$isShowingKeyboardFocusEffect$ = function $$dvt$$4$$$$BaseDiagramNode$$$$isShowingKeyboardFocusEffect$$() {
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getCategories$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getCategories$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$addOutLinkId$ = function $$dvt$$4$$$$BaseDiagramNode$$$$addOutLinkId$$($dvt$$4$$) {
    this.$_outLinkIds$ || (this.$_outLinkIds$ = []);
    this.$_outLinkIds$.push($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$removeOutLinkId$ = function $$dvt$$4$$$$BaseDiagramNode$$$$removeOutLinkId$$($id$$89_idx$$7$$) {
    this.$_outLinkIds$ && ($id$$89_idx$$7$$ = $dvt$$4$$.$ArrayUtils$.$getIndex$(this.$_outLinkIds$, $id$$89_idx$$7$$), -1 != $id$$89_idx$$7$$ && this.$_outLinkIds$.splice($id$$89_idx$$7$$, 1));
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$addInLinkId$ = function $$dvt$$4$$$$BaseDiagramNode$$$$addInLinkId$$($dvt$$4$$) {
    this.$_inLinkIds$ || (this.$_inLinkIds$ = []);
    this.$_inLinkIds$.push($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$removeInLinkId$ = function $$dvt$$4$$$$BaseDiagramNode$$$$removeInLinkId$$($id$$91_idx$$8$$) {
    this.$_inLinkIds$ && ($id$$91_idx$$8$$ = $dvt$$4$$.$ArrayUtils$.$getIndex$(this.$_inLinkIds$, $id$$91_idx$$8$$), -1 != $id$$91_idx$$8$$ && this.$_inLinkIds$.splice($id$$91_idx$$8$$, 1));
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$setLabelAlignments$ = function $$dvt$$4$$$$BaseDiagramNode$$$$setLabelAlignments$$() {
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$getGroupId$ = function $$dvt$$4$$$$BaseDiagramNode$$$$getGroupId$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramNode$.prototype.$GetChildNodePanePosition$ = function $$dvt$$4$$$$BaseDiagramNode$$$$GetChildNodePanePosition$$($animator$$66_yy$$28$$) {
    if (this.$_childNodePane$) {
      var $DvtDiagramLayoutContext$$ = $animator$$66_yy$$28$$ ? $animator$$66_yy$$28$$.$getDestVal$(this.$_childNodePane$, this.$_childNodePane$.$getTranslateX$, !0) : this.$_childNodePane$.$getTranslateX$();
      $animator$$66_yy$$28$$ = $animator$$66_yy$$28$$ ? $animator$$66_yy$$28$$.$getDestVal$(this.$_childNodePane$, this.$_childNodePane$.$getTranslateY$, !0) : this.$_childNodePane$.$getTranslateY$();
      return new $dvt$$4$$.$Point$($DvtDiagramLayoutContext$$, $animator$$66_yy$$28$$);
    }
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$ = function $$dvt$$4$$$$BaseDiagramLink$$($dvt$$4$$, $DvtDiagramLayoutContext$$, $diagram$$80$$) {
    this.Init($dvt$$4$$, $DvtDiagramLayoutContext$$, $diagram$$80$$);
  };
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$BaseDiagramLink$, $dvt$$4$$.$Container$, "dvt.BaseDiagramLink");
  $dvt$$4$$.$BaseDiagramLink$.prototype.Init = function $$dvt$$4$$$$BaseDiagramLink$$$Init$($context$$114$$, $DvtDiagramLayoutContext$$, $diagram$$81$$) {
    $dvt$$4$$.$BaseDiagramLink$.$superclass$.Init.call(this, $context$$114$$, null, $DvtDiagramLayoutContext$$);
    this.$_diagram$ = $diagram$$81$$;
    this.$_arPoints$;
    this.$_points$;
    this.$_pathCmds$;
    this.$_labelObj$;
    this.$_labelPos$;
    this.$_labelRotAngle$;
    this.$_labelRotPoint$;
    this.$_selected$ = !1;
    this.$_selectable$ = !0;
    this.$_shape$;
    this.$_endConnector$;
    this.$_startConnector$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$GetDiagram$ = function $$dvt$$4$$$$BaseDiagramLink$$$$GetDiagram$$() {
    return this.$_diagram$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setEndConnectorType$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setEndConnectorType$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getEndConnectorType$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getEndConnectorType$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setStartConnectorType$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setStartConnectorType$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setStartConnector$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setStartConnector$$($dvt$$4$$) {
    this.$_startConnector$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setEndConnector$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setEndConnector$$($dvt$$4$$) {
    this.$_endConnector$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setShape$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setShape$$($dvt$$4$$) {
    this.$_shape$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getShape$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getShape$$() {
    return this.$_shape$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLabelRotationAngle$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLabelRotationAngle$$($angle$$10$$) {
    this.$_labelRotAngle$ = $angle$$10$$;
    $dvt$$4$$.$BaseDiagramLink$.$PositionLabel$(this.$_labelObj$, this.$getLabelPosition$(), this.$getLabelBounds$(), $angle$$10$$, this.$_labelRotPoint$);
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLabelRotationAngle$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLabelRotationAngle$$() {
    return this.$_labelRotAngle$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLabelRotationPoint$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLabelRotationPoint$$($point$$36$$) {
    this.$_labelRotPoint$ = $point$$36$$;
    $dvt$$4$$.$BaseDiagramLink$.$PositionLabel$(this.$_labelObj$, this.$getLabelPosition$(), this.$getLabelBounds$(), this.$_labelRotAngle$, $point$$36$$);
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLabelRotationPoint$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLabelRotationPoint$$() {
    return this.$_labelRotPoint$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLabelPosition$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLabelPosition$$() {
    return this.$_labelPos$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLabelPosition$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLabelPosition$$($pos$$30$$) {
    $pos$$30$$ && (this.$_labelPos$ = $pos$$30$$, $dvt$$4$$.$BaseDiagramLink$.$PositionLabel$(this.$_labelObj$, $pos$$30$$, this.$getLabelBounds$(), this.$_labelRotAngle$, this.$_labelRotPoint$));
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLabelBounds$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLabelBounds$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLabelBounds$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLabelBounds$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getStartConnectorOffset$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getStartConnectorOffset$$() {
    return 0;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getEndConnectorOffset$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getEndConnectorOffset$$() {
    return 0;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setSelectable$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setSelectable$$($dvt$$4$$) {
    this.$_selectable$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$isSelectable$ = function $$dvt$$4$$$$BaseDiagramLink$$$$isSelectable$$() {
    return this.$GetDiagram$().$isSelectionSupported$() && this.$_selectable$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$isSelected$ = function $$dvt$$4$$$$BaseDiagramLink$$$$isSelected$$() {
    return this.$_selected$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setSelected$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setSelected$$($dvt$$4$$) {
    this.$_selected$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setPromoted$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setPromoted$$($dvt$$4$$) {
    this.$_bPromoted$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$isPromoted$ = function $$dvt$$4$$$$BaseDiagramLink$$$$isPromoted$$() {
    return this.$_bPromoted$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLinkWidth$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLinkWidth$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLinkWidth$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLinkWidth$$() {
    return 1;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLinkStyle$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLinkStyle$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLinkStyle$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLinkStyle$$() {
    return "solid";
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLinkColor$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLinkColor$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLinkColor$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLinkColor$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getConnectorTemplate$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getConnectorTemplate$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$GetAppliedLinkStyle$ = function $$dvt$$4$$$$BaseDiagramLink$$$$GetAppliedLinkStyle$$() {
    return this.$getLinkStyle$();
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$GetAppliedLinkWidth$ = function $$dvt$$4$$$$BaseDiagramLink$$$$GetAppliedLinkWidth$$() {
    return this.$getLinkWidth$();
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$GetAppliedLinkColor$ = function $$dvt$$4$$$$BaseDiagramLink$$$$GetAppliedLinkColor$$() {
    return this.$getLinkColor$();
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$CreateConnector$ = function $$dvt$$4$$$$BaseDiagramLink$$$$CreateConnector$$($points$$21$$, $DvtDiagramLayoutContext$$, $connectorPos$$, $connectorTemplate$$2$$) {
    if ($DvtDiagramLayoutContext$$ || $connectorTemplate$$2$$) {
      var $DvtDiagramLayoutContextNode$$;
      $connectorTemplate$$2$$ || ($DvtDiagramLayoutContextNode$$ = this.$_shape$.$getStroke$().clone(), $DvtDiagramLayoutContextNode$$.$setType$($dvt$$4$$.$Stroke$.$SOLID$), $DvtDiagramLayoutContextNode$$.$setFixedWidth$(!1));
      if ($DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateConnectorShape$(this.$getCtx$(), $DvtDiagramLayoutContext$$, $connectorTemplate$$2$$, $DvtDiagramLayoutContextNode$$, this)) {
        this.$_shape$.$addChild$($DvtDiagramLayoutContext$$), $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$($DvtDiagramLayoutContext$$, 0, $connectorTemplate$$2$$, $points$$21$$, $connectorPos$$);
      }
      return $DvtDiagramLayoutContext$$;
    }
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$GetLinkBounds$ = function $$dvt$$4$$$$BaseDiagramLink$$$$GetLinkBounds$$($animator$$67_labelBounds$$6$$) {
    var $DvtDiagramLayoutContext$$ = new $dvt$$4$$.$Rectangle$(Number.MAX_VALUE, Number.MAX_VALUE, -Number.MAX_VALUE, -Number.MAX_VALUE), $bounds$$31_controlPoints$$1_points$$22$$ = null;
    $animator$$67_labelBounds$$6$$ && ($bounds$$31_controlPoints$$1_points$$22$$ = $animator$$67_labelBounds$$6$$.$getDestVal$(this, this.$getPoints$));
    $bounds$$31_controlPoints$$1_points$$22$$ || ($bounds$$31_controlPoints$$1_points$$22$$ = this.$getPoints$());
    if ($bounds$$31_controlPoints$$1_points$$22$$) {
      for (var $bounds$$31_controlPoints$$1_points$$22$$ = $dvt$$4$$.$DiagramLinkUtils$.$GetControlPoints$($bounds$$31_controlPoints$$1_points$$22$$), $controlPoint$$1_minY$$8$$, $DvtDiagramLayoutContextNode$$, $DvtDiagramLayoutContextLink$$, $labelRotPoint$$4_minX$$8$$, $j$$36$$ = 0;$j$$36$$ < $bounds$$31_controlPoints$$1_points$$22$$.length;$j$$36$$++) {
        $controlPoint$$1_minY$$8$$ = $bounds$$31_controlPoints$$1_points$$22$$[$j$$36$$], $DvtDiagramLayoutContextNode$$ = Math.max($DvtDiagramLayoutContext$$.x + $DvtDiagramLayoutContext$$.$w$, $controlPoint$$1_minY$$8$$.x), $DvtDiagramLayoutContextLink$$ = Math.max($DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$, $controlPoint$$1_minY$$8$$.y), $labelRotPoint$$4_minX$$8$$ = Math.min($DvtDiagramLayoutContext$$.x, $controlPoint$$1_minY$$8$$.x), $controlPoint$$1_minY$$8$$ = Math.min($DvtDiagramLayoutContext$$.y, 
        $controlPoint$$1_minY$$8$$.y), $DvtDiagramLayoutContext$$.x = $labelRotPoint$$4_minX$$8$$, $DvtDiagramLayoutContext$$.y = $controlPoint$$1_minY$$8$$, $DvtDiagramLayoutContext$$.$w$ = $DvtDiagramLayoutContextNode$$ - $labelRotPoint$$4_minX$$8$$, $DvtDiagramLayoutContext$$.$h$ = $DvtDiagramLayoutContextLink$$ - $controlPoint$$1_minY$$8$$;
      }
    }
    $bounds$$31_controlPoints$$1_points$$22$$ = new $dvt$$4$$.$Rectangle$($DvtDiagramLayoutContext$$.x, $DvtDiagramLayoutContext$$.y, $DvtDiagramLayoutContext$$.$w$, $DvtDiagramLayoutContext$$.$h$);
    $DvtDiagramLayoutContextNode$$ = null;
    $animator$$67_labelBounds$$6$$ && ($DvtDiagramLayoutContextNode$$ = $animator$$67_labelBounds$$6$$.$getDestVal$(this, this.$getLabelPosition$));
    null == $DvtDiagramLayoutContextNode$$ && ($DvtDiagramLayoutContextNode$$ = this.$getLabelPosition$());
    $labelRotPoint$$4_minX$$8$$ = $DvtDiagramLayoutContextLink$$ = null;
    $animator$$67_labelBounds$$6$$ && ($DvtDiagramLayoutContextLink$$ = $animator$$67_labelBounds$$6$$.$getDestVal$(this, this.$getLabelRotationAngle$), $labelRotPoint$$4_minX$$8$$ = $animator$$67_labelBounds$$6$$.$getDestVal$(this, this.$getLabelRotationPoint$));
    null == $DvtDiagramLayoutContextLink$$ && ($DvtDiagramLayoutContextLink$$ = this.$_labelRotAngle$);
    $labelRotPoint$$4_minX$$8$$ || ($labelRotPoint$$4_minX$$8$$ = this.$_labelRotPoint$);
    $animator$$67_labelBounds$$6$$ = this.$getLabelBounds$();
    $DvtDiagramLayoutContextNode$$ && $animator$$67_labelBounds$$6$$ && (null != $DvtDiagramLayoutContextLink$$ && ($animator$$67_labelBounds$$6$$ = $dvt$$4$$.$BaseDiagram$.$RotateBounds$($animator$$67_labelBounds$$6$$, $DvtDiagramLayoutContextLink$$, $labelRotPoint$$4_minX$$8$$)), $bounds$$31_controlPoints$$1_points$$22$$.x = Math.min($DvtDiagramLayoutContext$$.x, $animator$$67_labelBounds$$6$$.x + $DvtDiagramLayoutContextNode$$.x), $bounds$$31_controlPoints$$1_points$$22$$.y = Math.min($DvtDiagramLayoutContext$$.y, 
    $animator$$67_labelBounds$$6$$.y + $DvtDiagramLayoutContextNode$$.y), $bounds$$31_controlPoints$$1_points$$22$$.$w$ = Math.max($DvtDiagramLayoutContext$$.x + $DvtDiagramLayoutContext$$.$w$, $animator$$67_labelBounds$$6$$.x + $DvtDiagramLayoutContextNode$$.x + $animator$$67_labelBounds$$6$$.$w$) - $bounds$$31_controlPoints$$1_points$$22$$.x, $bounds$$31_controlPoints$$1_points$$22$$.$h$ = Math.max($DvtDiagramLayoutContext$$.y + $DvtDiagramLayoutContext$$.$h$, $animator$$67_labelBounds$$6$$.y + 
    $DvtDiagramLayoutContextNode$$.y + $animator$$67_labelBounds$$6$$.$h$) - $bounds$$31_controlPoints$$1_points$$22$$.y);
    return $bounds$$31_controlPoints$$1_points$$22$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setPoints$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setPoints$$($points$$23_underlayStart$$) {
    this.$_arPoints$ = $points$$23_underlayStart$$;
    $dvt$$4$$.$DiagramLinkUtils$.$IsPath$($points$$23_underlayStart$$) ? (this.$_pathCmds$ = $points$$23_underlayStart$$, this.$_points$ = $dvt$$4$$.$DiagramLinkUtils$.$ConvertToPoints$($points$$23_underlayStart$$)) : (this.$_points$ = $points$$23_underlayStart$$, this.$_pathCmds$ = $dvt$$4$$.$DiagramLinkUtils$.$ConvertToPath$($points$$23_underlayStart$$));
    this.$_shape$ && this.$_shape$ instanceof $dvt$$4$$.$Path$ && (this.$_shape$.$setCommands$(this.$_pathCmds$), this.$_endConnector$ ? $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$(this.$_endConnector$, this.$getEndConnectorType$(), this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$), this.$_points$, 1) : this.$_endConnector$ = this.$CreateConnector$(this.$_points$, this.$getEndConnectorType$(), 1, this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$)), 
    this.$_startConnector$ ? $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$(this.$_startConnector$, this.$getStartConnectorType$(), this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$), this.$_points$, 0) : this.$_startConnector$ = this.$CreateConnector$(this.$_points$, this.$getStartConnectorType$(), 0, this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$)));
    var $DvtDiagramLayoutContext$$ = $points$$23_underlayStart$$ = null;
    this.$_linkUnderlay$ && this.$_linkUnderlay$.$_underlay$ instanceof $dvt$$4$$.$Path$ && this.$_linkUnderlay$.$_underlay$.$setCommands$(this.$_pathCmds$);
    this.$_linkUnderlay$ && ($points$$23_underlayStart$$ = this.$_linkUnderlay$.$_underlayStart$) && $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$($points$$23_underlayStart$$, this.$getStartConnectorType$(), this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$), this.$_points$, 0);
    this.$_linkUnderlay$ && ($DvtDiagramLayoutContext$$ = this.$_linkUnderlay$.$_underlayEnd$) && $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$($DvtDiagramLayoutContext$$, this.$getEndConnectorType$(), this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$), this.$_points$, 1);
    this.$_hitDetectionUnderlay$ && this.$_hitDetectionUnderlay$.$_underlay$ instanceof $dvt$$4$$.$Path$ && this.$_hitDetectionUnderlay$.$_underlay$.$setCommands$(this.$_pathCmds$);
    this.$_startHandle$ && this.$_startHandle$.setPosition(this.$getLinkStart$());
    this.$_endHandle$ && this.$_endHandle$.setPosition(this.$getLinkEnd$());
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getPoints$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getPoints$$() {
    return this.$_arPoints$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLinkStart$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLinkStart$$() {
    return this.$_points$ ? new $dvt$$4$$.$Point$(this.$_points$[0], this.$_points$[1]) : null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getLinkEnd$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getLinkEnd$$() {
    if (!this.$_points$) {
      return null;
    }
    var $numPoints$$ = this.$_points$.length;
    return new $dvt$$4$$.$Point$(this.$_points$[$numPoints$$ - 2], this.$_points$[$numPoints$$ - 1]);
  };
  $dvt$$4$$.$BaseDiagramLink$.$CalcLabelMatrix$ = function $$dvt$$4$$$$BaseDiagramLink$$$CalcLabelMatrix$$($pos$$31$$, $DvtDiagramLayoutContext$$, $rotAngle$$5$$, $rotPoint$$5$$) {
    $DvtDiagramLayoutContext$$ = new $dvt$$4$$.$Matrix$;
    null != $rotAngle$$5$$ && ($rotPoint$$5$$ && $DvtDiagramLayoutContext$$.translate(-$rotPoint$$5$$.x, -$rotPoint$$5$$.y), $DvtDiagramLayoutContext$$.rotate($rotAngle$$5$$), $rotPoint$$5$$ && $DvtDiagramLayoutContext$$.translate($rotPoint$$5$$.x, $rotPoint$$5$$.y));
    $pos$$31$$ && $DvtDiagramLayoutContext$$.translate($pos$$31$$.x, $pos$$31$$.y);
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.$PositionLabel$ = function $$dvt$$4$$$$BaseDiagramLink$$$PositionLabel$$($label$$42$$, $DvtDiagramLayoutContext$$, $bounds$$33$$, $rotAngle$$6$$, $DvtDiagramLayoutContextNode$$) {
    $label$$42$$ && ($DvtDiagramLayoutContext$$ = $dvt$$4$$.$BaseDiagramLink$.$CalcLabelMatrix$($DvtDiagramLayoutContext$$, $bounds$$33$$, $rotAngle$$6$$, $DvtDiagramLayoutContextNode$$), $label$$42$$.$setMatrix$($DvtDiagramLayoutContext$$));
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$CreateUnderlay$ = function $$dvt$$4$$$$BaseDiagramLink$$$$CreateUnderlay$$($stroke$$24_strokeColor$$3$$, $DvtDiagramLayoutContext$$, $strokeWidth$$4_strokeWidthOffset$$, $styleClass$$3$$) {
    $DvtDiagramLayoutContext$$ || 0 == $DvtDiagramLayoutContext$$ || ($DvtDiagramLayoutContext$$ = 1);
    $strokeWidth$$4_strokeWidthOffset$$ || 0 == $strokeWidth$$4_strokeWidthOffset$$ || ($strokeWidth$$4_strokeWidthOffset$$ = 0);
    $strokeWidth$$4_strokeWidthOffset$$ = this.$GetAppliedLinkWidth$() + $strokeWidth$$4_strokeWidthOffset$$;
    $stroke$$24_strokeColor$$3$$ = new $dvt$$4$$.$SolidStroke$($stroke$$24_strokeColor$$3$$, $DvtDiagramLayoutContext$$, $strokeWidth$$4_strokeWidthOffset$$);
    return new $DvtDiagramLinkUnderlay$$(this.$getCtx$(), this.$_pathCmds$, $stroke$$24_strokeColor$$3$$, $styleClass$$3$$);
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$CreateFeedbackUnderlay$ = function $$dvt$$4$$$$BaseDiagramLink$$$$CreateFeedbackUnderlay$$($feedbackUnderlay_strokeColor$$4$$, $DvtDiagramLayoutContext$$, $strokeWidthOffset$$1$$, $styleClass$$4$$) {
    $feedbackUnderlay_strokeColor$$4$$ = this.$CreateUnderlay$($feedbackUnderlay_strokeColor$$4$$, $DvtDiagramLayoutContext$$, $strokeWidthOffset$$1$$, $styleClass$$4$$);
    this.$_startConnector$ && this.$getStartConnectorType$() && $feedbackUnderlay_strokeColor$$4$$.$addUnderlayStart$(this.$_points$, this.$getStartConnectorType$(), this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$), this);
    this.$_endConnector$ && this.$getEndConnectorType$() && $feedbackUnderlay_strokeColor$$4$$.$addUnderlayEnd$(this.$_points$, this.$getEndConnectorType$(), this.$getConnectorTemplate$($dvt$$4$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$), this);
    return $feedbackUnderlay_strokeColor$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$ApplyLinkStyle$ = function $$dvt$$4$$$$BaseDiagramLink$$$$ApplyLinkStyle$$($stroke$$25$$, $DvtDiagramLayoutContext$$) {
    var $linkStyle_strokeType$$ = this.$GetAppliedLinkStyle$(), $linkStyle_strokeType$$ = $dvt$$4$$.$DiagramLinkUtils$.$ConvertLinkStyleToStrokeType$($linkStyle_strokeType$$);
    $stroke$$25$$.$setType$($linkStyle_strokeType$$, $dvt$$4$$.$DiagramLinkUtils$.$GetStrokeDash$($linkStyle_strokeType$$, $DvtDiagramLayoutContext$$), $dvt$$4$$.$DiagramLinkUtils$.$GetStrokeDashOffset$($linkStyle_strokeType$$, $DvtDiagramLayoutContext$$));
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$ReplaceConnectorColor$ = function $$dvt$$4$$$$BaseDiagramLink$$$$ReplaceConnectorColor$$($dvt$$4$$, $DvtDiagramLayoutContext$$) {
    if ($dvt$$4$$) {
      var $color$$19$$ = null;
      $DvtDiagramLayoutContext$$.$getColor$ && ($color$$19$$ = $DvtDiagramLayoutContext$$.$getColor$());
      if ($color$$19$$) {
        var $conStroke$$ = $dvt$$4$$.$getStroke$() ? $dvt$$4$$.$getStroke$().clone() : null, $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$getFill$() ? $dvt$$4$$.$getFill$().clone() : null;
        $conStroke$$ && $conStroke$$.$setColor$ && ($conStroke$$.$setColor$($color$$19$$), $dvt$$4$$.$setStroke$($conStroke$$));
        $DvtDiagramLayoutContextNode$$ && $DvtDiagramLayoutContextNode$$.$setColor$ && ($DvtDiagramLayoutContextNode$$.$setColor$($color$$19$$), $dvt$$4$$.$setFill$($DvtDiagramLayoutContextNode$$));
      }
    }
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getNextNavigable$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getNextNavigable$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getKeyboardBoundingBox$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getKeyboardBoundingBox$$($dvt$$4$$) {
    return this.$getDimensions$($dvt$$4$$);
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getTargetElem$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getTargetElem$$() {
    return this.$getElem$();
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$showKeyboardFocusEffect$ = function $$dvt$$4$$$$BaseDiagramLink$$$$showKeyboardFocusEffect$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$hideKeyboardFocusEffect$ = function $$dvt$$4$$$$BaseDiagramLink$$$$hideKeyboardFocusEffect$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$isShowingKeyboardFocusEffect$ = function $$dvt$$4$$$$BaseDiagramLink$$$$isShowingKeyboardFocusEffect$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setKeyboardFocusNode$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setKeyboardFocusNode$$($dvt$$4$$) {
    this.$_keyboardNavNode$ = $dvt$$4$$;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getCategories$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getCategories$$() {
    return null;
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$setLabelAlignments$ = function $$dvt$$4$$$$BaseDiagramLink$$$$setLabelAlignments$$() {
  };
  $dvt$$4$$.$BaseDiagramLink$.prototype.$getGroupId$ = function $$dvt$$4$$$$BaseDiagramLink$$$$getGroupId$$() {
    return null;
  };
  $dvt$$4$$.$DiagramLayoutUtils$ = {};
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$DiagramLayoutUtils$, $dvt$$4$$.$Obj$, "dvt.DiagramLayoutUtils");
  $dvt$$4$$.$DiagramLayoutUtils$.$gridLayout$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$gridLayout$$($layoutContext$$17$$) {
    for (var $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLayoutUtils$.$getMaxNodeBounds$($layoutContext$$17$$), $nodeSize_space$$ = Math.max($DvtDiagramLayoutContext$$.w, $DvtDiagramLayoutContext$$.h), $DvtDiagramLayoutContext$$ = $layoutContext$$17$$.$getNodeCount$(), $linkCount_startx$$ = $layoutContext$$17$$.$getLinkCount$(), $DvtDiagramLayoutContextNode$$ = Math.floor(Math.sqrt($DvtDiagramLayoutContext$$)), $DvtDiagramLayoutContextLink$$ = 0, $DvtDiagramLayoutContextLink$$ = ($DvtDiagramLayoutContextLink$$ = 
    $layoutContext$$17$$.$getLayoutAttributes$()) && $DvtDiagramLayoutContextLink$$.padding ? $DvtDiagramLayoutContextLink$$.padding : 0 < $linkCount_startx$$ ? $nodeSize_space$$ : .25 * $nodeSize_space$$, $nodeSize_space$$ = $nodeSize_space$$ + $DvtDiagramLayoutContextLink$$, $linkCount_startx$$ = -(Math.ceil($DvtDiagramLayoutContext$$ / $DvtDiagramLayoutContextNode$$) - 1) * $nodeSize_space$$ / 2, $DvtDiagramLayoutContextLink$$ = -($DvtDiagramLayoutContextNode$$ - 1) * $nodeSize_space$$ / 2, $ni$$2$$ = 
    0;$ni$$2$$ < $DvtDiagramLayoutContext$$;$ni$$2$$++) {
      $dvt$$4$$.$DiagramLayoutUtils$.$centerNodeAndLabel$($layoutContext$$17$$.$getNodeByIndex$($ni$$2$$), $linkCount_startx$$ + $nodeSize_space$$ * Math.floor($ni$$2$$ / $DvtDiagramLayoutContextNode$$), $DvtDiagramLayoutContextLink$$ + $ni$$2$$ % $DvtDiagramLayoutContextNode$$ * $nodeSize_space$$);
    }
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$getMaxNodeBounds$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$getMaxNodeBounds$$($layoutContext$$18$$) {
    for (var $DvtDiagramLayoutContext$$ = $layoutContext$$18$$.$getNodeCount$(), $maxW$$2$$ = 0, $maxH$$3$$ = 0, $DvtDiagramLayoutContextNode$$ = 0;$DvtDiagramLayoutContextNode$$ < $DvtDiagramLayoutContext$$;$DvtDiagramLayoutContextNode$$++) {
      var $DvtDiagramLayoutContextLink$$ = $layoutContext$$18$$.$getNodeByIndex$($DvtDiagramLayoutContextNode$$), $bounds$$34$$ = $DvtDiagramLayoutContextLink$$.$getBounds$(), $maxW$$2$$ = Math.max($bounds$$34$$.w, $maxW$$2$$), $maxH$$3$$ = Math.max($bounds$$34$$.h, $maxH$$3$$);
      if ($DvtDiagramLayoutContextLink$$ = $DvtDiagramLayoutContextLink$$.$getLabelBounds$()) {
        $maxW$$2$$ = Math.max($DvtDiagramLayoutContextLink$$.w, $maxW$$2$$), $maxH$$3$$ = Math.max($bounds$$34$$.h + $DvtDiagramLayoutContextLink$$.h, $maxH$$3$$);
      }
    }
    return new $dvt$$4$$.$DiagramRectangle$(0, 0, $maxW$$2$$, $maxH$$3$$);
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$centerNodeAndLabel$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$centerNodeAndLabel$$($node$$178$$, $DvtDiagramLayoutContext$$, $y$$78$$) {
    var $bounds$$35$$ = $node$$178$$.$getContentBounds$();
    $node$$178$$.setPosition(new $dvt$$4$$.$DiagramPoint$($DvtDiagramLayoutContext$$ - $bounds$$35$$.x - .5 * $bounds$$35$$.w, $y$$78$$ - $bounds$$35$$.y - .5 * $bounds$$35$$.h));
    $dvt$$4$$.$DiagramLayoutUtils$.$positionNodeLabel$($node$$178$$);
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$positionNodeLabel$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$positionNodeLabel$$($node$$179$$) {
    var $DvtDiagramLayoutContext$$ = $node$$179$$.$getBounds$(), $nodePos$$ = $node$$179$$.$getPosition$(), $nodeLabelBounds$$ = $node$$179$$.$getLabelBounds$();
    $nodeLabelBounds$$ && $node$$179$$.$setLabelPosition$(new $dvt$$4$$.$DiagramPoint$($DvtDiagramLayoutContext$$.x + $nodePos$$.x + .5 * ($DvtDiagramLayoutContext$$.w - $nodeLabelBounds$$.w), $DvtDiagramLayoutContext$$.y + $nodePos$$.y + $DvtDiagramLayoutContext$$.h));
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$convertRectToDiagramRect$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$convertRectToDiagramRect$$($rect$$8$$) {
    return void 0 === $rect$$8$$ || null == $rect$$8$$ ? null : new $dvt$$4$$.$DiagramRectangle$($rect$$8$$.x, $rect$$8$$.y, $rect$$8$$.$w$, $rect$$8$$.$h$);
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$convertPointToDiagramPoint$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$convertPointToDiagramPoint$$($point$$37$$) {
    return void 0 === $point$$37$$ || null == $point$$37$$ ? null : new $dvt$$4$$.$DiagramPoint$($point$$37$$.x, $point$$37$$.y);
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$convertDiagramRectToRect$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$convertDiagramRectToRect$$($diagramRect$$) {
    return $diagramRect$$ ? new $dvt$$4$$.$Rectangle$($diagramRect$$.x, $diagramRect$$.y, $diagramRect$$.w, $diagramRect$$.h) : null;
  };
  $dvt$$4$$.$DiagramLayoutUtils$.$convertDiagramPointToPoint$ = function $$dvt$$4$$$$DiagramLayoutUtils$$$convertDiagramPointToPoint$$($diagramPoint$$) {
    return $diagramPoint$$ ? new $dvt$$4$$.$Point$($diagramPoint$$.x, $diagramPoint$$.y) : null;
  };
  $dvt$$4$$.$Obj$.$createSubclass$($DvtDiagramLinkUnderlay$$, $dvt$$4$$.$Container$, "DvtDiagramLinkUnderlay");
  $DvtDiagramLinkUnderlay$$.prototype.Init = function $$DvtDiagramLinkUnderlay$$$$Init$($context$$116$$, $DvtDiagramLayoutContext$$, $stroke$$28$$, $styleClass$$6$$) {
    $DvtDiagramLayoutContext$$ || ($DvtDiagramLayoutContext$$ = ["M", 0, 0, "L", 1, 0]);
    this.$_stroke$ = $stroke$$28$$;
    this.$_stroke$ || (this.$_stroke$ = new $dvt$$4$$.$SolidStroke$("#ffffff", 1, 1));
    this.$_underlay$ = new $dvt$$4$$.$Path$($context$$116$$, $DvtDiagramLayoutContext$$);
    this.$_underlay$.$setStroke$($stroke$$28$$);
    this.$_underlay$.$setFill$(null);
    $styleClass$$6$$ && (this.$_styleClass$ = $styleClass$$6$$, this.$_underlay$.$setClassName$($styleClass$$6$$));
    this.$addChild$(this.$_underlay$);
    this.$_underlayEndType$ = this.$_underlayEnd$ = this.$_underlayStartType$ = this.$_underlayStart$ = null;
  };
  $DvtDiagramLinkUnderlay$$.prototype.$addUnderlayStart$ = function $$DvtDiagramLinkUnderlay$$$$$addUnderlayStart$$($dvt$$4$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$3$$, $parentLink$$) {
    $dvt$$4$$ = this.$CreateConnectorUnderlay$($dvt$$4$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$3$$, $parentLink$$, 0);
    this.$_underlayStart$ && this.removeChild(this.$_underlayStart$);
    this.$_underlayStart$ = $dvt$$4$$;
    this.$_underlayStartType$ = $DvtDiagramLayoutContext$$;
    this.$addChild$(this.$_underlayStart$);
  };
  $DvtDiagramLinkUnderlay$$.prototype.$addUnderlayEnd$ = function $$DvtDiagramLinkUnderlay$$$$$addUnderlayEnd$$($dvt$$4$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$4$$, $parentLink$$1$$) {
    $dvt$$4$$ = this.$CreateConnectorUnderlay$($dvt$$4$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$4$$, $parentLink$$1$$, 1);
    this.$_underlayEnd$ && this.removeChild(this.$_underlayEnd$);
    this.$_underlayEnd$ = $dvt$$4$$;
    this.$_underlayEndType$ = $DvtDiagramLayoutContext$$;
    this.$addChild$(this.$_underlayEnd$);
  };
  $DvtDiagramLinkUnderlay$$.prototype.$CreateConnectorUnderlay$ = function $$DvtDiagramLinkUnderlay$$$$$CreateConnectorUnderlay$$($points$$28$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$5$$, $parentLink$$2$$, $DvtDiagramLayoutContextNode$$) {
    $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateConnectorShape$(this.$getCtx$(), $DvtDiagramLayoutContext$$, $connectorTemplate$$5$$, this.$_stroke$, $parentLink$$2$$);
    this.$_styleClass$ && $DvtDiagramLayoutContext$$.$setClassName$(this.$_styleClass$);
    $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$($DvtDiagramLayoutContext$$, 0, $connectorTemplate$$5$$, $points$$28$$, $DvtDiagramLayoutContextNode$$);
    return $DvtDiagramLayoutContext$$;
  };
  $DvtDiagramLinkUnderlay$$.prototype.$setStroke$ = function $$DvtDiagramLinkUnderlay$$$$$setStroke$$($stroke$$29$$, $DvtDiagramLayoutContext$$) {
    this.$_stroke$ = $stroke$$29$$;
    $dvt$$4$$.$Agent$.$isTouchDevice$() && $dvt$$4$$.$Agent$.$isBrowserSafari$() && 1 == $dvt$$4$$.$Agent$.$getDevicePixelRatio$() && $stroke$$29$$.$setFixedWidth$(!0);
    this.$_underlay$.$setStroke$($stroke$$29$$);
    if (this.$_underlayStart$) {
      var $endStroke_startStroke$$ = $stroke$$29$$.clone();
      $endStroke_startStroke$$.$setType$($dvt$$4$$.$Stroke$.$SOLID$);
      $endStroke_startStroke$$.$setFixedWidth$(!1);
      if (this.$_underlayStartType$ == $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW$ || this.$_underlayStartType$ == $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_CONCAVE$) {
        $endStroke_startStroke$$.$setWidth$($DvtDiagramLayoutContext$$), this.$_underlayStart$.$setSolidFill$($stroke$$29$$.$getColor$());
      }
      this.$_underlayStart$.$setStroke$($endStroke_startStroke$$);
    }
    if (this.$_underlayEnd$) {
      $endStroke_startStroke$$ = $stroke$$29$$.clone();
      $endStroke_startStroke$$.$setType$($dvt$$4$$.$Stroke$.$SOLID$);
      $endStroke_startStroke$$.$setFixedWidth$(!1);
      if (this.$_underlayEndType$ == $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW$ || this.$_underlayEndType$ == $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_CONCAVE$) {
        $endStroke_startStroke$$.$setWidth$($DvtDiagramLayoutContext$$), this.$_underlayEnd$.$setSolidFill$($stroke$$29$$.$getColor$());
      }
      this.$_underlayEnd$.$setStroke$($endStroke_startStroke$$);
    }
  };
  $DvtDiagramLinkUnderlay$$.prototype.$getStroke$ = function $$DvtDiagramLinkUnderlay$$$$$getStroke$$() {
    return this.$_stroke$;
  };
  $DvtDiagramLinkUnderlay$$.prototype.$hideUnderlayStart$ = function $$DvtDiagramLinkUnderlay$$$$$hideUnderlayStart$$() {
    this.$_underlayStart$ && this.removeChild(this.$_underlayStart$);
  };
  $DvtDiagramLinkUnderlay$$.prototype.$hideUnderlayEnd$ = function $$DvtDiagramLinkUnderlay$$$$$hideUnderlayEnd$$() {
    this.$_underlayEnd$ && this.removeChild(this.$_underlayEnd$);
  };
  $DvtDiagramLinkUnderlay$$.prototype.$showUnderlayStart$ = function $$DvtDiagramLinkUnderlay$$$$$showUnderlayStart$$() {
    this.$_underlayStart$ && this.$addChild$(this.$_underlayStart$);
  };
  $DvtDiagramLinkUnderlay$$.prototype.$showUnderlayEnd$ = function $$DvtDiagramLinkUnderlay$$$$$showUnderlayEnd$$() {
    this.$_underlayEnd$ && this.$addChild$(this.$_underlayEnd$);
  };
  $dvt$$4$$.$DiagramLinkUtils$ = {};
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$DiagramLinkUtils$, $dvt$$4$$.$Obj$, "dvt.DiagramLinkUtils");
  $dvt$$4$$.$DiagramLinkUtils$.$ConvertLinkStyleToStrokeType$ = function $$dvt$$4$$$$DiagramLinkUtils$$$ConvertLinkStyleToStrokeType$$($linkStyle$$1$$) {
    var $DvtDiagramLayoutContext$$ = $dvt$$4$$.$Stroke$.$SOLID$;
    switch($linkStyle$$1$$) {
      case "dash":
        $DvtDiagramLayoutContext$$ = $dvt$$4$$.$Stroke$.$DASHED$;
        break;
      case "dot":
        $DvtDiagramLayoutContext$$ = $dvt$$4$$.$Stroke$.$DOTTED$;
        break;
      case "dashDot":
        $DvtDiagramLayoutContext$$ = $dvt$$4$$.$Stroke$.$DASHED_DOTTED$;
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$GetStrokeDash$ = function $$dvt$$4$$$$DiagramLinkUtils$$$GetStrokeDash$$($strokeType$$2$$, $DvtDiagramLayoutContext$$) {
    if ($dvt$$4$$.$Stroke$.$SOLID$ == $strokeType$$2$$) {
      return null;
    }
    if ($dvt$$4$$.$Stroke$.$DASHED$ == $strokeType$$2$$) {
      return $DvtDiagramLayoutContext$$ ? "8,2" : "6,4";
    }
    if ($dvt$$4$$.$Stroke$.$DOTTED$ == $strokeType$$2$$) {
      return $DvtDiagramLayoutContext$$ ? "4,1" : "2,3";
    }
    if ($dvt$$4$$.$Stroke$.$DASHED_DOTTED$ == $strokeType$$2$$) {
      return $DvtDiagramLayoutContext$$ ? "10,1,4,1" : "8,3,2,3";
    }
  };
  $dvt$$4$$.$DiagramLinkUtils$.$GetStrokeDashOffset$ = function $$dvt$$4$$$$DiagramLinkUtils$$$GetStrokeDashOffset$$($strokeType$$3$$, $DvtDiagramLayoutContext$$) {
    return $DvtDiagramLayoutContext$$ && $dvt$$4$$.$Stroke$.$SOLID$ != $strokeType$$3$$ ? 1 : null;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$getStrokeObject$ = function $$dvt$$4$$$$DiagramLinkUtils$$$getStrokeObject$$($linkStyle$$2$$) {
    var $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkUtils$.$ConvertLinkStyleToStrokeType$($linkStyle$$2$$);
    return {_type:$linkStyle$$2$$, strokeDasharray:$dvt$$4$$.$DiagramLinkUtils$.$GetStrokeDash$($DvtDiagramLayoutContext$$, void 0), strokeDashoffset:$dvt$$4$$.$DiagramLinkUtils$.$GetStrokeDashOffset$($DvtDiagramLayoutContext$$, void 0)};
  };
  $dvt$$4$$.$DiagramLinkUtils$.$processStrokeDashArray$ = function $$dvt$$4$$$$DiagramLinkUtils$$$processStrokeDashArray$$($dvt$$4$$) {
    return $dvt$$4$$ ? ($dvt$$4$$ = $dvt$$4$$.split(/[\s,]+/), 0 < $dvt$$4$$.length % 2 && ($dvt$$4$$ = $dvt$$4$$.concat($dvt$$4$$)), $dvt$$4$$.toString()) : $dvt$$4$$;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$getCustomUnderlay$ = function $$dvt$$4$$$$DiagramLinkUtils$$$getCustomUnderlay$$($dashArray$$1_strokeDashArray$$1$$) {
    if ($dashArray$$1_strokeDashArray$$1$$) {
      $dashArray$$1_strokeDashArray$$1$$ = $dashArray$$1_strokeDashArray$$1$$.split(/[\s,]+/);
      for (var $DvtDiagramLayoutContext$$ = "", $index$$127$$ = 0;$index$$127$$ < $dashArray$$1_strokeDashArray$$1$$.length;$index$$127$$++) {
        var $item$$9$$ = $dvt$$4$$.$CSSStyle$.$toNumber$($dvt$$4$$.$StringUtils$.trim($dashArray$$1_strokeDashArray$$1$$[$index$$127$$])), $DvtDiagramLayoutContext$$ = $DvtDiagramLayoutContext$$ + (0 == $index$$127$$ % 2 ? $item$$9$$ + 2 : 2 <= $item$$9$$ ? $item$$9$$ - 2 : 0);
        $index$$127$$ < $dashArray$$1_strokeDashArray$$1$$.length - 1 && ($DvtDiagramLayoutContext$$ += ", ");
      }
      return $DvtDiagramLayoutContext$$;
    }
    return null;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$ConvertToPath$ = function $$dvt$$4$$$$DiagramLinkUtils$$$ConvertToPath$$($dvt$$4$$) {
    var $DvtDiagramLayoutContext$$ = [];
    if ($dvt$$4$$) {
      for (var $i$$263$$ = 0;$i$$263$$ < $dvt$$4$$.length;$i$$263$$ += 2) {
        0 == $i$$263$$ ? $DvtDiagramLayoutContext$$.push("M") : $DvtDiagramLayoutContext$$.push("L"), $DvtDiagramLayoutContext$$.push($dvt$$4$$[$i$$263$$]), $DvtDiagramLayoutContext$$.push($dvt$$4$$[$i$$263$$ + 1]);
      }
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$ConvertToPoints$ = function $$dvt$$4$$$$DiagramLinkUtils$$$ConvertToPoints$$($dvt$$4$$) {
    var $DvtDiagramLayoutContext$$ = [];
    if ($dvt$$4$$) {
      for (var $i$$264$$ = 0;$i$$264$$ < $dvt$$4$$.length;$i$$264$$++) {
        isNaN($dvt$$4$$[$i$$264$$]) || $DvtDiagramLayoutContext$$.push($dvt$$4$$[$i$$264$$]);
      }
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$IsPath$ = function $$dvt$$4$$$$DiagramLinkUtils$$$IsPath$$($dvt$$4$$) {
    return $dvt$$4$$ && 0 < $dvt$$4$$.length ? isNaN($dvt$$4$$[0]) : !1;
  };
  $dvt$$4$$.$DiagramLinkUtils$.$GetControlPoints$ = function $$dvt$$4$$$$DiagramLinkUtils$$$GetControlPoints$$($coords$$7_points$$32$$) {
    var $DvtDiagramLayoutContext$$ = [];
    $coords$$7_points$$32$$ = $dvt$$4$$.$DiagramLinkUtils$.$IsPath$($coords$$7_points$$32$$) ? $dvt$$4$$.$DiagramLinkUtils$.$ConvertToPoints$($coords$$7_points$$32$$) : $coords$$7_points$$32$$;
    for (var $i$$265$$ = 0;$i$$265$$ < $coords$$7_points$$32$$.length;$i$$265$$ += 2) {
      $DvtDiagramLayoutContext$$.push(new $dvt$$4$$.$Point$($coords$$7_points$$32$$[$i$$265$$], $coords$$7_points$$32$$[$i$$265$$ + 1]));
    }
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$ = {};
  $dvt$$4$$.$Obj$.$createSubclass$($dvt$$4$$.$DiagramLinkConnectorUtils$, $dvt$$4$$.$Obj$, "dvt.DiagramLinkConnectorUtils");
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$ = "endConnector";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$ = "startConnector";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_OPEN$ = "arrowOpen";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW$ = "arrow";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_CONCAVE$ = "arrowConcave";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_RECTANGLE$ = "rectangle";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_RECTANGLE_ROUNDED$ = "rectangleRounded";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_CIRCLE$ = "circle";
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateConnectorShape$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateConnectorShape$$($context$$117$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$6_linkWidth$$1$$, $stroke$$30$$, $DvtDiagramLayoutContextNode$$) {
    if ($connectorTemplate$$6_linkWidth$$1$$) {
      return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateCustomConnector$($connectorTemplate$$6_linkWidth$$1$$, $DvtDiagramLayoutContextNode$$);
    }
    $connectorTemplate$$6_linkWidth$$1$$ = $DvtDiagramLayoutContextNode$$.$GetAppliedLinkWidth$();
    switch($DvtDiagramLayoutContext$$) {
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateFilledArrowConnector$($context$$117$$, $connectorTemplate$$6_linkWidth$$1$$, $DvtDiagramLayoutContextNode$$.$getLinkColor$());
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_CONCAVE$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateFilledConcaveArrowConnector$($context$$117$$, $connectorTemplate$$6_linkWidth$$1$$, $DvtDiagramLayoutContextNode$$.$getLinkColor$());
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_OPEN$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateOpenArrowConnector$($context$$117$$, $connectorTemplate$$6_linkWidth$$1$$, $stroke$$30$$);
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_CIRCLE$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateCircleConnector$($context$$117$$, $connectorTemplate$$6_linkWidth$$1$$, $stroke$$30$$);
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_RECTANGLE$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateRectangleConnector$($context$$117$$, $connectorTemplate$$6_linkWidth$$1$$, $stroke$$30$$);
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_RECTANGLE_ROUNDED$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateRoundedRectangleConnector$($context$$117$$, $connectorTemplate$$6_linkWidth$$1$$, $stroke$$30$$);
    }
    return null;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$TransformConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$TransformConnector$$($connector$$6$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$7$$, $points$$33$$, $DvtDiagramLayoutContextNode$$) {
    $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$CalcConnectorTransform$($connector$$6$$, $connectorTemplate$$7$$, $points$$33$$, $DvtDiagramLayoutContextNode$$);
    $connector$$6$$.$setMatrix$($DvtDiagramLayoutContext$$);
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CalcConnectorTransform$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CalcConnectorTransform$$($connScaleY_connector$$7$$, $DvtDiagramLayoutContext$$, $points$$34_tx$$13$$, $connectorPos$$3_ty$$14$$) {
    var $DvtDiagramLayoutContextNode$$ = -1, $DvtDiagramLayoutContextLink$$ = 0, $origMat_x2$$5$$ = 0, $tMat_y2$$4$$ = 0;
    $points$$34_tx$$13$$ && ($DvtDiagramLayoutContextLink$$ = $points$$34_tx$$13$$.length, 1 === $connectorPos$$3_ty$$14$$ ? (2 <= $DvtDiagramLayoutContextLink$$ && ($origMat_x2$$5$$ = $points$$34_tx$$13$$[$DvtDiagramLayoutContextLink$$ - 2], $tMat_y2$$4$$ = $points$$34_tx$$13$$[$DvtDiagramLayoutContextLink$$ - 1]), 4 <= $DvtDiagramLayoutContextLink$$ ? ($DvtDiagramLayoutContextNode$$ = $points$$34_tx$$13$$[$DvtDiagramLayoutContextLink$$ - 4], $DvtDiagramLayoutContextLink$$ = $points$$34_tx$$13$$[$DvtDiagramLayoutContextLink$$ - 
    3]) : ($DvtDiagramLayoutContextNode$$ = $origMat_x2$$5$$ - 1E-4, $DvtDiagramLayoutContextLink$$ = $tMat_y2$$4$$)) : (2 <= $DvtDiagramLayoutContextLink$$ && ($origMat_x2$$5$$ = $points$$34_tx$$13$$[0], $tMat_y2$$4$$ = $points$$34_tx$$13$$[1]), 4 <= $DvtDiagramLayoutContextLink$$ ? ($DvtDiagramLayoutContextNode$$ = $points$$34_tx$$13$$[2], $DvtDiagramLayoutContextLink$$ = $points$$34_tx$$13$$[3]) : ($DvtDiagramLayoutContextNode$$ = $origMat_x2$$5$$ + 1E-4, $DvtDiagramLayoutContextLink$$ = $tMat_y2$$4$$)));
    $points$$34_tx$$13$$ = $origMat_x2$$5$$;
    $connectorPos$$3_ty$$14$$ = $tMat_y2$$4$$;
    $DvtDiagramLayoutContextNode$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$CalcConnectorRotation$($DvtDiagramLayoutContextNode$$, $DvtDiagramLayoutContextLink$$, $origMat_x2$$5$$, $tMat_y2$$4$$);
    $origMat_x2$$5$$ = $connScaleY_connector$$7$$.$_connectorOrigMat$;
    $origMat_x2$$5$$ || ($origMat_x2$$5$$ = $connScaleY_connector$$7$$.$getMatrix$().clone(), $connScaleY_connector$$7$$.$_connectorOrigMat$ = $origMat_x2$$5$$);
    $tMat_y2$$4$$ = new $dvt$$4$$.$Matrix$;
    $DvtDiagramLayoutContext$$ && ($DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getCachedDims$($connScaleY_connector$$7$$), $DvtDiagramLayoutContextLink$$ = $connScaleY_connector$$7$$.$getScaleX$(), $connScaleY_connector$$7$$ = $connScaleY_connector$$7$$.$getScaleY$(), $tMat_y2$$4$$.translate(-.5 * $DvtDiagramLayoutContext$$.$w$ * $DvtDiagramLayoutContextLink$$, -.5 * $DvtDiagramLayoutContext$$.$h$ * $connScaleY_connector$$7$$));
    $tMat_y2$$4$$.rotate($DvtDiagramLayoutContextNode$$);
    $tMat_y2$$4$$.translate($points$$34_tx$$13$$, $connectorPos$$3_ty$$14$$);
    $tMat_y2$$4$$.concat($origMat_x2$$5$$);
    return $tMat_y2$$4$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getCachedDims$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$_getCachedDims$$($dvt$$4$$) {
    var $DvtDiagramLayoutContext$$ = $dvt$$4$$.$_cachedDims$;
    $DvtDiagramLayoutContext$$ || ($DvtDiagramLayoutContext$$ = $dvt$$4$$.$getDimensions$(), $dvt$$4$$.$_cachedDims$ = $DvtDiagramLayoutContext$$);
    return $DvtDiagramLayoutContext$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CalcConnectorRotation$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CalcConnectorRotation$$($dvt$$4$$, $DvtDiagramLayoutContext$$, $x2$$6$$, $y2$$5$$) {
    return Math.atan2($y2$$5$$ - $DvtDiagramLayoutContext$$, $x2$$6$$ - $dvt$$4$$);
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateFilledConcaveArrowConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateFilledConcaveArrowConnector$$($context$$118_filledArrowHead$$, $DvtDiagramLayoutContext$$, $linkColor$$1$$) {
    $DvtDiagramLayoutContext$$ = 6 * $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getReduce$($DvtDiagramLayoutContext$$);
    var $arrowWidth$$1$$ = .8 * $DvtDiagramLayoutContext$$;
    $context$$118_filledArrowHead$$ = new $dvt$$4$$.$Polygon$($context$$118_filledArrowHead$$, [-.22 * $DvtDiagramLayoutContext$$, -.5 * $arrowWidth$$1$$, .78 * $DvtDiagramLayoutContext$$, 0, -.22 * $DvtDiagramLayoutContext$$, .5 * $arrowWidth$$1$$, 0, 0]);
    $context$$118_filledArrowHead$$.$setSolidFill$($linkColor$$1$$);
    return $context$$118_filledArrowHead$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateFilledArrowConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateFilledArrowConnector$$($context$$119_filledArrowHead$$1$$, $DvtDiagramLayoutContext$$, $linkColor$$2$$) {
    $DvtDiagramLayoutContext$$ = 5 * $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getReduce$($DvtDiagramLayoutContext$$);
    var $arrowWidth$$2$$ = .8 * $DvtDiagramLayoutContext$$;
    $context$$119_filledArrowHead$$1$$ = new $dvt$$4$$.$Polygon$($context$$119_filledArrowHead$$1$$, [0, -.5 * $arrowWidth$$2$$, $DvtDiagramLayoutContext$$, 0, 0, .5 * $arrowWidth$$2$$]);
    $context$$119_filledArrowHead$$1$$.$setSolidFill$($linkColor$$2$$);
    return $context$$119_filledArrowHead$$1$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getReduce$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$_getReduce$$($dvt$$4$$) {
    return 1 >= $dvt$$4$$ ? $dvt$$4$$ : 1 + .5 * ($dvt$$4$$ - 1);
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateOpenArrowConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateOpenArrowConnector$$($arrowHead_context$$120$$, $DvtDiagramLayoutContext$$, $stroke$$31$$) {
    $DvtDiagramLayoutContext$$ *= 3;
    var $strokeWidth$$5$$ = $stroke$$31$$.getWidth();
    $arrowHead_context$$120$$ = new $dvt$$4$$.$Polyline$($arrowHead_context$$120$$, [-$DvtDiagramLayoutContext$$ + $strokeWidth$$5$$ * Math.sqrt(2) / 2, -$DvtDiagramLayoutContext$$, $strokeWidth$$5$$ * Math.sqrt(2) / 2, 0, -$DvtDiagramLayoutContext$$ + $strokeWidth$$5$$ * Math.sqrt(2) / 2, $DvtDiagramLayoutContext$$]);
    $arrowHead_context$$120$$.$setStroke$($stroke$$31$$);
    $arrowHead_context$$120$$.$setFill$(null);
    return $arrowHead_context$$120$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$getCircleRadius$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$getCircleRadius$$($dvt$$4$$) {
    return 2 * $dvt$$4$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$getRectangleLength$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$getRectangleLength$$($dvt$$4$$) {
    return 3 * $dvt$$4$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateCircleConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateCircleConnector$$($conShape_context$$121$$, $DvtDiagramLayoutContext$$, $stroke$$32$$) {
    $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$getCircleRadius$($DvtDiagramLayoutContext$$);
    $conShape_context$$121$$ = new $dvt$$4$$.$Circle$($conShape_context$$121$$, $DvtDiagramLayoutContext$$, 0, $DvtDiagramLayoutContext$$);
    $conShape_context$$121$$.$setStroke$($stroke$$32$$);
    $conShape_context$$121$$.$setFill$(null);
    return $conShape_context$$121$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateRectangleConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateRectangleConnector$$($conShape$$1_context$$122$$, $DvtDiagramLayoutContext$$, $stroke$$33$$) {
    $DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$getRectangleLength$($DvtDiagramLayoutContext$$);
    $conShape$$1_context$$122$$ = new $dvt$$4$$.Rect($conShape$$1_context$$122$$, 0, -$DvtDiagramLayoutContext$$ / 2, $DvtDiagramLayoutContext$$, $DvtDiagramLayoutContext$$);
    $conShape$$1_context$$122$$.$setStroke$($stroke$$33$$);
    $conShape$$1_context$$122$$.$setFill$(null);
    return $conShape$$1_context$$122$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateRoundedRectangleConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateRoundedRectangleConnector$$($conShape$$2_context$$123$$, $DvtDiagramLayoutContext$$, $stroke$$34$$) {
    $conShape$$2_context$$123$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateRectangleConnector$($conShape$$2_context$$123$$, $DvtDiagramLayoutContext$$, $stroke$$34$$);
    $conShape$$2_context$$123$$.$setCornerRadius$($DvtDiagramLayoutContext$$);
    return $conShape$$2_context$$123$$;
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$CreateCustomConnector$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$CreateCustomConnector$$($connectorTemplate$$9$$, $DvtDiagramLayoutContext$$) {
    var $afContext$$59$$ = $DvtDiagramLayoutContext$$.$GetDiagram$().$createAfContext$();
    $afContext$$59$$.$setELContext$($DvtDiagramLayoutContext$$.getData().$_elAttributes$);
    $afContext$$59$$.$setContextCallback$($DvtDiagramLayoutContext$$, $DvtDiagramLayoutContext$$.$eventContextCallback$);
    $afContext$$59$$.$setTabStopsArray$($DvtDiagramLayoutContext$$.$getTabStopsArray$());
    return $dvt$$4$$.$AfComponentFactory$.$parseAndLayout$($afContext$$59$$, $connectorTemplate$$9$$, $DvtDiagramLayoutContext$$);
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$GetConnectorOffset$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$GetConnectorOffset$$($connScaleX$$1_connector$$10$$, $DvtDiagramLayoutContext$$, $connectorTemplate$$10$$, $stroke$$35$$, $DvtDiagramLayoutContextNode$$) {
    return $connectorTemplate$$10$$ ? ($DvtDiagramLayoutContext$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getCachedDims$($connScaleX$$1_connector$$10$$), $connScaleX$$1_connector$$10$$ = $connScaleX$$1_connector$$10$$.$getScaleX$(), .5 * $DvtDiagramLayoutContext$$.$w$ * $connScaleX$$1_connector$$10$$) : $dvt$$4$$.$DiagramLinkConnectorUtils$.$getStandardConnectorOffset$($DvtDiagramLayoutContext$$, $DvtDiagramLayoutContextNode$$.$GetAppliedLinkWidth$(), $stroke$$35$$.getWidth());
  };
  $dvt$$4$$.$DiagramLinkConnectorUtils$.$getStandardConnectorOffset$ = function $$dvt$$4$$$$DiagramLinkConnectorUtils$$$getStandardConnectorOffset$$($connectorType$$9_scaleFactor$$7$$, $DvtDiagramLayoutContext$$, $strokeWidth$$6$$) {
    switch($connectorType$$9_scaleFactor$$7$$) {
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_OPEN$:
        return $strokeWidth$$6$$ * Math.sqrt(2);
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW$:
        return $connectorType$$9_scaleFactor$$7$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getReduce$($DvtDiagramLayoutContext$$), 5 * $connectorType$$9_scaleFactor$$7$$;
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_ARROW_CONCAVE$:
        return $connectorType$$9_scaleFactor$$7$$ = $dvt$$4$$.$DiagramLinkConnectorUtils$.$_getReduce$($DvtDiagramLayoutContext$$), 4.68 * $connectorType$$9_scaleFactor$$7$$;
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_CIRCLE$:
        return 2 * $dvt$$4$$.$DiagramLinkConnectorUtils$.$getCircleRadius$($strokeWidth$$6$$) + $strokeWidth$$6$$ / 2;
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_RECTANGLE$:
      ;
      case $dvt$$4$$.$DiagramLinkConnectorUtils$.$CONNECTOR_TYPE_RECTANGLE_ROUNDED$:
        return $dvt$$4$$.$DiagramLinkConnectorUtils$.$getRectangleLength$($strokeWidth$$6$$) + $strokeWidth$$6$$ / 2;
      default:
        return 0;
    }
  };
  $dvt$$4$$.$exportProperty$($dvt$$4$$.$BaseDiagram$.prototype, "setInitAnim", $dvt$$4$$.$BaseDiagram$.prototype.$setInitAnim$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getLayout", $DvtDiagramLayoutContext$$.prototype.$getLayout$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getLayoutAttributes", $DvtDiagramLayoutContext$$.prototype.$getLayoutAttributes$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getNodeById", $DvtDiagramLayoutContext$$.prototype.$getNodeById$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getNodeByIndex", $DvtDiagramLayoutContext$$.prototype.$getNodeByIndex$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getNodeCount", $DvtDiagramLayoutContext$$.prototype.$getNodeCount$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getLinkById", $DvtDiagramLayoutContext$$.prototype.$getLinkById$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getLinkByIndex", $DvtDiagramLayoutContext$$.prototype.$getLinkByIndex$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getLinkCount", $DvtDiagramLayoutContext$$.prototype.$getLinkCount$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "localToGlobal", $DvtDiagramLayoutContext$$.prototype.$localToGlobal$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "isLocaleR2L", $DvtDiagramLayoutContext$$.prototype.$isLocaleR2L$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getComponentSize", $DvtDiagramLayoutContext$$.prototype.$getComponentSize$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "setViewport", $DvtDiagramLayoutContext$$.prototype.$setViewport$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getViewport", $DvtDiagramLayoutContext$$.prototype.$getViewport$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getContainerId", $DvtDiagramLayoutContext$$.prototype.$getContainerId$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "setContainerPadding", $DvtDiagramLayoutContext$$.prototype.$setContainerPadding$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getContainerPadding", $DvtDiagramLayoutContext$$.prototype.$getContainerPadding$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getCurrentViewport", $DvtDiagramLayoutContext$$.prototype.$getCurrentViewport$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContext$$.prototype, "getCommonContainer", $DvtDiagramLayoutContext$$.prototype.$getCommonContainer$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getId", $DvtDiagramLayoutContextNode$$.prototype.getId);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getBounds", $DvtDiagramLayoutContextNode$$.prototype.$getBounds$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getContentBounds", $DvtDiagramLayoutContextNode$$.prototype.$getContentBounds$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setPosition", $DvtDiagramLayoutContextNode$$.prototype.setPosition);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getPosition", $DvtDiagramLayoutContextNode$$.prototype.$getPosition$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getRelativePosition", $DvtDiagramLayoutContextNode$$.prototype.$getRelativePosition$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setLabelPosition", $DvtDiagramLayoutContextNode$$.prototype.$setLabelPosition$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLabelPosition", $DvtDiagramLayoutContextNode$$.prototype.$getLabelPosition$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLabelBounds", $DvtDiagramLayoutContextNode$$.prototype.$getLabelBounds$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLayoutAttributes", $DvtDiagramLayoutContextNode$$.prototype.$getLayoutAttributes$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "isReadOnly", $DvtDiagramLayoutContextNode$$.prototype.$isReadOnly$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getContainerId", $DvtDiagramLayoutContextNode$$.prototype.$getContainerId$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getSelected", $DvtDiagramLayoutContextNode$$.prototype.$getSelected$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setLabelRotationAngle", $DvtDiagramLayoutContextNode$$.prototype.$setLabelRotationAngle$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLabelRotationAngle", $DvtDiagramLayoutContextNode$$.prototype.$getLabelRotationAngle$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setLabelRotationPoint", $DvtDiagramLayoutContextNode$$.prototype.$setLabelRotationPoint$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLabelRotationPoint", $DvtDiagramLayoutContextNode$$.prototype.$getLabelRotationPoint$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setContainerPadding", $DvtDiagramLayoutContextNode$$.prototype.$setContainerPadding$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getContainerPadding", $DvtDiagramLayoutContextNode$$.prototype.$getContainerPadding$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setDisclosed", $DvtDiagramLayoutContextNode$$.prototype.$setDisclosed$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "isDisclosed", $DvtDiagramLayoutContextNode$$.prototype.$isDisclosed$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setChildNodes", $DvtDiagramLayoutContextNode$$.prototype.$setChildNodes$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getChildNodes", $DvtDiagramLayoutContextNode$$.prototype.$getChildNodes$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getParentNode", $DvtDiagramLayoutContextNode$$.prototype.$getParentNode$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setLabelValign", $DvtDiagramLayoutContextNode$$.prototype.$setLabelValign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "setLabelHalign", $DvtDiagramLayoutContextNode$$.prototype.$setLabelHalign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLabelValign", $DvtDiagramLayoutContextNode$$.prototype.$getLabelValign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getLabelHalign", $DvtDiagramLayoutContextNode$$.prototype.$getLabelHalign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextNode$$.prototype, "getData", $DvtDiagramLayoutContextNode$$.prototype.getData);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getId", $DvtDiagramLayoutContextLink$$.prototype.getId);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getStartId", $DvtDiagramLayoutContextLink$$.prototype.$getStartId$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getEndId", $DvtDiagramLayoutContextLink$$.prototype.$getEndId$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setPoints", $DvtDiagramLayoutContextLink$$.prototype.$setPoints$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getPoints", $DvtDiagramLayoutContextLink$$.prototype.$getPoints$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setLabelPosition", $DvtDiagramLayoutContextLink$$.prototype.$setLabelPosition$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLabelPosition", $DvtDiagramLayoutContextLink$$.prototype.$getLabelPosition$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLabelBounds", $DvtDiagramLayoutContextLink$$.prototype.$getLabelBounds$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getStartConnectorOffset", $DvtDiagramLayoutContextLink$$.prototype.$getStartConnectorOffset$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getEndConnectorOffset", $DvtDiagramLayoutContextLink$$.prototype.$getEndConnectorOffset$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLinkWidth", $DvtDiagramLayoutContextLink$$.prototype.$getLinkWidth$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLayoutAttributes", $DvtDiagramLayoutContextLink$$.prototype.$getLayoutAttributes$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getSelected", $DvtDiagramLayoutContextLink$$.prototype.$getSelected$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setLabelRotationAngle", $DvtDiagramLayoutContextLink$$.prototype.$setLabelRotationAngle$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setLabelRotationAngle", $DvtDiagramLayoutContextLink$$.prototype.$getLabelRotationAngle$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setLabelRotationPoint", $DvtDiagramLayoutContextLink$$.prototype.$setLabelRotationPoint$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLabelRotationPoint", $DvtDiagramLayoutContextLink$$.prototype.$getLabelRotationPoint$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "isPromoted", $DvtDiagramLayoutContextLink$$.prototype.$isPromoted$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setLabelValign", $DvtDiagramLayoutContextLink$$.prototype.$setLabelValign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setLabelHalign", $DvtDiagramLayoutContextLink$$.prototype.$setLabelHalign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLabelValign", $DvtDiagramLayoutContextLink$$.prototype.$getLabelValign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getLabelHalign", $DvtDiagramLayoutContextLink$$.prototype.$getLabelHalign$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "setCoordinateSpace", $DvtDiagramLayoutContextLink$$.prototype.$setCoordinateSpace$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getCoordinateSpace", $DvtDiagramLayoutContextLink$$.prototype.$getCoordinateSpace$);
  $dvt$$4$$.$exportProperty$($DvtDiagramLayoutContextLink$$.prototype, "getData", $DvtDiagramLayoutContextLink$$.prototype.getData);
  $dvt$$4$$.$exportProperty$($dvt$$4$$, "DiagramPoint", $dvt$$4$$.$DiagramPoint$);
  $dvt$$4$$.$exportProperty$($dvt$$4$$, "DiagramRectangle", $dvt$$4$$.$DiagramRectangle$);
})(dvt);
