/*!**************************Confidential and Proprietary***************************** * File Name: OBCommon.js ********************Copyright (c) Hyland Software, Inc. 1992-2023********************/ (function(n,t){function at(){n.Node||(n.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12});n.Node&&n.DOMParser&&n.XPathEvaluator&&(i.utils.isFunction(Node.prototype.selectNodes)||(Node.prototype.selectNodes=function(n){var f=new XPathEvaluator,r=f.evaluate(n,this,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),u=[],t;if(i.utils.exists(r))for(t=r.iterateNext();t;)u.push(t),t=r.iterateNext();return u}),i.utils.isFunction(Node.prototype.selectSingleNode)||(Node.prototype.selectSingleNode=function(n){var u=new XPathEvaluator,t=u.evaluate(n,this,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null),r=null;return i.utils.exists(t)&&(r=t.singleNodeValue),r}),i.utils.isFunction(Node.prototype.transformNode)||(Node.prototype.transformNode=function(n){var r=new XSLTProcessor,t;return r.importStylesheet(n),t=r.transformToDocument(this),i.utils.exists(t)?t.xml:""}),"xml"in Node.prototype||Node.prototype.__defineGetter__("xml",function(){return(new XMLSerializer).serializeToString(this)}),"text"in XMLDocument.prototype||XMLDocument.prototype.__defineGetter__("text",function(){return this.documentElement.textContent}),"text"in Element.prototype||(Element.prototype.__defineGetter__("text",function(){return this.textContent}),Element.prototype.__defineSetter__("text",function(n){this.textContent=n})));d=function(){var r=function(n){var f=!1;if(t.querySelectorAll){for(var r=this,e=(r.parentNode||r.document).querySelectorAll(n),u=0,i=e[u];i&&i!==r;)u++,i=e[u];f=!!i}return f},i;return typeof n.Element!="undefined"&&(i=Element.prototype,typeof i!="undefined"&&(r=typeof i.matches!="undefined"?i.matches:i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector||r)),r}()}function g(t,r){var f,u,h,e,o,c;if(i.utils.exists(t,!1))if(f={},typeof t=="string")h=vt(t,r),i.each(h,function(t){i.utils.exists(t.nodeType)&&t.nodeType!==n.Node.COMMENT_NODE&&(u=t._obId,i.utils.exists(t._obId)||(u=s(t)),f[u]=t)});else if(i.utils.isDomElement(t)||i.utils.isWindow(t,!1))u=s(t),f[u]=t;else if(i.utils.exists(t.length))for(o=0,c=t.length;o0&&(i=t.querySelectorAll(n)),i}return u=i.utils.isDomElement(u)?u:t,r=i.strings.trim(r),(b||f).call(n,r,u)}function nt(n){return n.ownerDocument||n.document||n}function a(n){return new RegExp("(^| )"+n+"($| )")}function v(n,t){var r=!1;return!i.strings.nullOrEmpty(t)&&i.utils.isDomElement(n)&&(n.classList?r=t.split(/\s+/).every(function(t){return n.classList.contains(t)}):typeof n.className=="string"?r=n.className.search(a(t))>=0:n.getAttribute&&(r=(n.getAttribute("class")||"").search(a(t))>=0)),r}function y(n){return function(t,r){var u;return i.utils.exists(t)&&!i.strings.nullOrEmpty(r)&&i.each(i.strings.trim(r).split(/\s+/),function(i){u=n(t,i)}),u}}function pt(n){return i.utils.exists(n._obId)||s(n),"ob_"+n._obId}function wt(n,t){if(i.utils.isArray(n)&&n.length>1){n.sort(p);t=t||p;for(var r=1;r=0&&e>=0?(ue&&2):1,r+=0)),r}function f(n){var t=!1,u,f,e;if(i.utils.isWindow(n))t=!0;else if(r.contains)t=r.contains(n);else if(typeof n.sourceIndex=="number")t=n.sourceIndex>-1;else{u=r.createRange();f=r.createRange();try{u.selectNode(n);f.selectNode(r.body);e=u.compareBoundaryPoints(h.START_TO_START,f);t=!0}catch(o){t=!1}}return t}var u,r=nt(n),e=o(n,t);switch(e){case 0:u=0;break;case 4:case 20:u=-1;break;default:u=1}return u; /*!* Compare Position By John Resig http://ejohn.org/blog/comparing-document-position/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*!* End Compare Position Copyright */ }function w(n){var t,r,u;n&&(t=n.target,i.utils.exists(n)&&typeof n=="object"&&i.utils.exists(t)&&typeof t=="object"&&(r="",typeof t.tagName=="string"&&(r=t.tagName.toUpperCase()),u=bt(t),u||r==="INPUT"&&t.type==="text"||r==="TEXTAREA"||n.preventDefault()))}function bt(n){var r=!1,t;if(n.isContentEditable)r=n.isContentEditable;else{for(t=n;t.contentEditable&&t.contentEditable==="inherit";)t=t.parentNode;t.contentEditable&&(r=i.utils.isTrue(t.contentEditable))}return r}function f(n){if(typeof n=="function")return function(){var t=this;return this._items&&(t=n.apply(this,arguments)),typeof t!="undefined"?t:this};throw new Error("A valid function is required to be guarded.");}function r(n,t){this._items=g(n,t)}function c(n){function f(n){var t=0;return n&1?t=1:n&4?t=2:n&2&&(t=3),t}var r,t,u;for(this.cancelled=!1,this.originalEvent=n,this.id="event-"+i.utils.generateGuid(),r="altKey clientX clientY offsetX offsetY screenX screenY shiftKey type which".split(" "),t=0;t0&&(this.which=f(n.buttons));this.target=n.target||n.srcElement;this.ctrlKey=n.ctrlKey||n.metaKey;this.propertyName=n.propertyName||n.attrName}function rt(n){var f=typeof fetch!="undefined"&&i.utils.isFunction(fetch),e=!(i.utils.browser.isFirefox||i.utils.browser.isEdge),t,r,u;return f&&e?(t=n.url,r={credentials:n.credentials,method:n.type,mode:n.mode,keepalive:n.keepalive,headers:{"Content-Type":n.contentType,OBToken:i.security.GetSecurityToken()}},typeof n.data=="string"&&(n.type==="POST"?r.body=n.data:t=t+"?"+n.data),u=new Request(t,r),fetch(u).then(function(n){var i=null,t;if(n.ok){t=n.headers.get("content-type");t&&(t=t.substring(0,t.indexOf(";")).toLowerCase());switch(t){case"application/json":i=n.json();break;case"text/plain":case"text/xml":i=n.text();break;default:i=Promise.resolve(n)}return i}return Promise.reject(new Error("Fetch Request failed with status: "+n.status))}).catch(function(n){return Promise.reject(new Error("Fetch Request Network error: "+n))})):new Promise(function(t,r){n.callback=t;n.onError=r;i.ajax(n)})}function ut(t){function e(){if(typeof this.req.responseType=="string")if(this.settings.async){if(this.req.responseType=this.settings.responseType,this.req.responseType===""&&(this.req.responseType="arraybuffer"),this.req.responseType==="")throw new Error("BLOB request failed: BLOB and ArrayBuffer not supported by browser");}else throw new Error("BLOB request failed: request must be asynchronous");else throw new Error("BLOB request failed: Browser does not support responseType");}var r=this,u,f;if(this.settings=t,this.req=function(){var t;if(n.XMLHttpRequest)t=new n.XMLHttpRequest;else if(n.ActiveXObject){var r=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],i=!1,u=0,f;do{f=r[u++];i=!1;try{t=new n.ActiveXObject(f)}catch(e){i=!0}}while(i&&u0&&(n.totalPercentage=Math.floor(n.loaded/t*100));r.settings.onProgress.call(this,n)})),i.utils.exists(this.settings.headers)||(this.settings.headers={}),this.settings.credentials==="include"&&this.settings.mode==="cors"&&(this.req.withCredentials=!0),"onerror"in this.req&&i.utils.isFunction(this.settings.onError)&&(this.req.onerror=function(n){r.settings.onError.call(this,n)}),this.req.open(this.settings.type,this.settings.url,this.settings.async),this.settings.responseType.toLowerCase()==="blob"&&e.call(this),k.isIE&&/^xml$/.test(this.settings.responseType))try{this.req.responseType="msxml-document"}catch(o){}this.settings.contentType!==!1&&this.req.setRequestHeader("Content-Type",this.settings.contentType);this.settings.disablePreConfiguredHeaders||(u=i.security.GetSecurityToken(),u.length>0&&(this.settings.headers.OBToken=u));for(f in this.settings.headers)this.req.setRequestHeader(f,this.settings.headers[f]);return this.req.send(this.settings.data),this.settings.async||this.triggerCallback(),this.req}function ft(n){this.originalStyleSheet=n}function h(n){this.originalRange=n}function lt(n){return i.utils.exists(n.SessionManager)&&!i.utils.exists(n.dialogArguments)}var u={},e=window.Page||{Log:function(n,t){t=typeof t=="boolean"?t:!1;window.Page?window.Page.Log.apply(window.Page,arguments):typeof console!="undefined"&&(t?console.error(n):console.log(n))}},b,k=function(){var n={obuBlockingSupported:!0,obuMessagingSupported:!0,isIE:function(){return navigator.userAgent.indexOf("Trident")>-1||navigator.userAgent.indexOf("MSIE")>-1}(),isSafari:function(){return navigator.userAgent.indexOf("AppleWebKit")>-1&&navigator.userAgent.indexOf("Chrome")<0}(),isChrome:function(){return navigator.userAgent.indexOf("AppleWebKit")>-1&&navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")<0}(),isEdge:function(){return navigator.userAgent.indexOf("Edge")>-1}(),isFirefox:function(){return navigator.userAgent.indexOf("Firefox")>-1}(),isMobile:function(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPad")>-1}(),getVersion:function(){var r=navigator.userAgent,t={major:0,minor:0,build:0,toString:function(n){n=typeof n=="string"?n:".";return t.major+n+t.minor+n+t.build},original:""},i,f,e,o,s,h,c,v,l,u,a,y;if(n.isIE)if(f=/Trident\/([0-9]+)\.[0-9]/i,e=/MSIE ([0-9]+)\.[0-9]/i,i=f.exec(r),i!==null){v=i[1];switch(v){case"4":t.original="8.0";t.major=8;break;case"5":t.original="9.0";t.major=9;break;case"6":t.original="10.0";t.major=10;break;case"7":t.original="11.0";t.major=11}}else i=e.exec(r),i!==null&&(t.original=i[1],t.major=i[1]);else n.isSafari?(o=/Version\/(([0-9]+)\.([0-9]+)(\.([0-9]+))?)/i,i=o.exec(r),i!==null&&(t.original=i[1],t.major=parseInt(i[2]),t.minor=parseInt(i[3]),t.build=parseInt(i[5]))):n.isFirefox?(s=/FireFox\/(([0-9]+)\.([0-9]+))/i,i=s.exec(r),i!==null&&(t.original=i[1],t.major=parseInt(i[2]),t.minor=parseInt(i[3]),t.build=0)):n.isChrome?(h=/Chrome\/(([0-9]+)\.([0-9]+)\.([0-9]+)\.[0-9]+)/i,i=h.exec(r),i!==null&&(t.original=i[1],t.major=parseInt(i[2]),t.minor=parseInt(i[3]),t.build=parseInt(i[4]))):n.isEdge&&(c=/Edge\/(([0-9]+)\.([0-9]+))/i,i=c.exec(r),i!==null&&(t.original=i[1],t.major=parseInt(i[2]),t.minor=parseInt(i[3]),t.build=0));for(l=["major","minor","build"],u=0;u=6.1||n.isFirefox&&t>=25),n.obuMessagingSupported=!n.isFirefox,n}(),l=function(){function e(n){return n._obId}var r={},f=function(){var n={ie:{input:"propertychange"},standard:{propertychange:"DOMAttrModified"}},t=window.addEventListener?"standard":"ie";return function(i){var r=n[t];return i in r?r[i]:i}}(),u=function(){var r=!1,n="",t="",i="";return window.addEventListener?(n="addEventListener",t="removeEventListener",i=""):window.attachEvent&&(n="attachEvent",t="detachEvent",i="on"),function(u,f,e,o){o=typeof o=="boolean"?o:!0;u=i+u;o?f[n](u,e,r):f[t](u,e)}}(),o={addEvent:function(){function n(n,i){return function(r){t.call(n,i,r)}}function t(n,t){var f,r,u;for(t=new c(t),f=this.handlers,r=0;r=0?t.keyCode=r:n.indexOf("mouse")>=0&&r>=1&&r<=3&&(t.type===n?t.button=r-1:(t.button=r,r!==1&&(t.button=r===2?4:2))))}var n={click:"MouseEvent"};return function(i,u,f){var e;t.createEvent?(e=t.createEvent(u in n?n[u]:"Event"),e.initEvent(u,!0,!0),r(u,e,f),e&&i.dispatchEvent(e)):t.createEventObject&&(e=t.createEventObject(),r(u,e,f),e?i.fireEvent("on"+u,e):i.fireEvent("on"+u))}}()};return function(){function t(){var s,o,f,e;for(s in r){o=r[s];for(f in o){if(e=o[f],i.utils.exists(e)&&!(e.item==n&&f==="onunload"))try{u(f,e.item,e.delegate,!1)}catch(h){}o[f]=null}r[s]=null}u("unload",window,t,!1)}n.addEventListener===null&&u("unload",window,t,!0)}(),o}(),d,i=function(n){return new r(n)},s=function(n){return n._obId||(n._obId=i.utils.generateGuid()),n._obId},tt=y(function(n,t){n.classList?n.classList.add(t):v(n,t)||(n.className.length>0&&(t=" "+t),n.className+=t)}),it=y(function(n,t){n.classList?n.classList.remove(t):function(){var r=a(t),u=n.className.match(r),f,i;u&&(i=u[0],f=i.charAt(0)===" "&&i.charAt(i.length-1)===" "?" ":"",n.className=n.className.replace(r,f))}()}),yt=y(function(n,t){n.classList?n.classList.toggle(t):v(n,t)?it(n,t):tt(n,t)}),o=function(){var n=["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],t={"٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9"},i=function(){var n;return typeof $OB!="undefined"?n=$OB.clientConfig.cultureCode:typeof globalVariables!="undefined"&&globalVariables.formatCulture?n=globalVariables.formatCulture.toLowerCase():window.sessionStorage?n=window.sessionStorage.getItem("__UsersCultureCode"):navigator.userLanguage&&(n=navigator.userLanguage),n||"en-us"},r=i(),u=function(){var n=!1;return/^ar-/.test(r)&&(n=!0),n},f=function(t){return t=typeof t=="string"?t:t+"",t.replace(/\d(?!})/g,function(t){return n[t]})},e=function(n){return n=typeof n=="string"?n:n+"",n.replace(/\u0660|\u0661|\u0662|\u0663|\u0664|\u0665|\u0666|\u0667|\u0668|\u0669/g,function(n){return t[n]})};return{isArabic:u,convertToHindiNumber:f,convertFromHindiNumber:e}}(),et,ot,st,ht,ct;c.prototype={cancel:function(){this.cancelled=!0},isCancelled:function(){return!!this.cancelled},preventDefault:function(t){this.preventDefaultCalled=!0;var r=this.originalEvent;if(i.utils.exists(r)){if(r.preventDefault)r.preventDefault();else try{r.keyCode=null}catch(u){}n.ActiveXObject&&(r.returnValue=typeof t=="string"&&this.type==="beforeunload"?t:!1)}},stopPropagation:function(){var n=this.originalEvent;i.utils.exists(n)&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0)},offsetPositions:function(){var i=this.originalEvent,r=0,u=0;if(i.offsetX)r=i.offsetX,u=i.offsetY;else if(i.target){for(var n=i.target,t=n,f=0,e=0;n&&n.offsetParent;)for(f+=n.offsetLeft-n.scrollLeft,e+=n.offsetTop-n.scrollTop,n=n.offsetParent,t=t.parentNode;t!==n&&!isNaN(t.scrollLeft);)f-=t.scrollLeft,e-=t.scrollTop,t=t.parentNode;r=i.pageX-f;u=i.pageY-e}return{offsetX:r,offsetY:u}}};i.Event=c;i.fetch=function(n){if(n&&n.callback)throw new Error("Use a Promise Chain instead of 'callback' to work with $OB.fetch");return n=i.utils.merge(n||{},{async:!1,type:"POST",contentType:"application/x-www-form-urlencoded",keepalive:!1,url:"",data:null,credentials:"same-origin",mode:"same-origin"}),new rt(n)};i.fetchWithKeepAlive=function(n){return n=i.utils.merge(n||{},{async:!1,type:"POST",contentType:"application/x-www-form-urlencoded",keepalive:!0,url:"",data:null,credentials:"same-origin",mode:"same-origin"}),new rt(n)};i.asyncXhr=function(n){return n=i.utils.merge(n||{},{async:!0}),n=n||{},new Promise(function(t,r){n.callback=t;n.onError=r;n.async=!0;i.ajax(n)})};i.ajax=function(n){var t={type:"POST",async:!1,contentType:"application/x-www-form-urlencoded",data:null,headers:null,responseType:"text",onProgress:null,onError:null,onInvalidSession:i.ajax.configuration.onInvalidSession||null,url:"",disablePreConfiguredHeaders:!1,useOnErrorAsOnRecovery:i.ajax.configuration.useOnErrorAsOnRecovery||!1,replayRequestOnInvalidSession:i.ajax.configuration.replayRequestOnInvalidSession||!1,invalidSessionStatusCode:i.ajax.configuration.invalidSessionStatusCode||null};return n=i.utils.merge(n||{},t),new ut(n)};i.ajax.configure=function(n){i.ajax.configuration=i.utils.merge(n||{},i.ajax.configuration)};i.ajax.configuration={onInvalidSession:null,useOnErrorAsOnRecovery:!1,replayRequestOnInvalidSession:!0,invalidSessionStatusCode:null};ut.prototype={triggerCallback:function(){var t,r,n;if(this.hasInvalidAppServerSession()&&i.utils.isFunction(this.settings.onInvalidSession)){t={};this.settings.replayRequestOnInvalidSession?(r=i.utils.merge({replayRequestOnInvalidSession:!1},this.settings),t.onRecovery=function(){i.ajax(r)}):this.settings.useOnErrorAsOnRecovery&&i.utils.isFunction(this.settings.onError)&&(t.onRecovery=this.settings.onError);this.settings.onInvalidSession(t)}else if(i.utils.isFunction(this.settings.callback)){switch(this.settings.responseType.toLowerCase()){case"xml":n=this.req.responseXML;n&&(i.utils.exists(n.xml)&&n.xml.length===0||i.utils.exists(n.documentElement)&&n.documentElement.nodeName==="parsererror")&&(n=null);break;case"json":n=this.req.responseText.length>0?JSON.parse(this.req.responseText):null;break;case"blob":n=this.req.response instanceof ArrayBuffer?new Blob([this.req.response],{type:this.settings.contentType}):this.req.response;break;case"text":default:n=this.req.responseText}this.settings.callback.call(this,n);this.triggerCallback=null}},hasInvalidAppServerSession:function(){var n=!1;return i.utils.exists(i.ajax.configuration.invalidSessionStatusCode)&&(n=this.req.status===i.ajax.configuration.invalidSessionStatusCode),n}};i.getXmlDocument=function(t){var r=null,u;if(n.DOMParser&&i.utils.isFunction(Node.prototype.selectNodes)?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("msxml2.DOMDocument.3.0"),r.preserveWhiteSpace=!0,r.setProperty("SelectionLanguage","XPath"),r.async=!1,r.loadXML(t)),r.parseError&&r.parseError.errorCode!==0)throw new Error(r.parseError.reason);else if(i.utils.exists(r.documentElement)&&r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.text);else if(i.utils.exists(r.xml)&&r.xml.indexOf("0)throw new Error(r.text);return r};i.getOBEvent=function(n){return!i.utils.exists(n)||n instanceof i.Event||(n=new c(n)),n};i.createStyleSheet=function(n,i){i||(i=t);var r,u=i.getElementsByTagName("head")[0];return n?(r=i.createElement("link"),r.rel="stylesheet",r.type="text/css",r.href=n):r=i.createElement("style"),u.appendChild(r),new ft(r.sheet)};ft.prototype={addRule:function(n,t,i){var r=this.originalStyleSheet;r&&(r.addRule?r.addRule(n,t,i):r.insertRule&&r.insertRule(n+" {"+t+";}",i?i:0))}};h.prototype={duplicate:function(){var n=this.originalRange,t;if(n&&(n.duplicate?t=n.duplicate():n.cloneRange&&(t=n.cloneRange()),t))return new h(t)},findText:function(n){var t=this.originalRange,r,e,h,u;if(t){if(t.findText)return t.findText(n,0);if(window.find&&window.getSelection){for(r=window.getSelection(),r.removeAllRanges();window.find(n);)if(t.comparePoint(r.anchorNode,r.anchorOffset)===0&&t.comparePoint(r.focusNode,r.focusOffset)===0)return t.setStart(r.anchorNode,r.anchorOffset),t.setEnd(r.focusNode,r.focusOffset),!0}else for(e=t.startContainer.children,h=e.length,u=0;u0&&(n=n.cloneNode(!0));t.appendChild(n)});else throw new Error("Appended element must be a valid DOM node.");});r.prototype.remove=f(function(){var n=!0;return this.each(function(t){t&&t.parentElement?t.parentElement.removeChild(t):n=!1}),n});r.prototype.isVisible=f(function(){return i.isVisible(this.getDomNodes(0))});r.prototype.hasItems=function(){return this._items&&Object.keys(this._items).length>0};r.prototype.find=function(n){var t=this.firstNode();return new r(n,t)};r.prototype.parent=function(n){var i=this.firstNode(),u=null;if(i.parentNode)if(n){for(i=i.parentNode;i&&i!==t;i=i.parentNode)if(i.nodeName===n.toUpperCase()){u=i;break}}else u=i.parentNode;return new r(u)};r.prototype.filter=function(n){var t,u,f;if(arguments.length>0)if(i.utils.isDomElement(n))i.utils.exists(this._items[n._obId])&&(t=n);else{if(t={},i.utils.isFunction(n))i.each(this._items,function(i,r){n.call(i,i,r)!==!1&&(t[i._obId]=i)});else if(typeof n=="string")for(f in this._items)u=this._items[f],d.call(u,n)&&(t[u._obId]=u);t=i.utils.toArray(t)}return new r(t)};r.prototype.first=function(){var n=this.firstNode();return new r(n)};r.prototype.last=function(){var n=this.lastNode();return new r(n)};r.prototype.at=function(n){var t=this.getDomNodes(n);return new r(t)};r.prototype.odd=function(){for(var t=this.getDomNodes(),i=[],n=0,u=t.length;n0?t:undefined),t};r.prototype.addClass=f(function(n){i.each(this._items,function(t){tt(t,n)})});r.prototype.removeClass=f(function(n){i.each(this._items,function(t){it(t,n)})});r.prototype.toggleClass=f(function(n){i.each(this._items,function(t){yt(t,n)})});r.prototype.hasClass=f(function(n){return v(this.getDomNodes(0),n)});r.prototype.insertAdjacentElement=function(n,t){if(this._items&&i.utils.isDomElement(t))t.parentNode&&t.parentNode.removeChild(t),i.each(this._items,function(i,r,u){if(t=u===0?t:t.cloneNode(!0),i.insertAdjacentElement)i.insertAdjacentElement(n,t);else switch(n){case"beforeBegin":i.parentNode.insertBefore(t,i);break;case"afterBegin":i.insertBefore(t,i.firstChild);break;case"beforeEnd":i.appendChild(t);break;case"afterEnd":i.parentNode.insertBefore(t,i.nextSibling);break;default:throw new Error("Not a valid option");}});else throw new Error("Cannot insert provided object into DOM.");return this};r.prototype.insertAdjacentHTML=function(n,i){var u,r,f,e;if(this._items&&typeof i=="string")for(u in this._items)r=this._items[u],r.insertAdjacentHTML?r.insertAdjacentHTML(n,i):(f=t.createRange(),e=f.createContextualFragment(i),this.insertAdjacentElement(n,e));return this};r.prototype.addEvent=f(function(n,t,r){if(i.utils.isFunction(t)&&!i.strings.nullOrEmpty(n)){var u=i.strings.trim(n).split(/\s+/ig);this.each(function(n){l.addEvent(n,u,t,r)})}else throw new Error("A valid callback and event type must be specified.");});r.prototype.removeEvent=f(function(n,t){if(i.strings.nullOrEmpty(n))throw new Error("A valid event type must be specified.");else{var r=i.strings.trim(n).split(/\s+/ig);this.each(function(n){l.removeEvent(n,r,t)})}});r.prototype.raiseEvent=f(function(n,t){this.each(function(i){l.raiseEvent(i,n,t)})});r.prototype.attr=function(n,t){function e(n){var t={"class":"className"};return typeof t[n]=="string"?t[n]:n}function o(n,t){var r,u=e(n);for(var f in this._items)r=this._items[f],i.utils.exists(r[u])?r[u]=t:r.setAttribute(n,t)}function s(n,t){var u=null,o=e(t),f,r,s;if(i.utils.exists(n[o]))u=n[o];else if(i.utils.exists(n.getAttribute))u=n.getAttribute(t);else for(f=n.attributes,r=0,s=f.length;r0?"-":"")+n.toLowerCase()})}var u=["zIndex"];return function(n,t){var o=this,u,e;return this._items&&(arguments.length===1?(u=typeof arguments[0],u==="string"?o=f(this.getDomNodes(0),n):u==="object"&&(e=arguments[0],i.each(this._items,function(n){for(var t in e)r(n,t,e[t])}))):arguments.length===2&&i.each(this._items,function(i){r(i,n,t)})),o}}();r.prototype.getDomNodes=function(n){var r={},t=[];if(i.each(this._items,function(n){var t=s(nt(n));t in r||(r[t]=[]);r[t].push(n)}),i.each(r,function(n){n.sort(p);t=t.concat(n)}),t.length>0){if(typeof n=="number")if(n>=0&&n0&&(t=n[n.length-1]),t};r.prototype.each=function(n){return i.each(this.getDomNodes(),n),this};et=function(){var n=typeof t.createElement("p").textContent!="undefined"?"textContent":"innerText";return function(t){var r=this,u;return this._items&&(u=this.firstNode(),u&&(i.utils.exists(t)?u[n]=t.toString():(r=u[n],r=i.utils.exists(r)?i.strings.trim(r):""))),r}}();ot=function(){var n=typeof t.createElement("p").textContent!="undefined"?"textContent":"innerText";return function(t){var r=this,u;return this._items&&(u=this.firstNode(),u&&(i.utils.exists(t)?u[n]=o.convertToHindiNumber(t).toString():(r=u[n],r=o.convertFromHindiNumber(r),r=i.utils.exists(r)?i.strings.trim(r):""))),r}}();r.prototype.text=o.isArabic()?ot:et;r.prototype.html=function(n){var t=this,r;return this._items&&(r=this.firstNode(),r&&(typeof n=="string"?r.innerHTML=n:(t=r.innerHTML||"",t=i.strings.trim(t)))),t};st=function(){return function(n){var r=this,t;return this._items&&(t=this.firstNode(),t&&t.tagName.toLowerCase()=="input"&&t.type.toLowerCase()=="text"&&(i.utils.exists(n)?t.value=n.toString():r=t.value)),r}}();ht=function(){return function(n){var r=this,t;return this._items&&(t=this.firstNode(),t&&t.tagName.toLowerCase()=="input"&&t.type.toLowerCase()=="text"&&(i.utils.exists(n)?t.value=o.convertToHindiNumber(n.toString()):r=o.convertFromHindiNumber(t.value))),r}}();r.prototype.val=o.isArabic()?ht:st;r.prototype.data=function(n,t){var u=this.getDomNodes(),r=this;return i.utils.exists(n)?typeof t!="undefined"?(i.data.call(this,u,n,t),r=this):r=i.data.call(this,u,n):r=i.data.call(this,u),r};r.prototype.removeData=function(n){var t=this.getDomNodes();return arguments.length===1?i.removeData.call(this,t,n):arguments.length===0&&i.removeData.call(this,t),this};r.prototype.createRange=function(){var i,n,r;return this._items&&(n=this.getDomNodes(0),n.createTextRange?i=new h(n.createTextRange()):t.createRange&&(r=t.createRange(),r.selectNodeContents(n),i=new h(r))),i};r.prototype.onReadyStateChange=function(n,t,r){var s,u,f,e,o;if(typeof n=="string"&&(n=[n]),this._items)for(s in this._items)u=this._items[s],typeof u.onreadystatechange=="object"&&u.attachEvent?(f=function(){for(var o=n.length,e,r=0;r=0&&f.url.set("k",i.clientConfig.getInstanceKey()),c=i.security.GetSecurityToken(),c.length>0&&f.url.set("OBToken",c),typeof f.url.params.appContextGuid!="string"&&(l=i.utils.getAppContextGuid(),l.length>0&&f.url.set("appContextGuid",l)),y=f.url.protocol,f.url=f.url.toString(f.encode),typeof f.urlMiddleware=="function"&&(a=f.urlMiddleware(f.url),typeof a=="string"&&(f.url=a)),this._items&&typeof f.url=="string"){var o=this.firstNode(),p=/frame/i.test(o.nodeName),w=!1;if(f.e=i.utils.exists(f.e)?f.e:{},f.e.type=typeof f.e.type=="string"?f.e.type:"navigate",i.utils.isWindow(o)||p){v=i.utils.exists(o.contentWindow)?o.contentWindow:o;try{w=i.utils.exists(v.UnloadManager)}catch(d){}if(s=w&&y!=="mailto"?v.UnloadManager.CleanupWithPrompt(f.e,f.customMessage):!0,s){var h=o.onload,b=!1,k=i.utils.isFunction(f.success);k&&(o.onload=function(){i.utils.isFunction(h)&&h.call(o,f.e);f.success.call(n,f.e);o.onload=h;b=!0});p?o.src=f.url:o.location.href=f.url;k&&n.setTimeout(function(){b||(f.success.call(n,f.e),o.onload=h)},500)}else i.utils.isFunction(f.failure)&&f.failure.call(n,f.e)}}return s};r.prototype.deferredNavigate=function(t,r){function h(t,i,u){n.clearInterval(t);r.e.navigationResult=u;i(r.e)}function a(n){var t=0;try{t=n.performance.timing.navigationStart}catch(i){}return t}function p(n,t,i){i?t.src=n:t.location.href=n}var v,c=this,l,s,e;if(r=i.utils.merge(r||{},{encode:!1,customMessage:"",e:{type:"navigate"}}),r.e.navigationResult="notresolved",t=new i.classes.Url(t),t.params.OBToken=i.security.GetSecurityToken(),typeof t.params.appContextGuid=="string"&&t.params.appContextGuid.length>0||(l=i.utils.getAppContextGuid(),l.length>0&&(t.params.appContextGuid=l)),v=t.protocol,t=t.toString(r.encode),i.utils.isFunction(r.urlMiddleware)&&(t=r.urlMiddleware(t).toString()),this._items&&typeof t=="string"){var u=this.firstNode(),o=/frame/i.test(u.nodeName),y=!1,f=i.utils.exists(u.contentWindow)?u.contentWindow:u;try{y=i.utils.exists(f.UnloadManager)}catch(w){}if(i.utils.isWindow(u)||o)s=Promise.resolve(!0),y&&v!=="mailto"&&(s=f.UnloadManager.DeferredCleanup({e:r.e,notification:r.notification,customMessage:r.customMessage,withPrompt:!0})),u==n||o&&u.contentWindow==n?(s.then(function(n){n&&p(t,u,o)}),c={then:function(){throw new Error("Can't continue promise chain after navigating this window.");}}):(e=null,c=new Promise(function(c,l){s.then(function(s){if(s){var k=(new Date).getTime(),d=2e4,w=a(f),v=o?u:u.frameElement,y=null;function b(){v!==null&&y!==v.onload&&(i.utils.isFunction(y)&&y.call(v,r.e),v.onload=y,v.originalOnLoad=undefined)}v!==null&&(typeof v.originalOnLoad!="undefined"?y=v.originalOnLoad:(y=v.onload,v.originalOnLoad=y),v.onload=function(){b();r.e.navigationResult==="notresolved"&&h(e,c,"navigated")});e=n.setInterval(function(){try{var r=(new Date).getTime(),i=!1,t=!1;try{i=w!==a(f)||w===0;t=f.document.readyState==="complete";t=t||f.document.readyState==="interactive"}catch(o){w!==0&&(i=!0,t=!0)}i&&t?(b(),h(e,c,"navigated")):!i&&r-k>=d&&(b(),h(e,c,"timereached"))}catch(u){n.clearInterval(e);l(u);y!==null&&(v.onload=y,v.originalOnLoad=undefined)}},500);p(t,u,o)}else l(r.e)})}));else throw new Error("Invalid navigation target.");}else throw new Error("Invalid navigation target or URL.");return c};r.prototype.getOffsetPosition=function(){if(this._items){for(var i=0,r=0,n=this.getDomNodes(0),t=n;n&&!isNaN(n.offsetLeft);)for(i+=n.offsetLeft,r+=n.offsetTop,n=n.offsetParent,n&&!isNaN(n.scrollLeft)&&(i-=n.scrollLeft,r-=n.scrollTop),t=t.parentNode;t!==n&&!isNaN(t.scrollLeft);)i-=t.scrollLeft,r-=t.scrollTop,t=t.parentNode;return{x:i,y:r}}return this};r.prototype.setCapture=function(n,i){if(this._items){var r=i||window,u=this.getDomNodes(0);u.setCapture?u.setCapture():t.body.addEventListener?r.addEventListener("mousemove",n,!0):t.body.attachEvent&&r.attachEvent("onmousemove",n)}return this};r.prototype.releaseCapture=function(n,i){if(this._items){var r=i||window,u=this.getDomNodes(0);u.releaseCapture?u.releaseCapture():t.body.removeEventListener?r.removeEventListener("mousemove",n,!0):t.body.detachEvent&&r.detachEvent("onmousemove",n)}return this};r.prototype.focusElement=function(){return i.accessibility.SetFocus(this.firstNode()),this};i.isVisible=function(n){var t=!1;return i.utils.isDomElement(n)&&(t=n.offsetHeight>0&&n.offsetWidth>0&&$OB(n).css("visibility")!=="hidden"),t};i.ready=function(t){return i(n.document).onReadyStateChange("complete",t)};i.navigateTo=function(t,r){return i(n).navigateTo(t,r)};i.deferredNavigate=function(t,r){return i(n).deferredNavigate(t,r)};i.createElement=function(n){var i=t.createElement("div");return i.innerHTML=n,i.children.length===1?i.firstChild:i.children};i.data=function(n,t,r){var f,e,o,h;if(n=typeof n.length=="number"&&!i.utils.isDomElement(n)?n:[n],arguments.length===2)e=n[0]._obId,u[e]&&(f=u[e].data[t]);else if(arguments.length===3)if(typeof r!="undefined")i.each(n,function(){s(this);u[this._obId]||(u[this._obId]={elem:this,data:{}});u[this._obId].data[t]=r}),f=n;else throw new Error("Can't add undefined to data store.");else arguments.length===1&&(o=n[0],o&&(h=o._obId,u[h]&&(f=u[h].data)));return f};i.removeData=function(n,t){return n=typeof n.length=="number"&&!i.utils.isDomElement(n)?n:[n],arguments.length===2?i.each(n,function(n){var i=n._obId;u[i]&&u[i].data&&u[i].data[t]&&(u[i].data[t]=null,delete u[i].data[t])}):arguments.length===1&&i.each(n,function(n){var t=n._obId;u[t]&&u[t].data&&(u[t].data=null,delete u[t].data)}),n};i.indexOf=function(n,t){var r=-1;return i.utils.exists(n)&&i.utils.isFunction(n.indexOf)?r=n.indexOf(t):i.each(n,function(n,i){if(n===t)return r=i,!1}),r};i.each=function(n,t){function c(n,t,r,u){if(i.utils.exists(n)&&i.utils.isFunction(u))return u.call(n,n,t,r)}var r,f,e,o,u,s,h;if(i.utils.exists(n))if(r=0,typeof n.length=="number"){for(n=i.utils.toArray(n),f=n.length;r=96&&n<=105?n-48:n;return String.fromCharCode(t)},isChar:function(n){var t=n>=65&&n<=90,i=n>=97&&n<=122,r=n>=128&&n<=165;return t||i||r},isControlKey:function(n){var t=!1;return ct[n]&&(t=!0),t}};i.getSelection=function(n){var r=0,i=0,s,e,u,f,o;return typeof n.selectionStart=="number"&&typeof n.selectionEnd=="number"?(r=n.selectionStart,i=n.selectionEnd):(e=t.selection.createRange(),e&&e.parentElement()===n&&(f=n.value.length,s=n.value.replace(/\r\n/g,"\n"),u=n.createTextRange(),u.moveToBookmark(e.getBookmark()),o=n.createTextRange(),o.collapse(!1),u.compareEndPoints("StartToEnd",o)>-1?r=i=f:(r=-u.moveStart("character",-f),r+=s.slice(0,r).split("\n").length-1,u.compareEndPoints("EndToEnd",o)>-1?i=f:(i=-u.moveEnd("character",-f),i+=s.slice(0,i).split("\n").length-1)))),{start:r,end:i}};i.setSelection=function(n,i){if(t.selection){n.focus();var r=t.selection.createRange();r.moveStart("character",-n.value.length);r.moveEnd("character",-n.value.length);r.moveStart("character",i);r.moveEnd("character",0);r.select()}else(n.selectionStart||n.selectionStart==="0")&&(n.selectionStart=i,n.selectionEnd=i,n.focus())};i.classes={PropertyTest:function(){function n(n,t,r){function u(){return!0}if(typeof n=="string"&&n.length>0)this.propName=n,this.test=i.utils.isFunction(t)?t:u,this.defaultValue=i.utils.exists(r)?r:null;else throw new Error("Must provide a valid property name.");}return n.prototype.runTest=function(n){this.test(n[this.propName])!==!0&&(n[this.propName]=this.defaultValue)},n}(),Url:function(){function n(n){var t=typeof n;n=t==="string"||t==="undefined"?n:"";this.originalUrl=n;r.call(this,n)}function r(n){var i,u,r;this.protocol=null;this.hostname="";this.bodyPieces=[];this.port=null;this.params={};this.fragment=null;typeof n=="string"&&(i=t.createElement("a"),i.href=n,u=i.pathname.length>0&&i.pathname[0]==="/"?i.pathname.substring(1):i.pathname,r=i.search.replace("?",""),this.protocol=i.protocol.replace(":","")||"http",this.hostname=i.hostname,this.bodyPieces=u.length>0?u.split("/"):[],this.protocol==="mailto"&&(r=i.href.replace("mailto:?","")),this.port=parseInt(i.port)>0?i.port:null,this.params=function(){var u={},t,n,i;if(typeof r=="string"&&r.length>0)for(t=r.split("&"),n=0;n0?"/":"");return t+this.bodyPieces.join("/")},n.prototype.getQueryString=function(n){var r,u,t,i;n=typeof n=="boolean"?n:!1;r="";u=!0;for(t in this.params)i=this.params[t].toString(),typeof t=="string"&&typeof i=="string"&&(i=n?encodeURIComponent(i):i,t=n?encodeURIComponent(t):t,u?u=!1:r+="&",r+=t+"="+i);return r},n.prototype.toString=function(n){var t,r,f;return n=typeof n=="boolean"?n:!0,t=(i.strings.nullOrEmpty(this.hostname)&&this.protocol==="http"?"":u.call(this))+this.getFullBody(),t=n?encodeURI(t):t,r=this.getQueryString(n),typeof r=="string"&&r.length>0&&(t+="?"+r),typeof this.fragment=="string"&&this.fragment.length>0&&(f=n?encodeURIComponent(this.fragment):this.fragment,t+="#"+f),t},n.prototype.set=function(n,t){function f(n,t){typeof n=="string"&&n.length>0&&i.utils.exists(t)&&(this.params[n]=t.toString())}var r,u;if(typeof n=="string")f.call(this,n,t);else if(typeof arguments[0]=="object"){r=arguments[0];for(u in r)f.call(this,u,r[u])}else throw new Error("Set query parameter must have a valid key or be an object containing key:value pairs.");},n.prototype.get=function(n){var t=null;return typeof n=="string"&&(t=this.params[n]),t},n.prototype.remove=function(n){this.contains(n)&&(this.params[n]=null,delete this.params[n])},n.prototype.contains=function(n){var t=!1;return typeof n=="string"&&(t=n in this.params),t},n.prototype.reset=function(){r.call(this,this.originalUrl)},n}()};i.setSelectorEngine=function(n){(n===null||i.utils.isFunction(n))&&(b=n)};i.utils={browser:k,throttle:function(n,t){var r=(new Date).getTime();if(t=typeof t=="number"?t:300,!i.utils.isFunction(n))throw new Error("A valid function must be provided.");return t<100?n:function(){var i=(new Date).getTime();i-r>=t&&(n.apply(window,arguments),r=i)}},getAppContextGuid:function(){var n="";return typeof window.Page!="undefined"&&i.utils.isFunction(window.Page.Get)&&typeof window.Page.Get("appContextGuid")!="undefined"&&(n=window.Page.Get("appContextGuid")||""),n},generateGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=(new Date).getTime(),i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?i:i&3|8).toString(16)})},toQueryString:function(){var n="&",t="=";return function(r,u){var o,f,e;u=typeof u=="boolean"?u:!0;o=[];f="";for(e in r)r.hasOwnProperty(e)&&(f=r[e],i.utils.isArray(f)&&(u&&(f=f.map(encodeURIComponent),u=!1),f=f.join(",")),o.push(e+t+(u?encodeURIComponent(f):f)));return o.join(n)}}(),paramsToQueryString:function(n){var r=[];for(var t in n)n.hasOwnProperty(t)&&i.utils.exists(n[t])&&r.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return r.join("&")},resolve:function(n,t,r){var s=i.utils.isArray(arguments[0])?arguments[0]:[arguments[0]],h=[],c={},l=[],o,u,f;for(i.utils.isFunction(arguments[1])&&(t={success:arguments[1]}),t=typeof t=="object"?t:{},o=0;o0&&typeof i=="string"&&i.length>0&&h.push(n+t.kvSeparator+encodeURIComponent(i))}var l,h,a,u,r,e,o,v,s,y,c;if(t=i.utils.merge(!0,t||{},{includeHidden:!1,includeDisabled:!1,delimitter:"&",kvSeparator:"="}),h=[],a=function(){var n={};return function(t){var u=t.name||t.id,r;return(!i.utils.exists(u)||typeof u=="string"&&u.length<1)&&(r=t.nodeName.toString().toLowerCase(),r in n||(n[r]=0),n[r]++,u=r+n[r]),u}}(),i.utils.exists(n)){if(typeof n.nodeName=="string"&&n.nodeName==="FORM")e=n.elements;else if(typeof n.length=="number")e=n;else throw new Error("You must supply a form element or list.");for(o=0,v=e.length;o0&&(!r.disabled||r.disabled&&t.includeDisabled))switch(r.nodeName){case"INPUT":switch(r.type){case"text":case"password":case"button":case"reset":case"submit":case"file":f(u,r.value);break;case"hidden":t.includeHidden&&f(u,r.value);break;case"checkbox":case"radio":r.checked&&f(u,r.value)}break;case"TEXTAREA":f(u,r.value);break;case"SELECT":switch(r.type){case"select-one":f(u,r.value);break;case"select-multiple":for(s=0,y=r.options.length;s0&&(r=this.WindowHasFocus(t),r))return!0}catch(o){}return r},HasFocus:function(){var n=window.document.hasFocus()||!i.utils.browser.isIE&&window.document.activeElement;return n||(n=this.WindowHasFocus(i.utils.getTopFrame())),n},SetFocus:function(n){n&&n.focus&&this.HasFocus()&&n.focus()},ForceSetFocus:function(n){n.focus()}};i.strings={html:function(){function n(n,r){r=typeof r=="boolean"?r:!1;var u="",f="";return i.strings.nullOrEmpty(n)||i.each(t,function(t,i){u=r?t:i;f=r?i:t;n=n.replace(new RegExp(u,"g"),f)}),n}var t={"&":"&",'"':""","'":"'","<":"<",">":">"};return{encode:function(t){return n(t)},decode:function(t){return n(t,!0)}}}(),generateHash:function(n){var t=0,r;if(!i.strings.nullOrEmpty(n))for(r=0;r1)for(t=1;t0&&(t=(n?"?":"&")+"OBToken="+r),t},AddSecurityTokenToForms:function(n,t){var u,f,s,e,o,r;if(i.utils.exists(n)||(n=window),i.utils.exists(n)&&((typeof t!="string"||i.utils.exists(t)&&t.length===0)&&(t=i.security.GetSecurityToken()),t.length>0&&(u="OBToken",f=n.document.getElementsByTagName("form"),f.length>0)))for(s=f.length,e=0;e0&&(typeof Sys!="undefined"&&(t=Sys.WebForms.PageRequestManager.getInstance(),i.utils.exists(t)&&t.add_initializeRequest(function(t,i){i._request.get_headers().OBToken=n}),i.utils.exists(Sys.Net.WebRequestManager)&&Sys.Net.WebRequestManager.add_invokingRequest(function(t,i){var r=i.get_webRequest(),u=r.get_headers();u.OBToken=n})),typeof e!="undefined"&&i.utils.isFunction(e.Set)&&e.Set("__OBToken",n),typeof $!="undefined"&&typeof $.ajaxSetup!="undefined"&&$.ajaxSetup({headers:{OBToken:n}}))}}}();i.clipboard={IsSupported:function(){return t.queryCommandSupported("copy")},CopyValueFromTextInput:function(n,r){var f=!1,u;if(i.clipboard.IsSupported()){u=n.value;r=typeof r=="boolean"?r:!1;r&&(u=u.replace(/[\r\n]/g,""),n.value=u);try{n.select();f=t.execCommand("copy")}catch(e){}}return f},CopyText:function(n,r){var u=r?t.createElement("input"):t.createElement("textArea"),f,e;return u.type="text",u.value=n,f=u.style,f.position="absolute",f.left="-10000px",f.right="-10000px",t.body.appendChild(u),e=i.clipboard.CopyValueFromTextInput(u,r),t.body.removeChild(u),e},IsKnownToBeUnsupported:function(){return!t.queryCommandSupported("copy")}};i.modules={add:function(n,t,u){var f=i.utils.isFunction(t);if(u=typeof u=="boolean"?u:!0,r.prototype[n])throw new Error('Module "'+n+'" already exists.');else r.prototype[n]=f?function(){var n=t.apply(this,arguments);return u&&(n=this),n}:t,r.prototype[n].nonNative=!0},remove:function(n){var t=r.prototype[n];if(i.utils.exists(t)&&t.nonNative===!0)delete r.prototype[n];else throw new Error('Cannot remove module "'+n+'".');}};i.clientConfig={getInstanceKey:function(){return window.k||i.url.get("k")||null},virtualRoot:"",isRtl:!1,cultureCode:"en-us",uiCultureCode:"en-us"};i.statusChangeIndicator={createElement:function(){var u="status-change-indicator",r=i.utils.getTopFrame(),n;if(r.document&&!r.document.getElementById(u))return n=t.createElement("div"),n.setAttribute("id",u),n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-relevant","additions"),n.style.cssText="border: 0;clip: rect(1px 1px 1px 1px);height: 1px; margin: -1px;overflow: hidden;padding: 0;position: absolute !important;width: 1px;",r.document.body.appendChild(n),n},postMessage:function(n,t){var f=i.utils.getTopFrame(),r,u,e;f.document&&(r=f.document.getElementById("status-change-indicator"),r||(r=i.statusChangeIndicator.createElement()),u=0,typeof t!="undefined"&&typeof t.postMessageDelay=="number"&&(u=t.postMessageDelay),setTimeout(function(){r.innerHTML="
"+n+"<\/div>"},u),typeof t!="undefined"&&i.utils.exists(t.callback)&&i.utils.isFunction(t.callback)&&(e=typeof t.callbackDelay=="number"?t.callbackDelay:0,setTimeout(function(){t.callback()},e)))}};"defineProperties"in Object&&(function(){function t(n,t){return function(){var r=t;return i.utils.isFunction(n)&&(r=n.call(i.clientConfig,t)||r),r}}function r(){return"OBStorage"in n}function u(){return OBStorage.ClientSettingsGroup.General}Object.defineProperties(i.clientConfig,{virtualRoot:{writeable:!1,configurable:!1,get:t(function(n){var i=n,t;return typeof __VirtualRoot!="undefined"&&__VirtualRoot!==null&&__VirtualRoot!==""?i=__VirtualRoot:r()&&(t=OBStorage.getItem(u().VirtualRoot),t!==null&&t!==""&&(i=t)),i},"")},isRtl:{writeable:!1,configurable:!1,get:t(function(n){return r()?JSON.parse(OBStorage.getItem(u().IsRtl)):n},!1)},cultureCode:{writeable:!1,configurable:!1,get:t(function(n){var t=n;return r()?t=OBStorage.getItem(u().CultureCode):navigator.userLanguage?t=navigator.userLanguage.toLowerCase():navigator.languages&&(t=navigator.languages[0].toLowerCase()),t},"en-us")},uiCultureCode:{writeable:!1,configurable:!1,get:t(function(n){return r()?OBStorage.getItem(u().UiCultureCode):n},"en-us")}})}(),function(){function n(n,i){i=i||{bubbles:!1,cancelable:!1,detail:undefined};var r=t.createEvent("CustomEvent");return r.initCustomEvent(n,i.bubbles,i.cancelable,i.detail),r}if(typeof window.CustomEvent=="function")return!1;n.prototype=window.Event.prototype;window.CustomEvent=n}());i.url=new i.classes.Url(window.location.href.toString());i.url.commit=function(){i.navigateTo(i.url.toString())};at();n.$OB=i})(window,window.document);window.isSameTop=function(n){return $OB.utils.getTopFrame()==n};