function $JSCompiler_StaticMethods_handleHeaderSelection$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $headerCellIndex$$1_pivotHandle$$10$$, $domEvent$$67_set$$1$$) {
  if (!$JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$)) {
    return !1;
  }
  var $startDrag$$1$$ = !0;
  if (AdfPivotTableUtils.$isMobileTouchDevice$()) {
    var $startDrag$$1$$ = !1, $ctrlKey$$4_edge$$69$$ = $headerCellIndex$$1_pivotHandle$$10$$.edge, $layer$$26_shiftKey$$6$$ = $headerCellIndex$$1_pivotHandle$$10$$.layer;
    if ($JSCompiler_StaticMethods__findElement$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, AdfAgent.AGENT.getEventTarget($domEvent$$67_set$$1$$), "_sorted")) {
      $domEvent$$67_set$$1$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $ctrlKey$$4_edge$$69$$);
      for (var $i$$182$$ = $domEvent$$67_set$$1$$.length - 1;0 <= $i$$182$$;--$i$$182$$) {
        var $range$$13_testEndIndex$$ = $domEvent$$67_set$$1$$[$i$$182$$];
        if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($range$$13_testEndIndex$$)) {
          var $startIndex$$5$$ = $range$$13_testEndIndex$$.startIndex;
          if ($startIndex$$5$$.layer == $layer$$26_shiftKey$$6$$) {
            var $slice$$8$$ = $headerCellIndex$$1_pivotHandle$$10$$.slice;
            if (!($startIndex$$5$$.slice > $slice$$8$$ || ($range$$13_testEndIndex$$ = $range$$13_testEndIndex$$.endIndex, null == $range$$13_testEndIndex$$ && ($range$$13_testEndIndex$$ = $startIndex$$5$$), $range$$13_testEndIndex$$.slice < $slice$$8$$))) {
              return $startDrag$$1$$;
            }
          }
        }
      }
    }
    $JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $headerCellIndex$$1_pivotHandle$$10$$, !0);
    $headerCellIndex$$1_pivotHandle$$10$$ = $JSCompiler_StaticMethods_getPivotHandle$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $ctrlKey$$4_edge$$69$$, $layer$$26_shiftKey$$6$$);
    if (null == $JSCompiler_StaticMethods_handleHeaderSelection$self$$.$_currentPivotHandle$ || null != $headerCellIndex$$1_pivotHandle$$10$$ && $headerCellIndex$$1_pivotHandle$$10$$.id != $JSCompiler_StaticMethods_handleHeaderSelection$self$$.$_currentPivotHandle$.id) {
      $JSCompiler_StaticMethods_hidePivotHandle$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$), null != $headerCellIndex$$1_pivotHandle$$10$$ && $JSCompiler_StaticMethods_showPivotHandle$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $ctrlKey$$4_edge$$69$$, $layer$$26_shiftKey$$6$$, $headerCellIndex$$1_pivotHandle$$10$$);
    }
  } else {
    $ctrlKey$$4_edge$$69$$ = "keydown" == $domEvent$$67_set$$1$$.type ? $domEvent$$67_set$$1$$.ctrlKey : $JSCompiler_StaticMethods_ctrlEquivalent$$($domEvent$$67_set$$1$$), $layer$$26_shiftKey$$6$$ = $domEvent$$67_set$$1$$.shiftKey, $ctrlKey$$4_edge$$69$$ || $layer$$26_shiftKey$$6$$ ? $startDrag$$1$$ = !$ctrlKey$$4_edge$$69$$ && $layer$$26_shiftKey$$6$$ ? $JSCompiler_StaticMethods_extendHeaderSelection$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $headerCellIndex$$1_pivotHandle$$10$$, 
    AdfPivotTableUtils.$MAYBE$) : $JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $headerCellIndex$$1_pivotHandle$$10$$, !1) : $JSCompiler_StaticMethods_selectAndFocusHeaderCell$$($JSCompiler_StaticMethods_handleHeaderSelection$self$$, $headerCellIndex$$1_pivotHandle$$10$$);
  }
  return $startDrag$$1$$;
}
function $JSCompiler_StaticMethods_handleMouseDatabodySelection$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $context$$38_ctrlKey$$5_dataCells$$, $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$) {
  if ($JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$)) {
    var $clickedCellIndex$$1_column$$7$$ = $JSCompiler_StaticMethods_newDataCellIndexFromCell$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $context$$38_ctrlKey$$5_dataCells$$.$databodyContext$.cell);
    if (AdfPivotTableUtils.$isMobileTouchDevice$()) {
      if ($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.isSelected($clickedCellIndex$$1_column$$7$$)) {
        $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$ = $JSCompiler_StaticMethods_newDataCellRange$$($clickedCellIndex$$1_column$$7$$);
        $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$, AdfPivotTableUtils.$DATABODY$, AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$);
        $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$ = $JSCompiler_StaticMethods_copySelection$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$);
        $context$$38_ctrlKey$$5_dataCells$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, AdfPivotTableUtils.$DATABODY$, $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$);
        for (var $row$$39$$ = $clickedCellIndex$$1_column$$7$$.row, $clickedCellIndex$$1_column$$7$$ = $clickedCellIndex$$1_column$$7$$.column, $i$$183$$ = $context$$38_ctrlKey$$5_dataCells$$.length - 1;-1 < $i$$183$$;$i$$183$$--) {
          var $endRow$$2_range$$14$$ = $context$$38_ctrlKey$$5_dataCells$$[$i$$183$$];
          if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($endRow$$2_range$$14$$)) {
            if (null == $endRow$$2_range$$14$$.endIndex) {
              $endRow$$2_range$$14$$.startIndex.column == $clickedCellIndex$$1_column$$7$$ && $endRow$$2_range$$14$$.startIndex.row == $row$$39$$ && $context$$38_ctrlKey$$5_dataCells$$.splice($i$$183$$, 1);
            } else {
              var $startColumn$$1_startIndex$$6$$ = $endRow$$2_range$$14$$.startIndex, $newEndIndex_newRange_startRow$$5$$ = $startColumn$$1_startIndex$$6$$.row, $startColumn$$1_startIndex$$6$$ = $startColumn$$1_startIndex$$6$$.column;
              if (!($newEndIndex_newRange_startRow$$5$$ > $row$$39$$ || $startColumn$$1_startIndex$$6$$ > $clickedCellIndex$$1_column$$7$$)) {
                var $endColumn$$1_endIndex$$2$$ = $JSCompiler_StaticMethods_getEndIndex$$($endRow$$2_range$$14$$), $endRow$$2_range$$14$$ = $endColumn$$1_endIndex$$2$$.row, $endColumn$$1_endIndex$$2$$ = $endColumn$$1_endIndex$$2$$.column;
                if (!($endRow$$2_range$$14$$ < $row$$39$$ || $endColumn$$1_endIndex$$2$$ < $clickedCellIndex$$1_column$$7$$)) {
                  var $spliceArgs$$ = [$i$$183$$, 1];
                  if ($row$$39$$ > $newEndIndex_newRange_startRow$$5$$) {
                    var $newStartIndex$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($newEndIndex_newRange_startRow$$5$$, $startColumn$$1_startIndex$$6$$);
                    $endColumn$$1_endIndex$$2$$ > $startColumn$$1_startIndex$$6$$ || 1 < $row$$39$$ - $newEndIndex_newRange_startRow$$5$$ ? ($newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($row$$39$$ - 1, $endColumn$$1_endIndex$$2$$), $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$, $newEndIndex_newRange_startRow$$5$$)) : $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$);
                    $spliceArgs$$.push($newEndIndex_newRange_startRow$$5$$);
                  }
                  $clickedCellIndex$$1_column$$7$$ > $startColumn$$1_startIndex$$6$$ && ($newStartIndex$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($row$$39$$, $startColumn$$1_startIndex$$6$$), 1 < $clickedCellIndex$$1_column$$7$$ - $startColumn$$1_startIndex$$6$$ ? ($newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($row$$39$$, $clickedCellIndex$$1_column$$7$$ - 1), $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$, 
                  $newEndIndex_newRange_startRow$$5$$)) : $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$), $spliceArgs$$.push($newEndIndex_newRange_startRow$$5$$));
                  $endColumn$$1_endIndex$$2$$ > $clickedCellIndex$$1_column$$7$$ && ($newStartIndex$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($row$$39$$, $clickedCellIndex$$1_column$$7$$ + 1), 1 < $endColumn$$1_endIndex$$2$$ - $clickedCellIndex$$1_column$$7$$ ? ($newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($row$$39$$, $endColumn$$1_endIndex$$2$$), $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$, $newEndIndex_newRange_startRow$$5$$)) : 
                  $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$), $spliceArgs$$.push($newEndIndex_newRange_startRow$$5$$));
                  $endRow$$2_range$$14$$ > $row$$39$$ && ($newStartIndex$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($row$$39$$ + 1, $startColumn$$1_startIndex$$6$$), $endColumn$$1_endIndex$$2$$ > $startColumn$$1_startIndex$$6$$ || 1 < $endRow$$2_range$$14$$ - $row$$39$$ ? ($newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($endRow$$2_range$$14$$, $endColumn$$1_endIndex$$2$$), $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$, 
                  $newEndIndex_newRange_startRow$$5$$)) : $newEndIndex_newRange_startRow$$5$$ = $JSCompiler_StaticMethods_newDataCellRange$$($newStartIndex$$), $spliceArgs$$.push($newEndIndex_newRange_startRow$$5$$));
                  Array.prototype.splice.apply($context$$38_ctrlKey$$5_dataCells$$, $spliceArgs$$);
                }
              }
            }
          }
        }
        null != $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_focusCellIndex$ && $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_focusCellIndex$.row == $row$$39$$ && $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_focusCellIndex$.column == $clickedCellIndex$$1_column$$7$$ && (0 != $context$$38_ctrlKey$$5_dataCells$$.length ? ($endRow$$2_range$$14$$ = $context$$38_ctrlKey$$5_dataCells$$[$context$$38_ctrlKey$$5_dataCells$$.length - 1], $JSCompiler_StaticMethods_isRangeIndexPopulated$$($endRow$$2_range$$14$$) ? 
        $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $endRow$$2_range$$14$$.startIndex, null, !0, $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$) : $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_focusCellIndex$ = null) : $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_focusCellIndex$ = null);
        $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$);
        $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$);
      } else {
        $JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $clickedCellIndex$$1_column$$7$$, !0);
      }
    } else {
      $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_databodySelectionDragState$ = !0, AdfPage.PAGE.startDrag($clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$, $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_selectionDragCallback$, $JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$.$_selectionDropCallback$), $context$$38_ctrlKey$$5_dataCells$$ = $JSCompiler_StaticMethods_ctrlEquivalent$$($clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$), $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$ = 
      $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$.shiftKey, $context$$38_ctrlKey$$5_dataCells$$ || $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$ ? !$context$$38_ctrlKey$$5_dataCells$$ && $clickedRange_domEvent$$68_selection$$2_shiftKey$$7$$ ? $JSCompiler_StaticMethods_extendDatabodySelection$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $clickedCellIndex$$1_column$$7$$) : $JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, 
      $clickedCellIndex$$1_column$$7$$, !1) : $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleMouseDatabodySelection$self$$, $clickedCellIndex$$1_column$$7$$);
    }
  }
}
$JSCompiler_prototypeAlias$$ = AdfDhtmlPivotTablePeer.prototype;
$JSCompiler_prototypeAlias$$.$handleSelectionDrag$ = function $$JSCompiler_prototypeAlias$$$$handleSelectionDrag$$($domEvent$$71_headerCellIndex$$inline_3386$$) {
  var $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$ = $JSCompiler_StaticMethods__getMouseContext$$(this, $domEvent$$71_headerCellIndex$$inline_3386$$);
  if (this.$_headerSelectionDragState$) {
    if ($JSCompiler_StaticMethods_isSelectionUiEnabled$$(this) && $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$ && $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$.cell) {
      $domEvent$$71_headerCellIndex$$inline_3386$$ = $JSCompiler_StaticMethods_newHeaderCellIndexWithEdgeFromCell$$($context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$.cell);
      var $edge$$inline_3387$$ = $domEvent$$71_headerCellIndex$$inline_3386$$.edge;
      $edge$$inline_3387$$ === $JSCompiler_StaticMethods_getSelectedEdge$$(this) && (AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM && 8 <= AdfAgent.AGENT.getVersion() || AdfDhtmlPivotTablePeer.$_setCursor$($context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$.cell, this.$_headerSelectionCursors$[$edge$$inline_3387$$]), $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$ = $JSCompiler_StaticMethods_getCurrentRange$$(this).startIndex.layer, 
      $domEvent$$71_headerCellIndex$$inline_3386$$.layer == $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$ && ($JSCompiler_StaticMethods__dismissClickToEditIfNeeded$$(this, null), $JSCompiler_StaticMethods_extendHeaderSelection$$(this, $domEvent$$71_headerCellIndex$$inline_3386$$, !1)));
    }
  } else {
    this.$_databodySelectionDragState$ && $JSCompiler_StaticMethods_isSelectionUiEnabled$$(this) && ($context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$databodyContext$ ? ($domEvent$$71_headerCellIndex$$inline_3386$$.shiftKey || $JSCompiler_StaticMethods_ctrlEquivalent$$($domEvent$$71_headerCellIndex$$inline_3386$$) || $JSCompiler_StaticMethods__dismissClickToEditIfNeeded$$(this, null), $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$ = $JSCompiler_StaticMethods_newDataCellIndexFromCell$$(this, 
    $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$databodyContext$.cell), $JSCompiler_StaticMethods_extendDatabodySelection$$(this, $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$)) : $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$ && $context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$.cell && (AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM && 8 <= AdfAgent.AGENT.getVersion() || 
    AdfDhtmlPivotTablePeer.$_setCursor$($context$$41_dataCellIndex$$inline_3393_rangeStartLayer$$inline_3388$$.$headerContext$.cell, "")));
  }
};
$JSCompiler_prototypeAlias$$.$handleSelectionDrop$ = function $$JSCompiler_prototypeAlias$$$$handleSelectionDrop$$() {
  this.$_databodySelectionDragState$ = this.$_headerSelectionDragState$ = !1;
};
function $JSCompiler_StaticMethods_handleKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $extend_otherEdge$$inline_3418$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) {
  if ($JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$) && ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ || !$JSCompiler_StaticMethods__getActiveCellKey$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$)) && ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_focusCellIndex$, 
  null != $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$)) {
    if ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_getEdge$$($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_rightToLeft$ && ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ == AdfKeyStroke.ARROWLEFT_KEY ? $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = 
    AdfKeyStroke.ARROWRIGHT_KEY : $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ == AdfKeyStroke.ARROWRIGHT_KEY && ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = AdfKeyStroke.ARROWLEFT_KEY)), $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ == AdfPivotTableUtils.$DATABODY$) {
      a: {
        if ($extend_otherEdge$$inline_3418$$) {
          if ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_selectionFrontier$, null == $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) {
            break a;
          }
        } else {
          $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_selectionAnchor$;
          if (null == $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) {
            break a;
          }
          $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$.startIndex;
        }
        var $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$.row, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$.column;
        switch($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$) {
          case AdfKeyStroke.ARROWLEFT_KEY:
            0 == $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ ? $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, AdfPivotTableUtils.$ROW_EDGE$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, $extend_otherEdge$$inline_3418$$) : $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ == $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[0] ? 
            $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 0, 0, !1, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$) : ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ - 
            1), $extend_otherEdge$$inline_3418$$ ? $JSCompiler_StaticMethods_extendDatabodySelection$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) : $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), 
            $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$));
            break;
          case AdfKeyStroke.ARROWRIGHT_KEY:
            $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ == $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[0] - 1 ? $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 0, 1, !0, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$) : $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ + 1 < $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_colExtent$ ? 
            ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ + 1), $extend_otherEdge$$inline_3418$$ ? $JSCompiler_StaticMethods_extendDatabodySelection$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 
            $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) : $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$)) : 
            $extend_otherEdge$$inline_3418$$ || ($JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$));
            break;
          case AdfKeyStroke.ARROWUP_KEY:
            0 == $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ ? $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, AdfPivotTableUtils.$COLUMN_EDGE$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $extend_otherEdge$$inline_3418$$) : $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ == $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[1] ? 
            $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 1, 0, !1, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$) : ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ - 1, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$), 
            $extend_otherEdge$$inline_3418$$ ? $JSCompiler_StaticMethods_extendDatabodySelection$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) : $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), 
            $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$));
            break;
          case AdfKeyStroke.ARROWDOWN_KEY:
            $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ == $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[1] - 1 ? $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 1, 1, !0, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$) : $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ + 1 < $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_rowExtent$ ? 
            ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ + 1, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$), $extend_otherEdge$$inline_3418$$ ? $JSCompiler_StaticMethods_extendDatabodySelection$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 
            $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$) : $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$)) : 
            $extend_otherEdge$$inline_3418$$ || ($JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$), $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$));
            break;
          default:
            AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected keyCode in handleDatabodyKeyboardNavigation");
        }
      }
    } else {
      $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_focusCellIndex$;
      $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ = $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$.edge;
      var $oldStartLayer$$inline_3409_pane$$inline_3414$$ = $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$.layer, $oldStartSlice$$inline_3410$$ = $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$.slice;
      switch($JSCompiler_StaticMethods_getNavigationType$$($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$)) {
        case AdfDhtmlPivotTablePeer.$NAV_LAYER_DECREASE$:
          0 != $oldStartLayer$$inline_3409_pane$$inline_3414$$ && ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $oldStartLayer$$inline_3409_pane$$inline_3414$$ - 1, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $oldStartSlice$$inline_3410$$, $JSCompiler_StaticMethods_overlapsViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$) || ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = 
          $JSCompiler_StaticMethods_closestLayerInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$), $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 
          $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$)), $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$), 
          $oldStartLayer$$inline_3409_pane$$inline_3414$$ = $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$] ? 0 : 1, null == $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ ? ($column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = 
          $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $oldStartLayer$$inline_3409_pane$$inline_3414$$) ? -100 : 100, $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 
          $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, $extend_otherEdge$$inline_3418$$)) : $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 
          $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $oldStartLayer$$inline_3409_pane$$inline_3414$$, $extend_otherEdge$$inline_3418$$));
          break;
        case AdfDhtmlPivotTablePeer.$NAV_LAYER_INCREASE$:
          $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$);
          var $layerCount$$inline_3417_splitSlice$$inline_3420$$ = $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ ? $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_rowLayerCount$ : $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_colLayerCount$;
          $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $oldStartLayer$$inline_3409_pane$$inline_3414$$ + ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ ? $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$.depth : 1);
          $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $oldStartSlice$$inline_3410$$;
          $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ >= $layerCount$$inline_3417_splitSlice$$inline_3420$$ ? $extend_otherEdge$$inline_3418$$ || ($extend_otherEdge$$inline_3418$$ = 1 - $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $extend_otherEdge$$inline_3418$$, $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_startPane$[$extend_otherEdge$$inline_3418$$], 
          !0, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$)) : ($JSCompiler_StaticMethods_overlapsViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$) || ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $JSCompiler_StaticMethods_closestLayerInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 
          $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$), $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$)), $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = 
          $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$), $oldStartLayer$$inline_3409_pane$$inline_3414$$ = $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$] ? 
          0 : 1, null == $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ ? ($column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 
          $oldStartLayer$$inline_3409_pane$$inline_3414$$) ? -100 : 100, $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, 
          $extend_otherEdge$$inline_3418$$)) : $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $oldStartLayer$$inline_3409_pane$$inline_3414$$, $extend_otherEdge$$inline_3418$$));
          break;
        case AdfDhtmlPivotTablePeer.$NAV_SLICE_DECREASE$:
          $oldStartSlice$$inline_3410$$ == $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$] ? $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 
          0, !1, $oldStartLayer$$inline_3409_pane$$inline_3414$$) : ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $oldStartLayer$$inline_3409_pane$$inline_3414$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $oldStartSlice$$inline_3410$$ - 1, $JSCompiler_StaticMethods_overlapsViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$) || ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = 
          $JSCompiler_StaticMethods_closestLayerInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$), $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 
          $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$)), -1 == $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ ? $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 1 - $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_startPane$[1 - $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$], 
          !0, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$) : ($column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$), 
          null == $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ ? $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, -100, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, 
          $extend_otherEdge$$inline_3418$$) : ($oldStartLayer$$inline_3409_pane$$inline_3414$$ = $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$] ? 0 : 1, $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 
          $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $oldStartLayer$$inline_3409_pane$$inline_3414$$, $extend_otherEdge$$inline_3418$$))));
          break;
        case AdfDhtmlPivotTablePeer.$NAV_SLICE_INCREASE$:
          $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$)) ? $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$.extent : 1;
          $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $oldStartLayer$$inline_3409_pane$$inline_3414$$;
          $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $oldStartSlice$$inline_3410$$ + $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$;
          $layerCount$$inline_3417_splitSlice$$inline_3420$$ = $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$];
          $oldStartSlice$$inline_3410$$ < $layerCount$$inline_3417_splitSlice$$inline_3420$$ && $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ >= $layerCount$$inline_3417_splitSlice$$inline_3420$$ ? $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 1, !0, $oldStartLayer$$inline_3409_pane$$inline_3414$$) : 
          ($JSCompiler_StaticMethods_overlapsViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$) || ($haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$ = $JSCompiler_StaticMethods_closestLayerInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, 
          $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$), $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ = $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$)), $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < 
          ($edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$ ? $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_rowExtent$ : $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_colExtent$) && ($column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 
          $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$), null == $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$ ? $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, 100, 
          $edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$, $haveInfo$$inline_3416_keyCode$$20_newLayer$$inline_3411$$, $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$, $extend_otherEdge$$inline_3418$$) : ($oldStartLayer$$inline_3409_pane$$inline_3414$$ = $extent$$inline_3419_newSlice$$inline_3412_row$$inline_3400$$ < $JSCompiler_StaticMethods_handleKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$71_edge$$inline_3408_focusCellIndex$$4_force_newCellIndex$$inline_3402_oldCellIndex$$inline_3398_oldCellRange$$inline_3399$$] ? 
          0 : 1, $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_handleKeyboardNavigation$self$$, $column$$inline_3401_delta$$inline_3415_focusCellIndex$$inline_3407_newCellInfo$$inline_3413$$, $oldStartLayer$$inline_3409_pane$$inline_3414$$, $extend_otherEdge$$inline_3418$$))));
          break;
        default:
          AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected navType in handleHeaderKeyboardNavigation");
      }
    }
  }
}
function $JSCompiler_StaticMethods_handleCtrlArrowNavigation$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, $keyCode$$22$$) {
  var $focusCellIndex$$5$$ = $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_focusCellIndex$;
  if (null != $focusCellIndex$$5$$) {
    $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_rightToLeft$ && ($keyCode$$22$$ == AdfKeyStroke.ARROWLEFT_KEY ? $keyCode$$22$$ = AdfKeyStroke.ARROWRIGHT_KEY : $keyCode$$22$$ == AdfKeyStroke.ARROWRIGHT_KEY && ($keyCode$$22$$ = AdfKeyStroke.ARROWLEFT_KEY));
    var $isForward$$ = $keyCode$$22$$ == AdfKeyStroke.ARROWRIGHT_KEY || $keyCode$$22$$ == AdfKeyStroke.ARROWDOWN_KEY, $destinationEdge_directionEdge$$ = $keyCode$$22$$ == AdfKeyStroke.ARROWUP_KEY || $keyCode$$22$$ == AdfKeyStroke.ARROWDOWN_KEY ? AdfPivotTableUtils.$ROW_EDGE$ : AdfPivotTableUtils.$COLUMN_EDGE$, $currentEdge$$3_destinationPane_slice$$9$$ = $JSCompiler_StaticMethods_getEdge$$($focusCellIndex$$5$$);
    if ($currentEdge$$3_destinationPane_slice$$9$$ == AdfPivotTableUtils.$DATABODY$) {
      var $currentPane_currentSlice$$;
      $destinationEdge_directionEdge$$ ? ($currentEdge$$3_destinationPane_slice$$9$$ = $focusCellIndex$$5$$.column, $currentPane_currentSlice$$ = $focusCellIndex$$5$$.row) : ($currentEdge$$3_destinationPane_slice$$9$$ = $focusCellIndex$$5$$.row, $currentPane_currentSlice$$ = $focusCellIndex$$5$$.column);
      var $splitSlice$$1$$ = $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_splitSlice$[$destinationEdge_directionEdge$$];
      $currentPane_currentSlice$$ = $currentPane_currentSlice$$ < $splitSlice$$1$$ ? 0 : 1;
      $isForward$$ ? 0 == $currentPane_currentSlice$$ && $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, $destinationEdge_directionEdge$$, 1, $isForward$$, $currentEdge$$3_destinationPane_slice$$9$$) : $currentPane_currentSlice$$ == $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_startPane$[$destinationEdge_directionEdge$$] ? $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, 
      1 - $destinationEdge_directionEdge$$, $currentEdge$$3_destinationPane_slice$$9$$, !1) : $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, $destinationEdge_directionEdge$$, 0, $isForward$$, $currentEdge$$3_destinationPane_slice$$9$$);
    } else {
      $currentEdge$$3_destinationPane_slice$$9$$ == $destinationEdge_directionEdge$$ ? ($splitSlice$$1$$ = $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_splitSlice$[$destinationEdge_directionEdge$$], $currentPane_currentSlice$$ = $focusCellIndex$$5$$.slice, $currentPane_currentSlice$$ = $currentPane_currentSlice$$ < $splitSlice$$1$$ ? 0 : 1, $isForward$$ ? 0 == $currentPane_currentSlice$$ && $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, 
      $destinationEdge_directionEdge$$, 1, $isForward$$, $focusCellIndex$$5$$.layer) : $currentPane_currentSlice$$ == $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_startPane$[$destinationEdge_directionEdge$$] ? ($destinationEdge_directionEdge$$ = 1 - $destinationEdge_directionEdge$$, $currentEdge$$3_destinationPane_slice$$9$$ = $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_startPane$[$destinationEdge_directionEdge$$], $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, 
      $destinationEdge_directionEdge$$, $currentEdge$$3_destinationPane_slice$$9$$, !$isForward$$, $focusCellIndex$$5$$.layer)) : $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, $destinationEdge_directionEdge$$, 0, $isForward$$, $focusCellIndex$$5$$.layer)) : $isForward$$ && ($currentEdge$$3_destinationPane_slice$$9$$ = $JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$.$_ptUtils$.$_startPane$[$destinationEdge_directionEdge$$], 
      $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_handleCtrlArrowNavigation$self$$, $destinationEdge_directionEdge$$, $currentEdge$$3_destinationPane_slice$$9$$, $isForward$$, $focusCellIndex$$5$$.slice));
    }
  }
}
function $JSCompiler_StaticMethods_jumpToDatabodyPane$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$, $edge$$72_newCellIndex$$6$$, $pane$$39$$, $bFirstSlice$$, $slice$$10$$) {
  $JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$) && ($slice$$10$$ = $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$, 1 - $edge$$72_newCellIndex$$6$$, $slice$$10$$), $edge$$72_newCellIndex$$6$$ = $JSCompiler_StaticMethods_closestVisibleDataCellIndex$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$, $edge$$72_newCellIndex$$6$$, $pane$$39$$, $bFirstSlice$$, $slice$$10$$), $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$, 
  $edge$$72_newCellIndex$$6$$), $JSCompiler_StaticMethods_preserveEditingBehavior$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$) || $JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$) || $JSCompiler_StaticMethods_jumpToDatabodyPane$self$$.$_isNavigationMode$ ? $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$, $edge$$72_newCellIndex$$6$$) : $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods_jumpToDatabodyPane$self$$));
}
function $JSCompiler_StaticMethods_closestVisibleDataCellIndex$$($JSCompiler_StaticMethods_closestVisibleDataCellIndex$self_otherSlice$$, $edge$$73_row$$41$$, $pane$$40$$, $bFirstSlice$$1$$, $column$$9_slice$$11$$) {
  $JSCompiler_StaticMethods_closestVisibleDataCellIndex$self_otherSlice$$ = $bFirstSlice$$1$$ ? $JSCompiler_StaticMethods_getViewportStartSlice$$($JSCompiler_StaticMethods_closestVisibleDataCellIndex$self_otherSlice$$, $edge$$73_row$$41$$, $pane$$40$$) : $JSCompiler_StaticMethods_getViewportEndSlice$$($JSCompiler_StaticMethods_closestVisibleDataCellIndex$self_otherSlice$$, $edge$$73_row$$41$$, $pane$$40$$);
  $edge$$73_row$$41$$ ? $edge$$73_row$$41$$ = $JSCompiler_StaticMethods_closestVisibleDataCellIndex$self_otherSlice$$ : ($edge$$73_row$$41$$ = $column$$9_slice$$11$$, $column$$9_slice$$11$$ = $JSCompiler_StaticMethods_closestVisibleDataCellIndex$self_otherSlice$$);
  return $JSCompiler_StaticMethods_newDataCellIndex$$($edge$$73_row$$41$$, $column$$9_slice$$11$$);
}
function $JSCompiler_StaticMethods_jumpAmongHeaderPanes$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$, $edge$$74_newCellInfo$$, $pane$$41_slice$$12$$, $bFirstSlice$$2$$, $layer$$27$$) {
  $JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$) && 0 != ($edge$$74_newCellInfo$$ ? $JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$.$_ptUtils$.$_rowLayerCount$ : $JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$.$_ptUtils$.$_colLayerCount$) && ($layer$$27$$ = $JSCompiler_StaticMethods_closestLayerInViewport$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$, $edge$$74_newCellInfo$$, $layer$$27$$), $pane$$41_slice$$12$$ = $bFirstSlice$$2$$ ? 
  $JSCompiler_StaticMethods_getViewportStartSlice$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$, $edge$$74_newCellInfo$$, $pane$$41_slice$$12$$) : $JSCompiler_StaticMethods_getViewportEndSlice$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$, $edge$$74_newCellInfo$$, $pane$$41_slice$$12$$), $edge$$74_newCellInfo$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$, $edge$$74_newCellInfo$$, $layer$$27$$, $pane$$41_slice$$12$$), $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_jumpAmongHeaderPanes$self$$, 
  $edge$$74_newCellInfo$$));
}
function $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $edge$$75$$, $newSlice$$, $extend$$2_selection$$3$$) {
  if ($JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$)) {
    var $layerCount$$4_newLayer$$ = $edge$$75$$ == AdfPivotTableUtils.$COLUMN_EDGE$ ? $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$.$_ptUtils$.$_colLayerCount$ : $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$.$_ptUtils$.$_rowLayerCount$;
    if (!$extend$$2_selection$$3$$ && 0 < $layerCount$$4_newLayer$$) {
      $JSCompiler_StaticMethods_highlightSelection$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, !0);
      $extend$$2_selection$$3$$ = $JSCompiler_StaticMethods_newSelection$$();
      $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$.$_selectionAnchor$ = null;
      $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$.$_selectionFrontier$ = null;
      var $layerCount$$4_newLayer$$ = ($edge$$75$$ ? $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$.$_ptUtils$.$_rowLayerCount$ : $JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$.$_ptUtils$.$_colLayerCount$) - 1, $newCellInfo$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $edge$$75$$, $layerCount$$4_newLayer$$, $newSlice$$);
      null == $newCellInfo$$1$$ && ($newSlice$$ = $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $edge$$75$$, $newSlice$$), $newCellInfo$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $edge$$75$$, $layerCount$$4_newLayer$$, $newSlice$$));
      $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $newCellInfo$$1$$, $edge$$75$$, !1, $extend$$2_selection$$3$$);
      $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $extend$$2_selection$$3$$);
      $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_handleDatabodyToHeaderNavigation$self$$, $extend$$2_selection$$3$$);
    }
  }
}
function $JSCompiler_StaticMethods_getNavigationType$$($edge$$76$$, $keyCode$$23$$) {
  if ($edge$$76$$ == AdfPivotTableUtils.$COLUMN_EDGE$) {
    switch($keyCode$$23$$) {
      case AdfKeyStroke.ARROWLEFT_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_SLICE_DECREASE$;
      case AdfKeyStroke.ARROWRIGHT_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_SLICE_INCREASE$;
      case AdfKeyStroke.ARROWUP_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_LAYER_DECREASE$;
      case AdfKeyStroke.ARROWDOWN_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_LAYER_INCREASE$;
      default:
        AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected keyCode in getNavigationType");
    }
  } else {
    switch($keyCode$$23$$) {
      case AdfKeyStroke.ARROWLEFT_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_LAYER_DECREASE$;
      case AdfKeyStroke.ARROWRIGHT_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_LAYER_INCREASE$;
      case AdfKeyStroke.ARROWUP_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_SLICE_DECREASE$;
      case AdfKeyStroke.ARROWDOWN_KEY:
        return AdfDhtmlPivotTablePeer.$NAV_SLICE_INCREASE$;
      default:
        AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected keyCode in getNavigationType");
    }
  }
}
function $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$, $delta$$17$$, $edge$$78$$, $newLayer$$2$$, $newSlice$$2$$, $extend$$4$$) {
  var $pane$$43$$ = $newSlice$$2$$ < $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$_ptUtils$.$_splitSlice$[$edge$$78$$] ? 0 : 1, $scrollPos$$11$$ = $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$_ptUtils$.$getScrollPos$($edge$$78$$, $pane$$43$$);
  $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$__logEnabled$ && $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$, "postponeHandlingHeaderKeyboardNavigation calling setScrollPos(" + $edge$$78$$ + ", " + $pane$$43$$ + ", " + ($scrollPos$$11$$ + $delta$$17$$) + ", true)");
  $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$_ptUtils$.setScrollPos($edge$$78$$, $pane$$43$$, $scrollPos$$11$$ + $delta$$17$$, !0);
  $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$HandleDomScroll$(0, null);
  $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$_unfinishedHeaderKeyboardNavigation$ = !0;
  $JSCompiler_StaticMethods_postponeHandlingHeaderKeyboardNavigation$self$$.$_unfinishedNavContext$ = {$edge$:$edge$$78$$, $newLayer$:$newLayer$$2$$, $newSlice$:$newSlice$$2$$, $isStartLayer$:!1, $isStartSlice$:!1, extend:$extend$$4$$, $pane$:$pane$$43$$};
}
function $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$, $pane$$44$$, $edge$$inline_3425_extend$$5$$) {
  $edge$$inline_3425_extend$$5$$ ? $JSCompiler_StaticMethods_extendHeaderSelection$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$, !0) : $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$);
  a: {
    $edge$$inline_3425_extend$$5$$ = $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$.edge;
    var $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$.slice, $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$ = $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $edge$$inline_3425_extend$$5$$, $pane$$44$$), $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ = 
    $JSCompiler_StaticMethods_getBufferEndSlice$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $edge$$inline_3425_extend$$5$$, $pane$$44$$);
    if ($delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ >= $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$) {
      $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = 30;
    } else {
      if ($databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ = $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$) ? $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$.extent : 1, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ = 
      $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ + $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ <= $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$) {
        $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = -30;
      } else {
        if ($delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = Math.max($delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$, $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$), $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ = Math.min($databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$, $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$), 
        $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ = $JSCompiler_StaticMethods_getSlicePosition$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $edge$$inline_3425_extend$$5$$, $pane$$44$$, $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$), $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$ = $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$.position, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ == 
        $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ + 1 ? ($delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$.size, $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ = $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$ + $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$) : ($bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ = 
        $JSCompiler_StaticMethods_getSlicePosition$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, $edge$$inline_3425_extend$$5$$, $pane$$44$$, $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$), $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ = $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$.position, $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = 
        $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ - $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$), $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ = $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$.$_ptUtils$.$_databodyScrollersByEdgeAndPane$[$edge$$inline_3425_extend$$5$$][$pane$$44$$], $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$ = 
        $edge$$inline_3425_extend$$5$$ ? $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$._usableHeight : $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$._usableWidth, $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ <= $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$) {
          if (0 > $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$) {
            $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$;
          } else {
            if ($bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ > $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$) {
              $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ - $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$;
            } else {
              break a;
            }
          }
        } else {
          if ($bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ < $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$) {
            $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = $bufferEndSlice$$inline_3428_endPos$$inline_3435_sliceInfo$$inline_3432$$ - $databodySize$$inline_3437_extent$$inline_3430_newCellInfo$$4_nextSlice$$inline_3431_scroller$$inline_3436$$;
          } else {
            if (0 < $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$) {
              $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$ = $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$;
            } else {
              break a;
            }
          }
        }
      }
    }
    $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$ = $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$.$_ptUtils$.$getScrollPos$($edge$$inline_3425_extend$$5$$, $pane$$44$$);
    $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$.$__logEnabled$ && $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$, "scrollToHeaderCell calling setScrollPos(" + $edge$$inline_3425_extend$$5$$ + ", " + $pane$$44$$ + ", " + ($bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$ + $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$) + ", true)");
    $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$.$_ptUtils$.setScrollPos($edge$$inline_3425_extend$$5$$, $pane$$44$$, $bufferStartSlice$$inline_3427_scrollPos$$inline_3438_startPos$$inline_3433$$ + $delta$$inline_3429_size$$inline_3434_slice$$inline_3426$$, !0);
    $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$self$$.$HandleDomScroll$(0, null);
  }
}
function $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_setSelectionProperty$self$$, $selection$$4$$) {
  $JSCompiler_StaticMethods_setSelectionProperty$self$$.getComponent().setProperty(AdfRichPivotTable.$__SELECTION_KEY$, $selection$$4$$);
  $JSCompiler_StaticMethods_setSelectionProperty$self$$.$selectionChangedSinceLastCmRequest$ = !0;
}
function $JSCompiler_StaticMethods_initializeFocusCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $selection$$8$$) {
  var $dataCellIndex$$6_selectedEdge$$2$$ = $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $selection$$8$$), $alreadySetSelection$$1$$ = !1;
  null == $JSCompiler_StaticMethods_initializeFocusCell$self$$.$_focusCellIndex$ ? null == $dataCellIndex$$6_selectedEdge$$2$$ ? ($dataCellIndex$$6_selectedEdge$$2$$ = $JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$$($JSCompiler_StaticMethods_initializeFocusCell$self$$), $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $dataCellIndex$$6_selectedEdge$$2$$, !0), $alreadySetSelection$$1$$ = !0) : $dataCellIndex$$6_selectedEdge$$2$$ == AdfPivotTableUtils.$DATABODY$ ? 
  $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $JSCompiler_StaticMethods_initializeFocusCell$self$$.$_selectionAnchor$.startIndex, void 0, !0, $selection$$8$$) : $JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $selection$$8$$, $dataCellIndex$$6_selectedEdge$$2$$) : null == $dataCellIndex$$6_selectedEdge$$2$$ ? $JSCompiler_StaticMethods_getEdge$$($JSCompiler_StaticMethods_initializeFocusCell$self$$.$_focusCellIndex$) == 
  AdfPivotTableUtils.$DATABODY$ ? ($dataCellIndex$$6_selectedEdge$$2$$ = $JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$$($JSCompiler_StaticMethods_initializeFocusCell$self$$), $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $dataCellIndex$$6_selectedEdge$$2$$, !0), $alreadySetSelection$$1$$ = !0) : $JSCompiler_StaticMethods_isHeaderCellIndexValid$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $JSCompiler_StaticMethods_initializeFocusCell$self$$.$_focusCellIndex$) ? 
  $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, !1, $selection$$8$$) : ($dataCellIndex$$6_selectedEdge$$2$$ = $JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$$($JSCompiler_StaticMethods_initializeFocusCell$self$$), $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $dataCellIndex$$6_selectedEdge$$2$$, !0), $alreadySetSelection$$1$$ = !0) : $dataCellIndex$$6_selectedEdge$$2$$ == AdfPivotTableUtils.$DATABODY$ ? 
  $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $JSCompiler_StaticMethods_initializeFocusCell$self$$.$_selectionAnchor$.startIndex, void 0, !0, $selection$$8$$) : $JSCompiler_StaticMethods_getEdge$$($JSCompiler_StaticMethods_initializeFocusCell$self$$.$_focusCellIndex$) == AdfPivotTableUtils.$DATABODY$ ? $JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $selection$$8$$, $dataCellIndex$$6_selectedEdge$$2$$) : 
  $JSCompiler_StaticMethods_isHeaderCellIndexValid$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $JSCompiler_StaticMethods_initializeFocusCell$self$$.$_focusCellIndex$) ? $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, !1, $selection$$8$$) : $JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$$($JSCompiler_StaticMethods_initializeFocusCell$self$$, $selection$$8$$, $dataCellIndex$$6_selectedEdge$$2$$);
  $JSCompiler_StaticMethods_initializeFocusCell$self$$.$_focusCellNeedsInit$ = !1;
  return $alreadySetSelection$$1$$;
}
function $JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$$($JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$self$$, $selection$$9$$, $selectedEdge$$3$$) {
  var $currentRange$$3$$ = $JSCompiler_StaticMethods_getCurrentRange$$($JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$self$$, $selection$$9$$), $endIndex$$4$$ = $JSCompiler_StaticMethods_getEndIndex$$($currentRange$$3$$), $hci1$$inline_3440$$ = $JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$self$$.$_selectionAnchor$.startIndex;
  null != $hci1$$inline_3440$$ && null != $endIndex$$4$$ && $JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$self$$.$_selectionAnchor$.startIndex.edge == $selectedEdge$$3$$ && $hci1$$inline_3440$$.layer == $endIndex$$4$$.layer && $hci1$$inline_3440$$.slice == $endIndex$$4$$.slice ? $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$self$$, $currentRange$$3$$.startIndex, $selectedEdge$$3$$, !0, $selection$$9$$) : $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_setFocusCellToCurrentRangeEndpoint$self$$, 
  $endIndex$$4$$, $selectedEdge$$3$$, !0, $selection$$9$$);
}
function $JSCompiler_StaticMethods_highlightSelection$$($JSCompiler_StaticMethods_highlightSelection$self$$, $unhighlight$$, $newBlocks$$3$$) {
  var $selection$$10$$ = $JSCompiler_StaticMethods_highlightSelection$self$$.getSelection();
  $JSCompiler_StaticMethods_highlightSetOfCellRanges$$($JSCompiler_StaticMethods_highlightSelection$self$$, $selection$$10$$.columnHeaderCells, AdfPivotTableUtils.$COLUMN_EDGE$, $unhighlight$$, $newBlocks$$3$$);
  $JSCompiler_StaticMethods_highlightSetOfCellRanges$$($JSCompiler_StaticMethods_highlightSelection$self$$, $selection$$10$$.rowHeaderCells, AdfPivotTableUtils.$ROW_EDGE$, $unhighlight$$, $newBlocks$$3$$);
  $JSCompiler_StaticMethods_highlightSetOfCellRanges$$($JSCompiler_StaticMethods_highlightSelection$self$$, $selection$$10$$.dataCells, AdfPivotTableUtils.$DATABODY$, $unhighlight$$, $newBlocks$$3$$);
}
function $JSCompiler_StaticMethods_highlightSetOfCellRanges$$($JSCompiler_StaticMethods_highlightSetOfCellRanges$self$$, $set$$2$$, $edge$$79$$, $highlightType$$2_unhighlight$$1$$, $newBlocks$$4$$) {
  $highlightType$$2_unhighlight$$1$$ = $highlightType$$2_unhighlight$$1$$ ? AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$ : AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$;
  for (var $i$$186$$ = 0;$i$$186$$ < $set$$2$$.length;++$i$$186$$) {
    $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_highlightSetOfCellRanges$self$$, $set$$2$$[$i$$186$$], $edge$$79$$, $highlightType$$2_unhighlight$$1$$, !1, $newBlocks$$4$$);
  }
}
function $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_highlightCellRange$self$$, $nodes$$17_range$$15$$, $edge$$80$$, $highlightType$$3$$, $checkFirst_oldNodes$$, $newBlocks$$5$$, $selection$$11$$) {
  var $selected$$3$$;
  if ($checkFirst_oldNodes$$) {
    switch($highlightType$$3$$) {
      case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$:
        $selected$$3$$ = !1;
        break;
      case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$:
        $selected$$3$$ = !0;
        break;
      case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED$:
      ;
      case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED_AND_SELECTED$:
        $selected$$3$$ = void 0;
        break;
      default:
        AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected highlightType in highlightCellRange");
    }
  } else {
    $selected$$3$$ = void 0;
  }
  var $isHeader$$2$$ = $edge$$80$$ != AdfPivotTableUtils.$DATABODY$;
  $checkFirst_oldNodes$$ = $isHeader$$2$$ && $newBlocks$$5$$ ? [] : void 0;
  $nodes$$17_range$$15$$ = $isHeader$$2$$ ? $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$($JSCompiler_StaticMethods_highlightCellRange$self$$, $nodes$$17_range$$15$$, $edge$$80$$, $selected$$3$$, $checkFirst_oldNodes$$, $selection$$11$$) : $JSCompiler_StaticMethods_getNodesInDataCellRange$$($JSCompiler_StaticMethods_highlightCellRange$self$$, $nodes$$17_range$$15$$, $selected$$3$$, $newBlocks$$5$$, $selection$$11$$);
  $JSCompiler_StaticMethods_highlightCells$$($JSCompiler_StaticMethods_highlightCellRange$self$$, $nodes$$17_range$$15$$, $highlightType$$3$$, $edge$$80$$, $checkFirst_oldNodes$$);
}
function $JSCompiler_StaticMethods_highlightCells$$($JSCompiler_StaticMethods_highlightCells$self$$, $cells$$3$$, $highlightType$$4$$, $edge$$81$$, $oldCells$$) {
  var $className$$11$$, $removedClassName1$$, $removedClassName2$$;
  switch($highlightType$$4$$) {
    case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$:
      switch($edge$$81$$) {
        case AdfPivotTableUtils.$COLUMN_EDGE$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_SELECTED_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_FOCUSED_STYLE$);
          break;
        case AdfPivotTableUtils.$ROW_EDGE$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_SELECTED_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_FOCUSED_STYLE$);
          break;
        case AdfPivotTableUtils.$DATABODY$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_SELECTED_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_FOCUSED_STYLE$);
          break;
        default:
          AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected edge in highlightCells");
      }
      break;
    case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$:
      switch($edge$$81$$) {
        case AdfPivotTableUtils.$COLUMN_EDGE$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_SELECTED_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_FOCUSED_STYLE$);
          break;
        case AdfPivotTableUtils.$ROW_EDGE$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_SELECTED_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_FOCUSED_STYLE$);
          break;
        case AdfPivotTableUtils.$DATABODY$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_SELECTED_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_FOCUSED_STYLE$);
          break;
        default:
          AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected edge in highlightCells");
      }
      break;
    case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED$:
    ;
    case AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED_AND_SELECTED$:
      switch($edge$$81$$) {
        case AdfPivotTableUtils.$COLUMN_EDGE$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_FOCUSED_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$COLUMN_HEADER_CELL_SELECTED_STYLE$);
          break;
        case AdfPivotTableUtils.$ROW_EDGE$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_FOCUSED_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$ROW_HEADER_CELL_SELECTED_STYLE$);
          break;
        case AdfPivotTableUtils.$DATABODY$:
          $className$$11$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_FOCUSED_STYLE$);
          $removedClassName1$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_STYLE$);
          $removedClassName2$$ = $JSCompiler_StaticMethods_highlightCells$self$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_SELECTED_STYLE$);
          break;
        default:
          AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected edge in highlightCells");
      }
      break;
    default:
      AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected highlightType in highlightCells");
  }
  var $cell$$39$$;
  if ($edge$$81$$ == AdfPivotTableUtils.$DATABODY$) {
    for (var $i$$187$$ = 0;$i$$187$$ < $cells$$3$$.length;++$i$$187$$) {
      $cell$$39$$ = $cells$$3$$[$i$$187$$], $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$39$$, $removedClassName1$$), $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$39$$, $removedClassName2$$), $JSCompiler_StaticMethods_appendCSSClassName$$($cell$$39$$, $className$$11$$), $JSCompiler_StaticMethods__highlightOneCell$$($cell$$39$$, $highlightType$$4$$, $edge$$81$$);
    }
  } else {
    for (var $newSelectedStatus$$ = $highlightType$$4$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$ || $highlightType$$4$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED_AND_SELECTED$, $newOnly$$ = null != $oldCells$$, $i$$187$$ = 0;$i$$187$$ < $cells$$3$$.length;++$i$$187$$) {
      $cell$$39$$ = $cells$$3$$[$i$$187$$];
      var $oldSelectedStatus$$ = "true" == AdfAgent.AGENT.getAttribute($cell$$39$$, "_selected");
      ($newOnly$$ || $oldSelectedStatus$$ ^ $newSelectedStatus$$) && $JSCompiler_StaticMethods_highlightDataSlices$$($JSCompiler_StaticMethods_highlightCells$self$$, $edge$$81$$, $cell$$39$$, !$newSelectedStatus$$, $newOnly$$);
      $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$39$$, $removedClassName1$$);
      $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$39$$, $removedClassName2$$);
      $JSCompiler_StaticMethods_appendCSSClassName$$($cell$$39$$, $className$$11$$);
      $JSCompiler_StaticMethods__highlightOneCell$$($cell$$39$$, $highlightType$$4$$, $edge$$81$$);
      AdfAgent.AGENT.setAttribute($cell$$39$$, "_selected", String($newSelectedStatus$$));
    }
    if ($newOnly$$) {
      for ($i$$187$$ = 0;$i$$187$$ < $oldCells$$.length;++$i$$187$$) {
        $cell$$39$$ = $oldCells$$[$i$$187$$], $JSCompiler_StaticMethods_highlightDataSlices$$($JSCompiler_StaticMethods_highlightCells$self$$, $edge$$81$$, $cell$$39$$, !$newSelectedStatus$$, $newOnly$$);
      }
    }
  }
}
function $JSCompiler_StaticMethods__highlightOneCell$$($cell$$41$$, $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$, $edge$$83_g$$inline_3460$$) {
  var $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$;
  ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = null != $cell$$41$$ && null != $cell$$41$$.style && null != $cell$$41$$.style.backgroundColor) && !($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = "" != $cell$$41$$.style.backgroundColor) && ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = $cell$$41$$[AdfDhtmlPivotTablePeer.$BACKGROUND_COLOR_NEEDS_RESTORING$], 
  null == $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ && ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = AdfAgent.AGENT.getAttribute($cell$$41$$, AdfDhtmlPivotTablePeer.$BACKGROUND_COLOR_NEEDS_RESTORING$)), $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = null != $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$);
  if ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$) {
    $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = $cell$$41$$[AdfDhtmlPivotTablePeer.$ORIGINAL_COLOR$];
    null == $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ && ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = AdfAgent.AGENT.getAttribute($cell$$41$$, AdfDhtmlPivotTablePeer.$ORIGINAL_COLOR$));
    if (null == $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$) {
      $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = $cell$$41$$.style.backgroundColor;
      $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$.replace(AdfDhtmlPivotTablePeer.$_WHITESPACE_REGEXP$, "").toUpperCase();
      if (0 == $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$.indexOf("RGB")) {
        $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = "rgb" + $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$.substring(3);
      } else {
        if (0 != $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$.indexOf("#")) {
          var $green$$inline_3455_mappedColor$$inline_3449$$ = AdfDhtmlPivotTablePeer.$_NAMED_COLOR_MAP$[$JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$];
          $green$$inline_3455_mappedColor$$inline_3449$$ && ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = $green$$inline_3455_mappedColor$$inline_3449$$);
        }
      }
      $cell$$41$$[AdfDhtmlPivotTablePeer.$ORIGINAL_COLOR$] = $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$;
    }
    if ($JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$) {
      $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ = $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$;
    } else {
      var $chnls$$inline_3457_color$$inline_3451$$ = $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$, $red$$inline_3454$$ = -1;
      $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = $green$$inline_3455_mappedColor$$inline_3449$$ = -1;
      7 == $chnls$$inline_3457_color$$inline_3451$$.length && "#" == $chnls$$inline_3457_color$$inline_3451$$.charAt(0) ? ($red$$inline_3454$$ = parseInt($chnls$$inline_3457_color$$inline_3451$$.substring(1, 3), 16), $green$$inline_3455_mappedColor$$inline_3449$$ = parseInt($chnls$$inline_3457_color$$inline_3451$$.substring(3, 5), 16), $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = parseInt($chnls$$inline_3457_color$$inline_3451$$.substring(5, 
      7), 16)) : 0 == $chnls$$inline_3457_color$$inline_3451$$.indexOf("rgb(") && ($chnls$$inline_3457_color$$inline_3451$$ = $chnls$$inline_3457_color$$inline_3451$$.match(AdfDhtmlPivotTablePeer.$_DIGIT_REGEXP$), null != $chnls$$inline_3457_color$$inline_3451$$ && 2 < $chnls$$inline_3457_color$$inline_3451$$.length && ($red$$inline_3454$$ = $chnls$$inline_3457_color$$inline_3451$$[0] - 0, $green$$inline_3455_mappedColor$$inline_3449$$ = $chnls$$inline_3457_color$$inline_3451$$[1] - 0, $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = 
      $chnls$$inline_3457_color$$inline_3451$$[2] - 0));
      if (0 <= $red$$inline_3454$$ && 0 <= $green$$inline_3455_mappedColor$$inline_3449$$ && 0 <= $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ && 256 > $red$$inline_3454$$ && 256 > $green$$inline_3455_mappedColor$$inline_3449$$ && 256 > $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$) {
        if ($edge$$83_g$$inline_3460$$ == AdfPivotTableUtils.$DATABODY$ && 255 == $red$$inline_3454$$ && 255 == $green$$inline_3455_mappedColor$$inline_3449$$ && 255 == $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$) {
          $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ = "";
        } else {
          var $b$$inline_3461_darkFactor$$inline_3458$$;
          $edge$$83_g$$inline_3460$$ == AdfPivotTableUtils.$DATABODY$ ? $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED$ || $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED_AND_SELECTED$ ? $b$$inline_3461_darkFactor$$inline_3458$$ = .9 : $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$ && ($b$$inline_3461_darkFactor$$inline_3458$$ = 
          .8) : $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED$ || $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED_AND_SELECTED$ ? $b$$inline_3461_darkFactor$$inline_3458$$ = .5 : $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ == AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$ && ($b$$inline_3461_darkFactor$$inline_3458$$ = .8);
          0 == $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ && 0 == $red$$inline_3454$$ && 0 == $green$$inline_3455_mappedColor$$inline_3449$$ && ($red$$inline_3454$$ = $green$$inline_3455_mappedColor$$inline_3449$$ = $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = 200);
          $red$$inline_3454$$ = Math.round($red$$inline_3454$$ * $b$$inline_3461_darkFactor$$inline_3458$$);
          $green$$inline_3455_mappedColor$$inline_3449$$ = Math.round($green$$inline_3455_mappedColor$$inline_3449$$ * $b$$inline_3461_darkFactor$$inline_3458$$);
          $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ = Math.round($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ * $b$$inline_3461_darkFactor$$inline_3458$$);
          75 > $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ && 75 > $red$$inline_3454$$ && 75 > $green$$inline_3455_mappedColor$$inline_3449$$ ? ($JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$ += 100 * $b$$inline_3461_darkFactor$$inline_3458$$, $red$$inline_3454$$ += 100 * $b$$inline_3461_darkFactor$$inline_3458$$) : 30 > $red$$inline_3454$$ + $green$$inline_3455_mappedColor$$inline_3449$$ && 
          ($red$$inline_3454$$ += 100 * $b$$inline_3461_darkFactor$$inline_3458$$);
          $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ = $red$$inline_3454$$.toString(16).toUpperCase();
          1 == $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$.length && ($JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ = "0" + $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$);
          $edge$$83_g$$inline_3460$$ = $green$$inline_3455_mappedColor$$inline_3449$$.toString(16).toUpperCase();
          1 == $edge$$83_g$$inline_3460$$.length && ($edge$$83_g$$inline_3460$$ = "0" + $edge$$83_g$$inline_3460$$);
          $b$$inline_3461_darkFactor$$inline_3458$$ = $JSCompiler_temp$$108_JSCompiler_temp$$109_blue$$inline_3456_color$$inline_3448_retVal$$inline_3446_savedColor$$.toString(16).toUpperCase();
          1 == $b$$inline_3461_darkFactor$$inline_3458$$.length && ($b$$inline_3461_darkFactor$$inline_3458$$ = "0" + $b$$inline_3461_darkFactor$$inline_3458$$);
          $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ = "#" + $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ + $edge$$83_g$$inline_3460$$ + $b$$inline_3461_darkFactor$$inline_3458$$;
        }
      } else {
        $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ = null;
      }
    }
    null != $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ && ($cell$$41$$.style.backgroundColor = $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$, "" == $JSCompiler_temp$$107_highlightType$$5_newColor_r$$inline_3459$$ && ($cell$$41$$[AdfDhtmlPivotTablePeer.$BACKGROUND_COLOR_NEEDS_RESTORING$] = "t"));
  }
}
function $JSCompiler_StaticMethods_highlightDataSlices$$($JSCompiler_StaticMethods_highlightDataSlices$self$$, $edge$$84$$, $cell$$42_endSlice$$, $unhighlight$$2$$, $newOnly$$1$$) {
  var $localStartSlice$$inline_3466_s$$13_startSlice$$5$$;
  $localStartSlice$$inline_3466_s$$13_startSlice$$5$$ = $edge$$84$$ ? $cell$$42_endSlice$$.parentNode.rowIndex - 1 : AdfAgent.AGENT.getIntAttribute($cell$$42_endSlice$$, "_iCol", 0);
  var $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$ = $JSCompiler_StaticMethods_getParentBlock$$($JSCompiler_StaticMethods_highlightDataSlices$self$$, $cell$$42_endSlice$$), $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$ = AdfAgent.AGENT.getIntAttribute($JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$, 
  "_startSlice");
  $localStartSlice$$inline_3466_s$$13_startSlice$$5$$ += $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$;
  for ($cell$$42_endSlice$$ = $localStartSlice$$inline_3466_s$$13_startSlice$$5$$ + ($edge$$84$$ ? $cell$$42_endSlice$$.rowSpan : $cell$$42_endSlice$$.colSpan);$localStartSlice$$inline_3466_s$$13_startSlice$$5$$ < $cell$$42_endSlice$$;$localStartSlice$$inline_3466_s$$13_startSlice$$5$$++) {
    var $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$ = $JSCompiler_StaticMethods_highlightDataSlices$self$$, $edge$$inline_3471$$ = $edge$$84$$, $slice$$inline_3472$$ = $localStartSlice$$inline_3466_s$$13_startSlice$$5$$, $newOnly$$inline_3474$$ = $newOnly$$1$$, $styleClass$$inline_3475$$ = void 0, $removedClassName1$$inline_3476$$ = void 0, $removedClassName2$$inline_3477$$ = void 0, $highlightType$$inline_3478$$ = void 0;
    $unhighlight$$2$$ ? ($styleClass$$inline_3475$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_STYLE$), $removedClassName1$$inline_3476$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_SELECTED_STYLE$), $removedClassName2$$inline_3477$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_FOCUSED_STYLE$), 
    $highlightType$$inline_3478$$ = AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$) : ($styleClass$$inline_3475$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_SELECTED_STYLE$), $removedClassName1$$inline_3476$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_STYLE$), 
    $removedClassName2$$inline_3477$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_FOCUSED_STYLE$), $highlightType$$inline_3478$$ = AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$);
    for (var $pane$$inline_3479$$ = $slice$$inline_3472$$ < $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_ptUtils$.$_splitSlice$[$edge$$inline_3471$$] ? 0 : 1, $otherPane$$inline_3480$$ = $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_ptUtils$.$_startPane$[1 - $edge$$inline_3471$$];2 > $otherPane$$inline_3480$$;++$otherPane$$inline_3480$$) {
      for (var $databodyBuffer$$inline_3481$$ = $edge$$inline_3471$$ ? $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_ptUtils$.$_databodyBuffers$[$pane$$inline_3479$$][$otherPane$$inline_3480$$] : $JSCompiler_StaticMethods_highlightDataSlice$self$$inline_3470_block$$inline_3467_blockStartSlice$$inline_3468$$.$_ptUtils$.$_databodyBuffers$[$otherPane$$inline_3480$$][$pane$$inline_3479$$], $numBlockRows$$inline_3482$$ = $databodyBuffer$$inline_3481$$.length, 
      $r$$inline_3483$$ = 0;$r$$inline_3483$$ < $numBlockRows$$inline_3482$$;$r$$inline_3483$$++) {
        for (var $numBlockCols$$inline_3484$$ = $databodyBuffer$$inline_3481$$[$r$$inline_3483$$].length, $c$$inline_3485$$ = 0;$c$$inline_3485$$ < $numBlockCols$$inline_3484$$;$c$$inline_3485$$++) {
          var $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ = $databodyBuffer$$inline_3481$$[$r$$inline_3483$$][$c$$inline_3485$$];
          if ($block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ && (!$newOnly$$inline_3474$$ || $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$.$_new$)) {
            var $cell$$inline_3493_table$$inline_3487$$ = $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$.childNodes[0], $_row$$inline_3494_numRows$$inline_3489$$ = $cell$$inline_3493_table$$inline_3487$$.rows.length - 1, $_rows$$inline_3496_numCols$$inline_3490$$ = $cell$$inline_3493_table$$inline_3487$$.rows[0].cells.length - 1, $numSlices$$inline_3491_row$$inline_3497$$;
            $edge$$inline_3471$$ ? ($block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$, "_startRow"), $numSlices$$inline_3491_row$$inline_3497$$ = $_row$$inline_3494_numRows$$inline_3489$$) : ($block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$, 
            "_startCol"), $numSlices$$inline_3491_row$$inline_3497$$ = $_rows$$inline_3496_numCols$$inline_3490$$);
            if ($slice$$inline_3472$$ >= $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ && $slice$$inline_3472$$ < $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ + $numSlices$$inline_3491_row$$inline_3497$$) {
              if ($block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ = $slice$$inline_3472$$ - $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$, $edge$$inline_3471$$) {
                for ($_row$$inline_3494_numRows$$inline_3489$$ = $cell$$inline_3493_table$$inline_3487$$.rows[$block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ + 1], $block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ = 0;$block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ < $_rows$$inline_3496_numCols$$inline_3490$$;$block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$++) {
                  $cell$$inline_3493_table$$inline_3487$$ = $_row$$inline_3494_numRows$$inline_3489$$.cells[$block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ + 1], $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$inline_3493_table$$inline_3487$$, $removedClassName1$$inline_3476$$), $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$inline_3493_table$$inline_3487$$, $removedClassName2$$inline_3477$$), $JSCompiler_StaticMethods_appendCSSClassName$$($cell$$inline_3493_table$$inline_3487$$, 
                  $styleClass$$inline_3475$$), $JSCompiler_StaticMethods__highlightOneCell$$($cell$$inline_3493_table$$inline_3487$$, $highlightType$$inline_3478$$, AdfPivotTableUtils.$DATABODY$);
                }
              } else {
                for ($_rows$$inline_3496_numCols$$inline_3490$$ = $cell$$inline_3493_table$$inline_3487$$.rows, $numSlices$$inline_3491_row$$inline_3497$$ = 0;$numSlices$$inline_3491_row$$inline_3497$$ < $_row$$inline_3494_numRows$$inline_3489$$;$numSlices$$inline_3491_row$$inline_3497$$++) {
                  $cell$$inline_3493_table$$inline_3487$$ = $_rows$$inline_3496_numCols$$inline_3490$$[$numSlices$$inline_3491_row$$inline_3497$$ + 1].cells[$block$$inline_3486_col$$inline_3495_localSlice$$inline_3492_startSlice$$inline_3488$$ + 1], $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$inline_3493_table$$inline_3487$$, $removedClassName1$$inline_3476$$), $AdfDhtmlCommonUtils$$.$removeCSSClassName$($cell$$inline_3493_table$$inline_3487$$, $removedClassName2$$inline_3477$$), $JSCompiler_StaticMethods_appendCSSClassName$$($cell$$inline_3493_table$$inline_3487$$, 
                  $styleClass$$inline_3475$$), $JSCompiler_StaticMethods__highlightOneCell$$($cell$$inline_3493_table$$inline_3487$$, $highlightType$$inline_3478$$, AdfPivotTableUtils.$DATABODY$);
                }
              }
            }
          }
        }
      }
    }
  }
}
function $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_highlightFocusCell$self$$, $unhighlight$$4$$, $selection$$12$$) {
  if ($unhighlight$$4$$ || $JSCompiler_StaticMethods_containsFocus$$($JSCompiler_StaticMethods_highlightFocusCell$self$$.getDomElement())) {
    var $focusCellIndex$$7$$ = $JSCompiler_StaticMethods_highlightFocusCell$self$$.$_focusCellIndex$;
    if (null != $focusCellIndex$$7$$) {
      if ($JSCompiler_StaticMethods_isHeaderCellIndex$$($focusCellIndex$$7$$)) {
        var $nodes$$18_range$$16$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($focusCellIndex$$7$$), $nodes$$18_range$$16$$ = $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$($JSCompiler_StaticMethods_highlightFocusCell$self$$, $nodes$$18_range$$16$$, $focusCellIndex$$7$$.edge), $edge$$86$$ = $focusCellIndex$$7$$.edge
      } else {
        $nodes$$18_range$$16$$ = $JSCompiler_StaticMethods_newDataCellRange$$($focusCellIndex$$7$$), $nodes$$18_range$$16$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$$($JSCompiler_StaticMethods_highlightFocusCell$self$$, $nodes$$18_range$$16$$), $edge$$86$$ = AdfPivotTableUtils.$DATABODY$;
      }
      highlightType = $unhighlight$$4$$ ? $JSCompiler_StaticMethods_highlightFocusCell$self$$.isSelected($focusCellIndex$$7$$, $selection$$12$$) ? AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$ : AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$ : $JSCompiler_StaticMethods_highlightFocusCell$self$$.isSelected($focusCellIndex$$7$$, $selection$$12$$) ? AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED_AND_SELECTED$ : AdfDhtmlPivotTablePeer.$HIGHLIGHTING_FOCUSED$;
      $JSCompiler_StaticMethods_highlightCells$$($JSCompiler_StaticMethods_highlightFocusCell$self$$, $nodes$$18_range$$16$$, highlightType, $edge$$86$$);
    }
  }
}
function $JSCompiler_StaticMethods_selectAndFocusHeaderCell$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, $headerCellIndex$$3$$) {
  $JSCompiler_StaticMethods_highlightSelection$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, !0);
  var $selection$$13$$ = $JSCompiler_StaticMethods_newSelection$$(), $range$$17$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($headerCellIndex$$3$$);
  $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, $headerCellIndex$$3$$.edge, $selection$$13$$).push($range$$17$$);
  $JSCompiler_StaticMethods_setAnchorCell$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, $headerCellIndex$$3$$);
  $JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$.$_selectionAnchorSelected$ = !0;
  $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, $headerCellIndex$$3$$, null, !1, $selection$$13$$);
  $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, $selection$$13$$);
  $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_selectAndFocusHeaderCell$self$$, $selection$$13$$);
}
function $JSCompiler_StaticMethods_extendHeaderSelection$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $headerCellIndex$$4$$, $focus$$3$$) {
  var $legalCell$$ = !0, $changeSelection$$ = !0, $anchorRange$$1_endIndexesMatch_set$$4$$ = $JSCompiler_StaticMethods_extendHeaderSelection$self$$.$_selectionAnchor$;
  if (null == $anchorRange$$1_endIndexesMatch_set$$4$$) {
    $changeSelection$$ = $legalCell$$ = !1;
  } else {
    var $anchorCell$$1$$ = $anchorRange$$1_endIndexesMatch_set$$4$$.startIndex, $edge$$87$$ = $JSCompiler_StaticMethods_getEdge$$($anchorCell$$1$$);
    if ($edge$$87$$ != $headerCellIndex$$4$$.edge || $anchorCell$$1$$.layer != $headerCellIndex$$4$$.layer) {
      $changeSelection$$ = $legalCell$$ = !1;
    }
  }
  if ($legalCell$$) {
    var $newRange$$1$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($anchorCell$$1$$, $headerCellIndex$$4$$, $anchorRange$$1_endIndexesMatch_set$$4$$.startKey, null, !0), $anchorRange$$1_endIndexesMatch_set$$4$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $edge$$87$$), $currentRange$$4$$;
    0 < $anchorRange$$1_endIndexesMatch_set$$4$$.length && $JSCompiler_StaticMethods_extendHeaderSelection$self$$.$_selectionAnchorSelected$ && ($currentRange$$4$$ = $anchorRange$$1_endIndexesMatch_set$$4$$[$anchorRange$$1_endIndexesMatch_set$$4$$.length - 1], $anchorRange$$1_endIndexesMatch_set$$4$$ = $currentRange$$4$$.endIndex ? $newRange$$1$$.endIndex && $currentRange$$4$$.endIndex.slice == $newRange$$1$$.endIndex.slice : null == $newRange$$1$$.endIndex, $currentRange$$4$$.startIndex.slice == 
    $newRange$$1$$.startIndex.slice && $anchorRange$$1_endIndexesMatch_set$$4$$ && ($changeSelection$$ = !1));
  }
  if ($changeSelection$$) {
    var $selection$$14$$ = $JSCompiler_StaticMethods_copySelection$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$), $anchorRange$$1_endIndexesMatch_set$$4$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $edge$$87$$, $selection$$14$$);
    $currentRange$$4$$ && ($currentRange$$4$$ = $anchorRange$$1_endIndexesMatch_set$$4$$.pop());
    $anchorRange$$1_endIndexesMatch_set$$4$$.push($newRange$$1$$);
    $JSCompiler_StaticMethods_extendHeaderSelection$self$$.$_selectionAnchorSelected$ = !0;
    $currentRange$$4$$ && $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $currentRange$$4$$, $edge$$87$$, AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$, !0, void 0, $selection$$14$$);
    $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $newRange$$1$$, $edge$$87$$, AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$, !1, void 0, $selection$$14$$);
  }
  !0 === $focus$$3$$ || $focus$$3$$ === AdfPivotTableUtils.$MAYBE$ && $legalCell$$ ? $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $headerCellIndex$$4$$, null, !1, $selection$$14$$) : $changeSelection$$ && $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, !1, $selection$$14$$);
  $changeSelection$$ && ($JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $selection$$14$$), $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_extendHeaderSelection$self$$, $selection$$14$$));
  return $legalCell$$;
}
function $JSCompiler_StaticMethods_extendDatabodySelection$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, $dataCellIndex$$7$$) {
  var $anchorRange$$2_newRange$$2$$ = $JSCompiler_StaticMethods_extendDatabodySelection$self$$.$_selectionAnchor$;
  if (null != $anchorRange$$2_newRange$$2$$) {
    var $anchorCell$$2_currentRange$$5$$ = $anchorRange$$2_newRange$$2$$.startIndex;
    if ($JSCompiler_StaticMethods_getEdge$$($anchorCell$$2_currentRange$$5$$) == AdfPivotTableUtils.$DATABODY$) {
      var $anchorRange$$2_newRange$$2$$ = $JSCompiler_StaticMethods_newDataCellRange$$($anchorCell$$2_currentRange$$5$$, $dataCellIndex$$7$$, $anchorRange$$2_newRange$$2$$.startKey, null, !0), $endIndexesMatch$$1_set$$5$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, AdfPivotTableUtils.$DATABODY$), $anchorCell$$2_currentRange$$5$$ = $endIndexesMatch$$1_set$$5$$[$endIndexesMatch$$1_set$$5$$.length - 1], $endIndexesMatch$$1_set$$5$$ = $anchorCell$$2_currentRange$$5$$.endIndex ? 
      $anchorRange$$2_newRange$$2$$.endIndex && $anchorCell$$2_currentRange$$5$$.endIndex.row == $anchorRange$$2_newRange$$2$$.endIndex.row && $anchorCell$$2_currentRange$$5$$.endIndex.$column$ == $anchorRange$$2_newRange$$2$$.endIndex.$column$ : null == $anchorRange$$2_newRange$$2$$.endIndex;
      if ($anchorCell$$2_currentRange$$5$$.startIndex.row != $anchorRange$$2_newRange$$2$$.startIndex.row || $anchorCell$$2_currentRange$$5$$.startIndex.$column$ != $anchorRange$$2_newRange$$2$$.startIndex.$column$ || !$endIndexesMatch$$1_set$$5$$) {
        var $selection$$15$$ = $JSCompiler_StaticMethods_copySelection$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$), $endIndexesMatch$$1_set$$5$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, AdfPivotTableUtils.$DATABODY$, $selection$$15$$), $anchorCell$$2_currentRange$$5$$ = $endIndexesMatch$$1_set$$5$$.pop();
        $endIndexesMatch$$1_set$$5$$.push($anchorRange$$2_newRange$$2$$);
        $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, $anchorCell$$2_currentRange$$5$$, AdfPivotTableUtils.$DATABODY$, AdfDhtmlPivotTablePeer.$HIGHLIGHTING_NORMAL$, !0, void 0, $selection$$15$$);
        $JSCompiler_StaticMethods_highlightCellRange$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, $anchorRange$$2_newRange$$2$$, AdfPivotTableUtils.$DATABODY$, AdfDhtmlPivotTablePeer.$HIGHLIGHTING_SELECTED$, !1, void 0, $selection$$15$$);
        $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, !1, $selection$$15$$);
        $JSCompiler_StaticMethods_extendDatabodySelection$self$$.$_selectionFrontier$ = $dataCellIndex$$7$$;
        $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, $selection$$15$$);
        $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_extendDatabodySelection$self$$, $selection$$15$$);
      }
    }
  }
}
function $JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $headerCellIndex$$5$$, $changeSelection$$1_isMobile_selection$$16$$) {
  var $edge$$89$$ = $headerCellIndex$$5$$.edge, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ = $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$), $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ = null == $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ || $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ == 
  $edge$$89$$ && $JSCompiler_StaticMethods_getLayerOfSelection$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$) == $headerCellIndex$$5$$.layer;
  $changeSelection$$1_isMobile_selection$$16$$ ? ($changeSelection$$1_isMobile_selection$$16$$ = !0, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ = !$clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$) : ($changeSelection$$1_isMobile_selection$$16$$ = $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ = 
  !1);
  if ($changeSelection$$1_isMobile_selection$$16$$) {
    $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ ? ($JSCompiler_StaticMethods_highlightSelection$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, !0), $changeSelection$$1_isMobile_selection$$16$$ = $JSCompiler_StaticMethods_newSelection$$()) : $changeSelection$$1_isMobile_selection$$16$$ = $JSCompiler_StaticMethods_copySelection$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$);
    $JSCompiler_StaticMethods_setAnchorCell$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $headerCellIndex$$5$$);
    for (var $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ = $headerCellIndex$$5$$.edge, $layer$$inline_3503_range$$18$$ = $headerCellIndex$$5$$.layer, $slice$$inline_3504$$ = $headerCellIndex$$5$$.slice, $set$$inline_3505$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$, $changeSelection$$1_isMobile_selection$$16$$), 
    $foundIt$$inline_3506$$ = !1, $i$$inline_3507$$ = $set$$inline_3505$$.length - 1;0 <= $i$$inline_3507$$;--$i$$inline_3507$$) {
      var $newRange$$inline_3514_range$$inline_3508$$ = $set$$inline_3505$$[$i$$inline_3507$$];
      if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($newRange$$inline_3514_range$$inline_3508$$)) {
        var $startIndex$$inline_3509$$ = $newRange$$inline_3514_range$$inline_3508$$.startIndex;
        if ($startIndex$$inline_3509$$.layer == $layer$$inline_3503_range$$18$$ && !($startIndex$$inline_3509$$.slice > $slice$$inline_3504$$)) {
          var $endIndex$$inline_3511_testEndIndex$$inline_3510$$ = $newRange$$inline_3514_range$$inline_3508$$.endIndex;
          null == $endIndex$$inline_3511_testEndIndex$$inline_3510$$ && ($endIndex$$inline_3511_testEndIndex$$inline_3510$$ = $startIndex$$inline_3509$$);
          if (!($endIndex$$inline_3511_testEndIndex$$inline_3510$$.slice < $slice$$inline_3504$$)) {
            if ($foundIt$$inline_3506$$ = !0, $endIndex$$inline_3511_testEndIndex$$inline_3510$$ = $newRange$$inline_3514_range$$inline_3508$$.endIndex, null == $endIndex$$inline_3511_testEndIndex$$inline_3510$$) {
              $set$$inline_3505$$.splice($i$$inline_3507$$, 1);
            } else {
              if ($startIndex$$inline_3509$$.slice == $slice$$inline_3504$$) {
                $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $headerCellIndex$$5$$);
                var $newStartIndex$$inline_3512$$ = $JSCompiler_StaticMethods_walkLayer$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$, $layer$$inline_3503_range$$18$$, $slice$$inline_3504$$ + $headerCellIndex$$5$$.extent, !0);
                if (null == $newStartIndex$$inline_3512$$) {
                  break;
                }
                $set$$inline_3505$$[$i$$inline_3507$$] = $JSCompiler_StaticMethods_newHeaderCellRange$$($newStartIndex$$inline_3512$$, $endIndex$$inline_3511_testEndIndex$$inline_3510$$, null, $newRange$$inline_3514_range$$inline_3508$$.endKey);
              } else {
                if ($endIndex$$inline_3511_testEndIndex$$inline_3510$$.slice == $slice$$inline_3504$$) {
                  var $newEndIndex$$inline_3513$$ = $JSCompiler_StaticMethods_walkLayer$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$, $layer$$inline_3503_range$$18$$, $slice$$inline_3504$$ - 1, !1);
                  if (null == $newEndIndex$$inline_3513$$) {
                    break;
                  }
                  $set$$inline_3505$$[$i$$inline_3507$$] = $JSCompiler_StaticMethods_newHeaderCellRange$$($startIndex$$inline_3509$$, $newEndIndex$$inline_3513$$, $newRange$$inline_3514_range$$inline_3508$$.startKey, null);
                } else {
                  $newEndIndex$$inline_3513$$ = $JSCompiler_StaticMethods_walkLayer$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$, $layer$$inline_3503_range$$18$$, $slice$$inline_3504$$ - 1, !1);
                  if (null == $newEndIndex$$inline_3513$$) {
                    break;
                  }
                  $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $headerCellIndex$$5$$);
                  $newStartIndex$$inline_3512$$ = $JSCompiler_StaticMethods_walkLayer$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$, $layer$$inline_3503_range$$18$$, $slice$$inline_3504$$ + $headerCellIndex$$5$$.extent, !0);
                  if (null == $newStartIndex$$inline_3512$$) {
                    break;
                  }
                  $set$$inline_3505$$[$i$$inline_3507$$] = $JSCompiler_StaticMethods_newHeaderCellRange$$($startIndex$$inline_3509$$, $newEndIndex$$inline_3513$$, $newRange$$inline_3514_range$$inline_3508$$.startKey, null);
                  $newRange$$inline_3514_range$$inline_3508$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($newStartIndex$$inline_3512$$, $endIndex$$inline_3511_testEndIndex$$inline_3510$$, null, $newRange$$inline_3514_range$$inline_3508$$.endKey);
                  $set$$inline_3505$$.splice($i$$inline_3507$$ + 1, 0, $newRange$$inline_3514_range$$inline_3508$$);
                }
              }
            }
          }
        }
      }
    }
    ($clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$ = $foundIt$$inline_3506$$) ? $JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$.$_selectionAnchorSelected$ = !1 : ($layer$$inline_3503_range$$18$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($headerCellIndex$$5$$), $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $edge$$89$$, $changeSelection$$1_isMobile_selection$$16$$).push($layer$$inline_3503_range$$18$$), 
    $JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$.$_selectionAnchorSelected$ = !0);
    $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $headerCellIndex$$5$$, null, !1, $changeSelection$$1_isMobile_selection$$16$$);
    $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $changeSelection$$1_isMobile_selection$$16$$);
    $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_toggleHeaderSelectionAndFocus$self$$, $changeSelection$$1_isMobile_selection$$16$$);
    return !$clearSelection_edge$$inline_3502_selectedEdge$$4_selectionEmptyOrSameLayer_wasAlreadySelected$$;
  }
  return !1;
}
function $JSCompiler_StaticMethods_walkLayer$$($JSCompiler_StaticMethods_walkLayer$self$$, $edge$$91$$, $layer$$29$$, $slice$$15$$, $bForward$$) {
  for (;;) {
    var $hci$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_walkLayer$self$$, $edge$$91$$, $layer$$29$$, $slice$$15$$);
    if (null == $hci$$) {
      break;
    } else {
      if ($hci$$.layer == $layer$$29$$) {
        break;
      } else {
        $slice$$15$$ = $bForward$$ ? $slice$$15$$ + $hci$$.extent : $hci$$.slice - 1;
      }
    }
  }
  return $hci$$;
}
function $JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$$($JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$, $dataCellIndex$$8$$, $changeSelection$$2_isMobile$$1_range$$20$$) {
  var $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ = $JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$.getSelection(), $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ = 0 == $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$.columnHeaderCells.length && 0 == $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$.rowHeaderCells.length;
  $changeSelection$$2_isMobile$$1_range$$20$$ ? ($changeSelection$$2_isMobile$$1_range$$20$$ = !0, $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ = !$clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$) : ($changeSelection$$2_isMobile$$1_range$$20$$ = $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$, $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ = !1);
  $changeSelection$$2_isMobile$$1_range$$20$$ && ($clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ ? ($JSCompiler_StaticMethods_highlightSelection$$($JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$, !0), $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ = $JSCompiler_StaticMethods_newSelection$$()) : $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$ = $JSCompiler_StaticMethods_copySelection$$($JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$), 
  $changeSelection$$2_isMobile$$1_range$$20$$ = $JSCompiler_StaticMethods_newDataCellRange$$($dataCellIndex$$8$$), $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$.dataCells.push($changeSelection$$2_isMobile$$1_range$$20$$), $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$, $dataCellIndex$$8$$, null, !1, $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$), $JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$.$_selectionAnchor$ = 
  $JSCompiler_StaticMethods_newDataCellRange$$($dataCellIndex$$8$$), $JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$.$_selectionFrontier$ = $dataCellIndex$$8$$, $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$, $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$), $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_augmentDatabodySelectionAndFocus$self$$, $clearSelection$$1_selection$$18_selectionEmptyOrDatabody$$));
}
function $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_selectAndFocusDataCell$self$$, $dataCellIndex$$9$$, $dontUnhighlightOldFc$$) {
  $JSCompiler_StaticMethods_highlightSelection$$($JSCompiler_StaticMethods_selectAndFocusDataCell$self$$, !0);
  var $selection$$19$$ = $JSCompiler_StaticMethods_newSelection$$(), $range$$21$$ = $JSCompiler_StaticMethods_newDataCellRange$$($dataCellIndex$$9$$);
  $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_selectAndFocusDataCell$self$$, AdfPivotTableUtils.$DATABODY$, $selection$$19$$).push($range$$21$$);
  $JSCompiler_StaticMethods_selectAndFocusDataCell$self$$.$_selectionAnchor$ = $JSCompiler_StaticMethods_newDataCellRange$$($dataCellIndex$$9$$);
  $JSCompiler_StaticMethods_selectAndFocusDataCell$self$$.$_selectionFrontier$ = $dataCellIndex$$9$$;
  $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_selectAndFocusDataCell$self$$, $dataCellIndex$$9$$, void 0, $dontUnhighlightOldFc$$, $selection$$19$$);
  $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_selectAndFocusDataCell$self$$, $selection$$19$$);
  $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_selectAndFocusDataCell$self$$, $selection$$19$$);
}
function $JSCompiler_StaticMethods_setFocusCell$$($JSCompiler_StaticMethods_setFocusCell$self$$, $cellIndex$$8$$, $edge$$92$$, $dontUnhighlightOldFc$$1$$, $selection$$20$$) {
  $dontUnhighlightOldFc$$1$$ || null == $JSCompiler_StaticMethods_setFocusCell$self$$.$_focusCellIndex$ || $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_setFocusCell$self$$, !0, $selection$$20$$);
  $JSCompiler_StaticMethods_isHeaderCellIndex$$($cellIndex$$8$$) && null == $cellIndex$$8$$.edge && ($cellIndex$$8$$.edge = $edge$$92$$);
  $JSCompiler_StaticMethods_setFocusCell$self$$.$_focusCellIndex$ = $cellIndex$$8$$;
  $JSCompiler_StaticMethods_highlightFocusCell$$($JSCompiler_StaticMethods_setFocusCell$self$$, !1, $selection$$20$$);
  $JSCompiler_StaticMethods__setLabelledBy$$($JSCompiler_StaticMethods_setFocusCell$self$$, $cellIndex$$8$$);
}
function $JSCompiler_StaticMethods__setLabelledBy$$($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$, $cellIndex$$9_focusCellId$$, $focusCellNode$$, $stamps$$) {
  var $range$$22_stopLayer$$ = {startIndex:$cellIndex$$9_focusCellId$$}, $labelledby$$ = "";
  if ($JSCompiler_StaticMethods_isHeaderCellIndex$$($cellIndex$$9_focusCellId$$)) {
    edge = $cellIndex$$9_focusCellId$$.edge;
    $focusCellNode$$ = $focusCellNode$$ || $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$, $range$$22_stopLayer$$, edge)[0];
    if (!$focusCellNode$$) {
      return;
    }
    var $range$$22_stopLayer$$ = $cellIndex$$9_focusCellId$$.layer + 1, $slice$$16$$ = $cellIndex$$9_focusCellId$$.slice, $labelledby$$ = $labelledby$$ + $JSCompiler_StaticMethods__buildLabelledBy$$($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$, $range$$22_stopLayer$$, $slice$$16$$);
    $cellIndex$$9_focusCellId$$ = $focusCellNode$$.getAttribute("id");
  } else {
    $focusCellNode$$ = $focusCellNode$$ || $JSCompiler_StaticMethods_getNodesInDataCellRange$$($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$, $range$$22_stopLayer$$)[0];
    if (!$focusCellNode$$) {
      return;
    }
    for (edge = 1;0 <= edge;--edge) {
      $range$$22_stopLayer$$ = $JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$.$_ptUtils$.$_layerCount$[edge], $slice$$16$$ = edge ? $cellIndex$$9_focusCellId$$.row : $cellIndex$$9_focusCellId$$.column, $labelledby$$ += $JSCompiler_StaticMethods__buildLabelledBy$$($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$, $range$$22_stopLayer$$, $slice$$16$$);
    }
    $cellIndex$$9_focusCellId$$ = $focusCellNode$$.getAttribute("id");
    $labelledby$$ += $cellIndex$$9_focusCellId$$;
  }
  AdfAgent.AGENT.setAttribute($focusCellNode$$, "aria-labelledby", $labelledby$$);
  AdfAgent.AGENT.setAttribute($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$.$_ptUtils$.$_container$, "aria-activedescendant", $cellIndex$$9_focusCellId$$);
  $stamps$$ = $stamps$$ || $JSCompiler_StaticMethods__getInputElementsInNode$$($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$, $focusCellNode$$);
  for ($JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$ = 0;$JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$ < $stamps$$.length;++$JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$) {
    AdfAgent.AGENT.setAttribute($stamps$$[$JSCompiler_StaticMethods__setLabelledBy$self_i$$189$$], "aria-labelledby", $labelledby$$);
  }
}
function $JSCompiler_StaticMethods__buildLabelledBy$$($JSCompiler_StaticMethods__buildLabelledBy$self$$, $stopLayer$$1$$, $slice$$17$$) {
  for (var $edge$$93$$ = edge, $labelledby$$1$$ = "", $layer$$30$$ = 0;$layer$$30$$ < $stopLayer$$1$$;) {
    var $cellInfo$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods__buildLabelledBy$self$$, $edge$$93$$, $layer$$30$$, $slice$$17$$, !0);
    if (null == $cellInfo$$) {
      return "";
    }
    $labelledby$$1$$ += $cellInfo$$.cell.getAttribute("id");
    $labelledby$$1$$ += " ";
    $layer$$30$$ += $cellInfo$$.depth;
  }
  return $labelledby$$1$$;
}
function $JSCompiler_StaticMethods_setAnchorCell$$($JSCompiler_StaticMethods_setAnchorCell$self$$, $cellIndex$$10$$, $edge$$94$$, $cellKey$$10$$) {
  var $isHeaderCell$$ = $JSCompiler_StaticMethods_isHeaderCellIndex$$($cellIndex$$10$$);
  $isHeaderCell$$ && null == $cellIndex$$10$$.edge && ($cellIndex$$10$$.edge = $edge$$94$$);
  $JSCompiler_StaticMethods_setAnchorCell$self$$.$_selectionAnchor$ = $isHeaderCell$$ ? $JSCompiler_StaticMethods_newHeaderCellRange$$($cellIndex$$10$$, null, $cellKey$$10$$, null) : $JSCompiler_StaticMethods_newDataCellRange$$($cellIndex$$10$$, null, $cellKey$$10$$, null, !1);
}
function $JSCompiler_StaticMethods_displaySelectionInStatusBar$$($JSCompiler_StaticMethods_displaySelectionInStatusBar$self$$, $selection$$21$$) {
  var $contents$$inline_3517_text$$inline_3522$$ = $JSCompiler_StaticMethods_getSelectionStringsForStatusBar$$($JSCompiler_StaticMethods_displaySelectionInStatusBar$self$$, $selection$$21$$);
  if ($JSCompiler_StaticMethods_displaySelectionInStatusBar$self$$.$_ptUtils$.$_hasStatusBar$) {
    var $statusBarChildren$$inline_3518_textSpan$$inline_3520$$ = $JSCompiler_StaticMethods_displaySelectionInStatusBar$self$$.$_ptUtils$.$_statusBar$.childNodes, $labelSpan$$inline_3519$$ = $statusBarChildren$$inline_3518_textSpan$$inline_3520$$[0], $statusBarChildren$$inline_3518_textSpan$$inline_3520$$ = $statusBarChildren$$inline_3518_textSpan$$inline_3520$$[1], $label$$inline_3521$$ = $contents$$inline_3517_text$$inline_3522$$[0], $contents$$inline_3517_text$$inline_3522$$ = $contents$$inline_3517_text$$inline_3522$$[1];
    "" == $label$$inline_3521$$ && ($label$$inline_3521$$ = "\u00a0");
    "" == $contents$$inline_3517_text$$inline_3522$$ && ($contents$$inline_3517_text$$inline_3522$$ = "\u00a0");
    AdfAgent.AGENT.setTextContent($labelSpan$$inline_3519$$, $label$$inline_3521$$);
    AdfAgent.AGENT.setTextContent($statusBarChildren$$inline_3518_textSpan$$inline_3520$$, $contents$$inline_3517_text$$inline_3522$$);
  }
}
function $JSCompiler_StaticMethods_getSelectionStringsForStatusBar$$($JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$, $selection$$22$$) {
  if (!$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_ptUtils$.$_hasStatusBar$) {
    return "";
  }
  var $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$, $selection$$22$$);
  switch($cellCount_edge$$95_set$$9_sliceCount$$1$$) {
    case null:
      return ["", ""];
    case AdfPivotTableUtils.$DATABODY$:
      $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$, $cellCount_edge$$95_set$$9_sliceCount$$1$$, $selection$$22$$);
      a: {
        if (2 < $cellCount_edge$$95_set$$9_sliceCount$$1$$.length) {
          $cellCount_edge$$95_set$$9_sliceCount$$1$$ = -1;
        } else {
          for (var $cellCount$$inline_3526$$ = 0, $i$$inline_3527$$ = 0;$i$$inline_3527$$ < $cellCount_edge$$95_set$$9_sliceCount$$1$$.length;++$i$$inline_3527$$) {
            var $JSCompiler_inline_result$$4953_startIndex$$inline_5129$$;
            var $endIndex$$inline_5130_range$$inline_5128$$ = $cellCount_edge$$95_set$$9_sliceCount$$1$$[$i$$inline_3527$$];
            $JSCompiler_StaticMethods_isRangeIndexPopulated$$($endIndex$$inline_5130_range$$inline_5128$$) ? ($JSCompiler_inline_result$$4953_startIndex$$inline_5129$$ = $endIndex$$inline_5130_range$$inline_5128$$.startIndex, $endIndex$$inline_5130_range$$inline_5128$$ = $JSCompiler_StaticMethods_getEndIndex$$($endIndex$$inline_5130_range$$inline_5128$$), $JSCompiler_inline_result$$4953_startIndex$$inline_5129$$ = ($endIndex$$inline_5130_range$$inline_5128$$.row - $JSCompiler_inline_result$$4953_startIndex$$inline_5129$$.row + 
            1) * ($endIndex$$inline_5130_range$$inline_5128$$.column - $JSCompiler_inline_result$$4953_startIndex$$inline_5129$$.column + 1)) : $JSCompiler_inline_result$$4953_startIndex$$inline_5129$$ = 1;
            $cellCount$$inline_3526$$ += $JSCompiler_inline_result$$4953_startIndex$$inline_5129$$;
          }
          if (2 == $cellCount_edge$$95_set$$9_sliceCount$$1$$.length) {
            if (-1 == $JSCompiler_StaticMethods_getOverlappingCellCount$$($cellCount_edge$$95_set$$9_sliceCount$$1$$[0], $cellCount_edge$$95_set$$9_sliceCount$$1$$[1])) {
              $cellCount_edge$$95_set$$9_sliceCount$$1$$ = -1;
              break a;
            }
            $cellCount$$inline_3526$$ -= $JSCompiler_StaticMethods_getOverlappingCellCount$$($cellCount_edge$$95_set$$9_sliceCount$$1$$[0], $cellCount_edge$$95_set$$9_sliceCount$$1$$[1]);
          }
          $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $cellCount$$inline_3526$$;
        }
      }
      return -1 == $cellCount_edge$$95_set$$9_sliceCount$$1$$ ? [$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_cellSelected$, $JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_multiple$] : [$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_cellSelected$, $cellCount_edge$$95_set$$9_sliceCount$$1$$];
    case AdfPivotTableUtils.$COLUMN_EDGE$:
      return $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$, $cellCount_edge$$95_set$$9_sliceCount$$1$$, $selection$$22$$), $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $JSCompiler_StaticMethods_getSliceCountOfHeaderCellRanges$$($cellCount_edge$$95_set$$9_sliceCount$$1$$), -1 == $cellCount_edge$$95_set$$9_sliceCount$$1$$ ? [$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_colSelected$, 
      $JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_multiple$] : [$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_colSelected$, $cellCount_edge$$95_set$$9_sliceCount$$1$$];
    case AdfPivotTableUtils.$ROW_EDGE$:
      return $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$, $cellCount_edge$$95_set$$9_sliceCount$$1$$, $selection$$22$$), $cellCount_edge$$95_set$$9_sliceCount$$1$$ = $JSCompiler_StaticMethods_getSliceCountOfHeaderCellRanges$$($cellCount_edge$$95_set$$9_sliceCount$$1$$), -1 == $cellCount_edge$$95_set$$9_sliceCount$$1$$ ? [$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_rowSelected$, 
      $JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_multiple$] : [$JSCompiler_StaticMethods_getSelectionStringsForStatusBar$self$$.$_rowSelected$, $cellCount_edge$$95_set$$9_sliceCount$$1$$];
    default:
      AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected edge in getSelectionStringsForStatusBar");
  }
}
function $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, $dataCellIndex$$10$$) {
  var $horizDelta$$1$$ = $JSCompiler_StaticMethods_getScrollDelta$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, AdfPivotTableUtils.$COLUMN_EDGE$, $dataCellIndex$$10$$.column), $vertDelta$$ = $JSCompiler_StaticMethods_getScrollDelta$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, AdfPivotTableUtils.$ROW_EDGE$, $dataCellIndex$$10$$.row), $rowPane$$11$$ = $dataCellIndex$$10$$.row < $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.$_splitSlice$[1] ? 0 : 1, $colPane$$9_scrollTop$$5$$ = 
  $dataCellIndex$$10$$.column < $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.$_splitSlice$[0] ? 0 : 1;
  if (0 != $horizDelta$$1$$) {
    var $scrollHorizPos$$ = $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.$getScrollPos$(AdfPivotTableUtils.$COLUMN_EDGE$, $colPane$$9_scrollTop$$5$$);
    $JSCompiler_StaticMethods_scrollToDataCell$self$$.$__logEnabled$ && $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, "scrollToDataCell calling setScrollPos(0, " + $colPane$$9_scrollTop$$5$$ + ", " + ($scrollHorizPos$$ + $horizDelta$$1$$) + ", true)");
    $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.setScrollPos(AdfPivotTableUtils.$COLUMN_EDGE$, $colPane$$9_scrollTop$$5$$, $scrollHorizPos$$ + $horizDelta$$1$$, !0);
  }
  0 != $vertDelta$$ && ($colPane$$9_scrollTop$$5$$ = $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.$getScrollPos$(AdfPivotTableUtils.$ROW_EDGE$, $rowPane$$11$$), $JSCompiler_StaticMethods_scrollToDataCell$self$$.$__logEnabled$ && $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, "scrollToDataCell calling setScrollPos(1, " + $rowPane$$11$$ + ", " + ($colPane$$9_scrollTop$$5$$ + $vertDelta$$) + ", true)"), $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.setScrollPos(AdfPivotTableUtils.$ROW_EDGE$, 
  $rowPane$$11$$, $colPane$$9_scrollTop$$5$$ + $vertDelta$$, !0));
  $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.$_horizScrollOutOfBlock$ = $JSCompiler_StaticMethods_isScrollOutOfBlock$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, AdfPivotTableUtils.$COLUMN_EDGE$, $dataCellIndex$$10$$.column);
  $JSCompiler_StaticMethods_scrollToDataCell$self$$.$_ptUtils$.$_vertScrollOutOfBlock$ = $JSCompiler_StaticMethods_isScrollOutOfBlock$$($JSCompiler_StaticMethods_scrollToDataCell$self$$, AdfPivotTableUtils.$ROW_EDGE$, $dataCellIndex$$10$$.row);
  0 == $horizDelta$$1$$ && 0 == $vertDelta$$ || $JSCompiler_StaticMethods_scrollToDataCell$self$$.$HandleDomScroll$(0, null);
}
function $JSCompiler_StaticMethods_newSelection$$() {
  return {columnHeaderCells:[], rowHeaderCells:[], dataCells:[]};
}
function $JSCompiler_StaticMethods_copySelection$$($JSCompiler_StaticMethods_copySelection$self$$) {
  return $JSCompiler_StaticMethods_copySelection$self$$.$deepCopy$($JSCompiler_StaticMethods_copySelection$self$$.getSelection());
}
function $JSCompiler_StaticMethods_newHeaderCellRange$$($startIndex$$9$$, $endIndex$$6$$, $startKey$$, $endKey$$, $swap_unordered$$) {
  null != $endIndex$$6$$ && $startIndex$$9$$.slice == $endIndex$$6$$.slice && ($endIndex$$6$$ = null);
  null == $endIndex$$6$$ && (null == $startKey$$ && null != $endKey$$ && ($startKey$$ = $endKey$$), endkey = null);
  $swap_unordered$$ && $endIndex$$6$$ && $endIndex$$6$$.slice < $startIndex$$9$$.slice && ($swap_unordered$$ = $startIndex$$9$$, $startIndex$$9$$ = $endIndex$$6$$, $endIndex$$6$$ = $swap_unordered$$, $swap_unordered$$ = $startKey$$, $startKey$$ = $endKey$$, $endKey$$ = $swap_unordered$$);
  return {startKey:$startKey$$, endKey:$endKey$$, startIndex:$startIndex$$9$$, endIndex:$endIndex$$6$$};
}
function $JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($edge$$97$$, $layer$$31$$, $slice$$19$$, $extent$$2$$) {
  return {edge:$edge$$97$$, layer:$layer$$31$$, slice:$slice$$19$$, extent:$extent$$2$$};
}
function $JSCompiler_StaticMethods_newDataCellRange$$($startIndex$$10$$, $endColumn$$3_endIndex$$7$$, $startKey$$1$$, $endColumnKey_endKey$$1$$, $startRow$$7_unordered$$1$$) {
  null != $endColumn$$3_endIndex$$7$$ && null != $startIndex$$10$$ && null != $endColumn$$3_endIndex$$7$$ && $startIndex$$10$$.row == $endColumn$$3_endIndex$$7$$.row && $startIndex$$10$$.column == $endColumn$$3_endIndex$$7$$.column && ($endColumn$$3_endIndex$$7$$ = null);
  null == $endColumn$$3_endIndex$$7$$ && (null == $startKey$$1$$ && null != $endColumnKey_endKey$$1$$ && ($startKey$$1$$ = $endColumnKey_endKey$$1$$), endkey = null);
  if ($startRow$$7_unordered$$1$$ && $endColumn$$3_endIndex$$7$$) {
    var $endRow$$4$$, $startColumn$$3$$, $startRowKey$$1$$, $endRowKey$$1$$, $startColumnKey$$;
    $startIndex$$10$$.row < $endColumn$$3_endIndex$$7$$.row ? ($startRow$$7_unordered$$1$$ = $startIndex$$10$$.row, $startRowKey$$1$$ = null == $startKey$$1$$ ? null : $startKey$$1$$.$rowKey$, $endRow$$4$$ = $endColumn$$3_endIndex$$7$$.row, $endRowKey$$1$$ = null == $endColumnKey_endKey$$1$$ ? null : $endColumnKey_endKey$$1$$.$rowKey$) : ($startRow$$7_unordered$$1$$ = $endColumn$$3_endIndex$$7$$.row, $startRowKey$$1$$ = null == $endColumnKey_endKey$$1$$ ? null : $endColumnKey_endKey$$1$$.$rowKey$, 
    $endRow$$4$$ = $startIndex$$10$$.row, $endRowKey$$1$$ = null == $startKey$$1$$ ? null : $startKey$$1$$.$rowKey$);
    $startIndex$$10$$.column < $endColumn$$3_endIndex$$7$$.column ? ($startColumn$$3$$ = $startIndex$$10$$.column, $startColumnKey$$ = null == $startKey$$1$$ ? null : $startKey$$1$$.$columnKey$, $endColumn$$3_endIndex$$7$$ = $endColumn$$3_endIndex$$7$$.column, $endColumnKey_endKey$$1$$ = null == $endColumnKey_endKey$$1$$ ? null : $endColumnKey_endKey$$1$$.$columnKey$) : ($startColumn$$3$$ = $endColumn$$3_endIndex$$7$$.column, $startColumnKey$$ = null == $endColumnKey_endKey$$1$$ ? null : $endColumnKey_endKey$$1$$.$columnKey$, 
    $endColumn$$3_endIndex$$7$$ = $startIndex$$10$$.column, $endColumnKey_endKey$$1$$ = null == $startKey$$1$$ ? null : $startKey$$1$$.$columnKey$);
    $startIndex$$10$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($startRow$$7_unordered$$1$$, $startColumn$$3$$);
    $endColumn$$3_endIndex$$7$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($endRow$$4$$, $endColumn$$3_endIndex$$7$$);
    $startKey$$1$$ = $startRowKey$$1$$ && $startColumnKey$$ ? {rowKey:$startRowKey$$1$$, columnKey:$startColumnKey$$} : null;
    $endColumnKey_endKey$$1$$ = $endRowKey$$1$$ && $endColumnKey_endKey$$1$$ ? {rowKey:$endRowKey$$1$$, columnKey:$endColumnKey_endKey$$1$$} : null;
  }
  return {startKey:$startKey$$1$$, endKey:$endColumnKey_endKey$$1$$, startIndex:$startIndex$$10$$, endIndex:$endColumn$$3_endIndex$$7$$};
}
function $JSCompiler_StaticMethods_newDataCellIndex$$($row$$43$$, $column$$10$$) {
  return {row:$row$$43$$, column:$column$$10$$};
}
function $JSCompiler_StaticMethods_newHeaderCellIndexWithEdgeFromCell$$($cell$$44$$) {
  var $coords$$4$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($cell$$44$$), $edge$$98$$ = Number($coords$$4$$.edge);
  return $JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($edge$$98$$, Number($coords$$4$$.startLayer), Number($coords$$4$$.startSlice), $JSCompiler_StaticMethods_getMemberExtent$$($edge$$98$$, $cell$$44$$, $coords$$4$$));
}
function $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($cell$$45_cellCoords$$3_items$$1$$) {
  $cell$$45_cellCoords$$3_items$$1$$ = AdfAgent.AGENT.getAttribute($cell$$45_cellCoords$$3_items$$1$$, "_coords");
  if (void 0 != $cell$$45_cellCoords$$3_items$$1$$) {
    return $cell$$45_cellCoords$$3_items$$1$$ = $cell$$45_cellCoords$$3_items$$1$$.split(":"), 4 == $cell$$45_cellCoords$$3_items$$1$$.length ? {edge:$cell$$45_cellCoords$$3_items$$1$$[0], startLayer:$cell$$45_cellCoords$$3_items$$1$$[1], startSlice:$cell$$45_cellCoords$$3_items$$1$$[2], extent:$cell$$45_cellCoords$$3_items$$1$$[3]} : {edge:$cell$$45_cellCoords$$3_items$$1$$[0], startLayer:$cell$$45_cellCoords$$3_items$$1$$[1], startSlice:$cell$$45_cellCoords$$3_items$$1$$[2], extent:null};
  }
}
function $JSCompiler_StaticMethods_newDataCellIndexFromCell$$($JSCompiler_StaticMethods_newDataCellIndexFromCell$self$$, $cell$$46$$) {
  var $coords$$5$$ = $JSCompiler_StaticMethods_getCoordinates$$($JSCompiler_StaticMethods_newDataCellIndexFromCell$self$$, $cell$$46$$);
  return $JSCompiler_StaticMethods_newDataCellIndex$$($coords$$5$$.row, $coords$$5$$.col);
}
function $JSCompiler_StaticMethods_isSelectionUiEnabled$$($JSCompiler_StaticMethods_isSelectionUiEnabled$self$$) {
  return $JSCompiler_StaticMethods_isSelectionUiEnabled$self$$.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$;
}
$JSCompiler_prototypeAlias$$.getSelection = function $$JSCompiler_prototypeAlias$$$getSelection$() {
  var $selection$$23$$ = this.getComponent().getProperty(AdfRichPivotTable.$__SELECTION_KEY$);
  null == $selection$$23$$ && ($selection$$23$$ = $JSCompiler_StaticMethods_newSelection$$(), $JSCompiler_StaticMethods_setSelectionProperty$$(this, $selection$$23$$));
  return $selection$$23$$;
};
function $JSCompiler_StaticMethods_isHeaderCellIndex$$($cellIndex$$11$$) {
  return null == $cellIndex$$11$$.row;
}
function $JSCompiler_StaticMethods_cellKeyEquals$$($key1$$, $key2$$) {
  return null == $key1$$ || null == $key2$$ ? !1 : null == $key1$$.$rowKey$ ? null == $key2$$.$rowKey$ ? $JSCompiler_StaticMethods_headerCellKeyEquals$$($key1$$, $key2$$) : !1 : null == $key2$$.$rowKey$ ? !1 : null == $key1$$ || null == $key2$$ ? !1 : $JSCompiler_StaticMethods_headerCellKeyEquals$$($key1$$.$rowKey$, $key2$$.$rowKey$) && $JSCompiler_StaticMethods_headerCellKeyEquals$$($key1$$.$columnKey$, $key2$$.$columnKey$);
}
function $JSCompiler_StaticMethods_headerCellKeyEquals$$($key1$$1$$, $key2$$1$$) {
  if (null == $key1$$1$$ || null == $key2$$1$$ || $key1$$1$$.length != $key2$$1$$.length) {
    return !1;
  }
  for (var $i$$190$$ = 0;$i$$190$$ < $key1$$1$$.length;++$i$$190$$) {
    if ($key1$$1$$[$i$$190$$] != $key2$$1$$[$i$$190$$]) {
      return !1;
    }
  }
  return !0;
}
function $JSCompiler_StaticMethods_cellIndexEquals$$($index1$$9$$, $index2$$9$$) {
  return null == $index1$$9$$ || null == $index2$$9$$ ? !1 : $index1$$9$$.layer == $index2$$9$$.layer && $index1$$9$$.slice == $index2$$9$$.slice && $index1$$9$$.row == $index2$$9$$.row && $index1$$9$$.column == $index2$$9$$.column;
}
function $JSCompiler_StaticMethods_getEndIndex$$($range$$23$$) {
  return null == $range$$23$$.endIndex ? $range$$23$$.startIndex : $range$$23$$.endIndex;
}
function $JSCompiler_StaticMethods_getEdge$$($cellIndex$$12_edge$$99$$) {
  $cellIndex$$12_edge$$99$$ = $cellIndex$$12_edge$$99$$.edge;
  void 0 === $cellIndex$$12_edge$$99$$ && ($cellIndex$$12_edge$$99$$ = AdfPivotTableUtils.$DATABODY$);
  return $cellIndex$$12_edge$$99$$;
}
function $JSCompiler_StaticMethods_isHeaderCellIndexValid$$($JSCompiler_StaticMethods_isHeaderCellIndexValid$self$$, $headerCellIndex$$8$$) {
  var $edge2$$1_hcInfo$$ = void 0 == $headerCellIndex$$8$$.edge ? void 0 : $headerCellIndex$$8$$.edge, $layer$$32$$ = $headerCellIndex$$8$$.layer, $slice$$20$$ = $headerCellIndex$$8$$.slice, $layerCount$$6$$ = $edge2$$1_hcInfo$$ ? $JSCompiler_StaticMethods_isHeaderCellIndexValid$self$$.$_ptUtils$.$_rowLayerCount$ : $JSCompiler_StaticMethods_isHeaderCellIndexValid$self$$.$_ptUtils$.$_colLayerCount$;
  if (0 > $layer$$32$$ || $layer$$32$$ >= $layerCount$$6$$) {
    return !1;
  }
  $edge2$$1_hcInfo$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_isHeaderCellIndexValid$self$$, $edge2$$1_hcInfo$$, $layer$$32$$, $slice$$20$$);
  return null != $edge2$$1_hcInfo$$ && $edge2$$1_hcInfo$$.layer == $layer$$32$$ && $edge2$$1_hcInfo$$.slice == $slice$$20$$;
}
function $JSCompiler_StaticMethods_getOverlappingCellCount$$($range1$$, $range2$$) {
  if (!$JSCompiler_StaticMethods_isRangeIndexPopulated$$($range1$$) || !$JSCompiler_StaticMethods_isRangeIndexPopulated$$($range2$$)) {
    return -1;
  }
  var $startIndex1$$ = $range1$$.startIndex, $endIndex1$$ = $JSCompiler_StaticMethods_getEndIndex$$($range1$$), $startIndex2$$ = $range2$$.startIndex, $endIndex2$$ = $JSCompiler_StaticMethods_getEndIndex$$($range2$$);
  return Math.max(0, Math.min($endIndex1$$.row, $endIndex2$$.row) - Math.max($startIndex1$$.row, $startIndex2$$.row) + 1) * Math.max(0, Math.min($endIndex1$$.column, $endIndex2$$.column) - Math.max($startIndex1$$.column, $startIndex2$$.column) + 1);
}
function $JSCompiler_StaticMethods_getSliceCountOfHeaderCellRanges$$($overlapCount_range2$$inline_3535_setOfRanges$$1$$) {
  if (2 < $overlapCount_range2$$inline_3535_setOfRanges$$1$$.length) {
    return -1;
  }
  for (var $sliceCount$$2$$ = 0, $i$$192_range1$$inline_3534$$ = 0;$i$$192_range1$$inline_3534$$ < $overlapCount_range2$$inline_3535_setOfRanges$$1$$.length;++$i$$192_range1$$inline_3534$$) {
    var $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$;
    $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$ = $overlapCount_range2$$inline_3535_setOfRanges$$1$$[$i$$192_range1$$inline_3534$$];
    if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$)) {
      var $endIndex$$inline_3531_endIndex2$$inline_3537$$ = $JSCompiler_StaticMethods_getEndIndex$$($endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$);
      $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$ = $endIndex$$inline_3531_endIndex2$$inline_3537$$.slice + $endIndex$$inline_3531_endIndex2$$inline_3537$$.extent - $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$.startIndex.slice;
    } else {
      $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$ = -1;
    }
    if (-1 == $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$) {
      return -1;
    }
    $sliceCount$$2$$ += $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$;
  }
  if (2 == $overlapCount_range2$$inline_3535_setOfRanges$$1$$.length) {
    $i$$192_range1$$inline_3534$$ = $overlapCount_range2$$inline_3535_setOfRanges$$1$$[0];
    $overlapCount_range2$$inline_3535_setOfRanges$$1$$ = $overlapCount_range2$$inline_3535_setOfRanges$$1$$[1];
    $JSCompiler_StaticMethods_isRangeIndexPopulated$$($i$$192_range1$$inline_3534$$) && $JSCompiler_StaticMethods_isRangeIndexPopulated$$($overlapCount_range2$$inline_3535_setOfRanges$$1$$) ? ($endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$ = $JSCompiler_StaticMethods_getEndIndex$$($i$$192_range1$$inline_3534$$), $endIndex$$inline_3531_endIndex2$$inline_3537$$ = $JSCompiler_StaticMethods_getEndIndex$$($overlapCount_range2$$inline_3535_setOfRanges$$1$$), $overlapCount_range2$$inline_3535_setOfRanges$$1$$ = 
    Math.max(0, Math.min($endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$.slice + $endIndex1$$inline_3536_range$$inline_3530_rangeSliceCount$$.extent, $endIndex$$inline_3531_endIndex2$$inline_3537$$.slice + $endIndex$$inline_3531_endIndex2$$inline_3537$$.extent) - Math.max($i$$192_range1$$inline_3534$$.startIndex.slice, $overlapCount_range2$$inline_3535_setOfRanges$$1$$.startIndex.slice))) : $overlapCount_range2$$inline_3535_setOfRanges$$1$$ = -1;
    if (-1 == $overlapCount_range2$$inline_3535_setOfRanges$$1$$) {
      return -1;
    }
    $sliceCount$$2$$ -= $overlapCount_range2$$inline_3535_setOfRanges$$1$$;
  }
  return $sliceCount$$2$$;
}
$JSCompiler_prototypeAlias$$.isSelected = function $$JSCompiler_prototypeAlias$$$isSelected$($cellIndex$$13$$, $selection$$24$$) {
  if ($JSCompiler_StaticMethods_isHeaderCellIndex$$($cellIndex$$13$$)) {
    for (var $layer$$33_row$$44$$ = $cellIndex$$13$$.layer, $column$$11_slice$$21$$ = $cellIndex$$13$$.slice, $set$$10$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$(this, $cellIndex$$13$$.edge, $selection$$24$$), $i$$193$$ = 0;$i$$193$$ < $set$$10$$.length;++$i$$193$$) {
      var $endIndex$$10_range$$26$$ = $set$$10$$[$i$$193$$];
      if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($endIndex$$10_range$$26$$)) {
        var $startIndex$$13$$ = $endIndex$$10_range$$26$$.startIndex;
        if (!($startIndex$$13$$.layer != $layer$$33_row$$44$$ || $startIndex$$13$$.slice > $column$$11_slice$$21$$ || ($endIndex$$10_range$$26$$ = $JSCompiler_StaticMethods_getEndIndex$$($endIndex$$10_range$$26$$), $endIndex$$10_range$$26$$.slice < $column$$11_slice$$21$$))) {
          return !0;
        }
      }
    }
  } else {
    for ($layer$$33_row$$44$$ = $cellIndex$$13$$.row, $column$$11_slice$$21$$ = $cellIndex$$13$$.column, $set$$10$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$(this, AdfPivotTableUtils.$DATABODY$, $selection$$24$$), $i$$193$$ = 0;$i$$193$$ < $set$$10$$.length;++$i$$193$$) {
      if ($endIndex$$10_range$$26$$ = $set$$10$$[$i$$193$$], $JSCompiler_StaticMethods_isRangeIndexPopulated$$($endIndex$$10_range$$26$$) && ($startIndex$$13$$ = $endIndex$$10_range$$26$$.startIndex, !($startIndex$$13$$.row > $layer$$33_row$$44$$ || $startIndex$$13$$.column > $column$$11_slice$$21$$ || ($endIndex$$10_range$$26$$ = $JSCompiler_StaticMethods_getEndIndex$$($endIndex$$10_range$$26$$), $endIndex$$10_range$$26$$.row < $layer$$33_row$$44$$ || $endIndex$$10_range$$26$$.column < $column$$11_slice$$21$$)))) {
        return !0;
      }
    }
  }
  return !1;
};
function $JSCompiler_StaticMethods_isInHeaderSelection$$($JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$, $dataCellIndex$$11_slice$$22$$, $edge$$102_inColumnSelection$$, $dataCellIsOnClient$$) {
  if (void 0 == $edge$$102_inColumnSelection$$) {
    return ($edge$$102_inColumnSelection$$ = $JSCompiler_StaticMethods_isInHeaderSelection$$($JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$, $dataCellIndex$$11_slice$$22$$, AdfPivotTableUtils.$COLUMN_EDGE$, $dataCellIsOnClient$$)) ? !0 : ($JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$ = $JSCompiler_StaticMethods_isInHeaderSelection$$($JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$, $dataCellIndex$$11_slice$$22$$, AdfPivotTableUtils.$ROW_EDGE$, 
    $dataCellIsOnClient$$)) ? !0 : 0 == $edge$$102_inColumnSelection$$ && 0 == $JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$ ? !1 : null;
  }
  $dataCellIndex$$11_slice$$22$$ = $edge$$102_inColumnSelection$$ ? $dataCellIndex$$11_slice$$22$$.row : $dataCellIndex$$11_slice$$22$$.column;
  for (var $set$$11$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$, $edge$$102_inColumnSelection$$), $answerSoFar$$ = !1, $info$$inline_3543_startLayer$$1$$ = -42, $i$$194$$ = 0;$i$$194$$ < $set$$11$$.length;++$i$$194$$) {
    var $layer$$34_range$$27$$ = $set$$11$$[$i$$194$$];
    if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($layer$$34_range$$27$$)) {
      var $startIndex$$14$$ = $layer$$34_range$$27$$.startIndex;
      if (!($startIndex$$14$$.slice > $dataCellIndex$$11_slice$$22$$)) {
        var $endIndex$$11$$ = $JSCompiler_StaticMethods_getEndIndex$$($layer$$34_range$$27$$);
        if (!($endIndex$$11$$.slice + $endIndex$$11$$.extent - 1 < $dataCellIndex$$11_slice$$22$$)) {
          if (!$JSCompiler_StaticMethods_isSingleCellRange$$($layer$$34_range$$27$$)) {
            if ($layer$$34_range$$27$$ = $startIndex$$14$$.layer, -42 == $info$$inline_3543_startLayer$$1$$ && ($info$$inline_3543_startLayer$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_isInHeaderSelection$self_inRowSelection$$, $edge$$102_inColumnSelection$$, $layer$$34_range$$27$$, $dataCellIndex$$11_slice$$22$$), $info$$inline_3543_startLayer$$1$$ = null != $info$$inline_3543_startLayer$$1$$ ? $info$$inline_3543_startLayer$$1$$.layer : null), null == $info$$inline_3543_startLayer$$1$$) {
              $answerSoFar$$ = null;
              continue;
            } else {
              if ($info$$inline_3543_startLayer$$1$$ != $layer$$34_range$$27$$) {
                continue;
              }
            }
          }
          return !0;
        }
      }
    } else {
      $dataCellIsOnClient$$ || ($answerSoFar$$ = null);
    }
  }
  return $answerSoFar$$;
}
function $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$($JSCompiler_StaticMethods_getNodesInHeaderCellRange$self$$, $range$$28$$, $edge$$104$$, $selected$$4$$, $oldNodes$$1$$, $selection$$25$$) {
  for (var $newNodes$$ = [], $pane$$47$$ = $JSCompiler_StaticMethods_getNodesInHeaderCellRange$self$$.$_ptUtils$.$_startPane$[$edge$$104$$];2 > $pane$$47$$;++$pane$$47$$) {
    a: {
      var $JSCompiler_StaticMethods_getNodesInHeaderCellRange2$self$$inline_3545$$ = $JSCompiler_StaticMethods_getNodesInHeaderCellRange$self$$, $edge$$inline_3547$$ = $edge$$104$$, $oldNodes$$inline_3549$$ = $oldNodes$$1$$, $newNodes$$inline_3550$$ = $newNodes$$, $selection$$inline_3552$$ = $selection$$25$$, $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ = void 0;
      if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($range$$28$$)) {
        var $onlyKeepSelected$$inline_3554$$ = !0 === $selected$$4$$, $onlyKeepUnselected$$inline_3555$$ = !1 === $selected$$4$$, $keepAll$$inline_3556$$ = !$onlyKeepSelected$$inline_3554$$ && !$onlyKeepUnselected$$inline_3555$$, $startIndex$$inline_3557_startSlice$$inline_3559$$ = $range$$28$$.startIndex, $startLayer$$inline_3558$$ = $startIndex$$inline_3557_startSlice$$inline_3559$$.layer, $startIndex$$inline_3557_startSlice$$inline_3559$$ = $startIndex$$inline_3557_startSlice$$inline_3559$$.slice, 
        $endSlice$$inline_3560$$ = $JSCompiler_StaticMethods_getEndIndex$$($range$$28$$).slice, $buffer$$inline_3561$$ = $JSCompiler_StaticMethods_getNodesInHeaderCellRange2$self$$inline_3545$$.$_ptUtils$.$_buffers2$[$edge$$inline_3547$$][$pane$$47$$], $foundOne$$inline_3562$$ = !1;
        if ($edge$$inline_3547$$ == AdfPivotTableUtils.$COLUMN_EDGE$) {
          for (var $i$$inline_3563$$ = 0, $n$$inline_3564$$ = $buffer$$inline_3561$$.length;$i$$inline_3563$$ < $n$$inline_3564$$;++$i$$inline_3563$$) {
            var $block$$inline_3565_j$$inline_3572$$ = $buffer$$inline_3561$$[$i$$inline_3563$$];
            if (!$foundOne$$inline_3562$$) {
              var $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_3565_j$$inline_3572$$, "_startSlice"), $blockNumSlices$$inline_3567_m$$inline_3573$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_3565_j$$inline_3572$$, "_numSlices"), $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ = $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ + $blockNumSlices$$inline_3567_m$$inline_3573$$;
              if ($blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ <= $startIndex$$inline_3557_startSlice$$inline_3559$$) {
                continue;
              }
            }
            for (var $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ = null == $oldNodes$$inline_3549$$ || $block$$inline_3565_j$$inline_3572$$.$_new$ ? $newNodes$$inline_3550$$ : $oldNodes$$inline_3549$$, $cells$$inline_3571_rows$$inline_3569$$ = $block$$inline_3565_j$$inline_3572$$.firstChild.firstChild.rows, $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$ = $cells$$inline_3571_rows$$inline_3569$$[$startLayer$$inline_3558$$ + 1], $cells$$inline_3571_rows$$inline_3569$$ = 
            $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$.cells, $block$$inline_3565_j$$inline_3572$$ = 1, $blockNumSlices$$inline_3567_m$$inline_3573$$ = $cells$$inline_3571_rows$$inline_3569$$.length;$block$$inline_3565_j$$inline_3572$$ < $blockNumSlices$$inline_3567_m$$inline_3573$$;++$block$$inline_3565_j$$inline_3572$$) {
              var $cell$$inline_3574_layer$$inline_5133$$ = $cells$$inline_3571_rows$$inline_3569$$[$block$$inline_3565_j$$inline_3572$$], $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($cell$$inline_3574_layer$$inline_5133$$), $i$$inline_5135_memberStartSlice$$inline_3576$$ = Number($cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$.startSlice);
              if ($endSlice$$inline_3560$$ < $i$$inline_5135_memberStartSlice$$inline_3576$$) {
                break a;
              }
              $startIndex$$inline_3557_startSlice$$inline_3559$$ <= $i$$inline_5135_memberStartSlice$$inline_3576$$ && ($keepAll$$inline_3556$$ || $onlyKeepSelected$$inline_3554$$ && $JSCompiler_StaticMethods_getNodesInHeaderCellRange2$self$$inline_3545$$.isSelected($JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($edge$$inline_3547$$, $startLayer$$inline_3558$$, $i$$inline_5135_memberStartSlice$$inline_3576$$, 0), $selection$$inline_3552$$) || $onlyKeepUnselected$$inline_3555$$ && !$JSCompiler_StaticMethods_getNodesInHeaderCellRange2$self$$inline_3545$$.isSelected($JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($edge$$inline_3547$$, 
              $startLayer$$inline_3558$$, $i$$inline_5135_memberStartSlice$$inline_3576$$, 0), $selection$$inline_3552$$)) && ($blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$.push($cell$$inline_3574_layer$$inline_5133$$), $foundOne$$inline_3562$$ = !0);
            }
          }
        } else {
          for ($i$$inline_3563$$ = 0, $n$$inline_3564$$ = $buffer$$inline_3561$$.length;$i$$inline_3563$$ < $n$$inline_3564$$;++$i$$inline_3563$$) {
            $block$$inline_3565_j$$inline_3572$$ = $buffer$$inline_3561$$[$i$$inline_3563$$];
            if (!$foundOne$$inline_3562$$ && ($blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_3565_j$$inline_3572$$, "_startSlice"), $blockNumSlices$$inline_3567_m$$inline_3573$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_3565_j$$inline_3572$$, "_numSlices"), $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ += $blockNumSlices$$inline_3567_m$$inline_3573$$, $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ <= 
            $startIndex$$inline_3557_startSlice$$inline_3559$$)) {
              continue;
            }
            $blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$ = null == $oldNodes$$inline_3549$$ || $block$$inline_3565_j$$inline_3572$$.$_new$ ? $newNodes$$inline_3550$$ : $oldNodes$$inline_3549$$;
            $cells$$inline_3571_rows$$inline_3569$$ = $block$$inline_3565_j$$inline_3572$$.firstChild.firstChild.rows;
            $block$$inline_3565_j$$inline_3572$$ = 1;
            for ($blockNumSlices$$inline_3567_m$$inline_3573$$ = $cells$$inline_3571_rows$$inline_3569$$.length;$block$$inline_3565_j$$inline_3572$$ < $blockNumSlices$$inline_3567_m$$inline_3573$$;) {
              $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$ = $cells$$inline_3571_rows$$inline_3569$$[$block$$inline_3565_j$$inline_3572$$];
              b: {
                $cell$$inline_3574_layer$$inline_5133$$ = $startLayer$$inline_3558$$;
                $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$ = $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$.cells;
                for ($i$$inline_5135_memberStartSlice$$inline_3576$$ = $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$.length - 1;1 <= $i$$inline_5135_memberStartSlice$$inline_3576$$;--$i$$inline_5135_memberStartSlice$$inline_3576$$) {
                  cell = $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$[$i$$inline_5135_memberStartSlice$$inline_3576$$];
                  var $cellCoords$$inline_5136$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$(cell);
                  if (Number($cellCoords$$inline_5136$$.startLayer) <= $cell$$inline_3574_layer$$inline_5133$$) {
                    $cell$$inline_3574_layer$$inline_5133$$ = cell;
                    break b;
                  }
                }
                $cell$$inline_3574_layer$$inline_5133$$ = void 0;
              }
              if (!$cell$$inline_3574_layer$$inline_5133$$) {
                break a;
              }
              $cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($cell$$inline_3574_layer$$inline_5133$$);
              $i$$inline_5135_memberStartSlice$$inline_3576$$ = Number($cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$.startSlice);
              if ($endSlice$$inline_3560$$ < $i$$inline_5135_memberStartSlice$$inline_3576$$) {
                break a;
              }
              $startIndex$$inline_3557_startSlice$$inline_3559$$ <= $i$$inline_5135_memberStartSlice$$inline_3576$$ && $startLayer$$inline_3558$$ == Number($cellCoords$$inline_3575_cells$$inline_5134_row$$inline_3570$$.startLayer) && ($keepAll$$inline_3556$$ || $onlyKeepSelected$$inline_3554$$ && $JSCompiler_StaticMethods_getNodesInHeaderCellRange2$self$$inline_3545$$.isSelected($JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($edge$$inline_3547$$, $startLayer$$inline_3558$$, $i$$inline_5135_memberStartSlice$$inline_3576$$, 
              0), $selection$$inline_3552$$) || $onlyKeepUnselected$$inline_3555$$ && !$JSCompiler_StaticMethods_getNodesInHeaderCellRange2$self$$inline_3545$$.isSelected($JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($edge$$inline_3547$$, $startLayer$$inline_3558$$, $i$$inline_5135_memberStartSlice$$inline_3576$$, 0), $selection$$inline_3552$$)) && ($blockEndSlice$$inline_3568_blockStartSlice$$inline_3566_nodes$$inline_3553$$.push($cell$$inline_3574_layer$$inline_5133$$), $foundOne$$inline_3562$$ = 
              !0);
              $block$$inline_3565_j$$inline_3572$$ += $cell$$inline_3574_layer$$inline_5133$$.rowSpan;
            }
          }
        }
      }
    }
  }
  return $newNodes$$;
}
function $JSCompiler_StaticMethods_getNodesInDataCellRange$$($JSCompiler_StaticMethods_getNodesInDataCellRange$self$$, $range$$30$$, $selected$$6$$, $newBlocks$$6$$, $selection$$27$$) {
  for (var $nodes$$20$$ = [], $rowPane$$12$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$self$$.$_ptUtils$.$_startPane$[1];2 > $rowPane$$12$$;++$rowPane$$12$$) {
    for (var $colPane$$10$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$self$$.$_ptUtils$.$_startPane$[0];2 > $colPane$$10$$;++$colPane$$10$$) {
      var $JSCompiler_StaticMethods_getNodesInDataCellRange2$self$$inline_3578$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$self$$, $nodes$$inline_3582$$ = $nodes$$20$$, $databodyBuffer$$inline_3611_rowPane$$inline_3583$$ = $rowPane$$12$$, $colPane$$inline_3584_r$$inline_3612$$ = $colPane$$10$$, $selection$$inline_3585$$ = $selection$$27$$;
      if ($JSCompiler_StaticMethods_isRangeIndexPopulated$$($range$$30$$)) {
        var $onlyKeepSelected$$inline_3586$$ = !0 === $selected$$6$$, $onlyKeepUnselected$$inline_3587$$ = !1 === $selected$$6$$, $keepAll$$inline_3588$$ = !$onlyKeepSelected$$inline_3586$$ && !$onlyKeepUnselected$$inline_3587$$, $onlyKeepNew$$inline_3589$$ = !0 === $newBlocks$$6$$, $onlyKeepOld$$inline_3590$$ = !1 === $newBlocks$$6$$, $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$ = $range$$30$$.startIndex, $rangeStartRow$$inline_3592$$ = $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$.row, 
        $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$ = $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$.column, $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$ = $JSCompiler_StaticMethods_getEndIndex$$($range$$30$$), $rangeEndRow$$inline_3595$$ = $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$.row + 1, $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$ = $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$.column + 1, $colHeaderBuffer$$inline_3597$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange2$self$$inline_3578$$.$_ptUtils$.$_colHeaderBuffers$[$colPane$$inline_3584_r$$inline_3612$$], 
        $bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$ = AdfAgent.AGENT.getIntAttribute($colHeaderBuffer$$inline_3597$$[0], "_startSlice");
        if (!($endIndex$$inline_3594_rangeEndColumn$$inline_3596$$ <= $bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$)) {
          var $endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$ = $colHeaderBuffer$$inline_3597$$[$colHeaderBuffer$$inline_3597$$.length - 1], $bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$ = AdfAgent.AGENT.getIntAttribute($endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$, "_startSlice"), $endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$ = 
          AdfAgent.AGENT.getIntAttribute($endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$, "_numSlices");
          if (!($bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$ + $endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$ <= $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$)) {
            for (var $bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$ = 0, $endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$ = $colHeaderBuffer$$inline_3597$$.length, $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ = 0, $m$$inline_3605_rowHeaderBuffer$$inline_3610$$ = $colHeaderBuffer$$inline_3597$$.length;$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ < 
            $m$$inline_3605_rowHeaderBuffer$$inline_3610$$;++$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$) {
              var $colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$ = $colHeaderBuffer$$inline_3597$$[$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$], $blockStartColumn$$inline_3607$$ = AdfAgent.AGENT.getIntAttribute($colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$, "_startSlice"), $blockNumColumns$$inline_3608_endColumnWithinBlock$$inline_3621$$ = AdfAgent.AGENT.getIntAttribute($colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$, 
              "_numSlices"), $blockEndColumn$$inline_3609_n$$inline_3613$$ = $blockStartColumn$$inline_3607$$ + $blockNumColumns$$inline_3608_endColumnWithinBlock$$inline_3621$$;
              $blockStartColumn$$inline_3607$$ <= $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$ && $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$ < $blockEndColumn$$inline_3609_n$$inline_3613$$ && ($bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$ = $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$);
              if ($blockStartColumn$$inline_3607$$ < $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$ && $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$ <= $blockEndColumn$$inline_3609_n$$inline_3613$$) {
                $endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$ = $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ + 1;
                break;
              }
            }
            $m$$inline_3605_rowHeaderBuffer$$inline_3610$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange2$self$$inline_3578$$.$_ptUtils$.$_rowHeaderBuffers$[$databodyBuffer$$inline_3611_rowPane$$inline_3583$$];
            $databodyBuffer$$inline_3611_rowPane$$inline_3583$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange2$self$$inline_3578$$.$_ptUtils$.$_databodyBuffers$[$databodyBuffer$$inline_3611_rowPane$$inline_3583$$][$colPane$$inline_3584_r$$inline_3612$$];
            $colPane$$inline_3584_r$$inline_3612$$ = 0;
            for ($blockEndColumn$$inline_3609_n$$inline_3613$$ = $m$$inline_3605_rowHeaderBuffer$$inline_3610$$.length;$colPane$$inline_3584_r$$inline_3612$$ < $blockEndColumn$$inline_3609_n$$inline_3613$$;++$colPane$$inline_3584_r$$inline_3612$$) {
              var $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ = $m$$inline_3605_rowHeaderBuffer$$inline_3610$$[$colPane$$inline_3584_r$$inline_3612$$], $blockStartRow$$inline_3615$$ = AdfAgent.AGENT.getIntAttribute($blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$, "_startSlice"), $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ = AdfAgent.AGENT.getIntAttribute($blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$, 
              "_numSlices");
              if (!($blockStartRow$$inline_3615$$ + $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ <= $rangeStartRow$$inline_3592$$)) {
                if ($rangeEndRow$$inline_3595$$ <= $blockStartRow$$inline_3615$$) {
                  break;
                }
                for (var $startRowWithinBlock$$inline_3617$$ = Math.max(1, $rangeStartRow$$inline_3592$$ - $blockStartRow$$inline_3615$$ + 1), $endRowWithinBlock$$inline_3618$$ = Math.min($blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ + 1, $rangeEndRow$$inline_3595$$ - $blockStartRow$$inline_3615$$ + 1), $rowOfBlocks$$inline_3619$$ = $databodyBuffer$$inline_3611_rowPane$$inline_3583$$[$colPane$$inline_3584_r$$inline_3612$$], $blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ = 
                $bufferStartColumn$$inline_3598_lastBlockStartColumn$$inline_3600_startColumnOfBlocks$$inline_3602$$;$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$ < $endColumnOfBlocks$$inline_3603_lastBlockNumColumns$$inline_3601_lastColHeaderBlock$$inline_3599$$;++$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$) {
                  var $colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$ = $colHeaderBuffer$$inline_3597$$[$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$], $blockStartColumn$$inline_3607$$ = AdfAgent.AGENT.getIntAttribute($colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$, "_startSlice"), $blockNumColumns$$inline_3608_endColumnWithinBlock$$inline_3621$$ = AdfAgent.AGENT.getIntAttribute($colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$, 
                  "_numSlices"), $colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$ = Math.max(1, $rangeStartColumn$$inline_3593_startIndex$$inline_3591$$ - $blockStartColumn$$inline_3607$$ + 1), $blockNumColumns$$inline_3608_endColumnWithinBlock$$inline_3621$$ = Math.min($blockNumColumns$$inline_3608_endColumnWithinBlock$$inline_3621$$ + 1, $endIndex$$inline_3594_rangeEndColumn$$inline_3596$$ - $blockStartColumn$$inline_3607$$ + 1), $block$$inline_3622_rows$$inline_3623$$ = $rowOfBlocks$$inline_3619$$[$blockNumRows$$inline_3616_c$$inline_3604_rowHeaderBlock$$inline_3614$$];
                  if (!($onlyKeepNew$$inline_3589$$ && !$block$$inline_3622_rows$$inline_3623$$.$_new$ || $onlyKeepOld$$inline_3590$$ && $block$$inline_3622_rows$$inline_3623$$.$_new$)) {
                    for (var $block$$inline_3622_rows$$inline_3623$$ = $block$$inline_3622_rows$$inline_3623$$.firstChild.firstChild.rows, $rr$$inline_3624$$ = $startRowWithinBlock$$inline_3617$$;$rr$$inline_3624$$ < $endRowWithinBlock$$inline_3618$$;++$rr$$inline_3624$$) {
                      for (var $cells$$inline_3625$$ = $block$$inline_3622_rows$$inline_3623$$[$rr$$inline_3624$$].cells, $cc$$inline_3626$$ = $colHeaderBlock$$inline_3606_startColumnWithinBlock$$inline_3620$$;$cc$$inline_3626$$ < $blockNumColumns$$inline_3608_endColumnWithinBlock$$inline_3621$$;++$cc$$inline_3626$$) {
                        ($keepAll$$inline_3588$$ || $onlyKeepSelected$$inline_3586$$ && $JSCompiler_StaticMethods_getNodesInDataCellRange2$self$$inline_3578$$.isSelected($JSCompiler_StaticMethods_newDataCellIndex$$($blockStartRow$$inline_3615$$ + $rr$$inline_3624$$ - 1, $blockStartColumn$$inline_3607$$ + $cc$$inline_3626$$ - 1), $selection$$inline_3585$$) || $onlyKeepUnselected$$inline_3587$$ && !$JSCompiler_StaticMethods_getNodesInDataCellRange2$self$$inline_3578$$.isSelected($JSCompiler_StaticMethods_newDataCellIndex$$($blockStartRow$$inline_3615$$ + 
                        $rr$$inline_3624$$ - 1, $blockStartColumn$$inline_3607$$ + $cc$$inline_3626$$ - 1), $selection$$inline_3585$$)) && $nodes$$inline_3582$$.push($cells$$inline_3625$$[$cc$$inline_3626$$]);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  return $nodes$$20$$;
}
function $JSCompiler_StaticMethods_isRangeIndexPopulated$$($range$$32$$) {
  return null != $range$$32$$.startIndex;
}
function $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$self$$, $headerCellIndex$$9$$) {
  if (null != $headerCellIndex$$9$$.depth) {
    return !0;
  }
  var $hcInfo$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$self$$, $headerCellIndex$$9$$.edge, $headerCellIndex$$9$$.layer, $headerCellIndex$$9$$.slice);
  if (null == $hcInfo$$1$$) {
    return !1;
  }
  $headerCellIndex$$9$$.depth = $hcInfo$$1$$.depth;
  $headerCellIndex$$9$$.extent = $hcInfo$$1$$.extent;
  return !0;
}
function $JSCompiler_StaticMethods_getHeaderCellInfo$$($JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$, $edge$$106$$, $layer$$36$$, $slice$$24$$, $includeCell$$) {
  var $blockStartSlice$$6_buffer$$11_edgeBuffers$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.$_ptUtils$.$_buffers2$[$edge$$106$$], $pane$$49_startPane$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.$_ptUtils$.$_startPane$[$edge$$106$$], $startBuffer$$ = $blockStartSlice$$6_buffer$$11_edgeBuffers$$[$pane$$49_startPane$$1$$], $endBuffer_firstBlock$$ = $startBuffer$$[0], $bufferStartSlice$$2_lastBlock$$ = AdfAgent.AGENT.getIntAttribute($endBuffer_firstBlock$$, 
  "_startSlice");
  if ($slice$$24$$ < $bufferStartSlice$$2_lastBlock$$) {
    return $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfoFromBlock$$($endBuffer_firstBlock$$, $edge$$106$$, $layer$$36$$, 0, $includeCell$$), $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.slice <= $slice$$24$$ ? $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ : null;
  }
  var $endBuffer_firstBlock$$ = $blockStartSlice$$6_buffer$$11_edgeBuffers$$[1], $bufferStartSlice$$2_lastBlock$$ = $endBuffer_firstBlock$$[$endBuffer_firstBlock$$.length - 1], $lastBlockStartSlice$$ = AdfAgent.AGENT.getIntAttribute($bufferStartSlice$$2_lastBlock$$, "_startSlice"), $lastBlockNumSlices$$ = AdfAgent.AGENT.getIntAttribute($bufferStartSlice$$2_lastBlock$$, "_numSlices");
  if ($lastBlockStartSlice$$ + $lastBlockNumSlices$$ <= $slice$$24$$) {
    return $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfoFromBlock$$($bufferStartSlice$$2_lastBlock$$, $edge$$106$$, $layer$$36$$, $lastBlockNumSlices$$ - 1, $includeCell$$), $slice$$24$$ < $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.slice + $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.extent ? $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ : 
    null;
  }
  if (0 == $pane$$49_startPane$$1$$ && ($endBuffer_firstBlock$$ = $endBuffer_firstBlock$$[0], $bufferStartSlice$$2_lastBlock$$ = AdfAgent.AGENT.getIntAttribute($endBuffer_firstBlock$$, "_startSlice"), $slice$$24$$ < $bufferStartSlice$$2_lastBlock$$ && ($bufferStartSlice$$2_lastBlock$$ = $startBuffer$$[$startBuffer$$.length - 1], $lastBlockStartSlice$$ = AdfAgent.AGENT.getIntAttribute($bufferStartSlice$$2_lastBlock$$, "_startSlice"), $lastBlockNumSlices$$ = AdfAgent.AGENT.getIntAttribute($bufferStartSlice$$2_lastBlock$$, 
  "_numSlices"), $lastBlockStartSlice$$ + $lastBlockNumSlices$$ <= $slice$$24$$))) {
    $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfoFromBlock$$($endBuffer_firstBlock$$, $edge$$106$$, $layer$$36$$, 0, $includeCell$$);
    if ($JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.slice <= $slice$$24$$) {
      return $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$;
    }
    $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ = $JSCompiler_StaticMethods_getHeaderCellInfoFromBlock$$($bufferStartSlice$$2_lastBlock$$, $edge$$106$$, $layer$$36$$, $lastBlockNumSlices$$ - 1, $includeCell$$);
    return $slice$$24$$ < $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.slice + $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.extent ? $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ : null;
  }
  $pane$$49_startPane$$1$$ = $slice$$24$$ < $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$.$_ptUtils$.$_splitSlice$[$edge$$106$$] ? 0 : 1;
  $blockStartSlice$$6_buffer$$11_edgeBuffers$$ = $blockStartSlice$$6_buffer$$11_edgeBuffers$$[$pane$$49_startPane$$1$$];
  $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ = $JSCompiler_StaticMethods_getBlockNumOfSlice$$($JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$, $edge$$106$$, $slice$$24$$, $pane$$49_startPane$$1$$);
  $JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$ = $blockStartSlice$$6_buffer$$11_edgeBuffers$$[$JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$];
  $blockStartSlice$$6_buffer$$11_edgeBuffers$$ = AdfAgent.AGENT.getIntAttribute($JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$, "_startSlice");
  return $JSCompiler_StaticMethods_getHeaderCellInfoFromBlock$$($JSCompiler_StaticMethods_getHeaderCellInfo$self_block$$40_blockNum_hci$$1$$, $edge$$106$$, $layer$$36$$, $slice$$24$$ - $blockStartSlice$$6_buffer$$11_edgeBuffers$$, $includeCell$$);
}
function $JSCompiler_StaticMethods_getHeaderCellInfoFromBlock$$($block$$41_cell$$49$$, $edge$$107$$, $layer$$37_obj$$38_startLayer$$3$$, $depth$$6_localSlice$$1$$, $includeCell$$1$$) {
  $edge$$107$$ == AdfPivotTableUtils.$COLUMN_EDGE$ ? ($layer$$37_obj$$38_startLayer$$3$$ = $JSCompiler_StaticMethods_getTableCell$$($block$$41_cell$$49$$, $layer$$37_obj$$38_startLayer$$3$$, $depth$$6_localSlice$$1$$), $block$$41_cell$$49$$ = $layer$$37_obj$$38_startLayer$$3$$.cell, $layer$$37_obj$$38_startLayer$$3$$ = $block$$41_cell$$49$$.parentNode.rowIndex - 1, $depth$$6_localSlice$$1$$ = $block$$41_cell$$49$$.rowSpan) : ($layer$$37_obj$$38_startLayer$$3$$ = $JSCompiler_StaticMethods_getTableCell$$($block$$41_cell$$49$$, 
  $depth$$6_localSlice$$1$$, $layer$$37_obj$$38_startLayer$$3$$), $block$$41_cell$$49$$ = $layer$$37_obj$$38_startLayer$$3$$.cell, $layer$$37_obj$$38_startLayer$$3$$ = $layer$$37_obj$$38_startLayer$$3$$.startColumn, $depth$$6_localSlice$$1$$ = $block$$41_cell$$49$$.colSpan);
  var $coords$$6_extent$$4$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($block$$41_cell$$49$$), $startSlice$$9$$ = Number($coords$$6_extent$$4$$.startSlice), $coords$$6_extent$$4$$ = $JSCompiler_StaticMethods_getMemberExtent$$($edge$$107$$, $block$$41_cell$$49$$, $coords$$6_extent$$4$$);
  return $includeCell$$1$$ ? {edge:$edge$$107$$, layer:$layer$$37_obj$$38_startLayer$$3$$, slice:$startSlice$$9$$, depth:$depth$$6_localSlice$$1$$, extent:$coords$$6_extent$$4$$, cell:$block$$41_cell$$49$$} : {edge:$edge$$107$$, layer:$layer$$37_obj$$38_startLayer$$3$$, slice:$startSlice$$9$$, depth:$depth$$6_localSlice$$1$$, extent:$coords$$6_extent$$4$$};
}
function $JSCompiler_StaticMethods_getTableCell$$($block$$42_rows$$18$$, $row$$47$$, $cellsPerRow_col$$5$$) {
  var $th$$5$$;
  $cellsPerRow_col$$5$$ += 1;
  var $minRow$$ = 0;
  $block$$42_rows$$18$$ = $block$$42_rows$$18$$.firstChild.firstChild.rows;
  for (var $cellsVisited$$ = [], $h$$4_i$$196$$ = 0;$h$$4_i$$196$$ <= $row$$47$$;++$h$$4_i$$196$$) {
    $cellsVisited$$[$h$$4_i$$196$$] = 0;
  }
  for ($h$$4_i$$196$$ = 0;$h$$4_i$$196$$ <= $row$$47$$;++$h$$4_i$$196$$) {
    for (var $cells$$6$$ = $block$$42_rows$$18$$[$h$$4_i$$196$$ + 1].cells, $j$$46$$ = 0;$cellsVisited$$[$h$$4_i$$196$$] < $cellsPerRow_col$$5$$;++$j$$46$$) {
      $th$$5$$ = $cells$$6$$[$j$$46$$ + 1];
      for (var $rowSpan$$ = $th$$5$$.rowSpan, $cellCount$$2$$ = Math.min($th$$5$$.colSpan, $cellsPerRow_col$$5$$ - $cellsVisited$$[$h$$4_i$$196$$]), $k$$7$$ = $h$$4_i$$196$$, $n$$14$$ = Math.min($h$$4_i$$196$$ + $rowSpan$$, $row$$47$$ + 1);$k$$7$$ < $n$$14$$;++$k$$7$$) {
        $cellsVisited$$[$k$$7$$] += $cellCount$$2$$;
      }
    }
    if ($h$$4_i$$196$$ == $minRow$$) {
      if ($h$$4_i$$196$$ + $rowSpan$$ > $row$$47$$) {
        return {cell:$th$$5$$, startColumn:$cellsPerRow_col$$5$$ - $cellCount$$2$$};
      }
      $minRow$$ = $h$$4_i$$196$$ + $rowSpan$$;
    }
  }
  return $th$$5$$;
}
function $JSCompiler_StaticMethods_getMemberExtent$$($edge$$108$$, $cell$$50$$, $coords$$7$$) {
  return null != $coords$$7$$.extent ? Number($coords$$7$$.extent) : $edge$$108$$ ? $cell$$50$$.rowSpan : $cell$$50$$.colSpan;
}
function $JSCompiler_StaticMethods_getLayerOfSelection$$($JSCompiler_StaticMethods_getLayerOfSelection$self$$) {
  var $selectedEdge$$5$$ = $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_getLayerOfSelection$self$$);
  return null == $selectedEdge$$5$$ || $selectedEdge$$5$$ == AdfPivotTableUtils.$DATABODY$ ? -1 : $JSCompiler_StaticMethods_getLayerOfSelection$self$$.$_selectionAnchor$.startIndex.layer;
}
function $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_getSelectionForEdge$self$$, $edge$$109$$, $selection$$29$$) {
  void 0 == $selection$$29$$ && ($selection$$29$$ = $JSCompiler_StaticMethods_getSelectionForEdge$self$$.getSelection());
  switch($edge$$109$$) {
    case AdfPivotTableUtils.$COLUMN_EDGE$:
      return $selection$$29$$.columnHeaderCells;
    case AdfPivotTableUtils.$ROW_EDGE$:
      return $selection$$29$$.rowHeaderCells;
    case AdfPivotTableUtils.$DATABODY$:
      return $selection$$29$$.dataCells;
    default:
      AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected edge in getSelectionForEdge");
  }
}
function $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_getSelectedEdge$self$$, $selection$$30$$) {
  void 0 == $selection$$30$$ && ($selection$$30$$ = $JSCompiler_StaticMethods_getSelectedEdge$self$$.getSelection());
  return 0 < $selection$$30$$.columnHeaderCells.length ? AdfPivotTableUtils.$COLUMN_EDGE$ : 0 < $selection$$30$$.rowHeaderCells.length ? AdfPivotTableUtils.$ROW_EDGE$ : 0 < $selection$$30$$.dataCells.length ? AdfPivotTableUtils.$DATABODY$ : null;
}
function $JSCompiler_StaticMethods_getCurrentRange$$($JSCompiler_StaticMethods_getCurrentRange$self$$, $selection$$31$$) {
  var $edge$$110_set$$12$$ = $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_getCurrentRange$self$$, $selection$$31$$);
  if (null == $edge$$110_set$$12$$) {
    return null;
  }
  $edge$$110_set$$12$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_getCurrentRange$self$$, $edge$$110_set$$12$$, $selection$$31$$);
  return $edge$$110_set$$12$$[$edge$$110_set$$12$$.length - 1];
}
function $JSCompiler_StaticMethods_isScrollOutOfBlock$$($JSCompiler_StaticMethods_isScrollOutOfBlock$self_bufferEndSlice$$3$$, $edge$$111$$, $slice$$25$$) {
  var $pane$$50$$ = $slice$$25$$ < $JSCompiler_StaticMethods_isScrollOutOfBlock$self_bufferEndSlice$$3$$.$_ptUtils$.$_splitSlice$[$edge$$111$$] ? 0 : 1, $bufferStartSlice$$3$$ = $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_isScrollOutOfBlock$self_bufferEndSlice$$3$$, $edge$$111$$, $pane$$50$$);
  $JSCompiler_StaticMethods_isScrollOutOfBlock$self_bufferEndSlice$$3$$ = $JSCompiler_StaticMethods_getBufferEndSlice$$($JSCompiler_StaticMethods_isScrollOutOfBlock$self_bufferEndSlice$$3$$, $edge$$111$$, $pane$$50$$);
  return $slice$$25$$ >= $JSCompiler_StaticMethods_isScrollOutOfBlock$self_bufferEndSlice$$3$$ || $slice$$25$$ < $bufferStartSlice$$3$$;
}
function $JSCompiler_StaticMethods_getApproximateScrollDelta$$($JSCompiler_StaticMethods_getApproximateScrollDelta$self$$, $edge$$112$$) {
  if (null == $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.$_ptUtils$.$_cachedCellWidth$ || null == $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.$_ptUtils$.$_cachedCellHeight$) {
    var $cell$$51_startRow$$9$$ = $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.getComponent().getProperty(AdfRichPivotTable.$__START_ROW_KEY$), $startCol$$5$$ = $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.getComponent().getProperty(AdfRichPivotTable.$__START_COLUMN_KEY$), $cell$$51_startRow$$9$$ = $JSCompiler_StaticMethods__getDataCellFromCellIndex$$($JSCompiler_StaticMethods_getApproximateScrollDelta$self$$, $JSCompiler_StaticMethods_newDataCellIndex$$($cell$$51_startRow$$9$$, 
    $startCol$$5$$));
    $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.$_ptUtils$.$_cachedCellWidth$ = $cell$$51_startRow$$9$$.offsetWidth;
    $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.$_ptUtils$.$_cachedCellHeight$ = $cell$$51_startRow$$9$$.offsetHeight;
  }
  return $edge$$112$$ == AdfPivotTableUtils.$ROW_EDGE$ ? Math.max(17, $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.$_ptUtils$.$_cachedCellHeight$) : $edge$$112$$ == AdfPivotTableUtils.$COLUMN_EDGE$ ? Math.max(1, $JSCompiler_StaticMethods_getApproximateScrollDelta$self$$.$_ptUtils$.$_cachedCellWidth$) : 30;
}
function $JSCompiler_StaticMethods_getScrollDelta$$($JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$, $databodySize$$1_edge$$113$$, $slice$$26_startPos$$1$$) {
  var $pane$$51$$ = $slice$$26_startPos$$1$$ < $JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$.$_ptUtils$.$_splitSlice$[$databodySize$$1_edge$$113$$] ? 0 : 1, $bufferStartSlice$$4_size$$15_sliceInfo$$1$$ = $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$, $databodySize$$1_edge$$113$$, $pane$$51$$), $bufferEndSlice$$4_endPos$$1$$ = $JSCompiler_StaticMethods_getBufferEndSlice$$($JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$, 
  $databodySize$$1_edge$$113$$, $pane$$51$$);
  if ($slice$$26_startPos$$1$$ >= $bufferEndSlice$$4_endPos$$1$$) {
    return $JSCompiler_StaticMethods_getApproximateScrollDelta$$($JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$, $databodySize$$1_edge$$113$$);
  }
  if ($slice$$26_startPos$$1$$ < $bufferStartSlice$$4_size$$15_sliceInfo$$1$$) {
    return 0 - $JSCompiler_StaticMethods_getApproximateScrollDelta$$($JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$, $databodySize$$1_edge$$113$$);
  }
  $bufferStartSlice$$4_size$$15_sliceInfo$$1$$ = $JSCompiler_StaticMethods_getSlicePosition$$($JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$, $databodySize$$1_edge$$113$$, $pane$$51$$, $slice$$26_startPos$$1$$);
  $slice$$26_startPos$$1$$ = $bufferStartSlice$$4_size$$15_sliceInfo$$1$$.position;
  $bufferStartSlice$$4_size$$15_sliceInfo$$1$$ = $bufferStartSlice$$4_size$$15_sliceInfo$$1$$.size;
  $bufferEndSlice$$4_endPos$$1$$ = $slice$$26_startPos$$1$$ + $bufferStartSlice$$4_size$$15_sliceInfo$$1$$;
  $JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$ = $JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$.$_ptUtils$.$_databodyScrollersByEdgeAndPane$[$databodySize$$1_edge$$113$$][$pane$$51$$];
  $databodySize$$1_edge$$113$$ = $databodySize$$1_edge$$113$$ ? $JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$._usableHeight : $JSCompiler_StaticMethods_getScrollDelta$self_scroller$$16$$._usableWidth;
  return $bufferStartSlice$$4_size$$15_sliceInfo$$1$$ <= $databodySize$$1_edge$$113$$ ? 0 > $slice$$26_startPos$$1$$ ? $slice$$26_startPos$$1$$ : $bufferEndSlice$$4_endPos$$1$$ > $databodySize$$1_edge$$113$$ ? $bufferEndSlice$$4_endPos$$1$$ - $databodySize$$1_edge$$113$$ : 0 : $bufferEndSlice$$4_endPos$$1$$ < $databodySize$$1_edge$$113$$ ? $bufferEndSlice$$4_endPos$$1$$ - $databodySize$$1_edge$$113$$ : 0 < $slice$$26_startPos$$1$$ ? $slice$$26_startPos$$1$$ : 0;
}
function $JSCompiler_StaticMethods_getSlicePosition$$($JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$, $edge$$114_useFirstChild$$, $buffer$$12_pane$$52_position$$4$$, $localSlice$$2_slice$$27$$) {
  $buffer$$12_pane$$52_position$$4$$ = $JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$.$_ptUtils$.$_buffers2$[$edge$$114_useFirstChild$$][$buffer$$12_pane$$52_position$$4$$];
  var $i$$198_lastBlock$$1_rows$$19_slices$$ = $buffer$$12_pane$$52_position$$4$$[$buffer$$12_pane$$52_position$$4$$.length - 1], $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ = AdfAgent.AGENT.getIntAttribute($i$$198_lastBlock$$1_rows$$19_slices$$, "_startSlice"), $lastBlockNumSlices$$1$$ = AdfAgent.AGENT.getIntAttribute($i$$198_lastBlock$$1_rows$$19_slices$$, "_numSlices");
  if ($localSlice$$2_slice$$27$$ == $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ + $lastBlockNumSlices$$1$$) {
    return $edge$$114_useFirstChild$$ == AdfPivotTableUtils.$ROW_EDGE$ ? {position:$i$$198_lastBlock$$1_rows$$19_slices$$._top + $i$$198_lastBlock$$1_rows$$19_slices$$._height, size:null} : {position:$i$$198_lastBlock$$1_rows$$19_slices$$._horizPos + $i$$198_lastBlock$$1_rows$$19_slices$$._width, size:null};
  }
  $i$$198_lastBlock$$1_rows$$19_slices$$ = $JSCompiler_StaticMethods_getBlockNumOfSlice$$($JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$, $edge$$114_useFirstChild$$, $localSlice$$2_slice$$27$$);
  if (-1 == $i$$198_lastBlock$$1_rows$$19_slices$$) {
    return null;
  }
  $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ = $buffer$$12_pane$$52_position$$4$$[$i$$198_lastBlock$$1_rows$$19_slices$$];
  $i$$198_lastBlock$$1_rows$$19_slices$$ = $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$.firstChild.rows;
  $buffer$$12_pane$$52_position$$4$$ = $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$[$JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$.$_ptUtils$.$_posAttr$[$edge$$114_useFirstChild$$]];
  $i$$198_lastBlock$$1_rows$$19_slices$$ = $edge$$114_useFirstChild$$ ? $i$$198_lastBlock$$1_rows$$19_slices$$ : $i$$198_lastBlock$$1_rows$$19_slices$$[0].cells;
  $JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$ = $JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$.$_ptUtils$.$offsetSizeAttr$[$edge$$114_useFirstChild$$];
  $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ = AdfAgent.AGENT.getIntAttribute($block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$, "_startSlice");
  $localSlice$$2_slice$$27$$ = $localSlice$$2_slice$$27$$ - $block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ + 1;
  $edge$$114_useFirstChild$$ = $edge$$114_useFirstChild$$ == AdfPivotTableUtils.$ROW_EDGE$ && AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM;
  for ($block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ = 1;$block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$ < $localSlice$$2_slice$$27$$;++$block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$) {
    $buffer$$12_pane$$52_position$$4$$ += $edge$$114_useFirstChild$$ ? $i$$198_lastBlock$$1_rows$$19_slices$$[$block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$].firstChild[$JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$] : $i$$198_lastBlock$$1_rows$$19_slices$$[$block$$43_blockStartSlice$$7_lastBlockStartSlice$$1_sliceNum$$][$JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$];
  }
  return {position:$buffer$$12_pane$$52_position$$4$$, size:$edge$$114_useFirstChild$$ ? $i$$198_lastBlock$$1_rows$$19_slices$$[$localSlice$$2_slice$$27$$].firstChild[$JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$] : $i$$198_lastBlock$$1_rows$$19_slices$$[$localSlice$$2_slice$$27$$][$JSCompiler_StaticMethods_getSlicePosition$self_offsetHeightWidth$$]};
}
function $JSCompiler_StaticMethods_getBlockNumOfSlice$$($JSCompiler_StaticMethods_getBlockNumOfSlice$self_buffer$$13$$, $edge$$115_i$$199$$, $slice$$28$$, $n$$15_pane$$53$$) {
  void 0 === $n$$15_pane$$53$$ && ($n$$15_pane$$53$$ = $slice$$28$$ < $JSCompiler_StaticMethods_getBlockNumOfSlice$self_buffer$$13$$.$_ptUtils$.$_splitSlice$[$edge$$115_i$$199$$] ? 0 : 1);
  $JSCompiler_StaticMethods_getBlockNumOfSlice$self_buffer$$13$$ = $JSCompiler_StaticMethods_getBlockNumOfSlice$self_buffer$$13$$.$_ptUtils$.$_buffers2$[$edge$$115_i$$199$$][$n$$15_pane$$53$$];
  $edge$$115_i$$199$$ = 0;
  for ($n$$15_pane$$53$$ = $JSCompiler_StaticMethods_getBlockNumOfSlice$self_buffer$$13$$.length;$edge$$115_i$$199$$ < $n$$15_pane$$53$$;++$edge$$115_i$$199$$) {
    var $block$$44_blockNumSlices$$2$$ = $JSCompiler_StaticMethods_getBlockNumOfSlice$self_buffer$$13$$[$edge$$115_i$$199$$], $blockStartSlice$$8$$ = AdfAgent.AGENT.getIntAttribute($block$$44_blockNumSlices$$2$$, "_startSlice"), $block$$44_blockNumSlices$$2$$ = AdfAgent.AGENT.getIntAttribute($block$$44_blockNumSlices$$2$$, "_numSlices");
    if ($blockStartSlice$$8$$ <= $slice$$28$$ && $slice$$28$$ < $blockStartSlice$$8$$ + $block$$44_blockNumSlices$$2$$) {
      return $edge$$115_i$$199$$;
    }
  }
  return -1;
}
function $JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$$($JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$self$$) {
  return $JSCompiler_StaticMethods_newDataCellIndexFromCell$$($JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$self$$, $JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$self$$.$_ptUtils$.$_databodyBuffers$[$JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$self$$.$_ptUtils$.$_startPane$[1]][$JSCompiler_StaticMethods_getFirstVisibleDataCellIndex$self$$.$_ptUtils$.$_startPane$[0]][0][0].firstChild.rows[1].cells[1]);
}
function $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_getBufferStartSlice$self$$, $edge$$116$$, $pane$$54$$) {
  return AdfAgent.AGENT.getIntAttribute($JSCompiler_StaticMethods_getBufferStartSlice$self$$.$_ptUtils$.$_buffers2$[$edge$$116$$][$pane$$54$$][0], "_startSlice");
}
function $JSCompiler_StaticMethods_getBufferEndSlice$$($JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$, $edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$, $pane$$55$$) {
  $JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$ = $JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$.$_ptUtils$.$_buffers2$[$edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$][$pane$$55$$];
  $edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$ = $JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$[$JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$.length - 1];
  $JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$ = AdfAgent.AGENT.getIntAttribute($edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$, "_startSlice");
  $edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$ = AdfAgent.AGENT.getIntAttribute($edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$, "_numSlices");
  return $JSCompiler_StaticMethods_getBufferEndSlice$self_buffer$$16_lastBlockStartSlice$$2$$ + $edge$$117_lastBlock$$2_lastBlockNumSlices$$2$$;
}
function $JSCompiler_StaticMethods_getViewportStartSlice$$($JSCompiler_StaticMethods_getViewportStartSlice$self$$, $edge$$118$$, $pane$$56$$) {
  return $JSCompiler_StaticMethods_firstSliceInShiftedViewport$$($JSCompiler_StaticMethods_getViewportStartSlice$self$$.$_ptUtils$, $edge$$118$$, $pane$$56$$, 0).slice;
}
function $JSCompiler_StaticMethods_getViewportEndSlice$$($JSCompiler_StaticMethods_getViewportEndSlice$self$$, $edge$$119$$, $pane$$57$$) {
  return $JSCompiler_StaticMethods_lastSliceInShiftedViewport$$($JSCompiler_StaticMethods_getViewportEndSlice$self$$.$_ptUtils$, $edge$$119$$, $pane$$57$$).slice;
}
function $JSCompiler_StaticMethods_closestSliceInViewport$$($JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$, $edge$$122$$, $slice$$29$$) {
  var $pane$$58$$ = $slice$$29$$ < $JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$.$_ptUtils$.$_splitSlice$[$edge$$122$$] ? 0 : 1, $viewportStartSlice$$2$$ = $JSCompiler_StaticMethods_getViewportStartSlice$$($JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$, $edge$$122$$, $pane$$58$$);
  if ($slice$$29$$ < $viewportStartSlice$$2$$) {
    return $viewportStartSlice$$2$$;
  }
  $JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$ = $JSCompiler_StaticMethods_getViewportEndSlice$$($JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$, $edge$$122$$, $pane$$58$$);
  return $JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$ < $slice$$29$$ ? $JSCompiler_StaticMethods_closestSliceInViewport$self_viewportEndSlice$$ : $slice$$29$$;
}
function $JSCompiler_StaticMethods_closestLayerInViewport$$($JSCompiler_StaticMethods_closestLayerInViewport$self_viewportEndLayer$$, $edge$$123$$, $layer$$39$$) {
  if (0 > $layer$$39$$) {
    return 0;
  }
  $JSCompiler_StaticMethods_closestLayerInViewport$self_viewportEndLayer$$ = ($edge$$123$$ ? $JSCompiler_StaticMethods_closestLayerInViewport$self_viewportEndLayer$$.$_ptUtils$.$_rowLayerCount$ : $JSCompiler_StaticMethods_closestLayerInViewport$self_viewportEndLayer$$.$_ptUtils$.$_colLayerCount$) - 1;
  return $JSCompiler_StaticMethods_closestLayerInViewport$self_viewportEndLayer$$ < $layer$$39$$ ? $JSCompiler_StaticMethods_closestLayerInViewport$self_viewportEndLayer$$ : $layer$$39$$;
}
function $JSCompiler_StaticMethods_overlapsViewport$$($JSCompiler_StaticMethods_overlapsViewport$self$$, $cellIndex$$14$$) {
  var $edge$$124_vss1$$ = $cellIndex$$14$$.edge, $endSlice$$3_startLayer$$4$$ = $cellIndex$$14$$.layer;
  if (($edge$$124_vss1$$ ? $JSCompiler_StaticMethods_overlapsViewport$self$$.$_ptUtils$.$_rowLayerCount$ : $JSCompiler_StaticMethods_overlapsViewport$self$$.$_ptUtils$.$_colLayerCount$) - 1 < $endSlice$$3_startLayer$$4$$) {
    return !1;
  }
  var $startSlice$$10$$ = $cellIndex$$14$$.slice;
  if ($JSCompiler_StaticMethods_getViewportEndSlice$$($JSCompiler_StaticMethods_overlapsViewport$self$$, $edge$$124_vss1$$, 1) < $startSlice$$10$$ || 0 == $JSCompiler_StaticMethods_convertHeaderCellIndexWithEdgeToInfo$$($JSCompiler_StaticMethods_overlapsViewport$self$$, $cellIndex$$14$$) || 0 >= $endSlice$$3_startLayer$$4$$ + $cellIndex$$14$$.depth) {
    return !1;
  }
  var $startPane$$2_ves0$$ = $JSCompiler_StaticMethods_overlapsViewport$self$$.$_ptUtils$.$_startPane$[$edge$$124_vss1$$], $endSlice$$3_startLayer$$4$$ = $startSlice$$10$$ + $cellIndex$$14$$.extent, $vss$$2$$ = $JSCompiler_StaticMethods_getViewportStartSlice$$($JSCompiler_StaticMethods_overlapsViewport$self$$, $edge$$124_vss1$$, $startPane$$2_ves0$$);
  return $endSlice$$3_startLayer$$4$$ <= $vss$$2$$ || 0 == $startPane$$2_ves0$$ && ($startPane$$2_ves0$$ = $JSCompiler_StaticMethods_getViewportEndSlice$$($JSCompiler_StaticMethods_overlapsViewport$self$$, $edge$$124_vss1$$, 0), $edge$$124_vss1$$ = $JSCompiler_StaticMethods_getViewportStartSlice$$($JSCompiler_StaticMethods_overlapsViewport$self$$, $edge$$124_vss1$$, 1), $startPane$$2_ves0$$ < $startSlice$$10$$ && $endSlice$$3_startLayer$$4$$ <= $edge$$124_vss1$$) ? !1 : !0;
}
function $JSCompiler_StaticMethods_containsFocus$$($element$$76$$) {
  for (var $focusElement$$ = AdfPage.PAGE.getActiveDomElement();null != $focusElement$$;) {
    if ($focusElement$$ == $element$$76$$) {
      return !0;
    }
    $focusElement$$ = $focusElement$$.parentNode;
  }
  return !1;
}
function $JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$$($JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$self_databodySelection$$) {
  $JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$self_databodySelection$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$self_databodySelection$$, AdfPivotTableUtils.$DATABODY$);
  return 1 < $JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$self_databodySelection$$.length || 1 == $JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$self_databodySelection$$.length && !$JSCompiler_StaticMethods_isSingleCellRange$$($JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$self_databodySelection$$[0]) ? !0 : !1;
}
function $JSCompiler_StaticMethods_isSingleCellRange$$($range$$34$$) {
  return null == $range$$34$$.endIndex && null == $range$$34$$.endKey;
}
function $JSCompiler_StaticMethods_getHeaderSelectionCursor$$($domElement$$180$$, $edge$$125$$) {
  var $cursor$$4$$ = AdfAgent.AGENT.getAttribute($domElement$$180$$, $edge$$125$$ ? "_row_header_cursor" : "_col_header_cursor");
  return AdfAgent.AGENT.getPlatform() == AdfAgent.WEBKIT_PLATFORM ? "url(" + $cursor$$4$$ + ") 15 16,default" : "url(" + $cursor$$4$$ + "),default";
}
function $JSCompiler_StaticMethods_initializeSelectionAda$$($JSCompiler_StaticMethods_initializeSelectionAda$self$$, $adaTable$$1$$, $nodes$$22_selection$$32$$) {
  if (0 == $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$_adaEdgeExtent$[0] || 0 == $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$_adaEdgeExtent$[1]) {
    $nodes$$22_selection$$32$$ = $JSCompiler_StaticMethods_newSelection$$(), $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$_adaSelectionLayer$ = -1;
  } else {
    for (var $i$$200$$ = 0;$i$$200$$ < $nodes$$22_selection$$32$$.length;++$i$$200$$) {
      var $node$$39$$ = $nodes$$22_selection$$32$$[$i$$200$$];
      if ($node$$39$$.id && -1 != $node$$39$$.id.indexOf(AdfDhtmlPivotTablePeer.$_SELECTION_DIV_ID$)) {
        var $selectionString$$17$$ = $node$$39$$.getAttribute("_selection");
        break;
      }
    }
    $nodes$$22_selection$$32$$ = eval($selectionString$$17$$);
    $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$_adaSelectionLayer$ = $JSCompiler_StaticMethods_getLayerOfInitialSelection$$($JSCompiler_StaticMethods_initializeSelectionAda$self$$, $nodes$$22_selection$$32$$);
    $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$_graphScreenReaderMode$ || ($JSCompiler_StaticMethods_initializeAdaSelectionCheckboxes$$($JSCompiler_StaticMethods_initializeSelectionAda$self$$, $adaTable$$1$$), $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$_adaCheckboxesVisible$ = !0, $JSCompiler_StaticMethods_setEventHandler$$($JSCompiler_StaticMethods_initializeSelectionAda$self$$, AdfDhtmlPivotTablePeer.$_ADA_CLEAR_SELECTION_LINK_ID$, $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$handleAdaClearSelectionLinkClick$), 
    $JSCompiler_StaticMethods_setEventHandler$$($JSCompiler_StaticMethods_initializeSelectionAda$self$$, AdfDhtmlPivotTablePeer.$_ADA_TOGGLE_SELECTION_CHECKBOXES_LINK_ID$, $JSCompiler_StaticMethods_initializeSelectionAda$self$$.$handleAdaToggleSelectionCheckboxVisibilityLinkClick$));
  }
  $JSCompiler_StaticMethods_setSelectionProperty$$($JSCompiler_StaticMethods_initializeSelectionAda$self$$, $nodes$$22_selection$$32$$);
}
function $JSCompiler_StaticMethods_setEventHandler$$($JSCompiler_StaticMethods_setEventHandler$self_handler$$5$$, $element$$77_fullId_id$$200$$, $functionPointer$$) {
  $element$$77_fullId_id$$200$$ = AdfRichUIPeer.CreateSubId($JSCompiler_StaticMethods_setEventHandler$self_handler$$5$$.getComponent().getClientId(), $element$$77_fullId_id$$200$$);
  $element$$77_fullId_id$$200$$ = document.getElementById($element$$77_fullId_id$$200$$);
  $JSCompiler_StaticMethods_setEventHandler$self_handler$$5$$ = $JSCompiler_StaticMethods_setEventHandler$self_handler$$5$$.createCallback($functionPointer$$);
  AdfAgent.getAgent().addBubbleEventListener($element$$77_fullId_id$$200$$, "click", $JSCompiler_StaticMethods_setEventHandler$self_handler$$5$$);
}
function $JSCompiler_StaticMethods_initializeAdaSelectionCheckboxes$$($JSCompiler_StaticMethods_initializeAdaSelectionCheckboxes$self$$, $adaTable$$2$$) {
  for (var $agent$$72$$ = AdfAgent.getAgent(), $handler$$6$$ = $JSCompiler_StaticMethods_initializeAdaSelectionCheckboxes$self$$.createCallback($JSCompiler_StaticMethods_initializeAdaSelectionCheckboxes$self$$.$handleAdaSelectionCheckboxChange$), $inputs$$ = $adaTable$$2$$.getElementsByTagName("input"), $checkboxes$$ = [], $i$$201$$ = 0;$i$$201$$ < $inputs$$.length;++$i$$201$$) {
    var $input$$7$$ = $inputs$$[$i$$201$$];
    $input$$7$$.id && -1 != $input$$7$$.id.indexOf(AdfDhtmlPivotTablePeer.$_ADA_SELECTION_CHECKBOX_ID$) && ($checkboxes$$.push($input$$7$$), $agent$$72$$.addBubbleEventListener($input$$7$$, "click", $handler$$6$$));
  }
  $JSCompiler_StaticMethods_initializeAdaSelectionCheckboxes$self$$.$_adaSelectionCheckboxes$ = $checkboxes$$;
}
$JSCompiler_prototypeAlias$$.$handleAdaSelectionCheckboxChange$ = function $$JSCompiler_prototypeAlias$$$$handleAdaSelectionCheckboxChange$$($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$) {
  $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = AdfAgent.getAgent().getEventTarget($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$);
  var $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$;
  var $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$ = $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$.id.split("::"), $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ = $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$.length;
  $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ = Number($clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$[$cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ - 3]);
  var $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$ = Number($clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$[$cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ - 2]), $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$ = Number($clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$[$cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ - 
  1]);
  if ($cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ == AdfPivotTableUtils.$DATABODY$) {
    $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$, $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$);
  } else {
    var $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ = $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$.parentNode.parentNode, $coords$$inline_3636$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$);
    $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ = $JSCompiler_StaticMethods_newHeaderCellIndexWithEdge$$($cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$, $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$, $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$, $JSCompiler_StaticMethods_getMemberExtent$$($cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$, 
    $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$, $coords$$inline_3636$$));
  }
  if ($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$.checked) {
    $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$ = $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$, $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ = $JSCompiler_StaticMethods_getSelectedEdge$$(this), $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ = $JSCompiler_StaticMethods_getEdge$$($cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$), 
    $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$ = !1, null == $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ ? $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = !1 : $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ != $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ || $cell$$inline_3635_length$$inline_3631_selectedEdge$$inline_3641$$ != AdfPivotTableUtils.$DATABODY$ && 
    this.$_adaSelectionLayer$ != $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$.layer ? ($JSCompiler_StaticMethods_clearAdaCheckboxes$$(this, $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$), $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = !1, $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$ = !0) : $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = 
    this.isSelected($cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$), $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ || ($cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ == AdfPivotTableUtils.$DATABODY$ ? ($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = $JSCompiler_StaticMethods_newDataCellRange$$($cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$), 
    this.$_adaSelectionLayer$ = -1) : ($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$), this.$_adaSelectionLayer$ = $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$.layer), $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$ = 
    $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$ ? $JSCompiler_StaticMethods_newSelection$$() : $JSCompiler_StaticMethods_copySelection$$(this), $JSCompiler_StaticMethods_getSelectionForEdge$$(this, $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$, $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$).push($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$), 
    $JSCompiler_StaticMethods_setSelectionProperty$$(this, $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$));
  } else {
    $cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$ = $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$;
    $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$ = $JSCompiler_StaticMethods_getEdge$$($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$);
    $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$ = $JSCompiler_StaticMethods_copySelection$$(this);
    $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$(this, $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$, $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$);
    for ($clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$ = $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$.length - 1;0 <= $clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$;--$clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$) {
      if ($JSCompiler_StaticMethods_cellIndexEquals$$($cellIndex$$inline_3649_checkbox_domEvent$$73_isSelected$$inline_3643_range$$inline_3645$$, $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$[$clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$].startIndex)) {
        $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$.splice($clearSelection$$inline_3644_colOrSlice$$inline_3634_i$$inline_3653_items$$inline_3630$$, 1);
        0 == $cellIndex$$inline_3639_edge$$inline_3650_rowOrLayer$$inline_3633_selection$$inline_3646_selectionSet$$inline_3652$$.length && (this.$_adaSelectionLayer$ = -1);
        break;
      }
    }
    $JSCompiler_StaticMethods_setSelectionProperty$$(this, $cellEdge$$inline_3642_cellIndex$$15_edge$$inline_3632_selection$$inline_3651$$);
  }
};
$JSCompiler_prototypeAlias$$.$handleAdaClearSelectionLinkClick$ = function $$JSCompiler_prototypeAlias$$$$handleAdaClearSelectionLinkClick$$() {
  $JSCompiler_StaticMethods_clearAdaCheckboxes$$(this);
  this.$_adaSelectionLayer$ = -1;
  $JSCompiler_StaticMethods_setSelectionProperty$$(this, $JSCompiler_StaticMethods_newSelection$$());
};
$JSCompiler_prototypeAlias$$.$handleAdaToggleSelectionCheckboxVisibilityLinkClick$ = function $$JSCompiler_prototypeAlias$$$$handleAdaToggleSelectionCheckboxVisibilityLinkClick$$($displayType_domEvent$$75$$) {
  var $checkboxes$$1_link$$3$$ = AdfAgent.getAgent().getEventTarget($displayType_domEvent$$75$$), $i$$202_linkText$$;
  this.$_adaCheckboxesVisible$ ? ($i$$202_linkText$$ = $checkboxes$$1_link$$3$$.getAttribute("_showText"), $displayType_domEvent$$75$$ = "none") : ($i$$202_linkText$$ = $checkboxes$$1_link$$3$$.getAttribute("_hideText"), $displayType_domEvent$$75$$ = "");
  $checkboxes$$1_link$$3$$.firstChild.data = $i$$202_linkText$$;
  $checkboxes$$1_link$$3$$ = this.$_adaSelectionCheckboxes$;
  for ($i$$202_linkText$$ = 0;$i$$202_linkText$$ < $checkboxes$$1_link$$3$$.length;++$i$$202_linkText$$) {
    $checkboxes$$1_link$$3$$[$i$$202_linkText$$].style.display = $displayType_domEvent$$75$$;
  }
  this.$_adaCheckboxesVisible$ = !this.$_adaCheckboxesVisible$;
};
function $JSCompiler_StaticMethods_clearAdaCheckboxes$$($JSCompiler_StaticMethods_clearAdaCheckboxes$self$$, $exceptCheckbox$$) {
  for (var $checkboxes$$2$$ = $JSCompiler_StaticMethods_clearAdaCheckboxes$self$$.$_adaSelectionCheckboxes$, $i$$203$$ = 0;$i$$203$$ < $checkboxes$$2$$.length;++$i$$203$$) {
    var $checkbox$$1$$ = $checkboxes$$2$$[$i$$203$$];
    $checkbox$$1$$ != $exceptCheckbox$$ && $checkbox$$1$$.checked && ($checkbox$$1$$.checked = !1);
  }
}
function $JSCompiler_StaticMethods_getLayerOfInitialSelection$$($JSCompiler_StaticMethods_getLayerOfInitialSelection$self$$, $selection$$35$$) {
  var $currentRange$$6_layer$$40$$ = $JSCompiler_StaticMethods_getCurrentRange$$($JSCompiler_StaticMethods_getLayerOfInitialSelection$self$$, $selection$$35$$);
  if (null == $currentRange$$6_layer$$40$$) {
    return -1;
  }
  $currentRange$$6_layer$$40$$ = $currentRange$$6_layer$$40$$.startIndex.layer;
  return null == $currentRange$$6_layer$$40$$ ? -1 : $currentRange$$6_layer$$40$$;
}
;