(function(n){n.exlBaseFunctions={findFirstByKey:function(n,t,i){for(var r=0;r<n.length;r++)if(n[r][t]===i)return n[r];return null},findFirstDateByKey:function(n,t,i){for(var u,f,r=0;r<n.length;r++)if(u=moment(n[r][t]),f=moment(i),u.isValid()&&f.isValid()&&u.calendar()==f.calendar())return n[r];return null},removeFirstOccurance:function(n,t,i){for(var r=0;r<n.length;r++)if(n[r][t]===i){n.splice(r,1);break}},isNullOrWhiteSpace:function(n){return typeof n=="undefined"||n===null?!0:n.replace(/\s/g,"").length<1},stringEqualsIgnoreCase:function(n,t){return typeof n=="undefined"||n===null||typeof t=="undefined"||t===null?!1:n.trim().toUpperCase()===t.trim().toUpperCase()},stringStartsWith:function(n,t,i){return i?n.trim().toUpperCase().indexOf(t.trim().toUpperCase())===0:n.indexOf(t)===0}}})(window),function(n){"use strict";n.exlExceptionHandling={stringifyLogObjectFunction:function(n){return typeof n=="function"?n instanceof RegExp?n.toString():n():n},queueExceptionInfo:function(n,t){JL!==null&&t instanceof Error&&(n=this.stringifyLogObjectFunction(n),t=JL().buildExceptionObject(t),n=JSON.stringify(n),t=JSON.stringify(t),sessionStorage.logException=!0,sessionStorage.exceptionCause=n,sessionStorage.exceptionObject=t)},logFatalException:function(){if(JL!==null&&sessionStorage.logException!="undefined"&&sessionStorage.logException=="true"){var n,t;sessionStorage.exceptionCause!="undefined"&&(n=JSON.parse(sessionStorage.exceptionCause));sessionStorage.exceptionObject!="undefined"&&(t=JSON.parse(sessionStorage.exceptionObject));JL().fatalException(n,t);this.clearExceptionQueue()}},transferToErrorPage:function(n){if(n.location.href.indexOf("Home/Error")<0){var i="",t=n.document.getElementsByTagName("base");t&&t.length&&(i=t[0].href);n.location.href=i+"Home/Error"}else this.clearExceptionQueue()},presentException:function(n,t){return CustomErrorsMode=="On"?(this.transferToErrorPage(n),!0):(this.logFatalException(),toastr.error(t,"Unhandled Exception!",{closeButton:!0,preventDuplicates:!0,timeOut:0,extendedTimeOut:0,tapToDismiss:!1,onShown:function(){$("#toast-container").removeClass("toast-top-right toast-bottom-right toast-bottom-left toast-top-left toast-top-full-width toast-bottom-full-width toast-top-center toast-bottom-center").addClass("toast-top-full-width")}}),!1)},clearExceptionQueue:function(){delete sessionStorage.logException;delete sessionStorage.exceptionCause;delete sessionStorage.exceptionObject}};n.onerror=function(t,i,r,u,f){try{var e={msg:"Exception!",errorMsg:t,url:i,"line number":r,column:u};return exlExceptionHandling.queueExceptionInfo(e,f),exlExceptionHandling.presentException(n,t)}catch(o){}}}(window)