function AdfAgent(a,b){this.Init(AdfAgent.UNKNOWN_PLATFORM,AdfAgent.guessOS(),a,b)}AdfAgent.setInstance=function(a){AdfAgent.AGENT=AdfAgent.AGENT=a};AdfObject.createSubclass(AdfAgent);AdfAgent.IE_PLATFORM="ie";AdfAgent.GECKO_PLATFORM="gecko";AdfAgent.WEBKIT_PLATFORM="webkit";AdfAgent.OPERA_PLATFORM="opera";AdfAgent.EDGE_PLATFORM="edge";AdfAgent.UNKNOWN_PLATFORM="unknown";AdfAgent.WINDOWS_OS="Windows";AdfAgent.SOLARIS_OS="Solaris";AdfAgent.MAC_OS="Mac";AdfAgent.UNKNOWN_OS="Unknown";
AdfAgent.ANDROID_OS="Android";AdfAgent.CAP_TOUCH_SCREEN="touchScreen";AdfAgent.CAP_TOUCH_SCREEN_NONE="none";AdfAgent.CAP_TOUCH_SCREEN_SINGLE="single";AdfAgent.CAP_TOUCH_SCREEN_MULTIPLE="multiple";AdfAgent._LOG_WRITERS=null;
AdfAgent.getAgent=function(a){if(!AdfAgent._agent){AdfAssert.assert(null!=a);var b;try{var c=navigator.userAgent,d=AdfAgent.getAgentClassNameFromAgentString(c),e=window[d];null==e&&(AdfLogger.LOGGER.severe(AdfAgent._AGENT_CLASS_NAME_NOT_FOUND,d),e=this);b=e.__getAgentVersion(c);var f=e.__getSupported(c,b);checkAgentSupport&&!f&&alert(AdfAgent._UNSUPPORTED_BROWSER_ALERT);var g=e.__getSpecificAgentClassName(c,b),h=window[g];null==h?(AdfLogger.LOGGER.severe(AdfAgent._AGENT_CLASS_NAME_NOT_FOUND,g),AdfAgent._agent=
new AdfAgent(b,a)):AdfAgent._agent=new h(b,a)}catch(k){AdfAgent._agent=new AdfAgent(b,a),AdfLogger.LOGGER.logError(k,AdfLogger.SEVERE,"Unable to initialize specific AdfAgent")}}return AdfAgent._agent};
AdfAgent.getAgentClassNameFromAgentString=function(a){var b="AdfAgent";-1!=a.indexOf("Opera")?b="AdfOperaAgent":-1!=a.indexOf("Trident")?b="AdfIEAgent":-1!=a.indexOf("MSIE")?b="AdfIEAgent":-1!=a.indexOf("Edge")?b="AdfEdgeAgent":-1!=a.indexOf("AppleWebKit")||-1!=a.indexOf("Safari")?b="AdfSafariAgent":-1!=a.indexOf("Gecko/")&&(b="AdfGeckoAgent");return b};
AdfAgent.guessOS=function(){var a=navigator.userAgent.toLowerCase();if(-1!=a.indexOf("win"))return AdfAgent.WINDOWS_OS;if(-1!=a.indexOf("mac"))return AdfAgent.MAC_OS;if(-1!=a.indexOf("sunos"))return AdfAgent.SOLARIS_OS;if(-1!=a.indexOf("android"))return AdfAgent.ANDROID_OS};AdfAgent.guessVersion=function(){return parseFloat(navigator.appVersion)};
AdfAgent.InitClass=function(){AdfAgent._agent=null;for(var a=AdfAgent.KEY_EVENTS,b=0;b<a.length;b++)a[a[b]]=b;a=[];a[AdfKeyStroke.CTRL_MASK]="Ctrl";a[AdfKeyStroke.SHIFT_MASK]="Shift";a[AdfKeyStroke.ALT_MASK]="Alt";a[AdfKeyStroke.META_MASK]="Meta";this._MODIFIER_DISPLAY_NAMES=a;this._SETTABLE_STYLE_PROPS=null};
AdfAgent.prototype.Init=function(a,b,c,d){AdfAgent.superclass.Init.call(this);a||(a=AdfAgent.UNKNOWN_PLATFORM);b||(b=AdfAgent.UNKNOWN_OS);this._platform=a;this._os=b;this._version=c;this._window=d;this._document=d.document;this._oldBodyCursor=null;this._busyCursorShown=!1;(this._capabilities={})[AdfAgent.CAP_TOUCH_SCREEN]=this.GetTouchCapability();this._modernize()};
AdfAgent.prototype.GetTouchCapability=function(){var a=AdfAgent.CAP_TOUCH_SCREEN_NONE;navigator.maxTouchPoints&&(a=1<navigator.maxTouchPoints?AdfAgent.CAP_TOUCH_SCREEN_MULTIPLE:AdfAgent.CAP_TOUCH_SCREEN_SINGLE);return a};
AdfAgent.prototype._modernize=function(){AdfAgent._addIfNotPresent(Array.prototype,{every:AdfAgent._arrayEvery,filter:AdfAgent._arrayFilter,forEach:AdfAgent._arrayForEach,indexOf:AdfAgent._arrayIndexOf,lastIndexOf:AdfAgent._arrayLastIndexOf,map:AdfAgent._arrayMap,reduce:AdfAgent._arrayReduce,reduceRight:AdfAgent._arrayReduceRight,some:AdfAgent._arraySome});AdfAgent._addIfNotPresent(Array,{isArray:AdfAgent._arrayIsArray})};AdfAgent._addIfNotPresent=function(a,b){for(i in b)a[i]||(a[i]=b[i])};
AdfAgent._arrayEvery=function(a,b){return AdfAgent._arrayVisit(a,b,!1,!0)};AdfAgent._arrayForEach=function(a,b){AdfAgent._arrayVisit(a,b,!0,!1)};AdfAgent._arraySome=function(a,b){return AdfAgent._arrayVisit(a,b,!0,!0)};AdfAgent._arrayVisit=function(a,b,c,d){for(var e=this.length,f=0;f<e;f++)if(f in this&&a.call(b,this[f],f,this)===c&&d)return c;return!c};AdfAgent._arrayIndexOf=function(a,b){var c=this.length;b?0>b&&(b=c+b,0>b&&(b=0)):b=0;for(var d=b;d<c;d++)if(d in this&&this[d]===a)return d;return-1};
AdfAgent._arrayLastIndexOf=function(a,b){var c=this.length;void 0===b||b>c?b=c:0>b&&(b=c+b);for(c=b;0<=c;c--)if(c in this&&this[c]===a)return c;return-1};AdfAgent._arrayFilter=function(a,b){for(var c=[],d=this.length,e=0;e<d;e++)if(e in this){var f=this[e];a.call(b,f,e,this)&&c.push(f)}return c};AdfAgent._arrayMap=function(a,b){for(var c=[],d=this.length,e=0;e<d;e++)e in this&&(c[e]=a.call(b,this[e],e,this));return c};
AdfAgent._arrayReduce=function(a,b){var c=this.length,d=b;if(0<c){var e=0;if(1==arguments.length)for(;e<c;e++)if(e in this){d=this[e];e++;break}for(;e<c;e++)e in this&&(d=a(d,this[e],e,this))}return d};AdfAgent._arrayReduceRight=function(a,b){var c=this.length,d=b;if(0<c){c-=1;if(1==arguments.length)for(;0<=c;c--)if(c in this){d=this[c];c--;break}for(;0<=c;c--)c in this&&(d=a(d,this[c],c,this))}return d};AdfAgent._arrayIsArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)};
AdfAgent.prototype.createXMLHttpRequest=function(){return window.XMLHttpRequest?new XMLHttpRequest:null};AdfAgent.prototype.isInlineDialogRepositioningOnScroll=function(){return AdfPage.PAGE.isPortlet()?!1:!0};
AdfAgent.prototype.removeResizeListener=function(a){AdfAssert.assertString(a);var b=this._resizeEventMap;AdfAssert.assertObject(b,"no resize listeners registered");var c=this.getElementById(a);if(c){var d=this.GetResizeEvents(),e=this._onResizeHandlerCallback;AdfAssert.assertFunction(e,"no resize listeners registered");for(var f=0;f<d.length;f++)this.removeBubbleEventListener(c,d[f],e)}AdfAssert.assertObject(b[a],"no resize listener registered by id, "+a);delete b[a]};
AdfAgent.prototype.addResizeListener=function(a,b){AdfAssert.assertString(a);AdfAssert.assertFunction(b);var c=this.getElementById(a);AdfAssert.assertDomNode(c);var d=this._resizeEventMap;d||(d=this._resizeEventMap={});d[a]&&AdfAssert.assert(!1,"already registered by id, "+a);var e=this._onResizeHandlerCallback;e||(e=this._onResizeHandlerCallback=this.createCallback(this._onResizeHandler));d[a]={listener:b,origOffsetWidth:c.offsetWidth,origOffsetHeight:c.offsetHeight};for(var d=this.GetResizeEvents(),
f=0;f<d.length;f++)this.addBubbleEventListener(c,d[f],e)};
AdfAgent.prototype._onResizeHandler=function(a){var b=this._resizeEventMap;AdfAssert.assertObject(b,"no resize listeners registered");a=this.getEventTarget(a);AdfAssert.assertDomNode(a,"resize dom node not found");for(var c,d;a&&(!(d=a.id)||!(c=b[d]));)a=a.parentNode;if(c&&!c.onResizeTimeout&&(b=AdfPage.PAGE,d={id:d,myself:this},c.origOffsetWidth!=a.offsetWidth||c.origOffsetHeight!=a.offsetHeight))c.onResizeTimeout=b.scheduleTimer(this,AdfAgent._onResizeHandlerTimeout,d,100)};
AdfAgent._onResizeHandlerTimeout=function(a){var b=a.myself;a=a.id;var c=b._resizeEventMap;AdfAssert.assertObject(c,"no resize listeners registered");var d=c[a];if(d)if(b=b.getElementById(a)){if(d.origOffsetWidth!=b.offsetWidth||d.origOffsetHeight!=b.offsetHeight)d.listener(),d.origOffsetWidth=b.offsetWidth,d.origOffsetHeight=b.offsetHeight;delete d.onResizeTimeout}else delete c[a]};AdfAgent.prototype.GetResizeEvents=function(){return AdfAgent._RESIZE_EVENTS};AdfAgent.prototype.getPlatform=function(){return this._platform};
AdfAgent.prototype.getOS=function(){return this._os};AdfAgent.prototype.getVersion=function(){return this._version};AdfAgent.prototype.getDomWindow=function(){return this._window};AdfAgent.prototype.getDomDocument=function(){return this._document};AdfAgent.prototype.atLeast=function(a,b){return(!a||a==this.getPlatform())&&(!b||b<=this.getVersion())};AdfAgent.prototype.getElementById=function(a){return this._document.getElementById(a)};AdfAgent.prototype.getElementsByName=function(a){return this._document.getElementsByName(a)};
AdfAgent.prototype.elementsRemoved=function(a){};AdfAgent.prototype.allElementsRemoved=function(){};
AdfAgent.prototype.isSessionStorageEnabled=function(a){if(void 0===this._isSessionStorageEnabled)try{sessionStorage.setItem("_adfTestKey","on"),sessionStorage.removeItem("_adfTestKey"),this._isSessionStorageEnabled=!0}catch(b){AdfLogger.LOGGER.fine("Access to sessionStorage failed for some unexpected reason. As a result user activity monitoring has been disabled. Name: "+b.name+", Message: "+b.message),this._isSessionStorageEnabled=!1}return this._isSessionStorageEnabled};
AdfAgent.prototype.getSessionStorageProperty=function(a){AdfAssert.assertString(a);try{return sessionStorage.getItem(a)}catch(b){throw AdfLogger.LOGGER.logErrorAsInfo(b,"An error occurred trying to access DOM sessionStorage."),b;}};AdfAgent.prototype.removeSessionStorageProperty=function(a){AdfAssert.assertString(a);try{sessionStorage.removeItem(a)}catch(b){throw AdfLogger.LOGGER.logErrorAsInfo(b,"An error occurred trying to access DOM sessionStorage."),b;}};
AdfAgent.prototype.setSessionStorageProperty=function(a,b){AdfAssert.assertString(a);AdfAssert.assertString(b);try{sessionStorage.setItem(a,b)}catch(c){throw AdfLogger.LOGGER.logErrorAsInfo(c,"An error occurred trying to access DOM sessionStorage."),c;}};AdfAgent.prototype.elementsAdded=function(a){};
AdfAgent.prototype.getDescendantComponentsForNode=function(a,b){b||(b=[]);if(a.firstChild)for(var c=AdfPage.PAGE,d=this.getDomDocument().evaluate(".//*[@id]",a,null,XPathResult.ANY_TYPE,null),e=d.iterateNext();e;)(e=c.findComponent(e.id))&&b.push(e),e=d.iterateNext();return b};AdfAgent.prototype.setTextContent=function(a,b){AdfAssert.assertDomNode(a);null===b&&(b="");a.textContent=b};AdfAgent.prototype.getTextContent=function(a){return a.textContent};
AdfAgent.prototype.setButtonTextContent=function(a,b){this.setTextContent(a,b)};AdfAgent.prototype.getWindowHeight=function(){return this._window.innerHeight};AdfAgent.prototype.getWindowWidth=function(){return this._window.innerWidth};AdfAgent.prototype.getElementLeft=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect().left;return b-=a.ownerDocument.documentElement.clientLeft-this.getBrowserViewportScrollLeft()};
AdfAgent.prototype.getElementTop=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect().top;return b-=a.ownerDocument.documentElement.clientTop-this.getBrowserViewportScrollTop()};
AdfAgent.prototype.getElementPageBounds=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect();a=a.ownerDocument.documentElement;deltaX=a.clientLeft-this.getBrowserViewportScrollLeft();deltaY=a.clientTop-this.getBrowserViewportScrollTop();return{top:b.top-deltaY,left:b.left-deltaX,bottom:b.bottom-deltaY,right:b.right-deltaX}};
AdfAgent.prototype.pointInElementBounds=function(a,b,c){var d=this.getElementTop(a);if(c>=d){var e=this.getElementLeft(a);if(b>=e)return c<=d+a.offsetHeight&&b<=e+a.offsetWidth}return!1};AdfAgent.prototype.pointInElementOrChildBounds=function(a,b,c){return this.pointInElementBounds(a,b,c)};AdfAgent.getCSSLengthAsInt=function(a){return"number"===typeof a?a:0<a.length&&"auto"!=a?(a=parseInt(a),isNaN(a)&&(a=0),a):0};AdfAgent.prototype.getBoxSizing=function(a,b){b||(b=this.getComputedStyle(a));return b.boxSizing};
AdfAgent.prototype.getOuterWidth=function(a,b,c){c||(c=this.getComputedStyle(a));if("border-box"==this.getBoxSizing(a,c))return b;var d=AdfAgent.getCSSLengthAsInt;b=b+d(c.paddingLeft)+d(c.paddingRight)+d(c.marginLeft)+d(c.marginRight);"TABLE"!=a.tagName.toUpperCase()&&(b+=d(c.borderLeftWidth)+d(c.borderRightWidth));return b};
AdfAgent.prototype.getOuterHeight=function(a,b,c){c||(c=this.getComputedStyle(a));if("border-box"==this.getBoxSizing(a,c))return b;var d=AdfAgent.getCSSLengthAsInt;b=b-d(c.paddingTop)+d(c.paddingBottom)+d(c.marginTop)+d(c.marginBottom);"TABLE"!=a.tagName.toUpperCase()&&(b+=d(c.borderTopWidth)+d(c.borderBottomWidth));return b};
AdfAgent.prototype.setOuterWidth=function(a,b){var c=this.getComputedStyle(a);"border-box"==this.getBoxSizing(a,c)?a.style.width=b+"px":(c=this._getOuterWidth(a,b,c),a.style.width=c+"px")};AdfAgent.prototype.setOuterMaxWidth=function(a,b){var c=this.getComputedStyle(a);"border-box"==this.getBoxSizing(a,c)?a.style.maxWidth=b+"px":(c=this._getOuterWidth(a,b,c),a.style.maxWidth=c+"px")};
AdfAgent.prototype._getOuterWidth=function(a,b,c){var d=AdfAgent.getCSSLengthAsInt;b=b-d(c.paddingLeft)-d(c.paddingRight)-d(c.marginLeft)-d(c.marginRight);"TABLE"!=a.tagName.toUpperCase()&&(b-=d(c.borderLeftWidth)+d(c.borderRightWidth));0>b&&(b=0);return b};AdfAgent.prototype.getDomForCSSPropertyName=function(a){var b=this.GetCssToDomPropertyNameMap()[a];if(b)return b;a=a.split("-");len=a.length;for(var b=a[0],c=1;c<len;c++)b+=a[c].charAt(0).toUpperCase()+a[c].substring(1);return b};
AdfAgent.prototype.GetCssToDomPropertyNameMap=function(){return AdfAgent._CSS_TO_DOM_MAP};AdfAgent.prototype.getStyleProperty=function(a,b){return a.getPropertyValue(b)};AdfAgent.prototype.setOuterHeight=function(a,b){var c=this.getComputedStyle(a);"border-box"==this.getBoxSizing(a,c)?a.style.height=b+"px":(c=this._getOuterHeight(a,b,c),a.style.height=c+"px")};
AdfAgent.prototype.setOuterMaxHeight=function(a,b){var c=this.getComputedStyle(a);"border-box"==this.getBoxSizing(a,c)?a.style.maxHeight=b+"px":(c=this._getOuterHeight(a,b,c),a.style.maxHeight=c+"px")};AdfAgent.prototype._getOuterHeight=function(a,b,c){var d=AdfAgent.getCSSLengthAsInt;b=b-d(c.paddingTop)-d(c.paddingBottom)-d(c.marginTop)-d(c.marginBottom);"TABLE"!=a.tagName.toUpperCase()&&(b-=d(c.borderTopWidth)+d(c.borderBottomWidth));0>b&&(b=0);return b};
AdfAgent.prototype.getWindowClientWidth=function(a){return a.document.documentElement.clientWidth};AdfAgent.prototype.getWindowClientHeight=function(a){return a.document.documentElement.clientHeight};AdfAgent.prototype.getWindowScrollWidth=function(a){return a.document.documentElement.scrollWidth};AdfAgent.prototype.getWindowScrollHeight=function(a){return a.document.documentElement.scrollHeight};AdfAgent.prototype.getBrowserViewportScrollTop=function(){return this.getDomDocument().documentElement.scrollTop};
AdfAgent.prototype.getBrowserViewportScrollLeft=function(){return this.getDomDocument().documentElement.scrollLeft};AdfAgent.prototype.getOverrideStyle=function(a){var b=a.style;b||(a.setAttribute("style",""),b=a.getAttribute("style"));return b};AdfAgent.prototype.getComputedStyle=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};
AdfAgent.prototype.copyStyle=function(a,b){AdfAssert.assertDomElement(b);AdfAssert.assertDomElement(a);var c=b.style,d=this.getComputedStyle(a),e=AdfAgent._SETTABLE_STYLE_PROPS;if(null==e){var e=[],f=/^[^0-9]/,g;for(g in d){var h=d[g];if("cssText"!=g&&"function"!=typeof h&&f.test(g)){try{null!=h&&0<h.length&&(c[g]=h)}catch(k){continue}e.push(g)}}AdfAgent._SETTABLE_STYLE_PROPS=e}else{f=e.length;for(g=0;g<f;g++)h=e[g],null!=d[h]&&0<d[h].length&&(c[h]=d[h])}};
AdfAgent.prototype.addBubbleEventListener=function(a,b,c){AdfAssert.assertString(b);AdfAssert.assertFunction(c);a.addEventListener(b,c,!1)};AdfAgent.prototype.removeBubbleEventListener=function(a,b,c){AdfAssert.assertString(b);AdfAssert.assertFunction(c);a.removeEventListener(b,c,!1)};AdfAgent.prototype.addEventCaptures=function(a,b){AdfAssert.assertDomNode(a);AdfAssert.assertFunction(b);for(var c=AdfAgent.REDISTRIBUTE_EVENTS,d=c.length,e=0;e<d;e++)a.addEventListener(c[e],b,!0)};
AdfAgent.prototype.removeEventCaptures=function(a,b){AdfAssert.assertDomNode(a);AdfAssert.assertFunction(b);for(var c=AdfAgent.REDISTRIBUTE_EVENTS,d=c.length,e=0;e<d;e++)a.removeEventListener(c[e],b,!0)};
AdfAgent.prototype.addEventBubbles=function(a,b){AdfAgent._addEventListeners(a,AdfAgent.REDISTRIBUTE_EVENTS,b,!1);AdfAgent._addEventListeners(a,AdfAgent._REDISTRIBUTE_CAPTURE_EVENTS,b,!0);this._capabilities[AdfAgent.CAP_TOUCH_SCREEN]!=AdfAgent.CAP_TOUCH_SCREEN_NONE&&AdfAgent._addEventListeners(a,AdfAgent._REDISTRIBUTE_TOUCH_EVENTS,b,!1)};
AdfAgent.prototype.removeEventBubbles=function(a,b){AdfAgent._removeEventListeners(a,AdfAgent.REDISTRIBUTE_EVENTS,b,!1);AdfAgent._removeEventListeners(a,AdfAgent._REDISTRIBUTE_CAPTURE_EVENTS,b,!0);this._capabilities[AdfAgent.CAP_TOUCH_SCREEN]!=AdfAgent.CAP_TOUCH_SCREEN_NONE&&AdfAgent._removeEventListeners(a,AdfAgent._REDISTRIBUTE_TOUCH_EVENTS,b,!1)};AdfAgent.prototype.addKeyEventListener=function(a,b){a.addEventListener("keydown",b,!1)};
AdfAgent.prototype.removeKeyEventListener=function(a,b){a.removeEventListener("keydown",b,!1)};AdfAgent.prototype.startDocumentKeyEventCapture=function(a,b){AdfAssert.assert(a);AdfAssert.assertDomElement(b);for(var c=b.ownerDocument,d=AdfAgent.KEY_EVENTS,e=d.length,f=0;f<e;f++){var g=d[f],h=a[g];h&&(AdfAssert.assertFunction(h),c.addEventListener(g,h,!0))}return null};
AdfAgent.prototype.endDocumentKeyEventCapture=function(a,b){AdfAssert.assert(a);AdfAssert.assertDomElement(b);for(var c=b.ownerDocument,d=AdfAgent.KEY_EVENTS,e=d.length,f=0;f<e;f++){var g=d[f];c.removeEventListener(g,a[g],!0)}};AdfAgent.prototype.beginDirtyStateTracking=function(a,b){AdfLogger.LOGGER.warning("Deprecated usage of AdfAgent beginDirtyStateTracking")};AdfAgent.prototype.endDirtyStateTracking=function(a,b){AdfLogger.LOGGER.warning("Deprecated usage of AdfAgent endDirtyStateTracking")};
AdfAgent.prototype.isDirty=function(a,b){AdfLogger.LOGGER.warning("Deprecated usage of AdfAgent isDirty");var c=null==b?a.getPeer().getDomElement():b;return AdfPage.PAGE.getDirtyStateService().hasDirtyData(c)};AdfAgent.prototype.setDirty=function(a,b,c){AdfLogger.LOGGER.warning("Deprecated usage of AdfAgent setDirty");AdfPage.PAGE.getDirtyStateService().setDirty(a,!0)};AdfAgent.prototype.getKeyCode=function(a){return a.keyCode};AdfAgent.prototype.isFunctionKey=function(a){return 0==a.charCode};
AdfAgent.prototype.getModifierDisplayName=function(a){return AdfAgent._MODIFIER_DISPLAY_NAMES[a]};AdfAgent.prototype.getEventTarget=function(a){return a.target};AdfAgent.prototype._getEventRelatedTarget=function(a){a=a.relatedTarget;try{if(a&&a.nodeType)return a}catch(b){a=null}return a};AdfAgent.prototype.getEventToElement=function(a){var b=a.type;return"mouseover"==b?this.getEventTarget():"mouseout"==b?this._getEventRelatedTarget(a):null};
AdfAgent.prototype.getEventFromElement=function(a){var b=a.type;return"mouseover"==b?this._getEventRelatedTarget(a):"mouseout"==b?this.getEventTarget():null};
AdfAgent.prototype.getComponentEvent=function(a,b,c){var d=this.mapNativeToComponentEventType(b.type);if(d)return d==AdfComponentEvent.FOCUS_EVENT_TYPE?void 0===c?new AdfDomComponentEvent(a,d,b):new AdfDomComponentFocusEvent(c,a,d,b):d==AdfComponentEvent.BLUR_EVENT_TYPE?new AdfDomComponentEvent(a,d,b):d==AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE?new AdfDomShowContextMenuEvent(a,d,b):void 0!=AdfAgent._NATIVE_TOUCH_TO_COMPONENT_MAPPINGS[b.type]?new AdfComponentTouchEvent(a,d,b):this.CreateUIInputEvent(a,
d,b);AdfLogger.LOGGER.warning("unmapped event:",AdfUIUtils.getPropertiesAsString(b));return null};AdfAgent.prototype.CreateUIInputEvent=function(a,b,c){return new AdfDomUIInputEvent(a,b,c)};
AdfAgent.prototype.elementFromPagePoint=function(a,b,c,d,e){AdfAssert.assertNumber(a);AdfAssert.assertNumber(b);AdfAssert.assertFunctionOrNull(e);var f=this._document,g=f.body,h=null;if(c)if(c.parentNode!=f.documentElement){f=c;c=null;do this.pointInElementBounds(f,a,b)?c?this.pointInElementChrome(f,a,b)&&(c=f):c=f:(c=null,h=f),f=f.parentNode;while(f!=g)}else c=null;if(c&&this.pointInElementChrome(c,a,b))return c;f={target:c,zIndex:0,done:!1};this._elementFromPagePointImpl(c?c:g,a,b,f,!1,h,d,e);c=
f.target;c||(f.zIndex=0,this._elementFromPagePointImpl(g,a,b,f,!0,null,d,e),c=f.target);return c};
AdfAgent.prototype._elementFromPagePointImpl=function(a,b,c,d,e,f,g,h){for(a=a.firstChild;a&&!d.done;){if(1==a.nodeType&&a!=f&&(null==h||!h.call(g,a))){var k=this.getComputedStyle(a);if(k&&"none"!=k.display){var l=k.zIndex;"auto"==l&&(l=null);if("hidden"!=k.visibility&&(l&&l>=d.zIndex||!l&&1>d.zIndex)){var k=e,m=!1,n=this.getElementTop(a);if(n<=c){var p=a.offsetHeight,q=0==p;if(q||n+p>=c)if(n=this.getElementLeft(a),n<=b){var p=a.offsetWidth,r=0==p;if(r||n+p>=b)k=!0,m=!r&&!q,this.pointInElementChrome(a,
b,c)&&(m=!0,d.done=!0),m&&(d.target=a)}}if(k&&!d.done){var s,t;m||(t=d.target,s=d.zIndex);l&&(d.zIndex=l);this._elementFromPagePointImpl(a,b,c,d,e,null,g,h);!m&&t==d.target&&(d.zIndex=s)}}}}a=a.nextSibling}};AdfAgent.prototype.getNodeType=function(a){if(a)return a.nodeType};AdfAgent.prototype.getNodeName=function(a){return a.nodeName};AdfAgent.prototype.getLocalName=function(a){return a.localName};AdfAgent.prototype.getNodeXml=function(a){return(new XMLSerializer).serializeToString(a)};
AdfAgent.prototype.getPrefix=function(a){return a.prefix};AdfAgent.prototype.isElementHTML=function(a){AdfAssert.assertDomNode(a);return!0};AdfAgent.prototype.setCssFloat=function(a,b){a.style.cssFloat=b};AdfAgent.prototype.getAttributeName=function(a){return a.name};AdfAgent.prototype.getAttribute=function(a,b){return a.getAttribute(b)};AdfAgent.prototype.hasAttribute=function(a,b){AdfAssert.assertDomElement(a);return a.hasAttribute(b.name)};AdfAgent.prototype.isAttributeSpecified=function(a){return a.specified};
AdfAgent.prototype.replaceNode=function(a,b){return b.parentNode.replaceChild(a,b)};AdfAgent.prototype.setAttribute=function(a,b,c){var d=a[b];(void 0==d||"boolean"!=typeof d||"false"!=c)&&a.setAttribute(b,c)};AdfAgent.prototype.getIntAttribute=function(a,b,c){AdfAssert.assertDomElement(a);void 0==c&&(c=null);a.hasAttribute(b)?(a=a.getAttribute(b),a=parseInt(a),isNaN(a)&&(a=c,AdfLogger.LOGGER.warning("The value of attribute named ",b," cannot be converted into an integer."))):a=c;return a};
AdfAgent.prototype.getBooleanAttribute=function(a,b,c){AdfAssert.assert(a);void 0==c&&(c=null);a=a.getAttribute(b);null==a?a=c:"true"==a?a=!0:"false"==a?a=!1:(a=c,AdfLogger.LOGGER.warning("The value of attribute named ",b," cannot be converted into a boolean."));return a};AdfAgent.prototype.enableUserSelect=function(a){};AdfAgent.prototype.disableUserSelect=function(a){};AdfAgent.prototype.createTouchMoveManager=function(a,b,c){return new AdfTouchMoveManager(a,b,c)};
AdfAgent.prototype.stopPropagation=function(a){a.stopPropagation()};AdfAgent.prototype.preventDefault=function(a){a.preventDefault()};AdfAgent.prototype.isDefaultPrevented=function(a){return a.defaultPrevented};AdfAgent.prototype.eatEvent=function(a){this.stopPropagation(a);this.preventDefault(a)};
AdfAgent.prototype.getMousePosition=function(a){if(("touchstart"==a.type||"touchmove"==a.type)&&a.targetTouches&&0<a.targetTouches.length)return a=a.targetTouches[0],{x:a.pageX,y:a.pageY};"touchend"==a.type&&(a.changedTouches&&0<a.changedTouches.length)&&(a=a.changedTouches[0]);return{x:a.pageX,y:a.pageY}};
AdfAgent.prototype.isEventInElement=function(a,b){var c=this.getMousePosition(a),d=this.getElementPosition(b),e=c.x,f=d.x;return e>=f&&e<=f+b.offsetWidth&&(c=c.y,d=d.y,c>=d&&c<=d+b.offsetHeight)?!0:!1};AdfAgent.prototype.getElementPosition=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect(),c=b.top,b=b.left;a=a.ownerDocument.documentElement;b-=a.clientLeft-this.getBrowserViewportScrollLeft();c-=a.clientTop-this.getBrowserViewportScrollTop();return{x:b,y:c}};
AdfAgent.prototype.isMouseEvent=function(a){return void 0!=AdfAgent._MOUSE_EVENTS[a.type]};AdfAgent.prototype.isKeyboardEvent=function(a){return null!=a?void 0!=AdfAgent._KEYBOARD_EVENTS[a.type]:!1};AdfAgent.prototype.isChromeEvent=function(a){return!1};AdfAgent.prototype.pointInElementChrome=function(a,b,c){return!1};
AdfAgent.prototype.cloneEvent=function(a,b){if(this.isMouseEvent(a)||this.isKeyboardEvent(a)){var c=a.type,d;this.isMouseEvent(a)?d=this._copyMouseEvent(a,c,b):this.isKeyboardEvent(a)&&(d=this._copyKeyboardEvent(a,c,b));var e=b?b:a.target,f=e.ownerDocument;f.addEventListener(c,this.stopPropagation,!0);try{e.dispatchEvent(d)}finally{f.removeEventListener(c,this.stopPropagation,!0)}return d}return a};
AdfAgent.prototype.copyEvent=function(a){return this.isMouseEvent(a)||"contextmenu"==a.type?newEvent=this._copyMouseEvent(a,a.type):a};AdfAgent.prototype._copyMouseEvent=function(a,b,c){c=(c?c:a.target).ownerDocument;var d=c.createEvent("MouseEvents");d.initMouseEvent(b,a.bubbles,a.cancelable,c.contentWindow,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);return d};
AdfAgent.prototype._copyKeyboardEvent=function(a,b,c){c=(c?c:a.target).ownerDocument.createEvent("Event");c.initEvent(b,!0,!0);c.altGraphKey=a.altGraphKey;c.altKey=a.altKey;c.ctrlKey=a.ctrlKey;c.keyCode=a.keyCode;c.keyIdentifier=a.keyIdentifier;c.keyLocation=a.keyLocation;c.shiftKey=a.shiftKey;c.view=a.view;c.which=a.which;return c};AdfAgent.prototype.dispatchEvent=function(a,b){return a.dispatchEvent(b)};
AdfAgent.prototype.checkMouseOutEvent=function(a,b){var c=!1,c=this.getElementPosition(a),d=this.getMousePosition(b),c=d.x>c.x&&d.x<c.x+a.offsetWidth&&d.y>c.y&&d.y<c.y+a.offsetHeight;return!c};AdfAgent.prototype.isLeftButton=function(a){return 0==a.button};AdfAgent.prototype.isSelectionToggle=function(a){var b=!1,c=AdfAgent.MAC_OS==this.getOS();c&&a.metaKey?b=!0:!c&&a.ctrlKey&&(b=!0);return b};AdfAgent.prototype.disableSelectionToggleOnEditableCell=function(){return!1};
AdfAgent.prototype.isLeftButtonClick=function(a){return"click"==a.type};AdfAgent.prototype.startMouseEventCapture=function(a){for(type in a)type in AdfAgent.KEY_EVENTS||this._document.addEventListener(type,a[type],!0)};AdfAgent.prototype.stopMouseEventCapture=function(a){for(type in a)type in AdfAgent.KEY_EVENTS||this._document.removeEventListener(type,a[type],!0)};
AdfAgent.prototype.mapNativeToComponentEventType=function(a){var b=AdfAgent._NATIVE_TO_COMPONENT_MAPPINGS[a];if(b)return b;if(this._capabilities[AdfAgent.CAP_TOUCH_SCREEN]!=AdfAgent.CAP_TOUCH_SCREEN_NONE)return AdfAgent._NATIVE_TOUCH_TO_COMPONENT_MAPPINGS[a]};
AdfAgent.prototype.createDefaultLogWriter=function(){var a=this.CreateNativeLogWriter(),b=AdfAgent._LOG_WRITERS,c=this._window,d=c[b];if("function"==typeof d&&AdfLogWriter.prototype.isPrototypeOf(d.prototype))return new d(c,a);"NativeLogWriter"!=b&&AdfLogger.LOGGER.warning('"',AdfAgent.logWritersString,'", is an undefined LogWriter or is not a subclass of AdfLogWriter. ',"Now using the native log writer. Set the Log Writer parameter in the ","web.xml file to use a specific LogWriter.");return this.CreateDefaultLogWriter(a)};
AdfAgent.prototype.CreateDefaultLogWriter=function(a){return AdfAssert.DEBUG?new AdfConsoleLogWriter(this._window,a):a};AdfAgent.prototype.CreateNativeLogWriter=function(){return new AdfAlertLogWriter};AdfAgent.prototype.setImageSource=function(a,b){a.src=b};AdfAgent.prototype.setImageTooltip=function(a,b){a.alt=b};AdfAgent.prototype.createXmlDocument=function(){return this.getDomDocument().implementation.createDocument("","",null)};AdfAgent.prototype.getFormElement=function(a,b){return a.elements[b]};
AdfAgent.prototype.showBusyCursor=function(a,b){AdfAssert.assertBoolean(b);b?this._busyCursorShown||(this._oldBodyCursor=a.body.style.cursor,this._busyCursorShown=!0,a.body.style.cursor="wait"):(this._busyCursorShown=!1,"wait"==a.body.style.cursor&&(this._oldBodyCursor||(this._oldBodyCursor="auto"),a.body.style.cursor=this._oldBodyCursor))};AdfAgent.prototype.forceCursorChange=function(a){};
AdfAgent.prototype.setCursor=function(a,b,c){AdfAssert.assertDomElement(a);AdfAssert.assertString(b);a.style.cursor=b};AdfAgent.eatEventCallback=function(a){var b=AdfAgent.AGENT;(a=null!=a?a:b.getDomWindow().event)&&b.eatEvent(a);return!1};AdfAgent.preventDefaultCallback=function(a){var b=AdfAgent.AGENT;(a=null!=a?a:b.getDomWindow().event)&&b.preventDefault(a);return!1};
AdfAgent.prototype.installKeyboardBlocker=function(a,b){b?(a.addEventListener("keypress",AdfAgent.eatEventCallback,!0),a.addEventListener("keyup",AdfAgent.eatEventCallback,!0),a.addEventListener("keydown",AdfAgent.eatEventCallback,!0)):(a.removeEventListener("keypress",AdfAgent.eatEventCallback,!0),a.removeEventListener("keyup",AdfAgent.eatEventCallback,!0),a.removeEventListener("keydown",AdfAgent.eatEventCallback,!0))};AdfAgent.prototype.setOpacity=function(a,b){a.style.opacity=b/100};
AdfAgent.prototype.disableBrowserContextMenu=function(a,b){b?this.addBubbleEventListener(a,"contextmenu",this.preventDefault):this.removeBubbleEventListener(a,"contextmenu",this.preventDefault)};AdfAgent.prototype.execScript=function(a,b){a.eval(b)};
AdfAgent.prototype.createStyle=function(a){var b=document.createElement("style");b.setAttribute("type","text/css");b.appendChild(document.createTextNode(a));AdfDomUtils.getFirstDescendentElement(AdfAgent.AGENT.getDomDocument().documentElement,"HEAD").appendChild(b);return b};AdfAgent.prototype.setExpandoProperty=function(a,b,c){AdfAssert.assertDomElement(a);AdfAssert.assertString(b);a[b]=c;AdfAssert.assert(this.getExpandoProperty(a,b)==c)};
AdfAgent.prototype.getExpandoProperty=function(a,b,c){AdfAssert.assertDomElement(a);AdfAssert.assertString(b);a=a[b];return void 0!=a?a:c};AdfAgent.prototype.getCursor=function(a){return a};AdfAgent.getCSS2Cursor=function(a){return AdfAgent._CSS3_TO_CSS2_MAP[a]};AdfAgent.prototype.scrollToPos=function(a,b,c){null!=c&&(a.scrollTop=c);null!=b&&(a.scrollLeft=b)};
AdfAgent.prototype.isClipped=function(a){if(a.scrollWidth>a.offsetWidth||a.scrollHeight>a.offsetHeight)return!0;var b=this._document.body;if(a==b||a==this._document)return!1;for(var c=a.offsetParent,d=a.offsetLeft,e=a.offsetTop,f=a.offsetWidth,g=a.offsetHeight,h=this.getComputedStyle(a),k=AdfAgent.getCSSLengthAsInt(h.paddingLeft),l=AdfAgent.getCSSLengthAsInt(h.paddingRight),m=AdfAgent.getCSSLengthAsInt(h.paddingTop),n=AdfAgent.getCSSLengthAsInt(h.paddingBottom),e=e+m,d=d+k,g=g-(m+n),f=f-(k+l),h="absolute"==
h.position;c&&c!=b;){if(0<c.clientHeight&&0<c.clientWidth){if(d+2<c.scrollLeft||e+2<c.scrollTop)return!0;if(d+f-2>c.scrollLeft+c.clientWidth||e+g-2>c.scrollTop+c.clientHeight)if(!h||"visible"!=this.getComputedStyle(c).overflow)return!0}a=c;h=this.getComputedStyle(a);"absolute"==h.position?(k=AdfAgent.getCSSLengthAsInt(h.left),l=AdfAgent.getCSSLengthAsInt(h.top),h=!0):(k=a.offsetLeft,l=a.offsetTop,h=!1);d+=k-a.scrollLeft;e+=l-a.scrollTop;c=c.offsetParent}return!1};
AdfAgent.prototype.getPreferredKeyEventForRepetition=function(){return this.getOS()==AdfAgent.MAC_OS?AdfUIInputEvent.KEY_PRESS_EVENT_TYPE:AdfUIInputEvent.KEY_DOWN_EVENT_TYPE};AdfAgent.prototype.isDisabledOptionSupported=function(){return!0};AdfAgent.prototype.resizeStretchedChild=function(a,b){};AdfAgent.prototype.resizeStretchedElement=function(a,b,c){};
AdfAgent.prototype.prepareStretchedChild=function(a,b){AdfAssert.assert(null!=b,"parent padding not specified");var c=a.style;c.position="absolute";c.width="auto";c.height="auto";c.left=b;c.top=b;c.bottom=b;c.right=b};AdfAgent.prototype.repositionStretchedElement=function(a,b,c,d,e){a&&(a=a.style,b&&(a.top=b),d&&(a.left=d),c&&(a.height="auto",a.bottom=c),e&&(a.width="auto",a.right=e))};AdfAgent.prototype.isEqualIcon=function(a,b){return a.parentNode.innerHTML==b.parentNode.innerHTML};
AdfAgent.prototype.addOption=function(a,b,c,d,e,f,g){var h=this._document.createElement("option");a.options.add(h,g);null!=c&&(h.value=c);b&&AdfAgent.AGENT.setTextContent(h,b);h.selected=d;h.disabled=e;f&&(h.title=f)};AdfAgent.prototype.removeIdsFromDomSubTree=function(a){var b=a.id;null!=b&&""!=b&&(a.id="");a=a.childNodes;for(var b=0,c=a.length;b<c;b++){var d=a[b];1==d.nodeType&&this.removeIdsFromDomSubTree(d)}};
AdfAgent.prototype.modifyIdsInDomSubTree=function(a,b,c){var d=a.id;null!=d&&""!=d&&(a.id=b?c+"::"+d:d+"::"+c);a=a.childNodes;for(var d=0,e=a.length;d<e;d++){var f=a[d];1==f.nodeType&&this.modifyIdsInDomSubTree(f,b,c)}};AdfAgent.prototype.removeStyleProperty=function(a,b){a.style.removeProperty(b)};AdfAgent.prototype.setTableRowHeight=function(a,b){a.style.height=b+"px"};AdfAgent.prototype.autoCompleteForm=function(a){};AdfAgent.prototype.getTableRows=function(a){return a.rows};
AdfAgent.prototype.getTableRowCells=function(a){return a.cells};AdfAgent.prototype.getTableRow=function(a,b){return a.rows[b]};AdfAgent.prototype.parseXML=function(a){var b=null;if(a&&a.length){var c=new DOMParser;try{b=c.parseFromString(a,"text/xml")}catch(d){}}return b};AdfAgent.prototype.cloneNode=function(a){return a.cloneNode(!0)};AdfAgent.prototype.clearSubtreeIds=function(a){a.id&&(a.id="");a.name&&(a.name="");for(a=a.firstChild;a;)1==a.nodeType&&this.clearSubtreeIds(a),a=a.nextSibling};
AdfAgent.prototype.getCapabilities=function(){return this._capabilities};AdfAgent.prototype.isDragPrepEvent=function(a){if(a instanceof AdfUIInputEvent){var b=a.getType();if(b==AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE)return a.isLeftButtonPressed();if(b==AdfComponentTouchEvent.TOUCH_START_EVENT_TYPE)return 1==a.getTouchCount()}return!1};AdfAgent.prototype.createContextMenuEventGenerator=function(){return new AdfTouchContextMenuManager};
AdfAgent.prototype.createDraggableNode=function(a){var b=this.cloneNode(a);1==b.nodeType&&this.clearSubtreeIds(b);AdfDomUtils.addCSSClassName(a,AdfAgent.DRAG_GHOST_STYLECLASS);this.copyStyle(a,b);AdfDomUtils.removeCSSClassName(a,AdfAgent.DRAG_GHOST_STYLECLASS);if(1==b.nodeType){var c=a.ownerDocument,d,e;if("TD"==b.nodeName||"TH"==b.nodeName)d=a.parentNode.parentNode.parentNode,e=c.createElement("TR"),e.appendChild(b),b=e;if("TR"==b.nodeName){if("TR"==a.nodeName){d=a.parentNode.parentNode;e=this.getTableRowCells(a);
for(var f=this.getTableRowCells(b),g=e.length,h=this.IsComputedWidthAuto(),k=0;k<g;k++)h?f[k].width=e[k].offsetWidth:f[k].style.width=this.getComputedStyle(e[k]).width,f[k].noWrap=!0}e=c.createElement("TBODY");e.appendChild(b);b=e}if("TBODY"==b.nodeName||"THEAD"==b.nodeName||"TFOOT"==b.nodeName)d||(d=a.parentNode),e=c.createElement("TABLE"),e.cellSpacing=d.cellSpacing,e.cellPadding=d.cellPadding,e.border=d.border,this.copyStyle(d,e),e.appendChild(b),b=e}this.CopyDragSize(a,b);return b};
AdfAgent.prototype.CopyDragSize=function(a,b){var c=b.style;c.position="absolute";c.width=a.offsetWidth+"px";c.height=a.offsetHeight+"px";c.top="auto";c.left="auto";c.right="auto";c.bottom="auto";"auto"==c.margin&&(c.margin="")};AdfAgent.prototype.IsComputedWidthAuto=function(){return!1};AdfAgent.prototype.showTooltip=function(a){};
AdfAgent.prototype.slice=function(a,b,c){if(!("undefined"===typeof Blob||"undefined"===typeof Blob.prototype.slice)){if(null==a)return null;if(a.slice)return a.slice(b,c)}};AdfAgent.prototype.supportsTransientStyleClasses=function(){return!0};AdfAgent.prototype.getScrollLeft=function(a){AdfAssert.assertDomNode(a);return AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.scrollWidth-a.scrollLeft-a.clientWidth:a.scrollLeft};
AdfAgent.prototype.setScrollLeft=function(a,b){AdfAssert.assertDomNode(a);AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=a.scrollWidth-b-a.clientWidth);a.scrollLeft=b};AdfAgent.prototype.toISOString=function(a){AdfAssert.assert(null!=a);return a.toISOString()};AdfAgent.prototype.isTouchFirstDevice=function(){return this.getCapabilities().touchScreen&&"none"!=this.getCapabilities().touchScreen?!0:!1};AdfAgent.__getAgentVersion=function(a){return AdfAgent.__parseFloatVersion(a,/Mozilla\/(\d+([.]\d+)*)/)};
AdfAgent.__getSupported=function(a,b){return!1};AdfAgent.__getSpecificAgentClassName=function(a,b){return"AdfAgent"};AdfAgent.__parseFloatVersion=function(a,b){var c=a.match(b);if(c&&(c=c[1]))return parseFloat(c)};AdfAgent._addEventListeners=function(a,b,c,d){AdfAssert.assertDomNode(a);AdfAssert.assertArray(b);AdfAssert.assertFunction(c);AdfAssert.assertBoolean(d);for(var e=b.length,f=0;f<e;f++)a.addEventListener(b[f],c,d)};
AdfAgent._removeEventListeners=function(a,b,c,d){AdfAssert.assertDomNode(a);AdfAssert.assertArray(b);AdfAssert.assertFunction(c);AdfAssert.assertBoolean(d);for(var e=b.length,f=0;f<e;f++)a.removeEventListener(b[f],c,d)};
AdfAgent._NATIVE_TO_COMPONENT_MAPPINGS={blur:AdfComponentEvent.BLUR_EVENT_TYPE,focus:AdfComponentEvent.FOCUS_EVENT_TYPE,focusin:AdfComponentEvent.FOCUS_EVENT_TYPE,focusout:AdfComponentEvent.BLUR_EVENT_TYPE,click:AdfUIInputEvent.CLICK_EVENT_TYPE,dblclick:AdfUIInputEvent.DOUBLE_CLICK_EVENT_TYPE,mousedown:AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE,mouseup:AdfUIInputEvent.MOUSE_UP_EVENT_TYPE,mousemove:AdfUIInputEvent.MOUSE_MOVE_EVENT_TYPE,mouseover:AdfUIInputEvent.MOUSE_IN_EVENT_TYPE,mouseout:AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE,
keydown:AdfUIInputEvent.KEY_DOWN_EVENT_TYPE,keyup:AdfUIInputEvent.KEY_UP_EVENT_TYPE,keypress:AdfUIInputEvent.KEY_PRESS_EVENT_TYPE,contextmenu:AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE};AdfAgent._NATIVE_TOUCH_TO_COMPONENT_MAPPINGS={touchstart:AdfComponentTouchEvent.TOUCH_START_EVENT_TYPE,touchmove:AdfComponentTouchEvent.TOUCH_MOVE_EVENT_TYPE,touchend:AdfComponentTouchEvent.TOUCH_END_EVENT_TYPE,touchcancel:AdfComponentTouchEvent.TOUCH_CANCEL_EVENT_TYPE};AdfAgent.REDISTRIBUTE_EVENTS="click dblclick keydown keypress keyup mousedown mousemove mouseout mouseover mouseup contextmenu".split(" ");
AdfAgent._REDISTRIBUTE_TOUCH_EVENTS=["touchstart","touchmove","touchend","touchcancel"];AdfAgent._REDISTRIBUTE_CAPTURE_EVENTS=["focus","blur"];AdfAgent.KEY_EVENTS=["keydown","keypress","keyup"];AdfAgent._MOUSE_EVENTS={click:1,dblclick:1,mousedown:1,mouseup:1,mouseover:1,mousemove:1,mouseout:1};AdfAgent._KEYBOARD_EVENTS={keydown:1,keyup:1,keypress:1};
AdfAgent._CSS3_TO_CSS2_MAP={auto:"auto","default":"default",none:"default","context-menu":"default",help:"help",pointer:"pointer",progress:"wait",wait:"wait",cell:"crosshair",crosshair:"crosshair",text:"text","vertical-text":"text",alias:"crosshair",copy:"crosshair",move:"move","no-drop":"move","not-allowed":"move ","e-resize":"e-resize","n-resize":"n-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","s-resize":"s-resize","se-resize":"se-resize","sw-resize":"sw-resize","w-resize":"w-resize",
"ew-resize":"e-resize","ns-resize":"s-resize","nesw-resize":"move","col-resize":"e-resize","row-resize":"s-resize","all-scroll":"move",inherit:"inherit"};AdfAgent._CSS_TO_DOM_MAP={};AdfAgent._RESIZE_EVENTS=["DOMAttrModified","DOMSubtreeModified"];AdfAgent.DRAG_GHOST_STYLECLASS="p_AFDragGhost";AdfAgent._AGENT_CLASS_NAME_NOT_FOUND="Falling back to AdfAgent, didn't find agent class name: ";