function $AdfGeckoEditingAgent$$() {
  this.Init()
}
$goog$exportSymbol$$("AdfGeckoEditingAgent", $AdfGeckoEditingAgent$$);
$AdfObject$$.$createSubclass$($AdfGeckoEditingAgent$$, $AdfEditingAgent$$);
$AdfGeckoEditingAgent$$.$InitClass$ = function $$AdfGeckoEditingAgent$$$$InitClass$$() {
  this.$_cmdBackColor$ = "backcolor";
  this.$_cmdHiliteColor$ = "hilitecolor";
  this.$_dummyBrTagAtr$ = "data-adf-tmp-rte-enabler";
  this.$_dummyBrTagPrt1$ = "\x3cbr " + this.$_dummyBrTagAtr$;
  this.$_dummyBrTag$ = this.$_dummyBrTagPrt1$ + '\x3d"true"\x3e'
};
$goog$exportSymbol$$("AdfGeckoEditingAgent.InitClass", $AdfGeckoEditingAgent$$.$InitClass$);
$AdfGeckoEditingAgent$$.prototype.$getInlineFrameContent$ = function $$AdfGeckoEditingAgent$$$$$getInlineFrameContent$$($inlineFrame$$24$$, $keepOriginal$$1$$) {
  var $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ = this.$getInlineFrameDocument$($inlineFrame$$24$$), $body$$5_retTextWthDummyBr$$ = $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$.body;
  if(!$keepOriginal$$1$$) {
    var $dummyByPosS_nodes$$1$$ = $body$$5_retTextWthDummyBr$$.childNodes;
    if($dummyByPosS_nodes$$1$$) {
      var $breaks_node$$28$$ = $body$$5_retTextWthDummyBr$$.getElementsByTagName("BR"), $length$$24$$ = $dummyByPosS_nodes$$1$$.length;
      if($breaks_node$$28$$ && 1 >= $breaks_node$$28$$.length && 1 < $length$$24$$) {
        for(;0 < $length$$24$$;) {
          $breaks_node$$28$$ = $dummyByPosS_nodes$$1$$[0], 1 == $breaks_node$$28$$.nodeType && 0 == $breaks_node$$28$$.offsetWidth ? ($body$$5_retTextWthDummyBr$$.removeChild($breaks_node$$28$$), $length$$24$$--) : $length$$24$$ = 0
        }
        0 == $body$$5_retTextWthDummyBr$$.childNodes.length && ($brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ = $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$.createElement("br"), $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$.setAttribute($AdfGeckoEditingAgent$$.$_dummyBrTagAtr$, "true"), $body$$5_retTextWthDummyBr$$.appendChild($brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$))
      }
      $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ = $JSCompiler_alias_FALSE$$;
      if(1 == $dummyByPosS_nodes$$1$$.length && "BR" == $dummyByPosS_nodes$$1$$[0].nodeName) {
        return""
      }
      1 <= $dummyByPosS_nodes$$1$$.length && "BR" == $dummyByPosS_nodes$$1$$[$dummyByPosS_nodes$$1$$.length - 1].nodeName && "true" == $dummyByPosS_nodes$$1$$[$dummyByPosS_nodes$$1$$.length - 1].getAttribute($AdfGeckoEditingAgent$$.$_dummyBrTagAtr$) ? $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ = $JSCompiler_alias_TRUE$$ : $AdfDomUtils$$.$getLastFilteredElement$($body$$5_retTextWthDummyBr$$, $JSCompiler_alias_TRUE$$, this.$isDummyBrFnc$, $JSCompiler_alias_NULL$$) && ($brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ = 
      $JSCompiler_alias_TRUE$$);
      if($brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$) {
        return $body$$5_retTextWthDummyBr$$ = $body$$5_retTextWthDummyBr$$.innerHTML, $dummyByPosS_nodes$$1$$ = $body$$5_retTextWthDummyBr$$.lastIndexOf($AdfGeckoEditingAgent$$.$_dummyBrTagPrt1$), $brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ = $body$$5_retTextWthDummyBr$$.indexOf("\x3e", $dummyByPosS_nodes$$1$$ + $AdfGeckoEditingAgent$$.$_dummyBrTagPrt1$.length), $body$$5_retTextWthDummyBr$$.substring(0, $dummyByPosS_nodes$$1$$) + $body$$5_retTextWthDummyBr$$.substring($brElement_dummyBrElementExists_dummyByPosE_theDocument$$3$$ + 
        1)
      }
    }
  }
  return $body$$5_retTextWthDummyBr$$.innerHTML
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.getInlineFrameContent", {$getInlineFrameContent$:$AdfGeckoEditingAgent$$.prototype.$getInlineFrameContent$});
$AdfGeckoEditingAgent$$.prototype.$isDummyBrFnc$ = function $$AdfGeckoEditingAgent$$$$$isDummyBrFnc$$($element$$75$$) {
  return"BR" == $element$$75$$.nodeName && "true" == $element$$75$$.getAttribute($AdfGeckoEditingAgent$$.$_dummyBrTagAtr$) ? $AdfDomUtils$$.$FILTER_ACCEPT$ : $AdfDomUtils$$.$FILTER_SKIP$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.isDummyBrFnc", {$isDummyBrFnc$:$AdfGeckoEditingAgent$$.prototype.$isDummyBrFnc$});
$AdfGeckoEditingAgent$$.prototype.$getDefaultContent$ = function $$AdfGeckoEditingAgent$$$$$getDefaultContent$$() {
  return $AdfGeckoEditingAgent$$.$_dummyBrTag$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.getDefaultContent", {$getDefaultContent$:$AdfGeckoEditingAgent$$.prototype.$getDefaultContent$});
$AdfGeckoEditingAgent$$.prototype.$toBrowserSpecificCommand$ = function $$AdfGeckoEditingAgent$$$$$toBrowserSpecificCommand$$($command$$5$$) {
  var $newCommand$$ = $command$$5$$;
  $command$$5$$ == $AdfGeckoEditingAgent$$.$_cmdBackColor$ && ($newCommand$$ = $AdfGeckoEditingAgent$$.$_cmdHiliteColor$);
  return $newCommand$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.toBrowserSpecificCommand", {$toBrowserSpecificCommand$:$AdfGeckoEditingAgent$$.prototype.$toBrowserSpecificCommand$});
$AdfGeckoEditingAgent$$.prototype.$getFocusBlurElement$ = function $$AdfGeckoEditingAgent$$$$$getFocusBlurElement$$($inlineFrame$$25$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$25$$, "IFRAME");
  return this.$getInlineFrameDocument$($inlineFrame$$25$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.getFocusBlurElement", {$getFocusBlurElement$:$AdfGeckoEditingAgent$$.prototype.$getFocusBlurElement$});
$AdfGeckoEditingAgent$$.prototype.$getSelectionRange$ = function $$AdfGeckoEditingAgent$$$$$getSelectionRange$$($inlineFrame$$26_selection$$3$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$26_selection$$3$$, "IFRAME");
  if(($inlineFrame$$26_selection$$3$$ = this.$_getWindowSelection$($inlineFrame$$26_selection$$3$$)) && 0 < $inlineFrame$$26_selection$$3$$.rangeCount) {
    return $inlineFrame$$26_selection$$3$$.getRangeAt(0)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.getSelectionRange", {$getSelectionRange$:$AdfGeckoEditingAgent$$.prototype.$getSelectionRange$});
$AdfGeckoEditingAgent$$.prototype.setSelectionRange = function $$AdfGeckoEditingAgent$$$$setSelectionRange$($inlineFrame$$27$$, $range$$7$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$27$$, "IFRAME");
  var $selection$$4$$ = this.$_getWindowSelection$($inlineFrame$$27$$);
  $selection$$4$$ && ($selection$$4$$.removeAllRanges(), $selection$$4$$.addRange($range$$7$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.setSelectionRange", {setSelectionRange:$AdfGeckoEditingAgent$$.prototype.setSelectionRange});
$AdfGeckoEditingAgent$$.prototype.$_getWindowSelection$ = function $$AdfGeckoEditingAgent$$$$$_getWindowSelection$$($inlineFrame$$28$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$28$$, "IFRAME");
  return this.$getInlineFrameDocument$($inlineFrame$$28$$).defaultView.getSelection()
};
$AdfGeckoEditingAgent$$.prototype.$handleTab$ = function $$AdfGeckoEditingAgent$$$$$handleTab$$($inlineFrame$$29$$, $keyDownEvt$$1$$) {
  $keyDownEvt$$1$$.shiftKey || ($AdfAgent$$.$AGENT$.preventDefault($keyDownEvt$$1$$), $AdfFocusUtils$$.$focusNextTabStop$($inlineFrame$$29$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.handleTab", {$handleTab$:$AdfGeckoEditingAgent$$.prototype.$handleTab$});
$AdfGeckoEditingAgent$$.prototype.queryCommandValue = function $$AdfGeckoEditingAgent$$$$queryCommandValue$($inlineFrame$$30$$, $commandIdentifier$$3$$) {
  if(this.$isDesignMode$($inlineFrame$$30$$)) {
    return $AdfGeckoEditingAgent$$.$superclass$.queryCommandValue.call(this, $inlineFrame$$30$$, $commandIdentifier$$3$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.queryCommandValue", {queryCommandValue:$AdfGeckoEditingAgent$$.prototype.queryCommandValue});
$AdfGeckoEditingAgent$$.prototype.queryCommandState = function $$AdfGeckoEditingAgent$$$$queryCommandState$($inlineFrame$$31$$, $commandIdentifier$$4$$) {
  if(this.$isDesignMode$($inlineFrame$$31$$)) {
    return $AdfGeckoEditingAgent$$.$superclass$.queryCommandState.call(this, $inlineFrame$$31$$, $commandIdentifier$$4$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.queryCommandState", {queryCommandState:$AdfGeckoEditingAgent$$.prototype.queryCommandState});
$AdfGeckoEditingAgent$$.prototype.$queryCommandIndeterminate$ = function $$AdfGeckoEditingAgent$$$$$queryCommandIndeterminate$$($inlineFrame$$32$$, $commandIdentifier$$5$$) {
  return!this.$isDesignMode$($inlineFrame$$32$$) ? $JSCompiler_alias_FALSE$$ : $AdfGeckoEditingAgent$$.$superclass$.$queryCommandIndeterminate$.call(this, $inlineFrame$$32$$, $commandIdentifier$$5$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.queryCommandIndeterminate", {$queryCommandIndeterminate$:$AdfGeckoEditingAgent$$.prototype.$queryCommandIndeterminate$});
$AdfGeckoEditingAgent$$.prototype.queryCommandEnabled = function $$AdfGeckoEditingAgent$$$$queryCommandEnabled$($component$$190$$, $inlineFrame$$33$$, $command$$6$$) {
  return!this.$isDesignMode$($inlineFrame$$33$$) ? $JSCompiler_alias_FALSE$$ : $AdfGeckoEditingAgent$$.$superclass$.queryCommandEnabled.call(this, $component$$190$$, $inlineFrame$$33$$, $command$$6$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.queryCommandEnabled", {queryCommandEnabled:$AdfGeckoEditingAgent$$.prototype.queryCommandEnabled});
$AdfGeckoEditingAgent$$.prototype.$CreateLink$ = function $$AdfGeckoEditingAgent$$$$$CreateLink$$($component$$191$$, $doc$$16$$, $value$$90$$) {
  for(var $results$$1$$ = "", $char1$$ = "", $i$$60$$ = 0;$i$$60$$ < $value$$90$$.length;$i$$60$$++) {
    for(var $c$$inline_413$$ = $char1$$ = $value$$90$$.charAt($i$$60$$), $i$$inline_414$$ = $JSCompiler_alias_VOID$$, $i$$inline_414$$ = 0;256 > $i$$inline_414$$;++$i$$inline_414$$) {
      var $h$$inline_415$$ = $i$$inline_414$$.toString(16);
      1 == $h$$inline_415$$.length && ($h$$inline_415$$ = "0" + $h$$inline_415$$);
      $h$$inline_415$$ = "%" + $h$$inline_415$$;
      $h$$inline_415$$ = unescape($h$$inline_415$$);
      if($h$$inline_415$$ == $c$$inline_413$$) {
        break
      }
    }
    $results$$1$$ = 256 == $i$$inline_414$$ ? $results$$1$$ + encodeURI($char1$$) : $results$$1$$ + $char1$$
  }
  return $AdfGeckoEditingAgent$$.$superclass$.$CreateLink$($component$$191$$, $doc$$16$$, $results$$1$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfGeckoEditingAgent.prototype.CreateLink", {$CreateLink$:$AdfGeckoEditingAgent$$.prototype.$CreateLink$});
