function $AdfXmlHttpLibraryLoadableScript$$($domWindow$$131$$, $librarySource$$10$$, $loadMethod$$5$$) {
  this.Init($domWindow$$131$$, $librarySource$$10$$, $loadMethod$$5$$)
}
$goog$exportSymbol$$("AdfXmlHttpLibraryLoadableScript", $AdfXmlHttpLibraryLoadableScript$$);
$AdfObject$$.$createSubclass$($AdfXmlHttpLibraryLoadableScript$$, $AdfLoadableScript$$);
$AdfXmlHttpLibraryLoadableScript$$.prototype.Init = function $$AdfXmlHttpLibraryLoadableScript$$$$Init$($domWindow$$132$$, $librarySource$$11$$, $loadMethod$$6$$) {
  $AdfXmlHttpLibraryLoadableScript$$.$superclass$.Init.call(this, $domWindow$$132$$);
  $loadMethod$$6$$ == $AdfScriptLoadingService$$.$METHOD_ANY$ && ($loadMethod$$6$$ = $AdfScriptLoadingService$$.$METHOD_SYNCHRONOUS$);
  this.$_librarySource$ = $librarySource$$11$$;
  this.$_loadMethod$ = $loadMethod$$6$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfXmlHttpLibraryLoadableScript.prototype.Init", {Init:$AdfXmlHttpLibraryLoadableScript$$.prototype.Init});
$AdfXmlHttpLibraryLoadableScript$$.prototype.$getLoadMethod$ = $JSCompiler_get$$("$_loadMethod$");
$AdfObject$$.$exportPrototypeSymbol$("AdfXmlHttpLibraryLoadableScript.prototype.getLoadMethod", {$getLoadMethod$:$AdfXmlHttpLibraryLoadableScript$$.prototype.$getLoadMethod$});
$AdfXmlHttpLibraryLoadableScript$$.prototype.load = function $$AdfXmlHttpLibraryLoadableScript$$$$load$($loadCallback$$5_xmlHttp$$5$$) {
  this.$_loadCallback$ = $loadCallback$$5_xmlHttp$$5$$;
  $loadCallback$$5_xmlHttp$$5$$ = new $AdfXMLRequest$$;
  if(this.$_loadMethod$ = $AdfScriptLoadingService$$.$METHOD_SYNCHRONOUS$) {
    $loadCallback$$5_xmlHttp$$5$$.$setSynchronous$($JSCompiler_alias_TRUE$$), $JSCompiler_StaticMethods__send$$(this, $loadCallback$$5_xmlHttp$$5$$), $JSCompiler_StaticMethods__completeExecScript$$(this, $loadCallback$$5_xmlHttp$$5$$)
  }else {
    var $callback$$inline_4727$$ = this.$createCallback$(this.$_execScriptCallback$);
    $loadCallback$$5_xmlHttp$$5$$.$setCallback$($callback$$inline_4727$$);
    $JSCompiler_StaticMethods__send$$(this, $loadCallback$$5_xmlHttp$$5$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfXmlHttpLibraryLoadableScript.prototype.load", {load:$AdfXmlHttpLibraryLoadableScript$$.prototype.load});
function $JSCompiler_StaticMethods__send$$($JSCompiler_StaticMethods__send$self$$, $xmlHttp$$8$$) {
  try {
    $xmlHttp$$8$$.send($JSCompiler_StaticMethods__send$self$$.$_librarySource$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$)
  }catch($e$$153$$) {
    var $librarySource$$inline_4731$$ = $JSCompiler_StaticMethods__send$self$$.$_librarySource$;
    if(0 == $librarySource$$inline_4731$$.indexOf("http:") || 0 == $librarySource$$inline_4731$$.indexOf("https:")) {
      var $failedConnectionText$$inline_4732$$ = $AdfPage$$.$PAGE$.getFailedConnectionText();
      $failedConnectionText$$inline_4732$$ != $JSCompiler_alias_NULL$$ && alert($failedConnectionText$$inline_4732$$ + " (source\x3d" + $librarySource$$inline_4731$$ + ")");
      $AdfLogger$$.$LOGGER$.warning("Failed to load library script from " + $librarySource$$inline_4731$$ + ".  This might be due to cross-origin rewriting of script resource uris.")
    }
    $JSCompiler_alias_THROW$$($e$$153$$)
  }
}
$AdfXmlHttpLibraryLoadableScript$$.prototype.$_execScriptCallback$ = function $$AdfXmlHttpLibraryLoadableScript$$$$$_execScriptCallback$$($xmlHttp$$9$$) {
  $xmlHttp$$9$$.$getCompletionState$() == $AdfXMLRequest$$.$COMPLETED$ && $JSCompiler_StaticMethods__completeExecScript$$($AdfXmlHttpLibraryLoadableScript$$, $xmlHttp$$9$$)
};
function $JSCompiler_StaticMethods__completeExecScript$$($JSCompiler_StaticMethods__completeExecScript$self$$, $xmlHttp$$10$$) {
  if(200 == $xmlHttp$$10$$.$getStatus$()) {
    var $librarySource$$12$$ = $JSCompiler_StaticMethods__completeExecScript$self$$.$_librarySource$;
    $JSCompiler_StaticMethods__completeExecScript$self$$.$ExecScript$($xmlHttp$$10$$.$getResponseText$(), $librarySource$$12$$);
    $JSCompiler_StaticMethods__completeExecScript$self$$.$_loadCallback$ && $JSCompiler_StaticMethods__completeExecScript$self$$.$_loadCallback$($librarySource$$12$$);
    $xmlHttp$$10$$.$cleanup$()
  }
}
;