function $AdfDhtmlActiveData$$() {
  this.Init();
}
$goog$exportSymbol$$("AdfDhtmlActiveData", $AdfDhtmlActiveData$$);
$AdfObject$$.$createSubclass$($AdfDhtmlActiveData$$);
$AdfDhtmlActiveData$$.prototype.Init = function $$AdfDhtmlActiveData$$$$Init$() {
  $AdfDhtmlActiveData$$.$superclass$.Init.call(this);
  this.$_activeComponents$ = {};
  this.$_serverTimeDifference$ = 0;
  this.$_isWindowClosing$ = !1;
  this.$_lastPollTime$ = null;
  this.$_reconnectRetries$ = this.$_lastActiveDataActivityTime$ = 0;
  this.$_maxReconnectionRetries$ = $AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$.$maxReconnectionRetries$;
  this.$_reconnectWaitTime$ = $AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$.$reconnectWaitTime$;
  this.$_latencyThreshold$ = $AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$.$latencyThreshold$;
  this.$_transport$ = $AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$.$transport$;
  this.$_pollingInterval$ = $AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$.$pollingInterval$;
  this.$_keepAliveInterval$ = $AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$.$keepAliveInterval$;
  this.$_pollingTimer$ = null;
  this.$_totalPushIFrameContentSinceLastReset$ = 0;
  this.$_adsConnectionStateListeners$ = [];
  this.$_messageCount$ = 0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.Init", {Init:$AdfDhtmlActiveData$$.prototype.Init});
$AdfDhtmlActiveData$$.prototype.$requestStatusChanged$ = function $$AdfDhtmlActiveData$$$$$requestStatusChanged$$($requestEvent$$) {
  $requestEvent$$.$getStatus$() == $AdfDataTransferRequestEvent$$.$STATUS_COMPLETE$ && 200 == $requestEvent$$.$getResponseStatusCode$() && $requestEvent$$.$isRichResponse$() && $AdfPage$$.$PAGE$.$requestStatusChanged$($requestEvent$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.requestStatusChanged", {$requestStatusChanged$:$AdfDhtmlActiveData$$.prototype.$requestStatusChanged$});
$AdfDhtmlActiveData$$.$_requestCallback$ = function $$AdfDhtmlActiveData$$$$_requestCallback$$($xmlRequest$$1$$) {
  $AdfLogger$$.$LOGGER$.finer("Request complete:", $xmlRequest$$1$$);
  var $dts$$3$$ = $AdfPage$$.$PAGE$.$getDataTransferService$(!0, !0);
  $dts$$3$$ && $JSCompiler_StaticMethods__handleRequestCallback$$($dts$$3$$, $xmlRequest$$1$$);
};
$AdfDhtmlActiveData$$.prototype.$initializeActiveForm$ = function $$AdfDhtmlActiveData$$$$$initializeActiveForm$$($wls$$, $ctxName$$) {
  $AdfAssert$$.$assertBoolean$($wls$$);
  this.$_ACTIVE_FORM_URL$ = $wls$$ ? $ctxName$$ + "/adwwls/wls.ads" : "adw.jspx";
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.initializeActiveForm", {$initializeActiveForm$:$AdfDhtmlActiveData$$.prototype.$initializeActiveForm$});
$AdfDhtmlActiveData$$.prototype.$updateActiveDataComponents$ = function $$AdfDhtmlActiveData$$$$$updateActiveDataComponents$$($masterWindowId$$, $masterPageId$$, $pageId$$13$$, $modelChanged$$, $clientIds$$3$$, $changeCounts$$) {
  $AdfAssert$$.$assertString$($masterWindowId$$);
  this.$_masterWindowId$ = $masterWindowId$$;
  this.$_masterPageId$ = $masterPageId$$;
  $AdfPage$$.$PAGE$.$setPageId$($pageId$$13$$);
  var $argCount$$6$$ = arguments.length;
  $AdfAssert$$.assert(0 == $argCount$$6$$ % 2, "An equal number of clientId and changeCount parameters are required");
  for (var $activeComponents$$ = this.$_activeComponents$, $i$$234$$ = 4;$i$$234$$ < $argCount$$6$$;$i$$234$$++) {
    var $clientId$$107_component$$688$$ = arguments[$i$$234$$];
    $AdfAssert$$.$assertString$($clientId$$107_component$$688$$);
    $i$$234$$++;
    var $changeCount$$3$$ = arguments[$i$$234$$];
    $AdfAssert$$.$assertNumber$($changeCount$$3$$);
    var $needsStart$$ = !($clientId$$107_component$$688$$ in $activeComponents$$);
    $activeComponents$$[$clientId$$107_component$$688$$] = {};
    $activeComponents$$[$clientId$$107_component$$688$$].$changeCount$ = $changeCount$$3$$;
    if ($modelChanged$$ || $needsStart$$) {
      $AdfLogger$$.$LOGGER$.fine("Register active data on:", $clientId$$107_component$$688$$), this.$_admInitialized$ || this.$initActivePage$(), $AdfPage$$.$PAGE$.$updateStartActiveDataStateChange$($modelChanged$$, $clientId$$107_component$$688$$), ($clientId$$107_component$$688$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$107_component$$688$$)) && $clientId$$107_component$$688$$.$registerADSAccessibility$();
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.updateActiveDataComponents", {$updateActiveDataComponents$:$AdfDhtmlActiveData$$.prototype.$updateActiveDataComponents$});
function $JSCompiler_StaticMethods__registerWindowWithADSMaster$$($JSCompiler_StaticMethods__registerWindowWithADSMaster$self$$, $registeringWindow$$) {
  $AdfAssert$$.assert($registeringWindow$$);
  $JSCompiler_StaticMethods__registerWindowWithADSMaster$self$$.$_windowNameToWindow$[$registeringWindow$$.name] = $registeringWindow$$;
}
function $JSCompiler_StaticMethods__processPushData$$($JSCompiler_StaticMethods__processPushData$self$$, $clientId$$108$$, $currentTime_payload$$4$$, $changeCount$$4$$, $isLate$$1_lastChangeCount$$, $eventNumber$$, $perfLogging$$) {
  $AdfAssert$$.$assertString$($clientId$$108$$);
  $AdfAssert$$.assert(void 0 !== $currentTime_payload$$4$$);
  $AdfAssert$$.$assertNumber$($changeCount$$4$$);
  $AdfAssert$$.$assertBoolean$($perfLogging$$);
  $AdfAssert$$.$assertNumberOrNull$($eventNumber$$);
  var $component$$689$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$108$$);
  $component$$689$$ ? ($isLate$$1_lastChangeCount$$ && $AdfLogger$$.$LOGGER$.fine("Event received beyond the configured threshold for component:", $clientId$$108$$), $isLate$$1_lastChangeCount$$ = $JSCompiler_StaticMethods__processPushData$self$$.$_activeComponents$[$clientId$$108$$].$changeCount$, void 0 === $isLate$$1_lastChangeCount$$ ? $AdfLogger$$.$LOGGER$.severe("Active data for unregistered component:", $clientId$$108$$) : $changeCount$$4$$ > $isLate$$1_lastChangeCount$$ ? ($component$$689$$.$processPushData$($currentTime_payload$$4$$, 
  $changeCount$$4$$), void 0 !== $eventNumber$$ && ($currentTime_payload$$4$$ = (new Date).getTime(), 0 == $eventNumber$$ % 500 && $AdfLogger$$.$LOGGER$.info("ADS: GENERAL: component finished processing event : ", " windowId:", $AdfPage$$.$PAGE$.$getWindowId$(), " pageId:", $AdfPage$$.$PAGE$.$_pageId$, " clientId:", $clientId$$108$$, " eventId:", $changeCount$$4$$, " client time:", $currentTime_payload$$4$$, " event number:", $eventNumber$$), $perfLogging$$ && $AdfLogger$$.$LOGGER$.info("ADS: component finished processing event : ", 
  " windowId:", $AdfPage$$.$PAGE$.$getWindowId$(), " pageId:", $AdfPage$$.$PAGE$.$_pageId$, " clientId:", $clientId$$108$$, " eventId:", $changeCount$$4$$, " client time:", $currentTime_payload$$4$$)), $JSCompiler_StaticMethods__processPushData$self$$.$_activeComponents$[$clientId$$108$$].$changeCount$ = $changeCount$$4$$) : $AdfLogger$$.$LOGGER$.fine("Old active data for", $clientId$$108$$, " declined")) : $AdfLogger$$.$LOGGER$.fine("No active component:", $clientId$$108$$, " Deregestering component");
}
$AdfDhtmlActiveData$$.prototype.$processActiveDataEvent$ = function $$AdfDhtmlActiveData$$$$$processActiveDataEvent$$($isLate$$2_windowId$$5$$, $pageId$$14$$, $clientId$$109_targetPageId$$inline_1107$$, $payload$$5_targetPageNum$$inline_1110$$, $changeCount$$5_requestPageNum$$inline_1111$$, $timeStamp$$, $payloadSize_targetPage_targetWindow$$inline_1102$$, $eventNumber$$1$$, $perfLogging$$1$$) {
  $AdfAssert$$.$assertString$($isLate$$2_windowId$$5$$);
  $AdfAssert$$.$assertString$($pageId$$14$$);
  $AdfAssert$$.$assertString$($clientId$$109_targetPageId$$inline_1107$$);
  $AdfAssert$$.$assertObject$($payload$$5_targetPageNum$$inline_1110$$);
  $AdfAssert$$.$assertNumber$($changeCount$$5_requestPageNum$$inline_1111$$);
  $AdfAssert$$.$assertNumber$($timeStamp$$);
  $AdfAssert$$.$assertNumber$($payloadSize_targetPage_targetWindow$$inline_1102$$);
  $AdfAssert$$.$assertNumber$($perfLogging$$1$$);
  $AdfAssert$$.$assertNumberOrNull$($eventNumber$$1$$);
  "STREAMING" == this.$_transport$ && (this.$_totalPushIFrameContentSinceLastReset$ += $payloadSize_targetPage_targetWindow$$inline_1102$$, 25E6 <= this.$_totalPushIFrameContentSinceLastReset$ && ($AdfLogger$$.$LOGGER$.info("ADS: Reached max events threshold. Rloading the streming iframe."), this.$_totalPushIFrameContentSinceLastReset$ = 0, $JSCompiler_StaticMethods__makeADSChannelRequest$$(this, !0, !0)));
  this.$_lastActiveDataActivityTime$ = (new Date).getTime();
  this.$_messageCount$++;
  void 0 !== $eventNumber$$1$$ && (0 == $eventNumber$$1$$ % 500 && $AdfLogger$$.$LOGGER$.info("ADS: GENERAL: active data manager receives event : ", " windowId:", $isLate$$2_windowId$$5$$, " pageId:", $pageId$$14$$, " clientId:", $clientId$$109_targetPageId$$inline_1107$$, " eventId:", $changeCount$$5_requestPageNum$$inline_1111$$, " event generation time:", $timeStamp$$, " client time:", this.$_lastActiveDataActivityTime$, " event number:", $eventNumber$$1$$), $perfLogging$$1$$ && $AdfLogger$$.$LOGGER$.info("ADS: active data manager receives event : ", 
  " windowId:", $isLate$$2_windowId$$5$$, " pageId:", $pageId$$14$$, " clientId:", $clientId$$109_targetPageId$$inline_1107$$, " eventId:", $changeCount$$5_requestPageNum$$inline_1111$$, " event generation time:", $timeStamp$$, " client time:", this.$_lastActiveDataActivityTime$));
  $AdfAssert$$.$assertString$($isLate$$2_windowId$$5$$);
  if ($isLate$$2_windowId$$5$$ == $AdfPage$$.$PAGE$.$getWindowId$()) {
    $payloadSize_targetPage_targetWindow$$inline_1102$$ = $AdfPage$$.$PAGE$;
  } else {
    $payloadSize_targetPage_targetWindow$$inline_1102$$ = null;
    var $targetPage$$inline_1104_windowMap$$inline_1103$$ = this.$_windowNameToWindow$;
    null != $targetPage$$inline_1104_windowMap$$inline_1103$$ && ($payloadSize_targetPage_targetWindow$$inline_1102$$ = $targetPage$$inline_1104_windowMap$$inline_1103$$[$isLate$$2_windowId$$5$$]);
    $targetPage$$inline_1104_windowMap$$inline_1103$$ = null;
    if ($JSCompiler_StaticMethods__testAdfPageExistence$$($payloadSize_targetPage_targetWindow$$inline_1102$$)) {
      try {
        $targetPage$$inline_1104_windowMap$$inline_1103$$ = $payloadSize_targetPage_targetWindow$$inline_1102$$.$AdfPage$.$PAGE$;
      } catch ($e$$inline_1105$$) {
        $AdfLogger$$.$LOGGER$.fine("Could not access active window:", $isLate$$2_windowId$$5$$);
      }
    }
    $payloadSize_targetPage_targetWindow$$inline_1102$$ = $targetPage$$inline_1104_windowMap$$inline_1103$$;
  }
  $payloadSize_targetPage_targetWindow$$inline_1102$$ && ($payloadSize_targetPage_targetWindow$$inline_1102$$.$_pageId$ == $pageId$$14$$ ? ($isLate$$2_windowId$$5$$ = $AdfDhtmlActiveData$$.$_getTimeDifference$($timeStamp$$) - this.$_serverTimeDifference$ > this.$_latencyThreshold$, void 0 !== $eventNumber$$1$$ ? $JSCompiler_StaticMethods__processPushData$$($payloadSize_targetPage_targetWindow$$inline_1102$$.$getActiveDataSupport$(), $clientId$$109_targetPageId$$inline_1107$$, $payload$$5_targetPageNum$$inline_1110$$, 
  $changeCount$$5_requestPageNum$$inline_1111$$, $isLate$$2_windowId$$5$$, $eventNumber$$1$$, 1 == $perfLogging$$1$$) : $JSCompiler_StaticMethods__processPushData$$($payloadSize_targetPage_targetWindow$$inline_1102$$.$getActiveDataSupport$(), $clientId$$109_targetPageId$$inline_1107$$, $payload$$5_targetPageNum$$inline_1110$$, $changeCount$$5_requestPageNum$$inline_1111$$, $isLate$$2_windowId$$5$$)) : ($clientId$$109_targetPageId$$inline_1107$$ = $payloadSize_targetPage_targetWindow$$inline_1102$$.$_pageId$, 
  $payload$$5_targetPageNum$$inline_1110$$ = Number($clientId$$109_targetPageId$$inline_1107$$), $changeCount$$5_requestPageNum$$inline_1111$$ = Number($pageId$$14$$), isNaN($payload$$5_targetPageNum$$inline_1110$$) ? $AdfLogger$$.$LOGGER$.error("Invalid target pageId: ", $clientId$$109_targetPageId$$inline_1107$$, " windowId: ", $isLate$$2_windowId$$5$$) : isNaN($changeCount$$5_requestPageNum$$inline_1111$$) ? $AdfLogger$$.$LOGGER$.error("Invalid request pageId: ", $pageId$$14$$, " windowId: ", 
  $isLate$$2_windowId$$5$$) : $payload$$5_targetPageNum$$inline_1110$$ < $changeCount$$5_requestPageNum$$inline_1111$$ ? $AdfLogger$$.$LOGGER$.error("Data update is newer than current page", " request pageId: ", $pageId$$14$$, " current pageId: ", $clientId$$109_targetPageId$$inline_1107$$, " windowId: ", $isLate$$2_windowId$$5$$) : $payload$$5_targetPageNum$$inline_1110$$ > $changeCount$$5_requestPageNum$$inline_1111$$ && $AdfLogger$$.$LOGGER$.info("Old data update is discarded for pageId: ", $pageId$$14$$, 
  " current pageId: ", $clientId$$109_targetPageId$$inline_1107$$, " windowId: ", $isLate$$2_windowId$$5$$)));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.processActiveDataEvent", {$processActiveDataEvent$:$AdfDhtmlActiveData$$.prototype.$processActiveDataEvent$});
$AdfDhtmlActiveData$$.prototype.$restartAllPushComponents$ = function $$AdfDhtmlActiveData$$$$$restartAllPushComponents$$() {
  this.$_messageCount$ = 1;
  var $windowMap$$2$$ = $JSCompiler_StaticMethods__getRegistryMap$$(this), $winId$$;
  for ($winId$$ in $windowMap$$2$$) {
    if (currWindow = $windowMap$$2$$[$winId$$], $JSCompiler_StaticMethods__testAdfPageExistence$$(currWindow)) {
      var $targetPage$$2$$ = currWindow.$AdfPage$.$PAGE$;
      $targetPage$$2$$.$isActiveDataSupported$() && ($targetPage$$2$$.$getActiveDataSupport$(), $AdfPage$$.$PAGE$.$__restartAllADSComponents$());
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.restartAllPushComponents", {$restartAllPushComponents$:$AdfDhtmlActiveData$$.prototype.$restartAllPushComponents$});
function $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$($JSCompiler_StaticMethods__notifyADSConnectionStateChange$self$$, $adsConnectionState$$) {
  $AdfAssert$$.assert($JSCompiler_StaticMethods__notifyADSConnectionStateChange$self$$.$_masterWindowId$ == $AdfPage$$.$PAGE$.$getWindowId$(), "_notifyADSConnectionStateChange should not be called on a non-master window");
  var $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$ = void 0, $windowMap$$3$$ = $JSCompiler_StaticMethods__getRegistryMap$$($JSCompiler_StaticMethods__notifyADSConnectionStateChange$self$$), $winId$$1$$;
  for ($winId$$1$$ in $windowMap$$3$$) {
    if ($adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$ = $windowMap$$3$$[$winId$$1$$], $JSCompiler_StaticMethods__testAdfPageExistence$$($adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$)) {
      try {
        var $JSCompiler_StaticMethods__broadcastADSConnectionStateChange$self$$inline_1115$$ = $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$.$AdfPage$.$PAGE$.$getActiveDataSupport$(), $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$ = $adsConnectionState$$, $oldConnectionState$$inline_1117$$ = $JSCompiler_StaticMethods__broadcastADSConnectionStateChange$self$$inline_1115$$.$_pushChannelState$;
        if ($oldConnectionState$$inline_1117$$ == $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$) {
          $AdfLogger$$.$LOGGER$.finest("broadcastADSConnectionStateChange called without a change in state");
        } else {
          $JSCompiler_StaticMethods__broadcastADSConnectionStateChange$self$$inline_1115$$.$_pushChannelState$ = $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$;
          var $listenerArray$$inline_1118$$ = $JSCompiler_StaticMethods__broadcastADSConnectionStateChange$self$$inline_1115$$.$_adsConnectionStateListeners$;
          if ($listenerArray$$inline_1118$$) {
            var $length$$inline_1119$$ = $listenerArray$$inline_1118$$.length;
            if (0 < $length$$inline_1119$$) {
              for (var $event$$inline_1120$$ = new $AdfPropertyChangeEvent$$($JSCompiler_StaticMethods__broadcastADSConnectionStateChange$self$$inline_1115$$, "adsConnectionState", $oldConnectionState$$inline_1117$$, $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$), $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$ = 0;$adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$ < $length$$inline_1119$$;$adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$++) {
                var $callback$$inline_1122$$ = $listenerArray$$inline_1118$$[$adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$];
                $adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$++;
                var $instance$$inline_1123$$ = $listenerArray$$inline_1118$$[$adsConnectionState$$inline_1116_currWindow$$1_i$$inline_1121$$];
                try {
                  null != $instance$$inline_1123$$ ? $callback$$inline_1122$$.call($instance$$inline_1123$$, $event$$inline_1120$$) : $callback$$inline_1122$$($event$$inline_1120$$);
                } catch ($e$$inline_1124$$) {
                  $AdfLogger$$.$LOGGER$.$logErrorAsWarning$($e$$inline_1124$$, "Error broadcasting ADS connection state");
                }
              }
            }
          }
        }
      } catch ($e$$98$$) {
        $AdfLogger$$.$LOGGER$.$logErrorAsWarning$($e$$98$$, "Error broadcasting ADS connection state to window ", $winId$$1$$);
      }
    }
  }
}
function $JSCompiler_StaticMethods__stopActiveData$$($JSCompiler_StaticMethods__stopActiveData$self$$, $clientId$$111$$) {
  $AdfAssert$$.$assertString$($clientId$$111$$);
  delete $JSCompiler_StaticMethods__stopActiveData$self$$.$_activeComponents$[$clientId$$111$$];
  $AdfPage$$.$PAGE$.$updateStopActiveDataStateChange$($clientId$$111$$);
}
$AdfDhtmlActiveData$$.prototype.$initActivePage$ = function $$AdfDhtmlActiveData$$$$$initActivePage$$() {
  if (!this.$_admInitialized$ && null != this.$_masterWindowId$) {
    var $domWindow$$inline_1127_domWindow$$inline_5592$$ = $AdfPage$$.$PAGE$.$getDomWindow$();
    $AdfAssert$$.assert($domWindow$$inline_1127_domWindow$$inline_5592$$.AdfDhtmlActiveData, "AdfActiveDataService JavaScript feature not loaded. Please make sure it is not blocked by ad block software.");
    var $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$ = this.$_masterWindowId$, $masterPageId$$inline_1129_url$$inline_5594$$ = this.$_masterPageId$, $pageId$$inline_1130$$ = $AdfPage$$.$PAGE$.$_pageId$, $windowId$$inline_1131$$ = null, $windowId$$inline_1131$$ = $domWindow$$inline_1127_domWindow$$inline_5592$$.name ? $domWindow$$inline_1127_domWindow$$inline_5592$$.name : this.$_expectedWindowId$;
    if (!this.$_admInitialized$) {
      if ($AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$) {
        var $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ = $AdfPage$$.$PAGE$.$getDomDocument$(), $cursorURL$$inline_5574$$ = $AdfPage$$.$PAGE$.$getResourceURL$("/afr/default_arrow_black.cur");
        $AdfAgent$$.$AGENT$.$getOS$() == $AdfAgent$$.$WINDOWS_OS$ && ($cursorURL$$inline_5574$$ = $AdfPage$$.$PAGE$.$getResourceURL$("/afr/default_arrow_white.cur"));
        $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$.body.style.cursor = "url('" + $cursorURL$$inline_5574$$ + "'), progress";
      }
      this.$_admInitialized$ = !0;
      $AdfLogger$$.$LOGGER$.fine("Initialize active data manager");
      this.$_replaceMasterPageId$ = this.$_masterPageId$ = this.$_replaceMasterWindowId$ = this.$_masterWindowId$ = void 0;
      this.$_ESTABLISH_CHANNEL_ACTION$ = "establishChannel";
      this.$_RECONNECT_ACTION$ = "reconnect";
      this.$_POLL_EVENTS_ACTION$ = "pollEvents";
      this.$_ACTIVE_FRAME_NAME$ = "afr::PushIframe";
      $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ = $JSCompiler_StaticMethods__wrapMasterWindowId$$($iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$);
      $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$ == $AdfPage$$.$PAGE$.$getWindowId$() ? ($AdfLogger$$.$LOGGER$.info("self is master window: ", $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$), null == this.$_windowNameToWindow$ && (this.$_windowNameToWindow$ = {}), $domWindow$$inline_1127_domWindow$$inline_5592$$.name = $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$, 
      $AdfPage$$.$PAGE$.$setWindowId$($windowId$$inline_1131$$), this.$_replaceMasterWindowId$ = this.$_masterWindowId$ = $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$, $AdfPage$$.$PAGE$.$setPageId$($pageId$$inline_1130$$), this.$_replaceMasterPageId$ = this.$_masterPageId$ = $masterPageId$$inline_1129_url$$inline_5594$$, $JSCompiler_StaticMethods__registerWindowWithADSMaster$$(this, $domWindow$$inline_1127_domWindow$$inline_5592$$), $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$ = 
      this.$_ACTIVE_FRAME_NAME$, $domWindow$$inline_1127_domWindow$$inline_5592$$ = $AdfPage$$.$PAGE$.$getDomWindow$(), $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$ = $domWindow$$inline_1127_domWindow$$inline_5592$$.frames[$iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$], $AdfPage$$.$PAGE$.$getDomDocument$(), $masterPageId$$inline_1129_url$$inline_5594$$ = this.$_ACTIVE_FORM_URL$, $masterPageId$$inline_1129_url$$inline_5594$$ += 
      "?action\x3d" + this.$_ESTABLISH_CHANNEL_ACTION$ + "\x26windowId\x3d" + $AdfPage$$.$PAGE$.$getWindowId$() + "\x26pageId\x3d" + $AdfPage$$.$PAGE$.$_pageId$ + "\x26replaceMasterWindowId\x3d" + this.$_replaceMasterWindowId$ + "\x26replaceMasterPageId\x3d" + this.$_replaceMasterPageId$, $AdfLogger$$.$LOGGER$.fine("Connecting for master window:", $AdfPage$$.$PAGE$.$getWindowId$(), " in window:", $domWindow$$inline_1127_domWindow$$inline_5592$$.name), $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, 
      $AdfDhtmlPage$$.$PushChannelStates$.CONNECTING), $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$.location.replace($masterPageId$$inline_1129_url$$inline_5594$$)) : $domWindow$$inline_1127_domWindow$$inline_5592$$.name == $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ ? $JSCompiler_StaticMethods__claimMaster$$(this, $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$, 
      $masterPageId$$inline_1129_url$$inline_5594$$) : ($AdfLogger$$.$LOGGER$.info("non-master window, needs to register with: ", $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$), $domWindow$$inline_1127_domWindow$$inline_5592$$.name = $windowId$$inline_1131$$, $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ = null, $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ = 
      $JSCompiler_StaticMethods__getADSMasterWindow$$($iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$), null != $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ ? ($currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$ = $currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$.$AdfPage$.$PAGE$, 
      $JSCompiler_StaticMethods__registerWindowWithADSMaster$$($currDocument$$inline_5573_masterPage$$inline_1133_masterWindow$$inline_1134_wrappedMasterWindowId$$inline_1132$$.$getActiveDataSupport$(), $domWindow$$inline_1127_domWindow$$inline_5592$$), $AdfPage$$.$PAGE$.$setWindowId$($windowId$$inline_1131$$), this.$_replaceMasterWindowId$ = this.$_masterWindowId$ = $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$, $AdfPage$$.$PAGE$.$setPageId$($pageId$$inline_1130$$), 
      this.$_replaceMasterPageId$ = this.$_masterPageId$ = $masterPageId$$inline_1129_url$$inline_5594$$) : ($AdfPage$$.$PAGE$.$setWindowId$($domWindow$$inline_1127_domWindow$$inline_5592$$.name), $AdfPage$$.$PAGE$.$setPageId$($pageId$$inline_1130$$), $JSCompiler_StaticMethods__claimMaster$$(this, $iframeName$$inline_5591_iframeWindow$$inline_5593_masterWindowId$$inline_1128$$, $masterPageId$$inline_1129_url$$inline_5594$$)));
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.initActivePage", {$initActivePage$:$AdfDhtmlActiveData$$.prototype.$initActivePage$});
function $JSCompiler_StaticMethods__getADSMasterWindow$$($masterWindowId$$2$$) {
  $AdfAssert$$.$assertString$($masterWindowId$$2$$);
  var $masterWindow$$1$$ = $AdfPage$$.$PAGE$.$getDomWindow$().open("", $masterWindowId$$2$$, "height\x3d1,width\x3d1,top\x3d0,left\x3d0,status\x3dno,toolbar\x3dno,menubar\x3dno,location\x3dno");
  if (!$JSCompiler_StaticMethods__testAdfPageExistence$$($masterWindow$$1$$) || $masterWindow$$1$$.$AdfPage$.$PAGE$.$getActiveDataSupport$().$_masterWindowId$ != $masterWindowId$$2$$) {
    $AdfLogger$$.$LOGGER$.warning("can't get the master window for: ", $masterWindowId$$2$$);
    try {
      var $loc$$ = $masterWindow$$1$$.location;
      null != $loc$$ && "about:blank" != $loc$$ && "about:Tabs" != $loc$$ || $masterWindow$$1$$.close();
    } catch ($e$$99$$) {
    }
    $masterWindow$$1$$ = null;
  }
  return $masterWindow$$1$$;
}
function $JSCompiler_StaticMethods__getRegistryMap$$($JSCompiler_StaticMethods__getRegistryMap$self$$) {
  null == $JSCompiler_StaticMethods__getRegistryMap$self$$.$_windowNameToWindow$ && ($JSCompiler_StaticMethods__getRegistryMap$self$$.$_windowNameToWindow$ = {});
  return $JSCompiler_StaticMethods__getRegistryMap$self$$.$_windowNameToWindow$;
}
$AdfDhtmlActiveData$$.prototype.$onBeforeUnload$ = function $$AdfDhtmlActiveData$$$$$onBeforeUnload$$() {
  this.$_isWindowClosing$ = !0;
  var $currWindow$$inline_5609_masterWindowId$$4$$ = this.$_masterWindowId$;
  if ($currWindow$$inline_5609_masterWindowId$$4$$) {
    if ($currWindow$$inline_5609_masterWindowId$$4$$ == $AdfPage$$.$PAGE$.$getWindowId$() && 1 != this.$_handlingFailover$) {
      try {
        $JSCompiler_StaticMethods__cancelADSTimers$$(this);
        var $windowMap$$inline_1161$$ = $JSCompiler_StaticMethods__getRegistryMap$$(this), $candidateWindow$$inline_1162$$, $candidateWindow$$inline_5610$$ = $currWindow$$inline_5609_masterWindowId$$4$$ = void 0, $domWindow$$inline_5611$$ = $AdfPage$$.$PAGE$.$getDomWindow$(), $winId$$inline_5612$$;
        for ($winId$$inline_5612$$ in $windowMap$$inline_1161$$) {
          $currWindow$$inline_5609_masterWindowId$$4$$ = $windowMap$$inline_1161$$[$winId$$inline_5612$$], $currWindow$$inline_5609_masterWindowId$$4$$ != $domWindow$$inline_5611$$ && $JSCompiler_StaticMethods__testAdfPageExistence$$($currWindow$$inline_5609_masterWindowId$$4$$) && ($currWindow$$inline_5609_masterWindowId$$4$$.$AdfPage$.$PAGE$.$getActiveDataSupport$().$isHAMigrated$() || ($candidateWindow$$inline_5610$$ = $windowMap$$inline_1161$$[$winId$$inline_5612$$]));
        }
        $candidateWindow$$inline_1162$$ = $candidateWindow$$inline_5610$$;
        if (null == $candidateWindow$$inline_1162$$) {
          $AdfLogger$$.$LOGGER$.fine("Could not find candidate window to migrate to");
        } else {
          var $newMasterPage$$inline_1163$$ = $candidateWindow$$inline_1162$$.$AdfPage$.$PAGE$, $newADS$$inline_1164$$ = $newMasterPage$$inline_1163$$.$getActiveDataSupport$(), $newWindowMap$$inline_1165$$ = $JSCompiler_StaticMethods__getRegistryMap$$($newADS$$inline_1164$$);
          $AdfCollections$$.$copyInto$($newWindowMap$$inline_1165$$, $windowMap$$inline_1161$$);
          $candidateWindow$$inline_1162$$.name = $JSCompiler_StaticMethods__wrapMasterWindowId$$($newMasterPage$$inline_1163$$.$getWindowId$());
          var $replaceMasterWindowId$$inline_5615$$ = page.$getWindowId$();
          $newADS$$inline_1164$$.$_replaceMasterWindowId$ = $replaceMasterWindowId$$inline_5615$$;
          $newADS$$inline_1164$$.$_replaceMasterPageId$ = page.$_pageId$;
          var $masterWindowId$$inline_5621$$ = $newMasterPage$$inline_1163$$.$getWindowId$();
          $newADS$$inline_1164$$.$_masterWindowId$ = $masterWindowId$$inline_5621$$;
          $newADS$$inline_1164$$.$_masterPageId$ = $newMasterPage$$inline_1163$$.$_pageId$;
          $newMasterPage$$inline_1163$$.$scheduleTimer$($newADS$$inline_1164$$, $newADS$$inline_1164$$.$_createADSChannel$, null, 50);
        }
      } catch ($e$$inline_1166$$) {
        $AdfLogger$$.$LOGGER$.info("Can not migrate the active channel to other windows");
      }
    }
    $AdfPage$$.$PAGE$.$__notifyWindowCloseImmediately$(!1, "");
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.onBeforeUnload", {$onBeforeUnload$:$AdfDhtmlActiveData$$.prototype.$onBeforeUnload$});
function $JSCompiler_StaticMethods__cancelADSTimers$$($JSCompiler_StaticMethods__cancelADSTimers$self$$) {
  var $page$$84$$ = $AdfPage$$.$PAGE$, $currentTimer_pollingTimer$$ = $JSCompiler_StaticMethods__cancelADSTimers$self$$.$_adsConnectionCheckTimer$;
  if ($currentTimer_pollingTimer$$) {
    try {
      $page$$84$$.$cancelTimer$($currentTimer_pollingTimer$$);
    } catch ($e$$100$$) {
      $AdfLogger$$.$LOGGER$.$logErrorAsInfo$($e$$100$$, "Error clearing connection check timer");
    }
    $JSCompiler_StaticMethods__cancelADSTimers$self$$.$_adsConnectionCheckTimer$ = null;
  }
  if ($currentTimer_pollingTimer$$ = $JSCompiler_StaticMethods__cancelADSTimers$self$$.$_pollingTimer$) {
    try {
      $page$$84$$.$cancelTimer$($currentTimer_pollingTimer$$);
    } catch ($e$$101$$) {
      $AdfLogger$$.$LOGGER$.$logErrorAsInfo$($e$$101$$, "Error clearing polling timer");
    }
    $JSCompiler_StaticMethods__cancelADSTimers$self$$.$_pollingTimer$ = null;
  }
}
$AdfDhtmlActiveData$$.prototype.$_createADSChannel$ = function $$AdfDhtmlActiveData$$$$$_createADSChannel$$($reconnect$$) {
  $JSCompiler_StaticMethods__makeADSChannelRequest$$(this, $reconnect$$);
};
$AdfDhtmlActiveData$$.prototype.$registerWithNewMaster$ = function $$AdfDhtmlActiveData$$$$$registerWithNewMaster$$($masterWindowId$$5$$, $masterPageId$$3$$) {
  $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_registerWithNewMaster$, {$wId$:$masterWindowId$$5$$, $pId$:$masterPageId$$3$$}, 3E3);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.registerWithNewMaster", {$registerWithNewMaster$:$AdfDhtmlActiveData$$.prototype.$registerWithNewMaster$});
$AdfDhtmlActiveData$$.prototype.$_registerWithNewMaster$ = function $$AdfDhtmlActiveData$$$$$_registerWithNewMaster$$($masterPageId$$4_state$$24$$) {
  var $masterWindowId$$6$$ = $masterPageId$$4_state$$24$$.$wId$;
  $masterPageId$$4_state$$24$$ = $masterPageId$$4_state$$24$$.$pId$;
  $AdfLogger$$.$LOGGER$.info("register with new master ", $masterWindowId$$6$$);
  this.$_masterWindowId$ = $masterWindowId$$6$$;
  this.$_masterPageId$ = $masterPageId$$4_state$$24$$;
  try {
    var $masterWindow$$2$$ = $JSCompiler_StaticMethods__getADSMasterWindow$$($masterWindowId$$6$$);
    if (null != $masterWindow$$2$$) {
      var $newMasterPage$$1$$ = $masterWindow$$2$$.$AdfPage$.$PAGE$;
      if (null != $newMasterPage$$1$$) {
        $JSCompiler_StaticMethods__registerWindowWithADSMaster$$($newMasterPage$$1$$.$getActiveDataSupport$(), $AdfPage$$.$PAGE$.$getDomWindow$());
        var $windowMap$$5$$ = $JSCompiler_StaticMethods__getRegistryMap$$(this), $newWindowMap$$1$$ = $JSCompiler_StaticMethods__getRegistryMap$$($newMasterPage$$1$$.$getActiveDataSupport$());
        $AdfCollections$$.$copyInto$($newWindowMap$$1$$, $windowMap$$5$$);
      }
    } else {
      $AdfLogger$$.$LOGGER$.fine("can't find the master page " + $masterWindowId$$6$$), $JSCompiler_StaticMethods__claimMaster$$(this, $masterWindowId$$6$$, $masterPageId$$4_state$$24$$);
    }
    this.$_pushChannelState$ != $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$ && $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$($newMasterPage$$1$$.$getActiveDataSupport$(), $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$);
    this.$_startGlobalActiveData$();
    this.$_triedRegisterWithMaster$ = !1;
  } catch ($e$$103$$) {
    $AdfLogger$$.$LOGGER$.info("ADS register with new master failed"), this.$_triedRegisterWithMaster$ ? ($JSCompiler_StaticMethods__claimMaster$$(this, $masterWindowId$$6$$, $masterPageId$$4_state$$24$$), this.$_triedRegisterWithMaster$ = !1, this.$_pushChannelState$ != $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$ && $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$($newMasterPage$$1$$.$getActiveDataSupport$(), $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$)) : (this.$_triedRegisterWithMaster$ = 
    !0, this.$registerWithNewMaster$($masterWindowId$$6$$, $masterPageId$$4_state$$24$$));
  }
  this.$_windowNameToWindow$ = null;
};
function $JSCompiler_StaticMethods__makeADSChannelRequest$$($JSCompiler_StaticMethods__makeADSChannelRequest$self$$, $channelParameterMap_reconnect$$2$$, $reconnectOnEventThreshold$$) {
  var $action$$inline_1189_parameterMap$$inline_1188$$ = void 0;
  null == $JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_replaceMasterWindowId$ && ($JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_replaceMasterWindowId$ = $JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_masterWindowId$);
  $action$$inline_1189_parameterMap$$inline_1188$$ = void 0;
  $action$$inline_1189_parameterMap$$inline_1188$$ = 1 != $channelParameterMap_reconnect$$2$$ ? $JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_ESTABLISH_CHANNEL_ACTION$ : $JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_RECONNECT_ACTION$;
  $action$$inline_1189_parameterMap$$inline_1188$$ = {action:$action$$inline_1189_parameterMap$$inline_1188$$, windowId:$AdfPage$$.$PAGE$.$getWindowId$(), replaceMasterWindowId:$JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_replaceMasterWindowId$, pageId:$AdfPage$$.$PAGE$.$_pageId$, replaceMasterPageId:$JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_replaceMasterPageId$};
  $channelParameterMap_reconnect$$2$$ ? $action$$inline_1189_parameterMap$$inline_1188$$.messageCount = $JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_messageCount$ : $JSCompiler_StaticMethods__makeADSChannelRequest$self$$.$_messageCount$ = 0;
  $channelParameterMap_reconnect$$2$$ = $action$$inline_1189_parameterMap$$inline_1188$$;
  $AdfPage$$.$PAGE$.$getDomWindow$();
  $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$($JSCompiler_StaticMethods__makeADSChannelRequest$self$$, $AdfDhtmlPage$$.$PushChannelStates$.$RECONNECTING$);
  $JSCompiler_StaticMethods__sendADSChannelRequest$$($JSCompiler_StaticMethods__makeADSChannelRequest$self$$, $channelParameterMap_reconnect$$2$$, {}, $reconnectOnEventThreshold$$);
}
function $JSCompiler_StaticMethods__claimMaster$$($JSCompiler_StaticMethods__claimMaster$self$$, $domWindow$$88_masterWindowId$$7$$, $masterPageId$$5$$) {
  $AdfAssert$$.$assertString$($domWindow$$88_masterWindowId$$7$$);
  $AdfAssert$$.$assertString$($masterPageId$$5$$);
  var $windowId$$9$$ = $AdfPage$$.$PAGE$.$getWindowId$(), $pageId$$17$$ = $AdfPage$$.$PAGE$.$_pageId$;
  null == $JSCompiler_StaticMethods__claimMaster$self$$.$_windowNameToWindow$ && ($JSCompiler_StaticMethods__claimMaster$self$$.$_windowNameToWindow$ = {});
  $JSCompiler_StaticMethods__claimMaster$self$$.$_masterWindowId$ = $windowId$$9$$;
  $JSCompiler_StaticMethods__claimMaster$self$$.$_replaceMasterWindowId$ = $domWindow$$88_masterWindowId$$7$$;
  $JSCompiler_StaticMethods__claimMaster$self$$.$_masterPageId$ = $pageId$$17$$;
  $JSCompiler_StaticMethods__claimMaster$self$$.$_replaceMasterPageId$ = $masterPageId$$5$$;
  $domWindow$$88_masterWindowId$$7$$ = $AdfPage$$.$PAGE$.$getDomWindow$();
  $JSCompiler_StaticMethods__registerWindowWithADSMaster$$($JSCompiler_StaticMethods__claimMaster$self$$, $domWindow$$88_masterWindowId$$7$$);
  $JSCompiler_StaticMethods__claimMaster$self$$.$_createADSChannel$();
}
function $JSCompiler_StaticMethods__wrapMasterWindowId$$($windowId$$10$$) {
  return $windowId$$10$$.replace(/\//g, "S").replace(/-/g, "M").replace(/\./g, "D");
}
function $JSCompiler_StaticMethods__testAdfPageExistence$$($windowObject$$1$$) {
  var $page$$85$$ = null;
  try {
    $page$$85$$ = $windowObject$$1$$.$AdfPage$.$PAGE$;
  } catch ($e$$106$$) {
    $AdfLogger$$.$LOGGER$.$logErrorAsInfo$($e$$106$$, "Could not access active window");
  }
  return null != $page$$85$$ ? !0 : !1;
}
$AdfDhtmlActiveData$$.$_DEFAULT_ACTIVEDATA_CONFIG$ = {restartInterval:15, maxReconnectionRetries:10, reconnectWaitTime:1E4, latencyThreshold:1E4, transport:"STREAMING", pollingInterval:5E3, keepAliveInterval:1E4};
$AdfDhtmlActiveData$$.prototype.$initLongPolling$ = function $$AdfDhtmlActiveData$$$$$initLongPolling$$() {
  var $page$$86_params$$31$$ = $AdfPage$$.$PAGE$, $helper$$ = $page$$86_params$$31$$.$__getUserInactivityTimeoutHelper$();
  if ($helper$$ && $helper$$.$hasTimedOut$()) {
    return this.$_longPollingInitTimer$ || (this.$_longPollingInitTimer$ = $page$$86_params$$31$$.$scheduleTimer$(this, this.$initLongPolling$, null, 300)), 300;
  }
  this.$_longPollingInitTimer$ && ($page$$86_params$$31$$.$cancelTimer$(this.$_longPollingInitTimer$), this.$_longPollingInitTimer$ = null);
  $page$$86_params$$31$$ = {action:this.$_POLL_EVENTS_ACTION$, windowId:$page$$86_params$$31$$.$getWindowId$(), pageId:$page$$86_params$$31$$.$_pageId$};
  $JSCompiler_StaticMethods__sendADSChannelRequest$$(this, $page$$86_params$$31$$, null);
  this.$setConnected$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.initLongPolling", {$initLongPolling$:$AdfDhtmlActiveData$$.prototype.$initLongPolling$});
$AdfDhtmlActiveData$$.prototype.$setConfiguration$ = function $$AdfDhtmlActiveData$$$$$setConfiguration$$($config$$3$$) {
  try {
    this.$_transport$ = $config$$3$$.$transport$, this.$_pollingInterval$ = $config$$3$$.$pollingInterval$, this.$_maxReconnectionRetries$ = $config$$3$$.$maxReconnectionRetries$, this.$_reconnectWaitTime$ = $config$$3$$.$reconnectWaitTime$, this.$_latencyThreshold$ = $config$$3$$.$latencyThreshold$, this.$_keepAliveInterval$ = $config$$3$$.$keepAliveInterval$;
  } catch ($e$$107$$) {
    $AdfLogger$$.$LOGGER$.warning("Exception occurred while setting configuration. Name: " + $e$$107$$.name + ", Message: " + $e$$107$$.message);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.setConfiguration", {$setConfiguration$:$AdfDhtmlActiveData$$.prototype.$setConfiguration$});
$AdfDhtmlActiveData$$.prototype.$refreshPushComponent$ = function $$AdfDhtmlActiveData$$$$$refreshPushComponent$$($windowId$$11$$, $pageId$$18_targetWindow$$1$$, $clientId$$112$$) {
  $AdfAssert$$.$assertString$($windowId$$11$$);
  $AdfAssert$$.$assertString$($pageId$$18_targetWindow$$1$$);
  $AdfAssert$$.$assertString$($clientId$$112$$);
  this.$_lastActiveDataActivityTime$ = (new Date).getTime();
  this.$_messageCount$++;
  $pageId$$18_targetWindow$$1$$ = null;
  var $windowMap$$8$$ = this.$_windowNameToWindow$;
  null != $windowMap$$8$$ && ($pageId$$18_targetWindow$$1$$ = $windowMap$$8$$[$windowId$$11$$]);
  if ($JSCompiler_StaticMethods__testAdfPageExistence$$($pageId$$18_targetWindow$$1$$)) {
    try {
      var $JSCompiler_StaticMethods__refreshPushComponent$self$$inline_1203$$ = $pageId$$18_targetWindow$$1$$.$AdfPage$.$PAGE$.$getActiveDataSupport$();
      $AdfAssert$$.$assertString$($clientId$$112$$);
      if ($clientId$$112$$ in $JSCompiler_StaticMethods__refreshPushComponent$self$$inline_1203$$.$_activeComponents$) {
        var $component$$inline_1205$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$112$$);
        $component$$inline_1205$$ ? $AdfPage$$.$PAGE$.$addPartialTargets$($component$$inline_1205$$) : ($JSCompiler_StaticMethods__stopActiveData$$($JSCompiler_StaticMethods__refreshPushComponent$self$$inline_1203$$, $clientId$$112$$), $AdfLogger$$.$LOGGER$.info("No active component:", $clientId$$112$$));
      } else {
        $AdfLogger$$.$LOGGER$.info("ADS: active data component is not refreshed because it's not active, clientId\x3d", $clientId$$112$$);
      }
    } catch ($e$$108$$) {
      $AdfLogger$$.$LOGGER$.fine("can't access the window ", $windowId$$11$$);
    }
  } else {
    $AdfLogger$$.$LOGGER$.info("No window found for refreshing component: windowId \x3d ", $windowId$$11$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.refreshPushComponent", {$refreshPushComponent$:$AdfDhtmlActiveData$$.prototype.$refreshPushComponent$});
function $JSCompiler_StaticMethods__sendADSChannelRequest$$($JSCompiler_StaticMethods__sendADSChannelRequest$self$$, $channelParameterMap$$1_idx$$, $clientStateMap$$2_index$$120$$, $reconnectOnEventThreshold$$1$$) {
  var $iframeWindow$$1$$ = $AdfPage$$.$PAGE$.$getDomWindow$().frames[$JSCompiler_StaticMethods__sendADSChannelRequest$self$$.$_ACTIVE_FRAME_NAME$], $queryString$$3_url$$52$$ = "", $param$$6_windowStateMap$$;
  for ($param$$6_windowStateMap$$ in $channelParameterMap$$1_idx$$) {
    $queryString$$3_url$$52$$ += "\x26" + $param$$6_windowStateMap$$ + "\x3d" + $channelParameterMap$$1_idx$$[$param$$6_windowStateMap$$];
  }
  $channelParameterMap$$1_idx$$ = 1;
  for (var $winId$$4$$ in $clientStateMap$$2_index$$120$$) {
    $param$$6_windowStateMap$$ = $clientStateMap$$2_index$$120$$[$winId$$4$$];
    if (!$AdfCollections$$.$isEmpty$($param$$6_windowStateMap$$)) {
      var $queryString$$3_url$$52$$ = $queryString$$3_url$$52$$ + ("\x26pageKey" + $channelParameterMap$$1_idx$$ + "\x3d" + $winId$$4$$), $compId$$;
      for ($compId$$ in $param$$6_windowStateMap$$) {
        var $currentComponentIndexKey$$ = "componentIndex" + $channelParameterMap$$1_idx$$, $queryString$$3_url$$52$$ = $queryString$$3_url$$52$$ + ("\x26componentId" + $channelParameterMap$$1_idx$$ + "\x3d" + $compId$$), $queryString$$3_url$$52$$ = $queryString$$3_url$$52$$ + ("\x26" + $currentComponentIndexKey$$ + "\x3d" + $param$$6_windowStateMap$$[$compId$$].$changeCount$)
      }
    }
    $channelParameterMap$$1_idx$$ += 1;
  }
  $clientStateMap$$2_index$$120$$ = $queryString$$3_url$$52$$.indexOf("\x26");
  0 < $queryString$$3_url$$52$$.length && 0 == $clientStateMap$$2_index$$120$$ && ($queryString$$3_url$$52$$ = $queryString$$3_url$$52$$.substring(1));
  $queryString$$3_url$$52$$ = $JSCompiler_StaticMethods__sendADSChannelRequest$self$$.$_ACTIVE_FORM_URL$ + "?" + $queryString$$3_url$$52$$;
  "STREAMING" == $JSCompiler_StaticMethods__sendADSChannelRequest$self$$.$_transport$ ? (1 == $reconnectOnEventThreshold$$1$$ && ($queryString$$3_url$$52$$ += "\x26discEvt\x3dtrue"), 2E3 < $queryString$$3_url$$52$$.length && $JSCompiler_StaticMethods__handleAllFailovers$$($JSCompiler_StaticMethods__sendADSChannelRequest$self$$, []), $iframeWindow$$1$$.location.replace($queryString$$3_url$$52$$)) : $JSCompiler_StaticMethods__sendADSChannelRequest$self$$.$_pollingRequest$ = $AdfPage$$.$PAGE$.$getDataTransferService$(!1, 
  !0).$sendPollingRequest$($queryString$$3_url$$52$$, [$JSCompiler_StaticMethods__sendADSChannelRequest$self$$]);
}
$AdfDhtmlActiveData$$.prototype.$setServerTimestamp$ = function $$AdfDhtmlActiveData$$$$$setServerTimestamp$$($timestamp$$2$$) {
  this.$_serverTimeDifference$ = $AdfDhtmlActiveData$$.$_getTimeDifference$($timestamp$$2$$);
  this.$_perfProfileEnabled$ && $AdfLogger$$.$PROFILER_LOGGER$.info("ADS: Server time difference: ", this.$_serverTimeDifference$, ";;");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.setServerTimestamp", {$setServerTimestamp$:$AdfDhtmlActiveData$$.prototype.$setServerTimestamp$});
$AdfDhtmlActiveData$$.$_getTimeDifference$ = function $$AdfDhtmlActiveData$$$$_getTimeDifference$$($timestamp$$3$$) {
  return null == $timestamp$$3$$ ? 0 : new Date - new Date($timestamp$$3$$);
};
$AdfDhtmlActiveData$$.prototype.$recordActiveDataActivity$ = function $$AdfDhtmlActiveData$$$$$recordActiveDataActivity$$() {
  this.$_messageCount$++;
  var $now$$1$$ = (new Date).getTime();
  this.$_lastActiveDataActivityTime$ = $now$$1$$;
  $AdfLogger$$.$LOGGER$.finer($now$$1$$, ": got keep alive");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.recordActiveDataActivity", {$recordActiveDataActivity$:$AdfDhtmlActiveData$$.prototype.$recordActiveDataActivity$});
$AdfDhtmlActiveData$$.prototype.$setConnected$ = function $$AdfDhtmlActiveData$$$$$setConnected$$() {
  $AdfLogger$$.$LOGGER$.finer("ADS Channel Connected");
  $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$);
  "POLLING" == this.$_transport$ && (this.$_pollSucceeded$ = !0);
  this.$_lastActiveDataActivityTime$ = this.$_reconnectRetries$ = 0;
  var $pageId$$19_windowId$$12$$ = $AdfPage$$.$PAGE$.$_pageId$;
  this.$_replaceMasterPageId$ = this.$_masterPageId$ = $pageId$$19_windowId$$12$$;
  this.$_replaceMasterWindowId$ = this.$_masterWindowId$ = $pageId$$19_windowId$$12$$ = $AdfPage$$.$PAGE$.$getWindowId$();
  "POLLING" == this.$_transport$ ? this.$_startPolling$() : ($AdfPage$$.$PAGE$.$getDomWindow$(), this.$_adsConnectionCheckTimer$ && $AdfPage$$.$PAGE$.$cancelTimer$(this.$_adsConnectionCheckTimer$), this.$_adsConnectionCheckTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$__checkAdsConnection$, null, this.$_latencyThreshold$ + this.$_keepAliveInterval$));
  $AdfPage$$.$PAGE$.$__perfTimings$(!1, !1, !1, "ADS channel connected");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.setConnected", {$setConnected$:$AdfDhtmlActiveData$$.prototype.$setConnected$});
$AdfDhtmlActiveData$$.prototype.stop = function $$AdfDhtmlActiveData$$$$stop$() {
  $AdfLogger$$.$LOGGER$.finer("ADS stopped due to user inactivity timeout.");
  var $page$$87$$ = $AdfPage$$.$PAGE$;
  if ("LONG_POLLING" == this.$_transport$) {
    if (this.$_pollingRequest$) {
      try {
        this.$_pollingRequest$.abort(), delete this.$_pollingRequest$, this.$_pollingRequest$ = null;
      } catch ($e$$109$$) {
        $AdfLogger$$.$LOGGER$.fine("Failed to abort Long-Polling request due to error: ", $e$$109$$.message);
      }
    }
  } else {
    if ("STREAMING" == this.$_transport$) {
      var $iframeName$$2_iframeWindow$$2$$ = this.$_ACTIVE_FRAME_NAME$, $domWindow$$91$$ = $page$$87$$.$getDomWindow$();
      ($iframeName$$2_iframeWindow$$2$$ = $domWindow$$91$$.frames[$iframeName$$2_iframeWindow$$2$$]) && $iframeName$$2_iframeWindow$$2$$.frameElement && ($iframeName$$2_iframeWindow$$2$$.frameElement.src = "");
      $AdfLogger$$.$LOGGER$.fine("Terminate the push channel for master window:", $page$$87$$.$getWindowId$(), " in window:", $domWindow$$91$$.name);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.stop", {stop:$AdfDhtmlActiveData$$.prototype.stop});
$AdfDhtmlActiveData$$.prototype.$__checkAdsConnection$ = function $$AdfDhtmlActiveData$$$$$__checkAdsConnection$$() {
  var $elapsed_page$$88$$ = $AdfPage$$.$PAGE$, $helper$$1_latencyThreshold$$ = $elapsed_page$$88$$.$__getUserInactivityTimeoutHelper$();
  if ($helper$$1_latencyThreshold$$ && $helper$$1_latencyThreshold$$.$hasTimedOut$()) {
    return 300;
  }
  var $helper$$1_latencyThreshold$$ = this.$_latencyThreshold$, $keepAliveInterval$$ = this.$_keepAliveInterval$;
  if (this.$_pushChannelState$ == $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$ && this.$_masterWindowId$ == $AdfPage$$.$PAGE$.$getWindowId$()) {
    var $disconnected$$ = !1;
    "STREAMING" == this.$_transport$ && ($disconnected$$ = "complete" == $elapsed_page$$88$$.$getDomWindow$().frames[this.$_ACTIVE_FRAME_NAME$].document.readyState);
    $elapsed_page$$88$$ = $AdfDhtmlActiveData$$.$_getTimeDifference$(this.$_lastActiveDataActivityTime$);
    if ($disconnected$$ || $elapsed_page$$88$$ > $helper$$1_latencyThreshold$$ + $keepAliveInterval$$) {
      $AdfLogger$$.$LOGGER$.finer("ADS Channel Disconnected"), this.$_reconnectRetries$ = 0, this.$_isWindowClosing$ ? $AdfLogger$$.$LOGGER$.finer("Closing window ... will not try to reconnect") : ($JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, $AdfDhtmlPage$$.$PushChannelStates$.$RECONNECTING$), this.$_reconnect$());
    }
  }
  return $helper$$1_latencyThreshold$$ + $keepAliveInterval$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.__checkAdsConnection", {$__checkAdsConnection$:$AdfDhtmlActiveData$$.prototype.$__checkAdsConnection$});
$AdfDhtmlActiveData$$.prototype.$_reconnect$ = function $$AdfDhtmlActiveData$$$$$_reconnect$$() {
  this.$_isWindowClosing$ ? this.$_reconnectRetries$ = 0 : ($AdfLogger$$.$LOGGER$.fine("Reconnect called ", this.$_reconnectRetries$ + 1, " time(s)"), this.$_pushChannelState$ != $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$ && (this.$_reconnectRetries$ <= this.$_maxReconnectionRetries$ ? (this.$_reconnectRetries$++, $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$ && 3 < this.$_reconnectRetries$ && $AdfPage$$.$PAGE$.$getDomWindow$().stop(), this.$_createADSChannel$(!0), $AdfPage$$.$PAGE$.$scheduleTimer$(this, 
  this.$_reconnect$, null, this.$_reconnectWaitTime$)) : ($AdfLogger$$.$LOGGER$.warning("Cannot connect. Exceeded number of retries for reconnection"), $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, $AdfDhtmlPage$$.$PushChannelStates$.$DISCONNECTED$))));
};
$AdfDhtmlActiveData$$.prototype.$getADSConnectionState$ = function $$AdfDhtmlActiveData$$$$$getADSConnectionState$$() {
  return this.$_pushChannelState$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.getADSConnectionState", {$getADSConnectionState$:$AdfDhtmlActiveData$$.prototype.$getADSConnectionState$});
$AdfDhtmlActiveData$$.prototype.$addADSConnectionStateListener$ = function $$AdfDhtmlActiveData$$$$$addADSConnectionStateListener$$($listener$$100$$, $instance$$21$$) {
  $AdfAssert$$.$assertFunction$($listener$$100$$);
  $AdfAssert$$.$assertObjectOrNull$($instance$$21$$);
  this.$_adsConnectionStateListeners$.push($listener$$100$$, $instance$$21$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.addADSConnectionStateListener", {$addADSConnectionStateListener$:$AdfDhtmlActiveData$$.prototype.$addADSConnectionStateListener$});
$AdfDhtmlActiveData$$.prototype.$removeADSConnectionStateListener$ = function $$AdfDhtmlActiveData$$$$$removeADSConnectionStateListener$$($listener$$101$$, $instance$$22$$) {
  $AdfAssert$$.$assertFunction$($listener$$101$$);
  $AdfAssert$$.$assertObjectOrNull$($instance$$22$$);
  var $listenerArray$$ = this.$_adsConnectionStateListeners$;
  $AdfAssert$$.assert($listenerArray$$, "adsConnectionStateListeners array must exist");
  for (var $length$$47$$ = $listenerArray$$.length, $i$$235$$ = 0;$i$$235$$ < $length$$47$$;$i$$235$$++) {
    var $curListener$$ = $listenerArray$$[$i$$235$$];
    $i$$235$$++;
    $curListener$$ == $listener$$101$$ && $listenerArray$$[$i$$235$$] === $instance$$22$$ && $listenerArray$$.splice($i$$235$$ - 1, 2);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.removeADSConnectionStateListener", {$removeADSConnectionStateListener$:$AdfDhtmlActiveData$$.prototype.$removeADSConnectionStateListener$});
$AdfDhtmlActiveData$$.prototype.$_startPolling$ = function $$AdfDhtmlActiveData$$$$$_startPolling$$() {
  if ($AdfPage$$.$PAGE$.$isPPRNavigationEnabled$() && $AdfCollections$$.$isEmpty$(this.$_activeComponents$)) {
    this.$_pollingTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_startPolling$, null, this.$_pollingInterval$);
  } else {
    if (!this.$_pollSucceeded$ && (this.$_reconnectRetries$++, this.$_reconnectRetries$ > this.$_maxReconnectionRetries$)) {
      $AdfLogger$$.$LOGGER$.warning("Cannot connect. Exceeded number of retries for reconnection");
      $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, $AdfDhtmlPage$$.$PushChannelStates$.$DISCONNECTED$);
      return;
    }
    $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, $AdfDhtmlPage$$.$PushChannelStates$.$CONNECTED$);
    if (null != this.$_pollingTimer$) {
      try {
        clearTimeout(this.$_pollingTimer$);
      } catch ($e$$111$$) {
      }
      this.$_pollingTimer$ = null;
    }
    var $clientStateMap$$inline_5627_now$$2_remainingTime$$ = new Date, $elapsedTime_helper$$inline_1224_params$$inline_1225$$ = this.$_pollingInterval$;
    null != this.$_lastPollTime$ && ($elapsedTime_helper$$inline_1224_params$$inline_1225$$ = $clientStateMap$$inline_5627_now$$2_remainingTime$$.getTime() - this.$_lastPollTime$);
    $clientStateMap$$inline_5627_now$$2_remainingTime$$ = 0;
    $elapsedTime_helper$$inline_1224_params$$inline_1225$$ < this.$_pollingInterval$ && ($clientStateMap$$inline_5627_now$$2_remainingTime$$ = this.$_pollingInterval$ - $elapsedTime_helper$$inline_1224_params$$inline_1225$$);
    if (200 >= $clientStateMap$$inline_5627_now$$2_remainingTime$$) {
      $elapsedTime_helper$$inline_1224_params$$inline_1225$$ = $AdfPage$$.$PAGE$.$__getUserInactivityTimeoutHelper$();
      if (!$elapsedTime_helper$$inline_1224_params$$inline_1225$$ || !$elapsedTime_helper$$inline_1224_params$$inline_1225$$.$hasTimedOut$()) {
        var $elapsedTime_helper$$inline_1224_params$$inline_1225$$ = {action:this.$_POLL_EVENTS_ACTION$, windowId:$AdfPage$$.$PAGE$.$getWindowId$(), pageId:$AdfPage$$.$PAGE$.$_pageId$}, $clientStateMap$$inline_5627_now$$2_remainingTime$$ = {}, $windowMap$$inline_5628$$ = $JSCompiler_StaticMethods__getRegistryMap$$(this), $winId$$inline_5629$$;
        for ($winId$$inline_5629$$ in $windowMap$$inline_5628$$) {
          var $windowObject$$inline_5630$$ = $windowMap$$inline_5628$$[$winId$$inline_5629$$];
          try {
            if ($JSCompiler_StaticMethods__testAdfPageExistence$$($windowObject$$inline_5630$$)) {
              var $pageRef$$inline_5631$$ = $windowObject$$inline_5630$$.$AdfPage$.$PAGE$;
              $clientStateMap$$inline_5627_now$$2_remainingTime$$[$winId$$inline_5629$$ + ":" + $pageRef$$inline_5631$$.$_pageId$] = $pageRef$$inline_5631$$.$getActiveDataSupport$().$_activeComponents$;
            }
          } catch ($e$$inline_5632$$) {
            $AdfLogger$$.$LOGGER$.$logErrorAsInfo$($e$$inline_5632$$, "Could not access active page:" + $winId$$inline_5629$$);
          }
        }
        this.$_lastPollTime$ = (new Date).getTime();
        $JSCompiler_StaticMethods__notifyADSConnectionStateChange$$(this, this.$_pollSucceeded$ ? $AdfDhtmlPage$$.$PushChannelStates$.CONNECTING : $AdfDhtmlPage$$.$PushChannelStates$.$RECONNECTING$);
        this.$_pollSucceeded$ = !1;
        $JSCompiler_StaticMethods__sendADSChannelRequest$$(this, $elapsedTime_helper$$inline_1224_params$$inline_1225$$, $clientStateMap$$inline_5627_now$$2_remainingTime$$);
      }
      this.$_pollingTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_startPolling$, null, this.$_pollingInterval$);
    } else {
      $AdfLogger$$.$LOGGER$.finer("Timer is fired much before the _pollingInterval, scheduling timer for ", $clientStateMap$$inline_5627_now$$2_remainingTime$$), this.$_pollingTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_startPolling$, null, $clientStateMap$$inline_5627_now$$2_remainingTime$$);
    }
  }
};
$AdfDhtmlActiveData$$.prototype.$failover$ = function $$AdfDhtmlActiveData$$$$$failover$$($windows$$1$$) {
  this.$_handlingFailover$ = !0;
  $JSCompiler_StaticMethods__handleAllFailovers$$(this, $windows$$1$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.failover", {$failover$:$AdfDhtmlActiveData$$.prototype.$failover$});
function $JSCompiler_StaticMethods__handleFailover$$($JSCompiler_StaticMethods__handleFailover$self$$) {
  $JSCompiler_StaticMethods__handleFailover$self$$.$setHAMigrated$(!1);
  var $domWindow$$93$$ = $AdfPage$$.$PAGE$.$getDomWindow$();
  $JSCompiler_StaticMethods__handleFailover$self$$.$_isWindowClosing$ || $domWindow$$93$$.location.reload(!0);
}
function $JSCompiler_StaticMethods__handleAllFailovers$$($JSCompiler_StaticMethods__handleAllFailovers$self$$, $windows$$2$$) {
  var $windowMap$$9$$ = $JSCompiler_StaticMethods__getRegistryMap$$($JSCompiler_StaticMethods__handleAllFailovers$self$$), $currWindow$$3_targetPage$$3_windowString$$ = void 0, $domWindow$$94$$ = $AdfPage$$.$PAGE$.$getDomWindow$(), $refreshDom$$ = void 0;
  $AdfCollections$$.isArray($windows$$2$$) || ($currWindow$$3_targetPage$$3_windowString$$ = $windows$$2$$, $windows$$2$$ = [], $windows$$2$$ = $windows$$2$$.concat($currWindow$$3_targetPage$$3_windowString$$));
  for (var $winId$$5$$ in $windowMap$$9$$) {
    -1 == $AdfCollections$$.indexOf($windows$$2$$, $winId$$5$$) && ($currWindow$$3_targetPage$$3_windowString$$ = $windowMap$$9$$[$winId$$5$$], $currWindow$$3_targetPage$$3_windowString$$ != $domWindow$$94$$ ? $JSCompiler_StaticMethods__testAdfPageExistence$$($currWindow$$3_targetPage$$3_windowString$$) && ($currWindow$$3_targetPage$$3_windowString$$ = $currWindow$$3_targetPage$$3_windowString$$.$AdfPage$.$PAGE$, $currWindow$$3_targetPage$$3_windowString$$.$getActiveDataSupport$().$isHAMigrated$() || 
    $JSCompiler_StaticMethods__handleFailover$$($currWindow$$3_targetPage$$3_windowString$$.$getActiveDataSupport$())) : $refreshDom$$ = !0);
  }
  $refreshDom$$ && $JSCompiler_StaticMethods__testAdfPageExistence$$($domWindow$$94$$) && $JSCompiler_StaticMethods__handleFailover$$($domWindow$$94$$.$AdfPage$.$PAGE$.$getActiveDataSupport$());
}
$AdfDhtmlActiveData$$.prototype.$setHAMigrated$ = function $$AdfDhtmlActiveData$$$$$setHAMigrated$$($migration$$) {
  $AdfAssert$$.$assertBoolean$($migration$$);
  this.$_haMigrated$ = $migration$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.setHAMigrated", {$setHAMigrated$:$AdfDhtmlActiveData$$.prototype.$setHAMigrated$});
$AdfDhtmlActiveData$$.prototype.$isHAMigrated$ = function $$AdfDhtmlActiveData$$$$$isHAMigrated$$() {
  return this.$_haMigrated$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.isHAMigrated", {$isHAMigrated$:$AdfDhtmlActiveData$$.prototype.$isHAMigrated$});
$AdfDhtmlActiveData$$.prototype.$unmapComponent$ = function $$AdfDhtmlActiveData$$$$$unmapComponent$$($clientId$$113$$) {
  $clientId$$113$$ in this.$_activeComponents$ && $JSCompiler_StaticMethods__stopActiveData$$(this, $clientId$$113$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.unmapComponent", {$unmapComponent$:$AdfDhtmlActiveData$$.prototype.$unmapComponent$});
$AdfDhtmlActiveData$$.prototype.$populateStartActiveDataArray$ = function $$AdfDhtmlActiveData$$$$$populateStartActiveDataArray$$($startActiveDataArray$$, $startActiveDataEventIdArray$$, $currClientId$$1$$) {
  var $activeComponents$$1$$ = this.$_activeComponents$;
  $startActiveDataArray$$.push($currClientId$$1$$);
  $startActiveDataEventIdArray$$.push($activeComponents$$1$$[$currClientId$$1$$].$changeCount$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.populateStartActiveDataArray", {$populateStartActiveDataArray$:$AdfDhtmlActiveData$$.prototype.$populateStartActiveDataArray$});
$AdfDhtmlActiveData$$.prototype.$getActiveComponents$ = function $$AdfDhtmlActiveData$$$$$getActiveComponents$$() {
  return this.$_activeComponents$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.getActiveComponents", {$getActiveComponents$:$AdfDhtmlActiveData$$.prototype.$getActiveComponents$});
$AdfDhtmlActiveData$$.prototype.reset = function $$AdfDhtmlActiveData$$$$reset$() {
  $JSCompiler_StaticMethods__cancelADSTimers$$(this);
  this.$_activeComponents$ = {};
  this.$_admInitialized$ = !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.reset", {reset:$AdfDhtmlActiveData$$.prototype.reset});
$AdfDhtmlActiveData$$.prototype.$setActiveComponents$ = function $$AdfDhtmlActiveData$$$$$setActiveComponents$$($activeComponents$$2$$) {
  this.$_activeComponents$ = $activeComponents$$2$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlActiveData.prototype.setActiveComponents", {$setActiveComponents$:$AdfDhtmlActiveData$$.prototype.$setActiveComponents$});
