window.adf||(window.adf={});adf.mf=adf.mf||{};adf.mf.api=adf.mf.api||{};adf.mf.api.amx=adf.mf.api.amx||{};adf.mf.internal=adf.mf.internal||{};adf.mf.internal.amx=adf.mf.internal.amx||{};adf.mf.resource=adf.mf.resource||{};window.amx={};(function(){adf.mf.resource.AMXErrorBundleName="AMXErrorBundle";adf.mf.resource.AMXInfoBundleName="AMXInfoBundle"})(jQuery);
(function(){function a(a,b,d){adf.mf.api.amx.loadJavaScriptByLocale(b,function(b){return a+"/resource/LocaleElements_"+adf.mf.locale.getJavaLanguage(b)+".js"},function(a){a="_"+adf.mf.locale.getJavaLanguage(a);return"undefined"!==typeof window["LocaleSymbols"+a]?!0:!1},d)}function b(a,b,d){adf.mf.api.amx.loadJavaScriptByLocale(b,function(b){var d=a+"/resource/MessageBundle";return 0==b.indexOf("en")?d+".js":d+"_"+adf.mf.locale.getJavaLanguage(b)+".js"},function(){return"undefined"!==typeof TrMessageFactory._TRANSLATIONS},
d)}function d(a,b){adf.mf.resource.loadADFMessageBundles(a,b.slice(0));adf.mf.resource.loadMessageBundle(adf.mf.resource.AMXErrorBundleName,a,b.slice(0));adf.mf.resource.loadMessageBundle(adf.mf.resource.AMXInfoBundleName,a,b.slice(0))}adf.mf.api.amx.loadJavaScriptByLocale=function(a,b,d,k){a=$.merge([],a);adf.mf.internal.resource.loadJavaScriptByLocale(a,b,d,k)};adf.mf.api.amx.loadTrinidadResources=function(e){adf.mf.api.addErrorHandler(adf.mf.internal.amx.errorHandlerImpl);_df2DYS=null;_locale=
adf.mf.locale.getUserLanguage();var g=adf.mf.locale.generateLocaleList(_locale,!0),h=adf.mf.locale.generateLocaleList(_locale,!1);a(e,g,function(a){null===a?adf.mf.log.Framework.isLoggable(adf.mf.log.level.WARNING)&&adf.mf.log.Framework.logp(adf.mf.log.level.WARNING,"amx","loadTrinidadResources","Failed to load LocaleElements"):(_locale=a,b(e,h,function(a){null===a&&adf.mf.log.Framework.isLoggable(adf.mf.log.level.WARNING)&&adf.mf.log.Framework.logp(adf.mf.log.level.WARNING,"amx","loadTrinidadResources",
"Failed to load MessageBundle")}))});d(e,h)}})();
(function(a){amx.dtmode=!1;amx.testmode=amx.testmode||!1;amx.failsafeinvoked=!1;amx.CALL_IDX=1;adf.mf.environment.profile.dtMode&&(amx.dtmode=adf.mf.environment.profile.dtMode);adf.mf.internal.amx.agent={type:"iOS"};var b=(""+navigator.userAgent).toLowerCase();b.match(/android/i)?b.match(/chrome\//i)?(adf.mf.internal.amx.agent={type:"Android",subtype:"Chrome"},document.documentElement.className+=" amx-android-chrome"):(adf.mf.internal.amx.agent={type:"Android",subtype:"Generic"},document.documentElement.className+=
" amx-android-generic"):document.documentElement.className+=" amx-ios";adf.mf.internal.amx.transitionAfterRender=null;adf.mf.internal.amx.isTransitionAfterRender=function(a){var b=adf.mf.internal.amx.transitionAfterRender;null==b&&(b="placeholder"==adf.mf.el.getLocalValue("#{applicationScope.configuration.amxTransitionMode}")?!1:!0,a||(adf.mf.internal.amx.transitionAfterRender=b));return b};amx.config={debug:{enable:!1,onScreen:!1}};amx.log={};amx.log.debug=function(b){amx.config.debug.enable&&(amx.config.debug.onScreen&&
!amx.$amxDebug&&(amx.$amxDebug=a("<div id='amxDebug'></div>").appendTo("body")),amx.$amxDebug?amx.$amxDebug.prepend(b+"<br />"):console.log(b))};amx.log.error=function(b){b="AMX-ERROR: "+b;amx.config.debug.onScreen&&!amx.$amxDebug&&(amx.$amxDebug=a("<div id='amxDebug'></div>").appendTo("body"));amx.$amxDebug&&amx.$amxDebug.prepend(b+"<br />");console.log(b)};amx.log.warn=function(a){a="AMX-WARN: "+a;amx.$amxDebug&&amx.$amxDebug.prepend(a+"<br />");console.log&&console.log(a)}})(jQuery);
adf.mf.internal.amx._showLoadingCalls=0;adf.mf.internal.amx._showLoadingIndicator=function(){var a=$("#amx-loading");a.removeClass("hidden");a.addClass("beforeShowing");a.removeClass("beforeShowing");a.addClass("showing");a=document.getElementById("amx-loading-live-region");if(null!=a){var b=adf.mf.resource.getInfoString("AMXInfoBundle","MSG_LOADING");null==b&&(b="Loading");a.textContent=b}};
adf.mf.api.amx.showLoadingIndicator=function(){0==adf.mf.internal.amx._showLoadingCalls&&!0==adf.mf.internal.amx._loadingIndicatorNotFirstTime?(adf.mf.internal.amx._showLoadingIndicator(),adf.mf.internal.amx._failSafeTimer=window.setTimeout(adf.mf.internal.amx.killLoadingIndicator,1E4),adf.mf.internal.amx._showLoadingCalls=1):adf.mf.internal.amx._showLoadingCalls+=1};
adf.mf.internal.amx.killLoadingIndicator=function(){window.clearTimeout(adf.mf.internal.amx._failSafeTimer);delete adf.mf.internal.amx._failSafeTimer;adf.mf.internal.amx._showLoadingCalls=0;var a=$("#amx-loading");a.one("webkitTransitionEnd",function(){a.removeClass("hiding");a.addClass("hidden");var b=document.getElementById("amx-loading-live-region");null!=b&&(b.textContent="");adf.mf.internal.api.queueShowPageComplete()});a.removeClass("showing");a.addClass("hiding");amx.testmode&&(amx.failsafeinvoked=
!0)};adf.mf.api.amx.hideLoadingIndicator=function(){if(0!=adf.mf.internal.amx._showLoadingCalls&&(adf.mf.internal.amx._showLoadingCalls-=1,0==adf.mf.internal.amx._showLoadingCalls)){var a=$("#amx-loading");a.removeClass("showing");a.addClass("hiding");a.removeClass("hiding");a.addClass("hidden");window.clearTimeout(adf.mf.internal.amx._failSafeTimer);delete adf.mf.internal.amx._failSafeTimer;a=document.getElementById("amx-loading-live-region");null!=a&&(a.textContent="")}};
adf.mf.api.amx.hideLoadingIndicatorOnlyIfFirstTime=function(){if(null==adf.mf.internal.amx._loadingIndicatorNotFirstTime){adf.mf.internal.amx._showLoadingCalls=0;adf.mf.internal.amx._loadingIndicatorNotFirstTime=!0;var a=$("#amx-loading");a.one("webkitTransitionEnd",function(){a.removeClass("hiding");a.addClass("hidden");adf.mf.internal.api.queueShowPageComplete()});a.removeClass("showing");a.addClass("hiding")}else adf.mf.api.amx.hideLoadingIndicator()};
adf.mf.api.amx.bulkLoadProviders=function(a,b,d,e,g){var h=a.getCachedRowCount(b),k=a.treeNodeBindings.keys.length,m=-1==d||k<d?k:d;if(h+b<m){var n=b+h;0>n&&(n=0);a.setCurrentIndex(n);a.nextSet(function(){adf.mf.api.amx.bulkLoadProviders(a,n,m,e,g)},g)}else try{e(null,null)}catch(o){g(o,null)}};$(function(){amx.$bodyPage=$("#bodyPage");$("body").bind("touchmove",function(){})});
(function(){function a(a){a=a.findTags("http://xmlns.oracle.com/adf/mf/amx","loadBundle");return amx.serialResolve(a,function(a){if(!adf.mf.environment.profile.dtMode){var b=a.getAttribute("basename"),a=a.getAttribute("var");return amx.loadBundle(b,a)}})}function b(d,e){if(adf.mf.internal.amx._isInsideCriticalSection())adf.mf.internal.amx._queueCriticalSectionFunction(b,this,d,e);else{adf.mf.internal.amx._enterCriticalSection();adf.mf.api.addBatchDataChangeListener(adf.mf.internal.amx._handleBatchDataChangeListener);
adf.mf.internal.perf.start("amx.GetPagetInitContext",d);var g=q(d),k=m(d);amx.clearBindings();amx.mustProcessQueues=!1;$.when(g,k,h()).fail(function(){adf.mf.internal.amx._leaveCriticalSection();adf.mf.api.amx.hideLoadingIndicator()}).done(function(b){adf.mf.internal.perf.start("amx.loadBundles",b);a(b).fail(function(){adf.mf.internal.perf.stop("amx.loadBundles",b);adf.mf.internal.perf.stop("amx.GetPagetInitContext",d)}).done(function(){adf.mf.internal.perf.stop("amx.loadBundles",b);var a=y(d,b);
adf.mf.internal.amx._leaveCriticalSection();a.fail(function(){adf.mf.internal.perf.stop("amx.GetPagetInitContext",d)}).done(function(a){adf.mf.internal.perf.stop("amx.GetPagetInitContext",d);adf.mf.internal.perf.start("amx.render",a);var b;try{b=a.renderNode()}finally{adf.mf.internal.perf.stop("amx.render",d)}adf.mf.internal.perf.start("amx.render.done",d);try{var g;if(adf.mf.internal.amx.isTransitionAfterRender(z))g=$("<div data-pageName='"+d+"' class='amx-view-container'></div>"),g.addClass("new"),
amx.$bodyPage.append(g),g.removeClass("old").addClass("new");else{var h;if(z)h=adf.mf.internal.amx._createViewContainerElement();else{var k=document.getElementsByClassName("amx-view-container");h=k[k.length-1]}g=$(h);h.setAttribute("data-pageName",d)}g.empty().append(b);amx.processAndCleanInitQueue();z&&(g.removeClass("new").addClass("current"),z=!1);amx.processAndCleanPostDisplayQueue();amx.mustProcessQueues=!0;e.resolve(g)}finally{adf.mf.internal.perf.stop("amx.render.done",d),adf.mf.api.amx.hideLoadingIndicatorOnlyIfFirstTime()}})})})}}
function d(){var a=document.styleSheets,b=a.length;if(D!=b){D=b;for(var d=0;d<G.length;++d)for(var e=G[d],g=e.node,h=0;h<b;++h){var k=a[h].ownerNode;if(g==k){e.deferred.resolve(k);G.splice(d--,1);amx.log.debug("CSS resource loaded: "+e.path);if(0==G.length){window.clearInterval(L);L=null;return}break}}if(5E3<=(new Date).getMilliseconds()-B){for(a=G.length;d<a;++d)e=G[0],e.deferred.reject(),adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"amx.includeCss","MSG_FAILED_TO_LOAD",e.path);
G=[];window.clearInterval(L);L=null}}}function e(a){this._items=a;this._index=-1;this._length=a.length}function g(a){this._first=!0;this._items=a}function h(){A||(A=$.Deferred(),adf.mf.environment.profile.mockData?adf.mf.internal.amx._loadJsonFile(adfc.Util.addFeatureRootPrefix("featureLevelIncludes.jso"),!0,function(a){k(a);A.resolve()},function(){A.resolve()}):container.internal.device.integration.getAmxIncludeList(function(a){k(a);A.resolve()},function(a){adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.SEVERE,"initUI","MSG_AMX_INCLUDE_FAILED",a);A.resolve()}));return A}function k(a){a&&$.each(a,function(a,b){var d=b.file;amx.hasProtocol(d)||(d=adfc.Util.addFeatureRootPrefix(b.file));"StyleSheet"==b.type?amx.includeCss(d):"JavaScript"==b.type&&amx.includeJs(d)})}function m(a){var b=$.Deferred();!J&&adf.mf.environment.profile.mockData?(adf.mf.el.getLocalValue("#{applicationScope}"),a=a||"nopage",adf.mf.internal.amx._loadJsonFile(adfc.Util.addFeatureRootPrefix("model.jso"),!0,function(a){a?
($.each(a,function(a,b){adf.mf.el.addVariable(a,b)}),adf.mf.el.addVariable("applicationScope",{}),adf.mf.el.addVariable("pageFlowScope",{}),J=!0,adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"mockInitData","MSG_AMX_MODEL_JSO_LOADED")):(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"mockInitData","MSG_NO_MODEL_JSO_FOUND"),adf.mf.environment.profile.mockData=!1);b.resolve()},function(){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"mockInitData",
"MSG_NO_MODEL_JSO_FOUND");adf.mf.environment.profile.mockData=!1;b.resolve()})):b.resolve();return b.pipe(function(){return n(a)})}function n(a){var b=$.Deferred();adf.mf.environment.profile.mockData?b.resolve():(adf.mf.internal.perf.start("initContext: Blank Page",a),adf.mf.api.setContext("",function(){adf.mf.internal.perf.stop("initContext: Blank Page",a);adf.mf.internal.perf.start("initContext: New Page",a);amx.getElValue("#{applicationScope.configuration.amxTransitionMode}",!0);adf.mf.api.setContext(a,
function(){adf.mf.internal.perf.stop("initContext: New Page",a);b.resolve()},function(d){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"initContext","MSG_SET_CONTEXT_FAILED",a,d);adf.mf.internal.perf.stop("initContext: New Page",a);b.resolve()})},function(d){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"initContext","MSG_SET_CONTEXT_EMPTY_STRING_FAILED",d);adf.mf.internal.perf.stop("initContext: Blank Page",a);b.resolve()}));return b.promise()}function o(a){var b=
$.Deferred(),d=adfc.Util.addFeatureRootPrefix(a);adf.mf.internal.amx._loadXmlFile(d,!0,function(a){b.resolve(a)},function(){b.reject("Unable to load the XML file: "+d)});return b.promise()}function q(a){var b=$.Deferred(),d=H[a];d?b.resolve(d):o(a).done(function(d){H[a]=d;b.resolve(d)}).fail(function(){var a=Array.prototype.slice.call(arguments);b.reject.apply(b,a)});return b.promise()}function s(){this._affectedNodeIds={};this._affectedNodes=[];this._nodesToRecreate=[];this._descendentChanges={};
this._ancestorNodes=[];this._attributeChanges={};this._changeResult={};this._initialStates={}}function t(a,b){var d=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST),e=new adf.mf.api.amx.VisitContext({amxNodes:b.getAffectedNodes()}),g=new s;a.visit(e,function(a,e){var h=e.getId(),k=b.getAffectedAttributes(h);d&&adf.mf.internal.perf.trace("applyUpdatesToAmxNodeHierarchy","Found node to apply updates. ID: "+h);var m=e.isRendered()&&null!=document.getElementById(h),n=e.getState(),h=b.getCollectionChanges(h),
h=e.updateAttributes(k,h),k=e.getState();d&&adf.mf.internal.perf.trace("applyUpdatesToAmxNodeHierarchy","Node attributes have been applied. New node state: "+k);if(k==adf.mf.api.amx.AmxNodeStates.UNRENDERED)return g.addChangeResult(e,n,h,adf.mf.api.amx.AmxNodeChangeResult[m?"RERENDER":"NONE"]),adf.mf.api.amx.VisitResult.REJECT;var u;k!=adf.mf.api.amx.AmxNodeStates.INITIAL?(d&&adf.mf.internal.perf.trace("applyUpdatesToAmxNodeHierarchy","Updating the children of the node"),u=e.updateChildren(h),k=e.getState(),
m=k==adf.mf.api.amx.AmxNodeStates.INITIAL,d&&adf.mf.internal.perf.trace("applyUpdatesToAmxNodeHierarchy","New node state: "+k+". Should the build visit callback be skipped: "+m+". Update children method returned: "+u)):(u=adf.mf.api.amx.AmxNodeChangeResult.RERENDER,m=!1);g.addChangeResult(e,n,h,u);(n=u==adf.mf.api.amx.AmxNodeChangeResult.REPLACE)&&(m=!0);!1==m&&(e.visit(new adf.mf.api.amx.VisitContext,adf.mf.internal.amx._buildVisitCallback),k=e.getState(),d&&adf.mf.internal.perf.trace("applyUpdatesToAmxNodeHierarchy",
"Node state after invoking the build visit callback: "+k));return n||k==adf.mf.api.amx.AmxNodeStates.INITIAL||k==adf.mf.api.amx.AmxNodeStates.UNRENDERED?adf.mf.api.amx.VisitResult.REJECT:adf.mf.api.amx.VisitResult.ACCEPT});return g}function u(a,b){for(var d=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST),e={},g=[],h,k,m=b.getAmxNodesToRecreate(),n=0,u=m.length;n<u;++n){h=m[n];d&&adf.mf.internal.perf.trace("recreateRequestedAmxNodes","Will attempt to recreate node with ID "+h.getId());var o=
h.getParent();k=o.getId();var q=e[k];null==q?(q=[h],e[k]=q,g.push(o)):q.push(h)}a.visit(new adf.mf.api.amx.VisitContext({amxNodes:g}),function(a,g){for(var h=g.getId(),h=e[h],k=0,m=h.length;k<m;++k){var n=h[k];d&&adf.mf.internal.perf.trace("recreateRequestedAmxNodes","Re-creating node "+n.getId());var u=n.getTag(),o=n.getStampKey(),u=u.buildAmxNode(g,o);g.replaceChild(n,u)&&(u.visit(new adf.mf.api.amx.VisitContext,adf.mf.internal.amx._buildVisitCallback),b.amxNodeRecreated(n,u))}return adf.mf.api.amx.VisitResult.ACCEPT})}
function v(a,b){var d=b.getAmxNodesForDescendentChanges(),d=new adf.mf.api.amx.VisitContext({amxNodes:d});a.visit(d,function(a,d){var e=d.getId(),e=b.getDescendentChanges(e),e=d.__getDescendentChangeAction(e);e==adf.mf.api.amx.AmxNodeChangeResult.REPLACE&&(e=adf.mf.api.amx.AmxNodeChangeResult.RERENDER);b.setDescendentChangesResult(d,e);return adf.mf.api.amx.VisitResult.ACCEPT})}function w(a,b){var d=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST),e=b.getAffectedNodes(),e=new adf.mf.api.amx.VisitContext({amxNodes:e});
a.visit(e,function(a,e){var g=e.getId(),h=b.getChangeResult(g);d&&adf.mf.internal.perf.trace("applyRenderChanges","Found node to apply render changes. ID: "+g+". Change result: "+h);switch(h){case adf.mf.api.amx.AmxNodeChangeResult.REFRESH:var h=b.getAttributeChanges(g),k=b.getDescendentChanges(g);null==h&&(h=new adf.mf.api.amx.AmxAttributeChange);e.refresh(h,k);break;case adf.mf.api.amx.AmxNodeChangeResult.RERENDER:e.rerenderNode()}d&&adf.mf.internal.perf.trace("applyRenderChanges","Completed the processing of the changes for node "+
g);return adf.mf.api.amx.VisitResult.ACCEPT})}function x(){this._amxNodes=[];this._affectedAttributes={};this._collectionChanges={}}function y(a,b){var d=$.Deferred();adf.mf.internal.perf.start("amx.buildAmxNodeTree",b);try{adf.mf.internal.amx._pageBuildDeferred=d;var e=new adf.mf.api.amx.VisitContext;e._allNodesReadyToRender=!0;null==a&&(a=adf.mf.internal.controller.ViewHistory.peek().amxPage);null==b&&(b=H[a]);P=b.buildAmxNode(null,null);adf.mf.el.startGetValueBatchRequest();P.visit(e,adf.mf.internal.amx._buildVisitCallback)}catch(g){adf.mf.internal.amx.errorHandlerImpl(null,
g)}finally{adf.mf.internal.perf.stop("amx.buildAmxNodeTree",b)}try{adf.mf.el.flushGetValueBatchRequest()}catch(h){adf.mf.internal.amx.errorHandlerImpl(null,h)}e._allNodesReadyToRender&&(adf.mf.internal.amx._pageBuildDeferred=null,d.resolve(P));return d.promise()}amx.uiFlush=function(){amx.UIFlushVal*=-1;amx.$UIFlush.html(amx.UIFlushVal);amx.$UIFlush.css("width",30+amx.UIFlushVal+"px")};amx.transitioning=!1;amx.acceptEvent=function(){return!amx.transitioning&&!adf.mf.environment.profile.dtMode};amx.getCurrentPageName=
function(){return $(".amx-view-container.current").attr("data-pagename")};amx.hooks={};var z=!0,A;adf.mf.internal.useNavHandlerViewHistory=!0;adf.mf.api.amx.getVolatileState=function(a){var b=adf.mf.internal.amx._getVolatileStateMap();if(null==a)throw Error("Volatile state access requires an amxNodeId but was given: "+a);if(null==b)throw Error("Volatile state access failed to establish a place for storage: "+b);return b[a]};adf.mf.api.amx.setVolatileState=function(a,b){var d=adf.mf.internal.amx._getVolatileStateMap();
if(null==a)throw Error("Volatile state access requires an amxNodeId but was given: "+a);if(null==d)throw Error("Volatile state access failed to establish a place for storage: "+d);d[a]=b};adf.mf.internal.amx._getVolatileStateMap=function(){adf.mf.environment.profile.dtMode&&null==adf.mf.internal.amx._volatileStateMap&&(adf.mf.internal.amx._volatileStateMap={});return adf.mf.internal.amx._volatileStateMap};adf.mf.api.amx.getClientState=function(a){var b=adf.mf.internal.amx._getClientStateMap();if(null==
a)throw Error("Client state access requires an amxNodeId but was given: "+a);if(null==b)throw Error("Client state access failed to establish a place for storage: "+b);return b[a]};adf.mf.api.amx.setClientState=function(a,b){var d=adf.mf.internal.amx._getClientStateMap();if(null==a)throw Error("Client state access requires an amxNodeId but was given: "+a);if(null==d)throw Error("Client state access failed to establish a place for storage: "+d);d[a]=b};adf.mf.internal.amx._useBruceApproach="true"==
adf.mf.api.getQueryStringParamValue(adf.mf.api.getQueryString(),"useBruceWay");adf.mf.internal.amx._getClientStateMap=function(){var a;if(adf.mf.internal.amx._useBruceApproach){if(void 0===(a=adf.mf.el.getLocalValue("#{bindings.amxInternalClientState}")))a={},adf.mf.el.setLocalValue({name:"#{bindings.amxInternalClientState}",value:a},function(){},function(a,b){throw Error("Client state access failed: "+b);})}else adf.mf.environment.profile.dtMode&&null==adf.mf.internal.amx._nonBruceClientStateMap&&
(adf.mf.internal.amx._nonBruceClientStateMap={}),a=adf.mf.internal.amx._nonBruceClientStateMap;return a};adf.mf.internal.amx.setMfContextInstance=function(a){adf.mf.internal.amx._useBruceApproach?adf.mf.api.setContextInstance(a.amxPage,a.itemId,!1,!1,function(){},function(a,b){throw Error("Navigation failed: (mfContext set) "+b);}):(null==a._nonBruceClientStateMap&&(a._nonBruceClientStateMap={}),adf.mf.internal.amx._nonBruceClientStateMap=a._nonBruceClientStateMap);adf.mf.internal.amx._volatileStateMap=
{}};adf.mf.internal.amx.removeMfContextInstance=function(a){adf.mf.internal.amx._useBruceApproach?adf.mf.api.removeContextInstance(a.amxPage,a.itemId,function(){},function(a,b){throw Error("Navigation failed: (mfContext removal) "+b);}):adf.mf.internal.amx._nonBruceClientStateMap=null};amx.doNavigation=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"doNavigation","MSG_DEPRECATED","amx.doNavigation","adf.mf.api.amx.doNavigation");adf.mf.api.amx.doNavigation.apply(this,
arguments)};adf.mf.api.amx.doNavigation=function(a){adf.mf.internal.perf.start("amx.doNavigation",a.toString());adf.mf.api.amx.showLoadingIndicator();var b=$.Deferred();b.fail(function(){adf.mf.internal.perf.stop("amx.doNavigation",a.toString())});if(0==amx.getElsFromString(a).length)b.resolve(a);else{var d=function(a,d){b.resolve(d)};try{adf.mf.el.invoke(a,[],"java.lang.String",[],d,d)}catch(e){b.resolve(e)}}b.done(function(a){var b={};b.currentViewId=adf.mf.internal.controller.ViewHistory.peek().viewId;
b.outcome=amx.getObjectValue(a);var d=amx.$bodyPage.children(".current");adf.mf.internal.amx.processPreDestroy(d);adfc.NavigationHandler.handleNavigation(b,function(b,d){var e=d.getTransitionType(),g=d.getVdlDocumentPath(),h=d.isBackNavigation();if(null==g)adf.mf.api.amx.hideLoadingIndicator(),adf.mf.internal.perf.stop("amx.doNavigation",a.toString());else{adf.mf.internal.amx.closePopups&&adf.mf.internal.amx.closePopups();var k=amx.$bodyPage.children(".current");adf.mf.internal.amx.processDestroy(k);
if(0<k.length)for(var m=document.createTreeWalker(k.get(0),NodeFilter.SHOW_ELEMENT,{acceptNode:function(a){return a.hasAttribute("id")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},!1);m.nextNode();)m.currentNode.removeAttribute("id");adf.mf.internal.perf.stop("amx.doNavigation",a.toString());if(adf.mf.internal.amx.isTransitionAfterRender(!1))adf.mf.api.amx.displayAmxPage(g).done(function(a){adf.mf.internal.perf.start("amx.transitionPage",g);try{var b=amx.getTransitionHandler(e);b?(amx.transitioning=
!0,b(k,a,h).always(function(){amx.transitioning=!1;adf.mf.api.amx.hideLoadingIndicator();adf.mf.internal.perf.stop("amx.transitionPage","with transition")})):(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"doNavigation","MSG_NOT_TRANSITIONING"),amx.transitioning=!0,k.removeClass("current").addClass("old"),a.removeClass("new").addClass("current"),adf.mf.internal.amx.processDestroy(k),k.remove(),amx.transitioning=!1,adf.mf.api.amx.hideLoadingIndicator(),adf.mf.internal.perf.stop("amx.transitionPage",
"no transition"))}catch(d){throw adf.mf.internal.perf.stop("amx.transitionPage","error: "+d.message),d;}});else{amx.transitioning=!0;amx._stillTransitioningAway=!0;amx._stillDisplayingAmxPage=!0;var m=adf.mf.internal.amx._createViewContainerElement(),m=$(m),n=amx.getTransitionHandler(e);n?n(k,m,h).done(function(){amx._stillTransitioningAway=!1;amx.transitioning=amx._stillDisplayingAmxPage||amx._transitioningAway}):(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"doNavigation",
"MSG_NOT_TRANSITIONING"),amx._stillTransitioningAway=!1,k.removeClass("current").addClass("old"),m.removeClass("new").addClass("current"),adf.mf.internal.amx.processDestroy(k),k.remove());adf.mf.api.amx.displayAmxPage(g).done(function(){amx._stillDisplayingAmxPage=!1;amx.transitioning=amx._stillDisplayingAmxPage||amx._stillTransitioningAway;adf.mf.api.amx.hideLoadingIndicator()})}}},function(a,b){adf.mf.api.amx.hideLoadingIndicator();adf.mf.internal.perf.stop("amx.doNavigation","Navigation failed: "+
b);throw Error("Navigation failed: "+b);})})};var F=[],C=[];adf.mf.internal.amx.removeAmxDomNode=function(a){a=$(a);return null!=a.data("amxNode")?(adf.mf.internal.amx.processPreDestroy(a),adf.mf.internal.amx.processDestroy(a),a.remove(),!0):!1};adf.mf.internal.amx.processPreDestroy=function(a){var b=a.is(".amx-has-predestroy")?a:$(),b=b.add(a.find(".amx-has-predestroy"));b.each(function(){var a=$(this),b=a.data("amxNode"),d=b.getTypeHandler();d&&d.preDestroy&&d.preDestroy(a,b)})};adf.mf.internal.amx.processDestroy=
function(a){var b=a.is(".amx-has-destroy")?a:$(),b=b.add(a.find(".amx-has-destroy"));b.each(function(){var a=$(this),b=a.data("amxNode"),d=b.getTypeHandler();d&&d.destroy&&d.destroy(a,b)})};amx.processAndCleanInitQueue=function(){if(0<F.length){var a=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST);$.each(F,function(b,d){var e;e=d.jquery?d.data("amxNode"):$(d).data("amxNode");if(null!=e){var g=e.getTypeHandler();null!=g&&null!=g.init?(a&&adf.mf.internal.perf.trace("amx.processAndCleanInitQueue",
"Invoking the init method on the type handler for node "+e.getId()),g.init(d,e)):adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"processAndCleanInitQueue","MSG_CANT_INIT_NODE",d)}});delete F;F=[]}};amx.processAndCleanPostDisplayQueue=function(){if(0<C.length){var a=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST);$.each(C,function(b,d){var e;e=d.jquery?d.data("amxNode"):$(d).data("amxNode");if(null!=e){var g=e.getTypeHandler();null!=g&&null!=g.postDisplay?(a&&adf.mf.internal.perf.trace("amx.processAndCleanPostDisplayQueue",
"Invoking the postDisplay method on the type handler for node "+e.getId()),g.postDisplay(d,e)):adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"processAndCleanPostDisplayQueue","MSG_CANT_POSTDISPLAY_NODE",d)}});delete C;C=[]}};amx.queueForInit=function(a){F.push(a)};amx.queueForPostDisplay=function(a){C.push(a)};amx.mustProcessQueues=!0;adf.mf.internal.amx._createViewContainerElement=function(){var a=document.createElement("div");a.className="amx-view-container new";amx.$bodyPage.get(0).appendChild(a);
return a};adf.mf.api.amx.displayAmxPage=function(a){adf.mf.api.amx.showLoadingIndicator();var d=$.Deferred();b(a,d);return d.promise()};var E={},I={},G=[],L=null,B=0,D=0;adf.mf.internal.amx._loadJsFile=function(a,b,d,e,g){if(null==g){var h=document.getElementsByTagName("head")[0],k=document.createElement("script");k.type="text/javascript";k.src=a;k.async=b;k.onload=d;k.onerror=e;h.appendChild(k)}else adf.mf.internal.amx._loadFileWithAjax(a,b,function(b){if(null!=b&&0<b.length){b=g(b);try{(new Function(b))(),
d()}catch(h){console.log(a),console.log(h),e(h)}}else e("Empty response")},e)};adf.mf.internal.amx._loadJsonFile=function(a,b,d,e){adf.mf.internal.amx._loadFileWithAjax(a,b,function(a){null!=a&&0<a.length?(a=jQuery.parseJSON(a),d(a)):e("Empty response")},e)};adf.mf.internal.amx._loadXmlFile=function(a,b,d,e){adf.mf.internal.amx._loadFileWithAjax(a,b,function(a){if(null!=a&&0<a.length){for(var b=null,a=(new DOMParser).parseFromString(a,"text/xml").firstChild;null==b&&null!=a;)1==a.nodeType?b=a:a=a.nextSibling;
null!=b?(b=new adf.mf.api.amx.AmxTag(null,b),adf.mf.internal.amx._preProcessTagTree(b),d(b)):e("No root view tag found")}else e("Empty response")},e)};adf.mf.internal.amx._loadFileWithAjax=function(a,b,d,e){var g=new XMLHttpRequest;b&&(g.onreadystatechange=function(){4==g.readyState&&d(g.responseText)});g.open("GET",a,b);g.send(null);b||(4==g.readyState?d(g.responseText):e("No response"))};amx.includeJs=function(a){if(E[a])return $.Deferred().resolve();var b=$.Deferred();adf.mf.internal.amx._loadJsFile(a,
!1,function(){amx.log.debug("Successfully loaded JavaScript "+a);b.resolve()},function(){adf.mf.api.adf.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"amx.includeJs","MSG_FAILED_TO_LOAD",a);b.reject()},function(b){return b+="\n//@ sourceURL="+a});amx.log.debug("Sent request for JS script source: "+a);E[a]=!0;return b};amx.includeCss=function(a){if(I[a])return $.Deferred().resolve();var b=$("<link rel='stylesheet' type='text/css' />").attr("href",a).appendTo(document.head).get(0);amx.log.debug("Added CSS resource: "+
a);I[a]=!0;var e=$.Deferred();G.push({path:a,node:b,deferred:e});null==L&&(L=window.setInterval(d,10));B=(new Date).getMilliseconds();return e};e.prototype={next:function(){return this.hasNext()?this._items[++this._index]:void 0},hasNext:function(){return this._index+1<this._length},isTreeNodeIterator:function(){return!1},getAvailableCount:function(){return this._length},getTotalCount:function(){return this._length},getRowKey:function(){if(-1==this._index)return null;var a=this._items[this._index];
return null==a?null:"function"===typeof a.rowKey?a.rowKey():this._index},setCurrentIndex:function(a){this._index=a},setCurrentRowKey:function(a){for(this._index=-1;this.hasNext();)if(this.next(),this.getRowKey()==a)return!0;return!1}};g.prototype={next:function(){return this._first?(this._first=!1,this._items.localFirst()):this._items.localNext()},hasNext:function(){return this._first?void 0!==this._items.localFirst():this._items.hasNext()&&0<this._items.getCachedRowCount(this._items.index+1)},isTreeNodeIterator:function(){return!0},
getAvailableCount:function(){return this._items.getCachedRowCount(0)},getTotalCount:function(){return this._items.treeNodeBindings.keys.length},getRowKey:function(){return this._first?null:this._items.getCurrentKey()},setCurrentIndex:function(a){this._items.setCurrentIndex(a);this._first=-1==a},setCurrentRowKey:function(a){this._first=!1;return this._items.setCurrentRowKey(a)}};adf.mf.api.amx.createIterator=function(a){return"TreeNodeIterator"===a[".type"]?new g(a):new e(a)};amx.serialResolve=function(a,
b){var d;try{adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("amx.serialResolve","items is of type: "+a.constructor.name+" or "+a[".type"]),d=a.constructor.name||a[".type"]}catch(e){}if("TreeNodeIterator"===d)return amx.iteratorResolve(a,b);var g=$.Deferred(),h=[],k=0,m=function(){if(k<a.length){var d=b(a[k],k);"undefined"!==typeof d&&null!==d&&$.isFunction(d.promise)&&!d.jquery?d.done(function(a){h.push(a);k+=1;m()}).fail(function(){adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.SEVERE,"resolveAndNext","MSG_SERIAL_RESOLVE_DEFERRED_REJECTED",k);g.reject()}):(h.push(d),k+=1,m())}else g.resolve(h)};m();return g.promise()};adf.mf.internal.amx.isFiniteNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)};amx.iteratorResolve=function(a,b,d){function e(){if(a.hasNext()&&m<n)a[k](function(d,g){k="next";var n=b(g[0].value,a.getCurrentIndex());"undefined"!==typeof n&&null!==n&&$.isFunction(n.promise)&&!n.jquery?n.done(function(a){h.push(a);++m;e()}):(h.push(n),
++m,e())},function(a,b){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"resolveNext","MSG_ITERATOR_FIRST_NEXT_ERROR",a,b)});else g.resolve(h)}var g=$.Deferred(),h=[],k="first",m=0,n=Infinity;d&&(n=d);e();return g.promise()};var J=!1,H={},N={};amx.registerTransitionHandler=function(a,b){N[a]=b};amx.getTransitionHandler=function(a){return N[a]};adf.mf.api.amx.getPageRootNode=function(){return P};s.prototype={getAffectedNodes:function(){return this._affectedNodes},getChangeResult:function(a){return this._changeResult[a]},
getAttributeChanges:function(a){return this._attributeChanges[a]},getAmxNodesToRecreate:function(){return this._nodesToRecreate},getAmxNodesForDescendentChanges:function(){return this._ancestorNodes},getDescendentChanges:function(a){return this._descendentChanges[a]},amxNodeRecreated:function(a,b){var d=this._affectedNodes.indexOf(a);-1!=d&&(this._affectedNodes[d]=b);if(a.isRendered()&&null!=document.getElementById(a.getId())){var e=b.getId();if(b.isRendered())this._changeResult[e]=adf.mf.api.amx.AmxNodeChangeResult.RERENDER;
else{var d=this._initialStates[e],e=this._attributeChanges[e],g=b.__getClosestRenderedNode(!0);this._markNodeAffected(g);this._queueCallToAncestor(b,d,e,g)}}},setDescendentChangesResult:function(a,b){var d=a.getId(),e=this._changeResult[d];if(null==e||b>e)this._changeResult[d]=b,b!=adf.mf.api.amx.AmxNodeChangeResult.NONE&&this._markNodeAffected(a)},addChangeResult:function(a,b,d,e){var g=a.__getClosestRenderedNode(!0),h=a.getId();this._initialStates[h]=b;this._attributeChanges[h]=d;e==adf.mf.api.amx.AmxNodeChangeResult.REPLACE&&
this._nodesToRecreate.push(a);null!=g&&(e!=adf.mf.api.amx.AmxNodeChangeResult.NONE&&this._markNodeAffected(g),g===a?this._changeResult[h]=e:this._queueCallToAncestor(a,b,d,g))},_markNodeAffected:function(a){var b=a.getId();!0!==this._affectedNodeIds[b]&&(this._affectedNodeIds[b]=!0,this._affectedNodes.push(a))},_queueCallToAncestor:function(a,b,d,e){var g=e.getId(),h=this._descendentChanges[g];null==h&&(h=new adf.mf.api.amx.AmxDescendentChanges,this._descendentChanges[g]=h,this._ancestorNodes.push(e));
h.__addAmxNode(a,b,d)}};adf.mf.internal.amx.AmxNodeUpdateArguments=x;x.prototype={getAffectedNodes:function(){return this._amxNodes},getAffectedAttributes:function(a){return this._affectedAttributes[a]},getCollectionChanges:function(a){return this._collectionChanges[a]},setAffectedAttribute:function(a,b){var d=a.getId(),e=this._affectedAttributes[d];null==e&&(e={},this._amxNodes.push(a),this._affectedAttributes[d]=e);e[b]=!0},setCollectionChanges:function(a,b,d){var e=this._collectionChanges[a];null==
e&&(e={},this._collectionChanges[a]=e);e[b]=d}};adf.mf.internal.amx.markNodeForUpdate=function(a){if(!(a instanceof adf.mf.internal.amx.AmxNodeUpdateArguments)){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"adf.mf.internal.amx.markNodeForUpdate","MSG_DEPRECATED","Passing nodes and objects as arguments","Pass one adf.mf.internal.amx.AmxNodeUpdateArguments object");for(var b=new adf.mf.internal.amx.AmxNodeUpdateArguments,d=0,e=arguments.length;d<e;d+=2){amxNode=arguments[d];affectedAttributes=
arguments[d+1];for(var g in affectedAttributes)b.setAffectedAttribute(amxNode,g)}a=b}if(adf.mf.internal.amx._isInsideCriticalSection())adf.mf.internal.amx._queueCriticalSectionFunction(adf.mf.internal.amx.markNodeForUpdate,this,a);else{adf.mf.internal.amx._enterCriticalSection();try{return adf.mf.internal.amx._markNodeForUpdateImpl(a)}finally{adf.mf.internal.amx._leaveCriticalSection()}}};adf.mf.internal.amx._markNodeForUpdateImpl=function(a){adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST);
adf.mf.el.startGetValueBatchRequest();var b=adf.mf.api.amx.getPageRootNode();try{var d=a.getAffectedNodes();1<d.length&&adf.mf.api.amx.AmxNode.__sortNodesByDepth(d);var e=t(b,a);0<e.getAmxNodesToRecreate().length&&(u(b,e),d=e.getAffectedNodes(),1<d.length&&adf.mf.api.amx.AmxNode.__sortNodesByDepth(d));v(b,e);null==adf.mf.internal.amx._pageBuildDeferred&&w(b,e)}catch(g){adf.mf.internal.amx.errorHandlerImpl(null,g)}finally{try{adf.mf.el.flushGetValueBatchRequest()}catch(h){adf.mf.internal.amx.errorHandlerImpl(null,
h)}}};var P=null;adf.mf.internal.amx._buildVisitCallback=function(a,b){var d=b.getState();if(d==adf.mf.api.amx.AmxNodeStates.UNRENDERED)return adf.mf.api.amx.VisitResult.REJECT;if(d!=adf.mf.api.amx.AmxNodeStates.INITIAL)return adf.mf.api.amx.VisitResult.ACCEPT;b.init();switch(b.getState()){case adf.mf.api.amx.AmxNodeStates.INITIAL:return a._allNodesReadyToRender=!1,adf.mf.api.amx.VisitResult.REJECT;case adf.mf.api.amx.AmxNodeStates.UNRENDERED:return adf.mf.api.amx.VisitResult.REJECT;case adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION:return a._allNodesReadyToRender=
!1,adf.mf.api.amx.VisitResult.ACCEPT;default:return adf.mf.api.amx.VisitResult.ACCEPT}};adf.mf.internal.amx._pageBuildDeferred=null})();
(function(){function a(a,b,d){b=a[b];if(null!=b){var a=b.js,b=b.css,e,g;if(null!=a)if(Array.isArray(a))for(e=0,g=a.length;e<g;++e)d.push(amx.includeJs(a[e]));else d.push(amx.includeJs(a));if(null!=b)if(Array.isArray(b))for(e=0,g=b.length;e<g;++e)d.push(amx.includeCss(b[e]));else d.push(amx.includeCss(b))}}function b(d,e){var g=d.getNamespace(),g=v[g];null!=g&&(a(g,"*",e),a(g,d.getName(),e));for(var g=d.getChildren(),h=0,k=g.length;h<k;++h)b(g[h],e)}function d(){if(0!=z.length){var a=z,b=A;z=[];A=
{};adf.mf.internal.amx._handleBatchDataChangeListener(a,b)}}function e(a,b){for(var e=z.length,g=0,h=a.length;g<h;++g){var k=a[g];0>z.indexOf(k)&&z.push(k);if(null!=b){var m=b[k];null!=m&&(A[k]=null!=A[k]?{itemized:!1}:m)}}0==e&&adf.mf.internal.amx._queueCriticalSectionFunction(d,this)}function g(a){var b=[];a.is(".amxVar")&&b.push(a.data("amxVar"));a.parents(".amxVar").each(function(){var a=$(this);b.push(a.data("amxVar"))});return b}function h(a,b){var d=!h.noProcessAttributes[a]&&-1<b.indexOf("#{");
return d=d&&-1===a.indexOf("Listener")}function k(a){this._visit=this._walk=null;if(null!=a&&(a=a.amxNodes,null!=a)){this._visit=a;this._walk=[];for(var b=0,d=a.length;b<d;++b)for(var e=a[b];null!=e&&!(0<=this._walk.indexOf(e));e=e.getParent())this._walk.push(e)}}function m(a,b,d){this._parent=a;this._ns=b.namespaceURI;this._prefixedName=b.tagName;this._name=b.localName;this._textContent="";this._attributeElDependencies=this._elTokens=null;this._attr={};var e=b.attributes,g,h=!1;for(a=0,g=e.length;a<
g;++a){var k=e[a];this._attr[k.name]=k.value;!1==h&&"id"==k.name&&(h=!0)}h||(null==d&&(d=[0]),this._attr.id="_auto"+d[0]++);this._children=[];b=b.childNodes;for(a=0,g=b.length;a<g;++a)switch(e=b[a],e.nodeType){case 1:this._children.push(new adf.mf.api.amx.AmxTag(this,e,d));break;case 3:case 4:this._textContent=null==this._textContent?e.textContent:this._textContent+e.textContent}}function n(a,b,d){this._tag=b;this._parent=a;this._children={};this._facets={};this._attr={};this._modifiableEl={};this._key=
void 0===d?null:d;this._state=adf.mf.api.amx.AmxNodeStates.INITIAL;this._childrenCreated=!1;this._converter=this._converterTag=this._id=null}function o(a){if(this._itemized=a.itemized){this._created=[];this._deleted=[];this._updated=[];this._dirtied=[];var b,d,e=a.created;if(null!=e)for(b=0,d=e.length;b<d;++b)this._created.push(e[b].key);e=a.updated;if(null!=e)for(b=0,d=e.length;b<d;++b)this._updated.push(e[b]);e=a.deleted;if(null!=e){for(b=0,d=e.length;b<d;++b)this._deleted.push(e[b]);a=a.dirtied;
if(null!=a)for(b=0,d=a.length;b<d;++b)this._dirtied.push(a[b])}}}function q(){this._changedAttributes={};this._oldValues={};this._length=0;this._collectionChanges={}}function s(){this._amxNodes=[];this._amxNodeChanges={};this._previousStates={}}var t={},u={_prefix:"",_lengthStack:[],_invalidCharsRe:/[^\w\.\-]/g,getCurrentPrefix:function(){return this._prefix},pushIterator:function(a,b){this._lengthStack.push(this._prefix.length);this._prefix+=a+":"+this._escapeIterationKey(b)+":"},popIterator:function(){var a=
this._lengthStack.pop();this._prefix=0<a?this._prefix.substr(0,a):""},_escapeIterationKey:function(a){return null==a?(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"_escapeIterationKey","MSG_INVALID_ITERATION_KEY",a),"null"):a.toString().replace(this._invalidCharsRe,"._.")},hasTopIterationContainer:function(){return-1<this._prefix.indexOf(":")?!0:!1},getTopIterationContainer:function(){return-1<this._prefix.indexOf(":")?this._prefix.substr(0,this._prefix.indexOf(":")):""}},v;
adf.mf.internal.amx._loadJsonFile(adf.wwwPath+"js/amx-resources.json",!1,function(a){amx.log.debug("Successfully loaded the resources JSON file.");v=a},function(){amx.log.error("Unable to load the resources JSON file.")});amx.registerRenderers=function(a,b){$.each(b,function(b,d){var e=a?a+":":"";t[e+b]=d})};amx.beginIterationContainer=function(a,b){u.pushIterator(a,b)};amx.endIterationContainer=function(){u.popIterator()};amx.renderSubNodes=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.SEVERE,"renderSubNodes","MSG_DEPRECATED","amx.renderSubNodes","adf.mf.api.amx.renderSubNodes");return adf.mf.api.amx.renderSubNodes.apply(this,arguments)};adf.mf.api.amx.renderSubNodes=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"renderSubNodes","MSG_DEPRECATED","adf.mf.api.amx.renderSubNodes","node.renderSubNodes");return a.renderSubNodes()};amx.nonUITags={"amx:facet":!0,"amx:setPropertyListener":!0,"amx:actionListener":!0,"amx:loadBundle":!0,"amx:convertNumber":!0,
"amx:convertDateTime":!0,"amx:validationBehavior":!0,"amx:showPopupBehavior":!0,"amx:closePopupBehavior":!0};amx.isUITag=function(a){var b;return b=(b=-1===a.indexOf("Listener"))&&!amx.nonUITags[a]};amx.renderNode=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"renderNode","MSG_DEPRECATED","amx.renderNode","adf.mf.api.amx.renderNode");return adf.mf.api.amx.renderNode.apply(this,arguments)};adf.mf.api.amx.renderNode=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.SEVERE,"renderNode","MSG_DEPRECATED","amx.renderNode","node.renderNode");return a.renderNode()};var w=[],x=!1,y=0;adf.mf.internal.amx._enterCriticalSection=function(){if(x)throw Error("Illegal attempt to access the critical section");adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("adf.mf.internal.amx._enterCriticalSection","Entering critical section");x=!0};adf.mf.internal.amx._leaveCriticalSection=function(){var a=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST);
a&&adf.mf.internal.perf.trace("adf.mf.internal.amx._leaveCriticalSection","Leaving critical section");x=!1;0==w.length||0<y?a&&adf.mf.internal.perf.trace("adf.mf.internal.amx._leaveCriticalSection","Not processing queue. criticalSectionQueue.length: "+w.length+". uiChangesBlockedCounter: "+y):(a&&adf.mf.internal.perf.trace("adf.mf.internal.amx._leaveCriticalSection","Processing the critical section queue"),a=w.shift(),a.func.apply(a.thisObj,a.params))};adf.mf.internal.amx._isInsideCriticalSection=
function(){return x||0<y};adf.mf.internal.amx._queueCriticalSectionFunction=function(a,b){if(!1==adf.mf.internal.amx._isInsideCriticalSection())throw Error("Attempt to queue critical section code when not inside a critical section");adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("adf.mf.internal.amx._queueCriticalSectionFunction","Critical section function being queued");var d=Array.prototype.slice.call(arguments,2);w.push({func:a,thisObj:b,params:d})};adf.mf.internal.amx.pauseUIChanges=
function(){++y;adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("adf.mf.internal.amx.pauseUIChanges","Counter: "+y)};adf.mf.internal.amx.resumeUIChanges=function(){0>--y&&(y=0);adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("adf.mf.internal.amx.resumeUIChanges","Counter: "+y);0==y&&adf.mf.internal.amx._leaveCriticalSection()};var z=[],A={},F=!1;"Android"==adf.mf.internal.amx.agent.type&&/Android 4\.0(\.\d+)?;/.test(navigator.userAgent)&&
(F=!0);adf.mf.internal.amx._handleBatchDataChangeListener=function(a,b){if(null!=a){var d=adf.mf.api.amx.getPageRootNode();if(null!=d)if(adf.mf.internal.amx._isInsideCriticalSection())e(a,b);else{adf.mf.internal.amx._enterCriticalSection();adf.mf.internal.perf.start("adf.mf.internal.amx._handleBatchDataChangeListener",a);try{var g=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST);g&&adf.mf.internal.perf.trace("adf.mf.internal.amx._handleBatchDataChangeListener",adf.mf.util.stringify(a));
var h=new adf.mf.internal.amx.AmxNodeUpdateArguments,k=null!=b,m=null;if(k){var m={},u;for(u in b)m[u]=new adf.mf.api.amx.AmxCollectionChange(b[u])}for(var o=0,q=a.length;o<q;++o){u=a[o];"deviceScope.hardware.screen.availableHeight"==u&&adf.mf.internal.amx._handleDeviceDimensionChanges&&adf.mf.internal.amx._handleDeviceDimensionChanges();for(var v=n.__getNodesDependentOnElToken(u),s=0,w=v.length;s<w;++s){var t=v[s],x=t.getId();g&&adf.mf.internal.perf.trace("adf.mf.internal.amx._handleBatchDataChangeListener",
"Node affected by change to EL #{"+u+"}: "+x);for(var y=t.getTag().getAttributesForElDependency(u),z=0,A=y.length;z<A;++z){var C=y[z];g&&adf.mf.internal.perf.trace("adf.mf.internal.amx._handleBatchDataChangeListener","Affected attribute: "+C);h.setAffectedAttribute(t,C);if(k){var U=m[u];null!=U&&h.setCollectionChanges(x,C,U)}}var V=t.__getConverterTag();if(null!=V){y=V.getAttributesForElDependency(u);for(z=0,A=y.length;z<A;++z)C=y[z],g&&adf.mf.internal.perf.trace("adf.mf.internal.amx._handleBatchDataChangeListener",
"Affected attribute of the converter: "+C),h.setAffectedAttribute(t,"converter_"+C)}}}var X=h.getAffectedNodes().length;if(0<X){g&&adf.mf.internal.perf.trace("adf.mf.internal.amx._handleBatchDataChangeListener",X+" nodes have been affected by the data changes");adf.mf.internal.amx._markNodeForUpdateImpl(h);if(null!=adf.mf.internal.amx._pageBuildDeferred){var W=adf.mf.internal.amx._pageBuildDeferred;adf.mf.internal.amx._pageBuildDeferred=null;W.resolve(d)}F&&null!=window.AdfmfCallback&&window.AdfmfCallback.invalidateUi()}}catch(R){adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.SEVERE,"renderNode","MSG_BATCH_DATA_CHANGE_FAILED",R)}finally{adf.mf.internal.amx._leaveCriticalSection(),adf.mf.internal.perf.stop("adf.mf.internal.amx._handleBatchDataChangeListener",a)}}}};amx.clearBindings=function(){n.__clearBindings()};amx.getElsFromString=function(a){var b=[];if(null!=a)for(var d=/[#,$]{.*?}/g,e=d.exec(a);null!=e;)0>b.indexOf(e[0])&&b.push(e[0]),e=d.exec(a);return b};amx.ValueChangeEvent=function(a,b){this.oldValue=a;this.newValue=b;this[".type"]="oracle.adfmf.amx.event.ValueChangeEvent"};
amx.SelectionEvent=function(a,b){this.oldRowKey=a;this.selectedRowKeys=b;this[".type"]="oracle.adfmf.amx.event.SelectionEvent"};amx.ActionEvent=function(){this[".type"]="oracle.adfmf.amx.event.ActionEvent"};adf.mf.internal.amx.MoveEvent=function(a,b){this[".type"]="oracle.adfmf.amx.event.MoveEvent";this.rowKeyMoved=a;this.rowKeyInsertedBefore=b};amx.processAmxEvent=function(a,b,d,e,g){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"processAmxEvent","MSG_DEPRECATED","amx.processAmxEvent",
"adf.mf.api.amx.processAmxEvent");return adf.mf.api.amx.processAmxEvent(a,b,d,e,g)};adf.mf.api.amx.processAmxEvent=function(a,b,d,e,g){var h=$.Deferred();if(null==adf.mf.api.amx.getPageRootNode())h.reject();else{var k=adf.mf.internal.amx.processAmxEventImplSerial;adf.mf.environment.profile.useBatchProcessing&&!adf.mf.environment.profile.mockData&&(k=adf.mf.internal.amx.processAmxEventImplBatch);adf.mf.internal.amx._isInsideCriticalSection()?adf.mf.internal.amx._queueCriticalSectionFunction(k,this,
a,b,d,e,g,h):k(a,b,d,e,g,h)}return h.promise()};adf.mf.internal.amx.processAmxEventImplBatch=function(a,b,d,e,g,h){var k=adf.mf.api.amx.getPageRootNode();null==k?h.reject():(adf.mf.internal.amx._enterCriticalSection(),adf.mf.internal.perf.start("adf.mf.internal.amx.processAmxEventImplBatch",b),h.always(function(){adf.mf.internal.amx._leaveCriticalSection()}),null!=a&&a.jquery&&(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"processAmxEventImplBatch","MSG_DEPRECATED","adf.mf.api.processAmxEvent with a jQuery parameter",
"adf.mf.api.amx.processAmxEvent with an adf.mf.api.amx.AmxNode as the first parameter"),a=a.data("amxNode")),adf.mf.api.amx.showLoadingIndicator(),!1==k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[a]}),function(a,m){var n=m.getTag(),u,o=[];if(adf.mf.environment.profile.dtMode)h.resolve(),adf.mf.api.amx.hideLoadingIndicator(),adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImplBatch",b);else{adf.mf.util.startBatchRequest();adf.mf.internal.pushNonBlockingCall();if("valueChange"===
b&&d===m.getAttribute("__attrToValidate")){var q=null,v=m.__getClosestRenderedNode();null!=v&&(q=document.getElementById(v.getId()));u=$(q).closest(".amx-validationGroup")}m.getConverter()&&"valueChange"===b&&"value"===d&&(e=m.getConverter().getAsObject(e));d&&m.setAttribute(d,e);for(var q=n.getChildren(),v=0,s=q.length;v<s;v++){var w=q[v],t;t=null!=w.getAttribute("type")?adf.mf.internal._getEventTypeResolvedForBidi(w.getAttribute("type")):"action";if("amx:setPropertyListener"===w.getPrefixedName()&&
t===b){t=w;var x=t.getAttribute("from");void 0!=x&&(void 0!=a._map?(x=adf.mf.internal.util.tokenSubsitution(x,a._map),t=adf.mf.internal.util.tokenSubsitution(t.getAttribute("to"),a._map)):(x=adf.mf.util.getContextFreeExpression(x),t=adf.mf.util.getContextFreeExpression(t.getAttribute("to"))),t={name:t,value:x},t[adf.mf.internal.api.constants.VALUE_REF_PROPERTY]=!0,amx.setElValue(t))}else"amx:actionListener"===w.getPrefixedName()?t==b&&(t=[],x=[],g&&(t.push(g),x.push(g[".type"])),amx.invokeEl(w.getAttribute("binding"),
t,null,x)):"amx:showPopupBehavior"===w.getPrefixedName()?t===b&&o.push({type:"show",node:m,tag:w}):"amx:closePopupBehavior"===w.getPrefixedName()&&t===b&&o.push({type:"close",node:m,tag:w})}g&&(q=[],v=[],q.push(g),v.push(g[".type"]),n=n.getAttribute(b+"Listener"),amx.invokeEl(n,q,null,v));adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImplBatch",b);adf.mf.util.flushBatchRequest(!1,[function(){for(var a=0,b=o.length;a<b;a++){m=o[a].node;w=o[a].tag;var d=o[a].type;k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),
function(a,b){"show"==d?amx.processShowPopupBehavior(b,w):amx.processClosePopupBehavior(b,w);return adf.mf.api.amx.VisitResult.COMPLETE})}void 0!==u&&amx.isValueTrue(m.getAttribute("required"))&&k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),function(){amx.requiredControlValueChanged(u);return adf.mf.api.amx.VisitResult.COMPLETE});h.resolve();adf.mf.api.amx.hideLoadingIndicator();adf.mf.internal.popNonBlockingCall()}],[function(){h.resolve();adf.mf.api.amx.hideLoadingIndicator();adf.mf.internal.popNonBlockingCall()}])}return adf.mf.api.amx.VisitResult.COMPLETE})&&
(h.resolve(),adf.mf.api.amx.hideLoadingIndicator(),adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImplBatch",b)))};adf.mf.internal.amx.processAmxEventImplSerial=function(a,b,d,e,g,h){var k=adf.mf.api.amx.getPageRootNode();null==k?h.reject():(adf.mf.internal.amx._enterCriticalSection(),adf.mf.internal.perf.start("adf.mf.internal.amx.processAmxEventImplSerial",b),h.always(function(){adf.mf.internal.amx._leaveCriticalSection()}),null!=a&&a.jquery&&(adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.WARNING,"processAmxEventImplSerial","MSG_DEPRECATED","adf.mf.internal.amx.processAmxEvent with a jQuery parameter","adf.mf.api.amx.processAmxEvent with an adf.mf.api.amx.AmxNode as the first parameter"),a=a.data("amxNode")),adf.mf.api.amx.showLoadingIndicator(),!1==k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[a]}),function(a,m){var n=m.getTag(),u;if(adf.mf.environment.profile.dtMode)h.resolve(),adf.mf.api.amx.hideLoadingIndicator(),adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImplSerial",
b);else{adf.mf.internal.pushNonBlockingCall();if("valueChange"===b&&d===m.getAttribute("__attrToValidate")){var o=null,q=m.__getClosestRenderedNode();null!=q&&(o=document.getElementById(q.getId()));u=$(o).closest(".amx-validationGroup")}m.getConverter()&&"valueChange"===b&&"value"===d&&(e=m.getConverter().getAsObject(e));var v;d&&(v=m.setAttribute(d,e));var w;$.when(v).fail(function(){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"adf.mf.internal.amx.processAmxEventImplSerial",
"MSG_PROCESS_AMX_EVENT_SET_VALUE_REJECTED",e);w=$.Deferred();w.reject()}).done(function(){var a=n.getChildren();0<a.length?w=amx.serialResolve(a,function(a){var d;d=null!=a.getAttribute("type")?adf.mf.internal._getEventTypeResolvedForBidi(a.getAttribute("type")):"action";if("amx:setPropertyListener"===a.getPrefixedName()&&d===b){var e=$.Deferred();!1==k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),function(){var b=a.getAttribute("from"),d=adf.mf.util.getContextFreeExpression(a.getAttribute("to"));
amx.getElValue(b).always(function(a,b){amx.setElValue({name:d,value:b[0].value}).always(function(){e.resolve()})});return adf.mf.api.amx.VisitResult.COMPLETE})&&e.resolve();return e.promise()}if("amx:actionListener"===a.getPrefixedName()){if(d==b){var h=[],n=[];g&&(h.push(g),n.push(g[".type"]));var u=null;k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),function(){u=amx.invokeEl(a.getAttribute("binding"),h,null,n);return adf.mf.api.amx.VisitResult.COMPLETE});return null==u?null:u.promise()}}else if("amx:showPopupBehavior"===
a.getPrefixedName()){if(d===b){var o=null;k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),function(b,d){o=amx.processShowPopupBehavior(d,a);return adf.mf.api.amx.VisitResult.COMPLETE});return null==o?null:o.promise()}}else if("amx:closePopupBehavior"===a.getPrefixedName()&&d===b){var q=null;k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),function(b,d){q=amx.processClosePopupBehavior(d,a);return adf.mf.api.amx.VisitResult.COMPLETE});return null==q?null:q.promise()}return null}):(w=
$.Deferred(),w.resolve())});var s=$.Deferred();$.when(w).fail(function(){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"adf.mf.internal.amx.processAmxEventImplSerial","MSG_PROCESS_AMX_EVENT_CHILDREN_REJECTED");s.reject()}).done(function(){if(g){var a=[],d=[];a.push(g);d.push(g[".type"]);!1==k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),function(){var e=n.getAttribute(b+"Listener");amx.invokeEl(e,a,null,d).always(function(){s.resolve()});return adf.mf.api.amx.VisitResult.COMPLETE})&&
s.resolve()}else s.resolve()});$.when(s).fail(function(){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"adf.mf.internal.amx.processAmxEventImplSerial","MSG_PROCESS_AMX_EVENT_LISTENERS_REJECTED");adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImpSerial",b);adf.mf.api.amx.hideLoadingIndicator();adf.mf.internal.popNonBlockingCall();h.reject()}).done(function(){void 0!==u&&amx.isValueTrue(m.getAttribute("required"))&&k.visit(new adf.mf.api.amx.VisitContext({amxNodes:[m]}),
function(){amx.requiredControlValueChanged(u);return adf.mf.api.amx.VisitResult.COMPLETE});adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImpSerial",b);h.resolve();adf.mf.api.amx.hideLoadingIndicator();adf.mf.internal.popNonBlockingCall()})}return adf.mf.api.amx.VisitResult.COMPLETE})&&(h.resolve(),adf.mf.api.amx.hideLoadingIndicator(),adf.mf.internal.perf.stop("adf.mf.internal.amx.processAmxEventImplSerial",b)))};adf.mf.internal._getEventTypeResolvedForBidi=function(a){"swipeStart"==
a?a="rtl"==document.documentElement.dir?"swipeRight":"swipeLeft":"swipeEnd"==a&&(a="rtl"==document.documentElement.dir?"swipeLeft":"swipeRight");return a};amx.getElValue=function(a,b){var d=$.Deferred();if(adf.mf.environment.profile.dtMode)d.resolve(a,[{value:a}]);else{var e=adf.mf.internal.util.is_array(a)?a:[a];adf.mf.internal.perf.start("amx.getElValue","getting "+e.length+" entries");var g=function(a){void 0===a&&(a=[]);for(var b=0,d=[],g=0;g<e.length;++g){var h=e[g],k,m=!0;if(b<a.length&&a[b].name==
h){var n=a[b];null!==n&&void 0===n[adf.mf.internal.api.constants.EXCEPTION_FLAG_PROPERTY]&&(m=!1,k=n.value,++b)}if(m)try{k=adf.mf.el.getLocalValue(h)}catch(u){}void 0===k&&(k={".null":!0});d.push({name:h,value:k})}return d},h=function(a,b){var e;try{adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"getElValue","MSG_GETVALUE_FAILED",a,b),e=g()}finally{adf.mf.internal.perf.stop("amx.getElValue","failed")}d.resolve(a,e)};try{adf.mf.el.getValue(e,function(a,b){var e;try{e=g(b)}finally{adf.mf.internal.perf.stop("amx.getElValue",
"success")}d.resolve(a,e)},h,b)}catch(k){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"getElValue","MSG_GETVALUE_EXCEPTION",e,k),h(e,k)}}return d.promise()};amx.setElValue=function(a){var b=$.Deferred();if(adf.mf.environment.profile.dtMode)b.resolve();else{adf.mf.internal.perf.start("amx.setElValue","setting: "+a);try{adf.mf.el.setValue(a,function(a,d){b.resolve(a,d);adf.mf.internal.perf.stop("amx.setElValue","success: "+a)},function(d,e){adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.SEVERE,"setElValue","MSG_SETVALUE_FAILED",a,e);b.reject(d,e);adf.mf.internal.perf.stop("amx.setElValue","Failure "+d)})}catch(d){try{adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"setElValue","MSG_SETVALUE_EXCEPTION",a.name,d),b.resolve()}finally{adf.mf.internal.perf.stop("amx.setElValue","Exception "+d)}}}return b.promise()};amx.loadBundle=function(a,b){var d=$.Deferred();if(adf.mf.environment.profile.mockData)adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,
"loadBundle","MSG_LOADBUNDLE_SKIPPED",a,b);else{try{adf.mf.el.addVariable(b,{}),adf.mf.api.invokeMethod("oracle.adfmf.framework.api.Model","loadBundle",a,b,function(){d.resolve()},function(e,g){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"loadBundle","MSG_LOADBUNDLE_FAILED",a,b,g);d.resolve()})}catch(e){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"loadBundle","MSG_LOADBUNDLE_EXCEPTION",a,b,e)}return d.promise()}};amx.invokeEl=function(a,b,d,e){var g=$.Deferred();
try{a&&!adf.mf.environment.profile.dtMode?adf.mf.environment.profile.mockData?(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"invokeEl","MSG_AMX_DO_NOT_CALL_ADFMF_EL_INVOKE",a),g.resolve()):adf.mf.el.invoke(a,b,"void",e,function(a,b){g.resolve(b)},function(a,b){g.reject(b)}):g.resolve()}catch(h){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"invokeEl","MSG_INVOKEEL_EXCEPTION",a,h),g.resolve()}return g.promise()};amx.storeVariable=function(a,b,d){var e=a.data("amxVar");
a.addClass("amxVar");e||(e={},a.data("amxVar",e));e.name=b;e.value=d};amx.storeVarNameValue=amx.storeVariable;amx.restoreVariables=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"restoreVariables","MSG_DEPRECATED","amx.restoreVariables","adf.mf.internal.amx.restoreContext (now non-jQuery parameter)");if(1==a.length)return adf.mf.internal.amx.restoreContext(a.get(0));for(var b=[],a=a.get(),d=0,e=a.length;d<e;++d)b=b.concat(adf.mf.internal.amx.restoreContext(a[d]));return b};
adf.mf.internal.amx.restoreContext=function(a){for(var a=g($(a)),b=0,d=a.length;b<d;++b){var e=a[b];adf.mf.el.addVariable(e.name,e.value)}return a};amx.cleanVariables=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"cleanVariables","MSG_DEPRECATED","amx.cleanVariables","adf.mf.internal.amx.tearDownContext");adf.mf.internal.amx.tearDownContext(a)};adf.mf.internal.amx.tearDownContext=function(a){for(var b=0,d=a.length;b<d;++b)adf.mf.el.removeVariable(a[b].name)};amx.isValueFalse=
function(a){return"undefined"!==typeof a?!1===a||"false"===a||0===a||"0"===a?!0:!1:!1};amx.isValueTrue=function(a){return"undefined"!==typeof a?!0===a||"true"===a||1===a||"1"===a?!0:!1:!1};h.noProcessAttributes={valueChangeListener:!0,from:!0,to:!0,selectionChangeListener:!0,actionListener:!0,action:!0,binding:!0};adf.mf.internal.amx._preProcessTagTree=function(a){var d=[];b(a,d);return $.when.apply($,d)};amx.getNodeTypeHandler=function(a){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,
"getNodeTypeHandler","MSG_DEPRECATED","amx.getNodeTypeHandler","Use getTypeHandler on the AmxTag or AmxNode instead");return a.getTypeHandler()};adf.mf.api.amx.AmxNodeStates={INITIAL:0,WAITING_ON_EL_EVALUATION:1,ABLE_TO_RENDER:2,PARTIALLY_RENDERED:3,RENDERED:4,UNRENDERED:5};adf.mf.api.amx.AmxNodeChangeResult={NONE:0,REFRESH:1,RERENDER:2,REPLACE:3};adf.mf.api.amx.VisitResult={ACCEPT:0,REJECT:1,COMPLETE:2};adf.mf.api.amx.VisitContext=k;k.prototype={isVisitAll:function(){return null==this._visit},getNodesToWalk:function(){return this._walk},
getNodesToVisit:function(){return this._visit},getChildrenToWalk:function(){return null==this._walk?null:this._walk.filter(function(a){return a.getParent()==a})}};adf.mf.api.amx.AmxTag=m;m.prototype={getNamespace:function(){return this._ns},getPrefixedName:function(){return this._prefixedName},getName:function(){return this._name},getParent:function(){return this._parent},getTextContent:function(){return this._textContent},findTags:function(a,b){var d=[];this.getNamespace()==a&&b==this.getName()&&
d.push(this);for(var e=0,g=this._children.length;e<g;++e){var h=this._children[e].findTags(a,b);0<h.length&&(d=d.concat(h))}return d},getChildren:function(a,b){for(var d=[],e=0,g=this._children.length;e<g;++e){var h=this._children[e];(null==a||a==h.getNamespace())&&(null==b||b==h.getName())&&d.push(h)}return d},getChildrenFacetTags:function(){return this.getChildren("http://xmlns.oracle.com/adf/mf/amx","facet")},getChildFacetTag:function(a){for(var b=this.getChildren("http://xmlns.oracle.com/adf/mf/amx",
"facet"),d=0,e=b.length;d<e;++d){var g=b[d];if(g.getAttribute("name")==a)return g}return null},getChildrenUITags:function(){return this.getChildren().filter(function(a){return a.isUITag()})},getAttributeNames:function(){var a=[],b;for(b in this._attr)a.push(b);return a},isAttributeElBound:function(a){a=this.getAttribute(a);return null!=a&&0<=a.indexOf("#{")},getAttribute:function(a){return this._attr[a]},getAttributes:function(){return this._attr},getElDependencies:function(){if(null==this._elTokens){this._elTokens=
[];this._attributeElDependencies=[];var a=this.getAttributes(),b;for(b in a){var d=a[b];if(this.isAttributeElBound(b)&&h(b,d))for(var d=adf.mf.internal.el.parser.parse(d).dependencies(),e=0,g=d.length;e<g;++e){var k=d[e],m=this._attributeElDependencies[k];null==m?this._attributeElDependencies[k]=[b]:m.push(b);-1==this._elTokens.indexOf(k)&&this._elTokens.push(k)}}}return this._elTokens},getAttributesForElDependency:function(a){a=this._attributeElDependencies[a];return null==a?[]:a},isUITag:function(){return amx.isUITag(this._prefixedName)},
getFacet:function(){if("amx:facet"==this._prefixedName){var a=this.getChildren();return{name:this.getAttribute("name"),children:a}}return null},buildAmxNode:function(a,b){return!this.isUITag()?null:new adf.mf.api.amx.AmxNode(a,this,b)},getTypeHandler:function(){if(void 0===this._typeHandler){var a=null;this._prefixedName&&(a=t[this._prefixedName])&&$.isFunction(a)&&(a={create:a});this._typeHandler=a}return this._typeHandler}};adf.mf.api.amx.AmxNode=n;var C={};n.prototype={getId:function(){return this._id},
getTag:function(){return this._tag},getTypeHandler:function(){return this.getTag().getTypeHandler()},getConverter:function(){return this._converter},setConverter:function(a){this._converter=a},storeModifyableEl:function(a){var b=this.getTag();return b.isAttributeElBound(a)?(b=b.getAttribute(a),b=adf.mf.util.getContextFreeExpression(b),this._modifiableEl[a]=b):null},init:function(){var a=this.getState(),b=this.getTag(),a=b.getAttributes(),d;for(d in a)if(!b.isAttributeElBound(d)&&void 0===this._attr[d]){var e=
a[d];null!=e&&("rendered"==d&&(e=amx.isValueTrue(e)),this._attr[d]=e)}this._createUniqueId();this._postProcessForDataChangeNotification(b);e=this.getAttribute("rendered");if(void 0===e&&b.isAttributeElBound("rendered")){b=b.getAttribute("rendered");e=adf.mf.environment.profile.dtMode?!0:adf.mf.el.getLocalValue(b);if(void 0===e){this.setState(adf.mf.api.amx.AmxNodeStates.INITIAL);return}e=amx.isValueTrue(e);this.setAttributeResolvedValue("rendered",e);if(!e){this.setState(adf.mf.api.amx.AmxNodeStates.UNRENDERED);
return}}this._processConverterTag();b=!0;e=!1;for(d in a)if("rendered"!=d)var g=this._processAttribute(d),b=b&&!1==g.cacheMiss,e=e||g.collectionModelMiss;e?this.setState(adf.mf.api.amx.AmxNodeStates.INITIAL):this.setState(b?adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER:adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION);a=this.getState();if(a==adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION||a==adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER)this._createChildren(),a=this.getState(),(a==adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION||
a==adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER)&&this._processConverter()&&this._convertValue()},getStampKey:function(){return this._key},getDefinedAttributeNames:function(){var a=[],b;for(b in this._attr)a.push(b);return a},getAttribute:function(a){a=this._attr[a];return void 0===a?void 0:amx.getObjectValue(a)},setAttributeResolvedValue:function(a,b){this._attr[a]=b},setAttribute:function(a,b){var d=$.Deferred(),e=this._modifiableEl[a];null==e&&this.getTag().isAttributeElBound(a)&&(e=this.getTag().getAttribute(a));
this.setAttributeResolvedValue(a,b);if(null==e)d.resolve();else{var g=this.getAttribute(a);amx.setElValue({name:e,value:b}).done(function(){d.resolve()}).fail(function(){this.setAttributeResolvedValue(a,g)})}return d.promise()},isAttributeDefined:function(a){return void 0!==this._tag.getAttribute(a)},getParent:function(){return this._parent},addChild:function(a,b){var d=a.getStampKey(),e;if(null==b)e=this._children[d],null==e&&(this._children[d]=e=[]);else{var g=this._facets[d];null==g&&(g=this._facets[d]=
{});e=g[b];null==e&&(g[b]=e=[])}e.push(a)},removeChild:function(a){var b=a.getStampKey(),d=a.getId(),d=this._findChildIndexAndFacetName(b,d);if(null==d)return!1;a._removeFromDataChangeNotification();var a=d.facetName,e=null,d=d.index,e=null==a?this._children[b]:this._facets[b][a];e.splice(d,1);return!0},replaceChild:function(a,b){var d=a.getStampKey(),e=a.getId(),e=this._findChildIndexAndFacetName(d,e);if(null==e)return!1;a._removeFromDataChangeNotification();var g=e.facetName;null==g?this._children[d][e.index]=
b:this._facets[d][g][e.index]=b;return!0},getChildren:function(a,b){void 0===b&&(b=null);var d;if(null==a)d=this._children[b];else{d=this._facets[b];if(null==d)return[];d=d[a]}return null==d?[]:d},getFacets:function(a){void 0===a&&(a=null);a=this._facets[a];return null==a?{}:a},visit:function(a,b){var d=this.getTypeHandler();if(this._implementsFunction(d,"visit"))return d.visit(a,b);if(a.isVisitAll()||0<=a.getNodesToVisit().indexOf(this))switch(b(a,this)){case adf.mf.api.amx.VisitResult.ACCEPT:break;
case adf.mf.api.amx.VisitResult.REJECT:return!1;default:return!0}return this.visitChildren(a,b)},visitChildren:function(a,b){var d=this.getTypeHandler();return this._implementsFunction(d,"visitChildren")?d.visitChildren(this,a,b):this.visitStampedChildren(null,null,null,a,b)},visitStampedChildren:function(a,b,d,e,g){var h=e.isVisitAll(),k=e.getNodesToWalk();if(null==b){var b=[],m=this.getFacets(),n;for(n in m)b.push(n);b.push(null)}n=0;for(m=b.length;n<m;++n)for(var u=this.getChildren(b[n],a),o=0,
q=u.length;o<q;++o){var v=u[o];if(h||0<=k.indexOf(v))if((null==d||d(this,a,v))&&v.visit(e,g))return!0}return!1},getRenderedChildren:function(a,b){for(var d=[],e=this.getChildren(a,b),g=0,h=e.length;g<h;++g){var k=new adf.mf.api.amx.VisitContext;e[g].visit(k,function(a,b){switch(b.getState()){case adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER:case adf.mf.api.amx.AmxNodeStates.RENDERED:case adf.mf.api.amx.AmxNodeStates.PARTIALLY_RENDERED:break;default:return adf.mf.api.amx.VisitResult.REJECT}if(b.isFlattenable())return adf.mf.api.amx.VisitResult.ACCEPT;
d.push(b);return adf.mf.api.amx.VisitResult.REJECT})}return d},isFlattenable:function(){var a=this.getTypeHandler();return this._implementsFunction(a,"isFlattenable")&&a.isFlattenable(this)},getState:function(){return this._state},setState:function(a){this._state=a},renderNode:function(){var a=null,b=null,d=!1;amx.mustProcessQueues&&(d=!0,amx.mustProcessQueues=!1);var e=this.getTag();if(e.isUITag()&&!1!==this.getAttribute("rendered")){var g=this.getTypeHandler();if(this._implementsFunction(g,"create")){var h=
this.getId();adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("adf.mf.api.amx.AmxNode.renderNode","Rendering node "+h);var k=g.create(this,h),m=!1;try{k.jquery?(a=k.get(0),b=k,m=!0):(a=k,b=$(k)),a.setAttribute("id",h)}catch(n){return adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"renderNode","MSG_CREATE_FAILED",this.getTag().getPrefixedName(),n),null}try{this._implementsFunction(g,"init")&&amx.queueForInit(m?b:a);this._implementsFunction(g,
"postDisplay")&&amx.queueForPostDisplay(m?b:a);b.data("amxNode",this);b.addClass("amx-node "+e.getPrefixedName().replace(":","-"));var u=this.getAttribute("inlineStyle");if(u){adf.mf.environment.profile.dtMode&&(u=u.replace(/#\{(.*?)\}/ig," "));var o=a.getAttribute("style");null==o?a.setAttribute("style",u):a.setAttribute("style",o+";"+u)}var q=this.getAttribute("styleClass");q&&(adf.mf.environment.profile.dtMode&&(q=q.replace(/#\{(.*?)\}/ig," ")),b.addClass(q));amx.isValueTrue(this.getAttribute("readOnly"))&&
b.addClass("amx-readOnly");amx.isValueTrue(this.getAttribute("disabled"))&&b.addClass("amx-disabled");$.isFunction(g.destroy)&&b.addClass("amx-has-destroy");$.isFunction(g.preDestroy)&&b.addClass("amx-has-predestroy");d&&(amx.processAndCleanInitQueue(),amx.processAndCleanPostDisplayQueue(),amx.mustProcessQueues=!0)}catch(v){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"renderNode","MSG_CREATE_FAILED",this.getTag().getPrefixedName(),v)}}else adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.WARNING,"renderNode","MSG_NO_RENDERER",this.getTag().getPrefixedName())}this.setState(adf.mf.api.amx.AmxNodeStates.RENDERED);return b},renderSubNodes:function(a,b){var d=!1;amx.mustProcessQueues&&(d=!0,amx.mustProcessQueues=!1);for(var e=$(),g=this.getRenderedChildren(a,b),h=0,k=g.length;h<k;++h){var m=g[h].renderNode();m&&(e=e.add(m))}d&&(amx.processAndCleanInitQueue(),amx.processAndCleanPostDisplayQueue(),amx.mustProcessQueues=!0);return e},rerenderNode:function(){var a=document.getElementById(this.getId());
if(null==a)a=this.getParent().__getClosestRenderedNode(),null!=a&&a.rerenderNode();else{adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST)&&adf.mf.internal.perf.trace("adf.mf.api.amx.AmxNode.rerenderNode","Re-rendering node "+this.getId());amx.mustProcessQueues=!1;var b=this.renderNode();null!=b&&null!=b.jquery&&(b=b.get(0));a.parentNode.insertBefore(b,a);adf.mf.internal.amx.removeAmxDomNode(a);amx.processAndCleanInitQueue();amx.processAndCleanPostDisplayQueue();amx.mustProcessQueues=!0}},
isRendered:function(){switch(this.getState()){case adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER:case adf.mf.api.amx.AmxNodeStates.RENDERED:case adf.mf.api.amx.AmxNodeStates.PARTIALLY_RENDERED:return!0;default:return!1}},refresh:function(a,b){var d=this.getTypeHandler();this._implementsFunction(d,"refresh")&&d.refresh(this,a,b)},updateAttributes:function(a,b){var d=this.getTag(),e=new adf.mf.api.amx.AmxAttributeChange,g,k,m=!1,n=!1;if(a.rendered){g=this.getAttribute("rendered");k=adf.mf.environment.profile.dtMode?
!0:adf.mf.el.getLocalValue(d.getAttribute("rendered"));if(void 0===k)return this.setState(adf.mf.api.amx.AmxNodeStates.INITIAL),this.setAttributeResolvedValue("rendered",k),e.__addChangedAttribute("rendered",g),e;k=amx.isValueTrue(k);if(g!=k){this.setAttributeResolvedValue("rendered",k);e.__addChangedAttribute("rendered",g,null);if(!k)return this._removeChildrenFromDataChangeNotification(),this._facets={},this._children={},this._modifiableEl={},this._childrenCreated=!1,this._converter=null,this.setState(adf.mf.api.amx.AmxNodeStates.UNRENDERED),
e;this.setState(adf.mf.api.amx.AmxNodeStates.INITIAL);return e}}if(this.getState()==adf.mf.api.amx.AmxNodeStates.UNRENDERED)return e;k=/^converter_/;var u=!1,o;for(o in a)if("rendered"!=o)if(k.test(o))u=!0;else{g=this.getAttribute(o);var q=this._processAttribute(o),m=m||q.cacheMiss,n=n||q.collectionModelMiss;this.getAttribute(o);e.__addChangedAttribute(o,g,null==b?null:b[o])}u&&null!=this._converterTag?(o=null!=this.getConverter(),this._converter=null,this._processConverter()&&(g=this.getAttribute("value"),
o&&!0!=a.value&&!adf.mf.environment.profile.dtMode&&(o=d.getAttribute("value"),this.setAttributeResolvedValue("value",adf.mf.el.getLocalValue(o))),this._convertValue(),e.__addChangedAttribute("value",g,null))):a.value&&this._convertValue();n?(this._facets={},this._children={},this._childrenCreated=!1,this.setState(adf.mf.api.amx.AmxNodeStates.INITIAL)):m&&this.isRendered()&&this.setState(adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION);if(!1==m){g=d.getAttributeNames();n=0;for(o=g.length;n<
o;++n)if(k=g[n],d.isAttributeElBound(k)&&h(k,d.getAttribute(k))&&void 0===this.getAttribute(k)){m=!0;break}!1==m&&this.setState(adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER)}return e},updateChildren:function(a){if(this._childrenCreated){var b=this.getTypeHandler();return this._implementsFunction(b,"updateChildren")?b.updateChildren(this,a):adf.mf.api.amx.AmxNodeChangeResult.RERENDER}state=this.getState();(state==adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION||state==adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER)&&
this._createChildren();return adf.mf.api.amx.AmxNodeChangeResult.RERENDER},createStampedChildren:function(a,b,d){var e=this.getTag(),g,h,k;if(null==b||0<b.length){var m=e.getChildrenFacetTags();for(h=0,k=m.length;h<k;++h){g=m[h].getFacet();var n=g.name;if(!(null!=b&&0<b.length&&-1==b.indexOf(n)))for(var u=g.children,o=0,q=u.length;o<q;++o)if(g=u[o],g.isUITag()&&(null==d||d(this,a,g,n)))g=g.buildAmxNode(this,a),this.addChild(g,n)}}if(null==b||0<=b.indexOf(null)){b=e.getChildrenUITags();for(h=0,k=b.length;h<
k;++h)if(e=b[h],null==d||d(this,a,e,null))g=e.buildAmxNode(this,a),this.addChild(g)}},__getConverterTag:function(){return this._converterTag},__getClosestRenderedNode:function(a){var b=adf.mf.log.Performance.isLoggable(adf.mf.log.level.FINEST),d;b&&(d=this.getId());for(var e=this;null!=e;e=e.getParent()){var g=e.getState();switch(g){case adf.mf.api.amx.AmxNodeStates.PARTIALLY_RENDERED:case adf.mf.api.amx.AmxNodeStates.RENDERED:case adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER:if(!0!==a&&g==adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER)continue;
if(null!=document.getElementById(e.getId()))return b&&adf.mf.internal.perf.trace("adf.mf.api.amx.AmxNode.__getClosestRenderedNode","Closest rendered ancestor node of node "+d+" was found to be "+e.getId()),e}}b&&adf.mf.internal.perf.trace("adf.mf.api.amx.AmxNode.__getClosestRenderedNode","No rendered ancestor node could be found for node "+d);return null},__getDescendentChangeAction:function(a){var b=this.getTypeHandler();if(this._implementsFunction(b,"getDescendentChangeAction"))return b.getDescendentChangeAction(this,
a);for(var b=a.getAffectedNodes(),d=0,e=b.length;d<e;++d){var g=b[d],h=a.getPreviousNodeState(g),k=g.isRendered(),g=(h==adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER||h==adf.mf.api.amx.AmxNodeStates.PARTIALLY_RENDERED||h==adf.mf.api.amx.AmxNodeStates.RENDERED)&&null!=document.getElementById(g.getId());if(!1==k&&g||k&&!1==g)return adf.mf.api.amx.AmxNodeChangeResult.RERENDER}return adf.mf.api.amx.AmxNodeChangeResult.NONE},_processAttribute:function(a){var b={cacheMiss:!1,collectionModelMiss:!1},d=this.getTag();
if(!d.isAttributeElBound(a))return b;var e=d.getAttribute(a);if(adf.mf.environment.profile.dtMode)return this.setAttributeResolvedValue(a,e),b;if(!h(a,e))return b;var g=adf.mf.el.getLocalValue(e);void 0===g?(b.cacheMiss=!0,"value"==a&&null!=d.getAttribute("var")&&(b.collectionModelMiss=!0)):("value"==a&&null!=d.getAttribute("var")&&!Array.isArray(g)&&(d=e.substring(0,e.length-1)+".iterator}",g=adf.mf.el.getLocalValue(d),void 0===g&&(b.collectionModelMiss=!0)),this.setAttributeResolvedValue(a,g));
return b},_createChildren:function(){if(!this._childrenCreated){this._childrenCreated=!0;var a=this.getTypeHandler();if(this._implementsFunction(a,"createChildrenNodes")){a=a.createChildrenNodes(this);if(this.getState()==adf.mf.api.amx.AmxNodeStates.INITIAL){this._childrenCreated=!1;return}if(a)return}this.createStampedChildren(null,null,null);for(var a=this.getTag(),b=a.getChildren("http://xmlns.oracle.com/adf/mf/amx"),d=0,e=b.length;d<e;++d){a=b[d];if("closePopupBehavior"==a.getName()){this._preLoadTagAttributes(a,
"popupId");break}if("showPopupBehavior"==a.getName()){this._preLoadTagAttributes(a,"align","alignId","popupId");break}}}},_processConverterTag:function(){for(var a=this.getTag().getChildren("http://xmlns.oracle.com/adf/mf/amx"),b=0,d=a.length;b<d;++b){var e=a[b],g=e.getName();if("convertNumber"==g||"convertDateTime"==g){this._converterTag=e;this._postProcessForDataChangeNotification(e);break}}},_processConverter:function(){if(!(null!=this._converter||null==this._converterTag||!0==adf.mf.environment.profile.dtMode)){var a=
this._converterTag,b=a.getName(),d=!1;"convertNumber"==b?amx.createNumberConverter&&(b=this._preLoadTagAttributes(a,"currencyCode","currencySymbol","groupingUsed","integerOnly","maxFractionDigits","maxIntegerDigits","minFractionDigits","minIntegerDigits","type"),!1==b?(this.setConverter(amx.createNumberConverter(a)),d=!0):this.setState(adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION)):"convertDateTime"==b&&amx.createDateTimeConverter&&(b=this._preLoadTagAttributes(a,"dateStyle","pattern","timeStyle",
"type"),!1==b?(this.setConverter(amx.createDateTimeConverter(a)),d=!0):this.setState(adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION));return d}},_convertValue:function(){null!=this._converter&&this.setAttributeResolvedValue("value",this._converter.getAsString(this.getAttribute("value")))},_preLoadTagAttributes:function(a,b){if(adf.mf.environment.profile.dtMode)return!1;for(var d=!1,e=2,g=arguments.length;e<g;++e){var h=arguments[e];a.isAttributeElBound(h)&&(h=adf.mf.el.getLocalValue(a.getAttribute(h)),
d=d||void 0===h)}return d},_implementsFunction:function(a,b){return null!=a&&"function"===typeof a[b]},_createUniqueId:function(){var a=this.getAttribute("id"),b=this.getParent();if(null==b)this._id=a;else{var b=b.getId(),d=this.getStampKey();null==d?(d=null==b?-1:b.lastIndexOf(":"),this._id=-1==d?a:b.substring(0,d+1)+a):(d=d.toString(),d=d.replace(/[^\w\.\-]/g,"._."),this._id=b+":"+d+":"+a)}},_findChildIndex:function(a,b,d){for(var a=this.getChildren(d,a),d=0,e=a.length;d<e;++d)if(a[d].getId()==
b)return d;return-1},_findChildIndexAndFacetName:function(a,b){var d=null,e=this._findChildIndex(a,b,null);if(-1==e){var g=this.getFacets(a),h;for(h in g)if(e=this._findChildIndex(a,b,h),0<=e){d=h;break}}return-1==e?null:{index:e,facetName:d}},_removeChildrenFromDataChangeNotification:function(){var a,b,d,e;for(e in this._children){d=this._children[e];for(a=0,b=d.length;a<b;++a)d[a]._removeFromDataChangeNotification()}for(e in this._facets){var g=this._facets[e],h;for(h in g){d=g[h];for(a=0,b=d.length;a<
b;++a)d[a]._removeFromDataChangeNotification()}}},_removeFromDataChangeNotification:function(){for(var a=this.getTag().getElDependencies(),b=0,d=a.length;b<d;++b){var e=C[a[b]];if(null!=e){var g=e.indexOf(this);0<=g&&e.splice(g,1)}}this._removeChildrenFromDataChangeNotification()},_postProcessForDataChangeNotification:function(a){for(var a=a.getElDependencies(),b=0,d=a.length;b<d;++b){var e=a[b],g=C[e];null==g?(g=[this],C[e]=g):-1==g.indexOf(this)&&g.push(this)}}};n.__sortNodesByDepth=function(a){function b(a){for(var d=
0;null!=a;a=a.getParent())++d;return d}function d(a,e){if(a==e)return 0;var g=a.getParent(),h=e.getParent();if(g==h){var k=a.getStampKey(),m=e.getStampKey();return k==m?(g=g._findChildIndexAndFacetName(k,a.getId()),h=h._findChildIndexAndFacetName(m,e.getId()),m=g.facetName,k=h.facetName,m==k?0>g.index-h.index?-1:1:null==m?1:null==k?-1:m<k?-1:1):""+k<""+m?-1:1}var m=b(a),k=b(e),g=a,h=e,n=m,u=k;if(m!=k){for(;m>k;)g=g.getParent(),--m;for(;k>m;)h=h.getParent(),--k;if(g==h)return n<u?-1:1;if(g.getParent()==
h.getParent())return d(g,h)}for(;0<m;--m){k=g.getParent();n=h.getParent();if(k==n)return d(g,h);g=k;h=n}throw Error("Failed to sort the nodes in nodeCompare");}a.sort(d)};n.__getNodesDependentOnElToken=function(a){a=C[a];return null==a?[]:a};n.__clearBindings=function(){C={}};adf.mf.api.amx.AmxCollectionChange=o;o.prototype={isItemized:function(){return this._itemized},getCreatedKeys:function(){return this._itemized?this._created:null},getDeletedKeys:function(){return this._itemized?this._deleted:
null},getUpdatedKeys:function(){return this._itemized?this._updated:null},getDirtiedKeys:function(){return this._itemized?this._dirtied:null}};adf.mf.api.amx.AmxAttributeChange=q;q.prototype={getChangedAttributeNames:function(){return Object.keys(this._changedAttributes)},isCollectionChange:function(a){return null!=this._collectionChanges[a]},getCollectionChange:function(a){a=this._collectionChanges[a];return null==a?null:a},getOldValue:function(a){return this._oldValues[a]},hasChanged:function(a){return!0==
this._changedAttributes[a]},getSize:function(){return this._length},__addChangedAttribute:function(a,b,d){!1==this.hasChanged(a)&&(++this._length,this._changedAttributes[a]=!0);this._oldValues[a]=b;null!=d&&(this._collectionChanges[a]=d)}};adf.mf.api.amx.AmxDescendentChanges=s;s.prototype={getAffectedNodes:function(){return this._amxNodes},getChanges:function(a){return this._amxNodeChanges[a.getId()]},getPreviousNodeState:function(a){return this._previousStates[a.getId()]},__addAmxNode:function(a,
b,d){var e=a.getId();this._amxNodes.push(a);this._previousStates[e]=b;this._amxNodeChanges[e]=d}}})();(function(){var a=null;amx.hasTouch=function(){null===a&&(a=b("touchstart"));return a};var b=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b){var g=document.createElement(a[b]||"div"),b="on"+b,h=b in g;h||(g.setAttribute(b,"return;"),h="function"==typeof g[b]);return h}}()})();
(function(){var a="0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z".split(",");amx.uuid=function(b){for(var b=b||10,d=[],e=a.length,g=0;g<b;g++)d[g]=a[0|Math.random()*e];return d.join("")};amx.arrayRemove=function(a,d,e){e=a.slice((e||d)+1||a.length);a.length=0>d?a.length+d:d;return a.push.apply(a,e)};amx.registerInputValue=function(a,d){void 0===a.getAttribute("__attrToValidate")&&a.setAttributeResolvedValue("__attrToValidate",
d);a.storeModifyableEl(d)};adf.mf.api.amx.applyRequiredMarker=function(a,d){(amx.isValueTrue(a.getAttribute("showRequired"))||amx.isValueTrue(a.getAttribute("required")))&&adf.mf.internal.amx.addCSSClassName(d.fieldRoot,"required")};amx.getObjectValue=function(a){if(null==a||"undefined"===typeof a||"undefined"!==typeof a[".null"]&&(adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getObjectValue","MSG_UNHANDLED_NULL"),!0==a[".null"]))return null;return a};amx.getTextValue=function(a){a=
amx.getObjectValue(a);return null==a?"":""+a};amx.getDtFolderPath=function(){var a=adf.mf.api.getQueryString();return adf.mf.api.getQueryStringParamValue(a,"amx_dtfolderpath",null)};amx.currentPageContainingFolder=function(){try{var a=amx.getDtFolderPath();if(null!==a)return a;var d=adf.mf.internal.controller.ViewHistory.peek().amxPage,e=d.split("/"),g=adfc.Util.addFeatureRootPrefix(d)}catch(h){return adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"currentPageContainingFolder",
"MSG_CURRENT_PAGE_FOLDER_FAILED",h),""}return g.substr(0,g.length-e[e.length-1].length)};amx.hasProtocol=function(a){return/^(:?\w+:)/.test(a)};amx.buildRelativePath=function(a){if(amx.hasProtocol(a))return a;a=a.replace("\\","/");if("/"==a.charAt(0)){var d=amx.getDtFolderPath();if(null!==d){var e=d.indexOf("public_html/");return d.substring(0,e+12)+a.substring(1)}return adfc.Util.addFeatureRootPrefix(a.substring(1))}return amx.currentPageContainingFolder()+a};adf.mf.internal.amx.addCSSClassName=
function(a,d){var e=!1;if(null!=d){var g=a.className;-1==adf.mf.internal.amx.getCSSClassNameIndex(g,d)&&(a.className=g?d+" "+g:d,e=!0)}return e};adf.mf.internal.amx.removeCSSClassName=function(a,d){var e=!1;if(null!=d){var g=a.className,h=adf.mf.internal.amx.getCSSClassNameIndex(g,d);-1!=h&&(e=h+d.length,h=0==h?null:g.substring(0,h),g=e==g.length?null:g.substring(e+1),a.className=null==h?null==g?"":g:null==g?h:h+g,e=!0)}return e};adf.mf.internal.amx.addOrRemoveCSSClassName=function(a,d,e){return(a?
adf.mf.internal.amx.addCSSClassName:adf.mf.internal.amx.removeCSSClassName)(d,e)};adf.mf.internal.amx.containsCSSClassName=function(a,d){return-1!=adf.mf.internal.amx.getCSSClassNameIndex(a.className,d)?!0:!1};adf.mf.internal.amx.getCSSClassNameIndex=function(a,d){if(a){if(d===a)return 0;var e=d.length,g=a.length,h=a.indexOf(d);if(0<=h){var k=0==h||" "==a.charAt(h-1),m=h+e,m=m==g||" "==a.charAt(m);if(k&&m)return h;var n=a.lastIndexOf(d);if(n!=h)return k=a.charAt(n-1),m=n+e,m=m==g||" "==a.charAt(m),
k&&m?n:a.indexOf(" "+d+" ")}}return-1};adf.mf.internal.amx.getElementRight=function(a){var d=document.documentElement.offsetWidth,e=a.offsetWidth,a=adf.mf.internal.amx.getElementLeft(a);return d-a-e};adf.mf.internal.amx.getElementLeft=function(a){return-1!=navigator.userAgent.toLowerCase().indexOf("applewebkit")?adf.mf.internal.amx._webkitGetElementLeft(a):adf.mf.internal.amx._baseGetElementLeft(a)};adf.mf.internal.amx._baseGetElementLeft=function(a){for(var d=a.ownerDocument.body,e=a.offsetParent,
g=a.offsetLeft;e;)a=e,g+=a.offsetLeft,a!=d&&(g-=a.scrollLeft),e=e.offsetParent;return g};adf.mf.internal.amx._webkitGetElementLeft=function(a){if(!a.getBoundingClientRect)return this._baseGetElementLeft(a);var d=a.getBoundingClientRect().left;return d-=a.ownerDocument.documentElement.clientLeft-adf.mf.internal.amx.getBrowserViewportScrollLeft()};adf.mf.internal.amx.getElementTop=function(a){return-1!=navigator.userAgent.toLowerCase().indexOf("applewebkit")?adf.mf.internal.amx._webkitGetElementTop(a):
adf.mf.internal.amx._baseGetElementTop(a)};adf.mf.internal.amx._baseGetElementTop=function(a){var d=a.ownerDocument.body,e=a.offsetParent,g=a.offsetTop;for("absolute"==adf.mf.internal.amx.getComputedStyle(a).position&&(g-=d.offsetTop);e;)a=e,g+=a.offsetTop,a!=d&&(g-=a.scrollTop),e=e.offsetParent;return g};adf.mf.internal.amx._webkitGetElementTop=function(a){if(!a.getBoundingClientRect)return adf.mf.internal.amx._baseGetElementTop(a);var d=a.getBoundingClientRect().top;return d-=a.ownerDocument.documentElement.clientTop-
adf.mf.internal.amx.getBrowserViewportScrollTop()};adf.mf.internal.amx.getBrowserViewportScrollLeft=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("applewebkit")?this._webkitGetBrowserViewportScrollLeft():this._baseGetBrowserViewportScrollLeft()};adf.mf.internal.amx._baseGetBrowserViewportScrollLeft=function(){return document.documentElement.scrollLeft};adf.mf.internal.amx._webkitGetBrowserViewportScrollLeft=function(){return document.body.scrollLeft};adf.mf.internal.amx.getBrowserViewportScrollTop=
function(){return-1!=navigator.userAgent.toLowerCase().indexOf("applewebkit")?this._webkitGetBrowserViewportScrollTop():this._baseGetBrowserViewportScrollTop()};adf.mf.internal.amx._baseGetBrowserViewportScrollTop=function(){return document.documentElement.scrollTop};adf.mf.internal.amx._webkitGetBrowserViewportScrollTop=function(){return document.body.scrollTop};adf.mf.internal.amx.getComputedStyle=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};adf.mf.internal.amx.isAncestorOrSelf=
function(a,d){return d==a?!0:AmxRcfDomUtils.isAncestor(a,d)};adf.mf.internal.amx.isAncestor=function(a,d){if(null==d)return!1;for(var e=d.parentNode;e;){if(e==a)return!0;e=e.parentNode}return!1};adf.mf.internal.amx._getNonPrimitiveElementData=function(a,d){return $(a).data(d)};adf.mf.internal.amx._setNonPrimitiveElementData=function(a,d,e){$(a).data(d,e)};adf.mf.internal.amx.addPadding=function(a,d){for(var e=""+a,g=e.length;g<d;++g)e="0"+e;return e};adf.mf.internal.amx.extractTimeFromDateObject=
function(a){return adf.mf.internal.amx.addPadding(a.getHours(),2)+":"+adf.mf.internal.amx.addPadding(a.getMinutes(),2)+":"+adf.mf.internal.amx.addPadding(a.getSeconds(),2)+"."+adf.mf.internal.amx.addPadding(a.getMilliseconds(),3)};adf.mf.internal.amx.extractDateFromDateObject=function(a){return adf.mf.internal.amx.addPadding(a.getFullYear(),4)+"-"+adf.mf.internal.amx.addPadding(a.getMonth()+1,2)+"-"+adf.mf.internal.amx.addPadding(a.getDate(),2)};adf.mf.internal.amx.updateTime=function(a,d){if(null!=
d&&"undefined"!==typeof d&&4<d.length){var e=d.substring(0,2),g=d.substring(3,5);a.setHours(e);a.setMinutes(g)}};adf.mf.internal.amx.updateDate=function(a,d){if(null!=d&&"undefined"!==typeof d&&9<d.length){var e=d.indexOf("-");if(3<e){var g=d.substring(0,e),h=d.indexOf("-",e+1);-1<h&&(e=d.substring(e+1,h)-1,h=d.substring(h+1,d.length),a.setFullYear(g),a.setMonth(e),a.setDate(h))}}};adf.mf.internal.NONBLOCKING_CALL_COUNTER=0;adf.mf.internal.pushNonBlockingCall=function(){++adf.mf.internal.NONBLOCKING_CALL_COUNTER};
adf.mf.internal.popNonBlockingCall=function(){--adf.mf.internal.NONBLOCKING_CALL_COUNTER};adf.mf.internal.getUnresolvedCallDepth=function(){return adf.mf.internal.NONBLOCKING_CALL_COUNTER}})();
(function(){-1!=document.documentElement.className.indexOf("amx-ios")&&document.addEventListener("showpagecomplete",function(){var a=1;window.device&&(a=parseFloat(window.device.version,10));if(7<=a){var b=function(a,b){var g=document.body.style;g.height=a+"px";g.width=b+"px"};adf.mf.internal.amx._handleDeviceDimensionChanges=function(){var a=adf.mf.el.getLocalValue("#{deviceScope.hardware.screen.availableHeight}");if(void 0===a)amx.getElValue(["#{deviceScope.hardware.screen.availableHeight}","#{deviceScope.hardware.screen.availableWidth}"]).done(function(a,
d){b(d[0].value,d[1].value)});else{var e=adf.mf.el.getLocalValue("#{deviceScope.hardware.screen.availableWidth}");b(a,e)}};adf.mf.internal.amx._handleDeviceDimensionChanges()}},!1)})();
(function(){function a(a,b,d,e,g){if(amx.hasTouch()){var h=a.originalEvent;0<h.touches.length&&(a.pageX=h.touches[0].pageX,a.pageY=h.touches[0].pageY)}var k=amx.hasTouch(),h={eventSource:a,pageX:a.pageX,pageY:a.pageY,preventDefault:!1,stopPropagation:!1},a=a.originalEvent;k&&(h.touches=a.touches);(b=b.data("dragCtx"))?(d===n?(b.startPageX=h.startPageX=h.pageX,b.startPageY=h.startPageY=h.pageY,b.lastPageX=b.startPageX=h.startPageX,b.lastPageY=b.startPageY=h.startPageY):d===q&&(h.pageX=b.lastPageX,
h.pageY=b.lastPageY),null!=e&&null==b.originalAngle&&(diffX=g.pageX-e.pageX,diffY=e.pageY-g.pageY,b.originalAngle=Math.round(180*Math.atan2(diffY,diffX)/Math.PI)),h.originalAngle=b.originalAngle,h.startPageX=b.startPageX,h.startPageY=b.startPageY,h.deltaPageX=h.pageX-b.lastPageX,h.deltaPageY=h.pageY-b.lastPageY,b.lastPageX=h.pageX,b.lastPageY=h.pageY):adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.WARNING,"buildDragExtra","MSG_DRAG_CTX_NULL");return h}function b(a){var b;a.originalEvent&&
a.originalEvent.touches?(b=a.originalEvent.touches[0].pageX,a=a.originalEvent.touches[0].pageY):(b=a.pageX,a=a.pageY);return{pageX:b,pageY:a}}var d=null;adf.mf.internal.amx.registerFocus=function(a,b){var e;e=a.jquery?a.get(0):a;$(e).bind("focus",function(a){d=e;b&&b(a)})};adf.mf.internal.amx.registerBlur=function(a,b){var e;e=a.jquery?a.get(0):a;$(e).blur(function(a){d==e&&(d=null);b&&b(a)})};var e={},g={start:"mousedown",end:"mouseup",cancel:""},h={start:"touchstart",end:"touchend",cancel:"touchcancel"};
$.fn.tap=function(a,b){var k=amx.hasTouch()?h:g,m=b||a,n=b?a:null;return this.each(function(){var a=$(this),b=null;a.on(k.start,n,function(){null!=d&&$(d).blur();b=amx.uuid();e[b]=!0});a.on(k.end,n,function(a){e[b]&&(adf.mf.api.amx.showLoadingIndicator(),m.call(this,a),adf.mf.api.amx.hideLoadingIndicator(),delete e[b])})})};var k={};$.fn.tapHold=function(a,b){var d=amx.hasTouch()?h:g,n=b||a,u=b?a:null;return this.each(function(){var a=$(this),b=null;a.on(d.start,u,function(a){var d=this;$(this);b=
amx.uuid();k[b]=(new Date).getTime();setTimeout(function(){0<k[b]&&(800<=(new Date).getTime()-k[b]&&"consumeTapHold"===n.call(d,a)&&("Android"==adf.mf.internal.amx.agent.type&&a.preventDefault(),e={},k={},m={}),delete k[b])},800)});a.on(d.end,u,function(){k[b]&&delete k[b]})})};var m={},n="dragstart",o="drag",q="dragend",s={threshold:5},t={start:"mousedown",drag:"mousemove",end:"mouseup",cancel:""},u={start:"touchstart",drag:"touchmove",end:"touchend",cancel:"touchcancel"};$.fn.drag=function(d,g){function h(d,
g){var u=$(this),v=$(document),s="_"+amx.uuid();m[s]=!0;var w=!1,t=b(d);v.bind(A.drag+"."+s,function(h){var q=adf.mf.internal.amx.agent,v=(""+navigator.userAgent).toLowerCase();"Android"==q.type&&"Generic"==q.subtype&&-1!=v.indexOf("android 4.0")&&h.originalEvent.preventDefault();if(!w&&m[s]&&(q=b(h),v=t.pageY-q.pageY,Math.abs(t.pageX-q.pageX)>g.threshold||Math.abs(v)>g.threshold))w=!0,e={},k={},u.data("dragCtx",{}),q=a(d,u,n,t,q),u.trigger(n,[q]);w&&m[s]&&(e={},k={},q=a(h,u,o),!0===g.draggable&&
(v=findOverElement(void 0,q),q.overElement=v),u.trigger(o,[q]),q.preventDefault&&h.preventDefault(),q.stopPropagation&&h.stopPropagation())});v.bind(A.end+"."+s,function(b){if(w&&m[s]){var d=a(b,u,q);u.trigger(q,[d]);u.data("dragCtx",null);d.preventDefault&&b.preventDefault();d.stopPropagation&&b.stopPropagation()}$(document).unbind(A.drag+"."+s);$(document).unbind(A.end+"."+s);delete m[s]})}var y=amx.hasTouch(),z=g||d,d=g?d:null,z=$.extend({},s,z),A=y?u:t;return this.each(function(){var a=$(this);
null==d?(z.start&&a.bind(n,z.start),z.drag&&a.bind(o,z.drag),z.end&&a.bind(q,z.end),a.bind(A.start,function(a){h.call(this,a,z)})):(z.start&&a.delegate(d,n,z.start),z.drag&&a.delegate(d,o,z.drag),z.end&&a.delegate(d,q,z.end),a.delegate(d,A.start,function(a){h.call(this,a,z)}))})};$.fn.swipe=function(a,b){amx.hasTouch();var d=b||a,e=b?a:null;return this.each(function(){$(this).drag(e,{start:function(){},drag:function(a,b){var e=$(this),g;g=null;if(!0!==e.data("swipeDone")&&b){var h=b.pageX-b.startPageX,
k=b.pageY-b.startPageY,n=Math.abs(h),u=Math.abs(k);if(n>=u&&5<n){if(n=Math.abs(b.originalAngle),30>=n||150<=n)g={},g.swipeType=-1<h?"swipeRight":"swipeLeft",e.data("swipeDone",!0)}else u>=n&&5<u&&(n=Math.abs(b.originalAngle),60<=n&&120>=n&&(g={},g.swipeType=-1<k?"swipeDown":"swipeUp",e.data("swipeDone",!0)))}g&&"consumeSwipe"===d.call(this,a,g)&&(m={},e.data("swipeDone",null))},end:function(){$(this).data("swipeDone",null)},threshold:5})})}})();
(function(){amx.enableSwipe=function(a,b){a.swipe(b,function(a,b){for(var g=$(this).data("amxNode"),h=g.getTag(),k=b.swipeType,h=h.getChildren(),m=0,n=h.length;m<n;++m){var o=h[m].getAttribute("type");"swipeStart"==o?o="rtl"==document.documentElement.dir?"swipeRight":"swipeLeft":"swipeEnd"==o&&(o="rtl"==document.documentElement.dir?"swipeLeft":"swipeRight");if(o==k)return a=new amx.ActionEvent,adf.mf.api.amx.processAmxEvent(g,k,void 0,void 0,a),"consumeSwipe"}})};amx.enableTapHold=function(a,b){a.tapHold(b,
function(a){for(var b=$(this).data("amxNode"),a=b.getTag().getChildren(),g=0,h=a.length;g<h;++g)if("tapHold"==a[g].getAttribute("type"))return a=new amx.ActionEvent,adf.mf.api.amx.processAmxEvent(b,"tapHold",void 0,void 0,a),"consumeTapHold"})}})();
(function(){function a(){b()}function b(a){if(!amx.isValidating()){var b=document.getElementsByClassName("amx-validationGroup");0!=b.length&&amx.buildValidationData(b).always(function(b){if(void 0!==a&&null!=a&&0<a.length)for(var d=0;d<a.length;++d){var e=a[d];if(void 0!==b[e]&&(e=b[e],void 0!==e)){var g=e.invalid;for(item in g){var h=g[item],k=g[item],m;for(m in k)h=k[m],adf.mf.api.amx.addMessage(h.name.toLowerCase(),h.value,null,null)}e=e.required;for(item in e)adf.mf.api.amx.addMessage(A,e[item],
null,null)}}})}}function d(){var a=adf.mf.internal.controller.ViewHistory.peek().viewId;void 0===G[a]&&(G[a]={});return G[a]}function e(a){d(a)[a]=!0}function g(a,b,d,e){var g=b.getAttribute("__attrToValidate");if(void 0!==g){var h=b.getTag(),k=h.getAttribute(g);0<amx.getElsFromString(k).length&&(void 0===d.el[k]&&(d.el[k]=[]),0>d.el[k].indexOf(a)&&d.el[k].push(a));if(!1!=amx.isValueTrue(b.getAttribute("required"))){g=b.getAttribute(g);if(g instanceof Array){if(0<g.length)return}else if(""!==amx.getTextValue(g))return;
!1!=e&&(e=h.getPrefixedName(),e=adf.mf.resource.getInfoString("AMXInfoBundle","amx:selectOneChoice"==e||"amx:selectManyChoice"==e?"MSG_MAKE_A_SELECTION":"MSG_ENTER_A_VALUE"),b=b.getAttribute("label"),null==b&&(b=""),void 0===d.required[a]&&(d.required[a]=[]),d.required[a].push(b+": "+e))}}}function h(a,b,d,e){var k=$.Deferred();if((b=b.childNodes)&&0<b.length){for(var m=[],n=0;n<b.length;++n){var u=b[n];if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(u.className,"amx-node")){var o=adf.mf.internal.amx._getNonPrimitiveElementData(u,
"amxNode");if(void 0===o)continue;if(!1==amx.isNodeRendered(o))continue;g(a,o,d,e)}u=h(a,u,d,e);m.push(u)}$.when.apply($,m).done(function(){k.resolve()})}else k.resolve();return k.promise()}function k(a,b){for(var g=$.Deferred(),k=[],m={el:{},required:{}},n=0;n<a.length;++n){var u=a[n];null!=u.length&&(u=u[0]);var o,q=adf.mf.internal.amx._getNonPrimitiveElementData(u,"amxNode").getId();!0==b?(e(q),o=!0):o=!0===d(q)[q];k.push(h(q,u,m,o))}$.when(k).done(function(){g.resolve(m)});return g.promise()}
function m(a,b){void 0===a[b]&&(a[b]={invalid:[],required:[]});return a[b]}function n(a,b,d){var e=$.Deferred();if(0==a.length)return e.resolve(),e.promise();amx.getElValue(amx.validationsInvalidListEl).done(function(g,h){var n=h[0].value,u=$.Deferred();null==d?k(a,b).always(function(a){d=a;u.resolve()}):u.resolve();u.always(function(){var a=!1,b={},g;for(g in d.required)if(d.required.hasOwnProperty(g)){var a=!0,h=m(b,g,d);h.required=d.required[g]}for(g in n)if(n.hasOwnProperty(g)){var k=d.el[g];
if(void 0!==k){var u=n[g];if(!1==a)for(var o in u)if(u[o].name==z){a=!0;break}for(var q in k)h=m(b,k[q],d),h.invalid.push(u)}}a?e.reject(b):e.resolve(b)})}).fail(function(){e.resolve()});return e.promise()}function o(a){var b=$.Deferred(),d=adf.mf.internal.amx._getNonPrimitiveElementData(a,"amxNode").getTag().getChildren("http://xmlns.oracle.com/adf/mf/amx","validationBehavior"),e=d.length,g=[];if(0<e){for(var h=[],k=[],m=0;m<e;++m){var n=d[m],u=n.getAttribute("disabled");if(null!=u){var o=$.Deferred();
amx.getElValue(u).done(function(a,b){if(!amx.isValueTrue(b[0].value)){var d=n.getAttribute("group");0>h.indexOf(d)&&h.push(d)}}).always(function(){o.resolve()});k.push(o)}else u=n.getAttribute("group"),0>h.indexOf(u)&&h.push(u)}$.when.apply($,k).done(function(){var d=x(a,"amx-popup"),e;e=null!=d?d.getElementsByClassName("amx-validationGroup"):document.getElementsByClassName("amx-validationGroup");for(var d={},k=0;k<e.length;++k){var m=e[k],n=adf.mf.internal.amx._getNonPrimitiveElementData(m,"amxNode").getId();
d[n]=m}for(e=0;e<h.length;++e)k=d[h[e]],"undefined"!==typeof k&&g.push(k);b.resolve(g)})}else b.resolve(g);return b.promise()}function q(a,d){L=!1;if(!(void 0===a||0==a.length)){var e=[];if(void 0!==d)for(groupId in d)!1!=d.hasOwnProperty(groupId)&&e.push(groupId);b(e)}}function s(a){var b=$.Deferred();adf.mf.internal.amx._getNonPrimitiveElementData(a,"amxNode");o(a).always(function(a){0==a.length?b.resolve(a):amx.getElValue(amx.validationsUnsetListEl).done(function(d,e){var g=e[0].value,h=null,m=
[],u=$.Deferred();0<g.length?k(a,!0).done(function(a){h=a;for(a=0;a<g.length;++a){var b=g[a];void 0!==h.el[b]&&m.push(b)}0<m.length?amx.getElValue(m).done(function(a,b){for(var d=[],e=0;e<b.length;++e){var g=b[e];0>m.indexOf(g.name)||d.push({name:g.name,value:amx.getObjectValue(g.value)})}amx.setElValue(d).done(function(){u.resolve()}).fail(function(){u.resolve()})}).fail(function(){u.resolve()}):u.resolve()}).fail(function(){u.resolve()}):u.resolve();u.done(function(){n(a,!0,h).done(function(d){b.resolve(a,
d)}).fail(function(d){b.reject(a,d)})})}).fail(function(){b.resolve(a)})});return b.promise()}function t(a,b){if(void 0==b||void 0==a)return!1;for(;"object"==typeof a;){if(a.constructor==b)return!0;a=a.prototype}return!1}function u(a){var b=a.message;adf.mf.api.amx.addMessage(a.severity.toLowerCase(),b,null,null)}function v(a){a=C[a];null==a&&(a=F);return a}function w(a,b,d){var a=a.childNodes,e=a.length,g=b.length,h=[],k=0;if(!1===d)for(d=e-1;0<=d&&k<g;--d)for(var m=a[d],n=0;n<g;++n){if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(m.className,
b[n])){h[n]=m;++k;break}}else for(d=0;d<e&&k<g;++d){m=a[d];for(n=0;n<g;++n)if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(m.className,b[n])){h[n]=m;++k;break}}return h}function x(a,b){return null==a?null:a.className==b?a:x(a.parentNode,b)}function y(){}var z="ERROR",A="error",F=1,C={info:4,confirmation:3,warning:2};C[A]=F;C.fatal=0;var E={4:"Info",3:"Confirmation",2:"Warning"};E[F]="Error";E[0]="Fatal";var I={Info:"LBL_INFO_DISPLAY_STR",Confirmation:"LBL_CONFIRMATION_DISPLAY_STR",Warning:"LBL_WARNING_DISPLAY_STR",
Error:"LBL_ERROR_DISPLAY_STR",Fatal:"LBL_FATAL_DISPLAY_STR"};amx.validationsUnsetListEl="#{validationScope.unsetList}";amx.validationsInvalidListExpr="validationScope.invalidList";amx.validationsInvalidListEl="#{"+amx.validationsInvalidListExpr+"}";amx.validationsValidListEl="#{validationScope.validList}";var G={},L=!1;amx.isNodeRendered=function(a){if(!a.isRendered())return!1;if("amx:popup"==a.getTag().getPrefixedName())return a.getAttribute("_renderPopup")?!0:!1;a=a.getAttribute("visible");return"undefined"!==
typeof a&&amx.isValueFalse(a)?!1:!0};amx.buildValidationData=function(a){return n(a,!1,null)};amx.requiredControlValueChanged=function(a){a=a.jquery?a.get(0):a;if(!amx.isValidating()&&(a=adf.mf.internal.amx._getNonPrimitiveElementData(a,"amxNode")))e(a.getId()),b()};amx.isValidating=function(){return L};amx.validate=function(a){a=a.jquery?a.get(0):a;adf.mf.internal.perf.start("amx.validate",""+a);var b=$.Deferred();L=!0;s(a).done(function(a){q(a);b.resolve();adf.mf.internal.perf.stop("amx.validate",
"done")}).fail(function(a,d){q(a,d);b.reject();adf.mf.internal.perf.stop("amx.validate","failed")});return b.promise()};amx.registerRenderers("amx",{validationGroup:function(a){var b=document.createElement("div");$(b).append(a.renderSubNodes());return b}});$(function(){adf.mf.api.addDataChangeListeners(amx.validationsInvalidListEl,a)});adf.mf.internal.amx.errorHandlerImpl=function(a,b){if(t(b,window.TrConverterException)||t(b,window.TrValidatorException)){var d=b.getFacesMessage(),e=d.getSeverity(),
g=A,g=e==TrFacesMessage.SEVERITY_INFO?"info":e==TrFacesMessage.SEVERITY_WARN?"warning":e==TrFacesMessage.SEVERITY_ERROR?A:"fatal";adf.mf.api.amx.addMessage(g,d.getDetail(),null,null)}else if(t(b,Error))adf.mf.api.amx.addMessage(A,b.message,null,null);else if(d=b[adf.mf.internal.api.constants.TYPE_PROPERTY],e="oracle.adfmf.framework.exception.BatchValidationException"==d,!amx.isValidating()||!(e||"oracle.adfmf.framework.exception.ValidationException"==d))if(e){if(d=b.batch,void 0!==d&&null!=d)for(e=
0;e<d.length;++e)u(d[e])}else u(b)};adf.mf.api.amx.addMessage=function(a,b,d){var e=null,e=null;document.getElementById("bodyPage");e=document.getElementsByClassName("messageBox");0<e.length?(e=e[0],e=adf.mf.internal.amx._getNonPrimitiveElementData(e,"messageBox")):(e=new y,e.create());e.show();e.addItem(a,b,d)};y.prototype.getHeader=function(){var a=this.contentElement.firstChild;if(null==a||-1==adf.mf.internal.amx.getCSSClassNameIndex(a.className,"amx-messages-header"))a=document.createElement("div"),
a.className="amx-messages-header",this.contentElement.parentNode.insertBefore(a,this.contentElement);return a};y.prototype.setHeaderLabel=function(a){a=v(a);if(null==this.headerValue||a<this.headerValue){this.headerValue=a;a=E[this.headerValue];null==a&&(a="Error");var b=this.getHeader();b.innerHTML="";var d=document.createElement("div");d.className="amx-messages-header-text";d.textContent=adf.mf.resource.getInfoString(adf.mf.resource.ADFInfoBundleName,I[a]);d.setAttribute("role","heading");b.appendChild(d)}};
y.prototype.addItem=function(a,b,d){this.setHeaderLabel(a);var a=v(a)>F?"warning":A,e=document.createElement("div");e.className="amx-messages-item";e.setAttribute("role","listitem");var g=document.createElement("div");g.className="amx-messages-text amx-messages-text-"+a+" amx-messages-"+a;g.textContent=b;void 0!==d&&null!=d&&""!=d&&(g.appendChild(document.createElement("br")),g.appendChild(document.createTextNode(d)));b=w(this.contentElement,["amx-messages-item"],!1)[0];d=null;null!=b&&(d=w(b,["amx-messages-text"],
!1)[0]);null==d?adf.mf.internal.amx.addCSSClassName(g,"amx-messages-first"):adf.mf.internal.amx.removeCSSClassName(d,"amx-messages-last");adf.mf.internal.amx.addCSSClassName(g,"amx-messages-last");e.appendChild(g);g=document.createElement("div");g.className="amx-messages-icon amx-messages-icon-"+a;e.appendChild(g);this.contentElement.appendChild(e);a=this.messageBoxElement;e=adf.mf.internal.amx.getComputedStyle(a);g=e.marginBottom;e=a.offsetHeight+parseInt(e.marginTop,10)+parseInt(g,10);g=document.getElementById("bodyPage");
g=w(g,["amx-view-container"])[0];g=w(g,["amx-view"])[0].offsetHeight;a.style.top=(e<g?(g-e)/2:0)+"px"};y.prototype.addFooter=function(a){var b=document.createElement("div");b.className="amx-messages-footer";var d=document.createElement("div");d.className="amx-messages-btn amx-commandButton";d.setAttribute("role","button");var e=document.createElement("div");e.className="amx-messages-btn-label amx-commandButton-label";e.textContent=adf.mf.resource.getInfoString(adf.mf.resource.ADFInfoBundleName,"LBL_OK_DISPLAY_STR");
d.appendChild(e);b.appendChild(d);var e="mousedown",g="mouseup";amx.hasTouch()&&(e="touchstart",g="touchend");var h=$(d);h.bind(e,function(){h.addClass("amx-selected")});h.bind(g,function(){h.removeClass("amx-selected")});h.bind("mouseout",function(){h.removeClass("amx-selected")});a.appendChild(b)};y.prototype.create=function(){var a=document.getElementById("bodyPage"),b=document.createElement("div");b.className="messageBox amx-scrollable";var d=document.createElement("div");d.className="transparentScreen messageBoxScreen";
a.appendChild(d);a.appendChild(b);adf.mf.internal.amx._setNonPrimitiveElementData(b,"messageBox",this);var e=this;this.e=b;this.screen=d;b.style.display="none";a=document.createElement("div");a.className="messageBoxContainer";a.setAttribute("role","alertdialog");b.appendChild(a);d=document.createElement("div");d.className="messageBoxContent";d.setAttribute("role","list");a.appendChild(d);this.contentElement=d;this.messageBoxElement=b;this.getHeader();this.addFooter(a);$(b).tap(".messageBoxContainer .amx-messages-btn",
function(a){a.preventDefault();a.stopPropagation();setTimeout(function(){e.hide()},0)});return b};y.prototype.show=function(){var a=this.e;this.screen.style.display="";a.style.display="";for(var a=document.getElementsByClassName("amx-view-container"),b=0,d=a.length;b<d;b++)a[b].setAttribute("aria-hidden","true")};y.prototype.hide=function(){var a=this.e,b=this.screen;this.contentElement.innerHTML="";$(a).remove();$(b).remove();for(var a=document.getElementsByClassName("amx-view-container"),b=0,d=
a.length;b<d;b++)a[b].setAttribute("aria-hidden","false")}})();