function $AdfIEEditingAgent$$() {
  this.Init()
}
$goog$exportSymbol$$("AdfIEEditingAgent", $AdfIEEditingAgent$$);
$AdfObject$$.$createSubclass$($AdfIEEditingAgent$$, $AdfEditingAgent$$);
$AdfIEEditingAgent$$.prototype.$getColor$ = function $$AdfIEEditingAgent$$$$$getColor$$($value$$100$$) {
  var $converter$$2_len$$6$$ = $JSCompiler_alias_NULL$$;
  if(isNaN($value$$100$$)) {
    $converter$$2_len$$6$$ = new TrColorConverter(["#RRGGBB"], $JSCompiler_alias_FALSE$$)
  }else {
    $value$$100$$ = $value$$100$$.toString(16);
    for($converter$$2_len$$6$$ = $value$$100$$.length;6 > $converter$$2_len$$6$$;) {
      $value$$100$$ = "0" + $value$$100$$, $converter$$2_len$$6$$++
    }
    $value$$100$$ = "#" + $value$$100$$;
    $converter$$2_len$$6$$ = new TrColorConverter(["#BBGGRR"], $JSCompiler_alias_FALSE$$)
  }
  try {
    $value$$100$$ = $converter$$2_len$$6$$.getAsObject($value$$100$$)
  }catch($e$$67$$) {
    $value$$100$$ = $JSCompiler_alias_NULL$$
  }
  return $value$$100$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.getColor", {$getColor$:$AdfIEEditingAgent$$.prototype.$getColor$});
$AdfIEEditingAgent$$.prototype.$insertHtmlAtSelection$ = function $$AdfIEEditingAgent$$$$$insertHtmlAtSelection$$($inlineFrame$$38$$, $htmlFragment$$3$$) {
  if("TEXTAREA" == $inlineFrame$$38$$.nodeName || "INPUT" == $inlineFrame$$38$$.nodeName) {
    if($inlineFrame$$38$$.selectionStart) {
      var $newStart$$2_saveActive_selectionRange$$5$$ = $inlineFrame$$38$$.selectionStart + $htmlFragment$$3$$.length;
      $inlineFrame$$38$$.value = $inlineFrame$$38$$.value.substr(0, $inlineFrame$$38$$.selectionStart) + $htmlFragment$$3$$ + $inlineFrame$$38$$.value.substr($inlineFrame$$38$$.selectionEnd);
      $inlineFrame$$38$$.selectionStart = $newStart$$2_saveActive_selectionRange$$5$$;
      $inlineFrame$$38$$.selectionEnd = $newStart$$2_saveActive_selectionRange$$5$$
    }else {
      $newStart$$2_saveActive_selectionRange$$5$$ = document.activeElement;
      $inlineFrame$$38$$.setActive();
      var $parentElement$$2_textRange$$ = document.selection.createRange();
      $parentElement$$2_textRange$$.text = $htmlFragment$$3$$;
      $parentElement$$2_textRange$$.moveEnd("textedit");
      $parentElement$$2_textRange$$.collapse();
      $parentElement$$2_textRange$$.select();
      $newStart$$2_saveActive_selectionRange$$5$$.setActive()
    }
  }else {
    if($newStart$$2_saveActive_selectionRange$$5$$ = this.$getSelectionRange$($inlineFrame$$38$$), $newStart$$2_saveActive_selectionRange$$5$$ == $JSCompiler_alias_NULL$$) {
      $AdfLogger$$.$LOGGER$.severe("IE - Unexpected null selection for insert command.")
    }else {
      var $parentElement$$2_textRange$$ = $newStart$$2_saveActive_selectionRange$$5$$.parentElement(), $body$$6$$;
      $body$$6$$ = this.$getInlineFrameDocument$($inlineFrame$$38$$).body;
      for(var $insideTheEditor$$ = $JSCompiler_alias_FALSE$$;$parentElement$$2_textRange$$ != $JSCompiler_alias_NULL$$;) {
        if($parentElement$$2_textRange$$ == $body$$6$$) {
          $insideTheEditor$$ = $JSCompiler_alias_TRUE$$;
          break
        }
        $parentElement$$2_textRange$$ = $parentElement$$2_textRange$$.parentNode
      }
      $insideTheEditor$$ || ($newStart$$2_saveActive_selectionRange$$5$$ = $body$$6$$.createTextRange(), $newStart$$2_saveActive_selectionRange$$5$$.collapse());
      $newStart$$2_saveActive_selectionRange$$5$$.pasteHTML($htmlFragment$$3$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.insertHtmlAtSelection", {$insertHtmlAtSelection$:$AdfIEEditingAgent$$.prototype.$insertHtmlAtSelection$});
$AdfIEEditingAgent$$.prototype.$handleTab$ = function $$AdfIEEditingAgent$$$$$handleTab$$($inlineFrame$$39$$, $keyDownEvt$$2$$) {
  $keyDownEvt$$2$$.shiftKey ? $AdfFocusUtils$$.$focusPreviousTabStop$($inlineFrame$$39$$) : $AdfFocusUtils$$.$focusNextTabStop$($inlineFrame$$39$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.handleTab", {$handleTab$:$AdfIEEditingAgent$$.prototype.$handleTab$});
$AdfIEEditingAgent$$.prototype.$getInlineFrameContent$ = function $$AdfIEEditingAgent$$$$$getInlineFrameContent$$($inlineFrame$$40$$, $keepOriginal$$2$$) {
  var $body$$7$$ = this.$getInlineFrameDocument$($inlineFrame$$40$$).body;
  if(!$keepOriginal$$2$$) {
    var $node$$47_nodes$$3_rteTextCnt$$ = $body$$7$$.childNodes;
    if($node$$47_nodes$$3_rteTextCnt$$ && 1 == $node$$47_nodes$$3_rteTextCnt$$.length && ($node$$47_nodes$$3_rteTextCnt$$ = $node$$47_nodes$$3_rteTextCnt$$[0], "P" == $node$$47_nodes$$3_rteTextCnt$$.nodeName && "" == $node$$47_nodes$$3_rteTextCnt$$.innerText)) {
      return""
    }
    $node$$47_nodes$$3_rteTextCnt$$ = $body$$7$$.textContent;
    if(!$node$$47_nodes$$3_rteTextCnt$$ || "" == $node$$47_nodes$$3_rteTextCnt$$) {
      return""
    }
  }
  return $body$$7$$.innerHTML
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.getInlineFrameContent", {$getInlineFrameContent$:$AdfIEEditingAgent$$.prototype.$getInlineFrameContent$});
$AdfIEEditingAgent$$.prototype.$isDesignModeReloadingFrame$ = function $$AdfIEEditingAgent$$$$$isDesignModeReloadingFrame$$() {
  return!this.$useContentEditable$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.isDesignModeReloadingFrame", {$isDesignModeReloadingFrame$:$AdfIEEditingAgent$$.prototype.$isDesignModeReloadingFrame$});
$AdfIEEditingAgent$$.prototype.$useContentEditable$ = function $$AdfIEEditingAgent$$$$$useContentEditable$$() {
  return 9 <= $AdfAgent$$.$AGENT$.$getVersion$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.useContentEditable", {$useContentEditable$:$AdfIEEditingAgent$$.prototype.$useContentEditable$});
$AdfIEEditingAgent$$.prototype.$getDefaultContent$ = $JSCompiler_returnArg$$("\x3cP\x3e\x3c/P\x3e");
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.getDefaultContent", {$getDefaultContent$:$AdfIEEditingAgent$$.prototype.$getDefaultContent$});
$AdfIEEditingAgent$$.prototype.$updateValueHistory$ = function $$AdfIEEditingAgent$$$$$updateValueHistory$$($body$$8_component$$196$$, $inlineFrame$$41$$, $newValue$$19_newerValue$$) {
  var $oldValue$$14$$ = $body$$8_component$$196$$.$_oldValue$;
  if($oldValue$$14$$ != $newValue$$19_newerValue$$) {
    delete $body$$8_component$$196$$.$_redoStack$;
    $newValue$$19_newerValue$$ == $JSCompiler_alias_NULL$$ && ($newValue$$19_newerValue$$ = "");
    $body$$8_component$$196$$.$_oldValue$ = $newValue$$19_newerValue$$;
    var $undoStack$$ = $body$$8_component$$196$$.$_undoStack$;
    $undoStack$$ == $JSCompiler_alias_NULL$$ ? ($undoStack$$ = [], $body$$8_component$$196$$.$_undoStack$ = $undoStack$$) : ($oldValue$$14$$ == $JSCompiler_alias_NULL$$ && ($oldValue$$14$$ = ""), $body$$8_component$$196$$ = this.$getInlineFrameDocument$($inlineFrame$$41$$).body, $undoStack$$.push($JSCompiler_StaticMethods__getDelta$$($oldValue$$14$$, $newValue$$19_newerValue$$, $body$$8_component$$196$$.scrollLeft, $body$$8_component$$196$$.scrollTop)), 25 < $undoStack$$.length && $undoStack$$.shift())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.updateValueHistory", {$updateValueHistory$:$AdfIEEditingAgent$$.prototype.$updateValueHistory$});
$AdfIEEditingAgent$$.prototype.$ExecuteUndo$ = function $$AdfIEEditingAgent$$$$$ExecuteUndo$$($component$$197$$, $inlineFrame$$42_undoStack$$1$$, $doc$$20$$) {
  $inlineFrame$$42_undoStack$$1$$ = $component$$197$$.$_undoStack$;
  if($inlineFrame$$42_undoStack$$1$$ != $JSCompiler_alias_NULL$$ && 0 < $inlineFrame$$42_undoStack$$1$$.length) {
    var $redoStack$$ = $component$$197$$.$_redoStack$;
    $redoStack$$ == $JSCompiler_alias_NULL$$ && ($redoStack$$ = [], $component$$197$$.$_redoStack$ = $redoStack$$);
    $JSCompiler_StaticMethods__executeHistoryMove$$($component$$197$$, $doc$$20$$, $inlineFrame$$42_undoStack$$1$$, $redoStack$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.ExecuteUndo", {$ExecuteUndo$:$AdfIEEditingAgent$$.prototype.$ExecuteUndo$});
$AdfIEEditingAgent$$.prototype.$ExecuteRedo$ = function $$AdfIEEditingAgent$$$$$ExecuteRedo$$($component$$198$$, $inlineFrame$$43_redoStack$$1$$, $doc$$21$$) {
  $inlineFrame$$43_redoStack$$1$$ = $component$$198$$.$_redoStack$;
  if($inlineFrame$$43_redoStack$$1$$ != $JSCompiler_alias_NULL$$ && 0 < $inlineFrame$$43_redoStack$$1$$.length) {
    var $undoStack$$2$$ = $component$$198$$.$_undoStack$;
    $undoStack$$2$$ == $JSCompiler_alias_NULL$$ && ($undoStack$$2$$ = [], $component$$198$$.$_undoStack$ = $undoStack$$2$$);
    $JSCompiler_StaticMethods__executeHistoryMove$$($component$$198$$, $doc$$21$$, $inlineFrame$$43_redoStack$$1$$, $undoStack$$2$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.ExecuteRedo", {$ExecuteRedo$:$AdfIEEditingAgent$$.prototype.$ExecuteRedo$});
$AdfIEEditingAgent$$.prototype.$QueryUndoEnabled$ = function $$AdfIEEditingAgent$$$$$QueryUndoEnabled$$($component$$199_stack$$) {
  $component$$199_stack$$ = $component$$199_stack$$.$_undoStack$;
  return $component$$199_stack$$ == $JSCompiler_alias_NULL$$ || 0 == $component$$199_stack$$.length ? $JSCompiler_alias_FALSE$$ : $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.QueryUndoEnabled", {$QueryUndoEnabled$:$AdfIEEditingAgent$$.prototype.$QueryUndoEnabled$});
$AdfIEEditingAgent$$.prototype.$QueryRedoEnabled$ = function $$AdfIEEditingAgent$$$$$QueryRedoEnabled$$($component$$200_stack$$1$$) {
  $component$$200_stack$$1$$ = $component$$200_stack$$1$$.$_redoStack$;
  return $component$$200_stack$$1$$ == $JSCompiler_alias_NULL$$ || 0 == $component$$200_stack$$1$$.length ? $JSCompiler_alias_FALSE$$ : $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.QueryRedoEnabled", {$QueryRedoEnabled$:$AdfIEEditingAgent$$.prototype.$QueryRedoEnabled$});
$AdfIEEditingAgent$$.prototype.$IsNodeWrappingRange$ = function $$AdfIEEditingAgent$$$$$IsNodeWrappingRange$$($range$$10$$, $node$$48$$) {
  var $rangeLength_rangeObject$$;
  try {
    $rangeLength_rangeObject$$ = $range$$10$$.length
  }catch($e$$68$$) {
    $rangeLength_rangeObject$$ = -1
  }
  var $nodeRange$$1$$ = $node$$48$$.ownerDocument.body.createTextRange();
  $nodeRange$$1$$.moveToElementText($node$$48$$);
  if(-1 < $rangeLength_rangeObject$$) {
    if($range$$10$$ != $JSCompiler_alias_NULL$$ && 1 == $range$$10$$.length) {
      $rangeLength_rangeObject$$ = $range$$10$$.item(0).ownerDocument.body.createTextRange();
      $rangeLength_rangeObject$$.moveToElementText($range$$10$$.item(0).parentElement);
      var $left$$4$$ = $nodeRange$$1$$.boundingLeft == $rangeLength_rangeObject$$.boundingLeft, $top$$3$$ = $nodeRange$$1$$.boundingTop == $rangeLength_rangeObject$$.boundingTop, $width$$17$$ = $nodeRange$$1$$.boundingWidth == $rangeLength_rangeObject$$.boundingWidth, $offsetLeft$$1$$ = $nodeRange$$1$$.offsetLeft == $rangeLength_rangeObject$$.offsetLeft, $offsetTop$$1$$ = $nodeRange$$1$$.offsetTop == $nodeRange$$1$$.offsetTop;
      if($nodeRange$$1$$.boundingHeight == $rangeLength_rangeObject$$.boundingHeight && $left$$4$$ && $top$$3$$ && $width$$17$$ && $offsetLeft$$1$$ && $offsetTop$$1$$) {
        return $JSCompiler_alias_TRUE$$
      }
    }
    return $JSCompiler_alias_FALSE$$
  }
  return $nodeRange$$1$$.inRange($range$$10$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.IsNodeWrappingRange", {$IsNodeWrappingRange$:$AdfIEEditingAgent$$.prototype.$IsNodeWrappingRange$});
$AdfIEEditingAgent$$.prototype.$getSelectionRange$ = function $$AdfIEEditingAgent$$$$$getSelectionRange$$($inlineFrame$$46_selection$$7$$) {
  $inlineFrame$$46_selection$$7$$ = this.$_getWindowSelection$($inlineFrame$$46_selection$$7$$);
  if($inlineFrame$$46_selection$$7$$.getRangeAt) {
    if(0 < $inlineFrame$$46_selection$$7$$.rangeCount) {
      return $inlineFrame$$46_selection$$7$$.getRangeAt(0)
    }
  }else {
    return $inlineFrame$$46_selection$$7$$.createRange()
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.getSelectionRange", {$getSelectionRange$:$AdfIEEditingAgent$$.prototype.$getSelectionRange$});
$AdfIEEditingAgent$$.prototype.setSelectionRange = function $$AdfIEEditingAgent$$$$setSelectionRange$($inlineFrame$$47$$, $range$$11$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$47$$, "IFRAME");
  var $selection$$8$$ = this.$_getWindowSelection$($inlineFrame$$47$$);
  $selection$$8$$ && $selection$$8$$.getRangeAt ? ($selection$$8$$.removeAllRanges(), $selection$$8$$.addRange($range$$11$$)) : $range$$11$$.select()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.setSelectionRange", {setSelectionRange:$AdfIEEditingAgent$$.prototype.setSelectionRange});
$AdfIEEditingAgent$$.prototype.$_getWindowSelection$ = function $$AdfIEEditingAgent$$$$$_getWindowSelection$$($inlineFrame$$48$$) {
  var $selection$$9$$ = $JSCompiler_alias_NULL$$;
  return $selection$$9$$ = this.$getInlineFrameDocument$($inlineFrame$$48$$).selection ? this.$getInlineFrameDocument$($inlineFrame$$48$$).selection : this.$getInlineFrameDocument$($inlineFrame$$48$$).getSelection()
};
function $JSCompiler_StaticMethods__getDelta$$($oldValue$$15$$, $newValue$$20$$, $scrollLeft$$10$$, $scrollTop$$4$$) {
  var $oldValueLength$$ = $oldValue$$15$$.length, $newValueLength$$ = $newValue$$20$$.length, $i$$80$$, $lastCommonOldIndex_oldChar$$, $newChar$$;
  for($i$$80$$ = 0;$i$$80$$ < $oldValueLength$$ && $i$$80$$ < $newValueLength$$ && !($lastCommonOldIndex_oldChar$$ = $oldValue$$15$$.charAt($i$$80$$), $newChar$$ = $newValue$$20$$.charAt($i$$80$$), $lastCommonOldIndex_oldChar$$ != $newChar$$);$i$$80$$++) {
  }
  var $firstDifferenceIndex$$ = $i$$80$$, $deltaLengthInNewValue$$ = 0, $removedChars$$ = "";
  $lastCommonOldIndex_oldChar$$ = $JSCompiler_alias_VOID$$;
  for($i$$80$$ = 0;;) {
    var $oldIndex$$ = $oldValueLength$$ - $i$$80$$, $newIndex$$ = $newValueLength$$ - $i$$80$$;
    if($oldIndex$$ < $firstDifferenceIndex$$) {
      $deltaLengthInNewValue$$ = 1 + $newIndex$$ - $firstDifferenceIndex$$;
      $removedChars$$ = $oldValue$$15$$.substring($firstDifferenceIndex$$, $lastCommonOldIndex_oldChar$$);
      break
    }
    if($newIndex$$ < $firstDifferenceIndex$$) {
      $deltaLengthInNewValue$$ = 1 + $newIndex$$ - $firstDifferenceIndex$$;
      $removedChars$$ = $oldValue$$15$$.substring($firstDifferenceIndex$$, 1 + $oldIndex$$);
      break
    }
    $lastCommonOldIndex_oldChar$$ = $oldValue$$15$$.charAt($oldIndex$$);
    $newChar$$ = $newValue$$20$$.charAt($newIndex$$);
    if($lastCommonOldIndex_oldChar$$ != $newChar$$) {
      $deltaLengthInNewValue$$ = 1 + $newIndex$$ - $firstDifferenceIndex$$;
      $removedChars$$ = $oldValue$$15$$.substring($firstDifferenceIndex$$, 1 + $oldIndex$$);
      break
    }
    $lastCommonOldIndex_oldChar$$ = $oldIndex$$;
    $i$$80$$++
  }
  return{firstDifferenceIndex:$firstDifferenceIndex$$, deltaLengthInNewValue:$deltaLengthInNewValue$$, removedChars:$removedChars$$, scrollLeft:$scrollLeft$$10$$, scrollTop:$scrollTop$$4$$}
}
function $JSCompiler_StaticMethods__executeHistoryMove$$($body$$9_component$$201$$, $doc$$22_scrollLeft$$11$$, $fromStack_topEntry$$, $toStack$$) {
  $fromStack_topEntry$$ = $fromStack_topEntry$$.pop();
  var $oldValue$$16$$ = $body$$9_component$$201$$.$_oldValue$;
  if($fromStack_topEntry$$ != $JSCompiler_alias_NULL$$ && $oldValue$$16$$ != $JSCompiler_alias_NULL$$) {
    var $newValue$$21$$ = $oldValue$$16$$, $firstDifferenceIndex$$1_scrollTop$$5$$ = $fromStack_topEntry$$.firstDifferenceIndex, $newValue$$21$$ = $newValue$$21$$.substring(0, $firstDifferenceIndex$$1_scrollTop$$5$$) + $fromStack_topEntry$$.removedChars + $newValue$$21$$.substring($firstDifferenceIndex$$1_scrollTop$$5$$ + $fromStack_topEntry$$.deltaLengthInNewValue);
    $body$$9_component$$201$$.$_oldValue$ = $newValue$$21$$;
    $body$$9_component$$201$$ = $doc$$22_scrollLeft$$11$$.body;
    $doc$$22_scrollLeft$$11$$ = $body$$9_component$$201$$.scrollLeft;
    $firstDifferenceIndex$$1_scrollTop$$5$$ = $body$$9_component$$201$$.scrollTop;
    $toStack$$.push($JSCompiler_StaticMethods__getDelta$$($oldValue$$16$$, $newValue$$21$$, $doc$$22_scrollLeft$$11$$, $firstDifferenceIndex$$1_scrollTop$$5$$));
    $body$$9_component$$201$$.innerHTML = $newValue$$21$$;
    $doc$$22_scrollLeft$$11$$ = $fromStack_topEntry$$.scrollLeft;
    $firstDifferenceIndex$$1_scrollTop$$5$$ = $fromStack_topEntry$$.scrollTop;
    $body$$9_component$$201$$.scrollLeft = $doc$$22_scrollLeft$$11$$;
    $body$$9_component$$201$$.scrollTop = $firstDifferenceIndex$$1_scrollTop$$5$$
  }
}
$AdfIEEditingAgent$$.prototype.$getSelectionRangeString$ = function $$AdfIEEditingAgent$$$$$getSelectionRangeString$$($selectionRange$$6$$) {
  return $selectionRange$$6$$ ? $selectionRange$$6$$.text : ""
};
$AdfObject$$.$exportPrototypeSymbol$("AdfIEEditingAgent.prototype.getSelectionRangeString", {$getSelectionRangeString$:$AdfIEEditingAgent$$.prototype.$getSelectionRangeString$});
